@qaecy/cue-ui 0.0.57 → 0.0.59

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.
Files changed (79) hide show
  1. package/1051.js +1 -1
  2. package/1138.js +1 -1
  3. package/1153.js +1 -1
  4. package/1338.js +1 -1
  5. package/1520.js +1 -0
  6. package/1701.js +1 -0
  7. package/1837.js +1 -1
  8. package/1985.js +1 -1
  9. package/2014.js +1 -0
  10. package/2245.js +1 -1
  11. package/2283.js +1 -0
  12. package/2317.js +1 -1
  13. package/2775.js +1 -1
  14. package/2839.js +1 -1
  15. package/29.js +1 -1
  16. package/3036.js +1 -1
  17. package/3039.js +1 -1
  18. package/3202.js +1 -0
  19. package/3213.js +1 -0
  20. package/3288.js +1 -1
  21. package/3319.js +1 -0
  22. package/3577.js +1 -1
  23. package/3614.js +1 -1
  24. package/3842.js +1 -0
  25. package/3869.js +1 -0
  26. package/4098.js +1 -0
  27. package/4283.js +1 -1
  28. package/4311.js +1 -1
  29. package/4791.js +1 -0
  30. package/5381.js +1 -0
  31. package/5448.js +1 -0
  32. package/5559.js +1 -1
  33. package/5649.js +1 -1
  34. package/5738.js +1 -1
  35. package/5872.js +1 -1
  36. package/5971.js +1 -0
  37. package/6027.js +1 -0
  38. package/617.js +1 -1
  39. package/6233.js +1 -1
  40. package/63.js +1 -1
  41. package/6419.js +1 -1
  42. package/6423.js +1 -1
  43. package/650.js +1 -1
  44. package/6947.js +1 -1
  45. package/7089.js +1 -0
  46. package/7154.js +1 -0
  47. package/7313.js +1 -0
  48. package/7441.js +1 -1
  49. package/7719.js +1 -1
  50. package/7727.js +1 -0
  51. package/7802.js +1 -0
  52. package/7851.js +1 -0
  53. package/804.js +1 -1
  54. package/8194.js +1 -0
  55. package/8560.js +1 -1
  56. package/8659.js +1 -0
  57. package/8957.js +1 -1
  58. package/928.js +1 -1
  59. package/9396.js +1 -1
  60. package/9707.js +1 -0
  61. package/992.js +1 -0
  62. package/common.js +1 -1
  63. package/index.js +1 -1
  64. package/main.js +1 -1
  65. package/package.json +1 -1
  66. package/2021.js +0 -1
  67. package/2081.js +0 -1
  68. package/2399.js +0 -1
  69. package/2516.js +0 -1
  70. package/4687.js +0 -1
  71. package/4879.js +0 -1
  72. package/5041.js +0 -1
  73. package/5071.js +0 -1
  74. package/5137.js +0 -1
  75. package/7056.js +0 -1
  76. package/8336.js +0 -1
  77. package/8791.js +0 -1
  78. package/8855.js +0 -1
  79. package/9376.js +0 -1
