@yoobic/yobi 7.7.100 → 7.7.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{grid-renderers-374ca7e9.js → grid-renderers-450b84ec.js} +33 -7
- package/dist/cjs/yoo-action-sheet-controller_15.cjs.entry.js +1 -1
- package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +2 -1
- package/dist/cjs/yoo-card-list-image_12.cjs.entry.js +1 -1
- package/dist/collection/components/grid/ag-grid/grid-renderers.js +33 -7
- package/dist/collection/components/grid/grid/grid.js +1 -0
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-0d6af448.entry.js → p-20a39c64.entry.js} +2 -2
- package/dist/design-system/p-cdfab8ed.js +1 -0
- package/dist/design-system/{p-43b3420c.entry.js → p-d35b0a54.entry.js} +1 -1
- package/dist/design-system/{p-52465658.entry.js → p-e89f690e.entry.js} +1 -1
- package/dist/esm/{grid-renderers-f71fdcd7.js → grid-renderers-725cb52a.js} +33 -7
- package/dist/esm/yoo-action-sheet-controller_15.entry.js +1 -1
- package/dist/esm/yoo-ag-grid_96.entry.js +2 -1
- package/dist/esm/yoo-card-list-image_12.entry.js +1 -1
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/form-field/form-field.interface.d.ts +1 -1
- package/package.json +1 -1
- package/dist/design-system/p-f28ca7cf.js +0 -1
|
@@ -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 || '';
|
|
@@ -400,7 +403,7 @@ function photoRenderer(params) {
|
|
|
400
403
|
return '';
|
|
401
404
|
}
|
|
402
405
|
function multiphotoRenderer(params) {
|
|
403
|
-
const photos = params.value;
|
|
406
|
+
const photos = rrule.compact([].concat(params.value));
|
|
404
407
|
if (photos && rrule.isArray(photos) && photos.length > 0) {
|
|
405
408
|
//return photos.map((photo) => `<yoo-img style="${getStyle(roundedImageStyle)}" src="${photo || ''}" />`).join(' ');
|
|
406
409
|
const container = document.createElement('div');
|
|
@@ -421,6 +424,27 @@ function multiphotoRenderer(params) {
|
|
|
421
424
|
}
|
|
422
425
|
return '';
|
|
423
426
|
}
|
|
427
|
+
function imageRenderer(params) {
|
|
428
|
+
var _a, _b, _c;
|
|
429
|
+
let photos = [];
|
|
430
|
+
const colDef = (_a = params.column) === null || _a === void 0 ? void 0 : _a.getColDef();
|
|
431
|
+
photos = rrule.compact([].concat((_c = (_b = colDef) === null || _b === void 0 ? void 0 : _b.fieldDefinition) === null || _c === void 0 ? void 0 : _c.imagesCarousel));
|
|
432
|
+
if (photos && rrule.isArray(photos) && photos.length > 0) {
|
|
433
|
+
//return photos.map((photo) => `<yoo-img style="${getStyle(roundedImageStyle)}" src="${photo || ''}" />`).join(' ');
|
|
434
|
+
const container = document.createElement('div');
|
|
435
|
+
container.style.display = 'inherit';
|
|
436
|
+
photos.forEach((photo) => {
|
|
437
|
+
const img = document.createElement('yoo-img');
|
|
438
|
+
keys.keys(roundedImageStyle).forEach((k) => {
|
|
439
|
+
img.style[k] = roundedImageStyle[k];
|
|
440
|
+
});
|
|
441
|
+
img.src = photo;
|
|
442
|
+
container.appendChild(img);
|
|
443
|
+
});
|
|
444
|
+
return container;
|
|
445
|
+
}
|
|
446
|
+
return '';
|
|
447
|
+
}
|
|
424
448
|
function videoRenderer(params) {
|
|
425
449
|
return '<video class="ag-cell-image video" [src]="' + params.value + '"></video>';
|
|
426
450
|
}
|
|
@@ -594,7 +618,7 @@ function catalogRenderer(params) {
|
|
|
594
618
|
return formCatalog;
|
|
595
619
|
}
|
|
596
620
|
function documentRenderer(params) {
|
|
597
|
-
var _a, _b, _c
|
|
621
|
+
var _a, _b, _c;
|
|
598
622
|
let documents = [];
|
|
599
623
|
const colDef = (_a = params.column) === null || _a === void 0 ? void 0 : _a.getColDef();
|
|
600
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) {
|
|
@@ -615,7 +639,7 @@ function documentRenderer(params) {
|
|
|
615
639
|
formDocument.showActionSheet = false;
|
|
616
640
|
wrapper.appendChild(formDocument);
|
|
617
641
|
});
|
|
618
|
-
return (
|
|
642
|
+
return isCSVOrExcel(params) ? documents.map((d) => d._downloadURL).join(',') : wrapper;
|
|
619
643
|
}
|
|
620
644
|
return '';
|
|
621
645
|
}
|
|
@@ -640,7 +664,7 @@ function buttonRenderer(params) {
|
|
|
640
664
|
return '';
|
|
641
665
|
}
|
|
642
666
|
function missionValidationRenderer(params) {
|
|
643
|
-
var _a, _b
|
|
667
|
+
var _a, _b;
|
|
644
668
|
const value = params.value;
|
|
645
669
|
let status = '';
|
|
646
670
|
if (params.node && params.node.data) {
|
|
@@ -659,10 +683,10 @@ function missionValidationRenderer(params) {
|
|
|
659
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') {
|
|
660
684
|
retVal = `<yoo-tag color="stable">${rrule.translate('N/A')}</yoo-tag>`;
|
|
661
685
|
}
|
|
662
|
-
return (
|
|
686
|
+
return isCSVOrExcel(params) ? stripHtml(retVal) : retVal;
|
|
663
687
|
}
|
|
664
688
|
function missionStatusRenderer(params) {
|
|
665
|
-
var _a, _b, _c
|
|
689
|
+
var _a, _b, _c;
|
|
666
690
|
let tag;
|
|
667
691
|
let retVal = '';
|
|
668
692
|
if ((_a = params.data) === null || _a === void 0 ? void 0 : _a.hasWorkflow) {
|
|
@@ -692,7 +716,7 @@ function missionStatusRenderer(params) {
|
|
|
692
716
|
retVal = `<div class="not-center-container"><yoo-tag color="accent">${rrule.translate('AVAILABLE')}</yoo-tag></div>`;
|
|
693
717
|
}
|
|
694
718
|
retVal = retVal ? retVal : value ? value.toString() : retVal || '';
|
|
695
|
-
return (
|
|
719
|
+
return isCSVOrExcel(params) ? stripHtml(retVal) : retVal;
|
|
696
720
|
}
|
|
697
721
|
function salesAIQuantityRenderer(params) {
|
|
698
722
|
const value = params.value;
|
|
@@ -1134,6 +1158,8 @@ function getRenderer(renderer) {
|
|
|
1134
1158
|
return photoRenderer;
|
|
1135
1159
|
case 'multiphotoRenderer':
|
|
1136
1160
|
return multiphotoRenderer;
|
|
1161
|
+
case 'imageRenderer':
|
|
1162
|
+
return imageRenderer;
|
|
1137
1163
|
case 'videoRenderer':
|
|
1138
1164
|
return videoRenderer;
|
|
1139
1165
|
case 'starratingRenderer':
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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 || '';
|
|
@@ -383,7 +386,7 @@ function photoRenderer(params) {
|
|
|
383
386
|
return '';
|
|
384
387
|
}
|
|
385
388
|
function multiphotoRenderer(params) {
|
|
386
|
-
const photos = params.value;
|
|
389
|
+
const photos = compact([].concat(params.value));
|
|
387
390
|
if (photos && isArray(photos) && photos.length > 0) {
|
|
388
391
|
//return photos.map((photo) => `<yoo-img style="${getStyle(roundedImageStyle)}" src="${photo || ''}" />`).join(' ');
|
|
389
392
|
const container = document.createElement('div');
|
|
@@ -404,6 +407,27 @@ function multiphotoRenderer(params) {
|
|
|
404
407
|
}
|
|
405
408
|
return '';
|
|
406
409
|
}
|
|
410
|
+
function imageRenderer(params) {
|
|
411
|
+
var _a, _b, _c;
|
|
412
|
+
let photos = [];
|
|
413
|
+
const colDef = (_a = params.column) === null || _a === void 0 ? void 0 : _a.getColDef();
|
|
414
|
+
photos = compact([].concat((_c = (_b = colDef) === null || _b === void 0 ? void 0 : _b.fieldDefinition) === null || _c === void 0 ? void 0 : _c.imagesCarousel));
|
|
415
|
+
if (photos && isArray(photos) && photos.length > 0) {
|
|
416
|
+
//return photos.map((photo) => `<yoo-img style="${getStyle(roundedImageStyle)}" src="${photo || ''}" />`).join(' ');
|
|
417
|
+
const container = document.createElement('div');
|
|
418
|
+
container.style.display = 'inherit';
|
|
419
|
+
photos.forEach((photo) => {
|
|
420
|
+
const img = document.createElement('yoo-img');
|
|
421
|
+
keys(roundedImageStyle).forEach((k) => {
|
|
422
|
+
img.style[k] = roundedImageStyle[k];
|
|
423
|
+
});
|
|
424
|
+
img.src = photo;
|
|
425
|
+
container.appendChild(img);
|
|
426
|
+
});
|
|
427
|
+
return container;
|
|
428
|
+
}
|
|
429
|
+
return '';
|
|
430
|
+
}
|
|
407
431
|
function videoRenderer(params) {
|
|
408
432
|
return '<video class="ag-cell-image video" [src]="' + params.value + '"></video>';
|
|
409
433
|
}
|
|
@@ -577,7 +601,7 @@ function catalogRenderer(params) {
|
|
|
577
601
|
return formCatalog;
|
|
578
602
|
}
|
|
579
603
|
function documentRenderer(params) {
|
|
580
|
-
var _a, _b, _c
|
|
604
|
+
var _a, _b, _c;
|
|
581
605
|
let documents = [];
|
|
582
606
|
const colDef = (_a = params.column) === null || _a === void 0 ? void 0 : _a.getColDef();
|
|
583
607
|
if (((_c = (_b = colDef) === null || _b === void 0 ? void 0 : _b.fieldDefinition) === null || _c === void 0 ? void 0 : _c.type) === FormFieldType.document) {
|
|
@@ -598,7 +622,7 @@ function documentRenderer(params) {
|
|
|
598
622
|
formDocument.showActionSheet = false;
|
|
599
623
|
wrapper.appendChild(formDocument);
|
|
600
624
|
});
|
|
601
|
-
return (
|
|
625
|
+
return isCSVOrExcel(params) ? documents.map((d) => d._downloadURL).join(',') : wrapper;
|
|
602
626
|
}
|
|
603
627
|
return '';
|
|
604
628
|
}
|
|
@@ -623,7 +647,7 @@ function buttonRenderer(params) {
|
|
|
623
647
|
return '';
|
|
624
648
|
}
|
|
625
649
|
function missionValidationRenderer(params) {
|
|
626
|
-
var _a, _b
|
|
650
|
+
var _a, _b;
|
|
627
651
|
const value = params.value;
|
|
628
652
|
let status = '';
|
|
629
653
|
if (params.node && params.node.data) {
|
|
@@ -642,10 +666,10 @@ function missionValidationRenderer(params) {
|
|
|
642
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') {
|
|
643
667
|
retVal = `<yoo-tag color="stable">${translate('N/A')}</yoo-tag>`;
|
|
644
668
|
}
|
|
645
|
-
return (
|
|
669
|
+
return isCSVOrExcel(params) ? stripHtml(retVal) : retVal;
|
|
646
670
|
}
|
|
647
671
|
function missionStatusRenderer(params) {
|
|
648
|
-
var _a, _b, _c
|
|
672
|
+
var _a, _b, _c;
|
|
649
673
|
let tag;
|
|
650
674
|
let retVal = '';
|
|
651
675
|
if ((_a = params.data) === null || _a === void 0 ? void 0 : _a.hasWorkflow) {
|
|
@@ -675,7 +699,7 @@ function missionStatusRenderer(params) {
|
|
|
675
699
|
retVal = `<div class="not-center-container"><yoo-tag color="accent">${translate('AVAILABLE')}</yoo-tag></div>`;
|
|
676
700
|
}
|
|
677
701
|
retVal = retVal ? retVal : value ? value.toString() : retVal || '';
|
|
678
|
-
return (
|
|
702
|
+
return isCSVOrExcel(params) ? stripHtml(retVal) : retVal;
|
|
679
703
|
}
|
|
680
704
|
function salesAIQuantityRenderer(params) {
|
|
681
705
|
const value = params.value;
|
|
@@ -1117,6 +1141,8 @@ export function getRenderer(renderer) {
|
|
|
1117
1141
|
return photoRenderer;
|
|
1118
1142
|
case 'multiphotoRenderer':
|
|
1119
1143
|
return multiphotoRenderer;
|
|
1144
|
+
case 'imageRenderer':
|
|
1145
|
+
return imageRenderer;
|
|
1120
1146
|
case 'videoRenderer':
|
|
1121
1147
|
return videoRenderer;
|
|
1122
1148
|
case 'starratingRenderer':
|