@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
package/.browserslistrc
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
|
|
2
|
+
# For additional information regarding the format and rule options, please see:
|
|
3
|
+
# https://github.com/browserslist/browserslist#queries
|
|
4
|
+
|
|
5
|
+
# For the full list of supported browsers by the Angular framework, please see:
|
|
6
|
+
# https://angular.io/guide/browser-support
|
|
7
|
+
|
|
8
|
+
# You can see what browsers were selected by your queries by running:
|
|
9
|
+
# npx browserslist
|
|
10
|
+
|
|
11
|
+
last 1 Chrome version
|
|
12
|
+
last 1 Firefox version
|
|
13
|
+
last 2 Edge major versions
|
|
14
|
+
last 2 Safari major versions
|
|
15
|
+
last 2 iOS major versions
|
|
16
|
+
Firefox ESR
|
package/karma.conf.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-jasmine-html-reporter'),
|
|
12
|
+
require('karma-coverage'),
|
|
13
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
+
],
|
|
15
|
+
client: {
|
|
16
|
+
jasmine: {
|
|
17
|
+
// you can add configuration options for Jasmine here
|
|
18
|
+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
+
// for example, you can disable the random execution with `random: false`
|
|
20
|
+
// or set a specific seed with `seed: 4321`
|
|
21
|
+
},
|
|
22
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
+
},
|
|
24
|
+
jasmineHtmlReporter: {
|
|
25
|
+
suppressAll: true // removes the duplicated traces
|
|
26
|
+
},
|
|
27
|
+
coverageReporter: {
|
|
28
|
+
dir: require('path').join(__dirname, '../../coverage/mef-dev-ui-tool-kit'),
|
|
29
|
+
subdir: '.',
|
|
30
|
+
reporters: [
|
|
31
|
+
{ type: 'html' },
|
|
32
|
+
{ type: 'text-summary' }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
reporters: ['progress', 'kjhtml'],
|
|
36
|
+
port: 9876,
|
|
37
|
+
colors: true,
|
|
38
|
+
logLevel: config.LOG_INFO,
|
|
39
|
+
autoWatch: true,
|
|
40
|
+
browsers: ['Chrome'],
|
|
41
|
+
singleRun: false,
|
|
42
|
+
restartOnFileChange: true
|
|
43
|
+
});
|
|
44
|
+
};
|
package/ng-package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@natec/mef-dev-ui-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.67",
|
|
4
|
+
|
|
4
5
|
"description": "MEF.DEV UI Kit Library",
|
|
5
6
|
"author": {
|
|
6
7
|
"name": "NATEC"
|
|
@@ -10,6 +11,7 @@
|
|
|
10
11
|
"Plugin",
|
|
11
12
|
"mef.dev"
|
|
12
13
|
],
|
|
14
|
+
|
|
13
15
|
"exports": {
|
|
14
16
|
"./styles/core": {
|
|
15
17
|
"sass": "./src/lib/styles/pg/core.scss"
|
|
@@ -19,19 +21,9 @@
|
|
|
19
21
|
},
|
|
20
22
|
"./styles/fonts": {
|
|
21
23
|
"sass": "./src/lib/styles/fonts.scss"
|
|
22
|
-
},
|
|
23
|
-
"./package.json": {
|
|
24
|
-
"default": "./package.json"
|
|
25
|
-
},
|
|
26
|
-
".": {
|
|
27
|
-
"types": "./natec-mef-dev-ui-kit.d.ts",
|
|
28
|
-
"esm2020": "./esm2020/natec-mef-dev-ui-kit.mjs",
|
|
29
|
-
"es2020": "./fesm2020/natec-mef-dev-ui-kit.mjs",
|
|
30
|
-
"es2015": "./fesm2015/natec-mef-dev-ui-kit.mjs",
|
|
31
|
-
"node": "./fesm2015/natec-mef-dev-ui-kit.mjs",
|
|
32
|
-
"default": "./fesm2020/natec-mef-dev-ui-kit.mjs"
|
|
33
24
|
}
|
|
34
25
|
},
|
|
26
|
+
|
|
35
27
|
"peerDependencies": {
|
|
36
28
|
"@angular/common": "^13.2.0",
|
|
37
29
|
"@angular/core": "^13.2.0"
|
|
@@ -41,12 +33,5 @@
|
|
|
41
33
|
"ngx-bootstrap": "^8.0.0",
|
|
42
34
|
"ngx-ui-loader": "^13.0.0",
|
|
43
35
|
"tslib": "^2.3.0"
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
"es2020": "fesm2020/natec-mef-dev-ui-kit.mjs",
|
|
47
|
-
"esm2020": "esm2020/natec-mef-dev-ui-kit.mjs",
|
|
48
|
-
"fesm2020": "fesm2020/natec-mef-dev-ui-kit.mjs",
|
|
49
|
-
"fesm2015": "fesm2015/natec-mef-dev-ui-kit.mjs",
|
|
50
|
-
"typings": "natec-mef-dev-ui-kit.d.ts",
|
|
51
|
-
"sideEffects": false
|
|
52
|
-
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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>
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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>
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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>
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { }
|
|
@@ -0,0 +1,16 @@
|
|
|
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>
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|