@provoly/dashboard 1.2.8 → 1.2.10

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 (143) hide show
  1. package/admin/admin.module.d.ts +14 -14
  2. package/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.d.ts +5 -16
  3. package/admin/components/admin-dataset/{shared/admin-form-dataset → admin-form-dataset}/admin-form-dataset.component.d.ts +8 -7
  4. package/admin/components/admin-dataset/store/admin-dataset.actions.d.ts +23 -18
  5. package/admin/components/admin-dataset/store/admin-dataset.effects.d.ts +9 -6
  6. package/admin/components/admin-dataset/store/admin-dataset.service.d.ts +2 -1
  7. package/admin/components/shared/add-category-modal/add-category-modal.component.d.ts +39 -0
  8. package/admin/i18n/en.translations.d.ts +23 -8
  9. package/admin/i18n/fr.translations.d.ts +23 -8
  10. package/dataset/components/dataset.component.d.ts +3 -7
  11. package/dataset/dataset.module.d.ts +7 -9
  12. package/dataset/i18n/en.translations.d.ts +8 -0
  13. package/dataset/i18n/fr.translations.d.ts +8 -0
  14. package/dataset/public-api.d.ts +0 -1
  15. package/dataset/style/_o-pry-dataset.scss +5 -42
  16. package/esm2022/admin/admin.module.mjs +7 -8
  17. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +22 -53
  18. package/esm2022/admin/components/admin-dataset/admin-edit-dataset/admin-edit-dataset.component.mjs +1 -1
  19. package/esm2022/admin/components/admin-dataset/admin-form-dataset/admin-form-dataset.component.mjs +115 -0
  20. package/esm2022/admin/components/admin-dataset/admin-new-dataset/admin-new-dataset.component.mjs +1 -1
  21. package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +3 -3
  22. package/esm2022/admin/components/admin-dataset/store/admin-dataset.actions.mjs +11 -10
  23. package/esm2022/admin/components/admin-dataset/store/admin-dataset.effects.mjs +2 -1
  24. package/esm2022/admin/components/admin-dataset/store/admin-dataset.service.mjs +10 -4
  25. package/esm2022/admin/components/shared/add-category-modal/add-category-modal.component.mjs +73 -0
  26. package/esm2022/admin/i18n/en.translations.mjs +25 -10
  27. package/esm2022/admin/i18n/fr.translations.mjs +26 -11
  28. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +4 -5
  29. package/esm2022/dataset/components/dataset.component.mjs +8 -23
  30. package/esm2022/dataset/dataset.module.mjs +12 -13
  31. package/esm2022/dataset/i18n/en.translations.mjs +9 -1
  32. package/esm2022/dataset/i18n/fr.translations.mjs +10 -2
  33. package/esm2022/dataset/public-api.mjs +1 -2
  34. package/esm2022/dataset/style/css.component.mjs +3 -3
  35. package/esm2022/lib/core/components/chips-selector/chips-selector.component.mjs +7 -27
  36. package/esm2022/lib/core/components/chips-selector/chips-selector.module.mjs +21 -0
  37. package/esm2022/lib/core/components/select-image/select-image.component.mjs +1 -1
  38. package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +3 -3
  39. package/esm2022/lib/core/components/share/share.module.mjs +8 -12
  40. package/esm2022/lib/core/core.module.mjs +4 -8
  41. package/esm2022/lib/core/i18n/en.translations.mjs +8 -8
  42. package/esm2022/lib/core/i18n/fr.translations.mjs +9 -9
  43. package/esm2022/lib/core/pipes/get-secured-image/get-secured-image.pipe.mjs +21 -0
  44. package/esm2022/lib/core/pipes/since-date/since-date.module.mjs +18 -0
  45. package/esm2022/lib/core/pipes/since-date/since-date.pipe.mjs +55 -0
  46. package/esm2022/lib/core/pipes/translate-id/translate-id.pipe.mjs +108 -0
  47. package/esm2022/lib/core/pipes/translate-item-to-symbol/translate-item-to-symbol.pipe.mjs +23 -0
  48. package/esm2022/lib/core/public-api.mjs +7 -4
  49. package/esm2022/lib/core/store/data-source/data-source.actions.mjs +4 -2
  50. package/esm2022/lib/core/store/data-source/data-source.effects.mjs +4 -1
  51. package/esm2022/lib/core/store/data-source/data-source.model.mjs +1 -1
  52. package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +6 -2
  53. package/esm2022/lib/core/store/data-source/data-source.selectors.mjs +4 -2
  54. package/esm2022/lib/core/store/data-source/data-source.service.mjs +6 -1
  55. package/esm2022/lib/core/store/data-source/datasource-utils.mjs +22 -1
  56. package/esm2022/lib/dashboard/components/widgets/data-widget.component.mjs +2 -2
  57. package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-card/datasource-card.component.mjs +60 -0
  58. package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-list/datasource-list.component.mjs +95 -0
  59. package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +53 -48
  60. package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +6 -7
  61. package/esm2022/lib/dashboard/components/widgets/public-api.mjs +3 -1
  62. package/esm2022/lib/dashboard/dashboard.module.mjs +19 -7
  63. package/esm2022/lib/dashboard/tooltip/components/default/default.tooltip.component.mjs +2 -2
  64. package/esm2022/pipeline/components/pipeline-details/pipeline-details.component.mjs +2 -3
  65. package/esm2022/pipeline/components/pipeline-list/pipeline-list.component.mjs +2 -3
  66. package/esm2022/pipeline/pipeline.module.mjs +8 -9
  67. package/esm2022/presentation/components/presentation.component.mjs +2 -3
  68. package/esm2022/presentation/presentation.module.mjs +8 -9
  69. package/esm2022/restitution/components/restitution/restitution.component.mjs +4 -4
  70. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +2 -3
  71. package/esm2022/restitution/restitution.module.mjs +2 -3
  72. package/esm2022/restitution/style/css.component.mjs +2 -2
  73. package/fesm2022/provoly-dashboard-admin.mjs +194 -109
  74. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  75. package/fesm2022/provoly-dashboard-dataset.mjs +51 -79
  76. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  77. package/fesm2022/provoly-dashboard-pipeline.mjs +17 -19
  78. package/fesm2022/provoly-dashboard-pipeline.mjs.map +1 -1
  79. package/fesm2022/provoly-dashboard-presentation.mjs +8 -10
  80. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  81. package/fesm2022/provoly-dashboard-restitution.mjs +7 -9
  82. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  83. package/fesm2022/provoly-dashboard.mjs +3475 -3233
  84. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  85. package/lib/core/components/chips-selector/chips-selector.component.d.ts +1 -6
  86. package/lib/core/components/chips-selector/chips-selector.module.d.ts +11 -0
  87. package/lib/core/components/share/share.module.d.ts +3 -4
  88. package/lib/core/core.module.d.ts +26 -27
  89. package/lib/core/i18n/en.translations.d.ts +7 -7
  90. package/lib/core/i18n/fr.translations.d.ts +7 -7
  91. package/{components/sinceDate/sinceDate.module.d.ts → lib/core/pipes/since-date/since-date.module.d.ts} +3 -2
  92. package/{components/sinceDate/sinceDate.pipe.d.ts → lib/core/pipes/since-date/since-date.pipe.d.ts} +4 -4
  93. package/lib/core/{components → pipes}/translate-id/translate-id.pipe.d.ts +0 -2
  94. package/lib/core/public-api.d.ts +6 -3
  95. package/lib/core/store/data-source/data-source.actions.d.ts +7 -0
  96. package/lib/core/store/data-source/data-source.effects.d.ts +3 -0
  97. package/lib/core/store/data-source/data-source.model.d.ts +3 -0
  98. package/lib/core/store/data-source/data-source.reducer.d.ts +2 -0
  99. package/lib/core/store/data-source/data-source.selectors.d.ts +1 -0
  100. package/lib/core/store/data-source/data-source.service.d.ts +2 -0
  101. package/lib/core/store/data-source/datasource-utils.d.ts +4 -1
  102. package/lib/dashboard/components/widgets/datasource-selector/datasource-card/datasource-card.component.d.ts +24 -0
  103. package/lib/dashboard/components/widgets/datasource-selector/datasource-list/datasource-list.component.d.ts +35 -0
  104. package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts +19 -11
  105. package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +1 -1
  106. package/lib/dashboard/components/widgets/public-api.d.ts +2 -0
  107. package/lib/dashboard/dashboard.module.d.ts +18 -15
  108. package/package.json +13 -19
  109. package/pipeline/pipeline.module.d.ts +3 -4
  110. package/presentation/presentation.module.d.ts +7 -8
  111. package/restitution/components/restitution/restitution.component.d.ts +1 -1
  112. package/restitution/restitution.module.d.ts +1 -2
  113. package/restitution/style/_o-restitution.scss +4 -0
  114. package/styles/base/_typography.scss +4 -0
  115. package/styles/base/_utils.scss +27 -1
  116. package/styles/components/_a-btn.scss +4 -0
  117. package/styles/components/_a-chip.scss +45 -0
  118. package/styles/components/_o-datasource-selector.scss +192 -0
  119. package/styles/components/_o-modal.scss +0 -42
  120. package/styles/components/_o-widget.scss +1 -1
  121. package/styles/layout/_o-base-layout.scss +1 -7
  122. package/styles/main.scss +1 -0
  123. package/styles-theme/main-theme.scss +0 -3
  124. package/components/sinceDate/index.d.ts +0 -5
  125. package/components/sinceDate/public-api.d.ts +0 -2
  126. package/dataset/components/dataset-card/dataset-card.component.d.ts +0 -18
  127. package/dataset/style/_o-pry-dataset-card.scss +0 -85
  128. package/esm2022/admin/components/admin-dataset/shared/admin-form-dataset/admin-form-dataset.component.mjs +0 -99
  129. package/esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs +0 -5
  130. package/esm2022/components/sinceDate/public-api.mjs +0 -3
  131. package/esm2022/components/sinceDate/sinceDate.module.mjs +0 -16
  132. package/esm2022/components/sinceDate/sinceDate.pipe.mjs +0 -55
  133. package/esm2022/dataset/components/dataset-card/dataset-card.component.mjs +0 -41
  134. package/esm2022/lib/core/components/get-secured-image/get-secured-image.pipe.mjs +0 -21
  135. package/esm2022/lib/core/components/translate-id/translate-id.pipe.mjs +0 -114
  136. package/esm2022/lib/core/components/translate-item-to-symbol/translate-item-to-symbol.pipe.mjs +0 -23
  137. package/fesm2022/provoly-dashboard-components-sinceDate.mjs +0 -75
  138. package/fesm2022/provoly-dashboard-components-sinceDate.mjs.map +0 -1
  139. package/styles-theme/components-theme/_a-chip.theme.scss +0 -32
  140. package/styles-theme/components-theme/_o-pry-dataset-card.theme.scss +0 -26
  141. package/styles-theme/components-theme/_o-pry-dataset.theme.scss +0 -4
  142. /package/lib/core/{components → pipes}/get-secured-image/get-secured-image.pipe.d.ts +0 -0
  143. /package/lib/core/{components → pipes}/translate-item-to-symbol/translate-item-to-symbol.pipe.d.ts +0 -0
