@yoobic/yobi 7.7.101 → 7.7.102

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.
@@ -24,6 +24,9 @@ const imageStyle = {
24
24
  height: '2rem'
25
25
  };
26
26
  const roundedImageStyle = Object.assign(Object.assign({}, imageStyle), { border: `1px solid ${rrule.getCssColor('stable-40')}`, 'border-radius': '50%' });
27
+ function isCSVOrExcel(params) {
28
+ return (params === null || params === void 0 ? void 0 : params.type) === 'excel' || (params === null || params === void 0 ? void 0 : params.type) === 'csv';
29
+ }
27
30
  function defaultRenderer(params) {
28
31
  var _a;
29
32
  let retVal = params.value || '';
@@ -615,7 +618,7 @@ function catalogRenderer(params) {
615
618
  return formCatalog;
616
619
  }
617
620
  function documentRenderer(params) {
618
- var _a, _b, _c, _d;
621
+ var _a, _b, _c;
619
622
  let documents = [];
620
623
  const colDef = (_a = params.column) === null || _a === void 0 ? void 0 : _a.getColDef();
621
624
  if (((_c = (_b = colDef) === null || _b === void 0 ? void 0 : _b.fieldDefinition) === null || _c === void 0 ? void 0 : _c.type) === inputBar_interface.FormFieldType.document) {
@@ -636,7 +639,7 @@ function documentRenderer(params) {
636
639
  formDocument.showActionSheet = false;
637
640
  wrapper.appendChild(formDocument);
638
641
  });
639
- return ((_d = params) === null || _d === void 0 ? void 0 : _d.type) === 'excel' ? documents.map((d) => d._downloadURL).join(',') : wrapper;
642
+ return isCSVOrExcel(params) ? documents.map((d) => d._downloadURL).join(',') : wrapper;
640
643
  }
641
644
  return '';
642
645
  }
@@ -661,7 +664,7 @@ function buttonRenderer(params) {
661
664
  return '';
662
665
  }
