@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,412 +0,0 @@
|
|
|
1
|
-
import { _IdGenerator } from '@angular/cdk/a11y';
|
|
2
|
-
import { DOWN_ARROW, hasModifierKey, TAB, UP_ARROW } from '@angular/cdk/keycodes';
|
|
3
|
-
import {
|
|
4
|
-
AfterContentInit,
|
|
5
|
-
AfterViewInit,
|
|
6
|
-
booleanAttribute,
|
|
7
|
-
ChangeDetectionStrategy,
|
|
8
|
-
Component,
|
|
9
|
-
ContentChildren,
|
|
10
|
-
DoCheck,
|
|
11
|
-
EventEmitter,
|
|
12
|
-
Input,
|
|
13
|
-
OnDestroy,
|
|
14
|
-
Output,
|
|
15
|
-
QueryList,
|
|
16
|
-
ViewEncapsulation,
|
|
17
|
-
inject,
|
|
18
|
-
Injectable,
|
|
19
|
-
} from '@angular/core';
|
|
20
|
-
import { AbstractControl, ControlValueAccessor, FormGroupDirective, NgControl, NgForm, Validators } from '@angular/forms';
|
|
21
|
-
import { MDChipSet } from './chip-set';
|
|
22
|
-
import { MDChipTextControl } from './chip-text-control';
|
|
23
|
-
import { merge, Observable, Subject, takeUntil } from 'rxjs';
|
|
24
|
-
import { MDChipRow } from './chip-row';
|
|
25
|
-
import { MDChipEvent } from './chip';
|
|
26
|
-
|
|
27
|
-
export class MDChipGridChange {
|
|
28
|
-
constructor(public source: MDChipGrid, public value: any) {}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@Component({
|
|
33
|
-
selector: 'md-chip-grid',
|
|
34
|
-
template: `
|
|
35
|
-
<div class="mdc-evolution-chip-set__chips" role="presentation">
|
|
36
|
-
<ng-content></ng-content>
|
|
37
|
-
</div>
|
|
38
|
-
`,
|
|
39
|
-
styleUrl: 'chip-set.scss',
|
|
40
|
-
host: {
|
|
41
|
-
class: 'md-mdc-chip-set md-mdc-chip-grid mdc-evolution-chip-set',
|
|
42
|
-
'[attr.role]': 'role',
|
|
43
|
-
'[attr.tabindex]': '(disabled || (_chips && _chips.length === 0)) ? -1 : tabIndex',
|
|
44
|
-
'[attr.aria-disabled]': 'disabled.toString()',
|
|
45
|
-
'[attr.aria-invalid]': 'errorState',
|
|
46
|
-
'[class.md-mdc-chip-list-disabled]': 'disabled',
|
|
47
|
-
'[class.md-mdc-chip-list-invalid]': 'errorState',
|
|
48
|
-
'[class.md-mdc-chip-list-required]': 'required',
|
|
49
|
-
'(focus)': 'focus()',
|
|
50
|
-
'(blur)': '_blur()',
|
|
51
|
-
},
|
|
52
|
-
encapsulation: ViewEncapsulation.None,
|
|
53
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
54
|
-
})
|
|
55
|
-
export class MDChipGrid
|
|
56
|
-
extends MDChipSet
|
|
57
|
-
implements AfterContentInit, AfterViewInit, ControlValueAccessor, DoCheck, OnDestroy
|
|
58
|
-
{
|
|
59
|
-
ngControl = inject(NgControl, { optional: true, self: true })!;
|
|
60
|
-
|
|
61
|
-
readonly controlType: string = 'md-chip-grid';
|
|
62
|
-
|
|
63
|
-
protected _chipInput?: MDChipTextControl;
|
|
64
|
-
|
|
65
|
-
protected override _defaultRole = 'grid';
|
|
66
|
-
private _errorStateTracker: _ErrorStateTracker;
|
|
67
|
-
private _uid = inject(_IdGenerator).getId('md-chip-grid-');
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
private _ariaDescribedbyIds: string[] = [];
|
|
71
|
-
|
|
72
|
-
_onTouched = () => {};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
_onChange: (value: any) => void = () => {};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
@Input({ transform: booleanAttribute })
|
|
79
|
-
override get disabled(): boolean {
|
|
80
|
-
return this.ngControl ? !!this.ngControl.disabled : this._disabled;
|
|
81
|
-
}
|
|
82
|
-
override set disabled(value: boolean) {
|
|
83
|
-
this._disabled = value;
|
|
84
|
-
this._syncChipsState();
|
|
85
|
-
this.stateChanges.next();
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
get id(): string {
|
|
90
|
-
return this._chipInput ? this._chipInput.id : this._uid;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
override get empty(): boolean {
|
|
95
|
-
return (!this._chipInput || this._chipInput.empty) && (!this._chips || this._chips.length === 0);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
@Input()
|
|
100
|
-
get placeholder(): string {
|
|
101
|
-
return this._chipInput ? this._chipInput.placeholder : this._placeholder;
|
|
102
|
-
}
|
|
103
|
-
set placeholder(value: string) {
|
|
104
|
-
this._placeholder = value;
|
|
105
|
-
this.stateChanges.next();
|
|
106
|
-
}
|
|
107
|
-
protected _placeholder: string;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
override get focused(): boolean {
|
|
111
|
-
return this._chipInput?.focused || this._hasFocusedChip();
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
@Input({ transform: booleanAttribute })
|
|
115
|
-
get required(): boolean {
|
|
116
|
-
return this._required ?? this.ngControl?.control?.hasValidator(Validators.required) ?? false;
|
|
117
|
-
}
|
|
118
|
-
set required(value: boolean) {
|
|
119
|
-
this._required = value;
|
|
120
|
-
this.stateChanges.next();
|
|
121
|
-
}
|
|
122
|
-
protected _required: boolean | undefined;
|
|
123
|
-
|
|
124
|
-
get shouldLabelFloat(): boolean {
|
|
125
|
-
return !this.empty || this.focused;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
@Input()
|
|
130
|
-
get value(): any {
|
|
131
|
-
return this._value;
|
|
132
|
-
}
|
|
133
|
-
set value(value: any) {
|
|
134
|
-
this._value = value;
|
|
135
|
-
}
|
|
136
|
-
protected _value: any[] = [];
|
|
137
|
-
|
|
138
|
-
@Input()
|
|
139
|
-
get errorStateMatcher() {
|
|
140
|
-
return this._errorStateTracker.matcher;
|
|
141
|
-
}
|
|
142
|
-
set errorStateMatcher(value: ErrorStateMatcher) {
|
|
143
|
-
this._errorStateTracker.matcher = value;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
get chipBlurChanges(): Observable<MDChipEvent> {
|
|
148
|
-
return this._getChipStream((chip) => chip._onBlur);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
@Output() readonly change: EventEmitter<MDChipGridChange> = new EventEmitter<MDChipGridChange>();
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
@Output() readonly valueChange: EventEmitter<any> = new EventEmitter<any>();
|
|
156
|
-
|
|
157
|
-
@ContentChildren(MDChipRow, {
|
|
158
|
-
descendants: true,
|
|
159
|
-
})
|
|
160
|
-
override _chips: QueryList<MDChipRow> = undefined!;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
readonly stateChanges = new Subject<void>();
|
|
164
|
-
|
|
165
|
-
get errorState() {
|
|
166
|
-
return this._errorStateTracker.errorState;
|
|
167
|
-
}
|
|
168
|
-
set errorState(value: boolean) {
|
|
169
|
-
this._errorStateTracker.errorState = value;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
constructor(...args: unknown[]);
|
|
173
|
-
|
|
174
|
-
constructor() {
|
|
175
|
-
super();
|
|
176
|
-
|
|
177
|
-
const parentForm = inject(NgForm, { optional: true });
|
|
178
|
-
const parentFormGroup = inject(FormGroupDirective, { optional: true });
|
|
179
|
-
const defaultErrorStateMatcher = inject(ErrorStateMatcher);
|
|
180
|
-
|
|
181
|
-
if (this.ngControl) {
|
|
182
|
-
this.ngControl.valueAccessor = this;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
this._errorStateTracker = new _ErrorStateTracker(
|
|
186
|
-
defaultErrorStateMatcher,
|
|
187
|
-
this.ngControl,
|
|
188
|
-
parentFormGroup,
|
|
189
|
-
parentForm,
|
|
190
|
-
this.stateChanges
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
ngAfterContentInit() {
|
|
195
|
-
this.chipBlurChanges.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
196
|
-
this._blur();
|
|
197
|
-
this.stateChanges.next();
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
merge(this.chipFocusChanges, this._chips.changes)
|
|
201
|
-
.pipe(takeUntil(this._destroyed))
|
|
202
|
-
.subscribe(() => this.stateChanges.next());
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
ngDoCheck() {
|
|
206
|
-
if (this.ngControl) {
|
|
207
|
-
this.updateErrorState();
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
override ngOnDestroy() {
|
|
212
|
-
super.ngOnDestroy();
|
|
213
|
-
this.stateChanges.complete();
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
registerInput(inputElement: MDChipTextControl): void {
|
|
217
|
-
this._chipInput = inputElement;
|
|
218
|
-
this._chipInput.setDescribedByIds(this._ariaDescribedbyIds);
|
|
219
|
-
|
|
220
|
-
this._elementRef.nativeElement.removeAttribute('aria-describedby');
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
onContainerClick(event: MouseEvent) {
|
|
225
|
-
if (!this.disabled && !this._originatesFromChip(event)) {
|
|
226
|
-
this.focus();
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
override focus(): void {
|
|
232
|
-
if (this.disabled || this._chipInput?.focused) {
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
if (!this._chips.length || this._chips.first.disabled) {
|
|
237
|
-
if (!this._chipInput) {
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
Promise.resolve().then(() => this._chipInput!.focus());
|
|
243
|
-
} else {
|
|
244
|
-
const activeItem = this._keyManager.activeItem;
|
|
245
|
-
|
|
246
|
-
if (activeItem) {
|
|
247
|
-
activeItem.focus();
|
|
248
|
-
} else {
|
|
249
|
-
this._keyManager.setFirstItemActive();
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
this.stateChanges.next();
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
get describedByIds(): string[] {
|
|
257
|
-
if (this._chipInput) {
|
|
258
|
-
return this._chipInput.describedByIds || [];
|
|
259
|
-
}
|
|
260
|
-
const existing = this._elementRef.nativeElement.getAttribute('aria-describedby');
|
|
261
|
-
return existing ? existing.split(' ') : [];
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
setDescribedByIds(ids: string[]) {
|
|
266
|
-
this._ariaDescribedbyIds = ids;
|
|
267
|
-
|
|
268
|
-
if (this._chipInput) {
|
|
269
|
-
this._chipInput.setDescribedByIds(ids);
|
|
270
|
-
} else if (ids.length) {
|
|
271
|
-
this._elementRef.nativeElement.setAttribute('aria-describedby', ids.join(' '));
|
|
272
|
-
} else {
|
|
273
|
-
this._elementRef.nativeElement.removeAttribute('aria-describedby');
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
writeValue(value: any): void {
|
|
278
|
-
this._value = value;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
registerOnChange(fn: (value: any) => void): void {
|
|
283
|
-
this._onChange = fn;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
registerOnTouched(fn: () => void): void {
|
|
287
|
-
this._onTouched = fn;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
setDisabledState(isDisabled: boolean): void {
|
|
291
|
-
this.disabled = isDisabled;
|
|
292
|
-
this.stateChanges.next();
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
updateErrorState() {
|
|
296
|
-
this._errorStateTracker.updateErrorState();
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
_blur() {
|
|
300
|
-
if (!this.disabled) {
|
|
301
|
-
setTimeout(() => {
|
|
302
|
-
if (!this.focused) {
|
|
303
|
-
this._propagateChanges();
|
|
304
|
-
this._markAsTouched();
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
protected override _allowFocusEscape() {
|
|
311
|
-
if (!this._chipInput?.focused) {
|
|
312
|
-
super._allowFocusEscape();
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
override _handleKeydown(event: KeyboardEvent) {
|
|
317
|
-
const keyCode = event.keyCode;
|
|
318
|
-
const activeItem = this._keyManager.activeItem;
|
|
319
|
-
|
|
320
|
-
if (keyCode === TAB) {
|
|
321
|
-
if (
|
|
322
|
-
this._chipInput?.focused &&
|
|
323
|
-
hasModifierKey(event, 'shiftKey') &&
|
|
324
|
-
this._chips.length &&
|
|
325
|
-
!this._chips.last.disabled
|
|
326
|
-
) {
|
|
327
|
-
event.preventDefault();
|
|
328
|
-
|
|
329
|
-
if (activeItem) {
|
|
330
|
-
this._keyManager.setActiveItem(activeItem);
|
|
331
|
-
} else {
|
|
332
|
-
this._focusLastChip();
|
|
333
|
-
}
|
|
334
|
-
} else {
|
|
335
|
-
super._allowFocusEscape();
|
|
336
|
-
}
|
|
337
|
-
} else if (!this._chipInput?.focused) {
|
|
338
|
-
if ((keyCode === UP_ARROW || keyCode === DOWN_ARROW) && activeItem) {
|
|
339
|
-
const eligibleActions = this._chipActions.filter(
|
|
340
|
-
(action) => action._isPrimary === activeItem._isPrimary && !this._skipPredicate(action)
|
|
341
|
-
);
|
|
342
|
-
const currentIndex = eligibleActions.indexOf(activeItem);
|
|
343
|
-
const delta = event.keyCode === UP_ARROW ? -1 : 1;
|
|
344
|
-
|
|
345
|
-
event.preventDefault();
|
|
346
|
-
if (currentIndex > -1 && this._isValidIndex(currentIndex + delta)) {
|
|
347
|
-
this._keyManager.setActiveItem(eligibleActions[currentIndex + delta]);
|
|
348
|
-
}
|
|
349
|
-
} else {
|
|
350
|
-
super._handleKeydown(event);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
this.stateChanges.next();
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
_focusLastChip() {
|
|
358
|
-
if (this._chips.length) {
|
|
359
|
-
this._chips.last.focus();
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
private _propagateChanges(): void {
|
|
364
|
-
const valueToEmit = this._chips.length ? this._chips.toArray().map((chip) => chip.value) : [];
|
|
365
|
-
this._value = valueToEmit;
|
|
366
|
-
this.change.emit(new MDChipGridChange(this, valueToEmit));
|
|
367
|
-
this.valueChange.emit(valueToEmit);
|
|
368
|
-
this._onChange(valueToEmit);
|
|
369
|
-
this._changeDetectorRef.markForCheck();
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
private _markAsTouched() {
|
|
373
|
-
this._onTouched();
|
|
374
|
-
this._changeDetectorRef.markForCheck();
|
|
375
|
-
this.stateChanges.next();
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
@Injectable({providedIn: 'root'})
|
|
381
|
-
export class ErrorStateMatcher {
|
|
382
|
-
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean {
|
|
383
|
-
return !!(control && control.invalid && (control.touched || (form && form.submitted)));
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
export class _ErrorStateTracker {
|
|
388
|
-
errorState = false;
|
|
389
|
-
|
|
390
|
-
matcher: ErrorStateMatcher;
|
|
391
|
-
|
|
392
|
-
constructor(
|
|
393
|
-
private _defaultMatcher: ErrorStateMatcher | null,
|
|
394
|
-
public ngControl: NgControl | null,
|
|
395
|
-
private _parentFormGroup: FormGroupDirective | null,
|
|
396
|
-
private _parentForm: NgForm | null,
|
|
397
|
-
private _stateChanges: Subject<void>,
|
|
398
|
-
) {}
|
|
399
|
-
|
|
400
|
-
updateErrorState() {
|
|
401
|
-
const oldState = this.errorState;
|
|
402
|
-
const parent = this._parentFormGroup || this._parentForm;
|
|
403
|
-
const matcher = this.matcher || this._defaultMatcher;
|
|
404
|
-
const control = this.ngControl ? (this.ngControl.control as AbstractControl) : null;
|
|
405
|
-
const newState = matcher?.isErrorState(control, parent) ?? false;
|
|
406
|
-
|
|
407
|
-
if (newState !== oldState) {
|
|
408
|
-
this.errorState = newState;
|
|
409
|
-
this._stateChanges.next();
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import {ENTER, SPACE} from '@angular/cdk/keycodes';
|
|
2
|
-
import {Directive} from '@angular/core';
|
|
3
|
-
import { MD_CHIP_AVATAR, MD_CHIP_EDIT, MD_CHIP_REMOVE, MD_CHIP_TRAILING_ICON } from './tokens';
|
|
4
|
-
import { MDChipAction, MDChipContent } from './chip-action';
|
|
5
|
-
|
|
6
|
-
@Directive({
|
|
7
|
-
selector: 'md-chip-avatar, [mdChipAvatar]',
|
|
8
|
-
host: {
|
|
9
|
-
'class': 'md-mdc-chip-avatar mdc-evolution-chip__icon mdc-evolution-chip__icon--primary',
|
|
10
|
-
'role': 'img',
|
|
11
|
-
},
|
|
12
|
-
providers: [{provide: MD_CHIP_AVATAR, useExisting: MDChipAvatar}],
|
|
13
|
-
})
|
|
14
|
-
export class MDChipAvatar {}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
@Directive({
|
|
18
|
-
selector: 'md-chip-trailing-icon, [mdChipTrailingIcon]',
|
|
19
|
-
host: {
|
|
20
|
-
'class':
|
|
21
|
-
'md-mdc-chip-trailing-icon mdc-evolution-chip__icon mdc-evolution-chip__icon--trailing',
|
|
22
|
-
'aria-hidden': 'true',
|
|
23
|
-
},
|
|
24
|
-
providers: [{provide: MD_CHIP_TRAILING_ICON, useExisting: MDChipTrailingIcon}],
|
|
25
|
-
})
|
|
26
|
-
export class MDChipTrailingIcon extends MDChipContent {
|
|
27
|
-
override _isPrimary = false;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@Directive({
|
|
31
|
-
selector: '[mdChipEdit]',
|
|
32
|
-
host: {
|
|
33
|
-
'class':
|
|
34
|
-
'md-mdc-chip-edit md-mdc-chip-avatar md-focus-indicator ' +
|
|
35
|
-
'mdc-evolution-chip__icon mdc-evolution-chip__icon--primary',
|
|
36
|
-
'role': 'button',
|
|
37
|
-
'[attr.aria-hidden]': 'null',
|
|
38
|
-
},
|
|
39
|
-
providers: [{provide: MD_CHIP_EDIT, useExisting: MDChipEdit}],
|
|
40
|
-
})
|
|
41
|
-
export class MDChipEdit extends MDChipAction {
|
|
42
|
-
override _isPrimary = false;
|
|
43
|
-
override _isLeading = true;
|
|
44
|
-
|
|
45
|
-
override _handleClick(event: MouseEvent): void {
|
|
46
|
-
if (!this.disabled) {
|
|
47
|
-
event.stopPropagation();
|
|
48
|
-
event.preventDefault();
|
|
49
|
-
this._parentChip._edit();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
override _handleKeydown(event: KeyboardEvent) {
|
|
54
|
-
if ((event.keyCode === ENTER || event.keyCode === SPACE) && !this.disabled) {
|
|
55
|
-
event.stopPropagation();
|
|
56
|
-
event.preventDefault();
|
|
57
|
-
this._parentChip._edit();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@Directive({
|
|
63
|
-
selector: '[mdChipRemove]',
|
|
64
|
-
host: {
|
|
65
|
-
'class':
|
|
66
|
-
'md-mdc-chip-remove md-mdc-chip-trailing-icon md-focus-indicator ' +
|
|
67
|
-
'mdc-evolution-chip__icon mdc-evolution-chip__icon--trailing',
|
|
68
|
-
'role': 'button',
|
|
69
|
-
'[attr.aria-hidden]': 'null',
|
|
70
|
-
},
|
|
71
|
-
providers: [{provide: MD_CHIP_REMOVE, useExisting: MDChipRemove}],
|
|
72
|
-
})
|
|
73
|
-
export class MDChipRemove extends MDChipAction {
|
|
74
|
-
override _isPrimary = false;
|
|
75
|
-
|
|
76
|
-
override _handleClick(event: MouseEvent): void {
|
|
77
|
-
if (!this.disabled) {
|
|
78
|
-
event.stopPropagation();
|
|
79
|
-
event.preventDefault();
|
|
80
|
-
this._parentChip.remove();
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
override _handleKeydown(event: KeyboardEvent) {
|
|
85
|
-
if ((event.keyCode === ENTER || event.keyCode === SPACE) && !this.disabled) {
|
|
86
|
-
event.stopPropagation();
|
|
87
|
-
event.preventDefault();
|
|
88
|
-
this._parentChip.remove();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { BACKSPACE, hasModifierKey, ModifierKey } from '@angular/cdk/keycodes';
|
|
2
|
-
import {
|
|
3
|
-
Directive,
|
|
4
|
-
ElementRef,
|
|
5
|
-
EventEmitter,
|
|
6
|
-
Input,
|
|
7
|
-
OnChanges,
|
|
8
|
-
OnDestroy,
|
|
9
|
-
Output,
|
|
10
|
-
booleanAttribute,
|
|
11
|
-
inject,
|
|
12
|
-
} from '@angular/core';
|
|
13
|
-
import { _IdGenerator } from '@angular/cdk/a11y';
|
|
14
|
-
import { MDChipTextControl } from './chip-text-control';
|
|
15
|
-
import { MDChipGrid } from './chip-grid';
|
|
16
|
-
import { MD_CHIPS_DEFAULT_OPTIONS, MDChipsDefaultOptions, SeparatorKey } from './tokens';
|
|
17
|
-
|
|
18
|
-
export interface MDChipInputEvent {
|
|
19
|
-
input: HTMLInputElement;
|
|
20
|
-
value: string;
|
|
21
|
-
chipInput: MDChipInput;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@Directive({
|
|
25
|
-
selector: 'input[mdChipInputFor]',
|
|
26
|
-
exportAs: 'mdChipInput, mdChipInputFor',
|
|
27
|
-
host: {
|
|
28
|
-
class: 'md-mdc-chip-input md-mdc-input-element mdc-text-field__input md-input-element',
|
|
29
|
-
'(keydown)': '_keydown($event)',
|
|
30
|
-
'(blur)': '_blur()',
|
|
31
|
-
'(focus)': '_focus()',
|
|
32
|
-
'(input)': '_onInput()',
|
|
33
|
-
'[id]': 'id',
|
|
34
|
-
'[attr.disabled]': 'disabled && !disabledInteractive ? "" : null',
|
|
35
|
-
'[attr.placeholder]': 'placeholder || null',
|
|
36
|
-
'[attr.aria-invalid]': '_chipGrid && _chipGrid.ngControl ? _chipGrid.ngControl.invalid : null',
|
|
37
|
-
'[attr.aria-required]': '_chipGrid && _chipGrid.required || null',
|
|
38
|
-
'[attr.aria-disabled]': 'disabled && disabledInteractive ? "true" : null',
|
|
39
|
-
'[attr.readonly]': '_getReadonlyAttribute()',
|
|
40
|
-
'[attr.required]': '_chipGrid && _chipGrid.required || null',
|
|
41
|
-
},
|
|
42
|
-
})
|
|
43
|
-
export class MDChipInput implements MDChipTextControl, OnChanges, OnDestroy {
|
|
44
|
-
protected _elementRef = inject<ElementRef<HTMLInputElement>>(ElementRef);
|
|
45
|
-
|
|
46
|
-
focused: boolean = false;
|
|
47
|
-
|
|
48
|
-
@Input('mdChipInputFor')
|
|
49
|
-
get chipGrid(): MDChipGrid {
|
|
50
|
-
return this._chipGrid;
|
|
51
|
-
}
|
|
52
|
-
set chipGrid(value: MDChipGrid) {
|
|
53
|
-
if (value) {
|
|
54
|
-
this._chipGrid = value;
|
|
55
|
-
this._chipGrid.registerInput(this);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
protected _chipGrid: MDChipGrid;
|
|
59
|
-
|
|
60
|
-
@Input({ alias: 'mdChipInputAddOnBlur', transform: booleanAttribute })
|
|
61
|
-
addOnBlur: boolean = false;
|
|
62
|
-
|
|
63
|
-
@Input('mdChipInputSeparatorKeyCodes')
|
|
64
|
-
separatorKeyCodes: readonly (number | SeparatorKey)[] | ReadonlySet<number | SeparatorKey>;
|
|
65
|
-
|
|
66
|
-
@Output('mdChipInputTokenEnd')
|
|
67
|
-
readonly chipEnd: EventEmitter<MDChipInputEvent> = new EventEmitter<MDChipInputEvent>();
|
|
68
|
-
|
|
69
|
-
@Input() placeholder: string = '';
|
|
70
|
-
|
|
71
|
-
@Input() id: string = inject(_IdGenerator).getId('md-mdc-chip-list-input-');
|
|
72
|
-
|
|
73
|
-
@Input({ transform: booleanAttribute })
|
|
74
|
-
get disabled(): boolean {
|
|
75
|
-
return this._disabled || (this._chipGrid && this._chipGrid.disabled);
|
|
76
|
-
}
|
|
77
|
-
set disabled(value: boolean) {
|
|
78
|
-
this._disabled = value;
|
|
79
|
-
}
|
|
80
|
-
private _disabled: boolean = false;
|
|
81
|
-
|
|
82
|
-
@Input({ transform: booleanAttribute })
|
|
83
|
-
readonly: boolean = false;
|
|
84
|
-
|
|
85
|
-
@Input({ alias: 'mdChipInputDisabledInteractive', transform: booleanAttribute })
|
|
86
|
-
disabledInteractive: boolean;
|
|
87
|
-
|
|
88
|
-
get empty(): boolean {
|
|
89
|
-
return !this.inputElement.value;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
readonly inputElement!: HTMLInputElement;
|
|
93
|
-
|
|
94
|
-
constructor() {
|
|
95
|
-
const defaultOptions = inject<MDChipsDefaultOptions>(MD_CHIPS_DEFAULT_OPTIONS);
|
|
96
|
-
|
|
97
|
-
this.inputElement = this._elementRef.nativeElement as HTMLInputElement;
|
|
98
|
-
this.separatorKeyCodes = defaultOptions.separatorKeyCodes;
|
|
99
|
-
this.disabledInteractive = defaultOptions.inputDisabledInteractive ?? false;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
ngOnChanges() {
|
|
103
|
-
this._chipGrid.stateChanges.next();
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
ngOnDestroy(): void {
|
|
107
|
-
this.chipEnd.complete();
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
_keydown(event: KeyboardEvent) {
|
|
111
|
-
if (this.empty && event.keyCode === BACKSPACE) {
|
|
112
|
-
if (!event.repeat) {
|
|
113
|
-
this._chipGrid._focusLastChip();
|
|
114
|
-
}
|
|
115
|
-
event.preventDefault();
|
|
116
|
-
} else {
|
|
117
|
-
this._emitChipEnd(event);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
_blur() {
|
|
122
|
-
if (this.addOnBlur) {
|
|
123
|
-
this._emitChipEnd();
|
|
124
|
-
}
|
|
125
|
-
this.focused = false;
|
|
126
|
-
if (!this._chipGrid.focused) {
|
|
127
|
-
this._chipGrid._blur();
|
|
128
|
-
}
|
|
129
|
-
this._chipGrid.stateChanges.next();
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
_focus() {
|
|
133
|
-
this.focused = true;
|
|
134
|
-
this._chipGrid.stateChanges.next();
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
_emitChipEnd(event?: KeyboardEvent) {
|
|
138
|
-
if (!event || (this._isSeparatorKey(event) && !event.repeat)) {
|
|
139
|
-
this.chipEnd.emit({
|
|
140
|
-
input: this.inputElement,
|
|
141
|
-
value: this.inputElement.value,
|
|
142
|
-
chipInput: this,
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
event?.preventDefault();
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
_onInput() {
|
|
150
|
-
this._chipGrid.stateChanges.next();
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
focus(): void {
|
|
154
|
-
this.inputElement.focus();
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
clear(): void {
|
|
158
|
-
this.inputElement.value = '';
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
get describedByIds(): string[] {
|
|
162
|
-
const element = this._elementRef.nativeElement;
|
|
163
|
-
const existingDescribedBy = element.getAttribute('aria-describedby');
|
|
164
|
-
|
|
165
|
-
return existingDescribedBy?.split(' ') || [];
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
setDescribedByIds(ids: string[]): void {
|
|
169
|
-
const element = this._elementRef.nativeElement;
|
|
170
|
-
|
|
171
|
-
if (ids.length) {
|
|
172
|
-
element.setAttribute('aria-describedby', ids.join(' '));
|
|
173
|
-
} else {
|
|
174
|
-
element.removeAttribute('aria-describedby');
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
private _isSeparatorKey(event: KeyboardEvent): boolean {
|
|
179
|
-
if (!this.separatorKeyCodes) {
|
|
180
|
-
return false;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
for (const key of this.separatorKeyCodes) {
|
|
184
|
-
let keyCode: number;
|
|
185
|
-
let modifiers: readonly ModifierKey[] | null;
|
|
186
|
-
|
|
187
|
-
if (typeof key === 'number') {
|
|
188
|
-
keyCode = key;
|
|
189
|
-
modifiers = null;
|
|
190
|
-
} else {
|
|
191
|
-
keyCode = key.keyCode;
|
|
192
|
-
modifiers = key.modifiers;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
const modifiersMatch = !modifiers?.length ? !hasModifierKey(event) : hasModifierKey(event, ...modifiers);
|
|
196
|
-
|
|
197
|
-
if (keyCode === event.keyCode && modifiersMatch) {
|
|
198
|
-
return true;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
return false;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
protected _getReadonlyAttribute(): string | null {
|
|
206
|
-
return this.readonly || (this.disabled && this.disabledInteractive) ? 'true' : null;
|
|
207
|
-
}
|
|
208
|
-
}
|