UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue)

1 lines 14.1 kB
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["column"]=e():t["column"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"06cf":function(t,e,n){var r=n("83ab"),o=n("d1e7"),c=n("5c6c"),u=n("fc6a"),i=n("c04e"),f=n("5135"),a=n("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=u(t),e=i(e,!0),a)try{return l(t,e)}catch(n){}if(f(t,e))return c(!o.f.call(t,e),t[e])}},"0cfb":function(t,e,n){var r=n("83ab"),o=n("d039"),c=n("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"23cb":function(t,e,n){var r=n("a691"),o=Math.max,c=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):c(n,e)}},"241c":function(t,e,n){var r=n("ca84"),o=n("7839"),c=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,c)}},"37e8":function(t,e,n){var r=n("83ab"),o=n("9bf2"),c=n("825a"),u=n("df75");t.exports=r?Object.defineProperties:function(t,e){c(t);var n,r=u(e),i=r.length,f=0;while(i>f)o.f(t,n=r[f++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),o=n("c6b6"),c="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?c.call(t,""):Object(t)}:Object},"4d64":function(t,e,n){var r=n("fc6a"),o=n("50c4"),c=n("23cb"),u=function(t){return function(e,n,u){var i,f=r(e),a=o(f.length),l=c(u,a);if(t&&n!=n){while(a>l)if(i=f[l++],i!=i)return!0}else for(;a>l;l++)if((t||l in f)&&f[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},"50c4":function(t,e,n){var r=n("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.1",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),o=n("5899"),c="["+o+"]",u=RegExp("^"+c+c+"*"),i=RegExp(c+c+"*$"),f=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(u,"")),2&t&&(n=n.replace(i,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"69f3":function(t,e,n){var r,o,c,u=n("7f9a"),i=n("da84"),f=n("861d"),a=n("9112"),l=n("5135"),p=n("c6cd"),s=n("f772"),d=n("d012"),y=i.WeakMap,b=function(t){return c(t)?o(t):r(t,{})},v=function(t){return function(e){var n;if(!f(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(u){var g=p.state||(p.state=new y),h=g.get,m=g.has,x=g.set;r=function(t,e){return e.facade=t,x.call(g,t,e),e},o=function(t){return h.call(g,t)||{}},c=function(t){return m.call(g,t)}}else{var S=s("state");d[S]=!0,r=function(t,e){return e.facade=t,a(t,S,e),e},o=function(t){return l(t,S)?t[S]:{}},c=function(t){return l(t,S)}}t.exports={set:r,get:o,has:c,enforce:b,getterFor:v}},"6eeb":function(t,e,n){var r=n("da84"),o=n("9112"),c=n("5135"),u=n("ce4e"),i=n("8925"),f=n("69f3"),a=f.get,l=f.enforce,p=String(String).split("String");(t.exports=function(t,e,n,i){var f,a=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,d=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||c(n,"name")||o(n,"name",e),f=l(n),f.source||(f.source=p.join("string"==typeof e?e:""))),t!==r?(a?!d&&t[e]&&(s=!0):delete t[e],s?t[e]=n:o(t,e,n)):s?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||i(this)}))},7156:function(t,e,n){var r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var c,u;return o&&"function"==typeof(c=e.constructor)&&c!==n&&r(u=c.prototype)&&u!==n.prototype&&o(t,u),t}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7c73":function(t,e,n){var r,o=n("825a"),c=n("37e8"),u=n("7839"),i=n("d012"),f=n("1be4"),a=n("cc12"),l=n("f772"),p=">",s="<",d="prototype",y="script",b=l("IE_PROTO"),v=function(){},g=function(t){return s+y+p+t+s+"/"+y+p},h=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){var t,e=a("iframe"),n="java"+y+":";return e.style.display="none",f.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=r?h(r):m();var t=u.length;while(t--)delete x[d][u[t]];return x()};i[b]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[d]=o(t),n=new v,v[d]=null,n[b]=t):n=x(),void 0===e?n:c(n,e)}},"7f9a":function(t,e,n){var r=n("da84"),o=n("8925"),c=r.WeakMap;t.exports="function"===typeof c&&/native code/.test(o(c))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,o,c;(function(n,u){o=[],r=u,c="function"===typeof r?r.apply(e,o):r,void 0===c||(t.exports=c)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,o,c=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,u=/@([^@]*):(\d+):(\d+)\s*$/gi,i=c.exec(d.stack)||u.exec(d.stack),f=i&&i[1]||!1,a=i&&i[2]||!1,l=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");f===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var s=0;s<p.length;s++){if("interactive"===p[s].readyState)return p[s];if(p[s].src===f)return p[s];if(f===l&&p[s].innerHTML&&p[s].innerHTML.trim()===o)return p[s]}return null}}return t}))},8925:function(t,e,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),o=n("9bf2"),c=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,c(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),o=/#|\.prototype\./,c=function(t,e){var n=i[u(t)];return n==a||n!=f&&("function"==typeof e?r(e):!!e)},u=c.normalize=function(t){return String(t).replace(o,".").toLowerCase()},i=c.data={},f=c.NATIVE="N",a=c.POLYFILL="P";t.exports=c},"9bf2":function(t,e,n){var r=n("83ab"),o=n("0cfb"),c=n("825a"),u=n("c04e"),i=Object.defineProperty;e.f=r?i:function(t,e,n){if(c(t),e=u(e,!0),c(n),o)try{return i(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),o=n("da84"),c=n("94ca"),u=n("6eeb"),i=n("5135"),f=n("c6b6"),a=n("7156"),l=n("c04e"),p=n("d039"),s=n("7c73"),d=n("241c").f,y=n("06cf").f,b=n("9bf2").f,v=n("58a8").trim,g="Number",h=o[g],m=h.prototype,x=f(s(m))==g,S=function(t){var e,n,r,o,c,u,i,f,a=l(t,!1);if("string"==typeof a&&a.length>2)if(a=v(a),e=a.charCodeAt(0),43===e||45===e){if(n=a.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(a.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+a}for(c=a.slice(2),u=c.length,i=0;i<u;i++)if(f=c.charCodeAt(i),f<48||f>o)return NaN;return parseInt(c,r)}return+a};if(c(g,!h(" 0o1")||!h("0b1")||h("+0x1"))){for(var w,O=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof O&&(x?p((function(){m.valueOf.call(n)})):f(n)!=g)?a(new h(S(e)),n,O):S(e)},j=r?d(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),E=0;j.length>E;E++)i(h,w=j[E])&&!i(O,w)&&b(O,w,y(h,w));O.prototype=m,m.constructor=O,u(o,g,O)}},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),o=n("ce4e"),c="__core-js_shared__",u=r[c]||o(c,{});t.exports=u},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),o=n("fc6a"),c=n("4d64").indexOf,u=n("d012");t.exports=function(t,e){var n,i=o(t),f=0,a=[];for(n in i)!r(u,n)&&r(i,n)&&a.push(n);while(e.length>f)r(i,n=e[f++])&&(~c(a,n)||a.push(n));return a}},cc12:function(t,e,n){var r=n("da84"),o=n("861d"),c=r.document,u=o(c)&&o(c.createElement);t.exports=function(t){return u?c.createElement(t):{}}},ce4e:function(t,e,n){var r=n("da84"),o=n("9112");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),o=n("da84"),c=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?c(r[t])||c(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!r.call({1:2},1);e.f=c?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(c){}return function(n,c){return r(n),o(c),e?t.call(n,c):n.__proto__=c,n}}():void 0)},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},df75:function(t,e,n){var r=n("ca84"),o=n("7839");t.exports=Object.keys||function(t){return r(t,o)}},f772:function(t,e,n){var r=n("5692"),o=n("90e3"),c=r("keys");t.exports=function(t){return c[t]||(c[t]=o(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var c=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(n.p=c[1])}n("a9e3");var u={name:"column",props:{columnKey:{type:null,default:null},field:{type:String,default:null},sortField:{type:[String,Function],default:null},filterField:{type:String,default:null},sortable:{type:Boolean,default:!1},header:{type:null,default:null},footer:{type:null,default:null},headerStyle:{type:null,default:null},headerClass:{type:String,default:null},bodyStyle:{type:null,default:null},bodyClass:{type:String,default:null},footerStyle:{type:null,default:null},footerClass:{type:String,default:null},filterHeaderClass:{type:String,default:null},filterHeaderStyle:{type:null,default:!1},filterMatchMode:{type:String,default:"startsWith"},filterFunction:{type:Function,default:null},excludeGlobalFilter:{type:Boolean,default:!1},selectionMode:{type:String,default:null},expander:{type:Boolean,default:!1},colspan:{type:Number,default:null},rowspan:{type:Number,default:null},rowReorder:{type:Boolean,default:!1},rowReorderIcon:{type:String,default:"pi pi-bars"},reorderableColumn:{type:Boolean,default:!0},rowEditor:{type:Boolean,default:!1},frozen:{type:Boolean,default:!1}},render:function(){return null}},i=u;e["default"]=i},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}}})["default"]}));