akanjs 2.2.4 → 2.2.6
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/CHANGELOG.md +9 -0
- package/base/base.ts +1 -1
- package/base/primitiveRegistry.ts +6 -10
- package/base/types.ts +1 -4
- package/capacitor.base.config.ts +1 -1
- package/client/capacitor.ts +1 -1
- package/client/cookie.ts +2 -4
- package/client/createFont.ts +2 -2
- package/client/csrTypes.ts +2 -8
- package/client/makePageProto.tsx +4 -10
- package/client/router.ts +3 -8
- package/client/translator.ts +4 -12
- package/common/Logger.ts +1 -4
- package/common/formatNumber.ts +2 -5
- package/common/hmrPhase.ts +1 -1
- package/common/isValidDate.ts +0 -3
- package/constant/fieldInfo.ts +3 -3
- package/constant/purify.ts +1 -2
- package/constant/types.ts +0 -4
- package/constant/via.ts +6 -12
- package/document/databaseRegistry.ts +0 -8
- package/document/into.ts +0 -1
- package/fetch/client/fetchClient.ts +1 -6
- package/fetch/client/httpClient.ts +1 -2
- package/fetch/fetchType/appliedReturn.type.ts +0 -1
- package/fetch/fetchType/endpointFetch.type.ts +0 -3
- package/fetch/fetchType/sliceFetch.type.ts +0 -8
- package/fetch/requestStorage.ts +2 -10
- package/package.json +67 -24
- package/server/akanApp.ts +2 -5
- package/server/akanLib.ts +0 -1
- package/server/akanServer.ts +3 -4
- package/server/artifact/builderRpc.ts +2 -2
- package/server/artifact/ipcTypes.ts +0 -4
- package/server/decorators.ts +1 -1
- package/server/di/diLifecycle.ts +3 -6
- package/server/hmr/clientScript.ts +2 -20
- package/server/hmr/devHmrController.ts +0 -4
- package/server/processMetricsCollector.ts +1 -1
- package/server/resolver/database.resolver.ts +2 -2
- package/server/resolver/resolver.contract.fixture.ts +0 -1
- package/server/resolver/signal.resolver.ts +2 -10
- package/server/routing/apiRouter.ts +2 -4
- package/server/rscClient.tsx +1 -7
- package/server/rscWorkerHost.ts +11 -33
- package/server/ssrFromRscRenderer.tsx +3 -35
- package/server/types/react-server-dom-webpack.d.ts +1 -7
- package/server/vendor/react-dom-client.ts +1 -1
- package/server/vendor/react-dom.ts +2 -3
- 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 +2 -9
- package/server/vendor/scheduler.ts +2 -3
- package/server/webRouter.ts +2 -3
- package/service/adapt.ts +1 -5
- package/service/predefinedAdaptor/cache.adaptor.ts +1 -2
- package/service/predefinedAdaptor/database.adaptor.ts +2 -2
- package/service/predefinedAdaptor/solidSqlite.ts +1 -2
- package/service/predefinedAdaptor/websocket.adaptor.ts +3 -15
- package/service/serve.ts +3 -7
- package/signal/base.signal.ts +0 -1
- package/signal/endpointInfo.ts +0 -7
- package/signal/intercept.ts +0 -2
- package/signal/middleware.ts +1 -2
- package/signal/serverSignal.ts +1 -15
- package/signal/signalContext.ts +1 -1
- package/signal/signalRegistry.ts +0 -5
- package/signal/sliceInfo.ts +0 -3
- package/signal/trace.ts +0 -11
- package/signal/types.ts +2 -11
- package/store/action.ts +3 -5
- package/store/stateBuilder.ts +0 -2
- package/store/stateInfo.ts +1 -2
- package/store/types.ts +1 -1
- package/test/playwright.config.base.ts +5 -28
- package/test/playwright.pageAgent.ts +1 -1
- package/test/sampleOf.ts +1 -1
- package/test/testServer.ts +1 -1
- package/types/base/base.d.ts +53 -0
- package/types/base/baseEnv.d.ts +68 -0
- package/types/base/index.d.ts +6 -0
- package/types/base/primitiveRegistry.d.ts +134 -0
- package/types/base/symbols.d.ts +11 -0
- package/types/base/types.d.ts +68 -0
- package/types/base/utils.d.ts +4 -0
- package/types/base.d.ts +1 -0
- package/types/capacitor.base.config.d.ts +3 -0
- package/types/client/capacitor.d.ts +233 -0
- package/types/client/clientRuntime.d.ts +63 -0
- package/types/client/cookie.d.ts +33 -0
- package/types/client/createFont.d.ts +6 -0
- package/types/client/csrTypes.d.ts +262 -0
- package/types/client/decorators.d.ts +7 -0
- package/types/client/device.d.ts +41 -0
- package/types/client/fetch.d.ts +1 -0
- package/types/client/index.d.ts +14 -0
- package/types/client/locale.d.ts +5 -0
- package/types/client/makePageProto.d.ts +17002 -0
- package/types/client/router.d.ts +66 -0
- package/types/client/rscNavigation.d.ts +19 -0
- package/types/client/storage.d.ts +5 -0
- package/types/client/translator.d.ts +18 -0
- package/types/client/types.d.ts +145 -0
- package/types/client/useClient.d.ts +1 -0
- package/types/client.d.ts +1 -0
- package/types/common/Logger.d.ts +41 -0
- package/types/common/applyMixins.d.ts +3 -0
- package/types/common/capitalize.d.ts +2 -0
- package/types/common/deepObjectify.d.ts +4 -0
- package/types/common/fileUpload.d.ts +28 -0
- package/types/common/formatNumber.d.ts +1 -0
- package/types/common/formatPhone.d.ts +2 -0
- package/types/common/getAllPropertyDescriptors.d.ts +5 -0
- package/types/common/hmrPhase.d.ts +6 -0
- package/types/common/httpClient.d.ts +20 -0
- package/types/common/index.d.ts +29 -0
- package/types/common/isDayjs.d.ts +2 -0
- package/types/common/isEmail.d.ts +2 -0
- package/types/common/isPhoneNumber.d.ts +2 -0
- package/types/common/isQueryEqual.d.ts +1 -0
- package/types/common/isValidDate.d.ts +2 -0
- package/types/common/jwtDecode.d.ts +2 -0
- package/types/common/localeConfig.d.ts +11 -0
- package/types/common/lowerlize.d.ts +2 -0
- package/types/common/mergeVersion.d.ts +10 -0
- package/types/common/objectify.d.ts +1 -0
- package/types/common/pathGet.d.ts +1 -0
- package/types/common/pathSet.d.ts +3 -0
- package/types/common/randomPick.d.ts +1 -0
- package/types/common/randomPicks.d.ts +1 -0
- package/types/common/routeConvention.d.ts +35 -0
- package/types/common/sleep.d.ts +2 -0
- package/types/common/splitVersion.d.ts +11 -0
- package/types/common/subRoute.d.ts +7 -0
- package/types/common/types.d.ts +14 -0
- package/types/common.d.ts +1 -0
- package/types/constant/constantRegistry.d.ts +89 -0
- package/types/constant/crystalize.d.ts +4 -0
- package/types/constant/deserialize.d.ts +7 -0
- package/types/constant/fieldInfo.d.ts +153 -0
- package/types/constant/getDefault.d.ts +3 -0
- package/types/constant/immerify.d.ts +2 -0
- package/types/constant/index.d.ts +10 -0
- package/types/constant/purify.d.ts +12 -0
- package/types/constant/serialize.d.ts +11 -0
- package/types/constant/types.d.ts +77 -0
- package/types/constant/via.d.ts +52 -0
- package/types/constant.d.ts +1 -0
- package/types/dictionary/base.dictionary.d.ts +1 -0
- package/types/dictionary/dictInfo.d.ts +206 -0
- package/types/dictionary/dictionary.d.ts +11 -0
- package/types/dictionary/index.d.ts +4 -0
- package/types/dictionary/locale.d.ts +128 -0
- package/types/dictionary/trans.d.ts +82 -0
- package/types/dictionary.d.ts +1 -0
- package/types/document/by.d.ts +20 -0
- package/types/document/dataLoader.d.ts +36 -0
- package/types/document/database.d.ts +96 -0
- package/types/document/databaseRegistry.d.ts +36 -0
- package/types/document/documentQuery.d.ts +105 -0
- package/types/document/documentSchema.d.ts +33 -0
- package/types/document/filterMeta.d.ts +84 -0
- package/types/document/index.d.ts +11 -0
- package/types/document/into.d.ts +65 -0
- package/types/document/loaderInfo.d.ts +35 -0
- package/types/document/schema.d.ts +5 -0
- package/types/document/types.d.ts +36 -0
- package/types/document.d.ts +1 -0
- package/types/fetch/client/fetchClient.d.ts +78 -0
- package/types/fetch/client/httpClient.d.ts +39 -0
- package/types/fetch/client/index.d.ts +3 -0
- package/types/fetch/client/wsClient.d.ts +37 -0
- package/types/fetch/client.d.ts +1 -0
- package/types/fetch/fetchType/appliedReturn.type.d.ts +67 -0
- package/types/fetch/fetchType/buildFetch.type.d.ts +11 -0
- package/types/fetch/fetchType/clientSignal.type.d.ts +16 -0
- package/types/fetch/fetchType/endpointFetch.type.d.ts +29 -0
- package/types/fetch/fetchType/index.d.ts +5 -0
- package/types/fetch/fetchType/sliceFetch.type.d.ts +76 -0
- package/types/fetch/fetchType.d.ts +1 -0
- package/types/fetch/index.d.ts +4 -0
- package/types/fetch/requestStorage.d.ts +29 -0
- package/types/fetch/serializer/fetch.serializer.d.ts +14 -0
- package/types/fetch/serializer/index.d.ts +1 -0
- package/types/fetch/serializer.d.ts +1 -0
- package/types/fetch/types.d.ts +19 -0
- package/types/fetch.d.ts +1 -0
- package/types/index.d.ts +213 -0
- package/types/server/akanApp.d.ts +17 -0
- package/types/server/akanAppHeaders.d.ts +1 -0
- package/types/server/akanLib.d.ts +33 -0
- package/types/server/akanOption.d.ts +15 -0
- package/types/server/akanServer.d.ts +47 -0
- package/types/server/artifact/builderRpc.d.ts +42 -0
- package/types/server/artifact/index.d.ts +6 -0
- package/types/server/artifact/ipcTypes.d.ts +73 -0
- package/types/server/artifact/manifestTypes.d.ts +16 -0
- package/types/server/artifact/routeClientCache.d.ts +45 -0
- package/types/server/artifact/routeSeedIndexStore.d.ts +43 -0
- package/types/server/artifact/routesManifestStore.d.ts +16 -0
- package/types/server/artifact.d.ts +1 -0
- package/types/server/decorators.d.ts +6 -0
- package/types/server/di/diLifecycle.d.ts +45 -0
- package/types/server/di/index.d.ts +4 -0
- package/types/server/di/predefinedAdaptor.d.ts +33 -0
- package/types/server/di/resolveAdaptorHierarchy.d.ts +21 -0
- package/types/server/di/resolveHierarchy.d.ts +11 -0
- package/types/server/di/resolveServiceHierarchy.d.ts +13 -0
- package/types/server/di/utils.d.ts +14 -0
- package/types/server/di.d.ts +1 -0
- package/types/server/hmr/changeBatch.d.ts +13 -0
- package/types/server/hmr/clientScript.d.ts +1 -0
- package/types/server/hmr/devHmrController.d.ts +24 -0
- package/types/server/hmr/index.d.ts +4 -0
- package/types/server/hmr/wsHub.d.ts +45 -0
- package/types/server/hmr.d.ts +1 -0
- package/types/server/imageOptimizer.d.ts +12 -0
- package/types/server/imageOptimizerError.d.ts +4 -0
- package/types/server/index.d.ts +14 -0
- package/types/server/lifecycle/shutdownManager.d.ts +13 -0
- package/types/server/logging/rotatingLogWriter.d.ts +20 -0
- package/types/server/processMetricsCollector.d.ts +10 -0
- package/types/server/proxy/akanResponse.d.ts +7 -0
- package/types/server/proxy/bunRequestFields.d.ts +1 -0
- package/types/server/proxy/hostBasePathWebProxy.d.ts +6 -0
- package/types/server/proxy/index.d.ts +6 -0
- package/types/server/proxy/localeWebProxy.d.ts +5 -0
- package/types/server/proxy/types.d.ts +37 -0
- package/types/server/proxy/webProxyRunner.d.ts +7 -0
- package/types/server/proxy.d.ts +1 -0
- package/types/server/resolver/database.resolver.d.ts +6 -0
- package/types/server/resolver/index.d.ts +3 -0
- package/types/server/resolver/service.resolver.d.ts +7 -0
- package/types/server/resolver/signal.resolver.d.ts +29 -0
- package/types/server/resolver.d.ts +1 -0
- package/types/server/robots.d.ts +1 -0
- package/types/server/routeElementComposer.d.ts +41 -0
- package/types/server/routeTreeBuilder.d.ts +28 -0
- package/types/server/routing/apiRouter.d.ts +61 -0
- package/types/server/rscClient.d.ts +15 -0
- package/types/server/rscWorker.d.ts +3 -0
- package/types/server/rscWorkerHost.d.ts +83 -0
- package/types/server/sitemap.d.ts +13 -0
- package/types/server/ssrFromRscRenderer.d.ts +6 -0
- package/types/server/ssrTypes.d.ts +47 -0
- package/types/server/systemPages.d.ts +27 -0
- package/types/server/types/react-server-dom-webpack.d.ts +91 -0
- package/types/server/types.d.ts +67 -0
- package/types/server/vendor/akanjs-base.d.ts +1 -0
- package/types/server/vendor/akanjs-common.d.ts +1 -0
- package/types/server/vendor/akanjs-constant.d.ts +1 -0
- package/types/server/vendor/akanjs-store.d.ts +1 -0
- package/types/server/vendor/react-dom-client.d.ts +3 -0
- package/types/server/vendor/react-dom.d.ts +3 -0
- package/types/server/vendor/react-jsx-dev-runtime.d.ts +3 -0
- package/types/server/vendor/react-jsx-runtime.d.ts +3 -0
- package/types/server/vendor/react-refresh-runtime.d.ts +3 -0
- package/types/server/vendor/react-server-dom-webpack-client-browser.d.ts +3 -0
- package/types/server/vendor/react.d.ts +11 -0
- package/types/server/vendor/scheduler.d.ts +3 -0
- package/types/server/webRouter.d.ts +44 -0
- package/types/server.d.ts +1 -0
- package/types/service/adapt.d.ts +15 -0
- package/types/service/base.service.d.ts +18 -0
- package/types/service/index.d.ts +10 -0
- package/types/service/injectInfo.d.ts +102 -0
- package/types/service/ipcTypes.d.ts +194 -0
- package/types/service/predefinedAdaptor/cache.adaptor.d.ts +46 -0
- package/types/service/predefinedAdaptor/compress.adaptor.d.ts +22 -0
- package/types/service/predefinedAdaptor/database.adaptor.d.ts +329 -0
- package/types/service/predefinedAdaptor/index.d.ts +13 -0
- package/types/service/predefinedAdaptor/logging.adaptor.d.ts +20 -0
- package/types/service/predefinedAdaptor/queue.adaptor.d.ts +22 -0
- package/types/service/predefinedAdaptor/role.adaptor.d.ts +17 -0
- package/types/service/predefinedAdaptor/schedule.adaptor.d.ts +60 -0
- package/types/service/predefinedAdaptor/solidCache.adaptor.d.ts +25 -0
- package/types/service/predefinedAdaptor/solidPubsub.adaptor.d.ts +20 -0
- package/types/service/predefinedAdaptor/solidQueue.adaptor.d.ts +19 -0
- package/types/service/predefinedAdaptor/solidSqlite.d.ts +24 -0
- package/types/service/predefinedAdaptor/sqlitePath.d.ts +9 -0
- package/types/service/predefinedAdaptor/storage.adaptor.d.ts +80 -0
- package/types/service/predefinedAdaptor/websocket.adaptor.d.ts +49 -0
- package/types/service/predefinedAdaptor.d.ts +1 -0
- package/types/service/serve.d.ts +31 -0
- package/types/service/serviceModule.d.ts +50 -0
- package/types/service/serviceRegistry.d.ts +9 -0
- package/types/service/types.d.ts +55 -0
- package/types/service.d.ts +1 -0
- package/types/signal/base.signal.d.ts +41 -0
- package/types/signal/endpoint.d.ts +28 -0
- package/types/signal/endpointInfo.d.ts +77 -0
- package/types/signal/exception.d.ts +54786 -0
- package/types/signal/guard.d.ts +10 -0
- package/types/signal/guards.d.ts +10 -0
- package/types/signal/index.d.ts +19 -0
- package/types/signal/intercept.d.ts +17 -0
- package/types/signal/internal.d.ts +18 -0
- package/types/signal/internalArg.d.ts +31 -0
- package/types/signal/internalInfo.d.ts +45 -0
- package/types/signal/middleware.d.ts +51 -0
- package/types/signal/serializer/fetch.serializer.d.ts +14 -0
- package/types/signal/serializer/index.d.ts +1 -0
- package/types/signal/serializer.d.ts +1 -0
- package/types/signal/serverSignal.d.ts +36 -0
- package/types/signal/signalContext.d.ts +96 -0
- package/types/signal/signalRegistry.d.ts +49 -0
- package/types/signal/slice.d.ts +42 -0
- package/types/signal/sliceInfo.d.ts +51 -0
- package/types/signal/trace.d.ts +97 -0
- package/types/signal/types.d.ts +142 -0
- package/types/signal.d.ts +1 -0
- package/types/store/action.d.ts +145 -0
- package/types/store/baseSt.d.ts +412 -0
- package/types/store/hooks.d.ts +1 -0
- package/types/store/index.d.ts +8 -0
- package/types/store/rootStore.d.ts +22 -0
- package/types/store/state.d.ts +91 -0
- package/types/store/stateBuilder.d.ts +141 -0
- package/types/store/stateInfo.d.ts +23 -0
- package/types/store/store.d.ts +36 -0
- package/types/store/storeInstance.d.ts +38 -0
- package/types/store/storeRegistry.d.ts +13 -0
- package/types/store/types.d.ts +42 -0
- package/types/store/withSelector.d.ts +42 -0
- package/types/store.d.ts +1 -0
- package/types/test/index.d.ts +4 -0
- package/types/test/playwright.config.base.d.ts +9 -0
- package/types/test/playwright.pageAgent.d.ts +12 -0
- package/types/test/sample.d.ts +15 -0
- package/types/test/sampleOf.d.ts +5 -0
- package/types/test/signalTest.preload.d.ts +1 -0
- package/types/test/signalTestRuntime.d.ts +29 -0
- package/types/test/testServer.d.ts +26 -0
- package/types/test.d.ts +1 -0
- package/types/ui/BottomSheet.d.ts +13 -0
- package/types/ui/Button.d.ts +11 -0
- package/types/ui/ClientSide.d.ts +8 -0
- package/types/ui/Clipboard.d.ts +7 -0
- package/types/ui/Constant/Doc.d.ts +29 -0
- package/types/ui/Constant/Mermaid.d.ts +8 -0
- package/types/ui/Constant/index.d.ts +6 -0
- package/types/ui/Constant/schemaDoc.d.ts +84 -0
- package/types/ui/Constant.d.ts +1 -0
- package/types/ui/Copy.d.ts +10 -0
- package/types/ui/CsrImage.d.ts +18 -0
- package/types/ui/Data/CardList.d.ts +36 -0
- package/types/ui/Data/Dashboard.d.ts +11 -0
- package/types/ui/Data/Insight.d.ts +9 -0
- package/types/ui/Data/Item.d.ts +75 -0
- package/types/ui/Data/ListContainer.d.ts +49 -0
- package/types/ui/Data/Pagination.d.ts +9 -0
- package/types/ui/Data/QueryMaker.d.ts +8 -0
- package/types/ui/Data/TableList.d.ts +26 -0
- package/types/ui/Data/index.d.ts +9 -0
- package/types/ui/Data/index_.d.ts +8 -0
- package/types/ui/Data.d.ts +1 -0
- package/types/ui/DatePicker.d.ts +36 -0
- package/types/ui/Dialog/Action.d.ts +5 -0
- package/types/ui/Dialog/Close.d.ts +6 -0
- package/types/ui/Dialog/Content.d.ts +6 -0
- package/types/ui/Dialog/Modal.d.ts +9 -0
- package/types/ui/Dialog/Provider.d.ts +11 -0
- package/types/ui/Dialog/Title.d.ts +5 -0
- package/types/ui/Dialog/Trigger.d.ts +6 -0
- package/types/ui/Dialog/context.d.ts +10 -0
- package/types/ui/Dialog/index.d.ts +9 -0
- package/types/ui/Dialog.d.ts +1 -0
- package/types/ui/DragAction.d.ts +24 -0
- package/types/ui/DraggableList.d.ts +31 -0
- package/types/ui/Dropdown.d.ts +14 -0
- package/types/ui/Empty.d.ts +12 -0
- package/types/ui/Field.d.ts +411 -0
- package/types/ui/FontFace.d.ts +6 -0
- package/types/ui/Image.d.ts +49 -0
- package/types/ui/InfiniteScroll.d.ts +10 -0
- package/types/ui/Input.d.ts +95 -0
- package/types/ui/KeyboardAvoiding.d.ts +8 -0
- package/types/ui/Layout/BottomAction.d.ts +6 -0
- package/types/ui/Layout/BottomInset.d.ts +7 -0
- package/types/ui/Layout/BottomTab.d.ts +14 -0
- package/types/ui/Layout/Header.d.ts +8 -0
- package/types/ui/Layout/LeftSider.d.ts +9 -0
- package/types/ui/Layout/Navbar.d.ts +11 -0
- package/types/ui/Layout/RightSider.d.ts +10 -0
- package/types/ui/Layout/Sider.d.ts +7 -0
- package/types/ui/Layout/Template.d.ts +7 -0
- package/types/ui/Layout/TopLeftAction.d.ts +6 -0
- package/types/ui/Layout/Unit.d.ts +9 -0
- package/types/ui/Layout/View.d.ts +8 -0
- package/types/ui/Layout/Zone.d.ts +6 -0
- package/types/ui/Layout/index.d.ts +14 -0
- package/types/ui/Layout.d.ts +1 -0
- package/types/ui/Link/Back.d.ts +7 -0
- package/types/ui/Link/Close.d.ts +7 -0
- package/types/ui/Link/CsrLink.d.ts +2 -0
- package/types/ui/Link/Lang.d.ts +8 -0
- package/types/ui/Link/SsrLink.d.ts +2 -0
- package/types/ui/Link/index.d.ts +10 -0
- package/types/ui/Link/types.d.ts +42 -0
- package/types/ui/Link.d.ts +1 -0
- package/types/ui/Load/Edit.d.ts +4 -0
- package/types/ui/Load/Edit_Client.d.ts +27 -0
- package/types/ui/Load/Page.d.ts +15 -0
- package/types/ui/Load/PageCSR.d.ts +3 -0
- package/types/ui/Load/Pagination.d.ts +8 -0
- package/types/ui/Load/Units.d.ts +30 -0
- package/types/ui/Load/View.d.ts +22 -0
- package/types/ui/Load/index.d.ts +8 -0
- package/types/ui/Load/index_.d.ts +3 -0
- package/types/ui/Load.d.ts +1 -0
- package/types/ui/Loading/Area.d.ts +1 -0
- package/types/ui/Loading/Button.d.ts +7 -0
- package/types/ui/Loading/Input.d.ts +7 -0
- package/types/ui/Loading/ProgressBar.d.ts +6 -0
- package/types/ui/Loading/Skeleton.d.ts +7 -0
- package/types/ui/Loading/Spin.d.ts +7 -0
- package/types/ui/Loading/index.d.ts +8 -0
- package/types/ui/Loading.d.ts +1 -0
- package/types/ui/Menu.d.ts +26 -0
- package/types/ui/Modal.d.ts +19 -0
- package/types/ui/Model/AdminPanel.d.ts +31 -0
- package/types/ui/Model/Edit.d.ts +16 -0
- package/types/ui/Model/EditModal.d.ts +52 -0
- package/types/ui/Model/EditWrapper.d.ts +13 -0
- package/types/ui/Model/LoadInit.d.ts +10 -0
- package/types/ui/Model/New.d.ts +16 -0
- package/types/ui/Model/NewWrapper.d.ts +13 -0
- package/types/ui/Model/NewWrapper_Client.d.ts +13 -0
- package/types/ui/Model/Remove.d.ts +13 -0
- package/types/ui/Model/RemoveWrapper.d.ts +12 -0
- package/types/ui/Model/SureToRemove.d.ts +11 -0
- package/types/ui/Model/View.d.ts +19 -0
- package/types/ui/Model/ViewEditModal.d.ts +12 -0
- package/types/ui/Model/ViewModal.d.ts +14 -0
- package/types/ui/Model/ViewWrapper.d.ts +12 -0
- package/types/ui/Model/index.d.ts +16 -0
- package/types/ui/Model/index_.d.ts +14 -0
- package/types/ui/Model.d.ts +1 -0
- package/types/ui/More.d.ts +12 -0
- package/types/ui/ObjectId.d.ts +5 -0
- package/types/ui/Pagination.d.ts +20 -0
- package/types/ui/Popconfirm.d.ts +28 -0
- package/types/ui/Portal.d.ts +6 -0
- package/types/ui/Radio.d.ts +19 -0
- package/types/ui/RecentTime.d.ts +12 -0
- package/types/ui/Refresh.d.ts +7 -0
- package/types/ui/ScreenNavigator.d.ts +18 -0
- package/types/ui/Select.d.ts +43 -0
- package/types/ui/Signal/Arg.d.ts +78 -0
- package/types/ui/Signal/Doc.d.ts +33 -0
- package/types/ui/Signal/Listener.d.ts +9 -0
- package/types/ui/Signal/Message.d.ts +23 -0
- package/types/ui/Signal/Object.d.ts +20 -0
- package/types/ui/Signal/PubSub.d.ts +24 -0
- package/types/ui/Signal/Request.d.ts +8 -0
- package/types/ui/Signal/Response.d.ts +14 -0
- package/types/ui/Signal/RestApi.d.ts +40 -0
- package/types/ui/Signal/WebSocket.d.ts +11 -0
- package/types/ui/Signal/index.d.ts +18 -0
- package/types/ui/Signal/makeExample.d.ts +4 -0
- package/types/ui/Signal/style.d.ts +15 -0
- package/types/ui/Signal.d.ts +1 -0
- package/types/ui/System/CSR.d.ts +32 -0
- package/types/ui/System/Client.d.ts +47 -0
- package/types/ui/System/Common.d.ts +47 -0
- package/types/ui/System/DevModeToggle.d.ts +1 -0
- package/types/ui/System/Gtag.d.ts +4 -0
- package/types/ui/System/Messages.d.ts +1 -0
- package/types/ui/System/Reconnect.d.ts +1 -0
- package/types/ui/System/Root.d.ts +6 -0
- package/types/ui/System/SSR.d.ts +24 -0
- package/types/ui/System/SelectLanguage.d.ts +5 -0
- package/types/ui/System/ThemeToggle.d.ts +4 -0
- package/types/ui/System/index.d.ts +12 -0
- package/types/ui/System.d.ts +1 -0
- package/types/ui/Tab/Menu.d.ts +12 -0
- package/types/ui/Tab/Menus.d.ts +6 -0
- package/types/ui/Tab/Panel.d.ts +8 -0
- package/types/ui/Tab/Provider.d.ts +10 -0
- package/types/ui/Tab/context.d.ts +9 -0
- package/types/ui/Tab/index.d.ts +7 -0
- package/types/ui/Tab.d.ts +1 -0
- package/types/ui/Table.d.ts +41 -0
- package/types/ui/ToggleSelect.d.ts +33 -0
- package/types/ui/Unauthorized.d.ts +9 -0
- package/types/ui/animated.d.ts +5 -0
- package/types/ui/fontCss.d.ts +11 -0
- package/types/ui/index.d.ts +44 -0
- package/types/ui.d.ts +1 -0
- package/types/webkit/bootCsr.d.ts +16 -0
- package/types/webkit/createRobotPage.d.ts +15 -0
- package/types/webkit/createSitemapPage.d.ts +4 -0
- package/types/webkit/index.d.ts +17 -0
- package/types/webkit/lazy.d.ts +11 -0
- package/types/webkit/types.d.ts +7 -0
- package/types/webkit/useCamera.d.ts +19 -0
- package/types/webkit/useCodepush.d.ts +16 -0
- package/types/webkit/useContact.d.ts +11 -0
- package/types/webkit/useCsrValues.d.ts +30 -0
- package/types/webkit/useDebounce.d.ts +2 -0
- package/types/webkit/useFetch.d.ts +18 -0
- package/types/webkit/useGeoLocation.d.ts +8 -0
- package/types/webkit/useHistory.d.ts +23 -0
- package/types/webkit/useInterval.d.ts +2 -0
- package/types/webkit/useLocation.d.ts +8 -0
- package/types/webkit/usePurchase.d.ts +19 -0
- package/types/webkit/usePushNoti.d.ts +7 -0
- package/types/webkit/useThrottle.d.ts +2 -0
- package/types/webkit.d.ts +1 -0
- package/ui/BottomSheet.tsx +1 -1
- package/ui/Clipboard.tsx +1 -1
- package/ui/CsrImage.tsx +3 -14
- package/ui/Data/ListContainer.tsx +1 -1
- package/ui/Data/Pagination.tsx +1 -1
- package/ui/Data/QueryMaker.tsx +0 -339
- package/ui/Data/index.ts +0 -1
- package/ui/DatePicker.tsx +1 -95
- package/ui/Dialog/Modal.tsx +1 -1
- package/ui/DraggableList.tsx +5 -5
- package/ui/Field.tsx +2 -3
- package/ui/Image.tsx +2 -3
- package/ui/InfiniteScroll.tsx +0 -1
- package/ui/Input.tsx +1 -8
- package/ui/Layout/BottomTab.tsx +2 -2
- package/ui/Link/SsrLink.tsx +1 -2
- package/ui/Load/Page.tsx +1 -1
- package/ui/Load/PageCSR.tsx +0 -1
- package/ui/Load/Units.tsx +1 -2
- package/ui/Load/View.tsx +1 -2
- package/ui/Menu.tsx +5 -8
- package/ui/Model/EditModal.tsx +2 -5
- package/ui/Popconfirm.tsx +2 -4
- package/ui/ScreenNavigator.tsx +2 -3
- package/ui/Signal/Message.tsx +2 -3
- package/ui/Signal/PubSub.tsx +0 -2
- package/ui/Signal/Response.tsx +1 -1
- package/ui/Signal/WebSocket.tsx +2 -11
- package/ui/System/Client.tsx +7 -41
- package/ui/System/Gtag.tsx +2 -5
- package/ui/System/Messages.tsx +2 -2
- package/ui/System/Reconnect.tsx +5 -6
- package/ui/System/Root.tsx +0 -1
- package/ui/System/SSR.tsx +1 -7
- package/ui/ToggleSelect.tsx +3 -8
- package/ui/Unauthorized.tsx +1 -1
- package/webkit/bootCsr.tsx +3 -6
- package/webkit/lazy.tsx +1 -8
- package/webkit/useCamera.tsx +0 -1
- package/webkit/useCodepush.tsx +4 -9
- package/webkit/useContact.tsx +0 -1
- package/webkit/useCsrValues.ts +6 -10
- package/webkit/useDebounce.ts +2 -2
- package/webkit/usePurchase.tsx +5 -9
- package/webkit/usePushNoti.tsx +0 -1
- package/base/base.test.ts +0 -135
- package/base/baseEnv.test.ts +0 -146
- package/base/primitiveRegistry.test.ts +0 -127
- package/base/symbols.test.ts +0 -29
- package/base/utils.test.ts +0 -30
- package/build.ts +0 -318
- package/capacitor.base.config.test.ts +0 -83
- package/client/client.auth-storage.test.ts +0 -210
- package/client/client.decorators.test.ts +0 -74
- package/client/client.device.test.ts +0 -181
- package/client/client.page.test.tsx +0 -175
- package/client/client.pure.test.ts +0 -146
- package/client/client.router.test.ts +0 -290
- package/common/Logger.test.ts +0 -45
- package/common/formatAndValidation.test.ts +0 -61
- package/common/httpClient.test.ts +0 -91
- package/common/objectPath.test.ts +0 -108
- package/common/routeConvention.test.ts +0 -132
- package/common/runtimeConfig.test.ts +0 -84
- package/constant/constant.test.ts +0 -374
- package/dictionary/dictionary.test.ts +0 -352
- package/document/document.test.ts +0 -698
- package/fetch/fetch.test.ts +0 -838
- package/server/akanApp.test.ts +0 -130
- package/server/akanServer.test.ts +0 -157
- package/server/artifact/routeClientCache.test.ts +0 -265
- package/server/artifact/routeSeedIndex.test.ts +0 -56
- package/server/artifact/routesManifest.test.ts +0 -64
- package/server/di/diLifecycle.contract.test.ts +0 -168
- package/server/logging/rotatingLogWriter.test.ts +0 -119
- package/server/processMetrics.test.ts +0 -24
- package/server/proxy/webProxyRunner.test.ts +0 -66
- package/server/resolver/resolver.contract.test.ts +0 -594
- package/server/robots.test.ts +0 -16
- package/server/routeTree.test.tsx +0 -198
- package/server/routing/apiRouter.test.ts +0 -136
- package/server/sitemap.test.ts +0 -61
- package/server/systemPages.test.tsx +0 -93
- package/server/webRouter.test.ts +0 -49
- package/service/predefinedAdaptor/compress.adaptor.test.ts +0 -184
- package/service/predefinedAdaptor/solidCache.adaptor.test.ts +0 -107
- package/service/predefinedAdaptor/solidSqlite.test.ts +0 -457
- package/service/service.test.ts +0 -732
- package/signal/signal.test.ts +0 -892
- package/store/stateBuilder.test.ts +0 -168
- package/store/store.test.ts +0 -427
- package/tsconfig.json +0 -5
- package/ui/Constant/schemaDoc.test.ts +0 -113
- package/ui/InfiniteScroll.test.tsx +0 -155
- package/ui/System/Common.test.ts +0 -37
- package/webkit/bootCsr.test.tsx +0 -153
- package/webkit/native.test.tsx +0 -341
- package/webkit/webkit.test.tsx +0 -531
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface UnitProps {
|
|
2
|
+
/** Additional classes merged with the default list/card item layout. */
|
|
3
|
+
className?: string;
|
|
4
|
+
/** Unit body content. */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** Optional route that makes the whole unit clickable through Link. */
|
|
7
|
+
href?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Unit: ({ className, children, href }: UnitProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface ViewProps {
|
|
3
|
+
/** Additional classes merged with the default detail page container. */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** View content, usually a model detail component. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const View: ({ className, children }: ViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const Layout: {
|
|
2
|
+
Header: ({ className, type, children, height }: import("./Header.d.ts").HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
Sider: ({ className, bgClassName, children }: import("./Sider.d.ts").SiderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
Navbar: ({ back, className, height, children, title, left, right }: import("./Navbar.d.ts").NavbarProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
BottomTab: ({ className, tabs, height }: import("./BottomTab.d.ts").BottomTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
BottomInset: ({ className, children, keyboardSticky }: import("./BottomInset.d.ts").BottomInsetProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
Template: ({ className, children }: import("./Template.d.ts").TemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Unit: ({ className, children, href }: import("./Unit.d.ts").UnitProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
View: ({ className, children }: import("./View.d.ts").ViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
Zone: ({ className, children }: import("./Zone.d.ts").ZoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
TopLeftAction: ({ className, children }: import("./TopLeftAction.d.ts").TopLeftActionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
LeftSider: ({ className, children, open, width, onCancel }: import("./LeftSider.d.ts").LeftSiderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
RightSider: ({ className, children, open, title, width, onCancel }: import("./RightSider.d.ts").RightSiderProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Layout/index.d.ts";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
interface LangProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
lang: "ko" | "en" | (string & {});
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export default function Lang({ className, lang, children }: LangProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Back from "./Back.d.ts";
|
|
2
|
+
import Close from "./Close.d.ts";
|
|
3
|
+
import Lang from "./Lang.d.ts";
|
|
4
|
+
import type { CommonLinkProps } from "./types.d.ts";
|
|
5
|
+
export declare const Link: {
|
|
6
|
+
({ className, href, disabled, children, ...props }: CommonLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Back: typeof Back;
|
|
8
|
+
Close: typeof Close;
|
|
9
|
+
Lang: typeof Lang;
|
|
10
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
type LinkProps = any;
|
|
3
|
+
export type CommonLinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof LinkProps | "href"> & Omit<LinkProps, "href"> & {
|
|
4
|
+
/** Destination route. When omitted or disabled, Link renders a non-clickable div with the same children. */
|
|
5
|
+
href?: string | null;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/** Prevent navigation while preserving layout and children rendering. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** Scroll to the top after client-side navigation. */
|
|
10
|
+
scrollToTop?: boolean;
|
|
11
|
+
/** Class applied when the current route matches href. */
|
|
12
|
+
activeClassName?: string;
|
|
13
|
+
/** Match activeClassName only on exact route matches. */
|
|
14
|
+
activeExact?: boolean;
|
|
15
|
+
/** Bypass route cache for client-side navigation when supported by the renderer. */
|
|
16
|
+
noCache?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export interface CsrLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
19
|
+
/** Destination route for client-side navigation. */
|
|
20
|
+
href: string;
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
/** Replace current history entry instead of pushing a new one. */
|
|
23
|
+
replace?: boolean;
|
|
24
|
+
/** Class applied when the current route matches href. */
|
|
25
|
+
activeClassName?: string;
|
|
26
|
+
/** Match activeClassName only on exact route matches. */
|
|
27
|
+
activeExact?: boolean;
|
|
28
|
+
/** Scroll to the top after client-side navigation. */
|
|
29
|
+
scrollToTop?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface SsrLinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, keyof LinkProps | "href">, LinkProps {
|
|
32
|
+
/** Destination route for server-rendered anchor output. */
|
|
33
|
+
href: string;
|
|
34
|
+
children?: ReactNode;
|
|
35
|
+
/** Prevent navigation while preserving layout and children rendering. */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Scroll to the top after navigation. */
|
|
38
|
+
scrollToTop?: boolean;
|
|
39
|
+
/** Class applied when the current route matches href. */
|
|
40
|
+
activeClassName?: string;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Link/index.d.ts";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ClientEdit, SliceMeta } from "akanjs/fetch";
|
|
2
|
+
import type { CreateOption } from "akanjs/store";
|
|
3
|
+
import type { ReactNode } from "react";
|
|
4
|
+
interface DefaultProps {
|
|
5
|
+
type?: "modal" | "form" | "empty";
|
|
6
|
+
className?: string;
|
|
7
|
+
modalClassName?: string;
|
|
8
|
+
checkSubmit?: boolean;
|
|
9
|
+
slice: SliceMeta;
|
|
10
|
+
modal?: string;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
onSubmit?: string;
|
|
13
|
+
onCancel?: string;
|
|
14
|
+
submitText?: string;
|
|
15
|
+
submitClassName?: string;
|
|
16
|
+
submitOption?: CreateOption<any>;
|
|
17
|
+
renderSubmit?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface EditProps<T extends string, Full extends {
|
|
20
|
+
id: string;
|
|
21
|
+
}> extends DefaultProps {
|
|
22
|
+
edit: ClientEdit<T, Full> | Partial<Full> | Promise<Partial<Full>>;
|
|
23
|
+
}
|
|
24
|
+
export default function Edit_Client<T extends string, Full extends {
|
|
25
|
+
id: string;
|
|
26
|
+
}>({ className, checkSubmit, modalClassName, type, edit, modal, slice, children, onSubmit, onCancel, submitText, submitClassName, submitOption, renderSubmit, }: EditProps<T, Full>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface PageProps<Return> {
|
|
3
|
+
/** Route component used by the CSR page wrapper. */
|
|
4
|
+
of: (props: unknown) => ReactNode | null;
|
|
5
|
+
/** Async data loader shared by SSR and CSR rendering. */
|
|
6
|
+
loader: () => Promise<Return>;
|
|
7
|
+
/** Render callback invoked with the loaded data. */
|
|
8
|
+
render: (data: Return) => ReactNode;
|
|
9
|
+
/** Optional loading renderer used while CSR data is pending. */
|
|
10
|
+
loading?: () => ReactNode;
|
|
11
|
+
/** Disable cached CSR loader results when fresh data is required. */
|
|
12
|
+
noCache?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const Page: <Return>(props: PageProps<Return>) => ReactNode;
|
|
15
|
+
export default Page;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { PageProps } from "./Page.d.ts";
|
|
3
|
+
export declare const PageCSR: <Return>({ of, loader, render, loading, noCache }: PageProps<Return>) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ClientInit } from "akanjs/fetch";
|
|
2
|
+
interface PaginationProps<RefName extends string, Light> {
|
|
3
|
+
className?: string;
|
|
4
|
+
init: ClientInit<RefName, Light>;
|
|
5
|
+
scrollToTop?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export default function Pagination<T extends string, L>({ className, init, scrollToTop }: PaginationProps<T, L>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DataList } from "akanjs/base";
|
|
2
|
+
import type { ClientInit } from "akanjs/fetch";
|
|
3
|
+
import { type ReactNode, type RefObject } from "react";
|
|
4
|
+
interface DefaultProps<L extends {
|
|
5
|
+
id: string;
|
|
6
|
+
}> {
|
|
7
|
+
containerRef?: RefObject<HTMLDivElement | null>;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
noDiv?: boolean;
|
|
11
|
+
from?: number;
|
|
12
|
+
to?: number;
|
|
13
|
+
loading?: ReactNode;
|
|
14
|
+
filter?: (item: L, idx: number) => boolean;
|
|
15
|
+
sort?: (a: L, b: L) => number;
|
|
16
|
+
renderEmpty?: null | (() => ReactNode);
|
|
17
|
+
renderItem?: (item: L, idx: number) => ReactNode;
|
|
18
|
+
renderList?: (list: DataList<L>) => ReactNode;
|
|
19
|
+
reverse?: boolean;
|
|
20
|
+
pagination?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface UnitsProps<RefName extends string, Light extends {
|
|
23
|
+
id: string;
|
|
24
|
+
}> extends DefaultProps<Light> {
|
|
25
|
+
init: ClientInit<RefName, Light>;
|
|
26
|
+
}
|
|
27
|
+
export default function Units<RefName extends string, Light extends {
|
|
28
|
+
id: string;
|
|
29
|
+
}>({ containerRef, className, init, noDiv, from, to, loading, renderItem, renderList, renderEmpty, filter, sort, reverse, style, pagination, }: UnitsProps<RefName, Light>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ClientView } from "akanjs/fetch";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
interface DefaultProps<T extends string, M> {
|
|
4
|
+
/** Additional classes for the default wrapping div. */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Render the model directly without the default wrapper div. */
|
|
7
|
+
noDiv?: boolean;
|
|
8
|
+
/** Custom fallback shown while the client view is loading. */
|
|
9
|
+
loading?: ReactNode;
|
|
10
|
+
/** Render callback invoked with the loaded full model. */
|
|
11
|
+
renderView: (model: M) => ReactNode;
|
|
12
|
+
}
|
|
13
|
+
interface ViewProps<T extends string, Full extends {
|
|
14
|
+
id: string;
|
|
15
|
+
}> extends DefaultProps<T, Full> {
|
|
16
|
+
/** Client view promise returned by Akan fetch helpers. */
|
|
17
|
+
view: ClientView<T, Full>;
|
|
18
|
+
}
|
|
19
|
+
export default function View<T extends string, Full extends {
|
|
20
|
+
id: string;
|
|
21
|
+
}>({ className, view, noDiv, loading, renderView, }: ViewProps<T, Full>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Edit from "./Edit.d.ts";
|
|
2
|
+
export declare const Load: {
|
|
3
|
+
Edit: typeof Edit;
|
|
4
|
+
Pagination: typeof import("./Pagination.d.ts").default;
|
|
5
|
+
Units: typeof import("./Units.d.ts").default;
|
|
6
|
+
View: typeof import("./View.d.ts").default;
|
|
7
|
+
Page: <Return>(props: import("./Page.d.ts").PageProps<Return>) => import("react").ReactNode;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Load/index.d.ts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Area: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
export interface LoadingProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
export declare const Button: ({ className, active, style }: LoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
export interface SkeletonProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
export declare const Skeleton: ({ className, active, style }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const Loading: {
|
|
2
|
+
Area: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
Button: ({ className, active, style }: import("./Button.d.ts").LoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
Input: ({ className, active, style }: import("./Input.d.ts").LoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ProgressBar: ({ className, value, max }: import("./ProgressBar.d.ts").ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
Skeleton: ({ className, active, style }: import("./Skeleton.d.ts").SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Spin: ({ indicator, isCenter, className }: import("./Spin.d.ts").SpinProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Loading/index.d.ts";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
interface MenuItem {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
key: string;
|
|
5
|
+
children?: MenuItem[];
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
type?: string;
|
|
8
|
+
}
|
|
9
|
+
interface MenuProps {
|
|
10
|
+
className?: string;
|
|
11
|
+
ulClassName?: string;
|
|
12
|
+
liClassName?: string;
|
|
13
|
+
labelClassName?: (isActive: boolean) => string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
selectedKeys?: string[];
|
|
16
|
+
defaultSelectedKeys?: string[];
|
|
17
|
+
mode?: "horizontal" | "inline";
|
|
18
|
+
items: MenuItem[];
|
|
19
|
+
onClick?: (item: MenuItem) => void;
|
|
20
|
+
activeStyle?: string;
|
|
21
|
+
inlineCollapsed?: boolean;
|
|
22
|
+
onMouseOver?: () => void;
|
|
23
|
+
onMouseLeave?: () => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const Menu: ({ items, onClick, selectedKeys, labelClassName, defaultSelectedKeys, className, ulClassName, liClassName, style, mode, activeStyle, inlineCollapsed, onMouseOver, onMouseLeave, }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
/** Additional classes for the modal surface. */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Optional modal title. */
|
|
6
|
+
title?: string | ReactNode;
|
|
7
|
+
/** Optional action area, usually footer buttons. */
|
|
8
|
+
action?: ReactNode;
|
|
9
|
+
/** Controlled open state. */
|
|
10
|
+
open: boolean;
|
|
11
|
+
/** Called when the modal requests closing. */
|
|
12
|
+
onCancel: () => void;
|
|
13
|
+
/** Additional classes for the content body. */
|
|
14
|
+
bodyClassName?: string;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
/** Ask for close confirmation before dismissing. */
|
|
17
|
+
confirmClose?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const Modal: ({ className, title, action, open, onCancel, bodyClassName, children, confirmClose, }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SliceMeta } from "akanjs/fetch";
|
|
2
|
+
import type { ListContainerProps } from "../Data/ListContainer.d.ts";
|
|
3
|
+
interface AdminPanelProps<T extends string, State, Input, Full extends {
|
|
4
|
+
id: string;
|
|
5
|
+
}, Light extends {
|
|
6
|
+
id: string;
|
|
7
|
+
}> extends ListContainerProps<T, State, Input, Full, Light> {
|
|
8
|
+
slice: SliceMeta;
|
|
9
|
+
components: {
|
|
10
|
+
Template: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
Unit: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
View: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
queryMap?: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
summaryColumns?: string[];
|
|
24
|
+
insightColumns?: string[];
|
|
25
|
+
}
|
|
26
|
+
export default function AdminPanel<RefName extends string, State, Input, Full extends {
|
|
27
|
+
id: string;
|
|
28
|
+
}, Light extends {
|
|
29
|
+
id: string;
|
|
30
|
+
}>({ slice, components, summaryColumns, insightColumns, renderInsight, renderDashboard, ...props }: AdminPanelProps<RefName, State, Input, Full, Light>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SliceMeta } from "akanjs/fetch";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
interface EditProps {
|
|
4
|
+
type?: "icon" | "button";
|
|
5
|
+
className?: string;
|
|
6
|
+
wrapperClassName?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
slice: SliceMeta;
|
|
9
|
+
modelId: string;
|
|
10
|
+
modal?: string | null;
|
|
11
|
+
renderTitle?: ((model: {
|
|
12
|
+
id: string;
|
|
13
|
+
}) => string | ReactNode) | string;
|
|
14
|
+
}
|
|
15
|
+
export default function Edit({ className, wrapperClassName, type, children, slice, modelId, modal, renderTitle, }: EditProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ClientEdit, SliceMeta } from "akanjs/fetch";
|
|
2
|
+
import { type CreateOption } from "akanjs/store";
|
|
3
|
+
import { type ReactNode } from "react";
|
|
4
|
+
interface EditModelProps<Full> {
|
|
5
|
+
/** Rendering mode for the edit shell. */
|
|
6
|
+
type?: "modal" | "form" | "empty";
|
|
7
|
+
/** Slice metadata generated for the model store/fetch contract. */
|
|
8
|
+
slice: SliceMeta;
|
|
9
|
+
/** Additional classes for the wrapper. */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Re-check submit eligibility when form state changes. */
|
|
12
|
+
checkSubmit?: boolean;
|
|
13
|
+
/** Client edit promise or partial form seed. */
|
|
14
|
+
edit?: ClientEdit<string, Full> | Partial<Full>;
|
|
15
|
+
/** Store modal name that should activate this editor. */
|
|
16
|
+
modal?: string;
|
|
17
|
+
children: any;
|
|
18
|
+
/** Custom loading overlay wrapper, or false to disable the default overlay. */
|
|
19
|
+
loadingWrapper?: boolean | ((props: {
|
|
20
|
+
children?: any;
|
|
21
|
+
className?: string;
|
|
22
|
+
}) => ReactNode);
|
|
23
|
+
}
|
|
24
|
+
interface EditModalProps<Full extends {
|
|
25
|
+
id: string;
|
|
26
|
+
}> extends EditModelProps<Full> {
|
|
27
|
+
/** Model id used to scope edit modal state. */
|
|
28
|
+
id?: string;
|
|
29
|
+
/** Disable modal trigger and submit behavior. */
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
checkSubmit?: boolean;
|
|
32
|
+
/** Additional classes for the modal window. */
|
|
33
|
+
modalClassName?: string;
|
|
34
|
+
/** Modal title or title renderer receiving the current model. */
|
|
35
|
+
renderTitle?: ((model: Full) => string | ReactNode) | string;
|
|
36
|
+
/** Submit button label. */
|
|
37
|
+
submitText?: string;
|
|
38
|
+
/** Additional classes for the submit button. */
|
|
39
|
+
submitClassName?: string;
|
|
40
|
+
/** Store submit options passed to the generated submit action. */
|
|
41
|
+
submitOption?: CreateOption<Full>;
|
|
42
|
+
/** Custom submit renderer, or false to hide the default submit button. */
|
|
43
|
+
renderSubmit?: boolean | ((arg: any) => ReactNode);
|
|
44
|
+
/** Action name or callback invoked after submit. */
|
|
45
|
+
onSubmit?: string | ((model: Full) => void);
|
|
46
|
+
/** Action name or callback invoked on cancel. */
|
|
47
|
+
onCancel?: string | ((form?: any) => any);
|
|
48
|
+
}
|
|
49
|
+
export default function EditModal<Full extends {
|
|
50
|
+
id: string;
|
|
51
|
+
}>({ type, slice, id, className, disabled, checkSubmit, modalClassName, edit, modal, renderTitle, children, submitText, submitClassName, submitOption, renderSubmit, loadingWrapper, onSubmit, onCancel, }: EditModalProps<Full>): import("react/jsx-runtime").JSX.Element | undefined;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SliceMeta } from "akanjs/fetch";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
interface EditWrapperProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
slice: SliceMeta;
|
|
7
|
+
modelId: string;
|
|
8
|
+
modal?: string | null;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
resets?: string[] | null;
|
|
11
|
+
}
|
|
12
|
+
export default function EditWrapper({ children, slice, modelId, className, modal, disabled, resets, }: EditWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ClientInit } from "akanjs/fetch";
|
|
2
|
+
interface LoadInitProps<T extends string, Light extends {
|
|
3
|
+
id: string;
|
|
4
|
+
}> {
|
|
5
|
+
init: ClientInit<T, Light>;
|
|
6
|
+
}
|
|
7
|
+
export default function LoadInit<T extends string, Light extends {
|
|
8
|
+
id: string;
|
|
9
|
+
}>({ init }: LoadInitProps<T, Light>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SliceMeta } from "akanjs/fetch";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
interface NewProps<Full = any> {
|
|
4
|
+
type?: "icon" | "button";
|
|
5
|
+
className?: string;
|
|
6
|
+
wrapperClassName?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
slice: SliceMeta;
|
|
9
|
+
modal?: string | null;
|
|
10
|
+
partial?: Partial<Full> | (() => Partial<Full>);
|
|
11
|
+
renderTitle?: ((model: {
|
|
12
|
+
id: string;
|
|
13
|
+
}) => string | ReactNode) | string;
|
|
14
|
+
}
|
|
15
|
+
export default function New({ className, wrapperClassName, type, children, slice, modal, partial, renderTitle, }: NewProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SliceMeta } from "akanjs/fetch";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
interface NewWrapperProps<Full = any> {
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
slice: SliceMeta;
|
|
7
|
+
partial?: Partial<Full> | (() => Partial<Full>);
|
|
8
|
+
setDefault?: boolean;
|
|
9
|
+
modal?: string | null;
|
|
10
|
+
resets?: string[] | null;
|
|
11
|
+
}
|
|
12
|
+
export default function NewWrapper<Full>({ partial, ...props }: NewWrapperProps<Full>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SliceMeta } from "akanjs/fetch";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
interface NewWrapperProps<Full = any> {
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
slice: SliceMeta;
|
|
7
|
+
partial?: Partial<Full>;
|
|
8
|
+
setDefault?: boolean;
|
|
9
|
+
modal?: string | null;
|
|
10
|
+
resets?: string[] | null;
|
|
11
|
+
}
|
|
12
|
+
export declare const NewWrapper_Client: <Full>({ children, slice, partial, setDefault, className, modal, resets, }: NewWrapperProps<Full>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SliceMeta } from "akanjs/fetch";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
interface RemoveProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
modelId: string;
|
|
7
|
+
slice: SliceMeta;
|
|
8
|
+
modal?: string | null;
|
|
9
|
+
redirect?: string;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export default function Remove({ className, name, modelId, slice, modal, redirect, children }: RemoveProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SliceMeta } from "akanjs/fetch";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
interface RemoveWrapperProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
slice: SliceMeta;
|
|
7
|
+
modelId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
modal?: string | null;
|
|
10
|
+
}
|
|
11
|
+
export default function RemoveWrapper({ children, slice, name, modelId, className, modal }: RemoveWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SliceMeta } from "akanjs/fetch";
|
|
2
|
+
interface SureToRemoveProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
modelId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
slice: SliceMeta;
|
|
7
|
+
redirect?: string;
|
|
8
|
+
typeNameToRemove?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export default function SureToRemove({ className, modelId, name, slice, redirect, typeNameToRemove, }: SureToRemoveProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
interface ViewProps<Full extends {
|
|
3
|
+
id: string;
|
|
4
|
+
}> {
|
|
5
|
+
className?: string;
|
|
6
|
+
model: Full | null;
|
|
7
|
+
modelLoading?: string | boolean;
|
|
8
|
+
render: (model: Full) => ReactNode | null;
|
|
9
|
+
loadingWrapper?: null | ((props: {
|
|
10
|
+
children?: any;
|
|
11
|
+
className?: string;
|
|
12
|
+
}) => ReactNode);
|
|
13
|
+
empty?: null | (() => ReactNode);
|
|
14
|
+
loading?: null | (() => ReactNode);
|
|
15
|
+
}
|
|
16
|
+
export default function View<Full extends {
|
|
17
|
+
id: string;
|
|
18
|
+
}>({ className, model, modelLoading, render, loadingWrapper, loading, empty, }: ViewProps<Full>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|