@yoobic/yobi 8.5.3 → 8.5.5
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/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/yoo-form-carousel.cjs.entry.js +2 -1
- package/dist/cjs/yoo-form-document.cjs.entry.js +1 -1
- package/dist/cjs/yoo-input-bar.cjs.entry.js +2 -2
- package/dist/cjs/yoo-kpi.cjs.entry.js +2 -2
- package/dist/cjs/yoo-photo-editor.cjs.entry.js +1 -1
- package/dist/cjs/yoo-progress-bar.cjs.entry.js +2 -2
- package/dist/collection/components/1.atoms/progress-bar/progress-bar.css +1 -1
- package/dist/collection/components/1.atoms/progress-bar/progress-bar.js +2 -2
- package/dist/collection/components/3.organisms/photo-editor/photo-editor.js +1 -1
- package/dist/collection/components/form/form-carousel/form-carousel.js +20 -1
- package/dist/collection/components/form/form-document/form-document.js +1 -1
- package/dist/collection/feature-platform/insight/kpi/kpi.css +6 -0
- package/dist/collection/feature-platform/insight/kpi/kpi.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/yoo-form-carousel.entry.js +2 -1
- package/dist/design-system/yoo-form-document.entry.js +1 -1
- package/dist/design-system/yoo-input-bar.entry.js +2 -2
- package/dist/design-system/yoo-kpi.entry.js +2 -2
- package/dist/design-system/yoo-photo-editor.entry.js +1 -1
- package/dist/design-system/yoo-progress-bar.entry.js +2 -2
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/yoo-form-carousel.entry.js +2 -1
- package/dist/esm/yoo-form-document.entry.js +1 -1
- package/dist/esm/yoo-input-bar.entry.js +2 -2
- package/dist/esm/yoo-kpi.entry.js +2 -2
- package/dist/esm/yoo-photo-editor.entry.js +1 -1
- package/dist/esm/yoo-progress-bar.entry.js +2 -2
- package/dist/types/components/form/form-carousel/form-carousel.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
@@ -30,6 +30,7 @@ const YooFormCarouselComponent = class {
|
|
30
30
|
this.allowOrientation = false;
|
31
31
|
this.instant = false;
|
32
32
|
this.displayPhotoCounter = true;
|
33
|
+
this.navbarVisiblity = 'visible';
|
33
34
|
this.currentActiveIndex = 0;
|
34
35
|
this.showPhotoCounts = this.displayPhotoCounter;
|
35
36
|
this.visibility = false;
|
@@ -255,7 +256,7 @@ const YooFormCarouselComponent = class {
|
|
255
256
|
var _a, _b;
|
256
257
|
const toggleNavbarVisibility = (show) => this.photoEditorElements[index].navbarVisiblity = show ? 'visible' : 'hidden';
|
257
258
|
if (this.previewMode || this.usePhotoEditor) {
|
258
|
-
return (h("yoo-photo-editor", { ref: (el) => (this.photoEditorElements[index] = el), src: src, isReadonly: true, zoomable: this.previewMode, annotations: ((_a = this.annotations) === null || _a === void 0 ? void 0 : _a.length) && this.annotations[index], drawings: ((_b = this.drawings) === null || _b === void 0 ? void 0 : _b.length) && this.drawings[index], extraActions: this.topBarActions, onImageClicked: () => {
|
259
|
+
return (h("yoo-photo-editor", { ref: (el) => (this.photoEditorElements[index] = el), src: src, isReadonly: true, zoomable: this.previewMode, annotations: ((_a = this.annotations) === null || _a === void 0 ? void 0 : _a.length) && this.annotations[index], drawings: ((_b = this.drawings) === null || _b === void 0 ? void 0 : _b.length) && this.drawings[index], extraActions: this.topBarActions, navbarVisiblity: this.navbarVisiblity, onImageClicked: () => {
|
259
260
|
this.isPhotoClicked = !this.isPhotoClicked;
|
260
261
|
this.showDetail.emit(index);
|
261
262
|
this.photoEditorClicked.emit(this.isPhotoClicked);
|
@@ -126,7 +126,7 @@ const YooFormDocumentComponent = class {
|
|
126
126
|
}
|
127
127
|
}
|
128
128
|
renderCardFile() {
|
129
|
-
return (h("yoo-card-file", { isVisible: this.isVisible, file: this.document }));
|
129
|
+
return (h("yoo-card-file", { type: getType(this.document), isVisible: this.isVisible, file: this.document }));
|
130
130
|
}
|
131
131
|
renderBase() {
|
132
132
|
var _a;
|
@@ -16,7 +16,7 @@ function race(...args) {
|
|
16
16
|
}
|
17
17
|
|
18
18
|
/**
|
19
|
-
* @license Angular v14.2.
|
19
|
+
* @license Angular v14.2.7
|
20
20
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
21
21
|
* License: MIT
|
22
22
|
*/
|
@@ -7248,7 +7248,7 @@ class Version {
|
|
7248
7248
|
/**
|
7249
7249
|
* @publicApi
|
7250
7250
|
*/
|
7251
|
-
const VERSION = new Version('14.2.
|
7251
|
+
const VERSION = new Version('14.2.7');
|
7252
7252
|
|
7253
7253
|
/**
|
7254
7254
|
* @license
|
@@ -5,7 +5,7 @@ import './index-4bbbf966.js';
|
|
5
5
|
import './_commonjsHelpers-f4d11124.js';
|
6
6
|
import './lodash-777f91de.js';
|
7
7
|
|
8
|
-
const kpiCss = "svg:not(:root){overflow:hidden}:host{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;min-height:0}:host .photo-container{position:relative;width:100%;height:100%}:host .empty-state{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;height:100%}:host .empty-state yoo-empty-state{height:6.25rem}:host .empty-state div{color:var(--text-color-80, rgba(128, 127, 131, 0.8));font-size:var(--font-size-16, 1rem)}";
|
8
|
+
const kpiCss = "svg:not(:root){overflow:hidden}:host{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;min-height:0}:host .photo-container{position:relative;width:100%;height:100%}:host .photo-container yoo-form-carousel{display:block;-ms-flex:1;flex:1;height:100%;overflow:hidden}:host .empty-state{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;height:100%}:host .empty-state yoo-empty-state{height:6.25rem}:host .empty-state div{color:var(--text-color-80, rgba(128, 127, 131, 0.8));font-size:var(--font-size-16, 1rem)}";
|
9
9
|
|
10
10
|
const YooKpiComponent = class {
|
11
11
|
constructor(hostRef) {
|
@@ -107,7 +107,7 @@ const YooKpiComponent = class {
|
|
107
107
|
case 'calendar':
|
108
108
|
return null;
|
109
109
|
case 'carousel':
|
110
|
-
return this.photosSrc ? (h("div", { class: "photo-container" }, h("yoo-form-carousel", { ref: (el) => (this.carousel = el), usePhotoEditor: true, mediaSrc: this.photosSrc.map((src) => src === null || src === void 0 ? void 0 : src.value), annotations: this.photosSrc.map((src) => src === null || src === void 0 ? void 0 : src.annotations), drawings: this.photosSrc.map((src) => src === null || src === void 0 ? void 0 : src.drawings), class: { light: true, 'form-preview': this.isFormPreview } }))) : (h("div", { class: "empty-state" }, h("yoo-empty-state", { type: "photo" }), h("div", null, translate('LISTEMPTY'))));
|
110
|
+
return this.photosSrc ? (h("div", { class: "photo-container" }, h("yoo-form-carousel", { ref: (el) => (this.carousel = el), usePhotoEditor: true, navbarVisiblity: "hidden", mediaSrc: this.photosSrc.map((src) => src === null || src === void 0 ? void 0 : src.value), annotations: this.photosSrc.map((src) => src === null || src === void 0 ? void 0 : src.annotations), drawings: this.photosSrc.map((src) => src === null || src === void 0 ? void 0 : src.drawings), class: { light: true, 'form-preview': this.isFormPreview } }))) : (h("div", { class: "empty-state" }, h("yoo-empty-state", { type: "photo" }), h("div", null, translate('LISTEMPTY'))));
|
111
111
|
case 'grid':
|
112
112
|
return (h("yoo-pivot-table", { ref: (el) => (this.pivotTable = el), onEdited: (ev) => this.onEdited(ev), onRowClick: (ev) => this.onChartClick(ev), onRowDoubleClick: (ev) => this.onChartDoubleClick(ev), config: this.config, definition: this.definition, isFullScreen: this.isFullScreen, gridClass: "grid-alternate no-border", class: {
|
113
113
|
'rounded': (_b = (_a = this.host) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains('rounded')
|
@@ -341,7 +341,7 @@ const YooPhotoEditorComponent = class {
|
|
341
341
|
}
|
342
342
|
get isTextEditMode() {
|
343
343
|
var _a;
|
344
|
-
return !!(this.mode === 'text' && ((_a = this.activeAnnotation) === null || _a === void 0 ? void 0 : _a.type)
|
344
|
+
return !!(this.mode === 'text' && ((_a = this.activeAnnotation) === null || _a === void 0 ? void 0 : _a.type) === 'text');
|
345
345
|
}
|
346
346
|
get isDrawMode() {
|
347
347
|
return !!(this.mode === 'draw' && !this.isReadonly);
|
@@ -16,7 +16,7 @@ const DEFAULT_SHAPES = {
|
|
16
16
|
'semi-circle': 'M 0, y a r,r 0 1,1 d,0'
|
17
17
|
};
|
18
18
|
|
19
|
-
const progressBarCss = "svg:not(:root){overflow:hidden}:host{position:relative;display:block;--svg-width:100%;--svg-fill:var(--transparent, transparent);--stroke-width-line:3;--stroke-width-circle:3;--progress-value-font-size:var(--font-size-16, 1rem);--progress-value-font-weight:var(--font-weight-400, 400);--progress-value-color:var(--dark, #000000);--progress-bar-color:unset;--progress-bar-display:block;--trail-bar-color:var(--stable-light, #f1f1f1);--trail-bar-display:block}:host svg{width:var(--svg-width)}:host svg #trail{stroke-linecap:round;display:var(--trail-bar-display);stroke:var(--trail-bar-color)}:host svg #progress{display:var(--progress-bar-display);stroke:var(--progress-bar-color)}:host svg #progress:not([x2=\"0%\"]){stroke-linecap:round}:host #value{color:var(--progress-value-color);font-weight:var(--progress-value-font-weight);font-size:var(--progress-value-font-size);fill:var(--progress-value-color)}:host([shape=line]){display:inline-grid;grid-gap:var(--spacing-08, 0.5rem);grid-template-columns:1fr auto;place-items:center;width:100%}:host([shape=line]) svg{overflow:unset}:host([shape=line]) svg:not(.has-markers){height:var(--spacing-04, 0.25rem)}:host([shape=line]) svg:not(.has-markers) line{stroke-width:var(--stroke-width-line)}:host([shape=line]) svg .marker{font-size:var(--font-size-12, 0.75rem);-webkit-transform:translate(calc(var(--spacing-16, 1rem) * -1), calc(var(--spacing-16, 1rem) * 1.5));transform:translate(calc(var(--spacing-16, 1rem) * -1), calc(var(--spacing-16, 1rem) * 1.5))}:host([shape=line]) span{width:100%;text-align:center}:host([shape=line][x=right]) span{text-align:right}:host([shape=line][x=left]) span{text-align:left}:host([shape=line][y=bottom]),:host([shape=line][y=top]),:host([shape=line].no-value){grid-template-columns:initial;line-height:1}:host([shape=line][y=top]) svg{-ms-flex-order:1;order:1}:host([shape=line][y=top]) span{-ms-flex-order:0;order:0}:host([shape=circle]),:host([shape=semi-circle]){--progress-value-tsx:-50%;--progress-value-tsy:-50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0 auto}:host([shape=circle]) svg,:host([shape=semi-circle]) svg{overflow:initial;fill:var(--svg-fill)}:host([shape=circle]) svg path,:host([shape=semi-circle]) svg path{stroke-width:var(--stroke-width-circle)}:host([shape=circle]) #value,:host([shape=semi-circle]) #value{position:absolute;top:50%;left:50%;display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;-webkit-transform:translate(var(--progress-value-tsx), var(--progress-value-tsy));transform:translate(var(--progress-value-tsx), var(--progress-value-tsy))}:host([shape=semi-circle]){--progress-value-tsy:calc(-50% + var(--spacing-08, 0.5rem))}:host([metric=points]){--progress-bar-display:none;--trail-bar-display:none}:host([metric=step]){--progress-bar-color:var(--app-color, #5a30f4)}:host([shape=line].rtl){direction:ltr}:host([shape=line].rtl) svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}";
|
19
|
+
const progressBarCss = "svg:not(:root){overflow:hidden}:host{position:relative;display:block;--svg-width:100%;--svg-fill:var(--transparent, transparent);--stroke-width-line:3;--stroke-width-circle:3;--progress-value-font-size:var(--font-size-16, 1rem);--progress-value-font-weight:var(--font-weight-400, 400);--progress-value-color:var(--dark, #000000);--progress-bar-color:unset;--progress-bar-display:block;--trail-bar-color:var(--stable-light, #f1f1f1);--trail-bar-display:block}:host svg{width:var(--svg-width)}:host svg #trail{stroke-linecap:round;display:var(--trail-bar-display);stroke:var(--trail-bar-color)}:host svg #progress{display:var(--progress-bar-display);stroke:var(--progress-bar-color)}:host svg #progress:not([x2=\"0%\"]){stroke-linecap:round}:host #value{color:var(--progress-value-color);font-weight:var(--progress-value-font-weight);font-size:var(--progress-value-font-size);fill:var(--progress-value-color)}:host([shape=line]){display:inline-grid;grid-gap:var(--spacing-08, 0.5rem);grid-template-columns:1fr auto;place-items:center;width:100%}:host([shape=line]) svg{overflow:unset}:host([shape=line]) svg:not(.has-markers){height:var(--spacing-04, 0.25rem)}:host([shape=line]) svg:not(.has-markers) line{stroke-width:var(--stroke-width-line)}:host([shape=line]) svg .marker{font-size:var(--font-size-12, 0.75rem);-webkit-transform:translate(calc(var(--spacing-16, 1rem) * -1), calc(var(--spacing-16, 1rem) * 1.5));transform:translate(calc(var(--spacing-16, 1rem) * -1), calc(var(--spacing-16, 1rem) * 1.5))}:host([shape=line]) span{width:100%;text-align:center}:host([shape=line][x=right]) span{text-align:right}:host([shape=line][x=left]) span{text-align:left}:host([shape=line][y=bottom]),:host([shape=line][y=top]),:host([shape=line].no-value){grid-template-columns:initial;line-height:1}:host([shape=line][y=top]) svg{-ms-flex-order:1;order:1}:host([shape=line][y=top]) span{-ms-flex-order:0;order:0}:host([shape=circle]),:host([shape=semi-circle]){--progress-value-tsx:-50%;--progress-value-tsy:-50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0 auto}:host([shape=circle]) svg,:host([shape=semi-circle]) svg{overflow:initial;fill:var(--svg-fill)}:host([shape=circle]) svg path,:host([shape=semi-circle]) svg path{stroke-width:var(--stroke-width-circle)}:host([shape=circle]) #value,:host([shape=semi-circle]) #value{position:absolute;top:50%;left:50%;display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;-webkit-transform:translate(var(--progress-value-tsx), var(--progress-value-tsy));transform:translate(var(--progress-value-tsx), var(--progress-value-tsy))}:host([shape=semi-circle]){--progress-value-tsy:calc(-50% + var(--spacing-08, 0.5rem))}:host([metric=points]:not([max-value])){--progress-bar-display:none;--trail-bar-display:none}:host([metric=step]){--progress-bar-color:var(--app-color, #5a30f4)}:host([shape=line].rtl){direction:ltr}:host([shape=line].rtl) svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}";
|
20
20
|
|
21
21
|
const YooProgressBarComponent = class {
|
22
22
|
constructor(hostRef) {
|
@@ -195,7 +195,7 @@ const YooProgressBarComponent = class {
|
|
195
195
|
}
|
196
196
|
getProgress(progress = this.value) {
|
197
197
|
const currentProgress = progress || 0;
|
198
|
-
const withMaxValue = !!(isFinite(this.maxValue) && this.maxValue)
|
198
|
+
const withMaxValue = !!(isFinite(this.maxValue) && this.maxValue);
|
199
199
|
const newProgress = withMaxValue ? (currentProgress / this.maxValue) * 100 : currentProgress;
|
200
200
|
return this.truncateProgress(newProgress) || 0;
|
201
201
|
}
|
@@ -29,6 +29,7 @@ export declare class YooFormCarouselComponent implements IFormCarousel {
|
|
29
29
|
paginationType?: 'bullets' | 'fraction' | 'progressbar' | 'custom';
|
30
30
|
displayPhotoCounter?: boolean;
|
31
31
|
hideSecondaryActions?: boolean;
|
32
|
+
navbarVisiblity?: 'hidden' | 'visible' | 'disabled';
|
32
33
|
photoEditorClicked: EventEmitter<boolean>;
|
33
34
|
showDetail: EventEmitter<number>;
|
34
35
|
slideChanges: EventEmitter<number>;
|
@@ -2072,6 +2072,7 @@ export namespace Components {
|
|
2072
2072
|
"mediaDimension"?: IMediaDimension[];
|
2073
2073
|
"mediaSrc": (string | IFileInterface)[];
|
2074
2074
|
"mediaType": 'photo' | 'video' | 'audio' | 'document';
|
2075
|
+
"navbarVisiblity"?: 'hidden' | 'visible' | 'disabled';
|
2075
2076
|
"paginationType"?: 'bullets' | 'fraction' | 'progressbar' | 'custom';
|
2076
2077
|
"playerCommand"?: string;
|
2077
2078
|
"preventAutoPlayMedia"?: boolean;
|
@@ -12915,6 +12916,7 @@ declare namespace LocalJSX {
|
|
12915
12916
|
"mediaDimension"?: IMediaDimension[];
|
12916
12917
|
"mediaSrc"?: (string | IFileInterface)[];
|
12917
12918
|
"mediaType"?: 'photo' | 'video' | 'audio' | 'document';
|
12919
|
+
"navbarVisiblity"?: 'hidden' | 'visible' | 'disabled';
|
12918
12920
|
"onEnteringViewPort"?: (event: YooFormCarouselCustomEvent<boolean>) => void;
|
12919
12921
|
"onImageZoomed"?: (event: YooFormCarouselCustomEvent<boolean>) => void;
|
12920
12922
|
"onPhotoEditorClicked"?: (event: YooFormCarouselCustomEvent<boolean>) => void;
|