@provoly/dashboard 0.23.0 → 0.23.1

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 (29) hide show
  1. package/admin/admin.module.d.ts +1 -1
  2. package/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.d.ts +2 -0
  3. package/admin/i18n/fr.translations.d.ts +2 -0
  4. package/esm2022/admin/admin.module.mjs +8 -5
  5. package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +44 -29
  6. package/esm2022/admin/i18n/fr.translations.mjs +3 -1
  7. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +3 -3
  8. package/esm2022/lib/core/components/chips-selector/chips-selector.component.mjs +6 -3
  9. package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +5 -4
  10. package/esm2022/lib/core/store/data-source/data-source.model.mjs +1 -1
  11. package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +3 -3
  12. package/fesm2022/provoly-dashboard-admin.mjs +51 -32
  13. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  14. package/fesm2022/provoly-dashboard-dataset.mjs +2 -2
  15. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  16. package/fesm2022/provoly-dashboard.mjs +11 -7
  17. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  18. package/lib/core/components/chips-selector/chips-selector.component.d.ts +2 -1
  19. package/lib/core/components/share/group-share/group-share.component.d.ts +4 -0
  20. package/lib/core/store/data-source/data-source.model.d.ts +2 -0
  21. package/package.json +1 -1
  22. package/styles/components/_o-chips-selector.scss +12 -1
  23. package/styles/components/_o-modal.scss +1 -1
  24. package/styles/components/_o-pry-admin-dataset-select.scss +13 -0
  25. package/styles/components/_o-tabs.scss +0 -1
  26. package/styles/main.scss +1 -0
  27. package/styles-theme/components-theme/_a-chip.theme.scss +1 -1
  28. package/styles-theme/components-theme/_o-chips-selector.theme.scss +9 -0
  29. package/styles-theme/main-theme.scss +1 -0