663
666
  function missionValidationRenderer(params) {
664
- var _a, _b, _c;
667
+ var _a, _b;
665
668
  const value = params.value;
666
669
  let status = '';
667
670
  if (params.node && params.node.data) {
@@ -680,10 +683,10 @@ function missionValidationRenderer(params) {
680
683
  if (((_a = params === null || params === void 0 ? void 0 : params.node) === null || _a === void 0 ? void 0 : _a.group) && ((_b = params === null || params === void 0 ? void 0 : params.colDef) === null || _b === void 0 ? void 0 : _b.cellRenderer) === 'group') {
681
684
  retVal = `<yoo-tag color="stable">${rrule.translate('N/A')}</yoo-tag>`;
682
685
  }
683
- return ((_c = params) === null || _c === void 0 ? void 0 : _c.type) === 'excel' ? stripHtml(retVal) : retVal;
686
+ return isCSVOrExcel(params) ? stripHtml(retVal) : retVal;
684
687
  }
685
688
  function missionStatusRenderer(params) {
686
- var _a, _b, _c, _d;
689
+ var _a, _b, _c;
687
690
  let tag;
688
691
  let retVal = '';
689
692
  if ((_a = params.data) === null || _a === void 0 ? void 0 : _a.hasWorkflow) {
@@ -713,7 +716,7 @@ function missionStatusRenderer(params) {
713
716
  retVal = `<div class="not-center-container"><yoo-tag color="accent">${rrule.translate('AVAILABLE')}</yoo-tag></div>`;
714
717
  }
715
718
  retVal = retVal ? retVal : value ? value.toString() : retVal || '';
716
- return ((_d = params) === null || _d === void 0 ? void 0 : _d.type) === 'excel' ? stripHtml(retVal) : retVal;
719
+ return isCSVOrExcel(params) ? stripHtml(retVal) : retVal;
717
720
  }
718
721
  function salesAIQuantityRenderer(params) {
719
722
  const value = params.value;
@@ -28,7 +28,7 @@ const isString = require('./isString-ecd0cbf4.js');
28
28
  const _createAggregator = require('./_createAggregator-c627b114.js');
29
29
  const get = require('./get-91c14783.js');
30
30
  const formInputHelpers = require('./form-input-helpers-9e98c0e6.js');
31
- const gridRenderers = require('./grid-renderers-9452d5e4.js');
31
+ const gridRenderers = require('./grid-renderers-450b84ec.js');
32
32
  const localForage = require('./localForage-82b6f557.js');
33
33
  const dimensionsHelpers = require('./dimensions-helpers-54685523.js');
34
34
  require('./isUndefined-8f9cfd10.js');
@@ -7,7 +7,7 @@ const rrule = require('./rrule-f8e7fec2.js');
7
7
  const inputBar_interface = require('./input-bar.interface-b96b7107.js');
8
8
  const ResizeObserver_es = require('./ResizeObserver.es-2edf4ecd.js');
9
9
  const commonHelpers = require('./common-helpers-797be2a6.js');
10
- const gridRenderers = require('./grid-renderers-9452d5e4.js');
10
+ const gridRenderers = require('./grid-renderers-450b84ec.js');
11
11
  const identity$4 = require('./identity-8189b2e1.js');
12
12
  const isNumber$1 = require('./isNumber-4c1ace60.js');
13
13
  const formHelpers = require('./form-helpers-ec3c2d29.js');
@@ -130180,6 +130180,7 @@ const YooGridComponent = class {
130180
130180
  setTimeout(() => this.updateGridSelectAllState(), 500);
130181
130181
  }
130182
130182
  else {
130183
+ this.isFirstLoadAfterDisconnect = false;
130183
130184
  this.fetchData.emit({
130184
130185
  search: this.searchText,
130185
130186
  currentPage,
@@ -16,7 +16,7 @@ const get = require('./get-91c14783.js');
16
16
  const annotationsHelpers = require('./annotations-helpers-558ceb1e.js');
17
17
  const dimensionsHelpers = require('./dimensions-helpers-54685523.js');
18
18
  const imageHelpers = require('./image-helpers-3385fd6f.js');
19
- const gridRenderers = require('./grid-renderers-9452d5e4.js');
19
+ const gridRenderers = require('./grid-renderers-450b84ec.js');
20
20
  const debounce = require('./debounce-fda84c7b.js');
21
21
  const cloneDeep = require('./cloneDeep-e00dc6ae.js');
22
22
  const assign = require('./assign-bc4598ad.js');
@@ -7,6 +7,9 @@ const imageStyle = {
7
7
  height: '2rem'
8
8
  };
9
9
  const roundedImageStyle = Object.assign(Object.assign({}, imageStyle), { border: `1px solid ${getCssColor('stable-40')}`, 'border-radius': '50%' });
10
+ function isCSVOrExcel(params) {
11
+ return (params === null || params === void 0 ? void 0 : params.type) === 'excel' || (params === null || params === void 0 ? void 0 : params.type) === 'csv';
12
+ }
10
13
  function defaultRenderer(params) {
11
14
  var _a;
12
15
  let retVal = params.value || '';
@@ -598,7 +601,7 @@ function catalogRenderer(params) {
598
601
  return formCatalog;
599
602
  }
600
603
  function documentRenderer(params) {
601
- var _a, _b, _c, _d;
604
+ var _a, _b, _c;
602
605
  let documents = [];
603
606
  const colDef = (_a = params.column) === null || _a === void 0 ? void 0 : _a.getColDef();
604
607
  if (((_c = (_b = colDef) === null || _b === void 0 ? void 0 : _b.fieldDefinition) === null || _c === void 0 ? void 0 : _c.type) === FormFieldType.document) {
@@ -619,7 +622,7 @@ function documentRenderer(params) {
619
622
  formDocument.showActionSheet = false;
620
623
  wrapper.appendChild(formDocument);
621
624
  });
622
- return ((_d = params) === null || _d === void 0 ? void 0 : _d.type) === 'excel' ? documents.map((d) => d._downloadURL).join(',') : wrapper;
625
+ return isCSVOrExcel(params) ? documents.map((d) => d._downloadURL).join(',') : wrapper;
623
626
  }
624
627
  return '';
625
628
  }
@@ -644,7 +647,7 @@ function buttonRenderer(params) {
644
647
  return '';
645
648
  }
646
649
  function missionValidationRenderer(params) {
647
- var _a, _b, _c;
650
+ var _a, _b;
648
651
  const value = params.value;
649
652
  let status = '';
650
653
  if (params.node && params.node.data) {
@@ -663,10 +666,10 @@ function missionValidationRenderer(params) {
663
666
  if (((_a = params === null || params === void 0 ? void 0 : params.node) === null || _a === void 0 ? void 0 : _a.group) && ((_b = params === null || params === void 0 ? void 0 : params.colDef) === null || _b === void 0 ? void 0 : _b.cellRenderer) === 'group') {
664
667
  retVal = `<yoo-tag color="stable">${translate('N/A')}</yoo-tag>`;
665
668
  }
666
- return ((_c = params) === null || _c === void 0 ? void 0 : _c.type) === 'excel' ? stripHtml(retVal) : retVal;
669
+ return isCSVOrExcel(params) ? stripHtml(retVal) : retVal;
667
670
  }
668
671
  function missionStatusRenderer(params) {
669
- var _a, _b, _c, _d;
672
+ var _a, _b, _c;
670
673
  let tag;
671
674
  let retVal = '';
672
675
  if ((_a = params.data) === null || _a === void 0 ? void 0 : _a.hasWorkflow) {
@@ -696,7 +699,7 @@ function missionStatusRenderer(params) {
696
699
  retVal = `<div class="not-center-container"><yoo-tag color="accent">${translate('AVAILABLE')}</yoo-tag></div>`;
697
700
  }
698
701
  retVal = retVal ? retVal : value ? value.toString() : retVal || '';
699
- return ((_d = params) === null || _d === void 0 ? void 0 : _d.type) === 'excel' ? stripHtml(retVal) : retVal;
702
+ return isCSVOrExcel(params) ? stripHtml(retVal) : retVal;
700
703
  }
701
704
  function salesAIQuantityRenderer(params) {
702
705
  const value = params.value;
@@ -809,6 +809,7 @@ export class YooGridComponent {
809
809
  setTimeout(() => this.updateGridSelectAllState(), 500);
810
810
  }
811
811
  else {
812
+ this.isFirstLoadAfterDisconnect = false;
812
813
  this.fetchData.emit({
813
814
  search: this.searchText,
814
815
  currentPage,