@provoly/dashboard 0.25.0 → 0.25.2
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/assets/svgs/format_bold.svg +1 -0
- package/assets/svgs/format_details.svg +1 -0
- package/assets/svgs/format_italic.svg +1 -0
- package/assets/svgs/format_list_bulleted.svg +1 -0
- package/assets/svgs/format_list_numbered.svg +1 -0
- package/assets/svgs/format_quote.svg +1 -0
- package/assets/svgs/format_strikethrough.svg +1 -0
- package/assets/svgs/format_table.svg +1 -0
- package/assets/svgs/format_title.svg +1 -0
- package/assets/svgs/format_underlined.svg +1 -0
- package/components/text-editor/component/text-editor.component.d.ts +38 -0
- package/components/text-editor/i18n/en.translations.d.ts +22 -0
- package/components/text-editor/i18n/fr.translations.d.ts +22 -0
- package/components/text-editor/index.d.ts +5 -0
- package/components/text-editor/mdToHtml.pipe.d.ts +7 -0
- package/components/text-editor/public-api.d.ts +5 -0
- package/components/text-editor/service/text-editor.service.d.ts +40 -0
- package/components/text-editor/style/_o-text-editor.scss +120 -0
- package/components/text-editor/style/css.component.d.ts +5 -0
- package/components/text-editor/text-editor.module.d.ts +17 -0
- package/dataset/components/dataset-detail/dataset-detail.component.d.ts +11 -4
- package/dataset/components/dataset-version-form/dataset-version-form.component.d.ts +23 -0
- package/dataset/dataset.module.d.ts +7 -5
- package/dataset/i18n/en.translations.d.ts +6 -0
- package/dataset/i18n/fr.translations.d.ts +6 -0
- package/dataset/style/_o-pry-dataset-detail.scss +61 -25
- package/dataset/style/_o-pry-dataset-version-form.scss +7 -0
- package/esm2022/admin/components/admin-classes/admin-classes-customize/admin-classes-customize.component.mjs +1 -1
- package/esm2022/admin/components/admin-classes/admin-classes-select/admin-classes-select.component.mjs +1 -1
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-select/admin-attributes-select.component.mjs +1 -1
- package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +1 -1
- package/esm2022/admin/components/admin-environment/admin-environment-select/admin-environment-select.component.mjs +1 -1
- package/esm2022/admin/components/admin-fields/admin-fields-select/admin-fields-select.component.mjs +1 -1
- package/esm2022/admin/components/admin-metadata/admin-select-metadata/admin-select-metadata.component.mjs +1 -1
- package/esm2022/admin/components/admin-metadata-rules/admin-select-metadata-rules/admin-select-metadata-rules.component.mjs +1 -1
- package/esm2022/admin/components/admin-metadata-user/admin-user-select-metadata/admin-user-select-metadata.component.mjs +1 -1
- package/esm2022/admin/components/admin-predicates/admin-predicates-select/admin-predicates-select.component.mjs +1 -1
- package/esm2022/admin/components/admin-relation-types/admin-relation-types-select/admin-relation-types-select.component.mjs +1 -1
- package/esm2022/admin/components/admin-user/admin-user-select/admin-user-select.component.mjs +1 -1
- package/esm2022/components/text-editor/component/text-editor.component.mjs +126 -0
- package/esm2022/components/text-editor/i18n/en.translations.mjs +23 -0
- package/esm2022/components/text-editor/i18n/fr.translations.mjs +23 -0
- package/esm2022/components/text-editor/mdToHtml.pipe.mjs +17 -0
- package/esm2022/components/text-editor/provoly-dashboard-components-text-editor.mjs +5 -0
- package/esm2022/components/text-editor/public-api.mjs +6 -0
- package/esm2022/components/text-editor/service/text-editor.service.mjs +136 -0
- package/esm2022/components/text-editor/style/css.component.mjs +11 -0
- package/esm2022/components/text-editor/text-editor.module.mjs +32 -0
- package/esm2022/dataset/components/dataset-card/dataset-card.component.mjs +1 -1
- package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +42 -9
- package/esm2022/dataset/components/dataset-version-form/dataset-version-form.component.mjs +58 -0
- package/esm2022/dataset/dataset.module.mjs +25 -8
- package/esm2022/dataset/i18n/en.translations.mjs +7 -1
- package/esm2022/dataset/i18n/fr.translations.mjs +7 -1
- package/esm2022/dataset/style/css.component.mjs +3 -3
- package/esm2022/filters/autocomplete/autocomplete.component.mjs +2 -2
- package/esm2022/import/components/import.component.mjs +39 -21
- package/esm2022/import/import.module.mjs +12 -5
- package/esm2022/import/store/import.actions.mjs +1 -1
- package/esm2022/import/store/import.effects.mjs +4 -2
- package/esm2022/import/store/import.service.mjs +3 -2
- package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +3 -3
- package/esm2022/lib/core/components/tabs/tab-group.component.mjs +7 -3
- package/esm2022/lib/core/i18n/en.translations.mjs +4 -3
- package/esm2022/lib/core/i18n/fr.translations.mjs +2 -1
- package/esm2022/lib/core/store/data-source/data-source.actions.mjs +4 -2
- package/esm2022/lib/core/store/data-source/data-source.effects.mjs +2 -1
- package/esm2022/lib/core/store/data-source/data-source.model.mjs +1 -1
- package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +4 -1
- package/esm2022/lib/core/store/data-source/data-source.service.mjs +13 -1
- package/esm2022/lib/core/store/search/filter-param-encoder.mjs +27 -0
- package/esm2022/lib/core/store/search/search.selectors.mjs +2 -2
- package/esm2022/lib/core/store/search/search.service.mjs +4 -3
- package/esm2022/restitution/style/css.component.mjs +2 -2
- package/esm2022/toolbox/components/share/share.component.mjs +47 -18
- package/esm2022/toolbox/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +3 -3
- package/fesm2022/provoly-dashboard-admin.mjs +12 -12
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-components-text-editor.mjs +356 -0
- package/fesm2022/provoly-dashboard-components-text-editor.mjs.map +1 -0
- package/fesm2022/provoly-dashboard-dataset.mjs +128 -18
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-filters-autocomplete.mjs +1 -1
- package/fesm2022/provoly-dashboard-filters-autocomplete.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-import.mjs +53 -25
- package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +2 -2
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +47 -19
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +72 -10
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/import/components/import.component.d.ts +10 -5
- package/import/import.module.d.ts +2 -1
- package/import/store/import.actions.d.ts +2 -0
- package/import/store/import.service.d.ts +1 -1
- package/lib/core/components/tabs/tab-group.component.d.ts +3 -2
- package/lib/core/i18n/en.translations.d.ts +2 -1
- package/lib/core/i18n/fr.translations.d.ts +1 -0
- package/lib/core/store/data-source/data-source.actions.d.ts +10 -0
- package/lib/core/store/data-source/data-source.effects.d.ts +8 -5
- package/lib/core/store/data-source/data-source.model.d.ts +3 -0
- package/lib/core/store/data-source/data-source.service.d.ts +2 -0
- package/lib/core/store/search/filter-param-encoder.d.ts +5 -0
- package/package.json +36 -30
- package/restitution/style/_o-restitution.scss +0 -1
- package/styles/base/_utils.scss +4 -0
- package/styles/components/_o-text-panel.scss +64 -0
- package/styles/main.scss +1 -0
- package/styles-theme/components-theme/_a-form-field.theme.scss +2 -0
- package/toolbox/components/share/share.component.d.ts +13 -7
- package/toolbox/style/_o-dashboard-details.component.scss +3 -25
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M272-200v-560h221q65 0 120 40t55 111q0 51-23 78.5T602-491q25 11 55.5 41t30.5 90q0 89-65 124.5T501-200H272Zm121-112h104q48 0 58.5-24.5T566-372q0-11-10.5-35.5T494-432H393v120Zm0-228h93q33 0 48-17t15-38q0-24-17-39t-44-15h-95v109Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M200-280h560v-80H200v80Zm0-160h560v-80H200v80Zm0-160h400v-80H200v80Zm-40 440q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm0 0v-480 480Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M200-200v-100h160l120-360H320v-100h400v100H580L460-300h140v100H200Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M360-200v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360ZM200-160q-33 0-56.5-23.5T120-240q0-33 23.5-56.5T200-320q33 0 56.5 23.5T280-240q0 33-23.5 56.5T200-160Zm0-240q-33 0-56.5-23.5T120-480q0-33 23.5-56.5T200-560q33 0 56.5 23.5T280-480q0 33-23.5 56.5T200-400Zm0-240q-33 0-56.5-23.5T120-720q0-33 23.5-56.5T200-800q33 0 56.5 23.5T280-720q0 33-23.5 56.5T200-640Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M120-80v-60h100v-30h-60v-60h60v-30H120v-60h120q17 0 28.5 11.5T280-280v40q0 17-11.5 28.5T240-200q17 0 28.5 11.5T280-160v40q0 17-11.5 28.5T240-80H120Zm0-280v-110q0-17 11.5-28.5T160-510h60v-30H120v-60h120q17 0 28.5 11.5T280-560v70q0 17-11.5 28.5T240-450h-60v30h100v60H120Zm60-280v-180h-60v-60h120v240h-60Zm180 440v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="m228-240 92-160q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 23-5.5 42.5T458-480L320-240h-92Zm360 0 92-160q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 23-5.5 42.5T818-480L680-240h-92ZM320-500q25 0 42.5-17.5T380-560q0-25-17.5-42.5T320-620q-25 0-42.5 17.5T260-560q0 25 17.5 42.5T320-500Zm360 0q25 0 42.5-17.5T740-560q0-25-17.5-42.5T680-620q-25 0-42.5 17.5T620-560q0 25 17.5 42.5T680-500Zm0-60Zm-360 0Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M80-400v-80h800v80H80Zm340-160v-120H200v-120h560v120H540v120H420Zm0 400v-160h120v160H420Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200q-33 0-56.5-23.5T120-200Zm80-400h560v-160H200v160Zm213 200h134v-120H413v120Zm0 200h134v-120H413v120ZM200-400h133v-120H200v120Zm427 0h133v-120H627v120ZM200-200h133v-120H200v120Zm427 0h133v-120H627v120Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M420-160v-520H200v-120h560v120H540v520H420Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M200-120v-80h560v80H200Zm280-160q-101 0-157-63t-56-167v-330h103v336q0 56 28 91t82 35q54 0 82-35t28-91v-336h103v330q0 104-56 167t-157 63Z"/></svg>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { MdStyle, TextEditorService } from '../service/text-editor.service';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PryTextEditorComponent implements ControlValueAccessor {
|
|
7
|
+
private service;
|
|
8
|
+
value: string;
|
|
9
|
+
onChange: (value: string) => void;
|
|
10
|
+
onTouched: () => void;
|
|
11
|
+
touched: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
valueChanged$: Subject<string>;
|
|
14
|
+
tabView: boolean;
|
|
15
|
+
tabs: string[];
|
|
16
|
+
activeTab: string;
|
|
17
|
+
textareaRef?: ElementRef<HTMLTextAreaElement>;
|
|
18
|
+
buttons: {
|
|
19
|
+
style: MdStyle;
|
|
20
|
+
icon: string;
|
|
21
|
+
}[];
|
|
22
|
+
constructor(service: TextEditorService);
|
|
23
|
+
writeValue(value: string): void;
|
|
24
|
+
registerOnChange(onChange: any): void;
|
|
25
|
+
registerOnTouched(onTouched: any): void;
|
|
26
|
+
markAsTouched(): void;
|
|
27
|
+
setDisabledState(disabled: boolean): void;
|
|
28
|
+
onValueChange($event: string): void;
|
|
29
|
+
get textarea(): HTMLTextAreaElement;
|
|
30
|
+
getActiveTabIndex(): number;
|
|
31
|
+
formatText(style: MdStyle): void;
|
|
32
|
+
getUpdatedValue(value: string, lineStart?: number): string;
|
|
33
|
+
getSelectionLineIndex(): number;
|
|
34
|
+
focusSelection(start: number, end: number): void;
|
|
35
|
+
insertListStyleCharacter(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PryTextEditorComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PryTextEditorComponent, "pry-text-editor", never, { "tabView": { "alias": "tabView"; "required": false; }; }, {}, never, never, false, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const enTranslations: {
|
|
2
|
+
'@pry': {
|
|
3
|
+
component: {
|
|
4
|
+
textEditor: {
|
|
5
|
+
textAreaLabel: string;
|
|
6
|
+
preview: string;
|
|
7
|
+
write: string;
|
|
8
|
+
h3: string;
|
|
9
|
+
bold: string;
|
|
10
|
+
italic: string;
|
|
11
|
+
underline: string;
|
|
12
|
+
strikeThrough: string;
|
|
13
|
+
blockquote: string;
|
|
14
|
+
list: string;
|
|
15
|
+
orderedList: string;
|
|
16
|
+
table: string;
|
|
17
|
+
details: string;
|
|
18
|
+
more: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const frTranslations: {
|
|
2
|
+
'@pry': {
|
|
3
|
+
component: {
|
|
4
|
+
textEditor: {
|
|
5
|
+
textAreaLabel: string;
|
|
6
|
+
preview: string;
|
|
7
|
+
write: string;
|
|
8
|
+
h3: string;
|
|
9
|
+
bold: string;
|
|
10
|
+
italic: string;
|
|
11
|
+
underline: string;
|
|
12
|
+
strikeThrough: string;
|
|
13
|
+
blockquote: string;
|
|
14
|
+
list: string;
|
|
15
|
+
orderedList: string;
|
|
16
|
+
table: string;
|
|
17
|
+
details: string;
|
|
18
|
+
more: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MdToHtmlPipe implements PipeTransform {
|
|
4
|
+
transform(value?: string): string | Promise<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MdToHtmlPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MdToHtmlPipe, "mdToHtml", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare const mdStyles: {
|
|
3
|
+
h1: string;
|
|
4
|
+
h2: string;
|
|
5
|
+
h3: string;
|
|
6
|
+
h4: string;
|
|
7
|
+
h5: string;
|
|
8
|
+
h6: string;
|
|
9
|
+
bold: string;
|
|
10
|
+
italic: string;
|
|
11
|
+
underline: string;
|
|
12
|
+
strikeThrough: string;
|
|
13
|
+
code: string;
|
|
14
|
+
blockquote: string;
|
|
15
|
+
list: string;
|
|
16
|
+
orderedList: string;
|
|
17
|
+
table: string;
|
|
18
|
+
details: string;
|
|
19
|
+
};
|
|
20
|
+
export type MdStyle = keyof typeof mdStyles;
|
|
21
|
+
export declare const wrapperStyles: MdStyle[];
|
|
22
|
+
export declare const selfClosingStyles: MdStyle[];
|
|
23
|
+
export declare const listStyles: MdStyle[];
|
|
24
|
+
export declare const otherStyles: MdStyle[];
|
|
25
|
+
export declare class TextEditorService {
|
|
26
|
+
constructor();
|
|
27
|
+
getClosingTag(style: MdStyle): string;
|
|
28
|
+
addMarkdown(text: string, style: MdStyle): string;
|
|
29
|
+
toggleWrapperStyle(text: string, style: MdStyle): string;
|
|
30
|
+
toggleSelfClosingStyle(text: string, style: MdStyle): string;
|
|
31
|
+
toggleListStyle(text: string, style: MdStyle): string;
|
|
32
|
+
insertOtherStyle(text: string, style: MdStyle): string;
|
|
33
|
+
escapeRegExp(text: string): string;
|
|
34
|
+
isListLine(line: string): boolean;
|
|
35
|
+
isOrderedListLine(text: string): boolean;
|
|
36
|
+
getListCharacter(previousLine: string): string;
|
|
37
|
+
updateOrderedListLines(text: string): string;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorService, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TextEditorService>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@use '../../../styles/abstracts/index' as *;
|
|
2
|
+
@use '../../../styles/components/o-text-panel' as *;
|
|
3
|
+
@use '../../../styles/components/o-draggable-menu' as *;
|
|
4
|
+
@use '../../../styles-theme/components-theme/o-draggable-menu.theme' as *;
|
|
5
|
+
|
|
6
|
+
/* Organism - text editor */
|
|
7
|
+
|
|
8
|
+
.o-text-editor {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
|
|
12
|
+
&__header {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
align-items: center;
|
|
16
|
+
|
|
17
|
+
> .a-tooltip:last-child {
|
|
18
|
+
// indent tooltip
|
|
19
|
+
&.a-tooltip[data-tooltip][data-tooltip-position=bottom]::after {
|
|
20
|
+
left: calc(50% - 15px);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__tabs {
|
|
26
|
+
display: flex;
|
|
27
|
+
gap: toRem(5);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__tab {
|
|
31
|
+
padding: 0 toRem(10);
|
|
32
|
+
font-size: toRem(10);
|
|
33
|
+
height: toRem(18);
|
|
34
|
+
margin-top: -3px;
|
|
35
|
+
|
|
36
|
+
&.-active {
|
|
37
|
+
margin-top: -1px;
|
|
38
|
+
background-color: white;
|
|
39
|
+
border: 1px solid #BCCAD8;
|
|
40
|
+
border-top: none;
|
|
41
|
+
border-radius: 0 0 4px 4px;
|
|
42
|
+
font-weight: bold;
|
|
43
|
+
z-index: 2;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__buttons {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-wrap: wrap;
|
|
50
|
+
align-items: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__button {
|
|
54
|
+
padding: toRem(5) toRem(5);
|
|
55
|
+
overflow: visible;
|
|
56
|
+
color: #113b6e;
|
|
57
|
+
|
|
58
|
+
&:hover {
|
|
59
|
+
@include changeBgColor(
|
|
60
|
+
$targetBgColor: #D8E7F7
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__content {
|
|
66
|
+
display: flex;
|
|
67
|
+
gap: toRem(10);
|
|
68
|
+
min-height: toRem(203);
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__tab-panel {
|
|
73
|
+
width: 100%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__textarea {
|
|
77
|
+
&.-half-width {
|
|
78
|
+
flex-grow: 0;
|
|
79
|
+
width: auto;
|
|
80
|
+
}
|
|
81
|
+
&.-full-width {
|
|
82
|
+
flex-grow: 1;
|
|
83
|
+
width: 100%;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.-remove-corner-radius {
|
|
87
|
+
border-bottom-left-radius: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&__preview {
|
|
92
|
+
flex: 1;
|
|
93
|
+
background-color: white;
|
|
94
|
+
padding: toRem(7) toRem(12) toRem(4);
|
|
95
|
+
border: 1px solid #BCCAD8;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 100%;
|
|
99
|
+
overflow-y: auto;
|
|
100
|
+
|
|
101
|
+
@extend %o-text-panel;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.o-draggable-menu--text-editor {
|
|
106
|
+
@extend .o-draggable-menu;
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
|
|
110
|
+
.o-draggable-menu__list__item {
|
|
111
|
+
width: 100%;
|
|
112
|
+
font-size: toRem(14);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.o-text-editor__button {
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
gap: toRem(5);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PryTextEditorCssComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PryTextEditorCssComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PryTextEditorCssComponent, "pry-text-editor-css", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PryI18nService } from '@provoly/dashboard';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./component/text-editor.component";
|
|
4
|
+
import * as i2 from "./style/css.component";
|
|
5
|
+
import * as i3 from "./mdToHtml.pipe";
|
|
6
|
+
import * as i4 from "@angular/common";
|
|
7
|
+
import * as i5 from "@angular/forms";
|
|
8
|
+
import * as i6 from "@provoly/dashboard";
|
|
9
|
+
import * as i7 from "@angular/cdk/overlay";
|
|
10
|
+
import * as i8 from "@provoly/dashboard/toolbox";
|
|
11
|
+
export declare class PryTextEditorModule {
|
|
12
|
+
private pryTranslateService;
|
|
13
|
+
constructor(pryTranslateService: PryI18nService);
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PryTextEditorModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PryTextEditorModule, [typeof i1.PryTextEditorComponent, typeof i2.PryTextEditorCssComponent, typeof i3.MdToHtmlPipe], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.PryCoreModule, typeof i6.PryIconModule, typeof i6.PryI18nModule, typeof i7.CdkOverlayOrigin, typeof i7.CdkConnectedOverlay, typeof i8.PryToolboxModule], [typeof i1.PryTextEditorComponent, typeof i3.MdToHtmlPipe]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PryTextEditorModule>;
|
|
17
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
|
-
import { Dataset, DatasetVersion, ResultSets, ViewMode, WidgetManifest } from '@provoly/dashboard';
|
|
3
|
+
import { Dataset, DatasetVersion, ResultSets, SubscriptionnerDirective, ViewMode, WidgetManifest } from '@provoly/dashboard';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class PryDatasetDetailComponent implements OnInit {
|
|
6
|
+
export declare class PryDatasetDetailComponent extends SubscriptionnerDirective implements OnInit {
|
|
7
7
|
private store;
|
|
8
8
|
dataset: Dataset;
|
|
9
9
|
goToCatalog: EventEmitter<any>;
|
|
@@ -13,12 +13,15 @@ export declare class PryDatasetDetailComponent implements OnInit {
|
|
|
13
13
|
protected readonly ViewMode: typeof ViewMode;
|
|
14
14
|
compId: number;
|
|
15
15
|
tab: number;
|
|
16
|
-
datasetItems$: Observable<ResultSets | null
|
|
16
|
+
datasetItems$: Observable<ResultSets | null>;
|
|
17
17
|
datasetVersions$: Observable<DatasetVersion[]>;
|
|
18
18
|
showModalStatus: boolean;
|
|
19
19
|
selectedDatasetVersion?: DatasetVersion;
|
|
20
20
|
selectedMode: ViewMode;
|
|
21
|
-
activeVersion$: Observable<
|
|
21
|
+
activeVersion$: Observable<DatasetVersion | undefined>;
|
|
22
|
+
isEditingVersion: boolean;
|
|
23
|
+
isPanelOpen: boolean;
|
|
24
|
+
selectedVersion?: DatasetVersion;
|
|
22
25
|
constructor(store: Store);
|
|
23
26
|
ngOnInit(): void;
|
|
24
27
|
goBack(): void;
|
|
@@ -30,6 +33,10 @@ export declare class PryDatasetDetailComponent implements OnInit {
|
|
|
30
33
|
getVersionTooltipContent(version: DatasetVersion, activeVersionId: string): "error" | "active" | "inactive" | "loading" | "invalid" | "unknown";
|
|
31
34
|
private deactivateVersion;
|
|
32
35
|
private activateVersion;
|
|
36
|
+
onTabSwitch($event: number): void;
|
|
37
|
+
togglePanel(selectedVersion?: DatasetVersion): void;
|
|
38
|
+
editVersion(): void;
|
|
39
|
+
formValidated($event: Partial<DatasetVersion>): void;
|
|
33
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryDatasetDetailComponent, never>;
|
|
34
41
|
static ɵcmp: i0.ɵɵComponentDeclaration<PryDatasetDetailComponent, "pry-dataset-detail", never, { "dataset": { "alias": "dataset"; "required": false; }; }, { "goToCatalog": "goToCatalog"; }, never, never, false, never>;
|
|
35
42
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DatasetVersion } from '@provoly/dashboard';
|
|
2
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
3
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
4
|
+
import { Store } from '@ngrx/store';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
interface DatasetVersionInfoForm {
|
|
7
|
+
productionDate: FormControl<string>;
|
|
8
|
+
producer: FormControl<string>;
|
|
9
|
+
additionalInformation: FormControl<string>;
|
|
10
|
+
}
|
|
11
|
+
export declare class PryDatasetVersionFormComponent implements OnInit {
|
|
12
|
+
private store;
|
|
13
|
+
version?: DatasetVersion;
|
|
14
|
+
form: FormGroup<DatasetVersionInfoForm>;
|
|
15
|
+
maxDate: string;
|
|
16
|
+
formValidated: EventEmitter<Partial<DatasetVersion>>;
|
|
17
|
+
constructor(store: Store);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
onSubmit(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PryDatasetVersionFormComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PryDatasetVersionFormComponent, "pry-dataset-version-form", never, { "version": { "alias": "version"; "required": false; }; }, { "formValidated": "formValidated"; }, never, never, false, never>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -4,14 +4,16 @@ import * as i1 from "./components/dataset.component";
|
|
|
4
4
|
import * as i2 from "./style/css.component";
|
|
5
5
|
import * as i3 from "./components/dataset-card/dataset-card.component";
|
|
6
6
|
import * as i4 from "./components/dataset-detail/dataset-detail.component";
|
|
7
|
-
import * as i5 from "
|
|
8
|
-
import * as i6 from "@
|
|
9
|
-
import * as i7 from "@
|
|
10
|
-
import * as i8 from "@
|
|
7
|
+
import * as i5 from "./components/dataset-version-form/dataset-version-form.component";
|
|
8
|
+
import * as i6 from "@angular/common";
|
|
9
|
+
import * as i7 from "@provoly/dashboard";
|
|
10
|
+
import * as i8 from "@angular/forms";
|
|
11
|
+
import * as i9 from "@provoly/dashboard/components/sinceDate";
|
|
12
|
+
import * as i10 from "@provoly/dashboard/components/text-editor";
|
|
11
13
|
export declare class PryDatasetModule {
|
|
12
14
|
private pryTranslateService;
|
|
13
15
|
constructor(pryTranslateService: PryI18nService);
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryDatasetModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PryDatasetModule, [typeof i1.PryDatasetComponent, typeof i2.PryDatasetCssComponent, typeof i3.PryDatasetCardComponent, typeof i4.PryDatasetDetailComponent], [typeof
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PryDatasetModule, [typeof i1.PryDatasetComponent, typeof i2.PryDatasetCssComponent, typeof i3.PryDatasetCardComponent, typeof i4.PryDatasetDetailComponent, typeof i5.PryDatasetVersionFormComponent], [typeof i6.CommonModule, typeof i7.PryIconModule, typeof i7.PryCoreModule, typeof i7.PryOverlayModule, typeof i7.PryI18nModule, typeof i8.FormsModule, typeof i7.PryDashboardModule, typeof i9.PrySinceDateModule, typeof i7.PryModalStatusModule, typeof i8.ReactiveFormsModule, typeof i10.PryTextEditorModule], [typeof i1.PryDatasetComponent, typeof i2.PryDatasetCssComponent, typeof i3.PryDatasetCardComponent, typeof i4.PryDatasetDetailComponent]>;
|
|
16
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<PryDatasetModule>;
|
|
17
19
|
}
|
|
@@ -4,9 +4,11 @@ export declare const enTranslations: {
|
|
|
4
4
|
consult: string;
|
|
5
5
|
title: string;
|
|
6
6
|
search: string;
|
|
7
|
+
description: string;
|
|
7
8
|
date: string;
|
|
8
9
|
status: string;
|
|
9
10
|
versionHistory: string;
|
|
11
|
+
information: string;
|
|
10
12
|
data: string;
|
|
11
13
|
table: string;
|
|
12
14
|
map: string;
|
|
@@ -18,6 +20,10 @@ export declare const enTranslations: {
|
|
|
18
20
|
noActiveVersion: string;
|
|
19
21
|
version: {
|
|
20
22
|
title: string;
|
|
23
|
+
productionDate: string;
|
|
24
|
+
producer: string;
|
|
25
|
+
additionalInformation: string;
|
|
26
|
+
notProvided: string;
|
|
21
27
|
INDEXING: string;
|
|
22
28
|
LOADING: string;
|
|
23
29
|
INACTIVE: string;
|
|
@@ -4,9 +4,11 @@ export declare const frTranslations: {
|
|
|
4
4
|
consult: string;
|
|
5
5
|
title: string;
|
|
6
6
|
search: string;
|
|
7
|
+
description: string;
|
|
7
8
|
date: string;
|
|
8
9
|
status: string;
|
|
9
10
|
versionHistory: string;
|
|
11
|
+
information: string;
|
|
10
12
|
data: string;
|
|
11
13
|
table: string;
|
|
12
14
|
map: string;
|
|
@@ -18,6 +20,10 @@ export declare const frTranslations: {
|
|
|
18
20
|
noActiveVersion: string;
|
|
19
21
|
version: {
|
|
20
22
|
title: string;
|
|
23
|
+
productionDate: string;
|
|
24
|
+
producer: string;
|
|
25
|
+
additionalInformation: string;
|
|
26
|
+
notProvided: string;
|
|
21
27
|
INDEXING: string;
|
|
22
28
|
LOADING: string;
|
|
23
29
|
INACTIVE: string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
@use '../../styles/abstracts/index' as *;
|
|
2
|
+
@use '../../styles-theme/abstracts-theme/variables.theme' as *;
|
|
3
|
+
@use '../../styles/components/o-text-panel' as *;
|
|
2
4
|
|
|
3
5
|
/* Organism - pry-dataset-detail */
|
|
4
6
|
|
|
@@ -6,19 +8,35 @@ pry-dataset-detail {
|
|
|
6
8
|
height: 100%;
|
|
7
9
|
width: 100%;
|
|
8
10
|
|
|
9
|
-
.dataset-
|
|
10
|
-
height: 80%;
|
|
11
|
+
.o-dataset-layout {
|
|
11
12
|
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
flex: 1 1;
|
|
14
|
-
padding: toRem(25);
|
|
15
13
|
|
|
16
|
-
|
|
14
|
+
&__content {
|
|
15
|
+
overflow: hidden;
|
|
17
16
|
height: 100%;
|
|
17
|
+
padding-left: 2rem;
|
|
18
|
+
padding-top: toRem(20);
|
|
19
|
+
flex: 1;
|
|
20
|
+
}
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
&__panel {
|
|
23
|
+
width: toRem(330);
|
|
24
|
+
border-left: solid 1px themed($theme-map, 'color', 'primary', 300);
|
|
25
|
+
padding: toRem(10);
|
|
26
|
+
font-size: 0.875rem;
|
|
27
|
+
color: #263340;
|
|
28
|
+
|
|
29
|
+
.a-label {
|
|
30
|
+
font-weight: 700;
|
|
21
31
|
}
|
|
32
|
+
|
|
33
|
+
.version-information {
|
|
34
|
+
@extend %o-text-panel;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.panel__content {
|
|
39
|
+
gap: toRem(15);
|
|
22
40
|
}
|
|
23
41
|
}
|
|
24
42
|
|
|
@@ -44,25 +62,43 @@ pry-dataset-detail {
|
|
|
44
62
|
}
|
|
45
63
|
}
|
|
46
64
|
|
|
47
|
-
.o-
|
|
48
|
-
|
|
49
|
-
padding-right: 2rem;
|
|
50
|
-
height: 100%;
|
|
51
|
-
}
|
|
65
|
+
.o-dataset-detail {
|
|
66
|
+
height: 80%;
|
|
52
67
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
&__information {
|
|
69
|
+
padding: toRem(10);
|
|
70
|
+
font-size: 0.875rem;
|
|
71
|
+
color: #263340;
|
|
72
|
+
background: white;
|
|
73
|
+
border-radius: 4px;
|
|
74
|
+
gap: toRem(15);
|
|
59
75
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
76
|
+
.a-label {
|
|
77
|
+
font-weight: 700;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
pry-tab-group {
|
|
82
|
+
height: 100%;
|
|
63
83
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
84
|
+
.o-tabs {
|
|
85
|
+
padding-left: 2rem;
|
|
86
|
+
padding-right: 2rem;
|
|
87
|
+
height: 100%;
|
|
88
|
+
|
|
89
|
+
&__panel__content {
|
|
90
|
+
height: 100%;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
tr {
|
|
96
|
+
height: toRem(30);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
td {
|
|
100
|
+
.a-btn + .a-btn {
|
|
101
|
+
margin-left: toRem(10);
|
|
102
|
+
}
|
|
67
103
|
}
|
|
68
104
|
}
|
|
@@ -83,7 +83,7 @@ export class AdminClassesCustomizeComponent extends SubscriptionnerDirective {
|
|
|
83
83
|
return this.defaultTileAttributes.length > 0 && this.defaultTileAttributes.length <= this.maxTilesAttributes;
|
|
84
84
|
}
|
|
85
85
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: AdminClassesCustomizeComponent, deps: [{ token: i1.Store }, { token: i2.Router }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
86
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: AdminClassesCustomizeComponent, selector: "pry-admin-classes-customize", usesInheritance: true, ngImport: i0, template: "<div class=\"o-pry-admin-classes-customize\">\n <h1 class=\"a-h1\" id=\"tab-custom\">{{ '@pry.admin.customize.title' | i18n }}</h1>\n\n <pry-tab-group translationStringBase=\"@pry.admin.\">\n <pry-tab [templateRef]=\"customizeTemplate\" name=\"customize.template\"></pry-tab>\n <pry-tab [templateRef]=\"customizeTable\" name=\"customize.table\"></pry-tab>\n <pry-tab [templateRef]=\"customizeSymbol\" name=\"classes.rules\"></pry-tab>\n <pry-tab [templateRef]=\"customizeTile\" name=\"customize.tile\"></pry-tab>\n </pry-tab-group>\n\n <ng-template #customizeTemplate>\n <pry-admin-classes-customize-tooltip\n (backPressed)=\"goBack()\"\n [currentClass]=\"currentClass$ | async\"\n ></pry-admin-classes-customize-tooltip>\n </ng-template>\n <ng-template #customizeTable>\n <div class=\"container\">\n <h2>{{ '@pry.admin.customize.tableAttrs' | i18n }}</h2>\n <div\n cdkDropList\n #defaultList=\"cdkDropList\"\n [cdkDropListData]=\"defaultAttributes\"\n [cdkDropListConnectedTo]=\"[notDefaultList]\"\n class=\"list\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <div class=\"item\" *ngFor=\"let item of defaultAttributes\" cdkDrag>{{ item }}</div>\n </div>\n </div>\n\n <div class=\"container\">\n <h2>{{ '@pry.admin.customize.noTableAttrs' | i18n }}</h2>\n <div\n cdkDropList\n #notDefaultList=\"cdkDropList\"\n [cdkDropListData]=\"otherAttributes\"\n [cdkDropListConnectedTo]=\"[defaultList]\"\n class=\"list\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <div class=\"item\" *ngFor=\"let item of otherAttributes\" cdkDrag>{{ item }}</div>\n </div>\n </div>\n\n <div class=\"m-btn-group -width-lg\">\n <button\n type=\"button\"\n class=\"a-btn a-btn--secondary\"\n (click)=\"goBack()\"\n [innerHTML]=\"'@pry.admin.cancel' | i18n\"\n ></button>\n <button class=\"a-btn a-btn--primary\" type=\"submit\" (click)=\"updateTableAttrs()\">\n {{ '@pry.admin.customize.updateTable' | i18n }}\n </button>\n </div>\n </ng-template>\n <ng-template #customizeSymbol>\n <pry-admin-classes-customize-symbol\n (backPressed)=\"goBack()\"\n [currentClass]=\"currentClass$ | async\"\n ></pry-admin-classes-customize-symbol>\n </ng-template>\n <ng-template #customizeTile>\n <div class=\"container\">\n <h2>{{ '@pry.admin.customize.tile' | i18n }}</h2>\n <div\n cdkDropList\n #defaultTilesList=\"cdkDropList\"\n [cdkDropListData]=\"defaultTileAttributes\"\n [cdkDropListConnectedTo]=\"[notDefaultTilesList]\"\n class=\"list\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <div class=\"item\" *ngFor=\"let item of defaultTileAttributes\" cdkDrag>{{ item }}</div>\n </div>\n </div>\n\n <div class=\"container\">\n <h2>{{ '@pry.admin.customize.noTileAttrs' | i18n }}</h2>\n <div\n cdkDropList\n #notDefaultTilesList=\"cdkDropList\"\n [cdkDropListData]=\"otherTileAttributes\"\n [cdkDropListConnectedTo]=\"[defaultTilesList]\"\n class=\"list\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <div class=\"item\" *ngFor=\"let item of otherTileAttributes\" cdkDrag>{{ item }}</div>\n </div>\n </div>\n\n <div>\n <ng-container *ngIf=\"!isTileConfValid()\">\n <p>{{ '@pry.admin.customize.tileHint' | i18n : { max: maxTilesAttributes } }}</p>\n </ng-container>\n </div>\n\n <div class=\"m-btn-group -width-lg\">\n <button\n type=\"button\"\n class=\"a-btn a-btn--secondary\"\n (click)=\"goBack()\"\n [innerHTML]=\"'@pry.admin.cancel' | i18n\"\n ></button>\n <button class=\"a-btn a-btn--primary\" type=\"submit\" (click)=\"updateTileAttrs()\" [disabled]=\"!isTileConfValid()\">\n {{ '@pry.admin.customize.updateTile' | i18n }}\n </button>\n </div>\n </ng-template>\n</div>\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.TabGroupComponent, selector: "pry-tab-group", inputs: ["translationStringBase"] }, { kind: "component", type: i4.TabComponent, selector: "pry-tab", inputs: ["name", "templateRef", "index"] }, { kind: "directive", type: i5.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: i6.AdminClassesCustomizeTooltipComponent, selector: "pry-admin-classes-customize-tooltip", inputs: ["currentClass"], outputs: ["backPressed"] }, { kind: "component", type: i7.AdminClassesCustomizeSymbolComponent, selector: "pry-admin-classes-customize-symbol", inputs: ["currentClass"], outputs: ["backPressed"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.I18nPipe, name: "i18n" }] }); }
|
|
86
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: AdminClassesCustomizeComponent, selector: "pry-admin-classes-customize", usesInheritance: true, ngImport: i0, template: "<div class=\"o-pry-admin-classes-customize\">\n <h1 class=\"a-h1\" id=\"tab-custom\">{{ '@pry.admin.customize.title' | i18n }}</h1>\n\n <pry-tab-group translationStringBase=\"@pry.admin.\">\n <pry-tab [templateRef]=\"customizeTemplate\" name=\"customize.template\"></pry-tab>\n <pry-tab [templateRef]=\"customizeTable\" name=\"customize.table\"></pry-tab>\n <pry-tab [templateRef]=\"customizeSymbol\" name=\"classes.rules\"></pry-tab>\n <pry-tab [templateRef]=\"customizeTile\" name=\"customize.tile\"></pry-tab>\n </pry-tab-group>\n\n <ng-template #customizeTemplate>\n <pry-admin-classes-customize-tooltip\n (backPressed)=\"goBack()\"\n [currentClass]=\"currentClass$ | async\"\n ></pry-admin-classes-customize-tooltip>\n </ng-template>\n <ng-template #customizeTable>\n <div class=\"container\">\n <h2>{{ '@pry.admin.customize.tableAttrs' | i18n }}</h2>\n <div\n cdkDropList\n #defaultList=\"cdkDropList\"\n [cdkDropListData]=\"defaultAttributes\"\n [cdkDropListConnectedTo]=\"[notDefaultList]\"\n class=\"list\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <div class=\"item\" *ngFor=\"let item of defaultAttributes\" cdkDrag>{{ item }}</div>\n </div>\n </div>\n\n <div class=\"container\">\n <h2>{{ '@pry.admin.customize.noTableAttrs' | i18n }}</h2>\n <div\n cdkDropList\n #notDefaultList=\"cdkDropList\"\n [cdkDropListData]=\"otherAttributes\"\n [cdkDropListConnectedTo]=\"[defaultList]\"\n class=\"list\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <div class=\"item\" *ngFor=\"let item of otherAttributes\" cdkDrag>{{ item }}</div>\n </div>\n </div>\n\n <div class=\"m-btn-group -width-lg\">\n <button\n type=\"button\"\n class=\"a-btn a-btn--secondary\"\n (click)=\"goBack()\"\n [innerHTML]=\"'@pry.admin.cancel' | i18n\"\n ></button>\n <button class=\"a-btn a-btn--primary\" type=\"submit\" (click)=\"updateTableAttrs()\">\n {{ '@pry.admin.customize.updateTable' | i18n }}\n </button>\n </div>\n </ng-template>\n <ng-template #customizeSymbol>\n <pry-admin-classes-customize-symbol\n (backPressed)=\"goBack()\"\n [currentClass]=\"currentClass$ | async\"\n ></pry-admin-classes-customize-symbol>\n </ng-template>\n <ng-template #customizeTile>\n <div class=\"container\">\n <h2>{{ '@pry.admin.customize.tile' | i18n }}</h2>\n <div\n cdkDropList\n #defaultTilesList=\"cdkDropList\"\n [cdkDropListData]=\"defaultTileAttributes\"\n [cdkDropListConnectedTo]=\"[notDefaultTilesList]\"\n class=\"list\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <div class=\"item\" *ngFor=\"let item of defaultTileAttributes\" cdkDrag>{{ item }}</div>\n </div>\n </div>\n\n <div class=\"container\">\n <h2>{{ '@pry.admin.customize.noTileAttrs' | i18n }}</h2>\n <div\n cdkDropList\n #notDefaultTilesList=\"cdkDropList\"\n [cdkDropListData]=\"otherTileAttributes\"\n [cdkDropListConnectedTo]=\"[defaultTilesList]\"\n class=\"list\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <div class=\"item\" *ngFor=\"let item of otherTileAttributes\" cdkDrag>{{ item }}</div>\n </div>\n </div>\n\n <div>\n <ng-container *ngIf=\"!isTileConfValid()\">\n <p>{{ '@pry.admin.customize.tileHint' | i18n : { max: maxTilesAttributes } }}</p>\n </ng-container>\n </div>\n\n <div class=\"m-btn-group -width-lg\">\n <button\n type=\"button\"\n class=\"a-btn a-btn--secondary\"\n (click)=\"goBack()\"\n [innerHTML]=\"'@pry.admin.cancel' | i18n\"\n ></button>\n <button class=\"a-btn a-btn--primary\" type=\"submit\" (click)=\"updateTileAttrs()\" [disabled]=\"!isTileConfValid()\">\n {{ '@pry.admin.customize.updateTile' | i18n }}\n </button>\n </div>\n </ng-template>\n</div>\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.TabGroupComponent, selector: "pry-tab-group", inputs: ["translationStringBase"], outputs: ["clickedTabIdx"] }, { kind: "component", type: i4.TabComponent, selector: "pry-tab", inputs: ["name", "templateRef", "index"] }, { kind: "directive", type: i5.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: i6.AdminClassesCustomizeTooltipComponent, selector: "pry-admin-classes-customize-tooltip", inputs: ["currentClass"], outputs: ["backPressed"] }, { kind: "component", type: i7.AdminClassesCustomizeSymbolComponent, selector: "pry-admin-classes-customize-symbol", inputs: ["currentClass"], outputs: ["backPressed"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.I18nPipe, name: "i18n" }] }); }
|
|
87
87
|
}
|
|
88
88
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: AdminClassesCustomizeComponent, decorators: [{
|
|
89
89
|
type: Component,
|