@skill-map/cli 0.18.0 → 0.19.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/README.md +4 -0
- package/dist/cli/tutorial/sm-tutorial.md +6 -7
- package/dist/cli.js +7011 -4047
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +277 -42
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +566 -68
- package/dist/kernel/index.js +277 -42
- package/dist/kernel/index.js.map +1 -1
- package/dist/migrations/001_initial.sql +122 -12
- package/dist/ui/chunk-7CAK6MVK.js +2638 -0
- package/dist/ui/chunk-BORRASJB.js +247 -0
- package/dist/ui/chunk-CZSS4D6J.js +454 -0
- package/dist/ui/chunk-EQD7AYYJ.js +227 -0
- package/dist/ui/chunk-ETTRVTFV.js +1 -0
- package/dist/ui/chunk-LFIE4SCX.js +965 -0
- package/dist/ui/chunk-OKO3QOH6.js +1 -0
- package/dist/ui/chunk-PMIMYHBM.js +61 -0
- package/dist/ui/chunk-UHFGCO24.js +1 -0
- package/dist/ui/chunk-VHIPW3TH.js +1 -0
- package/dist/ui/chunk-VWAUXWQX.js +237 -0
- package/dist/ui/index.html +10 -2
- package/dist/ui/main-BSYMJKTL.js +1 -0
- package/dist/ui/{styles-CBPFNGXA.css → styles-UAABA7VK.css} +1 -1
- package/migrations/001_initial.sql +122 -12
- package/package.json +2 -2
- package/dist/migrations/002_sidecar_columns.sql +0 -53
- package/dist/migrations/003_drop_node_author.sql +0 -20
- package/dist/migrations/004_sidecar_root_json.sql +0 -23
- package/dist/migrations/005_node_favorites.sql +0 -20
- package/dist/ui/chunk-JKJGGXCS.js +0 -1025
- package/dist/ui/chunk-SX2A3WBX.js +0 -247
- package/dist/ui/chunk-TWZHUCAT.js +0 -237
- package/dist/ui/chunk-WTAL2RK4.js +0 -1
- package/dist/ui/chunk-Z3UJHHTC.js +0 -3091
- package/dist/ui/main-AAYGMON4.js +0 -1
- package/migrations/002_sidecar_columns.sql +0 -53
- package/migrations/003_drop_node_author.sql +0 -20
- package/migrations/004_sidecar_root_json.sql +0 -23
- package/migrations/005_node_favorites.sql +0 -20
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import{c as Je,g as Ke}from"./chunk-VHIPW3TH.js";import{Aa as C,Ba as U,Ec as We,Fc as V,Hb as D,Hc as k,J as N,Jb as $e,K as _,Ka as M,Kc as w,La as Be,Lc as z,M as E,Ma as Le,Na as S,O as l,Oa as F,Qb as He,Rc as d,S as we,Sb as ge,Sc as Z,T as Ne,Ta as m,Tb as q,U as oe,Ua as W,Va as G,Vc as Ge,Wa as J,Wb as u,Wc as Xe,Xb as s,Yc as Ze,Za as Se,_ as _e,ab as ae,bc as X,ca as ie,da as R,db as Fe,dc as ve,fa as h,fb as re,hb as b,ib as j,ic as Ve,ja as Ae,jb as $,kb as ke,lc as Re,mb as K,nb as Y,nc as Ue,oa as T,oc as H,rb as Oe,tb as ze,vb as f,wa as A,wb as Pe,xa as B,xb as je,ya as se,za as L}from"./chunk-LFIE4SCX.js";import{I as Qe,K as de,P as be,b as le,d as he,fa as ye,g as qe}from"./chunk-3R7E3HPC.js";import{a as Q}from"./chunk-Q7L6LLAK.js";var yt=["data-p-icon","times"],Ye=(()=>{class t extends Xe{static \u0275fac=(()=>{let e;return function(o){return(e||(e=h(t)))(o||t)}})();static \u0275cmp=A({type:t,selectors:[["","data-p-icon","times"]],features:[C],attrs:yt,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){n&1&&(oe(),Se(0,"path",0))},encapsulation:2})}return t})();var Ct=Object.defineProperty,et=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,tt=(t,i,e)=>i in t?Ct(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,nt=(t,i)=>{for(var e in i||(i={}))Mt.call(i,e)&&tt(t,e,i[e]);if(et)for(var e of et(i))xt.call(i,e)&&tt(t,e,i[e]);return t},It=(t,i,e)=>new Promise((n,o)=>{var a=c=>{try{x(e.next(c))}catch(g){o(g)}},r=c=>{try{x(e.throw(c))}catch(g){o(g)}},x=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,r);x((e=e.apply(t,i)).next())}),ce="animation",te="transition";function Tt(t){return t?t.disabled||!!(t.safe&&Qe()):!1}function Et(t,i){return t?nt(nt({},t),Object.entries(i).reduce((e,[n,o])=>{var a;return e[n]=(a=t[n])!=null?a:o,e},{})):i}function Dt(t){let{name:i,enterClass:e,leaveClass:n}=t||{};return{enter:{from:e?.from||`${i}-enter-from`,to:e?.to||`${i}-enter-to`,active:e?.active||`${i}-enter-active`},leave:{from:n?.from||`${i}-leave-from`,to:n?.to||`${i}-leave-to`,active:n?.active||`${i}-leave-active`}}}function wt(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function Nt(t,i){let e=window.getComputedStyle(t),n=y=>{let P=e[`${y}Delay`],O=e[`${y}Duration`];return[P.split(", ").map(ye),O.split(", ").map(ye)]},[o,a]=n(te),[r,x]=n(ce),c=Math.max(...a.map((y,P)=>y+o[P])),g=Math.max(...x.map((y,P)=>y+r[P])),p,v=0,I=0;return i===te?c>0&&(p=te,v=c,I=a.length):i===ce?g>0&&(p=ce,v=g,I=x.length):(v=Math.max(c,g),p=v>0?c>g?te:ce:void 0,I=p?p===te?a.length:x.length:0),{type:p,timeout:v,count:I}}function pe(t,i){return typeof t=="number"?t:typeof t=="object"&&t[i]!=null?t[i]:null}function _t(t,i=!0,e=!1){if(!i&&!e)return;let n=qe(t);i&&be(t,"--pui-motion-height",n.height+"px"),e&&be(t,"--pui-motion-width",n.width+"px")}var At={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function Ce(t,i){if(!t)throw new Error("Element is required.");let e={},n=!1,o={},a=null,r={},x=p=>{if(Object.assign(e,Et(p,At)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");r=wt(e),n=Tt(e),o=Dt(e),a=null},c=p=>It(null,null,function*(){a?.();let{onBefore:v,onStart:I,onAfter:y,onCancelled:P}=r[p]||{},O={element:t};if(n){v?.(O),I?.(O),y?.(O);return}let{from:xe,active:Ie,to:Te}=o[p]||{};return _t(t,e.autoHeight,e.autoWidth),v?.(O),le(t,xe),le(t,Ie),t.offsetHeight,he(t,xe),le(t,Te),I?.(O),new Promise(Ee=>{let ht=pe(e.duration,p),De=()=>{he(t,[Te,Ie]),a=null},bt=()=>{De(),y?.(O),Ee()};a=()=>{De(),P?.(O),Ee()},Lt(t,e.type,ht,bt)})});x(i);let g={enter:()=>e.enter?c("enter"):Promise.resolve(),leave:()=>e.leave?c("leave"):Promise.resolve(),cancel:()=>{a?.(),a=null},update:(p,v)=>{if(!p)throw new Error("Element is required.");t=p,g.cancel(),x(v)}};return e.appear&&g.enter(),g}var Bt=0;function Lt(t,i,e,n){let o=t._motionEndId=++Bt,a=()=>{o===t._motionEndId&&n()};if(e!=null)return setTimeout(a,e);let{type:r,timeout:x,count:c}=Nt(t,i);if(!r){n();return}let g=r+"end",p=0,v=()=>{t.removeEventListener(g,I,!0),a()},I=y=>{y.target===t&&++p>=c&&v()};t.addEventListener(g,I,{capture:!0,once:!0}),setTimeout(()=>{p<c&&v()},x+1)}var St=["*"];function Ft(t,i){t&1&&$(0)}var ue=new WeakMap;function ne(t,i){if(t)switch(ue.has(t)||ue.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),i){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function me(t,i){if(!t)return;let e=ue.get(t)??t.style;switch(i){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}ue.delete(t)}var kt=`
|
|
2
|
+
.p-motion {
|
|
3
|
+
display: block;
|
|
4
|
+
}
|
|
5
|
+
`,Ot={root:"p-motion"},Me=(()=>{class t extends k{name="motion";style=kt;classes=Ot;static \u0275fac=(()=>{let e;return function(o){return(e||(e=h(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var ot=new E("MOTION_INSTANCE"),zt=(()=>{class t extends z{$pcMotion=l(ot,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=l(d,{self:!0});onAfterViewChecked(){let n=this.options()?.root||{};this.bindDirectiveInstance.setAttrs(Q(Q({},this.ptms(["host","root"])),n))}_componentStyle=l(Me);visible=s(!1);mountOnEnter=s(!0);unmountOnLeave=s(!0);name=s(void 0);type=s(void 0);safe=s(void 0);disabled=s(!1);appear=s(!1);enter=s(!0);leave=s(!0);duration=s(void 0);hideStrategy=s("display");enterFromClass=s(void 0);enterToClass=s(void 0);enterActiveClass=s(void 0);leaveFromClass=s(void 0);leaveToClass=s(void 0);leaveActiveClass=s(void 0);options=s({});onBeforeEnter=u();onEnter=u();onAfterEnter=u();onEnterCancelled=u();onBeforeLeave=u();onLeave=u();onAfterLeave=u();onLeaveCancelled=u();motionOptions=q(()=>{let e=this.options();return{name:e.name??this.name(),type:e.type??this.type(),safe:e.safe??this.safe(),disabled:e.disabled??this.disabled(),appear:!1,enter:e.enter??this.enter(),leave:e.leave??this.leave(),duration:e.duration??this.duration(),enterClass:{from:e.enterClass?.from??(e.name?void 0:this.enterFromClass()),to:e.enterClass?.to??(e.name?void 0:this.enterToClass()),active:e.enterClass?.active??(e.name?void 0:this.enterActiveClass())},leaveClass:{from:e.leaveClass?.from??(e.name?void 0:this.leaveFromClass()),to:e.leaveClass?.to??(e.name?void 0:this.leaveToClass()),active:e.leaveClass?.active??(e.name?void 0:this.leaveActiveClass())},onBeforeEnter:e.onBeforeEnter??this.handleBeforeEnter,onEnter:e.onEnter??this.handleEnter,onAfterEnter:e.onAfterEnter??this.handleAfterEnter,onEnterCancelled:e.onEnterCancelled??this.handleEnterCancelled,onBeforeLeave:e.onBeforeLeave??this.handleBeforeLeave,onLeave:e.onLeave??this.handleLeave,onAfterLeave:e.onAfterLeave??this.handleAfterLeave,onLeaveCancelled:e.onLeaveCancelled??this.handleLeaveCancelled}});motion;isInitialMount=!0;cancelled=!1;destroyed=!1;rendered=ie(!1);handleBeforeEnter=e=>!this.destroyed&&this.onBeforeEnter.emit(e);handleEnter=e=>!this.destroyed&&this.onEnter.emit(e);handleAfterEnter=e=>!this.destroyed&&this.onAfterEnter.emit(e);handleEnterCancelled=e=>!this.destroyed&&this.onEnterCancelled.emit(e);handleBeforeLeave=e=>!this.destroyed&&this.onBeforeLeave.emit(e);handleLeave=e=>!this.destroyed&&this.onLeave.emit(e);handleAfterLeave=e=>!this.destroyed&&this.onAfterLeave.emit(e);handleLeaveCancelled=e=>!this.destroyed&&this.onLeaveCancelled.emit(e);constructor(){super(),R(()=>{let e=this.hideStrategy();this.isInitialMount?(ne(this.$el,e),this.rendered.set(this.visible()&&this.mountOnEnter()||!this.mountOnEnter())):this.visible()&&!this.rendered()&&(ne(this.$el,e),this.rendered.set(!0))}),R(()=>{this.motion||(this.motion=Ce(this.$el,this.motionOptions()))}),ve(async()=>{if(!this.$el)return;let e=this.isInitialMount&&this.visible()&&this.appear(),n=this.hideStrategy();this.visible()?(await de(),me(this.$el,n),(e||!this.isInitialMount)&&(this.applyMotionDuration("enter"),this.motion?.enter())):this.isInitialMount||(await de(),this.applyMotionDuration("leave"),this.motion?.leave()?.then(async()=>{this.$el&&!this.cancelled&&!this.visible()&&(ne(this.$el,n),this.unmountOnLeave()&&(await de(),this.cancelled||this.rendered.set(!1)))})),this.isInitialMount=!1})}applyMotionDuration(e){let n=ge(this.motionOptions),o=pe(n.duration,e);if(o==null||!this.$el)return;let a=this.$el,r=`${o}ms`;n.type==="transition"?a.style.transitionDuration=r:a.style.animationDuration=r}onDestroy(){this.destroyed=!0,this.cancelled=!0,this.motion?.cancel(),this.motion=void 0,me(this.$el,this.hideStrategy()),this.$el?.remove(),this.isInitialMount=!0}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=A({type:t,selectors:[["p-motion"]],hostVars:2,hostBindings:function(n,o){n&2&&f(o.cx("root"))},inputs:{visible:[1,"visible"],mountOnEnter:[1,"mountOnEnter"],unmountOnLeave:[1,"unmountOnLeave"],name:[1,"name"],type:[1,"type"],safe:[1,"safe"],disabled:[1,"disabled"],appear:[1,"appear"],enter:[1,"enter"],leave:[1,"leave"],duration:[1,"duration"],hideStrategy:[1,"hideStrategy"],enterFromClass:[1,"enterFromClass"],enterToClass:[1,"enterToClass"],enterActiveClass:[1,"enterActiveClass"],leaveFromClass:[1,"leaveFromClass"],leaveToClass:[1,"leaveToClass"],leaveActiveClass:[1,"leaveActiveClass"],options:[1,"options"]},outputs:{onBeforeEnter:"onBeforeEnter",onEnter:"onEnter",onAfterEnter:"onAfterEnter",onEnterCancelled:"onEnterCancelled",onBeforeLeave:"onBeforeLeave",onLeave:"onLeave",onAfterLeave:"onAfterLeave",onLeaveCancelled:"onLeaveCancelled"},features:[D([Me,{provide:ot,useExisting:t},{provide:w,useExisting:t}]),L([d]),C],ngContentSelectors:St,decls:1,vars:1,template:function(n,o){n&1&&(j(),S(0,Ft,1,0)),n&2&&F(o.rendered()?0:-1)},dependencies:[H,Z],encapsulation:2})}return t})(),it=new E("MOTION_DIRECTIVE_INSTANCE"),Bn=(()=>{class t extends z{$pcMotionDirective=l(it,{optional:!0,skipSelf:!0})??void 0;visible=s(!1,{alias:"pMotion"});name=s(void 0,{alias:"pMotionName"});type=s(void 0,{alias:"pMotionType"});safe=s(void 0,{alias:"pMotionSafe"});disabled=s(!1,{alias:"pMotionDisabled"});appear=s(!1,{alias:"pMotionAppear"});enter=s(!0,{alias:"pMotionEnter"});leave=s(!0,{alias:"pMotionLeave"});duration=s(void 0,{alias:"pMotionDuration"});hideStrategy=s("display",{alias:"pMotionHideStrategy"});enterFromClass=s(void 0,{alias:"pMotionEnterFromClass"});enterToClass=s(void 0,{alias:"pMotionEnterToClass"});enterActiveClass=s(void 0,{alias:"pMotionEnterActiveClass"});leaveFromClass=s(void 0,{alias:"pMotionLeaveFromClass"});leaveToClass=s(void 0,{alias:"pMotionLeaveToClass"});leaveActiveClass=s(void 0,{alias:"pMotionLeaveActiveClass"});options=s({},{alias:"pMotionOptions"});onBeforeEnter=u({alias:"pMotionOnBeforeEnter"});onEnter=u({alias:"pMotionOnEnter"});onAfterEnter=u({alias:"pMotionOnAfterEnter"});onEnterCancelled=u({alias:"pMotionOnEnterCancelled"});onBeforeLeave=u({alias:"pMotionOnBeforeLeave"});onLeave=u({alias:"pMotionOnLeave"});onAfterLeave=u({alias:"pMotionOnAfterLeave"});onLeaveCancelled=u({alias:"pMotionOnLeaveCancelled"});motionOptions=q(()=>{let e=this.options()??{};return{name:e.name??this.name(),type:e.type??this.type(),safe:e.safe??this.safe(),disabled:e.disabled??this.disabled(),appear:!1,enter:e.enter??this.enter(),leave:e.leave??this.leave(),duration:e.duration??this.duration(),enterClass:{from:e.enterClass?.from??(e.name?void 0:this.enterFromClass()),to:e.enterClass?.to??(e.name?void 0:this.enterToClass()),active:e.enterClass?.active??(e.name?void 0:this.enterActiveClass())},leaveClass:{from:e.leaveClass?.from??(e.name?void 0:this.leaveFromClass()),to:e.leaveClass?.to??(e.name?void 0:this.leaveToClass()),active:e.leaveClass?.active??(e.name?void 0:this.leaveActiveClass())},onBeforeEnter:e.onBeforeEnter??this.handleBeforeEnter,onEnter:e.onEnter??this.handleEnter,onAfterEnter:e.onAfterEnter??this.handleAfterEnter,onEnterCancelled:e.onEnterCancelled??this.handleEnterCancelled,onBeforeLeave:e.onBeforeLeave??this.handleBeforeLeave,onLeave:e.onLeave??this.handleLeave,onAfterLeave:e.onAfterLeave??this.handleAfterLeave,onLeaveCancelled:e.onLeaveCancelled??this.handleLeaveCancelled}});motion;isInitialMount=!0;cancelled=!1;destroyed=!1;handleBeforeEnter=e=>!this.destroyed&&this.onBeforeEnter.emit(e);handleEnter=e=>!this.destroyed&&this.onEnter.emit(e);handleAfterEnter=e=>!this.destroyed&&this.onAfterEnter.emit(e);handleEnterCancelled=e=>!this.destroyed&&this.onEnterCancelled.emit(e);handleBeforeLeave=e=>!this.destroyed&&this.onBeforeLeave.emit(e);handleLeave=e=>!this.destroyed&&this.onLeave.emit(e);handleAfterLeave=e=>!this.destroyed&&this.onAfterLeave.emit(e);handleLeaveCancelled=e=>!this.destroyed&&this.onLeaveCancelled.emit(e);constructor(){super(),R(()=>{this.motion||(this.motion=Ce(this.$el,this.motionOptions()))}),ve(()=>{if(!this.$el)return;let e=this.isInitialMount&&this.visible()&&this.appear(),n=this.hideStrategy();this.visible()?(me(this.$el,n),(e||!this.isInitialMount)&&(this.applyMotionDuration("enter"),this.motion?.enter())):this.isInitialMount?ne(this.$el,n):(this.applyMotionDuration("leave"),this.motion?.leave()?.then(()=>{this.$el&&!this.cancelled&&!this.visible()&&ne(this.$el,n)})),this.isInitialMount=!1})}applyMotionDuration(e){let n=ge(this.motionOptions),o=pe(n.duration,e);if(o==null||!this.$el)return;let a=this.$el,r=`${o}ms`;n.type==="transition"?a.style.transitionDuration=r:a.style.animationDuration=r}onDestroy(){this.destroyed=!0,this.cancelled=!0,this.motion?.cancel(),this.motion=void 0,me(this.$el,this.hideStrategy()),this.$el?.remove(),this.isInitialMount=!0}static \u0275fac=function(n){return new(n||t)};static \u0275dir=se({type:t,selectors:[["","pMotion",""]],inputs:{visible:[1,"pMotion","visible"],name:[1,"pMotionName","name"],type:[1,"pMotionType","type"],safe:[1,"pMotionSafe","safe"],disabled:[1,"pMotionDisabled","disabled"],appear:[1,"pMotionAppear","appear"],enter:[1,"pMotionEnter","enter"],leave:[1,"pMotionLeave","leave"],duration:[1,"pMotionDuration","duration"],hideStrategy:[1,"pMotionHideStrategy","hideStrategy"],enterFromClass:[1,"pMotionEnterFromClass","enterFromClass"],enterToClass:[1,"pMotionEnterToClass","enterToClass"],enterActiveClass:[1,"pMotionEnterActiveClass","enterActiveClass"],leaveFromClass:[1,"pMotionLeaveFromClass","leaveFromClass"],leaveToClass:[1,"pMotionLeaveToClass","leaveToClass"],leaveActiveClass:[1,"pMotionLeaveActiveClass","leaveActiveClass"],options:[1,"pMotionOptions","options"]},outputs:{onBeforeEnter:"pMotionOnBeforeEnter",onEnter:"pMotionOnEnter",onAfterEnter:"pMotionOnAfterEnter",onEnterCancelled:"pMotionOnEnterCancelled",onBeforeLeave:"pMotionOnBeforeLeave",onLeave:"pMotionOnLeave",onAfterLeave:"pMotionOnAfterLeave",onLeaveCancelled:"pMotionOnLeaveCancelled"},features:[D([Me,{provide:it,useExisting:t},{provide:w,useExisting:t}]),C]})}return t})(),st=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=B({type:t});static \u0275inj=_({imports:[zt]})}return t})();var at=`
|
|
6
|
+
.p-message {
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-rows: 1fr;
|
|
9
|
+
border-radius: dt('message.border.radius');
|
|
10
|
+
outline-width: dt('message.border.width');
|
|
11
|
+
outline-style: solid;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.p-message-content-wrapper {
|
|
15
|
+
min-height: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.p-message-content {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
padding: dt('message.content.padding');
|
|
22
|
+
gap: dt('message.content.gap');
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.p-message-icon {
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.p-message-close-button {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
margin-inline-start: auto;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
position: relative;
|
|
37
|
+
width: dt('message.close.button.width');
|
|
38
|
+
height: dt('message.close.button.height');
|
|
39
|
+
border-radius: dt('message.close.button.border.radius');
|
|
40
|
+
background: transparent;
|
|
41
|
+
transition:
|
|
42
|
+
background dt('message.transition.duration'),
|
|
43
|
+
color dt('message.transition.duration'),
|
|
44
|
+
outline-color dt('message.transition.duration'),
|
|
45
|
+
box-shadow dt('message.transition.duration'),
|
|
46
|
+
opacity 0.3s;
|
|
47
|
+
outline-color: transparent;
|
|
48
|
+
color: inherit;
|
|
49
|
+
padding: 0;
|
|
50
|
+
border: none;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
user-select: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.p-message-close-icon {
|
|
56
|
+
font-size: dt('message.close.icon.size');
|
|
57
|
+
width: dt('message.close.icon.size');
|
|
58
|
+
height: dt('message.close.icon.size');
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.p-message-close-button:focus-visible {
|
|
62
|
+
outline-width: dt('message.close.button.focus.ring.width');
|
|
63
|
+
outline-style: dt('message.close.button.focus.ring.style');
|
|
64
|
+
outline-offset: dt('message.close.button.focus.ring.offset');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.p-message-info {
|
|
68
|
+
background: dt('message.info.background');
|
|
69
|
+
outline-color: dt('message.info.border.color');
|
|
70
|
+
color: dt('message.info.color');
|
|
71
|
+
box-shadow: dt('message.info.shadow');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.p-message-info .p-message-close-button:focus-visible {
|
|
75
|
+
outline-color: dt('message.info.close.button.focus.ring.color');
|
|
76
|
+
box-shadow: dt('message.info.close.button.focus.ring.shadow');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.p-message-info .p-message-close-button:hover {
|
|
80
|
+
background: dt('message.info.close.button.hover.background');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.p-message-info.p-message-outlined {
|
|
84
|
+
color: dt('message.info.outlined.color');
|
|
85
|
+
outline-color: dt('message.info.outlined.border.color');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.p-message-info.p-message-simple {
|
|
89
|
+
color: dt('message.info.simple.color');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.p-message-success {
|
|
93
|
+
background: dt('message.success.background');
|
|
94
|
+
outline-color: dt('message.success.border.color');
|
|
95
|
+
color: dt('message.success.color');
|
|
96
|
+
box-shadow: dt('message.success.shadow');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.p-message-success .p-message-close-button:focus-visible {
|
|
100
|
+
outline-color: dt('message.success.close.button.focus.ring.color');
|
|
101
|
+
box-shadow: dt('message.success.close.button.focus.ring.shadow');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.p-message-success .p-message-close-button:hover {
|
|
105
|
+
background: dt('message.success.close.button.hover.background');
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.p-message-success.p-message-outlined {
|
|
109
|
+
color: dt('message.success.outlined.color');
|
|
110
|
+
outline-color: dt('message.success.outlined.border.color');
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.p-message-success.p-message-simple {
|
|
114
|
+
color: dt('message.success.simple.color');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.p-message-warn {
|
|
118
|
+
background: dt('message.warn.background');
|
|
119
|
+
outline-color: dt('message.warn.border.color');
|
|
120
|
+
color: dt('message.warn.color');
|
|
121
|
+
box-shadow: dt('message.warn.shadow');
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.p-message-warn .p-message-close-button:focus-visible {
|
|
125
|
+
outline-color: dt('message.warn.close.button.focus.ring.color');
|
|
126
|
+
box-shadow: dt('message.warn.close.button.focus.ring.shadow');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.p-message-warn .p-message-close-button:hover {
|
|
130
|
+
background: dt('message.warn.close.button.hover.background');
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.p-message-warn.p-message-outlined {
|
|
134
|
+
color: dt('message.warn.outlined.color');
|
|
135
|
+
outline-color: dt('message.warn.outlined.border.color');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.p-message-warn.p-message-simple {
|
|
139
|
+
color: dt('message.warn.simple.color');
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.p-message-error {
|
|
143
|
+
background: dt('message.error.background');
|
|
144
|
+
outline-color: dt('message.error.border.color');
|
|
145
|
+
color: dt('message.error.color');
|
|
146
|
+
box-shadow: dt('message.error.shadow');
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.p-message-error .p-message-close-button:focus-visible {
|
|
150
|
+
outline-color: dt('message.error.close.button.focus.ring.color');
|
|
151
|
+
box-shadow: dt('message.error.close.button.focus.ring.shadow');
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.p-message-error .p-message-close-button:hover {
|
|
155
|
+
background: dt('message.error.close.button.hover.background');
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.p-message-error.p-message-outlined {
|
|
159
|
+
color: dt('message.error.outlined.color');
|
|
160
|
+
outline-color: dt('message.error.outlined.border.color');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.p-message-error.p-message-simple {
|
|
164
|
+
color: dt('message.error.simple.color');
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.p-message-secondary {
|
|
168
|
+
background: dt('message.secondary.background');
|
|
169
|
+
outline-color: dt('message.secondary.border.color');
|
|
170
|
+
color: dt('message.secondary.color');
|
|
171
|
+
box-shadow: dt('message.secondary.shadow');
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.p-message-secondary .p-message-close-button:focus-visible {
|
|
175
|
+
outline-color: dt('message.secondary.close.button.focus.ring.color');
|
|
176
|
+
box-shadow: dt('message.secondary.close.button.focus.ring.shadow');
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.p-message-secondary .p-message-close-button:hover {
|
|
180
|
+
background: dt('message.secondary.close.button.hover.background');
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.p-message-secondary.p-message-outlined {
|
|
184
|
+
color: dt('message.secondary.outlined.color');
|
|
185
|
+
outline-color: dt('message.secondary.outlined.border.color');
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.p-message-secondary.p-message-simple {
|
|
189
|
+
color: dt('message.secondary.simple.color');
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.p-message-contrast {
|
|
193
|
+
background: dt('message.contrast.background');
|
|
194
|
+
outline-color: dt('message.contrast.border.color');
|
|
195
|
+
color: dt('message.contrast.color');
|
|
196
|
+
box-shadow: dt('message.contrast.shadow');
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.p-message-contrast .p-message-close-button:focus-visible {
|
|
200
|
+
outline-color: dt('message.contrast.close.button.focus.ring.color');
|
|
201
|
+
box-shadow: dt('message.contrast.close.button.focus.ring.shadow');
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.p-message-contrast .p-message-close-button:hover {
|
|
205
|
+
background: dt('message.contrast.close.button.hover.background');
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.p-message-contrast.p-message-outlined {
|
|
209
|
+
color: dt('message.contrast.outlined.color');
|
|
210
|
+
outline-color: dt('message.contrast.outlined.border.color');
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.p-message-contrast.p-message-simple {
|
|
214
|
+
color: dt('message.contrast.simple.color');
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.p-message-text {
|
|
218
|
+
font-size: dt('message.text.font.size');
|
|
219
|
+
font-weight: dt('message.text.font.weight');
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.p-message-icon {
|
|
223
|
+
font-size: dt('message.icon.size');
|
|
224
|
+
width: dt('message.icon.size');
|
|
225
|
+
height: dt('message.icon.size');
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.p-message-sm .p-message-content {
|
|
229
|
+
padding: dt('message.content.sm.padding');
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.p-message-sm .p-message-text {
|
|
233
|
+
font-size: dt('message.text.sm.font.size');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.p-message-sm .p-message-icon {
|
|
237
|
+
font-size: dt('message.icon.sm.size');
|
|
238
|
+
width: dt('message.icon.sm.size');
|
|
239
|
+
height: dt('message.icon.sm.size');
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.p-message-sm .p-message-close-icon {
|
|
243
|
+
font-size: dt('message.close.icon.sm.size');
|
|
244
|
+
width: dt('message.close.icon.sm.size');
|
|
245
|
+
height: dt('message.close.icon.sm.size');
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.p-message-lg .p-message-content {
|
|
249
|
+
padding: dt('message.content.lg.padding');
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.p-message-lg .p-message-text {
|
|
253
|
+
font-size: dt('message.text.lg.font.size');
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.p-message-lg .p-message-icon {
|
|
257
|
+
font-size: dt('message.icon.lg.size');
|
|
258
|
+
width: dt('message.icon.lg.size');
|
|
259
|
+
height: dt('message.icon.lg.size');
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.p-message-lg .p-message-close-icon {
|
|
263
|
+
font-size: dt('message.close.icon.lg.size');
|
|
264
|
+
width: dt('message.close.icon.lg.size');
|
|
265
|
+
height: dt('message.close.icon.lg.size');
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.p-message-outlined {
|
|
269
|
+
background: transparent;
|
|
270
|
+
outline-width: dt('message.outlined.border.width');
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.p-message-simple {
|
|
274
|
+
background: transparent;
|
|
275
|
+
outline-color: transparent;
|
|
276
|
+
box-shadow: none;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.p-message-simple .p-message-content {
|
|
280
|
+
padding: dt('message.simple.content.padding');
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.p-message-outlined .p-message-close-button:hover,
|
|
284
|
+
.p-message-simple .p-message-close-button:hover {
|
|
285
|
+
background: transparent;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.p-message-enter-active {
|
|
289
|
+
animation: p-animate-message-enter 0.3s ease-out forwards;
|
|
290
|
+
overflow: hidden;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.p-message-leave-active {
|
|
294
|
+
animation: p-animate-message-leave 0.15s ease-in forwards;
|
|
295
|
+
overflow: hidden;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@keyframes p-animate-message-enter {
|
|
299
|
+
from {
|
|
300
|
+
opacity: 0;
|
|
301
|
+
grid-template-rows: 0fr;
|
|
302
|
+
}
|
|
303
|
+
to {
|
|
304
|
+
opacity: 1;
|
|
305
|
+
grid-template-rows: 1fr;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
@keyframes p-animate-message-leave {
|
|
310
|
+
from {
|
|
311
|
+
opacity: 1;
|
|
312
|
+
grid-template-rows: 1fr;
|
|
313
|
+
}
|
|
314
|
+
to {
|
|
315
|
+
opacity: 0;
|
|
316
|
+
margin: 0;
|
|
317
|
+
grid-template-rows: 0fr;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
`;var Pt=["container"],jt=["icon"],$t=["closeicon"],Ht=["*"],Vt=t=>({closeCallback:t});function Rt(t,i){t&1&&ae(0)}function Ut(t,i){if(t&1&&U(0,Rt,1,0,"ng-container",4),t&2){let e=b();m("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)}}function qt(t,i){if(t&1&&J(0,"i",1),t&2){let e=b();f(e.cn(e.cx("icon"),e.icon)),m("pBind",e.ptm("icon")),M("data-p",e.dataP)}}function Qt(t,i){t&1&&ae(0)}function Wt(t,i){if(t&1&&U(0,Qt,1,0,"ng-container",5),t&2){let e=b();m("ngTemplateOutlet",e.containerTemplate||e._containerTemplate)("ngTemplateOutletContext",$e(2,Vt,e.closeCallback))}}function Gt(t,i){if(t&1&&J(0,"span",9),t&2){let e=b(3);m("pBind",e.ptm("text"))("ngClass",e.cx("text"))("innerHTML",e.text,Ae),M("data-p",e.dataP)}}function Xt(t,i){if(t&1&&(W(0,"div"),U(1,Gt,1,4,"span",8),G()),t&2){let e=b(2);T(),m("ngIf",!e.escape)}}function Zt(t,i){if(t&1&&(W(0,"span",7),Pe(1),G()),t&2){let e=b(3);m("pBind",e.ptm("text"))("ngClass",e.cx("text")),M("data-p",e.dataP),T(),je(e.text)}}function Jt(t,i){if(t&1&&U(0,Zt,2,4,"span",10),t&2){let e=b(2);m("ngIf",e.escape&&e.text)}}function Kt(t,i){if(t&1&&(U(0,Xt,2,1,"div",6)(1,Jt,1,1,"ng-template",null,0,He),W(3,"span",7),$(4),G()),t&2){let e=Oe(2),n=b();m("ngIf",!n.escape)("ngIfElse",e),T(3),m("pBind",n.ptm("text"))("ngClass",n.cx("text")),M("data-p",n.dataP)}}function Yt(t,i){if(t&1&&J(0,"i",7),t&2){let e=b(2);f(e.cn(e.cx("closeIcon"),e.closeIcon)),m("pBind",e.ptm("closeIcon"))("ngClass",e.closeIcon),M("data-p",e.dataP)}}function en(t,i){t&1&&ae(0)}function tn(t,i){if(t&1&&U(0,en,1,0,"ng-container",4),t&2){let e=b(2);m("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function nn(t,i){if(t&1&&(oe(),J(0,"svg",14)),t&2){let e=b(2);f(e.cx("closeIcon")),m("pBind",e.ptm("closeIcon")),M("data-p",e.dataP)}}function on(t,i){if(t&1){let e=Fe();W(0,"button",11),re("click",function(o){we(e);let a=b();return Ne(a.close(o))}),S(1,Yt,1,5,"i",12),S(2,tn,1,1,"ng-container"),S(3,nn,1,4,":svg:svg",13),G()}if(t&2){let e=b();f(e.cx("closeButton")),m("pBind",e.ptm("closeButton")),M("aria-label",e.closeAriaLabel)("data-p",e.dataP),T(),F(e.closeIcon?1:-1),T(),F(e.closeIconTemplate||e._closeIconTemplate?2:-1),T(),F(!e.closeIconTemplate&&!e._closeIconTemplate&&!e.closeIcon?3:-1)}}var sn={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"},rt=(()=>{class t extends k{name="message";style=at;classes=sn;static \u0275fac=(()=>{let e;return function(o){return(e||(e=h(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var lt=new E("MESSAGE_INSTANCE"),an=(()=>{class t extends z{componentName="Message";_componentStyle=l(rt);bindDirectiveInstance=l(d,{self:!0});$pcMessage=l(lt,{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=s(void 0);computedMotionOptions=q(()=>Q(Q({},this.ptm("motion")),this.motionOptions()));onClose=new _e;get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}visible=ie(!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(o){return(e||(e=h(t)))(o||t)}})();static \u0275cmp=A({type:t,selectors:[["p-message"]],contentQueries:function(n,o,a){if(n&1&&ke(a,Pt,4)(a,jt,4)(a,$t,4)(a,We,4),n&2){let r;K(r=Y())&&(o.containerTemplate=r.first),K(r=Y())&&(o.iconTemplate=r.first),K(r=Y())&&(o.closeIconTemplate=r.first),K(r=Y())&&(o.templates=r)}},hostAttrs:["role","alert","aria-live","polite"],hostVars:5,hostBindings:function(n,o){n&1&&(Be(function(){return"p-message-enter-active"}),Le(function(){return"p-message-leave-active"})),n&2&&(M("data-p",o.dataP),f(o.cn(o.cx("root"),o.styleClass)),ze("p-message-leave-active",!o.visible()))},inputs:{severity:"severity",text:"text",escape:[2,"escape","escape",X],style:"style",styleClass:"styleClass",closable:[2,"closable","closable",X],icon:"icon",closeIcon:"closeIcon",life:"life",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",size:"size",variant:"variant",motionOptions:[1,"motionOptions"]},outputs:{onClose:"onClose"},features:[D([rt,{provide:lt,useExisting:t},{provide:w,useExisting:t}]),L([d]),C],ngContentSelectors:Ht,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(n,o){n&1&&(j(),W(0,"div",1)(1,"div",1),S(2,Ut,1,1,"ng-container"),S(3,qt,1,4,"i",2),S(4,Wt,1,4,"ng-container")(5,Kt,5,5),S(6,on,4,8,"button",3),G()()),n&2&&(f(o.cx("contentWrapper")),m("pBind",o.ptm("contentWrapper")),M("data-p",o.dataP),T(),f(o.cx("content")),m("pBind",o.ptm("content")),M("data-p",o.dataP),T(),F(o.iconTemplate||o._iconTemplate?2:-1),T(),F(o.icon?3:-1),T(),F(o.containerTemplate||o._containerTemplate?4:5),T(2),F(o.closable?6:-1))},dependencies:[H,Ve,Re,Ue,Ye,Ze,V,d,st],encapsulation:2,changeDetection:0})}return t})(),to=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=B({type:t});static \u0275inj=_({imports:[an,V,V]})}return t})();var dt=`
|
|
321
|
+
.p-inputtext {
|
|
322
|
+
font-family: inherit;
|
|
323
|
+
font-feature-settings: inherit;
|
|
324
|
+
font-size: 1rem;
|
|
325
|
+
color: dt('inputtext.color');
|
|
326
|
+
background: dt('inputtext.background');
|
|
327
|
+
padding-block: dt('inputtext.padding.y');
|
|
328
|
+
padding-inline: dt('inputtext.padding.x');
|
|
329
|
+
border: 1px solid dt('inputtext.border.color');
|
|
330
|
+
transition:
|
|
331
|
+
background dt('inputtext.transition.duration'),
|
|
332
|
+
color dt('inputtext.transition.duration'),
|
|
333
|
+
border-color dt('inputtext.transition.duration'),
|
|
334
|
+
outline-color dt('inputtext.transition.duration'),
|
|
335
|
+
box-shadow dt('inputtext.transition.duration');
|
|
336
|
+
appearance: none;
|
|
337
|
+
border-radius: dt('inputtext.border.radius');
|
|
338
|
+
outline-color: transparent;
|
|
339
|
+
box-shadow: dt('inputtext.shadow');
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.p-inputtext:enabled:hover {
|
|
343
|
+
border-color: dt('inputtext.hover.border.color');
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.p-inputtext:enabled:focus {
|
|
347
|
+
border-color: dt('inputtext.focus.border.color');
|
|
348
|
+
box-shadow: dt('inputtext.focus.ring.shadow');
|
|
349
|
+
outline: dt('inputtext.focus.ring.width') dt('inputtext.focus.ring.style') dt('inputtext.focus.ring.color');
|
|
350
|
+
outline-offset: dt('inputtext.focus.ring.offset');
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.p-inputtext.p-invalid {
|
|
354
|
+
border-color: dt('inputtext.invalid.border.color');
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.p-inputtext.p-variant-filled {
|
|
358
|
+
background: dt('inputtext.filled.background');
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.p-inputtext.p-variant-filled:enabled:hover {
|
|
362
|
+
background: dt('inputtext.filled.hover.background');
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.p-inputtext.p-variant-filled:enabled:focus {
|
|
366
|
+
background: dt('inputtext.filled.focus.background');
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.p-inputtext:disabled {
|
|
370
|
+
opacity: 1;
|
|
371
|
+
background: dt('inputtext.disabled.background');
|
|
372
|
+
color: dt('inputtext.disabled.color');
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.p-inputtext::placeholder {
|
|
376
|
+
color: dt('inputtext.placeholder.color');
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.p-inputtext.p-invalid::placeholder {
|
|
380
|
+
color: dt('inputtext.invalid.placeholder.color');
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.p-inputtext-sm {
|
|
384
|
+
font-size: dt('inputtext.sm.font.size');
|
|
385
|
+
padding-block: dt('inputtext.sm.padding.y');
|
|
386
|
+
padding-inline: dt('inputtext.sm.padding.x');
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.p-inputtext-lg {
|
|
390
|
+
font-size: dt('inputtext.lg.font.size');
|
|
391
|
+
padding-block: dt('inputtext.lg.padding.y');
|
|
392
|
+
padding-inline: dt('inputtext.lg.padding.x');
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.p-inputtext-fluid {
|
|
396
|
+
width: 100%;
|
|
397
|
+
}
|
|
398
|
+
`;var rn=`
|
|
399
|
+
${dt}
|
|
400
|
+
|
|
401
|
+
/* For PrimeNG */
|
|
402
|
+
.p-inputtext.ng-invalid.ng-dirty {
|
|
403
|
+
border-color: dt('inputtext.invalid.border.color');
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.p-inputtext.ng-invalid.ng-dirty::placeholder {
|
|
407
|
+
color: dt('inputtext.invalid.placeholder.color');
|
|
408
|
+
}
|
|
409
|
+
`,ln={root:({instance:t})=>["p-inputtext p-component",{"p-filled":t.$filled(),"p-inputtext-sm":t.pSize==="small","p-inputtext-lg":t.pSize==="large","p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-inputtext-fluid":t.hasFluid}]},ct=(()=>{class t extends k{name="inputtext";style=rn;classes=ln;static \u0275fac=(()=>{let e;return function(o){return(e||(e=h(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var pt=new E("INPUTTEXT_INSTANCE"),yo=(()=>{class t extends Ke{componentName="InputText";hostName="";ptInputText=s();pInputTextPT=s();pInputTextUnstyled=s();bindDirectiveInstance=l(d,{self:!0});$pcInputText=l(pt,{optional:!0,skipSelf:!0})??void 0;ngControl=l(Je,{optional:!0,self:!0});pcFluid=l(Ge,{optional:!0,host:!0,skipSelf:!0});pSize;variant=s();fluid=s(void 0,{transform:X});invalid=s(void 0,{transform:X});$variant=q(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());_componentStyle=l(ct);constructor(){super(),R(()=>{let e=this.ptInputText()||this.pInputTextPT();e&&this.directivePT.set(e)}),R(()=>{this.pInputTextUnstyled()&&this.directiveUnstyled.set(this.pInputTextUnstyled())})}onAfterViewInit(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value),this.cd.detectChanges()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("root"))}onDoCheck(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}onInput(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}get hasFluid(){return this.fluid()??!!this.pcFluid}get dataP(){return this.cn({invalid:this.invalid(),fluid:this.hasFluid,filled:this.$variant()==="filled",[this.pSize]:this.pSize})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=se({type:t,selectors:[["","pInputText",""]],hostVars:3,hostBindings:function(n,o){n&1&&re("input",function(){return o.onInput()}),n&2&&(M("data-p",o.dataP),f(o.cx("root")))},inputs:{hostName:"hostName",ptInputText:[1,"ptInputText"],pInputTextPT:[1,"pInputTextPT"],pInputTextUnstyled:[1,"pInputTextUnstyled"],pSize:"pSize",variant:[1,"variant"],fluid:[1,"fluid"],invalid:[1,"invalid"]},features:[D([ct,{provide:pt,useExisting:t},{provide:w,useExisting:t}]),L([d]),C]})}return t})(),Co=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=B({type:t});static \u0275inj=_({})}return t})();var ut=`
|
|
410
|
+
.p-iconfield {
|
|
411
|
+
position: relative;
|
|
412
|
+
display: block;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.p-inputicon {
|
|
416
|
+
position: absolute;
|
|
417
|
+
top: 50%;
|
|
418
|
+
margin-top: calc(-1 * (dt('icon.size') / 2));
|
|
419
|
+
color: dt('iconfield.icon.color');
|
|
420
|
+
line-height: 1;
|
|
421
|
+
z-index: 1;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.p-iconfield .p-inputicon:first-child {
|
|
425
|
+
inset-inline-start: dt('form.field.padding.x');
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.p-iconfield .p-inputicon:last-child {
|
|
429
|
+
inset-inline-end: dt('form.field.padding.x');
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.p-iconfield .p-inputtext:not(:first-child),
|
|
433
|
+
.p-iconfield .p-inputwrapper:not(:first-child) .p-inputtext {
|
|
434
|
+
padding-inline-start: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.p-iconfield .p-inputtext:not(:last-child) {
|
|
438
|
+
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.p-iconfield:has(.p-inputfield-sm) .p-inputicon {
|
|
442
|
+
font-size: dt('form.field.sm.font.size');
|
|
443
|
+
width: dt('form.field.sm.font.size');
|
|
444
|
+
height: dt('form.field.sm.font.size');
|
|
445
|
+
margin-top: calc(-1 * (dt('form.field.sm.font.size') / 2));
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.p-iconfield:has(.p-inputfield-lg) .p-inputicon {
|
|
449
|
+
font-size: dt('form.field.lg.font.size');
|
|
450
|
+
width: dt('form.field.lg.font.size');
|
|
451
|
+
height: dt('form.field.lg.font.size');
|
|
452
|
+
margin-top: calc(-1 * (dt('form.field.lg.font.size') / 2));
|
|
453
|
+
}
|
|
454
|
+
`;var dn=["*"],cn={root:({instance:t})=>["p-iconfield",{"p-iconfield-left":t.iconPosition=="left","p-iconfield-right":t.iconPosition=="right"}]},mt=(()=>{class t extends k{name="iconfield";style=ut;classes=cn;static \u0275fac=(()=>{let e;return function(o){return(e||(e=h(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var ft=new E("ICONFIELD_INSTANCE"),pn=(()=>{class t extends z{componentName="IconField";hostName="";_componentStyle=l(mt);$pcIconField=l(ft,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=l(d,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}iconPosition="left";styleClass;static \u0275fac=(()=>{let e;return function(o){return(e||(e=h(t)))(o||t)}})();static \u0275cmp=A({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(n,o){n&2&&f(o.cn(o.cx("root"),o.styleClass))},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[D([mt,{provide:ft,useExisting:t},{provide:w,useExisting:t}]),L([d]),C],ngContentSelectors:dn,decls:1,vars:0,template:function(n,o){n&1&&(j(),$(0))},dependencies:[H,Z],encapsulation:2,changeDetection:0})}return t})(),ko=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=B({type:t});static \u0275inj=_({imports:[pn]})}return t})();var un=["*"],mn={root:"p-inputicon"},gt=(()=>{class t extends k{name="inputicon";classes=mn;static \u0275fac=(()=>{let e;return function(o){return(e||(e=h(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),vt=new E("INPUTICON_INSTANCE"),fn=(()=>{class t extends z{componentName="InputIcon";hostName="";styleClass;_componentStyle=l(gt);$pcInputIcon=l(vt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=l(d,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=h(t)))(o||t)}})();static \u0275cmp=A({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(n,o){n&2&&f(o.cn(o.cx("root"),o.styleClass))},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[D([gt,{provide:vt,useExisting:t},{provide:w,useExisting:t}]),L([d]),C],ngContentSelectors:un,decls:1,vars:0,template:function(n,o){n&1&&(j(),$(0))},dependencies:[H,V,Z],encapsulation:2,changeDetection:0})}return t})(),Xo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=B({type:t});static \u0275inj=_({imports:[fn,V,V]})}return t})();export{Ye as a,yo as b,Co as c,zt as d,Bn as e,st as f,pn as g,ko as h,fn as i,Xo as j,an as k,to as l};
|