package/992.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[992],{4152(_e,K,k){k.d(K,{B:()=>H});var I=k(2065),D=k(7284),F=k.n(D);function H(N,C,b="table.csv"){const V=C.map(p=>p.label),x=N.map(p=>C.map(B=>B.formatter?B.formatter(p[B.key]):p[B.key])),U=F().unparse({fields:V,data:x});(0,I.YN)(U,b,"text/csv")}},992(_e,K,k){k.d(K,{a:()=>ct});var I=k(2271),D=k(5802);function F(e){return Array.isArray?Array.isArray(e):"[object Array]"===ue(e)}function N(e){return null==e?"":function H(e){if("string"==typeof e)return e;if("bigint"==typeof e)return e.toString();const t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function C(e){return"string"==typeof e}function b(e){return"number"==typeof e}function x(e){return"object"==typeof e}function p(e){return null!=e}function B(e){return!e.trim().length}function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Q="Invalid doc index: must be a non-negative integer within the bounds of the docs array",he=Object.prototype.hasOwnProperty;var we=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(s=>{const n=ae(s);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(s=>{s.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function ae(e){let t=null,s=null,n=null,i=1,r=null;if(C(e)||F(e))n=e,t=le(e),s=P(e);else{if(!he.call(e,"name"))throw new Error("Missing name property in key");const c=e.name;if(n=c,he.call(e,"weight")&&void 0!==e.weight&&(i=e.weight,i<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(P(c)));t=le(c),s=P(c),r=e.getFn??null}return{path:t,id:s,weight:i,src:n,getFn:r}}function le(e){return F(e)?e:e.split(".")}function P(e){return F(e)?e.join("."):e}const d=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:function be(e,t){const s=[];let n=!1;const i=(r,c,u,o)=>{if(p(r))if(c[u]){const a=r[c[u]];if(!p(a))return;if(u===c.length-1&&(C(a)||b(a)||function V(e){return!0===e||!1===e||function U(e){return x(e)&&null!==e}(e)&&"[object Boolean]"==ue(e)}(a)||"bigint"==typeof a))s.push(void 0!==o?{v:N(a),i:o}:N(a));else if(F(a)){n=!0;for(let h=0,l=a.length;h<l;h+=1)i(a[h],c,u+1,h)}else c.length&&i(a,c,u+1,o)}else s.push(void 0!==o?{v:r,i:o}:r)};return i(e,C(t)?t.split("."):t,0),n?s:s[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1});var Y=class{constructor({getFn:e=d.getFn,fieldNormWeight:t=d.fieldNormWeight}={}){this.norm=function Te(e=1,t=3){const s=new Map,n=Math.pow(10,t);return{get(i){let r=1,c=!1;for(let o=0;o<i.length;o++)32===i.charCodeAt(o)?c||(r++,c=!0):c=!1;if(s.has(r))return s.get(r);const u=Math.round(n/Math.pow(r,.5*e))/n;return s.set(r,u),u},clear(){s.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((t,s)=>{this._keysMap[t.id]=s})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let t=0;if(C(this.docs[0]))for(let s=0;s<e;s++){const n=this._createStringRecord(this.docs[s],s);n&&(this.records[t++]=n)}else for(let s=0;s<e;s++)this.records[t++]=this._createObjectRecord(this.docs[s],s);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(Q);if(C(e)){const n=this._createStringRecord(e,t);return n&&this.records.push(n),n}const s=this._createObjectRecord(e,t);return this.records.push(s),s}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(Q);for(let t=0,s=this.records.length;t<s;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,s=this.records.length;t<s;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(0===t.size)return;this.records=this.records.filter(n=>!t.has(n.i));const s=Array.from(t).sort((n,i)=>n-i);for(const n of this.records){let i=0,r=s.length;for(;i<r;){const c=i+r>>>1;s[c]<n.i?i=c+1:r=c}n.i-=i}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!p(e)||B(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){const s={i:t,$:{}};for(let n=0,i=this.keys.length;n<i;n++){const r=this.keys[n],c=r.getFn?r.getFn(e):this.getFn(e,r.path);if(p(c))if(F(c)){const u=[];for(let o=0,a=c.length;o<a;o+=1){const h=c[o];if(p(h))if(C(h)){if(!B(h)){const l={v:h,i:o,n:this.norm.get(h)};u.push(l)}}else if(p(h.v)){const l=C(h.v)?h.v:N(h.v);if(!B(l)){const f={v:l,i:h.i,n:this.norm.get(l)};u.push(f)}}}s.$[n]=u}else if(C(c)&&!B(c)){const u={v:c,n:this.norm.get(c)};s.$[n]=u}}return s}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function fe(e,t,{getFn:s=d.getFn,fieldNormWeight:n=d.fieldNormWeight}={}){const i=new Y({getFn:s,fieldNormWeight:n});return i.setKeys(e.map(ae)),i.setSources(t),i.create(),i}function Oe(e,{getFn:t=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){const{keys:n,records:i}=e,r=new Y({getFn:t,fieldNormWeight:s});return r.setKeys(n),r.setIndexRecords(i),r}function Le(e){const t={};for(let s=0,n=e.length;s<n;s+=1){const i=e.charAt(s);t[i]=(t[i]||0)|1<<n-s-1}return t}function G(e){if(e.length<=1)return e;e.sort((s,n)=>s[0]-n[0]||s[1]-n[1]);const t=[e[0]];for(let s=1,n=e.length;s<n;s+=1){const i=t[t.length-1],r=e[s];r[0]<=i[1]+1?i[1]=Math.max(i[1],r[1]):t.push(r)}return t}const de={\u0142:"l",\u0141:"L",\u0111:"d",\u0110:"D",\u00f8:"o",\u00d8:"O",\u0127:"h",\u0126:"H",\u0167:"t",\u0166:"T",\u0131:"i",\u00df:"ss"},xe=new RegExp("["+Object.keys(de).join("")+"]","g"),R="function"==typeof String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(xe,t=>de[t]):e=>e;var J=class{constructor(e,{location:t=d.location,threshold:s=d.threshold,distance:n=d.distance,includeMatches:i=d.includeMatches,findAllMatches:r=d.findAllMatches,minMatchCharLength:c=d.minMatchCharLength,isCaseSensitive:u=d.isCaseSensitive,ignoreDiacritics:o=d.ignoreDiacritics,ignoreLocation:a=d.ignoreLocation}={}){if(this.options={location:t,threshold:s,distance:n,includeMatches:i,findAllMatches:r,minMatchCharLength:c,isCaseSensitive:u,ignoreDiacritics:o,ignoreLocation:a},e=u?e:e.toLowerCase(),e=o?R(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const h=(f,m)=>{this.chunks.push({pattern:f,alphabet:Le(f),startIndex:m})},l=this.pattern.length;if(l>32){let f=0;const m=l%32,g=l-m;for(;f<g;)h(this.pattern.substr(f,32),f),f+=32;if(m){const A=l-32;h(this.pattern.substr(A),A)}}else h(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:s,includeMatches:n}=this.options;if(e=t?e:e.toLowerCase(),e=s?R(e):e,this.pattern===e){const g={isMatch:!0,score:0};return n&&(g.indices=[[0,e.length-1]]),g}const{location:i,distance:r,threshold:c,findAllMatches:u,minMatchCharLength:o,ignoreLocation:a}=this.options,h=[];let l=0,f=!1;this.chunks.forEach(({pattern:g,alphabet:A,startIndex:M})=>{const{isMatch:y,score:T,indices:w}=function Re(e,t,s,{location:n=d.location,distance:i=d.distance,threshold:r=d.threshold,findAllMatches:c=d.findAllMatches,minMatchCharLength:u=d.minMatchCharLength,includeMatches:o=d.includeMatches,ignoreLocation:a=d.ignoreLocation}={}){if(t.length>32)throw new Error("Pattern length exceeds max of 32.");const h=t.length,l=e.length,f=Math.max(0,Math.min(n,l));let m=r,g=f;const A=(v,E)=>{const _=v/h;if(a)return _;const L=Math.abs(f-E);return i?_+L/i:L?1:_},M=u>1||o,y=M?Array(l):[];let T;for(;(T=e.indexOf(t,g))>-1;){const v=A(0,T);if(m=Math.min(v,m),g=T+h,M){let E=0;for(;E<h;)y[T+E]=1,E+=1}}g=-1;let w=[],j=1,De=0,W=h+l;const ut=1<<h-1;for(let v=0;v<h;v+=1){let E=0,_=W;for(;E<_;)A(v,f+_)<=m?E=_:W=_,_=Math.floor((W-E)/2+E);W=_;let L=Math.max(1,f-_+1);const oe=c?l:Math.min(f+_,l)+h,O=Array(oe+2);O[oe+1]=(1<<v)-1;for(let S=oe;S>=L;S-=1){const ce=S-1;if(O[S]=(O[S+1]<<1|1)&s[e[ce]],v&&(O[S]|=(w[S+1]|w[S])<<1|1|w[S+1]),O[S]&ut&&(j=A(v,ce),j<=m)){if(m=j,g=ce,De=v,g<=f)break;L=Math.max(1,2*f-g)}}if(A(v+1,f)>m)break;w=O}if(M&&g>=0){const v=Math.min(l-1,g+h-1+De);for(let E=g;E<=v;E+=1)s[e[E]]&&(y[E]=1)}const re={isMatch:g>=0,score:Math.max(.001,j)};if(M){const v=function Ne(e=[],t=d.minMatchCharLength){const s=[];let n=-1,i=-1,r=0;for(let c=e.length;r<c;r+=1){const u=e[r];u&&-1===n?n=r:!u&&-1!==n&&(i=r-1,i-n+1>=t&&s.push([n,i]),n=-1)}return e[r-1]&&r-n>=t&&s.push([n,r-1]),s}(y,u);v.length?o&&(re.indices=v):re.isMatch=!1}return re}(e,g,A,{location:i+M,distance:r,threshold:c,findAllMatches:u,minMatchCharLength:o,includeMatches:n,ignoreLocation:a});y&&(f=!0),l+=T,y&&w&&h.push(...w)});const m={isMatch:f,score:f?l/this.chunks.length:1};return f&&n&&(m.indices=G(h)),m}};const Pe=new Set(["fuzzy","include"]);function $e(e){return e.startsWith("inverse")}const X=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const s=t===e;return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let n,s=0;const i=[],r=e.length;for(;(n=t.indexOf(e,s))>-1;)s=n+r,i.push([n,s-1]);const c=!!i.length;return{isMatch:c,score:c?0:1,indices:i}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){const s=t.startsWith(e);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const s=!t.startsWith(e);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const s=!t.endsWith(e);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const s=t.endsWith(e);return{isMatch:s,score:s?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const s=-1===t.indexOf(e);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const s=new J(e,{location:t.location??d.location,threshold:t.threshold??d.threshold,distance:t.distance??d.distance,includeMatches:t.includeMatches??d.includeMatches,findAllMatches:t.findAllMatches??d.findAllMatches,minMatchCharLength:t.minMatchCharLength??d.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??d.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??d.ignoreDiacritics,ignoreLocation:t.ignoreLocation??d.ignoreLocation});return{type:"fuzzy",search:n=>s.searchIn(n)}}}],ge=X.length;function me(e,t){const s=e.match(t);return s?s[1]:null}const Z=[];function q(...e){Z.push(...e)}function $(e,t){for(let s=0,n=Z.length;s<n;s+=1){const i=Z[s];if(i.condition(e,t))return new i(e,t)}return new J(e,t)}const z_AND="$and",te=e=>!(!e.$and&&!e.$or),Ae=e=>({[z_AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Ce(e,t,{auto:s=!0}={}){const n=i=>{if(C(i)){const o={keyId:null,pattern:i};return s&&(o.searcher=$(i,t)),o}const r=Object.keys(i),c=(e=>!!e.$path)(i);if(!c&&r.length>1&&!te(i))return n(Ae(i));if((e=>!F(e)&&x(e)&&!te(e))(i)){const o=c?i.$path:r[0],a=c?i.$val:i[o];if(!C(a))throw new Error((e=>`Invalid value for key ${e}`)(o));const h={keyId:P(o),pattern:a};return s&&(h.searcher=$(a,t)),h}const u={children:[],operator:r[0]};return r.forEach(o=>{const a=i[o];F(a)&&a.forEach(h=>{u.children.push(n(h))})}),u};return te(e)||(e=Ae(e)),n(e)}function se(e,{ignoreFieldNorm:t=d.ignoreFieldNorm}){let s=1;return e.forEach(({key:n,norm:i,score:r})=>{const c=n?n.weight:null;s*=Math.pow(0===r&&c?Number.EPSILON:r,(c||1)*(t?1:i))}),s}var Ye=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){const t=this.heap;for(;e>0;){const s=e-1>>1;if(t[e].score<=t[s].score)break;const n=t[e];t[e]=t[s],t[s]=n,e=s}}_sinkDown(e){const t=this.heap,s=t.length;let n=e;do{const i=2*(e=n)+1,r=2*e+2;if(i<s&&t[i].score>t[n].score&&(n=i),r<s&&t[r].score>t[n].score&&(n=r),n!==e){const c=t[e];t[e]=t[n],t[n]=c}}while(n!==e)}};const Xe=/[\p{L}\p{M}\p{N}_]+/gu,pe=new WeakSet;function ne({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:s}={}){const n=function qe(e){if("function"==typeof e){let t=!1;return s=>{const n=e(s);if(!t&&(t=!0,!Array.isArray(n)||n.some(i=>"string"!=typeof i)))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(n)?"array containing non-strings":typeof n}.`);return n}}return e instanceof RegExp?(e.global||function Ze(e){pe.has(e)||(pe.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}(e),t=>t.match(e)||[]):t=>t.match(Xe)||[]}(s);return{tokenize:i=>(e||(i=i.toLowerCase()),t&&(i=R(i)),n(i))}}function ie(e,t,s,n){const i=n.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(s,(e.docFieldCount.get(s)||0)+1);const r=new Set(i);let c=e.docTermFieldHits.get(s);c||(c=new Map,e.docTermFieldHits.set(s,c));for(const u of r)c.set(u,(c.get(u)||0)+1),e.df.set(u,(e.df.get(u)||0)+1)}function Me(e,t,s,n){const{i,v:r,$:c}=t;if(void 0===r){if(c)for(let u=0;u<s;u++){const o=c[u];if(o)if(Array.isArray(o))for(const a of o)ie(e,a.v,i,n);else ie(e,o.v,i,n)}}else ie(e,r,i,n)}function nt(e,t){const s=e.docFieldCount.get(t);if(void 0===s)return;e.fieldCount-=s,e.docFieldCount.delete(t);const n=e.docTermFieldHits.get(t);if(n){for(const[i,r]of n){const c=(e.df.get(i)||0)-r;c<=0?e.df.delete(i):e.df.set(i,c)}e.docTermFieldHits.delete(t)}}function ve(e,t){if(0===t.length)return;const s=Array.from(new Set(t)).sort((u,o)=>u-o);for(const u of s)nt(e,u);const n=u=>{let o=0,a=s.length;for(;o<a;){const h=o+a>>>1;s[h]<u?o=h+1:a=h}return u-o},i=s[0],r=new Map;for(const[u,o]of e.docFieldCount)r.set(u>i?n(u):u,o);e.docFieldCount=r;const c=new Map;for(const[u,o]of e.docTermFieldHits)c.set(u>i?n(u):u,o);e.docTermFieldHits=c}var Ee=(()=>{let e=class{constructor(t,s,n){this.options={...d,...s},this._keyStore=new we(this.options.keys),this._docs=t,this._myIndex=null,this._invertedIndex=null,this.setCollection(t,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(t){if(this._lastQuery===t)return this._lastSearcher;const s=$(t,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=t,this._lastSearcher=s,s}setCollection(t,s){if(this._docs=t,s&&!(s instanceof Y))throw new Error("Incorrect 'index' type");if(this._myIndex=s||fe(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const n=ne({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function tt(e,t,s){const n={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const i of e)Me(n,i,t,s);return n}(this._myIndex.records,this._myIndex.keys.length,n)}this._invalidateSearcherCache()}add(t){if(!p(t))return;this._docs.push(t);const s=this._myIndex.add(t,this._docs.length-1);if(this._invertedIndex&&s){const n=ne({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});!function st(e,t,s,n){Me(e,t,s,n)}(this._invertedIndex,s,this._myIndex.keys.length,n)}this._invalidateSearcherCache()}remove(t=()=>!1){const s=[],n=[];for(let i=0,r=this._docs.length;i<r;i+=1)t(this._docs[i],i)&&(s.push(this._docs[i]),n.push(i));if(n.length){this._invertedIndex&&ve(this._invertedIndex,n);const i=new Set(n);this._docs=this._docs.filter((r,c)=>!i.has(c)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return s}removeAt(t){if(!Number.isInteger(t)||t<0||t>=this._docs.length)throw new Error(Q);this._invertedIndex&&ve(this._invertedIndex,[t]);const s=this._docs.splice(t,1)[0];return this._myIndex.removeAt(t),this._invalidateSearcherCache(),s}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}search(t,s){const{limit:n=-1}=s||{},{includeMatches:i,includeScore:r,shouldSort:c,sortFn:u,ignoreFieldNorm:o}=this.options;if(C(t)&&!t.trim()){let l=this._docs.map((f,m)=>({item:f,refIndex:m}));return b(n)&&n>-1&&(l=l.slice(0,n)),l}let h;if(b(n)&&n>0&&C(t)){const l=new Ye(n);C(this._docs[0])?this._searchStringList(t,{heap:l,ignoreFieldNorm:o}):this._searchObjectList(t,{heap:l,ignoreFieldNorm:o}),h=l.extractSorted(u)}else h=C(t)?C(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t),function Qe(e,{ignoreFieldNorm:t=d.ignoreFieldNorm}){e.forEach(s=>{s.score=se(s.matches,{ignoreFieldNorm:t})})}(h,{ignoreFieldNorm:o}),c&&h.sort(u),b(n)&&n>-1&&(h=h.slice(0,n));return function Je(e,t,{includeMatches:s=d.includeMatches,includeScore:n=d.includeScore}={}){return e.map(i=>{const{idx:r}=i,c={item:t[r],refIndex:r};return s&&(c.matches=function Ge(e){const t=[];return e.matches.forEach(s=>{if(!p(s.indices)||!s.indices.length)return;const n={indices:s.indices,value:s.value};s.key&&(n.key=s.key.id),s.idx>-1&&(n.refIndex=s.idx),t.push(n)}),t}(i)),n&&(c.score=i.score),c})}(h,this._docs,{includeMatches:i,includeScore:r})}_searchStringList(t,{heap:s,ignoreFieldNorm:n}={}){const i=this._getSearcher(t),r=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:c}=this._myIndex,u=s?null:[];return c.forEach(({v:o,i:a,n:h})=>{if(!p(o))return;const l=i.searchIn(o);if(l.isMatch){const f={score:l.score,value:o,norm:h,indices:l.indices};r&&(f.matchedMask=l.matchedMask,f.matchedTerms=l.matchedTerms,f.termCount=l.termCount);const m=[f];if(!r||this._coversAllTokens(m)){const g={item:o,idx:a,matches:m};s?(g.score=se(g.matches,{ignoreFieldNorm:n}),s.shouldInsert(g.score)&&s.insert(g)):u.push(g)}}}),u}_searchLogical(t){const s=Ce(t,this.options),n=(u,o,a)=>{if(!("children"in u)){const{keyId:m,searcher:g}=u;let A;return null===m?(A=[],this._myIndex.keys.forEach((M,y)=>{A.push(...this._findMatches({key:M,value:o[y],searcher:g}))})):A=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(o,m),searcher:g}),A&&A.length?[{idx:a,item:o,matches:A}]:[]}const{children:h,operator:l}=u,f=[];for(let m=0,g=h.length;m<g;m+=1){const M=n(h[m],o,a);if(M.length)f.push(...M);else if("$and"===l)return[]}return f},i=this._myIndex.records,r=new Map,c=[];return i.forEach(({$:u,i:o})=>{if(p(u)){const a=n(s,u,o);a.length&&(r.has(o)||(r.set(o,{idx:o,item:u,matches:[]}),c.push(r.get(o))),a.forEach(({matches:h})=>{r.get(o).matches.push(...h)}))}}),c}_searchObjectList(t,{heap:s,ignoreFieldNorm:n}={}){const i=this._getSearcher(t),r=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{keys:c,records:u}=this._myIndex,o=s?null:[];return u.forEach(({$:a,i:h})=>{if(!p(a))return;const l=[];let f=!1,m=!1;if(c.forEach((g,A)=>{const M=this._findMatches({key:g,value:a[A],searcher:i});M.length?(l.push(...M),M[0].hasInverse&&(m=!0)):f=!0}),(!m||!f)&&l.length&&(!r||this._coversAllTokens(l))){const g={idx:h,item:a,matches:l};s?(g.score=se(g.matches,{ignoreFieldNorm:n}),s.shouldInsert(g.score)&&s.insert(g)):o.push(g)}}),o}_findMatches({key:t,value:s,searcher:n}){if(!p(s))return[];const i=[];if(F(s))s.forEach(({v:r,i:c,n:u})=>{if(!p(r))return;const o=n.searchIn(r);if(o.isMatch){const a={score:o.score,key:t,value:r,idx:c,norm:u,indices:o.indices,hasInverse:o.hasInverse};void 0!==o.termCount&&(a.matchedMask=o.matchedMask,a.matchedTerms=o.matchedTerms,a.termCount=o.termCount),i.push(a)}});else{const{v:r,n:c}=s,u=n.searchIn(r);if(u.isMatch){const o={score:u.score,key:t,value:r,norm:c,indices:u.indices,hasInverse:u.hasInverse};void 0!==u.termCount&&(o.matchedMask=u.matchedMask,o.matchedTerms=u.matchedTerms,o.termCount=u.termCount),i.push(o)}}return i}_coversAllTokens(t){const s=t.length?t[0].termCount:void 0;if(void 0===s)return!0;if(s<=31){let i=0;for(let r=0;r<t.length;r++)i|=t[r].matchedMask||0;return i===2**s-1}const n=new Set;for(let i=0;i<t.length;i++){const r=t[i].matchedTerms;if(r)for(const c of r)n.add(c)}return n.size===s}};return e.version="7.4.2",e.createIndex=fe,e.parseIndex=Oe,e.config=d,e.match=function(t,s,n){if(n&&n.useTokenSearch)throw new Error("Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.");return $(t,{...d,...n}).searchIn(s)},e.parseQuery=Ce,e})();q(class{constructor(e,{isCaseSensitive:t=d.isCaseSensitive,ignoreDiacritics:s=d.ignoreDiacritics,includeMatches:n=d.includeMatches,minMatchCharLength:i=d.minMatchCharLength,ignoreLocation:r=d.ignoreLocation,findAllMatches:c=d.findAllMatches,location:u=d.location,threshold:o=d.threshold,distance:a=d.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:s,includeMatches:n,minMatchCharLength:i,findAllMatches:c,ignoreLocation:r,location:u,threshold:o,distance:a},e=t?e:e.toLowerCase(),e=s?R(e):e,this.pattern=e,this.query=function Ke(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(s=>{const n=function We(e){const t=[],s=e.length;let n=0;for(;n<s;){for(;n<s&&" "===e[n];)n++;if(n>=s)break;let i=n;for(;i<s&&" "!==e[i]&&'"'!==e[i];)i++;if(i<s&&'"'===e[i]){for(i++;i<s;){if('"'===e[i]){const r=i+1;if(r>=s||" "===e[r]){i++;break}if("$"===e[r]&&(r+1>=s||" "===e[r+1])){i+=2;break}}i++}t.push(e.substring(n,i)),n=i}else{for(;i<s&&" "!==e[i];)i++;t.push(e.substring(n,i)),n=i}}return t}(s.replace(/\u0000/g,"|").trim()).filter(r=>r&&!!r.trim()),i=[];for(let r=0,c=n.length;r<c;r+=1){const u=n[r];let o=!1,a=-1;for(;!o&&++a<ge;){const h=X[a],l=me(u,h.multiRegex);l&&(i.push(h.create(l,t)),o=!0)}if(!o)for(a=-1;++a<ge;){const h=X[a],l=me(u,h.singleRegex);if(l){i.push(h.create(l,t));break}}}return i})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:n,ignoreDiacritics:i}=this.options;e=n?e:e.toLowerCase(),e=i?R(e):e;let r=0;const c=[];let u=0,o=!1;for(let a=0,h=t.length;a<h;a+=1){const l=t[a];c.length=0,r=0,o=!1;for(let f=0,m=l.length;f<m;f+=1){const g=l[f],{isMatch:A,indices:M,score:y}=g.search(e);if(!A){u=0,r=0,c.length=0,o=!1;break}r+=1,u+=y,$e(g.type)&&(o=!0),s&&(Pe.has(g.type)?c.push(...M):c.push(M))}if(r){const f={isMatch:!0,score:u/r};return o&&(f.hasInverse=!0),s&&(f.indices=G(c)),f}}return{isMatch:!1,score:1}}}),q(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=ne({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const s=this.analyzer.tokenize(e),{df:n,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const r of s){this.termSearchers.push(new J(r,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const c=n.get(r)||0,u=Math.log(1+(i-c+.5)/(c+.5));this.idfWeights.push(u)}this.combineAll="all"===t.tokenMatch,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let s=0,n=0,i=0,r=0;const c=this.combineAll&&!this.useMask?new Set:null;for(let a=0;a<this.termSearchers.length;a++){const h=this.termSearchers[a].searchIn(e),l=this.idfWeights[a];n+=l,h.isMatch&&(i++,s+=l*(1-h.score),h.indices&&t.push(...h.indices),this.combineAll&&(this.useMask?r|=1<<a:c.add(a)))}if(0===i)return{isMatch:!1,score:1};const o={isMatch:!0,score:Math.max(.001,n>0?1-s/n:0)};return this.options.includeMatches&&t.length&&(o.indices=G(t)),this.combineAll&&(this.useMask?o.matchedMask=r:o.matchedTerms=c,o.termCount=this.numTerms),o}}),Ee.use=function(...e){e.forEach(t=>q(t))};var it=Ee,ot=k(4152);let ct=(()=>{class e{filterOptions=(0,I.uu)(()=>({isCaseSensitive:!!this.filterExactMatch(),includeScore:!1,ignoreDiacritics:!1,shouldSort:!0,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:this.filterExactMatch()?0:.3,distance:100,useExtendedSearch:!1,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1,keys:this.filterKeys()}));fuse=(0,I.EW)(()=>new it(this.sorted(),this.filterOptions()));columnDefs=(0,D.vPA)([]);data=(0,D.vPA)([]);sortCol=(0,D.vPA)(void 0);sortOrder=(0,D.vPA)("ASC");filterValue=(0,D.vPA)(void 0);filterOnlyVisible=(0,D.vPA)(!0);paginatorStartIndex=(0,D.vPA)(1);paginatorEndIndex=(0,D.vPA)(5);showColumnSettings=(0,D.vPA)(!1);totalRows=(0,I.EW)(()=>this.sortedAndFiltered().length);sorted=(0,I.EW)(()=>function rt(e,t,s){if(void 0===e)return[...t];const n=e.split(",").map(r=>r.trim()),i=s.split(",").map(r=>r.trim());return[...t].sort((r,c)=>{for(let u=0;u<n.length;u++){const o=n[u],a=i[u]||i[0];if(!(o in r))continue;let h=r[o],l=c[o];if("object"==typeof h&&(h=r[o].value,l=c[o].value),null==h)return 1;if(null==l)return-1;let f=0;if(f="string"==typeof h&&"string"==typeof l?h.localeCompare(l):h>l?1:h<l?-1:0,"DESC"===a&&(f*=-1),0!==f)return f}return 0})}(this.sortCol(),this.data(),this.sortOrder()));filterCol=(0,D.vPA)(void 0);filterExactMatch=(0,D.vPA)(!1);filterKeys=(0,I.EW)(()=>{const s=this.filterCol();return void 0!==s?[s]:this.filterOnlyVisible()?this.columnDefs().map(n=>n.key):Object.keys(this.sorted()[0]||{})});sortedAndFiltered=(0,I.EW)(()=>{const s=this.filterValue()??"";return""===s?this.sorted():this.fuse().search(s).map(i=>i.item)});sortedFilteredAndPaginated=(0,I.EW)(()=>this.sortedAndFiltered().slice(this.paginatorStartIndex(),this.paginatorEndIndex()));downloadCSV(){const s=this.sortedFilteredAndPaginated(),n=this.columnDefs();(0,ot.B)(s,n)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=D.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()}}]);
package/common.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[2076],{6019(l,u,e){e.d(u,{t:()=>s});var r=e(6593);function s(a){const n=new r.Parser({sparqlStar:!0});try{return n.parse(a)}catch(t){if(-1!=t.toString().indexOf("SPARQL*"))return{type:"query",queryType:"CONSTRUCT",sparqlStar:!0};throw"Couldn't get query details: "+t.toString()}}}}]);
1
+ "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[2076],{2716(v,f,a){a.d(f,{OX:()=>n,QA:()=>u,d9:()=>o});class u{menuDisplaySettings=new o;columnSelectSettings=new n}class o{hide=!0;buttonVariant="tertiary";buttonSize="s";showColumnSelect=!0;showDownload=!0}class n{allowEditing=!0;allowToggleEditable=!0;allowToggleHideOnHover=!0;allowSettingTextAlign=!0;allowSettingLabel=!0}},9457(v,f,a){a.d(f,{F:()=>d});var u=a(467),o=a(7705),n=a(5547);let d=(()=>{class t{appendClassToParentRow=(0,o.hFB)(!0);fileOverClass=(0,o.hFB)("file-hover");dropEnabled=(0,o.hFB)(!0);filesDropped=(0,o.CGW)();filesHovered=(0,o.CGW)();onDragOver(e){this.dropEnabled()&&(e.preventDefault(),e.stopPropagation(),this._appendFileHoverClass(e.target),this.filesHovered.emit(!0))}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this._removeFileHoverClass(e.target),this.filesHovered.emit(!1)}onDrop(e){var s=this;return(0,u.A)(function*(){if(e instanceof DragEvent&&e.dataTransfer){e.preventDefault(),s._removeFileHoverClass(e.target);const i=yield function p(t){function c(s,i=""){return new Promise(l=>{s&&(s.isFile?s.file(r=>{r.filepath=i+r.name,e.push(r),l(r)}):s.isDirectory&&s.createReader().readEntries(g=>{const h=[];for(const D of g)h.push(c(D,i+s.name+"/"));l(Promise.all(h))}))})}const e=[];return new Promise(s=>{const i=[];for(const l of t)i.push(c(l.webkitGetAsEntry()));Promise.all(i).then(()=>{const l=[".DS_Store"],r=e.filter(g=>!l.includes(g.name));console.info(`${r.length} files dropped`),s(r)})})}(e.dataTransfer.items);s.filesDropped.emit(i),s.filesHovered.emit(!1)}})()}_appendFileHoverClass(e){if(this.appendClassToParentRow()){const s=this._getParentRow(e);s?s.classList.add(this.fileOverClass()):e.classList.add(this.fileOverClass())}else e.classList.add(this.fileOverClass())}_removeFileHoverClass(e){if(this.appendClassToParentRow()){const s=this._getParentRow(e);s?s.classList.remove(this.fileOverClass()):e.classList.remove(this.fileOverClass())}else e.classList.remove(this.fileOverClass())}_getParentRow(e){for(;e;){if("TR"===e.tagName)return e;e=e.parentNode}return null}static \u0275fac=function(s){return new(s||t)};static \u0275dir=n.FsC({type:t,selectors:[["","cueFileDrop",""]],hostBindings:function(s,i){1&s&&n.bIt("dragover",function(r){return i.onDragOver(r)})("dragleave",function(r){return i.onDragLeave(r)})("drop",function(r){return i.onDrop(r)})},inputs:{appendClassToParentRow:[1,"appendClassToParentRow"],fileOverClass:[1,"fileOverClass"],dropEnabled:[1,"dropEnabled"]},outputs:{filesDropped:"filesDropped",filesHovered:"filesHovered"}})}return t})()},6019(v,f,a){a.d(f,{t:()=>p});var u=a(6593);function p(n){const d=new u.Parser({sparqlStar:!0});try{return d.parse(n)}catch(t){if(-1!=t.toString().indexOf("SPARQL*"))return{type:"query",queryType:"CONSTRUCT",sparqlStar:!0};throw"Couldn't get query details: "+t.toString()}}}}]);