@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,148 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
booleanAttribute,
|
|
3
|
-
ChangeDetectorRef,
|
|
4
|
-
computed,
|
|
5
|
-
Directive,
|
|
6
|
-
inject,
|
|
7
|
-
input,
|
|
8
|
-
signal,
|
|
9
|
-
} from '@angular/core';
|
|
10
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
11
|
-
|
|
12
|
-
@Directive({ standalone: true })
|
|
13
|
-
/**
|
|
14
|
-
* Base class for editable form-like components using Angular Signals and CVA.
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* - Implements `ControlValueAccessor` so children participate in Angular Forms.
|
|
18
|
-
* - Exposes a signal-based `modelValue` and signalized inputs for UI state.
|
|
19
|
-
* - Provides helpers for disabled-state handling and change detection.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* @Component({...})
|
|
24
|
-
* export class MyToggle extends BaseEditableHolder {
|
|
25
|
-
* // call this.writeModelValue(newValue) on user action
|
|
26
|
-
* // and this.onModelChange(this.modelValue()) to propagate to the form.
|
|
27
|
-
* }
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @public
|
|
31
|
-
*/
|
|
32
|
-
export class BaseEditableHolder implements ControlValueAccessor {
|
|
33
|
-
/** Change detector used by children to mark for check after updates. */
|
|
34
|
-
cd = inject(ChangeDetectorRef);
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Reactive internal value for the control (Signal).
|
|
38
|
-
* @default undefined
|
|
39
|
-
*/
|
|
40
|
-
modelValue = signal<string | string[] | any | undefined>(undefined);
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Optional "required" flag as a signalized input.
|
|
44
|
-
* @remarks Value is transformed via `booleanAttribute`.
|
|
45
|
-
*/
|
|
46
|
-
required = input(undefined, { transform: booleanAttribute });
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Optional "invalid" flag as a signalized input (used for UI state).
|
|
50
|
-
* @remarks Value is transformed via `booleanAttribute`.
|
|
51
|
-
*/
|
|
52
|
-
invalid = input(undefined, { transform: booleanAttribute });
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Disabled input as a signal (explicit/external).
|
|
56
|
-
* @remarks Value is transformed via `booleanAttribute`.
|
|
57
|
-
*/
|
|
58
|
-
disabled = input(undefined, { transform: booleanAttribute });
|
|
59
|
-
|
|
60
|
-
/** Optional control name (useful for forms & a11y attributes). */
|
|
61
|
-
name = input<string | undefined>();
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Internal disabled state set via CVA's `setDisabledState`.
|
|
65
|
-
* @default false
|
|
66
|
-
* @internal
|
|
67
|
-
*/
|
|
68
|
-
_disabled = signal<boolean>(false);
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Effective disabled state:
|
|
72
|
-
* `true` if either the input `disabled()` is truthy OR `setDisabledState(true)` was called.
|
|
73
|
-
*/
|
|
74
|
-
$disabled = computed(() => {
|
|
75
|
-
return this.disabled() || this._disabled();
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
/** CVA onChange callback (assigned by Angular Forms). */
|
|
79
|
-
onModelChange: Function = () => {};
|
|
80
|
-
|
|
81
|
-
/** CVA onTouched callback (assigned by Angular Forms). */
|
|
82
|
-
onModelTouched: Function = () => {};
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Programmatically set the internal disabled state (used by `setDisabledState`).
|
|
86
|
-
* @param value New disabled state.
|
|
87
|
-
*/
|
|
88
|
-
writeDisabledState(value: boolean) {
|
|
89
|
-
this._disabled.set(value);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Overridable hook invoked by `writeValue`.
|
|
94
|
-
* Child components can coerce or transform incoming values here.
|
|
95
|
-
* Call `setModelValue(value)` to persist.
|
|
96
|
-
*
|
|
97
|
-
* @param value Incoming value from the external model.
|
|
98
|
-
* @param setModelValue Callback to update the internal `modelValue`.
|
|
99
|
-
* @protected
|
|
100
|
-
*/
|
|
101
|
-
protected writeControlValue(value: any, setModelValue?: (value: any) => void) {}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* CVA: writes an external value into the control.
|
|
105
|
-
* Delegates to {@link writeControlValue} so children can customize behavior.
|
|
106
|
-
*
|
|
107
|
-
* @param value Value coming from the Angular Forms model.
|
|
108
|
-
*/
|
|
109
|
-
writeValue(value: any) {
|
|
110
|
-
this.writeControlValue(value, this.writeModelValue.bind(this));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Updates the internal value signal (`modelValue`) from the component itself
|
|
115
|
-
* (e.g., on user input). This does **not** notify the Forms API by itself.
|
|
116
|
-
* Invoke {@link onModelChange} after this to propagate when appropriate.
|
|
117
|
-
*
|
|
118
|
-
* @param value New internal value to set.
|
|
119
|
-
*/
|
|
120
|
-
writeModelValue(value: any) {
|
|
121
|
-
this.modelValue.set(value);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* CVA: registers the callback to propagate value changes to Angular Forms.
|
|
126
|
-
* @param fn Callback invoked when the control's value changes.
|
|
127
|
-
*/
|
|
128
|
-
registerOnChange(fn: Function) {
|
|
129
|
-
this.onModelChange = fn;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* CVA: registers the callback to mark the control as touched.
|
|
134
|
-
* @param fn Callback invoked when the control is touched.
|
|
135
|
-
*/
|
|
136
|
-
registerOnTouched(fn: Function) {
|
|
137
|
-
this.onModelTouched = fn;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* CVA: enables/disables the control from the Forms API.
|
|
142
|
-
* @param val `true` to disable, `false` to enable.
|
|
143
|
-
*/
|
|
144
|
-
setDisabledState(val: boolean) {
|
|
145
|
-
this.writeDisabledState(val);
|
|
146
|
-
this.cd.markForCheck();
|
|
147
|
-
}
|
|
148
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<input
|
|
2
|
-
#input
|
|
3
|
-
class="toggleswitch-input"
|
|
4
|
-
[checked]="checked()"
|
|
5
|
-
type="checkbox"
|
|
6
|
-
role="switch"
|
|
7
|
-
[attr.required]="required() ? '' : undefined"
|
|
8
|
-
[attr.disabled]="$disabled() ? '' : undefined"
|
|
9
|
-
[attr.aria-checked]="checked()"
|
|
10
|
-
(focus)="onFocus()"
|
|
11
|
-
(blur)="onBlur()"
|
|
12
|
-
/>
|
|
13
|
-
<div class="toggleswitch-slider">
|
|
14
|
-
<div class="toggleswitch-handle"></div>
|
|
15
|
-
</div>
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
@use './../../styles/vars.scss' as color-vars;
|
|
2
|
-
|
|
3
|
-
$toggle-width: 40px;
|
|
4
|
-
$toggle-height: 20px;
|
|
5
|
-
|
|
6
|
-
$toggleswitch-handle-size: 1rem;
|
|
7
|
-
$toggleswitch-slide-duration: 0.2s;
|
|
8
|
-
$toggleswitch-border-radius: 10px;
|
|
9
|
-
$toggleswitch-gap: 0.25rem;
|
|
10
|
-
$toggleswitch-focus-ring-offset: 2px;
|
|
11
|
-
$toggleswitch-focus-ring-width: 1px;
|
|
12
|
-
$toggleswitch-focus-ring-style: solid;
|
|
13
|
-
$toggleswitch-focus-ring-color: color-vars.$Link;
|
|
14
|
-
|
|
15
|
-
md-switch {
|
|
16
|
-
display: inline-block;
|
|
17
|
-
|
|
18
|
-
position: relative;
|
|
19
|
-
width: $toggle-width;
|
|
20
|
-
height: $toggle-height;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.toggleswitch-input {
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
appearance: none;
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: 0;
|
|
28
|
-
inset-inline-start: 0;
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 100%;
|
|
31
|
-
padding: 0;
|
|
32
|
-
margin: 0;
|
|
33
|
-
opacity: 0;
|
|
34
|
-
z-index: 1;
|
|
35
|
-
outline: 0 none;
|
|
36
|
-
border-radius: 10px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
md-switch.toggleswitch-checked .toggleswitch-slider {
|
|
40
|
-
background: color-vars.$Link;
|
|
41
|
-
border-color: transparent;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
md-switch.toggleswitch-checked .toggleswitch-handle {
|
|
45
|
-
inset-inline-start: calc($toggle-width - calc($toggleswitch-handle-size + $toggleswitch-gap));
|
|
46
|
-
background: #ffffff;
|
|
47
|
-
color: color-vars.$Link;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
md-switch.disabled .toggleswitch-handle {
|
|
52
|
-
background: #64748b;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
md-switch.disabled .toggleswitch-slider {
|
|
56
|
-
background: #e2e8f0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
.toggleswitch-slider {
|
|
61
|
-
cursor: pointer;
|
|
62
|
-
width: 100%;
|
|
63
|
-
height: 100%;
|
|
64
|
-
border-width: 1px;
|
|
65
|
-
border-style: solid;
|
|
66
|
-
border-color: transparent;
|
|
67
|
-
background: #cbd5e1;
|
|
68
|
-
border-radius: $toggleswitch-border-radius;
|
|
69
|
-
outline-color: transparent;
|
|
70
|
-
box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05);
|
|
71
|
-
transition: background $toggleswitch-slide-duration, color $toggleswitch-slide-duration,
|
|
72
|
-
border-color $toggleswitch-slide-duration, outline-color $toggleswitch-slide-duration,
|
|
73
|
-
box-shadow $toggleswitch-slide-duration;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.toggleswitch-handle {
|
|
77
|
-
position: absolute;
|
|
78
|
-
top: 50%;
|
|
79
|
-
background: #ffffff;
|
|
80
|
-
color: color-vars.$Link;
|
|
81
|
-
width: 1rem;
|
|
82
|
-
height: 1rem;
|
|
83
|
-
inset-inline-start: $toggleswitch-gap;
|
|
84
|
-
margin-block-start: calc((-1 * $toggleswitch-handle-size) / 2);
|
|
85
|
-
border-radius: $toggleswitch-border-radius;
|
|
86
|
-
transition: background $toggleswitch-slide-duration, color $toggleswitch-slide-duration,
|
|
87
|
-
inset-inline-start $toggleswitch-slide-duration, box-shadow $toggleswitch-slide-duration;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
md-switch:not(.disabled):has(.toggleswitch-input:focus-visible) .toggleswitch-slider {
|
|
91
|
-
outline: $toggleswitch-focus-ring-width $toggleswitch-focus-ring-style $toggleswitch-focus-ring-color;
|
|
92
|
-
outline-offset: $toggleswitch-focus-ring-offset;
|
|
93
|
-
}
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
forwardRef,
|
|
3
|
-
Component,
|
|
4
|
-
Input,
|
|
5
|
-
OnInit,
|
|
6
|
-
ViewEncapsulation,
|
|
7
|
-
Output,
|
|
8
|
-
OnDestroy,
|
|
9
|
-
inject,
|
|
10
|
-
HostListener,
|
|
11
|
-
booleanAttribute,
|
|
12
|
-
EventEmitter,
|
|
13
|
-
ViewChild,
|
|
14
|
-
ElementRef,
|
|
15
|
-
numberAttribute,
|
|
16
|
-
} from '@angular/core';
|
|
17
|
-
import { ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
18
|
-
import { _IdGenerator } from '@angular/cdk/a11y';
|
|
19
|
-
import { BaseEditableHolder } from './base-editor-helper';
|
|
20
|
-
|
|
21
|
-
@Component({
|
|
22
|
-
selector: 'md-switch',
|
|
23
|
-
templateUrl: './switch.component.html',
|
|
24
|
-
styleUrls: ['./switch.component.scss'],
|
|
25
|
-
standalone: false,
|
|
26
|
-
encapsulation: ViewEncapsulation.None,
|
|
27
|
-
providers: [
|
|
28
|
-
{
|
|
29
|
-
provide: NG_VALUE_ACCESSOR,
|
|
30
|
-
useExisting: forwardRef(() => MDSwitch),
|
|
31
|
-
multi: true,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
provide: NG_VALIDATORS,
|
|
35
|
-
useExisting: MDSwitch,
|
|
36
|
-
multi: true,
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
host: {
|
|
40
|
-
'[class.toggleswitch-checked]': 'checked()',
|
|
41
|
-
'[class.disabled]': '$disabled()',
|
|
42
|
-
'[class.invalid]': 'invalid()',
|
|
43
|
-
},
|
|
44
|
-
})
|
|
45
|
-
/**
|
|
46
|
-
* Toggle switch compatible with Angular Forms.
|
|
47
|
-
*
|
|
48
|
-
* @remarks
|
|
49
|
-
* - Implements `ControlValueAccessor` (works with Reactive Forms and `ngModel`).
|
|
50
|
-
* - Emits {@link MDSwitch.onChange | onChange} only for **user-driven** interactions.
|
|
51
|
-
* For programmatic updates, rely on `ngModelChange` or form `valueChanges`.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```html
|
|
55
|
-
* <md-switch [(ngModel)]="enabled" (onChange)="log($event)"></md-switch>
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* @public
|
|
59
|
-
* @fires MDSwitch#onChange
|
|
60
|
-
*/
|
|
61
|
-
export class MDSwitch extends BaseEditableHolder implements OnInit, OnDestroy, ControlValueAccessor {
|
|
62
|
-
/**
|
|
63
|
-
* Backing unique id used as a default for {@link id}.
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
private _uniqueId: string;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Host element id. Can be overridden by the consumer.
|
|
70
|
-
* @default auto-generated value like `"slide-toggle-..."`
|
|
71
|
-
*/
|
|
72
|
-
@Input() id: string;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Keyboard tab order for the internal input.
|
|
76
|
-
* @remarks Value is transformed via `numberAttribute`.
|
|
77
|
-
*/
|
|
78
|
-
@Input({ transform: numberAttribute }) tabindex: number | undefined;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Read-only mode: prevents user interaction while still allowing focus.
|
|
82
|
-
* @remarks Value is transformed via `booleanAttribute`.
|
|
83
|
-
*/
|
|
84
|
-
@Input({ transform: booleanAttribute }) readonly: boolean | undefined;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Host click handler.
|
|
88
|
-
*
|
|
89
|
-
* @param event Browser `MouseEvent`.
|
|
90
|
-
* @remarks Delegates to {@link _handleClick}.
|
|
91
|
-
* @internal
|
|
92
|
-
*/
|
|
93
|
-
@HostListener('click', ['$event'])
|
|
94
|
-
onHostClick(event: MouseEvent) {
|
|
95
|
-
this._handleClick(event);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Emits when the user toggles the switch via UI interaction.
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```html
|
|
103
|
-
* <md-switch (onChange)="handleChange($event)"></md-switch>
|
|
104
|
-
* ```
|
|
105
|
-
*/
|
|
106
|
-
@Output() onChange: EventEmitter<ToggleSwitchChangeEvent> = new EventEmitter<ToggleSwitchChangeEvent>();
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Template reference to the internal input element (for focus management).
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
112
|
-
@ViewChild('input') input!: ElementRef;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Focus ring helper for template/styles.
|
|
116
|
-
* @internal
|
|
117
|
-
*/
|
|
118
|
-
focused: boolean = false;
|
|
119
|
-
|
|
120
|
-
constructor() {
|
|
121
|
-
super();
|
|
122
|
-
this.id = this._uniqueId = inject(_IdGenerator).getId('slide-toggle-');
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** Lifecycle: initialization (reserved for future use). */
|
|
126
|
-
ngOnInit(): void {}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Synchronous validator hook (provided via `NG_VALIDATORS`).
|
|
130
|
-
* @remarks Currently a stub.
|
|
131
|
-
*/
|
|
132
|
-
validate() {}
|
|
133
|
-
|
|
134
|
-
/** Lifecycle: teardown (reserved for future use). */
|
|
135
|
-
ngOnDestroy(): void {}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* ControlValueAccessor: write an external value into the component.
|
|
139
|
-
*
|
|
140
|
-
* @param value Value coming from the form model.
|
|
141
|
-
* @param setModelValue Callback to update the base class model value.
|
|
142
|
-
* @remarks Calls `markForCheck` to ensure change detection runs.
|
|
143
|
-
*/
|
|
144
|
-
override writeControlValue(value: any, setModelValue: (value: any) => void): void {
|
|
145
|
-
setModelValue(value);
|
|
146
|
-
this.cd.markForCheck();
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/** Focus-in handler (called from the template). */
|
|
150
|
-
onFocus() {
|
|
151
|
-
this.focused = true;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Focus-out handler (called from the template).
|
|
156
|
-
* @remarks Triggers `onModelTouched()` for forms.
|
|
157
|
-
*/
|
|
158
|
-
onBlur() {
|
|
159
|
-
this.focused = false;
|
|
160
|
-
this.onModelTouched();
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Centralized click logic:
|
|
165
|
-
* - toggles the model via `BaseEditableHolder`;
|
|
166
|
-
* - calls `onModelChange()` for the form;
|
|
167
|
-
* - emits {@link onChange} with details;
|
|
168
|
-
* - returns focus to the input for accessible keyboard flow.
|
|
169
|
-
*
|
|
170
|
-
* @param event Original browser `Event`.
|
|
171
|
-
* @internal
|
|
172
|
-
*/
|
|
173
|
-
_handleClick(event: Event) {
|
|
174
|
-
if (!this.$disabled() && !this.readonly) {
|
|
175
|
-
this.writeModelValue(!this.modelValue());
|
|
176
|
-
this.onModelChange(this.modelValue());
|
|
177
|
-
this.onChange.emit({
|
|
178
|
-
originalEvent: event,
|
|
179
|
-
checked: this.modelValue(),
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
this.input.nativeElement.focus();
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Convenience getter for host class binding.
|
|
188
|
-
* @returns Current checked state.
|
|
189
|
-
*/
|
|
190
|
-
checked() {
|
|
191
|
-
return this.modelValue();
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Event emitted by {@link MDSwitch} on user-initiated change.
|
|
197
|
-
*/
|
|
198
|
-
export interface ToggleSwitchChangeEvent {
|
|
199
|
-
/** Original browser event. */
|
|
200
|
-
originalEvent: Event;
|
|
201
|
-
/** New checked state. */
|
|
202
|
-
checked: boolean;
|
|
203
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { MDSwitch } from './switch.component';
|
|
4
|
-
|
|
5
|
-
@NgModule({
|
|
6
|
-
exports: [MDSwitch],
|
|
7
|
-
declarations: [MDSwitch],
|
|
8
|
-
imports: [CommonModule],
|
|
9
|
-
})
|
|
10
|
-
export class MDSwitchModule {}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Configuration options for the Tabs module.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* Provide this via the {@link TABS_CONFIG} injection token at the app or feature level.
|
|
8
|
-
* Each field is optional; omit to use component defaults.
|
|
9
|
-
*
|
|
10
|
-
* @example Provide defaults app-wide
|
|
11
|
-
* ```ts
|
|
12
|
-
* bootstrapApplication(AppComponent, {
|
|
13
|
-
* providers: [
|
|
14
|
-
* { provide: TABS_CONFIG, useValue: {
|
|
15
|
-
* animationDuration: '250ms',
|
|
16
|
-
* fitInkBarToContent: true,
|
|
17
|
-
* alignTabs: 'center'
|
|
18
|
-
* } as TabsConfig }
|
|
19
|
-
* ]
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export interface TabsConfig {
|
|
24
|
-
/**
|
|
25
|
-
* Duration of tab header/ink bar animations.
|
|
26
|
-
* @example "200ms", "300ms ease-out"
|
|
27
|
-
*/
|
|
28
|
-
animationDuration?: string;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Disables header pagination arrows when there are many tabs.
|
|
32
|
-
* If `true`, all tabs must fit without scrolling.
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
disablePagination?: boolean;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* If `true`, ink bar width matches the label content rather than the full tab.
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
fitInkBarToContent?: boolean;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Automatically resizes the tab-body container to match the active tab's height.
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
dynamicHeight?: boolean;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* `tabindex` applied to the tab body content container for accessibility.
|
|
51
|
-
* @default 0
|
|
52
|
-
*/
|
|
53
|
-
contentTabIndex?: number;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Preserves inactive tab contents in the DOM instead of destroying them.
|
|
57
|
-
* Useful for keeping component state or form controls alive.
|
|
58
|
-
* @default false
|
|
59
|
-
*/
|
|
60
|
-
preserveContent?: boolean;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Stretches tabs to evenly fill the header width.
|
|
64
|
-
* @default false
|
|
65
|
-
*/
|
|
66
|
-
stretchTabs?: boolean;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Horizontal alignment of tab labels in the header.
|
|
70
|
-
* @default 'start'
|
|
71
|
-
*/
|
|
72
|
-
alignTabs?: 'start' | 'center' | 'end';
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Injection token for providing {@link TabsConfig} defaults.
|
|
77
|
-
*
|
|
78
|
-
* @example Feature-level override
|
|
79
|
-
* ```ts
|
|
80
|
-
* @NgModule({
|
|
81
|
-
* providers: [{ provide: TABS_CONFIG, useValue: { stretchTabs: true } }]
|
|
82
|
-
* })
|
|
83
|
-
* export class TabsFeatureModule {}
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @example Injecting the config
|
|
87
|
-
* ```ts
|
|
88
|
-
* @Component({...})
|
|
89
|
-
* export class TabsHeaderComponent {
|
|
90
|
-
* constructor(@Inject(TABS_CONFIG) readonly cfg: TabsConfig) {}
|
|
91
|
-
* }
|
|
92
|
-
* ```
|
|
93
|
-
*/
|
|
94
|
-
export const TABS_CONFIG = new InjectionToken<TabsConfig>('TABS_CONFIG');
|
package/src/lib/v2/tabs/index.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export {ScrollDirection, PaginatedTabHeader} from './paginated-tab-header';
|
|
4
|
-
export {
|
|
5
|
-
TabBodyPortal,
|
|
6
|
-
MDTabBody,
|
|
7
|
-
TabBodyPositionState,
|
|
8
|
-
TabBodyOriginState,
|
|
9
|
-
} from './tab-body';
|
|
10
|
-
export {TabsConfig, TABS_CONFIG} from './config';
|
|
11
|
-
export {MDTabContent, TAB_CONTENT} from './tab-content';
|
|
12
|
-
export {MDTabLabel, MD_TAB, MD_TAB_LABEL} from './tab-label';
|
|
13
|
-
export {MDTab, TAB_GROUP} from './tab';
|
|
14
|
-
export {
|
|
15
|
-
InkBar,
|
|
16
|
-
INK_BAR_POSITIONER_FACTORY,
|
|
17
|
-
INK_BAR_POSITIONER,
|
|
18
|
-
} from './ink-bar';
|
|
19
|
-
export {MDTabHeader} from './tab-header';
|
|
20
|
-
export {
|
|
21
|
-
MDTabGroup,
|
|
22
|
-
MDTabChangeEvent,
|
|
23
|
-
TabGroupBaseHeader,
|
|
24
|
-
TabHeaderPosition,
|
|
25
|
-
} from './tab-group';
|
|
26
|
-
export {MDTabLabelWrapper} from './tab-label-wrapper';
|
|
27
|
-
export { MDTabsModule } from './tabs.module';
|
|
28
|
-
|