@covalent/core 3.1.2 → 4.0.0-beta.2
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/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +3 -0
- package/breadcrumbs/breadcrumb/breadcrumb.component.scss +3 -0
- package/breadcrumbs/breadcrumbs.component.d.ts +3 -0
- package/breadcrumbs/breadcrumbs.component.scss +1 -0
- package/breadcrumbs/breadcrumbs.module.d.ts +8 -0
- package/breadcrumbs/covalent-core-breadcrumbs.d.ts +1 -0
- package/breadcrumbs/package.json +6 -7
- package/common/_common-theme.scss +2 -0
- package/common/common.module.d.ts +15 -0
- package/common/covalent-core-common.d.ts +1 -2
- package/common/directives/fullscreen/fullscreen.directive.d.ts +3 -0
- package/common/forms/auto-trim/auto-trim.directive.d.ts +3 -0
- package/common/material-icons.css +31 -18
- package/common/material-icons.css.map +1 -1
- package/common/package.json +6 -7
- package/common/pipes/bytes/bytes.pipe.d.ts +3 -0
- package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +3 -0
- package/common/pipes/digits/digits.pipe.d.ts +3 -0
- package/common/pipes/time-ago/time-ago.pipe.d.ts +3 -0
- package/common/pipes/time-difference/time-difference.pipe.d.ts +3 -0
- package/common/pipes/time-until/time-until.pipe.d.ts +3 -0
- package/common/pipes/truncate/truncate.pipe.d.ts +3 -0
- package/common/platform.css +11828 -10433
- package/common/platform.css.map +1 -1
- package/common/services/icon.service.d.ts +3 -0
- package/common/services/router-path.service.d.ts +3 -0
- package/common/styles/_layout.scss +12 -10
- package/common/styles/_palette-dark.scss +2 -2
- package/common/styles/_palette-light.scss +6 -6
- package/common/styles/_rtl.scss +3 -0
- package/common/styles/_variables.scss +5 -5
- package/common/styles/colors/_colors-dark.scss +327 -0
- package/common/styles/colors/_colors-light.scss +748 -0
- package/common/styles/core/_button.scss +2 -1
- package/common/styles/core/_card.scss +27 -7
- package/common/styles/core/_content.scss +2 -1
- package/common/styles/core/_divider.scss +1 -0
- package/common/styles/core/_icons.scss +2 -0
- package/common/styles/core/_sidenav.scss +2 -0
- package/common/styles/core/_structure.scss +6 -7
- package/common/styles/core/_toolbar.scss +7 -0
- package/common/styles/core/_whiteframe.scss +2 -2
- package/common/styles/font/_font.scss +10 -4
- package/common/styles/utilities/_general.scss +14 -0
- package/common/styles/utilities/_text.scss +21 -0
- package/covalent-core.d.ts +1 -0
- package/dialogs/_dialog-theme.scss +1 -0
- package/dialogs/alert-dialog/alert-dialog.component.d.ts +3 -0
- package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +3 -0
- package/dialogs/covalent-core-dialogs.d.ts +1 -1
- package/dialogs/dialog.component.d.ts +9 -0
- package/dialogs/dialog.component.scss +5 -0
- package/dialogs/dialogs.module.d.ts +17 -0
- package/dialogs/package.json +6 -7
- package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +3 -0
- package/dialogs/prompt-dialog/prompt-dialog.component.scss +1 -0
- package/dialogs/public-api.d.ts +1 -0
- package/dialogs/services/dialog.service.d.ts +3 -0
- package/dialogs/window-dialog/window-dialog.component.d.ts +3 -0
- package/dynamic-menu/covalent-core-dynamic-menu.d.ts +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +3 -0
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +1 -0
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +3 -0
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +3 -1
- package/dynamic-menu/dynamic-menu.component.d.ts +3 -0
- package/dynamic-menu/dynamic-menu.module.d.ts +13 -0
- package/dynamic-menu/package.json +6 -7
- package/dynamic-menu/public_api.d.ts +1 -0
- package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +108 -0
- package/esm2020/breadcrumbs/breadcrumbs.component.mjs +139 -0
- package/esm2020/breadcrumbs/breadcrumbs.module.mjs +21 -0
- package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +5 -0
- package/esm2020/breadcrumbs/index.mjs +2 -0
- package/esm2020/breadcrumbs/public-api.mjs +4 -0
- package/esm2020/common/animations/bounce/bounce.animation.mjs +70 -0
- package/esm2020/common/animations/collapse/collapse.animation.mjs +51 -0
- package/esm2020/common/animations/common/interfaces.mjs +2 -0
- package/esm2020/common/animations/fade/fadeInOut.animation.mjs +37 -0
- package/esm2020/common/animations/flash/flash.animation.mjs +34 -0
- package/esm2020/common/animations/headshake/headshake.animation.mjs +35 -0
- package/esm2020/common/animations/jello/jello.animation.mjs +38 -0
- package/esm2020/common/animations/pulse/pulse.animation.mjs +32 -0
- package/esm2020/common/animations/rotate/rotate.animation.mjs +25 -0
- package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +39 -0
- package/esm2020/common/behaviors/disable-ripple.mixin.mjs +24 -0
- package/esm2020/common/behaviors/disabled.mixin.mjs +24 -0
- package/esm2020/common/common.module.mjs +64 -0
- package/esm2020/common/covalent-core-common.mjs +5 -0
- package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +85 -0
- package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +36 -0
- package/esm2020/common/forms/validators/validators.mjs +29 -0
- package/{esm2015/common/functions/clipboard.js → esm2020/common/functions/clipboard.mjs} +3 -10
- package/esm2020/common/functions/convert.mjs +84 -0
- package/esm2020/common/functions/download.mjs +75 -0
- package/esm2020/common/functions/file.mjs +16 -0
- package/esm2020/common/index.mjs +2 -0
- package/esm2020/common/pipes/bytes/bytes.pipe.mjs +32 -0
- package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +32 -0
- package/esm2020/common/pipes/digits/digits.pipe.mjs +39 -0
- package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +72 -0
- package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +51 -0
- package/esm2020/common/pipes/time-until/time-until.pipe.mjs +72 -0
- package/esm2020/common/pipes/truncate/truncate.pipe.mjs +27 -0
- package/esm2020/common/public-api.mjs +39 -0
- package/esm2020/common/services/icon.service.mjs +1089 -0
- package/esm2020/common/services/router-path.service.mjs +29 -0
- package/esm2020/covalent-core.mjs +5 -0
- package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +54 -0
- package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +68 -0
- package/esm2020/dialogs/covalent-core-dialogs.mjs +5 -0
- package/esm2020/dialogs/dialog.component.mjs +97 -0
- package/esm2020/dialogs/dialogs.module.mjs +86 -0
- package/esm2020/dialogs/index.mjs +2 -0
- package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +104 -0
- package/esm2020/dialogs/public-api.mjs +9 -0
- package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +199 -0
- package/esm2020/dialogs/services/dialog.service.mjs +168 -0
- package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +69 -0
- package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +5 -0
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +147 -0
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +113 -0
- package/esm2020/dynamic-menu/dynamic-menu.component.mjs +111 -0
- package/esm2020/dynamic-menu/dynamic-menu.module.mjs +32 -0
- package/esm2020/dynamic-menu/index.mjs +2 -0
- package/esm2020/dynamic-menu/public_api.mjs +5 -0
- package/esm2020/file/covalent-core-file.mjs +5 -0
- package/esm2020/file/directives/file-drop.directive.mjs +148 -0
- package/esm2020/file/directives/file-select.directive.mjs +76 -0
- package/esm2020/file/file-input/file-input.component.mjs +137 -0
- package/esm2020/file/file-upload/file-upload.component.mjs +210 -0
- package/esm2020/file/file.module.mjs +43 -0
- package/esm2020/file/index.mjs +2 -0
- package/esm2020/file/public-api.mjs +7 -0
- package/esm2020/file/services/file.service.mjs +62 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/json-formatter/covalent-core-json-formatter.mjs +5 -0
- package/esm2020/json-formatter/index.mjs +2 -0
- package/esm2020/json-formatter/json-formatter.component.mjs +302 -0
- package/esm2020/json-formatter/json-formatter.module.mjs +21 -0
- package/esm2020/json-formatter/public-api.mjs +3 -0
- package/esm2020/layout/covalent-core-layout.mjs +5 -0
- package/esm2020/layout/index.mjs +2 -0
- package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +87 -0
- package/esm2020/layout/layout-footer/layout-footer.component.mjs +38 -0
- package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +122 -0
- package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +90 -0
- package/esm2020/layout/layout-nav/layout-nav.component.mjs +112 -0
- package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +215 -0
- package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +90 -0
- package/esm2020/layout/layout-toggle.class.mjs +95 -0
- package/esm2020/layout/layout.component.mjs +113 -0
- package/esm2020/layout/layout.directives.mjs +87 -0
- package/esm2020/layout/layout.module.mjs +118 -0
- package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +306 -0
- package/esm2020/layout/public-api.mjs +13 -0
- package/esm2020/menu/covalent-core-menu.mjs +5 -0
- package/esm2020/menu/index.mjs +2 -0
- package/esm2020/menu/menu.component.mjs +23 -0
- package/esm2020/menu/menu.module.mjs +22 -0
- package/esm2020/menu/public-api.mjs +3 -0
- package/esm2020/message/covalent-core-message.mjs +5 -0
- package/esm2020/message/index.mjs +2 -0
- package/esm2020/message/message.component.mjs +261 -0
- package/esm2020/message/message.module.mjs +21 -0
- package/esm2020/message/public-api.mjs +3 -0
- package/esm2020/search/covalent-core-search.mjs +5 -0
- package/esm2020/search/index.mjs +2 -0
- package/esm2020/search/public-api.mjs +4 -0
- package/esm2020/search/search-box/search-box.component.mjs +220 -0
- package/esm2020/search/search-input/search-input.component.mjs +240 -0
- package/esm2020/search/search.module.mjs +24 -0
- package/esm2020/side-sheet/covalent-core-side-sheet.mjs +5 -0
- package/esm2020/side-sheet/index.mjs +2 -0
- package/esm2020/side-sheet/public-api.mjs +6 -0
- package/esm2020/side-sheet/side-sheet-container.mjs +242 -0
- package/esm2020/side-sheet/side-sheet-ref.mjs +21 -0
- package/esm2020/side-sheet/side-sheet.animation.mjs +12 -0
- package/esm2020/side-sheet/side-sheet.config.mjs +4 -0
- package/esm2020/side-sheet/side-sheet.content-directives.mjs +178 -0
- package/esm2020/side-sheet/side-sheet.mjs +208 -0
- package/esm2020/side-sheet/side-sheet.module.mjs +46 -0
- package/esm2020/user-profile/covalent-core-user-profile.mjs +5 -0
- package/esm2020/user-profile/index.mjs +2 -0
- package/esm2020/user-profile/public_api.mjs +4 -0
- package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +75 -0
- package/esm2020/user-profile/user-profile.component.mjs +41 -0
- package/esm2020/user-profile/user-profile.module.mjs +26 -0
- package/fesm2015/covalent-core-breadcrumbs.mjs +287 -0
- package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -0
- package/fesm2015/covalent-core-common.mjs +2251 -0
- package/fesm2015/covalent-core-common.mjs.map +1 -0
- package/fesm2015/covalent-core-dialogs.mjs +872 -0
- package/fesm2015/covalent-core-dialogs.mjs.map +1 -0
- package/fesm2015/covalent-core-dynamic-menu.mjs +480 -0
- package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -0
- package/fesm2015/covalent-core-file.mjs +698 -0
- package/fesm2015/covalent-core-file.mjs.map +1 -0
- package/fesm2015/covalent-core-json-formatter.mjs +353 -0
- package/fesm2015/covalent-core-json-formatter.mjs.map +1 -0
- package/fesm2015/covalent-core-layout.mjs +1577 -0
- package/fesm2015/covalent-core-layout.mjs.map +1 -0
- package/fesm2015/covalent-core-menu.mjs +55 -0
- package/fesm2015/covalent-core-menu.mjs.map +1 -0
- package/fesm2015/covalent-core-message.mjs +309 -0
- package/fesm2015/covalent-core-message.mjs.map +1 -0
- package/fesm2015/covalent-core-search.mjs +508 -0
- package/fesm2015/covalent-core-search.mjs.map +1 -0
- package/fesm2015/covalent-core-side-sheet.mjs +733 -0
- package/fesm2015/covalent-core-side-sheet.mjs.map +1 -0
- package/fesm2015/covalent-core-user-profile.mjs +162 -0
- package/fesm2015/covalent-core-user-profile.mjs.map +1 -0
- package/{chips/covalent-core-chips.d.ts → fesm2015/covalent-core.mjs} +1 -1
- package/fesm2015/covalent-core.mjs.map +1 -0
- package/fesm2020/covalent-core-breadcrumbs.mjs +268 -0
- package/{fesm2015/covalent-core-breadcrumbs.js.map → fesm2020/covalent-core-breadcrumbs.mjs.map} +1 -1
- package/{fesm2015/covalent-core-common.js → fesm2020/covalent-core-common.mjs} +213 -768
- package/fesm2020/covalent-core-common.mjs.map +1 -0
- package/fesm2020/covalent-core-dialogs.mjs +812 -0
- package/fesm2020/covalent-core-dialogs.mjs.map +1 -0
- package/fesm2020/covalent-core-dynamic-menu.mjs +393 -0
- package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -0
- package/fesm2020/covalent-core-file.mjs +651 -0
- package/fesm2020/covalent-core-file.mjs.map +1 -0
- package/fesm2020/covalent-core-json-formatter.mjs +326 -0
- package/fesm2020/covalent-core-json-formatter.mjs.map +1 -0
- package/fesm2020/covalent-core-layout.mjs +1414 -0
- package/fesm2020/covalent-core-layout.mjs.map +1 -0
- package/fesm2020/covalent-core-menu.mjs +49 -0
- package/fesm2020/covalent-core-menu.mjs.map +1 -0
- package/fesm2020/covalent-core-message.mjs +286 -0
- package/fesm2020/covalent-core-message.mjs.map +1 -0
- package/fesm2020/covalent-core-search.mjs +473 -0
- package/fesm2020/covalent-core-search.mjs.map +1 -0
- package/{fesm2015/covalent-core-side-sheet.js → fesm2020/covalent-core-side-sheet.mjs} +202 -646
- package/fesm2020/covalent-core-side-sheet.mjs.map +1 -0
- package/fesm2020/covalent-core-user-profile.mjs +141 -0
- package/fesm2020/covalent-core-user-profile.mjs.map +1 -0
- package/{data-table/covalent-core-data-table.d.ts → fesm2020/covalent-core.mjs} +1 -1
- package/fesm2020/covalent-core.mjs.map +1 -0
- package/file/_file-theme.scss +1 -0
- package/file/covalent-core-file.d.ts +1 -0
- package/file/directives/file-drop.directive.d.ts +3 -0
- package/file/directives/file-select.directive.d.ts +3 -0
- package/file/file-input/file-input.component.d.ts +5 -0
- package/file/file-input/file-input.component.scss +2 -0
- package/file/file-upload/file-upload.component.d.ts +3 -0
- package/file/file-upload/file-upload.component.scss +4 -0
- package/file/file.module.d.ts +13 -0
- package/file/package.json +6 -7
- package/file/services/file.service.d.ts +3 -0
- package/json-formatter/_json-formatter-theme.scss +10 -0
- package/json-formatter/covalent-core-json-formatter.d.ts +1 -0
- package/json-formatter/json-formatter.component.d.ts +3 -0
- package/json-formatter/json-formatter.component.scss +13 -0
- package/json-formatter/json-formatter.module.d.ts +8 -0
- package/json-formatter/package.json +6 -7
- package/layout/_layout-theme.scss +12 -0
- package/layout/covalent-core-layout.d.ts +1 -0
- package/layout/layout-card-over/layout-card-over.component.d.ts +3 -0
- package/layout/layout-card-over/layout-card-over.component.scss +3 -0
- package/layout/layout-footer/layout-footer.component.d.ts +3 -0
- package/layout/layout-manage-list/layout-manage-list.component.d.ts +3 -0
- package/layout/layout-manage-list/layout-manage-list.component.scss +9 -5
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +7 -0
- package/layout/layout-nav/layout-nav.component.d.ts +3 -0
- package/layout/layout-nav/layout-nav.component.scss +4 -0
- package/layout/layout-nav-list/layout-nav-list.component.d.ts +3 -0
- package/layout/layout-nav-list/layout-nav-list.component.scss +9 -4
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +7 -0
- package/layout/layout-toggle.class.d.ts +3 -0
- package/layout/layout.component.d.ts +3 -0
- package/layout/layout.component.scss +0 -4
- package/layout/layout.directives.d.ts +7 -0
- package/layout/layout.module.d.ts +23 -0
- package/layout/navigation-drawer/navigation-drawer.component.d.ts +7 -0
- package/layout/navigation-drawer/navigation-drawer.component.scss +8 -0
- package/layout/package.json +6 -7
- package/menu/covalent-core-menu.d.ts +1 -0
- package/menu/menu.component.d.ts +3 -0
- package/menu/menu.component.scss +9 -1
- package/menu/menu.module.d.ts +8 -0
- package/menu/package.json +6 -7
- package/message/_message-theme.scss +3 -0
- package/message/covalent-core-message.d.ts +1 -0
- package/message/message.component.d.ts +5 -0
- package/message/message.component.scss +3 -0
- package/message/message.module.d.ts +7 -0
- package/message/package.json +6 -7
- package/package.json +126 -15
- package/search/covalent-core-search.d.ts +1 -0
- package/search/package.json +6 -7
- package/search/search-box/search-box.component.d.ts +3 -0
- package/search/search-box/search-box.component.scss +5 -0
- package/search/search-input/search-input.component.d.ts +3 -0
- package/search/search-input/search-input.component.scss +12 -0
- package/search/search.module.d.ts +11 -0
- package/side-sheet/covalent-core-side-sheet.d.ts +1 -2
- package/side-sheet/package.json +6 -7
- package/side-sheet/side-sheet-container.d.ts +5 -0
- package/side-sheet/side-sheet.content-directives.d.ts +11 -0
- package/side-sheet/side-sheet.d.ts +5 -0
- package/side-sheet/side-sheet.module.d.ts +9 -0
- package/side-sheet/side-sheet.scss +1 -2
- package/theming/_all-theme.scss +0 -14
- package/theming/prebuilt/blue-grey-deep-orange.css +1714 -1581
- package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
- package/theming/prebuilt/blue-grey-deep-orange.scss +15 -8
- package/theming/prebuilt/blue-orange.css +1713 -1580
- package/theming/prebuilt/blue-orange.css.map +1 -1
- package/theming/prebuilt/blue-orange.scss +15 -8
- package/theming/prebuilt/indigo-pink.css +1714 -1581
- package/theming/prebuilt/indigo-pink.css.map +1 -1
- package/theming/prebuilt/indigo-pink.scss +15 -8
- package/theming/prebuilt/orange-light-blue.css +1713 -1580
- package/theming/prebuilt/orange-light-blue.css.map +1 -1
- package/theming/prebuilt/orange-light-blue.scss +15 -8
- package/theming/prebuilt/teal-orange.css +1713 -1580
- package/theming/prebuilt/teal-orange.css.map +1 -1
- package/theming/prebuilt/teal-orange.scss +15 -8
- package/typography/_all-typography.scss +0 -10
- package/user-profile/covalent-core-user-profile.d.ts +1 -0
- package/user-profile/package.json +6 -7
- package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +3 -0
- package/user-profile/user-profile-menu/user-profile-menu.component.scss +3 -0
- package/user-profile/user-profile.component.d.ts +3 -0
- package/user-profile/user-profile.module.d.ts +12 -0
- package/breadcrumbs/covalent-core-breadcrumbs.metadata.json +0 -1
- package/bundles/covalent-core-breadcrumbs.umd.js +0 -490
- package/bundles/covalent-core-breadcrumbs.umd.js.map +0 -1
- package/bundles/covalent-core-breadcrumbs.umd.min.js +0 -2
- package/bundles/covalent-core-breadcrumbs.umd.min.js.map +0 -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-common.umd.js +0 -3188
- package/bundles/covalent-core-common.umd.js.map +0 -1
- package/bundles/covalent-core-common.umd.min.js +0 -17
- package/bundles/covalent-core-common.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-dialogs.umd.js +0 -1318
- package/bundles/covalent-core-dialogs.umd.js.map +0 -1
- package/bundles/covalent-core-dialogs.umd.min.js +0 -2
- package/bundles/covalent-core-dialogs.umd.min.js.map +0 -1
- package/bundles/covalent-core-dynamic-menu.umd.js +0 -215
- package/bundles/covalent-core-dynamic-menu.umd.js.map +0 -1
- package/bundles/covalent-core-dynamic-menu.umd.min.js +0 -2
- package/bundles/covalent-core-dynamic-menu.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-file.umd.js +0 -1211
- package/bundles/covalent-core-file.umd.js.map +0 -1
- package/bundles/covalent-core-file.umd.min.js +0 -17
- package/bundles/covalent-core-file.umd.min.js.map +0 -1
- package/bundles/covalent-core-json-formatter.umd.js +0 -408
- package/bundles/covalent-core-json-formatter.umd.js.map +0 -1
- package/bundles/covalent-core-json-formatter.umd.min.js +0 -2
- package/bundles/covalent-core-json-formatter.umd.min.js.map +0 -1
- package/bundles/covalent-core-layout.umd.js +0 -2084
- package/bundles/covalent-core-layout.umd.js.map +0 -1
- package/bundles/covalent-core-layout.umd.min.js +0 -17
- package/bundles/covalent-core-layout.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-menu.umd.js +0 -69
- package/bundles/covalent-core-menu.umd.js.map +0 -1
- package/bundles/covalent-core-menu.umd.min.js +0 -2
- package/bundles/covalent-core-menu.umd.min.js.map +0 -1
- package/bundles/covalent-core-message.umd.js +0 -375
- package/bundles/covalent-core-message.umd.js.map +0 -1
- package/bundles/covalent-core-message.umd.min.js +0 -2
- package/bundles/covalent-core-message.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-search.umd.js +0 -877
- package/bundles/covalent-core-search.umd.js.map +0 -1
- package/bundles/covalent-core-search.umd.min.js +0 -16
- package/bundles/covalent-core-search.umd.min.js.map +0 -1
- package/bundles/covalent-core-side-sheet.umd.js +0 -1458
- package/bundles/covalent-core-side-sheet.umd.js.map +0 -1
- package/bundles/covalent-core-side-sheet.umd.min.js +0 -16
- package/bundles/covalent-core-side-sheet.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-user-profile.umd.js +0 -124
- package/bundles/covalent-core-user-profile.umd.js.map +0 -1
- package/bundles/covalent-core-user-profile.umd.min.js +0 -2
- package/bundles/covalent-core-user-profile.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/bundles/covalent-core.umd.js +0 -9
- package/bundles/covalent-core.umd.js.map +0 -1
- package/bundles/covalent-core.umd.min.js +0 -2
- package/bundles/covalent-core.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.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/common/covalent-core-common.metadata.json +0 -1
- package/covalent-core.metadata.json +0 -1
- package/data-table/README.md +0 -134
- package/data-table/_data-table-theme.scss +0 -115
- 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/dialogs/covalent-core-dialogs.metadata.json +0 -1
- package/dynamic-menu/covalent-core-dynamic-menu.metadata.json +0 -1
- package/esm2015/breadcrumbs/breadcrumb/breadcrumb.component.js +0 -171
- package/esm2015/breadcrumbs/breadcrumbs.component.js +0 -241
- package/esm2015/breadcrumbs/breadcrumbs.module.js +0 -20
- package/esm2015/breadcrumbs/covalent-core-breadcrumbs.js +0 -10
- package/esm2015/breadcrumbs/index.js +0 -7
- package/esm2015/breadcrumbs/public-api.js +0 -9
- 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/common/animations/bounce/bounce.animation.js +0 -76
- package/esm2015/common/animations/collapse/collapse.animation.js +0 -67
- package/esm2015/common/animations/common/interfaces.js +0 -18
- package/esm2015/common/animations/fade/fadeInOut.animation.js +0 -53
- package/esm2015/common/animations/flash/flash.animation.js +0 -40
- package/esm2015/common/animations/headshake/headshake.animation.js +0 -41
- package/esm2015/common/animations/jello/jello.animation.js +0 -44
- package/esm2015/common/animations/pulse/pulse.animation.js +0 -38
- package/esm2015/common/animations/rotate/rotate.animation.js +0 -41
- package/esm2015/common/behaviors/control-value-accesor.mixin.js +0 -107
- package/esm2015/common/behaviors/disable-ripple.mixin.js +0 -63
- package/esm2015/common/behaviors/disabled.mixin.js +0 -63
- package/esm2015/common/common.module.js +0 -54
- package/esm2015/common/covalent-core-common.js +0 -12
- package/esm2015/common/directives/fullscreen/fullscreen.directive.js +0 -180
- package/esm2015/common/forms/auto-trim/auto-trim.directive.js +0 -46
- package/esm2015/common/forms/validators/validators.js +0 -58
- package/esm2015/common/functions/convert.js +0 -103
- package/esm2015/common/functions/download.js +0 -88
- package/esm2015/common/functions/file.js +0 -29
- package/esm2015/common/index.js +0 -7
- package/esm2015/common/pipes/bytes/bytes.pipe.js +0 -41
- package/esm2015/common/pipes/decimal-bytes/decimal-bytes.pipe.js +0 -41
- package/esm2015/common/pipes/digits/digits.pipe.js +0 -65
- package/esm2015/common/pipes/time-ago/time-ago.pipe.js +0 -81
- package/esm2015/common/pipes/time-difference/time-difference.pipe.js +0 -66
- package/esm2015/common/pipes/time-until/time-until.pipe.js +0 -81
- package/esm2015/common/pipes/truncate/truncate.pipe.js +0 -34
- package/esm2015/common/public-api.js +0 -44
- package/esm2015/common/services/icon.service.js +0 -1109
- package/esm2015/common/services/router-path.service.js +0 -60
- package/esm2015/covalent-core.js +0 -10
- 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/dialogs/alert-dialog/alert-dialog.component.js +0 -47
- package/esm2015/dialogs/confirm-dialog/confirm-dialog.component.js +0 -59
- package/esm2015/dialogs/covalent-core-dialogs.js +0 -11
- package/esm2015/dialogs/dialog.component.js +0 -58
- package/esm2015/dialogs/dialogs.module.js +0 -57
- package/esm2015/dialogs/index.js +0 -7
- package/esm2015/dialogs/prompt-dialog/prompt-dialog.component.js +0 -83
- package/esm2015/dialogs/public-api.js +0 -13
- package/esm2015/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +0 -325
- package/esm2015/dialogs/services/dialog.service.js +0 -316
- package/esm2015/dialogs/window-dialog/window-dialog.component.js +0 -56
- package/esm2015/dynamic-menu/covalent-core-dynamic-menu.js +0 -11
- package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +0 -40
- package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +0 -35
- package/esm2015/dynamic-menu/dynamic-menu.component.js +0 -89
- package/esm2015/dynamic-menu/dynamic-menu.module.js +0 -26
- package/esm2015/dynamic-menu/index.js +0 -7
- package/esm2015/dynamic-menu/public_api.js +0 -9
- 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/file/covalent-core-file.js +0 -10
- package/esm2015/file/directives/file-drop.directive.js +0 -191
- package/esm2015/file/directives/file-select.directive.js +0 -98
- package/esm2015/file/file-input/file-input.component.js +0 -186
- package/esm2015/file/file-upload/file-upload.component.js +0 -237
- package/esm2015/file/file.module.js +0 -35
- package/esm2015/file/index.js +0 -7
- package/esm2015/file/public-api.js +0 -12
- package/esm2015/file/services/file.service.js +0 -109
- package/esm2015/index.js +0 -7
- package/esm2015/json-formatter/covalent-core-json-formatter.js +0 -10
- package/esm2015/json-formatter/index.js +0 -7
- package/esm2015/json-formatter/json-formatter.component.js +0 -338
- package/esm2015/json-formatter/json-formatter.module.js +0 -20
- package/esm2015/json-formatter/public-api.js +0 -8
- package/esm2015/layout/covalent-core-layout.js +0 -10
- package/esm2015/layout/index.js +0 -7
- package/esm2015/layout/layout-card-over/layout-card-over.component.js +0 -71
- package/esm2015/layout/layout-footer/layout-footer.component.js +0 -71
- package/esm2015/layout/layout-manage-list/layout-manage-list.component.js +0 -145
- package/esm2015/layout/layout-manage-list/layout-manage-list.directives.js +0 -132
- package/esm2015/layout/layout-nav/layout-nav.component.js +0 -100
- package/esm2015/layout/layout-nav-list/layout-nav-list.component.js +0 -220
- package/esm2015/layout/layout-nav-list/layout-nav-list.directives.js +0 -132
- package/esm2015/layout/layout-toggle.class.js +0 -188
- package/esm2015/layout/layout.component.js +0 -145
- package/esm2015/layout/layout.directives.js +0 -129
- package/esm2015/layout/layout.module.js +0 -64
- package/esm2015/layout/navigation-drawer/navigation-drawer.component.js +0 -280
- package/esm2015/layout/public-api.js +0 -18
- 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/menu/covalent-core-menu.js +0 -10
- package/esm2015/menu/index.js +0 -7
- package/esm2015/menu/menu.component.js +0 -16
- package/esm2015/menu/menu.module.js +0 -22
- package/esm2015/menu/public-api.js +0 -8
- package/esm2015/message/covalent-core-message.js +0 -10
- package/esm2015/message/index.js +0 -7
- package/esm2015/message/message.component.js +0 -307
- package/esm2015/message/message.module.js +0 -21
- package/esm2015/message/public-api.js +0 -8
- 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/search/covalent-core-search.js +0 -10
- package/esm2015/search/index.js +0 -7
- package/esm2015/search/public-api.js +0 -9
- package/esm2015/search/search-box/search-box.component.js +0 -270
- package/esm2015/search/search-input/search-input.component.js +0 -260
- package/esm2015/search/search.module.js +0 -23
- package/esm2015/side-sheet/covalent-core-side-sheet.js +0 -12
- package/esm2015/side-sheet/index.js +0 -7
- package/esm2015/side-sheet/public-api.js +0 -11
- package/esm2015/side-sheet/side-sheet-container.js +0 -402
- package/esm2015/side-sheet/side-sheet-ref.js +0 -50
- package/esm2015/side-sheet/side-sheet.animation.js +0 -20
- package/esm2015/side-sheet/side-sheet.config.js +0 -12
- package/esm2015/side-sheet/side-sheet.content-directives.js +0 -255
- package/esm2015/side-sheet/side-sheet.js +0 -360
- package/esm2015/side-sheet/side-sheet.module.js +0 -36
- 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/user-profile/covalent-core-user-profile.js +0 -10
- package/esm2015/user-profile/index.js +0 -7
- package/esm2015/user-profile/public_api.js +0 -9
- package/esm2015/user-profile/user-profile-menu/user-profile-menu.component.js +0 -35
- package/esm2015/user-profile/user-profile.component.js +0 -26
- package/esm2015/user-profile/user-profile.module.js +0 -33
- 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-breadcrumbs.js +0 -448
- package/fesm2015/covalent-core-chips.js +0 -1151
- package/fesm2015/covalent-core-chips.js.map +0 -1
- package/fesm2015/covalent-core-common.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-dialogs.js +0 -1001
- package/fesm2015/covalent-core-dialogs.js.map +0 -1
- package/fesm2015/covalent-core-dynamic-menu.js +0 -204
- package/fesm2015/covalent-core-dynamic-menu.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-file.js +0 -855
- package/fesm2015/covalent-core-file.js.map +0 -1
- package/fesm2015/covalent-core-json-formatter.js +0 -377
- package/fesm2015/covalent-core-json-formatter.js.map +0 -1
- package/fesm2015/covalent-core-layout.js +0 -1663
- package/fesm2015/covalent-core-layout.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-menu.js +0 -57
- package/fesm2015/covalent-core-menu.js.map +0 -1
- package/fesm2015/covalent-core-message.js +0 -347
- package/fesm2015/covalent-core-message.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-search.js +0 -564
- package/fesm2015/covalent-core-search.js.map +0 -1
- package/fesm2015/covalent-core-side-sheet.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-user-profile.js +0 -111
- package/fesm2015/covalent-core-user-profile.js.map +0 -1
- package/fesm2015/covalent-core-virtual-scroll.js +0 -453
- package/fesm2015/covalent-core-virtual-scroll.js.map +0 -1
- package/fesm2015/covalent-core.js +0 -12
- package/fesm2015/covalent-core.js.map +0 -1
- package/file/covalent-core-file.metadata.json +0 -1
- package/json-formatter/covalent-core-json-formatter.metadata.json +0 -1
- package/layout/covalent-core-layout.metadata.json +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/menu/covalent-core-menu.metadata.json +0 -1
- package/message/covalent-core-message.metadata.json +0 -1
- 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/schematics/collection.json +0 -11
- package/schematics/components.js +0 -124
- package/schematics/components.js.map +0 -1
- package/schematics/migration.json +0 -10
- package/schematics/ng-add/index.js +0 -58
- package/schematics/ng-add/index.js.map +0 -1
- package/schematics/ng-add/schema.js +0 -3
- package/schematics/ng-add/schema.js.map +0 -1
- package/schematics/ng-add/schema.json +0 -81
- package/schematics/ng-update/index.js +0 -52
- package/schematics/ng-update/index.js.map +0 -1
- package/schematics/ng-update/target-version.js +0 -8
- package/schematics/ng-update/target-version.js.map +0 -1
- package/schematics/version-names.js +0 -6
- package/schematics/version-names.js.map +0 -1
- package/search/covalent-core-search.metadata.json +0 -1
- package/side-sheet/covalent-core-side-sheet.metadata.json +0 -1
- 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/user-profile/covalent-core-user-profile.metadata.json +0 -1
- 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,1507 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/common'), require('@angular/material/input'), require('@angular/material/icon'), require('@angular/material/autocomplete'), require('@angular/material/chips'), require('@angular/cdk/portal'), require('@angular/cdk/coercion'), require('@angular/cdk/keycodes'), require('@angular/material/core'), require('rxjs'), require('rxjs/operators'), require('@covalent/core/common')) :
|
3
|
-
typeof define === 'function' && define.amd ? define('@covalent/core/chips', ['exports', '@angular/core', '@angular/forms', '@angular/common', '@angular/material/input', '@angular/material/icon', '@angular/material/autocomplete', '@angular/material/chips', '@angular/cdk/portal', '@angular/cdk/coercion', '@angular/cdk/keycodes', '@angular/material/core', 'rxjs', 'rxjs/operators', '@covalent/core/common'], factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core.chips = {}), global.ng.core, global.ng.forms, global.ng.common, global.ng.material.input, global.ng.material.icon, global.ng.material.autocomplete, global.ng.material.chips, global.ng.cdk.portal, global.ng.cdk.coercion, global.ng.cdk.keycodes, global.ng.material.core, global.rxjs, global.rxjs.operators, global.covalent.core.common));
|
5
|
-
}(this, (function (exports, core, forms, common$1, input, icon, autocomplete, chips, portal, coercion, keycodes, core$1, rxjs, operators, common) { '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 TdChipDirective = /** @class */ (function (_super) {
|
309
|
-
__extends(TdChipDirective, _super);
|
310
|
-
/**
|
311
|
-
* @param {?} templateRef
|
312
|
-
* @param {?} viewContainerRef
|
313
|
-
*/
|
314
|
-
function TdChipDirective(templateRef, viewContainerRef) {
|
315
|
-
return _super.call(this, templateRef, viewContainerRef) || this;
|
316
|
-
}
|
317
|
-
return TdChipDirective;
|
318
|
-
}(portal.TemplatePortalDirective));
|
319
|
-
TdChipDirective.decorators = [
|
320
|
-
{ type: core.Directive, args: [{
|
321
|
-
selector: '[td-chip]ng-template',
|
322
|
-
},] }
|
323
|
-
];
|
324
|
-
/** @nocollapse */
|
325
|
-
TdChipDirective.ctorParameters = function () { return [
|
326
|
-
{ type: core.TemplateRef },
|
327
|
-
{ type: core.ViewContainerRef }
|
328
|
-
]; };
|
329
|
-
var TdAutocompleteOptionDirective = /** @class */ (function (_super) {
|
330
|
-
__extends(TdAutocompleteOptionDirective, _super);
|
331
|
-
/**
|
332
|
-
* @param {?} templateRef
|
333
|
-
* @param {?} viewContainerRef
|
334
|
-
*/
|
335
|
-
function TdAutocompleteOptionDirective(templateRef, viewContainerRef) {
|
336
|
-
return _super.call(this, templateRef, viewContainerRef) || this;
|
337
|
-
}
|
338
|
-
return TdAutocompleteOptionDirective;
|
339
|
-
}(portal.TemplatePortalDirective));
|
340
|
-
TdAutocompleteOptionDirective.decorators = [
|
341
|
-
{ type: core.Directive, args: [{
|
342
|
-
selector: '[td-autocomplete-option]ng-template',
|
343
|
-
},] }
|
344
|
-
];
|
345
|
-
/** @nocollapse */
|
346
|
-
TdAutocompleteOptionDirective.ctorParameters = function () { return [
|
347
|
-
{ type: core.TemplateRef },
|
348
|
-
{ type: core.ViewContainerRef }
|
349
|
-
]; };
|
350
|
-
var TdChipsBase = /** @class */ (function () {
|
351
|
-
/**
|
352
|
-
* @param {?} _changeDetectorRef
|
353
|
-
*/
|
354
|
-
function TdChipsBase(_changeDetectorRef) {
|
355
|
-
this._changeDetectorRef = _changeDetectorRef;
|
356
|
-
}
|
357
|
-
return TdChipsBase;
|
358
|
-
}());
|
359
|
-
if (false) {
|
360
|
-
/** @type {?} */
|
361
|
-
TdChipsBase.prototype._changeDetectorRef;
|
362
|
-
}
|
363
|
-
/* tslint:disable-next-line */
|
364
|
-
/** @type {?} */
|
365
|
-
var _TdChipsMixinBase = common.mixinControlValueAccessor(common.mixinDisabled(TdChipsBase), []);
|
366
|
-
var TdChipsComponent = /** @class */ (function (_super) {
|
367
|
-
__extends(TdChipsComponent, _super);
|
368
|
-
/**
|
369
|
-
* @param {?} _elementRef
|
370
|
-
* @param {?} _renderer
|
371
|
-
* @param {?} _document
|
372
|
-
* @param {?} _changeDetectorRef
|
373
|
-
*/
|
374
|
-
function TdChipsComponent(_elementRef, _renderer, _document, _changeDetectorRef) {
|
375
|
-
var _this = _super.call(this, _changeDetectorRef) || this;
|
376
|
-
_this._elementRef = _elementRef;
|
377
|
-
_this._renderer = _renderer;
|
378
|
-
_this._document = _document;
|
379
|
-
_this._outsideClickSubs = rxjs.Subscription.EMPTY;
|
380
|
-
_this._inputValueChangesSubs = rxjs.Subscription.EMPTY;
|
381
|
-
_this._isMousedown = false;
|
382
|
-
_this._length = 0;
|
383
|
-
_this._stacked = false;
|
384
|
-
_this._requireMatch = false;
|
385
|
-
_this._color = 'primary';
|
386
|
-
_this._inputPosition = 'after';
|
387
|
-
_this._chipAddition = true;
|
388
|
-
_this._chipRemoval = true;
|
389
|
-
_this._focused = false;
|
390
|
-
_this._required = false;
|
391
|
-
_this._tabIndex = 0;
|
392
|
-
_this._touchendDebounce = 100;
|
393
|
-
_this._internalClick = false;
|
394
|
-
_this._internalActivateOption = false;
|
395
|
-
/**
|
396
|
-
* FormControl for the matInput element.
|
397
|
-
*/
|
398
|
-
_this.inputControl = new forms.FormControl();
|
399
|
-
/**
|
400
|
-
* debounce?: number
|
401
|
-
* Debounce timeout between keypresses. Defaults to 200.
|
402
|
-
*/
|
403
|
-
_this.debounce = 200;
|
404
|
-
/**
|
405
|
-
* add?: function
|
406
|
-
* Method to be executed when a chip is added.
|
407
|
-
* Sends chip value as event.
|
408
|
-
*/
|
409
|
-
_this.add = new core.EventEmitter();
|
410
|
-
/**
|
411
|
-
* remove?: function
|
412
|
-
* Method to be executed when a chip is removed.
|
413
|
-
* Sends chip value as event.
|
414
|
-
*/
|
415
|
-
_this.remove = new core.EventEmitter();
|
416
|
-
/**
|
417
|
-
* inputChange?: function
|
418
|
-
* Method to be executed when the value in the autocomplete input changes.
|
419
|
-
* Sends string value as event.
|
420
|
-
*/
|
421
|
-
_this.inputChange = new core.EventEmitter();
|
422
|
-
/**
|
423
|
-
* chipFocus?: function
|
424
|
-
* Method to be executed when a chip is focused.
|
425
|
-
* Sends chip value as event.
|
426
|
-
*/
|
427
|
-
_this.chipFocus = new core.EventEmitter();
|
428
|
-
/**
|
429
|
-
* blur?: function
|
430
|
-
* Method to be executed when a chip is blurred.
|
431
|
-
* Sends chip value as event.
|
432
|
-
*/
|
433
|
-
_this.chipBlur = new core.EventEmitter();
|
434
|
-
/**
|
435
|
-
* compareWith? function
|
436
|
-
* Function used to check whether a chip value already exists.
|
437
|
-
* Defaults to strict equality comparison ===
|
438
|
-
*/
|
439
|
-
_this.compareWith = ( /**
|
440
|
-
* @param {?} o1
|
441
|
-
* @param {?} o2
|
442
|
-
* @return {?}
|
443
|
-
*/function (o1, o2) {
|
444
|
-
return o1 === o2;
|
445
|
-
});
|
446
|
-
_this._renderer.addClass(_this._elementRef.nativeElement, 'mat-' + _this._color);
|
447
|
-
return _this;
|
448
|
-
}
|
449
|
-
Object.defineProperty(TdChipsComponent.prototype, "focused", {
|
450
|
-
/**
|
451
|
-
* Flag that is true when autocomplete is focused.
|
452
|
-
* @return {?}
|
453
|
-
*/
|
454
|
-
get: function () {
|
455
|
-
return this._focused;
|
456
|
-
},
|
457
|
-
enumerable: false,
|
458
|
-
configurable: true
|
459
|
-
});
|
460
|
-
Object.defineProperty(TdChipsComponent.prototype, "items", {
|
461
|
-
/**
|
462
|
-
* @return {?}
|
463
|
-
*/
|
464
|
-
get: function () {
|
465
|
-
return this._items;
|
466
|
-
},
|
467
|
-
/**
|
468
|
-
* items?: any[]
|
469
|
-
* Renders the `mat-autocomplete` with the provided list to display as options.
|
470
|
-
* @param {?} items
|
471
|
-
* @return {?}
|
472
|
-
*/
|
473
|
-
set: function (items) {
|
474
|
-
this._items = items;
|
475
|
-
this._setFirstOptionActive();
|
476
|
-
this._changeDetectorRef.markForCheck();
|
477
|
-
},
|
478
|
-
enumerable: false,
|
479
|
-
configurable: true
|
480
|
-
});
|
481
|
-
Object.defineProperty(TdChipsComponent.prototype, "stacked", {
|
482
|
-
/**
|
483
|
-
* @return {?}
|
484
|
-
*/
|
485
|
-
get: function () {
|
486
|
-
return this._stacked;
|
487
|
-
},
|
488
|
-
/**
|
489
|
-
* stacked?: boolean
|
490
|
-
* Set stacked or horizontal chips depending on value.
|
491
|
-
* Defaults to false.
|
492
|
-
* @param {?} stacked
|
493
|
-
* @return {?}
|
494
|
-
*/
|
495
|
-
set: function (stacked) {
|
496
|
-
this._stacked = coercion.coerceBooleanProperty(stacked);
|
497
|
-
},
|
498
|
-
enumerable: false,
|
499
|
-
configurable: true
|
500
|
-
});
|
501
|
-
Object.defineProperty(TdChipsComponent.prototype, "inputPosition", {
|
502
|
-
/**
|
503
|
-
* @return {?}
|
504
|
-
*/
|
505
|
-
get: function () {
|
506
|
-
return this._inputPosition;
|
507
|
-
},
|
508
|
-
/**
|
509
|
-
* inputPosition?: 'before' | 'after'
|
510
|
-
* Set input position before or after the chips.
|
511
|
-
* Defaults to 'after'.
|
512
|
-
* @param {?} inputPosition
|
513
|
-
* @return {?}
|
514
|
-
*/
|
515
|
-
set: function (inputPosition) {
|
516
|
-
this._inputPosition = inputPosition;
|
517
|
-
},
|
518
|
-
enumerable: false,
|
519
|
-
configurable: true
|
520
|
-
});
|
521
|
-
Object.defineProperty(TdChipsComponent.prototype, "requireMatch", {
|
522
|
-
/**
|
523
|
-
* @return {?}
|
524
|
-
*/
|
525
|
-
get: function () {
|
526
|
-
return this._requireMatch;
|
527
|
-
},
|
528
|
-
/**
|
529
|
-
* requireMatch?: boolean
|
530
|
-
* Blocks custom inputs and only allows selections from the autocomplete list.
|
531
|
-
* @param {?} requireMatch
|
532
|
-
* @return {?}
|
533
|
-
*/
|
534
|
-
set: function (requireMatch) {
|
535
|
-
this._requireMatch = coercion.coerceBooleanProperty(requireMatch);
|
536
|
-
},
|
537
|
-
enumerable: false,
|
538
|
-
configurable: true
|
539
|
-
});
|
540
|
-
Object.defineProperty(TdChipsComponent.prototype, "required", {
|
541
|
-
/**
|
542
|
-
* @return {?}
|
543
|
-
*/
|
544
|
-
get: function () {
|
545
|
-
return this._required;
|
546
|
-
},
|
547
|
-
/**
|
548
|
-
* required?: boolean
|
549
|
-
* Value is set to true if at least one chip is needed
|
550
|
-
* Defaults to false
|
551
|
-
* @param {?} required
|
552
|
-
* @return {?}
|
553
|
-
*/
|
554
|
-
set: function (required) {
|
555
|
-
this._required = coercion.coerceBooleanProperty(required);
|
556
|
-
},
|
557
|
-
enumerable: false,
|
558
|
-
configurable: true
|
559
|
-
});
|
560
|
-
Object.defineProperty(TdChipsComponent.prototype, "chipAddition", {
|
561
|
-
/**
|
562
|
-
* @return {?}
|
563
|
-
*/
|
564
|
-
get: function () {
|
565
|
-
return this._chipAddition;
|
566
|
-
},
|
567
|
-
/**
|
568
|
-
* chipAddition?: boolean
|
569
|
-
* Disables the ability to add chips. When setting disabled as true, this will be overriden.
|
570
|
-
* Defaults to true.
|
571
|
-
* @param {?} chipAddition
|
572
|
-
* @return {?}
|
573
|
-
*/
|
574
|
-
set: function (chipAddition) {
|
575
|
-
this._chipAddition = chipAddition;
|
576
|
-
this._toggleInput();
|
577
|
-
},
|
578
|
-
enumerable: false,
|
579
|
-
configurable: true
|
580
|
-
});
|
581
|
-
Object.defineProperty(TdChipsComponent.prototype, "canAddChip", {
|
582
|
-
/**
|
583
|
-
* Checks if not in disabled state and if chipAddition is set to 'true'
|
584
|
-
* States if a chip can be added and if the input is available
|
585
|
-
* @return {?}
|
586
|
-
*/
|
587
|
-
get: function () {
|
588
|
-
return this.chipAddition && !this.disabled;
|
589
|
-
},
|
590
|
-
enumerable: false,
|
591
|
-
configurable: true
|
592
|
-
});
|
593
|
-
Object.defineProperty(TdChipsComponent.prototype, "chipRemoval", {
|
594
|
-
/**
|
595
|
-
* @return {?}
|
596
|
-
*/
|
597
|
-
get: function () {
|
598
|
-
return this._chipRemoval;
|
599
|
-
},
|
600
|
-
/**
|
601
|
-
* chipRemoval?: boolean
|
602
|
-
* Disables the ability to remove chips. If it doesn't exist chip remmoval defaults to true.
|
603
|
-
* When setting disabled as true, this will be overriden to false.
|
604
|
-
* @param {?} chipRemoval
|
605
|
-
* @return {?}
|
606
|
-
*/
|
607
|
-
set: function (chipRemoval) {
|
608
|
-
this._chipRemoval = chipRemoval;
|
609
|
-
},
|
610
|
-
enumerable: false,
|
611
|
-
configurable: true
|
612
|
-
});
|
613
|
-
Object.defineProperty(TdChipsComponent.prototype, "canRemoveChip", {
|
614
|
-
/**
|
615
|
-
* Checks if not in disabled state and if chipRemoval is set to 'true'
|
616
|
-
* States if a chip can be removed
|
617
|
-
* @return {?}
|
618
|
-
*/
|
619
|
-
get: function () {
|
620
|
-
return this.chipRemoval && !this.disabled;
|
621
|
-
},
|
622
|
-
enumerable: false,
|
623
|
-
configurable: true
|
624
|
-
});
|
625
|
-
Object.defineProperty(TdChipsComponent.prototype, "displayPlaceHolder", {
|
626
|
-
/**
|
627
|
-
* returns the display placeholder
|
628
|
-
* @return {?}
|
629
|
-
*/
|
630
|
-
get: function () {
|
631
|
-
if (!this.canAddChip) {
|
632
|
-
return '';
|
633
|
-
}
|
634
|
-
return this._required ? this.placeholder + " *" : this.placeholder;
|
635
|
-
},
|
636
|
-
enumerable: false,
|
637
|
-
configurable: true
|
638
|
-
});
|
639
|
-
Object.defineProperty(TdChipsComponent.prototype, "color", {
|
640
|
-
/**
|
641
|
-
* @return {?}
|
642
|
-
*/
|
643
|
-
get: function () {
|
644
|
-
return this._color;
|
645
|
-
},
|
646
|
-
/**
|
647
|
-
* color?: 'primary' | 'accent' | 'warn'
|
648
|
-
* Sets the color for the input and focus/selected state of the chips.
|
649
|
-
* Defaults to 'primary'
|
650
|
-
* @param {?} color
|
651
|
-
* @return {?}
|
652
|
-
*/
|
653
|
-
set: function (color) {
|
654
|
-
if (color) {
|
655
|
-
this._renderer.removeClass(this._elementRef.nativeElement, 'mat-' + this._color);
|
656
|
-
this._color = color;
|
657
|
-
this._renderer.addClass(this._elementRef.nativeElement, 'mat-' + this._color);
|
658
|
-
}
|
659
|
-
},
|
660
|
-
enumerable: false,
|
661
|
-
configurable: true
|
662
|
-
});
|
663
|
-
Object.defineProperty(TdChipsComponent.prototype, "tabIndex", {
|
664
|
-
/**
|
665
|
-
* Hostbinding to set the a11y of the TdChipsComponent depending on its state
|
666
|
-
* @return {?}
|
667
|
-
*/
|
668
|
-
get: function () {
|
669
|
-
return this.disabled ? -1 : this._tabIndex;
|
670
|
-
},
|
671
|
-
enumerable: false,
|
672
|
-
configurable: true
|
673
|
-
});
|
674
|
-
/**
|
675
|
-
* Listens to host focus event to act on it
|
676
|
-
* @param {?} event
|
677
|
-
* @return {?}
|
678
|
-
*/
|
679
|
-
TdChipsComponent.prototype.focusListener = function (event) {
|
680
|
-
// should only focus if its not via mousedown to prevent clashing with autocomplete
|
681
|
-
if (!this._isMousedown) {
|
682
|
-
this.focus();
|
683
|
-
}
|
684
|
-
event.preventDefault();
|
685
|
-
};
|
686
|
-
/**
|
687
|
-
* Listens to host mousedown event to act on it
|
688
|
-
* @param {?} event
|
689
|
-
* @return {?}
|
690
|
-
*/
|
691
|
-
TdChipsComponent.prototype.mousedownListener = function (event) {
|
692
|
-
var _this = this;
|
693
|
-
// sets a flag to know if there was a mousedown and then it returns it back to false
|
694
|
-
this._isMousedown = true;
|
695
|
-
rxjs.timer()
|
696
|
-
.toPromise()
|
697
|
-
.then(( /**
|
698
|
-
* @return {?}
|
699
|
-
*/function () {
|
700
|
-
_this._isMousedown = false;
|
701
|
-
}));
|
702
|
-
};
|
703
|
-
/**
|
704
|
-
* If clicking on :host or `td-chips-wrapper`, then we stop the click propagation so the autocomplete
|
705
|
-
* doesnt close automatically.
|
706
|
-
* @param {?} event
|
707
|
-
* @return {?}
|
708
|
-
*/
|
709
|
-
TdChipsComponent.prototype.clickListener = function (event) {
|
710
|
-
/** @type {?} */
|
711
|
-
var clickTarget = ( /** @type {?} */(event.target));
|
712
|
-
if (clickTarget === this._elementRef.nativeElement || clickTarget.className.indexOf('td-chips-wrapper') > -1) {
|
713
|
-
this.focus();
|
714
|
-
event.preventDefault();
|
715
|
-
event.stopPropagation();
|
716
|
-
}
|
717
|
-
};
|
718
|
-
/**
|
719
|
-
* Listens to host keydown event to act on it depending on the keypress
|
720
|
-
* @param {?} event
|
721
|
-
* @return {?}
|
722
|
-
*/
|
723
|
-
TdChipsComponent.prototype.keydownListener = function (event) {
|
724
|
-
var _this = this;
|
725
|
-
switch (event.keyCode) {
|
726
|
-
case keycodes.TAB:
|
727
|
-
// if tabing out, then unfocus the component
|
728
|
-
rxjs.timer()
|
729
|
-
.toPromise()
|
730
|
-
.then(( /**
|
731
|
-
* @return {?}
|
732
|
-
*/function () {
|
733
|
-
_this.removeFocusedState();
|
734
|
-
}));
|
735
|
-
break;
|
736
|
-
case keycodes.ESCAPE:
|
737
|
-
if (this._inputChild.focused) {
|
738
|
-
this._nativeInput.nativeElement.blur();
|
739
|
-
this.removeFocusedState();
|
740
|
-
this._closeAutocomplete();
|
741
|
-
}
|
742
|
-
else {
|
743
|
-
this.focus();
|
744
|
-
}
|
745
|
-
break;
|
746
|
-
default:
|
747
|
-
// default
|
748
|
-
}
|
749
|
-
};
|
750
|
-
/**
|
751
|
-
* @return {?}
|
752
|
-
*/
|
753
|
-
TdChipsComponent.prototype.ngOnInit = function () {
|
754
|
-
var _this = this;
|
755
|
-
this._inputValueChangesSubs = this.inputControl.valueChanges
|
756
|
-
.pipe(operators.debounceTime(this.debounce))
|
757
|
-
.subscribe(( /**
|
758
|
-
* @param {?} value
|
759
|
-
* @return {?}
|
760
|
-
*/function (value) {
|
761
|
-
_this.inputChange.emit(value ? value : '');
|
762
|
-
}));
|
763
|
-
this._changeDetectorRef.markForCheck();
|
764
|
-
};
|
765
|
-
/**
|
766
|
-
* @return {?}
|
767
|
-
*/
|
768
|
-
TdChipsComponent.prototype.ngAfterViewInit = function () {
|
769
|
-
this._watchOutsideClick();
|
770
|
-
this._changeDetectorRef.markForCheck();
|
771
|
-
};
|
772
|
-
/**
|
773
|
-
* @return {?}
|
774
|
-
*/
|
775
|
-
TdChipsComponent.prototype.ngDoCheck = function () {
|
776
|
-
// Throw onChange event only if array changes size.
|
777
|
-
if (this.value && this.value.length !== this._length) {
|
778
|
-
this._length = this.value.length;
|
779
|
-
this.onChange(this.value);
|
780
|
-
}
|
781
|
-
};
|
782
|
-
/**
|
783
|
-
* @return {?}
|
784
|
-
*/
|
785
|
-
TdChipsComponent.prototype.ngOnDestroy = function () {
|
786
|
-
this._outsideClickSubs.unsubscribe();
|
787
|
-
this._inputValueChangesSubs.unsubscribe();
|
788
|
-
};
|
789
|
-
/**
|
790
|
-
* @return {?}
|
791
|
-
*/
|
792
|
-
TdChipsComponent.prototype._setInternalClick = function () {
|
793
|
-
this._internalClick = true;
|
794
|
-
};
|
795
|
-
/**
|
796
|
-
* Method executed when the disabled value changes
|
797
|
-
* @param {?} v
|
798
|
-
* @return {?}
|
799
|
-
*/
|
800
|
-
TdChipsComponent.prototype.onDisabledChange = function (v) {
|
801
|
-
this._toggleInput();
|
802
|
-
};
|
803
|
-
/**
|
804
|
-
* Method that is executed when trying to create a new chip from the autocomplete.
|
805
|
-
* It check if [requireMatch] is enabled, and tries to add the first active option
|
806
|
-
* else if just adds the value thats on the input
|
807
|
-
* returns 'true' if successful, 'false' if it fails.
|
808
|
-
* @return {?}
|
809
|
-
*/
|
810
|
-
TdChipsComponent.prototype._handleAddChip = function () {
|
811
|
-
/** @type {?} */
|
812
|
-
var value;
|
813
|
-
if (this.requireMatch) {
|
814
|
-
/** @type {?} */
|
815
|
-
var selectedOptions = this._options.toArray().filter(( /**
|
816
|
-
* @param {?} option
|
817
|
-
* @return {?}
|
818
|
-
*/function (option) {
|
819
|
-
return option.active;
|
820
|
-
}));
|
821
|
-
if (selectedOptions.length > 0) {
|
822
|
-
value = selectedOptions[0].value;
|
823
|
-
selectedOptions[0].setInactiveStyles();
|
824
|
-
}
|
825
|
-
if (!value) {
|
826
|
-
return false;
|
827
|
-
}
|
828
|
-
}
|
829
|
-
else {
|
830
|
-
// if there is a selection, then use that
|
831
|
-
// else use the input value as chip
|
832
|
-
if (this._autocompleteTrigger.activeOption) {
|
833
|
-
value = this._autocompleteTrigger.activeOption.value;
|
834
|
-
this._autocompleteTrigger.activeOption.setInactiveStyles();
|
835
|
-
}
|
836
|
-
else {
|
837
|
-
value = this._inputChild.value;
|
838
|
-
if (value.trim() === '') {
|
839
|
-
return false;
|
840
|
-
}
|
841
|
-
}
|
842
|
-
}
|
843
|
-
return this.addChip(value);
|
844
|
-
};
|
845
|
-
/**
|
846
|
-
* Method thats exectuted when trying to add a value as chip
|
847
|
-
* returns 'true' if successful, 'false' if it fails.
|
848
|
-
* @param {?} value
|
849
|
-
* @return {?}
|
850
|
-
*/
|
851
|
-
TdChipsComponent.prototype.addChip = function (value) {
|
852
|
-
var _this = this;
|
853
|
-
/**
|
854
|
-
* add a debounce ms delay when reopening the autocomplete to give it time
|
855
|
-
* to rerender the next list and at the correct spot
|
856
|
-
*/
|
857
|
-
this._closeAutocomplete();
|
858
|
-
rxjs.timer(this.debounce)
|
859
|
-
.toPromise()
|
860
|
-
.then(( /**
|
861
|
-
* @return {?}
|
862
|
-
*/function () {
|
863
|
-
_this.setFocusedState();
|
864
|
-
_this._setFirstOptionActive();
|
865
|
-
_this._openAutocomplete();
|
866
|
-
}));
|
867
|
-
this.inputControl.setValue('');
|
868
|
-
// check if value is already part of the model
|
869
|
-
if (this.value.findIndex(( /**
|
870
|
-
* @param {?} item
|
871
|
-
* @return {?}
|
872
|
-
*/function (item) { return _this.compareWith(item, value); })) > -1) {
|
873
|
-
return false;
|
874
|
-
}
|
875
|
-
this.value.push(value);
|
876
|
-
this.add.emit(value);
|
877
|
-
this.onChange(this.value);
|
878
|
-
this._changeDetectorRef.markForCheck();
|
879
|
-
return true;
|
880
|
-
};
|
881
|
-
/**
|
882
|
-
* Method that is executed when trying to remove a chip.
|
883
|
-
* returns 'true' if successful, 'false' if it fails.
|
884
|
-
* @param {?} index
|
885
|
-
* @return {?}
|
886
|
-
*/
|
887
|
-
TdChipsComponent.prototype.removeChip = function (index) {
|
888
|
-
/** @type {?} */
|
889
|
-
var removedValues = this.value.splice(index, 1);
|
890
|
-
if (removedValues.length === 0) {
|
891
|
-
return false;
|
892
|
-
}
|
893
|
-
/**
|
894
|
-
* Checks if deleting last single chip, to focus input afterwards
|
895
|
-
* Else check if its not the last chip of the list to focus the next one.
|
896
|
-
*/
|
897
|
-
if (index === this._totalChips - 1 && index === 0) {
|
898
|
-
this._inputChild.focus();
|
899
|
-
}
|
900
|
-
else if (index < this._totalChips - 1) {
|
901
|
-
this._focusChip(index + 1);
|
902
|
-
}
|
903
|
-
else if (index > 0) {
|
904
|
-
this._focusChip(index - 1);
|
905
|
-
}
|
906
|
-
this.remove.emit(removedValues[0]);
|
907
|
-
this.onChange(this.value);
|
908
|
-
this.inputControl.setValue('');
|
909
|
-
this._changeDetectorRef.markForCheck();
|
910
|
-
return true;
|
911
|
-
};
|
912
|
-
/**
|
913
|
-
* Sets blur of chip and sends out event
|
914
|
-
* @param {?} event
|
915
|
-
* @param {?} value
|
916
|
-
* @return {?}
|
917
|
-
*/
|
918
|
-
TdChipsComponent.prototype._handleChipBlur = function (event, value) {
|
919
|
-
this.chipBlur.emit(value);
|
920
|
-
};
|
921
|
-
/**
|
922
|
-
* Sets focus of chip and sends out event
|
923
|
-
* @param {?} event
|
924
|
-
* @param {?} value
|
925
|
-
* @return {?}
|
926
|
-
*/
|
927
|
-
TdChipsComponent.prototype._handleChipFocus = function (event, value) {
|
928
|
-
this.setFocusedState();
|
929
|
-
this.chipFocus.emit(value);
|
930
|
-
};
|
931
|
-
/**
|
932
|
-
* @return {?}
|
933
|
-
*/
|
934
|
-
TdChipsComponent.prototype._handleFocus = function () {
|
935
|
-
this.setFocusedState();
|
936
|
-
this._setFirstOptionActive();
|
937
|
-
return true;
|
938
|
-
};
|
939
|
-
/**
|
940
|
-
* Sets focus state of the component
|
941
|
-
* @return {?}
|
942
|
-
*/
|
943
|
-
TdChipsComponent.prototype.setFocusedState = function () {
|
944
|
-
if (!this.disabled) {
|
945
|
-
this._focused = true;
|
946
|
-
this._tabIndex = -1;
|
947
|
-
this._changeDetectorRef.markForCheck();
|
948
|
-
}
|
949
|
-
};
|
950
|
-
/**
|
951
|
-
* Removes focus state of the component
|
952
|
-
* @return {?}
|
953
|
-
*/
|
954
|
-
TdChipsComponent.prototype.removeFocusedState = function () {
|
955
|
-
this._focused = false;
|
956
|
-
this._tabIndex = 0;
|
957
|
-
this._changeDetectorRef.markForCheck();
|
958
|
-
};
|
959
|
-
/**
|
960
|
-
* Programmatically focus the input or first chip. Since its the component entry point
|
961
|
-
* depending if a user can add or remove chips
|
962
|
-
* @return {?}
|
963
|
-
*/
|
964
|
-
TdChipsComponent.prototype.focus = function () {
|
965
|
-
if (this.canAddChip) {
|
966
|
-
this._inputChild.focus();
|
967
|
-
}
|
968
|
-
else if (!this.disabled) {
|
969
|
-
this._focusFirstChip();
|
970
|
-
}
|
971
|
-
};
|
972
|
-
/**
|
973
|
-
* Passes relevant input key presses.
|
974
|
-
* @param {?} event
|
975
|
-
* @return {?}
|
976
|
-
*/
|
977
|
-
TdChipsComponent.prototype._inputKeydown = function (event) {
|
978
|
-
switch (event.keyCode) {
|
979
|
-
case keycodes.UP_ARROW:
|
980
|
-
/**
|
981
|
-
* Since the first item is highlighted on [requireMatch], we need to inactivate it
|
982
|
-
* when pressing the up key
|
983
|
-
*/
|
984
|
-
if (this.requireMatch) {
|
985
|
-
/** @type {?} */
|
986
|
-
var length = this._options.length;
|
987
|
-
if (length > 1 && this._options.toArray()[0].active && this._internalActivateOption) {
|
988
|
-
this._options.toArray()[0].setInactiveStyles();
|
989
|
-
this._internalActivateOption = false;
|
990
|
-
// prevent default window scrolling
|
991
|
-
event.preventDefault();
|
992
|
-
}
|
993
|
-
}
|
994
|
-
break;
|
995
|
-
case keycodes.LEFT_ARROW:
|
996
|
-
case keycodes.DELETE:
|
997
|
-
case keycodes.BACKSPACE:
|
998
|
-
this._closeAutocomplete();
|
999
|
-
/** Check to see if input is empty when pressing left arrow to move to the last chip */
|
1000
|
-
if (!this._inputChild.value) {
|
1001
|
-
this._focusLastChip();
|
1002
|
-
// prevent default window scrolling
|
1003
|
-
event.preventDefault();
|
1004
|
-
}
|
1005
|
-
break;
|
1006
|
-
case keycodes.RIGHT_ARROW:
|
1007
|
-
this._closeAutocomplete();
|
1008
|
-
/** Check to see if input is empty when pressing right arrow to move to the first chip */
|
1009
|
-
if (!this._inputChild.value) {
|
1010
|
-
this._focusFirstChip();
|
1011
|
-
// prevent default window scrolling
|
1012
|
-
event.preventDefault();
|
1013
|
-
}
|
1014
|
-
break;
|
1015
|
-
default:
|
1016
|
-
// default
|
1017
|
-
}
|
1018
|
-
};
|
1019
|
-
/**
|
1020
|
-
* Passes relevant chip key presses.
|
1021
|
-
* @param {?} event
|
1022
|
-
* @param {?} index
|
1023
|
-
* @return {?}
|
1024
|
-
*/
|
1025
|
-
TdChipsComponent.prototype._chipKeydown = function (event, index) {
|
1026
|
-
switch (event.keyCode) {
|
1027
|
-
case keycodes.DELETE:
|
1028
|
-
case keycodes.BACKSPACE:
|
1029
|
-
/** Check to see if we can delete a chip */
|
1030
|
-
if (this.canRemoveChip) {
|
1031
|
-
this.removeChip(index);
|
1032
|
-
}
|
1033
|
-
break;
|
1034
|
-
case keycodes.UP_ARROW:
|
1035
|
-
case keycodes.LEFT_ARROW:
|
1036
|
-
/**
|
1037
|
-
* Check to see if left/down arrow was pressed while focusing the first chip to focus input next
|
1038
|
-
* Also check if input should be focused
|
1039
|
-
*/
|
1040
|
-
if (index === 0) {
|
1041
|
-
// only try to target input if pressing left
|
1042
|
-
if (this.canAddChip && event.keyCode === keycodes.LEFT_ARROW) {
|
1043
|
-
this._inputChild.focus();
|
1044
|
-
}
|
1045
|
-
else {
|
1046
|
-
this._focusLastChip();
|
1047
|
-
}
|
1048
|
-
}
|
1049
|
-
else if (index > 0) {
|
1050
|
-
this._focusChip(index - 1);
|
1051
|
-
}
|
1052
|
-
// prevent default window scrolling
|
1053
|
-
event.preventDefault();
|
1054
|
-
break;
|
1055
|
-
case keycodes.DOWN_ARROW:
|
1056
|
-
case keycodes.RIGHT_ARROW:
|
1057
|
-
/**
|
1058
|
-
* Check to see if right/up arrow was pressed while focusing the last chip to focus input next
|
1059
|
-
* Also check if input should be focused
|
1060
|
-
*/
|
1061
|
-
if (index === this._totalChips - 1) {
|
1062
|
-
// only try to target input if pressing right
|
1063
|
-
if (this.canAddChip && event.keyCode === keycodes.RIGHT_ARROW) {
|
1064
|
-
this._inputChild.focus();
|
1065
|
-
}
|
1066
|
-
else {
|
1067
|
-
this._focusFirstChip();
|
1068
|
-
}
|
1069
|
-
}
|
1070
|
-
else if (index < this._totalChips - 1) {
|
1071
|
-
this._focusChip(index + 1);
|
1072
|
-
}
|
1073
|
-
// prevent default window scrolling
|
1074
|
-
event.preventDefault();
|
1075
|
-
break;
|
1076
|
-
default:
|
1077
|
-
// default
|
1078
|
-
}
|
1079
|
-
};
|
1080
|
-
/**
|
1081
|
-
* Method to remove from display the value added from the autocomplete since it goes directly as chip.
|
1082
|
-
* @return {?}
|
1083
|
-
*/
|
1084
|
-
TdChipsComponent.prototype._removeInputDisplay = function () {
|
1085
|
-
return '';
|
1086
|
-
};
|
1087
|
-
/**
|
1088
|
-
* Method to open the autocomplete manually if its not already opened
|
1089
|
-
* @return {?}
|
1090
|
-
*/
|
1091
|
-
TdChipsComponent.prototype._openAutocomplete = function () {
|
1092
|
-
if (!this._autocompleteTrigger.panelOpen) {
|
1093
|
-
this._autocompleteTrigger.openPanel();
|
1094
|
-
this._changeDetectorRef.markForCheck();
|
1095
|
-
}
|
1096
|
-
};
|
1097
|
-
/**
|
1098
|
-
* Method to close the autocomplete manually if its not already closed
|
1099
|
-
* @return {?}
|
1100
|
-
*/
|
1101
|
-
TdChipsComponent.prototype._closeAutocomplete = function () {
|
1102
|
-
if (this._autocompleteTrigger.panelOpen) {
|
1103
|
-
this._autocompleteTrigger.closePanel();
|
1104
|
-
this._changeDetectorRef.markForCheck();
|
1105
|
-
}
|
1106
|
-
};
|
1107
|
-
Object.defineProperty(TdChipsComponent.prototype, "_totalChips", {
|
1108
|
-
/**
|
1109
|
-
* Get total of chips
|
1110
|
-
* @return {?}
|
1111
|
-
*/
|
1112
|
-
get: function () {
|
1113
|
-
/** @type {?} */
|
1114
|
-
var chips = this._chipsChildren.toArray();
|
1115
|
-
return chips.length;
|
1116
|
-
},
|
1117
|
-
enumerable: false,
|
1118
|
-
configurable: true
|
1119
|
-
});
|
1120
|
-
/**
|
1121
|
-
* Method to focus a desired chip by index
|
1122
|
-
* @private
|
1123
|
-
* @param {?} index
|
1124
|
-
* @return {?}
|
1125
|
-
*/
|
1126
|
-
TdChipsComponent.prototype._focusChip = function (index) {
|
1127
|
-
/** check to see if index exists in the array before focusing */
|
1128
|
-
if (index > -1 && this._totalChips > index) {
|
1129
|
-
this._chipsChildren.toArray()[index].focus();
|
1130
|
-
}
|
1131
|
-
};
|
1132
|
-
/**
|
1133
|
-
* Method to focus first chip
|
1134
|
-
* @private
|
1135
|
-
* @return {?}
|
1136
|
-
*/
|
1137
|
-
TdChipsComponent.prototype._focusFirstChip = function () {
|
1138
|
-
this._focusChip(0);
|
1139
|
-
};
|
1140
|
-
/**
|
1141
|
-
* Method to focus last chip
|
1142
|
-
* @private
|
1143
|
-
* @return {?}
|
1144
|
-
*/
|
1145
|
-
TdChipsComponent.prototype._focusLastChip = function () {
|
1146
|
-
this._focusChip(this._totalChips - 1);
|
1147
|
-
};
|
1148
|
-
/**
|
1149
|
-
* Method to toggle the disable state of input
|
1150
|
-
* Checks if not in disabled state and if chipAddition is set to 'true'
|
1151
|
-
* @private
|
1152
|
-
* @return {?}
|
1153
|
-
*/
|
1154
|
-
TdChipsComponent.prototype._toggleInput = function () {
|
1155
|
-
if (this.canAddChip) {
|
1156
|
-
this.inputControl.enable();
|
1157
|
-
}
|
1158
|
-
else {
|
1159
|
-
this.inputControl.disable();
|
1160
|
-
}
|
1161
|
-
this._changeDetectorRef.markForCheck();
|
1162
|
-
};
|
1163
|
-
/**
|
1164
|
-
* Sets first option as active to let the user know which one will be added when pressing enter
|
1165
|
-
* Only if [requireMatch] has been set
|
1166
|
-
* @private
|
1167
|
-
* @return {?}
|
1168
|
-
*/
|
1169
|
-
TdChipsComponent.prototype._setFirstOptionActive = function () {
|
1170
|
-
var _this = this;
|
1171
|
-
if (this.requireMatch) {
|
1172
|
-
// need to use a timer here to wait until the autocomplete has been opened (end of queue)
|
1173
|
-
rxjs.timer()
|
1174
|
-
.toPromise()
|
1175
|
-
.then(( /**
|
1176
|
-
* @return {?}
|
1177
|
-
*/function () {
|
1178
|
-
if (_this.focused && _this._options && _this._options.length > 0) {
|
1179
|
-
// clean up of previously active options
|
1180
|
-
_this._options.toArray().forEach(( /**
|
1181
|
-
* @param {?} option
|
1182
|
-
* @return {?}
|
1183
|
-
*/function (option) {
|
1184
|
-
option.setInactiveStyles();
|
1185
|
-
}));
|
1186
|
-
// set the first one as active
|
1187
|
-
_this._options.toArray()[0].setActiveStyles();
|
1188
|
-
_this._internalActivateOption = true;
|
1189
|
-
_this._changeDetectorRef.markForCheck();
|
1190
|
-
}
|
1191
|
-
}));
|
1192
|
-
}
|
1193
|
-
};
|
1194
|
-
/**
|
1195
|
-
* Watches clicks outside of the component to remove the focus
|
1196
|
-
* The autocomplete panel is considered inside the component so we
|
1197
|
-
* need to use a flag to find out when its clicked.
|
1198
|
-
* @private
|
1199
|
-
* @return {?}
|
1200
|
-
*/
|
1201
|
-
TdChipsComponent.prototype._watchOutsideClick = function () {
|
1202
|
-
var _this = this;
|
1203
|
-
if (this._document) {
|
1204
|
-
this._outsideClickSubs = rxjs.merge(rxjs.fromEvent(this._document, 'click'), rxjs.fromEvent(this._document, 'touchend'))
|
1205
|
-
.pipe(operators.debounceTime(this._touchendDebounce), operators.filter(( /**
|
1206
|
-
* @param {?} event
|
1207
|
-
* @return {?}
|
1208
|
-
*/function (event) {
|
1209
|
-
/** @type {?} */
|
1210
|
-
var clickTarget = ( /** @type {?} */(event.target));
|
1211
|
-
setTimeout(( /**
|
1212
|
-
* @return {?}
|
1213
|
-
*/function () {
|
1214
|
-
_this._internalClick = false;
|
1215
|
-
}));
|
1216
|
-
return (_this.focused &&
|
1217
|
-
clickTarget !== _this._elementRef.nativeElement &&
|
1218
|
-
!_this._elementRef.nativeElement.contains(clickTarget) &&
|
1219
|
-
!_this._internalClick);
|
1220
|
-
})))
|
1221
|
-
.subscribe(( /**
|
1222
|
-
* @return {?}
|
1223
|
-
*/function () {
|
1224
|
-
if (_this.focused) {
|
1225
|
-
_this._autocompleteTrigger.closePanel();
|
1226
|
-
_this.removeFocusedState();
|
1227
|
-
_this.onTouched();
|
1228
|
-
_this._changeDetectorRef.markForCheck();
|
1229
|
-
}
|
1230
|
-
}));
|
1231
|
-
}
|
1232
|
-
return undefined;
|
1233
|
-
};
|
1234
|
-
return TdChipsComponent;
|
1235
|
-
}(_TdChipsMixinBase));
|
1236
|
-
TdChipsComponent.decorators = [
|
1237
|
-
{ type: core.Component, args: [{
|
1238
|
-
providers: [
|
1239
|
-
{
|
1240
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
1241
|
-
useExisting: core.forwardRef(( /**
|
1242
|
-
* @return {?}
|
1243
|
-
*/function () { return TdChipsComponent; })),
|
1244
|
-
multi: true,
|
1245
|
-
},
|
1246
|
-
],
|
1247
|
-
selector: 'td-chips',
|
1248
|
-
inputs: ['disabled', 'value'],
|
1249
|
-
template: "<div\n class=\"td-chips-wrapper\"\n [class.td-chips-stacked]=\"stacked\"\n [class.td-chips-input-before-position]=\"inputPosition === 'before'\"\n>\n <ng-template let-chip let-first=\"first\" let-index=\"index\" ngFor [ngForOf]=\"value\">\n <mat-basic-chip\n [class.td-chip-disabled]=\"disabled\"\n [class.td-chip-after-pad]=\"!canRemoveChip\"\n [disableRipple]=\"true\"\n [color]=\"color\"\n (keydown)=\"_chipKeydown($event, index)\"\n (blur)=\"_handleChipBlur($event, chip)\"\n (focus)=\"_handleChipFocus($event, chip)\"\n >\n <div class=\"td-chip\" [class.td-chip-stacked]=\"stacked\">\n <span class=\"td-chip-content\">\n <span *ngIf=\"!_chipTemplate?.templateRef\">{{ chip }}</span>\n <ng-template\n *ngIf=\"_chipTemplate?.templateRef\"\n [ngTemplateOutlet]=\"_chipTemplate?.templateRef\"\n [ngTemplateOutletContext]=\"{ chip: chip }\"\n ></ng-template>\n </span>\n <mat-icon *ngIf=\"canRemoveChip\" class=\"td-chip-removal\" (click)=\"_internalClick = removeChip(index)\">\n cancel\n </mat-icon>\n </div>\n </mat-basic-chip>\n </ng-template>\n <mat-form-field\n floatLabel=\"never\"\n class=\"td-chips-form-field\"\n [style.width.px]=\"canAddChip ? null : 0\"\n [style.height.px]=\"canAddChip ? null : 0\"\n [color]=\"color\"\n >\n <input\n matInput\n #input\n [tabIndex]=\"-1\"\n [matAutocomplete]=\"autocomplete\"\n [formControl]=\"inputControl\"\n [placeholder]=\"displayPlaceHolder\"\n (keydown)=\"_inputKeydown($event)\"\n (keyup.enter)=\"_handleAddChip()\"\n (focus)=\"_handleFocus()\"\n />\n </mat-form-field>\n <mat-autocomplete\n #autocomplete=\"matAutocomplete\"\n [displayWith]=\"_removeInputDisplay\"\n (optionSelected)=\"addChip($event.option.value)\"\n >\n <ng-template let-item let-first=\"first\" ngFor [ngForOf]=\"items\">\n <mat-option (click)=\"_setInternalClick()\" [value]=\"item\">\n <span *ngIf=\"!_autocompleteOptionTemplate?.templateRef\">{{ item }}</span>\n <ng-template\n *ngIf=\"_autocompleteOptionTemplate?.templateRef\"\n [ngTemplateOutlet]=\"_autocompleteOptionTemplate?.templateRef\"\n [ngTemplateOutletContext]=\"{ option: item }\"\n ></ng-template>\n </mat-option>\n </ng-template>\n </mat-autocomplete>\n</div>\n<div *ngIf=\"chipAddition\" class=\"mat-form-field-underline\" [class.mat-disabled]=\"disabled\">\n <span class=\"mat-form-field-ripple\" [class.mat-focused]=\"focused\"></span>\n</div>\n<ng-content></ng-content>\n",
|
1250
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
1251
|
-
styles: [":host{display:block;min-height:48px;padding:0 5px}:host .td-chips-wrapper{-ms-flex-align:start;-ms-flex-direction:row;-ms-flex-wrap:wrap;align-items:flex-start;display:-ms-flexbox;display:flex;flex-direction:row;flex-wrap:wrap;min-height:42px}:host .td-chips-wrapper.td-chips-stacked .mat-basic-chip,:host .td-chips-wrapper.td-chips-stacked .td-chips-form-field{width:100%}:host .td-chips-wrapper.td-chips-input-before-position .td-chips-form-field{-ms-flex-order:-1;order:-1}:host .td-chip,:host .td-chip>.td-chip-content{-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-direction:row;justify-content:flex-start;max-width:100%;min-width:0}:host .td-chip.td-chip-stacked,:host .td-chip>.td-chip-content.td-chip-stacked{-ms-flex-pack:justify;justify-content:space-between}:host ::ng-deep .mat-form-field-wrapper{padding-bottom:2px}:host ::ng-deep .mat-basic-chip{border-radius:16px;box-sizing:border-box;cursor:default;display:inline-block;margin:8px 8px 0 0;max-width:100%;position:relative}html[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip{font-size:13px;line-height:32px;min-height:32px;padding:0 0 0 12px}html[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip .td-chip bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{-ms-flex:0 0 auto;-ms-flex-align:center;-ms-flex-order:-20;-ms-flex-pack:center;align-items:center;border-radius:50%;box-sizing:border-box;display:inline-block;flex:0 0 auto;height:32px;justify-content:center;margin:0 8px 0 -12px;order:-20;text-align:center;width:32px}html[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar] bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar] bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 12px 0 0}html[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip.td-chip-after-pad bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip.td-chip-after-pad bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip mat-icon.td-chip-removal{font-size:21px;line-height:22px;margin:0 4px}:host ::ng-deep .mat-basic-chip mat-icon.td-chip-removal:hover{cursor:pointer}:host ::ng-deep .td-chips-stacked .mat-basic-chip{margin:4px 0}:host ::ng-deep .td-chips-stacked .mat-basic-chip:first-of-type{margin:8px 0 4px}:host ::ng-deep .td-chips-stacked .mat-basic-chip:last-of-type{margin:4px 0 8px}:host .mat-form-field-underline{bottom:0;height:1px;position:relative;width:100%}:host .mat-form-field-underline.mat-disabled{background-color:rgba(0,0,0,0);background-position:0;bottom:-4px}:host .mat-form-field-underline .mat-form-field-ripple{-ms-transform:scaleX(.5);-ms-transform-origin:50%;height:2px;opacity:0;position:absolute;top:0;transform:scaleX(.5);transform-origin:50%;transition:background-color .3s cubic-bezier(.55,0,.55,.2);visibility:hidden;width:100%}:host .mat-form-field-underline .mat-form-field-ripple.mat-focused,:host.ng-invalid .mat-form-field-underline .mat-form-field-ripple{-ms-transform:scaleX(1);opacity:1;transform:scaleX(1);transition:transform .15s linear,background-color .3s cubic-bezier(.55,0,.55,.2);visibility:visible}:host ::ng-deep mat-form-field .mat-form-field-underline{display:none}"]
|
1252
|
-
}] }
|
1253
|
-
];
|
1254
|
-
/** @nocollapse */
|
1255
|
-
TdChipsComponent.ctorParameters = function () { return [
|
1256
|
-
{ type: core.ElementRef },
|
1257
|
-
{ type: core.Renderer2 },
|
1258
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [common$1.DOCUMENT,] }] },
|
1259
|
-
{ type: core.ChangeDetectorRef }
|
1260
|
-
]; };
|
1261
|
-
TdChipsComponent.propDecorators = {
|
1262
|
-
_nativeInput: [{ type: core.ViewChild, args: ['input', { static: true },] }],
|
1263
|
-
_inputChild: [{ type: core.ViewChild, args: [input.MatInput, { static: true },] }],
|
1264
|
-
_autocompleteTrigger: [{ type: core.ViewChild, args: [autocomplete.MatAutocompleteTrigger, { static: true },] }],
|
1265
|
-
_chipsChildren: [{ type: core.ViewChildren, args: [chips.MatChip,] }],
|
1266
|
-
_chipTemplate: [{ type: core.ContentChild, args: [TdChipDirective,] }],
|
1267
|
-
_autocompleteOptionTemplate: [{ type: core.ContentChild, args: [TdAutocompleteOptionDirective,] }],
|
1268
|
-
_options: [{ type: core.ViewChildren, args: [core$1.MatOption,] }],
|
1269
|
-
items: [{ type: core.Input, args: ['items',] }],
|
1270
|
-
stacked: [{ type: core.Input, args: ['stacked',] }],
|
1271
|
-
inputPosition: [{ type: core.Input, args: ['inputPosition',] }],
|
1272
|
-
requireMatch: [{ type: core.Input, args: ['requireMatch',] }],
|
1273
|
-
required: [{ type: core.Input, args: ['required',] }],
|
1274
|
-
chipAddition: [{ type: core.Input, args: ['chipAddition',] }],
|
1275
|
-
chipRemoval: [{ type: core.Input, args: ['chipRemoval',] }],
|
1276
|
-
placeholder: [{ type: core.Input }],
|
1277
|
-
debounce: [{ type: core.Input }],
|
1278
|
-
color: [{ type: core.Input, args: ['color',] }],
|
1279
|
-
add: [{ type: core.Output }],
|
1280
|
-
remove: [{ type: core.Output }],
|
1281
|
-
inputChange: [{ type: core.Output }],
|
1282
|
-
chipFocus: [{ type: core.Output }],
|
1283
|
-
chipBlur: [{ type: core.Output }],
|
1284
|
-
tabIndex: [{ type: core.HostBinding, args: ['attr.tabindex',] }],
|
1285
|
-
compareWith: [{ type: core.Input }],
|
1286
|
-
focusListener: [{ type: core.HostListener, args: ['focus', ['$event'],] }],
|
1287
|
-
mousedownListener: [{ type: core.HostListener, args: ['mousedown', ['$event'],] }],
|
1288
|
-
clickListener: [{ type: core.HostListener, args: ['click', ['$event'],] }],
|
1289
|
-
keydownListener: [{ type: core.HostListener, args: ['keydown', ['$event'],] }]
|
1290
|
-
};
|
1291
|
-
if (false) {
|
1292
|
-
/**
|
1293
|
-
* @type {?}
|
1294
|
-
* @private
|
1295
|
-
*/
|
1296
|
-
TdChipsComponent.prototype._outsideClickSubs;
|
1297
|
-
/**
|
1298
|
-
* @type {?}
|
1299
|
-
* @private
|
1300
|
-
*/
|
1301
|
-
TdChipsComponent.prototype._inputValueChangesSubs;
|
1302
|
-
/**
|
1303
|
-
* @type {?}
|
1304
|
-
* @private
|
1305
|
-
*/
|
1306
|
-
TdChipsComponent.prototype._isMousedown;
|
1307
|
-
/**
|
1308
|
-
* @type {?}
|
1309
|
-
* @private
|
1310
|
-
*/
|
1311
|
-
TdChipsComponent.prototype._items;
|
1312
|
-
/**
|
1313
|
-
* @type {?}
|
1314
|
-
* @private
|
1315
|
-
*/
|
1316
|
-
TdChipsComponent.prototype._length;
|
1317
|
-
/**
|
1318
|
-
* @type {?}
|
1319
|
-
* @private
|
1320
|
-
*/
|
1321
|
-
TdChipsComponent.prototype._stacked;
|
1322
|
-
/**
|
1323
|
-
* @type {?}
|
1324
|
-
* @private
|
1325
|
-
*/
|
1326
|
-
TdChipsComponent.prototype._requireMatch;
|
1327
|
-
/**
|
1328
|
-
* @type {?}
|
1329
|
-
* @private
|
1330
|
-
*/
|
1331
|
-
TdChipsComponent.prototype._color;
|
1332
|
-
/**
|
1333
|
-
* @type {?}
|
1334
|
-
* @private
|
1335
|
-
*/
|
1336
|
-
TdChipsComponent.prototype._inputPosition;
|
1337
|
-
/**
|
1338
|
-
* @type {?}
|
1339
|
-
* @private
|
1340
|
-
*/
|
1341
|
-
TdChipsComponent.prototype._chipAddition;
|
1342
|
-
/**
|
1343
|
-
* @type {?}
|
1344
|
-
* @private
|
1345
|
-
*/
|
1346
|
-
TdChipsComponent.prototype._chipRemoval;
|
1347
|
-
/**
|
1348
|
-
* @type {?}
|
1349
|
-
* @private
|
1350
|
-
*/
|
1351
|
-
TdChipsComponent.prototype._focused;
|
1352
|
-
/**
|
1353
|
-
* @type {?}
|
1354
|
-
* @private
|
1355
|
-
*/
|
1356
|
-
TdChipsComponent.prototype._required;
|
1357
|
-
/**
|
1358
|
-
* @type {?}
|
1359
|
-
* @private
|
1360
|
-
*/
|
1361
|
-
TdChipsComponent.prototype._tabIndex;
|
1362
|
-
/**
|
1363
|
-
* @type {?}
|
1364
|
-
* @private
|
1365
|
-
*/
|
1366
|
-
TdChipsComponent.prototype._touchendDebounce;
|
1367
|
-
/** @type {?} */
|
1368
|
-
TdChipsComponent.prototype._internalClick;
|
1369
|
-
/** @type {?} */
|
1370
|
-
TdChipsComponent.prototype._internalActivateOption;
|
1371
|
-
/** @type {?} */
|
1372
|
-
TdChipsComponent.prototype._nativeInput;
|
1373
|
-
/** @type {?} */
|
1374
|
-
TdChipsComponent.prototype._inputChild;
|
1375
|
-
/** @type {?} */
|
1376
|
-
TdChipsComponent.prototype._autocompleteTrigger;
|
1377
|
-
/** @type {?} */
|
1378
|
-
TdChipsComponent.prototype._chipsChildren;
|
1379
|
-
/** @type {?} */
|
1380
|
-
TdChipsComponent.prototype._chipTemplate;
|
1381
|
-
/** @type {?} */
|
1382
|
-
TdChipsComponent.prototype._autocompleteOptionTemplate;
|
1383
|
-
/** @type {?} */
|
1384
|
-
TdChipsComponent.prototype._options;
|
1385
|
-
/**
|
1386
|
-
* FormControl for the matInput element.
|
1387
|
-
* @type {?}
|
1388
|
-
*/
|
1389
|
-
TdChipsComponent.prototype.inputControl;
|
1390
|
-
/**
|
1391
|
-
* placeholder?: string
|
1392
|
-
* Placeholder for the autocomplete input.
|
1393
|
-
* @type {?}
|
1394
|
-
*/
|
1395
|
-
TdChipsComponent.prototype.placeholder;
|
1396
|
-
/**
|
1397
|
-
* debounce?: number
|
1398
|
-
* Debounce timeout between keypresses. Defaults to 200.
|
1399
|
-
* @type {?}
|
1400
|
-
*/
|
1401
|
-
TdChipsComponent.prototype.debounce;
|
1402
|
-
/**
|
1403
|
-
* add?: function
|
1404
|
-
* Method to be executed when a chip is added.
|
1405
|
-
* Sends chip value as event.
|
1406
|
-
* @type {?}
|
1407
|
-
*/
|
1408
|
-
TdChipsComponent.prototype.add;
|
1409
|
-
/**
|
1410
|
-
* remove?: function
|
1411
|
-
* Method to be executed when a chip is removed.
|
1412
|
-
* Sends chip value as event.
|
1413
|
-
* @type {?}
|
1414
|
-
*/
|
1415
|
-
TdChipsComponent.prototype.remove;
|
1416
|
-
/**
|
1417
|
-
* inputChange?: function
|
1418
|
-
* Method to be executed when the value in the autocomplete input changes.
|
1419
|
-
* Sends string value as event.
|
1420
|
-
* @type {?}
|
1421
|
-
*/
|
1422
|
-
TdChipsComponent.prototype.inputChange;
|
1423
|
-
/**
|
1424
|
-
* chipFocus?: function
|
1425
|
-
* Method to be executed when a chip is focused.
|
1426
|
-
* Sends chip value as event.
|
1427
|
-
* @type {?}
|
1428
|
-
*/
|
1429
|
-
TdChipsComponent.prototype.chipFocus;
|
1430
|
-
/**
|
1431
|
-
* blur?: function
|
1432
|
-
* Method to be executed when a chip is blurred.
|
1433
|
-
* Sends chip value as event.
|
1434
|
-
* @type {?}
|
1435
|
-
*/
|
1436
|
-
TdChipsComponent.prototype.chipBlur;
|
1437
|
-
/**
|
1438
|
-
* compareWith? function
|
1439
|
-
* Function used to check whether a chip value already exists.
|
1440
|
-
* Defaults to strict equality comparison ===
|
1441
|
-
* @type {?}
|
1442
|
-
*/
|
1443
|
-
TdChipsComponent.prototype.compareWith;
|
1444
|
-
/**
|
1445
|
-
* @type {?}
|
1446
|
-
* @private
|
1447
|
-
*/
|
1448
|
-
TdChipsComponent.prototype._elementRef;
|
1449
|
-
/**
|
1450
|
-
* @type {?}
|
1451
|
-
* @private
|
1452
|
-
*/
|
1453
|
-
TdChipsComponent.prototype._renderer;
|
1454
|
-
/**
|
1455
|
-
* @type {?}
|
1456
|
-
* @private
|
1457
|
-
*/
|
1458
|
-
TdChipsComponent.prototype._document;
|
1459
|
-
}
|
1460
|
-
|
1461
|
-
/**
|
1462
|
-
* @fileoverview added by tsickle
|
1463
|
-
* Generated from: chips.module.ts
|
1464
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1465
|
-
*/
|
1466
|
-
var CovalentChipsModule = /** @class */ (function () {
|
1467
|
-
function CovalentChipsModule() {
|
1468
|
-
}
|
1469
|
-
return CovalentChipsModule;
|
1470
|
-
}());
|
1471
|
-
CovalentChipsModule.decorators = [
|
1472
|
-
{ type: core.NgModule, args: [{
|
1473
|
-
imports: [forms.ReactiveFormsModule, common$1.CommonModule, input.MatInputModule, icon.MatIconModule, chips.MatChipsModule, autocomplete.MatAutocompleteModule],
|
1474
|
-
declarations: [TdChipsComponent, TdChipDirective, TdAutocompleteOptionDirective],
|
1475
|
-
exports: [TdChipsComponent, TdChipDirective, TdAutocompleteOptionDirective],
|
1476
|
-
},] }
|
1477
|
-
];
|
1478
|
-
|
1479
|
-
/**
|
1480
|
-
* @fileoverview added by tsickle
|
1481
|
-
* Generated from: public-api.ts
|
1482
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1483
|
-
*/
|
1484
|
-
|
1485
|
-
/**
|
1486
|
-
* @fileoverview added by tsickle
|
1487
|
-
* Generated from: index.ts
|
1488
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1489
|
-
*/
|
1490
|
-
|
1491
|
-
/**
|
1492
|
-
* @fileoverview added by tsickle
|
1493
|
-
* Generated from: covalent-core-chips.ts
|
1494
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1495
|
-
*/
|
1496
|
-
|
1497
|
-
exports.CovalentChipsModule = CovalentChipsModule;
|
1498
|
-
exports.TdAutocompleteOptionDirective = TdAutocompleteOptionDirective;
|
1499
|
-
exports.TdChipDirective = TdChipDirective;
|
1500
|
-
exports.TdChipsBase = TdChipsBase;
|
1501
|
-
exports.TdChipsComponent = TdChipsComponent;
|
1502
|
-
exports._TdChipsMixinBase = _TdChipsMixinBase;
|
1503
|
-
|
1504
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
1505
|
-
|
1506
|
-
})));
|
1507
|
-
//# sourceMappingURL=covalent-core-chips.umd.js.map
|