@provoly/dashboard 0.24.5 → 0.24.7

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.
Files changed (91) hide show
  1. package/esm2022/admin/components/admin-abac-rules/admin-abac-rules-form/admin-abac-rules-form.component.mjs +1 -1
  2. package/esm2022/admin/components/admin-abac-rules/components/attribute-condition/attribute-condition.component.mjs +1 -1
  3. package/esm2022/admin/components/admin-abac-rules/components/metadata-condition/metadata-condition.component.mjs +1 -1
  4. package/esm2022/admin/components/admin-classes/admin-classes-customize/symbol/admin-classes-customize-symbol.component.mjs +1 -1
  5. package/esm2022/admin/components/admin-classes/admin-classes-customize/tooltip/admin-classes-customize-tooltip.component.mjs +1 -1
  6. package/esm2022/admin/components/admin-classes/admin-classes-form/admin-classes-form.component.mjs +1 -1
  7. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +1 -1
  8. package/esm2022/admin/components/admin-dataset/shared/admin-form-dataset/admin-form-dataset.component.mjs +1 -1
  9. package/esm2022/admin/components/admin-environment/admin-environment-form/admin-environment-form.component.mjs +1 -1
  10. package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +1 -1
  11. package/esm2022/admin/components/admin-links/admin-links-new/admin-links-new.component.mjs +1 -1
  12. package/esm2022/admin/components/admin-metadata/shared/form-metadata/form-metadata.component.mjs +1 -1
  13. package/esm2022/admin/components/admin-metadata-rules/shared/admin-form-metadata-rules/admin-form-metadata-rules.component.mjs +1 -1
  14. package/esm2022/components/metadata-editor/metadata-editor.component.mjs +1 -1
  15. package/esm2022/components/scheme-picker/scheme-picker.component.mjs +1 -1
  16. package/esm2022/filters/autocomplete/autocomplete.component.mjs +12 -8
  17. package/esm2022/filters/list/list-filter.component.mjs +1 -1
  18. package/esm2022/import/components/import.component.mjs +1 -1
  19. package/esm2022/lib/core/components/select/select.component.mjs +6 -2
  20. package/esm2022/lib/core/components/share/share.component.mjs +1 -1
  21. package/esm2022/lib/core/store/search/search.actions.mjs +1 -1
  22. package/esm2022/lib/core/store/search/search.effects.mjs +2 -2
  23. package/esm2022/lib/dashboard/components/context-menu/object-edition/object-edition.component.mjs +1 -1
  24. package/esm2022/pipeline-components/filter/component/filter.component.mjs +1 -1
  25. package/esm2022/pipeline-components/input-datasource/component/input-datasource.component.mjs +1 -1
  26. package/esm2022/pipeline-components/output-dataset/component/output-dataset.component.mjs +1 -1
  27. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +1 -1
  28. package/esm2022/restitution/components/restitution/restitution.component.mjs +1 -1
  29. package/esm2022/search/search-mono-class/components/search-condition/search-condition.component.mjs +1 -1
  30. package/esm2022/search/search-mono-class/components/search-mono-class/search-mono-class.component.mjs +1 -1
  31. package/esm2022/search/search-mono-class/components/search-order/search-order.component.mjs +1 -1
  32. package/esm2022/search/search-multi-class/components/multi-class-condition/multi-class-condition.component.mjs +1 -1
  33. package/esm2022/toolbox/components/edit-mode-action/edit-mode-action.component.mjs +26 -0
  34. package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +1 -1
  35. package/esm2022/toolbox/components/toolbox.component.mjs +4 -3
  36. package/esm2022/toolbox/public-api.mjs +2 -1
  37. package/esm2022/toolbox/toolbox.model.mjs +2 -2
  38. package/esm2022/toolbox/toolbox.module.mjs +8 -4
  39. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +1 -1
  40. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +1 -1
  41. package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +1 -1
  42. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +1 -1
  43. package/esm2022/widgets/widget-table/component/widget-table.component.mjs +1 -1
  44. package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +1 -1
  45. package/fesm2022/provoly-dashboard-admin.mjs +13 -13
  46. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  47. package/fesm2022/provoly-dashboard-components-metadata-editor.mjs +1 -1
  48. package/fesm2022/provoly-dashboard-components-metadata-editor.mjs.map +1 -1
  49. package/fesm2022/provoly-dashboard-components-scheme-picker.mjs +1 -1
  50. package/fesm2022/provoly-dashboard-components-scheme-picker.mjs.map +1 -1
  51. package/fesm2022/provoly-dashboard-filters-autocomplete.mjs +11 -7
  52. package/fesm2022/provoly-dashboard-filters-autocomplete.mjs.map +1 -1
  53. package/fesm2022/provoly-dashboard-filters-list.mjs +1 -1
  54. package/fesm2022/provoly-dashboard-filters-list.mjs.map +1 -1
  55. package/fesm2022/provoly-dashboard-import.mjs +1 -1
  56. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  57. package/fesm2022/provoly-dashboard-pipeline-components-filter.mjs +1 -1
  58. package/fesm2022/provoly-dashboard-pipeline-components-filter.mjs.map +1 -1
  59. package/fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs +1 -1
  60. package/fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs.map +1 -1
  61. package/fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs +1 -1
  62. package/fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs.map +1 -1
  63. package/fesm2022/provoly-dashboard-presentation.mjs +1 -1
  64. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  65. package/fesm2022/provoly-dashboard-restitution.mjs +1 -1
  66. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  67. package/fesm2022/provoly-dashboard-search.mjs +4 -4
  68. package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
  69. package/fesm2022/provoly-dashboard-toolbox.mjs +29 -7
  70. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  71. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +1 -1
  72. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  73. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -1
  74. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  75. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +1 -1
  76. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
  77. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +1 -1
  78. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  79. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +1 -1
  80. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
  81. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +1 -1
  82. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
  83. package/fesm2022/provoly-dashboard.mjs +8 -4
  84. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  85. package/filters/autocomplete/autocomplete.component.d.ts +3 -3
  86. package/lib/core/components/select/select.component.d.ts +2 -1
  87. package/lib/core/store/search/search.actions.d.ts +2 -0
  88. package/package.json +13 -13
  89. package/toolbox/components/edit-mode-action/edit-mode-action.component.d.ts +17 -0
  90. package/toolbox/public-api.d.ts +1 -0
  91. package/toolbox/toolbox.module.d.ts +10 -9
