@natec/mef-dev-ui-kit 0.0.67 → 0.0.68
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/esm2020/lib/markup-kit/card/card/card.component.mjs +36 -0
- package/esm2020/lib/markup-kit/card/card-long/card-long.component.mjs +46 -0
- package/esm2020/lib/markup-kit/card/card-long/cart-type-colors.enum.mjs +7 -0
- package/esm2020/lib/markup-kit/card/card-simple/card-simple.component.mjs +23 -0
- package/esm2020/lib/markup-kit/card/card.module.mjs +41 -0
- package/esm2020/lib/markup-kit/card/index.mjs +6 -0
- package/esm2020/lib/markup-kit/collapse/collapse/collapse.component.mjs +87 -0
- package/esm2020/lib/markup-kit/collapse/collapse-set/collapse-set.component.mjs +54 -0
- package/esm2020/lib/markup-kit/collapse/collapse.module.mjs +25 -0
- package/esm2020/lib/markup-kit/collapse/index.mjs +4 -0
- package/esm2020/lib/markup-kit/modals/fill/fill.component.mjs +52 -0
- package/esm2020/lib/markup-kit/modals/index.mjs +7 -0
- package/esm2020/lib/markup-kit/modals/markup-kit.module.mjs +45 -0
- package/esm2020/lib/markup-kit/modals/modal-size.enum.mjs +2 -0
- package/esm2020/lib/markup-kit/modals/right-filter/right-filter.component.mjs +28 -0
- package/esm2020/lib/markup-kit/modals/slide-right/slide-right.component.mjs +55 -0
- package/esm2020/lib/markup-kit/modals/slide-up/slide-up.component.mjs +55 -0
- package/esm2020/lib/markup-kit/page-layouts/central-page/central-page.component.mjs +25 -0
- package/esm2020/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.mjs +14 -0
- package/esm2020/lib/markup-kit/page-layouts/index.mjs +7 -0
- package/esm2020/lib/markup-kit/page-layouts/manage-page/manage-page.component.mjs +25 -0
- package/esm2020/lib/markup-kit/page-layouts/page-layouts.module.mjs +45 -0
- package/esm2020/lib/markup-kit/page-layouts/profile/profile.component.mjs +49 -0
- package/esm2020/lib/markup-kit/page-layouts/table-page/table-page.component.mjs +18 -0
- package/esm2020/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.mjs +40 -0
- package/esm2020/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.mjs +29 -0
- package/esm2020/lib/markup-kit/utils/filtered-field/filtered-field.module.mjs +31 -0
- package/esm2020/lib/markup-kit/utils/filtered-field/filtered-field.service.mjs +30 -0
- package/esm2020/lib/markup-kit/utils/filtered-field/filtred-item.model.mjs +9 -0
- package/esm2020/lib/markup-kit/utils/filtered-field/index.mjs +6 -0
- package/esm2020/lib/markup-kit/utils/help-block/help-block.component.mjs +47 -0
- package/esm2020/lib/markup-kit/utils/help-block/hepl-block.module.mjs +26 -0
- package/esm2020/lib/markup-kit/utils/help-block/index.mjs +3 -0
- package/esm2020/lib/markup-kit/utils/loader/index.mjs +5 -0
- package/esm2020/lib/markup-kit/utils/loader/loader/loader.component.mjs +27 -0
- package/esm2020/lib/markup-kit/utils/loader/loader.module.mjs +58 -0
- package/esm2020/lib/markup-kit/utils/loader/loader.service.mjs +50 -0
- package/esm2020/lib/markup-kit/utils/loader/request-event.enum.mjs +7 -0
- package/esm2020/lib/pg-components/card/card.components.mjs +252 -0
- package/esm2020/lib/pg-components/card/card.module.mjs +24 -0
- package/esm2020/lib/pg-components/card/index.mjs +3 -0
- package/esm2020/lib/pg-components/progress/index.mjs +4 -0
- package/esm2020/lib/pg-components/progress/progress.component.mjs +39 -0
- package/esm2020/lib/pg-components/progress/progress.config.mjs +14 -0
- package/esm2020/lib/pg-components/progress/progress.module.mjs +22 -0
- package/esm2020/lib/pg-components/select/index.mjs +5 -0
- package/esm2020/lib/pg-components/select/option.component.mjs +60 -0
- package/esm2020/lib/pg-components/select/option.pipe.mjs +42 -0
- package/esm2020/lib/pg-components/select/select.component.mjs +762 -0
- package/esm2020/lib/pg-components/select/select.module.mjs +22 -0
- package/esm2020/lib/pg-components/spec-flow-test/index.mjs +3 -0
- package/esm2020/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.mjs +24 -0
- package/esm2020/lib/pg-components/spec-flow-test/spec-flow-test.module.mjs +27 -0
- package/esm2020/lib/pg-components/switch/index.mjs +3 -0
- package/esm2020/lib/pg-components/switch/switch.component.mjs +130 -0
- package/esm2020/lib/pg-components/switch/switch.module.mjs +18 -0
- package/esm2020/lib/pg-components/tabs/index.mjs +8 -0
- package/esm2020/lib/pg-components/tabs/tab-body.component.mjs +22 -0
- package/esm2020/lib/pg-components/tabs/tab-label.directive.mjs +44 -0
- package/esm2020/lib/pg-components/tabs/tab.component.mjs +66 -0
- package/esm2020/lib/pg-components/tabs/tabs-ink-bar.directive.mjs +78 -0
- package/esm2020/lib/pg-components/tabs/tabs-nav.component.mjs +335 -0
- package/esm2020/lib/pg-components/tabs/tabs.module.mjs +24 -0
- package/esm2020/lib/pg-components/tabs/tabset.component.mjs +260 -0
- package/esm2020/lib/pg-components/util/convert.mjs +4 -0
- package/esm2020/lib/pg-components/util/request-animation.mjs +26 -0
- package/esm2020/natec-mef-dev-ui-kit.mjs +5 -0
- package/esm2020/public-api.mjs +16 -0
- package/fesm2015/natec-mef-dev-ui-kit.mjs +3189 -0
- package/fesm2015/natec-mef-dev-ui-kit.mjs.map +1 -0
- package/fesm2020/natec-mef-dev-ui-kit.mjs +3182 -0
- package/fesm2020/natec-mef-dev-ui-kit.mjs.map +1 -0
- package/lib/markup-kit/card/card/card.component.d.ts +17 -0
- package/lib/markup-kit/card/card-long/card-long.component.d.ts +21 -0
- package/lib/markup-kit/card/card-long/cart-type-colors.enum.d.ts +5 -0
- package/lib/markup-kit/card/card-simple/card-simple.component.d.ts +10 -0
- package/lib/markup-kit/card/card.module.d.ts +17 -0
- package/{src/lib/markup-kit/card/index.ts → lib/markup-kit/card/index.d.ts} +0 -1
- package/lib/markup-kit/collapse/collapse/collapse.component.d.ts +19 -0
- package/lib/markup-kit/collapse/collapse-set/collapse-set.component.d.ts +18 -0
- package/lib/markup-kit/collapse/collapse.module.d.ts +14 -0
- package/{src/lib/markup-kit/collapse/index.ts → lib/markup-kit/collapse/index.d.ts} +0 -0
- package/lib/markup-kit/modals/fill/fill.component.d.ts +17 -0
- package/{src/lib/markup-kit/modals/index.ts → lib/markup-kit/modals/index.d.ts} +0 -0
- package/lib/markup-kit/modals/markup-kit.module.d.ts +13 -0
- package/lib/markup-kit/modals/modal-size.enum.d.ts +5 -0
- package/lib/markup-kit/modals/right-filter/right-filter.component.d.ts +13 -0
- package/lib/markup-kit/modals/slide-right/slide-right.component.d.ts +19 -0
- package/lib/markup-kit/modals/slide-up/slide-up.component.d.ts +19 -0
- package/lib/markup-kit/page-layouts/central-page/central-page.component.d.ts +11 -0
- package/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.d.ts +8 -0
- package/{src/lib/markup-kit/page-layouts/index.ts → lib/markup-kit/page-layouts/index.d.ts} +0 -0
- package/lib/markup-kit/page-layouts/manage-page/manage-page.component.d.ts +11 -0
- package/lib/markup-kit/page-layouts/page-layouts.module.d.ts +13 -0
- package/lib/markup-kit/page-layouts/profile/profile.component.d.ts +27 -0
- package/lib/markup-kit/page-layouts/table-page/table-page.component.d.ts +9 -0
- package/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.d.ts +14 -0
- package/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.d.ts +14 -0
- package/lib/markup-kit/utils/filtered-field/filtered-field.module.d.ts +9 -0
- package/lib/markup-kit/utils/filtered-field/filtered-field.service.d.ts +14 -0
- package/lib/markup-kit/utils/filtered-field/filtred-item.model.d.ts +7 -0
- package/{src/lib/markup-kit/utils/filtered-field/index.ts → lib/markup-kit/utils/filtered-field/index.d.ts} +0 -0
- package/lib/markup-kit/utils/help-block/help-block.component.d.ts +11 -0
- package/lib/markup-kit/utils/help-block/hepl-block.module.d.ts +9 -0
- package/{src/lib/markup-kit/utils/help-block/index.ts → lib/markup-kit/utils/help-block/index.d.ts} +1 -1
- package/{src/lib/markup-kit/utils/loader/index.ts → lib/markup-kit/utils/loader/index.d.ts} +1 -1
- package/lib/markup-kit/utils/loader/loader/loader.component.d.ts +12 -0
- package/lib/markup-kit/utils/loader/loader.module.d.ts +9 -0
- package/lib/markup-kit/utils/loader/loader.service.d.ts +15 -0
- package/lib/markup-kit/utils/loader/request-event.enum.d.ts +5 -0
- package/lib/pg-components/card/card.components.d.ts +60 -0
- package/lib/pg-components/card/card.module.d.ts +11 -0
- package/{src/lib/pg-components/card/index.ts → lib/pg-components/card/index.d.ts} +1 -1
- package/{src/lib/pg-components/progress/index.ts → lib/pg-components/progress/index.d.ts} +1 -1
- package/lib/pg-components/progress/progress.component.d.ts +15 -0
- package/lib/pg-components/progress/progress.config.d.ts +7 -0
- package/lib/pg-components/progress/progress.module.d.ts +10 -0
- package/{src/lib/pg-components/select/index.ts → lib/pg-components/select/index.d.ts} +1 -1
- package/lib/pg-components/select/option.component.d.ts +21 -0
- package/lib/pg-components/select/option.pipe.d.ts +8 -0
- package/lib/pg-components/select/select.component.d.ts +135 -0
- package/lib/pg-components/select/select.module.d.ts +12 -0
- package/{src/lib/pg-components/spec-flow-test/index.ts → lib/pg-components/spec-flow-test/index.d.ts} +1 -1
- package/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.d.ts +22 -0
- package/lib/pg-components/spec-flow-test/spec-flow-test.module.d.ts +10 -0
- package/{src/lib/pg-components/switch/index.ts → lib/pg-components/switch/index.d.ts} +1 -1
- package/lib/pg-components/switch/switch.component.d.ts +29 -0
- package/lib/pg-components/switch/switch.module.d.ts +8 -0
- package/{src/lib/pg-components/tabs/index.ts → lib/pg-components/tabs/index.d.ts} +1 -1
- package/lib/pg-components/tabs/tab-body.component.d.ts +7 -0
- package/lib/pg-components/tabs/tab-label.directive.d.ts +15 -0
- package/lib/pg-components/tabs/tab.component.d.ts +22 -0
- package/lib/pg-components/tabs/tabs-ink-bar.directive.d.ts +23 -0
- package/lib/pg-components/tabs/tabs-nav.component.d.ts +79 -0
- package/lib/pg-components/tabs/tabs.module.d.ts +14 -0
- package/lib/pg-components/tabs/tabset.component.d.ts +67 -0
- package/lib/pg-components/util/convert.d.ts +1 -0
- package/lib/pg-components/util/request-animation.d.ts +1 -0
- package/natec-mef-dev-ui-kit.d.ts +5 -0
- package/package.json +21 -6
- package/{src/public-api.ts → public-api.d.ts} +14 -19
- package/.browserslistrc +0 -16
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -24
- package/src/lib/markup-kit/card/card/card.component.html +0 -46
- package/src/lib/markup-kit/card/card/card.component.scss +0 -61
- package/src/lib/markup-kit/card/card/card.component.ts +0 -31
- package/src/lib/markup-kit/card/card-long/card-long.component.html +0 -54
- 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 -33
- 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 -18
- package/src/lib/markup-kit/card/card.module.ts +0 -23
- package/src/lib/markup-kit/collapse/collapse/collapse.component.html +0 -16
- package/src/lib/markup-kit/collapse/collapse/collapse.component.scss +0 -13
- package/src/lib/markup-kit/collapse/collapse/collapse.component.ts +0 -78
- 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 -58
- package/src/lib/markup-kit/collapse/collapse.module.ts +0 -20
- package/src/lib/markup-kit/modals/fill/fill.component.html +0 -18
- package/src/lib/markup-kit/modals/fill/fill.component.scss +0 -0
- package/src/lib/markup-kit/modals/fill/fill.component.ts +0 -45
- package/src/lib/markup-kit/modals/markup-kit.module.ts +0 -27
- 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 -7
- package/src/lib/markup-kit/modals/right-filter/right-filter.component.scss +0 -6
- package/src/lib/markup-kit/modals/right-filter/right-filter.component.ts +0 -30
- package/src/lib/markup-kit/modals/slide-right/slide-right.component.html +0 -16
- 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 +0 -50
- package/src/lib/markup-kit/modals/slide-up/slide-up.component.html +0 -16
- 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 +0 -50
- 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 -0
- package/src/lib/markup-kit/page-layouts/central-page/central-page.component.ts +0 -26
- 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 -0
- package/src/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.ts +0 -15
- 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 -14
- package/src/lib/markup-kit/page-layouts/manage-page/manage-page.component.ts +0 -20
- 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 -42
- package/src/lib/markup-kit/page-layouts/profile/profile.component.scss +0 -72
- package/src/lib/markup-kit/page-layouts/profile/profile.component.ts +0 -38
- 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 -16
- 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 -46
- 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 -28
- 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 -32
- package/src/lib/markup-kit/utils/filtered-field/filtred-item.model.ts +0 -15
- 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 -40
- package/src/lib/markup-kit/utils/help-block/hepl-block.module.ts +0 -14
- package/src/lib/markup-kit/utils/loader/loader/loader.component.html +0 -1
- package/src/lib/markup-kit/utils/loader/loader/loader.component.scss +0 -0
- package/src/lib/markup-kit/utils/loader/loader/loader.component.ts +0 -29
- package/src/lib/markup-kit/utils/loader/loader.module.ts +0 -47
- package/src/lib/markup-kit/utils/loader/loader.service.ts +0 -55
- package/src/lib/markup-kit/utils/loader/request-event.enum.ts +0 -1
- package/src/lib/pg-components/card/card.components.html +0 -66
- package/src/lib/pg-components/card/card.components.ts +0 -243
- package/src/lib/pg-components/card/card.module.ts +0 -17
- package/src/lib/pg-components/progress/progress.component.html +0 -28
- package/src/lib/pg-components/progress/progress.component.ts +0 -32
- 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/option.component.ts +0 -71
- package/src/lib/pg-components/select/option.pipe.ts +0 -41
- package/src/lib/pg-components/select/select.component.html +0 -77
- package/src/lib/pg-components/select/select.component.ts +0 -808
- package/src/lib/pg-components/select/select.module.ts +0 -14
- 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 -36
- package/src/lib/pg-components/spec-flow-test/spec-flow-test.module.ts +0 -18
- package/src/lib/pg-components/switch/switch.component.ts +0 -122
- package/src/lib/pg-components/switch/switch.module.ts +0 -11
- package/src/lib/pg-components/tabs/tab-body.component.ts +0 -12
- package/src/lib/pg-components/tabs/tab-label.directive.ts +0 -40
- package/src/lib/pg-components/tabs/tab.component.ts +0 -62
- package/src/lib/pg-components/tabs/tabs-ink-bar.directive.ts +0 -77
- package/src/lib/pg-components/tabs/tabs-nav.component.ts +0 -345
- package/src/lib/pg-components/tabs/tabs.module.ts +0 -16
- package/src/lib/pg-components/tabs/tabset.component.ts +0 -237
- package/src/lib/pg-components/util/convert.ts +0 -3
- package/src/lib/pg-components/util/request-animation.ts +0 -31
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
package/ng-package.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
-
"dest": "../../dist/mef-dev-ui-kit",
|
|
4
|
-
"lib": {
|
|
5
|
-
"entryFile": "src/public-api.ts"
|
|
6
|
-
},
|
|
7
|
-
"assets": [
|
|
8
|
-
"src/lib/styles/*",
|
|
9
|
-
"src/lib/styles/img/*",
|
|
10
|
-
"src/lib/styles/fonts/lato/*",
|
|
11
|
-
"src/lib/styles/fonts/montserrat/*",
|
|
12
|
-
"src/lib/styles/fonts/pgicon/*",
|
|
13
|
-
"src/lib/styles/fonts/main-img-font/*",
|
|
14
|
-
"src/lib/styles/pg/*",
|
|
15
|
-
"src/lib/styles/pg/vendor/*",
|
|
16
|
-
"src/lib/styles/pg/modules/*"
|
|
17
|
-
],
|
|
18
|
-
"allowedNonPeerDependencies": [
|
|
19
|
-
"ngx-ui-loader",
|
|
20
|
-
"@angular/cdk",
|
|
21
|
-
"ngx-bootstrap"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<pgcard
|
|
3
|
-
MinimalHeader="true"
|
|
4
|
-
TimeOut="2500"
|
|
5
|
-
[Refresh]="false"
|
|
6
|
-
[Close]="false">
|
|
7
|
-
|
|
8
|
-
<ng-template #CardTitle>
|
|
9
|
-
<ng-template class="card-title body-1" [ngTemplateOutlet]="card_title"></ng-template>
|
|
10
|
-
</ng-template>
|
|
11
|
-
|
|
12
|
-
<div class="plugin-type">
|
|
13
|
-
{{ card_type }}
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<div class="row">
|
|
17
|
-
<div class="col-12">
|
|
18
|
-
<div class="m-l-2 card-description">
|
|
19
|
-
<div *ngIf="!description || description == ''" class="card-no-description"> {{'No plugin description'}}</div>
|
|
20
|
-
<p>
|
|
21
|
-
{{description}}
|
|
22
|
-
</p>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="col-12 mt-3 text-center card-img">
|
|
26
|
-
|
|
27
|
-
<div *ngIf="!img || img == ''" >
|
|
28
|
-
<img src="assets/images/md_icon.png"
|
|
29
|
-
style="max-width: 110px; max-height: 110px;"/>
|
|
30
|
-
</div>
|
|
31
|
-
<div *ngIf="img" >
|
|
32
|
-
<img src="{{img}}" alt="" class="image-responsive-height img-middle"
|
|
33
|
-
height="110px"
|
|
34
|
-
style="max-width: 110px; max-height: 110px;"
|
|
35
|
-
onclick="imgClick()"
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="row mb-3 mt-3">
|
|
42
|
-
<div class="col-12">
|
|
43
|
-
<ng-template [ngTemplateOutlet]="card_footer"></ng-template>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</pgcard>
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
@use './../../../styles/designe-colors.scss' as v;
|
|
2
|
-
@use './../../../styles/fonts.scss';
|
|
3
|
-
|
|
4
|
-
.card-default{
|
|
5
|
-
background-color: v.$Light-Gray-2;
|
|
6
|
-
border-radius: 5px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.card-header{
|
|
10
|
-
height: 72px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
.card-title{
|
|
15
|
-
width: 70%;
|
|
16
|
-
span{
|
|
17
|
-
@extend .body-1;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.plugin-type{
|
|
22
|
-
right: 20px;
|
|
23
|
-
top: 25px;
|
|
24
|
-
position: absolute;
|
|
25
|
-
background-color: v.$Red;
|
|
26
|
-
border-radius: 5px 0px 0px 5px;
|
|
27
|
-
margin-right: -20px;
|
|
28
|
-
height: 28px;
|
|
29
|
-
padding: 5px 15px;
|
|
30
|
-
@extend .h6;
|
|
31
|
-
color: v.$White;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
.card-description{
|
|
36
|
-
height: 40px;
|
|
37
|
-
overflow-y: clip;
|
|
38
|
-
@extend .body-5;
|
|
39
|
-
color: v.$Dark-Gray-2;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
.card-no-description{
|
|
44
|
-
overflow-y: clip;
|
|
45
|
-
height: 60px;
|
|
46
|
-
@extend .body-5;
|
|
47
|
-
color: v.$Light-Gray-1;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.card-img{
|
|
51
|
-
padding: 0;
|
|
52
|
-
height: 130px;
|
|
53
|
-
background-color: v.$White;
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
width: -webkit-fill-available;
|
|
58
|
-
margin-right: calc(var(--bs-gutter-x) * .5);
|
|
59
|
-
margin-left: calc(var(--bs-gutter-x) * .5);
|
|
60
|
-
|
|
61
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'mefdev-card',
|
|
6
|
-
templateUrl: './card.component.html',
|
|
7
|
-
styleUrls: ['./card.component.scss']
|
|
8
|
-
})
|
|
9
|
-
export class CardComponent implements OnInit {
|
|
10
|
-
|
|
11
|
-
@ContentChild("card_title") card_title: TemplateRef<void>;
|
|
12
|
-
@ContentChild("card_footer") card_footer: TemplateRef<void>;
|
|
13
|
-
|
|
14
|
-
@Input() card_type: string;
|
|
15
|
-
@Input() img: string;
|
|
16
|
-
@Input() imgUrl: string;
|
|
17
|
-
@Input() description: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
constructor(
|
|
21
|
-
private router: Router
|
|
22
|
-
) { }
|
|
23
|
-
|
|
24
|
-
ngOnInit(): void {
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public imgClick(){
|
|
28
|
-
this.router.navigate(['/', this.imgUrl.toString()])
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<pgcard
|
|
3
|
-
MinimalHeader="true"
|
|
4
|
-
TimeOut="2500"
|
|
5
|
-
[Refresh]="false"
|
|
6
|
-
[Close]="false"
|
|
7
|
-
>
|
|
8
|
-
|
|
9
|
-
<ng-template #CardTitle>
|
|
10
|
-
<ng-template class="card-title" [ngTemplateOutlet]="title"></ng-template>
|
|
11
|
-
</ng-template>
|
|
12
|
-
|
|
13
|
-
<ng-template #CardExtraControls>
|
|
14
|
-
<div class="plugin-type"
|
|
15
|
-
[ngClass] = "{
|
|
16
|
-
'b-color-Light-Gray-1': type_color === 'UNSET',
|
|
17
|
-
'b-color-Red': type_color === 'RED',
|
|
18
|
-
'b-color-Green': type_color === 'GREEN'}">
|
|
19
|
-
{{type_text}}
|
|
20
|
-
</div>
|
|
21
|
-
</ng-template>
|
|
22
|
-
|
|
23
|
-
<div class="row h-100 m-b-10">
|
|
24
|
-
<div class="col-lg-3 col-12 card-col">
|
|
25
|
-
<div class="row">
|
|
26
|
-
<div class="col-12 card-img m-b-10">
|
|
27
|
-
<div *ngIf="!img || img == ''" >
|
|
28
|
-
<img src="assets/images/md_icon.png"
|
|
29
|
-
style="max-width: 110px; max-height: 110px;"/>
|
|
30
|
-
</div>
|
|
31
|
-
<div *ngIf="img">
|
|
32
|
-
<img src="{{img}}" alt="" class="image-responsive-height img-middle"
|
|
33
|
-
height="110px"
|
|
34
|
-
style="max-width: 110px; max-height: 110px;"
|
|
35
|
-
onclick="imgClick()"
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="col-12 m-t-2 body-6 text-dark params-block">
|
|
40
|
-
<ng-template [ngTemplateOutlet]="params"></ng-template>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
<div class="col-lg-5 col-12 card-col">
|
|
46
|
-
<ng-template [ngTemplateOutlet]="second_col"></ng-template>
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
<div class="col-lg-4 col-12 card-col mt-lg-0 mt-5">
|
|
50
|
-
<ng-template [ngTemplateOutlet]="third_col"></ng-template>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
</pgcard>
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
@use './../../../styles/designe-colors.scss' as v;
|
|
2
|
-
@use './../../../styles/fonts.scss';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
:host::ng-deep .params-block{
|
|
6
|
-
.row{
|
|
7
|
-
margin-top: 0.75em;
|
|
8
|
-
}
|
|
9
|
-
.row:last-child{
|
|
10
|
-
margin-bottom: 0.75em;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host::ng-deep .card-col{
|
|
15
|
-
min-height: 220px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host::ng-deep .header-link{
|
|
19
|
-
opacity: 1;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host::ng-deep .card-default{
|
|
23
|
-
background-color: v.$Light-Gray-3;
|
|
24
|
-
border-radius: 5px;
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host::ng-deep .card-title{
|
|
29
|
-
width: 80%;
|
|
30
|
-
color: black;
|
|
31
|
-
span{
|
|
32
|
-
@extend .h3;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:host::ng-deep .plugin-type{
|
|
37
|
-
border-radius: 5px 0px 0px 5px;
|
|
38
|
-
margin-right: -20px;
|
|
39
|
-
height: 28px;
|
|
40
|
-
padding: 5px 15px;
|
|
41
|
-
@extend .h6;
|
|
42
|
-
color: v.$White;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
:host::ng-deep .card-description{
|
|
47
|
-
height: 40px;
|
|
48
|
-
overflow-y: clip;
|
|
49
|
-
@extend .body-5;
|
|
50
|
-
color: v.$Dark-Gray-2;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
:host::ng-deep .card-no-description{
|
|
55
|
-
overflow-y: clip;
|
|
56
|
-
height: 60px;
|
|
57
|
-
@extend .body-5;
|
|
58
|
-
color: v.$Light-Gray-1;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:host::ng-deep .card-img{
|
|
62
|
-
padding: 0;
|
|
63
|
-
height: 130px;
|
|
64
|
-
background-color: v.$White;
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
width: -webkit-fill-available;
|
|
69
|
-
margin-right: calc(var(--bs-gutter-x) * .5);
|
|
70
|
-
margin-left: calc(var(--bs-gutter-x) * .5);
|
|
71
|
-
|
|
72
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { CartTypeColors } from './cart-type-colors.enum';
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'medev-card-long',
|
|
6
|
-
templateUrl: './card-long.component.html',
|
|
7
|
-
styleUrls: ['./card-long.component.scss']
|
|
8
|
-
})
|
|
9
|
-
export class CardLongComponent implements OnInit {
|
|
10
|
-
|
|
11
|
-
@ContentChild("title") title: TemplateRef<void>;
|
|
12
|
-
@ContentChild("params") params: TemplateRef<void>;
|
|
13
|
-
@ContentChild("second_col") second_col: TemplateRef<void>;
|
|
14
|
-
@ContentChild("third_col") third_col: TemplateRef<void>;
|
|
15
|
-
|
|
16
|
-
@Input() type_text: string;
|
|
17
|
-
@Input() type_color: CartTypeColors = CartTypeColors.UNSET;
|
|
18
|
-
@Input() img: string;
|
|
19
|
-
@Input() imgUrl: string;
|
|
20
|
-
@Input() description: string;
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
private router: Router
|
|
24
|
-
) { }
|
|
25
|
-
|
|
26
|
-
ngOnInit(): void {
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public imgClick(){
|
|
30
|
-
this.router.navigate(['/', this.imgUrl.toString()])
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<div class="card-simple" [ngClass]="{ 'unused-block':isDisabled }">
|
|
2
|
-
<div class="row m-2 body-1" *ngIf="card_title">
|
|
3
|
-
<div class="col-12">
|
|
4
|
-
<ng-template [ngTemplateOutlet]="card_title"></ng-template>
|
|
5
|
-
</div>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="row m-2">
|
|
8
|
-
<div class="col-12">
|
|
9
|
-
<ng-content></ng-content>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'medev-card-simple',
|
|
5
|
-
templateUrl: './card-simple.component.html',
|
|
6
|
-
styleUrls: ['./card-simple.component.scss']
|
|
7
|
-
})
|
|
8
|
-
export class CardSimpleComponent implements OnInit {
|
|
9
|
-
|
|
10
|
-
@Input("disabled") isDisabled: boolean = false;
|
|
11
|
-
@ContentChild("card_title") card_title: TemplateRef<void>;
|
|
12
|
-
|
|
13
|
-
constructor() { }
|
|
14
|
-
|
|
15
|
-
ngOnInit(): void {
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { CardComponent } from './card/card.component';
|
|
4
|
-
// import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
|
|
5
|
-
import { PgSelectModule } from '../../pg-components/select/select.module';
|
|
6
|
-
import { pgCardModule } from "./../../pg-components/card/card.module";
|
|
7
|
-
import { MefDevCollapseModule } from '../collapse/collapse.module';
|
|
8
|
-
import { CardLongComponent } from './card-long/card-long.component';
|
|
9
|
-
import { CardSimpleComponent } from './card-simple/card-simple.component';
|
|
10
|
-
|
|
11
|
-
export const mefDevCardComponents = [CardComponent, CardLongComponent, CardSimpleComponent];
|
|
12
|
-
@NgModule({
|
|
13
|
-
declarations: mefDevCardComponents,
|
|
14
|
-
exports: mefDevCardComponents,
|
|
15
|
-
imports: [
|
|
16
|
-
CommonModule,
|
|
17
|
-
MefDevCollapseModule,
|
|
18
|
-
// PerfectScrollbarModule,
|
|
19
|
-
PgSelectModule,
|
|
20
|
-
pgCardModule,
|
|
21
|
-
]
|
|
22
|
-
})
|
|
23
|
-
export class MefDevCardModule { }
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<div class="row mt-2 card-title" [attr.aria-expanded]="_active" (click)="clickHeader($event)" role="tab"
|
|
2
|
-
href="javascript:;" [ngClass]="{'collapsed':!_active}">
|
|
3
|
-
<div class="col-11">
|
|
4
|
-
<ng-template [ngTemplateOutlet]="CardTitle"></ng-template>
|
|
5
|
-
</div>
|
|
6
|
-
<div class="col-1 align-self-center">
|
|
7
|
-
<i class="fa fa-angle-down float-end " aria-hidden="true" *ngIf="!_active"></i>
|
|
8
|
-
<i class="fa fa-angle-up float-end " aria-hidden="true" *ngIf="_active"></i>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<div class="collapse" [ngClass]="{'show':true,'active':_active,'inactive':!_active}" [@collapseState]="_active?'active':'inactive'">
|
|
13
|
-
<div class="card-body">
|
|
14
|
-
<ng-content></ng-content>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
@use './../../../styles/designe-colors.scss' as c;
|
|
2
|
-
@use './../../../styles/fonts.scss';
|
|
3
|
-
|
|
4
|
-
.card-title{
|
|
5
|
-
background-color: c.$Light-Gray-3;
|
|
6
|
-
padding: 17px;
|
|
7
|
-
margin: 0;
|
|
8
|
-
@extend .h3;
|
|
9
|
-
color: black;
|
|
10
|
-
}
|
|
11
|
-
.collapse{
|
|
12
|
-
background-color: c.$Light-Gray-3;
|
|
13
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
2
|
-
import { Component, ContentChild, ElementRef, Host, HostBinding, Input, TemplateRef } from '@angular/core';
|
|
3
|
-
import { CollapseSetComponent } from '../collapse-set/collapse-set.component';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'mefdev-collapse',
|
|
7
|
-
templateUrl: './collapse.component.html',
|
|
8
|
-
styleUrls: ['./collapse.component.scss'],
|
|
9
|
-
animations: [
|
|
10
|
-
trigger('collapseState', [
|
|
11
|
-
state(
|
|
12
|
-
'inactive',
|
|
13
|
-
style({
|
|
14
|
-
opacity: '0',
|
|
15
|
-
height: 0
|
|
16
|
-
})
|
|
17
|
-
),
|
|
18
|
-
state(
|
|
19
|
-
'active',
|
|
20
|
-
style({
|
|
21
|
-
opacity: '1',
|
|
22
|
-
height: '*'
|
|
23
|
-
})
|
|
24
|
-
),
|
|
25
|
-
transition('inactive => active', animate('125ms ease-in')),
|
|
26
|
-
transition('active => inactive', animate('125ms ease-out'))
|
|
27
|
-
])
|
|
28
|
-
],
|
|
29
|
-
host: {
|
|
30
|
-
'[class.card]': 'true',
|
|
31
|
-
'[class.card-default]': 'true',
|
|
32
|
-
'[class.m-b-0]': 'true'
|
|
33
|
-
}
|
|
34
|
-
})
|
|
35
|
-
export class CollapseComponent {
|
|
36
|
-
|
|
37
|
-
private _disabled = false;
|
|
38
|
-
_active = false;
|
|
39
|
-
_el;
|
|
40
|
-
|
|
41
|
-
@ContentChild("CardTitle") CardTitle: TemplateRef<void>;
|
|
42
|
-
|
|
43
|
-
@Input()
|
|
44
|
-
@HostBinding('class.disabled')
|
|
45
|
-
set Disabled(value: boolean) {
|
|
46
|
-
this._disabled = value;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
get Disabled(): boolean {
|
|
50
|
-
return this._disabled;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@Input()
|
|
54
|
-
set Active(value: boolean) {
|
|
55
|
-
const active = value;
|
|
56
|
-
if (this._active === active) {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
if (!this.Disabled) {
|
|
60
|
-
this._active = active;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
get Active(): boolean {
|
|
65
|
-
return this._active;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
clickHeader($event: MouseEvent): void {
|
|
69
|
-
this.Active = !this.Active;
|
|
70
|
-
/** trigger host collapseSet click event */
|
|
71
|
-
this._collapseSet.pgClick(this);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
constructor(@Host() private _collapseSet: CollapseSetComponent, private _elementRef: ElementRef) {
|
|
75
|
-
this._el = this._elementRef.nativeElement;
|
|
76
|
-
this._collapseSet.addTab(this);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
File without changes
|
|
@@ -1,58 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
}
|