@provoly/dashboard 0.14.4 → 0.14.6

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/admin/admin.module.d.ts +2 -1
  2. package/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.d.ts +5 -2
  3. package/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.d.ts +7 -3
  4. package/admin/i18n/en.translations.d.ts +15 -0
  5. package/admin/i18n/fr.translations.d.ts +15 -0
  6. package/esm2022/admin/admin.module.mjs +8 -4
  7. package/esm2022/admin/components/admin-classes/admin-classes-form/admin-classes-form.component.mjs +3 -3
  8. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +19 -14
  9. package/esm2022/admin/components/admin-dataset/shared/admin-form-dataset/admin-form-dataset.component.mjs +3 -5
  10. package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +23 -12
  11. package/esm2022/admin/i18n/en.translations.mjs +17 -2
  12. package/esm2022/admin/i18n/fr.translations.mjs +19 -4
  13. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +4 -3
  14. package/esm2022/import/components/import.component.mjs +12 -5
  15. package/esm2022/import/i18n/en.translations.mjs +3 -2
  16. package/esm2022/import/i18n/fr.translations.mjs +3 -2
  17. package/esm2022/import/import.module.mjs +7 -4
  18. package/esm2022/import/store/import.actions.mjs +1 -1
  19. package/esm2022/import/store/import.effects.mjs +2 -2
  20. package/esm2022/import/store/import.service.mjs +3 -2
  21. package/esm2022/lib/core/components/translate-id/translate-id.pipe.mjs +9 -9
  22. package/esm2022/lib/core/i18n/en.translations.mjs +2 -1
  23. package/esm2022/lib/core/i18n/fr.translations.mjs +2 -1
  24. package/esm2022/lib/core/model/admin-api.model.mjs +66 -14
  25. package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
  26. package/esm2022/lib/core/store/field/field.interface.mjs +10 -1
  27. package/esm2022/lib/core/symbol/symbol.service.mjs +7 -3
  28. package/esm2022/lib/core/toolbox/toolbox-manifest.service.mjs +17 -1
  29. package/esm2022/lib/core/toolbox/toolbox-menu.service.mjs +2 -1
  30. package/esm2022/lib/dashboard/action-bus/service/bus.service.mjs +1 -1
  31. package/esm2022/lib/dashboard/components/dashboard.component.mjs +5 -5
  32. package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +9 -3
  33. package/esm2022/pipeline/components/pipeline-list/pipeline-list.component.mjs +25 -13
  34. package/esm2022/pipeline/pipeline.module.mjs +8 -4
  35. package/esm2022/supervision/store/supervision.reducer.mjs +2 -7
  36. package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +34 -3
  37. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +72 -16
  38. package/esm2022/widgets/widget-map/i18n/en.translations.mjs +3 -2
  39. package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +3 -2
  40. package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +14 -8
  41. package/fesm2022/provoly-dashboard-admin.mjs +79 -31
  42. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  43. package/fesm2022/provoly-dashboard-dataset.mjs +3 -2
  44. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  45. package/fesm2022/provoly-dashboard-import.mjs +23 -10
  46. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  47. package/fesm2022/provoly-dashboard-pipeline.mjs +27 -11
  48. package/fesm2022/provoly-dashboard-pipeline.mjs.map +1 -1
  49. package/fesm2022/provoly-dashboard-supervision.mjs +1 -6
  50. package/fesm2022/provoly-dashboard-supervision.mjs.map +1 -1
  51. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +540 -446
  52. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  53. package/fesm2022/provoly-dashboard.mjs +174 -85
  54. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  55. package/import/components/import.component.d.ts +1 -0
  56. package/import/i18n/en.translations.d.ts +1 -0
  57. package/import/i18n/fr.translations.d.ts +1 -0
  58. package/import/import.module.d.ts +2 -1
  59. package/import/store/import.actions.d.ts +2 -0
  60. package/import/store/import.service.d.ts +1 -1
  61. package/lib/core/components/translate-id/translate-id.pipe.d.ts +1 -1
  62. package/lib/core/i18n/en.translations.d.ts +1 -0
  63. package/lib/core/i18n/fr.translations.d.ts +1 -0
  64. package/lib/core/model/admin-api.model.d.ts +1 -0
  65. package/lib/core/model/widget-map-manifest.interface.d.ts +11 -1
  66. package/lib/core/store/field/field.interface.d.ts +1 -0
  67. package/lib/core/symbol/symbol.service.d.ts +1 -1
  68. package/lib/dashboard/components/dashboard.component.d.ts +1 -1
  69. package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +3 -1
  70. package/package.json +42 -42
  71. package/pipeline/components/pipeline-list/pipeline-list.component.d.ts +1 -0
  72. package/pipeline/pipeline.module.d.ts +2 -1
  73. package/schematics/migration.json +5 -0
  74. package/schematics/ng-update/utils/replaceStrings.function.d.ts +7 -0
  75. package/schematics/ng-update/utils/replaceStrings.function.js +15 -0
  76. package/schematics/ng-update/utils/replaceStrings.function.js.map +1 -0
  77. package/schematics/ng-update/version-0-13/index.spec.js +11 -0
  78. package/schematics/ng-update/version-0-13/index.spec.js.map +1 -1
  79. package/schematics/ng-update/version-0-14/index.d.ts +2 -0
  80. package/schematics/ng-update/version-0-14/index.js +49 -0
  81. package/schematics/ng-update/version-0-14/index.js.map +1 -0
  82. package/schematics/ng-update/version-0-14/index.spec.d.ts +1 -0
  83. package/schematics/ng-update/version-0-14/index.spec.js +52 -0
  84. package/schematics/ng-update/version-0-14/index.spec.js.map +1 -0
  85. package/styles/components/_m-context-menu.scss +4 -0
  86. package/styles/components/_o-pry-admin-classes-customize.scss +48 -0
  87. package/widgets/widget-map/component/widget-map-layer.service.d.ts +6 -1
  88. package/widgets/widget-map/component/widget-map.component.d.ts +4 -2
  89. package/widgets/widget-map/i18n/en.translations.d.ts +1 -0
  90. package/widgets/widget-map/i18n/fr.translations.d.ts +1 -0
  91. package/widgets/widget-map/utils/widget-map.utils.d.ts +2 -5