@@ -9,13 +9,12 @@ import * as i6 from "@provoly/dashboard";
9
9
  import * as i7 from "@ngrx/store";
10
10
  import * as i8 from "@ngrx/effects";
11
11
  import * as i9 from "@angular/forms";
12
- import * as i10 from "@provoly/dashboard/components/sinceDate";
13
- import * as i11 from "@angular/cdk/overlay";
14
- import * as i12 from "@angular/cdk/a11y";
12
+ import * as i10 from "@angular/cdk/overlay";
13
+ import * as i11 from "@angular/cdk/a11y";
15
14
  export declare class PryPipelineModule {
16
15
  private pryTranslateService;
17
16
  constructor(pryTranslateService: PryI18nService);
18
17
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPipelineModule, never>;
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]>;
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 i9.ReactiveFormsModule, typeof i10.OverlayModule, typeof i11.A11yModule, typeof i6.PrySinceDateModule], [typeof i1.PryPipelineEditorComponent, typeof i2.PryPipelineCssComponent, typeof i3.PryPipelineListComponent, typeof i4.PryPipelineDetailsComponent]>;
20
19
  static ɵinj: i0.ɵɵInjectorDeclaration<PryPipelineModule>;
21
20
  }
@@ -6,17 +6,16 @@ import * as i3 from "./components/title-presentation/title-presentation.componen
6
6
  import * as i4 from "./style/css.component";
