@yoobic/yobi 8.5.11 → 8.5.13
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-form-dynamic.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-input.cjs.entry.js +1 -1
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +5 -5
- package/dist/collection/components/form/form-input/form-input.js +2 -2
- package/dist/collection/components/form/form-input-container/form-input-container.js +1 -1
- package/dist/design-system/yoo-form-dynamic.entry.js +4 -4
- package/dist/design-system/yoo-form-input.entry.js +1 -1
- package/dist/esm/yoo-form-dynamic.entry.js +4 -4
- package/dist/esm/yoo-form-input.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/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/ui/form/form.interface.d.ts +1 -1
- package/package.json +1 -1
@@ -835,7 +835,7 @@ const YooFormDynamicComponent = class {
|
|
835
835
|
commonHelpers.lockSwipes(this.ionSlides, true);
|
836
836
|
}
|
837
837
|
// Disabled this because of the warnings from stencil , not sure we still need it
|
838
|
-
if ((this.showTabs || this.showVerticalTabs) && !this.isLivePreview() && !
|
838
|
+
if ((this.showTabs || this.showVerticalTabs) && !this.isLivePreview() && !this.shouldUseTranslations() && !(this.isMission() && !index$1.isWeb(this.host))) {
|
839
839
|
this.updateState(true);
|
840
840
|
}
|
841
841
|
this.host.classList.remove('no-initial-height');
|
@@ -1010,7 +1010,7 @@ const YooFormDynamicComponent = class {
|
|
1010
1010
|
return this.formType === 'workflow' || this.formType === 'form-creator-preview-workflow';
|
1011
1011
|
}
|
1012
1012
|
isFormCreatorBlock() {
|
1013
|
-
return this.formType === 'form-creator-block';
|
1013
|
+
return this.formType === 'form-creator-block' || this.formType === 'lesson-creator-block';
|
1014
1014
|
}
|
1015
1015
|
shouldUseTranslations() {
|
1016
1016
|
return this.isFormCreatorBlock() || this.formType === 'form-creator-announcement';
|
@@ -2170,7 +2170,7 @@ const YooFormDynamicComponent = class {
|
|
2170
2170
|
}
|
2171
2171
|
}
|
2172
2172
|
onTabSelected(ev) {
|
2173
|
-
if (!this.isLivePreview() && this.
|
2173
|
+
if (!this.isLivePreview() && !this.isFormCreatorBlock()) {
|
2174
2174
|
this.selectedTabIndexState = -1;
|
2175
2175
|
}
|
2176
2176
|
else {
|
@@ -3292,7 +3292,7 @@ const YooFormDynamicComponent = class {
|
|
3292
3292
|
extraAttrs = {
|
3293
3293
|
min: field.min,
|
3294
3294
|
max: field.max,
|
3295
|
-
allowDecimals: field.allowDecimals,
|
3295
|
+
allowDecimals: this.isLesson() ? false : lodash.isFunction(field.allowDecimals) ? field.allowDecimals(this.host) : field.allowDecimals,
|
3296
3296
|
maxCharacters: field.maxCharacters,
|
3297
3297
|
type: field.type === index.FormFieldType.number && index$1.isSamsung() ? index.FormFieldType.text : getInputType(field),
|
3298
3298
|
inputmode: field.type === index.FormFieldType.number && index$1.isSamsung() ? 'numeric' : '',
|
@@ -43,7 +43,7 @@ const YooFormInputComponent = class {
|
|
43
43
|
this.size = 'large';
|
44
44
|
this.initialCheckboxParams = null;
|
45
45
|
this.fireInputChangeEvent = false;
|
46
|
-
this.allowDecimals =
|
46
|
+
this.allowDecimals = true;
|
47
47
|
this.format = 'input';
|
48
48
|
this.checkboxParams = null;
|
49
49
|
this.hostWidth = 0;
|
@@ -635,7 +635,7 @@ export class YooFormDynamicComponent {
|
|
635
635
|
lockSwipes(this.ionSlides, true);
|
636
636
|
}
|
637
637
|
// Disabled this because of the warnings from stencil , not sure we still need it
|
638
|
-
if ((this.showTabs || this.showVerticalTabs) && !this.isLivePreview() && !
|
638
|
+
if ((this.showTabs || this.showVerticalTabs) && !this.isLivePreview() && !this.shouldUseTranslations() && !(this.isMission() && !isWeb(this.host))) {
|
639
639
|
this.updateState(true);
|
640
640
|
}
|
641
641
|
this.host.classList.remove('no-initial-height');
|
@@ -810,7 +810,7 @@ export class YooFormDynamicComponent {
|
|
810
810
|
return this.formType === 'workflow' || this.formType === 'form-creator-preview-workflow';
|
811
811
|
}
|
812
812
|
isFormCreatorBlock() {
|
813
|
-
return this.formType === 'form-creator-block';
|
813
|
+
return this.formType === 'form-creator-block' || this.formType === 'lesson-creator-block';
|
814
814
|
}
|
815
815
|
shouldUseTranslations() {
|
816
816
|
return this.isFormCreatorBlock() || this.formType === 'form-creator-announcement';
|
@@ -1970,7 +1970,7 @@ export class YooFormDynamicComponent {
|
|
1970
1970
|
}
|
1971
1971
|
}
|
1972
1972
|
onTabSelected(ev) {
|
1973
|
-
if (!this.isLivePreview() && this.
|
1973
|
+
if (!this.isLivePreview() && !this.isFormCreatorBlock()) {
|
1974
1974
|
this.selectedTabIndexState = -1;
|
1975
1975
|
}
|
1976
1976
|
else {
|
@@ -3092,7 +3092,7 @@ export class YooFormDynamicComponent {
|
|
3092
3092
|
extraAttrs = {
|
3093
3093
|
min: field.min,
|
3094
3094
|
max: field.max,
|
3095
|
-
allowDecimals: field.allowDecimals,
|
3095
|
+
allowDecimals: this.isLesson() ? false : isFunction(field.allowDecimals) ? field.allowDecimals(this.host) : field.allowDecimals,
|
3096
3096
|
maxCharacters: field.maxCharacters,
|
3097
3097
|
type: field.type === FormFieldType.number && isSamsung() ? FormFieldType.text : getInputType(field),
|
3098
3098
|
inputmode: field.type === FormFieldType.number && isSamsung() ? 'numeric' : '',
|
@@ -5009,7 +5009,7 @@ export class YooFormDynamicComponent {
|
|
5009
5009
|
"mutable": false,
|
5010
5010
|
"complexType": {
|
5011
5011
|
"original": "FormDynamicType",
|
5012
|
-
"resolved": "\"feed\" | \"form-creator-announcement\" | \"form-creator-block\" | \"form-creator-preview\" | \"form-creator-preview-kanban\" | \"form-creator-preview-lesson\" | \"form-creator-preview-workflow\" | \"kanban\" | \"lesson\" | \"lesson-detail\" | \"lesson-question-result\" | \"mission\" | \"mission-validation\" | \"poll\" | \"service\" | \"todo\" | \"visit\" | \"waitlist\" | \"workflow\"",
|
5012
|
+
"resolved": "\"feed\" | \"form-creator-announcement\" | \"form-creator-block\" | \"form-creator-preview\" | \"form-creator-preview-kanban\" | \"form-creator-preview-lesson\" | \"form-creator-preview-workflow\" | \"kanban\" | \"lesson\" | \"lesson-creator-block\" | \"lesson-detail\" | \"lesson-question-result\" | \"mission\" | \"mission-validation\" | \"poll\" | \"service\" | \"todo\" | \"visit\" | \"waitlist\" | \"workflow\"",
|
5013
5013
|
"references": {
|
5014
5014
|
"FormDynamicType": {
|
5015
5015
|
"location": "import",
|
@@ -19,7 +19,7 @@ export class YooFormInputComponent {
|
|
19
19
|
this.size = 'large';
|
20
20
|
this.initialCheckboxParams = null;
|
21
21
|
this.fireInputChangeEvent = false;
|
22
|
-
this.allowDecimals =
|
22
|
+
this.allowDecimals = true;
|
23
23
|
this.format = 'input';
|
24
24
|
this.checkboxParams = null;
|
25
25
|
this.hostWidth = 0;
|
@@ -1354,7 +1354,7 @@ export class YooFormInputComponent {
|
|
1354
1354
|
},
|
1355
1355
|
"attribute": "allow-decimals",
|
1356
1356
|
"reflect": false,
|
1357
|
-
"defaultValue": "
|
1357
|
+
"defaultValue": "true"
|
1358
1358
|
},
|
1359
1359
|
"format": {
|
1360
1360
|
"type": "string",
|
@@ -377,7 +377,7 @@ export class YooFormInputContainerComponent {
|
|
377
377
|
"mutable": false,
|
378
378
|
"complexType": {
|
379
379
|
"original": "FormDynamicType",
|
380
|
-
"resolved": "\"feed\" | \"form-creator-announcement\" | \"form-creator-block\" | \"form-creator-preview\" | \"form-creator-preview-kanban\" | \"form-creator-preview-lesson\" | \"form-creator-preview-workflow\" | \"kanban\" | \"lesson\" | \"lesson-detail\" | \"lesson-question-result\" | \"mission\" | \"mission-validation\" | \"poll\" | \"service\" | \"todo\" | \"visit\" | \"waitlist\" | \"workflow\"",
|
380
|
+
"resolved": "\"feed\" | \"form-creator-announcement\" | \"form-creator-block\" | \"form-creator-preview\" | \"form-creator-preview-kanban\" | \"form-creator-preview-lesson\" | \"form-creator-preview-workflow\" | \"kanban\" | \"lesson\" | \"lesson-creator-block\" | \"lesson-detail\" | \"lesson-question-result\" | \"mission\" | \"mission-validation\" | \"poll\" | \"service\" | \"todo\" | \"visit\" | \"waitlist\" | \"workflow\"",
|
381
381
|
"references": {
|
382
382
|
"FormDynamicType": {
|
383
383
|
"location": "import",
|
@@ -831,7 +831,7 @@ const YooFormDynamicComponent = class {
|
|
831
831
|
lockSwipes(this.ionSlides, true);
|
832
832
|
}
|
833
833
|
// Disabled this because of the warnings from stencil , not sure we still need it
|
834
|
-
if ((this.showTabs || this.showVerticalTabs) && !this.isLivePreview() && !
|
834
|
+
if ((this.showTabs || this.showVerticalTabs) && !this.isLivePreview() && !this.shouldUseTranslations() && !(this.isMission() && !isWeb(this.host))) {
|
835
835
|
this.updateState(true);
|
836
836
|
}
|
837
837
|
this.host.classList.remove('no-initial-height');
|
@@ -1006,7 +1006,7 @@ const YooFormDynamicComponent = class {
|
|
1006
1006
|
return this.formType === 'workflow' || this.formType === 'form-creator-preview-workflow';
|
1007
1007
|
}
|
1008
1008
|
isFormCreatorBlock() {
|
1009
|
-
return this.formType === 'form-creator-block';
|
1009
|
+
return this.formType === 'form-creator-block' || this.formType === 'lesson-creator-block';
|
1010
1010
|
}
|
1011
1011
|
shouldUseTranslations() {
|
1012
1012
|
return this.isFormCreatorBlock() || this.formType === 'form-creator-announcement';
|
@@ -2166,7 +2166,7 @@ const YooFormDynamicComponent = class {
|
|
2166
2166
|
}
|
2167
2167
|
}
|
2168
2168
|
onTabSelected(ev) {
|
2169
|
-
if (!this.isLivePreview() && this.
|
2169
|
+
if (!this.isLivePreview() && !this.isFormCreatorBlock()) {
|
2170
2170
|
this.selectedTabIndexState = -1;
|
2171
2171
|
}
|
2172
2172
|
else {
|
@@ -3288,7 +3288,7 @@ const YooFormDynamicComponent = class {
|
|
3288
3288
|
extraAttrs = {
|
3289
3289
|
min: field.min,
|
3290
3290
|
max: field.max,
|
3291
|
-
allowDecimals: field.allowDecimals,
|
3291
|
+
allowDecimals: this.isLesson() ? false : isFunction(field.allowDecimals) ? field.allowDecimals(this.host) : field.allowDecimals,
|
3292
3292
|
maxCharacters: field.maxCharacters,
|
3293
3293
|
type: field.type === FormFieldType.number && isSamsung() ? FormFieldType.text : getInputType(field),
|
3294
3294
|
inputmode: field.type === FormFieldType.number && isSamsung() ? 'numeric' : '',
|
@@ -39,7 +39,7 @@ const YooFormInputComponent = class {
|
|
39
39
|
this.size = 'large';
|
40
40
|
this.initialCheckboxParams = null;
|
41
41
|
this.fireInputChangeEvent = false;
|
42
|
-
this.allowDecimals =
|
42
|
+
this.allowDecimals = true;
|
43
43
|
this.format = 'input';
|
44
44
|
this.checkboxParams = null;
|
45
45
|
this.hostWidth = 0;
|
@@ -831,7 +831,7 @@ const YooFormDynamicComponent = class {
|
|
831
831
|
lockSwipes(this.ionSlides, true);
|
832
832
|
}
|
833
833
|
// Disabled this because of the warnings from stencil , not sure we still need it
|
834
|
-
if ((this.showTabs || this.showVerticalTabs) && !this.isLivePreview() && !
|
834
|
+
if ((this.showTabs || this.showVerticalTabs) && !this.isLivePreview() && !this.shouldUseTranslations() && !(this.isMission() && !isWeb(this.host))) {
|
835
835
|
this.updateState(true);
|
836
836
|
}
|
837
837
|
this.host.classList.remove('no-initial-height');
|
@@ -1006,7 +1006,7 @@ const YooFormDynamicComponent = class {
|
|
1006
1006
|
return this.formType === 'workflow' || this.formType === 'form-creator-preview-workflow';
|
1007
1007
|
}
|
1008
1008
|
isFormCreatorBlock() {
|
1009
|
-
return this.formType === 'form-creator-block';
|
1009
|
+
return this.formType === 'form-creator-block' || this.formType === 'lesson-creator-block';
|
1010
1010
|
}
|
1011
1011
|
shouldUseTranslations() {
|
1012
1012
|
return this.isFormCreatorBlock() || this.formType === 'form-creator-announcement';
|
@@ -2166,7 +2166,7 @@ const YooFormDynamicComponent = class {
|
|
2166
2166
|
}
|
2167
2167
|
}
|
2168
2168
|
onTabSelected(ev) {
|
2169
|
-
if (!this.isLivePreview() && this.
|
2169
|
+
if (!this.isLivePreview() && !this.isFormCreatorBlock()) {
|
2170
2170
|
this.selectedTabIndexState = -1;
|
2171
2171
|
}
|
2172
2172
|
else {
|
@@ -3288,7 +3288,7 @@ const YooFormDynamicComponent = class {
|
|
3288
3288
|
extraAttrs = {
|
3289
3289
|
min: field.min,
|
3290
3290
|
max: field.max,
|
3291
|
-
allowDecimals: field.allowDecimals,
|
3291
|
+
allowDecimals: this.isLesson() ? false : isFunction(field.allowDecimals) ? field.allowDecimals(this.host) : field.allowDecimals,
|
3292
3292
|
maxCharacters: field.maxCharacters,
|
3293
3293
|
type: field.type === FormFieldType.number && isSamsung() ? FormFieldType.text : getInputType(field),
|
3294
3294
|
inputmode: field.type === FormFieldType.number && isSamsung() ? 'numeric' : '',
|
@@ -39,7 +39,7 @@ const YooFormInputComponent = class {
|
|
39
39
|
this.size = 'large';
|
40
40
|
this.initialCheckboxParams = null;
|
41
41
|
this.fireInputChangeEvent = false;
|
42
|
-
this.allowDecimals =
|
42
|
+
this.allowDecimals = true;
|
43
43
|
this.format = 'input';
|
44
44
|
this.checkboxParams = null;
|
45
45
|
this.hostWidth = 0;
|
@@ -64,7 +64,7 @@ export interface IFormField {
|
|
64
64
|
descriptionDynamic?: IDynamicProperty;
|
65
65
|
caption?: string;
|
66
66
|
sanitizeValue?: boolean;
|
67
|
-
allowDecimals?: boolean;
|
67
|
+
allowDecimals?: boolean | ((form?: HTMLYooFormDynamicElement) => boolean);
|
68
68
|
name?: string;
|
69
69
|
customName?: string;
|
70
70
|
disabled?: boolean | string | ICondition | ICondition[];
|
@@ -53,4 +53,4 @@ export interface IFormSlideData {
|
|
53
53
|
hasFeedback?: boolean;
|
54
54
|
}
|
55
55
|
export declare const MAX_FORM_TRANSLATE_VALUE = 5000;
|
56
|
-
export declare type FormDynamicType = TMissionType | 'workflow' | 'form-creator-preview' | 'form-creator-preview-lesson' | 'form-creator-preview-workflow' | 'form-creator-preview-kanban' | 'form-creator-block' | 'form-creator-announcement' | 'lesson-detail' | 'lesson-question-result' | 'mission-validation' | 'waitlist';
|
56
|
+
export declare type FormDynamicType = TMissionType | 'workflow' | 'form-creator-preview' | 'form-creator-preview-lesson' | 'form-creator-preview-workflow' | 'form-creator-preview-kanban' | 'form-creator-block' | 'form-creator-announcement' | 'lesson-creator-block' | 'lesson-detail' | 'lesson-question-result' | 'mission-validation' | 'waitlist';
|