@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,191 +0,0 @@
|
|
|
1
|
-
import {ENTER} from '@angular/cdk/keycodes';
|
|
2
|
-
import {
|
|
3
|
-
AfterViewInit,
|
|
4
|
-
ChangeDetectionStrategy,
|
|
5
|
-
Component,
|
|
6
|
-
ContentChild,
|
|
7
|
-
EventEmitter,
|
|
8
|
-
Input,
|
|
9
|
-
Output,
|
|
10
|
-
ViewChild,
|
|
11
|
-
ViewEncapsulation,
|
|
12
|
-
afterNextRender,
|
|
13
|
-
} from '@angular/core';
|
|
14
|
-
import {takeUntil} from 'rxjs/operators';
|
|
15
|
-
import { MDChip, MDChipEvent } from './chip';
|
|
16
|
-
import { MD_CHIP } from './tokens';
|
|
17
|
-
import { MDChipAction } from './chip-action';
|
|
18
|
-
import { MDChipEditInput } from './chip-edit-input';
|
|
19
|
-
|
|
20
|
-
export interface MDChipEditedEvent extends MDChipEvent {
|
|
21
|
-
value: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@Component({
|
|
26
|
-
selector: 'md-chip-row, [md-chip-row], md-basic-chip-row, [md-basic-chip-row]',
|
|
27
|
-
templateUrl: 'chip-row.html',
|
|
28
|
-
styleUrl: 'chip.scss',
|
|
29
|
-
host: {
|
|
30
|
-
'class': 'md-mdc-chip md-mdc-chip-row mdc-evolution-chip',
|
|
31
|
-
'[class.md-mdc-chip-with-avatar]': 'leadingIcon',
|
|
32
|
-
'[class.md-mdc-chip-disabled]': 'disabled',
|
|
33
|
-
'[class.md-mdc-chip-editing]': '_isEditing',
|
|
34
|
-
'[class.md-mdc-chip-editable]': 'editable',
|
|
35
|
-
'[class.mdc-evolution-chip--disabled]': 'disabled',
|
|
36
|
-
'[class.mdc-evolution-chip--with-leading-action]': '_hasLeadingActionIcon()',
|
|
37
|
-
'[class.mdc-evolution-chip--with-trailing-action]': '_hasTrailingIcon()',
|
|
38
|
-
'[class.mdc-evolution-chip--with-primary-graphic]': 'leadingIcon',
|
|
39
|
-
'[class.mdc-evolution-chip--with-primary-icon]': 'leadingIcon',
|
|
40
|
-
'[class.mdc-evolution-chip--with-avatar]': 'leadingIcon',
|
|
41
|
-
'[class.md-mdc-chip-highlighted]': 'highlighted',
|
|
42
|
-
'[class.md-mdc-chip-with-trailing-icon]': '_hasTrailingIcon()',
|
|
43
|
-
'[id]': 'id',
|
|
44
|
-
|
|
45
|
-
'[attr.tabindex]': 'disabled ? null : -1',
|
|
46
|
-
'[attr.aria-label]': 'null',
|
|
47
|
-
'[attr.aria-description]': 'null',
|
|
48
|
-
'[attr.role]': 'role',
|
|
49
|
-
'(focus)': '_handleFocus()',
|
|
50
|
-
'(click)': 'this._hasInteractiveActions() ? _handleClick($event) : null',
|
|
51
|
-
'(dblclick)': '_handleDoubleclick($event)',
|
|
52
|
-
},
|
|
53
|
-
providers: [
|
|
54
|
-
{provide: MDChip, useExisting: MDChipRow},
|
|
55
|
-
{provide: MD_CHIP, useExisting: MDChipRow},
|
|
56
|
-
],
|
|
57
|
-
encapsulation: ViewEncapsulation.None,
|
|
58
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
59
|
-
imports: [MDChipAction, MDChipEditInput],
|
|
60
|
-
})
|
|
61
|
-
export class MDChipRow extends MDChip implements AfterViewInit {
|
|
62
|
-
protected override basicChipAttrName = 'md-basic-chip-row';
|
|
63
|
-
|
|
64
|
-
private _editStartPending = false;
|
|
65
|
-
|
|
66
|
-
@Input() editable: boolean = false;
|
|
67
|
-
|
|
68
|
-
@Output() readonly edited: EventEmitter<MDChipEditedEvent> =
|
|
69
|
-
new EventEmitter<MDChipEditedEvent>();
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
@ViewChild(MDChipEditInput) defaultEditInput?: MDChipEditInput;
|
|
73
|
-
|
|
74
|
-
@ContentChild(MDChipEditInput) contentEditInput?: MDChipEditInput;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
private _alreadyFocused = false;
|
|
78
|
-
|
|
79
|
-
_isEditing = false;
|
|
80
|
-
|
|
81
|
-
constructor() {
|
|
82
|
-
super();
|
|
83
|
-
|
|
84
|
-
this.role = 'row';
|
|
85
|
-
this._onBlur.pipe(takeUntil(this.destroyed)).subscribe(() => {
|
|
86
|
-
if (this._isEditing && !this._editStartPending) {
|
|
87
|
-
this._onEditFinish();
|
|
88
|
-
}
|
|
89
|
-
this._alreadyFocused = false;
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
override ngAfterViewInit() {
|
|
94
|
-
super.ngAfterViewInit();
|
|
95
|
-
|
|
96
|
-
this._ngZone.runOutsideAngular(() => {
|
|
97
|
-
this._elementRef.nativeElement.addEventListener(
|
|
98
|
-
'mousedown',
|
|
99
|
-
() => (this._alreadyFocused = this._hasFocus()),
|
|
100
|
-
);
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
protected _hasLeadingActionIcon() {
|
|
105
|
-
return !this._isEditing && !!this.editIcon;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
override _hasTrailingIcon() {
|
|
109
|
-
return !this._isEditing && super._hasTrailingIcon();
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
_handleFocus() {
|
|
113
|
-
if (!this._isEditing && !this.disabled) {
|
|
114
|
-
this.focus();
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
override _handleKeydown(event: KeyboardEvent): void {
|
|
119
|
-
if (event.keyCode === ENTER && !this.disabled) {
|
|
120
|
-
if (this._isEditing) {
|
|
121
|
-
event.preventDefault();
|
|
122
|
-
this._onEditFinish();
|
|
123
|
-
} else if (this.editable) {
|
|
124
|
-
this._startEditing(event);
|
|
125
|
-
}
|
|
126
|
-
} else if (this._isEditing) {
|
|
127
|
-
event.stopPropagation();
|
|
128
|
-
} else {
|
|
129
|
-
super._handleKeydown(event);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
_handleClick(event: MouseEvent) {
|
|
134
|
-
if (!this.disabled && this.editable && !this._isEditing && this._alreadyFocused) {
|
|
135
|
-
event.preventDefault();
|
|
136
|
-
event.stopPropagation();
|
|
137
|
-
this._startEditing(event);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
_handleDoubleclick(event: MouseEvent) {
|
|
142
|
-
if (!this.disabled && this.editable) {
|
|
143
|
-
this._startEditing(event);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
override _edit(): void {
|
|
148
|
-
this._changeDetectorRef.markForCheck();
|
|
149
|
-
this._startEditing();
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
private _startEditing(event?: Event) {
|
|
153
|
-
if (
|
|
154
|
-
!this.primaryAction ||
|
|
155
|
-
(this.removeIcon &&
|
|
156
|
-
!!event &&
|
|
157
|
-
this._getSourceAction(event.target as Node) === this.removeIcon)
|
|
158
|
-
) {
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
const value = this.value;
|
|
163
|
-
|
|
164
|
-
this._isEditing = this._editStartPending = true;
|
|
165
|
-
|
|
166
|
-
afterNextRender(
|
|
167
|
-
() => {
|
|
168
|
-
this._getEditInput().initialize(value);
|
|
169
|
-
|
|
170
|
-
setTimeout(() => this._ngZone.run(() => (this._editStartPending = false)));
|
|
171
|
-
},
|
|
172
|
-
{injector: this._injector},
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
private _onEditFinish() {
|
|
177
|
-
this._isEditing = this._editStartPending = false;
|
|
178
|
-
this.edited.emit({chip: this, value: this._getEditInput().getValue()});
|
|
179
|
-
|
|
180
|
-
if (
|
|
181
|
-
this._document.activeElement === this._getEditInput().getNativeElement() ||
|
|
182
|
-
this._document.activeElement === this._document.body
|
|
183
|
-
) {
|
|
184
|
-
this.primaryAction.focus();
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
private _getEditInput(): MDChipEditInput {
|
|
189
|
-
return this.contentEditInput || this.defaultEditInput!;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
.md-mdc-chip-set {
|
|
2
|
-
display: flex;
|
|
3
|
-
|
|
4
|
-
&:focus {
|
|
5
|
-
outline: none;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.mdc-evolution-chip-set__chips {
|
|
9
|
-
min-width: 100%;
|
|
10
|
-
margin-left: -8px;
|
|
11
|
-
margin-right: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.mdc-evolution-chip {
|
|
15
|
-
margin: 4px 0 4px 8px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
[dir='rtl'] & {
|
|
19
|
-
.mdc-evolution-chip-set__chips {
|
|
20
|
-
margin-left: 0;
|
|
21
|
-
margin-right: -8px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.mdc-evolution-chip {
|
|
25
|
-
margin-left: 0;
|
|
26
|
-
margin-right: 8px;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.mdc-evolution-chip-set__chips {
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-flow: wrap;
|
|
34
|
-
min-width: 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.md-mdc-chip-set-stacked {
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
align-items: flex-start;
|
|
40
|
-
|
|
41
|
-
.md-mdc-chip {
|
|
42
|
-
width: 100%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.mdc-evolution-chip__graphic {
|
|
46
|
-
flex-grow: 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.mdc-evolution-chip__action--primary {
|
|
50
|
-
flex-basis: 100%;
|
|
51
|
-
justify-content: start;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
input.md-mdc-chip-input {
|
|
56
|
-
flex: 1 0 150px;
|
|
57
|
-
margin-left: 8px;
|
|
58
|
-
|
|
59
|
-
[dir='rtl'] & {
|
|
60
|
-
margin-left: 0;
|
|
61
|
-
margin-right: 8px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.md-mdc-form-field & {
|
|
65
|
-
&::placeholder {
|
|
66
|
-
opacity: 1;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&::-moz-placeholder {
|
|
70
|
-
opacity: 1;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&::-webkit-input-placeholder {
|
|
74
|
-
opacity: 1;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&:-ms-input-placeholder {
|
|
78
|
-
opacity: 1;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.md-mdc-chip-set + & {
|
|
83
|
-
margin-left: 0;
|
|
84
|
-
margin-right: 0;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import {FocusKeyManager} from '@angular/cdk/a11y';
|
|
2
|
-
import {Directionality} from '@angular/cdk/bidi';
|
|
3
|
-
import {
|
|
4
|
-
AfterViewInit,
|
|
5
|
-
ChangeDetectionStrategy,
|
|
6
|
-
ChangeDetectorRef,
|
|
7
|
-
Component,
|
|
8
|
-
ContentChildren,
|
|
9
|
-
ElementRef,
|
|
10
|
-
Input,
|
|
11
|
-
OnDestroy,
|
|
12
|
-
QueryList,
|
|
13
|
-
ViewEncapsulation,
|
|
14
|
-
booleanAttribute,
|
|
15
|
-
numberAttribute,
|
|
16
|
-
inject,
|
|
17
|
-
} from '@angular/core';
|
|
18
|
-
import {Observable, Subject, merge} from 'rxjs';
|
|
19
|
-
import {startWith, switchMap, takeUntil} from 'rxjs/operators';
|
|
20
|
-
import { MDChipAction, MDChipContent } from './chip-action';
|
|
21
|
-
import { MDChip, MDChipEvent } from './chip';
|
|
22
|
-
|
|
23
|
-
@Component({
|
|
24
|
-
selector: 'md-chip-set',
|
|
25
|
-
template: `
|
|
26
|
-
<div class="mdc-evolution-chip-set__chips" role="presentation">
|
|
27
|
-
<ng-content></ng-content>
|
|
28
|
-
</div>
|
|
29
|
-
`,
|
|
30
|
-
styleUrl: 'chip-set.scss',
|
|
31
|
-
host: {
|
|
32
|
-
'class': 'md-mdc-chip-set mdc-evolution-chip-set',
|
|
33
|
-
'(keydown)': '_handleKeydown($event)',
|
|
34
|
-
'[attr.role]': 'role',
|
|
35
|
-
},
|
|
36
|
-
encapsulation: ViewEncapsulation.None,
|
|
37
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
38
|
-
})
|
|
39
|
-
export class MDChipSet implements AfterViewInit, OnDestroy {
|
|
40
|
-
protected _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
|
|
41
|
-
protected _changeDetectorRef = inject(ChangeDetectorRef);
|
|
42
|
-
private _dir = inject(Directionality, {optional: true});
|
|
43
|
-
|
|
44
|
-
private _lastDestroyedFocusedChipIndex: number | null = null;
|
|
45
|
-
|
|
46
|
-
protected _keyManager: FocusKeyManager<MDChipAction>;
|
|
47
|
-
|
|
48
|
-
protected _destroyed = new Subject<void>();
|
|
49
|
-
|
|
50
|
-
protected _defaultRole = 'presentation';
|
|
51
|
-
|
|
52
|
-
get chipFocusChanges(): Observable<MDChipEvent> {
|
|
53
|
-
return this._getChipStream(chip => chip._onFocus);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
get chipDestroyedChanges(): Observable<MDChipEvent> {
|
|
57
|
-
return this._getChipStream(chip => chip.destroyed);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
get chipRemovedChanges(): Observable<MDChipEvent> {
|
|
61
|
-
return this._getChipStream(chip => chip.removed);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@Input({transform: booleanAttribute})
|
|
65
|
-
get disabled(): boolean {
|
|
66
|
-
return this._disabled;
|
|
67
|
-
}
|
|
68
|
-
set disabled(value: boolean) {
|
|
69
|
-
this._disabled = value;
|
|
70
|
-
this._syncChipsState();
|
|
71
|
-
}
|
|
72
|
-
protected _disabled: boolean = false;
|
|
73
|
-
|
|
74
|
-
get empty(): boolean {
|
|
75
|
-
return !this._chips || this._chips.length === 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@Input()
|
|
79
|
-
get role(): string | null {
|
|
80
|
-
if (this._explicitRole) {
|
|
81
|
-
return this._explicitRole;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return this.empty ? null : this._defaultRole;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@Input({
|
|
88
|
-
transform: (value: unknown) => (value == null ? 0 : numberAttribute(value)),
|
|
89
|
-
})
|
|
90
|
-
tabIndex: number = 0;
|
|
91
|
-
|
|
92
|
-
set role(value: string | null) {
|
|
93
|
-
this._explicitRole = value;
|
|
94
|
-
}
|
|
95
|
-
private _explicitRole: string | null = null;
|
|
96
|
-
|
|
97
|
-
get focused(): boolean {
|
|
98
|
-
return this._hasFocusedChip();
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@ContentChildren(MDChip, {
|
|
102
|
-
descendants: true,
|
|
103
|
-
})
|
|
104
|
-
_chips: QueryList<MDChip>;
|
|
105
|
-
|
|
106
|
-
_chipActions = new QueryList<MDChipAction>();
|
|
107
|
-
|
|
108
|
-
constructor() {}
|
|
109
|
-
|
|
110
|
-
ngAfterViewInit() {
|
|
111
|
-
this._setUpFocusManagement();
|
|
112
|
-
this._trackChipSetChanges();
|
|
113
|
-
this._trackDestroyedFocusedChip();
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
ngOnDestroy() {
|
|
117
|
-
this._keyManager?.destroy();
|
|
118
|
-
this._chipActions.destroy();
|
|
119
|
-
this._destroyed.next();
|
|
120
|
-
this._destroyed.complete();
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
protected _hasFocusedChip() {
|
|
124
|
-
return this._chips && this._chips.some(chip => chip._hasFocus());
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
protected _syncChipsState() {
|
|
128
|
-
this._chips?.forEach(chip => {
|
|
129
|
-
chip._chipListDisabled = this._disabled;
|
|
130
|
-
chip._changeDetectorRef.markForCheck();
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/** Dummy method for subclasses to override. Base chip set cannot be focused. */
|
|
135
|
-
focus() {}
|
|
136
|
-
|
|
137
|
-
_handleKeydown(event: KeyboardEvent) {
|
|
138
|
-
if (this._originatesFromChip(event)) {
|
|
139
|
-
this._keyManager.onKeydown(event);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
protected _isValidIndex(index: number): boolean {
|
|
144
|
-
return index >= 0 && index < this._chips.length;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
protected _allowFocusEscape() {
|
|
148
|
-
const previous = this._elementRef.nativeElement.tabIndex;
|
|
149
|
-
|
|
150
|
-
if (previous !== -1) {
|
|
151
|
-
this._elementRef.nativeElement.tabIndex = -1;
|
|
152
|
-
|
|
153
|
-
setTimeout(() => (this._elementRef.nativeElement.tabIndex = previous));
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
protected _getChipStream<T, C extends MDChip = MDChip>(
|
|
158
|
-
mappingFunction: (chip: C) => Observable<T>,
|
|
159
|
-
): Observable<T> {
|
|
160
|
-
return this._chips.changes.pipe(
|
|
161
|
-
startWith(null),
|
|
162
|
-
switchMap(() => merge(...(this._chips as QueryList<C>).map(mappingFunction))),
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
protected _originatesFromChip(event: Event): boolean {
|
|
167
|
-
let currentElement = event.target as HTMLElement | null;
|
|
168
|
-
|
|
169
|
-
while (currentElement && currentElement !== this._elementRef.nativeElement) {
|
|
170
|
-
if (currentElement.classList.contains('md-mdc-chip')) {
|
|
171
|
-
return true;
|
|
172
|
-
}
|
|
173
|
-
currentElement = currentElement.parentElement;
|
|
174
|
-
}
|
|
175
|
-
return false;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
private _setUpFocusManagement() {
|
|
179
|
-
this._chips.changes.pipe(startWith(this._chips)).subscribe((chips: QueryList<MDChip>) => {
|
|
180
|
-
const actions: MDChipAction[] = [];
|
|
181
|
-
chips.forEach(chip => chip._getActions().forEach(action => actions.push(action)));
|
|
182
|
-
this._chipActions.reset(actions);
|
|
183
|
-
this._chipActions.notifyOnChanges();
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
this._keyManager = new FocusKeyManager(this._chipActions)
|
|
187
|
-
.withVerticalOrientation()
|
|
188
|
-
.withHorizontalOrientation(this._dir ? this._dir.value : 'ltr')
|
|
189
|
-
.withHomeAndEnd()
|
|
190
|
-
.skipPredicate(action => this._skipPredicate(action));
|
|
191
|
-
|
|
192
|
-
this.chipFocusChanges.pipe(takeUntil(this._destroyed)).subscribe(({chip}) => {
|
|
193
|
-
const action = chip._getSourceAction(document.activeElement as Element);
|
|
194
|
-
|
|
195
|
-
if (action) {
|
|
196
|
-
this._keyManager.updateActiveItem(action);
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
this._dir?.change
|
|
201
|
-
.pipe(takeUntil(this._destroyed))
|
|
202
|
-
.subscribe(direction => this._keyManager.withHorizontalOrientation(direction));
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
protected _skipPredicate(action: MDChipContent): boolean {
|
|
206
|
-
return action.disabled;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
private _trackChipSetChanges() {
|
|
210
|
-
this._chips.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {
|
|
211
|
-
if (this.disabled) {
|
|
212
|
-
Promise.resolve().then(() => this._syncChipsState());
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
this._redirectDestroyedChipFocus();
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
private _trackDestroyedFocusedChip() {
|
|
220
|
-
this.chipDestroyedChanges.pipe(takeUntil(this._destroyed)).subscribe((event: MDChipEvent) => {
|
|
221
|
-
const chipArray = this._chips.toArray();
|
|
222
|
-
const chipIndex = chipArray.indexOf(event.chip);
|
|
223
|
-
const hasFocus = event.chip._hasFocus();
|
|
224
|
-
const wasLastFocused =
|
|
225
|
-
event.chip._hadFocusOnRemove &&
|
|
226
|
-
this._keyManager.activeItem &&
|
|
227
|
-
event.chip._getActions().includes(this._keyManager.activeItem);
|
|
228
|
-
|
|
229
|
-
const shouldMoveFocus = hasFocus || wasLastFocused;
|
|
230
|
-
|
|
231
|
-
if (this._isValidIndex(chipIndex) && shouldMoveFocus) {
|
|
232
|
-
this._lastDestroyedFocusedChipIndex = chipIndex;
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
private _redirectDestroyedChipFocus() {
|
|
238
|
-
if (this._lastDestroyedFocusedChipIndex == null) {
|
|
239
|
-
return;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
if (this._chips.length) {
|
|
243
|
-
const newIndex = Math.min(this._lastDestroyedFocusedChipIndex, this._chips.length - 1);
|
|
244
|
-
const chipToFocus = this._chips.toArray()[newIndex];
|
|
245
|
-
|
|
246
|
-
if (chipToFocus.disabled) {
|
|
247
|
-
if (this._chips.length === 1) {
|
|
248
|
-
this.focus();
|
|
249
|
-
} else {
|
|
250
|
-
this._keyManager.setPreviousItemActive();
|
|
251
|
-
}
|
|
252
|
-
} else {
|
|
253
|
-
chipToFocus.focus();
|
|
254
|
-
}
|
|
255
|
-
} else {
|
|
256
|
-
this.focus();
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
this._lastDestroyedFocusedChipIndex = null;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<span class="md-mdc-chip-focus-overlay"></span>
|
|
2
|
-
|
|
3
|
-
<span class="mdc-evolution-chip__cell mdc-evolution-chip__cell--primary">
|
|
4
|
-
<span mdChipContent>
|
|
5
|
-
@if (leadingIcon) {
|
|
6
|
-
<span class="mdc-evolution-chip__graphic md-mdc-chip-graphic">
|
|
7
|
-
<ng-content select="md-chip-avatar, [mdChipAvatar]"></ng-content>
|
|
8
|
-
</span>
|
|
9
|
-
}
|
|
10
|
-
<span class="mdc-evolution-chip__text-label md-mdc-chip-action-label">
|
|
11
|
-
<ng-content></ng-content>
|
|
12
|
-
<span class="md-mdc-chip-primary-focus-indicator md-focus-indicator"></span>
|
|
13
|
-
</span>
|
|
14
|
-
</span>
|
|
15
|
-
</span>
|
|
16
|
-
|
|
17
|
-
@if (_hasTrailingIcon()) {
|
|
18
|
-
<span class="mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing">
|
|
19
|
-
<ng-content select="md-chip-trailing-icon,[mdChipRemove],[mdChipTrailingIcon]"></ng-content>
|
|
20
|
-
</span>
|
|
21
|
-
}
|