valtech-components 2.0.678 → 2.0.680
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/esm2022/lib/components/molecules/image-crop/image-crop.component.mjs +3 -3
- package/esm2022/lib/components/templates/docs-page/docs-page.component.mjs +35 -4
- package/esm2022/lib/components/templates/docs-page/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +35 -6
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +1 -1
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +1 -1
- package/lib/components/templates/docs-page/docs-page.component.d.ts +3 -0
- package/lib/components/templates/docs-page/types.d.ts +39 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ export declare class RightsFooterComponent {
|
|
|
43
43
|
/**
|
|
44
44
|
* Computed helper for color prop in template.
|
|
45
45
|
*/
|
|
46
|
-
propsColor: import("@angular/core").Signal<"
|
|
46
|
+
propsColor: import("@angular/core").Signal<"success" | "warning" | "danger" | "medium" | "primary" | "secondary" | "tertiary" | "light" | "dark">;
|
|
47
47
|
/**
|
|
48
48
|
* Computed helper for withMargin prop in template.
|
|
49
49
|
*/
|
|
@@ -90,7 +90,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
90
90
|
contentInterpolation?: Record<string, string | number>;
|
|
91
91
|
icon?: import("valtech-components").IconMetada;
|
|
92
92
|
shape?: "round";
|
|
93
|
-
size?: "
|
|
93
|
+
size?: "default" | "small" | "large";
|
|
94
94
|
fill?: "default" | "clear" | "outline" | "solid";
|
|
95
95
|
type: "button" | "submit" | "reset";
|
|
96
96
|
token?: string;
|
|
@@ -72,7 +72,7 @@ export declare class ToolbarComponent implements OnInit {
|
|
|
72
72
|
};
|
|
73
73
|
showFlags?: boolean;
|
|
74
74
|
color: import("@ionic/core").Color;
|
|
75
|
-
size?: "
|
|
75
|
+
size?: "default" | "small" | "large";
|
|
76
76
|
fill?: "default" | "clear" | "outline" | "solid";
|
|
77
77
|
shape?: "round";
|
|
78
78
|
expand?: "full" | "block";
|
|
@@ -2,6 +2,7 @@ import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { DocsBreadcrumbMetadata } from '../../molecules/docs-breadcrumb/types';
|
|
3
3
|
import { DocsNavLinksMetadata } from '../../molecules/docs-nav-links/types';
|
|
4
4
|
import { DocsTocMetadata } from '../../organisms/docs-toc/types';
|
|
5
|
+
import { ContentReactionMetadata } from '../../molecules/content-reaction/types';
|
|
5
6
|
import { DocsPageMetadata } from './types';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
@@ -41,6 +42,7 @@ import * as i0 from "@angular/core";
|
|
|
41
42
|
*/
|
|
42
43
|
export declare class DocsPageComponent implements AfterViewInit, OnDestroy {
|
|
43
44
|
private elementRef;
|
|
45
|
+
private router;
|
|
44
46
|
private _props;
|
|
45
47
|
set props(value: DocsPageMetadata);
|
|
46
48
|
get props(): DocsPageMetadata;
|
|
@@ -53,6 +55,7 @@ export declare class DocsPageComponent implements AfterViewInit, OnDestroy {
|
|
|
53
55
|
navLinksProps: import("@angular/core").Signal<DocsNavLinksMetadata>;
|
|
54
56
|
showNavLinks: import("@angular/core").Signal<boolean>;
|
|
55
57
|
breadcrumbProps: import("@angular/core").Signal<DocsBreadcrumbMetadata>;
|
|
58
|
+
feedbackProps: import("@angular/core").Signal<ContentReactionMetadata>;
|
|
56
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocsPageComponent, never>;
|
|
57
60
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocsPageComponent, "val-docs-page", never, { "props": { "alias": "props"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
58
61
|
}
|
|
@@ -66,6 +66,45 @@ export interface DocsPageMetadata {
|
|
|
66
66
|
* Custom CSS class.
|
|
67
67
|
*/
|
|
68
68
|
cssClass?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Feedback/reaction widget configuration.
|
|
71
|
+
* When enabled, shows a "Was this page helpful?" reaction widget.
|
|
72
|
+
*/
|
|
73
|
+
feedback?: DocsPageFeedbackConfig;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Configuration for the feedback reaction widget.
|
|
77
|
+
*/
|
|
78
|
+
export interface DocsPageFeedbackConfig {
|
|
79
|
+
/**
|
|
80
|
+
* Enable the feedback widget.
|
|
81
|
+
*/
|
|
82
|
+
enabled: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Entity type for categorizing feedback.
|
|
85
|
+
* @default 'docs-page'
|
|
86
|
+
*/
|
|
87
|
+
entityType?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Entity ID for this page. If not provided, derives from current route.
|
|
90
|
+
* @example 'components-button', 'guides-theming'
|
|
91
|
+
*/
|
|
92
|
+
entityId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Custom question text. If not provided, uses i18n default.
|
|
95
|
+
* @example '¿Te resultó útil esta página?'
|
|
96
|
+
*/
|
|
97
|
+
question?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Allow anonymous (unauthenticated) feedback.
|
|
100
|
+
* @default true
|
|
101
|
+
*/
|
|
102
|
+
allowAnonymous?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Show optional comment field after reaction.
|
|
105
|
+
* @default true
|
|
106
|
+
*/
|
|
107
|
+
showComment?: boolean;
|
|
69
108
|
}
|
|
70
109
|
/**
|
|
71
110
|
* Link to another documentation page.
|
package/lib/version.d.ts
CHANGED