valtech-components 4.0.1004 → 4.0.1006
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/esm2022/lib/components/organisms/field-schema-editor/field-schema-editor.component.mjs +1 -3
- package/esm2022/lib/components/organisms/survey-builder/survey-builder.component.mjs +21 -9
- package/esm2022/lib/components/organisms/survey-builder/survey-builder.i18n.mjs +9 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +29 -11
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/survey-builder/survey-builder.component.d.ts +2 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -70,7 +70,7 @@ import fixWebmDuration from 'fix-webm-duration';
|
|
|
70
70
|
* Current version of valtech-components.
|
|
71
71
|
* This is automatically updated during the publish process.
|
|
72
72
|
*/
|
|
73
|
-
const VERSION = '4.0.
|
|
73
|
+
const VERSION = '4.0.1006';
|
|
74
74
|
|
|
75
75
|
function evaluateValtechAccess(rule, context, features = {}, visitedFeatures = new Set()) {
|
|
76
76
|
if (rule == null)
|
|
@@ -40185,7 +40185,6 @@ class FieldSchemaEditorComponent {
|
|
|
40185
40185
|
[props]="{
|
|
40186
40186
|
control: requiredControl,
|
|
40187
40187
|
label: t('requiredLabel'),
|
|
40188
|
-
justify: 'space-between',
|
|
40189
40188
|
state: state(),
|
|
40190
40189
|
}"
|
|
40191
40190
|
/>
|
|
@@ -40258,7 +40257,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
40258
40257
|
[props]="{
|
|
40259
40258
|
control: requiredControl,
|
|
40260
40259
|
label: t('requiredLabel'),
|
|
40261
|
-
justify: 'space-between',
|
|
40262
40260
|
state: state(),
|
|
40263
40261
|
}"
|
|
40264
40262
|
/>
|
|
@@ -40718,6 +40716,9 @@ const SURVEY_BUILDER_I18N = {
|
|
|
40718
40716
|
successTitlePlaceholder: 'Ej: Gracias por responder',
|
|
40719
40717
|
successMessageLabel: 'Mensaje de agradecimiento',
|
|
40720
40718
|
successMessagePlaceholder: 'Ej: Tu respuesta quedó registrada',
|
|
40719
|
+
successOptionalNote: 'Opcional. Puedes dejar estos valores por defecto o personalizarlos.',
|
|
40720
|
+
defaultSuccessTitle: 'Gracias por responder',
|
|
40721
|
+
defaultSuccessMessage: 'Tu respuesta quedó registrada. Gracias por ayudarnos a mejorar.',
|
|
40721
40722
|
successImageLabel: 'Imagen de cierre',
|
|
40722
40723
|
successImagePlaceholder: 'URL de la imagen que se muestra al terminar',
|
|
40723
40724
|
questionsLabel: 'Preguntas',
|
|
@@ -40742,6 +40743,7 @@ const SURVEY_BUILDER_I18N = {
|
|
|
40742
40743
|
stepQuestions: 'Preguntas',
|
|
40743
40744
|
stepClose: 'Cierre',
|
|
40744
40745
|
stepReview: 'Revisar',
|
|
40746
|
+
wizardStepsLabel: 'Pasos para crear la encuesta',
|
|
40745
40747
|
next: 'Siguiente',
|
|
40746
40748
|
previous: 'Volver',
|
|
40747
40749
|
reviewTitle: 'Resumen',
|
|
@@ -40769,6 +40771,9 @@ const SURVEY_BUILDER_I18N = {
|
|
|
40769
40771
|
successTitlePlaceholder: 'E.g: Thanks for answering',
|
|
40770
40772
|
successMessageLabel: 'Thank-you message',
|
|
40771
40773
|
successMessagePlaceholder: 'E.g: Your response was recorded',
|
|
40774
|
+
successOptionalNote: 'Optional. You can keep these default values or customize them.',
|
|
40775
|
+
defaultSuccessTitle: 'Thanks for answering',
|
|
40776
|
+
defaultSuccessMessage: 'Your response was recorded. Thanks for helping us improve.',
|
|
40772
40777
|
successImageLabel: 'Closing image',
|
|
40773
40778
|
successImagePlaceholder: 'Image URL shown after submit',
|
|
40774
40779
|
questionsLabel: 'Questions',
|
|
@@ -40793,6 +40798,7 @@ const SURVEY_BUILDER_I18N = {
|
|
|
40793
40798
|
stepQuestions: 'Questions',
|
|
40794
40799
|
stepClose: 'Close',
|
|
40795
40800
|
stepReview: 'Review',
|
|
40801
|
+
wizardStepsLabel: 'Survey builder steps',
|
|
40796
40802
|
next: 'Next',
|
|
40797
40803
|
previous: 'Back',
|
|
40798
40804
|
reviewTitle: 'Summary',
|
|
@@ -40869,6 +40875,8 @@ class SurveyBuilderComponent {
|
|
|
40869
40875
|
if (!this.i18n.hasNamespace(EDITOR_NAMESPACE)) {
|
|
40870
40876
|
this.i18n.registerDefaults(EDITOR_NAMESPACE, FIELD_SCHEMA_EDITOR_I18N);
|
|
40871
40877
|
}
|
|
40878
|
+
this.successTitleControl.setValue(this.defaultSuccessTitle());
|
|
40879
|
+
this.successMessageControl.setValue(this.defaultSuccessMessage());
|
|
40872
40880
|
addIcons({ cloudUploadOutline, trashOutline });
|
|
40873
40881
|
}
|
|
40874
40882
|
async ngOnInit() {
|
|
@@ -41169,20 +41177,26 @@ class SurveyBuilderComponent {
|
|
|
41169
41177
|
this.titleControl.setValue(label ?? '');
|
|
41170
41178
|
this.subtitleControl.setValue(subtitle ?? '');
|
|
41171
41179
|
this.headerImageControl.setValue(presentation?.headerImageUrl ?? '');
|
|
41172
|
-
this.successTitleControl.setValue(presentation?.successTitle
|
|
41173
|
-
this.successMessageControl.setValue(presentation?.successMessage
|
|
41180
|
+
this.successTitleControl.setValue(presentation?.successTitle || this.defaultSuccessTitle());
|
|
41181
|
+
this.successMessageControl.setValue(presentation?.successMessage || this.defaultSuccessMessage());
|
|
41174
41182
|
this.successImageControl.setValue(presentation?.successImageUrl ?? '');
|
|
41175
41183
|
this.questions.set([...(questions ?? [])].sort((a, b) => a.order - b.order).map(f => this.rowFromField(f)));
|
|
41176
41184
|
}
|
|
41177
41185
|
presentationPayload() {
|
|
41178
41186
|
const presentation = {
|
|
41179
41187
|
headerImageUrl: this.headerImageControl.value.trim(),
|
|
41180
|
-
successTitle: this.successTitleControl.value.trim(),
|
|
41181
|
-
successMessage: this.successMessageControl.value.trim(),
|
|
41188
|
+
successTitle: this.successTitleControl.value.trim() || this.defaultSuccessTitle(),
|
|
41189
|
+
successMessage: this.successMessageControl.value.trim() || this.defaultSuccessMessage(),
|
|
41182
41190
|
successImageUrl: this.successImageControl.value.trim(),
|
|
41183
41191
|
};
|
|
41184
41192
|
return Object.values(presentation).some(Boolean) ? presentation : undefined;
|
|
41185
41193
|
}
|
|
41194
|
+
defaultSuccessTitle() {
|
|
41195
|
+
return this.t('defaultSuccessTitle');
|
|
41196
|
+
}
|
|
41197
|
+
defaultSuccessMessage() {
|
|
41198
|
+
return this.t('defaultSuccessMessage');
|
|
41199
|
+
}
|
|
41186
41200
|
validateWizardStep(step) {
|
|
41187
41201
|
this.validationError.set('');
|
|
41188
41202
|
if (step === 0) {
|
|
@@ -41228,7 +41242,7 @@ class SurveyBuilderComponent {
|
|
|
41228
41242
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SurveyBuilderComponent, isStandalone: true, selector: "val-survey-builder", inputs: { props: "props" }, outputs: { saved: "saved", draft: "draft" }, ngImport: i0, template: `
|
|
41229
41243
|
<div class="survey-builder">
|
|
41230
41244
|
@if (isWizard()) {
|
|
41231
|
-
<nav class="survey-builder__steps" aria-label="
|
|
41245
|
+
<nav class="survey-builder__steps" [attr.aria-label]="t('wizardStepsLabel')">
|
|
41232
41246
|
@for (step of wizardSteps; track step.id; let i = $index) {
|
|
41233
41247
|
<button
|
|
41234
41248
|
type="button"
|
|
@@ -41336,6 +41350,7 @@ class SurveyBuilderComponent {
|
|
|
41336
41350
|
</label>
|
|
41337
41351
|
}
|
|
41338
41352
|
</div>
|
|
41353
|
+
<p class="survey-builder__optional-note">{{ t('successOptionalNote') }}</p>
|
|
41339
41354
|
<val-form-field [label]="t('successTitleLabel')">
|
|
41340
41355
|
<val-text-input [props]="{ control: successTitleControl, placeholder: t('successTitlePlaceholder') }" />
|
|
41341
41356
|
</val-form-field>
|
|
@@ -41382,6 +41397,7 @@ class SurveyBuilderComponent {
|
|
|
41382
41397
|
@if (showWizardSection(2)) {
|
|
41383
41398
|
<section class="survey-builder__section">
|
|
41384
41399
|
<span class="survey-builder__questions-label">{{ t('stepClose') }}</span>
|
|
41400
|
+
<p class="survey-builder__optional-note">{{ t('successOptionalNote') }}</p>
|
|
41385
41401
|
<val-form-field [label]="t('successTitleLabel')">
|
|
41386
41402
|
<val-text-input [props]="{ control: successTitleControl, placeholder: t('successTitlePlaceholder') }" />
|
|
41387
41403
|
</val-form-field>
|
|
@@ -41539,7 +41555,7 @@ class SurveyBuilderComponent {
|
|
|
41539
41555
|
<val-button [props]="saveProps()" (onClick)="save()" />
|
|
41540
41556
|
}
|
|
41541
41557
|
</div>
|
|
41542
|
-
`, isInline: true, styles: [":host{display:block}.survey-builder{display:flex;flex-direction:column;gap:16px}.survey-builder__questions{display:flex;flex-direction:column;gap:12px}.survey-builder__presentation{display:flex;flex-direction:column;gap:12px;padding-top:4px}.survey-builder__section,.survey-builder__review{display:flex;flex-direction:column;gap:12px}.survey-builder__steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:12px}.survey-builder__step{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .12));border-radius:8px;background:var(--ion-card-background, var(--ion-background-color, #fff));color:var(--ion-color-medium-shade, #6b6675);font-size:.8125rem;font-weight:700;cursor:pointer}.survey-builder__step span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:var(--ion-color-light, #f4f5f8);color:inherit;font-size:.75rem}.survey-builder__step--active{border-color:var(--ion-color-primary);color:var(--ion-color-primary)}.survey-builder__wizard-actions{display:flex;justify-content:flex-end;gap:8px}.survey-builder__review{padding:12px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:var(--val-radius-md, 12px);background:var(--ion-card-background, var(--ion-background-color, #fff))}.survey-builder__review strong{color:var(--ion-text-color, #000)}.survey-builder__review span:not(.survey-builder__questions-label){color:var(--ion-color-medium, #92949c);font-size:.875rem}.survey-builder__image-field{display:flex;flex-direction:column;gap:10px}.survey-builder__image-preview{position:relative;width:100%}.survey-builder__image-preview img{display:block;width:100%;aspect-ratio:16 / 9;object-fit:contain;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:8px;background:var(--ion-color-light, #f4f5f8)}.survey-builder__image-clear{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:999px;background:#0009;color:#fff;cursor:pointer}.survey-builder__image-upload{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:2px dashed var(--ion-color-dark, #2f2c3a);border-radius:20px;color:var(--ion-color-dark, #2f2c3a);font-size:.875rem;font-weight:600;cursor:pointer}.survey-builder__image-upload:hover{border-color:var(--ion-color-primary);color:var(--ion-color-primary)}.survey-builder__image-upload--loading{opacity:.7;cursor:default}.survey-builder__image-upload ion-spinner{width:16px;height:16px}.survey-builder__image-upload input{display:none}.survey-builder__questions-label{font-size:.8125rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ion-color-medium, #92949c)}.survey-builder__empty{margin:0;font-size:.875rem;color:var(--ion-color-medium, #92949c)}.survey-builder__row{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:var(--val-radius-md, 12px);background:var(--ion-card-background, var(--ion-background-color, #fff))}.survey-builder__row-head{display:flex;flex-direction:column;gap:8px}.survey-builder__row-text{display:flex;flex-direction:column;gap:2px;min-width:0}.survey-builder__row-text strong{color:var(--ion-text-color, #000);font-size:.9375rem}.survey-builder__row-text span{color:var(--ion-color-medium, #92949c);font-size:.8125rem}.survey-builder__row-actions{display:flex;gap:4px;flex-wrap:wrap}.survey-builder__row-editor{display:flex;flex-direction:column;gap:12px;padding-top:12px;border-top:1px solid var(--ion-border-color, rgba(0, 0, 0, .1))}.survey-builder__error{margin:0;color:var(--ion-color-danger);font-size:.875rem;font-weight:700}@media (min-width: 576px){.survey-builder__row-head{flex-direction:row;align-items:flex-start;justify-content:space-between}.survey-builder__row-text{flex:1}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: TextInputComponent, selector: "val-text-input", inputs: ["preset", "props"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }, { kind: "component", type: FormFieldComponent, selector: "val-form-field", inputs: ["label"] }, { kind: "component", type: FieldSchemaEditorComponent, selector: "val-field-schema-editor", inputs: ["props"], outputs: ["save", "changed"] }] }); }
|
|
41558
|
+
`, isInline: true, styles: [":host{display:block}.survey-builder{display:flex;flex-direction:column;gap:16px}.survey-builder__questions{display:flex;flex-direction:column;gap:12px}.survey-builder__presentation{display:flex;flex-direction:column;gap:12px;padding-top:4px}.survey-builder__section,.survey-builder__review{display:flex;flex-direction:column;gap:12px}.survey-builder__steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:12px}.survey-builder__step{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .12));border-radius:8px;background:var(--ion-card-background, var(--ion-background-color, #fff));color:var(--ion-color-medium-shade, #6b6675);font-size:.8125rem;font-weight:700;cursor:pointer}.survey-builder__step span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:var(--ion-color-light, #f4f5f8);color:inherit;font-size:.75rem}.survey-builder__step--active{border-color:var(--ion-color-primary);color:var(--ion-color-primary)}.survey-builder__wizard-actions{display:flex;justify-content:flex-end;gap:8px}.survey-builder__review{padding:12px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:var(--val-radius-md, 12px);background:var(--ion-card-background, var(--ion-background-color, #fff))}.survey-builder__review strong{color:var(--ion-text-color, #000)}.survey-builder__review span:not(.survey-builder__questions-label){color:var(--ion-color-medium, #92949c);font-size:.875rem}.survey-builder__image-field{display:flex;flex-direction:column;gap:10px}.survey-builder__image-preview{position:relative;width:100%}.survey-builder__image-preview img{display:block;width:100%;aspect-ratio:16 / 9;object-fit:contain;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:8px;background:var(--ion-color-light, #f4f5f8)}.survey-builder__image-clear{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:999px;background:#0009;color:#fff;cursor:pointer}.survey-builder__image-upload{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:2px dashed var(--ion-color-dark, #2f2c3a);border-radius:20px;color:var(--ion-color-dark, #2f2c3a);font-size:.875rem;font-weight:600;cursor:pointer}.survey-builder__image-upload:hover{border-color:var(--ion-color-primary);color:var(--ion-color-primary)}.survey-builder__image-upload--loading{opacity:.7;cursor:default}.survey-builder__image-upload ion-spinner{width:16px;height:16px}.survey-builder__image-upload input{display:none}.survey-builder__questions-label{font-size:.8125rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ion-color-medium, #92949c)}.survey-builder__empty{margin:0;font-size:.875rem;color:var(--ion-color-medium, #92949c)}.survey-builder__optional-note{margin:0;color:var(--ion-color-medium, #92949c);font-size:.875rem;line-height:1.35}.survey-builder__row{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:var(--val-radius-md, 12px);background:var(--ion-card-background, var(--ion-background-color, #fff))}.survey-builder__row-head{display:flex;flex-direction:column;gap:8px}.survey-builder__row-text{display:flex;flex-direction:column;gap:2px;min-width:0}.survey-builder__row-text strong{color:var(--ion-text-color, #000);font-size:.9375rem}.survey-builder__row-text span{color:var(--ion-color-medium, #92949c);font-size:.8125rem}.survey-builder__row-actions{display:flex;gap:4px;flex-wrap:wrap}.survey-builder__row-editor{display:flex;flex-direction:column;gap:12px;padding-top:12px;border-top:1px solid var(--ion-border-color, rgba(0, 0, 0, .1))}.survey-builder__error{margin:0;color:var(--ion-color-danger);font-size:.875rem;font-weight:700}@media (min-width: 576px){.survey-builder__row-head{flex-direction:row;align-items:flex-start;justify-content:space-between}.survey-builder__row-text{flex:1}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: TextInputComponent, selector: "val-text-input", inputs: ["preset", "props"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }, { kind: "component", type: FormFieldComponent, selector: "val-form-field", inputs: ["label"] }, { kind: "component", type: FieldSchemaEditorComponent, selector: "val-field-schema-editor", inputs: ["props"], outputs: ["save", "changed"] }] }); }
|
|
41543
41559
|
}
|
|
41544
41560
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SurveyBuilderComponent, decorators: [{
|
|
41545
41561
|
type: Component,
|
|
@@ -41555,7 +41571,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
41555
41571
|
], template: `
|
|
41556
41572
|
<div class="survey-builder">
|
|
41557
41573
|
@if (isWizard()) {
|
|
41558
|
-
<nav class="survey-builder__steps" aria-label="
|
|
41574
|
+
<nav class="survey-builder__steps" [attr.aria-label]="t('wizardStepsLabel')">
|
|
41559
41575
|
@for (step of wizardSteps; track step.id; let i = $index) {
|
|
41560
41576
|
<button
|
|
41561
41577
|
type="button"
|
|
@@ -41663,6 +41679,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
41663
41679
|
</label>
|
|
41664
41680
|
}
|
|
41665
41681
|
</div>
|
|
41682
|
+
<p class="survey-builder__optional-note">{{ t('successOptionalNote') }}</p>
|
|
41666
41683
|
<val-form-field [label]="t('successTitleLabel')">
|
|
41667
41684
|
<val-text-input [props]="{ control: successTitleControl, placeholder: t('successTitlePlaceholder') }" />
|
|
41668
41685
|
</val-form-field>
|
|
@@ -41709,6 +41726,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
41709
41726
|
@if (showWizardSection(2)) {
|
|
41710
41727
|
<section class="survey-builder__section">
|
|
41711
41728
|
<span class="survey-builder__questions-label">{{ t('stepClose') }}</span>
|
|
41729
|
+
<p class="survey-builder__optional-note">{{ t('successOptionalNote') }}</p>
|
|
41712
41730
|
<val-form-field [label]="t('successTitleLabel')">
|
|
41713
41731
|
<val-text-input [props]="{ control: successTitleControl, placeholder: t('successTitlePlaceholder') }" />
|
|
41714
41732
|
</val-form-field>
|
|
@@ -41866,7 +41884,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
41866
41884
|
<val-button [props]="saveProps()" (onClick)="save()" />
|
|
41867
41885
|
}
|
|
41868
41886
|
</div>
|
|
41869
|
-
`, styles: [":host{display:block}.survey-builder{display:flex;flex-direction:column;gap:16px}.survey-builder__questions{display:flex;flex-direction:column;gap:12px}.survey-builder__presentation{display:flex;flex-direction:column;gap:12px;padding-top:4px}.survey-builder__section,.survey-builder__review{display:flex;flex-direction:column;gap:12px}.survey-builder__steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:12px}.survey-builder__step{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .12));border-radius:8px;background:var(--ion-card-background, var(--ion-background-color, #fff));color:var(--ion-color-medium-shade, #6b6675);font-size:.8125rem;font-weight:700;cursor:pointer}.survey-builder__step span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:var(--ion-color-light, #f4f5f8);color:inherit;font-size:.75rem}.survey-builder__step--active{border-color:var(--ion-color-primary);color:var(--ion-color-primary)}.survey-builder__wizard-actions{display:flex;justify-content:flex-end;gap:8px}.survey-builder__review{padding:12px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:var(--val-radius-md, 12px);background:var(--ion-card-background, var(--ion-background-color, #fff))}.survey-builder__review strong{color:var(--ion-text-color, #000)}.survey-builder__review span:not(.survey-builder__questions-label){color:var(--ion-color-medium, #92949c);font-size:.875rem}.survey-builder__image-field{display:flex;flex-direction:column;gap:10px}.survey-builder__image-preview{position:relative;width:100%}.survey-builder__image-preview img{display:block;width:100%;aspect-ratio:16 / 9;object-fit:contain;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:8px;background:var(--ion-color-light, #f4f5f8)}.survey-builder__image-clear{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:999px;background:#0009;color:#fff;cursor:pointer}.survey-builder__image-upload{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:2px dashed var(--ion-color-dark, #2f2c3a);border-radius:20px;color:var(--ion-color-dark, #2f2c3a);font-size:.875rem;font-weight:600;cursor:pointer}.survey-builder__image-upload:hover{border-color:var(--ion-color-primary);color:var(--ion-color-primary)}.survey-builder__image-upload--loading{opacity:.7;cursor:default}.survey-builder__image-upload ion-spinner{width:16px;height:16px}.survey-builder__image-upload input{display:none}.survey-builder__questions-label{font-size:.8125rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ion-color-medium, #92949c)}.survey-builder__empty{margin:0;font-size:.875rem;color:var(--ion-color-medium, #92949c)}.survey-builder__row{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:var(--val-radius-md, 12px);background:var(--ion-card-background, var(--ion-background-color, #fff))}.survey-builder__row-head{display:flex;flex-direction:column;gap:8px}.survey-builder__row-text{display:flex;flex-direction:column;gap:2px;min-width:0}.survey-builder__row-text strong{color:var(--ion-text-color, #000);font-size:.9375rem}.survey-builder__row-text span{color:var(--ion-color-medium, #92949c);font-size:.8125rem}.survey-builder__row-actions{display:flex;gap:4px;flex-wrap:wrap}.survey-builder__row-editor{display:flex;flex-direction:column;gap:12px;padding-top:12px;border-top:1px solid var(--ion-border-color, rgba(0, 0, 0, .1))}.survey-builder__error{margin:0;color:var(--ion-color-danger);font-size:.875rem;font-weight:700}@media (min-width: 576px){.survey-builder__row-head{flex-direction:row;align-items:flex-start;justify-content:space-between}.survey-builder__row-text{flex:1}}\n"] }]
|
|
41887
|
+
`, styles: [":host{display:block}.survey-builder{display:flex;flex-direction:column;gap:16px}.survey-builder__questions{display:flex;flex-direction:column;gap:12px}.survey-builder__presentation{display:flex;flex-direction:column;gap:12px;padding-top:4px}.survey-builder__section,.survey-builder__review{display:flex;flex-direction:column;gap:12px}.survey-builder__steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:12px}.survey-builder__step{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .12));border-radius:8px;background:var(--ion-card-background, var(--ion-background-color, #fff));color:var(--ion-color-medium-shade, #6b6675);font-size:.8125rem;font-weight:700;cursor:pointer}.survey-builder__step span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:var(--ion-color-light, #f4f5f8);color:inherit;font-size:.75rem}.survey-builder__step--active{border-color:var(--ion-color-primary);color:var(--ion-color-primary)}.survey-builder__wizard-actions{display:flex;justify-content:flex-end;gap:8px}.survey-builder__review{padding:12px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:var(--val-radius-md, 12px);background:var(--ion-card-background, var(--ion-background-color, #fff))}.survey-builder__review strong{color:var(--ion-text-color, #000)}.survey-builder__review span:not(.survey-builder__questions-label){color:var(--ion-color-medium, #92949c);font-size:.875rem}.survey-builder__image-field{display:flex;flex-direction:column;gap:10px}.survey-builder__image-preview{position:relative;width:100%}.survey-builder__image-preview img{display:block;width:100%;aspect-ratio:16 / 9;object-fit:contain;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:8px;background:var(--ion-color-light, #f4f5f8)}.survey-builder__image-clear{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:999px;background:#0009;color:#fff;cursor:pointer}.survey-builder__image-upload{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:2px dashed var(--ion-color-dark, #2f2c3a);border-radius:20px;color:var(--ion-color-dark, #2f2c3a);font-size:.875rem;font-weight:600;cursor:pointer}.survey-builder__image-upload:hover{border-color:var(--ion-color-primary);color:var(--ion-color-primary)}.survey-builder__image-upload--loading{opacity:.7;cursor:default}.survey-builder__image-upload ion-spinner{width:16px;height:16px}.survey-builder__image-upload input{display:none}.survey-builder__questions-label{font-size:.8125rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ion-color-medium, #92949c)}.survey-builder__empty{margin:0;font-size:.875rem;color:var(--ion-color-medium, #92949c)}.survey-builder__optional-note{margin:0;color:var(--ion-color-medium, #92949c);font-size:.875rem;line-height:1.35}.survey-builder__row{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));border-radius:var(--val-radius-md, 12px);background:var(--ion-card-background, var(--ion-background-color, #fff))}.survey-builder__row-head{display:flex;flex-direction:column;gap:8px}.survey-builder__row-text{display:flex;flex-direction:column;gap:2px;min-width:0}.survey-builder__row-text strong{color:var(--ion-text-color, #000);font-size:.9375rem}.survey-builder__row-text span{color:var(--ion-color-medium, #92949c);font-size:.8125rem}.survey-builder__row-actions{display:flex;gap:4px;flex-wrap:wrap}.survey-builder__row-editor{display:flex;flex-direction:column;gap:12px;padding-top:12px;border-top:1px solid var(--ion-border-color, rgba(0, 0, 0, .1))}.survey-builder__error{margin:0;color:var(--ion-color-danger);font-size:.875rem;font-weight:700}@media (min-width: 576px){.survey-builder__row-head{flex-direction:row;align-items:flex-start;justify-content:space-between}.survey-builder__row-text{flex:1}}\n"] }]
|
|
41870
41888
|
}], ctorParameters: () => [], propDecorators: { props: [{
|
|
41871
41889
|
type: Input
|
|
41872
41890
|
}], saved: [{
|