@@ -11,6 +11,7 @@ export declare class PryImportComponent implements OnDestroy {
11
11
  datasetSelected?: string;
12
12
  selectedFileType: FileExtension;
13
13
  loading$: Observable<boolean>;
14
+ normalizeGeoShape: boolean;
14
15
  fileTypes: {
15
16
  label: string;
16
17
  value: FileExtension;
@@ -24,6 +24,7 @@ export declare const enTranslations: {
24
24
  CAST: string;
25
25
  ELASTIC_SEARCH: string;
26
26
  };
27
+ normalize: string;
27
28
  };
28
29
  };
29
30
  };
@@ -25,6 +25,7 @@ export declare const frTranslations: {
25
25
  CAST: string;
26
26
  ELASTIC_SEARCH: string;
27
27
  };
28
+ normalize: string;
28
29
  };
29
30
  };
30
31
  };
@@ -8,10 +8,11 @@ import * as i5 from "@angular/forms";
8
8
  import * as i6 from "./import-routing.module";
9
9
  import * as i7 from "@ngrx/store";
10
10
  import * as i8 from "@ngrx/effects";
11
+ import * as i9 from "@provoly/dashboard/components/checkbox";
11
12
  export declare class PryImportModule {
12
13
  private pryTranslateService;
13
14
  constructor(pryTranslateService: PryI18nService);
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<PryImportModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryImportModule, [typeof i1.PryImportComponent, typeof i2.PryImportCssComponent], [typeof i3.PryCoreModule, typeof i3.PrySelectModule, typeof i3.PryI18nModule, typeof i4.CommonModule, typeof i3.PryIconModule, typeof i5.FormsModule, typeof i6.PryImportRoutingModule, typeof i7.StoreFeatureModule, typeof i8.EffectsFeatureModule], [typeof i1.PryImportComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryImportModule, [typeof i1.PryImportComponent, typeof i2.PryImportCssComponent], [typeof i3.PryCoreModule, typeof i3.PrySelectModule, typeof i3.PryI18nModule, typeof i4.CommonModule, typeof i3.PryIconModule, typeof i5.FormsModule, typeof i6.PryImportRoutingModule, typeof i7.StoreFeatureModule, typeof i8.EffectsFeatureModule, typeof i9.PryCheckboxModule], [typeof i1.PryImportComponent]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<PryImportModule>;
17
18
  }
@@ -4,10 +4,12 @@ export declare const ImportActions: {
4
4
  file: File;
5
5
  dataset: string;
6
6
  fileType: string;
7
+ normalizeGeo?: boolean | undefined;
7
8
  }) => {
8
9
  file: File;
9
10
  dataset: string;
10
11
  fileType: string;
12
+ normalizeGeo?: boolean | undefined;
11
13
  } & import("@ngrx/store/src/models").TypedAction<"[Import] import data">>;