7
7
  import * as i5 from "@provoly/dashboard";
8
8
  import * as i6 from "@angular/forms";
9
- import * as i7 from "@provoly/dashboard/components/sinceDate";
10
- import * as i8 from "@provoly/dashboard/toolbox";
11
- import * as i9 from "@provoly/dashboard/components/checkbox";
12
- import * as i10 from "@angular/common";
13
- import * as i11 from "@angular/cdk/a11y";
14
- import * as i12 from "@provoly/dashboard/components/metadata-editor";
15
- import * as i13 from "@provoly/dashboard/components/text-editor";
9
+ import * as i7 from "@provoly/dashboard/toolbox";
10
+ import * as i8 from "@provoly/dashboard/components/checkbox";
11
+ import * as i9 from "@angular/common";
12
+ import * as i10 from "@angular/cdk/a11y";
13
+ import * as i11 from "@provoly/dashboard/components/metadata-editor";
14
+ import * as i12 from "@provoly/dashboard/components/text-editor";
16
15
  export declare class PryPresentationModule {
17
16
  private pryTranslateService;
18
17
  constructor(pryTranslateService: PryI18nService);
19
18
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryPresentationModule, [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent], [typeof i5.PryIconModule, typeof i5.PryCoreModule, typeof i5.PryDashboardModule, typeof i6.ReactiveFormsModule, typeof i5.PrySelectModule, typeof i7.PrySinceDateModule, typeof i5.PryShareModule, typeof i6.FormsModule, typeof i5.PryOverlayModule, typeof i5.PryI18nModule, typeof i8.PryToolboxModule, typeof i9.PryCheckboxModule, typeof i10.CommonModule, typeof i11.A11yModule, typeof i12.PryExpandPanelModule, typeof i13.PryTextEditorModule], [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryPresentationModule, [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent], [typeof i5.PryIconModule, typeof i5.PryCoreModule, typeof i5.PryDashboardModule, typeof i6.ReactiveFormsModule, typeof i5.PrySelectModule, typeof i5.PryShareModule, typeof i6.FormsModule, typeof i5.PryOverlayModule, typeof i5.PryI18nModule, typeof i7.PryToolboxModule, typeof i8.PryCheckboxModule, typeof i9.CommonModule, typeof i10.A11yModule, typeof i11.PryExpandPanelModule, typeof i12.PryTextEditorModule, typeof i5.PrySinceDateModule], [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent]>;
21
20
  static ɵinj: i0.ɵɵInjectorDeclaration<PryPresentationModule>;
22
21
  }
@@ -40,7 +40,7 @@ export declare class PryRestitutionComponent extends SubscriptionnerDirective im
40
40
  constructor(toolboxManifestService: ToolboxManifestService, store: Store, toolboxMenuService: ToolboxMenuService);
41
41
  ngOnInit(): void;
42
42
  cancel(stepper: PryStepperComponent): void;
43
- datasourcesChanged($event: DataSource[]): void;
43
+ datasourcesChanged($event: string[]): void;
44
44
  submit(stepper: PryStepperComponent): void;
45
45
  goNext(stepper: PryStepperComponent, submit?: boolean): void;
46
46
  prev(stepper: PryStepperComponent): void;
@@ -12,11 +12,10 @@ import * as i9 from "@provoly/dashboard/components/stepper";
12
12
  import * as i10 from "@provoly/dashboard/search";
13
13
  import * as i11 from "@provoly/dashboard/components/card";
14
14
  import * as i12 from "@provoly/dashboard/components/checkbox";
15
- import * as i13 from "@provoly/dashboard/components/sinceDate";
16
15
  export declare class PryRestitutionModule {
17
16
  private pryTranslateService;
18
17
  constructor(pryTranslateService: PryI18nService);
19
18
  static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryRestitutionModule, [typeof i1.PryRestitutionListComponent, typeof i2.PryRestitutionComponent, typeof i3.PryCatalogCssComponent, typeof i4.PryRestitutionCatalogComponent, typeof i5.PryRestitutionListItemComponent], [typeof i6.CommonModule, typeof i7.PryCoreModule, typeof i7.PryIconModule, typeof i8.FormsModule, typeof i9.PryStepperModule, typeof i7.PrySelectModule, typeof i7.PryDashboardModule, typeof i7.PryShareModule, typeof i10.PrySearchModule, typeof i7.PryI18nModule, typeof i11.PryCardModule, typeof i12.PryCheckboxModule, typeof i7.PryOverlayModule, typeof i13.PrySinceDateModule], [typeof i1.PryRestitutionListComponent, typeof i2.PryRestitutionComponent, typeof i4.PryRestitutionCatalogComponent, typeof i5.PryRestitutionListItemComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryRestitutionModule, [typeof i1.PryRestitutionListComponent, typeof i2.PryRestitutionComponent, typeof i3.PryCatalogCssComponent, typeof i4.PryRestitutionCatalogComponent, typeof i5.PryRestitutionListItemComponent], [typeof i6.CommonModule, typeof i7.PryCoreModule, typeof i7.PryIconModule, typeof i8.FormsModule, typeof i9.PryStepperModule, typeof i7.PrySelectModule, typeof i7.PryDashboardModule, typeof i7.PryShareModule, typeof i10.PrySearchModule, typeof i7.PryI18nModule, typeof i11.PryCardModule, typeof i12.PryCheckboxModule, typeof i7.PryOverlayModule, typeof i7.PrySinceDateModule], [typeof i1.PryRestitutionListComponent, typeof i2.PryRestitutionComponent, typeof i4.PryRestitutionCatalogComponent, typeof i5.PryRestitutionListItemComponent]>;
21
20
  static ɵinj: i0.ɵɵInjectorDeclaration<PryRestitutionModule>;
22
21
  }
@@ -22,4 +22,8 @@
22
22
  .m-btn-group.actions {
23
23
  margin-top: auto;
24
24
  }
25
+
26
+ pry-datasource-selector {
27
+ height: calc(100% - 35px);
28
+ }
25
29
  }
@@ -23,3 +23,7 @@ h4 {
23
23
  margin: 0;
24
24
  padding-bottom: toRem(10);
25
25
  }
26
+
27
+ .-italic {
28
+ font-style: italic;
29
+ }
@@ -36,6 +36,10 @@
36
36
  }
