@praxisui/settings-panel 3.0.0-beta.7 → 3.0.0-beta.9
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/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { AiProviderCatalogItem } from '@praxisui/ai';
|
|
|
10
10
|
|
|
11
11
|
interface SettingsPanelConfig {
|
|
12
12
|
id: string;
|
|
13
|
-
title
|
|
13
|
+
title?: string;
|
|
14
14
|
/** Optional Material icon name to display in header before the title */
|
|
15
15
|
titleIcon?: string;
|
|
16
16
|
/** Optional initial expanded state */
|
|
@@ -130,6 +130,7 @@ declare class SettingsPanelService {
|
|
|
130
130
|
private overlay;
|
|
131
131
|
private injector;
|
|
132
132
|
private currentRef?;
|
|
133
|
+
private readonly i18n;
|
|
133
134
|
constructor(overlay: Overlay, injector: Injector);
|
|
134
135
|
/**
|
|
135
136
|
* Opens a new settings panel. If another panel is already open it will be
|
|
@@ -158,14 +159,16 @@ declare class SettingsPanelComponent {
|
|
|
158
159
|
isValid: boolean;
|
|
159
160
|
isBusy: boolean;
|
|
160
161
|
private lastSavedAt;
|
|
162
|
+
private readonly destroyRef;
|
|
163
|
+
private readonly i18n;
|
|
164
|
+
private contentHost;
|
|
165
|
+
constructor(cdr: ChangeDetectorRef, dialog: MatDialog);
|
|
161
166
|
get canApply(): boolean;
|
|
162
167
|
get canSave(): boolean;
|
|
163
168
|
get disabledReason(): string;
|
|
164
169
|
get statusTone(): 'busy' | 'dirty' | 'saved' | 'idle';
|
|
165
170
|
get statusMessage(): string;
|
|
166
|
-
|
|
167
|
-
private contentHost;
|
|
168
|
-
constructor(cdr: ChangeDetectorRef, dialog: MatDialog);
|
|
171
|
+
tx(text: string, params?: Record<string, string | number | boolean | null | undefined>): string;
|
|
169
172
|
attachContent(component: Type<any>, injector: Injector, ref: SettingsPanelRef, inputs?: Record<string, unknown>): void;
|
|
170
173
|
private applyInputs;
|
|
171
174
|
private resolveSupportedInputs;
|
|
@@ -232,7 +235,7 @@ interface GlobalConfigEditorFieldSpec {
|
|
|
232
235
|
* Minimal FormConfig schema for the Global Config editor UI.
|
|
233
236
|
* This can be extended incrementally as new domains/settings are added.
|
|
234
237
|
*/
|
|
235
|
-
declare function buildGlobalConfigFormConfig(): FormConfig;
|
|
238
|
+
declare function buildGlobalConfigFormConfig(translate?: (text: string, params?: Record<string, string | number | boolean | null | undefined>) => string): FormConfig;
|
|
236
239
|
|
|
237
240
|
declare class GlobalConfigEditorComponent implements OnInit, AfterViewInit {
|
|
238
241
|
private admin;
|
|
@@ -255,6 +258,7 @@ declare class GlobalConfigEditorComponent implements OnInit, AfterViewInit {
|
|
|
255
258
|
hostAiModel: ViewContainerRef;
|
|
256
259
|
hostAiEmbedding: ViewContainerRef;
|
|
257
260
|
private readonly destroyRef;
|
|
261
|
+
private readonly i18n;
|
|
258
262
|
private readonly iconPicker;
|
|
259
263
|
private readonly aiApi;
|
|
260
264
|
private readonly cdr;
|
|
@@ -335,6 +339,7 @@ declare class GlobalConfigEditorComponent implements OnInit, AfterViewInit {
|
|
|
335
339
|
testAiConnection(): Promise<void>;
|
|
336
340
|
private buildLogOptions;
|
|
337
341
|
private safeName;
|
|
342
|
+
tx(text: string, params?: Record<string, string | number | boolean | null | undefined>): string;
|
|
338
343
|
private buildChangedValues;
|
|
339
344
|
private shouldIncludeField;
|
|
340
345
|
private resolveSaveErrorMessage;
|
|
@@ -365,6 +370,7 @@ type OpenGlobalConfigOptions = {
|
|
|
365
370
|
id?: string;
|
|
366
371
|
title?: string;
|
|
367
372
|
titleIcon?: string;
|
|
373
|
+
tx?: (text: string, params?: Record<string, string | number | boolean | null | undefined>) => string;
|
|
368
374
|
};
|
|
369
375
|
/**
|
|
370
376
|
* Helper to open the Global Config Editor in a host application.
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/settings-panel",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.9",
|
|
4
4
|
"description": "Settings panel for Praxis UI libraries: open editors for configuration at runtime and persist settings.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
8
8
|
"@angular/cdk": "^20.0.0",
|
|
9
9
|
"@angular/material": "^20.0.0",
|
|
10
|
-
"@praxisui/
|
|
10
|
+
"@praxisui/ai": "^3.0.0-beta.9",
|
|
11
|
+
"@praxisui/core": "^3.0.0-beta.9",
|
|
12
|
+
"@praxisui/dynamic-fields": "^3.0.0-beta.9"
|
|
11
13
|
},
|
|
12
14
|
"dependencies": {
|
|
13
15
|
"tslib": "^2.3.0"
|