UNPKG

@c8y/ngx-components

Version:

Angular modules for Cumulocity IoT applications

1 lines 3.65 kB
{"version":3,"file":"c8y-ngx-components-branding-extra-css-branding-editor.mjs","sources":["../../branding/extra-css-branding-editor/extra-css-branding-editor-tab.factory.ts","../../branding/extra-css-branding-editor/extra-css-branding-editor.module.ts","../../branding/extra-css-branding-editor/c8y-ngx-components-branding-extra-css-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 extraCssTabLabel = gettext('Custom CSS');\n\n@Injectable({ providedIn: 'root' })\nexport class ExtraCssBrandingEditorTabFactory extends BrandingTabFactory {\n protected getTabsForVersion(name: string): Tab[] {\n return [\n {\n path: this.getPathForBranding(name, 'css'),\n label: extraCssTabLabel,\n icon: 'c8y-css',\n priority: 300\n }\n ];\n }\n}\n","import { NgModule } from '@angular/core';\nimport {\n ExtraCssBrandingEditorTabFactory,\n extraCssTabLabel\n} from './extra-css-branding-editor-tab.factory';\nimport { hookTab } from '@c8y/ngx-components';\nimport {\n SharedBrandingModule,\n BRANDING_EDIT_CHILD_ROUTES\n} from '@c8y/ngx-components/branding/shared';\nimport { gettext } from '@c8y/ngx-components/gettext';\n\nBRANDING_EDIT_CHILD_ROUTES.push({\n path: 'css',\n data: {\n attributeToEdit: 'extraCss',\n language: 'css',\n tabName: extraCssTabLabel,\n infoText: gettext(\n 'This feature requires knowledge of CSS and HTML. Changes made here take precedence over built-in styles. Future platform updates may affect custom CSS functionality.'\n )\n },\n loadComponent: () =>\n import('@c8y/ngx-components/branding/plain-branding-editor/lazy').then(\n m => m.AdvancedEditBrandingComponent\n )\n});\n\n@NgModule({\n imports: [SharedBrandingModule],\n providers: [hookTab(ExtraCssBrandingEditorTabFactory)]\n})\nexport class ExtraCssBrandingEditorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';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