(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('ng-zorro-antd/avatar'), require('@angular/common'), require('ng-zorro-antd/core'), require('rxjs'), require('rxjs/operators'), require('ng-zorro-antd/empty'), require('ng-zorro-antd/spin'), require('ng-zorro-antd/grid')) :
    typeof define === 'function' && define.amd ? define('ng-zorro-antd/list', ['exports', '@angular/core', 'ng-zorro-antd/avatar', '@angular/common', 'ng-zorro-antd/core', 'rxjs', 'rxjs/operators', 'ng-zorro-antd/empty', 'ng-zorro-antd/spin', 'ng-zorro-antd/grid'], factory) :
    (global = global || self, factory((global['ng-zorro-antd'] = global['ng-zorro-antd'] || {}, global['ng-zorro-antd'].list = {}), global.ng.core, global['ng-zorro-antd'].avatar, global.ng.common, global['ng-zorro-antd'].core, global.rxjs, global.rxjs.operators, global['ng-zorro-antd'].empty, global['ng-zorro-antd'].spin, global['ng-zorro-antd'].grid));
}(this, (function (exports, core, avatar, common, core$1, rxjs, operators, empty, spin, grid) { 'use strict';

    /*! *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    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

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    ***************************************************************************** */
    /* global Reflect, Promise */

    var extendStatics = function(d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };

    function __extends(d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    }

    var __assign = function() {
        __assign = Object.assign || function __assign(t) {
            for (var s, i = 1, n = arguments.length; i < n; i++) {
                s = arguments[i];
                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
            }
            return t;
        };
        return __assign.apply(this, arguments);
    };

    function __rest(s, e) {
        var t = {};
        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
            t[p] = s[p];
        if (s != null && typeof Object.getOwnPropertySymbols === "function")
            for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
                if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                    t[p[i]] = s[p[i]];
            }
        return t;
    }

    function __decorate(decorators, target, key, desc) {
        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
        else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        return c > 3 && r && Object.defineProperty(target, key, r), r;
    }

    function __param(paramIndex, decorator) {
        return function (target, key) { decorator(target, key, paramIndex); }
    }

    function __metadata(metadataKey, metadataValue) {
        if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
    }

    function __awaiter(thisArg, _arguments, P, generator) {
        function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
        return new (P || (P = Promise))(function (resolve, reject) {
            function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
            function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
            function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
            step((generator = generator.apply(thisArg, _arguments || [])).next());
        });
    }

    function __generator(thisArg, body) {
        var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
        return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
        function verb(n) { return function (v) { return step([n, v]); }; }
        function step(op) {
            if (f) throw new TypeError("Generator is already executing.");
            while (_) try {
                if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
                if (y = 0, t) op = [op[0] & 2, t.value];
                switch (op[0]) {
                    case 0: case 1: t = op; break;
                    case 4: _.label++; return { value: op[1], done: false };
                    case 5: _.label++; y = op[1]; op = [0]; continue;
                    case 7: op = _.ops.pop(); _.trys.pop(); continue;
                    default:
                        if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                        if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                        if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                        if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                        if (t[2]) _.ops.pop();
                        _.trys.pop(); continue;
                }
                op = body.call(thisArg, _);
            } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
            if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
        }
    }

    function __exportStar(m, exports) {
        for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
    }

    function __values(o) {
        var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
        if (m) return m.call(o);
        if (o && typeof o.length === "number") return {
            next: function () {
                if (o && i >= o.length) o = void 0;
                return { value: o && o[i++], done: !o };
            }
        };
        throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
    }

    function __read(o, n) {
        var m = typeof Symbol === "function" && o[Symbol.iterator];
        if (!m) return o;
        var i = m.call(o), r, ar = [], e;
        try {
            while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
        }
        catch (error) { e = { error: error }; }
        finally {
            try {
                if (r && !r.done && (m = i["return"])) m.call(i);
            }
            finally { if (e) throw e.error; }
        }
        return ar;
    }

    function __spread() {
        for (var ar = [], i = 0; i < arguments.length; i++)
            ar = ar.concat(__read(arguments[i]));
        return ar;
    }

    function __spreadArrays() {
        for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
        for (var r = Array(s), k = 0, i = 0; i < il; i++)
            for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
                r[k] = a[j];
        return r;
    };

    function __await(v) {
        return this instanceof __await ? (this.v = v, this) : new __await(v);
    }

    function __asyncGenerator(thisArg, _arguments, generator) {
        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
        var g = generator.apply(thisArg, _arguments || []), i, q = [];
        return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
        function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
        function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
        function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
        function fulfill(value) { resume("next", value); }
        function reject(value) { resume("throw", value); }
        function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
    }

    function __asyncDelegator(o) {
        var i, p;
        return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
        function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
    }

    function __asyncValues(o) {
        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
        var m = o[Symbol.asyncIterator], i;
        return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
        function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
        function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
    }

    function __makeTemplateObject(cooked, raw) {
        if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
        return cooked;
    };

    function __importStar(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
        result.default = mod;
        return result;
    }

    function __importDefault(mod) {
        return (mod && mod.__esModule) ? mod : { default: mod };
    }

    function __classPrivateFieldGet(receiver, privateMap) {
        if (!privateMap.has(receiver)) {
            throw new TypeError("attempted to get private field on non-instance");
        }
        return privateMap.get(receiver);
    }

    function __classPrivateFieldSet(receiver, privateMap, value) {
        if (!privateMap.has(receiver)) {
            throw new TypeError("attempted to set private field on non-instance");
        }
        privateMap.set(receiver, value);
        return value;
    }

    /**
     * @license
     * Copyright Alibaba.com All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
     */
    var _c0 = ["*"];
    function NzListItemMetaAvatarComponent_2_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵprojection"](0, 0, ["*ngIf", "!nzSrc"]);
    } }
    var NzListItemMetaTitleComponent = /** @class */ (function () {
        function NzListItemMetaTitleComponent() {
        }
        /** @nocollapse */ NzListItemMetaTitleComponent.ɵfac = function NzListItemMetaTitleComponent_Factory(t) { return new (t || NzListItemMetaTitleComponent)(); };
        /** @nocollapse */ NzListItemMetaTitleComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListItemMetaTitleComponent, selectors: [["nz-list-item-meta-title"]], exportAs: ["nzListItemMetaTitle"], ngContentSelectors: _c0, decls: 2, vars: 0, consts: [[1, "ant-list-item-meta-title"]], template: function NzListItemMetaTitleComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵprojectionDef"]();
                core["ɵɵelementStart"](0, "h4", 0);
                core["ɵɵprojection"](1);
                core["ɵɵelementEnd"]();
            } }, encapsulation: 2, changeDetection: 0 });
        return NzListItemMetaTitleComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListItemMetaTitleComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list-item-meta-title',
                    exportAs: 'nzListItemMetaTitle',
                    template: "\n    <h4 class=\"ant-list-item-meta-title\">\n      <ng-content></ng-content>\n    </h4>\n  ",
                    changeDetection: core.ChangeDetectionStrategy.OnPush
                }]
        }], null, null); })();
    var NzListItemMetaDescriptionComponent = /** @class */ (function () {
        function NzListItemMetaDescriptionComponent() {
        }
        /** @nocollapse */ NzListItemMetaDescriptionComponent.ɵfac = function NzListItemMetaDescriptionComponent_Factory(t) { return new (t || NzListItemMetaDescriptionComponent)(); };
        /** @nocollapse */ NzListItemMetaDescriptionComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListItemMetaDescriptionComponent, selectors: [["nz-list-item-meta-description"]], exportAs: ["nzListItemMetaDescription"], ngContentSelectors: _c0, decls: 2, vars: 0, consts: [[1, "ant-list-item-meta-description"]], template: function NzListItemMetaDescriptionComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵprojectionDef"]();
                core["ɵɵelementStart"](0, "div", 0);
                core["ɵɵprojection"](1);
                core["ɵɵelementEnd"]();
            } }, encapsulation: 2, changeDetection: 0 });
        return NzListItemMetaDescriptionComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListItemMetaDescriptionComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list-item-meta-description',
                    exportAs: 'nzListItemMetaDescription',
                    template: "\n    <div class=\"ant-list-item-meta-description\">\n      <ng-content></ng-content>\n    </div>\n  ",
                    changeDetection: core.ChangeDetectionStrategy.OnPush
                }]
        }], null, null); })();
    var NzListItemMetaAvatarComponent = /** @class */ (function () {
        function NzListItemMetaAvatarComponent() {
        }
        /** @nocollapse */ NzListItemMetaAvatarComponent.ɵfac = function NzListItemMetaAvatarComponent_Factory(t) { return new (t || NzListItemMetaAvatarComponent)(); };
        /** @nocollapse */ NzListItemMetaAvatarComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListItemMetaAvatarComponent, selectors: [["nz-list-item-meta-avatar"]], inputs: { nzSrc: "nzSrc" }, exportAs: ["nzListItemMetaAvatar"], ngContentSelectors: _c0, decls: 3, vars: 2, consts: [[1, "ant-list-item-meta-avatar"], [3, "nzSrc"], [4, "ngIf"]], template: function NzListItemMetaAvatarComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵprojectionDef"]();
                core["ɵɵelementStart"](0, "div", 0);
                core["ɵɵelement"](1, "nz-avatar", 1);
                core["ɵɵtemplate"](2, NzListItemMetaAvatarComponent_2_Template, 1, 0, undefined, 2);
                core["ɵɵelementEnd"]();
            } if (rf & 2) {
                core["ɵɵadvance"](1);
                core["ɵɵproperty"]("nzSrc", ctx.nzSrc);
                core["ɵɵadvance"](1);
                core["ɵɵproperty"]("ngIf", !ctx.nzSrc);
            } }, directives: [avatar.NzAvatarComponent, common.NgIf], encapsulation: 2, changeDetection: 0 });
        return NzListItemMetaAvatarComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListItemMetaAvatarComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list-item-meta-avatar',
                    exportAs: 'nzListItemMetaAvatar',
                    template: "\n    <div class=\"ant-list-item-meta-avatar\">\n      <nz-avatar [nzSrc]=\"nzSrc\"></nz-avatar>\n      <ng-content *ngIf=\"!nzSrc\"></ng-content>\n    </div>\n  ",
                    changeDetection: core.ChangeDetectionStrategy.OnPush
                }]
        }], null, { nzSrc: [{
                type: core.Input
            }] }); })();

    /**
     * @license
     * Copyright Alibaba.com All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
     */
    function NzListItemMetaComponent_nz_list_item_meta_avatar_0_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelement"](0, "nz-list-item-meta-avatar", 3);
    } if (rf & 2) {
        var ctx_r2262 = core["ɵɵnextContext"]();
        core["ɵɵproperty"]("nzSrc", ctx_r2262.avatarStr);
    } }
    function NzListItemMetaComponent_nz_list_item_meta_avatar_1_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "nz-list-item-meta-avatar");
        core["ɵɵelementContainer"](1, 4);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var ctx_r2263 = core["ɵɵnextContext"]();
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", ctx_r2263.avatarTpl);
    } }
    function NzListItemMetaComponent_div_3_nz_list_item_meta_title_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementContainerStart"](0);
        core["ɵɵtext"](1);
        core["ɵɵelementContainerEnd"]();
    } if (rf & 2) {
        var ctx_r2267 = core["ɵɵnextContext"](3);
        core["ɵɵadvance"](1);
        core["ɵɵtextInterpolate"](ctx_r2267.nzTitle);
    } }
    function NzListItemMetaComponent_div_3_nz_list_item_meta_title_1_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "nz-list-item-meta-title");
        core["ɵɵtemplate"](1, NzListItemMetaComponent_div_3_nz_list_item_meta_title_1_ng_container_1_Template, 2, 1, "ng-container", 6);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var ctx_r2265 = core["ɵɵnextContext"](2);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("nzStringTemplateOutlet", ctx_r2265.nzTitle);
    } }
    function NzListItemMetaComponent_div_3_nz_list_item_meta_description_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementContainerStart"](0);
        core["ɵɵtext"](1);
        core["ɵɵelementContainerEnd"]();
    } if (rf & 2) {
        var ctx_r2268 = core["ɵɵnextContext"](3);
        core["ɵɵadvance"](1);
        core["ɵɵtextInterpolate"](ctx_r2268.nzDescription);
    } }
    function NzListItemMetaComponent_div_3_nz_list_item_meta_description_2_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "nz-list-item-meta-description");
        core["ɵɵtemplate"](1, NzListItemMetaComponent_div_3_nz_list_item_meta_description_2_ng_container_1_Template, 2, 1, "ng-container", 6);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var ctx_r2266 = core["ɵɵnextContext"](2);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("nzStringTemplateOutlet", ctx_r2266.nzDescription);
    } }
    function NzListItemMetaComponent_div_3_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "div", 5);
        core["ɵɵtemplate"](1, NzListItemMetaComponent_div_3_nz_list_item_meta_title_1_Template, 2, 1, "nz-list-item-meta-title", 1);
        core["ɵɵtemplate"](2, NzListItemMetaComponent_div_3_nz_list_item_meta_description_2_Template, 2, 1, "nz-list-item-meta-description", 1);
        core["ɵɵprojection"](3, 1);
        core["ɵɵprojection"](4, 2);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var ctx_r2264 = core["ɵɵnextContext"]();
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngIf", ctx_r2264.nzTitle && !ctx_r2264.titleComponent);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngIf", ctx_r2264.nzDescription && !ctx_r2264.descriptionComponent);
    } }
    var _c0$1 = [[["nz-list-item-meta-avatar"]], [["nz-list-item-meta-title"]], [["nz-list-item-meta-description"]]];
    var _c1 = ["nz-list-item-meta-avatar", "nz-list-item-meta-title", "nz-list-item-meta-description"];
    var NzListItemMetaComponent = /** @class */ (function () {
        function NzListItemMetaComponent(elementRef, renderer) {
            this.elementRef = elementRef;
            this.renderer = renderer;
            this.avatarStr = '';
            this.renderer.addClass(elementRef.nativeElement, 'ant-list-item-meta');
        }
        Object.defineProperty(NzListItemMetaComponent.prototype, "nzAvatar", {
            set: function (value) {
                if (value instanceof core.TemplateRef) {
                    this.avatarStr = '';
                    this.avatarTpl = value;
                }
                else {
                    this.avatarStr = value;
                }
            },
            enumerable: true,
            configurable: true
        });
        /** @nocollapse */ NzListItemMetaComponent.ɵfac = function NzListItemMetaComponent_Factory(t) { return new (t || NzListItemMetaComponent)(core["ɵɵdirectiveInject"](core.ElementRef), core["ɵɵdirectiveInject"](core.Renderer2)); };
        /** @nocollapse */ NzListItemMetaComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListItemMetaComponent, selectors: [["nz-list-item-meta"], ["", "nz-list-item-meta", ""]], contentQueries: function NzListItemMetaComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
                core["ɵɵcontentQuery"](dirIndex, NzListItemMetaDescriptionComponent, true);
                core["ɵɵcontentQuery"](dirIndex, NzListItemMetaTitleComponent, true);
            } if (rf & 2) {
                var _t;
                core["ɵɵqueryRefresh"](_t = core["ɵɵloadQuery"]()) && (ctx.descriptionComponent = _t.first);
                core["ɵɵqueryRefresh"](_t = core["ɵɵloadQuery"]()) && (ctx.titleComponent = _t.first);
            } }, inputs: { nzAvatar: "nzAvatar", nzTitle: "nzTitle", nzDescription: "nzDescription" }, exportAs: ["nzListItemMeta"], ngContentSelectors: _c1, decls: 4, vars: 3, consts: [[3, "nzSrc", 4, "ngIf"], [4, "ngIf"], ["class", "ant-list-item-meta-content", 4, "ngIf"], [3, "nzSrc"], [3, "ngTemplateOutlet"], [1, "ant-list-item-meta-content"], [4, "nzStringTemplateOutlet"]], template: function NzListItemMetaComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵprojectionDef"](_c0$1);
                core["ɵɵtemplate"](0, NzListItemMetaComponent_nz_list_item_meta_avatar_0_Template, 1, 1, "nz-list-item-meta-avatar", 0);
                core["ɵɵtemplate"](1, NzListItemMetaComponent_nz_list_item_meta_avatar_1_Template, 2, 1, "nz-list-item-meta-avatar", 1);
                core["ɵɵprojection"](2);
                core["ɵɵtemplate"](3, NzListItemMetaComponent_div_3_Template, 5, 2, "div", 2);
            } if (rf & 2) {
                core["ɵɵproperty"]("ngIf", ctx.avatarStr);
                core["ɵɵadvance"](1);
                core["ɵɵproperty"]("ngIf", ctx.avatarTpl);
                core["ɵɵadvance"](2);
                core["ɵɵproperty"]("ngIf", ctx.nzTitle || ctx.nzDescription || ctx.descriptionComponent || ctx.titleComponent);
            } }, directives: [common.NgIf, NzListItemMetaAvatarComponent, common.NgTemplateOutlet, NzListItemMetaTitleComponent, core$1.NzStringTemplateOutletDirective, NzListItemMetaDescriptionComponent], encapsulation: 2, changeDetection: 0 });
        return NzListItemMetaComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListItemMetaComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list-item-meta, [nz-list-item-meta]',
                    exportAs: 'nzListItemMeta',
                    template: "\n    <!--Old API Start-->\n    <nz-list-item-meta-avatar *ngIf=\"avatarStr\" [nzSrc]=\"avatarStr\"></nz-list-item-meta-avatar>\n    <nz-list-item-meta-avatar *ngIf=\"avatarTpl\">\n      <ng-container [ngTemplateOutlet]=\"avatarTpl\"></ng-container>\n    </nz-list-item-meta-avatar>\n    <!--Old API End-->\n\n    <ng-content select=\"nz-list-item-meta-avatar\"></ng-content>\n\n    <div *ngIf=\"nzTitle || nzDescription || descriptionComponent || titleComponent\" class=\"ant-list-item-meta-content\">\n      <!--Old API Start-->\n      <nz-list-item-meta-title *ngIf=\"nzTitle && !titleComponent\">\n        <ng-container *nzStringTemplateOutlet=\"nzTitle\">{{ nzTitle }}</ng-container>\n      </nz-list-item-meta-title>\n      <nz-list-item-meta-description *ngIf=\"nzDescription && !descriptionComponent\">\n        <ng-container *nzStringTemplateOutlet=\"nzDescription\">{{ nzDescription }}</ng-container>\n      </nz-list-item-meta-description>\n      <!--Old API End-->\n\n      <ng-content select=\"nz-list-item-meta-title\"></ng-content>\n      <ng-content select=\"nz-list-item-meta-description\"></ng-content>\n    </div>\n  ",
                    preserveWhitespaces: false,
                    changeDetection: core.ChangeDetectionStrategy.OnPush,
                    encapsulation: core.ViewEncapsulation.None
                }]
        }], function () { return [{ type: core.ElementRef }, { type: core.Renderer2 }]; }, { nzAvatar: [{
                type: core.Input
            }], nzTitle: [{
                type: core.Input
            }], nzDescription: [{
                type: core.Input
            }], descriptionComponent: [{
                type: core.ContentChild,
                args: [NzListItemMetaDescriptionComponent]
            }], titleComponent: [{
                type: core.ContentChild,
                args: [NzListItemMetaTitleComponent]
            }] }); })();

    /**
     * @license
     * Copyright Alibaba.com All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
     */
    var _c0$2 = ["*"];
    function NzListItemActionComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵprojection"](0);
    } }
    var _c1$1 = ["nz-list-item-actions", ""];
    function NzListItemActionsComponent_li_0_ng_template_1_Template(rf, ctx) { }
    function NzListItemActionsComponent_li_0_em_2_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelement"](0, "em", 3);
    } }
    function NzListItemActionsComponent_li_0_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "li");
        core["ɵɵtemplate"](1, NzListItemActionsComponent_li_0_ng_template_1_Template, 0, 0, "ng-template", 1);
        core["ɵɵtemplate"](2, NzListItemActionsComponent_li_0_em_2_Template, 1, 0, "em", 2);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var i_r2271 = ctx.$implicit;
        var last_r2272 = ctx.last;
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", i_r2271);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngIf", !last_r2272);
    } }
    var NzListItemExtraComponent = /** @class */ (function () {
        function NzListItemExtraComponent() {
        }
        /** @nocollapse */ NzListItemExtraComponent.ɵfac = function NzListItemExtraComponent_Factory(t) { return new (t || NzListItemExtraComponent)(); };
        /** @nocollapse */ NzListItemExtraComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListItemExtraComponent, selectors: [["nz-list-item-extra"], ["", "nz-list-item-extra", ""]], hostAttrs: [1, "ant-list-item-extra"], exportAs: ["nzListItemExtra"], ngContentSelectors: _c0$2, decls: 1, vars: 0, template: function NzListItemExtraComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵprojectionDef"]();
                core["ɵɵprojection"](0);
            } }, encapsulation: 2, changeDetection: 0 });
        return NzListItemExtraComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListItemExtraComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list-item-extra, [nz-list-item-extra]',
                    exportAs: 'nzListItemExtra',
                    changeDetection: core.ChangeDetectionStrategy.OnPush,
                    template: "\n    <ng-content></ng-content>\n  ",
                    host: {
                        class: 'ant-list-item-extra'
                    }
                }]
        }], function () { return []; }, null); })();
    var NzListItemActionComponent = /** @class */ (function () {
        function NzListItemActionComponent() {
        }
        /** @nocollapse */ NzListItemActionComponent.ɵfac = function NzListItemActionComponent_Factory(t) { return new (t || NzListItemActionComponent)(); };
        /** @nocollapse */ NzListItemActionComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListItemActionComponent, selectors: [["nz-list-item-action"]], viewQuery: function NzListItemActionComponent_Query(rf, ctx) { if (rf & 1) {
                core["ɵɵviewQuery"](core.TemplateRef, true);
            } if (rf & 2) {
                var _t;
                core["ɵɵqueryRefresh"](_t = core["ɵɵloadQuery"]()) && (ctx.templateRef = _t.first);
            } }, exportAs: ["nzListItemAction"], ngContentSelectors: _c0$2, decls: 1, vars: 0, template: function NzListItemActionComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵprojectionDef"]();
                core["ɵɵtemplate"](0, NzListItemActionComponent_ng_template_0_Template, 1, 0, "ng-template");
            } }, encapsulation: 2, changeDetection: 0 });
        return NzListItemActionComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListItemActionComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list-item-action',
                    exportAs: 'nzListItemAction',
                    changeDetection: core.ChangeDetectionStrategy.OnPush,
                    template: "\n    <ng-template><ng-content></ng-content></ng-template>\n  "
                }]
        }], function () { return []; }, { templateRef: [{
                type: core.ViewChild,
                args: [core.TemplateRef]
            }] }); })();
    var NzListItemActionsComponent = /** @class */ (function () {
        function NzListItemActionsComponent(ngZone, cdr) {
            var _this = this;
            this.ngZone = ngZone;
            this.cdr = cdr;
            this.nzActions = [];
            this.actions = [];
            this.destroy$ = new rxjs.Subject();
            this.inputActionChanges$ = new rxjs.Subject();
            this.contentChildrenChanges$ = rxjs.defer(function () {
                if (_this.nzListItemActions) {
                    return rxjs.of(null);
                }
                return _this.ngZone.onStable.asObservable().pipe(operators.take(1), operators.switchMap(function () { return _this.contentChildrenChanges$; }));
            });
            rxjs.merge(this.contentChildrenChanges$, this.inputActionChanges$)
                .pipe(operators.takeUntil(this.destroy$))
                .subscribe(function () {
                if (_this.nzActions.length) {
                    _this.actions = _this.nzActions;
                }
                else {
                    _this.actions = _this.nzListItemActions.map(function (action) { return action.templateRef; });
                }
                _this.cdr.markForCheck();
            });
        }
        NzListItemActionsComponent.prototype.ngOnChanges = function () {
            this.inputActionChanges$.next(null);
        };
        NzListItemActionsComponent.prototype.ngOnDestroy = function () {
            this.destroy$.next();
            this.destroy$.complete();
        };
        /** @nocollapse */ NzListItemActionsComponent.ɵfac = function NzListItemActionsComponent_Factory(t) { return new (t || NzListItemActionsComponent)(core["ɵɵdirectiveInject"](core.NgZone), core["ɵɵdirectiveInject"](core.ChangeDetectorRef)); };
        /** @nocollapse */ NzListItemActionsComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListItemActionsComponent, selectors: [["ul", "nz-list-item-actions", ""]], contentQueries: function NzListItemActionsComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
                core["ɵɵcontentQuery"](dirIndex, NzListItemActionComponent, false);
            } if (rf & 2) {
                var _t;
                core["ɵɵqueryRefresh"](_t = core["ɵɵloadQuery"]()) && (ctx.nzListItemActions = _t);
            } }, hostAttrs: [1, "ant-list-item-action"], inputs: { nzActions: "nzActions" }, exportAs: ["nzListItemActions"], features: [core["ɵɵNgOnChangesFeature"]], attrs: _c1$1, decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"], [3, "ngTemplateOutlet"], ["class", "ant-list-item-action-split", 4, "ngIf"], [1, "ant-list-item-action-split"]], template: function NzListItemActionsComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵtemplate"](0, NzListItemActionsComponent_li_0_Template, 3, 2, "li", 0);
            } if (rf & 2) {
                core["ɵɵproperty"]("ngForOf", ctx.actions);
            } }, directives: [common.NgForOf, common.NgTemplateOutlet, common.NgIf], encapsulation: 2, changeDetection: 0 });
        return NzListItemActionsComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListItemActionsComponent, [{
            type: core.Component,
            args: [{
                    selector: 'ul[nz-list-item-actions]',
                    exportAs: 'nzListItemActions',
                    changeDetection: core.ChangeDetectionStrategy.OnPush,
                    template: "\n    <li *ngFor=\"let i of actions; let last = last\">\n      <ng-template [ngTemplateOutlet]=\"i\"></ng-template>\n      <em *ngIf=\"!last\" class=\"ant-list-item-action-split\"></em>\n    </li>\n  ",
                    host: {
                        class: 'ant-list-item-action'
                    }
                }]
        }], function () { return [{ type: core.NgZone }, { type: core.ChangeDetectorRef }]; }, { nzActions: [{
                type: core.Input
            }], nzListItemActions: [{
                type: core.ContentChildren,
                args: [NzListItemActionComponent]
            }] }); })();

    /**
     * @license
     * Copyright Alibaba.com All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
     */
    var _c0$3 = ["*"];
    var NzListEmptyComponent = /** @class */ (function () {
        function NzListEmptyComponent() {
        }
        /** @nocollapse */ NzListEmptyComponent.ɵfac = function NzListEmptyComponent_Factory(t) { return new (t || NzListEmptyComponent)(); };
        /** @nocollapse */ NzListEmptyComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListEmptyComponent, selectors: [["nz-list-empty"]], hostAttrs: [1, "ant-list-empty-text"], inputs: { nzNoResult: "nzNoResult" }, exportAs: ["nzListHeader"], decls: 1, vars: 2, consts: [[3, "nzComponentName", "specificContent"]], template: function NzListEmptyComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵelement"](0, "nz-embed-empty", 0);
            } if (rf & 2) {
                core["ɵɵproperty"]("nzComponentName", "list")("specificContent", ctx.nzNoResult);
            } }, directives: [empty.NzEmbedEmptyComponent], encapsulation: 2, changeDetection: 0 });
        return NzListEmptyComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListEmptyComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list-empty',
                    exportAs: 'nzListHeader',
                    changeDetection: core.ChangeDetectionStrategy.OnPush,
                    template: "\n    <nz-embed-empty [nzComponentName]=\"'list'\" [specificContent]=\"nzNoResult\"></nz-embed-empty>\n  ",
                    host: {
                        class: 'ant-list-empty-text'
                    }
                }]
        }], null, { nzNoResult: [{
                type: core.Input
            }] }); })();
    var NzListHeaderComponent = /** @class */ (function () {
        function NzListHeaderComponent() {
        }
        /** @nocollapse */ NzListHeaderComponent.ɵfac = function NzListHeaderComponent_Factory(t) { return new (t || NzListHeaderComponent)(); };
        /** @nocollapse */ NzListHeaderComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListHeaderComponent, selectors: [["nz-list-header"]], hostAttrs: [1, "ant-list-header"], exportAs: ["nzListHeader"], ngContentSelectors: _c0$3, decls: 1, vars: 0, template: function NzListHeaderComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵprojectionDef"]();
                core["ɵɵprojection"](0);
            } }, encapsulation: 2, changeDetection: 0 });
        return NzListHeaderComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListHeaderComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list-header',
                    exportAs: 'nzListHeader',
                    changeDetection: core.ChangeDetectionStrategy.OnPush,
                    template: "\n    <ng-content></ng-content>\n  ",
                    host: {
                        class: 'ant-list-header'
                    }
                }]
        }], null, null); })();
    var NzListFooterComponent = /** @class */ (function () {
        function NzListFooterComponent() {
        }
        /** @nocollapse */ NzListFooterComponent.ɵfac = function NzListFooterComponent_Factory(t) { return new (t || NzListFooterComponent)(); };
        /** @nocollapse */ NzListFooterComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListFooterComponent, selectors: [["nz-list-footer"]], hostAttrs: [1, "ant-list-footer"], exportAs: ["nzListFooter"], ngContentSelectors: _c0$3, decls: 1, vars: 0, template: function NzListFooterComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵprojectionDef"]();
                core["ɵɵprojection"](0);
            } }, encapsulation: 2, changeDetection: 0 });
        return NzListFooterComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListFooterComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list-footer',
                    exportAs: 'nzListFooter',
                    changeDetection: core.ChangeDetectionStrategy.OnPush,
                    template: "\n    <ng-content></ng-content>\n  ",
                    host: {
                        class: 'ant-list-footer'
                    }
                }]
        }], null, null); })();
    var NzListPaginationComponent = /** @class */ (function () {
        function NzListPaginationComponent() {
        }
        /** @nocollapse */ NzListPaginationComponent.ɵfac = function NzListPaginationComponent_Factory(t) { return new (t || NzListPaginationComponent)(); };
        /** @nocollapse */ NzListPaginationComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListPaginationComponent, selectors: [["nz-list-pagination"]], hostAttrs: [1, "ant-list-pagination"], exportAs: ["nzListPagination"], ngContentSelectors: _c0$3, decls: 1, vars: 0, template: function NzListPaginationComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵprojectionDef"]();
                core["ɵɵprojection"](0);
            } }, encapsulation: 2, changeDetection: 0 });
        return NzListPaginationComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListPaginationComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list-pagination',
                    exportAs: 'nzListPagination',
                    changeDetection: core.ChangeDetectionStrategy.OnPush,
                    template: "\n    <ng-content></ng-content>\n  ",
                    host: {
                        class: 'ant-list-pagination'
                    }
                }]
        }], null, null); })();
    var NzListLoadMoreDirective = /** @class */ (function () {
        function NzListLoadMoreDirective() {
        }
        /** @nocollapse */ NzListLoadMoreDirective.ɵfac = function NzListLoadMoreDirective_Factory(t) { return new (t || NzListLoadMoreDirective)(); };
        /** @nocollapse */ NzListLoadMoreDirective.ɵdir = core["ɵɵdefineDirective"]({ type: NzListLoadMoreDirective, selectors: [["nz-list-load-more"]], exportAs: ["nzListLoadMoreDirective"] });
        return NzListLoadMoreDirective;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListLoadMoreDirective, [{
            type: core.Directive,
            args: [{
                    selector: 'nz-list-load-more',
                    exportAs: 'nzListLoadMoreDirective'
                }]
        }], null, null); })();
    var NzListGridDirective = /** @class */ (function () {
        function NzListGridDirective() {
        }
        /** @nocollapse */ NzListGridDirective.ɵfac = function NzListGridDirective_Factory(t) { return new (t || NzListGridDirective)(); };
        /** @nocollapse */ NzListGridDirective.ɵdir = core["ɵɵdefineDirective"]({ type: NzListGridDirective, selectors: [["nz-list", "nzGrid", ""]], hostAttrs: [1, "ant-list-grid"] });
        return NzListGridDirective;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListGridDirective, [{
            type: core.Directive,
            args: [{
                    selector: 'nz-list[nzGrid]',
                    host: {
                        class: 'ant-list-grid'
                    }
                }]
        }], null, null); })();

    function NzListComponent_ng_template_0_ng_container_1_ng_template_1_Template(rf, ctx) { }
    var _c0$4 = function (a0, a1) { return { $implicit: a0, index: a1 }; };
    function NzListComponent_ng_template_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementContainerStart"](0);
        core["ɵɵtemplate"](1, NzListComponent_ng_template_0_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 9);
        core["ɵɵelementContainerEnd"]();
    } if (rf & 2) {
        var item_r2285 = ctx.$implicit;
        var index_r2286 = ctx.index;
        var ctx_r2284 = core["ɵɵnextContext"](2);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", ctx_r2284.nzRenderItem)("ngTemplateOutletContext", core["ɵɵpureFunction2"](2, _c0$4, item_r2285, index_r2286));
    } }
    function NzListComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "div", 7);
        core["ɵɵtemplate"](1, NzListComponent_ng_template_0_ng_container_1_Template, 2, 5, "ng-container", 8);
        core["ɵɵprojection"](2, 5);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var ctx_r2276 = core["ɵɵnextContext"]();
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngForOf", ctx_r2276.nzDataSource);
    } }
    function NzListComponent_nz_list_header_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementContainerStart"](0);
        core["ɵɵtext"](1);
        core["ɵɵelementContainerEnd"]();
    } if (rf & 2) {
        var ctx_r2288 = core["ɵɵnextContext"](2);
        core["ɵɵadvance"](1);
        core["ɵɵtextInterpolate"](ctx_r2288.nzHeader);
    } }
    function NzListComponent_nz_list_header_2_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "nz-list-header");
        core["ɵɵtemplate"](1, NzListComponent_nz_list_header_2_ng_container_1_Template, 2, 1, "ng-container", 10);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var ctx_r2277 = core["ɵɵnextContext"]();
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("nzStringTemplateOutlet", ctx_r2277.nzHeader);
    } }
    function NzListComponent_div_6_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelement"](0, "div");
    } if (rf & 2) {
        core["ɵɵstyleProp"]("min-height", 53, "px");
    } }
    function NzListComponent_div_7_div_1_ng_template_1_Template(rf, ctx) { }
    function NzListComponent_div_7_div_1_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "div", 13);
        core["ɵɵtemplate"](1, NzListComponent_div_7_div_1_ng_template_1_Template, 0, 0, "ng-template", 9);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var item_r2290 = ctx.$implicit;
        var index_r2291 = ctx.index;
        var ctx_r2289 = core["ɵɵnextContext"](2);
        core["ɵɵproperty"]("nzSpan", ctx_r2289.nzGrid.span)("nzXs", ctx_r2289.nzGrid.xs)("nzSm", ctx_r2289.nzGrid.sm)("nzMd", ctx_r2289.nzGrid.md)("nzLg", ctx_r2289.nzGrid.lg)("nzXl", ctx_r2289.nzGrid.xl)("nzXXl", ctx_r2289.nzGrid.xxl);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", ctx_r2289.nzRenderItem)("ngTemplateOutletContext", core["ɵɵpureFunction2"](9, _c0$4, item_r2290, index_r2291));
    } }
    function NzListComponent_div_7_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "div", 11);
        core["ɵɵtemplate"](1, NzListComponent_div_7_div_1_Template, 2, 12, "div", 12);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var ctx_r2279 = core["ɵɵnextContext"]();
        core["ɵɵproperty"]("nzGutter", ctx_r2279.nzGrid.gutter);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngForOf", ctx_r2279.nzDataSource);
    } }
    function NzListComponent_nz_list_empty_8_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelement"](0, "nz-list-empty", 14);
    } if (rf & 2) {
        var ctx_r2280 = core["ɵɵnextContext"]();
        core["ɵɵproperty"]("nzNoResult", ctx_r2280.nzNoResult);
    } }
    function NzListComponent_nz_list_footer_10_ng_container_1_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementContainerStart"](0);
        core["ɵɵtext"](1);
        core["ɵɵelementContainerEnd"]();
    } if (rf & 2) {
        var ctx_r2293 = core["ɵɵnextContext"](2);
        core["ɵɵadvance"](1);
        core["ɵɵtextInterpolate"](ctx_r2293.nzFooter);
    } }
    function NzListComponent_nz_list_footer_10_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "nz-list-footer");
        core["ɵɵtemplate"](1, NzListComponent_nz_list_footer_10_ng_container_1_Template, 2, 1, "ng-container", 10);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var ctx_r2281 = core["ɵɵnextContext"]();
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("nzStringTemplateOutlet", ctx_r2281.nzFooter);
    } }
    function NzListComponent_ng_template_12_Template(rf, ctx) { }
    function NzListComponent_nz_list_pagination_14_ng_template_1_Template(rf, ctx) { }
    function NzListComponent_nz_list_pagination_14_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "nz-list-pagination");
        core["ɵɵtemplate"](1, NzListComponent_nz_list_pagination_14_ng_template_1_Template, 0, 0, "ng-template", 6);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var ctx_r2283 = core["ɵɵnextContext"]();
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", ctx_r2283.nzPagination);
    } }
    var _c1$2 = [[["nz-list-header"]], "*", [["nz-list-footer"], ["", "nz-list-footer", ""]], [["nz-list-load-more"], ["", "nz-list-load-more", ""]], [["nz-list-pagination"], ["", "nz-list-pagination", ""]], [["nz-list-item"], ["", "nz-list-item", ""]]];
    var _c2 = ["nz-list-header", "*", "nz-list-footer, [nz-list-footer]", "nz-list-load-more, [nz-list-load-more]", "nz-list-pagination, [nz-list-pagination]", "nz-list-item, [nz-list-item]"];
    var NzListComponent = /** @class */ (function () {
        function NzListComponent(el, updateHostClassService) {
            this.el = el;
            this.updateHostClassService = updateHostClassService;
            this.nzBordered = false;
            this.nzItemLayout = 'horizontal';
            this.nzLoading = false;
            this.nzSize = 'default';
            this.nzSplit = true;
            this.hasSomethingAfterLastItem = false;
            this.prefixCls = 'ant-list';
            // #endregion
            this.itemLayoutNotifySource = new rxjs.BehaviorSubject(this.nzItemLayout);
        }
        NzListComponent.prototype._setClassMap = function () {
            var _a;
            var classMap = (_a = {},
                _a[this.prefixCls] = true,
                _a);
            this.updateHostClassService.updateHostClass(this.el.nativeElement, classMap);
        };
        Object.defineProperty(NzListComponent.prototype, "itemLayoutNotify$", {
            get: function () {
                return this.itemLayoutNotifySource.asObservable();
            },
            enumerable: true,
            configurable: true
        });
        NzListComponent.prototype.getSomethingAfterLastItem = function () {
            return !!(this.nzLoadMore ||
                this.nzPagination ||
                this.nzFooter ||
                this.nzListFooterComponent ||
                this.nzListPaginationComponent ||
                this.nzListLoadMoreDirective);
        };
        NzListComponent.prototype.ngOnInit = function () {
            this._setClassMap();
        };
        NzListComponent.prototype.ngOnChanges = function (changes) {
            this._setClassMap();
            if (changes.nzItemLayout) {
                this.itemLayoutNotifySource.next(this.nzItemLayout);
            }
        };
        NzListComponent.prototype.ngOnDestroy = function () {
            this.itemLayoutNotifySource.unsubscribe();
        };
        NzListComponent.prototype.ngAfterContentInit = function () {
            this.hasSomethingAfterLastItem = this.getSomethingAfterLastItem();
        };
        /** @nocollapse */ NzListComponent.ɵfac = function NzListComponent_Factory(t) { return new (t || NzListComponent)(core["ɵɵdirectiveInject"](core.ElementRef), core["ɵɵdirectiveInject"](core$1.NzUpdateHostClassService)); };
        /** @nocollapse */ NzListComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListComponent, selectors: [["nz-list"], ["", "nz-list", ""]], contentQueries: function NzListComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
                core["ɵɵcontentQuery"](dirIndex, NzListFooterComponent, true);
                core["ɵɵcontentQuery"](dirIndex, NzListPaginationComponent, true);
                core["ɵɵcontentQuery"](dirIndex, NzListLoadMoreDirective, true);
            } if (rf & 2) {
                var _t;
                core["ɵɵqueryRefresh"](_t = core["ɵɵloadQuery"]()) && (ctx.nzListFooterComponent = _t.first);
                core["ɵɵqueryRefresh"](_t = core["ɵɵloadQuery"]()) && (ctx.nzListPaginationComponent = _t.first);
                core["ɵɵqueryRefresh"](_t = core["ɵɵloadQuery"]()) && (ctx.nzListLoadMoreDirective = _t.first);
            } }, hostVars: 14, hostBindings: function NzListComponent_HostBindings(rf, ctx) { if (rf & 2) {
                core["ɵɵclassProp"]("ant-list-vertical", ctx.nzItemLayout === "vertical")("ant-list-lg", ctx.nzSize === "large")("ant-list-sm", ctx.nzSize === "small")("ant-list-split", ctx.nzSplit)("ant-list-bordered", ctx.nzBordered)("ant-list-loading", ctx.nzLoading)("ant-list-something-after-last-item", ctx.hasSomethingAfterLastItem);
            } }, inputs: { nzDataSource: "nzDataSource", nzBordered: "nzBordered", nzGrid: "nzGrid", nzHeader: "nzHeader", nzFooter: "nzFooter", nzItemLayout: "nzItemLayout", nzRenderItem: "nzRenderItem", nzLoading: "nzLoading", nzLoadMore: "nzLoadMore", nzPagination: "nzPagination", nzSize: "nzSize", nzSplit: "nzSplit", nzNoResult: "nzNoResult" }, exportAs: ["nzList"], features: [core["ɵɵProvidersFeature"]([core$1.NzUpdateHostClassService]), core["ɵɵNgOnChangesFeature"]], ngContentSelectors: _c2, decls: 16, vars: 9, consts: [["itemsTpl", ""], [4, "ngIf"], [3, "nzSpinning"], [3, "min-height", 4, "ngIf"], ["nz-row", "", 3, "nzGutter", 4, "ngIf", "ngIfElse"], [3, "nzNoResult", 4, "ngIf"], [3, "ngTemplateOutlet"], [1, "ant-list-items"], [4, "ngFor", "ngForOf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [4, "nzStringTemplateOutlet"], ["nz-row", "", 3, "nzGutter"], ["nz-col", "", 3, "nzSpan", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl", 4, "ngFor", "ngForOf"], ["nz-col", "", 3, "nzSpan", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], [3, "nzNoResult"]], template: function NzListComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵprojectionDef"](_c1$2);
                core["ɵɵtemplate"](0, NzListComponent_ng_template_0_Template, 3, 1, "ng-template", null, 0, core["ɵɵtemplateRefExtractor"]);
                core["ɵɵtemplate"](2, NzListComponent_nz_list_header_2_Template, 2, 1, "nz-list-header", 1);
                core["ɵɵprojection"](3);
                core["ɵɵelementStart"](4, "nz-spin", 2);
                core["ɵɵelementContainerStart"](5);
                core["ɵɵtemplate"](6, NzListComponent_div_6_Template, 1, 2, "div", 3);
                core["ɵɵtemplate"](7, NzListComponent_div_7_Template, 2, 2, "div", 4);
                core["ɵɵtemplate"](8, NzListComponent_nz_list_empty_8_Template, 1, 1, "nz-list-empty", 5);
                core["ɵɵelementContainerEnd"]();
                core["ɵɵprojection"](9, 1);
                core["ɵɵelementEnd"]();
                core["ɵɵtemplate"](10, NzListComponent_nz_list_footer_10_Template, 2, 1, "nz-list-footer", 1);
                core["ɵɵprojection"](11, 2);
                core["ɵɵtemplate"](12, NzListComponent_ng_template_12_Template, 0, 0, "ng-template", 6);
                core["ɵɵprojection"](13, 3);
                core["ɵɵtemplate"](14, NzListComponent_nz_list_pagination_14_Template, 2, 1, "nz-list-pagination", 1);
                core["ɵɵprojection"](15, 4);
            } if (rf & 2) {
                var _r2275 = core["ɵɵreference"](1);
                core["ɵɵadvance"](2);
                core["ɵɵproperty"]("ngIf", ctx.nzHeader);
                core["ɵɵadvance"](2);
                core["ɵɵproperty"]("nzSpinning", ctx.nzLoading);
                core["ɵɵadvance"](2);
                core["ɵɵproperty"]("ngIf", ctx.nzLoading && ctx.nzDataSource && ctx.nzDataSource.length === 0);
                core["ɵɵadvance"](1);
                core["ɵɵproperty"]("ngIf", ctx.nzGrid && ctx.nzDataSource)("ngIfElse", _r2275);
                core["ɵɵadvance"](1);
                core["ɵɵproperty"]("ngIf", !ctx.nzLoading && ctx.nzDataSource && ctx.nzDataSource.length === 0);
                core["ɵɵadvance"](2);
                core["ɵɵproperty"]("ngIf", ctx.nzFooter);
                core["ɵɵadvance"](2);
                core["ɵɵproperty"]("ngTemplateOutlet", ctx.nzLoadMore);
                core["ɵɵadvance"](2);
                core["ɵɵproperty"]("ngIf", ctx.nzPagination);
            } }, directives: [common.NgIf, spin.NzSpinComponent, common.NgTemplateOutlet, common.NgForOf, NzListHeaderComponent, core$1.NzStringTemplateOutletDirective, grid.NzRowDirective, grid.NzColDirective, NzListEmptyComponent, NzListFooterComponent, NzListPaginationComponent], encapsulation: 2, changeDetection: 0 });
        __decorate([
            core$1.InputBoolean(),
            __metadata("design:type", Object)
        ], NzListComponent.prototype, "nzBordered", void 0);
        __decorate([
            core$1.InputBoolean(),
            __metadata("design:type", Object)
        ], NzListComponent.prototype, "nzLoading", void 0);
        __decorate([
            core$1.InputBoolean(),
            __metadata("design:type", Object)
        ], NzListComponent.prototype, "nzSplit", void 0);
        return NzListComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list, [nz-list]',
                    exportAs: 'nzList',
                    template: "\n    <ng-template #itemsTpl>\n      <div class=\"ant-list-items\">\n        <ng-container *ngFor=\"let item of nzDataSource; let index = index\">\n          <ng-template [ngTemplateOutlet]=\"nzRenderItem\" [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"></ng-template>\n        </ng-container>\n        <ng-content select=\"nz-list-item, [nz-list-item]\"></ng-content>\n      </div>\n    </ng-template>\n\n    <nz-list-header *ngIf=\"nzHeader\">\n      <ng-container *nzStringTemplateOutlet=\"nzHeader\">{{ nzHeader }}</ng-container>\n    </nz-list-header>\n    <ng-content select=\"nz-list-header\"></ng-content>\n\n    <nz-spin [nzSpinning]=\"nzLoading\">\n      <ng-container>\n        <div *ngIf=\"nzLoading && nzDataSource && nzDataSource.length === 0\" [style.min-height.px]=\"53\"></div>\n        <div *ngIf=\"nzGrid && nzDataSource; else itemsTpl\" nz-row [nzGutter]=\"nzGrid.gutter\">\n          <div\n            nz-col\n            [nzSpan]=\"nzGrid.span\"\n            [nzXs]=\"nzGrid.xs\"\n            [nzSm]=\"nzGrid.sm\"\n            [nzMd]=\"nzGrid.md\"\n            [nzLg]=\"nzGrid.lg\"\n            [nzXl]=\"nzGrid.xl\"\n            [nzXXl]=\"nzGrid.xxl\"\n            *ngFor=\"let item of nzDataSource; let index = index\"\n          >\n            <ng-template [ngTemplateOutlet]=\"nzRenderItem\" [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"></ng-template>\n          </div>\n        </div>\n        <nz-list-empty *ngIf=\"!nzLoading && nzDataSource && nzDataSource.length === 0\" [nzNoResult]=\"nzNoResult\"></nz-list-empty>\n      </ng-container>\n      <ng-content></ng-content>\n    </nz-spin>\n\n    <nz-list-footer *ngIf=\"nzFooter\">\n      <ng-container *nzStringTemplateOutlet=\"nzFooter\">{{ nzFooter }}</ng-container>\n    </nz-list-footer>\n    <ng-content select=\"nz-list-footer, [nz-list-footer]\"></ng-content>\n\n    <ng-template [ngTemplateOutlet]=\"nzLoadMore\"></ng-template>\n    <ng-content select=\"nz-list-load-more, [nz-list-load-more]\"></ng-content>\n\n    <nz-list-pagination *ngIf=\"nzPagination\">\n      <ng-template [ngTemplateOutlet]=\"nzPagination\"></ng-template>\n    </nz-list-pagination>\n    <ng-content select=\"nz-list-pagination, [nz-list-pagination]\"></ng-content>\n  ",
                    providers: [core$1.NzUpdateHostClassService],
                    preserveWhitespaces: false,
                    encapsulation: core.ViewEncapsulation.None,
                    changeDetection: core.ChangeDetectionStrategy.OnPush,
                    host: {
                        '[class.ant-list-vertical]': 'nzItemLayout === "vertical"',
                        '[class.ant-list-lg]': 'nzSize === "large"',
                        '[class.ant-list-sm]': 'nzSize === "small"',
                        '[class.ant-list-split]': 'nzSplit',
                        '[class.ant-list-bordered]': 'nzBordered',
                        '[class.ant-list-loading]': 'nzLoading',
                        '[class.ant-list-something-after-last-item]': 'hasSomethingAfterLastItem'
                    }
                }]
        }], function () { return [{ type: core.ElementRef }, { type: core$1.NzUpdateHostClassService }]; }, { nzDataSource: [{
                type: core.Input
            }], nzBordered: [{
                type: core.Input
            }], nzGrid: [{
                type: core.Input
            }], nzHeader: [{
                type: core.Input
            }], nzFooter: [{
                type: core.Input
            }], nzItemLayout: [{
                type: core.Input
            }], nzRenderItem: [{
                type: core.Input
            }], nzLoading: [{
                type: core.Input
            }], nzLoadMore: [{
                type: core.Input
            }], nzPagination: [{
                type: core.Input
            }], nzSize: [{
                type: core.Input
            }], nzSplit: [{
                type: core.Input
            }], nzNoResult: [{
                type: core.Input
            }], nzListFooterComponent: [{
                type: core.ContentChild,
                args: [NzListFooterComponent]
            }], nzListPaginationComponent: [{
                type: core.ContentChild,
                args: [NzListPaginationComponent]
            }], nzListLoadMoreDirective: [{
                type: core.ContentChild,
                args: [NzListLoadMoreDirective]
            }] }); })();

    function NzListItemComponent_ng_template_0_ul_0_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelement"](0, "ul", 6);
    } if (rf & 2) {
        var ctx_r2304 = core["ɵɵnextContext"](2);
        core["ɵɵproperty"]("nzActions", ctx_r2304.nzActions);
    } }
    function NzListItemComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵtemplate"](0, NzListItemComponent_ng_template_0_ul_0_Template, 1, 1, "ul", 5);
        core["ɵɵprojection"](1);
    } if (rf & 2) {
        var ctx_r2296 = core["ɵɵnextContext"]();
        core["ɵɵproperty"]("ngIf", (ctx_r2296.nzActions == null ? null : ctx_r2296.nzActions.length) > 0);
    } }
    function NzListItemComponent_ng_template_2_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementContainerStart"](0);
        core["ɵɵtext"](1);
        core["ɵɵelementContainerEnd"]();
    } if (rf & 2) {
        var ctx_r2306 = core["ɵɵnextContext"](3);
        core["ɵɵadvance"](1);
        core["ɵɵtextInterpolate"](ctx_r2306.nzContent);
    } }
    function NzListItemComponent_ng_template_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementContainerStart"](0);
        core["ɵɵtemplate"](1, NzListItemComponent_ng_template_2_ng_container_2_ng_container_1_Template, 2, 1, "ng-container", 8);
        core["ɵɵelementContainerEnd"]();
    } if (rf & 2) {
        var ctx_r2305 = core["ɵɵnextContext"](2);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("nzStringTemplateOutlet", ctx_r2305.nzContent);
    } }
    function NzListItemComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵprojection"](0, 1);
        core["ɵɵprojection"](1, 2);
        core["ɵɵtemplate"](2, NzListItemComponent_ng_template_2_ng_container_2_Template, 2, 1, "ng-container", 7);
    } if (rf & 2) {
        var ctx_r2298 = core["ɵɵnextContext"]();
        core["ɵɵadvance"](2);
        core["ɵɵproperty"]("ngIf", ctx_r2298.nzContent);
    } }
    function NzListItemComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵprojection"](0, 3);
    } }
    function NzListItemComponent_ng_template_6_ng_template_0_Template(rf, ctx) { }
    function NzListItemComponent_ng_template_6_ng_template_1_Template(rf, ctx) { }
    function NzListItemComponent_ng_template_6_ng_template_2_Template(rf, ctx) { }
    function NzListItemComponent_ng_template_6_ng_template_3_Template(rf, ctx) { }
    function NzListItemComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵtemplate"](0, NzListItemComponent_ng_template_6_ng_template_0_Template, 0, 0, "ng-template", 9);
        core["ɵɵtemplate"](1, NzListItemComponent_ng_template_6_ng_template_1_Template, 0, 0, "ng-template", 9);
        core["ɵɵtemplate"](2, NzListItemComponent_ng_template_6_ng_template_2_Template, 0, 0, "ng-template", 9);
        core["ɵɵtemplate"](3, NzListItemComponent_ng_template_6_ng_template_3_Template, 0, 0, "ng-template", 9);
    } if (rf & 2) {
        var ctx_r2302 = core["ɵɵnextContext"]();
        var _r2297 = core["ɵɵreference"](3);
        var _r2299 = core["ɵɵreference"](5);
        var _r2295 = core["ɵɵreference"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", _r2297);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", ctx_r2302.nzExtra);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", _r2299);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", _r2295);
    } }
    function NzListItemComponent_ng_container_8_ng_template_2_Template(rf, ctx) { }
    function NzListItemComponent_ng_container_8_ng_template_3_Template(rf, ctx) { }
    function NzListItemComponent_ng_container_8_nz_list_item_extra_4_ng_template_1_Template(rf, ctx) { }
    function NzListItemComponent_ng_container_8_nz_list_item_extra_4_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementStart"](0, "nz-list-item-extra");
        core["ɵɵtemplate"](1, NzListItemComponent_ng_container_8_nz_list_item_extra_4_ng_template_1_Template, 0, 0, "ng-template", 9);
        core["ɵɵelementEnd"]();
    } if (rf & 2) {
        var ctx_r2313 = core["ɵɵnextContext"](2);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", ctx_r2313.nzExtra);
    } }
    function NzListItemComponent_ng_container_8_ng_template_5_Template(rf, ctx) { }
    function NzListItemComponent_ng_container_8_Template(rf, ctx) { if (rf & 1) {
        core["ɵɵelementContainerStart"](0);
        core["ɵɵelementStart"](1, "div", 10);
        core["ɵɵtemplate"](2, NzListItemComponent_ng_container_8_ng_template_2_Template, 0, 0, "ng-template", 9);
        core["ɵɵtemplate"](3, NzListItemComponent_ng_container_8_ng_template_3_Template, 0, 0, "ng-template", 9);
        core["ɵɵelementEnd"]();
        core["ɵɵtemplate"](4, NzListItemComponent_ng_container_8_nz_list_item_extra_4_Template, 2, 1, "nz-list-item-extra", 7);
        core["ɵɵtemplate"](5, NzListItemComponent_ng_container_8_ng_template_5_Template, 0, 0, "ng-template", 9);
        core["ɵɵelementContainerEnd"]();
    } if (rf & 2) {
        var ctx_r2303 = core["ɵɵnextContext"]();
        var _r2297 = core["ɵɵreference"](3);
        var _r2295 = core["ɵɵreference"](1);
        var _r2299 = core["ɵɵreference"](5);
        core["ɵɵadvance"](2);
        core["ɵɵproperty"]("ngTemplateOutlet", _r2297);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", _r2295);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngIf", ctx_r2303.nzExtra);
        core["ɵɵadvance"](1);
        core["ɵɵproperty"]("ngTemplateOutlet", _r2299);
    } }
    var _c0$5 = [[["nz-list-item-actions"], ["", "nz-list-item-actions", ""]], [["nz-list-item-meta"], ["", "nz-list-item-meta", ""]], "*", [["nz-list-item-extra"], ["", "nz-list-item-extra", ""]]];
    var _c1$3 = ["nz-list-item-actions, [nz-list-item-actions]", "nz-list-item-meta, [nz-list-item-meta]", "*", "nz-list-item-extra, [nz-list-item-extra]"];
    var NzListItemComponent = /** @class */ (function () {
        function NzListItemComponent(elementRef, renderer, parentComp, cdr) {
            this.parentComp = parentComp;
            this.cdr = cdr;
            this.nzActions = [];
            this.nzNoFlex = false;
            renderer.addClass(elementRef.nativeElement, 'ant-list-item');
        }
        Object.defineProperty(NzListItemComponent.prototype, "isVerticalAndExtra", {
            get: function () {
                return this.itemLayout === 'vertical' && (!!this.listItemExtraDirective || !!this.nzExtra);
            },
            enumerable: true,
            configurable: true
        });
        NzListItemComponent.prototype.ngAfterViewInit = function () {
            var _this = this;
            this.itemLayout$ = this.parentComp.itemLayoutNotify$.subscribe(function (val) {
                _this.itemLayout = val;
                _this.cdr.detectChanges();
            });
        };
        NzListItemComponent.prototype.ngOnDestroy = function () {
            if (this.itemLayout$) {
                this.itemLayout$.unsubscribe();
            }
        };
        /** @nocollapse */ NzListItemComponent.ɵfac = function NzListItemComponent_Factory(t) { return new (t || NzListItemComponent)(core["ɵɵdirectiveInject"](core.ElementRef), core["ɵɵdirectiveInject"](core.Renderer2), core["ɵɵdirectiveInject"](NzListComponent), core["ɵɵdirectiveInject"](core.ChangeDetectorRef)); };
        /** @nocollapse */ NzListItemComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: NzListItemComponent, selectors: [["nz-list-item"], ["", "nz-list-item", ""]], contentQueries: function NzListItemComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
                core["ɵɵcontentQuery"](dirIndex, NzListItemExtraComponent, true);
            } if (rf & 2) {
                var _t;
                core["ɵɵqueryRefresh"](_t = core["ɵɵloadQuery"]()) && (ctx.listItemExtraDirective = _t.first);
            } }, hostVars: 2, hostBindings: function NzListItemComponent_HostBindings(rf, ctx) { if (rf & 2) {
                core["ɵɵclassProp"]("ant-list-item-no-flex", ctx.nzNoFlex);
            } }, inputs: { nzActions: "nzActions", nzContent: "nzContent", nzExtra: "nzExtra", nzNoFlex: "nzNoFlex" }, exportAs: ["nzListItem"], ngContentSelectors: _c1$3, decls: 9, vars: 2, consts: [["actionsTpl", ""], ["contentTpl", ""], ["extraTpl", ""], ["simpleTpl", ""], [4, "ngIf", "ngIfElse"], ["nz-list-item-actions", "", 3, "nzActions", 4, "ngIf"], ["nz-list-item-actions", "", 3, "nzActions"], [4, "ngIf"], [4, "nzStringTemplateOutlet"], [3, "ngTemplateOutlet"], [1, "ant-list-item-main"]], template: function NzListItemComponent_Template(rf, ctx) { if (rf & 1) {
                core["ɵɵprojectionDef"](_c0$5);
                core["ɵɵtemplate"](0, NzListItemComponent_ng_template_0_Template, 2, 1, "ng-template", null, 0, core["ɵɵtemplateRefExtractor"]);
                core["ɵɵtemplate"](2, NzListItemComponent_ng_template_2_Template, 3, 1, "ng-template", null, 1, core["ɵɵtemplateRefExtractor"]);
                core["ɵɵtemplate"](4, NzListItemComponent_ng_template_4_Template, 1, 0, "ng-template", null, 2, core["ɵɵtemplateRefExtractor"]);
                core["ɵɵtemplate"](6, NzListItemComponent_ng_template_6_Template, 4, 4, "ng-template", null, 3, core["ɵɵtemplateRefExtractor"]);
                core["ɵɵtemplate"](8, NzListItemComponent_ng_container_8_Template, 6, 4, "ng-container", 4);
            } if (rf & 2) {
                var _r2301 = core["ɵɵreference"](7);
                core["ɵɵadvance"](8);
                core["ɵɵproperty"]("ngIf", ctx.isVerticalAndExtra)("ngIfElse", _r2301);
            } }, directives: [common.NgIf, NzListItemActionsComponent, core$1.NzStringTemplateOutletDirective, common.NgTemplateOutlet, NzListItemExtraComponent], encapsulation: 2, changeDetection: 0 });
        __decorate([
            core$1.InputBoolean(),
            __metadata("design:type", Boolean)
        ], NzListItemComponent.prototype, "nzNoFlex", void 0);
        return NzListItemComponent;
    }());
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListItemComponent, [{
            type: core.Component,
            args: [{
                    selector: 'nz-list-item, [nz-list-item]',
                    exportAs: 'nzListItem',
                    template: "\n    <ng-template #actionsTpl>\n      <ul nz-list-item-actions *ngIf=\"nzActions?.length > 0\" [nzActions]=\"nzActions\"></ul>\n      <ng-content select=\"nz-list-item-actions, [nz-list-item-actions]\"></ng-content>\n    </ng-template>\n    <ng-template #contentTpl>\n      <ng-content select=\"nz-list-item-meta, [nz-list-item-meta]\"></ng-content>\n      <ng-content></ng-content>\n      <ng-container *ngIf=\"nzContent\">\n        <ng-container *nzStringTemplateOutlet=\"nzContent\">{{ nzContent }}</ng-container>\n      </ng-container>\n    </ng-template>\n    <ng-template #extraTpl>\n      <ng-content select=\"nz-list-item-extra, [nz-list-item-extra]\"></ng-content>\n    </ng-template>\n    <ng-template #simpleTpl>\n      <ng-template [ngTemplateOutlet]=\"contentTpl\"></ng-template>\n      <ng-template [ngTemplateOutlet]=\"nzExtra\"></ng-template>\n      <ng-template [ngTemplateOutlet]=\"extraTpl\"></ng-template>\n      <ng-template [ngTemplateOutlet]=\"actionsTpl\"></ng-template>\n    </ng-template>\n\n    <ng-container *ngIf=\"isVerticalAndExtra; else simpleTpl\">\n      <div class=\"ant-list-item-main\">\n        <ng-template [ngTemplateOutlet]=\"contentTpl\"></ng-template>\n        <ng-template [ngTemplateOutlet]=\"actionsTpl\"></ng-template>\n      </div>\n      <nz-list-item-extra *ngIf=\"nzExtra\">\n        <ng-template [ngTemplateOutlet]=\"nzExtra\"></ng-template>\n      </nz-list-item-extra>\n      <ng-template [ngTemplateOutlet]=\"extraTpl\"></ng-template>\n    </ng-container>\n  ",
                    preserveWhitespaces: false,
                    encapsulation: core.ViewEncapsulation.None,
                    changeDetection: core.ChangeDetectionStrategy.OnPush
                }]
        }], function () { return [{ type: core.ElementRef }, { type: core.Renderer2 }, { type: NzListComponent }, { type: core.ChangeDetectorRef }]; }, { nzActions: [{
                type: core.Input
            }], nzContent: [{
                type: core.Input
            }], nzExtra: [{
                type: core.Input
            }], nzNoFlex: [{
                type: core.Input
            }, {
                type: core.HostBinding,
                args: ['class.ant-list-item-no-flex']
            }], listItemExtraDirective: [{
                type: core.ContentChild,
                args: [NzListItemExtraComponent]
            }] }); })();

    /**
     * @license
     * Copyright Alibaba.com All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
     */
    var DIRECTIVES = [
        NzListComponent,
        NzListHeaderComponent,
        NzListFooterComponent,
        NzListPaginationComponent,
        NzListEmptyComponent,
        NzListItemComponent,
        NzListItemMetaComponent,
        NzListItemMetaTitleComponent,
        NzListItemMetaDescriptionComponent,
        NzListItemMetaAvatarComponent,
        NzListItemActionsComponent,
        NzListItemActionComponent,
        NzListItemExtraComponent,
        NzListLoadMoreDirective,
        NzListGridDirective
    ];
    var NzListModule = /** @class */ (function () {
        function NzListModule() {
        }
        /** @nocollapse */ NzListModule.ɵmod = core["ɵɵdefineNgModule"]({ type: NzListModule });
        /** @nocollapse */ NzListModule.ɵinj = core["ɵɵdefineInjector"]({ factory: function NzListModule_Factory(t) { return new (t || NzListModule)(); }, imports: [[common.CommonModule, spin.NzSpinModule, grid.NzGridModule, avatar.NzAvatarModule, core$1.NzOutletModule, empty.NzEmptyModule]] });
        return NzListModule;
    }());
    (function () { (typeof ngJitMode === "undefined" || ngJitMode) && core["ɵɵsetNgModuleScope"](NzListModule, { declarations: [NzListComponent,
            NzListHeaderComponent,
            NzListFooterComponent,
            NzListPaginationComponent,
            NzListEmptyComponent,
            NzListItemComponent,
            NzListItemMetaComponent,
            NzListItemMetaTitleComponent,
            NzListItemMetaDescriptionComponent,
            NzListItemMetaAvatarComponent,
            NzListItemActionsComponent,
            NzListItemActionComponent,
            NzListItemExtraComponent,
            NzListLoadMoreDirective,
            NzListGridDirective], imports: [common.CommonModule, spin.NzSpinModule, grid.NzGridModule, avatar.NzAvatarModule, core$1.NzOutletModule, empty.NzEmptyModule], exports: [NzListComponent,
            NzListHeaderComponent,
            NzListFooterComponent,
            NzListPaginationComponent,
            NzListEmptyComponent,
            NzListItemComponent,
            NzListItemMetaComponent,
            NzListItemMetaTitleComponent,
            NzListItemMetaDescriptionComponent,
            NzListItemMetaAvatarComponent,
            NzListItemActionsComponent,
            NzListItemActionComponent,
            NzListItemExtraComponent,
            NzListLoadMoreDirective,
            NzListGridDirective] }); })();
    /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](NzListModule, [{
            type: core.NgModule,
            args: [{
                    imports: [common.CommonModule, spin.NzSpinModule, grid.NzGridModule, avatar.NzAvatarModule, core$1.NzOutletModule, empty.NzEmptyModule],
                    declarations: [DIRECTIVES],
                    exports: [DIRECTIVES]
                }]
        }], null, null); })();

    exports.NzListComponent = NzListComponent;
    exports.NzListEmptyComponent = NzListEmptyComponent;
    exports.NzListFooterComponent = NzListFooterComponent;
    exports.NzListGridDirective = NzListGridDirective;
    exports.NzListHeaderComponent = NzListHeaderComponent;
    exports.NzListItemActionComponent = NzListItemActionComponent;
    exports.NzListItemActionsComponent = NzListItemActionsComponent;
    exports.NzListItemComponent = NzListItemComponent;
    exports.NzListItemExtraComponent = NzListItemExtraComponent;
    exports.NzListItemMetaAvatarComponent = NzListItemMetaAvatarComponent;
    exports.NzListItemMetaComponent = NzListItemMetaComponent;
    exports.NzListItemMetaDescriptionComponent = NzListItemMetaDescriptionComponent;
    exports.NzListItemMetaTitleComponent = NzListItemMetaTitleComponent;
    exports.NzListLoadMoreDirective = NzListLoadMoreDirective;
    exports.NzListModule = NzListModule;
    exports.NzListPaginationComponent = NzListPaginationComponent;

    Object.defineProperty(exports, '__esModule', { value: true });

})));
//# sourceMappingURL=ng-zorro-antd-list.umd.js.map
