@c8y/ngx-components 1023.9.0 → 1023.12.0
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/branding/plain-branding-editor/index.d.ts +2 -1
- package/branding/plain-branding-editor/index.d.ts.map +1 -1
- package/branding/plain-branding-editor/lazy/index.d.ts +4 -0
- package/branding/plain-branding-editor/lazy/index.d.ts.map +1 -1
- package/branding/shared/data/index.d.ts +15 -10
- package/branding/shared/data/index.d.ts.map +1 -1
- package/context-dashboard/index.d.ts +11 -2
- package/context-dashboard/index.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-branding-plain-branding-editor-lazy.mjs +21 -5
- package/fesm2022/c8y-ngx-components-branding-plain-branding-editor-lazy.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-branding-plain-branding-editor.mjs +11 -1
- package/fesm2022/c8y-ngx-components-branding-plain-branding-editor.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-branding-shared-data.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +17 -5
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-global-context.mjs +1090 -38
- package/fesm2022/c8y-ngx-components-global-context.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-alarm-list.mjs +3 -4
- package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-alarm-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-alarms.mjs +86 -99
- package/fesm2022/c8y-ngx-components-widgets-implementations-alarms.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +22 -26
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/global-context/index.d.ts +180 -4
- package/global-context/index.d.ts.map +1 -1
- package/index.d.ts +44 -0
- package/index.d.ts.map +1 -1
- package/locales/de.po +41 -32
- package/locales/es.po +41 -32
- package/locales/fr.po +41 -32
- package/locales/ja_JP.po +41 -32
- package/locales/ko.po +41 -32
- package/locales/nl.po +41 -32
- package/locales/pl.po +41 -32
- package/locales/pt_BR.po +41 -32
- package/locales/zh_CN.po +41 -32
- package/locales/zh_TW.po +41 -32
- package/package.json +1 -1
- package/widgets/definitions/alarms/alarm-list/index.d.ts +1 -2
- package/widgets/definitions/alarms/alarm-list/index.d.ts.map +1 -1
- package/widgets/implementations/alarms/index.d.ts +35 -28
- package/widgets/implementations/alarms/index.d.ts.map +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as i1 from '@c8y/ngx-components/branding/shared';
|
|
3
3
|
|
|
4
|
+
declare function getBrandingOptionsJsonSchema(): Promise<any>;
|
|
4
5
|
declare class PlainBrandingEditorModule {
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlainBrandingEditorModule, never>;
|
|
6
7
|
static ɵmod: i0.ɵɵNgModuleDeclaration<PlainBrandingEditorModule, never, [typeof i1.SharedBrandingModule], never>;
|
|
7
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<PlainBrandingEditorModule>;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export { PlainBrandingEditorModule };
|
|
11
|
+
export { PlainBrandingEditorModule, getBrandingOptionsJsonSchema };
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../branding/plain-branding-editor/plain-branding-editor.module.ts"],"sourcesContent":[null],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../branding/plain-branding-editor/plain-branding-editor.module.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAWA,iBAAA,4BAAA,IAAA,OAAA;AAwBA,cAAA,yBAAA;;;;AAIyC;;;;"}
|
|
@@ -2,6 +2,7 @@ import { ControlValueAccessor } from '@angular/forms';
|
|
|
2
2
|
import { EditorComponent } from '@c8y/ngx-components/editor';
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
4
|
import { ActivatedRoute } from '@angular/router';
|
|
5
|
+
import * as Monaco from 'monaco-editor';
|
|
5
6
|
import * as i0 from '@angular/core';
|
|
6
7
|
|
|
7
8
|
declare class AdvancedEditBrandingComponent implements ControlValueAccessor {
|
|
@@ -10,11 +11,14 @@ declare class AdvancedEditBrandingComponent implements ControlValueAccessor {
|
|
|
10
11
|
valueString: BehaviorSubject<string>;
|
|
11
12
|
editorOptions: EditorComponent['editorOptions'];
|
|
12
13
|
infoText: string;
|
|
14
|
+
JSONSchema: any;
|
|
15
|
+
editorComponent: EditorComponent;
|
|
13
16
|
private onChange;
|
|
14
17
|
private onTouched;
|
|
15
18
|
private onValidatorChange;
|
|
16
19
|
private attributeToEdit;
|
|
17
20
|
constructor(activatedRoute: ActivatedRoute);
|
|
21
|
+
onEditorInit(_data: Monaco.editor.IStandaloneCodeEditor): void;
|
|
18
22
|
writeValue(obj: string): void;
|
|
19
23
|
registerOnChange(fn: (value: string) => void): void;
|
|
20
24
|
registerOnTouched(fn: () => void): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../../branding/plain-branding-editor/lazy/advanced-edit-branding.component.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../../branding/plain-branding-editor/lazy/advanced-edit-branding.component.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AASA,cAAA,6BAAA,YAAA,oBAAA;AA2Bc;AAbZ,uBAAA,eAAA;AACA,iBAAA,eAAA;AACA,mBAAA,eAAA;AACA;;;;;;;AAUoB,gCAAA,cAAA;AAgBpB,wBAAA,MAAA,CAAA,MAAA,CAAA,qBAAA;AAYA;;AAkBA;;;;AAyBD;;;;"}
|
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
import { OptionsService, GainsightService, ZipService, AppStateService, ThemeSwitcherService } from '@c8y/ngx-components';
|
|
1
|
+
import { ApplicationOptions, OptionsService, GainsightService, ZipService, AppStateService, ThemeSwitcherService } from '@c8y/ngx-components';
|
|
2
2
|
import * as _angular_forms from '@angular/forms';
|
|
3
3
|
import { FormBuilder, FormControl } from '@angular/forms';
|
|
4
|
-
import { ApplicationOptions } from '@c8y/options';
|
|
5
4
|
import * as i0 from '@angular/core';
|
|
6
5
|
import { IApplication, ApplicationType, ApplicationAvailability, ApplicationService, InventoryService, InventoryBinaryService, FetchClient, IApplicationBinary } from '@c8y/client';
|
|
7
6
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
8
7
|
import { StaticAssetsService, StaticAsset } from '@c8y/ngx-components/static-assets/data';
|
|
9
8
|
|
|
10
|
-
type ParamIntersection<T> = {
|
|
11
|
-
[K in keyof T]: (x: T[K]) => void;
|
|
12
|
-
}[keyof T] extends (x: infer I) => void ? I : never;
|
|
13
9
|
type BrandingFormValue = ReturnType<typeof createGenericBrandingForm>['value'];
|
|
14
10
|
type BrandingFormKeys = keyof BrandingFormValue;
|
|
15
11
|
type BrandingFormTopLevelKeys = (typeof brandingFormGroupTopLevelEntries)[number];
|
|
16
12
|
type BrandingFormTopLevelKeysToUnpack = (typeof brandingFormGroupTopLevelEntriesToUnpack)[number];
|
|
17
13
|
type TopLevelFormKeysNotToUnpack = Exclude<BrandingFormTopLevelKeys, BrandingFormTopLevelKeysToUnpack>;
|
|
18
|
-
type UnpackedTopLevelFormKeys =
|
|
14
|
+
type UnpackedTopLevelFormKeys = Pick<BrandingFormValue, BrandingFormTopLevelKeysToUnpack>[keyof Pick<BrandingFormValue, BrandingFormTopLevelKeysToUnpack>];
|
|
19
15
|
type NotUnpackedTopLevelFormKeys = Pick<BrandingFormValue, TopLevelFormKeysNotToUnpack>;
|
|
20
16
|
type TopLevelForm = NotUnpackedTopLevelFormKeys & UnpackedTopLevelFormKeys;
|
|
21
17
|
type TopLevelValues = TopLevelForm;
|
|
22
18
|
type BrandingCSSVarsForm = Omit<BrandingFormValue, BrandingFormTopLevelKeys>;
|
|
23
|
-
type
|
|
19
|
+
type LightBrandingCSSVarsValues = ReturnType<typeof createBrandingForm>['value'] & BrandingCSSVarsForm[keyof BrandingCSSVarsForm];
|
|
20
|
+
type addPrefixToObject<T, P extends string> = {
|
|
21
|
+
[K in keyof T as K extends string ? `${P}${K}` : never]: T[K];
|
|
22
|
+
};
|
|
23
|
+
type DarkBrandingCSSVarsValues = addPrefixToObject<LightBrandingCSSVarsValues, 'dark-'>;
|
|
24
|
+
type BrandingCSSVarsValues = LightBrandingCSSVarsValues & DarkBrandingCSSVarsValues;
|
|
24
25
|
type BrandingOptionsJson = TopLevelValues & {
|
|
25
|
-
brandingCssVars?: BrandingCSSVarsValues
|
|
26
|
-
|
|
26
|
+
brandingCssVars?: BrandingCSSVarsValues & {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
} & Omit<Partial<ApplicationOptions>, 'brandingCssVars'> & {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
27
32
|
declare const brandingFormGroupTopLevelEntries: readonly ["cookieBanner", "genericApplicationOptions", "darkThemeAvailable", "messageBanner"];
|
|
28
33
|
declare const brandingFormGroupTopLevelEntriesToUnpack: readonly ["genericApplicationOptions"];
|
|
29
34
|
declare const numberBrandingVars: readonly ["brand-logo-img-height", "btn-border-radius-base"];
|
|
@@ -341,5 +346,5 @@ declare class StoreBrandingService {
|
|
|
341
346
|
}
|
|
342
347
|
|
|
343
348
|
export { ApplyBrandingLocallyService, BrandingShadesService, BrandingTrackingService, BrandingVersionService, StoreBrandingService, allBrandingCSSVars, brandingFormGroupTopLevelEntries, brandingFormGroupTopLevelEntriesToUnpack, colorBrandingVars, createBrandingForm, createGenericBrandingForm, numberBrandingVars, stringBrandingVars, stringOrNumberBrandingVars };
|
|
344
|
-
export type { BrandVersion, BrandingCSSVarsForm, BrandingCSSVarsValues, BrandingFileDetails, BrandingFileDetailsLegacy, BrandingFormKeys, BrandingFormTopLevelKeys, BrandingFormTopLevelKeysToUnpack, BrandingFormValue, BrandingOptionsJson, NotUnpackedTopLevelFormKeys, TopLevelForm, TopLevelFormKeysNotToUnpack, TopLevelValues, UnpackedTopLevelFormKeys };
|
|
349
|
+
export type { BrandVersion, BrandingCSSVarsForm, BrandingCSSVarsValues, BrandingFileDetails, BrandingFileDetailsLegacy, BrandingFormKeys, BrandingFormTopLevelKeys, BrandingFormTopLevelKeysToUnpack, BrandingFormValue, BrandingOptionsJson, DarkBrandingCSSVarsValues, LightBrandingCSSVarsValues, NotUnpackedTopLevelFormKeys, TopLevelForm, TopLevelFormKeysNotToUnpack, TopLevelValues, UnpackedTopLevelFormKeys };
|
|
345
350
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../../branding/shared/data/branding.type.ts","../../../../branding/shared/data/apply-branding-locally.service.ts","../../../../branding/shared/data/branding-shades.service.ts","../../../../branding/shared/data/branding-version.service.ts","../../../../branding/shared/data/branding-tracking.service.ts","../../../../branding/shared/data/store-branding.service.ts"],"sourcesContent":[null,null,null,null,null,null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../../branding/shared/data/branding.type.ts","../../../../branding/shared/data/apply-branding-locally.service.ts","../../../../branding/shared/data/branding-shades.service.ts","../../../../branding/shared/data/branding-version.service.ts","../../../../branding/shared/data/branding-tracking.service.ts","../../../../branding/shared/data/store-branding.service.ts"],"sourcesContent":[null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;AAGM;AACA;AACA;AACA;AAGA;;AASA;;AAEA;AAEA;;AAKN;AACG;;AAGG;;AAIA;;AACwC;;;AACe;;AAE7D;AAMA;AAIA;AACA;AAoDA;AAMA;AAEA;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCC;;ACrLD;AAIc;;AAAQ;AAEpB;;AAqBA;AAMA;AAMA;;;AAWD;;ACpDD;;AAOE;AAQA;AAqBA;AAYA;;;AAyBD;;AC1ED;;AAEG;AACH;AAIE;AAEA;;;;AAIG;AACH;AAIA;;;;;;AAMG;AACH;;;AAAuF;AAgCvF;;;;;;AAMG;;;;AAKJ;;ACnED;AAK0B;;AAAQ;;;;;;AAsBhC;;;;AAgBA;;;AAYD;;;;;;;;;;;AC5BA;;;;;AAMA;;;;;;;AAQA;AAED;;AAEG;AACH;AAkBI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzBF;;;;AAIW;AACX;;;;;;;;AAQkC;AAClC;AAEU;AAYV;;AAEG;AACG;AAON;;;AAGG;;AAYH;;;;AAIG;AACG;AAEO;;;AA2Cb;;;AAGG;;AAyBH;;AAEG;AACG;AA8CN;AAUA;;;AAGG;;AAMH;;;;AAIG;;AAkBH;;;AAGG;;;;;;AA2BH;;;AAGG;AACG;AAMN;;AAEG;AACG;AAUN;;;AAGG;;;;;;AAgBH;;;AAGG;;AAYH;;AAEG;;AAkCH;;;AAGG;AACG;;;;;AAuDN;;;;AAIG;AACH;;;;;AA0CD;;;"}
|
|
@@ -22,7 +22,7 @@ import * as i5 from '@c8y/ngx-components/icon-selector';
|
|
|
22
22
|
import * as i6 from 'ngx-bootstrap/dropdown';
|
|
23
23
|
import * as i7 from 'ngx-bootstrap/collapse';
|
|
24
24
|
import * as i1 from '@angular/common';
|
|
25
|
-
import { WidgetControlsPresetConfig, WidgetControls, GlobalContextEvent } from '@c8y/ngx-components/global-context';
|
|
25
|
+
import { WidgetControlsPresetConfig, WidgetControls, PresetName, PresetDefinition, GlobalContextEvent, GlobalContextState } from '@c8y/ngx-components/global-context';
|
|
26
26
|
|
|
27
27
|
declare class AddDashboardComponent {
|
|
28
28
|
private tabsService;
|
|
@@ -1682,10 +1682,19 @@ declare class NewDashboardGuard {
|
|
|
1682
1682
|
|
|
1683
1683
|
declare class GlobalContextSectionComponent {
|
|
1684
1684
|
widgetConfigService: WidgetConfigService;
|
|
1685
|
+
/** @deprecated Use `controls` instead */
|
|
1685
1686
|
widgetControls: WidgetControlsPresetConfig | WidgetControls;
|
|
1687
|
+
/** Controls configuration (preset name or full definition) */
|
|
1688
|
+
controls: PresetName | PresetDefinition;
|
|
1689
|
+
/** Whether to use the new controls-based approach */
|
|
1690
|
+
get useControls(): boolean;
|
|
1686
1691
|
onGlobalContext(event: GlobalContextEvent): void;
|
|
1692
|
+
onConfigChange(event: {
|
|
1693
|
+
context: GlobalContextState;
|
|
1694
|
+
diff: GlobalContextState;
|
|
1695
|
+
}): void;
|
|
1687
1696
|
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalContextSectionComponent, never>;
|
|
1688
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GlobalContextSectionComponent, "c8y-global-context-section", never, { "widgetControls": { "alias": "widgetControls"; "required": false; }; }, {}, never, never, true, never>;
|
|
1697
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GlobalContextSectionComponent, "c8y-global-context-section", never, { "widgetControls": { "alias": "widgetControls"; "required": false; }; "controls": { "alias": "controls"; "required": false; }; }, {}, never, never, true, never>;
|
|
1689
1698
|
}
|
|
1690
1699
|
|
|
1691
1700
|
declare class WidgetConfigFeedbackComponent implements AfterViewInit {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../context-dashboard/add-dashboard.component.ts","../../context-dashboard/add-dashboard.factory.ts","../../context-dashboard/context-dashboard.model.ts","../../context-dashboard/context-dashboard.service.ts","../../context-dashboard/dashboard-detail.service.ts","../../context-dashboard/dashboard-detail.component.ts","../../context-dashboard/memento/dashboard-originator.service.ts","../../context-dashboard/memento/dashboard-caretaker.service.ts","../../context-dashboard/memento/dashboard-edit-mode.service.ts","../../context-dashboard/widget.service.ts","../../context-dashboard/context-dashboard.component.ts","../../context-dashboard/widget-config/appearance-settings.component.ts","../../context-dashboard/type-dashboard-info/type-dashboard-info.component.ts","../../context-dashboard/widget-config-hook/widget-config-hook.model.ts","../../context-dashboard/widget-config-hook/widget-config-hook.service.ts","../../context-dashboard/widget-config.service.ts","../../context-dashboard/widget-config/widget-config-root.component.ts","../../context-dashboard/widget-config.component.ts","../../context-dashboard/widget-config/widget-preview.component.ts","../../context-dashboard/widget-config/widget-config-section.component.ts","../../context-dashboard/widget-config/widget-preview-wrapper.component.ts","../../context-dashboard/paste-dashboard-action.component.ts","../../context-dashboard/context-dashboard.module.ts","../../context-dashboard/dashboard-action-bar.factory.ts","../../context-dashboard/device-info-dashboard/device-info-dashboard.component.ts","../../context-dashboard/device-info-dashboard/device-info-dashboard.module.ts","../../context-dashboard/device-management-home-dashboard/device-management-home-dashboard.component.ts","../../context-dashboard/device-management-home-dashboard/device-management-home-dashboard.module.ts","../../context-dashboard/widget-config/widget-config-appearance.component.ts","../../context-dashboard/widget-config/widget-config-general.component.ts","../../context-dashboard/widget-config/widget-asset-selector.component.ts","../../context-dashboard/new-dashboard.guard.ts","../../context-dashboard/widget-config/global-context-section.component.ts","../../context-dashboard/widget-config/widget-config-feedback.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;AAQI;AACA;AADQ;;;;AAoBX;;ACpBD;AACE;;;;AAMM;;AAoCP;;ACzCD;AACA;;;;;;;;;;;;;;;;AAiBE;;AAEG;AACH;AACD;;AAGC;;;AAGG;;AAGH;;AAEG;;AAGH;;AAEG;AACH;AACE;;AAEG;AACH;;AAEF;;;AAGG;AACH;AACE;;AAEA;;AAEF;;;;;AAKG;AACH;AACA;;;;;;AAMG;AACH;AAEA;;AAEG;AACH;AACD;AAEK;;;AAGJ;AACD;;AAGC;AACA;AACA;AACA;AACA;AACA;AACA;AAAY;AAAwB;AACpC;AAAkB;AAAwB;AAC1C;AACA;AACA;AACA;AACA;;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AAOG;AACH;AAmCA;;;;;;;AAOG;AACH;AAUA;;;;AAIG;AACH;;;AASD;;ACxXD;AAOE;;;AACD;;ACsBD;AA2EI;AACA;AACO;AACA;;;;AAlDT;AACA;;;;;AAKA;;;;AAIE;;;;AAIA;;;AAGF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACoE;AACpE;;AAKA;;AAEG;AACH;AAEA;;AAQA;;;;AAUU;AAMJ;AAmBN;;;;;;;;;;AA6IA;AAOA;AAgBA;AAcA;AAsBA;AAcA;;;AAiBD;;ACxWD;AAOE;AACA;AAGA;AAAkB;;;;;AAQnB;;ACfD;;AAgBE;AAEA;;;AAGD;;AC5BD;AAOE;;;;AAUD;;ACPD;AAiCI;AACA;AACA;AACA;AAbF;AACiE;AACjE;;;;;;AAQU;;;;;;;AAkEX;;ACjFD;;;;;;AAMG;AACH;;;;;AAgFC;;AC/GD;AACE;AACA;;;AA0BD;;ACtBD;AAkSI;AACA;AACA;AACA;AA/RF;;AAEA;;;;;;AAOA;AACA;;AAkRU;;;;;AAuEV;;;AAGD;;AC9VD;;;;AAiByC;;ACpCzC;AA0Cc;AApCZ;AACA;;;AAmCoB;;AAUpB;;;AAGD;;ACvDD;;;;AAkBmD;;ACnBnD;AAOE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACoE;;;AACrE;;ACPD;AAOE;;;AAQA;AAOA;;;AAGD;;ACdD;AAmBE;AACA;AACA;AACA;AAEA;;AAEG;AAEH;AAEA;;AAEG;;AAIH;;AAEG;;AAIH;;AAEG;;AAIH;;AAEG;;AAIH;;;AAGG;AACH;AAEA;;AAEG;AACG;AAsCN;;;;AAIG;AACH;AAIA;;;AAGG;AACH;;;;;AAcD;;AC7ID;AAUA;;;;;AAqBC;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../context-dashboard/add-dashboard.component.ts","../../context-dashboard/add-dashboard.factory.ts","../../context-dashboard/context-dashboard.model.ts","../../context-dashboard/context-dashboard.service.ts","../../context-dashboard/dashboard-detail.service.ts","../../context-dashboard/dashboard-detail.component.ts","../../context-dashboard/memento/dashboard-originator.service.ts","../../context-dashboard/memento/dashboard-caretaker.service.ts","../../context-dashboard/memento/dashboard-edit-mode.service.ts","../../context-dashboard/widget.service.ts","../../context-dashboard/context-dashboard.component.ts","../../context-dashboard/widget-config/appearance-settings.component.ts","../../context-dashboard/type-dashboard-info/type-dashboard-info.component.ts","../../context-dashboard/widget-config-hook/widget-config-hook.model.ts","../../context-dashboard/widget-config-hook/widget-config-hook.service.ts","../../context-dashboard/widget-config.service.ts","../../context-dashboard/widget-config/widget-config-root.component.ts","../../context-dashboard/widget-config.component.ts","../../context-dashboard/widget-config/widget-preview.component.ts","../../context-dashboard/widget-config/widget-config-section.component.ts","../../context-dashboard/widget-config/widget-preview-wrapper.component.ts","../../context-dashboard/paste-dashboard-action.component.ts","../../context-dashboard/context-dashboard.module.ts","../../context-dashboard/dashboard-action-bar.factory.ts","../../context-dashboard/device-info-dashboard/device-info-dashboard.component.ts","../../context-dashboard/device-info-dashboard/device-info-dashboard.module.ts","../../context-dashboard/device-management-home-dashboard/device-management-home-dashboard.component.ts","../../context-dashboard/device-management-home-dashboard/device-management-home-dashboard.module.ts","../../context-dashboard/widget-config/widget-config-appearance.component.ts","../../context-dashboard/widget-config/widget-config-general.component.ts","../../context-dashboard/widget-config/widget-asset-selector.component.ts","../../context-dashboard/new-dashboard.guard.ts","../../context-dashboard/widget-config/global-context-section.component.ts","../../context-dashboard/widget-config/widget-config-feedback.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;AAQI;AACA;AADQ;;;;AAoBX;;ACpBD;AACE;;;;AAMM;;AAoCP;;ACzCD;AACA;;;;;;;;;;;;;;;;AAiBE;;AAEG;AACH;AACD;;AAGC;;;AA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AAIH;;AAEG;;AAIH;;AAEG;;AAIH;;;AAGG;AACH;AAEA;;AAEG;AACG;AAsCN;;;;AAIG;AACH;AAIA;;;AAGG;AACH;;;;;AAcD;;AC7ID;AAUA;;;;;AAqBC;;ACrBD;AAaE;;AAIA;;AAIA;;;AAOA;;;;AAO+E;;;AAMhF;;ACvDD;AAOE;AACwB;AAExB;;;AAGD;;;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as i4 from '@angular/common';
|
|
2
1
|
import { AsyncPipe } from '@angular/common';
|
|
3
2
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component } from '@angular/core';
|
|
3
|
+
import { ViewChild, Component } from '@angular/core';
|
|
5
4
|
import * as i2 from '@angular/forms';
|
|
6
5
|
import { FormsModule } from '@angular/forms';
|
|
7
6
|
import { EditorComponent, MonacoEditorMarkerValidatorDirective } from '@c8y/ngx-components/editor';
|
|
@@ -28,6 +27,20 @@ class AdvancedEditBrandingComponent {
|
|
|
28
27
|
if (data && data.infoText) {
|
|
29
28
|
this.infoText = data.infoText;
|
|
30
29
|
}
|
|
30
|
+
if (data && data.editorSchema) {
|
|
31
|
+
this.JSONSchema = data.editorSchema;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
onEditorInit(_data) {
|
|
35
|
+
if (!this.JSONSchema) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
this.editorComponent.monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
39
|
+
validate: true,
|
|
40
|
+
schemas: [{ schema: this.JSONSchema, fileMatch: ['*'], uri: 'branding' }],
|
|
41
|
+
enableSchemaRequest: false,
|
|
42
|
+
allowComments: false
|
|
43
|
+
});
|
|
31
44
|
}
|
|
32
45
|
writeValue(obj) {
|
|
33
46
|
this.optionsJsonString.next(obj);
|
|
@@ -71,7 +84,7 @@ class AdvancedEditBrandingComponent {
|
|
|
71
84
|
}
|
|
72
85
|
}
|
|
73
86
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AdvancedEditBrandingComponent, deps: [{ token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
74
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
87
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: AdvancedEditBrandingComponent, isStandalone: true, selector: "c8y-advanced-edit-branding", host: { classAttribute: "d-contents" }, viewQueries: [{ propertyName: "editorComponent", first: true, predicate: EditorComponent, descendants: true }], ngImport: i0, template: "@if (infoText) {\n <div class=\"card-block separator-bottom m-b-16\">\n <p class=\"icon-flex\">\n <i\n class=\"text-info m-r-4 icon-16\"\n c8yIcon=\"info-circle\"\n ></i>\n <span>\n {{ infoText | translate }}\n </span>\n </p>\n </div>\n}\n\n<c8y-editor\n class=\"flex-grow\"\n [editorOptions]=\"editorOptions\"\n [ngModel]=\"valueString | async\"\n (ngModelChange)=\"onValueChange($event)\"\n (editorInit)=\"onEditorInit($event)\"\n monacoEditorMarkerValidator\n></c8y-editor>\n", dependencies: [{ kind: "component", type: EditorComponent, selector: "c8y-editor", inputs: ["editorOptions", "theme"], outputs: ["editorInit"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: MonacoEditorMarkerValidatorDirective, selector: "c8y-editor [monacoEditorMarkerValidator]" }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i3.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i3.C8yTranslatePipe, name: "translate" }] }); }
|
|
75
88
|
}
|
|
76
89
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AdvancedEditBrandingComponent, decorators: [{
|
|
77
90
|
type: Component,
|
|
@@ -81,8 +94,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
81
94
|
FormsModule,
|
|
82
95
|
MonacoEditorMarkerValidatorDirective,
|
|
83
96
|
CoreModule
|
|
84
|
-
], template: "
|
|
85
|
-
}], ctorParameters: () => [{ type: i1.ActivatedRoute }]
|
|
97
|
+
], template: "@if (infoText) {\n <div class=\"card-block separator-bottom m-b-16\">\n <p class=\"icon-flex\">\n <i\n class=\"text-info m-r-4 icon-16\"\n c8yIcon=\"info-circle\"\n ></i>\n <span>\n {{ infoText | translate }}\n </span>\n </p>\n </div>\n}\n\n<c8y-editor\n class=\"flex-grow\"\n [editorOptions]=\"editorOptions\"\n [ngModel]=\"valueString | async\"\n (ngModelChange)=\"onValueChange($event)\"\n (editorInit)=\"onEditorInit($event)\"\n monacoEditorMarkerValidator\n></c8y-editor>\n" }]
|
|
98
|
+
}], ctorParameters: () => [{ type: i1.ActivatedRoute }], propDecorators: { editorComponent: [{
|
|
99
|
+
type: ViewChild,
|
|
100
|
+
args: [EditorComponent]
|
|
101
|
+
}] } });
|
|
86
102
|
|
|
87
103
|
/**
|
|
88
104
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-branding-plain-branding-editor-lazy.mjs","sources":["../../branding/plain-branding-editor/lazy/advanced-edit-branding.component.ts","../../branding/plain-branding-editor/lazy/advanced-edit-branding.component.html","../../branding/plain-branding-editor/lazy/c8y-ngx-components-branding-plain-branding-editor-lazy.ts"],"sourcesContent":["import { AsyncPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { ControlValueAccessor, FormsModule } from '@angular/forms';\nimport { EditorComponent, MonacoEditorMarkerValidatorDirective } from '@c8y/ngx-components/editor';\nimport { CoreModule } from '@c8y/ngx-components';\nimport { BehaviorSubject } from 'rxjs';\nimport { ActivatedRoute } from '@angular/router';\n\n@Component({\n selector: 'c8y-advanced-edit-branding',\n templateUrl: './advanced-edit-branding.component.html',\n host: { class: 'd-contents' },\n standalone: true,\n imports: [\n EditorComponent,\n AsyncPipe,\n FormsModule,\n MonacoEditorMarkerValidatorDirective,\n CoreModule\n ]\n})\nexport class AdvancedEditBrandingComponent implements ControlValueAccessor {\n optionsJsonString = new BehaviorSubject<string>('');\n valueString = new BehaviorSubject<string>('');\n editorOptions: EditorComponent['editorOptions'] = {};\n infoText = '';\n\n private onChange: (value: string) => void;\n private onTouched: () => void;\n private onValidatorChange: () => void;\n\n private attributeToEdit = '';\n\n constructor(private activatedRoute: ActivatedRoute) {\n const data = this.activatedRoute.snapshot.data;\n if (data && data.attributeToEdit) {\n this.attributeToEdit = data.attributeToEdit;\n }\n if (data && data.language) {\n this.editorOptions.language = data.language;\n }\n if (data && data.infoText) {\n this.infoText = data.infoText;\n }\n }\n\n writeValue(obj: string): void {\n this.optionsJsonString.next(obj);\n if (this.attributeToEdit) {\n obj = obj ? obj : '{}';\n const parsed = JSON.parse(obj);\n if (!parsed[this.attributeToEdit] || typeof parsed[this.attributeToEdit] !== 'string') {\n obj = '';\n } else {\n obj = parsed[this.attributeToEdit];\n }\n }\n this.valueString.next(obj);\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n onValueChange(value: string) {\n if (value === this.valueString.value) {\n return;\n }\n this.valueString.next(value);\n if (this.attributeToEdit) {\n const parsed = JSON.parse(this.optionsJsonString.value);\n parsed[this.attributeToEdit] = value;\n value = JSON.stringify(parsed, null, 2);\n }\n this.optionsJsonString.next(value);\n if (this.onChange) {\n this.onChange(value);\n }\n if (this.onTouched) {\n this.onTouched();\n }\n if (this.onValidatorChange) {\n this.onValidatorChange();\n }\n }\n}\n","
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-branding-plain-branding-editor-lazy.mjs","sources":["../../branding/plain-branding-editor/lazy/advanced-edit-branding.component.ts","../../branding/plain-branding-editor/lazy/advanced-edit-branding.component.html","../../branding/plain-branding-editor/lazy/c8y-ngx-components-branding-plain-branding-editor-lazy.ts"],"sourcesContent":["import { AsyncPipe } from '@angular/common';\nimport { Component, ViewChild } from '@angular/core';\nimport { ControlValueAccessor, FormsModule } from '@angular/forms';\nimport { EditorComponent, MonacoEditorMarkerValidatorDirective } from '@c8y/ngx-components/editor';\nimport { CoreModule } from '@c8y/ngx-components';\nimport { BehaviorSubject } from 'rxjs';\nimport { ActivatedRoute } from '@angular/router';\nimport type * as Monaco from 'monaco-editor';\n\n@Component({\n selector: 'c8y-advanced-edit-branding',\n templateUrl: './advanced-edit-branding.component.html',\n host: { class: 'd-contents' },\n standalone: true,\n imports: [\n EditorComponent,\n AsyncPipe,\n FormsModule,\n MonacoEditorMarkerValidatorDirective,\n CoreModule\n ]\n})\nexport class AdvancedEditBrandingComponent implements ControlValueAccessor {\n optionsJsonString = new BehaviorSubject<string>('');\n valueString = new BehaviorSubject<string>('');\n editorOptions: EditorComponent['editorOptions'] = {};\n infoText = '';\n JSONSchema: any;\n @ViewChild(EditorComponent) editorComponent!: EditorComponent;\n\n private onChange: (value: string) => void;\n private onTouched: () => void;\n private onValidatorChange: () => void;\n\n private attributeToEdit = '';\n\n constructor(private activatedRoute: ActivatedRoute) {\n const data = this.activatedRoute.snapshot.data;\n if (data && data.attributeToEdit) {\n this.attributeToEdit = data.attributeToEdit;\n }\n if (data && data.language) {\n this.editorOptions.language = data.language;\n }\n if (data && data.infoText) {\n this.infoText = data.infoText;\n }\n if (data && data.editorSchema) {\n this.JSONSchema = data.editorSchema;\n }\n }\n\n onEditorInit(_data: Monaco.editor.IStandaloneCodeEditor) {\n if (!this.JSONSchema) {\n return;\n }\n this.editorComponent.monaco.languages.json.jsonDefaults.setDiagnosticsOptions({\n validate: true,\n schemas: [{ schema: this.JSONSchema, fileMatch: ['*'], uri: 'branding' }],\n enableSchemaRequest: false,\n allowComments: false\n });\n }\n\n writeValue(obj: string): void {\n this.optionsJsonString.next(obj);\n if (this.attributeToEdit) {\n obj = obj ? obj : '{}';\n const parsed = JSON.parse(obj);\n if (!parsed[this.attributeToEdit] || typeof parsed[this.attributeToEdit] !== 'string') {\n obj = '';\n } else {\n obj = parsed[this.attributeToEdit];\n }\n }\n this.valueString.next(obj);\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n onValueChange(value: string) {\n if (value === this.valueString.value) {\n return;\n }\n this.valueString.next(value);\n if (this.attributeToEdit) {\n const parsed = JSON.parse(this.optionsJsonString.value);\n parsed[this.attributeToEdit] = value;\n value = JSON.stringify(parsed, null, 2);\n }\n this.optionsJsonString.next(value);\n if (this.onChange) {\n this.onChange(value);\n }\n if (this.onTouched) {\n this.onTouched();\n }\n if (this.onValidatorChange) {\n this.onValidatorChange();\n }\n }\n}\n","@if (infoText) {\n <div class=\"card-block separator-bottom m-b-16\">\n <p class=\"icon-flex\">\n <i\n class=\"text-info m-r-4 icon-16\"\n c8yIcon=\"info-circle\"\n ></i>\n <span>\n {{ infoText | translate }}\n </span>\n </p>\n </div>\n}\n\n<c8y-editor\n class=\"flex-grow\"\n [editorOptions]=\"editorOptions\"\n [ngModel]=\"valueString | async\"\n (ngModelChange)=\"onValueChange($event)\"\n (editorInit)=\"onEditorInit($event)\"\n monacoEditorMarkerValidator\n></c8y-editor>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAsBa,6BAA6B,CAAA;AAcxC,IAAA,WAAA,CAAoB,cAA8B,EAAA;QAA9B,IAAA,CAAA,cAAc,GAAd,cAAc;AAblC,QAAA,IAAA,CAAA,iBAAiB,GAAG,IAAI,eAAe,CAAS,EAAE,CAAC;AAC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AAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACX,oCAAoC,EAAA,QAAA,EAAA,0CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACpC,UAAU,qHAHV,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAMA,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAbzC,SAAS;+BACE,4BAA4B,EAAA,IAAA,EAEhC,EAAE,KAAK,EAAE,YAAY,EAAE,EAAA,UAAA,EACjB,IAAI,EAAA,OAAA,EACP;wBACP,eAAe;wBACf,SAAS;wBACT,WAAW;wBACX,oCAAoC;wBACpC;AACD,qBAAA,EAAA,QAAA,EAAA,uhBAAA,EAAA;;sBAQA,SAAS;uBAAC,eAAe;;;AE5B5B;;AAEG;;;;"}
|
|
@@ -24,11 +24,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
24
24
|
args: [{ providedIn: 'root' }]
|
|
25
25
|
}] });
|
|
26
26
|
|
|
27
|
+
function getBrandingOptionsJsonSchema() {
|
|
28
|
+
return import('c8y-schema-loader?interfaceName=BrandingOptionsJson!@c8y/ngx-components/branding/shared/data')
|
|
29
|
+
.then(m => m.default || m)
|
|
30
|
+
.then(s => {
|
|
31
|
+
return s.schema;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
27
34
|
BRANDING_EDIT_CHILD_ROUTES.push({
|
|
28
35
|
path: 'advanced',
|
|
29
36
|
loadComponent: () => import('@c8y/ngx-components/branding/plain-branding-editor/lazy').then(m => m.AdvancedEditBrandingComponent),
|
|
30
37
|
data: {
|
|
31
38
|
tabName: advancedTabLabel
|
|
39
|
+
},
|
|
40
|
+
resolve: {
|
|
41
|
+
editorSchema: getBrandingOptionsJsonSchema
|
|
32
42
|
}
|
|
33
43
|
});
|
|
34
44
|
class PlainBrandingEditorModule {
|
|
@@ -48,5 +58,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
48
58
|
* Generated bundle index. Do not edit.
|
|
49
59
|
*/
|
|
50
60
|
|
|
51
|
-
export { PlainBrandingEditorModule };
|
|
61
|
+
export { PlainBrandingEditorModule, getBrandingOptionsJsonSchema };
|
|
52
62
|
//# sourceMappingURL=c8y-ngx-components-branding-plain-branding-editor.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-branding-plain-branding-editor.mjs","sources":["../../branding/plain-branding-editor/plain-branding-editor-tab.factory.ts","../../branding/plain-branding-editor/plain-branding-editor.module.ts","../../branding/plain-branding-editor/c8y-ngx-components-branding-plain-branding-editor.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { Tab } from '@c8y/ngx-components';\nimport { BrandingTabFactory } from '@c8y/ngx-components/branding/shared';\n\nexport const advancedTabLabel = gettext('Advanced branding');\n\n@Injectable({ providedIn: 'root' })\nexport class PlainBrandingEditorTabFactory extends BrandingTabFactory {\n protected getTabsForVersion(name: string): Tab[] {\n return [\n {\n path: this.getPathForBranding(name, 'advanced'),\n label: advancedTabLabel,\n icon: 'c8y-css',\n priority: 200\n }\n ];\n }\n}\n","import { NgModule } from '@angular/core';\nimport { hookTab } from '@c8y/ngx-components';\nimport {\n BRANDING_EDIT_CHILD_ROUTES,\n SharedBrandingModule\n} from '@c8y/ngx-components/branding/shared';\nimport {\n advancedTabLabel,\n PlainBrandingEditorTabFactory\n} from './plain-branding-editor-tab.factory';\n\nBRANDING_EDIT_CHILD_ROUTES.push({\n path: 'advanced',\n loadComponent: () =>\n import('@c8y/ngx-components/branding/plain-branding-editor/lazy').then(\n m => m.AdvancedEditBrandingComponent\n ),\n data: {\n tabName: advancedTabLabel\n }\n});\n\n@NgModule({\n imports: [SharedBrandingModule],\n providers: [hookTab(PlainBrandingEditorTabFactory)]\n})\nexport class PlainBrandingEditorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAKO,MAAM,gBAAgB,GAAG,OAAO,CAAC,mBAAmB,CAAC;AAGtD,MAAO,6BAA8B,SAAQ,kBAAkB,CAAA;AACzD,IAAA,iBAAiB,CAAC,IAAY,EAAA;QACtC,OAAO;AACL,YAAA;gBACE,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,UAAU,CAAC;AAC/C,gBAAA,KAAK,EAAE,gBAAgB;AACvB,gBAAA,IAAI,EAAE,SAAS;AACf,gBAAA,QAAQ,EAAE;AACX;SACF;IACH;+GAVW,6BAA6B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,cADhB,MAAM,EAAA,CAAA,CAAA;;4FACnB,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBADzC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-branding-plain-branding-editor.mjs","sources":["../../branding/plain-branding-editor/plain-branding-editor-tab.factory.ts","../../branding/plain-branding-editor/plain-branding-editor.module.ts","../../branding/plain-branding-editor/c8y-ngx-components-branding-plain-branding-editor.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { Tab } from '@c8y/ngx-components';\nimport { BrandingTabFactory } from '@c8y/ngx-components/branding/shared';\n\nexport const advancedTabLabel = gettext('Advanced branding');\n\n@Injectable({ providedIn: 'root' })\nexport class PlainBrandingEditorTabFactory extends BrandingTabFactory {\n protected getTabsForVersion(name: string): Tab[] {\n return [\n {\n path: this.getPathForBranding(name, 'advanced'),\n label: advancedTabLabel,\n icon: 'c8y-css',\n priority: 200\n }\n ];\n }\n}\n","import { NgModule } from '@angular/core';\nimport { hookTab } from '@c8y/ngx-components';\nimport {\n BRANDING_EDIT_CHILD_ROUTES,\n SharedBrandingModule\n} from '@c8y/ngx-components/branding/shared';\nimport {\n advancedTabLabel,\n PlainBrandingEditorTabFactory\n} from './plain-branding-editor-tab.factory';\n\nexport function getBrandingOptionsJsonSchema(): Promise<any> {\n return import(\n 'c8y-schema-loader?interfaceName=BrandingOptionsJson!@c8y/ngx-components/branding/shared/data'\n )\n .then(m => m.default || m)\n .then(s => {\n return s.schema;\n });\n}\n\nBRANDING_EDIT_CHILD_ROUTES.push({\n path: 'advanced',\n loadComponent: () =>\n import('@c8y/ngx-components/branding/plain-branding-editor/lazy').then(\n m => m.AdvancedEditBrandingComponent\n ),\n data: {\n tabName: advancedTabLabel\n },\n resolve: {\n editorSchema: getBrandingOptionsJsonSchema\n }\n});\n\n@NgModule({\n imports: [SharedBrandingModule],\n providers: [hookTab(PlainBrandingEditorTabFactory)]\n})\nexport class PlainBrandingEditorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAKO,MAAM,gBAAgB,GAAG,OAAO,CAAC,mBAAmB,CAAC;AAGtD,MAAO,6BAA8B,SAAQ,kBAAkB,CAAA;AACzD,IAAA,iBAAiB,CAAC,IAAY,EAAA;QACtC,OAAO;AACL,YAAA;gBACE,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,EA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