valtech-components 2.0.714 → 2.0.715
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/atoms/avatar/avatar.component.mjs +3 -3
- package/esm2022/lib/components/atoms/box/box.component.mjs +3 -3
- package/esm2022/lib/components/atoms/button/button.component.mjs +3 -3
- package/esm2022/lib/components/atoms/container/container.component.mjs +52 -0
- package/esm2022/lib/components/atoms/container/types.mjs +2 -0
- package/esm2022/lib/components/atoms/display/display.component.mjs +3 -3
- package/esm2022/lib/components/atoms/divider/divider.component.mjs +3 -3
- package/esm2022/lib/components/atoms/href/href.component.mjs +3 -3
- package/esm2022/lib/components/atoms/icon/icon.component.mjs +3 -3
- package/esm2022/lib/components/atoms/image/image.component.mjs +3 -3
- package/esm2022/lib/components/atoms/progress-bar/progress-bar.component.mjs +3 -3
- package/esm2022/lib/components/atoms/text/text.component.mjs +3 -3
- package/esm2022/lib/components/atoms/title/title.component.mjs +3 -3
- package/esm2022/lib/components/molecules/alert-box/alert-box.component.mjs +3 -3
- package/esm2022/lib/components/molecules/button-group/button-group.component.mjs +3 -3
- package/esm2022/lib/components/molecules/card/card.component.mjs +3 -3
- package/esm2022/lib/components/molecules/code-display/code-display.component.mjs +3 -3
- package/esm2022/lib/components/molecules/content-loader/content-loader.component.mjs +3 -3
- package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/glow-card/glow-card.component.mjs +3 -3
- package/esm2022/lib/components/molecules/hint/hint.component.mjs +3 -3
- package/esm2022/lib/components/molecules/layered-card/layered-card.component.mjs +3 -3
- package/esm2022/lib/components/molecules/link/link.component.mjs +3 -3
- package/esm2022/lib/components/molecules/links-cake/links-cake.component.mjs +3 -3
- package/esm2022/lib/components/molecules/notes-box/notes-box.component.mjs +3 -3
- package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/pill/pill.component.mjs +3 -3
- package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/popover-selector/popover-selector.component.mjs +3 -3
- package/esm2022/lib/components/molecules/progress-status/progress-status.component.mjs +3 -3
- package/esm2022/lib/components/molecules/prompter/prompter.component.mjs +3 -3
- package/esm2022/lib/components/molecules/searchbar/searchbar.component.mjs +3 -3
- package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/title-block/title-block.component.mjs +3 -3
- package/esm2022/lib/components/organisms/banner/banner.component.mjs +3 -3
- package/esm2022/lib/components/organisms/form/form.component.mjs +3 -3
- package/esm2022/lib/components/organisms/header/header.component.mjs +3 -3
- package/esm2022/lib/components/organisms/item-list/item-list.component.mjs +3 -3
- package/esm2022/lib/components/organisms/no-content/no-content.component.mjs +3 -3
- package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +3 -3
- package/esm2022/lib/components/organisms/wizard/wizard.component.mjs +3 -3
- package/esm2022/lib/components/templates/page-wrapper/page-wrapper.component.mjs +20 -20
- package/esm2022/lib/components/templates/page-wrapper/types.mjs +1 -1
- package/esm2022/lib/components/templates/simple/simple.component.mjs +3 -3
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/valtech-components.mjs +153 -104
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/container/container.component.d.ts +30 -0
- package/lib/components/atoms/container/types.d.ts +11 -0
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +1 -1
- package/lib/components/molecules/features-list/features-list.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +1 -1
- package/lib/components/templates/page-wrapper/page-wrapper.component.d.ts +2 -0
- package/lib/components/templates/page-wrapper/types.d.ts +7 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/lib/components/styles/variables.scss +7 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ContainerAlign, ContainerMetadata, ContainerPadding, ContainerSize } from './types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* val-container
|
|
5
|
+
*
|
|
6
|
+
* Layout primitive that caps content max-width using design tokens
|
|
7
|
+
* and centers it horizontally. Use to keep UX consistent on large
|
|
8
|
+
* screens without per-page CSS.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <val-container size="xl">
|
|
12
|
+
* <!-- page content -->
|
|
13
|
+
* </val-container>
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <val-container [props]="{ size: 'md', padding: 'compact' }">
|
|
17
|
+
* <!-- narrower form -->
|
|
18
|
+
* </val-container>
|
|
19
|
+
*/
|
|
20
|
+
export declare class ContainerComponent {
|
|
21
|
+
readonly props: import("@angular/core").InputSignal<ContainerMetadata>;
|
|
22
|
+
readonly size: import("@angular/core").Signal<ContainerSize>;
|
|
23
|
+
readonly padding: import("@angular/core").Signal<ContainerPadding>;
|
|
24
|
+
readonly align: import("@angular/core").Signal<ContainerAlign>;
|
|
25
|
+
get sizeAttr(): ContainerSize;
|
|
26
|
+
get paddingAttr(): ContainerPadding;
|
|
27
|
+
get alignAttr(): ContainerAlign;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContainerComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContainerComponent, "val-container", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ContainerSize = 'sm' | 'md' | 'lg' | 'xl' | 'fluid';
|
|
2
|
+
export type ContainerPadding = 'none' | 'compact' | 'comfortable';
|
|
3
|
+
export type ContainerAlign = 'start' | 'center';
|
|
4
|
+
export interface ContainerMetadata {
|
|
5
|
+
/** Max-width cap. fluid = no cap. Default: 'xl' (1100px) */
|
|
6
|
+
size?: ContainerSize;
|
|
7
|
+
/** Lateral padding. Default: 'comfortable' (16px) */
|
|
8
|
+
padding?: ContainerPadding;
|
|
9
|
+
/** Horizontal alignment. Default: 'center' */
|
|
10
|
+
align?: ContainerAlign;
|
|
11
|
+
}
|
|
@@ -39,7 +39,7 @@ export declare class RightsFooterComponent {
|
|
|
39
39
|
/**
|
|
40
40
|
* Computed helper for align prop in template.
|
|
41
41
|
*/
|
|
42
|
-
propsAlign: import("@angular/core").Signal<"
|
|
42
|
+
propsAlign: import("@angular/core").Signal<"center" | "left" | "right">;
|
|
43
43
|
/**
|
|
44
44
|
* Computed helper for color prop in template.
|
|
45
45
|
*/
|
|
@@ -49,7 +49,7 @@ export declare class FeaturesListComponent {
|
|
|
49
49
|
iconSize: number;
|
|
50
50
|
mode: "horizontal" | "vertical";
|
|
51
51
|
gap: "small" | "medium" | "large";
|
|
52
|
-
alignment: "
|
|
52
|
+
alignment: "start" | "center";
|
|
53
53
|
}>;
|
|
54
54
|
/** Resolved icon color (handles Ionic colors and CSS colors) */
|
|
55
55
|
iconColorStyle: import("@angular/core").Signal<string>;
|
|
@@ -57,7 +57,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
57
57
|
linkConfig?: import("valtech-components").LinkProcessorConfig;
|
|
58
58
|
allowPartialBold?: boolean;
|
|
59
59
|
authorColor?: import("@ionic/core").Color;
|
|
60
|
-
alignment?: "
|
|
60
|
+
alignment?: "center" | "left" | "right";
|
|
61
61
|
showQuoteMark?: boolean;
|
|
62
62
|
};
|
|
63
63
|
getHighlightTextProps(element: ArticleElement): {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ViewWillEnter, ViewWillLeave } from '@ionic/angular/standalone';
|
|
3
|
+
import { ContainerSize } from '../../atoms/container/types';
|
|
3
4
|
import { PageWrapperMetadata } from './types';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
@@ -71,6 +72,7 @@ export declare class PageWrapperComponent implements ViewWillEnter, ViewWillLeav
|
|
|
71
72
|
}>;
|
|
72
73
|
contentId: import("@angular/core").Signal<string>;
|
|
73
74
|
propsFooter: import("@angular/core").Signal<import("valtech-components").CompanyFooterMetadata>;
|
|
75
|
+
contentMaxWidth: import("@angular/core").Signal<ContainerSize>;
|
|
74
76
|
background: import("@angular/core").Signal<string>;
|
|
75
77
|
ngOnInit(): void;
|
|
76
78
|
ngOnDestroy(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HeaderMetadata } from '../../organisms/header/types';
|
|
2
2
|
import { CompanyFooterMetadata } from '../../organisms/company-footer/types';
|
|
3
|
+
import { ContainerSize } from '../../atoms/container/types';
|
|
3
4
|
/**
|
|
4
5
|
* Configuration for the page wrapper component.
|
|
5
6
|
*/
|
|
@@ -16,4 +17,10 @@ export interface PageWrapperMetadata {
|
|
|
16
17
|
contentId?: string;
|
|
17
18
|
/** Enable scroll-to-top on route change */
|
|
18
19
|
scrollToTopOnNavigate?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Max-width cap for the routed content using design tokens.
|
|
22
|
+
* 'fluid' = no cap (default, backwards-compatible).
|
|
23
|
+
* Recommended: 'xl' for typical app pages.
|
|
24
|
+
*/
|
|
25
|
+
contentMaxWidth?: ContainerSize;
|
|
19
26
|
}
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export * from './lib/components/atoms/avatar/avatar.component';
|
|
|
3
3
|
export * from './lib/components/atoms/avatar/types';
|
|
4
4
|
export * from './lib/components/atoms/box/box.component';
|
|
5
5
|
export * from './lib/components/atoms/box/types';
|
|
6
|
+
export * from './lib/components/atoms/container/container.component';
|
|
7
|
+
export * from './lib/components/atoms/container/types';
|
|
6
8
|
export * from './lib/components/atoms/button/button.component';
|
|
7
9
|
export * from './lib/components/atoms/button/factory';
|
|
8
10
|
export * from './lib/components/atoms/display/display.component';
|
|
@@ -83,6 +83,13 @@ $color-default-shadow: #121954;
|
|
|
83
83
|
$color-default-placeholder: #afbacc;
|
|
84
84
|
|
|
85
85
|
:root {
|
|
86
|
+
/* CONTAINER WIDTHS — design tokens consumibles desde apps */
|
|
87
|
+
--val-container-sm: 540px;
|
|
88
|
+
--val-container-md: 720px;
|
|
89
|
+
--val-container-lg: 880px;
|
|
90
|
+
--val-container-xl: 1100px;
|
|
91
|
+
--val-container-padding: 16px;
|
|
92
|
+
|
|
86
93
|
--ion-color-primary: #7026df;
|
|
87
94
|
--ion-color-primary-rgb: 112, 38, 223;
|
|
88
95
|
--ion-color-primary-contrast: #ffffff;
|