@plumix/core 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cache/embedded-tags.d.ts +5 -0
- package/dist/cache/embedded-tags.d.ts.map +1 -0
- package/dist/cache/embedded-tags.js +30 -0
- package/dist/cache/embedded-tags.js.map +1 -0
- package/dist/context/app.d.ts +12 -0
- package/dist/context/app.d.ts.map +1 -1
- package/dist/context/app.js +10 -4
- package/dist/context/app.js.map +1 -1
- package/dist/context/memo.d.ts +22 -0
- package/dist/context/memo.d.ts.map +1 -0
- package/dist/context/memo.js +27 -0
- package/dist/context/memo.js.map +1 -0
- package/dist/context/traced-slots.d.ts +17 -0
- package/dist/context/traced-slots.d.ts.map +1 -0
- package/dist/context/traced-slots.js +57 -0
- package/dist/context/traced-slots.js.map +1 -0
- package/dist/entries/read-service.d.ts +6 -0
- package/dist/entries/read-service.d.ts.map +1 -1
- package/dist/entries/read-service.js +19 -3
- package/dist/entries/read-service.js.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/plugin/errors.d.ts +7 -1
- package/dist/plugin/errors.d.ts.map +1 -1
- package/dist/plugin/errors.js +5 -0
- package/dist/plugin/errors.js.map +1 -1
- package/dist/plugin/fields/builder.d.ts +106 -0
- package/dist/plugin/fields/builder.d.ts.map +1 -0
- package/dist/plugin/fields/builder.js +162 -0
- package/dist/plugin/fields/builder.js.map +1 -0
- package/dist/plugin/fields/color.d.ts +78 -18
- package/dist/plugin/fields/color.d.ts.map +1 -1
- package/dist/plugin/fields/color.js +116 -25
- package/dist/plugin/fields/color.js.map +1 -1
- package/dist/plugin/fields/condition.d.ts +40 -0
- package/dist/plugin/fields/condition.d.ts.map +1 -0
- package/dist/plugin/fields/condition.js +115 -0
- package/dist/plugin/fields/condition.js.map +1 -0
- package/dist/plugin/fields/contributions.d.ts +233 -0
- package/dist/plugin/fields/contributions.d.ts.map +1 -0
- package/dist/plugin/fields/contributions.js +1 -0
- package/dist/plugin/fields/contributions.js.map +1 -0
- package/dist/plugin/fields/entry.d.ts +24 -20
- package/dist/plugin/fields/entry.d.ts.map +1 -1
- package/dist/plugin/fields/entry.js +13 -21
- package/dist/plugin/fields/entry.js.map +1 -1
- package/dist/plugin/fields/errors.d.ts +23 -11
- package/dist/plugin/fields/errors.d.ts.map +1 -1
- package/dist/plugin/fields/errors.js +20 -13
- package/dist/plugin/fields/errors.js.map +1 -1
- package/dist/plugin/fields/group.d.ts +90 -0
- package/dist/plugin/fields/group.d.ts.map +1 -0
- package/dist/plugin/fields/group.js +124 -0
- package/dist/plugin/fields/group.js.map +1 -0
- package/dist/plugin/fields/index.d.ts +22 -45
- package/dist/plugin/fields/index.d.ts.map +1 -1
- package/dist/plugin/fields/index.js +25 -30
- package/dist/plugin/fields/index.js.map +1 -1
- package/dist/plugin/fields/json.d.ts +71 -9
- package/dist/plugin/fields/json.d.ts.map +1 -1
- package/dist/plugin/fields/json.js +110 -16
- package/dist/plugin/fields/json.js.map +1 -1
- package/dist/plugin/fields/link.d.ts +96 -0
- package/dist/plugin/fields/link.d.ts.map +1 -0
- package/dist/plugin/fields/link.js +160 -0
- package/dist/plugin/fields/link.js.map +1 -0
- package/dist/plugin/fields/number.d.ts +86 -13
- package/dist/plugin/fields/number.d.ts.map +1 -1
- package/dist/plugin/fields/number.js +133 -20
- package/dist/plugin/fields/number.js.map +1 -1
- package/dist/plugin/fields/range.d.ts +101 -17
- package/dist/plugin/fields/range.d.ts.map +1 -1
- package/dist/plugin/fields/range.js +153 -38
- package/dist/plugin/fields/range.js.map +1 -1
- package/dist/plugin/fields/reference.d.ts +171 -0
- package/dist/plugin/fields/reference.d.ts.map +1 -0
- package/dist/plugin/fields/reference.js +193 -0
- package/dist/plugin/fields/reference.js.map +1 -0
- package/dist/plugin/fields/repeater.d.ts +111 -8
- package/dist/plugin/fields/repeater.d.ts.map +1 -1
- package/dist/plugin/fields/repeater.js +157 -66
- package/dist/plugin/fields/repeater.js.map +1 -1
- package/dist/plugin/fields/richtext-validate.d.ts +7 -0
- package/dist/plugin/fields/richtext-validate.d.ts.map +1 -1
- package/dist/plugin/fields/richtext-validate.js +11 -5
- package/dist/plugin/fields/richtext-validate.js.map +1 -1
- package/dist/plugin/fields/richtext.d.ts +78 -12
- package/dist/plugin/fields/richtext.d.ts.map +1 -1
- package/dist/plugin/fields/richtext.js +121 -26
- package/dist/plugin/fields/richtext.js.map +1 -1
- package/dist/plugin/fields/select.d.ts +150 -10
- package/dist/plugin/fields/select.d.ts.map +1 -1
- package/dist/plugin/fields/select.js +205 -17
- package/dist/plugin/fields/select.js.map +1 -1
- package/dist/plugin/fields/sub-fields.d.ts +12 -0
- package/dist/plugin/fields/sub-fields.d.ts.map +1 -0
- package/dist/plugin/fields/sub-fields.js +62 -0
- package/dist/plugin/fields/sub-fields.js.map +1 -0
- package/dist/plugin/fields/temporal.d.ts +124 -0
- package/dist/plugin/fields/temporal.d.ts.map +1 -0
- package/dist/plugin/fields/temporal.js +180 -0
- package/dist/plugin/fields/temporal.js.map +1 -0
- package/dist/plugin/fields/term.d.ts +11 -16
- package/dist/plugin/fields/term.d.ts.map +1 -1
- package/dist/plugin/fields/term.js +11 -19
- package/dist/plugin/fields/term.js.map +1 -1
- package/dist/plugin/fields/toggle.d.ts +97 -0
- package/dist/plugin/fields/toggle.d.ts.map +1 -0
- package/dist/plugin/fields/toggle.js +135 -0
- package/dist/plugin/fields/toggle.js.map +1 -0
- package/dist/plugin/fields/user.d.ts +14 -26
- package/dist/plugin/fields/user.d.ts.map +1 -1
- package/dist/plugin/fields/user.js +11 -25
- package/dist/plugin/fields/user.js.map +1 -1
- package/dist/plugin/lookup.d.ts +74 -10
- package/dist/plugin/lookup.d.ts.map +1 -1
- package/dist/plugin/manifest.d.ts +319 -160
- package/dist/plugin/manifest.d.ts.map +1 -1
- package/dist/plugin/manifest.js +94 -4
- package/dist/plugin/manifest.js.map +1 -1
- package/dist/plugin/setup-context.d.ts +10 -4
- package/dist/plugin/setup-context.d.ts.map +1 -1
- package/dist/plugin/setup-context.js +10 -3
- package/dist/plugin/setup-context.js.map +1 -1
- package/dist/plugin/validation/meta-box-fields.d.ts.map +1 -1
- package/dist/plugin/validation/meta-box-fields.js +16 -0
- package/dist/plugin/validation/meta-box-fields.js.map +1 -1
- package/dist/route/render/asset-manifest.d.ts +1 -1
- package/dist/route/render/asset-manifest.d.ts.map +1 -1
- package/dist/route/render/asset-manifest.js +7 -1
- package/dist/route/render/asset-manifest.js.map +1 -1
- package/dist/route/render/build-resolved-entries.d.ts.map +1 -1
- package/dist/route/render/build-resolved-entries.js +25 -12
- package/dist/route/render/build-resolved-entries.js.map +1 -1
- package/dist/route/render/render-template.d.ts +1 -1
- package/dist/route/render/render-template.d.ts.map +1 -1
- package/dist/route/render/render-template.js +50 -23
- package/dist/route/render/render-template.js.map +1 -1
- package/dist/route/render/template-builders.d.ts +15 -10
- package/dist/route/render/template-builders.d.ts.map +1 -1
- package/dist/route/render/template-builders.js.map +1 -1
- package/dist/rpc/base.d.ts +7 -0
- package/dist/rpc/base.d.ts.map +1 -1
- package/dist/rpc/errors.d.ts +7 -0
- package/dist/rpc/errors.d.ts.map +1 -1
- package/dist/rpc/errors.js +16 -0
- package/dist/rpc/errors.js.map +1 -1
- package/dist/rpc/meta/core.d.ts +92 -14
- package/dist/rpc/meta/core.d.ts.map +1 -1
- package/dist/rpc/meta/core.js +524 -406
- package/dist/rpc/meta/core.js.map +1 -1
- package/dist/rpc/meta/field-messages.d.ts +67 -0
- package/dist/rpc/meta/field-messages.d.ts.map +1 -0
- package/dist/rpc/meta/field-messages.js +67 -0
- package/dist/rpc/meta/field-messages.js.map +1 -0
- package/dist/rpc/meta/field-pipeline.d.ts +52 -0
- package/dist/rpc/meta/field-pipeline.d.ts.map +1 -0
- package/dist/rpc/meta/field-pipeline.js +501 -0
- package/dist/rpc/meta/field-pipeline.js.map +1 -0
- package/dist/rpc/procedures/auth/allowed-domains/create.d.ts +7 -0
- package/dist/rpc/procedures/auth/allowed-domains/create.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/allowed-domains/delete.d.ts +7 -0
- package/dist/rpc/procedures/auth/allowed-domains/delete.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/allowed-domains/index.d.ts +28 -0
- package/dist/rpc/procedures/auth/allowed-domains/index.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/allowed-domains/list.d.ts +7 -0
- package/dist/rpc/procedures/auth/allowed-domains/list.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/allowed-domains/update.d.ts +7 -0
- package/dist/rpc/procedures/auth/allowed-domains/update.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/api-tokens/admin-list.d.ts +7 -0
- package/dist/rpc/procedures/auth/api-tokens/admin-list.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/api-tokens/admin-revoke.d.ts +7 -0
- package/dist/rpc/procedures/auth/api-tokens/admin-revoke.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/api-tokens/create.d.ts +7 -0
- package/dist/rpc/procedures/auth/api-tokens/create.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/api-tokens/index.d.ts +35 -0
- package/dist/rpc/procedures/auth/api-tokens/index.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/api-tokens/list.d.ts +7 -0
- package/dist/rpc/procedures/auth/api-tokens/list.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/api-tokens/revoke.d.ts +7 -0
- package/dist/rpc/procedures/auth/api-tokens/revoke.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/credentials/delete.d.ts +7 -0
- package/dist/rpc/procedures/auth/credentials/delete.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/credentials/index.d.ts +21 -0
- package/dist/rpc/procedures/auth/credentials/index.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/credentials/list.d.ts +7 -0
- package/dist/rpc/procedures/auth/credentials/list.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/credentials/rename.d.ts +7 -0
- package/dist/rpc/procedures/auth/credentials/rename.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/device-flow/approve.d.ts +7 -0
- package/dist/rpc/procedures/auth/device-flow/approve.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/device-flow/deny.d.ts +7 -0
- package/dist/rpc/procedures/auth/device-flow/deny.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/device-flow/index.d.ts +21 -0
- package/dist/rpc/procedures/auth/device-flow/index.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/device-flow/lookup.d.ts +7 -0
- package/dist/rpc/procedures/auth/device-flow/lookup.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/index.d.ts +154 -0
- package/dist/rpc/procedures/auth/index.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/login-links.d.ts +7 -0
- package/dist/rpc/procedures/auth/login-links.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/mailer/index.d.ts +7 -0
- package/dist/rpc/procedures/auth/mailer/index.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/mailer/test-send.d.ts +7 -0
- package/dist/rpc/procedures/auth/mailer/test-send.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/oauth-providers.d.ts +7 -0
- package/dist/rpc/procedures/auth/oauth-providers.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/session.d.ts +7 -0
- package/dist/rpc/procedures/auth/session.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/sessions/index.d.ts +21 -0
- package/dist/rpc/procedures/auth/sessions/index.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/sessions/list.d.ts +7 -0
- package/dist/rpc/procedures/auth/sessions/list.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/sessions/revoke-others.d.ts +7 -0
- package/dist/rpc/procedures/auth/sessions/revoke-others.d.ts.map +1 -1
- package/dist/rpc/procedures/auth/sessions/revoke.d.ts +7 -0
- package/dist/rpc/procedures/auth/sessions/revoke.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/activity.d.ts +7 -0
- package/dist/rpc/procedures/entry/activity.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/bulk.d.ts +21 -0
- package/dist/rpc/procedures/entry/bulk.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/create-preview-link.d.ts +7 -0
- package/dist/rpc/procedures/entry/create-preview-link.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/create.d.ts +8 -1
- package/dist/rpc/procedures/entry/create.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/create.js +8 -8
- package/dist/rpc/procedures/entry/create.js.map +1 -1
- package/dist/rpc/procedures/entry/dashboard.d.ts +14 -0
- package/dist/rpc/procedures/entry/dashboard.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/delete-permanent.d.ts +7 -0
- package/dist/rpc/procedures/entry/delete-permanent.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/discard-draft.d.ts +7 -0
- package/dist/rpc/procedures/entry/discard-draft.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/duplicate.d.ts +7 -0
- package/dist/rpc/procedures/entry/duplicate.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/duplicate.js +2 -2
- package/dist/rpc/procedures/entry/duplicate.js.map +1 -1
- package/dist/rpc/procedures/entry/get.d.ts +7 -0
- package/dist/rpc/procedures/entry/get.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/get.js +2 -2
- package/dist/rpc/procedures/entry/get.js.map +1 -1
- package/dist/rpc/procedures/entry/index.d.ts +156 -2
- package/dist/rpc/procedures/entry/index.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/list.d.ts +7 -0
- package/dist/rpc/procedures/entry/list.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/lookup.d.ts +8 -2
- package/dist/rpc/procedures/entry/lookup.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/lookup.js +74 -12
- package/dist/rpc/procedures/entry/lookup.js.map +1 -1
- package/dist/rpc/procedures/entry/meta.d.ts +37 -3
- package/dist/rpc/procedures/entry/meta.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/meta.js +63 -7
- package/dist/rpc/procedures/entry/meta.js.map +1 -1
- package/dist/rpc/procedures/entry/publish.d.ts +7 -0
- package/dist/rpc/procedures/entry/publish.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/publish.js +6 -4
- package/dist/rpc/procedures/entry/publish.js.map +1 -1
- package/dist/rpc/procedures/entry/refresh-block-loader.d.ts +7 -0
- package/dist/rpc/procedures/entry/refresh-block-loader.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/restore.d.ts +7 -0
- package/dist/rpc/procedures/entry/restore.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/revisions.d.ts +56 -0
- package/dist/rpc/procedures/entry/revisions.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/schemas.d.ts +2 -2
- package/dist/rpc/procedures/entry/schemas.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/schemas.js +9 -2
- package/dist/rpc/procedures/entry/schemas.js.map +1 -1
- package/dist/rpc/procedures/entry/trash.d.ts +7 -0
- package/dist/rpc/procedures/entry/trash.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/update.d.ts +8 -1
- package/dist/rpc/procedures/entry/update.d.ts.map +1 -1
- package/dist/rpc/procedures/entry/update.js +77 -18
- package/dist/rpc/procedures/entry/update.js.map +1 -1
- package/dist/rpc/procedures/lookup/index.d.ts +14 -0
- package/dist/rpc/procedures/lookup/index.d.ts.map +1 -1
- package/dist/rpc/procedures/lookup/list.d.ts +7 -0
- package/dist/rpc/procedures/lookup/list.d.ts.map +1 -1
- package/dist/rpc/procedures/lookup/resolve.d.ts +7 -0
- package/dist/rpc/procedures/lookup/resolve.d.ts.map +1 -1
- package/dist/rpc/procedures/lookup/resolve.js +1 -1
- package/dist/rpc/procedures/lookup/resolve.js.map +1 -1
- package/dist/rpc/procedures/lookup.errors.d.ts +2 -1
- package/dist/rpc/procedures/lookup.errors.d.ts.map +1 -1
- package/dist/rpc/procedures/lookup.errors.js +3 -0
- package/dist/rpc/procedures/lookup.errors.js.map +1 -1
- package/dist/rpc/procedures/search/index.d.ts +7 -0
- package/dist/rpc/procedures/search/index.d.ts.map +1 -1
- package/dist/rpc/procedures/settings/get.d.ts +7 -0
- package/dist/rpc/procedures/settings/get.d.ts.map +1 -1
- package/dist/rpc/procedures/settings/index.d.ts +14 -0
- package/dist/rpc/procedures/settings/index.d.ts.map +1 -1
- package/dist/rpc/procedures/settings/upsert.d.ts +7 -0
- package/dist/rpc/procedures/settings/upsert.d.ts.map +1 -1
- package/dist/rpc/procedures/settings/upsert.js +9 -0
- package/dist/rpc/procedures/settings/upsert.js.map +1 -1
- package/dist/rpc/procedures/term/create.d.ts +7 -0
- package/dist/rpc/procedures/term/create.d.ts.map +1 -1
- package/dist/rpc/procedures/term/create.js +3 -3
- package/dist/rpc/procedures/term/create.js.map +1 -1
- package/dist/rpc/procedures/term/delete.d.ts +7 -0
- package/dist/rpc/procedures/term/delete.d.ts.map +1 -1
- package/dist/rpc/procedures/term/get.d.ts +7 -0
- package/dist/rpc/procedures/term/get.d.ts.map +1 -1
- package/dist/rpc/procedures/term/index.d.ts +35 -0
- package/dist/rpc/procedures/term/index.d.ts.map +1 -1
- package/dist/rpc/procedures/term/list.d.ts +7 -0
- package/dist/rpc/procedures/term/list.d.ts.map +1 -1
- package/dist/rpc/procedures/term/lookup.d.ts +7 -2
- package/dist/rpc/procedures/term/lookup.d.ts.map +1 -1
- package/dist/rpc/procedures/term/lookup.js +29 -8
- package/dist/rpc/procedures/term/lookup.js.map +1 -1
- package/dist/rpc/procedures/term/meta.d.ts +3 -2
- package/dist/rpc/procedures/term/meta.d.ts.map +1 -1
- package/dist/rpc/procedures/term/meta.js +7 -5
- package/dist/rpc/procedures/term/meta.js.map +1 -1
- package/dist/rpc/procedures/term/update.d.ts +7 -0
- package/dist/rpc/procedures/term/update.d.ts.map +1 -1
- package/dist/rpc/procedures/term/update.js +4 -4
- package/dist/rpc/procedures/term/update.js.map +1 -1
- package/dist/rpc/procedures/user/cancel-email-change.d.ts +7 -0
- package/dist/rpc/procedures/user/cancel-email-change.d.ts.map +1 -1
- package/dist/rpc/procedures/user/delete.d.ts +7 -0
- package/dist/rpc/procedures/user/delete.d.ts.map +1 -1
- package/dist/rpc/procedures/user/disable.d.ts +7 -0
- package/dist/rpc/procedures/user/disable.d.ts.map +1 -1
- package/dist/rpc/procedures/user/enable.d.ts +7 -0
- package/dist/rpc/procedures/user/enable.d.ts.map +1 -1
- package/dist/rpc/procedures/user/get.d.ts +7 -0
- package/dist/rpc/procedures/user/get.d.ts.map +1 -1
- package/dist/rpc/procedures/user/get.js +2 -2
- package/dist/rpc/procedures/user/get.js.map +1 -1
- package/dist/rpc/procedures/user/index.d.ts +77 -0
- package/dist/rpc/procedures/user/index.d.ts.map +1 -1
- package/dist/rpc/procedures/user/invite.d.ts +7 -0
- package/dist/rpc/procedures/user/invite.d.ts.map +1 -1
- package/dist/rpc/procedures/user/list.d.ts +7 -0
- package/dist/rpc/procedures/user/list.d.ts.map +1 -1
- package/dist/rpc/procedures/user/lookup.d.ts +6 -2
- package/dist/rpc/procedures/user/lookup.d.ts.map +1 -1
- package/dist/rpc/procedures/user/lookup.js +29 -0
- package/dist/rpc/procedures/user/lookup.js.map +1 -1
- package/dist/rpc/procedures/user/meta.d.ts +3 -2
- package/dist/rpc/procedures/user/meta.d.ts.map +1 -1
- package/dist/rpc/procedures/user/meta.js +7 -5
- package/dist/rpc/procedures/user/meta.js.map +1 -1
- package/dist/rpc/procedures/user/pending-email-change.d.ts +7 -0
- package/dist/rpc/procedures/user/pending-email-change.d.ts.map +1 -1
- package/dist/rpc/procedures/user/request-email-change.d.ts +7 -0
- package/dist/rpc/procedures/user/request-email-change.d.ts.map +1 -1
- package/dist/rpc/procedures/user/set-locale.d.ts +7 -0
- package/dist/rpc/procedures/user/set-locale.d.ts.map +1 -1
- package/dist/rpc/procedures/user/update.d.ts +7 -0
- package/dist/rpc/procedures/user/update.d.ts.map +1 -1
- package/dist/rpc/procedures/user/update.js +4 -4
- package/dist/rpc/procedures/user/update.js.map +1 -1
- package/dist/rpc/router.d.ts +457 -2
- package/dist/rpc/router.d.ts.map +1 -1
- package/dist/rpc/validation.d.ts +1 -0
- package/dist/rpc/validation.d.ts.map +1 -1
- package/dist/rpc/validation.js +1 -0
- package/dist/rpc/validation.js.map +1 -1
- package/dist/runtime/dispatcher.d.ts.map +1 -1
- package/dist/runtime/dispatcher.js +90 -39
- package/dist/runtime/dispatcher.js.map +1 -1
- package/dist/seo/feed.d.ts.map +1 -1
- package/dist/seo/feed.js +7 -1
- package/dist/seo/feed.js.map +1 -1
- package/dist/settings-core.js +1 -1
- package/dist/settings-core.js.map +1 -1
- package/dist/telemetry-otel.d.ts +29 -0
- package/dist/telemetry-otel.d.ts.map +1 -0
- package/dist/telemetry-otel.js +218 -0
- package/dist/telemetry-otel.js.map +1 -0
- package/dist/template-deps-core.d.ts.map +1 -1
- package/dist/template-deps-core.js +31 -14
- package/dist/template-deps-core.js.map +1 -1
- package/dist/template-deps.d.ts.map +1 -1
- package/dist/template-deps.js +12 -8
- package/dist/template-deps.js.map +1 -1
- package/dist/template-registry.d.ts +0 -16
- package/dist/template-registry.d.ts.map +1 -1
- package/dist/terms/read-service.js +2 -2
- package/dist/terms/read-service.js.map +1 -1
- package/dist/test/index.d.ts +3 -0
- package/dist/test/index.d.ts.map +1 -1
- package/dist/test/index.js +4 -0
- package/dist/test/index.js.map +1 -1
- package/dist/test/traced-context.d.ts +17 -0
- package/dist/test/traced-context.d.ts.map +1 -0
- package/dist/test/traced-context.js +28 -0
- package/dist/test/traced-context.js.map +1 -0
- package/package.json +6 -2
- package/dist/plugin/fields/checkbox.d.ts +0 -19
- package/dist/plugin/fields/checkbox.d.ts.map +0 -1
- package/dist/plugin/fields/checkbox.js +0 -20
- package/dist/plugin/fields/checkbox.js.map +0 -1
- package/dist/plugin/fields/date.d.ts +0 -24
- package/dist/plugin/fields/date.d.ts.map +0 -1
- package/dist/plugin/fields/date.js +0 -23
- package/dist/plugin/fields/date.js.map +0 -1
- package/dist/plugin/fields/datetime.d.ts +0 -26
- package/dist/plugin/fields/datetime.d.ts.map +0 -1
- package/dist/plugin/fields/datetime.js +0 -25
- package/dist/plugin/fields/datetime.js.map +0 -1
- package/dist/plugin/fields/email.d.ts +0 -17
- package/dist/plugin/fields/email.d.ts.map +0 -1
- package/dist/plugin/fields/email.js +0 -18
- package/dist/plugin/fields/email.js.map +0 -1
- package/dist/plugin/fields/entry-list.d.ts +0 -28
- package/dist/plugin/fields/entry-list.d.ts.map +0 -1
- package/dist/plugin/fields/entry-list.js +0 -31
- package/dist/plugin/fields/entry-list.js.map +0 -1
- package/dist/plugin/fields/multiselect.d.ts +0 -21
- package/dist/plugin/fields/multiselect.d.ts.map +0 -1
- package/dist/plugin/fields/multiselect.js +0 -43
- package/dist/plugin/fields/multiselect.js.map +0 -1
- package/dist/plugin/fields/password.d.ts +0 -24
- package/dist/plugin/fields/password.d.ts.map +0 -1
- package/dist/plugin/fields/password.js +0 -25
- package/dist/plugin/fields/password.js.map +0 -1
- package/dist/plugin/fields/radio.d.ts +0 -16
- package/dist/plugin/fields/radio.d.ts.map +0 -1
- package/dist/plugin/fields/radio.js +0 -17
- package/dist/plugin/fields/radio.js.map +0 -1
- package/dist/plugin/fields/repeater-validate.d.ts +0 -34
- package/dist/plugin/fields/repeater-validate.d.ts.map +0 -1
- package/dist/plugin/fields/repeater-validate.js +0 -104
- package/dist/plugin/fields/repeater-validate.js.map +0 -1
- package/dist/plugin/fields/term-list.d.ts +0 -27
- package/dist/plugin/fields/term-list.d.ts.map +0 -1
- package/dist/plugin/fields/term-list.js +0 -30
- package/dist/plugin/fields/term-list.js.map +0 -1
- package/dist/plugin/fields/text.d.ts +0 -37
- package/dist/plugin/fields/text.d.ts.map +0 -1
- package/dist/plugin/fields/text.js +0 -31
- package/dist/plugin/fields/text.js.map +0 -1
- package/dist/plugin/fields/textarea.d.ts +0 -20
- package/dist/plugin/fields/textarea.d.ts.map +0 -1
- package/dist/plugin/fields/textarea.js +0 -21
- package/dist/plugin/fields/textarea.js.map +0 -1
- package/dist/plugin/fields/time.d.ts +0 -24
- package/dist/plugin/fields/time.d.ts.map +0 -1
- package/dist/plugin/fields/time.js +0 -23
- package/dist/plugin/fields/time.js.map +0 -1
- package/dist/plugin/fields/url.d.ts +0 -17
- package/dist/plugin/fields/url.d.ts.map +0 -1
- package/dist/plugin/fields/url.js +0 -18
- package/dist/plugin/fields/url.js.map +0 -1
- package/dist/plugin/fields/user-list.d.ts +0 -29
- package/dist/plugin/fields/user-list.d.ts.map +0 -1
- package/dist/plugin/fields/user-list.js +0 -31
- package/dist/plugin/fields/user-list.js.map +0 -1
|
@@ -1,24 +1,137 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import { humanizeFieldKey } from "./builder.js";
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* `
|
|
4
|
+
* Fluent chain for the `number` field. Mirrors `StringFieldBuilder` —
|
|
5
|
+
* immutable, phantom-typed (`K` literal key, `V` read type, `S`
|
|
6
|
+
* stored shape). `step` defaults to `1` (integer input) at the
|
|
7
|
+
* renderer when omitted; the definition stays minimal.
|
|
5
8
|
*/
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
9
|
+
export class NumberFieldBuilder {
|
|
10
|
+
#key;
|
|
11
|
+
#state;
|
|
12
|
+
constructor(key, state = {}) {
|
|
13
|
+
this.#key = key;
|
|
14
|
+
this.#state = state;
|
|
15
|
+
}
|
|
16
|
+
#fork(patch) {
|
|
17
|
+
return new _a(this.#key, {
|
|
18
|
+
...this.#state,
|
|
19
|
+
...patch,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/** Override the derived (humanized-key) label. */
|
|
23
|
+
label(label) {
|
|
24
|
+
return this.#fork({ label });
|
|
25
|
+
}
|
|
26
|
+
/** Help text rendered under the label. */
|
|
27
|
+
description(description) {
|
|
28
|
+
return this.#fork({ description });
|
|
29
|
+
}
|
|
30
|
+
placeholder(placeholder) {
|
|
31
|
+
return this.#fork({ placeholder });
|
|
32
|
+
}
|
|
33
|
+
/** Default for absent keys, applied at read decode (and seeded into
|
|
34
|
+
* the admin form) — narrows the read type to `number`; the stored
|
|
35
|
+
* shape stays optional. */
|
|
36
|
+
default(value) {
|
|
37
|
+
return this.#fork({ default: value });
|
|
38
|
+
}
|
|
39
|
+
/** Mark the field required — narrows the read and stored types to `number`. */
|
|
40
|
+
required() {
|
|
41
|
+
return this.#fork({ required: true });
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Column span within the box's 12-column grid — a universal layout
|
|
45
|
+
* hint; surfaces that can't honor it (the entry editor rail) ignore it.
|
|
46
|
+
*/
|
|
47
|
+
span(span) {
|
|
48
|
+
return this.#fork({ span });
|
|
49
|
+
}
|
|
50
|
+
/** Capability gate for this field — see `MetaBoxFieldBase.capability`. */
|
|
51
|
+
capability(capability) {
|
|
52
|
+
return this.#fork({ capability });
|
|
53
|
+
}
|
|
54
|
+
/** Opt this field's value into public REST responses (default-deny). */
|
|
55
|
+
showInApi() {
|
|
56
|
+
return this.#fork({ showInApi: true });
|
|
57
|
+
}
|
|
58
|
+
/** Rule factory: this field's value equals `value` — pass the rule
|
|
59
|
+
* to a dependent field's `.visibleWhen()`. */
|
|
60
|
+
is(value) {
|
|
61
|
+
return { key: this.#key, op: "eq", value };
|
|
62
|
+
}
|
|
63
|
+
/** Rule factory: this field's value differs from `value`. */
|
|
64
|
+
isNot(value) {
|
|
65
|
+
return { key: this.#key, op: "neq", value };
|
|
66
|
+
}
|
|
67
|
+
/** Rule factory: this field has no value (unset or cleared). */
|
|
68
|
+
isEmpty() {
|
|
69
|
+
return { key: this.#key, op: "empty" };
|
|
70
|
+
}
|
|
71
|
+
/** Rule factory: this field has a value. */
|
|
72
|
+
isNotEmpty() {
|
|
73
|
+
return { key: this.#key, op: "not_empty" };
|
|
74
|
+
}
|
|
75
|
+
/** Rule factory: this field's value is greater than `value`. */
|
|
76
|
+
gt(value) {
|
|
77
|
+
return { key: this.#key, op: "gt", value };
|
|
78
|
+
}
|
|
79
|
+
/** Rule factory: this field's value is less than `value`. */
|
|
80
|
+
lt(value) {
|
|
81
|
+
return { key: this.#key, op: "lt", value };
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Show this field only when every rule passes (one AND group) —
|
|
85
|
+
* rules come from sibling fields' condition factories. Replaces any
|
|
86
|
+
* previously declared condition; `.orVisibleWhen()` adds
|
|
87
|
+
* alternatives.
|
|
88
|
+
*/
|
|
89
|
+
visibleWhen(...rules) {
|
|
90
|
+
return this.#fork({ visibleWhen: [rules] });
|
|
91
|
+
}
|
|
92
|
+
/** Add an OR alternative — one more AND group of rules. */
|
|
93
|
+
orVisibleWhen(...rules) {
|
|
94
|
+
return this.#fork({
|
|
95
|
+
visibleWhen: [...(this.#state.visibleWhen ?? []), rules],
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/** Lower bound, enforced client-side by the native number input. */
|
|
99
|
+
min(min) {
|
|
100
|
+
return this.#fork({ min });
|
|
101
|
+
}
|
|
102
|
+
/** Upper bound, enforced client-side by the native number input. */
|
|
103
|
+
max(max) {
|
|
104
|
+
return this.#fork({ max });
|
|
105
|
+
}
|
|
106
|
+
step(step) {
|
|
107
|
+
return this.#fork({ step });
|
|
108
|
+
}
|
|
109
|
+
/** Normalising transform, applied after coercion and before persistence. */
|
|
110
|
+
sanitize(sanitize) {
|
|
111
|
+
return this.#fork({ sanitize: sanitize });
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Custom validation — `true` for valid, or an i18n-able failure
|
|
115
|
+
* message (sync or async). Runs after `.sanitize()` and the
|
|
116
|
+
* declarative constraints.
|
|
117
|
+
*/
|
|
118
|
+
validate(validate) {
|
|
119
|
+
return this.#fork({ validate: validate });
|
|
120
|
+
}
|
|
121
|
+
/** Compile the chain into the wire/manifest field definition. */
|
|
122
|
+
build() {
|
|
123
|
+
return {
|
|
124
|
+
...this.#state,
|
|
125
|
+
key: this.#key,
|
|
126
|
+
label: this.#state.label ?? humanizeFieldKey(this.#key),
|
|
127
|
+
type: "number",
|
|
128
|
+
inputType: "number",
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
_a = NumberFieldBuilder;
|
|
133
|
+
/** Numeric input with optional `.min()` / `.max()` / `.step()` bounds. */
|
|
134
|
+
export function number(key) {
|
|
135
|
+
return new NumberFieldBuilder(key);
|
|
23
136
|
}
|
|
24
137
|
//# sourceMappingURL=number.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.js","sourceRoot":"","sources":["../../../src/plugin/fields/number.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"number.js","sourceRoot":"","sources":["../../../src/plugin/fields/number.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAmBhD;;;;;GAKG;AACH,MAAM,OAAO,kBAAkB;IAYpB,IAAI,CAAS;IACb,MAAM,CAAmB;IAElC,YAAY,GAAW,EAAE,QAA0B,EAAE;QACnD,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,KAAK,CACH,KAAgC;QAEhC,OAAO,IAAI,EAAkB,CAAY,IAAI,CAAC,IAAI,EAAE;YAClD,GAAG,IAAI,CAAC,MAAM;YACd,GAAG,KAAK;SACT,CAAC,CAAC;IACL,CAAC;IAED,kDAAkD;IAClD,KAAK,CAAC,KAAY;Q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QAEnD,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,QAAuC,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;OAIG;IACH,QAAQ,CACN,QAAyE;QAEzE,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,QAAgC,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,iEAAiE;IACjE,KAAK;QACH,OAAO;YACL,GAAG,IAAI,CAAC,MAAM;YACd,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC;YACvD,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;CACF;;AAED,0EAA0E;AAC1E,MAAM,UAAU,MAAM,CAAmB,GAAM;IAC7C,OAAO,IAAI,kBAAkB,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -1,28 +1,112 @@
|
|
|
1
1
|
import type { Label } from "../../i18n/label.js";
|
|
2
|
-
import type { MetaBoxFieldSpan, RangeMetaBoxField } from "../manifest.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly max: number;
|
|
8
|
-
readonly step?: number;
|
|
9
|
-
readonly required?: boolean;
|
|
2
|
+
import type { FieldBuilder, MetaBoxFieldSpan, MetaBoxFieldValidate, RangeMetaBoxField } from "../manifest.js";
|
|
3
|
+
import type { MetaFieldCondition, MetaFieldConditionRule } from "./condition.js";
|
|
4
|
+
interface RangeFieldState {
|
|
5
|
+
readonly visibleWhen?: MetaFieldCondition;
|
|
6
|
+
readonly label?: Label;
|
|
10
7
|
readonly description?: Label;
|
|
11
8
|
readonly default?: number;
|
|
9
|
+
readonly required?: true;
|
|
12
10
|
readonly span?: MetaBoxFieldSpan;
|
|
13
11
|
readonly capability?: string;
|
|
12
|
+
readonly showInApi?: true;
|
|
13
|
+
readonly min: number;
|
|
14
|
+
readonly max: number;
|
|
15
|
+
readonly step?: number;
|
|
16
|
+
readonly sanitize?: (value: unknown) => unknown;
|
|
17
|
+
readonly validate?: MetaBoxFieldValidate;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Entry point of the `range()` chain — only `.bounds()` is available
|
|
21
|
+
* until the slider's `[min, max]` track is declared, so a range without
|
|
22
|
+
* bounds can't reach `build()` (registration surfaces require a `build`
|
|
23
|
+
* method). Forgetting the bounds is a compile error, not a runtime throw.
|
|
24
|
+
*/
|
|
25
|
+
export declare class RangeFieldSeed<K extends string = string> {
|
|
26
|
+
#private;
|
|
27
|
+
constructor(key: K);
|
|
14
28
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* custom one replaces it entirely.
|
|
29
|
+
* Declare the slider's inclusive `[min, max]` track — both required.
|
|
30
|
+
* `min <= max` is enforced when the chain compiles at registration.
|
|
18
31
|
*/
|
|
19
|
-
|
|
32
|
+
bounds(min: number, max: number): RangeFieldBuilder<K>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Fluent chain for the `range` slider field. Its `[min, max]` track is
|
|
36
|
+
* fixed by `.bounds()` on the seed (so the bounds are always present here);
|
|
37
|
+
* `min <= max` is enforced when the chain compiles at registration.
|
|
38
|
+
* `build()` injects a default sanitizer that rejects values outside
|
|
39
|
+
* `[min, max]` on write; a custom `.sanitize()` replaces it entirely.
|
|
40
|
+
*/
|
|
41
|
+
export declare class RangeFieldBuilder<K extends string = string, V extends number | undefined = number | undefined, S extends number | undefined = number | undefined> implements FieldBuilder<RangeMetaBoxField> {
|
|
42
|
+
#private;
|
|
43
|
+
/** Phantom literal key of the field — type-level only, never assigned. */
|
|
44
|
+
readonly _key: K;
|
|
45
|
+
/** Phantom read type of the field — type-level only, never assigned. */
|
|
46
|
+
readonly _value: V;
|
|
47
|
+
/** Phantom stored shape of the field — type-level only, never assigned. */
|
|
48
|
+
readonly _stored: S;
|
|
49
|
+
constructor(key: string, state: RangeFieldState);
|
|
50
|
+
/** Override the derived (humanized-key) label. */
|
|
51
|
+
label(label: Label): RangeFieldBuilder<K, V, S>;
|
|
52
|
+
/** Help text rendered under the label. */
|
|
53
|
+
description(description: Label): RangeFieldBuilder<K, V, S>;
|
|
54
|
+
/** Default for absent keys, applied at read decode (and seeded into
|
|
55
|
+
* the admin form) — narrows the read type to `number`; the stored
|
|
56
|
+
* shape stays optional. */
|
|
57
|
+
default(value: number): RangeFieldBuilder<K, number, S>;
|
|
58
|
+
/** Mark the field required — narrows the read and stored types to `number`. */
|
|
59
|
+
required(): RangeFieldBuilder<K, number, number>;
|
|
60
|
+
/**
|
|
61
|
+
* Column span within the box's 12-column grid — a universal layout
|
|
62
|
+
* hint; surfaces that can't honor it (the entry editor rail) ignore it.
|
|
63
|
+
*/
|
|
64
|
+
span(span: MetaBoxFieldSpan): RangeFieldBuilder<K, V, S>;
|
|
65
|
+
/** Capability gate for this field — see `MetaBoxFieldBase.capability`. */
|
|
66
|
+
capability(capability: string): RangeFieldBuilder<K, V, S>;
|
|
67
|
+
/** Opt this field's value into public REST responses (default-deny). */
|
|
68
|
+
showInApi(): RangeFieldBuilder<K, V, S>;
|
|
69
|
+
/** Rule factory: this field's value equals `value` — pass the rule
|
|
70
|
+
* to a dependent field's `.visibleWhen()`. */
|
|
71
|
+
is(value: number): MetaFieldConditionRule;
|
|
72
|
+
/** Rule factory: this field's value differs from `value`. */
|
|
73
|
+
isNot(value: number): MetaFieldConditionRule;
|
|
74
|
+
/** Rule factory: this field has no value (unset or cleared). */
|
|
75
|
+
isEmpty(): MetaFieldConditionRule;
|
|
76
|
+
/** Rule factory: this field has a value. */
|
|
77
|
+
isNotEmpty(): MetaFieldConditionRule;
|
|
78
|
+
/** Rule factory: this field's value is greater than `value`. */
|
|
79
|
+
gt(value: number): MetaFieldConditionRule;
|
|
80
|
+
/** Rule factory: this field's value is less than `value`. */
|
|
81
|
+
lt(value: number): MetaFieldConditionRule;
|
|
82
|
+
/**
|
|
83
|
+
* Show this field only when every rule passes (one AND group) —
|
|
84
|
+
* rules come from sibling fields' condition factories. Replaces any
|
|
85
|
+
* previously declared condition; `.orVisibleWhen()` adds
|
|
86
|
+
* alternatives.
|
|
87
|
+
*/
|
|
88
|
+
visibleWhen(...rules: MetaFieldConditionRule[]): RangeFieldBuilder<K, V, S>;
|
|
89
|
+
/** Add an OR alternative — one more AND group of rules. */
|
|
90
|
+
orVisibleWhen(...rules: MetaFieldConditionRule[]): RangeFieldBuilder<K, V, S>;
|
|
91
|
+
step(step: number): RangeFieldBuilder<K, V, S>;
|
|
92
|
+
/** Normalising transform, applied after coercion and before persistence. */
|
|
93
|
+
sanitize(sanitize: (value: NonNullable<V>) => NonNullable<V>): RangeFieldBuilder<K, V, S>;
|
|
94
|
+
/**
|
|
95
|
+
* Custom validation — `true` for valid, or an i18n-able failure
|
|
96
|
+
* message (sync or async). Runs after `.sanitize()` and the
|
|
97
|
+
* declarative constraints.
|
|
98
|
+
*/
|
|
99
|
+
validate(validate: (value: NonNullable<V>) => true | Label | Promise<true | Label>): RangeFieldBuilder<K, V, S>;
|
|
100
|
+
/** Compile the chain into the wire/manifest field definition. */
|
|
101
|
+
build(): RangeMetaBoxField;
|
|
20
102
|
}
|
|
21
103
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
104
|
+
* Bounded numeric slider — `range("opacity").bounds(0, 100)`. The
|
|
105
|
+
* `[min, max]` track is required: only `.bounds()` is available on the
|
|
106
|
+
* bare constructor, so omitting it is a compile error. `min <= max` is
|
|
107
|
+
* enforced at registration; bounds are enforced server-side by the
|
|
108
|
+
* constraint walker.
|
|
26
109
|
*/
|
|
27
|
-
export declare function range(
|
|
110
|
+
export declare function range<K extends string>(key: K): RangeFieldSeed<K>;
|
|
111
|
+
export {};
|
|
28
112
|
//# sourceMappingURL=range.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../src/plugin/fields/range.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../src/plugin/fields/range.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AAIxB,UAAU,eAAe;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IAC1C,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;IAC1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;IAChD,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CAC1C;AAED;;;;;GAKG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,MAAM,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MG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAEjE"}
|
|
@@ -1,46 +1,161 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import { humanizeFieldKey } from "./builder.js";
|
|
1
3
|
import { FieldConfigError } from "./errors.js";
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Entry point of the `range()` chain — only `.bounds()` is available
|
|
6
|
+
* until the slider's `[min, max]` track is declared, so a range without
|
|
7
|
+
* bounds can't reach `build()` (registration surfaces require a `build`
|
|
8
|
+
* method). Forgetting the bounds is a compile error, not a runtime throw.
|
|
7
9
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
export class RangeFieldSeed {
|
|
11
|
+
#key;
|
|
12
|
+
constructor(key) {
|
|
13
|
+
this.#key = key;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Declare the slider's inclusive `[min, max]` track — both required.
|
|
17
|
+
* `min <= max` is enforced when the chain compiles at registration.
|
|
18
|
+
*/
|
|
19
|
+
bounds(min, max) {
|
|
20
|
+
return new RangeFieldBuilder(this.#key, { min, max });
|
|
15
21
|
}
|
|
16
|
-
const { min, max } = options;
|
|
17
|
-
return {
|
|
18
|
-
key: options.key,
|
|
19
|
-
label: options.label,
|
|
20
|
-
type: "number",
|
|
21
|
-
inputType: "range",
|
|
22
|
-
min,
|
|
23
|
-
max,
|
|
24
|
-
step: options.step,
|
|
25
|
-
required: options.required,
|
|
26
|
-
description: options.description,
|
|
27
|
-
default: options.default,
|
|
28
|
-
span: options.span,
|
|
29
|
-
capability: options.capability,
|
|
30
|
-
sanitize: options.sanitize ?? buildBoundsSanitizer(min, max),
|
|
31
|
-
};
|
|
32
22
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Fluent chain for the `range` slider field. Its `[min, max]` track is
|
|
25
|
+
* fixed by `.bounds()` on the seed (so the bounds are always present here);
|
|
26
|
+
* `min <= max` is enforced when the chain compiles at registration.
|
|
27
|
+
* `build()` injects a default sanitizer that rejects values outside
|
|
28
|
+
* `[min, max]` on write; a custom `.sanitize()` replaces it entirely.
|
|
29
|
+
*/
|
|
30
|
+
export class RangeFieldBuilder {
|
|
31
|
+
#key;
|
|
32
|
+
#state;
|
|
33
|
+
constructor(key, state) {
|
|
34
|
+
this.#key = key;
|
|
35
|
+
this.#state = state;
|
|
36
|
+
}
|
|
37
|
+
#fork(patch) {
|
|
38
|
+
return new _a(this.#key, {
|
|
39
|
+
...this.#state,
|
|
40
|
+
...patch,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/** Override the derived (humanized-key) label. */
|
|
44
|
+
label(label) {
|
|
45
|
+
return this.#fork({ label });
|
|
46
|
+
}
|
|
47
|
+
/** Help text rendered under the label. */
|
|
48
|
+
description(description) {
|
|
49
|
+
return this.#fork({ description });
|
|
50
|
+
}
|
|
51
|
+
/** Default for absent keys, applied at read decode (and seeded into
|
|
52
|
+
* the admin form) — narrows the read type to `number`; the stored
|
|
53
|
+
* shape stays optional. */
|
|
54
|
+
default(value) {
|
|
55
|
+
return this.#fork({ default: value });
|
|
56
|
+
}
|
|
57
|
+
/** Mark the field required — narrows the read and stored types to `number`. */
|
|
58
|
+
required() {
|
|
59
|
+
return this.#fork({ required: true });
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Column span within the box's 12-column grid — a universal layout
|
|
63
|
+
* hint; surfaces that can't honor it (the entry editor rail) ignore it.
|
|
64
|
+
*/
|
|
65
|
+
span(span) {
|
|
66
|
+
return this.#fork({ span });
|
|
67
|
+
}
|
|
68
|
+
/** Capability gate for this field — see `MetaBoxFieldBase.capability`. */
|
|
69
|
+
capability(capability) {
|
|
70
|
+
return this.#fork({ capability });
|
|
71
|
+
}
|
|
72
|
+
/** Opt this field's value into public REST responses (default-deny). */
|
|
73
|
+
showInApi() {
|
|
74
|
+
return this.#fork({ showInApi: true });
|
|
75
|
+
}
|
|
76
|
+
/** Rule factory: this field's value equals `value` — pass the rule
|
|
77
|
+
* to a dependent field's `.visibleWhen()`. */
|
|
78
|
+
is(value) {
|
|
79
|
+
return { key: this.#key, op: "eq", value };
|
|
80
|
+
}
|
|
81
|
+
/** Rule factory: this field's value differs from `value`. */
|
|
82
|
+
isNot(value) {
|
|
83
|
+
return { key: this.#key, op: "neq", value };
|
|
84
|
+
}
|
|
85
|
+
/** Rule factory: this field has no value (unset or cleared). */
|
|
86
|
+
isEmpty() {
|
|
87
|
+
return { key: this.#key, op: "empty" };
|
|
88
|
+
}
|
|
89
|
+
/** Rule factory: this field has a value. */
|
|
90
|
+
isNotEmpty() {
|
|
91
|
+
return { key: this.#key, op: "not_empty" };
|
|
92
|
+
}
|
|
93
|
+
/** Rule factory: this field's value is greater than `value`. */
|
|
94
|
+
gt(value) {
|
|
95
|
+
return { key: this.#key, op: "gt", value };
|
|
96
|
+
}
|
|
97
|
+
/** Rule factory: this field's value is less than `value`. */
|
|
98
|
+
lt(value) {
|
|
99
|
+
return { key: this.#key, op: "lt", value };
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Show this field only when every rule passes (one AND group) —
|
|
103
|
+
* rules come from sibling fields' condition factories. Replaces any
|
|
104
|
+
* previously declared condition; `.orVisibleWhen()` adds
|
|
105
|
+
* alternatives.
|
|
106
|
+
*/
|
|
107
|
+
visibleWhen(...rules) {
|
|
108
|
+
return this.#fork({ visibleWhen: [rules] });
|
|
109
|
+
}
|
|
110
|
+
/** Add an OR alternative — one more AND group of rules. */
|
|
111
|
+
orVisibleWhen(...rules) {
|
|
112
|
+
return this.#fork({
|
|
113
|
+
visibleWhen: [...(this.#state.visibleWhen ?? []), rules],
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
step(step) {
|
|
117
|
+
return this.#fork({ step });
|
|
118
|
+
}
|
|
119
|
+
/** Normalising transform, applied after coercion and before persistence. */
|
|
120
|
+
sanitize(sanitize) {
|
|
121
|
+
return this.#fork({ sanitize: sanitize });
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Custom validation — `true` for valid, or an i18n-able failure
|
|
125
|
+
* message (sync or async). Runs after `.sanitize()` and the
|
|
126
|
+
* declarative constraints.
|
|
127
|
+
*/
|
|
128
|
+
validate(validate) {
|
|
129
|
+
return this.#fork({ validate: validate });
|
|
130
|
+
}
|
|
131
|
+
/** Compile the chain into the wire/manifest field definition. */
|
|
132
|
+
build() {
|
|
133
|
+
const { min, max } = this.#state;
|
|
134
|
+
if (min > max) {
|
|
135
|
+
throw FieldConfigError.rangeMinGreaterThanMax({
|
|
136
|
+
fieldKey: this.#key,
|
|
137
|
+
min,
|
|
138
|
+
max,
|
|
139
|
+
});
|
|
42
140
|
}
|
|
43
|
-
return
|
|
44
|
-
|
|
141
|
+
return {
|
|
142
|
+
...this.#state,
|
|
143
|
+
key: this.#key,
|
|
144
|
+
label: this.#state.label ?? humanizeFieldKey(this.#key),
|
|
145
|
+
type: "number",
|
|
146
|
+
inputType: "range",
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
_a = RangeFieldBuilder;
|
|
151
|
+
/**
|
|
152
|
+
* Bounded numeric slider — `range("opacity").bounds(0, 100)`. The
|
|
153
|
+
* `[min, max]` track is required: only `.bounds()` is available on the
|
|
154
|
+
* bare constructor, so omitting it is a compile error. `min <= max` is
|
|
155
|
+
* enforced at registration; bounds are enforced server-side by the
|
|
156
|
+
* constraint walker.
|
|
157
|
+
*/
|
|
158
|
+
export function range(key) {
|
|
159
|
+
return new RangeFieldSeed(key);
|
|
45
160
|
}
|
|
46
161
|
//# sourceMappingURL=range.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range.js","sourceRoot":"","sources":["../../../src/plugin/fields/range.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"range.js","sourceRoot":"","sources":["../../../src/plugin/fields/range.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAkB/C;;;;;GAKG;AACH,MAAM,OAAO,cAAc;IAChB,IAAI,CAAI;IAEjB,YAAY,GAAM;QAChB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,GAAW,EAAE,GAAW;QAC7B,OAAO,IAAI,iBAAiB,CAAI,IAAI,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,OAAO,iBAAiB;IAYnB,IAAI,CAAS;IACb,MAAM,CAAkB;IAEjC,YAAY,GAAW,EAAE,KAAsB;QAC7C,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,KAAK,CACH,KAA+B;QAE/B,OAAO,IAAI,EAAiB,CAAY,IAAI,CAAC,IAAI,EAAE;YACjD,GAAG,IAAI,CAAC,MAAM;YACd,GAAG,KAAK;SACT,CAAC,CAAC;IACL,CAAC;IAED,kDAAkD;IAClD,KAAK,CAAC,KAAY;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/B,CAAC;IAED,0CAA0C;IAC1C,WAAW,CAAC,WAAkB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IACrC,CAAC;IAED;;+BAE2B;IAC3B,OAAO,CAAC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