@datorama/core 22.13.0-beta.9 → 22.13.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.
Files changed (123) hide show
  1. package/bundle.scss +55 -13
  2. package/bundles/datorama-core.umd.js +63 -66
  3. package/bundles/datorama-core.umd.js.map +1 -1
  4. package/bundles/datorama-core.umd.min.js +7 -7
  5. package/bundles/datorama-core.umd.min.js.map +1 -1
  6. package/datorama-core.metadata.json +1 -1
  7. package/esm2015/lib/directives/clipboard.directive.js +7 -16
  8. package/esm2015/lib/grid/dato-grid-api.js +1 -1
  9. package/esm2015/lib/grid/dato-grid.js +1 -1
  10. package/esm2015/lib/grid/grid/grid.component.js +4 -3
  11. package/esm2015/lib/grid/grid-header/grid-header.component.js +1 -1
  12. package/esm2015/lib/grid/grid-helper.js +1 -1
  13. package/esm2015/lib/grid/grid-pagination/grid-pagination.component.js +2 -2
  14. package/esm2015/lib/grid/grid-toolbar/grid-toolbar.component.js +2 -2
  15. package/esm2015/lib/grid/grid.module.js +2 -2
  16. package/esm2015/lib/grid-v2/grid/grid-v2.component.js +2 -2
  17. package/esm2015/lib/grid-v2/grid/grid-v2.types.js +1 -1
  18. package/esm2015/lib/grid-v2/grid-column-cell-components/grid-avatar-cell/grid-avatar-cell.component.js +3 -3
  19. package/esm2015/lib/grid-v2/grid-column-cell-components/grid-initials-cell/grid-initials-cell.component.js +2 -2
  20. package/esm2015/lib/grid-v2/grid-column-cell-components/grid-items-cell/grid-items-cell.component.js +1 -1
  21. package/esm2015/lib/grid-v2/grid-column-cell-components/grid-items-count-cell/grid-items-count-cell.component.js +1 -1
  22. package/esm2015/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.js +1 -1
  23. package/esm2015/lib/grid-v2/grid-column-header/grid-column-header.component.js +1 -1
  24. package/esm2015/lib/grid-v2/grid-column-header/grid-column-header.types.js +1 -1
  25. package/esm2015/lib/grid-v2/grid-column-header/grid-multi-select-header/grid-multi-select-header.component.js +1 -1
  26. package/esm2015/lib/grid-v2/grid-column-header-more-menu/grid-column-header-more-menu.component.js +1 -1
  27. package/esm2015/lib/grid-v2/grid-columns-display-menu/grid-columns-display-menu.component.js +1 -1
  28. package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +4 -4
  29. package/esm2015/lib/grid-v2/grid-controller/grid-controller.types.js +1 -1
  30. package/esm2015/lib/grid-v2/grid-custom-header/custom-header-template.directive.js +1 -1
  31. package/esm2015/lib/grid-v2/grid-filter/filter-validator.js +1 -1
  32. package/esm2015/lib/grid-v2/grid-filter/grid-filter.component.js +1 -1
  33. package/esm2015/lib/grid-v2/grid-groups-menu/grid-groups-menu.component.js +1 -1
  34. package/esm2015/lib/grid-v2/grid-loader/grid-v2-loader.component.js +1 -1
  35. package/esm2015/lib/grid-v2/grid-no-data-overlay/grid-v2-no-data-overlay.component.js +1 -1
  36. package/esm2015/lib/grid-v2/grid-on-hover/grid-on-hover.component.js +1 -1
  37. package/esm2015/lib/grid-v2/grid-pagination/grid-pagination.component.js +1 -1
  38. package/esm2015/lib/grid-v2/grid-store/grid.query.js +2 -2
  39. package/esm2015/lib/grid-v2/grid-store/grid.service.js +32 -29
  40. package/esm2015/lib/grid-v2/grid-store/util.js +1 -1
  41. package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -1
  42. package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.types.js +1 -1
  43. package/esm2015/lib/grid-v2/grid-v2.module.js +2 -2
  44. package/esm2015/lib/grid-v2/grid-v2.util.js +1 -1
  45. package/esm2015/lib/icon/icon.types.js +1 -1
  46. package/esm2015/lib/version.js +1 -1
  47. package/esm5/lib/directives/clipboard.directive.js +7 -16
  48. package/esm5/lib/grid/dato-grid-api.js +1 -1
  49. package/esm5/lib/grid/dato-grid.js +1 -1
  50. package/esm5/lib/grid/grid/grid.component.js +4 -3
  51. package/esm5/lib/grid/grid-header/grid-header.component.js +1 -1
  52. package/esm5/lib/grid/grid-helper.js +1 -1
  53. package/esm5/lib/grid/grid-pagination/grid-pagination.component.js +2 -2
  54. package/esm5/lib/grid/grid-toolbar/grid-toolbar.component.js +2 -2
  55. package/esm5/lib/grid/grid.module.js +2 -2
  56. package/esm5/lib/grid-v2/grid/grid-v2.component.js +2 -2
  57. package/esm5/lib/grid-v2/grid/grid-v2.types.js +1 -1
  58. package/esm5/lib/grid-v2/grid-column-cell-components/grid-avatar-cell/grid-avatar-cell.component.js +3 -3
  59. package/esm5/lib/grid-v2/grid-column-cell-components/grid-initials-cell/grid-initials-cell.component.js +2 -2
  60. package/esm5/lib/grid-v2/grid-column-cell-components/grid-items-cell/grid-items-cell.component.js +1 -1
  61. package/esm5/lib/grid-v2/grid-column-cell-components/grid-items-count-cell/grid-items-count-cell.component.js +1 -1
  62. package/esm5/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.js +1 -1
  63. package/esm5/lib/grid-v2/grid-column-header/grid-column-header.component.js +1 -1
  64. package/esm5/lib/grid-v2/grid-column-header/grid-column-header.types.js +1 -1
  65. package/esm5/lib/grid-v2/grid-column-header/grid-multi-select-header/grid-multi-select-header.component.js +1 -1
  66. package/esm5/lib/grid-v2/grid-column-header-more-menu/grid-column-header-more-menu.component.js +1 -1
  67. package/esm5/lib/grid-v2/grid-columns-display-menu/grid-columns-display-menu.component.js +1 -1
  68. package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +4 -4
  69. package/esm5/lib/grid-v2/grid-controller/grid-controller.types.js +1 -1
  70. package/esm5/lib/grid-v2/grid-custom-header/custom-header-template.directive.js +1 -1
  71. package/esm5/lib/grid-v2/grid-filter/filter-validator.js +1 -1
  72. package/esm5/lib/grid-v2/grid-filter/grid-filter.component.js +1 -1
  73. package/esm5/lib/grid-v2/grid-groups-menu/grid-groups-menu.component.js +1 -1
  74. package/esm5/lib/grid-v2/grid-loader/grid-v2-loader.component.js +1 -1
  75. package/esm5/lib/grid-v2/grid-no-data-overlay/grid-v2-no-data-overlay.component.js +1 -1
  76. package/esm5/lib/grid-v2/grid-on-hover/grid-on-hover.component.js +1 -1
  77. package/esm5/lib/grid-v2/grid-pagination/grid-pagination.component.js +1 -1
  78. package/esm5/lib/grid-v2/grid-store/grid.query.js +2 -2
  79. package/esm5/lib/grid-v2/grid-store/grid.service.js +32 -29
  80. package/esm5/lib/grid-v2/grid-store/util.js +1 -1
  81. package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -1
  82. package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.types.js +1 -1
  83. package/esm5/lib/grid-v2/grid-v2.module.js +2 -2
  84. package/esm5/lib/grid-v2/grid-v2.util.js +1 -1
  85. package/esm5/lib/icon/icon.types.js +1 -1
  86. package/esm5/lib/version.js +1 -1
  87. package/fesm2015/datorama-core.js +46 -50
  88. package/fesm2015/datorama-core.js.map +1 -1
  89. package/fesm5/datorama-core.js +46 -50
  90. package/fesm5/datorama-core.js.map +1 -1
  91. package/lib/directives/clipboard.directive.d.ts +2 -1
  92. package/lib/grid/dato-grid-api.d.ts +1 -1
  93. package/lib/grid/dato-grid.d.ts +1 -1
  94. package/lib/grid/grid/grid.component.d.ts +2 -3
  95. package/lib/grid/grid-helper.d.ts +1 -1
  96. package/lib/grid/grid-pagination/grid-pagination.component.d.ts +1 -1
  97. package/lib/grid-v2/grid/grid-v2.component.d.ts +1 -1
  98. package/lib/grid-v2/grid/grid-v2.types.d.ts +1 -2
  99. package/lib/grid-v2/grid-column-cell-components/grid-avatar-cell/grid-avatar-cell.component.d.ts +2 -2
  100. package/lib/grid-v2/grid-column-cell-components/grid-initials-cell/grid-initials-cell.component.d.ts +2 -2
  101. package/lib/grid-v2/grid-column-cell-components/grid-items-cell/grid-items-cell.component.d.ts +2 -2
  102. package/lib/grid-v2/grid-column-cell-components/grid-items-count-cell/grid-items-count-cell.component.d.ts +2 -2
  103. package/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.d.ts +2 -2
  104. package/lib/grid-v2/grid-column-header/grid-column-header.component.d.ts +2 -2
  105. package/lib/grid-v2/grid-column-header/grid-column-header.types.d.ts +1 -1
  106. package/lib/grid-v2/grid-column-header/grid-multi-select-header/grid-multi-select-header.component.d.ts +2 -2
  107. package/lib/grid-v2/grid-column-header-more-menu/grid-column-header-more-menu.component.d.ts +1 -1
  108. package/lib/grid-v2/grid-columns-display-menu/grid-columns-display-menu.component.d.ts +1 -1
  109. package/lib/grid-v2/grid-controller/grid-controller.component.d.ts +3 -3
  110. package/lib/grid-v2/grid-controller/grid-controller.types.d.ts +1 -1
  111. package/lib/grid-v2/grid-custom-header/custom-header-template.directive.d.ts +1 -1
  112. package/lib/grid-v2/grid-filter/filter-validator.d.ts +1 -1
  113. package/lib/grid-v2/grid-groups-menu/grid-groups-menu.component.d.ts +1 -1
  114. package/lib/grid-v2/grid-loader/grid-v2-loader.component.d.ts +2 -2
  115. package/lib/grid-v2/grid-no-data-overlay/grid-v2-no-data-overlay.component.d.ts +2 -2
  116. package/lib/grid-v2/grid-on-hover/grid-on-hover.component.d.ts +1 -1
  117. package/lib/grid-v2/grid-store/grid.query.d.ts +2 -2
  118. package/lib/grid-v2/grid-store/grid.service.d.ts +373 -2
  119. package/lib/grid-v2/grid-store/util.d.ts +1 -1
  120. package/lib/grid-v2/grid-toolbar/grid-toolbar.types.d.ts +1 -1
  121. package/lib/grid-v2/grid-v2.util.d.ts +1 -1
  122. package/lib/icon/icon.types.d.ts +1 -1
  123. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("@angular/forms"),require("ngx-take-until-destroy"),require("rxjs/operators"),require("@angular/cdk/keycodes"),require("@angular/common"),require("lodash.isempty"),require("lodash.isequal"),require("lodash.intersection"),require("lodash.union"),require("lodash.difference"),require("lodash.differenceby"),require("lodash.findindex"),require("lodash.minby"),require("lodash.uniqby"),require("lodash.sortby"),require("lodash.find"),require("lodash.foreach"),require("lodash.map"),require("lodash.keyby"),require("lodash.reject"),require("lodash.groupby"),require("lodash.filter"),require("lodash.findkey"),require("lodash.debounce"),require("lodash.throttle"),require("lodash.curry"),require("lodash.partial"),require("lodash.get"),require("lodash.has"),require("lodash.mapvalues"),require("lodash.mapkeys"),require("lodash.values"),require("lodash.merge"),require("lodash.transform"),require("lodash.clonedeep"),require("lodash.omitby"),require("deep-equal"),require("lodash.invert"),require("lodash.escape"),require("lodash.unescape"),require("lodash.escaperegexp"),require("date-fns"),require("date-fns-tz"),require("date-fns/locale/de"),require("date-fns/locale/en-US"),require("date-fns/locale/es"),require("date-fns/locale/fr"),require("date-fns/locale/ja"),require("@datorama/akita"),require("tooltip.js"),require("@popperjs/core/lib/popper-lite.js"),require("@popperjs/core/lib/modifiers/preventOverflow.js"),require("@popperjs/core/lib/modifiers/flip.js"),require("@popperjs/core/lib/modifiers/offset.js"),require("dompurify"),require("tippy.js"),require("@angular/cdk/coercion"),require("helpful-decorators"),require("ag-grid-angular"),require("ag-grid-community"),require("@angular/animations"),require("@angular/cdk/a11y"),require("ngx-sortablejs"),require("@angular/platform-browser"),require("@angular/common/http")):"function"==typeof define&&define.amd?define("@datorama/core",["exports","@angular/core","rxjs","@angular/forms","ngx-take-until-destroy","rxjs/operators","@angular/cdk/keycodes","@angular/common","lodash.isempty","lodash.isequal","lodash.intersection","lodash.union","lodash.difference","lodash.differenceby","lodash.findindex","lodash.minby","lodash.uniqby","lodash.sortby","lodash.find","lodash.foreach","lodash.map","lodash.keyby","lodash.reject","lodash.groupby","lodash.filter","lodash.findkey","lodash.debounce","lodash.throttle","lodash.curry","lodash.partial","lodash.get","lodash.has","lodash.mapvalues","lodash.mapkeys","lodash.values","lodash.merge","lodash.transform","lodash.clonedeep","lodash.omitby","deep-equal","lodash.invert","lodash.escape","lodash.unescape","lodash.escaperegexp","date-fns","date-fns-tz","date-fns/locale/de","date-fns/locale/en-US","date-fns/locale/es","date-fns/locale/fr","date-fns/locale/ja","@datorama/akita","tooltip.js","@popperjs/core/lib/popper-lite.js","@popperjs/core/lib/modifiers/preventOverflow.js","@popperjs/core/lib/modifiers/flip.js","@popperjs/core/lib/modifiers/offset.js","dompurify","tippy.js","@angular/cdk/coercion","helpful-decorators","ag-grid-angular","ag-grid-community","@angular/animations","@angular/cdk/a11y","ngx-sortablejs","@angular/platform-browser","@angular/common/http"],e):e(((t=t||self).datorama=t.datorama||{},t.datorama.core={}),t.ng.core,t.rxjs,t.ng.forms,t.ngxTakeUntilDestroy,t.rxjs.operators,t.ng.cdk.keycodes,t.ng.common,t._.isEmpty,t._.isEqual,t._.intersection,t._.union,t._.difference,t._.differenceBy,t._.findIndex,t._.minBy,t._.uniqBy,t._.sortBy,t._.find,t._.forEach,t._.map,t._.keyBy,t._.reject,t._.groupBy,t._.filter,t._.findKey,t._.debounce,t._.throttle,t._.curry,t._.partial,t._.get,t._.has,t._.mapValues,t._.mapKeys,t._.values,t._.merge,t._.transform,t._.cloneDeep,t._.omitBy,t.deepEqual,t._.invert,t._.escape,t._.unescape,t._.escapeRegExp,t.dateFns,t.dateFnsTz,t.de,t.enUS,t.es,t.fr,t.ja,t.dato.akita,t.tooltip,t.popperjs.lite,t.popperjs.modifiers.preventOverflow,t.popperjs.modifiers.flip,t.popperjs.modifiers.offset,t.DOMPurify,t.tippy,t.ng.cdk.coercion,t.helpfulDecorators,t.agGridAngular,t.agGridCommunity,t.ng.animations,t.ng.cdk.a11y,t.ngxSortablejs,t.ng.platformBrowser,t.ng.common.http)}(this,(function(t,e,n,o,i,r,a,s,l,c,p,d,u,h,g,f,m,y,A,v,b,C,w,S,x,O,D,E,I,R,T,P,k,j,M,_,F,N,B,L,G,V,z,Q,H,U,Y,W,K,q,J,X,Z,$,tt,et,nt,ot,it,rt,at,st,lt,ct,pt,dt,ut,ht){"use strict";l=l&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l,c=c&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c,p=p&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p,d=d&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d,u=u&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u,h=h&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h,g=g&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g,f=f&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f,m=m&&Object.prototype.hasOwnProperty.call(m,"default")?m.default:m,y=y&&Object.prototype.hasOwnProperty.call(y,"default")?y.default:y,A=A&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A,v=v&&Object.prototype.hasOwnProperty.call(v,"default")?v.default:v,b=b&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b,C=C&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C,w=w&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w,S=S&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S,x=x&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x,O=O&&Object.prototype.hasOwnProperty.call(O,"default")?O.default:O,D=D&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D,E=E&&Object.prototype.hasOwnProperty.call(E,"default")?E.default:E,I=I&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I,R=R&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R,T=T&&Object.prototype.hasOwnProperty.call(T,"default")?T.default:T,P=P&&Object.prototype.hasOwnProperty.call(P,"default")?P.default:P,k=k&&Object.prototype.hasOwnProperty.call(k,"default")?k.default:k,j=j&&Object.prototype.hasOwnProperty.call(j,"default")?j.default:j,M=M&&Object.prototype.hasOwnProperty.call(M,"default")?M.default:M,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,F=F&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F,N=N&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N,B=B&&Object.prototype.hasOwnProperty.call(B,"default")?B.default:B,L=L&&Object.prototype.hasOwnProperty.call(L,"default")?L.default:L,G=G&&Object.prototype.hasOwnProperty.call(G,"default")?G.default:G,V=V&&Object.prototype.hasOwnProperty.call(V,"default")?V.default:V,z=z&&Object.prototype.hasOwnProperty.call(z,"default")?z.default:z,Q=Q&&Object.prototype.hasOwnProperty.call(Q,"default")?Q.default:Q,Y=Y&&Object.prototype.hasOwnProperty.call(Y,"default")?Y.default:Y,W=W&&Object.prototype.hasOwnProperty.call(W,"default")?W.default:W,K=K&&Object.prototype.hasOwnProperty.call(K,"default")?K.default:K,q=q&&Object.prototype.hasOwnProperty.call(q,"default")?q.default:q,J=J&&Object.prototype.hasOwnProperty.call(J,"default")?J.default:J,Z=Z&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z,tt=tt&&Object.prototype.hasOwnProperty.call(tt,"default")?tt.default:tt,et=et&&Object.prototype.hasOwnProperty.call(et,"default")?et.default:et,nt=nt&&Object.prototype.hasOwnProperty.call(nt,"default")?nt.default:nt,ot=ot&&Object.prototype.hasOwnProperty.call(ot,"default")?ot.default:ot,it=it&&Object.prototype.hasOwnProperty.call(it,"default")?it.default:it;
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("@angular/forms"),require("ngx-take-until-destroy"),require("rxjs/operators"),require("@angular/cdk/keycodes"),require("@angular/common"),require("lodash.isempty"),require("lodash.isequal"),require("lodash.intersection"),require("lodash.union"),require("lodash.difference"),require("lodash.differenceby"),require("lodash.findindex"),require("lodash.minby"),require("lodash.uniqby"),require("lodash.sortby"),require("lodash.find"),require("lodash.foreach"),require("lodash.map"),require("lodash.keyby"),require("lodash.reject"),require("lodash.groupby"),require("lodash.filter"),require("lodash.findkey"),require("lodash.debounce"),require("lodash.throttle"),require("lodash.curry"),require("lodash.partial"),require("lodash.get"),require("lodash.has"),require("lodash.mapvalues"),require("lodash.mapkeys"),require("lodash.values"),require("lodash.merge"),require("lodash.transform"),require("lodash.clonedeep"),require("lodash.omitby"),require("deep-equal"),require("lodash.invert"),require("lodash.escape"),require("lodash.unescape"),require("lodash.escaperegexp"),require("date-fns"),require("date-fns-tz"),require("date-fns/locale/de"),require("date-fns/locale/en-US"),require("date-fns/locale/es"),require("date-fns/locale/fr"),require("date-fns/locale/ja"),require("@datorama/akita"),require("tooltip.js"),require("@popperjs/core/lib/popper-lite.js"),require("@popperjs/core/lib/modifiers/preventOverflow.js"),require("@popperjs/core/lib/modifiers/flip.js"),require("@popperjs/core/lib/modifiers/offset.js"),require("dompurify"),require("tippy.js"),require("@angular/cdk/coercion"),require("helpful-decorators"),require("@ag-grid-community/angular"),require("@ag-grid-community/core"),require("@angular/animations"),require("@angular/cdk/a11y"),require("ngx-sortablejs"),require("@angular/platform-browser"),require("@angular/common/http")):"function"==typeof define&&define.amd?define("@datorama/core",["exports","@angular/core","rxjs","@angular/forms","ngx-take-until-destroy","rxjs/operators","@angular/cdk/keycodes","@angular/common","lodash.isempty","lodash.isequal","lodash.intersection","lodash.union","lodash.difference","lodash.differenceby","lodash.findindex","lodash.minby","lodash.uniqby","lodash.sortby","lodash.find","lodash.foreach","lodash.map","lodash.keyby","lodash.reject","lodash.groupby","lodash.filter","lodash.findkey","lodash.debounce","lodash.throttle","lodash.curry","lodash.partial","lodash.get","lodash.has","lodash.mapvalues","lodash.mapkeys","lodash.values","lodash.merge","lodash.transform","lodash.clonedeep","lodash.omitby","deep-equal","lodash.invert","lodash.escape","lodash.unescape","lodash.escaperegexp","date-fns","date-fns-tz","date-fns/locale/de","date-fns/locale/en-US","date-fns/locale/es","date-fns/locale/fr","date-fns/locale/ja","@datorama/akita","tooltip.js","@popperjs/core/lib/popper-lite.js","@popperjs/core/lib/modifiers/preventOverflow.js","@popperjs/core/lib/modifiers/flip.js","@popperjs/core/lib/modifiers/offset.js","dompurify","tippy.js","@angular/cdk/coercion","helpful-decorators","@ag-grid-community/angular","@ag-grid-community/core","@angular/animations","@angular/cdk/a11y","ngx-sortablejs","@angular/platform-browser","@angular/common/http"],e):e(((t=t||self).datorama=t.datorama||{},t.datorama.core={}),t.ng.core,t.rxjs,t.ng.forms,t.ngxTakeUntilDestroy,t.rxjs.operators,t.ng.cdk.keycodes,t.ng.common,t._.isEmpty,t._.isEqual,t._.intersection,t._.union,t._.difference,t._.differenceBy,t._.findIndex,t._.minBy,t._.uniqBy,t._.sortBy,t._.find,t._.forEach,t._.map,t._.keyBy,t._.reject,t._.groupBy,t._.filter,t._.findKey,t._.debounce,t._.throttle,t._.curry,t._.partial,t._.get,t._.has,t._.mapValues,t._.mapKeys,t._.values,t._.merge,t._.transform,t._.cloneDeep,t._.omitBy,t.deepEqual,t._.invert,t._.escape,t._.unescape,t._.escapeRegExp,t.dateFns,t.dateFnsTz,t.de,t.enUS,t.es,t.fr,t.ja,t.dato.akita,t.tooltip,t.popperjs.lite,t.popperjs.modifiers.preventOverflow,t.popperjs.modifiers.flip,t.popperjs.modifiers.offset,t.DOMPurify,t.tippy,t.ng.cdk.coercion,t.helpfulDecorators,t.angular,t.core$1,t.ng.animations,t.ng.cdk.a11y,t.ngxSortablejs,t.ng.platformBrowser,t.ng.common.http)}(this,(function(t,e,n,o,i,r,a,s,l,c,p,d,u,h,g,f,m,y,A,v,b,C,w,S,x,O,D,E,I,R,T,P,k,j,M,_,F,N,B,L,G,V,z,Q,H,U,Y,W,K,q,J,X,Z,$,tt,et,nt,ot,it,rt,at,st,lt,ct,pt,dt,ut,ht){"use strict";l=l&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l,c=c&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c,p=p&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p,d=d&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d,u=u&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u,h=h&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h,g=g&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g,f=f&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f,m=m&&Object.prototype.hasOwnProperty.call(m,"default")?m.default:m,y=y&&Object.prototype.hasOwnProperty.call(y,"default")?y.default:y,A=A&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A,v=v&&Object.prototype.hasOwnProperty.call(v,"default")?v.default:v,b=b&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b,C=C&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C,w=w&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w,S=S&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S,x=x&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x,O=O&&Object.prototype.hasOwnProperty.call(O,"default")?O.default:O,D=D&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D,E=E&&Object.prototype.hasOwnProperty.call(E,"default")?E.default:E,I=I&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I,R=R&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R,T=T&&Object.prototype.hasOwnProperty.call(T,"default")?T.default:T,P=P&&Object.prototype.hasOwnProperty.call(P,"default")?P.default:P,k=k&&Object.prototype.hasOwnProperty.call(k,"default")?k.default:k,j=j&&Object.prototype.hasOwnProperty.call(j,"default")?j.default:j,M=M&&Object.prototype.hasOwnProperty.call(M,"default")?M.default:M,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,F=F&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F,N=N&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N,B=B&&Object.prototype.hasOwnProperty.call(B,"default")?B.default:B,L=L&&Object.prototype.hasOwnProperty.call(L,"default")?L.default:L,G=G&&Object.prototype.hasOwnProperty.call(G,"default")?G.default:G,V=V&&Object.prototype.hasOwnProperty.call(V,"default")?V.default:V,z=z&&Object.prototype.hasOwnProperty.call(z,"default")?z.default:z,Q=Q&&Object.prototype.hasOwnProperty.call(Q,"default")?Q.default:Q,Y=Y&&Object.prototype.hasOwnProperty.call(Y,"default")?Y.default:Y,W=W&&Object.prototype.hasOwnProperty.call(W,"default")?W.default:W,K=K&&Object.prototype.hasOwnProperty.call(K,"default")?K.default:K,q=q&&Object.prototype.hasOwnProperty.call(q,"default")?q.default:q,J=J&&Object.prototype.hasOwnProperty.call(J,"default")?J.default:J,Z=Z&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z,tt=tt&&Object.prototype.hasOwnProperty.call(tt,"default")?tt.default:tt,et=et&&Object.prototype.hasOwnProperty.call(et,"default")?et.default:et,nt=nt&&Object.prototype.hasOwnProperty.call(nt,"default")?nt.default:nt,ot=ot&&Object.prototype.hasOwnProperty.call(ot,"default")?ot.default:ot,it=it&&Object.prototype.hasOwnProperty.call(it,"default")?it.default:it;
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
@@ -111,7 +111,7 @@ hn=t.ColorPalette||(t.ColorPalette={})).Light="light",hn.Dark="dark";var Sn=func
111
111
  *
112
112
  * Use of this source code is governed by an Apache License 2.0 license that can be
113
113
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
114
- */function Vn(t){var e=Kt("textarea");e.value=t,e.setAttribute("readonly",""),Qt(e,{position:"absolute",left:"-9999px"});var n=Xt(e);e.select(),document.execCommand("copy"),n()}var zn=function(){function t(){this.copied=new e.EventEmitter}return Object.defineProperty(t.prototype,"datoClipboard",{set:function(t){this.value=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){Vn(this.value),this.copied.emit(this.value)},At([e.Output(),bt("design:type",Object)],t.prototype,"copied",void 0),At([e.Input(),bt("design:type",String),bt("design:paramtypes",[String])],t.prototype,"datoClipboard",null),At([e.HostListener("click"),bt("design:type",Function),bt("design:paramtypes",[]),bt("design:returntype",void 0)],t.prototype,"onClick",null),t=At([e.Directive({selector:"[datoClipboard]"})],t)}(),Qn=new e.InjectionToken("DATO_CORE_CONFIG"),Hn=function(){function t(t,e){this.host=t,this.config=e}return Object.defineProperty(t.prototype,"datoStaticSrc",{set:function(t){Wt(this.host.nativeElement,"src",this.config.paths.staticImages+"/"+t)},enumerable:!0,configurable:!0}),t.ctorParameters=function(){return[{type:e.ElementRef},{type:void 0,decorators:[{type:e.Inject,args:[Qn]}]}]},At([e.Input(),bt("design:type",String),bt("design:paramtypes",[String])],t.prototype,"datoStaticSrc",null),t=At([e.Directive({selector:"[datoStaticSrc]"}),vt(1,e.Inject(Qn)),bt("design:paramtypes",[e.ElementRef,Object])],t)}(),Un=function(){function t(){}return t=At([e.NgModule({declarations:[Hn],exports:[Hn]})],t)}(),Yn="IntersectionObserver"in window;function Wn(t,e){return void 0===e&&(e={root:null,threshold:.3}),new n.Observable((function(n){Yn||(n.next(),n.complete());var o=new IntersectionObserver((function(t){wt(t,1)[0].isIntersecting&&(n.next(),n.complete())}),e);return o.observe(t),function(){return o.disconnect()}}))}var Kn="ResizeObserver"in window;function qn(t,e){return Kn?function(t,e){void 0===e&&(e={box:"border-box"});return new n.Observable((function(n){var o=new ResizeObserver((function(t){var e=wt(t,1)[0];e.borderBoxSize?n.next({width:e.borderBoxSize.inlineSize,height:e.borderBoxSize.blockSize}):n.next({width:e.target.offsetWidth,height:e.target.offsetHeight})}));return o.observe(t,e),function(){return o.disconnect()}}))}(t,e).pipe(r.auditTime(150)):function(t){return n.fromEvent(window,"resize").pipe(r.auditTime(150),r.map((function(){return{width:t.offsetWidth,height:t.offsetHeight}})),r.distinctUntilChanged((function(t,e){return t.width===e.width&&t.height===e.height})))}(t)}var Jn,Xn=function(){function t(t,e,n,o,i){this.host=t,this.appRef=e,this.translate=n,this.zone=o,this.iconRegistry=i,this.options={},this.showOnlyOnTextOverflow=!1,this.appendTo=document.body,this.tooltipCheckInView=!0,this._placement="top",this._disabled=!1,this._variation="tooltip"}return Object.defineProperty(t.prototype,"placement",{set:function(t){this._placement=t,this.setProps({placement:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"variation",{set:function(t){this._variation=t,this.setProps(this.resolveTheme())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"datoTooltipDisabled",{set:function(t){this._disabled=t,this.markDisabled(this._disabled)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){this.datoTooltipDisabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sticky",{set:function(t){this.instance&&(t?(this.setProps({trigger:"manual",hideOnClick:!1}),this.show()):(this.hide(),this.setProps({trigger:this.trigger})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"datoTooltipV2",{set:function(t){var o,r=this;if(o=t instanceof e.TemplateRef?this.resolveTemplate(t):ot.sanitize(this.translate.transform(t),{ADD_ATTR:["target"]}),this.instance)this.instance.setContent(o),this.checkOverflow();else{var a=Rn(this.zone),s=this.tooltipCheckInView?[Wn(this.host.nativeElement),a]:[a];n.forkJoin(s).pipe(i.untilDestroyed(this)).subscribe((function(){return r.create(o)}))}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_tooltipTarget",{get:function(){return rt.coerceElement(this.triggerTarget)||this.host.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_tooltipHost",{get:function(){return rt.coerceElement(this.tooltipHost)||this.host.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTooltip",{get:function(){return"tooltip"===this._variation},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPopper",{get:function(){return"popper"===this._variation},enumerable:!0,configurable:!0}),t.prototype.setProps=function(t){this.instance&&this.instance.setProps(t)},t.prototype.hide=function(){this.instance.hide()},t.prototype.show=function(){this.instance.show()},t.prototype.destroy=function(){this.tplPortal&&this.destroyTemplate(),this.instance&&this.instance.destroy(),this.instance=null},t.prototype.ngOnDestroy=function(){this.destroy()},t.prototype.create=function(t){var e=this;this.zone.runOutsideAngular((function(){return e.createInstance(t)}))},t.prototype.createInstance=function(t){var e=this;this.showOnlyOnTextOverflow&&qn(this._tooltipHost).pipe(i.untilDestroyed(this)).subscribe((function(){e.markDisabled(!1===e.isElementOverflow())})),this.trigger=this.resolveTrigger(),this.instance=it(this._tooltipHost,mt(mt({content:t,appendTo:this.getParent(),arrow:!this.isTooltip,allowHTML:!0,zIndex:1e6,trigger:this.trigger,placement:this._placement,triggerTarget:this._tooltipTarget,onCreate:function(t){e.tooltipClass&&Ht(t.popper,e.tooltipClass)},onShow:function(t){e.isPopper&&e.addCloseButton(t)},onHidden:function(t){e.isPopper&&e.removeCloseButton(t)}},this.resolveTheme()),this.options)),this.markDisabled(this._disabled||kt(t))},t.prototype.resolveTrigger=function(){return this.trigger||(this.isPopper?"click":"mouseenter")},t.prototype.resolveTemplate=function(t){return this.tplPortal&&this.destroyTemplate(),this.tplPortal=new kn(t),this.appRef.attachView(this.tplPortal.viewRef),this.tplPortal.elementRef},t.prototype.isElementOverflow=function(){var t=this._tooltipTarget,e=t.parentElement,n=t.offsetWidth>e.offsetWidth,o=t.offsetWidth<t.scrollWidth;return n||o},t.prototype.getParent=function(){return(_t(this.appendTo)?ee(this.host.nativeElement,this.appendTo):this.appendTo)||document.body},t.prototype.markDisabled=function(t){void 0===t&&(t=!0),this.instance&&(t?this.instance.disable():this.instance.enable())},t.prototype.resolveTheme=function(){var t=null;switch(this._variation){case"popper":t="light";break;case"information":t="light-info"}return{offset:this.offset||[0,this.isTooltip?5:10],theme:t,arrow:!1===this.isTooltip,animation:this.isTooltip?"scale":null,interactive:this.isPopper}},t.prototype.addCloseButton=function(t){var e=this,o=t.popper,i=this.iconRegistry.getSvg("close"),r=Kt("div");Ht(r,"tippy-close"),r.innerHTML=i;var a=n.fromEvent(r,"click").subscribe((function(){return e.hide()}));o.appendChild(r),t.closeButtonElement=r,t.closeButtonSubcription=a},t.prototype.removeCloseButton=function(t){t.popper.removeChild(t.closeButtonElement),t.closeButtonSubcription.unsubscribe(),t.closeButtonElement=null,t.closeButtonSubcription=null},t.prototype.checkOverflow=function(){var t=this;this.showOnlyOnTextOverflow&&Rn(this.zone).subscribe((function(){return t.markDisabled(!1===t.isElementOverflow())}))},t.prototype.destroyTemplate=function(){this.appRef.detachView(this.tplPortal.viewRef),this.tplPortal.destroy()},t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ApplicationRef},{type:Mn},{type:e.NgZone},{type:_e}]},At([e.Input(),bt("design:type",Object)],t.prototype,"options",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"showOnlyOnTextOverflow",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"triggerTarget",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"tooltipHost",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"appendTo",void 0),At([e.Input(),bt("design:type",String)],t.prototype,"trigger",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"tooltipClass",void 0),At([e.Input(),bt("design:type",Array)],t.prototype,"offset",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"tooltipCheckInView",void 0),At([e.Input(),bt("design:type",Object),bt("design:paramtypes",[Object])],t.prototype,"placement",null),At([e.Input(),bt("design:type",String),bt("design:paramtypes",[String])],t.prototype,"variation",null),At([e.Input(),bt("design:type",Boolean),bt("design:paramtypes",[Boolean])],t.prototype,"datoTooltipDisabled",null),At([e.Input(),bt("design:type",Boolean),bt("design:paramtypes",[Boolean])],t.prototype,"disabled",null),At([e.Input(),bt("design:type",Boolean),bt("design:paramtypes",[Boolean])],t.prototype,"sticky",null),At([e.Input(),bt("design:type",Object),bt("design:paramtypes",[Object])],t.prototype,"datoTooltipV2",null),t=At([e.Directive({selector:"[datoTooltipV2]",exportAs:"datoTooltipV2"}),bt("design:paramtypes",[e.ElementRef,e.ApplicationRef,Mn,e.NgZone,_e])],t)}(),Zn=[Dn,En,In,Nn,Ln,zn,Gn,Xn],$n=function(){function t(){}return t=At([e.NgModule({imports:[Un],declarations:Zn,exports:[Zn,Un]})],t)}(),to=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,eo=function(){function t(){}return t.prototype.transform=function(t,e,n){var o=xe(t||""),i=xe(e||"").replace(to,"\\$&");i=i.split(" ").filter((function(t){return t.length>0})).join("|");var r=new RegExp(i,"gi");return i?o.replace(r,(function(t){return'<span class="'+(n||"")+' dato-highlight">'+t+"</span>"})):o},t=At([e.Pipe({name:"datoHighlight"})],t)}(),no=function(){function t(t){this.translate=t}return t.prototype.transform=function(t,e){return this.translate.transform(t,e)},t.ctorParameters=function(){return[{type:Mn}]},t=At([e.Pipe({name:"translate"}),bt("design:paramtypes",[Mn])],t)}(),oo=function(){function t(){}return t.prototype.transform=function(t){return Ee(t)},At([at.memo(),bt("design:type",Function),bt("design:paramtypes",[String]),bt("design:returntype",String)],t.prototype,"transform",null),t=At([e.Pipe({name:"kebabCase"})],t)}(),io=function(){function t(){}return t.prototype.transform=function(t){return De(t)},t=At([e.Pipe({name:"camelCase"})],t)}();
114
+ */function Vn(t){navigator.clipboard.writeText(t)}var zn=function(){function t(){this.copied=new e.EventEmitter}return Object.defineProperty(t.prototype,"datoClipboard",{set:function(t){this.value=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){Vn(this.value),this.copied.emit(this.value)},At([e.Output(),bt("design:type",Object)],t.prototype,"copied",void 0),At([e.Input(),bt("design:type",String),bt("design:paramtypes",[String])],t.prototype,"datoClipboard",null),At([e.HostListener("click"),bt("design:type",Function),bt("design:paramtypes",[]),bt("design:returntype",void 0)],t.prototype,"onClick",null),t=At([e.Directive({selector:"[datoClipboard]"})],t)}(),Qn=new e.InjectionToken("DATO_CORE_CONFIG"),Hn=function(){function t(t,e){this.host=t,this.config=e}return Object.defineProperty(t.prototype,"datoStaticSrc",{set:function(t){Wt(this.host.nativeElement,"src",this.config.paths.staticImages+"/"+t)},enumerable:!0,configurable:!0}),t.ctorParameters=function(){return[{type:e.ElementRef},{type:void 0,decorators:[{type:e.Inject,args:[Qn]}]}]},At([e.Input(),bt("design:type",String),bt("design:paramtypes",[String])],t.prototype,"datoStaticSrc",null),t=At([e.Directive({selector:"[datoStaticSrc]"}),vt(1,e.Inject(Qn)),bt("design:paramtypes",[e.ElementRef,Object])],t)}(),Un=function(){function t(){}return t=At([e.NgModule({declarations:[Hn],exports:[Hn]})],t)}(),Yn="IntersectionObserver"in window;function Wn(t,e){return void 0===e&&(e={root:null,threshold:.3}),new n.Observable((function(n){Yn||(n.next(),n.complete());var o=new IntersectionObserver((function(t){wt(t,1)[0].isIntersecting&&(n.next(),n.complete())}),e);return o.observe(t),function(){return o.disconnect()}}))}var Kn="ResizeObserver"in window;function qn(t,e){return Kn?function(t,e){void 0===e&&(e={box:"border-box"});return new n.Observable((function(n){var o=new ResizeObserver((function(t){var e=wt(t,1)[0];e.borderBoxSize?n.next({width:e.borderBoxSize.inlineSize,height:e.borderBoxSize.blockSize}):n.next({width:e.target.offsetWidth,height:e.target.offsetHeight})}));return o.observe(t,e),function(){return o.disconnect()}}))}(t,e).pipe(r.auditTime(150)):function(t){return n.fromEvent(window,"resize").pipe(r.auditTime(150),r.map((function(){return{width:t.offsetWidth,height:t.offsetHeight}})),r.distinctUntilChanged((function(t,e){return t.width===e.width&&t.height===e.height})))}(t)}var Jn,Xn=function(){function t(t,e,n,o,i){this.host=t,this.appRef=e,this.translate=n,this.zone=o,this.iconRegistry=i,this.options={},this.showOnlyOnTextOverflow=!1,this.appendTo=document.body,this.tooltipCheckInView=!0,this._placement="top",this._disabled=!1,this._variation="tooltip"}return Object.defineProperty(t.prototype,"placement",{set:function(t){this._placement=t,this.setProps({placement:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"variation",{set:function(t){this._variation=t,this.setProps(this.resolveTheme())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"datoTooltipDisabled",{set:function(t){this._disabled=t,this.markDisabled(this._disabled)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){this.datoTooltipDisabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sticky",{set:function(t){this.instance&&(t?(this.setProps({trigger:"manual",hideOnClick:!1}),this.show()):(this.hide(),this.setProps({trigger:this.trigger})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"datoTooltipV2",{set:function(t){var o,r=this;if(o=t instanceof e.TemplateRef?this.resolveTemplate(t):ot.sanitize(this.translate.transform(t),{ADD_ATTR:["target"]}),this.instance)this.instance.setContent(o),this.checkOverflow();else{var a=Rn(this.zone),s=this.tooltipCheckInView?[Wn(this.host.nativeElement),a]:[a];n.forkJoin(s).pipe(i.untilDestroyed(this)).subscribe((function(){return r.create(o)}))}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_tooltipTarget",{get:function(){return rt.coerceElement(this.triggerTarget)||this.host.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_tooltipHost",{get:function(){return rt.coerceElement(this.tooltipHost)||this.host.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTooltip",{get:function(){return"tooltip"===this._variation},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPopper",{get:function(){return"popper"===this._variation},enumerable:!0,configurable:!0}),t.prototype.setProps=function(t){this.instance&&this.instance.setProps(t)},t.prototype.hide=function(){this.instance.hide()},t.prototype.show=function(){this.instance.show()},t.prototype.destroy=function(){this.tplPortal&&this.destroyTemplate(),this.instance&&this.instance.destroy(),this.instance=null},t.prototype.ngOnDestroy=function(){this.destroy()},t.prototype.create=function(t){var e=this;this.zone.runOutsideAngular((function(){return e.createInstance(t)}))},t.prototype.createInstance=function(t){var e=this;this.showOnlyOnTextOverflow&&qn(this._tooltipHost).pipe(i.untilDestroyed(this)).subscribe((function(){e.markDisabled(!1===e.isElementOverflow())})),this.trigger=this.resolveTrigger(),this.instance=it(this._tooltipHost,mt(mt({content:t,appendTo:this.getParent(),arrow:!this.isTooltip,allowHTML:!0,zIndex:1e6,trigger:this.trigger,placement:this._placement,triggerTarget:this._tooltipTarget,onCreate:function(t){e.tooltipClass&&Ht(t.popper,e.tooltipClass)},onShow:function(t){e.isPopper&&e.addCloseButton(t)},onHidden:function(t){e.isPopper&&e.removeCloseButton(t)}},this.resolveTheme()),this.options)),this.markDisabled(this._disabled||kt(t))},t.prototype.resolveTrigger=function(){return this.trigger||(this.isPopper?"click":"mouseenter")},t.prototype.resolveTemplate=function(t){return this.tplPortal&&this.destroyTemplate(),this.tplPortal=new kn(t),this.appRef.attachView(this.tplPortal.viewRef),this.tplPortal.elementRef},t.prototype.isElementOverflow=function(){var t=this._tooltipTarget,e=t.parentElement,n=t.offsetWidth>e.offsetWidth,o=t.offsetWidth<t.scrollWidth;return n||o},t.prototype.getParent=function(){return(_t(this.appendTo)?ee(this.host.nativeElement,this.appendTo):this.appendTo)||document.body},t.prototype.markDisabled=function(t){void 0===t&&(t=!0),this.instance&&(t?this.instance.disable():this.instance.enable())},t.prototype.resolveTheme=function(){var t=null;switch(this._variation){case"popper":t="light";break;case"information":t="light-info"}return{offset:this.offset||[0,this.isTooltip?5:10],theme:t,arrow:!1===this.isTooltip,animation:this.isTooltip?"scale":null,interactive:this.isPopper}},t.prototype.addCloseButton=function(t){var e=this,o=t.popper,i=this.iconRegistry.getSvg("close"),r=Kt("div");Ht(r,"tippy-close"),r.innerHTML=i;var a=n.fromEvent(r,"click").subscribe((function(){return e.hide()}));o.appendChild(r),t.closeButtonElement=r,t.closeButtonSubcription=a},t.prototype.removeCloseButton=function(t){t.popper.removeChild(t.closeButtonElement),t.closeButtonSubcription.unsubscribe(),t.closeButtonElement=null,t.closeButtonSubcription=null},t.prototype.checkOverflow=function(){var t=this;this.showOnlyOnTextOverflow&&Rn(this.zone).subscribe((function(){return t.markDisabled(!1===t.isElementOverflow())}))},t.prototype.destroyTemplate=function(){this.appRef.detachView(this.tplPortal.viewRef),this.tplPortal.destroy()},t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ApplicationRef},{type:Mn},{type:e.NgZone},{type:_e}]},At([e.Input(),bt("design:type",Object)],t.prototype,"options",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"showOnlyOnTextOverflow",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"triggerTarget",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"tooltipHost",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"appendTo",void 0),At([e.Input(),bt("design:type",String)],t.prototype,"trigger",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"tooltipClass",void 0),At([e.Input(),bt("design:type",Array)],t.prototype,"offset",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"tooltipCheckInView",void 0),At([e.Input(),bt("design:type",Object),bt("design:paramtypes",[Object])],t.prototype,"placement",null),At([e.Input(),bt("design:type",String),bt("design:paramtypes",[String])],t.prototype,"variation",null),At([e.Input(),bt("design:type",Boolean),bt("design:paramtypes",[Boolean])],t.prototype,"datoTooltipDisabled",null),At([e.Input(),bt("design:type",Boolean),bt("design:paramtypes",[Boolean])],t.prototype,"disabled",null),At([e.Input(),bt("design:type",Boolean),bt("design:paramtypes",[Boolean])],t.prototype,"sticky",null),At([e.Input(),bt("design:type",Object),bt("design:paramtypes",[Object])],t.prototype,"datoTooltipV2",null),t=At([e.Directive({selector:"[datoTooltipV2]",exportAs:"datoTooltipV2"}),bt("design:paramtypes",[e.ElementRef,e.ApplicationRef,Mn,e.NgZone,_e])],t)}(),Zn=[Dn,En,In,Nn,Ln,zn,Gn,Xn],$n=function(){function t(){}return t=At([e.NgModule({imports:[Un],declarations:Zn,exports:[Zn,Un]})],t)}(),to=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,eo=function(){function t(){}return t.prototype.transform=function(t,e,n){var o=xe(t||""),i=xe(e||"").replace(to,"\\$&");i=i.split(" ").filter((function(t){return t.length>0})).join("|");var r=new RegExp(i,"gi");return i?o.replace(r,(function(t){return'<span class="'+(n||"")+' dato-highlight">'+t+"</span>"})):o},t=At([e.Pipe({name:"datoHighlight"})],t)}(),no=function(){function t(t){this.translate=t}return t.prototype.transform=function(t,e){return this.translate.transform(t,e)},t.ctorParameters=function(){return[{type:Mn}]},t=At([e.Pipe({name:"translate"}),bt("design:paramtypes",[Mn])],t)}(),oo=function(){function t(){}return t.prototype.transform=function(t){return Ee(t)},At([at.memo(),bt("design:type",Function),bt("design:paramtypes",[String]),bt("design:returntype",String)],t.prototype,"transform",null),t=At([e.Pipe({name:"kebabCase"})],t)}(),io=function(){function t(){}return t.prototype.transform=function(t){return De(t)},t=At([e.Pipe({name:"camelCase"})],t)}();
115
115
  /**
116
116
  * @license
117
117
  * Copyright Datorama. All Rights Reserved.
@@ -162,7 +162,7 @@ Jn=t.COMPARE_RESULT||(t.COMPARE_RESULT={}))[Jn.EXACT=1]="EXACT",Jn[Jn.STARTS_WIT
162
162
  * Use of this source code is governed by an Apache License 2.0 license that can be
163
163
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
164
164
  */
165
- var Io=function(){function t(t){this.gridApi=t}return Object.defineProperty(t.prototype,"ready",{get:function(){return!Ft(this.gridApi)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridApi",{get:function(){return this._gridApi},set:function(t){this._gridApi=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnApi",{get:function(){return this._columnApi},set:function(t){this._columnApi=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridRef",{get:function(){return this._gridRef},set:function(t){this._gridRef=t},enumerable:!0,configurable:!0}),t.prototype.setSelectedRows=function(t){var e=X.coerceArray(t);this.gridApi.forEachNode((function(t){var n=e.some((function(e){return e===t.data}));t.isSelected()!==n&&t.setSelected(n)}))},t.prototype.getSelectedRows=function(t){void 0===t&&(t=!1);var e=this.gridApi.getSelectedRows();return t?e.length?e[0]:null:e},t.prototype.setRows=function(t){this.gridApi.setRowData(t),this.gridApi.sizeColumnsToFit()},t.prototype.addRows=function(t,e){void 0===e&&(e=null);var n={add:X.coerceArray(t)};return Ft(e)||(n.addIndex=e),this.gridApi.updateRowData(n)},t.prototype.updateRows=function(t){var e=X.coerceArray(t);return this.gridApi.updateRowData({update:e})},t.prototype.updateRowValue=function(t,e,n){this.gridApi.getRowNode(t).setDataValue(e,n)},t.prototype.removeRows=function(t){var e=X.coerceArray(t);return this.gridApi.updateRowData({remove:e})},t.prototype.removeSelectedRows=function(){var t=this.getSelectedRows();return this.removeRows(t)},t.prototype.clearTable=function(){this.setRows([])},t.prototype.updateColumns=function(t){this._gridRef.updateColumns(t)},t}(),Ro=function(t){function e(e){return t.call(this,e)||this}return ft(e,t),e}(Error);var To,Po,ko,jo=function(){function t(t){this.translate=t}return t.prototype.normalizeColumns=function(t){return this.translateColumns(t)},t.prototype.updateColumns=function(t,e){if(!e)throw new Ro("No columnDefs were provided.");e=this.normalizeColumns(e),t.setColumnDefs(e)},t.prototype.translateColumns=function(t){var e=this;return t.map((function(t){return mt(mt({},t),{headerName:e.translate.transform(t.headerName)})}))},t.ctorParameters=function(){return[{type:Mn}]},t=At([e.Injectable(),bt("design:paramtypes",[Mn])],t)}(),Mo=function(){function t(t,n){this.cdr=t,this.translate=n,this.showFitToContent=!0,this.infinitePagination=!1,this.alignTable=new e.EventEmitter,this.toggleRowGroup=new e.EventEmitter,this.translations={of:this.translate.transform("core.of"),items:this.translate.transform("core.items")},this.MINI_DISPLAY_LENGTH=2,this.DISPLAY_LENGTH=5,this.XS_DISPLAY_SIZE=160,this.SMALL_DISPLAY_SIZE=390,this.disableButtons=null,this.smallVersion=null,this.showCollapseExpand=!1,this.pageNumbersDisplay={currentPage:1,pages:[],showFirstEllipsis:!1,showLastPage:!1}}return Object.defineProperty(t.prototype,"agGridColumnApi",{set:function(t){this.showCollapseExpand=t&&t.getRowGroupColumns().length>=1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"content",{set:function(t){this.navigationElement=t,t&&null===this.smallVersion&&this.calculateNavigationSize()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prevPageDisabled",{get:function(){return!this.infinitePagination&&1===this.pageNumbersDisplay.currentPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextPageDisabled",{get:function(){return!this.infinitePagination&&this.pageNumbersDisplay.currentPage===this.totalPages},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.rowDataChanged.pipe(r.throttleTime(100),i.untilDestroyed(this)).subscribe((function(){return t.initPagination()}))},t.prototype.calculateRowsCount=function(){this.totalPages=this.infinitePagination?this.pageNumbersDisplay.currentPage+1:this.agGridApi.paginationGetTotalPages(),this.rowCount=this.agGridApi.paginationGetRowCount(),this.setRowsDisplayRange(this.pageNumbersDisplay.currentPage),this.cdr.detectChanges()},t.prototype.initPagination=function(t){void 0===t&&(t=0),this.rowsPerPage=this.agGridApi.paginationGetPageSize(),this.calculateRowsCount(),this.pagesInView=this.DISPLAY_LENGTH,this.navigatePage(t)},Object.defineProperty(t.prototype,"pagesInView",{set:function(t){this._pagesInView=t,this.pagesOnSides=Math.floor(this._pagesInView/2),this.pagesFitView=this._pagesInView+1>=this.totalPages,this.pageNumbersDisplay.pages=[]},enumerable:!0,configurable:!0}),t.prototype.calculateNavigationSize=function(){if(this.navigationElement){var t=this.navigationElement.nativeElement.parentElement.clientWidth;this.disableButtons=t<this.XS_DISPLAY_SIZE,t<this.SMALL_DISPLAY_SIZE?this._pagesInView!==this.MINI_DISPLAY_LENGTH&&(this.smallVersion=!0,this.pagesInView=this.MINI_DISPLAY_LENGTH):this._pagesInView!==this.DISPLAY_LENGTH&&(this.smallVersion=!1,this.pagesInView=this.DISPLAY_LENGTH),this.cdr.detectChanges()}},t.prototype.navigatePage=function(t){if(t>=0&&t<=this.totalPages-1){this.agGridApi.paginationGoToPage(t);var e=t+1;this.pageNumbersDisplay.currentPage=e,0!==this.pageNumbersDisplay.pages.length&&this.pagesFitView||(this.pageNumbersDisplay.pages=this.getPages(e)),this.setRowsDisplayRange(e),this.cdr.detectChanges()}},t.prototype.navigateFirstPage=function(){this.infinitePagination?this.agGridApi.paginationGoToFirstPage():this.navigatePage(0)},t.prototype.navigateNextPage=function(){this.infinitePagination?this.agGridApi.paginationGoToNextPage():this.navigatePage(this.pageNumbersDisplay.currentPage)},t.prototype.navigatePrevPage=function(){if(this.infinitePagination)this.agGridApi.paginationGoToPreviousPage();else{var t=this.pageNumbersDisplay.currentPage-2;this.navigatePage(t)}},t.prototype.showNextBatch=function(){var t=this.pageNumbersDisplay.pages[0]+this._pagesInView+this.pagesOnSides;this.pageNumbersDisplay.pages=this.getPages(t)},t.prototype.showPreviousBatch=function(){var t=this.pageNumbersDisplay.pages[0]-this._pagesInView+this.pagesOnSides;this.pageNumbersDisplay.pages=this.getPages(t)},t.prototype.fitToContainer=function(){this.alignTable.emit(0)},t.prototype.fitToContent=function(){this.alignTable.emit(1)},t.prototype.toggleExpand=function(){this.toggleRowGroup.emit()},t.prototype.trackByFunc=function(t,e){return e},t.prototype.ngOnDestroy=function(){},t.prototype.setRowsDisplayRange=function(t){var e=t-1,n=1+e*this.rowsPerPage,o=(e+1)*this.rowsPerPage,i=this.rowCount>o?o:this.rowCount;this.rowsRange=this.translate.transform("core.itemsRange",{range:n+" - "+i,number:this.rowCount})},t.prototype.getPages=function(t){var e=[];this.pageNumbersDisplay.showLastPage=!this.pagesFitView&&t+this.pagesOnSides<this.totalPages,this.pageNumbersDisplay.showFirstEllipsis=!this.pagesFitView&&t-this.pagesOnSides>1;for(var n=this.getFirstPageNumber(t),o=this.pagesFitView?this.totalPages:this._pagesInView,i=0;i<o;i++)e.push(n+i);return this.smallVersion||e[o-1]+1!==this.totalPages||(e.push(this.totalPages),this.pageNumbersDisplay.showLastPage=!1),e},t.prototype.getFirstPageNumber=function(t){var e=t-this.pagesOnSides;return this.smallVersion&&t>1?t!==this.totalPages&&(e=t):this.pageNumbersDisplay.showFirstEllipsis?this.pageNumbersDisplay.showLastPage||(e=this.totalPages-(this._pagesInView-1)):e=1,e},t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:Mn}]},At([e.Input(),bt("design:type",lt.GridApi)],t.prototype,"agGridApi",void 0),At([e.Input(),bt("design:type",lt.ColumnApi),bt("design:paramtypes",[lt.ColumnApi])],t.prototype,"agGridColumnApi",null),At([e.Input(),bt("design:type",Boolean)],t.prototype,"isCollapsed",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"showFitToContent",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"infinitePagination",void 0),At([e.Input(),bt("design:type",n.Subject)],t.prototype,"rowDataChanged",void 0),At([e.Output(),bt("design:type",e.EventEmitter)],t.prototype,"alignTable",void 0),At([e.Output(),bt("design:type",e.EventEmitter)],t.prototype,"toggleRowGroup",void 0),At([e.ViewChild("navigation",{static:!0}),bt("design:type",e.ElementRef),bt("design:paramtypes",[e.ElementRef])],t.prototype,"content",null),t=At([e.Component({selector:"dato-grid-pagination",changeDetection:e.ChangeDetectionStrategy.OnPush,template:'<div class="d-flex-row d-flex-auto d-flex-wrap container" [class.small]="smallVersion">\n <div *ngIf="totalPages > 1 || infinitePagination" #navigation\n class="navigation d-flex-row d-flex-0-0-auto align-center">\n\n \x3c!-- First Page --\x3e\n <dato-icon-button *ngIf="!disableButtons"\n class="mr-4"\n datoIcon="arrow-left-double"\n datoType="secondary"\n datoSize="md"\n [disabled]="prevPageDisabled"\n (click)="navigateFirstPage()">\n </dato-icon-button>\n\n \x3c!-- Previous Page --\x3e\n <dato-icon-button datoIcon="arrow-left" datoType="secondary" datoSize="md"\n [disabled]="prevPageDisabled"\n (click)="navigatePrevPage()">\n </dato-icon-button>\n\n\n <div class="d-flex-row mx-5">\n <dato-link class="page-number mx-5" datoType="secondary" datoSize="sm"\n *ngIf="pageNumbersDisplay.showFirstEllipsis && !smallVersion"\n (click)="showPreviousBatch()">...\n </dato-link>\n <dato-link class="page-number mx-5" datoType="secondary" datoSize="sm"\n *ngFor="let page of pageNumbersDisplay.pages; trackBy: trackByFunc;"\n [ngClass]="{\'current-page\': page === pageNumbersDisplay.currentPage,\n \'note-bold\': page === pageNumbersDisplay.currentPage}"\n (click)="navigatePage(page - 1)">\n {{page}}\n </dato-link>\n\n <div class="d-flex-row" *ngIf="pageNumbersDisplay.showLastPage && !smallVersion">\n <dato-link class="page-number mx-5" datoType="secondary" datoSize="sm"\n (click)="showNextBatch()">...</dato-link>\n <dato-link *ngIf="!infinitePagination" class="page-number mx-5" datoType="secondary" datoSize="sm"\n (click)="navigatePage(totalPages - 1)">\n {{totalPages}}\n </dato-link>\n </div>\n\n </div>\n\n \x3c!-- Next Page --\x3e\n <dato-icon-button datoIcon="arrow-right" datoType="secondary" datoSize="md"\n (click)="navigateNextPage()"\n [disabled]="nextPageDisabled">\n </dato-icon-button>\n\n \x3c!-- Last Page --\x3e\n <dato-icon-button *ngIf="!disableButtons && !infinitePagination"\n class="ml-4" datoIcon="arrow-right-double"\n datoType="secondary" datoSize="md"\n [disabled]="nextPageDisabled"\n (click)="navigatePage(totalPages - 1)">\n </dato-icon-button>\n\n </div>\n\n <div *ngIf="totalPages > 1 && !smallVersion"\n class="separator mx-10 my-auto" datoColor="primary-100 background">\n </div>\n\n <div class="total d-flex-0-0-auto d-flex-row align-center">\n <span class="dato-note primary-300-color">{{rowsRange}}</span>\n </div>\n\n</div>\n\n<div class="d-flex-0-0-auto d-flex-row align-center" *ngIf="!smallVersion">\n\n \x3c!-- Expend / Collapse --\x3e\n <dato-icon-button *ngIf="showCollapseExpand"\n [datoIcon]="isCollapsed ? \'expand\' : \'collapse\'"\n class="mr-5"\n datoType="secondary"\n datoSize="md"\n [datoTooltip]="\'grid.\' + (isCollapsed ? \'expand\' : \'collapse\') + \'-rows\'"\n (click)="toggleExpand()">\n </dato-icon-button>\n\n \x3c!-- Fit Columns to Content --\x3e\n <dato-icon-button *ngIf="showFitToContent"\n class="mr-5"\n datoIcon="fit-to-content"\n datoType="secondary"\n datoSize="md"\n datoTooltip="core.fit-to-content"\n (click)="fitToContainer()">\n </dato-icon-button>\n\n \x3c!-- Fit Columns to Container --\x3e\n <dato-icon-button datoIcon="fit-to-container"\n datoType="secondary" datoSize="md"\n datoTooltip="core.fit-to-container"\n (click)="fitToContent()">\n </dato-icon-button>\n\n</div>\n',styles:[":host{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:25px}.navigation .page-number.current-page{transition:color .3s ease-in-out}.navigation .page-number:first-of-type{margin-left:7px}.navigation .page-number:last-of-type{margin-right:7px}.separator{width:1px;height:25px}.container.small .navigation,.container.small .total{margin-top:8px;margin-left:auto;margin-right:auto}"]}),bt("design:paramtypes",[e.ChangeDetectorRef,Mn])],t)}(),_o={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Fo})),multi:!0},Fo=function(t){function o(o,i,r,a){var s=t.call(this)||this;return s.gridHelper=o,s.element=i,s.iconRegistry=r,s.cdr=a,s.rowDataChanged=new n.Subject,s.hasPagination=!0,s.gridReady=new e.EventEmitter,s.defaultGridOptions={suppressPaginationPanel:!0,pagination:!0,defaultColDef:{sortable:!0,resizable:!0,filter:"agTextColumnFilter",menuTabs:["filterMenuTab"]},rowHeight:35,headerHeight:30,onRowDataChanged:function(t){s.rowDataChanged.next(t)},onRowDataUpdated:function(t){s.rowDataChanged.next(t)},onSelectionChanged:function(t){var e=s.api.getSelectedRows();s.onChange(e)},rowSelection:"multiple",rowDeselection:!0,unSortIcon:!0,animateRows:!0,rememberGroupStateWhenNewData:!0},s.infinitePagination=!1,s.isRowsCollapsed=!0,s.api=new Io,s.defaultGridOptions.icons={sortAscending:'<span class="da-grid-icon sort-icon"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M0 30.081c0-1.024 0.59-1.921 1.264-1.921h29.474c0.672 0 1.262 0.897 1.262 1.921s-0.59 1.919-1.264 1.919h-29.474c-0.672 0-1.262-0.895-1.262-1.919z"></path><path d="M1.2 15.36h19.999c0.64 0 1.2 0.896 1.2 1.92s-0.561 1.92-1.2 1.92h-19.999c-0.64 0-1.2-0.896-1.2-1.92s0.56-1.92 1.2-1.92z"></path><path d="M1.334 2.56h13.332c0.711 0 1.334 0.896 1.334 1.92s-0.623 1.92-1.334 1.92h-13.332c-0.711-0.002-1.334-0.898-1.334-1.922s0.623-1.918 1.334-1.918z"></path></svg></span>',sortDescending:'<span class="da-grid-icon sort-icon"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><g fill-rule="nonzero"><path d="M0 .6c0 .32.184.6.395.6h9.21c.21 0 .395-.28.395-.6 0-.32-.184-.6-.395-.6H.395C.185 0 0 .28 0 .6zM.375 5.2h6.25c.2 0 .375-.28.375-.6 0-.32-.175-.6-.375-.6H.375C.175 4 0 4.28 0 4.6c0 .32.175.6.375.6zM.417 9.2h4.166c.222 0 .417-.28.417-.6 0-.32-.195-.6-.417-.6H.417C.195 8 0 8.28 0 8.6c0 .32.195.6.417.6z"/></g></svg></span>',sortUnSort:'<span class="da-grid-icon sort-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 19">\n <g fill-rule="evenodd">\n <path stroke-width=".3" d="M5.93109443,17.9423639 C6.13758962,17.9423639 6.30517991,17.7747736 6.30517991,17.5682784 L6.30517991,13.2662954 C6.30517991,13.0598003 6.13758962,12.89221 5.93109443,12.89221 L1.62911144,12.89221 C1.42261626,12.89221 1.25502596,13.0598003 1.25502596,13.2662954 C1.25502596,13.4727906 1.42261626,13.6403809 1.62911144,13.6403809 L5.02131855,13.6403809 L1.55648567,17.1049644 C1.41034294,17.2511071 1.41034294,17.4877786 1.55648567,17.6339213 C1.62955703,17.7069926 1.72507352,17.7431542 1.82059001,17.7431542 C1.91610651,17.7431542 2.01237117,17.7069926 2.08469436,17.6339213 L5.55700895,14.1626042 L5.55700895,17.5682784 C5.55700895,17.7747736 5.72459925,17.9423639 5.93109443,17.9423639 Z" transform="rotate(135 3.78 15.417)"/>\n <path stroke-width=".3" d="M6.05457833,1.93008935 C5.9084356,1.78394663 5.6715148,1.78394663 5.52562147,1.93008935 L2.02188369,5.43382713 L2.02188369,2.03488648 C2.02188369,1.8283913 1.8542934,1.660801 1.64779821,1.660801 C1.44130303,1.660801 1.27371274,1.8283913 1.27371274,2.03488648 L1.27371274,6.33686947 C1.27371274,6.54336465 1.44130303,6.71095495 1.64779821,6.71095495 L5.94978121,6.71095495 C6.15627639,6.71095495 6.32386668,6.54336465 6.32386668,6.33686947 C6.32386668,6.13037429 6.15627639,5.96278399 5.94978121,5.96278399 L2.55084056,5.96278399 L6.05457833,2.45829805 C6.20072106,2.31315288 6.20072106,2.07523452 6.05457833,1.93008935 Z" transform="rotate(135 3.799 4.186)"/>\n </g>\n </svg></span>',filter:'<span class="da-grid-icon filter-icon active"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13">\n <path fill-rule="nonzero" d="M1.4 1l4.079 6.57a.5.5 0 0 1 .075.263V12h2V7.833a.5.5 0 0 1 .072-.26L11.612 1H1.4zm3.154 6.976L.076.764A.5.5 0 0 1 .501 0h11.998a.5.5 0 0 1 .428.76L8.554 7.972V12.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V7.976z"/>\n </svg></span>',menu:'<span class="da-grid-icon menu-icon"><svg viewBox="0 0 4 18" xmlns="http://www.w3.org/2000/svg"><g><path fill-rule="evenodd" d="M2,3.5A1.5,1.5,0,1,0,.5,2,1.5,1.5,0,0,0,2,3.5Zm0,4A1.5,1.5,0,1,0,3.5,9,1.5,1.5,0,0,0,2,7.5Zm0,7A1.5,1.5,0,1,0,3.5,16,1.5,1.5,0,0,0,2,14.5Z"/></g></svg></span>',columns:'<span class="da-grid-icon columns-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 14"><defs><style>.\\35 6e72ebd-313d-4e34-8347-a1f70fc57a3a{fill-rule:evenodd;}</style></defs><g><path class="56e72ebd-313d-4e34-8347-a1f70fc57a3a" d="M4,0.5H2a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1H4a1,1,0,0,0,1-1v-1A1,1,0,0,0,4,.5Zm6,0H8a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,10,.5Zm6,0H14a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,16,.5ZM4,5.5H2a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1H4a1,1,0,0,0,1-1v-1A1,1,0,0,0,4,5.5Zm6,0H8a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,10,5.5Zm6,0H14a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,16,5.5Zm-12,5H2a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1H4a1,1,0,0,0,1-1v-1A1,1,0,0,0,4,10.5Zm6,0H8a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,10,10.5Zm6,0H14a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,16,10.5Z"/></g></svg></span>',groupExpanded:'<span class="da-grid-icon pointer group-expanded-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 10"><path d="M0.92,9.41A0.5,0.5,0,0,1,.57,8.56L4.23,5,0.57,1.46A0.5,0.5,0,1,1,1.27.74l4,3.91a0.5,0.5,0,0,1,0,.72l-4,3.91A0.5,0.5,0,0,1,.92,9.41Z"/></svg></span>',groupContracted:'<span class="da-grid-icon pointer group-contracted-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 10"><path d="M0.92,9.41A0.5,0.5,0,0,1,.57,8.56L4.23,5,0.57,1.46A0.5,0.5,0,1,1,1.27.74l4,3.91a0.5,0.5,0,0,1,0,.72l-4,3.91A0.5,0.5,0,0,1,.92,9.41Z"/></svg></span>'},s.gridOptions=mt({},s.defaultGridOptions),s}return ft(o,t),Object.defineProperty(o.prototype,"options",{get:function(){return this.gridOptions},set:function(t){if(t.columnDefs=this.gridHelper.normalizeColumns(t.columnDefs),this.gridOptions=mt(mt(mt({},this.defaultGridOptions),t),{defaultColDef:mt(mt({},this.defaultGridOptions.defaultColDef),t.defaultColDef||{})}),this.gridOptions.suppressRowClickSelection||(this.gridOptions.rowClass="selectable"),this.hasPagination=this.gridOptions.pagination,(this.hasPagination?Ht:Yt)(this.hostElement,"grid-pagination"),"infinite"===this.gridOptions.rowModelType||"serverSide"===this.gridOptions.rowModelType){this.infinitePagination=!0;var e=this.gridOptions.defaultColDef;e.filter&&(e.filterParams={newRowsAction:"keep"})}},enumerable:!0,configurable:!0}),o.prototype.ngOnDestroy=function(){this.rowDataChanged.complete()},o.prototype.onGridReady=function(t){var e=this;this.api.gridApi=t.api,this.gridColumnApi=t.columnApi,this.gridColumnApi.getRowGroupColumns().length>=1&&(this.gridComponent.rowGroupOpened.pipe(i.untilDestroyed(this)).subscribe((function(t){return e.rowGroupStateChange(t)})),this.paginationComponent.toggleRowGroup.pipe(i.untilDestroyed(this)).subscribe((function(){return e.toggleCollapseState()}))),this.cdr.detectChanges(),this.gridReady.emit(t)},o.prototype.alignTable=function(t){0===t?this.fitToContainer():this.fitToContent()},o.prototype.updateColumns=function(t){this.gridHelper.updateColumns(this.api.gridApi,t)},o.prototype.writeValue=function(t){var e=this,o=t?X.coerceArray(t):[];this.api.ready?this.api.setSelectedRows(o):n.combineLatest(this.rowDataChanged,this.gridReady).pipe(r.take(1),i.untilDestroyed(this)).subscribe((function(){return e.api.setSelectedRows(o)}))},o.prototype.fitToContainer=function(){this.gridOptions.api.sizeColumnsToFit()},o.prototype.fitToContent=function(){this.gridOptions.columnApi.autoSizeAllColumns();var t=this.hostElement.getBoundingClientRect().width,e=this.hostElement.querySelector(".ag-body-container");t>(e?e.clientWidth:0)&&this.fitToContainer()},o.prototype.rowGroupStateChange=function(t){if(0===t.node.rowGroupIndex){var e=!0;t.api.forEachNode((function(t){0===t.rowGroupIndex&&t.expanded&&(e=!1)})),this.isRowsCollapsed=e,this.paginationComponent.initPagination()}},o.prototype.toggleCollapseState=function(){this.isRowsCollapsed?this.api.gridApi.expandAll():this.api.gridApi.collapseAll(),this.isRowsCollapsed=!this.isRowsCollapsed,this.paginationComponent.initPagination()},Object.defineProperty(o.prototype,"hostElement",{get:function(){return this.element.nativeElement},enumerable:!0,configurable:!0}),o.prototype.hideMenuIcon=function(){Yt(this.activeMenu,"menu-active"),this.activeMenu=null},o.ctorParameters=function(){return[{type:jo},{type:e.ElementRef},{type:_e},{type:e.ChangeDetectorRef}]},At([e.ViewChild(st.AgGridAngular,{static:!0}),bt("design:type",st.AgGridAngular)],o.prototype,"gridComponent",void 0),At([e.ViewChild(Mo,{static:!0}),bt("design:type",Mo)],o.prototype,"paginationComponent",void 0),At([e.Input(),bt("design:type",Object),bt("design:paramtypes",[Object])],o.prototype,"options",null),At([e.Output(),bt("design:type",Object)],o.prototype,"gridReady",void 0),o=At([e.Component({selector:"dato-grid",template:'<ag-grid-angular class="ag-dato-core ag-theme-material"\n [gridOptions]="gridOptions"\n multiSortKey="ctrl"\n (gridReady)="onGridReady($event)">\n</ag-grid-angular>\n<dato-grid-pagination *ngIf="hasPagination"\n class="d-flex-row flex-0-0-100"\n (alignTable)="alignTable($event)"\n [isCollapsed]="isRowsCollapsed"\n [rowDataChanged]="rowDataChanged"\n [agGridApi]="api.gridApi"\n [agGridColumnApi]="gridColumnApi"\n [infinitePagination]="infinitePagination">\n</dato-grid-pagination>\n\n\n\x3c!--<dato-grid-container> /// store, query--\x3e\n\x3c!-- <dato-toolbar>--\x3e\n\x3c!-- <dato-toolbar-item [action]="delete"></dato-toolbar-item>--\x3e\n\x3c!-- <dato-toolbar-more>--\x3e\n\x3c!-- <dato-toolbar-item></dato-toolbar-item>--\x3e\n\x3c!-- </dato-toolbar-more>--\x3e\n\x3c!-- </dato-toolbar>--\x3e\n\n\x3c!-- <dato-grid options="["></dato-grid>--\x3e\n\x3c!--</dato-grid-container>--\x3e\n\n\x3c!--@ViewChild(DatoGridcontainer) container: DatoGridcontainer;--\x3e\n\n\x3c!--this.container.query.getSelctec()--\x3e\n\x3c!--this.container.gridReady.subscribe()--\x3e\n\n\x3c!--delete(){--\x3e\n\n\x3c!--sercer.call().sub(() => )--\x3e\n\x3c!--}--\x3e',changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,providers:[_o],styles:['@font-face{font-family:agGridClassic;src:url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABYIAAsAAAAAKcwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAn4AAATCbWtuOU9TLzIAAAOIAAAAQQAAAFZWVlKaY21hcAAAA8wAAAIQAAAF1I+ffXtnbHlmAAAF3AAADCAAABa8M29qh2hlYWQAABH8AAAANAAAADZ2z8SBaGhlYQAAEjAAAAAeAAAAJAfTBC1obXR4AAASUAAAABoAAAE8zwr/4mxvY2EAABJsAAAAeAAAAKAmcyvAbWF4cAAAEuQAAAAfAAAAIAFlAHhuYW1lAAATBAAAATMAAAJS8kTiWnBvc3QAABQ4AAABzgAAArcDfOWreJx9lLtuE1EQhv/1bkLuCVG4mRBCuIUACRex7K69dhwSOzYmokAUiCY0gBSlQhQ8ASUFT8EzUPAAFJRUPAGipuSbWRuHSMFHu3vOzD//mfnPHCuQNKZbqqm02ew+0dTe7pt9lRWp+Jn/4DzYe/1yVyP9Fb7IvyMKoqea1iU901t9DUrBq+B98Lm0HNbCd+HH8Hv4K4oVglvUKvhx3WckSnnHylRRVblKGsaWMK+pDjrkve7WWZ3RkHva6ug0uybEdJxxhe91zcDTcp6mNkFlDONs8u4ybpDd0YhcN+GvkM0GVmOdJ885jeohOTbJo0F0He8svi12jIlp4WvpBHhDRa7ktp5rCZTVZpGVHi7jSfDaOvbVbVToo9bhr8JvfGvs2rdX2Skl4i7sFVAPXPOyJo9kLTRe0WXYq1ia2BvOXnP2i8SnVJBxVpFXnlL5BKtMj/XCs9ruxTRd5UKTNaob2FvOl1PvQW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jtwZ6CpGSAfa+ZCUTtdp6WxTL+3LlsQLIanUIHQqbWKy+cqKQpsyG4mpHultlYyUabKo3unSCI1PjJqGxFijesaGXFSVnagiraOXatfapLUe25DUVeOz2qmxto3vu+hr840mBGtyOxgs7x+Y1OlyGBIvxqrrR9EzL+zE7OLfhL0Z7siyGTd1EuIbZo2Zpe/+g3wNQYlDEdBYDBM8koohm2wwjV+lYERDzRYDthm3Wn8ABT67hQAA") format("woff"),url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQm1rbjkAAAE4AAAEwk9TLzJWVlKaAAAF/AAAAFZjbWFwj599ewAAB5AAAAXUZ2x5ZjNvaocAAA4EAAAWvGhlYWR2z8SBAAAA4AAAADZoaGVhB9MELQAAALwAAAAkaG10eM8K/+IAAAZUAAABPGxvY2EmcyvAAAANZAAAAKBtYXhwAWUAeAAAARgAAAAgbmFtZfJE4loAACTAAAACUnBvc3QDfOWrAAAnFAAAArcAAQAAA+gAAAAAA+j/9v/1A/MAAQAAAAAAAAAAAAAAAAAAAE8AAQAAAAEAAHoS5IZfDzz1AAsD6AAAAVoJ476AAAABWgnjvoD/9v/2A/MD8gAAAAgAAgAAAAAAAAABAAAATwBsAAwAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQRWAA8AJABaAHYAzAECAWgBiAG8AigDPgN6A5QD2APuBDYAAwAIACAALgABAAsANwA3ADgAOQA3ADYAOgA7ADwAPQACAAYAOAA4ADwAPgA/AAMAAwA/AEAAAgAGABIAGQAFADgAPABJAEoAGAAEADgAOwBKAAMACAAqAEoAKwAQADYARwA7ADwARgBEAEkAOgA6ADwAPQBGADwATABMACwADwA2AEcAOwA8AEYARABJADoAOgA8AD0ARgA8AD0ALQAFADsANwBCADoAAwAIABwALgAUAAkASwA5AEYAPwBBADYAPwBCABIACABFAEoANgA9AEcAOQBHABUAAwBLADkABAAKADAASABcACIAEgA4ADkAOQBGADsAPQBHADkAOgA5ADgASAA7AD0ANgA6ADkAMQALADgAOQA5AEYAQABBADwAPwA5AEcALwAJADgAOQA5AEYAPABKADkAPQAzAAQAOwBAAEMAAQAEABoADQA9AEcAOQA6ADkAOABIADsAPQA2ADoAOQADAAgAIAAqACUACwA8ADoARgA2AEEAQQA8AD4AOQBHACMABAA5AEUAOgAkAAQAPAA9ADkABQAMACQAOgBQAGIAMQALAEgANgBBAEEARgA4ADsANwBCADoALwAKAEgANgBBAEEARgBHADwAPgA9ADAACgBIADYAQQBBAEYAQQA5AEwAOgAyAAgASAA2AEEAQQBGAEkASgAuAAQANgBOADkADAAaAEgAbgCQAKoAwADQAN4A7AD4AQQBDgAHABYAQgA5AEAAQwBEADwARQBGADsAPQBHADkAOgA5ADgASAA7AD0ANgA6ADkACAASAEIAOQBAAEMARAA8AEUARgBJAD0AQABCADkAQABDADkARwAGABAAQgA5AEAAQwBEADwARQBGAEAAQgA5AEAAQwA5AEcACQAMADwAQQA8ADgARgBKADsAQABDADkAOAAMAAoAPAA9ADoAOAA2AEAAOgA5AEcACwAHADwAQQBJAEgAPQA/AAoABgA8AEEASQBIAD0ABAAGADYAPQBAADkAQQAFAAUAQgA2ADgAOgAOAAUAOAA8AD8APwANAAQAPABKAEsADwADAEkAOgAEAAoAGgAoADIAHgAHADwANgBHADsAPQA3AB0ABgA7AD0AQwA5AEcAGwAEADYAPwA6ABwABAA5AEwAOgACAAYAEAAQAAQANgA6ADYAEQAEADkAPwBAAAQACgAcAC4AOgAfAAgANgBFADsASAA7AE0AOQAhAAgAOwA9ADsASAA7AE0AOQAiAAUAOwA9AEkAPwAgAAQAOQA9AEkAAQAEADUACAA9AEEAOwA9AEMAOQBHAAUADAAeACoANgBAACoACAA4ADkATgA7ADwASQA/ACYABQA2AD8AOgA5ACgABQA7AE4APAA6ACkABABBAEkAPwAnAAMAOwA9AAIAB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sYXN0BGxlZnQGbGlua2VkB2xvYWRpbmcIbWF4aW1pemUEbWVudQhtaW5pbWl6ZQVtaW51cwRuZXh0BG5vbmULbm90LWFsbG93ZWQFcGFzdGUDcGluBXBpdm90BHBsdXMIcHJldmlvdXMQcmFkaW8tYnV0dG9uLW9mZg9yYWRpby1idXR0b24tb24FcmlnaHQEc2F2ZQpzbWFsbC1kb3duCnNtYWxsLWxlZnQLc21hbGwtcmlnaHQIc21hbGwtdXAEdGljawh1bmxpbmtlZAp1bmxpbmtlZC0xAWEBZwFyAWUBdAFpAW8BbgF3AXMBYwFsAWgBawFiAXgBLQFkAW0BdQFwAXkBZgF6AXYAAAA=") format("truetype");font-weight:400;font-style:normal}dato-grid{display:block;width:100%;height:100%;overflow:hidden}dato-grid.grid-pagination{padding-bottom:0;display:flex;flex-direction:column}dato-grid.grid-pagination ag-grid-angular{margin-bottom:7px;height:calc(100% - 32px)}.ag-dato-core{width:100%;height:100%}.ag-dato-core .da-grid-icon{display:inline-block;line-height:31px;vertical-align:middle}.ag-dato-core .ag-menu .da-grid-icon svg{vertical-align:middle}.ag-dato-core .ag-header-cell-sortable .ag-sort-none-icon{opacity:0;transition:opacity .2s}.ag-dato-core .ag-header-cell-sortable:hover .ag-sort-none-icon{opacity:1}.ag-dato-core .sort-icon svg{width:14px;height:16px}.ag-dato-core .filter-icon svg{width:13px}.ag-dato-core .menu-icon svg{width:4px;height:14px}.ag-dato-core .menu-auto-size-icon svg,.ag-dato-core .menu-group-icon,.ag-dato-core .menu-pin-icon,.ag-dato-core .menu-un-group-icon{width:16px;height:16px}.ag-dato-core .menu-check-icon svg{width:15px;height:18px}.ag-dato-core .group-contracted-icon,.ag-dato-core .group-expanded-icon{width:7px}.ag-dato-core .group-expanded-icon{transform:rotate(90deg)}']}),bt("design:paramtypes",[jo,e.ElementRef,_e,e.ChangeDetectorRef])],o)}(Ot),No=function(){function t(){}return Object.defineProperty(t.prototype,"grid",{set:function(t){this.rowCount||(this.rowCount=t.rowDataChanged.pipe(i.untilDestroyed(this)).pipe(r.map((function(t){return t.api.getDisplayedRowCount()}))))},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){},At([e.Input(),bt("design:type",Fo),bt("design:paramtypes",[Fo])],t.prototype,"grid",null),t=At([e.Component({selector:"dato-grid-header",template:'<div class="d-flex-row justify-between items-center">\n <p class="dato-headline">\n <ng-content></ng-content>\n <span>({{rowCount | async}})</span>\n </p>\n \x3c!--walk-me--\x3e\n</div>',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[""]})],t)}();
165
+ var Io=function(){function t(t){this.gridApi=t}return Object.defineProperty(t.prototype,"ready",{get:function(){return!Ft(this.gridApi)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridApi",{get:function(){return this._gridApi},set:function(t){this._gridApi=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnApi",{get:function(){return this._columnApi},set:function(t){this._columnApi=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridRef",{get:function(){return this._gridRef},set:function(t){this._gridRef=t},enumerable:!0,configurable:!0}),t.prototype.setSelectedRows=function(t){var e=X.coerceArray(t);this.gridApi.forEachNode((function(t){var n=e.some((function(e){return e===t.data}));t.isSelected()!==n&&t.setSelected(n)}))},t.prototype.getSelectedRows=function(t){void 0===t&&(t=!1);var e=this.gridApi.getSelectedRows();return t?e.length?e[0]:null:e},t.prototype.setRows=function(t){this.gridApi.setRowData(t),this.gridApi.sizeColumnsToFit()},t.prototype.addRows=function(t,e){void 0===e&&(e=null);var n={add:X.coerceArray(t)};return Ft(e)||(n.addIndex=e),this.gridApi.updateRowData(n)},t.prototype.updateRows=function(t){var e=X.coerceArray(t);return this.gridApi.updateRowData({update:e})},t.prototype.updateRowValue=function(t,e,n){this.gridApi.getRowNode(t).setDataValue(e,n)},t.prototype.removeRows=function(t){var e=X.coerceArray(t);return this.gridApi.updateRowData({remove:e})},t.prototype.removeSelectedRows=function(){var t=this.getSelectedRows();return this.removeRows(t)},t.prototype.clearTable=function(){this.setRows([])},t.prototype.updateColumns=function(t){this._gridRef.updateColumns(t)},t}(),Ro=function(t){function e(e){return t.call(this,e)||this}return ft(e,t),e}(Error);var To,Po,ko,jo=function(){function t(t){this.translate=t}return t.prototype.normalizeColumns=function(t){return this.translateColumns(t)},t.prototype.updateColumns=function(t,e){if(!e)throw new Ro("No columnDefs were provided.");e=this.normalizeColumns(e),t.setColumnDefs(e)},t.prototype.translateColumns=function(t){var e=this;return t.map((function(t){return mt(mt({},t),{headerName:e.translate.transform(t.headerName)})}))},t.ctorParameters=function(){return[{type:Mn}]},t=At([e.Injectable(),bt("design:paramtypes",[Mn])],t)}(),Mo=function(){function t(t,n){this.cdr=t,this.translate=n,this.showFitToContent=!0,this.infinitePagination=!1,this.alignTable=new e.EventEmitter,this.toggleRowGroup=new e.EventEmitter,this.translations={of:this.translate.transform("core.of"),items:this.translate.transform("core.items")},this.MINI_DISPLAY_LENGTH=2,this.DISPLAY_LENGTH=5,this.XS_DISPLAY_SIZE=160,this.SMALL_DISPLAY_SIZE=390,this.disableButtons=null,this.smallVersion=null,this.showCollapseExpand=!1,this.pageNumbersDisplay={currentPage:1,pages:[],showFirstEllipsis:!1,showLastPage:!1}}return Object.defineProperty(t.prototype,"agGridColumnApi",{set:function(t){this.showCollapseExpand=t&&t.getRowGroupColumns().length>=1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"content",{set:function(t){this.navigationElement=t,t&&null===this.smallVersion&&this.calculateNavigationSize()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prevPageDisabled",{get:function(){return!this.infinitePagination&&1===this.pageNumbersDisplay.currentPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextPageDisabled",{get:function(){return!this.infinitePagination&&this.pageNumbersDisplay.currentPage===this.totalPages},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.rowDataChanged.pipe(r.throttleTime(100),i.untilDestroyed(this)).subscribe((function(){return t.initPagination()}))},t.prototype.calculateRowsCount=function(){this.totalPages=this.infinitePagination?this.pageNumbersDisplay.currentPage+1:this.agGridApi.paginationGetTotalPages(),this.rowCount=this.agGridApi.paginationGetRowCount(),this.setRowsDisplayRange(this.pageNumbersDisplay.currentPage),this.cdr.detectChanges()},t.prototype.initPagination=function(t){void 0===t&&(t=0),this.rowsPerPage=this.agGridApi.paginationGetPageSize(),this.calculateRowsCount(),this.pagesInView=this.DISPLAY_LENGTH,this.navigatePage(t)},Object.defineProperty(t.prototype,"pagesInView",{set:function(t){this._pagesInView=t,this.pagesOnSides=Math.floor(this._pagesInView/2),this.pagesFitView=this._pagesInView+1>=this.totalPages,this.pageNumbersDisplay.pages=[]},enumerable:!0,configurable:!0}),t.prototype.calculateNavigationSize=function(){if(this.navigationElement){var t=this.navigationElement.nativeElement.parentElement.clientWidth;this.disableButtons=t<this.XS_DISPLAY_SIZE,t<this.SMALL_DISPLAY_SIZE?this._pagesInView!==this.MINI_DISPLAY_LENGTH&&(this.smallVersion=!0,this.pagesInView=this.MINI_DISPLAY_LENGTH):this._pagesInView!==this.DISPLAY_LENGTH&&(this.smallVersion=!1,this.pagesInView=this.DISPLAY_LENGTH),this.cdr.detectChanges()}},t.prototype.navigatePage=function(t){if(t>=0&&t<=this.totalPages-1){this.agGridApi.paginationGoToPage(t);var e=t+1;this.pageNumbersDisplay.currentPage=e,0!==this.pageNumbersDisplay.pages.length&&this.pagesFitView||(this.pageNumbersDisplay.pages=this.getPages(e)),this.setRowsDisplayRange(e),this.cdr.detectChanges()}},t.prototype.navigateFirstPage=function(){this.infinitePagination?this.agGridApi.paginationGoToFirstPage():this.navigatePage(0)},t.prototype.navigateNextPage=function(){this.infinitePagination?this.agGridApi.paginationGoToNextPage():this.navigatePage(this.pageNumbersDisplay.currentPage)},t.prototype.navigatePrevPage=function(){if(this.infinitePagination)this.agGridApi.paginationGoToPreviousPage();else{var t=this.pageNumbersDisplay.currentPage-2;this.navigatePage(t)}},t.prototype.showNextBatch=function(){var t=this.pageNumbersDisplay.pages[0]+this._pagesInView+this.pagesOnSides;this.pageNumbersDisplay.pages=this.getPages(t)},t.prototype.showPreviousBatch=function(){var t=this.pageNumbersDisplay.pages[0]-this._pagesInView+this.pagesOnSides;this.pageNumbersDisplay.pages=this.getPages(t)},t.prototype.fitToContainer=function(){this.alignTable.emit(0)},t.prototype.fitToContent=function(){this.alignTable.emit(1)},t.prototype.toggleExpand=function(){this.toggleRowGroup.emit()},t.prototype.trackByFunc=function(t,e){return e},t.prototype.ngOnDestroy=function(){},t.prototype.setRowsDisplayRange=function(t){var e=t-1,n=1+e*this.rowsPerPage,o=(e+1)*this.rowsPerPage,i=this.rowCount>o?o:this.rowCount;this.rowsRange=this.translate.transform("core.itemsRange",{range:n+" - "+i,number:this.rowCount})},t.prototype.getPages=function(t){var e=[];this.pageNumbersDisplay.showLastPage=!this.pagesFitView&&t+this.pagesOnSides<this.totalPages,this.pageNumbersDisplay.showFirstEllipsis=!this.pagesFitView&&t-this.pagesOnSides>1;for(var n=this.getFirstPageNumber(t),o=this.pagesFitView?this.totalPages:this._pagesInView,i=0;i<o;i++)e.push(n+i);return this.smallVersion||e[o-1]+1!==this.totalPages||(e.push(this.totalPages),this.pageNumbersDisplay.showLastPage=!1),e},t.prototype.getFirstPageNumber=function(t){var e=t-this.pagesOnSides;return this.smallVersion&&t>1?t!==this.totalPages&&(e=t):this.pageNumbersDisplay.showFirstEllipsis?this.pageNumbersDisplay.showLastPage||(e=this.totalPages-(this._pagesInView-1)):e=1,e},t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:Mn}]},At([e.Input(),bt("design:type",lt.GridApi)],t.prototype,"agGridApi",void 0),At([e.Input(),bt("design:type",lt.ColumnApi),bt("design:paramtypes",[lt.ColumnApi])],t.prototype,"agGridColumnApi",null),At([e.Input(),bt("design:type",Boolean)],t.prototype,"isCollapsed",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"showFitToContent",void 0),At([e.Input(),bt("design:type",Object)],t.prototype,"infinitePagination",void 0),At([e.Input(),bt("design:type",n.Subject)],t.prototype,"rowDataChanged",void 0),At([e.Output(),bt("design:type",e.EventEmitter)],t.prototype,"alignTable",void 0),At([e.Output(),bt("design:type",e.EventEmitter)],t.prototype,"toggleRowGroup",void 0),At([e.ViewChild("navigation",{static:!0}),bt("design:type",e.ElementRef),bt("design:paramtypes",[e.ElementRef])],t.prototype,"content",null),t=At([e.Component({selector:"dato-grid-pagination",changeDetection:e.ChangeDetectionStrategy.OnPush,template:'<div class="d-flex-row d-flex-auto d-flex-wrap container" [class.small]="smallVersion">\n <div *ngIf="totalPages > 1 || infinitePagination" #navigation\n class="navigation d-flex-row d-flex-0-0-auto align-center">\n\n \x3c!-- First Page --\x3e\n <dato-icon-button *ngIf="!disableButtons"\n class="mr-4"\n datoIcon="arrow-left-double"\n datoType="secondary"\n datoSize="md"\n [disabled]="prevPageDisabled"\n (click)="navigateFirstPage()">\n </dato-icon-button>\n\n \x3c!-- Previous Page --\x3e\n <dato-icon-button datoIcon="arrow-left" datoType="secondary" datoSize="md"\n [disabled]="prevPageDisabled"\n (click)="navigatePrevPage()">\n </dato-icon-button>\n\n\n <div class="d-flex-row mx-5">\n <dato-link class="page-number mx-5" datoType="secondary" datoSize="sm"\n *ngIf="pageNumbersDisplay.showFirstEllipsis && !smallVersion"\n (click)="showPreviousBatch()">...\n </dato-link>\n <dato-link class="page-number mx-5" datoType="secondary" datoSize="sm"\n *ngFor="let page of pageNumbersDisplay.pages; trackBy: trackByFunc;"\n [ngClass]="{\'current-page\': page === pageNumbersDisplay.currentPage,\n \'note-bold\': page === pageNumbersDisplay.currentPage}"\n (click)="navigatePage(page - 1)">\n {{page}}\n </dato-link>\n\n <div class="d-flex-row" *ngIf="pageNumbersDisplay.showLastPage && !smallVersion">\n <dato-link class="page-number mx-5" datoType="secondary" datoSize="sm"\n (click)="showNextBatch()">...</dato-link>\n <dato-link *ngIf="!infinitePagination" class="page-number mx-5" datoType="secondary" datoSize="sm"\n (click)="navigatePage(totalPages - 1)">\n {{totalPages}}\n </dato-link>\n </div>\n\n </div>\n\n \x3c!-- Next Page --\x3e\n <dato-icon-button datoIcon="arrow-right" datoType="secondary" datoSize="md"\n (click)="navigateNextPage()"\n [disabled]="nextPageDisabled">\n </dato-icon-button>\n\n \x3c!-- Last Page --\x3e\n <dato-icon-button *ngIf="!disableButtons && !infinitePagination"\n class="ml-4" datoIcon="arrow-right-double"\n datoType="secondary" datoSize="md"\n [disabled]="nextPageDisabled"\n (click)="navigatePage(totalPages - 1)">\n </dato-icon-button>\n\n </div>\n\n <div *ngIf="totalPages > 1 && !smallVersion"\n class="separator mx-10 my-auto" datoColor="primary-100 background">\n </div>\n\n <div class="total d-flex-0-0-auto d-flex-row align-center">\n <span class="dato-note primary-300-color">{{rowsRange}}</span>\n </div>\n\n</div>\n\n<div class="d-flex-0-0-auto d-flex-row align-center" *ngIf="!smallVersion">\n\n \x3c!-- Expend / Collapse --\x3e\n <dato-icon-button *ngIf="showCollapseExpand"\n [datoIcon]="isCollapsed ? \'expand\' : \'collapse\'"\n class="mr-5"\n datoType="secondary"\n datoSize="md"\n [datoTooltip]="\'grid.\' + (isCollapsed ? \'expand\' : \'collapse\') + \'-rows\'"\n (click)="toggleExpand()">\n </dato-icon-button>\n\n \x3c!-- Fit Columns to Content --\x3e\n <dato-icon-button *ngIf="showFitToContent"\n class="mr-5"\n datoIcon="fit-to-content"\n datoType="secondary"\n datoSize="md"\n datoTooltip="core.fit-to-content"\n (click)="fitToContainer()">\n </dato-icon-button>\n\n \x3c!-- Fit Columns to Container --\x3e\n <dato-icon-button datoIcon="fit-to-container"\n datoType="secondary" datoSize="md"\n datoTooltip="core.fit-to-container"\n (click)="fitToContent()">\n </dato-icon-button>\n\n</div>\n',styles:[":host{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:25px}.navigation .page-number.current-page{transition:color .3s ease-in-out}.navigation .page-number:first-of-type{margin-left:7px}.navigation .page-number:last-of-type{margin-right:7px}.separator{width:1px;height:25px}.container.small .navigation,.container.small .total{margin-top:8px;margin-left:auto;margin-right:auto}"]}),bt("design:paramtypes",[e.ChangeDetectorRef,Mn])],t)}(),_o={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Fo})),multi:!0},Fo=function(t){function o(o,i,r,a){var s=t.call(this)||this;return s.gridHelper=o,s.element=i,s.iconRegistry=r,s.cdr=a,s.rowDataChanged=new n.Subject,s.hasPagination=!0,s.gridReady=new e.EventEmitter,s.defaultGridOptions={suppressPaginationPanel:!0,pagination:!0,defaultColDef:{sortable:!0,resizable:!0,filter:"agTextColumnFilter",menuTabs:["filterMenuTab"]},rowHeight:35,headerHeight:30,onRowDataChanged:function(t){s.rowDataChanged.next(t)},onRowDataUpdated:function(t){s.rowDataChanged.next(t)},onSelectionChanged:function(t){var e=s.api.getSelectedRows();s.onChange(e)},rowSelection:"multiple",rowDeselection:!0,unSortIcon:!0,animateRows:!0,rememberGroupStateWhenNewData:!0},s.infinitePagination=!1,s.isRowsCollapsed=!0,s.api=new Io,s.defaultGridOptions.icons={sortAscending:'<span class="da-grid-icon sort-icon"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M0 30.081c0-1.024 0.59-1.921 1.264-1.921h29.474c0.672 0 1.262 0.897 1.262 1.921s-0.59 1.919-1.264 1.919h-29.474c-0.672 0-1.262-0.895-1.262-1.919z"></path><path d="M1.2 15.36h19.999c0.64 0 1.2 0.896 1.2 1.92s-0.561 1.92-1.2 1.92h-19.999c-0.64 0-1.2-0.896-1.2-1.92s0.56-1.92 1.2-1.92z"></path><path d="M1.334 2.56h13.332c0.711 0 1.334 0.896 1.334 1.92s-0.623 1.92-1.334 1.92h-13.332c-0.711-0.002-1.334-0.898-1.334-1.922s0.623-1.918 1.334-1.918z"></path></svg></span>',sortDescending:'<span class="da-grid-icon sort-icon"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><g fill-rule="nonzero"><path d="M0 .6c0 .32.184.6.395.6h9.21c.21 0 .395-.28.395-.6 0-.32-.184-.6-.395-.6H.395C.185 0 0 .28 0 .6zM.375 5.2h6.25c.2 0 .375-.28.375-.6 0-.32-.175-.6-.375-.6H.375C.175 4 0 4.28 0 4.6c0 .32.175.6.375.6zM.417 9.2h4.166c.222 0 .417-.28.417-.6 0-.32-.195-.6-.417-.6H.417C.195 8 0 8.28 0 8.6c0 .32.195.6.417.6z"/></g></svg></span>',sortUnSort:'<span class="da-grid-icon sort-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 19">\n <g fill-rule="evenodd">\n <path stroke-width=".3" d="M5.93109443,17.9423639 C6.13758962,17.9423639 6.30517991,17.7747736 6.30517991,17.5682784 L6.30517991,13.2662954 C6.30517991,13.0598003 6.13758962,12.89221 5.93109443,12.89221 L1.62911144,12.89221 C1.42261626,12.89221 1.25502596,13.0598003 1.25502596,13.2662954 C1.25502596,13.4727906 1.42261626,13.6403809 1.62911144,13.6403809 L5.02131855,13.6403809 L1.55648567,17.1049644 C1.41034294,17.2511071 1.41034294,17.4877786 1.55648567,17.6339213 C1.62955703,17.7069926 1.72507352,17.7431542 1.82059001,17.7431542 C1.91610651,17.7431542 2.01237117,17.7069926 2.08469436,17.6339213 L5.55700895,14.1626042 L5.55700895,17.5682784 C5.55700895,17.7747736 5.72459925,17.9423639 5.93109443,17.9423639 Z" transform="rotate(135 3.78 15.417)"/>\n <path stroke-width=".3" d="M6.05457833,1.93008935 C5.9084356,1.78394663 5.6715148,1.78394663 5.52562147,1.93008935 L2.02188369,5.43382713 L2.02188369,2.03488648 C2.02188369,1.8283913 1.8542934,1.660801 1.64779821,1.660801 C1.44130303,1.660801 1.27371274,1.8283913 1.27371274,2.03488648 L1.27371274,6.33686947 C1.27371274,6.54336465 1.44130303,6.71095495 1.64779821,6.71095495 L5.94978121,6.71095495 C6.15627639,6.71095495 6.32386668,6.54336465 6.32386668,6.33686947 C6.32386668,6.13037429 6.15627639,5.96278399 5.94978121,5.96278399 L2.55084056,5.96278399 L6.05457833,2.45829805 C6.20072106,2.31315288 6.20072106,2.07523452 6.05457833,1.93008935 Z" transform="rotate(135 3.799 4.186)"/>\n </g>\n </svg></span>',filter:'<span class="da-grid-icon filter-icon active"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13">\n <path fill-rule="nonzero" d="M1.4 1l4.079 6.57a.5.5 0 0 1 .075.263V12h2V7.833a.5.5 0 0 1 .072-.26L11.612 1H1.4zm3.154 6.976L.076.764A.5.5 0 0 1 .501 0h11.998a.5.5 0 0 1 .428.76L8.554 7.972V12.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V7.976z"/>\n </svg></span>',menu:'<span class="da-grid-icon menu-icon"><svg viewBox="0 0 4 18" xmlns="http://www.w3.org/2000/svg"><g><path fill-rule="evenodd" d="M2,3.5A1.5,1.5,0,1,0,.5,2,1.5,1.5,0,0,0,2,3.5Zm0,4A1.5,1.5,0,1,0,3.5,9,1.5,1.5,0,0,0,2,7.5Zm0,7A1.5,1.5,0,1,0,3.5,16,1.5,1.5,0,0,0,2,14.5Z"/></g></svg></span>',columns:'<span class="da-grid-icon columns-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 14"><defs><style>.\\35 6e72ebd-313d-4e34-8347-a1f70fc57a3a{fill-rule:evenodd;}</style></defs><g><path class="56e72ebd-313d-4e34-8347-a1f70fc57a3a" d="M4,0.5H2a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1H4a1,1,0,0,0,1-1v-1A1,1,0,0,0,4,.5Zm6,0H8a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,10,.5Zm6,0H14a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,16,.5ZM4,5.5H2a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1H4a1,1,0,0,0,1-1v-1A1,1,0,0,0,4,5.5Zm6,0H8a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,10,5.5Zm6,0H14a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,16,5.5Zm-12,5H2a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1H4a1,1,0,0,0,1-1v-1A1,1,0,0,0,4,10.5Zm6,0H8a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,10,10.5Zm6,0H14a1,1,0,0,0-1,1v1a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1v-1A1,1,0,0,0,16,10.5Z"/></g></svg></span>',groupExpanded:'<span class="da-grid-icon pointer group-expanded-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 10"><path d="M0.92,9.41A0.5,0.5,0,0,1,.57,8.56L4.23,5,0.57,1.46A0.5,0.5,0,1,1,1.27.74l4,3.91a0.5,0.5,0,0,1,0,.72l-4,3.91A0.5,0.5,0,0,1,.92,9.41Z"/></svg></span>',groupContracted:'<span class="da-grid-icon pointer group-contracted-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 10"><path d="M0.92,9.41A0.5,0.5,0,0,1,.57,8.56L4.23,5,0.57,1.46A0.5,0.5,0,1,1,1.27.74l4,3.91a0.5,0.5,0,0,1,0,.72l-4,3.91A0.5,0.5,0,0,1,.92,9.41Z"/></svg></span>'},s.gridOptions=mt({},s.defaultGridOptions),s}return ft(o,t),Object.defineProperty(o.prototype,"options",{get:function(){return this.gridOptions},set:function(t){if(t.columnDefs=this.gridHelper.normalizeColumns(t.columnDefs),this.gridOptions=mt(mt(mt({},this.defaultGridOptions),t),{defaultColDef:mt(mt({},this.defaultGridOptions.defaultColDef),t.defaultColDef||{})}),this.gridOptions.suppressRowClickSelection||(this.gridOptions.rowClass="selectable"),this.hasPagination=this.gridOptions.pagination,(this.hasPagination?Ht:Yt)(this.hostElement,"grid-pagination"),"infinite"===this.gridOptions.rowModelType||"serverSide"===this.gridOptions.rowModelType){this.infinitePagination=!0;var e=this.gridOptions.defaultColDef;e.filter&&(e.filterParams={newRowsAction:"keep"})}},enumerable:!0,configurable:!0}),o.prototype.ngOnDestroy=function(){this.rowDataChanged.complete()},o.prototype.onGridReady=function(t){var e=this;this.api.gridApi=t.api,this.gridColumnApi=t.columnApi,this.gridColumnApi.getRowGroupColumns().length>=1&&(this.gridComponent.rowGroupOpened.pipe(i.untilDestroyed(this)).subscribe((function(t){return e.rowGroupStateChange(t)})),this.paginationComponent&&this.paginationComponent.toggleRowGroup.pipe(i.untilDestroyed(this)).subscribe((function(){return e.toggleCollapseState()}))),this.cdr.detectChanges(),this.gridReady.emit(t)},o.prototype.alignTable=function(t){0===t?this.fitToContainer():this.fitToContent()},o.prototype.updateColumns=function(t){this.gridHelper.updateColumns(this.api.gridApi,t)},o.prototype.writeValue=function(t){var e=this,o=t?X.coerceArray(t):[];this.api.ready?this.api.setSelectedRows(o):n.combineLatest(this.rowDataChanged,this.gridReady).pipe(r.take(1),i.untilDestroyed(this)).subscribe((function(){return e.api.setSelectedRows(o)}))},o.prototype.fitToContainer=function(){this.gridOptions.api.sizeColumnsToFit()},o.prototype.fitToContent=function(){this.gridOptions.columnApi.autoSizeAllColumns();var t=this.hostElement.getBoundingClientRect().width,e=this.hostElement.querySelector(".ag-body-container");t>(e?e.clientWidth:0)&&this.fitToContainer()},o.prototype.rowGroupStateChange=function(t){if(0===t.node.rowGroupIndex){var e=!0;t.api.forEachNode((function(t){0===t.rowGroupIndex&&t.expanded&&(e=!1)})),this.isRowsCollapsed=e,this.paginationComponent.initPagination()}},o.prototype.toggleCollapseState=function(){this.isRowsCollapsed?this.api.gridApi.expandAll():this.api.gridApi.collapseAll(),this.isRowsCollapsed=!this.isRowsCollapsed,this.paginationComponent.initPagination()},Object.defineProperty(o.prototype,"hostElement",{get:function(){return this.element.nativeElement},enumerable:!0,configurable:!0}),o.prototype.hideMenuIcon=function(){Yt(this.activeMenu,"menu-active"),this.activeMenu=null},o.ctorParameters=function(){return[{type:jo},{type:e.ElementRef},{type:_e},{type:e.ChangeDetectorRef}]},At([e.ViewChild(st.AgGridAngular,{static:!0}),bt("design:type",st.AgGridAngular)],o.prototype,"gridComponent",void 0),At([e.ViewChild(Mo,{static:!0}),bt("design:type",Mo)],o.prototype,"paginationComponent",void 0),At([e.Input(),bt("design:type",Object),bt("design:paramtypes",[Object])],o.prototype,"options",null),At([e.Output(),bt("design:type",Object)],o.prototype,"gridReady",void 0),o=At([e.Component({selector:"dato-grid",template:'<ag-grid-angular class="ag-dato-core ag-theme-material"\n [gridOptions]="gridOptions"\n multiSortKey="ctrl"\n (gridReady)="onGridReady($event)">\n</ag-grid-angular>\n<dato-grid-pagination *ngIf="hasPagination"\n class="d-flex-row flex-0-0-100"\n (alignTable)="alignTable($event)"\n [isCollapsed]="isRowsCollapsed"\n [rowDataChanged]="rowDataChanged"\n [agGridApi]="api.gridApi"\n [agGridColumnApi]="gridColumnApi"\n [infinitePagination]="infinitePagination">\n</dato-grid-pagination>\n\n\n\x3c!--<dato-grid-container> /// store, query--\x3e\n\x3c!-- <dato-toolbar>--\x3e\n\x3c!-- <dato-toolbar-item [action]="delete"></dato-toolbar-item>--\x3e\n\x3c!-- <dato-toolbar-more>--\x3e\n\x3c!-- <dato-toolbar-item></dato-toolbar-item>--\x3e\n\x3c!-- </dato-toolbar-more>--\x3e\n\x3c!-- </dato-toolbar>--\x3e\n\n\x3c!-- <dato-grid options="["></dato-grid>--\x3e\n\x3c!--</dato-grid-container>--\x3e\n\n\x3c!--@ViewChild(DatoGridcontainer) container: DatoGridcontainer;--\x3e\n\n\x3c!--this.container.query.getSelctec()--\x3e\n\x3c!--this.container.gridReady.subscribe()--\x3e\n\n\x3c!--delete(){--\x3e\n\n\x3c!--sercer.call().sub(() => )--\x3e\n\x3c!--}--\x3e',changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,providers:[_o],styles:['@font-face{font-family:agGridClassic;src:url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABYIAAsAAAAAKcwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAn4AAATCbWtuOU9TLzIAAAOIAAAAQQAAAFZWVlKaY21hcAAAA8wAAAIQAAAF1I+ffXtnbHlmAAAF3AAADCAAABa8M29qh2hlYWQAABH8AAAANAAAADZ2z8SBaGhlYQAAEjAAAAAeAAAAJAfTBC1obXR4AAASUAAAABoAAAE8zwr/4mxvY2EAABJsAAAAeAAAAKAmcyvAbWF4cAAAEuQAAAAfAAAAIAFlAHhuYW1lAAATBAAAATMAAAJS8kTiWnBvc3QAABQ4AAABzgAAArcDfOWreJx9lLtuE1EQhv/1bkLuCVG4mRBCuIUACRex7K69dhwSOzYmokAUiCY0gBSlQhQ8ASUFT8EzUPAAFJRUPAGipuSbWRuHSMFHu3vOzD//mfnPHCuQNKZbqqm02ew+0dTe7pt9lRWp+Jn/4DzYe/1yVyP9Fb7IvyMKoqea1iU901t9DUrBq+B98Lm0HNbCd+HH8Hv4K4oVglvUKvhx3WckSnnHylRRVblKGsaWMK+pDjrkve7WWZ3RkHva6ug0uybEdJxxhe91zcDTcp6mNkFlDONs8u4ybpDd0YhcN+GvkM0GVmOdJ885jeohOTbJo0F0He8svi12jIlp4WvpBHhDRa7ktp5rCZTVZpGVHi7jSfDaOvbVbVToo9bhr8JvfGvs2rdX2Skl4i7sFVAPXPOyJo9kLTRe0WXYq1ia2BvOXnP2i8SnVJBxVpFXnlL5BKtMj/XCs9ruxTRd5UKTNaob2FvOl1PvQWsDri7YO+QwsNqJrbJXrB38E2S/rX190Cd90Tf90E/9DqJgSsd0kp1Sr3IT/q3/qjeCxofRbbzrf61W7TB9cRj1L2KUjKquT4Kv01PZdpugNtMnYx5jzRw/Tp6Gb5NNzomNscd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s7x+Y1OlyGBIvxqrrR9EzL+zE7OLfhL0Z7siyGTd1EuIbZo2Zpe/+g3wNQYlDEdBYDBM8koohm2wwjV+lYERDzRYDthm3Wn8ABT67hQAA") format("woff"),url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQm1rbjkAAAE4AAAEwk9TLzJWVlKaAAAF/AAAAFZjbWFwj599ewAAB5AAAAXUZ2x5ZjNvaocAAA4EAAAWvGhlYWR2z8SBAAAA4AAAADZoaGVhB9MELQAAALwAAAAkaG10eM8K/+IAAAZUAAABPGxvY2EmcyvAAAANZAAAAKBtYXhwAWUAeAAAARgAAAAgbmFtZfJE4loAACTAAAACUnBvc3QDfOWrAAAnFAAAArcAAQAAA+gAAAAAA+j/9v/1A/MAAQAAAAAAAAAAAAAAAAAAAE8AAQAAAAEAAHoS5IZfDzz1AAsD6AAAAVoJ476AAAABWgnjvoD/9v/2A/MD8gAAAAgAAgAAAAAAAAABAAAATwBsAAwAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQRWAA8AJABaAHYAzAECAWgBiAG8AigDPgN6A5QD2APuBDYAAwAIACAALgABAAsANwA3ADgAOQA3ADYAOgA7ADwAPQACAAYAOAA4ADwAPgA/AAMAAwA/AEAAAgAGABIAGQAFADgAPABJAEoAGAAEADgAOwBKAAMACAAqAEoAKwAQADYARwA7ADwARgBEAEkAOgA6ADwAPQBGADwATABMACwADwA2AEcAOwA8AEYARABJADoAOgA8AD0ARgA8AD0ALQAFADsANwBCADoAAwAIABwALgAUAAkASwA5AEYAPwBBADYAPwBCABIACABFAEoANgA9AEcAOQBHABUAAwBLADkABAAKADAASABcACIAEgA4ADkAOQBGADsAPQBHADkAOgA5ADgASAA7AD0ANgA6ADkAMQALADgAOQA5AEYAQABBADwAPwA5AEcALwAJADgAOQA5AEYAPABKADkAPQAzAAQAOwBAAEMAAQAEABoADQA9AEcAOQA6ADkAOABIADsAPQA2ADoAOQADAAgAIAAqACUACwA8ADoARgA2AEEAQQA8AD4AOQBHACMABAA5AEUAOgAkAAQAPAA9ADkABQAMACQAOgBQAGIAMQALAEgANgBBAEEARgA4ADsANwBCADoALwAKAEgANgBBAEEARgBHADwAPgA9ADAACgBIADYAQQBBAEYAQQA5AEwAOgAyAAgASAA2AEEAQQBGAEkASgAuAAQANgBOADkADAAaAEgAbgCQAKoAwADQAN4A7AD4AQQBDgAHABYAQgA5AEAAQwBEADwARQBGADsAPQBHADkAOgA5ADgASAA7AD0ANgA6ADkACAASAEIAOQBAAEMARAA8AEUARgBJAD0AQABCADkAQABDADkARwAGABAAQgA5AEAAQwBEADwARQBGAEAAQgA5AEAAQwA5AEcACQAMADwAQQA8ADgARgBKADsAQABDADkAOAAMAAoAPAA9ADoAOAA2AEAAOgA5AEcACwAHADwAQQBJAEgAPQA/AAoABgA8AEEASQBIAD0ABAAGADYAPQBAADkAQQAFAAUAQgA2ADgAOgAOAAUAOAA8AD8APwANAAQAPABKAEsADwADAEkAOgAEAAoAGgAoADIAHgAHADwANgBHADsAPQA3AB0ABgA7AD0AQwA5AEcAGwAEADYAPwA6ABwABAA5AEwAOgACAAYAEAAQAAQANgA6ADYAEQAEADkAPwBAAAQACgAcAC4AOgAfAAgANgBFADsASAA7AE0AOQAhAAgAOwA9ADsASAA7AE0AOQAiAAUAOwA9AEkAPwAgAAQAOQA9AEkAAQAEADUACAA9AEEAOwA9AEMAOQBHAAUADAAeACoANgBAACoACAA4ADkATgA7ADwASQA/ACYABQA2AD8AOgA5ACgABQA7AE4APAA6ACkABABBAEkAPwAnAAMAOwA9AAIABgAUABYABgA7AEEAOgA5ADgAFwAFADsAOAA/ADoAAQAPADYANwA4ADkAOgA7AD0APwBAAEEARwBIAEkASgBMAAAAAQKfAZAABQAAAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAA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mlvdXMQcmFkaW8tYnV0dG9uLW9mZg9yYWRpby1idXR0b24tb24FcmlnaHQEc2F2ZQpzbWFsbC1kb3duCnNtYWxsLWxlZnQLc21hbGwtcmlnaHQIc21hbGwtdXAEdGljawh1bmxpbmtlZAp1bmxpbmtlZC0xAWEBZwFyAWUBdAFpAW8BbgF3AXMBYwFsAWgBawFiAXgBLQFkAW0BdQFwAXkBZgF6AXYAAAA=") format("truetype");font-weight:400;font-style:normal}dato-grid{display:block;width:100%;height:100%;overflow:hidden}dato-grid.grid-pagination{padding-bottom:0;display:flex;flex-direction:column}dato-grid.grid-pagination ag-grid-angular{margin-bottom:7px;height:calc(100% - 32px)}.ag-dato-core{width:100%;height:100%}.ag-dato-core .da-grid-icon{display:inline-block;line-height:31px;vertical-align:middle}.ag-dato-core .ag-menu .da-grid-icon svg{vertical-align:middle}.ag-dato-core .ag-header-cell-sortable .ag-sort-none-icon{opacity:0;transition:opacity .2s}.ag-dato-core .ag-header-cell-sortable:hover .ag-sort-none-icon{opacity:1}.ag-dato-core .sort-icon svg{width:14px;height:16px}.ag-dato-core .filter-icon svg{width:13px}.ag-dato-core .menu-icon svg{width:4px;height:14px}.ag-dato-core .menu-auto-size-icon svg,.ag-dato-core .menu-group-icon,.ag-dato-core .menu-pin-icon,.ag-dato-core .menu-un-group-icon{width:16px;height:16px}.ag-dato-core .menu-check-icon svg{width:15px;height:18px}.ag-dato-core .group-contracted-icon,.ag-dato-core .group-expanded-icon{width:7px}.ag-dato-core .group-expanded-icon{transform:rotate(90deg)}']}),bt("design:paramtypes",[jo,e.ElementRef,_e,e.ChangeDetectorRef])],o)}(Ot),No=function(){function t(){}return Object.defineProperty(t.prototype,"grid",{set:function(t){this.rowCount||(this.rowCount=t.rowDataChanged.pipe(i.untilDestroyed(this)).pipe(r.map((function(t){return t.api.getDisplayedRowCount()}))))},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){},At([e.Input(),bt("design:type",Fo),bt("design:paramtypes",[Fo])],t.prototype,"grid",null),t=At([e.Component({selector:"dato-grid-header",template:'<div class="d-flex-row justify-between items-center">\n <p class="dato-headline">\n <ng-content></ng-content>\n <span>({{rowCount | async}})</span>\n </p>\n \x3c!--walk-me--\x3e\n</div>',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[""]})],t)}();
166
166
  /**
167
167
  * @license
168
168
  * Copyright Datorama. All Rights Reserved.
@@ -323,7 +323,7 @@ var ia,ra=function(){function t(t){this.host=t}return t.prototype.ngOnInit=funct
323
323
  *
324
324
  * Use of this source code is governed by an Apache License 2.0 license that can be
325
325
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
326
- */var ga,fa=function(t){return t.value},ma=function(t){return{id:t,label:Ft(t)?"(Empty)":(""+t).trim(),value:t}},ya=function(t,e){var n=t.value,o=t.formattedValue;return{id:e&&n?n[e]:n,label:Ft(o)?"(Empty)":(""+(e?o[e]:o)).trim(),value:e&&n?n[e]:n}},Aa=function(){function a(e,n,i,r,a){var s,l=this;this.host=e,this.popover=n,this.fb=i,this.translate=r,this.cdr=a,this.gridFilterTypes=t.DatoGridFilterTypes,this.columnValues=[],this.listOptions=[],this.filterSections=((s={})[t.DatoGridFilterSections.By_Value]=!0,s[t.DatoGridFilterSections.Conditional]=!0,s),this.rangeOperand=t.DatoFilterConditions.IN_RANGE,this.isClientSideGrid=!1,this.listSearchControl=new o.FormControl,this.loadingList=!1,this.serverSearchErrored=!1,this.applyHotKeyConfig={keys:"meta.enter",handler:function(){return l.closePopUp()},description:"core.apply-filters"},this.hotKeyTooltip=ha(this.applyHotKeyConfig.keys),this.activeAccordionId=0,this.showClearFiltersButton=!0,this.excludedValues=new Set}return Object.defineProperty(a.prototype,"operatorToggler",{set:function(t){t&&this.inputConditionsOperator&&(t.forEach((function(t){t.isDisabled||t.setDisabledState(!0)})),this.cdr.detectChanges())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"byValueControl",{get:function(){return this.filterForm.get("byValue")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"conditionsControls",{get:function(){return this.conditions.controls},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"conditionsOperator",{get:function(){return this.filterForm.get("conditional.operator").value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"defaultOperand",{get:function(){return this.fb.group({type:[this.conditionalFilterOptions[0]],value:[null,o.Validators.required],rangeEnd:[null]})},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isPredefinedListItems",{get:function(){var t=this.colDef.filtersConfig,e=void 0===t?{}:t;return e.predefinedListValues&&"object"==typeof e.predefinedListValues[0]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"defaultConditional",{get:function(){return this.fb.group({operator:[this.inputConditionsOperator||t.OperatorTypes.AND],conditions:this.fb.array([this.defaultOperand])})},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"defaultByValue",{get:function(){return[this.columnValues]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"defaultForm",{get:function(){var t={};return this.filterSections.By_Value&&(t.byValue=this.defaultByValue),this.filterSections.Conditional&&(t.conditional=this.defaultConditional),this.fb.group(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"conditions",{get:function(){return this.filterForm.get("conditional.conditions")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"colFilter",{get:function(){var t=this.gridQuery.getFilter()[this.colField];return t&&he(this.pivotKeys,t.pivotKeys)?t:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"colDef",{get:function(){return this.popover.data.column.getColDef()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pivotKeys",{get:function(){return this.colDef.pivotKeys||[]},enumerable:!0,configurable:!0}),a.prototype.ngOnInit=function(){var e,n=this,o=this.popover.data,a=o.gridService,s=o.gridQuery,l=this.colDef,c=l.filter,p=l.pivotValueColumn,d=l.pivotKeys,u=s.api.columns.getAllColumns().map((function(t){return t.getColDef()}));this.colField=dr(this.colDef);var h,g=u.find((function(t){return t.field===n.colField})),f=g.filtersConfig||this.colDef.filtersConfig||{},m=c||g.filter,y=Or[m];if(this.pivotColumn=s.api.columns.getSecondaryPivotColumn(d,p),this.inputConditionsOperator=f.inputConditionsOperator,Ft(f.showClearFiltersButton)||(this.showClearFiltersButton=f.showClearFiltersButton),f.sections&&(this.filterSections=((e={})[f.sections]=!0,e)),this.keepPredefinedListOriginalOrder=f.keepPredefinedListOriginalOrder&&!kt(f.predefinedListValues),this.filterType=y?m:t.DatoGridFilterTypes.String,this.listLabelType=this.filterType.toLowerCase(),this.listSortByKey=this.filterType===t.DatoGridFilterTypes.Number&&this.colDef.valueFormatter?"id":"label",this.gridQuery=s,this.gridService=a,this.hasFilter$=this.gridQuery.select((function(t){return t.settings.filter[n.colField]})).pipe(r.map((function(t){return!Ft(t)&&he(t.pivotKeys,n.pivotKeys)}))),this.filterSections.Conditional){var A=y||Sr;if(f.showEmptyConditions){var v=[t.DatoFilterConditions.IS_EMPTY,t.DatoFilterConditions.NOT_EMPTY];this.filterType===t.DatoGridFilterTypes.Number&&(v=[t.DatoFilterConditions.IS_NULL,t.DatoFilterConditions.NOT_NULL]),A=St(A,v)}this.conditionalFilterOptions=A.map((function(e,o){return{id:o,operand:e,label:n.translate.transform("core."+(n.filterType===t.DatoGridFilterTypes.Date?"DATE_":"")+e)}}))}if(this.filterSections.By_Value){var b=f.predefinedListValues;if(this.isClientSideGrid=!Ft(b)||!s.isServerSide,!b||this.isStringArray(b)){if(w=b)this.columnValues=w,this.listOptions=w.map(ma);else{var C=this.getColumnValues().filter((function(t){return!Ft(t.value)}));this.columnValues=C.map((function(t){var e=t.value;return!Ft(n.pivotColumn)&&e?e[n.colField]:e})),this.listOptions=C.map((function(t){return ya(t,!Ft(n.pivotColumn)&&n.colField)}))}}else{var w=b;this.columnValues=w.map(fa),this.listOptions=w}h=this.listOptions,this.isClientSideGrid||this.listSearchControl.valueChanges.pipe(i.untilDestroyed(this)).subscribe((function(t){n.serverSearchErrored=!1,""===t.trim()?(n.loadingList=!1,n.listOptions=h,n.patchAndReRegister(n.columnValues),n.cdr.detectChanges()):n.getValuesFromServer(t)}))}this.initForm()},a.prototype.closePopUp=function(){this.applyFilters(),this.popover.close()},a.prototype.applyFilters=function(){if(this.filterForm.valid&&this.filterForm.updateValueAndValidity(),this.filterForm.dirty&&(this.filterForm.valid||this.filterForm.get("conditional").pristine)){var t=this.popover.data.column,e=this.buildFilter();kt(e)?this.gridService.clearColumnFilter(this.colField):this.gridService.setColumnFilter(t,e),this.gridService.notifyFilterUpdate()}},a.prototype.clearFilters=function(){this.gridService.clearColumnFilter(this.colField),this.resetForm()},a.prototype.removeCondition=function(t){this.conditions.removeAt(t),this.filterForm.markAsDirty()},a.prototype.addCondition=function(){this.filterForm.markAsPristine(),this.conditions.push(this.defaultOperand)},a.prototype.getOperandType=function(t){var e=this.conditions.at(t).value.type;return e?e.operand:null},a.prototype.isConditionalEmpty=function(t){var e=t&&t.value&&t.value.type?t.value.type.operand:null;return this.isEmptyOperand(e)},a.prototype.ngOnDestroy=function(){this.byValueSubscription&&this.byValueSubscription.unsubscribe()},a.prototype.getByValueExcludeValues=function(t,e){var n;if(void 0===e&&(e=!1),this.isPredefinedListItems){var o=this.colDef.filtersConfig.predefinedListValues;n=new Set(t.map((function(t){return o.find((function(e){return e.value===t})).id})))}else n=new Set(t.map((function(t){return Pt(t)?t.value:t})));return e?this.listOptions.filter((function(t){var e=t.value;return!n.has(e)})):this.columnValues.filter((function(t){return!n.has(t)}))},a.prototype.buildFilter=function(){var t=this,e=this.filterForm.value,n=e.byValue,o=e.conditional,i={};return this.filterSections.Conditional&&this.setConditionalFilter(i,o),this.filterSections.By_Value&&this.setByValueFilter(i,n),(i.byValue||i.conditional)&&(i.colId=this.colDef.colId,i.pivotKeys=this.pivotKeys,this.pivotColumn&&(i.pivotFieldsMap=this.getPivotFields(this.pivotColumn.getParent()).reduce((function(e,n,o){return t.pivotKeys[o]&&(e[n]=t.pivotKeys[o]),e}),{}))),i},a.prototype.initForm=function(){var t=this.colFilter;this.filterForm=t?this.buildFormFromFilter(t):this.defaultForm,this.registerOperandListeners(),!this.isClientSideGrid&&this.filterSections.By_Value&&this.registerByValueListener()},a.prototype.buildFormFromFilter=function(t){var e={};return this.filterSections.Conditional&&(e.conditional=this.buildConditionalFilter(t.conditional)),this.filterSections.By_Value&&(e.byValue=this.buildByValueFilter(t.byValue)),this.fb.group(e)},a.prototype.resetForm=function(){this.filterForm.setErrors(null);var e={};if(this.filterSections.By_Value&&(e={byValue:this.columnValues}),this.filterSections.Conditional){e=mt(mt({},e),{conditional:{operator:t.OperatorTypes.AND,conditions:[{type:this.conditionalFilterOptions[0],value:null,rangeEnd:null}]}});var n=this.filterForm.controls.conditional;n.removeControl("conditions"),n.addControl("conditions",this.fb.array([this.defaultOperand]))}this.filterForm.reset(e,{emitEvent:!1}),this.filterForm.updateValueAndValidity()},a.prototype.getColumnValues=function(){var e,n=[],o=this.colFilter,i={},r=o&&o.byValue&&o.byValue.condition,a=this.gridQuery.api.grid,s=Ae(this.getValueAndFormattedValue)(this.colField,a,this.colDef.valueFormatter);if(this.isClientSideGrid)a.forEachNodeAfterFilterAndSort((function(t){n.push(s(t)),i[t.id]=!0}));else{var l=a.paginationGetPageSize(),c=l*a.paginationGetCurrentPage(),p=c+l;a.forEachNode((function(t){var e=t.rowIndex;e>=c&&e<p&&n.push(s(t))}))}if(r)if(r===t.DatoFilterConditions.NOT_IN_LIST){var d=this.colDef.valueFormatter,u=o.byValue.values.map((function(t){return{value:t,formattedValue:d?d({value:t}):t}}));n=n.concat(u)}else{var h=this.colFilter.conditional,g=mt(mt({},this.gridQuery.getFilter()),((e={})[this.colField]={conditional:h},e));a.forEachLeafNode((function(t){!i.hasOwnProperty(t.id)&&Pr({row:t,api:a},g)&&n.push(s(t))}))}return ue(n,"value")},a.prototype.getValueAndFormattedValue=function(t,e,n,o){var i=e.getValue(t,o);return{value:i,formattedValue:n?n({value:i}):i}},a.prototype.setConditionalFilter=function(e,n){var o=this,i=n.operator,r=n.conditions;r.filter((function(t){var e=t.value,n=t.type;return!Ft(e)||o.isEmptyOperand(n.operand)})).length&&(e.conditional={type:this.colDef.filter||t.DatoGridFilterTypes.String,operator:i,conditions:r.map((function(e){var n=e.value,i=e.type,r=e.rangeEnd,a={condition:i.operand,value:n};if(i.operand===t.DatoFilterConditions.IN_RANGE){var s=mt(mt({},a),{rangeEnd:r});if(o.filterType===t.DatoGridFilterTypes.Date){var l=n,c=l.from,p=l.to;s={condition:i.operand,value:c,rangeEnd:p}}return s}return a}))})},a.prototype.setByValueFilter=function(e,n){if(this.isClientSideGrid){var o=this.columnValues.length;if(n.length!==o){var i=n.length<o/2?t.DatoFilterConditions.IN_LIST:t.DatoFilterConditions.NOT_IN_LIST;e.byValue={condition:i,values:i===t.DatoFilterConditions.IN_LIST?n:this.getByValueExcludeValues(n)}}}else{var r=Array.from(this.excludedValues.values());r.length>0&&(e.byValue={condition:t.DatoFilterConditions.NOT_IN_LIST,values:r})}},a.prototype.buildByValueFilter=function(e){return e?(e.values.length&&this.filterSections.Conditional&&(this.activeAccordionId=1),e.condition===t.DatoFilterConditions.NOT_IN_LIST?(this.isClientSideGrid||(this.excludedValues=new Set(e.values)),[this.getByValueExcludeValues(e.values)]):[e.values]):this.defaultByValue},a.prototype.buildConditionalFilter=function(t){return t?this.fb.group({operator:[this.inputConditionsOperator||t.operator],conditions:this.fb.array(this.buildConditions(t.conditions))}):this.defaultConditional},a.prototype.buildConditions=function(t){var e=this;return t.map((function(t){var n=t.condition,i=t.value,r={type:[{id:e.conditionalFilterOptions.findIndex((function(t){return t.operand===n})),operand:n,label:"core."+n}],value:[i,o.Validators.required],rangeEnd:null};return Dr(t)&&(r.rangeEnd=[t.rangeEnd,o.Validators.required],r.value=[{from:t.value,to:t.rangeEnd},o.Validators.required]),e.fb.group(r)}))},a.prototype.registerOperandListeners=function(){var e=this;this.conditions&&this.conditions.valueChanges.pipe(r.startWith(this.conditions.length),r.map((function(){return e.conditions.length})),r.distinctUntilChanged(),r.switchMap((function(){var t=e.conditions.controls.map((function(t,e){return t.get("type").valueChanges.pipe(r.map((function(t){return{value:t,index:e}})))}));return n.merge.apply(void 0,St(t))})),i.untilDestroyed(this)).subscribe((function(n){var o=n.value.operand,i=n.index,r={index:i,inRange:o===t.DatoFilterConditions.IN_RANGE};e.filterType===t.DatoGridFilterTypes.Date?e.updateDateInput(r):e.filterType===t.DatoGridFilterTypes.Number&&e.updateNumberInput(r),e.updateValueControlValidator(o,i)}))},a.prototype.updateDateInput=function(t){var e=t.inRange,n=t.index,o=this.conditions.at(n).get("value"),i=o.value;e&&"string"==typeof i?o.patchValue({from:i,to:i,id:"CUSTOM"}):!e&&i&&"object"==typeof i&&o.patchValue(i.from)},a.prototype.updateNumberInput=function(t){var e=t.inRange,n=t.index,i=e?o.Validators.required:null,r=this.conditions.at(n).get("rangeEnd");r.setValidators(i),r.updateValueAndValidity()},a.prototype.updateValueControlValidator=function(t,e){var n=this.isEmptyOperand(t)?null:o.Validators.required,i=this.conditions.at(e).get("value");i.setValidators(n),i.updateValueAndValidity()},a.prototype.isEmptyOperand=function(e){return e===t.DatoFilterConditions.IS_EMPTY||e===t.DatoFilterConditions.NOT_EMPTY||e===t.DatoFilterConditions.IS_NULL||e===t.DatoFilterConditions.NOT_NULL},a.prototype.isStringArray=function(t){return _t(t[0])},a.prototype.getValuesFromServer=function(e){var n,o=this;this.loadingList=!0,this.listOptions=[];var i={failCallback:function(){o.loadingList=!1,o.serverSearchErrored=!0,o.listOptions=[],o.cdr.detectChanges()},successCallback:function(t){o.loadingList=!1;var e=t.map((function(t){return t[o.colField]}));o.listOptions=e.map(ma),o.patchAndReRegister(e),o.cdr.detectChanges()},serverConfig:{pageSize:30,pageNumber:1,columnFilters:(n={},n[this.colField]={operator:t.OperatorTypes.AND,filters:[{condition:t.DatoFilterConditions.CONTAINS,value:e}]},n),sort:[],columnsToReturn:[this.colField],distinctResults:!0}};this.gridService._originalGetRows(i),this.cdr.detectChanges()},a.prototype.patchAndReRegister=function(t){this.byValueSubscription.unsubscribe(),this.byValueControl.patchValue(this.getNonExcludedValues(t)),this.registerByValueListener()},a.prototype.registerByValueListener=function(){var t=this,e=this.byValueControl;this.byValueSubscription=e.valueChanges.pipe(r.startWith(e.value),r.pairwise()).subscribe((function(e){var n=wt(e,2),o=n[0],i=n[1],r=i.length<o.length;(r?le(o,i):le(i,o)).forEach((function(e){return r?t.excludedValues.add(e):t.excludedValues.delete(e)}))}))},a.prototype.getNonExcludedValues=function(t){var e=this;return t.filter((function(t){return!e.excludedValues.has(t)}))},a.prototype.getPivotFields=function(t,e){void 0===e&&(e=[]);var n=t.getParent(),o=t.getOriginalColumnGroup().getColGroupDef().headerClass;return n&&this.getPivotFields(n,e),o&&e.push(o[0]),e},a.ctorParameters=function(){return[{type:e.ElementRef},{type:aa},{type:o.FormBuilder},{type:Mn},{type:e.ChangeDetectorRef}]},At([e.ViewChildren("operatorToggler"),bt("design:type",e.QueryList),bt("design:paramtypes",[e.QueryList])],a.prototype,"operatorToggler",null),a=At([e.Component({selector:"dato-grid-filter",template:'<form class="container primary-0-background-color" [formGroup]="filterForm" datoForm\n *datoSubscribe="hasFilter$ as hasFilter">\n <ng-container>\n <dato-accordion closeOthers="true" class="filter-options" [activeIds]="activeAccordionId">\n <ng-container *ngIf="filterSections.Conditional">\n\n <dato-accordion-group>\n <dato-accordion-header class="dato-note-bold primary-600-color" data-auto-id="conditional-filters"\n [class.primary-100-background-color]="header_1.isOpen" #header_1>\n <div class="px-10 d-flex align-start-center">\n <div class="filter-title d-flex-grow d-flex align-start-center">{{\'core.filterByCondition\' | translate}}</div>\n <dato-icon class="primary-200-color" height="18px"\n [icon]="header_1.isOpen ? \'collapse\' : \'expand\'"></dato-icon>\n </div>\n </dato-accordion-header>\n <dato-accordion-content #conditionalContent>\n <div class="conditional-content-container d-flex-column" formGroupName="conditional"\n [class.multi-conditions]="conditionsControls.length > 1">\n <div class="operand d-flex-column mb-10"\n [attr.data-auto-id]="\'condition-\' + i"\n *ngFor="let operand of conditionsControls; index as i; last as last">\n <div class="d-flex">\n <div class="d-flex-column d-flex-grow min-width-0">\n <ng-container formArrayName="conditions">\n\n <ng-container [formGroupName]="i">\n <dato-select datoSize="sm" class="mb-10" [attr.data-auto-id]="\'condition-\' + i + \'-operand\'" formControlName="type"\n datoSelectClass="operand-select"\n [dataSet]="conditionalFilterOptions"\n [isCombo]="false" #select>\n <dato-option *ngFor="let option of select.data; index as index"\n [option]="option">\n {{ option.label }}\n </dato-option>\n </dato-select>\n <ng-container [ngSwitch]="filterType">\n <div class="d-flex" *ngSwitchCase="gridFilterTypes.Date">\n <dato-date-picker [attr.data-auto-id]="\'condition-date-\' + i + \'-value\'"\n formControlName="value" class="d-flex-grow range-calendar">\n <ng-template>\n <dato-date-picker-range *ngIf="getOperandType(i) === rangeOperand; else singleDate"></dato-date-picker-range>\n <ng-template #singleDate>\n <dato-date-picker-single></dato-date-picker-single>\n </ng-template>\n </ng-template>\n </dato-date-picker>\n </div>\n <ng-container *ngIf="!isConditionalEmpty(operand)">\n <dato-input *ngSwitchCase="gridFilterTypes.String" datoSize="sm"\n (keydown.enter.stop.prevent)="closePopUp()"\n datoControlErrors [attr.data-auto-id]="\'condition-string-\' + i + \'-value\'"\n [datoControlErrorsOnBlur]="false"\n class="condition-value"\n placeholder="core.filter" formControlName="value"\n [isFocused]="conditionalContent._expanded"\n ></dato-input>\n <div class="d-flex" *ngSwitchCase="gridFilterTypes.Number">\n <dato-input-number (keydown.enter.stop.prevent)="closePopUp()" [showControls]="false"\n class="width-100 condition-value" allowNegative="true">\n <input type="number" formControlName="value" [attr.data-auto-id]="\'condition-number-\' + i + \'-value\'"\n datoInputNumber datoSize="sm" datoControlErrors [datoAutoFocus]="conditionalContent._expanded"\n [datoControlErrorsOnBlur]="false"/>\n </dato-input-number>\n <ng-container *ngIf="getOperandType(i) === rangeOperand">\n <div class="mx-5">-</div>\n <dato-input-number (keydown.enter.stop.prevent)="closePopUp()"\n class="width-100 condition-value" allowNegative="true">\n <input type="number" formControlName="rangeEnd" [attr.data-auto-id]="\'condition-number-\' + i + \'-range-end\'"\n datoInputNumber datoSize="sm" datoControlErrors\n [datoControlErrorsOnBlur]="false"/>\n </dato-input-number>\n </ng-container>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n <div>\n\n <dato-icon-button datoSize="md"\n datoType="none" icon="trash"\n class="overflow-hidden delete"\n datoTooltip="core.deleteFilterCondition"\n [attr.data-auto-id]="\'condition-\' + i + \'-remove\'"\n (click)="removeCondition(i)"\n datoTooltipPosition="right-start"></dato-icon-button>\n </div>\n </div>\n <dato-operator-toggler class="mt-10 justify-center width-100 d-flex" data-auto-id="operator-toggler"\n expanded="true" [datoTogglerValue]="conditionsOperator"\n *ngIf="conditionsControls.length > 1 && !last"\n formControlName="operator" #operatorToggler></dato-operator-toggler>\n </div>\n <div class="d-flex align-center">\n <dato-link *ngIf="conditionsControls.length < 3" class="no-select" datoSize="sm" data-auto-id="add-condition"\n datoType="secondary" (click)="addCondition()">\n <dato-icon height="10px" width="10px" icon="plus-simple"></dato-icon>\n {{ \'core.condition\' | translate }}\n </dato-link>\n </div>\n </div>\n </dato-accordion-content>\n </dato-accordion-group>\n <div class="separator"></div>\n </ng-container>\n <ng-container *ngIf="filterSections.By_Value">\n <dato-accordion-group class="list-content">\n <dato-accordion-header class="dato-note-bold primary-600-color" data-auto-id="by-value-filters"\n [class.primary-100-background-color]="header_2.isOpen" #header_2>\n <div class="px-10 d-flex align-start-center">\n <div class="filter-title d-flex d-flex-grow align-start-center">{{\'core.filterByValue\' | translate}}</div>\n <dato-icon class="primary-200-color" height="18px"\n [icon]="header_2.isOpen ? \'collapse\' : \'expand\'"></dato-icon>\n </div>\n </dato-accordion-header>\n <dato-accordion-content #byValueContent>\n <div class="value-content-container d-flex-column">\n <dato-input datoSize="sm" placeholder="core.search-all-values" [debounceTime]="300" #search [formControl]="listSearchControl" [isFocused]="byValueContent._expanded"></dato-input>\n <dato-list-v2 class="primary-0-background-color"\n containerHeight="195px"\n [withSelectAll]="true"\n [clientSearch]="isClientSideGrid"\n [sortByKey]="listSortByKey"\n [labelType]="listLabelType"\n [searchController]="search"\n [options]="listOptions"\n [isSortList]="!keepPredefinedListOriginalOrder"\n [loading]="loadingList"\n [noDataTpl]="isClientSideGrid ? null : noData"\n formControlName="byValue"\n data-auto-id="by-value-filters-list">\n </dato-list-v2>\n <ng-template #noData>\n <div *ngIf="serverSearchErrored; else noResults" class="mb-10 d-flex-1 d-flex-column align-center" data-auto-id="by-value-server-error">\n <img class="mt-20" datoStaticSrc="core/grid/filter-server-error.svg"/>\n <p class="dato-note-bold mt-10 mb-10 primary-300-color">{{ \'core.something-went-wrong\' | translate }}</p>\n <p class="dato-note-italic primary-300-color">{{ \'core.try-again-later\' | translate }}</p>\n </div>\n <ng-template #noResults>\n <dato-list-no-result class="mb-10 block" data-auto-id="by-value-no-results"></dato-list-no-result>\n </ng-template>\n </ng-template>\n </div>\n </dato-accordion-content>\n </dato-accordion-group>\n <div class="separator"></div>\n </ng-container>\n </dato-accordion>\n </ng-container>\n <div class="actions no-select px-10 py-12 d-flex align-end-center">\n <dato-link *ngIf="showClearFiltersButton" class="mr-30" datoType="secondary" datoSize="sm"\n (click)="clearFilters()" data-auto-id="clear-filters" [disabled]="!hasFilter">\n {{ \'core.clearFilters\' | translate }}\n </dato-link>\n <dato-button datoSize="sm" [datoTooltip]="hotKeyTooltip" [datoHotkeys]="applyHotKeyConfig" (click)="closePopUp()" data-auto-id="apply-filters">{{\'core.apply\' | translate}}</dato-button>\n </div>\n</form>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host dato-accordion-header{transition:background-color .2s ease-in-out}:host>.container{width:242px}:host .value-content-container dato-input{padding:10px}:host .conditional-content-container{padding:10px;transition:padding-right .2s ease-in-out}:host .conditional-content-container.multi-conditions{padding-right:0}:host .conditional-content-container.multi-conditions .delete{width:24px}:host .filter-title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:40px;transition:color .2s ease-in-out}:host .separator{height:1px;width:100%}:host .delete{transition:width .2s ease-in-out;width:0}"]}),bt("design:paramtypes",[e.ElementRef,aa,o.FormBuilder,Mn,e.ChangeDetectorRef])],a)}(),va=function(){function t(t){this.popover=t}return t.prototype.openMoreMenu=function(t,e,n){return void 0===n&&(n=pa),this.openMenu({tpl:n,origin:t,params:e,menuType:"more"})},t.prototype.openFilterMenu=function(t,e,n){return void 0===n&&(n=Aa),this.openMenu({tpl:n,origin:t,params:e,menuType:"filter"})},t.prototype.popoverConfig=function(t,e){return{popper:{placement:"bottom-end"},className:e,data:{api:{grid:t.api,columns:t.columnApi},column:t.column,gridQuery:t.gridQuery,gridService:t.gridService}}},t.prototype.openMenu=function(t){var e=t.tpl,n=t.origin,o=t.params,i=t.menuType;return o.api.hidePopupMenu(),this.popover.open(e,n,this.popoverConfig(o,"dato-grid-"+i+"-menu"))},t.ctorParameters=function(){return[{type:la}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(la))},token:t,providedIn:"root"}),t=At([e.Injectable({providedIn:"root"}),bt("design:paramtypes",[la])],t)}(),ba=function(){function o(t,e,n,o){this.vcr=t,this.controller=e,this.host=n,this.cdr=o,this.moreMenuOpen=!1,this.filtersMenuOpen=!1}return o.prototype.afterGuiAttached=function(t){},o.prototype.agInit=function(e){var o=this;this.params=e,this.column=e.column;var a=e.column.getColDef();this.headerInfo=a.info,this.headerName=a.headerName,this.showFilter=a.filter!==t.DatoGridFilterTypes.None,this.showMoreMenu=Ft(a.moreMenuActions)||a.moreMenuActions.length>0,this.field=dr(a),this.headerTooltip=this.getHeaderTooltip(a),this.context={api:{grid:e.api,columns:e.columnApi},column:this.column};var s=this.params,l=s.gridQuery,c=s.gridService;this.customTemplates=c.getCustomHeader(this.field),this.filterActive$=l.select((function(t){return t.settings.filter[o.field]})).pipe(r.map((function(t){var e=t&&he(t.pivotKeys,a.pivotKeys);return ye(t)>0&&e}))),this.params.enableSorting&&(n.fromEvent(this.host.nativeElement,"click").pipe(i.untilDestroyed(this)).subscribe((function(){var t,e=o.column.getColDef()?o.column.getColDef().sortingOrder:null,n=o.column.getSort(),i=o.column.getColId();if(e&&e.length>0){var r=e.indexOf(n);t=e[-1===r||r===e.length-1?0:r+1]}else t="asc"!==n?"asc":"desc";c._logEvent("Grids - Column Action",{action:"Sort",column:i}),l.isServerSide&&c.setLoading(!0),l.getGridOptions().sortByStore?c.setSortByColumn(i,t):o.params.setSort(t)})),this.sortingInfo$=l.waitForGrid((function(){return l.gridRef.sortChanged})).pipe(r.startWith({}),r.map((function(){return{active:o.column.isSorting(),icon:!o.column.isSorting()||o.column.isSortAscending()?"sort-ascending":"sort-descending"}}))))},o.prototype.openFilters=function(t){var e=this;this.filtersMenuOpen=!0,this.controller.openFilterMenu(t.host.nativeElement,this.params).pipe(i.untilDestroyed(this)).subscribe((function(){e.filtersMenuOpen=!1,e.cdr.detectChanges()}))},o.prototype.openMoreMenu=function(t){var e=this;this.moreMenuOpen=!0,this.controller.openMoreMenu(t.host.nativeElement,this.params,this.customTemplates.moreMenu).pipe(i.untilDestroyed(this)).subscribe((function(){e.moreMenuOpen=!1,e.cdr.detectChanges()}))},o.prototype.ngOnDestroy=function(){},o.prototype.getHeaderTooltip=function(t){if(this.params){var e=t;if(e.showRowGroup){var n=this.params.columnApi.getRowGroupColumns(),o=n&&n.find((function(t){return t.getColId()===e.showRowGroup})),i=o&&o.getColDef();e=i||e}return e.customHeaderTooltip||e.headerName}return""},o.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:va},{type:e.ElementRef},{type:e.ChangeDetectorRef}]},o=At([e.Component({selector:"dato-grid-column-header",template:'<div class="d-flex align-start-center" [attr.data-auto-id]="field + \'-column-header\'" [attr.data-field]="field">\n <ng-container *ngIf="customTemplates && customTemplates.customHeader as customHeader">\n <div class="mr-5" [attr.data-auto-id]="field + \'-dynamic-section\'">\n <ng-container *ngTemplateOutlet="customHeader; context: context"></ng-container>\n </div>\n </ng-container>\n <div class="d-flex d-flex-grow align-start-center min-width-0 items-center">\n <span class="dato-simple-bold primary-400-color ellipsis min-width-0 mr-5" [datoTooltip]="headerTooltip"\n datoTooltipPosition="bottom">{{headerName}}</span>\n <div>\n <dato-icon class="primary-300-color" *ngIf="headerInfo" [datoTooltip]="headerInfo" datoTooltipPosition="bottom" datoIcon="question"></dato-icon>\n </div>\n </div>\n <div class="sort-icon opacity-0" *ngIf="params.enableSorting && (sortingInfo$ | async) as sortingInfo"\n [class.active]="sortingInfo.active">\n <dato-icon width="24px" height="16px" class="primary-300-color"\n [attr.data-auto-id]="field + \'-sort\'"\n [icon]="sortingInfo.icon"></dato-icon>\n </div>\n <ng-container *ngIf="showFilter">\n <div class="filter relative" *datoSubscribe="filterActive$ as filterActive">\n <dato-icon-button (click.stop)="openFilters(filters)" datoTooltip="core.filters" datoTooltipPosition="bottom"\n datoType="none" [attr.data-auto-id]="field + \'-filter\'" class="filter-icon opacity-0"\n [class.active]="filtersMenuOpen || filterActive"\n datoSize="md" icon="filter"\n #filters></dato-icon-button>\n <div [class.opacity-100]="filterActive"\n class="opacity-0 filter-active-circle accent-400-background-color absolute"></div>\n </div>\n </ng-container>\n <dato-icon-button *ngIf="showMoreMenu" (click.stop)="openMoreMenu(moreMenu)" datoTooltip="core.more-options" datoTooltipPosition="bottom"\n datoType="none" [attr.data-auto-id]="field + \'-more-menu\'" [class.active]="moreMenuOpen"\n datoSize="md" icon="more-vertical" #moreMenu></dato-icon-button>\n</div>\n',styles:[":host{width:100%}:host .filter-icon,:host .sort-icon{transition:opacity .25s linear,width .25s ease-in-out;width:0}:host .sort-icon{height:16px}:host .filter-icon.active,:host .sort-icon.active{opacity:1;width:24px}:host:hover .filter-icon,:host:hover .sort-icon{opacity:1;width:24px}:host .filter-active-circle{pointer-events:none;transition:opacity .2s ease-in-out;position:absolute;height:8px;width:8px;top:2px;right:2px;border-radius:4px;border:1px solid #fff}:host ::ng-deep .filter dato-icon-button dato-icon{transition:color .2s ease-in-out}"]}),bt("design:paramtypes",[e.ViewContainerRef,va,e.ElementRef,e.ChangeDetectorRef])],o)}();function Ca(t){var e=new Date(t||null).getTime();return isNaN(e)?0:e}var wa=function(t){return t[Ra]},Sa={getDataPath:wa,components:{fileCellRenderer:function(t){var e=t.data,n=t.eGridCell,o=t.colDef,i=e.icon,r=e.isFolder,a=e.initials,s=void 0===a||a,l=function(t,e,n){if(null===t)return null;var o=function(t,e){var n=e.expanded,o=e.collapsed;return t.parentElement.classList.contains("ag-row-group-expanded")?n:o};return void 0===t?n?o(e,{expanded:"folder-open",collapsed:"folder-closed"}):null:"string"==typeof t?t:o(e,t)}(i,n,r),c=e[o.field],p=o.gridService.svgRegistry;if(l)return'<span class="dato-simple-bold"> <span class="da-grid-icon folder d-flex">'+p.getSvg(l)+'</span><span class="entity-display-name"></span> '+c+"</span>";if(r)return'<span class="entity-display-name dato-simple-bold">'+c+"</span>";if(s){var d=Re(c);return d?'<span class="entity-display-name dato-simple-bold"><span class="initials">'+d+"</span>"+c+"</span>":'<span class="entity-display-name dato-simple-bold">'+c+"</span>"}return'<span class="entity-display-name dato-simple-bold">'+c+"</span>"}},onRowDragMove:function(t){var e,n=t.overNode,o=t.node;e=n?n.data.isFolder?n:n.parent:o.rowModel.rootNode;if(Ta){if(Ta.id===e.id)return;var i=ka(Ta.id);i&&i.classList.remove("ag-row-hover"),Ta=null}else Ta=e;if(e){var r=ka(e.id);r&&r.classList.add("ag-row-hover")}},onRowDragEnd:function(t){var e,n,o=t.overNode,i=t.node;o?(e=i.parent,n=o.data.isFolder?o:o.parent):(e=i.rowModel.rootNode,n=i.rowModel.rootNode);var r=i.data,a=i.gridOptionsWrapper.gridOptions.maxDepth||-1;if(r.isFolder&&-1!==a&&"ROOT_NODE_ID"!==e.id&&o.data.agGridFilePath.length>a)return;var s=n.data?n.data[Ra]:[],l=!Mt(s,r[Ra]),c=function t(e,n){for(var o=e.childrenAfterGroup,i=0;i<o.length;i++){if(n&&o[i].key===n.key)return!0;t(o[i],n)}return!1}(i,n);c&&console.log("invalid move");if(l&&!c){var p=[],d=this.autoGroupColumnDef.gridService.treeConfig.idKey;!function t(e,n,o,i){var r=n.data,a=n.childrenAfterGroup,s=e.slice();r[Ra]=s,o.push(r),ye(a)>0&&a.forEach((function(e){t(St(s,[r[i]]),e,o,i)}));r[Ra].push(r[i])}(s,i,p,d);var u=this.autoGroupColumnDef.gridService.updateRows(p);g=St(u.update,[o,e]),f=["ag-row-level-1","ag-row-level-2","ag-row-level-3"],g.forEach((function(t){var e,n,o=document.querySelectorAll('[row-id="'+t.id+'"]')[1];if(o){try{for(var i=Ct(f),r=i.next();!r.done;r=i.next()){var a=r.value;if(o.classList.contains(a)){o.classList.remove(a);break}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}o.classList.add("ag-row-level-"+t.level)}}));var h=ka(Ta.id);h&&h.classList.remove("ag-row-hover"),Ta=null,this.api.redrawRows({rowNodes:[e,n]}),this.api.clearFocusedCell()}var g,f},onRowSelected:function(t){if(Pa)return;Pa=!0,e=t.node,n=t.node.selected,e.allChildrenCount>0&&e.allLeafChildren.forEach((function(t){t.setSelected(n)})),function(t){var e=t.parent;for(;e&&"ROOT_NODE_ID"!==e.id;)ja(e),e=e.parent}(t.node),setTimeout((function(){Pa=!1}),0);var e,n},onRowGroupOpened:function(t){var e=t.node;this.api.refreshCells({force:!0,rowNodes:[e]})},suppressRowClickSelection:!0,groupSelectsChildren:!0,icons:{rowDrag:'<dato-icon icon="drag" class="dato-icon-font-drag primary-400-color"></dato-icon>'}},xa=function(t,e){return(t||"").toLowerCase().localeCompare((e||"").toLowerCase())},Oa={filter:t.DatoGridFilterTypes.String,comparator:xa},Da=mt({hoverConfig:{enabled:!0,maxDisplayedItems:3},enableV2_1:!1,enableSearch:!1,enableSearchHighlight:!0,columnsIncludedInSearchByDefault:!0,includeHiddenColumnsInSearch:!1,enableAllPagesSelection:!0,idColumnKey:"id",enableBackground:!0,columnTypes:(ga={},ga[t.DatoGridColumnTypes.Date]={filter:t.DatoGridFilterTypes.Date,comparator:function(t,e){return Ca(t)-Ca(e)}},ga[t.DatoGridColumnTypes.Number]={filter:t.DatoGridFilterTypes.Number},ga[t.DatoGridColumnTypes.String]=Oa,ga[t.DatoGridColumnTypes.Status]=mt(mt({},Oa),{cellRenderer:"DatoGridStatusCellComponent"}),ga[t.DatoGridColumnTypes.Items]=mt(mt({},Oa),{cellRenderer:"DatoGridItemsCellComponent"}),ga[t.DatoGridColumnTypes.ItemsCount]=mt(mt({},Oa),{cellRenderer:"DatoGridItemsCountCellComponent"}),ga[t.DatoGridColumnTypes.Initials]=mt(mt({},Oa),{cellRenderer:"DatoGridInitialsCellComponent"}),ga[t.DatoGridColumnTypes.Avatar]=mt(mt({},Oa),{cellRenderer:"DatoGridAvatarCellComponent"}),ga),multiSortKey:"ctrl",suppressPaginationPanel:!0,pagination:!0,paginateChildRows:!0,deltaColumnMode:!0,loadingOverlayComponentFramework:Wr,noRowsOverlayComponentFramework:$r,defaultColDef:{minWidth:t.GridMinWidths.Default,sortable:!0,resizable:!0,type:t.DatoGridColumnTypes.String,menuTabs:["filterMenuTab"],headerComponentFramework:ba},suppressCellSelection:!0,suppressPropertyNamesCheck:!0,rowHeight:35,headerHeight:30,rowSelection:t.GridRowSelectionType.MULTIPLE,rowDeselection:!0,unSortIcon:!0,animateRows:!0,rememberGroupStateWhenNewData:!0,groupMultiAutoColumn:!0,groupDefaultExpanded:-1,usePivotGridStyle:!1,disabledHTMLRenderingFields:[]},Ii()?{suppressColumnVirtualisation:!0,rowBuffer:99999}:{}),Ea={CLIENT:200,SERVER:250},Ia={idKey:"id",parentIDKey:"parentID"},Ra="agGridFilePath";var Ta=null,Pa=!1;function ka(t){return document.querySelector('[row-id="'+t+'"] > .ag-cell')}function ja(t){var e=t.allLeafChildren.map((function(t){return t.selected}));if(!e.every((function(t){return!0===t||void 0===t}))){e.shift();var n=e.reduce((function(t,e){if(t===e)return t}));t.selectThisNode(n)}}function Ma(t,e){var n=e.parentIDKey,o=e.idKey,i=function(e,r){void 0===r&&(r=!1);var a=r?[e[o]]:[],s=t.find((function(t){return t[o]===e[n]}));if(a.unshift(s[o]),s[n]){var l=i(s);a.unshift.apply(a,St(l))}return a};return t.map((function(t){var e,r;return t[n]?mt(mt({},t),((e={})[Ra]=i(t,!0),e)):mt(mt({},t),((r={})[Ra]=[t[o]],r))}))}function _a(t,e){return t.map((function(t){var n,o=yt(t,[]),i=o[Ra],r=ye(i)>1?i[i.length-2]:0;return delete o[Ra],mt(mt({},o),((n={})[e.parentIDKey]=r,n))}))}var Fa=new e.InjectionToken("DATO_CORE_LOGGER"),Na=function(){function t(t,e,n){this.gridService=t,this.gridQuery=e,this.cdr=n,this.checkboxControl=new o.FormControl(!1)}return t.prototype.agInit=function(t){var e=this;this.gridApi=t.api,this.gridOptions=this.gridQuery.getGridOptions(),this.subscribeRowsSelectionData(),this.checkboxControl.valueChanges.pipe(i.untilDestroyed(this)).subscribe((function(t){e.toggleMultiSelection(t)}))},t.prototype.subscribeRowsSelectionData=function(){var t=this;this.gridQuery.gridReady$.pipe(r.take(1),r.switchMap((function(){return t.gridQuery.rowsSelectionData$})),i.untilDestroyed(this)).subscribe((function(e){var n=e.selectedPageRowsCount,o=e.isAllPageRowsSelected;t.indeterminatelyChecked=n>0&&!o,t.checkboxControl.patchValue(o,{emitEvent:!1}),t.cdr.detectChanges()}))},t.prototype.toggleMultiSelection=function(t){if(this.gridService.selectAllCurrentPageRows(t),!t&&this.gridQuery.isServerSelectAllRowsEnabled){var e=this.gridQuery.serverSideConfig,n=e.excludedFromSelectAll,o=e.totalRows,i=de(St(n,this.gridQuery.getCurrentPageRows().map((function(t){return t.id}))));ye(i)===o?this.gridService.setServerSidePagination({selectAllRowsEnabled:!1}):this.gridService.setServerSidePagination({excludedFromSelectAll:i})}},t.prototype.ngOnDestroy=function(){},t.ctorParameters=function(){return[{type:Ba},{type:Ar},{type:e.ChangeDetectorRef}]},t=At([e.Component({selector:"dato-grid-multi-select-column-header",template:'<dato-checkbox [formControl]="checkboxControl" [indeterminatelyChecked]="indeterminatelyChecked"></dato-checkbox>',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{height:100%;display:flex;align-items:center}"]}),bt("design:paramtypes",[Ba,Ar,e.ChangeDetectorRef])],t)}(),Ba=function(){function o(t,e,o,i,r,a,s){this.store=t,this.gridQuery=e,this.translate=o,this.iconRegistry=i,this.svgRegistry=r,this.storageAPI=a,this.logger=s,this.treeConfig=Ia,this.pageNumberToReturnAfterRefresh=-1,this.reloadGridActionsSubject=new n.Subject,this.CHECKBOX_SELECTION_COL_ID="grid-checkbox-selection"}return Object.defineProperty(o.prototype,"treeData",{get:function(){return this.isTreeData},set:function(t){this.isTreeData=t},enumerable:!0,configurable:!0}),o.prototype.ngOnDestroy=function(){},o.prototype._setApi=function(t,e){this.api=t,this.gridRef=e,this.gridName=e.gridOptions.gridName,this.setServerSidePagination({enabled:this.isServerSidePagination(e.gridOptions)})},o.prototype.isServerSidePagination=function(t){return"infinite"===t.rowModelType},o.prototype.updateGridContext=function(t,e){void 0===t&&(t={}),void 0===e&&(e=!1),this.gridQuery.getGridOptions().context=e?t:Zr(this.gridRef.gridOptions.context||{},t)},o.prototype.reloadGridActions=function(){this.reloadGridActionsSubject.next()},o.prototype.onReloadGridActions=function(){return this.reloadGridActionsSubject.asObservable()},o.prototype.setSelectedRows=function(t){this.selectRows(t)},o.prototype.selectRows=function(t){var e=me(t).filter((function(t){return!t.isSelected()})),n=e.pop();e.forEach((function(t){return t.setSelected(!0,!1,!0)})),n&&n.setSelected(!0)},o.prototype.deselectRows=function(t){var e=me(t).filter((function(t){return t.isSelected()})),n=e.pop();e.forEach((function(t){return t.setSelected(!1,!1,!0)})),n&&n.setSelected(!1)},o.prototype.setRows=function(t,e,n){var o=this;void 0===e&&(e=!1),void 0===n&&(n={}),this.gridQuery.gridReady$.pipe(r.take(1)).subscribe((function(){if(o.isTreeData){o.treeConfig=mt(mt({},Ia),n);var i=Ma(t,o.treeConfig);o.api.grid.setRowData(i)}else o.isPivotMode?o.setPivotModeRows(t):o.api.grid.setRowData(t);e?o.fitGrid("container"):$e()}))},o.prototype.setDatasource=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1),e&&this.updatePageToKeepOnRefreshServerData(),n&&this.setLoading(!0),this._originalGetRows=t,this.api.grid.setDatasource({getRows:this.wrapGetRows(this.gridQuery.getGridOptions(),t)})},o.prototype.refreshServerData=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1),t&&this.updatePageToKeepOnRefreshServerData(),e&&this.setLoading(!0),this.api.grid.setDatasource({getRows:this.gridQuery.getGridOptions().datasource.getRows})},o.prototype.updatePageToKeepOnRefreshServerData=function(){1===this.gridQuery.getGridOptions().maxBlocksInCache&&(this.pageNumberToReturnAfterRefresh=this.api.grid.paginationGetCurrentPage())},o.prototype.addRows=function(t,e){var n={add:me(t)};return Ft(e)||(n.addIndex=e),this.api.grid.updateRowData(n)},o.prototype.updateRows=function(t){var e=me(t);return this.api.grid.updateRowData({update:e})},o.prototype.updateRowValue=function(t,e,n){(_t(t)?this.api.grid.getRowNode(t):t).setDataValue(e,n)},o.prototype.removeRows=function(t){var e=me(t).map((function(t){return t.data}));return this.api.grid.updateRowData({remove:e})},o.prototype.removeSelectedRows=function(){var t=this.gridQuery.getSelectedRowNodes();return this.removeRows(t)},o.prototype.clearTable=function(){this.setRows([])},o.prototype.updateColumns=function(t,e){if(void 0===e&&(e=!1),!t)throw new Ro("No columnDefs were provided. 🕵🏻‍♀️");var n=this.normalizeColumns(me(t)),o=e&&this.gridQuery.getCurrentGridSettings();this.api.grid.setColumnDefs(n),o&&this.loadSavedSettings(o)},o.prototype.normalizeOptions=function(e){var n=this;this.customHeadersTemplates=e.customHeadersTemplates;var o={gridService:this,gridQuery:this.gridQuery};if(e.gridOptions.autoGroupColumnDef=mt(mt({},o),e.gridOptions.autoGroupColumnDef),e.gridOptions.defaultColDef=mt(mt({},e.gridOptions.defaultColDef),{headerComponentParams:o}),void 0===e.gridOptions.enableSearch&&(e.gridOptions.enableSearch=e.gridOptions.enableV2_1),void 0===e.gridOptions.enableBackground&&(e.gridOptions.enableBackground=e.gridOptions.enableV2_1),void 0===e.gridOptions.showMultiSelectionCheckboxes&&(e.gridOptions.showMultiSelectionCheckboxes=e.gridOptions.enableV2_1&&e.gridOptions.rowSelection!==t.GridRowSelectionType.SINGLE),void 0===e.gridOptions.enableSearchHighlight&&(e.gridOptions.enableSearchHighlight=e.gridOptions.enableSearch&&Da.enableSearchHighlight),e.gridOptions.columnDefs=this.normalizeColumns(e.gridOptions.columnDefs,e.gridOptions),e.gridOptions.isExternalFilterPresent=function(){return!0},e.gridOptions.doesExternalFilterPass=function(t){return Pr({row:t,api:n.gridQuery.api.grid},n.gridQuery.getFilter())&&n.rowMatchesSearch(t)},this.isServerSidePagination(e.gridOptions)){e.gridOptions.blockLoadDebounceMillis=300,this._originalGetRows=e.gridOptions.datasource.getRows,e.gridOptions.datasource.getRows=this.wrapGetRows(e.gridOptions);var i=e.gridOptions.paginationPageSize;i&&(e.gridOptions.cacheBlockSize=i)}this.initEditableColumnsCellClass(e),e.gridOptions.getContextMenuItems=this.wrapContextMenuBuilder(e);var r=e.gridOptions,a=r.saveSettings,s=r.gridName;if(e.gridOptions.saveSettings=!1!==a&&!Ft(s),this.initOnRowSelectedForServerSidePagination(e),this.isTreeData){var l=e.gridOptions.rowClassRules;e.gridOptions.rowClassRules=mt(mt({},l),{"ag-empty-folder":function(t){return t.data.isFolder&&0===ye(t.node.childrenAfterGroup)}})}if(this.isPivotMode&&(this.initPivotSecondaryColsProcess(e),e.gridOptions.saveSettings=!1),e.gridOptions.usePivotGridStyle){e.gridOptions.rowHeight=30,e.gridOptions.defaultColDef=mt(mt({},e.gridOptions.defaultColDef),{cellClassRules:this.getPivotModeCellClassRules(),headerClass:this.getPivotHeaderClass.bind(this),cellStyle:function(e){var n={lineHeight:"30px"};return e.colDef.type===t.DatoGridColumnTypes.Number&&(n.textAlign="end"),n}}),e.gridOptions.autoGroupColumnDef=mt(mt({},e.gridOptions.autoGroupColumnDef),{cellClassRules:this.getPivotModeCellClassRules(),headerClass:this.getPivotHeaderClass.bind(this)})}return e.gridOptions},o.prototype.getPivotHeaderClass=function(t){var e=t.colDef.headerComponentParams.gridQuery,n="";if(e&&e.api){var o=e.api.columns.getSecondaryColumns();o&&o.length>0&&(n+="top-border")}return n},o.prototype.normalizeColumns=function(e,n){var o=this;void 0===n&&(n=null),n||(n=this.gridQuery.getGridOptions());var i=e.map((function(e){var i=mt(mt({},e),{headerName:o.translate.transform(e.headerName)});return e.info&&(i.minWidth=e.minWidth||t.GridMinWidths.With_Info),e.colId||(i.colId=e.field),i.type!==t.DatoGridColumnTypes.Items||i.filtersConfig||(i.filtersConfig={sections:t.DatoGridFilterSections.Conditional}),o.normalizeColumnSearchConfig(n,e,i),i}));return this.addMultiSelectHeaderColumnIfRequired(i,n)},o.prototype.normalizeColumnSearchConfig=function(e,n,o){var i=this,r=this.isServerSidePagination(e);void 0===n.includeInSearch&&(r&&n.type===t.DatoGridColumnTypes.Date?o.includeInSearch=!1:o.includeInSearch=void 0!==e.columnsIncludedInSearchByDefault?e.columnsIncludedInSearchByDefault:Da.columnsIncludedInSearchByDefault),o.includeInSearch&&!this.hasCellRenderer(o,e)&&e.enableSearchHighlight&&(o.cellRenderer=function(t){var n=hr(e,t.colDef);return Tt(o.editable)&&o.editable(t)||!Tt(o.editable)&&o.editable?Ur(t,i.gridQuery.getSearchTerm(),n):Yr(t,i.gridQuery.getSearchTerm(),n)})},o.prototype.hasCellRenderer=function(t,e){if(t.cellRenderer)return!0;var n=t.type,o=function(t){return t.columnTypes&&!!t.columnTypes[n]&&!!t.columnTypes[n].cellRenderer};return o(e)||o(Da)},o.prototype.addMultiSelectHeaderColumnIfRequired=function(e,n){var o=n&&n.showMultiSelectionCheckboxes,i=n&&n.rowSelection?n.rowSelection:Da.rowSelection;return o&&i===t.GridRowSelectionType.MULTIPLE?St([{colId:this.CHECKBOX_SELECTION_COL_ID,checkboxSelection:!0,headerComponentFramework:Na,minWidth:29,width:29,maxWidth:29,suppressSizeToFit:!0,cellClass:"checkbox-selection-cell",headerClass:"header-checkbox-selection-cell",resizable:!1,pinned:"left",lockPosition:!0,includeInSearch:!1}],e):e},o.prototype.initOnRowSelectedForServerSidePagination=function(t){var e=this,n=t.gridOptions;if(this.isServerSidePagination(n)){var o=n.onRowSelected;n.onRowSelected=function(t){if(e.gridQuery.isServerSelectAllRowsEnabled){var n=t.node,i=n.isSelected(),r=e.gridQuery.serverSideConfig.excludedFromSelectAll,a=r.includes(n.id);i&&a?e.setServerSidePagination({excludedFromSelectAll:r.filter((function(t){return t!==n.id}))}):i||a||e.setServerSidePagination({excludedFromSelectAll:St(r,[n.id])})}o&&o(t)}}},o.prototype.rowMatchesSearch=function(t){var e,n,o=(this.gridQuery.getSearchTerm()||"").toLowerCase().trim();if(kt(o))return!0;var i=this.gridQuery.getGridOptions().includeHiddenColumnsInSearch?this.gridQuery.getAllColumns():this.gridQuery.getAllDisplayedColumns();try{for(var r=Ct(i),a=r.next();!a.done;a=r.next()){var s=a.value;if(this.api.grid.getColumnDef(s.getColId()).includeInSearch)if((this.api.grid.getValue(s.getColId(),t)||"").toString().toLowerCase().includes(o))return!0}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return!1},o.prototype.fitToContainer=function(){this.api.grid.sizeColumnsToFit()},o.prototype.getCustomHeader=function(t){if(this.customHeadersTemplates){var e=this.customHeadersTemplates.find((function(e){return e.column===t})),n=this.customHeadersTemplates.find((function(t){return!t.column}));if(e||n){var o={moreMenu:e&&e.moreMenu||n&&n.moreMenu,customHeader:e&&e.customHeader||n&&n.customHeader},i=o.moreMenu,r=o.customHeader;return{moreMenu:i&&i.tpl,customHeader:r&&r.tpl}}}return{}},o.prototype.clearAllFilters=function(){this.store.update((function(t){return{settings:mt(mt({},t.settings),{filter:{},searchTerm:null})}})),this.notifyFilterUpdate()},o.prototype.clearColumnFilter=function(t){var e=this.gridQuery.getFilter(),n=t,o=(e[n],yt(e,["symbol"==typeof n?n:n+""]));this.store.update((function(t){return{settings:mt(mt({},t.settings),{filter:o})}})),this.notifyFilterUpdate()},o.prototype.setColumnFilter=function(t,e,n){void 0===n&&(n=!0),this._logEvent("Grids - Filter Applied",{column:t.getColId(),numOfConditions:e.conditional&&e.conditional.conditions.length||0,byValue:e.byValue?"Yes":"No"}),this.updateFilter(t,e),n&&this.notifyFilterUpdate()},o.prototype.setGridFilters=function(t){var e,n;if(this.api&&t){var o={};try{for(var i=Ct(t),r=i.next();!r.done;r=i.next()){var a=r.value,s=a.filter;o[a.field]=s}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this.updateSettings({filter:o}),this.notifyFilterUpdate()}},o.prototype.setSortByColumn=function(t,e){var n=this.gridQuery.getSort({colId:t,sort:e});this.setGridSort(n)},o.prototype.setGridSort=function(t){if(t&&this.api&&this.api.grid.getDisplayedRowCount()>0){var e=t.colId,n=t.sort,o=t.sortIndex,i=this.api.columns.getAllGridColumns();if(i){var r=t,a=i.find((function(t){return(t.getColDef().showRowGroup||t.getColId())===e}));if(a)r={colId:a.getColId(),sort:n};else if(!Ft(o)){var s=this.api.columns.getValueColumns().find((function(t){return t.getColId()===e}));if(e.startsWith("pivot")||s)r={colId:i[o].getColId(),sort:n,sortIndex:o}}this.updateSettings({sort:r}),this.api.grid.setSortModel([r]),this.gridRef.gridOptions.usePivotGridStyle&&this.api.grid.redrawRows()}}},o.prototype.updateFilter=function(t,e){var n=dr(t.getColDef());this.store.update((function(t){var o;return{settings:mt(mt({},t.settings),{filter:mt(mt({},t.settings.filter),(o={},o[n]=e,o))})}}))},o.prototype.setSearchTerm=function(t){this.store.update((function(e){return{settings:mt(mt({},e.settings),{searchTerm:t})}})),this.notifyFilterUpdate()},o.prototype.setServerSidePagination=function(t){this.store.update((function(e){return{serverSidePagination:mt(mt({},e.serverSidePagination),t)}}))},o.prototype.setLoading=function(t){t?this.api.grid.showLoadingOverlay():0===this.api.grid.getDisplayedRowCount()?this.setOverlay(!0):this.setOverlay(!1)},o.prototype.setNoData=function(t){this.setOverlay(t)},o.prototype.setOverlay=function(t){t?this.api.grid.showNoRowsOverlay():this.api.grid.hideOverlay()},o.prototype.updateSettings=function(t){this.store.update((function(e){return{settings:mt(mt({},e.settings),t)}}))},o.prototype.fitGrid=function(t){"container"===t?this.api.grid.sizeColumnsToFit():this.api.columns.autoSizeAllColumns();var e="container"===t?0:1;this.updateSettings({gridAlignment:e,columnsSizes:null})},o.prototype.saveSettingsToServer=function(t){this.storageAPI.set(this.gridName,t)},o.prototype._logEvent=function(t,e){this.logger.logEvent(t,mt({table:this.gridName},e))},o.prototype.wrapSuccessCallback=function(t){var e=this,n=t.successCb,o=t.pageNumber,i=t.isPendingReturnToPage;return function(t,r){e.setServerSidePagination({totalRows:r,hasError:!1}),n(t,r),e.gridQuery._serverDataLoaded.next({api:e.api.grid,columnApi:e.api.columns,type:"ServerDataLoaded",paginationPage:o}),i||(e.setLoading(!1),$e()),e.lastTotalRows=r}},o.prototype.wrapGetRows=function(t,e){var n=this,o=e||t.datasource.getRows;return function(e){var i=e.startRow,r=e.endRow,a=e.sortModel,s=e.successCallback,l=t.paginationPageSize||100,c=n.pageNumberToReturnAfterRefresh>0,p=c&&0===i,d=c?n.pageNumberToReturnAfterRefresh+1:Math.ceil(r/l);n.pageNumberToReturnAfterRefresh=-1;var u=n.gridQuery.getFilter(),h=mt(mt({},e),{failCallback:function(){n.setServerSidePagination({hasError:!0}),n.setOverlay(!0)},successCallback:n.wrapSuccessCallback({pageNumber:d,successCb:s,isPendingReturnToPage:p}),serverConfig:{pageSize:l,pageNumber:d,columnFilters:kt(u)||t.enableV2_1?null:n.buildServerRequestFilters(u),filter:t.enableV2_1?n.buildServerRequestFilters_v2_1(t.columnDefs):null,sort:n.buildServerRequestSort(a)}});if(p){!function(t){(0,t.successCallback)([],n.lastTotalRows)}(h)}else o(h)}},o.prototype.initEditableColumnsCellClass=function(t){var e=this;t.gridOptions.columnDefs.forEach((function(t){if(t.editable)if(Tt(t.editable)){var n=t.cellClass;t.cellClass=function(o){if(t.editable(o)){var i=e.addEditableCellClass(n);return Tt(i)?i(o):i}return Tt(n)?n(o):n}}else t.cellClass=e.addEditableCellClass(t.cellClass)}))},o.prototype.wrapContextMenuBuilder=function(t){var e=this,n=t.gridOptions.customContextMenu,o=Tt(n)?n(t.rowActions):t.rowActions;this.translateActionLabels(o);var i={label:this.translate.transform("core.copy-cell"),icon:"copy",key:"Copy Cell"};return function(t){var n=t.node,r=t.column,a=t.context,s=a&&a.contextMenu&&a.contextMenu.fromOnHover;if(!n)return[];var l=[n],c=1;s?e.updateGridContext({contextMenu:{fromOnHover:!1}}):(i.onClick=function(t){var n=wt(t,1)[0],o=e.api.grid.getValue(r.getColId(),n),i=r.getColDef().valueFormatter;Vn(i&&"string"!=typeof i?i(o):o)},n.isSelected()&&(c=ye(l=e.gridQuery.getSelectedRowNodes())));var p=kr(o,c,l,e.gridQuery.isServerSelectAllRowsEnabled).filter((function(t){return t.visible})),d=[i];return s?d=p:p.length>0&&(d=St([mt(mt({},i),{separator:!0})],p)),Lr({toolbarActions:d,selectedRows:l,iconRegistry:e.svgRegistry,node:n,logger:{log:e._logEvent.bind(e),eventOrigin:s?"On Hover":"Context Menu"}})}},o.prototype.translateActionLabels=function(t){var e=this;t.forEach((function(t){t.label=e.translate.transform(t.label),t.subMenu&&e.translateActionLabels(t.subMenu)}))},o.prototype.loadSavedSettings=function(t){var e=this,n=t.sort,o=t.hiddenColumns,i=t.filter,r=t.groupedColumns,a=t.columnsSizes,s=t.pinnedColumns,l=t.columnsOrder,c=t.gridAlignment,p=this.api,d=p.grid,u=p.columns;u.setColumnsVisible(this.initialSettings.columnsOrder,!0);var h=Ft(o)?this.initialSettings.hiddenColumns:o;u.setColumnsVisible(h,!1),i&&d.onFilterChanged();var g,f=u.getRowGroupColumns();r&&(g=f.filter((function(t){return!r.includes(t.getColId())})),u.addRowGroupColumns(r),u.setColumnsVisible(r,!1)),u.removeRowGroupColumns(g),u.setColumnsVisible(g,!0);var m=n||this.initialSettings.sort;d.setSortModel(m?[m]:null),2===c?a&&Object.keys(a).forEach((function(t){1===a[t]?u.autoSizeColumn(t):u.setColumnWidth(t,a[t])})):1===c?u.autoSizeAllColumns():d.sizeColumnsToFit();var y=s?s.filter((function(t){return t!==e.CHECKBOX_SELECTION_COL_ID})):null,A=l?l.filter((function(t){return t!==e.CHECKBOX_SELECTION_COL_ID})):null;ye(y)>0?u.setColumnsPinned(y,"left"):A&&u.setColumnsPinned(A,null),l&&u.moveColumns(l,0)},o.prototype.getSettingsDiff=function(){return we(this.gridQuery.getCurrentGridSettings(),this.initialSettings)},o.prototype.resetTableSettings=function(){var t=this.initialSettings,e=t.filter,n=yt(t,["filter"]),o=pr(this.api.columns.getAllGridColumns(),!0),i=kt(o)?n.gridAlignment:2,r=mt(mt({},n),{columnsSizes:o,gridAlignment:i});this.updateSettings(r),this.loadSavedSettings(r),this.saveSettingsToServer({filter:e})},o.prototype.initSettings=function(t){this.initialSettings=this.gridQuery.getCurrentGridSettings(),this.updateSettings(t),this.loadSavedSettings(t)},o.prototype.notifyFilterUpdate=function(){var t=this,e=[this.gridRef.filterChanged.asObservable()];this.gridQuery.isServerSide&&(e.push(this.gridQuery.serverDataLoaded$),this.setLoading(!0)),n.combineLatest(e).pipe(r.take(1),i.untilDestroyed(this)).subscribe((function(){var e=t.api.grid.getDisplayedRowCount();t.setOverlay(0===e)})),this.api.grid.onFilterChanged()},o.prototype.buildServerRequestFilters=function(e){var n,o,i={};try{for(var r=Ct(Object.entries(e)),a=r.next();!a.done;a=r.next()){var s=wt(a.value,2),l=s[0],c=s[1],p=c.byValue,d=c.conditional;if(p&&(i[l]={operator:t.OperatorTypes.AND,filters:[p]}),d){var u={operator:d.operator,filters:d.conditions.map((function(e){var n=e.condition,o=e.value;return n===t.DatoFilterConditions.IN_RANGE?{condition:n,start:o,end:e.rangeEnd}:e}))};p?i[l].filters.push(u):i[l]=u}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return i},o.prototype.buildServerRequestFilters_v2_1=function(e){var n=this,o=this.gridQuery.getFilter(),i=this.gridQuery.getSearchTerm(),r=this.buildServerColumnFilters_v2_1(o);if(r.every((function(e){return e.operator===t.OperatorTypes.AND}))){var a=r.map((function(t){return t.filters})).reduce((function(t,e){return e.concat(t)}),[]);r=[{operator:t.OperatorTypes.AND,filters:a}]}var s=ye(r)>1?{operator:t.OperatorTypes.AND,filters:r}:1===ye(r)?r[0]:null;if(!i)return s;var l=this.gridQuery.getGridOptions().includeHiddenColumnsInSearch,c=e.filter((function(t){return t.includeInSearch&&(l||n.api.columns.getColumn(t.colId).isVisible())})).map((function(e){var n=e.field;return{condition:t.DatoFilterConditions.CONTAINS,value:i,column:n}})),p=ye(c)>0?{operator:t.OperatorTypes.OR,filters:c}:null;return s?{operator:t.OperatorTypes.AND,filters:[s,p]}:p},o.prototype.buildServerColumnFilters_v2_1=function(e){var n,o,i=[];try{for(var r=Ct(Object.entries(e)),a=r.next();!a.done;a=r.next()){var s=wt(a.value,2),l=s[0],c=s[1],p=null,d=c.byValue,u=c.conditional;if(d&&(p={operator:t.OperatorTypes.AND,filters:[mt({column:l},d)]}),u){var h=this.getServerConditionalFilter(u,l);p?p.filters.push(h):p=h}i.push(p)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return i},o.prototype.getFilterForServerActionOnSelectAll=function(){var e=this.gridQuery.serverSideConfig.excludedFromSelectAll,n=this.gridQuery.getGridOptions(),o=n.columnDefs,i=n.idColumnKey,r=this.buildServerRequestFilters_v2_1(o);if(kt(e))return r;var a={condition:t.DatoFilterConditions.NOT_IN_LIST,values:e,column:i},s=r?[r,a]:[a];return{operator:t.OperatorTypes.AND,filters:s}},o.prototype.getServerConditionalFilter=function(e,n){return{operator:e.operator,filters:e.conditions.map((function(e){var o=e.condition,i=e.value;return o===t.DatoFilterConditions.IN_RANGE?{condition:o,start:i,end:e.rangeEnd,column:n}:o===t.DatoFilterConditions.IS_EMPTY||o===t.DatoFilterConditions.NOT_EMPTY?{condition:t.DatoFilterConditions.IS_EMPTY,value:o===t.DatoFilterConditions.IS_EMPTY?"true":"false",column:n}:o===t.DatoFilterConditions.IS_NULL||o===t.DatoFilterConditions.NOT_NULL?{condition:t.DatoFilterConditions.IS_NULL,value:o===t.DatoFilterConditions.IS_NULL?"true":"false",column:n}:mt(mt({},e),{column:n})}))}},o.prototype.buildServerRequestSort=function(t){return t.map((function(t){return{column:t.colId,sortOrder:t.sort.toUpperCase()}}))},o.prototype.addEditableCellClass=function(t){var e=this;return Ft(t)?"dato-editable-cell":Tt(t)?function(n){return e.getEditableClassArray(t(n))}:this.getEditableClassArray(t)},o.prototype.getEditableClassArray=function(t){var e=me(t);return e.push("dato-editable-cell"),e},o.prototype.selectAllCurrentPageRows=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!1);var n=this.gridQuery.getCurrentPageRows();if(e){var o=this.gridQuery.serverSideConfig.excludedFromSelectAll;kt(o)||(n=n.filter((function(t){var e=t.id;return!o.includes(e)})))}t?this.selectRows(n):this.deselectRows(n)},o.prototype.deselectAllRows=function(){this.api.grid.deselectAll(),this.gridQuery.isServerSelectAllRowsEnabled&&this.setServerSidePagination({selectAllRowsEnabled:!1,excludedFromSelectAll:[]})},o.prototype.resolveRowActionsVisibility=function(){this.gridQuery._rowActionVisibilityChanged.next()},o.prototype.initPivotSecondaryColsProcess=function(t){var e=this,n=t.gridOptions;n.processSecondaryColDef=function(t){var e=t.pivotValueColumn&&t.pivotValueColumn.getUserProvidedColDef();e&&(t.filter=e.filter),t.pivotKeys&&(t.pivotKeys=t.pivotKeys.map((function(t){var e=ur(t);return e&&e.value||""})))},n.processSecondaryColGroupDef=function(t){if(t.headerName){var n=ur(t.headerName);if(n){var o=n.field,i=n.value;t.headerClass=[o],t.headerName=i,t.children&&t.children.length>0&&t.headerClass.push("group-pivot-cell")}}else if(t.children){var r=wt(t.children,1)[0],a=r&&r.pivotTotalColumnIds;a&&a.length>0&&(t.headerClass=["total-pivot-cell"],t.headerName=e.translate.transform("core.total"))}else t.headerClass=["empty-pivot-header"];t.pivotKeys&&(t.pivotKeys=t.pivotKeys.map((function(t){var e=ur(t);return e&&e.value||""})))}},o.prototype.setPivotModeRows=function(t){var e=this.gridQuery.getAllPivotColumns(),n=t.map((function(t,n){var o,i,r=mt({},t);try{for(var a=Ct(e),s=a.next();!s.done;s=a.next()){var l=s.value.getColDef().field,c={field:l,value:t[l]};r[l]=JSON.stringify(c)}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return r}));this.api.grid.setRowData(n)},o.prototype.getPivotModeCellClassRules=function(){return{"even-row-group-leaf-cell":this.isLeafGroupEvenCell.bind(this),"row-group-root-cell":this.isRowGroupValuedCell.bind(this)}},o.prototype.isLeafGroupEvenCell=function(t){var e=t.node,n=e.leafGroup,o=e.childIndex;return e.rowGroupIndex<=this.getCellClassRuleColIndex(t)&&n&&o%2==0},o.prototype.isRowGroupValuedCell=function(t){var e=t.node,n=e.leafGroup;return e.rowGroupIndex<=this.getCellClassRuleColIndex(t)&&!n},o.prototype.getCellClassRuleColIndex=function(t){var e=t.colDef.headerComponentParams.gridQuery;if(e&&e.api){var n=e.api.columns.getAllDisplayedColumns(),o=n.find((function(e){return e.getColId()===t.colDef.colId}));return n.indexOf(o)}return-1},o.ctorParameters=function(){return[{type:cr},{type:Ar},{type:Mn},{type:_e},{type:Fe},{type:void 0,decorators:[{type:e.Inject,args:[Hr]}]},{type:void 0,decorators:[{type:e.Inject,args:[Fa]}]}]},o=At([e.Injectable(),vt(5,e.Inject(Hr)),vt(6,e.Inject(Fa)),bt("design:paramtypes",[cr,Ar,Mn,_e,Fe,Object,Object])],o)}(),La=function(){function t(t){this.tpl=t}return t.ctorParameters=function(){return[{type:e.TemplateRef}]},t=At([e.Directive({selector:"[datoCustomHeader]"}),bt("design:paramtypes",[e.TemplateRef])],t)}(),Ga=function(){function t(t){this.tpl=t}return t.ctorParameters=function(){return[{type:e.TemplateRef}]},t=At([e.Directive({selector:"[datoCustomMoreMenu]"}),bt("design:paramtypes",[e.TemplateRef])],t)}(),Va=function(){function t(){}return At([e.Input(),bt("design:type",String)],t.prototype,"column",void 0),At([e.ContentChild(La),bt("design:type",Object)],t.prototype,"customHeader",void 0),At([e.ContentChild(Ga),bt("design:type",Object)],t.prototype,"moreMenu",void 0),t=At([e.Component({selector:"dato-custom-header-template",template:"",changeDetection:e.ChangeDetectionStrategy.OnPush})],t)}(),za={light:{"primary-700":"#2E2F30","primary-600":"#37383A","primary-500":"#4F5053","primary-400":"#67696F","primary-300":"#9EA0A5","primary-200":"#CCCED3","primary-100":"#F1F2F5","primary-50":"#F7F8FA","primary-0":"#ffffff","accent-800":"#072A60","accent-700":"#0D47A1","accent-600":"#1C61D7","accent-500":"#317EEB","accent-400":"#09A0FF","accent-350":"#40B2FE","accent-300":"#77C5FD","accent-200":"#BBDEFB","accent-180":"#C7E3FB","accent-100":"#E3F2FD","fg-100":"#37383A","fg-200":"#ffffff"},dark:{"primary-700":"#ffffff","primary-600":"#F7F8FA","primary-500":"#F1F2F5","primary-400":"#CCCED3","primary-300":"#9EA0A5","primary-200":"#67696F","primary-100":"#4F5053","primary-50":"#37383A","primary-0":"#2E2F30","accent-800":"#E3F2FD","accent-700":"#BBDEFB","accent-600":"#77C5FD","accent-500":"#40B2FE","accent-400":"#09A0FF","accent-350":"#317EEB","accent-300":"#1C61D7","accent-200":"#0D47A1","accent-180":"#C7E3FB","accent-100":"#072A60","fg-100":"#ffffff","fg-200":"#37383A"}},Qa=function(){function t(t,e,n,o){this.host=t,this.gridService=e,this.gridQuery=n,this.cdr=o,this.displayedActions=[],this.setBgColorBound=this.setBackgroundColor.bind(this)}return Object.defineProperty(t.prototype,"hostEl",{get:function(){return this.host.nativeElement},enumerable:!0,configurable:!0}),t.prototype.show=function(t){this.removeSelectedListener(),this.params=t,this.row=t.node,this.row.addEventListener("rowSelected",this.setBgColorBound),this.setRowActions(),this.setBackgroundColor({node:this.row}),Qt(this.hostEl,{top:this.row.rowTop+"px",height:this.row.rowHeight+"px",opacity:1,zIndex:1,pointerEvents:"all"})},t.prototype.hide=function(){Qt(this.hostEl,{opacity:0,pointerEvents:"none",zIndex:-1})},t.prototype.openActionMenu=function(t){var e=this.params,n=e.rowIndex,o=e.node,i=e.column,r=e.value,a=this.gridQuery.api.grid.rowRenderer.rowCompsByIndex[n].getRenderedCellForColumn(i);this.gridService.updateGridContext({contextMenu:{fromOnHover:!0}}),a.beans.contextMenuFactory.showMenu(o,i,r,t)},t.prototype.updateScrollPos=function(t){Qt(this.hostEl,{left:t-this.hostEl.scrollWidth-1+"px"})},t.prototype.callAction=function(t){Tt(t.onClick)&&(this.gridService._logEvent("Grids - Table Action",{action:t.key,numOfItems:1,from:"On Hover"}),t.onClick([this.row]))},t.prototype.ngOnDestroy=function(){this.removeSelectedListener()},t.prototype.setRowActions=function(){var t=this.config,e=t.actions,n=t.maxDisplayedItems,o=kr(e,1,[this.row],!1).filter((function(t){var e=t.template,n=t.icon,o=t.visible;return Ft(e)&&_t(n)&&o}));this.displayedActions=o.filter((function(t){return jt(t.onHoverIndex)})).slice(0,n).sort((function(t,e){return t.onHoverIndex-e.onHoverIndex})),0===this.displayedActions.length&&(this.displayedActions=o.slice(0,n)),this.showMore=this.displayedActions.length<o.length,this.cdr.detectChanges()},t.prototype.removeSelectedListener=function(){this.row&&this.row.removeEventListener("rowSelected",this.setBgColorBound)},t.prototype.setBackgroundColor=function(t){var e=t.node,n="accent-100";e.isSelected()&&(n=e.rowIndex%2==0?"accent-180":"accent-200");var o=za.light[n],i="linear-gradient(to right, "+o+"B3 0%, "+o+" 17%, "+o+" 100%)";Qt(this.hostEl,{backgroundImage:i})},t.ctorParameters=function(){return[{type:e.ElementRef},{type:Ba},{type:Ar},{type:e.ChangeDetectorRef}]},t=At([e.Component({selector:"dato-grid-on-hover",template:'<div class="d-flex">\n <div class="gradient"></div>\n <div class="actions d-flex align-end-center">\n <dato-icon-button (click)="callAction(action)" datoSize="md" datoType="none" *ngFor="let action of displayedActions" [icon]="action.icon" [datoTooltip]="action.tooltip || action.label" datoTooltipOffset="[-80,5]"></dato-icon-button>\n <dato-icon-button *ngIf="showMore" (click)="openActionMenu($event)" datoSize="md" datoType="none" icon="more-vertical"></dato-icon-button>\n </div>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;justify-content:flex-end;align-content:center;align-items:center;position:absolute;max-width:150px;transition:opacity .3s ease-in-out;opacity:0}:host .gradient{min-width:20px}"]}),bt("design:paramtypes",[e.ElementRef,Ba,Ar,e.ChangeDetectorRef])],t)}(),Ha=function(){function t(t){var e=this;this.ref=t,this.groups=[],this.groups=Object.keys(t.data).map((function(n){return{scope:n,children:e.resolveKeys(t.data[n])}}))}return t.prototype.resolveKeys=function(t){return t.reduce((function(t,e){var n=e.description,o=e.keys;return t.push({keys:ha(o),description:n}),t}),[])},t.ctorParameters=function(){return[{type:Yo}]},t=At([e.Component({template:' <dato-dialog-header>{{ \'core.available-shortcuts\' | translate }}</dato-dialog-header>\n <dato-dialog-content>\n <section>\n <ng-container *ngFor="let group of groups">\n <section *ngIf="group.children.length" class="flex-1 hotkeys-group">\n <header>{{ group.scope | translate }}</header>\n <table>\n <tbody>\n <tr *ngFor="let child of group.children">\n <td>{{ child.description | translate }}</td>\n\n <td class="text-right">\n <kbd [innerHTML]="child.keys"></kbd>\n </td>\n </tr>\n </tbody>\n </table>\n </section>\n </ng-container>\n\n </section>\n\n\n </dato-dialog-content>\n <dato-dialog-footer> <dato-button datoType="secondary" datoDialogDismiss>{{ \'core.close\' | translate }}</dato-button> </dato-dialog-footer>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host header{background-color:#f6f8fa;border-top-left-radius:2px;border-top-right-radius:2px;border:1px solid #d1d5da;font-weight:500;font-size:14px;padding:8px 16px;border-bottom:0}:host table{border:1px solid #e1e4e8;border-collapse:collapse;width:100%;margin-bottom:1rem;color:#212529}:host th{font-weight:500;text-align:left;vertical-align:bottom;padding:.75rem;border-top:1px solid #dee2e6;border-bottom:2px solid #dee2e6}:host td{padding:8px 16px;border-top:1px solid #dee2e6}:host kbd{margin-right:6px;background-color:#fafbfc;border:1px solid #d1d5da;border-bottom-color:#c6cbd1;border-radius:3px;box-shadow:inset 0 -1px 0 #c6cbd1;color:#444d56;font-size:12px;padding:3px 5px}"]}),bt("design:paramtypes",[Yo])],t)}(),Ua=function(){function o(t,e,n){var o,i=this;this.eventManager=t,this.document=e,this.dialog=n,this.callbacks=[],this.defaults={preventDefault:!0,event:"keydown",element:this.document,scope:"core.general",ignoreInEditable:!1},this.hotkeys=((o={})[this.defaults.scope]=[],o),this.addShortcut({keys:"shift.?",preventDefault:!1,ignoreInEditable:!0}).subscribe((function(t){i.isActiveElementEditable(t)||ye(i.hotkeys)&&i.openHelpModal()}))}return o.prototype.isActiveElementEditable=function(t){return/^(input|textarea)$/i.test(document.activeElement.nodeName)||t.target.isContentEditable},o.prototype.onShortcut=function(t){var e=this;return this.callbacks.push(t),function(){return e.callbacks.filter((function(e){return e!==t}))}},o.prototype.addShortcut=function(t){var e=this,o=mt(mt({},this.defaults),t),i=o.scope,r=o.keys,a=o.description,s=o.element,l=o.event,c=o.preventDefault,p=o.target,d=o.ignoreInEditable,u=r,h=wt(r.split(".")),g=h[0],f=h.slice(1);return"meta"===g&&!1===ua()&&(u=St(["control"],f).join(".")),this.hotkeys[i]||(this.hotkeys[i]=[]),a&&this.hotkeys[i].push({keys:u,description:a}),new n.Observable((function(t){var n=e.eventManager.addEventListener(s,l+"."+u,(function(n){d&&e.isActiveElementEditable(n)||(c&&n.preventDefault(),e.dialog.isOpen&&e.dialog.closeAll(),e.callbacks.forEach((function(t){return t(n,u,p)})),t.next(n))}));return function(){n(),o.target=null,a&&(e.hotkeys[i]=e.hotkeys[i].filter((function(t){return t.keys!==u})))}}))},o.prototype.openHelpModal=function(){this.dialog.open(Ha,{data:this.hotkeys,size:t.Dimensions.MD})},o.ctorParameters=function(){return[{type:ut.EventManager},{type:void 0,decorators:[{type:e.Inject,args:[s.DOCUMENT]}]},{type:$o}]},o.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(ut.EventManager),e.ɵɵinject(s.DOCUMENT),e.ɵɵinject($o))},token:o,providedIn:"root"}),o=At([e.Injectable({providedIn:"root"}),vt(1,e.Inject(s.DOCUMENT)),bt("design:paramtypes",[ut.EventManager,Object,$o])],o)}(),Ya=function(){function t(t,o,i,r,a,s,l,c,p,d){this.gridService=t,this.gridQuery=o,this.cdr=i,this.iconRegistry=r,this.translate=a,this.host=s,this.injector=l,this.resolver=c,this.hotkeys=p,this.storageAPI=d,this.onGridChange=new e.EventEmitter,this.rowActions=[],this.gridActions=[],this.contentInit=new n.Subject,this.gridReady$=this.gridQuery.gridReady$,this.gridElements={centerViewport:null,centerContainer:null,bodyViewport:null},this.treeGridClass="tree"}return Object.defineProperty(t.prototype,"gridOptions",{get:function(){return this._gridOptions},set:function(t){this._gridOptions=t,this.gridService.treeData=t.treeData,this.gridService.isPivotMode=t.pivotMode,this.agGridEl&&(t.treeData?!this.agGridEl.classList.contains(this.treeGridClass)&&this.agGridEl.classList.add(this.treeGridClass):t.enableV2_1||this.agGridEl.classList.add(this.treeGridClass))},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.contentInit.complete(),this.clearTooltip(),this.rowHoverComponent&&this.rowHoverComponent.destroy(),this.rowHoverComponent=null},t.prototype.initializeGrid=function(t,e){this.contentInit.isStopped||(this._initializeGrid(t,e),this.contentInit.next(),this.contentInit.complete())},t.prototype._initializeGrid=function(t,e){var o=this;this.agGridEl=e,this.contentInit.asObservable().pipe(r.switchMap((function(){o.gridOptions=o.normalizeOptions(),t.gridOptions=o.gridOptions;var e=!1===o.gridOptions.saveSettings?n.of(null):o.storageAPI.get(o.gridOptions.gridName);return n.combineLatest([t.gridReady,e])})),i.untilDestroyed(this)).subscribe((function(n){var i=wt(n,2),r=i[0],a=r.api,s=r.columnApi,l=i[1],c=void 0===l?{}:l;(o.gridOptions.rowData||a.showLoadingOverlay(),o.gridOptions.statusBar)||Ht(e.querySelector(".ag-status-bar"),"ag-hidden");var p={grid:a,columns:s};o.gridService._setApi(p,t),o.gridQuery._setApi(p,t),o.gridService.initSettings(c||{}),o.registerSettingsListeners(p,t),o.registerGridListeners(p,t),o.registerEventsTriggeringClearSelectedRows(t),o.registerPaginationChanged(t),o.gridQuery._gridReady.next(!0),o.gridOptions.treeData&&o.agGridEl.classList.add("tree"),o.gridOptions.rowHeight&&o.agGridEl.classList.add("row-height-"+o.gridOptions.rowHeight)}))},t.prototype.normalizeOptions=function(){var t={gridOptions:this.gridOptions,customHeadersTemplates:this.customHeadersTemplates,rowActions:this.rowActions},e=this.gridService.normalizeOptions(t);return Zr(mt(mt(mt({},Da),this.gridOptions.treeData?Sa:{}),{icons:this.getGridIcons(),disabledHTMLRenderingFields:e.disabledHTMLRenderingFields||Da.disabledHTMLRenderingFields}),e)},t.prototype.setGridRows=function(t){this.gridService.setRows(t)},t.prototype.setGridFilters=function(t){this.gridService.setGridFilters(t)},t.prototype.setGridSort=function(t){this.gridService.setGridSort(t)},t.prototype.getGridIcons=function(){var t='<span class="da-grid-icon pointer d-flex column-move">'+this.iconRegistry.getSvg("move-column")+"</span>";return{groupExpanded:'<span class="da-grid-icon pointer group-expanded-icon">'+this.iconRegistry.getSvg("arrow-right")+"</span>",groupContracted:'<span class="da-grid-icon pointer group-contracted-icon">'+this.iconRegistry.getSvg("arrow-right")+"</span>",columnMovePin:'<span class="da-grid-icon pointer d-flex primary-300-fill column-move-pin">'+this.iconRegistry.getSvg("pin")+"</span>",columnMoveHide:'<span class="da-grid-icon pointer d-flex column-move-hide">'+this.iconRegistry.getSvg("eye-hide")+"</span>",columnMoveMove:t,columnMoveLeft:t,columnMoveRight:t,rowDrag:'<span class="da-grid-icon drag d-flex">'+this.iconRegistry.getSvg("drag-01")+"</span>"}},t.prototype.registerSettingsListeners=function(t,e){this.listenToColumnResize(t,e),this.listenToGridEvents(e),this.listenToStoreSettingsChanges()},t.prototype.listenToColumnResize=function(t,e){var n=this,o=e.columnResized.asObservable();this.onHoverEnabled()&&(o=o.pipe(r.filter((function(t){return"uiColumnDragged"===t.source})),r.tap((function(){return n.updateOnHoverPos()})))),o.pipe(r.auditTime(100),r.filter((function(t){var e=t.finished,n=t.source;return e&&"uiColumnDragged"===n})),i.untilDestroyed(this)).subscribe((function(e){var o=wt(e.columns,1)[0],i=mt({},n.gridQuery.getColumnSizes());i?i[o.getColId()]=o.getActualWidth():i=pr(t.columns.getAllGridColumns()),n.gridService.updateSettings({gridAlignment:2,columnsSizes:i})}))},t.prototype.listenToGridEvents=function(t){var e=this,o=t.columnVisible,a=t.sortChanged,s=t.columnRowGroupChanged,l=t.columnPinned,c=t.dragStopped,p=t.filterChanged;n.merge(o,a,s,l,c,p).pipe(r.skip(1),i.untilDestroyed(this)).subscribe((function(t){var n=t.type,o=e.gridService.getSettingsDiff();e.gridService.updateSettings(o);var i=e.getGridData();e.onGridChange.emit({filter:e.gridQuery.getExternalFilter(),sort:e.gridQuery.getSort(),type:n,data:i})}))},t.prototype.listenToStoreSettingsChanges=function(){var t=this;this.gridQuery.select((function(t){return t.settings})).pipe(r.skip(1),r.debounceTime(1e3),i.untilDestroyed(this)).subscribe((function(){var e=t.gridService.getSettingsDiff();t.gridService.saveSettingsToServer(e)}))},t.prototype.registerGridListeners=function(t,e){this.gridElements={centerContainer:Bt(".ag-center-cols-container",this.agGridEl),centerViewport:Bt(".ag-center-cols-viewport",this.agGridEl),bodyViewport:Bt(".ag-body-viewport",this.agGridEl)},this.registerGridClickListener(t.grid),this.registerGridGroupListeners(e),this.registerGridMouseListeners(e),this.registerGridKeyboardListener(t),this.registerWindowResizeListener()},t.prototype.registerGridGroupListeners=function(t){var e=this;t.columnRowGroupChanged.pipe(r.switchMap((function(e){return 0===e.columns.length?n.EMPTY:t.cellClicked.pipe(r.filter((function(t){var e=t.value,n=t.node;return void 0!==e&&!0===n.group})))})),i.untilDestroyed(this)).subscribe((function(t){var e=t.node;e.setExpanded(!e.expanded)})),this.onHoverEnabled()&&t.rowGroupOpened.pipe(r.filter((function(t){return!1===t.node.expanded})),i.untilDestroyed(this)).subscribe((function(){e.lastHoveredRow=null,e.setOnHoverState(!1)}))},t.prototype.registerGridClickListener=function(t){var e=this.gridElements,o=e.bodyViewport,a=e.centerViewport;n.fromEvent(o,"click").pipe(r.filter((function(e){return(e.target===o||e.target===a)&&t.getSelectedRows().length>0})),i.untilDestroyed(this)).subscribe((function(){return t.deselectAll()}))},t.prototype.onHoverEnabled=function(){return this.gridOptions.hoverConfig.enabled&&this.rowActions.length>0},t.prototype.registerGridMouseListeners=function(t){var e,o=this,a=this.gridElements,s=a.bodyViewport,l=a.centerContainer,c=this.onHoverEnabled();c&&(n.fromEvent(l,"mouseleave").pipe(i.untilDestroyed(this)).subscribe((function(){o.toggleRowHoverClass(o.lastHoveredRow),o.lastHoveredRow=null,o.setOnHoverState(!1),e=null})),n.merge(t.bodyScroll.pipe(r.filter((function(t){return"horizontal"===t.direction}))),t.rowDataChanged).pipe(i.untilDestroyed(this)).subscribe((function(){o.updateOnHoverPos()})),this.addOnHoverElement()),t.cellMouseOver.pipe(i.untilDestroyed(this)).subscribe((function(t){var n=t.node,i=t.column;if(e!==n.id+"-"+i.getColId()){e=n.id+"-"+i.getColId(),o.showTooltip(t);var r=t.event.target.parentElement;if(c&&(!1===n.group||Ft(n.group))&&o.lastHoveredRow!==r){var a=o.lastHoveredRow;o.lastHoveredRow=r,o.toggleRowHoverClass([a,o.lastHoveredRow]),o.setOnHoverState(!0,t)}}else clearTimeout(o.cellMouseOutTimer)})),n.merge(n.fromEvent(s,"scroll"),n.fromEvent(this.agGridEl,"mouseleave")).pipe(i.untilDestroyed(this)).subscribe((function(){e=null,o.clearTooltip()})),t.cellMouseOut.pipe(r.filter((function(){return!Ft(o.tooltip)})),i.untilDestroyed(this)).subscribe((function(){o.cellMouseOutTimer=window.setTimeout((function(){return o.clearTooltip()}))}))},t.prototype.clearTooltip=function(){this.tooltip&&this.tooltip.dispose(),this.tooltip=null},t.prototype.showTooltip=function(t){var e=t.event.target;if("SPAN"===e.tagName&&0===e.scrollWidth&&(e=e.parentElement),t.colDef.editable&&(e=e.querySelector(".value-wrapper")||e),e.offsetWidth<e.scrollWidth){clearTimeout(this.cellMouseOutTimer);var n=hr(this.gridOptions,t.colDef),o={cell:e,value:e.innerText,allowHTML:n};Ft(this.tooltip)?this.createAndShowTooltip(o):this.updateTooltip(o)}},t.prototype.createAndShowTooltip=function(t){var e=t.cell,n=t.value,o=t.allowHTML;this.tooltip=new Z(e,{placement:"top",container:document.body,trigger:"manual",title:o?ot.sanitize(n):n,html:o,popperOptions:{modifiers:{preventOverflow:{enabled:!1}}},template:'<div class="tooltip dato-tooltip common-tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'}),this.tooltip.show()},t.prototype.updateTooltip=function(t){var e=t.cell,n=t.value;e!==this.tooltip.reference&&(this.tooltip.reference=e,this.tooltip.popperInstance.reference=e,this.tooltip.updateTitleContent(n)),this.tooltip.show()},t.prototype.addOnHoverElement=function(){this.rowHoverComponent=ta({component:Qa,injector:this.injector,resolver:this.resolver});var t=this.rowHoverComponent,e=t.instance,n=t.hostView;e.config=mt(mt({},this.gridOptions.hoverConfig),{actions:this.rowActions.slice()}),n.detectChanges(),qt(this.gridElements.centerContainer,this.rowHoverEl)},Object.defineProperty(t.prototype,"rowHoverEl",{get:function(){return this.rowHoverComponent.location.nativeElement},enumerable:!0,configurable:!0}),t.prototype.setOnHoverState=function(t,e){var n=this.rowHoverComponent.instance;t?(n.show(e),this.updateOnHoverPos()):n.hide()},t.prototype.updateOnHoverPos=function(){var t=this.gridElements,e=t.centerViewport,n=t.centerContainer,o=n.clientWidth>e.clientWidth?e:n,i=o.clientWidth,r=o.scrollLeft;this.rowHoverComponent.instance.updateScrollPos(i+r)},t.prototype.toggleRowHoverClass=function(t){me(t).forEach((function(t){return t&&t.classList.toggle("actions-hovered")}))},t.prototype.registerGridKeyboardListener=function(t){var e=this;t.grid,t.columns;this.hotkeys.addShortcut({element:this.agGridEl,keys:"meta.a",ignoreInEditable:!0}).pipe(i.untilDestroyed(this)).subscribe((function(){e.gridService.selectAllCurrentPageRows()}))},t.prototype.registerWindowResizeListener=function(){var t=this;n.fromEvent(window,"resize").pipe(r.debounceTime(100),r.filter((function(){return 2!==t.gridQuery.gridAlignment})),i.untilDestroyed(this)).subscribe((function(){var e=0===t.gridQuery.gridAlignment?"container":"content";t.gridService.fitGrid(e)}))},t.prototype.getGridData=function(){var t=this.gridService.api.grid.getModel();return this.gridOptions.treeData?_a(t.rowsToDisplay.map((function(t){return t.data})),this.gridService.treeConfig):t.rowsToDisplay},t.prototype.registerEventsTriggeringClearSelectedRows=function(t){var e=this;(this.gridQuery.isServerSide?n.merge(t.sortChanged,t.filterChanged):t.filterChanged).pipe(i.untilDestroyed(this)).subscribe((function(){e.gridService.deselectAllRows()}))},t.prototype.registerPaginationChanged=function(t){var e=this;this.gridQuery.isServerSide&&t.paginationChanged.pipe(i.untilDestroyed(this)).subscribe((function(){e.gridQuery.isServerSelectAllRowsEnabled&&e.gridService.selectAllCurrentPageRows(!0,!0)}))},t.ctorParameters=function(){return[{type:Ba},{type:Ar},{type:e.ChangeDetectorRef},{type:_e},{type:Mn},{type:e.ElementRef},{type:e.Injector},{type:e.ComponentFactoryResolver},{type:Ua},{type:void 0,decorators:[{type:e.Inject,args:[Hr]}]}]},At([e.ContentChildren(Va),bt("design:type",e.QueryList)],t.prototype,"customHeadersTemplates",void 0),At([e.Output(),bt("design:type",Object)],t.prototype,"onGridChange",void 0),At([e.Input(),bt("design:type",Array)],t.prototype,"rowActions",void 0),At([e.Input(),bt("design:type",Array)],t.prototype,"gridActions",void 0),At([e.Input(),bt("design:type",Object),bt("design:paramtypes",[Object])],t.prototype,"gridOptions",null),t=At([e.Component({selector:"dato-grid-controller",template:"\n <ng-content></ng-content>\n ",changeDetection:e.ChangeDetectionStrategy.OnPush,providers:[Ar,Ba,cr],styles:[":host{display:flex;flex-direction:column;flex-grow:1}"]}),vt(9,e.Inject(Hr)),bt("design:paramtypes",[Ba,Ar,e.ChangeDetectorRef,_e,Mn,e.ElementRef,e.Injector,e.ComponentFactoryResolver,Ua,Object])],t)}(),Wa=function(){function t(t,e){this.controller=t,this.host=e}return Object.defineProperty(t.prototype,"grid",{set:function(t){if(t){var e=Bt("ag-grid-angular",this.host.nativeElement);this.controller.initializeGrid(t,e)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridOptions",{get:function(){return this.controller?this.controller.gridOptions:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableBackground",{get:function(){return!!this.gridOptions&&this.gridOptions.enableBackground},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableV2_1",{get:function(){return!!this.gridOptions&&this.gridOptions.enableV2_1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPivotStyle",{get:function(){return this.gridOptions&&this.gridOptions.usePivotGridStyle},enumerable:!0,configurable:!0}),t.ctorParameters=function(){return[{type:Ya},{type:e.ElementRef}]},At([e.ViewChild(st.AgGridAngular,{static:!1}),bt("design:type",st.AgGridAngular),bt("design:paramtypes",[st.AgGridAngular])],t.prototype,"grid",null),t=At([e.Component({selector:"dato-grid-v2",template:'<ag-grid-angular data-auto-id="grid" class="dato-grid ag-theme-material" [class.has-background]="enableBackground" [class.enable-v2_1]="enableV2_1"\n [class.with-multi-selection-col]="gridOptions?.showMultiSelectionCheckboxes" [class.pivot-style]="isPivotStyle">\n</ag-grid-angular>\n<dato-grid-pagination-v2 [class.has-background]="enableBackground"></dato-grid-pagination-v2>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,styles:["dato-grid-v2{flex-grow:1;display:flex;flex-direction:column;position:relative}dato-grid-v2 .dato-grid,dato-grid-v2 dato-grid-pagination-v2{position:absolute;left:0;right:0;bottom:0}dato-grid-v2 .dato-grid{top:0;bottom:50px}dato-grid-v2 .grid-hover-actions{position:absolute;z-index:2;transition:opacity .2s ease-in-out}dato-grid-v2 .ag-row-drag{width:initial!important;min-width:auto!important}dato-grid-v2 .da-grid-icon{display:inline-block;line-height:31px;vertical-align:middle;width:initial;height:initial}dato-grid-v2 .da-grid-icon.drag{width:14px;height:14px;margin-right:6px;opacity:0;transition:opacity .3s;transform:translateY(-50%)}dato-grid-v2 .da-grid-icon.folder{width:18px;height:35px;margin:0 8px}dato-grid-v2 .ag-row.ag-row-hover .da-grid-icon.drag{opacity:1}dato-grid-v2 ag-grid-angular.tree .ag-group-contracted,dato-grid-v2 ag-grid-angular.tree .ag-group-expanded{display:inline-block;width:18px;text-align:center}dato-grid-v2 ag-grid-angular.tree .ag-group-checkbox{display:none}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-empty-folder .folder{margin-left:26px}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-1 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 1)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-1{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-2 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 2)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-2{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-3 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 3)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-3{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-4 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 4)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-4{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row div[col-id=ag-Grid-AutoColumn]{padding-left:0}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell{display:flex;align-items:center}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell .ag-group-value>span{display:inline-block;vertical-align:middle}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell .initials{border-radius:50%;padding:4px;margin-right:8px;margin-left:20px;width:28px;height:28px;display:inline-block;text-align:center}dato-grid-v2 ag-grid-angular.tree .ag-row-group-leaf-indent{margin-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-selection-checkbox .ag-icon-checkbox-indeterminate:before{text-align:center;content:'-';display:inline-block;position:absolute;top:0;left:0;right:0;bottom:0;line-height:.5;color:#fff}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell{line-height:33px}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell.dato-editable-cell{line-height:29px}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell.ag-cell-inline-editing{height:35px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell{line-height:42px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell.dato-editable-cell{line-height:38px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell.ag-cell-inline-editing{height:44px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell{line-height:48px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell.dato-editable-cell{line-height:44px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell.ag-cell-inline-editing{height:50px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell{line-height:57px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell.dato-editable-cell{line-height:53px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell.ag-cell-inline-editing{height:59px}dato-grid-v2 ag-grid-angular .ag-cell.checkbox-selection-cell{display:flex;padding-right:0}dato-grid-v2 .ag-menu .da-grid-icon svg{vertical-align:middle}dato-grid-v2 .ag-header-cell-sortable .ag-sort-none-icon{opacity:0;transition:opacity .2s}dato-grid-v2 .ag-header-cell-sortable:hover .ag-sort-none-icon{opacity:1}dato-grid-v2 .group-contracted-icon,dato-grid-v2 .group-expanded-icon{width:7px}dato-grid-v2 .group-expanded-icon{transform:rotate(90deg)}dato-grid-v2 .dato-grid .ag-cell{border-top:0;border-bottom:0}dato-grid-v2 .ag-overlay-wrapper ng-component{display:flex}.ag-dnd-ghost{min-width:100px;border:none;display:flex;justify-content:flex-start;align-content:center;align-items:center;cursor:-webkit-grabbing;cursor:grabbing;z-index:10000000}.ag-dnd-ghost .da-grid-icon.column-move-hide svg{height:18px;width:18px}.ag-dnd-ghost .da-grid-icon.column-move svg,.ag-dnd-ghost .da-grid-icon.column-move-pin svg{height:16px;width:16px}"]}),bt("design:paramtypes",[Ya,e.ElementRef])],t)}(),Ka=function(){function t(t){this.popover=t}return t.prototype.ngOnInit=function(){var t=this,e=this.popover.data,n=e.api,r=e.gridQuery,a=e.gridService;this.api=n.columns;var s=this.api.getRowGroupColumns();this.columns=this.popover.data.gridQuery.getAllColumns().filter((function(t){return!s.includes(t)})).map((function(t){return{label:t.getColDef().headerName,column:t,id:t.getColId()}})).sort((function(t,e){var n=r.getCurrentGridSettings().columnsOrder;return n.indexOf(t.id)-n.indexOf(e.id)}));var l=this.columns.filter((function(t){return t.column.isVisible()})).map((function(t){return t.id}));this.columnControl=new o.FormControl(l),this.columnControl.valueChanges.pipe(i.untilDestroyed(this)).subscribe((function(e){t.api.setColumnsVisible(r.getAllColumns(),!1),t.api.setColumnsVisible(e,!0),a.fitGrid("container");var n=r.getGridOptions(),o=n.enableSearch,i=n.includeHiddenColumnsInSearch;o&&!i&&r.getSearchTerm()&&a.notifyFilterUpdate()}))},t.prototype.ngOnDestroy=function(){},t.ctorParameters=function(){return[{type:aa}]},t=At([e.Component({selector:"dato-grid-columns-display-menu",template:'<div class="pl-10 pr-10 pt-10 list-section overflow-hidden">\n <div class="dato-sub-headline mb-15">{{ \'core.columns\' | translate }}</div>\n <dato-input placeholder="core.search-columns" #search></dato-input>\n <dato-list-v2 [searchController]="search" [options]="columns" [formControl]="columnControl" [isSortList]="false"></dato-list-v2>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;flex-direction:column;max-height:inherit}.list-section{max-height:305px}"]}),bt("design:paramtypes",[aa])],t)}(),qa=function(){function t(t){this.popover=t,this.addGroup=new o.FormControl,this.activeGroups=[]}return t.prototype.ngOnInit=function(){var t=this;this.api=this.popover.data.api.columns,this.initMenu(),this.addGroup.valueChanges.pipe(i.untilDestroyed(this)).subscribe((function(e){var n=e.column;t.api.addRowGroupColumn(n),t.api.setColumnVisible(n,!1),t.popover.data.gridService._logEvent("Grids - Group Added",{totalNumOfGroups:t.api.getRowGroupColumns().length,column:n.getColId(),groupedFrom:"Table Toolbar"}),t.initMenu()}))},t.prototype.ngOnDestroy=function(){},t.prototype.reorderGroups=function(t){var e=this,n=t.oldIndex,o=t.newIndex;this.api.moveRowGroupColumn(n,o);var i=this.api.getAllDisplayedColumns().find((function(t){return e.activeGroups[o].getColId()===t.getColDef().showRowGroup}));this.api.moveColumn(i,0)},t.prototype.clearGrouping=function(){this.activeGroups.length>0&&(this.api.setRowGroupColumns([]),this.initMenu())},t.prototype.removeColumn=function(t){this.api.removeRowGroupColumn(t),this.initMenu()},t.prototype.initMenu=function(){var t=this;this.addGroup.reset(null,{emitEvent:!1}),this.activeGroups=St(this.api.getRowGroupColumns()),this.optionalColumns=this.api.getAllDisplayedColumns().filter((function(e){return!t.activeGroups.find((function(t){return t.getColId()===e.getColDef().showRowGroup}))})).map((function(t){return{label:t.getColDef().headerName,id:t.getColId(),column:t}}))},t.ctorParameters=function(){return[{type:aa}]},t=At([e.Component({selector:"dato-grid-groups-menu",template:'<div class="header dato-simple-bold pl-10 primary-600-color primary-0-background-color d-flex align-start-center">{{ \'core.group-by\' | translate }}</div>\n<div class="body p-10">\n <dato-sortable *ngIf="activeGroups.length > 0" class="width-100" [datoList]="activeGroups"\n (orderUpdated)="reorderGroups($event)">\n <div *ngFor="let column of activeGroups; index as i"\n class="d-flex align-start-center primary-0-background-color group-item mb-5">\n <dato-icon height="18px" [attr.data-auto-id]="\'grid-group-menu-drag-\' + column.getColId()" datoIcon="drag-01" class="handler primary-300-color" datoSortableHandle></dato-icon>\n <div class="d-flex-grow ellipsis dato-note column-name" [datoTooltip]="column.getColDef().headerName"\n datoTooltipOnTextOverflow="true" datoTooltipPosition="bottom"> {{ column.getColDef().headerName }}</div>\n <dato-icon-button [attr.data-auto-id]="\'grid-group-menu-remove-\' + column.getColId()" datoSize="md"\n datoType="none"\n icon="close" class="ml-10 pointer mr-5 remove-group"\n (click)="removeColumn(column)"></dato-icon-button>\n </div>\n </dato-sortable>\n <dato-select *ngIf="activeGroups.length < 3 && optionalColumns.length > 0" [formControl]="addGroup" [dataSet]="optionalColumns"\n placeholder="core.create-new-group" datoSize="md" #select data-auto-id="grid-group-column-selection">\n <dato-option *ngFor="let option of select.data" [option]="option"\n [attr.data-auto-id]="\'grid-group-column-selection-option-\' + option.id"> {{ option.label }} </dato-option>\n </dato-select>\n</div>\n<div class="footer primary-0-background-color d-flex align-end-center">\n <dato-link class="mr-30 no-select" datoType="secondary" datoSize="sm" data-auto-id="grid-group-menu-clear-groups"\n (click)="clearGrouping()">{{ \'core.clear-grouping\' | translate }}</dato-link>\n <dato-button class="mr-10" datoType="primary" datoSize="sm" data-auto-id="grid-group-menu-done"\n datoPopoverClose>{{ \'core.done\' | translate }}</dato-button>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".header{height:40px}.body{height:120px}.footer{height:46px}.group-item{height:30px}.handler{min-width:24px}"]}),bt("design:paramtypes",[aa])],t)}(),Ja=function(){function t(t,e){this.controller=t,this.gridQuery=e,this.displayRowCount=!0}return Object.defineProperty(t.prototype,"enableBackground",{get:function(){return this.controller.gridOptions.enableBackground},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.rowCount$=this.gridQuery.gridReady$.pipe(r.switchMap((function(){return t.rowsCount()})))},t.prototype.rowsCount=function(){var t=this;return this.gridQuery.isServerSide?this.gridQuery.serverDataLoaded$.pipe(r.map((function(){return t.gridQuery.serverSideConfig.totalRows}))):this.gridQuery.rowDataChanged$.pipe(r.map((function(t){return t.api.getDisplayedRowCount()})))},t.ctorParameters=function(){return[{type:Ya},{type:Ar}]},At([e.Input(),bt("design:type",Object)],t.prototype,"displayRowCount",void 0),At([e.Input(),bt("design:type",String)],t.prototype,"headerClass",void 0),t=At([e.Component({selector:"dato-grid-header-v2",template:'<div class="d-flex justify-start items-center mb-20" [class.mx-30]="enableBackground">\n <span class="dato-mid-headline" [ngClass]="headerClass" data-auto-id="grid-header">\n <ng-content></ng-content>\n <ng-container *ngIf="displayRowCount">\n <span *ngIf="(rowCount$ | async)as rowCount" class="ml-5 mr-10">({{rowCount | number}})</span>\n </ng-container>\n </span>\n <ng-content select=".after-title"></ng-content>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),bt("design:paramtypes",[Ya,Ar])],t)}();
326
+ */var ga,fa=function(t){return t.value},ma=function(t){return{id:t,label:Ft(t)?"(Empty)":(""+t).trim(),value:t}},ya=function(t,e){var n=t.value,o=t.formattedValue;return{id:e&&n?n[e]:n,label:Ft(o)?"(Empty)":(""+(e?o[e]:o)).trim(),value:e&&n?n[e]:n}},Aa=function(){function a(e,n,i,r,a){var s,l=this;this.host=e,this.popover=n,this.fb=i,this.translate=r,this.cdr=a,this.gridFilterTypes=t.DatoGridFilterTypes,this.columnValues=[],this.listOptions=[],this.filterSections=((s={})[t.DatoGridFilterSections.By_Value]=!0,s[t.DatoGridFilterSections.Conditional]=!0,s),this.rangeOperand=t.DatoFilterConditions.IN_RANGE,this.isClientSideGrid=!1,this.listSearchControl=new o.FormControl,this.loadingList=!1,this.serverSearchErrored=!1,this.applyHotKeyConfig={keys:"meta.enter",handler:function(){return l.closePopUp()},description:"core.apply-filters"},this.hotKeyTooltip=ha(this.applyHotKeyConfig.keys),this.activeAccordionId=0,this.showClearFiltersButton=!0,this.excludedValues=new Set}return Object.defineProperty(a.prototype,"operatorToggler",{set:function(t){t&&this.inputConditionsOperator&&(t.forEach((function(t){t.isDisabled||t.setDisabledState(!0)})),this.cdr.detectChanges())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"byValueControl",{get:function(){return this.filterForm.get("byValue")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"conditionsControls",{get:function(){return this.conditions.controls},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"conditionsOperator",{get:function(){return this.filterForm.get("conditional.operator").value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"defaultOperand",{get:function(){return this.fb.group({type:[this.conditionalFilterOptions[0]],value:[null,o.Validators.required],rangeEnd:[null]})},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isPredefinedListItems",{get:function(){var t=this.colDef.filtersConfig,e=void 0===t?{}:t;return e.predefinedListValues&&"object"==typeof e.predefinedListValues[0]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"defaultConditional",{get:function(){return this.fb.group({operator:[this.inputConditionsOperator||t.OperatorTypes.AND],conditions:this.fb.array([this.defaultOperand])})},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"defaultByValue",{get:function(){return[this.columnValues]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"defaultForm",{get:function(){var t={};return this.filterSections.By_Value&&(t.byValue=this.defaultByValue),this.filterSections.Conditional&&(t.conditional=this.defaultConditional),this.fb.group(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"conditions",{get:function(){return this.filterForm.get("conditional.conditions")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"colFilter",{get:function(){var t=this.gridQuery.getFilter()[this.colField];return t&&he(this.pivotKeys,t.pivotKeys)?t:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"colDef",{get:function(){return this.popover.data.column.getColDef()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pivotKeys",{get:function(){return this.colDef.pivotKeys||[]},enumerable:!0,configurable:!0}),a.prototype.ngOnInit=function(){var e,n=this,o=this.popover.data,a=o.gridService,s=o.gridQuery,l=this.colDef,c=l.filter,p=l.pivotValueColumn,d=l.pivotKeys,u=s.api.columns.getAllColumns().map((function(t){return t.getColDef()}));this.colField=dr(this.colDef);var h,g=u.find((function(t){return t.field===n.colField})),f=g.filtersConfig||this.colDef.filtersConfig||{},m=c||g.filter,y=Or[m];if(this.pivotColumn=s.api.columns.getSecondaryPivotColumn(d,p),this.inputConditionsOperator=f.inputConditionsOperator,Ft(f.showClearFiltersButton)||(this.showClearFiltersButton=f.showClearFiltersButton),f.sections&&(this.filterSections=((e={})[f.sections]=!0,e)),this.keepPredefinedListOriginalOrder=f.keepPredefinedListOriginalOrder&&!kt(f.predefinedListValues),this.filterType=y?m:t.DatoGridFilterTypes.String,this.listLabelType=this.filterType.toLowerCase(),this.listSortByKey=this.filterType===t.DatoGridFilterTypes.Number&&this.colDef.valueFormatter?"id":"label",this.gridQuery=s,this.gridService=a,this.hasFilter$=this.gridQuery.select((function(t){return t.settings.filter[n.colField]})).pipe(r.map((function(t){return!Ft(t)&&he(t.pivotKeys,n.pivotKeys)}))),this.filterSections.Conditional){var A=y||Sr;if(f.showEmptyConditions){var v=[t.DatoFilterConditions.IS_EMPTY,t.DatoFilterConditions.NOT_EMPTY];this.filterType===t.DatoGridFilterTypes.Number&&(v=[t.DatoFilterConditions.IS_NULL,t.DatoFilterConditions.NOT_NULL]),A=St(A,v)}this.conditionalFilterOptions=A.map((function(e,o){return{id:o,operand:e,label:n.translate.transform("core."+(n.filterType===t.DatoGridFilterTypes.Date?"DATE_":"")+e)}}))}if(this.filterSections.By_Value){var b=f.predefinedListValues;if(this.isClientSideGrid=!Ft(b)||!s.isServerSide,!b||this.isStringArray(b)){if(w=b)this.columnValues=w,this.listOptions=w.map(ma);else{var C=this.getColumnValues().filter((function(t){return!Ft(t.value)}));this.columnValues=C.map((function(t){var e=t.value;return!Ft(n.pivotColumn)&&e?e[n.colField]:e})),this.listOptions=C.map((function(t){return ya(t,!Ft(n.pivotColumn)&&n.colField)}))}}else{var w=b;this.columnValues=w.map(fa),this.listOptions=w}h=this.listOptions,this.isClientSideGrid||this.listSearchControl.valueChanges.pipe(i.untilDestroyed(this)).subscribe((function(t){n.serverSearchErrored=!1,""===t.trim()?(n.loadingList=!1,n.listOptions=h,n.patchAndReRegister(n.columnValues),n.cdr.detectChanges()):n.getValuesFromServer(t)}))}this.initForm()},a.prototype.closePopUp=function(){this.applyFilters(),this.popover.close()},a.prototype.applyFilters=function(){if(this.filterForm.valid&&this.filterForm.updateValueAndValidity(),this.filterForm.dirty&&(this.filterForm.valid||this.filterForm.get("conditional").pristine)){var t=this.popover.data.column,e=this.buildFilter();kt(e)?this.gridService.clearColumnFilter(this.colField):this.gridService.setColumnFilter(t,e),this.gridService.notifyFilterUpdate()}},a.prototype.clearFilters=function(){this.gridService.clearColumnFilter(this.colField),this.resetForm()},a.prototype.removeCondition=function(t){this.conditions.removeAt(t),this.filterForm.markAsDirty()},a.prototype.addCondition=function(){this.filterForm.markAsPristine(),this.conditions.push(this.defaultOperand)},a.prototype.getOperandType=function(t){var e=this.conditions.at(t).value.type;return e?e.operand:null},a.prototype.isConditionalEmpty=function(t){var e=t&&t.value&&t.value.type?t.value.type.operand:null;return this.isEmptyOperand(e)},a.prototype.ngOnDestroy=function(){this.byValueSubscription&&this.byValueSubscription.unsubscribe()},a.prototype.getByValueExcludeValues=function(t,e){var n;if(void 0===e&&(e=!1),this.isPredefinedListItems){var o=this.colDef.filtersConfig.predefinedListValues;n=new Set(t.map((function(t){return o.find((function(e){return e.value===t})).id})))}else n=new Set(t.map((function(t){return Pt(t)?t.value:t})));return e?this.listOptions.filter((function(t){var e=t.value;return!n.has(e)})):this.columnValues.filter((function(t){return!n.has(t)}))},a.prototype.buildFilter=function(){var t=this,e=this.filterForm.value,n=e.byValue,o=e.conditional,i={};return this.filterSections.Conditional&&this.setConditionalFilter(i,o),this.filterSections.By_Value&&this.setByValueFilter(i,n),(i.byValue||i.conditional)&&(i.colId=this.colDef.colId,i.pivotKeys=this.pivotKeys,this.pivotColumn&&(i.pivotFieldsMap=this.getPivotFields(this.pivotColumn.getParent()).reduce((function(e,n,o){return t.pivotKeys[o]&&(e[n]=t.pivotKeys[o]),e}),{}))),i},a.prototype.initForm=function(){var t=this.colFilter;this.filterForm=t?this.buildFormFromFilter(t):this.defaultForm,this.registerOperandListeners(),!this.isClientSideGrid&&this.filterSections.By_Value&&this.registerByValueListener()},a.prototype.buildFormFromFilter=function(t){var e={};return this.filterSections.Conditional&&(e.conditional=this.buildConditionalFilter(t.conditional)),this.filterSections.By_Value&&(e.byValue=this.buildByValueFilter(t.byValue)),this.fb.group(e)},a.prototype.resetForm=function(){this.filterForm.setErrors(null);var e={};if(this.filterSections.By_Value&&(e={byValue:this.columnValues}),this.filterSections.Conditional){e=mt(mt({},e),{conditional:{operator:t.OperatorTypes.AND,conditions:[{type:this.conditionalFilterOptions[0],value:null,rangeEnd:null}]}});var n=this.filterForm.controls.conditional;n.removeControl("conditions"),n.addControl("conditions",this.fb.array([this.defaultOperand]))}this.filterForm.reset(e,{emitEvent:!1}),this.filterForm.updateValueAndValidity()},a.prototype.getColumnValues=function(){var e,n=[],o=this.colFilter,i={},r=o&&o.byValue&&o.byValue.condition,a=this.gridQuery.api.grid,s=Ae(this.getValueAndFormattedValue)(this.colField,a,this.colDef.valueFormatter);if(this.isClientSideGrid)a.forEachNodeAfterFilterAndSort((function(t){n.push(s(t)),i[t.id]=!0}));else{var l=a.paginationGetPageSize(),c=l*a.paginationGetCurrentPage(),p=c+l;a.forEachNode((function(t){var e=t.rowIndex;e>=c&&e<p&&n.push(s(t))}))}if(r)if(r===t.DatoFilterConditions.NOT_IN_LIST){var d=this.colDef.valueFormatter,u=o.byValue.values.map((function(t){return{value:t,formattedValue:d?d({value:t}):t}}));n=n.concat(u)}else{var h=this.colFilter.conditional,g=mt(mt({},this.gridQuery.getFilter()),((e={})[this.colField]={conditional:h},e));a.forEachLeafNode((function(t){!i.hasOwnProperty(t.id)&&Pr({row:t,api:a},g)&&n.push(s(t))}))}return ue(n,"value")},a.prototype.getValueAndFormattedValue=function(t,e,n,o){var i=e.getValue(t,o);return{value:i,formattedValue:n?n({value:i}):i}},a.prototype.setConditionalFilter=function(e,n){var o=this,i=n.operator,r=n.conditions;r.filter((function(t){var e=t.value,n=t.type;return!Ft(e)||o.isEmptyOperand(n.operand)})).length&&(e.conditional={type:this.colDef.filter||t.DatoGridFilterTypes.String,operator:i,conditions:r.map((function(e){var n=e.value,i=e.type,r=e.rangeEnd,a={condition:i.operand,value:n};if(i.operand===t.DatoFilterConditions.IN_RANGE){var s=mt(mt({},a),{rangeEnd:r});if(o.filterType===t.DatoGridFilterTypes.Date){var l=n,c=l.from,p=l.to;s={condition:i.operand,value:c,rangeEnd:p}}return s}return a}))})},a.prototype.setByValueFilter=function(e,n){if(this.isClientSideGrid){var o=this.columnValues.length;if(n.length!==o){var i=n.length<o/2?t.DatoFilterConditions.IN_LIST:t.DatoFilterConditions.NOT_IN_LIST;e.byValue={condition:i,values:i===t.DatoFilterConditions.IN_LIST?n:this.getByValueExcludeValues(n)}}}else{var r=Array.from(this.excludedValues.values());r.length>0&&(e.byValue={condition:t.DatoFilterConditions.NOT_IN_LIST,values:r})}},a.prototype.buildByValueFilter=function(e){return e?(e.values.length&&this.filterSections.Conditional&&(this.activeAccordionId=1),e.condition===t.DatoFilterConditions.NOT_IN_LIST?(this.isClientSideGrid||(this.excludedValues=new Set(e.values)),[this.getByValueExcludeValues(e.values)]):[e.values]):this.defaultByValue},a.prototype.buildConditionalFilter=function(t){return t?this.fb.group({operator:[this.inputConditionsOperator||t.operator],conditions:this.fb.array(this.buildConditions(t.conditions))}):this.defaultConditional},a.prototype.buildConditions=function(t){var e=this;return t.map((function(t){var n=t.condition,i=t.value,r={type:[{id:e.conditionalFilterOptions.findIndex((function(t){return t.operand===n})),operand:n,label:"core."+n}],value:[i,o.Validators.required],rangeEnd:null};return Dr(t)&&(r.rangeEnd=[t.rangeEnd,o.Validators.required],r.value=[{from:t.value,to:t.rangeEnd},o.Validators.required]),e.fb.group(r)}))},a.prototype.registerOperandListeners=function(){var e=this;this.conditions&&this.conditions.valueChanges.pipe(r.startWith(this.conditions.length),r.map((function(){return e.conditions.length})),r.distinctUntilChanged(),r.switchMap((function(){var t=e.conditions.controls.map((function(t,e){return t.get("type").valueChanges.pipe(r.map((function(t){return{value:t,index:e}})))}));return n.merge.apply(void 0,St(t))})),i.untilDestroyed(this)).subscribe((function(n){var o=n.value.operand,i=n.index,r={index:i,inRange:o===t.DatoFilterConditions.IN_RANGE};e.filterType===t.DatoGridFilterTypes.Date?e.updateDateInput(r):e.filterType===t.DatoGridFilterTypes.Number&&e.updateNumberInput(r),e.updateValueControlValidator(o,i)}))},a.prototype.updateDateInput=function(t){var e=t.inRange,n=t.index,o=this.conditions.at(n).get("value"),i=o.value;e&&"string"==typeof i?o.patchValue({from:i,to:i,id:"CUSTOM"}):!e&&i&&"object"==typeof i&&o.patchValue(i.from)},a.prototype.updateNumberInput=function(t){var e=t.inRange,n=t.index,i=e?o.Validators.required:null,r=this.conditions.at(n).get("rangeEnd");r.setValidators(i),r.updateValueAndValidity()},a.prototype.updateValueControlValidator=function(t,e){var n=this.isEmptyOperand(t)?null:o.Validators.required,i=this.conditions.at(e).get("value");i.setValidators(n),i.updateValueAndValidity()},a.prototype.isEmptyOperand=function(e){return e===t.DatoFilterConditions.IS_EMPTY||e===t.DatoFilterConditions.NOT_EMPTY||e===t.DatoFilterConditions.IS_NULL||e===t.DatoFilterConditions.NOT_NULL},a.prototype.isStringArray=function(t){return _t(t[0])},a.prototype.getValuesFromServer=function(e){var n,o=this;this.loadingList=!0,this.listOptions=[];var i={failCallback:function(){o.loadingList=!1,o.serverSearchErrored=!0,o.listOptions=[],o.cdr.detectChanges()},successCallback:function(t){o.loadingList=!1;var e=t.map((function(t){return t[o.colField]}));o.listOptions=e.map(ma),o.patchAndReRegister(e),o.cdr.detectChanges()},serverConfig:{pageSize:30,pageNumber:1,columnFilters:(n={},n[this.colField]={operator:t.OperatorTypes.AND,filters:[{condition:t.DatoFilterConditions.CONTAINS,value:e}]},n),sort:[],columnsToReturn:[this.colField],distinctResults:!0}};this.gridService._originalGetRows(i),this.cdr.detectChanges()},a.prototype.patchAndReRegister=function(t){this.byValueSubscription.unsubscribe(),this.byValueControl.patchValue(this.getNonExcludedValues(t)),this.registerByValueListener()},a.prototype.registerByValueListener=function(){var t=this,e=this.byValueControl;this.byValueSubscription=e.valueChanges.pipe(r.startWith(e.value),r.pairwise()).subscribe((function(e){var n=wt(e,2),o=n[0],i=n[1],r=i.length<o.length;(r?le(o,i):le(i,o)).forEach((function(e){return r?t.excludedValues.add(e):t.excludedValues.delete(e)}))}))},a.prototype.getNonExcludedValues=function(t){var e=this;return t.filter((function(t){return!e.excludedValues.has(t)}))},a.prototype.getPivotFields=function(t,e){void 0===e&&(e=[]);var n=t.getParent(),o=t.getOriginalColumnGroup().getColGroupDef().headerClass;return n&&this.getPivotFields(n,e),o&&e.push(o[0]),e},a.ctorParameters=function(){return[{type:e.ElementRef},{type:aa},{type:o.FormBuilder},{type:Mn},{type:e.ChangeDetectorRef}]},At([e.ViewChildren("operatorToggler"),bt("design:type",e.QueryList),bt("design:paramtypes",[e.QueryList])],a.prototype,"operatorToggler",null),a=At([e.Component({selector:"dato-grid-filter",template:'<form class="container primary-0-background-color" [formGroup]="filterForm" datoForm\n *datoSubscribe="hasFilter$ as hasFilter">\n <ng-container>\n <dato-accordion closeOthers="true" class="filter-options" [activeIds]="activeAccordionId">\n <ng-container *ngIf="filterSections.Conditional">\n\n <dato-accordion-group>\n <dato-accordion-header class="dato-note-bold primary-600-color" data-auto-id="conditional-filters"\n [class.primary-100-background-color]="header_1.isOpen" #header_1>\n <div class="px-10 d-flex align-start-center">\n <div class="filter-title d-flex-grow d-flex align-start-center">{{\'core.filterByCondition\' | translate}}</div>\n <dato-icon class="primary-200-color" height="18px"\n [icon]="header_1.isOpen ? \'collapse\' : \'expand\'"></dato-icon>\n </div>\n </dato-accordion-header>\n <dato-accordion-content #conditionalContent>\n <div class="conditional-content-container d-flex-column" formGroupName="conditional"\n [class.multi-conditions]="conditionsControls.length > 1">\n <div class="operand d-flex-column mb-10"\n [attr.data-auto-id]="\'condition-\' + i"\n *ngFor="let operand of conditionsControls; index as i; last as last">\n <div class="d-flex">\n <div class="d-flex-column d-flex-grow min-width-0">\n <ng-container formArrayName="conditions">\n\n <ng-container [formGroupName]="i">\n <dato-select datoSize="sm" class="mb-10" [attr.data-auto-id]="\'condition-\' + i + \'-operand\'" formControlName="type"\n datoSelectClass="operand-select"\n [dataSet]="conditionalFilterOptions"\n [isCombo]="false" #select>\n <dato-option *ngFor="let option of select.data; index as index"\n [option]="option">\n {{ option.label }}\n </dato-option>\n </dato-select>\n <ng-container [ngSwitch]="filterType">\n <div class="d-flex" *ngSwitchCase="gridFilterTypes.Date">\n <dato-date-picker [attr.data-auto-id]="\'condition-date-\' + i + \'-value\'"\n formControlName="value" class="d-flex-grow range-calendar">\n <ng-template>\n <dato-date-picker-range *ngIf="getOperandType(i) === rangeOperand; else singleDate"></dato-date-picker-range>\n <ng-template #singleDate>\n <dato-date-picker-single></dato-date-picker-single>\n </ng-template>\n </ng-template>\n </dato-date-picker>\n </div>\n <ng-container *ngIf="!isConditionalEmpty(operand)">\n <dato-input *ngSwitchCase="gridFilterTypes.String" datoSize="sm"\n (keydown.enter.stop.prevent)="closePopUp()"\n datoControlErrors [attr.data-auto-id]="\'condition-string-\' + i + \'-value\'"\n [datoControlErrorsOnBlur]="false"\n class="condition-value"\n placeholder="core.filter" formControlName="value"\n [isFocused]="conditionalContent._expanded"\n ></dato-input>\n <div class="d-flex" *ngSwitchCase="gridFilterTypes.Number">\n <dato-input-number (keydown.enter.stop.prevent)="closePopUp()" [showControls]="false"\n class="width-100 condition-value" allowNegative="true">\n <input type="number" formControlName="value" [attr.data-auto-id]="\'condition-number-\' + i + \'-value\'"\n datoInputNumber datoSize="sm" datoControlErrors [datoAutoFocus]="conditionalContent._expanded"\n [datoControlErrorsOnBlur]="false"/>\n </dato-input-number>\n <ng-container *ngIf="getOperandType(i) === rangeOperand">\n <div class="mx-5">-</div>\n <dato-input-number (keydown.enter.stop.prevent)="closePopUp()"\n class="width-100 condition-value" allowNegative="true">\n <input type="number" formControlName="rangeEnd" [attr.data-auto-id]="\'condition-number-\' + i + \'-range-end\'"\n datoInputNumber datoSize="sm" datoControlErrors\n [datoControlErrorsOnBlur]="false"/>\n </dato-input-number>\n </ng-container>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n <div>\n\n <dato-icon-button datoSize="md"\n datoType="none" icon="trash"\n class="overflow-hidden delete"\n datoTooltip="core.deleteFilterCondition"\n [attr.data-auto-id]="\'condition-\' + i + \'-remove\'"\n (click)="removeCondition(i)"\n datoTooltipPosition="right-start"></dato-icon-button>\n </div>\n </div>\n <dato-operator-toggler class="mt-10 justify-center width-100 d-flex" data-auto-id="operator-toggler"\n expanded="true" [datoTogglerValue]="conditionsOperator"\n *ngIf="conditionsControls.length > 1 && !last"\n formControlName="operator" #operatorToggler></dato-operator-toggler>\n </div>\n <div class="d-flex align-center">\n <dato-link *ngIf="conditionsControls.length < 3" class="no-select" datoSize="sm" data-auto-id="add-condition"\n datoType="secondary" (click)="addCondition()">\n <dato-icon height="10px" width="10px" icon="plus-simple"></dato-icon>\n {{ \'core.condition\' | translate }}\n </dato-link>\n </div>\n </div>\n </dato-accordion-content>\n </dato-accordion-group>\n <div class="separator"></div>\n </ng-container>\n <ng-container *ngIf="filterSections.By_Value">\n <dato-accordion-group class="list-content">\n <dato-accordion-header class="dato-note-bold primary-600-color" data-auto-id="by-value-filters"\n [class.primary-100-background-color]="header_2.isOpen" #header_2>\n <div class="px-10 d-flex align-start-center">\n <div class="filter-title d-flex d-flex-grow align-start-center">{{\'core.filterByValue\' | translate}}</div>\n <dato-icon class="primary-200-color" height="18px"\n [icon]="header_2.isOpen ? \'collapse\' : \'expand\'"></dato-icon>\n </div>\n </dato-accordion-header>\n <dato-accordion-content #byValueContent>\n <div class="value-content-container d-flex-column">\n <dato-input datoSize="sm" placeholder="core.search-all-values" [debounceTime]="300" #search [formControl]="listSearchControl" [isFocused]="byValueContent._expanded"></dato-input>\n <dato-list-v2 class="primary-0-background-color"\n containerHeight="195px"\n [withSelectAll]="true"\n [clientSearch]="isClientSideGrid"\n [sortByKey]="listSortByKey"\n [labelType]="listLabelType"\n [searchController]="search"\n [options]="listOptions"\n [isSortList]="!keepPredefinedListOriginalOrder"\n [loading]="loadingList"\n [noDataTpl]="isClientSideGrid ? null : noData"\n formControlName="byValue"\n data-auto-id="by-value-filters-list">\n </dato-list-v2>\n <ng-template #noData>\n <div *ngIf="serverSearchErrored; else noResults" class="mb-10 d-flex-1 d-flex-column align-center" data-auto-id="by-value-server-error">\n <img class="mt-20" datoStaticSrc="core/grid/filter-server-error.svg"/>\n <p class="dato-note-bold mt-10 mb-10 primary-300-color">{{ \'core.something-went-wrong\' | translate }}</p>\n <p class="dato-note-italic primary-300-color">{{ \'core.try-again-later\' | translate }}</p>\n </div>\n <ng-template #noResults>\n <dato-list-no-result class="mb-10 block" data-auto-id="by-value-no-results"></dato-list-no-result>\n </ng-template>\n </ng-template>\n </div>\n </dato-accordion-content>\n </dato-accordion-group>\n <div class="separator"></div>\n </ng-container>\n </dato-accordion>\n </ng-container>\n <div class="actions no-select px-10 py-12 d-flex align-end-center">\n <dato-link *ngIf="showClearFiltersButton" class="mr-30" datoType="secondary" datoSize="sm"\n (click)="clearFilters()" data-auto-id="clear-filters" [disabled]="!hasFilter">\n {{ \'core.clearFilters\' | translate }}\n </dato-link>\n <dato-button datoSize="sm" [datoTooltip]="hotKeyTooltip" [datoHotkeys]="applyHotKeyConfig" (click)="closePopUp()" data-auto-id="apply-filters">{{\'core.apply\' | translate}}</dato-button>\n </div>\n</form>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host dato-accordion-header{transition:background-color .2s ease-in-out}:host>.container{width:242px}:host .value-content-container dato-input{padding:10px}:host .conditional-content-container{padding:10px;transition:padding-right .2s ease-in-out}:host .conditional-content-container.multi-conditions{padding-right:0}:host .conditional-content-container.multi-conditions .delete{width:24px}:host .filter-title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:40px;transition:color .2s ease-in-out}:host .separator{height:1px;width:100%}:host .delete{transition:width .2s ease-in-out;width:0}"]}),bt("design:paramtypes",[e.ElementRef,aa,o.FormBuilder,Mn,e.ChangeDetectorRef])],a)}(),va=function(){function t(t){this.popover=t}return t.prototype.openMoreMenu=function(t,e,n){return void 0===n&&(n=pa),this.openMenu({tpl:n,origin:t,params:e,menuType:"more"})},t.prototype.openFilterMenu=function(t,e,n){return void 0===n&&(n=Aa),this.openMenu({tpl:n,origin:t,params:e,menuType:"filter"})},t.prototype.popoverConfig=function(t,e){return{popper:{placement:"bottom-end"},className:e,data:{api:{grid:t.api,columns:t.columnApi},column:t.column,gridQuery:t.gridQuery,gridService:t.gridService}}},t.prototype.openMenu=function(t){var e=t.tpl,n=t.origin,o=t.params,i=t.menuType;return o.api.hidePopupMenu(),this.popover.open(e,n,this.popoverConfig(o,"dato-grid-"+i+"-menu"))},t.ctorParameters=function(){return[{type:la}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(la))},token:t,providedIn:"root"}),t=At([e.Injectable({providedIn:"root"}),bt("design:paramtypes",[la])],t)}(),ba=function(){function o(t,e,n,o){this.vcr=t,this.controller=e,this.host=n,this.cdr=o,this.moreMenuOpen=!1,this.filtersMenuOpen=!1}return o.prototype.afterGuiAttached=function(t){},o.prototype.agInit=function(e){var o=this;this.params=e,this.column=e.column;var a=e.column.getColDef();this.headerInfo=a.info,this.headerName=a.headerName,this.showFilter=a.filter!==t.DatoGridFilterTypes.None,this.showMoreMenu=Ft(a.moreMenuActions)||a.moreMenuActions.length>0,this.field=dr(a),this.headerTooltip=this.getHeaderTooltip(a),this.context={api:{grid:e.api,columns:e.columnApi},column:this.column};var s=this.params,l=s.gridQuery,c=s.gridService;this.customTemplates=c.getCustomHeader(this.field),this.filterActive$=l.select((function(t){return t.settings.filter[o.field]})).pipe(r.map((function(t){var e=t&&he(t.pivotKeys,a.pivotKeys);return ye(t)>0&&e}))),this.params.enableSorting&&(n.fromEvent(this.host.nativeElement,"click").pipe(i.untilDestroyed(this)).subscribe((function(){var t,e=o.column.getColDef()?o.column.getColDef().sortingOrder:null,n=o.column.getSort(),i=o.column.getColId();if(e&&e.length>0){var r=e.indexOf(n);t=e[-1===r||r===e.length-1?0:r+1]}else t="asc"!==n?"asc":"desc";c._logEvent("Grids - Column Action",{action:"Sort",column:i}),l.isServerSide&&c.setLoading(!0),l.getGridOptions().sortByStore?c.setSortByColumn(i,t):o.params.setSort(t)})),this.sortingInfo$=l.waitForGrid((function(){return l.gridRef.sortChanged})).pipe(r.startWith({}),r.map((function(){return{active:o.column.isSorting(),icon:!o.column.isSorting()||o.column.isSortAscending()?"sort-ascending":"sort-descending"}}))))},o.prototype.openFilters=function(t){var e=this;this.filtersMenuOpen=!0,this.controller.openFilterMenu(t.host.nativeElement,this.params).pipe(i.untilDestroyed(this)).subscribe((function(){e.filtersMenuOpen=!1,e.cdr.detectChanges()}))},o.prototype.openMoreMenu=function(t){var e=this;this.moreMenuOpen=!0,this.controller.openMoreMenu(t.host.nativeElement,this.params,this.customTemplates.moreMenu).pipe(i.untilDestroyed(this)).subscribe((function(){e.moreMenuOpen=!1,e.cdr.detectChanges()}))},o.prototype.ngOnDestroy=function(){},o.prototype.getHeaderTooltip=function(t){if(this.params){var e=t;if(e.showRowGroup){var n=this.params.columnApi.getRowGroupColumns(),o=n&&n.find((function(t){return t.getColId()===e.showRowGroup})),i=o&&o.getColDef();e=i||e}return e.customHeaderTooltip||e.headerName}return""},o.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:va},{type:e.ElementRef},{type:e.ChangeDetectorRef}]},o=At([e.Component({selector:"dato-grid-column-header",template:'<div class="d-flex align-start-center" [attr.data-auto-id]="field + \'-column-header\'" [attr.data-field]="field">\n <ng-container *ngIf="customTemplates && customTemplates.customHeader as customHeader">\n <div class="mr-5" [attr.data-auto-id]="field + \'-dynamic-section\'">\n <ng-container *ngTemplateOutlet="customHeader; context: context"></ng-container>\n </div>\n </ng-container>\n <div class="d-flex d-flex-grow align-start-center min-width-0 items-center">\n <span class="dato-simple-bold primary-400-color ellipsis min-width-0 mr-5" [datoTooltip]="headerTooltip"\n datoTooltipPosition="bottom">{{headerName}}</span>\n <div>\n <dato-icon class="primary-300-color" *ngIf="headerInfo" [datoTooltip]="headerInfo" datoTooltipPosition="bottom" datoIcon="question"></dato-icon>\n </div>\n </div>\n <div class="sort-icon opacity-0" *ngIf="params.enableSorting && (sortingInfo$ | async) as sortingInfo"\n [class.active]="sortingInfo.active">\n <dato-icon width="24px" height="16px" class="primary-300-color"\n [attr.data-auto-id]="field + \'-sort\'"\n [icon]="sortingInfo.icon"></dato-icon>\n </div>\n <ng-container *ngIf="showFilter">\n <div class="filter relative" *datoSubscribe="filterActive$ as filterActive">\n <dato-icon-button (click.stop)="openFilters(filters)" datoTooltip="core.filters" datoTooltipPosition="bottom"\n datoType="none" [attr.data-auto-id]="field + \'-filter\'" class="filter-icon opacity-0"\n [class.active]="filtersMenuOpen || filterActive"\n datoSize="md" icon="filter"\n #filters></dato-icon-button>\n <div [class.opacity-100]="filterActive"\n class="opacity-0 filter-active-circle accent-400-background-color absolute"></div>\n </div>\n </ng-container>\n <dato-icon-button *ngIf="showMoreMenu" (click.stop)="openMoreMenu(moreMenu)" datoTooltip="core.more-options" datoTooltipPosition="bottom"\n datoType="none" [attr.data-auto-id]="field + \'-more-menu\'" [class.active]="moreMenuOpen"\n datoSize="md" icon="more-vertical" #moreMenu></dato-icon-button>\n</div>\n',styles:[":host{width:100%}:host .filter-icon,:host .sort-icon{transition:opacity .25s linear,width .25s ease-in-out;width:0}:host .sort-icon{height:16px}:host .filter-icon.active,:host .sort-icon.active{opacity:1;width:24px}:host:hover .filter-icon,:host:hover .sort-icon{opacity:1;width:24px}:host .filter-active-circle{pointer-events:none;transition:opacity .2s ease-in-out;position:absolute;height:8px;width:8px;top:2px;right:2px;border-radius:4px;border:1px solid #fff}:host ::ng-deep .filter dato-icon-button dato-icon{transition:color .2s ease-in-out}"]}),bt("design:paramtypes",[e.ViewContainerRef,va,e.ElementRef,e.ChangeDetectorRef])],o)}();function Ca(t){var e=new Date(t||null).getTime();return isNaN(e)?0:e}var wa=function(t){return t[Ra]},Sa={getDataPath:wa,components:{fileCellRenderer:function(t){var e=t.data,n=t.eGridCell,o=t.colDef,i=e.icon,r=e.isFolder,a=e.initials,s=void 0===a||a,l=function(t,e,n){if(null===t)return null;var o=function(t,e){var n=e.expanded,o=e.collapsed;return t.parentElement.classList.contains("ag-row-group-expanded")?n:o};return void 0===t?n?o(e,{expanded:"folder-open",collapsed:"folder-closed"}):null:"string"==typeof t?t:o(e,t)}(i,n,r),c=e[o.field],p=o.gridService.svgRegistry;if(l)return'<span class="dato-simple-bold"> <span class="da-grid-icon folder d-flex">'+p.getSvg(l)+'</span><span class="entity-display-name"></span> '+c+"</span>";if(r)return'<span class="entity-display-name dato-simple-bold">'+c+"</span>";if(s){var d=Re(c);return d?'<span class="entity-display-name dato-simple-bold"><span class="initials">'+d+"</span>"+c+"</span>":'<span class="entity-display-name dato-simple-bold">'+c+"</span>"}return'<span class="entity-display-name dato-simple-bold">'+c+"</span>"}},onRowDragMove:function(t){var e,n=t.overNode,o=t.node;e=n?n.data.isFolder?n:n.parent:o.rowModel.rootNode;if(Ta){if(Ta.id===e.id)return;var i=ka(Ta.id);i&&i.classList.remove("ag-row-hover"),Ta=null}else Ta=e;if(e){var r=ka(e.id);r&&r.classList.add("ag-row-hover")}},onRowDragEnd:function(t){var e,n,o=t.overNode,i=t.node;o?(e=i.parent,n=o.data.isFolder?o:o.parent):(e=i.rowModel.rootNode,n=i.rowModel.rootNode);var r=i.data,a=i.gridOptionsWrapper.gridOptions.maxDepth||-1;if(r.isFolder&&-1!==a&&"ROOT_NODE_ID"!==e.id&&o.data.agGridFilePath.length>a)return;var s=n.data?n.data[Ra]:[],l=!Mt(s,r[Ra]),c=function t(e,n){for(var o=e.childrenAfterGroup,i=0;i<o.length;i++){if(n&&o[i].key===n.key)return!0;t(o[i],n)}return!1}(i,n);c&&console.log("invalid move");if(l&&!c){var p=[],d=this.autoGroupColumnDef.gridService.treeConfig.idKey;!function t(e,n,o,i){var r=n.data,a=n.childrenAfterGroup,s=e.slice();r[Ra]=s,o.push(r),ye(a)>0&&a.forEach((function(e){t(St(s,[r[i]]),e,o,i)}));r[Ra].push(r[i])}(s,i,p,d);var u=this.autoGroupColumnDef.gridService.updateRows(p);g=St(u.update,[o,e]),f=["ag-row-level-1","ag-row-level-2","ag-row-level-3"],g.forEach((function(t){var e,n,o=document.querySelectorAll('[row-id="'+t.id+'"]')[1];if(o){try{for(var i=Ct(f),r=i.next();!r.done;r=i.next()){var a=r.value;if(o.classList.contains(a)){o.classList.remove(a);break}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}o.classList.add("ag-row-level-"+t.level)}}));var h=ka(Ta.id);h&&h.classList.remove("ag-row-hover"),Ta=null,this.api.redrawRows({rowNodes:[e,n]}),this.api.clearFocusedCell()}var g,f},onRowSelected:function(t){if(Pa)return;Pa=!0,e=t.node,n=t.node.selected,e.allChildrenCount>0&&e.allLeafChildren.forEach((function(t){t.setSelected(n)})),function(t){var e=t.parent;for(;e&&"ROOT_NODE_ID"!==e.id;)ja(e),e=e.parent}(t.node),setTimeout((function(){Pa=!1}),0);var e,n},onRowGroupOpened:function(t){var e=t.node;this.api.refreshCells({force:!0,rowNodes:[e]})},suppressRowClickSelection:!0,groupSelectsChildren:!0,icons:{rowDrag:'<dato-icon icon="drag" class="dato-icon-font-drag primary-400-color"></dato-icon>'}},xa=function(t,e){return(t||"").toLowerCase().localeCompare((e||"").toLowerCase())},Oa={filter:t.DatoGridFilterTypes.String,comparator:xa},Da=mt({hoverConfig:{enabled:!0,maxDisplayedItems:3},enableV2_1:!1,enableSearch:!1,enableSearchHighlight:!0,columnsIncludedInSearchByDefault:!0,includeHiddenColumnsInSearch:!1,enableAllPagesSelection:!0,idColumnKey:"id",enableBackground:!0,columnTypes:(ga={},ga[t.DatoGridColumnTypes.Date]={filter:t.DatoGridFilterTypes.Date,comparator:function(t,e){return Ca(t)-Ca(e)}},ga[t.DatoGridColumnTypes.Number]={filter:t.DatoGridFilterTypes.Number},ga[t.DatoGridColumnTypes.String]=Oa,ga[t.DatoGridColumnTypes.Status]=mt(mt({},Oa),{cellRenderer:"DatoGridStatusCellComponent"}),ga[t.DatoGridColumnTypes.Items]=mt(mt({},Oa),{cellRenderer:"DatoGridItemsCellComponent"}),ga[t.DatoGridColumnTypes.ItemsCount]=mt(mt({},Oa),{cellRenderer:"DatoGridItemsCountCellComponent"}),ga[t.DatoGridColumnTypes.Initials]=mt(mt({},Oa),{cellRenderer:"DatoGridInitialsCellComponent"}),ga[t.DatoGridColumnTypes.Avatar]=mt(mt({},Oa),{cellRenderer:"DatoGridAvatarCellComponent"}),ga),multiSortKey:"ctrl",suppressPaginationPanel:!0,pagination:!0,paginateChildRows:!0,deltaColumnMode:!0,loadingOverlayComponentFramework:Wr,noRowsOverlayComponentFramework:$r,defaultColDef:{minWidth:t.GridMinWidths.Default,sortable:!0,resizable:!0,type:t.DatoGridColumnTypes.String,menuTabs:["filterMenuTab"],headerComponentFramework:ba},suppressCellSelection:!0,suppressPropertyNamesCheck:!0,rowHeight:35,headerHeight:30,rowSelection:t.GridRowSelectionType.MULTIPLE,rowDeselection:!0,unSortIcon:!0,animateRows:!0,rememberGroupStateWhenNewData:!0,groupMultiAutoColumn:!0,groupDefaultExpanded:-1,usePivotGridStyle:!1,disabledHTMLRenderingFields:[]},Ii()?{suppressColumnVirtualisation:!0,rowBuffer:99999}:{}),Ea={CLIENT:200,SERVER:250},Ia={idKey:"id",parentIDKey:"parentID"},Ra="agGridFilePath";var Ta=null,Pa=!1;function ka(t){return document.querySelector('[row-id="'+t+'"] > .ag-cell')}function ja(t){var e=t.allLeafChildren.map((function(t){return t.selected}));if(!e.every((function(t){return!0===t||void 0===t}))){e.shift();var n=e.reduce((function(t,e){if(t===e)return t}));t.selectThisNode(n)}}function Ma(t,e){var n=e.parentIDKey,o=e.idKey,i=function(e,r){void 0===r&&(r=!1);var a=r?[e[o]]:[],s=t.find((function(t){return t[o]===e[n]}));if(a.unshift(s[o]),s[n]){var l=i(s);a.unshift.apply(a,St(l))}return a};return t.map((function(t){var e,r;return t[n]?mt(mt({},t),((e={})[Ra]=i(t,!0),e)):mt(mt({},t),((r={})[Ra]=[t[o]],r))}))}function _a(t,e){return t.map((function(t){var n,o=yt(t,[]),i=o[Ra],r=ye(i)>1?i[i.length-2]:0;return delete o[Ra],mt(mt({},o),((n={})[e.parentIDKey]=r,n))}))}var Fa=new e.InjectionToken("DATO_CORE_LOGGER"),Na=function(){function t(t,e,n){this.gridService=t,this.gridQuery=e,this.cdr=n,this.checkboxControl=new o.FormControl(!1)}return t.prototype.agInit=function(t){var e=this;this.gridApi=t.api,this.gridOptions=this.gridQuery.getGridOptions(),this.subscribeRowsSelectionData(),this.checkboxControl.valueChanges.pipe(i.untilDestroyed(this)).subscribe((function(t){e.toggleMultiSelection(t)}))},t.prototype.subscribeRowsSelectionData=function(){var t=this;this.gridQuery.gridReady$.pipe(r.take(1),r.switchMap((function(){return t.gridQuery.rowsSelectionData$})),i.untilDestroyed(this)).subscribe((function(e){var n=e.selectedPageRowsCount,o=e.isAllPageRowsSelected;t.indeterminatelyChecked=n>0&&!o,t.checkboxControl.patchValue(o,{emitEvent:!1}),t.cdr.detectChanges()}))},t.prototype.toggleMultiSelection=function(t){if(this.gridService.selectAllCurrentPageRows(t),!t&&this.gridQuery.isServerSelectAllRowsEnabled){var e=this.gridQuery.serverSideConfig,n=e.excludedFromSelectAll,o=e.totalRows,i=de(St(n,this.gridQuery.getCurrentPageRows().map((function(t){return t.id}))));ye(i)===o?this.gridService.setServerSidePagination({selectAllRowsEnabled:!1}):this.gridService.setServerSidePagination({excludedFromSelectAll:i})}},t.prototype.ngOnDestroy=function(){},t.ctorParameters=function(){return[{type:Ba},{type:Ar},{type:e.ChangeDetectorRef}]},t=At([e.Component({selector:"dato-grid-multi-select-column-header",template:'<dato-checkbox [formControl]="checkboxControl" [indeterminatelyChecked]="indeterminatelyChecked"></dato-checkbox>',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{height:100%;display:flex;align-items:center}"]}),bt("design:paramtypes",[Ba,Ar,e.ChangeDetectorRef])],t)}(),Ba=function(){function o(t,e,o,i,r,a,s){this.store=t,this.gridQuery=e,this.translate=o,this.iconRegistry=i,this.svgRegistry=r,this.storageAPI=a,this.logger=s,this.treeConfig=Ia,this.pageNumberToReturnAfterRefresh=-1,this.reloadGridActionsSubject=new n.Subject,this.CHECKBOX_SELECTION_COL_ID="grid-checkbox-selection"}return Object.defineProperty(o.prototype,"treeData",{get:function(){return this.isTreeData},set:function(t){this.isTreeData=t},enumerable:!0,configurable:!0}),o.prototype.ngOnDestroy=function(){},o.prototype._setApi=function(t,e){this.api=t,this.gridRef=e,this.gridName=e.gridOptions.gridName,this.setServerSidePagination({enabled:this.isServerSidePagination(e.gridOptions)})},o.prototype.isServerSidePagination=function(t){return"infinite"===t.rowModelType},o.prototype.updateGridContext=function(t,e){void 0===t&&(t={}),void 0===e&&(e=!1),this.gridQuery.getGridOptions().context=e?t:Zr(this.gridRef.gridOptions.context||{},t)},o.prototype.reloadGridActions=function(){this.reloadGridActionsSubject.next()},o.prototype.onReloadGridActions=function(){return this.reloadGridActionsSubject.asObservable()},o.prototype.setSelectedRows=function(t){this.selectRows(t)},o.prototype.selectRows=function(t){var e=me(t).filter((function(t){return!t.isSelected()})),n=e.pop();e.forEach((function(t){return t.setSelected(!0,!1,!0)})),n&&n.setSelected(!0)},o.prototype.deselectRows=function(t){var e=me(t).filter((function(t){return t.isSelected()})),n=e.pop();e.forEach((function(t){return t.setSelected(!1,!1,!0)})),n&&n.setSelected(!1)},o.prototype.setRows=function(t,e,n){var o=this;void 0===e&&(e=!1),void 0===n&&(n={}),this.gridQuery.gridReady$.pipe(r.take(1)).subscribe((function(){if(o.isTreeData){o.treeConfig=mt(mt({},Ia),n);var i=Ma(t,o.treeConfig);o.api.grid.setRowData(i)}else o.isPivotMode?o.setPivotModeRows(t):o.api.grid.setRowData(t);e?o.fitGrid("container"):$e()}))},o.prototype.setDatasource=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1),e&&this.updatePageToKeepOnRefreshServerData(),n&&this.setLoading(!0),this._originalGetRows=t,this.api.grid.setDatasource({getRows:this.wrapGetRows(this.gridQuery.getGridOptions(),t)})},o.prototype.refreshServerData=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1),t&&this.updatePageToKeepOnRefreshServerData(),e&&this.setLoading(!0),this.api.grid.setDatasource({getRows:this.gridQuery.getGridOptions().datasource.getRows})},o.prototype.updatePageToKeepOnRefreshServerData=function(){1===this.gridQuery.getGridOptions().maxBlocksInCache&&(this.pageNumberToReturnAfterRefresh=this.api.grid.paginationGetCurrentPage())},o.prototype.addRows=function(t,e){var n={add:me(t)};return Ft(e)||(n.addIndex=e),this.api.grid.updateRowData(n)},o.prototype.updateRows=function(t){var e=me(t);return this.api.grid.updateRowData({update:e})},o.prototype.updateRowValue=function(t,e,n){(_t(t)?this.api.grid.getRowNode(t):t).setDataValue(e,n)},o.prototype.removeRows=function(t){var e=me(t).map((function(t){return t.data}));return this.api.grid.updateRowData({remove:e})},o.prototype.removeSelectedRows=function(){var t=this.gridQuery.getSelectedRowNodes();return this.removeRows(t)},o.prototype.clearTable=function(){this.setRows([])},o.prototype.updateColumns=function(t,e){if(void 0===e&&(e=!1),!t)throw new Ro("No columnDefs were provided. 🕵🏻‍♀️");var n=this.normalizeColumns(me(t)),o=e&&this.gridQuery.getCurrentGridSettings();this.api.grid.setColumnDefs(n),o&&this.loadSavedSettings(o)},o.prototype.initGridOptions=function(e){var n=mt({},e);if(void 0===e.enableSearch&&(n.enableSearch=n.enableV2_1),void 0===e.enableBackground&&(n.enableBackground=n.enableV2_1),void 0===e.showMultiSelectionCheckboxes&&(n.showMultiSelectionCheckboxes=e.enableV2_1&&n.rowSelection!==t.GridRowSelectionType.SINGLE),void 0===e.enableSearchHighlight&&(n.enableSearchHighlight=n.enableSearch&&Da.enableSearchHighlight),e.usePivotGridStyle){n.rowHeight=30,n.defaultColDef=mt(mt({},n.defaultColDef),{cellClassRules:this.getPivotModeCellClassRules(),headerClass:this.getPivotHeaderClass.bind(this),cellStyle:function(e){var n={lineHeight:"30px"};return e.colDef.type===t.DatoGridColumnTypes.Number&&(n.textAlign="end"),n}}),n.autoGroupColumnDef=mt(mt({},n.autoGroupColumnDef),{cellClassRules:this.getPivotModeCellClassRules(),headerClass:this.getPivotHeaderClass.bind(this)})}return n},o.prototype.normalizeOptions=function(t){var e=this;this.customHeadersTemplates=t.customHeadersTemplates;var n={gridService:this,gridQuery:this.gridQuery};if(t.gridOptions.autoGroupColumnDef=mt(mt({},n),t.gridOptions.autoGroupColumnDef),t.gridOptions.defaultColDef=mt(mt({},t.gridOptions.defaultColDef),{headerComponentParams:n}),t.gridOptions.columnDefs=this.normalizeColumns(t.gridOptions.columnDefs,t.gridOptions),t.gridOptions.isExternalFilterPresent=function(){return!0},t.gridOptions.doesExternalFilterPass=function(t){return Pr({row:t,api:e.gridQuery.api.grid},e.gridQuery.getFilter())&&e.rowMatchesSearch(t)},this.isServerSidePagination(t.gridOptions)){t.gridOptions.blockLoadDebounceMillis=300,this._originalGetRows=t.gridOptions.datasource.getRows,t.gridOptions.datasource.getRows=this.wrapGetRows(t.gridOptions);var o=t.gridOptions.paginationPageSize;o&&(t.gridOptions.cacheBlockSize=o)}this.initEditableColumnsCellClass(t),t.gridOptions.getContextMenuItems=this.wrapContextMenuBuilder(t);var i=t.gridOptions,r=i.saveSettings,a=i.gridName;if(t.gridOptions.saveSettings=!1!==r&&!Ft(a),this.initOnRowSelectedForServerSidePagination(t),this.isTreeData){var s=t.gridOptions.rowClassRules;t.gridOptions.rowClassRules=mt(mt({},s),{"ag-empty-folder":function(t){return t.data.isFolder&&0===ye(t.node.childrenAfterGroup)}})}return this.isPivotMode&&(this.initPivotSecondaryColsProcess(t),t.gridOptions.saveSettings=!1),t.gridOptions},o.prototype.getPivotHeaderClass=function(t){var e=t.colDef.headerComponentParams.gridQuery,n="";if(e&&e.api){var o=e.api.columns.getSecondaryColumns();o&&o.length>0&&(n+="top-border")}return n},o.prototype.normalizeColumns=function(e,n){var o=this;void 0===n&&(n=null),n||(n=this.gridQuery.getGridOptions());var i=e.map((function(e){var i=mt(mt({},e),{headerName:o.translate.transform(e.headerName)});return e.info&&(i.minWidth=e.minWidth||t.GridMinWidths.With_Info),e.colId||(i.colId=e.field),i.type!==t.DatoGridColumnTypes.Items||i.filtersConfig||(i.filtersConfig={sections:t.DatoGridFilterSections.Conditional}),o.normalizeColumnSearchConfig(n,e,i),i}));return this.addMultiSelectHeaderColumnIfRequired(i,n)},o.prototype.normalizeColumnSearchConfig=function(e,n,o){var i=this,r=this.isServerSidePagination(e);void 0===n.includeInSearch&&(r&&n.type===t.DatoGridColumnTypes.Date?o.includeInSearch=!1:o.includeInSearch=void 0!==e.columnsIncludedInSearchByDefault?e.columnsIncludedInSearchByDefault:Da.columnsIncludedInSearchByDefault),o.includeInSearch&&!this.hasCellRenderer(o,e)&&e.enableSearchHighlight&&(o.cellRenderer=function(t){var n=hr(e,t.colDef);return Tt(o.editable)&&o.editable(t)||!Tt(o.editable)&&o.editable?Ur(t,i.gridQuery.getSearchTerm(),n):Yr(t,i.gridQuery.getSearchTerm(),n)})},o.prototype.hasCellRenderer=function(t,e){if(t.cellRenderer)return!0;var n=t.type,o=function(t){return t.columnTypes&&!!t.columnTypes[n]&&!!t.columnTypes[n].cellRenderer};return o(e)||o(Da)},o.prototype.addMultiSelectHeaderColumnIfRequired=function(e,n){var o=n&&n.showMultiSelectionCheckboxes,i=n&&n.rowSelection?n.rowSelection:Da.rowSelection;return o&&i===t.GridRowSelectionType.MULTIPLE?St([{colId:this.CHECKBOX_SELECTION_COL_ID,checkboxSelection:!0,headerComponentFramework:Na,minWidth:29,width:29,maxWidth:29,suppressSizeToFit:!0,cellClass:"checkbox-selection-cell",headerClass:"header-checkbox-selection-cell",resizable:!1,pinned:"left",lockPosition:!0,includeInSearch:!1}],e):e},o.prototype.initOnRowSelectedForServerSidePagination=function(t){var e=this,n=t.gridOptions;if(this.isServerSidePagination(n)){var o=n.onRowSelected;n.onRowSelected=function(t){if(e.gridQuery.isServerSelectAllRowsEnabled){var n=t.node,i=n.isSelected(),r=e.gridQuery.serverSideConfig.excludedFromSelectAll,a=r.includes(n.id);i&&a?e.setServerSidePagination({excludedFromSelectAll:r.filter((function(t){return t!==n.id}))}):i||a||e.setServerSidePagination({excludedFromSelectAll:St(r,[n.id])})}o&&o(t)}}},o.prototype.rowMatchesSearch=function(t){var e,n,o=(this.gridQuery.getSearchTerm()||"").toLowerCase().trim();if(kt(o))return!0;var i=this.gridQuery.getGridOptions().includeHiddenColumnsInSearch?this.gridQuery.getAllColumns():this.gridQuery.getAllDisplayedColumns();try{for(var r=Ct(i),a=r.next();!a.done;a=r.next()){var s=a.value;if(this.api.grid.getColumnDef(s.getColId()).includeInSearch)if((this.api.grid.getValue(s.getColId(),t)||"").toString().toLowerCase().includes(o))return!0}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return!1},o.prototype.fitToContainer=function(){this.api.grid.sizeColumnsToFit()},o.prototype.getCustomHeader=function(t){if(this.customHeadersTemplates){var e=this.customHeadersTemplates.find((function(e){return e.column===t})),n=this.customHeadersTemplates.find((function(t){return!t.column}));if(e||n){var o={moreMenu:e&&e.moreMenu||n&&n.moreMenu,customHeader:e&&e.customHeader||n&&n.customHeader},i=o.moreMenu,r=o.customHeader;return{moreMenu:i&&i.tpl,customHeader:r&&r.tpl}}}return{}},o.prototype.clearAllFilters=function(){this.store.update((function(t){return{settings:mt(mt({},t.settings),{filter:{},searchTerm:null})}})),this.notifyFilterUpdate()},o.prototype.clearColumnFilter=function(t){var e=this.gridQuery.getFilter(),n=t,o=(e[n],yt(e,["symbol"==typeof n?n:n+""]));this.store.update((function(t){return{settings:mt(mt({},t.settings),{filter:o})}})),this.notifyFilterUpdate()},o.prototype.setColumnFilter=function(t,e,n){void 0===n&&(n=!0),this._logEvent("Grids - Filter Applied",{column:t.getColId(),numOfConditions:e.conditional&&e.conditional.conditions.length||0,byValue:e.byValue?"Yes":"No"}),this.updateFilter(t,e),n&&this.notifyFilterUpdate()},o.prototype.setGridFilters=function(t){var e,n;if(this.api&&t){var o={};try{for(var i=Ct(t),r=i.next();!r.done;r=i.next()){var a=r.value,s=a.filter;o[a.field]=s}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this.updateSettings({filter:o}),this.notifyFilterUpdate()}},o.prototype.setSortByColumn=function(t,e){var n=this.gridQuery.getSort({colId:t,sort:e});this.setGridSort(n)},o.prototype.setGridSort=function(t){if(t&&this.api&&this.api.grid.getDisplayedRowCount()>0){var e=t.colId,n=t.sort,o=t.sortIndex,i=this.api.columns.getAllGridColumns();if(i){var r=t,a=i.find((function(t){return(t.getColDef().showRowGroup||t.getColId())===e}));if(a)r={colId:a.getColId(),sort:n};else if(!Ft(o)){var s=this.api.columns.getValueColumns().find((function(t){return t.getColId()===e}));if(e.startsWith("pivot")||s)r={colId:i[o].getColId(),sort:n,sortIndex:o}}this.updateSettings({sort:r}),this.api.grid.setSortModel([r]),this.gridRef.gridOptions.usePivotGridStyle&&this.api.grid.redrawRows()}}},o.prototype.updateFilter=function(t,e){var n=dr(t.getColDef());this.store.update((function(t){var o;return{settings:mt(mt({},t.settings),{filter:mt(mt({},t.settings.filter),(o={},o[n]=e,o))})}}))},o.prototype.setSearchTerm=function(t){this.store.update((function(e){return{settings:mt(mt({},e.settings),{searchTerm:t})}})),this.notifyFilterUpdate()},o.prototype.setServerSidePagination=function(t){this.store.update((function(e){return{serverSidePagination:mt(mt({},e.serverSidePagination),t)}}))},o.prototype.setLoading=function(t){t?this.api.grid.showLoadingOverlay():0===this.api.grid.getDisplayedRowCount()?this.setOverlay(!0):this.setOverlay(!1)},o.prototype.setNoData=function(t){this.setOverlay(t)},o.prototype.setOverlay=function(t){t?this.api.grid.showNoRowsOverlay():this.api.grid.hideOverlay()},o.prototype.updateSettings=function(t){this.store.update((function(e){return{settings:mt(mt({},e.settings),t)}}))},o.prototype.fitGrid=function(t){"container"===t?this.api.grid.sizeColumnsToFit():this.api.columns.autoSizeAllColumns();var e="container"===t?0:1;this.updateSettings({gridAlignment:e,columnsSizes:null})},o.prototype.saveSettingsToServer=function(t){this.storageAPI.set(this.gridName,t)},o.prototype._logEvent=function(t,e){this.logger.logEvent(t,mt({table:this.gridName},e))},o.prototype.wrapSuccessCallback=function(t){var e=this,n=t.successCb,o=t.pageNumber,i=t.isPendingReturnToPage;return function(t,r){e.setServerSidePagination({totalRows:r,hasError:!1}),n(t,r),e.gridQuery._serverDataLoaded.next({api:e.api.grid,columnApi:e.api.columns,type:"ServerDataLoaded",paginationPage:o}),i||(e.setLoading(!1),$e()),e.lastTotalRows=r}},o.prototype.wrapGetRows=function(t,e){var n=this,o=e||t.datasource.getRows;return function(e){var i=e.startRow,r=e.endRow,a=e.sortModel,s=e.successCallback,l=t.paginationPageSize||100,c=n.pageNumberToReturnAfterRefresh>0,p=c&&0===i,d=c?n.pageNumberToReturnAfterRefresh+1:Math.ceil(r/l);n.pageNumberToReturnAfterRefresh=-1;var u=n.gridQuery.getFilter(),h=mt(mt({},e),{failCallback:function(){n.setServerSidePagination({hasError:!0}),n.setOverlay(!0)},successCallback:n.wrapSuccessCallback({pageNumber:d,successCb:s,isPendingReturnToPage:p}),serverConfig:{pageSize:l,pageNumber:d,columnFilters:kt(u)||t.enableV2_1?null:n.buildServerRequestFilters(u),filter:t.enableV2_1?n.buildServerRequestFilters_v2_1(t.columnDefs):null,sort:n.buildServerRequestSort(a)}});if(p){!function(t){(0,t.successCallback)([],n.lastTotalRows)}(h)}else o(h)}},o.prototype.initEditableColumnsCellClass=function(t){var e=this;t.gridOptions.columnDefs.forEach((function(t){if(t.editable)if(Tt(t.editable)){var n=t.cellClass;t.cellClass=function(o){if(t.editable(o)){var i=e.addEditableCellClass(n);return Tt(i)?i(o):i}return Tt(n)?n(o):n}}else t.cellClass=e.addEditableCellClass(t.cellClass)}))},o.prototype.wrapContextMenuBuilder=function(t){var e=this,n=t.gridOptions.customContextMenu,o=Tt(n)?n(t.rowActions):t.rowActions;this.translateActionLabels(o);var i={label:this.translate.transform("core.copy-cell"),icon:"copy",key:"Copy Cell"};return function(t){var n=t.node,r=t.column,a=t.context,s=a&&a.contextMenu&&a.contextMenu.fromOnHover;if(!n)return[];var l=[n],c=1;s?e.updateGridContext({contextMenu:{fromOnHover:!1}}):(i.onClick=function(t){var n=wt(t,1)[0],o=e.api.grid.getValue(r.getColId(),n),i=r.getColDef().valueFormatter;Vn(i&&"string"!=typeof i?i(o):o)},n.isSelected()&&(c=ye(l=e.gridQuery.getSelectedRowNodes())));var p=kr(o,c,l,e.gridQuery.isServerSelectAllRowsEnabled).filter((function(t){return t.visible})),d=[i];return s?d=p:p.length>0&&(d=St([mt(mt({},i),{separator:!0})],p)),Lr({toolbarActions:d,selectedRows:l,iconRegistry:e.svgRegistry,node:n,logger:{log:e._logEvent.bind(e),eventOrigin:s?"On Hover":"Context Menu"}})}},o.prototype.translateActionLabels=function(t){var e=this;t.forEach((function(t){t.label=e.translate.transform(t.label),t.subMenu&&e.translateActionLabels(t.subMenu)}))},o.prototype.loadSavedSettings=function(t){var e=this,n=t.sort,o=t.hiddenColumns,i=t.filter,r=t.groupedColumns,a=t.columnsSizes,s=t.pinnedColumns,l=t.columnsOrder,c=t.gridAlignment,p=this.api,d=p.grid,u=p.columns;u.setColumnsVisible(this.initialSettings.columnsOrder,!0);var h=Ft(o)?this.initialSettings.hiddenColumns:o;u.setColumnsVisible(h,!1),i&&d.onFilterChanged();var g,f=u.getRowGroupColumns();r&&(g=f.filter((function(t){return!r.includes(t.getColId())})),u.addRowGroupColumns(r),u.setColumnsVisible(r,!1)),u.removeRowGroupColumns(g),u.setColumnsVisible(g,!0);var m=n||this.initialSettings.sort;d.setSortModel(m?[m]:null),2===c?a&&Object.keys(a).forEach((function(t){1===a[t]?u.autoSizeColumn(t):u.setColumnWidth(t,a[t])})):1===c?u.autoSizeAllColumns():d.sizeColumnsToFit();var y=s?s.filter((function(t){return t!==e.CHECKBOX_SELECTION_COL_ID})):null,A=l?l.filter((function(t){return t!==e.CHECKBOX_SELECTION_COL_ID})):null;ye(y)>0?u.setColumnsPinned(y,"left"):A&&u.setColumnsPinned(A,null),l&&u.moveColumns(l,0)},o.prototype.getSettingsDiff=function(){return we(this.gridQuery.getCurrentGridSettings(),this.initialSettings)},o.prototype.resetTableSettings=function(){var t=this.initialSettings,e=t.filter,n=yt(t,["filter"]),o=pr(this.api.columns.getAllGridColumns(),!0),i=kt(o)?n.gridAlignment:2,r=mt(mt({},n),{columnsSizes:o,gridAlignment:i});this.updateSettings(r),this.loadSavedSettings(r),this.saveSettingsToServer({filter:e})},o.prototype.initSettings=function(t){this.initialSettings=this.gridQuery.getCurrentGridSettings(),this.updateSettings(t),this.loadSavedSettings(t)},o.prototype.notifyFilterUpdate=function(){var t=this,e=[this.gridRef.filterChanged.asObservable()];this.gridQuery.isServerSide&&(e.push(this.gridQuery.serverDataLoaded$),this.setLoading(!0)),n.combineLatest(e).pipe(r.take(1),i.untilDestroyed(this)).subscribe((function(){var e=t.api.grid.getDisplayedRowCount();t.setOverlay(0===e)})),this.api.grid.onFilterChanged()},o.prototype.buildServerRequestFilters=function(e){var n,o,i={};try{for(var r=Ct(Object.entries(e)),a=r.next();!a.done;a=r.next()){var s=wt(a.value,2),l=s[0],c=s[1],p=c.byValue,d=c.conditional;if(p&&(i[l]={operator:t.OperatorTypes.AND,filters:[p]}),d){var u={operator:d.operator,filters:d.conditions.map((function(e){var n=e.condition,o=e.value;return n===t.DatoFilterConditions.IN_RANGE?{condition:n,start:o,end:e.rangeEnd}:e}))};p?i[l].filters.push(u):i[l]=u}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return i},o.prototype.buildServerRequestFilters_v2_1=function(e){var n=this,o=this.gridQuery.getFilter(),i=this.gridQuery.getSearchTerm(),r=this.buildServerColumnFilters_v2_1(o);if(r.every((function(e){return e.operator===t.OperatorTypes.AND}))){var a=r.map((function(t){return t.filters})).reduce((function(t,e){return e.concat(t)}),[]);r=[{operator:t.OperatorTypes.AND,filters:a}]}var s=ye(r)>1?{operator:t.OperatorTypes.AND,filters:r}:1===ye(r)?r[0]:null;if(!i)return s;var l=this.gridQuery.getGridOptions().includeHiddenColumnsInSearch,c=e.filter((function(t){return t.includeInSearch&&(l||n.api.columns.getColumn(t.colId).isVisible())})).map((function(e){var n=e.field;return{condition:t.DatoFilterConditions.CONTAINS,value:i,column:n}})),p=ye(c)>0?{operator:t.OperatorTypes.OR,filters:c}:null;return s?{operator:t.OperatorTypes.AND,filters:[s,p]}:p},o.prototype.buildServerColumnFilters_v2_1=function(e){var n,o,i=[];try{for(var r=Ct(Object.entries(e)),a=r.next();!a.done;a=r.next()){var s=wt(a.value,2),l=s[0],c=s[1],p=null,d=c.byValue,u=c.conditional;if(d&&(p={operator:t.OperatorTypes.AND,filters:[mt({column:l},d)]}),u){var h=this.getServerConditionalFilter(u,l);p?p.filters.push(h):p=h}i.push(p)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return i},o.prototype.getFilterForServerActionOnSelectAll=function(){var e=this.gridQuery.serverSideConfig.excludedFromSelectAll,n=this.gridQuery.getGridOptions(),o=n.columnDefs,i=n.idColumnKey,r=this.buildServerRequestFilters_v2_1(o);if(kt(e))return r;var a={condition:t.DatoFilterConditions.NOT_IN_LIST,values:e,column:i},s=r?[r,a]:[a];return{operator:t.OperatorTypes.AND,filters:s}},o.prototype.getServerConditionalFilter=function(e,n){return{operator:e.operator,filters:e.conditions.map((function(e){var o=e.condition,i=e.value;return o===t.DatoFilterConditions.IN_RANGE?{condition:o,start:i,end:e.rangeEnd,column:n}:o===t.DatoFilterConditions.IS_EMPTY||o===t.DatoFilterConditions.NOT_EMPTY?{condition:t.DatoFilterConditions.IS_EMPTY,value:o===t.DatoFilterConditions.IS_EMPTY?"true":"false",column:n}:o===t.DatoFilterConditions.IS_NULL||o===t.DatoFilterConditions.NOT_NULL?{condition:t.DatoFilterConditions.IS_NULL,value:o===t.DatoFilterConditions.IS_NULL?"true":"false",column:n}:mt(mt({},e),{column:n})}))}},o.prototype.buildServerRequestSort=function(t){return t.map((function(t){return{column:t.colId,sortOrder:t.sort.toUpperCase()}}))},o.prototype.addEditableCellClass=function(t){var e=this;return Ft(t)?"dato-editable-cell":Tt(t)?function(n){return e.getEditableClassArray(t(n))}:this.getEditableClassArray(t)},o.prototype.getEditableClassArray=function(t){var e=me(t);return e.push("dato-editable-cell"),e},o.prototype.selectAllCurrentPageRows=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!1);var n=this.gridQuery.getCurrentPageRows();if(e){var o=this.gridQuery.serverSideConfig.excludedFromSelectAll;kt(o)||(n=n.filter((function(t){var e=t.id;return!o.includes(e)})))}t?this.selectRows(n):this.deselectRows(n)},o.prototype.deselectAllRows=function(){this.api.grid.deselectAll(),this.gridQuery.isServerSelectAllRowsEnabled&&this.setServerSidePagination({selectAllRowsEnabled:!1,excludedFromSelectAll:[]})},o.prototype.resolveRowActionsVisibility=function(){this.gridQuery._rowActionVisibilityChanged.next()},o.prototype.initPivotSecondaryColsProcess=function(t){var e=this,n=t.gridOptions;n.processSecondaryColDef=function(t){var e=t.pivotValueColumn&&t.pivotValueColumn.getUserProvidedColDef();e&&(t.filter=e.filter),t.pivotKeys&&(t.pivotKeys=t.pivotKeys.map((function(t){var e=ur(t);return e&&e.value||""})))},n.processSecondaryColGroupDef=function(t){if(t.headerName){var n=ur(t.headerName);if(n){var o=n.field,i=n.value;t.headerClass=[o],t.headerName=i,t.children&&t.children.length>0&&t.headerClass.push("group-pivot-cell")}}else if(t.children){var r=wt(t.children,1)[0],a=r&&r.pivotTotalColumnIds;a&&a.length>0&&(t.headerClass=["total-pivot-cell"],t.headerName=e.translate.transform("core.total"))}else t.headerClass=["empty-pivot-header"];t.pivotKeys&&(t.pivotKeys=t.pivotKeys.map((function(t){var e=ur(t);return e&&e.value||""})))}},o.prototype.setPivotModeRows=function(t){var e=this.gridQuery.getAllPivotColumns(),n=t.map((function(t,n){var o,i,r=mt({},t);try{for(var a=Ct(e),s=a.next();!s.done;s=a.next()){var l=s.value.getColDef().field,c={field:l,value:t[l]};r[l]=JSON.stringify(c)}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return r}));this.api.grid.setRowData(n)},o.prototype.getPivotModeCellClassRules=function(){return{"even-row-group-leaf-cell":this.isLeafGroupEvenCell.bind(this),"row-group-root-cell":this.isRowGroupValuedCell.bind(this)}},o.prototype.isLeafGroupEvenCell=function(t){var e=t.node,n=e.leafGroup,o=e.childIndex;return e.rowGroupIndex<=this.getCellClassRuleColIndex(t)&&n&&o%2==0},o.prototype.isRowGroupValuedCell=function(t){var e=t.node,n=e.leafGroup;return e.rowGroupIndex<=this.getCellClassRuleColIndex(t)&&!n},o.prototype.getCellClassRuleColIndex=function(t){var e=t.colDef.headerComponentParams.gridQuery;if(e&&e.api){var n=e.api.columns.getAllDisplayedColumns(),o=n.find((function(e){return e.getColId()===t.colDef.colId}));return n.indexOf(o)}return-1},o.ctorParameters=function(){return[{type:cr},{type:Ar},{type:Mn},{type:_e},{type:Fe},{type:void 0,decorators:[{type:e.Inject,args:[Hr]}]},{type:void 0,decorators:[{type:e.Inject,args:[Fa]}]}]},o=At([e.Injectable(),vt(5,e.Inject(Hr)),vt(6,e.Inject(Fa)),bt("design:paramtypes",[cr,Ar,Mn,_e,Fe,Object,Object])],o)}(),La=function(){function t(t){this.tpl=t}return t.ctorParameters=function(){return[{type:e.TemplateRef}]},t=At([e.Directive({selector:"[datoCustomHeader]"}),bt("design:paramtypes",[e.TemplateRef])],t)}(),Ga=function(){function t(t){this.tpl=t}return t.ctorParameters=function(){return[{type:e.TemplateRef}]},t=At([e.Directive({selector:"[datoCustomMoreMenu]"}),bt("design:paramtypes",[e.TemplateRef])],t)}(),Va=function(){function t(){}return At([e.Input(),bt("design:type",String)],t.prototype,"column",void 0),At([e.ContentChild(La),bt("design:type",Object)],t.prototype,"customHeader",void 0),At([e.ContentChild(Ga),bt("design:type",Object)],t.prototype,"moreMenu",void 0),t=At([e.Component({selector:"dato-custom-header-template",template:"",changeDetection:e.ChangeDetectionStrategy.OnPush})],t)}(),za={light:{"primary-700":"#2E2F30","primary-600":"#37383A","primary-500":"#4F5053","primary-400":"#67696F","primary-300":"#9EA0A5","primary-200":"#CCCED3","primary-100":"#F1F2F5","primary-50":"#F7F8FA","primary-0":"#ffffff","accent-800":"#072A60","accent-700":"#0D47A1","accent-600":"#1C61D7","accent-500":"#317EEB","accent-400":"#09A0FF","accent-350":"#40B2FE","accent-300":"#77C5FD","accent-200":"#BBDEFB","accent-180":"#C7E3FB","accent-100":"#E3F2FD","fg-100":"#37383A","fg-200":"#ffffff"},dark:{"primary-700":"#ffffff","primary-600":"#F7F8FA","primary-500":"#F1F2F5","primary-400":"#CCCED3","primary-300":"#9EA0A5","primary-200":"#67696F","primary-100":"#4F5053","primary-50":"#37383A","primary-0":"#2E2F30","accent-800":"#E3F2FD","accent-700":"#BBDEFB","accent-600":"#77C5FD","accent-500":"#40B2FE","accent-400":"#09A0FF","accent-350":"#317EEB","accent-300":"#1C61D7","accent-200":"#0D47A1","accent-180":"#C7E3FB","accent-100":"#072A60","fg-100":"#ffffff","fg-200":"#37383A"}},Qa=function(){function t(t,e,n,o){this.host=t,this.gridService=e,this.gridQuery=n,this.cdr=o,this.displayedActions=[],this.setBgColorBound=this.setBackgroundColor.bind(this)}return Object.defineProperty(t.prototype,"hostEl",{get:function(){return this.host.nativeElement},enumerable:!0,configurable:!0}),t.prototype.show=function(t){this.removeSelectedListener(),this.params=t,this.row=t.node,this.row.addEventListener("rowSelected",this.setBgColorBound),this.setRowActions(),this.setBackgroundColor({node:this.row}),Qt(this.hostEl,{top:this.row.rowTop+"px",height:this.row.rowHeight+"px",opacity:1,zIndex:1,pointerEvents:"all"})},t.prototype.hide=function(){Qt(this.hostEl,{opacity:0,pointerEvents:"none",zIndex:-1})},t.prototype.openActionMenu=function(t){var e=this.params,n=e.rowIndex,o=e.node,i=e.column,r=e.value,a=this.gridQuery.api.grid.rowRenderer.rowCompsByIndex[n].getRenderedCellForColumn(i);this.gridService.updateGridContext({contextMenu:{fromOnHover:!0}}),a.beans.contextMenuFactory.showMenu(o,i,r,t)},t.prototype.updateScrollPos=function(t){Qt(this.hostEl,{left:t-this.hostEl.scrollWidth-1+"px"})},t.prototype.callAction=function(t){Tt(t.onClick)&&(this.gridService._logEvent("Grids - Table Action",{action:t.key,numOfItems:1,from:"On Hover"}),t.onClick([this.row]))},t.prototype.ngOnDestroy=function(){this.removeSelectedListener()},t.prototype.setRowActions=function(){var t=this.config,e=t.actions,n=t.maxDisplayedItems,o=kr(e,1,[this.row],!1).filter((function(t){var e=t.template,n=t.icon,o=t.visible;return Ft(e)&&_t(n)&&o}));this.displayedActions=o.filter((function(t){return jt(t.onHoverIndex)})).slice(0,n).sort((function(t,e){return t.onHoverIndex-e.onHoverIndex})),0===this.displayedActions.length&&(this.displayedActions=o.slice(0,n)),this.showMore=this.displayedActions.length<o.length,this.cdr.detectChanges()},t.prototype.removeSelectedListener=function(){this.row&&this.row.removeEventListener("rowSelected",this.setBgColorBound)},t.prototype.setBackgroundColor=function(t){var e=t.node,n="accent-100";e.isSelected()&&(n=e.rowIndex%2==0?"accent-180":"accent-200");var o=za.light[n],i="linear-gradient(to right, "+o+"B3 0%, "+o+" 17%, "+o+" 100%)";Qt(this.hostEl,{backgroundImage:i})},t.ctorParameters=function(){return[{type:e.ElementRef},{type:Ba},{type:Ar},{type:e.ChangeDetectorRef}]},t=At([e.Component({selector:"dato-grid-on-hover",template:'<div class="d-flex">\n <div class="gradient"></div>\n <div class="actions d-flex align-end-center">\n <dato-icon-button (click)="callAction(action)" datoSize="md" datoType="none" *ngFor="let action of displayedActions" [icon]="action.icon" [datoTooltip]="action.tooltip || action.label" datoTooltipOffset="[-80,5]"></dato-icon-button>\n <dato-icon-button *ngIf="showMore" (click)="openActionMenu($event)" datoSize="md" datoType="none" icon="more-vertical"></dato-icon-button>\n </div>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;justify-content:flex-end;align-content:center;align-items:center;position:absolute;max-width:150px;transition:opacity .3s ease-in-out;opacity:0}:host .gradient{min-width:20px}"]}),bt("design:paramtypes",[e.ElementRef,Ba,Ar,e.ChangeDetectorRef])],t)}(),Ha=function(){function t(t){var e=this;this.ref=t,this.groups=[],this.groups=Object.keys(t.data).map((function(n){return{scope:n,children:e.resolveKeys(t.data[n])}}))}return t.prototype.resolveKeys=function(t){return t.reduce((function(t,e){var n=e.description,o=e.keys;return t.push({keys:ha(o),description:n}),t}),[])},t.ctorParameters=function(){return[{type:Yo}]},t=At([e.Component({template:' <dato-dialog-header>{{ \'core.available-shortcuts\' | translate }}</dato-dialog-header>\n <dato-dialog-content>\n <section>\n <ng-container *ngFor="let group of groups">\n <section *ngIf="group.children.length" class="flex-1 hotkeys-group">\n <header>{{ group.scope | translate }}</header>\n <table>\n <tbody>\n <tr *ngFor="let child of group.children">\n <td>{{ child.description | translate }}</td>\n\n <td class="text-right">\n <kbd [innerHTML]="child.keys"></kbd>\n </td>\n </tr>\n </tbody>\n </table>\n </section>\n </ng-container>\n\n </section>\n\n\n </dato-dialog-content>\n <dato-dialog-footer> <dato-button datoType="secondary" datoDialogDismiss>{{ \'core.close\' | translate }}</dato-button> </dato-dialog-footer>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host header{background-color:#f6f8fa;border-top-left-radius:2px;border-top-right-radius:2px;border:1px solid #d1d5da;font-weight:500;font-size:14px;padding:8px 16px;border-bottom:0}:host table{border:1px solid #e1e4e8;border-collapse:collapse;width:100%;margin-bottom:1rem;color:#212529}:host th{font-weight:500;text-align:left;vertical-align:bottom;padding:.75rem;border-top:1px solid #dee2e6;border-bottom:2px solid #dee2e6}:host td{padding:8px 16px;border-top:1px solid #dee2e6}:host kbd{margin-right:6px;background-color:#fafbfc;border:1px solid #d1d5da;border-bottom-color:#c6cbd1;border-radius:3px;box-shadow:inset 0 -1px 0 #c6cbd1;color:#444d56;font-size:12px;padding:3px 5px}"]}),bt("design:paramtypes",[Yo])],t)}(),Ua=function(){function o(t,e,n){var o,i=this;this.eventManager=t,this.document=e,this.dialog=n,this.callbacks=[],this.defaults={preventDefault:!0,event:"keydown",element:this.document,scope:"core.general",ignoreInEditable:!1},this.hotkeys=((o={})[this.defaults.scope]=[],o),this.addShortcut({keys:"shift.?",preventDefault:!1,ignoreInEditable:!0}).subscribe((function(t){i.isActiveElementEditable(t)||ye(i.hotkeys)&&i.openHelpModal()}))}return o.prototype.isActiveElementEditable=function(t){return/^(input|textarea)$/i.test(document.activeElement.nodeName)||t.target.isContentEditable},o.prototype.onShortcut=function(t){var e=this;return this.callbacks.push(t),function(){return e.callbacks.filter((function(e){return e!==t}))}},o.prototype.addShortcut=function(t){var e=this,o=mt(mt({},this.defaults),t),i=o.scope,r=o.keys,a=o.description,s=o.element,l=o.event,c=o.preventDefault,p=o.target,d=o.ignoreInEditable,u=r,h=wt(r.split(".")),g=h[0],f=h.slice(1);return"meta"===g&&!1===ua()&&(u=St(["control"],f).join(".")),this.hotkeys[i]||(this.hotkeys[i]=[]),a&&this.hotkeys[i].push({keys:u,description:a}),new n.Observable((function(t){var n=e.eventManager.addEventListener(s,l+"."+u,(function(n){d&&e.isActiveElementEditable(n)||(c&&n.preventDefault(),e.dialog.isOpen&&e.dialog.closeAll(),e.callbacks.forEach((function(t){return t(n,u,p)})),t.next(n))}));return function(){n(),o.target=null,a&&(e.hotkeys[i]=e.hotkeys[i].filter((function(t){return t.keys!==u})))}}))},o.prototype.openHelpModal=function(){this.dialog.open(Ha,{data:this.hotkeys,size:t.Dimensions.MD})},o.ctorParameters=function(){return[{type:ut.EventManager},{type:void 0,decorators:[{type:e.Inject,args:[s.DOCUMENT]}]},{type:$o}]},o.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(ut.EventManager),e.ɵɵinject(s.DOCUMENT),e.ɵɵinject($o))},token:o,providedIn:"root"}),o=At([e.Injectable({providedIn:"root"}),vt(1,e.Inject(s.DOCUMENT)),bt("design:paramtypes",[ut.EventManager,Object,$o])],o)}(),Ya=function(){function t(t,o,i,r,a,s,l,c,p,d){this.gridService=t,this.gridQuery=o,this.cdr=i,this.iconRegistry=r,this.translate=a,this.host=s,this.injector=l,this.resolver=c,this.hotkeys=p,this.storageAPI=d,this.onGridChange=new e.EventEmitter,this.rowActions=[],this.gridActions=[],this.gridReady$=this.gridQuery.gridReady$,this.contentInit=new n.Subject,this.gridElements={centerViewport:null,centerContainer:null,bodyViewport:null},this.treeGridClass="tree"}return Object.defineProperty(t.prototype,"gridOptions",{get:function(){return this._gridOptions},set:function(t){this._gridOptions=this.gridService.initGridOptions(t),this.gridService.treeData=t.treeData,this.gridService.isPivotMode=t.pivotMode,this.agGridEl&&(t.treeData?!this.agGridEl.classList.contains(this.treeGridClass)&&this.agGridEl.classList.add(this.treeGridClass):t.enableV2_1||this.agGridEl.classList.add(this.treeGridClass))},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.contentInit.complete(),this.clearTooltip(),this.rowHoverComponent&&this.rowHoverComponent.destroy(),this.rowHoverComponent=null},t.prototype.initializeGrid=function(t,e){this.contentInit.isStopped||(this._initializeGrid(t,e),this.contentInit.next(),this.contentInit.complete())},t.prototype._initializeGrid=function(t,e){var o=this;this.agGridEl=e,this.contentInit.asObservable().pipe(r.switchMap((function(){o.gridOptions=o.normalizeOptions(),t.gridOptions=o.gridOptions;var e=!1===o.gridOptions.saveSettings?n.of(null):o.storageAPI.get(o.gridOptions.gridName);return n.combineLatest([t.gridReady,e])})),i.untilDestroyed(this)).subscribe((function(n){var i=wt(n,2),r=i[0],a=r.api,s=r.columnApi,l=i[1],c=void 0===l?{}:l;(o.gridOptions.rowData||a.showLoadingOverlay(),o.gridOptions.statusBar)||Ht(e.querySelector(".ag-status-bar"),"ag-hidden");var p={grid:a,columns:s};o.gridService._setApi(p,t),o.gridQuery._setApi(p,t),o.gridService.initSettings(c||{}),o.registerSettingsListeners(p,t),o.registerGridListeners(p,t),o.registerEventsTriggeringClearSelectedRows(t),o.registerPaginationChanged(t),o.gridQuery._gridReady.next(!0),o.gridOptions.treeData&&o.agGridEl.classList.add("tree"),o.gridOptions.rowHeight&&o.agGridEl.classList.add("row-height-"+o.gridOptions.rowHeight)}))},t.prototype.normalizeOptions=function(){var t={gridOptions:this.gridOptions,customHeadersTemplates:this.customHeadersTemplates,rowActions:this.rowActions},e=this.gridService.normalizeOptions(t);return Zr(mt(mt(mt({},Da),this.gridOptions.treeData?Sa:{}),{icons:this.getGridIcons(),disabledHTMLRenderingFields:e.disabledHTMLRenderingFields||Da.disabledHTMLRenderingFields}),e)},t.prototype.setGridRows=function(t){this.gridService.setRows(t)},t.prototype.setGridFilters=function(t){this.gridService.setGridFilters(t)},t.prototype.setGridSort=function(t){this.gridService.setGridSort(t)},t.prototype.getGridIcons=function(){var t='<span class="da-grid-icon pointer d-flex column-move">'+this.iconRegistry.getSvg("move-column")+"</span>";return{groupExpanded:'<span class="da-grid-icon pointer group-expanded-icon">'+this.iconRegistry.getSvg("arrow-right")+"</span>",groupContracted:'<span class="da-grid-icon pointer group-contracted-icon">'+this.iconRegistry.getSvg("arrow-right")+"</span>",columnMovePin:'<span class="da-grid-icon pointer d-flex primary-300-fill column-move-pin">'+this.iconRegistry.getSvg("pin")+"</span>",columnMoveHide:'<span class="da-grid-icon pointer d-flex column-move-hide">'+this.iconRegistry.getSvg("eye-hide")+"</span>",columnMoveMove:t,columnMoveLeft:t,columnMoveRight:t,rowDrag:'<span class="da-grid-icon drag d-flex">'+this.iconRegistry.getSvg("drag-01")+"</span>"}},t.prototype.registerSettingsListeners=function(t,e){this.listenToColumnResize(t,e),this.listenToGridEvents(e),this.listenToStoreSettingsChanges()},t.prototype.listenToColumnResize=function(t,e){var n=this,o=e.columnResized.asObservable();this.onHoverEnabled()&&(o=o.pipe(r.filter((function(t){return"uiColumnDragged"===t.source})),r.tap((function(){return n.updateOnHoverPos()})))),o.pipe(r.auditTime(100),r.filter((function(t){var e=t.finished,n=t.source;return e&&"uiColumnDragged"===n})),i.untilDestroyed(this)).subscribe((function(e){var o=wt(e.columns,1)[0],i=mt({},n.gridQuery.getColumnSizes());i?i[o.getColId()]=o.getActualWidth():i=pr(t.columns.getAllGridColumns()),n.gridService.updateSettings({gridAlignment:2,columnsSizes:i})}))},t.prototype.listenToGridEvents=function(t){var e=this,o=t.columnVisible,a=t.sortChanged,s=t.columnRowGroupChanged,l=t.columnPinned,c=t.dragStopped,p=t.filterChanged;n.merge(o,a,s,l,c,p).pipe(r.skip(1),i.untilDestroyed(this)).subscribe((function(t){var n=t.type,o=e.gridService.getSettingsDiff();e.gridService.updateSettings(o);var i=e.getGridData();e.onGridChange.emit({filter:e.gridQuery.getExternalFilter(),sort:e.gridQuery.getSort(),type:n,data:i})}))},t.prototype.listenToStoreSettingsChanges=function(){var t=this;this.gridQuery.select((function(t){return t.settings})).pipe(r.skip(1),r.debounceTime(1e3),i.untilDestroyed(this)).subscribe((function(){var e=t.gridService.getSettingsDiff();t.gridService.saveSettingsToServer(e)}))},t.prototype.registerGridListeners=function(t,e){this.gridElements={centerContainer:Bt(".ag-center-cols-container",this.agGridEl),centerViewport:Bt(".ag-center-cols-viewport",this.agGridEl),bodyViewport:Bt(".ag-body-viewport",this.agGridEl)},this.registerGridClickListener(t.grid),this.registerGridGroupListeners(e),this.registerGridMouseListeners(e),this.registerGridKeyboardListener(t),this.registerWindowResizeListener()},t.prototype.registerGridGroupListeners=function(t){var e=this;t.columnRowGroupChanged.pipe(r.switchMap((function(e){return 0===e.columns.length?n.EMPTY:t.cellClicked.pipe(r.filter((function(t){var e=t.value,n=t.node;return void 0!==e&&!0===n.group})))})),i.untilDestroyed(this)).subscribe((function(t){var e=t.node;e.setExpanded(!e.expanded)})),this.onHoverEnabled()&&t.rowGroupOpened.pipe(r.filter((function(t){return!1===t.node.expanded})),i.untilDestroyed(this)).subscribe((function(){e.lastHoveredRow=null,e.setOnHoverState(!1)}))},t.prototype.registerGridClickListener=function(t){var e=this.gridElements,o=e.bodyViewport,a=e.centerViewport;n.fromEvent(o,"click").pipe(r.filter((function(e){return(e.target===o||e.target===a)&&t.getSelectedRows().length>0})),i.untilDestroyed(this)).subscribe((function(){return t.deselectAll()}))},t.prototype.onHoverEnabled=function(){return this.gridOptions.hoverConfig.enabled&&this.rowActions.length>0},t.prototype.registerGridMouseListeners=function(t){var e,o=this,a=this.gridElements,s=a.bodyViewport,l=a.centerContainer,c=this.onHoverEnabled();c&&(n.fromEvent(l,"mouseleave").pipe(i.untilDestroyed(this)).subscribe((function(){o.toggleRowHoverClass(o.lastHoveredRow),o.lastHoveredRow=null,o.setOnHoverState(!1),e=null})),n.merge(t.bodyScroll.pipe(r.filter((function(t){return"horizontal"===t.direction}))),t.rowDataChanged).pipe(i.untilDestroyed(this)).subscribe((function(){o.updateOnHoverPos()})),this.addOnHoverElement()),t.cellMouseOver.pipe(i.untilDestroyed(this)).subscribe((function(t){var n=t.node,i=t.column;if(e!==n.id+"-"+i.getColId()){e=n.id+"-"+i.getColId(),o.showTooltip(t);var r=t.event.target.parentElement;if(c&&(!1===n.group||Ft(n.group))&&o.lastHoveredRow!==r){var a=o.lastHoveredRow;o.lastHoveredRow=r,o.toggleRowHoverClass([a,o.lastHoveredRow]),o.setOnHoverState(!0,t)}}else clearTimeout(o.cellMouseOutTimer)})),n.merge(n.fromEvent(s,"scroll"),n.fromEvent(this.agGridEl,"mouseleave")).pipe(i.untilDestroyed(this)).subscribe((function(){e=null,o.clearTooltip()})),t.cellMouseOut.pipe(r.filter((function(){return!Ft(o.tooltip)})),i.untilDestroyed(this)).subscribe((function(){o.cellMouseOutTimer=window.setTimeout((function(){return o.clearTooltip()}))}))},t.prototype.clearTooltip=function(){this.tooltip&&this.tooltip.dispose(),this.tooltip=null},t.prototype.showTooltip=function(t){var e=t.event.target;if("SPAN"===e.tagName&&0===e.scrollWidth&&(e=e.parentElement),t.colDef.editable&&(e=e.querySelector(".value-wrapper")||e),e.offsetWidth<e.scrollWidth){clearTimeout(this.cellMouseOutTimer);var n=hr(this.gridOptions,t.colDef),o={cell:e,value:e.innerText,allowHTML:n};Ft(this.tooltip)?this.createAndShowTooltip(o):this.updateTooltip(o)}},t.prototype.createAndShowTooltip=function(t){var e=t.cell,n=t.value,o=t.allowHTML;this.tooltip=new Z(e,{placement:"top",container:document.body,trigger:"manual",title:o?ot.sanitize(n):n,html:o,popperOptions:{modifiers:{preventOverflow:{enabled:!1}}},template:'<div class="tooltip dato-tooltip common-tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'}),this.tooltip.show()},t.prototype.updateTooltip=function(t){var e=t.cell,n=t.value;e!==this.tooltip.reference&&(this.tooltip.reference=e,this.tooltip.popperInstance.reference=e,this.tooltip.updateTitleContent(n)),this.tooltip.show()},t.prototype.addOnHoverElement=function(){this.rowHoverComponent=ta({component:Qa,injector:this.injector,resolver:this.resolver});var t=this.rowHoverComponent,e=t.instance,n=t.hostView;e.config=mt(mt({},this.gridOptions.hoverConfig),{actions:this.rowActions.slice()}),n.detectChanges(),qt(this.gridElements.centerContainer,this.rowHoverEl)},Object.defineProperty(t.prototype,"rowHoverEl",{get:function(){return this.rowHoverComponent.location.nativeElement},enumerable:!0,configurable:!0}),t.prototype.setOnHoverState=function(t,e){var n=this.rowHoverComponent.instance;t?(n.show(e),this.updateOnHoverPos()):n.hide()},t.prototype.updateOnHoverPos=function(){var t=this.gridElements,e=t.centerViewport,n=t.centerContainer,o=n.clientWidth>e.clientWidth?e:n,i=o.clientWidth,r=o.scrollLeft;this.rowHoverComponent.instance.updateScrollPos(i+r)},t.prototype.toggleRowHoverClass=function(t){me(t).forEach((function(t){return t&&t.classList.toggle("actions-hovered")}))},t.prototype.registerGridKeyboardListener=function(t){var e=this;t.grid,t.columns;this.hotkeys.addShortcut({element:this.agGridEl,keys:"meta.a",ignoreInEditable:!0}).pipe(i.untilDestroyed(this)).subscribe((function(){e.gridService.selectAllCurrentPageRows()}))},t.prototype.registerWindowResizeListener=function(){var t=this;n.fromEvent(window,"resize").pipe(r.debounceTime(100),r.filter((function(){return 2!==t.gridQuery.gridAlignment})),i.untilDestroyed(this)).subscribe((function(){var e=0===t.gridQuery.gridAlignment?"container":"content";t.gridService.fitGrid(e)}))},t.prototype.getGridData=function(){var t=this.gridService.api.grid.getModel();return this.gridOptions.treeData?_a(t.rowsToDisplay.map((function(t){return t.data})),this.gridService.treeConfig):t.rowsToDisplay},t.prototype.registerEventsTriggeringClearSelectedRows=function(t){var e=this;(this.gridQuery.isServerSide?n.merge(t.sortChanged,t.filterChanged):t.filterChanged).pipe(i.untilDestroyed(this)).subscribe((function(){e.gridService.deselectAllRows()}))},t.prototype.registerPaginationChanged=function(t){var e=this;this.gridQuery.isServerSide&&t.paginationChanged.pipe(i.untilDestroyed(this)).subscribe((function(){e.gridQuery.isServerSelectAllRowsEnabled&&e.gridService.selectAllCurrentPageRows(!0,!0)}))},t.ctorParameters=function(){return[{type:Ba},{type:Ar},{type:e.ChangeDetectorRef},{type:_e},{type:Mn},{type:e.ElementRef},{type:e.Injector},{type:e.ComponentFactoryResolver},{type:Ua},{type:void 0,decorators:[{type:e.Inject,args:[Hr]}]}]},At([e.ContentChildren(Va),bt("design:type",e.QueryList)],t.prototype,"customHeadersTemplates",void 0),At([e.Output(),bt("design:type",Object)],t.prototype,"onGridChange",void 0),At([e.Input(),bt("design:type",Array)],t.prototype,"rowActions",void 0),At([e.Input(),bt("design:type",Array)],t.prototype,"gridActions",void 0),At([e.Input(),bt("design:type",Object),bt("design:paramtypes",[Object])],t.prototype,"gridOptions",null),t=At([e.Component({selector:"dato-grid-controller",template:"\n <ng-content></ng-content>\n ",changeDetection:e.ChangeDetectionStrategy.OnPush,providers:[Ar,Ba,cr],styles:[":host{display:flex;flex-direction:column;flex-grow:1}"]}),vt(9,e.Inject(Hr)),bt("design:paramtypes",[Ba,Ar,e.ChangeDetectorRef,_e,Mn,e.ElementRef,e.Injector,e.ComponentFactoryResolver,Ua,Object])],t)}(),Wa=function(){function t(t,e){this.controller=t,this.host=e}return Object.defineProperty(t.prototype,"grid",{set:function(t){if(t){var e=Bt("ag-grid-angular",this.host.nativeElement);this.controller.initializeGrid(t,e)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridOptions",{get:function(){return this.controller?this.controller.gridOptions:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableBackground",{get:function(){return!!this.gridOptions&&this.gridOptions.enableBackground},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableV2_1",{get:function(){return!!this.gridOptions&&this.gridOptions.enableV2_1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPivotStyle",{get:function(){return this.gridOptions&&this.gridOptions.usePivotGridStyle},enumerable:!0,configurable:!0}),t.ctorParameters=function(){return[{type:Ya},{type:e.ElementRef}]},At([e.ViewChild(st.AgGridAngular,{static:!1}),bt("design:type",st.AgGridAngular),bt("design:paramtypes",[st.AgGridAngular])],t.prototype,"grid",null),t=At([e.Component({selector:"dato-grid-v2",template:'<ag-grid-angular data-auto-id="grid" class="dato-grid ag-theme-material" [class.has-background]="enableBackground" [class.enable-v2_1]="enableV2_1"\n [class.with-multi-selection-col]="gridOptions?.showMultiSelectionCheckboxes" [class.pivot-style]="isPivotStyle">\n</ag-grid-angular>\n<dato-grid-pagination-v2 [class.has-background]="enableBackground"></dato-grid-pagination-v2>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,styles:["dato-grid-v2{flex-grow:1;display:flex;flex-direction:column;position:relative}dato-grid-v2 .dato-grid,dato-grid-v2 dato-grid-pagination-v2{position:absolute;left:0;right:0;bottom:0}dato-grid-v2 .dato-grid{top:0;bottom:50px}dato-grid-v2 .grid-hover-actions{position:absolute;z-index:2;transition:opacity .2s ease-in-out}dato-grid-v2 .ag-row-drag{width:initial!important;min-width:auto!important}dato-grid-v2 .da-grid-icon{display:inline-block;line-height:31px;vertical-align:middle;width:initial;height:initial}dato-grid-v2 .da-grid-icon.drag{width:14px;height:14px;margin-right:6px;opacity:0;transition:opacity .3s;transform:translateY(-50%)}dato-grid-v2 .da-grid-icon.folder{width:18px;height:35px;margin:0 8px}dato-grid-v2 .ag-row.ag-row-hover .da-grid-icon.drag{opacity:1}dato-grid-v2 ag-grid-angular.tree .ag-group-contracted,dato-grid-v2 ag-grid-angular.tree .ag-group-expanded{display:inline-block;width:18px;text-align:center}dato-grid-v2 ag-grid-angular.tree .ag-group-checkbox{display:none}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-empty-folder .folder{margin-left:26px}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-1 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 1)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-1{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-2 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 2)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-2{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-3 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 3)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-3{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-4 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 4)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-4{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row div[col-id=ag-Grid-AutoColumn]{padding-left:0}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell{display:flex;align-items:center}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell .ag-group-value>span{display:inline-block;vertical-align:middle}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell .initials{border-radius:50%;padding:4px;margin-right:8px;margin-left:20px;width:28px;height:28px;display:inline-block;text-align:center}dato-grid-v2 ag-grid-angular.tree .ag-row-group-leaf-indent{margin-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-selection-checkbox .ag-icon-checkbox-indeterminate:before{text-align:center;content:'-';display:inline-block;position:absolute;top:0;left:0;right:0;bottom:0;line-height:.5;color:#fff}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell{line-height:33px}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell.dato-editable-cell{line-height:29px}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell.ag-cell-inline-editing{height:35px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell{line-height:42px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell.dato-editable-cell{line-height:38px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell.ag-cell-inline-editing{height:44px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell{line-height:48px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell.dato-editable-cell{line-height:44px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell.ag-cell-inline-editing{height:50px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell{line-height:57px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell.dato-editable-cell{line-height:53px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell.ag-cell-inline-editing{height:59px}dato-grid-v2 ag-grid-angular .ag-cell.checkbox-selection-cell{display:flex;padding-right:0}dato-grid-v2 .ag-menu .da-grid-icon svg{vertical-align:middle}dato-grid-v2 .ag-header-cell-sortable .ag-sort-none-icon{opacity:0;transition:opacity .2s}dato-grid-v2 .ag-header-cell-sortable:hover .ag-sort-none-icon{opacity:1}dato-grid-v2 .group-contracted-icon,dato-grid-v2 .group-expanded-icon{width:7px}dato-grid-v2 .group-expanded-icon{transform:rotate(90deg)}dato-grid-v2 .dato-grid .ag-cell{border-top:0;border-bottom:0}dato-grid-v2 .ag-overlay-wrapper ng-component{display:flex}.ag-dnd-ghost{min-width:100px;border:none;display:flex;justify-content:flex-start;align-content:center;align-items:center;cursor:-webkit-grabbing;cursor:grabbing;z-index:10000000}.ag-dnd-ghost .da-grid-icon.column-move-hide svg{height:18px;width:18px}.ag-dnd-ghost .da-grid-icon.column-move svg,.ag-dnd-ghost .da-grid-icon.column-move-pin svg{height:16px;width:16px}"]}),bt("design:paramtypes",[Ya,e.ElementRef])],t)}(),Ka=function(){function t(t){this.popover=t}return t.prototype.ngOnInit=function(){var t=this,e=this.popover.data,n=e.api,r=e.gridQuery,a=e.gridService;this.api=n.columns;var s=this.api.getRowGroupColumns();this.columns=this.popover.data.gridQuery.getAllColumns().filter((function(t){return!s.includes(t)})).map((function(t){return{label:t.getColDef().headerName,column:t,id:t.getColId()}})).sort((function(t,e){var n=r.getCurrentGridSettings().columnsOrder;return n.indexOf(t.id)-n.indexOf(e.id)}));var l=this.columns.filter((function(t){return t.column.isVisible()})).map((function(t){return t.id}));this.columnControl=new o.FormControl(l),this.columnControl.valueChanges.pipe(i.untilDestroyed(this)).subscribe((function(e){t.api.setColumnsVisible(r.getAllColumns(),!1),t.api.setColumnsVisible(e,!0),a.fitGrid("container");var n=r.getGridOptions(),o=n.enableSearch,i=n.includeHiddenColumnsInSearch;o&&!i&&r.getSearchTerm()&&a.notifyFilterUpdate()}))},t.prototype.ngOnDestroy=function(){},t.ctorParameters=function(){return[{type:aa}]},t=At([e.Component({selector:"dato-grid-columns-display-menu",template:'<div class="pl-10 pr-10 pt-10 list-section overflow-hidden">\n <div class="dato-sub-headline mb-15">{{ \'core.columns\' | translate }}</div>\n <dato-input placeholder="core.search-columns" #search></dato-input>\n <dato-list-v2 [searchController]="search" [options]="columns" [formControl]="columnControl" [isSortList]="false"></dato-list-v2>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;flex-direction:column;max-height:inherit}.list-section{max-height:305px}"]}),bt("design:paramtypes",[aa])],t)}(),qa=function(){function t(t){this.popover=t,this.addGroup=new o.FormControl,this.activeGroups=[]}return t.prototype.ngOnInit=function(){var t=this;this.api=this.popover.data.api.columns,this.initMenu(),this.addGroup.valueChanges.pipe(i.untilDestroyed(this)).subscribe((function(e){var n=e.column;t.api.addRowGroupColumn(n),t.api.setColumnVisible(n,!1),t.popover.data.gridService._logEvent("Grids - Group Added",{totalNumOfGroups:t.api.getRowGroupColumns().length,column:n.getColId(),groupedFrom:"Table Toolbar"}),t.initMenu()}))},t.prototype.ngOnDestroy=function(){},t.prototype.reorderGroups=function(t){var e=this,n=t.oldIndex,o=t.newIndex;this.api.moveRowGroupColumn(n,o);var i=this.api.getAllDisplayedColumns().find((function(t){return e.activeGroups[o].getColId()===t.getColDef().showRowGroup}));this.api.moveColumn(i,0)},t.prototype.clearGrouping=function(){this.activeGroups.length>0&&(this.api.setRowGroupColumns([]),this.initMenu())},t.prototype.removeColumn=function(t){this.api.removeRowGroupColumn(t),this.initMenu()},t.prototype.initMenu=function(){var t=this;this.addGroup.reset(null,{emitEvent:!1}),this.activeGroups=St(this.api.getRowGroupColumns()),this.optionalColumns=this.api.getAllDisplayedColumns().filter((function(e){return!t.activeGroups.find((function(t){return t.getColId()===e.getColDef().showRowGroup}))})).map((function(t){return{label:t.getColDef().headerName,id:t.getColId(),column:t}}))},t.ctorParameters=function(){return[{type:aa}]},t=At([e.Component({selector:"dato-grid-groups-menu",template:'<div class="header dato-simple-bold pl-10 primary-600-color primary-0-background-color d-flex align-start-center">{{ \'core.group-by\' | translate }}</div>\n<div class="body p-10">\n <dato-sortable *ngIf="activeGroups.length > 0" class="width-100" [datoList]="activeGroups"\n (orderUpdated)="reorderGroups($event)">\n <div *ngFor="let column of activeGroups; index as i"\n class="d-flex align-start-center primary-0-background-color group-item mb-5">\n <dato-icon height="18px" [attr.data-auto-id]="\'grid-group-menu-drag-\' + column.getColId()" datoIcon="drag-01" class="handler primary-300-color" datoSortableHandle></dato-icon>\n <div class="d-flex-grow ellipsis dato-note column-name" [datoTooltip]="column.getColDef().headerName"\n datoTooltipOnTextOverflow="true" datoTooltipPosition="bottom"> {{ column.getColDef().headerName }}</div>\n <dato-icon-button [attr.data-auto-id]="\'grid-group-menu-remove-\' + column.getColId()" datoSize="md"\n datoType="none"\n icon="close" class="ml-10 pointer mr-5 remove-group"\n (click)="removeColumn(column)"></dato-icon-button>\n </div>\n </dato-sortable>\n <dato-select *ngIf="activeGroups.length < 3 && optionalColumns.length > 0" [formControl]="addGroup" [dataSet]="optionalColumns"\n placeholder="core.create-new-group" datoSize="md" #select data-auto-id="grid-group-column-selection">\n <dato-option *ngFor="let option of select.data" [option]="option"\n [attr.data-auto-id]="\'grid-group-column-selection-option-\' + option.id"> {{ option.label }} </dato-option>\n </dato-select>\n</div>\n<div class="footer primary-0-background-color d-flex align-end-center">\n <dato-link class="mr-30 no-select" datoType="secondary" datoSize="sm" data-auto-id="grid-group-menu-clear-groups"\n (click)="clearGrouping()">{{ \'core.clear-grouping\' | translate }}</dato-link>\n <dato-button class="mr-10" datoType="primary" datoSize="sm" data-auto-id="grid-group-menu-done"\n datoPopoverClose>{{ \'core.done\' | translate }}</dato-button>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".header{height:40px}.body{height:120px}.footer{height:46px}.group-item{height:30px}.handler{min-width:24px}"]}),bt("design:paramtypes",[aa])],t)}(),Ja=function(){function t(t,e){this.controller=t,this.gridQuery=e,this.displayRowCount=!0}return Object.defineProperty(t.prototype,"enableBackground",{get:function(){return this.controller.gridOptions.enableBackground},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.rowCount$=this.gridQuery.gridReady$.pipe(r.switchMap((function(){return t.rowsCount()})))},t.prototype.rowsCount=function(){var t=this;return this.gridQuery.isServerSide?this.gridQuery.serverDataLoaded$.pipe(r.map((function(){return t.gridQuery.serverSideConfig.totalRows}))):this.gridQuery.rowDataChanged$.pipe(r.map((function(t){return t.api.getDisplayedRowCount()})))},t.ctorParameters=function(){return[{type:Ya},{type:Ar}]},At([e.Input(),bt("design:type",Object)],t.prototype,"displayRowCount",void 0),At([e.Input(),bt("design:type",String)],t.prototype,"headerClass",void 0),t=At([e.Component({selector:"dato-grid-header-v2",template:'<div class="d-flex justify-start items-center mb-20" [class.mx-30]="enableBackground">\n <span class="dato-mid-headline" [ngClass]="headerClass" data-auto-id="grid-header">\n <ng-content></ng-content>\n <ng-container *ngIf="displayRowCount">\n <span *ngIf="(rowCount$ | async)as rowCount" class="ml-5 mr-10">({{rowCount | number}})</span>\n </ng-container>\n </span>\n <ng-content select=".after-title"></ng-content>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),bt("design:paramtypes",[Ya,Ar])],t)}();
327
327
  /**
328
328
  * @license
329
329
  * Copyright Datorama. All Rights Reserved.
@@ -410,7 +410,7 @@ function js(t,e,n){var o=t.get("from"),i=t.get("to");if(!Ms(o,e,n)&&!Ms(i,e,n)){
410
410
  * Use of this source code is governed by an Apache License 2.0 license that can be
411
411
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
412
412
  */
413
- Zs=t.RenderMethod||(t.RenderMethod={})).Component="Component",Zs.Template="Template",Zs.Text="Text";var cl,pl=function(){function n(){this.renderMethod=t.RenderMethod.Text}return Object.defineProperty(n.prototype,"content",{get:function(){return this._content},set:function(t){this._content=t,this.setRenderMethod()},enumerable:!0,configurable:!0}),n.prototype.setRenderMethod=function(){"string"==typeof this.content?this.renderMethod=t.RenderMethod.Text:this.content instanceof e.TemplateRef?this.renderMethod=t.RenderMethod.Template:this.renderMethod=t.RenderMethod.Component},At([e.Input(),bt("design:type",Object),bt("design:paramtypes",[Object])],n.prototype,"content",null),n=At([e.Component({selector:"dato-dynamic-content",template:'<ng-container [ngSwitch]="renderMethod">\n <div *ngSwitchCase="\'Text\'" [innerHTML]="content"></div>\n <ng-container *ngSwitchCase="\'Template\'">\n <ng-container *ngTemplateOutlet="content"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase="\'Component\'">\n <ng-container *ngComponentOutlet="content"></ng-container>\n </ng-container>\n</ng-container>',changeDetection:e.ChangeDetectionStrategy.OnPush})],n)}(),dl=function(){function t(){}return t=At([e.NgModule({imports:[s.CommonModule],declarations:[pl],exports:[pl]})],t)}(),ul=function(){function t(t){this.dialogRef=t}return t.prototype.onClick=function(){this.dialogRef.dismiss(this.dialogResult)},t.ctorParameters=function(){return[{type:Yo,decorators:[{type:e.Optional}]}]},At([e.HostListener("click"),bt("design:type",Function),bt("design:paramtypes",[]),bt("design:returntype",void 0)],t.prototype,"onClick",null),At([e.Input("datoDialogDismiss"),bt("design:type",Object)],t.prototype,"dialogResult",void 0),t=At([e.Directive({selector:"[datoDialogDismiss]"}),vt(0,e.Optional()),bt("design:paramtypes",[Yo])],t)}(),hl=[Wo,rl,al,sl,ll,ul,Zo],gl=function(){function t(){}return t=At([e.NgModule({imports:[s.CommonModule,se,Be,Eo,dl,$n,On],providers:[$o,Yo],declarations:[hl],exports:[hl],entryComponents:[Wo,Zo]})],t)}(),fl=function(){function t(t,e){this.hotkeys=t,this.host=e}return Object.defineProperty(t.prototype,"options",{get:function(){return this._options},set:function(t){this.subscription&&this.subscription.unsubscribe(),this._options=t,this.init()},enumerable:!0,configurable:!0}),t.prototype.init=function(){var t=this;this.options.target=this.host.nativeElement,this.options.handler=this.options.handler||function(){},this.subscription=this.hotkeys.addShortcut(this.options).pipe(i.untilDestroyed(this)).subscribe((function(e){t.options.handler(e)}))},t.prototype.ngOnDestroy=function(){},t.ctorParameters=function(){return[{type:Ua},{type:e.ElementRef}]},At([e.Input("datoHotkeys"),bt("design:type",Object),bt("design:paramtypes",[Object])],t.prototype,"options",null),t=At([e.Directive({selector:"[datoHotkeys]"}),bt("design:paramtypes",[Ua,e.ElementRef])],t)}(),ml=function(){function t(){}return t=At([e.NgModule({imports:[gl,se,s.CommonModule,vo],declarations:[Ha,fl],exports:[fl],entryComponents:[Ha]})],t)}(),yl=function(){function t(t,e,n,i){this.cdr=t,this.translate=e,this.gridService=n,this.gridQuery=i,this.searchPlaceholder=this.translate.transform("core.search"),this.hasSelectedRows=!1,this.searchControl=new o.FormControl}return Object.defineProperty(t.prototype,"isServerSide",{get:function(){return this.gridQuery.isServerSide},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"searchDebounceTime",{get:function(){var t=this.gridQuery.getGridOptions().searchDebounceTime,e=Ea.CLIENT,n=Ea.SERVER;return t>=0?t:this.isServerSide?n:e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.subscribeOnSearchChange(),this.subscribeOnSearchExternalChange(),this.gridQuery.selectedRowsChange$.subscribe((function(e){t.hasSelectedRows=ye(e)>0||t.gridQuery.isServerSelectAllRowsEnabled,t.cdr.detectChanges()}))},t.prototype.ngOnDestroy=function(){},t.prototype.subscribeOnSearchChange=function(){var t=this;this.searchControl.valueChanges.pipe(i.untilDestroyed(this)).subscribe((function(e){t.gridService.setSearchTerm(e),t.isServerSide||(t.gridService.notifyFilterUpdate(),t.gridQuery.getGridOptions().enableSearchHighlight&&t.gridService.api.grid.refreshCells({force:!0}))}))},t.prototype.subscribeOnSearchExternalChange=function(){var t=this;this.gridQuery.selectSearchTerm().pipe(r.filter((function(e){return e!==t.searchControl.value})),i.untilDestroyed(this)).subscribe((function(e){t.searchControl.setValue(e)}))},t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:Mn},{type:Ba},{type:Ar}]},At([e.Input(),bt("design:type",Object)],t.prototype,"searchPlaceholder",void 0),t=At([e.Component({selector:"dato-grid-search-bar",template:'<div class="d-flex">\n <dato-input datoSize="md" class="search" type="search" [formControl]="searchControl" [debounceTime]="searchDebounceTime"\n [ngClass]="!hasSelectedRows ? \'big-search\' : \'search\'" [placeholder]="searchPlaceholder" data-auto-id="grid-search-input">\n </dato-input>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host .invisible,:host .visibility-animation,:host .visible{transition-property:visibility;transition-duration:.3s;transition-timing-function:linear}:host .big-search,:host .search,:host .width-animation{transition-property:width;transition-duration:.3s;transition-timing-function:linear}:host .visible{visibility:visible}:host .invisible{visibility:hidden}:host .search{width:206px}:host .big-search{width:400px}"]}),bt("design:paramtypes",[e.ChangeDetectorRef,Mn,Ba,Ar])],t)}(),Al=function(){function t(){this.actionClick=new e.EventEmitter}return Object.defineProperty(t.prototype,"buttonAutoId",{get:function(){return this.isRowActions?"grid-toolbar-more-actions":"grid-toolbar-general-more-actions"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasActiveMoreActions",{get:function(){return!this.isRowActions||this.actions.some((function(t){return t.visible}))},enumerable:!0,configurable:!0}),t.prototype.isActionDisabled=function(t){return this.isRowActions&&!t.visible},t.prototype.getActionMenu=function(t){return t.getMenu?t.getMenu():null},t.prototype.onActionClick=function(t){this.actionClick.emit(t)},At([e.Input(),bt("design:type",Array)],t.prototype,"actions",void 0),At([e.Input(),bt("design:type",Boolean)],t.prototype,"isRowActions",void 0),At([e.Output(),bt("design:type",Object)],t.prototype,"actionClick",void 0),t=At([e.Component({selector:"dato-grid-toolbar-more-menu",template:'<div class="mr-5" [class.force-hide]="actions.length === 0">\n <dato-link datoType="secondary" [disabled]="!hasActiveMoreActions" [class.disabled-action]="!hasActiveMoreActions" [datoMenuTriggerFor]="menu"\n [attr.data-auto-id]="buttonAutoId">\n <dato-icon icon="chevron-down" height="18px" width="18px"></dato-icon>\n {{ \'core.more-actions\' | translate }}\n </dato-link>\n</div>\n\n<dato-menu #menu="datoMenu" menuClass="grid-more-actions" placement="bottom-start">\n <ng-template datoMenuContent>\n <button datoMenuItem *ngFor="let action of actions; index as i"\n [attr.data-auto-id]="\'grid-toolbar-more-action-\' + action.key"\n [attr.data-action-index]="\'grid-toolbar-more-action-\' + i"\n [datoMenuTriggerFor]="getActionMenu(action)"\n [disabled]="isActionDisabled(action)"\n (click)="onActionClick(action)">\n <dato-icon [icon]="action.icon" class="mr-8" height="18px" width="18px"></dato-icon>\n {{ action.label | translate }}\n </button>\n </ng-template>\n\n\n</dato-menu>',changeDetection:e.ChangeDetectionStrategy.OnPush})],t)}(),vl=function(){function n(e){var n;this.cdr=e,this.defaultConfigByStatus=((n={})[t.GridStatusColumnTypes.SUCCESS]={icon:"success-line",iconCssClass:"green-400-color"},n[t.GridStatusColumnTypes.FAILURE]={icon:"failed-line",iconCssClass:"red-400-color"},n[t.GridStatusColumnTypes.PENDING]={icon:"time",iconCssClass:"yellow-400-color"},n[t.GridStatusColumnTypes.WAITING]={icon:"info-line",iconCssClass:"orange-400-color"},n[t.GridStatusColumnTypes.IN_PROGRESS]={showSpinner:!0},n)}return n.prototype.agInit=function(t){var e=t.value,n=t.valueFormatted,o=t.node;this.status=n||e,this.isGroup=o.group,this.isGroup||this.initCellData(t)},n.prototype.initCellData=function(t){var e=t.colDef,n=e.customCellConfig,o=e.valueToCustomCellConfig,i=n||{},r=o&&o[t.value]||{},a=mt(mt({},i),r),s=a.textCssClass,l=a.icon,c=a.iconCssClass,p=a.showSpinner,d=a.getAdditionalText,u=a.additionalTextCssClass,h=a.getIsVisible,g=a.status,f=this.defaultConfigByStatus[g]||{};this.isVisible=!h||h(t.data),this.icon=l||f.icon,this.iconCssClass=c||f.iconCssClass||"",this.textCssClass=s||"",this.additionalTextCssClass=u||"",this.showSpinner=!!p||!!f.showSpinner,this.additionalText=d?d(t.data):null},n.prototype.refresh=function(t){return this.agInit(t),this.cdr.detectChanges(),!0},n.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},n=At([e.Component({selector:"dato-grid-status-cell",template:'<div *ngIf="!isGroup && isVisible" class="height-100 d-flex items-center">\n <dato-icon *ngIf="icon" class="mr-6 {{iconCssClass}}" [icon]="icon" datoSize="sm"></dato-icon>\n <dato-page-loader *ngIf="showSpinner" [salesforce]="true" size="x-small" class="mr-10 mt-15"></dato-page-loader>\n <div class="dato-simple status line-height-18 {{textCssClass}}" [class.ellipsis]="!additionalText"\n [datoTooltipV2]="status" [showOnlyOnTextOverflow]="true" [tooltipCheckInView]="false">\n {{status}}\n </div>\n <div *ngIf="additionalText" class="dato-simple ml-3 ellipsis line-height-18 {{additionalTextCssClass}}"\n [datoTooltipV2]="status + \' \' + additionalText" [showOnlyOnTextOverflow]="true" [tooltipCheckInView]="false">\n {{additionalText}}\n </div>\n</div>\n<span *ngIf="isGroup">{{status}}</span>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".line-height-18{line-height:18px}"]}),bt("design:paramtypes",[e.ChangeDetectorRef])],n)}(),bl=function(){function t(){this.DEFAULT_MAX_VISIBLE_ITEMS=2}return t.prototype.agInit=function(t){var e=(t.colDef.customCellConfig||{}).maxLabels||this.DEFAULT_MAX_VISIBLE_ITEMS,n=this.getItems(t);this.visibleItems=n.slice(0,e),this.remainingItems=n.length>2&&n.slice(e,n.length)},t.prototype.getItems=function(t){var e=t.colDef.customCellConfig;return e&&e.getItems&&t.data?e.getItems(t.data):t.value&&t.value.length?Array.isArray(t.value)?t.value:t.value.split(","):[]},t.prototype.refresh=function(){return!1},t=At([e.Component({selector:"dato-grid-items-cell",template:'<div class="height-100 d-flex items-center primary-500-color grid-items-cell">\n <div *ngFor="let label of visibleItems"\n class="chip accent-100-background-color px-15 mx-4 d-flex align-center"\n [datoTooltipV2]="label" [showOnlyOnTextOverflow]="true" [tooltipCheckInView]="false">\n {{label}}\n </div>\n <div class="chip d-flex align-center accent-100-background-color ml-4 px-6" *ngIf="remainingItems"\n [datoTooltipV2]="tpl" placement="right" [tooltipCheckInView]="false" variation="information" [options]="{maxWidth: 450}">\n +{{remainingItems.length}}</div>\n\n <ng-template #tpl>\n <div class="d-flex-column">\n <span *ngFor="let label of remainingItems">{{label}}</span>\n </div>\n </ng-template>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".grid-items-cell{font-size:11px}.grid-items-cell .chip{height:20px;border-radius:2px}"]})],t)}(),Cl=function(){function t(){}return t.prototype.agInit=function(t){var e=t.node,n=t.valueFormatted,o=t.value;this.isGroup=e.group,this.isGroup?this.text=n||o:this.initCellData(t)},t.prototype.initCellData=function(t){var e=t.colDef,n=t.data,o=t.valueFormatted,i=t.value,r=e.customCellConfig;if(r&&r.initialsConfig&&n){var a=r.initialsConfig,s=a.isBold,l=a.firstNameField,c=a.lastNameField,p=a.fullNameField,d=a.getFullName;this.isBold=s,d?this.text=d(n):l&&c?this.text=n[l]+" "+n[c]:p&&(this.text=""+n[p])}this.text||(this.text=o||i),this.text&&(this.initials=this.text.split(" ").map((function(t){return t.length>0?Oe(t.charAt(0)):""})).join(""))},t.prototype.refresh=function(){return!1},t=At([e.Component({selector:"dato-grid-initials-cell",template:'<div *ngIf="!isGroup" class="height-100 d-flex items-center primary-500-color initials-container">\n <div *ngIf="initials" class="initials text-center mr-12" [class.bold]="isBold">{{ initials }}</div>\n <div [class.bold]="isBold">{{text}}</div>\n</div>\n\n<span *ngIf="isGroup">{{text}}</span>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".initials-container .initials{width:34px;height:34px;line-height:33px;border-radius:50%;font-size:15px;flex:0 0 auto}.initials-container.bold{font-weight:600}"]})],t)}(),wl=function(){function t(){}return t.prototype.agInit=function(t){var e=t.colDef,n=t.data,o=t.value,i=t.valueFormatted,r=t.node,a=e.customCellConfig;if(this.isGroup=r.group,this.text=i||o,!this.isGroup&&a){var s=a.getImageUrl;this.imageUrl=s?s(n):null}},t.prototype.refresh=function(){return!1},t=At([e.Component({selector:"dato-grid-avatar-cell",template:'<div *ngIf="!isGroup" class="height-100 d-flex items-center primary-500-color avatar-container">\n <div *ngIf="imageUrl" [style.background-image]="\'url(\' + imageUrl + \')\'" class="avatar text-center mr-12"></div>\n <div>{{text}}</div>\n</div>\n\n<span *ngIf="isGroup">{{text}}</span>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".avatar-container .avatar{width:34px;height:34px;border-radius:50%;background-size:contain}"]})],t)}(),Sl=function(){function t(){}return t.prototype.agInit=function(t){var e=t.colDef.customCellConfig;if(this.itemsCount=t.value,this.isGroup=t.node.group,e){var n=e.getItems,o=e.icon;this.tooltipItems=n&&t.data?n(t.data):[],this.icon=o}},t.prototype.refresh=function(){return!1},t=At([e.Component({selector:"dato-grid-items-count-cell",template:'<div *ngIf="!isGroup else group" class="d-flex">\n <div *ngIf="itemsCount >= 0" class="d-flex items-center primary-500-color accent-500-color:h" [datoTooltipV2]="tplTooltip"\n placement="right" variation="information" [tooltipCheckInView]="false" [datoTooltipDisabled]="!tooltipItems">\n <dato-icon *ngIf="icon" [icon]="icon" width="18px" height="18px" class="mr-10"></dato-icon>\n <span>{{ itemsCount }}</span>\n </div>\n</div>\n\n<ng-template #group>\n {{itemsCount}}\n</ng-template>\n\n<ng-template #tplTooltip>\n <div class="d-flex-column">\n <span *ngFor="let item of tooltipItems">{{ item }}</span>\n </div>\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush})],t)}(),xl=[Wa,Za,Ja,Ya,ba,Na,Va,La,Ga,pa,Aa,ts,$a,Al,qa,Ka,Wr,$r,Qa,yl],Ol=[vl,bl,Sl,Cl,wl],Dl=function(){function t(){}return t=At([e.NgModule({imports:[s.CommonModule,o.ReactiveFormsModule,$n,Eo,Be,se,wo,vo,is,gi,zi,Ki,bo,ps,gs,Cs,Ds,Ys,Ui,qs,st.AgGridModule,il,ml,Mi],entryComponents:[ba,Na,pa,Aa,qa,Ka,Wr,$r,Qa,Ol],declarations:[xl,Ol],exports:[xl,Ol]})],t)}(),El={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Il})),multi:!0},Il=function(t){function o(e,n,o){var i=t.call(this)||this;return i.renderer=e,i.cdr=n,i.host=o,i.id=Math.random().toString(),i}return ft(o,t),Object.defineProperty(o.prototype,"inputElement",{get:function(){return this.host.nativeElement.querySelector("input")},enumerable:!0,configurable:!0}),o.prototype.ngOnInit=function(){var t=this;n.fromEvent(this.inputElement,"change").pipe(r.pluck("target","value"),i.untilDestroyed(this)).subscribe((function(e){t.onChange(e),t.cdr.markForCheck()}))},o.prototype.writeValue=function(t){this.setInputValue(t===this.value)},o.prototype.setDisabledState=function(t){this.renderer.setProperty(this.inputElement,"disabled",t)},o.prototype.ngOnDestroy=function(){},o.prototype.setInputValue=function(t){this.renderer.setProperty(this.inputElement,"checked",t)},o.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ChangeDetectorRef},{type:e.ElementRef}]},At([e.Input(),bt("design:type",String)],o.prototype,"name",void 0),At([e.Input(),bt("design:type",Object)],o.prototype,"value",void 0),o=At([e.Component({selector:"dato-radio",template:'<div class="dato-radio">\n <input [id]="id" [name]="name" type="radio" [value]="value">\n <label [attr.for]="id" class="radio-label d-flex items-start"><span class="dato-simple"><ng-content></ng-content></span></label>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,exportAs:"datoRadio",providers:[El],styles:[":host{display:block}.dato-radio{margin:.5rem;display:inline-block}.dato-radio label{cursor:pointer}.dato-radio input[type=radio]{position:absolute;opacity:0;min-width:10px!important;max-width:10px!important}.dato-radio input[type=radio]+.radio-label:before{content:'';border-radius:100%;display:inline-block;box-sizing:border-box;min-width:16px;width:16px;height:16px;position:relative;top:1px;margin-right:10px;vertical-align:middle;cursor:pointer;text-align:center;transition:250ms}.dato-radio input[type=radio]:focus+.radio-label:before{outline:0}.dato-radio input[type=radio]+.radio-label:empty:before{margin-right:0}"]}),bt("design:paramtypes",[e.Renderer2,e.ChangeDetectorRef,e.ElementRef])],o)}(Ot),Rl=[Il],Tl=function(){function t(){}return t=At([e.NgModule({imports:[s.CommonModule,Oo],declarations:[Rl],exports:[Rl]})],t)}();function Pl(){return{duration:4e3,dismissible:!1}}
413
+ Zs=t.RenderMethod||(t.RenderMethod={})).Component="Component",Zs.Template="Template",Zs.Text="Text";var cl,pl=function(){function n(){this.renderMethod=t.RenderMethod.Text}return Object.defineProperty(n.prototype,"content",{get:function(){return this._content},set:function(t){this._content=t,this.setRenderMethod()},enumerable:!0,configurable:!0}),n.prototype.setRenderMethod=function(){"string"==typeof this.content?this.renderMethod=t.RenderMethod.Text:this.content instanceof e.TemplateRef?this.renderMethod=t.RenderMethod.Template:this.renderMethod=t.RenderMethod.Component},At([e.Input(),bt("design:type",Object),bt("design:paramtypes",[Object])],n.prototype,"content",null),n=At([e.Component({selector:"dato-dynamic-content",template:'<ng-container [ngSwitch]="renderMethod">\n <div *ngSwitchCase="\'Text\'" [innerHTML]="content"></div>\n <ng-container *ngSwitchCase="\'Template\'">\n <ng-container *ngTemplateOutlet="content"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase="\'Component\'">\n <ng-container *ngComponentOutlet="content"></ng-container>\n </ng-container>\n</ng-container>',changeDetection:e.ChangeDetectionStrategy.OnPush})],n)}(),dl=function(){function t(){}return t=At([e.NgModule({imports:[s.CommonModule],declarations:[pl],exports:[pl]})],t)}(),ul=function(){function t(t){this.dialogRef=t}return t.prototype.onClick=function(){this.dialogRef.dismiss(this.dialogResult)},t.ctorParameters=function(){return[{type:Yo,decorators:[{type:e.Optional}]}]},At([e.HostListener("click"),bt("design:type",Function),bt("design:paramtypes",[]),bt("design:returntype",void 0)],t.prototype,"onClick",null),At([e.Input("datoDialogDismiss"),bt("design:type",Object)],t.prototype,"dialogResult",void 0),t=At([e.Directive({selector:"[datoDialogDismiss]"}),vt(0,e.Optional()),bt("design:paramtypes",[Yo])],t)}(),hl=[Wo,rl,al,sl,ll,ul,Zo],gl=function(){function t(){}return t=At([e.NgModule({imports:[s.CommonModule,se,Be,Eo,dl,$n,On],providers:[$o,Yo],declarations:[hl],exports:[hl],entryComponents:[Wo,Zo]})],t)}(),fl=function(){function t(t,e){this.hotkeys=t,this.host=e}return Object.defineProperty(t.prototype,"options",{get:function(){return this._options},set:function(t){this.subscription&&this.subscription.unsubscribe(),this._options=t,this.init()},enumerable:!0,configurable:!0}),t.prototype.init=function(){var t=this;this.options.target=this.host.nativeElement,this.options.handler=this.options.handler||function(){},this.subscription=this.hotkeys.addShortcut(this.options).pipe(i.untilDestroyed(this)).subscribe((function(e){t.options.handler(e)}))},t.prototype.ngOnDestroy=function(){},t.ctorParameters=function(){return[{type:Ua},{type:e.ElementRef}]},At([e.Input("datoHotkeys"),bt("design:type",Object),bt("design:paramtypes",[Object])],t.prototype,"options",null),t=At([e.Directive({selector:"[datoHotkeys]"}),bt("design:paramtypes",[Ua,e.ElementRef])],t)}(),ml=function(){function t(){}return t=At([e.NgModule({imports:[gl,se,s.CommonModule,vo],declarations:[Ha,fl],exports:[fl],entryComponents:[Ha]})],t)}(),yl=function(){function t(t,e,n,i){this.cdr=t,this.translate=e,this.gridService=n,this.gridQuery=i,this.searchPlaceholder=this.translate.transform("core.search"),this.hasSelectedRows=!1,this.searchControl=new o.FormControl}return Object.defineProperty(t.prototype,"isServerSide",{get:function(){return this.gridQuery.isServerSide},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"searchDebounceTime",{get:function(){var t=this.gridQuery.getGridOptions().searchDebounceTime,e=Ea.CLIENT,n=Ea.SERVER;return t>=0?t:this.isServerSide?n:e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.subscribeOnSearchChange(),this.subscribeOnSearchExternalChange(),this.gridQuery.selectedRowsChange$.subscribe((function(e){t.hasSelectedRows=ye(e)>0||t.gridQuery.isServerSelectAllRowsEnabled,t.cdr.detectChanges()}))},t.prototype.ngOnDestroy=function(){},t.prototype.subscribeOnSearchChange=function(){var t=this;this.searchControl.valueChanges.pipe(i.untilDestroyed(this)).subscribe((function(e){t.gridService.setSearchTerm(e),t.isServerSide||(t.gridService.notifyFilterUpdate(),t.gridQuery.getGridOptions().enableSearchHighlight&&t.gridService.api.grid.refreshCells({force:!0}))}))},t.prototype.subscribeOnSearchExternalChange=function(){var t=this;this.gridQuery.selectSearchTerm().pipe(r.filter((function(e){return e!==t.searchControl.value})),i.untilDestroyed(this)).subscribe((function(e){t.searchControl.setValue(e)}))},t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:Mn},{type:Ba},{type:Ar}]},At([e.Input(),bt("design:type",Object)],t.prototype,"searchPlaceholder",void 0),t=At([e.Component({selector:"dato-grid-search-bar",template:'<div class="d-flex">\n <dato-input datoSize="md" class="search" type="search" [formControl]="searchControl" [debounceTime]="searchDebounceTime"\n [ngClass]="!hasSelectedRows ? \'big-search\' : \'search\'" [placeholder]="searchPlaceholder" data-auto-id="grid-search-input">\n </dato-input>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host .invisible,:host .visibility-animation,:host .visible{transition-property:visibility;transition-duration:.3s;transition-timing-function:linear}:host .big-search,:host .search,:host .width-animation{transition-property:width;transition-duration:.3s;transition-timing-function:linear}:host .visible{visibility:visible}:host .invisible{visibility:hidden}:host .search{width:206px}:host .big-search{width:400px}"]}),bt("design:paramtypes",[e.ChangeDetectorRef,Mn,Ba,Ar])],t)}(),Al=function(){function t(){this.actionClick=new e.EventEmitter}return Object.defineProperty(t.prototype,"buttonAutoId",{get:function(){return this.isRowActions?"grid-toolbar-more-actions":"grid-toolbar-general-more-actions"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasActiveMoreActions",{get:function(){return!this.isRowActions||this.actions.some((function(t){return t.visible}))},enumerable:!0,configurable:!0}),t.prototype.isActionDisabled=function(t){return this.isRowActions&&!t.visible},t.prototype.getActionMenu=function(t){return t.getMenu?t.getMenu():null},t.prototype.onActionClick=function(t){this.actionClick.emit(t)},At([e.Input(),bt("design:type",Array)],t.prototype,"actions",void 0),At([e.Input(),bt("design:type",Boolean)],t.prototype,"isRowActions",void 0),At([e.Output(),bt("design:type",Object)],t.prototype,"actionClick",void 0),t=At([e.Component({selector:"dato-grid-toolbar-more-menu",template:'<div class="mr-5" [class.force-hide]="actions.length === 0">\n <dato-link datoType="secondary" [disabled]="!hasActiveMoreActions" [class.disabled-action]="!hasActiveMoreActions" [datoMenuTriggerFor]="menu"\n [attr.data-auto-id]="buttonAutoId">\n <dato-icon icon="chevron-down" height="18px" width="18px"></dato-icon>\n {{ \'core.more-actions\' | translate }}\n </dato-link>\n</div>\n\n<dato-menu #menu="datoMenu" menuClass="grid-more-actions" placement="bottom-start">\n <ng-template datoMenuContent>\n <button datoMenuItem *ngFor="let action of actions; index as i"\n [attr.data-auto-id]="\'grid-toolbar-more-action-\' + action.key"\n [attr.data-action-index]="\'grid-toolbar-more-action-\' + i"\n [datoMenuTriggerFor]="getActionMenu(action)"\n [disabled]="isActionDisabled(action)"\n (click)="onActionClick(action)">\n <dato-icon [icon]="action.icon" class="mr-8" height="18px" width="18px"></dato-icon>\n {{ action.label | translate }}\n </button>\n </ng-template>\n\n\n</dato-menu>',changeDetection:e.ChangeDetectionStrategy.OnPush})],t)}(),vl=function(){function n(e){var n;this.cdr=e,this.defaultConfigByStatus=((n={})[t.GridStatusColumnTypes.SUCCESS]={icon:"success-line",iconCssClass:"green-400-color"},n[t.GridStatusColumnTypes.FAILURE]={icon:"failed-line",iconCssClass:"red-400-color"},n[t.GridStatusColumnTypes.PENDING]={icon:"time",iconCssClass:"yellow-400-color"},n[t.GridStatusColumnTypes.WAITING]={icon:"info-line",iconCssClass:"orange-400-color"},n[t.GridStatusColumnTypes.IN_PROGRESS]={showSpinner:!0},n)}return n.prototype.agInit=function(t){var e=t.value,n=t.valueFormatted,o=t.node;this.status=n||e,this.isGroup=o.group,this.isGroup||this.initCellData(t)},n.prototype.initCellData=function(t){var e=t.colDef,n=e.customCellConfig,o=e.valueToCustomCellConfig,i=n||{},r=o&&o[t.value]||{},a=mt(mt({},i),r),s=a.textCssClass,l=a.icon,c=a.iconCssClass,p=a.showSpinner,d=a.getAdditionalText,u=a.additionalTextCssClass,h=a.getIsVisible,g=a.status,f=this.defaultConfigByStatus[g]||{};this.isVisible=!h||h(t.data),this.icon=l||f.icon,this.iconCssClass=c||f.iconCssClass||"",this.textCssClass=s||"",this.additionalTextCssClass=u||"",this.showSpinner=!!p||!!f.showSpinner,this.additionalText=d?d(t.data):null},n.prototype.refresh=function(t){return this.agInit(t),this.cdr.detectChanges(),!0},n.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},n=At([e.Component({selector:"dato-grid-status-cell",template:'<div *ngIf="!isGroup && isVisible" class="height-100 d-flex items-center">\n <dato-icon *ngIf="icon" class="mr-6 {{iconCssClass}}" [icon]="icon" datoSize="sm"></dato-icon>\n <dato-page-loader *ngIf="showSpinner" [salesforce]="true" size="x-small" class="mr-10 mt-15"></dato-page-loader>\n <div class="dato-simple status line-height-18 {{textCssClass}}" [class.ellipsis]="!additionalText"\n [datoTooltipV2]="status" [showOnlyOnTextOverflow]="true" [tooltipCheckInView]="false">\n {{status}}\n </div>\n <div *ngIf="additionalText" class="dato-simple ml-3 ellipsis line-height-18 {{additionalTextCssClass}}"\n [datoTooltipV2]="status + \' \' + additionalText" [showOnlyOnTextOverflow]="true" [tooltipCheckInView]="false">\n {{additionalText}}\n </div>\n</div>\n<span *ngIf="isGroup">{{status}}</span>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".line-height-18{line-height:18px}"]}),bt("design:paramtypes",[e.ChangeDetectorRef])],n)}(),bl=function(){function t(){this.DEFAULT_MAX_VISIBLE_ITEMS=2}return t.prototype.agInit=function(t){var e=(t.colDef.customCellConfig||{}).maxLabels||this.DEFAULT_MAX_VISIBLE_ITEMS,n=this.getItems(t);this.visibleItems=n.slice(0,e),this.remainingItems=n.length>2&&n.slice(e,n.length)},t.prototype.getItems=function(t){var e=t.colDef.customCellConfig;return e&&e.getItems&&t.data?e.getItems(t.data):t.value&&t.value.length?Array.isArray(t.value)?t.value:t.value.split(","):[]},t.prototype.refresh=function(){return!1},t=At([e.Component({selector:"dato-grid-items-cell",template:'<div class="height-100 d-flex items-center primary-500-color grid-items-cell">\n <div *ngFor="let label of visibleItems"\n class="chip accent-100-background-color px-15 mx-4 d-flex align-center"\n [datoTooltipV2]="label" [showOnlyOnTextOverflow]="true" [tooltipCheckInView]="false">\n {{label}}\n </div>\n <div class="chip d-flex align-center accent-100-background-color ml-4 px-6" *ngIf="remainingItems"\n [datoTooltipV2]="tpl" placement="right" [tooltipCheckInView]="false" variation="information" [options]="{maxWidth: 450}">\n +{{remainingItems.length}}</div>\n\n <ng-template #tpl>\n <div class="d-flex-column">\n <span *ngFor="let label of remainingItems">{{label}}</span>\n </div>\n </ng-template>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".grid-items-cell{font-size:11px}.grid-items-cell .chip{height:20px;border-radius:2px}"]})],t)}(),Cl=function(){function t(){}return t.prototype.agInit=function(t){var e=t.node,n=t.valueFormatted,o=t.value;this.isGroup=e.group,this.isGroup?this.text=n||o:this.initCellData(t)},t.prototype.initCellData=function(t){var e=t.colDef,n=t.data,o=t.valueFormatted,i=t.value,r=e.customCellConfig;if(r&&r.initialsConfig&&n){var a=r.initialsConfig,s=a.isBold,l=a.firstNameField,c=a.lastNameField,p=a.fullNameField,d=a.getFullName;this.isBold=s,d?this.text=d(n):l&&c?this.text=n[l]+" "+n[c]:p&&(this.text=""+n[p])}this.text||(this.text=o||i),this.text&&(this.initials=this.text.split(" ").map((function(t){return t.length>0?Oe(t.charAt(0)):""})).join(""))},t.prototype.refresh=function(){return!1},t=At([e.Component({selector:"dato-grid-initials-cell",template:'<div *ngIf="!isGroup" class="height-100 d-flex items-center primary-500-color initials-container">\n <div *ngIf="initials" class="initials text-center mr-12" [class.bold]="isBold">{{ initials }}</div>\n <div class="ellipsis" [class.bold]="isBold">{{text}}</div>\n</div>\n\n<span *ngIf="isGroup">{{text}}</span>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".initials-container .initials{width:34px;height:34px;line-height:33px;border-radius:50%;font-size:15px;flex:0 0 auto}.initials-container.bold{font-weight:600}"]})],t)}(),wl=function(){function t(){}return t.prototype.agInit=function(t){var e=t.colDef,n=t.data,o=t.value,i=t.valueFormatted,r=t.node,a=e.customCellConfig;if(this.isGroup=r.group,this.text=i||o,!this.isGroup&&a){var s=a.getImageUrl;this.imageUrl=s?s(n):null}},t.prototype.refresh=function(){return!1},t=At([e.Component({selector:"dato-grid-avatar-cell",template:'<div *ngIf="!isGroup" class="height-100 d-flex items-center primary-500-color avatar-container">\n <div *ngIf="imageUrl" [style.background-image]="\'url(\' + imageUrl + \')\'" class="avatar text-center mr-12"></div>\n <div class="ellipsis">{{text}}</div>\n</div>\n\n<span *ngIf="isGroup">{{text}}</span>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".avatar-container .avatar{width:34px;height:34px;border-radius:50%;background-size:contain;flex:0 0 auto}"]})],t)}(),Sl=function(){function t(){}return t.prototype.agInit=function(t){var e=t.colDef.customCellConfig;if(this.itemsCount=t.value,this.isGroup=t.node.group,e){var n=e.getItems,o=e.icon;this.tooltipItems=n&&t.data?n(t.data):[],this.icon=o}},t.prototype.refresh=function(){return!1},t=At([e.Component({selector:"dato-grid-items-count-cell",template:'<div *ngIf="!isGroup else group" class="d-flex">\n <div *ngIf="itemsCount >= 0" class="d-flex items-center primary-500-color accent-500-color:h" [datoTooltipV2]="tplTooltip"\n placement="right" variation="information" [tooltipCheckInView]="false" [datoTooltipDisabled]="!tooltipItems">\n <dato-icon *ngIf="icon" [icon]="icon" width="18px" height="18px" class="mr-10"></dato-icon>\n <span>{{ itemsCount }}</span>\n </div>\n</div>\n\n<ng-template #group>\n {{itemsCount}}\n</ng-template>\n\n<ng-template #tplTooltip>\n <div class="d-flex-column">\n <span *ngFor="let item of tooltipItems">{{ item }}</span>\n </div>\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush})],t)}(),xl=[Wa,Za,Ja,Ya,ba,Na,Va,La,Ga,pa,Aa,ts,$a,Al,qa,Ka,Wr,$r,Qa,yl],Ol=[vl,bl,Sl,Cl,wl],Dl=function(){function t(){}return t=At([e.NgModule({imports:[s.CommonModule,o.ReactiveFormsModule,$n,Eo,Be,se,wo,vo,is,gi,zi,Ki,bo,ps,gs,Cs,Ds,Ys,Ui,qs,st.AgGridModule,il,ml,Mi],entryComponents:[ba,Na,pa,Aa,qa,Ka,Wr,$r,Qa,Ol],declarations:[xl,Ol],exports:[xl,Ol]})],t)}(),El={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Il})),multi:!0},Il=function(t){function o(e,n,o){var i=t.call(this)||this;return i.renderer=e,i.cdr=n,i.host=o,i.id=Math.random().toString(),i}return ft(o,t),Object.defineProperty(o.prototype,"inputElement",{get:function(){return this.host.nativeElement.querySelector("input")},enumerable:!0,configurable:!0}),o.prototype.ngOnInit=function(){var t=this;n.fromEvent(this.inputElement,"change").pipe(r.pluck("target","value"),i.untilDestroyed(this)).subscribe((function(e){t.onChange(e),t.cdr.markForCheck()}))},o.prototype.writeValue=function(t){this.setInputValue(t===this.value)},o.prototype.setDisabledState=function(t){this.renderer.setProperty(this.inputElement,"disabled",t)},o.prototype.ngOnDestroy=function(){},o.prototype.setInputValue=function(t){this.renderer.setProperty(this.inputElement,"checked",t)},o.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ChangeDetectorRef},{type:e.ElementRef}]},At([e.Input(),bt("design:type",String)],o.prototype,"name",void 0),At([e.Input(),bt("design:type",Object)],o.prototype,"value",void 0),o=At([e.Component({selector:"dato-radio",template:'<div class="dato-radio">\n <input [id]="id" [name]="name" type="radio" [value]="value">\n <label [attr.for]="id" class="radio-label d-flex items-start"><span class="dato-simple"><ng-content></ng-content></span></label>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,exportAs:"datoRadio",providers:[El],styles:[":host{display:block}.dato-radio{margin:.5rem;display:inline-block}.dato-radio label{cursor:pointer}.dato-radio input[type=radio]{position:absolute;opacity:0;min-width:10px!important;max-width:10px!important}.dato-radio input[type=radio]+.radio-label:before{content:'';border-radius:100%;display:inline-block;box-sizing:border-box;min-width:16px;width:16px;height:16px;position:relative;top:1px;margin-right:10px;vertical-align:middle;cursor:pointer;text-align:center;transition:250ms}.dato-radio input[type=radio]:focus+.radio-label:before{outline:0}.dato-radio input[type=radio]+.radio-label:empty:before{margin-right:0}"]}),bt("design:paramtypes",[e.Renderer2,e.ChangeDetectorRef,e.ElementRef])],o)}(Ot),Rl=[Il],Tl=function(){function t(){}return t=At([e.NgModule({imports:[s.CommonModule,Oo],declarations:[Rl],exports:[Rl]})],t)}();function Pl(){return{duration:4e3,dismissible:!1}}
414
414
  /**
415
415
  * @license
416
416
  * Copyright Datorama. All Rights Reserved.
@@ -611,7 +611,7 @@ function vc(t,e){return t.type.lastIndexOf(e+".xml")>-1}function bc(t,e,n){this.
611
611
  * Use of this source code is governed by an Apache License 2.0 license that can be
612
612
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
613
613
  */
614
- function cp(t){var e=t.collection,n=t.value,o=t.labelKey,i=(n||"").toLocaleLowerCase();return(e||[]).filter((function(t){return(t&&t[o]||"").toLocaleLowerCase().includes(i)}))}function pp(t){var e=t.collection,n=t.value,o=t.childrenKey,i=t.labelKey;return e.map((function(t){var e;return mt(mt({},t),((e={})[o]=cp({collection:t[o],value:n,labelKey:i}),e))})).filter((function(t){return t[o].length>0}))}function dp(t){var e=t.control,o=t.debounceTime,i=t.mapFn;return n.defer((function(){return e.valueChanges.pipe(Ve(o),r.startWith(e.value||""),r.map(i))}))}window.coreVersion="22.13.0",t.APP_TRANSLATE=jn,t.AceService=Dc,t.BaseCustomControl=Ot,t.CUSTOM_RANGE_ID="CUSTOM",t.ContentRef=na,t.CustomHeaderControllerService=va,t.DATE_PICKER_CONFIG=vn,t.DATE_PICKER_POPOVER_ID="datePicker",t.DATO_CORE_LOGGER=Fa,t.DATO_FORM_ERRORS=As,t.DATO_GRID_STORAGE_API=Hr,t.DEFAULT_FORMAT="LLL d, yyyy",t.DEFAULT_GRID_SEARCH_DEBOUNCE_TIME=Ea,t.DatePickerConfig=An,t.DatePickerMonthComponent=Ts,t.DatoAccordionComponent=ui,t.DatoAccordionContentComponent=si,t.DatoAccordionGroupComponent=ci,t.DatoAccordionHeaderComponent=li,t.DatoAccordionModule=gi,t.DatoAceDirective=Ec,t.DatoAceDraggableDirective=Ic,t.DatoAceModule=Tc,t.DatoAutoCompleteContentDirective=_c,t.DatoAutoFocusDirective=In,t.DatoAutocompleteComponent=Fc,t.DatoAutocompleteDirective=Nc,t.DatoAutocompleteModule=Lc,t.DatoBreadcrumbsComponent=Vc,t.DatoBreadcrumbsModule=zc,t.DatoButtonComponent=ae,t.DatoButtonGroupComponent=Jc,t.DatoButtonGroupModule=Zc,t.DatoButtonModule=se,t.DatoCamelCasePipe=io,t.DatoCarouselComponent=Wl,t.DatoCarouselItemDirective=Hl,t.DatoCarouselItemElement=Yl,t.DatoCarouselModule=ql,t.DatoCheckboxComponent=ji,t.DatoCheckboxModule=Mi,t.DatoClipboardDirective=zn,t.DatoColorDirective=wn,t.DatoConfirmationDialogComponent=Zo,t.DatoControlErrorComponent=fs,t.DatoControlErrorContainerDirective=ms,t.DatoControlErrorsDirective=vs,t.DatoCoreError=Ro,t.DatoCoreModule=ap,t.DatoCustomHeaderTemplateComponent=Va,t.DatoCustomHeaderTemplateDirective=La,t.DatoCustomMoreMenuTemplateDirective=Ga,t.DatoDatePickerContainerComponent=ks,t.DatoDatePickerModule=Ys,t.DatoDatePickerRangeComponent=Bs,t.DatoDatePickerSingleComponent=Qs,t.DatoDialog=$o,t.DatoDialogCloseDirective=ll,t.DatoDialogComponent=Wo,t.DatoDialogContentComponent=al,t.DatoDialogDismissDirective=ul,t.DatoDialogFooterComponent=sl,t.DatoDialogHeaderComponent=rl,t.DatoDialogModule=gl,t.DatoDialogRef=Yo,t.DatoDirectivesModule=$n,t.DatoDisableControlDirective=Gn,t.DatoDraggableDirective=En,t.DatoDynamicContentComponent=pl,t.DatoDynamicContentModule=dl,t.DatoEditableHeaderComponent=Nl,t.DatoEditableHeaderModule=Ll,t.DatoFileInputComponent=Yc,t.DatoFileInputDefaultComponent=Wc,t.DatoFileInputModule=qc,t.DatoFontDirective=So,t.DatoFontIconComponent=Le,t.DatoFontIconModule=Ge,t.DatoFormSubmitDirective=ys,t.DatoFormValidationModule=Cs,t.DatoGrid=lr,t.DatoGridAPI=Io,t.DatoGridAvatarCellComponent=wl,t.DatoGridColumnDisplayMenuComponent=Ka,t.DatoGridColumnHeaderComponent=ba,t.DatoGridColumnHeaderMoreMenuComponent=pa,t.DatoGridComponent=Fo,t.DatoGridControllerComponent=Ya,t.DatoGridDateFilterOptions=wr,t.DatoGridFilterComponent=Aa,t.DatoGridFilterOptionsMap=Or,t.DatoGridGroupsMenuComponent=qa,t.DatoGridHeaderComponent=No,t.DatoGridHeaderV2Component=Ja,t.DatoGridInitialsCellComponent=Cl,t.DatoGridItemsCellComponent=bl,t.DatoGridModule=nr,t.DatoGridNumberFilterOptions=xr,t.DatoGridOnHoverComponent=Qa,t.DatoGridPaginationComponent=Mo,t.DatoGridPaginationV2Component=Za,t.DatoGridStatusCellComponent=vl,t.DatoGridStringFilterOptions=Sr,t.DatoGridToolbarComponent=ii,t.DatoGridToolbarItemDirective=Lo,t.DatoGridToolbarItemElementDirective=Go,t.DatoGridV2Component=Wa,t.DatoGridV2LoaderComponent=Wr,t.DatoGridV2Module=Dl,t.DatoGridV2NoDataOverlayComponent=$r,t.DatoGridV2ToolbarButtonComponent=$a,t.DatoGridV2ToolbarComponent=ts,t.DatoGroupComponent=Ai,t.DatoHighlightPipe=eo,t.DatoHotkeys=Ua,t.DatoHotkeysDirective=fl,t.DatoHotkeysHelpComponent=Ha,t.DatoHotkeysModule=ml,t.DatoIconButtonComponent=Do,t.DatoIconButtonModule=Eo,t.DatoIconComponent=Ne,t.DatoIconModule=Be,t.DatoInfiniteScrollComponent=Qc,t.DatoInfiniteScrollModule=Uc,t.DatoInputComponent=Cn,t.DatoInputModule=bo,t.DatoInputNumberComponent=Ss,t.DatoInputNumberDirective=ws,t.DatoInputNumberModule=Ds,t.DatoKebabCasePipe=oo,t.DatoLinkButtonComponent=Co,t.DatoLinkButtonModule=wo,t.DatoListComponent=Zi,t.DatoListModule=tr,t.DatoListNoDataComponent=el,t.DatoListNoResultComponent=tl,t.DatoListV2Component=$s,t.DatoListV2Module=il,t.DatoLoaderComponent=Ws,t.DatoLoadersModule=qs,t.DatoMenuComponent=as,t.DatoMenuContentDirective=rs,t.DatoMenuItemDirective=ls,t.DatoMenuModule=ps,t.DatoMenuTriggerForDirective=ss,t.DatoMultiOptionComponent=Fi,t.DatoMultiOptionV2Component=Li,t.DatoOperatorTogglerComponent=us,t.DatoOperatorTogglerModule=gs,t.DatoOptionComponent=vi,t.DatoOptionV2Component=Bi,t.DatoOptionsModule=zi,t.DatoOriginDirective=Dn,t.DatoOverlay=Pn,t.DatoPageLoaderComponent=Ks,t.DatoPanel=hc,t.DatoPanelComponent=pc,t.DatoPanelContentComponent=fc,t.DatoPanelFooterComponent=mc,t.DatoPanelHeaderComponent=gc,t.DatoPanelInternalConfig=dc,t.DatoPanelModule=Ac,t.DatoPanelRef=uc,t.DatoPillsComponent=$c,t.DatoPillsModule=ep,t.DatoPipesModule=vo,t.DatoPopover=la,t.DatoPopoverComponent=ra,t.DatoPopoverModule=is,t.DatoProgressBarComponent=np,t.DatoProgressBarModule=ip,t.DatoRadioComponent=Il,t.DatoRadioModule=Tl,t.DatoRichTextDirective=Vl,t.DatoRichTextModule=Ql,t.DatoSearchResultsGroupSortPipe=po,t.DatoSearchResultsSortPipe=ho,t.DatoSearchableContainerComponent=ri,t.DatoSearchableDirective=ai,t.DatoSearchableHighlightDirective=kc,t.DatoSearchableModule=Mc,t.DatoSelectActiveDirective=bi,t.DatoSelectComponent=Pi,t.DatoSelectEmptyComponent=Ni,t.DatoSelectModule=Ki,t.DatoShortNumberPipe=yo,t.DatoSliderComponent=Et,t.DatoSliderModule=Rt,t.DatoSnackbar=_l,t.DatoSnackbarComponent=kl,t.DatoSnackbarModule=jl,t.DatoSortableComponent=di,t.DatoSortableHandleDirective=Qi,t.DatoSortableModule=Ui,t.DatoStaticImageSrcDirective=Hn,t.DatoStaticImagesSrcModule=Un,t.DatoSubscribeContext=Bn,t.DatoSubscribeDirective=Ln,t.DatoTab=$l,t.DatoTabContent=Zl,t.DatoTabTitle=Xl,t.DatoTabsModule=nc,t.DatoTabset=tc,t.DatoTemplatePortal=kn,t.DatoTextModule=Oo,t.DatoThemesModule=On,t.DatoToast=cc,t.DatoToastComponent=ic,t.DatoToastModule=rc,t.DatoTogglerComponent=Gs,t.DatoTogglerModule=zs,t.DatoTooltipDirective=Nn,t.DatoTooltipV2Directive=Xn,t.DatoTrackByPropPipe=fo,t.DatoTranslateService=Mn,t.DatoTreePipe=mo,t.DatoTriggerMulti=_i,t.DatoTriggerSingle=Ri,t.DialogConfig=Ko,t.EventModifiersPlugin=Gc,t.GridToolbarService=oi,t.ISO_FORMAT="yyyy-LL-dd",t.IconRegistry=_e,t.POPPER_BOUNDARY=Ps,t.PaletteDirective=Sn,t.PopoverCloseDirective=es,t.PopoverContentDirective=ns,t.PopoverRef=aa,t.ROOT_NODE_ID="ROOT_NODE_ID",t.SELECT_MAX_HEIGHT=120,t.SnackbarRef=Ml,t.Store=Js,t.SvgRegistry=Fe,t.ToolbarConfirmation=ei,t.ToolbarDeleteConfirmation=ni,t.ToolbarHandler=ti,t.TranslatePipe=no,t._valueChanges=dp,t.a=function(t,e){return void 0===e&&(e=1),t.filter((function(t,n){return n>=e}))},t.addClass=Ht,t.addJSObjectCompletor=xc,t.allowedFileTypes=function(t){return function(e){var n=e.value;if(n)for(var o=n instanceof FileList?n:[n],i=0,r=o.length;i<r;i++){var a=o[i].name.split(".").pop();if(!1===t.includes(a))return{invalidFileType:{extension:a}}}return null}},t.alphabeticalGroupSort=co,t.alphabeticalSort=lo,t.appendChild=qt,t.appendScript=Zt,t.appendStyle=$t,t.appendToBody=Xt,t.assertString=function(t,e){if("string"!=typeof t)throw new Ro(e+" expecting string but got "+typeof t)},t.camelCase=De,t.capitalize=Oe,t.cloneDeep=function(t){return N(t)},t.closest=ee,t.coerceArray=me,t.coerceElement=function(t){return t instanceof e.ElementRef?t.nativeElement:t},t.compareWith=ao,t.compose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}},t.convertFromTreeData=_a,t.convertToTreeData=Ma,t.copyToClipboard=Vn,t.createComponent=ta,t.createElement=Kt,t.createGUID=Ie,t.createHTMLCompletor=Sc,t.curry=Ae,t.dateCompare=je,t.daysOfTheMonth=Rs,t.debounce=function(t,e,n){return D(t,e,n)},t.declarations=hl,t.deepEqual=function(t,e,n){return void 0===n&&(n={}),L(t,e,n)},t.deepmerge=Zr,t.defaultActions=ca,t.defaultConfig=Pl,t.defaultEditableColumnRenderer=function(t){return t&&t.value?'<div class="value-wrapper ellipsis">'+t.value+"</div>":null},t.defaultGridOptions=Da,t.defaultGridTreeLabel=Ia,t.defaultOptionsDisplayLimit=10,t.defaultTreeOptions=Sa,t.dialogSizePreset=Qo,t.diff=we,t.difference=le,t.differenceBy=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return h.apply(void 0,St(t))},t.dimensionsChanges=qn,t.directives=xn,t.drop=function(t,e){return void 0===e&&(e=1),t.filter((function(t,n){return n>=e}))},t.editableCellRendererWithSearchHighlight=Ur,t.escape=xe,t.escapeRegExp=function(t){return Q(t)},t.filter=function(t,e){return x(t,e)},t.filterByControlValue=function(t,e,n){var o=void 0===n?{}:n,i=o.labelKey,r=void 0===i?"label":i,a=o.debounceTime;return dp({control:e,debounceTime:void 0===a?300:a,mapFn:function(e){return cp({collection:t,value:e,labelKey:r})}})},t.filterByTerm=cp,t.filterDialogDismissed=function(){return oc(t.DialogResultStatus.DISMISSED)},t.filterDialogSuccess=function(){return oc(t.DialogResultStatus.SUCCESS)},t.filterGroupByControlValue=function(t,e,n){var o=void 0===n?{}:n,i=o.labelKey,r=void 0===i?"label":i,a=o.childrenKey,s=void 0===a?"children":a,l=o.debounceTime;return dp({control:e,debounceTime:void 0===l?300:l,mapFn:function(e){return pp({collection:t,labelKey:r,childrenKey:s,value:e})}})},t.filterGroupByTerm=pp,t.filterKey=Ei,t.find=function(t,e,n){return A(t,e,n)},t.findIndex=ce,t.findKey=function(t,e){return O(t,e)},t.fixNgLeaks=function(){o.FormControlDirective.prototype.ngOnDestroy=function(){this.control._onChange=[],this.valueAccessor=null},o.FormControlName.prototype.ngOnDestroy=function(){this.control._onChange=[],this.valueAccessor=null}},t.forEach=function(t,e){return v(t,e)},t.formatKeys=ha,t.generateMonths=_s,t.get=function(t,e,n){return T(t,e,n)},t.getAttr=zt,t.getCustomRange=an,t.getDateISOString=ln,t.getDefaultConfirmationOptions=Jo,t.getDefaultOptions=Vo,t.getDefaultsToastOptions=sc,t.getElementCoords=te,t.getFunctionName=ve,t.getGridConfiguration=ir,t.getGridModel=sr,t.getInitials=Re,t.getLocalizedFormat=cn,t.getMultiTemplate=fi,t.getOptionTemplate=mi,t.getPopperDefaults=function(t){return{placement:t.placement,modifiers:{keepTogether:{enabled:!0},hide:{enabled:!1},preventOverflow:{enabled:!1}}}},t.getUTCDate=sn,t.getVisibleActions=kr,t.gridTreeFilePathKey=Ra,t.groupBy=function(t,e){return S(t,e)},t.groupSortOrder=ro,t.has=function(t,e){return P(t,e)},t.inView=Wn,t.intersection=
614
+ function cp(t){var e=t.collection,n=t.value,o=t.labelKey,i=(n||"").toLocaleLowerCase();return(e||[]).filter((function(t){return(t&&t[o]||"").toLocaleLowerCase().includes(i)}))}function pp(t){var e=t.collection,n=t.value,o=t.childrenKey,i=t.labelKey;return e.map((function(t){var e;return mt(mt({},t),((e={})[o]=cp({collection:t[o],value:n,labelKey:i}),e))})).filter((function(t){return t[o].length>0}))}function dp(t){var e=t.control,o=t.debounceTime,i=t.mapFn;return n.defer((function(){return e.valueChanges.pipe(Ve(o),r.startWith(e.value||""),r.map(i))}))}window.coreVersion="22.13.0",t.APP_TRANSLATE=jn,t.AceService=Dc,t.BaseCustomControl=Ot,t.CUSTOM_RANGE_ID="CUSTOM",t.ContentRef=na,t.CustomHeaderControllerService=va,t.DATE_PICKER_CONFIG=vn,t.DATE_PICKER_POPOVER_ID="datePicker",t.DATO_CORE_LOGGER=Fa,t.DATO_FORM_ERRORS=As,t.DATO_GRID_STORAGE_API=Hr,t.DEFAULT_FORMAT="LLL d, yyyy",t.DEFAULT_GRID_SEARCH_DEBOUNCE_TIME=Ea,t.DatePickerConfig=An,t.DatePickerMonthComponent=Ts,t.DatoAccordionComponent=ui,t.DatoAccordionContentComponent=si,t.DatoAccordionGroupComponent=ci,t.DatoAccordionHeaderComponent=li,t.DatoAccordionModule=gi,t.DatoAceDirective=Ec,t.DatoAceDraggableDirective=Ic,t.DatoAceModule=Tc,t.DatoAutoCompleteContentDirective=_c,t.DatoAutoFocusDirective=In,t.DatoAutocompleteComponent=Fc,t.DatoAutocompleteDirective=Nc,t.DatoAutocompleteModule=Lc,t.DatoBreadcrumbsComponent=Vc,t.DatoBreadcrumbsModule=zc,t.DatoButtonComponent=ae,t.DatoButtonGroupComponent=Jc,t.DatoButtonGroupModule=Zc,t.DatoButtonModule=se,t.DatoCamelCasePipe=io,t.DatoCarouselComponent=Wl,t.DatoCarouselItemDirective=Hl,t.DatoCarouselItemElement=Yl,t.DatoCarouselModule=ql,t.DatoCheckboxComponent=ji,t.DatoCheckboxModule=Mi,t.DatoClipboardDirective=zn,t.DatoColorDirective=wn,t.DatoConfirmationDialogComponent=Zo,t.DatoControlErrorComponent=fs,t.DatoControlErrorContainerDirective=ms,t.DatoControlErrorsDirective=vs,t.DatoCoreError=Ro,t.DatoCoreModule=ap,t.DatoCustomHeaderTemplateComponent=Va,t.DatoCustomHeaderTemplateDirective=La,t.DatoCustomMoreMenuTemplateDirective=Ga,t.DatoDatePickerContainerComponent=ks,t.DatoDatePickerModule=Ys,t.DatoDatePickerRangeComponent=Bs,t.DatoDatePickerSingleComponent=Qs,t.DatoDialog=$o,t.DatoDialogCloseDirective=ll,t.DatoDialogComponent=Wo,t.DatoDialogContentComponent=al,t.DatoDialogDismissDirective=ul,t.DatoDialogFooterComponent=sl,t.DatoDialogHeaderComponent=rl,t.DatoDialogModule=gl,t.DatoDialogRef=Yo,t.DatoDirectivesModule=$n,t.DatoDisableControlDirective=Gn,t.DatoDraggableDirective=En,t.DatoDynamicContentComponent=pl,t.DatoDynamicContentModule=dl,t.DatoEditableHeaderComponent=Nl,t.DatoEditableHeaderModule=Ll,t.DatoFileInputComponent=Yc,t.DatoFileInputDefaultComponent=Wc,t.DatoFileInputModule=qc,t.DatoFontDirective=So,t.DatoFontIconComponent=Le,t.DatoFontIconModule=Ge,t.DatoFormSubmitDirective=ys,t.DatoFormValidationModule=Cs,t.DatoGrid=lr,t.DatoGridAPI=Io,t.DatoGridAvatarCellComponent=wl,t.DatoGridColumnDisplayMenuComponent=Ka,t.DatoGridColumnHeaderComponent=ba,t.DatoGridColumnHeaderMoreMenuComponent=pa,t.DatoGridComponent=Fo,t.DatoGridControllerComponent=Ya,t.DatoGridDateFilterOptions=wr,t.DatoGridFilterComponent=Aa,t.DatoGridFilterOptionsMap=Or,t.DatoGridGroupsMenuComponent=qa,t.DatoGridHeaderComponent=No,t.DatoGridHeaderV2Component=Ja,t.DatoGridInitialsCellComponent=Cl,t.DatoGridItemsCellComponent=bl,t.DatoGridModule=nr,t.DatoGridNumberFilterOptions=xr,t.DatoGridOnHoverComponent=Qa,t.DatoGridPaginationComponent=Mo,t.DatoGridPaginationV2Component=Za,t.DatoGridStatusCellComponent=vl,t.DatoGridStringFilterOptions=Sr,t.DatoGridToolbarComponent=ii,t.DatoGridToolbarItemDirective=Lo,t.DatoGridToolbarItemElementDirective=Go,t.DatoGridV2Component=Wa,t.DatoGridV2LoaderComponent=Wr,t.DatoGridV2Module=Dl,t.DatoGridV2NoDataOverlayComponent=$r,t.DatoGridV2ToolbarButtonComponent=$a,t.DatoGridV2ToolbarComponent=ts,t.DatoGroupComponent=Ai,t.DatoHighlightPipe=eo,t.DatoHotkeys=Ua,t.DatoHotkeysDirective=fl,t.DatoHotkeysHelpComponent=Ha,t.DatoHotkeysModule=ml,t.DatoIconButtonComponent=Do,t.DatoIconButtonModule=Eo,t.DatoIconComponent=Ne,t.DatoIconModule=Be,t.DatoInfiniteScrollComponent=Qc,t.DatoInfiniteScrollModule=Uc,t.DatoInputComponent=Cn,t.DatoInputModule=bo,t.DatoInputNumberComponent=Ss,t.DatoInputNumberDirective=ws,t.DatoInputNumberModule=Ds,t.DatoKebabCasePipe=oo,t.DatoLinkButtonComponent=Co,t.DatoLinkButtonModule=wo,t.DatoListComponent=Zi,t.DatoListModule=tr,t.DatoListNoDataComponent=el,t.DatoListNoResultComponent=tl,t.DatoListV2Component=$s,t.DatoListV2Module=il,t.DatoLoaderComponent=Ws,t.DatoLoadersModule=qs,t.DatoMenuComponent=as,t.DatoMenuContentDirective=rs,t.DatoMenuItemDirective=ls,t.DatoMenuModule=ps,t.DatoMenuTriggerForDirective=ss,t.DatoMultiOptionComponent=Fi,t.DatoMultiOptionV2Component=Li,t.DatoOperatorTogglerComponent=us,t.DatoOperatorTogglerModule=gs,t.DatoOptionComponent=vi,t.DatoOptionV2Component=Bi,t.DatoOptionsModule=zi,t.DatoOriginDirective=Dn,t.DatoOverlay=Pn,t.DatoPageLoaderComponent=Ks,t.DatoPanel=hc,t.DatoPanelComponent=pc,t.DatoPanelContentComponent=fc,t.DatoPanelFooterComponent=mc,t.DatoPanelHeaderComponent=gc,t.DatoPanelInternalConfig=dc,t.DatoPanelModule=Ac,t.DatoPanelRef=uc,t.DatoPillsComponent=$c,t.DatoPillsModule=ep,t.DatoPipesModule=vo,t.DatoPopover=la,t.DatoPopoverComponent=ra,t.DatoPopoverModule=is,t.DatoProgressBarComponent=np,t.DatoProgressBarModule=ip,t.DatoRadioComponent=Il,t.DatoRadioModule=Tl,t.DatoRichTextDirective=Vl,t.DatoRichTextModule=Ql,t.DatoSearchResultsGroupSortPipe=po,t.DatoSearchResultsSortPipe=ho,t.DatoSearchableContainerComponent=ri,t.DatoSearchableDirective=ai,t.DatoSearchableHighlightDirective=kc,t.DatoSearchableModule=Mc,t.DatoSelectActiveDirective=bi,t.DatoSelectComponent=Pi,t.DatoSelectEmptyComponent=Ni,t.DatoSelectModule=Ki,t.DatoShortNumberPipe=yo,t.DatoSliderComponent=Et,t.DatoSliderModule=Rt,t.DatoSnackbar=_l,t.DatoSnackbarComponent=kl,t.DatoSnackbarModule=jl,t.DatoSortableComponent=di,t.DatoSortableHandleDirective=Qi,t.DatoSortableModule=Ui,t.DatoStaticImageSrcDirective=Hn,t.DatoStaticImagesSrcModule=Un,t.DatoSubscribeContext=Bn,t.DatoSubscribeDirective=Ln,t.DatoTab=$l,t.DatoTabContent=Zl,t.DatoTabTitle=Xl,t.DatoTabsModule=nc,t.DatoTabset=tc,t.DatoTemplatePortal=kn,t.DatoTextModule=Oo,t.DatoThemesModule=On,t.DatoToast=cc,t.DatoToastComponent=ic,t.DatoToastModule=rc,t.DatoTogglerComponent=Gs,t.DatoTogglerModule=zs,t.DatoTooltipDirective=Nn,t.DatoTooltipV2Directive=Xn,t.DatoTrackByPropPipe=fo,t.DatoTranslateService=Mn,t.DatoTreePipe=mo,t.DatoTriggerMulti=_i,t.DatoTriggerSingle=Ri,t.DialogConfig=Ko,t.EventModifiersPlugin=Gc,t.GridToolbarService=oi,t.ISO_FORMAT="yyyy-LL-dd",t.IconRegistry=_e,t.POPPER_BOUNDARY=Ps,t.PaletteDirective=Sn,t.PopoverCloseDirective=es,t.PopoverContentDirective=ns,t.PopoverRef=aa,t.ROOT_NODE_ID="ROOT_NODE_ID",t.SELECT_MAX_HEIGHT=120,t.SnackbarRef=Ml,t.Store=Js,t.SvgRegistry=Fe,t.ToolbarConfirmation=ei,t.ToolbarDeleteConfirmation=ni,t.ToolbarHandler=ti,t.TranslatePipe=no,t._valueChanges=dp,t.a=function(t,e){return void 0===e&&(e=1),t.filter((function(t,n){return n>=e}))},t.addClass=Ht,t.addJSObjectCompletor=xc,t.allowedFileTypes=function(t){return function(e){var n=e.value;if(n)for(var o=n instanceof FileList?n:[n],i=0,r=o.length;i<r;i++){var a=o[i].name.split(".").pop();if(!1===t.includes(a))return{invalidFileType:{extension:a}}}return null}},t.alphabeticalGroupSort=co,t.alphabeticalSort=lo,t.appendChild=qt,t.appendScript=Zt,t.appendStyle=$t,t.appendToBody=Xt,t.assertString=function(t,e){if("string"!=typeof t)throw new Ro(e+" expecting string but got "+typeof t)},t.camelCase=De,t.capitalize=Oe,t.cloneDeep=function(t){return N(t)},t.closest=ee,t.coerceArray=me,t.coerceElement=function(t){return t instanceof e.ElementRef?t.nativeElement:t},t.compareWith=ao,t.compose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}},t.convertFromTreeData=_a,t.convertToTreeData=Ma,t.createComponent=ta,t.createElement=Kt,t.createGUID=Ie,t.createHTMLCompletor=Sc,t.curry=Ae,t.dateCompare=je,t.daysOfTheMonth=Rs,t.debounce=function(t,e,n){return D(t,e,n)},t.declarations=hl,t.deepEqual=function(t,e,n){return void 0===n&&(n={}),L(t,e,n)},t.deepmerge=Zr,t.defaultActions=ca,t.defaultConfig=Pl,t.defaultEditableColumnRenderer=function(t){return t&&t.value?'<div class="value-wrapper ellipsis">'+t.value+"</div>":null},t.defaultGridOptions=Da,t.defaultGridTreeLabel=Ia,t.defaultOptionsDisplayLimit=10,t.defaultTreeOptions=Sa,t.dialogSizePreset=Qo,t.diff=we,t.difference=le,t.differenceBy=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return h.apply(void 0,St(t))},t.dimensionsChanges=qn,t.directives=xn,t.drop=function(t,e){return void 0===e&&(e=1),t.filter((function(t,n){return n>=e}))},t.editableCellRendererWithSearchHighlight=Ur,t.escape=xe,t.escapeRegExp=function(t){return Q(t)},t.filter=function(t,e){return x(t,e)},t.filterByControlValue=function(t,e,n){var o=void 0===n?{}:n,i=o.labelKey,r=void 0===i?"label":i,a=o.debounceTime;return dp({control:e,debounceTime:void 0===a?300:a,mapFn:function(e){return cp({collection:t,value:e,labelKey:r})}})},t.filterByTerm=cp,t.filterDialogDismissed=function(){return oc(t.DialogResultStatus.DISMISSED)},t.filterDialogSuccess=function(){return oc(t.DialogResultStatus.SUCCESS)},t.filterGroupByControlValue=function(t,e,n){var o=void 0===n?{}:n,i=o.labelKey,r=void 0===i?"label":i,a=o.childrenKey,s=void 0===a?"children":a,l=o.debounceTime;return dp({control:e,debounceTime:void 0===l?300:l,mapFn:function(e){return pp({collection:t,labelKey:r,childrenKey:s,value:e})}})},t.filterGroupByTerm=pp,t.filterKey=Ei,t.find=function(t,e,n){return A(t,e,n)},t.findIndex=ce,t.findKey=function(t,e){return O(t,e)},t.fixNgLeaks=function(){o.FormControlDirective.prototype.ngOnDestroy=function(){this.control._onChange=[],this.valueAccessor=null},o.FormControlName.prototype.ngOnDestroy=function(){this.control._onChange=[],this.valueAccessor=null}},t.forEach=function(t,e){return v(t,e)},t.formatKeys=ha,t.generateMonths=_s,t.get=function(t,e,n){return T(t,e,n)},t.getAttr=zt,t.getCustomRange=an,t.getDateISOString=ln,t.getDefaultConfirmationOptions=Jo,t.getDefaultOptions=Vo,t.getDefaultsToastOptions=sc,t.getElementCoords=te,t.getFunctionName=ve,t.getGridConfiguration=ir,t.getGridModel=sr,t.getInitials=Re,t.getLocalizedFormat=cn,t.getMultiTemplate=fi,t.getOptionTemplate=mi,t.getPopperDefaults=function(t){return{placement:t.placement,modifiers:{keepTogether:{enabled:!0},hide:{enabled:!1},preventOverflow:{enabled:!1}}}},t.getUTCDate=sn,t.getVisibleActions=kr,t.gridTreeFilePathKey=Ra,t.groupBy=function(t,e){return S(t,e)},t.groupSortOrder=ro,t.has=function(t,e){return P(t,e)},t.inView=Wn,t.intersection=
615
615
  /**
616
616
  * @license
617
617
  * Copyright Datorama. All Rights Reserved.
@@ -634,5 +634,5 @@ function(t,e,o){if(void 0===o&&(o=1),!jt(e)||!jt(o))throw"period/initialDelay sh
634
634
  *
635
635
  * Use of this source code is governed by an Apache License 2.0 license that can be
636
636
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
637
- */,t.prependChild=Jt,t.publicApi=xo,t.query=Bt,t.queryAll=Lt,t.random=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=1),!jt(t))throw"the lower bound is not a number";if(!jt(e))throw"the upper bound is not a number";if(t>e)throw"the upper bound should be grater than the lower bound";return 0===t&&1===e?Math.random():t+Math.floor(Math.random()*(e-t+1))},t.rawDiff=function(t,e){return JSON.stringify(t)!==JSON.stringify(e)},t.reject=function(t,e){return w(t,e)},t.relativeDateTypes=yn,t.removeClass=Yt,t.resolveRange=Fs,t.round=function(t,e){if(!jt(t))throw"value to round is not a number";if(e&&!jt(e))throw"precision value is not a number";var n=e?Math.pow(10,e):Math.pow(10,2);return Math.round(t*n)/n},t.searchHighlightCellRenderer=Yr,t.searchResultsGroupSort=so,t.searchResultsSort=uo,t.setAttr=Vt,t.setAttribute=Wt,t.setDimensions=oe,t.setGridConfiguration=function(t){or=mt(mt({},or),t)},t.setGridModel=ar,t.setMaxDimensions=function(t,e,n){oe(t,e,n,"max-")},t.setMinDimensions=ie,t.setStyle=Gt,t.setStyles=Qt,t.shortNumber=be,t.size=ye,t.sortBy=function(t,e){return y(t,e)},t.stubs=lp,t.supportedLocales=nn,t.tapLog=function(t){return r.tap((function(e){return console.log("%c["+t+": Next]","color: #4CAF50;",e)}),(function(e){return console.log("%c"+t+": Error]","color: #F44336;",e)}),(function(){return console.log("%c["+t+": Complete]","color: #2196F3;")}))},t.tapOnce=Xa,t.throttle=function(t,e,n){return E(t,e,n)},t.toBoolean=ge,t.toFormData=function(t,e){var n,o;void 0===e&&(e={});var i=new FormData;try{for(var r=Ct(Object.keys(t)),a=r.next();!a.done;a=r.next()){var s=a.value,l=t[s];if(e.multiFileKey&&l instanceof FileList)for(var c=0,p=l.length;c<p;c++)i.append(s+"[]",l[c]);else i.append(s,l)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return i},t.toNumber=fe,t.toResponseBody=function(){return n.pipe(r.filter((function(t){return t.type===ht.HttpEventType.Response})),r.map((function(t){return t.body})))},t.toString=function(t){return t?t.toString():""},t.toggleClass=Ut,t.toolbarActionToContextAction=Lr,t.tryParsePivotValue=ur,t.unescape=function(t){return z(t)},t.union=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return d.apply(void 0,St(t))},t.uniq=de,t.uniqBy=ue,t.uploadProgress=function(t){return r.tap((function(e){e.type===ht.HttpEventType.UploadProgress&&t(Math.round(100*e.loaded/e.total))}))},t.validBase64Image=Pe,t.validUrl=Te,t.validateCondition=Tr,t.validateDate=Ms,t.validateDateCondition=Rr,t.validateFilter=Pr,t.validateNumberCondition=Ir,t.validateRange=js,t.validateStringCondition=Er,t.values=Ce,t.workerMap=function(t){return function(e){return new n.Observable((function(n){var o=function(t){var e=new Blob(["self.cb = "+t+";self.onmessage = function (e) { self.postMessage(self.cb(e.data)) }"],{type:"text/javascript"}),n=URL.createObjectURL(e);return new Worker(n)}(t);return o.onmessage=function(t){n.next(t.data),o.terminate()},o.onerror=function(t){n.error(t),o.terminate()},e.subscribe({next:function(t){o.postMessage(t)}})}))}},t.zoneStable=Rn,t.ɵ0=wa,t.ɵ1=xa,t.ɵ2=mn,t.ɵb=Qn,t.ɵc=jo,t.ɵd=Tn,t.ɵe=Ar,t.ɵf=cr,t.ɵg=Ba,t.ɵh=Hs,t.ɵi=Xs,t.ɵj=nl,t.ɵk=Na,t.ɵl=Sl,t.ɵm=Al,t.ɵn=yl,Object.defineProperty(t,"__esModule",{value:!0})}));
637
+ */,t.prependChild=Jt,t.publicApi=xo,t.query=Bt,t.queryAll=Lt,t.random=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=1),!jt(t))throw"the lower bound is not a number";if(!jt(e))throw"the upper bound is not a number";if(t>e)throw"the upper bound should be grater than the lower bound";return 0===t&&1===e?Math.random():t+Math.floor(Math.random()*(e-t+1))},t.rawDiff=function(t,e){return JSON.stringify(t)!==JSON.stringify(e)},t.readFromClipboard=function(){return navigator.clipboard.readText()},t.reject=function(t,e){return w(t,e)},t.relativeDateTypes=yn,t.removeClass=Yt,t.resolveRange=Fs,t.round=function(t,e){if(!jt(t))throw"value to round is not a number";if(e&&!jt(e))throw"precision value is not a number";var n=e?Math.pow(10,e):Math.pow(10,2);return Math.round(t*n)/n},t.searchHighlightCellRenderer=Yr,t.searchResultsGroupSort=so,t.searchResultsSort=uo,t.setAttr=Vt,t.setAttribute=Wt,t.setDimensions=oe,t.setGridConfiguration=function(t){or=mt(mt({},or),t)},t.setGridModel=ar,t.setMaxDimensions=function(t,e,n){oe(t,e,n,"max-")},t.setMinDimensions=ie,t.setStyle=Gt,t.setStyles=Qt,t.shortNumber=be,t.size=ye,t.sortBy=function(t,e){return y(t,e)},t.stubs=lp,t.supportedLocales=nn,t.tapLog=function(t){return r.tap((function(e){return console.log("%c["+t+": Next]","color: #4CAF50;",e)}),(function(e){return console.log("%c"+t+": Error]","color: #F44336;",e)}),(function(){return console.log("%c["+t+": Complete]","color: #2196F3;")}))},t.tapOnce=Xa,t.throttle=function(t,e,n){return E(t,e,n)},t.toBoolean=ge,t.toFormData=function(t,e){var n,o;void 0===e&&(e={});var i=new FormData;try{for(var r=Ct(Object.keys(t)),a=r.next();!a.done;a=r.next()){var s=a.value,l=t[s];if(e.multiFileKey&&l instanceof FileList)for(var c=0,p=l.length;c<p;c++)i.append(s+"[]",l[c]);else i.append(s,l)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return i},t.toNumber=fe,t.toResponseBody=function(){return n.pipe(r.filter((function(t){return t.type===ht.HttpEventType.Response})),r.map((function(t){return t.body})))},t.toString=function(t){return t?t.toString():""},t.toggleClass=Ut,t.toolbarActionToContextAction=Lr,t.tryParsePivotValue=ur,t.unescape=function(t){return z(t)},t.union=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return d.apply(void 0,St(t))},t.uniq=de,t.uniqBy=ue,t.uploadProgress=function(t){return r.tap((function(e){e.type===ht.HttpEventType.UploadProgress&&t(Math.round(100*e.loaded/e.total))}))},t.validBase64Image=Pe,t.validUrl=Te,t.validateCondition=Tr,t.validateDate=Ms,t.validateDateCondition=Rr,t.validateFilter=Pr,t.validateNumberCondition=Ir,t.validateRange=js,t.validateStringCondition=Er,t.values=Ce,t.workerMap=function(t){return function(e){return new n.Observable((function(n){var o=function(t){var e=new Blob(["self.cb = "+t+";self.onmessage = function (e) { self.postMessage(self.cb(e.data)) }"],{type:"text/javascript"}),n=URL.createObjectURL(e);return new Worker(n)}(t);return o.onmessage=function(t){n.next(t.data),o.terminate()},o.onerror=function(t){n.error(t),o.terminate()},e.subscribe({next:function(t){o.postMessage(t)}})}))}},t.writeToClipboard=Vn,t.zoneStable=Rn,t.ɵ0=wa,t.ɵ1=xa,t.ɵ2=mn,t.ɵb=Qn,t.ɵc=jo,t.ɵd=Tn,t.ɵe=Ar,t.ɵf=cr,t.ɵg=Ba,t.ɵh=Hs,t.ɵi=Xs,t.ɵj=nl,t.ɵk=Na,t.ɵl=Sl,t.ɵm=Al,t.ɵn=yl,Object.defineProperty(t,"__esModule",{value:!0})}));
638
638
  //# sourceMappingURL=datorama-core.umd.min.js.map