@@ -1 +1 @@
1
- {"version":3,"file":"provoly-dashboard-filters-list.mjs","sources":["../../../../projects/provoly/dashboard/filters/list/style/css.component.ts","../../../../projects/provoly/dashboard/filters/list/list-filter.component.ts","../../../../projects/provoly/dashboard/filters/list/list-filter.component.html","../../../../projects/provoly/dashboard/filters/list/list-filter.module.ts","../../../../projects/provoly/dashboard/filters/list/provoly-dashboard-filters-list.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'pry-list-filter-css',\n template: '',\n styleUrls: ['./_m-list.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class PryListFilterCssComponent {}\n","import { Component, OnInit } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { BaseFilterComponent } from '@provoly/dashboard';\n\n@Component({\n selector: 'pry-list-filter',\n templateUrl: './list-filter.component.html'\n})\nexport class ListFilterComponent extends BaseFilterComponent implements OnInit {\n possibleValues: string[] = [];\n\n constructor(store: Store) {\n super(store);\n this.type = 'list';\n }\n\n override ngOnInit() {\n super.ngOnInit();\n if (this.filter?.possibleValues) {\n this.possibleValues = [...new Set(this.filter?.possibleValues.split(',').map((value) => value.trim()))];\n }\n }\n\n setFilter(value: string) {\n if (value !== this.filter?.value) super.updateFilter(value);\n }\n}\n","<pry-list-filter-css></pry-list-filter-css>\n<div class=\"m-filter__input-wrapper m-filter__input-wrapper--dropdown\" *ngIf=\"filter\">\n <label class=\"a-label m-filter__label\" for=\"{{ filter.name }}\">{{ filter.name }}&nbsp;:&nbsp;</label>\n <pry-select\n [id]=\"filter.name\"\n [items]=\"possibleValues\"\n [ngModel]=\"filter.value\"\n (ngModelChange)=\"setFilter($event)\"\n [clearable]=\"true\"\n [autocomplete]=\"true\"\n aria-labelledby=\"item-label\"\n ></pry-select>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { BaseFilterComponent, BaseFilterModule, PrySelectModule } from '@provoly/dashboard';\nimport { ListFilterComponent } from './list-filter.component';\nimport { PryListFilterCssComponent } from './style/css.component';\n\n@NgModule({\n declarations: [ListFilterComponent, PryListFilterCssComponent],\n exports: [ListFilterComponent],\n imports: [CommonModule, ReactiveFormsModule, FormsModule, PrySelectModule]\n})\nexport class PryListFilterModule extends BaseFilterModule {\n override getComponent(): Type<BaseFilterComponent> {\n return ListFilterComponent as Type<ListFilterComponent>;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i5.PryListFilterCssComponent"],"mappings":";;;;;;;;;;MAQa,yBAAyB,CAAA;8GAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAzB,IAAA,SAAA,IAAA,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AAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,eAAe,CAAC;AAC3E,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
1
+ {"version":3,"file":"provoly-dashboard-filters-list.mjs","sources":["../../../../projects/provoly/dashboard/filters/list/style/css.component.ts","../../../../projects/provoly/dashboard/filters/list/list-filter.component.ts","../../../../projects/provoly/dashboard/filters/list/list-filter.component.html","../../../../projects/provoly/dashboard/filters/list/list-filter.module.ts","../../../../projects/provoly/dashboard/filters/list/provoly-dashboard-filters-list.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'pry-list-filter-css',\n template: '',\n styleUrls: ['./_m-list.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class PryListFilterCssComponent {}\n","import { Component, OnInit } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { BaseFilterComponent } from '@provoly/dashboard';\n\n@Component({\n selector: 'pry-list-filter',\n templateUrl: './list-filter.component.html'\n})\nexport class ListFilterComponent extends BaseFilterComponent implements OnInit {\n possibleValues: string[] = [];\n\n constructor(store: Store) {\n super(store);\n this.type = 'list';\n }\n\n override ngOnInit() {\n super.ngOnInit();\n if (this.filter?.possibleValues) {\n this.possibleValues = [...new Set(this.filter?.possibleValues.split(',').map((value) => value.trim()))];\n }\n }\n\n setFilter(value: string) {\n if (value !== this.filter?.value) super.updateFilter(value);\n }\n}\n","<pry-list-filter-css></pry-list-filter-css>\n<div class=\"m-filter__input-wrapper m-filter__input-wrapper--dropdown\" *ngIf=\"filter\">\n <label class=\"a-label m-filter__label\" for=\"{{ filter.name }}\">{{ filter.name }}&nbsp;:&nbsp;</label>\n <pry-select\n [id]=\"filter.name\"\n [items]=\"possibleValues\"\n [ngModel]=\"filter.value\"\n (ngModelChange)=\"setFilter($event)\"\n [clearable]=\"true\"\n [autocomplete]=\"true\"\n aria-labelledby=\"item-label\"\n ></pry-select>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { BaseFilterComponent, BaseFilterModule, PrySelectModule } from '@provoly/dashboard';\nimport { ListFilterComponent } from './list-filter.component';\nimport { PryListFilterCssComponent } from './style/css.component';\n\n@NgModule({\n declarations: [ListFilterComponent, PryListFilterCssComponent],\n exports: [ListFilterComponent],\n imports: [CommonModule, ReactiveFormsModule, FormsModule, PrySelectModule]\n})\nexport class PryListFilterModule extends BaseFilterModule {\n override getComponent(): Type<BaseFilterComponent> {\n return ListFilterComponent as Type<ListFilterComponent>;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i5.PryListFilterCssComponent"],"mappings":";;;;;;;;;;MAQa,yBAAyB,CAAA;8GAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAzB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,yBAAyB,2DAJ1B,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,8CAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FAID,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBANrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,qBAAqB,EACrB,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,MAAA,EAAA,CAAA,8CAAA,CAAA,EAAA,CAAA;;;ACEjC,MAAO,mBAAoB,SAAQ,mBAAmB,CAAA;AAG1D,IAAA,WAAA,CAAY,KAAY,EAAA;QACtB,KAAK,CAAC,KAAK,CAAC,CAAC;QAHf,IAAc,CAA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EAAA,CAAA,mBAAmB,EAAE,yBAAyB,CAEnD,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,eAAe,aAD/D,mBAAmB,CAAA,EAAA,CAAA,CAAA,EAAA;AAGlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAFpB,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAE9D,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,yBAAyB,CAAC;oBAC9D,OAAO,EAAE,CAAC,mBAAmB,CAAC;oBAC9B,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,eAAe,CAAC;AAC3E,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
@@ -124,7 +124,7 @@ class PryImportComponent {
124
124
  this.selectedFileType = fileType;
125
125
  }
126
126
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PryImportComponent, deps: [{ token: i2.Store }], target: i0.ɵɵFactoryTarget.Component }); }
127
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: PryImportComponent, selector: "pry-import", ngImport: i0, template: "<pry-import-css></pry-import-css>\n<div class=\"o-import\">\n <h1 class=\"a-h1\">{{ '@pry.import.title' | i18n }}</h1>\n <div class=\"o-import__container\">\n <div class=\"o-import__container__input\">\n <div class=\"m-form-label-field\">\n <div class=\"m-form-label-field\">\n <label class=\"a-h3\" for=\"datasets\">{{ '@pry.import.fileType' | i18n }}</label>\n <pry-select\n id=\"fileType\"\n [items]=\"fileTypes\"\n [ngModel]=\"fileTypes[0].value\"\n [disabled]=\"false\"\n (ngModelChange)=\"onFileTypeChange($event)\"\n bindValue=\"value\"\n bindLabel=\"label\"\n ></pry-select>\n </div>\n <label class=\"a-h3\" for=\"upload_input\">\n {{ '@pry.import.uploadTitle' + selectedFileType | i18n }}\n </label>\n <div class=\"o-file-input\">\n <div *ngIf=\"file\" class=\"o-import__container__input__file\">\n <pry-icon iconSvg=\"download\"></pry-icon>\n <h3>{{ file.name }}</h3>\n <span>{{ getFileSize(file.size) }}</span>\n </div>\n <pry-upload\n id=\"upload_input\"\n [accept]=\"fileExtension[selectedFileType]\"\n mode=\"files\"\n (uploadedFile)=\"uploadedChange($event)\"\n labelTranslate=\"@pry.import.selectFile\"\n ></pry-upload>\n </div>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-h3\" for=\"datasets\">{{ '@pry.import.datasetImport' | i18n }}</label>\n <pry-select\n id=\"datasets\"\n [items]=\"datasets$ | async\"\n [(ngModel)]=\"datasetSelected\"\n [placeholder]=\"'@pry.import.dataset' | i18n\"\n bindValue=\"id\"\n bindLabel=\"name\"\n ></pry-select>\n </div>\n <pry-checkbox [(ngModel)]=\"normalizeGeoShape\">{{ '@pry.import.normalize' | i18n }}</pry-checkbox>\n <div class=\"o-import__container__input__actions\">\n <button class=\"a-btn a-btn--primary\" (click)=\"submit()\" [disabled]=\"isSubmitDisabled()\">\n {{ '@pry.import.import' | i18n }}\n </button>\n </div>\n </div>\n <ng-container *ngIf=\"showMessage\">\n <div class=\"o-import__result\">\n <h1>\n {{\n '@pry.import.consultDataset'\n | i18n\n : { parameter: datasetSelected ?? '' | translateId : { type: 'datasource', output: 'name' } | async }\n }}\n </h1>\n </div>\n </ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: i2$1.PryUploadComponent, selector: "pry-upload", inputs: ["mode", "accept", "labelTranslate"], outputs: ["uploaded", "uploadedFile"] }, { kind: "component", type: i2$1.PrySelectComponent, selector: "pry-select", inputs: ["items", "clearable", "multiple", "closeOnSelect", "placeholder", "isForm", "required", "name", "readonly", "autocomplete", "alwaysShowAutosuggestedValues", "externalAutocompleteService", "bindValue", "bindLabel", "iconSize", "bindIcon", "template", "i18nPrefix", "bindClasses", "loading", "elementRef"], outputs: ["searched", "cleared"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.PryIconComponent, selector: "pry-icon", inputs: ["color", "iconSvg", "animation", "iconImage", "alt", "width", "height", "classes"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5.PryCheckboxComponent, selector: "pry-checkbox", inputs: ["circle"] }, { kind: "component", type: PryImportCssComponent, selector: "pry-import-css" }, { kind: "pipe", type: i2$1.TranslateIdPipe, name: "translateId" }, { kind: "pipe", type: i2$1.I18nPipe, name: "i18n" }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }] }); }
127
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: PryImportComponent, selector: "pry-import", ngImport: i0, template: "<pry-import-css></pry-import-css>\n<div class=\"o-import\">\n <h1 class=\"a-h1\">{{ '@pry.import.title' | i18n }}</h1>\n <div class=\"o-import__container\">\n <div class=\"o-import__container__input\">\n <div class=\"m-form-label-field\">\n <div class=\"m-form-label-field\">\n <label class=\"a-h3\" for=\"datasets\">{{ '@pry.import.fileType' | i18n }}</label>\n <pry-select\n id=\"fileType\"\n [items]=\"fileTypes\"\n [ngModel]=\"fileTypes[0].value\"\n [disabled]=\"false\"\n (ngModelChange)=\"onFileTypeChange($event)\"\n bindValue=\"value\"\n bindLabel=\"label\"\n ></pry-select>\n </div>\n <label class=\"a-h3\" for=\"upload_input\">\n {{ '@pry.import.uploadTitle' + selectedFileType | i18n }}\n </label>\n <div class=\"o-file-input\">\n <div *ngIf=\"file\" class=\"o-import__container__input__file\">\n <pry-icon iconSvg=\"download\"></pry-icon>\n <h3>{{ file.name }}</h3>\n <span>{{ getFileSize(file.size) }}</span>\n </div>\n <pry-upload\n id=\"upload_input\"\n [accept]=\"fileExtension[selectedFileType]\"\n mode=\"files\"\n (uploadedFile)=\"uploadedChange($event)\"\n labelTranslate=\"@pry.import.selectFile\"\n ></pry-upload>\n </div>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-h3\" for=\"datasets\">{{ '@pry.import.datasetImport' | i18n }}</label>\n <pry-select\n id=\"datasets\"\n [items]=\"datasets$ | async\"\n [(ngModel)]=\"datasetSelected\"\n [placeholder]=\"'@pry.import.dataset' | i18n\"\n bindValue=\"id\"\n bindLabel=\"name\"\n ></pry-select>\n </div>\n <pry-checkbox [(ngModel)]=\"normalizeGeoShape\">{{ '@pry.import.normalize' | i18n }}</pry-checkbox>\n <div class=\"o-import__container__input__actions\">\n <button class=\"a-btn a-btn--primary\" (click)=\"submit()\" [disabled]=\"isSubmitDisabled()\">\n {{ '@pry.import.import' | i18n }}\n </button>\n </div>\n </div>\n <ng-container *ngIf=\"showMessage\">\n <div class=\"o-import__result\">\n <h1>\n {{\n '@pry.import.consultDataset'\n | i18n\n : { parameter: datasetSelected ?? '' | translateId : { type: 'datasource', output: 'name' } | async }\n }}\n </h1>\n </div>\n </ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: i2$1.PryUploadComponent, selector: "pry-upload", inputs: ["mode", "accept", "labelTranslate"], outputs: ["uploaded", "uploadedFile"] }, { kind: "component", type: i2$1.PrySelectComponent, selector: "pry-select", inputs: ["items", "clearable", "multiple", "closeOnSelect", "placeholder", "isForm", "required", "name", "readonly", "autocomplete", "alwaysShowAutosuggestedValues", "externalAutocompleteService", "bindValue", "bindLabel", "iconSize", "bindIcon", "template", "i18nPrefix", "bindClasses", "loading", "elementRef"], outputs: ["searched", "cleared", "clicked"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.PryIconComponent, selector: "pry-icon", inputs: ["color", "iconSvg", "animation", "iconImage", "alt", "width", "height", "classes"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5.PryCheckboxComponent, selector: "pry-checkbox", inputs: ["circle"] }, { kind: "component", type: PryImportCssComponent, selector: "pry-import-css" }, { kind: "pipe", type: i2$1.TranslateIdPipe, name: "translateId" }, { kind: "pipe", type: i2$1.I18nPipe, name: "i18n" }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }] }); }
128
128
  }
