@natec/mef-dev-ui-kit 20.0.0-beta.1 → 20.0.1
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/fesm2022/natec-mef-dev-ui-kit.mjs +9541 -0
- package/fesm2022/natec-mef-dev-ui-kit.mjs.map +1 -0
- package/index.d.ts +4418 -0
- package/index.d.ts.map +1 -0
- package/package.json +44 -48
- package/src/lib/styles/core.scss +51 -195
- package/src/lib/styles/pg/modules/_typography.scss +1 -8
- package/src/lib/styles/pg/vendor/ng-datatable.scss +7 -0
- package/src/lib/styles/vars.scss +8 -8
- package/documentation/classes/FiltredItemModel.html +0 -358
- package/documentation/classes/TabChangeEvent.html +0 -231
- package/documentation/components/CardComponent.html +0 -576
- package/documentation/components/CardLongComponent.html +0 -712
- package/documentation/components/CardSimpleComponent.html +0 -372
- package/documentation/components/CentralPageComponent.html +0 -312
- package/documentation/components/CentralPageRowComponent.html +0 -244
- package/documentation/components/CollapseComponent.html +0 -755
- package/documentation/components/CollapseSetComponent.html +0 -767
- package/documentation/components/DatepickerComponent.html +0 -1397
- package/documentation/components/FillComponent.html +0 -736
- package/documentation/components/FilteredFieldContainerComponent.html +0 -513
- package/documentation/components/FilteredFieldItemComponent.html +0 -451
- package/documentation/components/HelpBlockComponent.html +0 -398
- package/documentation/components/ManagePageComponent.html +0 -423
- package/documentation/components/MefDevOptionComponent.html +0 -689
- package/documentation/components/MefDevProgressComponent.html +0 -562
- package/documentation/components/MefDevSelectComponent.html +0 -4797
- package/documentation/components/MefDevSliderComponent.html +0 -686
- package/documentation/components/MefDevSpecFlowTestComponent.html +0 -474
- package/documentation/components/MefDevSwitchComponent.html +0 -1480
- package/documentation/components/MefDevTabBodyComponent.html +0 -271
- package/documentation/components/MefDevTabComponent.html +0 -681
- package/documentation/components/MefDevTabSetComponent.html +0 -1889
- package/documentation/components/MefDevTabsNavComponent.html +0 -2013
- package/documentation/components/MefdevExecutorPageComponent.html +0 -497
- package/documentation/components/ProfileComponent.html +0 -608
- package/documentation/components/RightFilterComponent.html +0 -423
- package/documentation/components/SlideRightComponent.html +0 -762
- package/documentation/components/SlideUpComponent.html +0 -692
- package/documentation/components/StepExecutorComponent.html +0 -1437
- package/documentation/components/TablePageComponent.html +0 -327
- package/documentation/dependencies.html +0 -135
- package/documentation/directives/MefDevTabLabelDirective.html +0 -532
- package/documentation/directives/MefDevTabsInkBarDirective.html +0 -865
- package/documentation/fonts/ionicons.eot +0 -0
- package/documentation/fonts/ionicons.svg +0 -2090
- package/documentation/fonts/ionicons.ttf +0 -0
- package/documentation/fonts/ionicons.woff +0 -0
- package/documentation/fonts/ionicons.woff2 +0 -0
- package/documentation/fonts/roboto-v15-latin-300.eot +0 -0
- package/documentation/fonts/roboto-v15-latin-300.svg +0 -314
- package/documentation/fonts/roboto-v15-latin-300.ttf +0 -0
- package/documentation/fonts/roboto-v15-latin-300.woff +0 -0
- package/documentation/fonts/roboto-v15-latin-300.woff2 +0 -0
- package/documentation/fonts/roboto-v15-latin-700.eot +0 -0
- package/documentation/fonts/roboto-v15-latin-700.svg +0 -310
- package/documentation/fonts/roboto-v15-latin-700.ttf +0 -0
- package/documentation/fonts/roboto-v15-latin-700.woff +0 -0
- package/documentation/fonts/roboto-v15-latin-700.woff2 +0 -0
- package/documentation/fonts/roboto-v15-latin-italic.eot +0 -0
- package/documentation/fonts/roboto-v15-latin-italic.svg +0 -323
- package/documentation/fonts/roboto-v15-latin-italic.ttf +0 -0
- package/documentation/fonts/roboto-v15-latin-italic.woff +0 -0
- package/documentation/fonts/roboto-v15-latin-italic.woff2 +0 -0
- package/documentation/fonts/roboto-v15-latin-regular.eot +0 -0
- package/documentation/fonts/roboto-v15-latin-regular.svg +0 -308
- package/documentation/fonts/roboto-v15-latin-regular.ttf +0 -0
- package/documentation/fonts/roboto-v15-latin-regular.woff +0 -0
- package/documentation/fonts/roboto-v15-latin-regular.woff2 +0 -0
- package/documentation/graph/dependencies.svg +0 -1160
- package/documentation/images/compodoc-vectorise-inverted.png +0 -0
- package/documentation/images/compodoc-vectorise-inverted.svg +0 -201
- package/documentation/images/compodoc-vectorise.png +0 -0
- package/documentation/images/compodoc-vectorise.svg +0 -201
- package/documentation/images/favicon.ico +0 -0
- package/documentation/index.html +0 -246
- package/documentation/injectables/FilteredFieldService.html +0 -420
- package/documentation/injectables/ProgressConfig.html +0 -236
- package/documentation/interfaces/AnimatedInterface.html +0 -246
- package/documentation/js/compodoc.js +0 -14
- package/documentation/js/lazy-load-graphs.js +0 -44
- package/documentation/js/libs/EventDispatcher.js +0 -5
- package/documentation/js/libs/bootstrap-native.js +0 -1
- package/documentation/js/libs/clipboard.min.js +0 -7
- package/documentation/js/libs/custom-elements-es5-adapter.js +0 -15
- package/documentation/js/libs/custom-elements.min.js +0 -38
- package/documentation/js/libs/d3.v3.min.js +0 -2
- package/documentation/js/libs/deep-iterator.js +0 -2
- package/documentation/js/libs/es6-shim.min.js +0 -11
- package/documentation/js/libs/htmlparser.js +0 -23
- package/documentation/js/libs/innersvg.js +0 -9
- package/documentation/js/libs/lit-html.js +0 -1
- package/documentation/js/libs/prism.js +0 -46
- package/documentation/js/libs/promise.min.js +0 -6
- package/documentation/js/libs/svg-pan-zoom.min.js +0 -3
- package/documentation/js/libs/tablesort.min.js +0 -6
- package/documentation/js/libs/tablesort.number.min.js +0 -6
- package/documentation/js/libs/vis.min.js +0 -47
- package/documentation/js/libs/zepto.min.js +0 -2
- package/documentation/js/menu-wc.js +0 -455
- package/documentation/js/menu-wc_es5.js +0 -42
- package/documentation/js/menu.js +0 -325
- package/documentation/js/routes.js +0 -301
- package/documentation/js/search/lunr.min.js +0 -6
- package/documentation/js/search/search-lunr.js +0 -67
- package/documentation/js/search/search.js +0 -268
- package/documentation/js/search/search_index.js +0 -4
- package/documentation/js/sourceCode.js +0 -58
- package/documentation/js/svg-pan-zoom.controls.js +0 -53
- package/documentation/js/tabs.js +0 -21
- package/documentation/js/tree.js +0 -147
- package/documentation/miscellaneous/enumerations.html +0 -223
- package/documentation/miscellaneous/functions.html +0 -251
- package/documentation/miscellaneous/typealiases.html +0 -257
- package/documentation/miscellaneous/variables.html +0 -357
- package/documentation/modules/MefDevCardModule/dependencies.svg +0 -142
- package/documentation/modules/MefDevCardModule.html +0 -349
- package/documentation/modules/MefDevCollapseModule/dependencies.svg +0 -90
- package/documentation/modules/MefDevCollapseModule.html +0 -316
- package/documentation/modules/MefDevDatepickerModule/dependencies.svg +0 -82
- package/documentation/modules/MefDevDatepickerModule.html +0 -274
- package/documentation/modules/MefDevFilteredFieldModule/dependencies.svg +0 -90
- package/documentation/modules/MefDevFilteredFieldModule.html +0 -278
- package/documentation/modules/MefDevHelpBlockModule/dependencies.svg +0 -82
- package/documentation/modules/MefDevHelpBlockModule.html +0 -274
- package/documentation/modules/MefDevModalModule/dependencies.svg +0 -154
- package/documentation/modules/MefDevModalModule.html +0 -364
- package/documentation/modules/MefDevPageLayoutsModule/dependencies.svg +0 -162
- package/documentation/modules/MefDevPageLayoutsModule.html +0 -368
- package/documentation/modules/MefDevProgressModule/dependencies.svg +0 -66
- package/documentation/modules/MefDevProgressModule.html +0 -286
- package/documentation/modules/MefDevSelectModule/dependencies.svg +0 -140
- package/documentation/modules/MefDevSelectModule.html +0 -334
- package/documentation/modules/MefDevSliderModule/dependencies.svg +0 -66
- package/documentation/modules/MefDevSliderModule.html +0 -248
- package/documentation/modules/MefDevSpecFlowTestModule/dependencies.svg +0 -66
- package/documentation/modules/MefDevSpecFlowTestModule.html +0 -286
- package/documentation/modules/MefDevStepExecutorModule/dependencies.svg +0 -106
- package/documentation/modules/MefDevStepExecutorModule.html +0 -304
- package/documentation/modules/MefDevSwitchModule/dependencies.svg +0 -88
- package/documentation/modules/MefDevSwitchModule.html +0 -270
- package/documentation/modules/MefDevTabsModule/dependencies.svg +0 -186
- package/documentation/modules/MefDevTabsModule.html +0 -398
- package/documentation/modules.html +0 -357
- package/documentation/overview.html +0 -1351
- package/documentation/pipes/OptionPipe.html +0 -238
- package/documentation/properties.html +0 -125
- package/documentation/styles/bootstrap-card.css +0 -219
- package/documentation/styles/bootstrap.min.css +0 -6
- package/documentation/styles/compodoc.css +0 -1121
- package/documentation/styles/dark.css +0 -121
- package/documentation/styles/ionicons.min.css +0 -11
- package/documentation/styles/laravel.css +0 -113
- package/documentation/styles/material.css +0 -131
- package/documentation/styles/original.css +0 -51
- package/documentation/styles/postmark.css +0 -238
- package/documentation/styles/prism.css +0 -301
- package/documentation/styles/readthedocs.css +0 -117
- package/documentation/styles/reset.css +0 -129
- package/documentation/styles/stripe.css +0 -106
- package/documentation/styles/style.css +0 -7
- package/documentation/styles/tablesort.css +0 -33
- package/documentation/styles/vagrant.css +0 -130
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -18
- package/src/lib/markup-kit/card/card/card.component.html +0 -44
- package/src/lib/markup-kit/card/card/card.component.scss +0 -65
- package/src/lib/markup-kit/card/card/card.component.ts +0 -109
- package/src/lib/markup-kit/card/card-long/card-long.component.html +0 -53
- package/src/lib/markup-kit/card/card-long/card-long.component.scss +0 -72
- package/src/lib/markup-kit/card/card-long/card-long.component.ts +0 -158
- package/src/lib/markup-kit/card/card-long/cart-type-colors.enum.ts +0 -5
- package/src/lib/markup-kit/card/card-simple/card-simple.component.html +0 -12
- package/src/lib/markup-kit/card/card-simple/card-simple.component.scss +0 -12
- package/src/lib/markup-kit/card/card-simple/card-simple.component.ts +0 -48
- package/src/lib/markup-kit/card/card.module.ts +0 -21
- package/src/lib/markup-kit/card/index.ts +0 -6
- package/src/lib/markup-kit/collapse/collapse/collapse.component.html +0 -17
- package/src/lib/markup-kit/collapse/collapse/collapse.component.scss +0 -17
- package/src/lib/markup-kit/collapse/collapse/collapse.component.ts +0 -131
- package/src/lib/markup-kit/collapse/collapse-set/collapse-set.component.html +0 -3
- package/src/lib/markup-kit/collapse/collapse-set/collapse-set.component.scss +0 -0
- package/src/lib/markup-kit/collapse/collapse-set/collapse-set.component.ts +0 -110
- package/src/lib/markup-kit/collapse/collapse.module.ts +0 -20
- package/src/lib/markup-kit/collapse/index.ts +0 -3
- package/src/lib/markup-kit/executors/index.ts +0 -4
- package/src/lib/markup-kit/executors/mefdev-executor-page/mefdev-executor-page.component.ts +0 -111
- package/src/lib/markup-kit/executors/stage/stage.component.html +0 -23
- package/src/lib/markup-kit/executors/stage/stage.component.scss +0 -9
- package/src/lib/markup-kit/executors/stage/stage.component.ts +0 -21
- package/src/lib/markup-kit/executors/step-executor/step-executor.component.html +0 -127
- package/src/lib/markup-kit/executors/step-executor/step-executor.component.scss +0 -225
- package/src/lib/markup-kit/executors/step-executor/step-executor.component.ts +0 -295
- package/src/lib/markup-kit/executors/step-executor.module.ts +0 -27
- package/src/lib/markup-kit/modals/fill/fill.component.html +0 -15
- package/src/lib/markup-kit/modals/fill/fill.component.scss +0 -42
- package/src/lib/markup-kit/modals/fill/fill.component.ts +0 -126
- package/src/lib/markup-kit/modals/index.ts +0 -6
- package/src/lib/markup-kit/modals/markup-kit.module.ts +0 -25
- package/src/lib/markup-kit/modals/modal-size.enum.ts +0 -5
- package/src/lib/markup-kit/modals/right-filter/right-filter.component.html +0 -11
- package/src/lib/markup-kit/modals/right-filter/right-filter.component.scss +0 -15
- package/src/lib/markup-kit/modals/right-filter/right-filter.component.ts +0 -49
- package/src/lib/markup-kit/modals/slide-right/slide-right.component.html +0 -14
- package/src/lib/markup-kit/modals/slide-right/slide-right.component.scss +0 -42
- package/src/lib/markup-kit/modals/slide-right/slide-right.component.ts +0 -121
- package/src/lib/markup-kit/modals/slide-up/slide-up.component.html +0 -15
- package/src/lib/markup-kit/modals/slide-up/slide-up.component.scss +0 -47
- package/src/lib/markup-kit/modals/slide-up/slide-up.component.ts +0 -105
- package/src/lib/markup-kit/page-layouts/central-page/central-page.component.html +0 -6
- package/src/lib/markup-kit/page-layouts/central-page/central-page.component.scss +0 -10
- package/src/lib/markup-kit/page-layouts/central-page/central-page.component.ts +0 -58
- package/src/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.html +0 -3
- package/src/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.scss +0 -5
- package/src/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.ts +0 -30
- package/src/lib/markup-kit/page-layouts/index.ts +0 -6
- package/src/lib/markup-kit/page-layouts/manage-page/manage-page.component.html +0 -10
- package/src/lib/markup-kit/page-layouts/manage-page/manage-page.component.scss +0 -33
- package/src/lib/markup-kit/page-layouts/manage-page/manage-page.component.ts +0 -70
- package/src/lib/markup-kit/page-layouts/page-layouts.module.ts +0 -26
- package/src/lib/markup-kit/page-layouts/profile/profile.component.html +0 -31
- package/src/lib/markup-kit/page-layouts/profile/profile.component.scss +0 -99
- package/src/lib/markup-kit/page-layouts/profile/profile.component.ts +0 -129
- package/src/lib/markup-kit/page-layouts/table-page/table-page.component.html +0 -9
- package/src/lib/markup-kit/page-layouts/table-page/table-page.component.scss +0 -0
- package/src/lib/markup-kit/page-layouts/table-page/table-page.component.ts +0 -42
- package/src/lib/markup-kit/slider/index.ts +0 -2
- package/src/lib/markup-kit/slider/slider/slider.component.html +0 -11
- package/src/lib/markup-kit/slider/slider/slider.component.scss +0 -106
- package/src/lib/markup-kit/slider/slider/slider.component.ts +0 -124
- package/src/lib/markup-kit/slider/slider.module.ts +0 -20
- package/src/lib/markup-kit/utils/datepicker/datepicker/datepicker.component.html +0 -87
- package/src/lib/markup-kit/utils/datepicker/datepicker/datepicker.component.scss +0 -132
- package/src/lib/markup-kit/utils/datepicker/datepicker/datepicker.component.ts +0 -643
- package/src/lib/markup-kit/utils/datepicker/datepicker.module.ts +0 -15
- package/src/lib/markup-kit/utils/datepicker/index.ts +0 -2
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.html +0 -3
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.scss +0 -4
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.ts +0 -79
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.html +0 -4
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.scss +0 -12
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.ts +0 -75
- package/src/lib/markup-kit/utils/filtered-field/filtered-field.module.ts +0 -19
- package/src/lib/markup-kit/utils/filtered-field/filtered-field.service.ts +0 -44
- package/src/lib/markup-kit/utils/filtered-field/filtred-item.model.ts +0 -15
- package/src/lib/markup-kit/utils/filtered-field/index.ts +0 -5
- package/src/lib/markup-kit/utils/help-block/help-block.component.html +0 -19
- package/src/lib/markup-kit/utils/help-block/help-block.component.scss +0 -22
- package/src/lib/markup-kit/utils/help-block/help-block.component.ts +0 -70
- package/src/lib/markup-kit/utils/help-block/hepl-block.module.ts +0 -14
- package/src/lib/markup-kit/utils/help-block/index.ts +0 -2
- package/src/lib/pg-components/card/card.components.html +0 -66
- package/src/lib/pg-components/card/card.components.ts +0 -451
- package/src/lib/pg-components/card/card.module.ts +0 -17
- package/src/lib/pg-components/card/index.ts +0 -2
- package/src/lib/pg-components/progress/index.ts +0 -3
- package/src/lib/pg-components/progress/progress.component.html +0 -28
- package/src/lib/pg-components/progress/progress.component.ts +0 -73
- package/src/lib/pg-components/progress/progress.config.ts +0 -7
- package/src/lib/pg-components/progress/progress.module.ts +0 -16
- package/src/lib/pg-components/select/index.ts +0 -4
- package/src/lib/pg-components/select/option.component.html +0 -1
- package/src/lib/pg-components/select/option.component.ts +0 -105
- package/src/lib/pg-components/select/option.pipe.ts +0 -44
- package/src/lib/pg-components/select/select.component.html +0 -83
- package/src/lib/pg-components/select/select.component.ts +0 -814
- package/src/lib/pg-components/select/select.module.ts +0 -14
- package/src/lib/pg-components/spec-flow-test/index.ts +0 -2
- package/src/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.html +0 -6
- package/src/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.scss +0 -0
- package/src/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.ts +0 -37
- package/src/lib/pg-components/spec-flow-test/spec-flow-test.module.ts +0 -18
- package/src/lib/pg-components/switch/index.ts +0 -2
- package/src/lib/pg-components/switch/switch.component.html +0 -10
- package/src/lib/pg-components/switch/switch.component.ts +0 -286
- package/src/lib/pg-components/switch/switch.module.ts +0 -11
- package/src/lib/pg-components/tabs/index.ts +0 -7
- package/src/lib/pg-components/tabs/tab-body.component.html +0 -1
- package/src/lib/pg-components/tabs/tab-body.component.ts +0 -17
- package/src/lib/pg-components/tabs/tab-label.directive.ts +0 -41
- package/src/lib/pg-components/tabs/tab.component.html +0 -3
- package/src/lib/pg-components/tabs/tab.component.ts +0 -109
- package/src/lib/pg-components/tabs/tabs-ink-bar.directive.ts +0 -78
- package/src/lib/pg-components/tabs/tabs-nav.component.html +0 -20
- package/src/lib/pg-components/tabs/tabs-nav.component.ts +0 -324
- package/src/lib/pg-components/tabs/tabs.module.ts +0 -15
- package/src/lib/pg-components/tabs/tabset.component.html +0 -39
- package/src/lib/pg-components/tabs/tabset.component.ts +0 -270
- package/src/lib/pg-components/util/convert.ts +0 -3
- package/src/lib/pg-components/util/request-animation.ts +0 -31
- package/src/lib/v2/autocomplete/autocomplete-origin.ts +0 -12
- package/src/lib/v2/autocomplete/autocomplete.html +0 -17
- package/src/lib/v2/autocomplete/autocomplete.module.ts +0 -28
- package/src/lib/v2/autocomplete/autocomplete.scss +0 -62
- package/src/lib/v2/autocomplete/autocomplete.trigger.ts +0 -759
- package/src/lib/v2/autocomplete/autocomplete.ts +0 -201
- package/src/lib/v2/autocomplete/index.ts +0 -1
- package/src/lib/v2/card/card-header.html +0 -9
- package/src/lib/v2/card/card-title-group.html +0 -15
- package/src/lib/v2/card/card.html +0 -1
- package/src/lib/v2/card/card.module.ts +0 -40
- package/src/lib/v2/card/card.scss +0 -185
- package/src/lib/v2/card/card.ts +0 -274
- package/src/lib/v2/card/index.ts +0 -2
- package/src/lib/v2/checkbox/checkbox.html +0 -38
- package/src/lib/v2/checkbox/checkbox.module.ts +0 -8
- package/src/lib/v2/checkbox/checkbox.scss +0 -318
- package/src/lib/v2/checkbox/checkbox.ts +0 -507
- package/src/lib/v2/checkbox/index.ts +0 -1
- package/src/lib/v2/chips/chip-action.ts +0 -102
- package/src/lib/v2/chips/chip-edit-input.ts +0 -44
- package/src/lib/v2/chips/chip-grid.ts +0 -412
- package/src/lib/v2/chips/chip-icons.ts +0 -91
- package/src/lib/v2/chips/chip-input.ts +0 -208
- package/src/lib/v2/chips/chip-listbox.ts +0 -291
- package/src/lib/v2/chips/chip-option.html +0 -37
- package/src/lib/v2/chips/chip-option.ts +0 -163
- package/src/lib/v2/chips/chip-row.html +0 -42
- package/src/lib/v2/chips/chip-row.ts +0 -191
- package/src/lib/v2/chips/chip-set.scss +0 -86
- package/src/lib/v2/chips/chip-set.ts +0 -261
- package/src/lib/v2/chips/chip-text-control.ts +0 -15
- package/src/lib/v2/chips/chip.html +0 -21
- package/src/lib/v2/chips/chip.scss +0 -646
- package/src/lib/v2/chips/chip.ts +0 -281
- package/src/lib/v2/chips/chips-module.ts +0 -44
- package/src/lib/v2/chips/index.ts +0 -12
- package/src/lib/v2/chips/tokens.ts +0 -29
- package/src/lib/v2/collapse/accordion-base.ts +0 -20
- package/src/lib/v2/collapse/accordion.ts +0 -92
- package/src/lib/v2/collapse/collapse.module.ts +0 -22
- package/src/lib/v2/collapse/expansion-panel-base.ts +0 -10
- package/src/lib/v2/collapse/expansion-panel-content.ts +0 -12
- package/src/lib/v2/collapse/expansion-panel-header.html +0 -17
- package/src/lib/v2/collapse/expansion-panel-header.scss +0 -165
- package/src/lib/v2/collapse/expansion-panel-header.ts +0 -237
- package/src/lib/v2/collapse/expansion-panel.html +0 -14
- package/src/lib/v2/collapse/expansion-panel.scss +0 -113
- package/src/lib/v2/collapse/expansion-panel.ts +0 -279
- package/src/lib/v2/collapse/index.ts +0 -7
- package/src/lib/v2/executors/index.ts +0 -10
- package/src/lib/v2/executors/step-content.ts +0 -19
- package/src/lib/v2/executors/step-footer.ts +0 -7
- package/src/lib/v2/executors/step-header.html +0 -59
- package/src/lib/v2/executors/step-header.scss +0 -205
- package/src/lib/v2/executors/step-header.ts +0 -151
- package/src/lib/v2/executors/step-label.ts +0 -16
- package/src/lib/v2/executors/step.html +0 -4
- package/src/lib/v2/executors/stepper-button.ts +0 -40
- package/src/lib/v2/executors/stepper-icon.ts +0 -42
- package/src/lib/v2/executors/stepper-intl.ts +0 -46
- package/src/lib/v2/executors/stepper-module.ts +0 -42
- package/src/lib/v2/executors/stepper.html +0 -90
- package/src/lib/v2/executors/stepper.scss +0 -299
- package/src/lib/v2/executors/stepper.ts +0 -360
- package/src/lib/v2/modals/dialog-config.ts +0 -56
- package/src/lib/v2/modals/dialog-container.html +0 -5
- package/src/lib/v2/modals/dialog-container.ts +0 -243
- package/src/lib/v2/modals/dialog-content-directives.ts +0 -217
- package/src/lib/v2/modals/dialog-ref.ts +0 -242
- package/src/lib/v2/modals/dialog.scss +0 -307
- package/src/lib/v2/modals/dialog.ts +0 -239
- package/src/lib/v2/modals/index.ts +0 -11
- package/src/lib/v2/modals/modal-module.ts +0 -23
- package/src/lib/v2/radio-button/public-api.ts +0 -2
- package/src/lib/v2/radio-button/radio.html +0 -25
- package/src/lib/v2/radio-button/radio.module.ts +0 -8
- package/src/lib/v2/radio-button/radio.scss +0 -298
- package/src/lib/v2/radio-button/radio.ts +0 -640
- package/src/lib/v2/select/index.ts +0 -5
- package/src/lib/v2/select/option-group.html +0 -9
- package/src/lib/v2/select/option-group.scss +0 -33
- package/src/lib/v2/select/option-group.ts +0 -66
- package/src/lib/v2/select/option-module.ts +0 -11
- package/src/lib/v2/select/option.html +0 -22
- package/src/lib/v2/select/option.scss +0 -59
- package/src/lib/v2/select/option.ts +0 -288
- package/src/lib/v2/select/pseudo-checkbox-module.ts +0 -9
- package/src/lib/v2/select/pseudo-checkbox.scss +0 -121
- package/src/lib/v2/select/pseudo-checkbox.ts +0 -60
- package/src/lib/v2/select/select.html +0 -56
- package/src/lib/v2/select/select.module.ts +0 -14
- package/src/lib/v2/select/select.scss +0 -118
- package/src/lib/v2/select/select.ts +0 -824
- package/src/lib/v2/switch/base-editor-helper.ts +0 -148
- package/src/lib/v2/switch/index.ts +0 -2
- package/src/lib/v2/switch/switch.component.html +0 -15
- package/src/lib/v2/switch/switch.component.scss +0 -93
- package/src/lib/v2/switch/switch.component.ts +0 -203
- package/src/lib/v2/switch/switch.module.ts +0 -10
- package/src/lib/v2/tabs/config.ts +0 -94
- package/src/lib/v2/tabs/index.ts +0 -28
- package/src/lib/v2/tabs/ink-bar.ts +0 -226
- package/src/lib/v2/tabs/paginated-tab-header.ts +0 -536
- package/src/lib/v2/tabs/tab-body.html +0 -9
- package/src/lib/v2/tabs/tab-body.scss +0 -60
- package/src/lib/v2/tabs/tab-body.ts +0 -310
- package/src/lib/v2/tabs/tab-content.ts +0 -12
- package/src/lib/v2/tabs/tab-group.html +0 -74
- package/src/lib/v2/tabs/tab-group.scss +0 -362
- package/src/lib/v2/tabs/tab-group.ts +0 -491
- package/src/lib/v2/tabs/tab-header.html +0 -35
- package/src/lib/v2/tabs/tab-header.scss +0 -127
- package/src/lib/v2/tabs/tab-header.ts +0 -91
- package/src/lib/v2/tabs/tab-label-wrapper.ts +0 -49
- package/src/lib/v2/tabs/tab-label.ts +0 -34
- package/src/lib/v2/tabs/tab.html +0 -1
- package/src/lib/v2/tabs/tab.ts +0 -155
- package/src/lib/v2/tabs/tabs.module.ts +0 -12
- package/src/public-api.ts +0 -33
- package/tsconfig.doc.json +0 -4
- package/tsconfig.lib.json +0 -19
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
package/index.d.ts
ADDED
|
@@ -0,0 +1,4418 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, EventEmitter, ElementRef, ModuleWithProviders, OnInit, AfterContentInit, AfterContentChecked, Renderer2, ChangeDetectorRef, OnDestroy, PipeTransform, AfterViewChecked, OnChanges, SimpleChanges, AfterViewInit, NgZone, QueryList, InjectionToken, ViewContainerRef, Injector, ComponentRef, Optional } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { Observable, Subscription, Subject } from 'rxjs';
|
|
5
|
+
import * as i6 from '@angular/cdk/overlay';
|
|
6
|
+
import { CdkConnectedOverlay, ConnectedOverlayPositionChange, ScrollStrategy, ComponentType, ViewportRuler, Overlay, ConnectedPosition } from '@angular/cdk/overlay';
|
|
7
|
+
import * as i5 from '@angular/forms';
|
|
8
|
+
import { ControlValueAccessor, AbstractControl, FormGroupDirective, NgForm, NgControl } from '@angular/forms';
|
|
9
|
+
import { Directionality, Direction } from '@angular/cdk/bidi';
|
|
10
|
+
import { FocusableOption, FocusOrigin, ActiveDescendantKeyManager, FocusKeyManager } from '@angular/cdk/a11y';
|
|
11
|
+
import { CdkAccordion, CdkAccordionItem } from '@angular/cdk/accordion';
|
|
12
|
+
import * as i3 from '@angular/cdk/portal';
|
|
13
|
+
import { TemplatePortal, ComponentPortal, CdkPortalOutlet, CdkPortal } from '@angular/cdk/portal';
|
|
14
|
+
import * as i1$1 from '@angular/cdk/dialog';
|
|
15
|
+
import { DialogConfig, CdkDialogContainer, DialogRef, Dialog } from '@angular/cdk/dialog';
|
|
16
|
+
import * as i1 from '@angular/cdk/scrolling';
|
|
17
|
+
import * as i3$1 from '@angular/cdk/stepper';
|
|
18
|
+
import { CdkStepLabel, StepState, CdkStepHeader, CdkStep, CdkStepper, CdkStepperNext, CdkStepperPrevious } from '@angular/cdk/stepper';
|
|
19
|
+
export { StepState, StepperOrientation } from '@angular/cdk/stepper';
|
|
20
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Component for displaying a collapsible content.
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* Example of usage:
|
|
27
|
+
*```
|
|
28
|
+
* <mefdev-collapse [Disabled]="false" [Active]="true" (stateChange)="onStateChange($event)">
|
|
29
|
+
* <ng-template #CardTitle>
|
|
30
|
+
* <!-- Content for the card title -->
|
|
31
|
+
* <h3>Card Title</h3>
|
|
32
|
+
* </ng-template>
|
|
33
|
+
*
|
|
34
|
+
* <!-- Content for the collapsible section -->
|
|
35
|
+
* <div>
|
|
36
|
+
Content inside collapse
|
|
37
|
+
* </div>
|
|
38
|
+
* </mefdev-collapse>
|
|
39
|
+
*
|
|
40
|
+
*```
|
|
41
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/collapse</example-url>
|
|
42
|
+
|
|
43
|
+
*/
|
|
44
|
+
declare class CollapseComponent {
|
|
45
|
+
private _collapseSet;
|
|
46
|
+
private _elementRef;
|
|
47
|
+
private _disabled;
|
|
48
|
+
_active: boolean;
|
|
49
|
+
_el: any;
|
|
50
|
+
/**
|
|
51
|
+
* ContentChild for the template of the card title.
|
|
52
|
+
*
|
|
53
|
+
* Example:
|
|
54
|
+
* ```
|
|
55
|
+
* <ng-template #CardTitle>
|
|
56
|
+
* <h3>Card Title</h3>
|
|
57
|
+
* </ng-template>
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
CardTitle: TemplateRef<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Indicates whether the collapse is disabled.
|
|
63
|
+
* Set this to `true` to disable the collapse. Defaults to `false`.
|
|
64
|
+
*/
|
|
65
|
+
set Disabled(value: boolean);
|
|
66
|
+
get Disabled(): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Indicates whether the collapse is active or not.
|
|
69
|
+
*/
|
|
70
|
+
set Active(value: boolean);
|
|
71
|
+
get Active(): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Event emitter for the state change of the collapse.
|
|
74
|
+
* Emits a boolean value indicating whether the collapse is active or not.
|
|
75
|
+
*
|
|
76
|
+
* Example:
|
|
77
|
+
* ```
|
|
78
|
+
* <mefdev-collapse (stateChange)="onStateChange($event)"></mefdev-collapse>
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
stateChange: EventEmitter<boolean>;
|
|
82
|
+
/**
|
|
83
|
+
* Event handler for the header click event.
|
|
84
|
+
* Toggles the active state of the collapse and emits the state change event.
|
|
85
|
+
*
|
|
86
|
+
* @param $event The mouse event object.
|
|
87
|
+
*/
|
|
88
|
+
clickHeader($event: MouseEvent): void;
|
|
89
|
+
constructor(_collapseSet: CollapseSetComponent, _elementRef: ElementRef);
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseComponent, [{ host: true; }, null]>;
|
|
91
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseComponent, "mefdev-collapse", never, { "Disabled": { "alias": "Disabled"; "required": false; }; "Active": { "alias": "Active"; "required": false; }; }, { "stateChange": "stateChange"; }, ["CardTitle"], ["*"], false, never>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Component representing a set of collapsible panels.
|
|
96
|
+
*
|
|
97
|
+
* Example of usage:
|
|
98
|
+
*
|
|
99
|
+
*```
|
|
100
|
+
* <mefdev-collapse-set [Accordion]="true" [Horizontal]="true" [expandAny]="false">
|
|
101
|
+
* <mefdev-collapse [Disabled]="false" [Active]="true">
|
|
102
|
+
* <!-- Content for the collapse panel -->
|
|
103
|
+
* <h3>Panel 1</h3>
|
|
104
|
+
* <p>Panel 1 content...</p>
|
|
105
|
+
* </mefdev-collapse>
|
|
106
|
+
|
|
107
|
+
* <mefdev-collapse [Disabled]="false" [Active]="false">
|
|
108
|
+
* <!-- Content for the collapse panel -->
|
|
109
|
+
* <h3>Panel 2</h3>
|
|
110
|
+
* <p>Panel 2 content...</p>
|
|
111
|
+
* </mefdev-collapse>
|
|
112
|
+
|
|
113
|
+
* <mefdev-collapse [Disabled]="false" [Active]="false">
|
|
114
|
+
* <!-- Content for the collapse panel -->
|
|
115
|
+
* <h3>Panel 3</h3>
|
|
116
|
+
* <p>Panel 3 content...</p>
|
|
117
|
+
* </mefdev-collapse>
|
|
118
|
+
* </mefdev-collapse-set>
|
|
119
|
+
*```
|
|
120
|
+
*/
|
|
121
|
+
declare class CollapseSetComponent {
|
|
122
|
+
private _accordion;
|
|
123
|
+
private _horizontal;
|
|
124
|
+
private _expandAny;
|
|
125
|
+
panels: CollapseComponent[];
|
|
126
|
+
/**
|
|
127
|
+
* Indicates whether multiple panels can be expanded simultaneously.
|
|
128
|
+
* Set this to `true` to allow multiple panels to be expanded. Defaults to `false`.
|
|
129
|
+
*/
|
|
130
|
+
set expandAny(value: boolean);
|
|
131
|
+
get expandAny(): boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Indicates whether the collapse set operates as an accordion.
|
|
134
|
+
* Set this to `true` to enable accordion behavior. Defaults to `false`.
|
|
135
|
+
*/
|
|
136
|
+
set Accordion(value: boolean);
|
|
137
|
+
get Accordion(): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Indicates whether the collapse set is displayed horizontally or vertically.
|
|
140
|
+
* Set this to `true` for horizontal display and `false` for vertical display. Defaults to `true`.
|
|
141
|
+
*/
|
|
142
|
+
set Horizontal(value: boolean);
|
|
143
|
+
get Horizontal(): boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Event handler for the click event on a collapse panel.
|
|
146
|
+
* Closes other panels if the collapse set is an accordion and does not allow multiple expansions.
|
|
147
|
+
*
|
|
148
|
+
* @param collapse The clicked collapse component.
|
|
149
|
+
*/
|
|
150
|
+
pgClick(collapse: CollapseComponent): void;
|
|
151
|
+
/**
|
|
152
|
+
* Adds a collapse panel to the collapse set.
|
|
153
|
+
*
|
|
154
|
+
* @param collapse The collapse component to be added.
|
|
155
|
+
*/
|
|
156
|
+
addTab(collapse: CollapseComponent): void;
|
|
157
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseSetComponent, never>;
|
|
158
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseSetComponent, "mefdev-collapse-set", never, { "expandAny": { "alias": "expandAny"; "required": false; }; "Accordion": { "alias": "Accordion"; "required": false; }; "Horizontal": { "alias": "Horizontal"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare const mefDevCollapseModuleComponents: (typeof CollapseSetComponent | typeof CollapseComponent)[];
|
|
162
|
+
declare class MefDevCollapseModule {
|
|
163
|
+
static forRoot(): ModuleWithProviders<MefDevCollapseModule>;
|
|
164
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevCollapseModule, never>;
|
|
165
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevCollapseModule, [typeof CollapseSetComponent, typeof CollapseComponent], [typeof i2.CommonModule], [typeof CollapseSetComponent, typeof CollapseComponent]>;
|
|
166
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevCollapseModule>;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare class FiltredItemModel {
|
|
170
|
+
constructor(id: string, newValue: string, standartValue: string, discard: (standartValue: string) => any);
|
|
171
|
+
id: string;
|
|
172
|
+
newValue: string;
|
|
173
|
+
standartValue: string;
|
|
174
|
+
discard: (standartValue: string) => any;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
declare class FilteredFieldService {
|
|
178
|
+
private newFilterItem;
|
|
179
|
+
private openFilter;
|
|
180
|
+
constructor();
|
|
181
|
+
/**
|
|
182
|
+
* Returns an observable that emits the open filter events.
|
|
183
|
+
*/
|
|
184
|
+
getOpenFilter(): Observable<FiltredItemModel>;
|
|
185
|
+
/**
|
|
186
|
+
* Sends an open filter event with the specified item.
|
|
187
|
+
* @param item The filtered item model.
|
|
188
|
+
*/
|
|
189
|
+
sendOpenFilter(item: FiltredItemModel): void;
|
|
190
|
+
/**
|
|
191
|
+
* Returns an observable that emits the new filter item events.
|
|
192
|
+
*/
|
|
193
|
+
getNewFilterItem(): Observable<FiltredItemModel>;
|
|
194
|
+
/**
|
|
195
|
+
* Sends a new filter item event with the specified item.
|
|
196
|
+
* @param item The filtered item model.
|
|
197
|
+
*/
|
|
198
|
+
sendNewFilterItem(item: FiltredItemModel): void;
|
|
199
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilteredFieldService, never>;
|
|
200
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FilteredFieldService>;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* A container component for filtered fields.
|
|
205
|
+
*
|
|
206
|
+
* Example of usage:
|
|
207
|
+
* ```
|
|
208
|
+
* <mefdev-filtered-field-container>
|
|
209
|
+
*
|
|
210
|
+
* <mefdev-filtered-field-item [item]="filterItem" (discard)="onDiscardFilter($event)" (openFilter)="onOpenFilter()">
|
|
211
|
+
* </mefdev-filtered-field-item>
|
|
212
|
+
*
|
|
213
|
+
* </mefdev-filtered-field-container>
|
|
214
|
+
* ```
|
|
215
|
+
* Example of usage:
|
|
216
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/utils/filtered_field</example-url>
|
|
217
|
+
*/
|
|
218
|
+
declare class FilteredFieldContainerComponent implements OnInit {
|
|
219
|
+
private service;
|
|
220
|
+
/**
|
|
221
|
+
* An array of filtered item models.
|
|
222
|
+
*/
|
|
223
|
+
items: FiltredItemModel[];
|
|
224
|
+
constructor(service: FilteredFieldService);
|
|
225
|
+
/**
|
|
226
|
+
* Event handler for opening the filter.
|
|
227
|
+
*
|
|
228
|
+
* @param item The filtered item model.
|
|
229
|
+
*/
|
|
230
|
+
onOpenFilter(item: FiltredItemModel): void;
|
|
231
|
+
/**
|
|
232
|
+
* Event handler for discarding the filter.
|
|
233
|
+
*
|
|
234
|
+
* @param item The filtered item model.
|
|
235
|
+
*/
|
|
236
|
+
onDiscard(item: FiltredItemModel): void;
|
|
237
|
+
ngOnInit(): void;
|
|
238
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilteredFieldContainerComponent, never>;
|
|
239
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilteredFieldContainerComponent, "mefdev-filtered-field-container", never, {}, {}, never, never, false, never>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Component representing a filtered field item.
|
|
244
|
+
*
|
|
245
|
+
* Example of usage:
|
|
246
|
+
* ```
|
|
247
|
+
* <mefdev-filtered-field-item [item]="filterItem" (discard)="onDiscardFilter($event)" (openFilter)="onOpenFilter()">
|
|
248
|
+
* </mefdev-filtered-field-item>
|
|
249
|
+
*```
|
|
250
|
+
*
|
|
251
|
+
*/
|
|
252
|
+
declare class FilteredFieldItemComponent implements OnInit {
|
|
253
|
+
/**
|
|
254
|
+
* The filtered item model.
|
|
255
|
+
* ```
|
|
256
|
+
* <mefdev-filtered-field-item [item]="filterItem">
|
|
257
|
+
* Content goes here...
|
|
258
|
+
* </mefdev-filtered-field-item>
|
|
259
|
+
* ```
|
|
260
|
+
*/
|
|
261
|
+
item: FiltredItemModel;
|
|
262
|
+
/**
|
|
263
|
+
* Event emitted when the filter is discarded.
|
|
264
|
+
* ```
|
|
265
|
+
* <mefdev-filtered-field-item (discard)="onDiscardFilter($event)">
|
|
266
|
+
* Content goes here...
|
|
267
|
+
* </mefdev-filtered-field-item>
|
|
268
|
+
* ```
|
|
269
|
+
*/
|
|
270
|
+
discard: EventEmitter<FiltredItemModel>;
|
|
271
|
+
/**
|
|
272
|
+
* Event emitted when the filter is opened.
|
|
273
|
+
* ```
|
|
274
|
+
* <mefdev-filtered-field-item (openFilter)="onOpenFilter()">
|
|
275
|
+
* Content goes here...
|
|
276
|
+
* </mefdev-filtered-field-item>
|
|
277
|
+
* ```
|
|
278
|
+
*/
|
|
279
|
+
openFilter: EventEmitter<any>;
|
|
280
|
+
constructor();
|
|
281
|
+
ngOnInit(): void;
|
|
282
|
+
/**
|
|
283
|
+
* Event handler for opening the filter.
|
|
284
|
+
* Emits the `openFilter` event.
|
|
285
|
+
*/
|
|
286
|
+
onOpenFilter(): void;
|
|
287
|
+
/**
|
|
288
|
+
* Event handler for discarding the filter.
|
|
289
|
+
* Emits the `discard` event with the `item` as the payload.
|
|
290
|
+
*/
|
|
291
|
+
onDiscard(): void;
|
|
292
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilteredFieldItemComponent, never>;
|
|
293
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilteredFieldItemComponent, "mefdev-filtered-field-item", never, { "item": { "alias": "item"; "required": false; }; }, { "discard": "discard"; "openFilter": "openFilter"; }, never, never, false, never>;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
declare class MefDevFilteredFieldModule {
|
|
297
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevFilteredFieldModule, never>;
|
|
298
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevFilteredFieldModule, [typeof FilteredFieldContainerComponent, typeof FilteredFieldItemComponent], [typeof i2.CommonModule], [typeof FilteredFieldItemComponent, typeof FilteredFieldContainerComponent]>;
|
|
299
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevFilteredFieldModule>;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Component for displaying a simple card with a title.
|
|
304
|
+
*
|
|
305
|
+
* Example of usage:
|
|
306
|
+
*```
|
|
307
|
+
* <mefdev-card-simple [disabled]="true">
|
|
308
|
+
* <ng-template #card_title>
|
|
309
|
+
* <!-- Content for the card title -->
|
|
310
|
+
* </ng-template>
|
|
311
|
+
* </mefdev-card-simple>
|
|
312
|
+
*```
|
|
313
|
+
*
|
|
314
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/card/card_simple</example-url>
|
|
315
|
+
*/
|
|
316
|
+
declare class CardSimpleComponent implements OnInit {
|
|
317
|
+
/**
|
|
318
|
+
* Determines whether the card is disabled or not.
|
|
319
|
+
*/
|
|
320
|
+
isDisabled: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Template for displaying the title of the card.
|
|
323
|
+
*```
|
|
324
|
+
* <mefdev-card-simple>
|
|
325
|
+
* <ng-template #card_title>
|
|
326
|
+
* <h3>Card Title</h3>
|
|
327
|
+
* </ng-template>
|
|
328
|
+
* </mefdev-card-simple>
|
|
329
|
+
*```
|
|
330
|
+
*/
|
|
331
|
+
card_title: TemplateRef<void>;
|
|
332
|
+
constructor();
|
|
333
|
+
ngOnInit(): void;
|
|
334
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardSimpleComponent, never>;
|
|
335
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardSimpleComponent, "mefdev-card-simple", never, { "isDisabled": { "alias": "disabled"; "required": false; }; }, {}, ["card_title"], ["*", "[card-actions]"], false, never>;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Example of usage:
|
|
340
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/controls/select</example-url>
|
|
341
|
+
*/
|
|
342
|
+
declare class MefDevSelectComponent implements OnInit, AfterContentInit, AfterContentChecked, ControlValueAccessor {
|
|
343
|
+
private _elementRef;
|
|
344
|
+
private _renderer;
|
|
345
|
+
private cDRef;
|
|
346
|
+
private _allowClear;
|
|
347
|
+
private _disabled;
|
|
348
|
+
private _isTags;
|
|
349
|
+
private _isMultiple;
|
|
350
|
+
private _keepUnListOptions;
|
|
351
|
+
private _showSearch;
|
|
352
|
+
_el: HTMLElement;
|
|
353
|
+
_isOpen: boolean;
|
|
354
|
+
_prefixCls: string;
|
|
355
|
+
_classList: string[];
|
|
356
|
+
_dropDownClassMap: any;
|
|
357
|
+
_dropDownPrefixCls: string;
|
|
358
|
+
_selectionClassMap: any;
|
|
359
|
+
_selectionPrefixCls: string;
|
|
360
|
+
_size: string;
|
|
361
|
+
_value: string[] | string;
|
|
362
|
+
_placeholder: string;
|
|
363
|
+
_notFoundContent: string;
|
|
364
|
+
_searchText: string;
|
|
365
|
+
_triggerWidth: number;
|
|
366
|
+
_selectedOption: MefDevOptionComponent;
|
|
367
|
+
_operatingMultipleOption: MefDevOptionComponent;
|
|
368
|
+
_selectedOptions: Set<MefDevOptionComponent>;
|
|
369
|
+
_options: MefDevOptionComponent[];
|
|
370
|
+
_cacheOptions: MefDevOptionComponent[];
|
|
371
|
+
_filterOptions: MefDevOptionComponent[];
|
|
372
|
+
_tagsOptions: MefDevOptionComponent[];
|
|
373
|
+
_activeFilterOption: MefDevOptionComponent;
|
|
374
|
+
_isMultiInit: boolean;
|
|
375
|
+
_dropDownPosition: "top" | "center" | "bottom";
|
|
376
|
+
_composing: boolean;
|
|
377
|
+
_mode: any;
|
|
378
|
+
onChange: (value: string | string[]) => void;
|
|
379
|
+
onTouched: () => void;
|
|
380
|
+
searchInputElementRef: any;
|
|
381
|
+
trigger: ElementRef;
|
|
382
|
+
dropdownUl: ElementRef;
|
|
383
|
+
SearchChange: EventEmitter<string>;
|
|
384
|
+
change: EventEmitter<string>;
|
|
385
|
+
OpenChange: EventEmitter<boolean>;
|
|
386
|
+
ScrollToBottom: EventEmitter<boolean>;
|
|
387
|
+
Filter: boolean;
|
|
388
|
+
MaxMultiple: number;
|
|
389
|
+
FirstDefault: boolean;
|
|
390
|
+
_cdkOverlay: CdkConnectedOverlay;
|
|
391
|
+
set AllowClear(value: boolean);
|
|
392
|
+
get AllowClear(): boolean;
|
|
393
|
+
set KeepUnListOptions(value: boolean);
|
|
394
|
+
get KeepUnListOptions(): boolean;
|
|
395
|
+
set Mode(value: string);
|
|
396
|
+
set Multiple(value: boolean);
|
|
397
|
+
get Multiple(): boolean;
|
|
398
|
+
set PlaceHolder(value: string);
|
|
399
|
+
get PlaceHolder(): string;
|
|
400
|
+
set NotFoundContent(value: string);
|
|
401
|
+
get NotFoundContent(): string;
|
|
402
|
+
set Size(value: string);
|
|
403
|
+
get Size(): string;
|
|
404
|
+
set ShowSearch(value: boolean);
|
|
405
|
+
get ShowSearch(): boolean;
|
|
406
|
+
set Tags(value: boolean);
|
|
407
|
+
get Tags(): boolean;
|
|
408
|
+
set Disabled(value: boolean);
|
|
409
|
+
get Disabled(): boolean;
|
|
410
|
+
set Open(value: boolean);
|
|
411
|
+
get Open(): boolean;
|
|
412
|
+
/** new -option insert or new tags insert */
|
|
413
|
+
addOption: (option: any) => void;
|
|
414
|
+
/** -option remove or tags remove */
|
|
415
|
+
removeOption(option: MefDevOptionComponent): void;
|
|
416
|
+
/** dropdown position changed */
|
|
417
|
+
onPositionChange(position: ConnectedOverlayPositionChange): void;
|
|
418
|
+
compositionStart(): void;
|
|
419
|
+
compositionEnd(): void;
|
|
420
|
+
/** clear single selected option */
|
|
421
|
+
clearSelect($event?: MouseEvent): void;
|
|
422
|
+
/** click dropdown option by user */
|
|
423
|
+
clickOption(option: MefDevOptionComponent, $event?: MouseEvent): void;
|
|
424
|
+
/** choose option */
|
|
425
|
+
chooseOption(option: MefDevOptionComponent, isUserClick?: boolean, $event?: MouseEvent): void;
|
|
426
|
+
updateWidth(element: HTMLInputElement, text: string): void;
|
|
427
|
+
/** determine if option in set */
|
|
428
|
+
isInSet(set: Set<MefDevOptionComponent>, option: MefDevOptionComponent): MefDevOptionComponent;
|
|
429
|
+
/** cancel select multiple option */ unSelectMultipleOption: (option: any, $event?: any, emitChange?: boolean) => void;
|
|
430
|
+
/** select multiple option */
|
|
431
|
+
selectMultipleOption(option: MefDevOptionComponent, $event?: MouseEvent): void;
|
|
432
|
+
/** emit multiple options */
|
|
433
|
+
emitMultipleOptions(): void;
|
|
434
|
+
/** update selected option when add remove option etc */
|
|
435
|
+
updateSelectedOption(currentModelValue: string | string[], triggerByNgModel?: boolean): void;
|
|
436
|
+
forceUpdateSelectedOption(value: string | string[]): void;
|
|
437
|
+
get Value(): string | string[];
|
|
438
|
+
set Value(value: string | string[]);
|
|
439
|
+
clearAllSelectedOption(emitChange?: boolean): void;
|
|
440
|
+
handleKeyEnterEvent(event: KeyboardEvent): void;
|
|
441
|
+
handleKeyBackspaceEvent(event: KeyboardEvent): void;
|
|
442
|
+
handleKeyDownEvent($event: MouseEvent): void;
|
|
443
|
+
handleKeyUpEvent($event: MouseEvent): void;
|
|
444
|
+
preOption(option: MefDevOptionComponent, options: MefDevOptionComponent[]): MefDevOptionComponent;
|
|
445
|
+
nextOption(option: MefDevOptionComponent, options: MefDevOptionComponent[]): MefDevOptionComponent;
|
|
446
|
+
clearSearchText(): void;
|
|
447
|
+
updateFilterOption(updateActiveFilter?: boolean): void;
|
|
448
|
+
onSearchChange(searchValue: string): void;
|
|
449
|
+
onClick(e: MouseEvent): void;
|
|
450
|
+
onKeyDown(e: KeyboardEvent): void;
|
|
451
|
+
closeDropDown(): void;
|
|
452
|
+
setClassMap(): void;
|
|
453
|
+
setDropDownClassMap(): void;
|
|
454
|
+
scrollToActive(): void;
|
|
455
|
+
flushComponentState(): void;
|
|
456
|
+
_setTriggerWidth(): void;
|
|
457
|
+
_getTriggerRect(): ClientRect;
|
|
458
|
+
writeValue(value: string | string[]): void;
|
|
459
|
+
registerOnChange(fn: (value: string | string[]) => void): void;
|
|
460
|
+
registerOnTouched(fn: () => void): void;
|
|
461
|
+
setDisabledState(isDisabled: boolean): void;
|
|
462
|
+
dropDownScroll(ul: HTMLUListElement): void;
|
|
463
|
+
checkDropDownScroll(): void;
|
|
464
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2, cDRef: ChangeDetectorRef);
|
|
465
|
+
ngAfterContentInit(): void;
|
|
466
|
+
ngOnInit(): void;
|
|
467
|
+
ngAfterContentChecked(): void;
|
|
468
|
+
private _updateValue;
|
|
469
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevSelectComponent, never>;
|
|
470
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevSelectComponent, "mefdev-select", never, { "Filter": { "alias": "Filter"; "required": false; }; "MaxMultiple": { "alias": "MaxMultiple"; "required": false; }; "FirstDefault": { "alias": "FirstDefault"; "required": false; }; "AllowClear": { "alias": "AllowClear"; "required": false; }; "KeepUnListOptions": { "alias": "KeepUnListOptions"; "required": false; }; "Mode": { "alias": "Mode"; "required": false; }; "Multiple": { "alias": "Multiple"; "required": false; }; "PlaceHolder": { "alias": "PlaceHolder"; "required": false; }; "NotFoundContent": { "alias": "NotFoundContent"; "required": false; }; "Size": { "alias": "Size"; "required": false; }; "ShowSearch": { "alias": "ShowSearch"; "required": false; }; "Tags": { "alias": "Tags"; "required": false; }; "Disabled": { "alias": "Disabled"; "required": false; }; "Open": { "alias": "Open"; "required": false; }; }, { "SearchChange": "SearchChange"; "change": "change"; "OpenChange": "OpenChange"; "ScrollToBottom": "ScrollToBottom"; }, never, never, false, never>;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* @skipTemplateDoc true
|
|
475
|
+
* Component for representing an option in a dropdown list.
|
|
476
|
+
*
|
|
477
|
+
*```
|
|
478
|
+
* <mefdev-select>
|
|
479
|
+
* <mefdev-option Value="1" Label="Option 1"></mefdev-option>
|
|
480
|
+
* <mefdev-option Value="2" Label="Option 2"></mefdev-option>
|
|
481
|
+
* <mefdev-option Value="3" Label="Option 3"></mefdev-option>
|
|
482
|
+
* </mefdev-select>
|
|
483
|
+
*```
|
|
484
|
+
*
|
|
485
|
+
*/
|
|
486
|
+
declare class MefDevOptionComponent implements OnDestroy, OnInit {
|
|
487
|
+
private _Select;
|
|
488
|
+
private _disabled;
|
|
489
|
+
_value: string;
|
|
490
|
+
_label: string;
|
|
491
|
+
/**
|
|
492
|
+
* Template for the content of the option.
|
|
493
|
+
*/
|
|
494
|
+
OptionTemplate: any;
|
|
495
|
+
/**
|
|
496
|
+
* The value of the option.
|
|
497
|
+
*/
|
|
498
|
+
set Value(value: string);
|
|
499
|
+
get Value(): string;
|
|
500
|
+
/**
|
|
501
|
+
* The label of the option.
|
|
502
|
+
*/
|
|
503
|
+
set Label(value: string);
|
|
504
|
+
get Label(): string;
|
|
505
|
+
/**
|
|
506
|
+
* Indicates whether the option is disabled.
|
|
507
|
+
*/
|
|
508
|
+
set Disabled(value: boolean);
|
|
509
|
+
get Disabled(): boolean;
|
|
510
|
+
constructor(_Select: MefDevSelectComponent);
|
|
511
|
+
/**
|
|
512
|
+
* Initialization lifecycle hook.
|
|
513
|
+
* Adds the option to the dropdown list.
|
|
514
|
+
*/
|
|
515
|
+
ngOnInit(): void;
|
|
516
|
+
/**
|
|
517
|
+
* Destruction lifecycle hook.
|
|
518
|
+
* Removes the option from the dropdown list.
|
|
519
|
+
*/
|
|
520
|
+
ngOnDestroy(): void;
|
|
521
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevOptionComponent, never>;
|
|
522
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevOptionComponent, "mefdev-option", never, { "Value": { "alias": "Value"; "required": false; }; "Label": { "alias": "Label"; "required": false; }; "Disabled": { "alias": "Disabled"; "required": false; }; }, {}, ["OptionTemplate"], ["*"], false, never>;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
declare class OptionPipe implements PipeTransform {
|
|
526
|
+
transform(options: MefDevOptionComponent[], value: any): any;
|
|
527
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionPipe, never>;
|
|
528
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<OptionPipe, "OptionPipe", false>;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
declare class MefDevSelectModule {
|
|
532
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevSelectModule, never>;
|
|
533
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevSelectModule, [typeof OptionPipe, typeof MefDevOptionComponent, typeof MefDevSelectComponent], [typeof i2.CommonModule, typeof i5.FormsModule, typeof i6.OverlayModule], [typeof OptionPipe, typeof MefDevOptionComponent, typeof MefDevSelectComponent]>;
|
|
534
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevSelectModule>;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
declare const mefDevCardComponents: (typeof CardSimpleComponent)[];
|
|
538
|
+
declare class MefDevCardModule {
|
|
539
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevCardModule, never>;
|
|
540
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevCardModule, [typeof CardSimpleComponent], [typeof i2.CommonModule, typeof MefDevCollapseModule, typeof MefDevSelectModule], [typeof CardSimpleComponent]>;
|
|
541
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevCardModule>;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Fill Component for a modal window.
|
|
546
|
+
*
|
|
547
|
+
* Example of usage:
|
|
548
|
+
* ```
|
|
549
|
+
* <mefdev-fill-modal #pin_modal>
|
|
550
|
+
* <!-- Modal header content -->
|
|
551
|
+
* <ng-template #modal_header>
|
|
552
|
+
* <!-- Header content goes here -->
|
|
553
|
+
* </ng-template>
|
|
554
|
+
*
|
|
555
|
+
* <!-- Modal footer content -->
|
|
556
|
+
* <ng-template #modal_footer>
|
|
557
|
+
* <!-- Footer content goes here -->
|
|
558
|
+
* </ng-template>
|
|
559
|
+
* </mefdev-fill-modal>
|
|
560
|
+
* ```
|
|
561
|
+
*
|
|
562
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/modals/fill</example-url>
|
|
563
|
+
*/
|
|
564
|
+
declare class FillComponent implements OnInit {
|
|
565
|
+
protected visible: boolean;
|
|
566
|
+
protected dialog?: ElementRef;
|
|
567
|
+
/**
|
|
568
|
+
* The header template of the modal window.
|
|
569
|
+
* ```
|
|
570
|
+
* <mefdev-fill-modal #pin_modal>
|
|
571
|
+
* <ng-template #modal_header>
|
|
572
|
+
* <!-- Header content goes here -->
|
|
573
|
+
* </ng-template>
|
|
574
|
+
* </mefdev-fill-modal>
|
|
575
|
+
* ```
|
|
576
|
+
*/
|
|
577
|
+
modal_header: TemplateRef<void>;
|
|
578
|
+
/**
|
|
579
|
+
* The footer template of the modal window.
|
|
580
|
+
* ```
|
|
581
|
+
* <mefdev-fill-modal #pin_modal>
|
|
582
|
+
* <ng-template #modal_footer>
|
|
583
|
+
* <!-- Footer content goes here -->
|
|
584
|
+
* </ng-template>
|
|
585
|
+
* </mefdev-fill-modal>
|
|
586
|
+
* ```
|
|
587
|
+
*/
|
|
588
|
+
modal_footer: TemplateRef<void>;
|
|
589
|
+
/**
|
|
590
|
+
* Input parameter that determines whether to show the modal window.
|
|
591
|
+
*/
|
|
592
|
+
set show(val: boolean);
|
|
593
|
+
/**
|
|
594
|
+
* Event emitted when the modal is change state.
|
|
595
|
+
* Emits a boolean value indicating if the modal is closed(false), or open(true).
|
|
596
|
+
* Example:
|
|
597
|
+
* ```
|
|
598
|
+
* <mefdev-fill-modal (visibleChange)="onModalClosed($event)"></mefdev-fill-modal>
|
|
599
|
+
* ```
|
|
600
|
+
*/
|
|
601
|
+
visibleChange: EventEmitter<boolean>;
|
|
602
|
+
constructor();
|
|
603
|
+
ngOnInit(): void;
|
|
604
|
+
/**
|
|
605
|
+
* Shows the modal state.
|
|
606
|
+
* Return a boolean value indicating if the modal is closed(false), or open(true)
|
|
607
|
+
*/
|
|
608
|
+
getModalState(): boolean;
|
|
609
|
+
/**
|
|
610
|
+
* Shows the modal.
|
|
611
|
+
* Call this method to open the modal window.
|
|
612
|
+
*/
|
|
613
|
+
showModal(): void;
|
|
614
|
+
/**
|
|
615
|
+
* Hides the modal.
|
|
616
|
+
* Call this method to close the modal window.
|
|
617
|
+
*/
|
|
618
|
+
hideModal(): void;
|
|
619
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FillComponent, never>;
|
|
620
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FillComponent, "mefdev-fill-modal", never, { "show": { "alias": "show"; "required": false; }; }, { "visibleChange": "visibleChange"; }, ["modal_header", "modal_footer"], ["*"], false, never>;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* A component representing a slide-up modal window.
|
|
625
|
+
*
|
|
626
|
+
* Example of usage:
|
|
627
|
+
*
|
|
628
|
+
* ```
|
|
629
|
+
* <mefdev-slide-up-modal [show]="showModal">
|
|
630
|
+
* <ng-template #modal_header>
|
|
631
|
+
* <h4>Modal Header</h4>
|
|
632
|
+
* </ng-template>
|
|
633
|
+
* <ng-template #modal_footer>
|
|
634
|
+
* <button (click)="closeModal()">Close</button>
|
|
635
|
+
* </ng-template>
|
|
636
|
+
* <div class="modal-body">
|
|
637
|
+
* Content goes here...
|
|
638
|
+
* </div>
|
|
639
|
+
* </mefdev-slide-up-modal>
|
|
640
|
+
* ```
|
|
641
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/modals/slide_up</example-url>
|
|
642
|
+
*/
|
|
643
|
+
declare class SlideUpComponent implements OnInit {
|
|
644
|
+
protected visible: boolean;
|
|
645
|
+
/**
|
|
646
|
+
* Reference to the template for the modal header.
|
|
647
|
+
* Use this template to customize the header of the modal.
|
|
648
|
+
*/
|
|
649
|
+
modal_header: TemplateRef<void>;
|
|
650
|
+
/**
|
|
651
|
+
* Reference to the template for the modal footer.
|
|
652
|
+
* Use this template to customize the footer of the modal.
|
|
653
|
+
*/
|
|
654
|
+
modal_footer: TemplateRef<void>;
|
|
655
|
+
/**
|
|
656
|
+
* Flag indicating whether the modal should be shown or hidden.
|
|
657
|
+
* Set it to `true` to show the modal and `false` to hide it.
|
|
658
|
+
*/
|
|
659
|
+
set show(val: boolean);
|
|
660
|
+
/**
|
|
661
|
+
* Event emitted when the modal is change state.
|
|
662
|
+
* Emits a boolean value indicating if the modal is closed(false), or open(true).
|
|
663
|
+
*/
|
|
664
|
+
visibleChange: EventEmitter<boolean>;
|
|
665
|
+
constructor();
|
|
666
|
+
ngOnInit(): void;
|
|
667
|
+
/**
|
|
668
|
+
* Shows the modal state.
|
|
669
|
+
* Return a boolean value indicating if the modal is closed(false), or open(true)
|
|
670
|
+
*/
|
|
671
|
+
getModalState(): boolean;
|
|
672
|
+
/**
|
|
673
|
+
* Shows the modal.
|
|
674
|
+
* Call this method to open the modal window.
|
|
675
|
+
*/
|
|
676
|
+
showModal(): void;
|
|
677
|
+
/**
|
|
678
|
+
* Hides the modal.
|
|
679
|
+
* Call this method to close the modal window.
|
|
680
|
+
*/
|
|
681
|
+
hideModal(): void;
|
|
682
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlideUpComponent, never>;
|
|
683
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlideUpComponent, "mefdev-slide-up-modal", never, { "show": { "alias": "show"; "required": false; }; }, { "visibleChange": "visibleChange"; }, ["modal_header", "modal_footer"], ["*"], false, never>;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
declare const enum ModalSize {
|
|
687
|
+
sm = "sm",
|
|
688
|
+
md = "md",
|
|
689
|
+
lg = "lg"
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* A component representing a slide-right modal window.
|
|
694
|
+
*
|
|
695
|
+
* Example of usage:
|
|
696
|
+
*
|
|
697
|
+
* ```
|
|
698
|
+
* <mefdev-slide-right-modal [size]="ModalSize.lg" [show]="showModal">
|
|
699
|
+
* <ng-template #modal_header>
|
|
700
|
+
* <h4>Modal Header</h4>
|
|
701
|
+
* </ng-template>
|
|
702
|
+
* <ng-template #modal_footer>
|
|
703
|
+
* <button (click)="closeModal()">Close</button>
|
|
704
|
+
* </ng-template>
|
|
705
|
+
* <div class="modal-body">
|
|
706
|
+
* Content goes here...
|
|
707
|
+
* </div>
|
|
708
|
+
* </mefdev-slide-right-modal>
|
|
709
|
+
* ```
|
|
710
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/modals/slide_right</example-url>
|
|
711
|
+
*/
|
|
712
|
+
declare class SlideRightComponent implements OnInit {
|
|
713
|
+
protected visible: boolean;
|
|
714
|
+
protected dialog: ElementRef;
|
|
715
|
+
/**
|
|
716
|
+
* Reference to the template for the modal header.
|
|
717
|
+
* Use this template to customize the header of the modal.
|
|
718
|
+
*/
|
|
719
|
+
modal_header: TemplateRef<void>;
|
|
720
|
+
/**
|
|
721
|
+
* Reference to the template for the modal footer.
|
|
722
|
+
* Use this template to customize the footer of the modal.
|
|
723
|
+
*/
|
|
724
|
+
modal_footer: TemplateRef<void>;
|
|
725
|
+
/**
|
|
726
|
+
* Size of the modal.
|
|
727
|
+
* Defaults to `ModalSize.md`.
|
|
728
|
+
* Possible values: `ModalSize.sm`, `ModalSize.md`, `ModalSize.lg`, `ModalSize.xl`.
|
|
729
|
+
*/
|
|
730
|
+
size: ModalSize;
|
|
731
|
+
/**
|
|
732
|
+
* Flag indicating whether the modal should be shown or hidden.
|
|
733
|
+
* Set it to `true` to show the modal and `false` to hide it.
|
|
734
|
+
*/
|
|
735
|
+
set show(val: boolean);
|
|
736
|
+
/**
|
|
737
|
+
* Event emitted when the modal is change state.
|
|
738
|
+
* Emits a boolean value indicating if the modal is closed(false), or open(true).
|
|
739
|
+
* Example:
|
|
740
|
+
* ```
|
|
741
|
+
* <mefdev-fill-modal (visibleChange)="onModalClosed($event)"></mefdev-fill-modal>
|
|
742
|
+
* ```
|
|
743
|
+
*/
|
|
744
|
+
visibleChange: EventEmitter<boolean>;
|
|
745
|
+
constructor();
|
|
746
|
+
ngOnInit(): void;
|
|
747
|
+
/**
|
|
748
|
+
* Shows the modal state.
|
|
749
|
+
* Return a boolean value indicating if the modal is closed(false), or open(true)
|
|
750
|
+
*/
|
|
751
|
+
getModalState(): boolean;
|
|
752
|
+
/**
|
|
753
|
+
* Shows the modal.
|
|
754
|
+
* Call this method to open the modal window.
|
|
755
|
+
*/
|
|
756
|
+
showModal(): void;
|
|
757
|
+
/**
|
|
758
|
+
* Hides the modal.
|
|
759
|
+
* Call this method to close the modal window.
|
|
760
|
+
*/
|
|
761
|
+
hideModal(): void;
|
|
762
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlideRightComponent, never>;
|
|
763
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlideRightComponent, "mefdev-slide-right-modal", never, { "size": { "alias": "size"; "required": false; }; "show": { "alias": "show"; "required": false; }; }, { "visibleChange": "visibleChange"; }, ["modal_header", "modal_footer"], ["*"], false, never>;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Component representing the right filter.
|
|
768
|
+
*/
|
|
769
|
+
declare class RightFilterComponent implements OnInit {
|
|
770
|
+
private filteredFieldService;
|
|
771
|
+
/**
|
|
772
|
+
* Flag indicating whether the right filter is open or closed.
|
|
773
|
+
*/
|
|
774
|
+
isOpen: boolean;
|
|
775
|
+
showStandartOpenButton: boolean;
|
|
776
|
+
constructor(filteredFieldService: FilteredFieldService);
|
|
777
|
+
ngOnInit(): void;
|
|
778
|
+
/**
|
|
779
|
+
* Opens or closes the right filter modal.
|
|
780
|
+
*/
|
|
781
|
+
openModal(): void;
|
|
782
|
+
/**
|
|
783
|
+
* Event handler for when the modal is closed.
|
|
784
|
+
* Sets the isOpen flag to false.
|
|
785
|
+
*/
|
|
786
|
+
modalIsCloused(): void;
|
|
787
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RightFilterComponent, never>;
|
|
788
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RightFilterComponent, "mefdev-right-filter", never, { "showStandartOpenButton": { "alias": "showStandartOpenButton"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
declare class MefDevModalModule {
|
|
792
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevModalModule, never>;
|
|
793
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevModalModule, [typeof FillComponent, typeof SlideUpComponent, typeof SlideRightComponent, typeof RightFilterComponent], [typeof i2.CommonModule, typeof MefDevSelectModule], [typeof FillComponent, typeof SlideUpComponent, typeof SlideRightComponent, typeof RightFilterComponent]>;
|
|
794
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevModalModule>;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* A component representing a central page layout.
|
|
799
|
+
*
|
|
800
|
+
* Example of usage:
|
|
801
|
+
*
|
|
802
|
+
* ```
|
|
803
|
+
* <mefdev-central-page [width]="'80%'">
|
|
804
|
+
* Content goes here...
|
|
805
|
+
* </mefdev-central-page>
|
|
806
|
+
* ```
|
|
807
|
+
*
|
|
808
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_layouts/central_page</example-url>
|
|
809
|
+
*/
|
|
810
|
+
declare class CentralPageComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
811
|
+
constructor();
|
|
812
|
+
/**
|
|
813
|
+
* The width of the central page.
|
|
814
|
+
* Defaults to '100%'.
|
|
815
|
+
* You can specify the width using CSS units (e.g., '80%', '500px').
|
|
816
|
+
*/
|
|
817
|
+
width: string;
|
|
818
|
+
/**
|
|
819
|
+
* Lifecycle hook called just before the component is destroyed.
|
|
820
|
+
* Removes the height style from the main content element.
|
|
821
|
+
*/
|
|
822
|
+
ngOnDestroy(): void;
|
|
823
|
+
ngOnInit(): void;
|
|
824
|
+
/**
|
|
825
|
+
* Lifecycle hook called after the component's view has been checked.
|
|
826
|
+
* Sets the height of the main content element to '100%'.
|
|
827
|
+
*/
|
|
828
|
+
ngAfterViewChecked(): void;
|
|
829
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CentralPageComponent, never>;
|
|
830
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CentralPageComponent, "mefdev-central-page", never, { "width": { "alias": "width"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* A component representing a central page layout.
|
|
835
|
+
*
|
|
836
|
+
* Example of usage:
|
|
837
|
+
*
|
|
838
|
+
* ```
|
|
839
|
+
* <mefdev-central-page>
|
|
840
|
+
* <mefdev-central-page-row>
|
|
841
|
+
* Content goes here...
|
|
842
|
+
* </mefdev-central-page-row>
|
|
843
|
+
* </mefdev-central-page>
|
|
844
|
+
* ```
|
|
845
|
+
*/
|
|
846
|
+
declare class CentralPageRowComponent implements OnInit {
|
|
847
|
+
constructor();
|
|
848
|
+
ngOnInit(): void;
|
|
849
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CentralPageRowComponent, never>;
|
|
850
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CentralPageRowComponent, "mefdev-central-page-row", never, {}, {}, never, ["*"], false, never>;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* A component representing a table page layout.
|
|
855
|
+
*
|
|
856
|
+
* Example of usage:
|
|
857
|
+
*
|
|
858
|
+
* ```
|
|
859
|
+
* <mefdev-table-page>
|
|
860
|
+
* <ng-template #filter_colum>
|
|
861
|
+
* <!-- Content for the filter column -->
|
|
862
|
+
* </ng-template>
|
|
863
|
+
* </mefdev-table-page>
|
|
864
|
+
* ```
|
|
865
|
+
*
|
|
866
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_layouts/table_page</example-url>
|
|
867
|
+
*/
|
|
868
|
+
declare class TablePageComponent implements OnInit {
|
|
869
|
+
/**
|
|
870
|
+
* The template reference to the content of the filter column.
|
|
871
|
+
* ```
|
|
872
|
+
* <ng-template #filter_colum>
|
|
873
|
+
* <!-- Content for the filter column -->
|
|
874
|
+
* </ng-template>
|
|
875
|
+
* ```
|
|
876
|
+
*/
|
|
877
|
+
filter_colum: TemplateRef<void>;
|
|
878
|
+
constructor();
|
|
879
|
+
ngOnInit(): void;
|
|
880
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TablePageComponent, never>;
|
|
881
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TablePageComponent, "mefdev-table-page", never, {}, {}, ["filter_colum"], ["*"], false, never>;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* A component representing a manage page layout.
|
|
886
|
+
*
|
|
887
|
+
* Example of usage:
|
|
888
|
+
*
|
|
889
|
+
* ```
|
|
890
|
+
* <mefdev-manage-page [startTabInd]="0">
|
|
891
|
+
* <ng-template #card_title>
|
|
892
|
+
* Title of the card
|
|
893
|
+
* </ng-template>
|
|
894
|
+
* <ng-template #tabs_block>
|
|
895
|
+
* Content of the tabs block
|
|
896
|
+
* </ng-template>
|
|
897
|
+
* </mefdev-manage-page>
|
|
898
|
+
* ```
|
|
899
|
+
*
|
|
900
|
+
* Example of usage:
|
|
901
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_layouts/manage_page</example-url>
|
|
902
|
+
*/
|
|
903
|
+
declare class ManagePageComponent implements OnInit {
|
|
904
|
+
/**
|
|
905
|
+
* The template reference to the card title.
|
|
906
|
+
* ```
|
|
907
|
+
* <mefdev-manage-page>
|
|
908
|
+
* <ng-template #card_title>
|
|
909
|
+
* Title of the card
|
|
910
|
+
* </ng-template>
|
|
911
|
+
* </mefdev-manage-page>
|
|
912
|
+
* ```
|
|
913
|
+
*/
|
|
914
|
+
card_title: TemplateRef<void>;
|
|
915
|
+
/**
|
|
916
|
+
* The template reference to the tabs block.
|
|
917
|
+
* ```
|
|
918
|
+
* <mefdev-manage-page>
|
|
919
|
+
* <ng-template #tabs_block>
|
|
920
|
+
* Content of the tabs block
|
|
921
|
+
* </ng-template>
|
|
922
|
+
* </mefdev-manage-page>
|
|
923
|
+
* ```
|
|
924
|
+
*/
|
|
925
|
+
tabs_block: TemplateRef<void>;
|
|
926
|
+
/**
|
|
927
|
+
* The index of the starting tab.
|
|
928
|
+
* ```
|
|
929
|
+
* <mefdev-manage-page [startTabInd]="0">
|
|
930
|
+
* Content goes here...
|
|
931
|
+
* </mefdev-manage-page>
|
|
932
|
+
* ```
|
|
933
|
+
*/
|
|
934
|
+
startTabInd: number;
|
|
935
|
+
constructor();
|
|
936
|
+
ngOnInit(): void;
|
|
937
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ManagePageComponent, never>;
|
|
938
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ManagePageComponent, "mefdev-manage-page", never, { "startTabInd": { "alias": "startTabInd"; "required": false; }; }, {}, ["card_title", "tabs_block"], ["*"], false, never>;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
declare class MefDevPageLayoutsModule {
|
|
942
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevPageLayoutsModule, never>;
|
|
943
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevPageLayoutsModule, [typeof CentralPageComponent, typeof CentralPageRowComponent, typeof TablePageComponent, typeof ManagePageComponent], [typeof i2.CommonModule], [typeof CentralPageComponent, typeof CentralPageRowComponent, typeof TablePageComponent, typeof ManagePageComponent]>;
|
|
944
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevPageLayoutsModule>;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* @ignore
|
|
949
|
+
*/
|
|
950
|
+
declare class StageComponent {
|
|
951
|
+
currentExecutorStep: number;
|
|
952
|
+
isRightModal: boolean;
|
|
953
|
+
isCompleted: boolean;
|
|
954
|
+
title: string;
|
|
955
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StageComponent, never>;
|
|
956
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StageComponent, "mefdev-stage", never, { "currentExecutorStep": { "alias": "currentExecutorStep"; "required": false; }; "isRightModal": { "alias": "isRightModal"; "required": false; }; "isCompleted": { "alias": "isCompleted"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, false, never>;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* A component that allows us to create a content page - a step in our executor.
|
|
961
|
+
* Each individual step can have different styles, content and settings.
|
|
962
|
+
*
|
|
963
|
+
* Example of usage:
|
|
964
|
+
*
|
|
965
|
+
* ```
|
|
966
|
+
* <mefdev-executor-page
|
|
967
|
+
* [title]="'Executor title 1'"
|
|
968
|
+
* [isActive]="mainExecutor.activePageInd === 0"
|
|
969
|
+
* [isCompleted]="mainExecutor.activePageInd >= 0"
|
|
970
|
+
* class="yourClass">
|
|
971
|
+
* <!-- Content of the first executor step -->
|
|
972
|
+
* </mefdev-executor-page>
|
|
973
|
+
* <mefdev-executor-page
|
|
974
|
+
* [title]="'Executor title 2'"
|
|
975
|
+
* [isActive]="mainExecutor.activePageInd === 1"
|
|
976
|
+
* [isCompleted]="mainExecutor.activePageInd >= 1"
|
|
977
|
+
* class="yourClass">
|
|
978
|
+
* <!-- Content of the second executor step -->
|
|
979
|
+
* </mefdev-executor-page>
|
|
980
|
+
* <mefdev-executor-page
|
|
981
|
+
* [title]="'Executor title 3'"
|
|
982
|
+
* [isActive]="mainExecutor.activePageInd === 2"
|
|
983
|
+
* [isCompleted]="mainExecutor.activePageInd >= 2"
|
|
984
|
+
* class="yourClass">
|
|
985
|
+
* <!-- Content of the third executor step -->
|
|
986
|
+
* </mefdev-executor-page>
|
|
987
|
+
* ```
|
|
988
|
+
*
|
|
989
|
+
*/
|
|
990
|
+
declare class MefdevExecutorPageComponent implements OnChanges {
|
|
991
|
+
private _mainExecutor;
|
|
992
|
+
private _elementRef;
|
|
993
|
+
/**
|
|
994
|
+
* The title of the step
|
|
995
|
+
* @usageNotes
|
|
996
|
+
* ```
|
|
997
|
+
* <mefdev-executor-page [title]="'Description of situation 1'"></mefdev-executor-page>
|
|
998
|
+
* ```
|
|
999
|
+
*/
|
|
1000
|
+
title: string;
|
|
1001
|
+
/**
|
|
1002
|
+
* The input parameter that corresponds to whether the current step matches the respective page.
|
|
1003
|
+
* The value of the active page is passed by reference from the specific component StepExecutorComponent.
|
|
1004
|
+
*
|
|
1005
|
+
* @usageNotes
|
|
1006
|
+
* ```
|
|
1007
|
+
* <mefdev-step-executor #mainExecutor>
|
|
1008
|
+
* <mefdev-executor-page [isActive]="mainExecutor.activePageInd === 0">
|
|
1009
|
+
* <mefdev-executor-page [isActive]="mainExecutor.activePageInd === 1">
|
|
1010
|
+
* <mefdev-executor-page [isActive]="mainExecutor.activePageInd === 2">
|
|
1011
|
+
* </<mefdev-step-executor>
|
|
1012
|
+
*
|
|
1013
|
+
* ```
|
|
1014
|
+
*/
|
|
1015
|
+
isActive: boolean;
|
|
1016
|
+
/**
|
|
1017
|
+
* The input parameter that checks whether the step is completed.
|
|
1018
|
+
*
|
|
1019
|
+
* @usageNotes
|
|
1020
|
+
* ```
|
|
1021
|
+
* <mefdev-executor-page [isCompleted]="mainExecutor.activePageInd >= 0"></mefdev-executor-page>
|
|
1022
|
+
* ```
|
|
1023
|
+
*/
|
|
1024
|
+
isCompleted: boolean;
|
|
1025
|
+
/**
|
|
1026
|
+
* The output parameter that emits a boolean value indicating whether our completed step has changed.
|
|
1027
|
+
*
|
|
1028
|
+
* @usageNotes
|
|
1029
|
+
* ```
|
|
1030
|
+
* <mefdev-executor-page (isCompletedChange)="onStepChanged($event)"></mefdev-executor-page>
|
|
1031
|
+
* ```
|
|
1032
|
+
*/
|
|
1033
|
+
isCompletedChange: EventEmitter<boolean>;
|
|
1034
|
+
elRef: ElementRef;
|
|
1035
|
+
constructor(_mainExecutor: StepExecutorComponent, _elementRef: ElementRef);
|
|
1036
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1037
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefdevExecutorPageComponent, [{ host: true; }, null]>;
|
|
1038
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MefdevExecutorPageComponent, "mefdev-executor-page", never, { "title": { "alias": "title"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "isCompleted": { "alias": "isCompleted"; "required": false; }; }, { "isCompletedChange": "isCompletedChange"; }, never, ["*"], false, never>;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Wrapper component that represents a specific encapsulated executor.
|
|
1043
|
+
*
|
|
1044
|
+
* Example of usage:
|
|
1045
|
+
*```
|
|
1046
|
+
* <mefdev-step-executor #mainExecutor [view]="'regular'">
|
|
1047
|
+
*
|
|
1048
|
+
* <ng-template #title>
|
|
1049
|
+
* <!-- Content for the executor title -->
|
|
1050
|
+
* </ng-template>
|
|
1051
|
+
* <ng-template #description>
|
|
1052
|
+
* <!-- Content for the executor description -->
|
|
1053
|
+
* </ng-template>
|
|
1054
|
+
*
|
|
1055
|
+
* <mefdev-executor-page
|
|
1056
|
+
* [title]="'Description of situation 1'"
|
|
1057
|
+
* [isActive]="mainExecutor.activePageInd === 0"
|
|
1058
|
+
* [isCompleted]="mainExecutor.activePageInd >= 0">
|
|
1059
|
+
* <!-- Content of the first executor step -->
|
|
1060
|
+
* </mefdev-executor-page>
|
|
1061
|
+
* <mefdev-executor-page
|
|
1062
|
+
* [title]="'Description of situation 2'"
|
|
1063
|
+
* [isActive]="mainExecutor.activePageInd === 1"
|
|
1064
|
+
* [isCompleted]="mainExecutor.activePageInd >= 1">
|
|
1065
|
+
* <!-- Content of the second executor step -->
|
|
1066
|
+
* </mefdev-executor-page>
|
|
1067
|
+
* <mefdev-executor-page
|
|
1068
|
+
* [title]="'Description of situation 3'"
|
|
1069
|
+
* [isActive]="mainExecutor.activePageInd === 2"
|
|
1070
|
+
* [isCompleted]="mainExecutor.activePageInd >= 2">
|
|
1071
|
+
* <!-- Content of the third executor step -->
|
|
1072
|
+
* </mefdev-executor-page>
|
|
1073
|
+
*
|
|
1074
|
+
* <ng-template #footer>
|
|
1075
|
+
* <!-- Content for the executor footer -->
|
|
1076
|
+
* <ng-template>
|
|
1077
|
+
*
|
|
1078
|
+
* </mefdev-step-executor>
|
|
1079
|
+
*
|
|
1080
|
+
*```
|
|
1081
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/utils/main_executor</example-url>
|
|
1082
|
+
*/
|
|
1083
|
+
declare class StepExecutorComponent implements AfterViewInit {
|
|
1084
|
+
private renderer;
|
|
1085
|
+
private changeDetectorRef;
|
|
1086
|
+
/**
|
|
1087
|
+
* Mandatory input parameter that specifies the type of the step-by-step wizard.
|
|
1088
|
+
* It can have three options: regular, modal, right.
|
|
1089
|
+
*
|
|
1090
|
+
* @usageNotes
|
|
1091
|
+
* ```
|
|
1092
|
+
* <mefdev-step-executor #mainExecutor [view]="'regular'"></mefdev-step-executor>
|
|
1093
|
+
* ```
|
|
1094
|
+
*/
|
|
1095
|
+
view: string;
|
|
1096
|
+
/**
|
|
1097
|
+
* An optional input parameter that specifies whether to show your executor.
|
|
1098
|
+
* Usually used when you have a slideup or right executor view
|
|
1099
|
+
*
|
|
1100
|
+
* @usageNotes
|
|
1101
|
+
* ```
|
|
1102
|
+
* <mefdev-step-executor [show]="true" [view]="'right'" #mainExecutor></mefdev-step-executor>
|
|
1103
|
+
* ```
|
|
1104
|
+
*/
|
|
1105
|
+
show: boolean;
|
|
1106
|
+
/**
|
|
1107
|
+
* ViewChild reference to the host executor content.
|
|
1108
|
+
*/
|
|
1109
|
+
container: ElementRef<HTMLElement>;
|
|
1110
|
+
/**
|
|
1111
|
+
* Template for displaying the content of the executor title.
|
|
1112
|
+
*
|
|
1113
|
+
* @usageNotes
|
|
1114
|
+
* ```
|
|
1115
|
+
* <ng-template #title>
|
|
1116
|
+
* <!-- Content for the executor title -->
|
|
1117
|
+
* </ng-template>
|
|
1118
|
+
* ```
|
|
1119
|
+
*/
|
|
1120
|
+
title: TemplateRef<void>;
|
|
1121
|
+
/**
|
|
1122
|
+
* Template for displaying the content of the executor description.
|
|
1123
|
+
*
|
|
1124
|
+
* @usageNotes
|
|
1125
|
+
* ```
|
|
1126
|
+
* <ng-template #description>
|
|
1127
|
+
* <!-- Content for the executor description -->
|
|
1128
|
+
* </ng-template>
|
|
1129
|
+
* ```
|
|
1130
|
+
*/
|
|
1131
|
+
description: TemplateRef<void>;
|
|
1132
|
+
/**
|
|
1133
|
+
* Template for displaying the content of the executor footer.
|
|
1134
|
+
*
|
|
1135
|
+
* @usageNotes
|
|
1136
|
+
* ```
|
|
1137
|
+
* <ng-template #footer>
|
|
1138
|
+
* <!-- Content for the executor footer -->
|
|
1139
|
+
* </ng-template>
|
|
1140
|
+
* ```
|
|
1141
|
+
*/
|
|
1142
|
+
footer: TemplateRef<void>;
|
|
1143
|
+
/**
|
|
1144
|
+
* The output parameter that emits the class of the active page - active step.
|
|
1145
|
+
*
|
|
1146
|
+
* @usageNotes
|
|
1147
|
+
* ```
|
|
1148
|
+
* <mefdev-step-executor #mainExecutor (onActivePageChange)="getActiveStep($event)"></mefdev-step-executor>
|
|
1149
|
+
* ```
|
|
1150
|
+
*/
|
|
1151
|
+
onActivePageChange: EventEmitter<MefdevExecutorPageComponent>;
|
|
1152
|
+
/**
|
|
1153
|
+
* An output parameter that conveys the current state of the stepper in modal view
|
|
1154
|
+
*
|
|
1155
|
+
* @usageNotes
|
|
1156
|
+
* ```
|
|
1157
|
+
* <mefdev-step-executor [view]="'modal'" (modalStepExecutorStateChange)="getModalExecutorStateValue($event)" #modalExecutor></mefdev-step-executor>
|
|
1158
|
+
* ```
|
|
1159
|
+
*/
|
|
1160
|
+
modalStepExecutorStateChange: EventEmitter<boolean>;
|
|
1161
|
+
/**
|
|
1162
|
+
* An output parameter that conveys the current state of the stepper in right view
|
|
1163
|
+
*
|
|
1164
|
+
* @usageNotes
|
|
1165
|
+
* ```
|
|
1166
|
+
* <mefdev-step-executor [view]="'right'" (modalStepExecutorStateChange)="getModalExecutorStateValue($event)" #rightExecutor></mefdev-step-executor>
|
|
1167
|
+
* ```
|
|
1168
|
+
*/
|
|
1169
|
+
rightStepExecutorStateChange: EventEmitter<boolean>;
|
|
1170
|
+
_activePageInd: number;
|
|
1171
|
+
pages: MefdevExecutorPageComponent[];
|
|
1172
|
+
constructor(renderer: Renderer2, changeDetectorRef: ChangeDetectorRef);
|
|
1173
|
+
set activePageInd(activePageNumber: number);
|
|
1174
|
+
get activePageInd(): number;
|
|
1175
|
+
get activePage(): MefdevExecutorPageComponent | null;
|
|
1176
|
+
ngAfterViewInit(): void;
|
|
1177
|
+
/**
|
|
1178
|
+
* A function that is allows to track the status of your executor in the modal view
|
|
1179
|
+
*/
|
|
1180
|
+
modalStepExecutorVisibleChange(value: boolean): void;
|
|
1181
|
+
/**
|
|
1182
|
+
* A function that is allows to track the status of your executor in the right view
|
|
1183
|
+
*/
|
|
1184
|
+
rightStepExecutorVisibleChange(value: boolean): void;
|
|
1185
|
+
/**
|
|
1186
|
+
* A function that allows you to close your executor
|
|
1187
|
+
*/
|
|
1188
|
+
closeExecutor(): void;
|
|
1189
|
+
/**
|
|
1190
|
+
* Check whether there is a next step of the executor. If we are at the last step - disable the 'next' button
|
|
1191
|
+
*/
|
|
1192
|
+
nextBtnIsDisabled(): boolean;
|
|
1193
|
+
/**
|
|
1194
|
+
* Check whether there is a next step of the executor. If we are at the last step - disable the 'next' button
|
|
1195
|
+
*/
|
|
1196
|
+
prev(): void;
|
|
1197
|
+
/**
|
|
1198
|
+
* Go back to the previous step
|
|
1199
|
+
*/
|
|
1200
|
+
cancel(): void;
|
|
1201
|
+
/**
|
|
1202
|
+
* Go to the next step
|
|
1203
|
+
*/
|
|
1204
|
+
next(): void;
|
|
1205
|
+
/**
|
|
1206
|
+
* Set a specific active page
|
|
1207
|
+
*/
|
|
1208
|
+
setActivePage(pageNumber: number): void;
|
|
1209
|
+
/**
|
|
1210
|
+
* Add new page
|
|
1211
|
+
*/
|
|
1212
|
+
addPage(page: MefdevExecutorPageComponent): void;
|
|
1213
|
+
/**
|
|
1214
|
+
* Delete a specific page
|
|
1215
|
+
*/
|
|
1216
|
+
removeSpecificPage(page: MefdevExecutorPageComponent): void;
|
|
1217
|
+
/**
|
|
1218
|
+
* Delete a page by its index
|
|
1219
|
+
*/
|
|
1220
|
+
removePageByIndex(index: number): void;
|
|
1221
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepExecutorComponent, never>;
|
|
1222
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepExecutorComponent, "mefdev-step-executor", never, { "view": { "alias": "view"; "required": true; }; "show": { "alias": "show"; "required": false; }; }, { "onActivePageChange": "onActivePageChange"; "modalStepExecutorStateChange": "modalStepExecutorStateChange"; "rightStepExecutorStateChange": "rightStepExecutorStateChange"; }, ["title", "description", "footer"], never, false, never>;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
declare class MefDevStepExecutorModule {
|
|
1226
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevStepExecutorModule, never>;
|
|
1227
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevStepExecutorModule, [typeof StepExecutorComponent, typeof MefdevExecutorPageComponent, typeof StageComponent], [typeof MefDevModalModule, typeof i2.CommonModule, typeof i5.FormsModule], [typeof StepExecutorComponent, typeof MefdevExecutorPageComponent, typeof StageComponent]>;
|
|
1228
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevStepExecutorModule>;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
declare class MefdevDropdownMenuComponent {
|
|
1232
|
+
private _eref;
|
|
1233
|
+
label: TemplateRef<void>;
|
|
1234
|
+
protected isOpen: boolean;
|
|
1235
|
+
constructor(_eref: ElementRef);
|
|
1236
|
+
onClick($event: any): void;
|
|
1237
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefdevDropdownMenuComponent, never>;
|
|
1238
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MefdevDropdownMenuComponent, "mefdev-dropdown-menu", never, {}, {}, ["label"], ["*"], false, never>;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
declare class MefDevDropDownMenuModule {
|
|
1242
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevDropDownMenuModule, never>;
|
|
1243
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevDropDownMenuModule, [typeof MefdevDropdownMenuComponent], [typeof i2.CommonModule], [typeof MefdevDropdownMenuComponent]>;
|
|
1244
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevDropDownMenuModule>;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* Component representing a progress bar.
|
|
1249
|
+
*
|
|
1250
|
+
* Example of usage:
|
|
1251
|
+
*
|
|
1252
|
+
* ```
|
|
1253
|
+
* <mefdev-progress type="linear" color="blue" [thick]="true"></mefdev-progress>
|
|
1254
|
+
* <mefdev-progress type="circle" color="red" [indeterminate]="true"></mefdev-progress>
|
|
1255
|
+
* ```
|
|
1256
|
+
*/
|
|
1257
|
+
declare class MefDevProgressComponent {
|
|
1258
|
+
_value: number;
|
|
1259
|
+
_value2: any;
|
|
1260
|
+
/**
|
|
1261
|
+
* The type of progress bar.
|
|
1262
|
+
* Possible values: "linear" | "circle".
|
|
1263
|
+
* Default value: "linear".
|
|
1264
|
+
*/
|
|
1265
|
+
type: string;
|
|
1266
|
+
/**
|
|
1267
|
+
* The color of the progress bar.
|
|
1268
|
+
* Possible values: any valid CSS color value.
|
|
1269
|
+
* Default value: none.
|
|
1270
|
+
*/
|
|
1271
|
+
color: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* Determines whether the progress bar is thick.
|
|
1274
|
+
* Default value: false.
|
|
1275
|
+
*/
|
|
1276
|
+
thick: boolean;
|
|
1277
|
+
/**
|
|
1278
|
+
* Determines whether the progress bar is indeterminate.
|
|
1279
|
+
* Default value: false.
|
|
1280
|
+
*/
|
|
1281
|
+
indeterminate: boolean;
|
|
1282
|
+
/**
|
|
1283
|
+
* The value of the progress bar.
|
|
1284
|
+
* For the "circle" type, it should be a number between 0 and 100.
|
|
1285
|
+
*/
|
|
1286
|
+
set value(value: number);
|
|
1287
|
+
get value(): number;
|
|
1288
|
+
/**
|
|
1289
|
+
* Additional value property.
|
|
1290
|
+
*/
|
|
1291
|
+
get value2(): any;
|
|
1292
|
+
constructor();
|
|
1293
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevProgressComponent, never>;
|
|
1294
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevProgressComponent, "mefdev-progress", never, { "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; "thick": { "alias": "thick"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
declare class ProgressConfig {
|
|
1298
|
+
color: string;
|
|
1299
|
+
thickness: number;
|
|
1300
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressConfig, never>;
|
|
1301
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProgressConfig>;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
declare class MefDevProgressModule {
|
|
1305
|
+
static forRoot(): ModuleWithProviders<MefDevProgressModule>;
|
|
1306
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevProgressModule, never>;
|
|
1307
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevProgressModule, [typeof MefDevProgressComponent], [typeof i2.CommonModule], [typeof MefDevProgressComponent]>;
|
|
1308
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevProgressModule>;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* @component
|
|
1313
|
+
* @skipTemplateDoc: true
|
|
1314
|
+
* Example of usage:
|
|
1315
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/controls/switch</example-url>
|
|
1316
|
+
*/
|
|
1317
|
+
declare class MefDevSwitchComponent implements OnInit, ControlValueAccessor {
|
|
1318
|
+
private _disabled;
|
|
1319
|
+
_prefixCls: string;
|
|
1320
|
+
_color: string;
|
|
1321
|
+
_innerPrefixCls: string;
|
|
1322
|
+
_classMap: any;
|
|
1323
|
+
_size: string;
|
|
1324
|
+
_checked: boolean;
|
|
1325
|
+
/**
|
|
1326
|
+
* Event emitted when the value of the switch changes.
|
|
1327
|
+
*
|
|
1328
|
+
* @output
|
|
1329
|
+
* @param value The new value of the switch.
|
|
1330
|
+
*
|
|
1331
|
+
* Usage example:
|
|
1332
|
+
* ```
|
|
1333
|
+
* <mefdev-switch (onChange)="handleSwitchChange($event)"></mefdev-switch>
|
|
1334
|
+
* ```
|
|
1335
|
+
*/
|
|
1336
|
+
onChange: (value: boolean) => void;
|
|
1337
|
+
onTouched: () => void;
|
|
1338
|
+
/**
|
|
1339
|
+
* Sets the value of the switch.
|
|
1340
|
+
*
|
|
1341
|
+
* @input
|
|
1342
|
+
* @param value The value of the switch.
|
|
1343
|
+
*
|
|
1344
|
+
* Usage example:
|
|
1345
|
+
* ```
|
|
1346
|
+
* <mefdev-switch [Value]="true"></mefdev-switch>
|
|
1347
|
+
* ```
|
|
1348
|
+
*/
|
|
1349
|
+
set Value(value: boolean);
|
|
1350
|
+
/**
|
|
1351
|
+
* Sets the size of the switch.
|
|
1352
|
+
*
|
|
1353
|
+
* @input
|
|
1354
|
+
* @param value The size of the switch (e.g., "small", "large").
|
|
1355
|
+
*
|
|
1356
|
+
* Usage example:
|
|
1357
|
+
* ```
|
|
1358
|
+
* <mefdev-switch [Size]="'small'"></mefdev-switch>
|
|
1359
|
+
* ```
|
|
1360
|
+
*/
|
|
1361
|
+
set Size(value: string);
|
|
1362
|
+
/**
|
|
1363
|
+
* Sets the color of the switch.
|
|
1364
|
+
*
|
|
1365
|
+
* @input
|
|
1366
|
+
* @param value The color of the switch (e.g., "primary", "secondary").
|
|
1367
|
+
*
|
|
1368
|
+
* Usage example:
|
|
1369
|
+
* ```
|
|
1370
|
+
* <mefdev-switch [Color]="'primary'"></mefdev-switch>
|
|
1371
|
+
* ```
|
|
1372
|
+
*/
|
|
1373
|
+
set Color(value: string);
|
|
1374
|
+
/**
|
|
1375
|
+
* Gets the current size of the switch.
|
|
1376
|
+
*
|
|
1377
|
+
* @input
|
|
1378
|
+
* @returns The size of the switch.
|
|
1379
|
+
*
|
|
1380
|
+
* Usage example:
|
|
1381
|
+
* ```
|
|
1382
|
+
* const size = mySwitchComponent.Size;
|
|
1383
|
+
* ```
|
|
1384
|
+
*/
|
|
1385
|
+
get Size(): string;
|
|
1386
|
+
/**
|
|
1387
|
+
* Sets the disabled state of the switch.
|
|
1388
|
+
*
|
|
1389
|
+
* @input
|
|
1390
|
+
* @param value The disabled state of the switch.
|
|
1391
|
+
*
|
|
1392
|
+
* Usage example:
|
|
1393
|
+
* ```
|
|
1394
|
+
* <mefdev-switch [Disabled]="true"></mefdev-switch>
|
|
1395
|
+
* ```
|
|
1396
|
+
*/
|
|
1397
|
+
set Disabled(value: boolean);
|
|
1398
|
+
/**
|
|
1399
|
+
* Gets the current disabled state of the switch.
|
|
1400
|
+
*
|
|
1401
|
+
* @input
|
|
1402
|
+
* @returns The disabled state of the switch.
|
|
1403
|
+
*
|
|
1404
|
+
* Usage example:
|
|
1405
|
+
* ```
|
|
1406
|
+
* const disabled = mySwitchComponent.Disabled;
|
|
1407
|
+
* ```
|
|
1408
|
+
*/
|
|
1409
|
+
get Disabled(): boolean;
|
|
1410
|
+
/**
|
|
1411
|
+
* Handles the click event of the switch.
|
|
1412
|
+
*
|
|
1413
|
+
* @param e The click event object.
|
|
1414
|
+
*
|
|
1415
|
+
* Usage example:
|
|
1416
|
+
* ```
|
|
1417
|
+
* <mefdev-switch (click)="handleSwitchClick($event)"></mefdev-switch>
|
|
1418
|
+
* ```
|
|
1419
|
+
*/
|
|
1420
|
+
onClick(e: MouseEvent): void;
|
|
1421
|
+
/**
|
|
1422
|
+
* Updates the value of the switch.
|
|
1423
|
+
*
|
|
1424
|
+
* @param value The new value of the switch.
|
|
1425
|
+
*
|
|
1426
|
+
* Usage example:
|
|
1427
|
+
* ```
|
|
1428
|
+
* this.updateValue(true);
|
|
1429
|
+
* ```
|
|
1430
|
+
*/
|
|
1431
|
+
updateValue(value: boolean): void;
|
|
1432
|
+
/**
|
|
1433
|
+
* Sets the class map for the switch.
|
|
1434
|
+
*
|
|
1435
|
+
* Usage example:
|
|
1436
|
+
* ```
|
|
1437
|
+
* this.setClassMap();
|
|
1438
|
+
* ```
|
|
1439
|
+
*/
|
|
1440
|
+
setClassMap(): void;
|
|
1441
|
+
/**
|
|
1442
|
+
* Writes a new value to the switch.
|
|
1443
|
+
*
|
|
1444
|
+
* @param value The new value of the switch.
|
|
1445
|
+
*
|
|
1446
|
+
* Usage example:
|
|
1447
|
+
* ```
|
|
1448
|
+
* this.writeValue(true);
|
|
1449
|
+
* ```
|
|
1450
|
+
*/
|
|
1451
|
+
writeValue(value: boolean): void;
|
|
1452
|
+
/**
|
|
1453
|
+
* Registers a callback function to be executed when the switch value changes.
|
|
1454
|
+
*
|
|
1455
|
+
* @param fn The callback function.
|
|
1456
|
+
*
|
|
1457
|
+
* Usage example:
|
|
1458
|
+
* ```
|
|
1459
|
+
* this.registerOnChange(value => {
|
|
1460
|
+
* // Do something with the new value
|
|
1461
|
+
* });
|
|
1462
|
+
* ```
|
|
1463
|
+
*/
|
|
1464
|
+
registerOnChange(fn: (_: boolean) => void): void;
|
|
1465
|
+
/**
|
|
1466
|
+
* Registers a callback function to be executed when the switch is touched.
|
|
1467
|
+
*
|
|
1468
|
+
* @param fn The callback function.
|
|
1469
|
+
*
|
|
1470
|
+
* Usage example:
|
|
1471
|
+
* ```
|
|
1472
|
+
* this.registerOnTouched(() => {
|
|
1473
|
+
* // Do something when the switch is touched
|
|
1474
|
+
* });
|
|
1475
|
+
* ```
|
|
1476
|
+
*/
|
|
1477
|
+
registerOnTouched(fn: () => void): void;
|
|
1478
|
+
/**
|
|
1479
|
+
* Sets the disabled state of the switch.
|
|
1480
|
+
*
|
|
1481
|
+
* @param isDisabled The disabled state of the switch.
|
|
1482
|
+
*
|
|
1483
|
+
* Usage example:
|
|
1484
|
+
* ```
|
|
1485
|
+
* this.setDisabledState(true);
|
|
1486
|
+
* ```
|
|
1487
|
+
*/
|
|
1488
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1489
|
+
ngOnInit(): void;
|
|
1490
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevSwitchComponent, never>;
|
|
1491
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevSwitchComponent, "mefdev-switch", never, { "Value": { "alias": "Value"; "required": false; }; "Size": { "alias": "Size"; "required": false; }; "Color": { "alias": "Color"; "required": false; }; "Disabled": { "alias": "Disabled"; "required": false; }; }, { "onChange": "onChange"; }, never, ["[checked]", "[unchecked]"], false, never>;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
declare class MefDevSwitchModule {
|
|
1495
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevSwitchModule, never>;
|
|
1496
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevSwitchModule, [typeof MefDevSwitchComponent], [typeof i2.CommonModule], [typeof MefDevSwitchComponent]>;
|
|
1497
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevSwitchModule>;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* Component representing the body of a tab, which displays the tab's content.
|
|
1502
|
+
*/
|
|
1503
|
+
declare class MefDevTabBodyComponent {
|
|
1504
|
+
/**
|
|
1505
|
+
* The content of the tab, which can be passed as a template.
|
|
1506
|
+
*/
|
|
1507
|
+
content: TemplateRef<void>;
|
|
1508
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabBodyComponent, never>;
|
|
1509
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevTabBodyComponent, "mefdev-tab-body", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
declare class MefDevTabLabelDirective {
|
|
1513
|
+
elementRef: ElementRef;
|
|
1514
|
+
private _disabled;
|
|
1515
|
+
set disabled(value: boolean);
|
|
1516
|
+
get disabled(): boolean;
|
|
1517
|
+
constructor(elementRef: ElementRef);
|
|
1518
|
+
getOffsetLeft(): number;
|
|
1519
|
+
getOffsetWidth(): number;
|
|
1520
|
+
getOffsetTop(): number;
|
|
1521
|
+
getOffsetHeight(): number;
|
|
1522
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabLabelDirective, never>;
|
|
1523
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MefDevTabLabelDirective, "[mefdev-tab-label]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
type TabPositionMode$2 = 'horizontal' | 'vertical';
|
|
1527
|
+
declare class MefDevTabsInkBarDirective {
|
|
1528
|
+
private _renderer;
|
|
1529
|
+
private _elementRef;
|
|
1530
|
+
private _ngZone;
|
|
1531
|
+
private _animated;
|
|
1532
|
+
set Animated(value: boolean);
|
|
1533
|
+
get Animated(): boolean;
|
|
1534
|
+
PositionMode: TabPositionMode$2;
|
|
1535
|
+
constructor(_renderer: Renderer2, _elementRef: ElementRef, _ngZone: NgZone);
|
|
1536
|
+
alignToElement(element: HTMLElement): void;
|
|
1537
|
+
show(): void;
|
|
1538
|
+
setDisplay(value: string): void;
|
|
1539
|
+
hide(): void;
|
|
1540
|
+
_getLeftPosition(element: HTMLElement): string;
|
|
1541
|
+
_getElementWidth(element: HTMLElement): string;
|
|
1542
|
+
_getTopPosition(element: HTMLElement): string;
|
|
1543
|
+
_getElementHeight(element: HTMLElement): string;
|
|
1544
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabsInkBarDirective, never>;
|
|
1545
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MefDevTabsInkBarDirective, "[mefdev-tabs-ink-bar]", never, { "Animated": { "alias": "Animated"; "required": false; }; "PositionMode": { "alias": "PositionMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
/** code from https://github.com/angular/material2 */
|
|
1549
|
+
|
|
1550
|
+
type ScrollDirection$1 = 'after' | 'before';
|
|
1551
|
+
/** duplicated defined https://github.com/angular/angular-cli/issues/2034 **/
|
|
1552
|
+
type TabPositionMode$1 = 'horizontal' | 'vertical';
|
|
1553
|
+
declare class MefDevTabsNavComponent implements AfterContentChecked, AfterContentInit {
|
|
1554
|
+
_elementRef: ElementRef;
|
|
1555
|
+
private _ngZone;
|
|
1556
|
+
private _renderer;
|
|
1557
|
+
private _dir;
|
|
1558
|
+
private _animated;
|
|
1559
|
+
private _hideBar;
|
|
1560
|
+
private _showPagination;
|
|
1561
|
+
_showPaginationControls: boolean;
|
|
1562
|
+
_disableScrollAfter: boolean;
|
|
1563
|
+
_disableScrollBefore: boolean;
|
|
1564
|
+
_scrollDistance: number;
|
|
1565
|
+
_selectedIndexChanged: boolean;
|
|
1566
|
+
_realignInkBar: Subscription | null;
|
|
1567
|
+
_tabLabelCount: number;
|
|
1568
|
+
_scrollDistanceChanged: boolean;
|
|
1569
|
+
_selectedIndex: number;
|
|
1570
|
+
_tabPositionMode: TabPositionMode$1;
|
|
1571
|
+
_tabPosition: string;
|
|
1572
|
+
Size: string;
|
|
1573
|
+
_type: string;
|
|
1574
|
+
set Animated(value: boolean);
|
|
1575
|
+
get Animated(): boolean;
|
|
1576
|
+
set Position(value: string);
|
|
1577
|
+
get Position(): string;
|
|
1578
|
+
set HideBar(value: boolean);
|
|
1579
|
+
get HideBar(): boolean;
|
|
1580
|
+
set Type(value: string);
|
|
1581
|
+
get Type(): string;
|
|
1582
|
+
_tabBarExtraContent: TemplateRef<void>;
|
|
1583
|
+
_labelWrappers: QueryList<MefDevTabLabelDirective>;
|
|
1584
|
+
_inkBar: MefDevTabsInkBarDirective;
|
|
1585
|
+
_tabListContainer: ElementRef;
|
|
1586
|
+
_tabList: ElementRef;
|
|
1587
|
+
set ShowPagination(value: boolean);
|
|
1588
|
+
get ShowPagination(): boolean;
|
|
1589
|
+
set PositionMode(value: TabPositionMode$1);
|
|
1590
|
+
get PositionMode(): TabPositionMode$1;
|
|
1591
|
+
set selectedIndex(value: number);
|
|
1592
|
+
get selectedIndex(): number;
|
|
1593
|
+
constructor(_elementRef: ElementRef, _ngZone: NgZone, _renderer: Renderer2, _dir: Directionality);
|
|
1594
|
+
_onContentChanges(): void;
|
|
1595
|
+
_scrollHeader(scrollDir: ScrollDirection$1): void;
|
|
1596
|
+
ngAfterContentChecked(): void;
|
|
1597
|
+
ngAfterContentInit(): void;
|
|
1598
|
+
_updateTabScrollPosition(): void;
|
|
1599
|
+
_updatePagination(): void;
|
|
1600
|
+
_checkPaginationEnabled(): void;
|
|
1601
|
+
_scrollToLabel(labelIndex: number): void;
|
|
1602
|
+
_checkScrollingControls(): void;
|
|
1603
|
+
/**
|
|
1604
|
+
* Determines what is the maximum length in pixels that can be set for the scroll distance. This
|
|
1605
|
+
* is equal to the difference in width between the tab list container and tab header container.
|
|
1606
|
+
*
|
|
1607
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
1608
|
+
* should be called sparingly.
|
|
1609
|
+
*/
|
|
1610
|
+
_getMaxScrollDistance(): number;
|
|
1611
|
+
/** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
|
|
1612
|
+
set scrollDistance(v: number);
|
|
1613
|
+
get scrollDistance(): number;
|
|
1614
|
+
get viewWidthHeightPix(): number;
|
|
1615
|
+
get tabListScrollWidthHeightPix(): number;
|
|
1616
|
+
get elementRefOffSetWidthHeight(): number;
|
|
1617
|
+
_getLayoutDirection(): Direction;
|
|
1618
|
+
_alignInkBarToSelectedTab(): void;
|
|
1619
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabsNavComponent, [null, null, null, { optional: true; }]>;
|
|
1620
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevTabsNavComponent, "mefdev-tabs-nav", never, { "Size": { "alias": "Size"; "required": false; }; "Animated": { "alias": "Animated"; "required": false; }; "Position": { "alias": "Position"; "required": false; }; "HideBar": { "alias": "HideBar"; "required": false; }; "Type": { "alias": "Type"; "required": false; }; "ShowPagination": { "alias": "ShowPagination"; "required": false; }; "PositionMode": { "alias": "PositionMode"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; }, {}, ["_tabBarExtraContent", "_labelWrappers"], ["*"], false, never>;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
/** code from https://github.com/angular/material2 */
|
|
1624
|
+
|
|
1625
|
+
interface AnimatedInterface {
|
|
1626
|
+
inkBar: boolean;
|
|
1627
|
+
tabPane: boolean;
|
|
1628
|
+
}
|
|
1629
|
+
declare class TabChangeEvent {
|
|
1630
|
+
index: number;
|
|
1631
|
+
tab: MefDevTabComponent;
|
|
1632
|
+
}
|
|
1633
|
+
type TabPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
1634
|
+
type TabPositionMode = 'horizontal' | 'vertical';
|
|
1635
|
+
type TabType = 'line' | 'fillup' | 'linetriangle';
|
|
1636
|
+
/**
|
|
1637
|
+
* Represents a tab set or tab group component.
|
|
1638
|
+
* @example
|
|
1639
|
+
* <mefdev-tabset TabPosition="top" Animated="true" ShowPagination="true">
|
|
1640
|
+
* <mefdev-tab label="Tab 1">Tab 1 content</mefdev-tab>
|
|
1641
|
+
* <mefdev-tab label="Tab 2">Tab 2 content</mefdev-tab>
|
|
1642
|
+
* </mefdev-tabset>
|
|
1643
|
+
*
|
|
1644
|
+
* Example of usage:
|
|
1645
|
+
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/tabset</example-url>
|
|
1646
|
+
*/
|
|
1647
|
+
declare class MefDevTabSetComponent implements AfterContentChecked, OnInit, AfterViewInit {
|
|
1648
|
+
private _renderer;
|
|
1649
|
+
_el: any;
|
|
1650
|
+
_classMap: any;
|
|
1651
|
+
_prefixCls: string;
|
|
1652
|
+
_width: any;
|
|
1653
|
+
_tabPosition: TabPosition;
|
|
1654
|
+
_tabPositionMode: TabPositionMode;
|
|
1655
|
+
_indexToSelect: number | null;
|
|
1656
|
+
_selectedIndex: number | null;
|
|
1657
|
+
_isViewInit: boolean;
|
|
1658
|
+
_tabs: MefDevTabComponent[];
|
|
1659
|
+
_tabAnimation: string;
|
|
1660
|
+
_extra_tab_class: string;
|
|
1661
|
+
_extra_tabcontent_class: string;
|
|
1662
|
+
/**
|
|
1663
|
+
* Template reference for additional content to be displayed in the tab bar.
|
|
1664
|
+
*/
|
|
1665
|
+
TabBarExtraTemplate: TemplateRef<void>;
|
|
1666
|
+
TabBarExtraContent: TemplateRef<void>;
|
|
1667
|
+
_tabNav: MefDevTabsNavComponent;
|
|
1668
|
+
_tabContent: ElementRef;
|
|
1669
|
+
_hostContent: ElementRef;
|
|
1670
|
+
/**
|
|
1671
|
+
* Whether the tab set is animated. Can be a boolean or an object of type AnimatedInterface.
|
|
1672
|
+
* @example
|
|
1673
|
+
* - true (enables animation for both ink bar and tab pane)
|
|
1674
|
+
* - { inkBar: true, tabPane: false } (enables animation for ink bar only)
|
|
1675
|
+
* Default: true
|
|
1676
|
+
*/
|
|
1677
|
+
Animated: AnimatedInterface | boolean;
|
|
1678
|
+
/**
|
|
1679
|
+
* Whether to show pagination controls for scrolling tabs.
|
|
1680
|
+
* @example true
|
|
1681
|
+
* Default: true
|
|
1682
|
+
*/
|
|
1683
|
+
ShowPagination: boolean;
|
|
1684
|
+
/**
|
|
1685
|
+
* Whether the tab set is hidden.
|
|
1686
|
+
* @example true
|
|
1687
|
+
* Default: false
|
|
1688
|
+
*/
|
|
1689
|
+
Hide: boolean;
|
|
1690
|
+
/**
|
|
1691
|
+
* The index of the selected tab.
|
|
1692
|
+
*/
|
|
1693
|
+
set SelectedIndex(value: number | null);
|
|
1694
|
+
get SelectedIndex(): number | null;
|
|
1695
|
+
/**
|
|
1696
|
+
* Event emitted when the selected tab index changes.
|
|
1697
|
+
* @returns An Observable emitting the index of the selected tab.
|
|
1698
|
+
*/
|
|
1699
|
+
get SelectedIndexChange(): Observable<number>;
|
|
1700
|
+
/**
|
|
1701
|
+
* Event emitted when a tab is selected.
|
|
1702
|
+
* @example
|
|
1703
|
+
* <mefdev-tabset (SelectChange)="onTabSelect($event)"></mefdev-tabset>
|
|
1704
|
+
*/
|
|
1705
|
+
SelectChange: EventEmitter<TabChangeEvent>;
|
|
1706
|
+
/**
|
|
1707
|
+
* Size of the tab set. Can be 'default', 'small', or 'large'.
|
|
1708
|
+
* @example 'large'
|
|
1709
|
+
* Default: 'default'
|
|
1710
|
+
*/
|
|
1711
|
+
Size: string;
|
|
1712
|
+
_type: TabType;
|
|
1713
|
+
tabs: MefDevTabComponent[];
|
|
1714
|
+
/**
|
|
1715
|
+
* Position of the tab set. Can be 'top', 'bottom', 'left', or 'right'.
|
|
1716
|
+
*/
|
|
1717
|
+
set TabPosition(value: TabPosition);
|
|
1718
|
+
get TabPosition(): TabPosition;
|
|
1719
|
+
/**
|
|
1720
|
+
* Additional CSS class for the tabs.
|
|
1721
|
+
*/
|
|
1722
|
+
set extraTabClass(value: string);
|
|
1723
|
+
/**
|
|
1724
|
+
* Additional CSS class for the tab content.
|
|
1725
|
+
*/
|
|
1726
|
+
set extraTabContentClass(value: string);
|
|
1727
|
+
/**
|
|
1728
|
+
* Type of the tab set. Can be 'line', 'fillup', or 'linetriangle'.
|
|
1729
|
+
*/
|
|
1730
|
+
set Type(value: TabType);
|
|
1731
|
+
/**
|
|
1732
|
+
* Animation to apply to the tabs. Accepts CSS animation name.
|
|
1733
|
+
*/
|
|
1734
|
+
set tabAnimation(value: string);
|
|
1735
|
+
get Type(): TabType;
|
|
1736
|
+
_setPosition(value: TabPosition): void;
|
|
1737
|
+
_setClassMap(): void;
|
|
1738
|
+
/**
|
|
1739
|
+
* Selects the tab at the specified index.
|
|
1740
|
+
* @param index The index of the tab to select.
|
|
1741
|
+
* ```
|
|
1742
|
+
* <button (click)="clickLabel(0)">Select Tab 1</button>
|
|
1743
|
+
*```
|
|
1744
|
+
*/
|
|
1745
|
+
clickLabel(index: number): void;
|
|
1746
|
+
ngOnInit(): void;
|
|
1747
|
+
ngAfterContentChecked(): void;
|
|
1748
|
+
ngAfterViewInit(): void;
|
|
1749
|
+
private _createChangeEvent;
|
|
1750
|
+
get inkBarAnimated(): boolean;
|
|
1751
|
+
get tabPaneAnimated(): boolean;
|
|
1752
|
+
constructor(_renderer: Renderer2);
|
|
1753
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabSetComponent, never>;
|
|
1754
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevTabSetComponent, "mefdev-tabset", never, { "TabBarExtraTemplate": { "alias": "TabBarExtraTemplate"; "required": false; }; "Animated": { "alias": "Animated"; "required": false; }; "ShowPagination": { "alias": "ShowPagination"; "required": false; }; "Hide": { "alias": "Hide"; "required": false; }; "SelectedIndex": { "alias": "SelectedIndex"; "required": false; }; "Size": { "alias": "Size"; "required": false; }; "TabPosition": { "alias": "TabPosition"; "required": false; }; "extraTabClass": { "alias": "extraTabClass"; "required": false; }; "extraTabContentClass": { "alias": "extraTabContentClass"; "required": false; }; "Type": { "alias": "Type"; "required": false; }; "tabAnimation": { "alias": "tabAnimation"; "required": false; }; }, { "SelectedIndexChange": "SelectedIndexChange"; "SelectChange": "SelectChange"; }, ["TabBarExtraContent"], never, false, never>;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
declare class MefDevTabComponent implements OnDestroy, OnInit {
|
|
1758
|
+
private MefDevTabSetComponent;
|
|
1759
|
+
private disabled;
|
|
1760
|
+
position: number | null;
|
|
1761
|
+
origin: number | null;
|
|
1762
|
+
/**
|
|
1763
|
+
* Sets the disabled state of the tab.
|
|
1764
|
+
*```html
|
|
1765
|
+
* <mefdev-tab [Disabled]="true"></mefdev-tab>
|
|
1766
|
+
* ```
|
|
1767
|
+
*/
|
|
1768
|
+
set Disabled(value: boolean);
|
|
1769
|
+
/**
|
|
1770
|
+
* Gets the disabled state of the tab.
|
|
1771
|
+
*/
|
|
1772
|
+
get Disabled(): boolean;
|
|
1773
|
+
/**
|
|
1774
|
+
* Event emitted when the tab is selected.
|
|
1775
|
+
*```html
|
|
1776
|
+
* <mefdev-tab (pgSelect)="onTabSelect()"></mefdev-tab>
|
|
1777
|
+
* ```
|
|
1778
|
+
*/
|
|
1779
|
+
pgSelect: EventEmitter<any>;
|
|
1780
|
+
/**
|
|
1781
|
+
* Event emitted when the tab is clicked.
|
|
1782
|
+
*```html
|
|
1783
|
+
* <mefdev-tab (pgClick)="onTabClick()"></mefdev-tab>
|
|
1784
|
+
* ```
|
|
1785
|
+
*/
|
|
1786
|
+
pgClick: EventEmitter<any>;
|
|
1787
|
+
/**
|
|
1788
|
+
* Event emitted when the tab is deselected.
|
|
1789
|
+
*```html
|
|
1790
|
+
* <mefdev-tab (pgDeselect)="onTabDeselect()"></mefdev-tab>
|
|
1791
|
+
*```
|
|
1792
|
+
*/
|
|
1793
|
+
pgDeselect: EventEmitter<any>;
|
|
1794
|
+
/**
|
|
1795
|
+
* Reference to the template for the tab heading.
|
|
1796
|
+
*/
|
|
1797
|
+
_tabHeading: TemplateRef<void>;
|
|
1798
|
+
/**
|
|
1799
|
+
* Reference to the template for the tab content.
|
|
1800
|
+
*/
|
|
1801
|
+
_content: TemplateRef<void>;
|
|
1802
|
+
/**
|
|
1803
|
+
* Gets the template for the tab content.
|
|
1804
|
+
*```html
|
|
1805
|
+
* <ng-container *ngTemplateOutlet="content"></ng-container>
|
|
1806
|
+
*```
|
|
1807
|
+
*/
|
|
1808
|
+
get content(): TemplateRef<void> | null;
|
|
1809
|
+
constructor(MefDevTabSetComponent: MefDevTabSetComponent);
|
|
1810
|
+
/**
|
|
1811
|
+
* Initializes the tab component.
|
|
1812
|
+
*/
|
|
1813
|
+
ngOnInit(): void;
|
|
1814
|
+
/**
|
|
1815
|
+
* Cleans up resources when the tab component is destroyed.
|
|
1816
|
+
*/
|
|
1817
|
+
ngOnDestroy(): void;
|
|
1818
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabComponent, never>;
|
|
1819
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevTabComponent, "mefdev-tab", never, { "Disabled": { "alias": "Disabled"; "required": false; }; }, { "pgSelect": "pgSelect"; "pgClick": "pgClick"; "pgDeselect": "pgDeselect"; }, ["_tabHeading"], ["*"], false, never>;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
declare class MefDevTabsModule {
|
|
1823
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabsModule, never>;
|
|
1824
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevTabsModule, [typeof MefDevTabComponent, typeof MefDevTabSetComponent, typeof MefDevTabsNavComponent, typeof MefDevTabLabelDirective, typeof MefDevTabsInkBarDirective, typeof MefDevTabBodyComponent], [typeof i2.CommonModule], [typeof MefDevTabComponent, typeof MefDevTabSetComponent, typeof MefDevTabsNavComponent, typeof MefDevTabLabelDirective, typeof MefDevTabsInkBarDirective, typeof MefDevTabBodyComponent]>;
|
|
1825
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevTabsModule>;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
type AccordionDisplayMode = 'default' | 'flat';
|
|
1829
|
+
type AccordionTogglePosition = 'before' | 'after';
|
|
1830
|
+
interface AccordionBase extends CdkAccordion {
|
|
1831
|
+
hideToggle: boolean;
|
|
1832
|
+
displayMode: AccordionDisplayMode;
|
|
1833
|
+
togglePosition: AccordionTogglePosition;
|
|
1834
|
+
_handleHeaderKeydown: (event: KeyboardEvent) => void;
|
|
1835
|
+
_handleHeaderFocus: (header: any) => void;
|
|
1836
|
+
}
|
|
1837
|
+
declare const ACCORDION: InjectionToken<AccordionBase>;
|
|
1838
|
+
|
|
1839
|
+
interface ExpansionPanelBase extends CdkAccordionItem {
|
|
1840
|
+
hideToggle: boolean;
|
|
1841
|
+
}
|
|
1842
|
+
declare const MD_EXPANSION_PANEL: InjectionToken<ExpansionPanelBase>;
|
|
1843
|
+
|
|
1844
|
+
declare class MDExpansionPanelContent {
|
|
1845
|
+
_template: TemplateRef<any>;
|
|
1846
|
+
_expansionPanel: ExpansionPanelBase | null;
|
|
1847
|
+
constructor();
|
|
1848
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDExpansionPanelContent, never>;
|
|
1849
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDExpansionPanelContent, "ng-template[mdExpansionPanelContent]", never, {}, {}, never, never, true, never>;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
/** Visual state of the panel used by host bindings/classes. */
|
|
1853
|
+
type ExpansionPanelState = 'expanded' | 'collapsed';
|
|
1854
|
+
/** Optional DI defaults for panel behavior and look. */
|
|
1855
|
+
interface ExpansionPanelDefaultOptions {
|
|
1856
|
+
expandedHeight: string;
|
|
1857
|
+
collapsedHeight: string;
|
|
1858
|
+
hideToggle: boolean;
|
|
1859
|
+
}
|
|
1860
|
+
/** Injection token for providing default expansion-panel options. */
|
|
1861
|
+
declare const EXPANSION_PANEL_DEFAULT_OPTIONS: InjectionToken<ExpansionPanelDefaultOptions>;
|
|
1862
|
+
declare class MDExpansionPanel extends CdkAccordionItem implements AfterContentInit, OnChanges, OnDestroy {
|
|
1863
|
+
/** View container for lazily attaching projected content via portals. */
|
|
1864
|
+
private _viewContainerRef;
|
|
1865
|
+
/** Global animation toggle for this component instance. */
|
|
1866
|
+
private readonly _animationsDisabled;
|
|
1867
|
+
/** Document reference for focus containment checks. */
|
|
1868
|
+
private _document;
|
|
1869
|
+
/** NgZone to run listeners outside Angular and re-enter only on emit. */
|
|
1870
|
+
private _ngZone;
|
|
1871
|
+
/** Host element ref for event binding and CSS class toggles. */
|
|
1872
|
+
private _elementRef;
|
|
1873
|
+
/** Renderer used to register `transitionend` listeners. */
|
|
1874
|
+
private _renderer;
|
|
1875
|
+
/** Cleanup function returned by Renderer2.listen; called on destroy. */
|
|
1876
|
+
private _cleanupTransitionEnd;
|
|
1877
|
+
/** Whether the toggle indicator should be hidden (local or inherited). */
|
|
1878
|
+
get hideToggle(): boolean;
|
|
1879
|
+
set hideToggle(value: boolean);
|
|
1880
|
+
private _hideToggle;
|
|
1881
|
+
/** Toggle position relative to header content (local or inherited). */
|
|
1882
|
+
get togglePosition(): AccordionTogglePosition;
|
|
1883
|
+
set togglePosition(value: AccordionTogglePosition);
|
|
1884
|
+
private _togglePosition;
|
|
1885
|
+
/** Fires after the expand transition completes. */
|
|
1886
|
+
readonly afterExpand: EventEmitter<void>;
|
|
1887
|
+
/** Fires after the collapse transition completes. */
|
|
1888
|
+
readonly afterCollapse: EventEmitter<void>;
|
|
1889
|
+
/** Emits whenever any @Input changes (for consumers to react). */
|
|
1890
|
+
readonly _inputChanges: Subject<SimpleChanges>;
|
|
1891
|
+
/** Optional parent accordion context (if inside an accordion). */
|
|
1892
|
+
accordion: AccordionBase;
|
|
1893
|
+
/** Lazily-projected body content (<ng-template mdExpansionPanelContent>). */
|
|
1894
|
+
_lazyContent: MDExpansionPanelContent;
|
|
1895
|
+
/** Body host element (focus containment & transition target). */
|
|
1896
|
+
_body: ElementRef<HTMLElement>;
|
|
1897
|
+
/** Wrapper element that handles the grid/height transition. */
|
|
1898
|
+
protected _bodyWrapper: ElementRef<HTMLElement> | undefined;
|
|
1899
|
+
/** Portal wrapping the lazy content; created on first open. */
|
|
1900
|
+
_portal: TemplatePortal;
|
|
1901
|
+
/** Header id for aria-controls/label association. */
|
|
1902
|
+
_headerId: string;
|
|
1903
|
+
constructor();
|
|
1904
|
+
/** Host CSS helper: spacing only in default display mode when expanded. */
|
|
1905
|
+
_hasSpacing(): boolean;
|
|
1906
|
+
/** Map boolean expanded flag to the public state union. */
|
|
1907
|
+
_getExpandedState(): ExpansionPanelState;
|
|
1908
|
+
/** Programmatic toggle (overrides base to flip expanded flag). */
|
|
1909
|
+
toggle(): void;
|
|
1910
|
+
/** Programmatic close. */
|
|
1911
|
+
close(): void;
|
|
1912
|
+
/** Programmatic open. */
|
|
1913
|
+
open(): void;
|
|
1914
|
+
/** Set up lazy content portal and animation listeners once content is ready. */
|
|
1915
|
+
ngAfterContentInit(): void;
|
|
1916
|
+
/** Forward raw input changes to a Subject for external observers. */
|
|
1917
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1918
|
+
/** Cleanup listeners and subjects. */
|
|
1919
|
+
ngOnDestroy(): void;
|
|
1920
|
+
/** Whether the current document focus is inside the panel body. */
|
|
1921
|
+
_containsFocus(): boolean;
|
|
1922
|
+
/**
|
|
1923
|
+
* Transitionend handler:
|
|
1924
|
+
* - Ensures we react only to the body wrapper's grid-height transition.
|
|
1925
|
+
* - Emits the appropriate afterExpand/afterCollapse event inside Angular.
|
|
1926
|
+
*/
|
|
1927
|
+
private _transitionEndListener;
|
|
1928
|
+
/**
|
|
1929
|
+
* Registers animation listeners:
|
|
1930
|
+
* - In no-animation mode, emit completion events immediately on state streams.
|
|
1931
|
+
* - Otherwise, add a `transitionend` listener and a CSS class to enable transitions,
|
|
1932
|
+
* after a short timeout so the initial render settles.
|
|
1933
|
+
*/
|
|
1934
|
+
protected _setupAnimationEvents(): void;
|
|
1935
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDExpansionPanel, never>;
|
|
1936
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDExpansionPanel, "md-expansion-panel", ["expansionPanel"], { "hideToggle": { "alias": "hideToggle"; "required": false; }; "togglePosition": { "alias": "togglePosition"; "required": false; }; }, { "afterExpand": "afterExpand"; "afterCollapse": "afterCollapse"; }, ["_lazyContent"], ["md-expansion-panel-header", "*", "action-row"], true, never>;
|
|
1937
|
+
static ngAcceptInputType_hideToggle: unknown;
|
|
1938
|
+
}
|
|
1939
|
+
/**
|
|
1940
|
+
* Simple action-row wrapper for projected buttons/links inside the panel body.
|
|
1941
|
+
* Provides a stable class hook for styling.
|
|
1942
|
+
*/
|
|
1943
|
+
declare class ExpansionPanelActionRow {
|
|
1944
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionPanelActionRow, never>;
|
|
1945
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ExpansionPanelActionRow, "action-row", never, {}, {}, never, never, true, never>;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* Header component for an expansion panel.
|
|
1950
|
+
* - Acts as the interactive control (button role) that toggles the panel.
|
|
1951
|
+
* - Manages aria attributes and keyboard interaction.
|
|
1952
|
+
* - Syncs with parent accordion/panel inputs and emits change detection marks.
|
|
1953
|
+
*/
|
|
1954
|
+
declare class MDExpansionPanelHeader implements AfterViewInit, OnDestroy, FocusableOption {
|
|
1955
|
+
/** Owning panel (injected from host). */
|
|
1956
|
+
panel: MDExpansionPanel;
|
|
1957
|
+
/** Host element reference (focus & DOM ops). */
|
|
1958
|
+
private _element;
|
|
1959
|
+
/** FocusMonitor for origin-aware focus management. */
|
|
1960
|
+
private _focusMonitor;
|
|
1961
|
+
/** Marks for check on state changes (OnPush). */
|
|
1962
|
+
private _changeDetectorRef;
|
|
1963
|
+
/** Subscriptions to panel/accordion streams. */
|
|
1964
|
+
private _parentChangeSubscription;
|
|
1965
|
+
constructor();
|
|
1966
|
+
/** Custom height when the panel is expanded (CSS length). */
|
|
1967
|
+
expandedHeight: string;
|
|
1968
|
+
/** Custom height when the panel is collapsed (CSS length). */
|
|
1969
|
+
collapsedHeight: string;
|
|
1970
|
+
/**
|
|
1971
|
+
* Keyboard tab stop order for the header.
|
|
1972
|
+
* Normalized via numberAttribute; defaults to 0 if null/undefined.
|
|
1973
|
+
*/
|
|
1974
|
+
tabIndex: number;
|
|
1975
|
+
/** Whether the header is effectively disabled (delegates to panel). */
|
|
1976
|
+
get disabled(): boolean;
|
|
1977
|
+
/** Click/keyboard toggle handler. */
|
|
1978
|
+
_toggle(): void;
|
|
1979
|
+
/** Current expanded state as boolean. */
|
|
1980
|
+
_isExpanded(): boolean;
|
|
1981
|
+
/** Expanded state string used by templates/host bindings. */
|
|
1982
|
+
_getExpandedState(): string;
|
|
1983
|
+
/** ID of the associated panel body (for aria-controls). */
|
|
1984
|
+
_getPanelId(): string;
|
|
1985
|
+
/** Toggle indicator placement relative to header content. */
|
|
1986
|
+
_getTogglePosition(): AccordionTogglePosition;
|
|
1987
|
+
/** Whether to show the toggle indicator (inherits hideToggle/disabled). */
|
|
1988
|
+
_showToggle(): boolean;
|
|
1989
|
+
/** Compute header height based on state and provided inputs. */
|
|
1990
|
+
_getHeaderHeight(): string | null;
|
|
1991
|
+
/** Keydown handler: Space/Enter toggles; delegate others to accordion. */
|
|
1992
|
+
_keydown(event: KeyboardEvent): void;
|
|
1993
|
+
/** FocusableOption implementation with origin-aware focus. */
|
|
1994
|
+
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
1995
|
+
/** Start monitoring focus and notify accordion when header gains focus. */
|
|
1996
|
+
ngAfterViewInit(): void;
|
|
1997
|
+
/** Cleanup subscriptions and focus monitoring. */
|
|
1998
|
+
ngOnDestroy(): void;
|
|
1999
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDExpansionPanelHeader, never>;
|
|
2000
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDExpansionPanelHeader, "md-expansion-panel-header", never, { "expandedHeight": { "alias": "expandedHeight"; "required": false; }; "collapsedHeight": { "alias": "collapsedHeight"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, ["md-panel-title", "md-panel-description", "*"], true, never>;
|
|
2001
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
2002
|
+
}
|
|
2003
|
+
/** Projected description container inside the header (styling hook). */
|
|
2004
|
+
declare class ExpansionPanelDescription {
|
|
2005
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionPanelDescription, never>;
|
|
2006
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ExpansionPanelDescription, "panel-description", never, {}, {}, never, never, true, never>;
|
|
2007
|
+
}
|
|
2008
|
+
/** Projected title container inside the header (styling hook). */
|
|
2009
|
+
declare class ExpansionPanelTitle {
|
|
2010
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionPanelTitle, never>;
|
|
2011
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ExpansionPanelTitle, "panel-title", never, {}, {}, never, never, true, never>;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
/**
|
|
2015
|
+
* Accordion container that coordinates multiple expansion panels.
|
|
2016
|
+
* - Provides the ACCORDION token for children to read common settings.
|
|
2017
|
+
* - Manages roving focus across panel headers with FocusKeyManager.
|
|
2018
|
+
* - Filters projected headers so only this accordion’s own headers are managed.
|
|
2019
|
+
*/
|
|
2020
|
+
declare class Accordion extends CdkAccordion implements AccordionBase, AfterContentInit, OnDestroy {
|
|
2021
|
+
/** Keyboard manager for roving focus (Home/End/Arrow navigation). */
|
|
2022
|
+
private _keyManager;
|
|
2023
|
+
/**
|
|
2024
|
+
* Local QueryList containing only headers owned by this accordion.
|
|
2025
|
+
* We derive it from `_headers` because projected content could include
|
|
2026
|
+
* nested accordions or headers belonging to another parent.
|
|
2027
|
+
*/
|
|
2028
|
+
private _ownHeaders;
|
|
2029
|
+
/** All descendant headers from projected content (may include foreign ones). */
|
|
2030
|
+
_headers: QueryList<MDExpansionPanelHeader>;
|
|
2031
|
+
/** Hides the toggle arrow/indicator on all child panels. */
|
|
2032
|
+
hideToggle: boolean;
|
|
2033
|
+
/** Display mode that affects spacing/styling of panels. */
|
|
2034
|
+
displayMode: AccordionDisplayMode;
|
|
2035
|
+
/** Placement of the toggle indicator relative to header content. */
|
|
2036
|
+
togglePosition: AccordionTogglePosition;
|
|
2037
|
+
/** After content init, filter and wire focus management. */
|
|
2038
|
+
ngAfterContentInit(): void;
|
|
2039
|
+
/** Delegate keydown from a header to the key manager (arrow/home/end handling). */
|
|
2040
|
+
_handleHeaderKeydown(event: KeyboardEvent): void;
|
|
2041
|
+
/** Update the active item when a particular header gains focus. */
|
|
2042
|
+
_handleHeaderFocus(header: MDExpansionPanelHeader): void;
|
|
2043
|
+
/** Tear down key manager and QueryList on destroy; call base cleanup too. */
|
|
2044
|
+
ngOnDestroy(): void;
|
|
2045
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Accordion, never>;
|
|
2046
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Accordion, "md-accordion", ["mdAccordion"], { "hideToggle": { "alias": "hideToggle"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; "togglePosition": { "alias": "togglePosition"; "required": false; }; }, {}, ["_headers"], never, true, never>;
|
|
2047
|
+
static ngAcceptInputType_hideToggle: unknown;
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
declare const components: (typeof ExpansionPanelDescription)[];
|
|
2051
|
+
declare class MDCollapseModule {
|
|
2052
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCollapseModule, never>;
|
|
2053
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MDCollapseModule, never, [typeof i2.CommonModule, typeof Accordion, typeof MDExpansionPanel, typeof ExpansionPanelActionRow, typeof MDExpansionPanelHeader, typeof ExpansionPanelTitle, typeof ExpansionPanelDescription, typeof MDExpansionPanelContent], [typeof Accordion, typeof MDExpansionPanel, typeof ExpansionPanelActionRow, typeof MDExpansionPanelHeader, typeof ExpansionPanelTitle, typeof ExpansionPanelDescription, typeof MDExpansionPanelContent]>;
|
|
2054
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MDCollapseModule>;
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
/**
|
|
2058
|
+
* Public API type that controls the overall visual style of the card.
|
|
2059
|
+
* - `'outlined'` — draws an outline around the card.
|
|
2060
|
+
* - `'raised'` — default look with elevation (shadow).
|
|
2061
|
+
* - `'filled'` — filled background emphasis.
|
|
2062
|
+
*/
|
|
2063
|
+
type CardAppearance = 'outlined' | 'raised' | 'filled';
|
|
2064
|
+
/**
|
|
2065
|
+
* Optional DI-provided configuration for MDCard defaults.
|
|
2066
|
+
* Allows setting application-wide defaults without touching each instance.
|
|
2067
|
+
*/
|
|
2068
|
+
interface CardConfig {
|
|
2069
|
+
/** Default appearance applied to all cards unless overridden per instance. */
|
|
2070
|
+
appearance?: CardAppearance;
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Injection token for providing a global {@link CardConfig}.
|
|
2074
|
+
*
|
|
2075
|
+
* @example App-wide default
|
|
2076
|
+
* ```ts
|
|
2077
|
+
* providers: [{ provide: CARD_CONFIG, useValue: { appearance: 'filled' } as CardConfig }]
|
|
2078
|
+
* ```
|
|
2079
|
+
*/
|
|
2080
|
+
declare const CARD_CONFIG: InjectionToken<CardConfig>;
|
|
2081
|
+
/**
|
|
2082
|
+
* Root Card component.
|
|
2083
|
+
*
|
|
2084
|
+
* @remarks
|
|
2085
|
+
* - Renders a Material Design–like card container.
|
|
2086
|
+
* - Applies host CSS classes based on the {@link appearance} input.
|
|
2087
|
+
* - Reads optional defaults from DI via {@link CARD_CONFIG}.
|
|
2088
|
+
*
|
|
2089
|
+
* Template & styles:
|
|
2090
|
+
* - `templateUrl: 'card.html'` — defines the card structure/slots.
|
|
2091
|
+
* - `styleUrl: 'card.scss'` — variants and section styling.
|
|
2092
|
+
*
|
|
2093
|
+
* Performance:
|
|
2094
|
+
* - `ChangeDetectionStrategy.OnPush` to minimize change detection work.
|
|
2095
|
+
*
|
|
2096
|
+
* Export:
|
|
2097
|
+
* - `exportAs: 'mdCard'` — allows `#card="mdCard"` in templates.
|
|
2098
|
+
*/
|
|
2099
|
+
declare class MDCard {
|
|
2100
|
+
/**
|
|
2101
|
+
* Controls the visual style of the card.
|
|
2102
|
+
*
|
|
2103
|
+
* @default 'raised' (or {@link CARD_CONFIG}.appearance if provided)
|
|
2104
|
+
*/
|
|
2105
|
+
appearance: CardAppearance;
|
|
2106
|
+
constructor();
|
|
2107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCard, never>;
|
|
2108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDCard, "md-card", ["mdCard"], { "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2109
|
+
}
|
|
2110
|
+
/**
|
|
2111
|
+
* Title directive.
|
|
2112
|
+
*
|
|
2113
|
+
* @example
|
|
2114
|
+
* ```html
|
|
2115
|
+
* <md-card-title>Title</md-card-title>
|
|
2116
|
+
* <div md-card-title>Title</div>
|
|
2117
|
+
* <div [mdCardTitle]>Title</div>
|
|
2118
|
+
* ```
|
|
2119
|
+
*
|
|
2120
|
+
* Adds a semantic class for styling the title area.
|
|
2121
|
+
*/
|
|
2122
|
+
declare class MDCardTitle {
|
|
2123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardTitle, never>;
|
|
2124
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDCardTitle, "md-card-title, [md-card-title], [mdCardTitle]", never, {}, {}, never, never, true, never>;
|
|
2125
|
+
}
|
|
2126
|
+
/**
|
|
2127
|
+
* Title group component.
|
|
2128
|
+
* Encapsulates grouped title-related content (e.g., title + subtitle + avatar).
|
|
2129
|
+
* Template is defined in `card-title-group.html`.
|
|
2130
|
+
*/
|
|
2131
|
+
declare class MDCardTitleGroup {
|
|
2132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardTitleGroup, never>;
|
|
2133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDCardTitleGroup, "md-card-title-group", never, {}, {}, never, ["card-title, card-subtitle,\n [card-title], [card-subtitle],\n [cardTitle], [cardSubtitle]", "[card-image], [cardImage],\n [card-sm-image], [cardImageSmall],\n [card-md-image], [cardImageMedium],\n [card-lg-image], [cardImageLarge],\n [card-xl-image], [cardImageXLarge]", "*"], true, never>;
|
|
2134
|
+
}
|
|
2135
|
+
/**
|
|
2136
|
+
* Content directive for the main textual/body area of the card.
|
|
2137
|
+
*
|
|
2138
|
+
* @example
|
|
2139
|
+
* ```html
|
|
2140
|
+
* <md-card-content>...</md-card-content>
|
|
2141
|
+
* ```
|
|
2142
|
+
*/
|
|
2143
|
+
declare class MDCardContent {
|
|
2144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardContent, never>;
|
|
2145
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDCardContent, "md-card-content", never, {}, {}, never, never, true, never>;
|
|
2146
|
+
}
|
|
2147
|
+
/**
|
|
2148
|
+
* Subtitle directive.
|
|
2149
|
+
*
|
|
2150
|
+
* @example
|
|
2151
|
+
* ```html
|
|
2152
|
+
* <md-card-subtitle>Subtitle</md-card-subtitle>
|
|
2153
|
+
* <div md-card-subtitle>Subtitle</div>
|
|
2154
|
+
* <div [mdCardSubtitle]>Subtitle</div>
|
|
2155
|
+
* ```
|
|
2156
|
+
*
|
|
2157
|
+
* Adds a semantic class for styling the subtitle text.
|
|
2158
|
+
*/
|
|
2159
|
+
declare class MDCardSubtitle {
|
|
2160
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardSubtitle, never>;
|
|
2161
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDCardSubtitle, "md-card-subtitle, [md-card-subtitle], [mdCardSubtitle]", never, {}, {}, never, never, true, never>;
|
|
2162
|
+
}
|
|
2163
|
+
/**
|
|
2164
|
+
* Actions directive.
|
|
2165
|
+
* Represents the action row (e.g., buttons) at the bottom or top of a card.
|
|
2166
|
+
*
|
|
2167
|
+
* Host classes:
|
|
2168
|
+
* - Base: `'mdc-card-actions mdc-card__actions'`
|
|
2169
|
+
* - If `align === 'end'`, also applies `'mdc-card-actions-align-end'`.
|
|
2170
|
+
*/
|
|
2171
|
+
declare class MDCardActions {
|
|
2172
|
+
/**
|
|
2173
|
+
* Controls horizontal alignment of actions.
|
|
2174
|
+
* - `'start'` — actions align to the start edge
|
|
2175
|
+
* - `'end'` — actions align to the end edge
|
|
2176
|
+
*
|
|
2177
|
+
* @default 'start'
|
|
2178
|
+
*
|
|
2179
|
+
* @example
|
|
2180
|
+
* ```html
|
|
2181
|
+
* <md-card-actions align="end">
|
|
2182
|
+
* <button md-button>Save</button>
|
|
2183
|
+
* </md-card-actions>
|
|
2184
|
+
* ```
|
|
2185
|
+
*/
|
|
2186
|
+
align: 'start' | 'end';
|
|
2187
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardActions, never>;
|
|
2188
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDCardActions, "md-card-actions", ["mdCardActions"], { "align": { "alias": "align"; "required": false; }; }, {}, never, never, true, never>;
|
|
2189
|
+
}
|
|
2190
|
+
/**
|
|
2191
|
+
* Header component.
|
|
2192
|
+
* A dedicated container for card header content (e.g., avatar, title/subtitle group).
|
|
2193
|
+
* Template is defined in `card-header.html`.
|
|
2194
|
+
*/
|
|
2195
|
+
declare class MDCardHeader {
|
|
2196
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardHeader, never>;
|
|
2197
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDCardHeader, "md-card-header", never, {}, {}, never, ["[card-avatar], [cardAvatar]", "card-title, card-subtitle,\n [card-title], [card-subtitle],\n [cardTitle], [cardSubtitle]", "*"], true, never>;
|
|
2198
|
+
}
|
|
2199
|
+
/**
|
|
2200
|
+
* Footer directive.
|
|
2201
|
+
* A semantic area for card footers—secondary info, meta, or supplementary actions.
|
|
2202
|
+
*/
|
|
2203
|
+
declare class MDCardFooter {
|
|
2204
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardFooter, never>;
|
|
2205
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDCardFooter, "md-card-footer", never, {}, {}, never, never, true, never>;
|
|
2206
|
+
}
|
|
2207
|
+
/**
|
|
2208
|
+
* Image directive (default size).
|
|
2209
|
+
* Applies media-related classes to display a cover/media area inside the card.
|
|
2210
|
+
*
|
|
2211
|
+
* @example
|
|
2212
|
+
* ```html
|
|
2213
|
+
* <div md-card-image style="background-image:url(...)"></div>
|
|
2214
|
+
* <div [mdCardImage]></div>
|
|
2215
|
+
* ```
|
|
2216
|
+
*
|
|
2217
|
+
* Note: Actual sizing (height/ratio) should be defined in `card.scss`.
|
|
2218
|
+
*/
|
|
2219
|
+
declare class MDCardImage {
|
|
2220
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardImage, never>;
|
|
2221
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDCardImage, "[md-card-image], [mdCardImage]", never, {}, {}, never, never, true, never>;
|
|
2222
|
+
}
|
|
2223
|
+
/**
|
|
2224
|
+
* Small image directive.
|
|
2225
|
+
* Adds the same base media classes; size differences should be implemented in CSS.
|
|
2226
|
+
*/
|
|
2227
|
+
declare class MDCardSmImage {
|
|
2228
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardSmImage, never>;
|
|
2229
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDCardSmImage, "[md-card-sm-image], [mdCardImageSmall]", never, {}, {}, never, never, true, never>;
|
|
2230
|
+
}
|
|
2231
|
+
/**
|
|
2232
|
+
* Medium image directive.
|
|
2233
|
+
* Adds the same base media classes; size differences should be implemented in CSS.
|
|
2234
|
+
*/
|
|
2235
|
+
declare class MDCardMdImage {
|
|
2236
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardMdImage, never>;
|
|
2237
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDCardMdImage, "[md-card-md-image], [mdCardImageMedium]", never, {}, {}, never, never, true, never>;
|
|
2238
|
+
}
|
|
2239
|
+
/**
|
|
2240
|
+
* Large image directive.
|
|
2241
|
+
* Adds the same base media classes; size differences should be implemented in CSS.
|
|
2242
|
+
*/
|
|
2243
|
+
declare class MDCardLgImage {
|
|
2244
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardLgImage, never>;
|
|
2245
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDCardLgImage, "[md-card-lg-image], [mdCardImageLarge]", never, {}, {}, never, never, true, never>;
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
* Extra-large image directive.
|
|
2249
|
+
* Adds the same base media classes; size differences should be implemented in CSS.
|
|
2250
|
+
*/
|
|
2251
|
+
declare class MDCardXlImage {
|
|
2252
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardXlImage, never>;
|
|
2253
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDCardXlImage, "[md-card-xl-image], [mdCardImageXLarge]", never, {}, {}, never, never, true, never>;
|
|
2254
|
+
}
|
|
2255
|
+
/**
|
|
2256
|
+
* Avatar directive.
|
|
2257
|
+
* Intended for small, typically circular images near the title/header area.
|
|
2258
|
+
* The concrete size/shape should be controlled via CSS (e.g., width/height/border-radius).
|
|
2259
|
+
*/
|
|
2260
|
+
declare class MDCardAvatar {
|
|
2261
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardAvatar, never>;
|
|
2262
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDCardAvatar, "[md-card-avatar], [mdCardAvatar]", never, {}, {}, never, never, true, never>;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
declare class MDCardModule {
|
|
2266
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDCardModule, never>;
|
|
2267
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MDCardModule, never, [typeof MDCard, typeof MDCardActions, typeof MDCardAvatar, typeof MDCardContent, typeof MDCardFooter, typeof MDCardHeader, typeof MDCardImage, typeof MDCardLgImage, typeof MDCardMdImage, typeof MDCardSmImage, typeof MDCardSubtitle, typeof MDCardTitle, typeof MDCardTitleGroup, typeof MDCardXlImage], [typeof MDCard, typeof MDCardActions, typeof MDCardAvatar, typeof MDCardContent, typeof MDCardFooter, typeof MDCardHeader, typeof MDCardImage, typeof MDCardLgImage, typeof MDCardMdImage, typeof MDCardSmImage, typeof MDCardSubtitle, typeof MDCardTitle, typeof MDCardTitleGroup, typeof MDCardXlImage]>;
|
|
2268
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MDCardModule>;
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
2272
|
+
type DialogRole = 'dialog' | 'alertdialog';
|
|
2273
|
+
interface DialogPosition {
|
|
2274
|
+
top?: string;
|
|
2275
|
+
bottom?: string;
|
|
2276
|
+
left?: string;
|
|
2277
|
+
right?: string;
|
|
2278
|
+
}
|
|
2279
|
+
declare class MefDevDialogConfig<D = any> {
|
|
2280
|
+
viewContainerRef?: ViewContainerRef;
|
|
2281
|
+
injector?: Injector;
|
|
2282
|
+
id?: string;
|
|
2283
|
+
role?: DialogRole;
|
|
2284
|
+
panelClass?: string | string[];
|
|
2285
|
+
hasBackdrop?: boolean;
|
|
2286
|
+
backdropClass?: string | string[];
|
|
2287
|
+
disableClose?: boolean;
|
|
2288
|
+
closePredicate?: <Result = unknown, Component = unknown, Config extends DialogConfig = MefDevDialogConfig>(result: Result | undefined, config: Config, componentInstance: Component | null) => boolean;
|
|
2289
|
+
width?: string;
|
|
2290
|
+
height?: string;
|
|
2291
|
+
minWidth?: number | string;
|
|
2292
|
+
minHeight?: number | string;
|
|
2293
|
+
maxWidth?: number | string;
|
|
2294
|
+
maxHeight?: number | string;
|
|
2295
|
+
position?: DialogPosition;
|
|
2296
|
+
data?: D | null;
|
|
2297
|
+
direction?: Direction;
|
|
2298
|
+
ariaDescribedBy?: string | null;
|
|
2299
|
+
ariaLabelledBy?: string | null;
|
|
2300
|
+
ariaLabel?: string | null;
|
|
2301
|
+
ariaModal?: boolean;
|
|
2302
|
+
autoFocus?: AutoFocusTarget | string | boolean;
|
|
2303
|
+
restoreFocus?: boolean;
|
|
2304
|
+
delayFocusTrap?: boolean;
|
|
2305
|
+
scrollStrategy?: ScrollStrategy;
|
|
2306
|
+
closeOnNavigation?: boolean;
|
|
2307
|
+
enterAnimationDuration?: string | number;
|
|
2308
|
+
exitAnimationDuration?: string | number;
|
|
2309
|
+
animationPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
/** Legacy-style animation event payload used by the dialog service/ref. */
|
|
2313
|
+
interface LegacyDialogAnimationEvent {
|
|
2314
|
+
state: 'opened' | 'opening' | 'closing' | 'closed';
|
|
2315
|
+
totalTime: number;
|
|
2316
|
+
}
|
|
2317
|
+
declare class MDDialogContainer extends CdkDialogContainer<MefDevDialogConfig> implements OnDestroy {
|
|
2318
|
+
/** Emits animation lifecycle states understood by the dialog ref. */
|
|
2319
|
+
_animationStateChanged: EventEmitter<LegacyDialogAnimationEvent>;
|
|
2320
|
+
/** Master flag to enable/disable animations for this container instance. */
|
|
2321
|
+
_animationsEnabled: boolean;
|
|
2322
|
+
/** Count of projected action sections (affects layout class). */
|
|
2323
|
+
protected _actionSectionCount: number;
|
|
2324
|
+
/** Cached host element for class and style mutations. */
|
|
2325
|
+
private _hostElement;
|
|
2326
|
+
/** Effective enter animation duration derived from config (or defaults). */
|
|
2327
|
+
private _enterAnimationDuration;
|
|
2328
|
+
/** Effective exit animation duration derived from config (or defaults). */
|
|
2329
|
+
private _exitAnimationDuration;
|
|
2330
|
+
/** Timer id for open/close fallback completion. */
|
|
2331
|
+
private _animationTimer;
|
|
2332
|
+
/** After content is attached, kick off the open animation. */
|
|
2333
|
+
protected _contentAttached(): void;
|
|
2334
|
+
/** Optional position modifier class for origin-based animations. */
|
|
2335
|
+
private ANIMATION_POSITION_CLASS;
|
|
2336
|
+
/** Starts the open animation sequence and emits "opening". */
|
|
2337
|
+
private _startOpenAnimation;
|
|
2338
|
+
/** Public entrypoint called by the ref to start the close sequence. */
|
|
2339
|
+
_startExitAnimation(): void;
|
|
2340
|
+
/** Tracks action sections; used to toggle a host layout class. */
|
|
2341
|
+
_updateActionSectionCount(delta: number): void;
|
|
2342
|
+
/** Finishes open sequence: clear classes and emit "opened". */
|
|
2343
|
+
private _finishDialogOpen;
|
|
2344
|
+
/** Finishes close sequence: clear classes and emit "closed". */
|
|
2345
|
+
private _finishDialogClose;
|
|
2346
|
+
/** Removes transient animation classes (and optional position class). */
|
|
2347
|
+
private _clearAnimationClasses;
|
|
2348
|
+
/**
|
|
2349
|
+
* Sets/refreshes a timeout to complete the animation sequence. This acts as a
|
|
2350
|
+
* fallback when relying on CSS transitions without guaranteed end events.
|
|
2351
|
+
*/
|
|
2352
|
+
private _waitForAnimationToComplete;
|
|
2353
|
+
/**
|
|
2354
|
+
* Schedules a callback on the next animation frame, outside Angular,
|
|
2355
|
+
* to ensure CSS transitions are applied predictably.
|
|
2356
|
+
*/
|
|
2357
|
+
private _requestAnimationFrame;
|
|
2358
|
+
/** Focus handling after content attachment depending on `delayFocusTrap` config. */
|
|
2359
|
+
protected _captureInitialFocus(): void;
|
|
2360
|
+
/** Called when open animation completes to emit "opened" and (optionally) trap focus. */
|
|
2361
|
+
protected _openAnimationDone(totalTime: number): void;
|
|
2362
|
+
/** Cleanup any pending timers on destroy. */
|
|
2363
|
+
ngOnDestroy(): void;
|
|
2364
|
+
/**
|
|
2365
|
+
* Decorates the root component host element with a class so that card/panel
|
|
2366
|
+
* styles can target it specifically when used inside a dialog.
|
|
2367
|
+
*/
|
|
2368
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
2369
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDDialogContainer, never>;
|
|
2370
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDDialogContainer, "md-dialog-container", never, {}, {}, never, never, true, never>;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
/**
|
|
2374
|
+
* Internal finite state for a dialog's lifecycle.
|
|
2375
|
+
* - OPEN: visible and interactive
|
|
2376
|
+
* - CLOSING: exit animation playing or teardown in progress
|
|
2377
|
+
* - CLOSED: fully closed and resources released
|
|
2378
|
+
*/
|
|
2379
|
+
declare enum DialogState {
|
|
2380
|
+
OPEN = 0,
|
|
2381
|
+
CLOSING = 1,
|
|
2382
|
+
CLOSED = 2
|
|
2383
|
+
}
|
|
2384
|
+
/**
|
|
2385
|
+
* Strongly-typed wrapper around CDK's DialogRef with MEF/MD container integration.
|
|
2386
|
+
*
|
|
2387
|
+
* Responsibilities:
|
|
2388
|
+
* - Expose open/close lifecycle streams (afterOpened, beforeClosed, afterClosed).
|
|
2389
|
+
* - Respect `disableClose`, ESC and backdrop click behavior.
|
|
2390
|
+
* - Start/await container animations and provide a fallback close timeout.
|
|
2391
|
+
* - Bridge size/position/panel class updates to the underlying CDK dialog.
|
|
2392
|
+
* - Track the interaction type (mouse/keyboard) that triggered close for focus restoration.
|
|
2393
|
+
*/
|
|
2394
|
+
declare class MefDevDialogRef<T, R = any> {
|
|
2395
|
+
/** Underlying CDK dialog ref. */
|
|
2396
|
+
private _ref;
|
|
2397
|
+
/** Immutable configuration used to open this dialog. */
|
|
2398
|
+
private _config;
|
|
2399
|
+
/** Reference to the container component that hosts animations and structure. */
|
|
2400
|
+
_containerInstance: MDDialogContainer;
|
|
2401
|
+
/** Instance of the component hosted inside the dialog (if opened via component). */
|
|
2402
|
+
componentInstance: T;
|
|
2403
|
+
/** Low-level componentRef for advanced users (null for TemplateRef opens). */
|
|
2404
|
+
readonly componentRef: ComponentRef<T> | null;
|
|
2405
|
+
/** When true, ESC and backdrop click won't close the dialog. */
|
|
2406
|
+
disableClose: boolean | undefined;
|
|
2407
|
+
/** Dialog id (auto-generated unless provided in config). */
|
|
2408
|
+
id: string;
|
|
2409
|
+
/** Emits once when the dialog has finished its enter animation. */
|
|
2410
|
+
private readonly _afterOpened;
|
|
2411
|
+
/** Emits right before the dialog starts closing (with the result). */
|
|
2412
|
+
private readonly _beforeClosed;
|
|
2413
|
+
/** Cached result passed to `close(result)`; emitted via afterClosed. */
|
|
2414
|
+
private _result;
|
|
2415
|
+
/** Fallback timer that triggers `_finishDialogClose` if animation events don't arrive. */
|
|
2416
|
+
private _closeFallbackTimeout;
|
|
2417
|
+
/** Current lifecycle state of the dialog. */
|
|
2418
|
+
private _state;
|
|
2419
|
+
/** Input modality that caused the close (used for focus origin on restore). */
|
|
2420
|
+
private _closeInteractionType;
|
|
2421
|
+
constructor(
|
|
2422
|
+
/** Underlying CDK dialog ref. */
|
|
2423
|
+
_ref: DialogRef<R, T>,
|
|
2424
|
+
/** Immutable configuration used to open this dialog. */
|
|
2425
|
+
_config: MefDevDialogConfig,
|
|
2426
|
+
/** Reference to the container component that hosts animations and structure. */
|
|
2427
|
+
_containerInstance: MDDialogContainer);
|
|
2428
|
+
/**
|
|
2429
|
+
* Programmatically close the dialog with an optional result.
|
|
2430
|
+
* Respects an optional `closePredicate` to veto the close.
|
|
2431
|
+
*/
|
|
2432
|
+
close(dialogResult?: R): void;
|
|
2433
|
+
/** Stream that emits once the dialog is fully opened (after enter animation). */
|
|
2434
|
+
afterOpened(): Observable<void>;
|
|
2435
|
+
/** Stream that emits the result after the dialog is fully closed and disposed. */
|
|
2436
|
+
afterClosed(): Observable<R | undefined>;
|
|
2437
|
+
/** Stream that emits right before the dialog starts closing with the result (if any). */
|
|
2438
|
+
beforeClosed(): Observable<R | undefined>;
|
|
2439
|
+
/** Backdrop click stream (useful for custom close logic / analytics). */
|
|
2440
|
+
backdropClick(): Observable<MouseEvent>;
|
|
2441
|
+
/** Keydown stream scoped to the dialog overlay (e.g., listen for ESC). */
|
|
2442
|
+
keydownEvents(): Observable<KeyboardEvent>;
|
|
2443
|
+
/**
|
|
2444
|
+
* Updates the dialog position. If top/bottom or left/right are not provided,
|
|
2445
|
+
* the dialog will be centered on that axis.
|
|
2446
|
+
*/
|
|
2447
|
+
updatePosition(position?: DialogPosition): this;
|
|
2448
|
+
/** Updates dialog width/height (CSS length values, e.g. '600px', '80vh'). */
|
|
2449
|
+
updateSize(width?: string, height?: string): this;
|
|
2450
|
+
/** Adds one or more CSS classes to the overlay panel. */
|
|
2451
|
+
addPanelClass(classes: string | string[]): this;
|
|
2452
|
+
/** Removes one or more CSS classes from the overlay panel. */
|
|
2453
|
+
removePanelClass(classes: string | string[]): this;
|
|
2454
|
+
/** Returns the current lifecycle state of the dialog. */
|
|
2455
|
+
getState(): DialogState;
|
|
2456
|
+
/**
|
|
2457
|
+
* Finalizes the closing sequence:
|
|
2458
|
+
* - Sets state to CLOSED
|
|
2459
|
+
* - Closes underlying CDK ref (emits afterClosed with the result)
|
|
2460
|
+
* - Clears strong reference to the component instance
|
|
2461
|
+
*/
|
|
2462
|
+
private _finishDialogClose;
|
|
2463
|
+
}
|
|
2464
|
+
/**
|
|
2465
|
+
* Helper to close a dialog and tag the close with the interaction origin.
|
|
2466
|
+
* Used by default ESC/backdrop handlers to restore focus appropriately.
|
|
2467
|
+
*/
|
|
2468
|
+
declare function _closeDialogVia<R>(ref: MefDevDialogRef<R>, interactionType: FocusOrigin, result?: R): void;
|
|
2469
|
+
|
|
2470
|
+
/** Injection token used to pass arbitrary data into a dialog instance. */
|
|
2471
|
+
declare const DIALOG_DATA: InjectionToken<any>;
|
|
2472
|
+
/** Token for providing global/default dialog configuration. */
|
|
2473
|
+
declare const DIALOG_DEFAULT_OPTIONS: InjectionToken<MefDevDialogConfig<any>>;
|
|
2474
|
+
/**
|
|
2475
|
+
* Token that provides a factory for the scroll strategy used by dialogs.
|
|
2476
|
+
* Defaults to `createBlockScrollStrategy` which prevents body scrolling while a dialog is open.
|
|
2477
|
+
*/
|
|
2478
|
+
declare const DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
2479
|
+
/**
|
|
2480
|
+
* High-level dialog service wrapping CDK Dialog with MDC/MEF-specific defaults.
|
|
2481
|
+
*
|
|
2482
|
+
* Features:
|
|
2483
|
+
* - Merges provided config with app-level defaults.
|
|
2484
|
+
* - Creates a global centered position strategy by default.
|
|
2485
|
+
* - Emits streams for "after opened" and "after all closed".
|
|
2486
|
+
* - Keeps a stack of open dialogs and coordinates teardown.
|
|
2487
|
+
* - Bridges to a custom `MDDialogContainer` and `MefDevDialogRef`.
|
|
2488
|
+
*/
|
|
2489
|
+
declare class MDDialog implements OnDestroy {
|
|
2490
|
+
/** Optional application-wide defaults injected via `DIALOG_DEFAULT_OPTIONS`. */
|
|
2491
|
+
private _defaultOptions;
|
|
2492
|
+
/** Factory for the body scroll strategy while a dialog is open. */
|
|
2493
|
+
private _scrollStrategy;
|
|
2494
|
+
/** Optional parent dialog service (supports hierarchical injectors / lazy modules). */
|
|
2495
|
+
private _parentDialog;
|
|
2496
|
+
/** Id generator for dialog instances. */
|
|
2497
|
+
private _idGenerator;
|
|
2498
|
+
/** Root injector needed for CDK helpers (position strategy, etc.). */
|
|
2499
|
+
private _injector;
|
|
2500
|
+
/** Underlying CDK Dialog service. */
|
|
2501
|
+
protected _dialog: Dialog;
|
|
2502
|
+
/** Global flag to disable dialog enter/exit animations. */
|
|
2503
|
+
private _animationsDisabled;
|
|
2504
|
+
/** Stack of open dialogs at the current injector level. */
|
|
2505
|
+
private readonly _openDialogsAtThisLevel;
|
|
2506
|
+
/** Completes after the last dialog at this level has been closed. */
|
|
2507
|
+
private readonly _afterAllClosedAtThisLevel;
|
|
2508
|
+
/** Emits each time a dialog is opened at this level. */
|
|
2509
|
+
private readonly _afterOpenedAtThisLevel;
|
|
2510
|
+
/** Class reference used for providing config to the container. */
|
|
2511
|
+
protected dialogConfigClass: typeof MefDevDialogConfig;
|
|
2512
|
+
/** Concrete types used to construct dialog refs/containers and provide DIALOG_DATA. */
|
|
2513
|
+
private readonly _dialogRefConstructor;
|
|
2514
|
+
private readonly _dialogContainerType;
|
|
2515
|
+
private readonly _dialogDataToken;
|
|
2516
|
+
/** Public list of open dialogs (delegates to parent if present). */
|
|
2517
|
+
get openDialogs(): MefDevDialogRef<any>[];
|
|
2518
|
+
/** Stream that emits after each dialog is opened (delegates to parent if present). */
|
|
2519
|
+
get afterOpened(): Subject<MefDevDialogRef<any>>;
|
|
2520
|
+
/** Internal accessor for the "after all closed" subject (handles parent delegation). */
|
|
2521
|
+
private _getAfterAllClosed;
|
|
2522
|
+
/**
|
|
2523
|
+
* Emits when all dialogs (in this hierarchy) are closed.
|
|
2524
|
+
* If there are no open dialogs at subscription time, it emits once immediately.
|
|
2525
|
+
*/
|
|
2526
|
+
readonly afterAllClosed: Observable<void>;
|
|
2527
|
+
constructor();
|
|
2528
|
+
/** Overload signatures for component vs template dialogs. */
|
|
2529
|
+
open<T, D = any, R = any>(component: ComponentType<T>, config?: MefDevDialogConfig<D>): MefDevDialogRef<T, R>;
|
|
2530
|
+
open<T, D = any, R = any>(template: TemplateRef<T>, config?: MefDevDialogConfig<D>): MefDevDialogRef<T, R>;
|
|
2531
|
+
open<T, D = any, R = any>(template: ComponentType<T> | TemplateRef<T>, config?: MefDevDialogConfig<D>): MefDevDialogRef<T, R>;
|
|
2532
|
+
/** Closes all currently open dialogs (in stack order). */
|
|
2533
|
+
closeAll(): void;
|
|
2534
|
+
/** Finds an open dialog by id (if any). */
|
|
2535
|
+
getDialogById(id: string): MefDevDialogRef<any> | undefined;
|
|
2536
|
+
/** On service destroy, close dialogs owned at this injector level and complete streams. */
|
|
2537
|
+
ngOnDestroy(): void;
|
|
2538
|
+
/** Helper that iterates and closes dialogs without changing array identity. */
|
|
2539
|
+
private _closeDialogs;
|
|
2540
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDDialog, never>;
|
|
2541
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MDDialog>;
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
/**
|
|
2545
|
+
* Button-like directive that closes the nearest dialog when clicked.
|
|
2546
|
+
*
|
|
2547
|
+
* Usage:
|
|
2548
|
+
* <button md-dialog-close>Close</button>
|
|
2549
|
+
* <button mdDialogClose="resultValue">Save</button>
|
|
2550
|
+
*
|
|
2551
|
+
* - It tries to inject the current MefDevDialogRef; if not available,
|
|
2552
|
+
* it finds the nearest dialog container in the DOM and resolves the ref from MDDialog.openDialogs.
|
|
2553
|
+
* - On click, it calls `_closeDialogVia` with an interaction origin ('mouse' or 'keyboard')
|
|
2554
|
+
* so the focus can be restored appropriately.
|
|
2555
|
+
*/
|
|
2556
|
+
declare class MDDialogClose implements OnInit, OnChanges {
|
|
2557
|
+
/** Injected dialog ref when available (undefined if used outside projected dialog content). */
|
|
2558
|
+
dialogRef: MefDevDialogRef<any, any>;
|
|
2559
|
+
/** Host element reference (used for DOM traversal when ref is not injected). */
|
|
2560
|
+
private _elementRef;
|
|
2561
|
+
/** Dialog service used to access `openDialogs` for fallback lookup. */
|
|
2562
|
+
private _dialog;
|
|
2563
|
+
/** Optional aria-label for the closing button. */
|
|
2564
|
+
ariaLabel: string;
|
|
2565
|
+
/** Native button type; defaults to "button" to avoid accidental form submit. */
|
|
2566
|
+
type: 'submit' | 'button' | 'reset';
|
|
2567
|
+
/** Preferred input for a close result (dash-cased attribute). */
|
|
2568
|
+
dialogResult: any;
|
|
2569
|
+
/** CamelCased alias of the same input (kept for API parity & template style). */
|
|
2570
|
+
dialogClose: any;
|
|
2571
|
+
constructor();
|
|
2572
|
+
/** Resolve dialogRef if it wasn't injected (e.g., directive used in a nested view). */
|
|
2573
|
+
ngOnInit(): void;
|
|
2574
|
+
/** Mirror `dialogClose` into `dialogResult` when either input changes. */
|
|
2575
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2576
|
+
/** Click handler: close the dialog and tag the interaction origin for focus restoration. */
|
|
2577
|
+
_onButtonClick(event: MouseEvent): void;
|
|
2578
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDDialogClose, never>;
|
|
2579
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDDialogClose, "[md-dialog-close], [mdDialogClose]", ["mdDialogClose"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "dialogResult": { "alias": "dialog-close"; "required": false; }; "dialogClose": { "alias": "dialogClose"; "required": false; }; }, {}, never, never, true, never>;
|
|
2580
|
+
}
|
|
2581
|
+
/**
|
|
2582
|
+
* Base class for directives that represent structural sections within a dialog
|
|
2583
|
+
* (e.g., title area, actions area). It:
|
|
2584
|
+
* - Resolves the dialog ref by injection or DOM traversal.
|
|
2585
|
+
* - Calls `_onAdd()` when attached to the DOM (after microtask) so the container
|
|
2586
|
+
* can update ARIA attributes or layout counts.
|
|
2587
|
+
* - Calls `_onRemove()` when destroyed so the container can revert those changes.
|
|
2588
|
+
*/
|
|
2589
|
+
declare abstract class DialogLayoutSection implements OnInit, OnDestroy {
|
|
2590
|
+
/** Reference to the owning dialog (if any). */
|
|
2591
|
+
protected _dialogRef: MefDevDialogRef<any, any>;
|
|
2592
|
+
/** Host element reference for DOM traversal fallback. */
|
|
2593
|
+
private _elementRef;
|
|
2594
|
+
/** Dialog service used for fallback dialog lookup. */
|
|
2595
|
+
private _dialog;
|
|
2596
|
+
constructor(...args: unknown[]);
|
|
2597
|
+
/** Hook for subclasses to add themselves to the container (e.g., ARIA wiring, layout counters). */
|
|
2598
|
+
protected abstract _onAdd(): void;
|
|
2599
|
+
/** Hook for subclasses to remove themselves from the container. */
|
|
2600
|
+
protected abstract _onRemove(): void;
|
|
2601
|
+
ngOnInit(): void;
|
|
2602
|
+
ngOnDestroy(): void;
|
|
2603
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogLayoutSection, never>;
|
|
2604
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DialogLayoutSection, never, never, {}, {}, never, never, true, never>;
|
|
2605
|
+
}
|
|
2606
|
+
/**
|
|
2607
|
+
* Dialog title directive.
|
|
2608
|
+
*
|
|
2609
|
+
* - Adds semantic/title classes to the host.
|
|
2610
|
+
* - Generates a unique id that is used to label the dialog via `aria-labelledby`.
|
|
2611
|
+
* - Notifies the container to add/remove this id from its aria-labelledby list.
|
|
2612
|
+
*/
|
|
2613
|
+
declare class MDDialogTitle extends DialogLayoutSection {
|
|
2614
|
+
/** Unique id used by the container for aria-labelledby. */
|
|
2615
|
+
id: string;
|
|
2616
|
+
/** Register this title id with the container for a11y. */
|
|
2617
|
+
protected _onAdd(): void;
|
|
2618
|
+
/** Unregister this title id on destroy. */
|
|
2619
|
+
protected _onRemove(): void;
|
|
2620
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDDialogTitle, never>;
|
|
2621
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDDialogTitle, "[md-dialog-title], [mdDialogTitle]", ["mdDialogTitle"], { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
2622
|
+
}
|
|
2623
|
+
/**
|
|
2624
|
+
* Scrollable content section of the dialog.
|
|
2625
|
+
* - Applies MDC content classes.
|
|
2626
|
+
* - Attaches `CdkScrollable` so consumers/tools can query/observe scroll.
|
|
2627
|
+
*/
|
|
2628
|
+
declare class MDDialogContent {
|
|
2629
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDDialogContent, never>;
|
|
2630
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDDialogContent, "[md-dialog-content], md-dialog-content, [mdDialogContent]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkScrollable; inputs: {}; outputs: {}; }]>;
|
|
2631
|
+
}
|
|
2632
|
+
/**
|
|
2633
|
+
* Action row of the dialog (typically hosts buttons).
|
|
2634
|
+
* - Applies alignment classes based on `align` input.
|
|
2635
|
+
* - Notifies the container about the presence of an actions section so it can
|
|
2636
|
+
* adjust layout (e.g., paddings, separators).
|
|
2637
|
+
*/
|
|
2638
|
+
declare class MDDialogActions extends DialogLayoutSection {
|
|
2639
|
+
/** Horizontal alignment for the action buttons. */
|
|
2640
|
+
align?: 'start' | 'center' | 'end';
|
|
2641
|
+
/** Tell the container an actions section was added. */
|
|
2642
|
+
protected _onAdd(): void;
|
|
2643
|
+
/** Tell the container an actions section was removed. */
|
|
2644
|
+
protected _onRemove(): void;
|
|
2645
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDDialogActions, never>;
|
|
2646
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDDialogActions, "[md-dialog-actions], md-dialog-actions, [mdDialogActions]", never, { "align": { "alias": "align"; "required": false; }; }, {}, never, never, true, never>;
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
declare class MDModalModule {
|
|
2650
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDModalModule, never>;
|
|
2651
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MDModalModule, never, [typeof i1$1.DialogModule, typeof i6.OverlayModule, typeof i3.PortalModule, typeof MDDialogContainer, typeof MDDialogClose, typeof MDDialogTitle, typeof MDDialogActions, typeof MDDialogContent], [typeof MDDialogContainer, typeof MDDialogClose, typeof MDDialogTitle, typeof MDDialogActions, typeof MDDialogContent]>;
|
|
2652
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MDModalModule>;
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2655
|
+
/**
|
|
2656
|
+
* Marks an embedded template as the label for a step.
|
|
2657
|
+
*
|
|
2658
|
+
* Usage:
|
|
2659
|
+
* <ng-template mdStepLabel>Custom label</ng-template>
|
|
2660
|
+
*
|
|
2661
|
+
* Extends Angular CDK's CdkStepLabel so the stepper can project
|
|
2662
|
+
* and render this template in the step header area.
|
|
2663
|
+
*/
|
|
2664
|
+
declare class MDStepLabel extends CdkStepLabel {
|
|
2665
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDStepLabel, never>;
|
|
2666
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDStepLabel, "[mdStepLabel]", never, {}, {}, never, never, true, never>;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
/**
|
|
2670
|
+
* Intl/i18n service for the stepper.
|
|
2671
|
+
* Holds user-facing strings and exposes a `changes` stream so components
|
|
2672
|
+
* can re-render when labels are updated at runtime.
|
|
2673
|
+
*/
|
|
2674
|
+
declare class StepperIntl {
|
|
2675
|
+
/** Emits whenever any of the labels change. Consumers should mark for check on emission. */
|
|
2676
|
+
readonly changes: Subject<void>;
|
|
2677
|
+
/** Label shown next to steps that are marked as optional. */
|
|
2678
|
+
optionalLabel: string;
|
|
2679
|
+
/** Label used to announce or describe completed steps. */
|
|
2680
|
+
completedLabel: string;
|
|
2681
|
+
/** Label indicating that a step is editable. */
|
|
2682
|
+
editableLabel: string;
|
|
2683
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepperIntl, never>;
|
|
2684
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StepperIntl>;
|
|
2685
|
+
}
|
|
2686
|
+
/**
|
|
2687
|
+
* Factory that returns the closest parent StepperIntl if available,
|
|
2688
|
+
* otherwise creates a new instance.
|
|
2689
|
+
*
|
|
2690
|
+
* This allows apps/libraries to provide a single shared StepperIntl
|
|
2691
|
+
* higher in the injector tree and have all steppers reuse it.
|
|
2692
|
+
*/
|
|
2693
|
+
declare function STEPPER_INTL_PROVIDER_FACTORY(parentIntl: StepperIntl): StepperIntl;
|
|
2694
|
+
/**
|
|
2695
|
+
* Provider that prefers an ancestor StepperIntl, falling back to a fresh one
|
|
2696
|
+
* created via the factory above when none is found.
|
|
2697
|
+
*
|
|
2698
|
+
* Usage in a module or component:
|
|
2699
|
+
* providers: [STEPPER_INTL_PROVIDER]
|
|
2700
|
+
*/
|
|
2701
|
+
declare const STEPPER_INTL_PROVIDER: {
|
|
2702
|
+
provide: typeof StepperIntl;
|
|
2703
|
+
deps: Optional[][];
|
|
2704
|
+
useFactory: typeof STEPPER_INTL_PROVIDER_FACTORY;
|
|
2705
|
+
};
|
|
2706
|
+
|
|
2707
|
+
/**
|
|
2708
|
+
* Context passed into a custom stepper icon template.
|
|
2709
|
+
* Consumers can use these values inside the template to
|
|
2710
|
+
* render state-aware icons (e.g., different glyphs/colors).
|
|
2711
|
+
*/
|
|
2712
|
+
interface StepperIconContext {
|
|
2713
|
+
/** 0-based index of the step. */
|
|
2714
|
+
index: number;
|
|
2715
|
+
/** True if this step is currently active/selected. */
|
|
2716
|
+
active: boolean;
|
|
2717
|
+
/** True if this step is marked as optional. */
|
|
2718
|
+
optional: boolean;
|
|
2719
|
+
}
|
|
2720
|
+
/**
|
|
2721
|
+
* Marks an <ng-template> as a custom icon for a particular step state.
|
|
2722
|
+
*
|
|
2723
|
+
* Usage:
|
|
2724
|
+
* <ng-template mdStepperIcon="done" let-ctx>
|
|
2725
|
+
* <!-- ctx: StepperIconContext -->
|
|
2726
|
+
* <my-done-icon [highlight]="ctx.active"></my-done-icon>
|
|
2727
|
+
* </ng-template>
|
|
2728
|
+
*
|
|
2729
|
+
* Bind the `stepperIcon` input to one of the StepState values
|
|
2730
|
+
* (e.g., 'number' | 'edit' | 'done' | 'error'), and the stepper
|
|
2731
|
+
* will project this template when the step is in that state.
|
|
2732
|
+
*/
|
|
2733
|
+
declare class MDStepperIcon {
|
|
2734
|
+
/** Reference to the provided template, instantiated by the stepper as needed. */
|
|
2735
|
+
templateRef: TemplateRef<StepperIconContext>;
|
|
2736
|
+
/** Step state that this icon template should represent. */
|
|
2737
|
+
name: StepState;
|
|
2738
|
+
constructor();
|
|
2739
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDStepperIcon, never>;
|
|
2740
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDStepperIcon, "ng-template[mdStepperIcon]", never, { "name": { "alias": "stepperIcon"; "required": false; }; }, {}, never, never, true, never>;
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
/**
|
|
2744
|
+
* Header (tab) for a step in the stepper.
|
|
2745
|
+
* Responsibilities:
|
|
2746
|
+
* - Renders label, state icon/text, and optional/error hints.
|
|
2747
|
+
* - Manages focus (including origin-aware focus for a11y styling).
|
|
2748
|
+
* - Reacts to i18n changes from StepperIntl and marks for check.
|
|
2749
|
+
*/
|
|
2750
|
+
declare class MDStepHeader extends CdkStepHeader implements AfterViewInit, OnDestroy {
|
|
2751
|
+
/** Stepper i18n service (emits when labels change). */
|
|
2752
|
+
_intl: StepperIntl;
|
|
2753
|
+
/** Focus monitor to track focus origin on the host element. */
|
|
2754
|
+
private _focusMonitor;
|
|
2755
|
+
/** Subscription to StepperIntl changes for OnPush CD. */
|
|
2756
|
+
private _intlSubscription;
|
|
2757
|
+
/** Visual/logical state of this step (e.g., 'number' | 'done' | 'error' | 'edit'). */
|
|
2758
|
+
state: StepState;
|
|
2759
|
+
/** Label can be a template (MDStepLabel) or plain string. */
|
|
2760
|
+
label: MDStepLabel | string;
|
|
2761
|
+
/** Error message displayed when state === 'error'. */
|
|
2762
|
+
errorMessage: string;
|
|
2763
|
+
/** Optional templates to override the default icons by state. */
|
|
2764
|
+
iconOverrides: {
|
|
2765
|
+
[key: string]: TemplateRef<StepperIconContext>;
|
|
2766
|
+
};
|
|
2767
|
+
/** 0-based index of the step within the stepper. */
|
|
2768
|
+
index: number;
|
|
2769
|
+
/** Whether this step is selected (active tab). */
|
|
2770
|
+
selected: boolean;
|
|
2771
|
+
/** Whether this step is currently active (focused/engaged). */
|
|
2772
|
+
active: boolean;
|
|
2773
|
+
/** Marks the step as optional (affects label rendering). */
|
|
2774
|
+
optional: boolean;
|
|
2775
|
+
/** Disables ripple effects on header interactions. */
|
|
2776
|
+
disableRipple: boolean;
|
|
2777
|
+
constructor();
|
|
2778
|
+
/** Begin monitoring focus on the header to apply origin-aware styles. */
|
|
2779
|
+
ngAfterViewInit(): void;
|
|
2780
|
+
/** Cleanup subscriptions and focus monitoring. */
|
|
2781
|
+
ngOnDestroy(): void;
|
|
2782
|
+
/**
|
|
2783
|
+
* Programmatic focus with optional origin (mouse/keyboard/touch/program).
|
|
2784
|
+
* Falls back to direct focus if no origin is provided.
|
|
2785
|
+
*/
|
|
2786
|
+
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
2787
|
+
/** Returns string label if provided directly, otherwise null. */
|
|
2788
|
+
_stringLabel(): string | null;
|
|
2789
|
+
/** Returns template label if provided, otherwise null. */
|
|
2790
|
+
_templateLabel(): MDStepLabel | null;
|
|
2791
|
+
/** Host element getter used by base classes/templates. */
|
|
2792
|
+
_getHostElement(): HTMLElement;
|
|
2793
|
+
/**
|
|
2794
|
+
* Default text for built-in states when an icon template isn’t provided.
|
|
2795
|
+
* - 'number' → (index + 1) as text
|
|
2796
|
+
* - 'edit' → 'create'
|
|
2797
|
+
* - 'error' → 'warning'
|
|
2798
|
+
* - otherwise returns the state string itself
|
|
2799
|
+
*/
|
|
2800
|
+
_getDefaultTextForState(state: StepState): string;
|
|
2801
|
+
/** True if no label, no optional/error labels — used for styling empty headers. */
|
|
2802
|
+
protected _hasEmptyLabel(): boolean;
|
|
2803
|
+
/** True if the step is optional and not in error state. */
|
|
2804
|
+
protected _hasOptionalLabel(): boolean;
|
|
2805
|
+
/** True if the current state is 'error'. */
|
|
2806
|
+
protected _hasErrorLabel(): boolean;
|
|
2807
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDStepHeader, never>;
|
|
2808
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDStepHeader, "md-step-header", never, { "state": { "alias": "state"; "required": false; }; "label": { "alias": "label"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "iconOverrides": { "alias": "iconOverrides"; "required": false; }; "index": { "alias": "index"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "active": { "alias": "active"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, {}, never, never, true, never>;
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
/**
|
|
2812
|
+
* Marks an <ng-template> as the content for a step.
|
|
2813
|
+
* Usage:
|
|
2814
|
+
* <ng-template mdStepContent> ... </ng-template>
|
|
2815
|
+
*
|
|
2816
|
+
* The directive exposes the underlying TemplateRef so parent
|
|
2817
|
+
* components (e.g., a stepper) can instantiate it on demand.
|
|
2818
|
+
*/
|
|
2819
|
+
declare class MDStepContent {
|
|
2820
|
+
/** Reference to the template to be rendered for this step. */
|
|
2821
|
+
_template: TemplateRef<any>;
|
|
2822
|
+
constructor();
|
|
2823
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDStepContent, never>;
|
|
2824
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDStepContent, "ng-template[mdStepContent]", never, {}, {}, never, never, true, never>;
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
declare class MDStepFooter {
|
|
2828
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDStepFooter, never>;
|
|
2829
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDStepFooter, "[mdStepFooter]", never, {}, {}, never, never, true, never>;
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
type MDPaginatedStepHeaderItem = FocusableOption & {
|
|
2833
|
+
elementRef: ElementRef;
|
|
2834
|
+
};
|
|
2835
|
+
/**
|
|
2836
|
+
* ErrorStateMatcher that shows errors only once a control is dirty
|
|
2837
|
+
* (or when the parent form was submitted). Useful for “show on edit”.
|
|
2838
|
+
*/
|
|
2839
|
+
declare class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {
|
|
2840
|
+
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
2841
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowOnDirtyErrorStateMatcher, never>;
|
|
2842
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShowOnDirtyErrorStateMatcher>;
|
|
2843
|
+
}
|
|
2844
|
+
/**
|
|
2845
|
+
* Default ErrorStateMatcher used across the stepper.
|
|
2846
|
+
* Marks error when a control is invalid and touched, or the form is submitted.
|
|
2847
|
+
*/
|
|
2848
|
+
declare class ErrorStateMatcher {
|
|
2849
|
+
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
2850
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorStateMatcher, never>;
|
|
2851
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorStateMatcher>;
|
|
2852
|
+
}
|
|
2853
|
+
/**
|
|
2854
|
+
* Single step inside the stepper.
|
|
2855
|
+
* - Extends CdkStep and plugs in lazy content via <ng-template mdStepContent>.
|
|
2856
|
+
* - Provides ErrorStateMatcher so the step can decide its own error state.
|
|
2857
|
+
*/
|
|
2858
|
+
declare class MDStep extends CdkStep implements ErrorStateMatcher, AfterContentInit, OnDestroy {
|
|
2859
|
+
/** Parent-provided matcher used as a baseline in isErrorState. */
|
|
2860
|
+
private _errorStateMatcher;
|
|
2861
|
+
/** View container used to create a portal for lazy content. */
|
|
2862
|
+
private _viewContainerRef;
|
|
2863
|
+
/** Subscription to selected-state changes (to attach lazy content). */
|
|
2864
|
+
private _isSelected;
|
|
2865
|
+
/** Optional projected label for the step header. */
|
|
2866
|
+
stepLabel: MDStepLabel;
|
|
2867
|
+
/** Optional lazy body content template: <ng-template mdStepContent>…</ng-template> */
|
|
2868
|
+
_lazyContent: MDStepContent;
|
|
2869
|
+
/** Portal instance created when the step first becomes selected. */
|
|
2870
|
+
_portal: TemplatePortal;
|
|
2871
|
+
/** Attach lazy content when this step becomes selected for the first time. */
|
|
2872
|
+
ngAfterContentInit(): void;
|
|
2873
|
+
/** Cleanup subscription on destroy. */
|
|
2874
|
+
ngOnDestroy(): void;
|
|
2875
|
+
/**
|
|
2876
|
+
* ErrorStateMatcher implementation for this step.
|
|
2877
|
+
* Combines the injected default matcher with “interacted” state so that
|
|
2878
|
+
* a step can show errors after the user interacted with the step controls.
|
|
2879
|
+
*/
|
|
2880
|
+
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
2881
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDStep, never>;
|
|
2882
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDStep, "md-step", ["mdStep"], {}, {}, ["stepLabel", "_lazyContent"], ["*"], true, never>;
|
|
2883
|
+
}
|
|
2884
|
+
/**
|
|
2885
|
+
* The stepper container that manages a sequence of md-step children.
|
|
2886
|
+
* - Handles orientation, header/label positioning, and animations.
|
|
2887
|
+
* - Tracks and emits animation lifecycle.
|
|
2888
|
+
* - Supports custom icon overrides via <ng-template mdStepperIcon name="...">.
|
|
2889
|
+
*/
|
|
2890
|
+
declare class MDStepper extends CdkStepper implements AfterViewInit, AfterContentInit, AfterViewChecked, OnDestroy {
|
|
2891
|
+
/** Run transition listeners outside Angular for perf. */
|
|
2892
|
+
private _ngZone;
|
|
2893
|
+
/** Used to set up/tear down transitionend listeners. */
|
|
2894
|
+
private _renderer;
|
|
2895
|
+
/** Disable animations flag (useful for testing or SSR). */
|
|
2896
|
+
private _animationsDisabled;
|
|
2897
|
+
/** Cleanup handle for the transitionend listener. */
|
|
2898
|
+
private _cleanupTransition;
|
|
2899
|
+
/** Reactive animating flag used by host binding. */
|
|
2900
|
+
protected _isAnimating: i0.WritableSignal<boolean>;
|
|
2901
|
+
/** All step headers rendered by the template. */
|
|
2902
|
+
_stepHeader: QueryList<MDStepHeader>;
|
|
2903
|
+
/** Animated containers used to detect when transitions finish. */
|
|
2904
|
+
_animatedContainers: QueryList<ElementRef>;
|
|
2905
|
+
/** All descendant steps (supports nested usage; CdkStepper handles scoping). */
|
|
2906
|
+
_steps: QueryList<MDStep>;
|
|
2907
|
+
/** Public alias of _steps used by base class. */
|
|
2908
|
+
readonly steps: QueryList<MDStep>;
|
|
2909
|
+
/** Any custom icon templates projected via mdStepperIcon. */
|
|
2910
|
+
_icons: QueryList<MDStepperIcon>;
|
|
2911
|
+
/** Emits when a view transition animation has completed. */
|
|
2912
|
+
readonly animationDone: EventEmitter<void>;
|
|
2913
|
+
footer: MDStepFooter;
|
|
2914
|
+
/** Horizontal label position (end/bottom when orientation is horizontal). */
|
|
2915
|
+
labelPosition: 'bottom' | 'end';
|
|
2916
|
+
/** Step header position (top/bottom). */
|
|
2917
|
+
headerPosition: 'top' | 'bottom';
|
|
2918
|
+
/** Map of step state → custom icon template overrides. */
|
|
2919
|
+
_iconOverrides: Record<string, TemplateRef<StepperIconContext>>;
|
|
2920
|
+
/** Duration for transitions (e.g. "500ms" | "0ms"). */
|
|
2921
|
+
get animationDuration(): string;
|
|
2922
|
+
set animationDuration(value: string);
|
|
2923
|
+
private _animationDuration;
|
|
2924
|
+
/** SSR guard (avoid DOM APIs when not in browser). */
|
|
2925
|
+
protected _isServer: boolean;
|
|
2926
|
+
private _sharedResizeObserver;
|
|
2927
|
+
constructor();
|
|
2928
|
+
/**
|
|
2929
|
+
* After content init:
|
|
2930
|
+
* - Collect custom icon templates.
|
|
2931
|
+
* - React to step list changes to recalc state.
|
|
2932
|
+
* - Toggle animating flag on selected index changes and prepare CSS listeners.
|
|
2933
|
+
*/
|
|
2934
|
+
ngAfterContentInit(): void;
|
|
2935
|
+
ngAfterViewChecked(): void;
|
|
2936
|
+
private _stopScrolling;
|
|
2937
|
+
private _eventCleanups;
|
|
2938
|
+
private _selectedIndexChanged;
|
|
2939
|
+
private _stepLabelCount;
|
|
2940
|
+
private changeDetectorRef;
|
|
2941
|
+
private _platform;
|
|
2942
|
+
disablePagination: boolean;
|
|
2943
|
+
get selectedIndex(): number;
|
|
2944
|
+
set selectedIndex(v: number);
|
|
2945
|
+
_stepHeaderElRef: ElementRef<HTMLElement>;
|
|
2946
|
+
_stepListContainer: ElementRef<HTMLElement>;
|
|
2947
|
+
_stepList: ElementRef<HTMLElement>;
|
|
2948
|
+
_stepListInner: ElementRef<HTMLElement>;
|
|
2949
|
+
_nextPaginator: ElementRef<HTMLElement>;
|
|
2950
|
+
_previousPaginator: ElementRef<HTMLElement>;
|
|
2951
|
+
private _scrollDistanceChanged;
|
|
2952
|
+
private _scrollDistance;
|
|
2953
|
+
_showPaginationControls: boolean;
|
|
2954
|
+
_disableScrollAfter: boolean;
|
|
2955
|
+
_disableScrollBefore: boolean;
|
|
2956
|
+
get scrollDistance(): number;
|
|
2957
|
+
set scrollDistance(value: number);
|
|
2958
|
+
_handlePaginatorClick(direction: ScrollDirection$1): void;
|
|
2959
|
+
_handlePaginatorPress(direction: ScrollDirection$1, mouseEvent?: MouseEvent): void;
|
|
2960
|
+
_scrollHeader(direction: ScrollDirection$1): {
|
|
2961
|
+
maxScrollDistance: number;
|
|
2962
|
+
distance: number;
|
|
2963
|
+
};
|
|
2964
|
+
_stopInterval(): void;
|
|
2965
|
+
_scrollToLabel(labelIndex: number): void;
|
|
2966
|
+
private _itemsResized;
|
|
2967
|
+
private _scrollTo;
|
|
2968
|
+
_checkScrollingControls(): void;
|
|
2969
|
+
_getMaxScrollDistance(): number;
|
|
2970
|
+
_updateTabScrollPosition(): void;
|
|
2971
|
+
updatePagination(): void;
|
|
2972
|
+
_checkPaginationEnabled(): void;
|
|
2973
|
+
/**
|
|
2974
|
+
* After view init:
|
|
2975
|
+
* - Emit initial animationDone once containers are rendered.
|
|
2976
|
+
* - Recompute alignment/layout on container list changes.
|
|
2977
|
+
*/
|
|
2978
|
+
ngAfterViewInit(): void;
|
|
2979
|
+
/** Tear down transition listener on destroy. */
|
|
2980
|
+
ngOnDestroy(): void;
|
|
2981
|
+
/** Resolve the effective animation duration string applied to CSS. */
|
|
2982
|
+
_getAnimationDuration(): string;
|
|
2983
|
+
/**
|
|
2984
|
+
* Global transitionend handler:
|
|
2985
|
+
* - Detects the active animated container based on orientation and CSS properties.
|
|
2986
|
+
* - Calls _onAnimationDone when the relevant transition completes.
|
|
2987
|
+
*/
|
|
2988
|
+
private _handleTransitionend;
|
|
2989
|
+
/** Clear the animating flag and emit animationDone to consumers. */
|
|
2990
|
+
private _onAnimationDone;
|
|
2991
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDStepper, never>;
|
|
2992
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDStepper, "md-stepper, md-vertical-stepper, md-horizontal-stepper, [mdStepper]", ["mdStepper", "mdVerticalStepper", "mdHorizontalStepper"], { "labelPosition": { "alias": "labelPosition"; "required": false; }; "headerPosition": { "alias": "headerPosition"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "disablePagination": { "alias": "disablePagination"; "required": false; }; }, { "animationDone": "animationDone"; }, ["footer", "_steps", "_icons"], ["*"], true, never>;
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
/**
|
|
2996
|
+
* Button directive that advances the stepper to the next step.
|
|
2997
|
+
*
|
|
2998
|
+
* Usage:
|
|
2999
|
+
* <button mdStepperNext>Next</button>
|
|
3000
|
+
*
|
|
3001
|
+
* Extends CDK's CdkStepperNext; this wrapper only provides
|
|
3002
|
+
* a semantic selector and host classes/attrs for styling.
|
|
3003
|
+
*/
|
|
3004
|
+
declare class MDStepperNext extends CdkStepperNext {
|
|
3005
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDStepperNext, never>;
|
|
3006
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDStepperNext, "button[mdStepperNext]", never, {}, {}, never, never, true, never>;
|
|
3007
|
+
}
|
|
3008
|
+
/**
|
|
3009
|
+
* Button directive that moves the stepper to the previous step.
|
|
3010
|
+
*
|
|
3011
|
+
* Usage:
|
|
3012
|
+
* <button mdStepperPrevious>Back</button>
|
|
3013
|
+
*
|
|
3014
|
+
* Extends CDK's CdkStepperPrevious; this wrapper only provides
|
|
3015
|
+
* a semantic selector and host classes/attrs for styling.
|
|
3016
|
+
*/
|
|
3017
|
+
declare class MDStepperPrevious extends CdkStepperPrevious {
|
|
3018
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDStepperPrevious, never>;
|
|
3019
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDStepperPrevious, "button[mdStepperPrevious]", never, {}, {}, never, never, true, never>;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
declare class MDStepExecutorModule {
|
|
3023
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDStepExecutorModule, never>;
|
|
3024
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MDStepExecutorModule, never, [typeof i2.CommonModule, typeof i3.PortalModule, typeof i3$1.CdkStepperModule, typeof MDStep, typeof MDStepLabel, typeof MDStepper, typeof MDStepperNext, typeof MDStepperPrevious, typeof MDStepHeader, typeof MDStepperIcon, typeof MDStepContent, typeof MDStepFooter], [typeof i2.CommonModule, typeof MDStep, typeof MDStepLabel, typeof MDStepper, typeof MDStepperNext, typeof MDStepperPrevious, typeof MDStepHeader, typeof MDStepperIcon, typeof MDStepContent, typeof MDStepFooter]>;
|
|
3025
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MDStepExecutorModule>;
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
declare class MDOptionGroup {
|
|
3029
|
+
/** Visible group header shown above the contained options. */
|
|
3030
|
+
label: string;
|
|
3031
|
+
/**
|
|
3032
|
+
* Disables the entire group (non-interactive/inert rendering).
|
|
3033
|
+
* @default false
|
|
3034
|
+
*/
|
|
3035
|
+
disabled: boolean;
|
|
3036
|
+
/**
|
|
3037
|
+
* Unique id used to associate the rendered label with the grouped options for a11y.
|
|
3038
|
+
* Useful as `aria-labelledby` target on the options container.
|
|
3039
|
+
*/
|
|
3040
|
+
_labelId: string;
|
|
3041
|
+
/**
|
|
3042
|
+
* Internal flag for templates to make the group non-interactive without altering ARIA.
|
|
3043
|
+
* Can be toggled by the parent template if additional gating is needed.
|
|
3044
|
+
* @internal
|
|
3045
|
+
*/
|
|
3046
|
+
_inert: boolean;
|
|
3047
|
+
/**
|
|
3048
|
+
* Optional reference to the parent select; useful for contextual checks in the template.
|
|
3049
|
+
* Kept for side-effects/context only; not required for basic grouping behavior.
|
|
3050
|
+
*/
|
|
3051
|
+
constructor();
|
|
3052
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDOptionGroup, never>;
|
|
3053
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDOptionGroup, "md-option-group", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*", "md-option, ng-container"], true, never>;
|
|
3054
|
+
static ngAcceptInputType_disabled: unknown;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
/**
|
|
3058
|
+
* Event payload emitted when an option's selection state changes.
|
|
3059
|
+
*
|
|
3060
|
+
* @template T Model value type.
|
|
3061
|
+
*/
|
|
3062
|
+
declare class MDOptionSelectionChange<T = any> {
|
|
3063
|
+
source: MDOption<T>;
|
|
3064
|
+
isUserInput: boolean;
|
|
3065
|
+
constructor(source: MDOption<T>, isUserInput?: boolean);
|
|
3066
|
+
}
|
|
3067
|
+
declare class MDOption<T = any> {
|
|
3068
|
+
/** Host element reference for focus & DOM access. */
|
|
3069
|
+
private _element;
|
|
3070
|
+
/** Change detector for OnPush-friendly manual marks. */
|
|
3071
|
+
_changeDetectorRef: ChangeDetectorRef;
|
|
3072
|
+
/** Optional parent select to derive `multiple` and for coordination. */
|
|
3073
|
+
private _parent;
|
|
3074
|
+
/** Optional parent group to inherit disabled state. */
|
|
3075
|
+
group: MDOptionGroup | null;
|
|
3076
|
+
/** Internal selection state. */
|
|
3077
|
+
private _selected;
|
|
3078
|
+
/** Internal active (highlighted) state used by typeahead/keyboard nav. */
|
|
3079
|
+
private _active;
|
|
3080
|
+
/** Model value associated with this option. */
|
|
3081
|
+
value: T;
|
|
3082
|
+
/** Unique id for the option (used by host/id bindings). */
|
|
3083
|
+
id: string;
|
|
3084
|
+
/**
|
|
3085
|
+
* Disabled state: `true` if the group is disabled OR the individual disabled signal is `true`.
|
|
3086
|
+
* Group-level disabled takes precedence and is observed reactively.
|
|
3087
|
+
*/
|
|
3088
|
+
get disabled(): boolean;
|
|
3089
|
+
set disabled(value: boolean);
|
|
3090
|
+
/** Internal reactive flag for individual disabled state. */
|
|
3091
|
+
private _disabled;
|
|
3092
|
+
/** Whether the parent select is in multi-selection mode. */
|
|
3093
|
+
get multiple(): boolean | null;
|
|
3094
|
+
/** Public read-only selection flag. */
|
|
3095
|
+
get selected(): boolean;
|
|
3096
|
+
/** Emits whenever selection state changes (user or programmatic). */
|
|
3097
|
+
readonly onSelectionChange: EventEmitter<MDOptionSelectionChange<T>>;
|
|
3098
|
+
/**
|
|
3099
|
+
* Reference to the visible text node inside option.
|
|
3100
|
+
* Used to compute {@link viewValue} / {@link getLabel}.
|
|
3101
|
+
*/
|
|
3102
|
+
_text: ElementRef<HTMLElement> | undefined;
|
|
3103
|
+
/** Stream used by parent components to observe state changes. */
|
|
3104
|
+
readonly _stateChanges: Subject<void>;
|
|
3105
|
+
constructor();
|
|
3106
|
+
/** Whether this option is currently "active" (keyboard highlight). */
|
|
3107
|
+
get active(): boolean;
|
|
3108
|
+
/**
|
|
3109
|
+
* Select this option programmatically.
|
|
3110
|
+
* @param emitEvent When `true` (default), emits {@link onSelectionChange}.
|
|
3111
|
+
*/
|
|
3112
|
+
select(emitEvent?: boolean): void;
|
|
3113
|
+
/**
|
|
3114
|
+
* Handle keyboard selection: `ENTER`/`SPACE` toggles selection
|
|
3115
|
+
* when no modifier keys are pressed.
|
|
3116
|
+
*/
|
|
3117
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
3118
|
+
/**
|
|
3119
|
+
* Toggle/select via click or keyboard; respects disabled and multiple modes.
|
|
3120
|
+
* Marks for check and emits user-input-flavored selection event.
|
|
3121
|
+
*/
|
|
3122
|
+
_selectViaInteraction(): void;
|
|
3123
|
+
/**
|
|
3124
|
+
* Deselect this option programmatically.
|
|
3125
|
+
* @param emitEvent When `true` (default), emits {@link onSelectionChange}.
|
|
3126
|
+
*/
|
|
3127
|
+
deselect(emitEvent?: boolean): void;
|
|
3128
|
+
/**
|
|
3129
|
+
* Move focus to this option's host element.
|
|
3130
|
+
* @param _origin Optional {@link FocusOrigin} (not used by default).
|
|
3131
|
+
* @param options Standard {@link FocusOptions}.
|
|
3132
|
+
*/
|
|
3133
|
+
focus(_origin?: FocusOrigin, options?: FocusOptions): void;
|
|
3134
|
+
/** Visible string representation of the option (trimmed text content). */
|
|
3135
|
+
get viewValue(): string;
|
|
3136
|
+
/** Alias for {@link viewValue}; kept for API parity with other option components. */
|
|
3137
|
+
getLabel(): string;
|
|
3138
|
+
/** Apply "active" visual styles (used by parent for keyboard navigation). */
|
|
3139
|
+
setActiveStyles(): void;
|
|
3140
|
+
/** Remove "active" visual styles. */
|
|
3141
|
+
setInactiveStyles(): void;
|
|
3142
|
+
/** Return the underlying host `HTMLElement`. */
|
|
3143
|
+
_getHostElement(): HTMLElement;
|
|
3144
|
+
/**
|
|
3145
|
+
* Emit selection change payload; optionally mark as user-driven.
|
|
3146
|
+
* @param isUserInput Whether the change originated from user interaction.
|
|
3147
|
+
*/
|
|
3148
|
+
private _emitSelectionChangeEvent;
|
|
3149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDOption<any>, never>;
|
|
3150
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDOption<any>, "md-option", never, { "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onSelectionChange": "onSelectionChange"; }, never, ["icon", "*"], true, never>;
|
|
3151
|
+
static ngAcceptInputType_disabled: unknown;
|
|
3152
|
+
}
|
|
3153
|
+
/**
|
|
3154
|
+
* Count how many group labels appear before a given option index.
|
|
3155
|
+
* Useful for computing aria-posinset / active-descendant offsets when groups are present.
|
|
3156
|
+
*
|
|
3157
|
+
* @param optionIndex Index of the target option among all rendered options.
|
|
3158
|
+
* @param options `QueryList` of all `MDOption` items (in render order).
|
|
3159
|
+
* @param optionGroups `QueryList` of `MDOptionGroup` (in render order).
|
|
3160
|
+
* @returns Number of group headers preceding the option.
|
|
3161
|
+
*/
|
|
3162
|
+
declare function _countGroupLabelsBeforeOption(optionIndex: number, options: QueryList<MDOption>, optionGroups: QueryList<MDOptionGroup>): number;
|
|
3163
|
+
/**
|
|
3164
|
+
* Compute the `scrollTop` needed to bring an option fully into view inside a panel.
|
|
3165
|
+
*
|
|
3166
|
+
* @param optionOffset Distance (px) from top of panel to the top of the option.
|
|
3167
|
+
* @param optionHeight Height of the option (px).
|
|
3168
|
+
* @param currentScrollPosition Current `scrollTop` of the panel.
|
|
3169
|
+
* @param panelHeight Visible height of the panel (px).
|
|
3170
|
+
* @returns Desired `scrollTop` to ensure full visibility (or current if already visible).
|
|
3171
|
+
*/
|
|
3172
|
+
declare function _getOptionScrollPosition(optionOffset: number, optionHeight: number, currentScrollPosition: number, panelHeight: number): number;
|
|
3173
|
+
|
|
3174
|
+
/** Event payload emitted when the select's value changes. */
|
|
3175
|
+
declare class SelectChange<T = any> {
|
|
3176
|
+
source: MDSelect;
|
|
3177
|
+
value: T;
|
|
3178
|
+
constructor(source: MDSelect, value: T);
|
|
3179
|
+
}
|
|
3180
|
+
/** Token for projecting a custom trigger template (optional). */
|
|
3181
|
+
declare const MD_SELECT_TRIGGER: InjectionToken<MDSelectTrigger>;
|
|
3182
|
+
declare class MDSelect implements OnInit, OnChanges, OnDestroy, ControlValueAccessor {
|
|
3183
|
+
/** Viewport ruler for resize/orientation tracking to recompute overlay width. */
|
|
3184
|
+
protected _viewportRuler: ViewportRuler;
|
|
3185
|
+
/** Change detector for OnPush; used throughout for manual marks. */
|
|
3186
|
+
protected _changeDetectorRef: ChangeDetectorRef;
|
|
3187
|
+
/** Host element reference. */
|
|
3188
|
+
readonly _elementRef: ElementRef<HTMLElement>;
|
|
3189
|
+
/** CDK Overlay service. */
|
|
3190
|
+
readonly _overlay: Overlay;
|
|
3191
|
+
/** RTL/LTR direction (optional). */
|
|
3192
|
+
private _dir;
|
|
3193
|
+
/** Emits once content is fully initialized. */
|
|
3194
|
+
private _initialized;
|
|
3195
|
+
/** Control accessor hookup (if used inside forms). */
|
|
3196
|
+
ngControl: NgControl;
|
|
3197
|
+
/** Id generator for trigger/value elements. */
|
|
3198
|
+
private _idGenerator;
|
|
3199
|
+
/** Cleanup fn for overlay detach (animation end / fallback). */
|
|
3200
|
+
private _cleanupDetach;
|
|
3201
|
+
/** Renderer for low-level DOM ops. */
|
|
3202
|
+
private _renderer;
|
|
3203
|
+
/** CSS class(es) applied to the overlay panel container. */
|
|
3204
|
+
panelClass: string | string[] | Set<string> | {
|
|
3205
|
+
[key: string]: any;
|
|
3206
|
+
};
|
|
3207
|
+
/** Disabled state for the whole control. */
|
|
3208
|
+
disabled: boolean;
|
|
3209
|
+
/** Multiple selection toggle. */
|
|
3210
|
+
get multiple(): boolean;
|
|
3211
|
+
set multiple(value: boolean);
|
|
3212
|
+
private _multiple;
|
|
3213
|
+
/** Current model value (single or array for multiple). */
|
|
3214
|
+
get value(): any;
|
|
3215
|
+
set value(newValue: any);
|
|
3216
|
+
private _value;
|
|
3217
|
+
/** Host tabindex (applies when not disabled). */
|
|
3218
|
+
tabIndex: number;
|
|
3219
|
+
/**
|
|
3220
|
+
* Required flag; auto-derives from `Validators.required` on the bound control
|
|
3221
|
+
* if not provided explicitly.
|
|
3222
|
+
*/
|
|
3223
|
+
get required(): boolean;
|
|
3224
|
+
set required(value: boolean);
|
|
3225
|
+
private _required;
|
|
3226
|
+
/** Custom comparator for complex option values. */
|
|
3227
|
+
get compareWith(): (o1: any, o2: any) => boolean;
|
|
3228
|
+
set compareWith(fn: (o1: any, o2: any) => boolean);
|
|
3229
|
+
private _compareWith;
|
|
3230
|
+
/** Placeholder/label when nothing is selected. */
|
|
3231
|
+
get placeholder(): string;
|
|
3232
|
+
set placeholder(value: string);
|
|
3233
|
+
private _placeholder;
|
|
3234
|
+
/** Allow selecting null/undefined values in single mode. */
|
|
3235
|
+
canSelectNullableOptions: boolean;
|
|
3236
|
+
/** Optional custom sorting for selected values (multiple mode). */
|
|
3237
|
+
sortComparator: (a: MDOption, b: MDOption, options: MDOption[]) => number;
|
|
3238
|
+
/** Emits raw value whenever internal value changes. */
|
|
3239
|
+
readonly valueChange: EventEmitter<any>;
|
|
3240
|
+
/** Emits {@link SelectChange} with source/value when selection changes. */
|
|
3241
|
+
readonly selectionChange: EventEmitter<SelectChange<any>>;
|
|
3242
|
+
/** Emits `true/false` when panel opens/closes. */
|
|
3243
|
+
readonly openedChange: EventEmitter<boolean>;
|
|
3244
|
+
/** Convenience stream: fires once on open. */
|
|
3245
|
+
readonly _openedStream: Observable<void>;
|
|
3246
|
+
/** Convenience stream: fires once on close. */
|
|
3247
|
+
readonly _closedStream: Observable<void>;
|
|
3248
|
+
/** Trigger element ref (default trigger template). */
|
|
3249
|
+
trigger: ElementRef;
|
|
3250
|
+
/** Panel container ref. */
|
|
3251
|
+
panel: ElementRef;
|
|
3252
|
+
/** Overlay directive for positioning/attach/detach. */
|
|
3253
|
+
protected _overlayDir: CdkConnectedOverlay;
|
|
3254
|
+
/** Optional projected custom trigger via injection token. */
|
|
3255
|
+
customTrigger: MDSelectTrigger;
|
|
3256
|
+
/** Descendant options in the content. */
|
|
3257
|
+
options: QueryList<MDOption>;
|
|
3258
|
+
/** Descendant option groups in the content. */
|
|
3259
|
+
optionGroups: QueryList<MDOptionGroup>;
|
|
3260
|
+
/** Preferred connected positions for overlay. */
|
|
3261
|
+
_positions: ConnectedPosition[];
|
|
3262
|
+
/** True when host is focused or panel is open. */
|
|
3263
|
+
get focused(): boolean;
|
|
3264
|
+
private _focused;
|
|
3265
|
+
/** Emits when any input that affects layout/state changes. */
|
|
3266
|
+
readonly stateChanges: Subject<void>;
|
|
3267
|
+
/** Destroy notifier for subscriptions. */
|
|
3268
|
+
protected readonly _destroy: Subject<void>;
|
|
3269
|
+
/** Panel visibility flag. */
|
|
3270
|
+
private _panelOpen;
|
|
3271
|
+
/** Computed overlay width (synced on viewport size changes). */
|
|
3272
|
+
_overlayWidth: string | number;
|
|
3273
|
+
/** Scroll strategy for overlay panel. */
|
|
3274
|
+
_scrollStrategy: ScrollStrategy;
|
|
3275
|
+
/** Selected options model. */
|
|
3276
|
+
_selectionModel: SelectionModel<any>;
|
|
3277
|
+
/** ControlValueAccessor change fn. */
|
|
3278
|
+
_onChange: (value: any) => void;
|
|
3279
|
+
/** ControlValueAccessor touched fn. */
|
|
3280
|
+
_onTouched: () => void;
|
|
3281
|
+
/** Keyboard manager for activeDescendant/roving focus/typeahead. */
|
|
3282
|
+
_keyManager: ActiveDescendantKeyManager<MDOption>;
|
|
3283
|
+
/** Stream of child option selection events, lazily wired. */
|
|
3284
|
+
readonly optionSelectionChanges: Observable<MDOptionSelectionChange>;
|
|
3285
|
+
/** Id for the trigger value region (for aria). */
|
|
3286
|
+
_valueId: string;
|
|
3287
|
+
/** True when no selection is present. */
|
|
3288
|
+
get empty(): boolean;
|
|
3289
|
+
constructor();
|
|
3290
|
+
/** Lifecycle: react to `@Input` changes (reserved for future use). */
|
|
3291
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
3292
|
+
/** After content init: wire key manager, selection model synchronization. */
|
|
3293
|
+
ngAfterContentInit(): void;
|
|
3294
|
+
/** Initialize selection model and subscribe to viewport changes. */
|
|
3295
|
+
ngOnInit(): void;
|
|
3296
|
+
/** Cleanup listeners/subscriptions. */
|
|
3297
|
+
ngOnDestroy(): void;
|
|
3298
|
+
/** Public: whether the panel is currently open. */
|
|
3299
|
+
get panelOpen(): boolean;
|
|
3300
|
+
/** Public: current selection (single `MDOption` or array for multiple). */
|
|
3301
|
+
get selected(): MDOption | MDOption[];
|
|
3302
|
+
/** Human-readable value for the trigger display. */
|
|
3303
|
+
get triggerValue(): string;
|
|
3304
|
+
writeValue(value: any): void;
|
|
3305
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
3306
|
+
registerOnTouched(fn: () => {}): void;
|
|
3307
|
+
/** Guard: can we open now (not disabled, have options, overlay ready)? */
|
|
3308
|
+
protected _canOpen(): boolean;
|
|
3309
|
+
/** Open the panel and prepare keyboard/scroll state. */
|
|
3310
|
+
open(): void;
|
|
3311
|
+
/** Pick initial active item on open (first enabled or selected). */
|
|
3312
|
+
private _highlightCorrectOption;
|
|
3313
|
+
/** After attach: ensure active option is scrolled into view. */
|
|
3314
|
+
private _positioningSettled;
|
|
3315
|
+
/** Close panel, restore orientation, mark touched, and emit. */
|
|
3316
|
+
close(): void;
|
|
3317
|
+
/** Play exit animation (if available), then detach overlay. */
|
|
3318
|
+
private _exitAndDetach;
|
|
3319
|
+
/** Detach overlay and request change detection. */
|
|
3320
|
+
private _detachOverlay;
|
|
3321
|
+
/** RTL helper. */
|
|
3322
|
+
_isRtl(): boolean;
|
|
3323
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
3324
|
+
/** When closed: open with Enter/Space; navigate single selection. */
|
|
3325
|
+
private _handleClosedKeydown;
|
|
3326
|
+
/** When open: navigate/select, Ctrl+A (multiple), Alt+Arrow closes. */
|
|
3327
|
+
private _handleOpenKeydown;
|
|
3328
|
+
/** For overlay container keydown (ESC closes). */
|
|
3329
|
+
protected _handleOverlayKeydown(event: KeyboardEvent): void;
|
|
3330
|
+
/** Assign value and synchronize selection from external model. */
|
|
3331
|
+
private _assignValue;
|
|
3332
|
+
/** Compute overlay width from host bounding box. */
|
|
3333
|
+
private _getOverlayWidth;
|
|
3334
|
+
/** Update selection based on a (possibly array) value. */
|
|
3335
|
+
private _setSelectionByValue;
|
|
3336
|
+
/** Find option that matches value (using compareWith) and select it. */
|
|
3337
|
+
private _selectOptionByValue;
|
|
3338
|
+
/** Move focus to host (useful after closing). */
|
|
3339
|
+
focus(options?: FocusOptions): void;
|
|
3340
|
+
/** Default container click behavior: focus + open. */
|
|
3341
|
+
onContainerClick(): void;
|
|
3342
|
+
/** Initialize selection from bound form control or internal value. */
|
|
3343
|
+
private _initializeSelection;
|
|
3344
|
+
/** Skip disabled options while panel is closed (for key manager). */
|
|
3345
|
+
private _skipPredicate;
|
|
3346
|
+
/** Ensure a given option index is fully visible inside the panel. */
|
|
3347
|
+
_scrollOptionIntoView(index: number): void;
|
|
3348
|
+
/** Wire option streams and handle user-driven selection/changes. */
|
|
3349
|
+
private _resetOptions;
|
|
3350
|
+
/** Handle a single option's (de)selection and propagate changes. */
|
|
3351
|
+
private _onSelect;
|
|
3352
|
+
/** Sort selected values using custom comparator or DOM order. */
|
|
3353
|
+
private _sortValues;
|
|
3354
|
+
/** Build `SelectChange` payload. */
|
|
3355
|
+
private _getChangeEvent;
|
|
3356
|
+
/** Emit valueChange, call CVA onChange, emit selectionChange, mark for check. */
|
|
3357
|
+
private _propagateChanges;
|
|
3358
|
+
/** Initialize keyboard manager for navigation, typeahead, and tabOut. */
|
|
3359
|
+
private _initKeyManager;
|
|
3360
|
+
/** `aria-activedescendant` points to the active option when panel is open. */
|
|
3361
|
+
_getAriaActiveDescendant(): string | null;
|
|
3362
|
+
/** Focus-in handler: set focused state (unless disabled). */
|
|
3363
|
+
_onFocus(): void;
|
|
3364
|
+
/** Focus-out handler: mark touched when closed; cancel typeahead. */
|
|
3365
|
+
_onBlur(): void;
|
|
3366
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDSelect, never>;
|
|
3367
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDSelect, "md-select", never, { "panelClass": { "alias": "panelClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "canSelectNullableOptions": { "alias": "canSelectNullableOptions"; "required": false; }; "sortComparator": { "alias": "sortComparator"; "required": false; }; }, { "valueChange": "valueChange"; "selectionChange": "selectionChange"; "openedChange": "openedChange"; "_openedStream": "opened"; "_closedStream": "closed"; }, ["customTrigger", "options", "optionGroups"], ["select-trigger", "*"], true, never>;
|
|
3368
|
+
static ngAcceptInputType_disabled: unknown;
|
|
3369
|
+
static ngAcceptInputType_multiple: unknown;
|
|
3370
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
3371
|
+
static ngAcceptInputType_required: unknown;
|
|
3372
|
+
static ngAcceptInputType_canSelectNullableOptions: unknown;
|
|
3373
|
+
}
|
|
3374
|
+
/** Optional directive to project a custom trigger area for the select. */
|
|
3375
|
+
declare class MDSelectTrigger {
|
|
3376
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDSelectTrigger, never>;
|
|
3377
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDSelectTrigger, "select-trigger", never, {}, {}, never, never, false, never>;
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
/** Visual states for the pseudo checkbox glyph. */
|
|
3381
|
+
type PseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate';
|
|
3382
|
+
declare class PseudoCheckbox {
|
|
3383
|
+
/**
|
|
3384
|
+
* Visual state of the glyph.
|
|
3385
|
+
* Affects host classes only; no behavior is implied.
|
|
3386
|
+
* @default 'checked'
|
|
3387
|
+
*/
|
|
3388
|
+
state: PseudoCheckboxState;
|
|
3389
|
+
/**
|
|
3390
|
+
* Applies a disabled look.
|
|
3391
|
+
* Parent/consumer is responsible for actual interactivity.
|
|
3392
|
+
* @default false
|
|
3393
|
+
*/
|
|
3394
|
+
disabled: boolean;
|
|
3395
|
+
/**
|
|
3396
|
+
* Size/style variant of the glyph.
|
|
3397
|
+
* - `'minimal'` — compact indicator
|
|
3398
|
+
* - `'full'` — standard checkbox visuals
|
|
3399
|
+
* @default 'full'
|
|
3400
|
+
*/
|
|
3401
|
+
appearance: 'minimal' | 'full';
|
|
3402
|
+
constructor();
|
|
3403
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PseudoCheckbox, never>;
|
|
3404
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PseudoCheckbox, "pseudo-checkbox", never, { "state": { "alias": "state"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, never, true, never>;
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
declare class MDSelectModule {
|
|
3408
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDSelectModule, never>;
|
|
3409
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MDSelectModule, never, [typeof i2.CommonModule, typeof i5.FormsModule, typeof i6.OverlayModule, typeof MDOption, typeof MDOptionGroup, typeof MDSelect, typeof PseudoCheckbox], [typeof MDOption, typeof MDOptionGroup, typeof MDSelect]>;
|
|
3410
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MDSelectModule>;
|
|
3411
|
+
}
|
|
3412
|
+
|
|
3413
|
+
declare class BaseEditableHolder implements ControlValueAccessor {
|
|
3414
|
+
/** Change detector used by children to mark for check after updates. */
|
|
3415
|
+
cd: ChangeDetectorRef;
|
|
3416
|
+
/**
|
|
3417
|
+
* Reactive internal value for the control (Signal).
|
|
3418
|
+
* @default undefined
|
|
3419
|
+
*/
|
|
3420
|
+
modelValue: i0.WritableSignal<any>;
|
|
3421
|
+
/**
|
|
3422
|
+
* Optional "required" flag as a signalized input.
|
|
3423
|
+
* @remarks Value is transformed via `booleanAttribute`.
|
|
3424
|
+
*/
|
|
3425
|
+
required: i0.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
3426
|
+
/**
|
|
3427
|
+
* Optional "invalid" flag as a signalized input (used for UI state).
|
|
3428
|
+
* @remarks Value is transformed via `booleanAttribute`.
|
|
3429
|
+
*/
|
|
3430
|
+
invalid: i0.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
3431
|
+
/**
|
|
3432
|
+
* Disabled input as a signal (explicit/external).
|
|
3433
|
+
* @remarks Value is transformed via `booleanAttribute`.
|
|
3434
|
+
*/
|
|
3435
|
+
disabled: i0.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
3436
|
+
/** Optional control name (useful for forms & a11y attributes). */
|
|
3437
|
+
name: i0.InputSignal<string | undefined>;
|
|
3438
|
+
/**
|
|
3439
|
+
* Internal disabled state set via CVA's `setDisabledState`.
|
|
3440
|
+
* @default false
|
|
3441
|
+
* @internal
|
|
3442
|
+
*/
|
|
3443
|
+
_disabled: i0.WritableSignal<boolean>;
|
|
3444
|
+
/**
|
|
3445
|
+
* Effective disabled state:
|
|
3446
|
+
* `true` if either the input `disabled()` is truthy OR `setDisabledState(true)` was called.
|
|
3447
|
+
*/
|
|
3448
|
+
$disabled: i0.Signal<boolean>;
|
|
3449
|
+
/** CVA onChange callback (assigned by Angular Forms). */
|
|
3450
|
+
onModelChange: Function;
|
|
3451
|
+
/** CVA onTouched callback (assigned by Angular Forms). */
|
|
3452
|
+
onModelTouched: Function;
|
|
3453
|
+
/**
|
|
3454
|
+
* Programmatically set the internal disabled state (used by `setDisabledState`).
|
|
3455
|
+
* @param value New disabled state.
|
|
3456
|
+
*/
|
|
3457
|
+
writeDisabledState(value: boolean): void;
|
|
3458
|
+
/**
|
|
3459
|
+
* Overridable hook invoked by `writeValue`.
|
|
3460
|
+
* Child components can coerce or transform incoming values here.
|
|
3461
|
+
* Call `setModelValue(value)` to persist.
|
|
3462
|
+
*
|
|
3463
|
+
* @param value Incoming value from the external model.
|
|
3464
|
+
* @param setModelValue Callback to update the internal `modelValue`.
|
|
3465
|
+
* @protected
|
|
3466
|
+
*/
|
|
3467
|
+
protected writeControlValue(value: any, setModelValue?: (value: any) => void): void;
|
|
3468
|
+
/**
|
|
3469
|
+
* CVA: writes an external value into the control.
|
|
3470
|
+
* Delegates to {@link writeControlValue} so children can customize behavior.
|
|
3471
|
+
*
|
|
3472
|
+
* @param value Value coming from the Angular Forms model.
|
|
3473
|
+
*/
|
|
3474
|
+
writeValue(value: any): void;
|
|
3475
|
+
/**
|
|
3476
|
+
* Updates the internal value signal (`modelValue`) from the component itself
|
|
3477
|
+
* (e.g., on user input). This does **not** notify the Forms API by itself.
|
|
3478
|
+
* Invoke {@link onModelChange} after this to propagate when appropriate.
|
|
3479
|
+
*
|
|
3480
|
+
* @param value New internal value to set.
|
|
3481
|
+
*/
|
|
3482
|
+
writeModelValue(value: any): void;
|
|
3483
|
+
/**
|
|
3484
|
+
* CVA: registers the callback to propagate value changes to Angular Forms.
|
|
3485
|
+
* @param fn Callback invoked when the control's value changes.
|
|
3486
|
+
*/
|
|
3487
|
+
registerOnChange(fn: Function): void;
|
|
3488
|
+
/**
|
|
3489
|
+
* CVA: registers the callback to mark the control as touched.
|
|
3490
|
+
* @param fn Callback invoked when the control is touched.
|
|
3491
|
+
*/
|
|
3492
|
+
registerOnTouched(fn: Function): void;
|
|
3493
|
+
/**
|
|
3494
|
+
* CVA: enables/disables the control from the Forms API.
|
|
3495
|
+
* @param val `true` to disable, `false` to enable.
|
|
3496
|
+
*/
|
|
3497
|
+
setDisabledState(val: boolean): void;
|
|
3498
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseEditableHolder, never>;
|
|
3499
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseEditableHolder, never, never, { "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3500
|
+
}
|
|
3501
|
+
|
|
3502
|
+
declare class MDSwitch extends BaseEditableHolder implements OnInit, OnDestroy, ControlValueAccessor {
|
|
3503
|
+
/**
|
|
3504
|
+
* Backing unique id used as a default for {@link id}.
|
|
3505
|
+
* @internal
|
|
3506
|
+
*/
|
|
3507
|
+
private _uniqueId;
|
|
3508
|
+
/**
|
|
3509
|
+
* Host element id. Can be overridden by the consumer.
|
|
3510
|
+
* @default auto-generated value like `"slide-toggle-..."`
|
|
3511
|
+
*/
|
|
3512
|
+
id: string;
|
|
3513
|
+
/**
|
|
3514
|
+
* Keyboard tab order for the internal input.
|
|
3515
|
+
* @remarks Value is transformed via `numberAttribute`.
|
|
3516
|
+
*/
|
|
3517
|
+
tabindex: number | undefined;
|
|
3518
|
+
/**
|
|
3519
|
+
* Read-only mode: prevents user interaction while still allowing focus.
|
|
3520
|
+
* @remarks Value is transformed via `booleanAttribute`.
|
|
3521
|
+
*/
|
|
3522
|
+
readonly: boolean | undefined;
|
|
3523
|
+
/**
|
|
3524
|
+
* Host click handler.
|
|
3525
|
+
*
|
|
3526
|
+
* @param event Browser `MouseEvent`.
|
|
3527
|
+
* @remarks Delegates to {@link _handleClick}.
|
|
3528
|
+
* @internal
|
|
3529
|
+
*/
|
|
3530
|
+
onHostClick(event: MouseEvent): void;
|
|
3531
|
+
/**
|
|
3532
|
+
* Emits when the user toggles the switch via UI interaction.
|
|
3533
|
+
*
|
|
3534
|
+
* @example
|
|
3535
|
+
* ```html
|
|
3536
|
+
* <md-switch (onChange)="handleChange($event)"></md-switch>
|
|
3537
|
+
* ```
|
|
3538
|
+
*/
|
|
3539
|
+
onChange: EventEmitter<ToggleSwitchChangeEvent>;
|
|
3540
|
+
/**
|
|
3541
|
+
* Template reference to the internal input element (for focus management).
|
|
3542
|
+
* @internal
|
|
3543
|
+
*/
|
|
3544
|
+
input: ElementRef;
|
|
3545
|
+
/**
|
|
3546
|
+
* Focus ring helper for template/styles.
|
|
3547
|
+
* @internal
|
|
3548
|
+
*/
|
|
3549
|
+
focused: boolean;
|
|
3550
|
+
constructor();
|
|
3551
|
+
/** Lifecycle: initialization (reserved for future use). */
|
|
3552
|
+
ngOnInit(): void;
|
|
3553
|
+
/**
|
|
3554
|
+
* Synchronous validator hook (provided via `NG_VALIDATORS`).
|
|
3555
|
+
* @remarks Currently a stub.
|
|
3556
|
+
*/
|
|
3557
|
+
validate(): void;
|
|
3558
|
+
/** Lifecycle: teardown (reserved for future use). */
|
|
3559
|
+
ngOnDestroy(): void;
|
|
3560
|
+
/**
|
|
3561
|
+
* ControlValueAccessor: write an external value into the component.
|
|
3562
|
+
*
|
|
3563
|
+
* @param value Value coming from the form model.
|
|
3564
|
+
* @param setModelValue Callback to update the base class model value.
|
|
3565
|
+
* @remarks Calls `markForCheck` to ensure change detection runs.
|
|
3566
|
+
*/
|
|
3567
|
+
writeControlValue(value: any, setModelValue: (value: any) => void): void;
|
|
3568
|
+
/** Focus-in handler (called from the template). */
|
|
3569
|
+
onFocus(): void;
|
|
3570
|
+
/**
|
|
3571
|
+
* Focus-out handler (called from the template).
|
|
3572
|
+
* @remarks Triggers `onModelTouched()` for forms.
|
|
3573
|
+
*/
|
|
3574
|
+
onBlur(): void;
|
|
3575
|
+
/**
|
|
3576
|
+
* Centralized click logic:
|
|
3577
|
+
* - toggles the model via `BaseEditableHolder`;
|
|
3578
|
+
* - calls `onModelChange()` for the form;
|
|
3579
|
+
* - emits {@link onChange} with details;
|
|
3580
|
+
* - returns focus to the input for accessible keyboard flow.
|
|
3581
|
+
*
|
|
3582
|
+
* @param event Original browser `Event`.
|
|
3583
|
+
* @internal
|
|
3584
|
+
*/
|
|
3585
|
+
_handleClick(event: Event): void;
|
|
3586
|
+
/**
|
|
3587
|
+
* Convenience getter for host class binding.
|
|
3588
|
+
* @returns Current checked state.
|
|
3589
|
+
*/
|
|
3590
|
+
checked(): any;
|
|
3591
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDSwitch, never>;
|
|
3592
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDSwitch, "md-switch", never, { "id": { "alias": "id"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
3593
|
+
static ngAcceptInputType_tabindex: unknown;
|
|
3594
|
+
static ngAcceptInputType_readonly: unknown;
|
|
3595
|
+
}
|
|
3596
|
+
/**
|
|
3597
|
+
* Event emitted by {@link MDSwitch} on user-initiated change.
|
|
3598
|
+
*/
|
|
3599
|
+
interface ToggleSwitchChangeEvent {
|
|
3600
|
+
/** Original browser event. */
|
|
3601
|
+
originalEvent: Event;
|
|
3602
|
+
/** New checked state. */
|
|
3603
|
+
checked: boolean;
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3606
|
+
declare class MDSwitchModule {
|
|
3607
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDSwitchModule, never>;
|
|
3608
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MDSwitchModule, [typeof MDSwitch], [typeof i2.CommonModule], [typeof MDSwitch]>;
|
|
3609
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MDSwitchModule>;
|
|
3610
|
+
}
|
|
3611
|
+
|
|
3612
|
+
/** Direction to scroll the header when paginating. */
|
|
3613
|
+
type ScrollDirection = 'after' | 'before';
|
|
3614
|
+
/**
|
|
3615
|
+
* Contract for focusable tab header items used by the header.
|
|
3616
|
+
* Must expose an `elementRef` for measurement/positioning.
|
|
3617
|
+
*/
|
|
3618
|
+
type PaginatedTabHeaderItem = FocusableOption & {
|
|
3619
|
+
elementRef: ElementRef;
|
|
3620
|
+
};
|
|
3621
|
+
declare abstract class PaginatedTabHeader implements AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy {
|
|
3622
|
+
/** Root host element (the header wrapper). */
|
|
3623
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
3624
|
+
/** For OnPush marking when values change. */
|
|
3625
|
+
protected _changeDetectorRef: ChangeDetectorRef;
|
|
3626
|
+
/** Viewport ruler for resize/scrollbar metrics. */
|
|
3627
|
+
private _viewportRuler;
|
|
3628
|
+
/** Optional RTL service to flip layout. */
|
|
3629
|
+
private _dir;
|
|
3630
|
+
/** For running timers/listeners outside Angular. */
|
|
3631
|
+
private _ngZone;
|
|
3632
|
+
/** Platform detection (legacy engines). */
|
|
3633
|
+
private _platform;
|
|
3634
|
+
/** Efficient ResizeObserver sharing. */
|
|
3635
|
+
private _sharedResizeObserver;
|
|
3636
|
+
/** Injector for `afterNextRender` scheduling. */
|
|
3637
|
+
private _injector;
|
|
3638
|
+
/** Renderer for native event listeners & styles. */
|
|
3639
|
+
private _renderer;
|
|
3640
|
+
/** Cleanup callbacks for host-level listeners. */
|
|
3641
|
+
private _eventCleanups;
|
|
3642
|
+
/** List of focusable items (tab labels). */
|
|
3643
|
+
abstract _items: QueryList<PaginatedTabHeaderItem>;
|
|
3644
|
+
/** Ink bar API for alignment/hide. */
|
|
3645
|
+
abstract _inkBar: {
|
|
3646
|
+
hide: () => void;
|
|
3647
|
+
alignToElement: (element: HTMLElement) => void;
|
|
3648
|
+
};
|
|
3649
|
+
/** Container that clips the scrollable tab list. */
|
|
3650
|
+
abstract _tabListContainer: ElementRef<HTMLElement>;
|
|
3651
|
+
/** The horizontally translated list element. */
|
|
3652
|
+
abstract _tabList: ElementRef<HTMLElement>;
|
|
3653
|
+
/** Inner list wrapper used for measurements. */
|
|
3654
|
+
abstract _tabListInner: ElementRef<HTMLElement>;
|
|
3655
|
+
/** Next paginator button element. */
|
|
3656
|
+
abstract _nextPaginator: ElementRef<HTMLElement>;
|
|
3657
|
+
/** Previous paginator button element. */
|
|
3658
|
+
abstract _previousPaginator: ElementRef<HTMLElement>;
|
|
3659
|
+
/** Current horizontal scroll translation in px (LTR positive moves content left). */
|
|
3660
|
+
private _scrollDistance;
|
|
3661
|
+
/** Flag to know when selectedIndex changed between content checks. */
|
|
3662
|
+
private _selectedIndexChanged;
|
|
3663
|
+
/** Teardown notifier for streams. */
|
|
3664
|
+
protected readonly _destroyed: Subject<void>;
|
|
3665
|
+
/** Whether to render/show pagination controls. */
|
|
3666
|
+
_showPaginationControls: boolean;
|
|
3667
|
+
/** Disable "scroll after" paginator. */
|
|
3668
|
+
_disableScrollAfter: boolean;
|
|
3669
|
+
/** Disable "scroll before" paginator. */
|
|
3670
|
+
_disableScrollBefore: boolean;
|
|
3671
|
+
/** Cached count of tab labels to detect additions/removals. */
|
|
3672
|
+
private _tabLabelCount;
|
|
3673
|
+
/** Marker to apply pending scroll distance change to DOM. */
|
|
3674
|
+
private _scrollDistanceChanged;
|
|
3675
|
+
/** Keyboard manager for roving focus. */
|
|
3676
|
+
protected _keyManager: FocusKeyManager<PaginatedTabHeaderItem> | undefined;
|
|
3677
|
+
/** Used to detect text-content changes affecting layout. */
|
|
3678
|
+
private _currentTextContent;
|
|
3679
|
+
/** Emits when auto-scrolling should stop (mouseleave or end). */
|
|
3680
|
+
private _stopScrolling;
|
|
3681
|
+
hideInkBar: boolean;
|
|
3682
|
+
/**
|
|
3683
|
+
* Disable pagination and force-fit all tabs (no scroll).
|
|
3684
|
+
* @default false
|
|
3685
|
+
*/
|
|
3686
|
+
disablePagination: boolean;
|
|
3687
|
+
/**
|
|
3688
|
+
* Currently selected tab index (drives ink bar & scroll-to-visible).
|
|
3689
|
+
*/
|
|
3690
|
+
get selectedIndex(): number;
|
|
3691
|
+
set selectedIndex(v: number);
|
|
3692
|
+
private _selectedIndex;
|
|
3693
|
+
/**
|
|
3694
|
+
* Emits requested selection when user presses Enter/Space on a focused tab.
|
|
3695
|
+
* Consumers typically update `selectedIndex` in response.
|
|
3696
|
+
*/
|
|
3697
|
+
readonly selectFocusedIndex: EventEmitter<number>;
|
|
3698
|
+
/** Emits when focus moves to a different tab header item. */
|
|
3699
|
+
readonly indexFocused: EventEmitter<number>;
|
|
3700
|
+
constructor();
|
|
3701
|
+
/**
|
|
3702
|
+
* Subclass must implement: what happens when user "selects"
|
|
3703
|
+
* the focused item via keyboard (Enter/Space).
|
|
3704
|
+
*/
|
|
3705
|
+
protected abstract _itemSelected(event: KeyboardEvent): void;
|
|
3706
|
+
/** Lifecycle: attach touch handlers for press-and-hold scrolling. */
|
|
3707
|
+
ngAfterViewInit(): void;
|
|
3708
|
+
/** Lifecycle: set up keyboard manager, observers and initial alignment. */
|
|
3709
|
+
ngAfterContentInit(): void;
|
|
3710
|
+
/**
|
|
3711
|
+
* Observe when any header item has (re)measured to a non-zero size.
|
|
3712
|
+
* Helps re-evaluate pagination after lazy content/label changes.
|
|
3713
|
+
*/
|
|
3714
|
+
private _itemsResized;
|
|
3715
|
+
/** Lifecycle: react to item count/selection/scroll changes and flush DOM updates. */
|
|
3716
|
+
ngAfterContentChecked(): void;
|
|
3717
|
+
/** Lifecycle: teardown listeners/streams. */
|
|
3718
|
+
ngOnDestroy(): void;
|
|
3719
|
+
/**
|
|
3720
|
+
* Handle keydown on the header container.
|
|
3721
|
+
* Space/Enter select the focused tab; arrows/home/end are delegated to the key manager.
|
|
3722
|
+
*/
|
|
3723
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
3724
|
+
/** Called when projected content text changes may affect layout/widths. */
|
|
3725
|
+
_onContentChanges(): void;
|
|
3726
|
+
/** Recompute pagination state and apply current scroll position. */
|
|
3727
|
+
updatePagination(): void;
|
|
3728
|
+
/** Index of the currently focused item in the key manager. */
|
|
3729
|
+
get focusIndex(): number;
|
|
3730
|
+
set focusIndex(value: number);
|
|
3731
|
+
/** Returns whether the given index is valid for the items list. */
|
|
3732
|
+
_isValidIndex(index: number): boolean;
|
|
3733
|
+
/**
|
|
3734
|
+
* Moves focus to a given tab and ensures it is visible within the scroll container.
|
|
3735
|
+
* Also snaps container scroll to an edge (LTR/RTL) to avoid native scroll drift.
|
|
3736
|
+
*/
|
|
3737
|
+
_setTabFocus(tabIndex: number): void;
|
|
3738
|
+
/** Current layout direction derived from `Directionality`. */
|
|
3739
|
+
_getLayoutDirection(): Direction;
|
|
3740
|
+
/** Applies the current scroll transform to the tab list element. */
|
|
3741
|
+
_updateTabScrollPosition(): void;
|
|
3742
|
+
/** Current scroll distance (px). Setting it clamps to valid range and flags for DOM update. */
|
|
3743
|
+
get scrollDistance(): number;
|
|
3744
|
+
set scrollDistance(value: number);
|
|
3745
|
+
/** Scrolls the header by one third of the visible width in the given direction. */
|
|
3746
|
+
_scrollHeader(direction: ScrollDirection): {
|
|
3747
|
+
maxScrollDistance: number;
|
|
3748
|
+
distance: number;
|
|
3749
|
+
};
|
|
3750
|
+
/** Single-click paginator handler. */
|
|
3751
|
+
_handlePaginatorClick(direction: ScrollDirection): void;
|
|
3752
|
+
/**
|
|
3753
|
+
* Ensures the tab at `labelIndex` is fully visible within the scroll range.
|
|
3754
|
+
* Adjusts `scrollDistance` as needed based on LTR/RTL calculations.
|
|
3755
|
+
*/
|
|
3756
|
+
_scrollToLabel(labelIndex: number): void;
|
|
3757
|
+
/** Evaluates whether pagination controls should be shown based on content width. */
|
|
3758
|
+
_checkPaginationEnabled(): void;
|
|
3759
|
+
/** Enables/disables paginator buttons based on current scroll position. */
|
|
3760
|
+
_checkScrollingControls(): void;
|
|
3761
|
+
/** Maximum scrollable distance of the tab list (px). */
|
|
3762
|
+
_getMaxScrollDistance(): number;
|
|
3763
|
+
/** Aligns the ink bar to the selected tab or hides it if no selection. */
|
|
3764
|
+
_alignInkBarToSelectedTab(): void;
|
|
3765
|
+
/** Stops any ongoing auto-scroll interval. */
|
|
3766
|
+
_stopInterval(): void;
|
|
3767
|
+
/**
|
|
3768
|
+
* Handles press-and-hold on a paginator button for continuous scrolling.
|
|
3769
|
+
* Uses a delay before repeating to avoid accidental long-press.
|
|
3770
|
+
*/
|
|
3771
|
+
_handlePaginatorPress(direction: ScrollDirection, mouseEvent?: MouseEvent): void;
|
|
3772
|
+
/**
|
|
3773
|
+
* Clamps and applies a new scroll position.
|
|
3774
|
+
* @returns The max scroll distance and the clamped distance for convenience.
|
|
3775
|
+
*/
|
|
3776
|
+
private _scrollTo;
|
|
3777
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatedTabHeader, never>;
|
|
3778
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginatedTabHeader, never, never, { "hideInkBar": { "alias": "hideInkBar"; "required": false; }; "disablePagination": { "alias": "disablePagination"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; }, { "selectFocusedIndex": "selectFocusedIndex"; "indexFocused": "indexFocused"; }, never, never, true, never>;
|
|
3779
|
+
static ngAcceptInputType_disablePagination: unknown;
|
|
3780
|
+
static ngAcceptInputType_selectedIndex: unknown;
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3783
|
+
declare class TabBodyPortal extends CdkPortalOutlet implements OnInit, OnDestroy {
|
|
3784
|
+
/** The owning tab body that drives attach/detach. */
|
|
3785
|
+
private _host;
|
|
3786
|
+
/** Subscription to the "before centering" notifier. */
|
|
3787
|
+
private _centeringSub;
|
|
3788
|
+
/** Subscription to the "after leaving center" notifier. */
|
|
3789
|
+
private _leavingSub;
|
|
3790
|
+
constructor();
|
|
3791
|
+
/** Wires up listeners to mount/unmount the portal at the right lifecycle moments. */
|
|
3792
|
+
ngOnInit(): void;
|
|
3793
|
+
/** Cleans up subscriptions and outlet resources. */
|
|
3794
|
+
ngOnDestroy(): void;
|
|
3795
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabBodyPortal, never>;
|
|
3796
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabBodyPortal, "[mdTabBodyHost]", never, {}, {}, never, never, true, never>;
|
|
3797
|
+
}
|
|
3798
|
+
/** Position of a tab body relative to the active (center) body. */
|
|
3799
|
+
type TabBodyPositionState = 'left' | 'center' | 'right';
|
|
3800
|
+
/** Direction from which the tab body originated (reserved for animations). */
|
|
3801
|
+
type TabBodyOriginState = 'left' | 'right';
|
|
3802
|
+
declare class MDTabBody implements OnInit, OnDestroy {
|
|
3803
|
+
/** Host element reference for class toggles and measurement. */
|
|
3804
|
+
private _elementRef;
|
|
3805
|
+
/** Optional bidi service to map positions in RTL. */
|
|
3806
|
+
private _dir;
|
|
3807
|
+
/** For scheduling and transition fallback timers. */
|
|
3808
|
+
private _ngZone;
|
|
3809
|
+
/** Injector used by `afterNextRender` callbacks. */
|
|
3810
|
+
private _injector;
|
|
3811
|
+
/** Renderer for passive DOM event bindings (transition events). */
|
|
3812
|
+
private _renderer;
|
|
3813
|
+
/** Stored cleanup callbacks for event listeners. */
|
|
3814
|
+
private _eventCleanups?;
|
|
3815
|
+
/** Whether OnInit finished; used to guard transition fallbacks. */
|
|
3816
|
+
private _initialized;
|
|
3817
|
+
/** Fallback timer to simulate transitions if needed. */
|
|
3818
|
+
private _fallbackTimer;
|
|
3819
|
+
/** Relative position index provided by parent: -1, 0, +1, ... */
|
|
3820
|
+
private _positionIndex;
|
|
3821
|
+
/** Directionality subscription to recompute when RTL changes. */
|
|
3822
|
+
private _dirChangeSubscription;
|
|
3823
|
+
/** Current position state ('left' | 'center' | 'right'). */
|
|
3824
|
+
_position: TabBodyPositionState;
|
|
3825
|
+
/** Previous position state to know if we're entering/leaving center. */
|
|
3826
|
+
protected _previousPosition: TabBodyPositionState;
|
|
3827
|
+
/**
|
|
3828
|
+
* Emits the tab body's `clientHeight` when starting to center.
|
|
3829
|
+
* Useful for parent to resize the container.
|
|
3830
|
+
*/
|
|
3831
|
+
readonly _onCentering: EventEmitter<number>;
|
|
3832
|
+
/** Indicates whether we're about to center (`true`) or not (`false`). */
|
|
3833
|
+
readonly _beforeCentering: EventEmitter<boolean>;
|
|
3834
|
+
/** Fires after we've left the center position. */
|
|
3835
|
+
readonly _afterLeavingCenter: EventEmitter<void>;
|
|
3836
|
+
/** Emits when the body has finished centering transition. */
|
|
3837
|
+
readonly _onCentered: EventEmitter<void>;
|
|
3838
|
+
/** Outlet that actually attaches/detaches the `TemplatePortal`. */
|
|
3839
|
+
_portalHost: TabBodyPortal;
|
|
3840
|
+
/** Reference to the element with the transition (the inner content). */
|
|
3841
|
+
_contentElement: ElementRef<HTMLElement> | undefined;
|
|
3842
|
+
/** The content portal to render for this tab body. */
|
|
3843
|
+
_content: TemplatePortal;
|
|
3844
|
+
/** Duration of CSS transitions (e.g., `"500ms"`, `"0ms"`). */
|
|
3845
|
+
animationDuration: string;
|
|
3846
|
+
/** Whether to leave the content attached when not centered. */
|
|
3847
|
+
preserveContent: boolean;
|
|
3848
|
+
/**
|
|
3849
|
+
* Relative position index set by parent (negative = left, 0 = center, positive = right).
|
|
3850
|
+
* This setter maps index → position state considering layout direction (LTR/RTL).
|
|
3851
|
+
*/
|
|
3852
|
+
set position(position: number);
|
|
3853
|
+
constructor();
|
|
3854
|
+
/**
|
|
3855
|
+
* Binds transition listeners and emits initial centering height if already centered.
|
|
3856
|
+
* Lifecycle: `OnInit`.
|
|
3857
|
+
*/
|
|
3858
|
+
ngOnInit(): void;
|
|
3859
|
+
/** Removes listeners, timers, and subscriptions. */
|
|
3860
|
+
ngOnDestroy(): void;
|
|
3861
|
+
/**
|
|
3862
|
+
* Attaches listeners for CSS transition lifecycle.
|
|
3863
|
+
* These run outside Angular to avoid change detection storms.
|
|
3864
|
+
*/
|
|
3865
|
+
private _bindTransitionEvents;
|
|
3866
|
+
/**
|
|
3867
|
+
* Called when a transition starts; emits sizing and "beforeCentering" status.
|
|
3868
|
+
* Triggers `_onCentering` when entering the center position.
|
|
3869
|
+
*/
|
|
3870
|
+
private _transitionStarted;
|
|
3871
|
+
/**
|
|
3872
|
+
* Called when a transition completes; emits `_onCentered` or `_afterLeavingCenter`
|
|
3873
|
+
* depending on the current/previous positions.
|
|
3874
|
+
*/
|
|
3875
|
+
private _transitionDone;
|
|
3876
|
+
/**
|
|
3877
|
+
* Toggles the active CSS class for the currently selected tab body.
|
|
3878
|
+
* @param isActive Whether this body is currently active (centered).
|
|
3879
|
+
*/
|
|
3880
|
+
_setActiveClass(isActive: boolean): void;
|
|
3881
|
+
/** Resolves current layout direction (LTR/RTL). */
|
|
3882
|
+
_getLayoutDirection(): Direction;
|
|
3883
|
+
/** True when this body is the centered (active) one. */
|
|
3884
|
+
_isCenterPosition(): boolean;
|
|
3885
|
+
/**
|
|
3886
|
+
* Maps the numeric index to a semantic position state and handles fallback simulation
|
|
3887
|
+
* in cases where animations are disabled or the transition might not fire.
|
|
3888
|
+
*
|
|
3889
|
+
* @param dir Optional direction override; defaults to current {@link Directionality}.
|
|
3890
|
+
*/
|
|
3891
|
+
private _computePositionAnimationState;
|
|
3892
|
+
/** Fires synthetic transitionstart/transitionend callbacks in sequence. */
|
|
3893
|
+
private _simulateTransitionEvents;
|
|
3894
|
+
/** Whether animations are effectively disabled by config. */
|
|
3895
|
+
private _animationsDisabled;
|
|
3896
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDTabBody, never>;
|
|
3897
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDTabBody, "md-tab-body", never, { "_content": { "alias": "content"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "preserveContent": { "alias": "preserveContent"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, { "_onCentering": "_onCentering"; "_beforeCentering": "_beforeCentering"; "_onCentered": "_onCentered"; }, never, never, true, never>;
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
/**
|
|
3901
|
+
* Configuration options for the Tabs module.
|
|
3902
|
+
*
|
|
3903
|
+
* @remarks
|
|
3904
|
+
* Provide this via the {@link TABS_CONFIG} injection token at the app or feature level.
|
|
3905
|
+
* Each field is optional; omit to use component defaults.
|
|
3906
|
+
*
|
|
3907
|
+
* @example Provide defaults app-wide
|
|
3908
|
+
* ```ts
|
|
3909
|
+
* bootstrapApplication(AppComponent, {
|
|
3910
|
+
* providers: [
|
|
3911
|
+
* { provide: TABS_CONFIG, useValue: {
|
|
3912
|
+
* animationDuration: '250ms',
|
|
3913
|
+
* fitInkBarToContent: true,
|
|
3914
|
+
* alignTabs: 'center'
|
|
3915
|
+
* } as TabsConfig }
|
|
3916
|
+
* ]
|
|
3917
|
+
* });
|
|
3918
|
+
* ```
|
|
3919
|
+
*/
|
|
3920
|
+
interface TabsConfig {
|
|
3921
|
+
/**
|
|
3922
|
+
* Duration of tab header/ink bar animations.
|
|
3923
|
+
* @example "200ms", "300ms ease-out"
|
|
3924
|
+
*/
|
|
3925
|
+
animationDuration?: string;
|
|
3926
|
+
/**
|
|
3927
|
+
* Disables header pagination arrows when there are many tabs.
|
|
3928
|
+
* If `true`, all tabs must fit without scrolling.
|
|
3929
|
+
* @default false
|
|
3930
|
+
*/
|
|
3931
|
+
disablePagination?: boolean;
|
|
3932
|
+
/**
|
|
3933
|
+
* If `true`, ink bar width matches the label content rather than the full tab.
|
|
3934
|
+
* @default false
|
|
3935
|
+
*/
|
|
3936
|
+
fitInkBarToContent?: boolean;
|
|
3937
|
+
/**
|
|
3938
|
+
* Automatically resizes the tab-body container to match the active tab's height.
|
|
3939
|
+
* @default false
|
|
3940
|
+
*/
|
|
3941
|
+
dynamicHeight?: boolean;
|
|
3942
|
+
/**
|
|
3943
|
+
* `tabindex` applied to the tab body content container for accessibility.
|
|
3944
|
+
* @default 0
|
|
3945
|
+
*/
|
|
3946
|
+
contentTabIndex?: number;
|
|
3947
|
+
/**
|
|
3948
|
+
* Preserves inactive tab contents in the DOM instead of destroying them.
|
|
3949
|
+
* Useful for keeping component state or form controls alive.
|
|
3950
|
+
* @default false
|
|
3951
|
+
*/
|
|
3952
|
+
preserveContent?: boolean;
|
|
3953
|
+
/**
|
|
3954
|
+
* Stretches tabs to evenly fill the header width.
|
|
3955
|
+
* @default false
|
|
3956
|
+
*/
|
|
3957
|
+
stretchTabs?: boolean;
|
|
3958
|
+
/**
|
|
3959
|
+
* Horizontal alignment of tab labels in the header.
|
|
3960
|
+
* @default 'start'
|
|
3961
|
+
*/
|
|
3962
|
+
alignTabs?: 'start' | 'center' | 'end';
|
|
3963
|
+
}
|
|
3964
|
+
/**
|
|
3965
|
+
* Injection token for providing {@link TabsConfig} defaults.
|
|
3966
|
+
*
|
|
3967
|
+
* @example Feature-level override
|
|
3968
|
+
* ```ts
|
|
3969
|
+
* @NgModule({
|
|
3970
|
+
* providers: [{ provide: TABS_CONFIG, useValue: { stretchTabs: true } }]
|
|
3971
|
+
* })
|
|
3972
|
+
* export class TabsFeatureModule {}
|
|
3973
|
+
* ```
|
|
3974
|
+
*
|
|
3975
|
+
* @example Injecting the config
|
|
3976
|
+
* ```ts
|
|
3977
|
+
* @Component({...})
|
|
3978
|
+
* export class TabsHeaderComponent {
|
|
3979
|
+
* constructor(@Inject(TABS_CONFIG) readonly cfg: TabsConfig) {}
|
|
3980
|
+
* }
|
|
3981
|
+
* ```
|
|
3982
|
+
*/
|
|
3983
|
+
declare const TABS_CONFIG: InjectionToken<TabsConfig>;
|
|
3984
|
+
|
|
3985
|
+
declare const TAB_CONTENT: InjectionToken<MDTabContent>;
|
|
3986
|
+
declare class MDTabContent {
|
|
3987
|
+
template: TemplateRef<any>;
|
|
3988
|
+
constructor();
|
|
3989
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDTabContent, never>;
|
|
3990
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDTabContent, "[mdTabContent]", never, {}, {}, never, never, true, never>;
|
|
3991
|
+
}
|
|
3992
|
+
|
|
3993
|
+
/**
|
|
3994
|
+
* Injection token bound to the current {@link MDTabLabel} instance.
|
|
3995
|
+
* Useful for querying/injecting the label from descendants.
|
|
3996
|
+
*/
|
|
3997
|
+
declare const MD_TAB_LABEL: InjectionToken<MDTabLabel>;
|
|
3998
|
+
/** Token representing the closest parent Tab instance (provided by the Tab). */
|
|
3999
|
+
declare const MD_TAB: InjectionToken<any>;
|
|
4000
|
+
declare class MDTabLabel extends CdkPortal {
|
|
4001
|
+
/**
|
|
4002
|
+
* Reference to the nearest parent tab instance if provided via {@link MD_TAB}.
|
|
4003
|
+
* `undefined` when used outside of a tab context.
|
|
4004
|
+
*/
|
|
4005
|
+
_closestTab: any;
|
|
4006
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDTabLabel, never>;
|
|
4007
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDTabLabel, "[md-tab-label], [mdTabLabel]", never, {}, {}, never, never, true, never>;
|
|
4008
|
+
}
|
|
4009
|
+
|
|
4010
|
+
/** Injection token for the closest parent tab-group (provided by the group). */
|
|
4011
|
+
declare const TAB_GROUP: InjectionToken<any>;
|
|
4012
|
+
declare class MDTab {
|
|
4013
|
+
/** View container used as the portal outlet context for tab content. */
|
|
4014
|
+
private _viewContainerRef;
|
|
4015
|
+
/** Optional reference to the closest parent tab group (for coordination). */
|
|
4016
|
+
_closestTabGroup: any;
|
|
4017
|
+
/**
|
|
4018
|
+
* Disables this tab.
|
|
4019
|
+
* Header becomes non-interactive and body is not focusable.
|
|
4020
|
+
* @default false
|
|
4021
|
+
*/
|
|
4022
|
+
disabled: boolean;
|
|
4023
|
+
/**
|
|
4024
|
+
* Explicit tab body provided via `<ng-template md-tab-content>`.
|
|
4025
|
+
* If absent, the component's own template (implicit content) is used.
|
|
4026
|
+
*/
|
|
4027
|
+
private _explicitContent;
|
|
4028
|
+
/** Implicit content template captured from the component template. */
|
|
4029
|
+
_implicitContent: TemplateRef<any>;
|
|
4030
|
+
/** Plain text label for the tab header (alternative to template label). */
|
|
4031
|
+
textLabel: string;
|
|
4032
|
+
/** Accessible label for the tab header element. */
|
|
4033
|
+
ariaLabel: string;
|
|
4034
|
+
/** Id of element that labels the tab header (for a11y). */
|
|
4035
|
+
ariaLabelledby: string;
|
|
4036
|
+
/** Additional CSS class(es) applied to the label host. */
|
|
4037
|
+
labelClass: string | string[];
|
|
4038
|
+
/** Additional CSS class(es) applied to the body/content host. */
|
|
4039
|
+
bodyClass: string | string[];
|
|
4040
|
+
/** Optional id for this tab; can be used for linking and testing. */
|
|
4041
|
+
id: string | null;
|
|
4042
|
+
/**
|
|
4043
|
+
* Custom label template projected via `<ng-template md-tab-label>`.
|
|
4044
|
+
* Setter ensures the template belongs to this tab instance.
|
|
4045
|
+
*/
|
|
4046
|
+
get templateLabel(): MDTabLabel;
|
|
4047
|
+
set templateLabel(value: MDTabLabel);
|
|
4048
|
+
private _templateLabel;
|
|
4049
|
+
/** Lazily-created portal wrapping either explicit or implicit content. */
|
|
4050
|
+
private _contentPortal;
|
|
4051
|
+
/** Public getter for the content portal (used by parent tab group). */
|
|
4052
|
+
get content(): TemplatePortal | null;
|
|
4053
|
+
/** Notifies parent/consumers that an input affecting rendering has changed. */
|
|
4054
|
+
readonly _stateChanges: Subject<void>;
|
|
4055
|
+
/** Position relative to the active tab (used for ink bar/animations). */
|
|
4056
|
+
position: number | null;
|
|
4057
|
+
/** Index from which this tab originated during a transition. */
|
|
4058
|
+
origin: number | null;
|
|
4059
|
+
/** Whether this tab is currently the active/selected one. */
|
|
4060
|
+
isActive: boolean;
|
|
4061
|
+
constructor();
|
|
4062
|
+
/** Emits `stateChanges` when key inputs mutate. */
|
|
4063
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
4064
|
+
/** Completes internal subject to avoid leaks. */
|
|
4065
|
+
ngOnDestroy(): void;
|
|
4066
|
+
/** Initializes the content portal using explicit or implicit template. */
|
|
4067
|
+
ngOnInit(): void;
|
|
4068
|
+
/** Accepts a label template only if it belongs to this `MDTab` instance. */
|
|
4069
|
+
private _setTemplateLabelInput;
|
|
4070
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDTab, never>;
|
|
4071
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDTab, "md-tab", never, { "disabled": { "alias": "disabled"; "required": false; }; "textLabel": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "bodyClass": { "alias": "bodyClass"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, ["_explicitContent", "templateLabel"], ["*"], true, never>;
|
|
4072
|
+
static ngAcceptInputType_disabled: unknown;
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4075
|
+
/**
|
|
4076
|
+
* Contract that an item must implement to participate in ink-bar activation.
|
|
4077
|
+
* Typically implemented by tab header items.
|
|
4078
|
+
*/
|
|
4079
|
+
interface InkBarItemContract extends OnInit, OnDestroy {
|
|
4080
|
+
/** Reference to the host element used for positioning and class toggles. */
|
|
4081
|
+
elementRef: ElementRef<HTMLElement>;
|
|
4082
|
+
/**
|
|
4083
|
+
* Activates the ink bar on this item, optionally animating from the
|
|
4084
|
+
* previous indicator's client rect (for smooth transitions).
|
|
4085
|
+
*/
|
|
4086
|
+
activateInkBar(previousIndicatorClientRect?: DOMRect): void;
|
|
4087
|
+
/** Deactivates the ink bar on this item. */
|
|
4088
|
+
deactivateInkBar(): void;
|
|
4089
|
+
/** Whether the ink bar should fit the label content rather than full width. */
|
|
4090
|
+
fitInkBarToContent: boolean;
|
|
4091
|
+
}
|
|
4092
|
+
/**
|
|
4093
|
+
* Controller for moving the ink bar between a set of items.
|
|
4094
|
+
* Keeps track of the currently active item and coordinates activation/deactivation.
|
|
4095
|
+
*/
|
|
4096
|
+
declare class InkBar {
|
|
4097
|
+
private _items;
|
|
4098
|
+
private _currentItem;
|
|
4099
|
+
/**
|
|
4100
|
+
* @param _items QueryList of items that can host the ink bar.
|
|
4101
|
+
*/
|
|
4102
|
+
constructor(_items: QueryList<InkBarItemContract>);
|
|
4103
|
+
/** Hides the ink bar and clears the current item reference. */
|
|
4104
|
+
hide(): void;
|
|
4105
|
+
/**
|
|
4106
|
+
* Aligns the ink bar to the given element, if there is a corresponding item.
|
|
4107
|
+
* Performs a smooth transition from the previously active item when possible.
|
|
4108
|
+
*
|
|
4109
|
+
* @param element Host element to align the ink bar with.
|
|
4110
|
+
*/
|
|
4111
|
+
alignToElement(element: HTMLElement): void;
|
|
4112
|
+
}
|
|
4113
|
+
/**
|
|
4114
|
+
* Abstract base for an element that can host an ink bar.
|
|
4115
|
+
* Responsible for creating/attaching the indicator DOM and handling transitions.
|
|
4116
|
+
*/
|
|
4117
|
+
declare abstract class InkBarItem implements OnInit, OnDestroy {
|
|
4118
|
+
/** Host element reference. */
|
|
4119
|
+
private _elementRef;
|
|
4120
|
+
/** Root element of the ink bar indicator. */
|
|
4121
|
+
private _inkBarElement;
|
|
4122
|
+
/** Inner content element of the ink bar (underline). */
|
|
4123
|
+
private _inkBarContentElement;
|
|
4124
|
+
/** Whether the ink bar attaches to content width instead of full host width. */
|
|
4125
|
+
private _fitToContent;
|
|
4126
|
+
/**
|
|
4127
|
+
* When `true`, append the ink bar inside `.mdc-tab__content` to fit label width,
|
|
4128
|
+
* otherwise append directly to the host for full-width underline.
|
|
4129
|
+
*/
|
|
4130
|
+
get fitInkBarToContent(): boolean;
|
|
4131
|
+
set fitInkBarToContent(newValue: boolean);
|
|
4132
|
+
/**
|
|
4133
|
+
* Activates the ink bar and, if `previousIndicatorClientRect` is provided,
|
|
4134
|
+
* animates from the previous position/width for a smooth transition.
|
|
4135
|
+
*/
|
|
4136
|
+
activateInkBar(previousIndicatorClientRect?: DOMRect): void;
|
|
4137
|
+
/** Deactivates the ink bar from this host item. */
|
|
4138
|
+
deactivateInkBar(): void;
|
|
4139
|
+
/** Lifecycle: create the indicator DOM on init. */
|
|
4140
|
+
ngOnInit(): void;
|
|
4141
|
+
/** Lifecycle: remove indicator DOM on destroy. */
|
|
4142
|
+
ngOnDestroy(): void;
|
|
4143
|
+
/** Creates the ink bar root and content elements and appends them. */
|
|
4144
|
+
private _createInkBarElement;
|
|
4145
|
+
/**
|
|
4146
|
+
* Appends the ink bar into the appropriate container depending on
|
|
4147
|
+
* {@link fitInkBarToContent} value.
|
|
4148
|
+
*/
|
|
4149
|
+
private _appendInkBarElement;
|
|
4150
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InkBarItem, never>;
|
|
4151
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InkBarItem, never, never, { "fitInkBarToContent": { "alias": "fitInkBarToContent"; "required": false; }; }, {}, never, never, true, never>;
|
|
4152
|
+
static ngAcceptInputType_fitInkBarToContent: unknown;
|
|
4153
|
+
}
|
|
4154
|
+
/**
|
|
4155
|
+
* Computes the left/width style values for positioning an ink bar
|
|
4156
|
+
* under the given element.
|
|
4157
|
+
*/
|
|
4158
|
+
interface _InkBarPositioner {
|
|
4159
|
+
/**
|
|
4160
|
+
* @param element Host element to measure.
|
|
4161
|
+
* @returns CSS `left` and `width` values (in pixels with `px` suffix).
|
|
4162
|
+
*/
|
|
4163
|
+
(element: HTMLElement): {
|
|
4164
|
+
left: string;
|
|
4165
|
+
width: string;
|
|
4166
|
+
};
|
|
4167
|
+
}
|
|
4168
|
+
/**
|
|
4169
|
+
* Factory returning a default ink bar positioner based on `offsetLeft/offsetWidth`.
|
|
4170
|
+
* Useful as the default strategy; can be overridden via DI.
|
|
4171
|
+
*/
|
|
4172
|
+
declare function INK_BAR_POSITIONER_FACTORY(): _InkBarPositioner;
|
|
4173
|
+
/**
|
|
4174
|
+
* Injection token for providing an ink bar positioner function.
|
|
4175
|
+
*
|
|
4176
|
+
* @example Override in a module
|
|
4177
|
+
* ```ts
|
|
4178
|
+
* providers: [
|
|
4179
|
+
* { provide: INK_BAR_POSITIONER, useFactory: myCustomPositionerFactory }
|
|
4180
|
+
* ]
|
|
4181
|
+
* ```
|
|
4182
|
+
*
|
|
4183
|
+
* @example Inject and use
|
|
4184
|
+
* ```ts
|
|
4185
|
+
* constructor(@Inject(INK_BAR_POSITIONER) private pos: _InkBarPositioner) {}
|
|
4186
|
+
* ```
|
|
4187
|
+
*/
|
|
4188
|
+
declare const INK_BAR_POSITIONER: InjectionToken<_InkBarPositioner>;
|
|
4189
|
+
|
|
4190
|
+
declare class MDTabLabelWrapper extends InkBarItem {
|
|
4191
|
+
/** Native element reference for focus & measurement. */
|
|
4192
|
+
elementRef: ElementRef<any>;
|
|
4193
|
+
/**
|
|
4194
|
+
* Disables the tab label (affects CSS and sets `aria-disabled`).
|
|
4195
|
+
* @default false
|
|
4196
|
+
*/
|
|
4197
|
+
disabled: boolean;
|
|
4198
|
+
/** Programmatically moves focus to the label element. */
|
|
4199
|
+
focus(): void;
|
|
4200
|
+
/** Horizontal offset used to position the ink bar. */
|
|
4201
|
+
getOffsetLeft(): number;
|
|
4202
|
+
/** Element width used to size the ink bar. */
|
|
4203
|
+
getOffsetWidth(): number;
|
|
4204
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDTabLabelWrapper, never>;
|
|
4205
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDTabLabelWrapper, "[mdTabLabelWrapper]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
4206
|
+
static ngAcceptInputType_disabled: unknown;
|
|
4207
|
+
}
|
|
4208
|
+
|
|
4209
|
+
declare class MDTabHeader extends PaginatedTabHeader implements AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy {
|
|
4210
|
+
/** All direct tab label wrappers (no deep descendants). */
|
|
4211
|
+
_items: QueryList<MDTabLabelWrapper>;
|
|
4212
|
+
/** Container element around the scrolling tab list (used for clipping/scroll). */
|
|
4213
|
+
_tabListContainer: ElementRef;
|
|
4214
|
+
/** The scrollable tab list element. */
|
|
4215
|
+
_tabList: ElementRef;
|
|
4216
|
+
/** Inner wrapper of the tab list (helps with measurements). */
|
|
4217
|
+
_tabListInner: ElementRef;
|
|
4218
|
+
/** Next-page paginator button element (when overflow occurs). */
|
|
4219
|
+
_nextPaginator: ElementRef<HTMLElement>;
|
|
4220
|
+
/** Previous-page paginator button element (when overflow occurs). */
|
|
4221
|
+
_previousPaginator: ElementRef<HTMLElement>;
|
|
4222
|
+
/** Ink bar instance responsible for active-underline positioning. */
|
|
4223
|
+
_inkBar: InkBar;
|
|
4224
|
+
/** Accessible name for the tablist region (if no external labelling). */
|
|
4225
|
+
ariaLabel: string;
|
|
4226
|
+
/** Id of element that labels this tablist for a11y. */
|
|
4227
|
+
ariaLabelledby: string;
|
|
4228
|
+
/**
|
|
4229
|
+
* After content is available, initialize the ink bar with current items
|
|
4230
|
+
* and let the base header wire scrolling/pagination behaviors.
|
|
4231
|
+
*/
|
|
4232
|
+
ngAfterContentInit(): void;
|
|
4233
|
+
/**
|
|
4234
|
+
* Keyboard selection handler at the header level.
|
|
4235
|
+
* Prevents default browser behavior; actual selection logic is handled
|
|
4236
|
+
* by the parent container or the base class.
|
|
4237
|
+
*/
|
|
4238
|
+
protected _itemSelected(event: KeyboardEvent): void;
|
|
4239
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDTabHeader, never>;
|
|
4240
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDTabHeader, "md-tab-header", never, { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; }, {}, ["_items"], ["*"], true, never>;
|
|
4241
|
+
}
|
|
4242
|
+
|
|
4243
|
+
/** Interface exposed by tab header implementations used by the group. */
|
|
4244
|
+
interface TabGroupBaseHeader {
|
|
4245
|
+
_alignInkBarToSelectedTab(): void;
|
|
4246
|
+
updatePagination(): void;
|
|
4247
|
+
focusIndex: number;
|
|
4248
|
+
}
|
|
4249
|
+
/** Where to render the tab header relative to the body. */
|
|
4250
|
+
type TabHeaderPosition = 'above' | 'below';
|
|
4251
|
+
declare class MDTabGroup implements AfterViewInit, AfterContentInit, AfterContentChecked, OnDestroy {
|
|
4252
|
+
/** Root element ref for size/host-class interactions. */
|
|
4253
|
+
readonly _elementRef: ElementRef<any>;
|
|
4254
|
+
private _changeDetectorRef;
|
|
4255
|
+
private _ngZone;
|
|
4256
|
+
/** Subscriptions to various tab/label/body change streams. */
|
|
4257
|
+
private _tabsSubscription;
|
|
4258
|
+
private _tabLabelSubscription;
|
|
4259
|
+
private _tabBodySubscription;
|
|
4260
|
+
/** All candidate tabs in content (including nested); filtered to own group below. */
|
|
4261
|
+
_allTabs: QueryList<MDTab>;
|
|
4262
|
+
/** Projected tab body components and wrapper/child references. */
|
|
4263
|
+
_tabBodies: QueryList<MDTabBody> | undefined;
|
|
4264
|
+
_tabBodyWrapper: ElementRef;
|
|
4265
|
+
_tabHeader: MDTabHeader;
|
|
4266
|
+
/** Tabs belonging to this group (excludes nested/foreign groups). */
|
|
4267
|
+
_tabs: QueryList<MDTab>;
|
|
4268
|
+
/** Next index requested by inputs/user actions; reconciled each content check. */
|
|
4269
|
+
private _indexToSelect;
|
|
4270
|
+
/** Last header-focused tab index (for roving tabindex). */
|
|
4271
|
+
private _lastFocusedTabIndex;
|
|
4272
|
+
/** Cached wrapper height for dynamicHeight animations. */
|
|
4273
|
+
private _tabBodyWrapperHeight;
|
|
4274
|
+
isLegacyMode: boolean;
|
|
4275
|
+
hideInkBar: boolean;
|
|
4276
|
+
/**
|
|
4277
|
+
* Fit ink bar width to the text content of the label rather than the full tab.
|
|
4278
|
+
* @default false
|
|
4279
|
+
*/
|
|
4280
|
+
get fitInkBarToContent(): boolean;
|
|
4281
|
+
set fitInkBarToContent(value: boolean);
|
|
4282
|
+
private _fitInkBarToContent;
|
|
4283
|
+
/**
|
|
4284
|
+
* Stretch tabs across the header row (attribute alias).
|
|
4285
|
+
* @alias stretch-tabs
|
|
4286
|
+
* @default true
|
|
4287
|
+
*/
|
|
4288
|
+
stretchTabs: boolean;
|
|
4289
|
+
/**
|
|
4290
|
+
* Alignment of tab headers: `'start' | 'center' | 'end'` (attribute alias).
|
|
4291
|
+
* @alias align-tabs
|
|
4292
|
+
* @default null (use header default)
|
|
4293
|
+
*/
|
|
4294
|
+
alignTabs: string | null;
|
|
4295
|
+
/** Animate container height to fit active body. @default false */
|
|
4296
|
+
dynamicHeight: boolean;
|
|
4297
|
+
/**
|
|
4298
|
+
* Two-way bound selected index.
|
|
4299
|
+
* @remarks Setter stores a pending request; actual selection happens during checks.
|
|
4300
|
+
*/
|
|
4301
|
+
get selectedIndex(): number | null;
|
|
4302
|
+
set selectedIndex(value: number);
|
|
4303
|
+
private _selectedIndex;
|
|
4304
|
+
/** Header position relative to body. @default 'above' */
|
|
4305
|
+
headerPosition: TabHeaderPosition;
|
|
4306
|
+
/**
|
|
4307
|
+
* Duration applied to transitions; accepts `'500ms'` or number (ms).
|
|
4308
|
+
* Numbers are normalized to `"Xms"`.
|
|
4309
|
+
* @default '500ms' (or DI default)
|
|
4310
|
+
*/
|
|
4311
|
+
get animationDuration(): string;
|
|
4312
|
+
set animationDuration(value: string | number);
|
|
4313
|
+
private _animationDuration;
|
|
4314
|
+
/**
|
|
4315
|
+
* `tabindex` for the active tab content container.
|
|
4316
|
+
* @default null (browser default)
|
|
4317
|
+
*/
|
|
4318
|
+
get contentTabIndex(): number | null;
|
|
4319
|
+
set contentTabIndex(value: number);
|
|
4320
|
+
private _contentTabIndex;
|
|
4321
|
+
/** Disable header pagination controls and related layout. @default false */
|
|
4322
|
+
disablePagination: boolean;
|
|
4323
|
+
/** Reserved flag for ripple styling/integration. @default false */
|
|
4324
|
+
disableRipple: boolean;
|
|
4325
|
+
/** Keep inactive tab bodies attached in the DOM. @default false */
|
|
4326
|
+
preserveContent: boolean;
|
|
4327
|
+
/** A11y labeling for the tablist region. */
|
|
4328
|
+
ariaLabel: string;
|
|
4329
|
+
ariaLabelledby: string;
|
|
4330
|
+
/** Emits when selected index changes (two-way binding helper). */
|
|
4331
|
+
readonly selectedIndexChange: EventEmitter<number>;
|
|
4332
|
+
/** Emits when header focus changes between tabs (keyboard nav). */
|
|
4333
|
+
readonly focusChange: EventEmitter<MDTabChangeEvent>;
|
|
4334
|
+
/** Emits after content wrapper height animation completes. */
|
|
4335
|
+
readonly animationDone: EventEmitter<void>;
|
|
4336
|
+
/**
|
|
4337
|
+
* Emits when a new tab is selected (async; not emitted on initial render).
|
|
4338
|
+
* @see selectedIndexChange for 2-way binding signal.
|
|
4339
|
+
*/
|
|
4340
|
+
readonly selectedTabChange: EventEmitter<MDTabChangeEvent>;
|
|
4341
|
+
/** Group id used for aria-controls/label linking. */
|
|
4342
|
+
private _groupId;
|
|
4343
|
+
/** SSR guard to avoid DOM operations when not in the browser. */
|
|
4344
|
+
protected _isServer: boolean;
|
|
4345
|
+
constructor();
|
|
4346
|
+
/**
|
|
4347
|
+
* Reconcile desired index with available tabs; update selection & positions.
|
|
4348
|
+
* Emits change events and manages wrapper height for smooth transitions.
|
|
4349
|
+
*/
|
|
4350
|
+
ngAfterContentChecked(): void;
|
|
4351
|
+
/** Wire up tabs list and labels after initial content projection. */
|
|
4352
|
+
ngAfterContentInit(): void;
|
|
4353
|
+
/** Watch body list to keep active class centered after view init. */
|
|
4354
|
+
ngAfterViewInit(): void;
|
|
4355
|
+
/** Filter nested tabs and keep only those belonging to this group. */
|
|
4356
|
+
private _subscribeToAllTabChanges;
|
|
4357
|
+
/** Cleanup resources. */
|
|
4358
|
+
ngOnDestroy(): void;
|
|
4359
|
+
/** Realign ink bar to the current selected tab. */
|
|
4360
|
+
realignInkBar(): void;
|
|
4361
|
+
/** Recompute pagination (e.g., after resize). */
|
|
4362
|
+
updatePagination(): void;
|
|
4363
|
+
/** Move focus to a specific tab header index. */
|
|
4364
|
+
focusTab(index: number): void;
|
|
4365
|
+
/** Emits `focusChange` when header focus moves. */
|
|
4366
|
+
_focusChanged(index: number): void;
|
|
4367
|
+
/** Creates a reusable change event object for selection/focus updates. */
|
|
4368
|
+
private _createChangeEvent;
|
|
4369
|
+
/** Subscribe to label/template changes to trigger CD when they update. */
|
|
4370
|
+
private _subscribeToTabLabels;
|
|
4371
|
+
/** Ensure the target index is within `[0, tabs.length - 1]`. */
|
|
4372
|
+
private _clampTabIndex;
|
|
4373
|
+
/** Build a unique id for each tab label element (aria-labelledby). */
|
|
4374
|
+
_getTabLabelId(tab: MDTab, index: number): string;
|
|
4375
|
+
/** Build a unique id for each tab content region (aria-controls). */
|
|
4376
|
+
_getTabContentId(index: number): string;
|
|
4377
|
+
/** Manage body wrapper height during `dynamicHeight` animations. */
|
|
4378
|
+
_setTabBodyWrapperHeight(tabHeight: number): void;
|
|
4379
|
+
/** Clear height lock and emit `animationDone` once the cycle completes. */
|
|
4380
|
+
_removeTabBodyWrapperHeight(): void;
|
|
4381
|
+
/** Handle header click: focus header item and (if enabled) select it. */
|
|
4382
|
+
_handleClick(tab: MDTab, tabHeader: TabGroupBaseHeader, index: number): void;
|
|
4383
|
+
/** Roving tabindex: only selected/last-focused tab is tabbable. */
|
|
4384
|
+
_getTabIndex(index: number): number;
|
|
4385
|
+
/** When header item receives non-mouse focus, update `focusIndex`. */
|
|
4386
|
+
_tabFocusChanged(focusOrigin: FocusOrigin, index: number): void;
|
|
4387
|
+
/** Toggle active class on bodies when centering is enabled. */
|
|
4388
|
+
protected _bodyCentered(isCenter: boolean): void;
|
|
4389
|
+
/** Disable animations when duration is explicitly zero. */
|
|
4390
|
+
protected _animationsDisabled(): boolean;
|
|
4391
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDTabGroup, never>;
|
|
4392
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDTabGroup, "md-tab-group", ["mdTabGroup"], { "isLegacyMode": { "alias": "isLegacyMode"; "required": false; }; "hideInkBar": { "alias": "hideInkBar"; "required": false; }; "fitInkBarToContent": { "alias": "fitInkBarToContent"; "required": false; }; "stretchTabs": { "alias": "stretch-tabs"; "required": false; }; "alignTabs": { "alias": "align-tabs"; "required": false; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "headerPosition": { "alias": "headerPosition"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "contentTabIndex": { "alias": "contentTabIndex"; "required": false; }; "disablePagination": { "alias": "disablePagination"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "preserveContent": { "alias": "preserveContent"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; "focusChange": "focusChange"; "animationDone": "animationDone"; "selectedTabChange": "selectedTabChange"; }, ["_allTabs"], ["*"], true, never>;
|
|
4393
|
+
static ngAcceptInputType_fitInkBarToContent: unknown;
|
|
4394
|
+
static ngAcceptInputType_stretchTabs: unknown;
|
|
4395
|
+
static ngAcceptInputType_dynamicHeight: unknown;
|
|
4396
|
+
static ngAcceptInputType_selectedIndex: unknown;
|
|
4397
|
+
static ngAcceptInputType_contentTabIndex: unknown;
|
|
4398
|
+
static ngAcceptInputType_disablePagination: unknown;
|
|
4399
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
4400
|
+
static ngAcceptInputType_preserveContent: unknown;
|
|
4401
|
+
}
|
|
4402
|
+
/** Change event emitted by MDTabGroup for selection/focus updates. */
|
|
4403
|
+
declare class MDTabChangeEvent {
|
|
4404
|
+
/** Index of the tab that changed. */
|
|
4405
|
+
index: number;
|
|
4406
|
+
/** Reference to the tab instance. */
|
|
4407
|
+
tab: MDTab;
|
|
4408
|
+
}
|
|
4409
|
+
|
|
4410
|
+
declare class MDTabsModule {
|
|
4411
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDTabsModule, never>;
|
|
4412
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MDTabsModule, never, [typeof i2.CommonModule, typeof MDTabContent, typeof MDTabLabel, typeof MDTab, typeof MDTabGroup], [typeof MDTabContent, typeof MDTabLabel, typeof MDTab, typeof MDTabGroup]>;
|
|
4413
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MDTabsModule>;
|
|
4414
|
+
}
|
|
4415
|
+
|
|
4416
|
+
export { ACCORDION, Accordion, CARD_CONFIG, CardSimpleComponent, CentralPageComponent, CentralPageRowComponent, CollapseComponent, CollapseSetComponent, DIALOG_DATA, DIALOG_DEFAULT_OPTIONS, DIALOG_SCROLL_STRATEGY, DialogState, EXPANSION_PANEL_DEFAULT_OPTIONS, ErrorStateMatcher, ExpansionPanelActionRow, ExpansionPanelDescription, ExpansionPanelTitle, FillComponent, FilteredFieldContainerComponent, FilteredFieldItemComponent, FilteredFieldService, FiltredItemModel, INK_BAR_POSITIONER, INK_BAR_POSITIONER_FACTORY, InkBar, MDCard, MDCardActions, MDCardAvatar, MDCardContent, MDCardFooter, MDCardHeader, MDCardImage, MDCardLgImage, MDCardMdImage, MDCardModule, MDCardSmImage, MDCardSubtitle, MDCardTitle, MDCardTitleGroup, MDCardXlImage, MDCollapseModule, MDDialog, MDDialogActions, MDDialogClose, MDDialogContainer, MDDialogContent, MDDialogTitle, MDExpansionPanel, MDExpansionPanelContent, MDExpansionPanelHeader, MDModalModule, MDOption, MDOptionGroup, MDOptionSelectionChange, MDSelect, MDSelectModule, MDSelectTrigger, MDStep, MDStepContent, MDStepExecutorModule, MDStepFooter, MDStepHeader, MDStepLabel, MDStepper, MDStepperIcon, MDStepperNext, MDStepperPrevious, MDSwitch, MDSwitchModule, MDTab, MDTabBody, MDTabChangeEvent, MDTabContent, MDTabGroup, MDTabHeader, MDTabLabel, MDTabLabelWrapper, MDTabsModule, MD_EXPANSION_PANEL, MD_SELECT_TRIGGER, MD_TAB, MD_TAB_LABEL, ManagePageComponent, MefDevCardModule, MefDevCollapseModule, MefDevDialogConfig, MefDevDialogRef, MefDevDropDownMenuModule, MefDevFilteredFieldModule, MefDevModalModule, MefDevOptionComponent, MefDevPageLayoutsModule, MefDevProgressComponent, MefDevProgressModule, MefDevSelectComponent, MefDevSelectModule, MefDevStepExecutorModule, MefDevSwitchComponent, MefDevSwitchModule, MefDevTabBodyComponent, MefDevTabComponent, MefDevTabLabelDirective, MefDevTabSetComponent, MefDevTabsInkBarDirective, MefDevTabsModule, MefDevTabsNavComponent, MefdevDropdownMenuComponent, MefdevExecutorPageComponent, ModalSize, OptionPipe, PaginatedTabHeader, ProgressConfig, PseudoCheckbox, RightFilterComponent, STEPPER_INTL_PROVIDER, STEPPER_INTL_PROVIDER_FACTORY, SelectChange, ShowOnDirtyErrorStateMatcher, SlideRightComponent, SlideUpComponent, StageComponent, StepExecutorComponent, StepperIntl, TABS_CONFIG, TAB_CONTENT, TAB_GROUP, TabBodyPortal, TabChangeEvent, TablePageComponent, _closeDialogVia, _countGroupLabelsBeforeOption, _getOptionScrollPosition, components, mefDevCardComponents, mefDevCollapseModuleComponents };
|
|
4417
|
+
export type { AccordionBase, AccordionDisplayMode, AccordionTogglePosition, AnimatedInterface, AutoFocusTarget, CardAppearance, CardConfig, DialogPosition, DialogRole, ExpansionPanelBase, ExpansionPanelDefaultOptions, ExpansionPanelState, MDPaginatedStepHeaderItem, PseudoCheckboxState, ScrollDirection, StepperIconContext, TabBodyOriginState, TabBodyPositionState, TabGroupBaseHeader, TabHeaderPosition, TabPosition, TabPositionMode, TabType, TabsConfig, ToggleSwitchChangeEvent };
|
|
4418
|
+
//# sourceMappingURL=index.d.ts.map
|