@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,295 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AfterViewInit, ChangeDetectorRef, Component,
|
|
3
|
-
ContentChild, ElementRef, EventEmitter,
|
|
4
|
-
Input, Output, Renderer2,
|
|
5
|
-
TemplateRef, ViewChild
|
|
6
|
-
} from '@angular/core';
|
|
7
|
-
import { MefdevExecutorPageComponent } from '../mefdev-executor-page/mefdev-executor-page.component';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Wrapper component that represents a specific encapsulated executor.
|
|
11
|
-
*
|
|
12
|
-
* Example of usage:
|
|
13
|
-
*```
|
|
14
|
-
* <mefdev-step-executor #mainExecutor [view]="'regular'">
|
|
15
|
-
*
|
|
16
|
-
* <ng-template #title>
|
|
17
|
-
* <!-- Content for the executor title -->
|
|
18
|
-
* </ng-template>
|
|
19
|
-
* <ng-template #description>
|
|
20
|
-
* <!-- Content for the executor description -->
|
|
21
|
-
* </ng-template>
|
|
22
|
-
*
|
|
23
|
-
* <mefdev-executor-page
|
|
24
|
-
* [title]="'Description of situation 1'"
|
|
25
|
-
* [isActive]="mainExecutor.activePageInd === 0"
|
|
26
|
-
* [isCompleted]="mainExecutor.activePageInd >= 0">
|
|
27
|
-
* <!-- Content of the first executor step -->
|
|
28
|
-
* </mefdev-executor-page>
|
|
29
|
-
* <mefdev-executor-page
|
|
30
|
-
* [title]="'Description of situation 2'"
|
|
31
|
-
* [isActive]="mainExecutor.activePageInd === 1"
|
|
32
|
-
* [isCompleted]="mainExecutor.activePageInd >= 1">
|
|
33
|
-
* <!-- Content of the second executor step -->
|
|
34
|
-
* </mefdev-executor-page>
|
|
35
|
-
* <mefdev-executor-page
|
|
36
|
-
* [title]="'Description of situation 3'"
|
|
37
|
-
* [isActive]="mainExecutor.activePageInd === 2"
|
|
38
|
-
* [isCompleted]="mainExecutor.activePageInd >= 2">
|
|
39
|
-
* <!-- Content of the third executor step -->
|
|
40
|
-
* </mefdev-executor-page>
|
|
41
|
-
*
|
|
42
|
-
* <ng-template #footer>
|
|
43
|
-
* <!-- Content for the executor footer -->
|
|
44
|
-
* <ng-template>
|
|
45
|
-
*
|
|
46
|
-
* </mefdev-step-executor>
|
|
47
|
-
*
|
|
48
|
-
*```
|
|
49
|
-
* <example-url>https://platform.mef.dev/ui_kit_demo/view/utils/main_executor</example-url>
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
@Component({
|
|
53
|
-
selector: 'mefdev-step-executor',
|
|
54
|
-
templateUrl: './step-executor.component.html',
|
|
55
|
-
styleUrls: ['./step-executor.component.scss'],
|
|
56
|
-
standalone: false
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
export class StepExecutorComponent implements AfterViewInit {
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Mandatory input parameter that specifies the type of the step-by-step wizard.
|
|
63
|
-
* It can have three options: regular, modal, right.
|
|
64
|
-
*
|
|
65
|
-
* @usageNotes
|
|
66
|
-
* ```
|
|
67
|
-
* <mefdev-step-executor #mainExecutor [view]="'regular'"></mefdev-step-executor>
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
@Input({required: true}) view: string;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* An optional input parameter that specifies whether to show your executor.
|
|
75
|
-
* Usually used when you have a slideup or right executor view
|
|
76
|
-
*
|
|
77
|
-
* @usageNotes
|
|
78
|
-
* ```
|
|
79
|
-
* <mefdev-step-executor [show]="true" [view]="'right'" #mainExecutor></mefdev-step-executor>
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
@Input() show: boolean;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* ViewChild reference to the host executor content.
|
|
87
|
-
*/
|
|
88
|
-
@ViewChild('container') container: ElementRef<HTMLElement>;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Template for displaying the content of the executor title.
|
|
92
|
-
*
|
|
93
|
-
* @usageNotes
|
|
94
|
-
* ```
|
|
95
|
-
* <ng-template #title>
|
|
96
|
-
* <!-- Content for the executor title -->
|
|
97
|
-
* </ng-template>
|
|
98
|
-
* ```
|
|
99
|
-
*/
|
|
100
|
-
@ContentChild('title') title: TemplateRef<void>;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Template for displaying the content of the executor description.
|
|
104
|
-
*
|
|
105
|
-
* @usageNotes
|
|
106
|
-
* ```
|
|
107
|
-
* <ng-template #description>
|
|
108
|
-
* <!-- Content for the executor description -->
|
|
109
|
-
* </ng-template>
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
@ContentChild('description') description: TemplateRef<void>;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Template for displaying the content of the executor footer.
|
|
116
|
-
*
|
|
117
|
-
* @usageNotes
|
|
118
|
-
* ```
|
|
119
|
-
* <ng-template #footer>
|
|
120
|
-
* <!-- Content for the executor footer -->
|
|
121
|
-
* </ng-template>
|
|
122
|
-
* ```
|
|
123
|
-
*/
|
|
124
|
-
@ContentChild('footer') footer: TemplateRef<void>;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* The output parameter that emits the class of the active page - active step.
|
|
128
|
-
*
|
|
129
|
-
* @usageNotes
|
|
130
|
-
* ```
|
|
131
|
-
* <mefdev-step-executor #mainExecutor (onActivePageChange)="getActiveStep($event)"></mefdev-step-executor>
|
|
132
|
-
* ```
|
|
133
|
-
*/
|
|
134
|
-
@Output() onActivePageChange: EventEmitter<MefdevExecutorPageComponent> = new EventEmitter<MefdevExecutorPageComponent>();
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* An output parameter that conveys the current state of the stepper in modal view
|
|
138
|
-
*
|
|
139
|
-
* @usageNotes
|
|
140
|
-
* ```
|
|
141
|
-
* <mefdev-step-executor [view]="'modal'" (modalStepExecutorStateChange)="getModalExecutorStateValue($event)" #modalExecutor></mefdev-step-executor>
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
@Output() modalStepExecutorStateChange: EventEmitter<boolean> = new EventEmitter<boolean>();
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* An output parameter that conveys the current state of the stepper in right view
|
|
148
|
-
*
|
|
149
|
-
* @usageNotes
|
|
150
|
-
* ```
|
|
151
|
-
* <mefdev-step-executor [view]="'right'" (modalStepExecutorStateChange)="getModalExecutorStateValue($event)" #rightExecutor></mefdev-step-executor>
|
|
152
|
-
* ```
|
|
153
|
-
*/
|
|
154
|
-
@Output() rightStepExecutorStateChange: EventEmitter<boolean> = new EventEmitter<boolean>();
|
|
155
|
-
|
|
156
|
-
public _activePageInd: number = 0;
|
|
157
|
-
public pages: MefdevExecutorPageComponent[] = [];
|
|
158
|
-
|
|
159
|
-
constructor(private renderer: Renderer2, private changeDetectorRef: ChangeDetectorRef) {}
|
|
160
|
-
|
|
161
|
-
public set activePageInd(activePageNumber: number) {
|
|
162
|
-
this._activePageInd = activePageNumber;
|
|
163
|
-
if (activePageNumber >= 0 && this.container) {
|
|
164
|
-
if (this.container.nativeElement.innerHTML != '') {
|
|
165
|
-
this.container.nativeElement.innerHTML = '';
|
|
166
|
-
}
|
|
167
|
-
this.renderer.appendChild(this.container.nativeElement, this.activePage?.elRef.nativeElement);
|
|
168
|
-
this.onActivePageChange.emit(this.pages.find((el: MefdevExecutorPageComponent) => el.isActive));
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
public get activePageInd(): number {
|
|
173
|
-
return this._activePageInd;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
get activePage(): MefdevExecutorPageComponent | null {
|
|
177
|
-
return this.activePageInd == -1 ? null : this.pages[this.activePageInd];
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
ngAfterViewInit(): void {
|
|
181
|
-
this.renderer?.appendChild(this.container.nativeElement, this.activePage?.elRef.nativeElement);
|
|
182
|
-
this.onActivePageChange.emit(this.pages.find((el: MefdevExecutorPageComponent) => el.isActive));
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* A function that is allows to track the status of your executor in the modal view
|
|
187
|
-
*/
|
|
188
|
-
modalStepExecutorVisibleChange(value: boolean) {
|
|
189
|
-
if (this.view === 'modal') {
|
|
190
|
-
this.show = value;
|
|
191
|
-
this.modalStepExecutorStateChange.emit(value);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* A function that is allows to track the status of your executor in the right view
|
|
198
|
-
*/
|
|
199
|
-
rightStepExecutorVisibleChange(value: boolean) {
|
|
200
|
-
if (this.view === 'right') {
|
|
201
|
-
this.show = value;
|
|
202
|
-
this.rightStepExecutorStateChange.emit(value);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* A function that allows you to close your executor
|
|
208
|
-
*/
|
|
209
|
-
closeExecutor() {
|
|
210
|
-
this.show = false;
|
|
211
|
-
this.changeDetectorRef.detectChanges();
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Check whether there is a next step of the executor. If we are at the last step - disable the 'next' button
|
|
216
|
-
*/
|
|
217
|
-
nextBtnIsDisabled(): boolean {
|
|
218
|
-
return this._activePageInd === this.pages.length - 1;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Check whether there is a next step of the executor. If we are at the last step - disable the 'next' button
|
|
223
|
-
*/
|
|
224
|
-
prev(): void {
|
|
225
|
-
const newPageInd = this.activePageInd - 1;
|
|
226
|
-
if (newPageInd >= 0) {
|
|
227
|
-
this.activePageInd = newPageInd;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Go back to the previous step
|
|
233
|
-
*/
|
|
234
|
-
cancel(): void {
|
|
235
|
-
this.activePageInd = 0;
|
|
236
|
-
const newPageInd = this.activePageInd - 1;
|
|
237
|
-
if (newPageInd >= 0) {
|
|
238
|
-
this.activePageInd = newPageInd;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Go to the next step
|
|
244
|
-
*/
|
|
245
|
-
next(): void {
|
|
246
|
-
const newPageInd = this.activePageInd + 1;
|
|
247
|
-
if (newPageInd < this.pages.length) {
|
|
248
|
-
this.activePageInd = newPageInd;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Set a specific active page
|
|
254
|
-
*/
|
|
255
|
-
setActivePage(pageNumber: number): void {
|
|
256
|
-
pageNumber -= 1;
|
|
257
|
-
if (pageNumber < this.pages.length && pageNumber >= 0) {
|
|
258
|
-
this.activePageInd = pageNumber;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Add new page
|
|
264
|
-
*/
|
|
265
|
-
addPage(page: MefdevExecutorPageComponent): void {
|
|
266
|
-
this.pages.push(page);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Delete a specific page
|
|
271
|
-
*/
|
|
272
|
-
removeSpecificPage(page: MefdevExecutorPageComponent): void {
|
|
273
|
-
const index: number = this.pages.indexOf(page);
|
|
274
|
-
if (index !== -1) {
|
|
275
|
-
this.pages.splice(index, 1);
|
|
276
|
-
if (index === this.activePageInd) {
|
|
277
|
-
this.prev();
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Delete a page by its index
|
|
284
|
-
*/
|
|
285
|
-
removePageByIndex(index: number): void {
|
|
286
|
-
if (index >= 0 && index < this.pages.length) {
|
|
287
|
-
this.pages.splice(index, 1);
|
|
288
|
-
if (index === this.activePageInd) {
|
|
289
|
-
this.prev();
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { StepExecutorComponent } from './step-executor/step-executor.component';
|
|
4
|
-
import { StageComponent } from './stage/stage.component';
|
|
5
|
-
import { FormsModule } from '@angular/forms';
|
|
6
|
-
import { MefdevExecutorPageComponent } from './mefdev-executor-page/mefdev-executor-page.component';
|
|
7
|
-
import { MefDevModalModule } from '../modals';
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
declarations: [
|
|
11
|
-
StepExecutorComponent,
|
|
12
|
-
MefdevExecutorPageComponent,
|
|
13
|
-
StageComponent
|
|
14
|
-
],
|
|
15
|
-
exports: [
|
|
16
|
-
StepExecutorComponent,
|
|
17
|
-
MefdevExecutorPageComponent,
|
|
18
|
-
StageComponent,
|
|
19
|
-
],
|
|
20
|
-
imports: [
|
|
21
|
-
MefDevModalModule,
|
|
22
|
-
CommonModule,
|
|
23
|
-
FormsModule,
|
|
24
|
-
]
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
export class MefDevStepExecutorModule { }
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<button *ngIf="visible" (click)="hideModal()" aria-label="Close" class="dialog__close-btn">X</button>
|
|
2
|
-
<div [@dialog] *ngIf="visible" class="dialog" #dialog>
|
|
3
|
-
<div class="modal-content">
|
|
4
|
-
<div class="modal-header clearfix text-left">
|
|
5
|
-
<ng-template [ngTemplateOutlet]="modal_header"></ng-template>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="modal-body">
|
|
8
|
-
<ng-content></ng-content>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="modal-footer">
|
|
11
|
-
<ng-template [ngTemplateOutlet]="modal_footer"></ng-template>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
<div *ngIf="visible" class="overlay" (click)="hideModal()"></div>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
.overlay {
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
bottom: 0;
|
|
5
|
-
left: 0;
|
|
6
|
-
right: 0;
|
|
7
|
-
background-color: #ffffffd9;
|
|
8
|
-
z-index: 999;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dialog {
|
|
12
|
-
z-index: 1000;
|
|
13
|
-
position: fixed;
|
|
14
|
-
right: 0;
|
|
15
|
-
left: 0;
|
|
16
|
-
top: 0;
|
|
17
|
-
margin-left: auto;
|
|
18
|
-
margin-right: auto;
|
|
19
|
-
height: 100%;
|
|
20
|
-
min-height: 200px;
|
|
21
|
-
min-width: 520px;
|
|
22
|
-
max-width: 90%;
|
|
23
|
-
width: fit-content;
|
|
24
|
-
padding: 12px;
|
|
25
|
-
overflow-y: auto;
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.dialog__close-btn {
|
|
31
|
-
border: 0;
|
|
32
|
-
background: none;
|
|
33
|
-
color: #2d2d2d;
|
|
34
|
-
position: absolute;
|
|
35
|
-
top: 8px;
|
|
36
|
-
right: 8px;
|
|
37
|
-
font-size: 1.2em;
|
|
38
|
-
z-index: 1001;
|
|
39
|
-
}
|
|
40
|
-
.modal-footer{
|
|
41
|
-
padding-top: 10px;
|
|
42
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { Component, ContentChild, ElementRef, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild } from '@angular/core';
|
|
2
|
-
import { CommonModule } from "@angular/common"; // add for static analizer bug fix
|
|
3
|
-
import { animate, style, transition, trigger } from '@angular/animations';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Fill Component for a modal window.
|
|
8
|
-
*
|
|
9
|
-
* Example of usage:
|
|
10
|
-
* ```
|
|
11
|
-
* <mefdev-fill-modal #pin_modal>
|
|
12
|
-
* <!-- Modal header content -->
|
|
13
|
-
* <ng-template #modal_header>
|
|
14
|
-
* <!-- Header content goes here -->
|
|
15
|
-
* </ng-template>
|
|
16
|
-
*
|
|
17
|
-
* <!-- Modal footer content -->
|
|
18
|
-
* <ng-template #modal_footer>
|
|
19
|
-
* <!-- Footer content goes here -->
|
|
20
|
-
* </ng-template>
|
|
21
|
-
* </mefdev-fill-modal>
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/modals/fill</example-url>
|
|
25
|
-
*/
|
|
26
|
-
@Component({
|
|
27
|
-
selector: 'mefdev-fill-modal',
|
|
28
|
-
templateUrl: './fill.component.html',
|
|
29
|
-
styleUrls: ['./fill.component.scss'],
|
|
30
|
-
animations: [
|
|
31
|
-
trigger('dialog', [
|
|
32
|
-
transition('void => *', [
|
|
33
|
-
style({ transform: 'scale3d(.3, .3, .3)' }),
|
|
34
|
-
animate(100)
|
|
35
|
-
]),
|
|
36
|
-
transition('* => void', [
|
|
37
|
-
animate(100, style({ transform: 'scale3d(.0, .0, .0)' }))
|
|
38
|
-
])
|
|
39
|
-
])
|
|
40
|
-
],
|
|
41
|
-
standalone: false
|
|
42
|
-
})
|
|
43
|
-
export class FillComponent implements OnInit {
|
|
44
|
-
protected visible: boolean = false;
|
|
45
|
-
|
|
46
|
-
@ViewChild('dialog', { static: false }) protected dialog?: ElementRef;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* The header template of the modal window.
|
|
51
|
-
* ```
|
|
52
|
-
* <mefdev-fill-modal #pin_modal>
|
|
53
|
-
* <ng-template #modal_header>
|
|
54
|
-
* <!-- Header content goes here -->
|
|
55
|
-
* </ng-template>
|
|
56
|
-
* </mefdev-fill-modal>
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
@ContentChild("modal_header") modal_header: TemplateRef<void>;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* The footer template of the modal window.
|
|
63
|
-
* ```
|
|
64
|
-
* <mefdev-fill-modal #pin_modal>
|
|
65
|
-
* <ng-template #modal_footer>
|
|
66
|
-
* <!-- Footer content goes here -->
|
|
67
|
-
* </ng-template>
|
|
68
|
-
* </mefdev-fill-modal>
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
@ContentChild("modal_footer") modal_footer: TemplateRef<void>;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Input parameter that determines whether to show the modal window.
|
|
75
|
-
*/
|
|
76
|
-
@Input() set show(val: boolean){
|
|
77
|
-
if(val){
|
|
78
|
-
this.showModal();
|
|
79
|
-
}
|
|
80
|
-
else{
|
|
81
|
-
this.hideModal();
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Event emitted when the modal is change state.
|
|
87
|
-
* Emits a boolean value indicating if the modal is closed(false), or open(true).
|
|
88
|
-
* Example:
|
|
89
|
-
* ```
|
|
90
|
-
* <mefdev-fill-modal (visibleChange)="onModalClosed($event)"></mefdev-fill-modal>
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
@Output() visibleChange = new EventEmitter<boolean>();
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
constructor() { }
|
|
97
|
-
|
|
98
|
-
ngOnInit(): void {
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Shows the modal state.
|
|
103
|
-
* Return a boolean value indicating if the modal is closed(false), or open(true)
|
|
104
|
-
*/
|
|
105
|
-
getModalState(): boolean{
|
|
106
|
-
return this.visible;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Shows the modal.
|
|
111
|
-
* Call this method to open the modal window.
|
|
112
|
-
*/
|
|
113
|
-
public showModal(){
|
|
114
|
-
this.visible = true;
|
|
115
|
-
this.visibleChange.emit(this.visible);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Hides the modal.
|
|
120
|
-
* Call this method to close the modal window.
|
|
121
|
-
*/
|
|
122
|
-
public hideModal(){
|
|
123
|
-
this.visible = false;
|
|
124
|
-
this.visibleChange.emit(this.visible);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './fill/fill.component';
|
|
2
|
-
export * from './slide-up/slide-up.component';
|
|
3
|
-
export * from './slide-right/slide-right.component';
|
|
4
|
-
export * from "./right-filter/right-filter.component";
|
|
5
|
-
export * from "./markup-kit.module";
|
|
6
|
-
export * from "./modal-size.enum";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { FillComponent } from './fill/fill.component';
|
|
3
|
-
import { SlideUpComponent } from './slide-up/slide-up.component';
|
|
4
|
-
import { SlideRightComponent } from './slide-right/slide-right.component';
|
|
5
|
-
|
|
6
|
-
import { CommonModule } from "@angular/common";
|
|
7
|
-
import { RightFilterComponent } from "./right-filter/right-filter.component";
|
|
8
|
-
import { MefDevSelectModule } from '../../pg-components/select/select.module';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
let mefDevModalModuleComponents = [
|
|
12
|
-
FillComponent,
|
|
13
|
-
SlideUpComponent,
|
|
14
|
-
SlideRightComponent,
|
|
15
|
-
RightFilterComponent
|
|
16
|
-
];
|
|
17
|
-
@NgModule({
|
|
18
|
-
imports: [
|
|
19
|
-
CommonModule,
|
|
20
|
-
MefDevSelectModule
|
|
21
|
-
],
|
|
22
|
-
exports: mefDevModalModuleComponents,
|
|
23
|
-
declarations: mefDevModalModuleComponents
|
|
24
|
-
})
|
|
25
|
-
export class MefDevModalModule {}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
*ngIf="showStandartOpenButton"
|
|
3
|
-
class="filter-btn"
|
|
4
|
-
(click)="openModal()"
|
|
5
|
-
>
|
|
6
|
-
<i class="fa fa-filter" aria-hidden="true"></i>
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<mefdev-slide-right-modal [show]="isOpen" (isClouse)="modalIsCloused()">
|
|
10
|
-
<ng-content></ng-content>
|
|
11
|
-
</mefdev-slide-right-modal>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.filter-btn{
|
|
2
|
-
box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, 0.1019607843);
|
|
3
|
-
border-radius: 3px;
|
|
4
|
-
width: 36px;
|
|
5
|
-
height: 26px;
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
align-items: center;
|
|
9
|
-
position: fixed;
|
|
10
|
-
z-index: 2;
|
|
11
|
-
background-color: white;
|
|
12
|
-
right: 56px;
|
|
13
|
-
top: 50px;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { FilteredFieldService } from '../../utils/filtered-field/filtered-field.service';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Component representing the right filter.
|
|
7
|
-
*/
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'mefdev-right-filter',
|
|
10
|
-
templateUrl: './right-filter.component.html',
|
|
11
|
-
styleUrls: ['./right-filter.component.scss'],
|
|
12
|
-
standalone: false
|
|
13
|
-
})
|
|
14
|
-
export class RightFilterComponent implements OnInit {
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Flag indicating whether the right filter is open or closed.
|
|
18
|
-
*/
|
|
19
|
-
isOpen: boolean = false;
|
|
20
|
-
|
|
21
|
-
@Input() showStandartOpenButton: boolean = true;
|
|
22
|
-
|
|
23
|
-
constructor(
|
|
24
|
-
private filteredFieldService: FilteredFieldService,) { }
|
|
25
|
-
|
|
26
|
-
ngOnInit(): void {
|
|
27
|
-
// Subscribe to the open filter event from the FilteredFieldService
|
|
28
|
-
// and update the isOpen flag accordingly.
|
|
29
|
-
this.filteredFieldService.getOpenFilter().subscribe(() => {
|
|
30
|
-
this.isOpen = true;
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Opens or closes the right filter modal.
|
|
36
|
-
*/
|
|
37
|
-
openModal(){
|
|
38
|
-
this.isOpen = !this.isOpen;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Event handler for when the modal is closed.
|
|
43
|
-
* Sets the isOpen flag to false.
|
|
44
|
-
*/
|
|
45
|
-
modalIsCloused(){
|
|
46
|
-
this.isOpen = false;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<div [@dialog] *ngIf="visible" class="dialog" #dialog>
|
|
2
|
-
|
|
3
|
-
<div *ngIf="modal_header" class="header">
|
|
4
|
-
<ng-template [ngTemplateOutlet]="modal_header"></ng-template>
|
|
5
|
-
</div>
|
|
6
|
-
<div class="body">
|
|
7
|
-
<ng-content></ng-content>
|
|
8
|
-
</div>
|
|
9
|
-
<div *ngIf="modal_footer" class="footer">
|
|
10
|
-
<ng-template [ngTemplateOutlet]="modal_footer"></ng-template>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
<div *ngIf="visible" class="overlay" (click)="hideModal()"></div>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
.overlay {
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
bottom: 0;
|
|
5
|
-
left: 0;
|
|
6
|
-
right: 0;
|
|
7
|
-
background-color: rgba(0, 0, 0, 0.2);
|
|
8
|
-
z-index: 999;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dialog {
|
|
12
|
-
z-index: 1000;
|
|
13
|
-
position: fixed;
|
|
14
|
-
right: 0;
|
|
15
|
-
top: 0;
|
|
16
|
-
height: 100%;
|
|
17
|
-
width: 500px;
|
|
18
|
-
background-color: #fff;
|
|
19
|
-
padding: 16px;
|
|
20
|
-
overflow-y: auto;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@media (max-width: 768px) {
|
|
24
|
-
.dialog {
|
|
25
|
-
width: 300px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.dialog__close-btn {
|
|
30
|
-
border: 0;
|
|
31
|
-
background: none;
|
|
32
|
-
color: #2d2d2d;
|
|
33
|
-
position: absolute;
|
|
34
|
-
top: 8px;
|
|
35
|
-
right: 8px;
|
|
36
|
-
font-size: 1.2em;
|
|
37
|
-
z-index: 1001;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.footer{
|
|
41
|
-
|
|
42
|
-
}
|