@powerhousedao/document-engineering 1.14.0 → 1.16.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/amount-field/amount-currency-validations.d.ts +1 -1
- package/dist/src/scalars/components/amount-field/amount-currency-validations.d.ts.map +1 -1
- package/dist/src/scalars/components/amount-field/amount-currency-validations.js +6 -3
- package/dist/src/scalars/components/amount-field/amount-currency-validations.js.map +1 -1
- package/dist/src/scalars/components/amount-field/amount-field-validations.d.ts +1 -1
- package/dist/src/scalars/components/amount-field/amount-field-validations.d.ts.map +1 -1
- package/dist/src/scalars/components/amount-field/amount-field-validations.js +2 -2
- package/dist/src/scalars/components/amount-field/amount-field-validations.js.map +1 -1
- package/dist/src/scalars/components/date-picker-field/date-picker-validations.js +6 -6
- package/dist/src/scalars/components/date-picker-field/date-picker-validations.js.map +1 -1
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field-validations.d.ts.map +1 -1
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field-validations.js +14 -7
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field-validations.js.map +1 -1
- package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.js +1 -1
- package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.js.map +1 -1
- package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.js +2 -2
- package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.js.map +1 -1
- package/dist/src/scalars/components/examples/reset-button/reset-button.js +2 -2
- package/dist/src/scalars/components/examples/reset-button/reset-button.js.map +1 -1
- package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.d.ts.map +1 -1
- package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.js +2 -2
- package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.js.map +1 -1
- package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.js +3 -3
- package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.js.map +1 -1
- package/dist/src/scalars/components/fragments/command/command.d.ts +6 -6
- package/dist/src/scalars/components/fragments/command/command.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/command/command.js.map +1 -1
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.js +1 -2
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.js.map +1 -1
- package/dist/src/scalars/lib/decorators.js +2 -2
- package/dist/src/scalars/lib/decorators.js.map +1 -1
- package/dist/src/scalars/lib/value-cast.js +4 -4
- package/dist/src/scalars/lib/value-cast.js.map +1 -1
- package/dist/src/ui/components/button/button.d.ts +11 -0
- package/dist/src/ui/components/button/button.d.ts.map +1 -0
- package/dist/src/ui/components/button/button.js +32 -0
- package/dist/src/ui/components/button/button.js.map +1 -0
- package/dist/src/ui/components/button/index.d.ts +2 -0
- package/dist/src/ui/components/button/index.d.ts.map +1 -0
- package/dist/src/ui/components/button/index.js +2 -0
- package/dist/src/ui/components/button/index.js.map +1 -0
- package/dist/src/ui/components/confirm/alert-dialog.d.ts +21 -0
- package/dist/src/ui/components/confirm/alert-dialog.d.ts.map +1 -0
- package/dist/src/ui/components/confirm/alert-dialog.js +40 -0
- package/dist/src/ui/components/confirm/alert-dialog.js.map +1 -0
- package/dist/src/ui/components/confirm/confirm.d.ts +12 -0
- package/dist/src/ui/components/confirm/confirm.d.ts.map +1 -0
- package/dist/src/ui/components/confirm/confirm.js +14 -0
- package/dist/src/ui/components/confirm/confirm.js.map +1 -0
- package/dist/src/ui/components/confirm/index.d.ts +3 -0
- package/dist/src/ui/components/confirm/index.d.ts.map +1 -0
- package/dist/src/ui/components/confirm/index.js +2 -0
- package/dist/src/ui/components/confirm/index.js.map +1 -0
- 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 +13 -4
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js.map +1 -1
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.js +2 -2
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.js.map +1 -1
- package/dist/src/ui/components/data-entry/currency-code-picker/types.d.ts +2 -4
- package/dist/src/ui/components/data-entry/currency-code-picker/types.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/date-picker-diff/date-picker-diff.js +1 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/date-picker-diff/date-picker-diff.js.map +1 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/month-grid.js +2 -2
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/month-grid.js.map +1 -1
- package/dist/src/ui/components/data-entry/date-picker/use-date-picker.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/date-picker/use-date-picker.js +3 -3
- package/dist/src/ui/components/data-entry/date-picker/use-date-picker.js.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.d.ts +3 -1
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.js +2 -2
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.js.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.js +2 -2
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.js.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/subcomponent/date-time-picker-diff.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/subcomponent/date-time-picker-diff.js +4 -5
- package/dist/src/ui/components/data-entry/date-time-picker/subcomponent/date-time-picker-diff.js.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.d.ts +1 -2
- package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.js +62 -89
- package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.js.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/utils.d.ts +11 -1
- package/dist/src/ui/components/data-entry/date-time-picker/utils.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/utils.js +70 -3
- package/dist/src/ui/components/data-entry/date-time-picker/utils.js.map +1 -1
- package/dist/src/ui/components/data-entry/input/splitted-input-diff.d.ts +3 -1
- package/dist/src/ui/components/data-entry/input/splitted-input-diff.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/input/splitted-input-diff.js +4 -2
- package/dist/src/ui/components/data-entry/input/splitted-input-diff.js.map +1 -1
- package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.js +21 -2
- package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.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 +1 -1
- 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 +2 -2
- package/dist/src/ui/components/data-entry/number-input/types.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/select/command-list-item.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/select/command-list-item.js +2 -7
- package/dist/src/ui/components/data-entry/select/command-list-item.js.map +1 -1
- package/dist/src/ui/components/data-entry/select/render-icon.d.ts +3 -0
- package/dist/src/ui/components/data-entry/select/render-icon.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/select/render-icon.js +10 -0
- package/dist/src/ui/components/data-entry/select/render-icon.js.map +1 -0
- package/dist/src/ui/components/data-entry/select/select-diff.d.ts +3 -1
- package/dist/src/ui/components/data-entry/select/select-diff.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/select/select-diff.js +2 -2
- package/dist/src/ui/components/data-entry/select/select-diff.js.map +1 -1
- package/dist/src/ui/components/data-entry/select/select.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/select/select.js +4 -2
- package/dist/src/ui/components/data-entry/select/select.js.map +1 -1
- package/dist/src/ui/components/data-entry/select/selected-content.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/select/selected-content.js +1 -6
- package/dist/src/ui/components/data-entry/select/selected-content.js.map +1 -1
- package/dist/src/ui/components/data-entry/select/types.d.ts +3 -1
- package/dist/src/ui/components/data-entry/select/types.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/text-input/text-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/text-input/text-input.js +1 -1
- package/dist/src/ui/components/data-entry/text-input/text-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 +1 -1
- package/dist/src/ui/components/data-entry/textarea/textarea.js.map +1 -1
- package/dist/src/ui/components/data-entry/time-picker/use-time-picker.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/time-picker/use-time-picker.js +14 -8
- package/dist/src/ui/components/data-entry/time-picker/use-time-picker.js.map +1 -1
- package/dist/src/ui/components/data-entry/time-picker/utils.d.ts +1 -0
- package/dist/src/ui/components/data-entry/time-picker/utils.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/time-picker/utils.js +11 -0
- package/dist/src/ui/components/data-entry/time-picker/utils.js.map +1 -1
- package/dist/src/ui/components/data-entry/toggle/subcomponents/toogle-diff.d.ts +2 -2
- package/dist/src/ui/components/data-entry/toggle/subcomponents/toogle-diff.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/toggle/subcomponents/toogle-diff.js +2 -2
- package/dist/src/ui/components/data-entry/toggle/subcomponents/toogle-diff.js.map +1 -1
- package/dist/src/ui/components/data-entry/toggle/toggle.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/toggle/toggle.js +1 -1
- package/dist/src/ui/components/data-entry/toggle/toggle.js.map +1 -1
- package/dist/src/ui/components/data-entry/url-input/url-input-diff.d.ts +1 -1
- package/dist/src/ui/components/data-entry/url-input/url-input-diff.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/url-input/url-input-diff.js +2 -2
- package/dist/src/ui/components/data-entry/url-input/url-input-diff.js.map +1 -1
- package/dist/src/ui/components/data-entry/url-input/url-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/url-input/url-input.js +1 -1
- package/dist/src/ui/components/data-entry/url-input/url-input.js.map +1 -1
- package/dist/src/ui/components/index.d.ts +2 -0
- package/dist/src/ui/components/index.d.ts.map +1 -1
- package/dist/src/ui/components/index.js +3 -0
- package/dist/src/ui/components/index.js.map +1 -1
- package/dist/src/ui/components/object-set-table/examples/custom-rendering/custom-rendering.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/examples/custom-rendering/custom-rendering.js +0 -1
- package/dist/src/ui/components/object-set-table/examples/custom-rendering/custom-rendering.js.map +1 -1
- package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.d.ts +5 -0
- package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.d.ts.map +1 -0
- package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.js +108 -0
- package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.js.map +1 -0
- package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.js +17 -2
- package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.js.map +1 -1
- package/dist/src/ui/components/object-set-table/logic/selection-manager.d.ts +4 -0
- package/dist/src/ui/components/object-set-table/logic/selection-manager.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/logic/selection-manager.js +6 -0
- package/dist/src/ui/components/object-set-table/logic/selection-manager.js.map +1 -1
- package/dist/src/ui/components/object-set-table/logic/table-api.d.ts +25 -1
- package/dist/src/ui/components/object-set-table/logic/table-api.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/logic/table-api.js +82 -3
- package/dist/src/ui/components/object-set-table/logic/table-api.js.map +1 -1
- package/dist/src/ui/components/object-set-table/logic/types.d.ts +6 -1
- package/dist/src/ui/components/object-set-table/logic/types.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/object-set-table.d.ts +3 -0
- package/dist/src/ui/components/object-set-table/object-set-table.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/object-set-table.js +10 -1
- package/dist/src/ui/components/object-set-table/object-set-table.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/body.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/body.js +11 -5
- package/dist/src/ui/components/object-set-table/subcomponents/body.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.d.ts +5 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.js +8 -2
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.d.ts +9 -0
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.d.ts.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.js +7 -0
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.js.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/cells/{render-cell.d.ts → render-cell/render-cell.d.ts} +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.d.ts.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.js +34 -0
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.js.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.d.ts +16 -0
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.d.ts.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.js +44 -0
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.js.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.d.ts +3 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.d.ts.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.js +22 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.js.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.d.ts +3 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.d.ts.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.js +18 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.js.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.d.ts +3 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.d.ts.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.js +9 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.js.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.d.ts +3 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.d.ts.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.js +9 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.js.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.js +2 -2
- package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.js +13 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.js +8 -0
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.d.ts +2 -0
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.js +6 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.js.map +1 -1
- package/dist/src/ui/components/object-set-table/types.d.ts +29 -4
- package/dist/src/ui/components/object-set-table/types.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/utils.d.ts +9 -0
- package/dist/src/ui/components/object-set-table/utils.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/utils.js +23 -1
- package/dist/src/ui/components/object-set-table/utils.js.map +1 -1
- package/dist/style.css +347 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker-diff.d.ts +0 -9
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker-diff.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker-diff.js +0 -8
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker-diff.js.map +0 -1
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.d.ts +0 -9
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.js +0 -8
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell.js +0 -62
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/document-engineering",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"/dist"
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@testing-library/user-event": "^14.5.2",
|
|
104
104
|
"@types/diff": "^7.0.2",
|
|
105
105
|
"@types/jest": "^29.5.14",
|
|
106
|
-
"@types/node": "^22.
|
|
106
|
+
"@types/node": "^22.15.15",
|
|
107
107
|
"@types/react": "^18.3.12",
|
|
108
108
|
"@types/react-dom": "^18.3.1",
|
|
109
109
|
"@types/react-virtualized": "^9.22.0",
|
|
@@ -145,9 +145,8 @@
|
|
|
145
145
|
},
|
|
146
146
|
"dependencies": {
|
|
147
147
|
"@internationalized/date": "^3.5.6",
|
|
148
|
-
"@
|
|
148
|
+
"@radix-ui/react-alert-dialog": "^1.1.14",
|
|
149
149
|
"@radix-ui/react-checkbox": "^1.1.2",
|
|
150
|
-
"@radix-ui/react-dialog": "^1.1.2",
|
|
151
150
|
"@radix-ui/react-dropdown-menu": "^2.1.5",
|
|
152
151
|
"@radix-ui/react-popover": "^1.1.2",
|
|
153
152
|
"@radix-ui/react-radio-group": "^1.2.1",
|
|
@@ -168,6 +167,7 @@
|
|
|
168
167
|
"graphql": "^16.9.0",
|
|
169
168
|
"nanoid": "^5.0.9",
|
|
170
169
|
"react-circle-flags": "^0.0.22",
|
|
170
|
+
"react-confirm": "^0.4.0",
|
|
171
171
|
"react-day-picker": "9.4.3",
|
|
172
172
|
"react-hook-form": "^7.53.0",
|
|
173
173
|
"react-virtualized": "^9.22.6",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CountryCodePickerProps, CountryCodePickerWithDifference } from './types.js';
|
|
2
|
-
interface CountryCodePickerDiffProps extends CountryCodePickerWithDifference {
|
|
3
|
-
value: string;
|
|
4
|
-
label: CountryCodePickerProps['label'];
|
|
5
|
-
required: CountryCodePickerProps['required'];
|
|
6
|
-
}
|
|
7
|
-
declare const CountryCodePickerDiff: ({ value, label, required, viewMode, baseValue, }: CountryCodePickerDiffProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export { CountryCodePickerDiff };
|
|
9
|
-
//# sourceMappingURL=country-code-picker-diff.d.ts.map
|
package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker-diff.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"country-code-picker-diff.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/country-code-picker/country-code-picker-diff.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAA;AAEzF,UAAU,0BAA2B,SAAQ,+BAA+B;IAC1E,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAA;IACtC,QAAQ,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAA;CAC7C;AAED,QAAA,MAAM,qBAAqB,GAAI,kDAM5B,0BAA0B,4CAW5B,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FormGroup, FormLabel } from '../../../../scalars/components/fragments/index.js';
|
|
3
|
-
import { SplittedInputDiff } from '../input/splitted-input-diff.js';
|
|
4
|
-
const CountryCodePickerDiff = ({ value = '', label, required, viewMode, baseValue = '', }) => {
|
|
5
|
-
return (_jsxs(FormGroup, { children: [label && (_jsx(FormLabel, { disabled: true, required: required, children: label })), _jsx(SplittedInputDiff, { baseValue: baseValue, value: value, viewMode: viewMode, diffMode: "sentences" })] }));
|
|
6
|
-
};
|
|
7
|
-
export { CountryCodePickerDiff };
|
|
8
|
-
//# sourceMappingURL=country-code-picker-diff.js.map
|
package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker-diff.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"country-code-picker-diff.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/country-code-picker/country-code-picker-diff.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAA;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AASnE,MAAM,qBAAqB,GAAG,CAAC,EAC7B,KAAK,GAAG,EAAE,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,GAAG,EAAE,GACa,EAAE,EAAE;IAC/B,OAAO,CACL,MAAC,SAAS,eACP,KAAK,IAAI,CACR,KAAC,SAAS,IAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,YAC1C,KAAK,GACI,CACb,EACD,KAAC,iBAAiB,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAC,WAAW,GAAG,IACxF,CACb,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CurrencyCodePickerProps, CurrencyCodePickerWithDifference } from './types.js';
|
|
2
|
-
interface CurrencyCodePickerDiffProps extends CurrencyCodePickerWithDifference {
|
|
3
|
-
value: string;
|
|
4
|
-
label: CurrencyCodePickerProps['label'];
|
|
5
|
-
required: CurrencyCodePickerProps['required'];
|
|
6
|
-
}
|
|
7
|
-
declare const CurrencyCodePickerDiff: ({ value, label, required, viewMode, baseValue, }: CurrencyCodePickerDiffProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export { CurrencyCodePickerDiff };
|
|
9
|
-
//# sourceMappingURL=currency-code-picker-diff.d.ts.map
|
package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"currency-code-picker-diff.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,YAAY,CAAA;AAE3F,UAAU,2BAA4B,SAAQ,gCAAgC;IAC5E,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAA;IACvC,QAAQ,EAAE,uBAAuB,CAAC,UAAU,CAAC,CAAA;CAC9C;AAED,QAAA,MAAM,sBAAsB,GAAI,kDAM7B,2BAA2B,4CAW7B,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FormGroup, FormLabel } from '../../../../scalars/components/fragments/index.js';
|
|
3
|
-
import { SplittedInputDiff } from '../input/splitted-input-diff.js';
|
|
4
|
-
const CurrencyCodePickerDiff = ({ value = '', label, required, viewMode, baseValue = '', }) => {
|
|
5
|
-
return (_jsxs(FormGroup, { children: [label && (_jsx(FormLabel, { disabled: true, required: required, children: label })), _jsx(SplittedInputDiff, { baseValue: baseValue, value: value, viewMode: viewMode, diffMode: "sentences" })] }));
|
|
6
|
-
};
|
|
7
|
-
export { CurrencyCodePickerDiff };
|
|
8
|
-
//# sourceMappingURL=currency-code-picker-diff.js.map
|
package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"currency-code-picker-diff.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAA;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AASnE,MAAM,sBAAsB,GAAG,CAAC,EAC9B,KAAK,GAAG,EAAE,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,GAAG,EAAE,GACc,EAAE,EAAE;IAChC,OAAO,CACL,MAAC,SAAS,eACP,KAAK,IAAI,CACR,KAAC,SAAS,IAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,YAC1C,KAAK,GACI,CACb,EACD,KAAC,iBAAiB,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAC,WAAW,GAAG,IACxF,CACb,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-cell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/render-cell.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAKtE,UAAU,eAAe,CAAC,CAAC,SAAS,QAAQ;IAC1C,OAAO,EAAE,CAAC,CAAA;IACV,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,QAAA,MAAM,UAAU,GAAI,CAAC,SAAS,QAAQ,EAAE,8DAMrC,eAAe,CAAC,CAAC,CAAC,4CA4FpB,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback } from 'react';
|
|
3
|
-
import { Input } from '../../../data-entry/input/index.js';
|
|
4
|
-
import { isCellEqual } from '../../utils.js';
|
|
5
|
-
import { useInternalTableState } from '../table-provider/table-provider.js';
|
|
6
|
-
import { DefaultTableCell } from './default-cell.js';
|
|
7
|
-
const RenderCell = ({ rowItem, column, rowIndex, columnIndex, renderEmptyCell = false, }) => {
|
|
8
|
-
const { config, state: { dispatch, selectedCellIndex, isCellEditMode }, api, } = useInternalTableState();
|
|
9
|
-
/**
|
|
10
|
-
* Create a handler for the click event on the table cell
|
|
11
|
-
* This handler is used to enter cell edit mode or select a cell
|
|
12
|
-
*/
|
|
13
|
-
const createCellClickHandler = useCallback((index, column, columnDef) => (e) => {
|
|
14
|
-
// if the cell is being edited, ignore clicking on it
|
|
15
|
-
if (isCellEditMode && selectedCellIndex?.row === index && selectedCellIndex.column === column) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
// if shift or ctrl is pressed, the user is probably trying to select rows
|
|
19
|
-
if (!e.ctrlKey && !e.metaKey && !e.shiftKey) {
|
|
20
|
-
if (e.detail === 2 && columnDef.editable) {
|
|
21
|
-
// TODO: move this to the api
|
|
22
|
-
dispatch?.({
|
|
23
|
-
type: 'ENTER_CELL_EDIT_MODE',
|
|
24
|
-
payload: { row: index, column },
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
api.selection.selectCell(index, column);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}, [dispatch, isCellEditMode]);
|
|
32
|
-
const currentCellIndex = {
|
|
33
|
-
row: rowIndex,
|
|
34
|
-
column: columnIndex,
|
|
35
|
-
};
|
|
36
|
-
const isThisCellSelected = isCellEqual(selectedCellIndex, currentCellIndex);
|
|
37
|
-
/**
|
|
38
|
-
* If the cell is empty, we don't want to render anything
|
|
39
|
-
* so we're going to return a default table cell with no content
|
|
40
|
-
*/
|
|
41
|
-
if (renderEmptyCell) {
|
|
42
|
-
return (_jsx(DefaultTableCell, { onClick: createCellClickHandler(rowIndex, columnIndex, column), isSelected: isThisCellSelected, isEditable: false }, column.field));
|
|
43
|
-
}
|
|
44
|
-
const cellContext = {
|
|
45
|
-
row: rowItem,
|
|
46
|
-
column,
|
|
47
|
-
rowIndex,
|
|
48
|
-
columnIndex,
|
|
49
|
-
tableConfig: config,
|
|
50
|
-
};
|
|
51
|
-
// get and format the cell value
|
|
52
|
-
const cellValue = column.valueFormatter?.(column.valueGetter?.(rowItem, cellContext), cellContext);
|
|
53
|
-
const isThisCellEditMode = isCellEditMode && isThisCellSelected;
|
|
54
|
-
return (_jsx(DefaultTableCell, { onClick: createCellClickHandler(rowIndex, columnIndex, column), isSelected: isThisCellSelected, isEditable: column.editable ?? false, children: isThisCellEditMode ? (_jsx(Input, { className: "max-w-full", autoFocus: true, defaultValue: column.valueGetter?.(rowItem, cellContext), onKeyDown: (e) => {
|
|
55
|
-
if (e.key === 'Enter') {
|
|
56
|
-
const newValue = e.target.value;
|
|
57
|
-
column.onSave?.(newValue, cellContext);
|
|
58
|
-
}
|
|
59
|
-
} })) : (column.renderCell?.(cellValue, cellContext)) }, column.field));
|
|
60
|
-
};
|
|
61
|
-
export { RenderCell };
|
|
62
|
-
//# sourceMappingURL=render-cell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-cell.js","sourceRoot":"","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