@yuuvis/client-shell 3.0.1 → 3.1.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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, signal, Component, InjectionToken, makeEnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { AppCacheService } from '@yuuvis/client-core';
|
|
3
4
|
import * as i1 from '@yuuvis/client-framework/widget-grid';
|
|
4
5
|
import { YuvWidgetGridModule } from '@yuuvis/client-framework/widget-grid';
|
|
5
|
-
import { AppCacheService } from '@yuuvis/client-core';
|
|
6
6
|
|
|
7
7
|
class WidgetDashboardPageComponent {
|
|
8
8
|
#appCache;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yuuvis-client-shell-widget-dashboard.mjs","sources":["../../../../../libs/yuuvis/client-shell/widget-dashboard/src/lib/widget-dashboard.component.ts","../../../../../libs/yuuvis/client-shell/widget-dashboard/src/lib/widget-dashboard.component.html","../../../../../libs/yuuvis/client-shell/widget-dashboard/src/lib/widget-dashboard.interface.ts","../../../../../libs/yuuvis/client-shell/widget-dashboard/src/lib/provide.widget-dashboard.ts","../../../../../libs/yuuvis/client-shell/widget-dashboard/src/lib/lib.routes.ts","../../../../../libs/yuuvis/client-shell/widget-dashboard/src/yuuvis-client-shell-widget-dashboard.ts"],"sourcesContent":["import { Component, inject, signal } from '@angular/core';\n\nimport {
|
|
1
|
+
{"version":3,"file":"yuuvis-client-shell-widget-dashboard.mjs","sources":["../../../../../libs/yuuvis/client-shell/widget-dashboard/src/lib/widget-dashboard.component.ts","../../../../../libs/yuuvis/client-shell/widget-dashboard/src/lib/widget-dashboard.component.html","../../../../../libs/yuuvis/client-shell/widget-dashboard/src/lib/widget-dashboard.interface.ts","../../../../../libs/yuuvis/client-shell/widget-dashboard/src/lib/provide.widget-dashboard.ts","../../../../../libs/yuuvis/client-shell/widget-dashboard/src/lib/lib.routes.ts","../../../../../libs/yuuvis/client-shell/widget-dashboard/src/yuuvis-client-shell-widget-dashboard.ts"],"sourcesContent":["import { Component, inject, signal } from '@angular/core';\n\nimport { AppCacheService } from '@yuuvis/client-core';\nimport { WidgetGridWorkspaceConfig, YuvWidgetGridModule } from '@yuuvis/client-framework/widget-grid';\n\n@Component({\n selector: 'yuv-widget-dashboard',\n imports: [YuvWidgetGridModule],\n templateUrl: './widget-dashboard.component.html',\n styleUrl: './widget-dashboard.component.scss'\n})\nexport class WidgetDashboardPageComponent {\n #appCache = inject(AppCacheService);\n\n #STORAGE_KEY = 'widgetGridWorkspaceConfig';\n wsConfig = signal<WidgetGridWorkspaceConfig | undefined>(undefined);\n\n constructor() {\n // load persisted config\n // TODO: Use shell-config.service to store that config using system:item\n this.#appCache.getItem<WidgetGridWorkspaceConfig>(this.#STORAGE_KEY).subscribe((config) => {\n this.wsConfig.set(config);\n });\n }\n\n onConfigChange(config: WidgetGridWorkspaceConfig | undefined) {\n // persist config\n // TODO: Use shell-config.service to store that config using system:item\n this.#appCache.setItem(this.#STORAGE_KEY, config).subscribe();\n }\n\n onGridItemEvent(event: any) {\n // console.log('Item event:', event);\n }\n\n onEditModeChange(editMode: boolean) {\n // console.log('Edit mode changed:', editMode);\n }\n}\n","<yuv-widget-grid-workspaces \n[workspaceConfig]=\"wsConfig()\"\n(gridItemEvent)=\"onGridItemEvent($event)\"\n(editModeChange)=\"onEditModeChange($event)\"\n(configChange)=\"onConfigChange($event)\"></yuv-widget-grid-workspaces>","import { InjectionToken } from \"@angular/core\";\n\nexport const WIDGET_DASHBOARD_CONFIG = new InjectionToken('WIDGET_DASHBOARD_CONFIG');\n\nexport interface WidgetDashboardConfig {\n id: string;\n buckets?: string[];\n workspaces?: boolean;\n}\n","import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core';\nimport { WIDGET_DASHBOARD_CONFIG, WidgetDashboardConfig } from './widget-dashboard.interface';\n\n\nexport const provideYuvWidgetDashboard = (config: WidgetDashboardConfig): EnvironmentProviders => {\n return makeEnvironmentProviders([\n {\n provide: WIDGET_DASHBOARD_CONFIG,\n useValue: config\n }\n ]);\n};\n","import { Route } from '@angular/router';\nimport { WidgetDashboardPageComponent } from './widget-dashboard.component';\n\nexport const WidgetDashboardRoutes: Route[] = [\n { path: '', component: WidgetDashboardPageComponent },\n { path: '**', redirectTo: '/' }\n ]\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,4BAA4B,CAAA;AACvC,IAAA,SAAS;AAET,IAAA,YAAY;AAGZ,IAAA,WAAA,GAAA;AALA,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,eAAe,CAAC;QAEnC,IAAA,CAAA,YAAY,GAAG,2BAA2B;AAC1C,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAwC,SAAS,+EAAC;;;AAKjE,QAAA,IAAI,CAAC,SAAS,CAAC,OAAO,CAA4B,IAAI,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,KAAI;AACxF,YAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC;AAC3B,QAAA,CAAC,CAAC;IACJ;AAEA,IAAA,cAAc,CAAC,MAA6C,EAAA;;;AAG1D,QAAA,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAAS,EAAE;IAC/D;AAEA,IAAA,eAAe,CAAC,KAAU,EAAA;;IAE1B;AAEA,IAAA,gBAAgB,CAAC,QAAiB,EAAA;;IAElC;8GA1BW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXzC,qOAIqE,EAAA,MAAA,EAAA,CAAA,uFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDGzD,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gCAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,iBAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,eAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIlB,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBANxC,SAAS;+BACE,sBAAsB,EAAA,OAAA,EACvB,CAAC,mBAAmB,CAAC,EAAA,QAAA,EAAA,qOAAA,EAAA,MAAA,EAAA,CAAA,uFAAA,CAAA,EAAA;;;MELnB,uBAAuB,GAAG,IAAI,cAAc,CAAC,yBAAyB;;ACE5E,MAAM,yBAAyB,GAAG,CAAC,MAA6B,KAA0B;AAC/F,IAAA,OAAO,wBAAwB,CAAC;AAC9B,QAAA;AACE,YAAA,OAAO,EAAE,uBAAuB;AAChC,YAAA,QAAQ,EAAE;AACX;AACF,KAAA,CAAC;AACJ;;ACRO,MAAM,qBAAqB,GAAY;AAC1C,IAAA,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,4BAA4B,EAAE;AACrD,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG;;;ACLjC;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuuvis/client-shell",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@angular/common": "^21.2.9",
|
|
8
8
|
"@angular/core": "^21.2.9",
|
|
9
9
|
"@angular/service-worker": "^21.2.9",
|
|
10
|
-
"@yuuvis/client-core": "^3.0
|
|
11
|
-
"@yuuvis/client-shell-core": "^3.0
|
|
12
|
-
"@yuuvis/client-framework": "^3.0
|
|
10
|
+
"@yuuvis/client-core": "^3.1.0",
|
|
11
|
+
"@yuuvis/client-shell-core": "^3.1.0",
|
|
12
|
+
"@yuuvis/client-framework": "^3.1.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"tslib": "^2.3.0"
|