ngx-ode-ui 3.12.0-dev.3 → 3.12.0-dev.4

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.
@@ -1328,6 +1328,141 @@ if (false) {
1328
1328
  ListComponent.prototype.ngClass;
1329
1329
  }
1330
1330
 
1331
+ /**
1332
+ * @fileoverview added by tsickle
1333
+ * Generated from: lib/components/list-checkable/list-checkable.component.ts
1334
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1335
+ */
1336
+ class ListCheckableComponent extends OdeComponent {
1337
+ /**
1338
+ * @param {?} injector
1339
+ */
1340
+ constructor(injector) {
1341
+ super(injector);
1342
+ this.model = [];
1343
+ this.noResultsLabel = 'list.results.no.items';
1344
+ this.readOnly = false;
1345
+ this.onCheck = new EventEmitter();
1346
+ this.listChange = new EventEmitter();
1347
+ this.scrolledDown = new EventEmitter();
1348
+ this.areAllChecked = (/**
1349
+ * @return {?}
1350
+ */
1351
+ () => false);
1352
+ this.isChecked = (/**
1353
+ * @param {?=} arg
1354
+ * @return {?}
1355
+ */
1356
+ (arg) => false);
1357
+ this.isDisabled = (/**
1358
+ * @param {?=} arg
1359
+ * @return {?}
1360
+ */
1361
+ (arg) => false);
1362
+ this.ngClass = (/**
1363
+ * @param {?=} arg
1364
+ * @return {?}
1365
+ */
1366
+ (arg) => ({}));
1367
+ /* Store pipe */
1368
+ this.self = this;
1369
+ this._storedElements = [];
1370
+ }
1371
+ /**
1372
+ * @param {?} list
1373
+ * @return {?}
1374
+ */
1375
+ set storedElements(list) {
1376
+ this._storedElements = list;
1377
+ this.listChange.emit(list);
1378
+ }
1379
+ /**
1380
+ * @return {?}
1381
+ */
1382
+ get storedElements() {
1383
+ return this._storedElements;
1384
+ }
1385
+ /**
1386
+ * @param {?} checkAll
1387
+ * @return {?}
1388
+ */
1389
+ toggleAll(checkAll) {
1390
+ this.model.forEach((/**
1391
+ * @param {?} item
1392
+ * @return {?}
1393
+ */
1394
+ item => {
1395
+ /** @type {?} */
1396
+ const isChecked = this.isChecked(item);
1397
+ if (!this.isDisabled(item)
1398
+ && ((isChecked && !checkAll) || (!isChecked && checkAll))) {
1399
+ this.onCheck.emit({ item: item, checked: checkAll });
1400
+ }
1401
+ }));
1402
+ }
1403
+ }
1404
+ ListCheckableComponent.decorators = [
1405
+ { type: Component, args: [{
1406
+ selector: 'ode-list-checkable',
1407
+ template: "<div class=\"list-checkable-wrapper\"\n infiniteScroll\n [scrollWindow]=\"false\"\n (scrolled)=\"scrolledDown.emit()\"\n [infiniteScrollThrottle]=\"50\">\n\n <ul *ngIf=\"storedElements && storedElements.length === 0\">\n <li class=\"no-results\"><span>{{ noResultsLabel | translate }}</span></li>\n </ul>\n \n <ul>\n <li class=\"select-all\" \n [class.checked]=\"areAllChecked()\"\n *ngIf=\"!readOnly\">\n <label>\n <span>{{(areAllChecked() ? 'ux.multiselect.deselect-all' : 'ux.multiselect.select-all') | translate}}</span>\n <input type=\"checkbox\" [checked]=\"areAllChecked()\" (change)=\"toggleAll($event.target.checked)\" />\n </label>\n </li>\n\n <li class=\"lct-list-checkable-item\" \n [class.checked]=\"isChecked(item)\"\n [class.disabled]=\"isDisabled(item)\"\n [ngClass]=\"ngClass(item)\"\n *ngFor=\"let item of model | filter: filters | store:self:'storedElements' | orderBy: sort | slice: 0:limit\">\n <label>\n <span>\n <ng-template [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{$implicit: item}\"></ng-template> \n </span>\n <input *ngIf=\"!readOnly\" type=\"checkbox\" \n [disabled]=\"isDisabled(item)\"\n [checked]=\"isChecked(item)\"\n (change)=\"onCheck.emit({item:item, checked:$event.target.checked})\"/>\n </label>\n </li>\n </ul>\n\n</div>\n",
1408
+ styles: ["ul{margin:0;padding:0;font-size:.9em}ul li{border-top:1px solid #ddd;width:-webkit-fill-available;width:-moz-available;display:flex}ul li:not(.checked){color:#939393}ul li.disabled{pointer-events:none}ul li.select-all{background-color:#ff83520a;color:#5b6472}ul li.select-all span{text-align:right}ul li label{cursor:pointer;width:100%;display:flex}ul li label:hover{background-color:#eaedf2}ul li label span{padding:7px 15px;width:100%}ul li label input[type=checkbox]{margin-right:15px;-ms-grid-row-align:center;align-self:center}"]
1409
+ }] }
1410
+ ];
1411
+ /** @nocollapse */
1412
+ ListCheckableComponent.ctorParameters = () => [
1413
+ { type: Injector }
1414
+ ];
1415
+ ListCheckableComponent.propDecorators = {
1416
+ model: [{ type: Input }],
1417
+ filters: [{ type: Input }],
1418
+ sort: [{ type: Input }],
1419
+ limit: [{ type: Input }],
1420
+ noResultsLabel: [{ type: Input }],
1421
+ readOnly: [{ type: Input }],
1422
+ onCheck: [{ type: Output }],
1423
+ listChange: [{ type: Output }],
1424
+ scrolledDown: [{ type: Output }],
1425
+ templateRef: [{ type: ContentChild, args: [TemplateRef, { static: false },] }],
1426
+ areAllChecked: [{ type: Input }],
1427
+ isChecked: [{ type: Input }],
1428
+ isDisabled: [{ type: Input }],
1429
+ ngClass: [{ type: Input }]
1430
+ };
1431
+ if (false) {
1432
+ /** @type {?} */
1433
+ ListCheckableComponent.prototype.model;
1434
+ /** @type {?} */
1435
+ ListCheckableComponent.prototype.filters;
1436
+ /** @type {?} */
1437
+ ListCheckableComponent.prototype.sort;
1438
+ /** @type {?} */
1439
+ ListCheckableComponent.prototype.limit;
1440
+ /** @type {?} */
1441
+ ListCheckableComponent.prototype.noResultsLabel;
1442
+ /** @type {?} */
1443
+ ListCheckableComponent.prototype.readOnly;
1444
+ /** @type {?} */
1445
+ ListCheckableComponent.prototype.onCheck;
1446
+ /** @type {?} */
1447
+ ListCheckableComponent.prototype.listChange;
1448
+ /** @type {?} */
1449
+ ListCheckableComponent.prototype.scrolledDown;
1450
+ /** @type {?} */
1451
+ ListCheckableComponent.prototype.templateRef;
1452
+ /** @type {?} */
1453
+ ListCheckableComponent.prototype.areAllChecked;
1454
+ /** @type {?} */
1455
+ ListCheckableComponent.prototype.isChecked;
1456
+ /** @type {?} */
1457
+ ListCheckableComponent.prototype.isDisabled;
1458
+ /** @type {?} */
1459
+ ListCheckableComponent.prototype.ngClass;
1460
+ /** @type {?} */
1461
+ ListCheckableComponent.prototype.self;
1462
+ /** @type {?} */
1463
+ ListCheckableComponent.prototype._storedElements;
1464
+ }
1465
+
1331
1466
  /**
1332
1467
  * @fileoverview added by tsickle
1333
1468
  * Generated from: lib/components/message-box/message-box.component.ts
@@ -4544,6 +4679,7 @@ NgxOdeUiModule.decorators = [
4544
4679
  LightBoxComponent,
4545
4680
  LightboxConfirmComponent,
4546
4681
  ListComponent,
4682
+ ListCheckableComponent,
4547
4683
  MonoSelectComponent,
4548
4684
  MultiSelectComponent,
4549
4685
  MultiComboComponent,
@@ -4595,6 +4731,7 @@ NgxOdeUiModule.decorators = [
4595
4731
  LightBoxComponent,
4596
4732
  LightboxConfirmComponent,
4597
4733
  ListComponent,
4734
+ ListCheckableComponent,
4598
4735
  MonoSelectComponent,
4599
4736
  MultiSelectComponent,
4600
4737
  MultiComboComponent,
@@ -4648,5 +4785,5 @@ NgxOdeUiModule.decorators = [
4648
4785
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4649
4786
  */
