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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@syncfusion/ej2-angular-grids'), require('lodash'), require('rxjs'), require('@angular/material/snack-bar'), require('@angular/material/dialog'), require('@syncfusion/ej2-angular-treegrid'), require('@syncfusion/ej2-angular-navigations'), require('@angular/router'), require('rxjs/operators'), require('@angular/cdk/drag-drop'), require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('raise-common-lib', ['exports', '@angular/core', '@syncfusion/ej2-angular-grids', 'lodash', 'rxjs', '@angular/material/snack-bar', '@angular/material/dialog', '@syncfusion/ej2-angular-treegrid', '@syncfusion/ej2-angular-navigations', '@angular/router', 'rxjs/operators', '@angular/cdk/drag-drop', '@angular/
|
|
4
|
-
(global = global || self, factory(global['raise-common-lib'] = {}, global.ng.core, global.ej2AngularGrids, global.lodash, global.rxjs, global.ng.material['snack-bar'], global.ng.material.dialog, global.ej2AngularTreegrid, global.ej2AngularNavigations, global.ng.router, global.rxjs.operators, global.ng.cdk['drag-drop'], global.ng.
|
|
5
|
-
}(this, (function (exports, core, ej2AngularGrids, lodash, rxjs, snackBar, dialog, ej2AngularTreegrid, ej2AngularNavigations, router, operators, dragDrop,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@syncfusion/ej2-angular-grids'), require('lodash'), require('rxjs'), require('@angular/material/snack-bar'), require('@angular/material/dialog'), require('@syncfusion/ej2-angular-treegrid'), require('@syncfusion/ej2-angular-navigations'), require('@angular/router'), require('rxjs/operators'), require('@angular/cdk/drag-drop'), require('@angular/common/http'), require('@syncfusion/ej2-base'), require('resize-observer-polyfill'), require('@syncfusion/ej2-data'), require('moment'), require('circular-json'), require('@angular/material/core'), require('@syncfusion/ej2-angular-layouts'), require('@angular/common'), require('@angular/material/icon'), require('@angular/platform-browser'), require('@angular/forms'), require('ng-inline-svg'), require('@syncfusion/ej2-angular-buttons'), require('@syncfusion/ej2-angular-diagrams'), require('@syncfusion/ej2-angular-popups'), require('@syncfusion/ej2-angular-calendars'), require('@syncfusion/ej2-angular-inputs'), require('@syncfusion/ej2-angular-dropdowns'), require('@syncfusion/ej2-angular-pivotview'), require('@syncfusion/ej2-angular-charts'), require('@syncfusion/ej2-angular-pdfviewer'), require('@syncfusion/ej2-angular-splitbuttons'), require('@syncfusion/ej2-angular-richtexteditor'), require('@angular/material/menu'), require('@angular/material/tooltip'), require('@angular/material/checkbox'), require('@angular/material/select'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/button'), require('@syncfusion/ej2-inputs/src/maskedtextbox/maskedtextbox'), require('@syncfusion/ej2-data/src/manager'), require('@syncfusion/ej2-data/src/query')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('raise-common-lib', ['exports', '@angular/core', '@syncfusion/ej2-angular-grids', 'lodash', 'rxjs', '@angular/material/snack-bar', '@angular/material/dialog', '@syncfusion/ej2-angular-treegrid', '@syncfusion/ej2-angular-navigations', '@angular/router', 'rxjs/operators', '@angular/cdk/drag-drop', '@angular/common/http', '@syncfusion/ej2-base', 'resize-observer-polyfill', '@syncfusion/ej2-data', 'moment', 'circular-json', '@angular/material/core', '@syncfusion/ej2-angular-layouts', '@angular/common', '@angular/material/icon', '@angular/platform-browser', '@angular/forms', 'ng-inline-svg', '@syncfusion/ej2-angular-buttons', '@syncfusion/ej2-angular-diagrams', '@syncfusion/ej2-angular-popups', '@syncfusion/ej2-angular-calendars', '@syncfusion/ej2-angular-inputs', '@syncfusion/ej2-angular-dropdowns', '@syncfusion/ej2-angular-pivotview', '@syncfusion/ej2-angular-charts', '@syncfusion/ej2-angular-pdfviewer', '@syncfusion/ej2-angular-splitbuttons', '@syncfusion/ej2-angular-richtexteditor', '@angular/material/menu', '@angular/material/tooltip', '@angular/material/checkbox', '@angular/material/select', '@angular/material/form-field', '@angular/material/input', '@angular/material/button', '@syncfusion/ej2-inputs/src/maskedtextbox/maskedtextbox', '@syncfusion/ej2-data/src/manager', '@syncfusion/ej2-data/src/query'], factory) :
|
|
4
|
+
(global = global || self, factory(global['raise-common-lib'] = {}, global.ng.core, global.ej2AngularGrids, global.lodash, global.rxjs, global.ng.material['snack-bar'], global.ng.material.dialog, global.ej2AngularTreegrid, global.ej2AngularNavigations, global.ng.router, global.rxjs.operators, global.ng.cdk['drag-drop'], global.ng.common.http, global.ej2Base, global.ResizeObserver, global.ej2Data, global.moment, global.CircularJSON, global.ng.material.core, global.ej2AngularLayouts, global.ng.common, global.ng.material.icon, global.ng.platformBrowser, global.ng.forms, global.ngInlineSvg, global.ej2AngularButtons, global.ej2AngularDiagrams, global.ej2AngularPopups, global.ej2AngularCalendars, global.ej2AngularInputs, global.ej2AngularDropdowns, global.ej2AngularPivotview, global.ej2AngularCharts, global.ej2AngularPdfviewer, global.ej2AngularSplitbuttons, global.ej2AngularRichtexteditor, global.ng.material.menu, global.ng.material.tooltip, global.ng.material.checkbox, global.ng.material.select, global.ng.material['form-field'], global.ng.material.input, global.ng.material.button, global.maskedtextbox, global.manager, global.query));
|
|
5
|
+
}(this, (function (exports, core, ej2AngularGrids, lodash, rxjs, snackBar, dialog, ej2AngularTreegrid, ej2AngularNavigations, router, operators, dragDrop, http, ej2Base, ResizeObserver, ej2Data, moment, CircularJSON, core$1, ej2AngularLayouts, common, icon, platformBrowser, forms, ngInlineSvg, ej2AngularButtons, ej2AngularDiagrams, ej2AngularPopups, ej2AngularCalendars, ej2AngularInputs, ej2AngularDropdowns, ej2AngularPivotview, ej2AngularCharts, ej2AngularPdfviewer, ej2AngularSplitbuttons, ej2AngularRichtexteditor, menu, tooltip, checkbox, select, formField, input, button, maskedtextbox, manager, query) { 'use strict';
|
|
6
6
|
|
|
7
7
|
ResizeObserver = ResizeObserver && ResizeObserver.hasOwnProperty('default') ? ResizeObserver['default'] : ResizeObserver;
|
|
8
8
|
moment = moment && moment.hasOwnProperty('default') ? moment['default'] : moment;
|
|
@@ -4424,176 +4424,21 @@
|
|
|
4424
4424
|
MultiTabComponent.prototype.routeReuseStrategy;
|
|
4425
4425
|
}
|
|
4426
4426
|
|
|
4427
|
-
/**
|
|
4428
|
-
* @fileoverview added by tsickle
|
|
4429
|
-
* Generated from: lib/service/static-resource.service.ts
|
|
4430
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4431
|
-
*/
|
|
4432
|
-
var StaticResourceService = /** @class */ (function () {
|
|
4433
|
-
function StaticResourceService(sanitizer) {
|
|
4434
|
-
this.sanitizer = sanitizer;
|
|
4435
|
-
this.ResultMap = new Map();
|
|
4436
|
-
}
|
|
4437
|
-
/**
|
|
4438
|
-
* @param {?} url
|
|
4439
|
-
* @param {?=} cb
|
|
4440
|
-
* @return {?}
|
|
4441
|
-
*/
|
|
4442
|
-
StaticResourceService.prototype.load = /**
|
|
4443
|
-
* @param {?} url
|
|
4444
|
-
* @param {?=} cb
|
|
4445
|
-
* @return {?}
|
|
4446
|
-
*/
|
|
4447
|
-
function (url, cb) {
|
|
4448
|
-
if (cb === void 0) { cb = (/**
|
|
4449
|
-
* @return {?}
|
|
4450
|
-
*/
|
|
4451
|
-
function () { }); }
|
|
4452
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4453
|
-
var res, blob;
|
|
4454
|
-
var _this = this;
|
|
4455
|
-
return __generator(this, function (_a) {
|
|
4456
|
-
switch (_a.label) {
|
|
4457
|
-
case 0:
|
|
4458
|
-
if (!url || typeof url !== "string") {
|
|
4459
|
-
cb("");
|
|
4460
|
-
return [2 /*return*/, ""];
|
|
4461
|
-
}
|
|
4462
|
-
if (this.ResultMap.has(url)) {
|
|
4463
|
-
return [2 /*return*/, this.ResultMap.get(url) || ""];
|
|
4464
|
-
}
|
|
4465
|
-
return [4 /*yield*/, fetch(url)];
|
|
4466
|
-
case 1:
|
|
4467
|
-
res = _a.sent();
|
|
4468
|
-
if (!res.ok) {
|
|
4469
|
-
cb("");
|
|
4470
|
-
return [2 /*return*/, ""];
|
|
4471
|
-
}
|
|
4472
|
-
return [4 /*yield*/, res.blob()];
|
|
4473
|
-
case 2:
|
|
4474
|
-
blob = _a.sent();
|
|
4475
|
-
return [2 /*return*/, new Promise((/**
|
|
4476
|
-
* @param {?} resolve
|
|
4477
|
-
* @return {?}
|
|
4478
|
-
*/
|
|
4479
|
-
function (resolve) {
|
|
4480
|
-
/** @type {?} */
|
|
4481
|
-
var reader = new FileReader();
|
|
4482
|
-
/** @type {?} */
|
|
4483
|
-
var callback = (/**
|
|
4484
|
-
* @param {?} result
|
|
4485
|
-
* @return {?}
|
|
4486
|
-
*/
|
|
4487
|
-
function (result) {
|
|
4488
|
-
/** @type {?} */
|
|
4489
|
-
var safeUrl = _this.sanitizer.bypassSecurityTrustUrl(result);
|
|
4490
|
-
if (safeUrl) {
|
|
4491
|
-
_this.ResultMap.set(url, safeUrl);
|
|
4492
|
-
}
|
|
4493
|
-
resolve(safeUrl);
|
|
4494
|
-
cb(safeUrl);
|
|
4495
|
-
});
|
|
4496
|
-
reader.onloadend = (/**
|
|
4497
|
-
* @return {?}
|
|
4498
|
-
*/
|
|
4499
|
-
function () { return callback((/** @type {?} */ (reader.result))); });
|
|
4500
|
-
reader.onerror = (/**
|
|
4501
|
-
* @return {?}
|
|
4502
|
-
*/
|
|
4503
|
-
function () { return callback(""); });
|
|
4504
|
-
reader.readAsDataURL(blob);
|
|
4505
|
-
}))];
|
|
4506
|
-
}
|
|
4507
|
-
});
|
|
4508
|
-
});
|
|
4509
|
-
};
|
|
4510
|
-
/**
|
|
4511
|
-
* @param {?} url
|
|
4512
|
-
* @param {?} cb
|
|
4513
|
-
* @return {?}
|
|
4514
|
-
*/
|
|
4515
|
-
StaticResourceService.prototype.forceLoad = /**
|
|
4516
|
-
* @param {?} url
|
|
4517
|
-
* @param {?} cb
|
|
4518
|
-
* @return {?}
|
|
4519
|
-
*/
|
|
4520
|
-
function (url, cb) {
|
|
4521
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4522
|
-
var result;
|
|
4523
|
-
return __generator(this, function (_a) {
|
|
4524
|
-
switch (_a.label) {
|
|
4525
|
-
case 0:
|
|
4526
|
-
if (!true) return [3 /*break*/, 3];
|
|
4527
|
-
return [4 /*yield*/, this.load(url)];
|
|
4528
|
-
case 1:
|
|
4529
|
-
result = _a.sent();
|
|
4530
|
-
if (result) {
|
|
4531
|
-
cb(result);
|
|
4532
|
-
return [2 /*return*/, result];
|
|
4533
|
-
}
|
|
4534
|
-
return [4 /*yield*/, new Promise((/**
|
|
4535
|
-
* @param {?} resolve
|
|
4536
|
-
* @return {?}
|
|
4537
|
-
*/
|
|
4538
|
-
function (resolve) { return setTimeout(resolve, 2000); }))];
|
|
4539
|
-
case 2:
|
|
4540
|
-
_a.sent();
|
|
4541
|
-
return [3 /*break*/, 0];
|
|
4542
|
-
case 3: return [2 /*return*/];
|
|
4543
|
-
}
|
|
4544
|
-
});
|
|
4545
|
-
});
|
|
4546
|
-
};
|
|
4547
|
-
StaticResourceService.decorators = [
|
|
4548
|
-
{ type: core.Injectable, args: [{
|
|
4549
|
-
providedIn: "root",
|
|
4550
|
-
},] }
|
|
4551
|
-
];
|
|
4552
|
-
/** @nocollapse */
|
|
4553
|
-
StaticResourceService.ctorParameters = function () { return [
|
|
4554
|
-
{ type: platformBrowser.DomSanitizer }
|
|
4555
|
-
]; };
|
|
4556
|
-
/** @nocollapse */ StaticResourceService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function StaticResourceService_Factory() { return new StaticResourceService(core.ɵɵinject(platformBrowser.DomSanitizer)); }, token: StaticResourceService, providedIn: "root" });
|
|
4557
|
-
return StaticResourceService;
|
|
4558
|
-
}());
|
|
4559
|
-
if (false) {
|
|
4560
|
-
/**
|
|
4561
|
-
* @type {?}
|
|
4562
|
-
* @private
|
|
4563
|
-
*/
|
|
4564
|
-
StaticResourceService.prototype.ResultMap;
|
|
4565
|
-
/**
|
|
4566
|
-
* @type {?}
|
|
4567
|
-
* @private
|
|
4568
|
-
*/
|
|
4569
|
-
StaticResourceService.prototype.sanitizer;
|
|
4570
|
-
}
|
|
4571
|
-
|
|
4572
4427
|
/**
|
|
4573
4428
|
* @fileoverview added by tsickle
|
|
4574
4429
|
* Generated from: lib/layout/drawer/index.component.ts
|
|
4575
4430
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4576
4431
|
*/
|
|
4577
4432
|
var DrawerComponent = /** @class */ (function () {
|
|
4578
|
-
function DrawerComponent(resolver, service, ref
|
|
4579
|
-
var _this = this;
|
|
4433
|
+
function DrawerComponent(resolver, service, ref) {
|
|
4580
4434
|
this.resolver = resolver;
|
|
4581
4435
|
this.service = service;
|
|
4582
4436
|
this.ref = ref;
|
|
4583
|
-
this.staticResourceService = staticResourceService;
|
|
4584
4437
|
this.config = DefaultDrawerConfig;
|
|
4585
4438
|
this.useAnimation = "yes";
|
|
4586
4439
|
this.isOpened = false;
|
|
4587
4440
|
this.hiddenDrawer = true;
|
|
4588
|
-
this.backImage = null;
|
|
4589
4441
|
this.componentRefMap = new Map();
|
|
4590
|
-
staticResourceService.load("/assets/img/drawer-back.svg", (/**
|
|
4591
|
-
* @param {?} result
|
|
4592
|
-
* @return {?}
|
|
4593
|
-
*/
|
|
4594
|
-
function (result) {
|
|
4595
|
-
_this.backImage = result;
|
|
4596
|
-
}));
|
|
4597
4442
|
}
|
|
4598
4443
|
/**
|
|
4599
4444
|
* @private
|
|
@@ -4928,16 +4773,15 @@
|
|
|
4928
4773
|
DrawerComponent.decorators = [
|
|
4929
4774
|
{ type: core.Component, args: [{
|
|
4930
4775
|
selector: "rs-drawer",
|
|
4931
|
-
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 <
|
|
4932
|
-
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
|
|
4776
|
+
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",
|
|
4777
|
+
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}"]
|
|
4933
4778
|
}] }
|
|
4934
4779
|
];
|
|
4935
4780
|
/** @nocollapse */
|
|
4936
4781
|
DrawerComponent.ctorParameters = function () { return [
|
|
4937
4782
|
{ type: core.ComponentFactoryResolver },
|
|
4938
4783
|
{ type: DrawerService },
|
|
4939
|
-
{ type: core.ChangeDetectorRef }
|
|
4940
|
-
{ type: StaticResourceService }
|
|
4784
|
+
{ type: core.ChangeDetectorRef }
|
|
4941
4785
|
]; };
|
|
4942
4786
|
DrawerComponent.propDecorators = {
|
|
4943
4787
|
element: [{ type: core.ViewChild, args: ["element", { static: false },] }],
|
|
@@ -4982,8 +4826,6 @@
|
|
|
4982
4826
|
DrawerComponent.prototype.isOpened;
|
|
4983
4827
|
/** @type {?} */
|
|
4984
4828
|
DrawerComponent.prototype.hiddenDrawer;
|
|
4985
|
-
/** @type {?} */
|
|
4986
|
-
DrawerComponent.prototype.backImage;
|
|
4987
4829
|
/**
|
|
4988
4830
|
* @type {?}
|
|
4989
4831
|
* @private
|
|
@@ -5004,11 +4846,6 @@
|
|
|
5004
4846
|
* @private
|
|
5005
4847
|
*/
|
|
5006
4848
|
DrawerComponent.prototype.ref;
|
|
5007
|
-
/**
|
|
5008
|
-
* @type {?}
|
|
5009
|
-
* @private
|
|
5010
|
-
*/
|
|
5011
|
-
DrawerComponent.prototype.staticResourceService;
|
|
5012
4849
|
}
|
|
5013
4850
|
|
|
5014
4851
|
/**
|
|
@@ -22791,6 +22628,7 @@
|
|
|
22791
22628
|
this.valueChange = new core.EventEmitter();
|
|
22792
22629
|
this.focus = new core.EventEmitter();
|
|
22793
22630
|
this.blur = new core.EventEmitter();
|
|
22631
|
+
this.keyup = new core.EventEmitter();
|
|
22794
22632
|
this.inputError = false;
|
|
22795
22633
|
}
|
|
22796
22634
|
Object.defineProperty(TagInputComponent.prototype, "inputMinlength", {
|
|
@@ -22839,19 +22677,23 @@
|
|
|
22839
22677
|
};
|
|
22840
22678
|
/**
|
|
22841
22679
|
* @param {?} event
|
|
22680
|
+
* @param {?=} type
|
|
22842
22681
|
* @return {?}
|
|
22843
22682
|
*/
|
|
22844
22683
|
TagInputComponent.prototype.onAddTag = /**
|
|
22845
22684
|
* @param {?} event
|
|
22685
|
+
* @param {?=} type
|
|
22846
22686
|
* @return {?}
|
|
22847
22687
|
*/
|
|
22848
|
-
function (event) {
|
|
22688
|
+
function (event, type) {
|
|
22849
22689
|
/** @type {?} */
|
|
22850
22690
|
var inputValue = event.target.value;
|
|
22851
22691
|
if (inputValue && this.verifyInputValue(inputValue)) {
|
|
22852
22692
|
this.valueChange.emit(__spread(this.value, [inputValue]));
|
|
22853
22693
|
event.target.value = "";
|
|
22854
22694
|
}
|
|
22695
|
+
if (!type)
|
|
22696
|
+
this.keyup.emit(event);
|
|
22855
22697
|
};
|
|
22856
22698
|
/**
|
|
22857
22699
|
* @param {?} inputValue
|
|
@@ -22900,7 +22742,7 @@
|
|
|
22900
22742
|
* @return {?}
|
|
22901
22743
|
*/
|
|
22902
22744
|
function (event) {
|
|
22903
|
-
this.onAddTag(event);
|
|
22745
|
+
this.onAddTag(event, "blur");
|
|
22904
22746
|
this.blur.emit();
|
|
22905
22747
|
};
|
|
22906
22748
|
TagInputComponent.decorators = [
|
|
@@ -22919,7 +22761,8 @@
|
|
|
22919
22761
|
maxlength: [{ type: core.Input, args: ["inputMaxlength",] }],
|
|
22920
22762
|
valueChange: [{ type: core.Output }],
|
|
22921
22763
|
focus: [{ type: core.Output }],
|
|
22922
|
-
blur: [{ type: core.Output }]
|
|
22764
|
+
blur: [{ type: core.Output }],
|
|
22765
|
+
keyup: [{ type: core.Output }]
|
|
22923
22766
|
};
|
|
22924
22767
|
return TagInputComponent;
|
|
22925
22768
|
}());
|
|
@@ -22943,6 +22786,8 @@
|
|
|
22943
22786
|
/** @type {?} */
|
|
22944
22787
|
TagInputComponent.prototype.blur;
|
|
22945
22788
|
/** @type {?} */
|
|
22789
|
+
TagInputComponent.prototype.keyup;
|
|
22790
|
+
/** @type {?} */
|
|
22946
22791
|
TagInputComponent.prototype.inputError;
|
|
22947
22792
|
}
|
|
22948
22793
|
|
|
@@ -36314,6 +36159,153 @@
|
|
|
36314
36159
|
return KeepAliveService;
|
|
36315
36160
|
}());
|
|
36316
36161
|
|
|
36162
|
+
/**
|
|
36163
|
+
* @fileoverview added by tsickle
|
|
36164
|
+
* Generated from: lib/service/static-resource.service.ts
|
|
36165
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
36166
|
+
*/
|
|
36167
|
+
var StaticResourceService = /** @class */ (function () {
|
|
36168
|
+
function StaticResourceService(sanitizer) {
|
|
36169
|
+
this.sanitizer = sanitizer;
|
|
36170
|
+
this.ResultMap = new Map();
|
|
36171
|
+
}
|
|
36172
|
+
/**
|
|
36173
|
+
* @param {?} url
|
|
36174
|
+
* @param {?=} cb
|
|
36175
|
+
* @return {?}
|
|
36176
|
+
*/
|
|
36177
|
+
StaticResourceService.prototype.load = /**
|
|
36178
|
+
* @param {?} url
|
|
36179
|
+
* @param {?=} cb
|
|
36180
|
+
* @return {?}
|
|
36181
|
+
*/
|
|
36182
|
+
function (url, cb) {
|
|
36183
|
+
if (cb === void 0) { cb = (/**
|
|
36184
|
+
* @return {?}
|
|
36185
|
+
*/
|
|
36186
|
+
function () { }); }
|
|
36187
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
36188
|
+
var result, res, blob;
|
|
36189
|
+
var _this = this;
|
|
36190
|
+
return __generator(this, function (_a) {
|
|
36191
|
+
switch (_a.label) {
|
|
36192
|
+
case 0:
|
|
36193
|
+
if (!url || typeof url !== "string") {
|
|
36194
|
+
cb("");
|
|
36195
|
+
return [2 /*return*/, ""];
|
|
36196
|
+
}
|
|
36197
|
+
if (this.ResultMap.has(url)) {
|
|
36198
|
+
result = this.ResultMap.get(url) || "";
|
|
36199
|
+
cb(result);
|
|
36200
|
+
return [2 /*return*/, result];
|
|
36201
|
+
}
|
|
36202
|
+
return [4 /*yield*/, fetch(url)];
|
|
36203
|
+
case 1:
|
|
36204
|
+
res = _a.sent();
|
|
36205
|
+
if (!res.ok) {
|
|
36206
|
+
cb("");
|
|
36207
|
+
return [2 /*return*/, ""];
|
|
36208
|
+
}
|
|
36209
|
+
return [4 /*yield*/, res.blob()];
|
|
36210
|
+
case 2:
|
|
36211
|
+
blob = _a.sent();
|
|
36212
|
+
return [2 /*return*/, new Promise((/**
|
|
36213
|
+
* @param {?} resolve
|
|
36214
|
+
* @return {?}
|
|
36215
|
+
*/
|
|
36216
|
+
function (resolve) {
|
|
36217
|
+
/** @type {?} */
|
|
36218
|
+
var reader = new FileReader();
|
|
36219
|
+
/** @type {?} */
|
|
36220
|
+
var callback = (/**
|
|
36221
|
+
* @param {?} result
|
|
36222
|
+
* @return {?}
|
|
36223
|
+
*/
|
|
36224
|
+
function (result) {
|
|
36225
|
+
/** @type {?} */
|
|
36226
|
+
var safeUrl = _this.sanitizer.bypassSecurityTrustUrl(result);
|
|
36227
|
+
if (safeUrl) {
|
|
36228
|
+
_this.ResultMap.set(url, safeUrl);
|
|
36229
|
+
}
|
|
36230
|
+
resolve(safeUrl);
|
|
36231
|
+
cb(safeUrl);
|
|
36232
|
+
});
|
|
36233
|
+
reader.onloadend = (/**
|
|
36234
|
+
* @return {?}
|
|
36235
|
+
*/
|
|
36236
|
+
function () { return callback((/** @type {?} */ (reader.result))); });
|
|
36237
|
+
reader.onerror = (/**
|
|
36238
|
+
* @return {?}
|
|
36239
|
+
*/
|
|
36240
|
+
function () { return callback(""); });
|
|
36241
|
+
reader.readAsDataURL(blob);
|
|
36242
|
+
}))];
|
|
36243
|
+
}
|
|
36244
|
+
});
|
|
36245
|
+
});
|
|
36246
|
+
};
|
|
36247
|
+
/**
|
|
36248
|
+
* @param {?} url
|
|
36249
|
+
* @param {?} cb
|
|
36250
|
+
* @return {?}
|
|
36251
|
+
*/
|
|
36252
|
+
StaticResourceService.prototype.forceLoad = /**
|
|
36253
|
+
* @param {?} url
|
|
36254
|
+
* @param {?} cb
|
|
36255
|
+
* @return {?}
|
|
36256
|
+
*/
|
|
36257
|
+
function (url, cb) {
|
|
36258
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
36259
|
+
var result;
|
|
36260
|
+
return __generator(this, function (_a) {
|
|
36261
|
+
switch (_a.label) {
|
|
36262
|
+
case 0:
|
|
36263
|
+
if (!true) return [3 /*break*/, 3];
|
|
36264
|
+
return [4 /*yield*/, this.load(url)];
|
|
36265
|
+
case 1:
|
|
36266
|
+
result = _a.sent();
|
|
36267
|
+
if (result) {
|
|
36268
|
+
cb(result);
|
|
36269
|
+
return [2 /*return*/, result];
|
|
36270
|
+
}
|
|
36271
|
+
return [4 /*yield*/, new Promise((/**
|
|
36272
|
+
* @param {?} resolve
|
|
36273
|
+
* @return {?}
|
|
36274
|
+
*/
|
|
36275
|
+
function (resolve) { return setTimeout(resolve, 2000); }))];
|
|
36276
|
+
case 2:
|
|
36277
|
+
_a.sent();
|
|
36278
|
+
return [3 /*break*/, 0];
|
|
36279
|
+
case 3: return [2 /*return*/];
|
|
36280
|
+
}
|
|
36281
|
+
});
|
|
36282
|
+
});
|
|
36283
|
+
};
|
|
36284
|
+
StaticResourceService.decorators = [
|
|
36285
|
+
{ type: core.Injectable, args: [{
|
|
36286
|
+
providedIn: "root",
|
|
36287
|
+
},] }
|
|
36288
|
+
];
|
|
36289
|
+
/** @nocollapse */
|
|
36290
|
+
StaticResourceService.ctorParameters = function () { return [
|
|
36291
|
+
{ type: platformBrowser.DomSanitizer }
|
|
36292
|
+
]; };
|
|
36293
|
+
/** @nocollapse */ StaticResourceService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function StaticResourceService_Factory() { return new StaticResourceService(core.ɵɵinject(platformBrowser.DomSanitizer)); }, token: StaticResourceService, providedIn: "root" });
|
|
36294
|
+
return StaticResourceService;
|
|
36295
|
+
}());
|
|
36296
|
+
if (false) {
|
|
36297
|
+
/**
|
|
36298
|
+
* @type {?}
|
|
36299
|
+
* @private
|
|
36300
|
+
*/
|
|
36301
|
+
StaticResourceService.prototype.ResultMap;
|
|
36302
|
+
/**
|
|
36303
|
+
* @type {?}
|
|
36304
|
+
* @private
|
|
36305
|
+
*/
|
|
36306
|
+
StaticResourceService.prototype.sanitizer;
|
|
36307
|
+
}
|
|
36308
|
+
|
|
36317
36309
|
/**
|
|
36318
36310
|
* @fileoverview added by tsickle
|
|
36319
36311
|
* Generated from: lib/form/confirm-select/index.component.ts
|