@antelopejs/interface-dms 0.9.1 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +126 -0
- package/README.md +1 -1
- package/dist/attachments.js +3 -1
- package/dist/attachments.js.map +1 -1
- package/dist/auth/db/models/sessions.model.js +1 -5
- package/dist/auth/db/models/sessions.model.js.map +1 -1
- package/dist/auth/db/tables/users.table.js.map +1 -1
- package/dist/auth/index.js +4 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/internal/jwt-auth-decorator.js +7 -5
- package/dist/auth/internal/jwt-auth-decorator.js.map +1 -1
- package/dist/auth/internal/request-authenticators.js +4 -1
- package/dist/auth/internal/request-authenticators.js.map +1 -1
- package/dist/auth/internal/request-principal.js +1 -0
- package/dist/auth/internal/request-principal.js.map +1 -1
- package/dist/base/activity-feed.d.ts +26 -26
- package/dist/base/banner.d.ts +14 -14
- package/dist/base/banner.js +1 -0
- package/dist/base/banner.js.map +1 -1
- package/dist/base/block-registry/helpers.js +1 -0
- package/dist/base/block-registry/helpers.js.map +1 -1
- package/dist/base/block-registry/internal/describe.js +107 -85
- package/dist/base/block-registry/internal/describe.js.map +1 -1
- package/dist/base/block-registry/presentation.js +0 -5
- package/dist/base/block-registry/presentation.js.map +1 -1
- package/dist/base/block-registry/registry.js +4 -1
- package/dist/base/block-registry/registry.js.map +1 -1
- package/dist/base/block-types.js +0 -2
- package/dist/base/block-types.js.map +1 -1
- package/dist/base/card.d.ts +8 -8
- package/dist/base/chart-card.d.ts +2 -2
- package/dist/base/chart-card.js +2 -2
- package/dist/base/chart-card.js.map +1 -1
- package/dist/base/chart-schemas.d.ts +66 -66
- package/dist/base/chart-schemas.js +19 -21
- package/dist/base/chart-schemas.js.map +1 -1
- package/dist/base/chart.js +1 -0
- package/dist/base/chart.js.map +1 -1
- package/dist/base/code-block.js +1 -0
- package/dist/base/code-block.js.map +1 -1
- package/dist/base/confirm-dialog.d.ts +2 -6
- package/dist/base/confirm-dialog.js +36 -15
- package/dist/base/confirm-dialog.js.map +1 -1
- package/dist/base/data-sources.js +6 -2
- package/dist/base/data-sources.js.map +1 -1
- package/dist/base/data-types/compare-types.js +82 -68
- package/dist/base/data-types/compare-types.js.map +1 -1
- package/dist/base/data-types/core.d.ts +8 -101
- package/dist/base/data-types/core.js +40 -143
- package/dist/base/data-types/core.js.map +1 -1
- package/dist/base/data-types/default/address.d.ts +126 -0
- package/dist/base/data-types/default/address.js +57 -0
- package/dist/base/data-types/default/address.js.map +1 -0
- package/dist/base/data-types/default/choices.d.ts +54 -0
- package/dist/base/data-types/default/choices.js +135 -0
- package/dist/base/data-types/default/choices.js.map +1 -0
- package/dist/base/data-types/default/files.d.ts +86 -0
- package/dist/base/data-types/default/files.js +214 -0
- package/dist/base/data-types/default/files.js.map +1 -0
- package/dist/base/data-types/default/inputs.d.ts +11 -0
- package/dist/base/data-types/default/inputs.js +26 -0
- package/dist/base/data-types/default/inputs.js.map +1 -0
- package/dist/base/data-types/default/numbers.d.ts +62 -0
- package/dist/base/data-types/default/numbers.js +287 -0
- package/dist/base/data-types/default/numbers.js.map +1 -0
- package/dist/base/data-types/default/options.d.ts +133 -0
- package/dist/base/data-types/default/options.js +3 -0
- package/dist/base/data-types/default/options.js.map +1 -0
- package/dist/base/data-types/default/relations.d.ts +267 -0
- package/dist/base/data-types/default/relations.js +149 -0
- package/dist/base/data-types/default/relations.js.map +1 -0
- package/dist/base/data-types/default/strings.d.ts +35 -0
- package/dist/base/data-types/default/strings.js +154 -0
- package/dist/base/data-types/default/strings.js.map +1 -0
- package/dist/base/data-types/default-types.d.ts +73 -753
- package/dist/base/data-types/default-types.js +39 -991
- package/dist/base/data-types/default-types.js.map +1 -1
- package/dist/base/data-types/field-types.js +2 -6
- package/dist/base/data-types/field-types.js.map +1 -1
- package/dist/base/data-types/index.js +1 -20
- package/dist/base/data-types/index.js.map +1 -1
- package/dist/base/data-types/internal/compare-types.js +0 -2
- package/dist/base/data-types/internal/compare-types.js.map +1 -1
- package/dist/base/data-types/internal/relation-add-form.d.ts +7 -0
- package/dist/base/data-types/internal/relation-add-form.js +21 -0
- package/dist/base/data-types/internal/relation-add-form.js.map +1 -0
- package/dist/base/data-types/internal/relation-endpoints.d.ts +8 -0
- package/dist/base/data-types/internal/relation-endpoints.js +36 -0
- package/dist/base/data-types/internal/relation-endpoints.js.map +1 -0
- package/dist/base/data-types/status-type.js +0 -6
- package/dist/base/data-types/status-type.js.map +1 -1
- package/dist/base/display.d.ts +6 -6
- package/dist/base/display.js +15 -10
- package/dist/base/display.js.map +1 -1
- package/dist/base/empty-state.d.ts +8 -8
- package/dist/base/export-jobs.js.map +1 -1
- package/dist/base/form-block-schema.d.ts +36 -36
- package/dist/base/form-block-schema.js +0 -5
- package/dist/base/form-block-schema.js.map +1 -1
- package/dist/base/form-schema.d.ts +5 -1
- package/dist/base/form-schema.js +44 -206
- package/dist/base/form-schema.js.map +1 -1
- package/dist/base/form-types.d.ts +4 -84
- package/dist/base/form-types.js.map +1 -1
- package/dist/base/form.js +0 -7
- package/dist/base/form.js.map +1 -1
- package/dist/base/guard.d.ts +14 -14
- package/dist/base/helpers/archive-mode-helpers.js +11 -11
- package/dist/base/helpers/archive-mode-helpers.js.map +1 -1
- package/dist/base/helpers/file-refs.js +20 -7
- package/dist/base/helpers/file-refs.js.map +1 -1
- package/dist/base/index.js +0 -5
- package/dist/base/index.js.map +1 -1
- package/dist/base/internal/button-availability.d.ts +3 -17
- package/dist/base/internal/button-availability.js +36 -31
- package/dist/base/internal/button-availability.js.map +1 -1
- package/dist/base/internal/chart-schemas.js +0 -2
- package/dist/base/internal/chart-schemas.js.map +1 -1
- package/dist/base/internal/composed-text.js +0 -2
- package/dist/base/internal/composed-text.js.map +1 -1
- package/dist/base/internal/confirm-dialog.d.ts +3 -13
- package/dist/base/internal/confirm-dialog.js +37 -21
- package/dist/base/internal/confirm-dialog.js.map +1 -1
- package/dist/base/internal/display.js +3 -1
- package/dist/base/internal/display.js.map +1 -1
- package/dist/base/internal/form-schema-components.d.ts +12 -0
- package/dist/base/internal/form-schema-components.js +61 -0
- package/dist/base/internal/form-schema-components.js.map +1 -0
- package/dist/base/internal/form-schema-validation.d.ts +16 -0
- package/dist/base/internal/form-schema-validation.js +68 -0
- package/dist/base/internal/form-schema-validation.js.map +1 -0
- package/dist/base/internal/form-schema.d.ts +2 -7
- package/dist/base/internal/form-schema.js +36 -28
- package/dist/base/internal/form-schema.js.map +1 -1
- package/dist/base/internal/layouts.d.ts +1 -59
- package/dist/base/internal/searchable.js +3 -1
- package/dist/base/internal/searchable.js.map +1 -1
- package/dist/base/key-value-list.d.ts +12 -12
- package/dist/base/kpi-card.d.ts +2 -2
- package/dist/base/kpi-card.js +2 -0
- package/dist/base/kpi-card.js.map +1 -1
- package/dist/base/layouts.d.ts +6 -80
- package/dist/base/layouts.js +38 -54
- package/dist/base/layouts.js.map +1 -1
- package/dist/base/live-toggle.d.ts +2 -2
- package/dist/base/meter.d.ts +25 -25
- package/dist/base/meter.js +0 -1
- package/dist/base/meter.js.map +1 -1
- package/dist/base/nav-card-grid.d.ts +13 -13
- package/dist/base/page-toolbar.d.ts +2 -2
- package/dist/base/page-toolbar.js +0 -6
- package/dist/base/page-toolbar.js.map +1 -1
- package/dist/base/period-selector.d.ts +2 -2
- package/dist/base/period-selector.js +0 -4
- package/dist/base/period-selector.js.map +1 -1
- package/dist/base/query-response.js +3 -5
- package/dist/base/query-response.js.map +1 -1
- package/dist/base/resource-form-schema.js +0 -4
- package/dist/base/resource-form-schema.js.map +1 -1
- package/dist/base/searchable.d.ts +5 -0
- package/dist/base/searchable.js +11 -2
- package/dist/base/searchable.js.map +1 -1
- package/dist/base/stat-group.d.ts +15 -15
- package/dist/base/tab.d.ts +8 -8
- package/dist/base/tab.js +1 -0
- package/dist/base/tab.js.map +1 -1
- package/dist/base/table-view/column-display.js +0 -1
- package/dist/base/table-view/column-display.js.map +1 -1
- package/dist/base/table-view/data-functions.d.ts +10 -10
- package/dist/base/table-view/data-functions.js.map +1 -1
- package/dist/base/table-view/factory.js +32 -204
- package/dist/base/table-view/factory.js.map +1 -1
- package/dist/base/table-view/internal/auth.js +5 -19
- package/dist/base/table-view/internal/auth.js.map +1 -1
- package/dist/base/table-view/internal/column-conditions.js +0 -5
- package/dist/base/table-view/internal/column-conditions.js.map +1 -1
- package/dist/base/table-view/internal/column-display.js +5 -3
- package/dist/base/table-view/internal/column-display.js.map +1 -1
- package/dist/base/table-view/internal/factory-helpers.js +24 -158
- package/dist/base/table-view/internal/factory-helpers.js.map +1 -1
- package/dist/base/table-view/internal/factory-lifecycle-created.d.ts +21 -0
- package/dist/base/table-view/internal/factory-lifecycle-created.js +96 -0
- package/dist/base/table-view/internal/factory-lifecycle-created.js.map +1 -0
- package/dist/base/table-view/internal/factory-lifecycle-filter.d.ts +15 -0
- package/dist/base/table-view/internal/factory-lifecycle-filter.js +37 -0
- package/dist/base/table-view/internal/factory-lifecycle-filter.js.map +1 -0
- package/dist/base/table-view/internal/factory-lifecycle-options.d.ts +41 -0
- package/dist/base/table-view/internal/factory-lifecycle-options.js +99 -0
- package/dist/base/table-view/internal/factory-lifecycle-options.js.map +1 -0
- package/dist/base/table-view/internal/factory-private-actions.d.ts +32 -0
- package/dist/base/table-view/internal/factory-private-actions.js +77 -0
- package/dist/base/table-view/internal/factory-private-actions.js.map +1 -0
- package/dist/base/table-view/internal/factory-private-displays.d.ts +5 -0
- package/dist/base/table-view/internal/factory-private-displays.js +21 -0
- package/dist/base/table-view/internal/factory-private-displays.js.map +1 -0
- package/dist/base/table-view/internal/factory-private-urls.d.ts +15 -0
- package/dist/base/table-view/internal/factory-private-urls.js +43 -0
- package/dist/base/table-view/internal/factory-private-urls.js.map +1 -0
- package/dist/base/table-view/internal/files.js +3 -4
- package/dist/base/table-view/internal/files.js.map +1 -1
- package/dist/base/table-view/internal/footer.js +5 -3
- package/dist/base/table-view/internal/footer.js.map +1 -1
- package/dist/base/table-view/internal/guards.js +7 -10
- package/dist/base/table-view/internal/guards.js.map +1 -1
- package/dist/base/table-view/internal/meta-helpers.d.ts +27 -0
- package/dist/base/table-view/internal/meta-helpers.js +75 -0
- package/dist/base/table-view/internal/meta-helpers.js.map +1 -0
- package/dist/base/table-view/internal/meta.js +8 -2
- package/dist/base/table-view/internal/meta.js.map +1 -1
- package/dist/base/table-view/internal/nav-badges.js +5 -3
- package/dist/base/table-view/internal/nav-badges.js.map +1 -1
- package/dist/base/table-view/internal/option-contract.d.ts +403 -0
- package/dist/base/table-view/internal/option-contract.js +3 -0
- package/dist/base/table-view/internal/option-contract.js.map +1 -0
- package/dist/base/table-view/internal/option-displays.d.ts +125 -0
- package/dist/base/table-view/internal/option-displays.js +3 -0
- package/dist/base/table-view/internal/option-displays.js.map +1 -0
- package/dist/base/table-view/internal/option-empty-states.d.ts +43 -0
- package/dist/base/table-view/internal/option-empty-states.js +3 -0
- package/dist/base/table-view/internal/option-empty-states.js.map +1 -0
- package/dist/base/table-view/internal/option-expandable.d.ts +66 -0
- package/dist/base/table-view/internal/option-expandable.js +3 -0
- package/dist/base/table-view/internal/option-expandable.js.map +1 -0
- package/dist/base/table-view/internal/option-filtering.d.ts +85 -0
- package/dist/base/table-view/internal/option-filtering.js +4 -0
- package/dist/base/table-view/internal/option-filtering.js.map +1 -0
- package/dist/base/table-view/internal/option-footer.d.ts +64 -0
- package/dist/base/table-view/internal/option-footer.js +3 -0
- package/dist/base/table-view/internal/option-footer.js.map +1 -0
- package/dist/base/table-view/internal/option-forms.d.ts +62 -0
- package/dist/base/table-view/internal/option-forms.js +3 -0
- package/dist/base/table-view/internal/option-forms.js.map +1 -0
- package/dist/base/table-view/internal/option-row-actions.d.ts +76 -0
- package/dist/base/table-view/internal/option-row-actions.js +3 -0
- package/dist/base/table-view/internal/option-row-actions.js.map +1 -0
- package/dist/base/table-view/internal/option-views.d.ts +199 -0
- package/dist/base/table-view/internal/option-views.js +3 -0
- package/dist/base/table-view/internal/option-views.js.map +1 -0
- package/dist/base/table-view/internal/options.d.ts +2 -6
- package/dist/base/table-view/internal/options.js +35 -6
- package/dist/base/table-view/internal/options.js.map +1 -1
- package/dist/base/table-view/internal/realtime.js +15 -5
- package/dist/base/table-view/internal/realtime.js.map +1 -1
- package/dist/base/table-view/internal/request-filter.js +12 -12
- package/dist/base/table-view/internal/request-filter.js.map +1 -1
- package/dist/base/table-view/internal/resource-form.js +1 -10
- package/dist/base/table-view/internal/resource-form.js.map +1 -1
- package/dist/base/table-view/internal/row-actions-schema.js +0 -6
- package/dist/base/table-view/internal/row-actions-schema.js.map +1 -1
- package/dist/base/table-view/internal/row-rule-shape.d.ts +10 -0
- package/dist/base/table-view/internal/row-rule-shape.js +43 -0
- package/dist/base/table-view/internal/row-rule-shape.js.map +1 -0
- package/dist/base/table-view/internal/row-rules.js +1 -4
- package/dist/base/table-view/internal/row-rules.js.map +1 -1
- package/dist/base/table-view/internal/tabs.d.ts +1 -1
- package/dist/base/table-view/internal/tabs.js +6 -9
- package/dist/base/table-view/internal/tabs.js.map +1 -1
- package/dist/base/table-view/internal/validation.js +2 -16
- package/dist/base/table-view/internal/validation.js.map +1 -1
- package/dist/base/table-view/internal/writer.js +1 -0
- package/dist/base/table-view/internal/writer.js.map +1 -1
- package/dist/base/table-view/meta.js +11 -93
- package/dist/base/table-view/meta.js.map +1 -1
- package/dist/base/table-view/options.d.ts +61 -1099
- package/dist/base/table-view/options.js.map +1 -1
- package/dist/base/table-view/resource-form.js +0 -2
- package/dist/base/table-view/resource-form.js.map +1 -1
- package/dist/base/table-view/routes.d.ts +3 -1
- package/dist/base/table-view/routes.js +33 -28
- package/dist/base/table-view/routes.js.map +1 -1
- package/dist/base/table-view/schema.d.ts +93 -93
- package/dist/base/table-view/schema.js +4 -22
- package/dist/base/table-view/schema.js.map +1 -1
- package/dist/base/table-view/source.js +0 -5
- package/dist/base/table-view/source.js.map +1 -1
- package/dist/base/table-view/views.js +0 -3
- package/dist/base/table-view/views.js.map +1 -1
- package/dist/base/table-view/writer.js +0 -5
- package/dist/base/table-view/writer.js.map +1 -1
- package/dist/base/top-list-card.d.ts +13 -13
- package/dist/base/top-list-card.js +2 -0
- package/dist/base/top-list-card.js.map +1 -1
- package/dist/base/types/action-target.d.ts +1 -302
- package/dist/base/types/button.d.ts +2 -7
- package/dist/base/types/button.js +35 -8
- package/dist/base/types/button.js.map +1 -1
- package/dist/base/types/confirm-dialog.d.ts +1 -127
- package/dist/base/types/custom-button.d.ts +1 -87
- package/dist/base/types/error.js +2 -1
- package/dist/base/types/error.js.map +1 -1
- package/dist/base/types/export-status.d.ts +2 -8
- package/dist/base/types/export-status.js +35 -9
- package/dist/base/types/export-status.js.map +1 -1
- package/dist/base/types/form-values.d.ts +1 -4
- package/dist/base/types/internal/action-target.d.ts +2 -8
- package/dist/base/types/internal/action-target.js +36 -15
- package/dist/base/types/internal/action-target.js.map +1 -1
- package/dist/base/types/row-action-operators.d.ts +3 -29
- package/dist/base/types/row-action-operators.js +35 -18
- package/dist/base/types/row-action-operators.js.map +1 -1
- package/dist/base/types/row-action.d.ts +3 -36
- package/dist/base/types/size.d.ts +1 -3
- package/dist/base/types/size.js +0 -3
- package/dist/base/types/size.js.map +1 -1
- package/dist/base/types/tone.d.ts +3 -8
- package/dist/base/types/tone.js +35 -15
- package/dist/base/types/tone.js.map +1 -1
- package/dist/base/types/watch.d.ts +5 -19
- package/dist/base/types/watch.js +35 -3
- package/dist/base/types/watch.js.map +1 -1
- package/dist/component-options/action-target.d.ts +304 -0
- package/dist/component-options/action-target.js +3 -0
- package/dist/component-options/action-target.js.map +1 -0
- package/dist/component-options/button.d.ts +93 -0
- package/dist/component-options/button.js +12 -0
- package/dist/component-options/button.js.map +1 -0
- package/dist/component-options/confirm-dialog.d.ts +132 -0
- package/dist/component-options/confirm-dialog.js +18 -0
- package/dist/component-options/confirm-dialog.js.map +1 -0
- package/dist/component-options/data-type.d.ts +101 -0
- package/dist/component-options/data-type.js +146 -0
- package/dist/component-options/data-type.js.map +1 -0
- package/dist/component-options/form-field.d.ts +88 -0
- package/dist/component-options/form-field.js +3 -0
- package/dist/component-options/form-field.js.map +1 -0
- package/dist/component-options/internal/action-target.d.ts +8 -0
- package/dist/component-options/internal/action-target.js +18 -0
- package/dist/component-options/internal/action-target.js.map +1 -0
- package/dist/component-options/internal/button-availability.d.ts +17 -0
- package/dist/component-options/internal/button-availability.js +34 -0
- package/dist/component-options/internal/button-availability.js.map +1 -0
- package/dist/component-options/internal/confirm-dialog.d.ts +13 -0
- package/dist/component-options/internal/confirm-dialog.js +24 -0
- package/dist/component-options/internal/confirm-dialog.js.map +1 -0
- package/dist/component-options/internal/form-field.d.ts +7 -0
- package/dist/component-options/internal/form-field.js +31 -0
- package/dist/component-options/internal/form-field.js.map +1 -0
- package/dist/component-options/internal/page-layout.d.ts +71 -0
- package/dist/component-options/internal/page-layout.js +10 -0
- package/dist/component-options/internal/page-layout.js.map +1 -0
- package/dist/component-options/page-layout.d.ts +80 -0
- package/dist/component-options/page-layout.js +57 -0
- package/dist/component-options/page-layout.js.map +1 -0
- package/dist/component-options/row-action.d.ts +66 -0
- package/dist/component-options/row-action.js +22 -0
- package/dist/component-options/row-action.js.map +1 -0
- package/dist/component-slots.js.map +1 -1
- package/dist/component.d.ts +2 -2
- package/dist/component.js +38 -193
- package/dist/component.js.map +1 -1
- package/dist/data-controllers/members.js +2 -8
- package/dist/data-controllers/members.js.map +1 -1
- package/dist/data-controllers/roles.js +0 -5
- package/dist/data-controllers/roles.js.map +1 -1
- package/dist/db/internal/exportJobs.model.js +10 -6
- package/dist/db/internal/exportJobs.model.js.map +1 -1
- package/dist/db/internal/tenantLifecycle.model.js +0 -2
- package/dist/db/internal/tenantLifecycle.model.js.map +1 -1
- package/dist/db/tables/exportJobs.table.d.ts +1 -1
- package/dist/db/tables/roles.table.js.map +1 -1
- package/dist/db/tables/user_invites.table.d.ts +1 -1
- package/dist/db/tables/user_invites.table.js.map +1 -1
- package/dist/export-status.d.ts +8 -0
- package/dist/export-status.js +13 -0
- package/dist/export-status.js.map +1 -0
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +2 -4
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +0 -9
- package/dist/index.js.map +1 -1
- package/dist/internal/component-builder.d.ts +17 -0
- package/dist/internal/component-builder.js +58 -0
- package/dist/internal/component-builder.js.map +1 -0
- package/dist/internal/component-permissions.d.ts +13 -0
- package/dist/internal/component-permissions.js +45 -0
- package/dist/internal/component-permissions.js.map +1 -0
- package/dist/internal/component-serialization.d.ts +10 -0
- package/dist/internal/component-serialization.js +42 -0
- package/dist/internal/component-serialization.js.map +1 -0
- package/dist/internal/component-slots.js +7 -4
- package/dist/internal/component-slots.js.map +1 -1
- package/dist/internal/component-watches.d.ts +17 -0
- package/dist/internal/component-watches.js +110 -0
- package/dist/internal/component-watches.js.map +1 -0
- package/dist/internal/invite-membership.js +0 -1
- package/dist/internal/invite-membership.js.map +1 -1
- package/dist/invite-extension-payloads.d.ts +2 -0
- package/dist/invite-extension-payloads.js +3 -0
- package/dist/invite-extension-payloads.js.map +1 -0
- package/dist/invite-extensions/internal/delivery.js +4 -1
- package/dist/invite-extensions/internal/delivery.js.map +1 -1
- package/dist/invite-extensions/internal/edit.js +5 -4
- package/dist/invite-extensions/internal/edit.js.map +1 -1
- package/dist/invite-extensions/internal/form-slot.js +5 -35
- package/dist/invite-extensions/internal/form-slot.js.map +1 -1
- package/dist/invite-extensions/internal/payload-slices.js +10 -3
- package/dist/invite-extensions/internal/payload-slices.js.map +1 -1
- package/dist/invite-extensions/internal/registry.js +3 -5
- package/dist/invite-extensions/internal/registry.js.map +1 -1
- package/dist/invite-extensions/registry.js +3 -8
- package/dist/invite-extensions/registry.js.map +1 -1
- package/dist/invite-extensions/types.d.ts +1 -2
- package/dist/invite-resolution.js +2 -1
- package/dist/invite-resolution.js.map +1 -1
- package/dist/layout-banners.js.map +1 -1
- package/dist/notifications/builder.js +25 -5
- package/dist/notifications/builder.js.map +1 -1
- package/dist/notifications/internal.js +0 -3
- package/dist/notifications/internal.js.map +1 -1
- package/dist/notifications/sendable.js.map +1 -1
- package/dist/page/categories.js +1 -4
- package/dist/page/categories.js.map +1 -1
- package/dist/page/controllers.js +9 -55
- package/dist/page/controllers.js.map +1 -1
- package/dist/page/form-page-routes.js +0 -7
- package/dist/page/form-page-routes.js.map +1 -1
- package/dist/page/internal/categories.d.ts +1 -1
- package/dist/page/internal/categories.js +12 -36
- package/dist/page/internal/categories.js.map +1 -1
- package/dist/page/internal/category-permission.d.ts +10 -0
- package/dist/page/internal/category-permission.js +20 -0
- package/dist/page/internal/category-permission.js.map +1 -0
- package/dist/page/internal/component-target.js +2 -2
- package/dist/page/internal/component-target.js.map +1 -1
- package/dist/page/internal/component-tree.js +0 -2
- package/dist/page/internal/component-tree.js.map +1 -1
- package/dist/page/internal/controller-options.d.ts +6 -0
- package/dist/page/internal/controller-options.js +40 -0
- package/dist/page/internal/controller-options.js.map +1 -0
- package/dist/page/internal/extension-assembly.js +2 -7
- package/dist/page/internal/extension-assembly.js.map +1 -1
- package/dist/page/internal/layout-filter.js +7 -3
- package/dist/page/internal/layout-filter.js.map +1 -1
- package/dist/page/internal/metadata-components.d.ts +47 -0
- package/dist/page/internal/metadata-components.js +136 -0
- package/dist/page/internal/metadata-components.js.map +1 -0
- package/dist/page/internal/metadata-extension-contributions.d.ts +14 -0
- package/dist/page/internal/metadata-extension-contributions.js +56 -0
- package/dist/page/internal/metadata-extension-contributions.js.map +1 -0
- package/dist/page/internal/metadata-extensions.d.ts +8 -0
- package/dist/page/internal/metadata-extensions.js +21 -0
- package/dist/page/internal/metadata-extensions.js.map +1 -0
- package/dist/page/internal/metadata-helpers.js +0 -14
- package/dist/page/internal/metadata-helpers.js.map +1 -1
- package/dist/page/internal/metadata-info.d.ts +5 -0
- package/dist/page/internal/metadata-info.js +39 -0
- package/dist/page/internal/metadata-info.js.map +1 -0
- package/dist/page/internal/metadata-layout-response.d.ts +32 -0
- package/dist/page/internal/metadata-layout-response.js +76 -0
- package/dist/page/internal/metadata-layout-response.js.map +1 -0
- package/dist/page/internal/metadata-layout.d.ts +10 -0
- package/dist/page/internal/metadata-layout.js +44 -0
- package/dist/page/internal/metadata-layout.js.map +1 -0
- package/dist/page/internal/metadata-lifecycle.d.ts +52 -0
- package/dist/page/internal/metadata-lifecycle.js +241 -0
- package/dist/page/internal/metadata-lifecycle.js.map +1 -0
- package/dist/page/internal/metadata-owner.d.ts +53 -0
- package/dist/page/internal/metadata-owner.js +14 -0
- package/dist/page/internal/metadata-owner.js.map +1 -0
- package/dist/page/internal/metadata-publish.d.ts +20 -0
- package/dist/page/internal/metadata-publish.js +55 -0
- package/dist/page/internal/metadata-publish.js.map +1 -0
- package/dist/page/internal/metadata-registration.d.ts +8 -0
- package/dist/page/internal/metadata-registration.js +72 -0
- package/dist/page/internal/metadata-registration.js.map +1 -0
- package/dist/page/internal/metadata-upload-registration.d.ts +16 -0
- package/dist/page/internal/metadata-upload-registration.js +64 -0
- package/dist/page/internal/metadata-upload-registration.js.map +1 -0
- package/dist/page/internal/metadata-uploads.d.ts +18 -0
- package/dist/page/internal/metadata-uploads.js +46 -0
- package/dist/page/internal/metadata-uploads.js.map +1 -0
- package/dist/page/internal/nav-badges.d.ts +1 -1
- package/dist/page/internal/nav-badges.js +3 -1
- package/dist/page/internal/nav-badges.js.map +1 -1
- package/dist/page/internal/page-record.d.ts +2 -9
- package/dist/page/internal/page-record.js +8 -5
- package/dist/page/internal/page-record.js.map +1 -1
- package/dist/page/internal/page-registration.js +0 -4
- package/dist/page/internal/page-registration.js.map +1 -1
- package/dist/page/internal/registry.js +2 -1
- package/dist/page/internal/registry.js.map +1 -1
- package/dist/page/internal/table-view-ids.js +3 -2
- package/dist/page/internal/table-view-ids.js.map +1 -1
- package/dist/page/layout-filter.js +1 -0
- package/dist/page/layout-filter.js.map +1 -1
- package/dist/page/metadata.js +192 -558
- package/dist/page/metadata.js.map +1 -1
- package/dist/page/roots.js +3 -5
- package/dist/page/roots.js.map +1 -1
- package/dist/page/types.d.ts +1 -1
- package/dist/page/types.js.map +1 -1
- package/dist/permissions.js +0 -18
- package/dist/permissions.js.map +1 -1
- package/dist/realtime.js +0 -3
- package/dist/realtime.js.map +1 -1
- package/dist/request-tenant.js +4 -1
- package/dist/request-tenant.js.map +1 -1
- package/dist/tenant-lifecycle.js +2 -2
- package/dist/tenant-lifecycle.js.map +1 -1
- package/dist/tones.d.ts +8 -0
- package/dist/tones.js +19 -0
- package/dist/tones.js.map +1 -0
- package/dist/uploads.js +15 -4
- package/dist/uploads.js.map +1 -1
- package/dist/utils/internal/row-instance.js +2 -3
- package/dist/utils/internal/row-instance.js.map +1 -1
- package/dist/utils/internal/type-check.d.ts +10 -1
- package/dist/utils/internal/type-check.js +12 -3
- package/dist/utils/internal/type-check.js.map +1 -1
- package/dist/utils/internal/value-parser.js +7 -2
- package/dist/utils/internal/value-parser.js.map +1 -1
- package/dist/watch-actions.d.ts +19 -0
- package/dist/watch-actions.js +7 -0
- package/dist/watch-actions.js.map +1 -0
- package/docs/3.base/2.types.md +1 -1
- package/docs/3.base/4.tables.md +1 -1
- package/docs/3.base/8.data-types.md +2 -0
- package/docs/4.notifications/3.sending.md +1 -1
- package/package.json +3 -3
|
@@ -1,302 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModalSize } from "./size";
|
|
3
|
-
/** The edge of the window a `drawer` action target slides in from. */
|
|
4
|
-
export type DrawerDirection = "top" | "right" | "bottom" | "left";
|
|
5
|
-
/**
|
|
6
|
-
* What a side panel says when the row its link names is gone: the `?record=`
|
|
7
|
-
* of a deep link, or a `fetchRowUrl` / `get` route answering 404. Texts are
|
|
8
|
-
* `$`-prefixed i18n keys or literals.
|
|
9
|
-
*/
|
|
10
|
-
export interface SidePanelNotFoundTexts {
|
|
11
|
-
/**
|
|
12
|
-
* Title of the state, e.g. `"$api.request.not_found_title"` for "This
|
|
13
|
-
* request is no longer stored". Defaults to the DMS's generic "This entry
|
|
14
|
-
* is no longer available".
|
|
15
|
-
*/
|
|
16
|
-
title?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Text under it, e.g. "It was pruned by the log retention, or the link is
|
|
19
|
-
* wrong." Defaults to the DMS's generic one.
|
|
20
|
-
*/
|
|
21
|
-
description?: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* What a `sidePanel` action target sets besides its component, shared by the
|
|
25
|
-
* declared and the serialized target.
|
|
26
|
-
*/
|
|
27
|
-
export interface SidePanelTargetOptions {
|
|
28
|
-
/**
|
|
29
|
-
* Title of the panel header. `$`-prefixed: an i18n key. Defaults to the
|
|
30
|
-
* action's label.
|
|
31
|
-
*/
|
|
32
|
-
title?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Title of the header while a row is open, in place of `title`: an i18n key
|
|
35
|
-
* (`$`-prefixed) or a literal receiving the row's fields, as a
|
|
36
|
-
* confirmation's texts do. `"$api.request.heading"` translated "{method}
|
|
37
|
-
* {path}" reads "POST /api/orders". `title` stays the header of a panel
|
|
38
|
-
* showing no row (a missing one).
|
|
39
|
-
* @example "{method} {path}"
|
|
40
|
-
*/
|
|
41
|
-
rowTitle?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Position of the open row among all the rows the table lists (its count,
|
|
44
|
-
* not the page loaded), drawn under the title: an i18n key (`$`-prefixed)
|
|
45
|
-
* receiving `{ index }` (from 1) and `{ total }`, both written with the
|
|
46
|
-
* locale's digit grouping ("26 120"), e.g.
|
|
47
|
-
* `"$api.request.position"` for "Request {index} of {total}". Defaults to
|
|
48
|
-
* the DMS's generic "{index} of {total}".
|
|
49
|
-
*/
|
|
50
|
-
positionLabel?: string;
|
|
51
|
-
/**
|
|
52
|
-
* The open row is kept in the URL (`?record=<id>`, `?<tableId>.record=<id>`
|
|
53
|
-
* on a page with several table views): a link or a reload opens the panel
|
|
54
|
-
* again on that row, and closing it removes the key. On by default for a
|
|
55
|
-
* side panel: `false` opts out. The action's own `deepLink` wins when set.
|
|
56
|
-
*/
|
|
57
|
-
deepLink?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* The words of the panel opened on a row that no longer exists (a deep link
|
|
60
|
-
* to a deleted row): the DMS draws the state and a close button under the
|
|
61
|
-
* header, in place of the component. See {@link SidePanelNotFoundTexts}.
|
|
62
|
-
* @example { title: "$api.request.not_found_title", description: "$api.request.not_found_description" }
|
|
63
|
-
*/
|
|
64
|
-
notFound?: SidePanelNotFoundTexts;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* What a `drawer` action target sets besides its component and texts, shared
|
|
68
|
-
* by the declared and the serialized target. A drawer opened on a row takes
|
|
69
|
-
* the row options of a side panel, so a detail panel moves from `sidePanel`
|
|
70
|
-
* to `drawer` without losing any of them.
|
|
71
|
-
*/
|
|
72
|
-
export interface DrawerTargetOptions extends Omit<SidePanelTargetOptions, "title" | "deepLink"> {
|
|
73
|
-
/**
|
|
74
|
-
* Width a `left` or `right` drawer opens at from `lg`, before the user
|
|
75
|
-
* resizes it: a modal's width at that size (`sm` 384px … `5xl` 1024px),
|
|
76
|
-
* `full` the whole window. Without one it opens at 600px. Capped to the window; below `lg` an
|
|
77
|
-
* unsized one is 440px wide, and on a phone every side drawer, sized or
|
|
78
|
-
* not, leaves a 2rem strip of backdrop (only `full` fills the screen).
|
|
79
|
-
* A `top` or `bottom` drawer ignores it.
|
|
80
|
-
*/
|
|
81
|
-
size?: ModalSize;
|
|
82
|
-
/**
|
|
83
|
-
* The DMS draws the row header, as a side panel's: the title naming the
|
|
84
|
-
* open row (`rowTitle`), its position (`positionLabel`), previous and next
|
|
85
|
-
* buttons next to the close button. On when `rowTitle` or `positionLabel`
|
|
86
|
-
* is set; `false` leaves the header to the drawer's title, `true` draws it
|
|
87
|
-
* with the defaults. A drawer opened on no row, or on a selection, never
|
|
88
|
-
* draws it.
|
|
89
|
-
*/
|
|
90
|
-
rowHeader?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* The open row is kept in the URL (`?record=<id>`), as the action's own
|
|
93
|
-
* `deepLink` does (which wins when set). Off by default for a drawer.
|
|
94
|
-
*/
|
|
95
|
-
deepLink?: boolean;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* A `download` action target: the file is fetched with the user's session and
|
|
99
|
-
* saved, the page left as it is.
|
|
100
|
-
*/
|
|
101
|
-
export interface DownloadActionTarget {
|
|
102
|
-
type: "download";
|
|
103
|
-
/**
|
|
104
|
-
* The file to fetch, with the user's session: takes the same
|
|
105
|
-
* `{{row.field}}` and page URL tokens (`{{params.X}}`, `{{query.X}}`) as a `page` target, a
|
|
106
|
-
* query pair whose token the page has no value for being left out.
|
|
107
|
-
* @example "/api/lang/translations/export?workspace={{query.workspace}}&locale={{query.locale}}"
|
|
108
|
-
*/
|
|
109
|
-
url: string;
|
|
110
|
-
/**
|
|
111
|
-
* The saved file's name, same tokens (written as they are, not encoded).
|
|
112
|
-
* Else, or while a token is left without a value, the server's
|
|
113
|
-
* `Content-Disposition` name, else the URL's last path segment.
|
|
114
|
-
* @example "{{query.locale}}.json"
|
|
115
|
-
*/
|
|
116
|
-
filename?: string;
|
|
117
|
-
}
|
|
118
|
-
export type ActionTarget = ({
|
|
119
|
-
/**
|
|
120
|
-
* A drawer: a modal sheet sliding in from an edge of the window. The
|
|
121
|
-
* container for a detail or record panel: from `lg` the user resizes it
|
|
122
|
-
* by its inner edge, and it opens again at that size. Opened on a row,
|
|
123
|
-
* it steps through the rows (J and K) and takes the row options of a
|
|
124
|
-
* side panel (see {@link DrawerTargetOptions}).
|
|
125
|
-
*/
|
|
126
|
-
type: "drawer";
|
|
127
|
-
component: Component;
|
|
128
|
-
title?: string;
|
|
129
|
-
description?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Edge the drawer slides in from (`bottom` by default). A `left` or
|
|
132
|
-
* `right` drawer is a side sheet spanning the window's height, 600px
|
|
133
|
-
* wide from `lg` unless `size` says otherwise.
|
|
134
|
-
*/
|
|
135
|
-
direction?: DrawerDirection;
|
|
136
|
-
} & DrawerTargetOptions) | {
|
|
137
|
-
type: "modal";
|
|
138
|
-
size?: ModalSize;
|
|
139
|
-
component: Component;
|
|
140
|
-
title?: string;
|
|
141
|
-
description?: string;
|
|
142
|
-
} | ({
|
|
143
|
-
/**
|
|
144
|
-
* A non-modal panel docked on the right of the page, next to the table,
|
|
145
|
-
* which stays usable. Meant for global, page-independent panels (an
|
|
146
|
-
* assistant dock): a detail or record panel opens in a `drawer`, which
|
|
147
|
-
* takes the same row options. The DMS draws its header: the title, the row's
|
|
148
|
-
* position among all the rows the table lists ("3 of 87", past the
|
|
149
|
-
* page loaded), previous and next buttons (J and K too, turning the
|
|
150
|
-
* table's page past it) and a close button (Esc too). Its component receives the
|
|
151
|
-
* same props as a drawer's (`rowData`, `navigation`…), and is mounted
|
|
152
|
-
* anew on each row, its options' `{{row.X}}` tokens filled with that
|
|
153
|
-
* row (a `ResourceForm` reading `rowId: "{{row._id}}"`). A container
|
|
154
|
-
* block (a `Card` holding blocks) is drawn with its children, their
|
|
155
|
-
* options filled likewise, as in a drawer or a modal. One panel is open
|
|
156
|
-
* at a time: opening it closes a module's side panel, and the other way
|
|
157
|
-
* round.
|
|
158
|
-
*/
|
|
159
|
-
type: "sidePanel";
|
|
160
|
-
component: Component;
|
|
161
|
-
} & SidePanelTargetOptions) | {
|
|
162
|
-
type: "page";
|
|
163
|
-
/**
|
|
164
|
-
* The page to open. On a row action the row's fields fill
|
|
165
|
-
* `{{row.field}}`;
|
|
166
|
-
* `{{params.X}}` and `{{query.X}}` name the page the action sits on, a
|
|
167
|
-
* query pair whose token the page has no value for being left out.
|
|
168
|
-
*/
|
|
169
|
-
url: string;
|
|
170
|
-
} | {
|
|
171
|
-
type: "external";
|
|
172
|
-
/** Takes the same `{{row.field}}` and page URL tokens as `page`. */
|
|
173
|
-
url: string;
|
|
174
|
-
newTab?: boolean;
|
|
175
|
-
} | DownloadActionTarget | {
|
|
176
|
-
type: "quickAction";
|
|
177
|
-
/**
|
|
178
|
-
* Key of the quick action to run: `category:id`, or the bare id when no
|
|
179
|
-
* other category uses it. The action is left out for users the quick
|
|
180
|
-
* action is not served to.
|
|
181
|
-
*/
|
|
182
|
-
id: string;
|
|
183
|
-
} | {
|
|
184
|
-
type: "api";
|
|
185
|
-
/** Takes the page URL tokens and `{{row.field}}`, as a `page` target. */
|
|
186
|
-
url: string;
|
|
187
|
-
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
188
|
-
/**
|
|
189
|
-
* JSON body sent with the request. The values of the action's confirm
|
|
190
|
-
* `fields` are merged into it, the input winning.
|
|
191
|
-
*/
|
|
192
|
-
body?: Record<string, unknown>;
|
|
193
|
-
/**
|
|
194
|
-
* Field of the JSON response copied to the clipboard on success (a
|
|
195
|
-
* share link, a token).
|
|
196
|
-
*/
|
|
197
|
-
copy?: string;
|
|
198
|
-
successMessage: string;
|
|
199
|
-
} | {
|
|
200
|
-
type: "exportJob";
|
|
201
|
-
/** Takes the page URL tokens and `{{row.field}}`, as a `page` target. */
|
|
202
|
-
url: string;
|
|
203
|
-
method?: "GET" | "POST";
|
|
204
|
-
/** As `url`, plus `{{job.id}}`: the id of the job the start answered. */
|
|
205
|
-
statusUrl?: string;
|
|
206
|
-
/** As `url`, plus `{{job.id}}`: the id of the job the start answered. */
|
|
207
|
-
downloadUrl?: string;
|
|
208
|
-
labels?: {
|
|
209
|
-
title?: string;
|
|
210
|
-
exporting?: string;
|
|
211
|
-
downloading?: string;
|
|
212
|
-
successTitle?: string;
|
|
213
|
-
successMessage?: string;
|
|
214
|
-
errorTitle?: string;
|
|
215
|
-
retry?: string;
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
export type ActionTargetSerialized = ({
|
|
219
|
-
/**
|
|
220
|
-
* A drawer: a modal sheet sliding in from an edge of the window. The
|
|
221
|
-
* container for a detail or record panel: from `lg` the user resizes it
|
|
222
|
-
* by its inner edge, and it opens again at that size. Opened on a row,
|
|
223
|
-
* it steps through the rows (J and K) and takes the row options of a
|
|
224
|
-
* side panel (see {@link DrawerTargetOptions}).
|
|
225
|
-
*/
|
|
226
|
-
type: "drawer";
|
|
227
|
-
component: ComponentInfoSerialized;
|
|
228
|
-
title?: string;
|
|
229
|
-
description?: string;
|
|
230
|
-
/**
|
|
231
|
-
* Edge the drawer slides in from (`bottom` by default). A `left` or
|
|
232
|
-
* `right` drawer is a side sheet spanning the window's height, 600px
|
|
233
|
-
* wide from `lg` unless `size` says otherwise.
|
|
234
|
-
*/
|
|
235
|
-
direction?: DrawerDirection;
|
|
236
|
-
} & DrawerTargetOptions) | {
|
|
237
|
-
type: "modal";
|
|
238
|
-
size?: ModalSize;
|
|
239
|
-
component: ComponentInfoSerialized;
|
|
240
|
-
title?: string;
|
|
241
|
-
description?: string;
|
|
242
|
-
} | ({
|
|
243
|
-
/**
|
|
244
|
-
* A non-modal panel docked on the right of the page, next to the table,
|
|
245
|
-
* which stays usable. Meant for global, page-independent panels (an
|
|
246
|
-
* assistant dock): a detail or record panel opens in a `drawer`, which
|
|
247
|
-
* takes the same row options. The DMS draws its header: the title, the row's
|
|
248
|
-
* position among all the rows the table lists ("3 of 87", past the
|
|
249
|
-
* page loaded), previous and next buttons (J and K too, turning the
|
|
250
|
-
* table's page past it) and a close button (Esc too). Its component receives the
|
|
251
|
-
* same props as a drawer's (`rowData`, `navigation`…), and is mounted
|
|
252
|
-
* anew on each row. One panel is open at a time: opening it closes a
|
|
253
|
-
* module's side panel, and the other way round.
|
|
254
|
-
*/
|
|
255
|
-
type: "sidePanel";
|
|
256
|
-
component: ComponentInfoSerialized;
|
|
257
|
-
} & SidePanelTargetOptions) | {
|
|
258
|
-
type: "page";
|
|
259
|
-
url: string;
|
|
260
|
-
} | {
|
|
261
|
-
type: "external";
|
|
262
|
-
url: string;
|
|
263
|
-
newTab?: boolean;
|
|
264
|
-
} | DownloadActionTarget | {
|
|
265
|
-
type: "quickAction";
|
|
266
|
-
/**
|
|
267
|
-
* Key of the quick action to run: `category:id`, or the bare id when no
|
|
268
|
-
* other category uses it. The action is left out for users the quick
|
|
269
|
-
* action is not served to.
|
|
270
|
-
*/
|
|
271
|
-
id: string;
|
|
272
|
-
} | {
|
|
273
|
-
type: "api";
|
|
274
|
-
url: string;
|
|
275
|
-
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
276
|
-
/**
|
|
277
|
-
* JSON body sent with the request. The values of the action's confirm
|
|
278
|
-
* `fields` are merged into it, the input winning.
|
|
279
|
-
*/
|
|
280
|
-
body?: Record<string, unknown>;
|
|
281
|
-
/**
|
|
282
|
-
* Field of the JSON response copied to the clipboard on success (a
|
|
283
|
-
* share link, a token).
|
|
284
|
-
*/
|
|
285
|
-
copy?: string;
|
|
286
|
-
successMessage: string;
|
|
287
|
-
} | {
|
|
288
|
-
type: "exportJob";
|
|
289
|
-
url: string;
|
|
290
|
-
method?: "GET" | "POST";
|
|
291
|
-
statusUrl?: string;
|
|
292
|
-
downloadUrl?: string;
|
|
293
|
-
labels?: {
|
|
294
|
-
title?: string;
|
|
295
|
-
exporting?: string;
|
|
296
|
-
downloading?: string;
|
|
297
|
-
successTitle?: string;
|
|
298
|
-
successMessage?: string;
|
|
299
|
-
errorTitle?: string;
|
|
300
|
-
retry?: string;
|
|
301
|
-
};
|
|
302
|
-
};
|
|
1
|
+
export type { ActionTarget, ActionTargetSerialized, DownloadActionTarget, DrawerDirection, DrawerTargetOptions, SidePanelNotFoundTexts, SidePanelTargetOptions, } from "../../component-options/action-target";
|
|
@@ -1,12 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.ButtonVariant = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
ButtonVariant["solid"] = "solid";
|
|
7
|
-
ButtonVariant["outline"] = "outline";
|
|
8
|
-
ButtonVariant["soft"] = "soft";
|
|
9
|
-
ButtonVariant["ghost"] = "ghost";
|
|
10
|
-
ButtonVariant["link"] = "link";
|
|
11
|
-
})(ButtonVariant || (exports.ButtonVariant = ButtonVariant = {}));
|
|
37
|
+
const button = __importStar(require("../../component-options/button"));
|
|
38
|
+
exports.ButtonVariant = button.ButtonVariant;
|
|
12
39
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/base/types/button.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/base/types/button.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uEAAyD;AAE3C,QAAA,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC"}
|
|
@@ -1,127 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { FormField, FormFieldSerialized } from "../form-types";
|
|
3
|
-
import type { ActionTarget } from "./action-target";
|
|
4
|
-
import type { ButtonColor } from "./custom-button";
|
|
5
|
-
/** One dependent a confirmed action affects, listed in its dialog. */
|
|
6
|
-
export interface ConfirmDialogImpact {
|
|
7
|
-
icon: string;
|
|
8
|
-
/** `$`-prefixed: an i18n key, receiving the dialog's `params`. */
|
|
9
|
-
label: string;
|
|
10
|
-
count?: number | string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* A file a dialog's secondary action downloads, the dialog staying open. The
|
|
14
|
-
* URL is fetched with the user's session, like an `api` target: a path is
|
|
15
|
-
* read from the DMS API, an absolute URL as it is.
|
|
16
|
-
*/
|
|
17
|
-
export interface ConfirmDialogDownloadTarget {
|
|
18
|
-
type: "download";
|
|
19
|
-
/**
|
|
20
|
-
* Takes the page URL tokens (`{{params.X}}`, `{{query.X}}`), then the
|
|
21
|
-
* dialog's parameters and the row's fields (`{{row.field}}`).
|
|
22
|
-
*/
|
|
23
|
-
url: string;
|
|
24
|
-
/**
|
|
25
|
-
* Name the file is saved under, with the same tokens as `url`, written as
|
|
26
|
-
* they are. Defaults to the name the response's
|
|
27
|
-
* `Content-Disposition` gives, else the URL's last path segment.
|
|
28
|
-
*/
|
|
29
|
-
filename?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Where a dialog's secondary action leads: a link (`external`, as on an
|
|
33
|
-
* action), or a file to download.
|
|
34
|
-
*/
|
|
35
|
-
export type ConfirmDialogSecondaryTarget = Extract<ActionTarget, {
|
|
36
|
-
type: "external";
|
|
37
|
-
}> | ConfirmDialogDownloadTarget;
|
|
38
|
-
/**
|
|
39
|
-
* A button drawn next to cancel and confirm that neither answers the
|
|
40
|
-
* dialog: it runs its target and leaves the dialog open ("Download a backup"
|
|
41
|
-
* before removing).
|
|
42
|
-
*/
|
|
43
|
-
export interface ConfirmDialogSecondaryAction {
|
|
44
|
-
/** Text of the button, interpolated like the dialog's other texts. */
|
|
45
|
-
label: string;
|
|
46
|
-
icon?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Its URL is filled in with the dialog's `params` and, on a row action,
|
|
49
|
-
* the row's fields (`{name}`).
|
|
50
|
-
*/
|
|
51
|
-
target: ConfirmDialogSecondaryTarget;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* The dialog an action asks in before it runs, the same for every action:
|
|
55
|
-
* built-in (delete, archive, edit…) and custom, whatever its target. Texts
|
|
56
|
-
* are i18n keys (with `$`) or literals, both interpolated with `params` —
|
|
57
|
-
* and, on a row action, with the row's fields ("Remove {name}?").
|
|
58
|
-
*/
|
|
59
|
-
export interface ConfirmDialog {
|
|
60
|
-
title: string;
|
|
61
|
-
description?: string;
|
|
62
|
-
/** Values the texts are interpolated with, besides the row's fields. */
|
|
63
|
-
params?: Record<string, unknown>;
|
|
64
|
-
/** Header icon. */
|
|
65
|
-
icon?: string;
|
|
66
|
-
/** Color of the confirm button and the header icon well. */
|
|
67
|
-
color?: ButtonColor;
|
|
68
|
-
/** Text of the confirm button. */
|
|
69
|
-
confirmLabel?: string;
|
|
70
|
-
/** Text of the cancel button. */
|
|
71
|
-
cancelLabel?: string;
|
|
72
|
-
/** What the action takes with it, listed above the buttons. */
|
|
73
|
-
impact?: ConfirmDialogImpact[];
|
|
74
|
-
/**
|
|
75
|
-
* A button next to cancel and confirm, leaving the dialog open: a link,
|
|
76
|
-
* or a file to download first.
|
|
77
|
-
*/
|
|
78
|
-
secondaryAction?: ConfirmDialogSecondaryAction;
|
|
79
|
-
/**
|
|
80
|
-
* The action cannot run (the last owner, a locked row): the dialog only
|
|
81
|
-
* explains why, with a close button.
|
|
82
|
-
*/
|
|
83
|
-
blocked?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Text the user must type to confirm (type-to-confirm). A `$`-prefixed i18n
|
|
86
|
-
* key is translated, and `{field}` reads the row like the other texts
|
|
87
|
-
* (`"{name}"`: the row's name).
|
|
88
|
-
*/
|
|
89
|
-
confirmText?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Compares the typed text with `confirmText` ignoring case (`acme` matches
|
|
92
|
-
* `ACME`): for a name the user reads but would not care to retype exactly.
|
|
93
|
-
*/
|
|
94
|
-
confirmTextCaseInsensitive?: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Fields the user fills in before confirming. Their values are sent with
|
|
97
|
-
* the action's request — merged into an `api` target's `body`, the input
|
|
98
|
-
* winning — and a field error the server answers shows under its field.
|
|
99
|
-
*/
|
|
100
|
-
fields?: FormField[];
|
|
101
|
-
/**
|
|
102
|
-
* Escape hatch: a frontend component drawn in the dialog's body, resolved
|
|
103
|
-
* by name from the global registry.
|
|
104
|
-
*/
|
|
105
|
-
component?: Component;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* A confirmation the server words for the row an action targets: a URL
|
|
109
|
-
* answering a {@link ConfirmDialogSerialized}. On a row action, built-in or
|
|
110
|
-
* custom, `{{row.id}}` is filled in with the row's id (read through the
|
|
111
|
-
* table's `rowIdKey`) and `{{row.<field>}}` with any of the row's fields;
|
|
112
|
-
* a bulk custom action appends its selection to the query instead.
|
|
113
|
-
* The page URL's `{{params.X}}` / `{{query.X}}` are filled first, as in an
|
|
114
|
-
* action's target URL.
|
|
115
|
-
*/
|
|
116
|
-
export interface ConfirmDialogFrom {
|
|
117
|
-
from: string;
|
|
118
|
-
}
|
|
119
|
-
/** The confirmation of an action: a fixed dialog, or one the server words. */
|
|
120
|
-
export type ActionConfirm = ConfirmDialog | ConfirmDialogFrom;
|
|
121
|
-
/** A confirmation dialog as it reaches the client. */
|
|
122
|
-
export interface ConfirmDialogSerialized extends Omit<ConfirmDialog, "fields" | "component"> {
|
|
123
|
-
fields?: FormFieldSerialized[];
|
|
124
|
-
component?: ComponentInfoSerialized;
|
|
125
|
-
}
|
|
126
|
-
/** The confirmation of an action as it reaches the client. */
|
|
127
|
-
export type ActionConfirmSerialized = ConfirmDialogSerialized | ConfirmDialogFrom;
|
|
1
|
+
export type { ActionConfirm, ActionConfirmSerialized, ConfirmDialog, ConfirmDialogDownloadTarget, ConfirmDialogFrom, ConfirmDialogImpact, ConfirmDialogSecondaryAction, ConfirmDialogSecondaryTarget, ConfirmDialogSerialized, } from "../../component-options/confirm-dialog";
|
|
@@ -1,87 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { MaybePromise } from "../../types";
|
|
3
|
-
import type { ActionTarget, ActionTargetSerialized } from "./action-target";
|
|
4
|
-
import type { ActionConfirm, ActionConfirmSerialized } from "./confirm-dialog";
|
|
5
|
-
import type { ButtonVariant } from "./button";
|
|
6
|
-
import type { Tone } from "./tone";
|
|
7
|
-
/** The `color` of a button or an action: one of the semantic tones. */
|
|
8
|
-
export type ButtonColor = Tone;
|
|
9
|
-
/** Where a table's button is drawn: its toolbar, or its page's header. */
|
|
10
|
-
export type ButtonPlacement = "toolbar" | "header";
|
|
11
|
-
/** Why a button cannot be pressed right now. */
|
|
12
|
-
export interface CustomButtonUnavailability {
|
|
13
|
-
/**
|
|
14
|
-
* Shown next to the disabled button: what blocks it, and how to lift the
|
|
15
|
-
* block when the user can. A `$`-prefixed value resolves as an i18n key.
|
|
16
|
-
*/
|
|
17
|
-
reason: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* The button is left out of what a request is served, as if its permission
|
|
21
|
-
* were missing: for a button that makes no sense in the current scope (an
|
|
22
|
-
* "Add key" on a read-only workspace), where a disabled one would only be
|
|
23
|
-
* noise.
|
|
24
|
-
*/
|
|
25
|
-
export interface CustomButtonHidden {
|
|
26
|
-
hidden: true;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Decides, per request, whether a button can be pressed. Runs server-side
|
|
30
|
-
* while the page layout is filtered, so the button reaches the client already
|
|
31
|
-
* disabled, or not at all. Returning `undefined` leaves it enabled, `{ reason
|
|
32
|
-
* }` disables it with that reason, and `{ hidden: true }` leaves it out.
|
|
33
|
-
*
|
|
34
|
-
* In a page header, `context.query` holds the query of the page URL and
|
|
35
|
-
* `context.params` its route parameters (`:id`), and the header asks again
|
|
36
|
-
* whenever that query changes: a button can depend on the record `?id=` or
|
|
37
|
-
* `/:id` names, and hide itself when that record does not exist. A table's
|
|
38
|
-
* toolbar button gets neither.
|
|
39
|
-
*
|
|
40
|
-
* It only shapes the UI: whatever the button triggers must still refuse the
|
|
41
|
-
* operation on its own.
|
|
42
|
-
*/
|
|
43
|
-
export type CustomButtonAvailability = (context: ComponentFilterContext) => MaybePromise<CustomButtonUnavailability | CustomButtonHidden | undefined>;
|
|
44
|
-
export interface CustomButton {
|
|
45
|
-
/**
|
|
46
|
-
* Names the button so a quick action can press it (`type: "button"`); the
|
|
47
|
-
* action then inherits the button's `permission`. Unique within its table.
|
|
48
|
-
*/
|
|
49
|
-
id?: string;
|
|
50
|
-
label: string;
|
|
51
|
-
icon?: string;
|
|
52
|
-
variant?: ButtonVariant;
|
|
53
|
-
color?: ButtonColor;
|
|
54
|
-
target: ActionTarget;
|
|
55
|
-
/** Asked before the button's target runs: a fixed dialog, or `{ from }`. */
|
|
56
|
-
confirm?: ActionConfirm;
|
|
57
|
-
/**
|
|
58
|
-
* Gate the button behind a permission: one of the owning table's actions by
|
|
59
|
-
* name (e.g. `"add"`) — in a page header (`DefaultLayout({ headerActions
|
|
60
|
-
* })`), an action of the page, relative to its permission id — or an
|
|
61
|
-
* `Action` of any component (e.g. another table's `add`). The button is
|
|
62
|
-
* stripped from the served options when the caller lacks the permission.
|
|
63
|
-
*/
|
|
64
|
-
permission?: ButtonPermission;
|
|
65
|
-
/** Absolute permission id the button requires; wins over `permission`. */
|
|
66
|
-
permissionId?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Disables the button for a request it answers with a reason, or leaves it
|
|
69
|
-
* out for one it answers `{ hidden: true }`. A button the caller lacks the
|
|
70
|
-
* permission for is stripped before this runs.
|
|
71
|
-
*/
|
|
72
|
-
availability?: CustomButtonAvailability;
|
|
73
|
-
/**
|
|
74
|
-
* Where the button is drawn: in the table's toolbar (the default), or in
|
|
75
|
-
* the header of the page carrying the table, which the server adds it to —
|
|
76
|
-
* the table still runs it. Either way a quick action can press it by `id`.
|
|
77
|
-
*/
|
|
78
|
-
placement?: ButtonPlacement;
|
|
79
|
-
}
|
|
80
|
-
export interface CustomButtonSerialized extends Omit<CustomButton, "target" | "permission" | "permissionId" | "availability" | "confirm"> {
|
|
81
|
-
target: ActionTargetSerialized;
|
|
82
|
-
confirm?: ActionConfirmSerialized;
|
|
83
|
-
/** Set when the button's `availability` refused this request. */
|
|
84
|
-
disabled?: boolean;
|
|
85
|
-
/** The reason `availability` gave, shown next to the disabled button. */
|
|
86
|
-
disabledReason?: string;
|
|
87
|
-
}
|
|
1
|
+
export type { ButtonColor, ButtonPlacement, CustomButton, CustomButtonAvailability, CustomButtonHidden, CustomButtonSerialized, CustomButtonUnavailability, } from "../../component-options/button";
|
package/dist/base/types/error.js
CHANGED
|
@@ -12,8 +12,9 @@ function isErrorWithMessage(error) {
|
|
|
12
12
|
/**
|
|
13
13
|
* Get error message from unknown error
|
|
14
14
|
*/
|
|
15
|
+
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- This published error boundary accepts every thrown value and preserves its existing fallback instead of parsing errors.
|
|
15
16
|
function getErrorMessage(error) {
|
|
16
|
-
if (isErrorWithMessage(error)) {
|
|
17
|
+
if (isErrorWithMessage(error) && (0, type_check_1.isString)(error.message)) {
|
|
17
18
|
return error.message;
|
|
18
19
|
}
|
|
19
20
|
return "Unknown error";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/base/types/error.ts"],"names":[],"mappings":";;AAYA,gDAEC;
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/base/types/error.ts"],"names":[],"mappings":";;AAYA,gDAEC;AAMD,0CAKC;AAzBD,gEAA6E;AAS7E;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAAc;IAC/C,OAAO,IAAA,qBAAQ,EAAC,KAAK,CAAC,IAAI,CAAC,IAAA,mBAAM,EAAC,KAAK,CAAC,IAAI,SAAS,IAAI,KAAK,CAAC;AACjE,CAAC;AAED;;GAEG;AACH,sLAAsL;AACtL,SAAgB,eAAe,CAAC,KAAc;IAC5C,IAAI,kBAAkB,CAAC,KAAK,CAAC,IAAI,IAAA,qBAAQ,EAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC,OAAO,CAAC;IACvB,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC"}
|
|
@@ -1,13 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.ExportStatus = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
var ExportStatus;
|
|
8
|
-
(function (ExportStatus) {
|
|
9
|
-
ExportStatus["pending"] = "pending";
|
|
10
|
-
ExportStatus["completed"] = "completed";
|
|
11
|
-
ExportStatus["failed"] = "failed";
|
|
12
|
-
})(ExportStatus || (exports.ExportStatus = ExportStatus = {}));
|
|
37
|
+
const exportStatus = __importStar(require("../../export-status"));
|
|
38
|
+
exports.ExportStatus = exportStatus.ExportStatus;
|
|
13
39
|
//# sourceMappingURL=export-status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-status.js","sourceRoot":"","sources":["../../../src/base/types/export-status.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"export-status.js","sourceRoot":"","sources":["../../../src/base/types/export-status.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAAoD;AAEtC,QAAA,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC"}
|