valtech-components 4.0.186 → 4.0.188
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/load-more/load-more.component.mjs +2 -2
- package/esm2022/lib/components/molecules/section-header/section-header.component.mjs +8 -6
- package/esm2022/lib/components/molecules/section-header/types.mjs +1 -1
- package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +2 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +9 -7
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/section-header/section-header.component.d.ts +1 -0
- package/lib/components/molecules/section-header/types.d.ts +6 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
package/esm2022/lib/version.mjs
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Current version of valtech-components.
|
|
3
3
|
* This is automatically updated during the publish process.
|
|
4
4
|
*/
|
|
5
|
-
export const VERSION = '4.0.
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
export const VERSION = '4.0.188';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDdXJyZW50IHZlcnNpb24gb2YgdmFsdGVjaC1jb21wb25lbnRzLlxuICogVGhpcyBpcyBhdXRvbWF0aWNhbGx5IHVwZGF0ZWQgZHVyaW5nIHRoZSBwdWJsaXNoIHByb2Nlc3MuXG4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gJzQuMC4xODgnO1xuIl19
|
|
@@ -56,7 +56,7 @@ import { BrowserMultiFormatReader } from '@zxing/browser';
|
|
|
56
56
|
* Current version of valtech-components.
|
|
57
57
|
* This is automatically updated during the publish process.
|
|
58
58
|
*/
|
|
59
|
-
const VERSION = '4.0.
|
|
59
|
+
const VERSION = '4.0.188';
|
|
60
60
|
|
|
61
61
|
// Control de estado de refresco (singleton a nivel de módulo)
|
|
62
62
|
let isRefreshing = false;
|
|
@@ -21099,7 +21099,7 @@ class LoadMoreComponent {
|
|
|
21099
21099
|
this.shape = computed(() => this.props().shape ?? 'round');
|
|
21100
21100
|
this.size = computed(() => this.props().size ?? 'small');
|
|
21101
21101
|
this.threshold = computed(() => this.props().threshold ?? '100px');
|
|
21102
|
-
this.label = computed(() => this.props().label ?? this.i18n.t('
|
|
21102
|
+
this.label = computed(() => this.props().label ?? this.i18n.t('label', 'LoadMore'));
|
|
21103
21103
|
this._pendingComplete = signal(null);
|
|
21104
21104
|
if (!this.i18n.hasNamespace('LoadMore')) {
|
|
21105
21105
|
this.i18n.registerContent('LoadMore', LOAD_MORE_I18N);
|
|
@@ -29621,11 +29621,12 @@ class SectionHeaderComponent {
|
|
|
29621
29621
|
title: '',
|
|
29622
29622
|
...this.props(),
|
|
29623
29623
|
}));
|
|
29624
|
+
this.titleClass = computed(() => (this.config().titleSize === 'page' ? 'sh-title sh-title--page' : 'sh-title'));
|
|
29624
29625
|
}
|
|
29625
29626
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SectionHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
29626
29627
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SectionHeaderComponent, isStandalone: true, selector: "val-section-header", inputs: { props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionClick: "actionClick" }, ngImport: i0, template: `
|
|
29627
29628
|
<div class="sh-row">
|
|
29628
|
-
<span class="sh-title">{{ config().title }}</span>
|
|
29629
|
+
<span class="sh-title" [ngClass]="titleClass()">{{ config().title }}</span>
|
|
29629
29630
|
@if (config().action; as act) {
|
|
29630
29631
|
<val-button [props]="act" (onClick)="actionClick.emit($event)" />
|
|
29631
29632
|
}
|
|
@@ -29638,13 +29639,13 @@ class SectionHeaderComponent {
|
|
|
29638
29639
|
@if (config().subtitle) {
|
|
29639
29640
|
<p class="sh-subtitle">{{ config().subtitle }}</p>
|
|
29640
29641
|
}
|
|
29641
|
-
`, isInline: true, styles: [":host{display:block}.sh-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.sh-title{font-size:1.125rem;font-weight:800;color:var(--val-ink, var(--ion-color-dark, #2f2a36));letter-spacing:-.01em;line-height:1.25;margin:0}.sh-info-link{display:inline-block;margin:4px 0 0;padding:0;background:none;border:none;cursor:pointer;font-size:.8125rem;font-family:inherit;font-weight:600;color:var(--val-section-header-cta-color, var(--ion-color-primary, #3880ff));line-height:1.4;text-align:start}.sh-subtitle{display:block;margin:4px 0 0;font-size:.8125rem;color:var(--val-ink-soft, var(--ion-color-medium, #92949c));line-height:1.4}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }] }); }
|
|
29642
|
+
`, isInline: true, styles: [":host{display:block}.sh-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.sh-title{font-size:1.125rem;font-weight:800;color:var(--val-ink, var(--ion-color-dark, #2f2a36));letter-spacing:-.01em;line-height:1.25;margin:0}.sh-title--page{font-size:1.5rem;line-height:2rem}@media (min-width: 768px){.sh-title--page{font-size:2rem;line-height:2.5rem}}.sh-info-link{display:inline-block;margin:4px 0 0;padding:0;background:none;border:none;cursor:pointer;font-size:.8125rem;font-family:inherit;font-weight:600;color:var(--val-section-header-cta-color, var(--ion-color-primary, #3880ff));line-height:1.4;text-align:start}.sh-subtitle{display:block;margin:4px 0 0;font-size:.8125rem;color:var(--val-ink-soft, var(--ion-color-medium, #92949c));line-height:1.4}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
29642
29643
|
}
|
|
29643
29644
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SectionHeaderComponent, decorators: [{
|
|
29644
29645
|
type: Component,
|
|
29645
|
-
args: [{ selector: 'val-section-header', standalone: true, imports: [ButtonComponent], template: `
|
|
29646
|
+
args: [{ selector: 'val-section-header', standalone: true, imports: [ButtonComponent, NgClass], template: `
|
|
29646
29647
|
<div class="sh-row">
|
|
29647
|
-
<span class="sh-title">{{ config().title }}</span>
|
|
29648
|
+
<span class="sh-title" [ngClass]="titleClass()">{{ config().title }}</span>
|
|
29648
29649
|
@if (config().action; as act) {
|
|
29649
29650
|
<val-button [props]="act" (onClick)="actionClick.emit($event)" />
|
|
29650
29651
|
}
|
|
@@ -29657,7 +29658,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
29657
29658
|
@if (config().subtitle) {
|
|
29658
29659
|
<p class="sh-subtitle">{{ config().subtitle }}</p>
|
|
29659
29660
|
}
|
|
29660
|
-
`, styles: [":host{display:block}.sh-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.sh-title{font-size:1.125rem;font-weight:800;color:var(--val-ink, var(--ion-color-dark, #2f2a36));letter-spacing:-.01em;line-height:1.25;margin:0}.sh-info-link{display:inline-block;margin:4px 0 0;padding:0;background:none;border:none;cursor:pointer;font-size:.8125rem;font-family:inherit;font-weight:600;color:var(--val-section-header-cta-color, var(--ion-color-primary, #3880ff));line-height:1.4;text-align:start}.sh-subtitle{display:block;margin:4px 0 0;font-size:.8125rem;color:var(--val-ink-soft, var(--ion-color-medium, #92949c));line-height:1.4}\n"] }]
|
|
29661
|
+
`, styles: [":host{display:block}.sh-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.sh-title{font-size:1.125rem;font-weight:800;color:var(--val-ink, var(--ion-color-dark, #2f2a36));letter-spacing:-.01em;line-height:1.25;margin:0}.sh-title--page{font-size:1.5rem;line-height:2rem}@media (min-width: 768px){.sh-title--page{font-size:2rem;line-height:2.5rem}}.sh-info-link{display:inline-block;margin:4px 0 0;padding:0;background:none;border:none;cursor:pointer;font-size:.8125rem;font-family:inherit;font-weight:600;color:var(--val-section-header-cta-color, var(--ion-color-primary, #3880ff));line-height:1.4;text-align:start}.sh-subtitle{display:block;margin:4px 0 0;font-size:.8125rem;color:var(--val-ink-soft, var(--ion-color-medium, #92949c));line-height:1.4}\n"] }]
|
|
29661
29662
|
}], propDecorators: { actionClick: [{
|
|
29662
29663
|
type: Output
|
|
29663
29664
|
}] } });
|
|
@@ -54584,6 +54585,7 @@ class OrganizationViewComponent {
|
|
|
54584
54585
|
});
|
|
54585
54586
|
this.switchOrgSectionProps = computed(() => ({
|
|
54586
54587
|
title: this.pageTitle(),
|
|
54588
|
+
titleSize: 'page',
|
|
54587
54589
|
action: {
|
|
54588
54590
|
text: this.tt('switchOrgCta'),
|
|
54589
54591
|
icon: { name: 'swap-horizontal-outline', slot: 'start' },
|