@powerhousedao/document-engineering 1.29.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/scalars/components/phone-number-field/index.d.ts +3 -0
- package/dist/src/scalars/components/phone-number-field/index.d.ts.map +1 -0
- package/dist/src/scalars/components/phone-number-field/index.js +2 -0
- package/dist/src/scalars/components/phone-number-field/index.js.map +1 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.d.ts +3 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.d.ts.map +1 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.js +33 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.js.map +1 -0
- package/dist/src/scalars/components/phone-number-field/types.d.ts +5 -0
- package/dist/src/scalars/components/phone-number-field/types.d.ts.map +1 -0
- package/dist/src/scalars/components/phone-number-field/types.js +2 -0
- package/dist/src/scalars/components/phone-number-field/types.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/aid-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/aid-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/aid-editor.js +12 -0
- package/dist/src/table/components/default-cell-editors/aid-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/amount-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/amount-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/amount-editor.js +15 -0
- package/dist/src/table/components/default-cell-editors/amount-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/boolean-editor.d.ts +1 -1
- package/dist/src/table/components/default-cell-editors/boolean-editor.d.ts.map +1 -1
- package/dist/src/table/components/default-cell-editors/boolean-editor.js +1 -1
- package/dist/src/table/components/default-cell-editors/boolean-editor.js.map +1 -1
- package/dist/src/table/components/default-cell-editors/country-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/country-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/country-editor.js +12 -0
- package/dist/src/table/components/default-cell-editors/country-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/currency-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/currency-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/currency-editor.js +12 -0
- package/dist/src/table/components/default-cell-editors/currency-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/date-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/date-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/date-editor.js +12 -0
- package/dist/src/table/components/default-cell-editors/date-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/datetime-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/datetime-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/datetime-editor.js +12 -0
- package/dist/src/table/components/default-cell-editors/datetime-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/email-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/email-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/email-editor.js +12 -0
- package/dist/src/table/components/default-cell-editors/email-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/enum-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/enum-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/enum-editor.js +12 -0
- package/dist/src/table/components/default-cell-editors/enum-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.d.ts.map +1 -1
- package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.js +44 -8
- package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.js.map +1 -1
- package/dist/src/table/components/default-cell-editors/index.d.ts +3 -3
- package/dist/src/table/components/default-cell-editors/index.d.ts.map +1 -1
- package/dist/src/table/components/default-cell-editors/index.js +3 -3
- package/dist/src/table/components/default-cell-editors/index.js.map +1 -1
- package/dist/src/table/components/default-cell-editors/number-editor.d.ts +1 -1
- package/dist/src/table/components/default-cell-editors/number-editor.d.ts.map +1 -1
- package/dist/src/table/components/default-cell-editors/number-editor.js +1 -1
- package/dist/src/table/components/default-cell-editors/number-editor.js.map +1 -1
- package/dist/src/table/components/default-cell-editors/oid-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/oid-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/oid-editor.js +12 -0
- package/dist/src/table/components/default-cell-editors/oid-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/phid-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/phid-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/phid-editor.js +12 -0
- package/dist/src/table/components/default-cell-editors/phid-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/string-editor.d.ts +1 -1
- package/dist/src/table/components/default-cell-editors/string-editor.d.ts.map +1 -1
- package/dist/src/table/components/default-cell-editors/string-editor.js +1 -1
- package/dist/src/table/components/default-cell-editors/string-editor.js.map +1 -1
- package/dist/src/table/components/default-cell-editors/time-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/time-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/time-editor.js +12 -0
- package/dist/src/table/components/default-cell-editors/time-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/url-editor.d.ts +4 -0
- package/dist/src/table/components/default-cell-editors/url-editor.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/url-editor.js +12 -0
- package/dist/src/table/components/default-cell-editors/url-editor.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/aid-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/aid-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/aid-render.js +11 -0
- package/dist/src/table/components/default-cell-renderers/aid-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/amount-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/amount-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/amount-render.js +11 -0
- package/dist/src/table/components/default-cell-renderers/amount-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/country-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/country-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/country-render.js +11 -0
- package/dist/src/table/components/default-cell-renderers/country-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/currency-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/currency-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/currency-render.js +11 -0
- package/dist/src/table/components/default-cell-renderers/currency-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/date-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/date-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/date-render.js +24 -0
- package/dist/src/table/components/default-cell-renderers/date-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/datetime-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/datetime-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/datetime-render.js +24 -0
- package/dist/src/table/components/default-cell-renderers/datetime-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/email-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/email-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/email-render.js +11 -0
- package/dist/src/table/components/default-cell-renderers/email-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/enum-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/enum-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/enum-render.js +11 -0
- package/dist/src/table/components/default-cell-renderers/enum-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/get-render-fn.d.ts.map +1 -1
- package/dist/src/table/components/default-cell-renderers/get-render-fn.js +36 -0
- package/dist/src/table/components/default-cell-renderers/get-render-fn.js.map +1 -1
- package/dist/src/table/components/default-cell-renderers/oid-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/oid-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/oid-render.js +11 -0
- package/dist/src/table/components/default-cell-renderers/oid-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/phid-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/phid-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/phid-render.js +11 -0
- package/dist/src/table/components/default-cell-renderers/phid-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/time-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/time-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/time-render.js +11 -0
- package/dist/src/table/components/default-cell-renderers/time-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/url-render.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/url-render.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/url-render.js +12 -0
- package/dist/src/table/components/default-cell-renderers/url-render.js.map +1 -0
- package/dist/src/table/components/default-fns/default-column-config.d.ts.map +1 -1
- package/dist/src/table/components/default-fns/default-column-config.js +12 -0
- package/dist/src/table/components/default-fns/default-column-config.js.map +1 -1
- package/dist/src/table/components/default-sort-columns/default-sort-fns.d.ts.map +1 -1
- package/dist/src/table/components/default-sort-columns/default-sort-fns.js +12 -0
- package/dist/src/table/components/default-sort-columns/default-sort-fns.js.map +1 -1
- package/dist/src/table/components/rows/render-row.js +2 -2
- package/dist/src/table/components/rows/render-row.js.map +1 -1
- package/dist/src/table/components/rows/row-actions.d.ts.map +1 -1
- package/dist/src/table/components/rows/row-actions.js +5 -2
- package/dist/src/table/components/rows/row-actions.js.map +1 -1
- package/dist/src/table/components/table-provider/table-provider.d.ts.map +1 -1
- package/dist/src/table/components/table-provider/table-provider.js +2 -4
- package/dist/src/table/components/table-provider/table-provider.js.map +1 -1
- package/dist/src/table/examples/table-editing/table-editing.d.ts.map +1 -1
- package/dist/src/table/examples/table-editing/table-editing.js +7 -6
- package/dist/src/table/examples/table-editing/table-editing.js.map +1 -1
- package/dist/src/table/hooks/useGlobalTableKeyEvents.d.ts.map +1 -1
- package/dist/src/table/hooks/useGlobalTableKeyEvents.js +20 -0
- package/dist/src/table/hooks/useGlobalTableKeyEvents.js.map +1 -1
- package/dist/src/table/index.d.ts +1 -0
- package/dist/src/table/index.d.ts.map +1 -1
- package/dist/src/table/index.js +1 -0
- package/dist/src/table/index.js.map +1 -1
- package/dist/src/table/logic/table-api.d.ts.map +1 -1
- package/dist/src/table/logic/table-api.js +26 -9
- package/dist/src/table/logic/table-api.js.map +1 -1
- package/dist/src/table/table/mock-data.d.ts +1 -0
- package/dist/src/table/table/mock-data.d.ts.map +1 -1
- package/dist/src/table/table/mock-data.js +7 -0
- package/dist/src/table/table/mock-data.js.map +1 -1
- package/dist/src/table/table/object-set-table.d.ts.map +1 -1
- package/dist/src/table/table/object-set-table.js +1 -0
- package/dist/src/table/table/object-set-table.js.map +1 -1
- package/dist/src/table/table/types.d.ts +11 -2
- package/dist/src/table/table/types.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/amount-input/amount-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/amount-input/amount-input.js +2 -2
- package/dist/src/ui/components/data-entry/amount-input/amount-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js +8 -3
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.d.ts +7 -0
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.js +64 -0
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/examples/index.d.ts +2 -0
- package/dist/src/ui/components/data-entry/file-input/examples/index.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/examples/index.js +2 -0
- package/dist/src/ui/components/data-entry/file-input/examples/index.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/file-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/file-input.js +14 -8
- package/dist/src/ui/components/data-entry/file-input/file-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts +11 -3
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js +24 -12
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.d.ts +9 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.js +10 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.d.ts +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.js +11 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.d.ts +6 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.js +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.d.ts +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.js +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.d.ts +5 -7
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.js +4 -13
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.d.ts +9 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.js +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.d.ts +4 -7
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.js +4 -13
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.d.ts +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.js +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/types.d.ts +8 -8
- package/dist/src/ui/components/data-entry/file-input/types.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/types.js +2 -2
- package/dist/src/ui/components/data-entry/file-input/types.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/useFetchQuery.d.ts +11 -0
- package/dist/src/ui/components/data-entry/file-input/useFetchQuery.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/useFetchQuery.js +30 -0
- package/dist/src/ui/components/data-entry/file-input/useFetchQuery.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.d.ts +6 -0
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.js +54 -2
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/utils.d.ts +34 -2
- package/dist/src/ui/components/data-entry/file-input/utils.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/utils.js +182 -24
- package/dist/src/ui/components/data-entry/file-input/utils.js.map +1 -1
- package/dist/src/ui/components/data-entry/number-input/number-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/number-input/number-input.js +5 -5
- package/dist/src/ui/components/data-entry/number-input/number-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/number-input/types.d.ts +1 -0
- package/dist/src/ui/components/data-entry/number-input/types.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.js +8 -9
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.d.ts +15 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.js +117 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.js.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.d.ts +14 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.js +8 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.js.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.d.ts +12 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.js +9 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.js.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/types.d.ts +2 -1
- package/dist/src/ui/components/data-entry/phone-number-input/types.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts +8 -2
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js +94 -16
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/textarea/textarea.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/textarea/textarea.js +8 -4
- package/dist/src/ui/components/data-entry/textarea/textarea.js.map +1 -1
- package/dist/src/ui/components/icon-components/BrokenAudio.d.ts +7 -0
- package/dist/src/ui/components/icon-components/BrokenAudio.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/BrokenAudio.js +7 -0
- package/dist/src/ui/components/icon-components/BrokenAudio.js.map +1 -0
- package/dist/src/ui/components/icon-components/BrokenVideo.d.ts +7 -0
- package/dist/src/ui/components/icon-components/BrokenVideo.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/BrokenVideo.js +7 -0
- package/dist/src/ui/components/icon-components/BrokenVideo.js.map +1 -0
- package/dist/src/ui/components/icon-components/PlaceholderAudio.d.ts +7 -0
- package/dist/src/ui/components/icon-components/PlaceholderAudio.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/PlaceholderAudio.js +7 -0
- package/dist/src/ui/components/icon-components/PlaceholderAudio.js.map +1 -0
- package/dist/src/ui/components/icon-components/PlaceholderVideo.d.ts +7 -0
- package/dist/src/ui/components/icon-components/PlaceholderVideo.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/PlaceholderVideo.js +7 -0
- package/dist/src/ui/components/icon-components/PlaceholderVideo.js.map +1 -0
- package/dist/src/ui/components/icon-components/index.d.ts +1 -1
- package/dist/src/ui/components/icon-components/index.d.ts.map +1 -1
- package/dist/src/ui/components/icon-components/index.js +12 -0
- package/dist/src/ui/components/icon-components/index.js.map +1 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.d.ts.map +1 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js +2 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js.map +1 -1
- package/dist/style.css +174 -11
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../../../../../scalars/lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import LoadingBar from './loading-bar.js';
|
|
7
|
-
const PreviewFilePreview = ({ status, onClose, title: overrideTitle, message: overrideMessage, }) => {
|
|
8
|
-
const config = STATUS_CONFIG[status];
|
|
9
|
-
const isLoading = status === PREVIEW_STATUS.LOADING;
|
|
10
|
-
const isCorrupted = status === PREVIEW_STATUS.CORRUPTED_FILE;
|
|
11
|
-
const title = overrideTitle ?? config.title;
|
|
12
|
-
const message = overrideMessage ?? config.message;
|
|
13
|
-
const icon = config.icon;
|
|
14
|
-
return (_jsxs("div", { className: "flex flex-col bg-white rounded-md shadow-[1px_4px_15px_0px_rgba(74,88,115,0.25)] px-6 py-4 gap-4 w-full h-full min-h-0", children: [_jsxs("header", { className: "flex justify-between items-center", children: [_jsx("span", { className: cn('text-gray-900 text-sm font-normal leading-4.5', isCorrupted && 'text-red-900'), children: "Preview" }), _jsx("button", { type: "button", onClick: onClose, "aria-label": "Close preview", className: "text-gray-400 hover:text-gray-600", children: _jsx(Icon, { name: "XmarkLight", size: 16, className: "text-gray-900" }) })] }), _jsxs("div", { className: cn('flex-1 min-h-0 flex flex-col items-center justify-center bg-gray-100 w-full overflow-auto rounded-md', isLoading && 'gap-8', !isLoading && 'gap-4'), children: [_jsx("div", { className: "relative", children: _jsx(Icon, { name: icon, size: 256, className: "text-gray-300" }) }), _jsxs("div", { className: "flex flex-col items-center justify-center gap-4", children: [title && _jsx("h3", { className: "text-xl font-bold leading-6 text-gray-500", children: title }), isLoading && _jsx(LoadingBar, { progress: 50, className: "w-[375px]" }), !isCorrupted && message && (_jsx("p", { className: "text-center text-sm text-gray-500 mx-auto max-w-[375px] whitespace-pre-line", children: message }))] })] }), isCorrupted && (_jsx("div", { className: " border-gray-200", children: _jsx("p", { className: "text-xs text-red-900 font-normal leading-4.5", children: message }) }))] }));
|
|
3
|
+
import PreviewHeader from './preview-header.js';
|
|
4
|
+
const PreviewFile = ({ onClose = () => null, preview, className }) => {
|
|
5
|
+
return (_jsxs("div", { className: cn('relative flex flex-col bg-white rounded-md shadow-[1px_4px_15px_0px_rgba(74,88,15,0.25)] px-6 py-4 gap-4 w-full h-full', className), children: [_jsx(PreviewHeader, { status: "idle", onClose: onClose, title: "PDF Preview" }), _jsx("div", { className: "flex-1 relative rounded-md overflow-hidden", children: _jsx("iframe", { src: `${preview}#toolbar=0&navpanes=0&scrollbar=0`, title: "Previsualizaci\u00F3n de PDF", className: "w-full h-full border-none", children: _jsx("p", { children: "Your browser does not support the preview." }) }) })] }));
|
|
15
6
|
};
|
|
16
|
-
export default
|
|
7
|
+
export default PreviewFile;
|
|
17
8
|
//# sourceMappingURL=preview-file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-file.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/preview-file.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"preview-file.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/preview-file.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAQ/C,MAAM,WAAW,GAAG,CAAC,EAAE,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE;IAC1F,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,wHAAwH,EACxH,SAAS,CACV,aAED,KAAC,aAAa,IAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAC,aAAa,GAAG,EAErE,cAAK,SAAS,EAAC,4CAA4C,YACzD,iBACE,GAAG,EAAE,GAAG,OAAO,mCAAmC,EAClD,KAAK,EAAC,8BAAyB,EAC/B,SAAS,EAAC,2BAA2B,YAErC,qEAAiD,GAC1C,GACL,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type HeaderStatus = 'idle' | 'error';
|
|
2
|
+
interface PreviewHeaderProps {
|
|
3
|
+
status: HeaderStatus;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const PreviewHeader: ({ status, onClose, title }: PreviewHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default PreviewHeader;
|
|
9
|
+
//# sourceMappingURL=preview-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-header.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/preview-header.tsx"],"names":[],"mappings":"AAGA,KAAK,YAAY,GAAG,MAAM,GAAG,OAAO,CAAA;AAEpC,UAAU,kBAAkB;IAC1B,MAAM,EAAE,YAAY,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,aAAa,GAAI,4BAA6C,kBAAkB,4CAWrF,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../../../scalars/lib/utils.js';
|
|
3
|
+
import { Icon } from '../../../icon/index.js';
|
|
4
|
+
const PreviewHeader = ({ status, onClose, title = 'File Preview' }) => {
|
|
5
|
+
return (_jsxs("header", { className: "flex justify-between items-center", children: [_jsx("span", { className: cn('text-gray-900 text-sm font-normal leading-4.5', status === 'error' && 'text-red-900'), children: title }), _jsx("button", { type: "button", onClick: onClose, "aria-label": "Close preview", className: "text-gray-400 hover:text-gray-600", children: _jsx(Icon, { name: "XmarkLight", size: 16, className: "text-gray-900" }) })] }));
|
|
6
|
+
};
|
|
7
|
+
export default PreviewHeader;
|
|
8
|
+
//# sourceMappingURL=preview-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-header.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/preview-header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAU7C,MAAM,aAAa,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,GAAG,cAAc,EAAsB,EAAE,EAAE;IACxF,OAAO,CACL,kBAAQ,SAAS,EAAC,mCAAmC,aACnD,eAAM,SAAS,EAAE,EAAE,CAAC,+CAA+C,EAAE,MAAM,KAAK,OAAO,IAAI,cAAc,CAAC,YACvG,KAAK,GACD,EACP,iBAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,OAAO,gBAAa,eAAe,EAAC,SAAS,EAAC,mCAAmC,YAC9G,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAC,eAAe,GAAG,GACvD,IACF,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { PREVIEW_STATUS, type PreviewStatus } from '../types.js';
|
|
2
|
-
type ImagePreviewStatus = Exclude<PreviewStatus, typeof PREVIEW_STATUS.GENERIC_ERROR>;
|
|
3
1
|
interface FilePreviewStateProps {
|
|
4
|
-
status: ImagePreviewStatus;
|
|
5
2
|
onClose: () => void;
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
className?: string;
|
|
4
|
+
preview?: string;
|
|
8
5
|
}
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
6
|
+
declare const PreviewImage: ({ onClose, className, preview }: FilePreviewStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PreviewImage;
|
|
11
8
|
//# sourceMappingURL=preview-image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-image.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/preview-image.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"preview-image.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/preview-image.tsx"],"names":[],"mappings":"AAGA,UAAU,qBAAqB;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,QAAA,MAAM,YAAY,GAAI,iCAAiC,qBAAqB,4CAc3E,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../../../../../scalars/lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import LoadingBar from './loading-bar.js';
|
|
7
|
-
const PreviewImagePreview = ({ status, onClose, title: overrideTitle, message: overrideMessage, }) => {
|
|
8
|
-
const config = STATUS_CONFIG[status];
|
|
9
|
-
const isLoading = status === PREVIEW_STATUS.LOADING;
|
|
10
|
-
const isCorrupted = status === PREVIEW_STATUS.CORRUPTED_FILE;
|
|
11
|
-
const title = overrideTitle ?? config.title;
|
|
12
|
-
const message = overrideMessage ?? config.message;
|
|
13
|
-
const icon = config.icon;
|
|
14
|
-
return (_jsxs("div", { className: "flex flex-col bg-white rounded-md shadow-[1px_4px_15px_0px_rgba(74,88,115,0.25)] px-6 py-4 gap-4 w-full h-full min-h-0", children: [_jsxs("header", { className: "flex justify-between items-center", children: [_jsx("span", { className: cn('text-gray-900 text-sm font-normal leading-4.5', isCorrupted && 'text-red-900'), children: "Image Preview" }), _jsx("button", { type: "button", onClick: onClose, "aria-label": "Close preview", className: "text-gray-400 hover:text-gray-600", children: _jsx(Icon, { name: "XmarkLight", size: 16, className: "text-gray-900" }) })] }), _jsxs("div", { className: "flex-1 min-h-0 flex flex-col items-center justify-center bg-gray-100 w-full overflow-auto rounded-md", children: [_jsx("div", { className: "relative", children: _jsx(Icon, { name: icon, size: 128, className: "text-gray-300" }) }), _jsxs("div", { className: "flex flex-col items-center justify-center gap-4", children: [title && _jsx("h3", { className: "text-xl font-bold leading-6 text-gray-500", children: title }), isLoading && _jsx(LoadingBar, { progress: 50, className: "w-[272px]" }), !isCorrupted && message && (_jsx("p", { className: "text-center text-sm text-gray-500 mx-auto max-w-[296px] whitespace-pre-line", children: message }))] })] }), isCorrupted && (_jsx("div", { className: " border-gray-200", children: _jsx("p", { className: "text-xs text-red-900 font-normal leading-4.5", children: message }) }))] }));
|
|
3
|
+
import PreviewHeader from './preview-header.js';
|
|
4
|
+
const PreviewImage = ({ onClose, className, preview }) => {
|
|
5
|
+
return (_jsxs("div", { className: cn('flex flex-col bg-white rounded-md shadow-[1px_4px_15px_0px_rgba(74,88,115,0.25)] px-6 py-4 gap-4 w-full h-full', className), children: [_jsx(PreviewHeader, { status: "idle", onClose: onClose, title: "Image Preview" }), _jsx("div", { className: "flex-1 flex justify-center items-center relative rounded-md overflow-hidden", children: preview && _jsx("img", { src: preview, alt: "Preview", className: "w-full h-full object-contain" }) })] }));
|
|
15
6
|
};
|
|
16
|
-
export default
|
|
7
|
+
export default PreviewImage;
|
|
17
8
|
//# sourceMappingURL=preview-image.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-image.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/preview-image.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"preview-image.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/preview-image.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAQ/C,MAAM,YAAY,GAAG,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAyB,EAAE,EAAE;IAC9E,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,gHAAgH,EAChH,SAAS,CACV,aAED,KAAC,aAAa,IAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAC,eAAe,GAAG,EACvE,cAAK,SAAS,EAAC,6EAA6E,YACzF,OAAO,IAAI,cAAK,GAAG,EAAE,OAAO,EAAE,GAAG,EAAC,SAAS,EAAC,SAAS,EAAC,8BAA8B,GAAG,GACpF,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface VideoPreviewProps {
|
|
2
|
+
onClose?: () => void;
|
|
3
|
+
preview?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const PreviewVideo: ({ onClose, preview, className }: VideoPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PreviewVideo;
|
|
8
|
+
//# sourceMappingURL=preview-video.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-video.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/preview-video.tsx"],"names":[],"mappings":"AAGA,UAAU,iBAAiB;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,YAAY,GAAI,iCAA8C,iBAAiB,4CAsBpF,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../../../scalars/lib/utils.js';
|
|
3
|
+
import PreviewHeader from './preview-header.js';
|
|
4
|
+
const PreviewVideo = ({ onClose = () => null, preview, className }) => {
|
|
5
|
+
return (_jsxs("div", { className: cn('flex flex-col bg-white rounded-md shadow-[1px_4px_15px_0px_rgba(74,88,15,0.25)] px-6 py-4 gap-4 w-full h-full', className), children: [_jsx(PreviewHeader, { status: "idle", onClose: onClose, title: "Video Preview" }), _jsx("div", { className: "flex-1 flex justify-center items-center rounded-md overflow-hidden", children: _jsx("video", { src: preview, controls: true, "aria-label": "Video player", className: "w-full h-full rounded-md overflow-hidden object-contain", children: _jsx("p", { children: "Your browser does not support the video preview." }) }) })] }));
|
|
6
|
+
};
|
|
7
|
+
export default PreviewVideo;
|
|
8
|
+
//# sourceMappingURL=preview-video.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-video.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/preview-video.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAQ/C,MAAM,YAAY,GAAG,CAAC,EAAE,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAqB,EAAE,EAAE;IACvF,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,+GAA+G,EAC/G,SAAS,CACV,aAED,KAAC,aAAa,IAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAC,eAAe,GAAG,EAEvE,cAAK,SAAS,EAAC,oEAAoE,YACjF,gBACE,GAAG,EAAE,OAAO,EACZ,QAAQ,sBACG,cAAc,EACzB,SAAS,EAAC,yDAAyD,YAEnE,2EAAuD,GACjD,GACJ,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -15,20 +15,20 @@ export interface FileInputProps extends Omit<InputHTMLAttributes<HTMLInputElemen
|
|
|
15
15
|
errorsUpload?: string[];
|
|
16
16
|
status?: UploadFile;
|
|
17
17
|
showPreview?: boolean;
|
|
18
|
+
preview?: string;
|
|
18
19
|
}
|
|
19
20
|
export type UploadFile = 'idle' | 'uploading' | 'success' | 'error';
|
|
20
21
|
export declare const PREVIEW_STATUS: {
|
|
21
22
|
readonly LOADING: "loading";
|
|
22
|
-
readonly
|
|
23
|
-
readonly GENERIC_ERROR: "generic_error";
|
|
23
|
+
readonly UNSUPPORTED_FILE: "unsupported_file";
|
|
24
24
|
readonly CORRUPTED_FILE: "corrupted_file";
|
|
25
|
+
readonly SUCCESS: "success";
|
|
25
26
|
};
|
|
26
|
-
type
|
|
27
|
-
export type PreviewStatus = ValueOf<typeof PREVIEW_STATUS>;
|
|
27
|
+
export type PreviewStatus = 'idle' | 'loading' | 'success' | 'corrupted_file' | 'unsupported_file';
|
|
28
28
|
export interface StatusConfig {
|
|
29
|
-
icon: IconName;
|
|
30
|
-
title
|
|
31
|
-
message
|
|
29
|
+
icon: IconName | undefined;
|
|
30
|
+
title?: string;
|
|
31
|
+
message?: string;
|
|
32
32
|
}
|
|
33
|
-
export
|
|
33
|
+
export type PreviewType = 'pdf' | 'image' | 'audio' | 'video';
|
|
34
34
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC,EACxF,cAAc,CAAC,IAAI,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAA;IAEtC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAC3D,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAC3D,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC,EACxF,cAAc,CAAC,IAAI,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAA;IAEtC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAC3D,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAC3D,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,CAAA;AAEnE,eAAO,MAAM,cAAc;;;;;CAKjB,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,gBAAgB,GAAG,kBAAkB,CAAA;AAElG,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const PREVIEW_STATUS = {
|
|
2
2
|
LOADING: 'loading',
|
|
3
|
-
|
|
4
|
-
GENERIC_ERROR: 'generic_error',
|
|
3
|
+
UNSUPPORTED_FILE: 'unsupported_file',
|
|
5
4
|
CORRUPTED_FILE: 'corrupted_file',
|
|
5
|
+
SUCCESS: 'success',
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/types.ts"],"names":[],"mappings":"AA0BA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO,EAAE,SAAS;IAClB,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;IAChC,OAAO,EAAE,SAAS;CACV,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface UseQueryOptions {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
interface UseQueryResult<T> {
|
|
5
|
+
data: T | null;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
error: unknown;
|
|
8
|
+
}
|
|
9
|
+
declare const useFetchQuery: <T>(queryFn: () => Promise<T>, { enabled }?: UseQueryOptions) => UseQueryResult<T>;
|
|
10
|
+
export default useFetchQuery;
|
|
11
|
+
//# sourceMappingURL=useFetchQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFetchQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/useFetchQuery.ts"],"names":[],"mappings":"AAEA,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,UAAU,cAAc,CAAC,CAAC;IACxB,IAAI,EAAE,CAAC,GAAG,IAAI,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,OAAO,CAAA;CACf;AAED,QAAA,MAAM,aAAa,GAAI,CAAC,EAAE,SAAS,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,cAAoB,eAAoB,KAAG,cAAc,CAAC,CAAC,CA6B/G,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
const useFetchQuery = (queryFn, { enabled = true } = {}) => {
|
|
3
|
+
const [data, setData] = useState(null);
|
|
4
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
5
|
+
const [error, setError] = useState(null);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
if (!enabled) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
const fetchData = async () => {
|
|
11
|
+
setIsLoading(true);
|
|
12
|
+
setError(null);
|
|
13
|
+
setData(null);
|
|
14
|
+
try {
|
|
15
|
+
const result = await queryFn();
|
|
16
|
+
setData(result);
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
setError(err);
|
|
20
|
+
}
|
|
21
|
+
finally {
|
|
22
|
+
setIsLoading(false);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
void fetchData();
|
|
26
|
+
}, [queryFn, enabled]);
|
|
27
|
+
return { data, isLoading, error };
|
|
28
|
+
};
|
|
29
|
+
export default useFetchQuery;
|
|
30
|
+
//# sourceMappingURL=useFetchQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFetchQuery.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/useFetchQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAY3C,MAAM,aAAa,GAAG,CAAI,OAAyB,EAAE,EAAE,OAAO,GAAG,IAAI,KAAsB,EAAE,EAAqB,EAAE;IAClH,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAW,IAAI,CAAC,CAAA;IAChD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACjD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAU,IAAI,CAAC,CAAA;IAEjD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAM;QACR,CAAC;QAED,MAAM,SAAS,GAAG,KAAK,IAAI,EAAE;YAC3B,YAAY,CAAC,IAAI,CAAC,CAAA;YAClB,QAAQ,CAAC,IAAI,CAAC,CAAA;YACd,OAAO,CAAC,IAAI,CAAC,CAAA;YAEb,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,OAAO,EAAE,CAAA;gBAC9B,OAAO,CAAC,MAAM,CAAC,CAAA;YACjB,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,QAAQ,CAAC,GAAG,CAAC,CAAA;YACf,CAAC;oBAAS,CAAC;gBACT,YAAY,CAAC,KAAK,CAAC,CAAA;YACrB,CAAC;QACH,CAAC,CAAA;QAED,KAAK,SAAS,EAAE,CAAA;IAClB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAA;IAEtB,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAA;AACnC,CAAC,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PreviewStatus } from './types.js';
|
|
1
2
|
interface UseFileUploadProps {
|
|
2
3
|
value?: File | null;
|
|
3
4
|
defaultValue?: File | null;
|
|
@@ -8,6 +9,11 @@ export declare const useFileUpload: ({ value, defaultValue, onChange }: UseFileU
|
|
|
8
9
|
file: File | null;
|
|
9
10
|
borderIndicator: string;
|
|
10
11
|
preview: string | undefined;
|
|
12
|
+
handleCancelPreview: () => void;
|
|
13
|
+
handleOnPreview: () => void;
|
|
14
|
+
isPreviewOpen: boolean;
|
|
15
|
+
previewStatus: PreviewStatus;
|
|
16
|
+
typePreview: "audio" | "video" | "image" | "pdf" | undefined;
|
|
11
17
|
};
|
|
12
18
|
export {};
|
|
13
19
|
//# sourceMappingURL=useUploadFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUploadFile.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/useUploadFile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUploadFile.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/useUploadFile.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACnB,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAC1B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAA;CACvC;AAED,eAAO,MAAM,aAAa,GAAI,mCAAmC,kBAAkB;iCA0B9D,IAAI,EAAE;;;;;;;;;CA4C1B,CAAA"}
|
|
@@ -1,7 +1,32 @@
|
|
|
1
|
-
import { useCallback, useState } from 'react';
|
|
1
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
+
import { detectPreviewType, getPreviewComponentFromError, validateFileForPreview } from './utils.js';
|
|
3
|
+
import useFetchQuery from './useFetchQuery.js';
|
|
2
4
|
export const useFileUpload = ({ value, defaultValue, onChange }) => {
|
|
3
5
|
const [file, setFile] = useState(value ?? defaultValue ?? null);
|
|
4
6
|
const [preview, setPreview] = useState(undefined);
|
|
7
|
+
const [isPreviewOpen, setIsPreviewOpen] = useState(false);
|
|
8
|
+
const queryFn = useCallback(async () => {
|
|
9
|
+
if (!file)
|
|
10
|
+
return Promise.reject(new Error('No hay archivo seleccionado'));
|
|
11
|
+
return validateFileForPreview(file);
|
|
12
|
+
}, [file]);
|
|
13
|
+
const { data, isLoading, error } = useFetchQuery(queryFn, {
|
|
14
|
+
enabled: isPreviewOpen && !!file,
|
|
15
|
+
});
|
|
16
|
+
const getPreviewStatus = () => {
|
|
17
|
+
if (!isPreviewOpen)
|
|
18
|
+
return 'idle';
|
|
19
|
+
if (isLoading)
|
|
20
|
+
return 'loading';
|
|
21
|
+
if (error) {
|
|
22
|
+
const errorType = getPreviewComponentFromError(error);
|
|
23
|
+
return errorType || 'unsupported_file';
|
|
24
|
+
}
|
|
25
|
+
if (data === 'success')
|
|
26
|
+
return 'success';
|
|
27
|
+
return 'idle';
|
|
28
|
+
};
|
|
29
|
+
const previewStatus = getPreviewStatus();
|
|
5
30
|
const handleDrop = useCallback((acceptedFiles) => {
|
|
6
31
|
if (!acceptedFiles || acceptedFiles.length === 0)
|
|
7
32
|
return;
|
|
@@ -11,7 +36,34 @@ export const useFileUpload = ({ value, defaultValue, onChange }) => {
|
|
|
11
36
|
setFile(file);
|
|
12
37
|
onChange?.(file);
|
|
13
38
|
}, [onChange]);
|
|
39
|
+
const handleCancelPreview = () => {
|
|
40
|
+
setIsPreviewOpen(false);
|
|
41
|
+
};
|
|
42
|
+
const typePreview = detectPreviewType(file ?? undefined);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
return () => {
|
|
45
|
+
if (preview) {
|
|
46
|
+
URL.revokeObjectURL(preview);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}, [preview]);
|
|
14
50
|
const borderIndicator = file ? 'text-blue-900' : 'text-gray-300';
|
|
15
|
-
|
|
51
|
+
const handleOnPreview = () => {
|
|
52
|
+
if (!file)
|
|
53
|
+
return;
|
|
54
|
+
setIsPreviewOpen(true);
|
|
55
|
+
};
|
|
56
|
+
return {
|
|
57
|
+
handleDrop,
|
|
58
|
+
file,
|
|
59
|
+
borderIndicator,
|
|
60
|
+
// Preview
|
|
61
|
+
preview,
|
|
62
|
+
handleCancelPreview,
|
|
63
|
+
handleOnPreview,
|
|
64
|
+
isPreviewOpen,
|
|
65
|
+
previewStatus,
|
|
66
|
+
typePreview,
|
|
67
|
+
};
|
|
16
68
|
};
|
|
17
69
|
//# sourceMappingURL=useUploadFile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUploadFile.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/useUploadFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"useUploadFile.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/useUploadFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AACpG,OAAO,aAAa,MAAM,oBAAoB,CAAA;AAS9C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAsB,EAAE,EAAE;IACrF,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAc,KAAK,IAAI,YAAY,IAAI,IAAI,CAAC,CAAA;IAC5E,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAqB,SAAS,CAAC,CAAA;IACrE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAEzD,MAAM,OAAO,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;QACrC,IAAI,CAAC,IAAI;YAAE,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC,CAAA;QAC1E,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAA;IACrC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAA;IACV,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,aAAa,CAAC,OAAO,EAAE;QACxD,OAAO,EAAE,aAAa,IAAI,CAAC,CAAC,IAAI;KACjC,CAAC,CAAA;IAEF,MAAM,gBAAgB,GAAG,GAAkB,EAAE;QAC3C,IAAI,CAAC,aAAa;YAAE,OAAO,MAAM,CAAA;QACjC,IAAI,SAAS;YAAE,OAAO,SAAS,CAAA;QAC/B,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,SAAS,GAAG,4BAA4B,CAAC,KAAK,CAAC,CAAA;YACrD,OAAO,SAAS,IAAI,kBAAkB,CAAA;QACxC,CAAC;QACD,IAAI,IAAI,KAAK,SAAS;YAAE,OAAO,SAAS,CAAA;QACxC,OAAO,MAAM,CAAA;IACf,CAAC,CAAA;IACD,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAA;IAExC,MAAM,UAAU,GAAG,WAAW,CAC5B,CAAC,aAAsB,EAAE,EAAE;QACzB,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;YAAE,OAAM;QACxD,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,CAAA;QAC7B,MAAM,OAAO,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAA;QACzC,UAAU,CAAC,OAAO,CAAC,CAAA;QACnB,OAAO,CAAC,IAAI,CAAC,CAAA;QACb,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAA;IAClB,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAA;IAED,MAAM,mBAAmB,GAAG,GAAG,EAAE;QAC/B,gBAAgB,CAAC,KAAK,CAAC,CAAA;IACzB,CAAC,CAAA;IAED,MAAM,WAAW,GAAG,iBAAiB,CAAC,IAAI,IAAI,SAAS,CAAC,CAAA;IAExD,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,GAAG,EAAE;YACV,IAAI,OAAO,EAAE,CAAC;gBACZ,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;YAC9B,CAAC;QACH,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,MAAM,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAA;IAEhE,MAAM,eAAe,GAAG,GAAG,EAAE;QAC3B,IAAI,CAAC,IAAI;YAAE,OAAM;QACjB,gBAAgB,CAAC,IAAI,CAAC,CAAA;IACxB,CAAC,CAAA;IAED,OAAO;QACL,UAAU;QACV,IAAI;QACJ,eAAe;QACf,UAAU;QACV,OAAO;QACP,mBAAmB;QACnB,eAAe;QACf,aAAa;QACb,aAAa;QACb,WAAW;KACZ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IconName } from '../../icon-components/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import type { PreviewStatus, PreviewType } from './types.js';
|
|
3
3
|
export declare const MESSAGES: {
|
|
4
4
|
success: string;
|
|
5
5
|
error: string;
|
|
@@ -8,5 +8,37 @@ export declare const MESSAGES: {
|
|
|
8
8
|
export declare const formatBytes: (bytes?: number, decimals?: number, binaryUnits?: boolean) => string;
|
|
9
9
|
export declare function getExtensionsFromMimeTypes(mimeTypes?: string[]): string[];
|
|
10
10
|
export declare const getIconKey: (mimeType: string) => IconName;
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const validatePdfHeader: (file: File) => Promise<boolean>;
|
|
12
|
+
export declare const validateImageHeader: (file: File) => Promise<unknown>;
|
|
13
|
+
export declare const validateAudio: (file: File) => Promise<boolean>;
|
|
14
|
+
export declare const validateVideo: (file: File) => Promise<boolean>;
|
|
15
|
+
export declare const detectPreviewType: (file?: File) => "pdf" | "image" | "audio" | "video" | undefined;
|
|
16
|
+
export declare const isCorruptedFile: (file: File) => Promise<boolean>;
|
|
17
|
+
export declare const getPreviewComponentFromError: (error: unknown) => "corrupted_file" | "unsupported_file" | null;
|
|
18
|
+
export declare const previewSizeStyles: {
|
|
19
|
+
pdf: {
|
|
20
|
+
width: string;
|
|
21
|
+
height: string;
|
|
22
|
+
};
|
|
23
|
+
video: {
|
|
24
|
+
width: string;
|
|
25
|
+
height: string;
|
|
26
|
+
};
|
|
27
|
+
image: {
|
|
28
|
+
width: string;
|
|
29
|
+
height: string;
|
|
30
|
+
};
|
|
31
|
+
audio: {
|
|
32
|
+
width: string;
|
|
33
|
+
height: string;
|
|
34
|
+
};
|
|
35
|
+
unsupported_file: {
|
|
36
|
+
width: string;
|
|
37
|
+
height: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const validateFileForPreview: (file?: File) => Promise<"success" | undefined>;
|
|
41
|
+
export declare const getIconLoading: (type: PreviewType) => IconName;
|
|
42
|
+
export declare const getBrokenFileIcon: (type: PreviewType) => IconName;
|
|
43
|
+
export declare const getContainerDimensions: (status: PreviewStatus, typePreview?: PreviewType) => string;
|
|
12
44
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC5D,eAAO,MAAM,QAAQ;;;;CAIpB,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,EAAE,iBAAY,EAAE,qBAAmB,KAAG,MAgB/E,CAAA;AAED,wBAAgB,0BAA0B,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAGzE;AAeD,eAAO,MAAM,UAAU,GAAI,UAAU,MAAM,KAAG,QAa7C,CAAA;AA2BD,eAAO,MAAM,iBAAiB,GAAU,MAAM,IAAI,qBAUjD,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAU,MAAM,IAAI,qBAiBnD,CAAA;AAED,eAAO,MAAM,aAAa,GAAU,MAAM,IAAI,KAAG,OAAO,CAAC,OAAO,CAS/D,CAAA;AAED,eAAO,MAAM,aAAa,GAAU,MAAM,IAAI,KAAG,OAAO,CAAC,OAAO,CAkB/D,CAAA;AAQD,eAAO,MAAM,iBAAiB,GAAI,OAAO,IAAI,KAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,SAOrF,CAAA;AAED,eAAO,MAAM,eAAe,GAAU,MAAM,IAAI,KAAG,OAAO,CAAC,OAAO,CAMjE,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,OAAO,OAAO,KAAG,gBAAgB,GAAG,kBAAkB,GAAG,IAYrG,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;CAM7B,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAU,OAAO,IAAI,mCAgBvD,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,WAAW,KAAG,QAalD,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,MAAM,WAAW,KAAG,QAarD,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,QAAQ,aAAa,EAAE,cAAc,WAAW,KAAG,MAmBzF,CAAA"}
|