-
Notifications
You must be signed in to change notification settings - Fork 0
/
chunk-2SKRRUD2.js
521 lines (445 loc) · 46.8 KB
/
chunk-2SKRRUD2.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
import{$ as V,$a as _,$c as te,Bc as T,Cd as oe,F as u,Fa as q,G as c,Ga as o,Ia as R,Ka as S,Kb as D,La as E,Lb as G,Ma as f,Mb as F,Nb as N,Oa as H,Ob as W,Od as ne,Pa as P,Pb as O,Qa as K,Sb as Q,T as p,Tb as J,U as k,Vb as X,Wb as Y,Xd as C,Yb as Z,Yd as x,Zb as j,_ as g,ha as m,ka as y,md as B,na as e,oa as t,oc as $,pa as l,re as w,se as ie,ta as A,ua as b,y as L,yd as I,zc as ee}from"./chunk-V5DQALWN.js";var Ee=()=>({label:"Option 1",value:"1"}),fe=()=>({label:"Option 2",value:"2"}),ve=(i,Se)=>[i,Se],ae=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275cmp=g({type:i,selectors:[["sample-po-radio-group-basic"]],standalone:!1,decls:1,vars:6,consts:[["name","radioGroupBasic","p-label","PO Radio Group",3,"p-options"]],template:function(a,n){a&1&&l(0,"po-radio-group",0),a&2&&m("p-options",K(3,ve,H(1,Ee),H(2,fe)))},dependencies:[T],encapsulation:2})}return i})();var xe=i=>({"docs-sample-code-tabs":i}),re=(()=>{class i{hideSampleCodeTabs=!0;sampleCodeButtonLabel="Talk is cheap, show me the code!";sampleCodeButtonIcon="ph ph-plus";toggleSampleCodeTabs(){this.hideSampleCodeTabs=!this.hideSampleCodeTabs,this.sampleCodeButtonLabel=this.hideSampleCodeTabs?"Talk is cheap, show me the code!":"Okay, hide the code",this.sampleCodeButtonIcon=this.hideSampleCodeTabs?"ph ph-plus":"ph ph-minus"}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=g({type:i,selectors:[["sample-po-radio-group-basic-view"]],standalone:!1,decls:34,vars:6,consts:[[1,"sample-blockquote"],[1,"sample-title","po-font-text-large-bold"],[1,"show-me-the-code",3,"click"],[3,"ngClass"],["p-size","2"],["p-label","HTML","p-active",""],[1,"doc-label-path"],["appCodeHighlight","",1,"html"],["p-label","TS"],["appCodeHighlight","",1,"typescript"],["p-label","E2E"],["appCodeHighlight","",1,"test"],[1,"docs-sample-container"]],template:function(a,n){a&1&&(l(0,"br"),e(1,"blockquote",0)(2,"label",1),o(3,"PO Radio Group Basic"),t(),e(4,"a",2),b("click",function(){return n.toggleSampleCodeTabs()}),l(5,"span"),o(6),t()(),e(7,"div",3)(8,"po-tabs",4)(9,"po-tab",5)(10,"div")(11,"label",6),o(12,"sample-po-radio-group-basic/sample-po-radio-group-basic.component.html"),t(),e(13,"pre",7),o(14,`<po-radio-group
name="radioGroupBasic"
p-label="PO Radio Group"
[p-options]="[
{ label: 'Option 1', value: '1' },
{ label: 'Option 2', value: '2' }
]"
>
</po-radio-group>
`),t()()(),e(15,"po-tab",8)(16,"div")(17,"label",6),o(18,"sample-po-radio-group-basic/sample-po-radio-group-basic.component.ts"),t(),e(19,"pre",9),o(20,`import { Component } from '@angular/core';
@Component({
selector: 'sample-po-radio-group-basic',
templateUrl: './sample-po-radio-group-basic.component.html',
standalone: false
})
export class SamplePoRadioGroupBasicComponent {}
`),t()()(),e(21,"po-tab",10)(22,"div")(23,"label",6),o(24,"sample-po-radio-group-basic/sample-po-radio-group-basic.component.e2e-spec.ts"),t(),e(25,"pre",11),o(26,`import { browser } from 'protractor';
import { PoRadioTest } from './sample-po-radio-group-basic.component.po';
describe('Po-Radio-Group E2E', () => {
const radio: PoRadioTest = new PoRadioTest();
beforeEach(() => {
radio.navigateTo();
});
it('Verify if button is disable on init', () => {
browser.refresh();
expect(radio.poButton.isEnabled()).toBeFalsy();
});
it('Making the choice gender female', () => {
radio.poRadioFemale.click();
expect(radio.poRadioFemale).toBeTruthy();
const btn = radio.poButton;
expect(btn.isEnabled()).toBeTruthy();
});
it('Makink the choice gender male', () => {
radio.poRadioMale.click();
expect(radio.poRadioMale).toBeTruthy();
const btn = radio.poButton;
expect(btn.isEnabled()).toBeTruthy();
});
it('Verify if button is disable after browser reload', () => {
radio.poRadioMale.click();
browser.refresh();
expect(radio.poButton.isEnabled()).toBeFalsy();
});
it('Choose interest book', () => {
radio.poRadioBook.click();
expect(radio.poRadioBook.getAttribute('class')).toBeTruthy();
expect(radio.poRadioMovie.getAttribute('po-input-radio')).toBeFalsy();
expect(radio.poRadioMusic.getAttribute('po-input-radio')).toBeFalsy();
expect(radio.poRadioArt.getAttribute('po-input-radio')).toBeFalsy();
});
it('Choose interest film', () => {
radio.poRadioMovie.click();
expect(radio.poRadioMovie.getAttribute('class')).toBeTruthy();
expect(radio.poRadioBook.getAttribute('po-input-radio')).toBeFalsy();
expect(radio.poRadioMusic.getAttribute('po-input-radio')).toBeFalsy();
expect(radio.poRadioArt.getAttribute('po-input-radio')).toBeFalsy();
});
it('Choose interest music', () => {
radio.poRadioMusic.click();
expect(radio.poRadioMusic.getAttribute('class')).toBeTruthy();
expect(radio.poRadioMovie.getAttribute('po-input-radio')).toBeFalsy();
expect(radio.poRadioBook.getAttribute('po-input-radio')).toBeFalsy();
expect(radio.poRadioArt.getAttribute('po-input-radio')).toBeFalsy();
});
it('Choose interest art', () => {
radio.poRadioArt.click();
expect(radio.poRadioArt.getAttribute('class')).toBeTruthy();
expect(radio.poRadioMovie.getAttribute('po-input-radio')).toBeFalsy();
expect(radio.poRadioBook.getAttribute('po-input-radio')).toBeFalsy();
expect(radio.poRadioMusic.getAttribute('po-input-radio')).toBeFalsy();
});
});
`),t(),e(27,"label",6),o(28,"sample-po-radio-group-basic/sample-po-radio-group-basic.component.po.ts"),t(),e(29,"pre",11),o(30,`import { browser, by, element } from 'protractor';
export class PoRadioTest {
private sampleRadio = 'sample-po-radio-group';
private labelRadio = '.po-radio-group-label';
private inputRadio = '.po-radio-group-input';
navigateTo() {
return browser.get(browser.baseUrl + '/documentation/po-radio-group?view=web');
}
private getInterestArea(area) {
return element(
by.css(
\`\${this.sampleRadio} po-radio-group[name="interestName"] \${this.inputRadio}[value="\${area}"]+\${this.labelRadio}\`
)
);
}
private getGenderName(gender) {
return element(
by.css(
\`\${this.sampleRadio} po-radio-group[name="genderName"] \${this.inputRadio}[value="\${gender}"]+\${this.labelRadio}\`
)
);
}
get poButton() {
return element(by.css(\`\${this.sampleRadio} po-button .po-button\`));
}
get poRadioMovie() {
return this.getInterestArea('movies');
}
get poRadioBook() {
return this.getInterestArea('books');
}
get poRadioArt() {
return this.getInterestArea('arts');
}
get poRadioMusic() {
return this.getInterestArea('music');
}
get poRadioSport() {
return this.getInterestArea('sports');
}
get poRadioFemale() {
return this.getGenderName('female');
}
get poRadioMale() {
return this.getGenderName('male');
}
}
`),t()()()()(),e(31,"div",12),l(32,"sample-po-radio-group-basic"),t(),l(33,"hr")),a&2&&(p(5),y("po-icon "+n.sampleCodeButtonIcon),p(),R(" ",n.sampleCodeButtonLabel,""),p(),m("ngClass",P(4,xe,n.hideSampleCodeTabs)))},dependencies:[_,w,C,x,ae],encapsulation:2})}return i})();var pe=(()=>{class i{columns;event;help;label;option;options;properties;radioGroup;fieldErrorMessage;size;columnOptions=[{label:"1 column",value:1},{label:"2 columns",value:2},{label:"3 columns",value:3},{label:"4 columns",value:4}];propertiesOptions=[{value:"disabled",label:"Disabled"},{value:"optional",label:"Optional"},{value:"required",label:"Required"},{value:"showRequired",label:"Show Required"}];sizesOptions=[{label:"Medium",value:"medium"},{label:"Large",value:"large"}];ngOnInit(){this.restore()}addOption(){this.options.push(this.option),this.option=this.getNewOption()}changeEvent(d){this.event=d}restore(){this.event="",this.radioGroup=void 0,this.properties=[],this.fieldErrorMessage="",this.option=this.getNewOption(),this.options=[]}getNewOption(){return{label:void 0,value:void 0}}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=g({type:i,selectors:[["sample-po-radio-group-labs"]],standalone:!1,decls:28,vars:26,consts:[["optionForm","ngForm"],["propertiesForm","ngForm"],["name","radioGroupLabs",3,"ngModelChange","p-change","ngModel","p-columns","p-disabled","p-help","p-label","p-optional","p-options","p-required","p-field-error-message","p-show-required","p-size"],[1,"po-row"],["p-label","Model",1,"po-md-6",3,"p-value"],["p-label","Event",1,"po-md-6",3,"p-value"],["name","optionLabel","p-label","Option Label","p-required","",1,"po-md-6","po-lg-4",3,"ngModelChange","ngModel"],["name","optionValue","p-label","Option Value","p-required","",1,"po-md-6","po-lg-4",3,"ngModelChange","ngModel"],["name","optionDisabled","p-label","Option Disabled",1,"po-lg-4",3,"ngModelChange","ngModel"],["p-label","Add Option",1,"po-md-6","po-lg-3",3,"p-click","p-disabled"],["name","label","p-clean","","p-label","Label",1,"po-md-6",3,"ngModelChange","ngModel"],["name","help","p-clean","","p-label","Help",1,"po-md-6",3,"ngModelChange","ngModel"],["name","columns","p-columns","3","p-label","Columns",1,"po-lg-6","po-md-12",3,"ngModelChange","ngModel","p-options"],["name","properties","p-columns","3","p-label","Properties",1,"po-lg-6","po-md-12",3,"ngModelChange","ngModel","p-options"],["name","size","p-label","Size",1,"po-lg-6","po-md-12",3,"ngModelChange","ngModel","p-options"],["name","fieldErrorMessage","p-clean","","p-label","Field Error Message",1,"po-md-6",3,"ngModelChange","ngModel"],["p-label","Sample Restore",1,"po-md-3",3,"click"]],template:function(a,n){if(a&1){let s=A();e(0,"po-radio-group",2),f("ngModelChange",function(r){return u(s),E(n.radioGroup,r)||(n.radioGroup=r),c(r)}),b("p-change",function(){return u(s),c(n.changeEvent("p-change"))}),t(),l(1,"hr"),e(2,"div",3),l(3,"po-info",4)(4,"po-info",5),t(),l(5,"hr"),e(6,"form",null,0)(8,"div",3)(9,"po-input",6),f("ngModelChange",function(r){return u(s),E(n.option.label,r)||(n.option.label=r),c(r)}),t(),e(10,"po-input",7),f("ngModelChange",function(r){return u(s),E(n.option.value,r)||(n.option.value=r),c(r)}),t(),e(11,"po-switch",8),f("ngModelChange",function(r){return u(s),E(n.option.disabled,r)||(n.option.disabled=r),c(r)}),t()(),e(12,"div",3)(13,"po-button",9),b("p-click",function(){u(s);let r=q(7);return n.addOption(),c(r.reset())}),t()()(),l(14,"hr"),e(15,"form",null,1)(17,"div",3)(18,"po-input",10),f("ngModelChange",function(r){return u(s),E(n.label,r)||(n.label=r),c(r)}),t(),e(19,"po-input",11),f("ngModelChange",function(r){return u(s),E(n.help,r)||(n.help=r),c(r)}),t()(),e(20,"div",3)(21,"po-radio-group",12),f("ngModelChange",function(r){return u(s),E(n.columns,r)||(n.columns=r),c(r)}),t(),e(22,"po-checkbox-group",13),f("ngModelChange",function(r){return u(s),E(n.properties,r)||(n.properties=r),c(r)}),t()(),e(23,"div",3)(24,"po-radio-group",14),f("ngModelChange",function(r){return u(s),E(n.size,r)||(n.size=r),c(r)}),t(),e(25,"po-input",15),f("ngModelChange",function(r){return u(s),E(n.fieldErrorMessage,r)||(n.fieldErrorMessage=r),c(r)}),t()(),e(26,"div",3)(27,"po-button",16),b("click",function(){return u(s),q(16).reset(),c(n.restore())}),t()()()}if(a&2){let s=q(7);S("ngModel",n.radioGroup),m("p-columns",n.columns)("p-disabled",n.properties.includes("disabled"))("p-help",n.help)("p-label",n.label)("p-optional",n.properties.includes("optional"))("p-options",n.options)("p-required",n.properties.includes("required"))("p-field-error-message",n.fieldErrorMessage)("p-show-required",n.properties.includes("showRequired"))("p-size",n.size),p(3),m("p-value",n.radioGroup),p(),m("p-value",n.event),p(5),S("ngModel",n.option.label),p(),S("ngModel",n.option.value),p(),S("ngModel",n.option.disabled),p(2),m("p-disabled",s.invalid),p(5),S("ngModel",n.label),p(),S("ngModel",n.help),p(2),S("ngModel",n.columns),m("p-options",n.columnOptions),p(),S("ngModel",n.properties),m("p-options",n.propertiesOptions),p(2),S("ngModel",n.size),m("p-options",n.sizesOptions),p(),S("ngModel",n.fieldErrorMessage)}},dependencies:[O,G,F,W,N,$,ee,T,B,te,oe],encapsulation:2})}return i})();var Re=i=>({"docs-sample-code-tabs":i}),de=(()=>{class i{hideSampleCodeTabs=!0;sampleCodeButtonLabel="Talk is cheap, show me the code!";sampleCodeButtonIcon="ph ph-plus";toggleSampleCodeTabs(){this.hideSampleCodeTabs=!this.hideSampleCodeTabs,this.sampleCodeButtonLabel=this.hideSampleCodeTabs?"Talk is cheap, show me the code!":"Okay, hide the code",this.sampleCodeButtonIcon=this.hideSampleCodeTabs?"ph ph-plus":"ph ph-minus"}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=g({type:i,selectors:[["sample-po-radio-group-labs-view"]],standalone:!1,decls:24,vars:6,consts:[[1,"sample-blockquote"],[1,"sample-title","po-font-text-large-bold"],[1,"show-me-the-code",3,"click"],[3,"ngClass"],["p-size","2"],["p-label","HTML","p-active",""],[1,"doc-label-path"],["appCodeHighlight","",1,"html"],["p-label","TS"],["appCodeHighlight","",1,"typescript"],[1,"docs-sample-container"]],template:function(a,n){a&1&&(l(0,"br"),e(1,"blockquote",0)(2,"label",1),o(3,"PO Radio Group Labs"),t(),e(4,"a",2),b("click",function(){return n.toggleSampleCodeTabs()}),l(5,"span"),o(6),t()(),e(7,"div",3)(8,"po-tabs",4)(9,"po-tab",5)(10,"div")(11,"label",6),o(12,"sample-po-radio-group-labs/sample-po-radio-group-labs.component.html"),t(),e(13,"pre",7),o(14,`<po-radio-group
name="radioGroupLabs"
[(ngModel)]="radioGroup"
[p-columns]="columns"
[p-disabled]="properties.includes('disabled')"
[p-help]="help"
[p-label]="label"
[p-optional]="properties.includes('optional')"
[p-options]="options"
[p-required]="properties.includes('required')"
[p-field-error-message]="fieldErrorMessage"
[p-show-required]="properties.includes('showRequired')"
[p-size]="size"
(p-change)="changeEvent('p-change')"
>
</po-radio-group>
<hr />
<div class="po-row">
<po-info class="po-md-6" p-label="Model" [p-value]="radioGroup"> </po-info>
<po-info class="po-md-6" p-label="Event" [p-value]="event"> </po-info>
</div>
<hr />
<form #optionForm="ngForm">
<div class="po-row">
<po-input class="po-md-6 po-lg-4" name="optionLabel" [(ngModel)]="option.label" p-label="Option Label" p-required>
</po-input>
<po-input class="po-md-6 po-lg-4" name="optionValue" [(ngModel)]="option.value" p-label="Option Value" p-required>
</po-input>
<po-switch class="po-lg-4" name="optionDisabled" [(ngModel)]="option.disabled" p-label="Option Disabled">
</po-switch>
</div>
<div class="po-row">
<po-button
class="po-md-6 po-lg-3"
p-label="Add Option"
[p-disabled]="optionForm.invalid"
(p-click)="addOption(); optionForm.reset()"
>
</po-button>
</div>
</form>
<hr />
<form #propertiesForm="ngForm">
<div class="po-row">
<po-input class="po-md-6" name="label" [(ngModel)]="label" p-clean p-label="Label"> </po-input>
<po-input class="po-md-6" name="help" [(ngModel)]="help" p-clean p-label="Help"> </po-input>
</div>
<div class="po-row">
<po-radio-group
class="po-lg-6 po-md-12"
name="columns"
[(ngModel)]="columns"
p-columns="3"
p-label="Columns"
[p-options]="columnOptions"
>
</po-radio-group>
<po-checkbox-group
class="po-lg-6 po-md-12"
name="properties"
[(ngModel)]="properties"
p-columns="3"
p-label="Properties"
[p-options]="propertiesOptions"
>
</po-checkbox-group>
</div>
<div class="po-row">
<po-radio-group class="po-lg-6 po-md-12" name="size" [(ngModel)]="size" p-label="Size" [p-options]="sizesOptions">
</po-radio-group>
<po-input
class="po-md-6"
name="fieldErrorMessage"
[(ngModel)]="fieldErrorMessage"
p-clean
p-label="Field Error Message"
>
</po-input>
</div>
<div class="po-row">
<po-button class="po-md-3" p-label="Sample Restore" (click)="propertiesForm.reset(); restore()"> </po-button>
</div>
</form>
`),t()()(),e(15,"po-tab",8)(16,"div")(17,"label",6),o(18,"sample-po-radio-group-labs/sample-po-radio-group-labs.component.ts"),t(),e(19,"pre",9),o(20,`import { Component, OnInit } from '@angular/core';
import { PoCheckboxGroupOption, PoRadioGroupOption } from '@po-ui/ng-components';
@Component({
selector: 'sample-po-radio-group-labs',
templateUrl: './sample-po-radio-group-labs.component.html',
standalone: false
})
export class SamplePoRadioGroupLabsComponent implements OnInit {
columns: number;
event: string;
help: string;
label: string;
option: PoRadioGroupOption;
options: Array<PoRadioGroupOption>;
properties: Array<string>;
radioGroup: string;
fieldErrorMessage: string;
size: string;
readonly columnOptions: Array<PoRadioGroupOption> = [
{ label: '1 column', value: 1 },
{ label: '2 columns', value: 2 },
{ label: '3 columns', value: 3 },
{ label: '4 columns', value: 4 }
];
readonly propertiesOptions: Array<PoCheckboxGroupOption> = [
{ value: 'disabled', label: 'Disabled' },
{ value: 'optional', label: 'Optional' },
{ value: 'required', label: 'Required' },
{ value: 'showRequired', label: 'Show Required' }
];
readonly sizesOptions: Array<PoRadioGroupOption> = [
{ label: 'Medium', value: 'medium' },
{ label: 'Large', value: 'large' }
];
ngOnInit() {
this.restore();
}
addOption() {
this.options.push(this.option);
this.option = this.getNewOption();
}
changeEvent(event: string) {
this.event = event;
}
restore() {
this.event = '';
this.radioGroup = undefined;
this.properties = [];
this.fieldErrorMessage = '';
this.option = this.getNewOption();
this.options = [];
}
private getNewOption(): PoRadioGroupOption {
return {
label: undefined,
value: undefined
};
}
}
`),t()()()()(),e(21,"div",10),l(22,"sample-po-radio-group-labs"),t(),l(23,"hr")),a&2&&(p(5),y("po-icon "+n.sampleCodeButtonIcon),p(),R(" ",n.sampleCodeButtonLabel,""),p(),m("ngClass",P(4,Re,n.hideSampleCodeTabs)))},dependencies:[_,w,C,x,pe],encapsulation:2})}return i})();var se=(()=>{class i{language="es";original="";translated="";languageOptions=[{label:"Spanish",value:"es"},{label:"English",value:"en"}];optionsList=[{value:"1",label:"Ol\xE1"},{value:"2",label:"Tchau"},{value:"3",label:"Estrangeiro"},{value:"4",label:"Alinhamento"},{value:"5",label:"Vis\xE3o"},{value:"6",label:"Livro"}];wordsOptions=[{id:"1",en:"Hello",es:"Hola"},{id:"2",en:"Bye",es:"Hasta luego"},{id:"3",en:"Foreign",es:"Extranjero"},{id:"4",en:"Alignment",es:"Alineaci\xF3n"},{id:"5",en:"Vision",es:"Vista"},{id:"6",en:"Book",es:"Libro"}];changeLanguage(d){let a=this.wordsOptions.find(n=>n.id===this.original);a&&(this.translated=a[d||this.language])}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=g({type:i,selectors:[["sample-po-radio-group-translator"]],standalone:!1,decls:6,vars:5,consts:[["f","ngForm"],[1,"po-row"],["name","language","p-label","Select a Language","p-required","",1,"po-lg-4",3,"ngModelChange","p-change","ngModel","p-options"],["name","original","p-label","Original Text (Portuguese)","p-required","",1,"po-lg-4",3,"ngModelChange","p-change","ngModel","p-options"],["name","translated","p-label","Translated Text","p-readonly","","p-required","",1,"po-lg-4",3,"ngModelChange","ngModel"]],template:function(a,n){if(a&1){let s=A();e(0,"form",null,0)(2,"div",1)(3,"po-radio-group",2),f("ngModelChange",function(r){return u(s),E(n.language,r)||(n.language=r),c(r)}),b("p-change",function(r){return u(s),c(n.changeLanguage(r))}),t(),e(4,"po-select",3),f("ngModelChange",function(r){return u(s),E(n.original,r)||(n.original=r),c(r)}),b("p-change",function(r){return u(s),c(n.changeLanguage(r))}),t(),e(5,"po-input",4),f("ngModelChange",function(r){return u(s),E(n.translated,r)||(n.translated=r),c(r)}),t()()()}a&2&&(p(3),S("ngModel",n.language),m("p-options",n.languageOptions),p(),S("ngModel",n.original),m("p-options",n.optionsList),p(),S("ngModel",n.translated))},dependencies:[O,G,F,W,N,T,B,I],encapsulation:2})}return i})();var Te=i=>({"docs-sample-code-tabs":i}),me=(()=>{class i{hideSampleCodeTabs=!0;sampleCodeButtonLabel="Talk is cheap, show me the code!";sampleCodeButtonIcon="ph ph-plus";toggleSampleCodeTabs(){this.hideSampleCodeTabs=!this.hideSampleCodeTabs,this.sampleCodeButtonLabel=this.hideSampleCodeTabs?"Talk is cheap, show me the code!":"Okay, hide the code",this.sampleCodeButtonIcon=this.hideSampleCodeTabs?"ph ph-plus":"ph ph-minus"}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=g({type:i,selectors:[["sample-po-radio-group-translator-view"]],standalone:!1,decls:24,vars:6,consts:[[1,"sample-blockquote"],[1,"sample-title","po-font-text-large-bold"],[1,"show-me-the-code",3,"click"],[3,"ngClass"],["p-size","2"],["p-label","HTML","p-active",""],[1,"doc-label-path"],["appCodeHighlight","",1,"html"],["p-label","TS"],["appCodeHighlight","",1,"typescript"],[1,"docs-sample-container"]],template:function(a,n){a&1&&(l(0,"br"),e(1,"blockquote",0)(2,"label",1),o(3,"PO Radio Group - Translator"),t(),e(4,"a",2),b("click",function(){return n.toggleSampleCodeTabs()}),l(5,"span"),o(6),t()(),e(7,"div",3)(8,"po-tabs",4)(9,"po-tab",5)(10,"div")(11,"label",6),o(12,"sample-po-radio-group-translator/sample-po-radio-group-translator.component.html"),t(),e(13,"pre",7),o(14,`<form #f="ngForm">
<div class="po-row">
<po-radio-group
class="po-lg-4"
name="language"
[(ngModel)]="language"
p-label="Select a Language"
p-required
[p-options]="languageOptions"
(p-change)="changeLanguage($event)"
>
</po-radio-group>
<po-select
class="po-lg-4"
name="original"
[(ngModel)]="original"
p-label="Original Text (Portuguese)"
p-required
[p-options]="optionsList"
(p-change)="changeLanguage($event)"
>
</po-select>
<po-input
class="po-lg-4"
name="translated"
[(ngModel)]="translated"
p-label="Translated Text"
p-readonly
p-required
>
</po-input>
</div>
</form>
`),t()()(),e(15,"po-tab",8)(16,"div")(17,"label",6),o(18,"sample-po-radio-group-translator/sample-po-radio-group-translator.component.ts"),t(),e(19,"pre",9),o(20,`import { Component } from '@angular/core';
import { PoRadioGroupOption, PoSelectOption } from '@po-ui/ng-components';
@Component({
selector: 'sample-po-radio-group-translator',
templateUrl: './sample-po-radio-group-translator.component.html',
standalone: false
})
export class SamplePoRadioGroupTranslatorComponent {
language: string = 'es';
original: string = '';
translated: string = '';
readonly languageOptions: Array<PoRadioGroupOption> = [
{ label: 'Spanish', value: 'es' },
{ label: 'English', value: 'en' }
];
readonly optionsList: Array<PoSelectOption> = [
{ value: '1', label: 'Ol\xE1' },
{ value: '2', label: 'Tchau' },
{ value: '3', label: 'Estrangeiro' },
{ value: '4', label: 'Alinhamento' },
{ value: '5', label: 'Vis\xE3o' },
{ value: '6', label: 'Livro' }
];
readonly wordsOptions: Array<any> = [
{ id: '1', en: 'Hello', es: 'Hola' },
{ id: '2', en: 'Bye', es: 'Hasta luego' },
{ id: '3', en: 'Foreign', es: 'Extranjero' },
{ id: '4', en: 'Alignment', es: 'Alineaci\xF3n' },
{ id: '5', en: 'Vision', es: 'Vista' },
{ id: '6', en: 'Book', es: 'Libro' }
];
changeLanguage(value) {
const word = this.wordsOptions.find(item => item.id === this.original);
if (word) {
this.translated = word[value || this.language];
}
}
}
`),t()()()()(),e(21,"div",10),l(22,"sample-po-radio-group-translator"),t(),l(23,"hr")),a&2&&(p(5),y("po-icon "+n.sampleCodeButtonIcon),p(),R(" ",n.sampleCodeButtonLabel,""),p(),m("ngClass",P(4,Te,n.hideSampleCodeTabs)))},dependencies:[_,w,C,x,se],encapsulation:2})}return i})();var ue=(()=>{class i{formBuilder;translatorForm;languageOptions=[{label:"Spanish",value:"es"},{label:"English",value:"en"}];optionsList=[{value:"1",label:"Ol\xE1"},{value:"2",label:"Tchau"},{value:"3",label:"Estrangeiro"},{value:"4",label:"Alinhamento"},{value:"5",label:"Vis\xE3o"},{value:"6",label:"Livro"}];wordsOptions=[{id:"1",en:"Hello",es:"Hola"},{id:"2",en:"Bye",es:"Hasta luego"},{id:"3",en:"Foreign",es:"Extranjero"},{id:"4",en:"Alignment",es:"Alineaci\xF3n"},{id:"5",en:"Vision",es:"Vista"},{id:"6",en:"Book",es:"Libro"}];constructor(d){this.formBuilder=d}ngOnInit(){this.translatorForm=this.formBuilder.group({language:["es",D.required],original:[void 0,D.required],translated:[void 0,D.required]})}changeLanguage(){let d=this.translatorForm.value.language,a=this.translatorForm.value.original,n=this.wordsOptions.find(s=>s.id===a);n&&this.translatorForm.patchValue({translated:n[d]})}static \u0275fac=function(a){return new(a||i)(k(X))};static \u0275cmp=g({type:i,selectors:[["sample-po-radio-group-translator-reactive-form"]],standalone:!1,decls:5,vars:3,consts:[[3,"formGroup"],[1,"po-row"],["name","language","formControlName","language","p-label","Select a Language","p-required","",1,"po-lg-4",3,"p-change","p-options"],["name","original","formControlName","original","p-label","Original Text (Portuguese)","p-required","",1,"po-lg-4",3,"p-change","p-options"],["name","translated","formControlName","translated","p-label","Translated Text","p-readonly","","p-required","",1,"po-lg-4"]],template:function(a,n){a&1&&(e(0,"form",0)(1,"div",1)(2,"po-radio-group",2),b("p-change",function(){return n.changeLanguage()}),t(),e(3,"po-select",3),b("p-change",function(){return n.changeLanguage()}),t(),l(4,"po-input",4),t()()),a&2&&(m("formGroup",n.translatorForm),p(2),m("p-options",n.languageOptions),p(),m("p-options",n.optionsList))},dependencies:[O,G,F,Q,J,T,B,I],encapsulation:2})}return i})();var Fe=i=>({"docs-sample-code-tabs":i}),ce=(()=>{class i{hideSampleCodeTabs=!0;sampleCodeButtonLabel="Talk is cheap, show me the code!";sampleCodeButtonIcon="ph ph-plus";toggleSampleCodeTabs(){this.hideSampleCodeTabs=!this.hideSampleCodeTabs,this.sampleCodeButtonLabel=this.hideSampleCodeTabs?"Talk is cheap, show me the code!":"Okay, hide the code",this.sampleCodeButtonIcon=this.hideSampleCodeTabs?"ph ph-plus":"ph ph-minus"}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=g({type:i,selectors:[["sample-po-radio-group-translator-reactive-form-view"]],standalone:!1,decls:24,vars:6,consts:[[1,"sample-blockquote"],[1,"sample-title","po-font-text-large-bold"],[1,"show-me-the-code",3,"click"],[3,"ngClass"],["p-size","2"],["p-label","HTML","p-active",""],[1,"doc-label-path"],["appCodeHighlight","",1,"html"],["p-label","TS"],["appCodeHighlight","",1,"typescript"],[1,"docs-sample-container"]],template:function(a,n){a&1&&(l(0,"br"),e(1,"blockquote",0)(2,"label",1),o(3,"PO Radio Group - Translator Reactive Form"),t(),e(4,"a",2),b("click",function(){return n.toggleSampleCodeTabs()}),l(5,"span"),o(6),t()(),e(7,"div",3)(8,"po-tabs",4)(9,"po-tab",5)(10,"div")(11,"label",6),o(12,"sample-po-radio-group-translator-reactive-form/sample-po-radio-group-translator-reactive-form.component.html"),t(),e(13,"pre",7),o(14,`<form [formGroup]="translatorForm">
<div class="po-row">
<po-radio-group
class="po-lg-4"
name="language"
formControlName="language"
p-label="Select a Language"
p-required
[p-options]="languageOptions"
(p-change)="changeLanguage()"
>
</po-radio-group>
<po-select
class="po-lg-4"
name="original"
formControlName="original"
p-label="Original Text (Portuguese)"
p-required
[p-options]="optionsList"
(p-change)="changeLanguage()"
>
</po-select>
<po-input
class="po-lg-4"
name="translated"
formControlName="translated"
p-label="Translated Text"
p-readonly
p-required
>
</po-input>
</div>
</form>
`),t()()(),e(15,"po-tab",8)(16,"div")(17,"label",6),o(18,"sample-po-radio-group-translator-reactive-form/sample-po-radio-group-translator-reactive-form.component.ts"),t(),e(19,"pre",9),o(20,`import { Component, OnInit } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import { PoRadioGroupOption, PoSelectOption } from '@po-ui/ng-components';
@Component({
selector: 'sample-po-radio-group-translator-reactive-form',
templateUrl: './sample-po-radio-group-translator-reactive-form.component.html',
standalone: false
})
export class SamplePoRadioGroupTranslatorReactiveFormComponent implements OnInit {
translatorForm: UntypedFormGroup;
readonly languageOptions: Array<PoRadioGroupOption> = [
{ label: 'Spanish', value: 'es' },
{ label: 'English', value: 'en' }
];
readonly optionsList: Array<PoSelectOption> = [
{ value: '1', label: 'Ol\xE1' },
{ value: '2', label: 'Tchau' },
{ value: '3', label: 'Estrangeiro' },
{ value: '4', label: 'Alinhamento' },
{ value: '5', label: 'Vis\xE3o' },
{ value: '6', label: 'Livro' }
];
readonly wordsOptions: Array<any> = [
{ id: '1', en: 'Hello', es: 'Hola' },
{ id: '2', en: 'Bye', es: 'Hasta luego' },
{ id: '3', en: 'Foreign', es: 'Extranjero' },
{ id: '4', en: 'Alignment', es: 'Alineaci\xF3n' },
{ id: '5', en: 'Vision', es: 'Vista' },
{ id: '6', en: 'Book', es: 'Libro' }
];
constructor(private formBuilder: UntypedFormBuilder) {}
ngOnInit() {
this.translatorForm = this.formBuilder.group({
language: ['es', Validators.required],
original: [undefined, Validators.required],
translated: [undefined, Validators.required]
});
}
changeLanguage() {
const language = this.translatorForm.value.language;
const original = this.translatorForm.value.original;
const word = this.wordsOptions.find(item => item.id === original);
if (word) {
this.translatorForm.patchValue({
translated: word[language]
});
}
}
}
`),t()()()()(),e(21,"div",10),l(22,"sample-po-radio-group-translator-reactive-form"),t(),l(23,"hr")),a&2&&(p(5),y("po-icon "+n.sampleCodeButtonIcon),p(),R(" ",n.sampleCodeButtonLabel,""),p(),m("ngClass",P(4,Fe,n.hideSampleCodeTabs)))},dependencies:[_,w,C,x,ue],encapsulation:2})}return i})();var ge=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275cmp=g({type:i,selectors:[["sample-po-radio-group-doc"]],standalone:!1,decls:599,vars:0,consts:[[1,"docs-api"],[1,"docs-api-module-import"],[1,"docs-api-class-description"],[1,"docs-api-h3"],[1,"docs-api-class-name"],[1,"doc-code"],["href","/documentation/po-combo"],["href","/documentation/po-select"],["href","/documentation/po-checkbox-group"],["id","acessibilidade-tratada-no-componente-interno-po-radio"],["href","https://www.w3.org/WAI/WCAG21/Understanding/name-role-value"],["href","https://www.w3.org/WAI/WCAG21/Understanding/use-of-color"],["href","https://www.w3.org/TR/wai-aria-practices-1.1/#keyboard-interaction-3"],["href","https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced"],["href","https://doc.animaliads.io/docs/components/radio"],["id","tokens-customiz\xE1veis"],["href","https://po-ui.io/guides/theme-customization"],[1,"docs-api-directive-selectors"],[1,"docs-api-class-selector-label"],["appCodeHighlight",""],[1,"docs-api-h5","docs-api-method-header"],[1,"docs-api-properties-table"],[1,"docs-api-properties-header-row"],[1,"docs-api-properties-th"],[1,"docs-api-properties-row"],[1,"docs-api-properties-name-cell"],[1,"docs-api-input-marker"],[1,"docs-api-input-alias"],[1,"docs-api-properties-type-cell"],["pan","",1,"docs-api-property-type","boolean"],[1,"docs-api-property-default"],[1,"docs-api-property-description"],[1,"docs-api-output-marker"],[1,"docs-api-output-alias"],["pan","",1,"docs-api-property-type","EventEmitter"],["pan","",1,"docs-api-property-type","number"],["pan","",1,"docs-api-property-type","string"],["pan","",1,"docs-api-property-type","PoRadioGroupOption[]"],[1,"docs-api-method-table"],["colspan","2",1,"docs-api-properties-name-cell"],[1,"docs-api-h4","docs-api-class-name"]],template:function(a,n){a&1&&(e(0,"div",0)(1,"p",1)(2,"code"),o(3,"import { PoFieldModule } from '@po-ui/ng-components';"),t()(),e(4,"div",2)(5,"p"),o(6,`M\xF3dulo dos componentes: po-checkbox, po-checkbox-group, po-combo, po-datepicker, po-datepicker-range, po-email, po-input,
po-lookup, po-number, po-multiselect, po-password, po-radio-group, po-select, po-switch, po-textarea, po-upload
e po-url.`),t(),e(7,"blockquote")(8,"p"),o(9,"N\xE3o esque\xE7a de importar o m\xF3dulo "),e(10,"code"),o(11,"FormsModule"),t(),o(12,` para usar os componentes de formul\xE1rios e caso esteja trabalhando com
formul\xE1rios reativos, importe o m\xF3dulo `),e(13,"code"),o(14,"ReactiveFormsModule"),t(),o(15,", ambos nativos do Angular."),t()()(),e(16,"h3",3),o(17,"Componente"),t(),e(18,"h4",4)(19,"code",5),o(20,"PoRadioGroupComponent"),t()(),e(21,"div",2)(22,"p"),o(23,"O componente "),e(24,"code"),o(25,"po-radio-group"),t(),o(26,` deve ser utilizado para disponibilizar m\xFAltiplas op\xE7\xF5es ao usu\xE1rio, permitindo a ele que
selecione apenas uma delas. Seu uso \xE9 recomendado para um n\xFAmero pequeno de op\xE7\xF5es, caso contr\xE1rio, recomenda-se o uso
do `),e(27,"a",6)(28,"strong"),o(29,"po-combo"),t()(),o(30," ou "),e(31,"a",7)(32,"strong"),o(33,"po-select"),t()(),o(34,"."),t(),e(35,"p"),o(36,`Este n\xE3o \xE9 um componente de multisele\xE7\xE3o, se for este o caso, deve-se utilizar o
`),e(37,"a",8)(38,"strong"),o(39,"po-checkbox-group"),t()(),o(40,"."),t(),e(41,"blockquote")(42,"p"),o(43,"Ao passar um valor para o "),e(44,"em"),o(45,"model"),t(),o(46," que n\xE3o esteja na lista de op\xE7\xF5es, o mesmo ser\xE1 definido como "),e(47,"code"),o(48,"undefined"),t(),o(49,"."),t()(),e(50,"h4",9),o(51,"Acessibilidade tratada no componente interno "),e(52,"code"),o(53,"po-radio"),t(),o(54,":"),t(),e(55,"p"),o(56,"Algumas diretrizes de acessibilidade j\xE1 s\xE3o tratadas no componente, internamente, e n\xE3o podem ser alteradas pelo propriet\xE1rio do conte\xFAdo. S\xE3o elas:"),t(),e(57,"ul")(58,"li"),o(59,"O componente foi desenvolvido utilizando controles padr\xF5es HTML para permitir a identifica\xE7\xE3o do mesmo na interface por tecnologias assistivas. "),e(60,"a",10),o(61,"WCAG 4.1.2: Name, Role, Value"),t()(),e(62,"li"),o(63,"A cor n\xE3o deve ser o \xFAnico meio para diferenciar o radio button normal do selecionado, por isso deve-se manter uma diferen\xE7a visual entre os estados. "),e(64,"a",11),o(65,"WGAG 1.4.1: Use of Color, 3.2.4: Consistent Identification"),t()(),e(66,"li"),o(67,"Quando em foco, o componente \xE9 ativado usando as teclas de Espa\xE7o e Enter do teclado. "),e(68,"a",12),o(69,"W3C WAI-ARIA 3.5 Button - Keyboard Interaction"),t()(),e(70,"li"),o(71,"A \xE1rea do foco precisar ter uma espessura de pelo menos 2 pixels CSS e o foco n\xE3o pode ficar escondido por outros elementos da tela. "),e(72,"a",13),o(73,"(WCAG 2.4.12: Focus Appearance"),t()()(),e(74,"p"),o(75,"Conforme documenta\xE7\xE3o em: "),e(76,"a",14),o(77,"https://doc.animaliads.io/docs/components/radio"),t()(),e(78,"h4",15),o(79,"Tokens customiz\xE1veis"),t(),e(80,"p"),o(81,"\xC9 poss\xEDvel alterar o estilo do componente usando os seguintes tokens (CSS): "),l(82,"br"),o(83,`
Obs: No componente Radio Group, a customiza\xE7\xE3o ocorre principalmente nos elementos `),e(84,"code"),o(85,"po-radio"),t(),o(86," que comp\xF5em o grupo de op\xE7\xF5es. "),l(87,"br"),o(88,`
Portanto, ao aplicar estilos customizados, \xE9 importante focar na customiza\xE7\xE3o dos elementos `),e(89,"code"),o(90,"po-radio"),t(),o(91," em vez do pr\xF3prio "),e(92,"code"),o(93,"po-radio-group"),t(),o(94,"."),t(),e(95,"blockquote")(96,"p"),o(97,"Para maiores informa\xE7\xF5es, acesse o guia "),e(98,"a",16),o(99,"Personalizando o Tema Padr\xE3o com Tokens CSS"),t(),o(100,"."),t()(),e(101,"table")(102,"thead")(103,"tr")(104,"th"),o(105,"Propriedade"),t(),e(106,"th"),o(107,"Descri\xE7\xE3o"),t(),e(108,"th"),o(109,"Valor Padr\xE3o"),t()()(),e(110,"tbody")(111,"tr")(112,"td")(113,"strong"),o(114,"Default Values"),t()(),l(115,"td")(116,"td"),t(),e(117,"tr")(118,"td")(119,"code"),o(120,"--border-color"),t()(),e(121,"td"),o(122,"Cor da borda"),t(),e(123,"td")(124,"code"),o(125,"var(--color-neutral-dark-70)"),t()()(),e(126,"tr")(127,"td")(128,"strong"),o(129,"Hover"),t()(),l(130,"td")(131,"td"),t(),e(132,"tr")(133,"td")(134,"code"),o(135,"--shadow-color-hover"),t()(),e(136,"td"),o(137,"Cor da sombra no estado hover"),t(),e(138,"td")(139,"code"),o(140,"var(--color-brand-01-lighter)"),t()()(),e(141,"tr")(142,"td")(143,"code"),o(144,"--color-hover"),t()(),e(145,"td"),o(146,"Cor principal no estado hover"),t(),e(147,"td")(148,"code"),o(149,"var(--color-brand-01-dark)"),t()()(),e(150,"tr")(151,"td")(152,"strong"),o(153,"Focused"),t()(),l(154,"td")(155,"td"),t(),e(156,"tr")(157,"td")(158,"code"),o(159,"--outline-color-focused"),t()(),e(160,"td"),o(161,"Cor do outline do estado de focus"),t(),e(162,"td")(163,"code"),o(164,"var(--color-brand-01-darkest)"),t()()(),e(165,"tr")(166,"td")(167,"strong"),o(168,"checked"),t()(),l(169,"td")(170,"td"),t(),e(171,"tr")(172,"td")(173,"code"),o(174,"--color-unchecked"),t()(),e(175,"td"),o(176,"Cor quando n\xE3o selecionado"),t(),e(177,"td")(178,"code"),o(179,"var(--color-neutral-light-00)"),t()()(),e(180,"tr")(181,"td")(182,"code"),o(183,"--color-checked"),t()(),e(184,"td"),o(185,"Cor quando selecionado"),t(),e(186,"td")(187,"code"),o(188,"var(--color-action-default)"),t()()(),e(189,"tr")(190,"td")(191,"strong"),o(192,"Disabled"),t()(),l(193,"td")(194,"td"),t(),e(195,"tr")(196,"td")(197,"code"),o(198,"--color-unchecked-disabled"),t()(),e(199,"td"),o(200,"Cor pricipal quando n\xE3o selecionado no estado disabled"),t(),e(201,"td")(202,"code"),o(203,"var(--color-neutral-light-30)"),t()()(),e(204,"tr")(205,"td")(206,"code"),o(207,"--color-checked-disabled"),t()(),e(208,"td"),o(209,"Cor pricipal quando selecionado no estado disabled"),t(),e(210,"td")(211,"code"),o(212,"var(--color-neutral-dark-70)"),t()()()()()(),e(213,"div",17)(214,"h4",18),o(215,"Seletor"),t(),e(216,"pre",19),o(217,`<po-radio-group
p-auto-focus="boolean"
(p-change)="EventEmitter"
p-columns="number"
p-disabled="boolean"
p-field-error-message="string"
p-help="string"
p-label="string"
name="string"
p-optional="boolean"
p-options="PoRadioGroupOption[]"
p-required="boolean"
p-show-required="boolean"
p-size="string" >
</po-radio-group>
`),t()(),e(218,"h4",20),o(219,"Propriedades"),t(),e(220,"table",21)(221,"tr",22)(222,"th",23),o(223,"Nome"),t(),e(224,"th",23),o(225,"Tipo"),t(),e(226,"th",23),o(227,"Padr\xE3o"),t(),e(228,"th",23),o(229,"Descri\xE7\xE3o"),t()(),e(230,"tr",24)(231,"td",25)(232,"div",26)(233,"span",27),o(234," p-auto-focus"),l(235,"br"),t()()(),e(236,"td",28)(237,"code",29),o(238,"boolean"),t()(),e(239,"td",30)(240,"p")(241,"code"),o(242,"false"),t()()(),e(243,"td",31)(244,"em")(245,"strong"),o(246,"(opcional)"),t()(),e(247,"p"),o(248,"Aplica foco no elemento ao ser iniciado."),t(),e(249,"blockquote")(250,"p"),o(251,"Caso mais de um elemento seja configurado com essa propriedade, apenas o \xFAltimo elemento declarado com ela ter\xE1 o foco."),t()()()(),e(252,"tr",24)(253,"td",25)(254,"div",32)(255,"span",33),o(256," (p-change)"),l(257,"br"),t()()(),e(258,"td",28)(259,"code",34),o(260,"EventEmitter"),t()(),e(261,"td",30),o(262,"-"),t(),e(263,"td",31)(264,"em")(265,"strong"),o(266,"(opcional)"),t()(),e(267,"p"),o(268,"Evento ao alterar valor do campo."),t()()(),e(269,"tr",24)(270,"td",25)(271,"div",26)(272,"span",27),o(273," p-columns"),l(274,"br"),t()()(),e(275,"td",28)(276,"code",35),o(277,"number"),t()(),e(278,"td",30)(279,"p")(280,"code"),o(281,"2"),t()()(),e(282,"td",31)(283,"em")(284,"strong"),o(285,"(opcional)"),t()(),e(286,"p"),o(287,"Define a quantidade de colunas para exibi\xE7\xE3o das op\xE7\xF5es."),t(),e(288,"p")(289,"strong"),o(290,"Considera\xE7\xF5es:"),t()(),e(291,"ul")(292,"li"),o(293,"\xC9 poss\xEDvel exibir as op\xE7\xF5es entre "),e(294,"code"),o(295,"1"),t(),o(296," e "),e(297,"code"),o(298,"4"),t(),o(299," colunas."),t(),e(300,"li"),o(301,"O n\xFAmero m\xE1ximo de colunas \xE9 invari\xE1vel nas seguintes resolu\xE7\xF5es:"),e(302,"ul")(303,"li")(304,"code"),o(305,"sm"),t(),o(306,": "),e(307,"code"),o(308,"1"),t()(),e(309,"li")(310,"code"),o(311,"md"),t(),o(312,": "),e(313,"code"),o(314,"2"),t()()()()()()(),e(315,"tr",24)(316,"td",25)(317,"div",26)(318,"span",27),o(319," p-disabled"),l(320,"br"),t()()(),e(321,"td",28)(322,"code",29),o(323,"boolean"),t()(),e(324,"td",30)(325,"p")(326,"code"),o(327,"false"),t()()(),e(328,"td",31)(329,"em")(330,"strong"),o(331,"(opcional)"),t()(),e(332,"p"),o(333,"Indica que o campo ser\xE1 desabilitado."),t()()(),e(334,"tr",24)(335,"td",25)(336,"div",26)(337,"span",27),o(338," p-field-error-message"),l(339,"br"),t()()(),e(340,"td",28)(341,"code",36),o(342,"string"),t()(),e(343,"td",30),o(344,"-"),t(),e(345,"td",31)(346,"em")(347,"strong"),o(348,"(opcional)"),t()(),e(349,"p"),o(350,"Exibe a mensagem setada se o campo estiver vazio e for requerido."),t(),e(351,"blockquote")(352,"p"),o(353,"Necess\xE1rio que a propriedade "),e(354,"code"),o(355,"p-required"),t(),o(356," esteja habilitada."),t()()()(),e(357,"tr",24)(358,"td",25)(359,"div",26)(360,"span",27),o(361," p-help"),l(362,"br"),t()()(),e(363,"td",28)(364,"code",36),o(365,"string"),t()(),e(366,"td",30),o(367,"-"),t(),e(368,"td",31)(369,"em")(370,"strong"),o(371,"(opcional)"),t()(),e(372,"p"),o(373,"Texto de apoio do campo."),t()()(),e(374,"tr",24)(375,"td",25)(376,"div",26)(377,"span",27),o(378," p-label"),l(379,"br"),t()()(),e(380,"td",28)(381,"code",36),o(382,"string"),t()(),e(383,"td",30),o(384,"-"),t(),e(385,"td",31)(386,"em")(387,"strong"),o(388,"(opcional)"),t()(),e(389,"p"),o(390,"Label do campo."),t()()(),e(391,"tr",24)(392,"td",25)(393,"div",26)(394,"span",27),o(395," name"),l(396,"br"),t()()(),e(397,"td",28)(398,"code",36),o(399,"string"),t()(),e(400,"td",30),o(401,"-"),t(),e(402,"td",31)(403,"p"),o(404,"Nome das op\xE7\xF5es."),t()()(),e(405,"tr",24)(406,"td",25)(407,"div",26)(408,"span",27),o(409," p-optional"),l(410,"br"),t()()(),e(411,"td",28)(412,"code",29),o(413,"boolean"),t()(),e(414,"td",30)(415,"p")(416,"code"),o(417,"false"),t()()(),e(418,"td",31)(419,"em")(420,"strong"),o(421,"(opcional)"),t()(),e(422,"p"),o(423,"Define se a indica\xE7\xE3o de campo opcional ser\xE1 exibida."),t(),e(424,"blockquote")(425,"p"),o(426,"N\xE3o ser\xE1 exibida a indica\xE7\xE3o se:"),t()(),e(427,"ul")(428,"li"),o(429,"O campo conter "),e(430,"code"),o(431,"p-required"),t(),o(432,";"),t(),e(433,"li"),o(434,"N\xE3o possuir "),e(435,"code"),o(436,"p-help"),t(),o(437," e/ou "),e(438,"code"),o(439,"p-label"),t(),o(440,"."),t()()()(),e(441,"tr",24)(442,"td",25)(443,"div",26)(444,"span",27),o(445," p-options"),l(446,"br"),t()()(),e(447,"td",28)(448,"code",37),o(449,"PoRadioGroupOption[]"),t()(),e(450,"td",30),o(451,"-"),t(),e(452,"td",31)(453,"p"),o(454,`Lista de op\xE7\xF5es que ser\xE3o exibidas.
Nesta propriedade deve ser definido um array de objetos que implementam a interface PoRadioGroupOption.`),t()()(),e(455,"tr",24)(456,"td",25)(457,"div",26)(458,"span",27),o(459," p-required"),l(460,"br"),t()()(),e(461,"td",28)(462,"code",29),o(463,"boolean"),t()(),e(464,"td",30)(465,"p")(466,"code"),o(467,"false"),t()()(),e(468,"td",31)(469,"em")(470,"strong"),o(471,"(opcional)"),t()(),e(472,"p"),o(473,"Define que o campo ser\xE1 obrigat\xF3rio."),t()()(),e(474,"tr",24)(475,"td",25)(476,"div",26)(477,"span",27),o(478," p-show-required"),l(479,"br"),t()()(),e(480,"td",28)(481,"code",29),o(482,"boolean"),t()(),e(483,"td",30),o(484,"-"),t(),e(485,"td",31)(486,"p"),o(487,"Define se a indica\xE7\xE3o de campo obrigat\xF3rio ser\xE1 exibida."),t(),e(488,"blockquote")(489,"p"),o(490,"N\xE3o ser\xE1 exibida a indica\xE7\xE3o se:"),t()(),e(491,"ul")(492,"li"),o(493,"N\xE3o possuir "),e(494,"code"),o(495,"p-help"),t(),o(496," e/ou "),e(497,"code"),o(498,"p-label"),t(),o(499,"."),t()()()(),e(500,"tr",24)(501,"td",25)(502,"div",26)(503,"span",27),o(504," p-size"),l(505,"br"),t()()(),e(506,"td",28)(507,"code",36),o(508,"string"),t()(),e(509,"td",30)(510,"p")(511,"code"),o(512,"medium"),t()()(),e(513,"td",31)(514,"em")(515,"strong"),o(516,"(opcional)"),t()(),e(517,"p"),o(518,"Define o tamanho do "),e(519,"em"),o(520,"radio"),t()()()()(),e(521,"h3",20),o(522,"M\xE9todos"),t(),e(523,"table",38)(524,"tr",24)(525,"th",39)(526,"div",26)(527,"h4")(528,"span",27),o(529," focus "),t()()()()(),e(530,"tr",31)(531,"td",31)(532,"p"),o(533,"Fun\xE7\xE3o que atribui foco ao componente."),t(),e(534,"p"),o(535,"Para utiliz\xE1-la \xE9 necess\xE1rio ter a inst\xE2ncia do componente no DOM, podendo ser utilizado o ViewChild da seguinte forma:"),t(),e(536,"pre")(537,"code"),o(538,`import { PoRadioGroupComponent } from '@po-ui/ng-components';
...
@ViewChild(PoRadioGroupComponent, { static: true }) radio: PoRadioGroupComponent;
focusRadio() {
this.radio.focus();
}`),t()()()()(),l(539,"br"),e(540,"h3"),o(541,"Interfaces"),t(),e(542,"h4",40)(543,"code",5),o(544,"PoRadioGroupOption"),t()(),e(545,"div",2)(546,"p"),o(547,"Interface para as a\xE7\xF5es do componente po-radio-group."),t()(),e(548,"h4",20),o(549,"Propriedades"),t(),e(550,"table",21)(551,"tr",22)(552,"th",23),o(553,"Nome"),t(),e(554,"th",23),o(555,"Tipo"),t(),e(556,"th",23),o(557,"Descri\xE7\xE3o"),t()(),e(558,"tr",24)(559,"td",25)(560,"div",26)(561,"span",27),o(562," disabled"),l(563,"br"),t()()(),e(564,"td",28)(565,"code",29),o(566,"boolean"),t()(),e(567,"td",31)(568,"em")(569,"strong"),o(570,"(opcional)"),t()(),e(571,"p"),o(572,"Desabilita o radio."),t()()(),e(573,"tr",24)(574,"td",25)(575,"div",26)(576,"span",27),o(577," label"),l(578,"br"),t()()(),e(579,"td",28)(580,"code",36),o(581,"string"),t()(),e(582,"td",31)(583,"p"),o(584,"Texto do radio."),t()()(),e(585,"tr",24)(586,"td",25)(587,"div",26)(588,"span",27),o(589," value"),l(590,"br"),t()()(),e(591,"td",28)(592,"code",36),o(593,"string "),t(),e(594,"code",35),o(595," number"),t()(),e(596,"td",31)(597,"p"),o(598,"Valor do radio."),t()()()()())},dependencies:[w],encapsulation:2})}return i})();var be=(()=>{class i{route;router;sub;hidePoWebSample=!0;samplesLength=4;activeTab="doc";actions=[{label:"Documenta\xE7\xE3o",action:this.goBack.bind(this),icon:"ph ph-file-text"},{label:"Colabore",action:this.improveDocs.bind(this)}];constructor(d,a){this.route=d,this.router=a}goBack(){this.router.navigate(["documentation"])}improveDocs(){this.router.navigate(["guides/development-flow"])}ngOnInit(){this.sub=this.route.queryParams.subscribe(d=>{let a=d.view;this.activeTab=a||"doc",this.hidePoWebSample=this.samplesLength===0})}ngOnDestroy(){this.sub.unsubscribe()}static \u0275fac=function(a){return new(a||i)(k(Y),k(Z))};static \u0275cmp=g({type:i,selectors:[["ng-component"]],standalone:!1,decls:9,vars:4,consts:[["p-title"," Radio Group",3,"p-actions"],["p-size","1"],["p-label","Documenta\xE7\xE3o",3,"p-active"],["p-label","Exemplos",3,"p-hide","p-active"]],template:function(a,n){a&1&&(e(0,"po-page-default",0)(1,"po-tabs",1)(2,"po-tab",2),l(3,"sample-po-radio-group-doc"),t(),e(4,"po-tab",3),l(5,"sample-po-radio-group-basic-view")(6,"sample-po-radio-group-labs-view")(7,"sample-po-radio-group-translator-view")(8,"sample-po-radio-group-translator-reactive-form-view"),t()()()),a&2&&(m("p-actions",n.actions),p(2),m("p-active",n.activeTab.includes("doc")),p(2),m("p-hide",n.hidePoWebSample)("p-active",n.activeTab.includes("web")))},dependencies:[ne,C,x,re,de,me,ce,ge],encapsulation:2})}return i})();var ke=[{path:"",component:be}],he=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=V({type:i});static \u0275inj=L({imports:[j.forChild(ke),j]})}return i})();var dt=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=V({type:i});static \u0275inj=L({imports:[ie,he]})}return i})();export{dt as DocPoRadioGroupModule};