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.
@@ -23370,6 +23370,146 @@
23370
23370
  return KeepAliveService;
23371
23371
  }());
23372
23372
 
23373
+ /**
23374
+ * @fileoverview added by tsickle
23375
+ * Generated from: lib/form/confirm-select/index.component.ts
23376
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
23377
+ */
23378
+ var ConfirmSelectComponent = /** @class */ (function () {
23379
+ function ConfirmSelectComponent() {
23380
+ this.dataSource = [];
23381
+ this.disabled = false;
23382
+ this.fields = { text: "Game", value: "Id" };
23383
+ this.showSelectAll = true;
23384
+ this.valueChange = new core.EventEmitter();
23385
+ this.selectedItems = [];
23386
+ this.isInteracted = false;
23387
+ }
23388
+ /**
23389
+ * @return {?}
23390
+ */
23391
+ ConfirmSelectComponent.prototype.ngOnInit = /**
23392
+ * @return {?}
23393
+ */
23394
+ function () {
23395
+ this.getInfo();
23396
+ this.resetSelectedItems();
23397
+ };
23398
+ /**
23399
+ * @param {?} changes
23400
+ * @return {?}
23401
+ */
23402
+ ConfirmSelectComponent.prototype.ngOnChanges = /**
23403
+ * @param {?} changes
23404
+ * @return {?}
23405
+ */
23406
+ function (changes) {
23407
+ if (changes.value && !changes.value.firstChange) {
23408
+ this.resetSelectedItems();
23409
+ }
23410
+ };
23411
+ /**
23412
+ * @return {?}
23413
+ */
23414
+ ConfirmSelectComponent.prototype.getInfo = /**
23415
+ * @return {?}
23416
+ */
23417
+ function () {
23418
+ this.translation = JSON.parse(localStorage.getItem("translation"));
23419
+ };
23420
+ /**
23421
+ * @return {?}
23422
+ */
23423
+ ConfirmSelectComponent.prototype.resetSelectedItems = /**
23424
+ * @return {?}
23425
+ */
23426
+ function () {
23427
+ this.selectedItems = JSON.parse(JSON.stringify(this.value || []));
23428
+ };
23429
+ /**
23430
+ * @return {?}
23431
+ */
23432
+ ConfirmSelectComponent.prototype.onCancel = /**
23433
+ * @return {?}
23434
+ */
23435
+ function () {
23436
+ this.isInteracted = true;
23437
+ this.resetSelectedItems();
23438
+ this.comfirmSelect.hidePopup();
23439
+ };
23440
+ /**
23441
+ * @return {?}
23442
+ */
23443
+ ConfirmSelectComponent.prototype.onApply = /**
23444
+ * @return {?}
23445
+ */
23446
+ function () {
23447
+ this.isInteracted = true;
23448
+ /** @type {?} */
23449
+ var val = this.comfirmSelect.value;
23450
+ this.valueChange.emit(val);
23451
+ this.comfirmSelect.hidePopup();
23452
+ };
23453
+ /**
23454
+ * @param {?} e
23455
+ * @return {?}
23456
+ */
23457
+ ConfirmSelectComponent.prototype.onClose = /**
23458
+ * @param {?} e
23459
+ * @return {?}
23460
+ */
23461
+ function (e) {
23462
+ if (this.isInteracted) {
23463
+ this.isInteracted = false;
23464
+ }
23465
+ else {
23466
+ this.resetSelectedItems();
23467
+ }
23468
+ };
23469
+ ConfirmSelectComponent.decorators = [
23470
+ { type: core.Component, args: [{
23471
+ selector: "rs-confirm-select",
23472
+ 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",
23473
+ 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)}"]
23474
+ }] }
23475
+ ];
23476
+ ConfirmSelectComponent.propDecorators = {
23477
+ comfirmSelect: [{ type: core.ViewChild, args: ["comfirmSelect", { static: false },] }],
23478
+ value: [{ type: core.Input }],
23479
+ dataSource: [{ type: core.Input }],
23480
+ disabled: [{ type: core.Input }],
23481
+ fields: [{ type: core.Input }],
23482
+ placeholder: [{ type: core.Input }],
23483
+ showSelectAll: [{ type: core.Input }],
23484
+ valueChange: [{ type: core.Output }]
23485
+ };
23486
+ return ConfirmSelectComponent;
23487
+ }());
23488
+ if (false) {
23489
+ /** @type {?} */
23490
+ ConfirmSelectComponent.prototype.comfirmSelect;
23491
+ /** @type {?} */
23492
+ ConfirmSelectComponent.prototype.value;
23493
+ /** @type {?} */
23494
+ ConfirmSelectComponent.prototype.dataSource;
23495
+ /** @type {?} */
23496
+ ConfirmSelectComponent.prototype.disabled;
23497
+ /** @type {?} */
23498
+ ConfirmSelectComponent.prototype.fields;
23499
+ /** @type {?} */
23500
+ ConfirmSelectComponent.prototype.placeholder;
23501
+ /** @type {?} */
23502
+ ConfirmSelectComponent.prototype.showSelectAll;
23503
+ /** @type {?} */
23504
+ ConfirmSelectComponent.prototype.valueChange;
23505
+ /** @type {?} */
23506
+ ConfirmSelectComponent.prototype.translation;
23507
+ /** @type {?} */
23508
+ ConfirmSelectComponent.prototype.selectedItems;
23509
+ /** @type {?} */
23510
+ ConfirmSelectComponent.prototype.isInteracted;
23511
+ }
23512
+
23373
23513
  /**
23374
23514
  * @fileoverview added by tsickle
23375
23515
  * Generated from: lib/raise-common-lib.module.ts
@@ -23399,6 +23539,7 @@
23399
23539
  SwitchInputComponent,
23400
23540
  EncryptedInputComponent,
23401
23541
  SearchInputComponent,
23542
+ ConfirmSelectComponent,
23402
23543
  NewActionNotificationComponent,
23403
23544
  CommonDialogComponent,
23404
23545
  CommonDeleteComponent,
@@ -23560,6 +23701,7 @@
23560
23701
  SwitchInputComponent,
23561
23702
  EncryptedInputComponent,
23562
23703
  SearchInputComponent,
23704
+ ConfirmSelectComponent,
23563
23705
  DrawerComponent,
23564
23706
  DrawerFormComponent,
23565
23707
  ToolbarItemComponent,
@@ -23618,8 +23760,9 @@
23618
23760
  exports.TruncatedTextToggleComponent = TruncatedTextToggleComponent;
23619
23761
  exports.filterShowSection = filterShowSection;
23620
23762
  exports.ɵa = Debounce;
23621
- exports.ɵb = NewActionNotificationComponent;
23622
- exports.ɵc = CommonDeleteComponent;
23763
+ exports.ɵb = ConfirmSelectComponent;
23764
+ exports.ɵc = NewActionNotificationComponent;
23765
+ exports.ɵd = CommonDeleteComponent;
23623
23766
 
23624
23767
  Object.defineProperty(exports, '__esModule', { value: true });
23625
23768