raise-common-lib 0.0.168 → 0.0.170
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 +145 -2
- 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/confirm-select/index.component.js +118 -0
- package/esm2015/lib/raise-common-lib.module.js +4 -1
- package/esm2015/raise-common-lib.js +4 -3
- package/esm5/lib/form/confirm-select/index.component.js +143 -0
- package/esm5/lib/raise-common-lib.module.js +4 -1
- package/esm5/raise-common-lib.js +4 -3
- package/fesm2015/raise-common-lib.js +119 -1
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +143 -1
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/form/confirm-select/index.component.d.ts +25 -0
- package/package.json +1 -1
- package/raise-common-lib.d.ts +3 -2
- package/raise-common-lib.metadata.json +1 -1
|
@@ -22236,6 +22236,122 @@ KeepAliveService.decorators = [
|
|
|
22236
22236
|
];
|
|
22237
22237
|
/** @nocollapse */ KeepAliveService.ngInjectableDef = ɵɵdefineInjectable({ factory: function KeepAliveService_Factory() { return new KeepAliveService(); }, token: KeepAliveService, providedIn: "root" });
|
|
22238
22238
|
|
|
22239
|
+
/**
|
|
22240
|
+
* @fileoverview added by tsickle
|
|
22241
|
+
* Generated from: lib/form/confirm-select/index.component.ts
|
|
22242
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
22243
|
+
*/
|
|
22244
|
+
class ConfirmSelectComponent {
|
|
22245
|
+
constructor() {
|
|
22246
|
+
this.dataSource = [];
|
|
22247
|
+
this.disabled = false;
|
|
22248
|
+
this.fields = { text: "Game", value: "Id" };
|
|
22249
|
+
this.showSelectAll = true;
|
|
22250
|
+
this.valueChange = new EventEmitter();
|
|
22251
|
+
this.selectedItems = [];
|
|
22252
|
+
this.isInteracted = false;
|
|
22253
|
+
}
|
|
22254
|
+
/**
|
|
22255
|
+
* @return {?}
|
|
22256
|
+
*/
|
|
22257
|
+
ngOnInit() {
|
|
22258
|
+
this.getInfo();
|
|
22259
|
+
this.resetSelectedItems();
|
|
22260
|
+
}
|
|
22261
|
+
/**
|
|
22262
|
+
* @param {?} changes
|
|
22263
|
+
* @return {?}
|
|
22264
|
+
*/
|
|
22265
|
+
ngOnChanges(changes) {
|
|
22266
|
+
if (changes.value && !changes.value.firstChange) {
|
|
22267
|
+
this.resetSelectedItems();
|
|
22268
|
+
}
|
|
22269
|
+
}
|
|
22270
|
+
/**
|
|
22271
|
+
* @return {?}
|
|
22272
|
+
*/
|
|
22273
|
+
getInfo() {
|
|
22274
|
+
this.translation = JSON.parse(localStorage.getItem("translation"));
|
|
22275
|
+
}
|
|
22276
|
+
/**
|
|
22277
|
+
* @return {?}
|
|
22278
|
+
*/
|
|
22279
|
+
resetSelectedItems() {
|
|
22280
|
+
this.selectedItems = JSON.parse(JSON.stringify(this.value || []));
|
|
22281
|
+
}
|
|
22282
|
+
/**
|
|
22283
|
+
* @return {?}
|
|
22284
|
+
*/
|
|
22285
|
+
onCancel() {
|
|
22286
|
+
this.isInteracted = true;
|
|
22287
|
+
this.resetSelectedItems();
|
|
22288
|
+
this.comfirmSelect.hidePopup();
|
|
22289
|
+
}
|
|
22290
|
+
/**
|
|
22291
|
+
* @return {?}
|
|
22292
|
+
*/
|
|
22293
|
+
onApply() {
|
|
22294
|
+
this.isInteracted = true;
|
|
22295
|
+
/** @type {?} */
|
|
22296
|
+
const val = this.comfirmSelect.value;
|
|
22297
|
+
this.valueChange.emit(val);
|
|
22298
|
+
this.comfirmSelect.hidePopup();
|
|
22299
|
+
}
|
|
22300
|
+
/**
|
|
22301
|
+
* @param {?} e
|
|
22302
|
+
* @return {?}
|
|
22303
|
+
*/
|
|
22304
|
+
onClose(e) {
|
|
22305
|
+
if (this.isInteracted) {
|
|
22306
|
+
this.isInteracted = false;
|
|
22307
|
+
}
|
|
22308
|
+
else {
|
|
22309
|
+
this.resetSelectedItems();
|
|
22310
|
+
}
|
|
22311
|
+
}
|
|
22312
|
+
}
|
|
22313
|
+
ConfirmSelectComponent.decorators = [
|
|
22314
|
+
{ type: Component, args: [{
|
|
22315
|
+
selector: "rs-confirm-select",
|
|
22316
|
+
template: "<div class=\"rs-confirm-select\">\r\n <ejs-multiselect\r\n #comfirmSelect\r\n [dataSource]=\"dataSource\"\r\n [showDropDownIcon]=\"true\"\r\n [placeholder]=\"placeholder\"\r\n [(ngModel)]=\"selectedItems\"\r\n [fields]=\"fields\"\r\n [showSelectAll]=\"showSelectAll\"\r\n mode=\"CheckBox\"\r\n [footerTemplate]=\"footerTemplate\"\r\n [showClearButton]=\"false\"\r\n (close)=\"onClose($event)\"\r\n >\r\n <ng-template #footerTemplate=\"\" let-data=\"data\">\r\n <div class=\"confirm-select-footer\">\r\n <button class=\"e-btn\" (click)=\"onCancel()\">\r\n {{ translation.CANCEL }}\r\n </button>\r\n <button class=\"e-btn e-primary\" (click)=\"onApply()\">{{ translation.APPLY }}</button>\r\n </div>\r\n </ng-template>\r\n </ejs-multiselect>\r\n</div>\r\n",
|
|
22317
|
+
styles: [".confirm-select-footer{display:flex;align-items:center;justify-content:flex-end;padding:0 12px;gap:12px;height:40px;border-top:solid 1px var(--rs-border-color)}"]
|
|
22318
|
+
}] }
|
|
22319
|
+
];
|
|
22320
|
+
ConfirmSelectComponent.propDecorators = {
|
|
22321
|
+
comfirmSelect: [{ type: ViewChild, args: ["comfirmSelect", { static: false },] }],
|
|
22322
|
+
value: [{ type: Input }],
|
|
22323
|
+
dataSource: [{ type: Input }],
|
|
22324
|
+
disabled: [{ type: Input }],
|
|
22325
|
+
fields: [{ type: Input }],
|
|
22326
|
+
placeholder: [{ type: Input }],
|
|
22327
|
+
showSelectAll: [{ type: Input }],
|
|
22328
|
+
valueChange: [{ type: Output }]
|
|
22329
|
+
};
|
|
22330
|
+
if (false) {
|
|
22331
|
+
/** @type {?} */
|
|
22332
|
+
ConfirmSelectComponent.prototype.comfirmSelect;
|
|
22333
|
+
/** @type {?} */
|
|
22334
|
+
ConfirmSelectComponent.prototype.value;
|
|
22335
|
+
/** @type {?} */
|
|
22336
|
+
ConfirmSelectComponent.prototype.dataSource;
|
|
22337
|
+
/** @type {?} */
|
|
22338
|
+
ConfirmSelectComponent.prototype.disabled;
|
|
22339
|
+
/** @type {?} */
|
|
22340
|
+
ConfirmSelectComponent.prototype.fields;
|
|
22341
|
+
/** @type {?} */
|
|
22342
|
+
ConfirmSelectComponent.prototype.placeholder;
|
|
22343
|
+
/** @type {?} */
|
|
22344
|
+
ConfirmSelectComponent.prototype.showSelectAll;
|
|
22345
|
+
/** @type {?} */
|
|
22346
|
+
ConfirmSelectComponent.prototype.valueChange;
|
|
22347
|
+
/** @type {?} */
|
|
22348
|
+
ConfirmSelectComponent.prototype.translation;
|
|
22349
|
+
/** @type {?} */
|
|
22350
|
+
ConfirmSelectComponent.prototype.selectedItems;
|
|
22351
|
+
/** @type {?} */
|
|
22352
|
+
ConfirmSelectComponent.prototype.isInteracted;
|
|
22353
|
+
}
|
|
22354
|
+
|
|
22239
22355
|
/**
|
|
22240
22356
|
* @fileoverview added by tsickle
|
|
22241
22357
|
* Generated from: lib/raise-common-lib.module.ts
|
|
@@ -22264,6 +22380,7 @@ RaiseCommonLibModule.decorators = [
|
|
|
22264
22380
|
SwitchInputComponent,
|
|
22265
22381
|
EncryptedInputComponent,
|
|
22266
22382
|
SearchInputComponent,
|
|
22383
|
+
ConfirmSelectComponent,
|
|
22267
22384
|
NewActionNotificationComponent,
|
|
22268
22385
|
CommonDialogComponent,
|
|
22269
22386
|
CommonDeleteComponent,
|
|
@@ -22425,6 +22542,7 @@ RaiseCommonLibModule.decorators = [
|
|
|
22425
22542
|
SwitchInputComponent,
|
|
22426
22543
|
EncryptedInputComponent,
|
|
22427
22544
|
SearchInputComponent,
|
|
22545
|
+
ConfirmSelectComponent,
|
|
22428
22546
|
DrawerComponent,
|
|
22429
22547
|
DrawerFormComponent,
|
|
22430
22548
|
ToolbarItemComponent,
|
|
@@ -22455,5 +22573,5 @@ RaiseCommonLibModule.decorators = [
|
|
|
22455
22573
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
22456
22574
|
*/
|
|
22457
22575
|
|
|
22458
|
-
export { CheckboxGroupComponent, CommonDialogComponent, CommonFunctionService, CommonGridComponent, DefaultDrawerConfig, DialogService, DrawerComponent, DrawerFormComponent, DrawerService, EmailPattern, EncryptedInputComponent, FloatBoxComponent, GridActionComponent, GridActionItemComponent, GridBoxComponent, IconLoaderService, KeepAliveService, MainContainerComponent, MessageType, MultiTabComponent, RSAsideComponent, RSFooterComponent, RSHeaderComponent, RSNavCardGroupComponent, RSToolbarComponent, RadioGroupComponent, RaiseCommonLibModule, RsCommentaryComponent, RsPageListComponent, RsPageTabComponent, SearchInputComponent, SwitchInputComponent, TagInputComponent, ToolbarItemComponent, TranslationService, TruncatedTextToggleComponent, filterShowSection, Debounce as ɵa,
|
|
22576
|
+
export { CheckboxGroupComponent, CommonDialogComponent, CommonFunctionService, CommonGridComponent, DefaultDrawerConfig, DialogService, DrawerComponent, DrawerFormComponent, DrawerService, EmailPattern, EncryptedInputComponent, FloatBoxComponent, GridActionComponent, GridActionItemComponent, GridBoxComponent, IconLoaderService, KeepAliveService, MainContainerComponent, MessageType, MultiTabComponent, RSAsideComponent, RSFooterComponent, RSHeaderComponent, RSNavCardGroupComponent, RSToolbarComponent, RadioGroupComponent, RaiseCommonLibModule, RsCommentaryComponent, RsPageListComponent, RsPageTabComponent, SearchInputComponent, SwitchInputComponent, TagInputComponent, ToolbarItemComponent, TranslationService, TruncatedTextToggleComponent, filterShowSection, Debounce as ɵa, ConfirmSelectComponent as ɵb, NewActionNotificationComponent as ɵc, CommonDeleteComponent as ɵd };
|
|
22459
22577
|
//# sourceMappingURL=raise-common-lib.js.map
|