raise-common-lib 0.0.168 → 0.0.169

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.
@@ -23178,6 +23178,146 @@ var KeepAliveService = /** @class */ (function () {
23178
23178
  return KeepAliveService;
23179
23179
  }());
23180
23180
 
23181
+ /**
23182
+ * @fileoverview added by tsickle
23183
+ * Generated from: lib/form/confirm-select/index.component.ts
23184
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
23185
+ */
23186
+ var ConfirmSelectComponent = /** @class */ (function () {
23187
+ function ConfirmSelectComponent() {
23188
+ this.dataSource = [];
23189
+ this.disabled = false;
23190
+ this.fields = { text: "Game", value: "Id" };
23191
+ this.showSelectAll = true;
23192
+ this.valueChange = new EventEmitter();
23193
+ this.selectedItems = [];
23194
+ this.isInteracted = false;
23195
+ }
23196
+ /**
23197
+ * @return {?}
23198
+ */
23199
+ ConfirmSelectComponent.prototype.ngOnInit = /**
23200
+ * @return {?}
23201
+ */
23202
+ function () {
23203
+ this.getInfo();
23204
+ this.resetSelectedItems();
23205
+ };
23206
+ /**
23207
+ * @param {?} changes
23208
+ * @return {?}
23209
+ */
23210
+ ConfirmSelectComponent.prototype.ngOnChanges = /**
23211
+ * @param {?} changes
23212
+ * @return {?}
23213
+ */
23214
+ function (changes) {
23215
+ if (changes.value && !changes.value.firstChange) {
23216
+ this.resetSelectedItems();
23217
+ }
23218
+ };
23219
+ /**
23220
+ * @return {?}
23221
+ */
23222
+ ConfirmSelectComponent.prototype.getInfo = /**
23223
+ * @return {?}
23224
+ */
23225
+ function () {
23226
+ this.translation = JSON.parse(localStorage.getItem("translation"));
23227
+ };
23228
+ /**
23229
+ * @return {?}
23230
+ */
23231
+ ConfirmSelectComponent.prototype.resetSelectedItems = /**
23232
+ * @return {?}
23233
+ */
23234
+ function () {
23235
+ this.selectedItems = JSON.parse(JSON.stringify(this.value || []));
23236
+ };
23237
+ /**
23238
+ * @return {?}
23239
+ */
23240
+ ConfirmSelectComponent.prototype.onCancel = /**
23241
+ * @return {?}
23242
+ */
23243
+ function () {
23244
+ this.isInteracted = true;
23245
+ this.resetSelectedItems();
23246
+ this.comfirmSelect.hidePopup();
23247
+ };
23248
+ /**
23249
+ * @return {?}
23250
+ */
23251
+ ConfirmSelectComponent.prototype.onApply = /**
23252
+ * @return {?}
23253
+ */
23254
+ function () {
23255
+ this.isInteracted = true;
23256
+ /** @type {?} */
23257
+ var val = this.comfirmSelect.value;
23258
+ this.valueChange.emit(val);
23259
+ this.comfirmSelect.hidePopup();
23260
+ };
23261
+ /**
23262
+ * @param {?} e
23263
+ * @return {?}
23264
+ */
23265
+ ConfirmSelectComponent.prototype.onClose = /**
23266
+ * @param {?} e
23267
+ * @return {?}
23268
+ */
23269
+ function (e) {
23270
+ if (this.isInteracted) {
23271
+ this.isInteracted = false;
23272
+ }
23273
+ else {
23274
+ this.resetSelectedItems();
23275
+ }
23276
+ };
23277
+ ConfirmSelectComponent.decorators = [
23278
+ { type: Component, args: [{
23279
+ selector: "rs-confirm-select",
23280
+ 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()\">Cancel</button>\r\n <button class=\"e-btn e-primary\" (click)=\"onApply()\">Apply</button>\r\n </div>\r\n </ng-template>\r\n </ejs-multiselect>\r\n</div>\r\n",
23281
+ 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)}"]
23282
+ }] }
23283
+ ];
23284
+ ConfirmSelectComponent.propDecorators = {
23285
+ comfirmSelect: [{ type: ViewChild, args: ["comfirmSelect", { static: false },] }],
23286
+ value: [{ type: Input }],
23287
+ dataSource: [{ type: Input }],
23288
+ disabled: [{ type: Input }],
23289
+ fields: [{ type: Input }],
23290
+ placeholder: [{ type: Input }],
23291
+ showSelectAll: [{ type: Input }],
23292
+ valueChange: [{ type: Output }]
23293
+ };
23294
+ return ConfirmSelectComponent;
23295
+ }());
23296
+ if (false) {
23297
+ /** @type {?} */
23298
+ ConfirmSelectComponent.prototype.comfirmSelect;
23299
+ /** @type {?} */
23300
+ ConfirmSelectComponent.prototype.value;
23301
+ /** @type {?} */
23302
+ ConfirmSelectComponent.prototype.dataSource;
23303
+ /** @type {?} */
23304
+ ConfirmSelectComponent.prototype.disabled;
23305
+ /** @type {?} */
23306
+ ConfirmSelectComponent.prototype.fields;
23307
+ /** @type {?} */
23308
+ ConfirmSelectComponent.prototype.placeholder;
23309
+ /** @type {?} */
23310
+ ConfirmSelectComponent.prototype.showSelectAll;
23311
+ /** @type {?} */
23312
+ ConfirmSelectComponent.prototype.valueChange;
23313
+ /** @type {?} */
23314
+ ConfirmSelectComponent.prototype.translation;
23315
+ /** @type {?} */
23316
+ ConfirmSelectComponent.prototype.selectedItems;
23317
+ /** @type {?} */
23318
+ ConfirmSelectComponent.prototype.isInteracted;
23319
+ }
23320
+
23181
23321
  /**
23182
23322
  * @fileoverview added by tsickle
23183
23323
  * Generated from: lib/raise-common-lib.module.ts
@@ -23207,6 +23347,7 @@ var RaiseCommonLibModule = /** @class */ (function () {
23207
23347
  SwitchInputComponent,
23208
23348
  EncryptedInputComponent,
23209
23349
  SearchInputComponent,
23350
+ ConfirmSelectComponent,
23210
23351
  NewActionNotificationComponent,
23211
23352
  CommonDialogComponent,
23212
23353
  CommonDeleteComponent,
@@ -23368,6 +23509,7 @@ var RaiseCommonLibModule = /** @class */ (function () {
23368
23509
  SwitchInputComponent,
23369
23510
  EncryptedInputComponent,
23370
23511
  SearchInputComponent,
23512
+ ConfirmSelectComponent,
23371
23513
  DrawerComponent,
23372
23514
  DrawerFormComponent,
23373
23515
  ToolbarItemComponent,
@@ -23400,5 +23542,5 @@ var RaiseCommonLibModule = /** @class */ (function () {
23400
23542
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
23401
23543
  */
23402
23544
 
23403
- 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, NewActionNotificationComponent as ɵb, CommonDeleteComponent as ɵc };
23545
+ 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 };
23404
23546
  //# sourceMappingURL=raise-common-lib.js.map