37
37
  }
38
38
 
39
+ .u-txt-left {
40
+ text-align: left;
41
+ }
42
+
39
43
  .u-txt-center {
40
44
  text-align: center;
41
45
  }
@@ -49,14 +53,22 @@
49
53
  align-items: center;
50
54
  }
51
55
 
52
- &.-align-start{
56
+ &.-align-start {
53
57
  align-items: flex-start;
54
58
  }
55
59
 
60
+ &.-justify-start {
61
+ justify-content: flex-start;
62
+ }
63
+
56
64
  &.-justify-center {
57
65
  justify-content: center;
58
66
  }
59
67
 
68
+ &.-justify-end {
69
+ justify-content: flex-end;
70
+ }
71
+
60
72
  &.-justify-space-between {
61
73
  justify-content: space-between;
62
74
  }
@@ -69,14 +81,28 @@
69
81
  flex-direction: row;
70
82
  }
71
83
 
84
+ &.-wrap {
85
+ flex-wrap: wrap;
86
+ }
87
+
72
88
  &.-no-gap {
73
89
  gap: 0;
74
90
  }
91
+
75
92
  &.-gap-10 {
76
93
  gap: toRem(10);
77
94
  }
95
+
96
+ &.-gap-20 {
97
+ gap: toRem(20);
98
+ }
78
99
  }
