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.
@@ -1493,6 +1493,150 @@ if (false) {
1493
1493
  ListComponent.prototype.ngClass;
1494
1494
  }
1495
1495
 
1496
+ /**
1497
+ * @fileoverview added by tsickle
1498
+ * Generated from: lib/components/list-checkable/list-checkable.component.ts
1499
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1500
+ */
1501
+ var ListCheckableComponent = /** @class */ (function (_super) {
1502
+ __extends(ListCheckableComponent, _super);
1503
+ function ListCheckableComponent(injector) {
1504
+ var _this = _super.call(this, injector) || this;
1505
+ _this.model = [];
1506
+ _this.noResultsLabel = 'list.results.no.items';
1507
+ _this.readOnly = false;
1508
+ _this.onCheck = new EventEmitter();
1509
+ _this.listChange = new EventEmitter();
1510
+ _this.scrolledDown = new EventEmitter();
1511
+ _this.areAllChecked = (/**
1512
+ * @return {?}
1513
+ */
1514
+ function () { return false; });
1515
+ _this.isChecked = (/**
1516
+ * @param {?=} arg
1517
+ * @return {?}
1518
+ */
1519
+ function (arg) { return false; });
1520
+ _this.isDisabled = (/**
1521
+ * @param {?=} arg
1522
+ * @return {?}
1523
+ */
1524
+ function (arg) { return false; });
1525
+ _this.ngClass = (/**
1526
+ * @param {?=} arg
1527
+ * @return {?}
1528
+ */
1529
+ function (arg) { return ({}); });
1530
+ /* Store pipe */
1531
+ _this.self = _this;
1532
+ _this._storedElements = [];
1533
+ return _this;
1534
+ }
1535
+ Object.defineProperty(ListCheckableComponent.prototype, "storedElements", {
1536
+ get: /**
1537
+ * @return {?}
1538
+ */
1539
+ function () {
1540
+ return this._storedElements;
1541
+ },
1542
+ set: /**
1543
+ * @param {?} list
1544
+ * @return {?}
1545
+ */
1546
+ function (list) {
1547
+ this._storedElements = list;
1548
+ this.listChange.emit(list);
1549
+ },
1550
+ enumerable: true,
1551
+ configurable: true
1552
+ });
1553
+ /**
1554
+ * @param {?} checkAll
1555
+ * @return {?}
1556
+ */
1557
+ ListCheckableComponent.prototype.toggleAll = /**
1558
+ * @param {?} checkAll
1559
+ * @return {?}
1560
+ */
1561
+ function (checkAll) {
1562
+ var _this = this;
1563
+ this.model.forEach((/**
1564
+ * @param {?} item
1565
+ * @return {?}
1566
+ */
1567
+ function (item) {
1568
+ /** @type {?} */
1569
+ var isChecked = _this.isChecked(item);
1570
+ if (!_this.isDisabled(item)
1571
+ && ((isChecked && !checkAll) || (!isChecked && checkAll))) {
1572
+ _this.onCheck.emit({ item: item, checked: checkAll });
1573
+ }
1574
+ }));
1575
+ };
1576
+ ListCheckableComponent.decorators = [
1577
+ { type: Component, args: [{
1578
+ selector: 'ode-list-checkable',
1579
+ 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",
1580
+ 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}"]
1581
+ }] }
1582
+ ];
1583
+ /** @nocollapse */
1584
+ ListCheckableComponent.ctorParameters = function () { return [
1585
+ { type: Injector }
1586
+ ]; };
1587
+ ListCheckableComponent.propDecorators = {
1588
+ model: [{ type: Input }],
1589
+ filters: [{ type: Input }],
1590
+ sort: [{ type: Input }],
1591
+ limit: [{ type: Input }],
1592
+ noResultsLabel: [{ type: Input }],
1593
+ readOnly: [{ type: Input }],
1594
+ onCheck: [{ type: Output }],
1595
+ listChange: [{ type: Output }],
1596
+ scrolledDown: [{ type: Output }],
1597
+ templateRef: [{ type: ContentChild, args: [TemplateRef, { static: false },] }],
1598
+ areAllChecked: [{ type: Input }],
1599
+ isChecked: [{ type: Input }],
1600
+ isDisabled: [{ type: Input }],
1601
+ ngClass: [{ type: Input }]
1602
+ };
1603
+ return ListCheckableComponent;
1604
+ }(OdeComponent));
1605
+ if (false) {
1606
+ /** @type {?} */
1607
+ ListCheckableComponent.prototype.model;
1608
+ /** @type {?} */
1609
+ ListCheckableComponent.prototype.filters;
1610
+ /** @type {?} */
1611
+ ListCheckableComponent.prototype.sort;
1612
+ /** @type {?} */
1613
+ ListCheckableComponent.prototype.limit;
1614
+ /** @type {?} */
1615
+ ListCheckableComponent.prototype.noResultsLabel;
1616
+ /** @type {?} */
1617
+ ListCheckableComponent.prototype.readOnly;
1618
+ /** @type {?} */
1619
+ ListCheckableComponent.prototype.onCheck;
1620
+ /** @type {?} */
1621
+ ListCheckableComponent.prototype.listChange;
1622
+ /** @type {?} */
1623
+ ListCheckableComponent.prototype.scrolledDown;
1624
+ /** @type {?} */
1625
+ ListCheckableComponent.prototype.templateRef;
1626
+ /** @type {?} */
1627
+ ListCheckableComponent.prototype.areAllChecked;
1628
+ /** @type {?} */
1629
+ ListCheckableComponent.prototype.isChecked;
1630
+ /** @type {?} */
1631
+ ListCheckableComponent.prototype.isDisabled;
1632
+ /** @type {?} */
1633
+ ListCheckableComponent.prototype.ngClass;
1634
+ /** @type {?} */
1635
+ ListCheckableComponent.prototype.self;
1636
+ /** @type {?} */
1637
+ ListCheckableComponent.prototype._storedElements;
1638
+ }
1639
+
1496
1640
  /**
1497
1641
  * @fileoverview added by tsickle
1498
1642
  * Generated from: lib/components/message-box/message-box.component.ts
@@ -5049,6 +5193,7 @@ var NgxOdeUiModule = /** @class */ (function () {
5049
5193
  LightBoxComponent,
5050
5194
  LightboxConfirmComponent,
5051
5195
  ListComponent,
5196
+ ListCheckableComponent,
5052
5197
  MonoSelectComponent,
5053
5198
  MultiSelectComponent,
5054
5199
  MultiComboComponent,
@@ -5100,6 +5245,7 @@ var NgxOdeUiModule = /** @class */ (function () {
5100
5245
  LightBoxComponent,
5101
5246
  LightboxConfirmComponent,
5102
5247
  ListComponent,
5248
+ ListCheckableComponent,
5103
5249
  MonoSelectComponent,
5104
5250
  MultiSelectComponent,
5105
5251
  MultiComboComponent,
@@ -5155,5 +5301,5 @@ var NgxOdeUiModule = /** @class */ (function () {
5155
5301
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5156
5302
  */
5157
5303
 
5158
- 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 };
5304
+ 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 };
5159
5305
  //# sourceMappingURL=ngx-ode-ui.js.map