@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,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { StringField } from '../../../scalars/components/string-field/string-field.js';
|
|
3
|
-
export const
|
|
3
|
+
export const buildStringCellEditor = (stringFieldProps) => {
|
|
4
4
|
const StringCellEditor = (value, onChange, context) => {
|
|
5
5
|
const stringValue = typeof value === 'string' ? value : String(value ?? '');
|
|
6
6
|
return (_jsx(StringField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...stringFieldProps, value: stringValue, onChange: (e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/string-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,0DAA0D,CAAA;AAG7G,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"string-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/string-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,0DAA0D,CAAA;AAG7G,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,gBAAuE,EACvE,EAAE;IACF,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QAC1G,MAAM,WAAW,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAE3E,OAAO,CACL,KAAC,WAAW,IACV,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,gBAAgB,EACpB,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YAC1B,CAAC,GACD,CACH,CAAA;IACH,CAAC,CAAA;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type TimeFieldProps } from '../../../scalars/components/time-picker-field/index.js';
|
|
2
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
3
|
+
export declare const buildTimeCellEditor: <T extends DataType>(timeFieldProps: Omit<TimeFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=time-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/time-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,wDAAwD,CAAA;AAC7G,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,QAAQ,EACpD,gBAAgB,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEpC,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAkBvG,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { TimePickerField } from '../../../scalars/components/time-picker-field/index.js';
|
|
3
|
+
export const buildTimeCellEditor = (timeFieldProps) => {
|
|
4
|
+
const TimeCellEditor = (value, onChange, context) => {
|
|
5
|
+
const timeValue = typeof value === 'string' ? value : String(value ?? '');
|
|
6
|
+
return (_jsx(TimePickerField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...timeFieldProps, value: timeValue, onChange: (e) => {
|
|
7
|
+
onChange(e.target.value);
|
|
8
|
+
} }));
|
|
9
|
+
};
|
|
10
|
+
return TimeCellEditor;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=time-editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/time-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuB,eAAe,EAAE,MAAM,wDAAwD,CAAA;AAG7G,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,cAAmE,EACnE,EAAE;IACF,MAAM,cAAc,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QACxG,MAAM,SAAS,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAEzE,OAAO,CACL,KAAC,eAAe,IACd,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,cAAc,EAClB,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YAC1B,CAAC,GACD,CACH,CAAA;IACH,CAAC,CAAA;IAED,OAAO,cAAc,CAAA;AACvB,CAAC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type UrlFieldProps } from '../../../scalars/components/url-field/url-field.js';
|
|
2
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
3
|
+
export declare const buildUrlCellEditor: <T extends DataType>(urlFieldProps: Omit<UrlFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=url-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/url-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,oDAAoD,CAAA;AACjG,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,QAAQ,EACnD,eAAe,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEnC,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAkBtG,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { UrlField } from '../../../scalars/components/url-field/url-field.js';
|
|
3
|
+
export const buildUrlCellEditor = (urlFieldProps) => {
|
|
4
|
+
const UrlCellEditor = (value, onChange, context) => {
|
|
5
|
+
const urlValue = typeof value === 'string' ? value : (value?.toString() ?? '');
|
|
6
|
+
return (_jsx(UrlField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...urlFieldProps, value: urlValue, onChange: (e) => {
|
|
7
|
+
onChange(e.target.value);
|
|
8
|
+
} }));
|
|
9
|
+
};
|
|
10
|
+
return UrlCellEditor;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=url-editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/url-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAsB,MAAM,oDAAoD,CAAA;AAGjG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,aAAiE,EACjE,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QACvG,MAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAA;QAE9E,OAAO,CACL,KAAC,QAAQ,IACP,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,aAAa,EACjB,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YAC1B,CAAC,GACD,CACH,CAAA;IACH,CAAC,CAAA;IAED,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderAidCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderAidCell };
|
|
4
|
+
//# sourceMappingURL=aid-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aid-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/aid-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY5F,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderAidCell = (value, context) => {
|
|
4
|
+
return (_jsx("div", { className: cn({
|
|
5
|
+
'text-right': context.column.align === 'right',
|
|
6
|
+
'text-center': context.column.align === 'center',
|
|
7
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
8
|
+
}), children: value?.toString() ?? '' }));
|
|
9
|
+
};
|
|
10
|
+
export { renderAidCell };
|
|
11
|
+
//# sourceMappingURL=aid-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aid-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/aid-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,aAAa,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAC/F,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderAmountCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderAmountCell };
|
|
4
|
+
//# sourceMappingURL=amount-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amount-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/amount-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,gBAAgB,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY/F,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderAmountCell = (value, context) => {
|
|
4
|
+
return (_jsx("div", { className: cn({
|
|
5
|
+
'text-right': context.column.align === 'right',
|
|
6
|
+
'text-center': context.column.align === 'center',
|
|
7
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
8
|
+
}), children: value?.toString() ?? '' }));
|
|
9
|
+
};
|
|
10
|
+
export { renderAmountCell };
|
|
11
|
+
//# sourceMappingURL=amount-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amount-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/amount-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,gBAAgB,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAClG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderCountryCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderCountryCell };
|
|
4
|
+
//# sourceMappingURL=country-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/country-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,iBAAiB,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAYhG,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderCountryCell = (value, context) => {
|
|
4
|
+
return (_jsx("div", { className: cn({
|
|
5
|
+
'text-right': context.column.align === 'right',
|
|
6
|
+
'text-center': context.column.align === 'center',
|
|
7
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
8
|
+
}), children: value?.toString() ?? '' }));
|
|
9
|
+
};
|
|
10
|
+
export { renderCountryCell };
|
|
11
|
+
//# sourceMappingURL=country-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/country-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,iBAAiB,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IACnG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderCurrencyCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderCurrencyCell };
|
|
4
|
+
//# sourceMappingURL=currency-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/currency-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,kBAAkB,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAYjG,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderCurrencyCell = (value, context) => {
|
|
4
|
+
return (_jsx("div", { className: cn({
|
|
5
|
+
'text-right': context.column.align === 'right',
|
|
6
|
+
'text-center': context.column.align === 'center',
|
|
7
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
8
|
+
}), children: value?.toString() ?? '' }));
|
|
9
|
+
};
|
|
10
|
+
export { renderCurrencyCell };
|
|
11
|
+
//# sourceMappingURL=currency-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/currency-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,kBAAkB,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IACpG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderDateCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderDateCell };
|
|
4
|
+
//# sourceMappingURL=date-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/date-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,cAAc,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAyB7F,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderDateCell = (value, context) => {
|
|
4
|
+
const formatDate = (dateValue) => {
|
|
5
|
+
if (!dateValue)
|
|
6
|
+
return '';
|
|
7
|
+
try {
|
|
8
|
+
const date = new Date(dateValue);
|
|
9
|
+
if (isNaN(date.getTime()))
|
|
10
|
+
return String(dateValue);
|
|
11
|
+
return date.toLocaleDateString();
|
|
12
|
+
}
|
|
13
|
+
catch {
|
|
14
|
+
return String(dateValue);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
return (_jsx("div", { className: cn({
|
|
18
|
+
'text-right': context.column.align === 'right',
|
|
19
|
+
'text-center': context.column.align === 'center',
|
|
20
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
21
|
+
}), children: formatDate(value) }));
|
|
22
|
+
};
|
|
23
|
+
export { renderDateCell };
|
|
24
|
+
//# sourceMappingURL=date-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/date-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,cAAc,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAChG,MAAM,UAAU,GAAG,CAAC,SAAkB,EAAU,EAAE;QAChD,IAAI,CAAC,SAAS;YAAE,OAAO,EAAE,CAAA;QAEzB,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,SAA0B,CAAC,CAAA;YACjD,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAAE,OAAO,MAAM,CAAC,SAAS,CAAC,CAAA;YAEnD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAA;QAClC,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,MAAM,CAAC,SAAS,CAAC,CAAA;QAC1B,CAAC;IACH,CAAC,CAAA;IAED,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,UAAU,CAAC,KAAK,CAAC,GACd,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderDateTimeCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderDateTimeCell };
|
|
4
|
+
//# sourceMappingURL=datetime-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datetime-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/datetime-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,kBAAkB,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAyBjG,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderDateTimeCell = (value, context) => {
|
|
4
|
+
const formatDateTime = (dateValue) => {
|
|
5
|
+
if (!dateValue)
|
|
6
|
+
return '';
|
|
7
|
+
try {
|
|
8
|
+
const date = new Date(dateValue);
|
|
9
|
+
if (isNaN(date.getTime()))
|
|
10
|
+
return String(dateValue);
|
|
11
|
+
return date.toLocaleString();
|
|
12
|
+
}
|
|
13
|
+
catch {
|
|
14
|
+
return String(dateValue);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
return (_jsx("div", { className: cn({
|
|
18
|
+
'text-right': context.column.align === 'right',
|
|
19
|
+
'text-center': context.column.align === 'center',
|
|
20
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
21
|
+
}), children: formatDateTime(value) }));
|
|
22
|
+
};
|
|
23
|
+
export { renderDateTimeCell };
|
|
24
|
+
//# sourceMappingURL=datetime-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datetime-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/datetime-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,kBAAkB,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IACpG,MAAM,cAAc,GAAG,CAAC,SAAkB,EAAU,EAAE;QACpD,IAAI,CAAC,SAAS;YAAE,OAAO,EAAE,CAAA;QAEzB,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,SAA0B,CAAC,CAAA;YACjD,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAAE,OAAO,MAAM,CAAC,SAAS,CAAC,CAAA;YAEnD,OAAO,IAAI,CAAC,cAAc,EAAE,CAAA;QAC9B,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,MAAM,CAAC,SAAS,CAAC,CAAA;QAC1B,CAAC;IACH,CAAC,CAAA;IAED,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,cAAc,CAAC,KAAK,CAAC,GAClB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderEmailCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderEmailCell };
|
|
4
|
+
//# sourceMappingURL=email-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/email-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,eAAe,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY9F,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderEmailCell = (value, context) => {
|
|
4
|
+
return (_jsx("div", { className: cn({
|
|
5
|
+
'text-right': context.column.align === 'right',
|
|
6
|
+
'text-center': context.column.align === 'center',
|
|
7
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
8
|
+
}), children: value?.toString() ?? '' }));
|
|
9
|
+
};
|
|
10
|
+
export { renderEmailCell };
|
|
11
|
+
//# sourceMappingURL=email-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/email-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,eAAe,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IACjG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderEnumCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderEnumCell };
|
|
4
|
+
//# sourceMappingURL=enum-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/enum-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,cAAc,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY7F,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderEnumCell = (value, context) => {
|
|
4
|
+
return (_jsx("div", { className: cn({
|
|
5
|
+
'text-right': context.column.align === 'right',
|
|
6
|
+
'text-center': context.column.align === 'center',
|
|
7
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
8
|
+
}), children: value?.toString() ?? '' }));
|
|
9
|
+
};
|
|
10
|
+
export { renderEnumCell };
|
|
11
|
+
//# sourceMappingURL=enum-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/enum-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,cAAc,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAChG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-render-fn.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/get-render-fn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"get-render-fn.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/get-render-fn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAiBpE,QAAA,MAAM,WAAW,GAAI,CAAC,EAAE,MAAM,UAAU,GAAG,SAAS,KAAG,YAAY,CAAC,CAAC,CAqCpE,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { renderBooleanCell } from './boolean-render.js';
|
|
2
|
+
import { renderCountryCell } from './country-render.js';
|
|
3
|
+
import { renderDateCell } from './date-render.js';
|
|
4
|
+
import { renderDateTimeCell } from './datetime-render.js';
|
|
2
5
|
import { renderNumberCell } from './number-render.js';
|
|
3
6
|
import { renderTextCell } from './text-render.js';
|
|
7
|
+
import { renderTimeCell } from './time-render.js';
|
|
8
|
+
import { renderUrlCell } from './url-render.js';
|
|
9
|
+
import { renderPhidCell } from './phid-render.js';
|
|
10
|
+
import { renderOidCell } from './oid-render.js';
|
|
11
|
+
import { renderAidCell } from './aid-render.js';
|
|
12
|
+
import { renderEmailCell } from './email-render.js';
|
|
13
|
+
import { renderEnumCell } from './enum-render.js';
|
|
14
|
+
import { renderCurrencyCell } from './currency-render.js';
|
|
15
|
+
import { renderAmountCell } from './amount-render.js';
|
|
4
16
|
const getRenderFn = (type) => {
|
|
5
17
|
switch (type) {
|
|
6
18
|
case 'string':
|
|
@@ -9,6 +21,30 @@ const getRenderFn = (type) => {
|
|
|
9
21
|
return renderNumberCell;
|
|
10
22
|
case 'boolean':
|
|
11
23
|
return renderBooleanCell;
|
|
24
|
+
case 'country':
|
|
25
|
+
return renderCountryCell;
|
|
26
|
+
case 'date':
|
|
27
|
+
return renderDateCell;
|
|
28
|
+
case 'datetime':
|
|
29
|
+
return renderDateTimeCell;
|
|
30
|
+
case 'time':
|
|
31
|
+
return renderTimeCell;
|
|
32
|
+
case 'url':
|
|
33
|
+
return renderUrlCell;
|
|
34
|
+
case 'phid':
|
|
35
|
+
return renderPhidCell;
|
|
36
|
+
case 'oid':
|
|
37
|
+
return renderOidCell;
|
|
38
|
+
case 'aid':
|
|
39
|
+
return renderAidCell;
|
|
40
|
+
case 'email':
|
|
41
|
+
return renderEmailCell;
|
|
42
|
+
case 'enum':
|
|
43
|
+
return renderEnumCell;
|
|
44
|
+
case 'currency':
|
|
45
|
+
return renderCurrencyCell;
|
|
46
|
+
case 'amount':
|
|
47
|
+
return renderAmountCell;
|
|
12
48
|
case undefined:
|
|
13
49
|
return renderTextCell;
|
|
14
50
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-render-fn.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/get-render-fn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"get-render-fn.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/get-render-fn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,WAAW,GAAG,CAAI,IAA4B,EAAmB,EAAE;IACvE,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,QAAQ;YACX,OAAO,cAAc,CAAA;QACvB,KAAK,QAAQ;YACX,OAAO,gBAAgB,CAAA;QACzB,KAAK,SAAS;YACZ,OAAO,iBAAiB,CAAA;QAC1B,KAAK,SAAS;YACZ,OAAO,iBAAiB,CAAA;QAC1B,KAAK,MAAM;YACT,OAAO,cAAc,CAAA;QACvB,KAAK,UAAU;YACb,OAAO,kBAAkB,CAAA;QAC3B,KAAK,MAAM;YACT,OAAO,cAAc,CAAA;QACvB,KAAK,KAAK;YACR,OAAO,aAAa,CAAA;QACtB,KAAK,MAAM;YACT,OAAO,cAAc,CAAA;QACvB,KAAK,KAAK;YACR,OAAO,aAAa,CAAA;QACtB,KAAK,KAAK;YACR,OAAO,aAAa,CAAA;QACtB,KAAK,OAAO;YACV,OAAO,eAAe,CAAA;QACxB,KAAK,MAAM;YACT,OAAO,cAAc,CAAA;QACvB,KAAK,UAAU;YACb,OAAO,kBAAkB,CAAA;QAC3B,KAAK,QAAQ;YACX,OAAO,gBAAgB,CAAA;QACzB,KAAK,SAAS;YACZ,OAAO,cAAc,CAAA;QACvB;YACE,OAAO,cAAc,CAAA;IACzB,CAAC;AACH,CAAC,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderOidCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderOidCell };
|
|
4
|
+
//# sourceMappingURL=oid-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oid-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/oid-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY5F,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderOidCell = (value, context) => {
|
|
4
|
+
return (_jsx("div", { className: cn({
|
|
5
|
+
'text-right': context.column.align === 'right',
|
|
6
|
+
'text-center': context.column.align === 'center',
|
|
7
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
8
|
+
}), children: value?.toString() ?? '' }));
|
|
9
|
+
};
|
|
10
|
+
export { renderOidCell };
|
|
11
|
+
//# sourceMappingURL=oid-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oid-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/oid-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,aAAa,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAC/F,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderPhidCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderPhidCell };
|
|
4
|
+
//# sourceMappingURL=phid-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phid-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/phid-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,cAAc,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY7F,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderPhidCell = (value, context) => {
|
|
4
|
+
return (_jsx("div", { className: cn({
|
|
5
|
+
'text-right': context.column.align === 'right',
|
|
6
|
+
'text-center': context.column.align === 'center',
|
|
7
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
8
|
+
}), children: value?.toString() ?? '' }));
|
|
9
|
+
};
|
|
10
|
+
export { renderPhidCell };
|
|
11
|
+
//# sourceMappingURL=phid-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phid-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/phid-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,cAAc,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAChG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderTimeCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderTimeCell };
|
|
4
|
+
//# sourceMappingURL=time-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/time-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,cAAc,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY7F,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderTimeCell = (value, context) => {
|
|
4
|
+
return (_jsx("div", { className: cn({
|
|
5
|
+
'text-right': context.column.align === 'right',
|
|
6
|
+
'text-center': context.column.align === 'center',
|
|
7
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
8
|
+
}), children: value?.toString() ?? '' }));
|
|
9
|
+
};
|
|
10
|
+
export { renderTimeCell };
|
|
11
|
+
//# sourceMappingURL=time-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/time-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,cAAc,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAChG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CellContext, DataType } from '../../table/types.js';
|
|
2
|
+
declare const renderUrlCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { renderUrlCell };
|
|
4
|
+
//# sourceMappingURL=url-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/url-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAoB5F,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../../scalars/lib/utils.js';
|
|
3
|
+
const renderUrlCell = (value, context) => {
|
|
4
|
+
const url = value?.toString() ?? '';
|
|
5
|
+
return (_jsx("div", { className: cn({
|
|
6
|
+
'text-right': context.column.align === 'right',
|
|
7
|
+
'text-center': context.column.align === 'center',
|
|
8
|
+
'text-left': context.column.align === 'left' || !context.column.align,
|
|
9
|
+
}), children: url ? (_jsx("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "text-blue-600 hover:text-blue-800 underline", children: url })) : ('') }));
|
|
10
|
+
};
|
|
11
|
+
export { renderUrlCell };
|
|
12
|
+
//# sourceMappingURL=url-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/url-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,aAAa,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAC/F,MAAM,GAAG,GAAG,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;IAEnC,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,GAAG,CAAC,CAAC,CAAC,CACL,YAAG,IAAI,EAAE,GAAG,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,EAAC,SAAS,EAAC,6CAA6C,YAC5G,GAAG,GACF,CACL,CAAC,CAAC,CAAC,CACF,EAAE,CACH,GACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-column-config.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-fns/default-column-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEvE,QAAA,MAAM,sBAAsB,GAAI,YAAY,UAAU,KAAG,
|
|
1
|
+
{"version":3,"file":"default-column-config.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-fns/default-column-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEvE,QAAA,MAAM,sBAAsB,GAAI,YAAY,UAAU,KAAG,eAsBxD,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
const defaultColumnAlignment = (columnType) => {
|
|
2
2
|
switch (columnType) {
|
|
3
3
|
case 'number':
|
|
4
|
+
case 'amount':
|
|
4
5
|
return 'right';
|
|
5
6
|
case 'string':
|
|
6
7
|
case 'boolean':
|
|
8
|
+
case 'country':
|
|
9
|
+
case 'enum':
|
|
10
|
+
case 'currency':
|
|
11
|
+
case 'date':
|
|
12
|
+
case 'datetime':
|
|
13
|
+
case 'time':
|
|
14
|
+
case 'url':
|
|
15
|
+
case 'email':
|
|
16
|
+
case 'phid':
|
|
17
|
+
case 'oid':
|
|
18
|
+
case 'aid':
|
|
7
19
|
default:
|
|
8
20
|
return 'left';
|
|
9
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-column-config.js","sourceRoot":"","sources":["../../../../../src/table/components/default-fns/default-column-config.ts"],"names":[],"mappings":"AAEA,MAAM,sBAAsB,GAAG,CAAC,UAAsB,EAAmB,EAAE;IACzE,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,OAAO,CAAA;QAEhB,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS,CAAC;QACf;YACE,OAAO,MAAM,CAAA;IACjB,CAAC;AACH,CAAC,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
1
|
+
{"version":3,"file":"default-column-config.js","sourceRoot":"","sources":["../../../../../src/table/components/default-fns/default-column-config.ts"],"names":[],"mappings":"AAEA,MAAM,sBAAsB,GAAG,CAAC,UAAsB,EAAmB,EAAE;IACzE,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ;YACX,OAAO,OAAO,CAAA;QAEhB,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS,CAAC;QACf,KAAK,SAAS,CAAC;QACf,KAAK,MAAM,CAAC;QACZ,KAAK,UAAU,CAAC;QAChB,KAAK,MAAM,CAAC;QACZ,KAAK,UAAU,CAAC;QAChB,KAAK,MAAM,CAAC;QACZ,KAAK,KAAK,CAAC;QACX,KAAK,OAAO,CAAC;QACb,KAAK,MAAM,CAAC;QACZ,KAAK,KAAK,CAAC;QACX,KAAK,KAAK,CAAC;QACX;YACE,OAAO,MAAM,CAAA;IACjB,CAAC;AACH,CAAC,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-sort-fns.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-sort-columns/default-sort-fns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AA4B9D,eAAO,MAAM,cAAc,GAAI,CAAC,GAAG,OAAO,EAAE,YAAY,UAAU,KAAG,MAAM,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"default-sort-fns.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-sort-columns/default-sort-fns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AA4B9D,eAAO,MAAM,cAAc,GAAI,CAAC,GAAG,OAAO,EAAE,YAAY,UAAU,KAAG,MAAM,CAAC,CAAC,CAsB5E,CAAA"}
|
|
@@ -25,9 +25,21 @@ const defaultSortTextFn = (a, b) => {
|
|
|
25
25
|
export const defaultSortFns = (columnType) => {
|
|
26
26
|
switch (columnType) {
|
|
27
27
|
case 'number':
|
|
28
|
+
case 'amount':
|
|
28
29
|
return defaultSortNumberFn;
|
|
29
30
|
case 'boolean':
|
|
30
31
|
case 'string':
|
|
32
|
+
case 'country':
|
|
33
|
+
case 'enum':
|
|
34
|
+
case 'currency':
|
|
35
|
+
case 'date':
|
|
36
|
+
case 'datetime':
|
|
37
|
+
case 'time':
|
|
38
|
+
case 'url':
|
|
39
|
+
case 'email':
|
|
40
|
+
case 'phid':
|
|
41
|
+
case 'oid':
|
|
42
|
+
case 'aid':
|
|
31
43
|
default:
|
|
32
44
|
return defaultSortTextFn;
|
|
33
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-sort-fns.js","sourceRoot":"","sources":["../../../../../src/table/components/default-sort-columns/default-sort-fns.ts"],"names":[],"mappings":"AAEA,MAAM,mBAAmB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACrD,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC7B,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAC,CAAA;IACX,CAAC;IACD,OAAO,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;AAC9B,CAAC,CAAA;AAED,MAAM,iBAAiB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACnD,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC7B,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAC,CAAA;IACX,CAAC;IACD,OAAQ,CAAY,CAAC,aAAa,CAAC,CAAW,CAAC,CAAA;AACjD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAc,UAAsB,EAAa,EAAE;IAC/E,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,mBAAgC,CAAA;QAEzC,KAAK,SAAS,CAAC;QACf,KAAK,QAAQ,CAAC;QACd;YACE,OAAO,iBAA8B,CAAA;IACzC,CAAC;AACH,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"default-sort-fns.js","sourceRoot":"","sources":["../../../../../src/table/components/default-sort-columns/default-sort-fns.ts"],"names":[],"mappings":"AAEA,MAAM,mBAAmB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACrD,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC7B,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAC,CAAA;IACX,CAAC;IACD,OAAO,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;AAC9B,CAAC,CAAA;AAED,MAAM,iBAAiB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACnD,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC7B,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAC,CAAA;IACX,CAAC;IACD,OAAQ,CAAY,CAAC,aAAa,CAAC,CAAW,CAAC,CAAA;AACjD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAc,UAAsB,EAAa,EAAE;IAC/E,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ;YACX,OAAO,mBAAgC,CAAA;QAEzC,KAAK,SAAS,CAAC;QACf,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS,CAAC;QACf,KAAK,MAAM,CAAC;QACZ,KAAK,UAAU,CAAC;QAChB,KAAK,MAAM,CAAC;QACZ,KAAK,UAAU,CAAC;QAChB,KAAK,MAAM,CAAC;QACZ,KAAK,KAAK,CAAC;QACX,KAAK,OAAO,CAAC;QACb,KAAK,MAAM,CAAC;QACZ,KAAK,KAAK,CAAC;QACX,KAAK,KAAK,CAAC;QACX;YACE,OAAO,iBAA8B,CAAA;IACzC,CAAC;AACH,CAAC,CAAA"}
|
|
@@ -63,7 +63,7 @@ const RenderRow = ({ item, rowIndex, mode = 'default' }) => {
|
|
|
63
63
|
return false;
|
|
64
64
|
}
|
|
65
65
|
return (mode === 'default' &&
|
|
66
|
-
(!!
|
|
66
|
+
(!!api.canDelete() ||
|
|
67
67
|
config.actions?.primary ||
|
|
68
68
|
(Array.isArray(config.actions?.secondary) && config.actions.secondary.length > 0)));
|
|
69
69
|
}, [
|
|
@@ -71,7 +71,7 @@ const RenderRow = ({ item, rowIndex, mode = 'default' }) => {
|
|
|
71
71
|
rowIndex,
|
|
72
72
|
selectedRowErrors,
|
|
73
73
|
mode,
|
|
74
|
-
|
|
74
|
+
api,
|
|
75
75
|
config.actions?.primary,
|
|
76
76
|
config.actions?.secondary,
|
|
77
77
|
]);
|