@covalent/core 3.1.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/covalent-core-user-profile.umd.js +1 -9
- package/bundles/covalent-core-user-profile.umd.js.map +1 -1
- package/bundles/covalent-core-user-profile.umd.min.js.map +1 -1
- package/esm2015/user-profile/user-profile.module.js +3 -11
- package/fesm2015/covalent-core-user-profile.js +1 -9
- package/fesm2015/covalent-core-user-profile.js.map +1 -1
- package/package.json +1 -1
- package/schematics/components.js +1 -14
- package/schematics/components.js.map +1 -1
- package/theming/_all-theme.scss +0 -14
- package/theming/prebuilt/blue-grey-deep-orange.css +0 -248
- package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
- package/theming/prebuilt/blue-orange.css +0 -248
- package/theming/prebuilt/blue-orange.css.map +1 -1
- package/theming/prebuilt/indigo-pink.css +0 -248
- package/theming/prebuilt/indigo-pink.css.map +1 -1
- package/theming/prebuilt/orange-light-blue.css +0 -248
- package/theming/prebuilt/orange-light-blue.css.map +1 -1
- package/theming/prebuilt/teal-orange.css +0 -248
- package/theming/prebuilt/teal-orange.css.map +1 -1
- package/typography/_all-typography.scss +0 -10
- package/user-profile/covalent-core-user-profile.metadata.json +1 -1
- package/bundles/covalent-core-chips.umd.js +0 -1507
- package/bundles/covalent-core-chips.umd.js.map +0 -1
- package/bundles/covalent-core-chips.umd.min.js +0 -16
- package/bundles/covalent-core-chips.umd.min.js.map +0 -1
- package/bundles/covalent-core-data-table.umd.js +0 -2756
- package/bundles/covalent-core-data-table.umd.js.map +0 -1
- package/bundles/covalent-core-data-table.umd.min.js +0 -16
- package/bundles/covalent-core-data-table.umd.min.js.map +0 -1
- package/bundles/covalent-core-expansion-panel.umd.js +0 -853
- package/bundles/covalent-core-expansion-panel.umd.js.map +0 -1
- package/bundles/covalent-core-expansion-panel.umd.min.js +0 -16
- package/bundles/covalent-core-expansion-panel.umd.min.js.map +0 -1
- package/bundles/covalent-core-loading.umd.js +0 -1534
- package/bundles/covalent-core-loading.umd.js.map +0 -1
- package/bundles/covalent-core-loading.umd.min.js +0 -16
- package/bundles/covalent-core-loading.umd.min.js.map +0 -1
- package/bundles/covalent-core-media.umd.js +0 -749
- package/bundles/covalent-core-media.umd.js.map +0 -1
- package/bundles/covalent-core-media.umd.min.js +0 -16
- package/bundles/covalent-core-media.umd.min.js.map +0 -1
- package/bundles/covalent-core-nav-links.umd.js +0 -197
- package/bundles/covalent-core-nav-links.umd.js.map +0 -1
- package/bundles/covalent-core-nav-links.umd.min.js +0 -2
- package/bundles/covalent-core-nav-links.umd.min.js.map +0 -1
- package/bundles/covalent-core-notifications.umd.js +0 -275
- package/bundles/covalent-core-notifications.umd.js.map +0 -1
- package/bundles/covalent-core-notifications.umd.min.js +0 -2
- package/bundles/covalent-core-notifications.umd.min.js.map +0 -1
- package/bundles/covalent-core-paging.umd.js +0 -491
- package/bundles/covalent-core-paging.umd.js.map +0 -1
- package/bundles/covalent-core-paging.umd.min.js +0 -2
- package/bundles/covalent-core-paging.umd.min.js.map +0 -1
- package/bundles/covalent-core-sidesheet.umd.js +0 -145
- package/bundles/covalent-core-sidesheet.umd.js.map +0 -1
- package/bundles/covalent-core-sidesheet.umd.min.js +0 -2
- package/bundles/covalent-core-sidesheet.umd.min.js.map +0 -1
- package/bundles/covalent-core-steps.umd.js +0 -1756
- package/bundles/covalent-core-steps.umd.js.map +0 -1
- package/bundles/covalent-core-steps.umd.min.js +0 -16
- package/bundles/covalent-core-steps.umd.min.js.map +0 -1
- package/bundles/covalent-core-tab-select.umd.js +0 -732
- package/bundles/covalent-core-tab-select.umd.js.map +0 -1
- package/bundles/covalent-core-tab-select.umd.min.js +0 -16
- package/bundles/covalent-core-tab-select.umd.min.js.map +0 -1
- package/bundles/covalent-core-virtual-scroll.umd.js +0 -785
- package/bundles/covalent-core-virtual-scroll.umd.js.map +0 -1
- package/bundles/covalent-core-virtual-scroll.umd.min.js +0 -16
- package/bundles/covalent-core-virtual-scroll.umd.min.js.map +0 -1
- package/chips/README.md +0 -99
- package/chips/_chips-theme.scss +0 -87
- package/chips/chips.component.d.ts +0 -287
- package/chips/chips.component.scss +0 -147
- package/chips/chips.module.d.ts +0 -2
- package/chips/covalent-core-chips.d.ts +0 -4
- package/chips/covalent-core-chips.metadata.json +0 -1
- package/chips/index.d.ts +0 -1
- package/chips/package.json +0 -11
- package/chips/public-api.d.ts +0 -2
- package/data-table/README.md +0 -134
- package/data-table/_data-table-theme.scss +0 -115
- package/data-table/covalent-core-data-table.d.ts +0 -4
- package/data-table/covalent-core-data-table.metadata.json +0 -1
- package/data-table/data-table-cell/data-table-cell.component.d.ts +0 -22
- package/data-table/data-table-cell/data-table-cell.component.scss +0 -58
- package/data-table/data-table-column/data-table-column.component.d.ts +0 -63
- package/data-table/data-table-column/data-table-column.component.scss +0 -80
- package/data-table/data-table-row/data-table-row.component.d.ts +0 -20
- package/data-table/data-table-row/data-table-row.component.scss +0 -12
- package/data-table/data-table-table/data-table-table.component.d.ts +0 -6
- package/data-table/data-table-table/data-table-table.component.scss +0 -7
- package/data-table/data-table.component.d.ts +0 -356
- package/data-table/data-table.component.scss +0 -93
- package/data-table/data-table.module.d.ts +0 -2
- package/data-table/directives/data-table-template.directive.d.ts +0 -6
- package/data-table/index.d.ts +0 -1
- package/data-table/package.json +0 -11
- package/data-table/public-api.d.ts +0 -8
- package/data-table/services/data-table.service.d.ts +0 -31
- package/esm2015/chips/chips.component.js +0 -1115
- package/esm2015/chips/chips.module.js +0 -23
- package/esm2015/chips/covalent-core-chips.js +0 -10
- package/esm2015/chips/index.js +0 -7
- package/esm2015/chips/public-api.js +0 -8
- package/esm2015/data-table/covalent-core-data-table.js +0 -10
- package/esm2015/data-table/data-table-cell/data-table-cell.component.js +0 -88
- package/esm2015/data-table/data-table-column/data-table-column.component.js +0 -218
- package/esm2015/data-table/data-table-row/data-table-row.component.js +0 -132
- package/esm2015/data-table/data-table-table/data-table-table.component.js +0 -43
- package/esm2015/data-table/data-table.component.js +0 -1640
- package/esm2015/data-table/data-table.module.js +0 -39
- package/esm2015/data-table/directives/data-table-template.directive.js +0 -32
- package/esm2015/data-table/index.js +0 -7
- package/esm2015/data-table/public-api.js +0 -14
- package/esm2015/data-table/services/data-table.service.js +0 -116
- package/esm2015/expansion-panel/covalent-core-expansion-panel.js +0 -10
- package/esm2015/expansion-panel/expansion-panel-group.component.js +0 -212
- package/esm2015/expansion-panel/expansion-panel.component.js +0 -272
- package/esm2015/expansion-panel/expansion-panel.module.js +0 -31
- package/esm2015/expansion-panel/index.js +0 -7
- package/esm2015/expansion-panel/public-api.js +0 -9
- package/esm2015/loading/covalent-core-loading.js +0 -10
- package/esm2015/loading/directives/loading.directive.js +0 -231
- package/esm2015/loading/index.js +0 -7
- package/esm2015/loading/loading.component.js +0 -302
- package/esm2015/loading/loading.module.js +0 -30
- package/esm2015/loading/public-api.js +0 -11
- package/esm2015/loading/services/loading.factory.js +0 -297
- package/esm2015/loading/services/loading.service.js +0 -319
- package/esm2015/media/covalent-core-media.js +0 -10
- package/esm2015/media/directives/media-toggle.directive.js +0 -207
- package/esm2015/media/index.js +0 -7
- package/esm2015/media/media.module.js +0 -20
- package/esm2015/media/public-api.js +0 -9
- package/esm2015/media/services/media.service.js +0 -169
- package/esm2015/nav-links/covalent-core-nav-links.js +0 -10
- package/esm2015/nav-links/index.js +0 -7
- package/esm2015/nav-links/nav-links.component.js +0 -138
- package/esm2015/nav-links/nav-links.module.js +0 -37
- package/esm2015/nav-links/public-api.js +0 -8
- package/esm2015/notifications/covalent-core-notifications.js +0 -10
- package/esm2015/notifications/index.js +0 -7
- package/esm2015/notifications/notification-count.component.js +0 -191
- package/esm2015/notifications/notifications.module.js +0 -20
- package/esm2015/notifications/public-api.js +0 -8
- package/esm2015/paging/covalent-core-paging.js +0 -10
- package/esm2015/paging/index.js +0 -7
- package/esm2015/paging/paging-bar.component.js +0 -412
- package/esm2015/paging/paging.module.js +0 -20
- package/esm2015/paging/public-api.js +0 -8
- package/esm2015/sidesheet/covalent-core-sidesheet.js +0 -10
- package/esm2015/sidesheet/index.js +0 -7
- package/esm2015/sidesheet/public-api.js +0 -8
- package/esm2015/sidesheet/sidesheet.component.js +0 -72
- package/esm2015/sidesheet/sidesheet.module.js +0 -27
- package/esm2015/steps/covalent-core-steps.js +0 -10
- package/esm2015/steps/index.js +0 -7
- package/esm2015/steps/nav/nav-step-link/nav-step-link.component.js +0 -144
- package/esm2015/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.js +0 -371
- package/esm2015/steps/nav/nav-steps-vertical/nav-steps-vertical.component.js +0 -130
- package/esm2015/steps/public-api.js +0 -14
- package/esm2015/steps/step-body/step-body.component.js +0 -83
- package/esm2015/steps/step-header/step-header.component.js +0 -79
- package/esm2015/steps/step.component.js +0 -312
- package/esm2015/steps/steps.component.js +0 -234
- package/esm2015/steps/steps.module.js +0 -44
- package/esm2015/tab-select/covalent-core-tab-select.js +0 -10
- package/esm2015/tab-select/index.js +0 -7
- package/esm2015/tab-select/public-api.js +0 -9
- package/esm2015/tab-select/tab-option.component.js +0 -82
- package/esm2015/tab-select/tab-select.component.js +0 -291
- package/esm2015/tab-select/tab-select.module.js +0 -31
- package/esm2015/virtual-scroll/covalent-core-virtual-scroll.js +0 -10
- package/esm2015/virtual-scroll/index.js +0 -7
- package/esm2015/virtual-scroll/public-api.js +0 -9
- package/esm2015/virtual-scroll/virtual-scroll-container.component.js +0 -391
- package/esm2015/virtual-scroll/virtual-scroll-row.directive.js +0 -25
- package/esm2015/virtual-scroll/virtual-scroll.module.js +0 -21
- package/expansion-panel/README.md +0 -116
- package/expansion-panel/_expansion-panel-theme.scss +0 -80
- package/expansion-panel/covalent-core-expansion-panel.d.ts +0 -4
- package/expansion-panel/covalent-core-expansion-panel.metadata.json +0 -1
- package/expansion-panel/expansion-panel-group.component.d.ts +0 -31
- package/expansion-panel/expansion-panel-group.component.scss +0 -0
- package/expansion-panel/expansion-panel.component.d.ts +0 -82
- package/expansion-panel/expansion-panel.component.scss +0 -50
- package/expansion-panel/expansion-panel.module.d.ts +0 -2
- package/expansion-panel/index.d.ts +0 -1
- package/expansion-panel/package.json +0 -11
- package/expansion-panel/public-api.d.ts +0 -3
- package/fesm2015/covalent-core-chips.js +0 -1151
- package/fesm2015/covalent-core-chips.js.map +0 -1
- package/fesm2015/covalent-core-data-table.js +0 -2309
- package/fesm2015/covalent-core-data-table.js.map +0 -1
- package/fesm2015/covalent-core-expansion-panel.js +0 -528
- package/fesm2015/covalent-core-expansion-panel.js.map +0 -1
- package/fesm2015/covalent-core-loading.js +0 -1179
- package/fesm2015/covalent-core-loading.js.map +0 -1
- package/fesm2015/covalent-core-media.js +0 -411
- package/fesm2015/covalent-core-media.js.map +0 -1
- package/fesm2015/covalent-core-nav-links.js +0 -193
- package/fesm2015/covalent-core-nav-links.js.map +0 -1
- package/fesm2015/covalent-core-notifications.js +0 -228
- package/fesm2015/covalent-core-notifications.js.map +0 -1
- package/fesm2015/covalent-core-paging.js +0 -451
- package/fesm2015/covalent-core-paging.js.map +0 -1
- package/fesm2015/covalent-core-sidesheet.js +0 -118
- package/fesm2015/covalent-core-sidesheet.js.map +0 -1
- package/fesm2015/covalent-core-steps.js +0 -1384
- package/fesm2015/covalent-core-steps.js.map +0 -1
- package/fesm2015/covalent-core-tab-select.js +0 -416
- package/fesm2015/covalent-core-tab-select.js.map +0 -1
- package/fesm2015/covalent-core-virtual-scroll.js +0 -453
- package/fesm2015/covalent-core-virtual-scroll.js.map +0 -1
- package/loading/README.md +0 -180
- package/loading/_loading-theme.scss +0 -10
- package/loading/covalent-core-loading.d.ts +0 -4
- package/loading/covalent-core-loading.metadata.json +0 -1
- package/loading/directives/loading.directive.d.ts +0 -71
- package/loading/index.d.ts +0 -1
- package/loading/loading.component.d.ts +0 -87
- package/loading/loading.component.scss +0 -42
- package/loading/loading.module.d.ts +0 -2
- package/loading/package.json +0 -11
- package/loading/public-api.d.ts +0 -5
- package/loading/services/loading.factory.d.ts +0 -66
- package/loading/services/loading.service.d.ts +0 -118
- package/media/covalent-core-media.d.ts +0 -4
- package/media/covalent-core-media.metadata.json +0 -1
- package/media/directives/media-toggle.directive.d.ts +0 -42
- package/media/index.d.ts +0 -1
- package/media/media.module.d.ts +0 -2
- package/media/package.json +0 -11
- package/media/public-api.d.ts +0 -3
- package/media/services/media.service.d.ts +0 -31
- package/nav-links/README.md +0 -1
- package/nav-links/covalent-core-nav-links.d.ts +0 -4
- package/nav-links/covalent-core-nav-links.metadata.json +0 -1
- package/nav-links/index.d.ts +0 -1
- package/nav-links/nav-links.component.d.ts +0 -51
- package/nav-links/nav-links.component.scss +0 -15
- package/nav-links/nav-links.module.d.ts +0 -2
- package/nav-links/package.json +0 -11
- package/nav-links/public-api.d.ts +0 -2
- package/notifications/README.md +0 -69
- package/notifications/_notification-count-theme.scss +0 -27
- package/notifications/covalent-core-notifications.d.ts +0 -4
- package/notifications/covalent-core-notifications.metadata.json +0 -1
- package/notifications/index.d.ts +0 -1
- package/notifications/notification-count.component.d.ts +0 -74
- package/notifications/notification-count.component.scss +0 -90
- package/notifications/notifications.module.d.ts +0 -2
- package/notifications/package.json +0 -11
- package/notifications/public-api.d.ts +0 -2
- package/paging/README.md +0 -141
- package/paging/_paging-bar-theme.scss +0 -26
- package/paging/covalent-core-paging.d.ts +0 -4
- package/paging/covalent-core-paging.metadata.json +0 -1
- package/paging/index.d.ts +0 -1
- package/paging/package.json +0 -11
- package/paging/paging-bar.component.d.ts +0 -115
- package/paging/paging-bar.component.scss +0 -23
- package/paging/paging.module.d.ts +0 -2
- package/paging/public-api.d.ts +0 -2
- package/sidesheet/README.md +0 -68
- package/sidesheet/covalent-core-sidesheet.d.ts +0 -4
- package/sidesheet/covalent-core-sidesheet.metadata.json +0 -1
- package/sidesheet/index.d.ts +0 -1
- package/sidesheet/package.json +0 -11
- package/sidesheet/public-api.d.ts +0 -2
- package/sidesheet/sidesheet.component.d.ts +0 -13
- package/sidesheet/sidesheet.component.scss +0 -101
- package/sidesheet/sidesheet.module.d.ts +0 -2
- package/steps/README.md +0 -159
- package/steps/_steps-theme.scss +0 -108
- package/steps/covalent-core-steps.d.ts +0 -4
- package/steps/covalent-core-steps.metadata.json +0 -1
- package/steps/index.d.ts +0 -1
- package/steps/nav/README.md +0 -90
- package/steps/nav/nav-step-link/nav-step-link.component.d.ts +0 -42
- package/steps/nav/nav-step-link/nav-step-link.component.scss +0 -17
- package/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.d.ts +0 -79
- package/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.scss +0 -83
- package/steps/nav/nav-steps-vertical/nav-steps-vertical.component.d.ts +0 -18
- package/steps/nav/nav-steps-vertical/nav-steps-vertical.component.scss +0 -18
- package/steps/package.json +0 -11
- package/steps/public-api.d.ts +0 -8
- package/steps/step-body/step-body.component.d.ts +0 -25
- package/steps/step-body/step-body.component.scss +0 -29
- package/steps/step-header/step-header.component.d.ts +0 -35
- package/steps/step-header/step-header.component.scss +0 -90
- package/steps/step.component.d.ts +0 -97
- package/steps/steps.component.d.ts +0 -60
- package/steps/steps.component.scss +0 -55
- package/steps/steps.module.d.ts +0 -2
- package/tab-select/README.md +0 -93
- package/tab-select/covalent-core-tab-select.d.ts +0 -4
- package/tab-select/covalent-core-tab-select.metadata.json +0 -1
- package/tab-select/index.d.ts +0 -1
- package/tab-select/package.json +0 -11
- package/tab-select/public-api.d.ts +0 -3
- package/tab-select/tab-option.component.d.ts +0 -20
- package/tab-select/tab-option.component.scss +0 -0
- package/tab-select/tab-select.component.d.ts +0 -62
- package/tab-select/tab-select.component.scss +0 -3
- package/tab-select/tab-select.module.d.ts +0 -2
- package/virtual-scroll/README.md +0 -68
- package/virtual-scroll/covalent-core-virtual-scroll.d.ts +0 -4
- package/virtual-scroll/covalent-core-virtual-scroll.metadata.json +0 -1
- package/virtual-scroll/index.d.ts +0 -1
- package/virtual-scroll/package.json +0 -11
- package/virtual-scroll/public-api.d.ts +0 -3
- package/virtual-scroll/virtual-scroll-container.component.d.ts +0 -73
- package/virtual-scroll/virtual-scroll-container.component.scss +0 -7
- package/virtual-scroll/virtual-scroll-row.directive.d.ts +0 -5
- package/virtual-scroll/virtual-scroll.module.d.ts +0 -2
@@ -1,853 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/portal'), require('@angular/material/core'), require('@angular/material/icon'), require('@angular/cdk/coercion'), require('@covalent/core/common'), require('rxjs/operators'), require('rxjs')) :
|
3
|
-
typeof define === 'function' && define.amd ? define('@covalent/core/expansion-panel', ['exports', '@angular/core', '@angular/common', '@angular/cdk/portal', '@angular/material/core', '@angular/material/icon', '@angular/cdk/coercion', '@covalent/core/common', 'rxjs/operators', 'rxjs'], factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core['expansion-panel'] = {}), global.ng.core, global.ng.common, global.ng.cdk.portal, global.ng.material.core, global.ng.material.icon, global.ng.cdk.coercion, global.covalent.core.common, global.rxjs.operators, global.rxjs));
|
5
|
-
}(this, (function (exports, core, common$1, portal, core$1, icon, coercion, common, operators, rxjs) { 'use strict';
|
6
|
-
|
7
|
-
/*! *****************************************************************************
|
8
|
-
Copyright (c) Microsoft Corporation.
|
9
|
-
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
11
|
-
purpose with or without fee is hereby granted.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
20
|
-
***************************************************************************** */
|
21
|
-
/* global Reflect, Promise */
|
22
|
-
var extendStatics = function (d, b) {
|
23
|
-
extendStatics = Object.setPrototypeOf ||
|
24
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
25
|
-
function (d, b) { for (var p in b)
|
26
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
27
|
-
d[p] = b[p]; };
|
28
|
-
return extendStatics(d, b);
|
29
|
-
};
|
30
|
-
function __extends(d, b) {
|
31
|
-
extendStatics(d, b);
|
32
|
-
function __() { this.constructor = d; }
|
33
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
34
|
-
}
|
35
|
-
var __assign = function () {
|
36
|
-
__assign = Object.assign || function __assign(t) {
|
37
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
38
|
-
s = arguments[i];
|
39
|
-
for (var p in s)
|
40
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
41
|
-
t[p] = s[p];
|
42
|
-
}
|
43
|
-
return t;
|
44
|
-
};
|
45
|
-
return __assign.apply(this, arguments);
|
46
|
-
};
|
47
|
-
function __rest(s, e) {
|
48
|
-
var t = {};
|
49
|
-
for (var p in s)
|
50
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
51
|
-
t[p] = s[p];
|
52
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
53
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
54
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
55
|
-
t[p[i]] = s[p[i]];
|
56
|
-
}
|
57
|
-
return t;
|
58
|
-
}
|
59
|
-
function __decorate(decorators, target, key, desc) {
|
60
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
61
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
62
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
63
|
-
else
|
64
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
65
|
-
if (d = decorators[i])
|
66
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
67
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
68
|
-
}
|
69
|
-
function __param(paramIndex, decorator) {
|
70
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
71
|
-
}
|
72
|
-
function __metadata(metadataKey, metadataValue) {
|
73
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
74
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
75
|
-
}
|
76
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
77
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
78
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
79
|
-
function fulfilled(value) { try {
|
80
|
-
step(generator.next(value));
|
81
|
-
}
|
82
|
-
catch (e) {
|
83
|
-
reject(e);
|
84
|
-
} }
|
85
|
-
function rejected(value) { try {
|
86
|
-
step(generator["throw"](value));
|
87
|
-
}
|
88
|
-
catch (e) {
|
89
|
-
reject(e);
|
90
|
-
} }
|
91
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
92
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
93
|
-
});
|
94
|
-
}
|
95
|
-
function __generator(thisArg, body) {
|
96
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
97
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
98
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
99
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
100
|
-
function step(op) {
|
101
|
-
if (f)
|
102
|
-
throw new TypeError("Generator is already executing.");
|
103
|
-
while (_)
|
104
|
-
try {
|
105
|
-
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)
|
106
|
-
return t;
|
107
|
-
if (y = 0, t)
|
108
|
-
op = [op[0] & 2, t.value];
|
109
|
-
switch (op[0]) {
|
110
|
-
case 0:
|
111
|
-
case 1:
|
112
|
-
t = op;
|
113
|
-
break;
|
114
|
-
case 4:
|
115
|
-
_.label++;
|
116
|
-
return { value: op[1], done: false };
|
117
|
-
case 5:
|
118
|
-
_.label++;
|
119
|
-
y = op[1];
|
120
|
-
op = [0];
|
121
|
-
continue;
|
122
|
-
case 7:
|
123
|
-
op = _.ops.pop();
|
124
|
-
_.trys.pop();
|
125
|
-
continue;
|
126
|
-
default:
|
127
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
128
|
-
_ = 0;
|
129
|
-
continue;
|
130
|
-
}
|
131
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
132
|
-
_.label = op[1];
|
133
|
-
break;
|
134
|
-
}
|
135
|
-
if (op[0] === 6 && _.label < t[1]) {
|
136
|
-
_.label = t[1];
|
137
|
-
t = op;
|
138
|
-
break;
|
139
|
-
}
|
140
|
-
if (t && _.label < t[2]) {
|
141
|
-
_.label = t[2];
|
142
|
-
_.ops.push(op);
|
143
|
-
break;
|
144
|
-
}
|
145
|
-
if (t[2])
|
146
|
-
_.ops.pop();
|
147
|
-
_.trys.pop();
|
148
|
-
continue;
|
149
|
-
}
|
150
|
-
op = body.call(thisArg, _);
|
151
|
-
}
|
152
|
-
catch (e) {
|
153
|
-
op = [6, e];
|
154
|
-
y = 0;
|
155
|
-
}
|
156
|
-
finally {
|
157
|
-
f = t = 0;
|
158
|
-
}
|
159
|
-
if (op[0] & 5)
|
160
|
-
throw op[1];
|
161
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
162
|
-
}
|
163
|
-
}
|
164
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
165
|
-
if (k2 === undefined)
|
166
|
-
k2 = k;
|
167
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
168
|
-
}) : (function (o, m, k, k2) {
|
169
|
-
if (k2 === undefined)
|
170
|
-
k2 = k;
|
171
|
-
o[k2] = m[k];
|
172
|
-
});
|
173
|
-
function __exportStar(m, o) {
|
174
|
-
for (var p in m)
|
175
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
176
|
-
__createBinding(o, m, p);
|
177
|
-
}
|
178
|
-
function __values(o) {
|
179
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
180
|
-
if (m)
|
181
|
-
return m.call(o);
|
182
|
-
if (o && typeof o.length === "number")
|
183
|
-
return {
|
184
|
-
next: function () {
|
185
|
-
if (o && i >= o.length)
|
186
|
-
o = void 0;
|
187
|
-
return { value: o && o[i++], done: !o };
|
188
|
-
}
|
189
|
-
};
|
190
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
191
|
-
}
|
192
|
-
function __read(o, n) {
|
193
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
194
|
-
if (!m)
|
195
|
-
return o;
|
196
|
-
var i = m.call(o), r, ar = [], e;
|
197
|
-
try {
|
198
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
199
|
-
ar.push(r.value);
|
200
|
-
}
|
201
|
-
catch (error) {
|
202
|
-
e = { error: error };
|
203
|
-
}
|
204
|
-
finally {
|
205
|
-
try {
|
206
|
-
if (r && !r.done && (m = i["return"]))
|
207
|
-
m.call(i);
|
208
|
-
}
|
209
|
-
finally {
|
210
|
-
if (e)
|
211
|
-
throw e.error;
|
212
|
-
}
|
213
|
-
}
|
214
|
-
return ar;
|
215
|
-
}
|
216
|
-
function __spread() {
|
217
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
218
|
-
ar = ar.concat(__read(arguments[i]));
|
219
|
-
return ar;
|
220
|
-
}
|
221
|
-
function __spreadArrays() {
|
222
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
223
|
-
s += arguments[i].length;
|
224
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
225
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
226
|
-
r[k] = a[j];
|
227
|
-
return r;
|
228
|
-
}
|
229
|
-
;
|
230
|
-
function __await(v) {
|
231
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
232
|
-
}
|
233
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
234
|
-
if (!Symbol.asyncIterator)
|
235
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
236
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
237
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
238
|
-
function verb(n) { if (g[n])
|
239
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
240
|
-
function resume(n, v) { try {
|
241
|
-
step(g[n](v));
|
242
|
-
}
|
243
|
-
catch (e) {
|
244
|
-
settle(q[0][3], e);
|
245
|
-
} }
|
246
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
247
|
-
function fulfill(value) { resume("next", value); }
|
248
|
-
function reject(value) { resume("throw", value); }
|
249
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
250
|
-
resume(q[0][0], q[0][1]); }
|
251
|
-
}
|
252
|
-
function __asyncDelegator(o) {
|
253
|
-
var i, p;
|
254
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
255
|
-
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; }
|
256
|
-
}
|
257
|
-
function __asyncValues(o) {
|
258
|
-
if (!Symbol.asyncIterator)
|
259
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
260
|
-
var m = o[Symbol.asyncIterator], i;
|
261
|
-
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);
|
262
|
-
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); }); }; }
|
263
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
264
|
-
}
|
265
|
-
function __makeTemplateObject(cooked, raw) {
|
266
|
-
if (Object.defineProperty) {
|
267
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
268
|
-
}
|
269
|
-
else {
|
270
|
-
cooked.raw = raw;
|
271
|
-
}
|
272
|
-
return cooked;
|
273
|
-
}
|
274
|
-
;
|
275
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
276
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
277
|
-
}) : function (o, v) {
|
278
|
-
o["default"] = v;
|
279
|
-
};
|
280
|
-
function __importStar(mod) {
|
281
|
-
if (mod && mod.__esModule)
|
282
|
-
return mod;
|
283
|
-
var result = {};
|
284
|
-
if (mod != null)
|
285
|
-
for (var k in mod)
|
286
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
287
|
-
__createBinding(result, mod, k);
|
288
|
-
__setModuleDefault(result, mod);
|
289
|
-
return result;
|
290
|
-
}
|
291
|
-
function __importDefault(mod) {
|
292
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
293
|
-
}
|
294
|
-
function __classPrivateFieldGet(receiver, privateMap) {
|
295
|
-
if (!privateMap.has(receiver)) {
|
296
|
-
throw new TypeError("attempted to get private field on non-instance");
|
297
|
-
}
|
298
|
-
return privateMap.get(receiver);
|
299
|
-
}
|
300
|
-
function __classPrivateFieldSet(receiver, privateMap, value) {
|
301
|
-
if (!privateMap.has(receiver)) {
|
302
|
-
throw new TypeError("attempted to set private field on non-instance");
|
303
|
-
}
|
304
|
-
privateMap.set(receiver, value);
|
305
|
-
return value;
|
306
|
-
}
|
307
|
-
|
308
|
-
var TdExpansionPanelHeaderDirective = /** @class */ (function (_super) {
|
309
|
-
__extends(TdExpansionPanelHeaderDirective, _super);
|
310
|
-
/**
|
311
|
-
* @param {?} templateRef
|
312
|
-
* @param {?} viewContainerRef
|
313
|
-
*/
|
314
|
-
function TdExpansionPanelHeaderDirective(templateRef, viewContainerRef) {
|
315
|
-
return _super.call(this, templateRef, viewContainerRef) || this;
|
316
|
-
}
|
317
|
-
return TdExpansionPanelHeaderDirective;
|
318
|
-
}(portal.TemplatePortalDirective));
|
319
|
-
TdExpansionPanelHeaderDirective.decorators = [
|
320
|
-
{ type: core.Directive, args: [{
|
321
|
-
selector: '[td-expansion-panel-header]ng-template',
|
322
|
-
},] }
|
323
|
-
];
|
324
|
-
/** @nocollapse */
|
325
|
-
TdExpansionPanelHeaderDirective.ctorParameters = function () { return [
|
326
|
-
{ type: core.TemplateRef },
|
327
|
-
{ type: core.ViewContainerRef }
|
328
|
-
]; };
|
329
|
-
var TdExpansionPanelLabelDirective = /** @class */ (function (_super) {
|
330
|
-
__extends(TdExpansionPanelLabelDirective, _super);
|
331
|
-
/**
|
332
|
-
* @param {?} templateRef
|
333
|
-
* @param {?} viewContainerRef
|
334
|
-
*/
|
335
|
-
function TdExpansionPanelLabelDirective(templateRef, viewContainerRef) {
|
336
|
-
return _super.call(this, templateRef, viewContainerRef) || this;
|
337
|
-
}
|
338
|
-
return TdExpansionPanelLabelDirective;
|
339
|
-
}(portal.TemplatePortalDirective));
|
340
|
-
TdExpansionPanelLabelDirective.decorators = [
|
341
|
-
{ type: core.Directive, args: [{
|
342
|
-
selector: '[td-expansion-panel-label]ng-template',
|
343
|
-
},] }
|
344
|
-
];
|
345
|
-
/** @nocollapse */
|
346
|
-
TdExpansionPanelLabelDirective.ctorParameters = function () { return [
|
347
|
-
{ type: core.TemplateRef },
|
348
|
-
{ type: core.ViewContainerRef }
|
349
|
-
]; };
|
350
|
-
var TdExpansionPanelSublabelDirective = /** @class */ (function (_super) {
|
351
|
-
__extends(TdExpansionPanelSublabelDirective, _super);
|
352
|
-
/**
|
353
|
-
* @param {?} templateRef
|
354
|
-
* @param {?} viewContainerRef
|
355
|
-
*/
|
356
|
-
function TdExpansionPanelSublabelDirective(templateRef, viewContainerRef) {
|
357
|
-
return _super.call(this, templateRef, viewContainerRef) || this;
|
358
|
-
}
|
359
|
-
return TdExpansionPanelSublabelDirective;
|
360
|
-
}(portal.TemplatePortalDirective));
|
361
|
-
TdExpansionPanelSublabelDirective.decorators = [
|
362
|
-
{ type: core.Directive, args: [{
|
363
|
-
selector: '[td-expansion-panel-sublabel]ng-template',
|
364
|
-
},] }
|
365
|
-
];
|
366
|
-
/** @nocollapse */
|
367
|
-
TdExpansionPanelSublabelDirective.ctorParameters = function () { return [
|
368
|
-
{ type: core.TemplateRef },
|
369
|
-
{ type: core.ViewContainerRef }
|
370
|
-
]; };
|
371
|
-
var TdExpansionPanelSummaryComponent = /** @class */ (function () {
|
372
|
-
function TdExpansionPanelSummaryComponent() {
|
373
|
-
}
|
374
|
-
return TdExpansionPanelSummaryComponent;
|
375
|
-
}());
|
376
|
-
TdExpansionPanelSummaryComponent.decorators = [
|
377
|
-
{ type: core.Component, args: [{
|
378
|
-
selector: 'td-expansion-summary',
|
379
|
-
template: '<ng-content></ng-content>'
|
380
|
-
}] }
|
381
|
-
];
|
382
|
-
var TdExpansionPanelBase = /** @class */ (function () {
|
383
|
-
function TdExpansionPanelBase() {
|
384
|
-
}
|
385
|
-
return TdExpansionPanelBase;
|
386
|
-
}());
|
387
|
-
/* tslint:disable-next-line */
|
388
|
-
/** @type {?} */
|
389
|
-
var _TdExpansionPanelMixinBase = common.mixinDisableRipple(common.mixinDisabled(TdExpansionPanelBase));
|
390
|
-
var TdExpansionPanelComponent = /** @class */ (function (_super) {
|
391
|
-
__extends(TdExpansionPanelComponent, _super);
|
392
|
-
/**
|
393
|
-
* @param {?} _renderer
|
394
|
-
* @param {?} _elementRef
|
395
|
-
*/
|
396
|
-
function TdExpansionPanelComponent(_renderer, _elementRef) {
|
397
|
-
var _this = _super.call(this) || this;
|
398
|
-
_this._renderer = _renderer;
|
399
|
-
_this._elementRef = _elementRef;
|
400
|
-
_this._expand = false;
|
401
|
-
/**
|
402
|
-
* expanded?: function
|
403
|
-
* Event emitted when [TdExpansionPanelComponent] is expanded.
|
404
|
-
*/
|
405
|
-
_this.expanded = new core.EventEmitter();
|
406
|
-
/**
|
407
|
-
* collapsed?: function
|
408
|
-
* Event emitted when [TdExpansionPanelComponent] is collapsed.
|
409
|
-
*/
|
410
|
-
_this.collapsed = new core.EventEmitter();
|
411
|
-
_this._renderer.addClass(_this._elementRef.nativeElement, 'td-expansion-panel');
|
412
|
-
return _this;
|
413
|
-
}
|
414
|
-
Object.defineProperty(TdExpansionPanelComponent.prototype, "expand", {
|
415
|
-
/**
|
416
|
-
* @return {?}
|
417
|
-
*/
|
418
|
-
get: function () {
|
419
|
-
return this._expand;
|
420
|
-
},
|
421
|
-
/**
|
422
|
-
* expand?: boolean
|
423
|
-
* Toggles [TdExpansionPanelComponent] between expand/collapse.
|
424
|
-
* @param {?} expand
|
425
|
-
* @return {?}
|
426
|
-
*/
|
427
|
-
set: function (expand) {
|
428
|
-
this._setExpand(coercion.coerceBooleanProperty(expand));
|
429
|
-
},
|
430
|
-
enumerable: false,
|
431
|
-
configurable: true
|
432
|
-
});
|
433
|
-
/**
|
434
|
-
* Method executed when [TdExpansionPanelComponent] is clicked.
|
435
|
-
* @return {?}
|
436
|
-
*/
|
437
|
-
TdExpansionPanelComponent.prototype.clickEvent = function () {
|
438
|
-
this._setExpand(!this._expand);
|
439
|
-
};
|
440
|
-
/**
|
441
|
-
* Toggle expand state of [TdExpansionPanelComponent]
|
442
|
-
* retuns 'true' if successful, else 'false'.
|
443
|
-
* @return {?}
|
444
|
-
*/
|
445
|
-
TdExpansionPanelComponent.prototype.toggle = function () {
|
446
|
-
return this._setExpand(!this._expand);
|
447
|
-
};
|
448
|
-
/**
|
449
|
-
* Opens [TdExpansionPanelComponent]
|
450
|
-
* retuns 'true' if successful, else 'false'.
|
451
|
-
* @return {?}
|
452
|
-
*/
|
453
|
-
TdExpansionPanelComponent.prototype.open = function () {
|
454
|
-
return this._setExpand(true);
|
455
|
-
};
|
456
|
-
/**
|
457
|
-
* Closes [TdExpansionPanelComponent]
|
458
|
-
* retuns 'true' if successful, else 'false'.
|
459
|
-
* @return {?}
|
460
|
-
*/
|
461
|
-
TdExpansionPanelComponent.prototype.close = function () {
|
462
|
-
return this._setExpand(false);
|
463
|
-
};
|
464
|
-
/**
|
465
|
-
* Method executed when the disabled value changes
|
466
|
-
* @param {?} v
|
467
|
-
* @return {?}
|
468
|
-
*/
|
469
|
-
TdExpansionPanelComponent.prototype.onDisabledChange = function (v) {
|
470
|
-
if (v && this._expand) {
|
471
|
-
this._expand = false;
|
472
|
-
this._onCollapsed();
|
473
|
-
}
|
474
|
-
};
|
475
|
-
/**
|
476
|
-
* Method to change expand state internally and emit the [onExpanded] event if 'true' or [onCollapsed]
|
477
|
-
* event if 'false'. (Blocked if [disabled] is 'true')
|
478
|
-
* @private
|
479
|
-
* @param {?} newExpand
|
480
|
-
* @return {?}
|
481
|
-
*/
|
482
|
-
TdExpansionPanelComponent.prototype._setExpand = function (newExpand) {
|
483
|
-
if (this.disabled) {
|
484
|
-
return false;
|
485
|
-
}
|
486
|
-
if (this._expand !== newExpand) {
|
487
|
-
this._expand = newExpand;
|
488
|
-
if (newExpand) {
|
489
|
-
this._renderer.addClass(this._elementRef.nativeElement, 'td-expanded');
|
490
|
-
this._onExpanded();
|
491
|
-
}
|
492
|
-
else {
|
493
|
-
this._renderer.removeClass(this._elementRef.nativeElement, 'td-expanded');
|
494
|
-
this._onCollapsed();
|
495
|
-
}
|
496
|
-
return true;
|
497
|
-
}
|
498
|
-
return false;
|
499
|
-
};
|
500
|
-
/**
|
501
|
-
* @private
|
502
|
-
* @return {?}
|
503
|
-
*/
|
504
|
-
TdExpansionPanelComponent.prototype._onExpanded = function () {
|
505
|
-
this.expanded.emit();
|
506
|
-
};
|
507
|
-
/**
|
508
|
-
* @private
|
509
|
-
* @return {?}
|
510
|
-
*/
|
511
|
-
TdExpansionPanelComponent.prototype._onCollapsed = function () {
|
512
|
-
this.collapsed.emit();
|
513
|
-
};
|
514
|
-
return TdExpansionPanelComponent;
|
515
|
-
}(_TdExpansionPanelMixinBase));
|
516
|
-
TdExpansionPanelComponent.decorators = [
|
517
|
-
{ type: core.Component, args: [{
|
518
|
-
selector: 'td-expansion-panel',
|
519
|
-
template: "<div\n class=\"td-expansion-panel-header\"\n [class.mat-disabled]=\"disabled\"\n matRipple\n [matRippleDisabled]=\"disabled || disableRipple\"\n [tabIndex]=\"disabled ? -1 : 0\"\n (keydown.enter)=\"clickEvent()\"\n (click)=\"clickEvent()\"\n>\n <ng-template [cdkPortalOutlet]=\"expansionPanelHeader\"></ng-template>\n <div class=\"td-expansion-panel-header-content\" [class.mat-disabled]=\"disabled\" *ngIf=\"!expansionPanelHeader\">\n <div *ngIf=\"label || expansionPanelLabel\" class=\"td-expansion-label\">\n <ng-template [cdkPortalOutlet]=\"expansionPanelLabel\"></ng-template>\n <ng-template [ngIf]=\"!expansionPanelLabel\">{{ label }}</ng-template>\n </div>\n <div *ngIf=\"sublabel || expansionPanelSublabel\" class=\"td-expansion-sublabel\">\n <ng-template [cdkPortalOutlet]=\"expansionPanelSublabel\"></ng-template>\n <ng-template [ngIf]=\"!expansionPanelSublabel\">{{ sublabel }}</ng-template>\n </div>\n <mat-icon class=\"td-expand-icon\" *ngIf=\"!disabled\" [@tdRotate]=\"expand\">keyboard_arrow_down</mat-icon>\n </div>\n</div>\n<div class=\"td-expansion-content\" [@tdCollapse]=\"!expand\">\n <ng-content></ng-content>\n</div>\n<div class=\"td-expansion-summary\" [@tdCollapse]=\"expand\">\n <ng-content select=\"td-expansion-summary\"></ng-content>\n</div>\n",
|
520
|
-
inputs: ['disabled', 'disableRipple'],
|
521
|
-
animations: [common.tdCollapseAnimation, common.tdRotateAnimation],
|
522
|
-
styles: [":host{display:block}:host .td-expansion-panel-header{outline:none;position:relative}:host .td-expansion-panel-header:focus:not(.mat-disabled),:host .td-expansion-panel-header:hover:not(.mat-disabled){cursor:pointer}:host .td-expansion-panel-header .td-expansion-panel-header-content{-ms-flex:1;-ms-flex-align:center;-ms-flex-direction:row;-ms-flex-line-pack:center;-ms-flex-pack:start;align-content:center;align-items:center;box-sizing:border-box;display:-ms-flexbox;display:flex;flex:1;flex-direction:row;height:48px;justify-content:flex-start;max-width:100%;padding:0 24px}:host .td-expansion-panel-header .td-expansion-panel-header-content .td-expansion-label,:host .td-expansion-panel-header .td-expansion-panel-header-content .td-expansion-sublabel{-ms-flex:1;flex:1}:host .td-expansion-content.ng-animating,:host .td-expansion-summary.ng-animating{overflow:hidden}.td-expansion-label,.td-expansion-sublabel{margin-right:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}::ng-deep [dir=rtl] .td-expansion-label,::ng-deep [dir=rtl] .td-expansion-sublabel{margin-left:16px;margin-right:inherit}"]
|
523
|
-
}] }
|
524
|
-
];
|
525
|
-
/** @nocollapse */
|
526
|
-
TdExpansionPanelComponent.ctorParameters = function () { return [
|
527
|
-
{ type: core.Renderer2 },
|
528
|
-
{ type: core.ElementRef }
|
529
|
-
]; };
|
530
|
-
TdExpansionPanelComponent.propDecorators = {
|
531
|
-
expansionPanelHeader: [{ type: core.ContentChild, args: [TdExpansionPanelHeaderDirective,] }],
|
532
|
-
expansionPanelLabel: [{ type: core.ContentChild, args: [TdExpansionPanelLabelDirective,] }],
|
533
|
-
expansionPanelSublabel: [{ type: core.ContentChild, args: [TdExpansionPanelSublabelDirective,] }],
|
534
|
-
label: [{ type: core.Input }],
|
535
|
-
sublabel: [{ type: core.Input }],
|
536
|
-
expand: [{ type: core.Input, args: ['expand',] }],
|
537
|
-
expanded: [{ type: core.Output }],
|
538
|
-
collapsed: [{ type: core.Output }]
|
539
|
-
};
|
540
|
-
if (false) {
|
541
|
-
/**
|
542
|
-
* @type {?}
|
543
|
-
* @private
|
544
|
-
*/
|
545
|
-
TdExpansionPanelComponent.prototype._expand;
|
546
|
-
/** @type {?} */
|
547
|
-
TdExpansionPanelComponent.prototype.expansionPanelHeader;
|
548
|
-
/** @type {?} */
|
549
|
-
TdExpansionPanelComponent.prototype.expansionPanelLabel;
|
550
|
-
/** @type {?} */
|
551
|
-
TdExpansionPanelComponent.prototype.expansionPanelSublabel;
|
552
|
-
/**
|
553
|
-
* label?: string
|
554
|
-
* Sets label of [TdExpansionPanelComponent] header.
|
555
|
-
* Defaults to 'Click to expand'
|
556
|
-
* @type {?}
|
557
|
-
*/
|
558
|
-
TdExpansionPanelComponent.prototype.label;
|
559
|
-
/**
|
560
|
-
* sublabel?: string
|
561
|
-
* Sets sublabel of [TdExpansionPanelComponent] header.
|
562
|
-
* @type {?}
|
563
|
-
*/
|
564
|
-
TdExpansionPanelComponent.prototype.sublabel;
|
565
|
-
/**
|
566
|
-
* expanded?: function
|
567
|
-
* Event emitted when [TdExpansionPanelComponent] is expanded.
|
568
|
-
* @type {?}
|
569
|
-
*/
|
570
|
-
TdExpansionPanelComponent.prototype.expanded;
|
571
|
-
/**
|
572
|
-
* collapsed?: function
|
573
|
-
* Event emitted when [TdExpansionPanelComponent] is collapsed.
|
574
|
-
* @type {?}
|
575
|
-
*/
|
576
|
-
TdExpansionPanelComponent.prototype.collapsed;
|
577
|
-
/**
|
578
|
-
* @type {?}
|
579
|
-
* @private
|
580
|
-
*/
|
581
|
-
TdExpansionPanelComponent.prototype._renderer;
|
582
|
-
/**
|
583
|
-
* @type {?}
|
584
|
-
* @private
|
585
|
-
*/
|
586
|
-
TdExpansionPanelComponent.prototype._elementRef;
|
587
|
-
}
|
588
|
-
|
589
|
-
/**
|
590
|
-
* @fileoverview added by tsickle
|
591
|
-
* Generated from: expansion-panel-group.component.ts
|
592
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
593
|
-
*/
|
594
|
-
var TdExpansionPanelGroupComponent = /** @class */ (function () {
|
595
|
-
/**
|
596
|
-
* @param {?} _renderer
|
597
|
-
* @param {?} _elementRef
|
598
|
-
*/
|
599
|
-
function TdExpansionPanelGroupComponent(_renderer, _elementRef) {
|
600
|
-
this._renderer = _renderer;
|
601
|
-
this._elementRef = _elementRef;
|
602
|
-
this._multi = false;
|
603
|
-
this._lastOpenedPanels = [];
|
604
|
-
this._destroyed = new rxjs.Subject();
|
605
|
-
this._stopWatchingPanels = new rxjs.Subject();
|
606
|
-
this._renderer.addClass(this._elementRef.nativeElement, 'td-expansion-panel-group');
|
607
|
-
}
|
608
|
-
Object.defineProperty(TdExpansionPanelGroupComponent.prototype, "multi", {
|
609
|
-
/**
|
610
|
-
* multi?: boolean
|
611
|
-
* Sets whether multiple panels can be opened at a given time.
|
612
|
-
* Set to false for accordion mode.
|
613
|
-
* Defaults to false.
|
614
|
-
* @param {?} multi
|
615
|
-
* @return {?}
|
616
|
-
*/
|
617
|
-
set: function (multi) {
|
618
|
-
this._multi = coercion.coerceBooleanProperty(multi);
|
619
|
-
if (this._multi === false && this._lastOpenedPanels.length > 0) {
|
620
|
-
this._closeAllExcept(this._lastOpenedPanels[this._lastOpenedPanels.length - 1]);
|
621
|
-
}
|
622
|
-
},
|
623
|
-
enumerable: false,
|
624
|
-
configurable: true
|
625
|
-
});
|
626
|
-
/**
|
627
|
-
* @return {?}
|
628
|
-
*/
|
629
|
-
TdExpansionPanelGroupComponent.prototype.ngOnDestroy = function () {
|
630
|
-
this._destroyed.next(true);
|
631
|
-
this._destroyed.unsubscribe();
|
632
|
-
this._stopWatchingPanels.next(true);
|
633
|
-
this._stopWatchingPanels.unsubscribe();
|
634
|
-
};
|
635
|
-
/**
|
636
|
-
* @return {?}
|
637
|
-
*/
|
638
|
-
TdExpansionPanelGroupComponent.prototype.ngAfterContentInit = function () {
|
639
|
-
var _this = this;
|
640
|
-
if (!this._multi) {
|
641
|
-
/** @type {?} */
|
642
|
-
var openedPanels = this.expansionPanels.filter(( /**
|
643
|
-
* @param {?} expansionPanel
|
644
|
-
* @return {?}
|
645
|
-
*/function (expansionPanel) { return expansionPanel.expand; }));
|
646
|
-
/** @type {?} */
|
647
|
-
var numOpenedPanels = openedPanels.length;
|
648
|
-
if (numOpenedPanels > 1) {
|
649
|
-
this._closeAllExcept(openedPanels[numOpenedPanels - 1]);
|
650
|
-
}
|
651
|
-
}
|
652
|
-
this._attachListeners(this.expansionPanels);
|
653
|
-
this.expansionPanels.changes
|
654
|
-
.pipe(operators.takeUntil(this._destroyed))
|
655
|
-
.subscribe(( /**
|
656
|
-
* @param {?} expansionPanels
|
657
|
-
* @return {?}
|
658
|
-
*/function (expansionPanels) {
|
659
|
-
_this._stopWatchingPanels.next(true);
|
660
|
-
_this._stopWatchingPanels.unsubscribe();
|
661
|
-
_this._stopWatchingPanels = new rxjs.Subject();
|
662
|
-
_this._attachListeners(expansionPanels);
|
663
|
-
}));
|
664
|
-
};
|
665
|
-
/**
|
666
|
-
* Opens all expansion panels, only if multi set set to true.
|
667
|
-
* @return {?}
|
668
|
-
*/
|
669
|
-
TdExpansionPanelGroupComponent.prototype.openAll = function () {
|
670
|
-
if (this._multi) {
|
671
|
-
this.expansionPanels.forEach(( /**
|
672
|
-
* @param {?} expansionPanel
|
673
|
-
* @return {?}
|
674
|
-
*/function (expansionPanel) {
|
675
|
-
expansionPanel.open();
|
676
|
-
}));
|
677
|
-
}
|
678
|
-
};
|
679
|
-
/**
|
680
|
-
* Closes all expansion panels
|
681
|
-
* @return {?}
|
682
|
-
*/
|
683
|
-
TdExpansionPanelGroupComponent.prototype.closeAll = function () {
|
684
|
-
this.expansionPanels.forEach(( /**
|
685
|
-
* @param {?} expansionPanel
|
686
|
-
* @return {?}
|
687
|
-
*/function (expansionPanel) {
|
688
|
-
expansionPanel.close();
|
689
|
-
}));
|
690
|
-
};
|
691
|
-
/**
|
692
|
-
* @private
|
693
|
-
* @param {?} expansionPanels
|
694
|
-
* @return {?}
|
695
|
-
*/
|
696
|
-
TdExpansionPanelGroupComponent.prototype._attachListeners = function (expansionPanels) {
|
697
|
-
var _this = this;
|
698
|
-
this._lastOpenedPanels = [];
|
699
|
-
expansionPanels.forEach(( /**
|
700
|
-
* @param {?} expansionPanel
|
701
|
-
* @return {?}
|
702
|
-
*/function (expansionPanel) {
|
703
|
-
expansionPanel.expanded.pipe(operators.takeUntil(_this._stopWatchingPanels)).subscribe(( /**
|
704
|
-
* @return {?}
|
705
|
-
*/function () {
|
706
|
-
/** @type {?} */
|
707
|
-
var indexOfPanel = _this._lastOpenedPanels.indexOf(expansionPanel);
|
708
|
-
if (indexOfPanel !== -1) {
|
709
|
-
_this._lastOpenedPanels.splice(indexOfPanel, 1);
|
710
|
-
}
|
711
|
-
_this._lastOpenedPanels.push(expansionPanel);
|
712
|
-
if (!_this._multi) {
|
713
|
-
_this._closeAllExcept(expansionPanel);
|
714
|
-
}
|
715
|
-
}));
|
716
|
-
expansionPanel.collapsed.pipe(operators.takeUntil(_this._stopWatchingPanels)).subscribe(( /**
|
717
|
-
* @return {?}
|
718
|
-
*/function () {
|
719
|
-
/** @type {?} */
|
720
|
-
var indexOfPanel = _this._lastOpenedPanels.indexOf(expansionPanel);
|
721
|
-
if (indexOfPanel !== -1) {
|
722
|
-
_this._lastOpenedPanels.splice(indexOfPanel, 1);
|
723
|
-
}
|
724
|
-
}));
|
725
|
-
}));
|
726
|
-
};
|
727
|
-
/**
|
728
|
-
* @private
|
729
|
-
* @param {?} expansionPanel
|
730
|
-
* @return {?}
|
731
|
-
*/
|
732
|
-
TdExpansionPanelGroupComponent.prototype._closeAllExcept = function (expansionPanel) {
|
733
|
-
this.expansionPanels.forEach(( /**
|
734
|
-
* @param {?} panel
|
735
|
-
* @return {?}
|
736
|
-
*/function (panel) {
|
737
|
-
if (panel !== expansionPanel) {
|
738
|
-
panel.close();
|
739
|
-
}
|
740
|
-
}));
|
741
|
-
};
|
742
|
-
return TdExpansionPanelGroupComponent;
|
743
|
-
}());
|
744
|
-
TdExpansionPanelGroupComponent.decorators = [
|
745
|
-
{ type: core.Component, args: [{
|
746
|
-
selector: 'td-expansion-panel-group',
|
747
|
-
template: "<ng-content></ng-content>\n",
|
748
|
-
styles: [""]
|
749
|
-
}] }
|
750
|
-
];
|
751
|
-
/** @nocollapse */
|
752
|
-
TdExpansionPanelGroupComponent.ctorParameters = function () { return [
|
753
|
-
{ type: core.Renderer2 },
|
754
|
-
{ type: core.ElementRef }
|
755
|
-
]; };
|
756
|
-
TdExpansionPanelGroupComponent.propDecorators = {
|
757
|
-
multi: [{ type: core.Input, args: ['multi',] }],
|
758
|
-
expansionPanels: [{ type: core.ContentChildren, args: [TdExpansionPanelComponent, { descendants: true },] }]
|
759
|
-
};
|
760
|
-
if (false) {
|
761
|
-
/**
|
762
|
-
* @type {?}
|
763
|
-
* @private
|
764
|
-
*/
|
765
|
-
TdExpansionPanelGroupComponent.prototype._multi;
|
766
|
-
/**
|
767
|
-
* @type {?}
|
768
|
-
* @private
|
769
|
-
*/
|
770
|
-
TdExpansionPanelGroupComponent.prototype._lastOpenedPanels;
|
771
|
-
/**
|
772
|
-
* @type {?}
|
773
|
-
* @private
|
774
|
-
*/
|
775
|
-
TdExpansionPanelGroupComponent.prototype._destroyed;
|
776
|
-
/**
|
777
|
-
* @type {?}
|
778
|
-
* @private
|
779
|
-
*/
|
780
|
-
TdExpansionPanelGroupComponent.prototype._stopWatchingPanels;
|
781
|
-
/** @type {?} */
|
782
|
-
TdExpansionPanelGroupComponent.prototype.expansionPanels;
|
783
|
-
/**
|
784
|
-
* @type {?}
|
785
|
-
* @private
|
786
|
-
*/
|
787
|
-
TdExpansionPanelGroupComponent.prototype._renderer;
|
788
|
-
/**
|
789
|
-
* @type {?}
|
790
|
-
* @private
|
791
|
-
*/
|
792
|
-
TdExpansionPanelGroupComponent.prototype._elementRef;
|
793
|
-
}
|
794
|
-
|
795
|
-
/**
|
796
|
-
* @fileoverview added by tsickle
|
797
|
-
* Generated from: expansion-panel.module.ts
|
798
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
799
|
-
*/
|
800
|
-
/** @type {?} */
|
801
|
-
var TD_EXPANSION_PANEL = [
|
802
|
-
TdExpansionPanelGroupComponent,
|
803
|
-
TdExpansionPanelComponent,
|
804
|
-
TdExpansionPanelHeaderDirective,
|
805
|
-
TdExpansionPanelLabelDirective,
|
806
|
-
TdExpansionPanelSublabelDirective,
|
807
|
-
TdExpansionPanelSummaryComponent,
|
808
|
-
];
|
809
|
-
var CovalentExpansionPanelModule = /** @class */ (function () {
|
810
|
-
function CovalentExpansionPanelModule() {
|
811
|
-
}
|
812
|
-
return CovalentExpansionPanelModule;
|
813
|
-
}());
|
814
|
-
CovalentExpansionPanelModule.decorators = [
|
815
|
-
{ type: core.NgModule, args: [{
|
816
|
-
imports: [common$1.CommonModule, core$1.MatRippleModule, icon.MatIconModule, portal.PortalModule],
|
817
|
-
declarations: [TD_EXPANSION_PANEL],
|
818
|
-
exports: [TD_EXPANSION_PANEL],
|
819
|
-
},] }
|
820
|
-
];
|
821
|
-
|
822
|
-
/**
|
823
|
-
* @fileoverview added by tsickle
|
824
|
-
* Generated from: public-api.ts
|
825
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
826
|
-
*/
|
827
|
-
|
828
|
-
/**
|
829
|
-
* @fileoverview added by tsickle
|
830
|
-
* Generated from: index.ts
|
831
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
832
|
-
*/
|
833
|
-
|
834
|
-
/**
|
835
|
-
* @fileoverview added by tsickle
|
836
|
-
* Generated from: covalent-core-expansion-panel.ts
|
837
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
838
|
-
*/
|
839
|
-
|
840
|
-
exports.CovalentExpansionPanelModule = CovalentExpansionPanelModule;
|
841
|
-
exports.TdExpansionPanelBase = TdExpansionPanelBase;
|
842
|
-
exports.TdExpansionPanelComponent = TdExpansionPanelComponent;
|
843
|
-
exports.TdExpansionPanelGroupComponent = TdExpansionPanelGroupComponent;
|
844
|
-
exports.TdExpansionPanelHeaderDirective = TdExpansionPanelHeaderDirective;
|
845
|
-
exports.TdExpansionPanelLabelDirective = TdExpansionPanelLabelDirective;
|
846
|
-
exports.TdExpansionPanelSublabelDirective = TdExpansionPanelSublabelDirective;
|
847
|
-
exports.TdExpansionPanelSummaryComponent = TdExpansionPanelSummaryComponent;
|
848
|
-
exports._TdExpansionPanelMixinBase = _TdExpansionPanelMixinBase;
|
849
|
-
|
850
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
851
|
-
|
852
|
-
})));
|
853
|
-
//# sourceMappingURL=covalent-core-expansion-panel.umd.js.map
|