79
100
 
101
+ .u-self-start {
102
+ align-self: start;
103
+ }
104
+
105
+
80
106
  .u-self-center {
81
107
  align-self: center;
82
108
  }
@@ -185,4 +185,8 @@
185
185
  &.-pad-5 {
186
186
  padding: 0 toRem(5);
187
187
  }
188
+
189
+ &.-no-padding {
190
+ padding: 0;
191
+ }
188
192
  }
@@ -1,4 +1,5 @@
1
1
  @use '../abstracts' as *;
2
+ @use '../../styles-theme/abstracts-theme/variables.theme' as *;
2
3
 
3
4
  .a-chip {
4
5
  display: flex;
@@ -8,12 +9,56 @@
8
9
  font-size: toRem(10);
9
10
  padding: toRem(2) toRem(7);
10
11
 
12
+ color: themed($theme-map, 'color', 'primary', 'contrast', 50);
13
+ background-color: themed($theme-map, 'color', 'primary', 600);
14
+
15
+ &:hover {
16
+ @include changeBgColor(
17
+ $targetBgColor: themed($theme-map, 'color', 'primary', 300),
18
+ $targetTextColor: themed($theme-map, 'color', 'primary', 600)
19
+ );
20
+ }
21
+
22
+ &--light {
23
+ background-color: themed($theme-map, 'color', 'primary', 50);
24
+ color: themed($theme-map, 'color', 'primary', 600);
25
+ border: solid 1px themed($theme-map, 'color', 'primary', 300);
26
+
27
+ &:hover {
28
+ @include changeBgColor(
29
+ $targetBgColor: themed($theme-map, 'color', 'primary', 300)
30
+ );
31
+ }
32
+ }
33
+
34
+ &--ghost {
35
+ background-color: transparent;
36
+ color: themed($theme-map, 'color', 'primary', 750);
37
+
38
+ &:hover {
39
+ @include changeBgColor(
40
+ $targetBgColor: themed($theme-map, 'color', 'primary', 300)
41
+ );
42
+ }
43
+ }
44
+
11
45
  &.-md {
12
46
  height: toRem(20);
13
47
  font-size: toRem(12);
48
+ padding: toRem(3) toRem(10);
49
+ }
50
+
51
+ &.-lg {
52
+ height: toRem(30);
53
+ font-size: toRem(16);
54
+ gap: toRem(5);
14
55
  }
15
56
 
16
57
  &.-no-wrap {
17
58
  white-space: nowrap;
18
59
  }
60
+
61
+ &.-not-found {
62
+ opacity: 0.4;
63
+ }
19
64
  }
