@covalent/core 6.3.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/breadcrumbs/breadcrumbs.component.d.ts +1 -1
- package/dialogs/window-dialog/window-dialog.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu.component.d.ts +1 -1
- package/esm2022/breadcrumbs/breadcrumb/breadcrumb.component.mjs +94 -0
- package/esm2022/breadcrumbs/breadcrumbs.component.mjs +135 -0
- package/{esm2020 → esm2022}/breadcrumbs/breadcrumbs.module.mjs +5 -5
- package/esm2022/common/behaviors/control-value-accesor.mixin.mjs +43 -0
- package/esm2022/common/behaviors/disable-ripple.mixin.mjs +24 -0
- package/{esm2020 → esm2022}/common/behaviors/disabled.mixin.mjs +2 -2
- package/{esm2020 → esm2022}/common/common.module.mjs +17 -17
- package/esm2022/common/directives/fullscreen/fullscreen.directive.mjs +87 -0
- package/esm2022/common/forms/auto-trim/auto-trim.directive.mjs +37 -0
- package/esm2022/common/functions/convert.mjs +84 -0
- package/esm2022/common/functions/download.mjs +75 -0
- package/esm2022/common/pipes/bytes/bytes.pipe.mjs +42 -0
- package/esm2022/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +42 -0
- package/esm2022/common/pipes/digits/digits.pipe.mjs +41 -0
- package/{esm2020 → esm2022}/common/pipes/time-ago/time-ago.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/common/pipes/time-difference/time-difference.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/common/pipes/time-until/time-until.pipe.mjs +4 -4
- package/esm2022/common/pipes/truncate/truncate.pipe.mjs +27 -0
- package/esm2022/common/services/icon.service.mjs +1087 -0
- package/esm2022/common/services/router-path.service.mjs +30 -0
- package/esm2022/dialogs/alert-dialog/alert-dialog.component.mjs +26 -0
- package/esm2022/dialogs/confirm-dialog/confirm-dialog.component.mjs +31 -0
- package/esm2022/dialogs/dialog.component.mjs +60 -0
- package/{esm2020 → esm2022}/dialogs/dialogs.module.mjs +39 -39
- package/esm2022/dialogs/prompt-dialog/prompt-dialog.component.mjs +84 -0
- package/esm2022/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +220 -0
- package/esm2022/dialogs/services/dialog.service.mjs +179 -0
- package/esm2022/dialogs/window-dialog/window-dialog.component.mjs +40 -0
- package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +30 -0
- package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +23 -0
- package/esm2022/dynamic-menu/dynamic-menu.component.mjs +28 -0
- package/{esm2020 → esm2022}/dynamic-menu/dynamic-menu.module.mjs +19 -19
- package/esm2022/file/directives/file-drop.directive.mjs +145 -0
- package/esm2022/file/directives/file-select.directive.mjs +78 -0
- package/esm2022/file/file-input/file-input.component.mjs +146 -0
- package/esm2022/file/file-upload/file-upload.component.mjs +185 -0
- package/{esm2020 → esm2022}/file/file.module.mjs +21 -21
- package/esm2022/file/services/file.service.mjs +66 -0
- package/esm2022/json-formatter/json-formatter.component.mjs +222 -0
- package/{esm2020 → esm2022}/json-formatter/json-formatter.module.mjs +5 -5
- package/esm2022/layout/layout-card-over/layout-card-over.component.mjs +50 -0
- package/esm2022/layout/layout-footer/layout-footer.component.mjs +36 -0
- package/esm2022/layout/layout-manage-list/layout-manage-list.component.mjs +92 -0
- package/{esm2020 → esm2022}/layout/layout-manage-list/layout-manage-list.directives.mjs +10 -10
- package/esm2022/layout/layout-nav/layout-nav.component.mjs +76 -0
- package/esm2022/layout/layout-nav-list/layout-nav-list.component.mjs +154 -0
- package/{esm2020 → esm2022}/layout/layout-nav-list/layout-nav-list.directives.mjs +10 -10
- package/esm2022/layout/layout-toggle.class.mjs +96 -0
- package/esm2022/layout/layout.component.mjs +91 -0
- package/{esm2020 → esm2022}/layout/layout.directives.mjs +10 -10
- package/{esm2020 → esm2022}/layout/layout.module.mjs +55 -55
- package/esm2022/layout/navigation-drawer/navigation-drawer.component.mjs +221 -0
- package/esm2022/loading/directives/loading.directive.mjs +133 -0
- package/esm2022/loading/loading.component.mjs +193 -0
- package/{esm2020 → esm2022}/loading/loading.module.mjs +13 -13
- package/esm2022/loading/services/loading.factory.mjs +210 -0
- package/esm2022/loading/services/loading.service.mjs +219 -0
- package/{esm2020 → esm2022}/menu/menu.component.mjs +4 -4
- package/{esm2020 → esm2022}/menu/menu.module.mjs +5 -5
- package/esm2022/message/message.component.mjs +222 -0
- package/{esm2020 → esm2022}/message/message.module.mjs +7 -7
- package/esm2022/search/search-box/search-box.component.mjs +198 -0
- package/esm2022/search/search-input/search-input.component.mjs +214 -0
- package/{esm2020 → esm2022}/search/search.module.mjs +13 -13
- package/esm2022/side-sheet/side-sheet-container.mjs +285 -0
- package/esm2022/side-sheet/side-sheet-ref.mjs +30 -0
- package/{esm2020 → esm2022}/side-sheet/side-sheet.config.mjs +2 -5
- package/esm2022/side-sheet/side-sheet.content-directives.mjs +206 -0
- package/esm2022/side-sheet/side-sheet.mjs +236 -0
- package/{esm2020 → esm2022}/side-sheet/side-sheet.module.mjs +14 -14
- package/esm2022/user-profile/user-profile-menu/user-profile-menu.component.mjs +25 -0
- package/esm2022/user-profile/user-profile.component.mjs +21 -0
- package/{esm2020 → esm2022}/user-profile/user-profile.module.mjs +15 -15
- package/{fesm2015 → fesm2022}/covalent-core-breadcrumbs.mjs +28 -22
- package/{fesm2015 → fesm2022}/covalent-core-breadcrumbs.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-common.mjs +1131 -1125
- package/fesm2022/covalent-core-common.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/covalent-core-dialogs.mjs +109 -80
- package/{fesm2020 → fesm2022}/covalent-core-dialogs.mjs.map +1 -1
- package/fesm2022/covalent-core-dynamic-menu.mjs +125 -0
- package/{fesm2015 → fesm2022}/covalent-core-dynamic-menu.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-file.mjs +148 -110
- package/{fesm2020 → fesm2022}/covalent-core-file.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-json-formatter.mjs +26 -21
- package/{fesm2020 → fesm2022}/covalent-core-json-formatter.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-layout.mjs +396 -271
- package/{fesm2015 → fesm2022}/covalent-core-layout.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-loading.mjs +100 -78
- package/{fesm2020 → fesm2022}/covalent-core-loading.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/covalent-core-menu.mjs +7 -7
- package/{fesm2015 → fesm2022}/covalent-core-menu.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-message.mjs +42 -23
- package/{fesm2020 → fesm2022}/covalent-core-message.mjs.map +1 -1
- package/fesm2022/covalent-core-search.mjs +438 -0
- package/fesm2022/covalent-core-search.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/covalent-core-side-sheet.mjs +124 -99
- package/{fesm2020 → fesm2022}/covalent-core-side-sheet.mjs.map +1 -1
- package/fesm2022/covalent-core-user-profile.mjs +87 -0
- package/fesm2022/covalent-core-user-profile.mjs.map +1 -0
- package/file/directives/file-drop.directive.d.ts +1 -1
- package/file/directives/file-select.directive.d.ts +1 -1
- package/file/file-input/file-input.component.d.ts +1 -1
- package/file/file-upload/file-upload.component.d.ts +1 -1
- package/json-formatter/json-formatter.component.d.ts +1 -1
- package/layout/layout-card-over/layout-card-over.component.d.ts +1 -1
- package/layout/layout-footer/layout-footer.component.d.ts +1 -1
- package/layout/layout-manage-list/layout-manage-list.component.d.ts +1 -1
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +3 -3
- package/layout/layout-nav/layout-nav.component.d.ts +1 -1
- package/layout/layout-nav-list/layout-nav-list.component.d.ts +1 -1
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +3 -3
- package/layout/layout-toggle.class.d.ts +1 -1
- package/layout/layout.component.d.ts +1 -1
- package/layout/layout.directives.d.ts +3 -3
- package/layout/navigation-drawer/navigation-drawer.component.d.ts +1 -1
- package/loading/directives/loading.directive.d.ts +1 -1
- package/message/message.component.d.ts +1 -1
- package/package.json +55 -91
- package/search/search-box/search-box.component.d.ts +1 -1
- package/search/search-input/search-input.component.d.ts +1 -1
- package/side-sheet/side-sheet.content-directives.d.ts +2 -2
- package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +1 -1
- package/user-profile/user-profile.component.d.ts +1 -1
- package/common/styles/font/README.md +0 -11
- package/dialogs/src/README.md +0 -223
- package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -92
- package/esm2020/breadcrumbs/breadcrumbs.component.mjs +0 -131
- package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +0 -41
- package/esm2020/common/behaviors/disable-ripple.mixin.mjs +0 -24
- package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +0 -85
- package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +0 -36
- package/esm2020/common/functions/convert.mjs +0 -84
- package/esm2020/common/functions/download.mjs +0 -75
- package/esm2020/common/pipes/bytes/bytes.pipe.mjs +0 -42
- package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +0 -42
- package/esm2020/common/pipes/digits/digits.pipe.mjs +0 -39
- package/esm2020/common/pipes/truncate/truncate.pipe.mjs +0 -27
- package/esm2020/common/services/icon.service.mjs +0 -1089
- package/esm2020/common/services/router-path.service.mjs +0 -29
- package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +0 -23
- package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +0 -28
- package/esm2020/dialogs/dialog.component.mjs +0 -57
- package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +0 -75
- package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +0 -216
- package/esm2020/dialogs/services/dialog.service.mjs +0 -174
- package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +0 -38
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +0 -30
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +0 -24
- package/esm2020/dynamic-menu/dynamic-menu.component.mjs +0 -28
- package/esm2020/file/directives/file-drop.directive.mjs +0 -139
- package/esm2020/file/directives/file-select.directive.mjs +0 -77
- package/esm2020/file/file-input/file-input.component.mjs +0 -128
- package/esm2020/file/file-upload/file-upload.component.mjs +0 -174
- package/esm2020/file/services/file.service.mjs +0 -64
- package/esm2020/json-formatter/json-formatter.component.mjs +0 -217
- package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +0 -40
- package/esm2020/layout/layout-footer/layout-footer.component.mjs +0 -33
- package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +0 -93
- package/esm2020/layout/layout-nav/layout-nav.component.mjs +0 -50
- package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +0 -128
- package/esm2020/layout/layout-toggle.class.mjs +0 -92
- package/esm2020/layout/layout.component.mjs +0 -92
- package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +0 -163
- package/esm2020/loading/directives/loading.directive.mjs +0 -126
- package/esm2020/loading/loading.component.mjs +0 -187
- package/esm2020/loading/services/loading.factory.mjs +0 -207
- package/esm2020/loading/services/loading.service.mjs +0 -213
- package/esm2020/message/message.component.mjs +0 -203
- package/esm2020/search/search-box/search-box.component.mjs +0 -194
- package/esm2020/search/search-input/search-input.component.mjs +0 -207
- package/esm2020/side-sheet/side-sheet-container.mjs +0 -274
- package/esm2020/side-sheet/side-sheet-ref.mjs +0 -26
- package/esm2020/side-sheet/side-sheet.content-directives.mjs +0 -201
- package/esm2020/side-sheet/side-sheet.mjs +0 -228
- package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +0 -23
- package/esm2020/user-profile/user-profile.component.mjs +0 -19
- package/fesm2015/covalent-core-common.mjs +0 -2281
- package/fesm2015/covalent-core-common.mjs.map +0 -1
- package/fesm2015/covalent-core-dialogs.mjs +0 -668
- package/fesm2015/covalent-core-dialogs.mjs.map +0 -1
- package/fesm2015/covalent-core-dynamic-menu.mjs +0 -126
- package/fesm2015/covalent-core-file.mjs +0 -621
- package/fesm2015/covalent-core-file.mjs.map +0 -1
- package/fesm2015/covalent-core-json-formatter.mjs +0 -298
- package/fesm2015/covalent-core-json-formatter.mjs.map +0 -1
- package/fesm2015/covalent-core-layout.mjs +0 -1024
- package/fesm2015/covalent-core-loading.mjs +0 -766
- package/fesm2015/covalent-core-loading.mjs.map +0 -1
- package/fesm2015/covalent-core-message.mjs +0 -284
- package/fesm2015/covalent-core-message.mjs.map +0 -1
- package/fesm2015/covalent-core-search.mjs +0 -430
- package/fesm2015/covalent-core-search.mjs.map +0 -1
- package/fesm2015/covalent-core-side-sheet.mjs +0 -784
- package/fesm2015/covalent-core-side-sheet.mjs.map +0 -1
- package/fesm2015/covalent-core-user-profile.mjs +0 -83
- package/fesm2015/covalent-core-user-profile.mjs.map +0 -1
- package/fesm2020/covalent-core-breadcrumbs.mjs +0 -243
- package/fesm2020/covalent-core-breadcrumbs.mjs.map +0 -1
- package/fesm2020/covalent-core-common.mjs.map +0 -1
- package/fesm2020/covalent-core-dynamic-menu.mjs +0 -126
- package/fesm2020/covalent-core-dynamic-menu.mjs.map +0 -1
- package/fesm2020/covalent-core-layout.mjs.map +0 -1
- package/fesm2020/covalent-core-menu.mjs +0 -37
- package/fesm2020/covalent-core-menu.mjs.map +0 -1
- package/fesm2020/covalent-core-search.mjs +0 -427
- package/fesm2020/covalent-core-search.mjs.map +0 -1
- package/fesm2020/covalent-core-user-profile.mjs +0 -83
- package/fesm2020/covalent-core-user-profile.mjs.map +0 -1
- package/fesm2020/covalent-core.mjs +0 -4
- package/fesm2020/covalent-core.mjs.map +0 -1
- package/file/src/file-input/README.md +0 -147
- package/file/src/file-upload/README.md +0 -136
- package/layout/src/layout-card-over/README.md +0 -43
- package/layout/src/layout-manage-list/README.md +0 -80
- package/layout/src/layout-nav/README.md +0 -50
- package/layout/src/layout-nav-list/README.md +0 -105
- package/search/src/search-box/README.md +0 -73
- package/search/src/search-input/README.md +0 -74
- /package/{esm2020 → esm2022}/breadcrumbs/covalent-core-breadcrumbs.mjs +0 -0
- /package/{esm2020 → esm2022}/breadcrumbs/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/bounce/bounce.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/collapse/collapse.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/common/interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/fade/fadeInOut.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/flash/flash.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/headshake/headshake.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/jello/jello.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/pulse/pulse.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/rotate/rotate.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/covalent-core-common.mjs +0 -0
- /package/{esm2020 → esm2022}/common/forms/validators/validators.mjs +0 -0
- /package/{esm2020 → esm2022}/common/functions/clipboard.mjs +0 -0
- /package/{esm2020 → esm2022}/common/functions/file.mjs +0 -0
- /package/{esm2020 → esm2022}/common/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/covalent-core.mjs +0 -0
- /package/{esm2020 → esm2022}/dialogs/covalent-core-dialogs.mjs +0 -0
- /package/{esm2020 → esm2022}/dialogs/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/dynamic-menu/covalent-core-dynamic-menu.mjs +0 -0
- /package/{esm2020 → esm2022}/dynamic-menu/dynamic-menu.menu.mjs +0 -0
- /package/{esm2020 → esm2022}/dynamic-menu/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/file/covalent-core-file.mjs +0 -0
- /package/{esm2020 → esm2022}/file/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/json-formatter/collapse.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/json-formatter/covalent-core-json-formatter.mjs +0 -0
- /package/{esm2020 → esm2022}/json-formatter/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/layout/covalent-core-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/layout/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/loading/covalent-core-loading.mjs +0 -0
- /package/{esm2020 → esm2022}/loading/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/covalent-core-menu.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/message/collapse.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/message/covalent-core-message.mjs +0 -0
- /package/{esm2020 → esm2022}/message/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/search/covalent-core-search.mjs +0 -0
- /package/{esm2020 → esm2022}/search/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/side-sheet/covalent-core-side-sheet.mjs +0 -0
- /package/{esm2020 → esm2022}/side-sheet/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/side-sheet/side-sheet.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/user-profile/covalent-core-user-profile.mjs +0 -0
- /package/{esm2020 → esm2022}/user-profile/public_api.mjs +0 -0
- /package/{fesm2015 → fesm2022}/covalent-core.mjs +0 -0
- /package/{fesm2015 → fesm2022}/covalent-core.mjs.map +0 -0
@@ -116,5 +116,5 @@ export declare class TdNavigationDrawerComponent implements OnInit, OnDestroy {
|
|
116
116
|
*/
|
117
117
|
close(): Promise<MatDrawerToggleResult>;
|
118
118
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdNavigationDrawerComponent, [null, { optional: true; }, null]>;
|
119
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TdNavigationDrawerComponent, "td-navigation-drawer", never, { "sidenavTitle": "sidenavTitle"; "icon": "icon"; "logo": "logo"; "avatar": "avatar"; "color": "color"; "navigationRoute": "navigationRoute"; "backgroundUrl": "backgroundUrl"; "name": "name"; "email": "email"; }, {}, ["_drawerMenu", "_toolbar"], ["[td-navigation-drawer-toolbar]", "*", "[td-navigation-drawer-menu]"], false, never>;
|
119
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdNavigationDrawerComponent, "td-navigation-drawer", never, { "sidenavTitle": { "alias": "sidenavTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "color": { "alias": "color"; "required": false; }; "navigationRoute": { "alias": "navigationRoute"; "required": false; }; "backgroundUrl": { "alias": "backgroundUrl"; "required": false; }; "name": { "alias": "name"; "required": false; }; "email": { "alias": "email"; "required": false; }; }, {}, ["_drawerMenu", "_toolbar"], ["[td-navigation-drawer-toolbar]", "*", "[td-navigation-drawer-menu]"], false, never>;
|
120
120
|
}
|
@@ -66,5 +66,5 @@ export declare class TdLoadingDirective implements OnInit, OnDestroy {
|
|
66
66
|
*/
|
67
67
|
private _registerComponent;
|
68
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdLoadingDirective, never>;
|
69
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLoadingDirective, "[tdLoading]", never, { "name": "tdLoading"; "until": "tdLoadingUntil"; "type": "tdLoadingType"; "mode": "tdLoadingMode"; "strategy": "tdLoadingStrategy"; "color": "tdLoadingColor"; }, {}, never, never, false, never>;
|
69
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLoadingDirective, "[tdLoading]", never, { "name": { "alias": "tdLoading"; "required": false; }; "until": { "alias": "tdLoadingUntil"; "required": false; }; "type": { "alias": "tdLoadingType"; "required": false; }; "mode": { "alias": "tdLoadingMode"; "required": false; }; "strategy": { "alias": "tdLoadingStrategy"; "required": false; }; "color": { "alias": "tdLoadingColor"; "required": false; }; }, {}, never, never, false, never>;
|
70
70
|
}
|
@@ -97,5 +97,5 @@ export declare class TdMessageComponent implements AfterViewInit {
|
|
97
97
|
*/
|
98
98
|
private _detach;
|
99
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdMessageComponent, never>;
|
100
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TdMessageComponent, "td-message", never, { "label": "label"; "sublabel": "sublabel"; "icon": "icon"; "color": "color"; "opened": "opened"; }, {}, never, ["[td-message-actions]"], false, never>;
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdMessageComponent, "td-message", never, { "label": { "alias": "label"; "required": false; }; "sublabel": { "alias": "sublabel"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, {}, never, ["[td-message-actions]"], false, never>;
|
101
101
|
}
|
package/package.json
CHANGED
@@ -1,122 +1,94 @@
|
|
1
1
|
{
|
2
2
|
"name": "@covalent/core",
|
3
|
-
"version": "
|
3
|
+
"version": "7.0.0",
|
4
4
|
"exports": {
|
5
5
|
".": {
|
6
6
|
"sass": "./theming/_all-theme.scss",
|
7
7
|
"types": "./index.d.ts",
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"
|
11
|
-
"node": "./fesm2015/covalent-core.mjs",
|
12
|
-
"default": "./fesm2020/covalent-core.mjs"
|
8
|
+
"esm2022": "./esm2022/covalent-core.mjs",
|
9
|
+
"esm": "./esm2022/covalent-core.mjs",
|
10
|
+
"default": "./fesm2022/covalent-core.mjs"
|
13
11
|
},
|
14
12
|
"./package.json": {
|
15
13
|
"default": "./package.json"
|
16
14
|
},
|
17
15
|
"./breadcrumbs": {
|
18
16
|
"types": "./breadcrumbs/index.d.ts",
|
19
|
-
"
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"node": "./fesm2015/covalent-core-breadcrumbs.mjs",
|
23
|
-
"default": "./fesm2020/covalent-core-breadcrumbs.mjs"
|
24
|
-
},
|
25
|
-
"./common": {
|
26
|
-
"types": "./common/index.d.ts",
|
27
|
-
"esm2020": "./esm2020/common/covalent-core-common.mjs",
|
28
|
-
"es2020": "./fesm2020/covalent-core-common.mjs",
|
29
|
-
"es2015": "./fesm2015/covalent-core-common.mjs",
|
30
|
-
"node": "./fesm2015/covalent-core-common.mjs",
|
31
|
-
"default": "./fesm2020/covalent-core-common.mjs"
|
17
|
+
"esm2022": "./esm2022/breadcrumbs/covalent-core-breadcrumbs.mjs",
|
18
|
+
"esm": "./esm2022/breadcrumbs/covalent-core-breadcrumbs.mjs",
|
19
|
+
"default": "./fesm2022/covalent-core-breadcrumbs.mjs"
|
32
20
|
},
|
33
21
|
"./dialogs": {
|
34
22
|
"types": "./dialogs/index.d.ts",
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"
|
38
|
-
"node": "./fesm2015/covalent-core-dialogs.mjs",
|
39
|
-
"default": "./fesm2020/covalent-core-dialogs.mjs"
|
23
|
+
"esm2022": "./esm2022/dialogs/covalent-core-dialogs.mjs",
|
24
|
+
"esm": "./esm2022/dialogs/covalent-core-dialogs.mjs",
|
25
|
+
"default": "./fesm2022/covalent-core-dialogs.mjs"
|
40
26
|
},
|
41
27
|
"./dynamic-menu": {
|
42
28
|
"types": "./dynamic-menu/index.d.ts",
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
|
47
|
-
|
29
|
+
"esm2022": "./esm2022/dynamic-menu/covalent-core-dynamic-menu.mjs",
|
30
|
+
"esm": "./esm2022/dynamic-menu/covalent-core-dynamic-menu.mjs",
|
31
|
+
"default": "./fesm2022/covalent-core-dynamic-menu.mjs"
|
32
|
+
},
|
33
|
+
"./common": {
|
34
|
+
"types": "./common/index.d.ts",
|
35
|
+
"esm2022": "./esm2022/common/covalent-core-common.mjs",
|
36
|
+
"esm": "./esm2022/common/covalent-core-common.mjs",
|
37
|
+
"default": "./fesm2022/covalent-core-common.mjs"
|
48
38
|
},
|
49
39
|
"./file": {
|
50
40
|
"types": "./file/index.d.ts",
|
51
|
-
"
|
52
|
-
"
|
53
|
-
"
|
54
|
-
"node": "./fesm2015/covalent-core-file.mjs",
|
55
|
-
"default": "./fesm2020/covalent-core-file.mjs"
|
41
|
+
"esm2022": "./esm2022/file/covalent-core-file.mjs",
|
42
|
+
"esm": "./esm2022/file/covalent-core-file.mjs",
|
43
|
+
"default": "./fesm2022/covalent-core-file.mjs"
|
56
44
|
},
|
57
45
|
"./json-formatter": {
|
58
46
|
"types": "./json-formatter/index.d.ts",
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"node": "./fesm2015/covalent-core-json-formatter.mjs",
|
63
|
-
"default": "./fesm2020/covalent-core-json-formatter.mjs"
|
47
|
+
"esm2022": "./esm2022/json-formatter/covalent-core-json-formatter.mjs",
|
48
|
+
"esm": "./esm2022/json-formatter/covalent-core-json-formatter.mjs",
|
49
|
+
"default": "./fesm2022/covalent-core-json-formatter.mjs"
|
64
50
|
},
|
65
51
|
"./layout": {
|
66
52
|
"types": "./layout/index.d.ts",
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"node": "./fesm2015/covalent-core-layout.mjs",
|
71
|
-
"default": "./fesm2020/covalent-core-layout.mjs"
|
53
|
+
"esm2022": "./esm2022/layout/covalent-core-layout.mjs",
|
54
|
+
"esm": "./esm2022/layout/covalent-core-layout.mjs",
|
55
|
+
"default": "./fesm2022/covalent-core-layout.mjs"
|
72
56
|
},
|
73
57
|
"./loading": {
|
74
58
|
"types": "./loading/index.d.ts",
|
75
|
-
"
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"node": "./fesm2015/covalent-core-loading.mjs",
|
79
|
-
"default": "./fesm2020/covalent-core-loading.mjs"
|
59
|
+
"esm2022": "./esm2022/loading/covalent-core-loading.mjs",
|
60
|
+
"esm": "./esm2022/loading/covalent-core-loading.mjs",
|
61
|
+
"default": "./fesm2022/covalent-core-loading.mjs"
|
80
62
|
},
|
81
63
|
"./menu": {
|
82
64
|
"types": "./menu/index.d.ts",
|
83
|
-
"
|
84
|
-
"
|
85
|
-
"
|
86
|
-
"node": "./fesm2015/covalent-core-menu.mjs",
|
87
|
-
"default": "./fesm2020/covalent-core-menu.mjs"
|
65
|
+
"esm2022": "./esm2022/menu/covalent-core-menu.mjs",
|
66
|
+
"esm": "./esm2022/menu/covalent-core-menu.mjs",
|
67
|
+
"default": "./fesm2022/covalent-core-menu.mjs"
|
88
68
|
},
|
89
69
|
"./message": {
|
90
70
|
"types": "./message/index.d.ts",
|
91
|
-
"
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"node": "./fesm2015/covalent-core-message.mjs",
|
95
|
-
"default": "./fesm2020/covalent-core-message.mjs"
|
71
|
+
"esm2022": "./esm2022/message/covalent-core-message.mjs",
|
72
|
+
"esm": "./esm2022/message/covalent-core-message.mjs",
|
73
|
+
"default": "./fesm2022/covalent-core-message.mjs"
|
96
74
|
},
|
97
75
|
"./search": {
|
98
76
|
"types": "./search/index.d.ts",
|
99
|
-
"
|
100
|
-
"
|
101
|
-
"
|
102
|
-
"node": "./fesm2015/covalent-core-search.mjs",
|
103
|
-
"default": "./fesm2020/covalent-core-search.mjs"
|
77
|
+
"esm2022": "./esm2022/search/covalent-core-search.mjs",
|
78
|
+
"esm": "./esm2022/search/covalent-core-search.mjs",
|
79
|
+
"default": "./fesm2022/covalent-core-search.mjs"
|
104
80
|
},
|
105
81
|
"./side-sheet": {
|
106
82
|
"types": "./side-sheet/index.d.ts",
|
107
|
-
"
|
108
|
-
"
|
109
|
-
"
|
110
|
-
"node": "./fesm2015/covalent-core-side-sheet.mjs",
|
111
|
-
"default": "./fesm2020/covalent-core-side-sheet.mjs"
|
83
|
+
"esm2022": "./esm2022/side-sheet/covalent-core-side-sheet.mjs",
|
84
|
+
"esm": "./esm2022/side-sheet/covalent-core-side-sheet.mjs",
|
85
|
+
"default": "./fesm2022/covalent-core-side-sheet.mjs"
|
112
86
|
},
|
113
87
|
"./user-profile": {
|
114
88
|
"types": "./user-profile/index.d.ts",
|
115
|
-
"
|
116
|
-
"
|
117
|
-
"
|
118
|
-
"node": "./fesm2015/covalent-core-user-profile.mjs",
|
119
|
-
"default": "./fesm2020/covalent-core-user-profile.mjs"
|
89
|
+
"esm2022": "./esm2022/user-profile/covalent-core-user-profile.mjs",
|
90
|
+
"esm": "./esm2022/user-profile/covalent-core-user-profile.mjs",
|
91
|
+
"default": "./fesm2022/covalent-core-user-profile.mjs"
|
120
92
|
}
|
121
93
|
},
|
122
94
|
"repository": {
|
@@ -129,26 +101,18 @@
|
|
129
101
|
"license": "MIT",
|
130
102
|
"author": "Teradata UX",
|
131
103
|
"peerDependencies": {
|
132
|
-
"@angular/common": "
|
133
|
-
"@angular/core": "
|
134
|
-
"@angular/forms": "
|
135
|
-
"@angular/router": "
|
136
|
-
"@angular/cdk": "
|
137
|
-
"@angular/material": "
|
138
|
-
"@covalent/core": "
|
139
|
-
"@angular/platform-browser": "15.2.5",
|
140
|
-
"rxjs": "7.8.0",
|
141
|
-
"@angular/animations": "15.2.5",
|
142
|
-
"@angular/platform-browser-dynamic": "15.2.5"
|
104
|
+
"@angular/common": "16.x.x",
|
105
|
+
"@angular/core": "16.x.x",
|
106
|
+
"@angular/forms": "16.x.x",
|
107
|
+
"@angular/router": "16.x.x",
|
108
|
+
"@angular/cdk": "16.x.x",
|
109
|
+
"@angular/material": "16.x.x",
|
110
|
+
"@covalent/core": "7.0.0"
|
143
111
|
},
|
144
112
|
"dependencies": {
|
145
113
|
"tslib": "^2.0.0"
|
146
114
|
},
|
147
|
-
"module": "
|
148
|
-
"es2020": "fesm2020/covalent-core.mjs",
|
149
|
-
"esm2020": "esm2020/covalent-core.mjs",
|
150
|
-
"fesm2020": "fesm2020/covalent-core.mjs",
|
151
|
-
"fesm2015": "fesm2015/covalent-core.mjs",
|
115
|
+
"module": "fesm2022/covalent-core.mjs",
|
152
116
|
"typings": "index.d.ts",
|
153
117
|
"sideEffects": false
|
154
|
-
}
|
118
|
+
}
|
@@ -84,5 +84,5 @@ export declare class TdSearchBoxComponent implements ControlValueAccessor {
|
|
84
84
|
handleClear(): void;
|
85
85
|
handleBlur(): void;
|
86
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdSearchBoxComponent, never>;
|
87
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchBoxComponent, "td-search-box", never, { "backIcon": "backIcon"; "searchIcon": "searchIcon"; "clearIcon": "clearIcon"; "showUnderline": "showUnderline"; "debounce": "debounce"; "alwaysVisible": "alwaysVisible"; "placeholder": "placeholder"; "value": "value"; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, false, never>;
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchBoxComponent, "td-search-box", never, { "backIcon": { "alias": "backIcon"; "required": false; }; "searchIcon": { "alias": "searchIcon"; "required": false; }; "clearIcon": { "alias": "clearIcon"; "required": false; }; "showUnderline": { "alias": "showUnderline"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "alwaysVisible": { "alias": "alwaysVisible"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, false, never>;
|
88
88
|
}
|
@@ -80,5 +80,5 @@ export declare class TdSearchInputComponent extends _TdSearchInputMixinBase impl
|
|
80
80
|
private _searchTermChanged;
|
81
81
|
private _stopPropagation;
|
82
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdSearchInputComponent, [{ optional: true; }, null, null]>;
|
83
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchInputComponent, "td-search-input", never, { "appearance": "appearance"; "showUnderline": "showUnderline"; "debounce": "debounce"; "placeholder": "placeholder"; "clearIcon": "clearIcon"; "value": "value"; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, false, never>;
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchInputComponent, "td-search-input", never, { "appearance": { "alias": "appearance"; "required": false; }; "showUnderline": { "alias": "showUnderline"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "clearIcon": { "alias": "clearIcon"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, false, never>;
|
84
84
|
}
|
@@ -22,7 +22,7 @@ export declare class CovalentSideSheetCloseDirective implements OnInit, OnChange
|
|
22
22
|
ngOnChanges(changes: SimpleChanges): void;
|
23
23
|
_onButtonClick(event: MouseEvent): void;
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetCloseDirective, [{ optional: true; }, null, null]>;
|
25
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetCloseDirective, "[td-side-sheet-close], [CovalentSideSheetClose]", ["CovalentSideSheetClose"], { "ariaLabel": "aria-label"; "type": "type"; "dialogResult": "td-side-sheet-close"; "_CovalentSideSheetClose": "CovalentSideSheetClose"; }, {}, never, never, false, never>;
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetCloseDirective, "[td-side-sheet-close], [CovalentSideSheetClose]", ["CovalentSideSheetClose"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "dialogResult": { "alias": "td-side-sheet-close"; "required": false; }; "_CovalentSideSheetClose": { "alias": "CovalentSideSheetClose"; "required": false; }; }, {}, never, never, false, never>;
|
26
26
|
}
|
27
27
|
/**
|
28
28
|
* Title of a side sheet element. Stays fixed to the top of the side sheet when scrolling.
|
@@ -38,7 +38,7 @@ export declare class CovalentSideSheetTitleDirective implements OnInit {
|
|
38
38
|
constructor(_dialogRef: CovalentSideSheetRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: CovalentSideSheet);
|
39
39
|
ngOnInit(): void;
|
40
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetTitleDirective, [{ optional: true; }, null, null]>;
|
41
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetTitleDirective, "[td-side-sheet-title], [CovalentSideSheetTitle]", ["CovalentSideSheetTitle"], { "id": "id"; }, {}, never, never, false, never>;
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetTitleDirective, "[td-side-sheet-title], [CovalentSideSheetTitle]", ["CovalentSideSheetTitle"], { "id": { "alias": "id"; "required": false; }; }, {}, never, never, false, never>;
|
42
42
|
}
|
43
43
|
/**
|
44
44
|
* Scrollable content container of a dialog.
|
@@ -4,5 +4,5 @@ export declare class TdUserProfileMenuComponent {
|
|
4
4
|
name?: string;
|
5
5
|
_blockEvent(event: Event): void;
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdUserProfileMenuComponent, never>;
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TdUserProfileMenuComponent, "td-user-profile-menu", never, { "email": "email"; "name": "name"; }, {}, never, ["[td-user-info-list]", "[td-user-action-list]"], false, never>;
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdUserProfileMenuComponent, "td-user-profile-menu", never, { "email": { "alias": "email"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, ["[td-user-info-list]", "[td-user-action-list]"], false, never>;
|
8
8
|
}
|
@@ -3,5 +3,5 @@ export declare class TdUserProfileComponent {
|
|
3
3
|
name?: string;
|
4
4
|
email?: string;
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdUserProfileComponent, never>;
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TdUserProfileComponent, "td-user-profile", never, { "name": "name"; "email": "email"; }, {}, never, ["[td-user-info-list]", "[td-user-action-list]"], false, never>;
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdUserProfileComponent, "td-user-profile", never, { "name": { "alias": "name"; "required": false; }; "email": { "alias": "email"; "required": false; }; }, {}, never, ["[td-user-info-list]", "[td-user-action-list]"], false, never>;
|
7
7
|
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
The recommended way to use the Material Icons font is by linking to the web font hosted on Google Fonts:
|
2
|
-
|
3
|
-
```html
|
4
|
-
<link
|
5
|
-
href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
6
|
-
rel="stylesheet"
|
7
|
-
/>
|
8
|
-
```
|
9
|
-
|
10
|
-
Read more in our full usage guide:
|
11
|
-
http://google.github.io/material-design-icons/#icon-font-for-the-web
|
package/dialogs/src/README.md
DELETED
@@ -1,223 +0,0 @@
|
|
1
|
-
# TdDialogService
|
2
|
-
|
3
|
-
Service provided with methods that wrap the @angular/material [MatDialog] service and provide an easier experience for simple dialogs.
|
4
|
-
|
5
|
-
Note: if no [ViewContainerRef] is provided, [TdDialogService] will throw an error.
|
6
|
-
|
7
|
-
<br/>
|
8
|
-
|
9
|
-
## API Summary
|
10
|
-
|
11
|
-
#### Methods
|
12
|
-
|
13
|
-
- openAlert: function(IAlertConfig): MatDialogRef<TdAlertDialogComponent>
|
14
|
-
- Opens an alert dialog with the provided config.
|
15
|
-
- openConfirm: function(IConfirmConfig): MatDialogRef<TdConfirmDialogComponent>
|
16
|
-
- Opens a confirm dialog with the provided config.
|
17
|
-
- openPrompt: function(IPromptConfig): MatDialogRef<TdPromptDialogComponent>
|
18
|
-
- Opens a prompt dialog with the provided config.
|
19
|
-
- open: function<T>(component: ComponentType<T>, config: MatDialogConfig): MatDialogRef<T>
|
20
|
-
- Wrapper function over the open() method in MatDialog. Opens a modal dialog containing the given component.
|
21
|
-
- openDraggable: function<T>(IDraggableConfig<T>): MatDialogRef<T>
|
22
|
-
- Opens a draggable dialog containing the given component
|
23
|
-
- closeAll: function()
|
24
|
-
- Wrapper function over the closeAll() method in MatDialog. Closes all of the currently-open dialogs.
|
25
|
-
|
26
|
-
## Usage
|
27
|
-
|
28
|
-
TypeScript
|
29
|
-
|
30
|
-
```typescript
|
31
|
-
import { ViewContainerRef } from '@angular/core';
|
32
|
-
import { TdDialogService } from '@covalent/core/dialogs';
|
33
|
-
...
|
34
|
-
})
|
35
|
-
export class Demo {
|
36
|
-
constructor(private _dialogService: TdDialogService,
|
37
|
-
private _viewContainerRef: ViewContainerRef) {
|
38
|
-
...
|
39
|
-
}
|
40
|
-
|
41
|
-
openAlert(): void {
|
42
|
-
this._dialogService.openAlert({
|
43
|
-
message: 'This is how simple it is to create an alert with this wrapper service.',
|
44
|
-
disableClose: true | false, // defaults to false
|
45
|
-
viewContainerRef: this._viewContainerRef, //OPTIONAL
|
46
|
-
title: 'Alert', //OPTIONAL, hides if not provided
|
47
|
-
closeButton: 'Close', //OPTIONAL, defaults to 'CLOSE'
|
48
|
-
width: '400px', //OPTIONAL, defaults to 400px
|
49
|
-
});
|
50
|
-
}
|
51
|
-
|
52
|
-
openConfirm(): void {
|
53
|
-
this._dialogService.openConfirm({
|
54
|
-
message: 'This is how simple it is to create a confirm with this wrapper service. Do you agree?',
|
55
|
-
disableClose: true | false, // defaults to false
|
56
|
-
viewContainerRef: this._viewContainerRef, //OPTIONAL
|
57
|
-
title: 'Confirm', //OPTIONAL, hides if not provided
|
58
|
-
cancelButton: 'Disagree', //OPTIONAL, defaults to 'CANCEL'
|
59
|
-
acceptButton: 'Agree', //OPTIONAL, defaults to 'ACCEPT'
|
60
|
-
isDestructive: false, //OPTIONAL, defaults to false
|
61
|
-
width: '500px', //OPTIONAL, defaults to 400px
|
62
|
-
}).afterClosed().subscribe((accept: boolean) => {
|
63
|
-
if (accept) {
|
64
|
-
// DO SOMETHING
|
65
|
-
} else {
|
66
|
-
// DO SOMETHING ELSE
|
67
|
-
}
|
68
|
-
});
|
69
|
-
}
|
70
|
-
|
71
|
-
openPrompt(): void {
|
72
|
-
this._dialogService.openPrompt({
|
73
|
-
message: 'This is how simple it is to create a prompt with this wrapper service. Prompt something.',
|
74
|
-
disableClose: true | false, // defaults to false
|
75
|
-
viewContainerRef: this._viewContainerRef, //OPTIONAL
|
76
|
-
title: 'Prompt', //OPTIONAL, hides if not provided
|
77
|
-
value: 'Prepopulated value', //OPTIONAL
|
78
|
-
cancelButton: 'Cancel', //OPTIONAL, defaults to 'CANCEL'
|
79
|
-
acceptButton: 'Ok', //OPTIONAL, defaults to 'ACCEPT'
|
80
|
-
width: '400px', //OPTIONAL, defaults to 400px
|
81
|
-
}).afterClosed().subscribe((newValue: string) => {
|
82
|
-
if (newValue) {
|
83
|
-
// DO SOMETHING
|
84
|
-
} else {
|
85
|
-
// DO SOMETHING ELSE
|
86
|
-
}
|
87
|
-
});
|
88
|
-
}
|
89
|
-
|
90
|
-
openDraggable(): void {
|
91
|
-
this._dialogService.openDraggable({
|
92
|
-
component: DraggableDemoComponent,
|
93
|
-
config: { height: '300px' },
|
94
|
-
// CSS selectors of element(s) inside the component meant to be drag handle(s)
|
95
|
-
dragHandleSelectors: ['.drag-handle'],
|
96
|
-
// Class that will be added to the component signifying drag-ability
|
97
|
-
draggableClass: 'custom-class',
|
98
|
-
});
|
99
|
-
}
|
100
|
-
}
|
101
|
-
```
|
102
|
-
|
103
|
-
```typescript
|
104
|
-
import { Component } from '@angular/core';
|
105
|
-
|
106
|
-
@Component({
|
107
|
-
selector: 'app-draggable-demo',
|
108
|
-
template: `
|
109
|
-
<h2>Draggable dialog</h2>
|
110
|
-
<p>Draggable via the drag handle</p>
|
111
|
-
<button mat-icon-button class="drag-handle">
|
112
|
-
<mat-icon>drag_handle</mat-icon>
|
113
|
-
</button>
|
114
|
-
`,
|
115
|
-
})
|
116
|
-
export class DraggableDemoComponent {}
|
117
|
-
```
|
118
|
-
|
119
|
-
## Setup
|
120
|
-
|
121
|
-
Import the [CovalentDialogsModule] in your NgModule:
|
122
|
-
|
123
|
-
```typescript
|
124
|
-
import { CovalentDialogsModule } from '@covalent/core/dialogs';
|
125
|
-
|
126
|
-
@NgModule({
|
127
|
-
imports: [
|
128
|
-
CovalentDialogsModule,
|
129
|
-
...
|
130
|
-
],
|
131
|
-
...
|
132
|
-
})
|
133
|
-
export class MyModule {}
|
134
|
-
```
|
135
|
-
|
136
|
-
After that, just inject [TdDialogService] and use it for your dialogs.
|
137
|
-
|
138
|
-
# ResizableDraggableDialog
|
139
|
-
|
140
|
-
A utility to make a draggable dialog resizable.
|
141
|
-
|
142
|
-
## Usage
|
143
|
-
|
144
|
-
```ts
|
145
|
-
constructor(
|
146
|
-
private _dialogService: TdDialogService,
|
147
|
-
@Inject(DOCUMENT) private _document: any,
|
148
|
-
private _renderer2: Renderer2,
|
149
|
-
) {}
|
150
|
-
```
|
151
|
-
|
152
|
-
```ts
|
153
|
-
const {
|
154
|
-
matDialogRef,
|
155
|
-
dragRefSubject,
|
156
|
-
}: IDraggableRefs<DraggableResizableDialogComponent> = this._dialogService.openDraggable(
|
157
|
-
{
|
158
|
-
component: DraggableResizableDialogComponent,
|
159
|
-
// CSS selectors of element(s) inside the component meant to be drag handle(s)
|
160
|
-
dragHandleSelectors: ['.drag-handle'],
|
161
|
-
}
|
162
|
-
);
|
163
|
-
|
164
|
-
let resizableDraggableDialog: ResizableDraggableDialog;
|
165
|
-
dragRefSubject.subscribe((dragRf: DragRef) => {
|
166
|
-
resizableDraggableDialog = new ResizableDraggableDialog(
|
167
|
-
this._document,
|
168
|
-
this._renderer2,
|
169
|
-
matDialogRef,
|
170
|
-
dragRf
|
171
|
-
);
|
172
|
-
});
|
173
|
-
|
174
|
-
// Detach resize-ability event listeners after dialog closes
|
175
|
-
matDialogRef.afterClosed().subscribe(() => resizableDraggableDialog.detach());
|
176
|
-
```
|
177
|
-
|
178
|
-
# TdWindowDialogComponent
|
179
|
-
|
180
|
-
A component that can be utilized to create a dialog with a toolbar
|
181
|
-
|
182
|
-
## API Summary
|
183
|
-
|
184
|
-
#### Inputs
|
185
|
-
|
186
|
-
- title: string
|
187
|
-
- Title that appears in toolbar
|
188
|
-
- closeLabel: string
|
189
|
-
- Label to be used on close button
|
190
|
-
- toolbarColor: ThemePalette
|
191
|
-
- Toolbar color
|
192
|
-
|
193
|
-
#### Outputs
|
194
|
-
|
195
|
-
- closed: string
|
196
|
-
- Emitted when close button is clicked
|
197
|
-
|
198
|
-
## Usage
|
199
|
-
|
200
|
-
```ts
|
201
|
-
@Component({
|
202
|
-
template: `
|
203
|
-
<td-window-dialog
|
204
|
-
[title]="'Title'"
|
205
|
-
[toolbarColor]="'accent'"
|
206
|
-
[closeLabel]="'Close'"
|
207
|
-
(closed)="closed.emit()"
|
208
|
-
>
|
209
|
-
<p>Comes with a handy toolbar</p>
|
210
|
-
</td-window-dialog>
|
211
|
-
`,
|
212
|
-
})
|
213
|
-
export class DraggableResizableWindowDialogComponent {
|
214
|
-
@Output() closed: EventEmitter<void> = new EventEmitter();
|
215
|
-
}
|
216
|
-
```
|
217
|
-
|
218
|
-
```ts
|
219
|
-
const matDialogRef: MatDialogRef<DraggableResizableWindowDialogComponent> =
|
220
|
-
this._dialogService.open(DraggableResizableWindowDialogComponent);
|
221
|
-
// listen to close event
|
222
|
-
matDialogRef.componentInstance.closed.subscribe(() => matDialogRef.close());
|
223
|
-
```
|
@@ -1,92 +0,0 @@
|
|
1
|
-
import { Component, ElementRef, HostBinding, ChangeDetectionStrategy, ChangeDetectorRef, } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "@angular/common";
|
4
|
-
import * as i2 from "@angular/material/icon";
|
5
|
-
export class TdBreadcrumbComponent {
|
6
|
-
// Sets the icon url shown between breadcrumbs. Defaults to 'chevron_right'
|
7
|
-
get separatorIcon() {
|
8
|
-
return this._separatorIcon;
|
9
|
-
}
|
10
|
-
set separatorIcon(separatorIcon) {
|
11
|
-
this._separatorIcon = separatorIcon;
|
12
|
-
setTimeout(() => {
|
13
|
-
this._changeDetectorRef.markForCheck();
|
14
|
-
});
|
15
|
-
}
|
16
|
-
// Should show the right chevron or not before the label
|
17
|
-
get displayIcon() {
|
18
|
-
return this._displayIcon;
|
19
|
-
}
|
20
|
-
set displayIcon(displayIcon) {
|
21
|
-
this._displayIcon = displayIcon;
|
22
|
-
setTimeout(() => {
|
23
|
-
this._changeDetectorRef.markForCheck();
|
24
|
-
});
|
25
|
-
}
|
26
|
-
get displayCrumb() {
|
27
|
-
return this._displayCrumb;
|
28
|
-
}
|
29
|
-
/**
|
30
|
-
* Whether to display the crumb or not
|
31
|
-
*/
|
32
|
-
set displayCrumb(shouldDisplay) {
|
33
|
-
this._displayCrumb = shouldDisplay;
|
34
|
-
setTimeout(() => {
|
35
|
-
this._changeDetectorRef.markForCheck();
|
36
|
-
});
|
37
|
-
}
|
38
|
-
/**
|
39
|
-
* Width of the DOM element of the crumb
|
40
|
-
*/
|
41
|
-
get width() {
|
42
|
-
return this._width;
|
43
|
-
}
|
44
|
-
/**
|
45
|
-
* Gets the display style of the crumb
|
46
|
-
*/
|
47
|
-
get displayBinding() {
|
48
|
-
// Set the display to none on the component, just in case the end user is hiding
|
49
|
-
// and showing them instead of the component doing itself for reasons like responsive
|
50
|
-
return this._displayCrumb ? undefined : 'none';
|
51
|
-
}
|
52
|
-
constructor(_elementRef, _changeDetectorRef) {
|
53
|
-
this._elementRef = _elementRef;
|
54
|
-
this._changeDetectorRef = _changeDetectorRef;
|
55
|
-
this._displayCrumb = true;
|
56
|
-
this._width = 0;
|
57
|
-
this._displayIcon = true;
|
58
|
-
this._separatorIcon = 'chevron_right';
|
59
|
-
this.matButtonClass = true;
|
60
|
-
this.tdBreadCrumbClass = true;
|
61
|
-
}
|
62
|
-
ngAfterViewInit() {
|
63
|
-
// set the width from the actual rendered DOM element
|
64
|
-
setTimeout(() => {
|
65
|
-
this._width = (this._elementRef.nativeElement).getBoundingClientRect().width;
|
66
|
-
this._changeDetectorRef.markForCheck();
|
67
|
-
});
|
68
|
-
}
|
69
|
-
/**
|
70
|
-
* Stop click propagation when clicking on icon
|
71
|
-
*/
|
72
|
-
_handleIconClick(event) {
|
73
|
-
event.stopPropagation();
|
74
|
-
event.preventDefault();
|
75
|
-
}
|
76
|
-
}
|
77
|
-
TdBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdBreadcrumbComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
78
|
-
TdBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdBreadcrumbComponent, selector: "td-breadcrumb, a[td-breadcrumb]", host: { properties: { "class.mdc-button": "this.matButtonClass", "class.td-breadcrumb": "this.tdBreadCrumbClass", "style.display": "this.displayBinding" } }, ngImport: i0, template: "<ng-content></ng-content>\n<mat-icon\n *ngIf=\"displayIcon\"\n class=\"td-breadcrumb-separator-icon\"\n [style.cursor]=\"'default'\"\n (click)=\"_handleIconClick($event)\"\n >{{ separatorIcon }}</mat-icon\n>\n", styles: [":host.td-breadcrumb{display:inline-block;box-sizing:border-box;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:flex-end}:host.td-breadcrumb ::ng-deep>*{margin:0 10px}:host .td-breadcrumb-separator-icon{display:inline-flex;vertical-align:middle}:host.mat-button{min-width:0;padding:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdBreadcrumbComponent, decorators: [{
|
80
|
-
type: Component,
|
81
|
-
args: [{ selector: 'td-breadcrumb, a[td-breadcrumb]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n<mat-icon\n *ngIf=\"displayIcon\"\n class=\"td-breadcrumb-separator-icon\"\n [style.cursor]=\"'default'\"\n (click)=\"_handleIconClick($event)\"\n >{{ separatorIcon }}</mat-icon\n>\n", styles: [":host.td-breadcrumb{display:inline-block;box-sizing:border-box;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:flex-end}:host.td-breadcrumb ::ng-deep>*{margin:0 10px}:host .td-breadcrumb-separator-icon{display:inline-flex;vertical-align:middle}:host.mat-button{min-width:0;padding:0}\n"] }]
|
82
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { matButtonClass: [{
|
83
|
-
type: HostBinding,
|
84
|
-
args: ['class.mdc-button']
|
85
|
-
}], tdBreadCrumbClass: [{
|
86
|
-
type: HostBinding,
|
87
|
-
args: ['class.td-breadcrumb']
|
88
|
-
}], displayBinding: [{
|
89
|
-
type: HostBinding,
|
90
|
-
args: ['style.display']
|
91
|
-
}] } });
|
92
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvYnJlYWRjcnVtYnMvc3JjL2JyZWFkY3J1bWIvYnJlYWRjcnVtYi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvYnJlYWRjcnVtYnMvc3JjL2JyZWFkY3J1bWIvYnJlYWRjcnVtYi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULFVBQVUsRUFDVixXQUFXLEVBRVgsdUJBQXVCLEVBQ3ZCLGlCQUFpQixHQUNsQixNQUFNLGVBQWUsQ0FBQzs7OztBQVF2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