@yoobic/yobi 8.5.0-76 → 8.5.0-78
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/{swiper-9f95d970.js → swiper-14a9aa6e.js} +1 -1
- package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +0 -2
- package/dist/cjs/yoo-form-capture.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-image-tagging.cjs.entry.js +12 -15
- package/dist/cjs/yoo-form-phone-number.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-todo-mission.cjs.entry.js +21 -18
- package/dist/cjs/yoo-form-todo.cjs.entry.js +1 -1
- package/dist/cjs/yoo-ion-scroll.cjs.entry.js +0 -7
- package/dist/cjs/{yoo-ion-slides-91aed68c.js → yoo-ion-slides-ac7389aa.js} +3 -3
- package/dist/cjs/yoo-ion-slides.cjs.entry.js +1 -1
- package/dist/cjs/yoo-mission-todo.cjs.entry.js +2 -2
- package/dist/collection/components/2.molecules/scroll/scroll.js +0 -12
- package/dist/collection/components/2.molecules/slide/slide.css +2 -2
- package/dist/collection/components/2.molecules/slides/slides.css +2 -2
- package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +0 -16
- package/dist/collection/components/form/form-capture/form-capture.js +1 -1
- package/dist/collection/components/form/form-image-tagging/form-image-tagging.css +16 -28
- package/dist/collection/components/form/form-image-tagging/form-image-tagging.js +12 -15
- package/dist/collection/components/form/form-todo/form-todo.js +1 -1
- package/dist/collection/components/form/form-todo-mission/form-todo-mission.js +39 -19
- package/dist/collection/feature-operate/mission/mission-todo/mission-todo.js +3 -3
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/{esm/swiper-c4c9ef69.js → design-system/swiper-98ab4ffc.js} +2 -2
- package/dist/design-system/yoo-form-autocomplete.entry.js +0 -2
- package/dist/design-system/yoo-form-capture.entry.js +2 -2
- package/dist/design-system/yoo-form-image-tagging.entry.js +12 -15
- package/dist/design-system/yoo-form-phone-number.entry.js +1 -1
- package/dist/design-system/yoo-form-todo-mission.entry.js +21 -18
- package/dist/design-system/yoo-form-todo.entry.js +1 -1
- package/dist/design-system/yoo-ion-scroll.entry.js +0 -7
- package/dist/{esm/yoo-ion-slides-1c623349.js → design-system/yoo-ion-slides-fb2b42e7.js} +3 -3
- package/dist/design-system/yoo-ion-slides.entry.js +1 -1
- package/dist/design-system/yoo-mission-todo.entry.js +2 -2
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/{design-system/swiper-c4c9ef69.js → esm/swiper-98ab4ffc.js} +2 -2
- package/dist/esm/yoo-form-autocomplete.entry.js +0 -2
- package/dist/esm/yoo-form-capture.entry.js +2 -2
- package/dist/esm/yoo-form-image-tagging.entry.js +12 -15
- package/dist/esm/yoo-form-phone-number.entry.js +1 -1
- package/dist/esm/yoo-form-todo-mission.entry.js +21 -18
- package/dist/esm/yoo-form-todo.entry.js +1 -1
- package/dist/esm/yoo-ion-scroll.entry.js +0 -7
- package/dist/{design-system/yoo-ion-slides-1c623349.js → esm/yoo-ion-slides-fb2b42e7.js} +3 -3
- package/dist/esm/yoo-ion-slides.entry.js +1 -1
- package/dist/esm/yoo-mission-todo.entry.js +2 -2
- package/dist/types/components/2.molecules/scroll/scroll.d.ts +0 -1
- package/dist/types/components/form/form-autocomplete/form-autocomplete.d.ts +0 -1
- package/dist/types/components/form/form-image-tagging/form-image-tagging.d.ts +1 -1
- package/dist/types/components/form/form-todo-mission/form-todo-mission.d.ts +3 -1
- package/dist/types/components.d.ts +6 -5
- package/dist/types/feature-operate/mission/mission-todo/mission-todo.d.ts +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { S as Swiper, P as Pagination, A as Autoplay, a as Scrollbar } from './yoo-ion-slides-
|
2
|
-
export { S as Swiper } from './yoo-ion-slides-
|
1
|
+
import { S as Swiper, P as Pagination, A as Autoplay, a as Scrollbar } from './yoo-ion-slides-fb2b42e7.js';
|
2
|
+
export { S as Swiper } from './yoo-ion-slides-fb2b42e7.js';
|
3
3
|
import './index-a6a92b3d.js';
|
4
4
|
import './index-ff24e2c4.js';
|
5
5
|
import './index-3d905ebb.js';
|
@@ -22,7 +22,6 @@ const YooFormAutocompleteComponent = class {
|
|
22
22
|
this.fetchCustomData = createEvent(this, "fetchCustomData", 7);
|
23
23
|
this.webAutocompleteOpened = createEvent(this, "webAutocompleteOpened", 7);
|
24
24
|
this.webAutocompleteClosed = createEvent(this, "webAutocompleteClosed", 7);
|
25
|
-
this.mobileAutocompleteClosed = createEvent(this, "mobileAutocompleteClosed", 7);
|
26
25
|
this.extraDataChanged = createEvent(this, "extraDataChanged", 7);
|
27
26
|
/**
|
28
27
|
* trigger file change with a initial that was passed in
|
@@ -586,7 +585,6 @@ const YooFormAutocompleteComponent = class {
|
|
586
585
|
if (!(isWeb(this.host) && this.showDropdownContent)) {
|
587
586
|
this.inputFocused.emit();
|
588
587
|
await (!isWeb(this.host) || !this.expandHeightOnShow ? this.showContainerDialog() : this.showContainer());
|
589
|
-
this.mobileAutocompleteClosed.emit(this.selection);
|
590
588
|
}
|
591
589
|
else {
|
592
590
|
this.webAutocompleteClosed.emit(this.selection);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, h, j as Build, e as Host, g as getElement } from './index-a6a92b3d.js';
|
2
2
|
import { P as PictureSourceType, M as MediaType, i as importMultipleFromLibrary, g as getPicture, b as getVideo, s as showAudioRecorder, c as MediaCapture, a as getVideoDevices } from './camera-helpers-2edcf459.js';
|
3
|
-
import { cn as isBase64, aZ as isImageUrl, cs as addFilePrefix, p as isAndroid, cv as moveToImageDirectory, t as translate, b9 as showToast, dR as getFormCapturedFileSize, aj as showAlert, av as pipes, k as isNullOrUndefined, H as isWeb,
|
3
|
+
import { cn as isBase64, aZ as isImageUrl, cs as addFilePrefix, p as isAndroid, cv as moveToImageDirectory, t as translate, b9 as showToast, dR as getFormCapturedFileSize, aj as showAlert, av as pipes, k as isNullOrUndefined, H as isWeb, al as isGif, am as isImage, dM as isUnsplashUrl, ak as isVideo, dL as isAudio, o as isNativeMobile, G as showModal, N as isIOS, M as isIphoneX, c4 as StatusBar, a8 as getSession, dS as isLenovo, cp as showActionSheet, dD as asyncWaterfall, dT as updatePathSessionId, bX as isSafari, W as getAsyncExtraData, ct as read, Z as isNativeFilePath, an as downloadFile, ar as isFile, dU as getMimeType, br as isOffline, dV as hasLargeFile, a3 as translateMulti, aH as showContextMenu, aC as isPhotoEdited, dA as images, dW as audios, dB as videos, aD as changeExtension, az as isCloudinaryLink } from './index-3d905ebb.js';
|
4
4
|
import './index-ff24e2c4.js';
|
5
5
|
import { k as keys, z as intersection, a as isNumber, i as isArray, a5 as assignInWith, s as assign, n as compact, t as clone, E as isUndefined } from './lodash-777f91de.js';
|
6
6
|
import { c as querySelectorAllDeep, q as querySelectorDeep, i as showImageCropper, e as showPhotoEditor, a as showSlidesMedia, g as getAppContext } from './common-helpers-89dbb59a.js';
|
@@ -277,7 +277,7 @@ const YooFormCaptureComponent = class {
|
|
277
277
|
}
|
278
278
|
allowCrop(data) {
|
279
279
|
var _a;
|
280
|
-
return isWeb(this.host) && (((_a = this.cropperOptions) === null || _a === void 0 ? void 0 : _a.cropRatio) > 0 || this.showCropper) && (isImage(data) || isBase64(data)
|
280
|
+
return isWeb(this.host) && !isGif(data) && (((_a = this.cropperOptions) === null || _a === void 0 ? void 0 : _a.cropRatio) > 0 || this.showCropper) && (isImage(data) || isBase64(data) || isUnsplashUrl(data));
|
281
281
|
}
|
282
282
|
removeAllCapture() {
|
283
283
|
this.value = [];
|
@@ -12,7 +12,7 @@ import './index-604330b3.js';
|
|
12
12
|
import './common-helpers-89dbb59a.js';
|
13
13
|
import './_commonjsHelpers-f4d11124.js';
|
14
14
|
|
15
|
-
const formImageTaggingCss = "svg:not(:root){overflow:hidden}:host{display:block}:host yoo-banner{height:0}:host yoo-tag{position:relative;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}:host #image{
|
15
|
+
const formImageTaggingCss = "svg:not(:root){overflow:hidden}:host{display:block}:host yoo-banner{height:0}:host yoo-tag{position:relative;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}:host #image{position:relative}:host #image #overlay,:host #image yoo-img{border-radius:var(--border-radius-08, 0.5rem)}:host #image .dropzone{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--spacing-32, 2rem);height:var(--spacing-32, 2rem);background-color:var(--light, #ffffff);border-radius:50%;-webkit-box-shadow:var(--shadow-02, 0 0.25rem 0.5rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-02, 0 0.25rem 0.5rem 0 rgba(0, 0, 0, 0.1))}:host(:not([readonly])) main::-webkit-scrollbar{display:none}:host(:not([readonly])) #image #overlay{position:absolute;top:0;width:100%;height:100%;background-color:var(--dark-10, rgba(0, 0, 0, 0.1));opacity:0;-webkit-transition:opacity 350ms ease-in-out;transition:opacity 350ms ease-in-out}:host(:not([readonly])) #image .dropzone[hit]{background-color:var(--app-color, #5a30f4)}:host(:not([readonly])) #instructions{margin:var(--spacing-16, 1rem) 0 0;padding:var(--spacing-08, 0.5rem);color:var(--stable, #adadad)}:host(:not([readonly])) #zone-tags{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:baseline;align-content:baseline;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;min-height:5rem;padding:var(--spacing-08, 0.5rem);white-space:nowrap;border:var(--border-width-01, 0.0625rem) solid transparent;border-radius:var(--border-radius-08, 0.5rem)}:host(:not([readonly])) #zone-tags[hit]{background-color:var(--stable-ultralight, #fafafa);border:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1)}:host(:not([readonly])) #zone-tags yoo-tag{margin-right:var(--spacing-08, 0.5rem);margin-bottom:var(--spacing-08, 0.5rem)}:host([animated]) yoo-img{-webkit-animation:scale-up 0.35s ease-in-out 0.35s;animation:scale-up 0.35s ease-in-out 0.35s}@-webkit-keyframes scale-up{from{-webkit-transform:scale(0.85);transform:scale(0.85)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes scale-up{from{-webkit-transform:scale(0.85);transform:scale(0.85)}to{-webkit-transform:scale(1);transform:scale(1)}}:host([animated]) .dropzone{-webkit-transition:all 250ms linear;transition:all 250ms linear}:host([animated]) .dropzone[hidden]{-webkit-transform:scale(0);transform:scale(0)}";
|
16
16
|
|
17
17
|
const YooFormImageTaggingComponent = class {
|
18
18
|
constructor(hostRef) {
|
@@ -22,13 +22,14 @@ const YooFormImageTaggingComponent = class {
|
|
22
22
|
this.animated = true;
|
23
23
|
this.value = [];
|
24
24
|
this.placeholder = 'DRAGDROPTAGS';
|
25
|
-
this.
|
25
|
+
this.revealDropzones = false;
|
26
26
|
}
|
27
27
|
async onImageChanged(newImage, oldImage) {
|
28
28
|
if (!isEqual(newImage, oldImage)) {
|
29
29
|
await this.prepareImage();
|
30
|
-
|
30
|
+
this.revealDropzones = false;
|
31
31
|
this.init();
|
32
|
+
forceUpdate(this);
|
32
33
|
}
|
33
34
|
}
|
34
35
|
onRequireChanged() {
|
@@ -46,8 +47,9 @@ const YooFormImageTaggingComponent = class {
|
|
46
47
|
var _a;
|
47
48
|
if (this.isVisible) {
|
48
49
|
(_a = this.tags) === null || _a === void 0 ? void 0 : _a.animate();
|
49
|
-
this.
|
50
|
+
this.revealDropzones = false;
|
50
51
|
this.init();
|
52
|
+
forceUpdate(this);
|
51
53
|
}
|
52
54
|
}
|
53
55
|
async isValid() {
|
@@ -87,7 +89,6 @@ const YooFormImageTaggingComponent = class {
|
|
87
89
|
clickToDrop: true,
|
88
90
|
dragAndScroll: true,
|
89
91
|
getColorTag,
|
90
|
-
onFirstTagAnimationFinished: () => this.flipImage = false,
|
91
92
|
pressTagExtraAction: () => showImageOverlay(),
|
92
93
|
releaseTagExtraAction: onReleaseTag,
|
93
94
|
resetTagExtraAction: onReleaseTag
|
@@ -103,6 +104,7 @@ const YooFormImageTaggingComponent = class {
|
|
103
104
|
}
|
104
105
|
async componentWillLoad() {
|
105
106
|
await this.prepareImage();
|
107
|
+
this.revealDropzones = !this.animated;
|
106
108
|
}
|
107
109
|
componentDidLoad() {
|
108
110
|
this.init();
|
@@ -110,33 +112,28 @@ const YooFormImageTaggingComponent = class {
|
|
110
112
|
async prepareImage() {
|
111
113
|
var _a;
|
112
114
|
this.imageSrc = await getMedia((await getFromOfflineStorage((_a = this.image) === null || _a === void 0 ? void 0 : _a._downloadURL)), { forceCookieUrlParam: true });
|
113
|
-
this.flipImage = !!this.imageSrc;
|
114
115
|
}
|
115
116
|
init() {
|
116
|
-
|
117
|
-
|
118
|
-
var _a, _b;
|
119
|
-
!((_b = (_a = this.tags) === null || _a === void 0 ? void 0 : _a.tags) === null || _b === void 0 ? void 0 : _b.length) && (this.tags = initTags(this.tagConfig, this.zonesConfig));
|
120
|
-
this.flipImage = false;
|
121
|
-
}, 500);
|
117
|
+
var _a, _b;
|
118
|
+
!((_b = (_a = this.tags) === null || _a === void 0 ? void 0 : _a.tags) === null || _b === void 0 ? void 0 : _b.length) && (this.tags = initTags(this.tagConfig, this.zonesConfig));
|
122
119
|
}
|
123
120
|
renderImageOverlay() {
|
124
121
|
return !this.readonly && h("div", { id: "overlay", ref: (element) => (this.imageOverlayElement = element) });
|
125
122
|
}
|
126
123
|
renderImage() {
|
127
|
-
return
|
124
|
+
return !!this.imageSrc && h("section", { id: "image" }, h("yoo-img", { instant: true, src: this.imageSrc, ignoreHeight: true, ignoreWidth: true, disableAspectRatioCalc: true, allowCloudinary: false, onAnimationEnd: () => this.revealDropzones = true }), this.renderImageOverlay(), this.renderDropzones());
|
128
125
|
}
|
129
126
|
renderDropzones() {
|
130
127
|
var _a, _b;
|
131
128
|
return (_b = (_a = filterDuplicateEntries(this.annotations, 'text')) === null || _a === void 0 ? void 0 : _a.map(a => ({ ...a, type: 'dot' }))) === null || _b === void 0 ? void 0 : _b.map((a, i) => {
|
132
|
-
return !!a && h("div", { class: "dropzone", id: `zone-${i}`, style: getPercentPositionStyle(a), hidden: this.animated && !this.readonly && this.
|
129
|
+
return !!a && h("div", { class: "dropzone", id: `zone-${i}`, style: getPercentPositionStyle(a), hidden: this.animated && !this.readonly && !this.revealDropzones });
|
133
130
|
});
|
134
131
|
}
|
135
132
|
renderInstruction() {
|
136
133
|
return h("section", { id: "instructions" }, translate(this.placeholder));
|
137
134
|
}
|
138
135
|
renderTagsZone() {
|
139
|
-
return h("section", { class: "dropzone", id: "zone-tags" });
|
136
|
+
return h("section", { class: "dropzone", id: "zone-tags", key: "zone-tags" });
|
140
137
|
}
|
141
138
|
renderBanner() {
|
142
139
|
return this.livePreview && !this.readonly && h("yoo-banner", null, h("p", { slot: "content" }));
|