@yoobic/yobi 7.7.128 → 7.7.129
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/yoo-ag-grid_96.cjs.entry.js +7 -5
- package/dist/collection/components/3.organisms/photo-editor/photo-editor.js +7 -5
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-8916bfb9.entry.js → p-50dca1d1.entry.js} +1 -1
- package/dist/esm/yoo-ag-grid_96.entry.js +7 -5
- package/dist/types/components/3.organisms/photo-editor/photo-editor.d.ts +2 -0
- package/package.json +1 -1
|
@@ -207483,7 +207483,9 @@ const YooPhotoEditorComponent = class {
|
|
|
207483
207483
|
get keyboardActions() {
|
|
207484
207484
|
return {
|
|
207485
207485
|
WillShow: () => this.hasKeyboardOpened = true,
|
|
207486
|
-
|
|
207486
|
+
WillHide: () => this.hasKeyboardOpened = false,
|
|
207487
|
+
DidHide: () => async () => await this.displayDrawings(this.currentDrawings),
|
|
207488
|
+
DidShow: async () => await this.displayDrawings(this.currentDrawings)
|
|
207487
207489
|
};
|
|
207488
207490
|
}
|
|
207489
207491
|
get hostBounds() {
|
|
@@ -207608,7 +207610,7 @@ const YooPhotoEditorComponent = class {
|
|
|
207608
207610
|
return (_a = this.imageSizeStyle) === null || _a === void 0 ? void 0 : _a[this.isImageZoomable ? 'natural' : 'resized'];
|
|
207609
207611
|
}
|
|
207610
207612
|
get changes() {
|
|
207611
|
-
var _a, _b;
|
|
207613
|
+
var _a, _b, _c, _d;
|
|
207612
207614
|
const checkChanges = (propName) => !isEqual$1(this.savedAnnotations.sort((a, b) => a.text.localeCompare(b.text)).map((t) => t === null || t === void 0 ? void 0 : t[propName]), this.annotations
|
|
207613
207615
|
.filter((a) => (a === null || a === void 0 ? void 0 : a.text) && !isAnnotationDeleted(a))
|
|
207614
207616
|
.sort((a, b) => a.text.localeCompare(b.text))
|
|
@@ -207619,7 +207621,7 @@ const YooPhotoEditorComponent = class {
|
|
|
207619
207621
|
const hasCoordsChanged = checkChanges('coords');
|
|
207620
207622
|
return {
|
|
207621
207623
|
drawings: this.drawingsStack.length > 1 && !!this.drawingsStackIndex,
|
|
207622
|
-
annotations: !!(hasTextChanged || hasStylesChanged || (hasTransformChanged || hasCoordsChanged))
|
|
207624
|
+
annotations: !!(hasTextChanged || hasStylesChanged || (hasTransformChanged || hasCoordsChanged)) || (((_c = this.savedAnnotations) === null || _c === void 0 ? void 0 : _c.length) !== ((_d = this.annotations) === null || _d === void 0 ? void 0 : _d.length))
|
|
207623
207625
|
};
|
|
207624
207626
|
}
|
|
207625
207627
|
get currentDrawings() {
|
|
@@ -207764,6 +207766,7 @@ const YooPhotoEditorComponent = class {
|
|
|
207764
207766
|
!isDarkTheme() && !this.isPreview && setStatusBarDarkMode(true);
|
|
207765
207767
|
this.savedAnnotationElements = cloneDeep(this.annotationElements);
|
|
207766
207768
|
this.showSaveInitial && getActionButton().validate.classList.add('active');
|
|
207769
|
+
this.savedAnnotations = cloneDeep(this.annotations);
|
|
207767
207770
|
ScreenOrientation === null || ScreenOrientation === void 0 ? void 0 : ScreenOrientation.onChange().subscribe(() => forceUpdate(this));
|
|
207768
207771
|
}
|
|
207769
207772
|
async prepareSrc() {
|
|
@@ -207810,13 +207813,12 @@ const YooPhotoEditorComponent = class {
|
|
|
207810
207813
|
if (!this.isLoading && this.hasZoomSetup && (this.displayAnnotations || !this.isReadonly)) {
|
|
207811
207814
|
this.hasZoomSetup = false;
|
|
207812
207815
|
this.toggleDraggableAnnotations();
|
|
207813
|
-
this.savedAnnotations = cloneDeep(this.annotations);
|
|
207814
207816
|
}
|
|
207815
207817
|
}
|
|
207816
207818
|
}
|
|
207817
207819
|
toggleKeyboardListeners(add) {
|
|
207818
207820
|
if (isNativeMobile() && !this.isPreview) {
|
|
207819
|
-
['WillShow', 'DidHide'].forEach((event) => window[`${add ? 'add' : 'remove'}EventListener`](`keyboard${event}`, this.keyboardActions[event]));
|
|
207821
|
+
['WillShow', 'WillHide', 'DidHide', 'DidShow'].forEach((event) => window[`${add ? 'add' : 'remove'}EventListener`](`keyboard${event}`, this.keyboardActions[event]));
|
|
207820
207822
|
}
|
|
207821
207823
|
}
|
|
207822
207824
|
toggleShowNavbar(show = true) {
|
|
@@ -225,7 +225,9 @@ export declare class YooPhotoEditorComponent implements ComponentInterface {
|
|
|
225
225
|
};
|
|
226
226
|
get keyboardActions(): {
|
|
227
227
|
WillShow: () => void;
|
|
228
|
+
WillHide: () => void;
|
|
228
229
|
DidHide: () => void;
|
|
230
|
+
DidShow: () => void;
|
|
229
231
|
};
|
|
230
232
|
get hostBounds(): DOMRect;
|
|
231
233
|
get imageBounds(): DOMRect;
|