wcz-test 6.24.0 → 6.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApprovalStatus-BtAVFn5p.js +8 -0
- package/dist/ApprovalStatus-BtAVFn5p.js.map +1 -0
- package/dist/{node_modules/react/cjs/react-jsx-runtime.development.js → DialogsContext-BKtkEAfL.js} +48 -4
- package/dist/DialogsContext-BKtkEAfL.js.map +1 -0
- package/dist/{hooks/DialogsHooks.js → DialogsHooks-BQVpqCq9.js} +4 -7
- package/dist/DialogsHooks-BQVpqCq9.js.map +1 -0
- package/dist/FileHooks-Cg9ver7z.js +3478 -0
- package/dist/FileHooks-Cg9ver7z.js.map +1 -0
- package/dist/{models/file/FileMeta.js → FileMeta-G1oT3mYK.js} +2 -2
- package/dist/FileMeta-G1oT3mYK.js.map +1 -0
- package/dist/{components/router/RouterListItemButton.js → RouterListItemButton-IUVgwnz3.js} +4 -4
- package/dist/RouterListItemButton-IUVgwnz3.js.map +1 -0
- package/dist/client.js +4 -4
- package/dist/compiler-runtime-BGHur82y.js +46 -0
- package/dist/compiler-runtime-BGHur82y.js.map +1 -0
- package/dist/components.js +1486 -15
- package/dist/components.js.map +1 -1
- package/dist/{env.js → env-gsqZ6zZD.js} +3 -3
- package/dist/env-gsqZ6zZD.js.map +1 -0
- package/dist/exports/client.d.ts +17 -4
- package/dist/exports/components.d.ts +44 -14
- package/dist/exports/hooks.d.ts +23 -4
- package/dist/exports/index.d.ts +17 -4
- package/dist/exports/models.d.ts +107 -25
- package/dist/exports/queries.d.ts +95 -4
- package/dist/exports/server.d.ts +14 -4
- package/dist/exports/utils.d.ts +11 -3
- package/dist/exports/vite.d.ts +5 -1
- package/dist/hooks.js +1000 -3
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +1752 -4
- package/dist/index.js.map +1 -1
- package/dist/models.js +159 -10
- package/dist/models.js.map +1 -1
- package/dist/queries.js +935 -14
- package/dist/queries.js.map +1 -1
- package/dist/{lib/queryClient.js → queryClient-CNvC95mU.js} +2 -2
- package/dist/queryClient-CNvC95mU.js.map +1 -0
- package/dist/server.js +84 -1
- package/dist/server.js.map +1 -1
- package/dist/{lib/auth/session.js → session-vW7WZadj.js} +24 -9
- package/dist/session-vW7WZadj.js.map +1 -0
- package/dist/{lib/utils.js → utils-MD9YwOtu.js} +9 -9
- package/dist/utils-MD9YwOtu.js.map +1 -0
- package/dist/utils.js +2 -2
- package/dist/vite.js +61 -1
- package/dist/vite.js.map +1 -1
- package/package.json +1 -1
- package/dist/_virtual/___vite-browser-external.js +0 -7
- package/dist/_virtual/___vite-browser-external.js.map +0 -1
- package/dist/_virtual/__vite-browser-external.js +0 -5
- package/dist/_virtual/__vite-browser-external.js.map +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -37
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/compiler-runtime.js +0 -6
- package/dist/_virtual/compiler-runtime.js.map +0 -1
- package/dist/_virtual/compiler-runtime2.js +0 -5
- package/dist/_virtual/compiler-runtime2.js.map +0 -1
- package/dist/_virtual/index.js +0 -8
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/index2.js +0 -5
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/_virtual/index3.js +0 -5
- package/dist/_virtual/index3.js.map +0 -1
- package/dist/_virtual/index4.js +0 -5
- package/dist/_virtual/index4.js.map +0 -1
- package/dist/_virtual/index5.js +0 -5
- package/dist/_virtual/index5.js.map +0 -1
- package/dist/_virtual/index6.js +0 -5
- package/dist/_virtual/index6.js.map +0 -1
- package/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/_virtual/jsx-runtime.js.map +0 -1
- package/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/_virtual/jsx-runtime2.js.map +0 -1
- package/dist/_virtual/re.js +0 -5
- package/dist/_virtual/re.js.map +0 -1
- package/dist/_virtual/react-compiler-runtime.development.js +0 -5
- package/dist/_virtual/react-compiler-runtime.development.js.map +0 -1
- package/dist/_virtual/react-compiler-runtime.production.js +0 -5
- package/dist/_virtual/react-compiler-runtime.production.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.js.map +0 -1
- package/dist/components/core/AppTitle.d.ts +0 -2
- package/dist/components/core/AppTitle.js +0 -23
- package/dist/components/core/AppTitle.js.map +0 -1
- package/dist/components/core/Fullscreen.d.ts +0 -3
- package/dist/components/core/Fullscreen.js +0 -104
- package/dist/components/core/Fullscreen.js.map +0 -1
- package/dist/components/core/Layout.d.ts +0 -8
- package/dist/components/core/Layout.js +0 -214
- package/dist/components/core/Layout.js.map +0 -1
- package/dist/components/core/ToolbarAccount.d.ts +0 -2
- package/dist/components/core/ToolbarAccount.js +0 -582
- package/dist/components/core/ToolbarAccount.js.map +0 -1
- package/dist/components/core/TypographyWithIcon.d.ts +0 -7
- package/dist/components/core/TypographyWithIcon.js +0 -117
- package/dist/components/core/TypographyWithIcon.js.map +0 -1
- package/dist/components/core/navigation/NavigationList.d.ts +0 -22
- package/dist/components/core/navigation/NavigationList.js +0 -166
- package/dist/components/core/navigation/NavigationList.js.map +0 -1
- package/dist/components/core/navigation/NavigationListItem.d.ts +0 -16
- package/dist/components/core/navigation/NavigationListItem.js +0 -467
- package/dist/components/core/navigation/NavigationListItem.js.map +0 -1
- package/dist/components/core/navigation/NavigationRail.d.ts +0 -12
- package/dist/components/core/navigation/NavigationRail.js +0 -141
- package/dist/components/core/navigation/NavigationRail.js.map +0 -1
- package/dist/components/data-grid/ChipInputCell.d.ts +0 -9
- package/dist/components/data-grid/ChipInputCell.js +0 -95
- package/dist/components/data-grid/ChipInputCell.js.map +0 -1
- package/dist/components/data-grid/EditableColumnHeader.d.ts +0 -2
- package/dist/components/data-grid/EditableColumnHeader.js +0 -30
- package/dist/components/data-grid/EditableColumnHeader.js.map +0 -1
- package/dist/components/file/Dropzone.d.ts +0 -8
- package/dist/components/file/Dropzone.js +0 -151
- package/dist/components/file/Dropzone.js.map +0 -1
- package/dist/components/file/FileViewer.d.ts +0 -20
- package/dist/components/file/FileViewer.js +0 -127
- package/dist/components/file/FileViewer.js.map +0 -1
- package/dist/components/file/fileViewer/FileViewerGrid.d.ts +0 -17
- package/dist/components/file/fileViewer/FileViewerGrid.js +0 -282
- package/dist/components/file/fileViewer/FileViewerGrid.js.map +0 -1
- package/dist/components/file/fileViewer/FileViewerList.d.ts +0 -12
- package/dist/components/file/fileViewer/FileViewerList.js +0 -191
- package/dist/components/file/fileViewer/FileViewerList.js.map +0 -1
- package/dist/components/file/fileViewer/ImageViewer.d.ts +0 -6
- package/dist/components/file/fileViewer/ImageViewer.js +0 -75
- package/dist/components/file/fileViewer/ImageViewer.js.map +0 -1
- package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +0 -15
- package/dist/components/file/fileViewer/common/ActionsMenu.js +0 -159
- package/dist/components/file/fileViewer/common/ActionsMenu.js.map +0 -1
- package/dist/components/form/FormAutocomplete.d.ts +0 -7
- package/dist/components/form/FormAutocomplete.js +0 -80
- package/dist/components/form/FormAutocomplete.js.map +0 -1
- package/dist/components/form/FormCheckbox.d.ts +0 -7
- package/dist/components/form/FormCheckbox.js +0 -81
- package/dist/components/form/FormCheckbox.js.map +0 -1
- package/dist/components/form/FormDatePicker.d.ts +0 -8
- package/dist/components/form/FormDatePicker.js +0 -77
- package/dist/components/form/FormDatePicker.js.map +0 -1
- package/dist/components/form/FormDateRangePicker.d.ts +0 -8
- package/dist/components/form/FormDateRangePicker.js +0 -77
- package/dist/components/form/FormDateRangePicker.js.map +0 -1
- package/dist/components/form/FormDateTimePicker.d.ts +0 -8
- package/dist/components/form/FormDateTimePicker.js +0 -77
- package/dist/components/form/FormDateTimePicker.js.map +0 -1
- package/dist/components/form/FormDateTimeRangePicker.d.ts +0 -8
- package/dist/components/form/FormDateTimeRangePicker.js +0 -77
- package/dist/components/form/FormDateTimeRangePicker.js.map +0 -1
- package/dist/components/form/FormNumberField.d.ts +0 -9
- package/dist/components/form/FormNumberField.js +0 -73
- package/dist/components/form/FormNumberField.js.map +0 -1
- package/dist/components/form/FormRadioGroup.d.ts +0 -13
- package/dist/components/form/FormRadioGroup.js +0 -113
- package/dist/components/form/FormRadioGroup.js.map +0 -1
- package/dist/components/form/FormSlider.d.ts +0 -7
- package/dist/components/form/FormSlider.js +0 -94
- package/dist/components/form/FormSlider.js.map +0 -1
- package/dist/components/form/FormSubmitButton.d.ts +0 -4
- package/dist/components/form/FormSubmitButton.js +0 -50
- package/dist/components/form/FormSubmitButton.js.map +0 -1
- package/dist/components/form/FormSwitch.d.ts +0 -7
- package/dist/components/form/FormSwitch.js +0 -81
- package/dist/components/form/FormSwitch.js.map +0 -1
- package/dist/components/form/FormTextField.d.ts +0 -7
- package/dist/components/form/FormTextField.js +0 -52
- package/dist/components/form/FormTextField.js.map +0 -1
- package/dist/components/form/FormTimePicker.d.ts +0 -8
- package/dist/components/form/FormTimePicker.js +0 -77
- package/dist/components/form/FormTimePicker.js.map +0 -1
- package/dist/components/form/FormTimeRangePicker.d.ts +0 -8
- package/dist/components/form/FormTimeRangePicker.js +0 -77
- package/dist/components/form/FormTimeRangePicker.js.map +0 -1
- package/dist/components/router/RouterButton.d.ts +0 -6
- package/dist/components/router/RouterButton.js +0 -35
- package/dist/components/router/RouterButton.js.map +0 -1
- package/dist/components/router/RouterError.d.ts +0 -7
- package/dist/components/router/RouterError.js +0 -62
- package/dist/components/router/RouterError.js.map +0 -1
- package/dist/components/router/RouterGridActionsCellItem.d.ts +0 -6
- package/dist/components/router/RouterGridActionsCellItem.js +0 -35
- package/dist/components/router/RouterGridActionsCellItem.js.map +0 -1
- package/dist/components/router/RouterIconButton.d.ts +0 -6
- package/dist/components/router/RouterIconButton.js +0 -35
- package/dist/components/router/RouterIconButton.js.map +0 -1
- package/dist/components/router/RouterLink.d.ts +0 -6
- package/dist/components/router/RouterLink.js +0 -35
- package/dist/components/router/RouterLink.js.map +0 -1
- package/dist/components/router/RouterListItemButton.d.ts +0 -6
- package/dist/components/router/RouterListItemButton.js.map +0 -1
- package/dist/components/router/RouterNotFound.d.ts +0 -1
- package/dist/components/router/RouterNotFound.js +0 -53
- package/dist/components/router/RouterNotFound.js.map +0 -1
- package/dist/components/router/RouterTab.d.ts +0 -6
- package/dist/components/router/RouterTab.js +0 -35
- package/dist/components/router/RouterTab.js.map +0 -1
- package/dist/contexts/DialogsContext.d.ts +0 -6
- package/dist/contexts/DialogsContext.js +0 -6
- package/dist/contexts/DialogsContext.js.map +0 -1
- package/dist/contexts/FileContext.d.ts +0 -13
- package/dist/contexts/FileContext.js +0 -14
- package/dist/contexts/FileContext.js.map +0 -1
- package/dist/env.d.ts +0 -13
- package/dist/env.js.map +0 -1
- package/dist/hooks/DialogsHooks.d.ts +0 -42
- package/dist/hooks/DialogsHooks.js.map +0 -1
- package/dist/hooks/FormHooks.d.ts +0 -52
- package/dist/hooks/FormHooks.js +0 -55
- package/dist/hooks/FormHooks.js.map +0 -1
- package/dist/lib/auth/api.d.ts +0 -3
- package/dist/lib/auth/api.js +0 -97
- package/dist/lib/auth/api.js.map +0 -1
- package/dist/lib/auth/entra.d.ts +0 -2
- package/dist/lib/auth/entra.js +0 -13
- package/dist/lib/auth/entra.js.map +0 -1
- package/dist/lib/auth/graph.d.ts +0 -17
- package/dist/lib/auth/graph.js +0 -72
- package/dist/lib/auth/graph.js.map +0 -1
- package/dist/lib/auth/session.d.ts +0 -24
- package/dist/lib/auth/session.js.map +0 -1
- package/dist/lib/queryClient.d.ts +0 -2
- package/dist/lib/queryClient.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -52
- package/dist/lib/utils.js.map +0 -1
- package/dist/lib/vite-plugin.d.ts +0 -2
- package/dist/lib/vite-plugin.js +0 -65
- package/dist/lib/vite-plugin.js.map +0 -1
- package/dist/middleware/auth.d.ts +0 -22
- package/dist/models/Navigation.d.ts +0 -18
- package/dist/models/User.d.ts +0 -16
- package/dist/models/User.js +0 -18
- package/dist/models/User.js.map +0 -1
- package/dist/models/approval/Approval.d.ts +0 -177
- package/dist/models/approval/Approval.js +0 -81
- package/dist/models/approval/Approval.js.map +0 -1
- package/dist/models/approval/ApprovalEmployee.d.ts +0 -7
- package/dist/models/approval/ApprovalEmployee.js +0 -10
- package/dist/models/approval/ApprovalEmployee.js.map +0 -1
- package/dist/models/approval/ApprovalFlow.d.ts +0 -49
- package/dist/models/approval/ApprovalFlow.js +0 -15
- package/dist/models/approval/ApprovalFlow.js.map +0 -1
- package/dist/models/approval/ApprovalFlowStep.d.ts +0 -29
- package/dist/models/approval/ApprovalFlowStep.js +0 -17
- package/dist/models/approval/ApprovalFlowStep.js.map +0 -1
- package/dist/models/approval/ApprovalRequestType.d.ts +0 -5
- package/dist/models/approval/ApprovalRequestType.js +0 -6
- package/dist/models/approval/ApprovalRequestType.js.map +0 -1
- package/dist/models/approval/ApprovalStatus.d.ts +0 -9
- package/dist/models/approval/ApprovalStatus.js +0 -6
- package/dist/models/approval/ApprovalStatus.js.map +0 -1
- package/dist/models/approval/ApprovalStepResult.d.ts +0 -11
- package/dist/models/approval/ApprovalStepResult.js +0 -6
- package/dist/models/approval/ApprovalStepResult.js.map +0 -1
- package/dist/models/approval/StepApprovalOrder.d.ts +0 -6
- package/dist/models/approval/StepApprovalOrder.js +0 -6
- package/dist/models/approval/StepApprovalOrder.js.map +0 -1
- package/dist/models/email/Email.d.ts +0 -13
- package/dist/models/email/Email.js +0 -14
- package/dist/models/email/Email.js.map +0 -1
- package/dist/models/email/EmailAttachment.d.ts +0 -6
- package/dist/models/email/EmailAttachment.js +0 -9
- package/dist/models/email/EmailAttachment.js.map +0 -1
- package/dist/models/file/FileActions.d.ts +0 -6
- package/dist/models/file/FileMeta.d.ts +0 -15
- package/dist/models/file/FileMeta.js.map +0 -1
- package/dist/models/peoplesoft/Department.d.ts +0 -58
- package/dist/models/peoplesoft/Department.js +0 -19
- package/dist/models/peoplesoft/Department.js.map +0 -1
- package/dist/models/peoplesoft/Employee.d.ts +0 -46
- package/dist/models/peoplesoft/Employee.js +0 -43
- package/dist/models/peoplesoft/Employee.js.map +0 -1
- package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +0 -6
- package/dist/models/peoplesoft/EmployeeCategoryGroup.js +0 -6
- package/dist/models/peoplesoft/EmployeeCategoryGroup.js.map +0 -1
- package/dist/models/peoplesoft/EmployeeStatus.d.ts +0 -6
- package/dist/models/peoplesoft/EmployeeStatus.js +0 -6
- package/dist/models/peoplesoft/EmployeeStatus.js.map +0 -1
- package/dist/node_modules/@oslojs/binary/dist/bits.js +0 -7
- package/dist/node_modules/@oslojs/binary/dist/bits.js.map +0 -1
- package/dist/node_modules/@oslojs/binary/dist/uint.js +0 -80
- package/dist/node_modules/@oslojs/binary/dist/uint.js.map +0 -1
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha256.js +0 -182
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha256.js.map +0 -1
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha512.js +0 -83
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha512.js.map +0 -1
- package/dist/node_modules/@oslojs/encoding/dist/base32.js +0 -11
- package/dist/node_modules/@oslojs/encoding/dist/base32.js.map +0 -1
- package/dist/node_modules/@oslojs/encoding/dist/base64.js +0 -46
- package/dist/node_modules/@oslojs/encoding/dist/base64.js.map +0 -1
- package/dist/node_modules/@oslojs/jwt/dist/index.js +0 -28
- package/dist/node_modules/@oslojs/jwt/dist/index.js.map +0 -1
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base32.js +0 -11
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base32.js.map +0 -1
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base64.js +0 -126
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base64.js.map +0 -1
- package/dist/node_modules/arctic/dist/client.js +0 -12
- package/dist/node_modules/arctic/dist/client.js.map +0 -1
- package/dist/node_modules/arctic/dist/oauth2.js +0 -76
- package/dist/node_modules/arctic/dist/oauth2.js.map +0 -1
- package/dist/node_modules/arctic/dist/oidc.js +0 -14
- package/dist/node_modules/arctic/dist/oidc.js.map +0 -1
- package/dist/node_modules/arctic/dist/providers/microsoft-entra-id.js +0 -73
- package/dist/node_modules/arctic/dist/providers/microsoft-entra-id.js.map +0 -1
- package/dist/node_modules/arctic/dist/request.js +0 -149
- package/dist/node_modules/arctic/dist/request.js.map +0 -1
- package/dist/node_modules/arctic/dist/utils.js +0 -25
- package/dist/node_modules/arctic/dist/utils.js.map +0 -1
- package/dist/node_modules/base64-js/index.js +0 -103
- package/dist/node_modules/base64-js/index.js.map +0 -1
- package/dist/node_modules/buffer/index.js +0 -1598
- package/dist/node_modules/buffer/index.js.map +0 -1
- package/dist/node_modules/buffer-equal-constant-time/index.js +0 -39
- package/dist/node_modules/buffer-equal-constant-time/index.js.map +0 -1
- package/dist/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +0 -140
- package/dist/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js.map +0 -1
- package/dist/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +0 -28
- package/dist/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js.map +0 -1
- package/dist/node_modules/ieee754/index.js +0 -88
- package/dist/node_modules/ieee754/index.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/decode.js +0 -38
- package/dist/node_modules/jsonwebtoken/decode.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/index.js +0 -25
- package/dist/node_modules/jsonwebtoken/index.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/JsonWebTokenError.js +0 -23
- package/dist/node_modules/jsonwebtoken/lib/JsonWebTokenError.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/NotBeforeError.js +0 -21
- package/dist/node_modules/jsonwebtoken/lib/NotBeforeError.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/TokenExpiredError.js +0 -21
- package/dist/node_modules/jsonwebtoken/lib/TokenExpiredError.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js +0 -14
- package/dist/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/psSupported.js +0 -14
- package/dist/node_modules/jsonwebtoken/lib/psSupported.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js +0 -14
- package/dist/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/timespan.js +0 -27
- package/dist/node_modules/jsonwebtoken/lib/timespan.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js +0 -60
- package/dist/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/comparator.js +0 -123
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/comparator.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/range.js +0 -388
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/range.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/semver.js +0 -288
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/semver.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/clean.js +0 -18
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/clean.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/cmp.js +0 -60
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/cmp.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/coerce.js +0 -53
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/coerce.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-build.js +0 -19
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-build.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-loose.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-loose.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/diff.js +0 -49
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/diff.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/eq.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/eq.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gt.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gt.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gte.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gte.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/inc.js +0 -29
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/inc.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lt.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lt.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lte.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lte.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/major.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/major.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/minor.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/minor.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/neq.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/neq.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/parse.js +0 -27
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/parse.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/patch.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/patch.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/prerelease.js +0 -18
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/prerelease.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rcompare.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rcompare.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rsort.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rsort.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/satisfies.js +0 -22
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/satisfies.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/sort.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/sort.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/valid.js +0 -18
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/valid.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/index.js +0 -140
- package/dist/node_modules/jsonwebtoken/node_modules/semver/index.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/constants.js +0 -36
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/constants.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/debug.js +0 -14
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/debug.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/identifiers.js +0 -29
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/identifiers.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/lrucache.js +0 -42
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/lrucache.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/parse-options.js +0 -23
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/parse-options.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/re.js +0 -96
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/re.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/gtr.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/gtr.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/intersects.js +0 -19
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/intersects.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/ltr.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/ltr.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/max-satisfying.js +0 -35
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/max-satisfying.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-satisfying.js +0 -35
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-satisfying.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-version.js +0 -66
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-version.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/outside.js +0 -81
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/outside.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/simplify.js +0 -56
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/simplify.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/subset.js +0 -170
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/subset.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/to-comparators.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/to-comparators.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/valid.js +0 -21
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/valid.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/sign.js +0 -242
- package/dist/node_modules/jsonwebtoken/sign.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/verify.js +0 -229
- package/dist/node_modules/jsonwebtoken/verify.js.map +0 -1
- package/dist/node_modules/jwa/index.js +0 -233
- package/dist/node_modules/jwa/index.js.map +0 -1
- package/dist/node_modules/jws/index.js +0 -40
- package/dist/node_modules/jws/index.js.map +0 -1
- package/dist/node_modules/jws/lib/data-stream.js +0 -55
- package/dist/node_modules/jws/lib/data-stream.js.map +0 -1
- package/dist/node_modules/jws/lib/sign-stream.js +0 -85
- package/dist/node_modules/jws/lib/sign-stream.js.map +0 -1
- package/dist/node_modules/jws/lib/tostring.js +0 -20
- package/dist/node_modules/jws/lib/tostring.js.map +0 -1
- package/dist/node_modules/jws/lib/verify-stream.js +0 -125
- package/dist/node_modules/jws/lib/verify-stream.js.map +0 -1
- package/dist/node_modules/lodash.includes/index.js +0 -181
- package/dist/node_modules/lodash.includes/index.js.map +0 -1
- package/dist/node_modules/lodash.isboolean/index.js +0 -21
- package/dist/node_modules/lodash.isboolean/index.js.map +0 -1
- package/dist/node_modules/lodash.isinteger/index.js +0 -67
- package/dist/node_modules/lodash.isinteger/index.js.map +0 -1
- package/dist/node_modules/lodash.isnumber/index.js +0 -21
- package/dist/node_modules/lodash.isnumber/index.js.map +0 -1
- package/dist/node_modules/lodash.isplainobject/index.js +0 -48
- package/dist/node_modules/lodash.isplainobject/index.js.map +0 -1
- package/dist/node_modules/lodash.isstring/index.js +0 -22
- package/dist/node_modules/lodash.isstring/index.js.map +0 -1
- package/dist/node_modules/lodash.once/index.js +0 -84
- package/dist/node_modules/lodash.once/index.js.map +0 -1
- package/dist/node_modules/ms/index.js +0 -121
- package/dist/node_modules/ms/index.js.map +0 -1
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -22
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js.map +0 -1
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -16
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -33
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +0 -1
- package/dist/node_modules/react/compiler-runtime.js +0 -18
- package/dist/node_modules/react/compiler-runtime.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.js +0 -18
- package/dist/node_modules/react/jsx-runtime.js.map +0 -1
- package/dist/node_modules/safe-buffer/index.js +0 -66
- package/dist/node_modules/safe-buffer/index.js.map +0 -1
- package/dist/providers/DialogsProvider.d.ts +0 -5
- package/dist/providers/DialogsProvider.js +0 -79
- package/dist/providers/DialogsProvider.js.map +0 -1
- package/dist/providers/LayoutProvider.d.ts +0 -11
- package/dist/providers/LayoutProvider.js +0 -94
- package/dist/providers/LayoutProvider.js.map +0 -1
- package/dist/queries/ApprovalHooks.d.ts +0 -338
- package/dist/queries/ApprovalHooks.js +0 -326
- package/dist/queries/ApprovalHooks.js.map +0 -1
- package/dist/queries/FileHooks.d.ts +0 -151
- package/dist/queries/FileHooks.js +0 -493
- package/dist/queries/FileHooks.js.map +0 -1
- package/dist/queries/PeopleSoftHooks.d.ts +0 -537
- package/dist/queries/PeopleSoftHooks.js +0 -628
- package/dist/queries/PeopleSoftHooks.js.map +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ChipProps } from '@mui/material';
|
|
2
|
-
import { GridRenderCellParams, GridValidRowModel } from '@mui/x-data-grid-premium';
|
|
3
|
-
interface ChipInputCellProps<T extends GridValidRowModel> {
|
|
4
|
-
params: GridRenderCellParams<T>;
|
|
5
|
-
slotProps?: ChipProps;
|
|
6
|
-
getLabel?: (object: T) => string | number;
|
|
7
|
-
}
|
|
8
|
-
export declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { c as compilerRuntimeExports } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { Chip, Stack } from "@mui/material";
|
|
4
|
-
const isArray = (value) => Array.isArray(value);
|
|
5
|
-
const ChipInputCell = (t0) => {
|
|
6
|
-
const $ = compilerRuntimeExports.c(20);
|
|
7
|
-
const {
|
|
8
|
-
params,
|
|
9
|
-
slotProps,
|
|
10
|
-
getLabel
|
|
11
|
-
} = t0;
|
|
12
|
-
if (!params.value) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
let t1;
|
|
16
|
-
if ($[0] !== getLabel) {
|
|
17
|
-
t1 = (value) => {
|
|
18
|
-
if (getLabel) {
|
|
19
|
-
return getLabel(value);
|
|
20
|
-
}
|
|
21
|
-
return value;
|
|
22
|
-
};
|
|
23
|
-
$[0] = getLabel;
|
|
24
|
-
$[1] = t1;
|
|
25
|
-
} else {
|
|
26
|
-
t1 = $[1];
|
|
27
|
-
}
|
|
28
|
-
const getLabelValue = t1;
|
|
29
|
-
if (isArray(params.value)) {
|
|
30
|
-
let t22;
|
|
31
|
-
if ($[2] !== params.colDef.computedWidth) {
|
|
32
|
-
t22 = {
|
|
33
|
-
overflowX: "auto",
|
|
34
|
-
height: "100%",
|
|
35
|
-
width: params.colDef.computedWidth
|
|
36
|
-
};
|
|
37
|
-
$[2] = params.colDef.computedWidth;
|
|
38
|
-
$[3] = t22;
|
|
39
|
-
} else {
|
|
40
|
-
t22 = $[3];
|
|
41
|
-
}
|
|
42
|
-
let t32;
|
|
43
|
-
if ($[4] !== getLabelValue || $[5] !== params.value || $[6] !== slotProps) {
|
|
44
|
-
let t42;
|
|
45
|
-
if ($[8] !== getLabelValue || $[9] !== slotProps) {
|
|
46
|
-
t42 = (value_0, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, { label: getLabelValue(value_0), ...slotProps }, `${index + 1}-chip-input-cell`);
|
|
47
|
-
$[8] = getLabelValue;
|
|
48
|
-
$[9] = slotProps;
|
|
49
|
-
$[10] = t42;
|
|
50
|
-
} else {
|
|
51
|
-
t42 = $[10];
|
|
52
|
-
}
|
|
53
|
-
t32 = params.value.map(t42);
|
|
54
|
-
$[4] = getLabelValue;
|
|
55
|
-
$[5] = params.value;
|
|
56
|
-
$[6] = slotProps;
|
|
57
|
-
$[7] = t32;
|
|
58
|
-
} else {
|
|
59
|
-
t32 = $[7];
|
|
60
|
-
}
|
|
61
|
-
let t4;
|
|
62
|
-
if ($[11] !== t22 || $[12] !== t32) {
|
|
63
|
-
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Stack, { direction: "row", alignItems: "center", gap: 1, sx: t22, children: t32 });
|
|
64
|
-
$[11] = t22;
|
|
65
|
-
$[12] = t32;
|
|
66
|
-
$[13] = t4;
|
|
67
|
-
} else {
|
|
68
|
-
t4 = $[13];
|
|
69
|
-
}
|
|
70
|
-
return t4;
|
|
71
|
-
}
|
|
72
|
-
let t2;
|
|
73
|
-
if ($[14] !== getLabelValue || $[15] !== params.value) {
|
|
74
|
-
t2 = getLabelValue(params.value);
|
|
75
|
-
$[14] = getLabelValue;
|
|
76
|
-
$[15] = params.value;
|
|
77
|
-
$[16] = t2;
|
|
78
|
-
} else {
|
|
79
|
-
t2 = $[16];
|
|
80
|
-
}
|
|
81
|
-
let t3;
|
|
82
|
-
if ($[17] !== slotProps || $[18] !== t2) {
|
|
83
|
-
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, { label: t2, ...slotProps });
|
|
84
|
-
$[17] = slotProps;
|
|
85
|
-
$[18] = t2;
|
|
86
|
-
$[19] = t3;
|
|
87
|
-
} else {
|
|
88
|
-
t3 = $[19];
|
|
89
|
-
}
|
|
90
|
-
return t3;
|
|
91
|
-
};
|
|
92
|
-
export {
|
|
93
|
-
ChipInputCell
|
|
94
|
-
};
|
|
95
|
-
//# sourceMappingURL=ChipInputCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChipInputCell.js","sources":["../../../src/components/data-grid/ChipInputCell.tsx"],"sourcesContent":["import { Chip, Stack } from \"@mui/material\";\nimport type { ChipProps} from \"@mui/material\";\nimport type { GridRenderCellParams, GridValidRowModel } from \"@mui/x-data-grid-premium\";\n\nconst isArray = (value: any) => Array.isArray(value);\n\ninterface ChipInputCellProps<T extends GridValidRowModel> {\n params: GridRenderCellParams<T>;\n slotProps?: ChipProps;\n getLabel?: (object: T) => string | number;\n}\n\nexport const ChipInputCell = <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => {\n if (!params.value) return null;\n\n const getLabelValue = (value: any) => {\n if (getLabel) return getLabel(value);\n return value;\n };\n\n if (isArray(params.value))\n return (\n <Stack direction=\"row\" alignItems=\"center\" gap={1} sx={{ overflowX: \"auto\", height: \"100%\", width: params.colDef.computedWidth }}>\n {params.value.map((value: any, index) =>\n <Chip key={`${index + 1}-chip-input-cell`} label={getLabelValue(value)} {...slotProps} />\n )}\n </Stack>\n );\n\n return <Chip label={getLabelValue(params.value)} {...slotProps} />;\n};"],"names":["isArray","value","Array","ChipInputCell","t0","$","_c","params","slotProps","getLabel","t1","getLabelValue","t2","colDef","computedWidth","overflowX","height","width","t3","t4","value_0","index","map","jsx"],"mappings":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AAA,EAAA;AAAA,MAAA;AAD5Fa,YAAAX,OAAMN,MAAMqB,IAAKH,GAElB;AAACd,aAAAM;AAAAN,QAAA,CAAA,IAAAE,OAAAN;AAAAI,aAAAG;AAAAH,aAAAa;AAAAA,IAAA,OAAA;AAAAA,YAAAb,EAAA,CAAA;AAAA,IAAA;AAAA,QAAAc;AAAA,QAAAd,EAAA,EAAA,MAAAO,OAAAP,UAAAa,KAAA;AAHLC,WAAAI,kCAAAA,IAAC,OAAA,EAAgB,WAAA,OAAiB,YAAA,UAAc,QAAO,IAAAX,KAClDM,UAAAA,IAAAA,CAGL;AAAQb,cAAAO;AAAAP,cAAAa;AAAAb,cAAAc;AAAAA,IAAA,OAAA;AAAAA,WAAAd,EAAA,EAAA;AAAA,IAAA;AAAA,WAJRc;AAAAA,EAIQ;AACV,MAAAP;AAAA,MAAAP,UAAAM,iBAAAN,EAAA,EAAA,MAAAE,OAAAN,OAAA;AAEcW,SAAAD,cAAcJ,OAAMN,KAAM;AAACI,YAAAM;AAAAN,MAAA,EAAA,IAAAE,OAAAN;AAAAI,YAAAO;AAAAA,EAAA,OAAA;AAAAA,SAAAP,EAAA,EAAA;AAAA,EAAA;AAAA,MAAAa;AAAA,MAAAb,EAAA,EAAA,MAAAG,aAAAH,UAAAO,IAAA;AAAxCM,SAAAK,kCAAAA,IAAC,MAAA,EAAY,OAAAX,IAA2B,GAAMJ,WAAS;AAAIH,YAAAG;AAAAH,YAAAO;AAAAP,YAAAa;AAAAA,EAAA,OAAA;AAAAA,SAAAb,EAAA,EAAA;AAAA,EAAA;AAAA,SAA3Da;AAA2D;"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { c as compilerRuntimeExports } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import Edit from "@mui/icons-material/Edit";
|
|
4
|
-
import { TypographyWithIcon } from "../core/TypographyWithIcon.js";
|
|
5
|
-
const EditableColumnHeader = (t0) => {
|
|
6
|
-
const $ = compilerRuntimeExports.c(3);
|
|
7
|
-
const {
|
|
8
|
-
colDef
|
|
9
|
-
} = t0;
|
|
10
|
-
let t1;
|
|
11
|
-
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
12
|
-
t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(Edit, { color: "disabled", fontSize: "small" });
|
|
13
|
-
$[0] = t1;
|
|
14
|
-
} else {
|
|
15
|
-
t1 = $[0];
|
|
16
|
-
}
|
|
17
|
-
let t2;
|
|
18
|
-
if ($[1] !== colDef.headerName) {
|
|
19
|
-
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyWithIcon, { endIcon: t1, variant: "body2", className: "MuiDataGrid-columnHeaderTitle", children: colDef.headerName });
|
|
20
|
-
$[1] = colDef.headerName;
|
|
21
|
-
$[2] = t2;
|
|
22
|
-
} else {
|
|
23
|
-
t2 = $[2];
|
|
24
|
-
}
|
|
25
|
-
return t2;
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
EditableColumnHeader
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=EditableColumnHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditableColumnHeader.js","sources":["../../../src/components/data-grid/EditableColumnHeader.tsx"],"sourcesContent":["import Edit from \"@mui/icons-material/Edit\";\nimport { TypographyWithIcon } from \"../core/TypographyWithIcon\";\nimport type { GridColumnHeaderParams, GridValidRowModel } from \"@mui/x-data-grid-premium\";\n\nexport const EditableColumnHeader = <T extends GridValidRowModel>({ colDef }: GridColumnHeaderParams<T>) => {\n return <TypographyWithIcon endIcon={<Edit color=\"disabled\" fontSize=\"small\" />} variant=\"body2\" className=\"MuiDataGrid-columnHeaderTitle\">{colDef.headerName}</TypographyWithIcon>;\n};"],"names":["EditableColumnHeader","t0","$","_c","colDef","t1","Symbol","for","jsx","t2","headerName"],"mappings":";;;;AAIO,MAAMA,uBAAuBC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,uBAAAA,EAAA,CAAA;AAA8B,QAAA;AAAA,IAAAC;AAAAA,EAAAA,IAAAH;AAAqC,MAAAI;AAAA,MAAAH,EAAA,CAAA,MAAAI,uBAAAC,IAAA,2BAAA,GAAA;AAC/DF,SAAAG,kCAAAA,IAAC,MAAA,EAAW,OAAA,YAAoB,UAAA,SAAO;AAAGN,WAAAG;AAAAA,EAAA,OAAA;AAAAA,SAAAH,EAAA,CAAA;AAAA,EAAA;AAAA,MAAAO;AAAA,MAAAP,EAAA,CAAA,MAAAE,OAAAM,YAAA;AAAvED,SAAAD,kCAAAA,IAAC,sBAA4B,SAAAH,IAAoD,SAAA,SAAkB,WAAA,iCAAiCD,UAAAA,OAAMM,WAAAA,CAAY;AAAqBR,MAAA,CAAA,IAAAE,OAAAM;AAAAR,WAAAO;AAAAA,EAAA,OAAA;AAAAA,SAAAP,EAAA,CAAA;AAAA,EAAA;AAAA,SAA3KO;AAA2K;"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SxProps, Theme } from '@mui/material';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { DropzoneOptions } from 'react-dropzone';
|
|
4
|
-
interface DropzoneProps extends DropzoneOptions {
|
|
5
|
-
sx?: SxProps<Theme>;
|
|
6
|
-
}
|
|
7
|
-
export declare const Dropzone: FC<DropzoneProps>;
|
|
8
|
-
export {};
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { c as compilerRuntimeExports } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import CloudUpload from "@mui/icons-material/CloudUpload";
|
|
4
|
-
import { useTheme, Paper, Typography } from "@mui/material";
|
|
5
|
-
import { useDropzone } from "react-dropzone";
|
|
6
|
-
import { useTranslation } from "react-i18next";
|
|
7
|
-
const baseStyle = {
|
|
8
|
-
flex: 1,
|
|
9
|
-
display: "flex",
|
|
10
|
-
flexDirection: "column",
|
|
11
|
-
alignItems: "center",
|
|
12
|
-
padding: "20px",
|
|
13
|
-
borderWidth: 2,
|
|
14
|
-
borderRadius: 2,
|
|
15
|
-
borderStyle: "dashed",
|
|
16
|
-
outline: "none",
|
|
17
|
-
transition: "border .24s ease-in-out",
|
|
18
|
-
cursor: "pointer"
|
|
19
|
-
};
|
|
20
|
-
const Dropzone = (t0) => {
|
|
21
|
-
const $ = compilerRuntimeExports.c(28);
|
|
22
|
-
let props;
|
|
23
|
-
let sx;
|
|
24
|
-
if ($[0] !== t0) {
|
|
25
|
-
({
|
|
26
|
-
sx,
|
|
27
|
-
...props
|
|
28
|
-
} = t0);
|
|
29
|
-
$[0] = t0;
|
|
30
|
-
$[1] = props;
|
|
31
|
-
$[2] = sx;
|
|
32
|
-
} else {
|
|
33
|
-
props = $[1];
|
|
34
|
-
sx = $[2];
|
|
35
|
-
}
|
|
36
|
-
const {
|
|
37
|
-
getRootProps,
|
|
38
|
-
getInputProps,
|
|
39
|
-
isFocused,
|
|
40
|
-
isDragAccept,
|
|
41
|
-
isDragReject
|
|
42
|
-
} = useDropzone(props);
|
|
43
|
-
const {
|
|
44
|
-
t
|
|
45
|
-
} = useTranslation();
|
|
46
|
-
const theme = useTheme();
|
|
47
|
-
let T0;
|
|
48
|
-
let t1;
|
|
49
|
-
let t2;
|
|
50
|
-
if ($[3] !== getRootProps || $[4] !== isDragAccept || $[5] !== isDragReject || $[6] !== isFocused || $[7] !== theme) {
|
|
51
|
-
const style = {
|
|
52
|
-
...baseStyle,
|
|
53
|
-
...isFocused ? {
|
|
54
|
-
borderColor: theme.palette.primary.main
|
|
55
|
-
} : {},
|
|
56
|
-
...isDragAccept ? {
|
|
57
|
-
borderColor: theme.palette.success.main
|
|
58
|
-
} : {},
|
|
59
|
-
...isDragReject ? {
|
|
60
|
-
borderColor: theme.palette.error.main
|
|
61
|
-
} : {}
|
|
62
|
-
};
|
|
63
|
-
T0 = Paper;
|
|
64
|
-
t1 = "outlined";
|
|
65
|
-
t2 = getRootProps({
|
|
66
|
-
style
|
|
67
|
-
});
|
|
68
|
-
$[3] = getRootProps;
|
|
69
|
-
$[4] = isDragAccept;
|
|
70
|
-
$[5] = isDragReject;
|
|
71
|
-
$[6] = isFocused;
|
|
72
|
-
$[7] = theme;
|
|
73
|
-
$[8] = T0;
|
|
74
|
-
$[9] = t1;
|
|
75
|
-
$[10] = t2;
|
|
76
|
-
} else {
|
|
77
|
-
T0 = $[8];
|
|
78
|
-
t1 = $[9];
|
|
79
|
-
t2 = $[10];
|
|
80
|
-
}
|
|
81
|
-
let t3;
|
|
82
|
-
if ($[11] !== getInputProps) {
|
|
83
|
-
t3 = getInputProps();
|
|
84
|
-
$[11] = getInputProps;
|
|
85
|
-
$[12] = t3;
|
|
86
|
-
} else {
|
|
87
|
-
t3 = $[12];
|
|
88
|
-
}
|
|
89
|
-
let t4;
|
|
90
|
-
if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
91
|
-
t4 = {
|
|
92
|
-
display: "none"
|
|
93
|
-
};
|
|
94
|
-
$[13] = t4;
|
|
95
|
-
} else {
|
|
96
|
-
t4 = $[13];
|
|
97
|
-
}
|
|
98
|
-
let t5;
|
|
99
|
-
if ($[14] !== t3) {
|
|
100
|
-
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("input", { ...t3, style: t4 });
|
|
101
|
-
$[14] = t3;
|
|
102
|
-
$[15] = t5;
|
|
103
|
-
} else {
|
|
104
|
-
t5 = $[15];
|
|
105
|
-
}
|
|
106
|
-
let t6;
|
|
107
|
-
if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
108
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(CloudUpload, {});
|
|
109
|
-
$[16] = t6;
|
|
110
|
-
} else {
|
|
111
|
-
t6 = $[16];
|
|
112
|
-
}
|
|
113
|
-
let t7;
|
|
114
|
-
if ($[17] !== t) {
|
|
115
|
-
t7 = t("Layout.File.DragSomeFilesHereOrClickToSelectThem");
|
|
116
|
-
$[17] = t;
|
|
117
|
-
$[18] = t7;
|
|
118
|
-
} else {
|
|
119
|
-
t7 = $[18];
|
|
120
|
-
}
|
|
121
|
-
let t8;
|
|
122
|
-
if ($[19] !== t7) {
|
|
123
|
-
t8 = /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { children: t7 });
|
|
124
|
-
$[19] = t7;
|
|
125
|
-
$[20] = t8;
|
|
126
|
-
} else {
|
|
127
|
-
t8 = $[20];
|
|
128
|
-
}
|
|
129
|
-
let t9;
|
|
130
|
-
if ($[21] !== T0 || $[22] !== sx || $[23] !== t1 || $[24] !== t2 || $[25] !== t5 || $[26] !== t8) {
|
|
131
|
-
t9 = /* @__PURE__ */ jsxRuntimeExports.jsxs(T0, { variant: t1, ...t2, sx, children: [
|
|
132
|
-
t5,
|
|
133
|
-
t6,
|
|
134
|
-
t8
|
|
135
|
-
] });
|
|
136
|
-
$[21] = T0;
|
|
137
|
-
$[22] = sx;
|
|
138
|
-
$[23] = t1;
|
|
139
|
-
$[24] = t2;
|
|
140
|
-
$[25] = t5;
|
|
141
|
-
$[26] = t8;
|
|
142
|
-
$[27] = t9;
|
|
143
|
-
} else {
|
|
144
|
-
t9 = $[27];
|
|
145
|
-
}
|
|
146
|
-
return t9;
|
|
147
|
-
};
|
|
148
|
-
export {
|
|
149
|
-
Dropzone
|
|
150
|
-
};
|
|
151
|
-
//# sourceMappingURL=Dropzone.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Dropzone.js","sources":["../../../src/components/file/Dropzone.tsx"],"sourcesContent":["import CloudUpload from \"@mui/icons-material/CloudUpload\";\nimport { Paper, Typography, useTheme } from \"@mui/material\";\nimport { useDropzone } from \"react-dropzone\";\nimport { useTranslation } from \"react-i18next\";\nimport type { SxProps, Theme} from \"@mui/material\";\nimport type { CSSProperties, FC } from \"react\";\nimport type { DropzoneOptions} from \"react-dropzone\";\n\nconst baseStyle: CSSProperties = {\n flex: 1,\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n padding: \"20px\",\n borderWidth: 2,\n borderRadius: 2,\n borderStyle: \"dashed\",\n outline: \"none\",\n transition: \"border .24s ease-in-out\",\n cursor: \"pointer\",\n};\n\ninterface DropzoneProps extends DropzoneOptions {\n sx?: SxProps<Theme>;\n}\n\nexport const Dropzone: FC<DropzoneProps> = ({ sx, ...props }) => {\n const { getRootProps, getInputProps, isFocused, isDragAccept, isDragReject, } = useDropzone(props);\n const { t } = useTranslation();\n const theme = useTheme();\n\n const style = {\n ...baseStyle,\n ...(isFocused ? { borderColor: theme.palette.primary.main } : {}),\n ...(isDragAccept ? { borderColor: theme.palette.success.main } : {}),\n ...(isDragReject ? { borderColor: theme.palette.error.main } : {})\n };\n\n return (\n <Paper variant=\"outlined\" {...getRootProps({ style })} sx={sx}>\n <input {...getInputProps()} style={{ display: \"none\" }} />\n <CloudUpload />\n <Typography>{t(\"Layout.File.DragSomeFilesHereOrClickToSelectThem\")}</Typography>\n </Paper>\n );\n};"],"names":["baseStyle","flex","display","flexDirection","alignItems","padding","borderWidth","borderRadius","borderStyle","outline","transition","cursor","Dropzone","t0","$","_c","props","sx","getRootProps","getInputProps","isFocused","isDragAccept","isDragReject","useDropzone","t","useTranslation","theme","useTheme","T0","t1","t2","style","borderColor","palette","primary","main","success","error","Paper","t3","t4","Symbol","for","t5","jsx","t6","t7","t8","t9"],"mappings":";;;;;;AAQA,MAAMA,YAA2B;AAAA,EAC7BC,MAAM;AAAA,EACNC,SAAS;AAAA,EACTC,eAAe;AAAA,EACfC,YAAY;AAAA,EACZC,SAAS;AAAA,EACTC,aAAa;AAAA,EACbC,cAAc;AAAA,EACdC,aAAa;AAAA,EACbC,SAAS;AAAA,EACTC,YAAY;AAAA,EACZC,QAAQ;AACZ;AAMO,MAAMC,WAA8BC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,uBAAAA,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AAA,EAAA,MAAAe,MAAAf,EAAA,EAAA,MAAAgB,MAAAhB,UAAA6B,MAAA7B,EAAA,EAAA,MAAAiC,IAAA;AAHpFC,gDAAC,IAAA,EAAc,SAAAnB,IAAU,GAAKC,IAA6Bb,IACvD0B,UAAAA;AAAAA,MAAAA;AAAAA,MACAE;AAAAA,MACAE;AAAAA,IAAAA,GACJ;AAAQjC,YAAAc;AAAAd,YAAAG;AAAAH,YAAAe;AAAAf,YAAAgB;AAAAhB,YAAA6B;AAAA7B,YAAAiC;AAAAjC,YAAAkC;AAAAA,EAAA,OAAA;AAAAA,SAAAlC,EAAA,EAAA;AAAA,EAAA;AAAA,SAJRkC;AAIQ;"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FileViewerGridProps } from './fileViewer/FileViewerGrid';
|
|
2
|
-
import { ComponentType, FC, ReactNode } from 'react';
|
|
3
|
-
import { FileMeta } from '../../models/file/FileMeta';
|
|
4
|
-
import { FileActions } from '../../models/file/FileActions';
|
|
5
|
-
import { FileViewerListProps } from './fileViewer/FileViewerList';
|
|
6
|
-
interface FileViewerComponent {
|
|
7
|
-
Grid: ComponentType<FileViewerGridProps>;
|
|
8
|
-
List: ComponentType<FileViewerListProps>;
|
|
9
|
-
}
|
|
10
|
-
interface FileViewerProps {
|
|
11
|
-
subId: string;
|
|
12
|
-
onDelete?: (params: {
|
|
13
|
-
remainingFileMetas: Array<FileMeta>;
|
|
14
|
-
deletedFileMeta: FileMeta;
|
|
15
|
-
}) => void;
|
|
16
|
-
actions?: FileActions;
|
|
17
|
-
children: (component: FileViewerComponent) => ReactNode;
|
|
18
|
-
}
|
|
19
|
-
export declare const FileViewer: FC<FileViewerProps>;
|
|
20
|
-
export {};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { c as compilerRuntimeExports } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { FileViewerGrid } from "./fileViewer/FileViewerGrid.js";
|
|
5
|
-
import { FileViewerList } from "./fileViewer/FileViewerList.js";
|
|
6
|
-
import { ImageViewer } from "./fileViewer/ImageViewer.js";
|
|
7
|
-
import { FileContext } from "../../contexts/FileContext.js";
|
|
8
|
-
import { useGetFileMetas } from "../../queries/FileHooks.js";
|
|
9
|
-
const FileViewer = (t0) => {
|
|
10
|
-
const $ = compilerRuntimeExports.c(25);
|
|
11
|
-
const {
|
|
12
|
-
subId,
|
|
13
|
-
onDelete,
|
|
14
|
-
actions,
|
|
15
|
-
children
|
|
16
|
-
} = t0;
|
|
17
|
-
let t1;
|
|
18
|
-
if ($[0] !== subId) {
|
|
19
|
-
t1 = {
|
|
20
|
-
subId
|
|
21
|
-
};
|
|
22
|
-
$[0] = subId;
|
|
23
|
-
$[1] = t1;
|
|
24
|
-
} else {
|
|
25
|
-
t1 = $[1];
|
|
26
|
-
}
|
|
27
|
-
const t2 = !!subId;
|
|
28
|
-
let t3;
|
|
29
|
-
if ($[2] !== t2) {
|
|
30
|
-
t3 = {
|
|
31
|
-
enabled: t2
|
|
32
|
-
};
|
|
33
|
-
$[2] = t2;
|
|
34
|
-
$[3] = t3;
|
|
35
|
-
} else {
|
|
36
|
-
t3 = $[3];
|
|
37
|
-
}
|
|
38
|
-
const {
|
|
39
|
-
data: t4
|
|
40
|
-
} = useGetFileMetas(t1, t3);
|
|
41
|
-
let t5;
|
|
42
|
-
if ($[4] !== t4) {
|
|
43
|
-
t5 = t4 === void 0 ? [] : t4;
|
|
44
|
-
$[4] = t4;
|
|
45
|
-
$[5] = t5;
|
|
46
|
-
} else {
|
|
47
|
-
t5 = $[5];
|
|
48
|
-
}
|
|
49
|
-
const fileMetas = t5;
|
|
50
|
-
const [imageId, setImageId] = useState("");
|
|
51
|
-
let T0;
|
|
52
|
-
let t6;
|
|
53
|
-
let t7;
|
|
54
|
-
let t8;
|
|
55
|
-
if ($[6] !== actions || $[7] !== children || $[8] !== fileMetas || $[9] !== onDelete) {
|
|
56
|
-
t8 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
57
|
-
bb0: {
|
|
58
|
-
const components = {
|
|
59
|
-
Grid: FileViewerGrid,
|
|
60
|
-
List: FileViewerList
|
|
61
|
-
};
|
|
62
|
-
if (fileMetas.length === 0) {
|
|
63
|
-
t8 = null;
|
|
64
|
-
break bb0;
|
|
65
|
-
}
|
|
66
|
-
T0 = FileContext.Provider;
|
|
67
|
-
if ($[14] !== actions || $[15] !== fileMetas || $[16] !== onDelete) {
|
|
68
|
-
t6 = {
|
|
69
|
-
fileMetas,
|
|
70
|
-
onDelete,
|
|
71
|
-
actions,
|
|
72
|
-
setImageId
|
|
73
|
-
};
|
|
74
|
-
$[14] = actions;
|
|
75
|
-
$[15] = fileMetas;
|
|
76
|
-
$[16] = onDelete;
|
|
77
|
-
$[17] = t6;
|
|
78
|
-
} else {
|
|
79
|
-
t6 = $[17];
|
|
80
|
-
}
|
|
81
|
-
t7 = children(components);
|
|
82
|
-
}
|
|
83
|
-
$[6] = actions;
|
|
84
|
-
$[7] = children;
|
|
85
|
-
$[8] = fileMetas;
|
|
86
|
-
$[9] = onDelete;
|
|
87
|
-
$[10] = T0;
|
|
88
|
-
$[11] = t6;
|
|
89
|
-
$[12] = t7;
|
|
90
|
-
$[13] = t8;
|
|
91
|
-
} else {
|
|
92
|
-
T0 = $[10];
|
|
93
|
-
t6 = $[11];
|
|
94
|
-
t7 = $[12];
|
|
95
|
-
t8 = $[13];
|
|
96
|
-
}
|
|
97
|
-
if (t8 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
|
|
98
|
-
return t8;
|
|
99
|
-
}
|
|
100
|
-
let t9;
|
|
101
|
-
if ($[18] !== imageId) {
|
|
102
|
-
t9 = /* @__PURE__ */ jsxRuntimeExports.jsx(ImageViewer, { metaId: imageId });
|
|
103
|
-
$[18] = imageId;
|
|
104
|
-
$[19] = t9;
|
|
105
|
-
} else {
|
|
106
|
-
t9 = $[19];
|
|
107
|
-
}
|
|
108
|
-
let t10;
|
|
109
|
-
if ($[20] !== T0 || $[21] !== t6 || $[22] !== t7 || $[23] !== t9) {
|
|
110
|
-
t10 = /* @__PURE__ */ jsxRuntimeExports.jsxs(T0, { value: t6, children: [
|
|
111
|
-
t7,
|
|
112
|
-
t9
|
|
113
|
-
] });
|
|
114
|
-
$[20] = T0;
|
|
115
|
-
$[21] = t6;
|
|
116
|
-
$[22] = t7;
|
|
117
|
-
$[23] = t9;
|
|
118
|
-
$[24] = t10;
|
|
119
|
-
} else {
|
|
120
|
-
t10 = $[24];
|
|
121
|
-
}
|
|
122
|
-
return t10;
|
|
123
|
-
};
|
|
124
|
-
export {
|
|
125
|
-
FileViewer
|
|
126
|
-
};
|
|
127
|
-
//# sourceMappingURL=FileViewer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileViewer.js","sources":["../../../src/components/file/FileViewer.tsx"],"sourcesContent":["import { useState } from \"react\";\nimport { FileViewerGrid } from \"./fileViewer/FileViewerGrid\";\nimport { FileViewerList } from \"./fileViewer/FileViewerList\";\nimport { ImageViewer } from \"./fileViewer/ImageViewer\";\nimport type { FileViewerGridProps } from \"./fileViewer/FileViewerGrid\";\nimport type { ComponentType, FC, ReactNode } from \"react\";\nimport type { FileMeta } from \"~/models/file/FileMeta\";\nimport type { FileActions } from \"~/models/file/FileActions\";\nimport type { FileViewerListProps } from \"./fileViewer/FileViewerList\";\nimport { FileContext } from \"~/contexts/FileContext\";\nimport { useGetFileMetas } from \"~/queries/FileHooks\";\n\ninterface FileViewerComponent {\n Grid: ComponentType<FileViewerGridProps>;\n List: ComponentType<FileViewerListProps>;\n}\n\ninterface FileViewerProps {\n subId: string;\n onDelete?: (params: { remainingFileMetas: Array<FileMeta>; deletedFileMeta: FileMeta }) => void;\n actions?: FileActions;\n children: (component: FileViewerComponent) => ReactNode;\n}\n\nexport const FileViewer: FC<FileViewerProps> = ({ subId, onDelete, actions, children }) => {\n const { data: fileMetas = [] } = useGetFileMetas({ subId }, { enabled: !!subId });\n const [imageId, setImageId] = useState<string>(\"\");\n\n const components: FileViewerComponent = { Grid: FileViewerGrid, List: FileViewerList };\n\n if (fileMetas.length === 0) return null;\n\n return (\n <FileContext.Provider value={{ fileMetas, onDelete, actions, setImageId }}>\n {children(components)}\n <ImageViewer metaId={imageId} />\n </FileContext.Provider>\n );\n};\n"],"names":["FileViewer","t0","$","_c","subId","onDelete","actions","children","t1","t2","t3","enabled","data","t4","useGetFileMetas","t5","undefined","fileMetas","imageId","setImageId","useState","T0","t6","t7","t8","Symbol","for","bb0","components","Grid","FileViewerGrid","List","FileViewerList","length","FileContext","Provider","t9","t10"],"mappings":";;;;;;;;AAwBO,MAAMA,aAAkCC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,uBAAAA,EAAA,EAAA;AAAC,QAAA;AAAA,IAAAC;AAAAA,IAAAC;AAAAA,IAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAAN;AAAsC,MAAAO;AAAA,MAAAN,SAAAE,OAAA;AACjCI,SAAA;AAAA,MAAAJ;AAAAA,IAAAA;AAASF,WAAAE;AAAAF,WAAAM;AAAAA,EAAA,OAAA;AAAAA,SAAAN,EAAA,CAAA;AAAA,EAAA;AAAa,QAAAO,KAAA,CAAC,CAACL;AAAK,MAAAM;AAAA,MAAAR,SAAAO,IAAA;AAAlBC,SAAA;AAAA,MAAAC,SAAWF;AAAAA,IAAAA;AAASP,WAAAO;AAAAP,WAAAQ;AAAAA,EAAA,OAAA;AAAAA,SAAAR,EAAA,CAAA;AAAA,EAAA;AAAhF,QAAA;AAAA,IAAAU,MAAAC;AAAAA,EAAAA,IAAiCC,gBAAgBN,IAAWE,EAAoB;AAAE,MAAAK;AAAA,MAAAb,SAAAW,IAAA;AAApEE,SAAAF,OAAAG,SAAA,CAAA,IAAAH;AAAcX,WAAAW;AAAAX,WAAAa;AAAAA,EAAA,OAAA;AAAAA,SAAAb,EAAA,C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AA,QAAAA,CAAO;AAAIhB,YAAAgB;AAAAhB,YAAAkC;AAAAA,EAAA,OAAA;AAAAA,SAAAlC,EAAA,EAAA;AAAA,EAAA;AAAA,MAAAmC;AAAA,MAAAnC,EAAA,EAAA,MAAAmB,MAAAnB,EAAA,EAAA,MAAAoB,MAAApB,EAAA,EAAA,MAAAqB,MAAArB,UAAAkC,IAAA;AAFpCC,iDAAC,IAAA,EAA4B,OAAAf,IACxBC,UAAAA;AAAAA,MAAAA;AAAAA,MACDa;AAAAA,IAAAA,GACJ;AAAuBlC,YAAAmB;AAAAnB,YAAAoB;AAAApB,YAAAqB;AAAArB,YAAAkC;AAAAlC,YAAAmC;AAAAA,EAAA,OAAA;AAAAA,UAAAnC,EAAA,EAAA;AAAA,EAAA;AAAA,SAHvBmC;AAGuB;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { SxProps, Theme } from '@mui/material';
|
|
3
|
-
import { FileMeta } from '../../../models/file/FileMeta';
|
|
4
|
-
type FileViewerGridItemBar = "hidden" | "always" | "onMouseEnter";
|
|
5
|
-
export interface FileViewerGridProps {
|
|
6
|
-
size?: number;
|
|
7
|
-
itemBar?: FileViewerGridItemBar;
|
|
8
|
-
sx?: SxProps<Theme>;
|
|
9
|
-
}
|
|
10
|
-
export declare const FileViewerGrid: React.FC<FileViewerGridProps>;
|
|
11
|
-
interface GridFileViewerItemProps {
|
|
12
|
-
meta: FileMeta;
|
|
13
|
-
size?: number;
|
|
14
|
-
itemBar?: FileViewerGridItemBar;
|
|
15
|
-
}
|
|
16
|
-
export declare const GridFileViewerItem: React.FC<GridFileViewerItemProps>;
|
|
17
|
-
export {};
|