@provoly/dashboard 0.12.5 → 0.12.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/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +1 -1
- package/esm2022/lib/core/store/data-source/data-source.effects.mjs +4 -3
- package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +24 -2
- package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +97 -0
- package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +29 -62
- package/esm2022/lib/dashboard/components/widgets/public-api.mjs +2 -1
- package/esm2022/lib/dashboard/dashboard.module.mjs +8 -4
- package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +4 -1
- package/esm2022/restitution/components/restitution/restitution.component.mjs +7 -24
- package/esm2022/restitution/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +3 -3
- package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +3 -3
- package/esm2022/widgets/widget-detail/component/widget-detail.component.mjs +1 -1
- package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +3 -3
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +19 -12
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +3 -3
- package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +3 -3
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +3 -0
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +8 -25
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +18 -11
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +150 -72
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/store/data-source/data-source.effects.d.ts +1 -0
- package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts +34 -0
- package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +5 -16
- package/lib/dashboard/components/widgets/public-api.d.ts +1 -0
- package/lib/dashboard/dashboard.module.d.ts +15 -14
- package/package.json +37 -37
- package/restitution/components/restitution/restitution.component.d.ts +3 -9
- package/restitution/style/_o-restitution.scss +0 -4
- package/schematics/ng-add/index.js +58 -19
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/index.spec.js +0 -2
- package/schematics/ng-add/index.spec.js.map +1 -1
- package/styles/components/_o-datasources.scss +17 -56
- package/styles/components/_o-widget.scss +40 -32
- package/styles-theme/components-theme/_o-datasources.theme.scss +8 -5
- package/widgets/widget-map/component/widget-map.component.d.ts +5 -2
|
@@ -96,6 +96,7 @@ export declare class DataSourceEffects {
|
|
|
96
96
|
} & import("@ngrx/store/src/models").TypedAction<"[Dataset] Activate dataset version success">) | ({
|
|
97
97
|
error: any;
|
|
98
98
|
} & import("@ngrx/store/src/models").TypedAction<"[Dataset] Activate dataset version failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
99
|
+
activateOrDeactivateDatasetVersionSuccess$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
99
100
|
previewsGetById$: import("rxjs").Observable<({
|
|
100
101
|
previews: import("../../model/dataset.interface").DatasetPreview[];
|
|
101
102
|
} & import("@ngrx/store/src/models").TypedAction<"[Dataset/Previews] get by id Success">) | ({
|
package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { Store } from '@ngrx/store';
|
|
3
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
+
import { Dataset } from '../../../../core/model/dataset.interface';
|
|
5
|
+
import { WidgetManifest } from '../../../../core/model/manifest.interface';
|
|
6
|
+
import { DataSource, NamedQuery } from '../../../../core/store/data-source/data-source.model';
|
|
7
|
+
import { SubscriptionnerDirective } from '../../subscriptionner.directive';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class DatasourceSelectorComponent extends SubscriptionnerDirective {
|
|
10
|
+
private store;
|
|
11
|
+
private cdr;
|
|
12
|
+
set manifest(manifest: WidgetManifest | null);
|
|
13
|
+
set datasourceIds(datasourceIds: string[]);
|
|
14
|
+
cancel: EventEmitter<any>;
|
|
15
|
+
validated: EventEmitter<any>;
|
|
16
|
+
previousTab: EventEmitter<any>;
|
|
17
|
+
nextTab: EventEmitter<any>;
|
|
18
|
+
datasourcesChanged: EventEmitter<DataSource[]>;
|
|
19
|
+
manifest$: BehaviorSubject<WidgetManifest | null>;
|
|
20
|
+
usedDatasourceIds$: BehaviorSubject<string[]>;
|
|
21
|
+
usedDatasources$: Observable<DataSource[]>;
|
|
22
|
+
allDataSources$: Observable<DataSource[]>;
|
|
23
|
+
unusedDatasources$: Observable<any>;
|
|
24
|
+
search$: BehaviorSubject<string>;
|
|
25
|
+
idToNameDatasource: {
|
|
26
|
+
[id: string]: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
constructor(store: Store, cdr: ChangeDetectorRef);
|
|
29
|
+
toogleDataSource(id: string): void;
|
|
30
|
+
isGeo(ds: NamedQuery | Dataset): boolean;
|
|
31
|
+
search($event: any): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatasourceSelectorComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatasourceSelectorComponent, "pry-datasource-selector", never, { "manifest": { "alias": "manifest"; "required": false; }; "datasourceIds": { "alias": "datasourceIds"; "required": false; }; }, { "cancel": "cancel"; "validated": "validated"; "previousTab": "previousTab"; "nextTab": "nextTab"; "datasourcesChanged": "datasourcesChanged"; }, never, never, false, never>;
|
|
34
|
+
}
|
|
@@ -39,6 +39,7 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective {
|
|
|
39
39
|
subscription?: Subscription;
|
|
40
40
|
places: WidgetManifest[];
|
|
41
41
|
selectedItem?: Element | null;
|
|
42
|
+
usedDatasources$: Observable<DataSource[]>;
|
|
42
43
|
set manifest(manifest: WidgetManifest | null);
|
|
43
44
|
additionalOptions: HeaderAction[] | null;
|
|
44
45
|
headerOptions: {
|
|
@@ -51,26 +52,14 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective {
|
|
|
51
52
|
}>;
|
|
52
53
|
isEdit: boolean;
|
|
53
54
|
catalogInfo: Widget;
|
|
54
|
-
|
|
55
|
-
get manifest(): WidgetManifest | null;
|
|
56
|
-
set datasourceIds$(datasourceIds$: Observable<string[]>);
|
|
55
|
+
set datasourceIds(datasourceIds: string[]);
|
|
57
56
|
set widgetIndex(widgetIndex: number);
|
|
58
|
-
search$: BehaviorSubject<string>;
|
|
59
57
|
lockedView$: Observable<boolean>;
|
|
60
58
|
targetIndexes$: Observable<number[]>;
|
|
61
|
-
usedDatasources$: Observable<DataSource[]>;
|
|
62
|
-
allDataSources$: Observable<DataSource[]>;
|
|
63
|
-
usedNameQueryIds: string[];
|
|
64
|
-
choiceUsed: {
|
|
65
|
-
[is: string]: boolean;
|
|
66
|
-
};
|
|
67
59
|
_widgetIndex$: BehaviorSubject<number>;
|
|
68
60
|
_widgetIndex: number;
|
|
69
61
|
open: boolean;
|
|
70
|
-
|
|
71
|
-
idToNameDatasource: {
|
|
72
|
-
[id: string]: string;
|
|
73
|
-
};
|
|
62
|
+
selectedDataSourceIds$: BehaviorSubject<string[]>;
|
|
74
63
|
windowManifest: DashboardManifest | null;
|
|
75
64
|
private windowManifest$;
|
|
76
65
|
private menuRef?;
|
|
@@ -86,7 +75,6 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective {
|
|
|
86
75
|
get currentLayout(): DashboardGridLayout;
|
|
87
76
|
get hasGrid(): boolean;
|
|
88
77
|
get currentPlacementIndex(): number;
|
|
89
|
-
toogleDataSource(id: string): void;
|
|
90
78
|
menuOpen($event?: MouseEvent, forceOpen?: boolean): void;
|
|
91
79
|
toggleCombo(): void;
|
|
92
80
|
moveInNewWindow(widgetIndex: number, targetIndex: number): void;
|
|
@@ -110,6 +98,7 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective {
|
|
|
110
98
|
focusValidation(): void;
|
|
111
99
|
focusInputCatalog(): void;
|
|
112
100
|
disableValidation(): void;
|
|
101
|
+
datasourcesChanged($event: DataSource[]): void;
|
|
113
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryWidgetHeaderComponent, never>;
|
|
114
|
-
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
|
|
103
|
+
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>;
|
|
115
104
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './base-widget.component';
|
|
2
2
|
export * from './data-widget.component';
|
|
3
3
|
export * from './header/widget-header.component';
|
|
4
|
+
export * from './datasource-selector/datasource-selector.component';
|
|
4
5
|
export * from './header/resultset-size.pipe';
|
|
5
6
|
export * from './widget-instanciator/widget-factory.service';
|
|
6
7
|
export * from './widget-instanciator/widget-instanciator.component';
|
|
@@ -21,19 +21,20 @@ import * as i14 from "./tooltip/components/default/default.tooltip.component";
|
|
|
21
21
|
import * as i15 from "./tooltip/base-tooltip.component";
|
|
22
22
|
import * as i16 from "./filter/base-filter.component";
|
|
23
23
|
import * as i17 from "./filter/components/filter-instanciator/filter-instanciator.component";
|
|
24
|
-
import * as i18 from "
|
|
25
|
-
import * as i19 from "@angular/
|
|
26
|
-
import * as i20 from "
|
|
27
|
-
import * as i21 from "../core/components/
|
|
28
|
-
import * as i22 from "
|
|
29
|
-
import * as i23 from "
|
|
30
|
-
import * as i24 from "
|
|
31
|
-
import * as i25 from "
|
|
32
|
-
import * as i26 from "../core/components/
|
|
33
|
-
import * as i27 from "
|
|
34
|
-
import * as i28 from "@ngrx/
|
|
35
|
-
import * as i29 from "
|
|
36
|
-
import * as i30 from "../core/
|
|
24
|
+
import * as i18 from "./components/widgets/datasource-selector/datasource-selector.component";
|
|
25
|
+
import * as i19 from "@angular/common";
|
|
26
|
+
import * as i20 from "@angular/forms";
|
|
27
|
+
import * as i21 from "../core/components/select/select.module";
|
|
28
|
+
import * as i22 from "../core/components/icon/icon.module";
|
|
29
|
+
import * as i23 from "@angular/cdk/overlay";
|
|
30
|
+
import * as i24 from "../core/core.module";
|
|
31
|
+
import * as i25 from "@provoly/dashboard/components/checkbox";
|
|
32
|
+
import * as i26 from "../core/components/toggle/toggle.module";
|
|
33
|
+
import * as i27 from "../core/components/overlay/overlay.module";
|
|
34
|
+
import * as i28 from "@ngrx/store";
|
|
35
|
+
import * as i29 from "@ngrx/effects";
|
|
36
|
+
import * as i30 from "../core/components/date-picker/date-picker.module";
|
|
37
|
+
import * as i31 from "../core/i18n/i18n.module";
|
|
37
38
|
export declare class PryDashboardModule {
|
|
38
39
|
static forRoot(widgetReference: {
|
|
39
40
|
[key: string]: WidgetDefinition;
|
|
@@ -54,6 +55,6 @@ export declare class PryDashboardModule {
|
|
|
54
55
|
image?: string;
|
|
55
56
|
}[]): ModuleWithProviders<PryDashboardModule>;
|
|
56
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryDashboardModule, never>;
|
|
57
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PryDashboardModule, [typeof i1.DashboardComponent, typeof i2.WidgetInstanciatorComponent, typeof i3.WidgetPlaceholderComponent, typeof i4.SettingsComponent, typeof i5.ManifestsComponent, typeof i6.MetadataComponent, typeof i7.ContextMenuComponent, typeof i8.DataWidgetComponent, typeof i9.BaseWidgetComponent, typeof i10.PryWidgetHeaderComponent, typeof i11.PryObjectEditionComponent, typeof i12.VizualizeRawComponent, typeof i13.ResultSetSizePipe, typeof i14.DefaultTooltipComponent, typeof i15.BaseTooltipComponent, typeof i16.BaseFilterComponent, typeof i17.FilterInstanciatorComponent], [typeof
|
|
58
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PryDashboardModule, [typeof i1.DashboardComponent, typeof i2.WidgetInstanciatorComponent, typeof i3.WidgetPlaceholderComponent, typeof i4.SettingsComponent, typeof i5.ManifestsComponent, typeof i6.MetadataComponent, typeof i7.ContextMenuComponent, typeof i8.DataWidgetComponent, typeof i9.BaseWidgetComponent, typeof i10.PryWidgetHeaderComponent, typeof i11.PryObjectEditionComponent, typeof i12.VizualizeRawComponent, typeof i13.ResultSetSizePipe, typeof i14.DefaultTooltipComponent, typeof i15.BaseTooltipComponent, typeof i16.BaseFilterComponent, typeof i17.FilterInstanciatorComponent, typeof i18.DatasourceSelectorComponent], [typeof i19.CommonModule, typeof i20.FormsModule, typeof i21.PrySelectModule, typeof i22.PryIconModule, typeof i23.OverlayModule, typeof i24.PryCoreModule, typeof i25.PryCheckboxModule, typeof i26.PryToggleModule, typeof i27.PryOverlayModule, typeof i28.StoreFeatureModule, typeof i29.EffectsFeatureModule, typeof i30.PryDatePickerModule, typeof i31.PryI18nModule], [typeof i1.DashboardComponent, typeof i2.WidgetInstanciatorComponent, typeof i3.WidgetPlaceholderComponent, typeof i4.SettingsComponent, typeof i5.ManifestsComponent, typeof i6.MetadataComponent, typeof i7.ContextMenuComponent, typeof i8.DataWidgetComponent, typeof i9.BaseWidgetComponent, typeof i10.PryWidgetHeaderComponent, typeof i11.PryObjectEditionComponent, typeof i12.VizualizeRawComponent, typeof i13.ResultSetSizePipe, typeof i14.DefaultTooltipComponent, typeof i15.BaseTooltipComponent, typeof i16.BaseFilterComponent, typeof i17.FilterInstanciatorComponent, typeof i18.DatasourceSelectorComponent]>;
|
|
58
59
|
static ɵinj: i0.ɵɵInjectorDeclaration<PryDashboardModule>;
|
|
59
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.7",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "15.x || 16.x",
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
"esm": "./esm2022/admin/provoly-dashboard-admin.mjs",
|
|
44
44
|
"default": "./fesm2022/provoly-dashboard-admin.mjs"
|
|
45
45
|
},
|
|
46
|
-
"./import": {
|
|
47
|
-
"types": "./import/index.d.ts",
|
|
48
|
-
"esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
|
|
49
|
-
"esm": "./esm2022/import/provoly-dashboard-import.mjs",
|
|
50
|
-
"default": "./fesm2022/provoly-dashboard-import.mjs"
|
|
51
|
-
},
|
|
52
46
|
"./dataset": {
|
|
53
47
|
"types": "./dataset/index.d.ts",
|
|
54
48
|
"esm2022": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
|
|
55
49
|
"esm": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
|
|
56
50
|
"default": "./fesm2022/provoly-dashboard-dataset.mjs"
|
|
57
51
|
},
|
|
52
|
+
"./import": {
|
|
53
|
+
"types": "./import/index.d.ts",
|
|
54
|
+
"esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
|
|
55
|
+
"esm": "./esm2022/import/provoly-dashboard-import.mjs",
|
|
56
|
+
"default": "./fesm2022/provoly-dashboard-import.mjs"
|
|
57
|
+
},
|
|
58
58
|
"./notification": {
|
|
59
59
|
"types": "./notification/index.d.ts",
|
|
60
60
|
"esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
|
|
@@ -97,6 +97,30 @@
|
|
|
97
97
|
"esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
|
|
98
98
|
"default": "./fesm2022/provoly-dashboard-toolbox.mjs"
|
|
99
99
|
},
|
|
100
|
+
"./filters/date": {
|
|
101
|
+
"types": "./filters/date/index.d.ts",
|
|
102
|
+
"esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
103
|
+
"esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
104
|
+
"default": "./fesm2022/provoly-dashboard-filters-date.mjs"
|
|
105
|
+
},
|
|
106
|
+
"./filters/list": {
|
|
107
|
+
"types": "./filters/list/index.d.ts",
|
|
108
|
+
"esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
109
|
+
"esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
110
|
+
"default": "./fesm2022/provoly-dashboard-filters-list.mjs"
|
|
111
|
+
},
|
|
112
|
+
"./filters/number": {
|
|
113
|
+
"types": "./filters/number/index.d.ts",
|
|
114
|
+
"esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
115
|
+
"esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
116
|
+
"default": "./fesm2022/provoly-dashboard-filters-number.mjs"
|
|
117
|
+
},
|
|
118
|
+
"./filters/text": {
|
|
119
|
+
"types": "./filters/text/index.d.ts",
|
|
120
|
+
"esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
121
|
+
"esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
122
|
+
"default": "./fesm2022/provoly-dashboard-filters-text.mjs"
|
|
123
|
+
},
|
|
100
124
|
"./components/card": {
|
|
101
125
|
"types": "./components/card/index.d.ts",
|
|
102
126
|
"esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
|
|
@@ -133,30 +157,6 @@
|
|
|
133
157
|
"esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
|
|
134
158
|
"default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
|
|
135
159
|
},
|
|
136
|
-
"./filters/date": {
|
|
137
|
-
"types": "./filters/date/index.d.ts",
|
|
138
|
-
"esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
139
|
-
"esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
140
|
-
"default": "./fesm2022/provoly-dashboard-filters-date.mjs"
|
|
141
|
-
},
|
|
142
|
-
"./filters/list": {
|
|
143
|
-
"types": "./filters/list/index.d.ts",
|
|
144
|
-
"esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
145
|
-
"esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
146
|
-
"default": "./fesm2022/provoly-dashboard-filters-list.mjs"
|
|
147
|
-
},
|
|
148
|
-
"./filters/number": {
|
|
149
|
-
"types": "./filters/number/index.d.ts",
|
|
150
|
-
"esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
151
|
-
"esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
152
|
-
"default": "./fesm2022/provoly-dashboard-filters-number.mjs"
|
|
153
|
-
},
|
|
154
|
-
"./filters/text": {
|
|
155
|
-
"types": "./filters/text/index.d.ts",
|
|
156
|
-
"esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
157
|
-
"esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
158
|
-
"default": "./fesm2022/provoly-dashboard-filters-text.mjs"
|
|
159
|
-
},
|
|
160
160
|
"./pipeline-components/filter": {
|
|
161
161
|
"types": "./pipeline-components/filter/index.d.ts",
|
|
162
162
|
"esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
|
|
@@ -187,18 +187,18 @@
|
|
|
187
187
|
"esm": "./esm2022/pipeline-components/subgraph/provoly-dashboard-pipeline-components-subgraph.mjs",
|
|
188
188
|
"default": "./fesm2022/provoly-dashboard-pipeline-components-subgraph.mjs"
|
|
189
189
|
},
|
|
190
|
-
"./tooltips/cluster": {
|
|
191
|
-
"types": "./tooltips/cluster/index.d.ts",
|
|
192
|
-
"esm2022": "./esm2022/tooltips/cluster/provoly-dashboard-tooltips-cluster.mjs",
|
|
193
|
-
"esm": "./esm2022/tooltips/cluster/provoly-dashboard-tooltips-cluster.mjs",
|
|
194
|
-
"default": "./fesm2022/provoly-dashboard-tooltips-cluster.mjs"
|
|
195
|
-
},
|
|
196
190
|
"./tooltips/attribute": {
|
|
197
191
|
"types": "./tooltips/attribute/index.d.ts",
|
|
198
192
|
"esm2022": "./esm2022/tooltips/attribute/provoly-dashboard-tooltips-attribute.mjs",
|
|
199
193
|
"esm": "./esm2022/tooltips/attribute/provoly-dashboard-tooltips-attribute.mjs",
|
|
200
194
|
"default": "./fesm2022/provoly-dashboard-tooltips-attribute.mjs"
|
|
201
195
|
},
|
|
196
|
+
"./tooltips/cluster": {
|
|
197
|
+
"types": "./tooltips/cluster/index.d.ts",
|
|
198
|
+
"esm2022": "./esm2022/tooltips/cluster/provoly-dashboard-tooltips-cluster.mjs",
|
|
199
|
+
"esm": "./esm2022/tooltips/cluster/provoly-dashboard-tooltips-cluster.mjs",
|
|
200
|
+
"default": "./fesm2022/provoly-dashboard-tooltips-cluster.mjs"
|
|
201
|
+
},
|
|
202
202
|
"./widgets/widget-aggregated-chart": {
|
|
203
203
|
"types": "./widgets/widget-aggregated-chart/index.d.ts",
|
|
204
204
|
"esm2022": "./esm2022/widgets/widget-aggregated-chart/provoly-dashboard-widgets-widget-aggregated-chart.mjs",
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
|
-
import { CatalogEntry, Class,
|
|
3
|
+
import { CatalogEntry, Class, DataSource, LibraryTypes, PryVisibility, SubscriptionnerDirective, ToolboxManifestService, ToolboxMenuService, Widget, WidgetManifest } from '@provoly/dashboard';
|
|
4
4
|
import { PryStepperComponent } from '@provoly/dashboard/components/stepper';
|
|
5
|
-
import {
|
|
5
|
+
import { Observable, Subject } from 'rxjs';
|
|
6
6
|
import { RestitutionForm } from '../../model/restitution.model';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class PryRestitutionComponent extends SubscriptionnerDirective implements OnInit {
|
|
9
9
|
private toolboxManifestService;
|
|
10
10
|
private store;
|
|
11
11
|
private toolboxMenuService;
|
|
12
|
-
search$: BehaviorSubject<string>;
|
|
13
|
-
filteredDataSource$?: Observable<DataSource[]>;
|
|
14
12
|
types$: Observable<{
|
|
15
13
|
icon: string;
|
|
16
14
|
label: string;
|
|
@@ -30,14 +28,11 @@ export declare class PryRestitutionComponent extends SubscriptionnerDirective im
|
|
|
30
28
|
type: LibraryTypes;
|
|
31
29
|
isDataSourceSelected: boolean;
|
|
32
30
|
bindId: any;
|
|
33
|
-
idToNameDatasource: {
|
|
34
|
-
[id: string]: string;
|
|
35
|
-
};
|
|
36
31
|
image: string;
|
|
37
32
|
constructor(toolboxManifestService: ToolboxManifestService, store: Store, toolboxMenuService: ToolboxMenuService);
|
|
38
33
|
ngOnInit(): void;
|
|
39
34
|
cancel(stepper: PryStepperComponent): void;
|
|
40
|
-
|
|
35
|
+
datasourcesChanged($event: DataSource[]): void;
|
|
41
36
|
submit(stepper: PryStepperComponent): void;
|
|
42
37
|
isSubmitDisabled(): boolean;
|
|
43
38
|
noDataSourceSelected(): boolean;
|
|
@@ -48,7 +43,6 @@ export declare class PryRestitutionComponent extends SubscriptionnerDirective im
|
|
|
48
43
|
manifest: WidgetManifest;
|
|
49
44
|
}): void;
|
|
50
45
|
lastStepCompleted(): void;
|
|
51
|
-
isGeo(ds: NamedQuery | Dataset): boolean;
|
|
52
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionComponent, never>;
|
|
53
47
|
static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionComponent, "pry-restitution", never, { "selectedRestitution": { "alias": "selectedRestitution"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "isDataSourceSelected": { "alias": "isDataSourceSelected"; "required": false; }; "bindId": { "alias": "bindId"; "required": false; }; }, { "restitutionCreated": "restitutionCreated"; }, never, never, false, never>;
|
|
54
48
|
}
|
|
@@ -13,22 +13,22 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
13
13
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
14
14
|
const utility_1 = require("@schematics/angular/utility");
|
|
15
15
|
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
16
|
-
const file_contents_function_1 = require("../utils/file-contents.function");
|
|
17
16
|
function projectSetup(options) {
|
|
18
17
|
return (tree, context) => __awaiter(this, void 0, void 0, function* () {
|
|
19
18
|
context.logger.info('Adding @provoly/dashboard to project');
|
|
20
19
|
addDependencies(tree, options);
|
|
21
20
|
context.logger.info('Plan node install');
|
|
22
21
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
23
|
-
|
|
22
|
+
const modifications = [];
|
|
23
|
+
modifications.push(addProvolyForRoot(options, context, tree));
|
|
24
|
+
modifications.push(...addPipelinesImport(options, context, tree));
|
|
25
|
+
return (0, schematics_1.chain)(modifications.filter((modif) => !!modif));
|
|
24
26
|
});
|
|
25
27
|
}
|
|
26
28
|
exports.default = projectSetup;
|
|
27
29
|
function addDependencies(tree, options) {
|
|
28
30
|
console.log('Adding provoly dependencies');
|
|
29
|
-
const packageJson = JSON.parse((0, file_contents_function_1.getFileContent)(tree, '/package.json'));
|
|
30
31
|
const dependencies = [
|
|
31
|
-
{ type: dependencies_1.NodeDependencyType.Default, version: packageJson.version, name: '@provoly/dashboard' },
|
|
32
32
|
{ type: dependencies_1.NodeDependencyType.Default, version: '^9.0.0', name: 'uuid' },
|
|
33
33
|
{ type: dependencies_1.NodeDependencyType.Default, version: '^3.1.3', name: 'fast-deep-equal' },
|
|
34
34
|
{ type: dependencies_1.NodeDependencyType.Default, version: '^1.2.3', name: 'css-element-queries' },
|
|
@@ -36,6 +36,7 @@ function addDependencies(tree, options) {
|
|
|
36
36
|
{ type: dependencies_1.NodeDependencyType.Dev, version: '^9.0.0', name: '@types/uuid' }
|
|
37
37
|
];
|
|
38
38
|
if (options.widgets.includes('widget-map')) {
|
|
39
|
+
console.log('...Adding provoly dependencies for map');
|
|
39
40
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^7.0.0', name: 'ol' });
|
|
40
41
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^4.1.0', name: 'ol-layerswitcher' });
|
|
41
42
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^10.6.0', name: 'ol-mapbox-style' });
|
|
@@ -49,11 +50,13 @@ function addDependencies(tree, options) {
|
|
|
49
50
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^3.4.1', name: '@types/shpjs' });
|
|
50
51
|
}
|
|
51
52
|
if (options.widgets.includes('widget-aggregated-chart')) {
|
|
53
|
+
console.log('...Adding provoly dependencies for charts');
|
|
52
54
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^5.21.0', name: 'vega' });
|
|
53
55
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^6.20.5', name: 'vega-embed' });
|
|
54
56
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^5.2.0', name: 'vega-lite' });
|
|
55
57
|
}
|
|
56
58
|
if (options.widgets.includes('widget-graph')) {
|
|
59
|
+
console.log('...Adding provoly dependencies for graphs');
|
|
57
60
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^3.0.0', name: 'd3-drag' });
|
|
58
61
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^3.0.0', name: 'd3-force' });
|
|
59
62
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^3.0.0', name: 'd3-selection' });
|
|
@@ -64,6 +67,7 @@ function addDependencies(tree, options) {
|
|
|
64
67
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^0.7.47', name: '@types/dagre' });
|
|
65
68
|
}
|
|
66
69
|
if (options.pipeline) {
|
|
70
|
+
console.log('...Adding provoly dependencies for pipelines');
|
|
67
71
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^0.7.10', name: 'litegraph.js' });
|
|
68
72
|
}
|
|
69
73
|
dependencies.forEach((d) => {
|
|
@@ -145,18 +149,17 @@ function provolyUrls(options, context) {
|
|
|
145
149
|
return JSON.stringify(urlOptions);
|
|
146
150
|
}
|
|
147
151
|
function addProvolyForRoot(options, context, tree) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return (0, utility_1.addRootImport)(options.projectName, ({ code, external }) => code `${external(pryImportModule, '@provoly/dashboard')}.forRoot(
|
|
152
|
+
context.logger.info('Adding provoly module import');
|
|
153
|
+
const pryImportModule = 'PryDashboardModule';
|
|
154
|
+
try {
|
|
155
|
+
const modulePath = 'src/app/app.module.ts';
|
|
156
|
+
if (!tree.exists(modulePath)) {
|
|
157
|
+
throw new schematics_1.SchematicsException(`Module file ${modulePath} doesn't exist.`);
|
|
158
|
+
}
|
|
159
|
+
const recorder = tree.beginUpdate(modulePath);
|
|
160
|
+
tree.commitUpdate(recorder);
|
|
161
|
+
// Add an import `MyLibModule` from `provoly/dashboard` to the root of the user's project.
|
|
162
|
+
return (0, utility_1.addRootImport)(options.projectName, ({ code, external }) => code `${external(pryImportModule, '@provoly/dashboard')}.forRoot(
|
|
160
163
|
${widgetImports(options, context, external)},
|
|
161
164
|
${provolyUrls(options, context)},
|
|
162
165
|
{
|
|
@@ -192,11 +195,47 @@ function addProvolyForRoot(options, context, tree) {
|
|
|
192
195
|
},
|
|
193
196
|
[]
|
|
194
197
|
)`);
|
|
198
|
+
}
|
|
199
|
+
catch (e) {
|
|
200
|
+
context.logger.info('Project module not found: You have to manually add Provoly import');
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function addPipelinesImport(options, context, tree) {
|
|
205
|
+
if (options.pipeline) {
|
|
206
|
+
context.logger.info('Adding pipeline import');
|
|
207
|
+
const modules = [
|
|
208
|
+
{
|
|
209
|
+
name: 'PryPipelineModule',
|
|
210
|
+
path: '@provoly/dashboard/pipeline'
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'PryPipelineInputDatasetDefinitionModule',
|
|
214
|
+
path: '@provoly/dashboard/pipeline-components/input-datasource'
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: 'PryPipelineOutputDatasetDefinitionModule',
|
|
218
|
+
path: '@provoly/dashboard/pipeline'
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: 'PryPipelineFilterModule',
|
|
222
|
+
path: '@provoly/dashboard/pipeline-components/output-dataset'
|
|
223
|
+
}
|
|
224
|
+
];
|
|
225
|
+
try {
|
|
226
|
+
const modulePath = 'src/app/app.module.ts';
|
|
227
|
+
if (!tree.exists(modulePath)) {
|
|
228
|
+
throw new schematics_1.SchematicsException(`Module file ${modulePath} doesn't exist.`);
|
|
229
|
+
}
|
|
230
|
+
const recorder = tree.beginUpdate(modulePath);
|
|
231
|
+
tree.commitUpdate(recorder);
|
|
232
|
+
// Add an import `MyLibModule` from `provoly/dashboard` to the root of the user's project.
|
|
233
|
+
return modules.map((module) => (0, utility_1.addRootImport)(options.projectName, ({ code, external }) => code `${external(module.name, module.path)}`));
|
|
195
234
|
}
|
|
196
235
|
catch (e) {
|
|
197
|
-
context.logger.info('
|
|
198
|
-
return;
|
|
236
|
+
context.logger.info('Cannot automatically add pipelines imports.');
|
|
199
237
|
}
|
|
200
|
-
}
|
|
238
|
+
}
|
|
239
|
+
return [];
|
|
201
240
|
}
|
|
202
241
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAsG;AACtG,4DAA0E;AAC1E,yDAA4D;AAC5D,2EAAwG;AAGxG,SAAwB,YAAY,CAAC,OAA4B;IAC/D,OAAO,CAAO,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;QAC5D,eAAe,CAAC,IAAI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BAA6B;aACpC;YACD;gBACE,IAAI,EAAE,yBAAyB;gBAC/B,IAAI,EAAE,uDAAuD;aAC9D;SACF,CAAC;QAEF,IAAI;YACF,MAAM,UAAU,GAAG,uBAAuB,CAAC;YAC3C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE;gBAC5B,MAAM,IAAI,gCAAmB,CAAC,eAAe,UAAU,iBAAiB,CAAC,CAAC;aAC3E;YACD,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;YAC9C,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YAE5B,0FAA0F;YAC1F,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAC5B,IAAA,uBAAa,EAAC,OAAO,CAAC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CACxG,CAAC;SACH;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;SACpE;KACF;IACD,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -23,7 +23,6 @@ describe(schematicName, () => {
|
|
|
23
23
|
it('should add main dependencies', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
24
24
|
yield runner.runSchematic(schematicName, { widgets: [], pipeline: false, projectName: 'test-project' }, tree);
|
|
25
25
|
const packageJson = JSON.parse((0, file_contents_function_1.getFileContent)(tree, '/package.json'));
|
|
26
|
-
expect(packageJson.dependencies['@provoly/dashboard']).toBe(packageJson.version);
|
|
27
26
|
expect(packageJson.dependencies['uuid']).toBe('^9.0.0');
|
|
28
27
|
expect(packageJson.devDependencies['@types/uuid']).toBe('^9.0.0');
|
|
29
28
|
expect(packageJson.dependencies['ol']).toBe(undefined);
|
|
@@ -32,7 +31,6 @@ describe(schematicName, () => {
|
|
|
32
31
|
it('should add specific dependencies', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
32
|
yield runner.runSchematic(schematicName, { widgets: ['widget-map'], pipeline: false, projectName: 'test-project' }, tree);
|
|
34
33
|
const packageJson = JSON.parse((0, file_contents_function_1.getFileContent)(tree, '/package.json'));
|
|
35
|
-
expect(packageJson.dependencies['@provoly/dashboard']).toBe(packageJson.version);
|
|
36
34
|
expect(packageJson.dependencies['uuid']).toBe('^9.0.0');
|
|
37
35
|
expect(packageJson.devDependencies['@types/uuid']).toBe('^9.0.0');
|
|
38
36
|
expect(packageJson.dependencies['ol']).toBe('^7.0.0');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/schematics/ng-add/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAkD;AAClD,gEAAuF;AACvF,6BAA6B;AAC7B,4EAAiE;AAIjE,MAAM,aAAa,GAAG,QAAQ,CAAC;AAC/B,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC,CAAC;IACjG,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,8BAA8B,EAAE,GAAS,EAAE;QAC5C,MAAM,MAAM,CAAC,YA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AAc,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/E,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -13,71 +13,32 @@
|
|
|
13
13
|
.o-datasources {
|
|
14
14
|
&__list {
|
|
15
15
|
@extend %list-unstyled;
|
|
16
|
-
gap: toRem(
|
|
17
|
-
display:
|
|
18
|
-
|
|
16
|
+
gap: toRem(15) toRem(30);
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
19
|
margin: toRem(10) 0;
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
margin-bottom: toRem(40);
|
|
26
|
-
|
|
27
|
-
.a-btn--icon-text {
|
|
28
|
-
@include outlineOnFocus();
|
|
29
|
-
gap: toRem(11) toRem(15);
|
|
30
|
-
padding-left: toRem(15);
|
|
31
|
-
padding-right: toRem(15);
|
|
22
|
+
&__main {
|
|
23
|
+
flex: 1 1;
|
|
24
|
+
overflow: overlay;
|
|
25
|
+
}
|
|
32
26
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
width: toRem(25);
|
|
38
|
-
height: toRem(25);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
27
|
+
&__bottom {
|
|
28
|
+
padding: toRem(5);
|
|
42
29
|
}
|
|
43
30
|
|
|
44
31
|
&__card,
|
|
45
32
|
.o-pry-card {
|
|
33
|
+
border-radius: toRem(15);
|
|
34
|
+
padding: toRem(5) toRem(10);
|
|
46
35
|
display: flex;
|
|
47
|
-
flex-direction:
|
|
48
|
-
|
|
49
|
-
gap:
|
|
50
|
-
height: 100%;
|
|
51
|
-
min-height: toRem(100);
|
|
52
|
-
padding: toRem(18) toRem(13) toRem(15) toRem(13);
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
|
|
55
|
-
&__name {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: row;
|
|
58
|
-
align-items: flex-start;
|
|
59
|
-
gap: toRem(4);
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 5px;
|
|
60
39
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
margin-bottom: 0;
|
|
64
|
-
overflow-wrap: break-word;
|
|
65
|
-
transform: translateY(toRem(-1));
|
|
66
|
-
}
|
|
40
|
+
p {
|
|
41
|
+
margin-bottom: 0;
|
|
67
42
|
}
|
|
68
|
-
|
|
69
|
-
/*.a-checkbox__checkmark{
|
|
70
|
-
width: 1.5rem;
|
|
71
|
-
height: 1.5rem;
|
|
72
|
-
border-radius: 0.75rem;
|
|
73
|
-
|
|
74
|
-
&:before{
|
|
75
|
-
left: 0.45rem;
|
|
76
|
-
top: 0.15rem;
|
|
77
|
-
width: 0.35rem;
|
|
78
|
-
height: 0.75rem;
|
|
79
|
-
border-width: 0 0.125rem 0.125rem 0;
|
|
80
|
-
}
|
|
81
|
-
}*/
|
|
82
43
|
}
|
|
83
44
|
}
|