evlet 0.3.0__tar.gz → 0.4.0__tar.gz
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.
- {evlet-0.3.0 → evlet-0.4.0}/CHANGELOG.md +248 -0
- {evlet-0.3.0/evlet.egg-info → evlet-0.4.0}/PKG-INFO +17 -5
- {evlet-0.3.0 → evlet-0.4.0}/README.md +16 -4
- {evlet-0.3.0 → evlet-0.4.0}/build_support.py +1 -1
- {evlet-0.3.0 → evlet-0.4.0}/docs/amendment-v2.md +17 -26
- evlet-0.4.0/docs/api-stability.md +218 -0
- {evlet-0.3.0 → evlet-0.4.0}/docs/app-upgrades.md +46 -3
- {evlet-0.3.0 → evlet-0.4.0}/docs/architecture.md +13 -6
- {evlet-0.3.0 → evlet-0.4.0}/docs/business-capabilities.md +14 -17
- {evlet-0.3.0 → evlet-0.4.0}/docs/cli.md +95 -14
- {evlet-0.3.0 → evlet-0.4.0}/docs/connector.md +7 -18
- {evlet-0.3.0 → evlet-0.4.0}/docs/controls.md +170 -14
- {evlet-0.3.0 → evlet-0.4.0}/docs/customizing.md +9 -17
- {evlet-0.3.0 → evlet-0.4.0}/docs/eva.md +3 -1
- {evlet-0.3.0 → evlet-0.4.0}/docs/finite-calculations.md +20 -5
- {evlet-0.3.0 → evlet-0.4.0}/docs/getting-started.md +13 -0
- {evlet-0.3.0 → evlet-0.4.0}/docs/jobs-realtime.md +65 -1
- {evlet-0.3.0 → evlet-0.4.0}/docs/journal.md +5 -1
- evlet-0.4.0/docs/ledger.md +296 -0
- {evlet-0.3.0 → evlet-0.4.0}/docs/meaning.md +15 -1
- {evlet-0.3.0 → evlet-0.4.0}/docs/measures.md +141 -6
- {evlet-0.3.0 → evlet-0.4.0}/docs/model-engine.md +521 -6
- {evlet-0.3.0 → evlet-0.4.0}/docs/performance.md +6 -2
- {evlet-0.3.0 → evlet-0.4.0}/docs/postgresql.md +9 -0
- {evlet-0.3.0 → evlet-0.4.0}/docs/printing.md +8 -1
- {evlet-0.3.0 → evlet-0.4.0}/docs/reports.md +12 -3
- {evlet-0.3.0 → evlet-0.4.0}/docs/routing.md +12 -10
- {evlet-0.3.0 → evlet-0.4.0}/docs/sequences.md +18 -1
- {evlet-0.3.0 → evlet-0.4.0}/docs/settings.md +18 -3
- {evlet-0.3.0 → evlet-0.4.0}/docs/slips.md +13 -4
- {evlet-0.3.0 → evlet-0.4.0}/docs/states-actions.md +131 -4
- {evlet-0.3.0 → evlet-0.4.0}/docs/tools.md +4 -1
- {evlet-0.3.0 → evlet-0.4.0}/docs/ui-framework.md +253 -80
- evlet-0.4.0/docs/ui.md +1247 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/__init__.py +27 -4
- {evlet-0.3.0 → evlet-0.4.0}/evlet/app.py +10 -9
- {evlet-0.3.0 → evlet-0.4.0}/evlet/auth.py +3 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/builds.py +20 -8
- {evlet-0.3.0 → evlet-0.4.0}/evlet/business.py +184 -35
- {evlet-0.3.0 → evlet-0.4.0}/evlet/calc.py +115 -151
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/__init__.py +1 -2
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/app.py +12 -0
- evlet-0.4.0/evlet/cli/ids.py +21 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/install.py +3 -3
- evlet-0.4.0/evlet/cli/instance.py +46 -0
- evlet-0.4.0/evlet/cli/jobs.py +21 -0
- evlet-0.4.0/evlet/cli/ledger.py +21 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/main.py +56 -15
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/playground.py +1 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/proxy.py +24 -0
- evlet-0.4.0/evlet/cli/site.py +287 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/connectors.py +2 -3
- {evlet-0.3.0 → evlet-0.4.0}/evlet/controls.py +179 -29
- {evlet-0.3.0 → evlet-0.4.0}/evlet/controls_export.py +109 -29
- {evlet-0.3.0 → evlet-0.4.0}/evlet/controls_system.py +0 -15
- {evlet-0.3.0 → evlet-0.4.0}/evlet/corrections.py +16 -4
- evlet-0.4.0/evlet/currencies.py +431 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/customization.py +113 -37
- evlet-0.4.0/evlet/database.py +738 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/declarations.py +18 -2
- {evlet-0.3.0 → evlet-0.4.0}/evlet/discovery.py +6 -1
- {evlet-0.3.0 → evlet-0.4.0}/evlet/documents.py +392 -55
- {evlet-0.3.0 → evlet-0.4.0}/evlet/effects.py +17 -2
- {evlet-0.3.0 → evlet-0.4.0}/evlet/eva.py +3 -5
- {evlet-0.3.0 → evlet-0.4.0}/evlet/events.py +0 -1
- {evlet-0.3.0 → evlet-0.4.0}/evlet/fields.py +113 -13
- {evlet-0.3.0 → evlet-0.4.0}/evlet/forms.py +60 -10
- {evlet-0.3.0 → evlet-0.4.0}/evlet/framework.py +16 -2
- {evlet-0.3.0 → evlet-0.4.0}/evlet/identity.py +54 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/images.py +74 -14
- evlet-0.4.0/evlet/indexes.py +110 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/instances.py +12 -20
- {evlet-0.3.0 → evlet-0.4.0}/evlet/jobs.py +152 -62
- {evlet-0.3.0 → evlet-0.4.0}/evlet/journal.py +12 -0
- evlet-0.4.0/evlet/ledger.py +301 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/lifecycle.py +3 -1
- {evlet-0.3.0 → evlet-0.4.0}/evlet/mailboxes.py +3 -5
- {evlet-0.3.0 → evlet-0.4.0}/evlet/meaning.py +67 -6
- {evlet-0.3.0 → evlet-0.4.0}/evlet/measures.py +295 -36
- {evlet-0.3.0 → evlet-0.4.0}/evlet/mentions.py +2 -3
- {evlet-0.3.0 → evlet-0.4.0}/evlet/migrations.py +268 -14
- {evlet-0.3.0 → evlet-0.4.0}/evlet/models.py +155 -10
- {evlet-0.3.0 → evlet-0.4.0}/evlet/naming.py +3 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/object_storage.py +0 -1
- {evlet-0.3.0 → evlet-0.4.0}/evlet/packages.py +1 -1
- {evlet-0.3.0 → evlet-0.4.0}/evlet/permissions.py +56 -14
- {evlet-0.3.0 → evlet-0.4.0}/evlet/postgres.py +44 -4
- {evlet-0.3.0 → evlet-0.4.0}/evlet/postgres_schema.py +39 -6
- {evlet-0.3.0 → evlet-0.4.0}/evlet/printing.py +61 -13
- {evlet-0.3.0 → evlet-0.4.0}/evlet/query.py +30 -7
- {evlet-0.3.0 → evlet-0.4.0}/evlet/reactivity.py +50 -8
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app/README.md.tpl +1 -1
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app/__app__/hooks.py.tpl +1 -2
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app/pyproject.toml.tpl +1 -1
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app_flat/pyproject.toml.tpl +1 -4
- {evlet-0.3.0 → evlet-0.4.0}/evlet/routing.py +5 -19
- evlet-0.4.0/evlet/sections.py +309 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/sequences.py +12 -2
- {evlet-0.3.0 → evlet-0.4.0}/evlet/settings.py +5 -4
- {evlet-0.3.0 → evlet-0.4.0}/evlet/slips.py +9 -6
- {evlet-0.3.0 → evlet-0.4.0}/evlet/states.py +10 -5
- {evlet-0.3.0 → evlet-0.4.0}/evlet/tools.py +2 -3
- evlet-0.4.0/evlet/ui/__init__.py +1 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/ui/application.py +2 -2
- evlet-0.4.0/evlet/ui/metadata.py +755 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/ui/routes.py +13 -36
- evlet-0.3.0/frontend/fonts/Inter-OFL.txt → evlet-0.4.0/evlet/ui/static/assets/IBMPlexSans-OFL.txt +3 -2
- evlet-0.3.0/evlet/ui/static/assets/ai-BGEsak_j.js → evlet-0.4.0/evlet/ui/static/assets/ai-ChOAL8Qi.js +21 -21
- evlet-0.4.0/evlet/ui/static/assets/app-0SduO6OB.css +1 -0
- evlet-0.4.0/evlet/ui/static/assets/app-CgLD9qku.js +822 -0
- evlet-0.3.0/evlet/ui/static/assets/consent-wUYXsFQ9.js → evlet-0.4.0/evlet/ui/static/assets/consent-CcrD73-t.js +7 -7
- evlet-0.4.0/evlet/ui/static/assets/email-CnOaYPAZ.js +25 -0
- evlet-0.4.0/evlet/ui/static/assets/ibm-plex-sans-latin-400-italic-CZTNEAuW.woff2 +0 -0
- evlet-0.4.0/evlet/ui/static/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
- evlet-0.4.0/evlet/ui/static/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 +0 -0
- evlet-0.4.0/evlet/ui/static/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
- evlet-0.4.0/evlet/ui/static/assets/ibm-plex-sans-latin-700-normal-Bxkt5Cjx.woff2 +0 -0
- evlet-0.4.0/evlet/ui/static/assets/ibm-plex-sans-latin-ext-400-italic-Du9zzoL2.woff2 +0 -0
- evlet-0.4.0/evlet/ui/static/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2 +0 -0
- evlet-0.4.0/evlet/ui/static/assets/ibm-plex-sans-latin-ext-500-normal-DakdToA3.woff2 +0 -0
- evlet-0.4.0/evlet/ui/static/assets/ibm-plex-sans-latin-ext-600-normal-DOrvGEcy.woff2 +0 -0
- evlet-0.4.0/evlet/ui/static/assets/ibm-plex-sans-latin-ext-700-normal-aMgXseD4.woff2 +0 -0
- evlet-0.4.0/evlet/ui/static/assets/index-L-We7eCw.js +931 -0
- evlet-0.4.0/evlet/ui/static/assets/index-UqEST1u4.css +1 -0
- evlet-0.3.0/evlet/ui/static/assets/keys-BlMYHVSC.js → evlet-0.4.0/evlet/ui/static/assets/keys-Cv0SxpmA.js +1 -1
- {evlet-0.3.0 → evlet-0.4.0}/evlet/ui/static/index.html +2 -2
- {evlet-0.3.0 → evlet-0.4.0}/evlet/unsaved.py +2 -3
- evlet-0.4.0/evlet/workspaces.py +530 -0
- {evlet-0.3.0 → evlet-0.4.0/evlet.egg-info}/PKG-INFO +17 -5
- {evlet-0.3.0 → evlet-0.4.0}/evlet.egg-info/SOURCES.txt +57 -26
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/app.py +70 -7
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/items.py +6 -2
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/migrate.py +95 -1
- evlet-0.4.0/examples/playground/models.py +320 -0
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/slips.py +2 -2
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/team.py +9 -9
- evlet-0.4.0/examples/playground/workspaces.py +44 -0
- evlet-0.3.0/evlet/ui/static/assets/Inter-OFL.txt → evlet-0.4.0/frontend/fonts/IBMPlexSans-OFL.txt +3 -2
- evlet-0.4.0/frontend/fonts/ibm-plex-sans-latin-400-italic.woff2 +0 -0
- evlet-0.4.0/frontend/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- evlet-0.4.0/frontend/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
- evlet-0.4.0/frontend/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
- evlet-0.4.0/frontend/fonts/ibm-plex-sans-latin-700-normal.woff2 +0 -0
- evlet-0.4.0/frontend/fonts/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
- evlet-0.4.0/frontend/fonts/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
- evlet-0.4.0/frontend/fonts/ibm-plex-sans-latin-ext-500-normal.woff2 +0 -0
- evlet-0.4.0/frontend/fonts/ibm-plex-sans-latin-ext-600-normal.woff2 +0 -0
- evlet-0.4.0/frontend/fonts/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/scripts/install-ui.mjs +1 -1
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/app.ts +39 -17
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/client.ts +30 -10
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/composer.ts +3 -1
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/context.ts +4 -1
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/docs.ts +6 -20
- evlet-0.4.0/frontend/src/evlet/app/duplicate.ts +91 -0
- evlet-0.4.0/frontend/src/evlet/app/explorer.ts +128 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/filters.ts +74 -9
- evlet-0.4.0/frontend/src/evlet/app/inbox.ts +207 -0
- evlet-0.4.0/frontend/src/evlet/app/last-page.ts +32 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/list-page.ts +262 -77
- evlet-0.4.0/frontend/src/evlet/app/meta.ts +368 -0
- evlet-0.4.0/frontend/src/evlet/app/nav-icons.ts +59 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/palette.ts +35 -10
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/prefs.ts +8 -3
- evlet-0.4.0/frontend/src/evlet/app/recents.ts +54 -0
- evlet-0.4.0/frontend/src/evlet/app/record-blocks.ts +236 -0
- evlet-0.4.0/frontend/src/evlet/app/record-compact.ts +116 -0
- evlet-0.4.0/frontend/src/evlet/app/record-page.ts +1412 -0
- evlet-0.4.0/frontend/src/evlet/app/related-data.ts +73 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/report-page.ts +18 -54
- evlet-0.4.0/frontend/src/evlet/app/screens.css +574 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/settings.css +7 -6
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/settings.ts +81 -27
- evlet-0.4.0/frontend/src/evlet/app/shell.ts +293 -0
- evlet-0.4.0/frontend/src/evlet/app/shortcuts.ts +121 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/slips.ts +8 -1
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/unsaved-bar.ts +8 -15
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/unsaved.ts +1 -4
- evlet-0.4.0/frontend/src/evlet/app/workspace-editor.ts +378 -0
- evlet-0.4.0/frontend/src/evlet/app/workspaces.ts +244 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/app.ts +18 -7
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/client.ts +10 -3
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/controls.css +54 -8
- evlet-0.4.0/frontend/src/evlet/controls/currencies.ts +147 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/drafts.ts +13 -2
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/models.ts +66 -36
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/people.ts +7 -1
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/system.ts +101 -21
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/eva/eva.css +18 -18
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/eva/tasks.ts +1 -1
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/model/changes.ts +32 -4
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/model/finite.ts +66 -12
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/model/format.ts +78 -4
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/model/record.ts +133 -10
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/model/schema.ts +104 -6
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/model/session.ts +15 -6
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/richtext/editor.ts +18 -4
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/richtext/richtext.css +5 -5
- evlet-0.4.0/frontend/src/evlet/ui/autofocus.ts +80 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/base.ts +84 -8
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/catalog.json +69 -47
- evlet-0.4.0/frontend/src/evlet/ui/chart.ts +72 -0
- evlet-0.4.0/frontend/src/evlet/ui/childtable.ts +983 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/core.ts +5 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/doc.ts +92 -19
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/fields.ts +120 -23
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/fold.ts +23 -5
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/icon-data.ts +7 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/index.ts +3 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/inline.ts +33 -9
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/kinds.ts +27 -12
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/layers.ts +73 -12
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/library.ts +28 -21
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/list.ts +6 -5
- evlet-0.4.0/frontend/src/evlet/ui/money.ts +42 -0
- evlet-0.4.0/frontend/src/evlet/ui/shortcuts.ts +79 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/styles.css +402 -204
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/table.ts +1 -1
- {evlet-0.3.0 → evlet-0.4.0}/pyproject.toml +2 -2
- evlet-0.3.0/docs/api-stability.md +0 -99
- evlet-0.3.0/docs/ui.md +0 -508
- evlet-0.3.0/evlet/cli/instance.py +0 -22
- evlet-0.3.0/evlet/cli/legacy.py +0 -103
- evlet-0.3.0/evlet/database.py +0 -391
- evlet-0.3.0/evlet/metadata.py +0 -5
- evlet-0.3.0/evlet/native.py +0 -101
- evlet-0.3.0/evlet/resources/templates/app/__app__/views/__init__.py.tpl +0 -2
- evlet-0.3.0/evlet/ui/__init__.py +0 -73
- evlet-0.3.0/evlet/ui/compiler.py +0 -305
- evlet-0.3.0/evlet/ui/contracts.py +0 -343
- evlet-0.3.0/evlet/ui/definitions.py +0 -263
- evlet-0.3.0/evlet/ui/definitions.pyi +0 -173
- evlet-0.3.0/evlet/ui/expressions.py +0 -149
- evlet-0.3.0/evlet/ui/metadata.py +0 -221
- evlet-0.3.0/evlet/ui/registry.py +0 -307
- evlet-0.3.0/evlet/ui/static/assets/InterVariable-DiVDrmQJ.woff2 +0 -0
- evlet-0.3.0/evlet/ui/static/assets/InterVariable-Italic-FCBEiFp6.woff2 +0 -0
- evlet-0.3.0/evlet/ui/static/assets/app-CfRe-3Lx.css +0 -1
- evlet-0.3.0/evlet/ui/static/assets/app-UIRkbxu8.js +0 -766
- evlet-0.3.0/evlet/ui/static/assets/email-DQNjtDdh.js +0 -25
- evlet-0.3.0/evlet/ui/static/assets/index-BsfqfnxS.css +0 -1
- evlet-0.3.0/evlet/ui/static/assets/index-DmSbFxTC.js +0 -816
- evlet-0.3.0/examples/playground/models.py +0 -164
- evlet-0.3.0/examples/playground/ui.py +0 -202
- evlet-0.3.0/frontend/fonts/InterVariable-Italic.woff2 +0 -0
- evlet-0.3.0/frontend/fonts/InterVariable.woff2 +0 -0
- evlet-0.3.0/frontend/src/evlet/app/inbox.ts +0 -67
- evlet-0.3.0/frontend/src/evlet/app/meta.ts +0 -196
- evlet-0.3.0/frontend/src/evlet/app/record-page.ts +0 -980
- evlet-0.3.0/frontend/src/evlet/app/related-panel.ts +0 -54
- evlet-0.3.0/frontend/src/evlet/app/screens.css +0 -216
- evlet-0.3.0/frontend/src/evlet/app/shell.ts +0 -191
- evlet-0.3.0/frontend/src/evlet/ui/childtable.ts +0 -613
- {evlet-0.3.0 → evlet-0.4.0}/LICENSE +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/MANIFEST.in +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/docs/application-generation.md +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/docs/document-lifecycle.md +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/docs/effects.md +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/docs/lifecycle-specification.md +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/docs/production-operations.md +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/docs/tenancy-deployment.md +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/__main__.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/assistants.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/audit.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/connector.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/devlink.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/docs.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/effects.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/journal.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/project.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/serve.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/cli/setup.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/connector.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/deployment.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/devlink.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/expressions.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/mcp.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/periods.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/py.typed +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/__init__.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/print/fonts/NotoSans-Bold.woff2 +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/print/fonts/NotoSans-OFL.txt +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/print/fonts/NotoSans-Regular.woff2 +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/print/fonts/NotoSansArabic-Bold.woff2 +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/print/fonts/NotoSansArabic-OFL.txt +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/print/fonts/NotoSansArabic-Regular.woff2 +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app/.gitignore.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app/__app__/__init__.py.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app/__app__/actions/__init__.py.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app/__app__/migrations/__init__.py.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app/__app__/models/__init__.py.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app/__app__/permissions.py.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app/tests/test_models.py.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app_flat/.gitignore.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app_flat/README.md.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app_flat/__init__.py.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app_flat/models/__init__.py.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app_flat/models/item.py.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/resources/templates/app_flat/setup.py.tpl +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/richtext.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/secrets.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/serverless.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/services.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/storage.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/tenancy.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/ui/serving.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/ui/static/assets/JetBrainsMono-Medium-3S3k2nMz.woff2 +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/ui/static/assets/JetBrainsMono-OFL.txt +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/ui/static/assets/JetBrainsMono-Regular-BQaDgvhP.woff2 +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/ui/static/assets/evlet-icon-blue.svg +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/ui/static/assets/evlet-logo-primary.svg +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet/ui/static/assets/evlet-logo-white.svg +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet.egg-info/dependency_links.txt +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet.egg-info/entry_points.txt +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet.egg-info/requires.txt +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/evlet.egg-info/top_level.txt +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/manage.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/portal/index.html +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/portal/portal.css +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/portal/portal.js +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/prints.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/reports.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/settings.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/tenants.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/examples/playground/worker.py +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/.node-version +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/.npmrc +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/fonts/JetBrainsMono-Medium.woff2 +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/fonts/JetBrainsMono-OFL.txt +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/fonts/JetBrainsMono-Regular.woff2 +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/index.html +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/package-lock.json +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/package.json +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/public/assets/evlet-icon-blue.svg +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/public/assets/evlet-logo-primary.svg +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/public/assets/evlet-logo-white.svg +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/scripts/bench-ui.mjs +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/scripts/dev-proxy.mjs +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/scripts/dev-proxy.test.mjs +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/api.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/config.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/login.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/main.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/app/revisions.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/access.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/ai.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/connections.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/eva.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/keys.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/log.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/naming.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/periods.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/prints.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/controls/unsaved.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/dev.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/dom.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/eva/chat.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/eva/client.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ids.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/model/links.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/model/unsaved.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/reactive.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/richtext/history.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/richtext/html.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/richtext/images.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/richtext/model.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/richtext/ops.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/richtext/render.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/router.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/settings/ai.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/settings/consent.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/settings/email.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/settings/keys.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/dateparse.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/draglist.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/explain.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/pickers.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/split.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/theme.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/time.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/src/evlet/ui/tooltip.ts +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/tsconfig.json +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/frontend/vite.config.js +0 -0
- {evlet-0.3.0 → evlet-0.4.0}/setup.cfg +0 -0
|
@@ -4,6 +4,252 @@ Evlet is pre-1.0 and not production ready. From 0.3, a public name or argument t
|
|
|
4
4
|
removed or changed keeps working with a `DeprecationWarning` for at least one minor release
|
|
5
5
|
first ([docs/api-stability.md](docs/api-stability.md)). The notes below say what to change.
|
|
6
6
|
|
|
7
|
+
## 0.4.0 (10-11-2026)
|
|
8
|
+
|
|
9
|
+
This release adds decimal places per currency with money stored at 6 places, the compact record page
|
|
10
|
+
without tabs, child table tools and section rows, image fields, derived values, ledger models,
|
|
11
|
+
workspaces, list tabs and `evlet setup` in one go. It removes the Python page API and native panels,
|
|
12
|
+
which the browser never used. It covers #120 to #159. Evlet is still not production ready.
|
|
13
|
+
|
|
14
|
+
### Upgrading
|
|
15
|
+
|
|
16
|
+
- **Run `evlet migrate` for each instance before you serve it.** An instance migrated with 0.3.0
|
|
17
|
+
refuses to serve until you do. Stop the server first. It backs up the database, then runs the new
|
|
18
|
+
framework steps `0006_fixed_ids` (a trigger on every model table that refuses an id change) and
|
|
19
|
+
`0007_money_scale` (every stored Currency amount moves to 6 places, exactly), then the app
|
|
20
|
+
migrations ([docs/app-upgrades.md](docs/app-upgrades.md#upgrade-evlet)).
|
|
21
|
+
- **Apps must allow Evlet 0.4.** Change an app's dependency from `evlet>=0.3.0,<0.4` to
|
|
22
|
+
`evlet>=0.4.0,<0.5`. New apps get this by default.
|
|
23
|
+
- Then work through the Breaking list below. [docs/app-upgrades.md](docs/app-upgrades.md#from-03-to-04)
|
|
24
|
+
has the same steps as a checklist.
|
|
25
|
+
|
|
26
|
+
### Breaking
|
|
27
|
+
|
|
28
|
+
- **Record pages have no tabs.** `Tab`, `Meta.tabs` and `Meta.default_tab` are removed. They are
|
|
29
|
+
removed without the usual deprecation period, by decision of the project owner, because no apps
|
|
30
|
+
built on Evlet have been released yet. Using them fails when the model is defined, with a message
|
|
31
|
+
that points to `Main` and `Section`. Lay a record out with `Main(fields, *tables)` first in
|
|
32
|
+
`Meta.layout` and `Section(...)` and the other blocks after it. A model without `Meta.layout` puts
|
|
33
|
+
every field in the primary area, in declaration order, followed by its Tables; a layout of
|
|
34
|
+
sections only uses its first section as the primary area and the others as "more information".
|
|
35
|
+
Activity moves to the side column (a drawer in a narrow window); Revisions, Related and Postings
|
|
36
|
+
are rows of "more information". The record address no longer takes `?tab=`, and a list's side
|
|
37
|
+
panel no longer writes `?rtab=`. `record_layout` in `/api/schema` is `{"blocks": [...]}` only, with
|
|
38
|
+
no `compact` key. Controls layouts no longer take a record tab order; one saved before keeps its
|
|
39
|
+
sections and panel. The side panel's narrow child rows (`ChildRows`), the Key fields and Related
|
|
40
|
+
side blocks, sticky record tabs and `keepTabPlace` are gone.
|
|
41
|
+
- **Currency amounts are stored at 6 places.** After `evlet migrate`, values still read and travel
|
|
42
|
+
as before (`"12.50"`), applied migration checksums and saved calculation versions do not change,
|
|
43
|
+
and the largest Currency amount is 9,223,372,036,854.775807. A `Currency` field's schema `scale` is
|
|
44
|
+
now 6, the storage scale: format from `currency_decimals` instead. Apps started outside an instance
|
|
45
|
+
move on startup or in `database.migrate()`. Code that rounded money with `quantize(Decimal("0.01"))`
|
|
46
|
+
or `round(x, 2)` should use `round_money(value, code)` so KWD and JPY amounts are right.
|
|
47
|
+
- **Writes refuse amounts with more places than their currency.** For example "Use at most 3 decimal
|
|
48
|
+
places for KWD". Nothing is rounded silently (see Decimal places per currency below).
|
|
49
|
+
- **The list board is opt-in.** A list offers the Board view only when `Meta.board` names its State
|
|
50
|
+
field, such as `board = "stage"`. Apps that relied on the automatic board for every model with a
|
|
51
|
+
State must set it. An old `?view=board` link opens the table. `Meta.board` on any other field fails
|
|
52
|
+
registration, naming the model.
|
|
53
|
+
- **Python pages are gone.** The Python page API in `evlet.ui` (`PageView`, `ListView`, `FormView`,
|
|
54
|
+
`Column`, `ViewRegistry`, the compiler, component contracts and page expressions) and the
|
|
55
|
+
`GET /api/ui` and `GET /api/ui/resolve` routes are removed. Delete those definitions and shape the
|
|
56
|
+
generated screens with `Model.Meta` (`layout`, `list_fields`, `open_in`, `panel`). An
|
|
57
|
+
`AppDefinition` may still pass `views=()`; a non-empty `views` or a `ui` registry is refused at
|
|
58
|
+
start-up. `Application` and `App` no longer take `views` or `ui`. Clients that called `/api/ui`
|
|
59
|
+
read `/api/schema` instead. The Playground's Projects demo and Layouts pages go with it.
|
|
60
|
+
- **Native panels are gone.** Remove `.ts` and `.js` modules from an app's `views/` folder and the
|
|
61
|
+
matching `package-data` line from its `pyproject.toml`. `native_panels` in `/api/schema` and
|
|
62
|
+
`/assets/apps/...` are removed, and a build no longer runs Node for them.
|
|
63
|
+
- **`evlet new` is gone.** Use `evlet setup myproject --app notes --instance acme --dev`. The nested
|
|
64
|
+
app layout and `evlet app <name> --legacy` stay.
|
|
65
|
+
- **`evlet.metadata` is gone.** `field_schema`, `label_for`, `ui_schema` and `view_for` live in
|
|
66
|
+
`evlet.ui.metadata`, which is internal ([docs/api-stability.md](docs/api-stability.md#internal)).
|
|
67
|
+
- **`evlet.calc.Document` loses `observe`, `observe_table`, `observe_rules`, `subscriptions`,
|
|
68
|
+
`explain` and `dispose`.** The server settles a document once and reads its snapshot; the browser
|
|
69
|
+
engine keeps all of them.
|
|
70
|
+
- **A caller-supplied record `id` is refused** on every create and update path with
|
|
71
|
+
`ValidationError({'id': ...})`, and HTTP POST and PATCH answer 422 on `id` instead of 403 (see
|
|
72
|
+
Fixed ids below).
|
|
73
|
+
|
|
74
|
+
### Added
|
|
75
|
+
|
|
76
|
+
- **Decimal places per currency.** Each currency code has 0 to 6 places: ISO 4217 by default (AED 2,
|
|
77
|
+
KWD 3, JPY 0), changed or added by an admin in Controls, Currencies (for example a client's own
|
|
78
|
+
unit with 5). Finite and legacy formulas, table sums and totals round to the currency each row
|
|
79
|
+
resolves through its currency source, and print, CSV and every screen show exactly those places.
|
|
80
|
+
Trusted code uses `currency_decimals(code)`, `round_money(value, code)` (half up) and
|
|
81
|
+
`currency_unit(code)` instead of hard-coding 2. An app with its own currency list writes it to the
|
|
82
|
+
framework with `set_currency_decimals(app, {...})`. Money kept in `Decimal(scale=4)` moves to
|
|
83
|
+
`Currency` with `AlterField`, exactly. Lowering a code's places is refused (409) while stored
|
|
84
|
+
amounts would lose digits; `round_stored_money(app, code, places, actor=...)` is the explicit step
|
|
85
|
+
that rounds them. `/api/schema` sends `currency_decimals`. When a saved record was calculated with
|
|
86
|
+
older formulas, the browser asks for a recalculation instead of saying someone else changed it.
|
|
87
|
+
The Playground adds a KWD customer and a 5-place unit
|
|
88
|
+
([docs/model-engine.md](docs/model-engine.md#decimal-places-per-currency)).
|
|
89
|
+
- **Currency display per site.** Controls, Currencies sets how each code is shown: a text symbol
|
|
90
|
+
(`$`, `€`, `د.إ`) or a small PNG or WebP image (at most 32 KB and 128 x 128 pixels, SVG refused),
|
|
91
|
+
before or after the amount, with or without a space. It applies to forms, lists, boards, totals,
|
|
92
|
+
measures, reports and print designs. Only admins change it, and every change is audited.
|
|
93
|
+
`/api/schema` sends `currency_display`, and trusted code can use `set_currency_display(app, {...})`.
|
|
94
|
+
Report CSV names a currency column's code in its header, `Total (AED)`
|
|
95
|
+
([docs/controls.md](docs/controls.md#currencies)).
|
|
96
|
+
- **The compact record page.** `Main(fields, *tables)` as the first block of `Meta.layout` is the
|
|
97
|
+
primary area, with no heading; every block after it is "more information", shown as rows with a
|
|
98
|
+
one-line summary while closed. `Meta.cards` names up to five derived values (fields with
|
|
99
|
+
`compute=`, `fetch=` or `query=`, and per-record measures) drawn as number cards above the record.
|
|
100
|
+
`Section(..., description=...)` adds a line under a section's title. The side column holds
|
|
101
|
+
Attachments, Activity and Record info. All of it is checked when the registry is built, and
|
|
102
|
+
`/api/schema` sends `cards` (cut per role) and `description`
|
|
103
|
+
([docs/ui.md](docs/ui.md#compact-record-page)).
|
|
104
|
+
- **Record layout blocks.** Besides `Main` and `Section`, `Meta.layout` takes `Table` field names,
|
|
105
|
+
`Related(model, link=None, filters=..., fields=..., limit=..., order=..., label=...)` lists of
|
|
106
|
+
related records, `Html(...)` text with `{field}` values, and `Chart('stat' | 'bar' | 'line', ...)`
|
|
107
|
+
blocks over a related model's declared measures. Filters use the list syntax, and `Ref('field')`
|
|
108
|
+
compares with a field of the record. Related rows and charts come from the list and aggregate
|
|
109
|
+
routes, so row scopes and field permissions apply. Html keeps to the rich text allowlist and
|
|
110
|
+
inserts record values as text only. Controls, Export as code writes the full `Meta.layout`
|
|
111
|
+
([docs/ui.md](docs/ui.md#record-layouts)).
|
|
112
|
+
- **Child table tools, row editor and section rows.** A record's table has Focus and Columns buttons.
|
|
113
|
+
A row's Edit opens the row editor in focus view: the rows as a list beside one form for the row,
|
|
114
|
+
with previous and next, Delete line, Insert below and Done. `Table(..., sections=True)` lets a
|
|
115
|
+
Table hold section rows, headings such as "Goods" that group the rows below them, each with its own
|
|
116
|
+
sums. Iterating `self.lines` still yields only real rows, so existing app code is unchanged;
|
|
117
|
+
`self.lines.sections()` gives `(label, rows)` pairs. The existing routes create, rename, move and
|
|
118
|
+
delete section rows with the same checks as rows. They are stored in `evlet_sections`, so turning
|
|
119
|
+
them on needs no migration. Print, the Journal and revisions include them
|
|
120
|
+
([docs/model-engine.md](docs/model-engine.md#section-rows)).
|
|
121
|
+
- **Image fields: `Image()` and `Meta.image`.** A field holds an image, such as an item photo, as a
|
|
122
|
+
private attachment of the record: PNG, JPEG, GIF or WebP checked by their bytes (SVG refused), up to
|
|
123
|
+
Controls `files.image_max_kb`. A person who cannot read the field cannot load the image.
|
|
124
|
+
`Meta.image` names the record's avatar, shown left of the title. Add one with
|
|
125
|
+
`AddField(model, name, Image())` ([docs/model-engine.md](docs/model-engine.md#image-fields)).
|
|
126
|
+
- **Derived values: `derive()` and `Meta.derives`.** A document builds stored values that formulas
|
|
127
|
+
cannot express, such as rows built from a linked record, or a field on each row of a Table. It runs
|
|
128
|
+
on every write and preview, before calculations. The fields and Tables it sets are refused to
|
|
129
|
+
callers (`DERIVED_FIELD_WRITE`, 422) and marked `read_only` in `/api/schema`. `validate()` stays for
|
|
130
|
+
checks only ([docs/model-engine.md](docs/model-engine.md#derived-values)).
|
|
131
|
+
- **Closing checks: `before_close(self, to)`.** One read-only hook that runs before a move into a
|
|
132
|
+
final state, a void, a cancel and a delete, on every surface, and refuses with a `ValidationError`
|
|
133
|
+
before anything is written
|
|
134
|
+
([docs/states-actions.md](docs/states-actions.md#before-a-record-closes)).
|
|
135
|
+
- **Cancelled states: `State(..., cancelled=...)`.** Names the final states that mean a record was
|
|
136
|
+
called off. On a voidable State, `"void"` counts without being listed. Lists and boards strike
|
|
137
|
+
cancelled records through, and the record shows when, who and why. Locked or final states show a
|
|
138
|
+
lock, and the starting state a Draft pill
|
|
139
|
+
([docs/states-actions.md](docs/states-actions.md#cancelled-states)).
|
|
140
|
+
- **`self.context.session` in run methods and actions.** A Move's `run` method and an `@action`
|
|
141
|
+
handler can write other rows, such as ledger rows, in their own transaction, with `tx.lock`,
|
|
142
|
+
`tx.insert_many`, `tx.reserve_ids` and `tx.aggregate`. Everything commits or rolls back together.
|
|
143
|
+
It is open only while the handler runs; every other context refuses it with `AccessError` (403)
|
|
144
|
+
([docs/states-actions.md](docs/states-actions.md#the-transaction-session-in-run-methods-and-actions)).
|
|
145
|
+
- **Ledger models.** `Meta.ledger = True` stores a model lean: a database-assigned integer id and the
|
|
146
|
+
declared columns only, with no public surface. Options are `append_only`, `journal`, `timestamps`,
|
|
147
|
+
`indexes` and `period`. An append-only table refuses `UPDATE` and `DELETE` with `ConflictError` on
|
|
148
|
+
SQLite and PostgreSQL. `tx.insert_many(model, rows)` inserts rows with one prepared statement, and
|
|
149
|
+
`tx.reserve_ids(model, count)` reserves ids so rows of one batch can link to each other. New
|
|
150
|
+
migration `SetAppendOnly`, and `evlet ledger list --instance NAME`
|
|
151
|
+
([docs/ledger.md](docs/ledger.md)).
|
|
152
|
+
- **Fixed ids.** Only Evlet makes record ids, and ids never change. Every model table gets a database
|
|
153
|
+
trigger that refuses an id change (framework step `0006_fixed_ids`). `evlet ids check INSTANCE`
|
|
154
|
+
reports rows with an empty, zero or negative id and tables without the trigger; it never rewrites
|
|
155
|
+
ids ([docs/model-engine.md](docs/model-engine.md#only-evlet-makes-ids)).
|
|
156
|
+
- **Composite and unique indexes on every model.** `Meta.indexes`, such as
|
|
157
|
+
`[(("station", "on_date", "kind"), {"unique": True}), ("on_date",)]`. A write that breaks a unique
|
|
158
|
+
entry raises `ValidationError` (HTTP 422). `AddIndex(table, ("a", "b"), unique=True)` adds one
|
|
159
|
+
([docs/model-engine.md](docs/model-engine.md#composite-and-unique-indexes)).
|
|
160
|
+
- **Transaction locks.** `tx.lock(*keys, timeout=None)` holds named locks on business keys until the
|
|
161
|
+
transaction ends. A wait past `timeout` raises the new `LockTimeout`.
|
|
162
|
+
- **`tx.aggregate(...)`, paged aggregates and long `in` lists.** The transaction session runs the same
|
|
163
|
+
aggregates as `database.aggregate` and sees its own writes. Both take `limit` and `after` to walk
|
|
164
|
+
any number of groups a page at a time. Trusted session queries take `in` and `nin` lists of up to
|
|
165
|
+
30,000 values. HTTP, `Context`, Eva, tools, MCP and the connector keep their limits
|
|
166
|
+
([docs/measures.md](docs/measures.md#paging-through-many-groups)).
|
|
167
|
+
- **Progress for long jobs.** A job handler reports `context.progress(done, total, message)`.
|
|
168
|
+
`Task(..., resumable=True)` runs a long job in steps, each in its own transaction, and resumes from
|
|
169
|
+
the last committed checkpoint. Controls, Jobs and `GET /api/_jobs/<id>` show progress, and
|
|
170
|
+
`evlet jobs list --instance NAME` prints it
|
|
171
|
+
([docs/jobs-realtime.md](docs/jobs-realtime.md#progress-and-long-jobs)).
|
|
172
|
+
- **Workspaces.** `Workspace`, `NavGroup` and `Shortcut` declare named sidebars of models and
|
|
173
|
+
shortcuts to a filtered list or board, a report, a slip or an address, in an app's `workspaces.py`
|
|
174
|
+
or through `Application(workspaces=...)`. `/api/schema` has `workspaces`, with only the items each
|
|
175
|
+
role can open. Admins, and roles with the new Controls access "Customize workspaces", can reorder,
|
|
176
|
+
hide, rename and add items and workspaces per site; overrides never widen access.
|
|
177
|
+
`GET /api/_settings/me` reports `customize_workspaces`
|
|
178
|
+
([docs/ui.md](docs/ui.md#workspaces), [docs/controls.md](docs/controls.md#workspaces)).
|
|
179
|
+
- **List tabs.** `Meta.list_tabs` names the State, Select or Link field whose values are the list's
|
|
180
|
+
tabs, and `Meta.list_tab` the tab it opens on. `list_tabs = None` turns them off. Counts come from
|
|
181
|
+
`GET /api/{model}/list_tabs`, under the list's filters and row scope. Controls sets both per
|
|
182
|
+
instance ([docs/ui.md](docs/ui.md#list-tabs)).
|
|
183
|
+
- **`evlet setup` in one go.** `evlet setup myproject --app notes,crm --instance acme --dev` creates
|
|
184
|
+
the project, apps and instance, installs the apps and starts `evlet dev`. `--get` fetches apps
|
|
185
|
+
from Git, `--trust` answers the trust questions, and `--host erp.example.com` prepares a server
|
|
186
|
+
install with a Caddy site and a systemd unit under `deploy/` (`--apply` runs the steps). Running the
|
|
187
|
+
same command again skips finished steps ([docs/cli.md](docs/cli.md#setup-in-one-go)).
|
|
188
|
+
- **Smaller model options.** `Integer(grouping=False)` shows a number without thousands separators.
|
|
189
|
+
`Naming(..., label="Project number")` labels the standard `name` field. `Meta.focus` (and `focus`
|
|
190
|
+
on a `Slip`) names the field a new form starts in. `Meta.duplicate = False` hides Duplicate, and
|
|
191
|
+
`copy=False` on a field or `Table` keeps it out of a duplicate. `Meta.summary = False` leaves out
|
|
192
|
+
the summary strip, `Meta.side_blocks` keeps attachments (`files`) or the automatic Related row (`related`), and `Meta.panel_summary = False`
|
|
193
|
+
leaves the cards out of a list's side panel. Measures take `trend=` and `color=`. Reports say
|
|
194
|
+
`source_kind`. All are checked when the registry is built.
|
|
195
|
+
- **Choose what a list's side panel shows.** `panel=False` on a field, `Section` or `Table` keeps it
|
|
196
|
+
on the full page only, and `Meta.panel` names the only parts the panel keeps, in order. Controls,
|
|
197
|
+
Form layout sets the same per instance. It is display only
|
|
198
|
+
([docs/ui.md](docs/ui.md#what-a-side-panel-shows)).
|
|
199
|
+
- **In the browser:** saved filters on lists, removing a file from a record, More > Copy record ID,
|
|
200
|
+
Change password from the account menu, a history button for recent records, a notification
|
|
201
|
+
centre behind the bell, and a link from Controls back to the app.
|
|
202
|
+
|
|
203
|
+
### Changed
|
|
204
|
+
|
|
205
|
+
- **Controls, Export as code writes code that works.** It writes `Meta` options on the model's class
|
|
206
|
+
(`layout`, `list_fields`, `open_in`, `list_tabs`, `list_tab`) instead of `FormView` and `ListView`
|
|
207
|
+
code the browser ignored.
|
|
208
|
+
- **Sign-in lands on the first list, not Docs.** After sign-in, and at any address that matches no
|
|
209
|
+
route, the app opens the start page saved in Settings, else the first list the role can open.
|
|
210
|
+
- **Aggregate filters on row-scoped Links.** `GET /api/{model}/aggregate` allows an `eq` or `in`
|
|
211
|
+
filter on a Link to a row-scoped model when every id is a record the caller can read
|
|
212
|
+
([docs/measures.md](docs/measures.md#permissions)).
|
|
213
|
+
- **`Related` and `Chart` take more arguments.** Existing calls are unchanged.
|
|
214
|
+
- **The record page shows each fact once.** Key fields show in the header, and the summary strip
|
|
215
|
+
holds only calculated values and measures the header does not show. Record info no longer shows
|
|
216
|
+
the record id.
|
|
217
|
+
- **Related records load when shown, five at a time,** with a small pager and View all.
|
|
218
|
+
- **Lists run flush to the main area,** and the filter panel docks beside the table as a side
|
|
219
|
+
panel.
|
|
220
|
+
- **Controls Jobs lists the jobs on the left** and shows the chosen job's schedules and runs on the
|
|
221
|
+
right. Only the Controls nav list scrolls.
|
|
222
|
+
- **Focus rings.** The note composer shows one focus ring, matching rich text fields.
|
|
223
|
+
|
|
224
|
+
### Fixed
|
|
225
|
+
|
|
226
|
+
- **Field read checks on chained formulas** walked every path again for each formula that read
|
|
227
|
+
another one, so a dozen chained formulas made requests hang. Each answer is now kept per role and
|
|
228
|
+
model.
|
|
229
|
+
- **Percent in string formulas.** `compute="price * discount / 100"` with a `Percent` field failed
|
|
230
|
+
at registration. Percent is now a number there
|
|
231
|
+
([docs/amendment-v2.md](docs/amendment-v2.md)).
|
|
232
|
+
- **Virtual values in record responses.** `stored=False` results were missing from
|
|
233
|
+
`GET /api/{model}/{id}`, the create and update responses and `/lines/` pages, so the browser showed
|
|
234
|
+
"Not set". They are now calculated from the saved values, under the same field read checks.
|
|
235
|
+
- **Field locks on create.** `locked_when` was judged against the values being created. A new record
|
|
236
|
+
and a new row have nothing locked now; the lock applies from the next write
|
|
237
|
+
([docs/finite-calculations.md](docs/finite-calculations.md#field-rules)).
|
|
238
|
+
- **Money measures in the right currency.** A sum of a Currency field whose currency comes from the
|
|
239
|
+
record was shown in the default currency. The measures and aggregate routes now return
|
|
240
|
+
`currencies`, and the summaries and charts use it
|
|
241
|
+
([docs/measures.md](docs/measures.md#currencies)).
|
|
242
|
+
- **Hourly image purge.** The `evlet_image_purge` task failed on every run. Held images and
|
|
243
|
+
unreferenced private files are now cleaned up hourly.
|
|
244
|
+
- **Rich text images in documents.** Saving a document now links the held images its rich text uses
|
|
245
|
+
and deletes the ones it no longer uses. Before, new images were purged after a day.
|
|
246
|
+
- **Records with text ids.** Record pages such as `/app/<model>/01hff1w8vgqwf` are served with 200
|
|
247
|
+
instead of 404, and their move and action buttons show again
|
|
248
|
+
([docs/routing.md](docs/routing.md)).
|
|
249
|
+
- **A read-only child table stays read only in the row editor** on a locked or cancelled record, or
|
|
250
|
+
without write access.
|
|
251
|
+
- More > Reset layout puts collapsible sections back to their starting state at once.
|
|
252
|
+
|
|
7
253
|
## 0.3.0 (05-11-2026)
|
|
8
254
|
|
|
9
255
|
This release adds rich text with images and mentions, unsaved changes that survive leaving a
|
|
@@ -55,6 +301,7 @@ production ready. The calendar engine, notifications and approval workflows are
|
|
|
55
301
|
|
|
56
302
|
### Added
|
|
57
303
|
|
|
304
|
+
|
|
58
305
|
- **`Meta.status` and `Select(colors=...)`.** `Meta.status = "<field>"` names a visible Select or
|
|
59
306
|
State shown as the record's status badge and as a badge in lists, for a status the system sets
|
|
60
307
|
(never a button). `colors` maps choices to `blue`, `green`, `amber`, `rose`, `violet`, `teal` or
|
|
@@ -272,6 +519,7 @@ production ready. The calendar engine, notifications and approval workflows are
|
|
|
272
519
|
|
|
273
520
|
### Changed
|
|
274
521
|
|
|
522
|
+
|
|
275
523
|
- **Changed default: a State shows as a header badge, not a stage bar.** `State(..., show=...)`
|
|
276
524
|
takes `"badge"` (the new default: a coloured status badge in the record header, with the moves
|
|
277
525
|
as header buttons), `"bar"` (the stage bar, as before, for pipelines such as draft, submitted,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: evlet
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: A small Python application framework with SQLite and a neutral UI schema
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/evlet-io/evlet
|
|
@@ -39,6 +39,18 @@ Use Python 3.12 or newer in a virtual environment:
|
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
41
|
python -m pip install --upgrade evlet
|
|
42
|
+
evlet setup myproject --app notes --instance acme --dev
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
That one command creates the project, a Notes app and a site called acme,
|
|
46
|
+
installs the app and starts `evlet dev` on 127.0.0.1. Read the trust prompt
|
|
47
|
+
first. The server prints a one-time sign-in link for a new administrator. Your
|
|
48
|
+
site keeps its data when you stop and restart it; run the same command again to
|
|
49
|
+
pick up where it stopped.
|
|
50
|
+
|
|
51
|
+
The same steps one at a time:
|
|
52
|
+
|
|
53
|
+
```sh
|
|
42
54
|
evlet setup myproject
|
|
43
55
|
cd myproject
|
|
44
56
|
evlet app notes
|
|
@@ -47,9 +59,9 @@ evlet install notes --instance acme
|
|
|
47
59
|
evlet serve acme
|
|
48
60
|
```
|
|
49
61
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
62
|
+
Then open **http://127.0.0.1:8000** and create your first administrator. There is
|
|
63
|
+
no default password. To serve a site on your own domain behind Caddy, see
|
|
64
|
+
[Serve a site on a domain in one go](docs/cli.md#serve-a-site-on-a-domain-in-one-go).
|
|
53
65
|
|
|
54
66
|
An **app** contains reusable Python code. An **instance** is a site with its own
|
|
55
67
|
database, accounts and files. You can install the same app on several instances.
|
|
@@ -85,7 +97,7 @@ For virtual environment setup and each step explained, read
|
|
|
85
97
|
backups and moving a project.
|
|
86
98
|
- [Model engine](docs/model-engine.md) and [business capabilities](docs/business-capabilities.md):
|
|
87
99
|
database queries, accounts, child rows, actions and private attachments.
|
|
88
|
-
- [UI guide](docs/ui.md): the browser interface
|
|
100
|
+
- [UI guide](docs/ui.md): the browser interface and its routes.
|
|
89
101
|
- [Reports](docs/reports.md): filters, typed rows, totals, a chart, CSV export and print, in the browser and for Eva.
|
|
90
102
|
- [Slips](docs/slips.md): forms presented from code that save nothing until handed in.
|
|
91
103
|
- [Routing](docs/routing.md): frontends, reserved paths, `routes.py` and `evlet routes`.
|
|
@@ -10,6 +10,18 @@ Use Python 3.12 or newer in a virtual environment:
|
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
12
|
python -m pip install --upgrade evlet
|
|
13
|
+
evlet setup myproject --app notes --instance acme --dev
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
That one command creates the project, a Notes app and a site called acme,
|
|
17
|
+
installs the app and starts `evlet dev` on 127.0.0.1. Read the trust prompt
|
|
18
|
+
first. The server prints a one-time sign-in link for a new administrator. Your
|
|
19
|
+
site keeps its data when you stop and restart it; run the same command again to
|
|
20
|
+
pick up where it stopped.
|
|
21
|
+
|
|
22
|
+
The same steps one at a time:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
13
25
|
evlet setup myproject
|
|
14
26
|
cd myproject
|
|
15
27
|
evlet app notes
|
|
@@ -18,9 +30,9 @@ evlet install notes --instance acme
|
|
|
18
30
|
evlet serve acme
|
|
19
31
|
```
|
|
20
32
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
Then open **http://127.0.0.1:8000** and create your first administrator. There is
|
|
34
|
+
no default password. To serve a site on your own domain behind Caddy, see
|
|
35
|
+
[Serve a site on a domain in one go](docs/cli.md#serve-a-site-on-a-domain-in-one-go).
|
|
24
36
|
|
|
25
37
|
An **app** contains reusable Python code. An **instance** is a site with its own
|
|
26
38
|
database, accounts and files. You can install the same app on several instances.
|
|
@@ -56,7 +68,7 @@ For virtual environment setup and each step explained, read
|
|
|
56
68
|
backups and moving a project.
|
|
57
69
|
- [Model engine](docs/model-engine.md) and [business capabilities](docs/business-capabilities.md):
|
|
58
70
|
database queries, accounts, child rows, actions and private attachments.
|
|
59
|
-
- [UI guide](docs/ui.md): the browser interface
|
|
71
|
+
- [UI guide](docs/ui.md): the browser interface and its routes.
|
|
60
72
|
- [Reports](docs/reports.md): filters, typed rows, totals, a chart, CSV export and print, in the browser and for Eva.
|
|
61
73
|
- [Slips](docs/slips.md): forms presented from code that save nothing until handed in.
|
|
62
74
|
- [Routing](docs/routing.md): frontends, reserved paths, `routes.py` and `evlet routes`.
|
|
@@ -15,7 +15,7 @@ class BuildPy(build_py):
|
|
|
15
15
|
playground = resources / 'playground'
|
|
16
16
|
playground.mkdir(parents=True, exist_ok=True)
|
|
17
17
|
(playground / '__init__.py').write_text('"""Bundled framework examples."""\n')
|
|
18
|
-
for name in ('app.py', 'items.py', 'models.py', 'migrate.py', 'prints.py', 'reports.py', 'settings.py', 'slips.py', '
|
|
18
|
+
for name in ('app.py', 'items.py', 'models.py', 'migrate.py', 'prints.py', 'reports.py', 'settings.py', 'slips.py', 'workspaces.py'):
|
|
19
19
|
shutil.copy2(root / 'examples/playground' / name, playground / name)
|
|
20
20
|
shutil.copytree(root / 'examples/playground/portal', playground / 'portal', dirs_exist_ok=True)
|
|
21
21
|
docs = resources / 'docs'
|
|
@@ -39,7 +39,7 @@ evlet dev --instance local --watch
|
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
A new app has one Python package root: `apps/selling/__init__.py`, `models/`,
|
|
42
|
-
and `pyproject.toml`. `reports/`, `services
|
|
42
|
+
and `pyproject.toml`. `reports/`, `services/` and `migrations/` are
|
|
43
43
|
optional. Its generated setuptools configuration supports ordinary imports,
|
|
44
44
|
editable installation, source distributions and wheels without an import-path
|
|
45
45
|
change in the caller. Build/install prepare declared Python dependencies and
|
|
@@ -71,7 +71,8 @@ Nested child storage defaults to `parent_table_collection`. Two parents may
|
|
|
71
71
|
therefore each define a nested `Item` class.
|
|
72
72
|
|
|
73
73
|
Discovery recursively imports owning modules in `models/`, `reports/`,
|
|
74
|
-
`services/` and `
|
|
74
|
+
`services/`, `migrations/` and `workspaces/` (or `workspaces.py`, which collects every module-level
|
|
75
|
+
`Workspace` in the order it is defined, [ui.md](ui.md#workspaces)). Re-exporting a service does not register it again.
|
|
75
76
|
Service decorators require synchronous module-level functions. Unresolved
|
|
76
77
|
targets, resource collisions, invalid fields/expressions, dependency cycles,
|
|
77
78
|
invalid service signatures and cron expressions fail before activation.
|
|
@@ -143,8 +144,11 @@ The common field vocabulary adds:
|
|
|
143
144
|
|
|
144
145
|
Expressions use bounded literals/references, arithmetic, comparison, null checks,
|
|
145
146
|
lazy Boolean/conditional operations and `sum/count/min/max`. No arbitrary calls,
|
|
146
|
-
comprehensions, imports or source evaluation are accepted. Numeric fields
|
|
147
|
-
exact decimals.
|
|
147
|
+
comprehensions, imports or source evaluation are accepted. Numeric fields
|
|
148
|
+
(Integer, Decimal, Currency and Percent) use exact decimals. A Percent is its stored
|
|
149
|
+
number, as in finite-v1: a Percent of `12.50` is 12.50, so `price * discount / 100`
|
|
150
|
+
takes 12.5% of a price. Arithmetic on any other field is refused when the registry is
|
|
151
|
+
built, with an error that names the formula, the field and its type. Intermediates allow at most 40 significant coefficient digits
|
|
148
152
|
and 36 fractional places; division rounds to 18 places, half even. Target fields
|
|
149
153
|
round half even to their declared scale and enforce signed scaled-storage bounds.
|
|
150
154
|
New document integers and integer results must fit `±(2**53-1)`. Legacy database
|
|
@@ -170,6 +174,14 @@ The public `Query` declaration is internally `ReactiveQuery`; the existing
|
|
|
170
174
|
one row; multiple matches are an error. Function sources use
|
|
171
175
|
`Query(function, fields={"qty": Decimal(), ...})` and explicit `@depends(...)`.
|
|
172
176
|
A single virtual field can instead use `Decimal(query=function, stored=False)`.
|
|
177
|
+
|
|
178
|
+
Virtual results (`stored=False`: formulas, Query lookups, function queries and `fetch=`
|
|
179
|
+
copies) are calculated for each record response: `GET /api/{model}/{id}`, the create and
|
|
180
|
+
update responses and pages of `/lines/`. They are calculated from the saved values as the
|
|
181
|
+
draft preview calculates them, and a role sees one only when it may read the field, as for
|
|
182
|
+
stored fields (a formula over a field it cannot read stays out). They are not part of the
|
|
183
|
+
record's ETag, since they may read other records or the date. A virtual `fetch=` always reads
|
|
184
|
+
the linked record, which it shows empty when the caller cannot read that record.
|
|
173
185
|
`items.*.qty` includes row membership and each row quantity. Functions receive
|
|
174
186
|
the effective unsaved draft, immutable row collections and a read-only context.
|
|
175
187
|
They return declared values and cannot write/enqueue through that context.
|
|
@@ -276,27 +288,6 @@ to the external receiver. Leases fence completion; they cannot undo an external
|
|
|
276
288
|
effect or guarantee exactly-once delivery. Retries and receiver deduplication
|
|
277
289
|
remain necessary. No new broker or worker service is required.
|
|
278
290
|
|
|
279
|
-
## Native extensions
|
|
280
|
-
|
|
281
|
-
Optional `views/**/*.ts` or `.js` modules export
|
|
282
|
-
`extension = {name, target, override?, render(context)}`. Node 24 strips TS types
|
|
283
|
-
and prepares an app-owned ESM module graph. Relative imports require explicit
|
|
284
|
-
`.ts/.js` extensions. The deliberately small host contract does not compile JSX
|
|
285
|
-
or resolve arbitrary npm packages; use a compatible prebuilt JS module for those
|
|
286
|
-
assets. No separate frontend app, SSR host or alternate framework is introduced.
|
|
287
|
-
|
|
288
|
-
`render` returns a title, escaped text `content` or a native neutral `layout`,
|
|
289
|
-
optional initial `state`, button `actions` and `dispose()`. Native layouts reuse
|
|
290
|
-
the existing component/operation renderer, including tables, menus and dialogs.
|
|
291
|
-
The context provides the current readable record/report result, authenticated
|
|
292
|
-
`request`, notifications and the framework dialog controller. Targets include
|
|
293
|
-
model/report IDs and `model.resource.dialog_action`. Identical target/name slots
|
|
294
|
-
need `override=true`; dependency order determines layering. Presentation never
|
|
295
|
-
changes backend permissions or validation. Assets use the same generation hash
|
|
296
|
-
as metadata, require authenticated target access, and expose only allowlisted
|
|
297
|
-
client modules. Python sources and source maps are not served. Cleanup runs on
|
|
298
|
-
unmount. See `examples/amendment/views/models/sales_order.ts`.
|
|
299
|
-
|
|
300
291
|
## Upgrade and recovery
|
|
301
292
|
|
|
302
293
|
Keep existing migrations frozen. Moving an app from nested to flat layout changes
|
|
@@ -319,7 +310,7 @@ change.
|
|
|
319
310
|
|
|
320
311
|
`examples/amendment` is a flat, installable app with masters, Sales Order/owned
|
|
321
312
|
items, exact totals, stock preview, a source-bound Work Order planning dialog,
|
|
322
|
-
manual/automatic reports, nested services
|
|
313
|
+
manual/automatic reports, nested services and cron. It is a
|
|
323
314
|
framework fixture, not a complete manufacturing product. Planning rechecks row
|
|
324
315
|
ownership, item/company/unit/BOM, remaining non-cancelled commitments, source
|
|
325
316
|
revision and idempotency, then creates all selected Work Orders together.
|