4650
4787
 
4651
- export { AnchorDirective, BytesPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, ComponentDescriptor, DatepickerComponent, DragAndDropFilesDirective, DynamicComponentDirective, DynamicModuleImportsService, DynamicTemplateDirective, EllipsisComponent, FilterPipe, FlattenObjectArrayPipe, FormErrorsComponent, FormFieldComponent, InputFileService, ItemTreeComponent, KeysPipe, LabelsService, LengthPipe, LightBoxComponent, LightboxConfirmComponent, LimitPipe, ListComponent, LocalizedDatePipe, MessageBoxComponent, MessageStickerComponent, MonoSelectComponent, MultiComboComponent, MultiSelectComponent, NgxOdeUiModule, ObjectURLDirective, OrderPipe, PagerComponent, PanelSectionComponent, PortalComponent, PushPanelComponent, SearchInputComponent, SideLayoutComponent, SidePanelComponent, SimpleSelectComponent, SpinnerCubeComponent, SpinnerService, StepComponent, StorePipe, TooltipComponent, UNITS, UploadFilesComponent, WizardComponent, clickOn, getText, getUnit, icons, removeAccents, standardise, toDecimal, trim };
4788
+ export { AnchorDirective, BytesPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, ComponentDescriptor, DatepickerComponent, DragAndDropFilesDirective, DynamicComponentDirective, DynamicModuleImportsService, DynamicTemplateDirective, EllipsisComponent, FilterPipe, FlattenObjectArrayPipe, FormErrorsComponent, FormFieldComponent, InputFileService, ItemTreeComponent, KeysPipe, LabelsService, LengthPipe, LightBoxComponent, LightboxConfirmComponent, LimitPipe, ListCheckableComponent, ListComponent, LocalizedDatePipe, MessageBoxComponent, MessageStickerComponent, MonoSelectComponent, MultiComboComponent, MultiSelectComponent, NgxOdeUiModule, ObjectURLDirective, OrderPipe, PagerComponent, PanelSectionComponent, PortalComponent, PushPanelComponent, SearchInputComponent, SideLayoutComponent, SidePanelComponent, SimpleSelectComponent, SpinnerCubeComponent, SpinnerService, StepComponent, StorePipe, TooltipComponent, UNITS, UploadFilesComponent, WizardComponent, clickOn, getText, getUnit, icons, removeAccents, standardise, toDecimal, trim };
4652
4789
  //# sourceMappingURL=ngx-ode-ui.js.map