@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,291 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AfterContentInit,
|
|
3
|
-
booleanAttribute,
|
|
4
|
-
ChangeDetectionStrategy,
|
|
5
|
-
Component,
|
|
6
|
-
ContentChildren,
|
|
7
|
-
EventEmitter,
|
|
8
|
-
forwardRef,
|
|
9
|
-
inject,
|
|
10
|
-
Input,
|
|
11
|
-
OnDestroy,
|
|
12
|
-
Output,
|
|
13
|
-
QueryList,
|
|
14
|
-
ViewEncapsulation,
|
|
15
|
-
} from '@angular/core';
|
|
16
|
-
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
17
|
-
import { Observable } from 'rxjs';
|
|
18
|
-
import { startWith, takeUntil } from 'rxjs/operators';
|
|
19
|
-
import { TAB } from '@angular/cdk/keycodes';
|
|
20
|
-
import { MDChipSet } from './chip-set';
|
|
21
|
-
import { MD_CHIPS_DEFAULT_OPTIONS } from './tokens';
|
|
22
|
-
import { MDChipOption, MDChipSelectionChange } from './chip-option';
|
|
23
|
-
import { MDChip, MDChipEvent } from './chip';
|
|
24
|
-
import { MDChipAction } from './chip-action';
|
|
25
|
-
|
|
26
|
-
export class MDChipListboxChange {
|
|
27
|
-
constructor(public source: MDChipListbox, public value: any) {}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export const MD_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR: any = {
|
|
31
|
-
provide: NG_VALUE_ACCESSOR,
|
|
32
|
-
useExisting: forwardRef(() => MDChipListbox),
|
|
33
|
-
multi: true,
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
@Component({
|
|
37
|
-
selector: 'md-chip-listbox',
|
|
38
|
-
template: `
|
|
39
|
-
<div class="mdc-evolution-chip-set__chips" role="presentation">
|
|
40
|
-
<ng-content></ng-content>
|
|
41
|
-
</div>
|
|
42
|
-
`,
|
|
43
|
-
styleUrl: 'chip-set.scss',
|
|
44
|
-
host: {
|
|
45
|
-
class: 'mdc-evolution-chip-set md-mdc-chip-listbox',
|
|
46
|
-
'[attr.role]': 'role',
|
|
47
|
-
'[tabIndex]': '(disabled || empty) ? -1 : tabIndex',
|
|
48
|
-
'[attr.aria-required]': 'role ? required : null',
|
|
49
|
-
'[attr.aria-disabled]': 'disabled.toString()',
|
|
50
|
-
'[attr.aria-multiselectable]': 'multiple',
|
|
51
|
-
'[attr.aria-orientation]': 'ariaOrientation',
|
|
52
|
-
'[class.md-mdc-chip-list-disabled]': 'disabled',
|
|
53
|
-
'[class.md-mdc-chip-list-required]': 'required',
|
|
54
|
-
'(focus)': 'focus()',
|
|
55
|
-
'(blur)': '_blur()',
|
|
56
|
-
'(keydown)': '_keydown($event)',
|
|
57
|
-
},
|
|
58
|
-
providers: [MD_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR],
|
|
59
|
-
encapsulation: ViewEncapsulation.None,
|
|
60
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
61
|
-
})
|
|
62
|
-
export class MDChipListbox extends MDChipSet implements AfterContentInit, OnDestroy, ControlValueAccessor {
|
|
63
|
-
_onTouched = () => {};
|
|
64
|
-
|
|
65
|
-
_onChange: (value: any) => void = () => {};
|
|
66
|
-
|
|
67
|
-
protected override _defaultRole = 'listbox';
|
|
68
|
-
|
|
69
|
-
private _defaultOptions = inject(MD_CHIPS_DEFAULT_OPTIONS, { optional: true });
|
|
70
|
-
|
|
71
|
-
@Input({ transform: booleanAttribute })
|
|
72
|
-
get multiple(): boolean {
|
|
73
|
-
return this._multiple;
|
|
74
|
-
}
|
|
75
|
-
set multiple(value: boolean) {
|
|
76
|
-
this._multiple = value;
|
|
77
|
-
this._syncListboxProperties();
|
|
78
|
-
}
|
|
79
|
-
private _multiple: boolean = false;
|
|
80
|
-
|
|
81
|
-
get selected(): MDChipOption[] | MDChipOption {
|
|
82
|
-
const selectedChips = this._chips.toArray().filter((chip) => chip.selected);
|
|
83
|
-
return this.multiple ? selectedChips : selectedChips[0];
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@Input('aria-orientation') ariaOrientation: 'horizontal' | 'vertical' = 'horizontal';
|
|
87
|
-
|
|
88
|
-
@Input({ transform: booleanAttribute })
|
|
89
|
-
get selectable(): boolean {
|
|
90
|
-
return this._selectable;
|
|
91
|
-
}
|
|
92
|
-
set selectable(value: boolean) {
|
|
93
|
-
this._selectable = value;
|
|
94
|
-
this._syncListboxProperties();
|
|
95
|
-
}
|
|
96
|
-
protected _selectable: boolean = true;
|
|
97
|
-
|
|
98
|
-
@Input() compareWith: (o1: any, o2: any) => boolean = (o1: any, o2: any) => o1 === o2;
|
|
99
|
-
|
|
100
|
-
@Input({ transform: booleanAttribute })
|
|
101
|
-
required: boolean = false;
|
|
102
|
-
|
|
103
|
-
@Input({ transform: booleanAttribute })
|
|
104
|
-
get hideSingleSelectionIndicator(): boolean {
|
|
105
|
-
return this._hideSingleSelectionIndicator;
|
|
106
|
-
}
|
|
107
|
-
set hideSingleSelectionIndicator(value: boolean) {
|
|
108
|
-
this._hideSingleSelectionIndicator = value;
|
|
109
|
-
this._syncListboxProperties();
|
|
110
|
-
}
|
|
111
|
-
private _hideSingleSelectionIndicator: boolean = this._defaultOptions?.hideSingleSelectionIndicator ?? false;
|
|
112
|
-
|
|
113
|
-
get chipSelectionChanges(): Observable<MDChipSelectionChange> {
|
|
114
|
-
return this._getChipStream<MDChipSelectionChange, MDChipOption>((chip) => chip.selectionChange);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
get chipBlurChanges(): Observable<MDChipEvent> {
|
|
118
|
-
return this._getChipStream((chip) => chip._onBlur);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@Input()
|
|
122
|
-
get value(): any {
|
|
123
|
-
return this._value;
|
|
124
|
-
}
|
|
125
|
-
set value(value: any) {
|
|
126
|
-
if (this._chips && this._chips.length) {
|
|
127
|
-
this._setSelectionByValue(value, false);
|
|
128
|
-
}
|
|
129
|
-
this._value = value;
|
|
130
|
-
}
|
|
131
|
-
protected _value: any;
|
|
132
|
-
|
|
133
|
-
@Output() readonly change: EventEmitter<MDChipListboxChange> = new EventEmitter<MDChipListboxChange>();
|
|
134
|
-
|
|
135
|
-
@ContentChildren(MDChipOption, {
|
|
136
|
-
descendants: true,
|
|
137
|
-
})
|
|
138
|
-
override _chips: QueryList<MDChipOption> = undefined!;
|
|
139
|
-
|
|
140
|
-
ngAfterContentInit() {
|
|
141
|
-
this._chips.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {
|
|
142
|
-
if (this.value !== undefined) {
|
|
143
|
-
Promise.resolve().then(() => {
|
|
144
|
-
this._setSelectionByValue(this.value, false);
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
this._syncListboxProperties();
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
this.chipBlurChanges.pipe(takeUntil(this._destroyed)).subscribe(() => this._blur());
|
|
151
|
-
this.chipSelectionChanges.pipe(takeUntil(this._destroyed)).subscribe((event) => {
|
|
152
|
-
if (!this.multiple) {
|
|
153
|
-
this._chips.forEach((chip) => {
|
|
154
|
-
if (chip !== event.source) {
|
|
155
|
-
chip._setSelectedState(false, false, false);
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
if (event.isUserInput) {
|
|
161
|
-
this._propagateChanges();
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
override focus(): void {
|
|
167
|
-
if (this.disabled) {
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
const firstSelectedChip = this._getFirstSelectedChip();
|
|
172
|
-
|
|
173
|
-
if (firstSelectedChip && !firstSelectedChip.disabled) {
|
|
174
|
-
firstSelectedChip.focus();
|
|
175
|
-
} else if (this._chips.length > 0) {
|
|
176
|
-
this._keyManager.setFirstItemActive();
|
|
177
|
-
} else {
|
|
178
|
-
this._elementRef.nativeElement.focus();
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
writeValue(value: any): void {
|
|
183
|
-
if (value != null) {
|
|
184
|
-
this.value = value;
|
|
185
|
-
} else {
|
|
186
|
-
this.value = undefined;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
registerOnChange(fn: (value: any) => void): void {
|
|
191
|
-
this._onChange = fn;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
registerOnTouched(fn: () => void): void {
|
|
195
|
-
this._onTouched = fn;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
setDisabledState(isDisabled: boolean): void {
|
|
199
|
-
this.disabled = isDisabled;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
_setSelectionByValue(value: any, isUserInput: boolean = true) {
|
|
203
|
-
this._clearSelection();
|
|
204
|
-
|
|
205
|
-
if (Array.isArray(value)) {
|
|
206
|
-
value.forEach((currentValue) => this._selectValue(currentValue, isUserInput));
|
|
207
|
-
} else {
|
|
208
|
-
this._selectValue(value, isUserInput);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
_blur() {
|
|
213
|
-
if (!this.disabled) {
|
|
214
|
-
setTimeout(() => {
|
|
215
|
-
if (!this.focused) {
|
|
216
|
-
this._markAsTouched();
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
_keydown(event: KeyboardEvent) {
|
|
223
|
-
if (event.keyCode === TAB) {
|
|
224
|
-
super._allowFocusEscape();
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
private _markAsTouched() {
|
|
229
|
-
this._onTouched();
|
|
230
|
-
this._changeDetectorRef.markForCheck();
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
private _propagateChanges(): void {
|
|
234
|
-
let valueToEmit: any = null;
|
|
235
|
-
|
|
236
|
-
if (Array.isArray(this.selected)) {
|
|
237
|
-
valueToEmit = this.selected.map((chip) => chip.value);
|
|
238
|
-
} else {
|
|
239
|
-
valueToEmit = this.selected ? this.selected.value : undefined;
|
|
240
|
-
}
|
|
241
|
-
this._value = valueToEmit;
|
|
242
|
-
this.change.emit(new MDChipListboxChange(this, valueToEmit));
|
|
243
|
-
this._onChange(valueToEmit);
|
|
244
|
-
this._changeDetectorRef.markForCheck();
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
private _clearSelection(skip?: MDChip): void {
|
|
248
|
-
this._chips.forEach((chip) => {
|
|
249
|
-
if (chip !== skip) {
|
|
250
|
-
chip.deselect();
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
private _selectValue(value: any, isUserInput: boolean): MDChip | undefined {
|
|
256
|
-
const correspondingChip = this._chips.find((chip) => {
|
|
257
|
-
return chip.value != null && this.compareWith(chip.value, value);
|
|
258
|
-
});
|
|
259
|
-
|
|
260
|
-
if (correspondingChip) {
|
|
261
|
-
isUserInput ? correspondingChip.selectViaInteraction() : correspondingChip.select();
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
return correspondingChip;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
private _syncListboxProperties() {
|
|
268
|
-
if (this._chips) {
|
|
269
|
-
Promise.resolve().then(() => {
|
|
270
|
-
this._chips.forEach((chip) => {
|
|
271
|
-
chip._chipListMultiple = this.multiple;
|
|
272
|
-
chip.chipListSelectable = this._selectable;
|
|
273
|
-
chip._chipListHideSingleSelectionIndicator = this.hideSingleSelectionIndicator;
|
|
274
|
-
chip._changeDetectorRef.markForCheck();
|
|
275
|
-
});
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
private _getFirstSelectedChip(): MDChipOption | undefined {
|
|
281
|
-
if (Array.isArray(this.selected)) {
|
|
282
|
-
return this.selected.length ? this.selected[0] : undefined;
|
|
283
|
-
} else {
|
|
284
|
-
return this.selected;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
protected override _skipPredicate(action: MDChipAction): boolean {
|
|
289
|
-
return false;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
@@ -1,37 +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
|
-
<button
|
|
5
|
-
mdChipAction
|
|
6
|
-
[_allowFocusWhenDisabled]="true"
|
|
7
|
-
[attr.aria-description]="ariaDescription"
|
|
8
|
-
[attr.aria-label]="ariaLabel"
|
|
9
|
-
[attr.aria-selected]="ariaSelected"
|
|
10
|
-
role="option">
|
|
11
|
-
@if (_hasLeadingGraphic()) {
|
|
12
|
-
<span class="mdc-evolution-chip__graphic md-mdc-chip-graphic">
|
|
13
|
-
<ng-content select="md-chip-avatar, [mdChipAvatar]"></ng-content>
|
|
14
|
-
<span class="mdc-evolution-chip__checkmark">
|
|
15
|
-
<svg
|
|
16
|
-
class="mdc-evolution-chip__checkmark-svg"
|
|
17
|
-
viewBox="-2 -3 30 30"
|
|
18
|
-
focusable="false"
|
|
19
|
-
aria-hidden="true">
|
|
20
|
-
<path class="mdc-evolution-chip__checkmark-path"
|
|
21
|
-
fill="none" stroke="currentColor" d="M1.73,12.91 8.1,19.28 22.79,4.59" />
|
|
22
|
-
</svg>
|
|
23
|
-
</span>
|
|
24
|
-
</span>
|
|
25
|
-
}
|
|
26
|
-
<span class="mdc-evolution-chip__text-label md-mdc-chip-action-label">
|
|
27
|
-
<ng-content></ng-content>
|
|
28
|
-
<span class="md-mdc-chip-primary-focus-indicator md-focus-indicator"></span>
|
|
29
|
-
</span>
|
|
30
|
-
</button>
|
|
31
|
-
</span>
|
|
32
|
-
|
|
33
|
-
@if (_hasTrailingIcon()) {
|
|
34
|
-
<span class="mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing">
|
|
35
|
-
<ng-content select="md-chip-trailing-icon,[mdChipRemove],[mdChipTrailingIcon]"></ng-content>
|
|
36
|
-
</span>
|
|
37
|
-
}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
EventEmitter,
|
|
5
|
-
Input,
|
|
6
|
-
Output,
|
|
7
|
-
ViewEncapsulation,
|
|
8
|
-
OnInit,
|
|
9
|
-
inject,
|
|
10
|
-
booleanAttribute,
|
|
11
|
-
} from '@angular/core';
|
|
12
|
-
import { MDChip } from './chip';
|
|
13
|
-
import { MD_CHIP, MD_CHIPS_DEFAULT_OPTIONS } from './tokens';
|
|
14
|
-
import { MDChipAction } from './chip-action';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export class MDChipSelectionChange {
|
|
18
|
-
constructor(
|
|
19
|
-
public source: MDChipOption,
|
|
20
|
-
public selected: boolean,
|
|
21
|
-
public isUserInput = false,
|
|
22
|
-
) {}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@Component({
|
|
26
|
-
selector: 'md-basic-chip-option, [md-basic-chip-option], md-chip-option, [md-chip-option]',
|
|
27
|
-
templateUrl: 'chip-option.html',
|
|
28
|
-
styleUrl: 'chip.scss',
|
|
29
|
-
host: {
|
|
30
|
-
'class': 'md-mdc-chip md-mdc-chip-option',
|
|
31
|
-
'[class.mdc-evolution-chip]': '!_isBasicChip',
|
|
32
|
-
'[class.mdc-evolution-chip--filter]': '!_isBasicChip',
|
|
33
|
-
'[class.mdc-evolution-chip--selectable]': '!_isBasicChip',
|
|
34
|
-
'[class.md-mdc-chip-selected]': 'selected',
|
|
35
|
-
'[class.md-mdc-chip-multiple]': '_chipListMultiple',
|
|
36
|
-
'[class.md-mdc-chip-disabled]': 'disabled',
|
|
37
|
-
'[class.md-mdc-chip-with-avatar]': 'leadingIcon',
|
|
38
|
-
'[class.mdc-evolution-chip--disabled]': 'disabled',
|
|
39
|
-
'[class.mdc-evolution-chip--selected]': 'selected',
|
|
40
|
-
'[class.mdc-evolution-chip--selecting]': '!_animationsDisabled',
|
|
41
|
-
'[class.mdc-evolution-chip--with-trailing-action]': '_hasTrailingIcon()',
|
|
42
|
-
'[class.mdc-evolution-chip--with-primary-icon]': 'leadingIcon',
|
|
43
|
-
'[class.mdc-evolution-chip--with-primary-graphic]': '_hasLeadingGraphic()',
|
|
44
|
-
'[class.mdc-evolution-chip--with-avatar]': 'leadingIcon',
|
|
45
|
-
'[class.md-mdc-chip-highlighted]': 'highlighted',
|
|
46
|
-
'[class.md-mdc-chip-with-trailing-icon]': '_hasTrailingIcon()',
|
|
47
|
-
'[attr.tabindex]': 'null',
|
|
48
|
-
'[attr.aria-label]': 'null',
|
|
49
|
-
'[attr.aria-description]': 'null',
|
|
50
|
-
'[attr.role]': 'role',
|
|
51
|
-
'[id]': 'id',
|
|
52
|
-
},
|
|
53
|
-
providers: [
|
|
54
|
-
{provide: MDChip, useExisting: MDChipOption},
|
|
55
|
-
{provide: MD_CHIP, useExisting: MDChipOption},
|
|
56
|
-
],
|
|
57
|
-
encapsulation: ViewEncapsulation.None,
|
|
58
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
59
|
-
imports: [MDChipAction],
|
|
60
|
-
})
|
|
61
|
-
export class MDChipOption extends MDChip implements OnInit {
|
|
62
|
-
private _defaultOptions = inject(MD_CHIPS_DEFAULT_OPTIONS, {optional: true});
|
|
63
|
-
|
|
64
|
-
chipListSelectable: boolean = true;
|
|
65
|
-
|
|
66
|
-
_chipListMultiple: boolean = false;
|
|
67
|
-
|
|
68
|
-
_chipListHideSingleSelectionIndicator: boolean =
|
|
69
|
-
this._defaultOptions?.hideSingleSelectionIndicator ?? false;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
@Input({transform: booleanAttribute})
|
|
73
|
-
get selectable(): boolean {
|
|
74
|
-
return this._selectable && this.chipListSelectable;
|
|
75
|
-
}
|
|
76
|
-
set selectable(value: boolean) {
|
|
77
|
-
this._selectable = value;
|
|
78
|
-
this._changeDetectorRef.markForCheck();
|
|
79
|
-
}
|
|
80
|
-
protected _selectable: boolean = true;
|
|
81
|
-
|
|
82
|
-
/** Whether the chip is selected. */
|
|
83
|
-
@Input({transform: booleanAttribute})
|
|
84
|
-
get selected(): boolean {
|
|
85
|
-
return this._selected;
|
|
86
|
-
}
|
|
87
|
-
set selected(value: boolean) {
|
|
88
|
-
this._setSelectedState(value, false, true);
|
|
89
|
-
}
|
|
90
|
-
private _selected = false;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
get ariaSelected(): string | null {
|
|
94
|
-
return this.selectable ? this.selected.toString() : null;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
protected override basicChipAttrName = 'md-basic-chip-option';
|
|
98
|
-
|
|
99
|
-
@Output() readonly selectionChange: EventEmitter<MDChipSelectionChange> =
|
|
100
|
-
new EventEmitter<MDChipSelectionChange>();
|
|
101
|
-
|
|
102
|
-
override ngOnInit() {
|
|
103
|
-
super.ngOnInit();
|
|
104
|
-
this.role = 'presentation';
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
select(): void {
|
|
109
|
-
this._setSelectedState(true, false, true);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
deselect(): void {
|
|
114
|
-
this._setSelectedState(false, false, true);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
selectViaInteraction(): void {
|
|
119
|
-
this._setSelectedState(true, true, true);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
toggleSelected(isUserInput: boolean = false): boolean {
|
|
124
|
-
this._setSelectedState(!this.selected, isUserInput, true);
|
|
125
|
-
return this.selected;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
override _handlePrimaryActionInteraction() {
|
|
129
|
-
if (!this.disabled) {
|
|
130
|
-
|
|
131
|
-
this.focus();
|
|
132
|
-
|
|
133
|
-
if (this.selectable) {
|
|
134
|
-
this.toggleSelected(true);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
_hasLeadingGraphic() {
|
|
140
|
-
if (this.leadingIcon) {
|
|
141
|
-
return true;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
return !this._chipListHideSingleSelectionIndicator || this._chipListMultiple;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
_setSelectedState(isSelected: boolean, isUserInput: boolean, emitEvent: boolean) {
|
|
149
|
-
if (isSelected !== this.selected) {
|
|
150
|
-
this._selected = isSelected;
|
|
151
|
-
|
|
152
|
-
if (emitEvent) {
|
|
153
|
-
this.selectionChange.emit({
|
|
154
|
-
source: this,
|
|
155
|
-
isUserInput,
|
|
156
|
-
selected: this.selected,
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
this._changeDetectorRef.markForCheck();
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
@if (!_isEditing) {
|
|
2
|
-
<span class="md-mdc-chip-focus-overlay"></span>
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
@if (_hasLeadingActionIcon()) {
|
|
6
|
-
<span class="mdc-evolution-chip__cell mdc-evolution-chip__cell--leading" role="gridcell">
|
|
7
|
-
<ng-content select="[mdChipEdit]"></ng-content>
|
|
8
|
-
</span>
|
|
9
|
-
}
|
|
10
|
-
<span class="mdc-evolution-chip__cell mdc-evolution-chip__cell--primary" role="gridcell"
|
|
11
|
-
mdChipAction
|
|
12
|
-
[disabled]="disabled"
|
|
13
|
-
[attr.aria-description]="ariaDescription"
|
|
14
|
-
[attr.aria-label]="ariaLabel">
|
|
15
|
-
@if (leadingIcon) {
|
|
16
|
-
<span class="mdc-evolution-chip__graphic md-mdc-chip-graphic">
|
|
17
|
-
<ng-content select="md-chip-avatar, [mdChipAvatar]"></ng-content>
|
|
18
|
-
</span>
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
<span class="mdc-evolution-chip__text-label md-mdc-chip-action-label">
|
|
22
|
-
@if (_isEditing) {
|
|
23
|
-
@if (contentEditInput) {
|
|
24
|
-
<ng-content select="[mdChipEditInput]"></ng-content>
|
|
25
|
-
} @else {
|
|
26
|
-
<span mdChipEditInput></span>
|
|
27
|
-
}
|
|
28
|
-
} @else {
|
|
29
|
-
<ng-content></ng-content>
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
<span class="md-mdc-chip-primary-focus-indicator md-focus-indicator" aria-hidden="true"></span>
|
|
33
|
-
</span>
|
|
34
|
-
</span>
|
|
35
|
-
|
|
36
|
-
@if (_hasTrailingIcon()) {
|
|
37
|
-
<span
|
|
38
|
-
class="mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"
|
|
39
|
-
role="gridcell">
|
|
40
|
-
<ng-content select="md-chip-trailing-icon,[mdChipRemove],[mdChipTrailingIcon]"></ng-content>
|
|
41
|
-
</span>
|
|
42
|
-
}
|