@provoly/dashboard 1.3.6 → 1.3.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.
- package/admin/components/admin-classes/admin-classes-view/admin-classes-view.component.d.ts +3 -2
- package/admin/components/admin-dataset/admin-dataset.component.d.ts +2 -0
- package/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.d.ts +4 -3
- package/admin/i18n/en.translations.d.ts +7 -0
- package/admin/i18n/fr.translations.d.ts +5 -0
- package/assets/svgs/groups.svg +16 -0
- package/assets/svgs/public.svg +1 -16
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +2 -2
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-classes-view.component.mjs +12 -9
- package/esm2022/admin/components/admin-dataset/admin-dataset.component.mjs +6 -4
- package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +7 -5
- package/esm2022/admin/i18n/en.translations.mjs +10 -3
- package/esm2022/admin/i18n/fr.translations.mjs +6 -1
- package/esm2022/lib/core/components/chips-selector/chips-selector.component.mjs +4 -4
- package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +28 -40
- package/esm2022/lib/core/components/share/share.utils.mjs +13 -1
- package/esm2022/lib/core/i18n/en.translations.mjs +11 -4
- package/esm2022/lib/core/i18n/fr.translations.mjs +11 -4
- package/esm2022/lib/core/store/class/class.reducer.mjs +8 -2
- package/esm2022/lib/core/store/class/class.selectors.mjs +4 -2
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +4 -3
- package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +12 -5
- package/esm2022/restitution/components/restitution/restitution.component.mjs +4 -4
- package/esm2022/restitution/i18n/fr.translations.mjs +2 -2
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +70 -61
- package/fesm2022/provoly-dashboard-admin.mjs +34 -15
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +4 -4
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +69 -60
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +226 -196
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/components/share/group-share/group-share.component.d.ts +4 -7
- package/lib/core/components/share/share.utils.d.ts +2 -0
- package/lib/core/i18n/en.translations.d.ts +10 -3
- package/lib/core/i18n/fr.translations.d.ts +10 -3
- package/lib/core/store/class/class.selectors.d.ts +1 -0
- package/lib/dashboard/store/dashboard.actions.d.ts +7 -6
- package/package.json +12 -12
- package/styles/components/_a-page-loader.scss +6 -0
- package/styles/components/_o-layer-settings.scss +2 -2
- package/widgets/widget-map/component/widget-map.component.d.ts +4 -2
|
@@ -20,10 +20,7 @@ export declare class PryGroupShareComponent extends SubscriptionnerDirective imp
|
|
|
20
20
|
assignedGroups$: Observable<Group[]>;
|
|
21
21
|
groups$: Observable<Group[]>;
|
|
22
22
|
PryShareMode: typeof PryShareMode;
|
|
23
|
-
shareModes:
|
|
24
|
-
label: string;
|
|
25
|
-
value: PryShareMode;
|
|
26
|
-
}[];
|
|
23
|
+
shareModes: PryShareMode[];
|
|
27
24
|
templateData$: Observable<{
|
|
28
25
|
groups: Group[];
|
|
29
26
|
assignedGroups: Group[];
|
|
@@ -41,12 +38,12 @@ export declare class PryGroupShareComponent extends SubscriptionnerDirective imp
|
|
|
41
38
|
set allowedGroups(value: string[] | null);
|
|
42
39
|
radioValueChange: EventEmitter<PryShareMode>;
|
|
43
40
|
constructor(store: Store, _cd: ChangeDetectorRef);
|
|
44
|
-
writeValue(value: string[] | undefined): void;
|
|
41
|
+
writeValue(value: string[] | undefined, from?: 'ngModel' | 'radioChange' | 'groupSelectionChange'): void;
|
|
45
42
|
registerOnChange(fn: any): void;
|
|
46
43
|
registerOnTouched(fn: any): void;
|
|
44
|
+
onRadioValueChange(radioValue: PryShareMode): void;
|
|
45
|
+
changeGroups(groups: (Group | string)[], from: 'radioChange' | 'groupSelectionChange'): void;
|
|
47
46
|
updateRadioValue(groups: string[]): void;
|
|
48
|
-
changeGroupsBasedOnRadioValue(type: PryShareMode): void;
|
|
49
|
-
changeGroups(groups: (Group | string)[] | null): void;
|
|
50
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryGroupShareComponent, never>;
|
|
51
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<PryGroupShareComponent, "pry-group-share", never, { "disableRadios": { "alias": "disableRadios"; "required": false; }; "allowedGroups": { "alias": "allowedGroups"; "required": false; }; }, { "radioValueChange": "radioValueChange"; }, never, never, false, never>;
|
|
52
49
|
}
|
|
@@ -2,6 +2,7 @@ import { ManifestDescription } from '../../model/manifest.interface';
|
|
|
2
2
|
import { Dataset } from '../../store/data-source/data-source.model';
|
|
3
3
|
import { Group } from './share.model';
|
|
4
4
|
import { PryI18nService } from '../../i18n/i18n.service';
|
|
5
|
+
import { PryShareMode } from './group-share/group-share.component';
|
|
5
6
|
export declare const PUBLIC_GROUP = "ALL";
|
|
6
7
|
export declare const AUTHENTICATED_USERS_GROUP = "AUTHENTICATED";
|
|
7
8
|
export declare const SYSTEM_GROUPS: string[];
|
|
@@ -9,6 +10,7 @@ export declare const READ_ACCESS = "READ";
|
|
|
9
10
|
export declare const WRITE_ACCESS = "WRITE";
|
|
10
11
|
export declare const getGroupLabel: (group: Group, i18n: PryI18nService) => string;
|
|
11
12
|
export declare const getGroupLabelByName: (groupName: string, i18n: PryI18nService) => string;
|
|
13
|
+
export declare const getShareLevel: (groups: string[]) => PryShareMode;
|
|
12
14
|
export declare const canManifestBeMadePublic: (manifest: ManifestDescription, datasets: Dataset[]) => boolean;
|
|
13
15
|
export declare const getCommonDatasourceGroupsForManifest: (manifest: ManifestDescription, datasets: Dataset[], allGroups: Group[]) => string[];
|
|
14
16
|
export declare const getAccessRightsArrayByGroup: (accessByGroup: {
|
|
@@ -299,9 +299,16 @@ export declare const enTranslations: {
|
|
|
299
299
|
};
|
|
300
300
|
};
|
|
301
301
|
share: {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
iconLabel: {
|
|
303
|
+
PRIVATE: string;
|
|
304
|
+
GROUPS: string;
|
|
305
|
+
PUBLIC: string;
|
|
306
|
+
};
|
|
307
|
+
radioLabel: {
|
|
308
|
+
PRIVATE: string;
|
|
309
|
+
GROUPS: string;
|
|
310
|
+
PUBLIC: string;
|
|
311
|
+
};
|
|
305
312
|
type: string;
|
|
306
313
|
users: string;
|
|
307
314
|
noGroups: string;
|
|
@@ -301,9 +301,16 @@ export declare const frTranslations: {
|
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
303
|
share: {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
304
|
+
iconLabel: {
|
|
305
|
+
PRIVATE: string;
|
|
306
|
+
GROUPS: string;
|
|
307
|
+
PUBLIC: string;
|
|
308
|
+
};
|
|
309
|
+
radioLabel: {
|
|
310
|
+
PRIVATE: string;
|
|
311
|
+
GROUPS: string;
|
|
312
|
+
PUBLIC: string;
|
|
313
|
+
};
|
|
307
314
|
type: string;
|
|
308
315
|
users: string;
|
|
309
316
|
groupLabels: {
|
|
@@ -529,17 +529,13 @@ export declare const DashboardActions: {
|
|
|
529
529
|
layers?: string[] | undefined;
|
|
530
530
|
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] init default layer group">>;
|
|
531
531
|
addLayerGroup: import("@ngrx/store").ActionCreator<"[Dashboard] add map layer group", (props: Partial<LayerGroup>) => Partial<LayerGroup> & import("@ngrx/store/src/models").TypedAction<"[Dashboard] add map layer group">>;
|
|
532
|
-
|
|
532
|
+
updateLayerVisibility: import("@ngrx/store").ActionCreator<"[Dashboard] update visible layers on the layer group", (props: {
|
|
533
533
|
name: string;
|
|
534
|
-
newName?: string | undefined;
|
|
535
|
-
singleLayer?: boolean | undefined;
|
|
536
534
|
visibleLayers?: string | string[] | undefined;
|
|
537
535
|
}) => {
|
|
538
536
|
name: string;
|
|
539
|
-
newName?: string | undefined;
|
|
540
|
-
singleLayer?: boolean | undefined;
|
|
541
537
|
visibleLayers?: string | string[] | undefined;
|
|
542
|
-
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] update
|
|
538
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] update visible layers on the layer group">>;
|
|
543
539
|
confirmLayerGroupDeletion: import("@ngrx/store").ActionCreator<"[Dashboard] confirm deleting map layer group", (props: {
|
|
544
540
|
name: string;
|
|
545
541
|
}) => {
|
|
@@ -550,4 +546,9 @@ export declare const DashboardActions: {
|
|
|
550
546
|
}) => {
|
|
551
547
|
name: string;
|
|
552
548
|
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] delete map layer group">>;
|
|
549
|
+
updateLayerGroups: import("@ngrx/store").ActionCreator<"[Dashboard] update all layer groups", (props: {
|
|
550
|
+
layerGroups: LayerGroup[];
|
|
551
|
+
}) => {
|
|
552
|
+
layerGroups: LayerGroup[];
|
|
553
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] update all layer groups">>;
|
|
553
554
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "16.x || 17.x",
|
|
@@ -138,23 +138,17 @@
|
|
|
138
138
|
"esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
|
|
139
139
|
"default": "./fesm2022/provoly-dashboard-toolbox.mjs"
|
|
140
140
|
},
|
|
141
|
-
"./components/card": {
|
|
142
|
-
"types": "./components/card/index.d.ts",
|
|
143
|
-
"esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
|
|
144
|
-
"esm": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
|
|
145
|
-
"default": "./fesm2022/provoly-dashboard-components-card.mjs"
|
|
146
|
-
},
|
|
147
141
|
"./components/checkbox": {
|
|
148
142
|
"types": "./components/checkbox/index.d.ts",
|
|
149
143
|
"esm2022": "./esm2022/components/checkbox/provoly-dashboard-components-checkbox.mjs",
|
|
150
144
|
"esm": "./esm2022/components/checkbox/provoly-dashboard-components-checkbox.mjs",
|
|
151
145
|
"default": "./fesm2022/provoly-dashboard-components-checkbox.mjs"
|
|
152
146
|
},
|
|
153
|
-
"./components/
|
|
154
|
-
"types": "./components/
|
|
155
|
-
"esm2022": "./esm2022/components/
|
|
156
|
-
"esm": "./esm2022/components/
|
|
157
|
-
"default": "./fesm2022/provoly-dashboard-components-
|
|
147
|
+
"./components/card": {
|
|
148
|
+
"types": "./components/card/index.d.ts",
|
|
149
|
+
"esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
|
|
150
|
+
"esm": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
|
|
151
|
+
"default": "./fesm2022/provoly-dashboard-components-card.mjs"
|
|
158
152
|
},
|
|
159
153
|
"./components/data-format": {
|
|
160
154
|
"types": "./components/data-format/index.d.ts",
|
|
@@ -204,6 +198,12 @@
|
|
|
204
198
|
"esm": "./esm2022/components/text-editor/provoly-dashboard-components-text-editor.mjs",
|
|
205
199
|
"default": "./fesm2022/provoly-dashboard-components-text-editor.mjs"
|
|
206
200
|
},
|
|
201
|
+
"./components/color-picker": {
|
|
202
|
+
"types": "./components/color-picker/index.d.ts",
|
|
203
|
+
"esm2022": "./esm2022/components/color-picker/provoly-dashboard-components-color-picker.mjs",
|
|
204
|
+
"esm": "./esm2022/components/color-picker/provoly-dashboard-components-color-picker.mjs",
|
|
205
|
+
"default": "./fesm2022/provoly-dashboard-components-color-picker.mjs"
|
|
206
|
+
},
|
|
207
207
|
"./filters/autocomplete": {
|
|
208
208
|
"types": "./filters/autocomplete/index.d.ts",
|
|
209
209
|
"esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
@@ -153,7 +153,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
153
153
|
changeAttributions($event: boolean): void;
|
|
154
154
|
addLayer(group: LayerGroup): void;
|
|
155
155
|
changeLayerType($event: any, i: number): void;
|
|
156
|
-
|
|
156
|
+
updateLayerGroupSingleLayer(group: LayerGroup, singleLayer: boolean): void;
|
|
157
|
+
updateLayerGroup(group: LayerGroup | string, singleLayer?: boolean, visibleLayers?: string[] | string): void;
|
|
158
|
+
changeTitle($event: Event, layer: MapWidgetLayerOptions, group: LayerGroup): void;
|
|
157
159
|
emitManifest(): void;
|
|
158
160
|
changeLocationAttributes($event: any, layer: MapWidgetLayerOptions): void;
|
|
159
161
|
layerHasIntensity(layer: MapWidgetLayerOptions): MapWidgetHeatMapLayerOptions | MapWidgetBubbleLayerOptions;
|
|
@@ -199,7 +201,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
199
201
|
changeSelection(action: 'click' | 'lasso' | 'rectangle' | 'zoom' | 'move' | 'export' | 'upload'): void;
|
|
200
202
|
private clearLayers;
|
|
201
203
|
addLayerGroup(): void;
|
|
202
|
-
|
|
204
|
+
updateLayerGroupName(group: LayerGroup, $event: Event): void;
|
|
203
205
|
deleteLayerGroup(name: string): void;
|
|
204
206
|
drop(event: CdkDragDrop<MapWidgetLayerOptions[]>, group: LayerGroup): void;
|
|
205
207
|
moveLayerBetweenGroups(movedLayer: MapWidgetLayerOptions, newGroup: string): void;
|