12
14
  uploadSuccess: import("@ngrx/store").ActionCreator<"[Import] import data successful", (props: {
13
15
  uploadedDataset: Partial<DatasetVersion>;
@@ -6,7 +6,7 @@ export declare class ImportService {
6
6
  private httpClient;
7
7
  private store;
8
8
  constructor(httpClient: HttpClient, store: Store<any>);
9
- upload(file: File, datasetId: string, fileType: string): import("rxjs").Observable<Partial<DatasetVersion>>;
9
+ upload(file: File, datasetId: string, fileType: string, normalizeGeo?: boolean): import("rxjs").Observable<Partial<DatasetVersion>>;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ImportService, never>;
11
11
  static ɵprov: i0.ɵɵInjectableDeclaration<ImportService>;
12
12
  }
@@ -14,7 +14,7 @@ export declare class TranslateIdPipe implements PipeTransform {
14
14
  private imageService;
15
15
  private symbolService;
16
16
  constructor(store: Store<any>, translateService: PryI18nService, imageService: ImageService, symbolService: SymbolService);
17
- transform(value: string | string[], ...args: unknown[]): Observable<string | string[] | SafeUrl>;
17
+ transform(value: string | string[], ...args: unknown[]): Observable<string | string[] | SafeUrl | null>;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<TranslateIdPipe, never>;
19
19
  static ɵpipe: i0.ɵɵPipeDeclaration<TranslateIdPipe, "translateId", false>;
20
20
  }
@@ -90,6 +90,7 @@ export declare const enTranslations: {
90
90
  heatmap: string;
91
91
  bubblemap: string;
92
92
  markermap: string;
93
+ simplemap: string;
93
94
  map: string;
94
95
  table: string;
95
96
  detail: string;
@@ -90,6 +90,7 @@ export declare const frTranslations: {
90
90
  heatmap: string;
91
91
  bubblemap: string;
92
92
  markermap: string;
93
+ simplemap: string;
93
94
  map: string;
94
95
  table: string;
95
96
  detail: string;
@@ -56,6 +56,7 @@ export interface AttributeExtended {
56
56
  export interface FieldOption {
57
57
  varType: FieldType;
58
58
  translation: string;
59
+ description: string;
59
60
  }
60
61
  export declare const FIELD_OPTIONS: FieldOption[];
61
62
  export interface MetadataUser {
@@ -13,8 +13,10 @@ export interface MapWidgetOptions {
13
13
  attributions?: boolean;
14
14
  tooltipMode?: TooltipMode;
15
15
  singleLayer?: boolean;
16
+ ignoreAutoLayer?: string[];
17
+ automaticLayers?: boolean;
16
18
  }
17
- export type MapWidgetLayerOptions = MapWidgetHeatMapLayerOptions | MapWidgetMarkerLayerOptions | MapWidgetBubbleLayerOptions | MapWidgetRelationLayerOptions | MapWMSLayerLayerOptions | MapFeatureLayerOptions | MapVectorTileLayerOptions | MapRasterTileLayerOptions | MapGeoServerLayerOptions | MapWMTSLayerLayerOptions | MapWidgetGeometryLayerOptions;
19
+ export type MapWidgetLayerOptions = MapWidgetHeatMapLayerOptions | MapWidgetMarkerLayerOptions | MapWidgetBubbleLayerOptions | MapWidgetRelationLayerOptions | MapWMSLayerLayerOptions | MapFeatureLayerOptions | MapVectorTileLayerOptions | MapRasterTileLayerOptions | MapGeoServerLayerOptions | MapAutoLayerOptions | MapWMTSLayerLayerOptions | MapWidgetGeometryLayerOptions;
18
20
  export interface BaseWidgetMapLayerOptions {
19
21
  type: string;
20
22
  attribution?: string;
@@ -92,6 +94,14 @@ export interface MapGeoServerLayerOptions extends BaseWidgetMapLayerOptions {
92
94
  namespace: string;
93
95
  name: string;
94
96
  }
97
+ export interface MapAutoLayerOptions extends BaseWidgetMapLayerOptions {
98
+ type: 'auto';
99
+ oClass: string;
100
+ key: string;
101
+ subType: string;
102
+ attribute: string;
103
+ classes?: string[];
104
+ }
95
105
  export declare enum TooltipMode {
96
106
  CLICK = "click",
97
107
  NONE = "none"
@@ -21,3 +21,4 @@ export interface Field {
21
21
  name: string;
22
22
  type: FieldType;
23
23
  }
24
+ export declare const GeometricFieldTypes: string[];
@@ -30,7 +30,7 @@ export declare class SymbolService {
30
30
  recursiveRuleMatches(definition: IconOptions[]): string[];
31
31
  private generateImageForRuleMatch;
32
32
  getSymbol(item: Item, bordered?: boolean): Promise<HTMLCanvasElement>;
33
- getSymbolOfClass(id: string): Promise<SafeUrl>;
33
+ getSymbolOfClass(id: string, noDefault?: boolean): Promise<SafeUrl | null>;
34
34
  downloadAsUrl(url: string): Promise<string>;
35
35
  getSymbolAsIconStyle(item: Item, bordered?: boolean): Promise<Style>;
36
36
  cache: {
@@ -2,11 +2,11 @@ import { Overlay } from '@angular/cdk/overlay';
2
2
  import { AfterViewInit, ElementRef, EventEmitter, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { Store } from '@ngrx/store';
4
4
  import { BehaviorSubject, Observable } from 'rxjs';
5
+ import { DisplayOptions } from '../../core/model/display-options.interface';
5
6
  import { DashboardGridLayout, DashboardManifest, WidgetLayout, WidgetManifest } from '../../core/model/manifest.interface';
6
7
  import { DashboardCellParams } from '../store/dashboard.actions';
7
8
  import { SubscriptionnerDirective } from './subscriptionner.directive';
8
9
  import { BaseWidgetComponent } from './widgets/base-widget.component';
9
- import { DisplayOptions } from '../../core/model/display-options.interface';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare const MIME_TYPE_WIDGET_MANIFEST = "application/widget-manifest";
12
12
  export declare const MIME_TYPE_WIDGET_TYPE = "application/widget-type-";
@@ -4,7 +4,7 @@ import { Store } from '@ngrx/store';
4
4
  import { BehaviorSubject, Observable, Subscription } from 'rxjs';
5
5
  import { DashboardGridLayout, DashboardManifest, WidgetManifest } from '../../../../core/model/manifest.interface';
6
6
  import { Widget } from '../../../../core/model/widget.interface';
7
- import { DataSource } from '../../../../core/store/data-source/data-source.model';
7
+ import { Dataset, DataSource, NamedQuery } from '../../../../core/store/data-source/data-source.model';
8
8
  import { LibraryTypes } from '../../../../core/store/image/image.service';
9
9
  import { ToolboxMenuService } from '../../../../core/toolbox/toolbox-menu.service';
10
10
  import { SubscriptionnerDirective } from '../../subscriptionner.directive';
@@ -99,6 +99,8 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective {
99
99
  focusInputCatalog(): void;
100
100
  disableValidation(): void;
101
101
  datasourcesChanged($event: DataSource[]): void;
102
+ isGeo(ds: NamedQuery | Dataset): boolean;
103
+ protected readonly DEFAULT_ICON_URL = "/assets/svgs/default.svg";
102
104
  static ɵfac: i0.ɵɵFactoryDeclaration<PryWidgetHeaderComponent, never>;
103
105
  static ɵcmp: i0.ɵɵComponentDeclaration<PryWidgetHeaderComponent, "pry-widget-header", never, { "manifest": { "alias": "manifest"; "required": false; }; "additionalOptions": { "alias": "additionalOptions"; "required": false; }; "headerOptions": { "alias": "headerOptions"; "required": false; }; "displayCount": { "alias": "displayCount"; "required": false; }; "datasourceIds": { "alias": "datasourceIds"; "required": false; }; "widgetIndex": { "alias": "widgetIndex"; "required": false; }; }, { "manifestModified": "manifestModified"; }, never, ["*"], false, never>;
104
106
  }
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.14.4",
3
+ "version": "0.14.6",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
- "@angular/common": "15.x || 16.x",
7
6
  "@angular/cdk": "14.x || 15.x || 16.x",
7
+ "@angular/common": "15.x || 16.x",
8
8
  "@angular/core": "15.x || 16.x",
9
- "@angular/router": "15.x || 16.x",
10
9
  "@angular/platform-browser": "15.x || 16.x",
10
+ "@angular/router": "15.x || 16.x",
11
+ "@ng-select/ng-select": "9.x || 10.x || 11.x",
11
12
  "@ngrx/effects": "16.x",
12
13
  "@ngrx/entity": "16.x",
13
14
  "@ngrx/store": "16.x",
14
- "@ng-select/ng-select": "9.x || 10.x || 11.x",
15
- "uuid": "^8.3.2 || ^9.0.0",
16
- "fast-deep-equal": "3.1.3",
17
15
  "buffer": "^6.0.0",
18
16
  "css-element-queries": "^1.2.3",
19
17
  "d3-drag": "^3.0.0",
20
18
  "d3-force": "^3.0.0",
21
19
  "d3-selection": "^3.0.0",
20
+ "fast-deep-equal": "3.1.3",
22
21
  "litegraph.js": "^0.7.10",
23
22
  "ol": "^7.0.0",
24
23
  "ol-mapbox-style": "^10.6.0",
25
24
  "proj4": "^2.9.0",
26
25
  "rxjs": "^7.4.0",
26
+ "uuid": "^8.3.2 || ^9.0.0",
27
27
  "vega": "^5.21.0",
28
28
  "vega-embed": "^6.20.5",
29
29
  "vega-lite": "^5.2.0",
@@ -86,18 +86,18 @@
86
86
  "esm": "./esm2022/admin/provoly-dashboard-admin.mjs",
87
87
  "default": "./fesm2022/provoly-dashboard-admin.mjs"
88
88
  },
89
- "./dataset": {
90
- "types": "./dataset/index.d.ts",
91
- "esm2022": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
92
- "esm": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
93
- "default": "./fesm2022/provoly-dashboard-dataset.mjs"
94
- },
95
89
  "./import": {
96
90
  "types": "./import/index.d.ts",
97
91
  "esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
98
92
  "esm": "./esm2022/import/provoly-dashboard-import.mjs",
99
93
  "default": "./fesm2022/provoly-dashboard-import.mjs"
100
94
  },
95
+ "./dataset": {
96
+ "types": "./dataset/index.d.ts",
97
+ "esm2022": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
98
+ "esm": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
99
+ "default": "./fesm2022/provoly-dashboard-dataset.mjs"
100
+ },
101
101
  "./notification": {
102
102
  "types": "./notification/index.d.ts",
103
103
  "esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
@@ -140,6 +140,30 @@
140
140
  "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
141
141
  "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
142
142
  },
143
+ "./filters/date": {
144
+ "types": "./filters/date/index.d.ts",
145
+ "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
146
+ "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
147
+ "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
148
+ },
149
+ "./filters/list": {
150
+ "types": "./filters/list/index.d.ts",
151
+ "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
152
+ "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
153
+ "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
154
+ },
155
+ "./filters/number": {
156
+ "types": "./filters/number/index.d.ts",
157
+ "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
158
+ "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
159
+ "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
160
+ },
161
+ "./filters/text": {
162
+ "types": "./filters/text/index.d.ts",
163
+ "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
164
+ "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
165
+ "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
166
+ },
143
167
  "./components/card": {
144
168
  "types": "./components/card/index.d.ts",
145
169
  "esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
@@ -182,30 +206,6 @@
182
206
  "esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
183
207
  "default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
184
208
  },
185
- "./filters/date": {
186
- "types": "./filters/date/index.d.ts",
187
- "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
188
- "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
189
- "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
190
- },
191
- "./filters/list": {
192
- "types": "./filters/list/index.d.ts",
193
- "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
194
- "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
195
- "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
196
- },
197
- "./filters/number": {
198
- "types": "./filters/number/index.d.ts",
199
- "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
200
- "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
201
- "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
202
- },
203
- "./filters/text": {
204
- "types": "./filters/text/index.d.ts",
205
- "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
206
- "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
207
- "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
208
- },
209
209
  "./pipeline-components/filter": {
210
210
  "types": "./pipeline-components/filter/index.d.ts",
211
211
  "esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
@@ -218,18 +218,18 @@
218
218
  "esm": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
219
219
  "default": "./fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs"
220
220
  },
221
- "./pipeline-components/output-dataset": {
222
- "types": "./pipeline-components/output-dataset/index.d.ts",
223
- "esm2022": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.mjs",
224
- "esm": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.mjs",
225
- "default": "./fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs"
226
- },
227
221
  "./pipeline-components/noop": {
228
222
  "types": "./pipeline-components/noop/index.d.ts",
229
223
  "esm2022": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
230
224
  "esm": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
231
225
  "default": "./fesm2022/provoly-dashboard-pipeline-components-noop.mjs"
232
226
  },
227
+ "./pipeline-components/output-dataset": {
228
+ "types": "./pipeline-components/output-dataset/index.d.ts",
229
+ "esm2022": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.mjs",
230
+ "esm": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.mjs",
231
+ "default": "./fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs"
232
+ },
233
233
  "./pipeline-components/subgraph": {
234
234
  "types": "./pipeline-components/subgraph/index.d.ts",
235
235
  "esm2022": "./esm2022/pipeline-components/subgraph/provoly-dashboard-pipeline-components-subgraph.mjs",
@@ -38,6 +38,7 @@ export declare class PryPipelineListComponent {
38
38
  savePipeline(transfo: PryTransfo): void;
39
39
  disableSelectedTranso(): void;
40
40
  focusElement(element: HTMLButtonElement): void;
41
+ navigateContextMenu(button: HTMLButtonElement, nextButton: HTMLButtonElement): void;
41
42
  protected readonly ExecutionState: typeof ExecutionState;
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPipelineListComponent, never>;
43
44
  static ɵcmp: i0.ɵɵComponentDeclaration<PryPipelineListComponent, "pry-pipeline-list", never, {}, {}, never, never, false, never>;
@@ -11,10 +11,11 @@ import * as i8 from "@ngrx/effects";
11
11
  import * as i9 from "@angular/forms";
12
12
  import * as i10 from "@provoly/dashboard/components/sinceDate";
13
13
  import * as i11 from "@angular/cdk/overlay";
14
+ import * as i12 from "@angular/cdk/a11y";
14
15
  export declare class PryPipelineModule {
15
16
  private pryTranslateService;
16
17
  constructor(pryTranslateService: PryI18nService);
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPipelineModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryPipelineModule, [typeof i1.PryPipelineEditorComponent, typeof i2.PryPipelineCssComponent, typeof i3.PryPipelineListComponent, typeof i4.PryPipelineDetailsComponent], [typeof i5.CommonModule, typeof i6.PryCoreModule, typeof i7.StoreFeatureModule, typeof i8.EffectsFeatureModule, typeof i6.PryIconModule, typeof i6.PryI18nModule, typeof i6.PrySortModule, typeof i9.FormsModule, typeof i6.PryToggleModule, typeof i10.PrySinceDateModule, typeof i9.ReactiveFormsModule, typeof i11.OverlayModule], [typeof i1.PryPipelineEditorComponent, typeof i2.PryPipelineCssComponent, typeof i3.PryPipelineListComponent, typeof i4.PryPipelineDetailsComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryPipelineModule, [typeof i1.PryPipelineEditorComponent, typeof i2.PryPipelineCssComponent, typeof i3.PryPipelineListComponent, typeof i4.PryPipelineDetailsComponent], [typeof i5.CommonModule, typeof i6.PryCoreModule, typeof i7.StoreFeatureModule, typeof i8.EffectsFeatureModule, typeof i6.PryIconModule, typeof i6.PryI18nModule, typeof i6.PrySortModule, typeof i9.FormsModule, typeof i6.PryToggleModule, typeof i10.PrySinceDateModule, typeof i9.ReactiveFormsModule, typeof i11.OverlayModule, typeof i12.A11yModule], [typeof i1.PryPipelineEditorComponent, typeof i2.PryPipelineCssComponent, typeof i3.PryPipelineListComponent, typeof i4.PryPipelineDetailsComponent]>;
19
20
  static ɵinj: i0.ɵɵInjectorDeclaration<PryPipelineModule>;
20
21
  }
@@ -5,6 +5,11 @@
5
5
  "version": "0.13",
6
6
  "description": "Update library to version 0.13",
7
7
  "factory": "./ng-update/version-0-13/index#updateTo0_13"
8
+ },
9
+ "migration-v0.14": {
10
+ "version": "0.14",
11
+ "description": "Update library to version 0.14",
12
+ "factory": "./ng-update/version-0-14/index#updateTo0_14"
8
13
  }
9
14
  }
10
15
  }
@@ -0,0 +1,7 @@
1
+ /// <reference types="node" />
2
+ import { Tree } from '@angular-devkit/schematics';
3
+ import { Path } from '@angular-devkit/core';
4
+ export declare function replaceStrings(tree: Tree, path: Path, buffer: Buffer | null, values: {
5
+ searchValue: string | RegExp;
6
+ replaceValue: string;
7
+ }[]): void;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.replaceStrings = void 0;
4
+ function replaceStrings(tree, path, buffer, values) {
5
+ if (values.length === 0)
6
+ return;
7
+ const value = values.pop();
8
+ if (buffer)
9
+ tree.overwrite(path, buffer.toString().replace(value.searchValue, value.replaceValue));
10
+ buffer = tree.read(path);
11
+ if (buffer)
12
+ replaceStrings(tree, path, buffer, values);
13
+ }
14
+ exports.replaceStrings = replaceStrings;
15
+ //# sourceMappingURL=replaceStrings.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replaceStrings.function.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/utils/replaceStrings.function.ts"],"names":[],"mappings":";;;AAGA,SAAgB,cAAc,CAC5B,IAAU,EACV,IAAU,EACV,MAAqB,EACrB,MAAgE;IAEhE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAChC,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;IAC3B,IAAI,MAAM;QAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAM,CAAC,WAAW,EAAE,KAAM,CAAC,YAAY,CAAC,CAAC,CAAC;IACrG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,IAAI,MAAM;QAAE,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACzD,CAAC;AAXD,wCAWC"}
@@ -170,5 +170,16 @@ describe(schematicName, () => {
170
170
  expect(actual).not.toMatch(/DatasetMetadata/);
171
171
  expect(actual).toMatch(/MetadataValue/);
172
172
  }));
173
+ it(`should remove obsolete dependencies`, () => __awaiter(void 0, void 0, void 0, function* () {
174
+ if (tree.exists('/package.json')) {
175
+ yield runner.runSchematic('migration-v0.13', {}, tree);
176
+ const actual = tree.readContent('/package.json');
177
+ expect(actual).not.toMatch(/ol-layerswitcher/);
178
+ expect(actual).not.toMatch(/geojson-to-kml/);
179
+ expect(actual).not.toMatch(/jszip/);
180
+ expect(actual).not.toMatch(/shpjs/);
181
+ expect(actual).not.toMatch(/@types\/shpjs/);
182
+ }
183
+ }));
173
184
  });
174
185
  //# sourceMappingURL=index.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/version-0-13/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2DAAkD;AAClD,gEAAuF;AACvF,gDAAwB;AAExB,MAAM,aAAa,GAAG,WAAW,CAAC;AAClC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC,CAAC;IACnG,IAAI,IAAkB,CAAC;IAEvB,UAAU,CAAC,GAAS,EAAE;QACpB,IAAI,GAAG,MAAM,MAAM,CAAC,oBAAoB,CACtC,qBAAqB,EACrB,QAAQ,EACR,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,EAC1D,IAAI,sBAAY,CAAC,iBAAI,CAAC,KAAK,EAAE,CAAC,CAC/B,CAAC;IACJ,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,GAAS,EAAE;QAC1C,IAAI,CAAC,MAAM,CACT,wBAAwB,EACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIL,CACI,CAAC;QAEF,MAAM,MAAM,CAAC,YAAY,CAAC,iBAAiB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QACvD,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;QAC1D,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;QACxD,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,sCAAsC,CAAC,CAAC;QACnE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;QACpD,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAChE,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,oBAAoB,EAAE,GAAS,EAAE;QAClC,IAAI,CAAC,MAAM,CAAC,wBAAwB,EAAE,8CAA8C,CAAC,CAAC;QAEtF,MAAM,MAAM,CAAC,YAAY,CAAC,iBAAiB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QACvD,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;QAC1D,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QAC9C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/version-0-13/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2DAAkD;AAClD,gEAAuF;AACvF,gDAAwB;AAExB,MAAM,aAAa,GAAG,WAAW,CAAC;AAClC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC,CAAC;IACnG,IAAI,IAAkB,CAAC;IAEvB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M,GAAG,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;QAC1D,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QAC9C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,GAAS,EAAE;QACnD,IAAI,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE;YAChC,MAAM,MAAM,CAAC,YAAY,CAAC,iBAAiB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACvD,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;YACjD,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;YAC/C,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;YAC7C,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACpC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACpC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;SAC7C;IACH,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ export declare function updateTo0_14(): Rule;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateTo0_14 = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
+ const complete_function_1 = require("../utils/complete.function");
7
+ const replaceStrings_function_1 = require("../utils/replaceStrings.function");
8
+ function updateLegendUrlPipeUsage() {
9
+ return function (tree, context) {
10
+ tree.visit((path, entry) => {
11
+ if (path.includes('.html')) {
12
+ const buffer = tree.read(path);
13
+ if (buffer) {
14
+ tree.overwrite(path, buffer.toString().replace(/\|\s*legendUrl/g, '| legendUrl | async'));
15
+ }
16
+ }
17
+ });
18
+ return undefined;
19
+ };
20
+ }
21
+ function replaceSelectionInteractionWithInteractionManager() {
22
+ return function (tree, context) {
23
+ tree.visit((path, entry) => {
24
+ if (path.includes('.html') || path.includes('.ts')) {
25
+ const buffer = tree.read(path);
26
+ const replaceValues = [
27
+ { searchValue: /selectionInteraction(\.)+/g, replaceValue: 'interactionManager$1selectionInteraction$1' },
28
+ { searchValue: /selectionInteraction(\s)+/g, replaceValue: 'interactionManager$1' },
29
+ { searchValue: /new(\s)*SelectionInteraction/g, replaceValue: 'new$1InteractionManager' }
30
+ ];
31
+ if (buffer)
32
+ (0, replaceStrings_function_1.replaceStrings)(tree, path, buffer, replaceValues);
33
+ }
34
+ });
35
+ return tree;
36
+ };
37
+ }
38
+ function updateTo0_14() {
39
+ return (_tree, context) => {
40
+ context.addTask(new tasks_1.NodePackageInstallTask());
41
+ return (0, schematics_1.chain)([
42
+ updateLegendUrlPipeUsage(),
43
+ replaceSelectionInteractionWithInteractionManager(),
44
+ (0, complete_function_1.onMigrationComplete)('0.14', context)
45
+ ]);
46
+ };
47
+ }
48
+ exports.updateTo0_14 = updateTo0_14;
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/version-0-14/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiF;AACjF,4DAA0E;AAC1E,kEAAiE;AACjE,8EAAkE;AAElE,SAAS,wBAAwB;IAC/B,OAAO,UAAU,IAAU,EAAE,OAAyB;QACpD,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAA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AK,EAAC;YACX,wBAAwB,EAAE;YAC1B,iDAAiD,EAAE;YACnD,IAAA,uCAAmB,EAAC,MAAM,EAAE,OAAO,CAAC;SACrC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AATD,oCASC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const schematics_1 = require("@angular-devkit/schematics");
16
+ const testing_1 = require("@angular-devkit/schematics/testing");
17
+ const path_1 = __importDefault(require("path"));
18
+ const schematicName = 'ng-update';
19
+ describe(schematicName, () => {
20
+ const runner = new testing_1.SchematicTestRunner('schematics', path_1.default.join(__dirname, '../../migration.json'));
21
+ let tree;
22
+ beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
23
+ tree = yield runner.runExternalSchematic('@schematics/angular', 'ng-new', { name: 'test-project', version: '0.0.0', directory: '.' }, new testing_1.UnitTestTree(schematics_1.Tree.empty()));
24
+ }));
25
+ it(`should replace 'legendUrl' with 'legendUrl | async'`, () => __awaiter(void 0, void 0, void 0, function* () {
26
+ tree.create('/example.component.html', `<ng-container *ngIf="geoLayer | legendUrl"></ng-container>`);
27
+ yield runner.runSchematic('migration-v0.14', {}, tree);
28
+ const actual = tree.readContent('/example.component.html');
29
+ expect(actual).toMatch(/\|\s*legendUrl\s*\|\s*async"/);
30
+ expect(actual).not.toMatch(/\|\s*legendUrl"/);
31
+ }));
32
+ it(`should replace SelectionInteraction with InteractionManager`, () => __awaiter(void 0, void 0, void 0, function* () {
33
+ tree.create('/example.component.ts', `
34
+ export class ExampleComponent {
35
+ selectionInteraction = new SelectionInteraction();
36
+ constructor() {
37
+ this.selectionInteraction.methodCall()
38
+ }
39
+ }
40
+ `);
41
+ console.log(tree.readContent('/example.component.ts'));
42
+ yield runner.runSchematic('migration-v0.14', {}, tree);
43
+ const actual = tree.readContent('/example.component.ts');
44
+ expect(actual).not.toMatch(/SelectionInteraction/);
45
+ expect(actual).not.toMatch(/this.selectionInteraction./);
46
+ expect(actual).not.toMatch(/\sselectionInteraction/);
47
+ expect(actual).toMatch(/InteractionManager/);
48
+ expect(actual).toMatch(/interactionManager.selectionInteraction./);
49
+ expect(actual).toMatch(/interactionManager/);
50
+ }));
51
+ });
52
+ //# sourceMappingURL=index.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/version-0-14/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2DAAkD;AAClD,gEAAuF;AACvF,gDAAwB;AAExB,MAAM,aAAa,GAAG,WAAW,CAAC;AAClC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC,CAAC;IACnG,IAAI,IAAkB,CAAC;IAEvB,UAAU,CAAC,GAAS,EAAE;QACpB,IAAI,GAAG,MAAM,MAAM,CAAC,oBAAoB,CACtC,qBAAqB,EACrB,QAAQ,EACR,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,EAC1D,IAAI,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CAA0C,CAAC,CAAC;QACnE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC/C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -46,6 +46,10 @@
46
46
  left: 0;
47
47
  right: 0;
48
48
  }
49
+
50
+ &:disabled {
51
+ opacity: 0.4;
52
+ }
49
53
  }
50
54
  }
51
55
  }
@@ -105,6 +105,54 @@
105
105
  cursor: move;
106
106
  }
107
107
 
108
+ .description:hover:after{
109
+ cursor: pointer;
110
+ }
111
+
112
+ .description-tooltip {
113
+ position: absolute;
114
+ max-width: 50vw;
115
+ visibility: hidden;
116
+ background-color: #fff;
117
+ padding: 20px;
118
+ -webkit-box-shadow: 0 0 50px 0 rgba(0,0,0,0.3);
119
+ opacity: 0;
120
+ transition: opacity 0.5s ease;
121
+ z-index: 2;
122
+ }
123
+
124
+ .description:hover + .description-tooltip {
125
+ visibility: visible;
126
+ transition: opacity 0.2s ease;
127
+ opacity: 1;
128
+ }
129
+
130
+ .title-tooltip {
131
+ transform: translateY(4rem);
132
+ }
133
+
134
+ .title-container {
135
+ display: flex;
136
+ }
137
+
138
+ .info-icon {
139
+ position: relative;
140
+ width: 1.5rem;
141
+ height: 1.5rem;
142
+ border-radius: 50%;
143
+ background-color: #ccc;
144
+ cursor: pointer;
145
+ display: inline-flex;
146
+ justify-content: center;
147
+ align-items: center;
148
+ align-self: center;
149
+ margin-right: 1rem;
150
+ margin-left: 1rem;
151
+ }
152
+ pry-select {
153
+ flex: 1;
154
+ }
155
+
108
156
  .cdk-drag-preview {
109
157
  border-radius: toRem(4);
110
158
  box-shadow: