hazo_collab_forms 2.2.8 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGE_LOG.md +47 -0
- package/dist/components/_internal_form_set.d.ts +17 -0
- package/dist/components/_internal_form_set.d.ts.map +1 -1
- package/dist/components/_internal_form_set.js +38 -9
- package/dist/components/_internal_form_set.js.map +1 -1
- package/dist/components/clarification/clarification_card.d.ts +36 -13
- package/dist/components/clarification/clarification_card.d.ts.map +1 -1
- package/dist/components/clarification/clarification_card.js +12 -32
- package/dist/components/clarification/clarification_card.js.map +1 -1
- package/dist/components/clarification/clarification_dialog.d.ts.map +1 -1
- package/dist/components/clarification/clarification_dialog.js +11 -5
- package/dist/components/clarification/clarification_dialog.js.map +1 -1
- package/dist/components/clarification/clarification_doc_reference.d.ts +6 -0
- package/dist/components/clarification/clarification_doc_reference.d.ts.map +1 -1
- package/dist/components/clarification/clarification_doc_reference.js +20 -11
- package/dist/components/clarification/clarification_doc_reference.js.map +1 -1
- package/dist/components/clarification/clarification_group_card.d.ts +65 -0
- package/dist/components/clarification/clarification_group_card.d.ts.map +1 -0
- package/dist/components/clarification/clarification_group_card.js +84 -0
- package/dist/components/clarification/clarification_group_card.js.map +1 -0
- package/dist/components/clarification/clarification_item_body.d.ts +80 -0
- package/dist/components/clarification/clarification_item_body.d.ts.map +1 -0
- package/dist/components/clarification/clarification_item_body.js +55 -0
- package/dist/components/clarification/clarification_item_body.js.map +1 -0
- package/dist/components/clarification/clarification_response_form.d.ts +25 -1
- package/dist/components/clarification/clarification_response_form.d.ts.map +1 -1
- package/dist/components/clarification/clarification_response_form.js +103 -9
- package/dist/components/clarification/clarification_response_form.js.map +1 -1
- package/dist/components/clarification/clarification_section.d.ts +36 -2
- package/dist/components/clarification/clarification_section.d.ts.map +1 -1
- package/dist/components/clarification/clarification_section.js +55 -19
- package/dist/components/clarification/clarification_section.js.map +1 -1
- package/dist/components/clarification/clarification_status_config.d.ts +57 -0
- package/dist/components/clarification/clarification_status_config.d.ts.map +1 -0
- package/dist/components/clarification/clarification_status_config.js +131 -0
- package/dist/components/clarification/clarification_status_config.js.map +1 -0
- package/dist/components/clarification/index.d.ts +6 -0
- package/dist/components/clarification/index.d.ts.map +1 -1
- package/dist/components/clarification/index.js +3 -0
- package/dist/components/clarification/index.js.map +1 -1
- package/dist/components/collab_form_file_upload.d.ts +3 -1
- package/dist/components/collab_form_file_upload.d.ts.map +1 -1
- package/dist/components/collab_form_file_upload.js +6 -6
- package/dist/components/collab_form_file_upload.js.map +1 -1
- package/dist/components/hazo_add_field_dialog/components/pending_field_item.d.ts +14 -2
- package/dist/components/hazo_add_field_dialog/components/pending_field_item.d.ts.map +1 -1
- package/dist/components/hazo_add_field_dialog/components/pending_field_item.js +11 -9
- package/dist/components/hazo_add_field_dialog/components/pending_field_item.js.map +1 -1
- package/dist/components/hazo_add_field_dialog/components/pending_field_list.d.ts +14 -2
- package/dist/components/hazo_add_field_dialog/components/pending_field_list.d.ts.map +1 -1
- package/dist/components/hazo_add_field_dialog/components/pending_field_list.js +2 -2
- package/dist/components/hazo_add_field_dialog/components/pending_field_list.js.map +1 -1
- package/dist/components/hazo_add_field_dialog/components/question_input.d.ts +6 -1
- package/dist/components/hazo_add_field_dialog/components/question_input.d.ts.map +1 -1
- package/dist/components/hazo_add_field_dialog/components/question_input.js +2 -2
- package/dist/components/hazo_add_field_dialog/components/question_input.js.map +1 -1
- package/dist/components/hazo_add_field_dialog/hazo_add_field_dialog.d.ts +6 -1
- package/dist/components/hazo_add_field_dialog/hazo_add_field_dialog.d.ts.map +1 -1
- package/dist/components/hazo_add_field_dialog/hazo_add_field_dialog.js +67 -17
- package/dist/components/hazo_add_field_dialog/hazo_add_field_dialog.js.map +1 -1
- package/dist/components/hazo_add_field_dialog/index.d.ts +3 -1
- package/dist/components/hazo_add_field_dialog/index.d.ts.map +1 -1
- package/dist/components/hazo_add_field_dialog/index.js +2 -0
- package/dist/components/hazo_add_field_dialog/index.js.map +1 -1
- package/dist/components/hazo_add_field_dialog/options/file_textbox_options.d.ts +31 -0
- package/dist/components/hazo_add_field_dialog/options/file_textbox_options.d.ts.map +1 -0
- package/dist/components/hazo_add_field_dialog/options/file_textbox_options.js +54 -0
- package/dist/components/hazo_add_field_dialog/options/file_textbox_options.js.map +1 -0
- package/dist/components/hazo_add_field_dialog/options/index.d.ts +1 -0
- package/dist/components/hazo_add_field_dialog/options/index.d.ts.map +1 -1
- package/dist/components/hazo_add_field_dialog/options/index.js +1 -0
- package/dist/components/hazo_add_field_dialog/options/index.js.map +1 -1
- package/dist/components/hazo_add_field_dialog/types.d.ts +51 -2
- package/dist/components/hazo_add_field_dialog/types.d.ts.map +1 -1
- package/dist/components/hazo_add_field_dialog/types.js +7 -0
- package/dist/components/hazo_add_field_dialog/types.js.map +1 -1
- package/dist/components/hazo_collab_form_base.d.ts +6 -1
- package/dist/components/hazo_collab_form_base.d.ts.map +1 -1
- package/dist/components/hazo_collab_form_base.js +7 -15
- package/dist/components/hazo_collab_form_base.js.map +1 -1
- package/dist/components/hazo_collab_form_data_table.d.ts.map +1 -1
- package/dist/components/hazo_collab_form_data_table.js +4 -2
- package/dist/components/hazo_collab_form_data_table.js.map +1 -1
- package/dist/components/hazo_collab_form_file_textbox/file_chip.d.ts +37 -0
- package/dist/components/hazo_collab_form_file_textbox/file_chip.d.ts.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/file_chip.js +45 -0
- package/dist/components/hazo_collab_form_file_textbox/file_chip.js.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/file_group.d.ts +35 -0
- package/dist/components/hazo_collab_form_file_textbox/file_group.d.ts.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/file_group.js +54 -0
- package/dist/components/hazo_collab_form_file_textbox/file_group.js.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/file_textbox_panel.d.ts +46 -0
- package/dist/components/hazo_collab_form_file_textbox/file_textbox_panel.d.ts.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/file_textbox_panel.js +104 -0
- package/dist/components/hazo_collab_form_file_textbox/file_textbox_panel.js.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/file_upload_zone.d.ts +20 -0
- package/dist/components/hazo_collab_form_file_textbox/file_upload_zone.d.ts.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/file_upload_zone.js +14 -0
- package/dist/components/hazo_collab_form_file_textbox/file_upload_zone.js.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/hazo_collab_form_file_textbox.d.ts +63 -0
- package/dist/components/hazo_collab_form_file_textbox/hazo_collab_form_file_textbox.d.ts.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/hazo_collab_form_file_textbox.js +226 -0
- package/dist/components/hazo_collab_form_file_textbox/hazo_collab_form_file_textbox.js.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/index.d.ts +24 -0
- package/dist/components/hazo_collab_form_file_textbox/index.d.ts.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/index.js +16 -0
- package/dist/components/hazo_collab_form_file_textbox/index.js.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/tag_pills.d.ts +11 -0
- package/dist/components/hazo_collab_form_file_textbox/tag_pills.d.ts.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/tag_pills.js +17 -0
- package/dist/components/hazo_collab_form_file_textbox/tag_pills.js.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/utils.d.ts +14 -0
- package/dist/components/hazo_collab_form_file_textbox/utils.d.ts.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/utils.js +58 -0
- package/dist/components/hazo_collab_form_file_textbox/utils.js.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/validation_dialog.d.ts +29 -0
- package/dist/components/hazo_collab_form_file_textbox/validation_dialog.d.ts.map +1 -0
- package/dist/components/hazo_collab_form_file_textbox/validation_dialog.js +182 -0
- package/dist/components/hazo_collab_form_file_textbox/validation_dialog.js.map +1 -0
- package/dist/components/hazo_collab_form_group.d.ts.map +1 -1
- package/dist/components/hazo_collab_form_group.js +2 -2
- package/dist/components/hazo_collab_form_group.js.map +1 -1
- package/dist/components/hazo_collab_form_view/context.d.ts.map +1 -1
- package/dist/components/hazo_collab_form_view/context.js +10 -3
- package/dist/components/hazo_collab_form_view/context.js.map +1 -1
- package/dist/components/hazo_collab_form_view/index.d.ts +1 -1
- package/dist/components/hazo_collab_form_view/index.d.ts.map +1 -1
- package/dist/components/hazo_collab_form_view/index.js.map +1 -1
- package/dist/components/hazo_collab_form_view/types.d.ts +32 -4
- package/dist/components/hazo_collab_form_view/types.d.ts.map +1 -1
- package/dist/components/hazo_collab_form_view/views/edit_view.d.ts.map +1 -1
- package/dist/components/hazo_collab_form_view/views/edit_view.js +4 -2
- package/dist/components/hazo_collab_form_view/views/edit_view.js.map +1 -1
- package/dist/components/hazo_collab_form_view/views/summary_view.d.ts.map +1 -1
- package/dist/components/hazo_collab_form_view/views/summary_view.js +2 -2
- package/dist/components/hazo_collab_form_view/views/summary_view.js.map +1 -1
- package/dist/components/hazo_data_form/hazo_data_form.d.ts.map +1 -1
- package/dist/components/hazo_data_form/hazo_data_form.js +4 -2
- package/dist/components/hazo_data_form/hazo_data_form.js.map +1 -1
- package/dist/components/hazo_data_form/pdf_panel.d.ts.map +1 -1
- package/dist/components/hazo_data_form/pdf_panel.js +7 -2
- package/dist/components/hazo_data_form/pdf_panel.js.map +1 -1
- package/dist/components/hazo_fb_form/components/backoffice_run_button.d.ts +16 -0
- package/dist/components/hazo_fb_form/components/backoffice_run_button.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/components/backoffice_run_button.js +23 -0
- package/dist/components/hazo_fb_form/components/backoffice_run_button.js.map +1 -0
- package/dist/components/hazo_fb_form/components/draft_clarification_card.d.ts +25 -0
- package/dist/components/hazo_fb_form/components/draft_clarification_card.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/components/draft_clarification_card.js +71 -0
- package/dist/components/hazo_fb_form/components/draft_clarification_card.js.map +1 -0
- package/dist/components/hazo_fb_form/components/fb_document_type_editor.d.ts +11 -0
- package/dist/components/hazo_fb_form/components/fb_document_type_editor.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/components/fb_document_type_editor.js +82 -0
- package/dist/components/hazo_fb_form/components/fb_document_type_editor.js.map +1 -0
- package/dist/components/hazo_fb_form/components/fb_tag_editor.d.ts +11 -0
- package/dist/components/hazo_fb_form/components/fb_tag_editor.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/components/fb_tag_editor.js +107 -0
- package/dist/components/hazo_fb_form/components/fb_tag_editor.js.map +1 -0
- package/dist/components/hazo_fb_form/components/front_office_stepper.d.ts +15 -0
- package/dist/components/hazo_fb_form/components/front_office_stepper.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/components/front_office_stepper.js +21 -0
- package/dist/components/hazo_fb_form/components/front_office_stepper.js.map +1 -0
- package/dist/components/hazo_fb_form/components/instance_sidebar.d.ts +21 -0
- package/dist/components/hazo_fb_form/components/instance_sidebar.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/components/instance_sidebar.js +58 -0
- package/dist/components/hazo_fb_form/components/instance_sidebar.js.map +1 -0
- package/dist/components/hazo_fb_form/components/run_button.d.ts +19 -0
- package/dist/components/hazo_fb_form/components/run_button.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/components/run_button.js +38 -0
- package/dist/components/hazo_fb_form/components/run_button.js.map +1 -0
- package/dist/components/hazo_fb_form/components/run_details_dialog.d.ts +17 -0
- package/dist/components/hazo_fb_form/components/run_details_dialog.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/components/run_details_dialog.js +35 -0
- package/dist/components/hazo_fb_form/components/run_details_dialog.js.map +1 -0
- package/dist/components/hazo_fb_form/components/tag_pill.d.ts +15 -0
- package/dist/components/hazo_fb_form/components/tag_pill.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/components/tag_pill.js +15 -0
- package/dist/components/hazo_fb_form/components/tag_pill.js.map +1 -0
- package/dist/components/hazo_fb_form/context.d.ts +90 -0
- package/dist/components/hazo_fb_form/context.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/context.js +13 -0
- package/dist/components/hazo_fb_form/context.js.map +1 -0
- package/dist/components/hazo_fb_form/hazo_fb_form.d.ts +13 -0
- package/dist/components/hazo_fb_form/hazo_fb_form.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/hazo_fb_form.js +401 -0
- package/dist/components/hazo_fb_form/hazo_fb_form.js.map +1 -0
- package/dist/components/hazo_fb_form/hooks/use_fb_form_state.d.ts +45 -0
- package/dist/components/hazo_fb_form/hooks/use_fb_form_state.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/hooks/use_fb_form_state.js +223 -0
- package/dist/components/hazo_fb_form/hooks/use_fb_form_state.js.map +1 -0
- package/dist/components/hazo_fb_form/hooks/use_llm_run.d.ts +46 -0
- package/dist/components/hazo_fb_form/hooks/use_llm_run.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/hooks/use_llm_run.js +1435 -0
- package/dist/components/hazo_fb_form/hooks/use_llm_run.js.map +1 -0
- package/dist/components/hazo_fb_form/index.d.ts +24 -0
- package/dist/components/hazo_fb_form/index.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/index.js +16 -0
- package/dist/components/hazo_fb_form/index.js.map +1 -0
- package/dist/components/hazo_fb_form/shared/clarification_helpers.d.ts +15 -0
- package/dist/components/hazo_fb_form/shared/clarification_helpers.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/shared/clarification_helpers.js +23 -0
- package/dist/components/hazo_fb_form/shared/clarification_helpers.js.map +1 -0
- package/dist/components/hazo_fb_form/shared/file_utils.d.ts +9 -0
- package/dist/components/hazo_fb_form/shared/file_utils.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/shared/file_utils.js +31 -0
- package/dist/components/hazo_fb_form/shared/file_utils.js.map +1 -0
- package/dist/components/hazo_fb_form/shared/format.d.ts +12 -0
- package/dist/components/hazo_fb_form/shared/format.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/shared/format.js +45 -0
- package/dist/components/hazo_fb_form/shared/format.js.map +1 -0
- package/dist/components/hazo_fb_form/shared/index.d.ts +10 -0
- package/dist/components/hazo_fb_form/shared/index.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/shared/index.js +9 -0
- package/dist/components/hazo_fb_form/shared/index.js.map +1 -0
- package/dist/components/hazo_fb_form/shared/pdf_side_panel.d.ts +22 -0
- package/dist/components/hazo_fb_form/shared/pdf_side_panel.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/shared/pdf_side_panel.js +10 -0
- package/dist/components/hazo_fb_form/shared/pdf_side_panel.js.map +1 -0
- package/dist/components/hazo_fb_form/shared/use_pdf_viewer.d.ts +26 -0
- package/dist/components/hazo_fb_form/shared/use_pdf_viewer.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/shared/use_pdf_viewer.js +41 -0
- package/dist/components/hazo_fb_form/shared/use_pdf_viewer.js.map +1 -0
- package/dist/components/hazo_fb_form/types.d.ts +283 -0
- package/dist/components/hazo_fb_form/types.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/types.js +5 -0
- package/dist/components/hazo_fb_form/types.js.map +1 -0
- package/dist/components/hazo_fb_form/views/back_office_view.d.ts +7 -0
- package/dist/components/hazo_fb_form/views/back_office_view.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/views/back_office_view.js +327 -0
- package/dist/components/hazo_fb_form/views/back_office_view.js.map +1 -0
- package/dist/components/hazo_fb_form/views/clarifications_view.d.ts +16 -0
- package/dist/components/hazo_fb_form/views/clarifications_view.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/views/clarifications_view.js +262 -0
- package/dist/components/hazo_fb_form/views/clarifications_view.js.map +1 -0
- package/dist/components/hazo_fb_form/views/front_office_view.d.ts +6 -0
- package/dist/components/hazo_fb_form/views/front_office_view.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/views/front_office_view.js +1097 -0
- package/dist/components/hazo_fb_form/views/front_office_view.js.map +1 -0
- package/dist/components/hazo_fb_form/views/interim_view.d.ts +8 -0
- package/dist/components/hazo_fb_form/views/interim_view.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/views/interim_view.js +416 -0
- package/dist/components/hazo_fb_form/views/interim_view.js.map +1 -0
- package/dist/components/hazo_fb_form/views/summary_review_view.d.ts +15 -0
- package/dist/components/hazo_fb_form/views/summary_review_view.d.ts.map +1 -0
- package/dist/components/hazo_fb_form/views/summary_review_view.js +173 -0
- package/dist/components/hazo_fb_form/views/summary_review_view.js.map +1 -0
- package/dist/components/hazo_field_library/components/template_loader_dialog.d.ts.map +1 -1
- package/dist/components/hazo_field_library/components/template_loader_dialog.js +7 -7
- package/dist/components/hazo_field_library/components/template_loader_dialog.js.map +1 -1
- package/dist/components/hazo_validation_rule_editor/components/clarification_settings.d.ts.map +1 -1
- package/dist/components/hazo_validation_rule_editor/components/clarification_settings.js +29 -2
- package/dist/components/hazo_validation_rule_editor/components/clarification_settings.js.map +1 -1
- package/dist/components/hazo_validation_rule_editor/components/rule_editor.d.ts.map +1 -1
- package/dist/components/hazo_validation_rule_editor/components/rule_editor.js +4 -4
- package/dist/components/hazo_validation_rule_editor/components/rule_editor.js.map +1 -1
- package/dist/components/hazo_validation_rule_editor/context.d.ts +3 -2
- package/dist/components/hazo_validation_rule_editor/context.d.ts.map +1 -1
- package/dist/components/hazo_validation_rule_editor/context.js +5 -1
- package/dist/components/hazo_validation_rule_editor/context.js.map +1 -1
- package/dist/components/hazo_validation_rule_editor/hooks/use_file_validation.d.ts.map +1 -1
- package/dist/components/hazo_validation_rule_editor/hooks/use_file_validation.js +23 -7
- package/dist/components/hazo_validation_rule_editor/hooks/use_file_validation.js.map +1 -1
- package/dist/components/hazo_validation_rule_editor/index.d.ts +1 -1
- package/dist/components/hazo_validation_rule_editor/index.d.ts.map +1 -1
- package/dist/components/hazo_validation_rule_editor/index.js.map +1 -1
- package/dist/components/hazo_validation_rule_editor/types.d.ts +10 -0
- package/dist/components/hazo_validation_rule_editor/types.d.ts.map +1 -1
- package/dist/components/hazo_validation_rule_editor/validation_rule_editor.d.ts +1 -1
- package/dist/components/hazo_validation_rule_editor/validation_rule_editor.d.ts.map +1 -1
- package/dist/components/hazo_validation_rule_editor/validation_rule_editor.js +2 -2
- package/dist/components/hazo_validation_rule_editor/validation_rule_editor.js.map +1 -1
- package/dist/components/index.d.ts +10 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/shared/editor_theme/components.d.ts.map +1 -1
- package/dist/components/shared/editor_theme/components.js +35 -3
- package/dist/components/shared/editor_theme/components.js.map +1 -1
- package/dist/components/shared/file_bar/file_bar.d.ts +51 -0
- package/dist/components/shared/file_bar/file_bar.d.ts.map +1 -0
- package/dist/components/shared/file_bar/file_bar.js +91 -0
- package/dist/components/shared/file_bar/file_bar.js.map +1 -0
- package/dist/components/shared/file_bar/file_bar_tag.d.ts +10 -0
- package/dist/components/shared/file_bar/file_bar_tag.d.ts.map +1 -0
- package/dist/components/shared/file_bar/file_bar_tag.js +15 -0
- package/dist/components/shared/file_bar/file_bar_tag.js.map +1 -0
- package/dist/components/shared/file_bar/file_bar_types.d.ts +29 -0
- package/dist/components/shared/file_bar/file_bar_types.d.ts.map +1 -0
- package/dist/components/shared/file_bar/file_bar_types.js +5 -0
- package/dist/components/shared/file_bar/file_bar_types.js.map +1 -0
- package/dist/components/shared/file_bar/file_bar_validation.d.ts +11 -0
- package/dist/components/shared/file_bar/file_bar_validation.d.ts.map +1 -0
- package/dist/components/shared/file_bar/file_bar_validation.js +21 -0
- package/dist/components/shared/file_bar/file_bar_validation.js.map +1 -0
- package/dist/components/shared/file_bar/file_bar_validation_dialog.d.ts +13 -0
- package/dist/components/shared/file_bar/file_bar_validation_dialog.d.ts.map +1 -0
- package/dist/components/shared/file_bar/file_bar_validation_dialog.js +74 -0
- package/dist/components/shared/file_bar/file_bar_validation_dialog.js.map +1 -0
- package/dist/components/shared/file_bar/file_validation_issues_dialog.d.ts +24 -0
- package/dist/components/shared/file_bar/file_validation_issues_dialog.d.ts.map +1 -0
- package/dist/components/shared/file_bar/file_validation_issues_dialog.js +22 -0
- package/dist/components/shared/file_bar/file_validation_issues_dialog.js.map +1 -0
- package/dist/components/shared/file_bar/index.d.ts +13 -0
- package/dist/components/shared/file_bar/index.d.ts.map +1 -0
- package/dist/components/shared/file_bar/index.js +8 -0
- package/dist/components/shared/file_bar/index.js.map +1 -0
- package/dist/components/shared/strip_base_props.d.ts.map +1 -1
- package/dist/components/shared/strip_base_props.js +2 -0
- package/dist/components/shared/strip_base_props.js.map +1 -1
- package/dist/components/shared/summary_files/summary_files.d.ts +2 -2
- package/dist/components/shared/summary_files/summary_files.d.ts.map +1 -1
- package/dist/components/shared/summary_files/summary_files.js +31 -72
- package/dist/components/shared/summary_files/summary_files.js.map +1 -1
- package/dist/components/shared/use_base_form_field.d.ts +1 -0
- package/dist/components/shared/use_base_form_field.d.ts.map +1 -1
- package/dist/components/shared/use_base_form_field.js +2 -1
- package/dist/components/shared/use_base_form_field.js.map +1 -1
- package/dist/config/clarification_templates.d.ts.map +1 -1
- package/dist/config/clarification_templates.js +15 -5
- package/dist/config/clarification_templates.js.map +1 -1
- package/dist/lib/autofill_handler.d.ts +42 -23
- package/dist/lib/autofill_handler.d.ts.map +1 -1
- package/dist/lib/autofill_handler.js +74 -197
- package/dist/lib/autofill_handler.js.map +1 -1
- package/dist/lib/fb_form_handler.d.ts +63 -0
- package/dist/lib/fb_form_handler.d.ts.map +1 -0
- package/dist/lib/fb_form_handler.js +232 -0
- package/dist/lib/fb_form_handler.js.map +1 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +1 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/validation_handler.d.ts.map +1 -1
- package/dist/lib/validation_handler.js +153 -0
- package/dist/lib/validation_handler.js.map +1 -1
- package/dist/types/clarification.d.ts +14 -1
- package/dist/types/clarification.d.ts.map +1 -1
- package/dist/types/fb_form_instance.d.ts +44 -0
- package/dist/types/fb_form_instance.d.ts.map +1 -0
- package/dist/types/fb_form_instance.js +10 -0
- package/dist/types/fb_form_instance.js.map +1 -0
- package/dist/types/file_manager.d.ts +2 -0
- package/dist/types/file_manager.d.ts.map +1 -1
- package/dist/types/file_textbox.d.ts +36 -0
- package/dist/types/file_textbox.d.ts.map +1 -0
- package/dist/types/file_textbox.js +59 -0
- package/dist/types/file_textbox.js.map +1 -0
- package/dist/types/index.d.ts +6 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/validation.d.ts +34 -2
- package/dist/types/validation.d.ts.map +1 -1
- package/dist/utils/dev_file_manager.d.ts +12 -0
- package/dist/utils/dev_file_manager.d.ts.map +1 -0
- package/dist/utils/dev_file_manager.js +54 -0
- package/dist/utils/dev_file_manager.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +8 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/rule_to_execution.d.ts +7 -0
- package/dist/utils/rule_to_execution.d.ts.map +1 -0
- package/dist/utils/rule_to_execution.js +18 -0
- package/dist/utils/rule_to_execution.js.map +1 -0
- package/dist/utils/section_helpers.d.ts +20 -0
- package/dist/utils/section_helpers.d.ts.map +1 -0
- package/dist/utils/section_helpers.js +37 -0
- package/dist/utils/section_helpers.js.map +1 -0
- package/package.json +53 -23
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileBar — Reusable file row with consistent columnar layout.
|
|
3
|
+
*
|
|
4
|
+
* Layout: [FileIcon] [Filename...] [FileSize] [InfoBtn] [ClassTag] [ViewIcon] [ValidationIcon] [RemoveIcon(hover)]
|
|
5
|
+
*
|
|
6
|
+
* Below the main row (when active):
|
|
7
|
+
* ⟳ Status text... (small italic during LLM calls)
|
|
8
|
+
*/
|
|
9
|
+
import type { FormFileAttachment } from '../../../types/file_attachment.js';
|
|
10
|
+
import type { FileTextboxTag, FileClassificationMeta } from '../../hazo_collab_form_file_textbox/hazo_collab_form_file_textbox.js';
|
|
11
|
+
import type { ClarificationItem } from '../../../types/clarification.js';
|
|
12
|
+
import type { FileValidationDetails } from './file_bar_types.js';
|
|
13
|
+
export interface FileBarProps {
|
|
14
|
+
attachment: FormFileAttachment;
|
|
15
|
+
/** Struck-through styling for replaced files */
|
|
16
|
+
muted?: boolean;
|
|
17
|
+
/** Status icon overriding the default file type icon */
|
|
18
|
+
status_icon?: 'classifying' | 'validating' | 'queued' | 'autofilling' | null;
|
|
19
|
+
/** Validation state — if provided, shows a validation badge */
|
|
20
|
+
validation?: {
|
|
21
|
+
state: 'passed' | 'issues' | 'resolved' | 'validating';
|
|
22
|
+
issue_count?: number;
|
|
23
|
+
} | null;
|
|
24
|
+
on_validation_click?: (file_id: string) => void;
|
|
25
|
+
/** When provided, clicking validation badge opens built-in dialog instead of on_validation_click */
|
|
26
|
+
validation_details?: FileValidationDetails | null;
|
|
27
|
+
/** Small italic status text shown below the bar during LLM calls */
|
|
28
|
+
pipeline_status_text?: string | null;
|
|
29
|
+
/** Width constraint class (default: 'max-w-[400px]'). Pass 'max-w-full' for full width. */
|
|
30
|
+
max_width?: string;
|
|
31
|
+
/** Classification tags displayed inline */
|
|
32
|
+
classification_tags?: FileTextboxTag[];
|
|
33
|
+
/** Classification metadata (date + nature) shown on tag expand */
|
|
34
|
+
classification_meta?: FileClassificationMeta;
|
|
35
|
+
on_download?: (attachment: FormFileAttachment) => void;
|
|
36
|
+
on_view?: (attachment: FormFileAttachment) => void;
|
|
37
|
+
on_remove?: () => void;
|
|
38
|
+
on_classify?: (attachment: FormFileAttachment) => void;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
class_name?: string;
|
|
41
|
+
}
|
|
42
|
+
/** Derive validation props from raw clarification data (convenience helper). */
|
|
43
|
+
export declare function derive_validation(file_id: string, opts: {
|
|
44
|
+
validating_file_ids?: Set<string>;
|
|
45
|
+
validated_file_ids?: Set<string>;
|
|
46
|
+
validation_errors?: Record<string, ClarificationItem[]>;
|
|
47
|
+
file_response_labels?: Record<string, string>;
|
|
48
|
+
responded_ids?: Set<string>;
|
|
49
|
+
}): FileBarProps['validation'];
|
|
50
|
+
export declare function FileBar({ attachment, muted, status_icon, validation, on_validation_click, validation_details, pipeline_status_text, max_width, classification_tags, classification_meta, on_download, on_view, on_remove, on_classify, disabled, class_name, }: FileBarProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
//# sourceMappingURL=file_bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_bar.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_bar.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AACnI,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAOjE,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wDAAwD;IACxD,WAAW,CAAC,EAAE,aAAa,GAAG,YAAY,GAAG,QAAQ,GAAG,aAAa,GAAG,IAAI,CAAC;IAC7E,+DAA+D;IAC/D,UAAU,CAAC,EAAE;QACX,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,CAAC;QACvD,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,GAAG,IAAI,CAAC;IACT,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,MA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AAE,mBAAmB,EACxC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,GACnE,EAAE,YAAY,2CAiNd"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileBar — Reusable file row with consistent columnar layout.
|
|
3
|
+
*
|
|
4
|
+
* Layout: [FileIcon] [Filename...] [FileSize] [InfoBtn] [ClassTag] [ViewIcon] [ValidationIcon] [RemoveIcon(hover)]
|
|
5
|
+
*
|
|
6
|
+
* Below the main row (when active):
|
|
7
|
+
* ⟳ Status text... (small italic during LLM calls)
|
|
8
|
+
*/
|
|
9
|
+
'use client';
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { useState } from 'react';
|
|
12
|
+
import { cn } from '../../../utils/cn.js';
|
|
13
|
+
import { format_file_size, get_file_icon } from '../../hazo_collab_form_file_textbox/utils.js';
|
|
14
|
+
import { FileBarValidation } from './file_bar_validation.js';
|
|
15
|
+
import { FileBarTag } from './file_bar_tag.js';
|
|
16
|
+
import { FileBarValidationDialog } from './file_bar_validation_dialog.js';
|
|
17
|
+
import { HiX, HiEye, HiClock, HiInformationCircle } from 'react-icons/hi';
|
|
18
|
+
import { HazoUiDialog } from 'hazo_ui';
|
|
19
|
+
/** Derive validation props from raw clarification data (convenience helper). */
|
|
20
|
+
export function derive_validation(file_id, opts) {
|
|
21
|
+
const { validating_file_ids, validated_file_ids, validation_errors, file_response_labels, responded_ids } = opts;
|
|
22
|
+
if (validating_file_ids?.has(file_id))
|
|
23
|
+
return { state: 'validating' };
|
|
24
|
+
const errors = validation_errors?.[file_id];
|
|
25
|
+
if (errors?.length) {
|
|
26
|
+
const response_label = file_response_labels?.[file_id];
|
|
27
|
+
if (response_label) {
|
|
28
|
+
return { state: 'resolved', issue_count: errors.length };
|
|
29
|
+
}
|
|
30
|
+
// Count only unresolved errors when we have individual responded IDs
|
|
31
|
+
const pending_count = responded_ids
|
|
32
|
+
? errors.filter(e => !responded_ids.has(e.id)).length
|
|
33
|
+
: errors.length;
|
|
34
|
+
const responded_count = errors.length - pending_count;
|
|
35
|
+
if (pending_count === 0) {
|
|
36
|
+
return { state: 'resolved', issue_count: errors.length };
|
|
37
|
+
}
|
|
38
|
+
if (responded_count > 0) {
|
|
39
|
+
// Partial: show only pending issues count
|
|
40
|
+
return { state: 'issues', issue_count: pending_count };
|
|
41
|
+
}
|
|
42
|
+
return { state: 'issues', issue_count: errors.length };
|
|
43
|
+
}
|
|
44
|
+
if (validated_file_ids?.has(file_id))
|
|
45
|
+
return { state: 'passed' };
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
export function FileBar({ attachment, muted, status_icon, validation, on_validation_click, validation_details, pipeline_status_text, max_width, classification_tags, classification_meta, on_download, on_view, on_remove, on_classify, disabled, class_name, }) {
|
|
49
|
+
const Icon = get_file_icon(attachment.mime_type);
|
|
50
|
+
const [info_open, set_info_open] = useState(false);
|
|
51
|
+
const [validation_dialog_open, set_validation_dialog_open] = useState(false);
|
|
52
|
+
const has_classification_info = !!(classification_meta?.document_type?.length ||
|
|
53
|
+
classification_meta?.document_nature ||
|
|
54
|
+
classification_meta?.document_date ||
|
|
55
|
+
classification_tags?.length);
|
|
56
|
+
const render_icon = () => {
|
|
57
|
+
if (status_icon === 'autofilling') {
|
|
58
|
+
return (_jsxs("svg", { className: "h-3.5 w-3.5 flex-shrink-0 text-emerald-500 animate-spin", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [_jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), _jsx("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] }));
|
|
59
|
+
}
|
|
60
|
+
if (status_icon === 'queued') {
|
|
61
|
+
return _jsx(HiClock, { className: "h-3.5 w-3.5 flex-shrink-0 text-muted-foreground animate-pulse", title: "Queued" });
|
|
62
|
+
}
|
|
63
|
+
return _jsx(Icon, { className: cn('h-3.5 w-3.5 flex-shrink-0', muted ? 'text-muted-foreground/30' : 'text-violet-400') });
|
|
64
|
+
};
|
|
65
|
+
const tag_count = classification_tags?.length ?? 0;
|
|
66
|
+
const tags_below = tag_count > 1;
|
|
67
|
+
// Determine validation click handler: built-in dialog takes priority over callback
|
|
68
|
+
const handle_validation_click = validation_details
|
|
69
|
+
? () => set_validation_dialog_open(true)
|
|
70
|
+
: on_validation_click
|
|
71
|
+
? () => on_validation_click(attachment.file_id)
|
|
72
|
+
: undefined;
|
|
73
|
+
// Auto-derive status text from status_icon when pipeline_status_text is not explicitly set
|
|
74
|
+
const effective_status_text = pipeline_status_text
|
|
75
|
+
?? (status_icon === 'classifying' ? 'Classifying document...'
|
|
76
|
+
: status_icon === 'validating' ? 'Validating document...'
|
|
77
|
+
: status_icon === 'autofilling' ? 'Autofilling fields...'
|
|
78
|
+
: status_icon === 'queued' ? 'Queued for processing...'
|
|
79
|
+
: null);
|
|
80
|
+
const width_class = max_width ?? 'max-w-[400px]';
|
|
81
|
+
return (_jsxs("div", { className: cn('group/chip rounded-md border shadow-sm transition-colors', width_class, (status_icon === 'classifying' || status_icon === 'validating')
|
|
82
|
+
? 'bg-orange-50 border-orange-200/70'
|
|
83
|
+
: status_icon === 'autofilling'
|
|
84
|
+
? 'bg-emerald-50 border-emerald-200/70'
|
|
85
|
+
: muted
|
|
86
|
+
? 'bg-muted/30 border-muted-foreground/15'
|
|
87
|
+
: 'bg-white border-violet-200/70 hover:border-violet-300', class_name), children: [_jsxs("div", { className: "flex items-center gap-1.5 px-2 py-1.5", children: [render_icon(), _jsx("button", { type: "button", onClick: () => on_download?.(attachment), className: cn('text-xs truncate min-w-0 flex-1 text-left', muted
|
|
88
|
+
? 'line-through text-muted-foreground/40 decoration-muted-foreground/30'
|
|
89
|
+
: 'text-foreground/70 hover:text-primary hover:underline'), title: attachment.file_name, children: attachment.file_name }), _jsx("span", { className: cn('text-[10px] flex-shrink-0 tabular-nums', muted ? 'text-muted-foreground/25' : 'text-muted-foreground/40'), children: format_file_size(attachment.file_size) }), has_classification_info && (_jsx("button", { type: "button", onClick: () => set_info_open(true), className: "p-0.5 rounded text-muted-foreground/40 hover:text-blue-500 transition-colors flex-shrink-0", title: "Classification details", children: _jsx(HiInformationCircle, { className: "h-3 w-3" }) })), !tags_below && _jsx(FileBarTag, { tags: classification_tags, meta: classification_meta }), on_view && (_jsx("button", { type: "button", onClick: () => on_view(attachment), className: "p-0.5 rounded text-muted-foreground/40 hover:text-primary transition-colors flex-shrink-0", title: "View", children: _jsx(HiEye, { className: "h-3 w-3" }) })), validation && (_jsx(FileBarValidation, { state: validation.state, issue_count: validation.issue_count, on_click: handle_validation_click })), !disabled && on_remove && (_jsx("button", { type: "button", onClick: on_remove, className: "p-0.5 rounded text-muted-foreground/40 hover:text-destructive transition-colors opacity-0 group-hover/chip:opacity-100 flex-shrink-0", children: _jsx(HiX, { className: "h-3 w-3" }) }))] }), tags_below && (_jsx("div", { className: "px-2 pb-1.5 -mt-0.5", children: _jsx(FileBarTag, { tags: classification_tags, meta: classification_meta }) })), effective_status_text && (_jsxs("div", { className: "px-2 pb-1.5 -mt-0.5 flex items-center gap-1.5", children: [_jsxs("svg", { className: "h-2.5 w-2.5 flex-shrink-0 text-blue-500 animate-spin", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [_jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), _jsx("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] }), _jsx("span", { className: "text-[10px] italic text-muted-foreground/50", children: effective_status_text })] })), has_classification_info && (_jsx(HazoUiDialog, { open: info_open, onOpenChange: set_info_open, title: attachment.file_name, cancelButtonText: "Close", sizeWidth: "28rem", children: _jsxs("div", { className: "space-y-4 text-sm", children: [classification_meta?.document_type && classification_meta.document_type.length > 0 && (_jsxs("div", { children: [_jsx("div", { className: "text-[10px] font-semibold uppercase tracking-wide text-muted-foreground mb-1", children: "Document Type(s)" }), _jsx("div", { className: "flex flex-wrap gap-1.5", children: classification_meta.document_type.map((dt) => (_jsx("span", { className: "inline-flex items-center px-2 py-0.5 rounded-md text-xs font-medium bg-violet-100 text-violet-700", children: dt }, dt))) })] })), classification_tags && classification_tags.length > 0 && (_jsxs("div", { children: [_jsx("div", { className: "text-[10px] font-semibold uppercase tracking-wide text-muted-foreground mb-1", children: "Tags" }), _jsx("div", { className: "space-y-1.5", children: classification_tags.map((tag) => (_jsxs("div", { className: "flex items-start gap-2", children: [_jsx("span", { className: "inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-700 flex-shrink-0", children: tag.label }), tag.tooltip && (_jsx("span", { className: "text-xs text-muted-foreground italic leading-snug pt-0.5", children: tag.tooltip }))] }, tag.id))) })] })), classification_meta?.document_nature && (_jsxs("div", { children: [_jsx("div", { className: "text-[10px] font-semibold uppercase tracking-wide text-muted-foreground mb-1", children: "Document Nature" }), _jsx("p", { className: "text-foreground/80", children: classification_meta.document_nature })] })), classification_meta?.document_date && (_jsxs("div", { children: [_jsx("div", { className: "text-[10px] font-semibold uppercase tracking-wide text-muted-foreground mb-1", children: "Document Date" }), _jsx("p", { className: "text-foreground/80", children: classification_meta.document_date })] }))] }) })), validation_details && (_jsx(FileBarValidationDialog, { open: validation_dialog_open, on_open_change: set_validation_dialog_open, details: validation_details }))] }));
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=file_bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_bar.js","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_bar.tsx"],"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E,gCAAsB,EACnH,YAAG,SAAS,EAAC,oBAAoB,YAAE,mBAAmB,CAAC,eAAe,GAAK,IACvE,CACP,EACA,mBAAmB,EAAE,aAAa,IAAI,CACrC,0BACE,cAAK,SAAS,EAAC,8EAA8E,8BAAoB,EACjH,YAAG,SAAS,EAAC,oBAAoB,YAAE,mBAAmB,CAAC,aAAa,GAAK,IACrE,CACP,IACG,GACO,CAChB,EAGA,kBAAkB,IAAI,CACrB,KAAC,uBAAuB,IACtB,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,0BAA0B,EAC1C,OAAO,EAAE,kBAAkB,GAC3B,CACH,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileBarTag — Classification tag pill with expand/collapse for date + nature details.
|
|
3
|
+
*/
|
|
4
|
+
import type { FileTextboxTag, FileClassificationMeta } from '../../hazo_collab_form_file_textbox/hazo_collab_form_file_textbox.js';
|
|
5
|
+
export interface FileBarTagProps {
|
|
6
|
+
tags?: FileTextboxTag[];
|
|
7
|
+
meta?: FileClassificationMeta;
|
|
8
|
+
}
|
|
9
|
+
export declare function FileBarTag({ tags, meta }: FileBarTagProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
//# sourceMappingURL=file_bar_tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_bar_tag.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_bar_tag.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AAEnI,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,sBAAsB,CAAC;CAC/B;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,eAAe,kDAgCzD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileBarTag — Classification tag pill with expand/collapse for date + nature details.
|
|
3
|
+
*/
|
|
4
|
+
'use client';
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { useState } from 'react';
|
|
7
|
+
import { cn } from '../../../utils/cn.js';
|
|
8
|
+
export function FileBarTag({ tags, meta }) {
|
|
9
|
+
const [expanded, set_expanded] = useState(false);
|
|
10
|
+
if (!tags?.length && !meta?.document_date && !meta?.document_nature)
|
|
11
|
+
return null;
|
|
12
|
+
const has_meta = !!(meta?.document_date || meta?.document_nature);
|
|
13
|
+
return (_jsxs("div", { className: "inline-flex items-center gap-0.5 flex-shrink-0", children: [tags?.map((tag) => (_jsx("button", { type: "button", onClick: has_meta ? () => set_expanded(!expanded) : undefined, className: cn('inline-flex items-center px-1.5 py-0.5 rounded text-[9px] font-medium', 'bg-gray-100 text-gray-600', has_meta && 'cursor-pointer hover:opacity-80', tag.tooltip && !has_meta && 'cursor-help'), title: tag.tooltip || tag.label, children: tag.label }, tag.id))), expanded && has_meta && (_jsx("span", { className: "text-[9px] text-muted-foreground/50 italic whitespace-nowrap", children: [meta.document_nature, meta.document_date].filter(Boolean).join(' · ') }))] }));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=file_bar_tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_bar_tag.js","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_bar_tag.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAQ1C,MAAM,UAAU,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAmB;IACxD,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEjD,IAAI,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,aAAa,IAAI,CAAC,IAAI,EAAE,eAAe;QAAE,OAAO,IAAI,CAAC;IAEjF,MAAM,QAAQ,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,aAAa,IAAI,IAAI,EAAE,eAAe,CAAC,CAAC;IAElE,OAAO,CACL,eAAK,SAAS,EAAC,gDAAgD,aAC5D,IAAI,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAClB,iBAEE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,EAC7D,SAAS,EAAE,EAAE,CACX,uEAAuE,EACvE,2BAA2B,EAC3B,QAAQ,IAAI,iCAAiC,EAC7C,GAAG,CAAC,OAAO,IAAI,CAAC,QAAQ,IAAI,aAAa,CAC1C,EACD,KAAK,EAAE,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,KAAK,YAE9B,GAAG,CAAC,KAAK,IAXL,GAAG,CAAC,EAAE,CAYJ,CACV,CAAC,EACD,QAAQ,IAAI,QAAQ,IAAI,CACvB,eAAM,SAAS,EAAC,8DAA8D,YAC3E,CAAC,IAAK,CAAC,eAAe,EAAE,IAAK,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GACpE,CACR,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types for FileBar pipeline tracking and validation details.
|
|
3
|
+
*/
|
|
4
|
+
import type { ValidationRuleResult } from '../../../types/validation.js';
|
|
5
|
+
/** A single step in the validation pipeline */
|
|
6
|
+
export interface PipelineStep {
|
|
7
|
+
/** Step identifier (e.g., 'response_validation', 'classification', 'doc_type_validation') */
|
|
8
|
+
id: string;
|
|
9
|
+
/** Human-readable label (e.g., 'Response Validation') */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Current status of this step */
|
|
12
|
+
status: 'pending' | 'running' | 'passed' | 'failed' | 'skipped';
|
|
13
|
+
/** LLM result details (shown in dialog) */
|
|
14
|
+
details?: string;
|
|
15
|
+
/** Error message if failed */
|
|
16
|
+
error?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Validation details data for the built-in FileBar dialog */
|
|
19
|
+
export interface FileValidationDetails {
|
|
20
|
+
file_name: string;
|
|
21
|
+
overall_status: 'validating' | 'passed' | 'failed' | 'skipped';
|
|
22
|
+
/** Pipeline steps (for response files with 3-step flow) */
|
|
23
|
+
pipeline_steps?: PipelineStep[];
|
|
24
|
+
/** Standard rule results (for non-pipeline validation) */
|
|
25
|
+
rule_results?: ValidationRuleResult[];
|
|
26
|
+
/** Reason text when validation couldn't run (e.g., unsupported file type) */
|
|
27
|
+
failure_reason?: string;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=file_bar_types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_bar_types.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_bar_types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,+CAA+C;AAC/C,MAAM,WAAW,YAAY;IAC3B,6FAA6F;IAC7F,EAAE,EAAE,MAAM,CAAC;IACX,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAChE,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,8DAA8D;AAC9D,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC/D,2DAA2D;IAC3D,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACtC,6EAA6E;IAC7E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_bar_types.js","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_bar_types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileBarValidation — 4-state validation badge for file bars.
|
|
3
|
+
* States: passed (green tick), issues (red badge), resolved (amber badge), validating (spinner).
|
|
4
|
+
*/
|
|
5
|
+
export interface FileBarValidationProps {
|
|
6
|
+
state: 'passed' | 'issues' | 'resolved' | 'validating';
|
|
7
|
+
issue_count?: number;
|
|
8
|
+
on_click?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function FileBarValidation({ state, issue_count, on_click }: FileBarValidationProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=file_bar_validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_bar_validation.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_bar_validation.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,CAAC;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,WAAe,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CA0C7F"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileBarValidation — 4-state validation badge for file bars.
|
|
3
|
+
* States: passed (green tick), issues (red badge), resolved (amber badge), validating (spinner).
|
|
4
|
+
*/
|
|
5
|
+
'use client';
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { HiCheckCircle, HiExclamationCircle } from 'react-icons/hi';
|
|
8
|
+
export function FileBarValidation({ state, issue_count = 0, on_click }) {
|
|
9
|
+
if (state === 'validating') {
|
|
10
|
+
return (_jsxs("svg", { className: "h-3 w-3 text-blue-500 animate-spin flex-shrink-0", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [_jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), _jsx("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] }));
|
|
11
|
+
}
|
|
12
|
+
if (state === 'passed') {
|
|
13
|
+
return on_click ? (_jsx("button", { type: "button", onClick: on_click, className: "inline-flex items-center flex-shrink-0 cursor-pointer hover:opacity-70 transition-opacity", title: "Validation passed \u2014 click for details", children: _jsx(HiCheckCircle, { className: "h-3.5 w-3.5 text-green-500" }) })) : (_jsx(HiCheckCircle, { className: "h-3.5 w-3.5 text-green-500 flex-shrink-0", title: "Validation passed" }));
|
|
14
|
+
}
|
|
15
|
+
if (state === 'resolved') {
|
|
16
|
+
return (_jsxs("button", { type: "button", onClick: on_click, className: "inline-flex items-center gap-0.5 px-1 py-px rounded text-[9px] font-medium cursor-pointer transition-colors flex-shrink-0 text-amber-600 bg-amber-50 hover:bg-amber-100", title: "Click to view resolved issues", children: [_jsx(HiCheckCircle, { className: "h-2.5 w-2.5" }), issue_count, " Resolved"] }));
|
|
17
|
+
}
|
|
18
|
+
// state === 'issues'
|
|
19
|
+
return (_jsxs("button", { type: "button", onClick: on_click, className: "inline-flex items-center gap-0.5 px-1 py-px rounded text-[9px] font-medium cursor-pointer transition-colors flex-shrink-0 text-red-600 bg-red-50 hover:bg-red-100", title: "Click to view and respond to validation issues", children: [_jsx(HiExclamationCircle, { className: "h-2.5 w-2.5" }), issue_count, " issue", issue_count !== 1 ? 's' : ''] }));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=file_bar_validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_bar_validation.js","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_bar_validation.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,CAAC;;AAGb,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAQpE,MAAM,UAAU,iBAAiB,CAAC,EAAE,KAAK,EAAE,WAAW,GAAG,CAAC,EAAE,QAAQ,EAA0B;IAC5F,IAAI,KAAK,KAAK,YAAY,EAAE,CAAC;QAC3B,OAAO,CACL,eAAK,SAAS,EAAC,kDAAkD,EAAC,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,aAClI,iBAAQ,SAAS,EAAC,YAAY,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,GAAG,EAC9F,eAAM,SAAS,EAAC,YAAY,EAAC,IAAI,EAAC,cAAc,EAAC,CAAC,EAAC,iHAAiH,GAAG,IACnK,CACP,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvB,OAAO,QAAQ,CAAC,CAAC,CAAC,CAChB,iBAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,QAAQ,EACrC,SAAS,EAAC,2FAA2F,EACrG,KAAK,EAAC,4CAAuC,YAC7C,KAAC,aAAa,IAAC,SAAS,EAAC,4BAA4B,GAAG,GACjD,CACV,CAAC,CAAC,CAAC,CACF,KAAC,aAAa,IAAC,SAAS,EAAC,0CAA0C,EAAC,KAAK,EAAC,mBAAmB,GAAG,CACjG,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,KAAK,UAAU,EAAE,CAAC;QACzB,OAAO,CACL,kBAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,QAAQ,EACrC,SAAS,EAAC,yKAAyK,EACnL,KAAK,EAAC,+BAA+B,aACrC,KAAC,aAAa,IAAC,SAAS,EAAC,aAAa,GAAG,EACxC,WAAW,iBACL,CACV,CAAC;IACJ,CAAC;IAED,qBAAqB;IACrB,OAAO,CACL,kBAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,QAAQ,EACrC,SAAS,EAAC,mKAAmK,EAC7K,KAAK,EAAC,gDAAgD,aACtD,KAAC,mBAAmB,IAAC,SAAS,EAAC,aAAa,GAAG,EAC9C,WAAW,YAAQ,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IACzC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileBarValidationDialog — Built-in dialog for displaying validation details.
|
|
3
|
+
*
|
|
4
|
+
* Shows pipeline steps (3-step response flow), rule results, and failure reasons.
|
|
5
|
+
*/
|
|
6
|
+
import type { FileValidationDetails } from './file_bar_types.js';
|
|
7
|
+
export interface FileBarValidationDialogProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
on_open_change: (open: boolean) => void;
|
|
10
|
+
details: FileValidationDetails;
|
|
11
|
+
}
|
|
12
|
+
export declare function FileBarValidationDialog({ open, on_open_change, details }: FileBarValidationDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=file_bar_validation_dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_bar_validation_dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_bar_validation_dialog.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,KAAK,EAAE,qBAAqB,EAAgB,MAAM,qBAAqB,CAAC;AAG/E,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,OAAO,EAAE,qBAAqB,CAAC;CAChC;AA8HD,wBAAgB,uBAAuB,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,4BAA4B,2CAqCtG"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileBarValidationDialog — Built-in dialog for displaying validation details.
|
|
3
|
+
*
|
|
4
|
+
* Shows pipeline steps (3-step response flow), rule results, and failure reasons.
|
|
5
|
+
*/
|
|
6
|
+
'use client';
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { HazoUiDialog } from 'hazo_ui';
|
|
9
|
+
import { HiCheckCircle, HiExclamationCircle, HiMinusCircle } from 'react-icons/hi';
|
|
10
|
+
/** Extract explanation text from a rule result (works for both passed and failed) */
|
|
11
|
+
function get_rule_explanation(rr) {
|
|
12
|
+
if (rr.issue_description)
|
|
13
|
+
return rr.issue_description;
|
|
14
|
+
if (rr.raw_response) {
|
|
15
|
+
try {
|
|
16
|
+
const parsed = JSON.parse(rr.raw_response.replace(/```(?:json)?\s*\n?/g, '').replace(/```/g, '').trim());
|
|
17
|
+
return parsed.validation_details || parsed.issue_description || parsed.description || parsed.reason;
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
if (rr.raw_response.length <= 200)
|
|
21
|
+
return rr.raw_response;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
function StatusBadge({ status }) {
|
|
27
|
+
switch (status) {
|
|
28
|
+
case 'passed':
|
|
29
|
+
return _jsx("span", { className: "text-sm font-medium text-green-600", children: "Passed" });
|
|
30
|
+
case 'failed':
|
|
31
|
+
return _jsx("span", { className: "text-sm font-medium text-red-600", children: "Failed" });
|
|
32
|
+
case 'validating':
|
|
33
|
+
return _jsx("span", { className: "text-sm font-medium text-blue-600", children: "Validating\u2026" });
|
|
34
|
+
case 'skipped':
|
|
35
|
+
return _jsx("span", { className: "text-sm font-medium text-muted-foreground", children: "Skipped" });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function StepIcon({ status }) {
|
|
39
|
+
switch (status) {
|
|
40
|
+
case 'passed':
|
|
41
|
+
return _jsx(HiCheckCircle, { className: "h-4 w-4 text-green-500 flex-shrink-0" });
|
|
42
|
+
case 'failed':
|
|
43
|
+
return _jsx(HiExclamationCircle, { className: "h-4 w-4 text-red-500 flex-shrink-0" });
|
|
44
|
+
case 'running':
|
|
45
|
+
return (_jsxs("svg", { className: "h-4 w-4 text-blue-500 animate-spin flex-shrink-0", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [_jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), _jsx("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] }));
|
|
46
|
+
case 'skipped':
|
|
47
|
+
return _jsx(HiMinusCircle, { className: "h-4 w-4 text-muted-foreground/40 flex-shrink-0" });
|
|
48
|
+
case 'pending':
|
|
49
|
+
return _jsx("div", { className: "h-4 w-4 rounded-full border-2 border-muted-foreground/30 flex-shrink-0" });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function PipelineStepsSection({ steps }) {
|
|
53
|
+
return (_jsxs("div", { children: [_jsxs("div", { className: "text-[10px] font-semibold uppercase tracking-wide text-muted-foreground mb-2", children: ["Pipeline Steps (", steps.length, ")"] }), _jsx("div", { className: "space-y-2", children: steps.map((step) => (_jsxs("div", { className: "rounded-md border px-3 py-2", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(StepIcon, { status: step.status }), _jsx("span", { className: "text-sm font-medium", children: step.label }), step.status === 'running' && (_jsx("span", { className: "text-[10px] text-blue-500 italic ml-auto", children: "Running\u2026" }))] }), step.error
|
|
54
|
+
? _jsx("p", { className: "mt-1 ml-6 text-xs text-red-600 leading-relaxed", children: step.error })
|
|
55
|
+
: step.details
|
|
56
|
+
? _jsx("p", { className: "mt-1 ml-6 text-xs text-muted-foreground leading-relaxed", children: step.details })
|
|
57
|
+
: null] }, step.id))) })] }));
|
|
58
|
+
}
|
|
59
|
+
function RuleResultsSection({ results }) {
|
|
60
|
+
const failed = results.filter(rr => rr.has_issue);
|
|
61
|
+
const passed = results.filter(rr => !rr.has_issue);
|
|
62
|
+
return (_jsxs("div", { className: "space-y-4", children: [failed.length > 0 && (_jsxs("div", { children: [_jsxs("div", { className: "text-[10px] font-semibold uppercase tracking-wide text-red-600 mb-2", children: ["Checks Executed: Failed (", failed.length, ")"] }), _jsx("div", { className: "space-y-2", children: failed.map((rr, i) => (_jsxs("div", { className: "rounded-md border px-3 py-2", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(HiExclamationCircle, { className: "h-4 w-4 text-red-500 flex-shrink-0" }), _jsx("span", { className: "text-sm font-medium", children: rr.rule_name || rr.rule_id })] }), rr.issue_description && (_jsx("p", { className: "mt-1 ml-6 text-xs text-muted-foreground leading-relaxed", children: rr.issue_description }))] }, rr.rule_id + '-' + i))) })] })), passed.length > 0 && (_jsxs("div", { children: [_jsxs("div", { className: "text-[10px] font-semibold uppercase tracking-wide text-green-600 mb-2", children: ["Checks Executed: Passed (", passed.length, ")"] }), _jsx("div", { className: "space-y-2", children: passed.map((rr, i) => {
|
|
63
|
+
const explanation = get_rule_explanation(rr);
|
|
64
|
+
return (_jsxs("div", { className: "rounded-md border px-3 py-2", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(HiCheckCircle, { className: "h-4 w-4 text-green-500 flex-shrink-0" }), _jsx("span", { className: "text-sm font-medium", children: rr.rule_name || rr.rule_id })] }), explanation && (_jsx("p", { className: "mt-1 ml-6 text-xs text-muted-foreground leading-relaxed", children: explanation }))] }, rr.rule_id + '-' + i));
|
|
65
|
+
}) })] }))] }));
|
|
66
|
+
}
|
|
67
|
+
export function FileBarValidationDialog({ open, on_open_change, details }) {
|
|
68
|
+
return (_jsx(HazoUiDialog, { open: open, onOpenChange: on_open_change, title: "Validation Details", description: details.file_name, cancelButtonText: "OK", sizeWidth: "32rem", children: _jsxs("div", { className: "space-y-4 text-sm", children: [details.failure_reason && (_jsx("div", { className: "rounded-md border border-red-200 bg-red-50 px-3 py-2", children: _jsx("p", { className: "text-xs text-red-700", children: details.failure_reason }) })), details.pipeline_steps && details.pipeline_steps.length > 0 && (_jsx(PipelineStepsSection, { steps: details.pipeline_steps })), details.rule_results && details.rule_results.length > 0 && (() => {
|
|
69
|
+
const pipeline_labels = new Set(details.pipeline_steps?.map(s => s.label) ?? []);
|
|
70
|
+
const filtered = details.rule_results.filter(rr => !pipeline_labels.has(rr.rule_name ?? ''));
|
|
71
|
+
return filtered.length > 0 ? _jsx(RuleResultsSection, { results: filtered }) : null;
|
|
72
|
+
})(), !details.failure_reason && !details.pipeline_steps?.length && !details.rule_results?.length && details.overall_status === 'validating' && (_jsx("p", { className: "text-xs text-muted-foreground italic", children: "Validation in progress\u2026" }))] }) }));
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=file_bar_validation_dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_bar_validation_dialog.js","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_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AC,cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,CAC9D,KAAC,oBAAoB,IAAC,KAAK,EAAE,OAAO,CAAC,cAAc,GAAI,CACxD,EAGA,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE;oBAChE,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;oBACjF,MAAM,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC;oBAC7F,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAC,kBAAkB,IAAC,OAAO,EAAE,QAAQ,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;gBAChF,CAAC,CAAC,EAAE,EAGH,CAAC,OAAO,CAAC,cAAc,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,IAAI,OAAO,CAAC,cAAc,KAAK,YAAY,IAAI,CACzI,YAAG,SAAS,EAAC,sCAAsC,6CAA4B,CAChF,IACG,GACO,CAChB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileValidationIssuesDialog — Shows validation issues for a file
|
|
3
|
+
* using the same ClarificationSection component as the Clarifications tab.
|
|
4
|
+
*/
|
|
5
|
+
import type { ClarificationItem, ClarificationResponse } from '../../../types/clarification.js';
|
|
6
|
+
import type { FileManagerCallbacks } from '../../../types/file_manager.js';
|
|
7
|
+
export interface FileValidationIssuesDialogProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
on_open_change: (open: boolean) => void;
|
|
10
|
+
/** File name shown in header */
|
|
11
|
+
file_name: string;
|
|
12
|
+
/** Clarification items (all for the same file) */
|
|
13
|
+
items: ClarificationItem[];
|
|
14
|
+
/** Read-only mode */
|
|
15
|
+
read_only?: boolean;
|
|
16
|
+
/** Callback when the shared response is applied to all items */
|
|
17
|
+
on_respond?: (id: string, response: ClarificationResponse) => void;
|
|
18
|
+
/** Callback when a doc reference is clicked */
|
|
19
|
+
on_doc_click?: (file_id: string) => void;
|
|
20
|
+
/** File manager callbacks for response file uploads */
|
|
21
|
+
file_manager?: FileManagerCallbacks;
|
|
22
|
+
}
|
|
23
|
+
export declare function FileValidationIssuesDialog({ open, on_open_change, file_name, items, read_only, on_respond, on_doc_click, file_manager, }: FileValidationIssuesDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=file_validation_issues_dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_validation_issues_dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_validation_issues_dialog.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAcH,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EAEtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,gCAAgC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,qBAAqB;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gEAAgE;IAChE,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACnE,+CAA+C;IAC/C,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,uDAAuD;IACvD,YAAY,CAAC,EAAE,oBAAoB,CAAC;CACrC;AAED,wBAAgB,0BAA0B,CAAC,EACzC,IAAI,EACJ,cAAc,EACd,SAAS,EACT,KAAK,EACL,SAAiB,EACjB,UAAU,EACV,YAAY,EACZ,YAAY,GACb,EAAE,+BAA+B,2CAoCjC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileValidationIssuesDialog — Shows validation issues for a file
|
|
3
|
+
* using the same ClarificationSection component as the Clarifications tab.
|
|
4
|
+
*/
|
|
5
|
+
'use client';
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { useMemo } from 'react';
|
|
8
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, } from '../../shared/dialog/index.js';
|
|
9
|
+
import { HiExclamationCircle } from 'react-icons/hi';
|
|
10
|
+
import { ClarificationSection } from '../../clarification/clarification_section.js';
|
|
11
|
+
export function FileValidationIssuesDialog({ open, on_open_change, file_name, items, read_only = false, on_respond, on_doc_click, file_manager, }) {
|
|
12
|
+
const counts = useMemo(() => {
|
|
13
|
+
const c = { pending: 0, responded: 0, resolved: 0, dismissed: 0, total: 0 };
|
|
14
|
+
for (const item of items) {
|
|
15
|
+
c[item.status]++;
|
|
16
|
+
c.total++;
|
|
17
|
+
}
|
|
18
|
+
return c;
|
|
19
|
+
}, [items]);
|
|
20
|
+
return (_jsx(Dialog, { open: open, onOpenChange: on_open_change, children: _jsxs(DialogContent, { className: "max-w-3xl max-h-[80vh] overflow-y-auto", children: [_jsxs(DialogHeader, { children: [_jsxs(DialogTitle, { className: "flex items-center gap-2", children: [_jsx(HiExclamationCircle, { className: "h-5 w-5 text-red-500 flex-shrink-0" }), "Validation Issues"] }), _jsxs(DialogDescription, { className: "break-all", children: [items.length, " issue", items.length !== 1 ? 's' : '', " found in ", _jsx("span", { className: "font-medium", children: file_name })] })] }), _jsx("div", { className: "mt-2", children: _jsx(ClarificationSection, { items: items, counts: counts, callbacks: {}, hide_submit: true, hide_header: true, on_response_change: on_respond, on_doc_click: on_doc_click, file_manager: file_manager, read_only: read_only }) })] }) }));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=file_validation_issues_dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_validation_issues_dialog.js","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/file_validation_issues_dialog.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,CAAC;;AAEb,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACL,MAAM,EACN,aAAa,EACb,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAyBpF,MAAM,UAAU,0BAA0B,CAAC,EACzC,IAAI,EACJ,cAAc,EACd,SAAS,EACT,KAAK,EACL,SAAS,GAAG,KAAK,EACjB,UAAU,EACV,YAAY,EACZ,YAAY,GACoB;IAChC,MAAM,MAAM,GAAG,OAAO,CAAsB,GAAG,EAAE;QAC/C,MAAM,CAAC,GAAwB,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACjG,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QAAC,CAAC;QAC1D,OAAO,CAAC,CAAC;IACX,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,CACL,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,cAAc,YAC9C,MAAC,aAAa,IAAC,SAAS,EAAC,wCAAwC,aAC/D,MAAC,YAAY,eACX,MAAC,WAAW,IAAC,SAAS,EAAC,yBAAyB,aAC9C,KAAC,mBAAmB,IAAC,SAAS,EAAC,oCAAoC,GAAG,yBAE1D,EACd,MAAC,iBAAiB,IAAC,SAAS,EAAC,WAAW,aACrC,KAAK,CAAC,MAAM,YAAQ,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,gBAAW,eAAM,SAAS,EAAC,aAAa,YAAE,SAAS,GAAQ,IAC3F,IACP,EAEf,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,oBAAoB,IACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,EAAE,EACb,WAAW,EAAE,IAAI,EACjB,WAAW,EAAE,IAAI,EACjB,kBAAkB,EAAE,UAAU,EAC9B,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,GACpB,GACE,IACQ,GACT,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileBar — Reusable file row component with consistent columnar layout.
|
|
3
|
+
*/
|
|
4
|
+
export { FileBar, derive_validation } from './file_bar.js';
|
|
5
|
+
export type { FileBarProps } from './file_bar.js';
|
|
6
|
+
export { FileBarValidation } from './file_bar_validation.js';
|
|
7
|
+
export type { FileBarValidationProps } from './file_bar_validation.js';
|
|
8
|
+
export { FileBarTag } from './file_bar_tag.js';
|
|
9
|
+
export type { FileBarTagProps } from './file_bar_tag.js';
|
|
10
|
+
export { FileBarValidationDialog } from './file_bar_validation_dialog.js';
|
|
11
|
+
export type { FileBarValidationDialogProps } from './file_bar_validation_dialog.js';
|
|
12
|
+
export type { PipelineStep, FileValidationDetails } from './file_bar_types.js';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3D,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,YAAY,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAEpF,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileBar — Reusable file row component with consistent columnar layout.
|
|
3
|
+
*/
|
|
4
|
+
export { FileBar, derive_validation } from './file_bar.js';
|
|
5
|
+
export { FileBarValidation } from './file_bar_validation.js';
|
|
6
|
+
export { FileBarTag } from './file_bar_tag.js';
|
|
7
|
+
export { FileBarValidationDialog } from './file_bar_validation_dialog.js';
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/shared/file_bar/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAG3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strip_base_props.d.ts","sourceRoot":"","sources":["../../../src/components/shared/strip_base_props.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"strip_base_props.d.ts","sourceRoot":"","sources":["../../../src/components/shared/strip_base_props.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA8EH;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAQ7F"}
|
|
@@ -78,6 +78,8 @@ const BASE_PROP_KEYS = new Set([
|
|
|
78
78
|
'date_wrapper_class_name', 'date_mode', 'min_date', 'max_date',
|
|
79
79
|
'disabled_dates', 'caption_layout', 'start_month', 'end_month', 'date_format',
|
|
80
80
|
'dropzone_class_name', 'dropzone_wrapper_class_name', 'upload_endpoint',
|
|
81
|
+
// file_textbox props
|
|
82
|
+
'tag_options', 'tags_editable', 'min_height',
|
|
81
83
|
]);
|
|
82
84
|
/**
|
|
83
85
|
* Strip all known base/internal props from the props object,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strip_base_props.js","sourceRoot":"","sources":["../../../src/components/shared/strip_base_props.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,wFAAwF;AACxF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;IAC7B,2BAA2B;IAC3B,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY;IACtE,eAAe,EAAE,mBAAmB,EAAE,aAAa,EAAE,gBAAgB;IACrE,uBAAuB,EAAE,oBAAo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;IACzB,kBAAkB,EAAE,wBAAwB,EAAE,aAAa,EAAE,aAAa;IAC1E,cAAc,EAAE,iBAAiB,EAAE,qBAAqB;IACxD,eAAe;IACf,eAAe,EAAE,gBAAgB,EAAE,WAAW;IAC9C,aAAa;IACb,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,gBAAgB;IACzD,aAAa;IACb,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB;IAC1D,gBAAgB;IAChB,sBAAsB,EAAE,2BAA2B;IACnD,yBAAyB;IACzB,0BAA0B,EAAE,2BAA2B;IACvD,qBAAqB,EAAE,sBAAsB;IAC7C,kBAAkB;IAClB,iBAAiB,EAAE,aAAa;IAChC,sBAAsB;IACtB,wBAAwB,EAAE,qBAAqB,EAAE,mBAAmB;IACpE,qBAAqB,EAAE,yBAAyB;IAChD,kCAAkC;IAClC,cAAc,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,iBAAiB;IAC1E,oBAAoB,EAAE,0BAA0B;IAChD,0DAA0D;IAC1D,oBAAoB;IACpB,yDAAyD;IACzD,0BAA0B,EAAE,6BAA6B;IACzD,6BAA6B,EAAE,2BAA2B,EAAE,gBAAgB;IAC5E,0BAA0B,EAAE,iCAAiC,EAAE,QAAQ;IACvE,0BAA0B,EAAE,mBAAmB,EAAE,eAAe;IAChE,oBAAoB,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS;IAC/D,yBAAyB,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU;IAC9D,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa;IAC7E,qBAAqB,EAAE,6BAA6B,EAAE,iBAAiB;
|
|
1
|
+
{"version":3,"file":"strip_base_props.js","sourceRoot":"","sources":["../../../src/components/shared/strip_base_props.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,wFAAwF;AACxF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;IAC7B,2BAA2B;IAC3B,OAAO,EAAE,S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AAEH;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAgC,KAAQ;IACtE,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACrC,IAAI,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,SAAS;QACtC,IAAI,GAAG,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC;YAAE,SAAS;QAC5E,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SummaryFiles component
|
|
3
|
-
* Renders a list of files
|
|
3
|
+
* Renders a list of files using FileBar for consistent styling across the app.
|
|
4
4
|
* Supports both FormFileAttachment (new) and FileData (legacy) shapes.
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
@@ -28,7 +28,7 @@ export interface SummaryFilesProps {
|
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* SummaryFiles component
|
|
31
|
-
* Renders public and private files in separate sections
|
|
31
|
+
* Renders public and private files in separate sections using FileBar
|
|
32
32
|
*/
|
|
33
33
|
export declare function SummaryFiles({ files, private_files, field_id, class_name, get_download_url, show_file_status, error_file_ids, passed_file_ids, on_file_issue_click, on_file_click, }: SummaryFilesProps): React.ReactElement | null;
|
|
34
34
|
export default SummaryFiles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summary_files.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/summary_files/summary_files.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,
|
|
1
|
+
{"version":3,"file":"summary_files.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/summary_files/summary_files.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAsB,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAE5E;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,KAAK,MAAM,CAAC;IAClF,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oEAAoE;IACpE,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,2EAA2E;IAC3E,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,8EAA8E;IAC9E,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,oGAAoG;IACpG,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC1D;AAkCD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,aAAa,EACb,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,aAAa,GACd,EAAE,iBAAiB,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAoE/C;AAED,eAAe,YAAY,CAAC"}
|