129
129
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PryImportComponent, decorators: [{
130
130
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"provoly-dashboard-import.mjs","sources":["../../../../projects/provoly/dashboard/import/store/import.actions.ts","../../../../projects/provoly/dashboard/import/store/import.reducer.ts","../../../../projects/provoly/dashboard/import/store/import.selectors.ts","../../../../projects/provoly/dashboard/import/style/css.component.ts","../../../../projects/provoly/dashboard/import/components/import.component.ts","../../../../projects/provoly/dashboard/import/components/import.component.html","../../../../projects/provoly/dashboard/import/i18n/en.translations.ts","../../../../projects/provoly/dashboard/import/i18n/fr.translations.ts","../../../../projects/provoly/dashboard/import/import-routing.module.ts","../../../../projects/provoly/dashboard/import/store/import.service.ts","../../../../projects/provoly/dashboard/import/store/import.effects.ts","../../../../projects/provoly/dashboard/import/import.module.ts","../../../../projects/provoly/dashboard/import/provoly-dashboard-import.ts"],"sourcesContent":["import { createAction, props } from '@ngrx/store';\nimport { DatasetVersion } from '@provoly/dashboard';\nexport const ImportActions = {\n upload: createAction(\n '[Import] import data',\n props<{ file: File; dataset: string; fileType: string; normalizeGeo?: boolean }>()\n ),\n uploadSuccess: createAction('[Import] import data successful', props<{ uploadedDataset: Partial<DatasetVersion> }>()),\n uploadFailure: createAction('[Import] import data failure', props<{ errors: any }>())\n};\n","import { createReducer, on } from '@ngrx/store';\nimport { ImportActions } from './import.actions';\nimport { DatasetVersion } from '@provoly/dashboard';\n\nexport const importFeatureKey = '@pry/import';\n\nexport interface ImportState {\n loading: boolean;\n uploadedDataset?: Partial<DatasetVersion>;\n}\n\nexport const initialImportState: ImportState = {\n loading: false\n};\n\nexport const importReducer = createReducer(\n initialImportState,\n on(ImportActions.upload, (state) => ({\n ...state,\n loading: true\n })),\n on(ImportActions.uploadSuccess, (state, action) => ({\n ...state,\n loading: false,\n uploadedDataset: action.uploadedDataset\n }))\n);\n","import { createFeatureSelector, createSelector } from '@ngrx/store';\nimport * as fromPipeline from './import.reducer';\n\nconst feature = createFeatureSelector<fromPipeline.ImportState>(fromPipeline.importFeatureKey);\n\nconst loading = createSelector(feature, (state) => state.loading);\nconst uploadedDataset = createSelector(feature, (state) => state?.uploadedDataset);\n\nexport const ImportSelectors = {\n loading,\n uploadedDataset\n};\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'pry-import-css',\n template: '',\n styleUrls: ['./_o-import.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class PryImportCssComponent {}\n","import { Component, OnDestroy } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { Dataset, DataSourceActions, DataSourceSelectors, PryDatasetType } from '@provoly/dashboard';\nimport { map, Observable } from 'rxjs';\nimport { ImportActions } from '../store/import.actions';\nimport { ImportSelectors } from '../store/import.selectors';\n\ntype FileExtension = 'csv' | 'zip';\n\n@Component({\n selector: 'pry-import',\n templateUrl: './import.component.html'\n})\nexport class PryImportComponent implements OnDestroy {\n datasets$: Observable<Dataset[]>;\n file?: File;\n datasetSelected?: string;\n selectedFileType: FileExtension = 'csv';\n loading$: Observable<boolean>;\n normalizeGeoShape = false;\n fileTypes: { label: string; value: FileExtension }[] = [\n {\n label: 'Csv',\n value: 'csv'\n },\n {\n label: 'Shapefile',\n value: 'zip'\n }\n ];\n\n fileExtension: Record<FileExtension, string> = {\n csv: '.csv',\n zip: '.zip'\n };\n showMessage: boolean = false;\n constructor(private store: Store) {\n store.dispatch(DataSourceActions.dataset.loadDataset());\n this.datasets$ = store\n .select(DataSourceSelectors.datasets)\n .pipe(\n map((datasets) =>\n datasets\n .filter((dataset) => dataset.type === PryDatasetType.CLOSED)\n .sort((a, b) => (a.name.toLowerCase() > b.name.toLowerCase() ? 1 : -1))\n )\n );\n this.loading$ = store.select(ImportSelectors.loading);\n }\n ngOnDestroy() {\n this.showMessage = false;\n }\n\n sortObjectEntries(obj: any) {\n let arraySorted: any = [];\n Object.keys(obj)\n .sort((a: any, b: any) => a - b)\n .forEach((el) => (arraySorted[el] = obj[el]));\n return arraySorted;\n }\n\n uploadedChange($event: File) {\n this.file = $event;\n }\n\n submit() {\n if (this.file && this.datasetSelected && this.selectedFileType) {\n this.store.dispatch(\n ImportActions.upload({\n file: this.file,\n dataset: this.datasetSelected,\n fileType: this.selectedFileType,\n normalizeGeo: this.normalizeGeoShape\n })\n );\n this.showMessage = true;\n this.file = undefined;\n }\n }\n\n isSubmitDisabled() {\n return this.file === undefined || this.datasetSelected === undefined;\n }\n\n getFileSize(size: number) {\n if (size >= 1000 && size < 1000000) {\n return `${(size / 1000).toFixed(1)} KB`;\n } else if (size >= 1000000) {\n return `${(size / 1000000).toFixed(1)} MB`;\n }\n return `${size} bytes`;\n }\n\n onFileTypeChange(fileType: FileExtension) {\n this.selectedFileType = fileType;\n }\n}\n","<pry-import-css></pry-import-css>\n<div class=\"o-import\">\n <h1 class=\"a-h1\">{{ '@pry.import.title' | i18n }}</h1>\n <div class=\"o-import__container\">\n <div class=\"o-import__container__input\">\n <div class=\"m-form-label-field\">\n <div class=\"m-form-label-field\">\n <label class=\"a-h3\" for=\"datasets\">{{ '@pry.import.fileType' | i18n }}</label>\n <pry-select\n id=\"fileType\"\n [items]=\"fileTypes\"\n [ngModel]=\"fileTypes[0].value\"\n [disabled]=\"false\"\n (ngModelChange)=\"onFileTypeChange($event)\"\n bindValue=\"value\"\n bindLabel=\"label\"\n ></pry-select>\n </div>\n <label class=\"a-h3\" for=\"upload_input\">\n {{ '@pry.import.uploadTitle' + selectedFileType | i18n }}\n </label>\n <div class=\"o-file-input\">\n <div *ngIf=\"file\" class=\"o-import__container__input__file\">\n <pry-icon iconSvg=\"download\"></pry-icon>\n <h3>{{ file.name }}</h3>\n <span>{{ getFileSize(file.size) }}</span>\n </div>\n <pry-upload\n id=\"upload_input\"\n [accept]=\"fileExtension[selectedFileType]\"\n mode=\"files\"\n (uploadedFile)=\"uploadedChange($event)\"\n labelTranslate=\"@pry.import.selectFile\"\n ></pry-upload>\n </div>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-h3\" for=\"datasets\">{{ '@pry.import.datasetImport' | i18n }}</label>\n <pry-select\n id=\"datasets\"\n [items]=\"datasets$ | async\"\n [(ngModel)]=\"datasetSelected\"\n [placeholder]=\"'@pry.import.dataset' | i18n\"\n bindValue=\"id\"\n bindLabel=\"name\"\n ></pry-select>\n </div>\n <pry-checkbox [(ngModel)]=\"normalizeGeoShape\">{{ '@pry.import.normalize' | i18n }}</pry-checkbox>\n <div class=\"o-import__container__input__actions\">\n <button class=\"a-btn a-btn--primary\" (click)=\"submit()\" [disabled]=\"isSubmitDisabled()\">\n {{ '@pry.import.import' | i18n }}\n </button>\n </div>\n </div>\n <ng-container *ngIf=\"showMessage\">\n <div class=\"o-import__result\">\n <h1>\n {{\n '@pry.import.consultDataset'\n | i18n\n : { parameter: datasetSelected ?? '' | translateId : { type: 'datasource', output: 'name' } | async }\n }}\n </h1>\n </div>\n </ng-container>\n </div>\n</div>\n","export const enTranslations = {\n '@pry': {\n import: {\n title: 'Import data',\n datasetImport: 'Import in :',\n import: 'Import',\n errorTitle: 'Import failed',\n successTitle: 'Import successful',\n uploadTitlezip: 'Choose a .zip file',\n uploadTitlecsv: 'Choose a .csv file',\n selectFile: 'Select file',\n importedLines: 'imported lines',\n consultDataset: 'The import is in progress, see the {{ parameter }} dataset page to check its condition',\n errors: 'errors',\n error: 'Error on import: {{msg}}',\n errorCode: {\n 409: 'Import already in progress, please try again later.'\n },\n line: 'Line {{line}}: ',\n withoutLine: 'Global errors: ',\n dataset: 'Dataset',\n fileType: 'Select file type',\n code: {\n UNRECOGNIZED: 'Provided file contains a column \"{{name}}\", which is not present in the chosen dataset',\n FILE_MANDATORY: 'No file was provided',\n NB_ATTRIBUTES:\n 'The number of columns in the file does not match the number of attributes in the chosen dataset',\n CAST: 'Value {{name}} could not be casted to type \"{{type}}\"',\n ELASTIC_SEARCH: 'Elastic Search error: {{elasticError}}'\n },\n normalize: 'Standardize geographic shapes'\n }\n }\n};\n","export const frTranslations = {\n '@pry': {\n import: {\n title: 'Import de données',\n datasetImport: 'Importer dans un jeu de données:',\n import: 'Importer',\n errorTitle: \"L'import a échoué\",\n successTitle: 'Import de données réussi',\n uploadTitlezip: 'Choisir un fichier .zip',\n uploadTitlecsv: 'Choisir un fichier .csv',\n selectFile: 'Sélectionner un fichier',\n importedLines: 'lignes importée(s)',\n consultDataset: \"L'import est en cours, consultez la page du jeu de données {{parameter}} pour vérifier son état\",\n shapefileState: ' pour vérifier son état',\n error: \"Erreur lors de l'import: {{msg}}\",\n errors: 'erreur(s)',\n errorCode: {\n 409: 'Import déjà en cours, veuillez réessayer plus tard.'\n },\n line: 'Ligne {{line}}: ',\n withoutLine: 'Erreurs globales: ',\n dataset: 'Jeu de données',\n fileType: 'Sélectionner un type de fichier',\n code: {\n UNRECOGNIZED:\n \"Le fichier fourni contient une colonne «\\u00A0{{name}}\\u00A0», qui n'est pas présente dans le jeu de données choisi\",\n FILE_MANDATORY: 'Aucun fichier fourni',\n NB_ATTRIBUTES:\n \"Le nombre des colonnes dans le fichier fourni ne correspond pas au nombre d'attributs dans le jeu de données choisi\",\n CAST: \"La valeur «\\u00A0{{name}}\\u00A0», n'a pas pu être convertie en type «\\u00A0{{type}}\\u00A0»,\",\n ELASTIC_SEARCH: 'Elastic Search stack trace error: {{elasticError}}'\n },\n normalize: 'Normaliser les formes géographiques'\n }\n }\n};\n","import { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\nimport { PRY_ACCESS_GUARD } from '@provoly/dashboard';\nimport { PryImportComponent } from './components/import.component';\n\nconst routes: Routes = [\n {\n path: '',\n component: PryImportComponent,\n data: {\n access: {\n module: 'dashboard',\n page: 'import'\n }\n },\n canActivate: [PRY_ACCESS_GUARD]\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule]\n})\nexport class PryImportRoutingModule {}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { ConfigSelectors, DatasetVersion } from '@provoly/dashboard';\nimport { mergeMap } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ImportService {\n constructor(private httpClient: HttpClient, private store: Store<any>) {}\n\n upload(file: File, datasetId: string, fileType: string, normalizeGeo: boolean = false) {\n const formData = new FormData();\n let mimeType = '';\n\n if (fileType === 'csv') {\n mimeType = 'text/csv';\n } else if (fileType === 'zip') {\n mimeType = 'application/shp';\n }\n formData.append('file', new Blob([file], { type: mimeType }), file.name);\n formData.append('normalizeGeo', normalizeGeo.toString());\n\n return this.store.select(ConfigSelectors.dataUrl).pipe(\n mergeMap((url) =>\n this.httpClient.post<Partial<DatasetVersion>>(`${url}/imports/dataset/id/${datasetId}`, formData, {\n headers: new HttpHeaders({ 'File-Content-Type': mimeType })\n })\n )\n );\n }\n}\n","import { HttpErrorResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Actions, createEffect, ofType } from '@ngrx/effects';\nimport { PryI18nService, PrySnackbarService } from '@provoly/dashboard';\nimport { catchError, map, mergeMap } from 'rxjs/operators';\nimport { ImportActions } from './import.actions';\nimport { ImportService } from './import.service';\n\n@Injectable()\nexport class ImportEffects {\n upload$ = createEffect(() =>\n this.actions$.pipe(\n ofType(ImportActions.upload),\n mergeMap((action) =>\n this.service.upload(action.file, action.dataset, action.fileType, action.normalizeGeo).pipe(\n map((uploadedDataset) => {\n return ImportActions.uploadSuccess({ uploadedDataset: uploadedDataset });\n }),\n catchError((error: HttpErrorResponse) => {\n if (error.status === 400 || error.status === 500) {\n return [ImportActions.uploadFailure({ errors: error.error.itemErrors })];\n } else if (error.status === 409) {\n this.snackbar.open({\n type: 'error',\n message: this.translateService.instant('@pry.import.errorCode.' + error.status)\n });\n return [ImportActions.uploadFailure({ errors: error.error.itemErrors })];\n }\n this.snackbar.open({\n type: 'error',\n message: this.translateService.instant('@pry.import.error', { msg: error.error.message })\n });\n throw error;\n })\n )\n )\n )\n );\n\n constructor(\n private actions$: Actions,\n private service: ImportService,\n private snackbar: PrySnackbarService,\n private translateService: PryI18nService\n ) {}\n}\n","import { CommonModule, DatePipe } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\nimport { PryCoreModule, PryI18nModule, PryI18nService, PryIconModule, PrySelectModule } from '@provoly/dashboard';\nimport { PryImportComponent } from './components/import.component';\nimport { enTranslations } from './i18n/en.translations';\nimport { frTranslations } from './i18n/fr.translations';\nimport { PryImportRoutingModule } from './import-routing.module';\nimport { ImportEffects } from './store/import.effects';\nimport { importFeatureKey, importReducer } from './store/import.reducer';\nimport { PryImportCssComponent } from './style/css.component';\nimport {PryCheckboxModule} from \"@provoly/dashboard/components/checkbox\";\n\n@NgModule({\n providers: [DatePipe],\n declarations: [PryImportComponent, PryImportCssComponent],\n imports: [\n PryCoreModule,\n PrySelectModule,\n PryI18nModule,\n CommonModule,\n PryIconModule,\n FormsModule,\n PryImportRoutingModule,\n StoreModule.forFeature(importFeatureKey, importReducer),\n EffectsModule.forFeature([ImportEffects]),\n PryCheckboxModule\n ],\n exports: [PryImportComponent]\n})\nexport class PryImportModule {\n constructor(private pryTranslateService: PryI18nService) {\n this.pryTranslateService.addLangObject('fr', 'import', frTranslations);\n this.pryTranslateService.addLangObject('en', 'import', enTranslations);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["fromPipeline.importFeatureKey","i1","i2","i6.PryImportCssComponent","mergeMap","map","i2.ImportService","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEO,MAAM,aAAa,GAAG;AAC3B,IAAA,MAAM,EAAE,YAAY,CAClB,sBAAsB,EACtB,KAAK,EAA6E,CACnF;AACD,IAAA,aAAa,EAAE,YAAY,CAAC,iCAAiC,EAAE,KAAK,EAAgD,CAAC;AACrH,IAAA,aAAa,EAAE,YAAY,CAAC,8BAA8B,EAAE,KAAK,EAAmB,CAAC;CACtF;;ACLM,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAOvC,MAAM,kBAAkB,GAAgB;AAC7C,IAAA,OAAO,EAAE,KAAK;CACf,CAAC;AAEK,MAAM,aAAa,GAAG,aAAa,CACxC,kBAAkB,EAClB,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM;AACnC,IAAA,GAAG,KAAK;AACR,IAAA,OAAO,EAAE,IAAI;AACd,CAAA,CAAC,CAAC,EACH,EAAE,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,MAAM;AAClD,IAAA,GAAG,KAAK;AACR,IAAA,OAAO,EAAE,KAAK;IACd,eAAe,EAAE,MAAM,CAAC,eAAe;CACxC,CAAC,CAAC,CACJ;;ACvBD,MAAM,OAAO,GAAG,qBAAqB,CAA2BA,gBAA6B,CAAC,CAAC;AAE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,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAhBf,SAAA,EAAA,CAAC,QAAQ,CAAC,YAGf,aAAa;YACb,eAAe;YACf,aAAa;YACb,YAAY;YACZ,aAAa;YACb,WAAW;YACX,sBAAsB;AACtB,YAAA,WAAW,CAAC,UAAU,CAAC,gBAAgB,EAAE,aAAa,CAAC;AACvD,YAAA,aAAa,CAAC,UAAU,CAAC,CAAC,aAAa,CAAC,CAAC;YACzC,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIZ,eAAe,EAAA,UAAA,EAAA,CAAA;kBAjB3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,SAAS,EAAE,CAAC,QAAQ,CAAC;AACrB,oBAAA,YAAY,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;AACvD,oBAAA,OAAO,EAAE;wBACL,aAAa;wBACb,eAAe;wBACf,aAAa;wBACb,YAAY;wBACZ,aAAa;wBACb,WAAW;wBACX,sBAAsB;AACtB,wBAAA,WAAW,CAAC,UAAU,CAAC,gBAAgB,EAAE,aAAa,CAAC;AACvD,wBAAA,aAAa,CAAC,UAAU,CAAC,CAAC,aAAa,CAAC,CAAC;wBACzC,iBAAiB;AACpB,qBAAA;oBACH,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC9B,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"provoly-dashboard-import.mjs","sources":["../../../../projects/provoly/dashboard/import/store/import.actions.ts","../../../../projects/provoly/dashboard/import/store/import.reducer.ts","../../../../projects/provoly/dashboard/import/store/import.selectors.ts","../../../../projects/provoly/dashboard/import/style/css.component.ts","../../../../projects/provoly/dashboard/import/components/import.component.ts","../../../../projects/provoly/dashboard/import/components/import.component.html","../../../../projects/provoly/dashboard/import/i18n/en.translations.ts","../../../../projects/provoly/dashboard/import/i18n/fr.translations.ts","../../../../projects/provoly/dashboard/import/import-routing.module.ts","../../../../projects/provoly/dashboard/import/store/import.service.ts","../../../../projects/provoly/dashboard/import/store/import.effects.ts","../../../../projects/provoly/dashboard/import/import.module.ts","../../../../projects/provoly/dashboard/import/provoly-dashboard-import.ts"],"sourcesContent":["import { createAction, props } from '@ngrx/store';\nimport { DatasetVersion } from '@provoly/dashboard';\nexport const ImportActions = {\n upload: createAction(\n '[Import] import data',\n props<{ file: File; dataset: string; fileType: string; normalizeGeo?: boolean }>()\n ),\n uploadSuccess: createAction('[Import] import data successful', props<{ uploadedDataset: Partial<DatasetVersion> }>()),\n uploadFailure: createAction('[Import] import data failure', props<{ errors: any }>())\n};\n","import { createReducer, on } from '@ngrx/store';\nimport { ImportActions } from './import.actions';\nimport { DatasetVersion } from '@provoly/dashboard';\n\nexport const importFeatureKey = '@pry/import';\n\nexport interface ImportState {\n loading: boolean;\n uploadedDataset?: Partial<DatasetVersion>;\n}\n\nexport const initialImportState: ImportState = {\n loading: false\n};\n\nexport const importReducer = createReducer(\n initialImportState,\n on(ImportActions.upload, (state) => ({\n ...state,\n loading: true\n })),\n on(ImportActions.uploadSuccess, (state, action) => ({\n ...state,\n loading: false,\n uploadedDataset: action.uploadedDataset\n }))\n);\n","import { createFeatureSelector, createSelector } from '@ngrx/store';\nimport * as fromPipeline from './import.reducer';\n\nconst feature = createFeatureSelector<fromPipeline.ImportState>(fromPipeline.importFeatureKey);\n\nconst loading = createSelector(feature, (state) => state.loading);\nconst uploadedDataset = createSelector(feature, (state) => state?.uploadedDataset);\n\nexport const ImportSelectors = {\n loading,\n uploadedDataset\n};\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'pry-import-css',\n template: '',\n styleUrls: ['./_o-import.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class PryImportCssComponent {}\n","import { Component, OnDestroy } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { Dataset, DataSourceActions, DataSourceSelectors, PryDatasetType } from '@provoly/dashboard';\nimport { map, Observable } from 'rxjs';\nimport { ImportActions } from '../store/import.actions';\nimport { ImportSelectors } from '../store/import.selectors';\n\ntype FileExtension = 'csv' | 'zip';\n\n@Component({\n selector: 'pry-import',\n templateUrl: './import.component.html'\n})\nexport class PryImportComponent implements OnDestroy {\n datasets$: Observable<Dataset[]>;\n file?: File;\n datasetSelected?: string;\n selectedFileType: FileExtension = 'csv';\n loading$: Observable<boolean>;\n normalizeGeoShape = false;\n fileTypes: { label: string; value: FileExtension }[] = [\n {\n label: 'Csv',\n value: 'csv'\n },\n {\n label: 'Shapefile',\n value: 'zip'\n }\n ];\n\n fileExtension: Record<FileExtension, string> = {\n csv: '.csv',\n zip: '.zip'\n };\n showMessage: boolean = false;\n constructor(private store: Store) {\n store.dispatch(DataSourceActions.dataset.loadDataset());\n this.datasets$ = store\n .select(DataSourceSelectors.datasets)\n .pipe(\n map((datasets) =>\n datasets\n .filter((dataset) => dataset.type === PryDatasetType.CLOSED)\n .sort((a, b) => (a.name.toLowerCase() > b.name.toLowerCase() ? 1 : -1))\n )\n );\n this.loading$ = store.select(ImportSelectors.loading);\n }\n ngOnDestroy() {\n this.showMessage = false;\n }\n\n sortObjectEntries(obj: any) {\n let arraySorted: any = [];\n Object.keys(obj)\n .sort((a: any, b: any) => a - b)\n .forEach((el) => (arraySorted[el] = obj[el]));\n return arraySorted;\n }\n\n uploadedChange($event: File) {\n this.file = $event;\n }\n\n submit() {\n if (this.file && this.datasetSelected && this.selectedFileType) {\n this.store.dispatch(\n ImportActions.upload({\n file: this.file,\n dataset: this.datasetSelected,\n fileType: this.selectedFileType,\n normalizeGeo: this.normalizeGeoShape\n })\n );\n this.showMessage = true;\n this.file = undefined;\n }\n }\n\n isSubmitDisabled() {\n return this.file === undefined || this.datasetSelected === undefined;\n }\n\n getFileSize(size: number) {\n if (size >= 1000 && size < 1000000) {\n return `${(size / 1000).toFixed(1)} KB`;\n } else if (size >= 1000000) {\n return `${(size / 1000000).toFixed(1)} MB`;\n }\n return `${size} bytes`;\n }\n\n onFileTypeChange(fileType: FileExtension) {\n this.selectedFileType = fileType;\n }\n}\n","<pry-import-css></pry-import-css>\n<div class=\"o-import\">\n <h1 class=\"a-h1\">{{ '@pry.import.title' | i18n }}</h1>\n <div class=\"o-import__container\">\n <div class=\"o-import__container__input\">\n <div class=\"m-form-label-field\">\n <div class=\"m-form-label-field\">\n <label class=\"a-h3\" for=\"datasets\">{{ '@pry.import.fileType' | i18n }}</label>\n <pry-select\n id=\"fileType\"\n [items]=\"fileTypes\"\n [ngModel]=\"fileTypes[0].value\"\n [disabled]=\"false\"\n (ngModelChange)=\"onFileTypeChange($event)\"\n bindValue=\"value\"\n bindLabel=\"label\"\n ></pry-select>\n </div>\n <label class=\"a-h3\" for=\"upload_input\">\n {{ '@pry.import.uploadTitle' + selectedFileType | i18n }}\n </label>\n <div class=\"o-file-input\">\n <div *ngIf=\"file\" class=\"o-import__container__input__file\">\n <pry-icon iconSvg=\"download\"></pry-icon>\n <h3>{{ file.name }}</h3>\n <span>{{ getFileSize(file.size) }}</span>\n </div>\n <pry-upload\n id=\"upload_input\"\n [accept]=\"fileExtension[selectedFileType]\"\n mode=\"files\"\n (uploadedFile)=\"uploadedChange($event)\"\n labelTranslate=\"@pry.import.selectFile\"\n ></pry-upload>\n </div>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-h3\" for=\"datasets\">{{ '@pry.import.datasetImport' | i18n }}</label>\n <pry-select\n id=\"datasets\"\n [items]=\"datasets$ | async\"\n [(ngModel)]=\"datasetSelected\"\n [placeholder]=\"'@pry.import.dataset' | i18n\"\n bindValue=\"id\"\n bindLabel=\"name\"\n ></pry-select>\n </div>\n <pry-checkbox [(ngModel)]=\"normalizeGeoShape\">{{ '@pry.import.normalize' | i18n }}</pry-checkbox>\n <div class=\"o-import__container__input__actions\">\n <button class=\"a-btn a-btn--primary\" (click)=\"submit()\" [disabled]=\"isSubmitDisabled()\">\n {{ '@pry.import.import' | i18n }}\n </button>\n </div>\n </div>\n <ng-container *ngIf=\"showMessage\">\n <div class=\"o-import__result\">\n <h1>\n {{\n '@pry.import.consultDataset'\n | i18n\n : { parameter: datasetSelected ?? '' | translateId : { type: 'datasource', output: 'name' } | async }\n }}\n </h1>\n </div>\n </ng-container>\n </div>\n</div>\n","export const enTranslations = {\n '@pry': {\n import: {\n title: 'Import data',\n datasetImport: 'Import in :',\n import: 'Import',\n errorTitle: 'Import failed',\n successTitle: 'Import successful',\n uploadTitlezip: 'Choose a .zip file',\n uploadTitlecsv: 'Choose a .csv file',\n selectFile: 'Select file',\n importedLines: 'imported lines',\n consultDataset: 'The import is in progress, see the {{ parameter }} dataset page to check its condition',\n errors: 'errors',\n error: 'Error on import: {{msg}}',\n errorCode: {\n 409: 'Import already in progress, please try again later.'\n },\n line: 'Line {{line}}: ',\n withoutLine: 'Global errors: ',\n dataset: 'Dataset',\n fileType: 'Select file type',\n code: {\n UNRECOGNIZED: 'Provided file contains a column \"{{name}}\", which is not present in the chosen dataset',\n FILE_MANDATORY: 'No file was provided',\n NB_ATTRIBUTES:\n 'The number of columns in the file does not match the number of attributes in the chosen dataset',\n CAST: 'Value {{name}} could not be casted to type \"{{type}}\"',\n ELASTIC_SEARCH: 'Elastic Search error: {{elasticError}}'\n },\n normalize: 'Standardize geographic shapes'\n }\n }\n};\n","export const frTranslations = {\n '@pry': {\n import: {\n title: 'Import de données',\n datasetImport: 'Importer dans un jeu de données:',\n import: 'Importer',\n errorTitle: \"L'import a échoué\",\n successTitle: 'Import de données réussi',\n uploadTitlezip: 'Choisir un fichier .zip',\n uploadTitlecsv: 'Choisir un fichier .csv',\n selectFile: 'Sélectionner un fichier',\n importedLines: 'lignes importée(s)',\n consultDataset: \"L'import est en cours, consultez la page du jeu de données {{parameter}} pour vérifier son état\",\n shapefileState: ' pour vérifier son état',\n error: \"Erreur lors de l'import: {{msg}}\",\n errors: 'erreur(s)',\n errorCode: {\n 409: 'Import déjà en cours, veuillez réessayer plus tard.'\n },\n line: 'Ligne {{line}}: ',\n withoutLine: 'Erreurs globales: ',\n dataset: 'Jeu de données',\n fileType: 'Sélectionner un type de fichier',\n code: {\n UNRECOGNIZED:\n \"Le fichier fourni contient une colonne «\\u00A0{{name}}\\u00A0», qui n'est pas présente dans le jeu de données choisi\",\n FILE_MANDATORY: 'Aucun fichier fourni',\n NB_ATTRIBUTES:\n \"Le nombre des colonnes dans le fichier fourni ne correspond pas au nombre d'attributs dans le jeu de données choisi\",\n CAST: \"La valeur «\\u00A0{{name}}\\u00A0», n'a pas pu être convertie en type «\\u00A0{{type}}\\u00A0»,\",\n ELASTIC_SEARCH: 'Elastic Search stack trace error: {{elasticError}}'\n },\n normalize: 'Normaliser les formes géographiques'\n }\n }\n};\n","import { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\nimport { PRY_ACCESS_GUARD } from '@provoly/dashboard';\nimport { PryImportComponent } from './components/import.component';\n\nconst routes: Routes = [\n {\n path: '',\n component: PryImportComponent,\n data: {\n access: {\n module: 'dashboard',\n page: 'import'\n }\n },\n canActivate: [PRY_ACCESS_GUARD]\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule]\n})\nexport class PryImportRoutingModule {}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { ConfigSelectors, DatasetVersion } from '@provoly/dashboard';\nimport { mergeMap } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ImportService {\n constructor(private httpClient: HttpClient, private store: Store<any>) {}\n\n upload(file: File, datasetId: string, fileType: string, normalizeGeo: boolean = false) {\n const formData = new FormData();\n let mimeType = '';\n\n if (fileType === 'csv') {\n mimeType = 'text/csv';\n } else if (fileType === 'zip') {\n mimeType = 'application/shp';\n }\n formData.append('file', new Blob([file], { type: mimeType }), file.name);\n formData.append('normalizeGeo', normalizeGeo.toString());\n\n return this.store.select(ConfigSelectors.dataUrl).pipe(\n mergeMap((url) =>\n this.httpClient.post<Partial<DatasetVersion>>(`${url}/imports/dataset/id/${datasetId}`, formData, {\n headers: new HttpHeaders({ 'File-Content-Type': mimeType })\n })\n )\n );\n }\n}\n","import { HttpErrorResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Actions, createEffect, ofType } from '@ngrx/effects';\nimport { PryI18nService, PrySnackbarService } from '@provoly/dashboard';\nimport { catchError, map, mergeMap } from 'rxjs/operators';\nimport { ImportActions } from './import.actions';\nimport { ImportService } from './import.service';\n\n@Injectable()\nexport class ImportEffects {\n upload$ = createEffect(() =>\n this.actions$.pipe(\n ofType(ImportActions.upload),\n mergeMap((action) =>\n this.service.upload(action.file, action.dataset, action.fileType, action.normalizeGeo).pipe(\n map((uploadedDataset) => {\n return ImportActions.uploadSuccess({ uploadedDataset: uploadedDataset });\n }),\n catchError((error: HttpErrorResponse) => {\n if (error.status === 400 || error.status === 500) {\n return [ImportActions.uploadFailure({ errors: error.error.itemErrors })];\n } else if (error.status === 409) {\n this.snackbar.open({\n type: 'error',\n message: this.translateService.instant('@pry.import.errorCode.' + error.status)\n });\n return [ImportActions.uploadFailure({ errors: error.error.itemErrors })];\n }\n this.snackbar.open({\n type: 'error',\n message: this.translateService.instant('@pry.import.error', { msg: error.error.message })\n });\n throw error;\n })\n )\n )\n )\n );\n\n constructor(\n private actions$: Actions,\n private service: ImportService,\n private snackbar: PrySnackbarService,\n private translateService: PryI18nService\n ) {}\n}\n","import { CommonModule, DatePipe } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\nimport { PryCoreModule, PryI18nModule, PryI18nService, PryIconModule, PrySelectModule } from '@provoly/dashboard';\nimport { PryImportComponent } from './components/import.component';\nimport { enTranslations } from './i18n/en.translations';\nimport { frTranslations } from './i18n/fr.translations';\nimport { PryImportRoutingModule } from './import-routing.module';\nimport { ImportEffects } from './store/import.effects';\nimport { importFeatureKey, importReducer } from './store/import.reducer';\nimport { PryImportCssComponent } from './style/css.component';\nimport {PryCheckboxModule} from \"@provoly/dashboard/components/checkbox\";\n\n@NgModule({\n providers: [DatePipe],\n declarations: [PryImportComponent, PryImportCssComponent],\n imports: [\n PryCoreModule,\n PrySelectModule,\n PryI18nModule,\n CommonModule,\n PryIconModule,\n FormsModule,\n PryImportRoutingModule,\n StoreModule.forFeature(importFeatureKey, importReducer),\n EffectsModule.forFeature([ImportEffects]),\n PryCheckboxModule\n ],\n exports: [PryImportComponent]\n})\nexport class PryImportModule {\n constructor(private pryTranslateService: PryI18nService) {\n this.pryTranslateService.addLangObject('fr', 'import', frTranslations);\n this.pryTranslateService.addLangObject('en', 'import', enTranslations);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["fromPipeline.importFeatureKey","i1","i2","i6.PryImportCssComponent","mergeMap","map","i2.ImportService","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEO,MAAM,aAAa,GAAG;AAC3B,IAAA,MAAM,EAAE,YAAY,CAClB,sBAAsB,EACtB,KAAK,EAA6E,CACnF;AACD,IAAA,aAAa,EAAE,YAAY,CAAC,iCAAiC,EAAE,KAAK,EAAgD,CAAC;AACrH,IAAA,aAAa,EAAE,YAAY,CAAC,8BAA8B,EAAE,KAAK,EAAmB,CAAC;CACtF;;ACLM,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAOvC,MAAM,kBAAkB,GAAgB;AAC7C,IAAA,OAAO,EAAE,KAAK;CACf,CAAC;AAEK,MAAM,aAAa,GAAG,aAAa,CACxC,kBAAkB,EAClB,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM;AACnC,IAAA,GAAG,KAAK;AACR,IAAA,OAAO,EAAE,IAAI;AACd,CAAA,CAAC,CAAC,EACH,EAAE,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,MAAM;AAClD,IAAA,GAAG,KAAK;AACR,IAAA,OAAO,EAAE,KAA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,CAAA,EAAA,CAAA,CAAA,EAAA;AAEjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAhBf,SAAA,EAAA,CAAC,QAAQ,CAAC,YAGf,aAAa;YACb,eAAe;YACf,aAAa;YACb,YAAY;YACZ,aAAa;YACb,WAAW;YACX,sBAAsB;AACtB,YAAA,WAAW,CAAC,UAAU,CAAC,gBAAgB,EAAE,aAAa,CAAC;AACvD,YAAA,aAAa,CAAC,UAAU,CAAC,CAAC,aAAa,CAAC,CAAC;YACzC,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIZ,eAAe,EAAA,UAAA,EAAA,CAAA;kBAjB3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,SAAS,EAAE,CAAC,QAAQ,CAAC;AACrB,oBAAA,YAAY,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;AACvD,oBAAA,OAAO,EAAE;wBACL,aAAa;wBACb,eAAe;wBACf,aAAa;wBACb,YAAY;wBACZ,aAAa;wBACb,WAAW;wBACX,sBAAsB;AACtB,wBAAA,WAAW,CAAC,UAAU,CAAC,gBAAgB,EAAE,aAAa,CAAC;AACvD,wBAAA,aAAa,CAAC,UAAU,CAAC,CAAC,aAAa,CAAC,CAAC;wBACzC,iBAAiB;AACpB,qBAAA;oBACH,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC9B,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
@@ -58,7 +58,7 @@ class FilterComponent extends PipelinePropertiesPanelComponent {
58
58
  this.checkFn();
59
59
  }
60
60
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
61
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: FilterComponent, selector: "pry-pipeline-filter", usesInheritance: true, ngImport: i0, template: "<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"filter\">{{ '@pry.pipeline.filter.filter' | i18n }}</label>\n <pry-select\n [items]=\"model?.attributes ?? null\"\n [ngModel]=\"node.properties['attributeName']\"\n (ngModelChange)=\"changeAttribute($event)\"\n [disabled]=\"disabled\"\n bindLabel=\"technicalName\"\n bindValue=\"technicalName\"\n id=\"filter\"\n ></pry-select>\n</div>\n\n<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"operator\">{{ '@pry.pipeline.filter.operator' | i18n }}</label>\n <pry-select\n [items]=\"operators\"\n [ngModel]=\"node.properties['operator']\"\n (ngModelChange)=\"changeOperator($event)\"\n [disabled]=\"disabled\"\n id=\"operator\"\n ></pry-select>\n</div>\n\n<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"value\">{{ '@pry.pipeline.filter.value' | i18n }}</label>\n <input\n [type]=\"inputType\"\n [disabled]=\"disabled\"\n id=\"value\"\n class=\"a-form-field\"\n [ngModel]=\"node.properties['value']\"\n (ngModelChange)=\"changeValue($event)\"\n />\n</div>\n", dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.PrySelectComponent, selector: "pry-select", inputs: ["items", "clearable", "multiple", "closeOnSelect", "placeholder", "isForm", "required", "name", "readonly", "autocomplete", "alwaysShowAutosuggestedValues", "externalAutocompleteService", "bindValue", "bindLabel", "iconSize", "bindIcon", "template", "i18nPrefix", "bindClasses", "loading", "elementRef"], outputs: ["searched", "cleared"] }, { kind: "pipe", type: i2.I18nPipe, name: "i18n" }] }); }
61
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: FilterComponent, selector: "pry-pipeline-filter", usesInheritance: true, ngImport: i0, template: "<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"filter\">{{ '@pry.pipeline.filter.filter' | i18n }}</label>\n <pry-select\n [items]=\"model?.attributes ?? null\"\n [ngModel]=\"node.properties['attributeName']\"\n (ngModelChange)=\"changeAttribute($event)\"\n [disabled]=\"disabled\"\n bindLabel=\"technicalName\"\n bindValue=\"technicalName\"\n id=\"filter\"\n ></pry-select>\n</div>\n\n<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"operator\">{{ '@pry.pipeline.filter.operator' | i18n }}</label>\n <pry-select\n [items]=\"operators\"\n [ngModel]=\"node.properties['operator']\"\n (ngModelChange)=\"changeOperator($event)\"\n [disabled]=\"disabled\"\n id=\"operator\"\n ></pry-select>\n</div>\n\n<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"value\">{{ '@pry.pipeline.filter.value' | i18n }}</label>\n <input\n [type]=\"inputType\"\n [disabled]=\"disabled\"\n id=\"value\"\n class=\"a-form-field\"\n [ngModel]=\"node.properties['value']\"\n (ngModelChange)=\"changeValue($event)\"\n />\n</div>\n", dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.PrySelectComponent, selector: "pry-select", inputs: ["items", "clearable", "multiple", "closeOnSelect", "placeholder", "isForm", "required", "name", "readonly", "autocomplete", "alwaysShowAutosuggestedValues", "externalAutocompleteService", "bindValue", "bindLabel", "iconSize", "bindIcon", "template", "i18nPrefix", "bindClasses", "loading", "elementRef"], outputs: ["searched", "cleared", "clicked"] }, { kind: "pipe", type: i2.I18nPipe, name: "i18n" }] }); }
62
62
  }
