valtech-components 2.0.888 → 2.0.890
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/button/button.component.mjs +4 -4
- package/esm2022/lib/components/organisms/form/form.component.mjs +3 -3
- package/esm2022/lib/services/org/org.service.mjs +11 -1
- package/esm2022/lib/services/org/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/valtech-components.mjs +16 -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/atoms/text/text.component.d.ts +1 -1
- package/lib/components/atoms/user-avatar/user-avatar.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 +5 -5
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +2 -2
- package/lib/services/org/org.service.d.ts +5 -1
- package/lib/services/org/types.d.ts +13 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
|
@@ -53,7 +53,7 @@ import 'prismjs/components/prism-json';
|
|
|
53
53
|
* Current version of valtech-components.
|
|
54
54
|
* This is automatically updated during the publish process.
|
|
55
55
|
*/
|
|
56
|
-
const VERSION = '2.0.
|
|
56
|
+
const VERSION = '2.0.890';
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Servicio para gestionar presets de componentes.
|
|
@@ -1323,9 +1323,7 @@ class ButtonComponent {
|
|
|
1323
1323
|
* Explicit props take precedence over preset values.
|
|
1324
1324
|
*/
|
|
1325
1325
|
resolveProps() {
|
|
1326
|
-
const presetProps = this.preset
|
|
1327
|
-
? this.presets.get('button', this.preset)
|
|
1328
|
-
: {};
|
|
1326
|
+
const presetProps = this.preset ? this.presets.get('button', this.preset) : {};
|
|
1329
1327
|
// Merge: preset defaults < explicit props
|
|
1330
1328
|
this.resolvedProps = {
|
|
1331
1329
|
...presetProps,
|
|
@@ -1379,6 +1377,7 @@ class ButtonComponent {
|
|
|
1379
1377
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ButtonComponent, deps: [{ token: DownloadService }, { token: IconService }, { token: NavigationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1380
1378
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ButtonComponent, isStandalone: true, selector: "val-button", inputs: { preset: "preset", props: "props" }, outputs: { onClick: "onClick" }, usesOnChanges: true, ngImport: i0, template: `
|
|
1381
1379
|
<ion-button
|
|
1380
|
+
[attr.data-testid]="resolvedProps.token"
|
|
1382
1381
|
[type]="resolvedProps.type"
|
|
1383
1382
|
[color]="resolvedProps.color"
|
|
1384
1383
|
[expand]="resolvedProps.expand"
|
|
@@ -1401,6 +1400,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1401
1400
|
type: Component,
|
|
1402
1401
|
args: [{ selector: 'val-button', standalone: true, imports: [CommonModule, IonButton, IonIcon, IonSpinner, IonText], template: `
|
|
1403
1402
|
<ion-button
|
|
1403
|
+
[attr.data-testid]="resolvedProps.token"
|
|
1404
1404
|
[type]="resolvedProps.type"
|
|
1405
1405
|
[color]="resolvedProps.color"
|
|
1406
1406
|
[expand]="resolvedProps.expand"
|
|
@@ -29678,7 +29678,7 @@ class FormComponent {
|
|
|
29678
29678
|
<div class="section">
|
|
29679
29679
|
<val-title [props]="{ content: s.name, size: 'large', color: '', bold: false }"></val-title>
|
|
29680
29680
|
@for (f of s.fields; track f.name) {
|
|
29681
|
-
<div class="input">
|
|
29681
|
+
<div class="input" [attr.data-testid]="f.token">
|
|
29682
29682
|
@if (f.type !== types.PHONE && f.type !== types.HANDLE) {
|
|
29683
29683
|
<val-title [props]="{ content: f.label, size: 'small', color: 'dark', bold: false }"></val-title>
|
|
29684
29684
|
}
|
|
@@ -29808,7 +29808,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
29808
29808
|
<div class="section">
|
|
29809
29809
|
<val-title [props]="{ content: s.name, size: 'large', color: '', bold: false }"></val-title>
|
|
29810
29810
|
@for (f of s.fields; track f.name) {
|
|
29811
|
-
<div class="input">
|
|
29811
|
+
<div class="input" [attr.data-testid]="f.token">
|
|
29812
29812
|
@if (f.type !== types.PHONE && f.type !== types.HANDLE) {
|
|
29813
29813
|
<val-title [props]="{ content: f.label, size: 'small', color: 'dark', bold: false }"></val-title>
|
|
29814
29814
|
}
|
|
@@ -41821,6 +41821,16 @@ class OrgService {
|
|
|
41821
41821
|
leaveOrg(orgId) {
|
|
41822
41822
|
return this.http.post(`${this.baseUrl}/${orgId}/leave`, {});
|
|
41823
41823
|
}
|
|
41824
|
+
getOrgMembers(orgId, params) {
|
|
41825
|
+
const queryParams = new URLSearchParams();
|
|
41826
|
+
if (params?.limit)
|
|
41827
|
+
queryParams.set('limit', String(params.limit));
|
|
41828
|
+
if (params?.nextToken)
|
|
41829
|
+
queryParams.set('nextToken', params.nextToken);
|
|
41830
|
+
const qs = queryParams.toString();
|
|
41831
|
+
const url = `${this.baseUrl}/${orgId}/members${qs ? '?' + qs : ''}`;
|
|
41832
|
+
return this.http.get(url);
|
|
41833
|
+
}
|
|
41824
41834
|
transferOwnership(orgId, newOwnerId) {
|
|
41825
41835
|
return this.http
|
|
41826
41836
|
.post(`${this.baseUrl}/${orgId}/transfer-ownership`, { newOwnerId })
|