@@ -0,0 +1,192 @@
1
+ @use '../../styles/abstracts/index' as *;
2
+ @use '../../styles-theme/abstracts-theme/variables.theme' as *;
3
+
4
+ /* Organism - datasource-selector */
5
+
6
+ .o-datasource-selector {
7
+ overflow: hidden;
8
+ height: 100%;
9
+
10
+ pry-datasource-list {
11
+ overflow: hidden;
12
+ }
13
+
14
+ &__chips {
15
+ max-height: toRem(80);
16
+ margin-bottom: toRem(40);
17
+ overflow: scroll;
18
+ }
19
+ }
20
+
21
+ .o-datasource-list {
22
+ &__header {
23
+ width: 100%;
24
+
25
+ .a-label {
26
+ font-size: toRem(16);
27
+ font-weight: 700;
28
+ }
29
+
30
+ input.a-form-field {
31
+ padding-left: toRem(60);
32
+ }
33
+
34
+ div.a-pry-select {
35
+ padding: toRem(7.5) toRem(10);
36
+ }
37
+
38
+ input.a-form-field, div.a-pry-select {
39
+ border-color: themed($theme-map, 'color', 'primary', 600);
40
+ font-size: toRem(12);
41
+ border-radius: toRem(5);
42
+ height: toRem(40);
43
+ }
44
+
45
+ input.a-form-field::placeholder, span.a-pry-select__placeholder {
46
+ color: themed($theme-map, 'color', 'primary', 500);
47
+ font-style: italic;
48
+ }
49
+ }
50
+
51
+ &__search {
52
+ flex-basis: 50%;
53
+ position: relative;
54
+
55
+ .search-icon {
56
+ position: absolute;
57
+ left: toRem(20);
58
+ bottom: toRem(10);
59
+ pointer-events: none;
60
+ color: themed($theme-map, 'color', 'primary', 600);
61
+ }
62
+ }
63
+
64
+ &__categories {
65
+ flex-basis: 50%;
66
+ }
67
+
68
+ &__content {
69
+ @extend %list-unstyled;
70
+ display: grid;
71
+ grid-template-columns: repeat(auto-fill, minmax(toRem(330), 0fr));
72
+ grid-gap: toRem(10);
73
+ column-gap: 1.5rem;
74
+ row-gap: 2rem;
75
+ padding-bottom: toRem(20);
76
+
77
+ overflow: auto;
78
+ height: calc(100% - 100px);
79
+ }
80
+ }
81
+
82
+ .o-datasource-card {
83
+ display: flex;
84
+ flex-direction: column;
85
+ margin: 0 auto;
86
+ font-size: toRem(14);
87
+ min-width: toRem(310);
88
+ height: toRem(180);
89
+
90
+ background-color: themed($theme-map, 'color', 'primary', 50);
91
+ filter: drop-shadow(0px 4px 4px rgba(17, 59, 110, 0.12));
92
+
93
+ &:hover {
94
+ background-color: themed($theme-map, 'color', 'primary', 300);
95
+ cursor: pointer;
96
+
97
+ .o-pry-datasource-card__footer {
98
+ border-top: 1px themed($theme-map, 'color', 'primary', 400) solid;
99
+
100
+ pry-icon {
101
+ visibility: visible;
102
+ opacity: 1;
103
+ }
104
+ }
105
+ }
106
+
107
+ &.-no-footer {
108
+ height: toRem(150);
109
+ }
110
+
111
+ &__title {
112
+ width: toRem(270);
113
+
114
+ &.a-tooltip[data-tooltip]:after {
115
+ top: calc(100% - 15px);
116
+ max-width: toRem(300);
117
+ word-break: break-word;
118
+ }
119
+ }
120
+
121
+ &.-is-selectable .o-datasource-card__title {
122
+ width: toRem(240);
123
+ }
124
+
125
+ .a-h4 {
126
+ color: themed($theme-map, 'color', 'primary', 600);
127
+ }
128
+
129
+ &__header {
130
+ display: flex;
131
+ gap: toRem(15);
132
+ padding: toRem(10);
133
+ max-width: toRem(330);
134
+ }
135
+
136
+ &__checkbox {
137
+ margin-left: auto;
138
+ }
139
+
140
+ &__date {
141
+ font-size: toRem(11);
142
+ }
143
+
144
+ &__description {
145
+ position: relative;
146
+ width: 100%;
147
+
148
+ &.a-tooltip[data-tooltip]:after {
149
+ width: 100%;
150
+ }
151
+ }
152
+
153
+ &__content {
154
+ flex-grow: 1;
155
+ padding: 0 toRem(15);
156
+ font-size: toRem(13);
157
+ margin-bottom: toRem(10);
158
+
159
+ .a-h3 {
160
+ font-size: toRem(14);
161
+ }
162
+
163
+ &.-date {
164
+ margin-bottom: 0;
165
+ }
166
+ }
167
+
168
+ &__categories {
169
+ max-height: toRem(20);
170
+ overflow: hidden;
171
+ }
172
+
173
+ &__footer {
174
+ display: flex;
175
+ align-items: center;
176
+ justify-content: center;
177
+
178
+ border-top: 1px themed($theme-map, 'color', 'primary', 300) solid;
179
+ border-bottom: 1px themed($theme-map, 'color', 'primary', 300) solid;
180
+
181
+ .a-btn {
182
+ margin-left: toRem(20); // needed for centering the footer text
183
+ }
184
+
185
+ pry-icon {
186
+ visibility: hidden;
187
+ opacity: 0;
188
+ transition: visibility 100ms linear , opacity 100ms linear;
189
+ margin-left: toRem(3);
190
+ }
191
+ }
192
+ }
@@ -72,46 +72,4 @@
72
72
  .m-btn-group {
73
73
  padding-top: toRem(15);
74
74
  }