63
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FilterComponent, decorators: [{
64
64
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"provoly-dashboard-pipeline-components-filter.mjs","sources":["../../../../projects/provoly/dashboard/pipeline-components/filter/component/filter.component.ts","../../../../projects/provoly/dashboard/pipeline-components/filter/component/filter.component.html","../../../../projects/provoly/dashboard/pipeline-components/filter/i18n/en.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/filter/i18n/fr.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/filter/node-class/filter-node.class.ts","../../../../projects/provoly/dashboard/pipeline-components/filter/filter.module.ts","../../../../projects/provoly/dashboard/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { FieldType } from '@provoly/dashboard';\nimport { PipelinePropertiesPanelComponent } from '@provoly/dashboard/pipeline';\n\n@Component({\n selector: 'pry-pipeline-filter',\n templateUrl: './filter.component.html'\n})\nexport class FilterComponent extends PipelinePropertiesPanelComponent {\n ref = {\n [FieldType.INTEGER]: ['GREATER_THAN', 'LOWER_THAN'],\n [FieldType.DECIMAL]: ['GREATER_THAN', 'LOWER_THAN'],\n [FieldType.LONG]: ['GREATER_THAN', 'LOWER_THAN'],\n [FieldType.STRING]: [],\n [FieldType.KEYWORD]: [],\n [FieldType.INSTANT]: ['GREATER_THAN', 'LOWER_THAN']\n } as { [key: string]: string[] };\n\n operators: string[] = [];\n inputType: string = 'text';\n\n constructor() {\n super();\n }\n\n changeAttribute($event: any) {\n this.node.properties['attributeName'] = $event;\n this.checkFn();\n if (this.model) {\n const attrType = this.model.attributes.find((attr) => attr.technicalName === $event)?.type ?? 'string';\n this.operators = this.ref[attrType];\n if (this.operators) {\n this.node.properties['operator'] = this.operators[0];\n }\n this.inputType = this.getType(attrType);\n }\n }\n\n getType(type: string) {\n switch (type) {\n case FieldType.INTEGER:\n case FieldType.LONG:\n case FieldType.DECIMAL:\n return 'number';\n case FieldType.INSTANT:\n return 'date';\n case FieldType.KEYWORD:\n case FieldType.STRING:\n default:\n return 'text';\n }\n }\n\n changeOperator($event: any) {\n this.node.properties['operator'] = $event;\n this.checkFn();\n }\n\n changeValue($event: any) {\n this.node.properties['value'] = $event;\n this.checkFn();\n }\n}\n","<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"filter\">{{ '@pry.pipeline.filter.filter' | i18n }}</label>\n <pry-select\n [items]=\"model?.attributes ?? null\"\n [ngModel]=\"node.properties['attributeName']\"\n (ngModelChange)=\"changeAttribute($event)\"\n [disabled]=\"disabled\"\n bindLabel=\"technicalName\"\n bindValue=\"technicalName\"\n id=\"filter\"\n ></pry-select>\n</div>\n\n<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"operator\">{{ '@pry.pipeline.filter.operator' | i18n }}</label>\n <pry-select\n [items]=\"operators\"\n [ngModel]=\"node.properties['operator']\"\n (ngModelChange)=\"changeOperator($event)\"\n [disabled]=\"disabled\"\n id=\"operator\"\n ></pry-select>\n</div>\n\n<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"value\">{{ '@pry.pipeline.filter.value' | i18n }}</label>\n <input\n [type]=\"inputType\"\n [disabled]=\"disabled\"\n id=\"value\"\n class=\"a-form-field\"\n [ngModel]=\"node.properties['value']\"\n (ngModelChange)=\"changeValue($event)\"\n />\n</div>\n","export const enTranslations = {\n '@pry': {\n pipeline: {\n codes: {\n MISSING_PROPERTY_IN_INPUT_ATTRIBUTE: 'Attribut name to filter is not available',\n BAD_TYPE: 'Attribute type is not valid'\n },\n filter: {\n filter: 'Attribute',\n operator: 'Operator',\n value: 'Value'\n }\n }\n }\n};\n","export const frTranslations = {\n '@pry': {\n pipeline: {\n codes: {\n MISSING_PROPERTY_IN_INPUT_ATTRIBUTE: \"Le nom de l'attribut à filtrer n'est pas disponible\",\n BAD_TYPE: \"Le type de l'attribut {{attributeName}} n'est pas correct\"\n },\n filter: {\n filter: 'Attribut',\n operator: 'Opération',\n value: 'Valeur'\n }\n }\n }\n};\n","import { BaseNode } from '@provoly/dashboard/pipeline';\n\nexport class FilterNode extends BaseNode {\n constructor(title?: string, ...other: any) {\n super();\n this.properties['type'] = 'com.provoly.common.transfo.Filter';\n this.addInput('items', 'items');\n this.addOutput('items', 'items');\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 { PryCoreModule, PryDashboardModule, PryI18nModule, PryI18nService, PrySelectModule } from '@provoly/dashboard';\nimport { PipelineComponentFactoryService } from '@provoly/dashboard/pipeline';\nimport { FilterComponent } from './component/filter.component';\nimport { enTranslations } from './i18n/en.translations';\nimport { frTranslations } from './i18n/fr.translations';\nimport { FilterNode } from './node-class/filter-node.class';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n OverlayModule,\n PryCoreModule,\n PryDashboardModule,\n PrySelectModule,\n PryI18nModule\n ],\n declarations: [FilterComponent],\n exports: [FilterComponent]\n})\nexport class PryPipelineFilterModule {\n constructor(\n pipelineComponentFactoryService: PipelineComponentFactoryService,\n private pryTranslateService: PryI18nService\n ) {\n this.pryTranslateService.addLangObject('fr', 'pipeline-filter', frTranslations);\n this.pryTranslateService.addLangObject('en', 'pipeline-filter', enTranslations);\n\n pipelineComponentFactoryService.addType('com.provoly.common.transfo.Filter', FilterComponent, FilterNode);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\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AA,EAAA;+GAAvB,uBAAuB,EAAA,YAAA,EAAA,CAHnB,eAAe,CAAA,EAAA,OAAA,EAAA,CAR5B,YAAY;YACZ,WAAW;YACX,aAAa;YACb,aAAa;YACb,kBAAkB;YAClB,eAAe;AACf,YAAA,aAAa,aAGL,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;AAEd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAXhC,YAAY;YACZ,WAAW;YACX,aAAa;YACb,aAAa;YACb,kBAAkB;YAClB,eAAe;YACf,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAKJ,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAbnC,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,eAAe,CAAC;oBAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;AAC3B,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
1
+ {"version":3,"file":"provoly-dashboard-pipeline-components-filter.mjs","sources":["../../../../projects/provoly/dashboard/pipeline-components/filter/component/filter.component.ts","../../../../projects/provoly/dashboard/pipeline-components/filter/component/filter.component.html","../../../../projects/provoly/dashboard/pipeline-components/filter/i18n/en.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/filter/i18n/fr.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/filter/node-class/filter-node.class.ts","../../../../projects/provoly/dashboard/pipeline-components/filter/filter.module.ts","../../../../projects/provoly/dashboard/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { FieldType } from '@provoly/dashboard';\nimport { PipelinePropertiesPanelComponent } from '@provoly/dashboard/pipeline';\n\n@Component({\n selector: 'pry-pipeline-filter',\n templateUrl: './filter.component.html'\n})\nexport class FilterComponent extends PipelinePropertiesPanelComponent {\n ref = {\n [FieldType.INTEGER]: ['GREATER_THAN', 'LOWER_THAN'],\n [FieldType.DECIMAL]: ['GREATER_THAN', 'LOWER_THAN'],\n [FieldType.LONG]: ['GREATER_THAN', 'LOWER_THAN'],\n [FieldType.STRING]: [],\n [FieldType.KEYWORD]: [],\n [FieldType.INSTANT]: ['GREATER_THAN', 'LOWER_THAN']\n } as { [key: string]: string[] };\n\n operators: string[] = [];\n inputType: string = 'text';\n\n constructor() {\n super();\n }\n\n changeAttribute($event: any) {\n this.node.properties['attributeName'] = $event;\n this.checkFn();\n if (this.model) {\n const attrType = this.model.attributes.find((attr) => attr.technicalName === $event)?.type ?? 'string';\n this.operators = this.ref[attrType];\n if (this.operators) {\n this.node.properties['operator'] = this.operators[0];\n }\n this.inputType = this.getType(attrType);\n }\n }\n\n getType(type: string) {\n switch (type) {\n case FieldType.INTEGER:\n case FieldType.LONG:\n case FieldType.DECIMAL:\n return 'number';\n case FieldType.INSTANT:\n return 'date';\n case FieldType.KEYWORD:\n case FieldType.STRING:\n default:\n return 'text';\n }\n }\n\n changeOperator($event: any) {\n this.node.properties['operator'] = $event;\n this.checkFn();\n }\n\n changeValue($event: any) {\n this.node.properties['value'] = $event;\n this.checkFn();\n }\n}\n","<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"filter\">{{ '@pry.pipeline.filter.filter' | i18n }}</label>\n <pry-select\n [items]=\"model?.attributes ?? null\"\n [ngModel]=\"node.properties['attributeName']\"\n (ngModelChange)=\"changeAttribute($event)\"\n [disabled]=\"disabled\"\n bindLabel=\"technicalName\"\n bindValue=\"technicalName\"\n id=\"filter\"\n ></pry-select>\n</div>\n\n<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"operator\">{{ '@pry.pipeline.filter.operator' | i18n }}</label>\n <pry-select\n [items]=\"operators\"\n [ngModel]=\"node.properties['operator']\"\n (ngModelChange)=\"changeOperator($event)\"\n [disabled]=\"disabled\"\n id=\"operator\"\n ></pry-select>\n</div>\n\n<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"value\">{{ '@pry.pipeline.filter.value' | i18n }}</label>\n <input\n [type]=\"inputType\"\n [disabled]=\"disabled\"\n id=\"value\"\n class=\"a-form-field\"\n [ngModel]=\"node.properties['value']\"\n (ngModelChange)=\"changeValue($event)\"\n />\n</div>\n","export const enTranslations = {\n '@pry': {\n pipeline: {\n codes: {\n MISSING_PROPERTY_IN_INPUT_ATTRIBUTE: 'Attribut name to filter is not available',\n BAD_TYPE: 'Attribute type is not valid'\n },\n filter: {\n filter: 'Attribute',\n operator: 'Operator',\n value: 'Value'\n }\n }\n }\n};\n","export const frTranslations = {\n '@pry': {\n pipeline: {\n codes: {\n MISSING_PROPERTY_IN_INPUT_ATTRIBUTE: \"Le nom de l'attribut à filtrer n'est pas disponible\",\n BAD_TYPE: \"Le type de l'attribut {{attributeName}} n'est pas correct\"\n },\n filter: {\n filter: 'Attribut',\n operator: 'Opération',\n value: 'Valeur'\n }\n }\n }\n};\n","import { BaseNode } from '@provoly/dashboard/pipeline';\n\nexport class FilterNode extends BaseNode {\n constructor(title?: string, ...other: any) {\n super();\n this.properties['type'] = 'com.provoly.common.transfo.Filter';\n this.addInput('items', 'items');\n this.addOutput('items', 'items');\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 { PryCoreModule, PryDashboardModule, PryI18nModule, PryI18nService, PrySelectModule } from '@provoly/dashboard';\nimport { PipelineComponentFactoryService } from '@provoly/dashboard/pipeline';\nimport { FilterComponent } from './component/filter.component';\nimport { enTranslations } from './i18n/en.translations';\nimport { frTranslations } from './i18n/fr.translations';\nimport { FilterNode } from './node-class/filter-node.class';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n OverlayModule,\n PryCoreModule,\n PryDashboardModule,\n PrySelectModule,\n PryI18nModule\n ],\n declarations: [FilterComponent],\n exports: [FilterComponent]\n})\nexport class PryPipelineFilterModule {\n constructor(\n pipelineComponentFactoryService: PipelineComponentFactoryService,\n private pryTranslateService: PryI18nService\n ) {\n this.pryTranslateService.addLangObject('fr', 'pipeline-filter', frTranslations);\n this.pryTranslateService.addLangObject('en', 'pipeline-filter', enTranslations);\n\n pipelineComponentFactoryService.addType('com.provoly.common.transfo.Filter', FilterComponent, FilterNode);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAQM,MAAO,eAAgB,SAAQ,gCAAgC,CAAA;AAanE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AAbV,QAAA,IAAA,CAAA,GAAG,GAAG;YACJ,CAAC,SAAS,CAAC,OAAO,GAAG,CAAC,cAAc,EAAE,YAAY,CAAC;YACnD,CAAC,SAAS,CAAC,OAAO,GAAG,CAAC,cAAc,EAAE,YAAY,CAAC;YACnD,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,cAAc,EAAE,YAAY,CAAC;AAChD,YAAA,CAAC,SAAS,CAAC,MAAM,GAAG,EAAE;AACtB,YAAA,CAAC,SAAS,CAAC,OAAO,GAAG,EAAE;YACvB,CAAC,SAAS,CAAC,OAAO,GAAG,CAAC,cAAc,EAAE,YAAY,CAAC;SACrB,CAAC;QAEjC,IAAS,CAAA,SAAA,GAAa,EAAE,CAAC;QACzB,IAAS,CAAA,SAAA,GAAW,MAAM,CAAC;KAI1B;AAED,IAAA,eAAe,CAAC,MAAW,EAAA;QACzB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC;QAC/C,IAAI,CAAC,OAAO,EAAE,CAAC;AACf,QAAA,IAAI,IAAI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C3B,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
@@ -25,7 +25,7 @@ class InputDatasourceComponent extends PipelinePropertiesPanelComponent {
25
25
  this.checkFn();
26
26
  }
27
27
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: InputDatasourceComponent, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
28
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: InputDatasourceComponent, selector: "pry-pipeline-input-dataset-definition", usesInheritance: true, ngImport: i0, template: "<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"dataset\">{{ '@pry.pipeline.dataset.input' | i18n }}</label>\n <pry-select\n [items]=\"dataSources$ | async\"\n [ngModel]=\"node.properties['datasetId']\"\n (ngModelChange)=\"change($event)\"\n [disabled]=\"disabled\"\n bindLabel=\"name\"\n bindValue=\"id\"\n id=\"dataset\"\n ></pry-select>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.PrySelectComponent, selector: "pry-select", inputs: ["items", "clearable", "multiple", "closeOnSelect", "placeholder", "isForm", "required", "name", "readonly", "autocomplete", "alwaysShowAutosuggestedValues", "externalAutocompleteService", "bindValue", "bindLabel", "iconSize", "bindIcon", "template", "i18nPrefix", "bindClasses", "loading", "elementRef"], outputs: ["searched", "cleared"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.I18nPipe, name: "i18n" }] }); }
28
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: InputDatasourceComponent, selector: "pry-pipeline-input-dataset-definition", usesInheritance: true, ngImport: i0, template: "<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"dataset\">{{ '@pry.pipeline.dataset.input' | i18n }}</label>\n <pry-select\n [items]=\"dataSources$ | async\"\n [ngModel]=\"node.properties['datasetId']\"\n (ngModelChange)=\"change($event)\"\n [disabled]=\"disabled\"\n bindLabel=\"name\"\n bindValue=\"id\"\n id=\"dataset\"\n ></pry-select>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.PrySelectComponent, selector: "pry-select", inputs: ["items", "clearable", "multiple", "closeOnSelect", "placeholder", "isForm", "required", "name", "readonly", "autocomplete", "alwaysShowAutosuggestedValues", "externalAutocompleteService", "bindValue", "bindLabel", "iconSize", "bindIcon", "template", "i18nPrefix", "bindClasses", "loading", "elementRef"], outputs: ["searched", "cleared", "clicked"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.I18nPipe, name: "i18n" }] }); }
29
29
  }
30
30
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: InputDatasourceComponent, decorators: [{
31
31
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"provoly-dashboard-pipeline-components-input-datasource.mjs","sources":["../../../../projects/provoly/dashboard/pipeline-components/input-datasource/component/input-datasource.component.ts","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/component/input-datasource.component.html","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/i18n/en.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/i18n/fr.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/node-class/input-datasourse-node.class.ts","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/input-datasource.module.ts","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { DataSource, DataSourceActions, DataSourceSelectors } from '@provoly/dashboard';\nimport { PipelinePropertiesPanelComponent } from '@provoly/dashboard/pipeline';\nimport { Observable } from 'rxjs';\n\n@Component({\n selector: 'pry-pipeline-input-dataset-definition',\n templateUrl: './input-datasource.component.html'\n})\nexport class InputDatasourceComponent extends PipelinePropertiesPanelComponent {\n dataSources$: Observable<DataSource[]>;\n\n constructor(private store: Store) {\n super();\n this.store.dispatch(DataSourceActions.dataset.loadDataset());\n this.store.dispatch(DataSourceActions.namedQuery.load());\n this.dataSources$ = this.store.select(DataSourceSelectors.getDataSources);\n }\n\n change($event: any) {\n this.node.properties['datasetId'] = $event;\n this.checkFn();\n }\n}\n","<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"dataset\">{{ '@pry.pipeline.dataset.input' | i18n }}</label>\n <pry-select\n [items]=\"dataSources$ | async\"\n [ngModel]=\"node.properties['datasetId']\"\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: { input: 'Origin data source', output: 'Destination dataset definition' }\n }\n }\n};\n","export const frTranslations = {\n '@pry': {\n pipeline: {\n dataset: { input: 'Datasource origine', output: 'Dataset définition destination' }\n }\n }\n};\n","import { BaseNode } from '@provoly/dashboard/pipeline';\nimport { LiteGraph } from 'litegraph.js';\n\nexport class InputDatasourceNode extends BaseNode {\n constructor(title?: string, ...other: any) {\n super();\n this.properties['type'] = 'com.provoly.common.transfo.InputDatasource';\n this.color = InputDatasourceNode.getNodeTitleColor();\n this.titleColor = '#000000';\n this.shape = LiteGraph.BOX_SHAPE;\n this.addOutput('items', 'items');\n }\n\n static override getNodeTitleColor() {\n return '#FFC971';\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 PryI18nModule,\n PryI18nService,\n PrySelectModule\n} from '@provoly/dashboard';\nimport { PipelineComponentFactoryService } from '@provoly/dashboard/pipeline';\nimport { InputDatasourceComponent } from './component/input-datasource.component';\nimport { enTranslations } from './i18n/en.translations';\nimport { frTranslations } from './i18n/fr.translations';\nimport { InputDatasourceNode } from './node-class/input-datasourse-node.class';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n OverlayModule,\n PryCoreModule,\n PryDashboardModule,\n PrySelectModule,\n PryI18nModule\n ],\n declarations: [InputDatasourceComponent],\n exports: [InputDatasourceComponent]\n})\nexport class PryPipelineInputDatasetModule {\n constructor(\n pipelineComponentFactoryService: PipelineComponentFactoryService,\n private pryTranslateService: PryI18nService,\n private store: Store\n ) {\n this.pryTranslateService.addLangObject('fr', 'pipeline-inputdsdef', frTranslations);\n this.pryTranslateService.addLangObject('en', 'pipeline-inputdsdef', enTranslations);\n\n this.store.dispatch(DataSourceActions.dataset.loadDataset());\n this.store.select(DataSourceSelectors.getDataSources).subscribe((datasources) => {\n datasources.forEach((datasource) => {\n pipelineComponentFactoryService.addType(\n 'com.provoly.common.transfo.InputDatasource',\n InputDatasourceComponent,\n InputDatasourceNode,\n 'input',\n datasource.name,\n true,\n { datasetId: 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,wBAAyB,SAAQ,gCAAgC,CAAA;AAG5E,IAAA,WAAA,CAAoB,KAAY,EAAA;AAC9B,QAAA,KAAK,EAAE,CAAC;QADU,IAAK,CAAA,KAAA,GAAL,KAAK,CAAO;AA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A,+BAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,EAAA,CAAA,cAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,EAAA,CAAA,KAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAA7B,6BAA6B,EAAA,YAAA,EAAA,CAHzB,wBAAwB,CAAA,EAAA,OAAA,EAAA,CARrC,YAAY;YACZ,WAAW;YACX,aAAa;YACb,aAAa;YACb,kBAAkB;YAClB,eAAe;AACf,YAAA,aAAa,aAGL,wBAAwB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,YAXtC,YAAY;YACZ,WAAW;YACX,aAAa;YACb,aAAa;YACb,kBAAkB;YAClB,eAAe;YACf,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAKJ,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAbzC,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,wBAAwB,CAAC;oBACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;AACpC,iBAAA,CAAA;;;AChCD;;AAEG;;;;"}
1
+ {"version":3,"file":"provoly-dashboard-pipeline-components-input-datasource.mjs","sources":["../../../../projects/provoly/dashboard/pipeline-components/input-datasource/component/input-datasource.component.ts","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/component/input-datasource.component.html","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/i18n/en.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/i18n/fr.translations.ts","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/node-class/input-datasourse-node.class.ts","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/input-datasource.module.ts","../../../../projects/provoly/dashboard/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { DataSource, DataSourceActions, DataSourceSelectors } from '@provoly/dashboard';\nimport { PipelinePropertiesPanelComponent } from '@provoly/dashboard/pipeline';\nimport { Observable } from 'rxjs';\n\n@Component({\n selector: 'pry-pipeline-input-dataset-definition',\n templateUrl: './input-datasource.component.html'\n})\nexport class InputDatasourceComponent extends PipelinePropertiesPanelComponent {\n dataSources$: Observable<DataSource[]>;\n\n constructor(private store: Store) {\n super();\n this.store.dispatch(DataSourceActions.dataset.loadDataset());\n this.store.dispatch(DataSourceActions.namedQuery.load());\n this.dataSources$ = this.store.select(DataSourceSelectors.getDataSources);\n }\n\n change($event: any) {\n this.node.properties['datasetId'] = $event;\n this.checkFn();\n }\n}\n","<div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"dataset\">{{ '@pry.pipeline.dataset.input' | i18n }}</label>\n <pry-select\n [items]=\"dataSources$ | async\"\n [ngModel]=\"node.properties['datasetId']\"\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: { input: 'Origin data source', output: 'Destination dataset definition' }\n }\n }\n};\n","export const frTranslations = {\n '@pry': {\n pipeline: {\n dataset: { input: 'Datasource origine', output: 'Dataset définition destination' }\n }\n }\n};\n","import { BaseNode } from '@provoly/dashboard/pipeline';\nimport { LiteGraph } from 'litegraph.js';\n\nexport class InputDatasourceNode extends BaseNode {\n constructor(title?: string, ...other: any) {\n super();\n this.properties['type'] = 'com.provoly.common.transfo.InputDatasource';\n this.color = InputDatasourceNode.getNodeTitleColor();\n this.titleColor = '#000000';\n this.shape = LiteGraph.BOX_SHAPE;\n this.addOutput('items', 'items');\n }\n\n static override getNodeTitleColor() {\n return '#FFC971';\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 PryI18nModule,\n PryI18nService,\n PrySelectModule\n} from '@provoly/dashboard';\nimport { PipelineComponentFactoryService } from '@provoly/dashboard/pipeline';\nimport { InputDatasourceComponent } from './component/input-datasource.component';\nimport { enTranslations } from './i18n/en.translations';\nimport { frTranslations } from './i18n/fr.translations';\nimport { InputDatasourceNode } from './node-class/input-datasourse-node.class';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n OverlayModule,\n PryCoreModule,\n PryDashboardModule,\n PrySelectModule,\n PryI18nModule\n ],\n declarations: [InputDatasourceComponent],\n exports: [InputDatasourceComponent]\n})\nexport class PryPipelineInputDatasetModule {\n constructor(\n pipelineComponentFactoryService: PipelineComponentFactoryService,\n private pryTranslateService: PryI18nService,\n private store: Store\n ) {\n this.pryTranslateService.addLangObject('fr', 'pipeline-inputdsdef', frTranslations);\n this.pryTranslateService.addLangObject('en', 'pipeline-inputdsdef', enTranslations);\n\n this.store.dispatch(DataSourceActions.dataset.loadDataset());\n this.store.select(DataSourceSelectors.getDataSources).subscribe((datasources) => {\n datasources.forEach((datasource) => {\n pipelineComponentFactoryService.addType(\n 'com.provoly.common.transfo.InputDatasource',\n InputDatasourceComponent,\n InputDatasourceNode,\n 'input',\n datasource.name,\n true,\n { datasetId: 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,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checkFn();
28
28
  }
29
29
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: OutputDatasetComponent, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
30
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: OutputDatasetComponent, selector: "pry-pipeline-output-dataset-definition", usesInheritance: true, ngImport: i0, template: "<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", dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.PrySelectComponent, selector: "pry-select", inputs: ["items", "clearable", "multiple", "closeOnSelect", "placeholder", "isForm", "required", "name", "readonly", "autocomplete", "alwaysShowAutosuggestedValues", "externalAutocompleteService", "bindValue", "bindLabel", "iconSize", "bindIcon", "template", "i18nPrefix", "bindClasses", "loading", "elementRef"], outputs: ["searched", "cleared"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.I18nPipe, name: "i18n" }] }); }
30
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: OutputDatasetComponent, selector: "pry-pipeline-output-dataset-definition", usesInheritance: true, ngImport: i0, template: "<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", dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.PrySelectComponent, selector: "pry-select", inputs: ["items", "clearable", "multiple", "closeOnSelect", "placeholder", "isForm", "required", "name", "readonly", "autocomplete", "alwaysShowAutosuggestedValues", "externalAutocompleteService", "bindValue", "bindLabel", "iconSize", "bindIcon", "template", "i18nPrefix", "bindClasses", "loading", "elementRef"], outputs: ["searched", "cleared", "clicked"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.I18nPipe, name: "i18n" }] }); }
31
31
  }
