@redneckz/wildless-cms-uni-blocks 0.14.576 → 0.14.577
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/bundle/bundle.umd.js +289 -276
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/LinkDocs/renderDefaultItem.d.ts +1 -0
- package/bundle/ui-kit/FormField/Fields/AnnualRevenueField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/BankEmpoleeField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/BirthdayField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/CollectionCountField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/DesiredMeetingDateField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/FullNameField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/InnField.d.ts +2 -0
- package/bundle/ui-kit/ReportDialog/ReportDialog.d.ts +2 -0
- package/dist/components/ApplicationLeadForm/GroupedConsents.js +2 -2
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +3 -3
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/RepordDialogButton.js +4 -2
- package/dist/components/LinkDocs/RepordDialogButton.js.map +1 -1
- package/dist/components/LinkDocs/linkDocsContentExample.js +1 -0
- package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/dist/components/LinkDocs/renderDefaultItem.d.ts +1 -0
- package/dist/components/LinkDocs/renderDefaultItem.js +3 -2
- package/dist/components/LinkDocs/renderDefaultItem.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AnnualRevenueField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/AnnualRevenueField.js +9 -0
- package/dist/ui-kit/FormField/Fields/AnnualRevenueField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/BankEmpoleeField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/BankEmpoleeField.js +7 -0
- package/dist/ui-kit/FormField/Fields/BankEmpoleeField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/BirthdayField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/BirthdayField.js +9 -0
- package/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/CollectionCountField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/CollectionCountField.js +9 -0
- package/dist/ui-kit/FormField/Fields/CollectionCountField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js +2 -2
- package/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ConsentCollectionField.js +2 -2
- package/dist/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ConsentInformField.js +2 -2
- package/dist/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ConsentPhotoField.js +2 -2
- package/dist/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ConsentProviderField.js +2 -2
- package/dist/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +3 -1
- package/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DesiredMeetingDateField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/DesiredMeetingDateField.js +9 -0
- package/dist/ui-kit/FormField/Fields/DesiredMeetingDateField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/FeedbackMethodField.js +2 -2
- package/dist/ui-kit/FormField/Fields/FeedbackMethodField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +3 -3
- package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/FullNameField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/FullNameField.js +9 -0
- package/dist/ui-kit/FormField/Fields/FullNameField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/InnField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/InnField.js +9 -0
- package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js +2 -2
- package/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ServiceDirectionField.js +2 -2
- package/dist/ui-kit/FormField/Fields/ServiceDirectionField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/UltraPremiumField.js +2 -2
- package/dist/ui-kit/FormField/Fields/UltraPremiumField.js.map +1 -1
- package/dist/ui-kit/FormField/getField.js +27 -24
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/ReportDialog/ReportDialog.d.ts +2 -0
- package/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.js +2 -2
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +3 -3
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/RepordDialogButton.js +5 -3
- package/lib/components/LinkDocs/RepordDialogButton.js.map +1 -1
- package/lib/components/LinkDocs/linkDocsContentExample.js +1 -0
- package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/lib/components/LinkDocs/renderDefaultItem.d.ts +1 -0
- package/lib/components/LinkDocs/renderDefaultItem.js +1 -1
- package/lib/components/LinkDocs/renderDefaultItem.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AnnualRevenueField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/AnnualRevenueField.js +7 -0
- package/lib/ui-kit/FormField/Fields/AnnualRevenueField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/BankEmpoleeField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/BankEmpoleeField.js +5 -0
- package/lib/ui-kit/FormField/Fields/BankEmpoleeField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/BirthdayField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/BirthdayField.js +7 -0
- package/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/CollectionCountField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/CollectionCountField.js +7 -0
- package/lib/ui-kit/FormField/Fields/CollectionCountField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js +2 -2
- package/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ConsentCollectionField.js +2 -2
- package/lib/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ConsentInformField.js +2 -2
- package/lib/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ConsentPhotoField.js +2 -2
- package/lib/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ConsentProviderField.js +2 -2
- package/lib/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +3 -1
- package/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DesiredMeetingDateField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/DesiredMeetingDateField.js +7 -0
- package/lib/ui-kit/FormField/Fields/DesiredMeetingDateField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/FeedbackMethodField.js +2 -2
- package/lib/ui-kit/FormField/Fields/FeedbackMethodField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +3 -3
- package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/FullNameField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/FullNameField.js +7 -0
- package/lib/ui-kit/FormField/Fields/FullNameField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/InnField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/InnField.js +7 -0
- package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js +2 -2
- package/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ServiceDirectionField.js +2 -2
- package/lib/ui-kit/FormField/Fields/ServiceDirectionField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/UltraPremiumField.js +2 -2
- package/lib/ui-kit/FormField/Fields/UltraPremiumField.js.map +1 -1
- package/lib/ui-kit/FormField/getField.js +27 -24
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/ReportDialog/ReportDialog.d.ts +2 -0
- package/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +289 -276
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/LinkDocs/renderDefaultItem.d.ts +1 -0
- package/mobile/bundle/ui-kit/FormField/Fields/AnnualRevenueField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/BankEmpoleeField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/BirthdayField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/CollectionCountField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/DesiredMeetingDateField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/FullNameField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/InnField.d.ts +2 -0
- package/mobile/bundle/ui-kit/ReportDialog/ReportDialog.d.ts +2 -0
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +2 -2
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/RepordDialogButton.js +4 -2
- package/mobile/dist/components/LinkDocs/RepordDialogButton.js.map +1 -1
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +1 -0
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/dist/components/LinkDocs/renderDefaultItem.d.ts +1 -0
- package/mobile/dist/components/LinkDocs/renderDefaultItem.js +3 -2
- package/mobile/dist/components/LinkDocs/renderDefaultItem.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AnnualRevenueField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/AnnualRevenueField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/AnnualRevenueField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankEmpoleeField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankEmpoleeField.js +7 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankEmpoleeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/CollectionCountField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/CollectionCountField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/CollectionCountField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConsentCollectionField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConsentInformField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConsentPhotoField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConsentProviderField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +3 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DesiredMeetingDateField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/DesiredMeetingDateField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/DesiredMeetingDateField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/FeedbackMethodField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/FeedbackMethodField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +3 -3
- package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/FullNameField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/FullNameField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/FullNameField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/InnField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ServiceDirectionField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/ServiceDirectionField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/UltraPremiumField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/UltraPremiumField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +27 -24
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/ReportDialog/ReportDialog.d.ts +2 -0
- package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +2 -2
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/RepordDialogButton.js +5 -3
- package/mobile/lib/components/LinkDocs/RepordDialogButton.js.map +1 -1
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +1 -0
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/lib/components/LinkDocs/renderDefaultItem.d.ts +1 -0
- package/mobile/lib/components/LinkDocs/renderDefaultItem.js +1 -1
- package/mobile/lib/components/LinkDocs/renderDefaultItem.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AnnualRevenueField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/AnnualRevenueField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/AnnualRevenueField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankEmpoleeField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankEmpoleeField.js +5 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankEmpoleeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/CollectionCountField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/CollectionCountField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/CollectionCountField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConsentCollectionField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConsentInformField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConsentPhotoField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConsentProviderField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +3 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DesiredMeetingDateField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/DesiredMeetingDateField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/DesiredMeetingDateField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/FeedbackMethodField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/FeedbackMethodField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +3 -3
- package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/FullNameField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/FullNameField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/FullNameField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/InnField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ServiceDirectionField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/ServiceDirectionField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/UltraPremiumField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/UltraPremiumField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +27 -24
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/ReportDialog/ReportDialog.d.ts +2 -0
- package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +2 -2
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +3 -2
- package/mobile/src/components/LinkDocs/RepordDialogButton.tsx +9 -3
- package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +1 -0
- package/mobile/src/components/LinkDocs/renderDefaultItem.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/AnnualRevenueField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/BankEmpoleeField.tsx +10 -0
- package/mobile/src/ui-kit/FormField/Fields/BirthdayField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/CollectionCountField.tsx +13 -0
- package/mobile/src/ui-kit/FormField/Fields/ConsentAssignmentField.tsx +7 -3
- package/mobile/src/ui-kit/FormField/Fields/ConsentCollectionField.tsx +7 -3
- package/mobile/src/ui-kit/FormField/Fields/ConsentInformField.tsx +3 -3
- package/mobile/src/ui-kit/FormField/Fields/ConsentPhotoField.tsx +3 -3
- package/mobile/src/ui-kit/FormField/Fields/ConsentProviderField.tsx +7 -3
- package/mobile/src/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.tsx +8 -2
- package/mobile/src/ui-kit/FormField/Fields/DesiredMeetingDateField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/FeedbackMethodField.tsx +3 -3
- package/mobile/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +3 -3
- package/mobile/src/ui-kit/FormField/Fields/FullNameField.tsx +13 -0
- package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +13 -0
- package/mobile/src/ui-kit/FormField/Fields/ProcessPersonalDataField.tsx +7 -3
- package/mobile/src/ui-kit/FormField/Fields/ServiceDirectionField.tsx +3 -3
- package/mobile/src/ui-kit/FormField/Fields/UltraPremiumField.tsx +4 -3
- package/mobile/src/ui-kit/FormField/getField.tsx +31 -66
- package/mobile/src/ui-kit/ReportDialog/ReportDialog.tsx +3 -0
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +2 -2
- package/src/components/LinkDocs/LinkDocs.tsx +3 -2
- package/src/components/LinkDocs/RepordDialogButton.tsx +9 -3
- package/src/components/LinkDocs/linkDocsContentExample.ts +1 -0
- package/src/components/LinkDocs/renderDefaultItem.tsx +1 -1
- package/src/ui-kit/FormField/Fields/AnnualRevenueField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/BankEmpoleeField.tsx +10 -0
- package/src/ui-kit/FormField/Fields/BirthdayField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/CollectionCountField.tsx +13 -0
- package/src/ui-kit/FormField/Fields/ConsentAssignmentField.tsx +7 -3
- package/src/ui-kit/FormField/Fields/ConsentCollectionField.tsx +7 -3
- package/src/ui-kit/FormField/Fields/ConsentInformField.tsx +3 -3
- package/src/ui-kit/FormField/Fields/ConsentPhotoField.tsx +3 -3
- package/src/ui-kit/FormField/Fields/ConsentProviderField.tsx +7 -3
- package/src/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.tsx +8 -2
- package/src/ui-kit/FormField/Fields/DesiredMeetingDateField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/FeedbackMethodField.tsx +3 -3
- package/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +3 -3
- package/src/ui-kit/FormField/Fields/FullNameField.tsx +13 -0
- package/src/ui-kit/FormField/Fields/InnField.tsx +13 -0
- package/src/ui-kit/FormField/Fields/ProcessPersonalDataField.tsx +7 -3
- package/src/ui-kit/FormField/Fields/ServiceDirectionField.tsx +3 -3
- package/src/ui-kit/FormField/Fields/UltraPremiumField.tsx +4 -3
- package/src/ui-kit/FormField/getField.tsx +31 -66
- package/src/ui-kit/ReportDialog/ReportDialog.tsx +3 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -1149,29 +1149,6 @@
|
|
|
1149
1149
|
return [value, { setValue, setTrue, setFalse, toggle }];
|
|
1150
1150
|
}
|
|
1151
1151
|
|
|
1152
|
-
const renderLabel = (label) => label ? (jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label })) : null;
|
|
1153
|
-
|
|
1154
|
-
const inputValidStyle = 'border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded';
|
|
1155
|
-
|
|
1156
|
-
const Input = JSX(({ key, className = '', id, name, type = 'text', label, placeholder, value = '', valid = true, children, onChange, onFocus, onBlur, pattern, autoFocus = false, isTextarea = false, }) => {
|
|
1157
|
-
const inputRef = useRef(null);
|
|
1158
|
-
const handleChange = useCallback((e) => {
|
|
1159
|
-
onChange && onChange(e.target?.value || '');
|
|
1160
|
-
}, [onChange]);
|
|
1161
|
-
useEffect(() => {
|
|
1162
|
-
if (autoFocus) {
|
|
1163
|
-
inputRef.current?.focus();
|
|
1164
|
-
}
|
|
1165
|
-
}, [autoFocus, inputRef]);
|
|
1166
|
-
const defaultStyle = 'w-full border rounded-md text-primary-text outline-none p-m';
|
|
1167
|
-
const paddingStyle = children ? 'pr-3xl' : '';
|
|
1168
|
-
const validStyle = getValidStyle(valid);
|
|
1169
|
-
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle, validStyle), id: style('textarea', id), name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { type: type, className: style('h-14', defaultStyle, paddingStyle, validStyle), ref: inputRef, id: id, name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key))] }), children] }));
|
|
1170
|
-
});
|
|
1171
|
-
const getValidStyle = (valid) => (valid ? inputValidStyle : 'border-error');
|
|
1172
|
-
|
|
1173
|
-
const formatOption = (_) => _?.text || _?.key || '';
|
|
1174
|
-
|
|
1175
1152
|
function useEventListener(target, type, listener, options) {
|
|
1176
1153
|
useEffect(() => {
|
|
1177
1154
|
if (!target || !listener) {
|
|
@@ -1195,227 +1172,30 @@
|
|
|
1195
1172
|
return targetRef;
|
|
1196
1173
|
}
|
|
1197
1174
|
|
|
1198
|
-
const usePopupManager = () => ({
|
|
1199
|
-
open: (popup, options) => defaultEventBus.fire('popup', { type: 'open', popup, ...options }),
|
|
1200
|
-
update: (popup, options) => defaultEventBus.fire('popup', { type: 'update', popup, ...options }),
|
|
1201
|
-
close: () => defaultEventBus.fire('popup', { type: 'close' }),
|
|
1202
|
-
});
|
|
1203
|
-
|
|
1204
|
-
const filterOptions = (options, query) => {
|
|
1205
|
-
if (!options?.length || !query?.trim()) {
|
|
1206
|
-
return options;
|
|
1207
|
-
}
|
|
1208
|
-
return options.filter((_) => _.text?.toLocaleLowerCase().includes(query?.trim().toLocaleLowerCase()));
|
|
1209
|
-
};
|
|
1210
|
-
|
|
1211
|
-
const SelectPopup = JSX(({ popupRef, options, value, query, onChange, iconVersion }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl", role: "list", ref: popupRef, children: filterOptions(options, query).map((option) => (jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "listitem", "aria-selected": option.key === value?.key, onClick: (e) => {
|
|
1212
|
-
e.stopPropagation();
|
|
1213
|
-
if (onChange) {
|
|
1214
|
-
onChange(option);
|
|
1215
|
-
}
|
|
1216
|
-
}, children: [jsx("span", { className: "min-h-6", children: formatOption(option) }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", iconVersion: iconVersion, className: style('absolute right-4 pt-3xs', {
|
|
1217
|
-
hidden: option.key !== value?.key,
|
|
1218
|
-
}) })] }, option.key))) })) : null);
|
|
1219
|
-
|
|
1220
|
-
function useSelectPopup({ isOpen, options, value, query, onChange, onClose, iconVersion, }) {
|
|
1221
|
-
const popup = usePopupManager();
|
|
1222
|
-
const close = useCallback(() => {
|
|
1223
|
-
popup.close();
|
|
1224
|
-
onClose && onClose();
|
|
1225
|
-
}, [onClose]);
|
|
1226
|
-
const handleChange = useCallback((option) => {
|
|
1227
|
-
close();
|
|
1228
|
-
onChange && onChange(option);
|
|
1229
|
-
}, [close, onChange]);
|
|
1230
|
-
const inputRef = useRef(null);
|
|
1231
|
-
const popupRef = useOutsideClick(close);
|
|
1232
|
-
useEffect(() => {
|
|
1233
|
-
if (!isOpen || !inputRef.current) {
|
|
1234
|
-
return;
|
|
1235
|
-
}
|
|
1236
|
-
const inputElement = inputRef.current;
|
|
1237
|
-
const { top, left, width, height } = inputElement.getBoundingClientRect();
|
|
1238
|
-
popup.update(jsx(SelectPopup, { popupRef: popupRef, options: options, value: value, query: query, onChange: handleChange, iconVersion: iconVersion }), {
|
|
1239
|
-
top: top + window.scrollY + height,
|
|
1240
|
-
left,
|
|
1241
|
-
width,
|
|
1242
|
-
});
|
|
1243
|
-
}, [isOpen, options, value, query, handleChange]);
|
|
1244
|
-
return inputRef;
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
const Select = JSX(
|
|
1248
|
-
// eslint-disable-next-line complexity
|
|
1249
|
-
({ className, label, options = [], value, valid = true, isBorder = true, placeholder = '', isSearch = false, iconVersion = 'black', onChange, disabled, }) => {
|
|
1250
|
-
const [isOpen, { setFalse: close, setTrue: open }] = useBool();
|
|
1251
|
-
const [query, setQuery] = useState('');
|
|
1252
|
-
const isDisabled = disabled || options.length === 0;
|
|
1253
|
-
const hasOpen = isOpen && !isDisabled;
|
|
1254
|
-
const handleClose = useCallback(() => {
|
|
1255
|
-
setQuery('');
|
|
1256
|
-
close();
|
|
1257
|
-
}, []);
|
|
1258
|
-
const inputRef = useSelectPopup({
|
|
1259
|
-
isOpen,
|
|
1260
|
-
options,
|
|
1261
|
-
value,
|
|
1262
|
-
query,
|
|
1263
|
-
onChange,
|
|
1264
|
-
onClose: handleClose,
|
|
1265
|
-
iconVersion,
|
|
1266
|
-
});
|
|
1267
|
-
return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : open, children: [jsx("p", { className: "line-clamp-2 text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$1(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
|
|
1268
|
-
});
|
|
1269
|
-
const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-0 flex self-center', { 'rotate-180': !isOpen }), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
|
|
1270
|
-
const getStyle = (isBorder, valid, disabled) => style(isBorder ? 'border rounded-md ' : '', isBorder && !disabled ? 'hover:border-primary-hover' : '', disabled ? 'bg-main-divider' : 'cursor-pointer ', valid ? 'border-gray' : 'border-error');
|
|
1271
|
-
|
|
1272
1175
|
const noop = () => {
|
|
1273
1176
|
// Do nothing
|
|
1274
1177
|
};
|
|
1275
1178
|
|
|
1276
|
-
const
|
|
1277
|
-
const WEEK_COUNT = 7;
|
|
1278
|
-
const renderCalendarCells = ({ today, firstDayOfWeek, totalDays, currentMonth, currentYear, min, max, onDateClick, }) => {
|
|
1279
|
-
const calendarCells = [];
|
|
1280
|
-
let dayCounter = 1;
|
|
1281
|
-
for (let i = 0; i < DAY_COUNT; i++) {
|
|
1282
|
-
const rowCells = [];
|
|
1283
|
-
for (let j = 0; j < WEEK_COUNT; j++) {
|
|
1284
|
-
if (i === 0 && j < firstDayOfWeek) {
|
|
1285
|
-
rowCells.push(jsx("td", {}, `empty-${j}`));
|
|
1286
|
-
}
|
|
1287
|
-
else if (dayCounter > totalDays) {
|
|
1288
|
-
rowCells.push(jsx("td", {}, `empty-${j}`));
|
|
1289
|
-
}
|
|
1290
|
-
else {
|
|
1291
|
-
const currentDate = new Date(currentYear, currentMonth, dayCounter);
|
|
1292
|
-
const isToday = checkIsToday(currentDate, today);
|
|
1293
|
-
const isDisabled = checkIsDisabled(currentDate, min, max);
|
|
1294
|
-
rowCells.push(jsx("td", { children: jsx("div", { className: getDayStyles(isToday, isDisabled), onClick: () => !isDisabled && onDateClick(currentDate), children: dayCounter }) }, `day-${dayCounter}`));
|
|
1295
|
-
dayCounter++;
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
calendarCells.push(jsx("tr", { children: rowCells }, `row-${i}`));
|
|
1299
|
-
}
|
|
1300
|
-
return calendarCells;
|
|
1301
|
-
};
|
|
1302
|
-
const checkIsToday = (currentDate, today) => today && currentDate.toDateString() === today.toDateString();
|
|
1303
|
-
const checkIsDisabled = (currentDate, min, max) => (min && currentDate.getTime() < min.getTime()) || (max && currentDate.getTime() > max.getTime());
|
|
1304
|
-
const getDayStyles = (isToday, isDisabled) => style('p-s text-center rounded-md border', {
|
|
1305
|
-
'border-transparent hover:bg-gray': !isToday,
|
|
1306
|
-
}, isDisabled ? 'text-gray hover:bg-transparent' : 'cursor-pointer');
|
|
1307
|
-
|
|
1308
|
-
const WEEK_DAYS = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
|
|
1309
|
-
const Calendar = JSX(({ today, currentMonth, currentYear, min, max, onDateSelect = noop, setValue = noop }) => {
|
|
1310
|
-
const handleDateClick = useCallback((date) => {
|
|
1311
|
-
onDateSelect(date);
|
|
1312
|
-
setValue(false);
|
|
1313
|
-
}, []);
|
|
1314
|
-
const { firstDayOfWeek, totalDays } = useMemo(() => ({
|
|
1315
|
-
firstDayOfWeek: new Date(currentYear, currentMonth, 1).getDay() - 1,
|
|
1316
|
-
totalDays: new Date(currentYear, currentMonth + 1, 0).getDate(),
|
|
1317
|
-
}), [currentYear, currentMonth]);
|
|
1318
|
-
return (jsxs("table", { className: "mx-auto", children: [jsx("thead", { className: "text-gray font-light", children: jsx("tr", { children: WEEK_DAYS.map((day, index) => (jsx("th", { className: "p-s", children: day }, String(index)))) }) }), jsx("tbody", { children: renderCalendarCells({
|
|
1319
|
-
firstDayOfWeek,
|
|
1320
|
-
today,
|
|
1321
|
-
totalDays,
|
|
1322
|
-
currentYear,
|
|
1323
|
-
currentMonth,
|
|
1324
|
-
min,
|
|
1325
|
-
max,
|
|
1326
|
-
onDateClick: handleDateClick,
|
|
1327
|
-
}) })] }));
|
|
1328
|
-
});
|
|
1329
|
-
|
|
1330
|
-
const months = [
|
|
1331
|
-
'Январь',
|
|
1332
|
-
'Февраль',
|
|
1333
|
-
'Март',
|
|
1334
|
-
'Апрель',
|
|
1335
|
-
'Май',
|
|
1336
|
-
'Июнь',
|
|
1337
|
-
'Июль',
|
|
1338
|
-
'Август',
|
|
1339
|
-
'Сентябрь',
|
|
1340
|
-
'Октябрь',
|
|
1341
|
-
'Ноябрь',
|
|
1342
|
-
'Декабрь',
|
|
1343
|
-
];
|
|
1179
|
+
const inputValidStyle = 'border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded';
|
|
1344
1180
|
|
|
1345
|
-
const
|
|
1346
|
-
const getYears = () => Array.from({ length: new Date().getFullYear() - START_YEAR + 1 }, (_, i) => START_YEAR + i);
|
|
1181
|
+
const renderLabel = (label) => label ? (jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label })) : null;
|
|
1347
1182
|
|
|
1348
|
-
const
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
const handleChangeVisibleCalendar = useCallback(() => onShowCalendar(!showCalendar), [showCalendar]);
|
|
1357
|
-
const handleNextMonth = useCallback(() => {
|
|
1358
|
-
if (selectedMonth + 1 <= MONTHS_COUNT) {
|
|
1359
|
-
onMonthSelect(selectedMonth + 1);
|
|
1360
|
-
}
|
|
1361
|
-
else {
|
|
1362
|
-
onMonthSelect(0);
|
|
1363
|
-
onYearSelect(selectedYear + 1);
|
|
1364
|
-
}
|
|
1365
|
-
}, [selectedMonth]);
|
|
1366
|
-
const handlePrevMonth = useCallback(() => {
|
|
1367
|
-
if (selectedMonth - 1 >= 0) {
|
|
1368
|
-
onMonthSelect(selectedMonth - 1);
|
|
1369
|
-
}
|
|
1370
|
-
else {
|
|
1371
|
-
onMonthSelect(11);
|
|
1372
|
-
onYearSelect(selectedYear - 1);
|
|
1183
|
+
const Input = JSX(({ key, className = '', id, name, type = 'text', label, placeholder, value = '', valid = true, children, onChange, onFocus, onBlur, pattern, autoFocus = false, isTextarea = false, }) => {
|
|
1184
|
+
const inputRef = useRef(null);
|
|
1185
|
+
const handleChange = useCallback((e) => {
|
|
1186
|
+
onChange && onChange(e.target?.value || '');
|
|
1187
|
+
}, [onChange]);
|
|
1188
|
+
useEffect(() => {
|
|
1189
|
+
if (autoFocus) {
|
|
1190
|
+
inputRef.current?.focus();
|
|
1373
1191
|
}
|
|
1374
|
-
}, [
|
|
1375
|
-
const
|
|
1376
|
-
const
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
handleNextMonth,
|
|
1380
|
-
handlePrevMonth,
|
|
1381
|
-
handleSelectMonth,
|
|
1382
|
-
handleSelectYear,
|
|
1383
|
-
monthsOptions: MONTHS_OPTIONS,
|
|
1384
|
-
yearsOptions: YEARS_OPTIONS,
|
|
1385
|
-
ref,
|
|
1386
|
-
};
|
|
1387
|
-
};
|
|
1388
|
-
|
|
1389
|
-
const ICON_PROPS = {
|
|
1390
|
-
name: 'ArrowUpIcon',
|
|
1391
|
-
iconVersion: 'black',
|
|
1392
|
-
width: '24',
|
|
1393
|
-
height: '24',
|
|
1394
|
-
};
|
|
1395
|
-
const SELECT_PROPS = {
|
|
1396
|
-
className: 'min-w-32',
|
|
1397
|
-
iconVersion: 'black',
|
|
1398
|
-
isBorder: false,
|
|
1399
|
-
};
|
|
1400
|
-
const formStyle = 'flex justify-between items-center h-14 px-m py-s border rounded-md cursor-pointer ' +
|
|
1401
|
-
'hover:border-black active:border-black focus:border-black';
|
|
1402
|
-
const DatePicker = JSX(({ className = '', label = '', value, valid = true, minDate, maxDate, onChange }) => {
|
|
1403
|
-
const [showCalendar, { setValue }] = useBool(false);
|
|
1404
|
-
const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
|
|
1405
|
-
const [selectedYear, setSelectedYear] = useState(value?.getFullYear() || new Date().getFullYear());
|
|
1406
|
-
const { handlePrevMonth, handleNextMonth, handleSelectMonth, handleSelectYear, monthsOptions, yearsOptions, handleChangeVisibleCalendar, ref, } = useDatePickerManager({
|
|
1407
|
-
onYearSelect: setSelectedYear,
|
|
1408
|
-
onMonthSelect: setSelectedMonth,
|
|
1409
|
-
onShowCalendar: setValue,
|
|
1410
|
-
selectedYear,
|
|
1411
|
-
selectedMonth,
|
|
1412
|
-
showCalendar,
|
|
1413
|
-
});
|
|
1414
|
-
return (jsxs("div", { className: style('space-y-xs', className), ref: ref, children: [renderLabel(label), jsxs("div", { className: "relative", children: [renderDatePickerForm(handleChangeVisibleCalendar, value, valid), showCalendar ? (jsxs("div", { className: "absolute bg-white z-20 select-none bottom-full", children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, onDateSelect: onChange, min: minDate, max: maxDate })] })) : null] })] }));
|
|
1192
|
+
}, [autoFocus, inputRef]);
|
|
1193
|
+
const defaultStyle = 'w-full border rounded-md text-primary-text outline-none p-m';
|
|
1194
|
+
const paddingStyle = children ? 'pr-3xl' : '';
|
|
1195
|
+
const validStyle = getValidStyle(valid);
|
|
1196
|
+
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle, validStyle), id: style('textarea', id), name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { type: type, className: style('h-14', defaultStyle, paddingStyle, validStyle), ref: inputRef, id: id, name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key))] }), children] }));
|
|
1415
1197
|
});
|
|
1416
|
-
const
|
|
1417
|
-
|
|
1418
|
-
const DatePickerControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(DatePicker, { label: label && rest?.errors ? `${label}*` : label, valid: Boolean(!error), ...rest }), renderErrorText(error)] })));
|
|
1198
|
+
const getValidStyle = (valid) => (valid ? inputValidStyle : 'border-error');
|
|
1419
1199
|
|
|
1420
1200
|
const DEFAULT_HINTS_COUNT = 10;
|
|
1421
1201
|
const getResponseHandler = (response) => {
|
|
@@ -1491,6 +1271,12 @@
|
|
|
1491
1271
|
return debouncedCallback;
|
|
1492
1272
|
};
|
|
1493
1273
|
|
|
1274
|
+
const usePopupManager = () => ({
|
|
1275
|
+
open: (popup, options) => defaultEventBus.fire('popup', { type: 'open', popup, ...options }),
|
|
1276
|
+
update: (popup, options) => defaultEventBus.fire('popup', { type: 'update', popup, ...options }),
|
|
1277
|
+
close: () => defaultEventBus.fire('popup', { type: 'close' }),
|
|
1278
|
+
});
|
|
1279
|
+
|
|
1494
1280
|
const InputPopup = JSX(({ options, onChange }) => (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl", role: "list", children: options?.map((item, key) => (jsx("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "listitem", onMouseDown: () => onChange(item.processedValue), children: jsx("span", { className: "min-h-6", children: item.processedValue }) }, key.toString()))) })));
|
|
1495
1281
|
|
|
1496
1282
|
function useInputPopup({ isOpen, value, name, onChange }) {
|
|
@@ -1559,6 +1345,76 @@
|
|
|
1559
1345
|
const getLabel = (errors, label) => (label && errors ? `${label}*` : label);
|
|
1560
1346
|
const getPlaceholder = (placeholder, errors, label) => errors && !label ? `${placeholder}*` : placeholder;
|
|
1561
1347
|
|
|
1348
|
+
const formatOption = (_) => _?.text || _?.key || '';
|
|
1349
|
+
|
|
1350
|
+
const filterOptions = (options, query) => {
|
|
1351
|
+
if (!options?.length || !query?.trim()) {
|
|
1352
|
+
return options;
|
|
1353
|
+
}
|
|
1354
|
+
return options.filter((_) => _.text?.toLocaleLowerCase().includes(query?.trim().toLocaleLowerCase()));
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1357
|
+
const SelectPopup = JSX(({ popupRef, options, value, query, onChange, iconVersion }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl", role: "list", ref: popupRef, children: filterOptions(options, query).map((option) => (jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "listitem", "aria-selected": option.key === value?.key, onClick: (e) => {
|
|
1358
|
+
e.stopPropagation();
|
|
1359
|
+
if (onChange) {
|
|
1360
|
+
onChange(option);
|
|
1361
|
+
}
|
|
1362
|
+
}, children: [jsx("span", { className: "min-h-6", children: formatOption(option) }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", iconVersion: iconVersion, className: style('absolute right-4 pt-3xs', {
|
|
1363
|
+
hidden: option.key !== value?.key,
|
|
1364
|
+
}) })] }, option.key))) })) : null);
|
|
1365
|
+
|
|
1366
|
+
function useSelectPopup({ isOpen, options, value, query, onChange, onClose, iconVersion, }) {
|
|
1367
|
+
const popup = usePopupManager();
|
|
1368
|
+
const close = useCallback(() => {
|
|
1369
|
+
popup.close();
|
|
1370
|
+
onClose && onClose();
|
|
1371
|
+
}, [onClose]);
|
|
1372
|
+
const handleChange = useCallback((option) => {
|
|
1373
|
+
close();
|
|
1374
|
+
onChange && onChange(option);
|
|
1375
|
+
}, [close, onChange]);
|
|
1376
|
+
const inputRef = useRef(null);
|
|
1377
|
+
const popupRef = useOutsideClick(close);
|
|
1378
|
+
useEffect(() => {
|
|
1379
|
+
if (!isOpen || !inputRef.current) {
|
|
1380
|
+
return;
|
|
1381
|
+
}
|
|
1382
|
+
const inputElement = inputRef.current;
|
|
1383
|
+
const { top, left, width, height } = inputElement.getBoundingClientRect();
|
|
1384
|
+
popup.update(jsx(SelectPopup, { popupRef: popupRef, options: options, value: value, query: query, onChange: handleChange, iconVersion: iconVersion }), {
|
|
1385
|
+
top: top + window.scrollY + height,
|
|
1386
|
+
left,
|
|
1387
|
+
width,
|
|
1388
|
+
});
|
|
1389
|
+
}, [isOpen, options, value, query, handleChange]);
|
|
1390
|
+
return inputRef;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
const Select = JSX(
|
|
1394
|
+
// eslint-disable-next-line complexity
|
|
1395
|
+
({ className, label, options = [], value, valid = true, isBorder = true, placeholder = '', isSearch = false, iconVersion = 'black', onChange, disabled, }) => {
|
|
1396
|
+
const [isOpen, { setFalse: close, setTrue: open }] = useBool();
|
|
1397
|
+
const [query, setQuery] = useState('');
|
|
1398
|
+
const isDisabled = disabled || options.length === 0;
|
|
1399
|
+
const hasOpen = isOpen && !isDisabled;
|
|
1400
|
+
const handleClose = useCallback(() => {
|
|
1401
|
+
setQuery('');
|
|
1402
|
+
close();
|
|
1403
|
+
}, []);
|
|
1404
|
+
const inputRef = useSelectPopup({
|
|
1405
|
+
isOpen,
|
|
1406
|
+
options,
|
|
1407
|
+
value,
|
|
1408
|
+
query,
|
|
1409
|
+
onChange,
|
|
1410
|
+
onClose: handleClose,
|
|
1411
|
+
iconVersion,
|
|
1412
|
+
});
|
|
1413
|
+
return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : open, children: [jsx("p", { className: "line-clamp-2 text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$1(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
|
|
1414
|
+
});
|
|
1415
|
+
const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-0 flex self-center', { 'rotate-180': !isOpen }), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
|
|
1416
|
+
const getStyle = (isBorder, valid, disabled) => style(isBorder ? 'border rounded-md ' : '', isBorder && !disabled ? 'hover:border-primary-hover' : '', disabled ? 'bg-main-divider' : 'cursor-pointer ', valid ? 'border-gray' : 'border-error');
|
|
1417
|
+
|
|
1562
1418
|
const SelectControl = JSX(({ className = '', label, error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error, label: rest?.errors ? `${label}*` : label }), renderErrorText(error)] })));
|
|
1563
1419
|
|
|
1564
1420
|
const getNamesFromInput = (inputs) => Object.values(inputs.filter((_) => _))?.map((_) => _.name);
|
|
@@ -1814,37 +1670,195 @@
|
|
|
1814
1670
|
const ITEMS_CREDIT_AMOUNT = ['От 1 000 ₽', 'До 1 000 000 000 ₽'];
|
|
1815
1671
|
const AmountField = JSX(({ field }) => (jsx(InputRange, { title: "\u0421\u0443\u043C\u043C\u0430, \u20BD", items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') })));
|
|
1816
1672
|
|
|
1673
|
+
const AnnualRevenueField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...getValidation(field('annualRevenue'), validatorObj.annualRevenue, input?.required) })));
|
|
1674
|
+
|
|
1675
|
+
const BankEmpoleeField = JSX(({ field }) => (jsx(InputControl, { label: "\u0424\u0418\u041E \u0438\u043B\u0438 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u0432\u0448\u0435\u0433\u043E \u0412\u0430\u0441 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u0430 \u0411\u0430\u043D\u043A\u0430", ...field('bankEmpolee') })));
|
|
1676
|
+
|
|
1677
|
+
const DAY_COUNT = 6;
|
|
1678
|
+
const WEEK_COUNT = 7;
|
|
1679
|
+
const renderCalendarCells = ({ today, firstDayOfWeek, totalDays, currentMonth, currentYear, min, max, onDateClick, }) => {
|
|
1680
|
+
const calendarCells = [];
|
|
1681
|
+
let dayCounter = 1;
|
|
1682
|
+
for (let i = 0; i < DAY_COUNT; i++) {
|
|
1683
|
+
const rowCells = [];
|
|
1684
|
+
for (let j = 0; j < WEEK_COUNT; j++) {
|
|
1685
|
+
if (i === 0 && j < firstDayOfWeek) {
|
|
1686
|
+
rowCells.push(jsx("td", {}, `empty-${j}`));
|
|
1687
|
+
}
|
|
1688
|
+
else if (dayCounter > totalDays) {
|
|
1689
|
+
rowCells.push(jsx("td", {}, `empty-${j}`));
|
|
1690
|
+
}
|
|
1691
|
+
else {
|
|
1692
|
+
const currentDate = new Date(currentYear, currentMonth, dayCounter);
|
|
1693
|
+
const isToday = checkIsToday(currentDate, today);
|
|
1694
|
+
const isDisabled = checkIsDisabled(currentDate, min, max);
|
|
1695
|
+
rowCells.push(jsx("td", { children: jsx("div", { className: getDayStyles(isToday, isDisabled), onClick: () => !isDisabled && onDateClick(currentDate), children: dayCounter }) }, `day-${dayCounter}`));
|
|
1696
|
+
dayCounter++;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
calendarCells.push(jsx("tr", { children: rowCells }, `row-${i}`));
|
|
1700
|
+
}
|
|
1701
|
+
return calendarCells;
|
|
1702
|
+
};
|
|
1703
|
+
const checkIsToday = (currentDate, today) => today && currentDate.toDateString() === today.toDateString();
|
|
1704
|
+
const checkIsDisabled = (currentDate, min, max) => (min && currentDate.getTime() < min.getTime()) || (max && currentDate.getTime() > max.getTime());
|
|
1705
|
+
const getDayStyles = (isToday, isDisabled) => style('p-s text-center rounded-md border', {
|
|
1706
|
+
'border-transparent hover:bg-gray': !isToday,
|
|
1707
|
+
}, isDisabled ? 'text-gray hover:bg-transparent' : 'cursor-pointer');
|
|
1708
|
+
|
|
1709
|
+
const WEEK_DAYS = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
|
|
1710
|
+
const Calendar = JSX(({ today, currentMonth, currentYear, min, max, onDateSelect = noop, setValue = noop }) => {
|
|
1711
|
+
const handleDateClick = useCallback((date) => {
|
|
1712
|
+
onDateSelect(date);
|
|
1713
|
+
setValue(false);
|
|
1714
|
+
}, []);
|
|
1715
|
+
const { firstDayOfWeek, totalDays } = useMemo(() => ({
|
|
1716
|
+
firstDayOfWeek: new Date(currentYear, currentMonth, 1).getDay() - 1,
|
|
1717
|
+
totalDays: new Date(currentYear, currentMonth + 1, 0).getDate(),
|
|
1718
|
+
}), [currentYear, currentMonth]);
|
|
1719
|
+
return (jsxs("table", { className: "mx-auto", children: [jsx("thead", { className: "text-gray font-light", children: jsx("tr", { children: WEEK_DAYS.map((day, index) => (jsx("th", { className: "p-s", children: day }, String(index)))) }) }), jsx("tbody", { children: renderCalendarCells({
|
|
1720
|
+
firstDayOfWeek,
|
|
1721
|
+
today,
|
|
1722
|
+
totalDays,
|
|
1723
|
+
currentYear,
|
|
1724
|
+
currentMonth,
|
|
1725
|
+
min,
|
|
1726
|
+
max,
|
|
1727
|
+
onDateClick: handleDateClick,
|
|
1728
|
+
}) })] }));
|
|
1729
|
+
});
|
|
1730
|
+
|
|
1731
|
+
const months = [
|
|
1732
|
+
'Январь',
|
|
1733
|
+
'Февраль',
|
|
1734
|
+
'Март',
|
|
1735
|
+
'Апрель',
|
|
1736
|
+
'Май',
|
|
1737
|
+
'Июнь',
|
|
1738
|
+
'Июль',
|
|
1739
|
+
'Август',
|
|
1740
|
+
'Сентябрь',
|
|
1741
|
+
'Октябрь',
|
|
1742
|
+
'Ноябрь',
|
|
1743
|
+
'Декабрь',
|
|
1744
|
+
];
|
|
1745
|
+
|
|
1746
|
+
const START_YEAR = 1940;
|
|
1747
|
+
const getYears = () => Array.from({ length: new Date().getFullYear() - START_YEAR + 1 }, (_, i) => START_YEAR + i);
|
|
1748
|
+
|
|
1749
|
+
const MONTHS_COUNT = 11;
|
|
1750
|
+
const MONTHS_OPTIONS = months.map((key) => ({ key }));
|
|
1751
|
+
const YEARS_OPTIONS = getYears()
|
|
1752
|
+
.reverse()
|
|
1753
|
+
.map((key) => ({ key: String(key) }));
|
|
1754
|
+
const useDatePickerManager = ({ onShowCalendar, showCalendar, selectedMonth, onMonthSelect, onYearSelect, selectedYear, }) => {
|
|
1755
|
+
const close = useCallback(() => showCalendar && onShowCalendar(false), [showCalendar]);
|
|
1756
|
+
const ref = useOutsideClick(close);
|
|
1757
|
+
const handleChangeVisibleCalendar = useCallback(() => onShowCalendar(!showCalendar), [showCalendar]);
|
|
1758
|
+
const handleNextMonth = useCallback(() => {
|
|
1759
|
+
if (selectedMonth + 1 <= MONTHS_COUNT) {
|
|
1760
|
+
onMonthSelect(selectedMonth + 1);
|
|
1761
|
+
}
|
|
1762
|
+
else {
|
|
1763
|
+
onMonthSelect(0);
|
|
1764
|
+
onYearSelect(selectedYear + 1);
|
|
1765
|
+
}
|
|
1766
|
+
}, [selectedMonth]);
|
|
1767
|
+
const handlePrevMonth = useCallback(() => {
|
|
1768
|
+
if (selectedMonth - 1 >= 0) {
|
|
1769
|
+
onMonthSelect(selectedMonth - 1);
|
|
1770
|
+
}
|
|
1771
|
+
else {
|
|
1772
|
+
onMonthSelect(11);
|
|
1773
|
+
onYearSelect(selectedYear - 1);
|
|
1774
|
+
}
|
|
1775
|
+
}, [selectedMonth]);
|
|
1776
|
+
const handleSelectMonth = useCallback(({ key }) => onMonthSelect(months.indexOf(key)), []);
|
|
1777
|
+
const handleSelectYear = useCallback(({ key }) => onYearSelect(Number(key)), []);
|
|
1778
|
+
return {
|
|
1779
|
+
handleChangeVisibleCalendar,
|
|
1780
|
+
handleNextMonth,
|
|
1781
|
+
handlePrevMonth,
|
|
1782
|
+
handleSelectMonth,
|
|
1783
|
+
handleSelectYear,
|
|
1784
|
+
monthsOptions: MONTHS_OPTIONS,
|
|
1785
|
+
yearsOptions: YEARS_OPTIONS,
|
|
1786
|
+
ref,
|
|
1787
|
+
};
|
|
1788
|
+
};
|
|
1789
|
+
|
|
1790
|
+
const ICON_PROPS = {
|
|
1791
|
+
name: 'ArrowUpIcon',
|
|
1792
|
+
iconVersion: 'black',
|
|
1793
|
+
width: '24',
|
|
1794
|
+
height: '24',
|
|
1795
|
+
};
|
|
1796
|
+
const SELECT_PROPS = {
|
|
1797
|
+
className: 'min-w-32',
|
|
1798
|
+
iconVersion: 'black',
|
|
1799
|
+
isBorder: false,
|
|
1800
|
+
};
|
|
1801
|
+
const formStyle = 'flex justify-between items-center h-14 px-m py-s border rounded-md cursor-pointer ' +
|
|
1802
|
+
'hover:border-black active:border-black focus:border-black';
|
|
1803
|
+
const DatePicker = JSX(({ className = '', label = '', value, valid = true, minDate, maxDate, onChange }) => {
|
|
1804
|
+
const [showCalendar, { setValue }] = useBool(false);
|
|
1805
|
+
const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
|
|
1806
|
+
const [selectedYear, setSelectedYear] = useState(value?.getFullYear() || new Date().getFullYear());
|
|
1807
|
+
const { handlePrevMonth, handleNextMonth, handleSelectMonth, handleSelectYear, monthsOptions, yearsOptions, handleChangeVisibleCalendar, ref, } = useDatePickerManager({
|
|
1808
|
+
onYearSelect: setSelectedYear,
|
|
1809
|
+
onMonthSelect: setSelectedMonth,
|
|
1810
|
+
onShowCalendar: setValue,
|
|
1811
|
+
selectedYear,
|
|
1812
|
+
selectedMonth,
|
|
1813
|
+
showCalendar,
|
|
1814
|
+
});
|
|
1815
|
+
return (jsxs("div", { className: style('space-y-xs', className), ref: ref, children: [renderLabel(label), jsxs("div", { className: "relative", children: [renderDatePickerForm(handleChangeVisibleCalendar, value, valid), showCalendar ? (jsxs("div", { className: "absolute bg-white z-20 select-none bottom-full", children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, onDateSelect: onChange, min: minDate, max: maxDate })] })) : null] })] }));
|
|
1816
|
+
});
|
|
1817
|
+
const renderDatePickerForm = (handleChangeVisibleCalendar, value, valid) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: style(formStyle, valid ? 'border-gray' : 'border-error'), children: [jsx(Paragraph, { children: value && formatDate(value) }), jsx(Icon, { ...ICON_PROPS, name: "CalendarIcon" })] }));
|
|
1818
|
+
|
|
1819
|
+
const DatePickerControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(DatePicker, { label: label && rest?.errors ? `${label}*` : label, valid: Boolean(!error), ...rest }), renderErrorText(error)] })));
|
|
1820
|
+
|
|
1821
|
+
const BirthdayField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthday'), validatorObj.birthday, input?.required) })));
|
|
1822
|
+
|
|
1823
|
+
const CollectionCountField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u0438\u043D\u043A\u0430\u0441\u0441\u0430\u0446\u0438\u0438", type: "number", ...getValidation(field('collectionCount'), validatorObj.collectionCount, input?.required) })));
|
|
1824
|
+
|
|
1817
1825
|
const CommentField = JSX(({ field, input }) => (jsx(InputControl, { className: "col-span-2", ...getValidation(field('comment'), validatorObj.comment, input?.required), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435", isTextarea: true })));
|
|
1818
1826
|
|
|
1819
|
-
const ConsentAssignmentField = JSX(({ field }) => (jsx(CheckboxWithError, { text: "\u041F\u0440\u043E\u0447\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u044F (\u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0443\u0441\u0442\u0443\u043F\u043A\u0443 \u043F\u0440\u0430\u0432 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439)", ...
|
|
1827
|
+
const ConsentAssignmentField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u041F\u0440\u043E\u0447\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u044F (\u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0443\u0441\u0442\u0443\u043F\u043A\u0443 \u043F\u0440\u0430\u0432 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439)", ...getValidation(field('consentAssignmentClaimsFlg'), validatorObj.consentAssignmentClaimsFlg, input?.required) })));
|
|
1828
|
+
|
|
1829
|
+
const ConsentCollectionField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u041F\u0440\u043E\u0447\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u044F (\u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0432\u0437\u044B\u0441\u043A\u0430\u043D\u0438\u0435 \u043F\u043E \u0438\u0441\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u043D\u0430\u0434\u043F\u0438\u0441\u0438 \u043D\u043E\u0442\u0430\u0440\u0438\u0443\u0441\u0430)", ...getValidation(field('consentCollectionFlg'), validatorObj.consentCollectionFlg, input?.required) })));
|
|
1820
1830
|
|
|
1821
|
-
const
|
|
1831
|
+
const ConsentInformField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0438\u043D\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043E \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u0430\u0445 \u0438 \u0443\u0441\u043B\u0443\u0433\u0430\u0445 \u0411\u0430\u043D\u043A\u0430", ...getValidation(field('consentInformFlg'), validatorObj.consentInformFlg, input?.required) })));
|
|
1822
1832
|
|
|
1823
|
-
const
|
|
1833
|
+
const ConsentPhotoFlg = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u041F\u0440\u043E\u0447\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u044F (\u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435)", ...getValidation(field('consentPhotoFlg'), validatorObj.consentPhotoFlg, input?.required) })));
|
|
1824
1834
|
|
|
1825
|
-
const
|
|
1835
|
+
const ConsentProviderField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043E\u0431 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u043F\u0440\u043E\u0441\u0442\u043E\u0439 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0434\u043F\u0438\u0441\u0438", ...getValidation(field('consentProviderFlg'), validatorObj.consentProviderFlg, input?.required) })));
|
|
1826
1836
|
|
|
1827
|
-
const
|
|
1837
|
+
const ConsentToReceiveMaterialsField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u043D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0445 \u0438 \u0430\u043D\u0430\u043B\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432 \u043F\u043E \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u0435", ...getValidation(field('consentToReceiveMaterials'), validatorObj.consentToReceiveMaterials, input?.required) })));
|
|
1828
1838
|
|
|
1829
|
-
const
|
|
1839
|
+
const DesiredMeetingDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthday'), validatorObj.birthday, input?.required) })));
|
|
1830
1840
|
|
|
1831
1841
|
const EmailField = JSX(({ field, input }) => {
|
|
1832
1842
|
const { required, ...rest } = input;
|
|
1833
1843
|
return (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...getValidation(field('email'), validatorObj.email, required), ...rest }));
|
|
1834
1844
|
});
|
|
1835
1845
|
|
|
1836
|
-
const FeedbackMethodField = JSX(({ field }) => (jsx(SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430", options: FEEDBACK_METHOD, ...
|
|
1846
|
+
const FeedbackMethodField = JSX(({ field, input }) => (jsx(SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430", options: FEEDBACK_METHOD, ...getValidation(field('feedbackMethod'), validatorObj.feedbackMethod, input?.required) })));
|
|
1837
1847
|
|
|
1838
|
-
const FeedbackTypeField = JSX(({ field }) => {
|
|
1848
|
+
const FeedbackTypeField = JSX(({ field, input }) => {
|
|
1839
1849
|
const feedbackType = field('feedbackType');
|
|
1840
1850
|
useEffect(() => {
|
|
1841
1851
|
if (feedbackType?.value?.key === 'FEEDBACK') {
|
|
1842
1852
|
field('serviceDirection')?.onChange?.(SERVICE_DIRECTIONS[0]);
|
|
1843
1853
|
}
|
|
1844
1854
|
}, [feedbackType?.value]);
|
|
1845
|
-
return (jsx(SelectControl, { label: "\u0422\u0435\u043C\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u043C\u0443", options: FEEDBACK_TYPES, ...
|
|
1855
|
+
return (jsx(SelectControl, { label: "\u0422\u0435\u043C\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u043C\u0443", options: FEEDBACK_TYPES, ...getValidation(feedbackType, validatorObj.feedbackType, input?.required) }));
|
|
1846
1856
|
});
|
|
1847
1857
|
|
|
1858
|
+
const FullNameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0424\u0418\u041E", ...getValidation(field('fullName'), validatorObj.fullName, input?.required), ...input })));
|
|
1859
|
+
|
|
1860
|
+
const InnField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0418\u041D\u041D", type: "number", ...getValidation(field('inn'), validatorObj.inn, input?.required) })));
|
|
1861
|
+
|
|
1848
1862
|
const IsClientField = JSX(({ field }) => (jsx(CheckboxWithError, { ...field('isClient'), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' })));
|
|
1849
1863
|
|
|
1850
1864
|
const REGIONS_URL = '/api/v1/regions';
|
|
@@ -1911,7 +1925,7 @@
|
|
|
1911
1925
|
|
|
1912
1926
|
const PosTerminalField = JSX(({ field }) => isAcquiringTrade(field('acquiringType')?.value?.key) ? (jsx(SlideCheckbox, { type: "radio", text: "\u0425\u043E\u0447\u0443 POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })) : null);
|
|
1913
1927
|
|
|
1914
|
-
const ProcessPersonalDataField = JSX(({ field }) => (jsx(CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0443 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445", ...
|
|
1928
|
+
const ProcessPersonalDataField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0443 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445", ...getValidation(field('processPersonalDataLeadFlg'), validatorObj.processPersonalDataLeadFlg, input?.required) })));
|
|
1915
1929
|
|
|
1916
1930
|
const ProductField = UniBlock(({ field, source }) => (jsx(SelectControl, { placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0440\u043E\u0434\u0443\u043A\u0442", label: "\u041F\u0440\u043E\u0434\u0443\u043A\u0442", options: arrayToOptions(source?.productList), ...withValidator(field('product'), validatorObj.product) })));
|
|
1917
1931
|
const arrayToOptions = (array) => (array ?? []).map((_) => ({ key: _, value: _ }));
|
|
@@ -1937,7 +1951,7 @@
|
|
|
1937
1951
|
: withValidator(fieldPhone, validatorObj.secondaryPhone)) }));
|
|
1938
1952
|
});
|
|
1939
1953
|
|
|
1940
|
-
const ServiceDirectionField = JSX(({ field }) => (jsx(SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: SERVICE_DIRECTIONS, ...
|
|
1954
|
+
const ServiceDirectionField = JSX(({ field, input }) => (jsx(SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: SERVICE_DIRECTIONS, ...getValidation(field('serviceDirection'), validatorObj.serviceDirection, input?.required) })));
|
|
1941
1955
|
|
|
1942
1956
|
const SurnameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...getValidation(field('surname'), validatorObj.surname, input?.required), ...input })));
|
|
1943
1957
|
|
|
@@ -1946,7 +1960,7 @@
|
|
|
1946
1960
|
const ITEMS_CREDIT_TERM = ['От 1 мес', 'До 15 лет'];
|
|
1947
1961
|
const TermField = JSX(({ field }) => (jsx(InputRange, { title: "\u0421\u0440\u043E\u043A, \u043C\u0435\u0441\u044F\u0446\u0435\u0432", items: ITEMS_CREDIT_TERM, min: MIN_CREDIT_TERM, max: MAX_CREDIT_TERM, ...field('term') })));
|
|
1948
1962
|
|
|
1949
|
-
const UltraPremiumField = JSX(({ field }) => (jsx(SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", options: SERVICE_TYPES, ...
|
|
1963
|
+
const UltraPremiumField = JSX(({ field, input }) => (jsx(SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", options: SERVICE_TYPES, ...getValidation(field('serviceType'), validatorObj.serviceType, input?.required) })));
|
|
1950
1964
|
|
|
1951
1965
|
const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className: style(inputValidStyle.split(' ').filter((_) => _ !== 'rounded'), defaultCheckStyle, 'flex justify-center items-center after:block after:w-2.5 after:h-2.5 after:rounded-full rounded-full', 'checked:border-2 checked:!border-primary-main focus:checked:border-primary-main checked:after:bg-primary-main'), type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange?.(_.target.value), role: "radio" }), text ? jsx(Text, { color: "text-primary-text", children: text }) : null] }) })));
|
|
1952
1966
|
|
|
@@ -1979,7 +1993,6 @@
|
|
|
1979
1993
|
const getField =
|
|
1980
1994
|
// eslint-disable-next-line max-lines-per-function
|
|
1981
1995
|
(field, typeForm) => (input, i) => {
|
|
1982
|
-
const { required, ...rest } = input;
|
|
1983
1996
|
const isPremium = typeForm === 'ULTRASERVICE' || typeForm === 'PREMIUMSERVICE';
|
|
1984
1997
|
const InputsMap = {
|
|
1985
1998
|
surname: jsx(SurnameField, { field: field, input: input }),
|
|
@@ -1987,40 +2000,40 @@
|
|
|
1987
2000
|
middleName: jsx(MiddleNameField, { field: field, input: input }),
|
|
1988
2001
|
phone: jsx(PhoneField, { field: field, input: input }),
|
|
1989
2002
|
email: jsx(EmailField, { field: field, input: input }),
|
|
1990
|
-
fullName:
|
|
1991
|
-
inn:
|
|
2003
|
+
fullName: jsx(FullNameField, { field: field, input: input }),
|
|
2004
|
+
inn: jsx(InnField, { field: field, input: input }),
|
|
1992
2005
|
comment: jsx(CommentField, { field: field, input: input }),
|
|
1993
|
-
region: isPremium ? (jsx(RegionPremiumField, { field: field })) : (jsx(RegionField, { field: field, input: input, url: getRegionUrl(typeForm) })),
|
|
1994
2006
|
addressBranch: jsx(AddressBranchField, { field: field, input: input, isPremium: isPremium }),
|
|
1995
|
-
birthday:
|
|
1996
|
-
desiredMeetingDate:
|
|
2007
|
+
birthday: jsx(BirthdayField, { field: field, input: input }),
|
|
2008
|
+
desiredMeetingDate: jsx(DesiredMeetingDateField, { field: field, input: input }),
|
|
1997
2009
|
product: jsx(ProductField, { field: field, source: PRODUCT_REF }),
|
|
1998
2010
|
localities: jsx(LocalitiesField, { field: field, input: input }),
|
|
1999
2011
|
isClient: jsx(IsClientField, { field: field }),
|
|
2000
2012
|
partnerComments: jsx(PartnerCommentsField, { field: field, input: input }),
|
|
2001
|
-
collectionCount:
|
|
2013
|
+
collectionCount: jsx(CollectionCountField, { field: field, input: input }),
|
|
2002
2014
|
acquiringType: jsx(AcquiringField, { field: field, input: input }),
|
|
2003
2015
|
onlineCheckout: jsx(OnlineCheckoutField, { field: field }),
|
|
2004
2016
|
posTerminal: jsx(PosTerminalField, { field: field }),
|
|
2005
|
-
serviceType: jsx(UltraPremiumField, { field: field }),
|
|
2017
|
+
serviceType: jsx(UltraPremiumField, { field: field, input: input }),
|
|
2006
2018
|
term: jsx(TermField, { field: field }),
|
|
2007
2019
|
amount: jsx(AmountField, { field: field }),
|
|
2008
|
-
annualRevenue:
|
|
2020
|
+
annualRevenue: jsx(AnnualRevenueField, { field: field, input: input }),
|
|
2009
2021
|
vedTypes: jsx(VedField, { field: field }),
|
|
2010
|
-
feedbackType: jsx(FeedbackTypeField, { field: field }),
|
|
2011
|
-
feedbackMethod: jsx(FeedbackMethodField, { field: field }),
|
|
2012
|
-
serviceDirection: jsx(ServiceDirectionField, { field: field }),
|
|
2013
|
-
bankEmpolee:
|
|
2014
|
-
applicationDate: (jsx(InputControl, { label: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0432 \u0411\u0430\u043D\u043A", ...field('applicationDate') })),
|
|
2022
|
+
feedbackType: jsx(FeedbackTypeField, { field: field, input: input }),
|
|
2023
|
+
feedbackMethod: jsx(FeedbackMethodField, { field: field, input: input }),
|
|
2024
|
+
serviceDirection: jsx(ServiceDirectionField, { field: field, input: input }),
|
|
2025
|
+
bankEmpolee: jsx(BankEmpoleeField, { field: field }),
|
|
2015
2026
|
secondaryPhone: jsx(SecondaryPhoneField, { field: field }),
|
|
2027
|
+
consentToReceiveMaterials: jsx(ConsentToReceiveMaterialsField, { field: field, input: input }),
|
|
2028
|
+
processPersonalDataLeadFlg: jsx(ProcessPersonalDataField, { field: field, input: input }),
|
|
2029
|
+
consentProviderFlg: jsx(ConsentProviderField, { field: field, input: input }),
|
|
2030
|
+
consentPhotoFlg: jsx(ConsentPhotoFlg, { field: field, input: input }),
|
|
2031
|
+
consentAssignmentClaimsFlg: jsx(ConsentAssignmentField, { field: field, input: input }),
|
|
2032
|
+
consentCollectionFlg: jsx(ConsentCollectionField, { field: field, input: input }),
|
|
2033
|
+
consentInformFlg: jsx(ConsentInformField, { field: field, input: input }),
|
|
2034
|
+
applicationDate: (jsx(InputControl, { label: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0432 \u0411\u0430\u043D\u043A", ...field('applicationDate') })),
|
|
2016
2035
|
consentPfrFlg: (jsx(CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0437\u0430\u043F\u0440\u043E\u0441 \u0432 \u041F\u0424\u0420", ...field('consentPfrFlg') })),
|
|
2017
|
-
|
|
2018
|
-
processPersonalDataLeadFlg: jsx(ProcessPersonalDataField, { field: field }),
|
|
2019
|
-
consentProviderFlg: jsx(ConsentProviderField, { field: field }),
|
|
2020
|
-
consentPhotoFlg: jsx(ConsentPhotoFlg, { field: field }),
|
|
2021
|
-
consentAssignmentClaimsFlg: jsx(ConsentAssignmentField, { field: field }),
|
|
2022
|
-
consentCollectionFlg: jsx(ConsentCollectionField, { field: field }),
|
|
2023
|
-
consentInformFlg: jsx(ConsentInformField, { field: field }),
|
|
2036
|
+
region: isPremium ? (jsx(RegionPremiumField, { field: field })) : (jsx(RegionField, { field: field, input: input, url: getRegionUrl(typeForm) })),
|
|
2024
2037
|
};
|
|
2025
2038
|
return isRenderField({ input, field }) ? (jsx("div", { children: InputsMap[input?.name] }, String(i))) : null;
|
|
2026
2039
|
};
|
|
@@ -2339,7 +2352,7 @@
|
|
|
2339
2352
|
};
|
|
2340
2353
|
const hasValidationErrors = useMemo(() => inputs
|
|
2341
2354
|
?.filter((_) => _.required)
|
|
2342
|
-
?.some((_) => Boolean(
|
|
2355
|
+
?.some((_) => Boolean(getValidation(field(_?.name), validatorObj[_?.name], _?.required))), [inputs]);
|
|
2343
2356
|
return (jsx("div", { className: "w-fit", children: jsx(Foldable, { isFoldButtonOnTop: true, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { isUnfolded: isUnfolded, className: "flex flex-col pl-2xl", children: inputs.map(getField(field, typeForm)) })), renderFoldButton: renderGeneralCheckbox(jsxs("div", { children: [jsx(Checkbox, { value: isChecked, onChange: handleGeneralToggle, text: CONSENT_ALL_DOCS_TEXT }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] })) }) }));
|
|
2344
2357
|
});
|
|
2345
2358
|
const renderGeneralCheckbox = (generalCheckBox) => (foldableData) => (jsxs("div", { className: "flex items-start", children: [generalCheckBox, jsx("button", { onClick: foldableData.onToggle, className: "px-m py-2xs", children: jsx(Icon, { className: "text-primary-text", name: foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }) })] }));
|
|
@@ -5273,13 +5286,13 @@
|
|
|
5273
5286
|
};
|
|
5274
5287
|
};
|
|
5275
5288
|
|
|
5276
|
-
const ReportDialogButton = JSX(({ text, href, target, __html }) => {
|
|
5289
|
+
const ReportDialogButton = JSX(({ text, href, target, __html, icon }) => {
|
|
5277
5290
|
if (!text && !__html) {
|
|
5278
5291
|
return null;
|
|
5279
5292
|
}
|
|
5280
5293
|
const reportDialog = useReportDialog({ __html, href, target });
|
|
5281
5294
|
const openReportDialog = useCallback(() => reportDialog.open(), [reportDialog]);
|
|
5282
|
-
return (
|
|
5295
|
+
return (jsxs("button", { className: "flex gap-s text-primary-text no-underline hover:text-primary-main", onClick: openReportDialog, children: [renderImg(icon), jsx(Text, { font: "font-light", children: text })] }));
|
|
5283
5296
|
});
|
|
5284
5297
|
|
|
5285
5298
|
const linkColumnsModeStyleMap = {
|
|
@@ -5296,17 +5309,17 @@
|
|
|
5296
5309
|
return null;
|
|
5297
5310
|
}
|
|
5298
5311
|
if ('reportSource' in docBlockDef && docBlockDef?.reportSource?.__html) {
|
|
5299
|
-
return renderModalItem(docBlockDef, i);
|
|
5312
|
+
return renderModalItem(icon)(docBlockDef, i);
|
|
5300
5313
|
}
|
|
5301
5314
|
return renderDefaultItem(router, icon)(docBlockDef, i);
|
|
5302
5315
|
};
|
|
5303
|
-
const renderModalItem = (props, i) => {
|
|
5316
|
+
const renderModalItem = (icon) => (props, i) => {
|
|
5304
5317
|
const commonProps = {
|
|
5305
5318
|
text: props.text,
|
|
5306
5319
|
target: props.target,
|
|
5307
5320
|
__html: props.reportSource?.__html,
|
|
5308
5321
|
};
|
|
5309
|
-
return props.reportSource?.__html && props.text ? (jsxs("div", { role: "listitem", children: [jsx(ReportDialogButton, { ...commonProps, href: isLinkDoc(props) ? props?.href : props?.attachment?.src }), jsx(RichText, { __html: props?.__html })] }, String(i))) : null;
|
|
5322
|
+
return props.reportSource?.__html && props.text ? (jsxs("div", { role: "listitem", children: [jsx(ReportDialogButton, { ...commonProps, icon: icon, href: isLinkDoc(props) ? props?.href : props?.attachment?.src }), jsx(RichText, { __html: props?.__html })] }, String(i))) : null;
|
|
5310
5323
|
};
|
|
5311
5324
|
const isLinkDoc = (data) => 'href' in data;
|
|
5312
5325
|
|
|
@@ -6845,7 +6858,7 @@
|
|
|
6845
6858
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6846
6859
|
});
|
|
6847
6860
|
|
|
6848
|
-
const packageVersion = "0.14.
|
|
6861
|
+
const packageVersion = "0.14.576";
|
|
6849
6862
|
|
|
6850
6863
|
exports.Blocks = Blocks;
|
|
6851
6864
|
exports.ContentPage = ContentPage;
|