@provoly/dashboard 1.4.18 → 1.4.20
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/admin/components/admin-classes/admin-classes-view/admin-attributes-edit/admin-attributes-edit.component.d.ts +2 -3
- package/admin/components/admin-classes/admin-classes-view/admin-attributes-new/admin-attributes-new.component.d.ts +2 -3
- package/admin/components/admin-classes/store/admin-class.effects.d.ts +22 -8
- package/admin/components/admin-dataset/store/admin-dataset.effects.d.ts +13 -5
- package/admin/components/admin-fields/store/fields.effects.d.ts +7 -5
- package/admin/store/admin.effects.d.ts +3 -1
- package/esm2022/admin/components/admin-abac-rules/admin-abac-rules-edit/admin-abac-rules-edit.component.mjs +3 -3
- package/esm2022/admin/components/admin-abac-rules/admin-abac-rules-new/admin-abac-rules-new.component.mjs +3 -3
- package/esm2022/admin/components/admin-abac-rules/admin-abac-rules-view/admin-abac-rules-view.component.mjs +3 -3
- package/esm2022/admin/components/admin-classes/admin-classes-customize/admin-classes-customize.component.mjs +4 -4
- package/esm2022/admin/components/admin-classes/admin-classes-customize/symbol/admin-classes-customize-symbol.component.mjs +2 -2
- package/esm2022/admin/components/admin-classes/admin-classes-edit/admin-classes-edit.component.mjs +2 -2
- package/esm2022/admin/components/admin-classes/admin-classes-form/admin-classes-form.component.mjs +2 -2
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-edit/admin-attributes-edit.component.mjs +5 -6
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +3 -3
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-new/admin-attributes-new.component.mjs +5 -6
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-classes-view.component.mjs +4 -4
- package/esm2022/admin/components/admin-classes/admin-classes.component.mjs +3 -3
- package/esm2022/admin/components/admin-classes/store/admin-class.effects.mjs +14 -13
- package/esm2022/admin/components/admin-dataset/admin-dataset.component.mjs +3 -3
- package/esm2022/admin/components/admin-dataset/admin-form-dataset/admin-form-dataset.component.mjs +3 -3
- package/esm2022/admin/components/admin-dataset/store/admin-dataset.effects.mjs +7 -8
- package/esm2022/admin/components/admin-environment/store/environment.effects.mjs +2 -2
- package/esm2022/admin/components/admin-fields/admin-fields-edit/admin-fields-edit.component.mjs +2 -2
- package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +2 -2
- package/esm2022/admin/components/admin-fields/admin-fields.component.mjs +4 -4
- package/esm2022/admin/components/admin-fields/store/fields.effects.mjs +7 -10
- package/esm2022/admin/components/admin-links/admin-links-new/admin-links-new.component.mjs +3 -3
- package/esm2022/admin/components/admin-links/admin-links.component.mjs +3 -3
- package/esm2022/admin/components/admin-links/store/links.effects.mjs +2 -2
- package/esm2022/admin/components/admin-menu/admin-menu.component.mjs +2 -2
- package/esm2022/admin/components/admin-metadata/admin-metadata.component.mjs +2 -2
- package/esm2022/admin/components/admin-metadata-rules/store/metadata-rules.effects.mjs +2 -2
- package/esm2022/admin/components/admin-metadata-user/store/admin-metadata-user.effects.mjs +2 -2
- package/esm2022/admin/components/admin-predicates/store/predicates.effects.mjs +2 -2
- package/esm2022/admin/components/admin-relation-types/admin-relation-types.component.mjs +2 -2
- package/esm2022/admin/components/admin-user/store/admin-user.effects.mjs +2 -2
- package/esm2022/admin/components/shared/add-category-modal/add-category-modal.component.mjs +2 -2
- package/esm2022/admin/store/admin.effects.mjs +2 -2
- package/esm2022/components/metadata-editor/store/metadata.effects.mjs +2 -2
- package/esm2022/components/text-editor/component/text-editor.component.mjs +2 -2
- package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +3 -4
- package/esm2022/dataset/components/dataset.component.mjs +4 -4
- package/esm2022/filters/autocomplete/autocomplete.component.mjs +4 -4
- package/esm2022/filters/number/number-filter.component.mjs +2 -2
- package/esm2022/filters/text/text-filter.component.mjs +2 -2
- package/esm2022/import/components/form/import-form.component.mjs +2 -2
- package/esm2022/import/components/list/import-list.component.mjs +2 -2
- package/esm2022/import/store/import.effects.mjs +2 -2
- package/esm2022/lib/core/components/select/select.component.mjs +2 -2
- package/esm2022/lib/core/components/share/access-rights-share-modal/access-rights-share-modal.component.mjs +3 -3
- package/esm2022/lib/core/components/snackbar/snackbar.service.mjs +2 -2
- package/esm2022/lib/core/components/upload/upload.component.mjs +2 -2
- package/esm2022/lib/core/errors/http-error-interceptor.service.mjs +2 -2
- package/esm2022/lib/core/model/filter.interface.mjs +1 -1
- package/esm2022/lib/core/store/aggregation/backend-aggregation.service.mjs +3 -4
- package/esm2022/lib/core/store/category/category.actions.mjs +3 -3
- package/esm2022/lib/core/store/category/category.effects.mjs +10 -6
- package/esm2022/lib/core/store/class/class.actions.mjs +3 -3
- package/esm2022/lib/core/store/class/class.effects.mjs +10 -6
- package/esm2022/lib/core/store/config/config.actions.mjs +2 -2
- package/esm2022/lib/core/store/config/config.effects.mjs +13 -8
- package/esm2022/lib/core/store/config/open-map-tiles.service.mjs +2 -2
- package/esm2022/lib/core/store/data-source/data-source.actions.mjs +8 -8
- package/esm2022/lib/core/store/data-source/data-source.effects.mjs +21 -21
- package/esm2022/lib/core/store/field/field.actions.mjs +3 -3
- package/esm2022/lib/core/store/field/field.effects.mjs +10 -6
- package/esm2022/lib/core/store/image/image.effects.mjs +2 -2
- package/esm2022/lib/core/store/item/item.effects.mjs +2 -2
- package/esm2022/lib/core/store/relation-types/relation-types.actions.mjs +4 -4
- package/esm2022/lib/core/store/relation-types/relation-types.effects.mjs +11 -10
- package/esm2022/lib/core/store/search/search.actions.mjs +1 -1
- package/esm2022/lib/core/store/search/search.effects.mjs +3 -2
- package/esm2022/lib/core/store/search/search.selectors.mjs +3 -1
- package/esm2022/lib/core/store/search/search.service.mjs +4 -9
- package/esm2022/lib/dashboard/action-bus/effect/action-bus.effects.mjs +2 -2
- package/esm2022/lib/dashboard/components/context-menu/context-menu.component.mjs +2 -2
- package/esm2022/lib/dashboard/components/dashboard.component.mjs +29 -23
- package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-list/datasource-list.component.mjs +3 -4
- package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +2 -2
- package/esm2022/lib/dashboard/components/widgets/widget-instanciator/widget-instanciator.component.mjs +2 -2
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +2 -2
- package/esm2022/lib/dashboard/store/manifest.service.mjs +2 -2
- package/esm2022/lib/dashboard/store/refresh.service.mjs +2 -2
- package/esm2022/lib/dashboard/store/wms.service.mjs +2 -2
- package/esm2022/notification/components/notification/content/notification-content.component.mjs +2 -2
- package/esm2022/pipeline/components/pipeline-editor/pipeline-editor.component.mjs +3 -5
- package/esm2022/pipeline/factory/pipeline-component-factory.service.mjs +2 -2
- package/esm2022/pipeline/store/pipeline.effects.mjs +2 -2
- package/esm2022/pipeline-components/input-datasource/component/input-datasource.component.mjs +2 -3
- package/esm2022/pipeline-components/input-datasource/input-datasource.module.mjs +2 -2
- package/esm2022/pipeline-components/output-dataset/component/output-dataset.component.mjs +2 -2
- package/esm2022/pipeline-components/output-dataset/output-dataset.module.mjs +2 -2
- package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -5
- package/esm2022/search/search-fulltext/store/search-fulltext.effects.mjs +2 -2
- package/esm2022/search/search-home/search-home.component.mjs +3 -4
- package/esm2022/search/search-mono-class/components/search-mono-class/search-mono-class.component.mjs +2 -2
- package/esm2022/search/search-mono-class/components/search-order/search-order.component.mjs +2 -2
- package/esm2022/search/search-mono-class/components/search-select-attribute/search-select-attribute.component.mjs +1 -1
- package/esm2022/search/search-mono-class/store/search-mono-class.effects.mjs +2 -2
- package/esm2022/search/search-multi-class/store/search-multi-class.effects.mjs +2 -2
- package/esm2022/search/search-tools/search-tools.component.mjs +5 -6
- package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +2 -2
- package/esm2022/toolbox/components/named-query/named-query.component.mjs +2 -2
- package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +2 -2
- package/esm2022/toolbox/components/toolbox.component.mjs +2 -2
- package/esm2022/tooltips/attribute/attribute-tooltip.component.mjs +2 -2
- package/esm2022/widgets/widget-analytic/component/widget-analytic.component.mjs +2 -2
- package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +2 -2
- package/esm2022/widgets/widget-detail/component/widget-detail.component.mjs +2 -2
- package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +10 -13
- package/esm2022/widgets/widget-image/component/widget-image.component.mjs +2 -2
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +3 -3
- package/esm2022/widgets/widget-table/get-value/get-value.pipe.mjs +2 -2
- package/esm2022/widgets/widget-table/resizable/resizable.directive.mjs +2 -2
- package/esm2022/widgets/widget-template/component/widget-template.component.mjs +2 -2
- package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +2 -2
- package/esm2022/widgets/widget-vega/component/widget-vega.component.mjs +2 -2
- package/fesm2022/provoly-dashboard-admin.mjs +121 -123
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-components-metadata-editor.mjs +12 -13
- package/fesm2022/provoly-dashboard-components-metadata-editor.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-components-text-editor.mjs +1 -2
- package/fesm2022/provoly-dashboard-components-text-editor.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-dataset.mjs +5 -6
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-filters-autocomplete.mjs +3 -3
- package/fesm2022/provoly-dashboard-filters-autocomplete.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-filters-number.mjs +1 -2
- package/fesm2022/provoly-dashboard-filters-number.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-filters-text.mjs +1 -2
- package/fesm2022/provoly-dashboard-filters-text.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-import.mjs +5 -6
- package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-notification.mjs +3 -4
- package/fesm2022/provoly-dashboard-notification.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs +2 -3
- 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-pipeline.mjs +16 -18
- package/fesm2022/provoly-dashboard-pipeline.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +4 -4
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-search.mjs +19 -20
- package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +3 -4
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-tooltips-attribute.mjs +1 -2
- package/fesm2022/provoly-dashboard-tooltips-attribute.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs +1 -2
- package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -2
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs +1 -2
- package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +8 -12
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-image.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-image.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +2 -3
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-template.mjs +1 -2
- package/fesm2022/provoly-dashboard-widgets-widget-template.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +1 -2
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs +1 -2
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +989 -975
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/model/filter.interface.d.ts +1 -0
- package/lib/core/store/category/category.actions.d.ts +7 -3
- package/lib/core/store/category/category.effects.d.ts +4 -2
- package/lib/core/store/class/class.actions.d.ts +7 -3
- package/lib/core/store/class/class.effects.d.ts +4 -2
- package/lib/core/store/config/config.actions.d.ts +5 -1
- package/lib/core/store/config/config.effects.d.ts +12 -4
- package/lib/core/store/data-source/data-source.actions.d.ts +23 -11
- package/lib/core/store/data-source/data-source.effects.d.ts +23 -15
- package/lib/core/store/field/field.actions.d.ts +7 -3
- package/lib/core/store/field/field.effects.d.ts +4 -2
- package/lib/core/store/relation-types/relation-types.actions.d.ts +9 -5
- package/lib/core/store/relation-types/relation-types.effects.d.ts +8 -6
- package/lib/core/store/search/search.actions.d.ts +2 -0
- package/lib/core/store/search/search.selectors.d.ts +5 -0
- package/lib/core/store/search/search.service.d.ts +1 -1
- package/lib/dashboard/components/dashboard.component.d.ts +5 -3
- package/package.json +11 -11
- package/search/search-mono-class/store/search-mono-class.effects.d.ts +1 -1
- package/widgets/widget-graph/component/widget-graph.component.d.ts +2 -5
|
@@ -17,7 +17,7 @@ class OutputDatasetComponent extends PipelinePropertiesPanelComponent {
|
|
|
17
17
|
constructor(store) {
|
|
18
18
|
super();
|
|
19
19
|
this.store = store;
|
|
20
|
-
this.store.dispatch(DataSourceActions.dataset.loadDataset());
|
|
20
|
+
this.store.dispatch(DataSourceActions.dataset.loadDataset({}));
|
|
21
21
|
this.datasets$ = this.store
|
|
22
22
|
.select(DataSourceSelectors.datasets)
|
|
23
23
|
.pipe(map((datasets) => datasets.filter((dataset) => dataset.type === PryDatasetType.CLOSED)));
|
|
@@ -71,7 +71,7 @@ class PryPipelineOutputDatasetModule {
|
|
|
71
71
|
this.store = store;
|
|
72
72
|
this.pryTranslateService.addLangObject('fr', 'pipeline-outputdsdef', frTranslations);
|
|
73
73
|
this.pryTranslateService.addLangObject('en', 'pipeline-outputdsdef', enTranslations);
|
|
74
|
-
this.store.dispatch(DataSourceActions.dataset.loadDataset());
|
|
74
|
+
this.store.dispatch(DataSourceActions.dataset.loadDataset({}));
|
|
75
75
|
this.store.select(DataSourceSelectors.datasets).subscribe((datasources) => {
|
|
76
76
|
const closedDatasources = datasources.filter((def) => def.type === PryDatasetType.CLOSED);
|
|
77
77
|
closedDatasources.forEach((datasource) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provoly-dashboard-pipeline-components-output-dataset.mjs","sources":["../../../../projects/provoly/dashboard/pipeline-components/output-dataset/component/output-dataset.component.ts","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/component/output-dataset.component.html","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/i18n/en.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/i18n/fr.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/node-class/output-dataset-node.class.ts","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/output-dataset.module.ts","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { Dataset, DataSourceActions, DataSourceSelectors, PryDatasetType } from '@provoly/dashboard';\nimport { PipelinePropertiesPanelComponent } from '@provoly/dashboard/pipeline';\nimport { map, Observable } from 'rxjs';\n\n@Component({\n selector: 'pry-pipeline-output-dataset-definition',\n templateUrl: './output-dataset.component.html'\n})\nexport class OutputDatasetComponent extends PipelinePropertiesPanelComponent {\n datasets$: Observable<Dataset[]>;\n\n constructor(private store: Store) {\n super();\n this.store.dispatch(DataSourceActions.dataset.loadDataset());\n this.datasets$ = this.store\n .select(DataSourceSelectors.datasets)\n .pipe(map((datasets: Dataset[]) => datasets.filter((dataset) => dataset.type === PryDatasetType.CLOSED)));\n }\n\n change($event: any) {\n this.node.properties['dataset'] = $event;\n this.checkFn();\n }\n}\n","<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"dataset\">{{ '@pry.pipeline.dataset.output' | i18n }}</label>\n <pry-select\n [items]=\"datasets$ | async\"\n [ngModel]=\"node.properties['dataset']\"\n (ngModelChange)=\"change($event)\"\n [disabled]=\"disabled\"\n bindLabel=\"name\"\n bindValue=\"id\"\n id=\"dataset\"\n ></pry-select>\n</div>\n","export const enTranslations = {\n '@pry': {\n pipeline: {\n dataset: { output: 'Dataset destination' }\n }\n }\n};\n","export const frTranslations = {\n '@pry': {\n pipeline: {\n dataset: { output: 'Destination dataset' }\n }\n }\n};\n","import { BaseNode } from '@provoly/dashboard/pipeline';\nimport { LiteGraph } from 'litegraph.js';\n\nexport class OutputDatasetNode extends BaseNode {\n constructor(title?: string, ...other: any) {\n super();\n this.properties['type'] = 'OutputDataset';\n this.color = OutputDatasetNode.getNodeTitleColor();\n this.titleColor = '#000000';\n this.shape = LiteGraph.BOX_SHAPE;\n this.addInput('items', 'items');\n this.addInput('groups', 'groups');\n }\n\n static override getNodeTitleColor() {\n return '#7BCCAD';\n }\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Store } from '@ngrx/store';\nimport {\n DataSourceActions,\n DataSourceSelectors,\n PryCoreModule,\n PryDashboardModule,\n PryDatasetType,\n PryI18nModule,\n PryI18nService,\n PrySelectModule\n} from '@provoly/dashboard';\nimport { PipelineComponentFactoryService } from '@provoly/dashboard/pipeline';\nimport { OutputDatasetComponent } from './component/output-dataset.component';\nimport { enTranslations } from './i18n/en.translations';\nimport { frTranslations } from './i18n/fr.translations';\nimport { OutputDatasetNode } from './node-class/output-dataset-node.class';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n OverlayModule,\n PryCoreModule,\n PryDashboardModule,\n PrySelectModule,\n PryI18nModule\n ],\n declarations: [OutputDatasetComponent],\n exports: [OutputDatasetComponent]\n})\nexport class PryPipelineOutputDatasetModule {\n constructor(\n pipelineComponentFactoryService: PipelineComponentFactoryService,\n private pryTranslateService: PryI18nService,\n private store: Store\n ) {\n this.pryTranslateService.addLangObject('fr', 'pipeline-outputdsdef', frTranslations);\n this.pryTranslateService.addLangObject('en', 'pipeline-outputdsdef', enTranslations);\n\n this.store.dispatch(DataSourceActions.dataset.loadDataset());\n this.store.select(DataSourceSelectors.datasets).subscribe((datasources) => {\n const closedDatasources = datasources.filter((def) => def.type === PryDatasetType.CLOSED);\n closedDatasources.forEach((datasource) => {\n pipelineComponentFactoryService.addType(\n 'com.provoly.common.transfo.OutputDataset',\n OutputDatasetComponent,\n OutputDatasetNode,\n 'output',\n datasource.name,\n true,\n { dataset: datasource.id }\n );\n });\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;;;;;;AAUM,MAAO,sBAAuB,SAAQ,gCAAgC,CAAA;AAG1E,IAAA,WAAA,CAAoB,KAAY,EAAA;AAC9B,QAAA,KAAK,EAAE,CAAC;QADU,IAAK,CAAA,KAAA,GAAL,KAAK,CAAO;AAE9B,QAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"provoly-dashboard-pipeline-components-output-dataset.mjs","sources":["../../../../projects/provoly/dashboard/pipeline-components/output-dataset/component/output-dataset.component.ts","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/component/output-dataset.component.html","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/i18n/en.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/i18n/fr.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/node-class/output-dataset-node.class.ts","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/output-dataset.module.ts","../../../../projects/provoly/dashboard/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { Dataset, DataSourceActions, DataSourceSelectors, PryDatasetType } from '@provoly/dashboard';\nimport { PipelinePropertiesPanelComponent } from '@provoly/dashboard/pipeline';\nimport { map, Observable } from 'rxjs';\n\n@Component({\n selector: 'pry-pipeline-output-dataset-definition',\n templateUrl: './output-dataset.component.html'\n})\nexport class OutputDatasetComponent extends PipelinePropertiesPanelComponent {\n datasets$: Observable<Dataset[]>;\n\n constructor(private store: Store) {\n super();\n this.store.dispatch(DataSourceActions.dataset.loadDataset({}));\n this.datasets$ = this.store\n .select(DataSourceSelectors.datasets)\n .pipe(map((datasets: Dataset[]) => datasets.filter((dataset) => dataset.type === PryDatasetType.CLOSED)));\n }\n\n change($event: any) {\n this.node.properties['dataset'] = $event;\n this.checkFn();\n }\n}\n","<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"dataset\">{{ '@pry.pipeline.dataset.output' | i18n }}</label>\n <pry-select\n [items]=\"datasets$ | async\"\n [ngModel]=\"node.properties['dataset']\"\n (ngModelChange)=\"change($event)\"\n [disabled]=\"disabled\"\n bindLabel=\"name\"\n bindValue=\"id\"\n id=\"dataset\"\n ></pry-select>\n</div>\n","export const enTranslations = {\n '@pry': {\n pipeline: {\n dataset: { output: 'Dataset destination' }\n }\n }\n};\n","export const frTranslations = {\n '@pry': {\n pipeline: {\n dataset: { output: 'Destination dataset' }\n }\n }\n};\n","import { BaseNode } from '@provoly/dashboard/pipeline';\nimport { LiteGraph } from 'litegraph.js';\n\nexport class OutputDatasetNode extends BaseNode {\n constructor(title?: string, ...other: any) {\n super();\n this.properties['type'] = 'OutputDataset';\n this.color = OutputDatasetNode.getNodeTitleColor();\n this.titleColor = '#000000';\n this.shape = LiteGraph.BOX_SHAPE;\n this.addInput('items', 'items');\n this.addInput('groups', 'groups');\n }\n\n static override getNodeTitleColor() {\n return '#7BCCAD';\n }\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Store } from '@ngrx/store';\nimport {\n DataSourceActions,\n DataSourceSelectors,\n PryCoreModule,\n PryDashboardModule,\n PryDatasetType,\n PryI18nModule,\n PryI18nService,\n PrySelectModule\n} from '@provoly/dashboard';\nimport { PipelineComponentFactoryService } from '@provoly/dashboard/pipeline';\nimport { OutputDatasetComponent } from './component/output-dataset.component';\nimport { enTranslations } from './i18n/en.translations';\nimport { frTranslations } from './i18n/fr.translations';\nimport { OutputDatasetNode } from './node-class/output-dataset-node.class';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n OverlayModule,\n PryCoreModule,\n PryDashboardModule,\n PrySelectModule,\n PryI18nModule\n ],\n declarations: [OutputDatasetComponent],\n exports: [OutputDatasetComponent]\n})\nexport class PryPipelineOutputDatasetModule {\n constructor(\n pipelineComponentFactoryService: PipelineComponentFactoryService,\n private pryTranslateService: PryI18nService,\n private store: Store\n ) {\n this.pryTranslateService.addLangObject('fr', 'pipeline-outputdsdef', frTranslations);\n this.pryTranslateService.addLangObject('en', 'pipeline-outputdsdef', enTranslations);\n\n this.store.dispatch(DataSourceActions.dataset.loadDataset({}));\n this.store.select(DataSourceSelectors.datasets).subscribe((datasources) => {\n const closedDatasources = datasources.filter((def) => def.type === PryDatasetType.CLOSED);\n closedDatasources.forEach((datasource) => {\n pipelineComponentFactoryService.addType(\n 'com.provoly.common.transfo.OutputDataset',\n OutputDatasetComponent,\n OutputDatasetNode,\n 'output',\n datasource.name,\n true,\n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,EAAA,UAAA,EAAA,CAAA;kBAb1C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,aAAa;wBACb,aAAa;wBACb,kBAAkB;wBAClB,eAAe;wBACf,aAAa;AACd,qBAAA;oBACD,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
|
|
@@ -12,11 +12,10 @@ import * as i1 from '@ngrx/store';
|
|
|
12
12
|
import { createAction, props, createReducer, on, createFeatureSelector, createSelector, StoreModule } from '@ngrx/store';
|
|
13
13
|
import * as i3 from '@provoly/dashboard';
|
|
14
14
|
import { SubscriptionnerDirective, DataSourceActions, ViewMode, ConfigActions, ConfigSelectors, PryCoreModule, PryIconModule, PryI18nModule, PrySortModule, PryToggleModule, PrySinceDateModule } from '@provoly/dashboard';
|
|
15
|
-
import { map, combineLatestWith, startWith, BehaviorSubject, combineLatest, fromEvent, auditTime, mergeMap, of } from 'rxjs';
|
|
15
|
+
import { map, combineLatestWith, startWith, BehaviorSubject, combineLatest, fromEvent, auditTime, mergeMap, debounceTime, catchError, of } from 'rxjs';
|
|
16
16
|
import { v4 } from 'uuid';
|
|
17
17
|
import * as i4 from '@angular/cdk/bidi';
|
|
18
18
|
import { LiteGraph, LGraphNode, LGraph, LGraphCanvas } from 'litegraph.js';
|
|
19
|
-
import { map as map$1, debounceTime, mergeMap as mergeMap$1, catchError } from 'rxjs/operators';
|
|
20
19
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
21
20
|
import * as i4$1 from '@angular/cdk/a11y';
|
|
22
21
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
@@ -324,7 +323,7 @@ class GraphSerializerUtils {
|
|
|
324
323
|
class PipelineComponentFactoryService {
|
|
325
324
|
constructor() {
|
|
326
325
|
this.referential$ = new BehaviorSubject([]);
|
|
327
|
-
this.typesByCategories$ = this.referential$.pipe(map
|
|
326
|
+
this.typesByCategories$ = this.referential$.pipe(map((ref) => ref.filter((component) => component.draggable)), map((ref) => {
|
|
328
327
|
const categories = {};
|
|
329
328
|
ref.forEach((componentDef) => {
|
|
330
329
|
if (!categories[componentDef.category]) {
|
|
@@ -335,7 +334,7 @@ class PipelineComponentFactoryService {
|
|
|
335
334
|
Object.keys(categories).forEach((category) => categories[category].sort((a, b) => a.label.localeCompare(b.label)));
|
|
336
335
|
return categories;
|
|
337
336
|
}));
|
|
338
|
-
this.categories$ = this.typesByCategories$.pipe(map
|
|
337
|
+
this.categories$ = this.typesByCategories$.pipe(map((typesByCategories) => Object.keys(typesByCategories).sort()));
|
|
339
338
|
}
|
|
340
339
|
addType(type, component, nodeClass, category = 'operation', label = '', draggable = true, additionalProperties = {}) {
|
|
341
340
|
const shortLabel = label.length > 0 ? label : type.split('.')[type.split('.').length - 1];
|
|
@@ -398,9 +397,8 @@ class PryPipelineEditorComponent extends SubscriptionnerDirective {
|
|
|
398
397
|
this.search$ = new BehaviorSubject({});
|
|
399
398
|
BaseNode.store = store;
|
|
400
399
|
BaseNode.check = () => this.check();
|
|
401
|
-
this.store.dispatch(DataSourceActions.
|
|
402
|
-
this.
|
|
403
|
-
this.types$ = combineLatest([pipelineComponentFactoryService.typesByCategories$, this.search$]).pipe(map$1(([typesByCategory, search]) => {
|
|
400
|
+
this.store.dispatch(DataSourceActions.load({}));
|
|
401
|
+
this.types$ = combineLatest([pipelineComponentFactoryService.typesByCategories$, this.search$]).pipe(map(([typesByCategory, search]) => {
|
|
404
402
|
const result = {};
|
|
405
403
|
Object.keys(typesByCategory).forEach((cat) => {
|
|
406
404
|
result[cat] = typesByCategory[cat].filter((type) => type.label.toLocaleLowerCase().includes((search[cat] ?? '').toLocaleLowerCase()));
|
|
@@ -408,7 +406,7 @@ class PryPipelineEditorComponent extends SubscriptionnerDirective {
|
|
|
408
406
|
return result;
|
|
409
407
|
}));
|
|
410
408
|
this.categories$ = pipelineComponentFactoryService.categories$;
|
|
411
|
-
this.selectedNode$ = this.store.select(PipelineSelectors.selectedNodeId).pipe(map
|
|
409
|
+
this.selectedNode$ = this.store.select(PipelineSelectors.selectedNodeId).pipe(map((id) => this.findNodeById(id)));
|
|
412
410
|
this.response$ = this.store.select(PipelineSelectors.checkResponse);
|
|
413
411
|
this.subscriptions.add(this.response$.subscribe((response) => {
|
|
414
412
|
this.allNodes.forEach((errorNode) => {
|
|
@@ -453,11 +451,11 @@ class PryPipelineEditorComponent extends SubscriptionnerDirective {
|
|
|
453
451
|
}
|
|
454
452
|
});
|
|
455
453
|
this.subscriptions.add(this.selectedNode$.subscribe((node) => (this.selectedNode = node)));
|
|
456
|
-
this.errors$ = combineLatest([this.response$, this.selectedNode$]).pipe(map
|
|
454
|
+
this.errors$ = combineLatest([this.response$, this.selectedNode$]).pipe(map(([response, selectedNode]) => [
|
|
457
455
|
...(response?.errors ?? []).map((error) => ({ ...error, nodeId: '-' })),
|
|
458
456
|
...(response?.status.find((status) => status.nodeId === (selectedNode?.properties['id'] ?? '-----'))?.errors ??
|
|
459
457
|
[])
|
|
460
|
-
]), map
|
|
458
|
+
]), map((errors) => errors.map((error) => ({
|
|
461
459
|
...error,
|
|
462
460
|
translated: this.translateService.instant('@pry.pipeline.codes.' + error.code, error)
|
|
463
461
|
}))));
|
|
@@ -1034,7 +1032,7 @@ class PipelineEffects {
|
|
|
1034
1032
|
this.pipelineService = pipelineService;
|
|
1035
1033
|
this.snackBar = snackBar;
|
|
1036
1034
|
this.translate = translate;
|
|
1037
|
-
this.callCheck$ = createEffect(() => this.actions$.pipe(ofType(PipelineActions.check), debounceTime(100), mergeMap
|
|
1035
|
+
this.callCheck$ = createEffect(() => this.actions$.pipe(ofType(PipelineActions.check), debounceTime(100), mergeMap((action) => this.pipelineService.check(action.graph).pipe(map((response) => {
|
|
1038
1036
|
if (action.fetch) {
|
|
1039
1037
|
return PipelineActions.fetchTransfosList();
|
|
1040
1038
|
}
|
|
@@ -1059,10 +1057,10 @@ class PipelineEffects {
|
|
|
1059
1057
|
}
|
|
1060
1058
|
}));
|
|
1061
1059
|
})))));
|
|
1062
|
-
this.listTransfo$ = createEffect(() => this.actions$.pipe(ofType(PipelineActions.fetchTransfosList), mergeMap
|
|
1063
|
-
this.toggleTransfoActivation$ = createEffect(() => this.actions$.pipe(ofType(PipelineActions.toggleActivation), mergeMap
|
|
1060
|
+
this.listTransfo$ = createEffect(() => this.actions$.pipe(ofType(PipelineActions.fetchTransfosList), mergeMap((action) => this.pipelineService.list().pipe(map((transfos) => PipelineActions.fetchTransfosListSuccess({ transfos })), catchError((error) => [PipelineActions.fetchTransfosListFailure({ error: error })])))));
|
|
1061
|
+
this.toggleTransfoActivation$ = createEffect(() => this.actions$.pipe(ofType(PipelineActions.toggleActivation), mergeMap((action) => {
|
|
1064
1062
|
if (action.transfo.active) {
|
|
1065
|
-
return this.pipelineService.deactivate(action.transfo.id).pipe(map
|
|
1063
|
+
return this.pipelineService.deactivate(action.transfo.id).pipe(map(() => PipelineActions.fetchTransfosList()), catchError((error) => {
|
|
1066
1064
|
this.snackBar.open({
|
|
1067
1065
|
message: this.translate.instant('@pry.pipeline.deactivateError'),
|
|
1068
1066
|
type: 'error'
|
|
@@ -1070,7 +1068,7 @@ class PipelineEffects {
|
|
|
1070
1068
|
return [PipelineActions.activationError({ id: action.transfo.id, error: error })];
|
|
1071
1069
|
}));
|
|
1072
1070
|
}
|
|
1073
|
-
return this.pipelineService.activate(action.transfo.id).pipe(map
|
|
1071
|
+
return this.pipelineService.activate(action.transfo.id).pipe(map(() => PipelineActions.fetchTransfosList()), catchError((error) => {
|
|
1074
1072
|
this.snackBar.open({
|
|
1075
1073
|
message: this.translate.instant('@pry.pipeline.activateError'),
|
|
1076
1074
|
type: 'error'
|
|
@@ -1078,10 +1076,10 @@ class PipelineEffects {
|
|
|
1078
1076
|
return [PipelineActions.activationError({ id: action.transfo.id, error: error })];
|
|
1079
1077
|
}));
|
|
1080
1078
|
})));
|
|
1081
|
-
this.executeTransfo$ = createEffect(() => this.actions$.pipe(ofType(PipelineActions.executeTransfo), mergeMap
|
|
1082
|
-
this.getTransformation$ = createEffect(() => this.actions$.pipe(ofType(PipelineActions.getTransformation), mergeMap
|
|
1079
|
+
this.executeTransfo$ = createEffect(() => this.actions$.pipe(ofType(PipelineActions.executeTransfo), mergeMap((action) => this.pipelineService.execute(action.id).pipe(map(() => PipelineActions.fetchTransfosList())))));
|
|
1080
|
+
this.getTransformation$ = createEffect(() => this.actions$.pipe(ofType(PipelineActions.getTransformation), mergeMap((action) => this.pipelineService
|
|
1083
1081
|
.get(action.id)
|
|
1084
|
-
.pipe(map
|
|
1082
|
+
.pipe(map((transfo) => PipelineActions.getTransformationSuccess({ transfo }))))));
|
|
1085
1083
|
}
|
|
1086
1084
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PipelineEffects, deps: [{ token: i1$2.Actions }, { token: PipelineService }, { token: i3.PrySnackbarService }, { token: i3.PryI18nService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1087
1085
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PipelineEffects }); }
|