@natec/mef-dev-ui-kit 0.0.66 → 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/modules/_buttons.scss +26 -26
- 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
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { CollapseComponent } from '../collapse/collapse.component';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'mefdev-collapse-set',
|
|
6
|
+
templateUrl: './collapse-set.component.html',
|
|
7
|
+
styleUrls: ['./collapse-set.component.scss'],
|
|
8
|
+
encapsulation: ViewEncapsulation.None,
|
|
9
|
+
})
|
|
10
|
+
export class CollapseSetComponent {
|
|
11
|
+
|
|
12
|
+
private _accordion = false;
|
|
13
|
+
private _horizontal = true;
|
|
14
|
+
private _expandAny = true;
|
|
15
|
+
panels: CollapseComponent[] = [];
|
|
16
|
+
|
|
17
|
+
@Input()
|
|
18
|
+
set expandAny(value: boolean) {
|
|
19
|
+
this._accordion = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get expandAny(): boolean {
|
|
23
|
+
return this._accordion;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@Input()
|
|
27
|
+
set Accordion(value: boolean) {
|
|
28
|
+
this._accordion = value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
get Accordion(): boolean {
|
|
32
|
+
return this._accordion;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@Input()
|
|
36
|
+
set Horizontal(value: boolean) {
|
|
37
|
+
this._horizontal = value;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get Horizontal(): boolean {
|
|
41
|
+
return this._horizontal;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
pgClick(collapse: CollapseComponent): void {
|
|
45
|
+
if (this.Accordion && !this.expandAny) {
|
|
46
|
+
this.panels.map((item, index) => {
|
|
47
|
+
const curIndex = this.panels.indexOf(collapse);
|
|
48
|
+
if (index !== curIndex) {
|
|
49
|
+
item.Active = false;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
addTab(collapse: CollapseComponent): void {
|
|
56
|
+
this.panels.push(collapse);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule,ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import { CollapseSetComponent } from './collapse-set/collapse-set.component';
|
|
4
|
+
import { CollapseComponent } from './collapse/collapse.component';
|
|
5
|
+
|
|
6
|
+
export const mefDevCollapseModuleComponents = [CollapseSetComponent, CollapseComponent];
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
declarations: mefDevCollapseModuleComponents,
|
|
10
|
+
exports : mefDevCollapseModuleComponents,
|
|
11
|
+
imports : [ CommonModule ]
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
export class MefDevCollapseModule {
|
|
15
|
+
static forRoot(): ModuleWithProviders<MefDevCollapseModule> {
|
|
16
|
+
return {
|
|
17
|
+
ngModule: MefDevCollapseModule
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<div bsModal #fadInModal="bs-modal" class="modal fade fill-in" tabindex="-1" role="dialog" aria-hidden="true" (onHide)="modalIsCloused()">
|
|
2
|
+
<button type="button" class="close" (click)="fadInModal.hide()" aria-hidden="true">
|
|
3
|
+
<i class="pg pg-close"></i>
|
|
4
|
+
</button>
|
|
5
|
+
<div class="modal-dialog ">
|
|
6
|
+
<div class="modal-content">
|
|
7
|
+
<div class="modal-header">
|
|
8
|
+
<ng-template [ngTemplateOutlet]="modal_header"></ng-template>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="modal-body">
|
|
11
|
+
<ng-content></ng-content>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="modal-footer">
|
|
14
|
+
<ng-template [ngTemplateOutlet]="modal_footer"></ng-template>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Component, ContentChild, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild } from '@angular/core';
|
|
2
|
+
import { ModalDirective } from 'ngx-bootstrap/modal';
|
|
3
|
+
import { CommonModule } from "@angular/common"; // add for static analizer bug fix
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'mefdev-fill-modal',
|
|
7
|
+
templateUrl: './fill.component.html',
|
|
8
|
+
styleUrls: ['./fill.component.scss']
|
|
9
|
+
})
|
|
10
|
+
export class FillComponent implements OnInit {
|
|
11
|
+
|
|
12
|
+
@ContentChild("modal_header") modal_header: TemplateRef<void>;
|
|
13
|
+
@ContentChild("modal_footer") modal_footer: TemplateRef<void>;
|
|
14
|
+
|
|
15
|
+
@ViewChild('fadInModal', { static: false }) fadInModal?: ModalDirective;
|
|
16
|
+
|
|
17
|
+
@Input() set show(val: boolean){
|
|
18
|
+
if(!this.fadInModal){
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if(val){
|
|
23
|
+
this.showModal();
|
|
24
|
+
}
|
|
25
|
+
else{
|
|
26
|
+
this.hideModal();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
@Output() isClouse = new EventEmitter<boolean>();
|
|
30
|
+
|
|
31
|
+
constructor() { }
|
|
32
|
+
|
|
33
|
+
ngOnInit(): void {
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
modalIsCloused(){
|
|
37
|
+
this.isClouse.emit(true);
|
|
38
|
+
}
|
|
39
|
+
showModal() {
|
|
40
|
+
this.fadInModal?.show();
|
|
41
|
+
}
|
|
42
|
+
public hideModal(){
|
|
43
|
+
this.fadInModal?.hide();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { ModalModule } from "ngx-bootstrap/modal";
|
|
7
|
+
import { CommonModule } from "@angular/common";
|
|
8
|
+
import { RightFilterComponent } from "./right-filter/right-filter.component";
|
|
9
|
+
import { PgSelectModule } from '../../pg-components/select/select.module';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
let mefDevModalModuleComponents = [
|
|
13
|
+
FillComponent,
|
|
14
|
+
SlideUpComponent,
|
|
15
|
+
SlideRightComponent,
|
|
16
|
+
RightFilterComponent
|
|
17
|
+
];
|
|
18
|
+
@NgModule({
|
|
19
|
+
imports: [
|
|
20
|
+
ModalModule,
|
|
21
|
+
CommonModule,
|
|
22
|
+
PgSelectModule
|
|
23
|
+
],
|
|
24
|
+
exports: mefDevModalModuleComponents,
|
|
25
|
+
declarations: mefDevModalModuleComponents
|
|
26
|
+
})
|
|
27
|
+
export class MefDevModalModule {}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<div class="filter-btn">
|
|
2
|
+
<button class="btn btn-secondary text-danger" (click)="openModal()"><i class="fa fa-filter" aria-hidden="true"></i></button>
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
<mefdev-slide-right-modal [show]="isOpen" (isClouse)="modalIsCloused()">
|
|
6
|
+
<ng-content></ng-content>
|
|
7
|
+
</mefdev-slide-right-modal>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { FilteredFieldService } from '../../utils/filtered-field/filtered-field.service';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'mefdev-right-filter',
|
|
6
|
+
templateUrl: './right-filter.component.html',
|
|
7
|
+
styleUrls: ['./right-filter.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class RightFilterComponent implements OnInit {
|
|
10
|
+
|
|
11
|
+
isOpen: boolean = false;
|
|
12
|
+
|
|
13
|
+
constructor(
|
|
14
|
+
private filteredFieldService: FilteredFieldService,) { }
|
|
15
|
+
|
|
16
|
+
ngOnInit(): void {
|
|
17
|
+
this.filteredFieldService.getOpenFilter().subscribe(() => {
|
|
18
|
+
this.isOpen = true;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
openModal(){
|
|
23
|
+
this.isOpen = !this.isOpen;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
modalIsCloused(){
|
|
27
|
+
this.isOpen = false;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<div bsModal #slideRight="bs-modal" class="modal fade slide-right" tabindex="-1" role="dialog" aria-hidden="true" (onHide)="modalIsCloused()">
|
|
2
|
+
<div class="modal-dialog modal-{{size}}">
|
|
3
|
+
<div class="modal-content-wrapper">
|
|
4
|
+
<div class="modal-content">
|
|
5
|
+
<div class="modal-header clearfix text-left">
|
|
6
|
+
<ng-template [ngTemplateOutlet]="modal_header"></ng-template>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="modal-body">
|
|
9
|
+
<ng-content></ng-content>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="modal-footer">
|
|
12
|
+
<ng-template [ngTemplateOutlet]="modal_footer"></ng-template>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Component, ContentChild, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild } from '@angular/core';
|
|
2
|
+
import { ModalDirective } from 'ngx-bootstrap/modal';
|
|
3
|
+
import { ModalSize } from '../modal-size.enum';
|
|
4
|
+
import { CommonModule } from "@angular/common"; // add for static analizer bug fix
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'mefdev-slide-right-modal',
|
|
8
|
+
templateUrl: './slide-right.component.html',
|
|
9
|
+
styleUrls: ['./slide-right.component.scss']
|
|
10
|
+
})
|
|
11
|
+
export class SlideRightComponent implements OnInit {
|
|
12
|
+
|
|
13
|
+
@ContentChild("modal_header") modal_header: TemplateRef<void>;
|
|
14
|
+
@ContentChild("modal_footer") modal_footer: TemplateRef<void>;
|
|
15
|
+
|
|
16
|
+
@ViewChild('slideRight', { static: false }) slideRight: ModalDirective;
|
|
17
|
+
|
|
18
|
+
@Input() size:ModalSize = ModalSize.md;
|
|
19
|
+
|
|
20
|
+
@Input() set show(val: boolean){
|
|
21
|
+
if(!this.slideRight){
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if(val){
|
|
26
|
+
this.showModal();
|
|
27
|
+
}
|
|
28
|
+
else{
|
|
29
|
+
this.hideModal();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
@Output() isClouse = new EventEmitter<boolean>();
|
|
33
|
+
|
|
34
|
+
constructor() { }
|
|
35
|
+
|
|
36
|
+
ngOnInit(): void {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
modalIsCloused(){
|
|
40
|
+
this.isClouse.emit(true);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public showModal(){
|
|
44
|
+
this.slideRight.show();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public hideModal(){
|
|
48
|
+
this.slideRight.hide();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<div bsModal #mdSlideUp="bs-modal" class="modal fade slide-up disable-scroll" tabindex="-1" role="dialog" aria-hidden="false" (onHide)="modalIsCloused()">
|
|
2
|
+
<div class="modal-dialog modal-{{size}}">
|
|
3
|
+
<div class="modal-content-wrapper">
|
|
4
|
+
<div class="modal-content">
|
|
5
|
+
<div class="modal-header clearfix text-left">
|
|
6
|
+
<ng-template [ngTemplateOutlet]="modal_header"></ng-template>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="modal-body">
|
|
9
|
+
<ng-content></ng-content>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="modal-footer">
|
|
12
|
+
<ng-template [ngTemplateOutlet]="modal_footer"></ng-template>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Component, ContentChild, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild } from '@angular/core';
|
|
2
|
+
import { ModalDirective } from 'ngx-bootstrap/modal';
|
|
3
|
+
import { ModalSize } from '../modal-size.enum';
|
|
4
|
+
import { CommonModule } from "@angular/common"; // add for static analizer bug fix
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'mefdev-slide-up-modal',
|
|
8
|
+
templateUrl: './slide-up.component.html',
|
|
9
|
+
styleUrls: ['./slide-up.component.scss']
|
|
10
|
+
})
|
|
11
|
+
export class SlideUpComponent implements OnInit {
|
|
12
|
+
|
|
13
|
+
@ContentChild("modal_header") modal_header: TemplateRef<void>;
|
|
14
|
+
@ContentChild("modal_footer") modal_footer: TemplateRef<void>;
|
|
15
|
+
|
|
16
|
+
@ViewChild('mdSlideUp', { static: false }) mdSlideUp: ModalDirective;
|
|
17
|
+
|
|
18
|
+
@Input() size:ModalSize = ModalSize.md;
|
|
19
|
+
|
|
20
|
+
@Input() set show(val: boolean){
|
|
21
|
+
if(!this.mdSlideUp){
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if(val){
|
|
26
|
+
this.showModal();
|
|
27
|
+
}
|
|
28
|
+
else{
|
|
29
|
+
this.hideModal();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
@Output() isClouse = new EventEmitter<boolean>();
|
|
33
|
+
|
|
34
|
+
constructor() { }
|
|
35
|
+
|
|
36
|
+
ngOnInit(): void {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
modalIsCloused(){
|
|
40
|
+
this.isClouse.emit(true);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public showModal(){
|
|
44
|
+
this.mdSlideUp.show();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public hideModal(){
|
|
48
|
+
this.mdSlideUp.hide();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AfterViewChecked, Component, Input, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
@Component({
|
|
3
|
+
selector: 'mefdev-central-page',
|
|
4
|
+
templateUrl: './central-page.component.html',
|
|
5
|
+
styleUrls: ['./central-page.component.scss']
|
|
6
|
+
})
|
|
7
|
+
export class CentralPageComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
8
|
+
|
|
9
|
+
constructor(
|
|
10
|
+
) {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Input() width: string = '100%';
|
|
14
|
+
|
|
15
|
+
ngOnDestroy(): void {
|
|
16
|
+
document.getElementById('dataMainContent')!.style.height = '';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
ngOnInit(): void {
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ngAfterViewChecked(): void {
|
|
23
|
+
document.getElementById('dataMainContent')!.style.height = '100%'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'mefdev-central-page-row',
|
|
5
|
+
templateUrl: './central-page-row.component.html',
|
|
6
|
+
styleUrls: ['./central-page-row.component.scss']
|
|
7
|
+
})
|
|
8
|
+
export class CentralPageRowComponent implements OnInit {
|
|
9
|
+
|
|
10
|
+
constructor() { }
|
|
11
|
+
|
|
12
|
+
ngOnInit(): void {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<div class="card-tabs">
|
|
2
|
+
<div class="row body-1 card-header" *ngIf="card_title">
|
|
3
|
+
<div class="m-2">
|
|
4
|
+
<ng-template [ngTemplateOutlet]="card_title"></ng-template>
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="row profile-page-tabs">
|
|
8
|
+
<ng-content></ng-content>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use './../../../styles/designe-colors.scss' as c;
|
|
2
|
+
|
|
3
|
+
.card-tabs{
|
|
4
|
+
.card-header{
|
|
5
|
+
background-color: c.$Light-Gray-3;
|
|
6
|
+
padding: 0.5em;
|
|
7
|
+
border: 0;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.profile-page-tabs{
|
|
12
|
+
background-image: linear-gradient(top, c.$Light-Gray-3 28px, transparent 0%, transparent 100%);
|
|
13
|
+
background-image: -webkit-linear-gradient(top, c.$Light-Gray-3 28px, transparent 0%, transparent 100%);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'mefdev-manage-page',
|
|
5
|
+
templateUrl: './manage-page.component.html',
|
|
6
|
+
styleUrls: ['./manage-page.component.scss']
|
|
7
|
+
})
|
|
8
|
+
export class ManagePageComponent implements OnInit {
|
|
9
|
+
|
|
10
|
+
@ContentChild("card_title") card_title: TemplateRef<void>;
|
|
11
|
+
@ContentChild("tabs_block") tabs_block: TemplateRef<void>;
|
|
12
|
+
|
|
13
|
+
@Input() startTabInd = 0;
|
|
14
|
+
|
|
15
|
+
constructor() { }
|
|
16
|
+
|
|
17
|
+
ngOnInit(): void {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { ProfileComponent } from './profile/profile.component';
|
|
4
|
+
import { pgTabsModule } from '../../pg-components/tabs/tabs.module';
|
|
5
|
+
import { CentralPageComponent } from './central-page/central-page.component';
|
|
6
|
+
import { CentralPageRowComponent } from './central-page-row/central-page-row.component';
|
|
7
|
+
import { TablePageComponent } from './table-page/table-page.component';
|
|
8
|
+
import { ManagePageComponent } from './manage-page/manage-page.component';
|
|
9
|
+
|
|
10
|
+
let mefDevPageLayoutsModuleComponents = [
|
|
11
|
+
ProfileComponent,
|
|
12
|
+
CentralPageComponent,
|
|
13
|
+
CentralPageRowComponent,
|
|
14
|
+
TablePageComponent,
|
|
15
|
+
ManagePageComponent
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
@NgModule({
|
|
19
|
+
declarations: mefDevPageLayoutsModuleComponents,
|
|
20
|
+
exports: mefDevPageLayoutsModuleComponents,
|
|
21
|
+
imports: [
|
|
22
|
+
CommonModule,
|
|
23
|
+
pgTabsModule,
|
|
24
|
+
],
|
|
25
|
+
})
|
|
26
|
+
export class MefDevPageLayoutsModule { }
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<div class="row profile-page">
|
|
2
|
+
<div class="col-12 h3 mt-3">
|
|
3
|
+
{{header}}
|
|
4
|
+
</div>
|
|
5
|
+
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-12">
|
|
6
|
+
<div *ngIf="!img || img == ''" >
|
|
7
|
+
<img src="assets/images/md_icon.png" height="124" width="220" />
|
|
8
|
+
</div>
|
|
9
|
+
<div *ngIf="img" >
|
|
10
|
+
<img src="{{img}}" alt="" class="custom-img" [ngStyle]="sizeStyle"
|
|
11
|
+
/>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="col-xl-3 col-lg-4 col-md-5 col-sm-12 mt-4 mt-md-0" >
|
|
16
|
+
<div class="row profile-name">
|
|
17
|
+
<div class="col">
|
|
18
|
+
{{name}}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="row">
|
|
22
|
+
<div class="col profile-description">
|
|
23
|
+
{{shortDescription}}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div class="col-xl-3 col-lg-4 col-md-5 col-sm-12 body-6 mt-4 mt-md-0">
|
|
29
|
+
<ng-template [ngTemplateOutlet]="first_colum"></ng-template>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class="col-xl-3 col-lg-4 col-md-5 col-sm-12 body-6 mt-4 mt-md-0" >
|
|
33
|
+
<ng-template [ngTemplateOutlet]="second_colum"></ng-template>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
</div>
|
|
37
|
+
<div style="position: relative;">
|
|
38
|
+
<div class="row profile-page-tabs">
|
|
39
|
+
<ng-template [ngTemplateOutlet]="footer">
|
|
40
|
+
</ng-template>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@use './../../../styles/designe-colors.scss' as v;
|
|
2
|
+
@use './../../../styles/fonts.scss';
|
|
3
|
+
|
|
4
|
+
:host::ng-deep .profile-page{
|
|
5
|
+
background-color: v.$Light-Gray-3;
|
|
6
|
+
padding-left: 10px;
|
|
7
|
+
color: black;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host::ng-deep .profile-description{
|
|
11
|
+
height: 7em;
|
|
12
|
+
word-break: break-all;
|
|
13
|
+
overflow-y: clip;
|
|
14
|
+
margin-right: 40px;
|
|
15
|
+
@extend .body-6;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host::ng-deep .profile-name{
|
|
19
|
+
height: 2em;
|
|
20
|
+
overflow-y: clip;
|
|
21
|
+
@extend .body-1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host::ng-deep .tab-content-wrapper{
|
|
25
|
+
background-color: v.$White;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host::ng-deep .profile-data-item{
|
|
29
|
+
display: flex;
|
|
30
|
+
margin: 10px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host::ng-deep .profile-data-item{
|
|
34
|
+
display: flex;
|
|
35
|
+
margin: 10px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host::ng-deep .profile-data-item-value{
|
|
39
|
+
font-weight: bold;
|
|
40
|
+
margin-left: 0.25em;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host::ng-deep .profile-page-tabs{
|
|
44
|
+
background-image: linear-gradient(top, v.$Light-Gray-3 53px, transparent 0%, transparent 100%);
|
|
45
|
+
background-image: -webkit-linear-gradient(top, v.$Light-Gray-3 53px, transparent 0%, transparent 100%);
|
|
46
|
+
padding-top: 25px;
|
|
47
|
+
@media (max-width: 720px) {
|
|
48
|
+
background-image: linear-gradient(top, v.$Light-Gray-3 63px, transparent 0%, transparent 100%);
|
|
49
|
+
background-image: -webkit-linear-gradient(top, v.$Light-Gray-3 63px, transparent 0%, transparent 100%);
|
|
50
|
+
padding-top: 35px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host::ng-deep .custom-img{
|
|
55
|
+
max-width: 224px;
|
|
56
|
+
max-height: 128px;
|
|
57
|
+
|
|
58
|
+
margin-right: calc(var(--bs-gutter-x) * .5);
|
|
59
|
+
margin-left: calc(var(--bs-gutter-x) * .5);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host::ng-deep .card-img{
|
|
63
|
+
padding: 0;
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
margin-right: calc(var(--bs-gutter-x) * .5);
|
|
68
|
+
margin-left: calc(var(--bs-gutter-x) * .5);
|
|
69
|
+
|
|
70
|
+
width: 224px;
|
|
71
|
+
height: 128px;
|
|
72
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'mefdev-profile',
|
|
5
|
+
templateUrl: './profile.component.html',
|
|
6
|
+
styleUrls: ['./profile.component.scss']
|
|
7
|
+
})
|
|
8
|
+
export class ProfileComponent implements OnInit {
|
|
9
|
+
|
|
10
|
+
@ContentChild("first_colum") first_colum: TemplateRef<void>;
|
|
11
|
+
@ContentChild("second_colum") second_colum: TemplateRef<void>;
|
|
12
|
+
@ContentChild("footer") footer: TemplateRef<void>;
|
|
13
|
+
|
|
14
|
+
@Input() name:string;
|
|
15
|
+
@Input() img: string = '';
|
|
16
|
+
@Input() shortDescription: string;
|
|
17
|
+
@Input() header: string;
|
|
18
|
+
@Input() circleImg: boolean = false;
|
|
19
|
+
|
|
20
|
+
constructor() { }
|
|
21
|
+
|
|
22
|
+
ngOnInit(): void {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
get sizeStyle(){
|
|
26
|
+
// return { 'width.px': this.width, 'height.px': this.height };
|
|
27
|
+
if(!this.circleImg){
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return {
|
|
32
|
+
'border-top-left-radius': `50%`,
|
|
33
|
+
'border-top-right-radius': `50%`,
|
|
34
|
+
'border-bottom-right-radius': `50%`,
|
|
35
|
+
'border-bottom-left-radius': `50%`,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|