@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,53 +0,0 @@
|
|
|
1
|
-
<mefdev-inner-card
|
|
2
|
-
MinimalHeader="true"
|
|
3
|
-
TimeOut="2500"
|
|
4
|
-
[Refresh]="false"
|
|
5
|
-
[Close]="false"
|
|
6
|
-
>
|
|
7
|
-
|
|
8
|
-
<ng-template #CardTitle>
|
|
9
|
-
<ng-template class="card-title" [ngTemplateOutlet]="title"></ng-template>
|
|
10
|
-
</ng-template>
|
|
11
|
-
|
|
12
|
-
<ng-template #CardExtraControls>
|
|
13
|
-
<div class="plugin-type"
|
|
14
|
-
[ngClass]="{
|
|
15
|
-
'b-color-Light-Gray-1': type_color === 'UNSET',
|
|
16
|
-
'b-color-Red': type_color === 'RED',
|
|
17
|
-
'b-color-Green': type_color === 'GREEN'}">
|
|
18
|
-
{{type_text}}
|
|
19
|
-
</div>
|
|
20
|
-
</ng-template>
|
|
21
|
-
|
|
22
|
-
<div class="row h-100 m-b-10">
|
|
23
|
-
<div class="col-lg-3 col-12 card-col">
|
|
24
|
-
<div class="row">
|
|
25
|
-
<div class="col-12 card-img m-b-10">
|
|
26
|
-
<div *ngIf="!img || img == ''">
|
|
27
|
-
<img src="assets/images/md_icon.png"
|
|
28
|
-
style="max-width: 110px; max-height: 110px;"/>
|
|
29
|
-
</div>
|
|
30
|
-
<div *ngIf="img">
|
|
31
|
-
<img src="{{img}}" alt="" class="image-responsive-height img-middle"
|
|
32
|
-
height="110px"
|
|
33
|
-
style="max-width: 110px; max-height: 110px;"
|
|
34
|
-
onclick="imgClick()"
|
|
35
|
-
/>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="col-12 m-t-2 body-6 text-dark params-block">
|
|
39
|
-
<ng-template [ngTemplateOutlet]="params"></ng-template>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<div class="col-lg-5 col-12 card-col">
|
|
45
|
-
<ng-template [ngTemplateOutlet]="second_col"></ng-template>
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
<div class="col-lg-4 col-12 card-col mt-lg-0 mt-5">
|
|
49
|
-
<ng-template [ngTemplateOutlet]="third_col"></ng-template>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
</div>
|
|
53
|
-
</mefdev-inner-card>
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
@use './../../../styles/vars.scss' as v;
|
|
2
|
-
@use './../../../styles/fonts.scss';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
:host::ng-deep .params-block{
|
|
6
|
-
.row{
|
|
7
|
-
margin-top: 0.75em;
|
|
8
|
-
}
|
|
9
|
-
.row:last-child{
|
|
10
|
-
margin-bottom: 0.75em;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host::ng-deep .card-col{
|
|
15
|
-
min-height: 220px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host::ng-deep .header-link{
|
|
19
|
-
opacity: 1;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host::ng-deep .card-default{
|
|
23
|
-
background-color: v.$Light-Gray-3;
|
|
24
|
-
border-radius: 5px;
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host::ng-deep .card-title{
|
|
29
|
-
width: 80%;
|
|
30
|
-
color: black;
|
|
31
|
-
span{
|
|
32
|
-
@extend .h3;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:host::ng-deep .plugin-type{
|
|
37
|
-
border-radius: 5px 0px 0px 5px;
|
|
38
|
-
margin-right: -20px;
|
|
39
|
-
height: 28px;
|
|
40
|
-
padding: 5px 15px;
|
|
41
|
-
@extend .h6;
|
|
42
|
-
color: v.$White;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
:host::ng-deep .card-description{
|
|
47
|
-
height: 40px;
|
|
48
|
-
overflow-y: clip;
|
|
49
|
-
@extend .body-5;
|
|
50
|
-
color: v.$Dark-Gray-2;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
:host::ng-deep .card-no-description{
|
|
55
|
-
overflow-y: clip;
|
|
56
|
-
height: 60px;
|
|
57
|
-
@extend .body-5;
|
|
58
|
-
color: v.$Light-Gray-1;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:host::ng-deep .card-img{
|
|
62
|
-
padding: 0;
|
|
63
|
-
height: 130px;
|
|
64
|
-
background-color: v.$White;
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
width: -webkit-fill-available;
|
|
69
|
-
margin-right: calc(var(--bs-gutter-x) * .5);
|
|
70
|
-
margin-left: calc(var(--bs-gutter-x) * .5);
|
|
71
|
-
|
|
72
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { CartTypeColors } from './cart-type-colors.enum';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Component for displaying a long card with a title, parameters, and description.
|
|
7
|
-
*
|
|
8
|
-
* Example of usage:
|
|
9
|
-
*
|
|
10
|
-
* ```
|
|
11
|
-
* <mefdev-card-long
|
|
12
|
-
* [type_text]="'Type Text'"
|
|
13
|
-
* [type_color]="CartTypeColors.RED"
|
|
14
|
-
* [img]="'path/to/image.jpg'"
|
|
15
|
-
* [imgUrl]="'path/to/image'"
|
|
16
|
-
* [description]="'Card description'">
|
|
17
|
-
*
|
|
18
|
-
* <ng-template #title>
|
|
19
|
-
* <!-- Content for the card title -->
|
|
20
|
-
* </ng-template>
|
|
21
|
-
|
|
22
|
-
* <ng-template #params>
|
|
23
|
-
* <!-- Content for the card parameters -->
|
|
24
|
-
* </ng-template>
|
|
25
|
-
|
|
26
|
-
* <ng-template #second_col>
|
|
27
|
-
* <!-- Content for the second column -->
|
|
28
|
-
* </ng-template>
|
|
29
|
-
|
|
30
|
-
* <ng-template #third_col>
|
|
31
|
-
* <!-- Content for the third column -->
|
|
32
|
-
* </ng-template>
|
|
33
|
-
* </mefdev-card-long>
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/card/card_long</example-url>
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
@Component({
|
|
40
|
-
selector: 'mefdev-card-long',
|
|
41
|
-
templateUrl: './card-long.component.html',
|
|
42
|
-
styleUrls: ['./card-long.component.scss'],
|
|
43
|
-
standalone: false
|
|
44
|
-
})
|
|
45
|
-
export class CardLongComponent implements OnInit {
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Template for displaying the title of the card.
|
|
49
|
-
* ```
|
|
50
|
-
* <mefdev-card-long>
|
|
51
|
-
* <ng-template #title>
|
|
52
|
-
* <!-- Content for the card title -->
|
|
53
|
-
* </ng-template>
|
|
54
|
-
* </mefdev-card-long>
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
@ContentChild("title") title: TemplateRef<void>;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Template for displaying the parameters of the card.
|
|
61
|
-
* ```
|
|
62
|
-
* <mefdev-card-long>
|
|
63
|
-
* <ng-template #params>
|
|
64
|
-
* <!-- Content for the card params -->
|
|
65
|
-
* </ng-template>
|
|
66
|
-
* </mefdev-card-long>
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
@ContentChild("params") params: TemplateRef<void>;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Template for displaying the content of the second column.
|
|
73
|
-
* ```
|
|
74
|
-
* <mefdev-card-long>
|
|
75
|
-
* <ng-template #second_col>
|
|
76
|
-
* <!-- Content for the card second column -->
|
|
77
|
-
* </ng-template>
|
|
78
|
-
* </mefdev-card-long>
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
@ContentChild("second_col") second_col: TemplateRef<void>;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Template for displaying the content of the third column.
|
|
85
|
-
* ```
|
|
86
|
-
* <mefdev-card-long>
|
|
87
|
-
* <ng-template #third_col>
|
|
88
|
-
* <!-- Content for the card third column -->
|
|
89
|
-
* </ng-template>
|
|
90
|
-
* </mefdev-card-long>
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
@ContentChild("third_col") third_col: TemplateRef<void>;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* The text for the card type.
|
|
98
|
-
* @usageNotes
|
|
99
|
-
* ```
|
|
100
|
-
* <mefdev-card-long type_text = "'Type'"></<mefdev-card-long>
|
|
101
|
-
* ```
|
|
102
|
-
*/
|
|
103
|
-
@Input() type_text: string;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* The color of the card type.
|
|
107
|
-
* @usageNotes
|
|
108
|
-
* ```
|
|
109
|
-
* <mefdev-card-long type_color = "'RED'"></<mefdev-card-long>
|
|
110
|
-
* ```
|
|
111
|
-
* Colors: RED, UNSET, GREEN
|
|
112
|
-
|
|
113
|
-
*/
|
|
114
|
-
@Input() type_color: CartTypeColors = CartTypeColors.UNSET;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* The path to the image.
|
|
118
|
-
* @usageNotes
|
|
119
|
-
* ```
|
|
120
|
-
* <mefdev-card-long [img] = "'img/path/img.png'"></mefdev-card-long>
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
@Input() img: string;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* The path, where user goes after click at the image.
|
|
127
|
-
* @usageNotes
|
|
128
|
-
* ```
|
|
129
|
-
* <mefdev-card-long [imgUrl] = "'Img.url'"></mefdev-card-long>
|
|
130
|
-
* ```
|
|
131
|
-
*/
|
|
132
|
-
@Input() imgUrl: string;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* The description of the card.
|
|
136
|
-
* @usageNotes
|
|
137
|
-
* ```
|
|
138
|
-
* <mefdev-card-long [description] = "'description'"></mefdev-card-long>
|
|
139
|
-
* ```
|
|
140
|
-
*/
|
|
141
|
-
@Input() description: string;
|
|
142
|
-
|
|
143
|
-
constructor(
|
|
144
|
-
private router: Router
|
|
145
|
-
) { }
|
|
146
|
-
|
|
147
|
-
ngOnInit(): void {
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Event handler for image click.
|
|
152
|
-
* Navigates to the specified URL.
|
|
153
|
-
*/
|
|
154
|
-
public imgClick(){
|
|
155
|
-
this.router.navigate(['/', this.imgUrl.toString()])
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<div class="card-simple" [ngClass]="{ 'unused-block':isDisabled }">
|
|
2
|
-
<div class="row m-2 body-1" *ngIf="card_title">
|
|
3
|
-
<div class="col-12">
|
|
4
|
-
<ng-template [ngTemplateOutlet]="card_title"></ng-template>
|
|
5
|
-
</div>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="row m-2">
|
|
8
|
-
<div class="col-12">
|
|
9
|
-
<ng-content></ng-content>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Component for displaying a simple card with a title.
|
|
6
|
-
*
|
|
7
|
-
* Example of usage:
|
|
8
|
-
*```
|
|
9
|
-
* <mefdev-card-simple [disabled]="true">
|
|
10
|
-
* <ng-template #card_title>
|
|
11
|
-
* <!-- Content for the card title -->
|
|
12
|
-
* </ng-template>
|
|
13
|
-
* </mefdev-card-simple>
|
|
14
|
-
*```
|
|
15
|
-
*
|
|
16
|
-
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/card/card_simple</example-url>
|
|
17
|
-
*/
|
|
18
|
-
@Component({
|
|
19
|
-
selector: 'mefdev-card-simple',
|
|
20
|
-
templateUrl: './card-simple.component.html',
|
|
21
|
-
styleUrls: ['./card-simple.component.scss'],
|
|
22
|
-
standalone: false
|
|
23
|
-
})
|
|
24
|
-
export class CardSimpleComponent implements OnInit {
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Determines whether the card is disabled or not.
|
|
28
|
-
*/
|
|
29
|
-
@Input("disabled") isDisabled: boolean = false;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Template for displaying the title of the card.
|
|
33
|
-
*```
|
|
34
|
-
* <mefdev-card-simple>
|
|
35
|
-
* <ng-template #card_title>
|
|
36
|
-
* <h3>Card Title</h3>
|
|
37
|
-
* </ng-template>
|
|
38
|
-
* </mefdev-card-simple>
|
|
39
|
-
*```
|
|
40
|
-
*/
|
|
41
|
-
@ContentChild("card_title") card_title: TemplateRef<void>;
|
|
42
|
-
|
|
43
|
-
constructor() { }
|
|
44
|
-
|
|
45
|
-
ngOnInit(): void {
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { CardComponent } from './card/card.component';
|
|
4
|
-
import { MefDevSelectModule } from '../../pg-components/select/select.module';
|
|
5
|
-
import { MefdevInnerCardModule } from "./../../pg-components/card/card.module";
|
|
6
|
-
import { MefDevCollapseModule } from '../collapse/collapse.module';
|
|
7
|
-
import { CardLongComponent } from './card-long/card-long.component';
|
|
8
|
-
import { CardSimpleComponent } from './card-simple/card-simple.component';
|
|
9
|
-
|
|
10
|
-
export const mefDevCardComponents = [CardComponent, CardLongComponent, CardSimpleComponent];
|
|
11
|
-
@NgModule({
|
|
12
|
-
declarations: mefDevCardComponents,
|
|
13
|
-
exports: mefDevCardComponents,
|
|
14
|
-
imports: [
|
|
15
|
-
CommonModule,
|
|
16
|
-
MefDevCollapseModule,
|
|
17
|
-
MefDevSelectModule,
|
|
18
|
-
MefdevInnerCardModule,
|
|
19
|
-
]
|
|
20
|
-
})
|
|
21
|
-
export class MefDevCardModule { }
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<div class="row w-100 mt-2 card-title" [attr.aria-expanded]="_active" (click)="clickHeader($event)" role="tab"
|
|
2
|
-
href="javascript:;" [ngClass]="{'collapsed':!_active}">
|
|
3
|
-
<div class="col">
|
|
4
|
-
<ng-template [ngTemplateOutlet]="CardTitle"></ng-template>
|
|
5
|
-
</div>
|
|
6
|
-
<div class="col">
|
|
7
|
-
<i class="fa fa-angle-down float-end " aria-hidden="true" *ngIf="!_active"></i>
|
|
8
|
-
<i class="fa fa-angle-up float-end " aria-hidden="true" *ngIf="_active"></i>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<div class="collapse" [ngClass]="{'show':true,'active':_active,'inactive':!_active}" [@collapseState]="_active?'active':'inactive'">
|
|
13
|
-
<div *ngIf="_active"
|
|
14
|
-
class="card-body mb-3">
|
|
15
|
-
<ng-content></ng-content>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
@use './../../../styles/vars.scss' as c;
|
|
2
|
-
@use './../../../styles/fonts.scss';
|
|
3
|
-
|
|
4
|
-
:host{
|
|
5
|
-
background-color: transparent;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.card-title{
|
|
9
|
-
background-color: c.$Light-Gray-3;
|
|
10
|
-
padding: 17px;
|
|
11
|
-
margin: 0;
|
|
12
|
-
@extend .h3;
|
|
13
|
-
color: black;
|
|
14
|
-
}
|
|
15
|
-
.collapse{
|
|
16
|
-
background-color: c.$Light-Gray-3;
|
|
17
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
2
|
-
import { Component, ContentChild, ElementRef, EventEmitter, Host, HostBinding, Input, Output, TemplateRef } from '@angular/core';
|
|
3
|
-
import { CollapseSetComponent } from '../collapse-set/collapse-set.component';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Component for displaying a collapsible content.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* Example of usage:
|
|
11
|
-
*```
|
|
12
|
-
* <mefdev-collapse [Disabled]="false" [Active]="true" (stateChange)="onStateChange($event)">
|
|
13
|
-
* <ng-template #CardTitle>
|
|
14
|
-
* <!-- Content for the card title -->
|
|
15
|
-
* <h3>Card Title</h3>
|
|
16
|
-
* </ng-template>
|
|
17
|
-
*
|
|
18
|
-
* <!-- Content for the collapsible section -->
|
|
19
|
-
* <div>
|
|
20
|
-
Content inside collapse
|
|
21
|
-
* </div>
|
|
22
|
-
* </mefdev-collapse>
|
|
23
|
-
*
|
|
24
|
-
*```
|
|
25
|
-
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/collapse</example-url>
|
|
26
|
-
|
|
27
|
-
*/
|
|
28
|
-
@Component({
|
|
29
|
-
selector: 'mefdev-collapse',
|
|
30
|
-
templateUrl: './collapse.component.html',
|
|
31
|
-
styleUrls: ['./collapse.component.scss'],
|
|
32
|
-
animations: [
|
|
33
|
-
trigger('collapseState', [
|
|
34
|
-
state('inactive', style({
|
|
35
|
-
opacity: '0',
|
|
36
|
-
height: 0
|
|
37
|
-
})),
|
|
38
|
-
state('active', style({
|
|
39
|
-
opacity: '1',
|
|
40
|
-
height: '*'
|
|
41
|
-
})),
|
|
42
|
-
transition('inactive => active', animate('125ms ease-in')),
|
|
43
|
-
transition('active => inactive', animate('125ms ease-out'))
|
|
44
|
-
])
|
|
45
|
-
],
|
|
46
|
-
host: {
|
|
47
|
-
'[class.card]': 'true',
|
|
48
|
-
'[class.card-default]': 'true',
|
|
49
|
-
'[class.m-b-0]': 'true'
|
|
50
|
-
},
|
|
51
|
-
standalone: false
|
|
52
|
-
})
|
|
53
|
-
export class CollapseComponent {
|
|
54
|
-
|
|
55
|
-
private _disabled = false;
|
|
56
|
-
_active = false;
|
|
57
|
-
_el;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* ContentChild for the template of the card title.
|
|
61
|
-
*
|
|
62
|
-
* Example:
|
|
63
|
-
* ```
|
|
64
|
-
* <ng-template #CardTitle>
|
|
65
|
-
* <h3>Card Title</h3>
|
|
66
|
-
* </ng-template>
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
@ContentChild("CardTitle") CardTitle: TemplateRef<void>;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Indicates whether the collapse is disabled.
|
|
73
|
-
* Set this to `true` to disable the collapse. Defaults to `false`.
|
|
74
|
-
*/
|
|
75
|
-
@Input()
|
|
76
|
-
@HostBinding('class.disabled')
|
|
77
|
-
set Disabled(value: boolean) {
|
|
78
|
-
this._disabled = value;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
get Disabled(): boolean {
|
|
82
|
-
return this._disabled;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Indicates whether the collapse is active or not.
|
|
87
|
-
*/
|
|
88
|
-
@Input()
|
|
89
|
-
set Active(value: boolean) {
|
|
90
|
-
const active = value;
|
|
91
|
-
if (this._active === active) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
if (!this.Disabled) {
|
|
95
|
-
this._active = active;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
get Active(): boolean {
|
|
100
|
-
return this._active;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Event emitter for the state change of the collapse.
|
|
105
|
-
* Emits a boolean value indicating whether the collapse is active or not.
|
|
106
|
-
*
|
|
107
|
-
* Example:
|
|
108
|
-
* ```
|
|
109
|
-
* <mefdev-collapse (stateChange)="onStateChange($event)"></mefdev-collapse>
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
@Output() stateChange = new EventEmitter<boolean>();
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Event handler for the header click event.
|
|
116
|
-
* Toggles the active state of the collapse and emits the state change event.
|
|
117
|
-
*
|
|
118
|
-
* @param $event The mouse event object.
|
|
119
|
-
*/
|
|
120
|
-
clickHeader($event: MouseEvent): void {
|
|
121
|
-
this.Active = !this.Active;
|
|
122
|
-
this.stateChange.next(this.Active);
|
|
123
|
-
/** trigger host collapseSet click event */
|
|
124
|
-
this._collapseSet.pgClick(this);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
constructor(@Host() private _collapseSet: CollapseSetComponent, private _elementRef: ElementRef) {
|
|
128
|
-
this._el = this._elementRef.nativeElement;
|
|
129
|
-
this._collapseSet.addTab(this);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
File without changes
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { CollapseComponent } from '../collapse/collapse.component';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Component representing a set of collapsible panels.
|
|
7
|
-
*
|
|
8
|
-
* Example of usage:
|
|
9
|
-
*
|
|
10
|
-
*```
|
|
11
|
-
* <mefdev-collapse-set [Accordion]="true" [Horizontal]="true" [expandAny]="false">
|
|
12
|
-
* <mefdev-collapse [Disabled]="false" [Active]="true">
|
|
13
|
-
* <!-- Content for the collapse panel -->
|
|
14
|
-
* <h3>Panel 1</h3>
|
|
15
|
-
* <p>Panel 1 content...</p>
|
|
16
|
-
* </mefdev-collapse>
|
|
17
|
-
|
|
18
|
-
* <mefdev-collapse [Disabled]="false" [Active]="false">
|
|
19
|
-
* <!-- Content for the collapse panel -->
|
|
20
|
-
* <h3>Panel 2</h3>
|
|
21
|
-
* <p>Panel 2 content...</p>
|
|
22
|
-
* </mefdev-collapse>
|
|
23
|
-
|
|
24
|
-
* <mefdev-collapse [Disabled]="false" [Active]="false">
|
|
25
|
-
* <!-- Content for the collapse panel -->
|
|
26
|
-
* <h3>Panel 3</h3>
|
|
27
|
-
* <p>Panel 3 content...</p>
|
|
28
|
-
* </mefdev-collapse>
|
|
29
|
-
* </mefdev-collapse-set>
|
|
30
|
-
*```
|
|
31
|
-
*/
|
|
32
|
-
@Component({
|
|
33
|
-
selector: 'mefdev-collapse-set',
|
|
34
|
-
templateUrl: './collapse-set.component.html',
|
|
35
|
-
styleUrls: ['./collapse-set.component.scss'],
|
|
36
|
-
encapsulation: ViewEncapsulation.None,
|
|
37
|
-
standalone: false
|
|
38
|
-
})
|
|
39
|
-
export class CollapseSetComponent {
|
|
40
|
-
|
|
41
|
-
private _accordion = false;
|
|
42
|
-
private _horizontal = true;
|
|
43
|
-
private _expandAny = true;
|
|
44
|
-
panels: CollapseComponent[] = [];
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Indicates whether multiple panels can be expanded simultaneously.
|
|
48
|
-
* Set this to `true` to allow multiple panels to be expanded. Defaults to `false`.
|
|
49
|
-
*/
|
|
50
|
-
@Input()
|
|
51
|
-
set expandAny(value: boolean) {
|
|
52
|
-
this._accordion = value;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
get expandAny(): boolean {
|
|
56
|
-
return this._accordion;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Indicates whether the collapse set operates as an accordion.
|
|
61
|
-
* Set this to `true` to enable accordion behavior. Defaults to `false`.
|
|
62
|
-
*/
|
|
63
|
-
@Input()
|
|
64
|
-
set Accordion(value: boolean) {
|
|
65
|
-
this._accordion = value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
get Accordion(): boolean {
|
|
69
|
-
return this._accordion;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Indicates whether the collapse set is displayed horizontally or vertically.
|
|
74
|
-
* Set this to `true` for horizontal display and `false` for vertical display. Defaults to `true`.
|
|
75
|
-
*/
|
|
76
|
-
@Input()
|
|
77
|
-
set Horizontal(value: boolean) {
|
|
78
|
-
this._horizontal = value;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
get Horizontal(): boolean {
|
|
82
|
-
return this._horizontal;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Event handler for the click event on a collapse panel.
|
|
87
|
-
* Closes other panels if the collapse set is an accordion and does not allow multiple expansions.
|
|
88
|
-
*
|
|
89
|
-
* @param collapse The clicked collapse component.
|
|
90
|
-
*/
|
|
91
|
-
pgClick(collapse: CollapseComponent): void {
|
|
92
|
-
if (this.Accordion && !this.expandAny) {
|
|
93
|
-
this.panels.map((item, index) => {
|
|
94
|
-
const curIndex = this.panels.indexOf(collapse);
|
|
95
|
-
if (index !== curIndex) {
|
|
96
|
-
item.Active = false;
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Adds a collapse panel to the collapse set.
|
|
104
|
-
*
|
|
105
|
-
* @param collapse The collapse component to be added.
|
|
106
|
-
*/
|
|
107
|
-
addTab(collapse: CollapseComponent): void {
|
|
108
|
-
this.panels.push(collapse);
|
|
109
|
-
}
|
|
110
|
-
}
|