@skill-map/cli 0.51.0 → 0.53.0
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/dist/cli/tutorial/sm-tutorial/SKILL.md +239 -1659
- package/dist/cli/tutorial/sm-tutorial/references/_core.md +332 -0
- package/dist/cli/tutorial/sm-tutorial/references/_manifest.yml +175 -0
- package/dist/cli/tutorial/sm-tutorial/references/fixtures.md +251 -0
- package/dist/cli/tutorial/{sm-master/references/tour-authoring.md → sm-tutorial/references/part-authoring.md} +14 -15
- package/dist/cli/tutorial/sm-tutorial/references/part-cli.md +267 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-connect-harness.md +180 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-fundamentals.md +424 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-live-site.md +156 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-maintain.md +286 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-mcp.md +78 -0
- package/dist/cli/tutorial/{sm-master/references/tour-plugins.md → sm-tutorial/references/part-plugins.md} +11 -11
- package/dist/cli/tutorial/sm-tutorial/references/part-project-kickoff.md +186 -0
- package/dist/cli/tutorial/{sm-master/references/tour-settings.md → sm-tutorial/references/part-settings.md} +22 -24
- package/dist/cli.js +1253 -564
- package/dist/index.d.ts +1 -1
- package/dist/index.js +335 -208
- package/dist/kernel/index.d.ts +320 -15
- package/dist/kernel/index.js +335 -208
- package/dist/migrations/001_initial.sql +36 -0
- package/dist/ui/chunk-EQ72PEHT.js +1 -0
- package/dist/ui/chunk-GBKHMJ4B.js +1110 -0
- package/dist/ui/chunk-GEI6INVH.js +515 -0
- package/dist/ui/chunk-JXRIGHET.js +552 -0
- package/dist/ui/{chunk-WQMZOINB.js → chunk-K2MAVAHG.js} +1 -1
- package/dist/ui/{chunk-BV323KTK.js → chunk-KHARMPTZ.js} +1 -1
- package/dist/ui/chunk-L4NIF75A.js +2 -0
- package/dist/ui/chunk-LCOYSPKE.js +1 -0
- package/dist/ui/chunk-OFDQMBSJ.js +1 -0
- package/dist/ui/chunk-P2DAPRK7.js +2 -0
- package/dist/ui/chunk-Q2A6FWC7.js +4 -0
- package/dist/ui/chunk-TXTY24G4.js +2204 -0
- package/dist/ui/chunk-UBQUCSQ4.js +1 -0
- package/dist/ui/chunk-WFLPMCK4.js +392 -0
- package/dist/ui/chunk-WHZVGOS3.js +5 -0
- package/dist/ui/chunk-YQFIXHKM.js +123 -0
- package/dist/ui/index.html +2 -2
- package/dist/ui/main-OYITFJ7B.js +4 -0
- package/dist/ui/{styles-RG7Y33BT.css → styles-Q4NCOJQY.css} +1 -1
- package/migrations/001_initial.sql +36 -0
- package/package.json +10 -8
- package/dist/cli/tutorial/sm-master/SKILL.md +0 -688
- package/dist/cli/tutorial/sm-master/references/fixture-templates.md +0 -212
- package/dist/ui/chunk-2GXE52AJ.js +0 -123
- package/dist/ui/chunk-AEA5GIA7.js +0 -1
- package/dist/ui/chunk-KHRNVLJW.js +0 -1
- package/dist/ui/chunk-OZTRR4M7.js +0 -2312
- package/dist/ui/chunk-Q5YJKCTP.js +0 -1066
- package/dist/ui/chunk-RCT3JSFL.js +0 -1
- package/dist/ui/chunk-VBTLX7GH.js +0 -1110
- package/dist/ui/chunk-VJ57LHDR.js +0 -4
- package/dist/ui/chunk-WMGW2UAL.js +0 -2
- package/dist/ui/main-N7D2YBEX.js +0 -4
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
import{g as ze}from"./chunk-P2DAPRK7.js";import{g as He,h as ge,l as Qe,r as qe}from"./chunk-JXRIGHET.js";import{P as me,Q as $e,a as ye,b as W,c as Ne,h as Fe,i as H,j as y,k as Te,l as $,o as pe,r as Re,s as Ve,t as Pe,u as Q,v as de,w as b,x as ue}from"./chunk-GBKHMJ4B.js";import{f as le,i as re,k as V,l as P}from"./chunk-LCOYSPKE.js";import{O as Ce,U as ce,V as Y,u as X}from"./chunk-4SG4352Z.js";import{$a as c,Bb as x,Ea as te,Eb as Z,Ec as d,Fc as U,Gb as M,Ha as p,Ib as l,J as ee,Jb as ne,K as B,Kb as oe,L,Lb as F,N as O,Nb as g,Ob as f,P as h,Qa as he,Sb as Se,Ub as Le,V as q,Vb as Oe,W as G,Wa as j,Wb as _,X as ke,Xa as A,Xb as ie,Yb as ae,Za as z,_a as N,ba as E,ca as Ee,ga as we,gc as R,ic as K,jb as C,jc as je,ka as w,kb as Ie,kc as Ae,lb as Be,mb as u,nb as m,pc as I,qb as Me,rb as De,sb as r,sc as se,tb as T,ub as v,uc as D,vb as k}from"./chunk-Q2A6FWC7.js";import{a as be}from"./chunk-WCABR6TI.js";var Ge=`
|
|
2
|
+
.p-confirmdialog .p-dialog-content {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: dt('confirmdialog.content.gap');
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.p-confirmdialog-icon {
|
|
9
|
+
color: dt('confirmdialog.icon.color');
|
|
10
|
+
font-size: dt('confirmdialog.icon.size');
|
|
11
|
+
width: dt('confirmdialog.icon.size');
|
|
12
|
+
height: dt('confirmdialog.icon.size');
|
|
13
|
+
}
|
|
14
|
+
`;var st=["header"],lt=["footer"],rt=["rejecticon"],ct=["accepticon"],pt=["message"],dt=["icon"],ut=["headless"],mt=[[["p-footer"]]],gt=["p-footer"],ft=(t,i,e)=>({$implicit:t,onAccept:i,onReject:e}),_t=t=>({$implicit:t});function bt(t,i){t&1&&x(0)}function ht(t,i){if(t&1&&c(0,bt,1,0,"ng-container",7),t&2){let e=l(2);r("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)("ngTemplateOutletContext",Ae(2,ft,e.confirmation,e.onAccept.bind(e),e.onReject.bind(e)))}}function Ct(t,i){t&1&&c(0,ht,1,6,"ng-template",null,2,I)}function yt(t,i){t&1&&x(0)}function Tt(t,i){if(t&1&&c(0,yt,1,0,"ng-container",8),t&2){let e=l(3);r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function vt(t,i){t&1&&c(0,Tt,1,1,"ng-template",null,4,I)}function xt(t,i){}function kt(t,i){t&1&&c(0,xt,0,0,"ng-template")}function Et(t,i){if(t&1&&c(0,kt,1,0,null,8),t&2){let e=l(3);r("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)}}function wt(t,i){if(t&1&&k(0,"i",12),t&2){let e=l(4);_(e.option("icon")),r("ngClass",e.cx("icon"))("pBind",e.ptm("icon"))}}function It(t,i){if(t&1&&c(0,wt,1,4,"i",11),t&2){let e=l(3);r("ngIf",e.option("icon"))}}function Bt(t,i){}function Mt(t,i){t&1&&c(0,Bt,0,0,"ng-template")}function Dt(t,i){if(t&1&&c(0,Mt,1,0,null,7),t&2){let e=l(3);r("ngTemplateOutlet",e.messageTemplate||e._messageTemplate)("ngTemplateOutletContext",K(2,_t,e.confirmation))}}function St(t,i){if(t&1&&k(0,"span",13),t&2){let e=l(3);_(e.cx("message")),r("pBind",e.ptm("message"))("innerHTML",e.option("message"),te)}}function Lt(t,i){if(t&1&&(u(0,Et,1,1)(1,It,1,1,"i",9),u(2,Dt,1,4)(3,St,1,4,"span",10)),t&2){let e=l(2);m(e.iconTemplate||e._iconTemplate?0:!e.iconTemplate&&!e._iconTemplate&&!e._messageTemplate&&!e.messageTemplate?1:-1),p(2),m(e.messageTemplate||e._messageTemplate?2:3)}}function Ot(t,i){if(t&1&&(u(0,vt,2,0),c(1,Lt,4,2,"ng-template",null,3,I)),t&2){let e=l();m(e.headerTemplate||e._headerTemplate?0:-1)}}function jt(t,i){t&1&&x(0)}function At(t,i){if(t&1&&(oe(0),c(1,jt,1,0,"ng-container",8)),t&2){let e=l(2);p(),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function zt(t,i){if(t&1&&k(0,"i",18),t&2){let e=l(6);_(e.option("rejectIcon")),r("pBind",e.ptm("pcRejectButton").icon)}}function Nt(t,i){if(t&1&&c(0,zt,1,3,"i",17),t&2){let e=l(5);r("ngIf",e.option("rejectIcon"))}}function Ft(t,i){}function Rt(t,i){t&1&&c(0,Ft,0,0,"ng-template")}function Vt(t,i){if(t&1&&(u(0,Nt,1,1,"i",16),c(1,Rt,1,0,null,8)),t&2){let e=l(4);m(e.rejectIcon&&!e.rejectIconTemplate&&!e._rejectIconTemplate?0:-1),p(),r("ngTemplateOutlet",e.rejectIconTemplate||e._rejectIconTemplate)}}function Pt(t,i){if(t&1){let e=Z();T(0,"p-button",15),M("onClick",function(){q(e);let n=l(3);return G(n.onReject())}),c(1,Vt,2,2,"ng-template",null,5,I),v()}if(t&2){let e=l(3);r("pt",e.ptm("pcRejectButton"))("label",e.rejectButtonLabel)("styleClass",e.getButtonStyleClass("pcRejectButton","rejectButtonStyleClass"))("ariaLabel",e.option("rejectButtonProps","ariaLabel"))("buttonProps",e.getRejectButtonProps())("unstyled",e.unstyled())}}function Ht(t,i){if(t&1&&k(0,"i",18),t&2){let e=l(6);_(e.option("acceptIcon")),r("pBind",e.ptm("pcAcceptButton").icon)}}function $t(t,i){if(t&1&&c(0,Ht,1,3,"i",17),t&2){let e=l(5);r("ngIf",e.option("acceptIcon"))}}function Qt(t,i){}function qt(t,i){t&1&&c(0,Qt,0,0,"ng-template")}function Gt(t,i){if(t&1&&(u(0,$t,1,1,"i",16),c(1,qt,1,0,null,8)),t&2){let e=l(4);m(e.acceptIcon&&!e._acceptIconTemplate&&!e.acceptIconTemplate?0:-1),p(),r("ngTemplateOutlet",e.acceptIconTemplate||e._acceptIconTemplate)}}function Zt(t,i){if(t&1){let e=Z();T(0,"p-button",15),M("onClick",function(){q(e);let n=l(3);return G(n.onAccept())}),c(1,Gt,2,2,"ng-template",null,5,I),v()}if(t&2){let e=l(3);r("pt",e.ptm("pcAcceptButton"))("label",e.acceptButtonLabel)("styleClass",e.getButtonStyleClass("pcAcceptButton","acceptButtonStyleClass"))("ariaLabel",e.option("acceptButtonProps","ariaLabel"))("buttonProps",e.getAcceptButtonProps())("unstyled",e.unstyled())}}function Kt(t,i){if(t&1&&c(0,Pt,3,6,"p-button",14)(1,Zt,3,6,"p-button",14),t&2){let e=l(2);r("ngIf",e.option("rejectVisible")),p(),r("ngIf",e.option("acceptVisible"))}}function Ut(t,i){if(t&1&&(u(0,At,2,1),u(1,Kt,2,2)),t&2){let e=l();m(e.footerTemplate||e._footerTemplate?0:-1),p(),m(!e.footerTemplate&&!e._footerTemplate?1:-1)}}var Wt={root:"p-confirmdialog",icon:"p-confirmdialog-icon",message:"p-confirmdialog-message",pcRejectButton:"p-confirmdialog-reject-button",pcAcceptButton:"p-confirmdialog-accept-button"},Ze=(()=>{class t extends ${name="confirmdialog";style=Ge;classes=Wt;static \u0275fac=(()=>{let e;return function(n){return(e||(e=w(t)))(n||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var Ke=new O("CONFIRMDIALOG_INSTANCE"),Jt=(()=>{class t extends de{confirmationService;zone;componentName="ConfirmDialog";$pcConfirmDialog=h(Ke,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=h(b,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}header;icon;message;get style(){return this._style}set style(e){this._style=e,this.cd.markForCheck()}styleClass;maskStyleClass;acceptIcon;acceptLabel;closeAriaLabel;acceptAriaLabel;acceptVisible=!0;rejectIcon;rejectLabel;rejectAriaLabel;rejectVisible=!0;acceptButtonStyleClass;rejectButtonStyleClass;closeOnEscape=!0;dismissableMask;blockScroll=!0;rtl=!1;closable=!0;appendTo=D("body");key;autoZIndex=!0;baseZIndex=0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";focusTrap=!0;defaultFocus="accept";breakpoints;modal=!0;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()}position="center";draggable=!0;onHide=new E;footer;_componentStyle=h(Ze);headerTemplate;footerTemplate;rejectIconTemplate;acceptIconTemplate;messageTemplate;iconTemplate;headlessTemplate;templates;$appendTo=se(()=>this.appendTo()||this.config.overlayAppendTo());_headerTemplate;_footerTemplate;_rejectIconTemplate;_acceptIconTemplate;_messageTemplate;_iconTemplate;_headlessTemplate;confirmation;_visible;_style;maskVisible;dialog;wrapper;contentContainer;subscription;preWidth;styleElement;id=ye("pn_id_");ariaLabelledBy=this.getAriaLabelledBy();translationSubscription;constructor(e,o){super(),this.confirmationService=e,this.zone=o,this.subscription=this.confirmationService.requireConfirmation$.subscribe(n=>{if(!n){this.hide();return}n.key===this.key&&(this.confirmation=n,Object.keys(n).forEach(a=>{this[a]=n[a]}),this.confirmation.accept&&(this.confirmation.acceptEvent=new E,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new E,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0)})}onInit(){this.breakpoints&&this.createStyle(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.visible&&this.cd.markForCheck()})}onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"message":this._messageTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"rejecticon":this._rejectIconTemplate=e.template;break;case"accepticon":this._acceptIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break}})}getAriaLabelledBy(){return this.header!==null?ye("pn_id_")+"_header":null}option(e,o){let n=this;if(n.hasOwnProperty(e)){let s=o?n[o]:n[e];return typeof s=="function"?s():s}}getButtonStyleClass(e,o){let n=this.cx(e),s=this.option(o);return[n,s].filter(Boolean).join(" ")}getElementToFocus(){if(this.dialog?.el?.nativeElement)switch(this.option("defaultFocus")){case"accept":return X(this.dialog.el.nativeElement,".p-confirm-dialog-accept");case"reject":return X(this.dialog.el.nativeElement,".p-confirm-dialog-reject");case"close":return X(this.dialog.el.nativeElement,".p-dialog-header-close");case"none":return null;default:return X(this.dialog.el.nativeElement,".p-confirm-dialog-accept")}}createStyle(){if(!this.styleElement){this.styleElement=this.document.createElement("style"),this.styleElement.type="text/css",Ce(this.styleElement,"nonce",this.config?.csp()?.nonce),this.document.head.appendChild(this.styleElement);let e="";for(let o in this.breakpoints)e+=`
|
|
15
|
+
@media screen and (max-width: ${o}) {
|
|
16
|
+
.p-dialog[${this.id}] {
|
|
17
|
+
width: ${this.breakpoints[o]} !important;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`;this.styleElement.innerHTML=e,Ce(this.styleElement,"nonce",this.config?.csp()?.nonce)}}close(){this.confirmation?.rejectEvent&&this.confirmation.rejectEvent.emit(W.CANCEL),this.hide(W.CANCEL)}hide(e){this.onHide.emit(e),this.visible=!1,this.unsubscribeConfirmationEvents()}onDialogHide(){this.confirmation=null}destroyStyle(){this.styleElement&&(this.document.head.removeChild(this.styleElement),this.styleElement=null)}onDestroy(){this.subscription.unsubscribe(),this.unsubscribeConfirmationEvents(),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.destroyStyle()}onVisibleChange(e){e?this.visible=e:this.close()}onAccept(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(W.ACCEPT)}onReject(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(W.REJECT),this.hide(W.REJECT)}unsubscribeConfirmationEvents(){this.confirmation&&(this.confirmation.acceptEvent?.unsubscribe(),this.confirmation.rejectEvent?.unsubscribe())}get acceptButtonLabel(){return this.option("acceptLabel")||this.getAcceptButtonProps()?.label||this.config.getTranslation(Te.ACCEPT)}get rejectButtonLabel(){return this.option("rejectLabel")||this.getRejectButtonProps()?.label||this.config.getTranslation(Te.REJECT)}getAcceptButtonProps(){return this.option("acceptButtonProps")}getRejectButtonProps(){return this.option("rejectButtonProps")}static \u0275fac=function(o){return new(o||t)(he(Ne),he(Ee))};static \u0275cmp=j({type:t,selectors:[["p-confirmDialog"],["p-confirmdialog"],["p-confirm-dialog"]],contentQueries:function(o,n,s){if(o&1&&F(s,Fe,5)(s,st,4)(s,lt,4)(s,rt,4)(s,ct,4)(s,pt,4)(s,dt,4)(s,ut,4)(s,H,4),o&2){let a;g(a=f())&&(n.footer=a.first),g(a=f())&&(n.headerTemplate=a.first),g(a=f())&&(n.footerTemplate=a.first),g(a=f())&&(n.rejectIconTemplate=a.first),g(a=f())&&(n.acceptIconTemplate=a.first),g(a=f())&&(n.messageTemplate=a.first),g(a=f())&&(n.iconTemplate=a.first),g(a=f())&&(n.headlessTemplate=a.first),g(a=f())&&(n.templates=a)}},inputs:{header:"header",icon:"icon",message:"message",style:"style",styleClass:"styleClass",maskStyleClass:"maskStyleClass",acceptIcon:"acceptIcon",acceptLabel:"acceptLabel",closeAriaLabel:"closeAriaLabel",acceptAriaLabel:"acceptAriaLabel",acceptVisible:[2,"acceptVisible","acceptVisible",d],rejectIcon:"rejectIcon",rejectLabel:"rejectLabel",rejectAriaLabel:"rejectAriaLabel",rejectVisible:[2,"rejectVisible","rejectVisible",d],acceptButtonStyleClass:"acceptButtonStyleClass",rejectButtonStyleClass:"rejectButtonStyleClass",closeOnEscape:[2,"closeOnEscape","closeOnEscape",d],dismissableMask:[2,"dismissableMask","dismissableMask",d],blockScroll:[2,"blockScroll","blockScroll",d],rtl:[2,"rtl","rtl",d],closable:[2,"closable","closable",d],appendTo:[1,"appendTo"],key:"key",autoZIndex:[2,"autoZIndex","autoZIndex",d],baseZIndex:[2,"baseZIndex","baseZIndex",U],transitionOptions:"transitionOptions",focusTrap:[2,"focusTrap","focusTrap",d],defaultFocus:"defaultFocus",breakpoints:"breakpoints",modal:[2,"modal","modal",d],visible:"visible",position:"position",draggable:[2,"draggable","draggable",d]},outputs:{onHide:"onHide"},features:[R([Ze,{provide:Ke,useExisting:t},{provide:Q,useExisting:t}]),z([b]),N],ngContentSelectors:gt,decls:6,vars:19,consts:[["dialog",""],["footer",""],["headless",""],["content",""],["header",""],["icon",""],["role","alertdialog",3,"visibleChange","onHide","pt","visible","closable","styleClass","modal","header","closeOnEscape","blockScroll","appendTo","position","dismissableMask","draggable","baseZIndex","autoZIndex","maskStyleClass","unstyled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[3,"ngClass","class","pBind"],[3,"class","pBind","innerHTML"],[3,"ngClass","class","pBind",4,"ngIf"],[3,"ngClass","pBind"],[3,"pBind","innerHTML"],[3,"pt","label","styleClass","ariaLabel","buttonProps","unstyled","onClick",4,"ngIf"],[3,"onClick","pt","label","styleClass","ariaLabel","buttonProps","unstyled"],[3,"class","pBind"],[3,"class","pBind",4,"ngIf"],[3,"pBind"]],template:function(o,n){o&1&&(ne(mt),T(0,"p-dialog",6,0),M("visibleChange",function(a){return n.onVisibleChange(a)})("onHide",function(){return n.onDialogHide()}),u(2,Ct,2,0)(3,Ot,3,1),c(4,Ut,2,2,"ng-template",null,1,I),v()),o&2&&(Oe(n.style),r("pt",n.pt)("visible",n.visible)("closable",n.option("closable"))("styleClass",n.cn(n.cx("root"),n.styleClass))("modal",n.option("modal"))("header",n.option("header"))("closeOnEscape",n.option("closeOnEscape"))("blockScroll",n.option("blockScroll"))("appendTo",n.$appendTo())("position",n.position)("dismissableMask",n.dismissableMask)("draggable",n.draggable)("baseZIndex",n.baseZIndex)("autoZIndex",n.autoZIndex)("maskStyleClass",n.cn(n.cx("mask"),n.maskStyleClass))("unstyled",n.unstyled()),p(2),m(n.headlessTemplate||n._headlessTemplate?2:3))},dependencies:[P,le,re,V,$e,qe,y,b],encapsulation:2,changeDetection:0})}return t})(),go=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=A({type:t});static \u0275inj=L({imports:[Jt,y,y]})}return t})();var Ue=`
|
|
21
|
+
.p-togglebutton {
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
user-select: none;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
position: relative;
|
|
27
|
+
color: dt('togglebutton.color');
|
|
28
|
+
background: dt('togglebutton.background');
|
|
29
|
+
border: 1px solid dt('togglebutton.border.color');
|
|
30
|
+
padding: dt('togglebutton.padding');
|
|
31
|
+
font-size: 1rem;
|
|
32
|
+
font-family: inherit;
|
|
33
|
+
font-feature-settings: inherit;
|
|
34
|
+
transition:
|
|
35
|
+
background dt('togglebutton.transition.duration'),
|
|
36
|
+
color dt('togglebutton.transition.duration'),
|
|
37
|
+
border-color dt('togglebutton.transition.duration'),
|
|
38
|
+
outline-color dt('togglebutton.transition.duration'),
|
|
39
|
+
box-shadow dt('togglebutton.transition.duration');
|
|
40
|
+
border-radius: dt('togglebutton.border.radius');
|
|
41
|
+
outline-color: transparent;
|
|
42
|
+
font-weight: dt('togglebutton.font.weight');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.p-togglebutton-content {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
flex: 1 1 auto;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
gap: dt('togglebutton.gap');
|
|
51
|
+
padding: dt('togglebutton.content.padding');
|
|
52
|
+
background: transparent;
|
|
53
|
+
border-radius: dt('togglebutton.content.border.radius');
|
|
54
|
+
transition:
|
|
55
|
+
background dt('togglebutton.transition.duration'),
|
|
56
|
+
color dt('togglebutton.transition.duration'),
|
|
57
|
+
border-color dt('togglebutton.transition.duration'),
|
|
58
|
+
outline-color dt('togglebutton.transition.duration'),
|
|
59
|
+
box-shadow dt('togglebutton.transition.duration');
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {
|
|
63
|
+
background: dt('togglebutton.hover.background');
|
|
64
|
+
color: dt('togglebutton.hover.color');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.p-togglebutton.p-togglebutton-checked {
|
|
68
|
+
background: dt('togglebutton.checked.background');
|
|
69
|
+
border-color: dt('togglebutton.checked.border.color');
|
|
70
|
+
color: dt('togglebutton.checked.color');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.p-togglebutton-checked .p-togglebutton-content {
|
|
74
|
+
background: dt('togglebutton.content.checked.background');
|
|
75
|
+
box-shadow: dt('togglebutton.content.checked.shadow');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.p-togglebutton:focus-visible {
|
|
79
|
+
box-shadow: dt('togglebutton.focus.ring.shadow');
|
|
80
|
+
outline: dt('togglebutton.focus.ring.width') dt('togglebutton.focus.ring.style') dt('togglebutton.focus.ring.color');
|
|
81
|
+
outline-offset: dt('togglebutton.focus.ring.offset');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.p-togglebutton.p-invalid {
|
|
85
|
+
border-color: dt('togglebutton.invalid.border.color');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.p-togglebutton:disabled {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
cursor: default;
|
|
91
|
+
background: dt('togglebutton.disabled.background');
|
|
92
|
+
border-color: dt('togglebutton.disabled.border.color');
|
|
93
|
+
color: dt('togglebutton.disabled.color');
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.p-togglebutton-label,
|
|
97
|
+
.p-togglebutton-icon {
|
|
98
|
+
position: relative;
|
|
99
|
+
transition: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.p-togglebutton-icon {
|
|
103
|
+
color: dt('togglebutton.icon.color');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {
|
|
107
|
+
color: dt('togglebutton.icon.hover.color');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {
|
|
111
|
+
color: dt('togglebutton.icon.checked.color');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.p-togglebutton:disabled .p-togglebutton-icon {
|
|
115
|
+
color: dt('togglebutton.icon.disabled.color');
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.p-togglebutton-sm {
|
|
119
|
+
padding: dt('togglebutton.sm.padding');
|
|
120
|
+
font-size: dt('togglebutton.sm.font.size');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.p-togglebutton-sm .p-togglebutton-content {
|
|
124
|
+
padding: dt('togglebutton.content.sm.padding');
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.p-togglebutton-lg {
|
|
128
|
+
padding: dt('togglebutton.lg.padding');
|
|
129
|
+
font-size: dt('togglebutton.lg.font.size');
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.p-togglebutton-lg .p-togglebutton-content {
|
|
133
|
+
padding: dt('togglebutton.content.lg.padding');
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.p-togglebutton-fluid {
|
|
137
|
+
width: 100%;
|
|
138
|
+
}
|
|
139
|
+
`;var Xt=["icon"],Yt=["content"],Xe=t=>({$implicit:t});function en(t,i){t&1&&x(0)}function tn(t,i){if(t&1&&k(0,"span",0),t&2){let e=l(3);_(e.cn(e.cx("icon"),e.checked?e.onIcon:e.offIcon,e.iconPos==="left"?e.cx("iconLeft"):e.cx("iconRight"))),r("pBind",e.ptm("icon"))}}function nn(t,i){if(t&1&&u(0,tn,1,3,"span",2),t&2){let e=l(2);m(e.onIcon||e.offIcon?0:-1)}}function on(t,i){t&1&&x(0)}function an(t,i){if(t&1&&c(0,on,1,0,"ng-container",1),t&2){let e=l(2);r("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",K(2,Xe,e.checked))}}function sn(t,i){if(t&1&&(u(0,nn,1,1)(1,an,1,4,"ng-container"),T(2,"span",0),ie(3),v()),t&2){let e=l();m(e.iconTemplate?1:0),p(2),_(e.cx("label")),r("pBind",e.ptm("label")),p(),ae(e.checked?e.hasOnLabel?e.onLabel:"\xA0":e.hasOffLabel?e.offLabel:"\xA0")}}var ln=`
|
|
140
|
+
${Ue}
|
|
141
|
+
|
|
142
|
+
/* For PrimeNG (iconPos) */
|
|
143
|
+
.p-togglebutton-icon-right {
|
|
144
|
+
order: 1;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.p-togglebutton.ng-invalid.ng-dirty {
|
|
148
|
+
border-color: dt('togglebutton.invalid.border.color');
|
|
149
|
+
}
|
|
150
|
+
`,rn={root:({instance:t})=>["p-togglebutton p-component",{"p-togglebutton-checked":t.checked,"p-invalid":t.invalid(),"p-disabled":t.$disabled(),"p-togglebutton-sm p-inputfield-sm":t.size==="small","p-togglebutton-lg p-inputfield-lg":t.size==="large","p-togglebutton-fluid":t.fluid()}],content:"p-togglebutton-content",icon:"p-togglebutton-icon",iconLeft:"p-togglebutton-icon-left",iconRight:"p-togglebutton-icon-right",label:"p-togglebutton-label"},We=(()=>{class t extends ${name="togglebutton";style=ln;classes=rn;static \u0275fac=(()=>{let e;return function(n){return(e||(e=w(t)))(n||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var Je=new O("TOGGLEBUTTON_INSTANCE"),cn={provide:pe,useExisting:ee(()=>_e),multi:!0},_e=(()=>{class t extends ge{componentName="ToggleButton";$pcToggleButton=h(Je,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=h(b,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onKeyDown(e){switch(e.code){case"Enter":this.toggle(e),e.preventDefault();break;case"Space":this.toggle(e),e.preventDefault();break}}toggle(e){!this.$disabled()&&!(this.allowEmpty===!1&&this.checked)&&(this.checked=!this.checked,this.writeModelValue(this.checked),this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onLabel="Yes";offLabel="No";onIcon;offIcon;ariaLabel;ariaLabelledBy;styleClass;inputId;tabindex=0;iconPos="left";autofocus;size;allowEmpty;fluid=D(void 0,{transform:d});onChange=new E;iconTemplate;contentTemplate;templates;checked=!1;onInit(){(this.checked===null||this.checked===void 0)&&(this.checked=!1)}_componentStyle=h(We);onBlur(){this.onModelTouched()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.offLabel&&this.offLabel.length>0}get active(){return this.checked===!0}_iconTemplate;_contentTemplate;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this._iconTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}writeControlValue(e,o){this.checked=e,o(e),this.cd.markForCheck()}get dataP(){return this.cn({checked:this.active,invalid:this.invalid(),[this.size]:this.size})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=w(t)))(n||t)}})();static \u0275cmp=j({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(o,n,s){if(o&1&&F(s,Xt,4)(s,Yt,4)(s,H,4),o&2){let a;g(a=f())&&(n.iconTemplate=a.first),g(a=f())&&(n.contentTemplate=a.first),g(a=f())&&(n.templates=a)}},hostVars:11,hostBindings:function(o,n){o&1&&M("keydown",function(a){return n.onKeyDown(a)})("click",function(a){return n.toggle(a)}),o&2&&(C("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("aria-pressed",n.checked?"true":"false")("role","button")("tabindex",n.tabindex!==void 0?n.tabindex:n.$disabled()?-1:0)("data-pc-name","togglebutton")("data-p-checked",n.active)("data-p-disabled",n.$disabled())("data-p",n.dataP),_(n.cn(n.cx("root"),n.styleClass)))},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",U],iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",d],size:"size",allowEmpty:"allowEmpty",fluid:[1,"fluid"]},outputs:{onChange:"onChange"},features:[R([cn,We,{provide:Je,useExisting:t},{provide:Q,useExisting:t}]),z([me,b]),N],decls:3,vars:9,consts:[[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind"]],template:function(o,n){o&1&&(T(0,"span",0),c(1,en,1,0,"ng-container",1),u(2,sn,4,5),v()),o&2&&(_(n.cx("content")),r("pBind",n.ptm("content")),C("data-p",n.dataP),p(),r("ngTemplateOutlet",n.contentTemplate||n._contentTemplate)("ngTemplateOutletContext",K(7,Xe,n.checked)),p(),m(n.contentTemplate?-1:2))},dependencies:[P,V,y,ue,b],encapsulation:2,changeDetection:0})}return t})(),No=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=A({type:t});static \u0275inj=L({imports:[_e,y,y]})}return t})();var Ye=`
|
|
151
|
+
.p-selectbutton {
|
|
152
|
+
display: inline-flex;
|
|
153
|
+
user-select: none;
|
|
154
|
+
vertical-align: bottom;
|
|
155
|
+
outline-color: transparent;
|
|
156
|
+
border-radius: dt('selectbutton.border.radius');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.p-selectbutton .p-togglebutton {
|
|
160
|
+
border-radius: 0;
|
|
161
|
+
border-width: 1px 1px 1px 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.p-selectbutton .p-togglebutton:focus-visible {
|
|
165
|
+
position: relative;
|
|
166
|
+
z-index: 1;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.p-selectbutton .p-togglebutton:first-child {
|
|
170
|
+
border-inline-start-width: 1px;
|
|
171
|
+
border-start-start-radius: dt('selectbutton.border.radius');
|
|
172
|
+
border-end-start-radius: dt('selectbutton.border.radius');
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.p-selectbutton .p-togglebutton:last-child {
|
|
176
|
+
border-start-end-radius: dt('selectbutton.border.radius');
|
|
177
|
+
border-end-end-radius: dt('selectbutton.border.radius');
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.p-selectbutton.p-invalid {
|
|
181
|
+
outline: 1px solid dt('selectbutton.invalid.border.color');
|
|
182
|
+
outline-offset: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.p-selectbutton-fluid {
|
|
186
|
+
width: 100%;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.p-selectbutton-fluid .p-togglebutton {
|
|
190
|
+
flex: 1 1 0;
|
|
191
|
+
}
|
|
192
|
+
`;var pn=["item"],dn=(t,i)=>({$implicit:t,index:i});function un(t,i){return this.getOptionLabel(i)}function mn(t,i){t&1&&x(0)}function gn(t,i){if(t&1&&c(0,mn,1,0,"ng-container",3),t&2){let e=l(2),o=e.$implicit,n=e.$index,s=l();r("ngTemplateOutlet",s.itemTemplate||s._itemTemplate)("ngTemplateOutletContext",je(2,dn,o,n))}}function fn(t,i){t&1&&c(0,gn,1,5,"ng-template",null,0,I)}function _n(t,i){if(t&1){let e=Z();T(0,"p-togglebutton",2),M("onChange",function(n){let s=q(e),a=s.$implicit,S=s.$index,J=l();return G(J.onOptionSelect(n,a,S))}),u(1,fn,2,0),v()}if(t&2){let e=i.$implicit,o=l();r("autofocus",o.autofocus)("styleClass",o.styleClass)("ngModel",o.isSelected(e))("onLabel",o.getOptionLabel(e))("offLabel",o.getOptionLabel(e))("disabled",o.$disabled()||o.isOptionDisabled(e))("allowEmpty",o.getAllowEmpty())("size",o.size())("fluid",o.fluid())("pt",o.ptm("pcToggleButton"))("unstyled",o.unstyled()),p(),m(o.itemTemplate||o._itemTemplate?1:-1)}}var bn=`
|
|
193
|
+
${Ye}
|
|
194
|
+
|
|
195
|
+
/* For PrimeNG */
|
|
196
|
+
.p-selectbutton.ng-invalid.ng-dirty {
|
|
197
|
+
outline: 1px solid dt('selectbutton.invalid.border.color');
|
|
198
|
+
outline-offset: 0;
|
|
199
|
+
}
|
|
200
|
+
`,hn={root:({instance:t})=>["p-selectbutton p-component",{"p-invalid":t.invalid(),"p-selectbutton-fluid":t.fluid()}]},et=(()=>{class t extends ${name="selectbutton";style=bn;classes=hn;static \u0275fac=(()=>{let e;return function(n){return(e||(e=w(t)))(n||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var tt=new O("SELECTBUTTON_INSTANCE"),Cn={provide:pe,useExisting:ee(()=>nt),multi:!0},nt=(()=>{class t extends ge{componentName="SelectButton";options;optionLabel;optionValue;optionDisabled;get unselectable(){return this._unselectable}_unselectable=!1;set unselectable(e){this._unselectable=e,this.allowEmpty=!e}tabindex=0;multiple;allowEmpty=!0;styleClass;ariaLabelledBy;dataKey;autofocus;size=D();fluid=D(void 0,{transform:d});onOptionClick=new E;onChange=new E;itemTemplate;_itemTemplate;get equalityKey(){return this.optionValue?null:this.dataKey}value;focusedIndex=0;_componentStyle=h(et);$pcSelectButton=h(tt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=h(b,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}getAllowEmpty(){return this.multiple?this.allowEmpty||this.value?.length!==1:this.allowEmpty}getOptionLabel(e){return this.optionLabel?ce(e,this.optionLabel):e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?ce(e,this.optionValue):this.optionLabel||e.value===void 0?e:e.value}isOptionDisabled(e){return this.optionDisabled?ce(e,this.optionDisabled):e.disabled!==void 0?e.disabled:!1}onOptionSelect(e,o,n){if(this.$disabled()||this.isOptionDisabled(o))return;let s=this.isSelected(o);if(s&&this.unselectable)return;let a=this.getOptionValue(o),S;if(this.multiple)s?S=this.value.filter(J=>!Y(J,a,this.equalityKey||void 0)):S=this.value?[...this.value,a]:[a];else{if(s&&!this.allowEmpty)return;S=s?null:a}this.focusedIndex=n,this.value=S,this.writeModelValue(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:o,index:n})}changeTabIndexes(e,o){let n,s;for(let a=0;a<=this.el.nativeElement.children.length-1;a++)this.el.nativeElement.children[a].getAttribute("tabindex")==="0"&&(n={elem:this.el.nativeElement.children[a],index:a});o==="prev"?n.index===0?s=this.el.nativeElement.children.length-1:s=n.index-1:n.index===this.el.nativeElement.children.length-1?s=0:s=n.index+1,this.focusedIndex=s,this.el.nativeElement.children[s].focus()}onFocus(e,o){this.focusedIndex=o}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(o=>!Y(o,this.getOptionValue(e),this.dataKey))}isSelected(e){let o=!1,n=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value)){for(let s of this.value)if(Y(s,n,this.dataKey)){o=!0;break}}}else o=Y(this.getOptionValue(e),this.value,this.equalityKey||void 0);return o}templates;onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="item"&&(this._itemTemplate=e.template)})}writeControlValue(e,o){this.value=e,o(this.value),this.cd.markForCheck()}get dataP(){return this.cn({invalid:this.invalid()})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=w(t)))(n||t)}})();static \u0275cmp=j({type:t,selectors:[["p-selectButton"],["p-selectbutton"],["p-select-button"]],contentQueries:function(o,n,s){if(o&1&&F(s,pn,4)(s,H,4),o&2){let a;g(a=f())&&(n.itemTemplate=a.first),g(a=f())&&(n.templates=a)}},hostVars:5,hostBindings:function(o,n){o&2&&(C("role","group")("aria-labelledby",n.ariaLabelledBy)("data-p",n.dataP),_(n.cx("root")))},inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[2,"unselectable","unselectable",d],tabindex:[2,"tabindex","tabindex",U],multiple:[2,"multiple","multiple",d],allowEmpty:[2,"allowEmpty","allowEmpty",d],styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",dataKey:"dataKey",autofocus:[2,"autofocus","autofocus",d],size:[1,"size"],fluid:[1,"fluid"]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[R([Cn,et,{provide:tt,useExisting:t},{provide:Q,useExisting:t}]),z([b]),N],decls:2,vars:0,consts:[["content",""],[3,"autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt","unstyled"],[3,"onChange","autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt","unstyled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,n){o&1&&Me(0,_n,2,12,"p-togglebutton",1,un,!0),o&2&&De(n.options)},dependencies:[_e,Pe,Re,Ve,P,V,y,ue],encapsulation:2,changeDetection:0})}return t})(),ri=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=A({type:t});static \u0275inj=L({imports:[nt,y,y]})}return t})();var ot=`
|
|
201
|
+
.p-message {
|
|
202
|
+
display: grid;
|
|
203
|
+
grid-template-rows: 1fr;
|
|
204
|
+
border-radius: dt('message.border.radius');
|
|
205
|
+
outline-width: dt('message.border.width');
|
|
206
|
+
outline-style: solid;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.p-message-content-wrapper {
|
|
210
|
+
min-height: 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.p-message-content {
|
|
214
|
+
display: flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
padding: dt('message.content.padding');
|
|
217
|
+
gap: dt('message.content.gap');
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.p-message-icon {
|
|
221
|
+
flex-shrink: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.p-message-close-button {
|
|
225
|
+
display: flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
justify-content: center;
|
|
228
|
+
flex-shrink: 0;
|
|
229
|
+
margin-inline-start: auto;
|
|
230
|
+
overflow: hidden;
|
|
231
|
+
position: relative;
|
|
232
|
+
width: dt('message.close.button.width');
|
|
233
|
+
height: dt('message.close.button.height');
|
|
234
|
+
border-radius: dt('message.close.button.border.radius');
|
|
235
|
+
background: transparent;
|
|
236
|
+
transition:
|
|
237
|
+
background dt('message.transition.duration'),
|
|
238
|
+
color dt('message.transition.duration'),
|
|
239
|
+
outline-color dt('message.transition.duration'),
|
|
240
|
+
box-shadow dt('message.transition.duration'),
|
|
241
|
+
opacity 0.3s;
|
|
242
|
+
outline-color: transparent;
|
|
243
|
+
color: inherit;
|
|
244
|
+
padding: 0;
|
|
245
|
+
border: none;
|
|
246
|
+
cursor: pointer;
|
|
247
|
+
user-select: none;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.p-message-close-icon {
|
|
251
|
+
font-size: dt('message.close.icon.size');
|
|
252
|
+
width: dt('message.close.icon.size');
|
|
253
|
+
height: dt('message.close.icon.size');
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.p-message-close-button:focus-visible {
|
|
257
|
+
outline-width: dt('message.close.button.focus.ring.width');
|
|
258
|
+
outline-style: dt('message.close.button.focus.ring.style');
|
|
259
|
+
outline-offset: dt('message.close.button.focus.ring.offset');
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.p-message-info {
|
|
263
|
+
background: dt('message.info.background');
|
|
264
|
+
outline-color: dt('message.info.border.color');
|
|
265
|
+
color: dt('message.info.color');
|
|
266
|
+
box-shadow: dt('message.info.shadow');
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.p-message-info .p-message-close-button:focus-visible {
|
|
270
|
+
outline-color: dt('message.info.close.button.focus.ring.color');
|
|
271
|
+
box-shadow: dt('message.info.close.button.focus.ring.shadow');
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.p-message-info .p-message-close-button:hover {
|
|
275
|
+
background: dt('message.info.close.button.hover.background');
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.p-message-info.p-message-outlined {
|
|
279
|
+
color: dt('message.info.outlined.color');
|
|
280
|
+
outline-color: dt('message.info.outlined.border.color');
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.p-message-info.p-message-simple {
|
|
284
|
+
color: dt('message.info.simple.color');
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.p-message-success {
|
|
288
|
+
background: dt('message.success.background');
|
|
289
|
+
outline-color: dt('message.success.border.color');
|
|
290
|
+
color: dt('message.success.color');
|
|
291
|
+
box-shadow: dt('message.success.shadow');
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.p-message-success .p-message-close-button:focus-visible {
|
|
295
|
+
outline-color: dt('message.success.close.button.focus.ring.color');
|
|
296
|
+
box-shadow: dt('message.success.close.button.focus.ring.shadow');
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.p-message-success .p-message-close-button:hover {
|
|
300
|
+
background: dt('message.success.close.button.hover.background');
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.p-message-success.p-message-outlined {
|
|
304
|
+
color: dt('message.success.outlined.color');
|
|
305
|
+
outline-color: dt('message.success.outlined.border.color');
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.p-message-success.p-message-simple {
|
|
309
|
+
color: dt('message.success.simple.color');
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.p-message-warn {
|
|
313
|
+
background: dt('message.warn.background');
|
|
314
|
+
outline-color: dt('message.warn.border.color');
|
|
315
|
+
color: dt('message.warn.color');
|
|
316
|
+
box-shadow: dt('message.warn.shadow');
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.p-message-warn .p-message-close-button:focus-visible {
|
|
320
|
+
outline-color: dt('message.warn.close.button.focus.ring.color');
|
|
321
|
+
box-shadow: dt('message.warn.close.button.focus.ring.shadow');
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.p-message-warn .p-message-close-button:hover {
|
|
325
|
+
background: dt('message.warn.close.button.hover.background');
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.p-message-warn.p-message-outlined {
|
|
329
|
+
color: dt('message.warn.outlined.color');
|
|
330
|
+
outline-color: dt('message.warn.outlined.border.color');
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.p-message-warn.p-message-simple {
|
|
334
|
+
color: dt('message.warn.simple.color');
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.p-message-error {
|
|
338
|
+
background: dt('message.error.background');
|
|
339
|
+
outline-color: dt('message.error.border.color');
|
|
340
|
+
color: dt('message.error.color');
|
|
341
|
+
box-shadow: dt('message.error.shadow');
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.p-message-error .p-message-close-button:focus-visible {
|
|
345
|
+
outline-color: dt('message.error.close.button.focus.ring.color');
|
|
346
|
+
box-shadow: dt('message.error.close.button.focus.ring.shadow');
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.p-message-error .p-message-close-button:hover {
|
|
350
|
+
background: dt('message.error.close.button.hover.background');
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.p-message-error.p-message-outlined {
|
|
354
|
+
color: dt('message.error.outlined.color');
|
|
355
|
+
outline-color: dt('message.error.outlined.border.color');
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.p-message-error.p-message-simple {
|
|
359
|
+
color: dt('message.error.simple.color');
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.p-message-secondary {
|
|
363
|
+
background: dt('message.secondary.background');
|
|
364
|
+
outline-color: dt('message.secondary.border.color');
|
|
365
|
+
color: dt('message.secondary.color');
|
|
366
|
+
box-shadow: dt('message.secondary.shadow');
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.p-message-secondary .p-message-close-button:focus-visible {
|
|
370
|
+
outline-color: dt('message.secondary.close.button.focus.ring.color');
|
|
371
|
+
box-shadow: dt('message.secondary.close.button.focus.ring.shadow');
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.p-message-secondary .p-message-close-button:hover {
|
|
375
|
+
background: dt('message.secondary.close.button.hover.background');
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.p-message-secondary.p-message-outlined {
|
|
379
|
+
color: dt('message.secondary.outlined.color');
|
|
380
|
+
outline-color: dt('message.secondary.outlined.border.color');
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.p-message-secondary.p-message-simple {
|
|
384
|
+
color: dt('message.secondary.simple.color');
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.p-message-contrast {
|
|
388
|
+
background: dt('message.contrast.background');
|
|
389
|
+
outline-color: dt('message.contrast.border.color');
|
|
390
|
+
color: dt('message.contrast.color');
|
|
391
|
+
box-shadow: dt('message.contrast.shadow');
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.p-message-contrast .p-message-close-button:focus-visible {
|
|
395
|
+
outline-color: dt('message.contrast.close.button.focus.ring.color');
|
|
396
|
+
box-shadow: dt('message.contrast.close.button.focus.ring.shadow');
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.p-message-contrast .p-message-close-button:hover {
|
|
400
|
+
background: dt('message.contrast.close.button.hover.background');
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.p-message-contrast.p-message-outlined {
|
|
404
|
+
color: dt('message.contrast.outlined.color');
|
|
405
|
+
outline-color: dt('message.contrast.outlined.border.color');
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.p-message-contrast.p-message-simple {
|
|
409
|
+
color: dt('message.contrast.simple.color');
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.p-message-text {
|
|
413
|
+
font-size: dt('message.text.font.size');
|
|
414
|
+
font-weight: dt('message.text.font.weight');
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.p-message-icon {
|
|
418
|
+
font-size: dt('message.icon.size');
|
|
419
|
+
width: dt('message.icon.size');
|
|
420
|
+
height: dt('message.icon.size');
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.p-message-sm .p-message-content {
|
|
424
|
+
padding: dt('message.content.sm.padding');
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.p-message-sm .p-message-text {
|
|
428
|
+
font-size: dt('message.text.sm.font.size');
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.p-message-sm .p-message-icon {
|
|
432
|
+
font-size: dt('message.icon.sm.size');
|
|
433
|
+
width: dt('message.icon.sm.size');
|
|
434
|
+
height: dt('message.icon.sm.size');
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.p-message-sm .p-message-close-icon {
|
|
438
|
+
font-size: dt('message.close.icon.sm.size');
|
|
439
|
+
width: dt('message.close.icon.sm.size');
|
|
440
|
+
height: dt('message.close.icon.sm.size');
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.p-message-lg .p-message-content {
|
|
444
|
+
padding: dt('message.content.lg.padding');
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.p-message-lg .p-message-text {
|
|
448
|
+
font-size: dt('message.text.lg.font.size');
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.p-message-lg .p-message-icon {
|
|
452
|
+
font-size: dt('message.icon.lg.size');
|
|
453
|
+
width: dt('message.icon.lg.size');
|
|
454
|
+
height: dt('message.icon.lg.size');
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.p-message-lg .p-message-close-icon {
|
|
458
|
+
font-size: dt('message.close.icon.lg.size');
|
|
459
|
+
width: dt('message.close.icon.lg.size');
|
|
460
|
+
height: dt('message.close.icon.lg.size');
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.p-message-outlined {
|
|
464
|
+
background: transparent;
|
|
465
|
+
outline-width: dt('message.outlined.border.width');
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.p-message-simple {
|
|
469
|
+
background: transparent;
|
|
470
|
+
outline-color: transparent;
|
|
471
|
+
box-shadow: none;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.p-message-simple .p-message-content {
|
|
475
|
+
padding: dt('message.simple.content.padding');
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.p-message-outlined .p-message-close-button:hover,
|
|
479
|
+
.p-message-simple .p-message-close-button:hover {
|
|
480
|
+
background: transparent;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.p-message-enter-active {
|
|
484
|
+
animation: p-animate-message-enter 0.3s ease-out forwards;
|
|
485
|
+
overflow: hidden;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.p-message-leave-active {
|
|
489
|
+
animation: p-animate-message-leave 0.15s ease-in forwards;
|
|
490
|
+
overflow: hidden;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
@keyframes p-animate-message-enter {
|
|
494
|
+
from {
|
|
495
|
+
opacity: 0;
|
|
496
|
+
grid-template-rows: 0fr;
|
|
497
|
+
}
|
|
498
|
+
to {
|
|
499
|
+
opacity: 1;
|
|
500
|
+
grid-template-rows: 1fr;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
@keyframes p-animate-message-leave {
|
|
505
|
+
from {
|
|
506
|
+
opacity: 1;
|
|
507
|
+
grid-template-rows: 1fr;
|
|
508
|
+
}
|
|
509
|
+
to {
|
|
510
|
+
opacity: 0;
|
|
511
|
+
margin: 0;
|
|
512
|
+
grid-template-rows: 0fr;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
`;var yn=["container"],Tn=["icon"],vn=["closeicon"],xn=["*"],kn=t=>({closeCallback:t});function En(t,i){t&1&&x(0)}function wn(t,i){if(t&1&&c(0,En,1,0,"ng-container",4),t&2){let e=l();r("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)}}function In(t,i){if(t&1&&k(0,"i",1),t&2){let e=l();_(e.cn(e.cx("icon"),e.icon)),r("pBind",e.ptm("icon")),C("data-p",e.dataP)}}function Bn(t,i){t&1&&x(0)}function Mn(t,i){if(t&1&&c(0,Bn,1,0,"ng-container",5),t&2){let e=l();r("ngTemplateOutlet",e.containerTemplate||e._containerTemplate)("ngTemplateOutletContext",K(2,kn,e.closeCallback))}}function Dn(t,i){if(t&1&&k(0,"span",9),t&2){let e=l(3);r("pBind",e.ptm("text"))("ngClass",e.cx("text"))("innerHTML",e.text,te),C("data-p",e.dataP)}}function Sn(t,i){if(t&1&&(T(0,"div"),c(1,Dn,1,4,"span",8),v()),t&2){let e=l(2);p(),r("ngIf",!e.escape)}}function Ln(t,i){if(t&1&&(T(0,"span",7),ie(1),v()),t&2){let e=l(3);r("pBind",e.ptm("text"))("ngClass",e.cx("text")),C("data-p",e.dataP),p(),ae(e.text)}}function On(t,i){if(t&1&&c(0,Ln,2,4,"span",10),t&2){let e=l(2);r("ngIf",e.escape&&e.text)}}function jn(t,i){if(t&1&&(c(0,Sn,2,1,"div",6)(1,On,1,1,"ng-template",null,0,I),T(3,"span",7),oe(4),v()),t&2){let e=Se(2),o=l();r("ngIf",!o.escape)("ngIfElse",e),p(3),r("pBind",o.ptm("text"))("ngClass",o.cx("text")),C("data-p",o.dataP)}}function An(t,i){if(t&1&&k(0,"i",7),t&2){let e=l(2);_(e.cn(e.cx("closeIcon"),e.closeIcon)),r("pBind",e.ptm("closeIcon"))("ngClass",e.closeIcon),C("data-p",e.dataP)}}function zn(t,i){t&1&&x(0)}function Nn(t,i){if(t&1&&c(0,zn,1,0,"ng-container",4),t&2){let e=l(2);r("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Fn(t,i){if(t&1&&(ke(),k(0,"svg",14)),t&2){let e=l(2);_(e.cx("closeIcon")),r("pBind",e.ptm("closeIcon")),C("data-p",e.dataP)}}function Rn(t,i){if(t&1){let e=Z();T(0,"button",11),M("click",function(n){q(e);let s=l();return G(s.close(n))}),u(1,An,1,5,"i",12),u(2,Nn,1,1,"ng-container"),u(3,Fn,1,4,":svg:svg",13),v()}if(t&2){let e=l();_(e.cx("closeButton")),r("pBind",e.ptm("closeButton")),C("aria-label",e.closeAriaLabel)("data-p",e.dataP),p(),m(e.closeIcon?1:-1),p(),m(e.closeIconTemplate||e._closeIconTemplate?2:-1),p(),m(!e.closeIconTemplate&&!e._closeIconTemplate&&!e.closeIcon?3:-1)}}var Vn={root:({instance:t})=>["p-message p-component p-message-"+t.severity,t.variant&&"p-message-"+t.variant,{"p-message-sm":t.size==="small","p-message-lg":t.size==="large"}],contentWrapper:"p-message-content-wrapper",content:"p-message-content",icon:"p-message-icon",text:"p-message-text",closeButton:"p-message-close-button",closeIcon:"p-message-close-icon"},it=(()=>{class t extends ${name="message";style=ot;classes=Vn;static \u0275fac=(()=>{let e;return function(n){return(e||(e=w(t)))(n||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var at=new O("MESSAGE_INSTANCE"),Pn=(()=>{class t extends de{componentName="Message";_componentStyle=h(it);bindDirectiveInstance=h(b,{self:!0});$pcMessage=h(at,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}severity="info";text;escape=!0;style;styleClass;closable=!1;icon;closeIcon;life;showTransitionOptions="300ms ease-out";hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)";size;variant;motionOptions=D(void 0);computedMotionOptions=se(()=>be(be({},this.ptm("motion")),this.motionOptions()));onClose=new E;get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}visible=we(!0);containerTemplate;iconTemplate;closeIconTemplate;templates;_containerTemplate;_iconTemplate;_closeIconTemplate;closeCallback=e=>{this.close(e)};onInit(){this.life&&setTimeout(()=>{this.visible.set(!1)},this.life)}onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"container":this._containerTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break}})}close(e){this.visible.set(!1),this.onClose.emit({originalEvent:e})}get dataP(){return this.cn({outlined:this.variant==="outlined",simple:this.variant==="simple",[this.severity]:this.severity,[this.size]:this.size})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=w(t)))(n||t)}})();static \u0275cmp=j({type:t,selectors:[["p-message"]],contentQueries:function(o,n,s){if(o&1&&F(s,yn,4)(s,Tn,4)(s,vn,4)(s,H,4),o&2){let a;g(a=f())&&(n.containerTemplate=a.first),g(a=f())&&(n.iconTemplate=a.first),g(a=f())&&(n.closeIconTemplate=a.first),g(a=f())&&(n.templates=a)}},hostAttrs:["role","alert","aria-live","polite"],hostVars:5,hostBindings:function(o,n){o&1&&(Ie(function(){return"p-message-enter-active"}),Be(function(){return"p-message-leave-active"})),o&2&&(C("data-p",n.dataP),_(n.cn(n.cx("root"),n.styleClass)),Le("p-message-leave-active",!n.visible()))},inputs:{severity:"severity",text:"text",escape:[2,"escape","escape",d],style:"style",styleClass:"styleClass",closable:[2,"closable","closable",d],icon:"icon",closeIcon:"closeIcon",life:"life",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",size:"size",variant:"variant",motionOptions:[1,"motionOptions"]},outputs:{onClose:"onClose"},features:[R([it,{provide:at,useExisting:t},{provide:Q,useExisting:t}]),z([b]),N],ngContentSelectors:xn,decls:7,vars:12,consts:[["escapeOut",""],[3,"pBind"],[3,"pBind","class"],["pRipple","","type","button",3,"pBind","class"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],[3,"pBind","ngClass"],[3,"pBind","ngClass","innerHTML",4,"ngIf"],[3,"pBind","ngClass","innerHTML"],[3,"pBind","ngClass",4,"ngIf"],["pRipple","","type","button",3,"click","pBind"],[3,"pBind","class","ngClass"],["data-p-icon","times",3,"pBind","class"],["data-p-icon","times",3,"pBind"]],template:function(o,n){o&1&&(ne(),T(0,"div",1)(1,"div",1),u(2,wn,1,1,"ng-container"),u(3,In,1,4,"i",2),u(4,Mn,1,4,"ng-container")(5,jn,5,5),u(6,Rn,4,8,"button",3),v()()),o&2&&(_(n.cx("contentWrapper")),r("pBind",n.ptm("contentWrapper")),C("data-p",n.dataP),p(),_(n.cx("content")),r("pBind",n.ptm("content")),C("data-p",n.dataP),p(),m(n.iconTemplate||n._iconTemplate?2:-1),p(),m(n.icon?3:-1),p(),m(n.containerTemplate||n._containerTemplate?4:5),p(2),m(n.closable?6:-1))},dependencies:[P,le,re,V,He,me,y,b,Qe],encapsulation:2,changeDetection:0})}return t})(),Si=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=A({type:t});static \u0275inj=L({imports:[Pn,y,y]})}return t})();var Ni=(()=>{class t{sanitizer=h(ze);libsPromise=null;async render(e){let o=await this.loadLibs(),n=o.md.render(e),s=o.purify.sanitize(n);return this.sanitizer.bypassSecurityTrustHtml(s)}async renderInline(e){let o=await this.loadLibs(),n=o.md.renderInline(e),s=o.purify.sanitize(n);return this.sanitizer.bypassSecurityTrustHtml(s)}async renderToHtml(e){let o=await this.loadLibs(),n=o.md.render(e);return o.purify.sanitize(n)}loadLibs(){return this.libsPromise||(this.libsPromise=$n()),this.libsPromise}static \u0275fac=function(o){return new(o||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hn=/^(?:(?:https?|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i;async function $n(){let[t,i,e]=await Promise.all([import("./chunk-LGFABCIA.js"),import("./chunk-S4S5ZMXJ.js"),import("./chunk-WHZVGOS3.js")]),o=t.default,n=e.default,s=new o({html:!1,linkify:!0,highlight:(S,J)=>Qn(n,S,J)}),a=i.default;return a.setConfig({ALLOWED_URI_REGEXP:Hn,FORBID_TAGS:["style"],FORBID_ATTR:["style","srcset"]}),{md:s,purify:a}}function Qn(t,i,e){if(e&&t.getLanguage(e))try{let o=t.highlight(i,{language:e,ignoreIllegals:!0}).value;return`<pre><code class="hljs language-${e}">${o}</code></pre>`}catch{}return`<pre><code class="hljs">${qn(i)}</code></pre>`}function qn(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}export{_e as a,No as b,nt as c,ri as d,Pn as e,Si as f,Jt as g,go as h,Ni as i};
|