@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
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
@use 'sass:math';
|
|
2
|
-
@use '@angular/cdk';
|
|
3
|
-
@use './../../styles/vars.scss' as color-vars;
|
|
4
|
-
|
|
5
|
-
$header-height: 72px !default;
|
|
6
|
-
$header-minimum-height: 42px !default;
|
|
7
|
-
$header-maximum-height: $header-height !default;
|
|
8
|
-
|
|
9
|
-
$density-config: (
|
|
10
|
-
height: (
|
|
11
|
-
default: $header-height,
|
|
12
|
-
maximum: $header-maximum-height,
|
|
13
|
-
minimum: $header-minimum-height,
|
|
14
|
-
),
|
|
15
|
-
) !default;
|
|
16
|
-
|
|
17
|
-
$label-header-height: 24px;
|
|
18
|
-
$label-position-bottom-top-gap: 16px;
|
|
19
|
-
$label-min-width: 50px;
|
|
20
|
-
|
|
21
|
-
$vertical-stepper-content-margin: 36px;
|
|
22
|
-
|
|
23
|
-
$top-gap: 46px;
|
|
24
|
-
$side-gap: 6px;
|
|
25
|
-
$line-width: 1px;
|
|
26
|
-
$line-gap: 8px;
|
|
27
|
-
|
|
28
|
-
$step-sub-label-font-size: 12px;
|
|
29
|
-
$step-header-icon-size: 16px;
|
|
30
|
-
|
|
31
|
-
@function _get-vertical-padding-calc() {
|
|
32
|
-
$height: 72px;
|
|
33
|
-
@return calc(calc(#{$height} - #{$label-header-height}) / 2);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.stepper-vertical,
|
|
37
|
-
.stepper-horizontal {
|
|
38
|
-
display: block;
|
|
39
|
-
font-family: 'Montserrat';
|
|
40
|
-
font-size: 14px;
|
|
41
|
-
color: color-vars.$Black-Color;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.horizontal-stepper-header-container {
|
|
45
|
-
white-space: nowrap;
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
|
|
49
|
-
padding-bottom: 40px;
|
|
50
|
-
|
|
51
|
-
.stepper-label-position-bottom & {
|
|
52
|
-
align-items: flex-start;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.stepper-header-position-bottom & {
|
|
56
|
-
order: 1;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.stepper-horizontal-line {
|
|
61
|
-
border-top-width: $line-width;
|
|
62
|
-
border-top-style: solid;
|
|
63
|
-
flex: auto;
|
|
64
|
-
height: 0;
|
|
65
|
-
margin: 0 $line-gap - $side-gap;
|
|
66
|
-
min-width: 32px;
|
|
67
|
-
border-top-color: #889392;
|
|
68
|
-
|
|
69
|
-
.stepper-label-position-bottom & {
|
|
70
|
-
$vertical-padding: _get-vertical-padding-calc();
|
|
71
|
-
margin: 0;
|
|
72
|
-
min-width: 0;
|
|
73
|
-
position: relative;
|
|
74
|
-
|
|
75
|
-
top: calc(#{$vertical-padding} + #{math.div($label-header-height, 2)});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
%header-horizontal-line-label-position-bottom {
|
|
80
|
-
$half-side-gap: math.div($side-gap, 2);
|
|
81
|
-
border-top-width: $line-width;
|
|
82
|
-
border-top-style: solid;
|
|
83
|
-
content: '';
|
|
84
|
-
display: inline-block;
|
|
85
|
-
height: 0;
|
|
86
|
-
position: absolute;
|
|
87
|
-
width: calc(50% - #{$half-side-gap + $line-gap});
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.horizontal-stepper-header {
|
|
91
|
-
display: flex;
|
|
92
|
-
overflow: hidden;
|
|
93
|
-
align-items: center;
|
|
94
|
-
padding: 0 $side-gap;
|
|
95
|
-
height: 48px;
|
|
96
|
-
|
|
97
|
-
.step-icon {
|
|
98
|
-
position: relative;
|
|
99
|
-
margin-right: $line-gap;
|
|
100
|
-
flex: none;
|
|
101
|
-
|
|
102
|
-
[dir='rtl'] & {
|
|
103
|
-
margin-right: 0;
|
|
104
|
-
margin-left: $line-gap;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&.step-header-empty-label .step-icon {
|
|
109
|
-
margin: 0;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
$vertical-padding: _get-vertical-padding-calc();
|
|
113
|
-
|
|
114
|
-
.stepper-label-position-bottom & {
|
|
115
|
-
padding: #{$vertical-padding} $side-gap;
|
|
116
|
-
|
|
117
|
-
&::before,
|
|
118
|
-
&::after {
|
|
119
|
-
top: calc(#{$vertical-padding} + #{math.div($label-header-height, 2)});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.stepper-label-position-bottom & {
|
|
124
|
-
box-sizing: border-box;
|
|
125
|
-
flex-direction: column;
|
|
126
|
-
height: auto;
|
|
127
|
-
|
|
128
|
-
&:not(:last-child)::after,
|
|
129
|
-
[dir='rtl'] &:not(:first-child)::after {
|
|
130
|
-
@extend %header-horizontal-line-label-position-bottom;
|
|
131
|
-
right: 0;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&:not(:first-child)::before,
|
|
135
|
-
[dir='rtl'] &:not(:last-child)::before {
|
|
136
|
-
@extend %header-horizontal-line-label-position-bottom;
|
|
137
|
-
left: 0;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
[dir='rtl'] &:last-child::before,
|
|
141
|
-
[dir='rtl'] &:first-child::after {
|
|
142
|
-
display: none;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
& .step-icon {
|
|
146
|
-
margin-right: 0;
|
|
147
|
-
margin-left: 0;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
& .step-label {
|
|
151
|
-
padding: $label-position-bottom-top-gap 0 0 0;
|
|
152
|
-
text-align: center;
|
|
153
|
-
width: 100%;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.vertical-stepper-header {
|
|
159
|
-
display: flex;
|
|
160
|
-
align-items: center;
|
|
161
|
-
|
|
162
|
-
height: $label-header-height;
|
|
163
|
-
|
|
164
|
-
padding: #{_get-vertical-padding-calc()} $side-gap;
|
|
165
|
-
|
|
166
|
-
.step-icon {
|
|
167
|
-
margin-right: $vertical-stepper-content-margin - $side-gap;
|
|
168
|
-
|
|
169
|
-
[dir='rtl'] & {
|
|
170
|
-
margin-right: 0;
|
|
171
|
-
margin-left: $vertical-stepper-content-margin - $side-gap;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.horizontal-stepper-wrapper {
|
|
177
|
-
display: flex;
|
|
178
|
-
flex-direction: column;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.horizontal-stepper-content {
|
|
182
|
-
visibility: hidden;
|
|
183
|
-
overflow: hidden;
|
|
184
|
-
outline: 0;
|
|
185
|
-
height: 0;
|
|
186
|
-
|
|
187
|
-
.stepper-animations-enabled & {
|
|
188
|
-
transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
&.horizontal-stepper-content-previous {
|
|
192
|
-
transform: translate3d(-100%, 0, 0);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&.horizontal-stepper-content-next {
|
|
196
|
-
transform: translate3d(100%, 0, 0);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
&.horizontal-stepper-content-current {
|
|
200
|
-
visibility: visible;
|
|
201
|
-
transform: none;
|
|
202
|
-
height: auto;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.stepper-horizontal:not(.stepper-animating) &.horizontal-stepper-content-current {
|
|
206
|
-
overflow: visible;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.horizontal-content-container {
|
|
211
|
-
overflow: hidden;
|
|
212
|
-
background: color-vars.$Light-Gray-3;
|
|
213
|
-
padding: $top-gap $side-gap $side-gap $side-gap;
|
|
214
|
-
|
|
215
|
-
@include cdk.high-contrast {
|
|
216
|
-
outline: solid 1px;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.stepper-header-position-bottom & {
|
|
220
|
-
padding: $side-gap $side-gap 0 $side-gap;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.vertical-content-container {
|
|
225
|
-
display: grid;
|
|
226
|
-
grid-template-rows: 0fr;
|
|
227
|
-
grid-template-columns: 100%;
|
|
228
|
-
margin-left: $vertical-stepper-content-margin;
|
|
229
|
-
border: 0;
|
|
230
|
-
position: relative;
|
|
231
|
-
|
|
232
|
-
.stepper-animations-enabled & {
|
|
233
|
-
transition: grid-template-rows 500ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
&.vertical-content-container-active {
|
|
237
|
-
grid-template-rows: 1fr;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.step:last-child & {
|
|
241
|
-
border: none;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
@include cdk.high-contrast {
|
|
245
|
-
outline: solid 1px;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
[dir='rtl'] & {
|
|
249
|
-
margin-left: 0;
|
|
250
|
-
margin-right: $vertical-stepper-content-margin;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
@supports not (grid-template-rows: 0fr) {
|
|
254
|
-
height: 0;
|
|
255
|
-
|
|
256
|
-
&.vertical-content-container-active {
|
|
257
|
-
height: auto;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.stepper-vertical-line::before {
|
|
263
|
-
content: '';
|
|
264
|
-
position: absolute;
|
|
265
|
-
left: 0;
|
|
266
|
-
border-left-width: $line-width;
|
|
267
|
-
border-left-style: solid;
|
|
268
|
-
|
|
269
|
-
$vertical-padding: _get-vertical-padding-calc();
|
|
270
|
-
$vertical-offset: calc(#{$line-gap} - #{$vertical-padding});
|
|
271
|
-
|
|
272
|
-
border-left-color: #889392;
|
|
273
|
-
|
|
274
|
-
top: $vertical-offset;
|
|
275
|
-
bottom: $vertical-offset;
|
|
276
|
-
|
|
277
|
-
[dir='rtl'] & {
|
|
278
|
-
left: auto;
|
|
279
|
-
right: 0;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.vertical-stepper-content {
|
|
284
|
-
overflow: hidden;
|
|
285
|
-
outline: 0;
|
|
286
|
-
visibility: hidden;
|
|
287
|
-
|
|
288
|
-
.stepper-animations-enabled & {
|
|
289
|
-
transition: visibility 500ms linear;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.vertical-content-container-active > & {
|
|
293
|
-
visibility: visible;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.vertical-content {
|
|
298
|
-
padding: 0 $side-gap $side-gap $side-gap;
|
|
299
|
-
}
|
|
@@ -1,360 +0,0 @@
|
|
|
1
|
-
import {CdkStep, CdkStepper} from '@angular/cdk/stepper';
|
|
2
|
-
import {
|
|
3
|
-
AfterContentInit,
|
|
4
|
-
AfterViewInit,
|
|
5
|
-
ChangeDetectionStrategy,
|
|
6
|
-
Component,
|
|
7
|
-
ContentChild,
|
|
8
|
-
ContentChildren,
|
|
9
|
-
ElementRef,
|
|
10
|
-
EventEmitter,
|
|
11
|
-
inject,
|
|
12
|
-
Input,
|
|
13
|
-
NgZone,
|
|
14
|
-
OnDestroy,
|
|
15
|
-
Output,
|
|
16
|
-
QueryList,
|
|
17
|
-
Renderer2,
|
|
18
|
-
signal,
|
|
19
|
-
TemplateRef,
|
|
20
|
-
ViewChildren,
|
|
21
|
-
ViewContainerRef,
|
|
22
|
-
ViewEncapsulation,
|
|
23
|
-
} from '@angular/core';
|
|
24
|
-
import {NgTemplateOutlet} from '@angular/common';
|
|
25
|
-
import {Platform} from '@angular/cdk/platform';
|
|
26
|
-
import {CdkPortalOutlet, TemplatePortal} from '@angular/cdk/portal';
|
|
27
|
-
import {Subscription} from 'rxjs';
|
|
28
|
-
import {takeUntil, map, startWith, switchMap} from 'rxjs/operators';
|
|
29
|
-
|
|
30
|
-
import {MDStepHeader} from './step-header';
|
|
31
|
-
import {MDStepLabel} from './step-label';
|
|
32
|
-
import {MDStepperIcon, StepperIconContext} from './stepper-icon';
|
|
33
|
-
import {MDStepContent} from './step-content';
|
|
34
|
-
|
|
35
|
-
import {Injectable} from '@angular/core';
|
|
36
|
-
import {FormGroupDirective, AbstractControl, NgForm} from '@angular/forms';
|
|
37
|
-
import { MDStepFooter } from './step-footer';
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* ErrorStateMatcher that shows errors only once a control is dirty
|
|
41
|
-
* (or when the parent form was submitted). Useful for “show on edit”.
|
|
42
|
-
*/
|
|
43
|
-
@Injectable()
|
|
44
|
-
export class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {
|
|
45
|
-
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean {
|
|
46
|
-
return !!(control && control.invalid && (control.dirty || (form && form.submitted)));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Default ErrorStateMatcher used across the stepper.
|
|
52
|
-
* Marks error when a control is invalid and touched, or the form is submitted.
|
|
53
|
-
*/
|
|
54
|
-
@Injectable({providedIn: 'root'})
|
|
55
|
-
export class ErrorStateMatcher {
|
|
56
|
-
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean {
|
|
57
|
-
return !!(control && control.invalid && (control.touched || (form && form.submitted)));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Single step inside the stepper.
|
|
63
|
-
* - Extends CdkStep and plugs in lazy content via <ng-template mdStepContent>.
|
|
64
|
-
* - Provides ErrorStateMatcher so the step can decide its own error state.
|
|
65
|
-
*/
|
|
66
|
-
@Component({
|
|
67
|
-
selector: 'md-step',
|
|
68
|
-
templateUrl: 'step.html',
|
|
69
|
-
providers: [
|
|
70
|
-
// Provide the step instance wherever ErrorStateMatcher or CdkStep is requested.
|
|
71
|
-
{provide: ErrorStateMatcher, useExisting: MDStep},
|
|
72
|
-
{provide: CdkStep, useExisting: MDStep},
|
|
73
|
-
],
|
|
74
|
-
encapsulation: ViewEncapsulation.None,
|
|
75
|
-
exportAs: 'mdStep',
|
|
76
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
77
|
-
imports: [CdkPortalOutlet],
|
|
78
|
-
host: {
|
|
79
|
-
// Keep steps hidden by default; container controls visibility.
|
|
80
|
-
'hidden': '',
|
|
81
|
-
},
|
|
82
|
-
})
|
|
83
|
-
export class MDStep extends CdkStep implements ErrorStateMatcher, AfterContentInit, OnDestroy {
|
|
84
|
-
/** Parent-provided matcher used as a baseline in isErrorState. */
|
|
85
|
-
private _errorStateMatcher = inject(ErrorStateMatcher, {skipSelf: true});
|
|
86
|
-
/** View container used to create a portal for lazy content. */
|
|
87
|
-
private _viewContainerRef = inject(ViewContainerRef);
|
|
88
|
-
/** Subscription to selected-state changes (to attach lazy content). */
|
|
89
|
-
private _isSelected = Subscription.EMPTY;
|
|
90
|
-
|
|
91
|
-
/** Optional projected label for the step header. */
|
|
92
|
-
@ContentChild(MDStepLabel) override stepLabel: MDStepLabel = undefined!;
|
|
93
|
-
|
|
94
|
-
/** Optional lazy body content template: <ng-template mdStepContent>…</ng-template> */
|
|
95
|
-
@ContentChild(MDStepContent, {static: false}) _lazyContent: MDStepContent;
|
|
96
|
-
|
|
97
|
-
/** Portal instance created when the step first becomes selected. */
|
|
98
|
-
_portal: TemplatePortal;
|
|
99
|
-
|
|
100
|
-
/** Attach lazy content when this step becomes selected for the first time. */
|
|
101
|
-
ngAfterContentInit() {
|
|
102
|
-
this._isSelected = this._stepper.steps.changes
|
|
103
|
-
.pipe(
|
|
104
|
-
switchMap(() => {
|
|
105
|
-
return this._stepper.selectionChange.pipe(
|
|
106
|
-
map(event => event.selectedStep === this),
|
|
107
|
-
startWith(this._stepper.selected === this),
|
|
108
|
-
);
|
|
109
|
-
}),
|
|
110
|
-
)
|
|
111
|
-
.subscribe(isSelected => {
|
|
112
|
-
if (isSelected && this._lazyContent && !this._portal) {
|
|
113
|
-
this._portal = new TemplatePortal(this._lazyContent._template, this._viewContainerRef!);
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/** Cleanup subscription on destroy. */
|
|
119
|
-
ngOnDestroy() {
|
|
120
|
-
this._isSelected.unsubscribe();
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* ErrorStateMatcher implementation for this step.
|
|
125
|
-
* Combines the injected default matcher with “interacted” state so that
|
|
126
|
-
* a step can show errors after the user interacted with the step controls.
|
|
127
|
-
*/
|
|
128
|
-
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean {
|
|
129
|
-
const originalErrorState = this._errorStateMatcher.isErrorState(control, form);
|
|
130
|
-
const customErrorState = !!(control && control.invalid && this.interacted);
|
|
131
|
-
return originalErrorState || customErrorState;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* The stepper container that manages a sequence of md-step children.
|
|
137
|
-
* - Handles orientation, header/label positioning, and animations.
|
|
138
|
-
* - Tracks and emits animation lifecycle.
|
|
139
|
-
* - Supports custom icon overrides via <ng-template mdStepperIcon name="...">.
|
|
140
|
-
*/
|
|
141
|
-
@Component({
|
|
142
|
-
selector: 'md-stepper, md-vertical-stepper, md-horizontal-stepper, [mdStepper]',
|
|
143
|
-
exportAs: 'mdStepper, mdVerticalStepper, mdHorizontalStepper',
|
|
144
|
-
templateUrl: 'stepper.html',
|
|
145
|
-
styleUrl: 'stepper.scss',
|
|
146
|
-
host: {
|
|
147
|
-
// Orientation & layout classes.
|
|
148
|
-
'[class.stepper-horizontal]': 'orientation === "horizontal"',
|
|
149
|
-
'[class.stepper-vertical]': 'orientation === "vertical"',
|
|
150
|
-
'[class.stepper-label-position-end]':
|
|
151
|
-
'orientation === "horizontal" && labelPosition == "end"',
|
|
152
|
-
'[class.stepper-label-position-bottom]':
|
|
153
|
-
'orientation === "horizontal" && labelPosition == "bottom"',
|
|
154
|
-
'[class.stepper-header-position-bottom]': 'headerPosition === "bottom"',
|
|
155
|
-
|
|
156
|
-
// Animation state + duration CSS variable.
|
|
157
|
-
'[class.stepper-animating]': '_isAnimating()',
|
|
158
|
-
'[style.stepper-animation-duration]': '_getAnimationDuration()',
|
|
159
|
-
|
|
160
|
-
// ARIA role for a list of tabs.
|
|
161
|
-
'[attr.aria-orientation]': 'orientation',
|
|
162
|
-
'role': 'tablist',
|
|
163
|
-
},
|
|
164
|
-
providers: [{provide: CdkStepper, useExisting: MDStepper}],
|
|
165
|
-
encapsulation: ViewEncapsulation.None,
|
|
166
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
167
|
-
imports: [NgTemplateOutlet, MDStepHeader],
|
|
168
|
-
})
|
|
169
|
-
export class MDStepper extends CdkStepper implements AfterViewInit, AfterContentInit, OnDestroy {
|
|
170
|
-
/** Run transition listeners outside Angular for perf. */
|
|
171
|
-
private _ngZone = inject(NgZone);
|
|
172
|
-
/** Used to set up/tear down transitionend listeners. */
|
|
173
|
-
private _renderer = inject(Renderer2);
|
|
174
|
-
/** Disable animations flag (useful for testing or SSR). */
|
|
175
|
-
private _animationsDisabled = true;
|
|
176
|
-
/** Cleanup handle for the transitionend listener. */
|
|
177
|
-
private _cleanupTransition: (() => void) | undefined;
|
|
178
|
-
/** Reactive animating flag used by host binding. */
|
|
179
|
-
protected _isAnimating = signal(false);
|
|
180
|
-
|
|
181
|
-
/** All step headers rendered by the template. */
|
|
182
|
-
@ViewChildren(MDStepHeader) override _stepHeader: QueryList<MDStepHeader> = undefined!;
|
|
183
|
-
|
|
184
|
-
/** Animated containers used to detect when transitions finish. */
|
|
185
|
-
@ViewChildren('animatedContainer') _animatedContainers: QueryList<ElementRef>;
|
|
186
|
-
|
|
187
|
-
/** All descendant steps (supports nested usage; CdkStepper handles scoping). */
|
|
188
|
-
@ContentChildren(MDStep, {descendants: true}) override _steps: QueryList<MDStep> = undefined!;
|
|
189
|
-
|
|
190
|
-
/** Public alias of _steps used by base class. */
|
|
191
|
-
override readonly steps: QueryList<MDStep> = new QueryList<MDStep>();
|
|
192
|
-
|
|
193
|
-
/** Any custom icon templates projected via mdStepperIcon. */
|
|
194
|
-
@ContentChildren(MDStepperIcon, {descendants: true}) _icons: QueryList<MDStepperIcon>;
|
|
195
|
-
|
|
196
|
-
/** Emits when a view transition animation has completed. */
|
|
197
|
-
@Output() readonly animationDone: EventEmitter<void> = new EventEmitter<void>();
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
@ContentChild(MDStepFooter, { read: TemplateRef}) footer: MDStepFooter;
|
|
201
|
-
|
|
202
|
-
/** Horizontal label position (end/bottom when orientation is horizontal). */
|
|
203
|
-
@Input()
|
|
204
|
-
labelPosition: 'bottom' | 'end' = 'end';
|
|
205
|
-
|
|
206
|
-
/** Step header position (top/bottom). */
|
|
207
|
-
@Input()
|
|
208
|
-
headerPosition: 'top' | 'bottom' = 'top';
|
|
209
|
-
|
|
210
|
-
/** Map of step state → custom icon template overrides. */
|
|
211
|
-
_iconOverrides: Record<string, TemplateRef<StepperIconContext>> = {};
|
|
212
|
-
|
|
213
|
-
/** Duration for transitions (e.g. "500ms" | "0ms"). */
|
|
214
|
-
@Input()
|
|
215
|
-
get animationDuration(): string {
|
|
216
|
-
return this._animationDuration;
|
|
217
|
-
}
|
|
218
|
-
set animationDuration(value: string) {
|
|
219
|
-
// Normalize plain numeric to milliseconds.
|
|
220
|
-
this._animationDuration = /^\d+$/.test(value) ? value + 'ms' : value;
|
|
221
|
-
}
|
|
222
|
-
private _animationDuration = '';
|
|
223
|
-
|
|
224
|
-
/** SSR guard (avoid DOM APIs when not in browser). */
|
|
225
|
-
protected _isServer: boolean = !inject(Platform).isBrowser;
|
|
226
|
-
|
|
227
|
-
// Overload kept to match construction signature patterns.
|
|
228
|
-
constructor(...args: unknown[]);
|
|
229
|
-
constructor() {
|
|
230
|
-
super();
|
|
231
|
-
|
|
232
|
-
// Infer orientation from host element name when using alias tags.
|
|
233
|
-
const elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
|
|
234
|
-
const nodeName = elementRef.nativeElement.nodeName.toLowerCase();
|
|
235
|
-
this.orientation = nodeName === 'vertical-stepper' ? 'vertical' : 'horizontal';
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* After content init:
|
|
240
|
-
* - Collect custom icon templates.
|
|
241
|
-
* - React to step list changes to recalc state.
|
|
242
|
-
* - Toggle animating flag on selected index changes and prepare CSS listeners.
|
|
243
|
-
*/
|
|
244
|
-
override ngAfterContentInit() {
|
|
245
|
-
super.ngAfterContentInit();
|
|
246
|
-
|
|
247
|
-
// Gather mdStepperIcon overrides by name.
|
|
248
|
-
this._icons.forEach(({name, templateRef}) => (this._iconOverrides[name] = templateRef));
|
|
249
|
-
|
|
250
|
-
// When steps change, notify base to recompute.
|
|
251
|
-
this.steps.changes.pipe(takeUntil(this._destroyed)).subscribe(() => this._stateChanged());
|
|
252
|
-
|
|
253
|
-
// When selection changes, start/stop animating depending on duration.
|
|
254
|
-
this.selectedIndexChange.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
255
|
-
const duration = this._getAnimationDuration();
|
|
256
|
-
if (duration === '0ms' || duration === '0s') {
|
|
257
|
-
this._onAnimationDone();
|
|
258
|
-
} else {
|
|
259
|
-
this._isAnimating.set(true);
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
// Enable CSS transition listeners a short time after init (avoids first-paint glitches).
|
|
264
|
-
this._ngZone.runOutsideAngular(() => {
|
|
265
|
-
if (!this._animationsDisabled) {
|
|
266
|
-
setTimeout(() => {
|
|
267
|
-
this._elementRef.nativeElement.classList.add('stepper-animations-enabled');
|
|
268
|
-
this._cleanupTransition = this._renderer.listen(
|
|
269
|
-
this._elementRef.nativeElement,
|
|
270
|
-
'transitionend',
|
|
271
|
-
this._handleTransitionend,
|
|
272
|
-
);
|
|
273
|
-
}, 200);
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* After view init:
|
|
280
|
-
* - Emit initial animationDone once containers are rendered.
|
|
281
|
-
* - Recompute alignment/layout on container list changes.
|
|
282
|
-
*/
|
|
283
|
-
override ngAfterViewInit(): void {
|
|
284
|
-
super.ngAfterViewInit();
|
|
285
|
-
|
|
286
|
-
if (typeof queueMicrotask === 'function') {
|
|
287
|
-
let hasEmittedInitial = false;
|
|
288
|
-
|
|
289
|
-
this._animatedContainers.changes
|
|
290
|
-
.pipe(startWith(null), takeUntil(this._destroyed))
|
|
291
|
-
.subscribe(() =>
|
|
292
|
-
queueMicrotask(() => {
|
|
293
|
-
// Fire once after the very first render so consumers can react.
|
|
294
|
-
if (!hasEmittedInitial) {
|
|
295
|
-
hasEmittedInitial = true;
|
|
296
|
-
this.animationDone.emit();
|
|
297
|
-
}
|
|
298
|
-
this._stateChanged();
|
|
299
|
-
}),
|
|
300
|
-
);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/** Tear down transition listener on destroy. */
|
|
305
|
-
override ngOnDestroy(): void {
|
|
306
|
-
super.ngOnDestroy();
|
|
307
|
-
this._cleanupTransition?.();
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/** Resolve the effective animation duration string applied to CSS. */
|
|
311
|
-
_getAnimationDuration() {
|
|
312
|
-
if (this._animationsDisabled) {
|
|
313
|
-
return '0ms';
|
|
314
|
-
}
|
|
315
|
-
if (this.animationDuration) {
|
|
316
|
-
return this.animationDuration;
|
|
317
|
-
}
|
|
318
|
-
// Defaults: match Material timings (horizontal slower than vertical).
|
|
319
|
-
return this.orientation === 'horizontal' ? '500ms' : '225ms';
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Global transitionend handler:
|
|
324
|
-
* - Detects the active animated container based on orientation and CSS properties.
|
|
325
|
-
* - Calls _onAnimationDone when the relevant transition completes.
|
|
326
|
-
*/
|
|
327
|
-
private _handleTransitionend = (event: TransitionEvent) => {
|
|
328
|
-
const target = event.target as HTMLElement | null;
|
|
329
|
-
if (!target) {
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
// Horizontal stepper finishes when the "current" content transform ends.
|
|
334
|
-
const isHorizontalActiveElement =
|
|
335
|
-
this.orientation === 'horizontal' &&
|
|
336
|
-
event.propertyName === 'transform' &&
|
|
337
|
-
target.classList.contains('horizontal-stepper-content-current');
|
|
338
|
-
|
|
339
|
-
// Vertical stepper finishes when the active container grid-rows change ends.
|
|
340
|
-
const isVerticalActiveElement =
|
|
341
|
-
this.orientation === 'vertical' &&
|
|
342
|
-
event.propertyName === 'grid-template-rows' &&
|
|
343
|
-
target.classList.contains('vertical-content-container-active');
|
|
344
|
-
|
|
345
|
-
// Ensure the event target is one of our tracked containers.
|
|
346
|
-
const shouldEmit =
|
|
347
|
-
(isHorizontalActiveElement || isVerticalActiveElement) &&
|
|
348
|
-
this._animatedContainers.find(ref => ref.nativeElement === target);
|
|
349
|
-
|
|
350
|
-
if (shouldEmit) {
|
|
351
|
-
this._onAnimationDone();
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
/** Clear the animating flag and emit animationDone to consumers. */
|
|
356
|
-
private _onAnimationDone() {
|
|
357
|
-
this._isAnimating.set(false);
|
|
358
|
-
this.animationDone.emit();
|
|
359
|
-
}
|
|
360
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import {ViewContainerRef, Injector} from '@angular/core';
|
|
2
|
-
import {Direction} from '@angular/cdk/bidi';
|
|
3
|
-
import {ScrollStrategy} from '@angular/cdk/overlay';
|
|
4
|
-
import {DialogConfig} from '@angular/cdk/dialog';
|
|
5
|
-
|
|
6
|
-
export type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
7
|
-
|
|
8
|
-
export type DialogRole = 'dialog' | 'alertdialog';
|
|
9
|
-
|
|
10
|
-
export interface DialogPosition {
|
|
11
|
-
top?: string;
|
|
12
|
-
bottom?: string;
|
|
13
|
-
left?: string;
|
|
14
|
-
right?: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export class MefDevDialogConfig<D = any> {
|
|
18
|
-
viewContainerRef?: ViewContainerRef;
|
|
19
|
-
injector?: Injector;
|
|
20
|
-
id?: string;
|
|
21
|
-
role?: DialogRole = 'dialog';
|
|
22
|
-
panelClass?: string | string[] = '';
|
|
23
|
-
hasBackdrop?: boolean = true;
|
|
24
|
-
backdropClass?: string | string[] = '';
|
|
25
|
-
disableClose?: boolean = false;
|
|
26
|
-
closePredicate?: <
|
|
27
|
-
Result = unknown,
|
|
28
|
-
Component = unknown,
|
|
29
|
-
Config extends DialogConfig = MefDevDialogConfig,
|
|
30
|
-
>(
|
|
31
|
-
result: Result | undefined,
|
|
32
|
-
config: Config,
|
|
33
|
-
componentInstance: Component | null,
|
|
34
|
-
) => boolean;
|
|
35
|
-
width?: string = '';
|
|
36
|
-
height?: string = '';
|
|
37
|
-
minWidth?: number | string;
|
|
38
|
-
minHeight?: number | string;
|
|
39
|
-
maxWidth?: number | string;
|
|
40
|
-
maxHeight?: number | string;
|
|
41
|
-
position?: DialogPosition;
|
|
42
|
-
data?: D | null = null;
|
|
43
|
-
direction?: Direction;
|
|
44
|
-
ariaDescribedBy?: string | null = null;
|
|
45
|
-
ariaLabelledBy?: string | null = null;
|
|
46
|
-
ariaLabel?: string | null = null;
|
|
47
|
-
ariaModal?: boolean = false;
|
|
48
|
-
autoFocus?: AutoFocusTarget | string | boolean = 'first-tabbable';
|
|
49
|
-
restoreFocus?: boolean = true;
|
|
50
|
-
delayFocusTrap?: boolean = true;
|
|
51
|
-
scrollStrategy?: ScrollStrategy;
|
|
52
|
-
closeOnNavigation?: boolean = true;
|
|
53
|
-
enterAnimationDuration?: string | number;
|
|
54
|
-
exitAnimationDuration?: string | number;
|
|
55
|
-
animationPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
56
|
-
}
|