@@ -11,6 +11,7 @@ export declare class ChipsSelectorComponent extends SubscriptionnerDirective {
11
11
  translationStringBase: string;
12
12
  itemTranslationStringBase: string;
13
13
  showActionButtons: boolean;
14
+ showSearchbar: boolean;
14
15
  set items(items: any[]);
15
16
  set usedItems(items: any[]);
16
17
  cancel: EventEmitter<any>;
@@ -34,5 +35,5 @@ export declare class ChipsSelectorComponent extends SubscriptionnerDirective {
34
35
  areItemsEqual(item1: any, item2: any): boolean;
35
36
  isItemUsed(item: any, usedItems?: any[]): any;
36
37
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipsSelectorComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<ChipsSelectorComponent, "pry-chips-selector", never, { "bindValue": { "alias": "bindValue"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "translationStringBase": { "alias": "translationStringBase"; "required": false; }; "itemTranslationStringBase": { "alias": "itemTranslationStringBase"; "required": false; }; "showActionButtons": { "alias": "showActionButtons"; "required": false; }; "items": { "alias": "items"; "required": false; }; "usedItems": { "alias": "usedItems"; "required": false; }; }, { "cancel": "cancel"; "validated": "validated"; "previousTab": "previousTab"; "nextTab": "nextTab"; "itemsChanged": "itemsChanged"; }, never, never, false, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChipsSelectorComponent, "pry-chips-selector", never, { "bindValue": { "alias": "bindValue"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "translationStringBase": { "alias": "translationStringBase"; "required": false; }; "itemTranslationStringBase": { "alias": "itemTranslationStringBase"; "required": false; }; "showActionButtons": { "alias": "showActionButtons"; "required": false; }; "showSearchbar": { "alias": "showSearchbar"; "required": false; }; "items": { "alias": "items"; "required": false; }; "usedItems": { "alias": "usedItems"; "required": false; }; }, { "cancel": "cancel"; "validated": "validated"; "previousTab": "previousTab"; "nextTab": "nextTab"; "itemsChanged": "itemsChanged"; }, never, never, false, never>;
38
39
  }
@@ -20,6 +20,10 @@ export declare class PryGroupShareComponent extends SubscriptionnerDirective imp
20
20
  label: string;
21
21
  value: PryVisibilityType;
22
22
  }[];
23
+ templateData$: Observable<{
24
+ groups: Group[];
25
+ assignedGroups: Group[];
26
+ }>;
23
27
  constructor(store: Store, _cd: ChangeDetectorRef);
24
28
  writeValue(value: string[] | undefined): void;
25
29
  registerOnChange(fn: any): void;
@@ -24,6 +24,8 @@ export interface Dataset extends DescriptionQuery {
24
24
  id: string;
25
25
  oClass: string;
26
26
  type: PryDatasetType;
27
+ owner?: boolean;
28
+ groups?: string[];
27
29
  }
28
30
  export interface DatasetVersion {
29
31
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "16.x || 17.x",
@@ -11,12 +11,15 @@
11
11
  }
12
12
 
13
13
  .o-chips-selector {
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: toRem(15);
17
+
14
18
  &__list {
15
19
  @extend %list-unstyled;
16
20
  gap: toRem(15) toRem(30);
17
21
  display: flex;
18
22
  flex-wrap: wrap;
19
- margin: toRem(10) 0;
20
23
  }
21
24
 
22
25
  &__main {
@@ -40,4 +43,12 @@
40
43
  margin-bottom: 0;
41
44
  }
42
45
  }
46
+
47
+ .a-h4 {
48
+ margin-bottom: 0;
49
+ }
50
+
51
+ .-no-items {
52
+ margin-left: toRem(5);
53
+ }
43
54
  }
@@ -18,7 +18,7 @@
18
18
  top: 50%;
19
19
  left: 50%;
20
20
  width: 100%;
21
- max-width: toRem(480);
21
+ max-width: toRem(500);
22
22
  max-height: 95%;
23
23
  overflow-x: hidden;
24
24
  overflow-y: auto;
@@ -0,0 +1,13 @@
1
+ @use '../../styles/abstracts' as *;
2
+
3
+ .o-pry-admin-dataset-select {
4
+ &__share {
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: toRem(15);
8
+ }
9
+
10
+ &__errors {
11
+ margin: toRem(10) 0;
12
+ }
13
+ }
@@ -43,7 +43,6 @@
43
43
  @include outlineOnFocus($border-radius: 3px);
44
44
 
45
45
  .a-h4 {
46
- margin-bottom: toRem(14);
47
46
  font-size: toRem(14);
48
47
  }
49
48
 
package/styles/main.scss CHANGED
@@ -67,6 +67,7 @@
67
67
  @use 'components/o-tabs' as *;
68
68
  @use 'components/o-widget' as *;
69
69
  @use 'components/o-pry-admin-classes-customize' as *;
70
+ @use 'components/o-pry-admin-dataset-select' as *;
70
71
  @use 'components/o-pry-composed-condition' as *;
71
72
  @use 'components/o-pry-card' as *;
72
73
  @use 'components/o-pry-edit' as *;
@@ -21,7 +21,7 @@
21
21
  &--light {
22
22
  background-color: themed($theme-map, 'color', 'primary', 50);
23
23
  color: themed($theme-map, 'color', 'primary', 600);
24
- box-shadow: 0px 4px 4px rgba(17, 59, 110, 0.12);
24
+ box-shadow: 0px 0px 1px rgba(17, 59, 110, 0.6);
25
25
 
26
26
  &:hover {
27
27
  @include changeBgColor(
@@ -0,0 +1,9 @@
1
+ @use '../../styles/abstracts' as *;
2
+ @use '../abstracts-theme/variables.theme' as *;
3
+
4
+ .o-chips-selector {
5
+ .-no-items {
6
+ font-size: toRem(12);
7
+ color: themed($theme-map, 'color', 'primary', 500);
8
+ }
9
+ }
@@ -42,6 +42,7 @@
42
42
  @use 'components-theme/o-accordion.theme' as *;
43
43
  @use 'components-theme/o-card.theme' as *;
44
44
  @use 'components-theme/o-catalog.theme' as *;
45
+ @use 'components-theme/o-chips-selector.theme' as *;
45
46
  @use 'components-theme/o-dashboard.theme' as *;
46
47
  @use 'components-theme/o-date-picker.theme' as *;
47
48
  @use 'components-theme/o-draggable-menu.theme' as *;