@yoobic/yobi 8.6.0-0 → 8.6.0-2
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-2317d7c0.js → swiper-822fcf76.js} +1 -1
- package/dist/cjs/yoo-audio-player.cjs.entry.js +3 -0
- package/dist/cjs/yoo-calendar.cjs.entry.js +1 -1
- package/dist/cjs/yoo-card-list.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-document.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-dynamic.cjs.entry.js +1 -0
- package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +12 -7
- package/dist/cjs/yoo-form-videoplayer.cjs.entry.js +4 -0
- package/dist/cjs/{yoo-ion-slides-eca11ec7.js → yoo-ion-slides-9abb9fbc.js} +2 -2
- package/dist/cjs/yoo-ion-slides.cjs.entry.js +1 -1
- package/dist/collection/components/2.molecules/audio-player/audio-player.js +12 -0
- package/dist/collection/components/2.molecules/calendar/calendar.css +9 -0
- package/dist/collection/components/2.molecules/slides/slides.js +1 -1
- package/dist/collection/components/entities/card-list/default/card-list.css +4 -0
- package/dist/collection/components/form/form-audience/form-audience.js +1 -1
- package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +1 -1
- package/dist/collection/components/form/form-barcode/form-barcode.js +1 -1
- package/dist/collection/components/form/form-capture/form-capture.js +1 -1
- package/dist/collection/components/form/form-catalog/form-catalog.js +1 -1
- package/dist/collection/components/form/form-checkbox/form-checkbox.js +1 -1
- package/dist/collection/components/form/form-checklist/form-checklist.js +1 -1
- package/dist/collection/components/form/form-choice/button/form-choice-button.js +1 -1
- package/dist/collection/components/form/form-choice/card/form-choice-card.js +1 -1
- package/dist/collection/components/form/form-choice/chat/form-choice-chat.js +1 -1
- package/dist/collection/components/form/form-choice/image/form-choice-image.js +1 -1
- package/dist/collection/components/form/form-choice/radio/form-choice-radio.js +1 -1
- package/dist/collection/components/form/form-conditions/form-conditions.js +1 -1
- package/dist/collection/components/form/form-daterange/form-daterange.js +1 -1
- package/dist/collection/components/form/form-document/form-document.js +1 -1
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +2 -1
- package/dist/collection/components/form/form-emailreport/form-emailreport.js +1 -1
- package/dist/collection/components/form/form-entity-value-pairs/form-entity-value-pairs.js +1 -1
- package/dist/collection/components/form/form-feed-preview/form-feed-preview.js +1 -1
- package/dist/collection/components/form/form-feedback/form-feedback.js +1 -1
- package/dist/collection/components/form/form-formula/form-formula.js +1 -1
- package/dist/collection/components/form/form-input/form-input.js +1 -1
- package/dist/collection/components/form/form-json/form-json.js +1 -1
- package/dist/collection/components/form/form-location/form-location.js +1 -1
- package/dist/collection/components/form/form-missionfield/form-missionfield.js +1 -1
- package/dist/collection/components/form/form-plan/form-plan.js +1 -1
- package/dist/collection/components/form/form-plan-assign/form-plan-assign.js +1 -1
- package/dist/collection/components/form/form-pricecheck/form-pricecheck.js +1 -1
- package/dist/collection/components/form/form-product-batch/form-product-batch.js +1 -1
- package/dist/collection/components/form/form-qrcode/form-qrcode.js +1 -1
- package/dist/collection/components/form/form-query-builder/form-query-builder.js +1 -1
- package/dist/collection/components/form/form-range/form-range.js +1 -1
- package/dist/collection/components/form/form-shopping/form-shopping.js +1 -1
- package/dist/collection/components/form/form-signature-pad/form-signature-pad.js +1 -1
- package/dist/collection/components/form/form-sorts/form-sorts.js +1 -1
- package/dist/collection/components/form/form-star-rating/form-star-rating.js +1 -1
- package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.css +33 -4
- package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.js +13 -8
- package/dist/collection/components/form/form-table/form-table.js +1 -1
- package/dist/collection/components/form/form-task/form-task.js +1 -1
- package/dist/collection/components/form/form-text-area/form-text-area.js +1 -1
- package/dist/collection/components/form/form-text-editor/form-text-editor.js +1 -1
- package/dist/collection/components/form/form-time/form-time.js +1 -1
- package/dist/collection/components/form/form-timeslots/form-timeslots.js +1 -1
- package/dist/collection/components/form/form-todo/form-todo.js +1 -1
- package/dist/collection/components/form/form-toggle/form-toggle.js +1 -1
- package/dist/collection/components/form/form-uploader/form-uploader.js +1 -1
- package/dist/collection/components/form/form-videoplayer/form-videoplayer.js +13 -0
- package/dist/collection/components/form/form-wiki/form-wiki.js +1 -1
- package/dist/collection/components/grid/grid/grid.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/{esm/swiper-7cb35276.js → design-system/swiper-e3fac676.js} +2 -2
- package/dist/design-system/yoo-audio-player.entry.js +3 -0
- package/dist/design-system/yoo-calendar.entry.js +1 -1
- package/dist/design-system/yoo-card-list.entry.js +1 -1
- package/dist/design-system/yoo-form-document.entry.js +1 -1
- package/dist/design-system/yoo-form-dynamic.entry.js +2 -1
- package/dist/design-system/yoo-form-swipe-cards.entry.js +13 -8
- package/dist/design-system/yoo-form-videoplayer.entry.js +4 -0
- package/dist/{esm/yoo-ion-slides-599081f7.js → design-system/yoo-ion-slides-c320435f.js} +2 -2
- package/dist/design-system/yoo-ion-slides.entry.js +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/{design-system/swiper-7cb35276.js → esm/swiper-e3fac676.js} +2 -2
- package/dist/esm/yoo-audio-player.entry.js +3 -0
- package/dist/esm/yoo-calendar.entry.js +1 -1
- package/dist/esm/yoo-card-list.entry.js +1 -1
- package/dist/esm/yoo-form-document.entry.js +1 -1
- package/dist/esm/yoo-form-dynamic.entry.js +2 -1
- package/dist/esm/yoo-form-swipe-cards.entry.js +13 -8
- package/dist/esm/yoo-form-videoplayer.entry.js +4 -0
- package/dist/{design-system/yoo-ion-slides-599081f7.js → esm/yoo-ion-slides-c320435f.js} +2 -2
- package/dist/esm/yoo-ion-slides.entry.js +1 -1
- package/dist/types/components/2.molecules/audio-player/audio-player.d.ts +1 -0
- package/dist/types/components/form/form-swipe-cards/form-swipe-cards.d.ts +1 -0
- package/dist/types/components/form/form-videoplayer/form-videoplayer.d.ts +1 -0
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/file/file.interface.d.ts +1 -0
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/folder/folder.interface.d.ts +1 -0
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/plan/plan.interface.d.ts +3 -0
- package/package.json +1 -1
@@ -613,7 +613,7 @@ export class YooFormAudienceComponent {
|
|
613
613
|
},
|
614
614
|
"validators": {
|
615
615
|
"type": "unknown",
|
616
|
-
"mutable":
|
616
|
+
"mutable": true,
|
617
617
|
"complexType": {
|
618
618
|
"original": "(Validator<IAudienceQuery> | IValidatorEntry)[]",
|
619
619
|
"resolved": "(IValidatorEntry | Validator<IAudienceQuery>)[]",
|
@@ -2365,7 +2365,7 @@ export class YooFormAutocompleteComponent {
|
|
2365
2365
|
},
|
2366
2366
|
"validators": {
|
2367
2367
|
"type": "unknown",
|
2368
|
-
"mutable":
|
2368
|
+
"mutable": true,
|
2369
2369
|
"complexType": {
|
2370
2370
|
"original": "(Validator<any> | IValidatorEntry)[]",
|
2371
2371
|
"resolved": "(IValidatorEntry | Validator<any>)[]",
|
@@ -75,7 +75,7 @@ export class YooFormBarcodeComponent {
|
|
75
75
|
},
|
76
76
|
"validators": {
|
77
77
|
"type": "unknown",
|
78
|
-
"mutable":
|
78
|
+
"mutable": true,
|
79
79
|
"complexType": {
|
80
80
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
81
81
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -2404,7 +2404,7 @@ export class YooFormCaptureComponent {
|
|
2404
2404
|
},
|
2405
2405
|
"validators": {
|
2406
2406
|
"type": "unknown",
|
2407
|
-
"mutable":
|
2407
|
+
"mutable": true,
|
2408
2408
|
"complexType": {
|
2409
2409
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
2410
2410
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -329,7 +329,7 @@ export class YooFormCatalogComponent {
|
|
329
329
|
},
|
330
330
|
"validators": {
|
331
331
|
"type": "unknown",
|
332
|
-
"mutable":
|
332
|
+
"mutable": true,
|
333
333
|
"complexType": {
|
334
334
|
"original": "(Validator<{ [productRef: string]: number }> | IValidatorEntry)[]",
|
335
335
|
"resolved": "(IValidatorEntry | Validator<{ [productRef: string]: number; }>)[]",
|
@@ -150,7 +150,7 @@ export class YooFormCheckboxComponent {
|
|
150
150
|
return {
|
151
151
|
"validators": {
|
152
152
|
"type": "unknown",
|
153
|
-
"mutable":
|
153
|
+
"mutable": true,
|
154
154
|
"complexType": {
|
155
155
|
"original": "(Validator<boolean> | IValidatorEntry)[]",
|
156
156
|
"resolved": "(IValidatorEntry | Validator<boolean>)[]",
|
@@ -141,7 +141,7 @@ export class YooFormChecklistComponent {
|
|
141
141
|
},
|
142
142
|
"validators": {
|
143
143
|
"type": "unknown",
|
144
|
-
"mutable":
|
144
|
+
"mutable": true,
|
145
145
|
"complexType": {
|
146
146
|
"original": "(Validator<IFormChecklistValue> | IValidatorEntry)[]",
|
147
147
|
"resolved": "(IValidatorEntry | Validator<IFormChecklistValue>)[]",
|
@@ -140,7 +140,7 @@ export class YooFormChoiceButtonComponent {
|
|
140
140
|
},
|
141
141
|
"validators": {
|
142
142
|
"type": "unknown",
|
143
|
-
"mutable":
|
143
|
+
"mutable": true,
|
144
144
|
"complexType": {
|
145
145
|
"original": "(Validator<any[]> | IValidatorEntry)[]",
|
146
146
|
"resolved": "(IValidatorEntry | Validator<any[]>)[]",
|
@@ -164,7 +164,7 @@ export class YooFormChoiceCardComponent {
|
|
164
164
|
},
|
165
165
|
"validators": {
|
166
166
|
"type": "unknown",
|
167
|
-
"mutable":
|
167
|
+
"mutable": true,
|
168
168
|
"complexType": {
|
169
169
|
"original": "(Validator<any[]> | IValidatorEntry)[]",
|
170
170
|
"resolved": "(IValidatorEntry | Validator<any[]>)[]",
|
@@ -186,7 +186,7 @@ export class YooFormChoiceChatComponent {
|
|
186
186
|
},
|
187
187
|
"validators": {
|
188
188
|
"type": "unknown",
|
189
|
-
"mutable":
|
189
|
+
"mutable": true,
|
190
190
|
"complexType": {
|
191
191
|
"original": "(Validator<any[]> | IValidatorEntry)[]",
|
192
192
|
"resolved": "(IValidatorEntry | Validator<any[]>)[]",
|
@@ -126,7 +126,7 @@ export class YooFormChoiceImageComponent {
|
|
126
126
|
},
|
127
127
|
"validators": {
|
128
128
|
"type": "unknown",
|
129
|
-
"mutable":
|
129
|
+
"mutable": true,
|
130
130
|
"complexType": {
|
131
131
|
"original": "(Validator<any[]> | IValidatorEntry)[]",
|
132
132
|
"resolved": "(IValidatorEntry | Validator<any[]>)[]",
|
@@ -173,7 +173,7 @@ export class YooFormChoiceRadioComponent {
|
|
173
173
|
},
|
174
174
|
"validators": {
|
175
175
|
"type": "unknown",
|
176
|
-
"mutable":
|
176
|
+
"mutable": true,
|
177
177
|
"complexType": {
|
178
178
|
"original": "(Validator<any[]> | IValidatorEntry)[]",
|
179
179
|
"resolved": "(IValidatorEntry | Validator<any[]>)[]",
|
@@ -175,7 +175,7 @@ export class YooFormConditionsComponent {
|
|
175
175
|
},
|
176
176
|
"validators": {
|
177
177
|
"type": "unknown",
|
178
|
-
"mutable":
|
178
|
+
"mutable": true,
|
179
179
|
"complexType": {
|
180
180
|
"original": "Array<Validator<string> | IValidatorEntry>",
|
181
181
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -185,7 +185,7 @@ export class YooFormDateRangeComponent {
|
|
185
185
|
},
|
186
186
|
"validators": {
|
187
187
|
"type": "unknown",
|
188
|
-
"mutable":
|
188
|
+
"mutable": true,
|
189
189
|
"complexType": {
|
190
190
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
191
191
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -113,7 +113,7 @@ export class YooFormDocumentComponent {
|
|
113
113
|
}
|
114
114
|
}
|
115
115
|
renderCardFile() {
|
116
|
-
return (h("yoo-card-file", { isVisible: this.isVisible, file: this.document }));
|
116
|
+
return (h("yoo-card-file", { type: getType(this.document), isVisible: this.isVisible, file: this.document }));
|
117
117
|
}
|
118
118
|
renderBase() {
|
119
119
|
var _a;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FormFieldType, IncentivePartType, QUIZZ_COMPONENTS_FORM_FIELDS } from '@shared/interfaces';
|
2
|
-
import { answerIsValid, cancelRequestInterval, closeModal, debounce, disableKeyboardResize, enableKeyboardResize, evalInContext, findField, findParent, getConfidenceDescriptionKey, getConfidenceEmoji, getCssColor, getDistance, getFieldReplacement, getFieldValue, getModalAnimation, getSession, hasValue, isAndroid, isAnimationsDisabled, isChromeForIos, isConfidenceAssessment, isContentOnly, isFieldWithDirectValue, isFieldWithNoValue, isIonic, isIOS, isIphoneX, isKeyboardResizeModeInactive, isNativeMobile, isNullOrUndefined, isPhotoOrMultiPhotosField, isPresent, isQuiz, isSafari, isSamsung, isTimedQuiz, isValueATranslationKey, isVisible, isWeb, pipes, requestInterval, showContextMenu, showModal, showToast, slenderizeObject, translate, translateMulti, updateDatasetFilters } from '@shared/utils';
|
2
|
+
import { answerIsValid, cancelRequestInterval, closeModal, debounce, disableKeyboardResize, dispatchCustomEvent, enableKeyboardResize, evalInContext, findField, findParent, getConfidenceDescriptionKey, getConfidenceEmoji, getCssColor, getDistance, getFieldReplacement, getFieldValue, getModalAnimation, getSession, hasValue, isAndroid, isAnimationsDisabled, isChromeForIos, isConfidenceAssessment, isContentOnly, isFieldWithDirectValue, isFieldWithNoValue, isIonic, isIOS, isIphoneX, isKeyboardResizeModeInactive, isNativeMobile, isNullOrUndefined, isPhotoOrMultiPhotosField, isPresent, isQuiz, isSafari, isSamsung, isTimedQuiz, isValueATranslationKey, isVisible, isWeb, pipes, requestInterval, showContextMenu, showModal, showToast, slenderizeObject, translate, translateMulti, updateDatasetFilters } from '@shared/utils';
|
3
3
|
import { forceUpdate, h, Host } from '@stencil/core';
|
4
4
|
import { assign, cloneDeep, compact, findLastIndex, flatten, get, groupBy, isArray, isEmpty, isEqual, isFunction, isNumber, isObject, isString, keys, orderBy, pick, range, result, uniqBy } from 'lodash-es';
|
5
5
|
import { getMissionStatusIconName } from '../../../feature-operate/campaign/helpers/operation-helpers';
|
@@ -1477,6 +1477,7 @@ export class YooFormDynamicComponent {
|
|
1477
1477
|
ev.stopPropagation();
|
1478
1478
|
this.cleanHiddenReadonlyFieldsByInvalidRules();
|
1479
1479
|
this.save.emit(this.currentData);
|
1480
|
+
dispatchCustomEvent('pauseMedia', window);
|
1480
1481
|
}
|
1481
1482
|
onWorflowReject(ev) {
|
1482
1483
|
ev.stopPropagation();
|
@@ -123,7 +123,7 @@ export class YooFormEmailreportComponent {
|
|
123
123
|
},
|
124
124
|
"validators": {
|
125
125
|
"type": "unknown",
|
126
|
-
"mutable":
|
126
|
+
"mutable": true,
|
127
127
|
"complexType": {
|
128
128
|
"original": "(Validator<string[]> | IValidatorEntry)[]",
|
129
129
|
"resolved": "(IValidatorEntry | Validator<string[]>)[]",
|
@@ -357,7 +357,7 @@ export class YooFormEntityValuePairsComponent {
|
|
357
357
|
},
|
358
358
|
"validators": {
|
359
359
|
"type": "unknown",
|
360
|
-
"mutable":
|
360
|
+
"mutable": true,
|
361
361
|
"complexType": {
|
362
362
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
363
363
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -46,7 +46,7 @@ export class YooFormFeedPreviewComponent {
|
|
46
46
|
},
|
47
47
|
"validators": {
|
48
48
|
"type": "unknown",
|
49
|
-
"mutable":
|
49
|
+
"mutable": true,
|
50
50
|
"complexType": {
|
51
51
|
"original": "Array<Validator<string> | IValidatorEntry>",
|
52
52
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -98,7 +98,7 @@ export class YooFormFeedbackComponent {
|
|
98
98
|
},
|
99
99
|
"validators": {
|
100
100
|
"type": "unknown",
|
101
|
-
"mutable":
|
101
|
+
"mutable": true,
|
102
102
|
"complexType": {
|
103
103
|
"original": "(Validator<number> | IValidatorEntry)[]",
|
104
104
|
"resolved": "(IValidatorEntry | Validator<number>)[]",
|
@@ -49,7 +49,7 @@ export class YooFormFormulaComponent {
|
|
49
49
|
},
|
50
50
|
"validators": {
|
51
51
|
"type": "unknown",
|
52
|
-
"mutable":
|
52
|
+
"mutable": true,
|
53
53
|
"complexType": {
|
54
54
|
"original": "(Validator<number> | IValidatorEntry)[]",
|
55
55
|
"resolved": "(IValidatorEntry | Validator<number>)[]",
|
@@ -490,7 +490,7 @@ export class YooFormInputComponent {
|
|
490
490
|
return {
|
491
491
|
"validators": {
|
492
492
|
"type": "unknown",
|
493
|
-
"mutable":
|
493
|
+
"mutable": true,
|
494
494
|
"complexType": {
|
495
495
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
496
496
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -127,7 +127,7 @@ export class YooFormJsonComponent {
|
|
127
127
|
},
|
128
128
|
"validators": {
|
129
129
|
"type": "unknown",
|
130
|
-
"mutable":
|
130
|
+
"mutable": true,
|
131
131
|
"complexType": {
|
132
132
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
133
133
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -105,7 +105,7 @@ export class YooFormLocationComponent {
|
|
105
105
|
},
|
106
106
|
"validators": {
|
107
107
|
"type": "unknown",
|
108
|
-
"mutable":
|
108
|
+
"mutable": true,
|
109
109
|
"complexType": {
|
110
110
|
"original": "(Validator<ILocation | ILocation[]> | IValidatorEntry)[]",
|
111
111
|
"resolved": "(IValidatorEntry | Validator<ILocation | ILocation[]>)[]",
|
@@ -239,7 +239,7 @@ export class YooFormMissionfieldComponent {
|
|
239
239
|
},
|
240
240
|
"validators": {
|
241
241
|
"type": "unknown",
|
242
|
-
"mutable":
|
242
|
+
"mutable": true,
|
243
243
|
"complexType": {
|
244
244
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
245
245
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -153,7 +153,7 @@ export class YooFormPlanComponent {
|
|
153
153
|
},
|
154
154
|
"validators": {
|
155
155
|
"type": "unknown",
|
156
|
-
"mutable":
|
156
|
+
"mutable": true,
|
157
157
|
"complexType": {
|
158
158
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
159
159
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -116,7 +116,7 @@ export class YooFormPlanAssignComponent {
|
|
116
116
|
},
|
117
117
|
"validators": {
|
118
118
|
"type": "unknown",
|
119
|
-
"mutable":
|
119
|
+
"mutable": true,
|
120
120
|
"complexType": {
|
121
121
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
122
122
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -323,7 +323,7 @@ export class YooFormPricecheckComponent {
|
|
323
323
|
},
|
324
324
|
"validators": {
|
325
325
|
"type": "unknown",
|
326
|
-
"mutable":
|
326
|
+
"mutable": true,
|
327
327
|
"complexType": {
|
328
328
|
"original": "(Validator<{ [productRef: string]: number }> | IValidatorEntry)[]",
|
329
329
|
"resolved": "(IValidatorEntry | Validator<{ [productRef: string]: number; }>)[]",
|
@@ -80,7 +80,7 @@ export class YooFormProductBatchComponent {
|
|
80
80
|
},
|
81
81
|
"validators": {
|
82
82
|
"type": "unknown",
|
83
|
-
"mutable":
|
83
|
+
"mutable": true,
|
84
84
|
"complexType": {
|
85
85
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
86
86
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -72,7 +72,7 @@ export class YooFormQrcodeComponent {
|
|
72
72
|
return {
|
73
73
|
"validators": {
|
74
74
|
"type": "unknown",
|
75
|
-
"mutable":
|
75
|
+
"mutable": true,
|
76
76
|
"complexType": {
|
77
77
|
"original": "Array<Validator<string> | IValidatorEntry>",
|
78
78
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -90,7 +90,7 @@ export class YooFormQueryBuilderComponent {
|
|
90
90
|
},
|
91
91
|
"validators": {
|
92
92
|
"type": "unknown",
|
93
|
-
"mutable":
|
93
|
+
"mutable": true,
|
94
94
|
"complexType": {
|
95
95
|
"original": "Array<Validator<string> | IValidatorEntry>",
|
96
96
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -135,7 +135,7 @@ export class YooFormRangeComponent {
|
|
135
135
|
},
|
136
136
|
"validators": {
|
137
137
|
"type": "unknown",
|
138
|
-
"mutable":
|
138
|
+
"mutable": true,
|
139
139
|
"complexType": {
|
140
140
|
"original": "(Validator<IRangeValue> | IValidatorEntry)[]",
|
141
141
|
"resolved": "(IValidatorEntry | Validator<IRangeValue>)[]",
|
@@ -134,7 +134,7 @@ export class YooFormShoppingComponent {
|
|
134
134
|
},
|
135
135
|
"validators": {
|
136
136
|
"type": "unknown",
|
137
|
-
"mutable":
|
137
|
+
"mutable": true,
|
138
138
|
"complexType": {
|
139
139
|
"original": "(Validator<{ [productRef: string]: number }> | IValidatorEntry)[]",
|
140
140
|
"resolved": "(IValidatorEntry | Validator<{ [productRef: string]: number; }>)[]",
|
@@ -68,7 +68,7 @@ export class YooFormSignaturePadComponent {
|
|
68
68
|
},
|
69
69
|
"validators": {
|
70
70
|
"type": "unknown",
|
71
|
-
"mutable":
|
71
|
+
"mutable": true,
|
72
72
|
"complexType": {
|
73
73
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
74
74
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -90,7 +90,7 @@ export class YooFormQueryBuilderComponent {
|
|
90
90
|
},
|
91
91
|
"validators": {
|
92
92
|
"type": "unknown",
|
93
|
-
"mutable":
|
93
|
+
"mutable": true,
|
94
94
|
"complexType": {
|
95
95
|
"original": "Array<Validator<string> | IValidatorEntry>",
|
96
96
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -108,7 +108,7 @@ export class YooFormStarRatingComponent {
|
|
108
108
|
},
|
109
109
|
"validators": {
|
110
110
|
"type": "unknown",
|
111
|
-
"mutable":
|
111
|
+
"mutable": true,
|
112
112
|
"complexType": {
|
113
113
|
"original": "(Validator<number> | IValidatorEntry)[]",
|
114
114
|
"resolved": "(IValidatorEntry | Validator<number>)[]",
|
@@ -515,7 +515,6 @@ svg:not(:root) {
|
|
515
515
|
:host(:not([readonly])) #game {
|
516
516
|
display: grid;
|
517
517
|
grid-template-rows: calc(min(65vw, 16rem) * 4 / 3 + 6%) auto;
|
518
|
-
overflow: hidden auto;
|
519
518
|
}
|
520
519
|
:host(:not([readonly])) #game #background {
|
521
520
|
position: relative;
|
@@ -706,9 +705,13 @@ svg:not(:root) {
|
|
706
705
|
:host([view=instructions]) main {
|
707
706
|
grid-template-rows: 1fr auto;
|
708
707
|
}
|
708
|
+
:host([view=instructions]) main #instructions {
|
709
|
+
overflow-y: auto;
|
710
|
+
}
|
709
711
|
:host([view=instructions]) main #instructions #header {
|
710
712
|
display: flex;
|
711
713
|
flex-direction: column;
|
714
|
+
word-break: break-word;
|
712
715
|
}
|
713
716
|
:host([view=instructions]) main #instructions #header #title {
|
714
717
|
font-weight: bold;
|
@@ -749,6 +752,14 @@ svg:not(:root) {
|
|
749
752
|
--outer-container-padding: cssvar(spacing-16) cssvar(spacing-16);
|
750
753
|
width: calc(100% - var(--spacing-16, 1rem));
|
751
754
|
}
|
755
|
+
:host([view=instructions]) main #start {
|
756
|
+
position: absolute;
|
757
|
+
display: flex;
|
758
|
+
align-items: center;
|
759
|
+
justify-content: center;
|
760
|
+
width: 100%;
|
761
|
+
background: var(--light, #ffffff);
|
762
|
+
}
|
752
763
|
:host([view=instructions]) main yoo-button {
|
753
764
|
align-items: flex-end;
|
754
765
|
}
|
@@ -763,10 +774,21 @@ svg:not(:root) {
|
|
763
774
|
font-weight: bold;
|
764
775
|
font-size: var(--font-size-28, 1.75rem);
|
765
776
|
}
|
766
|
-
:host(.mobile[view=instructions])
|
767
|
-
|
777
|
+
:host(.mobile[view=instructions]) #instructions #categories {
|
778
|
+
padding-bottom: calc(var(--spacing-64, 4rem));
|
779
|
+
}
|
780
|
+
:host(.mobile[view=instructions]) #start {
|
781
|
+
bottom: calc(var(--spacing-08, 0.5rem) * -1);
|
782
|
+
height: 5.875rem;
|
783
|
+
}
|
784
|
+
:host(.mobile[view=instructions]) #start yoo-button {
|
785
|
+
width: 100%;
|
786
|
+
margin-bottom: var(--safe-area-inset-bottom);
|
768
787
|
}
|
769
788
|
|
789
|
+
:host(.web[view=instructions]) #instructions {
|
790
|
+
height: calc(100% - (3.875rem - var(--spacing-16, 1rem)));
|
791
|
+
}
|
770
792
|
:host(.web[view=instructions]) yoo-icon[name=swipe-explanation] {
|
771
793
|
width: 5rem;
|
772
794
|
height: 5rem;
|
@@ -774,13 +796,19 @@ svg:not(:root) {
|
|
774
796
|
--inner-width: 5rem;
|
775
797
|
--inner-height: 5rem;
|
776
798
|
}
|
777
|
-
:host(.web[view=instructions])
|
799
|
+
:host(.web[view=instructions]) #start {
|
800
|
+
bottom: calc(var(--spacing-16, 1rem) * -1);
|
801
|
+
height: 3.875rem;
|
802
|
+
}
|
803
|
+
:host(.web[view=instructions]) #start yoo-button {
|
804
|
+
width: fit-content;
|
778
805
|
margin-right: var(--spacing-16, 1rem);
|
779
806
|
margin-left: auto;
|
780
807
|
}
|
781
808
|
|
782
809
|
:host(.web[view=game]) main {
|
783
810
|
grid-template-rows: auto 1fr;
|
811
|
+
overflow: hidden auto;
|
784
812
|
}
|
785
813
|
:host(.web[view=game]) main #actions {
|
786
814
|
top: 109%;
|
@@ -800,6 +828,7 @@ svg:not(:root) {
|
|
800
828
|
padding: var(--spacing-08, 0.5rem) var(--spacing-16, 1rem);
|
801
829
|
line-height: 1.75;
|
802
830
|
text-align: center;
|
831
|
+
word-break: break-word;
|
803
832
|
background-color: var(--stable-ultralight, #fafafa);
|
804
833
|
}
|
805
834
|
:host(.web) #header #title {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SwipeCardsDirection, SwipeCardsMode } from '@shared/interfaces';
|
2
|
-
import { Draggable, findParent, getMedia, getUUID, gsapSet, gsapTimeline, gsapTo, isCloudinaryLink, isWeb, Power1, translate, translateMulti } from '@shared/utils';
|
2
|
+
import { Draggable, findParent, getMedia, getUUID, gsapSet, gsapTimeline, gsapTo, isCloudinaryLink, isIOS, isNativeMobile, isWeb, Power1, translate, translateMulti } from '@shared/utils';
|
3
3
|
import { forceUpdate, h, Host } from '@stencil/core';
|
4
4
|
import { clamp, inRange, isEqual, shuffle } from 'lodash-es';
|
5
5
|
import { getAppContext } from '../../../utils/helpers/common-helpers';
|
@@ -171,9 +171,9 @@ export class YooFormSwipeCardsComponent {
|
|
171
171
|
this.hasDataChanged = false;
|
172
172
|
this.initDraggable();
|
173
173
|
setTimeout(() => {
|
174
|
-
if (this.
|
175
|
-
this.
|
176
|
-
top: this.
|
174
|
+
if (this.mainElement.scrollHeight > this.mainElement.clientHeight) {
|
175
|
+
this.mainElement.scrollTo({
|
176
|
+
top: this.mainElement.scrollHeight,
|
177
177
|
behavior: 'smooth'
|
178
178
|
});
|
179
179
|
}
|
@@ -291,6 +291,11 @@ export class YooFormSwipeCardsComponent {
|
|
291
291
|
swipeAnimation.fromTo(this.buttons.left, 1, { scale: 1.5 }, { scale: 1 }, 0).fromTo(this.buttons.right, 1, { scale: 1 }, { scale: 1.5 }, 1).progress(0.5);
|
292
292
|
const onStartSwiping = () => {
|
293
293
|
if (isSwipeable(cardElement)) {
|
294
|
+
const { width, height } = cardElement.getBoundingClientRect();
|
295
|
+
isNativeMobile() && isIOS() && Object.assign(cardElement.style, {
|
296
|
+
width: `${width}px`,
|
297
|
+
height: `${height}px`
|
298
|
+
});
|
294
299
|
returnedAnimation === null || returnedAnimation === void 0 ? void 0 : returnedAnimation.kill();
|
295
300
|
}
|
296
301
|
};
|
@@ -421,11 +426,11 @@ export class YooFormSwipeCardsComponent {
|
|
421
426
|
}
|
422
427
|
renderStartButton() {
|
423
428
|
return (!this.readonly &&
|
424
|
-
this.showInstructionView && (h("yoo-button", { disabled: !this.hasData || !this.isDataValid, size: isWeb(this.host) ? 'medium' : 'large', color: "app-color", onClick: () => {
|
429
|
+
this.showInstructionView && (h("section", { id: "start" }, h("yoo-button", { disabled: !this.hasData || !this.isDataValid, size: isWeb(this.host) ? 'medium' : 'large', color: "app-color", onClick: () => {
|
425
430
|
this.revealCards = true;
|
426
431
|
this.showInstructionView = false;
|
427
432
|
this.displayFooterElement();
|
428
|
-
} }, translate('START'))));
|
433
|
+
} }, translate('START')))));
|
429
434
|
}
|
430
435
|
renderInstructions() {
|
431
436
|
return [h("section", { id: "instructions" }, this.renderHeaderInstructions()), this.renderStartButton()];
|
@@ -451,7 +456,7 @@ export class YooFormSwipeCardsComponent {
|
|
451
456
|
!this.readonly && (h("yoo-banner", null, h("p", { slot: "content" }))));
|
452
457
|
}
|
453
458
|
renderMain() {
|
454
|
-
return h("main",
|
459
|
+
return h("main", { ref: (el) => this.mainElement = el }, !this.readonly && (this.showInstructionView ? this.renderInstructions() : this.renderGame()));
|
455
460
|
}
|
456
461
|
render() {
|
457
462
|
return (h(Host, { class: { ...getAppContext(this.host), 'swiper-no-swiping': !this.readonly }, ...{ view: this.showInstructionView ? 'instructions' : 'game' } }, this.renderBanner(), this.renderMain(), this.renderSummary()));
|
@@ -556,7 +561,7 @@ export class YooFormSwipeCardsComponent {
|
|
556
561
|
},
|
557
562
|
"validators": {
|
558
563
|
"type": "unknown",
|
559
|
-
"mutable":
|
564
|
+
"mutable": true,
|
560
565
|
"complexType": {
|
561
566
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
562
567
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -229,7 +229,7 @@ export class YooFormTableComponent {
|
|
229
229
|
},
|
230
230
|
"validators": {
|
231
231
|
"type": "unknown",
|
232
|
-
"mutable":
|
232
|
+
"mutable": true,
|
233
233
|
"complexType": {
|
234
234
|
"original": "Array<Validator<string> | IValidatorEntry>",
|
235
235
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -164,7 +164,7 @@ export class YooFormTaskComponent {
|
|
164
164
|
},
|
165
165
|
"validators": {
|
166
166
|
"type": "unknown",
|
167
|
-
"mutable":
|
167
|
+
"mutable": true,
|
168
168
|
"complexType": {
|
169
169
|
"original": "(Validator<ITodoTaskSimple[]> | IValidatorEntry)[]",
|
170
170
|
"resolved": "(IValidatorEntry | Validator<ITodoTaskSimple[]>)[]",
|
@@ -429,7 +429,7 @@ export class YooFormTextAreaComponent {
|
|
429
429
|
return {
|
430
430
|
"validators": {
|
431
431
|
"type": "unknown",
|
432
|
-
"mutable":
|
432
|
+
"mutable": true,
|
433
433
|
"complexType": {
|
434
434
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
435
435
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -809,7 +809,7 @@ export class YooFormTextEditorComponent {
|
|
809
809
|
},
|
810
810
|
"validators": {
|
811
811
|
"type": "unknown",
|
812
|
-
"mutable":
|
812
|
+
"mutable": true,
|
813
813
|
"complexType": {
|
814
814
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
815
815
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -181,7 +181,7 @@ export class YooFormTimeComponent {
|
|
181
181
|
},
|
182
182
|
"validators": {
|
183
183
|
"type": "unknown",
|
184
|
-
"mutable":
|
184
|
+
"mutable": true,
|
185
185
|
"complexType": {
|
186
186
|
"original": "(Validator<string> | IValidatorEntry)[]",
|
187
187
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -191,7 +191,7 @@ export class YooFormTimeslotsComponent {
|
|
191
191
|
},
|
192
192
|
"validators": {
|
193
193
|
"type": "unknown",
|
194
|
-
"mutable":
|
194
|
+
"mutable": true,
|
195
195
|
"complexType": {
|
196
196
|
"original": "Array<Validator<string> | IValidatorEntry>",
|
197
197
|
"resolved": "(IValidatorEntry | Validator<string>)[]",
|
@@ -135,7 +135,7 @@ export class YooFormTodoComponent {
|
|
135
135
|
},
|
136
136
|
"validators": {
|
137
137
|
"type": "unknown",
|
138
|
-
"mutable":
|
138
|
+
"mutable": true,
|
139
139
|
"complexType": {
|
140
140
|
"original": "(Validator<ITodo> | IValidatorEntry)[]",
|
141
141
|
"resolved": "(IValidatorEntry | Validator<ITodo>)[]",
|
@@ -92,7 +92,7 @@ export class YooFormToggleComponent {
|
|
92
92
|
return {
|
93
93
|
"validators": {
|
94
94
|
"type": "unknown",
|
95
|
-
"mutable":
|
95
|
+
"mutable": true,
|
96
96
|
"complexType": {
|
97
97
|
"original": "(Validator<boolean> | IValidatorEntry)[]",
|
98
98
|
"resolved": "(IValidatorEntry | Validator<boolean>)[]",
|
@@ -353,7 +353,7 @@ export class YooFormUploaderComponent {
|
|
353
353
|
},
|
354
354
|
"validators": {
|
355
355
|
"type": "unknown",
|
356
|
-
"mutable":
|
356
|
+
"mutable": true,
|
357
357
|
"complexType": {
|
358
358
|
"original": "(Validator<boolean> | IValidatorEntry)[]",
|
359
359
|
"resolved": "(IValidatorEntry | Validator<boolean>)[]",
|