-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-5VDD6CKJ.js
5 lines (5 loc) · 7.63 KB
/
chunk-5VDD6CKJ.js
1
2
3
4
5
import{$ as p,Ga as e,Od as f,T as c,U as u,Wb as S,Xd as v,Yb as b,Yd as h,Zb as E,_ as m,ha as s,na as i,oa as t,pa as a,se as g,y as r}from"./chunk-PI3TYJHE.js";var F=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275cmp=m({type:o,selectors:[["sample-po-field-validate-doc"]],standalone:!1,decls:241,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"],[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-output-marker"],[1,"docs-api-output-alias"],[1,"docs-api-properties-type-cell"],["pan","",1,"docs-api-property-type","EventEmitter"],[1,"docs-api-property-default"],[1,"docs-api-property-description"],[1,"docs-api-input-marker"],[1,"docs-api-input-alias"],["pan","",1,"docs-api-property-type","boolean"],["pan","",1,"docs-api-property-type","string"]],template:function(n,l){n&1&&(i(0,"div",0)(1,"p",1)(2,"code"),e(3,"import { PoFieldModule } from '@po-ui/ng-components';"),t()(),i(4,"div",2)(5,"p"),e(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(),i(7,"blockquote")(8,"p"),e(9,"N\xE3o esque\xE7a de importar o m\xF3dulo "),i(10,"code"),e(11,"FormsModule"),t(),e(12,` para usar os componentes de formul\xE1rios e caso esteja trabalhando com
formul\xE1rios reativos, importe o m\xF3dulo `),i(13,"code"),e(14,"ReactiveFormsModule"),t(),e(15,", ambos nativos do Angular."),t()()(),i(16,"h3",3),e(17,"Componente"),t(),i(18,"h4",4)(19,"code",5),e(20,"PoFieldValidateModel"),t()(),a(21,"div",2),i(22,"h4",6),e(23,"Propriedades"),t(),i(24,"table",7)(25,"tr",8)(26,"th",9),e(27,"Nome"),t(),i(28,"th",9),e(29,"Tipo"),t(),i(30,"th",9),e(31,"Padr\xE3o"),t(),i(32,"th",9),e(33,"Descri\xE7\xE3o"),t()(),i(34,"tr",10)(35,"td",11)(36,"div",12)(37,"span",13),e(38," (p-change)"),a(39,"br"),t()()(),i(40,"td",14)(41,"code",15),e(42,"EventEmitter"),t()(),i(43,"td",16),e(44,"-"),t(),i(45,"td",17)(46,"em")(47,"strong"),e(48,"(opcional)"),t()(),i(49,"p"),e(50,"Evento disparado ao alterar valor do campo."),t()()(),i(51,"tr",10)(52,"td",11)(53,"div",18)(54,"span",19),e(55," p-disabled"),a(56,"br"),t()()(),i(57,"td",14)(58,"code",20),e(59,"boolean"),t()(),i(60,"td",16)(61,"p")(62,"code"),e(63,"false"),t()()(),i(64,"td",17)(65,"em")(66,"strong"),e(67,"(opcional)"),t()(),i(68,"p"),e(69,"Indica se o campo ser\xE1 desabilitado."),t()()(),i(70,"tr",10)(71,"td",11)(72,"div",18)(73,"span",19),e(74," p-error-limit"),a(75,"br"),t()()(),i(76,"td",14)(77,"code",20),e(78,"boolean"),t()(),i(79,"td",16)(80,"p")(81,"code"),e(82,"false"),t()()(),i(83,"td",17)(84,"em")(85,"strong"),e(86,"(opcional)"),t()(),i(87,"p"),e(88,"Limita a exibi\xE7\xE3o da mensagem de erro a duas linhas e exibe um tooltip com o texto completo."),t(),i(89,"blockquote")(90,"p"),e(91,"Caso essa propriedade seja definida como "),i(92,"code"),e(93,"true"),t(),e(94,`, a mensagem de erro ser\xE1 limitada a duas linhas
e um tooltip ser\xE1 exibido ao passar o mouse sobre a mensagem para mostrar o conte\xFAdo completo.`),t()()()(),i(95,"tr",10)(96,"td",11)(97,"div",18)(98,"span",19),e(99," p-field-error-message"),a(100,"br"),t()()(),i(101,"td",14)(102,"code",21),e(103,"string"),t()(),i(104,"td",16),e(105,"-"),t(),i(106,"td",17)(107,"em")(108,"strong"),e(109,"(opcional)"),t()(),i(110,"p"),e(111,"Exibe a mensagem setada se o campo estiver vazio e for requerido."),t(),i(112,"blockquote")(113,"p"),e(114,"Necess\xE1rio que a propriedade "),i(115,"code"),e(116,"p-required"),t(),e(117," esteja habilitada."),t()()()(),i(118,"tr",10)(119,"td",11)(120,"div",18)(121,"span",19),e(122," p-help"),a(123,"br"),t()()(),i(124,"td",14)(125,"code",21),e(126,"string"),t()(),i(127,"td",16),e(128,"-"),t(),i(129,"td",17)(130,"p"),e(131,"Texto de apoio para o campo."),t()()(),i(132,"tr",10)(133,"td",11)(134,"div",18)(135,"span",19),e(136," p-label"),a(137,"br"),t()()(),i(138,"td",14)(139,"code",21),e(140,"string"),t()(),i(141,"td",16),e(142,"-"),t(),i(143,"td",17)(144,"p"),e(145,"R\xF3tulo exibido pelo componente."),t()()(),i(146,"tr",10)(147,"td",11)(148,"div",18)(149,"span",19),e(150," name"),a(151,"br"),t()()(),i(152,"td",14)(153,"code",21),e(154,"string"),t()(),i(155,"td",16),e(156,"-"),t(),i(157,"td",17)(158,"p"),e(159,"Nome do componente."),t()()(),i(160,"tr",10)(161,"td",11)(162,"div",18)(163,"span",19),e(164," p-optional"),a(165,"br"),t()()(),i(166,"td",14)(167,"code",20),e(168,"boolean"),t()(),i(169,"td",16)(170,"p")(171,"code"),e(172,"false"),t()()(),i(173,"td",17)(174,"em")(175,"strong"),e(176,"(opcional)"),t()(),i(177,"p"),e(178,"Define se a indica\xE7\xE3o de campo opcional ser\xE1 exibida."),t(),i(179,"blockquote")(180,"p"),e(181,"N\xE3o ser\xE1 exibida a indica\xE7\xE3o se:"),t()(),i(182,"ul")(183,"li"),e(184,"O campo conter "),i(185,"code"),e(186,"p-required"),t(),e(187,";"),t(),i(188,"li"),e(189,"N\xE3o possuir "),i(190,"code"),e(191,"p-help"),t(),e(192," e/ou "),i(193,"code"),e(194,"p-label"),t(),e(195,"."),t()()()(),i(196,"tr",10)(197,"td",11)(198,"div",18)(199,"span",19),e(200," p-required"),a(201,"br"),t()()(),i(202,"td",14)(203,"code",20),e(204,"boolean"),t()(),i(205,"td",16)(206,"p")(207,"code"),e(208,"false"),t()()(),i(209,"td",17)(210,"em")(211,"strong"),e(212,"(opcional)"),t()(),i(213,"p"),e(214,"Define que o campo ser\xE1 obrigat\xF3rio."),t()()(),i(215,"tr",10)(216,"td",11)(217,"div",18)(218,"span",19),e(219," p-show-required"),a(220,"br"),t()()(),i(221,"td",14)(222,"code",20),e(223,"boolean"),t()(),i(224,"td",16),e(225,"-"),t(),i(226,"td",17)(227,"p"),e(228,"Define se a indica\xE7\xE3o de campo obrigat\xF3rio ser\xE1 exibida."),t(),i(229,"blockquote")(230,"p"),e(231,"N\xE3o ser\xE1 exibida a indica\xE7\xE3o se:"),t()(),i(232,"ul")(233,"li"),e(234,"N\xE3o possuir "),i(235,"code"),e(236,"p-help"),t(),e(237," e/ou "),i(238,"code"),e(239,"p-label"),t(),e(240,"."),t()()()()()())},encapsulation:2})}return o})();var D=(()=>{class o{route;router;sub;hidePoWebSample=!0;samplesLength=0;activeTab="doc";actions=[{label:"Documenta\xE7\xE3o",action:this.goBack.bind(this),icon:"an an-file-text"},{label:"Colabore",action:this.improveDocs.bind(this)}];constructor(d,n){this.route=d,this.router=n}goBack(){this.router.navigate(["documentation"])}improveDocs(){this.router.navigate(["guides/development-flow"])}ngOnInit(){this.sub=this.route.queryParams.subscribe(d=>{let n=d.view;this.activeTab=n||"doc",this.hidePoWebSample=this.samplesLength===0})}ngOnDestroy(){this.sub.unsubscribe()}static \u0275fac=function(n){return new(n||o)(u(S),u(b))};static \u0275cmp=m({type:o,selectors:[["ng-component"]],standalone:!1,decls:5,vars:4,consts:[["p-title"," Field Validate",3,"p-actions"],["p-size","1"],["p-label","Documenta\xE7\xE3o",3,"p-active"],["p-label","Exemplos",3,"p-hide","p-active"]],template:function(n,l){n&1&&(i(0,"po-page-default",0)(1,"po-tabs",1)(2,"po-tab",2),a(3,"sample-po-field-validate-doc"),t(),a(4,"po-tab",3),t()()),n&2&&(s("p-actions",l.actions),c(2),s("p-active",l.activeTab.includes("doc")),c(2),s("p-hide",l.hidePoWebSample)("p-active",l.activeTab.includes("web")))},dependencies:[f,v,h,F],encapsulation:2})}return o})();var C=[{path:"",component:D}],y=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275mod=p({type:o});static \u0275inj=r({imports:[E.forChild(C),E]})}return o})();var O=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275mod=p({type:o});static \u0275inj=r({imports:[g,y]})}return o})();export{O as DocPoFieldValidateModule};