@akanjs/cli 1.0.20 → 2.1.0-rc.1
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/guidelines/componentRule/componentRule.generate.json +37 -0
- package/guidelines/componentRule/componentRule.instruction.md +28 -0
- package/guidelines/cssRule/cssRule.generate.json +37 -0
- package/guidelines/cssRule/cssRule.instruction.md +28 -0
- package/guidelines/docPageRule/docPageRule.generate.json +37 -0
- package/guidelines/docPageRule/docPageRule.instruction.md +25 -0
- package/guidelines/docSyncRule/docSyncRule.generate.json +37 -0
- package/guidelines/docSyncRule/docSyncRule.instruction.md +25 -0
- package/guidelines/enumConstant/enumConstant.generate.json +37 -0
- package/guidelines/enumConstant/enumConstant.instruction.md +28 -0
- package/guidelines/fieldRule/fieldRule.generate.json +37 -0
- package/guidelines/fieldRule/fieldRule.instruction.md +31 -0
- package/guidelines/framework/framework.generate.json +37 -0
- package/guidelines/framework/framework.instruction.md +29 -0
- package/guidelines/modelConstant/modelConstant.generate.json +37 -0
- package/guidelines/modelConstant/modelConstant.instruction.md +30 -0
- package/guidelines/modelDictionary/modelDictionary.generate.json +37 -0
- package/guidelines/modelDictionary/modelDictionary.instruction.md +30 -0
- package/guidelines/modelDocument/modelDocument.generate.json +37 -0
- package/guidelines/modelDocument/modelDocument.instruction.md +29 -0
- package/guidelines/modelService/modelService.generate.json +37 -0
- package/guidelines/modelService/modelService.instruction.md +28 -0
- package/guidelines/modelSignal/modelSignal.generate.json +37 -0
- package/guidelines/modelSignal/modelSignal.instruction.md +28 -0
- package/guidelines/modelStore/modelStore.generate.json +37 -0
- package/guidelines/modelStore/modelStore.instruction.md +28 -0
- package/guidelines/modelTemplate/modelTemplate.generate.json +37 -0
- package/guidelines/modelTemplate/modelTemplate.instruction.md +25 -0
- package/guidelines/modelUnit/modelUnit.generate.json +37 -0
- package/guidelines/modelUnit/modelUnit.instruction.md +25 -0
- package/guidelines/modelUtil/modelUtil.generate.json +37 -0
- package/guidelines/modelUtil/modelUtil.instruction.md +25 -0
- package/guidelines/modelView/modelView.generate.json +37 -0
- package/guidelines/modelView/modelView.instruction.md +25 -0
- package/guidelines/modelZone/modelZone.generate.json +37 -0
- package/guidelines/modelZone/modelZone.instruction.md +25 -0
- package/guidelines/moduleCodegen/moduleCodegen.generate.json +37 -0
- package/guidelines/moduleCodegen/moduleCodegen.instruction.md +28 -0
- package/guidelines/moduleOverview/moduleOverview.generate.json +37 -0
- package/guidelines/moduleOverview/moduleOverview.instruction.md +31 -0
- package/guidelines/scalarConstant/scalarConstant.generate.json +37 -0
- package/guidelines/scalarConstant/scalarConstant.instruction.md +28 -0
- package/guidelines/scalarDictionary/scalarDictionary.generate.json +37 -0
- package/guidelines/scalarDictionary/scalarDictionary.instruction.md +28 -0
- package/guidelines/scalarModule/scalarModule.generate.json +37 -0
- package/guidelines/scalarModule/scalarModule.instruction.md +29 -0
- package/guidelines/sharedUiUsage/sharedUiUsage.generate.json +37 -0
- package/guidelines/sharedUiUsage/sharedUiUsage.instruction.md +25 -0
- package/guidelines/utilUiUsage/utilUiUsage.generate.json +37 -0
- package/guidelines/utilUiUsage/utilUiUsage.instruction.md +25 -0
- package/index.js +11658 -0
- package/package.json +38 -56
- package/templates/__scalar/__model__/__model__.constant.ts +15 -0
- package/templates/__scalar/__model__/__model__.dictionary.ts +19 -0
- package/templates/__scalar/__model__/__model__.document.ts +15 -0
- package/templates/app/akan.config.ts +14 -0
- package/templates/app/env/env.client.debug.ts.template +7 -0
- package/templates/app/env/env.client.develop.ts.template +7 -0
- package/templates/app/env/env.client.local.ts.template +7 -0
- package/templates/app/env/env.client.main.ts.template +7 -0
- package/templates/app/env/env.client.testing.ts.template +7 -0
- package/{esm/src/templates/app/env/env.client.js → templates/app/env/env.client.ts} +7 -6
- package/templates/app/env/env.client.type.ts +16 -0
- package/{esm/src/templates/app/env/env.server.testing.ts.template → templates/app/env/env.server.debug.ts.template} +3 -2
- package/templates/app/env/env.server.develop.ts.template +7 -0
- package/templates/app/env/env.server.local.ts.template +7 -0
- package/templates/app/env/env.server.main.ts.template +7 -0
- package/{cjs/src/templates → templates}/app/env/env.server.testing.ts.template +0 -0
- package/{esm/src/templates/app/env/env.server.js → templates/app/env/env.server.ts} +7 -6
- package/templates/app/lib/___appName__/__appName__.dictionary.ts +17 -0
- package/templates/app/lib/___appName__/__appName__.service.ts +13 -0
- package/templates/app/lib/___appName__/__appName__.signal.ts +17 -0
- package/templates/app/lib/___appName__/__appName__.store.ts +17 -0
- package/templates/app/lib/option.ts +18 -0
- package/templates/app/main.ts +16 -0
- package/templates/app/page/_index.tsx +296 -0
- package/templates/app/page/_layout.tsx +31 -0
- package/templates/app/page/styles.css.template +53 -0
- package/templates/app/public/favicon.ico +0 -0
- package/templates/app/public/logo.png +0 -0
- package/{esm/src/templates → templates}/app/tsconfig.json.template +0 -1
- package/templates/client.ts +46 -0
- package/templates/crudPages/[__model__Id]/edit/page.tsx +47 -0
- package/templates/crudPages/[__model__Id]/page.tsx +52 -0
- package/templates/crudPages/new/page.tsx +42 -0
- package/templates/crudPages/page.tsx +43 -0
- package/templates/crudSinglePage/page.tsx +37 -0
- package/templates/env/_env.server.type.ts +16 -0
- package/templates/facetIndex/index.ts +33 -0
- package/templates/index.ts +10 -0
- package/templates/lib/__lib/lib.constant.ts +38 -0
- package/templates/lib/__lib/lib.dictionary.ts +33 -0
- package/templates/lib/__lib/lib.document.ts +35 -0
- package/templates/lib/__lib/lib.service.ts +33 -0
- package/templates/lib/__lib/lib.signal.ts +34 -0
- package/templates/lib/__lib/lib.store.ts +33 -0
- package/templates/lib/cnst.ts +29 -0
- package/templates/lib/db.ts +32 -0
- package/{esm/src/templates/lib/dict.js → templates/lib/dict.ts} +16 -16
- package/templates/lib/sig.ts +60 -0
- package/templates/lib/srv.ts +34 -0
- package/templates/lib/st.ts +31 -0
- package/templates/lib/useClient.ts +19 -0
- package/templates/lib/useServer.ts +7 -0
- package/templates/libRoot/akan.config.ts +12 -0
- package/templates/libRoot/base/baseLogic.ts +14 -0
- package/templates/libRoot/base/index.ts +8 -0
- package/templates/libRoot/common/commonLogic.ts +14 -0
- package/templates/libRoot/common/index.ts +8 -0
- package/{esm/src/templates/libRoot/lib/___libName__/__libName__.dictionary.js → templates/libRoot/lib/___libName__/__libName__.dictionary.ts} +6 -6
- package/templates/libRoot/lib/___libName__/__libName__.service.ts +13 -0
- package/templates/libRoot/lib/___libName__/__libName__.store.ts +15 -0
- package/templates/libRoot/lib/option.ts +18 -0
- package/templates/libRoot/srvkit/backendLogic.ts +13 -0
- package/templates/libRoot/srvkit/index.ts +8 -0
- package/templates/libRoot/ui/index.ts +8 -0
- package/templates/libRoot/webkit/frontendLogic.ts +13 -0
- package/templates/libRoot/webkit/index.ts +8 -0
- package/templates/localDev/docker-compose.yaml.template +37 -0
- package/{esm/src/templates/module/__Model__.Template.js → templates/module/__Model__.Template.tsx} +11 -8
- package/templates/module/__Model__.Unit.tsx +26 -0
- package/templates/module/__Model__.Util.tsx +30 -0
- package/{esm/src/templates/module/__Model__.View.js → templates/module/__Model__.View.tsx} +11 -8
- package/{esm/src/templates/module/__Model__.Zone.js → templates/module/__Model__.Zone.tsx} +15 -12
- package/{esm/src/templates/module/__model__.constant.js → templates/module/__model__.constant.ts} +9 -6
- package/{esm/src/templates/module/__model__.dictionary.js → templates/module/__model__.dictionary.ts} +12 -9
- package/templates/module/__model__.document.ts +23 -0
- package/templates/module/__model__.service.ts +16 -0
- package/{esm/src/templates/module/__model__.signal.js → templates/module/__model__.signal.ts} +10 -7
- package/templates/module/__model__.store.ts +21 -0
- package/templates/moduleRoot/index.tsx +31 -0
- package/{esm/src/templates/libRoot → templates/pkgRoot}/tsconfig.json.template +2 -3
- package/templates/server.ts +45 -0
- package/templates/service/__model__.dictionary.ts +19 -0
- package/templates/service/__model__.service.ts +13 -0
- package/templates/service/__model__.signal.ts +17 -0
- package/templates/service/__model__.store.ts +17 -0
- package/templates/workspaceRoot/.env.template +14 -0
- package/{cjs/src/templates → templates}/workspaceRoot/.gitignore.template +14 -13
- package/templates/workspaceRoot/.vscode/settings.json.template +23 -0
- package/templates/workspaceRoot/biome.json.template +191 -0
- package/templates/workspaceRoot/bunfig.toml +4 -0
- package/templates/workspaceRoot/package.json.template +7 -0
- package/templates/workspaceRoot/tsconfig.json.template +29 -0
- package/README.md +0 -307
- package/cjs/index.js +0 -7778
- package/cjs/src/guidelines/___library/sharedUiStructureDescription.en.md +0 -767
- package/cjs/src/guidelines/___library/utilUiStructureDescription.en.md +0 -395
- package/cjs/src/guidelines/___lint/lintRuleDescription.en.md +0 -64
- package/cjs/src/guidelines/___module/moduleStructureDescription.en.md +0 -80
- package/cjs/src/guidelines/componentRule/componentRule.generate.json +0 -131
- package/cjs/src/guidelines/componentRule/componentRule.instruction.md +0 -637
- package/cjs/src/guidelines/cssRule/cssRule.generate.json +0 -93
- package/cjs/src/guidelines/cssRule/cssRule.instruction.md +0 -435
- package/cjs/src/guidelines/databaseModule/databaseModule.generate.json +0 -51
- package/cjs/src/guidelines/databaseModule/databaseModule.instruction.md +0 -631
- package/cjs/src/guidelines/docPageRule/docPageRule.generate.json +0 -72
- package/cjs/src/guidelines/docPageRule/docPageRule.instruction.md +0 -389
- package/cjs/src/guidelines/enumConstant/enumConstant.generate.json +0 -24
- package/cjs/src/guidelines/enumConstant/enumConstant.instruction.md +0 -232
- package/cjs/src/guidelines/framework/framework.generate.json +0 -119
- package/cjs/src/guidelines/framework/framework.instruction.md +0 -1110
- package/cjs/src/guidelines/howToUseStore/howToUseStore.generate.json +0 -0
- package/cjs/src/guidelines/modelConstant/modelConstant.generate.json +0 -128
- package/cjs/src/guidelines/modelConstant/modelConstant.instruction.md +0 -506
- package/cjs/src/guidelines/modelDictionary/modelDictionary.generate.json +0 -108
- package/cjs/src/guidelines/modelDictionary/modelDictionary.instruction.md +0 -547
- package/cjs/src/guidelines/modelDocument/modelDocument.generate.json +0 -129
- package/cjs/src/guidelines/modelDocument/modelDocument.instruction.md +0 -659
- package/cjs/src/guidelines/modelService/modelService.generate.json +0 -135
- package/cjs/src/guidelines/modelService/modelService.instruction.md +0 -708
- package/cjs/src/guidelines/modelSignal/modelSignal.generate.json +0 -201
- package/cjs/src/guidelines/modelSignal/modelSignal.instruction.md +0 -552
- package/cjs/src/guidelines/modelStore/modelStore.generate.json +0 -130
- package/cjs/src/guidelines/modelStore/modelStore.instruction.md +0 -590
- package/cjs/src/guidelines/modelTemplate/modelTemplate.generate.json +0 -104
- package/cjs/src/guidelines/modelTemplate/modelTemplate.instruction.md +0 -604
- package/cjs/src/guidelines/modelUnit/modelUnit.generate.json +0 -92
- package/cjs/src/guidelines/modelUnit/modelUnit.instruction.md +0 -541
- package/cjs/src/guidelines/modelUtil/modelUtil.generate.json +0 -93
- package/cjs/src/guidelines/modelUtil/modelUtil.instruction.md +0 -752
- package/cjs/src/guidelines/modelView/modelView.generate.json +0 -80
- package/cjs/src/guidelines/modelView/modelView.instruction.md +0 -1005
- package/cjs/src/guidelines/modelZone/modelZone.generate.json +0 -126
- package/cjs/src/guidelines/modelZone/modelZone.instruction.md +0 -528
- package/cjs/src/guidelines/scalarConstant/scalarConstant.generate.json +0 -106
- package/cjs/src/guidelines/scalarConstant/scalarConstant.instruction.md +0 -442
- package/cjs/src/guidelines/scalarDictionary/scalarDictionary.generate.json +0 -83
- package/cjs/src/guidelines/scalarDictionary/scalarDictionary.instruction.md +0 -273
- package/cjs/src/guidelines/scalarModule/scalarModule.generate.json +0 -35
- package/cjs/src/guidelines/scalarModule/scalarModule.instruction.md +0 -81
- package/cjs/src/guidelines/sharedUiUsage/sharedUiUsage.generate.json +0 -108
- package/cjs/src/guidelines/sharedUiUsage/sharedUiUsage.instruction.md +0 -310
- package/cjs/src/guidelines/utilUiUsage/utilUiUsage.generate.json +0 -140
- package/cjs/src/guidelines/utilUiUsage/utilUiUsage.instruction.md +0 -339
- package/cjs/src/templates/__scalar/__model__/__model__.constant.js +0 -33
- package/cjs/src/templates/__scalar/__model__/__model__.dictionary.js +0 -37
- package/cjs/src/templates/__scalar/__model__/__model__.document.js +0 -33
- package/cjs/src/templates/app/akan.config.js +0 -33
- package/cjs/src/templates/app/app/[lang]/layout.js +0 -55
- package/cjs/src/templates/app/app/[lang]/page.js +0 -111
- package/cjs/src/templates/app/app/[lang]/styles.css.template +0 -20
- package/cjs/src/templates/app/app/csr.js +0 -36
- package/cjs/src/templates/app/app/index.html.template +0 -13
- package/cjs/src/templates/app/app/layout.js +0 -41
- package/cjs/src/templates/app/app/robots.js +0 -40
- package/cjs/src/templates/app/app/sitemap.js +0 -36
- package/cjs/src/templates/app/base/baseLogic.js +0 -35
- package/cjs/src/templates/app/base/index.js +0 -29
- package/cjs/src/templates/app/capacitor.config.ts.template +0 -8
- package/cjs/src/templates/app/common/commonLogic.js +0 -35
- package/cjs/src/templates/app/common/index.js +0 -29
- package/cjs/src/templates/app/env/env.client.debug.ts.template +0 -7
- package/cjs/src/templates/app/env/env.client.develop.ts.template +0 -7
- package/cjs/src/templates/app/env/env.client.js +0 -40
- package/cjs/src/templates/app/env/env.client.local.ts.template +0 -7
- package/cjs/src/templates/app/env/env.client.main.ts.template +0 -7
- package/cjs/src/templates/app/env/env.client.testing.ts.template +0 -7
- package/cjs/src/templates/app/env/env.client.type.js +0 -35
- package/cjs/src/templates/app/env/env.server.debug.ts.template +0 -10
- package/cjs/src/templates/app/env/env.server.develop.ts.template +0 -10
- package/cjs/src/templates/app/env/env.server.js +0 -39
- package/cjs/src/templates/app/env/env.server.local.ts.template +0 -10
- package/cjs/src/templates/app/env/env.server.main.ts.template +0 -10
- package/cjs/src/templates/app/instrumentation.js +0 -32
- package/cjs/src/templates/app/jest.config.js +0 -36
- package/cjs/src/templates/app/lib/___appName__/__appName__.dictionary.js +0 -35
- package/cjs/src/templates/app/lib/___appName__/__appName__.service.js +0 -31
- package/cjs/src/templates/app/lib/___appName__/__appName__.signal.js +0 -35
- package/cjs/src/templates/app/lib/___appName__/__appName__.store.js +0 -35
- package/cjs/src/templates/app/lib/option.js +0 -47
- package/cjs/src/templates/app/main.js +0 -39
- package/cjs/src/templates/app/nest/backendLogic.js +0 -34
- package/cjs/src/templates/app/nest/index.js +0 -29
- package/cjs/src/templates/app/next/frontendLogic.js +0 -34
- package/cjs/src/templates/app/next/index.js +0 -29
- package/cjs/src/templates/app/postcss.config.js.template +0 -8
- package/cjs/src/templates/app/proxy.js +0 -35
- package/cjs/src/templates/app/public/favicon.ico +0 -0
- package/cjs/src/templates/app/public/icons/icon-128x128.png +0 -0
- package/cjs/src/templates/app/public/icons/icon-144x144.png +0 -0
- package/cjs/src/templates/app/public/icons/icon-152x152.png +0 -0
- package/cjs/src/templates/app/public/icons/icon-192x192.png +0 -0
- package/cjs/src/templates/app/public/icons/icon-256x256.png +0 -0
- package/cjs/src/templates/app/public/icons/icon-384x384.png +0 -0
- package/cjs/src/templates/app/public/icons/icon-48x48.png +0 -0
- package/cjs/src/templates/app/public/icons/icon-512x512.png +0 -0
- package/cjs/src/templates/app/public/icons/icon-72x72.png +0 -0
- package/cjs/src/templates/app/public/icons/icon-96x96.png +0 -0
- package/cjs/src/templates/app/public/logo.svg +0 -70
- package/cjs/src/templates/app/public/manifest.json.template +0 -67
- package/cjs/src/templates/app/tsconfig.json.template +0 -22
- package/cjs/src/templates/app/tsconfig.spec.json.template +0 -7
- package/cjs/src/templates/app/ui/UiComponent.js +0 -38
- package/cjs/src/templates/app/ui/index.js +0 -29
- package/cjs/src/templates/client.js +0 -47
- package/cjs/src/templates/crudPages/[__model__Id]/edit/page.js +0 -72
- package/cjs/src/templates/crudPages/[__model__Id]/page.js +0 -78
- package/cjs/src/templates/crudPages/new/page.js +0 -67
- package/cjs/src/templates/crudPages/page.js +0 -68
- package/cjs/src/templates/crudSinglePage/page.js +0 -62
- package/cjs/src/templates/env/_env.server.type.js +0 -39
- package/cjs/src/templates/index.js +0 -29
- package/cjs/src/templates/lib/__lib/lib.constant.js +0 -57
- package/cjs/src/templates/lib/__lib/lib.dictionary.js +0 -50
- package/cjs/src/templates/lib/__lib/lib.document.js +0 -52
- package/cjs/src/templates/lib/__lib/lib.service.js +0 -59
- package/cjs/src/templates/lib/__lib/lib.signal.js +0 -55
- package/cjs/src/templates/lib/__lib/lib.store.js +0 -52
- package/cjs/src/templates/lib/cnst.js +0 -56
- package/cjs/src/templates/lib/db.js +0 -53
- package/cjs/src/templates/lib/dict.js +0 -69
- package/cjs/src/templates/lib/sig.js +0 -71
- package/cjs/src/templates/lib/srv.js +0 -50
- package/cjs/src/templates/lib/st.js +0 -50
- package/cjs/src/templates/lib/useClient.js +0 -40
- package/cjs/src/templates/lib/useServer.js +0 -31
- package/cjs/src/templates/libRoot/akan.config.js +0 -33
- package/cjs/src/templates/libRoot/base/baseLogic.js +0 -35
- package/cjs/src/templates/libRoot/base/index.js +0 -29
- package/cjs/src/templates/libRoot/common/commonLogic.js +0 -35
- package/cjs/src/templates/libRoot/common/index.js +0 -29
- package/cjs/src/templates/libRoot/jest.config.js +0 -36
- package/cjs/src/templates/libRoot/lib/___libName__/__libName__.dictionary.js +0 -35
- package/cjs/src/templates/libRoot/lib/___libName__/__libName__.service.js +0 -33
- package/cjs/src/templates/libRoot/lib/___libName__/__libName__.store.js +0 -35
- package/cjs/src/templates/libRoot/lib/option.js +0 -46
- package/cjs/src/templates/libRoot/nest/backendLogic.js +0 -34
- package/cjs/src/templates/libRoot/nest/index.js +0 -29
- package/cjs/src/templates/libRoot/next/frontendLogic.js +0 -34
- package/cjs/src/templates/libRoot/next/index.js +0 -29
- package/cjs/src/templates/libRoot/tsconfig.spec.json.template +0 -7
- package/cjs/src/templates/libRoot/ui/index.js +0 -29
- package/cjs/src/templates/localDev/docker-compose.yaml.template +0 -42
- package/cjs/src/templates/module/__Model__.Template.js +0 -53
- package/cjs/src/templates/module/__Model__.Unit.js +0 -43
- package/cjs/src/templates/module/__Model__.Util.js +0 -47
- package/cjs/src/templates/module/__Model__.View.js +0 -46
- package/cjs/src/templates/module/__Model__.Zone.js +0 -60
- package/cjs/src/templates/module/__model__.constant.js +0 -41
- package/cjs/src/templates/module/__model__.dictionary.js +0 -47
- package/cjs/src/templates/module/__model__.document.js +0 -46
- package/cjs/src/templates/module/__model__.service.js +0 -33
- package/cjs/src/templates/module/__model__.signal.js +0 -44
- package/cjs/src/templates/module/__model__.store.js +0 -38
- package/cjs/src/templates/module/index.js +0 -61
- package/cjs/src/templates/moduleRoot/index.js +0 -49
- package/cjs/src/templates/pkgRoot/tsconfig.json.template +0 -15
- package/cjs/src/templates/server.js +0 -87
- package/cjs/src/templates/workspaceRoot/.env.template +0 -20
- package/cjs/src/templates/workspaceRoot/.prettierignore.template +0 -10
- package/cjs/src/templates/workspaceRoot/.prettierrc.json.template +0 -6
- package/cjs/src/templates/workspaceRoot/.swcrc.template +0 -9
- package/cjs/src/templates/workspaceRoot/.vscode/settings.json.template +0 -12
- package/cjs/src/templates/workspaceRoot/README.md.template +0 -37
- package/cjs/src/templates/workspaceRoot/eslint.config.ts.template +0 -3
- package/cjs/src/templates/workspaceRoot/infra/app/Chart.yaml.template +0 -6
- package/cjs/src/templates/workspaceRoot/infra/app/templates/frontend.yaml.template +0 -182
- package/cjs/src/templates/workspaceRoot/infra/app/values/_common-values.yaml.template +0 -183
- package/cjs/src/templates/workspaceRoot/package.json.template +0 -47
- package/cjs/src/templates/workspaceRoot/tsconfig.json.template +0 -27
- package/esm/index.js +0 -7758
- package/esm/src/guidelines/___library/sharedUiStructureDescription.en.md +0 -767
- package/esm/src/guidelines/___library/utilUiStructureDescription.en.md +0 -395
- package/esm/src/guidelines/___lint/lintRuleDescription.en.md +0 -64
- package/esm/src/guidelines/___module/moduleStructureDescription.en.md +0 -80
- package/esm/src/guidelines/componentRule/componentRule.generate.json +0 -131
- package/esm/src/guidelines/componentRule/componentRule.instruction.md +0 -637
- package/esm/src/guidelines/cssRule/cssRule.generate.json +0 -93
- package/esm/src/guidelines/cssRule/cssRule.instruction.md +0 -435
- package/esm/src/guidelines/databaseModule/databaseModule.generate.json +0 -51
- package/esm/src/guidelines/databaseModule/databaseModule.instruction.md +0 -631
- package/esm/src/guidelines/docPageRule/docPageRule.generate.json +0 -72
- package/esm/src/guidelines/docPageRule/docPageRule.instruction.md +0 -389
- package/esm/src/guidelines/enumConstant/enumConstant.generate.json +0 -24
- package/esm/src/guidelines/enumConstant/enumConstant.instruction.md +0 -232
- package/esm/src/guidelines/framework/framework.generate.json +0 -119
- package/esm/src/guidelines/framework/framework.instruction.md +0 -1110
- package/esm/src/guidelines/howToUseStore/howToUseStore.generate.json +0 -0
- package/esm/src/guidelines/modelConstant/modelConstant.generate.json +0 -128
- package/esm/src/guidelines/modelConstant/modelConstant.instruction.md +0 -506
- package/esm/src/guidelines/modelDictionary/modelDictionary.generate.json +0 -108
- package/esm/src/guidelines/modelDictionary/modelDictionary.instruction.md +0 -547
- package/esm/src/guidelines/modelDocument/modelDocument.generate.json +0 -129
- package/esm/src/guidelines/modelDocument/modelDocument.instruction.md +0 -659
- package/esm/src/guidelines/modelService/modelService.generate.json +0 -135
- package/esm/src/guidelines/modelService/modelService.instruction.md +0 -708
- package/esm/src/guidelines/modelSignal/modelSignal.generate.json +0 -201
- package/esm/src/guidelines/modelSignal/modelSignal.instruction.md +0 -552
- package/esm/src/guidelines/modelStore/modelStore.generate.json +0 -130
- package/esm/src/guidelines/modelStore/modelStore.instruction.md +0 -590
- package/esm/src/guidelines/modelTemplate/modelTemplate.generate.json +0 -104
- package/esm/src/guidelines/modelTemplate/modelTemplate.instruction.md +0 -604
- package/esm/src/guidelines/modelUnit/modelUnit.generate.json +0 -92
- package/esm/src/guidelines/modelUnit/modelUnit.instruction.md +0 -541
- package/esm/src/guidelines/modelUtil/modelUtil.generate.json +0 -93
- package/esm/src/guidelines/modelUtil/modelUtil.instruction.md +0 -752
- package/esm/src/guidelines/modelView/modelView.generate.json +0 -80
- package/esm/src/guidelines/modelView/modelView.instruction.md +0 -1005
- package/esm/src/guidelines/modelZone/modelZone.generate.json +0 -126
- package/esm/src/guidelines/modelZone/modelZone.instruction.md +0 -528
- package/esm/src/guidelines/scalarConstant/scalarConstant.generate.json +0 -106
- package/esm/src/guidelines/scalarConstant/scalarConstant.instruction.md +0 -442
- package/esm/src/guidelines/scalarDictionary/scalarDictionary.generate.json +0 -83
- package/esm/src/guidelines/scalarDictionary/scalarDictionary.instruction.md +0 -273
- package/esm/src/guidelines/scalarModule/scalarModule.generate.json +0 -35
- package/esm/src/guidelines/scalarModule/scalarModule.instruction.md +0 -81
- package/esm/src/guidelines/sharedUiUsage/sharedUiUsage.generate.json +0 -108
- package/esm/src/guidelines/sharedUiUsage/sharedUiUsage.instruction.md +0 -310
- package/esm/src/guidelines/utilUiUsage/utilUiUsage.generate.json +0 -140
- package/esm/src/guidelines/utilUiUsage/utilUiUsage.instruction.md +0 -339
- package/esm/src/templates/__scalar/__model__/__model__.constant.js +0 -13
- package/esm/src/templates/__scalar/__model__/__model__.dictionary.js +0 -17
- package/esm/src/templates/__scalar/__model__/__model__.document.js +0 -13
- package/esm/src/templates/app/akan.config.js +0 -13
- package/esm/src/templates/app/app/[lang]/layout.js +0 -35
- package/esm/src/templates/app/app/[lang]/page.js +0 -91
- package/esm/src/templates/app/app/[lang]/styles.css.template +0 -20
- package/esm/src/templates/app/app/csr.js +0 -16
- package/esm/src/templates/app/app/index.html.template +0 -13
- package/esm/src/templates/app/app/layout.js +0 -21
- package/esm/src/templates/app/app/robots.js +0 -20
- package/esm/src/templates/app/app/sitemap.js +0 -16
- package/esm/src/templates/app/base/baseLogic.js +0 -15
- package/esm/src/templates/app/base/index.js +0 -9
- package/esm/src/templates/app/capacitor.config.ts.template +0 -8
- package/esm/src/templates/app/common/commonLogic.js +0 -15
- package/esm/src/templates/app/common/index.js +0 -9
- package/esm/src/templates/app/env/env.client.debug.ts.template +0 -7
- package/esm/src/templates/app/env/env.client.develop.ts.template +0 -7
- package/esm/src/templates/app/env/env.client.local.ts.template +0 -7
- package/esm/src/templates/app/env/env.client.main.ts.template +0 -7
- package/esm/src/templates/app/env/env.client.testing.ts.template +0 -7
- package/esm/src/templates/app/env/env.client.type.js +0 -15
- package/esm/src/templates/app/env/env.server.debug.ts.template +0 -10
- package/esm/src/templates/app/env/env.server.develop.ts.template +0 -10
- package/esm/src/templates/app/env/env.server.local.ts.template +0 -10
- package/esm/src/templates/app/env/env.server.main.ts.template +0 -10
- package/esm/src/templates/app/instrumentation.js +0 -12
- package/esm/src/templates/app/jest.config.js +0 -16
- package/esm/src/templates/app/lib/___appName__/__appName__.dictionary.js +0 -15
- package/esm/src/templates/app/lib/___appName__/__appName__.service.js +0 -11
- package/esm/src/templates/app/lib/___appName__/__appName__.signal.js +0 -15
- package/esm/src/templates/app/lib/___appName__/__appName__.store.js +0 -15
- package/esm/src/templates/app/lib/option.js +0 -27
- package/esm/src/templates/app/main.js +0 -19
- package/esm/src/templates/app/nest/backendLogic.js +0 -14
- package/esm/src/templates/app/nest/index.js +0 -9
- package/esm/src/templates/app/next/frontendLogic.js +0 -14
- package/esm/src/templates/app/next/index.js +0 -9
- package/esm/src/templates/app/package.json.template +0 -5
- package/esm/src/templates/app/postcss.config.js.template +0 -8
- package/esm/src/templates/app/proxy.js +0 -15
- package/esm/src/templates/app/public/favicon.ico +0 -0
- package/esm/src/templates/app/public/icons/icon-128x128.png +0 -0
- package/esm/src/templates/app/public/icons/icon-144x144.png +0 -0
- package/esm/src/templates/app/public/icons/icon-152x152.png +0 -0
- package/esm/src/templates/app/public/icons/icon-192x192.png +0 -0
- package/esm/src/templates/app/public/icons/icon-256x256.png +0 -0
- package/esm/src/templates/app/public/icons/icon-384x384.png +0 -0
- package/esm/src/templates/app/public/icons/icon-48x48.png +0 -0
- package/esm/src/templates/app/public/icons/icon-512x512.png +0 -0
- package/esm/src/templates/app/public/icons/icon-72x72.png +0 -0
- package/esm/src/templates/app/public/icons/icon-96x96.png +0 -0
- package/esm/src/templates/app/public/logo.svg +0 -70
- package/esm/src/templates/app/public/manifest.json.template +0 -67
- package/esm/src/templates/app/tsconfig.spec.json.template +0 -7
- package/esm/src/templates/app/ui/UiComponent.js +0 -18
- package/esm/src/templates/app/ui/index.js +0 -9
- package/esm/src/templates/client.js +0 -27
- package/esm/src/templates/crudPages/[__model__Id]/edit/page.js +0 -52
- package/esm/src/templates/crudPages/[__model__Id]/page.js +0 -58
- package/esm/src/templates/crudPages/new/page.js +0 -47
- package/esm/src/templates/crudPages/page.js +0 -48
- package/esm/src/templates/crudSinglePage/page.js +0 -42
- package/esm/src/templates/env/_env.server.type.js +0 -19
- package/esm/src/templates/index.js +0 -9
- package/esm/src/templates/lib/__lib/lib.constant.js +0 -37
- package/esm/src/templates/lib/__lib/lib.dictionary.js +0 -30
- package/esm/src/templates/lib/__lib/lib.document.js +0 -32
- package/esm/src/templates/lib/__lib/lib.service.js +0 -39
- package/esm/src/templates/lib/__lib/lib.signal.js +0 -35
- package/esm/src/templates/lib/__lib/lib.store.js +0 -32
- package/esm/src/templates/lib/cnst.js +0 -36
- package/esm/src/templates/lib/db.js +0 -33
- package/esm/src/templates/lib/sig.js +0 -51
- package/esm/src/templates/lib/srv.js +0 -30
- package/esm/src/templates/lib/st.js +0 -30
- package/esm/src/templates/lib/useClient.js +0 -20
- package/esm/src/templates/lib/useServer.js +0 -11
- package/esm/src/templates/libRoot/.gitignore.template +0 -16
- package/esm/src/templates/libRoot/akan.config.js +0 -13
- package/esm/src/templates/libRoot/base/baseLogic.js +0 -15
- package/esm/src/templates/libRoot/base/index.js +0 -9
- package/esm/src/templates/libRoot/common/commonLogic.js +0 -15
- package/esm/src/templates/libRoot/common/index.js +0 -9
- package/esm/src/templates/libRoot/env/env.server.example.ts.template +0 -6
- package/esm/src/templates/libRoot/env/env.server.testing.ts.template +0 -6
- package/esm/src/templates/libRoot/jest.config.js +0 -16
- package/esm/src/templates/libRoot/lib/___libName__/__libName__.service.js +0 -13
- package/esm/src/templates/libRoot/lib/___libName__/__libName__.store.js +0 -15
- package/esm/src/templates/libRoot/lib/option.js +0 -26
- package/esm/src/templates/libRoot/nest/backendLogic.js +0 -14
- package/esm/src/templates/libRoot/nest/index.js +0 -9
- package/esm/src/templates/libRoot/next/frontendLogic.js +0 -14
- package/esm/src/templates/libRoot/next/index.js +0 -9
- package/esm/src/templates/libRoot/package.json.template +0 -5
- package/esm/src/templates/libRoot/tsconfig.spec.json.template +0 -7
- package/esm/src/templates/libRoot/ui/index.js +0 -9
- package/esm/src/templates/localDev/docker-compose.yaml.template +0 -42
- package/esm/src/templates/module/__Model__.Unit.js +0 -23
- package/esm/src/templates/module/__Model__.Util.js +0 -27
- package/esm/src/templates/module/__model__.document.js +0 -26
- package/esm/src/templates/module/__model__.service.js +0 -13
- package/esm/src/templates/module/__model__.store.js +0 -18
- package/esm/src/templates/module/index.js +0 -41
- package/esm/src/templates/moduleRoot/index.js +0 -29
- package/esm/src/templates/pkgRoot/tsconfig.json.template +0 -15
- package/esm/src/templates/server.js +0 -67
- package/esm/src/templates/workspaceRoot/.env.template +0 -20
- package/esm/src/templates/workspaceRoot/.gitignore.template +0 -119
- package/esm/src/templates/workspaceRoot/.prettierignore.template +0 -10
- package/esm/src/templates/workspaceRoot/.prettierrc.json.template +0 -6
- package/esm/src/templates/workspaceRoot/.swcrc.template +0 -9
- package/esm/src/templates/workspaceRoot/.vscode/settings.json.template +0 -12
- package/esm/src/templates/workspaceRoot/README.md.template +0 -37
- package/esm/src/templates/workspaceRoot/eslint.config.ts.template +0 -3
- package/esm/src/templates/workspaceRoot/infra/app/Chart.yaml.template +0 -6
- package/esm/src/templates/workspaceRoot/infra/app/templates/frontend.yaml.template +0 -182
- package/esm/src/templates/workspaceRoot/infra/app/values/_common-values.yaml.template +0 -183
- package/esm/src/templates/workspaceRoot/package.json.template +0 -47
- package/esm/src/templates/workspaceRoot/tsconfig.json.template +0 -27
- package/index.d.ts +0 -2
- package/src/application/application.command.d.ts +0 -31
- package/src/application/application.interface.d.ts +0 -40
- package/src/application/application.runner.d.ts +0 -73
- package/src/application/application.script.d.ts +0 -83
- package/src/cloud/cloud.command.d.ts +0 -12
- package/src/cloud/cloud.runner.d.ts +0 -11
- package/src/cloud/cloud.script.d.ts +0 -11
- package/src/guideline/guideline.command.d.ts +0 -9
- package/src/guideline/guideline.prompt.d.ts +0 -29
- package/src/guideline/guideline.runner.d.ts +0 -19
- package/src/guideline/guideline.script.d.ts +0 -12
- package/src/guidelines/___library/sharedUiStructureDescription.en.md +0 -767
- package/src/guidelines/___library/utilUiStructureDescription.en.md +0 -395
- package/src/guidelines/___lint/lintRuleDescription.en.md +0 -64
- package/src/guidelines/___module/moduleStructureDescription.en.md +0 -80
- package/src/guidelines/componentRule/componentRule.instruction.md +0 -637
- package/src/guidelines/cssRule/cssRule.instruction.md +0 -435
- package/src/guidelines/databaseModule/databaseModule.instruction.md +0 -631
- package/src/guidelines/docPageRule/docPageRule.instruction.md +0 -389
- package/src/guidelines/enumConstant/enumConstant.instruction.md +0 -232
- package/src/guidelines/framework/framework.instruction.md +0 -1110
- package/src/guidelines/modelConstant/modelConstant.instruction.md +0 -506
- package/src/guidelines/modelDictionary/modelDictionary.instruction.md +0 -547
- package/src/guidelines/modelDocument/modelDocument.instruction.md +0 -659
- package/src/guidelines/modelService/modelService.instruction.md +0 -708
- package/src/guidelines/modelSignal/modelSignal.instruction.md +0 -552
- package/src/guidelines/modelStore/modelStore.instruction.md +0 -590
- package/src/guidelines/modelTemplate/modelTemplate.instruction.md +0 -604
- package/src/guidelines/modelUnit/modelUnit.instruction.md +0 -541
- package/src/guidelines/modelUtil/modelUtil.instruction.md +0 -752
- package/src/guidelines/modelView/modelView.instruction.md +0 -1005
- package/src/guidelines/modelZone/modelZone.instruction.md +0 -528
- package/src/guidelines/scalarConstant/scalarConstant.instruction.md +0 -442
- package/src/guidelines/scalarDictionary/scalarDictionary.instruction.md +0 -273
- package/src/guidelines/scalarModule/scalarModule.instruction.md +0 -81
- package/src/guidelines/sharedUiUsage/sharedUiUsage.instruction.md +0 -310
- package/src/guidelines/utilUiUsage/utilUiUsage.instruction.md +0 -339
- package/src/library/library.command.d.ts +0 -9
- package/src/library/library.runner.d.ts +0 -9
- package/src/library/library.script.d.ts +0 -9
- package/src/module/module.command.d.ts +0 -10
- package/src/module/module.prompt.d.ts +0 -13
- package/src/module/module.request.d.ts +0 -63
- package/src/module/module.runner.d.ts +0 -53
- package/src/module/module.script.d.ts +0 -17
- package/src/package/package.command.d.ts +0 -10
- package/src/package/package.runner.d.ts +0 -9
- package/src/package/package.script.d.ts +0 -10
- package/src/page/page.command.d.ts +0 -6
- package/src/page/page.runner.d.ts +0 -8
- package/src/page/page.script.d.ts +0 -9
- package/src/scalar/scalar.command.d.ts +0 -7
- package/src/scalar/scalar.prompt.d.ts +0 -23
- package/src/scalar/scalar.runner.d.ts +0 -14
- package/src/scalar/scalar.script.d.ts +0 -7
- package/src/templates/__scalar/__model__/__model__.constant.d.ts +0 -7
- package/src/templates/__scalar/__model__/__model__.dictionary.d.ts +0 -7
- package/src/templates/__scalar/__model__/__model__.document.d.ts +0 -7
- package/src/templates/app/akan.config.d.ts +0 -6
- package/src/templates/app/app/[lang]/layout.d.ts +0 -11
- package/src/templates/app/app/[lang]/page.d.ts +0 -9
- package/src/templates/app/app/csr.d.ts +0 -9
- package/src/templates/app/app/layout.d.ts +0 -9
- package/src/templates/app/app/robots.d.ts +0 -6
- package/src/templates/app/app/sitemap.d.ts +0 -6
- package/src/templates/app/base/baseLogic.d.ts +0 -6
- package/src/templates/app/base/index.d.ts +0 -6
- package/src/templates/app/common/commonLogic.d.ts +0 -6
- package/src/templates/app/common/index.d.ts +0 -6
- package/src/templates/app/env/env.client.d.ts +0 -6
- package/src/templates/app/env/env.client.type.d.ts +0 -6
- package/src/templates/app/env/env.server.d.ts +0 -6
- package/src/templates/app/instrumentation.d.ts +0 -6
- package/src/templates/app/jest.config.d.ts +0 -6
- package/src/templates/app/lib/___appName__/__appName__.dictionary.d.ts +0 -7
- package/src/templates/app/lib/___appName__/__appName__.service.d.ts +0 -7
- package/src/templates/app/lib/___appName__/__appName__.signal.d.ts +0 -7
- package/src/templates/app/lib/___appName__/__appName__.store.d.ts +0 -7
- package/src/templates/app/lib/option.d.ts +0 -6
- package/src/templates/app/main.d.ts +0 -6
- package/src/templates/app/nest/backendLogic.d.ts +0 -6
- package/src/templates/app/nest/index.d.ts +0 -6
- package/src/templates/app/next/frontendLogic.d.ts +0 -6
- package/src/templates/app/next/index.d.ts +0 -6
- package/src/templates/app/proxy.d.ts +0 -6
- package/src/templates/app/ui/UiComponent.d.ts +0 -9
- package/src/templates/app/ui/index.d.ts +0 -6
- package/src/templates/client.d.ts +0 -4
- package/src/templates/crudPages/[__model__Id]/edit/page.d.ts +0 -11
- package/src/templates/crudPages/[__model__Id]/page.d.ts +0 -11
- package/src/templates/crudPages/new/page.d.ts +0 -11
- package/src/templates/crudPages/page.d.ts +0 -11
- package/src/templates/crudSinglePage/page.d.ts +0 -11
- package/src/templates/env/_env.server.type.d.ts +0 -7
- package/src/templates/index.d.ts +0 -6
- package/src/templates/lib/__lib/lib.constant.d.ts +0 -4
- package/src/templates/lib/__lib/lib.dictionary.d.ts +0 -4
- package/src/templates/lib/__lib/lib.document.d.ts +0 -4
- package/src/templates/lib/__lib/lib.service.d.ts +0 -4
- package/src/templates/lib/__lib/lib.signal.d.ts +0 -4
- package/src/templates/lib/__lib/lib.store.d.ts +0 -4
- package/src/templates/lib/cnst.d.ts +0 -4
- package/src/templates/lib/db.d.ts +0 -4
- package/src/templates/lib/dict.d.ts +0 -4
- package/src/templates/lib/sig.d.ts +0 -4
- package/src/templates/lib/srv.d.ts +0 -4
- package/src/templates/lib/st.d.ts +0 -4
- package/src/templates/lib/useClient.d.ts +0 -4
- package/src/templates/lib/useServer.d.ts +0 -4
- package/src/templates/libRoot/akan.config.d.ts +0 -5
- package/src/templates/libRoot/base/baseLogic.d.ts +0 -5
- package/src/templates/libRoot/base/index.d.ts +0 -5
- package/src/templates/libRoot/common/commonLogic.d.ts +0 -5
- package/src/templates/libRoot/common/index.d.ts +0 -5
- package/src/templates/libRoot/jest.config.d.ts +0 -6
- package/src/templates/libRoot/lib/___libName__/__libName__.dictionary.d.ts +0 -6
- package/src/templates/libRoot/lib/___libName__/__libName__.service.d.ts +0 -6
- package/src/templates/libRoot/lib/___libName__/__libName__.store.d.ts +0 -6
- package/src/templates/libRoot/lib/option.d.ts +0 -6
- package/src/templates/libRoot/nest/backendLogic.d.ts +0 -5
- package/src/templates/libRoot/nest/index.d.ts +0 -5
- package/src/templates/libRoot/next/frontendLogic.d.ts +0 -5
- package/src/templates/libRoot/next/index.d.ts +0 -5
- package/src/templates/libRoot/ui/index.d.ts +0 -5
- package/src/templates/module/__Model__.Template.d.ts +0 -11
- package/src/templates/module/__Model__.Unit.d.ts +0 -11
- package/src/templates/module/__Model__.Util.d.ts +0 -11
- package/src/templates/module/__Model__.View.d.ts +0 -11
- package/src/templates/module/__Model__.Zone.d.ts +0 -11
- package/src/templates/module/__model__.constant.d.ts +0 -8
- package/src/templates/module/__model__.dictionary.d.ts +0 -8
- package/src/templates/module/__model__.document.d.ts +0 -8
- package/src/templates/module/__model__.service.d.ts +0 -8
- package/src/templates/module/__model__.signal.d.ts +0 -9
- package/src/templates/module/__model__.store.d.ts +0 -8
- package/src/templates/module/index.d.ts +0 -11
- package/src/templates/moduleRoot/index.d.ts +0 -11
- package/src/templates/server.d.ts +0 -4
- package/src/workspace/workspace.command.d.ts +0 -12
- package/src/workspace/workspace.runner.d.ts +0 -13
- package/src/workspace/workspace.script.d.ts +0 -24
- package/ui/MultiScrollList.d.ts +0 -14
- /package/{cjs/src/templates → templates}/app/package.json.template +0 -0
- /package/{cjs/src/templates → templates}/libRoot/.gitignore.template +0 -0
- /package/{cjs/src/templates → templates}/libRoot/env/env.server.example.ts.template +0 -0
- /package/{cjs/src/templates → templates}/libRoot/env/env.server.testing.ts.template +0 -0
- /package/{cjs/src/templates → templates}/libRoot/package.json.template +0 -0
- /package/{cjs/src/templates → templates}/libRoot/tsconfig.json.template +0 -0
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
# @util/ui Component Library Guide
|
|
2
|
-
|
|
3
|
-
This guide explains how to use the `@util/ui` component library in the Akan.js framework. The `libs/util/ui` directory contains a comprehensive React component library designed for modern web applications with consistent styling, type safety, and advanced functionality.
|
|
4
|
-
|
|
5
|
-
## Importing Components
|
|
6
|
-
|
|
7
|
-
Import components from the `@util/ui` package:
|
|
8
|
-
|
|
9
|
-
```tsx
|
|
10
|
-
// Single component import
|
|
11
|
-
import { Button } from "@util/ui";
|
|
12
|
-
|
|
13
|
-
// Multiple components import
|
|
14
|
-
import { Button, Input, Link, Image } from "@util/ui";
|
|
15
|
-
|
|
16
|
-
// Namespace component import
|
|
17
|
-
import { Dialog } from "@akanjs/ui";
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Component Organization and Usage
|
|
21
|
-
|
|
22
|
-
The component library follows a namespace pattern where complex components expose subcomponents as properties:
|
|
23
|
-
|
|
24
|
-
```tsx
|
|
25
|
-
// Namespaced component usage example
|
|
26
|
-
<Dialog>
|
|
27
|
-
<Dialog.Trigger>Open Dialog</Dialog.Trigger>
|
|
28
|
-
<Dialog.Modal>
|
|
29
|
-
<Dialog.Title>Title</Dialog.Title>
|
|
30
|
-
<Dialog.Content>Content</Dialog.Content>
|
|
31
|
-
<Dialog.Action>
|
|
32
|
-
<button>Confirm</button>
|
|
33
|
-
</Dialog.Action>
|
|
34
|
-
</Dialog.Modal>
|
|
35
|
-
</Dialog>
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Common Component Patterns
|
|
39
|
-
|
|
40
|
-
### Form Fields and Data Input
|
|
41
|
-
|
|
42
|
-
The library provides comprehensive form components with built-in validation:
|
|
43
|
-
|
|
44
|
-
```tsx
|
|
45
|
-
// Button with loading state handling
|
|
46
|
-
<Button
|
|
47
|
-
onClick={async (e, { onError }) => {
|
|
48
|
-
try {
|
|
49
|
-
const result = await saveData();
|
|
50
|
-
return result;
|
|
51
|
-
} catch (error) {
|
|
52
|
-
onError("Failed to save");
|
|
53
|
-
}
|
|
54
|
-
}}
|
|
55
|
-
onSuccess={(result) => handleSuccess(result)}
|
|
56
|
-
>
|
|
57
|
-
Save
|
|
58
|
-
</Button>
|
|
59
|
-
|
|
60
|
-
// Text input with validation
|
|
61
|
-
<Input
|
|
62
|
-
value={inputValue}
|
|
63
|
-
onChange={(value) => setInputValue(value)}
|
|
64
|
-
validate={(value) => value.length > 0 || "Field is required"}
|
|
65
|
-
placeholder="Enter value"
|
|
66
|
-
inputClassName="w-full"
|
|
67
|
-
cacheKey="unique-input-key" // For session storage persistence
|
|
68
|
-
icon={<SomeIcon />}
|
|
69
|
-
/>
|
|
70
|
-
|
|
71
|
-
// Select dropdown
|
|
72
|
-
<Select
|
|
73
|
-
value={selectedValue}
|
|
74
|
-
options={optionsList}
|
|
75
|
-
searchable
|
|
76
|
-
onChange={(value) => setSelectedValue(value)}
|
|
77
|
-
renderOption={(option) => <span>{option.label}</span>}
|
|
78
|
-
/>
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### Data Display Components
|
|
82
|
-
|
|
83
|
-
Use these components to present data:
|
|
84
|
-
|
|
85
|
-
```tsx
|
|
86
|
-
// Image with optimized loading
|
|
87
|
-
<Image
|
|
88
|
-
src="/path/to/image.jpg"
|
|
89
|
-
alt="Description"
|
|
90
|
-
className="rounded-md"
|
|
91
|
-
width={400}
|
|
92
|
-
height={300}
|
|
93
|
-
/>
|
|
94
|
-
|
|
95
|
-
// Avatar for user profiles
|
|
96
|
-
<Avatar
|
|
97
|
-
src={user.profileImage}
|
|
98
|
-
className="w-10 h-10"
|
|
99
|
-
/>
|
|
100
|
-
|
|
101
|
-
// Empty state
|
|
102
|
-
<Empty
|
|
103
|
-
description="No items found"
|
|
104
|
-
minHeight={200}
|
|
105
|
-
/>
|
|
106
|
-
|
|
107
|
-
// Chart visualization
|
|
108
|
-
<Chart.Bar
|
|
109
|
-
data={chartData}
|
|
110
|
-
options={chartOptions}
|
|
111
|
-
/>
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### Navigation Components
|
|
115
|
-
|
|
116
|
-
The library provides various navigation patterns:
|
|
117
|
-
|
|
118
|
-
```tsx
|
|
119
|
-
// Adaptive link (auto-switches between CSR/Next.js)
|
|
120
|
-
<Link href="/some-path">Go to Page</Link>
|
|
121
|
-
|
|
122
|
-
// Back navigation
|
|
123
|
-
<Link.Back>Go Back</Link.Back>
|
|
124
|
-
|
|
125
|
-
// Tabbed interface
|
|
126
|
-
<Tab.Provider defaultMenu="tab1">
|
|
127
|
-
<div className="flex">
|
|
128
|
-
<Tab.Menu menu="tab1">Tab 1</Tab.Menu>
|
|
129
|
-
<Tab.Menu menu="tab2">Tab 2</Tab.Menu>
|
|
130
|
-
</div>
|
|
131
|
-
<Tab.Panel menu="tab1">
|
|
132
|
-
Content for tab 1
|
|
133
|
-
</Tab.Panel>
|
|
134
|
-
<Tab.Panel menu="tab2" loading="lazy">
|
|
135
|
-
Content for tab 2
|
|
136
|
-
</Tab.Panel>
|
|
137
|
-
</Tab.Provider>
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
### Layout Components
|
|
141
|
-
|
|
142
|
-
Create consistent layouts across your application:
|
|
143
|
-
|
|
144
|
-
```tsx
|
|
145
|
-
// Page layout with header
|
|
146
|
-
<Layout>
|
|
147
|
-
<Layout.Header type="hide">Header Content</Layout.Header>
|
|
148
|
-
<main>Page Content</main>
|
|
149
|
-
<Layout.Navbar>Navigation Items</Layout.Navbar>
|
|
150
|
-
</Layout>
|
|
151
|
-
|
|
152
|
-
// Modal dialog
|
|
153
|
-
<Modal
|
|
154
|
-
open={isModalOpen}
|
|
155
|
-
onCancel={() => setModalOpen(false)}
|
|
156
|
-
title="Modal Title"
|
|
157
|
-
>
|
|
158
|
-
Modal content goes here
|
|
159
|
-
</Modal>
|
|
160
|
-
|
|
161
|
-
// Mobile bottom sheet
|
|
162
|
-
<BottomSheet
|
|
163
|
-
open={isBottomSheetOpen}
|
|
164
|
-
onCancel={() => setBottomSheetOpen(false)}
|
|
165
|
-
type="half"
|
|
166
|
-
>
|
|
167
|
-
Bottom sheet content
|
|
168
|
-
</BottomSheet>
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
### Media and File Components
|
|
172
|
-
|
|
173
|
-
Handle files and media with these components:
|
|
174
|
-
|
|
175
|
-
```tsx
|
|
176
|
-
// Single image upload with cropping
|
|
177
|
-
<Upload.Image
|
|
178
|
-
file={imageFile}
|
|
179
|
-
onChange={async (file) => {
|
|
180
|
-
// Handle file upload
|
|
181
|
-
const uploadedFile = await uploadFile(file);
|
|
182
|
-
setImageFile(uploadedFile);
|
|
183
|
-
}}
|
|
184
|
-
onRemove={() => setImageFile(null)}
|
|
185
|
-
/>
|
|
186
|
-
|
|
187
|
-
// Multiple file upload
|
|
188
|
-
<Upload.FileList
|
|
189
|
-
multiple
|
|
190
|
-
fileList={fileList}
|
|
191
|
-
onChange={async (files) => {
|
|
192
|
-
// Handle multiple file upload
|
|
193
|
-
const uploadedFiles = await uploadFiles(files);
|
|
194
|
-
setFileList([...fileList, ...uploadedFiles]);
|
|
195
|
-
}}
|
|
196
|
-
onRemove={(file) => {
|
|
197
|
-
setFileList(fileList.filter(f => f.id !== file.id));
|
|
198
|
-
}}
|
|
199
|
-
/>
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
### Loading and Feedback Components
|
|
203
|
-
|
|
204
|
-
Provide user feedback with these components:
|
|
205
|
-
|
|
206
|
-
```tsx
|
|
207
|
-
// Loading area overlay
|
|
208
|
-
<Loading.Area />
|
|
209
|
-
|
|
210
|
-
// Loading spinner
|
|
211
|
-
<Loading.Spin isCenter />
|
|
212
|
-
|
|
213
|
-
// Progress bar
|
|
214
|
-
<Loading.ProgressBar value={75} max={100} />
|
|
215
|
-
|
|
216
|
-
// Loading skeleton
|
|
217
|
-
<Loading.Skeleton />
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
## Integration with Akan.js Architecture
|
|
221
|
-
|
|
222
|
-
The `@util/ui` components are designed to work within the Akan.js module architecture pattern:
|
|
223
|
-
|
|
224
|
-
### In Model.Template.tsx
|
|
225
|
-
|
|
226
|
-
```tsx
|
|
227
|
-
// Form templates for creating/editing records
|
|
228
|
-
import { Button, Input, Select } from "@util/ui";
|
|
229
|
-
|
|
230
|
-
export const UserTemplate = ({ user, onSubmit }) => {
|
|
231
|
-
return (
|
|
232
|
-
<form onSubmit={onSubmit}>
|
|
233
|
-
<Input
|
|
234
|
-
label="Username"
|
|
235
|
-
value={user.username}
|
|
236
|
-
onChange={(value) => updateUser({ username: value })}
|
|
237
|
-
validate={(value) => value.length > 3 || "Username too short"}
|
|
238
|
-
/>
|
|
239
|
-
<Select label="Role" value={user.role} options={roleOptions} onChange={(value) => updateUser({ role: value })} />
|
|
240
|
-
<Button type="submit">Save User</Button>
|
|
241
|
-
</form>
|
|
242
|
-
);
|
|
243
|
-
};
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
### In Model.Unit.tsx
|
|
247
|
-
|
|
248
|
-
```tsx
|
|
249
|
-
// Card/list item components for displaying records
|
|
250
|
-
import { Avatar, Link } from "@util/ui";
|
|
251
|
-
|
|
252
|
-
export const UserUnit = ({ user }) => {
|
|
253
|
-
return (
|
|
254
|
-
<div className="flex items-center rounded border p-4">
|
|
255
|
-
<Avatar src={user.profileImage} className="mr-4" />
|
|
256
|
-
<div>
|
|
257
|
-
<h3>{user.name}</h3>
|
|
258
|
-
<p>{user.email}</p>
|
|
259
|
-
</div>
|
|
260
|
-
<Link href={`/users/${user.id}`}>View Profile</Link>
|
|
261
|
-
</div>
|
|
262
|
-
);
|
|
263
|
-
};
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
### In Model.View.tsx
|
|
267
|
-
|
|
268
|
-
```tsx
|
|
269
|
-
// Full page views for displaying detailed records
|
|
270
|
-
import { Tab, Layout, Loading } from "@util/ui";
|
|
271
|
-
|
|
272
|
-
export const UserView = ({ user, isLoading }) => {
|
|
273
|
-
if (isLoading) return <Loading.Area />;
|
|
274
|
-
|
|
275
|
-
return (
|
|
276
|
-
<Layout>
|
|
277
|
-
<Layout.Header>{user.name}'s Profile</Layout.Header>
|
|
278
|
-
<Tab.Provider defaultMenu="details">
|
|
279
|
-
<Tab.Menu menu="details">Details</Tab.Menu>
|
|
280
|
-
<Tab.Menu menu="activity">Activity</Tab.Menu>
|
|
281
|
-
|
|
282
|
-
<Tab.Panel menu="details">{/* User details content */}</Tab.Panel>
|
|
283
|
-
<Tab.Panel menu="activity" loading="lazy">
|
|
284
|
-
{/* User activity content */}
|
|
285
|
-
</Tab.Panel>
|
|
286
|
-
</Tab.Provider>
|
|
287
|
-
</Layout>
|
|
288
|
-
);
|
|
289
|
-
};
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
## Best Practices
|
|
293
|
-
|
|
294
|
-
1. **Component Selection**
|
|
295
|
-
|
|
296
|
-
- Use the most specific component for the task
|
|
297
|
-
- Prefer namespaced components for complex UI elements
|
|
298
|
-
- Combine components to create consistent patterns
|
|
299
|
-
|
|
300
|
-
2. **Props Usage**
|
|
301
|
-
|
|
302
|
-
- Only use the documented props for each component
|
|
303
|
-
- Follow the TypeScript interfaces for proper type checking
|
|
304
|
-
- Use className props for styling customization
|
|
305
|
-
|
|
306
|
-
3. **Styling**
|
|
307
|
-
|
|
308
|
-
- Use Tailwind CSS classes for styling customization
|
|
309
|
-
- Maintain consistent spacing and layout
|
|
310
|
-
- Follow responsive design patterns
|
|
311
|
-
|
|
312
|
-
4. **Accessibility**
|
|
313
|
-
|
|
314
|
-
- Use proper ARIA attributes when required
|
|
315
|
-
- Ensure keyboard navigation works correctly
|
|
316
|
-
- Maintain color contrast requirements
|
|
317
|
-
|
|
318
|
-
5. **Performance**
|
|
319
|
-
- Use lazy loading for heavy components
|
|
320
|
-
- Implement proper memoization for complex components
|
|
321
|
-
- Keep render cycles efficient
|
|
322
|
-
|
|
323
|
-
## [Strict Caution]
|
|
324
|
-
|
|
325
|
-
- Every component must be used exactly as described in this documentation
|
|
326
|
-
- Do not add any additional props to the components beyond those documented
|
|
327
|
-
- Only the components explicitly listed in the documentation are available
|
|
328
|
-
- Follow the established patterns for component composition and layout
|
|
329
|
-
|
|
330
|
-
## Framework Integration Features
|
|
331
|
-
|
|
332
|
-
- TypeScript support with strict typing
|
|
333
|
-
- Responsive design with mobile-first approach
|
|
334
|
-
- Internationalization (i18n) integration
|
|
335
|
-
- Session storage caching for form inputs
|
|
336
|
-
- Accessibility compliance
|
|
337
|
-
- Consistent DaisyUI/Tailwind CSS styling
|
|
338
|
-
- Modern React patterns (hooks, context, providers)
|
|
339
|
-
- Error handling and validation systems
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Lib, Workspace } from "@akanjs/devkit";
|
|
2
|
-
import { LibraryScript } from "./library.script";
|
|
3
|
-
export declare class LibraryCommand {
|
|
4
|
-
libraryScript: LibraryScript;
|
|
5
|
-
createLibrary(libName: string, workspace: Workspace): Promise<void>;
|
|
6
|
-
removeLibrary(lib: Lib): Promise<void>;
|
|
7
|
-
syncLibrary(lib: Lib): Promise<void>;
|
|
8
|
-
installLibrary(libName: string, workspace: Workspace): Promise<void>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Lib, LibExecutor, Workspace } from "@akanjs/devkit";
|
|
2
|
-
export declare class LibraryRunner {
|
|
3
|
-
#private;
|
|
4
|
-
createLibrary(libName: string, workspace: Workspace): Promise<LibExecutor>;
|
|
5
|
-
removeLibrary(lib: Lib): Promise<void>;
|
|
6
|
-
installLibrary(workspace: Workspace, libName: string): Promise<LibExecutor>;
|
|
7
|
-
mergeLibraryDependencies(lib: Lib): Promise<void>;
|
|
8
|
-
testLibrary(lib: Lib): Promise<void>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Lib, Workspace } from "@akanjs/devkit";
|
|
2
|
-
export declare class LibraryScript {
|
|
3
|
-
#private;
|
|
4
|
-
syncLibrary(lib: Lib): Promise<import("@akanjs/devkit").AppInfo | import("@akanjs/devkit").LibInfo>;
|
|
5
|
-
createLibrary(libName: string, workspace: Workspace): Promise<void>;
|
|
6
|
-
removeLibrary(lib: Lib): Promise<void>;
|
|
7
|
-
installLibrary(workspace: Workspace, libName: string): Promise<void>;
|
|
8
|
-
testLibrary(lib: Lib): Promise<void>;
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Module, Sys } from "@akanjs/devkit";
|
|
2
|
-
import { ModuleScript } from "./module.script";
|
|
3
|
-
export declare class ModuleCommand {
|
|
4
|
-
moduleScript: ModuleScript;
|
|
5
|
-
createModule(moduleName: string, sys: Sys, page: boolean): Promise<void>;
|
|
6
|
-
removeModule(module: Module): Promise<void>;
|
|
7
|
-
createView(module: Module): Promise<void>;
|
|
8
|
-
createUnit(module: Module): Promise<void>;
|
|
9
|
-
createTemplate(module: Module): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { FileContent } from "@akanjs/devkit";
|
|
2
|
-
export interface ComponentDefaultDescriptionProps {
|
|
3
|
-
sysName: string;
|
|
4
|
-
modelName: string;
|
|
5
|
-
ModelName: string;
|
|
6
|
-
constant: string;
|
|
7
|
-
properties: {
|
|
8
|
-
key: string;
|
|
9
|
-
source: string;
|
|
10
|
-
}[];
|
|
11
|
-
exampleFiles: FileContent[];
|
|
12
|
-
}
|
|
13
|
-
export declare const componentDefaultDescription: ({ modelName, ModelName, exampleFiles, constant, properties, }: ComponentDefaultDescriptionProps) => string;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { AppConfigResult, LibConfigResult } from "@akanjs/config";
|
|
2
|
-
import { type FileContent, Prompter } from "@akanjs/devkit";
|
|
3
|
-
interface ModuleRequestProps {
|
|
4
|
-
sysType: "app" | "lib";
|
|
5
|
-
sysName: string;
|
|
6
|
-
config: LibConfigResult | AppConfigResult;
|
|
7
|
-
modelName: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class ModuleRequest extends Prompter {
|
|
10
|
-
sysType: "app" | "lib";
|
|
11
|
-
sysName: string;
|
|
12
|
-
config: LibConfigResult | AppConfigResult;
|
|
13
|
-
modelName: string;
|
|
14
|
-
constructor(options: ModuleRequestProps);
|
|
15
|
-
requestModelConstant({ modelDesc, modelSchemaDesign, boilerplate, exampleFiles, }: {
|
|
16
|
-
modelDesc: string;
|
|
17
|
-
modelSchemaDesign: string;
|
|
18
|
-
boilerplate: string;
|
|
19
|
-
exampleFiles: FileContent[];
|
|
20
|
-
}): Promise<string>;
|
|
21
|
-
}
|
|
22
|
-
interface RequestProps {
|
|
23
|
-
sysName: string;
|
|
24
|
-
modelName: string;
|
|
25
|
-
ModelName?: string;
|
|
26
|
-
boilerplate: string;
|
|
27
|
-
properties?: {
|
|
28
|
-
key: string;
|
|
29
|
-
source: string;
|
|
30
|
-
}[];
|
|
31
|
-
exampleFiles: FileContent[];
|
|
32
|
-
}
|
|
33
|
-
interface RequestDictionaryProps extends RequestProps {
|
|
34
|
-
constant: string;
|
|
35
|
-
modelDesc: string;
|
|
36
|
-
modelSchemaDesign: string;
|
|
37
|
-
}
|
|
38
|
-
export declare const requestDictionary: ({ sysName, modelName, constant, modelDesc, modelSchemaDesign, boilerplate, exampleFiles, }: RequestDictionaryProps) => string;
|
|
39
|
-
interface RequestTemplateProps extends RequestProps {
|
|
40
|
-
constant: string;
|
|
41
|
-
properties: {
|
|
42
|
-
key: string;
|
|
43
|
-
source: string;
|
|
44
|
-
}[];
|
|
45
|
-
}
|
|
46
|
-
export declare const requestTemplate: ({ sysName, modelName, ModelName, boilerplate, constant, properties, exampleFiles, }: RequestTemplateProps) => string;
|
|
47
|
-
interface RequestViewProps extends RequestProps {
|
|
48
|
-
constant: string;
|
|
49
|
-
properties: {
|
|
50
|
-
key: string;
|
|
51
|
-
source: string;
|
|
52
|
-
}[];
|
|
53
|
-
}
|
|
54
|
-
export declare const requestView: ({ sysName, modelName, ModelName, boilerplate, constant, properties, exampleFiles, }: RequestViewProps) => string;
|
|
55
|
-
interface RequestUnitProps extends RequestProps {
|
|
56
|
-
constant: string;
|
|
57
|
-
properties: {
|
|
58
|
-
key: string;
|
|
59
|
-
source: string;
|
|
60
|
-
}[];
|
|
61
|
-
}
|
|
62
|
-
export declare const requestUnit: ({ sysName, modelName, ModelName, constant, properties, boilerplate, exampleFiles, }: RequestUnitProps) => string;
|
|
63
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { type Module, Workspace } from "@akanjs/devkit";
|
|
2
|
-
export declare class ModuleRunner {
|
|
3
|
-
createModule(workspace: Workspace, sysType: "app" | "lib", sysName: string, moduleName: string, description: string): Promise<void>;
|
|
4
|
-
removeModule(module: Module): Promise<void>;
|
|
5
|
-
createComponentTemplate(module: Module, type: "unit" | "view" | "template" | "zone" | "util"): Promise<{
|
|
6
|
-
component: {
|
|
7
|
-
filename: string;
|
|
8
|
-
content: string;
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
11
|
-
createModuleTemplate(module: Module): Promise<{
|
|
12
|
-
constant: {
|
|
13
|
-
filename: string;
|
|
14
|
-
content: string;
|
|
15
|
-
};
|
|
16
|
-
dictionary: {
|
|
17
|
-
filename: string;
|
|
18
|
-
content: string;
|
|
19
|
-
};
|
|
20
|
-
service: {
|
|
21
|
-
filename: string;
|
|
22
|
-
content: string;
|
|
23
|
-
};
|
|
24
|
-
store: {
|
|
25
|
-
filename: string;
|
|
26
|
-
content: string;
|
|
27
|
-
};
|
|
28
|
-
signal: {
|
|
29
|
-
filename: string;
|
|
30
|
-
content: string;
|
|
31
|
-
};
|
|
32
|
-
unit: {
|
|
33
|
-
filename: string;
|
|
34
|
-
content: string;
|
|
35
|
-
};
|
|
36
|
-
view: {
|
|
37
|
-
filename: string;
|
|
38
|
-
content: string;
|
|
39
|
-
};
|
|
40
|
-
template: {
|
|
41
|
-
filename: string;
|
|
42
|
-
content: string;
|
|
43
|
-
};
|
|
44
|
-
zone: {
|
|
45
|
-
filename: string;
|
|
46
|
-
content: string;
|
|
47
|
-
};
|
|
48
|
-
util: {
|
|
49
|
-
filename: string;
|
|
50
|
-
content: string;
|
|
51
|
-
};
|
|
52
|
-
}>;
|
|
53
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type Module, type Sys, Workspace } from "@akanjs/devkit";
|
|
2
|
-
import { PageScript } from "../page/page.script";
|
|
3
|
-
export declare class ModuleScript {
|
|
4
|
-
#private;
|
|
5
|
-
pageScript: PageScript;
|
|
6
|
-
createModuleTemplate(sys: Sys, name: string, { page }?: {
|
|
7
|
-
page?: boolean;
|
|
8
|
-
}): Promise<void>;
|
|
9
|
-
createModule(sys: Sys, name: string, description?: string, schemaDescription?: string): Promise<void>;
|
|
10
|
-
createModule_(sys: Sys, name: string, description: string, schemaDescription: string): Promise<void>;
|
|
11
|
-
removeModule(mod: Module): Promise<void>;
|
|
12
|
-
createService(workspace: Workspace, name: string): Promise<void>;
|
|
13
|
-
createTest(workspace: Workspace, name: string): Promise<void>;
|
|
14
|
-
createTemplate(mod: Module): Promise<void>;
|
|
15
|
-
createUnit(mod: Module): Promise<void>;
|
|
16
|
-
createView(mod: Module): Promise<void>;
|
|
17
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Pkg, Workspace } from "@akanjs/devkit";
|
|
2
|
-
import { PackageScript } from "./package.script";
|
|
3
|
-
export declare class PackageCommand {
|
|
4
|
-
packageScript: PackageScript;
|
|
5
|
-
version(workspace: Workspace): Promise<void>;
|
|
6
|
-
createPackage(name: string, workspace: Workspace): Promise<void>;
|
|
7
|
-
removePackage(pkg: Pkg): Promise<void>;
|
|
8
|
-
syncPackage(pkg: Pkg): Promise<void>;
|
|
9
|
-
buildPackage(pkg: Pkg): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type PackageJson, type Pkg, type Workspace } from "@akanjs/devkit";
|
|
2
|
-
export declare class PackageRunner {
|
|
3
|
-
version(workspace: Workspace): Promise<void>;
|
|
4
|
-
createPackage(workspace: Workspace, pkgName: string): Promise<void>;
|
|
5
|
-
removePackage(pkg: Pkg): Promise<void>;
|
|
6
|
-
scanSync(pkg: Pkg): Promise<import("@akanjs/devkit").PkgInfo>;
|
|
7
|
-
buildPackage(pkg: Pkg): Promise<void>;
|
|
8
|
-
updateWorskpaceRootPackageJson(workspace: Workspace, rootPackageJson: PackageJson): void;
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type Pkg, type Workspace } from "@akanjs/devkit";
|
|
2
|
-
export declare class PackageScript {
|
|
3
|
-
#private;
|
|
4
|
-
version(workspace: Workspace): Promise<void>;
|
|
5
|
-
createPackage(workspace: Workspace, pkgName: string): Promise<void>;
|
|
6
|
-
removePackage(pkg: Pkg): Promise<void>;
|
|
7
|
-
syncPackage(pkg: Pkg): Promise<import("@akanjs/devkit").PkgInfo>;
|
|
8
|
-
buildPackage(pkg: Pkg): Promise<void>;
|
|
9
|
-
updateWorskpaceRootPackageJson(workspace: Workspace): void;
|
|
10
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Sys } from "@akanjs/devkit";
|
|
2
|
-
import { ScalarScript } from "./scalar.script";
|
|
3
|
-
export declare class ScalarCommand {
|
|
4
|
-
scalarScript: ScalarScript;
|
|
5
|
-
createScalar(scalarName: string, ai: boolean, sys: Sys): Promise<void>;
|
|
6
|
-
removeScalar(scalarName: string, sys: Sys): Promise<void>;
|
|
7
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Prompter, type Sys } from "@akanjs/devkit";
|
|
2
|
-
export declare class ScalarPrompt extends Prompter {
|
|
3
|
-
#private;
|
|
4
|
-
readonly sys: Sys;
|
|
5
|
-
readonly name: string;
|
|
6
|
-
constructor(sys: Sys, name: string);
|
|
7
|
-
requestUpdateConstant(): Promise<{
|
|
8
|
-
request: string;
|
|
9
|
-
validate: undefined;
|
|
10
|
-
}>;
|
|
11
|
-
requestCreateConstant(): Promise<{
|
|
12
|
-
request: string;
|
|
13
|
-
validate: string[];
|
|
14
|
-
}>;
|
|
15
|
-
requestUpdateDictonaryWithInstruction(): Promise<{
|
|
16
|
-
request: string;
|
|
17
|
-
validate: string[];
|
|
18
|
-
}>;
|
|
19
|
-
requestUpdateDictonaryWithFollowing(): {
|
|
20
|
-
request: string;
|
|
21
|
-
validate: string[];
|
|
22
|
-
};
|
|
23
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AiSession, type Sys } from "@akanjs/devkit";
|
|
2
|
-
import { ScalarPrompt } from "./scalar.prompt";
|
|
3
|
-
export declare class ScalarRunner {
|
|
4
|
-
applyScalarTemplate(sys: Sys, scalarName: string): Promise<void>;
|
|
5
|
-
createScalarConstant(sys: Sys, scalarName: string): Promise<{
|
|
6
|
-
session: AiSession;
|
|
7
|
-
scalarNames: string[];
|
|
8
|
-
writes: import("@akanjs/devkit").FileContent[];
|
|
9
|
-
prompt: ScalarPrompt;
|
|
10
|
-
}>;
|
|
11
|
-
updateScalarDictionaries(sys: Sys, scalarNames: string[], { session }: {
|
|
12
|
-
session: AiSession;
|
|
13
|
-
}): Promise<void>;
|
|
14
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type Sys } from "@akanjs/devkit";
|
|
2
|
-
export declare class ScalarScript {
|
|
3
|
-
#private;
|
|
4
|
-
createScalar(sys: Sys, scalarName: string): Promise<void>;
|
|
5
|
-
createScalarWithAi(sys: Sys, scalarName: string): Promise<void>;
|
|
6
|
-
removeScalar(sys: Sys, scalarName: string): Promise<void>;
|
|
7
|
-
}
|