@provoly/dashboard 0.20.3 → 0.20.5
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/components/metadata-editor/style/_o-metadata-editor.scss +0 -5
- package/dataset/components/dataset-detail/dataset-detail.component.d.ts +2 -1
- package/dataset/i18n/en.translations.d.ts +2 -1
- package/dataset/i18n/fr.translations.d.ts +2 -1
- package/dataset/style/_o-pry-dataset-card.scss +4 -37
- package/dataset/style/_o-pry-dataset-detail.scss +2 -53
- package/esm2022/admin/components/admin-abac-rules/admin-abac-rules-form/admin-abac-rules-form.component.mjs +3 -3
- package/esm2022/admin/components/admin-abac-rules/components/attribute-condition/attribute-condition.component.mjs +3 -3
- package/esm2022/admin/components/admin-abac-rules/components/metadata-condition/metadata-condition.component.mjs +3 -3
- package/esm2022/admin/components/admin-classes/admin-classes-customize/symbol/admin-classes-customize-symbol.component.mjs +3 -3
- package/esm2022/admin/components/admin-classes/admin-classes-customize/tooltip/admin-classes-customize-tooltip.component.mjs +3 -3
- package/esm2022/admin/components/admin-classes/admin-classes-form/admin-classes-form.component.mjs +3 -3
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +15 -10
- package/esm2022/admin/components/admin-dataset/shared/admin-form-dataset/admin-form-dataset.component.mjs +3 -3
- package/esm2022/admin/components/admin-environment/admin-environment-form/admin-environment-form.component.mjs +3 -3
- package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +3 -3
- package/esm2022/admin/components/admin-links/admin-links-new/admin-links-new.component.mjs +3 -3
- package/esm2022/admin/components/admin-menu/admin-menu.component.mjs +3 -3
- package/esm2022/admin/components/admin-metadata/shared/form-metadata/form-metadata.component.mjs +3 -3
- package/esm2022/admin/components/admin-metadata-rules/shared/admin-form-metadata-rules/admin-form-metadata-rules.component.mjs +3 -3
- package/esm2022/components/metadata-editor/metadata-editor.component.mjs +3 -3
- package/esm2022/components/metadata-editor/style/css.component.mjs +2 -2
- package/esm2022/components/scheme-picker/scheme-picker.component.mjs +3 -3
- package/esm2022/dataset/components/dataset-card/dataset-card.component.mjs +5 -5
- package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +20 -5
- package/esm2022/dataset/i18n/en.translations.mjs +3 -2
- package/esm2022/dataset/i18n/fr.translations.mjs +4 -3
- package/esm2022/dataset/style/css.component.mjs +2 -2
- package/esm2022/filters/autocomplete/autocomplete.component.mjs +19 -6
- package/esm2022/filters/autocomplete/autocomplete.module.mjs +5 -5
- package/esm2022/filters/autocomplete/style/css.component.mjs +2 -2
- package/esm2022/filters/list/list-filter.component.mjs +1 -1
- package/esm2022/import/components/import.component.mjs +3 -3
- package/esm2022/lib/core/components/about/about.component.mjs +3 -3
- package/esm2022/lib/core/components/base-menu/base-menu.component.mjs +3 -3
- package/esm2022/lib/core/components/ellipsis.directive.mjs +31 -0
- package/esm2022/lib/core/components/select/select.component.mjs +193 -39
- package/esm2022/lib/core/components/select/select.module.mjs +4 -5
- package/esm2022/lib/core/components/share/share.component.mjs +3 -3
- package/esm2022/lib/core/components/translate-id/translate-id.pipe.mjs +7 -8
- package/esm2022/lib/core/core.module.mjs +8 -4
- package/esm2022/lib/core/i18n/en.translations.mjs +7 -6
- package/esm2022/lib/core/i18n/fr.translations.mjs +8 -6
- package/esm2022/lib/core/model/display-options.interface.mjs +18 -4
- package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
- package/esm2022/lib/core/public-api.mjs +2 -1
- package/esm2022/lib/core/store/class/class.actions.mjs +1 -4
- package/esm2022/lib/core/store/class/class.effects.mjs +1 -4
- package/esm2022/lib/core/store/class/class.interface.mjs +1 -1
- package/esm2022/lib/core/store/class/class.reducer.mjs +3 -13
- package/esm2022/lib/core/store/class/class.selectors.mjs +1 -3
- package/esm2022/lib/core/store/class/class.service.mjs +1 -9
- package/esm2022/lib/core/store/config/config.selectors.mjs +1 -3
- package/esm2022/lib/core/store/config/config.service.mjs +4 -7
- package/esm2022/lib/core/toolbox/toolbox-manifest.service.mjs +1 -4
- package/esm2022/lib/dashboard/components/context-menu/object-edition/object-edition.component.mjs +3 -3
- package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +6 -15
- package/esm2022/lib/dashboard/components/widgets/settings/settings.component.mjs +3 -3
- package/esm2022/lib/dashboard/filter/components/filter-group/filter-group.component.mjs +3 -3
- package/esm2022/lib/dashboard/filter/style/css.component.mjs +2 -2
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +1 -4
- package/esm2022/pipeline-components/filter/component/filter.component.mjs +3 -3
- package/esm2022/pipeline-components/input-datasource/component/input-datasource.component.mjs +3 -3
- package/esm2022/pipeline-components/output-dataset/component/output-dataset.component.mjs +3 -3
- package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +5 -5
- package/esm2022/presentation/components/presentation.component.mjs +3 -3
- package/esm2022/presentation/components/title-presentation/title-presentation.component.mjs +11 -21
- package/esm2022/presentation/i18n/fr.translations.mjs +9 -9
- package/esm2022/presentation/style/css.component.mjs +2 -2
- package/esm2022/restitution/components/restitution/restitution.component.mjs +23 -22
- package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +13 -6
- package/esm2022/restitution/i18n/en.translations.mjs +3 -3
- package/esm2022/restitution/i18n/fr.translations.mjs +4 -4
- package/esm2022/restitution/style/css.component.mjs +2 -2
- package/esm2022/search/i18n/en.translations.mjs +2 -1
- package/esm2022/search/i18n/fr.translations.mjs +2 -1
- package/esm2022/search/search-mono-class/components/search-condition/search-condition.component.mjs +3 -3
- package/esm2022/search/search-mono-class/components/search-mono-class/search-mono-class.component.mjs +3 -3
- package/esm2022/search/search-mono-class/components/search-order/search-order.component.mjs +3 -3
- package/esm2022/search/search-multi-class/components/multi-class-condition/multi-class-condition.component.mjs +3 -3
- package/esm2022/toolbox/components/automate-refresh/automate-refresh.component.mjs +3 -3
- package/esm2022/toolbox/components/clear-view/clear-view.component.mjs +3 -3
- package/esm2022/toolbox/components/drag-widgets/drag-widgets.component.mjs +3 -3
- package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +4 -8
- package/esm2022/toolbox/components/launch-tab/launch-tab.component.mjs +3 -3
- package/esm2022/toolbox/components/named-query/named-query.component.mjs +3 -3
- package/esm2022/toolbox/components/refresh-datasets/refresh-datasets.component.mjs +3 -3
- package/esm2022/toolbox/components/save-view/save-view.component.mjs +3 -3
- package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +3 -3
- package/esm2022/toolbox/components/toolbox.component.mjs +4 -3
- package/esm2022/tooltips/attribute/attribute-tooltip.component.mjs +8 -2
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +8 -7
- package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +3 -4
- package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +3 -3
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +10 -4
- package/esm2022/widgets/widget-map/i18n/en.translations.mjs +3 -2
- package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +3 -2
- package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +7 -7
- package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +3 -3
- package/fesm2022/provoly-dashboard-admin.mjs +40 -35
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-components-metadata-editor.mjs +4 -4
- package/fesm2022/provoly-dashboard-components-metadata-editor.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-components-scheme-picker.mjs +2 -2
- package/fesm2022/provoly-dashboard-components-scheme-picker.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-dataset.mjs +28 -11
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-filters-autocomplete.mjs +24 -11
- package/fesm2022/provoly-dashboard-filters-autocomplete.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-filters-list.mjs +1 -1
- package/fesm2022/provoly-dashboard-filters-list.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-import.mjs +2 -2
- package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-pipeline-components-filter.mjs +2 -2
- package/fesm2022/provoly-dashboard-pipeline-components-filter.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs +2 -2
- package/fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs +2 -2
- package/fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +24 -34
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +40 -32
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-search.mjs +10 -8
- package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +22 -25
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-tooltips-attribute.mjs +7 -1
- package/fesm2022/provoly-dashboard-tooltips-attribute.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +7 -6
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +2 -3
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +15 -7
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +6 -6
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +286 -135
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/filters/autocomplete/autocomplete.component.d.ts +2 -0
- package/filters/autocomplete/autocomplete.module.d.ts +1 -1
- package/filters/autocomplete/style/_m-autocomplete.scss +16 -3
- package/lib/core/components/ellipsis.directive.d.ts +11 -0
- package/lib/core/components/select/select.component.d.ts +41 -20
- package/lib/core/components/select/select.module.d.ts +4 -5
- package/lib/core/components/translate-id/translate-id.pipe.d.ts +1 -3
- package/lib/core/core.module.d.ts +15 -14
- package/lib/core/i18n/en.translations.d.ts +4 -3
- package/lib/core/i18n/fr.translations.d.ts +5 -3
- package/lib/core/model/display-options.interface.d.ts +11 -0
- package/lib/core/model/manifest.interface.d.ts +1 -5
- package/lib/core/public-api.d.ts +1 -0
- package/lib/core/store/class/class.actions.d.ts +1 -12
- package/lib/core/store/class/class.effects.d.ts +0 -5
- package/lib/core/store/class/class.interface.d.ts +0 -6
- package/lib/core/store/class/class.reducer.d.ts +2 -3
- package/lib/core/store/class/class.selectors.d.ts +0 -1
- package/lib/core/store/class/class.service.d.ts +1 -5
- package/lib/core/store/config/config.selectors.d.ts +0 -1
- package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +2 -5
- package/lib/dashboard/filter/style/_o-pry-filter-group.scss +0 -11
- package/lib/dashboard/store/dashboard.effects.d.ts +0 -1
- package/lib/dashboard/store/dashboard.selectors.d.ts +0 -9
- package/package.json +1 -8
- package/presentation/components/title-presentation/title-presentation.component.d.ts +3 -5
- package/presentation/style/_o-pry-new-presentation.scss +0 -7
- package/presentation/style/_o-pry-presentation.scss +19 -101
- package/restitution/components/restitution-catalog/restitution-catalog.component.d.ts +1 -1
- package/restitution/i18n/en.translations.d.ts +2 -2
- package/restitution/i18n/fr.translations.d.ts +3 -3
- package/restitution/style/_o-restitution.scss +11 -14
- package/schematics/migration.json +6 -1
- package/schematics/ng-update/version-0-20/index.d.ts +2 -0
- package/schematics/ng-update/version-0-20/index.js +19 -0
- package/schematics/ng-update/version-0-20/index.js.map +1 -0
- package/search/i18n/en.translations.d.ts +1 -0
- package/search/i18n/fr.translations.d.ts +1 -0
- package/styles/base/_utils.scss +4 -0
- package/styles/components/_a-pry-select.scss +34 -10
- package/styles/components/_a-tooltip.scss +26 -19
- package/styles/components/_m-filter.scss +11 -20
- package/styles/components/_m-info-icon.scss +16 -0
- package/styles/components/_m-presentation-title.scss +14 -0
- package/styles/components/_o-about.scss +2 -24
- package/styles/components/_o-dashboard.scss +4 -0
- package/styles/components/_o-draggable-menu.scss +1 -1
- package/styles/components/_o-widget.scss +2 -2
- package/styles/main.scss +2 -1
- package/styles-theme/abstracts-theme/variables/_variables-typo.scss +9 -0
- package/styles-theme/components-theme/_a-pry-select.theme.scss +23 -96
- package/styles-theme/components-theme/_a-tooltip.theme.scss +2 -2
- package/styles-theme/components-theme/_o-pry-composed-condition.theme.scss +0 -12
- package/styles-theme/components-theme/_o-pry-dataset.theme.scss +0 -8
- package/styles-theme/components-theme/_o-pry-presentation.theme.scss +1 -1
- package/styles-theme/components-theme/_o-restitution.theme.scss +10 -0
- package/toolbox/components/toolbox.component.d.ts +1 -0
- package/tooltips/attribute/attribute-tooltip.component.d.ts +1 -0
- package/widgets/widget-chart/component/widget-chart.component.d.ts +0 -1
- package/widgets/widget-map/component/widget-map.component.d.ts +2 -0
- package/widgets/widget-map/i18n/en.translations.d.ts +1 -0
- package/widgets/widget-map/i18n/fr.translations.d.ts +1 -0
- package/widgets/widget-map/style/_o-layer-legend.scss +21 -0
- package/esm2022/supervision/components/supervision-business-data/supervision-business-data.component.mjs +0 -34
- package/esm2022/supervision/components/supervision-flow/supervision-flow.component.mjs +0 -33
- package/esm2022/supervision/components/supervision-infrastructures/supervision-infrastructures.component.mjs +0 -51
- package/esm2022/supervision/components/supervision-integration-errors/supervision-integration-errors-select/supervision-integration-errors-select.component.mjs +0 -27
- package/esm2022/supervision/components/supervision-integration-errors/supervision-integration-errors.component.mjs +0 -100
- package/esm2022/supervision/components/supervision-layout/supervision-layout.component.mjs +0 -47
- package/esm2022/supervision/components/supervision-menu/supervision-menu.component.mjs +0 -32
- package/esm2022/supervision/components/supervision-title/supervision-title.component.mjs +0 -24
- package/esm2022/supervision/components/supervision.component.mjs +0 -19
- package/esm2022/supervision/i18n/en.translations.mjs +0 -58
- package/esm2022/supervision/i18n/fr.translations.mjs +0 -58
- package/esm2022/supervision/provoly-dashboard-supervision.mjs +0 -5
- package/esm2022/supervision/public-api.mjs +0 -2
- package/esm2022/supervision/store/supervision-api.model.mjs +0 -2
- package/esm2022/supervision/store/supervision.actions.mjs +0 -33
- package/esm2022/supervision/store/supervision.effects.mjs +0 -60
- package/esm2022/supervision/store/supervision.reducer.mjs +0 -111
- package/esm2022/supervision/store/supervision.selectors.mjs +0 -35
- package/esm2022/supervision/store/supervision.service.mjs +0 -54
- package/esm2022/supervision/supervision-routing.module.mjs +0 -96
- package/esm2022/supervision/supervision.module.mjs +0 -96
- package/fesm2022/provoly-dashboard-supervision.mjs +0 -861
- package/fesm2022/provoly-dashboard-supervision.mjs.map +0 -1
- package/supervision/components/supervision-business-data/supervision-business-data.component.d.ts +0 -14
- package/supervision/components/supervision-flow/supervision-flow.component.d.ts +0 -14
- package/supervision/components/supervision-infrastructures/supervision-infrastructures.component.d.ts +0 -18
- package/supervision/components/supervision-integration-errors/supervision-integration-errors-select/supervision-integration-errors-select.component.d.ts +0 -12
- package/supervision/components/supervision-integration-errors/supervision-integration-errors.component.d.ts +0 -29
- package/supervision/components/supervision-layout/supervision-layout.component.d.ts +0 -21
- package/supervision/components/supervision-menu/supervision-menu.component.d.ts +0 -13
- package/supervision/components/supervision-title/supervision-title.component.d.ts +0 -11
- package/supervision/components/supervision.component.d.ts +0 -9
- package/supervision/i18n/en.translations.d.ts +0 -57
- package/supervision/i18n/fr.translations.d.ts +0 -57
- package/supervision/index.d.ts +0 -5
- package/supervision/public-api.d.ts +0 -1
- package/supervision/store/supervision-api.model.d.ts +0 -36
- package/supervision/store/supervision.actions.d.ts +0 -121
- package/supervision/store/supervision.effects.d.ts +0 -51
- package/supervision/store/supervision.reducer.d.ts +0 -22
- package/supervision/store/supervision.selectors.d.ts +0 -18
- package/supervision/store/supervision.service.d.ts +0 -19
- package/supervision/supervision-routing.module.d.ts +0 -7
- package/supervision/supervision.module.d.ts +0 -25
|
@@ -3,115 +3,42 @@
|
|
|
3
3
|
|
|
4
4
|
/* Theme Atom - Component pry-select (lib) */
|
|
5
5
|
.a-pry-select {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// box-shadow: none;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&.ng-select {
|
|
15
|
-
.ng-select-container {
|
|
16
|
-
border-color: themed($theme-map, 'color', 'primary', 400);
|
|
17
|
-
border-radius: toRem(5);
|
|
18
|
-
|
|
19
|
-
.ng-value-container {
|
|
20
|
-
.ng-value {
|
|
21
|
-
@include typography-level(themed($theme-map, 'typography', 'form-field'));
|
|
22
|
-
}
|
|
6
|
+
@include typography-level(themed($theme-map, 'typography', 'form-field'));
|
|
7
|
+
border: 1px solid themed($theme-map, 'color', 'primary', 400);
|
|
8
|
+
border-radius: toRem(5);
|
|
9
|
+
background-color: #ffffff;
|
|
23
10
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
}
|
|
11
|
+
&:focus-within {
|
|
12
|
+
@include eltFocusVisible($border-radius: 4px);
|
|
13
|
+
}
|
|
29
14
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
&__value {
|
|
16
|
+
&.-multiple {
|
|
17
|
+
background-color: themed($theme-map, 'color', 'accent', 100);
|
|
33
18
|
}
|
|
34
19
|
}
|
|
35
20
|
|
|
36
|
-
|
|
37
|
-
border-color: themed($theme-map, 'color', 'primary', 400);
|
|
21
|
+
&__options {
|
|
38
22
|
color: themed($theme-map, 'color', 'graph', 01);
|
|
39
23
|
background-color: themed($theme-map, 'color', 'primary', 'contrast', 700);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
&.ng-select .ng-select-container .ng-value-container .ng-placeholder {
|
|
43
|
-
color: themed($theme-map, 'color', 'grey', 600);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Read-only
|
|
47
|
-
&.ng-select.ng-select-disabled {
|
|
48
|
-
> .ng-select-container {
|
|
49
|
-
color: themed($theme-map, 'color', 'primary', 500);
|
|
50
|
-
background-color: themed($theme-map, 'color', 'primary', 200);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.ng-select-multiple {
|
|
55
|
-
& > .ng-select-container {
|
|
56
|
-
& > .ng-value-container {
|
|
57
|
-
& > .ng-value {
|
|
58
|
-
display: flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
color: themed($theme-map, 'color', 'accent', 'contrast', 50);
|
|
61
|
-
background-color: themed($theme-map, 'color', 'accent', 50);
|
|
24
|
+
border: 1px solid themed($theme-map, 'color', 'primary', 400);
|
|
25
|
+
box-shadow: 0 4px 4px #113b6e1f;
|
|
62
26
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
border-right: 1px solid themed($theme-map, 'color', 'primary', 100);
|
|
66
|
-
}
|
|
27
|
+
&__option {
|
|
28
|
+
background-color: #ffffff;
|
|
67
29
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
&:hover {
|
|
73
|
-
color: themed($theme-map, 'color', 'primary', 'contrast', 100);
|
|
74
|
-
background-color: themed($theme-map, 'color', 'primary', 100);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
30
|
+
&[aria-selected="true"], &:hover {
|
|
31
|
+
background-color: themed($theme-map, 'color', 'accent', 50);
|
|
32
|
+
}
|
|
77
33
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
}
|
|
34
|
+
&:hover {
|
|
35
|
+
color: themed($theme-map, 'color', 'primary', 'contrast', 100);
|
|
82
36
|
}
|
|
83
37
|
}
|
|
84
38
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// Dropdown
|
|
88
|
-
/*.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,
|
|
89
|
-
.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked*/
|
|
90
|
-
|
|
91
|
-
.ng-dropdown-panel .ng-dropdown-panel-items {
|
|
92
|
-
box-shadow: themed($theme-map, 'decoration', 'shadow', 'default');
|
|
93
|
-
|
|
94
|
-
.ng-option {
|
|
95
|
-
@include typography-level(themed($theme-map, 'typography', 'form-field'));
|
|
96
|
-
background-color: themed($theme-map, 'color', 'primary', 'contrast', 700);
|
|
97
39
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
background-color: themed($theme-map, 'color', 'accent', 50);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&.ng-option-marked.ng-option-selected,
|
|
105
|
-
&.ng-option-selected {
|
|
106
|
-
color: themed($theme-map, 'color', 'primary', 'contrast', 100);
|
|
107
|
-
// background-color: themed($theme-map, 'color', 'primary', 200);
|
|
108
|
-
background-color: themed($theme-map, 'color', 'accent', 50);
|
|
109
|
-
}
|
|
40
|
+
&[aria-disabled="true"] {
|
|
41
|
+
color: themed($theme-map, 'color', 'primary', 500);
|
|
42
|
+
background-color: themed($theme-map, 'color', 'primary', 200);
|
|
110
43
|
}
|
|
111
44
|
}
|
|
112
|
-
|
|
113
|
-
// .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label
|
|
114
|
-
|
|
115
|
-
.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input {
|
|
116
|
-
top: 0;
|
|
117
|
-
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
.a-tooltip {
|
|
7
7
|
&[data-tooltip]:after {
|
|
8
|
-
@include typography-level(themed($theme-map, 'typography', '
|
|
8
|
+
@include typography-level(themed($theme-map, 'typography', 'simple-tooltip'));
|
|
9
9
|
background-color: themed($theme-map, 'color', 'primary', 50);
|
|
10
|
-
color: themed($theme-map, 'color', 'primary',
|
|
10
|
+
color: themed($theme-map, 'color', 'primary', 700);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -46,15 +46,3 @@
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
.o-component-pry-composed-condition.ng-select-disabled {
|
|
51
|
-
.o-pry-composed-condition__type.-vertical-bar {
|
|
52
|
-
&:before {
|
|
53
|
-
background-color: themed($theme-map, 'color', 'primary', 400);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&:after {
|
|
57
|
-
border-color: themed($theme-map, 'color', 'primary', 400);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -20,6 +20,7 @@ export declare class ToolboxComponent implements OnInit {
|
|
|
20
20
|
showDropdownButton$: Observable<boolean>;
|
|
21
21
|
isDropdownOpen: boolean;
|
|
22
22
|
actionsAvailable$: Observable<DisplayOptions | undefined>;
|
|
23
|
+
showEditToggle$: Observable<boolean>;
|
|
23
24
|
set actions(actions: ToolboxAction[]);
|
|
24
25
|
set dropdownActions(dropdownActions: {
|
|
25
26
|
name: string;
|
|
@@ -8,6 +8,7 @@ export declare class AttributeTooltipComponent extends BaseTooltipComponent {
|
|
|
8
8
|
private classes$;
|
|
9
9
|
constructor(translateIdPipe: TranslateIdPipe, store: Store<any>);
|
|
10
10
|
getAttributeName(attribute: string): Observable<string>;
|
|
11
|
+
getAttributeTechnicalName(attribute: string): Observable<string>;
|
|
11
12
|
getValue(attribute: string, limit?: number): Observable<string>;
|
|
12
13
|
_getValue(attribute: string): Observable<string | undefined | number>;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttributeTooltipComponent, never>;
|
|
@@ -115,7 +115,6 @@ export declare class WidgetChartComponent extends DataWidgetComponent implements
|
|
|
115
115
|
static matchingItems(items: Item[], options: ChartWidgetOptions, attributes: Attribute[]): Item[];
|
|
116
116
|
static uniqueAttributesByNames(attributes: Attribute[]): Attribute[];
|
|
117
117
|
templateTypeTranslationFn: (item: any, args: any[]) => string;
|
|
118
|
-
translateAggregations: (item: any) => string;
|
|
119
118
|
advancedEdit: string;
|
|
120
119
|
changeChartTitle(title: string): void;
|
|
121
120
|
changeTimeUnit($event: TimeUnit, variable: VariableDefinition): void;
|
|
@@ -180,6 +180,8 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
180
180
|
tooltipCanMove(number: number): boolean;
|
|
181
181
|
private setStyleAsync;
|
|
182
182
|
get mapLayers(): BaseLayer[];
|
|
183
|
+
get rightSlideLayers(): BaseLayer[];
|
|
184
|
+
get leftSlideLayers(): BaseLayer[];
|
|
183
185
|
changeVisibility(layer: BaseLayer): void;
|
|
184
186
|
changeSingleLayer($event: any): void;
|
|
185
187
|
changeAutoLayer($event: any): void;
|
|
@@ -95,3 +95,24 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
.m-map-slide-legend {
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
position: absolute;
|
|
102
|
+
z-index: 1;
|
|
103
|
+
background-color: white;
|
|
104
|
+
border-radius: toRem(5);
|
|
105
|
+
padding: toRem(5);
|
|
106
|
+
|
|
107
|
+
&.-left {
|
|
108
|
+
left: toRem(65);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.-right {
|
|
112
|
+
right: toRem(47);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&__title {
|
|
116
|
+
font-weight: bold;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { ClassActions, ClassSelectors } from '@provoly/dashboard';
|
|
3
|
-
import { SupervisionActions } from '../../store/supervision.actions';
|
|
4
|
-
import { SupervisionSelectors } from '../../store/supervision.selectors';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@ngrx/store";
|
|
7
|
-
import * as i2 from "@angular/common";
|
|
8
|
-
import * as i3 from "@provoly/dashboard";
|
|
9
|
-
export class SupervisionBusinessDataComponent {
|
|
10
|
-
constructor(store) {
|
|
11
|
-
this.store = store;
|
|
12
|
-
this.sortActive = 'name';
|
|
13
|
-
this.sortDirection = 'asc';
|
|
14
|
-
this.store.dispatch(ClassActions.loadBusinessData());
|
|
15
|
-
this.datas$ = this.store.select(ClassSelectors.classDatas);
|
|
16
|
-
this.loading$ = this.store.select(SupervisionSelectors.loading);
|
|
17
|
-
this.store.dispatch(SupervisionActions.mainActions({
|
|
18
|
-
actions: [
|
|
19
|
-
{
|
|
20
|
-
action: ClassActions.loadBusinessData(),
|
|
21
|
-
label: 'refresh',
|
|
22
|
-
icon: 'synchro'
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SupervisionBusinessDataComponent, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SupervisionBusinessDataComponent, selector: "pry-supervision-business-data", ngImport: i0, template: "<div class=\"o-base-container\">\n <h1 class=\"a-h1\">{{ '@pry.supervision.businessData.title' | i18n }}</h1>\n <table\n class=\"a-table\"\n prySortTable\n prySortActive=\"name\"\n prySortDirection=\"asc\"\n (prySortChange)=\"sortActive = $event.active; sortDirection = $event.direction\"\n >\n <caption>\n {{\n '@pry.supervision.businessData.title' | i18n\n }},\n {{\n '@pry.action.sortableColumnHeader' | i18n\n }}\n </caption>\n <thead>\n <tr>\n <th>\n <pry-icon iconSvg=\"detail\"></pry-icon>\n </th>\n <th prySortHeader=\"name\">{{ '@pry.supervision.businessData.name' | i18n }}</th>\n <th prySortHeader=\"count\">{{ '@pry.supervision.businessData.count' | i18n }}</th>\n <th prySortHeader=\"date\">{{ '@pry.supervision.businessData.date' | i18n }}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let data of datas$ | async | prySortData: sortActive : sortDirection\">\n <td>\n <ng-container *ngIf=\"data.icon; else noImg\">\n <img [height]=\"25\" [width]=\"25\" [src]=\"data.icon | getSecuredImage | async\" [alt]=\"data.title\" />\n </ng-container>\n <ng-template #noImg>\n <img\n [height]=\"25\"\n [width]=\"25\"\n [src]=\"data.id | translateId: { type: 'class', output: 'icon' } | async\"\n [alt]=\"data.title\"\n />\n </ng-template>\n </td>\n <td>{{ data.name }}</td>\n <td>{{ data.count }}</td>\n <td>\n {{ !data.date ? '' : (data.date | date: ('@pry.format.datetime' | i18n)) }}\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.PryIconComponent, selector: "pry-icon", inputs: ["color", "iconSvg", "animation", "iconImage", "alt", "width", "height", "classes"] }, { kind: "component", type: i3.PrySortHeaderComponent, selector: "th[prySortHeader]", inputs: ["prySortHeader"], outputs: ["sortChange"] }, { kind: "directive", type: i3.PrySortHeaderDirective, selector: "[prySortHeader]" }, { kind: "directive", type: i3.PrySortTableDirective, selector: "[prySortTable]", inputs: ["prySortActive", "prySortDirection"], outputs: ["prySortChange"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: i3.TranslateIdPipe, name: "translateId" }, { kind: "pipe", type: i3.GetSecuredImagePipe, name: "getSecuredImage" }, { kind: "pipe", type: i3.PrySortDataPipe, name: "prySortData" }, { kind: "pipe", type: i3.I18nPipe, name: "i18n" }] }); }
|
|
29
|
-
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SupervisionBusinessDataComponent, decorators: [{
|
|
31
|
-
type: Component,
|
|
32
|
-
args: [{ selector: 'pry-supervision-business-data', template: "<div class=\"o-base-container\">\n <h1 class=\"a-h1\">{{ '@pry.supervision.businessData.title' | i18n }}</h1>\n <table\n class=\"a-table\"\n prySortTable\n prySortActive=\"name\"\n prySortDirection=\"asc\"\n (prySortChange)=\"sortActive = $event.active; sortDirection = $event.direction\"\n >\n <caption>\n {{\n '@pry.supervision.businessData.title' | i18n\n }},\n {{\n '@pry.action.sortableColumnHeader' | i18n\n }}\n </caption>\n <thead>\n <tr>\n <th>\n <pry-icon iconSvg=\"detail\"></pry-icon>\n </th>\n <th prySortHeader=\"name\">{{ '@pry.supervision.businessData.name' | i18n }}</th>\n <th prySortHeader=\"count\">{{ '@pry.supervision.businessData.count' | i18n }}</th>\n <th prySortHeader=\"date\">{{ '@pry.supervision.businessData.date' | i18n }}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let data of datas$ | async | prySortData: sortActive : sortDirection\">\n <td>\n <ng-container *ngIf=\"data.icon; else noImg\">\n <img [height]=\"25\" [width]=\"25\" [src]=\"data.icon | getSecuredImage | async\" [alt]=\"data.title\" />\n </ng-container>\n <ng-template #noImg>\n <img\n [height]=\"25\"\n [width]=\"25\"\n [src]=\"data.id | translateId: { type: 'class', output: 'icon' } | async\"\n [alt]=\"data.title\"\n />\n </ng-template>\n </td>\n <td>{{ data.name }}</td>\n <td>{{ data.count }}</td>\n <td>\n {{ !data.date ? '' : (data.date | date: ('@pry.format.datetime' | i18n)) }}\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n" }]
|
|
33
|
-
}], ctorParameters: function () { return [{ type: i1.Store }]; } });
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VwZXJ2aXNpb24tYnVzaW5lc3MtZGF0YS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcm92b2x5L2Rhc2hib2FyZC9zdXBlcnZpc2lvbi9jb21wb25lbnRzL3N1cGVydmlzaW9uLWJ1c2luZXNzLWRhdGEvc3VwZXJ2aXNpb24tYnVzaW5lc3MtZGF0YS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcm92b2x5L2Rhc2hib2FyZC9zdXBlcnZpc2lvbi9jb21wb25lbnRzL3N1cGVydmlzaW9uLWJ1c2luZXNzLWRhdGEvc3VwZXJ2aXNpb24tYnVzaW5lc3MtZGF0YS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTFDLE9BQU8sRUFBZ0IsWUFBWSxFQUFFLGNBQWMsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRWhGLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLG1DQUFtQyxDQUFDOzs7OztBQU16RSxNQUFNLE9BQU8sZ0NBQWdDO0lBTzNDLFlBQW9CLEtBQWlCO1FBQWpCLFVBQUssR0FBTCxLQUFLLENBQVk7UUFIckMsZUFBVSxHQUFJLE1BQU0sQ0FBQztRQUNyQixrQkFBYSxHQUFJLEtBQUssQ0FB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gICAgIDx0ZD57eyBkYXRhLmNvdW50IH19PC90ZD5cbiAgICAgICAgPHRkPlxuICAgICAgICAgIHt7ICFkYXRhLmRhdGUgPyAnJyA6IChkYXRhLmRhdGUgfCBkYXRlOiAoJ0BwcnkuZm9ybWF0LmRhdGV0aW1lJyB8IGkxOG4pKSB9fVxuICAgICAgICA8L3RkPlxuICAgICAgPC90cj5cbiAgICA8L3Rib2R5PlxuICA8L3RhYmxlPlxuPC9kaXY+XG4iXX0=
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { SupervisionActions } from '../../store/supervision.actions';
|
|
3
|
-
import { SupervisionSelectors } from '../../store/supervision.selectors';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@ngrx/store";
|
|
6
|
-
import * as i2 from "@angular/common";
|
|
7
|
-
import * as i3 from "@provoly/dashboard";
|
|
8
|
-
export class SupervisionFlowComponent {
|
|
9
|
-
constructor(store) {
|
|
10
|
-
this.store = store;
|
|
11
|
-
this.sortActive = 'name';
|
|
12
|
-
this.sortDirection = 'asc';
|
|
13
|
-
this.store.dispatch(SupervisionActions.loadFlows());
|
|
14
|
-
this.flows$ = this.store.select(SupervisionSelectors.inputFlows);
|
|
15
|
-
this.loading$ = this.store.select(SupervisionSelectors.loading);
|
|
16
|
-
this.store.dispatch(SupervisionActions.mainActions({
|
|
17
|
-
actions: [
|
|
18
|
-
{
|
|
19
|
-
action: SupervisionActions.loadFlows(),
|
|
20
|
-
label: 'refresh',
|
|
21
|
-
icon: 'synchro'
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}));
|
|
25
|
-
}
|
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SupervisionFlowComponent, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SupervisionFlowComponent, selector: "pry-supervision-flow", ngImport: i0, template: "<div class=\"o-base-container\">\n <h1 class=\"a-h1\">{{ '@pry.supervision.inputFlow.title' | i18n }}</h1>\n\n <table\n class=\"a-table\"\n prySortTable\n prySortActive=\"name\"\n prySortDirection=\"asc\"\n (prySortChange)=\"sortActive = $event.active; sortDirection = $event.direction\"\n >\n <caption>\n {{\n '@pry.supervision.inputFlow.title' | i18n\n }},\n {{\n '@pry.action.sortableColumnHeader' | i18n\n }}\n </caption>\n <thead>\n <tr>\n <th prySortHeader=\"name\">{{ '@pry.supervision.inputFlow.name' | i18n }}</th>\n <th prySortHeader=\"format\">{{ '@pry.supervision.inputFlow.format' | i18n }}</th>\n <th>{{ '@pry.supervision.inputFlow.state' | i18n }}</th>\n <th prySortHeader=\"nbIntegrationOk\">{{ '@pry.supervision.inputFlow.oks' | i18n }}</th>\n <th prySortHeader=\"nbIntegrationKo\">{{ '@pry.supervision.inputFlow.kos' | i18n }}</th>\n <th prySortHeader=\"dateIntegration\">{{ '@pry.supervision.inputFlow.date' | i18n }}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let flow of flows$ | async | prySortData: sortActive : sortDirection\">\n <td>\n <div class=\"u-display-flex -align-center\">\n {{ flow.name }}\n <a *ngIf=\"flow.accessLink\" [href]=\"flow.accessLink\" target=\"_blank\" class=\"a-btn a-btn--icon-only\">\n <pry-icon iconSvg=\"launch\" [height]=\"15\" [width]=\"15\"></pry-icon>\n <span class=\"u-sr-only\">{{ '@pry.action.opensInNewTab' | i18n }}</span>\n </a>\n </div>\n </td>\n <td>{{ flow.format }}</td>\n <td>\n <span class=\"a-badge\" [ngClass]=\"{ '-status-ok': flow.status, '-status-inactive': !flow.status }\">\n {{ (flow.status ? '@pry.supervision.inputFlow.active' : '@pry.supervision.inputFlow.inactive') | i18n }}\n </span>\n </td>\n <td>{{ flow.nbIntegrationOk }}</td>\n <td>{{ flow.nbIntegrationKo }}</td>\n <td>{{ flow.dateIntegration | date: ('@pry.format.datetime' | i18n) }}</td>\n </tr>\n </tbody>\n </table>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.PryIconComponent, selector: "pry-icon", inputs: ["color", "iconSvg", "animation", "iconImage", "alt", "width", "height", "classes"] }, { kind: "component", type: i3.PrySortHeaderComponent, selector: "th[prySortHeader]", inputs: ["prySortHeader"], outputs: ["sortChange"] }, { kind: "directive", type: i3.PrySortHeaderDirective, selector: "[prySortHeader]" }, { kind: "directive", type: i3.PrySortTableDirective, selector: "[prySortTable]", inputs: ["prySortActive", "prySortDirection"], outputs: ["prySortChange"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: i3.PrySortDataPipe, name: "prySortData" }, { kind: "pipe", type: i3.I18nPipe, name: "i18n" }] }); }
|
|
28
|
-
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SupervisionFlowComponent, decorators: [{
|
|
30
|
-
type: Component,
|
|
31
|
-
args: [{ selector: 'pry-supervision-flow', template: "<div class=\"o-base-container\">\n <h1 class=\"a-h1\">{{ '@pry.supervision.inputFlow.title' | i18n }}</h1>\n\n <table\n class=\"a-table\"\n prySortTable\n prySortActive=\"name\"\n prySortDirection=\"asc\"\n (prySortChange)=\"sortActive = $event.active; sortDirection = $event.direction\"\n >\n <caption>\n {{\n '@pry.supervision.inputFlow.title' | i18n\n }},\n {{\n '@pry.action.sortableColumnHeader' | i18n\n }}\n </caption>\n <thead>\n <tr>\n <th prySortHeader=\"name\">{{ '@pry.supervision.inputFlow.name' | i18n }}</th>\n <th prySortHeader=\"format\">{{ '@pry.supervision.inputFlow.format' | i18n }}</th>\n <th>{{ '@pry.supervision.inputFlow.state' | i18n }}</th>\n <th prySortHeader=\"nbIntegrationOk\">{{ '@pry.supervision.inputFlow.oks' | i18n }}</th>\n <th prySortHeader=\"nbIntegrationKo\">{{ '@pry.supervision.inputFlow.kos' | i18n }}</th>\n <th prySortHeader=\"dateIntegration\">{{ '@pry.supervision.inputFlow.date' | i18n }}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let flow of flows$ | async | prySortData: sortActive : sortDirection\">\n <td>\n <div class=\"u-display-flex -align-center\">\n {{ flow.name }}\n <a *ngIf=\"flow.accessLink\" [href]=\"flow.accessLink\" target=\"_blank\" class=\"a-btn a-btn--icon-only\">\n <pry-icon iconSvg=\"launch\" [height]=\"15\" [width]=\"15\"></pry-icon>\n <span class=\"u-sr-only\">{{ '@pry.action.opensInNewTab' | i18n }}</span>\n </a>\n </div>\n </td>\n <td>{{ flow.format }}</td>\n <td>\n <span class=\"a-badge\" [ngClass]=\"{ '-status-ok': flow.status, '-status-inactive': !flow.status }\">\n {{ (flow.status ? '@pry.supervision.inputFlow.active' : '@pry.supervision.inputFlow.inactive') | i18n }}\n </span>\n </td>\n <td>{{ flow.nbIntegrationOk }}</td>\n <td>{{ flow.nbIntegrationKo }}</td>\n <td>{{ flow.dateIntegration | date: ('@pry.format.datetime' | i18n) }}</td>\n </tr>\n </tbody>\n </table>\n</div>\n" }]
|
|
32
|
-
}], ctorParameters: function () { return [{ type: i1.Store }]; } });
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VwZXJ2aXNpb24tZmxvdy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcm92b2x5L2Rhc2hib2FyZC9zdXB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gICAgICAgICA8L3NwYW4+XG4gICAgICAgIDwvdGQ+XG4gICAgICAgIDx0ZD57eyBmbG93Lm5iSW50ZWdyYXRpb25PayB9fTwvdGQ+XG4gICAgICAgIDx0ZD57eyBmbG93Lm5iSW50ZWdyYXRpb25LbyB9fTwvdGQ+XG4gICAgICAgIDx0ZD57eyBmbG93LmRhdGVJbnRlZ3JhdGlvbiB8IGRhdGU6ICgnQHByeS5mb3JtYXQuZGF0ZXRpbWUnIHwgaTE4bikgfX08L3RkPlxuICAgICAgPC90cj5cbiAgICA8L3Rib2R5PlxuICA8L3RhYmxlPlxuPC9kaXY+XG4iXX0=
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { SupervisionActions } from '../../store/supervision.actions';
|
|
3
|
-
import { SupervisionSelectors } from '../../store/supervision.selectors';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@ngrx/store";
|
|
6
|
-
import * as i2 from "@angular/common";
|
|
7
|
-
import * as i3 from "@provoly/dashboard";
|
|
8
|
-
export class SupervisionInfrastructuresComponent {
|
|
9
|
-
constructor(store) {
|
|
10
|
-
this.store = store;
|
|
11
|
-
this.classFromStatus = {
|
|
12
|
-
GREEN: '-ok',
|
|
13
|
-
YELLOW: '-warning',
|
|
14
|
-
RED: '-error'
|
|
15
|
-
};
|
|
16
|
-
this.store.dispatch(SupervisionActions.loadInfras());
|
|
17
|
-
this.infras$ = this.store.select(SupervisionSelectors.infrastructures);
|
|
18
|
-
this.lastInfraScale$ = this.store.select(SupervisionSelectors.lastInfraScale);
|
|
19
|
-
this.loading$ = this.store.select(SupervisionSelectors.loading);
|
|
20
|
-
this.store.dispatch(SupervisionActions.mainActions({
|
|
21
|
-
actions: [
|
|
22
|
-
{
|
|
23
|
-
action: SupervisionActions.loadInfras(),
|
|
24
|
-
label: 'refresh',
|
|
25
|
-
icon: 'synchro'
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
onScaleUp(infra, replicas) {
|
|
31
|
-
this.store.dispatch(SupervisionActions.scaleInfra({
|
|
32
|
-
name: infra,
|
|
33
|
-
scale: replicas + 1,
|
|
34
|
-
up: true
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
onScaleDown(infra, replicas) {
|
|
38
|
-
this.store.dispatch(SupervisionActions.scaleInfra({
|
|
39
|
-
name: infra,
|
|
40
|
-
scale: replicas - 1,
|
|
41
|
-
up: false
|
|
42
|
-
}));
|
|
43
|
-
}
|
|
44
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SupervisionInfrastructuresComponent, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
45
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SupervisionInfrastructuresComponent, selector: "pry-supervision-infrastructures", ngImport: i0, template: "<div class=\"o-base-container\">\n <h1 class=\"a-h1\">{{ '@pry.supervision.infrastructures.title' | i18n }}</h1>\n\n <ul class=\"o-cards-list\">\n <li *ngFor=\"let infra of infras$ | async\" class=\"o-cards-list__item\">\n <div class=\"o-card o-card--infra\">\n <div class=\"o-card__header\">\n <div class=\"o-card__header__logo\"></div>\n <div class=\"o-card__header__title\">\n <h4 class=\"a-h4\">{{ infra.name }}</h4>\n <p class=\"a-p\">{{ infra.title }}</p>\n </div>\n <div *ngIf=\"infra.status\" class=\"o-card__header__status\" [ngClass]=\"classFromStatus[infra.status]\"></div>\n </div>\n\n <div class=\"o-card__content\">\n <p class=\"a-p\">\n {{ infra.available }}\n {{ '@pry.supervision.infrastructures.available' + (infra.available > 1 ? 's' : '') | i18n }}\n </p>\n\n <ng-container *ngIf=\"lastInfraScale$ | async as lastInfraScale\">\n <span *ngIf=\"lastInfraScale.name === infra.name\" class=\"o-card__content__info\">\n {{ '@pry.supervision.infrastructures.scaleReplica' + (lastInfraScale.up ? 'Up' : 'Down') | i18n }}\n {{ lastInfraScale.time | date: 'HH:mm' }}\n </span>\n </ng-container>\n </div>\n\n <div class=\"o-card__footer\">\n <div class=\"o-card__footer__message\">\n <pry-icon iconSvg=\"grid_view\" [height]=\"20\" [width]=\"20\"></pry-icon>\n <span>\n {{ infra.replicas }}\n {{ '@pry.supervision.infrastructures.replica' + (infra.replicas > 1 ? 's' : '') | i18n }}\n </span>\n </div>\n\n <ng-container *pryAccess=\"{ module: 'supervision', page: 'infrastructures', action: 'scale' }\">\n <div *ngIf=\"infra.hotScale\" class=\"m-minus-plus\">\n <ng-container *ngIf=\"infra.replicas !== infra.available; else scaleTemplate\">\n <button\n class=\"m-minus-plus__btn -minus\"\n disabled\n title=\"{{ '@pry.supervision.infrastructures.removeInstance' | i18n }}\"\n >\n <span class=\"u-visually-hidden\">{{ '@pry.supervision.infrastructures.removeInstance' | i18n }}</span>\n <span class=\"m-minus-plus__btn__sign\" aria-hidden=\"true\"></span>\n </button>\n <button\n class=\"m-minus-plus__btn -plus\"\n disabled\n title=\"{{ '@pry.supervision.infrastructures.addInstance' | i18n }}\"\n >\n <span class=\"u-visually-hidden\">{{ '@pry.supervision.infrastructures.addInstance' | i18n }}</span>\n <span class=\"m-minus-plus__btn__sign\" aria-hidden=\"true\"></span>\n </button>\n </ng-container>\n\n <ng-template #scaleTemplate>\n <button\n class=\"m-minus-plus__btn -minus scale-down\"\n [disabled]=\"infra.replicas === infra.minReplicas\"\n title=\"{{ '@pry.supervision.infrastructures.removeInstance' | i18n }}\"\n (click)=\"infra.replicas !== infra.minReplicas && onScaleDown(infra.name, infra.replicas)\"\n >\n <span class=\"u-visually-hidden\">{{ '@pry.supervision.infrastructures.removeInstance' | i18n }}</span>\n <span class=\"m-minus-plus__btn__sign\" aria-hidden=\"true\"></span>\n </button>\n <button\n class=\"m-minus-plus__btn -plus scale-up\"\n [disabled]=\"infra.replicas === infra.maxReplicas\"\n title=\"{{ '@pry.supervision.infrastructures.addInstance' | i18n }}\"\n (click)=\"infra.replicas !== infra.maxReplicas && onScaleUp(infra.name, infra.replicas)\"\n >\n <span class=\"u-visually-hidden\">{{ '@pry.supervision.infrastructures.addInstance' | i18n }}</span>\n <span class=\"m-minus-plus__btn__sign\" aria-hidden=\"true\"></span>\n </button>\n </ng-template>\n </div>\n </ng-container>\n </div>\n </div>\n </li>\n </ul>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PryAccessDirective, selector: "[pryAccess]", inputs: ["pryAccess"] }, { kind: "component", type: i3.PryIconComponent, selector: "pry-icon", inputs: ["color", "iconSvg", "animation", "iconImage", "alt", "width", "height", "classes"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: i3.I18nPipe, name: "i18n" }] }); }
|
|
46
|
-
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SupervisionInfrastructuresComponent, decorators: [{
|
|
48
|
-
type: Component,
|
|
49
|
-
args: [{ selector: 'pry-supervision-infrastructures', template: "<div class=\"o-base-container\">\n <h1 class=\"a-h1\">{{ '@pry.supervision.infrastructures.title' | i18n }}</h1>\n\n <ul class=\"o-cards-list\">\n <li *ngFor=\"let infra of infras$ | async\" class=\"o-cards-list__item\">\n <div class=\"o-card o-card--infra\">\n <div class=\"o-card__header\">\n <div class=\"o-card__header__logo\"></div>\n <div class=\"o-card__header__title\">\n <h4 class=\"a-h4\">{{ infra.name }}</h4>\n <p class=\"a-p\">{{ infra.title }}</p>\n </div>\n <div *ngIf=\"infra.status\" class=\"o-card__header__status\" [ngClass]=\"classFromStatus[infra.status]\"></div>\n </div>\n\n <div class=\"o-card__content\">\n <p class=\"a-p\">\n {{ infra.available }}\n {{ '@pry.supervision.infrastructures.available' + (infra.available > 1 ? 's' : '') | i18n }}\n </p>\n\n <ng-container *ngIf=\"lastInfraScale$ | async as lastInfraScale\">\n <span *ngIf=\"lastInfraScale.name === infra.name\" class=\"o-card__content__info\">\n {{ '@pry.supervision.infrastructures.scaleReplica' + (lastInfraScale.up ? 'Up' : 'Down') | i18n }}\n {{ lastInfraScale.time | date: 'HH:mm' }}\n </span>\n </ng-container>\n </div>\n\n <div class=\"o-card__footer\">\n <div class=\"o-card__footer__message\">\n <pry-icon iconSvg=\"grid_view\" [height]=\"20\" [width]=\"20\"></pry-icon>\n <span>\n {{ infra.replicas }}\n {{ '@pry.supervision.infrastructures.replica' + (infra.replicas > 1 ? 's' : '') | i18n }}\n </span>\n </div>\n\n <ng-container *pryAccess=\"{ module: 'supervision', page: 'infrastructures', action: 'scale' }\">\n <div *ngIf=\"infra.hotScale\" class=\"m-minus-plus\">\n <ng-container *ngIf=\"infra.replicas !== infra.available; else scaleTemplate\">\n <button\n class=\"m-minus-plus__btn -minus\"\n disabled\n title=\"{{ '@pry.supervision.infrastructures.removeInstance' | i18n }}\"\n >\n <span class=\"u-visually-hidden\">{{ '@pry.supervision.infrastructures.removeInstance' | i18n }}</span>\n <span class=\"m-minus-plus__btn__sign\" aria-hidden=\"true\"></span>\n </button>\n <button\n class=\"m-minus-plus__btn -plus\"\n disabled\n title=\"{{ '@pry.supervision.infrastructures.addInstance' | i18n }}\"\n >\n <span class=\"u-visually-hidden\">{{ '@pry.supervision.infrastructures.addInstance' | i18n }}</span>\n <span class=\"m-minus-plus__btn__sign\" aria-hidden=\"true\"></span>\n </button>\n </ng-container>\n\n <ng-template #scaleTemplate>\n <button\n class=\"m-minus-plus__btn -minus scale-down\"\n [disabled]=\"infra.replicas === infra.minReplicas\"\n title=\"{{ '@pry.supervision.infrastructures.removeInstance' | i18n }}\"\n (click)=\"infra.replicas !== infra.minReplicas && onScaleDown(infra.name, infra.replicas)\"\n >\n <span class=\"u-visually-hidden\">{{ '@pry.supervision.infrastructures.removeInstance' | i18n }}</span>\n <span class=\"m-minus-plus__btn__sign\" aria-hidden=\"true\"></span>\n </button>\n <button\n class=\"m-minus-plus__btn -plus scale-up\"\n [disabled]=\"infra.replicas === infra.maxReplicas\"\n title=\"{{ '@pry.supervision.infrastructures.addInstance' | i18n }}\"\n (click)=\"infra.replicas !== infra.maxReplicas && onScaleUp(infra.name, infra.replicas)\"\n >\n <span class=\"u-visually-hidden\">{{ '@pry.supervision.infrastructures.addInstance' | i18n }}</span>\n <span class=\"m-minus-plus__btn__sign\" aria-hidden=\"true\"></span>\n </button>\n </ng-template>\n </div>\n </ng-container>\n </div>\n </div>\n </li>\n </ul>\n</div>\n" }]
|
|
50
|
-
}], ctorParameters: function () { return [{ type: i1.Store }]; } });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VwZXJ2aXNpb24taW5mcmFzdHJ1Y3R1cmVzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Byb3ZvbHkvZGFzaGJvYXJkL3N1cGVydmlzaW9uL2NvbXBvbmVudHMvc3VwZXJ2aXNpb24taW5mcmFzdHJ1Y3R1cmVzL3N1cGVydmlzaW9uLWluZnJhc3RydWN0dXJlcy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcm92b2x5L2Rhc2hib2FyZC9zdXBlcnZpc2lvbi9jb21wb25lbnRzL3N1cGVydmlzaW9uLWluZnJhc3RydWN0dXJlcy9zdXBlcnZpc2lvbi1pbmZyYXN0cnVjdHVyZXMuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJt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Int7ICdAcHJ5LnN1cGVydmlzaW9uLmluZnJhc3RydWN0dXJlcy5hZGRJbnN0YW5jZScgfCBpMThuIH19XCJcbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cInUtdmlzdWFsbHktaGlkZGVuXCI+e3sgJ0Bwcnkuc3VwZXJ2aXNpb24uaW5mcmFzdHJ1Y3R1cmVzLmFkZEluc3RhbmNlJyB8IGkxOG4gfX08L3NwYW4+XG4gICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cIm0tbWludXMtcGx1c19fYnRuX19zaWduXCIgYXJpYS1oaWRkZW49XCJ0cnVlXCI+PC9zcGFuPlxuICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cblxuICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgI3NjYWxlVGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgICAgY2xhc3M9XCJtLW1pbnVzLXBsdXNfX2J0biAtbWludXMgc2NhbGUtZG93blwiXG4gICAgICAgICAgICAgICAgICBbZGlzYWJsZWRdPVwiaW5mcmEucmVwbGljYXMgPT09IGluZnJhLm1pblJlcGxpY2FzXCJcbiAgICAgICAgICAgICAgICAgIHRpdGxlPVwie3sgJ0Bwcnkuc3VwZXJ2aXNpb24uaW5mcmFzdHJ1Y3R1cmVzLnJlbW92ZUluc3RhbmNlJyB8IGkxOG4gfX1cIlxuICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cImluZnJhLnJlcGxpY2FzICE9PSBpbmZyYS5taW5SZXBsaWNhcyAmJiBvblNjYWxlRG93bihpbmZyYS5uYW1lLCBpbmZyYS5yZXBsaWNhcylcIlxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwidS12aXN1YWxseS1oaWRkZW5cIj57eyAnQHByeS5zdXBlcnZpc2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1jb250YWluZXI+XG4gICAgICAgIDwvZGl2PlxuICAgICAgPC9kaXY+XG4gICAgPC9saT5cbiAgPC91bD5cbjwvZGl2PlxuIl19
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { startWith } from 'rxjs';
|
|
3
|
-
import { SupervisionActions } from '../../../store/supervision.actions';
|
|
4
|
-
import { SupervisionSelectors } from '../../../store/supervision.selectors';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@ngrx/store";
|
|
7
|
-
import * as i2 from "@angular/common";
|
|
8
|
-
import * as i3 from "@provoly/dashboard";
|
|
9
|
-
export class SupervisionIntegrationErrorsSelectComponent {
|
|
10
|
-
constructor(store) {
|
|
11
|
-
this.store = store;
|
|
12
|
-
this.currentIntegrationError$ = this.store
|
|
13
|
-
.select(SupervisionSelectors.currentIntegrationError)
|
|
14
|
-
.pipe(startWith(null));
|
|
15
|
-
}
|
|
16
|
-
closePanel() {
|
|
17
|
-
this.store.dispatch(SupervisionActions.loadIntegrationErrors());
|
|
18
|
-
this.store.dispatch(SupervisionActions.toggleErrorDetails({ error: undefined, errorDetailsOpen: false }));
|
|
19
|
-
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SupervisionIntegrationErrorsSelectComponent, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SupervisionIntegrationErrorsSelectComponent, selector: "pry-supervision-integration-errors-select", ngImport: i0, template: "<div\n *ngIf=\"currentIntegrationError$ | async as e\"\n [id]=\"'panel-env-' + (e.oClass | translateId : { type: 'class', output: 'name' } | async)\"\n [attr.aria-labelledby]=\"'button-env-' + (e.oClass | translateId : { type: 'class', output: 'name' } | async)\"\n class=\"o-panel\"\n>\n <div class=\"o-panel__header\">\n <button type=\"button\" class=\"a-btn a-btn--icon-only\" (click)=\"closePanel()\">\n <span class=\"u-visually-hidden\">{{ '@pry.action.closePanel' | i18n }}</span>\n <pry-icon iconSvg=\"close\"></pry-icon>\n </button>\n <h3 [id]=\"'tab-title-' + (e.oClass | translateId : { type: 'class', output: 'name' } | async)\" class=\"a-h3\">\n {{ '@pry.supervision.importErrors.details.title' | i18n }}\n </h3>\n </div>\n\n <pry-tab-group translationStringBase=\"@pry.supervision.importErrors.details.\">\n <pry-tab [templateRef]=\"errorDetails\" name=\"details\"></pry-tab>\n </pry-tab-group>\n <ng-template #errorDetails>\n <div *ngFor=\"let error of e.errors\">\n <p class=\"a-p\">\n {{ '@pry.supervision.importErrors.details.errorLabel' | i18n }} :\n <strong>{{ error.label }}</strong>\n </p>\n <p class=\"a-p\">\n {{ '@pry.supervision.importErrors.details.errorCount' | i18n }}:\n <strong>{{ error.count }}</strong>\n </p>\n </div>\n </ng-template>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.TabGroupComponent, selector: "pry-tab-group", inputs: ["translationStringBase"] }, { kind: "component", type: i3.TabComponent, selector: "pry-tab", inputs: ["name", "templateRef", "index"] }, { kind: "component", type: i3.PryIconComponent, selector: "pry-icon", inputs: ["color", "iconSvg", "animation", "iconImage", "alt", "width", "height", "classes"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslateIdPipe, name: "translateId" }, { kind: "pipe", type: i3.I18nPipe, name: "i18n" }] }); }
|
|
22
|
-
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SupervisionIntegrationErrorsSelectComponent, decorators: [{
|
|
24
|
-
type: Component,
|
|
25
|
-
args: [{ selector: 'pry-supervision-integration-errors-select', template: "<div\n *ngIf=\"currentIntegrationError$ | async as e\"\n [id]=\"'panel-env-' + (e.oClass | translateId : { type: 'class', output: 'name' } | async)\"\n [attr.aria-labelledby]=\"'button-env-' + (e.oClass | translateId : { type: 'class', output: 'name' } | async)\"\n class=\"o-panel\"\n>\n <div class=\"o-panel__header\">\n <button type=\"button\" class=\"a-btn a-btn--icon-only\" (click)=\"closePanel()\">\n <span class=\"u-visually-hidden\">{{ '@pry.action.closePanel' | i18n }}</span>\n <pry-icon iconSvg=\"close\"></pry-icon>\n </button>\n <h3 [id]=\"'tab-title-' + (e.oClass | translateId : { type: 'class', output: 'name' } | async)\" class=\"a-h3\">\n {{ '@pry.supervision.importErrors.details.title' | i18n }}\n </h3>\n </div>\n\n <pry-tab-group translationStringBase=\"@pry.supervision.importErrors.details.\">\n <pry-tab [templateRef]=\"errorDetails\" name=\"details\"></pry-tab>\n </pry-tab-group>\n <ng-template #errorDetails>\n <div *ngFor=\"let error of e.errors\">\n <p class=\"a-p\">\n {{ '@pry.supervision.importErrors.details.errorLabel' | i18n }} :\n <strong>{{ error.label }}</strong>\n </p>\n <p class=\"a-p\">\n {{ '@pry.supervision.importErrors.details.errorCount' | i18n }}:\n <strong>{{ error.count }}</strong>\n </p>\n </div>\n </ng-template>\n</div>\n" }]
|
|
26
|
-
}], ctorParameters: function () { return [{ type: i1.Store }]; } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VwZXJ2aXNpb24taW50ZWdyYXRpb24tZXJyb3JzLXNlbGVjdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcm92b2x5L2Rhc2hib2FyZC9zdXBlcnZpc2lvbi9jb21wb25lbnRzL3N1cGVydmlzaW9uLWludGVncmF0aW9uLWVycm9ycy9zdX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