fixa-admin 0.0.47 → 0.0.49
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/esm2022/lib/components/grid/grid.component.mjs +4 -2
- package/esm2022/lib/directive/index.api.mjs +2 -1
- package/esm2022/lib/directive/video.directive.mjs +46 -0
- package/esm2022/lib/models/shared.model.mjs +6 -1
- package/esm2022/lib/services/shared.service.mjs +12 -5
- package/esm2022/lib/shared.module.mjs +8 -5
- package/fesm2022/fixa-admin.mjs +98 -40
- package/fesm2022/fixa-admin.mjs.map +1 -1
- package/lib/directive/index.api.d.ts +1 -0
- package/lib/directive/video.directive.d.ts +16 -0
- package/lib/models/shared.model.d.ts +4 -0
- package/lib/services/shared.service.d.ts +2 -2
- package/lib/shared.module.d.ts +26 -25
- package/package.json +1 -1
package/fesm2022/fixa-admin.mjs
CHANGED
|
@@ -61,6 +61,42 @@ import * as am5 from '@amcharts/amcharts5';
|
|
|
61
61
|
import * as am5percent from '@amcharts/amcharts5/percent';
|
|
62
62
|
import am5themes_Animated from '@amcharts/amcharts5/themes/Animated';
|
|
63
63
|
|
|
64
|
+
var FilterOperator;
|
|
65
|
+
(function (FilterOperator) {
|
|
66
|
+
FilterOperator["equals"] = "EQ";
|
|
67
|
+
FilterOperator["notEqual"] = "NEQ";
|
|
68
|
+
FilterOperator["lessThan"] = "LT";
|
|
69
|
+
FilterOperator["lessThanOrEqual"] = "LTE";
|
|
70
|
+
FilterOperator["greaterThan"] = "GT";
|
|
71
|
+
FilterOperator["greaterThanOrEqual"] = "GTE";
|
|
72
|
+
FilterOperator["startsWith"] = "STARTSWITH";
|
|
73
|
+
FilterOperator["endsWith"] = "ENDSWITH";
|
|
74
|
+
FilterOperator["inRange"] = "IN";
|
|
75
|
+
FilterOperator["contains"] = "LIKE";
|
|
76
|
+
FilterOperator["notContains"] = "NOTLIKE";
|
|
77
|
+
FilterOperator["truncEqual"] = "TRUNC_EQ";
|
|
78
|
+
FilterOperator["truncNotEqual"] = "TRUNC_NEQ";
|
|
79
|
+
FilterOperator["truncGreaterThanEqual"] = "TRUNC_GTE";
|
|
80
|
+
FilterOperator["truncGreaterThan"] = "TRUNC_GT";
|
|
81
|
+
FilterOperator["truncLessThanOr"] = "TRUNC_LT";
|
|
82
|
+
FilterOperator["truncLessThanOrEqual"] = "TRUNC_LTE";
|
|
83
|
+
FilterOperator["between"] = "BETWEEN";
|
|
84
|
+
})(FilterOperator || (FilterOperator = {}));
|
|
85
|
+
class SelectModel {
|
|
86
|
+
constructor() {
|
|
87
|
+
this.items = [];
|
|
88
|
+
this.loading = false;
|
|
89
|
+
this.page = null;
|
|
90
|
+
this.pageSize = null;
|
|
91
|
+
this.totalCount = null;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
var ContentType;
|
|
95
|
+
(function (ContentType) {
|
|
96
|
+
ContentType[ContentType["VIDEO"] = 0] = "VIDEO";
|
|
97
|
+
ContentType[ContentType["IMAGE"] = 1] = "IMAGE";
|
|
98
|
+
})(ContentType || (ContentType = {}));
|
|
99
|
+
|
|
64
100
|
class SharedService {
|
|
65
101
|
constructor(environment, _http) {
|
|
66
102
|
this._http = _http;
|
|
@@ -75,14 +111,20 @@ class SharedService {
|
|
|
75
111
|
responseType: 'text',
|
|
76
112
|
});
|
|
77
113
|
}
|
|
78
|
-
getFile(url) {
|
|
114
|
+
getFile(url, type = ContentType.IMAGE) {
|
|
79
115
|
return new Promise((resolve, reject) => {
|
|
80
|
-
this._http.get(
|
|
116
|
+
this._http.get(url, {
|
|
81
117
|
responseType: 'arraybuffer'
|
|
82
118
|
}).subscribe({
|
|
83
119
|
next: (value) => {
|
|
84
|
-
|
|
85
|
-
|
|
120
|
+
if (type == ContentType.IMAGE) {
|
|
121
|
+
const blob = new Blob([value], { type: 'image/jpeg' });
|
|
122
|
+
const url = URL.createObjectURL(blob);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
const blob = new Blob([value], { type: 'video/mp4' });
|
|
126
|
+
const url = URL.createObjectURL(blob);
|
|
127
|
+
}
|
|
86
128
|
resolve(url);
|
|
87
129
|
},
|
|
88
130
|
});
|
|
@@ -475,37 +517,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
475
517
|
args: ['eFilterText']
|
|
476
518
|
}] } });
|
|
477
519
|
|
|
478
|
-
var FilterOperator;
|
|
479
|
-
(function (FilterOperator) {
|
|
480
|
-
FilterOperator["equals"] = "EQ";
|
|
481
|
-
FilterOperator["notEqual"] = "NEQ";
|
|
482
|
-
FilterOperator["lessThan"] = "LT";
|
|
483
|
-
FilterOperator["lessThanOrEqual"] = "LTE";
|
|
484
|
-
FilterOperator["greaterThan"] = "GT";
|
|
485
|
-
FilterOperator["greaterThanOrEqual"] = "GTE";
|
|
486
|
-
FilterOperator["startsWith"] = "STARTSWITH";
|
|
487
|
-
FilterOperator["endsWith"] = "ENDSWITH";
|
|
488
|
-
FilterOperator["inRange"] = "IN";
|
|
489
|
-
FilterOperator["contains"] = "LIKE";
|
|
490
|
-
FilterOperator["notContains"] = "NOTLIKE";
|
|
491
|
-
FilterOperator["truncEqual"] = "TRUNC_EQ";
|
|
492
|
-
FilterOperator["truncNotEqual"] = "TRUNC_NEQ";
|
|
493
|
-
FilterOperator["truncGreaterThanEqual"] = "TRUNC_GTE";
|
|
494
|
-
FilterOperator["truncGreaterThan"] = "TRUNC_GT";
|
|
495
|
-
FilterOperator["truncLessThanOr"] = "TRUNC_LT";
|
|
496
|
-
FilterOperator["truncLessThanOrEqual"] = "TRUNC_LTE";
|
|
497
|
-
FilterOperator["between"] = "BETWEEN";
|
|
498
|
-
})(FilterOperator || (FilterOperator = {}));
|
|
499
|
-
class SelectModel {
|
|
500
|
-
constructor() {
|
|
501
|
-
this.items = [];
|
|
502
|
-
this.loading = false;
|
|
503
|
-
this.page = null;
|
|
504
|
-
this.pageSize = null;
|
|
505
|
-
this.totalCount = null;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
|
|
509
520
|
class JDatePipe {
|
|
510
521
|
transform(value, time = false, format = 'YYYY/MM/DD') {
|
|
511
522
|
if (value != null) {
|
|
@@ -535,7 +546,8 @@ class GridComponent {
|
|
|
535
546
|
this.groupDefaultExpanded = -1;
|
|
536
547
|
this._treeGroupColumn = null;
|
|
537
548
|
this._rowSelection = {
|
|
538
|
-
mode: 'singleRow'
|
|
549
|
+
mode: 'singleRow',
|
|
550
|
+
checkboxes: false
|
|
539
551
|
};
|
|
540
552
|
this.themeClass = "ag-theme-quartz";
|
|
541
553
|
this.columnDefs = [];
|
|
@@ -610,6 +622,7 @@ class GridComponent {
|
|
|
610
622
|
if (v) {
|
|
611
623
|
this._rowSelection = {
|
|
612
624
|
mode: 'multiRow',
|
|
625
|
+
checkboxes: true
|
|
613
626
|
};
|
|
614
627
|
}
|
|
615
628
|
}
|
|
@@ -1796,6 +1809,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
1796
1809
|
type: Input
|
|
1797
1810
|
}] } });
|
|
1798
1811
|
|
|
1812
|
+
class VideoLoaderDirective {
|
|
1813
|
+
constructor(loader, onErrorSrc, renderer, el, _http) {
|
|
1814
|
+
this.loader = loader;
|
|
1815
|
+
this.onErrorSrc = onErrorSrc;
|
|
1816
|
+
this.renderer = renderer;
|
|
1817
|
+
this.el = el;
|
|
1818
|
+
this._http = _http;
|
|
1819
|
+
this._videoSrc = null;
|
|
1820
|
+
// this.renderer.setAttribute(this.el.nativeElement, 'src', this.loader);
|
|
1821
|
+
}
|
|
1822
|
+
get videoSrc() {
|
|
1823
|
+
return this._videoSrc;
|
|
1824
|
+
}
|
|
1825
|
+
set videoSrc(v) {
|
|
1826
|
+
if (v != null) {
|
|
1827
|
+
this._http.getFile(v, ContentType.VIDEO).then((res) => {
|
|
1828
|
+
this.renderer.setAttribute(this.el.nativeElement, 'src', res);
|
|
1829
|
+
setTimeout(() => {
|
|
1830
|
+
this.el.nativeElement.parentElement.load();
|
|
1831
|
+
}, 100);
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
this._videoSrc = v;
|
|
1835
|
+
}
|
|
1836
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: VideoLoaderDirective, deps: [{ token: 'loader', attribute: true }, { token: 'onErrorSrc', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: SharedService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1837
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: VideoLoaderDirective, selector: "[videoLoader]", inputs: { videoSrc: "videoSrc" }, ngImport: i0 }); }
|
|
1838
|
+
}
|
|
1839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: VideoLoaderDirective, decorators: [{
|
|
1840
|
+
type: Directive$1,
|
|
1841
|
+
args: [{
|
|
1842
|
+
selector: '[videoLoader]',
|
|
1843
|
+
}]
|
|
1844
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1845
|
+
type: Attribute,
|
|
1846
|
+
args: ['loader']
|
|
1847
|
+
}] }, { type: undefined, decorators: [{
|
|
1848
|
+
type: Attribute,
|
|
1849
|
+
args: ['onErrorSrc']
|
|
1850
|
+
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: SharedService }], propDecorators: { videoSrc: [{
|
|
1851
|
+
type: Input
|
|
1852
|
+
}] } });
|
|
1853
|
+
|
|
1799
1854
|
class AuthGuard {
|
|
1800
1855
|
constructor(_router) {
|
|
1801
1856
|
this._router = _router;
|
|
@@ -2022,7 +2077,8 @@ const Directive = [
|
|
|
2022
2077
|
EnglishNumberInputDirective,
|
|
2023
2078
|
CharInputDirective,
|
|
2024
2079
|
MaskDirective,
|
|
2025
|
-
ImageLoaderDirective
|
|
2080
|
+
ImageLoaderDirective,
|
|
2081
|
+
VideoLoaderDirective
|
|
2026
2082
|
];
|
|
2027
2083
|
const Pipes = [
|
|
2028
2084
|
JDatePipe
|
|
@@ -2081,7 +2137,8 @@ class SharedModule {
|
|
|
2081
2137
|
DateFilter, ImageCropperPopover, EnglishNumberInputDirective,
|
|
2082
2138
|
CharInputDirective,
|
|
2083
2139
|
MaskDirective,
|
|
2084
|
-
ImageLoaderDirective,
|
|
2140
|
+
ImageLoaderDirective,
|
|
2141
|
+
VideoLoaderDirective, JDatePipe, PieChart], imports: [RouterModule, HttpClientModule,
|
|
2085
2142
|
CommonModule,
|
|
2086
2143
|
AgGridModule,
|
|
2087
2144
|
HttpClientModule,
|
|
@@ -2112,7 +2169,8 @@ class SharedModule {
|
|
|
2112
2169
|
DateFilter, ImageCropperPopover, EnglishNumberInputDirective,
|
|
2113
2170
|
CharInputDirective,
|
|
2114
2171
|
MaskDirective,
|
|
2115
|
-
ImageLoaderDirective,
|
|
2172
|
+
ImageLoaderDirective,
|
|
2173
|
+
VideoLoaderDirective, JDatePipe, PieChart] }); }
|
|
2116
2174
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SharedModule, providers: [
|
|
2117
2175
|
...Guard,
|
|
2118
2176
|
...Services,
|
|
@@ -2189,5 +2247,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
2189
2247
|
* Generated bundle index. Do not edit.
|
|
2190
2248
|
*/
|
|
2191
2249
|
|
|
2192
|
-
export { ActionsCellRenderer, AuthGuard, BlankLayout, CaptchaComponent, CharInputDirective, ConfirmService, DateFilter, DialogService, EnglishNumberInputDirective, FilterOperator, FormService, GridComponent, HttpLoaderFactory, ImageCropperPopover, ImageLoaderDirective, JDatePipe, MapComponent, MaskDirective, MasterLayout, PieChart, PopoverComponent, SelectModel, SharedModule, SharedService, SpinnerComponent, TimerPipe, ToastService, UploadFileComponent, UploaderComponent, initializeApp };
|
|
2250
|
+
export { ActionsCellRenderer, AuthGuard, BlankLayout, CaptchaComponent, CharInputDirective, ConfirmService, ContentType, DateFilter, DialogService, EnglishNumberInputDirective, FilterOperator, FormService, GridComponent, HttpLoaderFactory, ImageCropperPopover, ImageLoaderDirective, JDatePipe, MapComponent, MaskDirective, MasterLayout, PieChart, PopoverComponent, SelectModel, SharedModule, SharedService, SpinnerComponent, TimerPipe, ToastService, UploadFileComponent, UploaderComponent, VideoLoaderDirective, initializeApp };
|
|
2193
2251
|
//# sourceMappingURL=fixa-admin.mjs.map
|