75
-
76
- // Version of modal with a filter/selector OR item creator (ex. admin/classes/nouvel attribut)
77
- &--selector {
78
- .m-form-label-field.selector {
79
- position: relative;
80
- // Color layer behind field
81
- &:before {
82
- content: '';
83
- position: absolute;
84
- z-index: -1;
85
- top: toRem(-300);
86
- bottom: toRem(-25);
87
- left: toRem(-30);
88
- right: toRem(-30);
89
- }
90
- }
91
-
92
- .a-table {
93
- tbody tr td {
94
- padding: toRem(5);
95
- }
96
-
97
- .a-btn--secondary.select-it {
98
- justify-content: flex-start;
99
- width: 100%;
100
- height: 100%;
101
- padding: toRem(10) toRem(2);
102
- @include outlineOnFocus($border-radius: 2px);
103
- }
104
- }
105
-
106
- .a-p--create {
107
- margin-top: toRem(15);
108
- padding-bottom: toRem(10);
109
- line-height: toRem(21);
110
-
111
- + .a-btn {
112
- left: 50%;
113
- transform: translateX(-50%);
114
- }
115
- }
116
- }
117
75
  }
@@ -126,7 +126,7 @@
126
126
  // Resultset displayed in popup/panel
127
127
  &__choose-resultset, .active-step {
128
128
  @extend %overlay-panel-fixed-right;
129
- width: toRem(560);
129
+ width: toRem(1100);
130
130
  padding: 0 0 toRem(10) 0;
131
131
  top: toRem(12);
132
132
  height: calc(100% - 24px);
@@ -101,19 +101,13 @@
101
101
 
102
102
  &.is-open {
103
103
  overflow: hidden;
104
- width: toRem(320);
104
+ width: 30rem;
105
105
  -webkit-transition: width ease-in-out 0.6s;
106
106
  transition: width ease-in-out 0.6s;
107
107
 
108
108
  .o-base-layout__panel__content {
109
109
  display: block;
110
- }
111
-
112
- &.-model {
113
110
  width: 30rem;
114
- .o-base-layout__panel__content {
115
- width: 30rem;
116
- }
117
111
  }
118
112
  }
119
113
  }
package/styles/main.scss CHANGED
@@ -56,6 +56,7 @@
56
56
  @use 'components/o-cards-list' as *;
57
57
  @use 'components/o-dashboard' as *;
58
58
  @use 'components/o-date-picker' as *;
59
+ @use 'components/o-datasource-selector' as *;
59
60
  @use 'components/o-chips-selector' as *;
60
61
  @use 'components/o-draggable-menu' as *;
