UNPKG

carbon-components-angular

Version:
141 lines (138 loc) 35.2 kB
/*! * * Neutrino v0.0.0 | table.component.ngfactory.js * * Copyright 2014, 2018 IBM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @fileoverview This file was generated by the Angular template compiler. Do not edit. * * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes} * tslint:disable */ import * as i0 from "@angular/core"; import * as i1 from "../checkbox/checkbox.component.ngfactory"; import * as i2 from "../checkbox/checkbox.component"; import * as i3 from "@angular/forms"; import * as i4 from "@angular/common"; import * as i5 from "../dialog/dialog.service"; import * as i6 from "../placeholder/placeholder.service"; import * as i7 from "../dialog/tooltip/tooltip.directive"; import * as i8 from "../icon/static-icon.component.ngfactory"; import * as i9 from "../icon/static-icon.component"; import * as i10 from "./table.component"; import * as i11 from "../i18n/i18n.service"; var styles_Table = []; var RenderType_Table = i0.ɵcrt({ encapsulation: 2, styles: styles_Table, data: {} }); export { RenderType_Table as RenderType_Table }; function View_Table_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "th", [], null, null, null, null, null))], null, null); } function View_Table_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, "th", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 5, "ibm-checkbox", [["aria-label", "Select all rows"]], [[1, "class", 0], [2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "change"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("ngModelChange" === en)) { var pd_0 = ((_co.selectAllCheckbox = $event) !== false); ad = (pd_0 && ad); } if (("change" === en)) { var pd_1 = (_co.onSelectAllCheckboxChange() !== false); ad = (pd_1 && ad); } return ad; }, i1.View_Checkbox_0, i1.RenderType_Checkbox)), i0.ɵdid(2, 4243456, null, 0, i2.Checkbox, [i0.ChangeDetectorRef], { size: [0, "size"], ariaLabel: [1, "ariaLabel"], indeterminate: [2, "indeterminate"] }, { change: "change" }), i0.ɵprd(1024, null, i3.NG_VALUE_ACCESSOR, function (p0_0) { return [p0_0]; }, [i2.Checkbox]), i0.ɵdid(4, 671744, null, 0, i3.NgModel, [[8, null], [8, null], [8, null], [6, i3.NG_VALUE_ACCESSOR]], { model: [0, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i3.NgControl, null, [i3.NgModel]), i0.ɵdid(6, 16384, null, 0, i3.NgControlStatus, [[4, i3.NgControl]], null, null)], function (_ck, _v) { var _co = _v.component; var currVal_8 = (_co.size !== ("lg" ? "sm" : "md")); var currVal_9 = "Select all rows"; var currVal_10 = _co.selectAllCheckboxSomeSelected; _ck(_v, 2, 0, currVal_8, currVal_9, currVal_10); var currVal_11 = _co.selectAllCheckbox; _ck(_v, 4, 0, currVal_11); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 2).class; var currVal_1 = i0.ɵnov(_v, 6).ngClassUntouched; var currVal_2 = i0.ɵnov(_v, 6).ngClassTouched; var currVal_3 = i0.ɵnov(_v, 6).ngClassPristine; var currVal_4 = i0.ɵnov(_v, 6).ngClassDirty; var currVal_5 = i0.ɵnov(_v, 6).ngClassValid; var currVal_6 = i0.ɵnov(_v, 6).ngClassInvalid; var currVal_7 = i0.ɵnov(_v, 6).ngClassPending; _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7); }); } function View_Table_5(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "column-resize-handle"]], null, [[null, "mousedown"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("mousedown" === en)) { var pd_0 = (_co.columnResizeStart($event, _v.parent.parent.context.$implicit) !== false); ad = (pd_0 && ad); } return ad; }, null, null))], null, null); } function View_Table_7(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], [[8, "title", 0]], null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = _v.parent.parent.parent.context.$implicit.data; _ck(_v, 0, 0, currVal_0); var currVal_1 = _v.parent.parent.parent.context.$implicit.data; _ck(_v, 1, 0, currVal_1); }); } function View_Table_8(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵand(0, null, null, 0))], null, null); } function View_Table_6(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 11, "button", [["class", "bx--table-sort-v2"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.sort.emit(_v.parent.parent.context.index) !== false); ad = (pd_0 && ad); } return ad; }, null, null)), i0.ɵdid(1, 278528, null, 0, i4.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), i0.ɵpod(2, { "bx--table-sort-v2--active": 0, "bx--table-sort-v2--ascending": 1 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_7)), i0.ɵdid(4, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 2, null, View_Table_8)), i0.ɵdid(6, 540672, null, 0, i4.NgTemplateOutlet, [i0.ViewContainerRef], { ngTemplateOutletContext: [0, "ngTemplateOutletContext"], ngTemplateOutlet: [1, "ngTemplateOutlet"] }, null), i0.ɵpod(7, { data: 0 }), (_l()(), i0.ɵeld(8, 0, null, null, 3, ":svg:svg", [["class", "bx--table-sort-v2__icon"], ["height", "5"], ["viewBox", "0 0 10 5"], ["width", "10"]], [[1, "aria-label", 0], [1, "alt", 0]], null, null, null, null)), (_l()(), i0.ɵeld(9, 0, null, null, 1, ":svg:title", [], null, null, null, null, null)), (_l()(), i0.ɵted(10, null, ["", ""])), (_l()(), i0.ɵeld(11, 0, null, null, 0, ":svg:path", [["d", "M0 0l5 4.998L10 0z"], ["fill-rule", "evenodd"]], null, null, null, null, null))], function (_ck, _v) { var currVal_0 = "bx--table-sort-v2"; var currVal_1 = _ck(_v, 2, 0, _v.parent.parent.context.$implicit.sorted, _v.parent.parent.context.$implicit.ascending); _ck(_v, 1, 0, currVal_0, currVal_1); var currVal_2 = !_v.parent.parent.context.$implicit.template; _ck(_v, 4, 0, currVal_2); var currVal_3 = _ck(_v, 7, 0, _v.parent.parent.context.$implicit.data); var currVal_4 = _v.parent.parent.context.$implicit.template; _ck(_v, 6, 0, currVal_3, currVal_4); }, function (_ck, _v) { var _co = _v.component; var currVal_5 = ((_v.parent.parent.context.$implicit.sorted && _v.parent.parent.context.$implicit.ascending) ? _co.sortDescendingLabel : _co.sortAscendingLabel); var currVal_6 = ((_v.parent.parent.context.$implicit.sorted && _v.parent.parent.context.$implicit.ascending) ? _co.sortDescendingLabel : _co.sortAscendingLabel); _ck(_v, 8, 0, currVal_5, currVal_6); var currVal_7 = ((_v.parent.parent.context.$implicit.sorted && _v.parent.parent.context.$implicit.ascending) ? _co.sortDescendingLabel : _co.sortAscendingLabel); _ck(_v, 10, 0, currVal_7); }); } function View_Table_10(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], [[8, "title", 0]], null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = _v.parent.parent.parent.context.$implicit.data; _ck(_v, 0, 0, currVal_0); var currVal_1 = _v.parent.parent.parent.context.$implicit.data; _ck(_v, 1, 0, currVal_1); }); } function View_Table_11(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵand(0, null, null, 0))], null, null); } function View_Table_9(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "span", [["class", "bx--table-header-label"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_10)), i0.ɵdid(2, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 2, null, View_Table_11)), i0.ɵdid(4, 540672, null, 0, i4.NgTemplateOutlet, [i0.ViewContainerRef], { ngTemplateOutletContext: [0, "ngTemplateOutletContext"], ngTemplateOutlet: [1, "ngTemplateOutlet"] }, null), i0.ɵpod(5, { data: 0 })], function (_ck, _v) { var currVal_0 = !_v.parent.parent.context.$implicit.template; _ck(_v, 2, 0, currVal_0); var currVal_1 = _ck(_v, 5, 0, _v.parent.parent.context.$implicit.data); var currVal_2 = _v.parent.parent.context.$implicit.template; _ck(_v, 4, 0, currVal_1, currVal_2); }, null); } function View_Table_13(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, [" ", " "]))], null, function (_ck, _v) { var currVal_0 = _v.parent.parent.parent.context.$implicit.filterCount; _ck(_v, 1, 0, currVal_0); }); } function View_Table_12(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 16777216, null, null, 8, "button", [["aria-expanded", "false"], ["aria-haspopup", "true"], ["placement", "bottom,top"], ["trigger", "click"], ["type", "button"]], [[1, "role", 0], [1, "aria-expanded", 0], [1, "aria-describedby", 0]], [[null, "touchstart"]], function (_v, en, $event) { var ad = true; if (("touchstart" === en)) { var pd_0 = (i0.ɵnov(_v, 4).onTouchStart($event) !== false); ad = (pd_0 && ad); } return ad; }, null, null)), i0.ɵdid(1, 278528, null, 0, i4.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngClass: [0, "ngClass"] }, null), i0.ɵpod(2, { "active": 0 }), i0.ɵprd(512, null, i5.DialogService, i5.DialogService, [i0.ComponentFactoryResolver, i0.Injector, i6.PlaceholderService]), i0.ɵdid(4, 737280, null, 0, i7.TooltipDirective, [i0.ElementRef, i0.ViewContainerRef, i5.DialogService], { title: [0, "title"], trigger: [1, "trigger"], placement: [2, "placement"], data: [3, "data"], ibmTooltip: [4, "ibmTooltip"] }, null), (_l()(), i0.ɵeld(5, 0, null, null, 1, ":svg:svg", [["class", "icon--sm"], ["height", "16"], ["viewBox", "0 0 16 16"], ["width", "16"], ["xmlns", "http://www.w3.org/2000/svg"]], null, null, null, null, null)), (_l()(), i0.ɵeld(6, 0, null, null, 0, ":svg:path", [["d", "M0 0v3l6 8v5h4v-5l6-8V0H0zm9 10.7V15H7v-4.3L1.3 3h13.5L9 10.7z"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_13)), i0.ɵdid(8, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(0, null, null, 0))], function (_ck, _v) { var _co = _v.component; var currVal_3 = _ck(_v, 2, 0, (_v.parent.parent.context.$implicit.filterCount > 0)); _ck(_v, 1, 0, currVal_3); var currVal_4 = _co.translations.FILTER; var currVal_5 = "click"; var currVal_6 = "bottom,top"; var currVal_7 = _v.parent.parent.context.$implicit.filterData; var currVal_8 = _v.parent.parent.context.$implicit.filterTemplate; _ck(_v, 4, 0, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8); var currVal_9 = (_v.parent.parent.context.$implicit.filterCount > 0); _ck(_v, 8, 0, currVal_9); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 4).role; var currVal_1 = i0.ɵnov(_v, 4).expanded; var currVal_2 = i0.ɵnov(_v, 4).descriptorId; _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2); }); } function View_Table_15(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "drop-indicator-left"]], null, null, null, null, null))], null, null); } function View_Table_16(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "drop-indicator-right"]], null, null, null, null, null))], null, null); } function View_Table_14(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, "div", [["class", "drop-area"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_15)), i0.ɵdid(2, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(3, 0, null, null, 0, "div", [["class", "drop-area-left"]], null, [[null, "dragenter"], [null, "dragleave"], [null, "dragover"], [null, "drop"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("dragenter" === en)) { var pd_0 = (_co.columnDragEnter($event, "left", _v.parent.parent.context.index) !== false); ad = (pd_0 && ad); } if (("dragleave" === en)) { var pd_1 = (_co.columnDragLeave($event, "left", _v.parent.parent.context.index) !== false); ad = (pd_1 && ad); } if (("dragover" === en)) { var pd_2 = (_co.columnDragover($event, "left", _v.parent.parent.context.index) !== false); ad = (pd_2 && ad); } if (("drop" === en)) { var pd_3 = (_co.columnDrop($event, "left", _v.parent.parent.context.index) !== false); ad = (pd_3 && ad); } return ad; }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "div", [["class", "drop-area-right"]], null, [[null, "dragenter"], [null, "dragleave"], [null, "dragover"], [null, "drop"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("dragenter" === en)) { var pd_0 = (_co.columnDragEnter($event, "right", _v.parent.parent.context.index) !== false); ad = (pd_0 && ad); } if (("dragleave" === en)) { var pd_1 = (_co.columnDragLeave($event, "right", _v.parent.parent.context.index) !== false); ad = (pd_1 && ad); } if (("dragover" === en)) { var pd_2 = (_co.columnDragover($event, "right", _v.parent.parent.context.index) !== false); ad = (pd_2 && ad); } if (("drop" === en)) { var pd_3 = (_co.columnDrop($event, "right", _v.parent.parent.context.index) !== false); ad = (pd_3 && ad); } return ad; }, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_16)), i0.ɵdid(6, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = ((_co.columnDraggedHoverIndex == _v.parent.parent.context.index) && (_co.columnDraggedPosition == "left")); _ck(_v, 2, 0, currVal_0); var currVal_1 = ((_co.columnDraggedHoverIndex == _v.parent.parent.context.index) && (_co.columnDraggedPosition == "right")); _ck(_v, 6, 0, currVal_1); }, null); } function View_Table_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 13, "th", [], [[8, "draggable", 0]], [[null, "dragstart"], [null, "dragend"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("dragstart" === en)) { var pd_0 = (_co.columnDragStart($event, _v.parent.context.index) !== false); ad = (pd_0 && ad); } if (("dragend" === en)) { var pd_1 = (_co.columnDragEnd($event, _v.parent.context.index) !== false); ad = (pd_1 && ad); } return ad; }, null, null)), i0.ɵdid(1, 278528, null, 0, i4.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), i0.ɵpod(2, { "thead_action": 0 }), i0.ɵdid(3, 278528, null, 0, i4.NgStyle, [i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngStyle: [0, "ngStyle"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_5)), i0.ɵdid(5, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_6)), i0.ɵdid(7, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_9)), i0.ɵdid(9, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_12)), i0.ɵdid(11, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_14)), i0.ɵdid(13, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_1 = _v.parent.context.$implicit.className; var currVal_2 = _ck(_v, 2, 0, (_v.parent.context.$implicit.filterTemplate || (_co.sort.observers.length > 0))); _ck(_v, 1, 0, currVal_1, currVal_2); var currVal_3 = _v.parent.context.$implicit.style; _ck(_v, 3, 0, currVal_3); var currVal_4 = _co.columnsResizable; _ck(_v, 5, 0, currVal_4); var currVal_5 = ((_co.sort.observers.length > 0) && _v.parent.context.$implicit.sortable); _ck(_v, 7, 0, currVal_5); var currVal_6 = ((_co.sort.observers.length === 0) || ((_co.sort.observers.length > 0) && !_v.parent.context.$implicit.sortable)); _ck(_v, 9, 0, currVal_6); var currVal_7 = _v.parent.context.$implicit.filterTemplate; _ck(_v, 11, 0, currVal_7); var currVal_8 = (_co.columnsDraggable && _co.isColumnDragging); _ck(_v, 13, 0, currVal_8); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.columnsDraggable; _ck(_v, 0, 0, currVal_0); }); } function View_Table_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, null, null, null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_4)), i0.ɵdid(2, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(0, null, null, 0))], function (_ck, _v) { var currVal_0 = _v.context.$implicit.visible; _ck(_v, 2, 0, currVal_0); }, null); } function View_Table_21(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "button", [["class", "bx--table-expand-v2__button"]], [[1, "aria-label", 0]], [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.model.expandRow(_v.parent.parent.parent.context.index, !_co.model.rowsExpanded[_v.parent.parent.parent.context.index]) !== false); ad = (pd_0 && ad); } return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, ":svg:svg", [["class", "bx--table-expand-v2__svg"], ["height", "12"], ["viewBox", "0 0 7 12"], ["width", "7"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, ":svg:path", [["d", "M5.569 5.994L0 .726.687 0l6.336 5.994-6.335 6.002L0 11.27z"], ["fill-rule", "nonzero"]], null, null, null, null, null))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.expandButtonAriaLabel; _ck(_v, 0, 0, currVal_0); }); } function View_Table_20(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "td", [["class", "bx--table-expand-v2"]], [[1, "data-previous-value", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_21)), i0.ɵdid(2, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_1 = _co.model.isRowExpandable(_v.parent.parent.context.index); _ck(_v, 2, 0, currVal_1); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.model.rowsExpanded[_v.parent.parent.context.index] ? "collapsed" : null); _ck(_v, 0, 0, currVal_0); }); } function View_Table_22(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, "td", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 5, "ibm-checkbox", [["aria-label", "Select row"]], [[1, "class", 0], [2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "change"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("ngModelChange" === en)) { var pd_0 = ((_co.model.rowsSelected[_v.parent.parent.context.index] = $event) !== false); ad = (pd_0 && ad); } if (("change" === en)) { var pd_1 = (_co.onRowCheckboxChange(_v.parent.parent.context.index) !== false); ad = (pd_1 && ad); } return ad; }, i1.View_Checkbox_0, i1.RenderType_Checkbox)), i0.ɵdid(2, 4243456, null, 0, i2.Checkbox, [i0.ChangeDetectorRef], { size: [0, "size"], ariaLabel: [1, "ariaLabel"] }, { change: "change" }), i0.ɵprd(1024, null, i3.NG_VALUE_ACCESSOR, function (p0_0) { return [p0_0]; }, [i2.Checkbox]), i0.ɵdid(4, 671744, null, 0, i3.NgModel, [[8, null], [8, null], [8, null], [6, i3.NG_VALUE_ACCESSOR]], { model: [0, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i3.NgControl, null, [i3.NgModel]), i0.ɵdid(6, 16384, null, 0, i3.NgControlStatus, [[4, i3.NgControl]], null, null)], function (_ck, _v) { var _co = _v.component; var currVal_8 = (_co.size !== ("lg" ? "sm" : "md")); var currVal_9 = "Select row"; _ck(_v, 2, 0, currVal_8, currVal_9); var currVal_10 = _co.model.rowsSelected[_v.parent.parent.context.index]; _ck(_v, 4, 0, currVal_10); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 2).class; var currVal_1 = i0.ɵnov(_v, 6).ngClassUntouched; var currVal_2 = i0.ɵnov(_v, 6).ngClassTouched; var currVal_3 = i0.ɵnov(_v, 6).ngClassPristine; var currVal_4 = i0.ɵnov(_v, 6).ngClassDirty; var currVal_5 = i0.ɵnov(_v, 6).ngClassValid; var currVal_6 = i0.ɵnov(_v, 6).ngClassInvalid; var currVal_7 = i0.ɵnov(_v, 6).ngClassPending; _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7); }); } function View_Table_25(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, null, null, null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = _v.parent.parent.context.$implicit.data; _ck(_v, 1, 0, currVal_0); }); } function View_Table_26(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵand(0, null, null, 0))], null, null); } function View_Table_24(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, "td", [], [[8, "className", 0]], null, null, null, null)), i0.ɵdid(1, 278528, null, 0, i4.NgStyle, [i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngStyle: [0, "ngStyle"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_25)), i0.ɵdid(3, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 2, null, View_Table_26)), i0.ɵdid(5, 540672, null, 0, i4.NgTemplateOutlet, [i0.ViewContainerRef], { ngTemplateOutletContext: [0, "ngTemplateOutletContext"], ngTemplateOutlet: [1, "ngTemplateOutlet"] }, null), i0.ɵpod(6, { data: 0 })], function (_ck, _v) { var _co = _v.component; var currVal_1 = _co.model.header[_v.parent.context.index].style; _ck(_v, 1, 0, currVal_1); var currVal_2 = !_v.parent.context.$implicit.template; _ck(_v, 3, 0, currVal_2); var currVal_3 = _ck(_v, 6, 0, _v.parent.context.$implicit.data); var currVal_4 = _v.parent.context.$implicit.template; _ck(_v, 5, 0, currVal_3, currVal_4); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.model.header[_v.parent.context.index].className; _ck(_v, 0, 0, currVal_0); }); } function View_Table_23(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, null, null, null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_24)), i0.ɵdid(2, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(0, null, null, 0))], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.model.header[_v.context.index].visible; _ck(_v, 2, 0, currVal_0); }, null); } function View_Table_19(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 8, "tr", [], [[1, "data-parent-row", 0]], [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.onRowSelect(_v.parent.context.index) !== false); ad = (pd_0 && ad); } return ad; }, null, null)), i0.ɵdid(1, 278528, null, 0, i4.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngClass: [0, "ngClass"] }, null), i0.ɵpod(2, { "bx--data-table-v2--selected": 0, "bx--parent-row-v2": 1, "bx--expandable-row-v2": 2, "tbody_row--selectable": 3, "tbody_row--success": 4, "tbody_row--warning": 5, "tbody_row--info": 6, "tbody_row--error": 7 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_20)), i0.ɵdid(4, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_22)), i0.ɵdid(6, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_23)), i0.ɵdid(8, 278528, null, 0, i4.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_1 = _ck(_v, 2, 0, _co.model.rowsSelected[_v.parent.context.index], _co.model.isRowExpandable(_v.parent.context.index), _co.model.rowsExpanded[_v.parent.context.index], _co.enableSingleSelect, (!_co.model.rowsSelected[_v.parent.context.index] && (_co.model.rowsContext[_v.parent.context.index] === "success")), (!_co.model.rowsSelected[_v.parent.context.index] && (_co.model.rowsContext[_v.parent.context.index] === "warning")), (!_co.model.rowsSelected[_v.parent.context.index] && (_co.model.rowsContext[_v.parent.context.index] === "info")), (!_co.model.rowsSelected[_v.parent.context.index] && (_co.model.rowsContext[_v.parent.context.index] === "error"))); _ck(_v, 1, 0, currVal_1); var currVal_2 = _co.model.hasExpandableRows(); _ck(_v, 4, 0, currVal_2); var currVal_3 = _co.showSelectionColumn; _ck(_v, 6, 0, currVal_3); var currVal_4 = _v.parent.context.$implicit; _ck(_v, 8, 0, currVal_4); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.model.isRowExpandable(_v.parent.context.index) ? "true" : null); _ck(_v, 0, 0, currVal_0); }); } function View_Table_28(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, null, null, null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.firstExpandedDataInRow(_v.parent.parent.context.$implicit); _ck(_v, 1, 0, currVal_0); }); } function View_Table_29(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵand(0, null, null, 0))], null, null); } function View_Table_27(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, "tr", [["class", "bx--expandable-row-v2"]], [[1, "data-child-row", 0]], null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 5, "td", [], [[1, "colspan", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_28)), i0.ɵdid(3, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 2, null, View_Table_29)), i0.ɵdid(5, 540672, null, 0, i4.NgTemplateOutlet, [i0.ViewContainerRef], { ngTemplateOutletContext: [0, "ngTemplateOutletContext"], ngTemplateOutlet: [1, "ngTemplateOutlet"] }, null), i0.ɵpod(6, { data: 0 })], function (_ck, _v) { var _co = _v.component; var currVal_2 = !_co.firstExpandedTemplateInRow(_v.parent.context.$implicit); _ck(_v, 3, 0, currVal_2); var currVal_3 = _ck(_v, 6, 0, _co.firstExpandedDataInRow(_v.parent.context.$implicit)); var currVal_4 = _co.firstExpandedTemplateInRow(_v.parent.context.$implicit); _ck(_v, 5, 0, currVal_3, currVal_4); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.model.rowsExpanded[_v.parent.context.index] ? "true" : null); _ck(_v, 0, 0, currVal_0); var currVal_1 = (_co.model.data.length + 2); _ck(_v, 1, 0, currVal_1); }); } function View_Table_18(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, null, null, null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_19)), i0.ɵdid(2, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_27)), i0.ɵdid(4, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(0, null, null, 0))], function (_ck, _v) { var _co = _v.component; var currVal_0 = !_co.model.isRowFiltered(_v.context.index); _ck(_v, 2, 0, currVal_0); var currVal_1 = _co.model.rowsExpanded[_v.context.index]; _ck(_v, 4, 0, currVal_1); }, null); } function View_Table_17(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "tbody", [], null, [[null, "scroll"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("scroll" === en)) { var pd_0 = (_co.onScroll($event) !== false); ad = (pd_0 && ad); } return ad; }, null, null)), i0.ɵdid(1, 278528, null, 0, i4.NgStyle, [i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngStyle: [0, "ngStyle"] }, null), i0.ɵpod(2, { "overflow-y": 0 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_18)), i0.ɵdid(4, 278528, null, 0, i4.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _ck(_v, 2, 0, "scroll"); _ck(_v, 1, 0, currVal_0); var currVal_1 = _co.model.data; _ck(_v, 4, 0, currVal_1); }, null); } function View_Table_30(_l) { return i0.ɵvid(0, [i0.ɵncd(null, 0), (_l()(), i0.ɵand(0, null, null, 0))], null, null); } function View_Table_31(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "tr", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, "td", [["class", "table_loading-indicator"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "ibm-static-icon", [["icon", "loading_rows"], ["size", "lg"]], null, null, null, i8.View_StaticIcon_0, i8.RenderType_StaticIcon)), i0.ɵdid(3, 4243456, null, 0, i9.StaticIcon, [i0.ElementRef], { icon: [0, "icon"], size: [1, "size"] }, null)], function (_ck, _v) { var currVal_0 = "loading_rows"; var currVal_1 = "lg"; _ck(_v, 3, 0, currVal_0, currVal_1); }, null); } function View_Table_32(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "tr", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 4, "td", [["class", "table_end-indicator"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "h5", [], null, null, null, null, null)), (_l()(), i0.ɵted(3, null, ["", ""])), (_l()(), i0.ɵeld(4, 0, null, null, 1, "button", [["class", "btn--secondary-sm"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.scrollToTop($event) !== false); ad = (pd_0 && ad); } return ad; }, null, null)), (_l()(), i0.ɵted(5, null, [" ", " "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.translations.END_OF_DATA; _ck(_v, 3, 0, currVal_0); var currVal_1 = _co.translations.SCROLL_TOP; _ck(_v, 5, 0, currVal_1); }); } export function View_Table_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 21, "table", [["class", "bx--data-table-v2"]], null, null, null, null, null)), i0.ɵdid(1, 278528, null, 0, i4.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), i0.ɵpod(2, { "bx--data-table-v2--compact": 0, "bx--data-table-v2--tall": 1, "bx--data-table-v2--zebra": 2 }), (_l()(), i0.ɵeld(3, 0, null, null, 10, "thead", [], null, null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 9, "tr", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_1)), i0.ɵdid(6, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_2)), i0.ɵdid(8, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_3)), i0.ɵdid(10, 278528, null, 0, i4.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵeld(11, 0, null, null, 2, "th", [], null, null, null, null, null)), i0.ɵdid(12, 278528, null, 0, i4.NgStyle, [i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngStyle: [0, "ngStyle"] }, null), i0.ɵpod(13, { "width": 0, "padding": 1, "border": 2 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_17)), i0.ɵdid(15, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"], ngIfElse: [1, "ngIfElse"] }, null), (_l()(), i0.ɵand(0, [["noDataTemplate", 2]], null, 0, null, View_Table_30)), (_l()(), i0.ɵeld(17, 0, null, null, 4, "tfoot", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_31)), i0.ɵdid(19, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Table_32)), i0.ɵdid(21, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = "bx--data-table-v2"; var currVal_1 = _ck(_v, 2, 0, (_co.size === "sm"), (_co.size === "lg"), _co.striped); _ck(_v, 1, 0, currVal_0, currVal_1); var currVal_2 = _co.model.hasExpandableRows(); _ck(_v, 6, 0, currVal_2); var currVal_3 = _co.showSelectionColumn; _ck(_v, 8, 0, currVal_3); var currVal_4 = _co.model.header; _ck(_v, 10, 0, currVal_4); var currVal_5 = _ck(_v, 13, 0, (_co.scrollbarWidth + "px"), 0, 0); _ck(_v, 12, 0, currVal_5); var currVal_6 = !_co.noData; var currVal_7 = i0.ɵnov(_v, 16); _ck(_v, 15, 0, currVal_6, currVal_7); var currVal_8 = _co.model.isLoading; _ck(_v, 19, 0, currVal_8); var currVal_9 = _co.model.isEnd; _ck(_v, 21, 0, currVal_9); }, null); } export function View_Table_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "ibm-table", [], null, null, null, View_Table_0, RenderType_Table)), i0.ɵdid(1, 49152, null, 0, i10.Table, [i0.ApplicationRef, i11.I18n], null, null)], null, null); } var TableNgFactory = i0.ɵccf("ibm-table", i10.Table, View_Table_Host_0, { size: "size", translations: "translations", model: "model", enableRowSelect: "enableRowSelect", showSelectionColumn: "showSelectionColumn", enableSingleSelect: "enableSingleSelect", scrollLoadDistance: "scrollLoadDistance", columnsResizable: "columnsResizable", columnsDraggable: "columnsDraggable", expandButtonAriaLabel: "expandButtonAriaLabel", sortDescendingLabel: "sortDescendingLabel", sortAscendingLabel: "sortAscendingLabel", striped: "striped" }, { sort: "sort", selectAll: "selectAll", deselectAll: "deselectAll", selectRow: "selectRow", deselectRow: "deselectRow", scrollLoad: "scrollLoad" }, ["*"]); export { TableNgFactory as TableNgFactory }; //# sourceMappingURL=table.component.ngfactory.js.map