@drayman/elements 1.55.0 → 1.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/grid/main.js +1 -1
- package/dist/slider/3rdpartylicenses.txt +360 -0
- package/dist/slider/favicon.ico +0 -0
- package/dist/slider/main.js +1 -0
- package/dist/slider/polyfills.js +1 -0
- package/dist/slider/styles.css +0 -0
- package/dist/types/grid/src/app/models/grid-options.d.ts +5 -0
- package/dist/types/nebula/src/app/models/nebula-options.d.ts +5 -0
- package/dist/types/slider/src/app/models/slider-options.d.ts +43 -0
- package/package.json +7 -3
- package/types/index.d.ts +39 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var ct={583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==ce.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return ie}static __load_patch(t,r,k=!1){if(ce.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),ce[t]=r(e,M,Y),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch(K){if(this._zoneDelegate.handleError(this,K))throw K}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||Q).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===te||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),t.runCount++;const K=ie;ie=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==te||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,x))),U=U.parent,ie=K}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(z,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,z,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==z&&t._transitionTo(j,z),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,K){return this.scheduleTask(new m(w,t,r,k,C,K))}scheduleEventTask(t,r,k,C,K){return this.scheduleTask(new m(te,t,r,k,C,K))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||Q).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;C<k.length;C++)k[C]._updateTaskCount(t.type,r)}}return M.__symbol__=a,M})();const P={name:"",onHasTask:(M,E,t,r)=>M.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class m{constructor(E,t,r,k,C,K){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=K,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===te&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ne++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ne&&_(),ne--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,z)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),Z=a("Promise"),N=a("then");let ee,B=[],H=!1;function X(M){if(ee||e[Z]&&(ee=e[Z].resolve(0)),ee){let E=ee[N];E||(E=ee.then),E.call(ee,M)}else e[L](M,0)}function R(M){0===ne&&0===B.length&&X(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;E<M.length;E++){const t=M[E];try{t.zone.runTask(t,null,null)}catch(r){Y.onUnhandledError(r)}}}Y.microtaskDrainDone(),H=!1}}const Q={name:"NO ZONE"},x="notScheduled",z="scheduling",j="scheduled",p="running",G="canceling",h="unknown",I="microTask",w="macroTask",te="eventTask",ce={},Y={symbol:a,currentZoneFrame:()=>U,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:X};let U={parent:null,zone:new d(null,null)},ie=null,ne=0;function W(){}o("Zone","Zone"),e.Zone=d}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const q=Object.getOwnPropertyDescriptor,J=Object.defineProperty,re=Object.getPrototypeOf,at=Object.create,lt=Array.prototype.slice,De="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(De),Ne=Zone.__symbol__(Se),ue="true",fe="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe="undefined"!=typeof window,ye=Pe?window:void 0,$=Pe&&ye||"object"==typeof self&&self||global;function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const Be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,we=!("nw"in $)&&void 0!==$.process&&"[object process]"==={}.toString.call($.process),je=!we&&!Be&&!(!Pe||!ye.HTMLElement),Ue=void 0!==$.process&&"[object process]"==={}.toString.call($.process)&&!Be&&!(!Pe||!ye.HTMLElement),Re={},We=function(e){if(!(e=e||$.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||$,o=i[n];let c;if(je&&i===ye&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=q(e,n);if(!o&&i&&q(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===$&&(m=$),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===$&&(v=$),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},J(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;o<n.length;o++)qe(e,"on"+n[o],i);else{const o=[];for(const c in e)"on"==c.slice(0,2)&&o.push(c);for(let c=0;c<o.length;c++)qe(e,o[c],i)}}const se=A("originalInstance");function ve(e){const n=$[e];if(!n)return;$[A(e)]=n,$[e]=function(){const c=Le(arguments,e);switch(c.length){case 0:this[se]=new n;break;case 1:this[se]=new n(c[0]);break;case 2:this[se]=new n(c[0],c[1]);break;case 3:this[se]=new n(c[0],c[1],c[2]);break;case 4:this[se]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},de($[e],n);const i=new n(function(){});let o;for(o in i)"XMLHttpRequest"===e&&"responseBlob"===o||function(c){"function"==typeof i[c]?$[e].prototype[c]=function(){return this[se][c].apply(this[se],arguments)}:J($[e].prototype,c,{set:function(a){"function"==typeof a?(this[se][c]=Ie(a,e+"."+c),de(this[se][c],a)):this[se][c]=a},get:function(){return this[se][c]}})}(o);for(o in n)"prototype"!==o&&n.hasOwnProperty(o)&&($[e][o]=n[o])}function he(e,n,i){let o=e;for(;o&&!o.hasOwnProperty(n);)o=re(o);!o&&e[n]&&(o=e);const c=A(n);let a=null;if(o&&(!(a=o[c])||!o.hasOwnProperty(c))&&(a=o[c]=o[n],Fe(o&&q(o,n)))){const d=i(a,c,n);o[n]=function(){return d(this,arguments)},de(o[n],a)}return a}function ht(e,n,i){let o=null;function c(a){const y=a.data;return y.args[y.cbIdx]=function(){a.invoke.apply(this,arguments)},o.apply(y.target,y.args),a}o=he(e,n,a=>function(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function de(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function _t(){if(ze)return Ae;ze=!0;try{const e=ye.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch(e){}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch(u){}}function B(l){return l&&l.then}function H(l){return l}function ee(l){return t.reject(l)}const X=y("state"),R=y("value"),_=y("finally"),Q=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,p=!0,G=!1;function I(l,u){return s=>{try{Y(l,u,s)}catch(f){Y(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},ce=y("currentTaskTrace");function Y(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[X]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{Y(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(X)&&s.hasOwnProperty(R)&&s[X]!==j)ie(s),Y(l,s[X],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{Y(l,!1,b)})()}else{l[X]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[X]=l[x],l[R]=l[Q]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,ce,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T<b.length;)ne(l,b[T++],b[T++],b[T++],b[T++]);if(0==b.length&&u==G){l[X]=0;let T=s;try{throw new Error("Uncaught (in promise): "+function a(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(O){T=O}P&&(T.throwOriginal=!0),T.rejection=s,T.promise=l,T.zone=n.current,T.task=n.currentTask,d.push(T),i.scheduleMicroTask()}}}return l}const U=y("rejectionHandledHandler");function ie(l){if(0===l[X]){try{const u=n[U];u&&"function"==typeof u&&u.call(this,{rejection:l[R],promise:l})}catch(u){}l[X]=G;for(let u=0;u<d.length;u++)l===d[u].promise&&d.splice(u,1)}}function ne(l,u,s,f,g){ie(l);const b=l[X],T=b?"function"==typeof f?f:H:"function"==typeof g?g:ee;u.scheduleMicroTask("Promise.then",()=>{try{const O=l[R],D=!!s&&_===s[_];D&&(s[Q]=O,s[x]=b);const S=u.run(T,void 0,D&&T!==ee&&T!==H?[]:[O]);Y(s,!0,S)}catch(O){Y(s,!1,O)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return Y(new this(null),p,u)}static reject(u){return Y(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch(T){return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,O)=>{for(let D=0;D<s.length;D++)s[D].then(S=>{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,O(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((O,D)=>{s=O,f=D});function b(O){s(O)}function T(O){f(O)}for(let O of u)B(O)||(O=this.resolve(O)),O.then(b,T);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),T=2,O=0;const D=[];for(let S of u){B(S)||(S=this.resolve(S));const V=O;try{S.then(F=>{D[V]=s?s.thenCallback(F):F,T--,0===T&&f(D)},F=>{s?(D[V]=s.errorCallback(F),T--,0===T&&f(D)):g(F)})}catch(F){g(F)}T++,O++}return T-=2,0===T&&f(D),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[X]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){Y(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[X]==j?this[R].push(T,b,u,s):ne(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[X]==j?this[R].push(b,g,u,u):ne(this,b,g,u,u),g}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new t((O,D)=>{f.call(this,O,D)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),he(e,"fetch",l=>function K(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let pe=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){pe=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){pe=!1}const Et={useG:!0},oe={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+fe,o=(n?n(e):e)+ue,c=ke+i,a=ke+o;oe[e]={},oe[e][fe]=c,oe[e][ue]=a}function Tt(e,n,i,o){const c=o&&o.add||De,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,Q){if(R.isRemoved)return;const x=R.callback;let z;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[Q])}catch(p){z=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,Q.type,R.originalDelegate?R.originalDelegate:R.callback,j),z};function N(R,_,Q){if(!(_=_||e.event))return;const x=R||_.target||e,z=x[oe[_.type][Q?ue:fe]];if(z){const j=[];if(1===z.length){const p=Z(z[0],x,_);p&&j.push(p)}else{const p=z.slice();for(let G=0;G<p.length&&(!_||!0!==_[Ke]);G++){const h=Z(p[G],x,_);h&&j.push(h)}}if(1===j.length)throw j[0];for(let p=0;p<j.length;p++){const G=j[p];n.nativeScheduleMicroTask(()=>{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function ee(R,_){if(!R)return!1;let Q=!0;_&&void 0!==_.useG&&(Q=_.useG);const x=_&&_.vh;let z=!0;_&&void 0!==_.chkDup&&(z=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=re(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],te=p[A(y)]=p[y],ce=p[A(d)]=p[d];let Y;function U(s,f){return!pe&&"object"==typeof s&&s?!!s.capture:pe&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(Y=p[A(_.prepend)]=p[_.prepend]);const t=Q?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=Q?function(s){if(!s.isRemoved){const f=oe[s.eventName];let g;f&&(g=f[s.capture?ue:fe]);const b=g&&s.target[g];if(b)for(let T=0;T<b.length;T++)if(b[T]===s){b.splice(T,1),s.isRemoved=!0,0===b.length&&(s.allRemoved=!0,s.target[g]=null);break}}if(s.allRemoved)return w.call(s.target,s.eventName,s.capture?H:B,s.options)}:function(s){return w.call(s.target,s.eventName,s.invoke,s.options)},C=_&&_.diff?_.diff:function(s,f){const g=typeof f;return"function"===g&&s.callback===f||"object"===g&&s.originalDelegate===f},K=Zone[A("UNPATCHED_EVENTS")],l=e[A("PASSIVE_EVENTS")],u=function(s,f,g,b,T=!1,O=!1){return function(){const D=this||e;let S=arguments[0];_&&_.transferEventName&&(S=_.transferEventName(S));let V=arguments[1];if(!V)return s.apply(this,arguments);if(we&&"uncaughtException"===S)return s.apply(this,arguments);let F=!1;if("function"!=typeof V){if(!V.handleEvent)return s.apply(this,arguments);F=!0}if(x&&!x(s,V,D,arguments))return;const _e=pe&&!!l&&-1!==l.indexOf(S),ae=U(arguments[2],_e);if(K)for(let Te=0;Te<K.length;Te++)if(S===K[Te])return _e?s.call(D,S,V,ae):s.apply(this,arguments);const xe=!!ae&&("boolean"==typeof ae||ae.capture),nt=!(!ae||"object"!=typeof ae)&&ae.once,bt=Zone.current;let Ge=oe[S];Ge||(Je(S,G),Ge=oe[S]);const rt=Ge[xe?ue:fe];let Oe,ge=D[rt],ot=!1;if(ge){if(ot=!0,z)for(let Te=0;Te<ge.length;Te++)if(C(ge[Te],V))return}else ge=D[rt]=[];const st=D.constructor.name,it=Ye[st];it&&(Oe=it[S]),Oe||(Oe=st+f+(G?G(S):S)),h.options=ae,nt&&(h.options.once=!1),h.target=D,h.capture=xe,h.eventName=S,h.isExisting=ot;const be=Q?Et:void 0;be&&(be.taskData=h);const Ee=bt.scheduleEventTask(Oe,V,be,g,b);return h.target=null,be&&(be.taskData=null),nt&&(ae.once=!0),!pe&&"boolean"==typeof Ee.options||(Ee.options=ae),Ee.target=D,Ee.capture=xe,Ee.eventName=S,F&&(Ee.originalDelegate=V),O?ge.unshift(Ee):ge.push(Ee),T?D:void 0}};return p[c]=u(I,v,t,r,j),Y&&(p.prependListener=u(Y,".prependListener:",function(s){return Y.call(h.target,h.eventName,s.invoke,h.options)},r,j,!0)),p[a]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],b=!!g&&("boolean"==typeof g||g.capture),T=arguments[1];if(!T)return w.apply(this,arguments);if(x&&!x(w,T,s,arguments))return;const O=oe[f];let D;O&&(D=O[b?ue:fe]);const S=D&&s[D];if(S)for(let V=0;V<S.length;V++){const F=S[V];if(C(F,T))return S.splice(V,1),F.isRemoved=!0,0===S.length&&(F.allRemoved=!0,s[D]=null,"string"==typeof f)&&(s[ke+"ON_PROPERTY"+f]=null),F.zone.cancelTask(F),j?s:void 0}return w.apply(this,arguments)},p[y]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],b=Qe(s,G?G(f):f);for(let T=0;T<b.length;T++){const O=b[T];g.push(O.originalDelegate?O.originalDelegate:O.callback)}return g},p[d]=function(){const s=this||e;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=oe[f];if(g){const O=s[g[fe]],D=s[g[ue]];if(O){const S=O.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}if(D){const S=D.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}}}else{const g=Object.keys(s);for(let b=0;b<g.length;b++){const O=$e.exec(g[b]);let D=O&&O[1];D&&"removeListener"!==D&&this[d].call(this,D)}this[d].call(this,"removeListener")}if(j)return this},de(p[c],I),de(p[a],w),ce&&de(p[d],ce),te&&de(p[y],te),!0}let X=[];for(let R=0;R<i.length;R++)X[R]=ee(i[R],o);return X}function Qe(e,n){if(!n){const a=[];for(let y in e){const d=$e.exec(y);let P=d&&d[1];if(P&&(!n||P===n)){const v=e[y];if(v)for(let m=0;m<v.length;m++)a.push(v[m])}}return a}let i=oe[n];i||(Je(n),i=oe[n]);const o=e[i[fe]],c=e[i[ue]];return o?c?o.concat(c):o.slice():c?c.slice():[]}function yt(e,n){const i=e.Event;i&&i.prototype&&n.patchMethod(i.prototype,"stopImmediatePropagation",o=>function(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function pt(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch(N){}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=he,i.bindArguments=Le,i.patchMacroTask=ht;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=yt,i.patchEventTarget=Tt,i.isIEOrEdge=_t,i.ObjectDefineProperty=J,i.ObjectGetOwnPropertyDescriptor=q,i.ObjectCreate=at,i.ArraySlice=lt,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=de,i._redefineProperty=Object.defineProperty,i.patchCallbacks=pt,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:oe,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ue,FALSE_STR:fe,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:De,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function me(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function P(v){return a.call(e,v.data.handleId)}c=he(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=he(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";me(e,n,i,"Timeout"),me(e,n,i,"Interval"),me(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{me(e,"request","cancel","AnimationFrame"),me(e,"mozRequest","mozCancel","AnimationFrame"),me(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;o<i.length;o++)he(e,i[o],(a,y,d)=>function(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function vt(e,n){n.patchEventPrototype(e,n)})(e,i),function kt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let P=0;P<i.length;P++){const v=i[P],Z=y+(v+a),N=y+(v+c);o[v]={},o[v][a]=Z,o[v][c]=N}const d=e.EventTarget;d&&d.prototype&&n.patchEventTarget(e,n,[d&&d.prototype])}(e,i);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&i.patchEventTarget(e,i,[o.prototype])}),Zone.__load_patch("MutationObserver",(e,n,i)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function mt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function dt(){try{const e=ye.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),re(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<o.length;c++){const a=n[o[c]];a&&a.prototype&&tt(a.prototype,He(a.prototype),i)}}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function gt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",ee="scheduled";function X(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const te=w[c];N||(N=w[Ze],B=w[Ne]),te&&B.call(w,H,te);const ce=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===ee){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const ie=h.invoke;h.invoke=function(){const ne=w[n.__symbol__("loadfalse")];for(let W=0;W<ne.length;W++)ne[W]===h&&ne.splice(W,1);!I.aborted&&h.state===ee&&ie.call(h)},U.push(h)}else h.invoke()}else!I.aborted&&!1===w[a]&&(w[d]=!0)};return N.call(w,H,ce),w[i]||(w[i]=h),p.apply(w,I.args),w[a]=!0,h}function R(){}function _(h){const I=h.data;return I.aborted=!0,G.apply(I.target,I.args)}const Q=he(L,"open",()=>function(h,I){return h[o]=0==I[2],h[y]=I[1],Q.apply(h,I)}),z=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=he(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},te=Me("XMLHttpRequest.send",R,w,X,_);h&&!0===h[d]&&!w.aborted&&te.state===ee&&te.invoke()}}),G=he(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[z])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function ft(e,n){const i=e.constructor.name;for(let o=0;o<n.length;o++){const c=n[o],a=e[c];if(a){if(!Fe(q(e,c)))continue;e[c]=(d=>{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return de(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},Ve={};function le(q){var J=Ve[q];if(void 0!==J)return J.exports;var re=Ve[q]={exports:{}};return ct[q](re,re.exports,le),re.exports}le.n=q=>{var J=q&&q.__esModule?()=>q.default:()=>q;return le.d(J,{a:J}),J},le.d=(q,J)=>{for(var re in J)le.o(J,re)&&!le.o(q,re)&&Object.defineProperty(q,re,{enumerable:!0,get:J[re]})},le.o=(q,J)=>Object.prototype.hasOwnProperty.call(q,J),le(583)})();
|
|
File without changes
|
|
@@ -61,6 +61,11 @@ export interface DraymanGrid {
|
|
|
61
61
|
columnWidths: number[];
|
|
62
62
|
changedColumnWidthIndex: number;
|
|
63
63
|
}>;
|
|
64
|
+
gridStyle?: any;
|
|
65
|
+
/**
|
|
66
|
+
* Snap to rows and columns when scrolling.
|
|
67
|
+
*/
|
|
68
|
+
scrollSnap?: boolean;
|
|
64
69
|
}
|
|
65
70
|
export interface GridCell {
|
|
66
71
|
overlay?: string;
|
|
@@ -55,4 +55,9 @@ export interface DraymanNebula {
|
|
|
55
55
|
onClearField?: ElementEvent<{
|
|
56
56
|
fieldId: any;
|
|
57
57
|
}>;
|
|
58
|
+
/**
|
|
59
|
+
* Custom URL for Nebula packages.
|
|
60
|
+
* By default, Nebula packages are loaded from https://unpkg.com/@nebula.js/PACKAGE_NAME.
|
|
61
|
+
*/
|
|
62
|
+
nebulaPackagesUrl?: string;
|
|
58
63
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FieldOptionsBase } from '../../../../shared/models/field-options-base';
|
|
2
|
+
export interface DraymanSlider extends FieldOptionsBase<boolean> {
|
|
3
|
+
/**
|
|
4
|
+
* @ignore
|
|
5
|
+
*/
|
|
6
|
+
placeholder?: never;
|
|
7
|
+
/**
|
|
8
|
+
* @ignore
|
|
9
|
+
*/
|
|
10
|
+
helpText?: never;
|
|
11
|
+
/**
|
|
12
|
+
* @ignore
|
|
13
|
+
*/
|
|
14
|
+
error?: never;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to show the value of the slider on the thumb.
|
|
17
|
+
*/
|
|
18
|
+
enableThumbLabel?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The interval between ticks.
|
|
21
|
+
*/
|
|
22
|
+
tickInterval?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The minimum value of the slider.
|
|
25
|
+
*/
|
|
26
|
+
min?: number;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum value of the slider.
|
|
29
|
+
*/
|
|
30
|
+
max?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The step value of the slider.
|
|
33
|
+
*/
|
|
34
|
+
step?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The color of the slider
|
|
37
|
+
*/
|
|
38
|
+
color?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to always show the value on the thumb.
|
|
41
|
+
*/
|
|
42
|
+
alwaysOnThumb?: boolean;
|
|
43
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drayman/elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.57.0",
|
|
4
4
|
"description": "A collection of web components for Drayman.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build:types": "tsc -p ./tsconfig.types.json",
|
|
13
13
|
"typedoc": "npm run build:types && typedoc --tsconfig ./tsconfig.types.json",
|
|
14
14
|
"lint": "ng lint",
|
|
15
|
-
"build": "npm run build:calendar && npm run build:code-editor && npm run build:button && npm run build:text-field && npm run build:claviz-charts && npm run build:file-uploader && npm run build:number-field && npm run build:select && npm run build:table && npm run build:checkbox && npm run build:textarea-field && npm run build:radio-group && npm run build:datepicker && npm run build:timepicker && npm run build:pdf-viewer && npm run build:ngx-charts && npm run build:menu && npm run build:ngx-graph && npm run build:youtube-player && npm run build:nebula && npm run build:grid && npm run build:gauge && npm run typedoc",
|
|
15
|
+
"build": "npm run build:calendar && npm run build:code-editor && npm run build:button && npm run build:text-field && npm run build:claviz-charts && npm run build:file-uploader && npm run build:number-field && npm run build:select && npm run build:table && npm run build:checkbox && npm run build:slider && npm run build:textarea-field && npm run build:radio-group && npm run build:datepicker && npm run build:timepicker && npm run build:pdf-viewer && npm run build:ngx-charts && npm run build:menu && npm run build:ngx-graph && npm run build:youtube-player && npm run build:nebula && npm run build:grid && npm run build:gauge && npm run typedoc",
|
|
16
16
|
"build:code-editor": "ng build code-editor --extra-webpack-config webpack.partial.js --configuration production --single-bundle --output-hashing=none",
|
|
17
17
|
"build:calendar": "ng build calendar --configuration production --single-bundle --output-hashing=none",
|
|
18
18
|
"build:button": "ng build button --configuration production --single-bundle --output-hashing=none",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"build:nebula": "ng build nebula --configuration production --single-bundle --output-hashing=none",
|
|
27
27
|
"build:table": "ng build table --configuration production --single-bundle --output-hashing=none",
|
|
28
28
|
"build:checkbox": "ng build checkbox --configuration production --single-bundle --output-hashing=none",
|
|
29
|
+
"build:slider": "ng build slider --configuration production --single-bundle --output-hashing=none",
|
|
29
30
|
"build:textarea-field": "ng build textarea-field --configuration production --single-bundle --output-hashing=none",
|
|
30
31
|
"build:radio-group": "ng build radio-group --configuration production --single-bundle --output-hashing=none",
|
|
31
32
|
"build:datepicker": "ng build datepicker --configuration production --single-bundle --output-hashing=none",
|
|
@@ -79,6 +80,9 @@
|
|
|
79
80
|
"drayman-checkbox": {
|
|
80
81
|
"script": "./dist/checkbox/main.js"
|
|
81
82
|
},
|
|
83
|
+
"drayman-slider": {
|
|
84
|
+
"script": "./dist/slider/main.js"
|
|
85
|
+
},
|
|
82
86
|
"drayman-menu": {
|
|
83
87
|
"script": "./dist/menu/main.js"
|
|
84
88
|
},
|
|
@@ -188,4 +192,4 @@
|
|
|
188
192
|
"typescript-json-schema": "0.43.0",
|
|
189
193
|
"zone.js": "~0.11.4"
|
|
190
194
|
}
|
|
191
|
-
}
|
|
195
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { DraymanNebula } from '../dist/types/nebula/src/app/models/nebula-option
|
|
|
20
20
|
import { DraymanGrid } from '../dist/types/grid/src/app/models/grid-options';
|
|
21
21
|
import { DraymanCodeEditor } from '../dist/types/code-editor/src/app/models/code-editor-options';
|
|
22
22
|
import { DraymanCalendar } from '../dist/types/calendar/src/app/models/calendar-options';
|
|
23
|
+
import { DraymanSlider } from '../dist/types/slider/src/app/models/slider-options';
|
|
23
24
|
|
|
24
25
|
declare global {
|
|
25
26
|
interface DraymanElementsProps {
|
|
@@ -274,6 +275,44 @@ declare global {
|
|
|
274
275
|
* ```
|
|
275
276
|
*/
|
|
276
277
|
interface DraymanCheckboxProps extends DraymanCheckbox, DraymanElementsProps { }
|
|
278
|
+
/**
|
|
279
|
+
* # <drayman-slider \/>
|
|
280
|
+
*
|
|
281
|
+
* Slider powered by [Angular Material](https://material.angular.io/) library.
|
|
282
|
+
*
|
|
283
|
+
* ## Example of usage
|
|
284
|
+
*
|
|
285
|
+
* ### Orange slider with thumb label always on
|
|
286
|
+
* 
|
|
287
|
+
*
|
|
288
|
+
* ```typescript
|
|
289
|
+
* export const component: DraymanComponent = async ({ forceUpdate }) => {
|
|
290
|
+
*
|
|
291
|
+
* let currentValue = 0;
|
|
292
|
+
*
|
|
293
|
+
* return () => {
|
|
294
|
+
* return (
|
|
295
|
+
* <div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100%', flexDirection: 'column' }}>
|
|
296
|
+
* <drayman-slider
|
|
297
|
+
* onValueChange={async ({ value }) => {
|
|
298
|
+
* currentValue = value;
|
|
299
|
+
* await forceUpdate();
|
|
300
|
+
* }}
|
|
301
|
+
* enableThumbLabel
|
|
302
|
+
* color="orange"
|
|
303
|
+
* alwaysOnThumb
|
|
304
|
+
* min={-1000}
|
|
305
|
+
* max={1000}
|
|
306
|
+
* value={currentValue}
|
|
307
|
+
* />
|
|
308
|
+
* <div>Current value on server: {currentValue}</div>
|
|
309
|
+
* </div>
|
|
310
|
+
* );
|
|
311
|
+
* }
|
|
312
|
+
* }
|
|
313
|
+
* ```
|
|
314
|
+
*/
|
|
315
|
+
interface DraymanSliderProps extends DraymanSlider, DraymanElementsProps { }
|
|
277
316
|
/**
|
|
278
317
|
* # <drayman-claviz-charts \/>
|
|
279
318
|
*
|