61
62
  @use 'components/o-form' as *;
@@ -4,7 +4,6 @@
4
4
  @use 'components-theme/a-badge.theme' as *;
5
5
  @use 'components-theme/a-btn.theme' as *;
6
6
  @use 'components-theme/a-checkbox.theme' as *;
7
- @use 'components-theme/a-chip.theme' as *;
8
7
  @use 'components-theme/a-expandable-value.theme' as *;
9
8
  @use 'components-theme/a-form-field.theme' as *;
10
9
  @use 'components-theme/a-icon.theme' as *;
@@ -72,8 +71,6 @@
72
71
  @use 'components-theme/o-pry-composed-condition.theme' as *;
73
72
  @use 'components-theme/o-pry-card.theme' as *;
74
73
  @use 'components-theme/o-pry-card-menu.theme' as *;
75
- @use 'components-theme/o-pry-dataset-card.theme' as *;
76
- @use 'components-theme/o-pry-dataset.theme' as *;
77
74
  @use 'components-theme/o-pry-expand-panel.theme' as *;
78
75
  @use 'components-theme/o-pry-new-presentation.theme' as *;
79
76
  @use 'components-theme/o-pry-presentation.theme' as *;
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@provoly/dashboard/components/sinceDate" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export * from './sinceDate.module';
2
- export * from './sinceDate.pipe';
@@ -1,18 +0,0 @@
1
- import { AfterContentInit, EventEmitter } from '@angular/core';
2
- import { Dataset, DatasetVersion } from '@provoly/dashboard';
3
- import { Observable } from 'rxjs';
4
- import { Store } from '@ngrx/store';
5
- import * as i0 from "@angular/core";
6
- export declare class PryDatasetCardComponent implements AfterContentInit {
7
- private store;
8
- dataset: Dataset;
9
- consult: EventEmitter<Dataset>;
10
- datasetVersions$: Observable<DatasetVersion[]>;
11
- activeVersion$: Observable<string | undefined>;
12
- constructor(store: Store);
13
- ngAfterContentInit(): void;
14
- truncateDescription(description: string | undefined, maxLength: number): string;
15
- goToDetailView(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<PryDatasetCardComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<PryDatasetCardComponent, "pry-dataset-card", never, { "dataset": { "alias": "dataset"; "required": false; }; }, { "consult": "consult"; }, never, never, false, never>;
18
- }
@@ -1,85 +0,0 @@
1
- @use '../../styles/abstracts/index' as *;
2
-
3
- /* Organism - pry-dataset-card */
4
-
5
- .o-pry-dataset-card {
6
- display: flex;
7
- flex-direction: column;
8
- align-items: stretch;
9
- position: relative;
10
- margin: 0 auto;
11
- border-collapse: collapse;
12
- font-size: toRem(14);
13
- min-width: toRem(330);
14
- height: toRem(150);
15
-
16
- &:hover {
17
- cursor: pointer;
18
-
19
- .o-pry-dataset-card__footer {
20
- pry-icon {
21
- visibility: visible;
22
- opacity: 1;
23
- }
24
- }
25
- }
26
-
27
- &__header {
28
- display: flex;
29
- gap: toRem(15);
30
- padding: toRem(10);
31
- max-width: toRem(330);
32
- }
33
-
34
- &__description-container {
35
- position: relative;
36
- width: 100%;
37
-
38
- &.a-tooltip[data-tooltip]:after {
39
- width: 100%;
40
- }
41
- }
42
-
43
- &__txt {
44
- flex-grow: 1;
45
- padding: toRem(10) toRem(15);
46
- .a-h3 {
47
- font-size: toRem(14);
48
- }
49
-
50
- .a-p {
51
- font-size: toRem(13);
52
-
53
- &.-date {
54
- margin-bottom: 0;
55
- }
56
- }
57
- }
58
-
59
- &__footer {
60
- display: flex;
61
- align-items: center;
62
- justify-content: center;
63
-
64
- .a-btn {
65
- margin-left: toRem(20); // needed for centering the footer text
66
- }
67
-
68
- pry-icon {
69
- visibility: hidden;
70
- opacity: 0;
71
- transition: visibility 100ms linear , opacity 100ms linear;
72
- margin-left: toRem(3);
73
- }
74
- }
75
-
76
- .dataset-name {
77
- width: toRem(270);
78
-
79
- &.a-tooltip[data-tooltip]:after {
80
- top: calc(100% - 15px);
81
- max-width: toRem(300);
82
- word-break: break-word;
83
- }
84
- }
85
- }