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
|
@@ -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';
|
|
@@ -4058,176 +4058,21 @@ if (false) {
|
|
|
4058
4058
|
MultiTabComponent.prototype.routeReuseStrategy;
|
|
4059
4059
|
}
|
|
4060
4060
|
|
|
4061
|
-
/**
|
|
4062
|
-
* @fileoverview added by tsickle
|
|
4063
|
-
* Generated from: lib/service/static-resource.service.ts
|
|
4064
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4065
|
-
*/
|
|
4066
|
-
var StaticResourceService = /** @class */ (function () {
|
|
4067
|
-
function StaticResourceService(sanitizer) {
|
|
4068
|
-
this.sanitizer = sanitizer;
|
|
4069
|
-
this.ResultMap = new Map();
|
|
4070
|
-
}
|
|
4071
|
-
/**
|
|
4072
|
-
* @param {?} url
|
|
4073
|
-
* @param {?=} cb
|
|
4074
|
-
* @return {?}
|
|
4075
|
-
*/
|
|
4076
|
-
StaticResourceService.prototype.load = /**
|
|
4077
|
-
* @param {?} url
|
|
4078
|
-
* @param {?=} cb
|
|
4079
|
-
* @return {?}
|
|
4080
|
-
*/
|
|
4081
|
-
function (url, cb) {
|
|
4082
|
-
if (cb === void 0) { cb = (/**
|
|
4083
|
-
* @return {?}
|
|
4084
|
-
*/
|
|
4085
|
-
function () { }); }
|
|
4086
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4087
|
-
var res, blob;
|
|
4088
|
-
var _this = this;
|
|
4089
|
-
return __generator(this, function (_a) {
|
|
4090
|
-
switch (_a.label) {
|
|
4091
|
-
case 0:
|
|
4092
|
-
if (!url || typeof url !== "string") {
|
|
4093
|
-
cb("");
|
|
4094
|
-
return [2 /*return*/, ""];
|
|
4095
|
-
}
|
|
4096
|
-
if (this.ResultMap.has(url)) {
|
|
4097
|
-
return [2 /*return*/, this.ResultMap.get(url) || ""];
|
|
4098
|
-
}
|
|
4099
|
-
return [4 /*yield*/, fetch(url)];
|
|
4100
|
-
case 1:
|
|
4101
|
-
res = _a.sent();
|
|
4102
|
-
if (!res.ok) {
|
|
4103
|
-
cb("");
|
|
4104
|
-
return [2 /*return*/, ""];
|
|
4105
|
-
}
|
|
4106
|
-
return [4 /*yield*/, res.blob()];
|
|
4107
|
-
case 2:
|
|
4108
|
-
blob = _a.sent();
|
|
4109
|
-
return [2 /*return*/, new Promise((/**
|
|
4110
|
-
* @param {?} resolve
|
|
4111
|
-
* @return {?}
|
|
4112
|
-
*/
|
|
4113
|
-
function (resolve) {
|
|
4114
|
-
/** @type {?} */
|
|
4115
|
-
var reader = new FileReader();
|
|
4116
|
-
/** @type {?} */
|
|
4117
|
-
var callback = (/**
|
|
4118
|
-
* @param {?} result
|
|
4119
|
-
* @return {?}
|
|
4120
|
-
*/
|
|
4121
|
-
function (result) {
|
|
4122
|
-
/** @type {?} */
|
|
4123
|
-
var safeUrl = _this.sanitizer.bypassSecurityTrustUrl(result);
|
|
4124
|
-
if (safeUrl) {
|
|
4125
|
-
_this.ResultMap.set(url, safeUrl);
|
|
4126
|
-
}
|
|
4127
|
-
resolve(safeUrl);
|
|
4128
|
-
cb(safeUrl);
|
|
4129
|
-
});
|
|
4130
|
-
reader.onloadend = (/**
|
|
4131
|
-
* @return {?}
|
|
4132
|
-
*/
|
|
4133
|
-
function () { return callback((/** @type {?} */ (reader.result))); });
|
|
4134
|
-
reader.onerror = (/**
|
|
4135
|
-
* @return {?}
|
|
4136
|
-
*/
|
|
4137
|
-
function () { return callback(""); });
|
|
4138
|
-
reader.readAsDataURL(blob);
|
|
4139
|
-
}))];
|
|
4140
|
-
}
|
|
4141
|
-
});
|
|
4142
|
-
});
|
|
4143
|
-
};
|
|
4144
|
-
/**
|
|
4145
|
-
* @param {?} url
|
|
4146
|
-
* @param {?} cb
|
|
4147
|
-
* @return {?}
|
|
4148
|
-
*/
|
|
4149
|
-
StaticResourceService.prototype.forceLoad = /**
|
|
4150
|
-
* @param {?} url
|
|
4151
|
-
* @param {?} cb
|
|
4152
|
-
* @return {?}
|
|
4153
|
-
*/
|
|
4154
|
-
function (url, cb) {
|
|
4155
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4156
|
-
var result;
|
|
4157
|
-
return __generator(this, function (_a) {
|
|
4158
|
-
switch (_a.label) {
|
|
4159
|
-
case 0:
|
|
4160
|
-
if (!true) return [3 /*break*/, 3];
|
|
4161
|
-
return [4 /*yield*/, this.load(url)];
|
|
4162
|
-
case 1:
|
|
4163
|
-
result = _a.sent();
|
|
4164
|
-
if (result) {
|
|
4165
|
-
cb(result);
|
|
4166
|
-
return [2 /*return*/, result];
|
|
4167
|
-
}
|
|
4168
|
-
return [4 /*yield*/, new Promise((/**
|
|
4169
|
-
* @param {?} resolve
|
|
4170
|
-
* @return {?}
|
|
4171
|
-
*/
|
|
4172
|
-
function (resolve) { return setTimeout(resolve, 2000); }))];
|
|
4173
|
-
case 2:
|
|
4174
|
-
_a.sent();
|
|
4175
|
-
return [3 /*break*/, 0];
|
|
4176
|
-
case 3: return [2 /*return*/];
|
|
4177
|
-
}
|
|
4178
|
-
});
|
|
4179
|
-
});
|
|
4180
|
-
};
|
|
4181
|
-
StaticResourceService.decorators = [
|
|
4182
|
-
{ type: Injectable, args: [{
|
|
4183
|
-
providedIn: "root",
|
|
4184
|
-
},] }
|
|
4185
|
-
];
|
|
4186
|
-
/** @nocollapse */
|
|
4187
|
-
StaticResourceService.ctorParameters = function () { return [
|
|
4188
|
-
{ type: DomSanitizer }
|
|
4189
|
-
]; };
|
|
4190
|
-
/** @nocollapse */ StaticResourceService.ngInjectableDef = ɵɵdefineInjectable({ factory: function StaticResourceService_Factory() { return new StaticResourceService(ɵɵinject(DomSanitizer)); }, token: StaticResourceService, providedIn: "root" });
|
|
4191
|
-
return StaticResourceService;
|
|
4192
|
-
}());
|
|
4193
|
-
if (false) {
|
|
4194
|
-
/**
|
|
4195
|
-
* @type {?}
|
|
4196
|
-
* @private
|
|
4197
|
-
*/
|
|
4198
|
-
StaticResourceService.prototype.ResultMap;
|
|
4199
|
-
/**
|
|
4200
|
-
* @type {?}
|
|
4201
|
-
* @private
|
|
4202
|
-
*/
|
|
4203
|
-
StaticResourceService.prototype.sanitizer;
|
|
4204
|
-
}
|
|
4205
|
-
|
|
4206
4061
|
/**
|
|
4207
4062
|
* @fileoverview added by tsickle
|
|
4208
4063
|
* Generated from: lib/layout/drawer/index.component.ts
|
|
4209
4064
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4210
4065
|
*/
|
|
4211
4066
|
var DrawerComponent = /** @class */ (function () {
|
|
4212
|
-
function DrawerComponent(resolver, service, ref
|
|
4213
|
-
var _this = this;
|
|
4067
|
+
function DrawerComponent(resolver, service, ref) {
|
|
4214
4068
|
this.resolver = resolver;
|
|
4215
4069
|
this.service = service;
|
|
4216
4070
|
this.ref = ref;
|
|
4217
|
-
this.staticResourceService = staticResourceService;
|
|
4218
4071
|
this.config = DefaultDrawerConfig;
|
|
4219
4072
|
this.useAnimation = "yes";
|
|
4220
4073
|
this.isOpened = false;
|
|
4221
4074
|
this.hiddenDrawer = true;
|
|
4222
|
-
this.backImage = null;
|
|
4223
4075
|
this.componentRefMap = new Map();
|
|
4224
|
-
staticResourceService.load("/assets/img/drawer-back.svg", (/**
|
|
4225
|
-
* @param {?} result
|
|
4226
|
-
* @return {?}
|
|
4227
|
-
*/
|
|
4228
|
-
function (result) {
|
|
4229
|
-
_this.backImage = result;
|
|
4230
|
-
}));
|
|
4231
4076
|
}
|
|
4232
4077
|
/**
|
|
4233
4078
|
* @private
|
|
@@ -4562,16 +4407,15 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
4562
4407
|
DrawerComponent.decorators = [
|
|
4563
4408
|
{ type: Component, args: [{
|
|
4564
4409
|
selector: "rs-drawer",
|
|
4565
|
-
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 <
|
|
4566
|
-
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
|
|
4410
|
+
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",
|
|
4411
|
+
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}"]
|
|
4567
4412
|
}] }
|
|
4568
4413
|
];
|
|
4569
4414
|
/** @nocollapse */
|
|
4570
4415
|
DrawerComponent.ctorParameters = function () { return [
|
|
4571
4416
|
{ type: ComponentFactoryResolver },
|
|
4572
4417
|
{ type: DrawerService },
|
|
4573
|
-
{ type: ChangeDetectorRef }
|
|
4574
|
-
{ type: StaticResourceService }
|
|
4418
|
+
{ type: ChangeDetectorRef }
|
|
4575
4419
|
]; };
|
|
4576
4420
|
DrawerComponent.propDecorators = {
|
|
4577
4421
|
element: [{ type: ViewChild, args: ["element", { static: false },] }],
|
|
@@ -4616,8 +4460,6 @@ if (false) {
|
|
|
4616
4460
|
DrawerComponent.prototype.isOpened;
|
|
4617
4461
|
/** @type {?} */
|
|
4618
4462
|
DrawerComponent.prototype.hiddenDrawer;
|
|
4619
|
-
/** @type {?} */
|
|
4620
|
-
DrawerComponent.prototype.backImage;
|
|
4621
4463
|
/**
|
|
4622
4464
|
* @type {?}
|
|
4623
4465
|
* @private
|
|
@@ -4638,11 +4480,6 @@ if (false) {
|
|
|
4638
4480
|
* @private
|
|
4639
4481
|
*/
|
|
4640
4482
|
DrawerComponent.prototype.ref;
|
|
4641
|
-
/**
|
|
4642
|
-
* @type {?}
|
|
4643
|
-
* @private
|
|
4644
|
-
*/
|
|
4645
|
-
DrawerComponent.prototype.staticResourceService;
|
|
4646
4483
|
}
|
|
4647
4484
|
|
|
4648
4485
|
/**
|
|
@@ -22425,6 +22262,7 @@ var TagInputComponent = /** @class */ (function () {
|
|
|
22425
22262
|
this.valueChange = new EventEmitter();
|
|
22426
22263
|
this.focus = new EventEmitter();
|
|
22427
22264
|
this.blur = new EventEmitter();
|
|
22265
|
+
this.keyup = new EventEmitter();
|
|
22428
22266
|
this.inputError = false;
|
|
22429
22267
|
}
|
|
22430
22268
|
Object.defineProperty(TagInputComponent.prototype, "inputMinlength", {
|
|
@@ -22473,19 +22311,23 @@ var TagInputComponent = /** @class */ (function () {
|
|
|
22473
22311
|
};
|
|
22474
22312
|
/**
|
|
22475
22313
|
* @param {?} event
|
|
22314
|
+
* @param {?=} type
|
|
22476
22315
|
* @return {?}
|
|
22477
22316
|
*/
|
|
22478
22317
|
TagInputComponent.prototype.onAddTag = /**
|
|
22479
22318
|
* @param {?} event
|
|
22319
|
+
* @param {?=} type
|
|
22480
22320
|
* @return {?}
|
|
22481
22321
|
*/
|
|
22482
|
-
function (event) {
|
|
22322
|
+
function (event, type) {
|
|
22483
22323
|
/** @type {?} */
|
|
22484
22324
|
var inputValue = event.target.value;
|
|
22485
22325
|
if (inputValue && this.verifyInputValue(inputValue)) {
|
|
22486
22326
|
this.valueChange.emit(__spread(this.value, [inputValue]));
|
|
22487
22327
|
event.target.value = "";
|
|
22488
22328
|
}
|
|
22329
|
+
if (!type)
|
|
22330
|
+
this.keyup.emit(event);
|
|
22489
22331
|
};
|
|
22490
22332
|
/**
|
|
22491
22333
|
* @param {?} inputValue
|
|
@@ -22534,7 +22376,7 @@ var TagInputComponent = /** @class */ (function () {
|
|
|
22534
22376
|
* @return {?}
|
|
22535
22377
|
*/
|
|
22536
22378
|
function (event) {
|
|
22537
|
-
this.onAddTag(event);
|
|
22379
|
+
this.onAddTag(event, "blur");
|
|
22538
22380
|
this.blur.emit();
|
|
22539
22381
|
};
|
|
22540
22382
|
TagInputComponent.decorators = [
|
|
@@ -22553,7 +22395,8 @@ var TagInputComponent = /** @class */ (function () {
|
|
|
22553
22395
|
maxlength: [{ type: Input, args: ["inputMaxlength",] }],
|
|
22554
22396
|
valueChange: [{ type: Output }],
|
|
22555
22397
|
focus: [{ type: Output }],
|
|
22556
|
-
blur: [{ type: Output }]
|
|
22398
|
+
blur: [{ type: Output }],
|
|
22399
|
+
keyup: [{ type: Output }]
|
|
22557
22400
|
};
|
|
22558
22401
|
return TagInputComponent;
|
|
22559
22402
|
}());
|
|
@@ -22577,6 +22420,8 @@ if (false) {
|
|
|
22577
22420
|
/** @type {?} */
|
|
22578
22421
|
TagInputComponent.prototype.blur;
|
|
22579
22422
|
/** @type {?} */
|
|
22423
|
+
TagInputComponent.prototype.keyup;
|
|
22424
|
+
/** @type {?} */
|
|
22580
22425
|
TagInputComponent.prototype.inputError;
|
|
22581
22426
|
}
|
|
22582
22427
|
|
|
@@ -35948,6 +35793,153 @@ var KeepAliveService = /** @class */ (function () {
|
|
|
35948
35793
|
return KeepAliveService;
|
|
35949
35794
|
}());
|
|
35950
35795
|
|
|
35796
|
+
/**
|
|
35797
|
+
* @fileoverview added by tsickle
|
|
35798
|
+
* Generated from: lib/service/static-resource.service.ts
|
|
35799
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
35800
|
+
*/
|
|
35801
|
+
var StaticResourceService = /** @class */ (function () {
|
|
35802
|
+
function StaticResourceService(sanitizer) {
|
|
35803
|
+
this.sanitizer = sanitizer;
|
|
35804
|
+
this.ResultMap = new Map();
|
|
35805
|
+
}
|
|
35806
|
+
/**
|
|
35807
|
+
* @param {?} url
|
|
35808
|
+
* @param {?=} cb
|
|
35809
|
+
* @return {?}
|
|
35810
|
+
*/
|
|
35811
|
+
StaticResourceService.prototype.load = /**
|
|
35812
|
+
* @param {?} url
|
|
35813
|
+
* @param {?=} cb
|
|
35814
|
+
* @return {?}
|
|
35815
|
+
*/
|
|
35816
|
+
function (url, cb) {
|
|
35817
|
+
if (cb === void 0) { cb = (/**
|
|
35818
|
+
* @return {?}
|
|
35819
|
+
*/
|
|
35820
|
+
function () { }); }
|
|
35821
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
35822
|
+
var result, res, blob;
|
|
35823
|
+
var _this = this;
|
|
35824
|
+
return __generator(this, function (_a) {
|
|
35825
|
+
switch (_a.label) {
|
|
35826
|
+
case 0:
|
|
35827
|
+
if (!url || typeof url !== "string") {
|
|
35828
|
+
cb("");
|
|
35829
|
+
return [2 /*return*/, ""];
|
|
35830
|
+
}
|
|
35831
|
+
if (this.ResultMap.has(url)) {
|
|
35832
|
+
result = this.ResultMap.get(url) || "";
|
|
35833
|
+
cb(result);
|
|
35834
|
+
return [2 /*return*/, result];
|
|
35835
|
+
}
|
|
35836
|
+
return [4 /*yield*/, fetch(url)];
|
|
35837
|
+
case 1:
|
|
35838
|
+
res = _a.sent();
|
|
35839
|
+
if (!res.ok) {
|
|
35840
|
+
cb("");
|
|
35841
|
+
return [2 /*return*/, ""];
|
|
35842
|
+
}
|
|
35843
|
+
return [4 /*yield*/, res.blob()];
|
|
35844
|
+
case 2:
|
|
35845
|
+
blob = _a.sent();
|
|
35846
|
+
return [2 /*return*/, new Promise((/**
|
|
35847
|
+
* @param {?} resolve
|
|
35848
|
+
* @return {?}
|
|
35849
|
+
*/
|
|
35850
|
+
function (resolve) {
|
|
35851
|
+
/** @type {?} */
|
|
35852
|
+
var reader = new FileReader();
|
|
35853
|
+
/** @type {?} */
|
|
35854
|
+
var callback = (/**
|
|
35855
|
+
* @param {?} result
|
|
35856
|
+
* @return {?}
|
|
35857
|
+
*/
|
|
35858
|
+
function (result) {
|
|
35859
|
+
/** @type {?} */
|
|
35860
|
+
var safeUrl = _this.sanitizer.bypassSecurityTrustUrl(result);
|
|
35861
|
+
if (safeUrl) {
|
|
35862
|
+
_this.ResultMap.set(url, safeUrl);
|
|
35863
|
+
}
|
|
35864
|
+
resolve(safeUrl);
|
|
35865
|
+
cb(safeUrl);
|
|
35866
|
+
});
|
|
35867
|
+
reader.onloadend = (/**
|
|
35868
|
+
* @return {?}
|
|
35869
|
+
*/
|
|
35870
|
+
function () { return callback((/** @type {?} */ (reader.result))); });
|
|
35871
|
+
reader.onerror = (/**
|
|
35872
|
+
* @return {?}
|
|
35873
|
+
*/
|
|
35874
|
+
function () { return callback(""); });
|
|
35875
|
+
reader.readAsDataURL(blob);
|
|
35876
|
+
}))];
|
|
35877
|
+
}
|
|
35878
|
+
});
|
|
35879
|
+
});
|
|
35880
|
+
};
|
|
35881
|
+
/**
|
|
35882
|
+
* @param {?} url
|
|
35883
|
+
* @param {?} cb
|
|
35884
|
+
* @return {?}
|
|
35885
|
+
*/
|
|
35886
|
+
StaticResourceService.prototype.forceLoad = /**
|
|
35887
|
+
* @param {?} url
|
|
35888
|
+
* @param {?} cb
|
|
35889
|
+
* @return {?}
|
|
35890
|
+
*/
|
|
35891
|
+
function (url, cb) {
|
|
35892
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
35893
|
+
var result;
|
|
35894
|
+
return __generator(this, function (_a) {
|
|
35895
|
+
switch (_a.label) {
|
|
35896
|
+
case 0:
|
|
35897
|
+
if (!true) return [3 /*break*/, 3];
|
|
35898
|
+
return [4 /*yield*/, this.load(url)];
|
|
35899
|
+
case 1:
|
|
35900
|
+
result = _a.sent();
|
|
35901
|
+
if (result) {
|
|
35902
|
+
cb(result);
|
|
35903
|
+
return [2 /*return*/, result];
|
|
35904
|
+
}
|
|
35905
|
+
return [4 /*yield*/, new Promise((/**
|
|
35906
|
+
* @param {?} resolve
|
|
35907
|
+
* @return {?}
|
|
35908
|
+
*/
|
|
35909
|
+
function (resolve) { return setTimeout(resolve, 2000); }))];
|
|
35910
|
+
case 2:
|
|
35911
|
+
_a.sent();
|
|
35912
|
+
return [3 /*break*/, 0];
|
|
35913
|
+
case 3: return [2 /*return*/];
|
|
35914
|
+
}
|
|
35915
|
+
});
|
|
35916
|
+
});
|
|
35917
|
+
};
|
|
35918
|
+
StaticResourceService.decorators = [
|
|
35919
|
+
{ type: Injectable, args: [{
|
|
35920
|
+
providedIn: "root",
|
|
35921
|
+
},] }
|
|
35922
|
+
];
|
|
35923
|
+
/** @nocollapse */
|
|
35924
|
+
StaticResourceService.ctorParameters = function () { return [
|
|
35925
|
+
{ type: DomSanitizer }
|
|
35926
|
+
]; };
|
|
35927
|
+
/** @nocollapse */ StaticResourceService.ngInjectableDef = ɵɵdefineInjectable({ factory: function StaticResourceService_Factory() { return new StaticResourceService(ɵɵinject(DomSanitizer)); }, token: StaticResourceService, providedIn: "root" });
|
|
35928
|
+
return StaticResourceService;
|
|
35929
|
+
}());
|
|
35930
|
+
if (false) {
|
|
35931
|
+
/**
|
|
35932
|
+
* @type {?}
|
|
35933
|
+
* @private
|
|
35934
|
+
*/
|
|
35935
|
+
StaticResourceService.prototype.ResultMap;
|
|
35936
|
+
/**
|
|
35937
|
+
* @type {?}
|
|
35938
|
+
* @private
|
|
35939
|
+
*/
|
|
35940
|
+
StaticResourceService.prototype.sanitizer;
|
|
35941
|
+
}
|
|
35942
|
+
|
|
35951
35943
|
/**
|
|
35952
35944
|
* @fileoverview added by tsickle
|
|
35953
35945
|
* Generated from: lib/form/confirm-select/index.component.ts
|