@natec/mef-dev-ui-kit 0.0.65 → 0.0.67
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/.browserslistrc +16 -0
- package/karma.conf.js +44 -0
- package/ng-package.json +24 -0
- package/package.json +6 -21
- package/src/lib/markup-kit/card/card/card.component.html +46 -0
- package/src/lib/markup-kit/card/card/card.component.scss +61 -0
- package/src/lib/markup-kit/card/card/card.component.ts +31 -0
- package/src/lib/markup-kit/card/card-long/card-long.component.html +54 -0
- package/src/lib/markup-kit/card/card-long/card-long.component.scss +72 -0
- package/src/lib/markup-kit/card/card-long/card-long.component.ts +33 -0
- package/src/lib/markup-kit/card/card-long/cart-type-colors.enum.ts +5 -0
- package/src/lib/markup-kit/card/card-simple/card-simple.component.html +12 -0
- package/src/lib/markup-kit/card/card-simple/card-simple.component.scss +12 -0
- package/src/lib/markup-kit/card/card-simple/card-simple.component.ts +18 -0
- package/src/lib/markup-kit/card/card.module.ts +23 -0
- package/{lib/markup-kit/card/index.d.ts → src/lib/markup-kit/card/index.ts} +1 -0
- package/src/lib/markup-kit/collapse/collapse/collapse.component.html +16 -0
- package/src/lib/markup-kit/collapse/collapse/collapse.component.scss +13 -0
- package/src/lib/markup-kit/collapse/collapse/collapse.component.ts +78 -0
- package/src/lib/markup-kit/collapse/collapse-set/collapse-set.component.html +3 -0
- 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 +58 -0
- package/src/lib/markup-kit/collapse/collapse.module.ts +20 -0
- package/{lib/markup-kit/collapse/index.d.ts → src/lib/markup-kit/collapse/index.ts} +0 -0
- package/src/lib/markup-kit/modals/fill/fill.component.html +18 -0
- package/src/lib/markup-kit/modals/fill/fill.component.scss +0 -0
- package/src/lib/markup-kit/modals/fill/fill.component.ts +45 -0
- package/{lib/markup-kit/modals/index.d.ts → src/lib/markup-kit/modals/index.ts} +0 -0
- package/src/lib/markup-kit/modals/markup-kit.module.ts +27 -0
- package/src/lib/markup-kit/modals/modal-size.enum.ts +5 -0
- package/src/lib/markup-kit/modals/right-filter/right-filter.component.html +7 -0
- package/src/lib/markup-kit/modals/right-filter/right-filter.component.scss +6 -0
- package/src/lib/markup-kit/modals/right-filter/right-filter.component.ts +30 -0
- package/src/lib/markup-kit/modals/slide-right/slide-right.component.html +16 -0
- package/src/lib/markup-kit/modals/slide-right/slide-right.component.scss +0 -0
- package/src/lib/markup-kit/modals/slide-right/slide-right.component.ts +50 -0
- package/src/lib/markup-kit/modals/slide-up/slide-up.component.html +16 -0
- package/src/lib/markup-kit/modals/slide-up/slide-up.component.scss +0 -0
- package/src/lib/markup-kit/modals/slide-up/slide-up.component.ts +50 -0
- package/src/lib/markup-kit/page-layouts/central-page/central-page.component.html +6 -0
- package/src/lib/markup-kit/page-layouts/central-page/central-page.component.scss +0 -0
- package/src/lib/markup-kit/page-layouts/central-page/central-page.component.ts +26 -0
- package/src/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.html +3 -0
- package/src/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.scss +0 -0
- package/src/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.ts +15 -0
- package/{lib/markup-kit/page-layouts/index.d.ts → src/lib/markup-kit/page-layouts/index.ts} +0 -0
- package/src/lib/markup-kit/page-layouts/manage-page/manage-page.component.html +10 -0
- package/src/lib/markup-kit/page-layouts/manage-page/manage-page.component.scss +14 -0
- package/src/lib/markup-kit/page-layouts/manage-page/manage-page.component.ts +20 -0
- package/src/lib/markup-kit/page-layouts/page-layouts.module.ts +26 -0
- package/src/lib/markup-kit/page-layouts/profile/profile.component.html +42 -0
- package/src/lib/markup-kit/page-layouts/profile/profile.component.scss +72 -0
- package/src/lib/markup-kit/page-layouts/profile/profile.component.ts +38 -0
- package/src/lib/markup-kit/page-layouts/table-page/table-page.component.html +9 -0
- 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 +16 -0
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.html +3 -0
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.scss +4 -0
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.ts +46 -0
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.html +4 -0
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.scss +12 -0
- package/src/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.ts +28 -0
- package/src/lib/markup-kit/utils/filtered-field/filtered-field.module.ts +19 -0
- package/src/lib/markup-kit/utils/filtered-field/filtered-field.service.ts +32 -0
- package/src/lib/markup-kit/utils/filtered-field/filtred-item.model.ts +15 -0
- package/{lib/markup-kit/utils/filtered-field/index.d.ts → src/lib/markup-kit/utils/filtered-field/index.ts} +0 -0
- package/src/lib/markup-kit/utils/help-block/help-block.component.html +19 -0
- package/src/lib/markup-kit/utils/help-block/help-block.component.scss +22 -0
- package/src/lib/markup-kit/utils/help-block/help-block.component.ts +40 -0
- package/src/lib/markup-kit/utils/help-block/hepl-block.module.ts +14 -0
- package/{lib/markup-kit/utils/help-block/index.d.ts → src/lib/markup-kit/utils/help-block/index.ts} +1 -1
- package/{lib/markup-kit/utils/loader/index.d.ts → src/lib/markup-kit/utils/loader/index.ts} +1 -1
- package/src/lib/markup-kit/utils/loader/loader/loader.component.html +1 -0
- package/src/lib/markup-kit/utils/loader/loader/loader.component.scss +0 -0
- package/src/lib/markup-kit/utils/loader/loader/loader.component.ts +29 -0
- package/src/lib/markup-kit/utils/loader/loader.module.ts +47 -0
- package/src/lib/markup-kit/utils/loader/loader.service.ts +55 -0
- package/src/lib/markup-kit/utils/loader/request-event.enum.ts +1 -0
- package/src/lib/pg-components/card/card.components.html +66 -0
- package/src/lib/pg-components/card/card.components.ts +243 -0
- package/src/lib/pg-components/card/card.module.ts +17 -0
- package/{lib/pg-components/card/index.d.ts → src/lib/pg-components/card/index.ts} +1 -1
- package/{lib/pg-components/progress/index.d.ts → src/lib/pg-components/progress/index.ts} +1 -1
- package/src/lib/pg-components/progress/progress.component.html +28 -0
- package/src/lib/pg-components/progress/progress.component.ts +32 -0
- package/src/lib/pg-components/progress/progress.config.ts +7 -0
- package/src/lib/pg-components/progress/progress.module.ts +16 -0
- package/{lib/pg-components/select/index.d.ts → src/lib/pg-components/select/index.ts} +1 -1
- package/src/lib/pg-components/select/option.component.ts +71 -0
- package/src/lib/pg-components/select/option.pipe.ts +41 -0
- package/src/lib/pg-components/select/select.component.html +77 -0
- package/src/lib/pg-components/select/select.component.ts +808 -0
- package/src/lib/pg-components/select/select.module.ts +14 -0
- package/{lib/pg-components/spec-flow-test/index.d.ts → src/lib/pg-components/spec-flow-test/index.ts} +1 -1
- package/src/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.html +6 -0
- 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 +36 -0
- package/src/lib/pg-components/spec-flow-test/spec-flow-test.module.ts +18 -0
- package/{lib/pg-components/switch/index.d.ts → src/lib/pg-components/switch/index.ts} +1 -1
- package/src/lib/pg-components/switch/switch.component.ts +122 -0
- package/src/lib/pg-components/switch/switch.module.ts +11 -0
- package/{lib/pg-components/tabs/index.d.ts → src/lib/pg-components/tabs/index.ts} +1 -1
- package/src/lib/pg-components/tabs/tab-body.component.ts +12 -0
- package/src/lib/pg-components/tabs/tab-label.directive.ts +40 -0
- package/src/lib/pg-components/tabs/tab.component.ts +62 -0
- package/src/lib/pg-components/tabs/tabs-ink-bar.directive.ts +77 -0
- package/src/lib/pg-components/tabs/tabs-nav.component.ts +345 -0
- package/src/lib/pg-components/tabs/tabs.module.ts +16 -0
- package/src/lib/pg-components/tabs/tabset.component.ts +237 -0
- package/src/lib/pg-components/util/convert.ts +3 -0
- package/src/lib/pg-components/util/request-animation.ts +31 -0
- package/src/lib/styles/pg/_responsive.scss +2 -2
- package/src/lib/styles/pg/modules/_buttons.scss +26 -26
- package/src/lib/styles/pg/modules/_cards.scss +1 -12
- package/{public-api.d.ts → src/public-api.ts} +19 -14
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/esm2020/lib/markup-kit/card/card/card.component.mjs +0 -36
- package/esm2020/lib/markup-kit/card/card-long/card-long.component.mjs +0 -46
- package/esm2020/lib/markup-kit/card/card-long/cart-type-colors.enum.mjs +0 -7
- package/esm2020/lib/markup-kit/card/card-simple/card-simple.component.mjs +0 -23
- package/esm2020/lib/markup-kit/card/card.module.mjs +0 -41
- package/esm2020/lib/markup-kit/card/index.mjs +0 -6
- package/esm2020/lib/markup-kit/collapse/collapse/collapse.component.mjs +0 -87
- package/esm2020/lib/markup-kit/collapse/collapse-set/collapse-set.component.mjs +0 -54
- package/esm2020/lib/markup-kit/collapse/collapse.module.mjs +0 -25
- package/esm2020/lib/markup-kit/collapse/index.mjs +0 -4
- package/esm2020/lib/markup-kit/modals/fill/fill.component.mjs +0 -52
- package/esm2020/lib/markup-kit/modals/index.mjs +0 -7
- package/esm2020/lib/markup-kit/modals/markup-kit.module.mjs +0 -45
- package/esm2020/lib/markup-kit/modals/modal-size.enum.mjs +0 -2
- package/esm2020/lib/markup-kit/modals/right-filter/right-filter.component.mjs +0 -28
- package/esm2020/lib/markup-kit/modals/slide-right/slide-right.component.mjs +0 -55
- package/esm2020/lib/markup-kit/modals/slide-up/slide-up.component.mjs +0 -55
- package/esm2020/lib/markup-kit/page-layouts/central-page/central-page.component.mjs +0 -25
- package/esm2020/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.mjs +0 -14
- package/esm2020/lib/markup-kit/page-layouts/index.mjs +0 -7
- package/esm2020/lib/markup-kit/page-layouts/manage-page/manage-page.component.mjs +0 -25
- package/esm2020/lib/markup-kit/page-layouts/page-layouts.module.mjs +0 -45
- package/esm2020/lib/markup-kit/page-layouts/profile/profile.component.mjs +0 -49
- package/esm2020/lib/markup-kit/page-layouts/table-page/table-page.component.mjs +0 -18
- package/esm2020/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.mjs +0 -40
- package/esm2020/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.mjs +0 -29
- package/esm2020/lib/markup-kit/utils/filtered-field/filtered-field.module.mjs +0 -31
- package/esm2020/lib/markup-kit/utils/filtered-field/filtered-field.service.mjs +0 -30
- package/esm2020/lib/markup-kit/utils/filtered-field/filtred-item.model.mjs +0 -9
- package/esm2020/lib/markup-kit/utils/filtered-field/index.mjs +0 -6
- package/esm2020/lib/markup-kit/utils/help-block/help-block.component.mjs +0 -47
- package/esm2020/lib/markup-kit/utils/help-block/hepl-block.module.mjs +0 -26
- package/esm2020/lib/markup-kit/utils/help-block/index.mjs +0 -3
- package/esm2020/lib/markup-kit/utils/loader/index.mjs +0 -5
- package/esm2020/lib/markup-kit/utils/loader/loader/loader.component.mjs +0 -27
- package/esm2020/lib/markup-kit/utils/loader/loader.module.mjs +0 -58
- package/esm2020/lib/markup-kit/utils/loader/loader.service.mjs +0 -50
- package/esm2020/lib/markup-kit/utils/loader/request-event.enum.mjs +0 -7
- package/esm2020/lib/pg-components/card/card.components.mjs +0 -252
- package/esm2020/lib/pg-components/card/card.module.mjs +0 -24
- package/esm2020/lib/pg-components/card/index.mjs +0 -3
- package/esm2020/lib/pg-components/progress/index.mjs +0 -4
- package/esm2020/lib/pg-components/progress/progress.component.mjs +0 -39
- package/esm2020/lib/pg-components/progress/progress.config.mjs +0 -14
- package/esm2020/lib/pg-components/progress/progress.module.mjs +0 -22
- package/esm2020/lib/pg-components/select/index.mjs +0 -5
- package/esm2020/lib/pg-components/select/option.component.mjs +0 -60
- package/esm2020/lib/pg-components/select/option.pipe.mjs +0 -42
- package/esm2020/lib/pg-components/select/select.component.mjs +0 -762
- package/esm2020/lib/pg-components/select/select.module.mjs +0 -22
- package/esm2020/lib/pg-components/spec-flow-test/index.mjs +0 -3
- package/esm2020/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.mjs +0 -24
- package/esm2020/lib/pg-components/spec-flow-test/spec-flow-test.module.mjs +0 -27
- package/esm2020/lib/pg-components/switch/index.mjs +0 -3
- package/esm2020/lib/pg-components/switch/switch.component.mjs +0 -130
- package/esm2020/lib/pg-components/switch/switch.module.mjs +0 -18
- package/esm2020/lib/pg-components/tabs/index.mjs +0 -8
- package/esm2020/lib/pg-components/tabs/tab-body.component.mjs +0 -22
- package/esm2020/lib/pg-components/tabs/tab-label.directive.mjs +0 -44
- package/esm2020/lib/pg-components/tabs/tab.component.mjs +0 -66
- package/esm2020/lib/pg-components/tabs/tabs-ink-bar.directive.mjs +0 -78
- package/esm2020/lib/pg-components/tabs/tabs-nav.component.mjs +0 -335
- package/esm2020/lib/pg-components/tabs/tabs.module.mjs +0 -24
- package/esm2020/lib/pg-components/tabs/tabset.component.mjs +0 -260
- package/esm2020/lib/pg-components/util/convert.mjs +0 -4
- package/esm2020/lib/pg-components/util/request-animation.mjs +0 -26
- package/esm2020/natec-mef-dev-ui-kit.mjs +0 -5
- package/esm2020/public-api.mjs +0 -16
- package/fesm2015/natec-mef-dev-ui-kit.mjs +0 -3189
- package/fesm2015/natec-mef-dev-ui-kit.mjs.map +0 -1
- package/fesm2020/natec-mef-dev-ui-kit.mjs +0 -3182
- package/fesm2020/natec-mef-dev-ui-kit.mjs.map +0 -1
- package/lib/markup-kit/card/card/card.component.d.ts +0 -17
- package/lib/markup-kit/card/card-long/card-long.component.d.ts +0 -21
- package/lib/markup-kit/card/card-long/cart-type-colors.enum.d.ts +0 -5
- package/lib/markup-kit/card/card-simple/card-simple.component.d.ts +0 -10
- package/lib/markup-kit/card/card.module.d.ts +0 -17
- package/lib/markup-kit/collapse/collapse/collapse.component.d.ts +0 -19
- package/lib/markup-kit/collapse/collapse-set/collapse-set.component.d.ts +0 -18
- package/lib/markup-kit/collapse/collapse.module.d.ts +0 -14
- package/lib/markup-kit/modals/fill/fill.component.d.ts +0 -17
- package/lib/markup-kit/modals/markup-kit.module.d.ts +0 -13
- package/lib/markup-kit/modals/modal-size.enum.d.ts +0 -5
- package/lib/markup-kit/modals/right-filter/right-filter.component.d.ts +0 -13
- package/lib/markup-kit/modals/slide-right/slide-right.component.d.ts +0 -19
- package/lib/markup-kit/modals/slide-up/slide-up.component.d.ts +0 -19
- package/lib/markup-kit/page-layouts/central-page/central-page.component.d.ts +0 -11
- package/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.d.ts +0 -8
- package/lib/markup-kit/page-layouts/manage-page/manage-page.component.d.ts +0 -11
- package/lib/markup-kit/page-layouts/page-layouts.module.d.ts +0 -13
- package/lib/markup-kit/page-layouts/profile/profile.component.d.ts +0 -27
- package/lib/markup-kit/page-layouts/table-page/table-page.component.d.ts +0 -9
- package/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.d.ts +0 -14
- package/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.d.ts +0 -14
- package/lib/markup-kit/utils/filtered-field/filtered-field.module.d.ts +0 -9
- package/lib/markup-kit/utils/filtered-field/filtered-field.service.d.ts +0 -14
- package/lib/markup-kit/utils/filtered-field/filtred-item.model.d.ts +0 -7
- package/lib/markup-kit/utils/help-block/help-block.component.d.ts +0 -11
- package/lib/markup-kit/utils/help-block/hepl-block.module.d.ts +0 -9
- package/lib/markup-kit/utils/loader/loader/loader.component.d.ts +0 -12
- package/lib/markup-kit/utils/loader/loader.module.d.ts +0 -9
- package/lib/markup-kit/utils/loader/loader.service.d.ts +0 -15
- package/lib/markup-kit/utils/loader/request-event.enum.d.ts +0 -5
- package/lib/pg-components/card/card.components.d.ts +0 -60
- package/lib/pg-components/card/card.module.d.ts +0 -11
- package/lib/pg-components/progress/progress.component.d.ts +0 -15
- package/lib/pg-components/progress/progress.config.d.ts +0 -7
- package/lib/pg-components/progress/progress.module.d.ts +0 -10
- package/lib/pg-components/select/option.component.d.ts +0 -21
- package/lib/pg-components/select/option.pipe.d.ts +0 -8
- package/lib/pg-components/select/select.component.d.ts +0 -135
- package/lib/pg-components/select/select.module.d.ts +0 -12
- package/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.d.ts +0 -22
- package/lib/pg-components/spec-flow-test/spec-flow-test.module.d.ts +0 -10
- package/lib/pg-components/switch/switch.component.d.ts +0 -29
- package/lib/pg-components/switch/switch.module.d.ts +0 -8
- package/lib/pg-components/tabs/tab-body.component.d.ts +0 -7
- package/lib/pg-components/tabs/tab-label.directive.d.ts +0 -15
- package/lib/pg-components/tabs/tab.component.d.ts +0 -22
- package/lib/pg-components/tabs/tabs-ink-bar.directive.d.ts +0 -23
- package/lib/pg-components/tabs/tabs-nav.component.d.ts +0 -79
- package/lib/pg-components/tabs/tabs.module.d.ts +0 -14
- package/lib/pg-components/tabs/tabset.component.d.ts +0 -67
- package/lib/pg-components/util/convert.d.ts +0 -1
- package/lib/pg-components/util/request-animation.d.ts +0 -1
- package/natec-mef-dev-ui-kit.d.ts +0 -5
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component, ContentChild, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'mefdev-table-page',
|
|
5
|
+
templateUrl: './table-page.component.html',
|
|
6
|
+
styleUrls: ['./table-page.component.scss']
|
|
7
|
+
})
|
|
8
|
+
export class TablePageComponent implements OnInit {
|
|
9
|
+
@ContentChild("filter_colum") filter_colum: TemplateRef<void>;
|
|
10
|
+
|
|
11
|
+
constructor() { }
|
|
12
|
+
|
|
13
|
+
ngOnInit(): void {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { FilteredFieldService } from '../filtered-field.service';
|
|
3
|
+
import { FiltredItemModel } from '../filtred-item.model';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'mefdev-filtered-field-container',
|
|
7
|
+
templateUrl: './filtered-field-container.component.html',
|
|
8
|
+
styleUrls: ['./filtered-field-container.component.scss']
|
|
9
|
+
})
|
|
10
|
+
export class FilteredFieldContainerComponent implements OnInit {
|
|
11
|
+
|
|
12
|
+
items: FiltredItemModel[] = [];
|
|
13
|
+
|
|
14
|
+
constructor(
|
|
15
|
+
private service: FilteredFieldService
|
|
16
|
+
) { }
|
|
17
|
+
|
|
18
|
+
onOpenFilter(item: FiltredItemModel){
|
|
19
|
+
this.service.sendOpenFilter(item);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
onDiscard(item: FiltredItemModel){
|
|
23
|
+
item.discard(item.standartValue);
|
|
24
|
+
this.items.splice(this.items.findIndex(x => x.id == item.id), 1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
ngOnInit(): void {
|
|
28
|
+
this.service.getNewFilterItem().subscribe(item => {
|
|
29
|
+
let i = this.items.findIndex(x => x.id == item.id)
|
|
30
|
+
|
|
31
|
+
if(item.newValue == item.standartValue){
|
|
32
|
+
this.items[i] = item;
|
|
33
|
+
this.items.splice(i, 1);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if(i != -1){
|
|
38
|
+
this.items[i] = item;
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
this.items.push(item);
|
|
43
|
+
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
}
|
package/src/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
|
+
import { FiltredItemModel } from '../filtred-item.model';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'mefdev-filtered-field-item',
|
|
6
|
+
templateUrl: './filtered-field-item.component.html',
|
|
7
|
+
styleUrls: ['./filtered-field-item.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class FilteredFieldItemComponent implements OnInit {
|
|
10
|
+
|
|
11
|
+
@Input() item: FiltredItemModel;
|
|
12
|
+
@Output() discard = new EventEmitter<FiltredItemModel>();
|
|
13
|
+
@Output() openFilter = new EventEmitter<any>();
|
|
14
|
+
|
|
15
|
+
constructor() { }
|
|
16
|
+
|
|
17
|
+
ngOnInit(): void {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
onOpenFilter(){
|
|
21
|
+
this.openFilter.next({});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
onDiscard(){
|
|
25
|
+
this.discard.next(this.item);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FilteredFieldContainerComponent } from './filtered-field-container/filtered-field-container.component';
|
|
4
|
+
import { FilteredFieldItemComponent } from './filtered-field-item/filtered-field-item.component';
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
declarations: [
|
|
8
|
+
FilteredFieldContainerComponent,
|
|
9
|
+
FilteredFieldItemComponent,
|
|
10
|
+
],
|
|
11
|
+
exports:[
|
|
12
|
+
FilteredFieldItemComponent,
|
|
13
|
+
FilteredFieldContainerComponent
|
|
14
|
+
],
|
|
15
|
+
imports: [
|
|
16
|
+
CommonModule
|
|
17
|
+
]
|
|
18
|
+
})
|
|
19
|
+
export class MefDevFilteredFieldModule { }
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { FiltredItemModel } from './filtred-item.model';
|
|
4
|
+
|
|
5
|
+
@Injectable({
|
|
6
|
+
providedIn: 'root'
|
|
7
|
+
})
|
|
8
|
+
export class FilteredFieldService {
|
|
9
|
+
|
|
10
|
+
private newFilterItem: Subject<FiltredItemModel> = new Subject<FiltredItemModel>();
|
|
11
|
+
private openFilter: Subject<FiltredItemModel> = new Subject<FiltredItemModel>();
|
|
12
|
+
|
|
13
|
+
constructor() {}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
public getOpenFilter(): Observable<FiltredItemModel>{
|
|
17
|
+
return this.openFilter;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public sendOpenFilter(item: FiltredItemModel){
|
|
21
|
+
this.openFilter.next(item);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
public getNewFilterItem(): Observable<FiltredItemModel>{
|
|
26
|
+
return this.newFilterItem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public sendNewFilterItem(item: FiltredItemModel){
|
|
30
|
+
this.newFilterItem.next(item);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class FiltredItemModel{
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
constructor(id:string, newValue: string, standartValue: string, discard: (standartValue: string) => any){
|
|
5
|
+
this.id = id;
|
|
6
|
+
this.newValue = newValue;
|
|
7
|
+
this.standartValue = standartValue;
|
|
8
|
+
this.discard = discard;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
id:string;
|
|
12
|
+
newValue: string;
|
|
13
|
+
standartValue: string;
|
|
14
|
+
discard: (standartValue: string) => any;
|
|
15
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<div class="card-simple" *ngIf="isVisible">
|
|
2
|
+
<div class="row m-1 body-1" (click)="expanded = !expanded" style="cursor: pointer;">
|
|
3
|
+
<div class="col-10" style="color: white;">
|
|
4
|
+
{{ title }}
|
|
5
|
+
</div>
|
|
6
|
+
<div class="col-2">
|
|
7
|
+
<i class="fa fa-window-close" aria-hidden="true" style="float: right; margin-left: 20px;" (click)="isVisible = !isVisible;"></i>
|
|
8
|
+
|
|
9
|
+
<i class="fa fa-angle-down " *ngIf="!expanded" aria-hidden="true" style="float: right;"></i>
|
|
10
|
+
<i class="fa fa-angle-up" *ngIf="expanded" aria-hidden="true" style="float: right;"></i>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class="card-body row" [@smothExpand]="expanded ? 'open' : 'close'">
|
|
15
|
+
<div class="col-12">
|
|
16
|
+
<ng-content></ng-content>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use './../../../styles/designe-colors.scss' as c;
|
|
2
|
+
|
|
3
|
+
.card-simple{
|
|
4
|
+
opacity: 0.7;
|
|
5
|
+
background-color: c.$Green;
|
|
6
|
+
padding: 2px;
|
|
7
|
+
border-radius: 5px;
|
|
8
|
+
margin-top: 0.3em;
|
|
9
|
+
margin-bottom: 0.5em;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.card-body{
|
|
13
|
+
opacity: 1;
|
|
14
|
+
margin-left: 2px;
|
|
15
|
+
margin-right: 2px;
|
|
16
|
+
margin-bottom: 2px;
|
|
17
|
+
border-radius: 5px;
|
|
18
|
+
padding-top: 15px;
|
|
19
|
+
padding-bottom: 15px;
|
|
20
|
+
background-color: c.$Light-Gray-3;
|
|
21
|
+
color: black;
|
|
22
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import {
|
|
3
|
+
trigger,
|
|
4
|
+
state,
|
|
5
|
+
style,
|
|
6
|
+
animate,
|
|
7
|
+
transition,
|
|
8
|
+
} from '@angular/animations';
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'mefdev-help-block',
|
|
12
|
+
templateUrl: './help-block.component.html',
|
|
13
|
+
styleUrls: ['./help-block.component.scss'],
|
|
14
|
+
animations:[
|
|
15
|
+
trigger('smothExpand',[
|
|
16
|
+
state('close', style({
|
|
17
|
+
height: '0',
|
|
18
|
+
margin: '0',
|
|
19
|
+
padding: '0',
|
|
20
|
+
opacity: '0',
|
|
21
|
+
visibility: 'hidden',
|
|
22
|
+
})),
|
|
23
|
+
state('open', style({})),
|
|
24
|
+
transition('close<=>open', animate(200))
|
|
25
|
+
])
|
|
26
|
+
]
|
|
27
|
+
})
|
|
28
|
+
export class HelpBlockComponent implements OnInit {
|
|
29
|
+
|
|
30
|
+
isVisible:boolean = true;
|
|
31
|
+
expanded:boolean = false;
|
|
32
|
+
|
|
33
|
+
@Input('title') title:string = "Help";
|
|
34
|
+
|
|
35
|
+
constructor() { }
|
|
36
|
+
|
|
37
|
+
ngOnInit(): void {
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { HelpBlockComponent } from './help-block.component';
|
|
4
|
+
import { MefDevCollapseModule } from '../../collapse/collapse.module';
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
declarations: [HelpBlockComponent],
|
|
8
|
+
exports: [HelpBlockComponent],
|
|
9
|
+
imports: [
|
|
10
|
+
CommonModule,
|
|
11
|
+
MefDevCollapseModule
|
|
12
|
+
]
|
|
13
|
+
})
|
|
14
|
+
export class MefDevHelpBlockModule { }
|
package/{lib/markup-kit/utils/help-block/index.d.ts → src/lib/markup-kit/utils/help-block/index.ts}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './help-block.component';
|
|
2
|
-
export * from './hepl-block.module';
|
|
2
|
+
export * from './hepl-block.module';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<ngx-ui-loader></ngx-ui-loader>
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { NgxUiLoaderService } from 'ngx-ui-loader';
|
|
3
|
+
import { LoaderService } from '../loader.service';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'mefdev-loader',
|
|
7
|
+
templateUrl: './loader.component.html',
|
|
8
|
+
styleUrls: ['./loader.component.scss']
|
|
9
|
+
})
|
|
10
|
+
export class LoaderComponent implements OnInit {
|
|
11
|
+
|
|
12
|
+
constructor(
|
|
13
|
+
private loaderService: LoaderService,
|
|
14
|
+
private ngxLoader: NgxUiLoaderService
|
|
15
|
+
) {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
ngOnInit(): void {
|
|
19
|
+
this.loaderService.getLoaderIsShow().subscribe((isEnable) => {
|
|
20
|
+
if(isEnable){
|
|
21
|
+
this.ngxLoader.startBackground();
|
|
22
|
+
}
|
|
23
|
+
else{
|
|
24
|
+
this.ngxLoader.stopBackground();
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { LoaderService } from './loader.service';
|
|
4
|
+
import { LoaderComponent } from './loader/loader.component';
|
|
5
|
+
import { NgxUiLoaderConfig, NgxUiLoaderModule, PB_DIRECTION, POSITION, SPINNER } from 'ngx-ui-loader';
|
|
6
|
+
|
|
7
|
+
const ngxUiLoaderConfig: NgxUiLoaderConfig = {
|
|
8
|
+
"bgsColor": "#CF0106",
|
|
9
|
+
"fgsColor": "#CF0106",
|
|
10
|
+
"bgsOpacity": 0.5,
|
|
11
|
+
"bgsPosition": "center-center",
|
|
12
|
+
"bgsSize": 50,
|
|
13
|
+
"bgsType": "ball-spin-clockwise",
|
|
14
|
+
"blur": 5,
|
|
15
|
+
"delay": 0,
|
|
16
|
+
"fastFadeOut": true,
|
|
17
|
+
"fgsPosition": "center-center",
|
|
18
|
+
"fgsSize": 60,
|
|
19
|
+
"fgsType": "ball-spin-clockwise",
|
|
20
|
+
"gap": 57,
|
|
21
|
+
"logoPosition": "center-center",
|
|
22
|
+
"logoSize": 120,
|
|
23
|
+
"logoUrl": "",
|
|
24
|
+
"masterLoaderId": "master",
|
|
25
|
+
"overlayBorderRadius": "0",
|
|
26
|
+
"overlayColor": "rgba(40, 40, 40, 0.8)",
|
|
27
|
+
"pbColor": "red",
|
|
28
|
+
"pbDirection": "ltr",
|
|
29
|
+
"pbThickness": 3,
|
|
30
|
+
"hasProgressBar": false,
|
|
31
|
+
"text": "",
|
|
32
|
+
"textColor": "#FFFFFF",
|
|
33
|
+
"textPosition": "center-center",
|
|
34
|
+
"maxTime": -1,
|
|
35
|
+
"minTime": 300
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@NgModule({
|
|
39
|
+
declarations: [LoaderComponent],
|
|
40
|
+
exports: [LoaderComponent],
|
|
41
|
+
imports: [
|
|
42
|
+
CommonModule,
|
|
43
|
+
NgxUiLoaderModule.forRoot(ngxUiLoaderConfig),
|
|
44
|
+
],
|
|
45
|
+
providers: [LoaderService]
|
|
46
|
+
})
|
|
47
|
+
export class MefDevLoaderModule { }
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { setInterval } from 'timers';
|
|
4
|
+
import { RequestEvent } from './request-event.enum';
|
|
5
|
+
|
|
6
|
+
@Injectable({
|
|
7
|
+
providedIn: 'root'
|
|
8
|
+
})
|
|
9
|
+
export class LoaderService {
|
|
10
|
+
|
|
11
|
+
private stream: Subject<RequestEvent> = new Subject<RequestEvent>();
|
|
12
|
+
private loaderIsShow: Subject<boolean> = new Subject<boolean>();
|
|
13
|
+
private _lastVal: boolean = false;
|
|
14
|
+
private requestCnt: number = 0;
|
|
15
|
+
|
|
16
|
+
constructor() {
|
|
17
|
+
this.stream.subscribe(e => {
|
|
18
|
+
switch (e) {
|
|
19
|
+
case RequestEvent.TX:
|
|
20
|
+
this.requestCnt++;
|
|
21
|
+
break;
|
|
22
|
+
case RequestEvent.RX_OK:
|
|
23
|
+
case RequestEvent.RX_ERR:
|
|
24
|
+
this.requestCnt-=0.5;
|
|
25
|
+
// console.log('LoaderService request', this.requestCnt)
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if(this.requestCnt < 0){
|
|
30
|
+
this.requestCnt = 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
let isZero = this.requestCnt == 0;
|
|
34
|
+
|
|
35
|
+
if(this._lastVal != isZero){
|
|
36
|
+
this._lastVal = isZero;
|
|
37
|
+
|
|
38
|
+
this.loaderIsShow.next(!isZero);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
newEvent(e: RequestEvent){
|
|
45
|
+
this.stream.next(e);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
getLoaderIsShow():Observable<boolean>{
|
|
49
|
+
return this.loaderIsShow;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
update(){
|
|
53
|
+
this.requestCnt = 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export enum RequestEvent { TX, RX_OK, RX_ERR }
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<div class="card card-{{ _type }} {{ _additionalClasses }}" *ngIf="!_close_card" [class.card-collapsed]="_isCollapsed"
|
|
2
|
+
[class.card-maximized]="_isMaximixed" #hostContent class="col-sm-12 col-md-6 col-lg-4"
|
|
3
|
+
[ngStyle]="{'border': _card_border_style}">
|
|
4
|
+
<div class="card-header {{ _extraHeaderClass }}">
|
|
5
|
+
<div class="card-title">
|
|
6
|
+
<ng-template [ngTemplateOutlet]="CardTitle"></ng-template>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="card-controls" *ngIf="_showTools == true">
|
|
9
|
+
<ng-template [ngTemplateOutlet]="CardExtraControls"></ng-template>
|
|
10
|
+
<ul *ngIf="_minimalHeader == false; else minimalBlock">
|
|
11
|
+
<li *ngIf="_toggle == true">
|
|
12
|
+
<a href="javascript:void(0);" data-toggle class="card-collapse" (click)="toggle()"><i
|
|
13
|
+
class="pg pg-arrow_maximize" [class.pg-arrow_minimize]="_isCollapsed"></i></a>
|
|
14
|
+
</li>
|
|
15
|
+
<li *ngIf="_refresh == true">
|
|
16
|
+
<a href="javascript:void(0);" data-toggle class="card-refresh" (click)="refresh()"><i
|
|
17
|
+
class="card-icon card-icon-refresh"></i></a>
|
|
18
|
+
</li>
|
|
19
|
+
<li *ngIf="_maximize == true">
|
|
20
|
+
<a href="javascript:void(0);" data-toggle class="card-maximize" (click)="maximize()"><i
|
|
21
|
+
class="card-icon card-icon-maximize"></i></a>
|
|
22
|
+
</li>
|
|
23
|
+
<li *ngIf="_close == true">
|
|
24
|
+
<a href="javascript:void(0);" data-toggle class="card-close" (click)="close()"><i
|
|
25
|
+
class="card-icon card-icon-close"></i></a>
|
|
26
|
+
</li>
|
|
27
|
+
</ul>
|
|
28
|
+
<!-- <ng-template #minimalBlock>
|
|
29
|
+
<ul>
|
|
30
|
+
<li>
|
|
31
|
+
<a href="javascript:void(0);" (click)="refresh()" class="card-refresh minimal"
|
|
32
|
+
[class.refreshing]="_isLoading">
|
|
33
|
+
<i #minimalCircleLoadingTrigger class="card-icon card-icon-refresh-lg-{{
|
|
34
|
+
_refreshColor == 'light' ? 'white' : 'master'
|
|
35
|
+
}}" [class.fade]="_isLoading"></i>
|
|
36
|
+
<i #minimalCircleLoading class="card-icon-refresh-lg-white-animated"
|
|
37
|
+
style="position: absolute;top:0;left:0" [class.active]="_isLoading"
|
|
38
|
+
[class.hide]="_isLoading != true"></i>
|
|
39
|
+
</a>
|
|
40
|
+
</li>
|
|
41
|
+
</ul>
|
|
42
|
+
</ng-template> -->
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="card-body {{ _extraBodyClass }}" [@collapseState]="_isCollapsed == true ? 'inactive' : 'active'">
|
|
46
|
+
<ng-content></ng-content>
|
|
47
|
+
</div>
|
|
48
|
+
<div *ngIf="_messageVisible == true" class="pgn-wrapper" data-position="top">
|
|
49
|
+
<div class="pgn pgn-bar push-on-sidebar-open">
|
|
50
|
+
<div class="alert alert-danger">
|
|
51
|
+
<span>{{ _message }}</span><button class="close" (click)="alertDismiss()" type="button">
|
|
52
|
+
<span aria-hidden="true">×</span><span class="sr-only">{{ 'Close' }}</span>
|
|
53
|
+
</button>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div *ngIf="_messageVisible == true" class="card-progress" [style.backgroundColor]="
|
|
58
|
+
_minimalHeader ? 'rgba(0,0,0, 0.6)' : 'rgba(255, 255, 255, 0.8)'
|
|
59
|
+
" style=" display: block;"></div>
|
|
60
|
+
<div [@fadeAnimation]="_isLoading" class="card-progress" [style.backgroundColor]="
|
|
61
|
+
_minimalHeader ? 'rgba(0,0,0, 0.6)' : 'rgba(255, 255, 255, 0.8)'
|
|
62
|
+
" style="display: block;pointer-events: none">
|
|
63
|
+
<pg-progress *ngIf="_minimalHeader == false" type="{{ _progressType }}" color="{{ _progressColor }}"
|
|
64
|
+
indeterminate="true" class=""></pg-progress>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|