@vergelijkdirect/comparison-forms 2.0.0 → 2.0.2-VER-9177.0
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/README.md +46 -6
- package/dist/client/.vite/ssr-manifest.json +600 -0
- package/dist/client/assets/index-6Enzr9rU.css +4 -0
- package/dist/client/assets/index-6Enzr9rU.css.br +0 -0
- package/dist/client/assets/index-DUchBxEo.js +57 -0
- package/dist/client/assets/index-DUchBxEo.js.br +0 -0
- package/dist/client/index.html +15 -0
- package/dist/server/entry-server.js +9981 -0
- package/dist/server/entry-server.js.br +0 -0
- package/dist/vue/comparison-forms.d.ts +17 -3
- package/dist/vue/comparison-forms.js +397 -510
- package/dist/wc/comparison-forms.js +385 -577
- package/dist/wc-forms/bike.cjs +1 -1
- package/dist/wc-forms/{birthdate.schema-C-y732mA.cjs → birthdate.schema-rpmbSDZH.cjs} +1 -1
- package/dist/wc-forms/business-car.cjs +1 -1
- package/dist/wc-forms/business-liability.cjs +1 -1
- package/dist/wc-forms/car.cjs +1 -1
- package/dist/wc-forms/caravan.cjs +1 -1
- package/dist/wc-forms/company.schema-BLoMUJDa.cjs +1 -0
- package/dist/wc-forms/{familyComposition.schema-gvSnx-ea.cjs → familyComposition.schema-DW6scNvt.cjs} +1 -1
- package/dist/wc-forms/house.cjs +1 -1
- package/dist/wc-forms/{houseOwnedBuilding.model-G9AqKTZo.cjs → houseOwnedBuilding.model-BMgRS2fn.cjs} +1 -1
- package/dist/wc-forms/itc-nSCTLC1V.cjs +1 -0
- package/dist/wc-forms/legal.cjs +1 -1
- package/dist/wc-forms/liability.cjs +1 -1
- package/dist/wc-forms/loan.cjs +1 -1
- package/dist/wc-forms/{messages-CX8jVyEo.cjs → messages-stJTqN-x.cjs} +1 -1
- package/dist/wc-forms/moped.cjs +1 -1
- package/dist/wc-forms/motor.cjs +1 -1
- package/dist/wc-forms/package.cjs +1 -1
- package/dist/wc-forms/pet.cjs +1 -1
- package/dist/wc-forms/travel.cjs +1 -1
- package/dist/wc-forms/useAddress-DJ4aWwYs.cjs +1 -0
- package/dist/wc-forms/useLicensePlate-98nreTI8.cjs +1 -0
- package/dist/wc-noitc/comparison-forms.umd.cjs +2 -2
- package/package.json +4 -3
- package/dist/wc-forms/company.schema-Dhzxphqu.cjs +0 -1
- package/dist/wc-forms/services-BmRVYKgg.cjs +0 -1
- package/dist/wc-forms/useAddress-CNccyKT4.cjs +0 -1
- package/dist/wc-forms/useLicensePlate-Ct8T-GYB.cjs +0 -1
|
Binary file
|
|
@@ -497,6 +497,16 @@ declare interface ComparisonUserFields {
|
|
|
497
497
|
street?: string;
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
+
/**
|
|
501
|
+
* Registers the QA-renderer api for every questionnaire on the page, so a host
|
|
502
|
+
* that embeds `<vd-risk-scanner>` in many places sets the url once at bootstrap
|
|
503
|
+
* instead of on each element. A `qa-url` prop/attribute still wins over this.
|
|
504
|
+
*
|
|
505
|
+
* There is deliberately **no** default: unconfigured and without a prop, the
|
|
506
|
+
* form throws.
|
|
507
|
+
*/
|
|
508
|
+
export declare const configureQa: (config: QaConfig) => void;
|
|
509
|
+
|
|
500
510
|
declare enum FamilyComposition {
|
|
501
511
|
FamilyWithChildren = "I",
|
|
502
512
|
FamilyWithoutChildren = "H",
|
|
@@ -520,9 +530,8 @@ export declare function housePresenter(data: HouseFormData): ComparisonPayload;
|
|
|
520
530
|
|
|
521
531
|
export declare const LegalForm: typeof __VLS_export_7;
|
|
522
532
|
|
|
523
|
-
export declare interface LegalFormData extends AddressBearingFormData
|
|
533
|
+
export declare interface LegalFormData extends AddressBearingFormData {
|
|
524
534
|
ownedBuilding: YesNoValue;
|
|
525
|
-
familySize: string;
|
|
526
535
|
}
|
|
527
536
|
|
|
528
537
|
export declare function legalPresenter(data: LegalFormData): ComparisonPayload;
|
|
@@ -608,6 +617,11 @@ export declare interface PetFormData {
|
|
|
608
617
|
|
|
609
618
|
export declare function petPresenter(data: PetFormData): ComparisonPayload;
|
|
610
619
|
|
|
620
|
+
export declare interface QaConfig {
|
|
621
|
+
/** base url of the QA-renderer api (a missing trailing slash is normalized by the forms) */
|
|
622
|
+
url: string;
|
|
623
|
+
}
|
|
624
|
+
|
|
611
625
|
export declare const QuestionnaireForm: typeof __VLS_export_17;
|
|
612
626
|
|
|
613
627
|
export declare type QuestionnaireFormProps = QuestionnaireSharedProps;
|
|
@@ -638,7 +652,7 @@ export declare const RiskScannerForm: typeof __VLS_export_16;
|
|
|
638
652
|
export declare interface RiskScannerFormProps extends Omit<QuestionnaireSharedProps, 'qaId'> {
|
|
639
653
|
/**
|
|
640
654
|
* base url of the QA API (a missing trailing slash is normalized internally);
|
|
641
|
-
* falls back to
|
|
655
|
+
* falls back to `configureQa({ url })` — submitting without either throws
|
|
642
656
|
*/
|
|
643
657
|
qaUrl?: string;
|
|
644
658
|
qaId?: string;
|