raise-common-lib 0.0.246 → 0.0.248
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/bundles/raise-common-lib.umd.js +166 -174
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/form/tag-input/index.component.js +11 -4
- package/esm2015/lib/layout/drawer/index.component.js +5 -24
- package/esm2015/lib/service/static-resource.service.js +5 -2
- package/esm5/lib/form/tag-input/index.component.js +12 -4
- package/esm5/lib/layout/drawer/index.component.js +5 -24
- package/esm5/lib/service/static-resource.service.js +5 -3
- package/fesm2015/raise-common-lib.js +135 -143
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +163 -171
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/form/tag-input/index.component.d.ts +2 -1
- package/lib/layout/drawer/index.component.d.ts +1 -4
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/style/reset/mat-dialog.scss +1 -0
|
@@ -29,7 +29,7 @@ var StaticResourceService = /** @class */ (function () {
|
|
|
29
29
|
*/
|
|
30
30
|
function () { }); }
|
|
31
31
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
32
|
-
var res, blob;
|
|
32
|
+
var result, res, blob;
|
|
33
33
|
var _this = this;
|
|
34
34
|
return tslib_1.__generator(this, function (_a) {
|
|
35
35
|
switch (_a.label) {
|
|
@@ -39,7 +39,9 @@ var StaticResourceService = /** @class */ (function () {
|
|
|
39
39
|
return [2 /*return*/, ""];
|
|
40
40
|
}
|
|
41
41
|
if (this.ResultMap.has(url)) {
|
|
42
|
-
|
|
42
|
+
result = this.ResultMap.get(url) || "";
|
|
43
|
+
cb(result);
|
|
44
|
+
return [2 /*return*/, result];
|
|
43
45
|
}
|
|
44
46
|
return [4 /*yield*/, fetch(url)];
|
|
45
47
|
case 1:
|
|
@@ -148,4 +150,4 @@ if (false) {
|
|
|
148
150
|
*/
|
|
149
151
|
StaticResourceService.prototype.sanitizer;
|
|
150
152
|
}
|
|
151
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
153
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdGljLXJlc291cmNlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9yYWlzZS1jb21tb24tbGliLyIsInNvdXJjZXMiOlsibGliL3NlcnZpY2Uvc3RhdGljLXJlc291cmNlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsWUFBWSxFQUFXLE1BQU0sMkJBQTJCLENBQUM7OztBQUVsRTtJQU1FLCtCQUFvQixTQUF1QjtRQUF2QixjQUFTLEdBQVQsU0FBUyxDQUFjO1FBRm5DLGNBQVMsR0FBRyxJQUFJLEdBQUcsRUFBbUIsQ0FBQztJQUVELENBQUM7Ozs7OztJQUV6QyxvQ0FBSTs7Ozs7SUFBVixVQUFXLEdBQVcsRUFBRSxFQUE2QztRQUE3QyxtQkFBQSxFQUFBOzs7UUFBcUMsY0FBTyxDQUFDLENBQUE7Ozs7Ozs7d0JBQ25FLElBQUksQ0FBQyxHQUFHLElBQUksT0FBTyxHQUFHLEtBQUssUUFBUSxFQUFFOzRCQUNuQyxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUM7NEJBQ1Asc0JBQU8sRUFBRSxFQUFDO3lCQUNYO3dCQUNELElBQUksSUFBSSxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLEVBQUU7NEJBQ3JCLE1BQU0sR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsSUFBSSxFQUFF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nVzdFVybChyZXN1bHQpO1xyXG4gICAgICAgIGlmIChzYWZlVXJsKSB7XHJcbiAgICAgICAgICB0aGlzLlJlc3VsdE1hcC5zZXQodXJsLCBzYWZlVXJsKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgcmVzb2x2ZShzYWZlVXJsKTtcclxuICAgICAgICBjYihzYWZlVXJsKTtcclxuICAgICAgfTtcclxuXHJcbiAgICAgIHJlYWRlci5vbmxvYWRlbmQgPSAoKSA9PiBjYWxsYmFjayhyZWFkZXIucmVzdWx0IGFzIHN0cmluZyk7XHJcbiAgICAgIHJlYWRlci5vbmVycm9yID0gKCkgPT4gY2FsbGJhY2soXCJcIik7XHJcbiAgICAgIHJlYWRlci5yZWFkQXNEYXRhVVJMKGJsb2IpO1xyXG4gICAgfSk7XHJcbiAgfVxyXG5cclxuICBhc3luYyBmb3JjZUxvYWQodXJsOiBzdHJpbmcsIGNiOiAocmVzdWx0OiBTYWZlVXJsIHwgXCJcIikgPT4gdm9pZCkge1xyXG4gICAgd2hpbGUgKHRydWUpIHtcclxuICAgICAgY29uc3QgcmVzdWx0ID0gYXdhaXQgdGhpcy5sb2FkKHVybCk7XHJcbiAgICAgIGlmIChyZXN1bHQpIHtcclxuICAgICAgICBjYihyZXN1bHQpO1xyXG4gICAgICAgIHJldHVybiByZXN1bHQ7XHJcbiAgICAgIH1cclxuICAgICAgYXdhaXQgbmV3IFByb21pc2UoKHJlc29sdmUpID0+IHNldFRpbWVvdXQocmVzb2x2ZSwgMjAwMCkpO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -10,7 +10,6 @@ import { CarouselAllModule, ToolbarModule, TabModule, TreeViewModule } from '@sy
|
|
|
10
10
|
import { NavigationEnd, Router, NavigationStart, ActivatedRoute, RouteReuseStrategy } from '@angular/router';
|
|
11
11
|
import { filter } from 'rxjs/operators';
|
|
12
12
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
13
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
14
13
|
import { HttpClient, HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
15
14
|
import { setCulture, L10n, addClass, enableRipple, Browser, createElement } from '@syncfusion/ej2-base';
|
|
16
15
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
@@ -21,6 +20,7 @@ import { MAT_DATE_FORMATS } from '@angular/material/core';
|
|
|
21
20
|
import { DashboardLayoutModule } from '@syncfusion/ej2-angular-layouts';
|
|
22
21
|
import { DatePipe, DecimalPipe, CommonModule } from '@angular/common';
|
|
23
22
|
import { MatIconRegistry, MatIconModule } from '@angular/material/icon';
|
|
23
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
24
24
|
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
25
25
|
import { InlineSVGModule } from 'ng-inline-svg';
|
|
26
26
|
import { SwitchModule, CheckBoxModule, RadioButtonModule, ButtonModule, ChipListModule } from '@syncfusion/ej2-angular-buttons';
|
|
@@ -3498,123 +3498,6 @@ if (false) {
|
|
|
3498
3498
|
MultiTabComponent.prototype.routeReuseStrategy;
|
|
3499
3499
|
}
|
|
3500
3500
|
|
|
3501
|
-
/**
|
|
3502
|
-
* @fileoverview added by tsickle
|
|
3503
|
-
* Generated from: lib/service/static-resource.service.ts
|
|
3504
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3505
|
-
*/
|
|
3506
|
-
class StaticResourceService {
|
|
3507
|
-
/**
|
|
3508
|
-
* @param {?} sanitizer
|
|
3509
|
-
*/
|
|
3510
|
-
constructor(sanitizer) {
|
|
3511
|
-
this.sanitizer = sanitizer;
|
|
3512
|
-
this.ResultMap = new Map();
|
|
3513
|
-
}
|
|
3514
|
-
/**
|
|
3515
|
-
* @param {?} url
|
|
3516
|
-
* @param {?=} cb
|
|
3517
|
-
* @return {?}
|
|
3518
|
-
*/
|
|
3519
|
-
load(url, cb = (/**
|
|
3520
|
-
* @return {?}
|
|
3521
|
-
*/
|
|
3522
|
-
() => { })) {
|
|
3523
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3524
|
-
if (!url || typeof url !== "string") {
|
|
3525
|
-
cb("");
|
|
3526
|
-
return "";
|
|
3527
|
-
}
|
|
3528
|
-
if (this.ResultMap.has(url)) {
|
|
3529
|
-
return this.ResultMap.get(url) || "";
|
|
3530
|
-
}
|
|
3531
|
-
/** @type {?} */
|
|
3532
|
-
const res = yield fetch(url);
|
|
3533
|
-
if (!res.ok) {
|
|
3534
|
-
cb("");
|
|
3535
|
-
return "";
|
|
3536
|
-
}
|
|
3537
|
-
/** @type {?} */
|
|
3538
|
-
const blob = yield res.blob();
|
|
3539
|
-
return new Promise((/**
|
|
3540
|
-
* @param {?} resolve
|
|
3541
|
-
* @return {?}
|
|
3542
|
-
*/
|
|
3543
|
-
(resolve) => {
|
|
3544
|
-
/** @type {?} */
|
|
3545
|
-
const reader = new FileReader();
|
|
3546
|
-
/** @type {?} */
|
|
3547
|
-
const callback = (/**
|
|
3548
|
-
* @param {?} result
|
|
3549
|
-
* @return {?}
|
|
3550
|
-
*/
|
|
3551
|
-
(result) => {
|
|
3552
|
-
/** @type {?} */
|
|
3553
|
-
const safeUrl = this.sanitizer.bypassSecurityTrustUrl(result);
|
|
3554
|
-
if (safeUrl) {
|
|
3555
|
-
this.ResultMap.set(url, safeUrl);
|
|
3556
|
-
}
|
|
3557
|
-
resolve(safeUrl);
|
|
3558
|
-
cb(safeUrl);
|
|
3559
|
-
});
|
|
3560
|
-
reader.onloadend = (/**
|
|
3561
|
-
* @return {?}
|
|
3562
|
-
*/
|
|
3563
|
-
() => callback((/** @type {?} */ (reader.result))));
|
|
3564
|
-
reader.onerror = (/**
|
|
3565
|
-
* @return {?}
|
|
3566
|
-
*/
|
|
3567
|
-
() => callback(""));
|
|
3568
|
-
reader.readAsDataURL(blob);
|
|
3569
|
-
}));
|
|
3570
|
-
});
|
|
3571
|
-
}
|
|
3572
|
-
/**
|
|
3573
|
-
* @param {?} url
|
|
3574
|
-
* @param {?} cb
|
|
3575
|
-
* @return {?}
|
|
3576
|
-
*/
|
|
3577
|
-
forceLoad(url, cb) {
|
|
3578
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3579
|
-
while (true) {
|
|
3580
|
-
/** @type {?} */
|
|
3581
|
-
const result = yield this.load(url);
|
|
3582
|
-
if (result) {
|
|
3583
|
-
cb(result);
|
|
3584
|
-
return result;
|
|
3585
|
-
}
|
|
3586
|
-
yield new Promise((/**
|
|
3587
|
-
* @param {?} resolve
|
|
3588
|
-
* @return {?}
|
|
3589
|
-
*/
|
|
3590
|
-
(resolve) => setTimeout(resolve, 2000)));
|
|
3591
|
-
}
|
|
3592
|
-
});
|
|
3593
|
-
}
|
|
3594
|
-
}
|
|
3595
|
-
StaticResourceService.decorators = [
|
|
3596
|
-
{ type: Injectable, args: [{
|
|
3597
|
-
providedIn: "root",
|
|
3598
|
-
},] }
|
|
3599
|
-
];
|
|
3600
|
-
/** @nocollapse */
|
|
3601
|
-
StaticResourceService.ctorParameters = () => [
|
|
3602
|
-
{ type: DomSanitizer }
|
|
3603
|
-
];
|
|
3604
|
-
/** @nocollapse */ StaticResourceService.ngInjectableDef = ɵɵdefineInjectable({ factory: function StaticResourceService_Factory() { return new StaticResourceService(ɵɵinject(DomSanitizer)); }, token: StaticResourceService, providedIn: "root" });
|
|
3605
|
-
if (false) {
|
|
3606
|
-
/**
|
|
3607
|
-
* @type {?}
|
|
3608
|
-
* @private
|
|
3609
|
-
*/
|
|
3610
|
-
StaticResourceService.prototype.ResultMap;
|
|
3611
|
-
/**
|
|
3612
|
-
* @type {?}
|
|
3613
|
-
* @private
|
|
3614
|
-
*/
|
|
3615
|
-
StaticResourceService.prototype.sanitizer;
|
|
3616
|
-
}
|
|
3617
|
-
|
|
3618
3501
|
/**
|
|
3619
3502
|
* @fileoverview added by tsickle
|
|
3620
3503
|
* Generated from: lib/layout/drawer/index.component.ts
|
|
@@ -3625,26 +3508,16 @@ class DrawerComponent {
|
|
|
3625
3508
|
* @param {?} resolver
|
|
3626
3509
|
* @param {?} service
|
|
3627
3510
|
* @param {?} ref
|
|
3628
|
-
* @param {?} staticResourceService
|
|
3629
3511
|
*/
|
|
3630
|
-
constructor(resolver, service, ref
|
|
3512
|
+
constructor(resolver, service, ref) {
|
|
3631
3513
|
this.resolver = resolver;
|
|
3632
3514
|
this.service = service;
|
|
3633
3515
|
this.ref = ref;
|
|
3634
|
-
this.staticResourceService = staticResourceService;
|
|
3635
3516
|
this.config = DefaultDrawerConfig;
|
|
3636
3517
|
this.useAnimation = "yes";
|
|
3637
3518
|
this.isOpened = false;
|
|
3638
3519
|
this.hiddenDrawer = true;
|
|
3639
|
-
this.backImage = null;
|
|
3640
3520
|
this.componentRefMap = new Map();
|
|
3641
|
-
staticResourceService.load("/assets/img/drawer-back.svg", (/**
|
|
3642
|
-
* @param {?} result
|
|
3643
|
-
* @return {?}
|
|
3644
|
-
*/
|
|
3645
|
-
(result) => {
|
|
3646
|
-
this.backImage = result;
|
|
3647
|
-
}));
|
|
3648
3521
|
}
|
|
3649
3522
|
/**
|
|
3650
3523
|
* @private
|
|
@@ -3902,16 +3775,15 @@ class DrawerComponent {
|
|
|
3902
3775
|
DrawerComponent.decorators = [
|
|
3903
3776
|
{ type: Component, args: [{
|
|
3904
3777
|
selector: "rs-drawer",
|
|
3905
|
-
template: "<div #element id=\"rs-drawer-container\" class=\"rs-drawer-container\">\r\n <div class=\"rs-drawer-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div\r\n #drawer\r\n class=\"rs-drawer\"\r\n [attr.data-mode]=\"config.mode\"\r\n [attr.data-opened]=\"isOpened ? 'yes' : 'no'\"\r\n [attr.data-animation]=\"useAnimation\"\r\n [hidden]=\"hiddenDrawer\"\r\n (animationend)=\"onAnimationEnd()\"\r\n >\r\n <div class=\"drawer-header\" #header>\r\n <button class=\"drawer-return-button\" (click)=\"hide()\">\r\n <
|
|
3906
|
-
styles: [":host{display:block;height:100%}#rs-drawer-container{height:100%}.rs-drawer-container{height:100%;background-color:transparent;overflow:hidden;position:relative}.rs-drawer-container .rs-drawer-content{width:100%;height:100%;overflow:auto;margin-right:0!important}.rs-drawer-container .rs-drawer{width:100%;height:100%;border-left:none;background-color:transparent;overflow:visible;pointer-events:none;opacity:0;display:flex;flex-flow:column nowrap;position:absolute;z-index:2;top:0;left:100%}.rs-drawer-container .rs-drawer[data-opened=yes]{left:0;opacity:1}.rs-drawer-container .rs-drawer[data-animation=yes][data-opened=yes]{-webkit-animation:.5s ease-in-out drawer-open;animation:.5s ease-in-out drawer-open}@-webkit-keyframes drawer-open{from{left:100%;opacity:0}to{left:0;opacity:1}}@keyframes drawer-open{from{left:100%;opacity:0}to{left:0;opacity:1}}.rs-drawer-container .rs-drawer[data-animation=yes][data-opened=no]{-webkit-animation:.5s ease-in-out drawer-close;animation:.5s ease-in-out drawer-close}@-webkit-keyframes drawer-close{from{left:0;opacity:1}to{left:100%;opacity:0}}@keyframes drawer-close{from{left:0;opacity:1}to{left:100%;opacity:0}}.rs-drawer-container .rs-drawer[hidden]{display:none}.rs-drawer-container .rs-drawer .drawer-header{flex:none;display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;box-sizing:content-box;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button{flex:none;display:flex;flex-flow:row nowrap;align-items:center;padding:0;border:none;background-color:transparent;cursor:pointer}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button
|
|
3778
|
+
template: "<div #element id=\"rs-drawer-container\" class=\"rs-drawer-container\">\r\n <div class=\"rs-drawer-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div\r\n #drawer\r\n class=\"rs-drawer\"\r\n [attr.data-mode]=\"config.mode\"\r\n [attr.data-opened]=\"isOpened ? 'yes' : 'no'\"\r\n [attr.data-animation]=\"useAnimation\"\r\n [hidden]=\"hiddenDrawer\"\r\n (animationend)=\"onAnimationEnd()\"\r\n >\r\n <div class=\"drawer-header\" #header>\r\n <button class=\"drawer-return-button\" (click)=\"hide()\">\r\n <span class=\"drawer-sub-title\" *ngIf=\"config.subTitle\">\r\n {{ config.subTitle }}\r\n </span>\r\n </button>\r\n <div class=\"drawer-title\">{{ config.title }}</div>\r\n <div class=\"drawer-header-slot\" #headerSlot></div>\r\n </div>\r\n <div class=\"drawer-top-slot\" #topSlot></div>\r\n <div class=\"drawer-content-box\">\r\n <div class=\"drawer-content\" #content>\r\n <div class=\"drawer-content-container\">\r\n <ng-template #dynamicComponentContainer></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"drawer-toolbar-slot\" #toolbarSlot></div>\r\n </div>\r\n</div>\r\n",
|
|
3779
|
+
styles: [":host{display:block;height:100%}#rs-drawer-container{height:100%}.rs-drawer-container{height:100%;background-color:transparent;overflow:hidden;position:relative}.rs-drawer-container .rs-drawer-content{width:100%;height:100%;overflow:auto;margin-right:0!important}.rs-drawer-container .rs-drawer{width:100%;height:100%;border-left:none;background-color:transparent;overflow:visible;pointer-events:none;opacity:0;display:flex;flex-flow:column nowrap;position:absolute;z-index:2;top:0;left:100%}.rs-drawer-container .rs-drawer[data-opened=yes]{left:0;opacity:1}.rs-drawer-container .rs-drawer[data-animation=yes][data-opened=yes]{-webkit-animation:.5s ease-in-out drawer-open;animation:.5s ease-in-out drawer-open}@-webkit-keyframes drawer-open{from{left:100%;opacity:0}to{left:0;opacity:1}}@keyframes drawer-open{from{left:100%;opacity:0}to{left:0;opacity:1}}.rs-drawer-container .rs-drawer[data-animation=yes][data-opened=no]{-webkit-animation:.5s ease-in-out drawer-close;animation:.5s ease-in-out drawer-close}@-webkit-keyframes drawer-close{from{left:0;opacity:1}to{left:100%;opacity:0}}@keyframes drawer-close{from{left:0;opacity:1}to{left:100%;opacity:0}}.rs-drawer-container .rs-drawer[hidden]{display:none}.rs-drawer-container .rs-drawer .drawer-header{flex:none;display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;box-sizing:content-box;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button{flex:none;display:flex;flex-flow:row nowrap;align-items:center;padding:0;border:none;background-color:transparent;cursor:pointer}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button::before{content:url(\"data:image/svg+xml;charset=utf-8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDE4TDcuNTQ5ODYgMTJMMTIgNiIgc3Ryb2tlPSIjNkM3QzkwIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPHBhdGggZD0iTTE3LjQyNyAxMi41QzE3LjcwMzEgMTIuNSAxNy45MjcgMTIuMjc2MSAxNy45MjcgMTJDMTcuOTI3IDExLjcyMzkgMTcuNzAzMSAxMS41IDE3LjQyNyAxMS41TDE3LjQyNyAxMi41Wk03LjM5ODkzIDEyLjVMMTcuNDI3IDEyLjVMMTcuNDI3IDExLjVMNy4zOTg5MyAxMS41TDcuMzk4OTMgMTIuNVoiIGZpbGw9IiM2QzdDOTAiLz4KPC9zdmc+Cg==\");width:24px;height:24px;margin-right:8px;transition:transform 125ms ease-in-out}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button:hover::before{transform:translateX(-2px)}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button .drawer-sub-title{margin-right:12px;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title{flex:none;min-height:14px;padding:0 12px;border-left:1px solid #bdc4ca;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title:empty{padding:0}.rs-drawer-container .rs-drawer .drawer-content-box{flex:auto;height:0;background-color:#f7fafb;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-content{height:100%;padding:0 20px;border:1px solid #ebedf0;border-radius:15px;background-color:#fff;display:flex;flex-flow:column nowrap}.rs-drawer-container .rs-drawer .drawer-content .drawer-content-container{flex:auto;overflow:hidden auto}.rs-drawer-container .rs-drawer .drawer-toolbar-slot{flex:none;height:32px;margin-left:auto;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-toolbar-slot:empty{display:none}.rs-drawer-container .rs-drawer .drawer-top-slot{flex:none;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-top-slot:empty{height:var(--drawer-top,0);pointer-events:none}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header{height:46px;padding:0 12px 0 8px;background-color:#f7fafb}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-title{color:#1f3f5c;font-size:15px;font-weight:700;line-height:18px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content{padding-bottom:20px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-top-slot:empty+.drawer-content-box{padding-top:calc((var(--drawer-top,0) + 1) * 16px)}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header{height:24px;padding:6px 0;border-bottom:1px solid #eaedf0}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{color:#44566c;font-size:12px;line-height:14px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{font-weight:700}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px;padding-left:8px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar-slot{width:100%;padding:16px 0;box-sizing:content-box;border-top:1px solid #eaedf0}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar]{display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;gap:12px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button{display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;gap:6px;min-width:80px;height:32px;padding:0 12px;border:1px solid #adb5bd;border-radius:4px;background-color:#fff;cursor:pointer;color:#44566c;font-size:13px;font-family:Arial;font-style:normal;font-weight:400;line-height:16px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button:hover{border-color:#6c7c90}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button:disabled{opacity:1!important;border-color:#6c7c9066;color:#44566c66;cursor:unset}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary{border:none;background-color:#1364b3;color:#fff}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary:hover{background-color:#176bca}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary:disabled{background-color:#1364b366}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button img{width:16px;height:16px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=outer] .drawer-toolbar-slot [drawer-toolbar] button{height:26px;font-size:12px;line-height:14px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar-slot [drawer-toolbar] button img{display:none}"]
|
|
3907
3780
|
}] }
|
|
3908
3781
|
];
|
|
3909
3782
|
/** @nocollapse */
|
|
3910
3783
|
DrawerComponent.ctorParameters = () => [
|
|
3911
3784
|
{ type: ComponentFactoryResolver },
|
|
3912
3785
|
{ type: DrawerService },
|
|
3913
|
-
{ type: ChangeDetectorRef }
|
|
3914
|
-
{ type: StaticResourceService }
|
|
3786
|
+
{ type: ChangeDetectorRef }
|
|
3915
3787
|
];
|
|
3916
3788
|
DrawerComponent.propDecorators = {
|
|
3917
3789
|
element: [{ type: ViewChild, args: ["element", { static: false },] }],
|
|
@@ -3954,8 +3826,6 @@ if (false) {
|
|
|
3954
3826
|
DrawerComponent.prototype.isOpened;
|
|
3955
3827
|
/** @type {?} */
|
|
3956
3828
|
DrawerComponent.prototype.hiddenDrawer;
|
|
3957
|
-
/** @type {?} */
|
|
3958
|
-
DrawerComponent.prototype.backImage;
|
|
3959
3829
|
/**
|
|
3960
3830
|
* @type {?}
|
|
3961
3831
|
* @private
|
|
@@ -3976,11 +3846,6 @@ if (false) {
|
|
|
3976
3846
|
* @private
|
|
3977
3847
|
*/
|
|
3978
3848
|
DrawerComponent.prototype.ref;
|
|
3979
|
-
/**
|
|
3980
|
-
* @type {?}
|
|
3981
|
-
* @private
|
|
3982
|
-
*/
|
|
3983
|
-
DrawerComponent.prototype.staticResourceService;
|
|
3984
3849
|
}
|
|
3985
3850
|
|
|
3986
3851
|
/**
|
|
@@ -21624,6 +21489,7 @@ class TagInputComponent {
|
|
|
21624
21489
|
this.valueChange = new EventEmitter();
|
|
21625
21490
|
this.focus = new EventEmitter();
|
|
21626
21491
|
this.blur = new EventEmitter();
|
|
21492
|
+
this.keyup = new EventEmitter();
|
|
21627
21493
|
this.inputError = false;
|
|
21628
21494
|
}
|
|
21629
21495
|
/**
|
|
@@ -21657,15 +21523,18 @@ class TagInputComponent {
|
|
|
21657
21523
|
}
|
|
21658
21524
|
/**
|
|
21659
21525
|
* @param {?} event
|
|
21526
|
+
* @param {?=} type
|
|
21660
21527
|
* @return {?}
|
|
21661
21528
|
*/
|
|
21662
|
-
onAddTag(event) {
|
|
21529
|
+
onAddTag(event, type) {
|
|
21663
21530
|
/** @type {?} */
|
|
21664
21531
|
const inputValue = event.target.value;
|
|
21665
21532
|
if (inputValue && this.verifyInputValue(inputValue)) {
|
|
21666
21533
|
this.valueChange.emit([...this.value, inputValue]);
|
|
21667
21534
|
event.target.value = "";
|
|
21668
21535
|
}
|
|
21536
|
+
if (!type)
|
|
21537
|
+
this.keyup.emit(event);
|
|
21669
21538
|
}
|
|
21670
21539
|
/**
|
|
21671
21540
|
* @param {?} inputValue
|
|
@@ -21700,7 +21569,7 @@ class TagInputComponent {
|
|
|
21700
21569
|
* @return {?}
|
|
21701
21570
|
*/
|
|
21702
21571
|
onBlur(event) {
|
|
21703
|
-
this.onAddTag(event);
|
|
21572
|
+
this.onAddTag(event, "blur");
|
|
21704
21573
|
this.blur.emit();
|
|
21705
21574
|
}
|
|
21706
21575
|
}
|
|
@@ -21720,7 +21589,8 @@ TagInputComponent.propDecorators = {
|
|
|
21720
21589
|
maxlength: [{ type: Input, args: ["inputMaxlength",] }],
|
|
21721
21590
|
valueChange: [{ type: Output }],
|
|
21722
21591
|
focus: [{ type: Output }],
|
|
21723
|
-
blur: [{ type: Output }]
|
|
21592
|
+
blur: [{ type: Output }],
|
|
21593
|
+
keyup: [{ type: Output }]
|
|
21724
21594
|
};
|
|
21725
21595
|
if (false) {
|
|
21726
21596
|
/** @type {?} */
|
|
@@ -21742,6 +21612,8 @@ if (false) {
|
|
|
21742
21612
|
/** @type {?} */
|
|
21743
21613
|
TagInputComponent.prototype.blur;
|
|
21744
21614
|
/** @type {?} */
|
|
21615
|
+
TagInputComponent.prototype.keyup;
|
|
21616
|
+
/** @type {?} */
|
|
21745
21617
|
TagInputComponent.prototype.inputError;
|
|
21746
21618
|
}
|
|
21747
21619
|
|
|
@@ -33384,6 +33256,126 @@ KeepAliveService.decorators = [
|
|
|
33384
33256
|
];
|
|
33385
33257
|
/** @nocollapse */ KeepAliveService.ngInjectableDef = ɵɵdefineInjectable({ factory: function KeepAliveService_Factory() { return new KeepAliveService(); }, token: KeepAliveService, providedIn: "root" });
|
|
33386
33258
|
|
|
33259
|
+
/**
|
|
33260
|
+
* @fileoverview added by tsickle
|
|
33261
|
+
* Generated from: lib/service/static-resource.service.ts
|
|
33262
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
33263
|
+
*/
|
|
33264
|
+
class StaticResourceService {
|
|
33265
|
+
/**
|
|
33266
|
+
* @param {?} sanitizer
|
|
33267
|
+
*/
|
|
33268
|
+
constructor(sanitizer) {
|
|
33269
|
+
this.sanitizer = sanitizer;
|
|
33270
|
+
this.ResultMap = new Map();
|
|
33271
|
+
}
|
|
33272
|
+
/**
|
|
33273
|
+
* @param {?} url
|
|
33274
|
+
* @param {?=} cb
|
|
33275
|
+
* @return {?}
|
|
33276
|
+
*/
|
|
33277
|
+
load(url, cb = (/**
|
|
33278
|
+
* @return {?}
|
|
33279
|
+
*/
|
|
33280
|
+
() => { })) {
|
|
33281
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33282
|
+
if (!url || typeof url !== "string") {
|
|
33283
|
+
cb("");
|
|
33284
|
+
return "";
|
|
33285
|
+
}
|
|
33286
|
+
if (this.ResultMap.has(url)) {
|
|
33287
|
+
/** @type {?} */
|
|
33288
|
+
const result = this.ResultMap.get(url) || "";
|
|
33289
|
+
cb(result);
|
|
33290
|
+
return result;
|
|
33291
|
+
}
|
|
33292
|
+
/** @type {?} */
|
|
33293
|
+
const res = yield fetch(url);
|
|
33294
|
+
if (!res.ok) {
|
|
33295
|
+
cb("");
|
|
33296
|
+
return "";
|
|
33297
|
+
}
|
|
33298
|
+
/** @type {?} */
|
|
33299
|
+
const blob = yield res.blob();
|
|
33300
|
+
return new Promise((/**
|
|
33301
|
+
* @param {?} resolve
|
|
33302
|
+
* @return {?}
|
|
33303
|
+
*/
|
|
33304
|
+
(resolve) => {
|
|
33305
|
+
/** @type {?} */
|
|
33306
|
+
const reader = new FileReader();
|
|
33307
|
+
/** @type {?} */
|
|
33308
|
+
const callback = (/**
|
|
33309
|
+
* @param {?} result
|
|
33310
|
+
* @return {?}
|
|
33311
|
+
*/
|
|
33312
|
+
(result) => {
|
|
33313
|
+
/** @type {?} */
|
|
33314
|
+
const safeUrl = this.sanitizer.bypassSecurityTrustUrl(result);
|
|
33315
|
+
if (safeUrl) {
|
|
33316
|
+
this.ResultMap.set(url, safeUrl);
|
|
33317
|
+
}
|
|
33318
|
+
resolve(safeUrl);
|
|
33319
|
+
cb(safeUrl);
|
|
33320
|
+
});
|
|
33321
|
+
reader.onloadend = (/**
|
|
33322
|
+
* @return {?}
|
|
33323
|
+
*/
|
|
33324
|
+
() => callback((/** @type {?} */ (reader.result))));
|
|
33325
|
+
reader.onerror = (/**
|
|
33326
|
+
* @return {?}
|
|
33327
|
+
*/
|
|
33328
|
+
() => callback(""));
|
|
33329
|
+
reader.readAsDataURL(blob);
|
|
33330
|
+
}));
|
|
33331
|
+
});
|
|
33332
|
+
}
|
|
33333
|
+
/**
|
|
33334
|
+
* @param {?} url
|
|
33335
|
+
* @param {?} cb
|
|
33336
|
+
* @return {?}
|
|
33337
|
+
*/
|
|
33338
|
+
forceLoad(url, cb) {
|
|
33339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33340
|
+
while (true) {
|
|
33341
|
+
/** @type {?} */
|
|
33342
|
+
const result = yield this.load(url);
|
|
33343
|
+
if (result) {
|
|
33344
|
+
cb(result);
|
|
33345
|
+
return result;
|
|
33346
|
+
}
|
|
33347
|
+
yield new Promise((/**
|
|
33348
|
+
* @param {?} resolve
|
|
33349
|
+
* @return {?}
|
|
33350
|
+
*/
|
|
33351
|
+
(resolve) => setTimeout(resolve, 2000)));
|
|
33352
|
+
}
|
|
33353
|
+
});
|
|
33354
|
+
}
|
|
33355
|
+
}
|
|
33356
|
+
StaticResourceService.decorators = [
|
|
33357
|
+
{ type: Injectable, args: [{
|
|
33358
|
+
providedIn: "root",
|
|
33359
|
+
},] }
|
|
33360
|
+
];
|
|
33361
|
+
/** @nocollapse */
|
|
33362
|
+
StaticResourceService.ctorParameters = () => [
|
|
33363
|
+
{ type: DomSanitizer }
|
|
33364
|
+
];
|
|
33365
|
+
/** @nocollapse */ StaticResourceService.ngInjectableDef = ɵɵdefineInjectable({ factory: function StaticResourceService_Factory() { return new StaticResourceService(ɵɵinject(DomSanitizer)); }, token: StaticResourceService, providedIn: "root" });
|
|
33366
|
+
if (false) {
|
|
33367
|
+
/**
|
|
33368
|
+
* @type {?}
|
|
33369
|
+
* @private
|
|
33370
|
+
*/
|
|
33371
|
+
StaticResourceService.prototype.ResultMap;
|
|
33372
|
+
/**
|
|
33373
|
+
* @type {?}
|
|
33374
|
+
* @private
|
|
33375
|
+
*/
|
|
33376
|
+
StaticResourceService.prototype.sanitizer;
|
|
33377
|
+
}
|
|
33378
|
+
|
|
33387
33379
|
/**
|
|
33388
33380
|
* @fileoverview added by tsickle
|
|
33389
33381
|
* Generated from: lib/form/confirm-select/index.component.ts
|