akanjs 2.2.4-rc.4 → 2.2.4
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/base/base.test.ts +135 -0
- package/base/base.ts +1 -1
- package/base/baseEnv.test.ts +146 -0
- package/base/primitiveRegistry.test.ts +127 -0
- package/base/primitiveRegistry.ts +10 -6
- package/base/symbols.test.ts +29 -0
- package/base/types.ts +4 -1
- package/base/utils.test.ts +30 -0
- package/build.ts +318 -0
- package/capacitor.base.config.test.ts +83 -0
- package/capacitor.base.config.ts +1 -1
- package/client/capacitor.ts +1 -1
- package/client/client.auth-storage.test.ts +210 -0
- package/client/client.decorators.test.ts +74 -0
- package/client/client.device.test.ts +181 -0
- package/client/client.page.test.tsx +175 -0
- package/client/client.pure.test.ts +146 -0
- package/client/client.router.test.ts +290 -0
- package/client/cookie.ts +4 -2
- package/client/createFont.ts +2 -2
- package/client/csrTypes.ts +8 -2
- package/client/makePageProto.tsx +10 -4
- package/client/router.ts +8 -3
- package/client/translator.ts +12 -4
- package/common/Logger.test.ts +45 -0
- package/common/Logger.ts +4 -1
- package/common/formatAndValidation.test.ts +61 -0
- package/common/formatNumber.ts +5 -2
- package/common/hmrPhase.ts +1 -1
- package/common/httpClient.test.ts +91 -0
- package/common/isValidDate.ts +3 -0
- package/common/objectPath.test.ts +108 -0
- package/common/routeConvention.test.ts +132 -0
- package/common/runtimeConfig.test.ts +84 -0
- package/constant/constant.test.ts +374 -0
- package/constant/fieldInfo.ts +3 -3
- package/constant/purify.ts +2 -1
- package/constant/types.ts +4 -0
- package/constant/via.ts +12 -6
- package/dictionary/dictionary.test.ts +352 -0
- package/document/databaseRegistry.ts +8 -0
- package/document/document.test.ts +698 -0
- package/document/into.ts +1 -0
- package/fetch/client/fetchClient.ts +6 -1
- package/fetch/client/httpClient.ts +2 -1
- package/fetch/fetch.test.ts +838 -0
- package/fetch/fetchType/appliedReturn.type.ts +1 -0
- package/fetch/fetchType/endpointFetch.type.ts +3 -0
- package/fetch/fetchType/sliceFetch.type.ts +8 -0
- package/fetch/requestStorage.ts +10 -2
- package/package.json +24 -67
- package/server/akanApp.test.ts +130 -0
- package/server/akanApp.ts +5 -2
- package/server/akanLib.ts +1 -0
- package/server/akanServer.test.ts +157 -0
- package/server/akanServer.ts +4 -3
- package/server/artifact/builderRpc.ts +2 -2
- package/server/artifact/ipcTypes.ts +4 -0
- package/server/artifact/routeClientCache.test.ts +265 -0
- package/server/artifact/routeSeedIndex.test.ts +56 -0
- package/server/artifact/routesManifest.test.ts +64 -0
- package/server/decorators.ts +1 -1
- package/server/di/diLifecycle.contract.test.ts +168 -0
- package/server/di/diLifecycle.ts +6 -3
- package/server/hmr/clientScript.ts +20 -2
- package/server/hmr/devHmrController.ts +4 -0
- package/server/logging/rotatingLogWriter.test.ts +119 -0
- package/server/processMetrics.test.ts +24 -0
- package/server/processMetricsCollector.ts +1 -1
- package/server/proxy/webProxyRunner.test.ts +66 -0
- package/server/resolver/database.resolver.ts +2 -2
- package/server/resolver/resolver.contract.fixture.ts +1 -0
- package/server/resolver/resolver.contract.test.ts +594 -0
- package/server/resolver/signal.resolver.ts +10 -2
- package/server/robots.test.ts +16 -0
- package/server/routeTree.test.tsx +198 -0
- package/server/routing/apiRouter.test.ts +136 -0
- package/server/routing/apiRouter.ts +4 -2
- package/server/rscClient.tsx +7 -1
- package/server/rscWorkerHost.ts +33 -11
- package/server/sitemap.test.ts +61 -0
- package/server/ssrFromRscRenderer.tsx +35 -3
- package/server/systemPages.test.tsx +93 -0
- package/server/types/react-server-dom-webpack.d.ts +7 -1
- package/server/vendor/react-dom-client.ts +1 -1
- package/server/vendor/react-dom.ts +3 -2
- package/server/vendor/react-jsx-dev-runtime.ts +1 -1
- package/server/vendor/react-jsx-runtime.ts +1 -1
- package/server/vendor/react-refresh-runtime.ts +2 -2
- package/server/vendor/react-server-dom-webpack-client-browser.ts +1 -1
- package/server/vendor/react.ts +9 -2
- package/server/vendor/scheduler.ts +3 -2
- package/server/webRouter.test.ts +49 -0
- package/server/webRouter.ts +3 -2
- package/service/adapt.ts +5 -1
- package/service/predefinedAdaptor/cache.adaptor.ts +2 -1
- package/service/predefinedAdaptor/compress.adaptor.test.ts +184 -0
- package/service/predefinedAdaptor/database.adaptor.ts +20 -8
- package/service/predefinedAdaptor/solidCache.adaptor.test.ts +107 -0
- package/service/predefinedAdaptor/solidSqlite.test.ts +457 -0
- package/service/predefinedAdaptor/solidSqlite.ts +2 -1
- package/service/predefinedAdaptor/websocket.adaptor.ts +15 -3
- package/service/serve.ts +7 -3
- package/service/service.test.ts +732 -0
- package/signal/base.signal.ts +1 -0
- package/signal/endpointInfo.ts +7 -0
- package/signal/intercept.ts +2 -0
- package/signal/middleware.ts +2 -1
- package/signal/serverSignal.ts +15 -1
- package/signal/signal.test.ts +892 -0
- package/signal/signalContext.ts +1 -1
- package/signal/signalRegistry.ts +5 -0
- package/signal/sliceInfo.ts +3 -0
- package/signal/trace.ts +11 -0
- package/signal/types.ts +11 -2
- package/store/action.ts +5 -3
- package/store/stateBuilder.test.ts +168 -0
- package/store/stateBuilder.ts +2 -0
- package/store/stateInfo.ts +2 -1
- package/store/store.test.ts +427 -0
- package/store/types.ts +1 -1
- package/test/playwright.config.base.ts +28 -5
- package/test/playwright.pageAgent.ts +1 -1
- package/test/sampleOf.ts +1 -1
- package/test/testServer.ts +1 -1
- package/tsconfig.json +5 -0
- package/ui/BottomSheet.tsx +1 -1
- package/ui/Clipboard.tsx +1 -1
- package/ui/Constant/schemaDoc.test.ts +113 -0
- package/ui/CsrImage.tsx +14 -3
- package/ui/Data/ListContainer.tsx +1 -1
- package/ui/Data/Pagination.tsx +1 -1
- package/ui/Data/QueryMaker.tsx +339 -0
- package/ui/Data/index.ts +1 -0
- package/ui/DatePicker.tsx +95 -1
- package/ui/Dialog/Modal.tsx +1 -1
- package/ui/DraggableList.tsx +5 -5
- package/ui/Field.tsx +3 -2
- package/ui/Image.tsx +3 -2
- package/ui/InfiniteScroll.test.tsx +155 -0
- package/ui/InfiniteScroll.tsx +1 -0
- package/ui/Input.tsx +8 -1
- package/ui/Layout/BottomTab.tsx +2 -2
- package/ui/Link/SsrLink.tsx +2 -1
- package/ui/Load/Page.tsx +1 -1
- package/ui/Load/PageCSR.tsx +1 -0
- package/ui/Load/Units.tsx +2 -1
- package/ui/Load/View.tsx +2 -1
- package/ui/Menu.tsx +8 -5
- package/ui/Model/EditModal.tsx +5 -2
- package/ui/Popconfirm.tsx +4 -2
- package/ui/ScreenNavigator.tsx +3 -2
- package/ui/Signal/Message.tsx +3 -2
- package/ui/Signal/PubSub.tsx +2 -0
- package/ui/Signal/Response.tsx +1 -1
- package/ui/Signal/WebSocket.tsx +11 -2
- package/ui/System/Client.tsx +41 -7
- package/ui/System/Common.test.ts +37 -0
- package/ui/System/Gtag.tsx +5 -2
- package/ui/System/Messages.tsx +2 -2
- package/ui/System/Reconnect.tsx +6 -5
- package/ui/System/Root.tsx +1 -0
- package/ui/System/SSR.tsx +7 -1
- package/ui/ToggleSelect.tsx +8 -3
- package/ui/Unauthorized.tsx +1 -1
- package/webkit/bootCsr.test.tsx +153 -0
- package/webkit/bootCsr.tsx +6 -3
- package/webkit/lazy.tsx +8 -1
- package/webkit/native.test.tsx +341 -0
- package/webkit/useCamera.tsx +1 -0
- package/webkit/useCodepush.tsx +9 -4
- package/webkit/useContact.tsx +1 -0
- package/webkit/useCsrValues.ts +10 -6
- package/webkit/useDebounce.ts +2 -2
- package/webkit/usePurchase.tsx +9 -5
- package/webkit/usePushNoti.tsx +1 -0
- package/webkit/webkit.test.tsx +531 -0
- package/types/base/base.d.ts +0 -53
- package/types/base/baseEnv.d.ts +0 -68
- package/types/base/index.d.ts +0 -6
- package/types/base/primitiveRegistry.d.ts +0 -134
- package/types/base/symbols.d.ts +0 -11
- package/types/base/types.d.ts +0 -68
- package/types/base/utils.d.ts +0 -4
- package/types/base.d.ts +0 -1
- package/types/capacitor.base.config.d.ts +0 -3
- package/types/client/capacitor.d.ts +0 -233
- package/types/client/clientRuntime.d.ts +0 -63
- package/types/client/cookie.d.ts +0 -33
- package/types/client/createFont.d.ts +0 -6
- package/types/client/csrTypes.d.ts +0 -262
- package/types/client/decorators.d.ts +0 -7
- package/types/client/device.d.ts +0 -41
- package/types/client/fetch.d.ts +0 -1
- package/types/client/index.d.ts +0 -14
- package/types/client/locale.d.ts +0 -5
- package/types/client/makePageProto.d.ts +0 -17002
- package/types/client/router.d.ts +0 -66
- package/types/client/rscNavigation.d.ts +0 -19
- package/types/client/storage.d.ts +0 -5
- package/types/client/translator.d.ts +0 -18
- package/types/client/types.d.ts +0 -145
- package/types/client/useClient.d.ts +0 -1
- package/types/client.d.ts +0 -1
- package/types/common/Logger.d.ts +0 -41
- package/types/common/applyMixins.d.ts +0 -3
- package/types/common/capitalize.d.ts +0 -2
- package/types/common/deepObjectify.d.ts +0 -4
- package/types/common/fileUpload.d.ts +0 -28
- package/types/common/formatNumber.d.ts +0 -1
- package/types/common/formatPhone.d.ts +0 -2
- package/types/common/getAllPropertyDescriptors.d.ts +0 -5
- package/types/common/hmrPhase.d.ts +0 -6
- package/types/common/httpClient.d.ts +0 -20
- package/types/common/index.d.ts +0 -29
- package/types/common/isDayjs.d.ts +0 -2
- package/types/common/isEmail.d.ts +0 -2
- package/types/common/isPhoneNumber.d.ts +0 -2
- package/types/common/isQueryEqual.d.ts +0 -1
- package/types/common/isValidDate.d.ts +0 -2
- package/types/common/jwtDecode.d.ts +0 -2
- package/types/common/localeConfig.d.ts +0 -11
- package/types/common/lowerlize.d.ts +0 -2
- package/types/common/mergeVersion.d.ts +0 -10
- package/types/common/objectify.d.ts +0 -1
- package/types/common/pathGet.d.ts +0 -1
- package/types/common/pathSet.d.ts +0 -3
- package/types/common/randomPick.d.ts +0 -1
- package/types/common/randomPicks.d.ts +0 -1
- package/types/common/routeConvention.d.ts +0 -35
- package/types/common/sleep.d.ts +0 -2
- package/types/common/splitVersion.d.ts +0 -11
- package/types/common/subRoute.d.ts +0 -7
- package/types/common/types.d.ts +0 -14
- package/types/common.d.ts +0 -1
- package/types/constant/constantRegistry.d.ts +0 -89
- package/types/constant/crystalize.d.ts +0 -4
- package/types/constant/deserialize.d.ts +0 -7
- package/types/constant/fieldInfo.d.ts +0 -153
- package/types/constant/getDefault.d.ts +0 -3
- package/types/constant/immerify.d.ts +0 -2
- package/types/constant/index.d.ts +0 -10
- package/types/constant/purify.d.ts +0 -12
- package/types/constant/serialize.d.ts +0 -11
- package/types/constant/types.d.ts +0 -77
- package/types/constant/via.d.ts +0 -52
- package/types/constant.d.ts +0 -1
- package/types/dictionary/base.dictionary.d.ts +0 -1
- package/types/dictionary/dictInfo.d.ts +0 -206
- package/types/dictionary/dictionary.d.ts +0 -11
- package/types/dictionary/index.d.ts +0 -4
- package/types/dictionary/locale.d.ts +0 -128
- package/types/dictionary/trans.d.ts +0 -82
- package/types/dictionary.d.ts +0 -1
- package/types/document/by.d.ts +0 -20
- package/types/document/dataLoader.d.ts +0 -36
- package/types/document/database.d.ts +0 -96
- package/types/document/databaseRegistry.d.ts +0 -36
- package/types/document/documentQuery.d.ts +0 -105
- package/types/document/documentSchema.d.ts +0 -33
- package/types/document/filterMeta.d.ts +0 -84
- package/types/document/index.d.ts +0 -11
- package/types/document/into.d.ts +0 -65
- package/types/document/loaderInfo.d.ts +0 -35
- package/types/document/schema.d.ts +0 -5
- package/types/document/types.d.ts +0 -36
- package/types/document.d.ts +0 -1
- package/types/fetch/client/fetchClient.d.ts +0 -78
- package/types/fetch/client/httpClient.d.ts +0 -39
- package/types/fetch/client/index.d.ts +0 -3
- package/types/fetch/client/wsClient.d.ts +0 -37
- package/types/fetch/client.d.ts +0 -1
- package/types/fetch/fetchType/appliedReturn.type.d.ts +0 -67
- package/types/fetch/fetchType/buildFetch.type.d.ts +0 -11
- package/types/fetch/fetchType/clientSignal.type.d.ts +0 -16
- package/types/fetch/fetchType/endpointFetch.type.d.ts +0 -29
- package/types/fetch/fetchType/index.d.ts +0 -5
- package/types/fetch/fetchType/sliceFetch.type.d.ts +0 -76
- package/types/fetch/fetchType.d.ts +0 -1
- package/types/fetch/index.d.ts +0 -4
- package/types/fetch/requestStorage.d.ts +0 -29
- package/types/fetch/serializer/fetch.serializer.d.ts +0 -14
- package/types/fetch/serializer/index.d.ts +0 -1
- package/types/fetch/serializer.d.ts +0 -1
- package/types/fetch/types.d.ts +0 -19
- package/types/fetch.d.ts +0 -1
- package/types/index.d.ts +0 -213
- package/types/server/akanApp.d.ts +0 -17
- package/types/server/akanAppHeaders.d.ts +0 -1
- package/types/server/akanLib.d.ts +0 -33
- package/types/server/akanOption.d.ts +0 -15
- package/types/server/akanServer.d.ts +0 -47
- package/types/server/artifact/builderRpc.d.ts +0 -42
- package/types/server/artifact/index.d.ts +0 -6
- package/types/server/artifact/ipcTypes.d.ts +0 -73
- package/types/server/artifact/manifestTypes.d.ts +0 -16
- package/types/server/artifact/routeClientCache.d.ts +0 -45
- package/types/server/artifact/routeSeedIndexStore.d.ts +0 -43
- package/types/server/artifact/routesManifestStore.d.ts +0 -16
- package/types/server/artifact.d.ts +0 -1
- package/types/server/decorators.d.ts +0 -6
- package/types/server/di/diLifecycle.d.ts +0 -45
- package/types/server/di/index.d.ts +0 -4
- package/types/server/di/predefinedAdaptor.d.ts +0 -33
- package/types/server/di/resolveAdaptorHierarchy.d.ts +0 -21
- package/types/server/di/resolveHierarchy.d.ts +0 -11
- package/types/server/di/resolveServiceHierarchy.d.ts +0 -13
- package/types/server/di/utils.d.ts +0 -14
- package/types/server/di.d.ts +0 -1
- package/types/server/hmr/changeBatch.d.ts +0 -13
- package/types/server/hmr/clientScript.d.ts +0 -1
- package/types/server/hmr/devHmrController.d.ts +0 -24
- package/types/server/hmr/index.d.ts +0 -4
- package/types/server/hmr/wsHub.d.ts +0 -45
- package/types/server/hmr.d.ts +0 -1
- package/types/server/imageOptimizer.d.ts +0 -12
- package/types/server/imageOptimizerError.d.ts +0 -4
- package/types/server/index.d.ts +0 -14
- package/types/server/lifecycle/shutdownManager.d.ts +0 -13
- package/types/server/logging/rotatingLogWriter.d.ts +0 -20
- package/types/server/processMetricsCollector.d.ts +0 -10
- package/types/server/proxy/akanResponse.d.ts +0 -7
- package/types/server/proxy/bunRequestFields.d.ts +0 -1
- package/types/server/proxy/hostBasePathWebProxy.d.ts +0 -6
- package/types/server/proxy/index.d.ts +0 -6
- package/types/server/proxy/localeWebProxy.d.ts +0 -5
- package/types/server/proxy/types.d.ts +0 -37
- package/types/server/proxy/webProxyRunner.d.ts +0 -7
- package/types/server/proxy.d.ts +0 -1
- package/types/server/resolver/database.resolver.d.ts +0 -6
- package/types/server/resolver/index.d.ts +0 -3
- package/types/server/resolver/service.resolver.d.ts +0 -7
- package/types/server/resolver/signal.resolver.d.ts +0 -29
- package/types/server/resolver.d.ts +0 -1
- package/types/server/robots.d.ts +0 -1
- package/types/server/routeElementComposer.d.ts +0 -41
- package/types/server/routeTreeBuilder.d.ts +0 -28
- package/types/server/routing/apiRouter.d.ts +0 -61
- package/types/server/rscClient.d.ts +0 -15
- package/types/server/rscWorker.d.ts +0 -3
- package/types/server/rscWorkerHost.d.ts +0 -83
- package/types/server/sitemap.d.ts +0 -13
- package/types/server/ssrFromRscRenderer.d.ts +0 -6
- package/types/server/ssrTypes.d.ts +0 -47
- package/types/server/systemPages.d.ts +0 -27
- package/types/server/types/react-server-dom-webpack.d.ts +0 -91
- package/types/server/types.d.ts +0 -67
- package/types/server/vendor/akanjs-base.d.ts +0 -1
- package/types/server/vendor/akanjs-common.d.ts +0 -1
- package/types/server/vendor/akanjs-constant.d.ts +0 -1
- package/types/server/vendor/akanjs-store.d.ts +0 -1
- package/types/server/vendor/react-dom-client.d.ts +0 -3
- package/types/server/vendor/react-dom.d.ts +0 -3
- package/types/server/vendor/react-jsx-dev-runtime.d.ts +0 -3
- package/types/server/vendor/react-jsx-runtime.d.ts +0 -3
- package/types/server/vendor/react-refresh-runtime.d.ts +0 -3
- package/types/server/vendor/react-server-dom-webpack-client-browser.d.ts +0 -3
- package/types/server/vendor/react.d.ts +0 -11
- package/types/server/vendor/scheduler.d.ts +0 -3
- package/types/server/webRouter.d.ts +0 -44
- package/types/server.d.ts +0 -1
- package/types/service/adapt.d.ts +0 -15
- package/types/service/base.service.d.ts +0 -18
- package/types/service/index.d.ts +0 -10
- package/types/service/injectInfo.d.ts +0 -102
- package/types/service/ipcTypes.d.ts +0 -194
- package/types/service/predefinedAdaptor/cache.adaptor.d.ts +0 -46
- package/types/service/predefinedAdaptor/compress.adaptor.d.ts +0 -22
- package/types/service/predefinedAdaptor/database.adaptor.d.ts +0 -329
- package/types/service/predefinedAdaptor/index.d.ts +0 -13
- package/types/service/predefinedAdaptor/logging.adaptor.d.ts +0 -20
- package/types/service/predefinedAdaptor/queue.adaptor.d.ts +0 -22
- package/types/service/predefinedAdaptor/role.adaptor.d.ts +0 -17
- package/types/service/predefinedAdaptor/schedule.adaptor.d.ts +0 -60
- package/types/service/predefinedAdaptor/solidCache.adaptor.d.ts +0 -25
- package/types/service/predefinedAdaptor/solidPubsub.adaptor.d.ts +0 -20
- package/types/service/predefinedAdaptor/solidQueue.adaptor.d.ts +0 -19
- package/types/service/predefinedAdaptor/solidSqlite.d.ts +0 -24
- package/types/service/predefinedAdaptor/sqlitePath.d.ts +0 -9
- package/types/service/predefinedAdaptor/storage.adaptor.d.ts +0 -80
- package/types/service/predefinedAdaptor/websocket.adaptor.d.ts +0 -49
- package/types/service/predefinedAdaptor.d.ts +0 -1
- package/types/service/serve.d.ts +0 -31
- package/types/service/serviceModule.d.ts +0 -50
- package/types/service/serviceRegistry.d.ts +0 -9
- package/types/service/types.d.ts +0 -55
- package/types/service.d.ts +0 -1
- package/types/signal/base.signal.d.ts +0 -41
- package/types/signal/endpoint.d.ts +0 -28
- package/types/signal/endpointInfo.d.ts +0 -77
- package/types/signal/exception.d.ts +0 -54786
- package/types/signal/guard.d.ts +0 -10
- package/types/signal/guards.d.ts +0 -10
- package/types/signal/index.d.ts +0 -19
- package/types/signal/intercept.d.ts +0 -17
- package/types/signal/internal.d.ts +0 -18
- package/types/signal/internalArg.d.ts +0 -31
- package/types/signal/internalInfo.d.ts +0 -45
- package/types/signal/middleware.d.ts +0 -51
- package/types/signal/serializer/fetch.serializer.d.ts +0 -14
- package/types/signal/serializer/index.d.ts +0 -1
- package/types/signal/serializer.d.ts +0 -1
- package/types/signal/serverSignal.d.ts +0 -36
- package/types/signal/signalContext.d.ts +0 -96
- package/types/signal/signalRegistry.d.ts +0 -49
- package/types/signal/slice.d.ts +0 -42
- package/types/signal/sliceInfo.d.ts +0 -51
- package/types/signal/trace.d.ts +0 -97
- package/types/signal/types.d.ts +0 -142
- package/types/signal.d.ts +0 -1
- package/types/store/action.d.ts +0 -145
- package/types/store/baseSt.d.ts +0 -412
- package/types/store/hooks.d.ts +0 -1
- package/types/store/index.d.ts +0 -8
- package/types/store/rootStore.d.ts +0 -22
- package/types/store/state.d.ts +0 -91
- package/types/store/stateBuilder.d.ts +0 -141
- package/types/store/stateInfo.d.ts +0 -23
- package/types/store/store.d.ts +0 -36
- package/types/store/storeInstance.d.ts +0 -38
- package/types/store/storeRegistry.d.ts +0 -13
- package/types/store/types.d.ts +0 -42
- package/types/store/withSelector.d.ts +0 -42
- package/types/store.d.ts +0 -1
- package/types/test/index.d.ts +0 -4
- package/types/test/playwright.config.base.d.ts +0 -9
- package/types/test/playwright.pageAgent.d.ts +0 -12
- package/types/test/sample.d.ts +0 -15
- package/types/test/sampleOf.d.ts +0 -5
- package/types/test/signalTest.preload.d.ts +0 -1
- package/types/test/signalTestRuntime.d.ts +0 -29
- package/types/test/testServer.d.ts +0 -26
- package/types/test.d.ts +0 -1
- package/types/ui/BottomSheet.d.ts +0 -13
- package/types/ui/Button.d.ts +0 -11
- package/types/ui/ClientSide.d.ts +0 -8
- package/types/ui/Clipboard.d.ts +0 -7
- package/types/ui/Constant/Doc.d.ts +0 -29
- package/types/ui/Constant/Mermaid.d.ts +0 -8
- package/types/ui/Constant/index.d.ts +0 -6
- package/types/ui/Constant/schemaDoc.d.ts +0 -84
- package/types/ui/Constant.d.ts +0 -1
- package/types/ui/Copy.d.ts +0 -10
- package/types/ui/CsrImage.d.ts +0 -18
- package/types/ui/Data/CardList.d.ts +0 -36
- package/types/ui/Data/Dashboard.d.ts +0 -11
- package/types/ui/Data/Insight.d.ts +0 -9
- package/types/ui/Data/Item.d.ts +0 -75
- package/types/ui/Data/ListContainer.d.ts +0 -49
- package/types/ui/Data/Pagination.d.ts +0 -9
- package/types/ui/Data/QueryMaker.d.ts +0 -8
- package/types/ui/Data/TableList.d.ts +0 -26
- package/types/ui/Data/index.d.ts +0 -9
- package/types/ui/Data/index_.d.ts +0 -8
- package/types/ui/Data.d.ts +0 -1
- package/types/ui/DatePicker.d.ts +0 -36
- package/types/ui/Dialog/Action.d.ts +0 -5
- package/types/ui/Dialog/Close.d.ts +0 -6
- package/types/ui/Dialog/Content.d.ts +0 -6
- package/types/ui/Dialog/Modal.d.ts +0 -9
- package/types/ui/Dialog/Provider.d.ts +0 -11
- package/types/ui/Dialog/Title.d.ts +0 -5
- package/types/ui/Dialog/Trigger.d.ts +0 -6
- package/types/ui/Dialog/context.d.ts +0 -10
- package/types/ui/Dialog/index.d.ts +0 -9
- package/types/ui/Dialog.d.ts +0 -1
- package/types/ui/DragAction.d.ts +0 -24
- package/types/ui/DraggableList.d.ts +0 -31
- package/types/ui/Dropdown.d.ts +0 -14
- package/types/ui/Empty.d.ts +0 -12
- package/types/ui/Field.d.ts +0 -411
- package/types/ui/FontFace.d.ts +0 -6
- package/types/ui/Image.d.ts +0 -49
- package/types/ui/InfiniteScroll.d.ts +0 -10
- package/types/ui/Input.d.ts +0 -95
- package/types/ui/KeyboardAvoiding.d.ts +0 -8
- package/types/ui/Layout/BottomAction.d.ts +0 -6
- package/types/ui/Layout/BottomInset.d.ts +0 -7
- package/types/ui/Layout/BottomTab.d.ts +0 -14
- package/types/ui/Layout/Header.d.ts +0 -8
- package/types/ui/Layout/LeftSider.d.ts +0 -9
- package/types/ui/Layout/Navbar.d.ts +0 -11
- package/types/ui/Layout/RightSider.d.ts +0 -10
- package/types/ui/Layout/Sider.d.ts +0 -7
- package/types/ui/Layout/Template.d.ts +0 -7
- package/types/ui/Layout/TopLeftAction.d.ts +0 -6
- package/types/ui/Layout/Unit.d.ts +0 -9
- package/types/ui/Layout/View.d.ts +0 -8
- package/types/ui/Layout/Zone.d.ts +0 -6
- package/types/ui/Layout/index.d.ts +0 -14
- package/types/ui/Layout.d.ts +0 -1
- package/types/ui/Link/Back.d.ts +0 -7
- package/types/ui/Link/Close.d.ts +0 -7
- package/types/ui/Link/CsrLink.d.ts +0 -2
- package/types/ui/Link/Lang.d.ts +0 -8
- package/types/ui/Link/SsrLink.d.ts +0 -2
- package/types/ui/Link/index.d.ts +0 -10
- package/types/ui/Link/types.d.ts +0 -42
- package/types/ui/Link.d.ts +0 -1
- package/types/ui/Load/Edit.d.ts +0 -4
- package/types/ui/Load/Edit_Client.d.ts +0 -27
- package/types/ui/Load/Page.d.ts +0 -15
- package/types/ui/Load/PageCSR.d.ts +0 -3
- package/types/ui/Load/Pagination.d.ts +0 -8
- package/types/ui/Load/Units.d.ts +0 -30
- package/types/ui/Load/View.d.ts +0 -22
- package/types/ui/Load/index.d.ts +0 -8
- package/types/ui/Load/index_.d.ts +0 -3
- package/types/ui/Load.d.ts +0 -1
- package/types/ui/Loading/Area.d.ts +0 -1
- package/types/ui/Loading/Button.d.ts +0 -7
- package/types/ui/Loading/Input.d.ts +0 -7
- package/types/ui/Loading/ProgressBar.d.ts +0 -6
- package/types/ui/Loading/Skeleton.d.ts +0 -7
- package/types/ui/Loading/Spin.d.ts +0 -7
- package/types/ui/Loading/index.d.ts +0 -8
- package/types/ui/Loading.d.ts +0 -1
- package/types/ui/Menu.d.ts +0 -26
- package/types/ui/Modal.d.ts +0 -19
- package/types/ui/Model/AdminPanel.d.ts +0 -31
- package/types/ui/Model/Edit.d.ts +0 -16
- package/types/ui/Model/EditModal.d.ts +0 -52
- package/types/ui/Model/EditWrapper.d.ts +0 -13
- package/types/ui/Model/LoadInit.d.ts +0 -10
- package/types/ui/Model/New.d.ts +0 -16
- package/types/ui/Model/NewWrapper.d.ts +0 -13
- package/types/ui/Model/NewWrapper_Client.d.ts +0 -13
- package/types/ui/Model/Remove.d.ts +0 -13
- package/types/ui/Model/RemoveWrapper.d.ts +0 -12
- package/types/ui/Model/SureToRemove.d.ts +0 -11
- package/types/ui/Model/View.d.ts +0 -19
- package/types/ui/Model/ViewEditModal.d.ts +0 -12
- package/types/ui/Model/ViewModal.d.ts +0 -14
- package/types/ui/Model/ViewWrapper.d.ts +0 -12
- package/types/ui/Model/index.d.ts +0 -16
- package/types/ui/Model/index_.d.ts +0 -14
- package/types/ui/Model.d.ts +0 -1
- package/types/ui/More.d.ts +0 -12
- package/types/ui/ObjectId.d.ts +0 -5
- package/types/ui/Pagination.d.ts +0 -20
- package/types/ui/Popconfirm.d.ts +0 -28
- package/types/ui/Portal.d.ts +0 -6
- package/types/ui/Radio.d.ts +0 -19
- package/types/ui/RecentTime.d.ts +0 -12
- package/types/ui/Refresh.d.ts +0 -7
- package/types/ui/ScreenNavigator.d.ts +0 -18
- package/types/ui/Select.d.ts +0 -43
- package/types/ui/Signal/Arg.d.ts +0 -78
- package/types/ui/Signal/Doc.d.ts +0 -33
- package/types/ui/Signal/Listener.d.ts +0 -9
- package/types/ui/Signal/Message.d.ts +0 -23
- package/types/ui/Signal/Object.d.ts +0 -20
- package/types/ui/Signal/PubSub.d.ts +0 -24
- package/types/ui/Signal/Request.d.ts +0 -8
- package/types/ui/Signal/Response.d.ts +0 -14
- package/types/ui/Signal/RestApi.d.ts +0 -40
- package/types/ui/Signal/WebSocket.d.ts +0 -11
- package/types/ui/Signal/index.d.ts +0 -18
- package/types/ui/Signal/makeExample.d.ts +0 -4
- package/types/ui/Signal/style.d.ts +0 -15
- package/types/ui/Signal.d.ts +0 -1
- package/types/ui/System/CSR.d.ts +0 -32
- package/types/ui/System/Client.d.ts +0 -47
- package/types/ui/System/Common.d.ts +0 -47
- package/types/ui/System/DevModeToggle.d.ts +0 -1
- package/types/ui/System/Gtag.d.ts +0 -4
- package/types/ui/System/Messages.d.ts +0 -1
- package/types/ui/System/Reconnect.d.ts +0 -1
- package/types/ui/System/Root.d.ts +0 -6
- package/types/ui/System/SSR.d.ts +0 -24
- package/types/ui/System/SelectLanguage.d.ts +0 -5
- package/types/ui/System/ThemeToggle.d.ts +0 -4
- package/types/ui/System/index.d.ts +0 -12
- package/types/ui/System.d.ts +0 -1
- package/types/ui/Tab/Menu.d.ts +0 -12
- package/types/ui/Tab/Menus.d.ts +0 -6
- package/types/ui/Tab/Panel.d.ts +0 -8
- package/types/ui/Tab/Provider.d.ts +0 -10
- package/types/ui/Tab/context.d.ts +0 -9
- package/types/ui/Tab/index.d.ts +0 -7
- package/types/ui/Tab.d.ts +0 -1
- package/types/ui/Table.d.ts +0 -41
- package/types/ui/ToggleSelect.d.ts +0 -33
- package/types/ui/Unauthorized.d.ts +0 -9
- package/types/ui/animated.d.ts +0 -5
- package/types/ui/fontCss.d.ts +0 -11
- package/types/ui/index.d.ts +0 -44
- package/types/ui.d.ts +0 -1
- package/types/webkit/bootCsr.d.ts +0 -16
- package/types/webkit/createRobotPage.d.ts +0 -15
- package/types/webkit/createSitemapPage.d.ts +0 -4
- package/types/webkit/index.d.ts +0 -17
- package/types/webkit/lazy.d.ts +0 -11
- package/types/webkit/types.d.ts +0 -7
- package/types/webkit/useCamera.d.ts +0 -19
- package/types/webkit/useCodepush.d.ts +0 -16
- package/types/webkit/useContact.d.ts +0 -11
- package/types/webkit/useCsrValues.d.ts +0 -30
- package/types/webkit/useDebounce.d.ts +0 -2
- package/types/webkit/useFetch.d.ts +0 -18
- package/types/webkit/useGeoLocation.d.ts +0 -8
- package/types/webkit/useHistory.d.ts +0 -23
- package/types/webkit/useInterval.d.ts +0 -2
- package/types/webkit/useLocation.d.ts +0 -8
- package/types/webkit/usePurchase.d.ts +0 -19
- package/types/webkit/usePushNoti.d.ts +0 -7
- package/types/webkit/useThrottle.d.ts +0 -2
- package/types/webkit.d.ts +0 -1
package/types/ui/Data/Item.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { Dayjs } from "akanjs/base";
|
|
2
|
-
import { type DataAction, type DataColumn } from "akanjs/client";
|
|
3
|
-
import type { SliceMeta } from "akanjs/fetch";
|
|
4
|
-
import type { ReactNode } from "react";
|
|
5
|
-
export declare const convToAntdColumn: (column: DataColumn<any>) => {
|
|
6
|
-
key: string;
|
|
7
|
-
dataIndex: string;
|
|
8
|
-
title: string;
|
|
9
|
-
responsive: readonly ["xs", "sm", "md", "xl"] | undefined;
|
|
10
|
-
render: ((value: any, model: any) => ReactNode) | undefined;
|
|
11
|
-
} | {
|
|
12
|
-
key: string;
|
|
13
|
-
dataIndex: string;
|
|
14
|
-
title: string;
|
|
15
|
-
render: (date: Dayjs) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
responsive?: undefined;
|
|
17
|
-
} | {
|
|
18
|
-
key: string;
|
|
19
|
-
dataIndex: string;
|
|
20
|
-
title: string;
|
|
21
|
-
render: (status: string) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
responsive?: undefined;
|
|
23
|
-
} | {
|
|
24
|
-
key: string;
|
|
25
|
-
dataIndex: string;
|
|
26
|
-
title: string;
|
|
27
|
-
responsive?: undefined;
|
|
28
|
-
render?: undefined;
|
|
29
|
-
};
|
|
30
|
-
interface ItemProps<T extends string, Full extends {
|
|
31
|
-
id: string;
|
|
32
|
-
}, Light extends {
|
|
33
|
-
id: string;
|
|
34
|
-
}> {
|
|
35
|
-
className?: string;
|
|
36
|
-
model: Light;
|
|
37
|
-
slice: SliceMeta;
|
|
38
|
-
onClick?: () => void;
|
|
39
|
-
cover?: ReactNode;
|
|
40
|
-
title?: ReactNode;
|
|
41
|
-
actions?: DataAction[];
|
|
42
|
-
columns?: DataColumn<any>[];
|
|
43
|
-
children?: ReactNode;
|
|
44
|
-
}
|
|
45
|
-
declare function Item<T extends string, Full extends {
|
|
46
|
-
id: string;
|
|
47
|
-
}, Light extends {
|
|
48
|
-
id: string;
|
|
49
|
-
}>({ className, model, slice, onClick, title, actions, columns, children, }: ItemProps<T, Full, Light>): import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
declare namespace Item {
|
|
51
|
-
var StatusTag: ({ status, className }: {
|
|
52
|
-
status: string;
|
|
53
|
-
className?: string;
|
|
54
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
55
|
-
var RoleTags: ({ role }: {
|
|
56
|
-
role: string | string[];
|
|
57
|
-
}) => import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[];
|
|
58
|
-
}
|
|
59
|
-
export default Item;
|
|
60
|
-
interface ActionProps<T extends string, M extends {
|
|
61
|
-
id: string;
|
|
62
|
-
}, L extends {
|
|
63
|
-
id: string;
|
|
64
|
-
}> {
|
|
65
|
-
action: DataAction;
|
|
66
|
-
model: L;
|
|
67
|
-
slice: SliceMeta;
|
|
68
|
-
}
|
|
69
|
-
export declare const Action: <T extends string, M extends {
|
|
70
|
-
id: string;
|
|
71
|
-
}, L extends {
|
|
72
|
-
id: string;
|
|
73
|
-
}>({ action, model, slice, outline, }: ActionProps<T, M, L> & {
|
|
74
|
-
outline?: boolean;
|
|
75
|
-
}) => import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { type DataAction, type DataColumn, type DataTool, type ModelInsightProps, type ModelProps } from "akanjs/client";
|
|
2
|
-
import type { FetchInitForm, SliceMeta } from "akanjs/fetch";
|
|
3
|
-
import { type ReactNode } from "react";
|
|
4
|
-
export interface ListContainerProps<T extends string, State, Input, Full extends {
|
|
5
|
-
id: string;
|
|
6
|
-
}, Light extends {
|
|
7
|
-
id: string;
|
|
8
|
-
}> {
|
|
9
|
-
/** Additional classes for the list container. */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** Additional classes for card-list rendering. */
|
|
12
|
-
cardListClassName?: string;
|
|
13
|
-
/** Render as cards or table/list. */
|
|
14
|
-
type?: "card" | "list";
|
|
15
|
-
/** Static query object passed to the generated init action. */
|
|
16
|
-
query?: Record<string, unknown>;
|
|
17
|
-
/** Initial fetch form/filter values. */
|
|
18
|
-
init?: FetchInitForm<Input, any>;
|
|
19
|
-
/** Generated slice metadata for the target model. */
|
|
20
|
-
slice: SliceMeta;
|
|
21
|
-
/** Show create/new-model controls. */
|
|
22
|
-
create?: boolean;
|
|
23
|
-
/** Optional list title. */
|
|
24
|
-
title?: string;
|
|
25
|
-
/** Initial sort value. */
|
|
26
|
-
sort?: unknown;
|
|
27
|
-
/** Table/list columns. */
|
|
28
|
-
columns?: DataColumn<any>[];
|
|
29
|
-
/** Toolbar actions or a factory receiving the loaded list. */
|
|
30
|
-
tools?: DataTool[] | ((modelList: Light[]) => DataTool[]);
|
|
31
|
-
/** Per-row actions or action factory. */
|
|
32
|
-
actions?: DataAction[] | ((item: Light, idx: number) => DataAction[]);
|
|
33
|
-
renderDashboard?: ({ summary, hidePresents, }: {
|
|
34
|
-
summary: Record<string, unknown>;
|
|
35
|
-
hidePresents?: boolean;
|
|
36
|
-
}) => ReactNode;
|
|
37
|
-
renderItem?: (props: ModelProps<any, any>) => ReactNode;
|
|
38
|
-
renderTemplate?: (props: any) => ReactNode | null;
|
|
39
|
-
renderTitle?: (model: Full) => string | ReactNode;
|
|
40
|
-
renderView?: (model: Full) => ReactNode | null;
|
|
41
|
-
renderQueryMaker?: () => ReactNode;
|
|
42
|
-
renderInsight?: (props: ModelInsightProps) => ReactNode;
|
|
43
|
-
renderLoading?: () => ReactNode;
|
|
44
|
-
}
|
|
45
|
-
export default function ListContainer<T extends string, State, Input, Full extends {
|
|
46
|
-
id: string;
|
|
47
|
-
}, Light extends {
|
|
48
|
-
id: string;
|
|
49
|
-
}>({ className, cardListClassName, type, query, init, create, slice, title, sort, columns, actions, tools, renderDashboard, renderItem, renderTemplate, renderTitle, renderView, renderQueryMaker, renderInsight, renderLoading, }: ListContainerProps<T, State, Input, Full, Light>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SliceMeta } from "akanjs/fetch";
|
|
2
|
-
interface PaginationProps<T extends string> {
|
|
3
|
-
/** Additional classes for the pagination wrapper. */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Generated slice metadata used to read page state and dispatch page changes. */
|
|
6
|
-
slice: SliceMeta;
|
|
7
|
-
}
|
|
8
|
-
export default function Pagination<T extends string>({ className, slice }: PaginationProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type DataAction, type DataColumn } from "akanjs/client";
|
|
2
|
-
import type { FilterInstance } from "akanjs/document";
|
|
3
|
-
import type { FetchInitForm, SliceMeta } from "akanjs/fetch";
|
|
4
|
-
import { type ReactNode } from "react";
|
|
5
|
-
interface TableListProps<T extends string, Input, Full extends {
|
|
6
|
-
id: string;
|
|
7
|
-
}, Light extends {
|
|
8
|
-
id: string;
|
|
9
|
-
}, Filter extends FilterInstance> {
|
|
10
|
-
className?: string;
|
|
11
|
-
queryArgs?: any[];
|
|
12
|
-
init?: FetchInitForm<Input, Filter>;
|
|
13
|
-
slice: SliceMeta;
|
|
14
|
-
columns: DataColumn<any>[];
|
|
15
|
-
renderTemplate?: (props: any) => ReactNode | null;
|
|
16
|
-
renderTitle?: (model: Full) => string | ReactNode;
|
|
17
|
-
renderView?: (model: Full) => ReactNode | null;
|
|
18
|
-
actions?: DataAction[] | ((item: Light, idx: number) => DataAction[]);
|
|
19
|
-
onItemClick?: (item: Light, idx: number) => void;
|
|
20
|
-
}
|
|
21
|
-
export default function TableList<T extends string, Input, Full extends {
|
|
22
|
-
id: string;
|
|
23
|
-
}, Light extends {
|
|
24
|
-
id: string;
|
|
25
|
-
}, Filter extends FilterInstance>({ className, init, queryArgs, slice, columns, actions, renderTemplate, renderTitle, renderView, onItemClick, }: TableListProps<T, Input, Full, Light, Filter>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export {};
|
package/types/ui/Data/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const Data: {
|
|
2
|
-
CardList: typeof import("./CardList.d.ts").default;
|
|
3
|
-
Dashboard: typeof import("./Dashboard.d.ts").default;
|
|
4
|
-
Insight: typeof import("./Insight.d.ts").default;
|
|
5
|
-
Item: typeof import("./Item.d.ts").default;
|
|
6
|
-
ListContainer: typeof import("./ListContainer.d.ts").default;
|
|
7
|
-
Pagination: typeof import("./Pagination.d.ts").default;
|
|
8
|
-
TableList: typeof import("./TableList.d.ts").default;
|
|
9
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const CardList: typeof import("./CardList.d.ts").default;
|
|
2
|
-
export declare const Dashboard: typeof import("./Dashboard.d.ts").default;
|
|
3
|
-
export declare const Insight: typeof import("./Insight.d.ts").default;
|
|
4
|
-
export declare const Item: typeof import("./Item.d.ts").default;
|
|
5
|
-
export declare const ListContainer: typeof import("./ListContainer.d.ts").default;
|
|
6
|
-
export declare const Pagination: typeof import("./Pagination.d.ts").default;
|
|
7
|
-
export declare const TableList: typeof import("./TableList.d.ts").default;
|
|
8
|
-
export declare const QueryMaker: typeof import("./QueryMaker.d.ts").default;
|
package/types/ui/Data.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Data/index.d.ts";
|
package/types/ui/DatePicker.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type Dayjs } from "akanjs/base";
|
|
2
|
-
interface DatePickerProps {
|
|
3
|
-
value?: Dayjs | null;
|
|
4
|
-
onChange: (value: Dayjs | null) => void;
|
|
5
|
-
showTime?: boolean;
|
|
6
|
-
format?: string;
|
|
7
|
-
timeIntervals?: number;
|
|
8
|
-
disabledDate?: (date: Dayjs) => boolean | null | undefined;
|
|
9
|
-
className?: string;
|
|
10
|
-
placement?: "top" | "bottom" | "left" | "right";
|
|
11
|
-
defaultValue?: Dayjs;
|
|
12
|
-
}
|
|
13
|
-
export declare const DatePicker: {
|
|
14
|
-
({ value, onChange, showTime, format, timeIntervals, disabledDate, placement, className, defaultValue, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
RangePicker: ({ value, onChange, format, showTime, timeIntervals, disabledDate, className, }: RangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
TimePicker: ({ disabled, className, value, format, onChange, timeIntervals, }: TimePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
};
|
|
18
|
-
interface RangePickerProps {
|
|
19
|
-
value: [Dayjs | null, Dayjs | null];
|
|
20
|
-
onChange: (value: [Dayjs | null, Dayjs | null]) => void;
|
|
21
|
-
format?: string;
|
|
22
|
-
showTime?: boolean;
|
|
23
|
-
timeIntervals?: number;
|
|
24
|
-
disabledDate?: (date: Dayjs) => boolean | null | undefined;
|
|
25
|
-
className?: string;
|
|
26
|
-
}
|
|
27
|
-
interface TimePickerProps {
|
|
28
|
-
value: Dayjs | null;
|
|
29
|
-
onChange: (value: Dayjs) => void;
|
|
30
|
-
format?: string;
|
|
31
|
-
timeIntervals?: number;
|
|
32
|
-
disabledDate?: (date: Dayjs) => boolean | null | undefined;
|
|
33
|
-
className?: string;
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
}
|
|
36
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export interface ModalProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
bodyClassName?: string;
|
|
5
|
-
confirmClose?: boolean;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
onCancel?: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const Modal: ({ className, bodyClassName, confirmClose, children, onCancel }: ModalProps) => import("react").ReactPortal | null;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export interface ProviderProps {
|
|
3
|
-
/** Additional classes for the dialog root wrapper. */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Controlled open state. */
|
|
6
|
-
open?: boolean;
|
|
7
|
-
/** Initial open state for uncontrolled usage. */
|
|
8
|
-
defaultOpen?: boolean;
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare const Provider: ({ className, defaultOpen, open, children }: ProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export interface DialogContextType {
|
|
3
|
-
open: boolean;
|
|
4
|
-
setOpen: (open: boolean) => void;
|
|
5
|
-
title: ReactNode;
|
|
6
|
-
setTitle: (title: ReactNode) => void;
|
|
7
|
-
action: ReactNode;
|
|
8
|
-
setAction: (action: ReactNode) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const DialogContext: import("react").Context<DialogContextType>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ProviderProps } from "./Provider.d.ts";
|
|
2
|
-
export declare const Dialog: {
|
|
3
|
-
({ children, ...props }: ProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
Modal: ({ className, bodyClassName, confirmClose, children, onCancel }: import("./Modal.d.ts").ModalProps) => import("react").ReactPortal | null;
|
|
5
|
-
Title: ({ children }: import("./Title.d.ts").TitleProps) => null;
|
|
6
|
-
Action: ({ children }: import("./Action.d.ts").ActionProps) => null;
|
|
7
|
-
Trigger: ({ className, children }: import("./Trigger.d.ts").TriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
Content: ({ className, children }: import("./Content.d.ts").ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
};
|
package/types/ui/Dialog.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Dialog/index.d.ts";
|
package/types/ui/DragAction.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
interface DragActionProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
onLeft?: () => void;
|
|
7
|
-
onRight?: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const DragAction: {
|
|
10
|
-
({ className, children, onClick, onLeft, onRight }: DragActionProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
Body: ({ children }: BodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
Left: ({ children }: LeftProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
Right: ({ children }: RightProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
};
|
|
15
|
-
interface BodyProps {
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
}
|
|
18
|
-
interface LeftProps {
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}
|
|
21
|
-
interface RightProps {
|
|
22
|
-
children: ReactNode;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
-
interface DragListProps<V> {
|
|
3
|
-
className?: string;
|
|
4
|
-
mode?: "horizontal" | "vertical";
|
|
5
|
-
children: ReactElement[];
|
|
6
|
-
onChange: (value: V[], draggedValue: V, info: {
|
|
7
|
-
originalIdx: number;
|
|
8
|
-
newIdx: number;
|
|
9
|
-
idxChanged: boolean;
|
|
10
|
-
}) => void;
|
|
11
|
-
onRemove: (value: V, idx: number) => void;
|
|
12
|
-
}
|
|
13
|
-
interface Cursor {
|
|
14
|
-
className?: string;
|
|
15
|
-
children: any;
|
|
16
|
-
}
|
|
17
|
-
interface ItemProps {
|
|
18
|
-
value: any;
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
className?: string;
|
|
21
|
-
cursorClassName?: string;
|
|
22
|
-
cursor?: boolean;
|
|
23
|
-
removable?: boolean;
|
|
24
|
-
removeClassName?: string;
|
|
25
|
-
}
|
|
26
|
-
export declare const DraggableList: {
|
|
27
|
-
<V>({ className, mode, children, onChange, onRemove }: DragListProps<V>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
Cursor({ className, children }: Cursor): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
Item: ({ value, children, className, cursorClassName, cursor, removable, removeClassName, }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
};
|
|
31
|
-
export {};
|
package/types/ui/Dropdown.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export interface DropdownProps {
|
|
3
|
-
/** Button/trigger content. */
|
|
4
|
-
value: ReactNode;
|
|
5
|
-
/** Dropdown menu content. */
|
|
6
|
-
content: ReactNode;
|
|
7
|
-
/** Additional classes for the dropdown wrapper. */
|
|
8
|
-
className?: string;
|
|
9
|
-
/** Additional classes for the trigger button. */
|
|
10
|
-
buttonClassName?: string;
|
|
11
|
-
/** Additional classes for the dropdown content panel. */
|
|
12
|
-
dropdownClassName?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const Dropdown: ({ value, content, className, buttonClassName, dropdownClassName }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
|
package/types/ui/Empty.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
export interface EmptyProps {
|
|
3
|
-
/** Additional classes for the empty-state body. */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Custom description. Defaults to the localized base.noData label. */
|
|
6
|
-
description?: ReactNode;
|
|
7
|
-
/** Optional content rendered below the empty-state body. */
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
/** Minimum empty-state height in pixels. */
|
|
10
|
-
minHeight?: number;
|
|
11
|
-
}
|
|
12
|
-
export declare const Empty: ({ className, description, children, minHeight }: EmptyProps) => import("react/jsx-runtime").JSX.Element;
|