diff --git a/web/app/app.module.ts b/web/app/app.module.ts index aa10a1b..1ebc263 100644 --- a/web/app/app.module.ts +++ b/web/app/app.module.ts @@ -33,6 +33,7 @@ import { AdminApiService } from "./shared/services/admin-api.service"; import { ServiceLocator } from "./shared/services/locator.service"; import { IboxComponent } from "./elements/ibox/ibox.component"; import { CustomWidgetConfigComponent } from "./configs/widget/custom/custom.widget.component"; +import { ConfigScreenWidgetComponent } from "./configs/widget/config_screen/config_screen.widget.component"; @NgModule({ imports: [ @@ -65,6 +66,7 @@ import { CustomWidgetConfigComponent } from "./configs/widget/custom/custom.widg GCalWidgetWrapperComponent, RiotHomeComponent, IboxComponent, + ConfigScreenWidgetComponent, CustomWidgetConfigComponent, // Vendor diff --git a/web/app/configs/widget/config_screen/config_screen.component.html b/web/app/configs/widget/config_screen/config_screen.component.html new file mode 100644 index 0000000..f8ec86d --- /dev/null +++ b/web/app/configs/widget/config_screen/config_screen.component.html @@ -0,0 +1,41 @@ +
+ +
+
+ +
+ Add {{ widgetComponent.defaultName }} +
+
+
+ + +
+ +
+
+
+
+ + +
+ {{ widget.name || widget.url || widgetComponent.defaultName }} +
+
+
+ + +
+ + +
+
+
+
+
\ No newline at end of file diff --git a/web/app/configs/widget/config_screen/config_screen.widget.component.scss b/web/app/configs/widget/config_screen/config_screen.widget.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/web/app/configs/widget/config_screen/config_screen.widget.component.ts b/web/app/configs/widget/config_screen/config_screen.widget.component.ts new file mode 100644 index 0000000..591351c --- /dev/null +++ b/web/app/configs/widget/config_screen/config_screen.widget.component.ts @@ -0,0 +1,16 @@ +import { NewWidgetComponent } from "../widget.component"; +import { Component, ContentChild, Input, TemplateRef } from "@angular/core"; + +@Component({ + selector: "my-widget-config", + templateUrl: "config_screen.component.html", + styleUrls: ["config_screen.widget.component.scss"], +}) +export class ConfigScreenWidgetComponent { + + @Input() widgetComponent: NewWidgetComponent; + @ContentChild(TemplateRef) widgetParamsTemplate: TemplateRef; + + constructor() { + } +} \ No newline at end of file diff --git a/web/app/configs/widget/custom/custom.widget.component.html b/web/app/configs/widget/custom/custom.widget.component.html index af713df..f00ca1d 100644 --- a/web/app/configs/widget/custom/custom.widget.component.html +++ b/web/app/configs/widget/custom/custom.widget.component.html @@ -1,59 +1,18 @@ - - - - - - -
- -
-
- -
- Add {{ defaultName }} -
-
-
- - -
- -
-
-
-
- - -
- {{ widget.name || widget.url || defaultName }} -
-
-
- - -
- - -
-
-
-
-
\ No newline at end of file + + + + + + \ No newline at end of file