@alfakit/core 0.0.0-stage → 0.1.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/LICENSE.md +21 -0
- package/README.md +19 -2
- package/dist/actions.d.ts +231 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/actions.js +607 -0
- package/dist/actions.js.map +1 -0
- package/dist/advanced-fields.d.ts +218 -0
- package/dist/advanced-fields.d.ts.map +1 -0
- package/dist/advanced-fields.js +546 -0
- package/dist/advanced-fields.js.map +1 -0
- package/dist/ai-copilot.d.ts +105 -0
- package/dist/ai-copilot.d.ts.map +1 -0
- package/dist/ai-copilot.js +373 -0
- package/dist/ai-copilot.js.map +1 -0
- package/dist/ai-stream.d.ts +93 -0
- package/dist/ai-stream.d.ts.map +1 -0
- package/dist/ai-stream.js +246 -0
- package/dist/ai-stream.js.map +1 -0
- package/dist/analytics.d.ts +58 -0
- package/dist/analytics.d.ts.map +1 -0
- package/dist/analytics.js +95 -0
- package/dist/analytics.js.map +1 -0
- package/dist/assets.d.ts +31 -0
- package/dist/assets.d.ts.map +1 -0
- package/dist/assets.js +58 -0
- package/dist/assets.js.map +1 -0
- package/dist/autofocus.d.ts +35 -0
- package/dist/autofocus.d.ts.map +1 -0
- package/dist/autofocus.js +102 -0
- package/dist/autofocus.js.map +1 -0
- package/dist/calendar.d.ts +93 -0
- package/dist/calendar.d.ts.map +1 -0
- package/dist/calendar.js +187 -0
- package/dist/calendar.js.map +1 -0
- package/dist/chart.d.ts +88 -0
- package/dist/chart.d.ts.map +1 -0
- package/dist/chart.js +270 -0
- package/dist/chart.js.map +1 -0
- package/dist/cms-live-preview.d.ts +94 -0
- package/dist/cms-live-preview.d.ts.map +1 -0
- package/dist/cms-live-preview.js +160 -0
- package/dist/cms-live-preview.js.map +1 -0
- package/dist/cms.d.ts +56 -0
- package/dist/cms.d.ts.map +1 -0
- package/dist/cms.js +138 -0
- package/dist/cms.js.map +1 -0
- package/dist/code-highlight.d.ts +19 -0
- package/dist/code-highlight.d.ts.map +1 -0
- package/dist/code-highlight.js +155 -0
- package/dist/code-highlight.js.map +1 -0
- package/dist/command-palette.d.ts +86 -0
- package/dist/command-palette.d.ts.map +1 -0
- package/dist/command-palette.js +231 -0
- package/dist/command-palette.js.map +1 -0
- package/dist/component-props.d.ts +48 -0
- package/dist/component-props.d.ts.map +1 -0
- package/dist/conflicts.d.ts +117 -0
- package/dist/conflicts.d.ts.map +1 -0
- package/dist/conflicts.js +237 -0
- package/dist/conflicts.js.map +1 -0
- package/dist/dashboard-layout.d.ts +72 -0
- package/dist/dashboard-layout.d.ts.map +1 -0
- package/dist/dashboard-layout.js +228 -0
- package/dist/dashboard-layout.js.map +1 -0
- package/dist/debug.d.ts +61 -0
- package/dist/debug.d.ts.map +1 -0
- package/dist/debug.js +91 -0
- package/dist/debug.js.map +1 -0
- package/dist/deferred.d.ts +54 -0
- package/dist/deferred.d.ts.map +1 -0
- package/dist/deferred.js +117 -0
- package/dist/deferred.js.map +1 -0
- package/dist/deprecations.d.ts +17 -0
- package/dist/deprecations.d.ts.map +1 -0
- package/dist/deprecations.js +36 -0
- package/dist/deprecations.js.map +1 -0
- package/dist/dev-tools.d.ts +47 -0
- package/dist/dev-tools.d.ts.map +1 -0
- package/dist/dev-tools.js +99 -0
- package/dist/dev-tools.js.map +1 -0
- package/dist/discovery.d.ts +108 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +203 -0
- package/dist/discovery.js.map +1 -0
- package/dist/error-notifications.d.ts +47 -0
- package/dist/error-notifications.d.ts.map +1 -0
- package/dist/error-notifications.js +110 -0
- package/dist/error-notifications.js.map +1 -0
- package/dist/field-actions.d.ts +37 -0
- package/dist/field-actions.d.ts.map +1 -0
- package/dist/field-actions.js +48 -0
- package/dist/field-actions.js.map +1 -0
- package/dist/field-layout.d.ts +35 -0
- package/dist/field-layout.d.ts.map +1 -0
- package/dist/field-layout.js +62 -0
- package/dist/field-layout.js.map +1 -0
- package/dist/field-memory.d.ts +13 -0
- package/dist/field-memory.d.ts.map +1 -0
- package/dist/field-memory.js +34 -0
- package/dist/field-memory.js.map +1 -0
- package/dist/file-manager.d.ts +314 -0
- package/dist/file-manager.d.ts.map +1 -0
- package/dist/file-manager.js +1064 -0
- package/dist/file-manager.js.map +1 -0
- package/dist/file-size.d.ts +6 -0
- package/dist/file-size.d.ts.map +1 -0
- package/dist/file-size.js +27 -0
- package/dist/file-size.js.map +1 -0
- package/dist/filters.d.ts +50 -0
- package/dist/filters.d.ts.map +1 -0
- package/dist/filters.js +79 -0
- package/dist/filters.js.map +1 -0
- package/dist/flash.d.ts +28 -0
- package/dist/flash.d.ts.map +1 -0
- package/dist/flash.js +17 -0
- package/dist/flash.js.map +1 -0
- package/dist/form.d.ts +213 -0
- package/dist/form.d.ts.map +1 -0
- package/dist/form.js +473 -0
- package/dist/form.js.map +1 -0
- package/dist/helpdesk.d.ts +194 -0
- package/dist/helpdesk.d.ts.map +1 -0
- package/dist/helpdesk.js +638 -0
- package/dist/helpdesk.js.map +1 -0
- package/dist/http.d.ts +53 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +174 -0
- package/dist/http.js.map +1 -0
- package/dist/i18n.d.ts +101 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +357 -0
- package/dist/i18n.js.map +1 -0
- package/dist/icon-picker.d.ts +77 -0
- package/dist/icon-picker.d.ts.map +1 -0
- package/dist/icon-picker.js +174 -0
- package/dist/icon-picker.js.map +1 -0
- package/dist/icons.d.ts +41 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +54 -0
- package/dist/icons.js.map +1 -0
- package/dist/image-editor.d.ts +255 -0
- package/dist/image-editor.d.ts.map +1 -0
- package/dist/image-editor.js +770 -0
- package/dist/image-editor.js.map +1 -0
- package/dist/image-files.d.ts +27 -0
- package/dist/image-files.d.ts.map +1 -0
- package/dist/image-files.js +66 -0
- package/dist/image-files.js.map +1 -0
- package/dist/implicit-submit.d.ts +20 -0
- package/dist/implicit-submit.d.ts.map +1 -0
- package/dist/implicit-submit.js +37 -0
- package/dist/implicit-submit.js.map +1 -0
- package/dist/index.d.ts +135 -0
- package/dist/index.js +113 -0
- package/dist/item-actions.d.ts +60 -0
- package/dist/item-actions.d.ts.map +1 -0
- package/dist/item-actions.js +105 -0
- package/dist/item-actions.js.map +1 -0
- package/dist/kanban.d.ts +205 -0
- package/dist/kanban.d.ts.map +1 -0
- package/dist/kanban.js +882 -0
- package/dist/kanban.js.map +1 -0
- package/dist/lazy.d.ts +51 -0
- package/dist/lazy.d.ts.map +1 -0
- package/dist/lazy.js +133 -0
- package/dist/lazy.js.map +1 -0
- package/dist/live.d.ts +60 -0
- package/dist/live.d.ts.map +1 -0
- package/dist/live.js +97 -0
- package/dist/live.js.map +1 -0
- package/dist/mobile.d.ts +50 -0
- package/dist/mobile.d.ts.map +1 -0
- package/dist/mobile.js +67 -0
- package/dist/mobile.js.map +1 -0
- package/dist/modal-actions.d.ts +38 -0
- package/dist/modal-actions.d.ts.map +1 -0
- package/dist/modal-actions.js +63 -0
- package/dist/modal-actions.js.map +1 -0
- package/dist/navigation-state.d.ts +18 -0
- package/dist/navigation-state.d.ts.map +1 -0
- package/dist/navigation-state.js +76 -0
- package/dist/navigation-state.js.map +1 -0
- package/dist/navigation.d.ts +26 -0
- package/dist/navigation.d.ts.map +1 -0
- package/dist/navigation.js +31 -0
- package/dist/navigation.js.map +1 -0
- package/dist/notifications.d.ts +80 -0
- package/dist/notifications.d.ts.map +1 -0
- package/dist/notifications.js +212 -0
- package/dist/notifications.js.map +1 -0
- package/dist/one-time-code.d.ts +18 -0
- package/dist/one-time-code.d.ts.map +1 -0
- package/dist/one-time-code.js +38 -0
- package/dist/one-time-code.js.map +1 -0
- package/dist/page-actions.d.ts +65 -0
- package/dist/page-actions.d.ts.map +1 -0
- package/dist/page-actions.js +158 -0
- package/dist/page-actions.js.map +1 -0
- package/dist/page-methods.d.ts +97 -0
- package/dist/page-methods.d.ts.map +1 -0
- package/dist/page-methods.js +176 -0
- package/dist/page-methods.js.map +1 -0
- package/dist/page-query.d.ts +9 -0
- package/dist/page-query.d.ts.map +1 -0
- package/dist/page-query.js +15 -0
- package/dist/page-query.js.map +1 -0
- package/dist/page-runtime.d.ts +101 -0
- package/dist/page-runtime.d.ts.map +1 -0
- package/dist/page-runtime.js +134 -0
- package/dist/page-runtime.js.map +1 -0
- package/dist/panel-chrome.d.ts +51 -0
- package/dist/panel-chrome.d.ts.map +1 -0
- package/dist/panel-chrome.js +103 -0
- package/dist/panel-chrome.js.map +1 -0
- package/dist/panel-layout.d.ts +9 -0
- package/dist/panel-layout.d.ts.map +1 -0
- package/dist/panel-layout.js +15 -0
- package/dist/panel-layout.js.map +1 -0
- package/dist/partial-props.d.ts +11 -0
- package/dist/partial-props.d.ts.map +1 -0
- package/dist/partial-props.js +33 -0
- package/dist/partial-props.js.map +1 -0
- package/dist/partial.d.ts +31 -0
- package/dist/partial.d.ts.map +1 -0
- package/dist/partial.js +84 -0
- package/dist/partial.js.map +1 -0
- package/dist/poll.d.ts +44 -0
- package/dist/poll.d.ts.map +1 -0
- package/dist/poll.js +172 -0
- package/dist/poll.js.map +1 -0
- package/dist/prefetch.d.ts +25 -0
- package/dist/prefetch.d.ts.map +1 -0
- package/dist/prefetch.js +57 -0
- package/dist/prefetch.js.map +1 -0
- package/dist/presence.d.ts +60 -0
- package/dist/presence.d.ts.map +1 -0
- package/dist/presence.js +145 -0
- package/dist/presence.js.map +1 -0
- package/dist/pwa.d.ts +58 -0
- package/dist/pwa.d.ts.map +1 -0
- package/dist/pwa.js +203 -0
- package/dist/pwa.js.map +1 -0
- package/dist/query-builder.d.ts +59 -0
- package/dist/query-builder.d.ts.map +1 -0
- package/dist/query-builder.js +211 -0
- package/dist/query-builder.js.map +1 -0
- package/dist/realtime.d.ts +153 -0
- package/dist/realtime.d.ts.map +1 -0
- package/dist/realtime.js +253 -0
- package/dist/realtime.js.map +1 -0
- package/dist/registry.d.ts +79 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +64 -0
- package/dist/registry.js.map +1 -0
- package/dist/repeater-table.d.ts +15 -0
- package/dist/repeater-table.d.ts.map +1 -0
- package/dist/repeater-table.js +28 -0
- package/dist/repeater-table.js.map +1 -0
- package/dist/resource-tabs.d.ts +78 -0
- package/dist/resource-tabs.d.ts.map +1 -0
- package/dist/resource-tabs.js +151 -0
- package/dist/resource-tabs.js.map +1 -0
- package/dist/rich-editor-keyboard.d.ts +45 -0
- package/dist/rich-editor-keyboard.d.ts.map +1 -0
- package/dist/rich-editor-keyboard.js +140 -0
- package/dist/rich-editor-keyboard.js.map +1 -0
- package/dist/rich-editor-layout.d.ts +165 -0
- package/dist/rich-editor-layout.d.ts.map +1 -0
- package/dist/rich-editor-layout.js +247 -0
- package/dist/rich-editor-layout.js.map +1 -0
- package/dist/rich-editor-plugins.d.ts +44 -0
- package/dist/rich-editor-plugins.d.ts.map +1 -0
- package/dist/rich-editor-plugins.js +98 -0
- package/dist/rich-editor-plugins.js.map +1 -0
- package/dist/rich-editor-toolbar.d.ts +332 -0
- package/dist/rich-editor-toolbar.d.ts.map +1 -0
- package/dist/rich-editor-toolbar.js +601 -0
- package/dist/rich-editor-toolbar.js.map +1 -0
- package/dist/rich-editor.d.ts +268 -0
- package/dist/rich-editor.d.ts.map +1 -0
- package/dist/rich-editor.js +506 -0
- package/dist/rich-editor.js.map +1 -0
- package/dist/schema/actions.d.ts +192 -0
- package/dist/schema/actions.d.ts.map +1 -0
- package/dist/schema/actions.js +8 -0
- package/dist/schema/actions.js.map +1 -0
- package/dist/schema/advanced-fields.d.ts +175 -0
- package/dist/schema/advanced-fields.d.ts.map +1 -0
- package/dist/schema/ai.d.ts +94 -0
- package/dist/schema/ai.d.ts.map +1 -0
- package/dist/schema/analytics.d.ts +58 -0
- package/dist/schema/analytics.d.ts.map +1 -0
- package/dist/schema/calendar.d.ts +62 -0
- package/dist/schema/calendar.d.ts.map +1 -0
- package/dist/schema/cms.d.ts +259 -0
- package/dist/schema/cms.d.ts.map +1 -0
- package/dist/schema/command-palette.d.ts +55 -0
- package/dist/schema/command-palette.d.ts.map +1 -0
- package/dist/schema/command-palette.js +7 -0
- package/dist/schema/command-palette.js.map +1 -0
- package/dist/schema/common.d.ts +51 -0
- package/dist/schema/common.d.ts.map +1 -0
- package/dist/schema/common.js +8 -0
- package/dist/schema/common.js.map +1 -0
- package/dist/schema/components.d.ts +947 -0
- package/dist/schema/components.d.ts.map +1 -0
- package/dist/schema/components.js +37 -0
- package/dist/schema/components.js.map +1 -0
- package/dist/schema/debug.d.ts +58 -0
- package/dist/schema/debug.d.ts.map +1 -0
- package/dist/schema/dev-tools.d.ts +40 -0
- package/dist/schema/dev-tools.d.ts.map +1 -0
- package/dist/schema/file-manager.d.ts +201 -0
- package/dist/schema/file-manager.d.ts.map +1 -0
- package/dist/schema/form.d.ts +103 -0
- package/dist/schema/form.d.ts.map +1 -0
- package/dist/schema/form.js +8 -0
- package/dist/schema/form.js.map +1 -0
- package/dist/schema/helpdesk.d.ts +199 -0
- package/dist/schema/helpdesk.d.ts.map +1 -0
- package/dist/schema/icon-picker.d.ts +36 -0
- package/dist/schema/icon-picker.d.ts.map +1 -0
- package/dist/schema/index.d.ts +29 -0
- package/dist/schema/index.js +8 -0
- package/dist/schema/kanban.d.ts +141 -0
- package/dist/schema/kanban.d.ts.map +1 -0
- package/dist/schema/notifications.d.ts +59 -0
- package/dist/schema/notifications.d.ts.map +1 -0
- package/dist/schema/panel.d.ts +583 -0
- package/dist/schema/panel.d.ts.map +1 -0
- package/dist/schema/panel.js +8 -0
- package/dist/schema/panel.js.map +1 -0
- package/dist/schema/pwa.d.ts +21 -0
- package/dist/schema/pwa.d.ts.map +1 -0
- package/dist/schema/realtime.d.ts +38 -0
- package/dist/schema/realtime.d.ts.map +1 -0
- package/dist/schema/resources.d.ts +57 -0
- package/dist/schema/resources.d.ts.map +1 -0
- package/dist/schema/standalone.d.ts +39 -0
- package/dist/schema/standalone.d.ts.map +1 -0
- package/dist/schema/standalone.js +9 -0
- package/dist/schema/standalone.js.map +1 -0
- package/dist/schema/table-grouping.d.ts +104 -0
- package/dist/schema/table-grouping.d.ts.map +1 -0
- package/dist/schema/table.d.ts +607 -0
- package/dist/schema/table.d.ts.map +1 -0
- package/dist/schema/translation-manager.d.ts +115 -0
- package/dist/schema/translation-manager.d.ts.map +1 -0
- package/dist/schema/tree.d.ts +47 -0
- package/dist/schema/tree.d.ts.map +1 -0
- package/dist/schema/versions.d.ts +41 -0
- package/dist/schema/versions.d.ts.map +1 -0
- package/dist/schema/widgets.d.ts +163 -0
- package/dist/schema/widgets.d.ts.map +1 -0
- package/dist/schema-contract.d.ts +37 -0
- package/dist/schema-contract.d.ts.map +1 -0
- package/dist/schema-contract.js +54 -0
- package/dist/schema-contract.js.map +1 -0
- package/dist/schema-layout.d.ts +60 -0
- package/dist/schema-layout.d.ts.map +1 -0
- package/dist/schema-layout.js +195 -0
- package/dist/schema-layout.js.map +1 -0
- package/dist/shortcuts.d.ts +146 -0
- package/dist/shortcuts.d.ts.map +1 -0
- package/dist/shortcuts.js +357 -0
- package/dist/shortcuts.js.map +1 -0
- package/dist/spa.d.ts +20 -0
- package/dist/spa.d.ts.map +1 -0
- package/dist/spa.js +52 -0
- package/dist/spa.js.map +1 -0
- package/dist/spreadsheet.d.ts +282 -0
- package/dist/spreadsheet.d.ts.map +1 -0
- package/dist/spreadsheet.js +818 -0
- package/dist/spreadsheet.js.map +1 -0
- package/dist/standalone.d.ts +59 -0
- package/dist/standalone.d.ts.map +1 -0
- package/dist/standalone.js +144 -0
- package/dist/standalone.js.map +1 -0
- package/dist/starter-kit-widgets.d.ts +54 -0
- package/dist/starter-kit-widgets.d.ts.map +1 -0
- package/dist/starter-kit-widgets.js +131 -0
- package/dist/starter-kit-widgets.js.map +1 -0
- package/dist/starter-kit.d.ts +78 -0
- package/dist/starter-kit.d.ts.map +1 -0
- package/dist/starter-kit.js +131 -0
- package/dist/starter-kit.js.map +1 -0
- package/dist/store.d.ts +17 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +46 -0
- package/dist/store.js.map +1 -0
- package/dist/table-grouping.d.ts +30 -0
- package/dist/table-grouping.d.ts.map +1 -0
- package/dist/table-grouping.js +62 -0
- package/dist/table-grouping.js.map +1 -0
- package/dist/table-layout.d.ts +93 -0
- package/dist/table-layout.d.ts.map +1 -0
- package/dist/table-layout.js +279 -0
- package/dist/table-layout.js.map +1 -0
- package/dist/table-toolbar.d.ts +82 -0
- package/dist/table-toolbar.d.ts.map +1 -0
- package/dist/table-toolbar.js +127 -0
- package/dist/table-toolbar.js.map +1 -0
- package/dist/table-totals.d.ts +42 -0
- package/dist/table-totals.d.ts.map +1 -0
- package/dist/table-totals.js +120 -0
- package/dist/table-totals.js.map +1 -0
- package/dist/table-views.d.ts +66 -0
- package/dist/table-views.d.ts.map +1 -0
- package/dist/table-views.js +97 -0
- package/dist/table-views.js.map +1 -0
- package/dist/table.d.ts +197 -0
- package/dist/table.d.ts.map +1 -0
- package/dist/table.js +546 -0
- package/dist/table.js.map +1 -0
- package/dist/theme.d.ts +58 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +191 -0
- package/dist/theme.js.map +1 -0
- package/dist/translatable.d.ts +17 -0
- package/dist/translatable.d.ts.map +1 -0
- package/dist/translatable.js +40 -0
- package/dist/translatable.js.map +1 -0
- package/dist/translation-manager.d.ts +139 -0
- package/dist/translation-manager.d.ts.map +1 -0
- package/dist/translation-manager.js +449 -0
- package/dist/translation-manager.js.map +1 -0
- package/dist/tree.d.ts +123 -0
- package/dist/tree.d.ts.map +1 -0
- package/dist/tree.js +336 -0
- package/dist/tree.js.map +1 -0
- package/dist/undo.d.ts +47 -0
- package/dist/undo.d.ts.map +1 -0
- package/dist/undo.js +138 -0
- package/dist/undo.js.map +1 -0
- package/dist/uploads.d.ts +56 -0
- package/dist/uploads.d.ts.map +1 -0
- package/dist/uploads.js +157 -0
- package/dist/uploads.js.map +1 -0
- package/dist/utils/a11y.d.ts +71 -0
- package/dist/utils/a11y.d.ts.map +1 -0
- package/dist/utils/a11y.js +98 -0
- package/dist/utils/a11y.js.map +1 -0
- package/dist/utils/attachments.d.ts +20 -0
- package/dist/utils/attachments.d.ts.map +1 -0
- package/dist/utils/attachments.js +39 -0
- package/dist/utils/attachments.js.map +1 -0
- package/dist/utils/breakpoints.d.ts +14 -0
- package/dist/utils/breakpoints.d.ts.map +1 -0
- package/dist/utils/breakpoints.js +308 -0
- package/dist/utils/breakpoints.js.map +1 -0
- package/dist/utils/clone.js +16 -0
- package/dist/utils/clone.js.map +1 -0
- package/dist/utils/color.d.ts +23 -0
- package/dist/utils/color.d.ts.map +1 -0
- package/dist/utils/color.js +115 -0
- package/dist/utils/color.js.map +1 -0
- package/dist/utils/container-breakpoints.d.ts +29 -0
- package/dist/utils/container-breakpoints.d.ts.map +1 -0
- package/dist/utils/container-breakpoints.js +125 -0
- package/dist/utils/container-breakpoints.js.map +1 -0
- package/dist/utils/datetime.d.ts +9 -0
- package/dist/utils/datetime.d.ts.map +1 -0
- package/dist/utils/datetime.js +29 -0
- package/dist/utils/datetime.js.map +1 -0
- package/dist/utils/debounce.d.ts +9 -0
- package/dist/utils/debounce.d.ts.map +1 -0
- package/dist/utils/debounce.js +36 -0
- package/dist/utils/debounce.js.map +1 -0
- package/dist/utils/format.d.ts +13 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/format.js +49 -0
- package/dist/utils/format.js.map +1 -0
- package/dist/utils/image.d.ts +38 -0
- package/dist/utils/image.d.ts.map +1 -0
- package/dist/utils/image.js +114 -0
- package/dist/utils/image.js.map +1 -0
- package/dist/utils/keybindings.d.ts +26 -0
- package/dist/utils/keybindings.d.ts.map +1 -0
- package/dist/utils/keybindings.js +71 -0
- package/dist/utils/keybindings.js.map +1 -0
- package/dist/utils/latest.d.ts +13 -0
- package/dist/utils/latest.d.ts.map +1 -0
- package/dist/utils/latest.js +34 -0
- package/dist/utils/latest.js.map +1 -0
- package/dist/utils/mask.d.ts +10 -0
- package/dist/utils/mask.d.ts.map +1 -0
- package/dist/utils/mask.js +35 -0
- package/dist/utils/mask.js.map +1 -0
- package/dist/utils/path.d.ts +24 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/path.js +85 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/virtual.d.ts +143 -0
- package/dist/virtual.d.ts.map +1 -0
- package/dist/virtual.js +351 -0
- package/dist/virtual.js.map +1 -0
- package/dist/wizard.d.ts +28 -0
- package/dist/wizard.d.ts.map +1 -0
- package/dist/wizard.js +54 -0
- package/dist/wizard.js.map +1 -0
- package/package.json +60 -3
- package/themes.css +1340 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alfa Six Media and Management W.L.L.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @alfakit/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/alfasixbh/alfakit/main/art/alfasix/alfa-six-micro-white.svg"><img src="https://raw.githubusercontent.com/alfasixbh/alfakit/main/art/alfasix/alfa-six-micro-navy.svg" alt="" width="24" height="18" align="top"></picture> <sub>by <a href="https://alfasixbh.com">Alfa Six</a></sub></p>
|
|
4
|
+
|
|
5
|
+
Framework-agnostic schema types and state management for AlfaKit renderers. You normally do not install this directly; it is a dependency of `@alfakit/react`, `@alfakit/vue` and `@alfakit/svelte`.
|
|
6
|
+
|
|
7
|
+
AlfaKit is the frontend-agnostic admin panel builder for Laravel by [Alfa Six](https://alfasixbh.com). Panels, resources, forms, tables and actions are defined in PHP and rendered by this package.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
composer require alfasix/alfakit
|
|
13
|
+
php artisan alfakit:install --adapter=react
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The installer creates `resources/js/alfakit/app.*` and `resources/css/alfakit.css` and registers them with Vite. See the [documentation](https://alfakit.dev/docs) for custom components, pages and theming.
|
|
17
|
+
|
|
18
|
+
## License
|
|
19
|
+
|
|
20
|
+
MIT © Alfa Six
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { RecordKey, Size } from "./schema/common.js";
|
|
2
|
+
import { NotificationSchema } from "./schema/notifications.js";
|
|
3
|
+
import { ActionModalSchema, ActionSchema, AnyActionSchema } from "./schema/actions.js";
|
|
4
|
+
import { Store } from "./store.js";
|
|
5
|
+
import { FormStore } from "./form.js";
|
|
6
|
+
//#region src/actions.d.ts
|
|
7
|
+
export interface ActionContext {
|
|
8
|
+
/** Encrypted page context token. */
|
|
9
|
+
token: string;
|
|
10
|
+
/** `page`, `table`, `relationManager:Class`, `widget:Class`. */
|
|
11
|
+
component?: string;
|
|
12
|
+
record?: RecordKey | null;
|
|
13
|
+
/** Selected record keys for bulk actions. */
|
|
14
|
+
records?: RecordKey[];
|
|
15
|
+
/** "All filtered records" bulk selection. */
|
|
16
|
+
allRecords?: boolean;
|
|
17
|
+
arguments?: Record<string, unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Names of the actions whose modals this action sits in, outermost first (actions in a
|
|
20
|
+
* modal's footer). The server resolves the action by its path, `parent>child`.
|
|
21
|
+
*/
|
|
22
|
+
parents?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* Field actions (`component` = `field:{schema}::{key}`): the form the field belongs to.
|
|
25
|
+
* Its state is sent with the action and the refreshed form is merged back into it.
|
|
26
|
+
*/
|
|
27
|
+
form?: FormStore;
|
|
28
|
+
}
|
|
29
|
+
export interface ExecuteOptions {
|
|
30
|
+
/** The current password, for actions with `requiresPasswordConfirmation()`. */
|
|
31
|
+
password?: string;
|
|
32
|
+
/**
|
|
33
|
+
* "Create & create another": run with the `another` argument and, when the server keeps
|
|
34
|
+
* the modal open, reload it with a fresh form (keeping `preserveFormData` fields).
|
|
35
|
+
*/
|
|
36
|
+
createAnother?: boolean;
|
|
37
|
+
}
|
|
38
|
+
/** The argument `CreateAction` reads for "Create & create another". */
|
|
39
|
+
export declare const CREATE_ANOTHER_ARGUMENT = "another";
|
|
40
|
+
/**
|
|
41
|
+
* The state of the fresh form after "Create & create another": the server's defaults,
|
|
42
|
+
* plus the previous values of the fields `preserveFormData` names (all of them for `true`).
|
|
43
|
+
*/
|
|
44
|
+
export declare function createAnotherState(fresh: Record<string, unknown>, previous: Record<string, unknown>, preserve: boolean | string[] | undefined): Record<string, unknown>;
|
|
45
|
+
export interface OpenModal {
|
|
46
|
+
action: ActionSchema;
|
|
47
|
+
context: ActionContext;
|
|
48
|
+
modal: ActionModalSchema;
|
|
49
|
+
/** Current form values of the modal form. */
|
|
50
|
+
errors: Record<string, string[]>;
|
|
51
|
+
processing: boolean;
|
|
52
|
+
/** Field actions: settles `runField()` with the action's result (undefined when closed). */
|
|
53
|
+
resolve?: (result: unknown) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Bumped by `resetModal()` ("Create & create another"): the renderer focuses the form's
|
|
56
|
+
* `autofocus()` field again (`focusAutofocusField()`) once the fresh form rendered.
|
|
57
|
+
*/
|
|
58
|
+
refocus?: number;
|
|
59
|
+
}
|
|
60
|
+
export interface ActionRunnerState {
|
|
61
|
+
/** Stack of open modals (nested modals are possible). */
|
|
62
|
+
modals: OpenModal[];
|
|
63
|
+
/** Name of the action currently loading its modal. */
|
|
64
|
+
loading: string | null;
|
|
65
|
+
}
|
|
66
|
+
export interface ActionRunnerOptions {
|
|
67
|
+
endpoints: {
|
|
68
|
+
action: string;
|
|
69
|
+
modal: string;
|
|
70
|
+
};
|
|
71
|
+
onError?: (error: unknown) => void;
|
|
72
|
+
/** Called after a successful run so the UI can e.g. clear a table selection. */
|
|
73
|
+
onSuccess?: (action: ActionSchema, context: ActionContext) => void;
|
|
74
|
+
/**
|
|
75
|
+
* Shows notifications that arrive in JSON responses (a modal that `mountUsing()`
|
|
76
|
+
* cancelled, field actions). Renderers can also set it with `setNotificationHandler()`.
|
|
77
|
+
*/
|
|
78
|
+
onNotifications?: (notifications: NotificationSchema[]) => void;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Drives action buttons: plain links navigate, actions without a modal post straight to
|
|
82
|
+
* the server, and actions with a modal fetch the modal schema first.
|
|
83
|
+
*/
|
|
84
|
+
export declare class ActionRunner {
|
|
85
|
+
private readonly options;
|
|
86
|
+
readonly store: Store<ActionRunnerState>;
|
|
87
|
+
/** Runs in flight, so a double click or a repeated shortcut doesn't submit twice. */
|
|
88
|
+
private readonly running;
|
|
89
|
+
/** The form of each open modal (registered by the renderer), by modal path. */
|
|
90
|
+
private readonly modalForms;
|
|
91
|
+
constructor(options: ActionRunnerOptions);
|
|
92
|
+
get state(): ActionRunnerState;
|
|
93
|
+
/** Show notifications from JSON responses with this handler (e.g. the renderer's toasts). */
|
|
94
|
+
setNotificationHandler(handler: ((notifications: NotificationSchema[]) => void) | undefined): void;
|
|
95
|
+
private notify;
|
|
96
|
+
/** Point the runner at the current panel's endpoints (they change per tenant/panel). */
|
|
97
|
+
setEndpoints(endpoints: Partial<ActionRunnerOptions['endpoints']>): void;
|
|
98
|
+
/**
|
|
99
|
+
* The renderer registers the form of an open modal, so nested actions can send its state
|
|
100
|
+
* (`$mountedActions`, `getRawData()`) and `fillData()` can write into it. Returns the
|
|
101
|
+
* function that unregisters it.
|
|
102
|
+
*/
|
|
103
|
+
registerModalForm(action: ActionSchema, context: ActionContext, form: FormStore): () => void;
|
|
104
|
+
/** The open modals of the actions a nested action sits in, outermost first. */
|
|
105
|
+
parentModals(context: ActionContext): Array<OpenModal | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* The form state of the modals a nested action sits in, outermost first (undefined when
|
|
108
|
+
* none of them has a form).
|
|
109
|
+
*/
|
|
110
|
+
mountedData(context: ActionContext): Array<Record<string, unknown>> | undefined;
|
|
111
|
+
/** Entry point for a click on an action button. */
|
|
112
|
+
trigger(action: ActionSchema, context: ActionContext): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* Run a field action (opening its modal first, if it has one) and resolve with its
|
|
115
|
+
* result once it ran, or with undefined when the modal is closed without running it.
|
|
116
|
+
*/
|
|
117
|
+
runField(action: ActionSchema, context: ActionContext): Promise<unknown>;
|
|
118
|
+
/**
|
|
119
|
+
* Run the action whose modal `button` sits in (a `makeModalSubmitAction()` button) with
|
|
120
|
+
* that modal's form state and the button's arguments.
|
|
121
|
+
*/
|
|
122
|
+
submitParentModal(button: ActionSchema, context: ActionContext): void;
|
|
123
|
+
/**
|
|
124
|
+
* Close a modal the user dismissed (cancel, Escape, clicking away, close button). With
|
|
125
|
+
* `cancelParentActionsOnClose()` its parents close too.
|
|
126
|
+
*/
|
|
127
|
+
cancelModal(name: string): void;
|
|
128
|
+
/** Close the modals `context` sits in: all of them, or up to and including `until`. */
|
|
129
|
+
closeParents(context: ActionContext, until: true | string): void;
|
|
130
|
+
openModal(action: ActionSchema, context: ActionContext, resolve?: (result: unknown) => void): Promise<void>;
|
|
131
|
+
private fetchModal;
|
|
132
|
+
/**
|
|
133
|
+
* After "Create & create another": load the modal again so its form starts from the
|
|
134
|
+
* server's defaults, keeping the `preserveFormData` fields from the values just sent.
|
|
135
|
+
*/
|
|
136
|
+
resetModal(name: string, previous?: Record<string, unknown>): Promise<void>;
|
|
137
|
+
/** Whether this action is currently being submitted for this context. */
|
|
138
|
+
isRunning(action: ActionSchema, context: ActionContext): boolean;
|
|
139
|
+
closeModal(name?: string): void;
|
|
140
|
+
/** Submit the topmost modal (or run a modal-less action) through Inertia. */
|
|
141
|
+
execute(action: ActionSchema, context: ActionContext, data?: Record<string, unknown>, options?: ExecuteOptions): void;
|
|
142
|
+
/**
|
|
143
|
+
* Run an action and resolve with its JSON result (for callers that don't want an
|
|
144
|
+
* Inertia visit, e.g. a custom widget).
|
|
145
|
+
*/
|
|
146
|
+
executeJson<T = unknown>(action: ActionSchema, context: ActionContext, data?: Record<string, unknown>): Promise<T>;
|
|
147
|
+
/**
|
|
148
|
+
* Run a field action as JSON with its form's state; merge the refreshed form from the
|
|
149
|
+
* response, settle the modal's `runField()` promise and close the modal.
|
|
150
|
+
*/
|
|
151
|
+
executeField(action: ActionSchema, context: ActionContext, data?: Record<string, unknown>): Promise<unknown>;
|
|
152
|
+
private setProcessing;
|
|
153
|
+
private setErrors;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Whether an action button should bind its key bindings globally. Record actions repeat
|
|
157
|
+
* on every row, so a page-wide shortcut would run them once per record; they only bind
|
|
158
|
+
* when rendered outside a record (header, page and bulk actions).
|
|
159
|
+
*/
|
|
160
|
+
export declare function bindsKeyBindings(action: Pick<ActionSchema, 'keyBindings' | 'disabled'>, context: Pick<ActionContext, 'record'>): boolean;
|
|
161
|
+
/** Button sizes every renderer's shadcn `Button` understands. */
|
|
162
|
+
export type ActionButtonSize = 'xs' | 'sm' | 'default' | 'lg';
|
|
163
|
+
/**
|
|
164
|
+
* The button size for an action: its own `size()` wins over the size the surrounding
|
|
165
|
+
* list asks for (`md` is the default button, `xl` the largest one).
|
|
166
|
+
*/
|
|
167
|
+
export declare function resolveActionSize(size: Size | null | undefined, fallback?: ActionButtonSize): ActionButtonSize;
|
|
168
|
+
/** The square icon-only button that matches a button size. */
|
|
169
|
+
export declare function iconButtonSize(size: ActionButtonSize): 'icon-xs' | 'icon-sm' | 'icon';
|
|
170
|
+
export interface DropdownPlacement {
|
|
171
|
+
side: 'top' | 'right' | 'bottom' | 'left';
|
|
172
|
+
align: 'start' | 'center' | 'end';
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Parse an ActionGroup `dropdownPlacement()` (`bottom-start`, `top-end`, `left`, …) into the
|
|
176
|
+
* side/align pair dropdown primitives take. Defaults to `bottom` / `end`.
|
|
177
|
+
*/
|
|
178
|
+
export declare function parseDropdownPlacement(placement: string | null | undefined): DropdownPlacement;
|
|
179
|
+
/** Every action inside a group, nested groups flattened. */
|
|
180
|
+
export declare function flattenActionGroup(actions: AnyActionSchema[]): ActionSchema[];
|
|
181
|
+
/**
|
|
182
|
+
* Whether an open modal is hidden because a nested modal was opened from it. Nested modals
|
|
183
|
+
* hide their parents unless they opt into `overlayParentActions()`; a hidden parent shows
|
|
184
|
+
* again when the child closes.
|
|
185
|
+
*/
|
|
186
|
+
export declare function isModalHiddenByChild(modals: OpenModal[], index: number): boolean;
|
|
187
|
+
/** Justify class keyword for modal footer buttons: `footerActionsAlignment`, else `alignment`. */
|
|
188
|
+
export declare function modalFooterAlignment(modal: Pick<ActionModalSchema, 'alignment' | 'footerActionsAlignment'>): 'start' | 'center' | 'end' | 'between';
|
|
189
|
+
/**
|
|
190
|
+
* The physical side a slide-over enters from: `end` (default) is the right edge in
|
|
191
|
+
* left-to-right documents and the left edge in right-to-left ones.
|
|
192
|
+
*/
|
|
193
|
+
export declare function slideOverSide(position: 'start' | 'end' | null | undefined, direction?: 'ltr' | 'rtl'): 'left' | 'right';
|
|
194
|
+
/**
|
|
195
|
+
* Whether closing a modal has to ask first: its form changed and the modal has
|
|
196
|
+
* `unsavedChangesAlert` (the action's own setting or the panel's `unsavedChangesAlerts()`).
|
|
197
|
+
*/
|
|
198
|
+
export declare function shouldConfirmModalClose(modal: Pick<ActionModalSchema, 'unsavedChangesAlert'>, form: {
|
|
199
|
+
isDirty: boolean;
|
|
200
|
+
} | null | undefined): boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Ask whether to close a modal with unsaved changes (`window.confirm`); true when it may
|
|
203
|
+
* close. Without changes (or the alert) it never asks.
|
|
204
|
+
*/
|
|
205
|
+
export declare function confirmModalClose(modal: Pick<ActionModalSchema, 'unsavedChangesAlert'>, form: {
|
|
206
|
+
isDirty: boolean;
|
|
207
|
+
} | null | undefined, message: string): boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Warn before leaving the page (a reload, or an Inertia visit when `message` is given)
|
|
210
|
+
* while a modal form with `unsavedChangesAlert` has unsaved changes. Returns a function
|
|
211
|
+
* that removes the listeners.
|
|
212
|
+
*/
|
|
213
|
+
export declare function guardModalUnload(modal: Pick<ActionModalSchema, 'unsavedChangesAlert'>, form: {
|
|
214
|
+
isDirty: boolean;
|
|
215
|
+
} | null | undefined, message?: string): () => void;
|
|
216
|
+
/** The context of a user or tenant menu action: the page's token and the menu's component. */
|
|
217
|
+
export declare function menuActionContext(token: string, menu: 'userMenu' | 'tenantMenu'): ActionContext;
|
|
218
|
+
/**
|
|
219
|
+
* Split menu entries into their groups (`group` index, nested arrays in
|
|
220
|
+
* `userMenuItems()`), in order; renderers draw a separator between groups.
|
|
221
|
+
*/
|
|
222
|
+
export declare function groupMenuItems<T extends {
|
|
223
|
+
group?: number;
|
|
224
|
+
}>(items: T[]): T[][];
|
|
225
|
+
/**
|
|
226
|
+
* The action endpoint for a run. "All records" bulk actions carry the page's query string
|
|
227
|
+
* (filters, search, list tab), so the server selects exactly the records the table shows.
|
|
228
|
+
*/
|
|
229
|
+
export declare function actionEndpoint(endpoint: string, context: Pick<ActionContext, 'allRecords'>, search?: string): string;
|
|
230
|
+
//#endregion
|
|
231
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","names":[],"sources":["../src/actions.ts"],"mappings":";;;;;;iBA6BiB;;EAEf;;EAEA;EACA,SAAS;;EAET,UAAU;;EAEV;EACA,YAAY;;;;;EAKZ;;;;;EAKA,OAAO;;iBAGQ;;EAEf;;;;;EAKA;;;qBAIW;;;;;wBAMG,mBACd,OAAO,yBACP,UAAU,yBACV,2CACC;iBAiBc;EACf,QAAQ;EACR,SAAS;EACT,OAAO;;EAEP,QAAQ;EACR;;EAEA,WAAW;;;;;EAKX;;iBAGe;;EAEf,QAAQ;;EAER;;iBAGe;EACf;IAAa;IAAgB;;EAC7B,WAAW;;EAEX,aAAa,QAAQ,cAAc,SAAS;;;;;EAK5C,mBAAmB,eAAe;;;;;;qBAOvB;mBASkB;WARb,OAAO,MAAM;;mBAGZ;;mBAGA;EAEY,YAAA,SAAS;MAIlC,SAAS;;EAKb,uBACE,WAAW,eAAe;UAKpB;;EAOR,aAAa,WAAW,QAAQ;;;;;;EAShC,kBAAkB,QAAQ,cAAc,SAAS,eAAe,MAAM;;EAUtE,aAAa,SAAS,gBAAgB,MAAM;;;;;EAkB5C,YAAY,SAAS,gBAAgB,MAAM;;EAoBrC,QAAQ,QAAQ,cAAc,SAAS,gBAAgB;;;;;EA8DvD,SAAS,QAAQ,cAAc,SAAS,gBAAgB;;;;;EAkB9D,kBAAkB,QAAQ,cAAc,SAAS;;;;;EAqBjD,YAAY;;EAYZ,aAAa,SAAS,eAAe;EAY/B,UACJ,QAAQ,cACR,SAAS,eACT,WAAW,2BACV;UAwCK;;;;;EAgCF,WAAW,cAAc,WAAU,0BAA+B;;EAwCxE,UAAU,QAAQ,cAAc,SAAS;EAIzC,WAAW;;EAeX,QACE,QAAQ,cACR,SAAS,eACT,OAAM,yBACN,UAAS;;;;;EAmIL,YAAY,aAChB,QAAQ,cACR,SAAS,eACT,OAAM,0BACL,QAAQ;;;;;EAwCL,aACJ,QAAQ,cACR,SAAS,eACT,OAAM,0BACL;UAgFK;UAWA;;;;;;;wBAqBM,iBACd,QAAQ,KAAK,2CACb,SAAS,KAAK;;YAMJ;;;;;wBAMI,kBACd,MAAM,yBACN,WAAU,mBACT;;wBAiBa,eAAe,MAAM;iBAIpB;EACf;EACA;;;;;;wBAOc,uBAAuB,uCAAuC;;wBAa9D,mBAAmB,SAAS,oBAAoB;;;;;;wBAWhD,qBAAqB,QAAQ,aAAa;;wBAqB1C,qBACd,OAAO,KAAK;;;;;wBAkBE,cACd,8CACA;;;;;wBAiBc,wBACd,OAAO,KAAK,2CACZ;EAAQ;;;;;;wBASM,kBACd,OAAO,KAAK,2CACZ;EAAQ;sBACR;;;;;;wBAcc,iBACd,OAAO,KAAK,2CACZ;EAAQ;sBACR;;wBA8Bc,kBAAkB,eAAe,kCAAkC;;;;;wBAQnE,eAAe;EAAY;GAAkB,OAAO,MAAM;;;;;wBA4B1D,eACd,kBACA,SAAS,KAAK,8BACd"}
|