@shwfed/config 1.0.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/README.md +36 -0
- package/dist/chunks/index.mjs +212742 -0
- package/dist/module.d.mts +44 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +23 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.d.vue.ts +23 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.vue +107 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.vue.d.ts +23 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/runtime.vue +30 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.d.ts +16 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.js +48 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.d.vue.ts +41 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue +170 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue.d.ts +41 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/runtime.vue +37 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.d.ts +25 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.js +62 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/config.d.vue.ts +17 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/config.vue +62 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/config.vue.d.ts +17 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/runtime.vue +17 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/schema.d.ts +13 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/schema.js +16 -0
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/config.d.vue.ts +21 -0
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/config.vue +84 -0
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/config.vue.d.ts +21 -0
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/runtime.vue +29 -0
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/schema.d.ts +15 -0
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/schema.js +27 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/config.d.vue.ts +17 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/config.vue +10 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/config.vue.d.ts +17 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/runtime.vue +25 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/schema.d.ts +13 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/schema.js +16 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/config.d.vue.ts +17 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/config.vue +10 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/config.vue.d.ts +17 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/runtime.vue +21 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/schema.d.ts +13 -0
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/schema.js +16 -0
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/config.d.vue.ts +80 -0
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/config.vue +325 -0
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/config.vue.d.ts +80 -0
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/runtime.d.vue.ts +10 -0
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/runtime.vue +56 -0
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/runtime.vue.d.ts +10 -0
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +77 -0
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.js +46 -0
- package/dist/runtime/components/actions/components/definition.d.vue.ts +22 -0
- package/dist/runtime/components/actions/components/definition.vue +64 -0
- package/dist/runtime/components/actions/components/definition.vue.d.ts +22 -0
- package/dist/runtime/components/actions/components/group.d.vue.ts +160 -0
- package/dist/runtime/components/actions/components/group.vue +519 -0
- package/dist/runtime/components/actions/components/group.vue.d.ts +160 -0
- package/dist/runtime/components/actions/config.d.vue.ts +158 -0
- package/dist/runtime/components/actions/config.vue +1549 -0
- package/dist/runtime/components/actions/config.vue.d.ts +158 -0
- package/dist/runtime/components/actions/schema.d.ts +294 -0
- package/dist/runtime/components/actions/schema.js +210 -0
- package/dist/runtime/components/actions/utils/button-registry.d.ts +25 -0
- package/dist/runtime/components/actions/utils/button-registry.js +1 -0
- package/dist/runtime/components/actions/utils/resolve.d.ts +27 -0
- package/dist/runtime/components/actions/utils/resolve.js +80 -0
- package/dist/runtime/components/ai/byok-button.d.vue.ts +3 -0
- package/dist/runtime/components/ai/byok-button.vue +48 -0
- package/dist/runtime/components/ai/byok-button.vue.d.ts +3 -0
- package/dist/runtime/components/ai/byok-settings.d.vue.ts +3 -0
- package/dist/runtime/components/ai/byok-settings.vue +282 -0
- package/dist/runtime/components/ai/byok-settings.vue.d.ts +3 -0
- package/dist/runtime/components/app.d.vue.ts +13 -0
- package/dist/runtime/components/app.vue +202 -0
- package/dist/runtime/components/app.vue.d.ts +13 -0
- package/dist/runtime/components/block-layout-editor/index.d.vue.ts +90 -0
- package/dist/runtime/components/block-layout-editor/index.vue +1312 -0
- package/dist/runtime/components/block-layout-editor/index.vue.d.ts +90 -0
- package/dist/runtime/components/block-layout-editor/meta-strip.d.vue.ts +23 -0
- package/dist/runtime/components/block-layout-editor/meta-strip.vue +84 -0
- package/dist/runtime/components/block-layout-editor/meta-strip.vue.d.ts +23 -0
- package/dist/runtime/components/block-layout-editor/sidebar.d.vue.ts +39 -0
- package/dist/runtime/components/block-layout-editor/sidebar.vue +170 -0
- package/dist/runtime/components/block-layout-editor/sidebar.vue.d.ts +39 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.d.vue.ts +153 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.vue +18 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.vue.d.ts +153 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.d.vue.ts +158 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.vue +22 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.vue.d.ts +158 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +98 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.js +28 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.d.vue.ts +68 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.vue +22 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.vue.d.ts +68 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.d.vue.ts +72 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.vue +24 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.vue.d.ts +72 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.d.ts +84 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.js +30 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/config.d.vue.ts +35 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/config.vue +66 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/config.vue.d.ts +35 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/runtime.d.vue.ts +35 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/runtime.vue +19 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/runtime.vue.d.ts +35 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.d.ts +35 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.js +31 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +350 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue +22 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +350 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +345 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue +17 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +345 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +393 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.js +28 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/config.d.vue.ts +86 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/config.vue +498 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/config.vue.d.ts +86 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/runtime.d.vue.ts +86 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/runtime.vue +62 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/runtime.vue.d.ts +86 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.d.ts +155 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.js +94 -0
- package/dist/runtime/components/config/breadcrumb-extension.d.ts +15 -0
- package/dist/runtime/components/config/breadcrumb-extension.js +1 -0
- package/dist/runtime/components/config/breadcrumb.d.vue.ts +7 -0
- package/dist/runtime/components/config/breadcrumb.vue +61 -0
- package/dist/runtime/components/config/breadcrumb.vue.d.ts +7 -0
- package/dist/runtime/components/config/config.d.vue.ts +7 -0
- package/dist/runtime/components/config/config.vue +139 -0
- package/dist/runtime/components/config/config.vue.d.ts +7 -0
- package/dist/runtime/components/config/footer.d.vue.ts +11 -0
- package/dist/runtime/components/config/footer.vue +64 -0
- package/dist/runtime/components/config/footer.vue.d.ts +11 -0
- package/dist/runtime/components/config/index.d.vue.ts +37 -0
- package/dist/runtime/components/config/index.vue +81 -0
- package/dist/runtime/components/config/index.vue.d.ts +37 -0
- package/dist/runtime/components/config/schema.d.ts +102 -0
- package/dist/runtime/components/config/schema.js +23 -0
- package/dist/runtime/components/config/use-editor.d.ts +102 -0
- package/dist/runtime/components/config/use-editor.js +388 -0
- package/dist/runtime/components/config/utils/block-ref-cache.d.ts +9 -0
- package/dist/runtime/components/config/utils/block-ref-cache.js +14 -0
- package/dist/runtime/components/config/utils/resolve.d.ts +39 -0
- package/dist/runtime/components/config/utils/resolve.js +62 -0
- package/dist/runtime/components/form/config.d.vue.ts +16 -0
- package/dist/runtime/components/form/config.vue +111 -0
- package/dist/runtime/components/form/config.vue.d.ts +16 -0
- package/dist/runtime/components/form/field-layout.d.ts +5 -0
- package/dist/runtime/components/form/field-layout.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/config.d.vue.ts +37 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/config.vue +87 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/config.vue.d.ts +37 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/runtime.vue +22 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +33 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.js +25 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +73 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue +247 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +73 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.vue +118 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +51 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +48 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.d.vue.ts +75 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue +288 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue.d.ts +75 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.vue +93 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +53 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.js +52 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.d.vue.ts +149 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue +97 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue.d.ts +149 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/runtime.vue +26 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +95 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.js +28 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +91 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue +308 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +91 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/runtime.vue +240 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.d.ts +75 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.js +70 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +99 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue +472 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +99 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/runtime.vue +115 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +75 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.js +77 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +119 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue +578 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +119 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/runtime.vue +136 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +87 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.js +96 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +103 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue +554 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +103 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/runtime.vue +117 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +87 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.js +95 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +123 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue +662 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +123 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/runtime.vue +138 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +99 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.js +114 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.d.vue.ts +65 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.vue +361 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.vue.d.ts +65 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/runtime.vue +91 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +57 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.js +66 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +67 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue +389 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +67 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/runtime.vue +103 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +59 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.js +73 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +83 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue +405 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +83 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue +163 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +56 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +69 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +99 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue +457 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +99 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/runtime.vue +238 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +65 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.js +80 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +85 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue +226 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +85 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/runtime.vue +93 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +57 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.js +51 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/config.d.vue.ts +121 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/config.vue +469 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/config.vue.d.ts +121 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/runtime.vue +257 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.d.ts +140 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.js +143 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.d.vue.ts +115 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.vue +609 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.vue.d.ts +115 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/runtime.vue +367 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.d.ts +79 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.js +86 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +93 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue +330 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +93 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/runtime.vue +281 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +74 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.js +83 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.d.vue.ts +105 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue +332 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue.d.ts +105 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/row.d.vue.ts +16 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/row.vue +119 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/row.vue.d.ts +16 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/runtime.vue +218 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +111 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.js +78 -0
- package/dist/runtime/components/form/index.d.vue.ts +22 -0
- package/dist/runtime/components/form/index.vue +175 -0
- package/dist/runtime/components/form/index.vue.d.ts +22 -0
- package/dist/runtime/components/form/schema.d.ts +164 -0
- package/dist/runtime/components/form/schema.js +77 -0
- package/dist/runtime/components/form/unit-config.d.vue.ts +63 -0
- package/dist/runtime/components/form/unit-config.vue +498 -0
- package/dist/runtime/components/form/unit-config.vue.d.ts +63 -0
- package/dist/runtime/components/form/utils/common.d.ts +15 -0
- package/dist/runtime/components/form/utils/common.js +26 -0
- package/dist/runtime/components/form/utils/resolve.d.ts +77 -0
- package/dist/runtime/components/form/utils/resolve.js +74 -0
- package/dist/runtime/components/form/utils/schema-meta.d.ts +5 -0
- package/dist/runtime/components/form/utils/schema-meta.js +48 -0
- package/dist/runtime/components/form/utils/state.d.ts +11 -0
- package/dist/runtime/components/form/utils/state.js +26 -0
- package/dist/runtime/components/modal.d.vue.ts +56 -0
- package/dist/runtime/components/modal.vue +153 -0
- package/dist/runtime/components/modal.vue.d.ts +56 -0
- package/dist/runtime/components/sidebar-takeover.d.ts +6 -0
- package/dist/runtime/components/sidebar-takeover.js +1 -0
- package/dist/runtime/components/table/ai/columns-button.d.vue.ts +12 -0
- package/dist/runtime/components/table/ai/columns-button.vue +499 -0
- package/dist/runtime/components/table/ai/columns-button.vue.d.ts +12 -0
- package/dist/runtime/components/table/ai/columns-task.md +44 -0
- package/dist/runtime/components/table/ai/data-source-button.d.vue.ts +20 -0
- package/dist/runtime/components/table/ai/data-source-button.vue +332 -0
- package/dist/runtime/components/table/ai/data-source-button.vue.d.ts +20 -0
- package/dist/runtime/components/table/ai/data-source-task.md +17 -0
- package/dist/runtime/components/table/column-layout.d.ts +5 -0
- package/dist/runtime/components/table/column-layout.js +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/config.vue +112 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/runtime.vue +28 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +94 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.js +45 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/config.vue +225 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/runtime.vue +32 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +40 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +42 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue +215 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.vue +46 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +40 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +45 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/config.vue +180 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/runtime.vue +68 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +51 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.js +51 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue +293 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/runtime.vue +97 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +44 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +50 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/config.vue +141 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/header.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/header.vue +60 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/header.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.vue +117 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.d.ts +23 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.js +50 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue +255 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.vue +54 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +43 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +48 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.vue +280 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue +82 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +42 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.js +65 -0
- package/dist/runtime/components/table/config.d.vue.ts +16 -0
- package/dist/runtime/components/table/config.vue +1581 -0
- package/dist/runtime/components/table/config.vue.d.ts +16 -0
- package/dist/runtime/components/table/index.d.vue.ts +93 -0
- package/dist/runtime/components/table/index.vue +895 -0
- package/dist/runtime/components/table/index.vue.d.ts +93 -0
- package/dist/runtime/components/table/schema.d.ts +633 -0
- package/dist/runtime/components/table/schema.js +258 -0
- package/dist/runtime/components/table/utils/host.d.ts +9 -0
- package/dist/runtime/components/table/utils/host.js +8 -0
- package/dist/runtime/components/table/utils/resolve.d.ts +32 -0
- package/dist/runtime/components/table/utils/resolve.js +50 -0
- package/dist/runtime/components/table/utils/runtime.d.ts +6 -0
- package/dist/runtime/components/table/utils/runtime.js +28 -0
- package/dist/runtime/components/table/utils/schema-meta.d.ts +5 -0
- package/dist/runtime/components/table/utils/schema-meta.js +48 -0
- package/dist/runtime/components/table/utils/shared.d.ts +40 -0
- package/dist/runtime/components/table/utils/shared.js +67 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.d.vue.ts +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue +20 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue.d.ts +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.d.vue.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.d.vue.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.d.vue.ts +32 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue +44 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +32 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.d.vue.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue +22 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +15 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.vue +15 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.d.vue.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue +22 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue +16 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/alert-dialog/index.d.ts +9 -0
- package/dist/runtime/components/ui/alert-dialog/index.js +9 -0
- package/dist/runtime/components/ui/badge/Badge.d.vue.ts +20 -0
- package/dist/runtime/components/ui/badge/Badge.vue +24 -0
- package/dist/runtime/components/ui/badge/Badge.vue.d.ts +20 -0
- package/dist/runtime/components/ui/badge/index.d.ts +6 -0
- package/dist/runtime/components/ui/badge/index.js +18 -0
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.d.vue.ts +17 -0
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.vue +17 -0
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.vue.d.ts +17 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.d.vue.ts +7 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +23 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +7 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.d.vue.ts +17 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue +16 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +17 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.d.vue.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue +28 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.d.vue.ts +17 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue +21 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +17 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.d.vue.ts +17 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue +19 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +17 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.d.vue.ts +17 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +21 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/breadcrumb/index.d.ts +7 -0
- package/dist/runtime/components/ui/breadcrumb/index.js +7 -0
- package/dist/runtime/components/ui/button/Button.d.vue.ts +27 -0
- package/dist/runtime/components/ui/button/Button.vue +28 -0
- package/dist/runtime/components/ui/button/Button.vue.d.ts +27 -0
- package/dist/runtime/components/ui/button/index.d.ts +7 -0
- package/dist/runtime/components/ui/button/index.js +25 -0
- package/dist/runtime/components/ui/button-group/ButtonGroup.d.vue.ts +19 -0
- package/dist/runtime/components/ui/button-group/ButtonGroup.vue +19 -0
- package/dist/runtime/components/ui/button-group/ButtonGroup.vue.d.ts +19 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupText.d.vue.ts +22 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupText.vue +23 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupText.vue.d.ts +22 -0
- package/dist/runtime/components/ui/button-group/index.d.ts +7 -0
- package/dist/runtime/components/ui/button-group/index.js +17 -0
- package/dist/runtime/components/ui/calendar/Calendar.d.vue.ts +35 -0
- package/dist/runtime/components/ui/calendar/Calendar.vue +196 -0
- package/dist/runtime/components/ui/calendar/Calendar.vue.d.ts +35 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.d.vue.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.vue +23 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.vue.d.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.d.vue.ts +20 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue +39 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue.d.ts +20 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.d.vue.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue +22 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue.d.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarGridBody.d.vue.ts +14 -0
- package/dist/runtime/components/ui/calendar/CalendarGridBody.vue +16 -0
- package/dist/runtime/components/ui/calendar/CalendarGridBody.vue.d.ts +14 -0
- package/dist/runtime/components/ui/calendar/CalendarGridHead.d.vue.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarGridHead.vue +17 -0
- package/dist/runtime/components/ui/calendar/CalendarGridHead.vue.d.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.d.vue.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue +22 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue.d.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.d.vue.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue +22 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue.d.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.d.vue.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue +22 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue.d.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.d.vue.ts +19 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue +27 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue.d.ts +19 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.d.vue.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue +31 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue.d.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.d.vue.ts +18 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue +31 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue.d.ts +18 -0
- package/dist/runtime/components/ui/calendar/index.d.ts +13 -0
- package/dist/runtime/components/ui/calendar/index.js +12 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.d.vue.ts +25 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue +54 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +25 -0
- package/dist/runtime/components/ui/checkbox/index.d.ts +1 -0
- package/dist/runtime/components/ui/checkbox/index.js +1 -0
- package/dist/runtime/components/ui/collapsible/Collapsible.d.vue.ts +20 -0
- package/dist/runtime/components/ui/collapsible/Collapsible.vue +24 -0
- package/dist/runtime/components/ui/collapsible/Collapsible.vue.d.ts +20 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.d.vue.ts +14 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.vue +17 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.vue.d.ts +14 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.vue +16 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/collapsible/index.d.ts +3 -0
- package/dist/runtime/components/ui/collapsible/index.js +3 -0
- package/dist/runtime/components/ui/color-picker/ColorPicker.d.vue.ts +18 -0
- package/dist/runtime/components/ui/color-picker/ColorPicker.vue +51 -0
- package/dist/runtime/components/ui/color-picker/ColorPicker.vue.d.ts +18 -0
- package/dist/runtime/components/ui/color-picker/index.d.ts +1 -0
- package/dist/runtime/components/ui/color-picker/index.js +1 -0
- package/dist/runtime/components/ui/command/Command.d.vue.ts +36 -0
- package/dist/runtime/components/ui/command/Command.vue +82 -0
- package/dist/runtime/components/ui/command/Command.vue.d.ts +36 -0
- package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +28 -0
- package/dist/runtime/components/ui/command/CommandDialog.vue +34 -0
- package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +28 -0
- package/dist/runtime/components/ui/command/CommandEmpty.d.vue.ts +18 -0
- package/dist/runtime/components/ui/command/CommandEmpty.vue +28 -0
- package/dist/runtime/components/ui/command/CommandEmpty.vue.d.ts +18 -0
- package/dist/runtime/components/ui/command/CommandGroup.d.vue.ts +19 -0
- package/dist/runtime/components/ui/command/CommandGroup.vue +48 -0
- package/dist/runtime/components/ui/command/CommandGroup.vue.d.ts +19 -0
- package/dist/runtime/components/ui/command/CommandInput.d.vue.ts +8 -0
- package/dist/runtime/components/ui/command/CommandInput.vue +40 -0
- package/dist/runtime/components/ui/command/CommandInput.vue.d.ts +8 -0
- package/dist/runtime/components/ui/command/CommandItem.d.vue.ts +22 -0
- package/dist/runtime/components/ui/command/CommandItem.vue +65 -0
- package/dist/runtime/components/ui/command/CommandItem.vue.d.ts +22 -0
- package/dist/runtime/components/ui/command/CommandList.d.vue.ts +18 -0
- package/dist/runtime/components/ui/command/CommandList.vue +24 -0
- package/dist/runtime/components/ui/command/CommandList.vue.d.ts +18 -0
- package/dist/runtime/components/ui/command/CommandSeparator.d.vue.ts +18 -0
- package/dist/runtime/components/ui/command/CommandSeparator.vue +23 -0
- package/dist/runtime/components/ui/command/CommandSeparator.vue.d.ts +18 -0
- package/dist/runtime/components/ui/command/CommandShortcut.d.vue.ts +17 -0
- package/dist/runtime/components/ui/command/CommandShortcut.vue +15 -0
- package/dist/runtime/components/ui/command/CommandShortcut.vue.d.ts +17 -0
- package/dist/runtime/components/ui/command/index.d.ts +90 -0
- package/dist/runtime/components/ui/command/index.js +12 -0
- package/dist/runtime/components/ui/config-toolbar/ConfigToolbar.d.vue.ts +12 -0
- package/dist/runtime/components/ui/config-toolbar/ConfigToolbar.vue +152 -0
- package/dist/runtime/components/ui/config-toolbar/ConfigToolbar.vue.d.ts +12 -0
- package/dist/runtime/components/ui/config-toolbar/index.d.ts +1 -0
- package/dist/runtime/components/ui/config-toolbar/index.js +1 -0
- package/dist/runtime/components/ui/context-menu/ContextMenu.d.vue.ts +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenu.vue +19 -0
- package/dist/runtime/components/ui/context-menu/ContextMenu.vue.d.ts +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.d.vue.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue +41 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuContent.d.vue.ts +31 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuContent.vue +48 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuContent.vue.d.ts +31 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuGroup.d.vue.ts +14 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuGroup.vue +16 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuGroup.vue.d.ts +14 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.d.vue.ts +23 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.vue +27 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.vue.d.ts +23 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuLabel.d.vue.ts +19 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuLabel.vue +23 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuLabel.vue.d.ts +19 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioGroup.d.vue.ts +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioGroup.vue +19 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.d.vue.ts +25 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue +45 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +25 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSeparator.d.vue.ts +8 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSeparator.vue +19 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +8 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuShortcut.d.vue.ts +17 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuShortcut.vue +15 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +17 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSub.d.vue.ts +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSub.vue +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSub.vue.d.ts +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubContent.d.vue.ts +34 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubContent.vue +41 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +34 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.d.vue.ts +19 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue +31 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +19 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuTrigger.vue +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/context-menu/index.d.ts +14 -0
- package/dist/runtime/components/ui/context-menu/index.js +14 -0
- package/dist/runtime/components/ui/date-picker/DatePicker.d.vue.ts +50 -0
- package/dist/runtime/components/ui/date-picker/DatePicker.vue +257 -0
- package/dist/runtime/components/ui/date-picker/DatePicker.vue.d.ts +50 -0
- package/dist/runtime/components/ui/date-picker/DatePickerDatePanel.d.vue.ts +14 -0
- package/dist/runtime/components/ui/date-picker/DatePickerDatePanel.vue +37 -0
- package/dist/runtime/components/ui/date-picker/DatePickerDatePanel.vue.d.ts +14 -0
- package/dist/runtime/components/ui/date-picker/DatePickerDateTimePanel.d.vue.ts +20 -0
- package/dist/runtime/components/ui/date-picker/DatePickerDateTimePanel.vue +147 -0
- package/dist/runtime/components/ui/date-picker/DatePickerDateTimePanel.vue.d.ts +20 -0
- package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +31 -0
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue +117 -0
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +31 -0
- package/dist/runtime/components/ui/date-picker/DatePickerMonthPanel.d.vue.ts +14 -0
- package/dist/runtime/components/ui/date-picker/DatePickerMonthPanel.vue +38 -0
- package/dist/runtime/components/ui/date-picker/DatePickerMonthPanel.vue.d.ts +14 -0
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +29 -0
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue +106 -0
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +29 -0
- package/dist/runtime/components/ui/date-picker/DatePickerYearPanel.d.vue.ts +14 -0
- package/dist/runtime/components/ui/date-picker/DatePickerYearPanel.vue +38 -0
- package/dist/runtime/components/ui/date-picker/DatePickerYearPanel.vue.d.ts +14 -0
- package/dist/runtime/components/ui/date-picker/PickerShortcuts.d.vue.ts +28 -0
- package/dist/runtime/components/ui/date-picker/PickerShortcuts.vue +37 -0
- package/dist/runtime/components/ui/date-picker/PickerShortcuts.vue.d.ts +28 -0
- package/dist/runtime/components/ui/date-picker/index.d.ts +10 -0
- package/dist/runtime/components/ui/date-picker/index.js +9 -0
- package/dist/runtime/components/ui/date-picker/types.d.ts +5 -0
- package/dist/runtime/components/ui/date-picker/types.js +7 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePicker.d.vue.ts +54 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePicker.vue +304 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePicker.vue.d.ts +54 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDatePanel.d.vue.ts +15 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDatePanel.vue +27 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDatePanel.vue.d.ts +15 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDateTimePanel.d.vue.ts +23 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDateTimePanel.vue +151 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDateTimePanel.vue.d.ts +23 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +36 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue +169 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +36 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerMonthPanel.d.vue.ts +14 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerMonthPanel.vue +73 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerMonthPanel.vue.d.ts +14 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +34 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue +148 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +34 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerYearPanel.d.vue.ts +14 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerYearPanel.vue +73 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerYearPanel.vue.d.ts +14 -0
- package/dist/runtime/components/ui/date-range-picker/index.d.ts +9 -0
- package/dist/runtime/components/ui/date-range-picker/index.js +8 -0
- package/dist/runtime/components/ui/date-range-picker/types.d.ts +5 -0
- package/dist/runtime/components/ui/date-range-picker/types.js +7 -0
- package/dist/runtime/components/ui/dialog/Dialog.d.vue.ts +21 -0
- package/dist/runtime/components/ui/dialog/Dialog.vue +21 -0
- package/dist/runtime/components/ui/dialog/Dialog.vue.d.ts +21 -0
- package/dist/runtime/components/ui/dialog/DialogClose.d.vue.ts +14 -0
- package/dist/runtime/components/ui/dialog/DialogClose.vue +16 -0
- package/dist/runtime/components/ui/dialog/DialogClose.vue.d.ts +14 -0
- package/dist/runtime/components/ui/dialog/DialogContent.d.vue.ts +37 -0
- package/dist/runtime/components/ui/dialog/DialogContent.vue +164 -0
- package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +37 -0
- package/dist/runtime/components/ui/dialog/DialogDescription.d.vue.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogDescription.vue +22 -0
- package/dist/runtime/components/ui/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/dialog/DialogFooter.vue +15 -0
- package/dist/runtime/components/ui/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/dialog/DialogHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/dialog/DialogHeader.vue +15 -0
- package/dist/runtime/components/ui/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/dialog/DialogOverlay.d.vue.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogOverlay.vue +22 -0
- package/dist/runtime/components/ui/dialog/DialogOverlay.vue.d.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogScrollContent.d.vue.ts +38 -0
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue +174 -0
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue.d.ts +38 -0
- package/dist/runtime/components/ui/dialog/DialogTitle.d.vue.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogTitle.vue +22 -0
- package/dist/runtime/components/ui/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/dialog/DialogTrigger.vue +16 -0
- package/dist/runtime/components/ui/dialog/DialogTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/dialog/index.d.ts +10 -0
- package/dist/runtime/components/ui/dialog/index.js +10 -0
- package/dist/runtime/components/ui/drawer/Drawer.d.vue.ts +31 -0
- package/dist/runtime/components/ui/drawer/Drawer.vue +39 -0
- package/dist/runtime/components/ui/drawer/Drawer.vue.d.ts +31 -0
- package/dist/runtime/components/ui/drawer/DrawerClose.d.vue.ts +14 -0
- package/dist/runtime/components/ui/drawer/DrawerClose.vue +19 -0
- package/dist/runtime/components/ui/drawer/DrawerClose.vue.d.ts +14 -0
- package/dist/runtime/components/ui/drawer/DrawerContent.d.vue.ts +24 -0
- package/dist/runtime/components/ui/drawer/DrawerContent.vue +183 -0
- package/dist/runtime/components/ui/drawer/DrawerContent.vue.d.ts +24 -0
- package/dist/runtime/components/ui/drawer/DrawerDescription.d.vue.ts +18 -0
- package/dist/runtime/components/ui/drawer/DrawerDescription.vue +26 -0
- package/dist/runtime/components/ui/drawer/DrawerDescription.vue.d.ts +18 -0
- package/dist/runtime/components/ui/drawer/DrawerFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/drawer/DrawerFooter.vue +15 -0
- package/dist/runtime/components/ui/drawer/DrawerFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/drawer/DrawerHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/drawer/DrawerHeader.vue +15 -0
- package/dist/runtime/components/ui/drawer/DrawerHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/drawer/DrawerOverlay.d.vue.ts +7 -0
- package/dist/runtime/components/ui/drawer/DrawerOverlay.vue +19 -0
- package/dist/runtime/components/ui/drawer/DrawerOverlay.vue.d.ts +7 -0
- package/dist/runtime/components/ui/drawer/DrawerTitle.d.vue.ts +18 -0
- package/dist/runtime/components/ui/drawer/DrawerTitle.vue +26 -0
- package/dist/runtime/components/ui/drawer/DrawerTitle.vue.d.ts +18 -0
- package/dist/runtime/components/ui/drawer/DrawerTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/drawer/DrawerTrigger.vue +19 -0
- package/dist/runtime/components/ui/drawer/DrawerTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/drawer/index.d.ts +8 -0
- package/dist/runtime/components/ui/drawer/index.js +8 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.d.vue.ts +20 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue +21 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +20 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +32 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue +52 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +32 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +29 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/dropdown-menu/index.d.ts +4 -0
- package/dist/runtime/components/ui/dropdown-menu/index.js +4 -0
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.d.vue.ts +22 -0
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +150 -0
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue.d.ts +22 -0
- package/dist/runtime/components/ui/expression-editor/index.d.ts +1 -0
- package/dist/runtime/components/ui/expression-editor/index.js +1 -0
- package/dist/runtime/components/ui/field/Field.d.vue.ts +19 -0
- package/dist/runtime/components/ui/field/Field.vue +23 -0
- package/dist/runtime/components/ui/field/Field.vue.d.ts +19 -0
- package/dist/runtime/components/ui/field/FieldContent.d.vue.ts +17 -0
- package/dist/runtime/components/ui/field/FieldContent.vue +18 -0
- package/dist/runtime/components/ui/field/FieldContent.vue.d.ts +17 -0
- package/dist/runtime/components/ui/field/FieldDescription.d.vue.ts +17 -0
- package/dist/runtime/components/ui/field/FieldDescription.vue +20 -0
- package/dist/runtime/components/ui/field/FieldDescription.vue.d.ts +17 -0
- package/dist/runtime/components/ui/field/FieldError.d.vue.ts +20 -0
- package/dist/runtime/components/ui/field/FieldError.vue +51 -0
- package/dist/runtime/components/ui/field/FieldError.vue.d.ts +20 -0
- package/dist/runtime/components/ui/field/FieldGroup.d.vue.ts +17 -0
- package/dist/runtime/components/ui/field/FieldGroup.vue +18 -0
- package/dist/runtime/components/ui/field/FieldGroup.vue.d.ts +17 -0
- package/dist/runtime/components/ui/field/FieldLabel.d.vue.ts +19 -0
- package/dist/runtime/components/ui/field/FieldLabel.vue +29 -0
- package/dist/runtime/components/ui/field/FieldLabel.vue.d.ts +19 -0
- package/dist/runtime/components/ui/field/FieldLegend.d.vue.ts +18 -0
- package/dist/runtime/components/ui/field/FieldLegend.vue +22 -0
- package/dist/runtime/components/ui/field/FieldLegend.vue.d.ts +18 -0
- package/dist/runtime/components/ui/field/FieldSeparator.d.vue.ts +17 -0
- package/dist/runtime/components/ui/field/FieldSeparator.vue +27 -0
- package/dist/runtime/components/ui/field/FieldSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/field/FieldSet.d.vue.ts +17 -0
- package/dist/runtime/components/ui/field/FieldSet.vue +15 -0
- package/dist/runtime/components/ui/field/FieldSet.vue.d.ts +17 -0
- package/dist/runtime/components/ui/field/FieldTitle.d.vue.ts +17 -0
- package/dist/runtime/components/ui/field/FieldTitle.vue +18 -0
- package/dist/runtime/components/ui/field/FieldTitle.vue.d.ts +17 -0
- package/dist/runtime/components/ui/field/index.d.ts +15 -0
- package/dist/runtime/components/ui/field/index.js +61 -0
- package/dist/runtime/components/ui/icon-picker/IconPicker.d.vue.ts +12 -0
- package/dist/runtime/components/ui/icon-picker/IconPicker.vue +48 -0
- package/dist/runtime/components/ui/icon-picker/IconPicker.vue.d.ts +12 -0
- package/dist/runtime/components/ui/icon-picker/index.d.ts +1 -0
- package/dist/runtime/components/ui/icon-picker/index.js +1 -0
- package/dist/runtime/components/ui/input/Input.d.vue.ts +15 -0
- package/dist/runtime/components/ui/input/Input.vue +31 -0
- package/dist/runtime/components/ui/input/Input.vue.d.ts +15 -0
- package/dist/runtime/components/ui/input/index.d.ts +1 -0
- package/dist/runtime/components/ui/input/index.js +1 -0
- package/dist/runtime/components/ui/input-group/InputGroup.d.vue.ts +17 -0
- package/dist/runtime/components/ui/input-group/InputGroup.vue +34 -0
- package/dist/runtime/components/ui/input-group/InputGroup.vue.d.ts +17 -0
- package/dist/runtime/components/ui/input-group/InputGroupAddon.d.vue.ts +21 -0
- package/dist/runtime/components/ui/input-group/InputGroupAddon.vue +33 -0
- package/dist/runtime/components/ui/input-group/InputGroupAddon.vue.d.ts +21 -0
- package/dist/runtime/components/ui/input-group/InputGroupButton.d.vue.ts +24 -0
- package/dist/runtime/components/ui/input-group/InputGroupButton.vue +20 -0
- package/dist/runtime/components/ui/input-group/InputGroupButton.vue.d.ts +24 -0
- package/dist/runtime/components/ui/input-group/InputGroupCombobox.d.vue.ts +28 -0
- package/dist/runtime/components/ui/input-group/InputGroupCombobox.vue +90 -0
- package/dist/runtime/components/ui/input-group/InputGroupCombobox.vue.d.ts +28 -0
- package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.d.vue.ts +10 -0
- package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.vue +27 -0
- package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.vue.d.ts +10 -0
- package/dist/runtime/components/ui/input-group/InputGroupInput.d.vue.ts +8 -0
- package/dist/runtime/components/ui/input-group/InputGroupInput.vue +20 -0
- package/dist/runtime/components/ui/input-group/InputGroupInput.vue.d.ts +8 -0
- package/dist/runtime/components/ui/input-group/InputGroupNumberField.d.vue.ts +18 -0
- package/dist/runtime/components/ui/input-group/InputGroupNumberField.vue +57 -0
- package/dist/runtime/components/ui/input-group/InputGroupNumberField.vue.d.ts +18 -0
- package/dist/runtime/components/ui/input-group/InputGroupText.d.vue.ts +17 -0
- package/dist/runtime/components/ui/input-group/InputGroupText.vue +17 -0
- package/dist/runtime/components/ui/input-group/InputGroupText.vue.d.ts +17 -0
- package/dist/runtime/components/ui/input-group/InputGroupTextarea.d.vue.ts +7 -0
- package/dist/runtime/components/ui/input-group/InputGroupTextarea.vue +17 -0
- package/dist/runtime/components/ui/input-group/InputGroupTextarea.vue.d.ts +7 -0
- package/dist/runtime/components/ui/input-group/index.d.ts +19 -0
- package/dist/runtime/components/ui/input-group/index.js +43 -0
- package/dist/runtime/components/ui/label/Label.d.vue.ts +18 -0
- package/dist/runtime/components/ui/label/Label.vue +50 -0
- package/dist/runtime/components/ui/label/Label.vue.d.ts +18 -0
- package/dist/runtime/components/ui/label/index.d.ts +1 -0
- package/dist/runtime/components/ui/label/index.js +1 -0
- package/dist/runtime/components/ui/locale/Locale.d.vue.ts +28 -0
- package/dist/runtime/components/ui/locale/Locale.vue +350 -0
- package/dist/runtime/components/ui/locale/Locale.vue.d.ts +28 -0
- package/dist/runtime/components/ui/locale/index.d.ts +1 -0
- package/dist/runtime/components/ui/locale/index.js +1 -0
- package/dist/runtime/components/ui/markdown/Markdown.d.vue.ts +26 -0
- package/dist/runtime/components/ui/markdown/Markdown.vue +109 -0
- package/dist/runtime/components/ui/markdown/Markdown.vue.d.ts +26 -0
- package/dist/runtime/components/ui/markdown/index.d.ts +1 -0
- package/dist/runtime/components/ui/markdown/index.js +1 -0
- package/dist/runtime/components/ui/native-select/NativeSelect.d.vue.ts +23 -0
- package/dist/runtime/components/ui/native-select/NativeSelect.vue +42 -0
- package/dist/runtime/components/ui/native-select/NativeSelect.vue.d.ts +23 -0
- package/dist/runtime/components/ui/native-select/index.d.ts +1 -0
- package/dist/runtime/components/ui/native-select/index.js +1 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.d.vue.ts +27 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue +41 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue.d.ts +27 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.d.vue.ts +28 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.vue +32 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.vue.d.ts +28 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.d.vue.ts +8 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue +23 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue.d.ts +8 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.d.vue.ts +18 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.vue +22 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.vue.d.ts +18 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.d.vue.ts +26 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +27 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue.d.ts +26 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.d.vue.ts +18 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.vue +27 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.vue.d.ts +18 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.d.vue.ts +18 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue +33 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue.d.ts +18 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.d.vue.ts +8 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue +32 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue.d.ts +8 -0
- package/dist/runtime/components/ui/navigation-menu/index.d.ts +9 -0
- package/dist/runtime/components/ui/navigation-menu/index.js +12 -0
- package/dist/runtime/components/ui/number-field/NumberField.d.vue.ts +26 -0
- package/dist/runtime/components/ui/number-field/NumberField.vue +39 -0
- package/dist/runtime/components/ui/number-field/NumberField.vue.d.ts +26 -0
- package/dist/runtime/components/ui/number-field/NumberFieldContent.d.vue.ts +17 -0
- package/dist/runtime/components/ui/number-field/NumberFieldContent.vue +12 -0
- package/dist/runtime/components/ui/number-field/NumberFieldContent.vue.d.ts +17 -0
- package/dist/runtime/components/ui/number-field/NumberFieldDecrement.d.vue.ts +18 -0
- package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue +29 -0
- package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue.d.ts +18 -0
- package/dist/runtime/components/ui/number-field/NumberFieldIncrement.d.vue.ts +18 -0
- package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue +29 -0
- package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue.d.ts +18 -0
- package/dist/runtime/components/ui/number-field/NumberFieldInput.d.vue.ts +7 -0
- package/dist/runtime/components/ui/number-field/NumberFieldInput.vue +14 -0
- package/dist/runtime/components/ui/number-field/NumberFieldInput.vue.d.ts +7 -0
- package/dist/runtime/components/ui/number-field/index.d.ts +5 -0
- package/dist/runtime/components/ui/number-field/index.js +5 -0
- package/dist/runtime/components/ui/popover/Popover.d.vue.ts +21 -0
- package/dist/runtime/components/ui/popover/Popover.vue +21 -0
- package/dist/runtime/components/ui/popover/Popover.vue.d.ts +21 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.d.vue.ts +14 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue +17 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue.d.ts +14 -0
- package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +36 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue +58 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +36 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue +16 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/popover/index.d.ts +4 -0
- package/dist/runtime/components/ui/popover/index.js +4 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendar.d.vue.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendar.vue +100 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendar.vue.d.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCell.d.vue.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCell.vue +49 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCell.vue.d.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.d.vue.ts +20 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue +45 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +20 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGrid.d.vue.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGrid.vue +22 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGrid.vue.d.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridBody.d.vue.ts +14 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridBody.vue +16 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridBody.vue.d.ts +14 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridHead.d.vue.ts +14 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridHead.vue +16 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridHead.vue.d.ts +14 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridRow.d.vue.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridRow.vue +22 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridRow.vue.d.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeadCell.d.vue.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeadCell.vue +22 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeadCell.vue.d.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeader.d.vue.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeader.vue +22 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeader.vue.d.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeading.d.vue.ts +19 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeading.vue +26 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeading.vue.d.ts +19 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.d.vue.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue +32 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue.d.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.d.vue.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue +32 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue.d.ts +18 -0
- package/dist/runtime/components/ui/range-calendar/index.d.ts +12 -0
- package/dist/runtime/components/ui/range-calendar/index.js +12 -0
- package/dist/runtime/components/ui/scroll-area/ScrollArea.d.vue.ts +18 -0
- package/dist/runtime/components/ui/scroll-area/ScrollArea.vue +37 -0
- package/dist/runtime/components/ui/scroll-area/ScrollArea.vue.d.ts +18 -0
- package/dist/runtime/components/ui/scroll-area/ScrollBar.d.vue.ts +10 -0
- package/dist/runtime/components/ui/scroll-area/ScrollBar.vue +32 -0
- package/dist/runtime/components/ui/scroll-area/ScrollBar.vue.d.ts +10 -0
- package/dist/runtime/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/runtime/components/ui/scroll-area/index.js +2 -0
- package/dist/runtime/components/ui/select/Select.d.vue.ts +24 -0
- package/dist/runtime/components/ui/select/Select.vue +29 -0
- package/dist/runtime/components/ui/select/Select.vue.d.ts +24 -0
- package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +28 -0
- package/dist/runtime/components/ui/select/SelectContent.vue +68 -0
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +28 -0
- package/dist/runtime/components/ui/select/SelectGroup.d.vue.ts +14 -0
- package/dist/runtime/components/ui/select/SelectGroup.vue +17 -0
- package/dist/runtime/components/ui/select/SelectGroup.vue.d.ts +14 -0
- package/dist/runtime/components/ui/select/SelectItem.d.vue.ts +20 -0
- package/dist/runtime/components/ui/select/SelectItem.vue +48 -0
- package/dist/runtime/components/ui/select/SelectItem.vue.d.ts +20 -0
- package/dist/runtime/components/ui/select/SelectItemText.d.vue.ts +14 -0
- package/dist/runtime/components/ui/select/SelectItemText.vue +17 -0
- package/dist/runtime/components/ui/select/SelectItemText.vue.d.ts +14 -0
- package/dist/runtime/components/ui/select/SelectLabel.d.vue.ts +18 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue +20 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue.d.ts +18 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.d.vue.ts +18 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue +29 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.d.vue.ts +18 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +29 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/runtime/components/ui/select/SelectSeparator.d.vue.ts +8 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue +20 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue.d.ts +8 -0
- package/dist/runtime/components/ui/select/SelectTrigger.d.vue.ts +21 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue +38 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue.d.ts +21 -0
- package/dist/runtime/components/ui/select/SelectValue.d.vue.ts +14 -0
- package/dist/runtime/components/ui/select/SelectValue.vue +18 -0
- package/dist/runtime/components/ui/select/SelectValue.vue.d.ts +14 -0
- package/dist/runtime/components/ui/select/index.d.ts +11 -0
- package/dist/runtime/components/ui/select/index.js +11 -0
- package/dist/runtime/components/ui/separator/Separator.d.vue.ts +11 -0
- package/dist/runtime/components/ui/separator/Separator.vue +27 -0
- package/dist/runtime/components/ui/separator/Separator.vue.d.ts +11 -0
- package/dist/runtime/components/ui/separator/index.d.ts +1 -0
- package/dist/runtime/components/ui/separator/index.js +1 -0
- package/dist/runtime/components/ui/sheet/Sheet.d.vue.ts +21 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue +21 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue.d.ts +21 -0
- package/dist/runtime/components/ui/sheet/SheetClose.d.vue.ts +14 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue +16 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue.d.ts +14 -0
- package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +35 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue +53 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +35 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue +21 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue +17 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue +15 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue +22 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue +21 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue +16 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/sheet/index.d.ts +8 -0
- package/dist/runtime/components/ui/sheet/index.js +8 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.d.vue.ts +22 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue +93 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue.d.ts +22 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue +25 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue +19 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.d.vue.ts +21 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue +31 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue.d.ts +21 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue +24 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.d.vue.ts +24 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue +50 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue.d.ts +24 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.d.vue.ts +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue +28 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.d.vue.ts +8 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue +32 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +8 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.d.vue.ts +23 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue +32 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +23 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.d.vue.ts +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue +61 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue.d.ts +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.d.vue.ts +7 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue +23 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue.d.ts +7 -0
- package/dist/runtime/components/ui/sidebar/index.d.ts +37 -0
- package/dist/runtime/components/ui/sidebar/index.js +45 -0
- package/dist/runtime/components/ui/sidebar/utils.d.ts +56 -0
- package/dist/runtime/components/ui/sidebar/utils.js +8 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.d.vue.ts +7 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.vue +14 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.vue.d.ts +7 -0
- package/dist/runtime/components/ui/skeleton/index.d.ts +1 -0
- package/dist/runtime/components/ui/skeleton/index.js +1 -0
- package/dist/runtime/components/ui/switch/Switch.d.vue.ts +29 -0
- package/dist/runtime/components/ui/switch/Switch.vue +58 -0
- package/dist/runtime/components/ui/switch/Switch.vue.d.ts +29 -0
- package/dist/runtime/components/ui/switch/index.d.ts +1 -0
- package/dist/runtime/components/ui/switch/index.js +1 -0
- package/dist/runtime/components/ui/tabs/Tabs.d.vue.ts +24 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue +31 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue.d.ts +24 -0
- package/dist/runtime/components/ui/tabs/TabsContent.d.vue.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue +23 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsList.d.vue.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue +86 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue.d.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.d.vue.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue +32 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +18 -0
- package/dist/runtime/components/ui/tabs/index.d.ts +4 -0
- package/dist/runtime/components/ui/tabs/index.js +4 -0
- package/dist/runtime/components/ui/textarea/Textarea.d.vue.ts +14 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue +29 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue.d.ts +14 -0
- package/dist/runtime/components/ui/textarea/index.d.ts +1 -0
- package/dist/runtime/components/ui/textarea/index.js +1 -0
- package/dist/runtime/components/ui/toggle/Toggle.d.vue.ts +34 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue +33 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +34 -0
- package/dist/runtime/components/ui/toggle/index.d.ts +7 -0
- package/dist/runtime/components/ui/toggle/index.js +23 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.d.vue.ts +28 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue +41 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue.d.ts +28 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.d.vue.ts +21 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue +33 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +21 -0
- package/dist/runtime/components/ui/toggle-group/index.d.ts +8 -0
- package/dist/runtime/components/ui/toggle-group/index.js +3 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.d.vue.ts +20 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.vue +27 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.vue.d.ts +20 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.d.vue.ts +27 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue +59 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue.d.ts +27 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue +17 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/tooltip/index.d.ts +3 -0
- package/dist/runtime/components/ui/tooltip/index.js +3 -0
- package/dist/runtime/composables/useCel.d.ts +16 -0
- package/dist/runtime/composables/useCel.js +8 -0
- package/dist/runtime/composables/useDragging.d.ts +25 -0
- package/dist/runtime/composables/useDragging.js +76 -0
- package/dist/runtime/composables/useInfinitePlane.d.ts +30 -0
- package/dist/runtime/composables/useInfinitePlane.js +24 -0
- package/dist/runtime/composables/useOverlay.d.ts +110 -0
- package/dist/runtime/composables/useOverlay.js +268 -0
- package/dist/runtime/composables/useTranslateLocale.d.ts +11 -0
- package/dist/runtime/composables/useTranslateLocale.js +66 -0
- package/dist/runtime/composables/useTreeDnd.d.ts +52 -0
- package/dist/runtime/composables/useTreeDnd.js +211 -0
- package/dist/runtime/middleware/token.d.ts +2 -0
- package/dist/runtime/middleware/token.js +20 -0
- package/dist/runtime/plugins/ai/cel-prompt.d.ts +11 -0
- package/dist/runtime/plugins/ai/cel-prompt.js +27 -0
- package/dist/runtime/plugins/ai/gate.d.ts +1 -0
- package/dist/runtime/plugins/ai/gate.js +8 -0
- package/dist/runtime/plugins/ai/index.d.ts +48 -0
- package/dist/runtime/plugins/ai/index.js +522 -0
- package/dist/runtime/plugins/ai/settings-state.d.ts +1 -0
- package/dist/runtime/plugins/ai/settings-state.js +2 -0
- package/dist/runtime/plugins/ai/store.d.ts +17 -0
- package/dist/runtime/plugins/ai/store.js +40 -0
- package/dist/runtime/plugins/cel/context.d.ts +10 -0
- package/dist/runtime/plugins/cel/context.js +17 -0
- package/dist/runtime/plugins/cel/http.d.ts +8 -0
- package/dist/runtime/plugins/cel/http.js +49 -0
- package/dist/runtime/plugins/cel/index.d.ts +9 -0
- package/dist/runtime/plugins/cel/index.js +52 -0
- package/dist/runtime/plugins/http/builder.d.ts +14 -0
- package/dist/runtime/plugins/http/builder.js +109 -0
- package/dist/runtime/plugins/http/index.d.ts +19 -0
- package/dist/runtime/plugins/http/index.js +35 -0
- package/dist/runtime/plugins/i18n/index.d.ts +2 -0
- package/dist/runtime/plugins/i18n/index.js +14 -0
- package/dist/runtime/plugins/toast/index.d.ts +108 -0
- package/dist/runtime/plugins/toast/index.js +10 -0
- package/dist/runtime/share/define-registry.d.ts +57 -0
- package/dist/runtime/share/define-registry.js +63 -0
- package/dist/runtime/share/expression.d.ts +15 -0
- package/dist/runtime/share/expression.js +132 -0
- package/dist/runtime/share/layout.d.ts +122 -0
- package/dist/runtime/share/layout.js +219 -0
- package/dist/runtime/share/locale.d.ts +11 -0
- package/dist/runtime/share/locale.js +37 -0
- package/dist/runtime/share/markdown.d.ts +9 -0
- package/dist/runtime/share/markdown.js +6 -0
- package/dist/runtime/share/slot-renderer.d.vue.ts +50 -0
- package/dist/runtime/share/slot-renderer.vue +116 -0
- package/dist/runtime/share/slot-renderer.vue.d.ts +50 -0
- package/dist/runtime/share/use-active-tab-id.d.ts +13 -0
- package/dist/runtime/share/use-active-tab-id.js +34 -0
- package/dist/runtime/shims.d.ts +4 -0
- package/dist/runtime/style.css +1 -0
- package/dist/runtime/types.d.ts +23 -0
- package/dist/runtime/utils/cn.d.ts +2 -0
- package/dist/runtime/utils/cn.js +3 -0
- package/dist/runtime/utils/config-clipboard.d.ts +4 -0
- package/dist/runtime/utils/config-clipboard.js +12 -0
- package/dist/runtime/utils/markdown-tooltip.d.ts +4 -0
- package/dist/runtime/utils/markdown-tooltip.js +55 -0
- package/dist/runtime/utils/markdown.d.ts +5 -0
- package/dist/runtime/utils/markdown.js +6 -0
- package/dist/runtime/vendor/cel-js/CLAUDE.md +74 -0
- package/dist/runtime/vendor/cel-js/LICENSE +21 -0
- package/dist/runtime/vendor/cel-js/PROMPT.md +311 -0
- package/dist/runtime/vendor/cel-js/VENDORED +3 -0
- package/dist/runtime/vendor/cel-js/__tests__/helpers.d.ts +8 -0
- package/dist/runtime/vendor/cel-js/__tests__/helpers.js +18 -0
- package/dist/runtime/vendor/cel-js/lib/decimal.d.ts +31 -0
- package/dist/runtime/vendor/cel-js/lib/decimal.js +208 -0
- package/dist/runtime/vendor/cel-js/lib/errors.d.ts +50 -0
- package/dist/runtime/vendor/cel-js/lib/errors.js +112 -0
- package/dist/runtime/vendor/cel-js/lib/evaluator.d.ts +37 -0
- package/dist/runtime/vendor/cel-js/lib/evaluator.js +163 -0
- package/dist/runtime/vendor/cel-js/lib/functions.d.ts +2 -0
- package/dist/runtime/vendor/cel-js/lib/functions.js +340 -0
- package/dist/runtime/vendor/cel-js/lib/globals.d.ts +27 -0
- package/dist/runtime/vendor/cel-js/lib/globals.js +31 -0
- package/dist/runtime/vendor/cel-js/lib/http-builtins.d.ts +16 -0
- package/dist/runtime/vendor/cel-js/lib/http-builtins.js +15 -0
- package/dist/runtime/vendor/cel-js/lib/index.d.ts +3 -0
- package/dist/runtime/vendor/cel-js/lib/index.js +3 -0
- package/dist/runtime/vendor/cel-js/lib/macros.d.ts +2 -0
- package/dist/runtime/vendor/cel-js/lib/macros.js +268 -0
- package/dist/runtime/vendor/cel-js/lib/operators.d.ts +29 -0
- package/dist/runtime/vendor/cel-js/lib/operators.js +673 -0
- package/dist/runtime/vendor/cel-js/lib/optional.d.ts +5 -0
- package/dist/runtime/vendor/cel-js/lib/optional.js +111 -0
- package/dist/runtime/vendor/cel-js/lib/options.d.ts +15 -0
- package/dist/runtime/vendor/cel-js/lib/options.js +37 -0
- package/dist/runtime/vendor/cel-js/lib/overloads.d.ts +2 -0
- package/dist/runtime/vendor/cel-js/lib/overloads.js +170 -0
- package/dist/runtime/vendor/cel-js/lib/parser.d.ts +83 -0
- package/dist/runtime/vendor/cel-js/lib/parser.js +787 -0
- package/dist/runtime/vendor/cel-js/lib/registry.d.ts +209 -0
- package/dist/runtime/vendor/cel-js/lib/registry.js +1326 -0
- package/dist/runtime/vendor/cel-js/lib/serialize.d.ts +3 -0
- package/dist/runtime/vendor/cel-js/lib/serialize.js +168 -0
- package/dist/runtime/vendor/cel-js/lib/type-checker.d.ts +15 -0
- package/dist/runtime/vendor/cel-js/lib/type-checker.js +56 -0
- package/dist/runtime/vendor/cel-js/lib/types.d.ts +192 -0
- package/dist/runtime/vendor/cel-js/lib/types.js +0 -0
- package/dist/shared/config.DW2OtAXe.mjs +86529 -0
- package/dist/types.d.mts +3 -0
- package/package.json +105 -0
|
@@ -0,0 +1,1581 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, defineComponent, inject, onBeforeUnmount, provide, ref, watch } from "vue";
|
|
3
|
+
import { provideCELContext } from "../../plugins/cel/context";
|
|
4
|
+
import { BREADCRUMB_EXTENSION_KEY } from "../config/breadcrumb-extension";
|
|
5
|
+
import { TABLE_COLUMN_LAYOUT_KEY } from "./column-layout";
|
|
6
|
+
import { Icon } from "@iconify/vue";
|
|
7
|
+
import { ParseResult, Schema } from "effect";
|
|
8
|
+
import { TableConfig, Pagination, ColumnGroup, DataSource } from "./schema";
|
|
9
|
+
import { COLUMNS, findColumn as findColumnEntry } from "./utils/resolve";
|
|
10
|
+
import {
|
|
11
|
+
useTreeDnd
|
|
12
|
+
} from "../../composables/useTreeDnd";
|
|
13
|
+
import { getStructFieldDescription, getStructFieldTitle } from "./utils/schema-meta";
|
|
14
|
+
import { Markdown } from "../ui/markdown";
|
|
15
|
+
import { Badge } from "../ui/badge";
|
|
16
|
+
import { ScrollArea } from "../ui/scroll-area";
|
|
17
|
+
import { Input } from "../ui/input";
|
|
18
|
+
import { Textarea } from "../ui/textarea";
|
|
19
|
+
import { Separator } from "../ui/separator";
|
|
20
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip";
|
|
21
|
+
import { ExpressionEditor } from "../ui/expression-editor";
|
|
22
|
+
import { Field, FieldLabel } from "../ui/field";
|
|
23
|
+
import { Locale } from "../ui/locale";
|
|
24
|
+
import { CommandItem, CommandGroup } from "../ui/command";
|
|
25
|
+
import {
|
|
26
|
+
InputGroup,
|
|
27
|
+
InputGroupAddon,
|
|
28
|
+
InputGroupCombobox,
|
|
29
|
+
InputGroupNumberField
|
|
30
|
+
} from "../ui/input-group";
|
|
31
|
+
import ActionsConfigEditor from "../actions/config.vue";
|
|
32
|
+
import ShwfedFormConfig from "../form/config.vue";
|
|
33
|
+
import { defaultFormConfig } from "../form/schema";
|
|
34
|
+
import TableAiColumnsButton from "./ai/columns-button.vue";
|
|
35
|
+
import TableAiDataSourceButton from "./ai/data-source-button.vue";
|
|
36
|
+
import { Environment } from "../../vendor/cel-js/lib/index";
|
|
37
|
+
defineOptions({ name: "ShwfedTableConfig" });
|
|
38
|
+
const CellStyleCELContext = defineComponent({
|
|
39
|
+
name: "CellStyleCELContext",
|
|
40
|
+
setup(_, { slots }) {
|
|
41
|
+
provideCELContext({
|
|
42
|
+
row: {
|
|
43
|
+
type: "dyn",
|
|
44
|
+
label: "\u5F53\u524D\u884C",
|
|
45
|
+
description: "\u5F53\u524D\u6E32\u67D3\u7684\u6574\u884C\u6570\u636E\uFF0C\u7C7B\u578B\u5728\u914D\u7F6E\u65F6\u672A\u77E5\uFF08`dyn`\uFF09\uFF0C\u5177\u4F53\u5B57\u6BB5\u53D6\u51B3\u4E8E\u63A5\u5165\u6570\u636E\u6E90\u3002",
|
|
46
|
+
value: void 0
|
|
47
|
+
},
|
|
48
|
+
index: {
|
|
49
|
+
type: "number",
|
|
50
|
+
label: "\u884C\u5E8F\u53F7",
|
|
51
|
+
description: "\u5F53\u524D\u884C\u5728\u6240\u6709\u6570\u636E\u4E2D\u7684\u5E8F\u53F7\uFF0C\u4ECE `0` \u5F00\u59CB\u3002",
|
|
52
|
+
value: 0
|
|
53
|
+
},
|
|
54
|
+
id: {
|
|
55
|
+
type: "string",
|
|
56
|
+
label: "\u5217 ID",
|
|
57
|
+
description: "\u5F53\u524D\u5355\u5143\u683C\u6240\u5728\u5217\u7684 `id`\u3002",
|
|
58
|
+
value: ""
|
|
59
|
+
},
|
|
60
|
+
selected: {
|
|
61
|
+
type: "bool",
|
|
62
|
+
label: "\u662F\u5426\u9009\u4E2D",
|
|
63
|
+
description: "\u5F53\u524D\u884C\u662F\u5426\u88AB\u52FE\u9009\u3002",
|
|
64
|
+
value: false
|
|
65
|
+
},
|
|
66
|
+
pinned: {
|
|
67
|
+
type: "string",
|
|
68
|
+
label: "\u5217\u56FA\u5B9A\u65B9\u5411",
|
|
69
|
+
description: "\u5217\u7684\u56FA\u5B9A\u65B9\u5411\uFF1A`left`\u3001`right`\uFF0C\u672A\u56FA\u5B9A\u65F6\u4E3A `false`\u3002",
|
|
70
|
+
value: false
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
return () => slots.default?.();
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
const RequestCELContext = defineComponent({
|
|
77
|
+
name: "RequestCELContext",
|
|
78
|
+
setup(_, { slots }) {
|
|
79
|
+
provideCELContext({
|
|
80
|
+
pageIndex: {
|
|
81
|
+
type: "number",
|
|
82
|
+
label: "\u5F53\u524D\u9875\u7801",
|
|
83
|
+
description: "\u4ECE `0` \u5F00\u59CB\uFF1B\u672A\u542F\u7528\u5206\u9875\u65F6\u4E3A `0`\u3002",
|
|
84
|
+
value: 0
|
|
85
|
+
},
|
|
86
|
+
pageSize: {
|
|
87
|
+
type: "number",
|
|
88
|
+
label: "\u6BCF\u9875\u884C\u6570",
|
|
89
|
+
description: "\u5F53\u524D\u6BCF\u9875\u884C\u6570\uFF1B\u672A\u542F\u7528\u5206\u9875\u65F6\u4E3A `0`\u3002",
|
|
90
|
+
value: 0
|
|
91
|
+
},
|
|
92
|
+
query: {
|
|
93
|
+
type: "dyn",
|
|
94
|
+
label: "\u641C\u7D22\u6761\u4EF6",
|
|
95
|
+
description: "\u641C\u7D22\u6761\u4EF6\u5F53\u524D\u72B6\u6001\uFF1B\u672A\u914D\u7F6E\u65F6\u4E3A\u7A7A\u5BF9\u8C61\u3002",
|
|
96
|
+
value: {}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
return () => slots.default?.();
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
const JsonCELContext = defineComponent({
|
|
103
|
+
name: "JsonCELContext",
|
|
104
|
+
setup(_, { slots }) {
|
|
105
|
+
provideCELContext({
|
|
106
|
+
json: {
|
|
107
|
+
type: "optional<dyn>",
|
|
108
|
+
label: "HTTP \u54CD\u5E94\u4F53",
|
|
109
|
+
description: "\u5DF2\u89E3\u6790\u7684 JSON \u54CD\u5E94\uFF1B\u672A\u914D\u7F6E `request` \u65F6\u4E3A `none`\u3002",
|
|
110
|
+
value: void 0
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
return () => slots.default?.();
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
const TableActionsCELContext = defineComponent({
|
|
117
|
+
name: "TableActionsCELContext",
|
|
118
|
+
setup(_, { slots }) {
|
|
119
|
+
provideCELContext({
|
|
120
|
+
selected: {
|
|
121
|
+
type: "list<dyn>",
|
|
122
|
+
label: "\u5DF2\u9009\u884C",
|
|
123
|
+
description: "\u5F53\u524D\u5DF2\u52FE\u9009\u7684\u6240\u6709\u884C\uFF08`row` \u7684\u6570\u7EC4\uFF09\u3002",
|
|
124
|
+
value: []
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
return () => slots.default?.();
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
const config = defineModel({ type: Object, ...{ required: true } });
|
|
131
|
+
const props = defineProps({
|
|
132
|
+
configure: { type: Function, required: false }
|
|
133
|
+
});
|
|
134
|
+
const configure = props.configure ?? (() => {
|
|
135
|
+
});
|
|
136
|
+
function configureTableActions(env) {
|
|
137
|
+
configure(env);
|
|
138
|
+
env.registerVariable("selected", "list<dyn>", {
|
|
139
|
+
description: "\u5F53\u524D\u5DF2\u52FE\u9009\u7684\u6240\u6709\u884C\uFF08`row` \u7684\u6570\u7EC4\uFF09"
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function configureTableQuery(env) {
|
|
143
|
+
configure(env);
|
|
144
|
+
}
|
|
145
|
+
const tableConfigSchema = TableConfig(configure);
|
|
146
|
+
const dataSourceSchema = DataSource(configure);
|
|
147
|
+
const advertisedHostContext = (() => {
|
|
148
|
+
const probe = new Environment({ unlistedVariablesAreDyn: false });
|
|
149
|
+
const baseline = new Set(probe.getDefinitions().variables.map((v) => v.name));
|
|
150
|
+
configure(probe);
|
|
151
|
+
const out = {};
|
|
152
|
+
for (const v of probe.getDefinitions().variables) {
|
|
153
|
+
if (baseline.has(v.name)) continue;
|
|
154
|
+
out[v.name] = {
|
|
155
|
+
type: v.type,
|
|
156
|
+
label: v.name,
|
|
157
|
+
description: v.description ?? void 0,
|
|
158
|
+
value: void 0
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
return out;
|
|
162
|
+
})();
|
|
163
|
+
provideCELContext(advertisedHostContext);
|
|
164
|
+
const generalFieldTitle = (f) => getStructFieldTitle(tableConfigSchema, f) ?? f;
|
|
165
|
+
const generalFieldDescription = (f) => getStructFieldDescription(tableConfigSchema, f);
|
|
166
|
+
const paginationFieldTitle = (f) => getStructFieldTitle(Pagination, f) ?? f;
|
|
167
|
+
const paginationFieldDescription = (f) => getStructFieldDescription(Pagination, f);
|
|
168
|
+
const groupFieldTitle = (f) => getStructFieldTitle(ColumnGroup, f) ?? f;
|
|
169
|
+
const groupFieldDescription = (f) => getStructFieldDescription(ColumnGroup, f);
|
|
170
|
+
const dataSourceFieldTitle = (f) => getStructFieldTitle(dataSourceSchema, f) ?? f;
|
|
171
|
+
const dataSourceFieldDescription = (f) => getStructFieldDescription(dataSourceSchema, f);
|
|
172
|
+
const GROUP_DRAG_KIND = "group";
|
|
173
|
+
const COLUMN_DRAG_KIND = "column";
|
|
174
|
+
const editingColumns = computed({
|
|
175
|
+
get: () => config.value.columns ?? [],
|
|
176
|
+
set: (next) => {
|
|
177
|
+
config.value = { ...config.value, columns: next };
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
const editingGroups = computed({
|
|
181
|
+
get: () => config.value.groups ?? [],
|
|
182
|
+
set: (next) => {
|
|
183
|
+
config.value = { ...config.value, groups: next };
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
function snapshot() {
|
|
187
|
+
return {
|
|
188
|
+
columns: [...config.value.columns ?? []],
|
|
189
|
+
groups: [...config.value.groups ?? []],
|
|
190
|
+
initialState: config.value.initialState ? { ...config.value.initialState } : void 0
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function commit(w) {
|
|
194
|
+
const next = {
|
|
195
|
+
...config.value,
|
|
196
|
+
columns: w.columns,
|
|
197
|
+
groups: w.groups
|
|
198
|
+
};
|
|
199
|
+
if (w.initialState && Object.keys(w.initialState).length > 0) {
|
|
200
|
+
next.initialState = w.initialState;
|
|
201
|
+
} else {
|
|
202
|
+
delete next.initialState;
|
|
203
|
+
}
|
|
204
|
+
config.value = next;
|
|
205
|
+
}
|
|
206
|
+
function normalizeForEmit(general) {
|
|
207
|
+
const out = { ...general };
|
|
208
|
+
const ds = out.dataSource;
|
|
209
|
+
const nextDs = { ...ds ?? {} };
|
|
210
|
+
if (typeof nextDs.request === "string" && nextDs.request.trim() === "") delete nextDs.request;
|
|
211
|
+
if (typeof nextDs.total === "string" && nextDs.total.trim() === "") delete nextDs.total;
|
|
212
|
+
out.dataSource = nextDs;
|
|
213
|
+
const pagination = out.pagination;
|
|
214
|
+
const p = { ...pagination ?? {} };
|
|
215
|
+
const hasPageSize = typeof p.pageSize === "number" && Number.isFinite(p.pageSize) && p.pageSize > 0;
|
|
216
|
+
const hasPageSizes = Array.isArray(p.pageSizes) && p.pageSizes.length > 0;
|
|
217
|
+
const hasTotal = nextDs.total !== void 0;
|
|
218
|
+
if (!hasPageSize && !hasPageSizes && !hasTotal) {
|
|
219
|
+
delete out.pagination;
|
|
220
|
+
} else {
|
|
221
|
+
out.pagination = p;
|
|
222
|
+
}
|
|
223
|
+
const query = out.query;
|
|
224
|
+
if (query && (!Array.isArray(query.fields) || query.fields.length === 0)) {
|
|
225
|
+
delete out.query;
|
|
226
|
+
}
|
|
227
|
+
return out;
|
|
228
|
+
}
|
|
229
|
+
function readGeneral() {
|
|
230
|
+
const { columns: _c, groups: _g, kind: _k, ...general } = config.value ?? {};
|
|
231
|
+
const cloned = JSON.parse(JSON.stringify(general));
|
|
232
|
+
if (!cloned.pagination) cloned.pagination = {};
|
|
233
|
+
if (!cloned.dataSource) cloned.dataSource = { data: "" };
|
|
234
|
+
return cloned;
|
|
235
|
+
}
|
|
236
|
+
function writeGeneralPatch(patch) {
|
|
237
|
+
const next = normalizeForEmit({ ...readGeneral(), ...patch });
|
|
238
|
+
config.value = {
|
|
239
|
+
...config.value,
|
|
240
|
+
...next
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
const editingGeneralConfig = computed(() => readGeneral());
|
|
244
|
+
const selected = ref({ kind: "general" });
|
|
245
|
+
const fieldErrors = ref({});
|
|
246
|
+
watch(
|
|
247
|
+
config,
|
|
248
|
+
(value) => {
|
|
249
|
+
fieldErrors.value = {};
|
|
250
|
+
const result = Schema.decodeUnknownEither(tableConfigSchema)(value);
|
|
251
|
+
if (result._tag === "Left") {
|
|
252
|
+
const issues = ParseResult.ArrayFormatter.formatErrorSync(result.left);
|
|
253
|
+
for (const issue of issues) {
|
|
254
|
+
const pathKey = issue.path.map(String).join(".");
|
|
255
|
+
if (!fieldErrors.value[pathKey]) {
|
|
256
|
+
fieldErrors.value[pathKey] = issue.message;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{ immediate: true, deep: true }
|
|
262
|
+
);
|
|
263
|
+
const selectedGeneral = computed(() => selected.value.kind === "general");
|
|
264
|
+
const selectedActions = computed(() => selected.value.kind === "actions");
|
|
265
|
+
const selectedQuery = computed(() => selected.value.kind === "query");
|
|
266
|
+
const columnFullPane = ref(false);
|
|
267
|
+
provide(TABLE_COLUMN_LAYOUT_KEY, { fullPane: columnFullPane });
|
|
268
|
+
const isDrilled = computed(
|
|
269
|
+
() => selectedActions.value || selectedQuery.value || columnFullPane.value
|
|
270
|
+
);
|
|
271
|
+
function findGroup(id) {
|
|
272
|
+
return editingGroups.value.find((g) => g.id === id) ?? null;
|
|
273
|
+
}
|
|
274
|
+
function findColumn(id) {
|
|
275
|
+
return editingColumns.value.find((c) => c.id === id) ?? null;
|
|
276
|
+
}
|
|
277
|
+
const selectedGroupRef = computed(() => {
|
|
278
|
+
if (selected.value.kind !== "group") return null;
|
|
279
|
+
return findGroup(selected.value.id);
|
|
280
|
+
});
|
|
281
|
+
const selectedColumnRef = computed(() => {
|
|
282
|
+
if (selected.value.kind !== "column") return null;
|
|
283
|
+
return findColumn(selected.value.id);
|
|
284
|
+
});
|
|
285
|
+
const selectedColumnEntry = computed(() => {
|
|
286
|
+
const c = selectedColumnRef.value;
|
|
287
|
+
if (!c) return void 0;
|
|
288
|
+
return findColumnEntry(c.type, c.compatibilityDate);
|
|
289
|
+
});
|
|
290
|
+
const pinnedLeftIds = computed(() => {
|
|
291
|
+
const ids = editingGeneralConfig.value.initialState?.columnPinning?.left;
|
|
292
|
+
return new Set(Array.isArray(ids) ? ids : []);
|
|
293
|
+
});
|
|
294
|
+
const pinnedRightIds = computed(() => {
|
|
295
|
+
const ids = editingGeneralConfig.value.initialState?.columnPinning?.right;
|
|
296
|
+
return new Set(Array.isArray(ids) ? ids : []);
|
|
297
|
+
});
|
|
298
|
+
function columnBand(id) {
|
|
299
|
+
if (pinnedLeftIds.value.has(id)) return "left";
|
|
300
|
+
if (pinnedRightIds.value.has(id)) return "right";
|
|
301
|
+
return "main";
|
|
302
|
+
}
|
|
303
|
+
function groupBand(groupId) {
|
|
304
|
+
const members = editingColumns.value.filter((c) => c.groupId === groupId);
|
|
305
|
+
if (members.length === 0) return "main";
|
|
306
|
+
const first = columnBand(members[0].id);
|
|
307
|
+
return members.every((m) => columnBand(m.id) === first) ? first : "main";
|
|
308
|
+
}
|
|
309
|
+
function sameArray(a, b) {
|
|
310
|
+
if (!b) return a.length === 0;
|
|
311
|
+
if (a.length !== b.length) return false;
|
|
312
|
+
for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false;
|
|
313
|
+
return true;
|
|
314
|
+
}
|
|
315
|
+
function pinnedLeftSetOf(w) {
|
|
316
|
+
const arr = w.initialState?.columnPinning?.left;
|
|
317
|
+
return new Set(Array.isArray(arr) ? arr : []);
|
|
318
|
+
}
|
|
319
|
+
function pinnedRightSetOf(w) {
|
|
320
|
+
const arr = w.initialState?.columnPinning?.right;
|
|
321
|
+
return new Set(Array.isArray(arr) ? arr : []);
|
|
322
|
+
}
|
|
323
|
+
function writePinArraysW(w, nextLeft, nextRight) {
|
|
324
|
+
const prevLeft = w.initialState?.columnPinning?.left;
|
|
325
|
+
const prevRight = w.initialState?.columnPinning?.right;
|
|
326
|
+
if (sameArray(nextLeft, prevLeft) && sameArray(nextRight, prevRight)) return;
|
|
327
|
+
const initialState = { ...w.initialState ?? {} };
|
|
328
|
+
const pinning = { ...initialState.columnPinning ?? {} };
|
|
329
|
+
if (nextLeft.length > 0) pinning.left = nextLeft;
|
|
330
|
+
else delete pinning.left;
|
|
331
|
+
if (nextRight.length > 0) pinning.right = nextRight;
|
|
332
|
+
else delete pinning.right;
|
|
333
|
+
if (Object.keys(pinning).length > 0) initialState.columnPinning = pinning;
|
|
334
|
+
else delete initialState.columnPinning;
|
|
335
|
+
w.initialState = Object.keys(initialState).length > 0 ? initialState : void 0;
|
|
336
|
+
}
|
|
337
|
+
function reconcilePinningW(w) {
|
|
338
|
+
const cols = w.columns;
|
|
339
|
+
const leftSet = pinnedLeftSetOf(w);
|
|
340
|
+
const rightSet = pinnedRightSetOf(w);
|
|
341
|
+
const nextLeft = [];
|
|
342
|
+
let i = 0;
|
|
343
|
+
while (i < cols.length && leftSet.has(cols[i].id)) {
|
|
344
|
+
nextLeft.push(cols[i].id);
|
|
345
|
+
i++;
|
|
346
|
+
}
|
|
347
|
+
const tail = [];
|
|
348
|
+
let j = cols.length - 1;
|
|
349
|
+
while (j >= i && rightSet.has(cols[j].id)) {
|
|
350
|
+
tail.push(cols[j].id);
|
|
351
|
+
j--;
|
|
352
|
+
}
|
|
353
|
+
writePinArraysW(w, nextLeft, tail.reverse());
|
|
354
|
+
}
|
|
355
|
+
function setColumnPinW(w, id, side) {
|
|
356
|
+
const left = [...pinnedLeftSetOf(w)].filter((x) => x !== id);
|
|
357
|
+
const right = [...pinnedRightSetOf(w)].filter((x) => x !== id);
|
|
358
|
+
if (side === "left") left.push(id);
|
|
359
|
+
if (side === "right") right.push(id);
|
|
360
|
+
writePinArraysW(w, left, right);
|
|
361
|
+
}
|
|
362
|
+
function setGroupPinW(w, groupId, side) {
|
|
363
|
+
const members = w.columns.filter((c) => c.groupId === groupId);
|
|
364
|
+
const memberIds = new Set(members.map((m) => m.id));
|
|
365
|
+
const left = [...pinnedLeftSetOf(w)].filter((x) => !memberIds.has(x));
|
|
366
|
+
const right = [...pinnedRightSetOf(w)].filter((x) => !memberIds.has(x));
|
|
367
|
+
if (side === "left") for (const m of members) left.push(m.id);
|
|
368
|
+
if (side === "right") for (const m of members) right.push(m.id);
|
|
369
|
+
writePinArraysW(w, left, right);
|
|
370
|
+
}
|
|
371
|
+
const treeEntries = computed(() => {
|
|
372
|
+
const out = [];
|
|
373
|
+
let lastGid;
|
|
374
|
+
let lastBand;
|
|
375
|
+
for (const col of editingColumns.value) {
|
|
376
|
+
const gid = col.groupId && findGroup(col.groupId) ? col.groupId : void 0;
|
|
377
|
+
const band = pinnedLeftIds.value.has(col.id) ? "left" : pinnedRightIds.value.has(col.id) ? "right" : "main";
|
|
378
|
+
if (gid && (gid !== lastGid || band !== lastBand)) {
|
|
379
|
+
out.push({ kind: "group-header", groupId: gid, band });
|
|
380
|
+
}
|
|
381
|
+
out.push({ kind: "column", columnId: col.id, groupId: gid, band });
|
|
382
|
+
lastGid = gid;
|
|
383
|
+
lastBand = band;
|
|
384
|
+
}
|
|
385
|
+
return out;
|
|
386
|
+
});
|
|
387
|
+
const renderEntries = computed(() => {
|
|
388
|
+
const left = treeEntries.value.filter((e) => e.band === "left");
|
|
389
|
+
const main = treeEntries.value.filter((e) => e.band === "main");
|
|
390
|
+
const right = treeEntries.value.filter((e) => e.band === "right");
|
|
391
|
+
const out = [];
|
|
392
|
+
if (left.length > 0) {
|
|
393
|
+
out.push({ kind: "band-caption", band: "left", text: "\u56FA\u5B9A\u5728\u5DE6\u4FA7" });
|
|
394
|
+
out.push(...left);
|
|
395
|
+
}
|
|
396
|
+
if (left.length > 0 && (main.length > 0 || right.length > 0)) {
|
|
397
|
+
out.push({ kind: "band-separator", id: "sep-left" });
|
|
398
|
+
}
|
|
399
|
+
out.push(...main);
|
|
400
|
+
if (right.length > 0) {
|
|
401
|
+
if (main.length > 0 || left.length > 0) {
|
|
402
|
+
out.push({ kind: "band-separator", id: "sep-right" });
|
|
403
|
+
}
|
|
404
|
+
out.push({ kind: "band-caption", band: "right", text: "\u56FA\u5B9A\u5728\u53F3\u4FA7" });
|
|
405
|
+
out.push(...right);
|
|
406
|
+
}
|
|
407
|
+
return out;
|
|
408
|
+
});
|
|
409
|
+
function entryKey(entry) {
|
|
410
|
+
switch (entry.kind) {
|
|
411
|
+
case "group-header":
|
|
412
|
+
return `g-${entry.band}-${entry.groupId}`;
|
|
413
|
+
case "column":
|
|
414
|
+
return `c-${entry.columnId}`;
|
|
415
|
+
case "band-caption":
|
|
416
|
+
return `cap-${entry.band}`;
|
|
417
|
+
case "band-separator":
|
|
418
|
+
return entry.id;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
function groupLabel(group) {
|
|
422
|
+
if (Array.isArray(group?.title)) {
|
|
423
|
+
const zh = group.title.find((t) => t.locale === "zh");
|
|
424
|
+
const msg = zh?.message || group.title[0]?.message;
|
|
425
|
+
if (msg) return msg;
|
|
426
|
+
}
|
|
427
|
+
return "\u672A\u547D\u540D\u5206\u7EC4";
|
|
428
|
+
}
|
|
429
|
+
function columnLabel(col) {
|
|
430
|
+
if (!col) return "(\u672A\u77E5)";
|
|
431
|
+
if (col.type === "com.shwfed.table.column.select") return "\u9009\u62E9\u5217";
|
|
432
|
+
if (!col.title) return "(\u65E0\u6807\u9898)";
|
|
433
|
+
if (Array.isArray(col.title)) {
|
|
434
|
+
const zh = col.title.find((t) => t.locale === "zh");
|
|
435
|
+
return zh?.message || col.title[0]?.message || "(\u65E0\u6807\u9898)";
|
|
436
|
+
}
|
|
437
|
+
return "(\u65E0\u6807\u9898)";
|
|
438
|
+
}
|
|
439
|
+
function getColumnTypeLabel(type, compatibilityDate) {
|
|
440
|
+
return findColumnEntry(type, compatibilityDate)?.metadata.name ?? type;
|
|
441
|
+
}
|
|
442
|
+
function getColumnDefaults(id, type, compatibilityDate) {
|
|
443
|
+
switch (type) {
|
|
444
|
+
case "com.shwfed.table.column.text":
|
|
445
|
+
return { id, type, compatibilityDate, title: [{ locale: "zh", message: "" }], accessor: "", size: 120 };
|
|
446
|
+
case "com.shwfed.table.column.date":
|
|
447
|
+
return { id, type, compatibilityDate, title: [{ locale: "zh", message: "" }], accessor: "", format: "yyyy-MM-dd", size: 120 };
|
|
448
|
+
case "com.shwfed.table.column.number":
|
|
449
|
+
return { id, type, compatibilityDate, title: [{ locale: "zh", message: "" }], accessor: "", size: 120, align: "right" };
|
|
450
|
+
case "com.shwfed.table.column.select":
|
|
451
|
+
return { id, type, compatibilityDate, mode: "checkbox" };
|
|
452
|
+
case "com.shwfed.table.column.markdown":
|
|
453
|
+
return { id, type, compatibilityDate, title: [{ locale: "zh", message: "" }], markdown: [{ locale: "zh", message: "" }], size: 120 };
|
|
454
|
+
case "com.shwfed.table.column.actions":
|
|
455
|
+
return { id, type, compatibilityDate, title: [{ locale: "zh", message: "" }], size: 200, groups: [], items: [] };
|
|
456
|
+
default:
|
|
457
|
+
return { id, type, compatibilityDate };
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
function addColumn(columnType, compatibilityDate) {
|
|
461
|
+
const col = getColumnDefaults(crypto.randomUUID(), columnType, compatibilityDate);
|
|
462
|
+
editingColumns.value = [...editingColumns.value, col];
|
|
463
|
+
selected.value = { kind: "column", id: col.id };
|
|
464
|
+
}
|
|
465
|
+
function pruneEmptyGroupW(w, groupId) {
|
|
466
|
+
const hasMembers = w.columns.some((c) => c.groupId === groupId);
|
|
467
|
+
if (hasMembers) return;
|
|
468
|
+
w.groups = w.groups.filter((g) => g.id !== groupId);
|
|
469
|
+
}
|
|
470
|
+
function deleteGroup(groupId) {
|
|
471
|
+
const w = snapshot();
|
|
472
|
+
w.columns = w.columns.map((c) => {
|
|
473
|
+
if (c.groupId !== groupId) return c;
|
|
474
|
+
const { groupId: _g, ...rest } = c;
|
|
475
|
+
return rest;
|
|
476
|
+
});
|
|
477
|
+
w.groups = w.groups.filter((g) => g.id !== groupId);
|
|
478
|
+
reconcilePinningW(w);
|
|
479
|
+
commit(w);
|
|
480
|
+
resolveSelection();
|
|
481
|
+
}
|
|
482
|
+
function deleteColumn(columnId) {
|
|
483
|
+
const w = snapshot();
|
|
484
|
+
const col = w.columns.find((c) => c.id === columnId);
|
|
485
|
+
w.columns = w.columns.filter((c) => c.id !== columnId);
|
|
486
|
+
if (col?.groupId) pruneEmptyGroupW(w, col.groupId);
|
|
487
|
+
reconcilePinningW(w);
|
|
488
|
+
commit(w);
|
|
489
|
+
resolveSelection();
|
|
490
|
+
}
|
|
491
|
+
function resolveSelection() {
|
|
492
|
+
const s = selected.value;
|
|
493
|
+
if (s.kind === "general") return;
|
|
494
|
+
if (s.kind === "actions") return;
|
|
495
|
+
if (s.kind === "query") return;
|
|
496
|
+
if (s.kind === "group" && findGroup(s.id)) return;
|
|
497
|
+
if (s.kind === "column" && findColumn(s.id)) return;
|
|
498
|
+
selected.value = { kind: "general" };
|
|
499
|
+
}
|
|
500
|
+
function selectGeneral() {
|
|
501
|
+
selected.value = { kind: "general" };
|
|
502
|
+
}
|
|
503
|
+
function selectActions() {
|
|
504
|
+
selected.value = { kind: "actions" };
|
|
505
|
+
}
|
|
506
|
+
function selectQuery() {
|
|
507
|
+
selected.value = { kind: "query" };
|
|
508
|
+
}
|
|
509
|
+
function selectGroup(id) {
|
|
510
|
+
selected.value = { kind: "group", id };
|
|
511
|
+
}
|
|
512
|
+
function selectColumn(id) {
|
|
513
|
+
selected.value = { kind: "column", id };
|
|
514
|
+
}
|
|
515
|
+
const breadcrumbExt = inject(BREADCRUMB_EXTENSION_KEY, null);
|
|
516
|
+
if (breadcrumbExt) {
|
|
517
|
+
const crumb = breadcrumbExt.add();
|
|
518
|
+
watch(
|
|
519
|
+
[selected, columnFullPane],
|
|
520
|
+
([s, full]) => {
|
|
521
|
+
if (s.kind === "actions") {
|
|
522
|
+
crumb.label.value = generalFieldTitle("actions");
|
|
523
|
+
crumb.back.value = selectGeneral;
|
|
524
|
+
} else if (s.kind === "query") {
|
|
525
|
+
crumb.label.value = generalFieldTitle("query");
|
|
526
|
+
crumb.back.value = selectGeneral;
|
|
527
|
+
} else if (s.kind === "column" && full) {
|
|
528
|
+
const col = findColumn(s.id);
|
|
529
|
+
crumb.label.value = col ? `\u7F16\u8F91${columnLabel(col)}` : "\u7F16\u8F91\u5217";
|
|
530
|
+
crumb.back.value = selectGeneral;
|
|
531
|
+
} else {
|
|
532
|
+
crumb.label.value = null;
|
|
533
|
+
crumb.back.value = null;
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
{ immediate: true }
|
|
537
|
+
);
|
|
538
|
+
onBeforeUnmount(() => {
|
|
539
|
+
crumb.dispose();
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
function patchColumn(id, patch) {
|
|
543
|
+
editingColumns.value = editingColumns.value.map(
|
|
544
|
+
(c) => c.id === id ? { ...c, ...patch } : c
|
|
545
|
+
);
|
|
546
|
+
}
|
|
547
|
+
function patchSelectedColumn(next) {
|
|
548
|
+
if (selected.value.kind !== "column") return;
|
|
549
|
+
patchColumn(selected.value.id, next);
|
|
550
|
+
}
|
|
551
|
+
function patchSelectedGroup(next) {
|
|
552
|
+
if (selected.value.kind !== "group") return;
|
|
553
|
+
const id = selected.value.id;
|
|
554
|
+
editingGroups.value = editingGroups.value.map(
|
|
555
|
+
(g) => g.id === id ? { ...g, ...next } : g
|
|
556
|
+
);
|
|
557
|
+
}
|
|
558
|
+
const PIN_LEFT_ZONE = "pin-left-zone";
|
|
559
|
+
const PIN_RIGHT_ZONE = "pin-right-zone";
|
|
560
|
+
function reorderColumnNextW(w, sourceId, targetId, edge) {
|
|
561
|
+
if (sourceId === targetId) return;
|
|
562
|
+
const src = w.columns.find((c) => c.id === sourceId);
|
|
563
|
+
const tgt = w.columns.find((c) => c.id === targetId);
|
|
564
|
+
if (!src || !tgt) return;
|
|
565
|
+
const nextGroupId = tgt.groupId;
|
|
566
|
+
const next = { ...src };
|
|
567
|
+
if (nextGroupId) next.groupId = nextGroupId;
|
|
568
|
+
else delete next.groupId;
|
|
569
|
+
const formerGroupId = src.groupId && src.groupId !== nextGroupId ? src.groupId : void 0;
|
|
570
|
+
const without = w.columns.filter((c) => c.id !== sourceId);
|
|
571
|
+
const tgtIdx = without.findIndex((c) => c.id === targetId);
|
|
572
|
+
if (tgtIdx < 0) {
|
|
573
|
+
w.columns = [...without, next];
|
|
574
|
+
} else {
|
|
575
|
+
const insertAt = edge === "reorder-above" ? tgtIdx : tgtIdx + 1;
|
|
576
|
+
const arr = [...without];
|
|
577
|
+
arr.splice(insertAt, 0, next);
|
|
578
|
+
w.columns = arr;
|
|
579
|
+
}
|
|
580
|
+
if (formerGroupId) pruneEmptyGroupW(w, formerGroupId);
|
|
581
|
+
}
|
|
582
|
+
function reorderColumnAroundGroupW(w, sourceId, targetGroupId, edge) {
|
|
583
|
+
const src = w.columns.find((c) => c.id === sourceId);
|
|
584
|
+
if (!src) return;
|
|
585
|
+
const formerGroupId = src.groupId;
|
|
586
|
+
const next = { ...src };
|
|
587
|
+
delete next.groupId;
|
|
588
|
+
const without = w.columns.filter((c) => c.id !== sourceId);
|
|
589
|
+
const memberIndices = [];
|
|
590
|
+
without.forEach((c, i) => {
|
|
591
|
+
if (c.groupId === targetGroupId) memberIndices.push(i);
|
|
592
|
+
});
|
|
593
|
+
if (memberIndices.length === 0) return;
|
|
594
|
+
const insertAt = edge === "reorder-above" ? memberIndices[0] : memberIndices[memberIndices.length - 1] + 1;
|
|
595
|
+
const arr = [...without];
|
|
596
|
+
arr.splice(insertAt, 0, next);
|
|
597
|
+
w.columns = arr;
|
|
598
|
+
if (formerGroupId && formerGroupId !== targetGroupId) pruneEmptyGroupW(w, formerGroupId);
|
|
599
|
+
}
|
|
600
|
+
function assignColumnToGroupW(w, sourceId, groupId) {
|
|
601
|
+
const src = w.columns.find((c) => c.id === sourceId);
|
|
602
|
+
if (!src || src.groupId === groupId) return;
|
|
603
|
+
const formerGroupId = src.groupId;
|
|
604
|
+
const next = { ...src, groupId };
|
|
605
|
+
const without = w.columns.filter((c) => c.id !== sourceId);
|
|
606
|
+
const firstMemberIdx = without.findIndex((c) => c.groupId === groupId);
|
|
607
|
+
const arr = [...without];
|
|
608
|
+
if (firstMemberIdx >= 0) arr.splice(firstMemberIdx, 0, next);
|
|
609
|
+
else arr.push(next);
|
|
610
|
+
w.columns = arr;
|
|
611
|
+
if (formerGroupId) pruneEmptyGroupW(w, formerGroupId);
|
|
612
|
+
}
|
|
613
|
+
function moveGroupBlockW(w, sourceGroupId, target, edge) {
|
|
614
|
+
const block = w.columns.filter((c) => c.groupId === sourceGroupId);
|
|
615
|
+
if (block.length === 0) return;
|
|
616
|
+
const rest = w.columns.filter((c) => c.groupId !== sourceGroupId);
|
|
617
|
+
let anchorIdx;
|
|
618
|
+
if (target.kind === "column") {
|
|
619
|
+
if (block.some((b) => b.id === target.id)) return;
|
|
620
|
+
anchorIdx = rest.findIndex((c) => c.id === target.id);
|
|
621
|
+
} else {
|
|
622
|
+
if (target.id === sourceGroupId) return;
|
|
623
|
+
const firstIdx = rest.findIndex((c) => c.groupId === target.id);
|
|
624
|
+
if (firstIdx < 0) return;
|
|
625
|
+
const size = rest.filter((c) => c.groupId === target.id).length;
|
|
626
|
+
anchorIdx = edge === "reorder-above" ? firstIdx : firstIdx + size - 1;
|
|
627
|
+
}
|
|
628
|
+
if (anchorIdx < 0) return;
|
|
629
|
+
const insertAt = edge === "reorder-above" ? anchorIdx : anchorIdx + 1;
|
|
630
|
+
const arr = [...rest];
|
|
631
|
+
arr.splice(insertAt, 0, ...block);
|
|
632
|
+
w.columns = arr;
|
|
633
|
+
}
|
|
634
|
+
function wrapColumnsInNewGroupW(w, sourceId, targetId) {
|
|
635
|
+
if (sourceId === targetId) return void 0;
|
|
636
|
+
const src = w.columns.find((c) => c.id === sourceId);
|
|
637
|
+
const tgt = w.columns.find((c) => c.id === targetId);
|
|
638
|
+
if (!src || !tgt) return void 0;
|
|
639
|
+
if (src.groupId || tgt.groupId) return void 0;
|
|
640
|
+
const newGroup = { id: crypto.randomUUID() };
|
|
641
|
+
w.groups = [...w.groups, newGroup];
|
|
642
|
+
const srcUpdated = { ...src, groupId: newGroup.id };
|
|
643
|
+
const tgtUpdated = { ...tgt, groupId: newGroup.id };
|
|
644
|
+
const without = w.columns.filter((c) => c.id !== sourceId);
|
|
645
|
+
const tgtIdx = without.findIndex((c) => c.id === targetId);
|
|
646
|
+
if (tgtIdx < 0) return void 0;
|
|
647
|
+
const arr = [...without];
|
|
648
|
+
arr[tgtIdx] = tgtUpdated;
|
|
649
|
+
arr.splice(tgtIdx, 0, srcUpdated);
|
|
650
|
+
w.columns = arr;
|
|
651
|
+
return newGroup.id;
|
|
652
|
+
}
|
|
653
|
+
function pinColumnToW(w, id, side) {
|
|
654
|
+
const col = w.columns.find((c) => c.id === id);
|
|
655
|
+
if (!col) return;
|
|
656
|
+
const formerGroupId = col.groupId;
|
|
657
|
+
const detached = { ...col };
|
|
658
|
+
if (detached.groupId) delete detached.groupId;
|
|
659
|
+
setColumnPinW(w, id, side);
|
|
660
|
+
const without = w.columns.filter((c) => c.id !== id);
|
|
661
|
+
const left = pinnedLeftSetOf(w);
|
|
662
|
+
const right = pinnedRightSetOf(w);
|
|
663
|
+
let insertAt;
|
|
664
|
+
if (side === "left") {
|
|
665
|
+
let last = -1;
|
|
666
|
+
for (let k = 0; k < without.length; k++) {
|
|
667
|
+
if (left.has(without[k].id)) last = k;
|
|
668
|
+
}
|
|
669
|
+
insertAt = last + 1;
|
|
670
|
+
} else {
|
|
671
|
+
let first = without.length;
|
|
672
|
+
for (let k = 0; k < without.length; k++) {
|
|
673
|
+
if (right.has(without[k].id)) {
|
|
674
|
+
first = k;
|
|
675
|
+
break;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
insertAt = first;
|
|
679
|
+
}
|
|
680
|
+
const arr = [...without];
|
|
681
|
+
arr.splice(insertAt, 0, detached);
|
|
682
|
+
w.columns = arr;
|
|
683
|
+
if (formerGroupId) pruneEmptyGroupW(w, formerGroupId);
|
|
684
|
+
}
|
|
685
|
+
function pinGroupToW(w, groupId, side) {
|
|
686
|
+
const members = w.columns.filter((c) => c.groupId === groupId);
|
|
687
|
+
if (members.length === 0) return;
|
|
688
|
+
const memberIds = new Set(members.map((m) => m.id));
|
|
689
|
+
setGroupPinW(w, groupId, side);
|
|
690
|
+
const without = w.columns.filter((c) => !memberIds.has(c.id));
|
|
691
|
+
const left = pinnedLeftSetOf(w);
|
|
692
|
+
const right = pinnedRightSetOf(w);
|
|
693
|
+
let insertAt;
|
|
694
|
+
if (side === "left") {
|
|
695
|
+
let last = -1;
|
|
696
|
+
for (let k = 0; k < without.length; k++) {
|
|
697
|
+
if (left.has(without[k].id)) last = k;
|
|
698
|
+
}
|
|
699
|
+
insertAt = last + 1;
|
|
700
|
+
} else {
|
|
701
|
+
let first = without.length;
|
|
702
|
+
for (let k = 0; k < without.length; k++) {
|
|
703
|
+
if (right.has(without[k].id)) {
|
|
704
|
+
first = k;
|
|
705
|
+
break;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
insertAt = first;
|
|
709
|
+
}
|
|
710
|
+
const arr = [...without];
|
|
711
|
+
arr.splice(insertAt, 0, ...members);
|
|
712
|
+
w.columns = arr;
|
|
713
|
+
}
|
|
714
|
+
function targetBand(target) {
|
|
715
|
+
return target.kind === GROUP_DRAG_KIND ? groupBand(target.id) : columnBand(target.id);
|
|
716
|
+
}
|
|
717
|
+
function bandToPin(band) {
|
|
718
|
+
return band === "main" ? void 0 : band;
|
|
719
|
+
}
|
|
720
|
+
function onRowDrop({ source, target, instruction }) {
|
|
721
|
+
if (source.kind === GROUP_DRAG_KIND) {
|
|
722
|
+
const w = snapshot();
|
|
723
|
+
if (instruction === "reorder-above" || instruction === "reorder-below") {
|
|
724
|
+
if (target.kind === GROUP_DRAG_KIND) {
|
|
725
|
+
moveGroupBlockW(w, source.id, { kind: "group", id: target.id }, instruction);
|
|
726
|
+
} else if (target.kind === COLUMN_DRAG_KIND) {
|
|
727
|
+
moveGroupBlockW(w, source.id, { kind: "column", id: target.id }, instruction);
|
|
728
|
+
}
|
|
729
|
+
setGroupPinW(w, source.id, bandToPin(targetBand(target)));
|
|
730
|
+
}
|
|
731
|
+
reconcilePinningW(w);
|
|
732
|
+
commit(w);
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
if (source.kind === COLUMN_DRAG_KIND) {
|
|
736
|
+
if (target.kind === GROUP_DRAG_KIND) {
|
|
737
|
+
const w = snapshot();
|
|
738
|
+
if (instruction === "make-child") {
|
|
739
|
+
assignColumnToGroupW(w, source.id, target.id);
|
|
740
|
+
} else if (instruction === "reorder-above" || instruction === "reorder-below") {
|
|
741
|
+
reorderColumnAroundGroupW(w, source.id, target.id, instruction);
|
|
742
|
+
} else return;
|
|
743
|
+
setColumnPinW(w, source.id, bandToPin(groupBand(target.id)));
|
|
744
|
+
reconcilePinningW(w);
|
|
745
|
+
commit(w);
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
if (target.kind === COLUMN_DRAG_KIND) {
|
|
749
|
+
const w = snapshot();
|
|
750
|
+
let newGroupId;
|
|
751
|
+
if (instruction === "make-child") {
|
|
752
|
+
newGroupId = wrapColumnsInNewGroupW(w, source.id, target.id);
|
|
753
|
+
setColumnPinW(w, source.id, bandToPin(columnBand(target.id)));
|
|
754
|
+
} else if (instruction === "reorder-above" || instruction === "reorder-below") {
|
|
755
|
+
reorderColumnNextW(w, source.id, target.id, instruction);
|
|
756
|
+
setColumnPinW(w, source.id, bandToPin(columnBand(target.id)));
|
|
757
|
+
}
|
|
758
|
+
reconcilePinningW(w);
|
|
759
|
+
commit(w);
|
|
760
|
+
if (newGroupId) selected.value = { kind: "group", id: newGroupId };
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
function onZoneDrop({ source, zoneId }) {
|
|
765
|
+
if (zoneId !== PIN_LEFT_ZONE && zoneId !== PIN_RIGHT_ZONE) return;
|
|
766
|
+
const side = zoneId === PIN_LEFT_ZONE ? "left" : "right";
|
|
767
|
+
const w = snapshot();
|
|
768
|
+
if (source.kind === COLUMN_DRAG_KIND) {
|
|
769
|
+
pinColumnToW(w, source.id, side);
|
|
770
|
+
} else if (source.kind === GROUP_DRAG_KIND) {
|
|
771
|
+
pinGroupToW(w, source.id, side);
|
|
772
|
+
}
|
|
773
|
+
commit(w);
|
|
774
|
+
}
|
|
775
|
+
const dnd = useTreeDnd({ onRowDrop, onZoneDrop });
|
|
776
|
+
const pickDragHandle = (el) => el.querySelector(".drag-handle");
|
|
777
|
+
function pinZoneConfig(side) {
|
|
778
|
+
return {
|
|
779
|
+
data: { side },
|
|
780
|
+
canDrop: (src) => {
|
|
781
|
+
if (src.kind === COLUMN_DRAG_KIND) {
|
|
782
|
+
return columnBand(src.id) !== side;
|
|
783
|
+
}
|
|
784
|
+
if (src.kind === GROUP_DRAG_KIND) {
|
|
785
|
+
return groupBand(src.id) !== side;
|
|
786
|
+
}
|
|
787
|
+
return false;
|
|
788
|
+
}
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
function groupRowConfig(groupId) {
|
|
792
|
+
const band = groupBand(groupId);
|
|
793
|
+
return {
|
|
794
|
+
kind: GROUP_DRAG_KIND,
|
|
795
|
+
data: { band },
|
|
796
|
+
canDrop: (src) => {
|
|
797
|
+
if (src.kind === GROUP_DRAG_KIND) return src.id !== groupId;
|
|
798
|
+
if (src.kind === COLUMN_DRAG_KIND) return true;
|
|
799
|
+
return false;
|
|
800
|
+
},
|
|
801
|
+
blockInstructions: (src) => {
|
|
802
|
+
const block = ["reparent"];
|
|
803
|
+
if (src.kind === GROUP_DRAG_KIND) {
|
|
804
|
+
block.push("make-child");
|
|
805
|
+
if (src.id === groupId) block.push("reorder-above", "reorder-below");
|
|
806
|
+
}
|
|
807
|
+
return block;
|
|
808
|
+
},
|
|
809
|
+
resolveInstruction: ({ input, element, source }) => {
|
|
810
|
+
const rect = element.getBoundingClientRect();
|
|
811
|
+
const relY = input.clientY - rect.top;
|
|
812
|
+
if (source.kind === COLUMN_DRAG_KIND) {
|
|
813
|
+
const third = rect.height / 3;
|
|
814
|
+
if (relY < third) return "reorder-above";
|
|
815
|
+
if (relY > third * 2) return "reorder-below";
|
|
816
|
+
return "make-child";
|
|
817
|
+
}
|
|
818
|
+
return relY < rect.height / 2 ? "reorder-above" : "reorder-below";
|
|
819
|
+
},
|
|
820
|
+
dragHandle: pickDragHandle
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
function columnRowConfig(columnId) {
|
|
824
|
+
const col = findColumn(columnId);
|
|
825
|
+
const colGroupId = col?.groupId;
|
|
826
|
+
const band = columnBand(columnId);
|
|
827
|
+
return {
|
|
828
|
+
kind: COLUMN_DRAG_KIND,
|
|
829
|
+
data: { groupId: colGroupId, band },
|
|
830
|
+
canDrop: (src) => {
|
|
831
|
+
if (src.kind === COLUMN_DRAG_KIND) return src.id !== columnId;
|
|
832
|
+
if (src.kind === GROUP_DRAG_KIND) {
|
|
833
|
+
return colGroupId !== src.id;
|
|
834
|
+
}
|
|
835
|
+
return false;
|
|
836
|
+
},
|
|
837
|
+
blockInstructions: (src) => {
|
|
838
|
+
const block = ["reparent"];
|
|
839
|
+
if (src.id === columnId) {
|
|
840
|
+
block.push("reorder-above", "reorder-below", "make-child");
|
|
841
|
+
return block;
|
|
842
|
+
}
|
|
843
|
+
const targetUngrouped = !colGroupId;
|
|
844
|
+
const sourceUngrouped = src.kind === COLUMN_DRAG_KIND && !src.data.groupId;
|
|
845
|
+
if (!(targetUngrouped && sourceUngrouped)) block.push("make-child");
|
|
846
|
+
return block;
|
|
847
|
+
},
|
|
848
|
+
resolveInstruction: ({ input, element, source }) => {
|
|
849
|
+
const rect = element.getBoundingClientRect();
|
|
850
|
+
const relY = input.clientY - rect.top;
|
|
851
|
+
const third = rect.height / 3;
|
|
852
|
+
const allowMakeChild = source.kind === COLUMN_DRAG_KIND && source.id !== columnId && !colGroupId && !source.data.groupId;
|
|
853
|
+
if (allowMakeChild) {
|
|
854
|
+
if (relY < third) return "reorder-above";
|
|
855
|
+
if (relY > third * 2) return "reorder-below";
|
|
856
|
+
return "make-child";
|
|
857
|
+
}
|
|
858
|
+
return relY < rect.height / 2 ? "reorder-above" : "reorder-below";
|
|
859
|
+
},
|
|
860
|
+
dragHandle: pickDragHandle
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
function parsePageSizes(value) {
|
|
864
|
+
return value.split(",").map((s) => Number.parseInt(s.trim(), 10)).filter((n) => !Number.isNaN(n) && n > 0);
|
|
865
|
+
}
|
|
866
|
+
function updateGeneralOptionalString(key, value) {
|
|
867
|
+
const cur = readGeneral();
|
|
868
|
+
if (value.trim() === "") {
|
|
869
|
+
const { [key]: _, ...rest } = cur;
|
|
870
|
+
config.value = {
|
|
871
|
+
...config.value,
|
|
872
|
+
...normalizeForEmit(rest)
|
|
873
|
+
};
|
|
874
|
+
if (key in config.value) {
|
|
875
|
+
const { [key]: _drop, ...rest2 } = config.value;
|
|
876
|
+
config.value = rest2;
|
|
877
|
+
}
|
|
878
|
+
} else {
|
|
879
|
+
writeGeneralPatch({ [key]: value });
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
function setDataSourceField(key, value) {
|
|
883
|
+
const cur = readGeneral();
|
|
884
|
+
const ds = { ...cur.dataSource ?? {} };
|
|
885
|
+
ds[key] = value;
|
|
886
|
+
writeGeneralPatch({ dataSource: ds });
|
|
887
|
+
}
|
|
888
|
+
function applyAiDataSource(value) {
|
|
889
|
+
const cur = readGeneral();
|
|
890
|
+
const ds = { ...cur.dataSource ?? {} };
|
|
891
|
+
if (value.data !== void 0) ds.data = value.data;
|
|
892
|
+
if (value.request !== void 0) {
|
|
893
|
+
if (value.request) ds.request = value.request;
|
|
894
|
+
else delete ds.request;
|
|
895
|
+
}
|
|
896
|
+
if (value.total !== void 0) {
|
|
897
|
+
if (value.total) ds.total = value.total;
|
|
898
|
+
else delete ds.total;
|
|
899
|
+
}
|
|
900
|
+
writeGeneralPatch({ dataSource: ds });
|
|
901
|
+
}
|
|
902
|
+
function applyAiColumns(value) {
|
|
903
|
+
const next = value.filter(
|
|
904
|
+
(c) => c?.type !== "com.shwfed.table.column.actions" && findColumnEntry(c?.type, c?.compatibilityDate)
|
|
905
|
+
);
|
|
906
|
+
const w = snapshot();
|
|
907
|
+
w.columns = next;
|
|
908
|
+
reconcilePinningW(w);
|
|
909
|
+
commit(w);
|
|
910
|
+
resolveSelection();
|
|
911
|
+
}
|
|
912
|
+
function updateDataSourceOptional(key, value) {
|
|
913
|
+
const cur = readGeneral();
|
|
914
|
+
const { [key]: _omit, ...rest } = cur.dataSource ?? {};
|
|
915
|
+
const ds = value.trim() === "" ? rest : { ...rest, [key]: value };
|
|
916
|
+
writeGeneralPatch({ dataSource: ds });
|
|
917
|
+
}
|
|
918
|
+
function setPageSize(value) {
|
|
919
|
+
const cur = readGeneral();
|
|
920
|
+
const p = { ...cur.pagination ?? {} };
|
|
921
|
+
const n = typeof value === "number" ? value : Number(value);
|
|
922
|
+
if (!Number.isFinite(n) || n <= 0) delete p.pageSize;
|
|
923
|
+
else p.pageSize = n;
|
|
924
|
+
writeGeneralPatch({ pagination: p });
|
|
925
|
+
}
|
|
926
|
+
function setPageSizes(value) {
|
|
927
|
+
const parsed = parsePageSizes(value);
|
|
928
|
+
const cur = readGeneral();
|
|
929
|
+
const p = { ...cur.pagination ?? {} };
|
|
930
|
+
if (parsed.length === 0) delete p.pageSizes;
|
|
931
|
+
else p.pageSizes = parsed;
|
|
932
|
+
writeGeneralPatch({ pagination: p });
|
|
933
|
+
}
|
|
934
|
+
function setPaginationLocale(key, value) {
|
|
935
|
+
const cur = readGeneral();
|
|
936
|
+
const p = { ...cur.pagination ?? {} };
|
|
937
|
+
if (value == null) {
|
|
938
|
+
if (key === "left") delete p.left;
|
|
939
|
+
else delete p.right;
|
|
940
|
+
} else p[key] = value;
|
|
941
|
+
writeGeneralPatch({ pagination: p });
|
|
942
|
+
}
|
|
943
|
+
function getError(fieldPath) {
|
|
944
|
+
return fieldErrors.value[fieldPath];
|
|
945
|
+
}
|
|
946
|
+
const tableActionsValue = computed({
|
|
947
|
+
get: () => {
|
|
948
|
+
const a = editingGeneralConfig.value.actions ?? {};
|
|
949
|
+
return {
|
|
950
|
+
kind: "shwfed.component.action",
|
|
951
|
+
size: a.size ?? "default",
|
|
952
|
+
gap: a.gap ?? 4,
|
|
953
|
+
style: a.style,
|
|
954
|
+
groups: a.groups ?? [],
|
|
955
|
+
items: a.items ?? []
|
|
956
|
+
};
|
|
957
|
+
},
|
|
958
|
+
set: (next) => {
|
|
959
|
+
const { size, gap, style, groups, items } = next;
|
|
960
|
+
const hasContent = groups && groups.length > 0 || items && items.length > 0 || typeof style === "string" && style.length > 0;
|
|
961
|
+
if (!hasContent) {
|
|
962
|
+
const cur = readGeneral();
|
|
963
|
+
const { actions: _drop, ...rest } = cur;
|
|
964
|
+
const merged = normalizeForEmit(rest);
|
|
965
|
+
const cleared = { ...config.value, ...merged };
|
|
966
|
+
delete cleared.actions;
|
|
967
|
+
config.value = cleared;
|
|
968
|
+
return;
|
|
969
|
+
}
|
|
970
|
+
const actions = { size, gap, groups, items };
|
|
971
|
+
if (style !== void 0) actions.style = style;
|
|
972
|
+
writeGeneralPatch({ actions });
|
|
973
|
+
}
|
|
974
|
+
});
|
|
975
|
+
const tableQueryValue = computed({
|
|
976
|
+
get: () => {
|
|
977
|
+
const q = editingGeneralConfig.value.query;
|
|
978
|
+
if (q) return q;
|
|
979
|
+
return defaultFormConfig();
|
|
980
|
+
},
|
|
981
|
+
set: (next) => {
|
|
982
|
+
if (!next.fields || next.fields.length === 0) {
|
|
983
|
+
const cur = readGeneral();
|
|
984
|
+
const { query: _drop, ...rest } = cur;
|
|
985
|
+
const merged = normalizeForEmit(rest);
|
|
986
|
+
const cleared = { ...config.value, ...merged };
|
|
987
|
+
delete cleared.query;
|
|
988
|
+
config.value = cleared;
|
|
989
|
+
return;
|
|
990
|
+
}
|
|
991
|
+
writeGeneralPatch({ query: next });
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
</script>
|
|
995
|
+
|
|
996
|
+
<template>
|
|
997
|
+
<div class="flex flex-col">
|
|
998
|
+
<div class="flex min-h-128 gap-6">
|
|
999
|
+
<div
|
|
1000
|
+
v-if="!isDrilled"
|
|
1001
|
+
class="flex w-64 shrink-0 flex-col"
|
|
1002
|
+
>
|
|
1003
|
+
<ScrollArea class="flex-1">
|
|
1004
|
+
<div class="flex flex-col gap-1">
|
|
1005
|
+
<div
|
|
1006
|
+
class="row general-row pl-2"
|
|
1007
|
+
:class="[
|
|
1008
|
+
selectedGeneral ? 'bg-[color-mix(in_srgb,var(--primary)_10%,white)] text-(--primary)' : 'text-zinc-600 hover:bg-zinc-50'
|
|
1009
|
+
]"
|
|
1010
|
+
@click.stop="selectGeneral()"
|
|
1011
|
+
>
|
|
1012
|
+
<Icon
|
|
1013
|
+
icon="fluent:settings-20-regular"
|
|
1014
|
+
class="size-4 shrink-0"
|
|
1015
|
+
/>
|
|
1016
|
+
<span class="flex-1 truncate">通用配置</span>
|
|
1017
|
+
</div>
|
|
1018
|
+
|
|
1019
|
+
<div
|
|
1020
|
+
class="row general-row pl-2"
|
|
1021
|
+
:class="[
|
|
1022
|
+
selectedActions ? 'bg-[color-mix(in_srgb,var(--primary)_10%,white)] text-(--primary)' : 'text-zinc-600 hover:bg-zinc-50'
|
|
1023
|
+
]"
|
|
1024
|
+
@click.stop="selectActions()"
|
|
1025
|
+
>
|
|
1026
|
+
<Icon
|
|
1027
|
+
icon="fluent:slide-settings-20-regular"
|
|
1028
|
+
class="size-4 shrink-0"
|
|
1029
|
+
/>
|
|
1030
|
+
<span class="flex-1 truncate">{{ generalFieldTitle("actions") }}</span>
|
|
1031
|
+
</div>
|
|
1032
|
+
|
|
1033
|
+
<div
|
|
1034
|
+
class="row general-row pl-2"
|
|
1035
|
+
:class="[
|
|
1036
|
+
selectedQuery ? 'bg-[color-mix(in_srgb,var(--primary)_10%,white)] text-(--primary)' : 'text-zinc-600 hover:bg-zinc-50'
|
|
1037
|
+
]"
|
|
1038
|
+
@click.stop="selectQuery()"
|
|
1039
|
+
>
|
|
1040
|
+
<Icon
|
|
1041
|
+
icon="fluent:form-new-20-regular"
|
|
1042
|
+
class="size-4 shrink-0"
|
|
1043
|
+
/>
|
|
1044
|
+
<span class="flex-1 truncate">{{ generalFieldTitle("query") }}</span>
|
|
1045
|
+
</div>
|
|
1046
|
+
</div>
|
|
1047
|
+
|
|
1048
|
+
<Separator class="my-1" />
|
|
1049
|
+
|
|
1050
|
+
<div
|
|
1051
|
+
v-if="pinnedLeftIds.size === 0"
|
|
1052
|
+
:ref="dnd.zoneRef(PIN_LEFT_ZONE, pinZoneConfig('left'))"
|
|
1053
|
+
class="pin-zone"
|
|
1054
|
+
:data-active="dnd.isZoneActive(PIN_LEFT_ZONE) ? 'true' : void 0"
|
|
1055
|
+
>
|
|
1056
|
+
<Icon
|
|
1057
|
+
icon="fluent:pin-20-regular"
|
|
1058
|
+
class="size-3.5"
|
|
1059
|
+
/>
|
|
1060
|
+
<span>固定到左侧</span>
|
|
1061
|
+
</div>
|
|
1062
|
+
|
|
1063
|
+
<template
|
|
1064
|
+
v-for="entry in renderEntries"
|
|
1065
|
+
:key="entryKey(entry)"
|
|
1066
|
+
>
|
|
1067
|
+
<p
|
|
1068
|
+
v-if="entry.kind === 'band-caption'"
|
|
1069
|
+
class="band-caption"
|
|
1070
|
+
>
|
|
1071
|
+
{{ entry.text }}
|
|
1072
|
+
</p>
|
|
1073
|
+
|
|
1074
|
+
<Separator
|
|
1075
|
+
v-else-if="entry.kind === 'band-separator'"
|
|
1076
|
+
class="my-1"
|
|
1077
|
+
/>
|
|
1078
|
+
|
|
1079
|
+
<div
|
|
1080
|
+
v-else-if="entry.kind === 'group-header'"
|
|
1081
|
+
:ref="dnd.rowRef(entry.groupId, groupRowConfig(entry.groupId))"
|
|
1082
|
+
class="row group group-row pl-2"
|
|
1083
|
+
:class="[
|
|
1084
|
+
selected.kind === 'group' && selected.id === entry.groupId ? 'bg-[color-mix(in_srgb,var(--primary)_10%,white)] text-(--primary)' : ''
|
|
1085
|
+
]"
|
|
1086
|
+
:data-instruction="dnd.instructionFor(entry.groupId) ?? void 0"
|
|
1087
|
+
@click.stop="selectGroup(entry.groupId)"
|
|
1088
|
+
>
|
|
1089
|
+
<Icon
|
|
1090
|
+
icon="fluent:re-order-dots-vertical-20-regular"
|
|
1091
|
+
class="drag-handle size-4 shrink-0 cursor-grab text-zinc-400"
|
|
1092
|
+
/>
|
|
1093
|
+
<Icon
|
|
1094
|
+
icon="fluent:folder-20-regular"
|
|
1095
|
+
class="size-4 shrink-0 text-zinc-400"
|
|
1096
|
+
/>
|
|
1097
|
+
<span class="flex-1 truncate">{{ groupLabel(findGroup(entry.groupId) ?? { id: entry.groupId }) }}</span>
|
|
1098
|
+
<Tooltip :delay-duration="180">
|
|
1099
|
+
<TooltipTrigger as-child>
|
|
1100
|
+
<button
|
|
1101
|
+
class="shrink-0 text-zinc-300 opacity-0 transition-opacity hover:text-red-500 group-hover:opacity-100"
|
|
1102
|
+
@click.stop="deleteGroup(entry.groupId)"
|
|
1103
|
+
>
|
|
1104
|
+
<Icon
|
|
1105
|
+
icon="fluent:delete-20-regular"
|
|
1106
|
+
class="size-3.5"
|
|
1107
|
+
/>
|
|
1108
|
+
</button>
|
|
1109
|
+
</TooltipTrigger>
|
|
1110
|
+
<TooltipContent side="right">
|
|
1111
|
+
移除该分组(其下的列将变为未分组)
|
|
1112
|
+
</TooltipContent>
|
|
1113
|
+
</Tooltip>
|
|
1114
|
+
</div>
|
|
1115
|
+
|
|
1116
|
+
<div
|
|
1117
|
+
v-else-if="entry.kind === 'column'"
|
|
1118
|
+
:ref="dnd.rowRef(entry.columnId, columnRowConfig(entry.columnId))"
|
|
1119
|
+
class="row group column-row"
|
|
1120
|
+
:class="[
|
|
1121
|
+
entry.groupId ? 'pl-6' : 'pl-2',
|
|
1122
|
+
selected.kind === 'column' && selected.id === entry.columnId ? 'bg-[color-mix(in_srgb,var(--primary)_10%,white)] text-(--primary)' : 'text-zinc-600 hover:bg-zinc-50'
|
|
1123
|
+
]"
|
|
1124
|
+
:data-instruction="dnd.instructionFor(entry.columnId) ?? void 0"
|
|
1125
|
+
@click.stop="selectColumn(entry.columnId)"
|
|
1126
|
+
>
|
|
1127
|
+
<Icon
|
|
1128
|
+
icon="fluent:re-order-dots-vertical-20-filled"
|
|
1129
|
+
class="drag-handle size-4 shrink-0 cursor-grab text-zinc-300"
|
|
1130
|
+
/>
|
|
1131
|
+
<span class="flex-1 truncate">{{ columnLabel(findColumn(entry.columnId) ?? { id: entry.columnId }) }}</span>
|
|
1132
|
+
<Badge
|
|
1133
|
+
variant="secondary"
|
|
1134
|
+
class="shrink-0 text-[10px] leading-none"
|
|
1135
|
+
>
|
|
1136
|
+
{{ getColumnTypeLabel(findColumn(entry.columnId)?.type, findColumn(entry.columnId)?.compatibilityDate) }}
|
|
1137
|
+
</Badge>
|
|
1138
|
+
<Tooltip :delay-duration="180">
|
|
1139
|
+
<TooltipTrigger as-child>
|
|
1140
|
+
<button
|
|
1141
|
+
class="shrink-0 text-zinc-300 opacity-0 transition-opacity hover:text-red-500 group-hover:opacity-100"
|
|
1142
|
+
@click.stop="deleteColumn(entry.columnId)"
|
|
1143
|
+
>
|
|
1144
|
+
<Icon
|
|
1145
|
+
icon="fluent:delete-20-regular"
|
|
1146
|
+
class="size-3.5"
|
|
1147
|
+
/>
|
|
1148
|
+
</button>
|
|
1149
|
+
</TooltipTrigger>
|
|
1150
|
+
<TooltipContent side="right">
|
|
1151
|
+
从表格中移除该列
|
|
1152
|
+
</TooltipContent>
|
|
1153
|
+
</Tooltip>
|
|
1154
|
+
</div>
|
|
1155
|
+
</template>
|
|
1156
|
+
|
|
1157
|
+
<div
|
|
1158
|
+
v-if="pinnedRightIds.size === 0"
|
|
1159
|
+
:ref="dnd.zoneRef(PIN_RIGHT_ZONE, pinZoneConfig('right'))"
|
|
1160
|
+
class="pin-zone"
|
|
1161
|
+
:data-active="dnd.isZoneActive(PIN_RIGHT_ZONE) ? 'true' : void 0"
|
|
1162
|
+
>
|
|
1163
|
+
<Icon
|
|
1164
|
+
icon="fluent:pin-20-regular"
|
|
1165
|
+
class="size-3.5"
|
|
1166
|
+
/>
|
|
1167
|
+
<span>固定到右侧</span>
|
|
1168
|
+
</div>
|
|
1169
|
+
</ScrollArea>
|
|
1170
|
+
|
|
1171
|
+
<div class="flex flex-col gap-2 border-t border-zinc-100 p-2">
|
|
1172
|
+
<InputGroup>
|
|
1173
|
+
<InputGroupAddon align="inline-start">
|
|
1174
|
+
<Icon icon="fluent:add-20-regular" />
|
|
1175
|
+
</InputGroupAddon>
|
|
1176
|
+
<InputGroupCombobox>
|
|
1177
|
+
<CommandGroup>
|
|
1178
|
+
<CommandItem
|
|
1179
|
+
v-for="entry in COLUMNS"
|
|
1180
|
+
:key="`${entry.type}@${entry.compatibilityDate}`"
|
|
1181
|
+
:value="`${entry.type}@${entry.compatibilityDate}`"
|
|
1182
|
+
@select="addColumn(entry.type, entry.compatibilityDate)"
|
|
1183
|
+
>
|
|
1184
|
+
<Icon
|
|
1185
|
+
:icon="entry.metadata.icon"
|
|
1186
|
+
class="size-4 text-zinc-500"
|
|
1187
|
+
/>
|
|
1188
|
+
<span class="flex-1">{{ entry.metadata.name }}</span>
|
|
1189
|
+
<span class="ml-auto text-xs tabular-nums text-zinc-400">{{ entry.compatibilityDate }}</span>
|
|
1190
|
+
</CommandItem>
|
|
1191
|
+
</CommandGroup>
|
|
1192
|
+
</InputGroupCombobox>
|
|
1193
|
+
<InputGroupAddon align="inline-end">
|
|
1194
|
+
<TableAiColumnsButton
|
|
1195
|
+
:data-source="editingGeneralConfig.dataSource"
|
|
1196
|
+
:columns="editingColumns"
|
|
1197
|
+
@apply="applyAiColumns"
|
|
1198
|
+
/>
|
|
1199
|
+
</InputGroupAddon>
|
|
1200
|
+
</InputGroup>
|
|
1201
|
+
</div>
|
|
1202
|
+
</div>
|
|
1203
|
+
|
|
1204
|
+
<div class="flex flex-1 flex-col">
|
|
1205
|
+
<ScrollArea class="flex-1">
|
|
1206
|
+
<div
|
|
1207
|
+
v-if="selectedGeneral"
|
|
1208
|
+
class="space-y-5"
|
|
1209
|
+
>
|
|
1210
|
+
<div class="flex items-center gap-2">
|
|
1211
|
+
<h3 class="text-xs font-medium text-zinc-500">
|
|
1212
|
+
{{ generalFieldTitle("dataSource") }}
|
|
1213
|
+
</h3>
|
|
1214
|
+
<TableAiDataSourceButton
|
|
1215
|
+
:data-source="editingGeneralConfig.dataSource"
|
|
1216
|
+
:columns="editingColumns"
|
|
1217
|
+
@apply="applyAiDataSource"
|
|
1218
|
+
/>
|
|
1219
|
+
</div>
|
|
1220
|
+
|
|
1221
|
+
<div class="space-y-4">
|
|
1222
|
+
<Field orientation="vertical">
|
|
1223
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1224
|
+
<template
|
|
1225
|
+
v-if="dataSourceFieldDescription('request')"
|
|
1226
|
+
#tooltip
|
|
1227
|
+
>
|
|
1228
|
+
<Markdown
|
|
1229
|
+
:source="dataSourceFieldDescription('request')"
|
|
1230
|
+
block
|
|
1231
|
+
class="prose prose-sm prose-zinc"
|
|
1232
|
+
/>
|
|
1233
|
+
</template>
|
|
1234
|
+
{{ dataSourceFieldTitle("request") }}
|
|
1235
|
+
</FieldLabel>
|
|
1236
|
+
<RequestCELContext>
|
|
1237
|
+
<ExpressionEditor
|
|
1238
|
+
:model-value="editingGeneralConfig.dataSource?.request ?? ''"
|
|
1239
|
+
placeholder="如 http.get('/api/users').query('page', pageIndex)"
|
|
1240
|
+
result-type="HttpRequest"
|
|
1241
|
+
multiline
|
|
1242
|
+
class="min-h-20"
|
|
1243
|
+
@update:model-value="(v) => updateDataSourceOptional('request', v)"
|
|
1244
|
+
/>
|
|
1245
|
+
</RequestCELContext>
|
|
1246
|
+
<p
|
|
1247
|
+
v-if="getError('dataSource.request')"
|
|
1248
|
+
class="text-xs text-red-500"
|
|
1249
|
+
>
|
|
1250
|
+
{{ getError("dataSource.request") }}
|
|
1251
|
+
</p>
|
|
1252
|
+
</Field>
|
|
1253
|
+
|
|
1254
|
+
<div class="grid grid-cols-2 gap-x-6 gap-y-4">
|
|
1255
|
+
<Field orientation="vertical">
|
|
1256
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1257
|
+
<template
|
|
1258
|
+
v-if="dataSourceFieldDescription('data')"
|
|
1259
|
+
#tooltip
|
|
1260
|
+
>
|
|
1261
|
+
<Markdown
|
|
1262
|
+
:source="dataSourceFieldDescription('data')"
|
|
1263
|
+
block
|
|
1264
|
+
class="prose prose-sm prose-zinc"
|
|
1265
|
+
/>
|
|
1266
|
+
</template>
|
|
1267
|
+
{{ dataSourceFieldTitle("data") }}
|
|
1268
|
+
</FieldLabel>
|
|
1269
|
+
<JsonCELContext>
|
|
1270
|
+
<ExpressionEditor
|
|
1271
|
+
:model-value="editingGeneralConfig.dataSource?.data ?? ''"
|
|
1272
|
+
placeholder="如 json.?value.items.orValue([])"
|
|
1273
|
+
result-type="list"
|
|
1274
|
+
@update:model-value="(v) => setDataSourceField('data', v)"
|
|
1275
|
+
/>
|
|
1276
|
+
</JsonCELContext>
|
|
1277
|
+
<p
|
|
1278
|
+
v-if="getError('dataSource.data')"
|
|
1279
|
+
class="text-xs text-red-500"
|
|
1280
|
+
>
|
|
1281
|
+
{{ getError("dataSource.data") }}
|
|
1282
|
+
</p>
|
|
1283
|
+
</Field>
|
|
1284
|
+
<Field orientation="vertical">
|
|
1285
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1286
|
+
<template
|
|
1287
|
+
v-if="dataSourceFieldDescription('total')"
|
|
1288
|
+
#tooltip
|
|
1289
|
+
>
|
|
1290
|
+
<Markdown
|
|
1291
|
+
:source="dataSourceFieldDescription('total')"
|
|
1292
|
+
block
|
|
1293
|
+
class="prose prose-sm prose-zinc"
|
|
1294
|
+
/>
|
|
1295
|
+
</template>
|
|
1296
|
+
{{ dataSourceFieldTitle("total") }}
|
|
1297
|
+
</FieldLabel>
|
|
1298
|
+
<JsonCELContext>
|
|
1299
|
+
<ExpressionEditor
|
|
1300
|
+
:model-value="editingGeneralConfig.dataSource?.total ?? ''"
|
|
1301
|
+
placeholder="留空使用前端分页;如 json.?value.total.orValue(0)"
|
|
1302
|
+
result-type="number"
|
|
1303
|
+
@update:model-value="(v) => updateDataSourceOptional('total', v)"
|
|
1304
|
+
/>
|
|
1305
|
+
</JsonCELContext>
|
|
1306
|
+
<p
|
|
1307
|
+
v-if="getError('dataSource.total')"
|
|
1308
|
+
class="text-xs text-red-500"
|
|
1309
|
+
>
|
|
1310
|
+
{{ getError("dataSource.total") }}
|
|
1311
|
+
</p>
|
|
1312
|
+
</Field>
|
|
1313
|
+
</div>
|
|
1314
|
+
</div>
|
|
1315
|
+
|
|
1316
|
+
<Separator />
|
|
1317
|
+
|
|
1318
|
+
<h3 class="text-xs font-medium text-zinc-500">
|
|
1319
|
+
{{ generalFieldTitle("pagination") }}
|
|
1320
|
+
</h3>
|
|
1321
|
+
|
|
1322
|
+
<div class="grid grid-cols-2 gap-x-6 gap-y-4">
|
|
1323
|
+
<Field orientation="vertical">
|
|
1324
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1325
|
+
<template
|
|
1326
|
+
v-if="paginationFieldDescription('pageSize')"
|
|
1327
|
+
#tooltip
|
|
1328
|
+
>
|
|
1329
|
+
<Markdown
|
|
1330
|
+
:source="paginationFieldDescription('pageSize')"
|
|
1331
|
+
block
|
|
1332
|
+
class="prose prose-sm prose-zinc"
|
|
1333
|
+
/>
|
|
1334
|
+
</template>
|
|
1335
|
+
{{ paginationFieldTitle("pageSize") }}
|
|
1336
|
+
</FieldLabel>
|
|
1337
|
+
<InputGroup>
|
|
1338
|
+
<InputGroupNumberField
|
|
1339
|
+
:model-value="editingGeneralConfig.pagination?.pageSize"
|
|
1340
|
+
:min="1"
|
|
1341
|
+
class="font-mono"
|
|
1342
|
+
@update:model-value="(v) => setPageSize(v)"
|
|
1343
|
+
/>
|
|
1344
|
+
</InputGroup>
|
|
1345
|
+
<p
|
|
1346
|
+
v-if="getError('pagination.pageSize')"
|
|
1347
|
+
class="text-xs text-red-500"
|
|
1348
|
+
>
|
|
1349
|
+
{{ getError("pagination.pageSize") }}
|
|
1350
|
+
</p>
|
|
1351
|
+
</Field>
|
|
1352
|
+
<Field orientation="vertical">
|
|
1353
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1354
|
+
<template
|
|
1355
|
+
v-if="paginationFieldDescription('pageSizes')"
|
|
1356
|
+
#tooltip
|
|
1357
|
+
>
|
|
1358
|
+
<Markdown
|
|
1359
|
+
:source="paginationFieldDescription('pageSizes')"
|
|
1360
|
+
block
|
|
1361
|
+
class="prose prose-sm prose-zinc"
|
|
1362
|
+
/>
|
|
1363
|
+
</template>
|
|
1364
|
+
{{ paginationFieldTitle("pageSizes") }}
|
|
1365
|
+
</FieldLabel>
|
|
1366
|
+
<Input
|
|
1367
|
+
:model-value="(editingGeneralConfig.pagination?.pageSizes ?? []).join(', ')"
|
|
1368
|
+
placeholder="如 20, 50, 100, 200"
|
|
1369
|
+
class="font-mono text-xs"
|
|
1370
|
+
@update:model-value="(v) => setPageSizes(String(v))"
|
|
1371
|
+
/>
|
|
1372
|
+
<p
|
|
1373
|
+
v-if="getError('pagination.pageSizes')"
|
|
1374
|
+
class="text-xs text-red-500"
|
|
1375
|
+
>
|
|
1376
|
+
{{ getError("pagination.pageSizes") }}
|
|
1377
|
+
</p>
|
|
1378
|
+
</Field>
|
|
1379
|
+
<Field orientation="vertical">
|
|
1380
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1381
|
+
<template
|
|
1382
|
+
v-if="paginationFieldDescription('left')"
|
|
1383
|
+
#tooltip
|
|
1384
|
+
>
|
|
1385
|
+
<Markdown
|
|
1386
|
+
:source="paginationFieldDescription('left')"
|
|
1387
|
+
block
|
|
1388
|
+
class="prose prose-sm prose-zinc"
|
|
1389
|
+
/>
|
|
1390
|
+
</template>
|
|
1391
|
+
{{ paginationFieldTitle("left") }}
|
|
1392
|
+
</FieldLabel>
|
|
1393
|
+
<Locale
|
|
1394
|
+
:model-value="editingGeneralConfig.pagination?.left"
|
|
1395
|
+
markdown
|
|
1396
|
+
@update:model-value="(v) => setPaginationLocale('left', v)"
|
|
1397
|
+
/>
|
|
1398
|
+
</Field>
|
|
1399
|
+
<Field orientation="vertical">
|
|
1400
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1401
|
+
<template
|
|
1402
|
+
v-if="paginationFieldDescription('right')"
|
|
1403
|
+
#tooltip
|
|
1404
|
+
>
|
|
1405
|
+
<Markdown
|
|
1406
|
+
:source="paginationFieldDescription('right')"
|
|
1407
|
+
block
|
|
1408
|
+
class="prose prose-sm prose-zinc"
|
|
1409
|
+
/>
|
|
1410
|
+
</template>
|
|
1411
|
+
{{ paginationFieldTitle("right") }}
|
|
1412
|
+
</FieldLabel>
|
|
1413
|
+
<Locale
|
|
1414
|
+
:model-value="editingGeneralConfig.pagination?.right"
|
|
1415
|
+
markdown
|
|
1416
|
+
@update:model-value="(v) => setPaginationLocale('right', v)"
|
|
1417
|
+
/>
|
|
1418
|
+
</Field>
|
|
1419
|
+
</div>
|
|
1420
|
+
|
|
1421
|
+
<Separator />
|
|
1422
|
+
|
|
1423
|
+
<h3 class="text-xs font-medium text-zinc-500">
|
|
1424
|
+
样式
|
|
1425
|
+
</h3>
|
|
1426
|
+
|
|
1427
|
+
<div class="space-y-4">
|
|
1428
|
+
<Field orientation="vertical">
|
|
1429
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1430
|
+
<template
|
|
1431
|
+
v-if="generalFieldDescription('cellStyle')"
|
|
1432
|
+
#tooltip
|
|
1433
|
+
>
|
|
1434
|
+
<Markdown
|
|
1435
|
+
:source="generalFieldDescription('cellStyle')"
|
|
1436
|
+
block
|
|
1437
|
+
class="prose prose-sm prose-zinc"
|
|
1438
|
+
/>
|
|
1439
|
+
</template>
|
|
1440
|
+
{{ generalFieldTitle("cellStyle") }}
|
|
1441
|
+
</FieldLabel>
|
|
1442
|
+
<CellStyleCELContext>
|
|
1443
|
+
<ExpressionEditor
|
|
1444
|
+
:model-value="editingGeneralConfig.cellStyle ?? ''"
|
|
1445
|
+
placeholder="如 { 'color': 'red' }"
|
|
1446
|
+
result-type="map"
|
|
1447
|
+
multiline
|
|
1448
|
+
class="min-h-10"
|
|
1449
|
+
@update:model-value="(v) => updateGeneralOptionalString('cellStyle', v)"
|
|
1450
|
+
/>
|
|
1451
|
+
</CellStyleCELContext>
|
|
1452
|
+
<p
|
|
1453
|
+
v-if="getError('cellStyle')"
|
|
1454
|
+
class="text-xs text-red-500"
|
|
1455
|
+
>
|
|
1456
|
+
{{ getError("cellStyle") }}
|
|
1457
|
+
</p>
|
|
1458
|
+
</Field>
|
|
1459
|
+
|
|
1460
|
+
<Field orientation="vertical">
|
|
1461
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1462
|
+
<template
|
|
1463
|
+
v-if="generalFieldDescription('style')"
|
|
1464
|
+
#tooltip
|
|
1465
|
+
>
|
|
1466
|
+
<Markdown
|
|
1467
|
+
:source="generalFieldDescription('style')"
|
|
1468
|
+
block
|
|
1469
|
+
class="prose prose-sm prose-zinc"
|
|
1470
|
+
/>
|
|
1471
|
+
</template>
|
|
1472
|
+
{{ generalFieldTitle("style") }}
|
|
1473
|
+
</FieldLabel>
|
|
1474
|
+
<Textarea
|
|
1475
|
+
:model-value="editingGeneralConfig.style ?? ''"
|
|
1476
|
+
placeholder="CSS 样式字符串"
|
|
1477
|
+
class="min-h-20 font-mono text-xs"
|
|
1478
|
+
@update:model-value="(v) => updateGeneralOptionalString('style', String(v))"
|
|
1479
|
+
/>
|
|
1480
|
+
<p
|
|
1481
|
+
v-if="getError('style')"
|
|
1482
|
+
class="text-xs text-red-500"
|
|
1483
|
+
>
|
|
1484
|
+
{{ getError("style") }}
|
|
1485
|
+
</p>
|
|
1486
|
+
</Field>
|
|
1487
|
+
</div>
|
|
1488
|
+
</div>
|
|
1489
|
+
|
|
1490
|
+
<TableActionsCELContext v-else-if="selectedActions">
|
|
1491
|
+
<ActionsConfigEditor
|
|
1492
|
+
v-model="tableActionsValue"
|
|
1493
|
+
:configure="configureTableActions"
|
|
1494
|
+
/>
|
|
1495
|
+
</TableActionsCELContext>
|
|
1496
|
+
|
|
1497
|
+
<ShwfedFormConfig
|
|
1498
|
+
v-else-if="selectedQuery"
|
|
1499
|
+
v-model="tableQueryValue"
|
|
1500
|
+
:configure="configureTableQuery"
|
|
1501
|
+
/>
|
|
1502
|
+
|
|
1503
|
+
<div
|
|
1504
|
+
v-else-if="selectedGroupRef"
|
|
1505
|
+
class="grid grid-cols-2 gap-4"
|
|
1506
|
+
>
|
|
1507
|
+
<Field orientation="vertical">
|
|
1508
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1509
|
+
<template
|
|
1510
|
+
v-if="groupFieldDescription('title')"
|
|
1511
|
+
#tooltip
|
|
1512
|
+
>
|
|
1513
|
+
<Markdown
|
|
1514
|
+
:source="groupFieldDescription('title')"
|
|
1515
|
+
block
|
|
1516
|
+
class="prose prose-sm prose-zinc"
|
|
1517
|
+
/>
|
|
1518
|
+
</template>
|
|
1519
|
+
{{ groupFieldTitle("title") }}
|
|
1520
|
+
</FieldLabel>
|
|
1521
|
+
<Locale
|
|
1522
|
+
:model-value="selectedGroupRef.title"
|
|
1523
|
+
@update:model-value="(v) => patchSelectedGroup({ title: v })"
|
|
1524
|
+
/>
|
|
1525
|
+
</Field>
|
|
1526
|
+
|
|
1527
|
+
<Field orientation="vertical">
|
|
1528
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
1529
|
+
<template
|
|
1530
|
+
v-if="groupFieldDescription('tooltip')"
|
|
1531
|
+
#tooltip
|
|
1532
|
+
>
|
|
1533
|
+
<Markdown
|
|
1534
|
+
:source="groupFieldDescription('tooltip')"
|
|
1535
|
+
block
|
|
1536
|
+
class="prose prose-sm prose-zinc"
|
|
1537
|
+
/>
|
|
1538
|
+
</template>
|
|
1539
|
+
{{ groupFieldTitle("tooltip") }}
|
|
1540
|
+
</FieldLabel>
|
|
1541
|
+
<Locale
|
|
1542
|
+
:model-value="selectedGroupRef.tooltip"
|
|
1543
|
+
markdown
|
|
1544
|
+
@update:model-value="(v) => patchSelectedGroup({ tooltip: v })"
|
|
1545
|
+
/>
|
|
1546
|
+
</Field>
|
|
1547
|
+
</div>
|
|
1548
|
+
|
|
1549
|
+
<div
|
|
1550
|
+
v-else-if="selectedColumnRef"
|
|
1551
|
+
:class="columnFullPane ? '' : 'space-y-5'"
|
|
1552
|
+
>
|
|
1553
|
+
<component
|
|
1554
|
+
:is="selectedColumnEntry.config"
|
|
1555
|
+
v-if="selectedColumnEntry"
|
|
1556
|
+
:model-value="selectedColumnRef"
|
|
1557
|
+
@update:model-value="(v) => patchSelectedColumn(v)"
|
|
1558
|
+
/>
|
|
1559
|
+
<div
|
|
1560
|
+
v-else
|
|
1561
|
+
class="text-xs text-red-500"
|
|
1562
|
+
>
|
|
1563
|
+
未知列类型:{{ selectedColumnRef.type }}@{{ selectedColumnRef.compatibilityDate }}
|
|
1564
|
+
</div>
|
|
1565
|
+
</div>
|
|
1566
|
+
|
|
1567
|
+
<div
|
|
1568
|
+
v-else
|
|
1569
|
+
class="flex min-h-112 items-center justify-center text-sm text-zinc-400"
|
|
1570
|
+
>
|
|
1571
|
+
选择一项以编辑
|
|
1572
|
+
</div>
|
|
1573
|
+
</ScrollArea>
|
|
1574
|
+
</div>
|
|
1575
|
+
</div>
|
|
1576
|
+
</div>
|
|
1577
|
+
</template>
|
|
1578
|
+
|
|
1579
|
+
<style scoped>
|
|
1580
|
+
.row{align-items:center;border-radius:.25rem;cursor:pointer;display:flex;font-size:.875rem;gap:.375rem;padding-block:.375rem;padding-right:.5rem;position:relative;transition:background-color .1s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none}.group-row{color:#3f3f46;font-weight:500}.group-row:hover{background:#fafafa}.general-row{font-weight:500}[data-instruction=reorder-above]:before,[data-instruction=reorder-below]:after{background:var(--primary,#2563eb);content:"";height:2px;left:.5rem;pointer-events:none;position:absolute;right:.5rem;z-index:1}[data-instruction=reorder-above]:before{top:-1px}[data-instruction=reorder-below]:after{bottom:-1px}.column-row[data-instruction=make-child],.group-row[data-instruction=make-child]{background:color-mix(in srgb,var(--primary,#2563eb) 12%,#fff);border-radius:.25rem;outline:1px dashed var(--primary,#2563eb);outline-offset:-2px}.band-caption{color:#a1a1aa;font-size:.625rem;font-weight:500;letter-spacing:.04em;padding:.125rem .5rem;text-transform:uppercase}.pin-zone{align-items:center;border-radius:.25rem;color:transparent;display:flex;font-size:.75rem;gap:.25rem;height:.5rem;justify-content:center;margin:.125rem 0;pointer-events:auto;transition:height .12s ease,color .12s ease,background-color .12s ease}.pin-zone>*{pointer-events:none}.pin-zone[data-active=true]{background-color:color-mix(in srgb,var(--primary,#2563eb) 8%,#fff);color:var(--primary,#2563eb);height:1.75rem}
|
|
1581
|
+
</style>
|