@skill-map/cli 0.16.5 → 0.17.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.js +305 -124
- package/dist/cli.js.map +1 -1
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +28 -5
- package/dist/kernel/index.js +17 -3
- package/dist/kernel/index.js.map +1 -1
- package/dist/ui/chunk-5ZGVBIPP.js +1031 -0
- package/dist/ui/chunk-BWUDZKB6.js +247 -0
- package/dist/ui/chunk-LUDNWV6G.js +3091 -0
- package/dist/ui/chunk-WMWULWZX.js +237 -0
- package/dist/ui/index.html +2 -2
- package/dist/ui/main-7LR4JN4M.js +1 -0
- package/dist/ui/skill-map-mark-dark.svg +8 -0
- package/dist/ui/skill-map-mark-light.svg +8 -0
- package/dist/ui/{styles-TCK5JUQE.css → styles-CBPFNGXA.css} +1 -1
- package/package.json +6 -3
- package/dist/ui/chunk-7PFTODKS.js +0 -1031
- package/dist/ui/chunk-A4RBO3TD.js +0 -38
- package/dist/ui/chunk-KPEISNOV.js +0 -819
- package/dist/ui/chunk-NKC42FI7.js +0 -210
- package/dist/ui/chunk-S5C4U3I3.js +0 -2403
- package/dist/ui/chunk-TG6IWVEC.js +0 -54
- package/dist/ui/chunk-TGJQE3TH.js +0 -54
- package/dist/ui/chunk-UGEECDPV.js +0 -1
- package/dist/ui/main-XSGTD7FQ.js +0 -1
|
@@ -1,819 +0,0 @@
|
|
|
1
|
-
import{a as Zi,b as Yi}from"./chunk-UGEECDPV.js";import{a as Xi}from"./chunk-TG6IWVEC.js";import{$a as De,$b as Ge,A as W,Ac as Ee,B as Be,Ba as Se,Bc as U,C as fi,Ca as ot,Cc as at,D as M,Da as vi,Dc as ne,E as Ut,Ea as Me,Fa as h,Ga as be,Gc as oe,Ha as Re,Hc as me,I as c,Ia as yt,Ib as Xe,Ic as zi,Jb as st,Kb as Si,Kc as Hi,L as qt,La as yi,Lb as Mi,Lc as ji,M as q,Ma as bi,Mc as $i,Na as Ci,Nb as Ti,Nc as I,O as N,Ob as wi,Oc as _e,P as X,Pb as Ei,Q as fe,Qb as Zt,R as ee,Ra as K,Rc as wt,S as T,Sa as je,Sb as Je,Sc as Ve,T as u,Ta as Q,Tb as we,Tc as Gi,U as gi,Ua as Te,Uc as Ui,Va as bt,Vb as Vi,Vc as qi,W as w,Wb as Oi,Wc as Ki,Xb as $e,Xc as We,Z as ae,Zb as Di,Zc as Et,_ as ce,_a as de,_c as Wi,ab as j,b as ui,bb as ke,bc as Yt,ca as l,cb as _,cc as ki,da as m,dc as Ue,e as pi,ea as y,ec as St,ed as Qi,fa as te,g as hi,ga as Kt,h as mi,ha as Wt,hb as xi,hc as Xt,ia as ye,ib as S,ja as O,jb as Fe,jc as Fi,k as Oe,ka as D,kb as Ii,kc as Le,l as J,la as R,lb as Qt,lc as qe,m as Z,mb as Ct,mc as Ke,n as H,nb as xt,nc as Ai,oa as ie,ob as Ae,oc as lt,p as b,pa as _i,pb as It,pc as Li,qa as E,qb as Ce,r as F,ra as a,rb as se,rc as Ni,s as A,sa as ge,sb as rt,sc as Jt,t as Y,ta as he,tc as Mt,ua as Ie,va as Pe,wa as f,wc as Bi,x,xa as g,xc as Tt,y as Ye,yc as Pi,zc as Ri}from"./chunk-7PFTODKS.js";import{a as P,b as pe}from"./chunk-Q7L6LLAK.js";var ln=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(q(qt),q(Ut))};static \u0275dir=fe({type:t})}return t})(),fo=(()=>{class t extends ln{static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275dir=fe({type:t,features:[T]})}return t})(),ze=new H("");var go={provide:ze,useExisting:Oe(()=>Ft),multi:!0};function _o(){let t=Qt()?Qt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var vo=new H(""),Ft=(()=>{class t extends ln{_compositionMode;_composing=!1;constructor(e,i,n){super(e,i),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!_o())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(q(qt),q(Ut),q(vo,8))};static \u0275dir=fe({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,n){i&1&&E("input",function(s){return n._handleInput(s.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(s){return n._compositionEnd(s.target.value)})},standalone:!1,features:[K([go]),T]})}return t})();var yo=new H(""),bo=new H("");function an(t){return t!=null}function cn(t){return gi(t)?pi(t):t}function dn(t){let o={};return t.forEach(e=>{o=e!=null?P(P({},o),e):o}),Object.keys(o).length===0?null:o}function un(t,o){return o.map(e=>e(t))}function Co(t){return!t.validate}function pn(t){return t.map(o=>Co(o)?o:e=>o.validate(e))}function xo(t){if(!t)return null;let o=t.filter(an);return o.length==0?null:function(e){return dn(un(e,o))}}function hn(t){return t!=null?xo(pn(t)):null}function Io(t){if(!t)return null;let o=t.filter(an);return o.length==0?null:function(e){let i=un(e,o).map(cn);return mi(i).pipe(hi(dn))}}function mn(t){return t!=null?Io(pn(t)):null}function Ji(t,o){return t===null?[o]:Array.isArray(t)?[...t,o]:[t,o]}function So(t){return t._rawValidators}function Mo(t){return t._rawAsyncValidators}function ei(t){return t?Array.isArray(t)?t:[t]:[]}function Ot(t,o){return Array.isArray(t)?t.includes(o):t===o}function en(t,o){let e=ei(o);return ei(t).forEach(n=>{Ot(e,n)||e.push(n)}),e}function tn(t,o){return ei(o).filter(e=>!Ot(t,e))}var Dt=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(o){this._rawValidators=o||[],this._composedValidatorFn=hn(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=mn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o=void 0){this.control?.reset(o)}hasError(o,e){return this.control?this.control.hasError(o,e):!1}getError(o,e){return this.control?this.control.getError(o,e):null}},ti=class extends Dt{name;get formDirective(){return null}get path(){return null}},Ne=class extends Dt{_parent=null;name=null;valueAccessor=null},ii=class{_cd;constructor(o){this._cd=o}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var ht=(()=>{class t extends ii{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(q(Ne,2))};static \u0275dir=fe({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,n){i&2&&vi("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[T]})}return t})();var ct="VALID",Vt="INVALID",et="PENDING",dt="DISABLED",Qe=class{},kt=class extends Qe{value;source;constructor(o,e){super(),this.value=o,this.source=e}},ut=class extends Qe{pristine;source;constructor(o,e){super(),this.pristine=o,this.source=e}},pt=class extends Qe{touched;source;constructor(o,e){super(),this.touched=o,this.source=e}},tt=class extends Qe{status;source;constructor(o,e){super(),this.status=o,this.source=e}};var ni=class extends Qe{source;constructor(o){super(),this.source=o}};function To(t){return(At(t)?t.validators:t)||null}function wo(t){return Array.isArray(t)?hn(t):t||null}function Eo(t,o){return(At(o)?o.asyncValidators:t)||null}function Vo(t){return Array.isArray(t)?mn(t):t||null}function At(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var oi=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(o,e){this._assignValidators(o),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get status(){return De(this.statusReactive)}set status(o){De(()=>this.statusReactive.set(o))}_status=j(()=>this.statusReactive());statusReactive=W(void 0);get valid(){return this.status===ct}get invalid(){return this.status===Vt}get pending(){return this.status===et}get disabled(){return this.status===dt}get enabled(){return this.status!==dt}errors;get pristine(){return De(this.pristineReactive)}set pristine(o){De(()=>this.pristineReactive.set(o))}_pristine=j(()=>this.pristineReactive());pristineReactive=W(!0);get dirty(){return!this.pristine}get touched(){return De(this.touchedReactive)}set touched(o){De(()=>this.touchedReactive.set(o))}_touched=j(()=>this.touchedReactive());touchedReactive=W(!1);get untouched(){return!this.touched}_events=new ui;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._assignValidators(o)}setAsyncValidators(o){this._assignAsyncValidators(o)}addValidators(o){this.setValidators(en(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(en(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(tn(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(tn(o,this._rawAsyncValidators))}hasValidator(o){return Ot(this._rawValidators,o)}hasAsyncValidator(o){return Ot(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){let e=this.touched===!1;this.touched=!0;let i=o.sourceControl??this;o.onlySelf||this._parent?.markAsTouched(pe(P({},o),{sourceControl:i})),e&&o.emitEvent!==!1&&this._events.next(new pt(!0,i))}markAllAsDirty(o={}){this.markAsDirty({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(o))}markAllAsTouched(o={}){this.markAsTouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(o))}markAsUntouched(o={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=o.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:i})}),o.onlySelf||this._parent?._updateTouched(o,i),e&&o.emitEvent!==!1&&this._events.next(new pt(!1,i))}markAsDirty(o={}){let e=this.pristine===!0;this.pristine=!1;let i=o.sourceControl??this;o.onlySelf||this._parent?.markAsDirty(pe(P({},o),{sourceControl:i})),e&&o.emitEvent!==!1&&this._events.next(new ut(!1,i))}markAsPristine(o={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=o.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:o.emitEvent})}),o.onlySelf||this._parent?._updatePristine(o,i),e&&o.emitEvent!==!1&&this._events.next(new ut(!0,i))}markAsPending(o={}){this.status=et;let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new tt(this.status,e)),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.markAsPending(pe(P({},o),{sourceControl:e}))}disable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=dt,this.errors=null,this._forEachChild(n=>{n.disable(pe(P({},o),{onlySelf:!0}))}),this._updateValue();let i=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new kt(this.value,i)),this._events.next(new tt(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(pe(P({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=ct,this._forEachChild(i=>{i.enable(pe(P({},o),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors(pe(P({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(o,e){o.onlySelf||(this._parent?.updateValueAndValidity(o),o.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ct||this.status===et)&&this._runAsyncValidator(i,o.emitEvent)}let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new kt(this.value,e)),this._events.next(new tt(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.updateValueAndValidity(pe(P({},o),{sourceControl:e}))}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?dt:ct}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o,e){if(this.asyncValidator){this.status=et,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:o!==!1};let i=cn(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:o})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let o=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,o}return!1}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(o){let e=o;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,n)=>i&&i._find(n),this)}getError(o,e){let i=e?this.get(e):this;return i?.errors?i.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o,e,i){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),(o||i)&&this._events.next(new tt(this.status,e)),this._parent&&this._parent._updateControlsErrors(o,e,i)}_initObservables(){this.valueChanges=new x,this.statusChanges=new x}_calculateStatus(){return this._allControlsDisabled()?dt:this.errors?Vt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(et)?et:this._anyControlsHaveStatus(Vt)?Vt:ct}_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o,e){let i=!this._anyControlsDirty(),n=this.pristine!==i;this.pristine=i,o.onlySelf||this._parent?._updatePristine(o,e),n&&this._events.next(new ut(this.pristine,e))}_updateTouched(o={},e){this.touched=this._anyControlsTouched(),this._events.next(new pt(this.touched,e)),o.onlySelf||this._parent?._updateTouched(o,e)}_onDisabledChange=[];_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){At(o)&&o.updateOn!=null&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(o){return null}_assignValidators(o){this._rawValidators=Array.isArray(o)?o.slice():o,this._composedValidatorFn=wo(this._rawValidators)}_assignAsyncValidators(o){this._rawAsyncValidators=Array.isArray(o)?o.slice():o,this._composedAsyncValidatorFn=Vo(this._rawAsyncValidators)}};var fn=new H("",{factory:()=>ri}),ri="always";function Oo(t,o){return[...o.path,t]}function Do(t,o,e=ri){Fo(t,o),o.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&o.valueAccessor.setDisabledState?.(t.disabled),Ao(t,o),No(t,o),Lo(t,o),ko(t,o)}function nn(t,o){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function ko(t,o){if(o.valueAccessor.setDisabledState){let e=i=>{o.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),o._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function Fo(t,o){let e=So(t);o.validator!==null?t.setValidators(Ji(e,o.validator)):typeof e=="function"&&t.setValidators([e]);let i=Mo(t);o.asyncValidator!==null?t.setAsyncValidators(Ji(i,o.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let n=()=>t.updateValueAndValidity();nn(o._rawValidators,n),nn(o._rawAsyncValidators,n)}function Ao(t,o){o.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&gn(t,o)})}function Lo(t,o){o.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&gn(t,o),t.updateOn!=="submit"&&t.markAsTouched()})}function gn(t,o){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function No(t,o){let e=(i,n)=>{o.valueAccessor.writeValue(i),n&&o.viewToModelUpdate(i)};t.registerOnChange(e),o._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Bo(t,o){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(o,e.currentValue)}function Po(t){return Object.getPrototypeOf(t.constructor)===fo}function Ro(t,o){if(!o)return null;Array.isArray(o);let e,i,n;return o.forEach(r=>{r.constructor===Ft?e=r:Po(r)?i=r:n=r}),n||i||e||null}function on(t,o){let e=t.indexOf(o);e>-1&&t.splice(e,1)}function rn(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var zo=class extends oi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(o=null,e,i){super(To(e),Eo(i,e)),this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),At(e)&&(e.nonNullable||e.initialValueIsDefault)&&(rn(o)?this.defaultValue=o.value:this.defaultValue=o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new ni(this))}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){on(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){on(this._onDisabledChange,o)}_forEachChild(o){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(o){rn(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}};var Ho={provide:Ne,useExisting:Oe(()=>it)},sn=Promise.resolve(),it=(()=>{class t extends Ne{_changeDetectorRef;callSetDisabledState;control=new zo;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new x;constructor(e,i,n,r,s,d){super(),this._changeDetectorRef=s,this.callSetDisabledState=d,this._parent=e,this._setValidators(i),this._setAsyncValidators(n),this.valueAccessor=Ro(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Bo(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Do(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){sn.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,n=i!==0&&S(i);sn.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Oo(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(q(ti,9),q(yo,10),q(bo,10),q(ze,10),q(xi,8),q(fn,8))};static \u0275dir=fe({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[K([Ho]),T,fi]})}return t})();var jo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({})}return t})();var mt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:fn,useValue:e.callSetDisabledState??ri}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({imports:[jo]})}return t})();var vn=`
|
|
2
|
-
.p-iconfield {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: block;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.p-inputicon {
|
|
8
|
-
position: absolute;
|
|
9
|
-
top: 50%;
|
|
10
|
-
margin-top: calc(-1 * (dt('icon.size') / 2));
|
|
11
|
-
color: dt('iconfield.icon.color');
|
|
12
|
-
line-height: 1;
|
|
13
|
-
z-index: 1;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.p-iconfield .p-inputicon:first-child {
|
|
17
|
-
inset-inline-start: dt('form.field.padding.x');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.p-iconfield .p-inputicon:last-child {
|
|
21
|
-
inset-inline-end: dt('form.field.padding.x');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.p-iconfield .p-inputtext:not(:first-child),
|
|
25
|
-
.p-iconfield .p-inputwrapper:not(:first-child) .p-inputtext {
|
|
26
|
-
padding-inline-start: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.p-iconfield .p-inputtext:not(:last-child) {
|
|
30
|
-
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.p-iconfield:has(.p-inputfield-sm) .p-inputicon {
|
|
34
|
-
font-size: dt('form.field.sm.font.size');
|
|
35
|
-
width: dt('form.field.sm.font.size');
|
|
36
|
-
height: dt('form.field.sm.font.size');
|
|
37
|
-
margin-top: calc(-1 * (dt('form.field.sm.font.size') / 2));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.p-iconfield:has(.p-inputfield-lg) .p-inputicon {
|
|
41
|
-
font-size: dt('form.field.lg.font.size');
|
|
42
|
-
width: dt('form.field.lg.font.size');
|
|
43
|
-
height: dt('form.field.lg.font.size');
|
|
44
|
-
margin-top: calc(-1 * (dt('form.field.lg.font.size') / 2));
|
|
45
|
-
}
|
|
46
|
-
`;var $o=["*"],Go={root:({instance:t})=>["p-iconfield",{"p-iconfield-left":t.iconPosition=="left","p-iconfield-right":t.iconPosition=="right"}]},yn=(()=>{class t extends ne{name="iconfield";style=vn;classes=Go;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})();var bn=new H("ICONFIELD_INSTANCE"),ft=(()=>{class t extends me{componentName="IconField";hostName="";_componentStyle=b(yn);$pcIconField=b(bn,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=b(I,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}iconPosition="left";styleClass;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(i,n){i&2&&h(n.cn(n.cx("root"),n.styleClass))},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[K([yn,{provide:bn,useExisting:t},{provide:oe,useExisting:t}]),ee([I]),T],ngContentSelectors:$o,decls:1,vars:0,template:function(i,n){i&1&&(ge(),he(0))},dependencies:[se,_e],encapsulation:2,changeDetection:0})}return t})(),Cn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({imports:[ft]})}return t})();var qo=["*"],Ko={root:"p-inputicon"},xn=(()=>{class t extends ne{name="inputicon";classes=Ko;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})(),In=new H("INPUTICON_INSTANCE"),gt=(()=>{class t extends me{componentName="InputIcon";hostName="";styleClass;_componentStyle=b(xn);$pcInputIcon=b(In,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=b(I,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(i,n){i&2&&h(n.cn(n.cx("root"),n.styleClass))},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[K([xn,{provide:In,useExisting:t},{provide:oe,useExisting:t}]),ee([I]),T],ngContentSelectors:qo,decls:1,vars:0,template:function(i,n){i&1&&(ge(),he(0))},dependencies:[se,U,_e],encapsulation:2,changeDetection:0})}return t})(),Sn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({imports:[gt,U,U]})}return t})();var Lt=(()=>{class t extends me{modelValue=W(void 0);$filled=j(()=>Le(this.modelValue()));writeModelValue(e){this.modelValue.set(e)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275dir=fe({type:t,features:[T]})}return t})();var Mn=`
|
|
47
|
-
.p-inputtext {
|
|
48
|
-
font-family: inherit;
|
|
49
|
-
font-feature-settings: inherit;
|
|
50
|
-
font-size: 1rem;
|
|
51
|
-
color: dt('inputtext.color');
|
|
52
|
-
background: dt('inputtext.background');
|
|
53
|
-
padding-block: dt('inputtext.padding.y');
|
|
54
|
-
padding-inline: dt('inputtext.padding.x');
|
|
55
|
-
border: 1px solid dt('inputtext.border.color');
|
|
56
|
-
transition:
|
|
57
|
-
background dt('inputtext.transition.duration'),
|
|
58
|
-
color dt('inputtext.transition.duration'),
|
|
59
|
-
border-color dt('inputtext.transition.duration'),
|
|
60
|
-
outline-color dt('inputtext.transition.duration'),
|
|
61
|
-
box-shadow dt('inputtext.transition.duration');
|
|
62
|
-
appearance: none;
|
|
63
|
-
border-radius: dt('inputtext.border.radius');
|
|
64
|
-
outline-color: transparent;
|
|
65
|
-
box-shadow: dt('inputtext.shadow');
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.p-inputtext:enabled:hover {
|
|
69
|
-
border-color: dt('inputtext.hover.border.color');
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.p-inputtext:enabled:focus {
|
|
73
|
-
border-color: dt('inputtext.focus.border.color');
|
|
74
|
-
box-shadow: dt('inputtext.focus.ring.shadow');
|
|
75
|
-
outline: dt('inputtext.focus.ring.width') dt('inputtext.focus.ring.style') dt('inputtext.focus.ring.color');
|
|
76
|
-
outline-offset: dt('inputtext.focus.ring.offset');
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.p-inputtext.p-invalid {
|
|
80
|
-
border-color: dt('inputtext.invalid.border.color');
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.p-inputtext.p-variant-filled {
|
|
84
|
-
background: dt('inputtext.filled.background');
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.p-inputtext.p-variant-filled:enabled:hover {
|
|
88
|
-
background: dt('inputtext.filled.hover.background');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.p-inputtext.p-variant-filled:enabled:focus {
|
|
92
|
-
background: dt('inputtext.filled.focus.background');
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.p-inputtext:disabled {
|
|
96
|
-
opacity: 1;
|
|
97
|
-
background: dt('inputtext.disabled.background');
|
|
98
|
-
color: dt('inputtext.disabled.color');
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.p-inputtext::placeholder {
|
|
102
|
-
color: dt('inputtext.placeholder.color');
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.p-inputtext.p-invalid::placeholder {
|
|
106
|
-
color: dt('inputtext.invalid.placeholder.color');
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.p-inputtext-sm {
|
|
110
|
-
font-size: dt('inputtext.sm.font.size');
|
|
111
|
-
padding-block: dt('inputtext.sm.padding.y');
|
|
112
|
-
padding-inline: dt('inputtext.sm.padding.x');
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.p-inputtext-lg {
|
|
116
|
-
font-size: dt('inputtext.lg.font.size');
|
|
117
|
-
padding-block: dt('inputtext.lg.padding.y');
|
|
118
|
-
padding-inline: dt('inputtext.lg.padding.x');
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.p-inputtext-fluid {
|
|
122
|
-
width: 100%;
|
|
123
|
-
}
|
|
124
|
-
`;var Qo=`
|
|
125
|
-
${Mn}
|
|
126
|
-
|
|
127
|
-
/* For PrimeNG */
|
|
128
|
-
.p-inputtext.ng-invalid.ng-dirty {
|
|
129
|
-
border-color: dt('inputtext.invalid.border.color');
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.p-inputtext.ng-invalid.ng-dirty::placeholder {
|
|
133
|
-
color: dt('inputtext.invalid.placeholder.color');
|
|
134
|
-
}
|
|
135
|
-
`,Zo={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}]},Tn=(()=>{class t extends ne{name="inputtext";style=Qo;classes=Zo;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})();var wn=new H("INPUTTEXT_INSTANCE"),Nt=(()=>{class t extends Lt{componentName="InputText";hostName="";ptInputText=_();pInputTextPT=_();pInputTextUnstyled=_();bindDirectiveInstance=b(I,{self:!0});$pcInputText=b(wn,{optional:!0,skipSelf:!0})??void 0;ngControl=b(Ne,{optional:!0,self:!0});pcFluid=b(wt,{optional:!0,host:!0,skipSelf:!0});pSize;variant=_();fluid=_(void 0,{transform:S});invalid=_(void 0,{transform:S});$variant=j(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());_componentStyle=b(Tn);constructor(){super(),Be(()=>{let e=this.ptInputText()||this.pInputTextPT();e&&this.directivePT.set(e)}),Be(()=>{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(i){return new(i||t)};static \u0275dir=fe({type:t,selectors:[["","pInputText",""]],hostVars:3,hostBindings:function(i,n){i&1&&E("input",function(){return n.onInput()}),i&2&&(w("data-p",n.dataP),h(n.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:[K([Tn,{provide:wn,useExisting:t},{provide:oe,useExisting:t}]),ee([I]),T]})}return t})(),En=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({})}return t})();var nt=(()=>{class t extends Lt{required=_(void 0,{transform:S});invalid=_(void 0,{transform:S});disabled=_(void 0,{transform:S});name=_();_disabled=W(!1);$disabled=j(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(e){this._disabled.set(e)}writeControlValue(e,i){}writeValue(e){this.writeControlValue(e,this.writeModelValue.bind(this))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.writeDisabledState(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275dir=fe({type:t,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[T]})}return t})();var Xo=["data-p-icon","check"],Bt=(()=>{class t extends Ve{static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["","data-p-icon","check"]],features:[T],attrs:Xo,decls:1,vars:0,consts:[["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,n){i&1&&(Y(),ye(0,"path",0))},encapsulation:2})}return t})();var Jo=["data-p-icon","minus"],Vn=(()=>{class t extends Ve{static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["","data-p-icon","minus"]],features:[T],attrs:Jo,decls:1,vars:0,consts:[["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(i,n){i&1&&(Y(),ye(0,"path",0))},encapsulation:2})}return t})();var On=`
|
|
136
|
-
.p-checkbox {
|
|
137
|
-
position: relative;
|
|
138
|
-
display: inline-flex;
|
|
139
|
-
user-select: none;
|
|
140
|
-
vertical-align: bottom;
|
|
141
|
-
width: dt('checkbox.width');
|
|
142
|
-
height: dt('checkbox.height');
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.p-checkbox-input {
|
|
146
|
-
cursor: pointer;
|
|
147
|
-
appearance: none;
|
|
148
|
-
position: absolute;
|
|
149
|
-
inset-block-start: 0;
|
|
150
|
-
inset-inline-start: 0;
|
|
151
|
-
width: 100%;
|
|
152
|
-
height: 100%;
|
|
153
|
-
padding: 0;
|
|
154
|
-
margin: 0;
|
|
155
|
-
opacity: 0;
|
|
156
|
-
z-index: 1;
|
|
157
|
-
outline: 0 none;
|
|
158
|
-
border: 1px solid transparent;
|
|
159
|
-
border-radius: dt('checkbox.border.radius');
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.p-checkbox-box {
|
|
163
|
-
display: flex;
|
|
164
|
-
justify-content: center;
|
|
165
|
-
align-items: center;
|
|
166
|
-
border-radius: dt('checkbox.border.radius');
|
|
167
|
-
border: 1px solid dt('checkbox.border.color');
|
|
168
|
-
background: dt('checkbox.background');
|
|
169
|
-
width: dt('checkbox.width');
|
|
170
|
-
height: dt('checkbox.height');
|
|
171
|
-
transition:
|
|
172
|
-
background dt('checkbox.transition.duration'),
|
|
173
|
-
color dt('checkbox.transition.duration'),
|
|
174
|
-
border-color dt('checkbox.transition.duration'),
|
|
175
|
-
box-shadow dt('checkbox.transition.duration'),
|
|
176
|
-
outline-color dt('checkbox.transition.duration');
|
|
177
|
-
outline-color: transparent;
|
|
178
|
-
box-shadow: dt('checkbox.shadow');
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.p-checkbox-icon {
|
|
182
|
-
transition-duration: dt('checkbox.transition.duration');
|
|
183
|
-
color: dt('checkbox.icon.color');
|
|
184
|
-
font-size: dt('checkbox.icon.size');
|
|
185
|
-
width: dt('checkbox.icon.size');
|
|
186
|
-
height: dt('checkbox.icon.size');
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
190
|
-
border-color: dt('checkbox.hover.border.color');
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.p-checkbox-checked .p-checkbox-box {
|
|
194
|
-
border-color: dt('checkbox.checked.border.color');
|
|
195
|
-
background: dt('checkbox.checked.background');
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.p-checkbox-checked .p-checkbox-icon {
|
|
199
|
-
color: dt('checkbox.icon.checked.color');
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
203
|
-
background: dt('checkbox.checked.hover.background');
|
|
204
|
-
border-color: dt('checkbox.checked.hover.border.color');
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {
|
|
208
|
-
color: dt('checkbox.icon.checked.hover.color');
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
212
|
-
border-color: dt('checkbox.focus.border.color');
|
|
213
|
-
box-shadow: dt('checkbox.focus.ring.shadow');
|
|
214
|
-
outline: dt('checkbox.focus.ring.width') dt('checkbox.focus.ring.style') dt('checkbox.focus.ring.color');
|
|
215
|
-
outline-offset: dt('checkbox.focus.ring.offset');
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
219
|
-
border-color: dt('checkbox.checked.focus.border.color');
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.p-checkbox.p-invalid > .p-checkbox-box {
|
|
223
|
-
border-color: dt('checkbox.invalid.border.color');
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.p-checkbox.p-variant-filled .p-checkbox-box {
|
|
227
|
-
background: dt('checkbox.filled.background');
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.p-checkbox-checked.p-variant-filled .p-checkbox-box {
|
|
231
|
-
background: dt('checkbox.checked.background');
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
235
|
-
background: dt('checkbox.checked.hover.background');
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.p-checkbox.p-disabled {
|
|
239
|
-
opacity: 1;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.p-checkbox.p-disabled .p-checkbox-box {
|
|
243
|
-
background: dt('checkbox.disabled.background');
|
|
244
|
-
border-color: dt('checkbox.checked.disabled.border.color');
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {
|
|
248
|
-
color: dt('checkbox.icon.disabled.color');
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.p-checkbox-sm,
|
|
252
|
-
.p-checkbox-sm .p-checkbox-box {
|
|
253
|
-
width: dt('checkbox.sm.width');
|
|
254
|
-
height: dt('checkbox.sm.height');
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.p-checkbox-sm .p-checkbox-icon {
|
|
258
|
-
font-size: dt('checkbox.icon.sm.size');
|
|
259
|
-
width: dt('checkbox.icon.sm.size');
|
|
260
|
-
height: dt('checkbox.icon.sm.size');
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.p-checkbox-lg,
|
|
264
|
-
.p-checkbox-lg .p-checkbox-box {
|
|
265
|
-
width: dt('checkbox.lg.width');
|
|
266
|
-
height: dt('checkbox.lg.height');
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.p-checkbox-lg .p-checkbox-icon {
|
|
270
|
-
font-size: dt('checkbox.icon.lg.size');
|
|
271
|
-
width: dt('checkbox.icon.lg.size');
|
|
272
|
-
height: dt('checkbox.icon.lg.size');
|
|
273
|
-
}
|
|
274
|
-
`;var er=["icon"],tr=["input"],ir=(t,o,e)=>({checked:t,class:o,dataP:e});function nr(t,o){if(t&1&&te(0,"span",8),t&2){let e=a(3);h(e.cx("icon")),l("ngClass",e.checkboxIcon)("pBind",e.ptm("icon")),w("data-p",e.dataP)}}function or(t,o){if(t&1&&(Y(),te(0,"svg",9)),t&2){let e=a(3);h(e.cx("icon")),l("pBind",e.ptm("icon")),w("data-p",e.dataP)}}function rr(t,o){if(t&1&&(O(0),u(1,nr,1,5,"span",6)(2,or,1,4,"svg",7),D()),t&2){let e=a(2);c(),l("ngIf",e.checkboxIcon),c(),l("ngIf",!e.checkboxIcon)}}function sr(t,o){if(t&1&&(Y(),te(0,"svg",10)),t&2){let e=a(2);h(e.cx("icon")),l("pBind",e.ptm("icon")),w("data-p",e.dataP)}}function lr(t,o){if(t&1&&(O(0),u(1,rr,3,2,"ng-container",3)(2,sr,1,4,"svg",5),D()),t&2){let e=a();c(),l("ngIf",e.checked),c(),l("ngIf",e._indeterminate())}}function ar(t,o){}function cr(t,o){t&1&&u(0,ar,0,0,"ng-template")}var dr=`
|
|
275
|
-
${On}
|
|
276
|
-
|
|
277
|
-
/* For PrimeNG */
|
|
278
|
-
p-checkBox.ng-invalid.ng-dirty .p-checkbox-box,
|
|
279
|
-
p-check-box.ng-invalid.ng-dirty .p-checkbox-box,
|
|
280
|
-
p-checkbox.ng-invalid.ng-dirty .p-checkbox-box {
|
|
281
|
-
border-color: dt('checkbox.invalid.border.color');
|
|
282
|
-
}
|
|
283
|
-
`,ur={root:({instance:t})=>["p-checkbox p-component",{"p-checkbox-checked p-highlight":t.checked,"p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-checkbox-sm p-inputfield-sm":t.size()==="small","p-checkbox-lg p-inputfield-lg":t.size()==="large"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},Dn=(()=>{class t extends ne{name="checkbox";style=dr;classes=ur;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})();var kn=new H("CHECKBOX_INSTANCE"),pr={provide:ze,useExisting:Oe(()=>_t),multi:!0},_t=(()=>{class t extends nt{componentName="Checkbox";hostName="";value;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;inputStyle;styleClass;inputClass;indeterminate=!1;formControl;checkboxIcon;readonly;autofocus;trueValue=!0;falseValue=!1;variant=_();size=_();onChange=new x;onFocus=new x;onBlur=new x;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.modelValue()===this.trueValue:Ai(this.value,this.modelValue())}_indeterminate=W(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;focused=!1;_componentStyle=b(Dn);bindDirectiveInstance=b(I,{self:!0});$pcCheckbox=b(kn,{optional:!0,skipSelf:!0})??void 0;$variant=j(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"icon":this._checkboxIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break}})}onChanges(e){e.indeterminate&&this._indeterminate.set(e.indeterminate.currentValue)}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}updateModel(e){let i,n=this.injector.get(Ne,null,{optional:!0,self:!0}),r=n&&!this.formControl?n.value:this.modelValue();this.binary?(i=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.writeModelValue(i),this.onModelChange(i)):(this.checked||this._indeterminate()?i=r.filter(s=>!Ke(s,this.value)):i=r?[...r,this.value]:[this.value],this.onModelChange(i),this.writeModelValue(i),this.formControl&&this.formControl.setValue(i)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeControlValue(e,i){i(e),this.cd.markForCheck()}get dataP(){return this.cn({invalid:this.invalid(),checked:this.checked,disabled:this.$disabled(),filled:this.$variant()==="filled",[this.size()]:this.size()})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(i,n,r){if(i&1&&Ie(r,er,4)(r,Ee,4),i&2){let s;f(s=g())&&(n.checkboxIconTemplate=s.first),f(s=g())&&(n.templates=s)}},viewQuery:function(i,n){if(i&1&&Pe(tr,5),i&2){let r;f(r=g())&&(n.inputViewChild=r.first)}},hostVars:6,hostBindings:function(i,n){i&2&&(w("data-p-highlight",n.checked)("data-p-checked",n.checked)("data-p-disabled",n.$disabled())("data-p",n.dataP),h(n.cn(n.cx("root"),n.styleClass)))},inputs:{hostName:"hostName",value:"value",binary:[2,"binary","binary",S],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",Fe],inputId:"inputId",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",S],formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",S],autofocus:[2,"autofocus","autofocus",S],trueValue:"trueValue",falseValue:"falseValue",variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[K([pr,Dn,{provide:kn,useExisting:t},{provide:oe,useExisting:t}]),ee([I]),T],decls:5,vars:26,consts:[["input",""],["type","checkbox",3,"focus","blur","change","checked","pBind"],[3,"pBind"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","minus",3,"class","pBind",4,"ngIf"],[3,"class","ngClass","pBind",4,"ngIf"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","check",3,"pBind"],["data-p-icon","minus",3,"pBind"]],template:function(i,n){i&1&&(m(0,"input",1,0),E("focus",function(s){return n.onInputFocus(s)})("blur",function(s){return n.onInputBlur(s)})("change",function(s){return n.handleChange(s)}),y(),m(2,"div",2),u(3,lr,3,2,"ng-container",3)(4,cr,1,0,null,4),y()),i&2&&(Me(n.inputStyle),h(n.cn(n.cx("input"),n.inputClass)),l("checked",n.checked)("pBind",n.ptm("input")),w("id",n.inputId)("value",n.value)("name",n.name())("tabindex",n.tabindex)("required",n.required()?"":void 0)("readonly",n.readonly?"":void 0)("disabled",n.$disabled()?"":void 0)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel),c(2),h(n.cx("box")),l("pBind",n.ptm("box")),w("data-p",n.dataP),c(),l("ngIf",!n.checkboxIconTemplate&&!n._checkboxIconTemplate),c(),l("ngTemplateOutlet",n.checkboxIconTemplate||n._checkboxIconTemplate)("ngTemplateOutletContext",bt(22,ir,n.checked,n.cx("icon"),n.dataP)))},dependencies:[se,Ct,Ae,Ce,U,Bt,Vn,_e,I],encapsulation:2,changeDetection:0})}return t})(),Nd=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({imports:[_t,U,U]})}return t})();var hr=["data-p-icon","chevron-down"],Fn=(()=>{class t extends Ve{static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["","data-p-icon","chevron-down"]],features:[T],attrs:hr,decls:1,vars:0,consts:[["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(i,n){i&1&&(Y(),ye(0,"path",0))},encapsulation:2})}return t})();var mr=["data-p-icon","search"],An=(()=>{class t extends Ve{pathId;onInit(){this.pathId="url(#"+Mt()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["","data-p-icon","search"]],features:[T],attrs:mr,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(Y(),Kt(0,"g"),ye(1,"path",0),Wt(),Kt(2,"defs")(3,"clipPath",1),ye(4,"rect",2),Wt()()),i&2&&(w("clip-path",n.pathId),c(3),_i("id",n.pathId))},encapsulation:2})}return t})();var fr=["data-p-icon","times"],Ln=(()=>{class t extends Ve{static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["","data-p-icon","times"]],features:[T],attrs:fr,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(i,n){i&1&&(Y(),ye(0,"path",0))},encapsulation:2})}return t})();var gr=Object.defineProperty,Nn=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,Bn=(t,o,e)=>o in t?gr(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e,Pn=(t,o)=>{for(var e in o||(o={}))_r.call(o,e)&&Bn(t,e,o[e]);if(Nn)for(var e of Nn(o))vr.call(o,e)&&Bn(t,e,o[e]);return t},yr=(t,o,e)=>new Promise((i,n)=>{var r=p=>{try{d(e.next(p))}catch(C){n(C)}},s=p=>{try{d(e.throw(p))}catch(C){n(C)}},d=p=>p.done?i(p.value):Promise.resolve(p.value).then(r,s);d((e=e.apply(t,o)).next())}),Rt="animation",vt="transition";function br(t){return t?t.disabled||!!(t.safe&&ki()):!1}function Cr(t,o){return t?Pn(Pn({},t),Object.entries(o).reduce((e,[i,n])=>{var r;return e[i]=(r=t[i])!=null?r:n,e},{})):o}function xr(t){let{name:o,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${o}-enter-from`,to:e?.to||`${o}-enter-to`,active:e?.active||`${o}-enter-active`},leave:{from:i?.from||`${o}-leave-from`,to:i?.to||`${o}-leave-to`,active:i?.active||`${o}-leave-active`}}}function Ir(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 Sr(t,o){let e=window.getComputedStyle(t),i=$=>{let G=e[`${$}Delay`],re=e[`${$}Duration`];return[G.split(", ").map(Jt),re.split(", ").map(Jt)]},[n,r]=i(vt),[s,d]=i(Rt),p=Math.max(...r.map(($,G)=>$+n[G])),C=Math.max(...d.map(($,G)=>$+s[G])),v,B=0,L=0;return o===vt?p>0&&(v=vt,B=p,L=r.length):o===Rt?C>0&&(v=Rt,B=C,L=d.length):(B=Math.max(p,C),v=B>0?p>C?vt:Rt:void 0,L=v?v===vt?r.length:d.length:0),{type:v,timeout:B,count:L}}function si(t,o){return typeof t=="number"?t:typeof t=="object"&&t[o]!=null?t[o]:null}function Mr(t,o=!0,e=!1){if(!o&&!e)return;let i=Si(t);o&&Xt(t,"--pui-motion-height",i.height+"px"),e&&Xt(t,"--pui-motion-width",i.width+"px")}var Tr={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function Rn(t,o){if(!t)throw new Error("Element is required.");let e={},i=!1,n={},r=null,s={},d=v=>{if(Object.assign(e,Cr(v,Tr)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");s=Ir(e),i=br(e),n=xr(e),r=null},p=v=>yr(null,null,function*(){r?.();let{onBefore:B,onStart:L,onAfter:$,onCancelled:G}=s[v]||{},re={element:t};if(i){B?.(re),L?.(re),$?.(re);return}let{from:V,active:k,to:z}=n[v]||{};return Mr(t,e.autoHeight,e.autoWidth),B?.(re),Xe(t,V),Xe(t,k),t.offsetHeight,st(t,V),Xe(t,z),L?.(re),new Promise(ue=>{let ve=si(e.duration,v),xe=()=>{st(t,[z,k]),r=null},Ze=()=>{xe(),$?.(re),ue()};r=()=>{xe(),G?.(re),ue()},Er(t,e.type,ve,Ze)})});d(o);let C={enter:()=>e.enter?p("enter"):Promise.resolve(),leave:()=>e.leave?p("leave"):Promise.resolve(),cancel:()=>{r?.(),r=null},update:(v,B)=>{if(!v)throw new Error("Element is required.");t=v,C.cancel(),d(B)}};return e.appear&&C.enter(),C}var wr=0;function Er(t,o,e,i){let n=t._motionEndId=++wr,r=()=>{n===t._motionEndId&&i()};if(e!=null)return setTimeout(r,e);let{type:s,timeout:d,count:p}=Sr(t,o);if(!s){i();return}let C=s+"end",v=0,B=()=>{t.removeEventListener(C,L,!0),r()},L=$=>{$.target===t&&++v>=p&&B()};t.addEventListener(C,L,{capture:!0,once:!0}),setTimeout(()=>{v<p&&B()},d+1)}var Vr=["*"];function Or(t,o){t&1&&he(0)}var zt=new WeakMap;function li(t,o){if(t)switch(zt.has(t)||zt.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),o){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function zn(t,o){if(!t)return;let e=zt.get(t)??t.style;switch(o){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}zt.delete(t)}var Dr=`
|
|
284
|
-
.p-motion {
|
|
285
|
-
display: block;
|
|
286
|
-
}
|
|
287
|
-
`,kr={root:"p-motion"},Hn=(()=>{class t extends ne{name="motion";style=Dr;classes=kr;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})();var jn=new H("MOTION_INSTANCE"),ai=(()=>{class t extends me{$pcMotion=b(jn,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=b(I,{self:!0});onAfterViewChecked(){let i=this.options()?.root||{};this.bindDirectiveInstance.setAttrs(P(P({},this.ptms(["host","root"])),i))}_componentStyle=b(Hn);visible=_(!1);mountOnEnter=_(!0);unmountOnLeave=_(!0);name=_(void 0);type=_(void 0);safe=_(void 0);disabled=_(!1);appear=_(!1);enter=_(!0);leave=_(!0);duration=_(void 0);hideStrategy=_("display");enterFromClass=_(void 0);enterToClass=_(void 0);enterActiveClass=_(void 0);leaveFromClass=_(void 0);leaveToClass=_(void 0);leaveActiveClass=_(void 0);options=_({});onBeforeEnter=ke();onEnter=ke();onAfterEnter=ke();onEnterCancelled=ke();onBeforeLeave=ke();onLeave=ke();onAfterLeave=ke();onLeaveCancelled=ke();motionOptions=j(()=>{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=W(!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(),Be(()=>{let e=this.hideStrategy();this.isInitialMount?(li(this.$el,e),this.rendered.set(this.visible()&&this.mountOnEnter()||!this.mountOnEnter())):this.visible()&&!this.rendered()&&(li(this.$el,e),this.rendered.set(!0))}),Be(()=>{this.motion||(this.motion=Rn(this.$el,this.motionOptions()))}),Ii(async()=>{if(!this.$el)return;let e=this.isInitialMount&&this.visible()&&this.appear(),i=this.hideStrategy();this.visible()?(await St(),zn(this.$el,i),(e||!this.isInitialMount)&&(this.applyMotionDuration("enter"),this.motion?.enter())):this.isInitialMount||(await St(),this.applyMotionDuration("leave"),this.motion?.leave()?.then(async()=>{this.$el&&!this.cancelled&&!this.visible()&&(li(this.$el,i),this.unmountOnLeave()&&(await St(),this.cancelled||this.rendered.set(!1)))})),this.isInitialMount=!1})}applyMotionDuration(e){let i=De(this.motionOptions),n=si(i.duration,e);if(n==null||!this.$el)return;let r=this.$el,s=`${n}ms`;i.type==="transition"?r.style.transitionDuration=s:r.style.animationDuration=s}onDestroy(){this.destroyed=!0,this.cancelled=!0,this.motion?.cancel(),this.motion=void 0,zn(this.$el,this.hideStrategy()),this.$el?.remove(),this.isInitialMount=!0}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=N({type:t,selectors:[["p-motion"]],hostVars:2,hostBindings:function(i,n){i&2&&h(n.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:[K([Hn,{provide:jn,useExisting:t},{provide:oe,useExisting:t}]),ee([I]),T],ngContentSelectors:Vr,decls:1,vars:1,template:function(i,n){i&1&&(ge(),ae(0,Or,1,0)),i&2&&ce(n.rendered()?0:-1)},dependencies:[se,_e],encapsulation:2})}return t})();var $n=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({imports:[ai]})}return t})();var Gn=["content"],Lr=["overlay"],Un=["*","*"],Nr=()=>({mode:null}),Wn=t=>({$implicit:t}),Br=t=>({mode:t});function Pr(t,o){t&1&&R(0)}function Rr(t,o){if(t&1&&(he(0),u(1,Pr,1,0,"ng-container",3)),t&2){let e=a();c(),l("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Q(3,Wn,je(2,Nr)))}}function zr(t,o){t&1&&R(0)}function Hr(t,o){if(t&1){let e=ie();m(0,"div",5,0),E("click",function(){F(e);let n=a(2);return A(n.onOverlayClick())}),m(2,"p-motion",6),E("onBeforeEnter",function(n){F(e);let r=a(2);return A(r.onOverlayBeforeEnter(n))})("onEnter",function(n){F(e);let r=a(2);return A(r.onOverlayEnter(n))})("onAfterEnter",function(n){F(e);let r=a(2);return A(r.onOverlayAfterEnter(n))})("onBeforeLeave",function(n){F(e);let r=a(2);return A(r.onOverlayBeforeLeave(n))})("onLeave",function(n){F(e);let r=a(2);return A(r.onOverlayLeave(n))})("onAfterLeave",function(n){F(e);let r=a(2);return A(r.onOverlayAfterLeave(n))}),m(3,"div",5,1),E("click",function(n){F(e);let r=a(2);return A(r.onOverlayContentClick(n))}),he(5,1),u(6,zr,1,0,"ng-container",3),y()()()}if(t&2){let e=a(2);Me(e.sx("root")),h(e.cn(e.cx("root"),e.styleClass)),l("pBind",e.ptm("root")),c(2),l("visible",e.visible)("appear",!0)("options",e.computedMotionOptions()),c(),h(e.cn(e.cx("content"),e.contentStyleClass)),l("pBind",e.ptm("content")),c(3),l("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Q(15,Wn,Q(13,Br,e.overlayMode)))}}function jr(t,o){if(t&1&&u(0,Hr,7,17,"div",4),t&2){let e=a();l("ngIf",e.modalVisible)}}var $r={root:()=>({position:"absolute",top:"0"})},Gr=`
|
|
288
|
-
.p-overlay-modal {
|
|
289
|
-
display: flex;
|
|
290
|
-
align-items: center;
|
|
291
|
-
justify-content: center;
|
|
292
|
-
position: fixed;
|
|
293
|
-
top: 0;
|
|
294
|
-
left: 0;
|
|
295
|
-
width: 100%;
|
|
296
|
-
height: 100%;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.p-overlay-content {
|
|
300
|
-
transform-origin: inherit;
|
|
301
|
-
will-change: transform;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/* Github Issue #18560 */
|
|
305
|
-
.p-component-overlay.p-component {
|
|
306
|
-
position: relative;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.p-overlay-modal > .p-overlay-content {
|
|
310
|
-
z-index: 1;
|
|
311
|
-
width: 90%;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/* Position */
|
|
315
|
-
/* top */
|
|
316
|
-
.p-overlay-top {
|
|
317
|
-
align-items: flex-start;
|
|
318
|
-
}
|
|
319
|
-
.p-overlay-top-start {
|
|
320
|
-
align-items: flex-start;
|
|
321
|
-
justify-content: flex-start;
|
|
322
|
-
}
|
|
323
|
-
.p-overlay-top-end {
|
|
324
|
-
align-items: flex-start;
|
|
325
|
-
justify-content: flex-end;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
/* bottom */
|
|
329
|
-
.p-overlay-bottom {
|
|
330
|
-
align-items: flex-end;
|
|
331
|
-
}
|
|
332
|
-
.p-overlay-bottom-start {
|
|
333
|
-
align-items: flex-end;
|
|
334
|
-
justify-content: flex-start;
|
|
335
|
-
}
|
|
336
|
-
.p-overlay-bottom-end {
|
|
337
|
-
align-items: flex-end;
|
|
338
|
-
justify-content: flex-end;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/* left */
|
|
342
|
-
.p-overlay-left {
|
|
343
|
-
justify-content: flex-start;
|
|
344
|
-
}
|
|
345
|
-
.p-overlay-left-start {
|
|
346
|
-
justify-content: flex-start;
|
|
347
|
-
align-items: flex-start;
|
|
348
|
-
}
|
|
349
|
-
.p-overlay-left-end {
|
|
350
|
-
justify-content: flex-start;
|
|
351
|
-
align-items: flex-end;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
/* right */
|
|
355
|
-
.p-overlay-right {
|
|
356
|
-
justify-content: flex-end;
|
|
357
|
-
}
|
|
358
|
-
.p-overlay-right-start {
|
|
359
|
-
justify-content: flex-end;
|
|
360
|
-
align-items: flex-start;
|
|
361
|
-
}
|
|
362
|
-
.p-overlay-right-end {
|
|
363
|
-
justify-content: flex-end;
|
|
364
|
-
align-items: flex-end;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.p-overlay-content ~ .p-overlay-content {
|
|
368
|
-
display: none;
|
|
369
|
-
}
|
|
370
|
-
`,Ur={host:"p-overlay-host",root:({instance:t})=>["p-overlay p-component",{"p-overlay-modal p-overlay-mask p-overlay-mask-enter-active":t.modal,"p-overlay-center":t.modal&&t.overlayResponsiveDirection==="center","p-overlay-top":t.modal&&t.overlayResponsiveDirection==="top","p-overlay-top-start":t.modal&&t.overlayResponsiveDirection==="top-start","p-overlay-top-end":t.modal&&t.overlayResponsiveDirection==="top-end","p-overlay-bottom":t.modal&&t.overlayResponsiveDirection==="bottom","p-overlay-bottom-start":t.modal&&t.overlayResponsiveDirection==="bottom-start","p-overlay-bottom-end":t.modal&&t.overlayResponsiveDirection==="bottom-end","p-overlay-left":t.modal&&t.overlayResponsiveDirection==="left","p-overlay-left-start":t.modal&&t.overlayResponsiveDirection==="left-start","p-overlay-left-end":t.modal&&t.overlayResponsiveDirection==="left-end","p-overlay-right":t.modal&&t.overlayResponsiveDirection==="right","p-overlay-right-start":t.modal&&t.overlayResponsiveDirection==="right-start","p-overlay-right-end":t.modal&&t.overlayResponsiveDirection==="right-end"}],content:"p-overlay-content"},qn=(()=>{class t extends ne{name="overlay";style=Gr;classes=Ur;inlineStyles=$r;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})(),Kn=new H("OVERLAY_INSTANCE"),Qn=(()=>{class t extends me{overlayService;zone;componentName="Overlay";$pcOverlay=b(Kn,{optional:!0,skipSelf:!0})??void 0;hostName="";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return We.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return We.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return We.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return We.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){let e=this._target||this.overlayOptions?.target;return e===void 0?"@prev":e}set target(e){this._target=e}get autoZIndex(){let e=this._autoZIndex||this.overlayOptions?.autoZIndex;return e===void 0?!0:e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){let e=this._baseZIndex||this.overlayOptions?.baseZIndex;return e===void 0?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){let e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return e===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){let e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return e===void 0?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}appendTo=_(void 0);inline=_(!1);motionOptions=_(void 0);computedMotionOptions=j(()=>P(P({},this.ptm("motion")),this.motionOptions()||this.overlayOptions?.motionOptions));visibleChange=new x;onBeforeShow=new x;onShow=new x;onBeforeHide=new x;onHide=new x;onAnimationStart=new x;onAnimationDone=new x;onBeforeEnter=new x;onEnter=new x;onAfterEnter=new x;onBeforeLeave=new x;onLeave=new x;onAfterLeave=new x;overlayViewChild;contentViewChild;contentTemplate;templates;hostAttrSelector=_();$appendTo=j(()=>this.appendTo()||this.config.overlayAppendTo());_contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;_componentStyle=b(qn);bindDirectiveInstance=b(I,{self:!0});documentKeyboardListener;parentDragSubscription=null;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(rt(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.document.defaultView?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return P(P({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return P(P({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Ei(this.target,this.el?.nativeElement)}constructor(e,i){super(),this.overlayService=e,this.zone=i}onAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="content"?this._contentTemplate=e.template:this._contentTemplate=e.template})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}show(e,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&we(this.targetEl),this.modal&&Xe(this.document?.body,"p-overflow-hidden")}hide(e,i=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&we(this.targetEl),this.modal&&st(this.document?.body,"p-overflow-hidden");else return}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}container=W(void 0);onOverlayBeforeEnter(e){this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.container.set(this.overlayEl||e.element),this.show(this.overlayEl,!0),this.hostAttrSelector()&&this.overlayEl&&this.overlayEl.setAttribute(this.hostAttrSelector(),""),this.appendOverlay(),this.alignOverlay(),this.bindParentDragListener(),this.setZIndex(),this.handleEvents("onBeforeEnter",e)}onOverlayEnter(e){this.handleEvents("onEnter",e)}onOverlayAfterEnter(e){this.bindListeners(),this.handleEvents("onAfterEnter",e)}onOverlayBeforeLeave(e){this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.handleEvents("onBeforeLeave",e)}onOverlayLeave(e){this.handleEvents("onLeave",e)}onOverlayAfterLeave(e){this.hide(this.overlayEl,!0),this.container.set(null),this.unbindListeners(),this.appendOverlay(),Et.clear(this.overlayEl),this.modalVisible=!1,this.cd.markForCheck(),this.handleEvents("onAfterLeave",e)}handleEvents(e,i){this[e].emit(i),this.options&&this.options[e]&&this.options[e](i),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](i)}setZIndex(){this.autoZIndex&&Et.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode])}appendOverlay(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?Zt(this.document.body,this.overlayEl):Zt(this.$appendTo(),this.overlayEl))}alignOverlay(){this.modal||this.overlayEl&&this.targetEl&&(this.overlayEl.style.minWidth=Ti(this.targetEl)+"px",this.$appendTo()==="self"?wi(this.overlayEl,this.targetEl):Mi(this.overlayEl,this.targetEl))}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener(),this.unbindParentDragListener()}bindParentDragListener(){!this.parentDragSubscription&&this.$appendTo()!=="self"&&this.targetEl&&(this.parentDragSubscription=this.overlayService.parentDragObservable.subscribe(e=>{e.contains(this.targetEl)&&this.hide(this.overlayEl,!0)}))}unbindParentDragListener(){this.parentDragSubscription&&(this.parentDragSubscription.unsubscribe(),this.parentDragSubscription=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new ji(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{let n=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:e.which!==3&&n}):n)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!Ue()}):!Ue())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.document.defaultView,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!Ue()}):!Ue())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}onDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&this.$appendTo()!=="self"&&(this.renderer.appendChild(this.el.nativeElement,this.overlayEl),Et.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(i){return new(i||t)(q(Tt),q(Ye))};static \u0275cmp=N({type:t,selectors:[["p-overlay"]],contentQueries:function(i,n,r){if(i&1&&Ie(r,Gn,4)(r,Ee,4),i&2){let s;f(s=g())&&(n.contentTemplate=s.first),f(s=g())&&(n.templates=s)}},viewQuery:function(i,n){if(i&1&&Pe(Lr,5)(Gn,5),i&2){let r;f(r=g())&&(n.overlayViewChild=r.first),f(r=g())&&(n.contentViewChild=r.first)}},inputs:{hostName:"hostName",visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options",appendTo:[1,"appendTo"],inline:[1,"inline"],motionOptions:[1,"motionOptions"],hostAttrSelector:[1,"hostAttrSelector"]},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone",onBeforeEnter:"onBeforeEnter",onEnter:"onEnter",onAfterEnter:"onAfterEnter",onBeforeLeave:"onBeforeLeave",onLeave:"onLeave",onAfterLeave:"onAfterLeave"},features:[K([qn,{provide:Kn,useExisting:t},{provide:oe,useExisting:t}]),ee([I]),T],ngContentSelectors:Un,decls:2,vars:1,consts:[["overlay",""],["content",""],[3,"class","style","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","style","pBind","click",4,"ngIf"],[3,"click","pBind"],["name","p-anchored-overlay",3,"onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave","visible","appear","options"]],template:function(i,n){i&1&&(ge(Un),ae(0,Rr,2,5)(1,jr,1,1,"div",2)),i&2&&ce(n.inline()?0:1)},dependencies:[se,Ae,Ce,U,I,$n,ai],encapsulation:2,changeDetection:0})}return t})();var Zn=["content"],qr=["item"],Kr=["loader"],Wr=["loadericon"],Qr=["element"],Zr=["*"],ci=(t,o)=>({$implicit:t,options:o}),Yr=t=>({numCols:t}),Jn=t=>({options:t}),Xr=()=>({styleClass:"p-virtualscroller-loading-icon"}),Jr=(t,o)=>({rows:t,columns:o});function es(t,o){t&1&&R(0)}function ts(t,o){if(t&1&&(O(0),u(1,es,1,0,"ng-container",10),D()),t&2){let e=a(2);c(),l("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Te(2,ci,e.loadedItems,e.getContentOptions()))}}function is(t,o){t&1&&R(0)}function ns(t,o){if(t&1&&(O(0),u(1,is,1,0,"ng-container",10),D()),t&2){let e=o.$implicit,i=o.index,n=a(3);c(),l("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",Te(2,ci,e,n.getOptions(i)))}}function os(t,o){if(t&1&&(m(0,"div",11,3),u(2,ns,2,5,"ng-container",12),y()),t&2){let e=a(2);Me(e.contentStyle),h(e.cn(e.cx("content"),e.contentStyleClass)),l("pBind",e.ptm("content")),c(2),l("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy)}}function rs(t,o){if(t&1&&te(0,"div",13),t&2){let e=a(2);h(e.cx("spacer")),l("ngStyle",e.spacerStyle)("pBind",e.ptm("spacer"))}}function ss(t,o){t&1&&R(0)}function ls(t,o){if(t&1&&(O(0),u(1,ss,1,0,"ng-container",10),D()),t&2){let e=o.index,i=a(4);c(),l("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",Q(4,Jn,i.getLoaderOptions(e,i.both&&Q(2,Yr,i.numItemsInViewport.cols))))}}function as(t,o){if(t&1&&(O(0),u(1,ls,2,6,"ng-container",14),D()),t&2){let e=a(3);c(),l("ngForOf",e.loaderArr)}}function cs(t,o){t&1&&R(0)}function ds(t,o){if(t&1&&(O(0),u(1,cs,1,0,"ng-container",10),D()),t&2){let e=a(4);c(),l("ngTemplateOutlet",e.loaderIconTemplate||e._loaderIconTemplate)("ngTemplateOutletContext",Q(3,Jn,je(2,Xr)))}}function us(t,o){if(t&1&&(Y(),te(0,"svg",15)),t&2){let e=a(4);h(e.cx("loadingIcon")),l("spin",!0)("pBind",e.ptm("loadingIcon"))}}function ps(t,o){if(t&1&&u(0,ds,2,5,"ng-container",6)(1,us,1,4,"ng-template",null,5,de),t&2){let e=Se(2),i=a(3);l("ngIf",i.loaderIconTemplate||i._loaderIconTemplate)("ngIfElse",e)}}function hs(t,o){if(t&1&&(m(0,"div",11),u(1,as,2,1,"ng-container",6)(2,ps,3,2,"ng-template",null,4,de),y()),t&2){let e=Se(3),i=a(2);h(i.cx("loader")),l("pBind",i.ptm("loader")),c(),l("ngIf",i.loaderTemplate||i._loaderTemplate)("ngIfElse",e)}}function ms(t,o){if(t&1){let e=ie();O(0),m(1,"div",7,1),E("scroll",function(n){F(e);let r=a();return A(r.onContainerScroll(n))}),u(3,ts,2,5,"ng-container",6)(4,os,3,7,"ng-template",null,2,de)(6,rs,1,4,"div",8)(7,hs,4,5,"div",9),y(),D()}if(t&2){let e=Se(5),i=a();c(),h(i.cn(i.cx("root"),i.styleClass)),l("ngStyle",i._style)("pBind",i.ptm("root")),w("id",i._id)("tabindex",i.tabindex),c(2),l("ngIf",i.contentTemplate||i._contentTemplate)("ngIfElse",e),c(3),l("ngIf",i._showSpacer),c(),l("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function fs(t,o){t&1&&R(0)}function gs(t,o){if(t&1&&(O(0),u(1,fs,1,0,"ng-container",10),D()),t&2){let e=a(2);c(),l("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Te(5,ci,e.items,Te(2,Jr,e._items,e.loadedColumns)))}}function _s(t,o){if(t&1&&(he(0),u(1,gs,2,8,"ng-container",16)),t&2){let e=a();c(),l("ngIf",e.contentTemplate||e._contentTemplate)}}var vs=`
|
|
371
|
-
.p-virtualscroller {
|
|
372
|
-
position: relative;
|
|
373
|
-
overflow: auto;
|
|
374
|
-
contain: strict;
|
|
375
|
-
transform: translateZ(0);
|
|
376
|
-
will-change: scroll-position;
|
|
377
|
-
outline: 0 none;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
.p-virtualscroller-content {
|
|
381
|
-
position: absolute;
|
|
382
|
-
top: 0;
|
|
383
|
-
left: 0;
|
|
384
|
-
min-height: 100%;
|
|
385
|
-
min-width: 100%;
|
|
386
|
-
will-change: transform;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.p-virtualscroller-spacer {
|
|
390
|
-
position: absolute;
|
|
391
|
-
top: 0;
|
|
392
|
-
left: 0;
|
|
393
|
-
height: 1px;
|
|
394
|
-
width: 1px;
|
|
395
|
-
transform-origin: 0 0;
|
|
396
|
-
pointer-events: none;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.p-virtualscroller-loader {
|
|
400
|
-
position: sticky;
|
|
401
|
-
top: 0;
|
|
402
|
-
left: 0;
|
|
403
|
-
width: 100%;
|
|
404
|
-
height: 100%;
|
|
405
|
-
background: dt('virtualscroller.loader.mask.background');
|
|
406
|
-
color: dt('virtualscroller.loader.mask.color');
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
.p-virtualscroller-loader-mask {
|
|
410
|
-
display: flex;
|
|
411
|
-
align-items: center;
|
|
412
|
-
justify-content: center;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.p-virtualscroller-loading-icon {
|
|
416
|
-
font-size: dt('virtualscroller.loader.icon.size');
|
|
417
|
-
width: dt('virtualscroller.loader.icon.size');
|
|
418
|
-
height: dt('virtualscroller.loader.icon.size');
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.p-virtualscroller-horizontal > .p-virtualscroller-content {
|
|
422
|
-
display: flex;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.p-virtualscroller-inline .p-virtualscroller-content {
|
|
426
|
-
position: static;
|
|
427
|
-
}
|
|
428
|
-
`,ys={root:({instance:t})=>["p-virtualscroller",{"p-virtualscroller-inline":t.inline,"p-virtualscroller-both p-both-scroll":t.both,"p-virtualscroller-horizontal p-horizontal-scroll":t.horizontal}],content:"p-virtualscroller-content",spacer:"p-virtualscroller-spacer",loader:({instance:t})=>["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!t.loaderTemplate}],loadingIcon:"p-virtualscroller-loading-icon"},Yn=(()=>{class t extends ne{name="virtualscroller";css=vs;classes=ys;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})();var Xn=new H("SCROLLER_INSTANCE"),di=(()=>{class t extends me{zone;componentName="VirtualScroller";bindDirectiveInstance=b(I,{self:!0});$pcScroller=b(Xn,{optional:!0,skipSelf:!0})??void 0;hostName="";get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&(Object.entries(e).forEach(([i,n])=>this[`_${i}`]!==n&&(this[`_${i}`]=n)),Object.entries(e).forEach(([i,n])=>this[`${i}`]!==n&&(this[`${i}`]=n)))}onLazyLoad=new x;onScroll=new x;onScrollIndexChange=new x;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(e){this._contentStyleClass=e}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:Array.isArray(e)?e.slice(this._appendOnly?0:this.first.cols,this.last.cols):e):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=b(Yn);constructor(e){super(),this.zone=e}onInit(){this.setInitialState()}onChanges(e){let i=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),e.loading){let{previousValue:n,currentValue:r}=e.loading;this.lazy&&n!==r&&r!==this.d_loading&&(this.d_loading=r,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:n,currentValue:r}=e.numToleratedItems;n!==r&&r!==this.d_numToleratedItems&&(this.d_numToleratedItems=r)}if(e.options){let{previousValue:n,currentValue:r}=e.options;this.lazy&&n?.loading!==r?.loading&&r?.loading!==this.d_loading&&(this.d_loading=r.loading,i=!0),n?.numToleratedItems!==r?.numToleratedItems&&r?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=r.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&this.init()}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"loadericon":this._loaderIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host")),this.initialized||this.viewInit()}onDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){rt(this.platformId)&&!this.initialized&&Yt(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=Ge(this.elementViewChild?.nativeElement),this.defaultHeight=$e(this.elementViewChild?.nativeElement),this.defaultContentWidth=Ge(this.contentEl),this.defaultContentHeight=$e(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.bindResizeListener(),setTimeout(()=>{this.setSpacerSize(),this.setSize(),this.calculateOptions(),this.calculateAutoSize(),this.cd.detectChanges()},1))}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||Je(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,(this.d_loading===void 0||this.d_loading===!1)&&(this.d_loading=this._loading||!1),this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=this.loaderArr.length>0?this.loaderArr:[]}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){if(this.both?e.every(r=>r>-1):e>-1){let r=this.first,{scrollTop:s=0,scrollLeft:d=0}=this.elementViewChild?.nativeElement,{numToleratedItems:p}=this.calculateNumItems(),C=this.getContentPosition(),v=this.itemSize,B=(k=0,z)=>k<=z?0:k,L=(k,z,ue)=>k*z+ue,$=(k=0,z=0)=>this.scrollTo({left:k,top:z,behavior:i}),G=this.both?{rows:0,cols:0}:0,re=!1,V=!1;this.both?(G={rows:B(e[0],p[0]),cols:B(e[1],p[1])},$(L(G.cols,v[1],C.left),L(G.rows,v[0],C.top)),V=this.lastScrollPos.top!==s||this.lastScrollPos.left!==d,re=G.rows!==r.rows||G.cols!==r.cols):(G=B(e,p),this.horizontal?$(L(G,v,C.left),s):$(d,L(G,v,C.top)),V=this.lastScrollPos!==(this.horizontal?d:s),re=G!==r),this.isRangeChanged=re,V&&(this.first=G)}}scrollInView(e,i,n="auto"){if(i){let{first:r,viewport:s}=this.getRenderedRange(),d=(v=0,B=0)=>this.scrollTo({left:v,top:B,behavior:n}),p=i==="to-start",C=i==="to-end";if(p){if(this.both)s.first.rows-r.rows>e[0]?d(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-r.cols>e[1]&&d((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-r>e){let v=(s.first-1)*this._itemSize;this.horizontal?d(v,0):d(0,v)}}else if(C){if(this.both)s.last.rows-r.rows<=e[0]+1?d(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-r.cols<=e[1]+1&&d((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-r<=e+1){let v=(s.first+1)*this._itemSize;this.horizontal?d(v,0):d(0,v)}}}else this.scrollToIndex(e,n)}getRenderedRange(){let e=(r,s)=>s||r?Math.floor(r/(s||r)):0,i=this.first,n=0;if(this.elementViewChild?.nativeElement){let{scrollTop:r,scrollLeft:s}=this.elementViewChild.nativeElement;if(this.both)i={rows:e(r,this._itemSize[0]),cols:e(s,this._itemSize[1])},n={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols};else{let d=this.horizontal?s:r;i=e(d,this._itemSize),n=i+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:i,last:n}}}calculateNumItems(){let e=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,r=(C,v)=>v||C?Math.ceil(C/(v||C)):0,s=C=>Math.ceil(C/2),d=this.both?{rows:r(n,this._itemSize[0]),cols:r(i,this._itemSize[1])}:r(this.horizontal?i:n,this._itemSize),p=this.d_numToleratedItems||(this.both?[s(d.rows),s(d.cols)]:s(d));return{numItemsInViewport:d,numToleratedItems:p}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),n=(d,p,C,v=!1)=>this.getLast(d+p+(d<C?2:3)*C,v),r=this.first,s=this.both?{rows:n(this.first.rows,e.rows,i[0]),cols:n(this.first.cols,e.cols,i[1],!0)}:n(this.first,e,i);this.last=s,this.numItemsInViewport=e,this.d_numToleratedItems=i,this._showLoader&&(this.loaderArr=this.both?Array.from({length:e.rows}).map(()=>Array.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:r.cols}:0:r,last:Math.min(this._step?this._step:this.last,this._items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,i]=[Ge(this.contentEl),$e(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[n,r]=[Ge(this.elementViewChild.nativeElement),$e(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=n<this.defaultWidth?n+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=r<this.defaultHeight?r+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(e=0,i=!1){return this._items?Math.min(i?(this._columns||this._items[0]).length:this._items.length,e):0}getContentPosition(){if(this.contentEl){let e=getComputedStyle(this.contentEl),i=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),n=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),r=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),s=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:i,right:n,top:r,bottom:s,x:i+n,y:r+s}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let e=this.elementViewChild.nativeElement,i=e.parentElement?.parentElement,n=e.offsetWidth,r=i?.offsetWidth||0,s=this._scrollWidth||`${n||r}px`,d=e.offsetHeight,p=i?.offsetHeight||0,C=this._scrollHeight||`${d||p}px`,v=(B,L)=>e.style[B]=L;this.both||this.horizontal?(v("height",C),v("width",s)):v("height",C)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),i=(n,r,s,d=0)=>this.spacerStyle=pe(P({},this.spacerStyle),{[`${n}`]:(r||[]).length*s+d+"px"});this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let i=e?e.first:this.first,n=(s,d)=>s*d,r=(s=0,d=0)=>this.contentStyle=pe(P({},this.contentStyle),{transform:`translate3d(${s}px, ${d}px, 0)`});if(this.both)r(n(i.cols,this._itemSize[1]),n(i.rows,this._itemSize[0]));else{let s=n(i,this._itemSize);this.horizontal?r(s,0):r(0,s)}}}onScrollPositionChange(e){let i=e.target;if(!i)throw new Error("Event target is null");let n=this.getContentPosition(),r=(V,k)=>V?V>k?V-k:V:0,s=(V,k)=>k||V?Math.floor(V/(k||V)):0,d=(V,k,z,ue,ve,xe)=>V<=ve?ve:xe?z-ue-ve:k+ve-1,p=(V,k,z,ue,ve,xe,Ze)=>V<=xe?0:Math.max(0,Ze?V<k?z:V-xe:V>k?z:V-2*xe),C=(V,k,z,ue,ve,xe=!1)=>{let Ze=k+ue+2*ve;return V>=ve&&(Ze+=ve+1),this.getLast(Ze,xe)},v=r(i.scrollTop,n.top),B=r(i.scrollLeft,n.left),L=this.both?{rows:0,cols:0}:0,$=this.last,G=!1,re=this.lastScrollPos;if(this.both){let V=this.lastScrollPos.top<=v,k=this.lastScrollPos.left<=B;if(!this._appendOnly||this._appendOnly&&(V||k)){let z={rows:s(v,this._itemSize[0]),cols:s(B,this._itemSize[1])},ue={rows:d(z.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],V),cols:d(z.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],k)};L={rows:p(z.rows,ue.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],V),cols:p(z.cols,ue.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],k)},$={rows:C(z.rows,L.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:C(z.cols,L.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},G=L.rows!==this.first.rows||$.rows!==this.last.rows||L.cols!==this.first.cols||$.cols!==this.last.cols||this.isRangeChanged,re={top:v,left:B}}}else{let V=this.horizontal?B:v,k=this.lastScrollPos<=V;if(!this._appendOnly||this._appendOnly&&k){let z=s(V,this._itemSize),ue=d(z,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k);L=p(z,ue,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k),$=C(z,L,this.last,this.numItemsInViewport,this.d_numToleratedItems),G=L!==this.first||$!==this.last||this.isRangeChanged,re=V}}return{first:L,last:$,isRangeChanged:G,scrollPos:re}}onScrollChange(e){let{first:i,last:n,isRangeChanged:r,scrollPos:s}=this.onScrollPositionChange(e);if(r){let d={first:i,last:n};if(this.setContentPosition(d),this.first=i,this.last=n,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",d),this._lazy&&this.isPageChanged(i)){let p={first:this._step?Math.min(this.getPageByFirst(i)*this._step,this._items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst(i)+1)*this._step:n,this._items.length)};(this.lazyLoadState.first!==p.first||this.lazyLoadState.last!==p.last)&&this.handleEvents("onLazyLoad",p),this.lazyLoadState=p}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this._showLoader){let{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this._showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){rt(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,i=Ue()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,i,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Yt(this.elementViewChild?.nativeElement)){let[e,i]=[Ge(this.elementViewChild?.nativeElement),$e(this.elementViewChild?.nativeElement)],[n,r]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?n||r:this.horizontal?n:this.vertical&&r)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.defaultContentWidth=Ge(this.contentEl),this.defaultContentHeight=$e(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both,scrollTo:this.scrollTo.bind(this),scrollToIndex:this.scrollToIndex.bind(this),orientation:this._orientation,scrollableElement:this.elementViewChild?.nativeElement}}getOptions(e){let i=(this._items||[]).length,n=this.both?this.first.rows+e:this.first+e;return{index:n,count:i,first:n===0,last:n===i-1,even:n%2===0,odd:n%2!==0}}getLoaderOptions(e,i){let n=this.loaderArr.length;return P({index:e,count:n,first:e===0,last:e===n-1,even:e%2===0,odd:e%2!==0,loading:this.d_loading},i)}static \u0275fac=function(i){return new(i||t)(q(Ye))};static \u0275cmp=N({type:t,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(i,n,r){if(i&1&&Ie(r,Zn,4)(r,qr,4)(r,Kr,4)(r,Wr,4)(r,Ee,4),i&2){let s;f(s=g())&&(n.contentTemplate=s.first),f(s=g())&&(n.itemTemplate=s.first),f(s=g())&&(n.loaderTemplate=s.first),f(s=g())&&(n.loaderIconTemplate=s.first),f(s=g())&&(n.templates=s)}},viewQuery:function(i,n){if(i&1&&Pe(Qr,5)(Zn,5),i&2){let r;f(r=g())&&(n.elementViewChild=r.first),f(r=g())&&(n.contentViewChild=r.first)}},hostVars:2,hostBindings:function(i,n){i&2&&ot("height",n.height)},inputs:{hostName:"hostName",id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[K([Yn,{provide:Xn,useExisting:t},{provide:oe,useExisting:t}]),ee([I]),T],ngContentSelectors:Zr,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","pBind"],[4,"ngFor","ngForOf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngIf"]],template:function(i,n){if(i&1&&(ge(),u(0,ms,8,10,"ng-container",6)(1,_s,2,1,"ng-template",null,0,de)),i&2){let r=Se(2);l("ngIf",!n._disabled)("ngIfElse",r)}},dependencies:[se,xt,Ae,Ce,It,Gi,U,I],encapsulation:2})}return t})(),Wu=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({imports:[di,U,U]})}return t})();var eo=`
|
|
429
|
-
.p-multiselect {
|
|
430
|
-
display: inline-flex;
|
|
431
|
-
cursor: pointer;
|
|
432
|
-
position: relative;
|
|
433
|
-
user-select: none;
|
|
434
|
-
background: dt('multiselect.background');
|
|
435
|
-
border: 1px solid dt('multiselect.border.color');
|
|
436
|
-
transition:
|
|
437
|
-
background dt('multiselect.transition.duration'),
|
|
438
|
-
color dt('multiselect.transition.duration'),
|
|
439
|
-
border-color dt('multiselect.transition.duration'),
|
|
440
|
-
outline-color dt('multiselect.transition.duration'),
|
|
441
|
-
box-shadow dt('multiselect.transition.duration');
|
|
442
|
-
border-radius: dt('multiselect.border.radius');
|
|
443
|
-
outline-color: transparent;
|
|
444
|
-
box-shadow: dt('multiselect.shadow');
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
.p-multiselect:not(.p-disabled):hover {
|
|
448
|
-
border-color: dt('multiselect.hover.border.color');
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
.p-multiselect:not(.p-disabled).p-focus {
|
|
452
|
-
border-color: dt('multiselect.focus.border.color');
|
|
453
|
-
box-shadow: dt('multiselect.focus.ring.shadow');
|
|
454
|
-
outline: dt('multiselect.focus.ring.width') dt('multiselect.focus.ring.style') dt('multiselect.focus.ring.color');
|
|
455
|
-
outline-offset: dt('multiselect.focus.ring.offset');
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
.p-multiselect.p-variant-filled {
|
|
459
|
-
background: dt('multiselect.filled.background');
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.p-multiselect.p-variant-filled:not(.p-disabled):hover {
|
|
463
|
-
background: dt('multiselect.filled.hover.background');
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
.p-multiselect.p-variant-filled.p-focus {
|
|
467
|
-
background: dt('multiselect.filled.focus.background');
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.p-multiselect.p-invalid {
|
|
471
|
-
border-color: dt('multiselect.invalid.border.color');
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
.p-multiselect.p-disabled {
|
|
475
|
-
opacity: 1;
|
|
476
|
-
background: dt('multiselect.disabled.background');
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.p-multiselect-dropdown {
|
|
480
|
-
display: flex;
|
|
481
|
-
align-items: center;
|
|
482
|
-
justify-content: center;
|
|
483
|
-
flex-shrink: 0;
|
|
484
|
-
background: transparent;
|
|
485
|
-
color: dt('multiselect.dropdown.color');
|
|
486
|
-
width: dt('multiselect.dropdown.width');
|
|
487
|
-
border-start-end-radius: dt('multiselect.border.radius');
|
|
488
|
-
border-end-end-radius: dt('multiselect.border.radius');
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.p-multiselect-clear-icon {
|
|
492
|
-
align-self: center;
|
|
493
|
-
color: dt('multiselect.clear.icon.color');
|
|
494
|
-
inset-inline-end: dt('multiselect.dropdown.width');
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
.p-multiselect-label-container {
|
|
498
|
-
overflow: hidden;
|
|
499
|
-
flex: 1 1 auto;
|
|
500
|
-
cursor: pointer;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
.p-multiselect-label {
|
|
504
|
-
white-space: nowrap;
|
|
505
|
-
cursor: pointer;
|
|
506
|
-
overflow: hidden;
|
|
507
|
-
text-overflow: ellipsis;
|
|
508
|
-
padding: dt('multiselect.padding.y') dt('multiselect.padding.x');
|
|
509
|
-
color: dt('multiselect.color');
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
.p-multiselect-display-chip .p-multiselect-label {
|
|
513
|
-
display: flex;
|
|
514
|
-
align-items: center;
|
|
515
|
-
gap: calc(dt('multiselect.padding.y') / 2);
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
.p-multiselect-label.p-placeholder {
|
|
519
|
-
color: dt('multiselect.placeholder.color');
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.p-multiselect.p-invalid .p-multiselect-label.p-placeholder {
|
|
523
|
-
color: dt('multiselect.invalid.placeholder.color');
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
.p-multiselect.p-disabled .p-multiselect-label {
|
|
527
|
-
color: dt('multiselect.disabled.color');
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
.p-multiselect-label-empty {
|
|
531
|
-
overflow: hidden;
|
|
532
|
-
visibility: hidden;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
.p-multiselect-overlay {
|
|
536
|
-
position: absolute;
|
|
537
|
-
top: 0;
|
|
538
|
-
left: 0;
|
|
539
|
-
background: dt('multiselect.overlay.background');
|
|
540
|
-
color: dt('multiselect.overlay.color');
|
|
541
|
-
border: 1px solid dt('multiselect.overlay.border.color');
|
|
542
|
-
border-radius: dt('multiselect.overlay.border.radius');
|
|
543
|
-
box-shadow: dt('multiselect.overlay.shadow');
|
|
544
|
-
min-width: 100%;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
.p-multiselect-header {
|
|
548
|
-
display: flex;
|
|
549
|
-
align-items: center;
|
|
550
|
-
padding: dt('multiselect.list.header.padding');
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
.p-multiselect-header .p-checkbox {
|
|
554
|
-
margin-inline-end: dt('multiselect.option.gap');
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
.p-multiselect-filter-container {
|
|
558
|
-
flex: 1 1 auto;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
.p-multiselect-filter {
|
|
562
|
-
width: 100%;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
.p-multiselect-list-container {
|
|
566
|
-
overflow: auto;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
.p-multiselect-list {
|
|
570
|
-
margin: 0;
|
|
571
|
-
padding: 0;
|
|
572
|
-
list-style-type: none;
|
|
573
|
-
padding: dt('multiselect.list.padding');
|
|
574
|
-
display: flex;
|
|
575
|
-
flex-direction: column;
|
|
576
|
-
gap: dt('multiselect.list.gap');
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
.p-multiselect-option {
|
|
580
|
-
cursor: pointer;
|
|
581
|
-
font-weight: normal;
|
|
582
|
-
white-space: nowrap;
|
|
583
|
-
position: relative;
|
|
584
|
-
overflow: hidden;
|
|
585
|
-
display: flex;
|
|
586
|
-
align-items: center;
|
|
587
|
-
gap: dt('multiselect.option.gap');
|
|
588
|
-
padding: dt('multiselect.option.padding');
|
|
589
|
-
border: 0 none;
|
|
590
|
-
color: dt('multiselect.option.color');
|
|
591
|
-
background: transparent;
|
|
592
|
-
transition:
|
|
593
|
-
background dt('multiselect.transition.duration'),
|
|
594
|
-
color dt('multiselect.transition.duration'),
|
|
595
|
-
border-color dt('multiselect.transition.duration'),
|
|
596
|
-
box-shadow dt('multiselect.transition.duration'),
|
|
597
|
-
outline-color dt('multiselect.transition.duration');
|
|
598
|
-
border-radius: dt('multiselect.option.border.radius');
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {
|
|
602
|
-
background: dt('multiselect.option.focus.background');
|
|
603
|
-
color: dt('multiselect.option.focus.color');
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled):hover {
|
|
607
|
-
background: dt('multiselect.option.focus.background');
|
|
608
|
-
color: dt('multiselect.option.focus.color');
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
.p-multiselect-option.p-multiselect-option-selected {
|
|
612
|
-
background: dt('multiselect.option.selected.background');
|
|
613
|
-
color: dt('multiselect.option.selected.color');
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
.p-multiselect-option.p-multiselect-option-selected.p-focus {
|
|
617
|
-
background: dt('multiselect.option.selected.focus.background');
|
|
618
|
-
color: dt('multiselect.option.selected.focus.color');
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
.p-multiselect-option-group {
|
|
622
|
-
cursor: auto;
|
|
623
|
-
margin: 0;
|
|
624
|
-
padding: dt('multiselect.option.group.padding');
|
|
625
|
-
background: dt('multiselect.option.group.background');
|
|
626
|
-
color: dt('multiselect.option.group.color');
|
|
627
|
-
font-weight: dt('multiselect.option.group.font.weight');
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
.p-multiselect-empty-message {
|
|
631
|
-
padding: dt('multiselect.empty.message.padding');
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
.p-multiselect-label .p-chip {
|
|
635
|
-
padding-block-start: calc(dt('multiselect.padding.y') / 2);
|
|
636
|
-
padding-block-end: calc(dt('multiselect.padding.y') / 2);
|
|
637
|
-
border-radius: dt('multiselect.chip.border.radius');
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
.p-multiselect-label:has(.p-chip) {
|
|
641
|
-
padding: calc(dt('multiselect.padding.y') / 2) calc(dt('multiselect.padding.x') / 2);
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
.p-multiselect-fluid {
|
|
645
|
-
display: flex;
|
|
646
|
-
width: 100%;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
.p-multiselect-sm .p-multiselect-label {
|
|
650
|
-
font-size: dt('multiselect.sm.font.size');
|
|
651
|
-
padding-block: dt('multiselect.sm.padding.y');
|
|
652
|
-
padding-inline: dt('multiselect.sm.padding.x');
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
.p-multiselect-sm .p-multiselect-dropdown .p-icon {
|
|
656
|
-
font-size: dt('multiselect.sm.font.size');
|
|
657
|
-
width: dt('multiselect.sm.font.size');
|
|
658
|
-
height: dt('multiselect.sm.font.size');
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
.p-multiselect-lg .p-multiselect-label {
|
|
662
|
-
font-size: dt('multiselect.lg.font.size');
|
|
663
|
-
padding-block: dt('multiselect.lg.padding.y');
|
|
664
|
-
padding-inline: dt('multiselect.lg.padding.x');
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
.p-multiselect-lg .p-multiselect-dropdown .p-icon {
|
|
668
|
-
font-size: dt('multiselect.lg.font.size');
|
|
669
|
-
width: dt('multiselect.lg.font.size');
|
|
670
|
-
height: dt('multiselect.lg.font.size');
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
.p-floatlabel-in .p-multiselect-filter {
|
|
674
|
-
padding-block-start: dt('multiselect.padding.y');
|
|
675
|
-
padding-block-end: dt('multiselect.padding.y');
|
|
676
|
-
}
|
|
677
|
-
`;var bs=["pMultiSelectItem",""],io=t=>({$implicit:t}),Cs=(t,o)=>({checked:t,class:o});function xs(t,o){}function Is(t,o){t&1&&u(0,xs,0,0,"ng-template")}function Ss(t,o){if(t&1&&u(0,Is,1,0,null,3),t&2){let e=o.class,i=a(2);l("ngTemplateOutlet",i.itemCheckboxIconTemplate)("ngTemplateOutletContext",Te(2,Cs,i.selected,e))}}function Ms(t,o){t&1&&(O(0),u(1,Ss,1,5,"ng-template",null,0,de),D())}function Ts(t,o){if(t&1&&(m(0,"span"),be(1),y()),t&2){let e=a();c(),Re(e.label??"empty")}}function ws(t,o){t&1&&R(0)}var Es=["item"],Vs=["group"],Os=["loader"],Ds=["header"],ks=["filter"],Fs=["footer"],As=["emptyfilter"],Ls=["empty"],Ns=["selecteditems"],Bs=["loadingicon"],Ps=["filtericon"],Rs=["removetokenicon"],zs=["chipicon"],Hs=["clearicon"],js=["dropdownicon"],$s=["itemcheckboxicon"],Gs=["headercheckboxicon"],Us=["overlay"],qs=["filterInput"],Ks=["focusInput"],Ws=["items"],Qs=["scroller"],Zs=["lastHiddenFocusableEl"],Ys=["firstHiddenFocusableEl"],Xs=["headerCheckbox"],Js=[[["p-header"]],[["p-footer"]]],el=["p-header","p-footer"],tl=()=>({class:"p-multiselect-chip-icon"}),il=(t,o)=>({$implicit:t,removeChip:o}),nl=t=>({dataP:t}),no=t=>({options:t}),ol=(t,o,e)=>({checked:t,partialSelected:o,class:e}),jt=t=>({height:t}),oo=(t,o)=>({$implicit:t,options:o}),rl=()=>({});function sl(t,o){if(t&1&&(O(0),be(1),D()),t&2){let e=a(2);c(),Re(e.label()||"empty")}}function ll(t,o){if(t&1&&be(0),t&2){let e=a(3);yt(" ",e.getSelectedItemsLabel()," ")}}function al(t,o){t&1&&R(0)}function cl(t,o){if(t&1){let e=ie();m(0,"span",27),E("click",function(n){F(e);let r=a(4).$implicit,s=a(4);return A(s.removeOption(r,n))}),u(1,al,1,0,"ng-container",28),y()}if(t&2){let e=a(8);h(e.cx("chipIcon")),l("pBind",e.ptm("chipIcon")),w("aria-hidden",!0),c(),l("ngTemplateOutlet",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)("ngTemplateOutletContext",je(6,tl))}}function dl(t,o){if(t&1&&(O(0),u(1,cl,2,7,"span",26),D()),t&2){let e=a(7);c(),l("ngIf",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)}}function ul(t,o){if(t&1&&u(0,dl,2,1,"ng-container",20),t&2){let e=a(6);l("ngIf",!e.$disabled()&&!e.readonly)}}function pl(t,o){t&1&&(O(0),u(1,ul,1,1,"ng-template",null,5,de),D())}function hl(t,o){if(t&1){let e=ie();m(0,"div",19,4)(2,"p-chip",25),E("onRemove",function(n){let r=F(e).$implicit,s=a(4);return A(s.removeOption(r,n))}),u(3,pl,3,0,"ng-container",20),y()()}if(t&2){let e=o.$implicit,i=a(4);h(i.cx("chipItem")),l("pBind",i.ptm("chipItem")),c(2),h(i.cx("pcChip")),l("pt",i.ptm("pcChip"))("unstyled",i.unstyled())("label",i.getLabelByValue(e))("removable",!i.$disabled()&&!i.readonly)("removeIcon",i.chipIcon),c(),l("ngIf",i.chipIconTemplate||i._chipIconTemplate||i.removeTokenIconTemplate||i._removeTokenIconTemplate)}}function ml(t,o){if(t&1&&u(0,hl,4,11,"div",24),t&2){let e=a(3);l("ngForOf",e.chipSelectedItems())}}function fl(t,o){if(t&1&&(O(0),be(1),D()),t&2){let e=a(3);c(),Re(e.placeholder()||"empty")}}function gl(t,o){if(t&1&&(O(0),ae(1,ll,1,1)(2,ml,1,1,"div",23),u(3,fl,2,1,"ng-container",20),D()),t&2){let e=a(2);c(),ce(e.chipSelectedItems()&&e.chipSelectedItems().length===e.maxSelectedLabels?1:2),c(2),l("ngIf",!e.modelValue()||e.modelValue().length===0)}}function _l(t,o){if(t&1&&(O(0),u(1,sl,2,1,"ng-container",20)(2,gl,4,2,"ng-container",20),D()),t&2){let e=a();c(),l("ngIf",e.display==="comma"),c(),l("ngIf",e.display==="chip")}}function vl(t,o){t&1&&R(0)}function yl(t,o){if(t&1&&(O(0),be(1),D()),t&2){let e=a(2);c(),Re(e.placeholder()||"empty")}}function bl(t,o){if(t&1&&(O(0),u(1,vl,1,0,"ng-container",28)(2,yl,2,1,"ng-container",20),D()),t&2){let e=a();c(),l("ngTemplateOutlet",e.selectedItemsTemplate||e._selectedItemsTemplate)("ngTemplateOutletContext",Te(3,il,e.selectedOptions,e.removeOption.bind(e))),c(),l("ngIf",!e.modelValue()||e.modelValue().length===0)}}function Cl(t,o){if(t&1){let e=ie();Y(),m(0,"svg",31),E("click",function(n){F(e);let r=a(2);return A(r.clear(n))}),y()}if(t&2){let e=a(2);h(e.cx("clearIcon")),l("pBind",e.ptm("clearIcon")),w("aria-hidden",!0)}}function xl(t,o){}function Il(t,o){t&1&&u(0,xl,0,0,"ng-template")}function Sl(t,o){if(t&1){let e=ie();m(0,"span",27),E("click",function(n){F(e);let r=a(2);return A(r.clear(n))}),u(1,Il,1,0,null,32),y()}if(t&2){let e=a(2);h(e.cx("clearIcon")),l("pBind",e.ptm("clearIcon")),w("aria-hidden",!0),c(),l("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function Ml(t,o){if(t&1&&(O(0),u(1,Cl,1,4,"svg",29)(2,Sl,2,5,"span",30),D()),t&2){let e=a();c(),l("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),l("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function Tl(t,o){t&1&&R(0)}function wl(t,o){if(t&1&&(O(0),u(1,Tl,1,0,"ng-container",32),D()),t&2){let e=a(2);c(),l("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function El(t,o){if(t&1&&te(0,"span",19),t&2){let e=a(3);h(e.cn(e.cx("loadingIcon"),"pi-spin "+e.loadingIcon)),l("pBind",e.ptm("loadingIcon")),w("aria-hidden",!0)}}function Vl(t,o){if(t&1&&te(0,"span",19),t&2){let e=a(3);h(e.cn(e.cx("loadingIcon"),"pi pi-spinner pi-spin")),l("pBind",e.ptm("loadingIcon")),w("aria-hidden",!0)}}function Ol(t,o){if(t&1&&(O(0),u(1,El,1,4,"span",33)(2,Vl,1,4,"span",33),D()),t&2){let e=a(2);c(),l("ngIf",e.loadingIcon),c(),l("ngIf",!e.loadingIcon)}}function Dl(t,o){if(t&1&&(O(0),u(1,wl,2,1,"ng-container",20)(2,Ol,3,2,"ng-container",20),D()),t&2){let e=a();c(),l("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),l("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function kl(t,o){if(t&1&&te(0,"span",36),t&2){let e=a(3);h(e.cx("dropdownIcon")),l("pBind",e.ptm("dropdownIcon"))("ngClass",e.dropdownIcon),w("aria-hidden",!0)("data-p",e.dropdownIconDataP)}}function Fl(t,o){if(t&1&&(Y(),te(0,"svg",37)),t&2){let e=a(3);h(e.cx("dropdownIcon")),l("pBind",e.ptm("dropdownIcon")),w("aria-hidden",!0)("data-p",e.dropdownIconDataP)}}function Al(t,o){if(t&1&&(O(0),u(1,kl,1,6,"span",34)(2,Fl,1,5,"svg",35),D()),t&2){let e=a(2);c(),l("ngIf",e.dropdownIcon),c(),l("ngIf",!e.dropdownIcon)}}function Ll(t,o){}function Nl(t,o){t&1&&u(0,Ll,0,0,"ng-template")}function Bl(t,o){if(t&1&&(m(0,"span",19),u(1,Nl,1,0,null,28),y()),t&2){let e=a(2);h(e.cx("dropdownIcon")),l("pBind",e.ptm("dropdownIcon")),w("aria-hidden",!0),c(),l("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",Q(6,nl,e.dropdownIconDataP))}}function Pl(t,o){if(t&1&&u(0,Al,3,2,"ng-container",20)(1,Bl,2,8,"span",33),t&2){let e=a();l("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),c(),l("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Rl(t,o){t&1&&R(0)}function zl(t,o){t&1&&R(0)}function Hl(t,o){if(t&1&&(O(0),u(1,zl,1,0,"ng-container",28),D()),t&2){let e=a(3);c(),l("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",Q(2,no,e.filterOptions))}}function jl(t,o){if(t&1&&(Y(),te(0,"svg",45)),t&2){let e=a().class,i=a(5);h(e),l("pBind",i.getHeaderCheckboxPTOptions("pcHeaderCheckbox.icon"))}}function $l(t,o){}function Gl(t,o){t&1&&u(0,$l,0,0,"ng-template")}function Ul(t,o){if(t&1&&u(0,jl,1,3,"svg",44)(1,Gl,1,0,null,28),t&2){let e=o.class,i=a(5);l("ngIf",!i.headerCheckboxIconTemplate&&!i._headerCheckboxIconTemplate&&i.allSelected()),c(),l("ngTemplateOutlet",i.headerCheckboxIconTemplate||i._headerCheckboxIconTemplate)("ngTemplateOutletContext",bt(3,ol,i.allSelected(),i.partialSelected(),e))}}function ql(t,o){if(t&1){let e=ie();m(0,"p-checkbox",43,10),E("onChange",function(n){F(e);let r=a(4);return A(r.onToggleAll(n))}),u(2,Ul,2,7,"ng-template",null,11,de),y()}if(t&2){let e=a(4);l("pt",e.getHeaderCheckboxPTOptions("pcHeaderCheckbox"))("ngModel",e.allSelected())("ariaLabel",e.toggleAllAriaLabel)("binary",!0)("variant",e.$variant())("disabled",e.$disabled())("unstyled",e.unstyled())}}function Kl(t,o){if(t&1&&(Y(),te(0,"svg",50)),t&2){let e=a(5);l("pBind",e.ptm("filterIcon"))}}function Wl(t,o){}function Ql(t,o){t&1&&u(0,Wl,0,0,"ng-template")}function Zl(t,o){if(t&1&&(m(0,"span",51),u(1,Ql,1,0,null,32),y()),t&2){let e=a(5);l("pBind",e.ptm("filterIcon")),c(),l("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Yl(t,o){if(t&1){let e=ie();m(0,"p-iconfield",46)(1,"input",47,12),E("input",function(n){F(e);let r=a(4);return A(r.onFilterInputChange(n))})("keydown",function(n){F(e);let r=a(4);return A(r.onFilterKeyDown(n))})("click",function(n){F(e);let r=a(4);return A(r.onInputClick(n))})("blur",function(n){F(e);let r=a(4);return A(r.onFilterBlur(n))}),y(),m(3,"p-inputicon",46),u(4,Kl,1,1,"svg",48)(5,Zl,2,2,"span",49),y()()}if(t&2){let e=a(4);h(e.cx("pcFilterContainer")),l("pt",e.ptm("pcFilterContainer"))("unstyled",e.unstyled()),c(),h(e.cx("pcFilter")),l("pt",e.ptm("pcFilter"))("variant",e.$variant())("value",e._filterValue()||"")("unstyled",e.unstyled()),w("autocomplete",e.autocomplete)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("disabled",e.$disabled()?"":void 0)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),c(2),l("pt",e.ptm("pcFilterIconContainer"))("unstyled",e.unstyled()),c(),l("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),l("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function Xl(t,o){if(t&1&&u(0,ql,4,7,"p-checkbox",41)(1,Yl,6,20,"p-iconfield",42),t&2){let e=a(3);l("ngIf",e.showToggleAll&&!e.selectionLimit),c(),l("ngIf",e.filter)}}function Jl(t,o){if(t&1&&(m(0,"div",19),he(1),u(2,Hl,2,4,"ng-container",21)(3,Xl,2,2,"ng-template",null,9,de),y()),t&2){let e=Se(4),i=a(2);h(i.cx("header")),l("pBind",i.ptm("header")),c(2),l("ngIf",i.filterTemplate||i._filterTemplate)("ngIfElse",e)}}function ea(t,o){t&1&&R(0)}function ta(t,o){if(t&1&&u(0,ea,1,0,"ng-container",28),t&2){let e=o.$implicit,i=o.options;a(2);let n=Se(9);l("ngTemplateOutlet",n)("ngTemplateOutletContext",Te(2,oo,e,i))}}function ia(t,o){t&1&&R(0)}function na(t,o){if(t&1&&u(0,ia,1,0,"ng-container",28),t&2){let e=o.options,i=a(4);l("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",Q(2,no,e))}}function oa(t,o){t&1&&(O(0),u(1,na,1,4,"ng-template",null,14,de),D())}function ra(t,o){if(t&1){let e=ie();m(0,"p-scroller",52,13),E("onLazyLoad",function(n){F(e);let r=a(2);return A(r.onLazyLoad.emit(n))}),u(2,ta,1,5,"ng-template",null,3,de)(4,oa,3,0,"ng-container",20),y()}if(t&2){let e=a(2);Me(Q(9,jt,e.scrollHeight)),l("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),c(4),l("ngIf",e.loaderTemplate||e._loaderTemplate)}}function sa(t,o){t&1&&R(0)}function la(t,o){if(t&1&&(O(0),u(1,sa,1,0,"ng-container",28),D()),t&2){a();let e=Se(9),i=a();c(),l("ngTemplateOutlet",e)("ngTemplateOutletContext",Te(3,oo,i.visibleOptions(),je(2,rl)))}}function aa(t,o){if(t&1&&(m(0,"span"),be(1),y()),t&2){let e=a(2).$implicit,i=a(3);c(),Re(i.getOptionGroupLabel(e.optionGroup))}}function ca(t,o){if(t&1&&R(0,58),t&2){let e=a(2).$implicit,i=a(3);l("ngTemplateOutlet",i.groupTemplate)("ngTemplateOutletContext",Q(2,io,e.optionGroup))}}function da(t,o){if(t&1&&(O(0),m(1,"li",56),u(2,aa,2,1,"span",20)(3,ca,1,4,"ng-container",57),y(),D()),t&2){let e=a(),i=e.$implicit,n=e.index,r=a().options,s=a(2);c(),h(s.cx("optionGroup")),l("pBind",s.ptm("optionGroup"))("ngStyle",Q(7,jt,r.itemSize+"px")),w("id",s.id+"_"+s.getOptionIndex(n,r)),c(),l("ngIf",!s.groupTemplate&&i.optionGroup),c(),l("ngIf",i.optionGroup&&s.groupTemplate)}}function ua(t,o){if(t&1){let e=ie();O(0),m(1,"li",59),E("onClick",function(n){F(e);let r=a().index,s=a().options,d=a(2);return A(d.onOptionSelect(n,!1,d.getOptionIndex(r,s)))})("onMouseEnter",function(n){F(e);let r=a().index,s=a().options,d=a(2);return A(d.onOptionMouseEnter(n,d.getOptionIndex(r,s)))}),y(),D()}if(t&2){let e=a(),i=e.$implicit,n=e.index,r=a().options,s=a(2);c(),l("pBind",s.getPTOptions(i,s.getItemOptions,n,"option"))("id",s.id+"_"+s.getOptionIndex(n,r))("option",i)("selected",s.isSelected(i))("label",s.getOptionLabel(i))("disabled",s.isOptionDisabled(i))("template",s.itemTemplate||s._itemTemplate)("itemCheckboxIconTemplate",s.itemCheckboxIconTemplate||s._itemCheckboxIconTemplate)("itemSize",r.itemSize)("focused",s.focusedOptionIndex()===s.getOptionIndex(n,r))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(n,r)))("ariaSetSize",s.ariaSetSize)("variant",s.$variant())("highlightOnSelect",s.highlightOnSelect)("pt",s.pt)("unstyled",s.unstyled())}}function pa(t,o){if(t&1&&u(0,da,4,9,"ng-container",20)(1,ua,2,16,"ng-container",20),t&2){let e=o.$implicit,i=a(3);l("ngIf",i.isOptionGroup(e)),c(),l("ngIf",!i.isOptionGroup(e))}}function ha(t,o){if(t&1&&be(0),t&2){let e=a(4);yt(" ",e.emptyFilterMessageLabel," ")}}function ma(t,o){t&1&&R(0)}function fa(t,o){if(t&1&&u(0,ma,1,0,"ng-container",32),t&2){let e=a(4);l("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyFilterTemplate)}}function ga(t,o){if(t&1&&(m(0,"li",56),ae(1,ha,1,1)(2,fa,1,1,"ng-container"),y()),t&2){let e=a().options,i=a(2);h(i.cx("emptyMessage")),l("pBind",i.ptm("emptyMessage"))("ngStyle",Q(5,jt,e.itemSize+"px")),c(),ce(!i.emptyFilterTemplate&&!i._emptyFilterTemplate&&!i.emptyTemplate&&!i._emptyTemplate?1:2)}}function _a(t,o){if(t&1&&be(0),t&2){let e=a(4);yt(" ",e.emptyMessageLabel," ")}}function va(t,o){t&1&&R(0)}function ya(t,o){if(t&1&&u(0,va,1,0,"ng-container",32),t&2){let e=a(4);l("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function ba(t,o){if(t&1&&(m(0,"li",56),ae(1,_a,1,1)(2,ya,1,1,"ng-container"),y()),t&2){let e=a().options,i=a(2);h(i.cx("emptyMessage")),l("pBind",i.ptm("emptyMessage"))("ngStyle",Q(5,jt,e.itemSize+"px")),c(),ce(!i.emptyTemplate&&!i._emptyTemplate?1:2)}}function Ca(t,o){if(t&1&&(m(0,"ul",53,15),u(2,pa,2,2,"ng-template",54)(3,ga,3,7,"li",55)(4,ba,3,7,"li",55),y()),t&2){let e=o.$implicit,i=o.options,n=a(2);Me(i.contentStyle),h(n.cn(n.cx("list"),i.contentStyleClass)),l("pBind",n.ptm("list")),w("aria-label",n.listLabel),c(2),l("ngForOf",e),c(),l("ngIf",n.hasFilter()&&n.isEmpty()),c(),l("ngIf",!n.hasFilter()&&n.isEmpty())}}function xa(t,o){t&1&&R(0)}function Ia(t,o){if(t&1&&(m(0,"div"),he(1,1),u(2,xa,1,0,"ng-container",32),y()),t&2){let e=a(2);c(2),l("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function Sa(t,o){if(t&1){let e=ie();m(0,"div",38)(1,"span",39,6),E("focus",function(n){F(e);let r=a();return A(r.onFirstHiddenFocus(n))}),y(),u(3,Rl,1,0,"ng-container",32)(4,Jl,5,5,"div",33),m(5,"div",19),u(6,ra,5,11,"p-scroller",40)(7,la,2,6,"ng-container",20)(8,Ca,5,9,"ng-template",null,7,de),y(),u(10,Ia,3,1,"div",20),m(11,"span",39,8),E("focus",function(n){F(e);let r=a();return A(r.onLastHiddenFocus(n))}),y()()}if(t&2){let e=a();h(e.cn(e.cx("overlay"),e.panelStyleClass)),l("pBind",e.ptm("overlay"))("ngStyle",e.panelStyle),w("data-p",e.overlayDataP)("id",e.id+"_list"),c(),l("pBind",e.ptm("firstHiddenFocusableEl")),w("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),l("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),l("ngIf",e.showHeader),c(),h(e.cx("listContainer")),ot("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),l("pBind",e.ptm("listContainer")),c(),l("ngIf",e.virtualScroll),c(),l("ngIf",!e.virtualScroll),c(3),l("ngIf",e.footerFacet||e.footerTemplate||e._footerTemplate),c(),l("pBind",e.ptm("lastHiddenFocusableEl")),w("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var Ma=`
|
|
678
|
-
${eo}
|
|
679
|
-
|
|
680
|
-
/* For PrimeNG */
|
|
681
|
-
.p-multiselect.ng-invalid.ng-dirty {
|
|
682
|
-
border-color: dt('multiselect.invalid.border.color');
|
|
683
|
-
}
|
|
684
|
-
p-multiSelect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
|
|
685
|
-
p-multi-select.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
|
|
686
|
-
p-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {
|
|
687
|
-
color: dt('multiselect.invalid.placeholder.color');
|
|
688
|
-
}
|
|
689
|
-
`,Ta={root:({instance:t})=>({position:t.$appendTo()==="self"?"relative":void 0})},wa={root:({instance:t})=>["p-multiselect p-component p-inputwrapper",{"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":t.display==="chip","p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":t.size()==="small","p-multiselect-lg p-inputfield-lg":t.size()==="large"}],labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!t.placeholder()&&!t.defaultLabel&&(!t.modelValue()||t.modelValue().length===0)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.selected&&t.highlightOnSelect,"p-disabled":t.disabled,"p-focus":t.focused}),emptyMessage:"p-multiselect-empty-message",clearIcon:"p-multiselect-clear-icon"},Ht=(()=>{class t extends ne{name="multiselect";style=Ma;classes=wa;inlineStyles=Ta;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})();var to=new H("MULTISELECT_INSTANCE"),Ea=new H("MULTISELECT_ITEM_INSTANCE"),Va={provide:ze,useExisting:Oe(()=>$t),multi:!0},Oa=(()=>{class t extends me{$pcMultiSelectItem=b(Ea,{optional:!0,skipSelf:!0})??void 0;hostName="MultiSelect";getPTOptions(e){return this.ptm(e,{context:{selected:this.selected,focused:this.focused,disabled:this.disabled}})}option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new x;onMouseEnter=new x;_componentStyle=b(Ht);onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["li","pMultiSelectItem",""]],hostAttrs:["role","option"],hostVars:13,hostBindings:function(i,n){i&1&&E("click",function(s){return n.onOptionClick(s)})("mouseenter",function(s){return n.onOptionMouseEnter(s)}),i&2&&(w("aria-label",n.label)("aria-setsize",n.ariaSetSize)("aria-posinset",n.ariaPosInset)("aria-selected",n.selected)("data-p-selected",n.selected)("data-p-focused",n.focused)("data-p-highlight",n.selected)("data-p-disabled",n.disabled)("aria-checked",n.selected),h(n.cx("option")),ot("height",n.itemSize,"px"))},inputs:{option:"option",selected:[2,"selected","selected",S],label:"label",disabled:[2,"disabled","disabled",S],itemSize:[2,"itemSize","itemSize",Fe],focused:[2,"focused","focused",S],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",S]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[K([Ht]),T],attrs:bs,decls:4,vars:13,consts:[["icon",""],[3,"ngModel","binary","tabindex","variant","ariaLabel","pt","unstyled"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,n){i&1&&(m(0,"p-checkbox",1),u(1,Ms,3,0,"ng-container",2),y(),u(2,Ts,2,1,"span",2)(3,ws,1,0,"ng-container",3)),i&2&&(l("ngModel",n.selected)("binary",!0)("tabindex",-1)("variant",n.variant)("ariaLabel",n.label)("pt",n.getPTOptions("pcOptionCheckbox"))("unstyled",n.unstyled()),c(),l("ngIf",n.itemCheckboxIconTemplate),c(),l("ngIf",!n.template),c(),l("ngTemplateOutlet",n.template)("ngTemplateOutletContext",Q(11,io,n.option)))},dependencies:[se,Ae,Ce,_t,mt,ht,it,U],encapsulation:2})}return t})(),$t=(()=>{class t extends nt{zone;filterService;overlayService;componentName="MultiSelect";id;ariaLabel;styleClass;panelStyle;panelStyleClass;inputId;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible=!1;tabindex=0;dataKey;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";showClear=!1;autofocus;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){Fi(this._options(),e)||this._options.set(e||[])}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;size=_();variant=_();fluid=_(void 0,{transform:S});appendTo=_(void 0);motionOptions=_(void 0);onChange=new x;onFilter=new x;onFocus=new x;onBlur=new x;onClick=new x;onClear=new x;onPanelShow=new x;onPanelHide=new x;onLazyLoad=new x;onRemove=new x;onSelectAllChange=new x;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=b(Ht);bindDirectiveInstance=b(I,{self:!0});searchValue;searchTimeout;_selectAll=null;_placeholder=W(void 0);_disableTooltip=!1;value;_filteredOptions;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;$variant=j(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());$appendTo=j(()=>this.appendTo()||this.config.overlayAppendTo());$pcMultiSelect=b(to,{optional:!0,skipSelf:!0})??void 0;pcFluid=b(wt,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}headerCheckboxFocus;filterOptions;preventModelTouched;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=W(null);_filterValue=W(null);_options=W([]);startRangeIndex=W(-1);focusedOptionIndex=W(-1);selectedOptions;clickInProgress=!1;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(at.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(at.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&Le(this.modelValue())&&this.showClear&&!this.$disabled()&&!this.readonly&&this.$filled()}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get listLabel(){return this.config.getTranslation(at.ARIA).listLabel}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=j(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=Li(e)&&We.isObject(e[0]);if(this._filterValue()){let n;if(i?n=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):n=e.filter(r=>r.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let r=this.options||[],s=[];return r.forEach(d=>{let C=this.getOptionGroupChildren(d).filter(v=>n.includes(v));C.length>0&&s.push(pe(P({},d),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...C]}))}),this.flatOptions(s)}return n}return e});label=j(()=>{let e,i=this.modelValue();if(i&&i?.length&&this.displaySelectedLabel){if(Le(this.maxSelectedLabels)&&i?.length>(this.maxSelectedLabels||0))return this.getSelectedItemsLabel();e="";for(let n=0;n<i.length;n++)n!==0&&(e+=", "),e+=this.getLabelByValue(i[n])}else e=this.placeholder()||"";return e});chipSelectedItems=j(()=>Le(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue()?.length>(this.maxSelectedLabels||0)?this.modelValue()?.slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,i,n){super(),this.zone=e,this.filterService=i,this.overlayService=n,Be(()=>{let r=this.modelValue(),s=this.getAllVisibleAndNonVisibleOptions();s&&Le(s)&&(this.optionValue&&this.optionLabel&&r?this.selectedOptions=s.filter(d=>r.includes(d[this.optionLabel])||r.includes(d[this.optionValue])):this.selectedOptions=r,this.cd.markForCheck())})}onInit(){this.id=this.id||Mt("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}onAfterViewInit(){this.overlayVisible&&this.show()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((i,n,r)=>{i.push({optionGroup:n,group:!0,index:r});let s=this.getOptionGroupChildren(n);return s&&s.forEach(d=>i.push(d)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeValue(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,i=!1,n=-1){let{originalEvent:r,option:s}=e;if(this.$disabled()||this.isOptionDisabled(s))return;let d=this.isSelected(s),p=[];d?p=this.modelValue().filter(C=>!Ke(C,this.getOptionValue(s),this.equalityKey()||"")):p=[...this.modelValue()||[],this.getOptionValue(s)],this.updateModel(p,r),n!==-1&&this.focusedOptionIndex.set(n),i&&we(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:p,itemValue:s})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,i=-1,n=-1){if(i===-1&&(i=this.findNearestSelectedOptionIndex(n,!0)),n===-1&&(n=this.findNearestSelectedOptionIndex(i)),i!==-1&&n!==-1){let r=Math.min(i,n),s=Math.max(i,n),d=this.visibleOptions().slice(r,s+1).filter(p=>this.isValidOption(p)).map(p=>this.getOptionValue(p));this.updateModel(d,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,i=!1){let n=-1;return this.hasSelectedOption()&&(i?(n=this.findPrevSelectedOptionIndex(e),n=n===-1?this.findNextSelectedOptionIndex(e):n):(n=this.findNextSelectedOptionIndex(e),n=n===-1?this.findPrevSelectedOptionIndex(e):n)),n>-1?n:e}findPrevSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e>0?lt(this.visibleOptions().slice(0,e),n=>this.isValidSelectedOption(n)):-1;return i>-1?i:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidSelectedOption(n)):-1;return i>-1?i+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return Le(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return e&&(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?qe(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let i=this.getOptionValue(e);return(this.modelValue()||[]).some(n=>Ke(n,i,this.equalityKey()||""))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){let n=(this.group?this.flatOptions(this._options()):this._options()||[]).find(r=>!this.isOptionGroup(r)&&Ke(this.getOptionValue(r),e,this.equalityKey()||""));return n?this.getOptionLabel(n):null}getSelectedItemsLabel(){let e=/{(.*?)}/,i=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(at.SELECTION_MESSAGE);return e.test(i)?i.replace(i.match(e)[0],this.modelValue().length+""):i}getOptionLabel(e){return this.optionLabel?qe(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?qe(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?qe(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return e?this.optionGroupChildren?qe(e,this.optionGroupChildren):e.items:[]}onKeyDown(e){if(this.$disabled()){e.preventDefault();return}let i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&i){let n=this.visibleOptions().filter(r=>this.isValidOption(r)).map(r=>this.getOptionValue(r));this.updateModel(n,e),e.preventDefault();break}!i&&Ni(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),i),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,i=!1){if(e.altKey&&!i)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,n,this.startRangeIndex()),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,i=!1){let{currentTarget:n}=e;if(i){let r=n.value.length;n.setSelectionRange(0,e.shiftKey?r:0),this.focusedOptionIndex.set(-1)}else{let r=e.metaKey||e.ctrlKey,s=this.findFirstOptionIndex();e.shiftKey&&r&&this.onOptionSelectRange(e,s,this.startRangeIndex()),this.changeFocusedOptionIndex(e,s),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,i=!1){let{currentTarget:n}=e;if(i){let r=n.value.length;n.setSelectionRange(e.shiftKey?0:r,r),this.focusedOptionIndex.set(-1)}else{let r=e.metaKey||e.ctrlKey,s=this.findLastFocusedOptionIndex();e.shiftKey&&r&&this.onOptionSelectRange(e,this.startRangeIndex(),s),this.changeFocusedOptionIndex(e,s),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.stopPropagation(),e.preventDefault())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())we(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];!this.isSelected(n)&&this.onOptionSelect({originalEvent:e,option:n})}this.overlayVisible&&this.hide(this.filter)}}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.$disabled()||this.loading||this.readonly||e.target?.isSameNode?.(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?Oi(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;we(i)}onInputFocus(e){this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?Di(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;we(i)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onToggleAll(e){if(!(this.$disabled()||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let i=this.getAllVisibleAndNonVisibleOptions().filter(p=>this.isSelected(p)&&(this.optionDisabled?qe(p,this.optionDisabled):p&&p.disabled!==void 0?p.disabled:!1)),n=this.allSelected()?this.visibleOptions().filter(p=>!this.isValidOption(p)&&this.isSelected(p)):this.visibleOptions().filter(p=>this.isSelected(p)||this.isValidOption(p)),s=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(p=>this.isSelected(p)&&this.isValidOption(p)):[],...i,...n].map(p=>this.getOptionValue(p)),d=[...new Set(s)];this.updateModel(d,e),(!d.length||d.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!d.length})}this.partialSelected()&&(this.selectedOptions=[],this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),zi.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=Je(this.itemsViewChild.nativeElement,`li[id="${i}"]`);n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}allSelected(){return this.selectAll!==null?this.selectAll:Le(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<(this.options?.length||0)}show(e){this.overlayVisible=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(i),e&&we(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&Hi(),e&&we(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayBeforeEnter(e){if(this.itemsWrapper=Je(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?'[data-pc-name="virtualscroller"]':'[data-pc-section="listcontainer"]'),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=Je(this.itemsWrapper,'[data-pc-section="option"][data-p-selected="true"]');i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit(e)}onOverlayAfterLeave(e){this.itemsWrapper=null,this.onModelTouched(),this.onPanelHide.emit(e)}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}onOverlayHide(e){this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=[],this.updateModel(null,e),this.selectedOptions=[],this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,i){let n=this.modelValue().filter(r=>!Ke(r,e,this.equalityKey()||""));this.updateModel(n,i),this.onChange.emit({originalEvent:i,value:n,itemValue:e}),this.onRemove.emit({newValue:n,removed:e}),i&&i.stopPropagation()}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?lt(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return i>-1?i:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?lt(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return lt(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let n=-1,r=!1;return this.focusedOptionIndex()!==-1?(n=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)),n=n===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)):n+this.focusedOptionIndex()):n=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),n!==-1&&(r=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),r}hasFocusableElements(){return Vi(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}get containerDataP(){return this.cn({invalid:this.invalid(),disabled:this.$disabled(),focus:this.focused,fluid:this.hasFluid,filled:this.$variant()==="filled",[this.size()]:this.size()})}get labelDataP(){return this.cn({placeholder:this.label===this.placeholder,clearable:this.showClear,disabled:this.disabled,[this.size()]:this.size(),"has-chip":this.display==="chip"&&this.value&&this.value.length&&(this.maxSelectedLabels?this.value.length<=this.maxSelectedLabels:!0),empty:!this.placeholder&&!this.$filled})}get dropdownIconDataP(){return this.cn({[this.size()]:this.size()})}get overlayDataP(){return this.cn({["overlay-"+this.appendTo]:"overlay-"+this.appendTo})}writeControlValue(e,i){this.value=e,i(e),this.cd.markForCheck()}getHeaderCheckboxPTOptions(e){return this.ptm(e,{context:{selected:this.allSelected()}})}getPTOptions(e,i,n,r){return this.ptm(r,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,i),disabled:this.isOptionDisabled(e)}})}static \u0275fac=function(i){return new(i||t)(q(Ye),q(Bi),q(Tt))};static \u0275cmp=N({type:t,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(i,n,r){if(i&1&&Ie(r,Ri,5)(r,Pi,5)(r,Es,4)(r,Vs,4)(r,Os,4)(r,Ds,4)(r,ks,4)(r,Fs,4)(r,As,4)(r,Ls,4)(r,Ns,4)(r,Bs,4)(r,Ps,4)(r,Rs,4)(r,zs,4)(r,Hs,4)(r,js,4)(r,$s,4)(r,Gs,4)(r,Ee,4),i&2){let s;f(s=g())&&(n.footerFacet=s.first),f(s=g())&&(n.headerFacet=s.first),f(s=g())&&(n.itemTemplate=s.first),f(s=g())&&(n.groupTemplate=s.first),f(s=g())&&(n.loaderTemplate=s.first),f(s=g())&&(n.headerTemplate=s.first),f(s=g())&&(n.filterTemplate=s.first),f(s=g())&&(n.footerTemplate=s.first),f(s=g())&&(n.emptyFilterTemplate=s.first),f(s=g())&&(n.emptyTemplate=s.first),f(s=g())&&(n.selectedItemsTemplate=s.first),f(s=g())&&(n.loadingIconTemplate=s.first),f(s=g())&&(n.filterIconTemplate=s.first),f(s=g())&&(n.removeTokenIconTemplate=s.first),f(s=g())&&(n.chipIconTemplate=s.first),f(s=g())&&(n.clearIconTemplate=s.first),f(s=g())&&(n.dropdownIconTemplate=s.first),f(s=g())&&(n.itemCheckboxIconTemplate=s.first),f(s=g())&&(n.headerCheckboxIconTemplate=s.first),f(s=g())&&(n.templates=s)}},viewQuery:function(i,n){if(i&1&&Pe(Us,5)(qs,5)(Ks,5)(Ws,5)(Qs,5)(Zs,5)(Ys,5)(Xs,5),i&2){let r;f(r=g())&&(n.overlayViewChild=r.first),f(r=g())&&(n.filterInputChild=r.first),f(r=g())&&(n.focusInputViewChild=r.first),f(r=g())&&(n.itemsViewChild=r.first),f(r=g())&&(n.scroller=r.first),f(r=g())&&(n.lastHiddenFocusableElementOnOverlay=r.first),f(r=g())&&(n.firstHiddenFocusableElementOnOverlay=r.first),f(r=g())&&(n.headerCheckboxViewChild=r.first)}},hostVars:6,hostBindings:function(i,n){i&1&&E("click",function(s){return n.onContainerClick(s)}),i&2&&(w("id",n.id)("data-p",n.containerDataP),Me(n.sx("root")),h(n.cn(n.cx("root"),n.styleClass)))},inputs:{id:"id",ariaLabel:"ariaLabel",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",readonly:[2,"readonly","readonly",S],group:[2,"group","group",S],filter:[2,"filter","filter",S],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",S],tabindex:[2,"tabindex","tabindex",Fe],dataKey:"dataKey",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",Fe],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",S],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",S],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",S],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",S],virtualScroll:[2,"virtualScroll","virtualScroll",S],loading:[2,"loading","loading",S],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",Fe],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",S],display:"display",autocomplete:"autocomplete",showClear:[2,"showClear","showClear",S],autofocus:[2,"autofocus","autofocus",S],placeholder:"placeholder",options:"options",filterValue:"filterValue",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",S],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",S],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",S],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",S],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[K([Va,Ht,{provide:to,useExisting:t},{provide:oe,useExisting:t}]),ee([I]),T],ngContentSelectors:el,decls:16,vars:51,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["icon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible",3,"pBind"],["role","combobox",3,"focus","blur","keydown","pTooltip","pTooltipUnstyled","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","pBind"],[3,"mouseleave","pBind","pTooltip","pTooltipUnstyled","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"pBind"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onBeforeEnter","onAfterLeave","onHide","hostAttrSelector","visible","options","target","appendTo","unstyled","pt","motionOptions"],[3,"pBind","class"],[3,"pBind","class",4,"ngFor","ngForOf"],[3,"onRemove","pt","unstyled","label","removable","removeIcon"],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind","class",4,"ngIf"],[3,"pBind","class","ngClass",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind","class",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","chevron-down",3,"pBind"],[3,"pBind","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[3,"pt","ngModel","ariaLabel","binary","variant","disabled","unstyled","onChange",4,"ngIf"],[3,"pt","class","unstyled",4,"ngIf"],[3,"onChange","pt","ngModel","ariaLabel","binary","variant","disabled","unstyled"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],[3,"pt","unstyled"],["pInputText","","type","text","role","searchbox",3,"input","keydown","click","blur","pt","variant","value","unstyled"],["data-p-icon","search",3,"pBind",4,"ngIf"],["class","p-multiselect-filter-icon",3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],[1,"p-multiselect-filter-icon",3,"pBind"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"pBind","class","ngStyle",4,"ngIf"],["role","option",3,"pBind","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["pMultiSelectItem","","pRipple","",3,"onClick","onMouseEnter","pBind","id","option","selected","label","disabled","template","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect","pt","unstyled"]],template:function(i,n){if(i&1){let r=ie();ge(Js),m(0,"div",16)(1,"input",17,0),E("focus",function(d){return n.onInputFocus(d)})("blur",function(d){return n.onInputBlur(d)})("keydown",function(d){return n.onKeyDown(d)}),y()(),m(3,"div",18),E("mouseleave",function(){return n.labelContainerMouseLeave()}),m(4,"div",19),u(5,_l,3,2,"ng-container",20)(6,bl,3,6,"ng-container",20),y()(),u(7,Ml,3,2,"ng-container",20),m(8,"div",19),u(9,Dl,3,2,"ng-container",21)(10,Pl,2,2,"ng-template",null,1,de),y(),m(12,"p-overlay",22,2),Ci("visibleChange",function(d){return F(r),bi(n.overlayVisible,d)||(n.overlayVisible=d),A(d)}),E("onBeforeEnter",function(d){return n.onOverlayBeforeEnter(d)})("onAfterLeave",function(d){return n.onOverlayAfterLeave(d)})("onHide",function(d){return n.onOverlayHide(d)}),u(14,Sa,13,24,"ng-template",null,3,de),y()}if(i&2){let r=Se(11);l("pBind",n.ptm("hiddenInputContainer")),w("data-p-hidden-accessible",!0),c(),l("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("pAutoFocus",n.autofocus)("pBind",n.ptm("hiddenInput")),w("aria-disabled",n.$disabled())("id",n.inputId)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",n.overlayVisible??!1)("aria-controls",n.overlayVisible?n.id+"_list":null)("tabindex",n.$disabled()?-1:n.tabindex)("aria-activedescendant",n.focused?n.focusedOptionId:void 0)("value",n.modelValue())("name",n.name())("required",n.required()?"":void 0)("disabled",n.$disabled()?"":void 0),c(2),h(n.cx("labelContainer")),l("pBind",n.ptm("labelContainer"))("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipDisabled",n._disableTooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),c(),h(n.cx("label")),l("pBind",n.ptm("label")),w("data-p",n.labelDataP),c(),l("ngIf",!n.selectedItemsTemplate&&!n._selectedItemsTemplate),c(),l("ngIf",n.selectedItemsTemplate||n._selectedItemsTemplate),c(),l("ngIf",n.isVisibleClearIcon),c(),h(n.cx("dropdown")),l("pBind",n.ptm("dropdown")),c(),l("ngIf",n.loading)("ngIfElse",r),c(3),l("hostAttrSelector",n.$attrSelector),yi("visible",n.overlayVisible),l("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("unstyled",n.unstyled())("pt",n.ptm("pcOverlay"))("motionOptions",n.motionOptions())}},dependencies:[se,Ct,xt,Ae,Ce,It,Oa,Qn,U,Wi,di,$i,Bt,An,Ln,Fn,ft,gt,Nt,Xi,_t,mt,ht,it,_e,I],encapsulation:2,changeDetection:0})}return t})(),ro=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({imports:[$t,U,U]})}return t})();var so=`
|
|
690
|
-
.p-togglebutton {
|
|
691
|
-
display: inline-flex;
|
|
692
|
-
cursor: pointer;
|
|
693
|
-
user-select: none;
|
|
694
|
-
overflow: hidden;
|
|
695
|
-
position: relative;
|
|
696
|
-
color: dt('togglebutton.color');
|
|
697
|
-
background: dt('togglebutton.background');
|
|
698
|
-
border: 1px solid dt('togglebutton.border.color');
|
|
699
|
-
padding: dt('togglebutton.padding');
|
|
700
|
-
font-size: 1rem;
|
|
701
|
-
font-family: inherit;
|
|
702
|
-
font-feature-settings: inherit;
|
|
703
|
-
transition:
|
|
704
|
-
background dt('togglebutton.transition.duration'),
|
|
705
|
-
color dt('togglebutton.transition.duration'),
|
|
706
|
-
border-color dt('togglebutton.transition.duration'),
|
|
707
|
-
outline-color dt('togglebutton.transition.duration'),
|
|
708
|
-
box-shadow dt('togglebutton.transition.duration');
|
|
709
|
-
border-radius: dt('togglebutton.border.radius');
|
|
710
|
-
outline-color: transparent;
|
|
711
|
-
font-weight: dt('togglebutton.font.weight');
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
.p-togglebutton-content {
|
|
715
|
-
display: inline-flex;
|
|
716
|
-
flex: 1 1 auto;
|
|
717
|
-
align-items: center;
|
|
718
|
-
justify-content: center;
|
|
719
|
-
gap: dt('togglebutton.gap');
|
|
720
|
-
padding: dt('togglebutton.content.padding');
|
|
721
|
-
background: transparent;
|
|
722
|
-
border-radius: dt('togglebutton.content.border.radius');
|
|
723
|
-
transition:
|
|
724
|
-
background dt('togglebutton.transition.duration'),
|
|
725
|
-
color dt('togglebutton.transition.duration'),
|
|
726
|
-
border-color dt('togglebutton.transition.duration'),
|
|
727
|
-
outline-color dt('togglebutton.transition.duration'),
|
|
728
|
-
box-shadow dt('togglebutton.transition.duration');
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {
|
|
732
|
-
background: dt('togglebutton.hover.background');
|
|
733
|
-
color: dt('togglebutton.hover.color');
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
.p-togglebutton.p-togglebutton-checked {
|
|
737
|
-
background: dt('togglebutton.checked.background');
|
|
738
|
-
border-color: dt('togglebutton.checked.border.color');
|
|
739
|
-
color: dt('togglebutton.checked.color');
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
.p-togglebutton-checked .p-togglebutton-content {
|
|
743
|
-
background: dt('togglebutton.content.checked.background');
|
|
744
|
-
box-shadow: dt('togglebutton.content.checked.shadow');
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
.p-togglebutton:focus-visible {
|
|
748
|
-
box-shadow: dt('togglebutton.focus.ring.shadow');
|
|
749
|
-
outline: dt('togglebutton.focus.ring.width') dt('togglebutton.focus.ring.style') dt('togglebutton.focus.ring.color');
|
|
750
|
-
outline-offset: dt('togglebutton.focus.ring.offset');
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
.p-togglebutton.p-invalid {
|
|
754
|
-
border-color: dt('togglebutton.invalid.border.color');
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
.p-togglebutton:disabled {
|
|
758
|
-
opacity: 1;
|
|
759
|
-
cursor: default;
|
|
760
|
-
background: dt('togglebutton.disabled.background');
|
|
761
|
-
border-color: dt('togglebutton.disabled.border.color');
|
|
762
|
-
color: dt('togglebutton.disabled.color');
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
.p-togglebutton-label,
|
|
766
|
-
.p-togglebutton-icon {
|
|
767
|
-
position: relative;
|
|
768
|
-
transition: none;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
.p-togglebutton-icon {
|
|
772
|
-
color: dt('togglebutton.icon.color');
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {
|
|
776
|
-
color: dt('togglebutton.icon.hover.color');
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {
|
|
780
|
-
color: dt('togglebutton.icon.checked.color');
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
.p-togglebutton:disabled .p-togglebutton-icon {
|
|
784
|
-
color: dt('togglebutton.icon.disabled.color');
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
.p-togglebutton-sm {
|
|
788
|
-
padding: dt('togglebutton.sm.padding');
|
|
789
|
-
font-size: dt('togglebutton.sm.font.size');
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
.p-togglebutton-sm .p-togglebutton-content {
|
|
793
|
-
padding: dt('togglebutton.content.sm.padding');
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
.p-togglebutton-lg {
|
|
797
|
-
padding: dt('togglebutton.lg.padding');
|
|
798
|
-
font-size: dt('togglebutton.lg.font.size');
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
.p-togglebutton-lg .p-togglebutton-content {
|
|
802
|
-
padding: dt('togglebutton.content.lg.padding');
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
.p-togglebutton-fluid {
|
|
806
|
-
width: 100%;
|
|
807
|
-
}
|
|
808
|
-
`;var ka=["icon"],Fa=["content"],co=t=>({$implicit:t});function Aa(t,o){t&1&&R(0)}function La(t,o){if(t&1&&te(0,"span",0),t&2){let e=a(3);h(e.cn(e.cx("icon"),e.checked?e.onIcon:e.offIcon,e.iconPos==="left"?e.cx("iconLeft"):e.cx("iconRight"))),l("pBind",e.ptm("icon"))}}function Na(t,o){if(t&1&&ae(0,La,1,3,"span",2),t&2){let e=a(2);ce(e.onIcon||e.offIcon?0:-1)}}function Ba(t,o){t&1&&R(0)}function Pa(t,o){if(t&1&&u(0,Ba,1,0,"ng-container",1),t&2){let e=a(2);l("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",Q(2,co,e.checked))}}function Ra(t,o){if(t&1&&(ae(0,Na,1,1)(1,Pa,1,4,"ng-container"),m(2,"span",0),be(3),y()),t&2){let e=a();ce(e.iconTemplate?1:0),c(2),h(e.cx("label")),l("pBind",e.ptm("label")),c(),Re(e.checked?e.hasOnLabel?e.onLabel:"\xA0":e.hasOffLabel?e.offLabel:"\xA0")}}var za=`
|
|
809
|
-
${so}
|
|
810
|
-
|
|
811
|
-
/* For PrimeNG (iconPos) */
|
|
812
|
-
.p-togglebutton-icon-right {
|
|
813
|
-
order: 1;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
.p-togglebutton.ng-invalid.ng-dirty {
|
|
817
|
-
border-color: dt('togglebutton.invalid.border.color');
|
|
818
|
-
}
|
|
819
|
-
`,Ha={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"},lo=(()=>{class t extends ne{name="togglebutton";style=za;classes=Ha;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})();var ao=new H("TOGGLEBUTTON_INSTANCE"),ja={provide:ze,useExisting:Oe(()=>Gt),multi:!0},Gt=(()=>{class t extends nt{componentName="ToggleButton";$pcToggleButton=b(ao,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=b(I,{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=_(void 0,{transform:S});onChange=new x;iconTemplate;contentTemplate;templates;checked=!1;onInit(){(this.checked===null||this.checked===void 0)&&(this.checked=!1)}_componentStyle=b(lo);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,i){this.checked=e,i(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=M(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(i,n,r){if(i&1&&Ie(r,ka,4)(r,Fa,4)(r,Ee,4),i&2){let s;f(s=g())&&(n.iconTemplate=s.first),f(s=g())&&(n.contentTemplate=s.first),f(s=g())&&(n.templates=s)}},hostVars:11,hostBindings:function(i,n){i&1&&E("keydown",function(s){return n.onKeyDown(s)})("click",function(s){return n.toggle(s)}),i&2&&(w("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),h(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",Fe],iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",S],size:"size",allowEmpty:"allowEmpty",fluid:[1,"fluid"]},outputs:{onChange:"onChange"},features:[K([ja,lo,{provide:ao,useExisting:t},{provide:oe,useExisting:t}]),ee([Ui,I]),T],decls:3,vars:9,consts:[[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind"]],template:function(i,n){i&1&&(m(0,"span",0),u(1,Aa,1,0,"ng-container",1),ae(2,Ra,4,5),y()),i&2&&(h(n.cx("content")),l("pBind",n.ptm("content")),w("data-p",n.dataP),c(),l("ngTemplateOutlet",n.contentTemplate||n._contentTemplate)("ngTemplateOutletContext",Q(7,co,n.checked)),c(),ce(n.contentTemplate?-1:2))},dependencies:[se,Ce,U,_e,I],encapsulation:2,changeDetection:0})}return t})(),uo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({imports:[Gt,U,U]})}return t})();var po={searchPlaceholder:"Search path, name, description\u2026",allKindsPlaceholder:"All kinds",allStabilitiesPlaceholder:"All stabilities",hasIssues:"Has issues",reset:"Reset"};var ho={stable:"Stable",experimental:"Experimental",deprecated:"Deprecated"};function Ga(t,o){if(t&1){let e=ie();m(0,"p-multiselect",8),E("ngModelChange",function(n){F(e);let r=a();return A(r.onKindsChange(n))}),y()}if(t&2){let e=a();l("options",e.kindOptions())("ngModel",e.selectedKinds())("placeholder",e.texts.allKindsPlaceholder)("showToggleAll",!1)("filter",!1)}}function Ua(t,o){if(t&1){let e=ie();m(0,"p-button",9),E("onClick",function(){F(e);let n=a();return A(n.reset())}),y()}if(t&2){let e=a();l("label",e.texts.reset)("text",!0)}}var mo=class t{store=b(Yi);kindRegistry=b(Qi);texts=po;showKinds=_(!0);searchText=this.store.searchText;selectedKinds=this.store.selectedKinds;selectedStabilities=this.store.selectedStabilities;hasIssuesOnly=this.store.hasIssuesOnly;isActive=this.store.isActive;kindOptions=j(()=>this.kindRegistry.kinds().map(o=>({label:o.label,value:o.name})));stabilityOptions=Zi.map(o=>({label:ho[o],value:o}));onSearchChange(o){this.store.setSearchText(o)}onKindsChange(o){this.store.setKinds(o)}onStabilitiesChange(o){this.store.setStabilities(o)}onIssuesToggle(o){this.store.setHasIssuesOnly(o)}reset(){this.store.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=N({type:t,selectors:[["app-filter-bar"]],inputs:{showKinds:[1,"showKinds"]},decls:8,vars:12,consts:[["data-testid","filter-bar",1,"filter-bar"],["iconPosition","left",1,"filter-bar__search"],["styleClass","pi pi-search"],["pInputText","","type","text","data-testid","filter-search",3,"ngModelChange","placeholder","ngModel"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-kinds",3,"options","ngModel","placeholder","showToggleAll","filter"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-stabilities",3,"ngModelChange","options","ngModel","placeholder","showToggleAll","filter"],["onIcon","pi pi-exclamation-triangle","offIcon","pi pi-exclamation-triangle","styleClass","filter-bar__toggle","data-testid","filter-has-issues",3,"ngModelChange","ngModel","onLabel","offLabel"],["severity","secondary","size","small","data-testid","filter-reset",3,"label","text"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-kinds",3,"ngModelChange","options","ngModel","placeholder","showToggleAll","filter"],["severity","secondary","size","small","data-testid","filter-reset",3,"onClick","label","text"]],template:function(e,i){e&1&&(m(0,"div",0)(1,"p-iconfield",1),te(2,"p-inputicon",2),m(3,"input",3),E("ngModelChange",function(r){return i.onSearchChange(r)}),y()(),ae(4,Ga,1,5,"p-multiselect",4),m(5,"p-multiselect",5),E("ngModelChange",function(r){return i.onStabilitiesChange(r)}),y(),m(6,"p-togglebutton",6),E("ngModelChange",function(r){return i.onIssuesToggle(r)}),y(),ae(7,Ua,1,2,"p-button",7),y()),e&2&&(c(3),l("placeholder",i.texts.searchPlaceholder)("ngModel",i.searchText()),c(),ce(i.showKinds()?4:-1),c(),l("options",i.stabilityOptions)("ngModel",i.selectedStabilities())("placeholder",i.texts.allStabilitiesPlaceholder)("showToggleAll",!1)("filter",!1),c(),l("ngModel",i.hasIssuesOnly())("onLabel",i.texts.hasIssues)("offLabel",i.texts.hasIssues),c(),ce(i.isActive()?7:-1))},dependencies:[mt,Ft,ht,it,Cn,ft,Sn,gt,En,Nt,ro,$t,Ki,qi,uo,Gt],styles:["[_nghost-%COMP%]{display:block}.filter-bar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.filter-bar__search[_ngcontent-%COMP%]{flex:1 1 320px;min-width:280px}.filter-bar__search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}.filter-bar__ms[_ngcontent-%COMP%]{min-width:180px}.filter-bar__toggle[_ngcontent-%COMP%]{flex-shrink:0}@media(max-width:1280px){.filter-bar__search[_ngcontent-%COMP%]{flex:1 1 200px;min-width:200px}.filter-bar__ms[_ngcontent-%COMP%]{min-width:140px}}"],changeDetection:0})};export{Bt as a,Fn as b,An as c,Ln as d,ze as e,Ne as f,ht as g,it as h,mt as i,ft as j,gt as k,Nt as l,En as m,nt as n,Nd as o,ai as p,$n as q,Qn as r,di as s,Wu as t,Gt as u,uo as v,mo as w};
|