32
32
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: OutputDatasetComponent, decorators: [{
33
33
  type: Component,
@@ -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,QAA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-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;AAC7D,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK;AACxB,aAAA,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC;aACpC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAmB,KAAK,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,IAAI,KAAK,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAC7G;AAED,IAAA,MAAM,CAAC,MAAW,EAAA;QAChB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;QACzC,IAAI,CAAC,OAAO,EAAE,CAAC;KAChB;8GAdU,sBAAsB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,KAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,qGCVnC,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Aa;YACb,aAAa;YACb,kBAAkB;YAClB,eAAe;YACf,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAKJ,8BAA8B,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;;;;"}
@@ -180,7 +180,7 @@ class PryAddEditPresentationComponent extends SubscriptionnerDirective {
180
180
  : this.selectedPresentation$.value?.metadata ?? [];
181
181
  }
182
182
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PryAddEditPresentationComponent, deps: [{ token: i1.Store }, { token: i3.Router, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
183
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: PryAddEditPresentationComponent, selector: "pry-add-edit-presentation", inputs: { edition: "edition", editionStartUrl: "editionStartUrl", selectedPresentation: "selectedPresentation", mode: "mode" }, outputs: { goBack: "goBack" }, usesInheritance: true, ngImport: i0, template: "<div class=\"o-manifest-layout\">\n <div class=\"o-manifest-layout__toolbox\">\n <button class=\"a-btn a-btn--secondary\" type=\"button\" (click)=\"close()\">\n {{ '@pry.toolbox.manifest.close' | i18n }}\n </button>\n <button class=\"a-btn a-btn--primary\" type=\"button\" (click)=\"save()\" [disabled]=\"form.invalid\">\n {{ '@pry.toolbox.manifest.check' | i18n }}\n </button>\n </div>\n <div class=\"o-manifest-layout__content--presentation\">\n <h1 class=\"a-h1\">{{ '@pry.presentation.add' + '.pageTitle' | i18n }}</h1>\n <div class=\"o-presentation-form-wrapper\">\n <form [formGroup]=\"form\" class=\"o-presentation-form\">\n <div class=\"m-form-label-field -width-full\">\n <label class=\"a-label\" for=\"presentation_name\">{{ '@pry.presentation.form.name' | i18n }}</label>\n <input\n type=\"text\"\n id=\"presentation_name\"\n formControlName=\"name\"\n placeholder=\"{{ '@pry.presentation.form.name' | i18n }}\"\n class=\"a-form-field\"\n maxlength=\"50\"\n required\n />\n <label\n for=\"presentation_name\"\n *ngIf=\"form.get('name')?.touched && form.get('name')?.hasError('required')\"\n class=\"a-label a-label--help -error\"\n >\n {{ '@pry.presentation.required' | i18n }}\n </label>\n <label\n for=\"presentation_name\"\n *ngIf=\"form.get('name')?.hasError('maxlength')\"\n class=\"a-label a-label--help -error\"\n >\n {{ '@pry.presentation.maxLength' | i18n : { len: '50' } }}\n </label>\n </div>\n <div class=\"m-form-label-field -width-full\">\n <label class=\"a-label\" for=\"presentation_description\">{{\n '@pry.presentation.form.description' | i18n\n }}</label>\n <textarea\n formControlName=\"description\"\n id=\"presentation_description\"\n name=\"description\"\n cols=\"30\"\n rows=\"5\"\n maxlength=\"200\"\n placeholder=\"{{ '@pry.presentation.form.description' | i18n }}\"\n class=\"a-form-field\"\n ></textarea>\n <label\n for=\"presentation_description\"\n *ngIf=\"form.get('description')?.hasError('maxlength')\"\n class=\"a-label a-label--help -error\"\n >\n {{ '@pry.presentation.maxLength' | i18n : { len: '200' } }}\n </label>\n </div>\n <div class=\"m-form-label-field -width-full\" *ngIf=\"mode === 'theme'\">\n <label class=\"a-label\" for=\"presentation_theme\">{{ '@pry.presentation.form.theme' | i18n }}</label>\n <pry-select\n id=\"presentation_theme\"\n [items]=\"possibleThemes\"\n formControlName=\"theme\"\n [clearable]=\"true\"\n ></pry-select>\n </div>\n <div class=\"m-form-label-field -width-full\">\n <label class=\"a-label\" for=\"presentation_image\">{{ '@pry.presentation.form.image' | i18n }}</label>\n <div class=\"o-file-input\">\n <pry-select-image\n id=\"presentation_image\"\n (changed)=\"image = $event\"\n [iconUrl]=\"image\"\n [mode]=\"type\"\n ></pry-select-image>\n </div>\n </div>\n <div class=\"m-form-label-field -width-full m-form-label-field--inline\">\n <label class=\"a-label\">{{ '@pry.presentation.form.grid' | i18n }}</label>\n <span class=\"a-label\">{{ '@pry.toolbox.layout.' + this.chosenLayout | i18n }}</span>\n <pry-select-grid-layout *ngIf=\"!edition\"></pry-select-grid-layout>\n </div>\n </form>\n <ng-container *ngIf=\"mode === 'meta'\">\n <div class=\"o-presentation__metadata-editor\" *ngIf=\"selectedPresentation$ | async as selectedPresentation\">\n <pry-metadata-editor\n [targetId]=\"selectedPresentation.id\"\n [isModification]=\"true\"\n [metadata]=\"selectedPresentation.metadata ?? []\"\n (removeMeta)=\"removeMetadata($event)\"\n (addMeta)=\"addMetadata($event)\"\n [type]=\"'meta'\"\n ></pry-metadata-editor>\n </div>\n </ng-container>\n </div>\n <button\n class=\"a-btn a-btn--primary\"\n (click)=\"configureDashboard(selectedPresentation$.value!)\"\n [disabled]=\"form.invalid\"\n >\n {{ '@pry.presentation.configuration' | i18n }}\n </button>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: i4.PrySelectImageComponent, selector: "pry-select-image", inputs: ["iconUrl", "size", "mode"], outputs: ["toggled", "changed"] }, { kind: "directive", type: i4$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i4$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i4$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.PrySelectComponent, selector: "pry-select", inputs: ["items", "clearable", "multiple", "closeOnSelect", "placeholder", "isForm", "required", "name", "readonly", "autocomplete", "alwaysShowAutosuggestedValues", "externalAutocompleteService", "bindValue", "bindLabel", "iconSize", "bindIcon", "template", "i18nPrefix", "bindClasses", "loading", "elementRef"], outputs: ["searched", "cleared"] }, { kind: "component", type: i5.SelectGridLayoutComponent, selector: "pry-select-grid-layout" }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i7.PryMetadataEditorComponent, selector: "pry-metadata-editor", inputs: ["isModification", "targetId", "type", "metadata"], outputs: ["addMeta", "removeMeta"] }, { kind: "pipe", type: i4.I18nPipe, name: "i18n" }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }] }); }
183
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: PryAddEditPresentationComponent, selector: "pry-add-edit-presentation", inputs: { edition: "edition", editionStartUrl: "editionStartUrl", selectedPresentation: "selectedPresentation", mode: "mode" }, outputs: { goBack: "goBack" }, usesInheritance: true, ngImport: i0, template: "<div class=\"o-manifest-layout\">\n <div class=\"o-manifest-layout__toolbox\">\n <button class=\"a-btn a-btn--secondary\" type=\"button\" (click)=\"close()\">\n {{ '@pry.toolbox.manifest.close' | i18n }}\n </button>\n <button class=\"a-btn a-btn--primary\" type=\"button\" (click)=\"save()\" [disabled]=\"form.invalid\">\n {{ '@pry.toolbox.manifest.check' | i18n }}\n </button>\n </div>\n <div class=\"o-manifest-layout__content--presentation\">\n <h1 class=\"a-h1\">{{ '@pry.presentation.add' + '.pageTitle' | i18n }}</h1>\n <div class=\"o-presentation-form-wrapper\">\n <form [formGroup]=\"form\" class=\"o-presentation-form\">\n <div class=\"m-form-label-field -width-full\">\n <label class=\"a-label\" for=\"presentation_name\">{{ '@pry.presentation.form.name' | i18n }}</label>\n <input\n type=\"text\"\n id=\"presentation_name\"\n formControlName=\"name\"\n placeholder=\"{{ '@pry.presentation.form.name' | i18n }}\"\n class=\"a-form-field\"\n maxlength=\"50\"\n required\n />\n <label\n for=\"presentation_name\"\n *ngIf=\"form.get('name')?.touched && form.get('name')?.hasError('required')\"\n class=\"a-label a-label--help -error\"\n >\n {{ '@pry.presentation.required' | i18n }}\n </label>\n <label\n for=\"presentation_name\"\n *ngIf=\"form.get('name')?.hasError('maxlength')\"\n class=\"a-label a-label--help -error\"\n >\n {{ '@pry.presentation.maxLength' | i18n : { len: '50' } }}\n </label>\n </div>\n <div class=\"m-form-label-field -width-full\">\n <label class=\"a-label\" for=\"presentation_description\">{{\n '@pry.presentation.form.description' | i18n\n }}</label>\n <textarea\n formControlName=\"description\"\n id=\"presentation_description\"\n name=\"description\"\n cols=\"30\"\n rows=\"5\"\n maxlength=\"200\"\n placeholder=\"{{ '@pry.presentation.form.description' | i18n }}\"\n class=\"a-form-field\"\n ></textarea>\n <label\n for=\"presentation_description\"\n *ngIf=\"form.get('description')?.hasError('maxlength')\"\n class=\"a-label a-label--help -error\"\n >\n {{ '@pry.presentation.maxLength' | i18n : { len: '200' } }}\n </label>\n </div>\n <div class=\"m-form-label-field -width-full\" *ngIf=\"mode === 'theme'\">\n <label class=\"a-label\" for=\"presentation_theme\">{{ '@pry.presentation.form.theme' | i18n }}</label>\n <pry-select\n id=\"presentation_theme\"\n [items]=\"possibleThemes\"\n formControlName=\"theme\"\n [clearable]=\"true\"\n ></pry-select>\n </div>\n <div class=\"m-form-label-field -width-full\">\n <label class=\"a-label\" for=\"presentation_image\">{{ '@pry.presentation.form.image' | i18n }}</label>\n <div class=\"o-file-input\">\n <pry-select-image\n id=\"presentation_image\"\n (changed)=\"image = $event\"\n [iconUrl]=\"image\"\n [mode]=\"type\"\n ></pry-select-image>\n </div>\n </div>\n <div class=\"m-form-label-field -width-full m-form-label-field--inline\">\n <label class=\"a-label\">{{ '@pry.presentation.form.grid' | i18n }}</label>\n <span class=\"a-label\">{{ '@pry.toolbox.layout.' + this.chosenLayout | i18n }}</span>\n <pry-select-grid-layout *ngIf=\"!edition\"></pry-select-grid-layout>\n </div>\n </form>\n <ng-container *ngIf=\"mode === 'meta'\">\n <div class=\"o-presentation__metadata-editor\" *ngIf=\"selectedPresentation$ | async as selectedPresentation\">\n <pry-metadata-editor\n [targetId]=\"selectedPresentation.id\"\n [isModification]=\"true\"\n [metadata]=\"selectedPresentation.metadata ?? []\"\n (removeMeta)=\"removeMetadata($event)\"\n (addMeta)=\"addMetadata($event)\"\n [type]=\"'meta'\"\n ></pry-metadata-editor>\n </div>\n </ng-container>\n </div>\n <button\n class=\"a-btn a-btn--primary\"\n (click)=\"configureDashboard(selectedPresentation$.value!)\"\n [disabled]=\"form.invalid\"\n >\n {{ '@pry.presentation.configuration' | i18n }}\n </button>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: i4.PrySelectImageComponent, selector: "pry-select-image", inputs: ["iconUrl", "size", "mode"], outputs: ["toggled", "changed"] }, { kind: "directive", type: i4$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i4$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i4$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.PrySelectComponent, selector: "pry-select", inputs: ["items", "clearable", "multiple", "closeOnSelect", "placeholder", "isForm", "required", "name", "readonly", "autocomplete", "alwaysShowAutosuggestedValues", "externalAutocompleteService", "bindValue", "bindLabel", "iconSize", "bindIcon", "template", "i18nPrefix", "bindClasses", "loading", "elementRef"], outputs: ["searched", "cleared", "clicked"] }, { kind: "component", type: i5.SelectGridLayoutComponent, selector: "pry-select-grid-layout" }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i7.PryMetadataEditorComponent, selector: "pry-metadata-editor", inputs: ["isModification", "targetId", "type", "metadata"], outputs: ["addMeta", "removeMeta"] }, { kind: "pipe", type: i4.I18nPipe, name: "i18n" }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }] }); }
184
184
  }
185
185
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PryAddEditPresentationComponent, decorators: [{
186
186
  type: Component,