@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,451 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Component,
|
|
3
|
-
Input,
|
|
4
|
-
ViewEncapsulation,
|
|
5
|
-
ElementRef,
|
|
6
|
-
ViewChild,
|
|
7
|
-
TemplateRef,
|
|
8
|
-
ContentChild,
|
|
9
|
-
EventEmitter,
|
|
10
|
-
Output
|
|
11
|
-
} from "@angular/core";
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
animate,
|
|
15
|
-
state,
|
|
16
|
-
style,
|
|
17
|
-
transition,
|
|
18
|
-
trigger
|
|
19
|
-
} from "@angular/animations";
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Component representing a custom card.
|
|
23
|
-
* It provides various styling and animation options for the card layout.
|
|
24
|
-
*
|
|
25
|
-
* Example usage:
|
|
26
|
-
* ```
|
|
27
|
-
* <mefdev-inner-card [Title]="'Card Title'" [Type]="'default'" [MinimalHeader]="false" [ProgressType]="'circle'">
|
|
28
|
-
* Card content goes here...
|
|
29
|
-
* </mefdev-inner-card>
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
@Component({
|
|
33
|
-
selector: "mefdev-inner-card",
|
|
34
|
-
encapsulation: ViewEncapsulation.None,
|
|
35
|
-
templateUrl: "./card.components.html",
|
|
36
|
-
animations: [
|
|
37
|
-
trigger("collapseState", [
|
|
38
|
-
state("inactive", style({
|
|
39
|
-
opacity: "0",
|
|
40
|
-
height: 0,
|
|
41
|
-
paddingBottom: "0"
|
|
42
|
-
})),
|
|
43
|
-
state("active", style({
|
|
44
|
-
opacity: "1",
|
|
45
|
-
height: "*",
|
|
46
|
-
paddingBottom: "*"
|
|
47
|
-
})),
|
|
48
|
-
transition("inactive => active", animate("125ms ease-in")),
|
|
49
|
-
transition("active => inactive", animate("125ms ease-out"))
|
|
50
|
-
]),
|
|
51
|
-
trigger("fadeAnimation", [
|
|
52
|
-
state("false", style({
|
|
53
|
-
opacity: "0",
|
|
54
|
-
visibility: "hidden"
|
|
55
|
-
})),
|
|
56
|
-
state("true", style({
|
|
57
|
-
opacity: "1",
|
|
58
|
-
visibility: "visible"
|
|
59
|
-
})),
|
|
60
|
-
transition("false => true", animate("500ms ease-in")),
|
|
61
|
-
transition("true => false", animate("500ms ease-out"))
|
|
62
|
-
])
|
|
63
|
-
],
|
|
64
|
-
standalone: false
|
|
65
|
-
})
|
|
66
|
-
export class MefdevInnerCard {
|
|
67
|
-
|
|
68
|
-
// constructor() {
|
|
69
|
-
// console.log('1')
|
|
70
|
-
// }
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Indicates whether the card is collapsed or not.
|
|
74
|
-
* Default: false
|
|
75
|
-
*/
|
|
76
|
-
_isCollapsed: boolean = false;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Indicates whether the card is maximized or not.
|
|
80
|
-
* Default: false
|
|
81
|
-
*/
|
|
82
|
-
_isMaximixed: boolean = false;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Indicates whether the card is in loading state or not.
|
|
86
|
-
* Default: false
|
|
87
|
-
*/
|
|
88
|
-
_isLoading: boolean = false;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Indicates whether the card has a minimal header or not.
|
|
92
|
-
* Default: false
|
|
93
|
-
*/
|
|
94
|
-
_minimalHeader: boolean = false;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* The message to be displayed in the card.
|
|
98
|
-
*/
|
|
99
|
-
_message: string = "";
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* The type of message to be displayed in the card (e.g., success, danger, warning).
|
|
103
|
-
* Default: "danger"
|
|
104
|
-
*/
|
|
105
|
-
_messageType: string = "danger";
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Indicates whether the message in the card is visible or not.
|
|
109
|
-
* Default: false
|
|
110
|
-
*/
|
|
111
|
-
_messageVisible: boolean = false;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* The type of progress indicator to be displayed in the card (e.g., circle, bar, none).
|
|
115
|
-
* Default: "circle"
|
|
116
|
-
*/
|
|
117
|
-
_progressType: string = "circle";
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* The color of the progress indicator in the card.
|
|
121
|
-
*/
|
|
122
|
-
_progressColor: string = "";
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Indicates whether the tools (e.g., refresh, close, maximize) are shown in the card header or not.
|
|
126
|
-
* Default: true
|
|
127
|
-
*/
|
|
128
|
-
_showTools: boolean = true;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
_close_card: boolean = false;
|
|
132
|
-
_refresh: boolean = false;
|
|
133
|
-
_refreshColor: string = "light";
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Indicates whether the close button in the card is visible or not.
|
|
137
|
-
* Default: true
|
|
138
|
-
*/
|
|
139
|
-
_close: boolean = true;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Indicates whether the toggle button in the card is visible or not.
|
|
143
|
-
* Default: true
|
|
144
|
-
*/
|
|
145
|
-
_toggle: boolean = true;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Indicates whether the maximize button in the card is visible or not.
|
|
149
|
-
* Default: true
|
|
150
|
-
*/
|
|
151
|
-
_maximize: boolean = true;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* The timeout value in milliseconds for the loading state of the card.
|
|
155
|
-
* If set to 0, the loading state will not automatically turn off.
|
|
156
|
-
* Default: 0
|
|
157
|
-
*/
|
|
158
|
-
_timeout: number = 0;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* The title text to be displayed in the card header.
|
|
162
|
-
*/
|
|
163
|
-
_titleText: string = "";
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* The border style of the card.
|
|
167
|
-
*/
|
|
168
|
-
_card_border_style: string = "";
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* The type of the card (e.g., default, bordered, minimal).
|
|
172
|
-
* Default: "default"
|
|
173
|
-
*/
|
|
174
|
-
_type: string = "default";
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Additional CSS class(es) to be added to the card header.
|
|
180
|
-
*/
|
|
181
|
-
_extraHeaderClass = "";
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Additional CSS class(es) to be added to the card body.
|
|
185
|
-
*/
|
|
186
|
-
_extraBodyClass = "";
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Additional CSS class(es) to be added to the card.
|
|
190
|
-
*/
|
|
191
|
-
_additionalClasses = "";
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* ViewChild reference to the host content element.
|
|
195
|
-
*/
|
|
196
|
-
@ViewChild("hostContent") _hostContent: ElementRef;
|
|
197
|
-
/**
|
|
198
|
-
* ViewChild reference to the minimal circle loading element.
|
|
199
|
-
*/
|
|
200
|
-
@ViewChild("minimalCircleLoading") minimalCircleLoading: ElementRef;
|
|
201
|
-
/**
|
|
202
|
-
* ViewChild reference to the minimal circle loading trigger element.
|
|
203
|
-
*/
|
|
204
|
-
@ViewChild("minimalCircleLoadingTrigger")
|
|
205
|
-
minimalCircleLoadingTrigger: ElementRef;
|
|
206
|
-
/**
|
|
207
|
-
* ContentChild reference to the CardTitle template.
|
|
208
|
-
*/
|
|
209
|
-
@ContentChild("CardTitle") CardTitle: TemplateRef<void>;
|
|
210
|
-
/**
|
|
211
|
-
* ContentChild reference to the CardExtraControls template.
|
|
212
|
-
*/
|
|
213
|
-
@ContentChild("CardExtraControls") CardExtraControls: TemplateRef<void>;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
// Input properties
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* The title text to be displayed in the card header.
|
|
220
|
-
*/
|
|
221
|
-
@Input()
|
|
222
|
-
set Title(value: string) {
|
|
223
|
-
this._titleText = value;
|
|
224
|
-
}
|
|
225
|
-
get Title() {
|
|
226
|
-
return this._titleText;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* The type of the card (e.g., default, bordered, minimal).
|
|
231
|
-
* Default: "default"
|
|
232
|
-
*/
|
|
233
|
-
@Input()
|
|
234
|
-
set Type(value: string) {
|
|
235
|
-
this._type = value;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Indicates whether the card has a minimal header or not.
|
|
240
|
-
* Default: false
|
|
241
|
-
*/
|
|
242
|
-
@Input()
|
|
243
|
-
set MinimalHeader(value: boolean) {
|
|
244
|
-
this._minimalHeader = value;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* The type of progress indicator to be displayed in the card (e.g., circle, bar, none).
|
|
249
|
-
* Default: "circle"
|
|
250
|
-
*/
|
|
251
|
-
@Input()
|
|
252
|
-
set ProgressType(value: string) {
|
|
253
|
-
this._progressType = value;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* The color of the progress indicator in the card.
|
|
258
|
-
*/
|
|
259
|
-
@Input()
|
|
260
|
-
set ProgressColor(value: string) {
|
|
261
|
-
this._progressColor = value;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Indicates whether the card should have a refresh button or not.
|
|
266
|
-
*/
|
|
267
|
-
@Input()
|
|
268
|
-
set Refresh(value: boolean) {
|
|
269
|
-
this._refresh = value;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* The color of the refresh button in the card (e.g., light, dark).
|
|
274
|
-
* Default: "light"
|
|
275
|
-
*/
|
|
276
|
-
@Input()
|
|
277
|
-
set RefreshColor(value: string) {
|
|
278
|
-
this._refreshColor = value;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Indicates whether the card should have a maximize button or not.
|
|
283
|
-
*/
|
|
284
|
-
@Input()
|
|
285
|
-
set Maximize(value: boolean) {
|
|
286
|
-
this._maximize = value;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Indicates whether the card should have a close button or not.
|
|
291
|
-
*/
|
|
292
|
-
@Input()
|
|
293
|
-
set Close(value: boolean) {
|
|
294
|
-
this._close = value;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* Indicates whether the card should have a toggle button or not.
|
|
299
|
-
*/
|
|
300
|
-
@Input()
|
|
301
|
-
set Toggle(value: boolean) {
|
|
302
|
-
this._toggle = value;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Additional CSS class(es) to be added to the card header.
|
|
307
|
-
*/
|
|
308
|
-
@Input()
|
|
309
|
-
set HeaderClass(value: string) {
|
|
310
|
-
this._extraHeaderClass = value;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Additional CSS class(es) to be added to the card body.
|
|
315
|
-
*/
|
|
316
|
-
@Input()
|
|
317
|
-
set BodyClass(value: string) {
|
|
318
|
-
this._extraBodyClass = value;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Additional CSS class(es) to be added to the card.
|
|
323
|
-
*/
|
|
324
|
-
@Input()
|
|
325
|
-
set AdditionalClasses(value: string) {
|
|
326
|
-
this._additionalClasses = value;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Indicates whether the tools (e.g., refresh, close, maximize) are shown in the card header or not.
|
|
331
|
-
*/
|
|
332
|
-
@Input()
|
|
333
|
-
set Controls(value: boolean) {
|
|
334
|
-
this._showTools = value;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Indicates whether the message in the card is visible or not.
|
|
339
|
-
*/
|
|
340
|
-
@Input()
|
|
341
|
-
set ShowMessage(value: boolean) {
|
|
342
|
-
this._messageVisible = value;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* The message text to be displayed in the card.
|
|
347
|
-
*/
|
|
348
|
-
@Input()
|
|
349
|
-
set Message(value: string) {
|
|
350
|
-
this._message = value;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Indicates whether the loading indicator is shown in the card or not.
|
|
355
|
-
*/
|
|
356
|
-
@Input()
|
|
357
|
-
set Loading(value: boolean) {
|
|
358
|
-
this._isLoading = value;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* The timeout duration for the loading indicator (in milliseconds).
|
|
363
|
-
* If set to 0, the loading indicator will be displayed indefinitely until manually dismissed.
|
|
364
|
-
* Default: 0
|
|
365
|
-
*/
|
|
366
|
-
@Input()
|
|
367
|
-
set TimeOut(value: number) {
|
|
368
|
-
this._timeout = value;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* The border style of the card.
|
|
373
|
-
*/
|
|
374
|
-
@Input()
|
|
375
|
-
set CardBorderStyle(value: string) {
|
|
376
|
-
this._card_border_style = value;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
// Output properties
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Event emitted when the refresh button is clicked.
|
|
384
|
-
*/
|
|
385
|
-
@Output() onRefresh: EventEmitter<void> = new EventEmitter();
|
|
386
|
-
|
|
387
|
-
// Other methods and lifecycle hooks
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* Toggles the collapsed state of the card.
|
|
391
|
-
*/
|
|
392
|
-
toggle(): void {
|
|
393
|
-
this._isCollapsed = this._isCollapsed === true ? false : true;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* Maximizes or restores the card to its original position.
|
|
398
|
-
*/
|
|
399
|
-
maximize(): void {
|
|
400
|
-
let nativeElement = this._hostContent.nativeElement;
|
|
401
|
-
if (this._isMaximixed) {
|
|
402
|
-
this._isMaximixed = false;
|
|
403
|
-
nativeElement.style.left = null;
|
|
404
|
-
nativeElement.style.top = null;
|
|
405
|
-
} else {
|
|
406
|
-
this._isMaximixed = true;
|
|
407
|
-
let pagecontainer: Element = document.querySelector(".content") ?? new Element();
|
|
408
|
-
console.log(pagecontainer);
|
|
409
|
-
let rect = pagecontainer.getBoundingClientRect();
|
|
410
|
-
let elementRect = nativeElement.getBoundingClientRect();
|
|
411
|
-
let style = window.getComputedStyle(pagecontainer);
|
|
412
|
-
|
|
413
|
-
nativeElement.style.left =
|
|
414
|
-
parseFloat(style["marginLeft"]) +
|
|
415
|
-
parseFloat(style["paddingLeft"]) +
|
|
416
|
-
rect.left +
|
|
417
|
-
"px";
|
|
418
|
-
nativeElement.style.top =
|
|
419
|
-
parseFloat(style.paddingTop) + rect.top + "px";
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* Dismisses the message in the card.
|
|
425
|
-
*/
|
|
426
|
-
alertDismiss(): void {
|
|
427
|
-
this._messageVisible = false;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* Triggers the refresh action of the card.
|
|
432
|
-
*/
|
|
433
|
-
refresh(): void {
|
|
434
|
-
if (!this._isLoading) {
|
|
435
|
-
this._isLoading = true;
|
|
436
|
-
this.onRefresh.emit();
|
|
437
|
-
}
|
|
438
|
-
if (this._timeout > 0) {
|
|
439
|
-
setTimeout(() => {
|
|
440
|
-
this._isLoading = false;
|
|
441
|
-
}, this._timeout);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Closes the card.
|
|
447
|
-
*/
|
|
448
|
-
close(): void {
|
|
449
|
-
this._close_card = true;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from "@angular/common";
|
|
2
|
-
import { NgModule, ModuleWithProviders } from "@angular/core";
|
|
3
|
-
import { MefdevInnerCard } from "./card.components";
|
|
4
|
-
import { MefDevProgressModule } from "../progress/progress.module";
|
|
5
|
-
|
|
6
|
-
@NgModule({
|
|
7
|
-
declarations: [MefdevInnerCard],
|
|
8
|
-
exports: [MefdevInnerCard],
|
|
9
|
-
imports: [CommonModule, MefDevProgressModule]
|
|
10
|
-
})
|
|
11
|
-
export class MefdevInnerCardModule {
|
|
12
|
-
static forRoot(): ModuleWithProviders<MefdevInnerCardModule> {
|
|
13
|
-
return {
|
|
14
|
-
ngModule: MefdevInnerCardModule
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<div *ngIf="type === 'bar'; else circleBlock">
|
|
2
|
-
<div *ngIf="indeterminate; else determineBarBlock">
|
|
3
|
-
<div class="progress" [class.progress-small]="!thick">
|
|
4
|
-
<div class="progress-bar-{{ color }}" [class.progress-bar-indeterminate]="indeterminate"></div>
|
|
5
|
-
</div>
|
|
6
|
-
</div>
|
|
7
|
-
<ng-template #determineBarBlock>
|
|
8
|
-
<div class="progress" [class.progress-small]="!thick">
|
|
9
|
-
<div class="progress-bar progress-bar-{{ color }}" [ngStyle]="{ width: value + '%' }"></div>
|
|
10
|
-
</div>
|
|
11
|
-
</ng-template>
|
|
12
|
-
</div>
|
|
13
|
-
<ng-template #circleBlock>
|
|
14
|
-
<div class="progress-circle-{{ color }}" [class.progress-circle-indeterminate]="indeterminate"
|
|
15
|
-
[class.progress-circle]="!indeterminate" [class.progress-circle-thick]="thick">
|
|
16
|
-
<div *ngIf="indeterminate; else determineBlock"></div>
|
|
17
|
-
<ng-template #determineBlock>
|
|
18
|
-
<div class="pie" [ngStyle]="_value2 && { clip: 'rect(auto, auto, auto, auto)' }">
|
|
19
|
-
<div class="left-side half-circle" [ngStyle]="_value2 && { transform: 'rotate(' + value + 'deg)' }"></div>
|
|
20
|
-
<div class="right-side half-circle" [ngStyle]="{
|
|
21
|
-
transform:
|
|
22
|
-
_value2 === true ? 'rotate(180deg)' : 'rotate(' + value + 'deg)'
|
|
23
|
-
}"></div>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="shadow"></div>
|
|
26
|
-
</ng-template>
|
|
27
|
-
</div>
|
|
28
|
-
</ng-template>
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from "@angular/core";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Component representing a progress bar.
|
|
5
|
-
*
|
|
6
|
-
* Example of usage:
|
|
7
|
-
*
|
|
8
|
-
* ```
|
|
9
|
-
* <mefdev-progress type="linear" color="blue" [thick]="true"></mefdev-progress>
|
|
10
|
-
* <mefdev-progress type="circle" color="red" [indeterminate]="true"></mefdev-progress>
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
@Component({
|
|
14
|
-
selector: "mefdev-progress",
|
|
15
|
-
templateUrl: "./progress.component.html",
|
|
16
|
-
standalone: false
|
|
17
|
-
})
|
|
18
|
-
export class MefDevProgressComponent {
|
|
19
|
-
_value: number;
|
|
20
|
-
_value2: any;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The type of progress bar.
|
|
24
|
-
* Possible values: "linear" | "circle".
|
|
25
|
-
* Default value: "linear".
|
|
26
|
-
*/
|
|
27
|
-
@Input() type: string;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* The color of the progress bar.
|
|
31
|
-
* Possible values: any valid CSS color value.
|
|
32
|
-
* Default value: none.
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
@Input() color: string;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Determines whether the progress bar is thick.
|
|
39
|
-
* Default value: false.
|
|
40
|
-
*/
|
|
41
|
-
@Input() thick: boolean;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Determines whether the progress bar is indeterminate.
|
|
45
|
-
* Default value: false.
|
|
46
|
-
*/
|
|
47
|
-
@Input() indeterminate: boolean;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* The value of the progress bar.
|
|
52
|
-
* For the "circle" type, it should be a number between 0 and 100.
|
|
53
|
-
*/
|
|
54
|
-
@Input() set value(value: number) {
|
|
55
|
-
if (this.type == "circle") {
|
|
56
|
-
this._value = (value / 100) * 360;
|
|
57
|
-
if (this.value >= 50) {
|
|
58
|
-
this._value2 = true;
|
|
59
|
-
}
|
|
60
|
-
} else this._value = value;
|
|
61
|
-
}
|
|
62
|
-
get value() {
|
|
63
|
-
return this._value;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Additional value property.
|
|
68
|
-
*/
|
|
69
|
-
get value2() {
|
|
70
|
-
return this._value2;
|
|
71
|
-
}
|
|
72
|
-
constructor() {}
|
|
73
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from "@angular/common";
|
|
2
|
-
import { NgModule, ModuleWithProviders } from "@angular/core";
|
|
3
|
-
|
|
4
|
-
import { MefDevProgressComponent } from "./progress.component";
|
|
5
|
-
import { ProgressConfig } from "./progress.config";
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: [CommonModule],
|
|
9
|
-
declarations: [MefDevProgressComponent],
|
|
10
|
-
exports: [MefDevProgressComponent]
|
|
11
|
-
})
|
|
12
|
-
export class MefDevProgressModule {
|
|
13
|
-
static forRoot(): ModuleWithProviders<MefDevProgressModule> {
|
|
14
|
-
return { ngModule: MefDevProgressModule, providers: [ProgressConfig] };
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<ng-content></ng-content>
|