@syntrologie/adapt-nav 2.20.0 → 2.22.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/dist/NavWidgetLit.editable.d.ts +151 -0
- package/dist/NavWidgetLit.editable.d.ts.map +1 -0
- package/dist/editor.d.ts +19 -1
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +1141 -123
- package/dist/editor.js.map +4 -4
- package/dist/nav-item-editor.d.ts +43 -0
- package/dist/nav-item-editor.d.ts.map +1 -0
- package/dist/schema.d.ts +18 -18
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adaptive Nav — Per-item editor element
|
|
3
|
+
*
|
|
4
|
+
* Standalone Lit element that renders the Nav per-item edit form
|
|
5
|
+
* (title / description / icon / external / category / href fields).
|
|
6
|
+
* Designed to be mountable both inside the existing right-side panel
|
|
7
|
+
* (Phase 3.2) and inside the modal host (Phase 3.3+).
|
|
8
|
+
*
|
|
9
|
+
* Decorator-free: uses `static override properties` (matches codebase pattern).
|
|
10
|
+
*
|
|
11
|
+
* Fields exposed (matching existing NavEditorLit._renderEditMode):
|
|
12
|
+
* - title (text)
|
|
13
|
+
* - description (text)
|
|
14
|
+
* - href (text, deprecated but kept for backward compat)
|
|
15
|
+
* - icon (text)
|
|
16
|
+
* - category (text)
|
|
17
|
+
* - external (checkbox / boolean)
|
|
18
|
+
*/
|
|
19
|
+
import { LitElement } from 'lit';
|
|
20
|
+
import type { NavConfig } from './types';
|
|
21
|
+
export declare class NavItemEditorLit extends LitElement {
|
|
22
|
+
static styles: import("lit").CSSResult;
|
|
23
|
+
static properties: {
|
|
24
|
+
itemId: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
attribute: string;
|
|
27
|
+
};
|
|
28
|
+
appConfig: {
|
|
29
|
+
attribute: boolean;
|
|
30
|
+
};
|
|
31
|
+
onChange: {
|
|
32
|
+
attribute: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
itemId: string;
|
|
36
|
+
appConfig: NavConfig;
|
|
37
|
+
onChange: (next: NavConfig) => void;
|
|
38
|
+
private _findItem;
|
|
39
|
+
private _patchField;
|
|
40
|
+
private _patchExternal;
|
|
41
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=nav-item-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nav-item-editor.d.ts","sourceRoot":"","sources":["../src/nav-item-editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAa,UAAU,EAAW,MAAM,KAAK,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,SAAS,CAAC;AAMvD,qBAAa,gBAAiB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAqDpB;IAEF,OAAgB,UAAU;;;;;;;;;;;MAIxB;IAEF,MAAM,SAAM;IAEZ,SAAS,EAAE,SAAS,CAIlB;IAEF,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAY;IAE/C,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,WAAW;IAenB,OAAO,CAAC,cAAc;IAYb,MAAM;CAqGhB"}
|
package/dist/schema.d.ts
CHANGED
|
@@ -52,8 +52,8 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
52
52
|
title: string;
|
|
53
53
|
id: string;
|
|
54
54
|
description: string;
|
|
55
|
-
href?: string | undefined;
|
|
56
55
|
external?: boolean | undefined;
|
|
56
|
+
href?: string | undefined;
|
|
57
57
|
icon?: string | undefined;
|
|
58
58
|
anchor?: {
|
|
59
59
|
selector: string;
|
|
@@ -689,8 +689,8 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
689
689
|
title: string;
|
|
690
690
|
id: string;
|
|
691
691
|
description: string;
|
|
692
|
-
href?: string | undefined;
|
|
693
692
|
external?: boolean | undefined;
|
|
693
|
+
href?: string | undefined;
|
|
694
694
|
icon?: string | undefined;
|
|
695
695
|
anchor?: {
|
|
696
696
|
selector: string;
|
|
@@ -905,8 +905,8 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
905
905
|
title: string;
|
|
906
906
|
id: string;
|
|
907
907
|
description: string;
|
|
908
|
-
href?: string | undefined;
|
|
909
908
|
external?: boolean | undefined;
|
|
909
|
+
href?: string | undefined;
|
|
910
910
|
icon?: string | undefined;
|
|
911
911
|
anchor?: {
|
|
912
912
|
selector: string;
|
|
@@ -1054,8 +1054,8 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1054
1054
|
title: string;
|
|
1055
1055
|
id: string;
|
|
1056
1056
|
description: string;
|
|
1057
|
-
href?: string | undefined;
|
|
1058
1057
|
external?: boolean | undefined;
|
|
1058
|
+
href?: string | undefined;
|
|
1059
1059
|
icon?: string | undefined;
|
|
1060
1060
|
anchor?: {
|
|
1061
1061
|
selector: string;
|
|
@@ -1691,8 +1691,8 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1691
1691
|
title: string;
|
|
1692
1692
|
id: string;
|
|
1693
1693
|
description: string;
|
|
1694
|
-
href?: string | undefined;
|
|
1695
1694
|
external?: boolean | undefined;
|
|
1695
|
+
href?: string | undefined;
|
|
1696
1696
|
icon?: string | undefined;
|
|
1697
1697
|
anchor?: {
|
|
1698
1698
|
selector: string;
|
|
@@ -1907,8 +1907,8 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1907
1907
|
title: string;
|
|
1908
1908
|
id: string;
|
|
1909
1909
|
description: string;
|
|
1910
|
-
href?: string | undefined;
|
|
1911
1910
|
external?: boolean | undefined;
|
|
1911
|
+
href?: string | undefined;
|
|
1912
1912
|
icon?: string | undefined;
|
|
1913
1913
|
anchor?: {
|
|
1914
1914
|
selector: string;
|
|
@@ -2066,8 +2066,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2066
2066
|
title: string;
|
|
2067
2067
|
id: string;
|
|
2068
2068
|
description: string;
|
|
2069
|
-
href?: string | undefined;
|
|
2070
2069
|
external?: boolean | undefined;
|
|
2070
|
+
href?: string | undefined;
|
|
2071
2071
|
icon?: string | undefined;
|
|
2072
2072
|
anchor?: {
|
|
2073
2073
|
selector: string;
|
|
@@ -2703,8 +2703,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2703
2703
|
title: string;
|
|
2704
2704
|
id: string;
|
|
2705
2705
|
description: string;
|
|
2706
|
-
href?: string | undefined;
|
|
2707
2706
|
external?: boolean | undefined;
|
|
2707
|
+
href?: string | undefined;
|
|
2708
2708
|
icon?: string | undefined;
|
|
2709
2709
|
anchor?: {
|
|
2710
2710
|
selector: string;
|
|
@@ -2919,8 +2919,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2919
2919
|
title: string;
|
|
2920
2920
|
id: string;
|
|
2921
2921
|
description: string;
|
|
2922
|
-
href?: string | undefined;
|
|
2923
2922
|
external?: boolean | undefined;
|
|
2923
|
+
href?: string | undefined;
|
|
2924
2924
|
icon?: string | undefined;
|
|
2925
2925
|
anchor?: {
|
|
2926
2926
|
selector: string;
|
|
@@ -3145,8 +3145,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
3145
3145
|
title: string;
|
|
3146
3146
|
id: string;
|
|
3147
3147
|
description: string;
|
|
3148
|
-
href?: string | undefined;
|
|
3149
3148
|
external?: boolean | undefined;
|
|
3149
|
+
href?: string | undefined;
|
|
3150
3150
|
icon?: string | undefined;
|
|
3151
3151
|
anchor?: {
|
|
3152
3152
|
selector: string;
|
|
@@ -3309,8 +3309,8 @@ export declare function validateNavTip(data: unknown): z.SafeParseReturnType<{
|
|
|
3309
3309
|
title: string;
|
|
3310
3310
|
id: string;
|
|
3311
3311
|
description: string;
|
|
3312
|
-
href?: string | undefined;
|
|
3313
3312
|
external?: boolean | undefined;
|
|
3313
|
+
href?: string | undefined;
|
|
3314
3314
|
icon?: string | undefined;
|
|
3315
3315
|
anchor?: {
|
|
3316
3316
|
selector: string;
|
|
@@ -3535,8 +3535,8 @@ export declare function validateNavConfig(data: unknown): z.SafeParseReturnType<
|
|
|
3535
3535
|
title: string;
|
|
3536
3536
|
id: string;
|
|
3537
3537
|
description: string;
|
|
3538
|
-
href?: string | undefined;
|
|
3539
3538
|
external?: boolean | undefined;
|
|
3539
|
+
href?: string | undefined;
|
|
3540
3540
|
icon?: string | undefined;
|
|
3541
3541
|
anchor?: {
|
|
3542
3542
|
selector: string;
|
|
@@ -3803,8 +3803,8 @@ export declare const actionStepSchemas: {
|
|
|
3803
3803
|
title: string;
|
|
3804
3804
|
id: string;
|
|
3805
3805
|
description: string;
|
|
3806
|
-
href?: string | undefined;
|
|
3807
3806
|
external?: boolean | undefined;
|
|
3807
|
+
href?: string | undefined;
|
|
3808
3808
|
icon?: string | undefined;
|
|
3809
3809
|
anchor?: {
|
|
3810
3810
|
selector: string;
|
|
@@ -4440,8 +4440,8 @@ export declare const actionStepSchemas: {
|
|
|
4440
4440
|
title: string;
|
|
4441
4441
|
id: string;
|
|
4442
4442
|
description: string;
|
|
4443
|
-
href?: string | undefined;
|
|
4444
4443
|
external?: boolean | undefined;
|
|
4444
|
+
href?: string | undefined;
|
|
4445
4445
|
icon?: string | undefined;
|
|
4446
4446
|
anchor?: {
|
|
4447
4447
|
selector: string;
|
|
@@ -4604,8 +4604,8 @@ export declare const tileWidgets: {
|
|
|
4604
4604
|
title: string;
|
|
4605
4605
|
id: string;
|
|
4606
4606
|
description: string;
|
|
4607
|
-
href?: string | undefined;
|
|
4608
4607
|
external?: boolean | undefined;
|
|
4608
|
+
href?: string | undefined;
|
|
4609
4609
|
icon?: string | undefined;
|
|
4610
4610
|
anchor?: {
|
|
4611
4611
|
selector: string;
|
|
@@ -5241,8 +5241,8 @@ export declare const tileWidgets: {
|
|
|
5241
5241
|
title: string;
|
|
5242
5242
|
id: string;
|
|
5243
5243
|
description: string;
|
|
5244
|
-
href?: string | undefined;
|
|
5245
5244
|
external?: boolean | undefined;
|
|
5245
|
+
href?: string | undefined;
|
|
5246
5246
|
icon?: string | undefined;
|
|
5247
5247
|
anchor?: {
|
|
5248
5248
|
selector: string;
|
|
@@ -5457,8 +5457,8 @@ export declare const tileWidgets: {
|
|
|
5457
5457
|
title: string;
|
|
5458
5458
|
id: string;
|
|
5459
5459
|
description: string;
|
|
5460
|
-
href?: string | undefined;
|
|
5461
5460
|
external?: boolean | undefined;
|
|
5461
|
+
href?: string | undefined;
|
|
5462
5462
|
icon?: string | undefined;
|
|
5463
5463
|
anchor?: {
|
|
5464
5464
|
selector: string;
|
|
@@ -5683,8 +5683,8 @@ export declare const tileWidgets: {
|
|
|
5683
5683
|
title: string;
|
|
5684
5684
|
id: string;
|
|
5685
5685
|
description: string;
|
|
5686
|
-
href?: string | undefined;
|
|
5687
5686
|
external?: boolean | undefined;
|
|
5687
|
+
href?: string | undefined;
|
|
5688
5688
|
icon?: string | undefined;
|
|
5689
5689
|
anchor?: {
|
|
5690
5690
|
selector: string;
|