@shwfed/config 1.1.5 → 2.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/dist/module.d.cts +2 -0
- package/dist/module.d.mts +2 -19
- package/dist/module.json +1 -1
- package/dist/module.mjs +15 -34
- package/dist/types.d.mts +12 -2
- package/package.json +1 -1
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.d.vue.ts +0 -23
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.vue +0 -107
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.vue.d.ts +0 -23
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/runtime.vue +0 -30
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.d.ts +0 -16
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.js +0 -48
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.d.vue.ts +0 -41
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue +0 -170
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue.d.ts +0 -41
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/runtime.vue +0 -37
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.d.ts +0 -25
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.js +0 -62
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/config.d.vue.ts +0 -17
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/config.vue +0 -62
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/config.vue.d.ts +0 -17
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/runtime.vue +0 -17
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/schema.d.ts +0 -13
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/schema.js +0 -16
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/config.d.vue.ts +0 -21
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/config.vue +0 -84
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/config.vue.d.ts +0 -21
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/runtime.vue +0 -29
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/schema.d.ts +0 -15
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/schema.js +0 -27
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/config.d.vue.ts +0 -17
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/config.vue +0 -10
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/config.vue.d.ts +0 -17
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/runtime.vue +0 -25
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/schema.d.ts +0 -13
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/schema.js +0 -16
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/config.d.vue.ts +0 -17
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/config.vue +0 -10
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/config.vue.d.ts +0 -17
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/runtime.vue +0 -21
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/schema.d.ts +0 -13
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/schema.js +0 -16
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/config.d.vue.ts +0 -80
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/config.vue +0 -325
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/config.vue.d.ts +0 -80
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/runtime.d.vue.ts +0 -10
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/runtime.vue +0 -56
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/runtime.vue.d.ts +0 -10
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +0 -77
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.js +0 -46
- package/dist/runtime/components/actions/components/definition.d.vue.ts +0 -22
- package/dist/runtime/components/actions/components/definition.vue +0 -64
- package/dist/runtime/components/actions/components/definition.vue.d.ts +0 -22
- package/dist/runtime/components/actions/components/group.d.vue.ts +0 -160
- package/dist/runtime/components/actions/components/group.vue +0 -519
- package/dist/runtime/components/actions/components/group.vue.d.ts +0 -160
- package/dist/runtime/components/actions/config.d.vue.ts +0 -158
- package/dist/runtime/components/actions/config.vue +0 -1549
- package/dist/runtime/components/actions/config.vue.d.ts +0 -158
- package/dist/runtime/components/actions/schema.d.ts +0 -294
- package/dist/runtime/components/actions/schema.js +0 -210
- package/dist/runtime/components/actions/utils/button-registry.d.ts +0 -25
- package/dist/runtime/components/actions/utils/button-registry.js +0 -1
- package/dist/runtime/components/actions/utils/resolve.d.ts +0 -27
- package/dist/runtime/components/actions/utils/resolve.js +0 -82
- package/dist/runtime/components/app.d.vue.ts +0 -13
- package/dist/runtime/components/app.vue +0 -202
- package/dist/runtime/components/app.vue.d.ts +0 -13
- package/dist/runtime/components/block-layout-editor/index.d.vue.ts +0 -90
- package/dist/runtime/components/block-layout-editor/index.vue +0 -1312
- package/dist/runtime/components/block-layout-editor/index.vue.d.ts +0 -90
- package/dist/runtime/components/block-layout-editor/meta-strip.d.vue.ts +0 -23
- package/dist/runtime/components/block-layout-editor/meta-strip.vue +0 -83
- package/dist/runtime/components/block-layout-editor/meta-strip.vue.d.ts +0 -23
- package/dist/runtime/components/block-layout-editor/sidebar.d.vue.ts +0 -39
- package/dist/runtime/components/block-layout-editor/sidebar.vue +0 -170
- package/dist/runtime/components/block-layout-editor/sidebar.vue.d.ts +0 -39
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.d.vue.ts +0 -153
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.vue +0 -18
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.vue.d.ts +0 -153
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.d.vue.ts +0 -158
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.vue +0 -22
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.vue.d.ts +0 -158
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +0 -98
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.js +0 -28
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.d.vue.ts +0 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.vue +0 -22
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.vue.d.ts +0 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.d.vue.ts +0 -72
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.vue +0 -24
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.vue.d.ts +0 -72
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.d.ts +0 -84
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.js +0 -30
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/config.d.vue.ts +0 -35
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/config.vue +0 -66
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/config.vue.d.ts +0 -35
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/runtime.d.vue.ts +0 -35
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/runtime.vue +0 -19
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/runtime.vue.d.ts +0 -35
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.d.ts +0 -35
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.js +0 -31
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +0 -350
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue +0 -22
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +0 -350
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +0 -345
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue +0 -17
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +0 -345
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +0 -393
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.js +0 -28
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/config.d.vue.ts +0 -86
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/config.vue +0 -498
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/config.vue.d.ts +0 -86
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/runtime.d.vue.ts +0 -86
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/runtime.vue +0 -62
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/runtime.vue.d.ts +0 -86
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.d.ts +0 -155
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.js +0 -94
- package/dist/runtime/components/config/breadcrumb-extension.d.ts +0 -15
- package/dist/runtime/components/config/breadcrumb-extension.js +0 -1
- package/dist/runtime/components/config/breadcrumb.d.vue.ts +0 -7
- package/dist/runtime/components/config/breadcrumb.vue +0 -61
- package/dist/runtime/components/config/breadcrumb.vue.d.ts +0 -7
- package/dist/runtime/components/config/config.d.vue.ts +0 -7
- package/dist/runtime/components/config/config.vue +0 -139
- package/dist/runtime/components/config/config.vue.d.ts +0 -7
- package/dist/runtime/components/config/footer.d.vue.ts +0 -11
- package/dist/runtime/components/config/footer.vue +0 -62
- package/dist/runtime/components/config/footer.vue.d.ts +0 -11
- package/dist/runtime/components/config/index.d.vue.ts +0 -37
- package/dist/runtime/components/config/index.vue +0 -98
- package/dist/runtime/components/config/index.vue.d.ts +0 -37
- package/dist/runtime/components/config/schema.d.ts +0 -102
- package/dist/runtime/components/config/schema.js +0 -23
- package/dist/runtime/components/config/use-editor.d.ts +0 -102
- package/dist/runtime/components/config/use-editor.js +0 -388
- package/dist/runtime/components/config/utils/block-ref-cache.d.ts +0 -9
- package/dist/runtime/components/config/utils/block-ref-cache.js +0 -14
- package/dist/runtime/components/config/utils/resolve.d.ts +0 -39
- package/dist/runtime/components/config/utils/resolve.js +0 -62
- package/dist/runtime/components/form/config.d.vue.ts +0 -16
- package/dist/runtime/components/form/config.vue +0 -111
- package/dist/runtime/components/form/config.vue.d.ts +0 -16
- package/dist/runtime/components/form/field-layout.d.ts +0 -5
- package/dist/runtime/components/form/field-layout.js +0 -1
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/config.d.vue.ts +0 -37
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/config.vue +0 -87
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/config.vue.d.ts +0 -37
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/runtime.vue +0 -22
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +0 -33
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.js +0 -25
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +0 -73
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue +0 -247
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +0 -73
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.vue +0 -118
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +0 -51
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +0 -48
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.d.vue.ts +0 -75
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue +0 -288
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue.d.ts +0 -75
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.vue +0 -93
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +0 -53
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.js +0 -52
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.d.vue.ts +0 -149
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue +0 -97
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue.d.ts +0 -149
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/runtime.vue +0 -26
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +0 -95
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.js +0 -28
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +0 -91
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue +0 -308
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +0 -91
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/runtime.vue +0 -240
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.d.ts +0 -75
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.js +0 -70
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +0 -99
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue +0 -472
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +0 -99
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/runtime.vue +0 -115
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +0 -75
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.js +0 -77
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +0 -119
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue +0 -653
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +0 -119
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/runtime.vue +0 -148
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +0 -87
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.js +0 -103
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +0 -103
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue +0 -554
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +0 -103
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/runtime.vue +0 -117
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +0 -87
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.js +0 -95
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +0 -123
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue +0 -737
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +0 -123
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/runtime.vue +0 -150
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +0 -99
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.js +0 -121
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.d.vue.ts +0 -65
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.vue +0 -361
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.vue.d.ts +0 -65
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/runtime.vue +0 -91
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +0 -57
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.js +0 -66
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +0 -67
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue +0 -465
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +0 -67
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/runtime.vue +0 -115
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +0 -59
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.js +0 -80
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +0 -83
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue +0 -405
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +0 -83
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue +0 -163
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +0 -56
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +0 -69
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +0 -99
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue +0 -457
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +0 -99
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/runtime.vue +0 -238
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +0 -65
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.js +0 -80
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +0 -85
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue +0 -226
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +0 -85
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/runtime.vue +0 -93
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +0 -57
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.js +0 -51
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/config.d.vue.ts +0 -121
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/config.vue +0 -469
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/config.vue.d.ts +0 -121
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/runtime.vue +0 -257
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.d.ts +0 -140
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.js +0 -143
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.d.vue.ts +0 -115
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.vue +0 -612
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.vue.d.ts +0 -115
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/runtime.vue +0 -375
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.d.ts +0 -79
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.js +0 -86
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +0 -93
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue +0 -330
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +0 -93
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/runtime.vue +0 -281
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +0 -74
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.js +0 -83
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.d.vue.ts +0 -105
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue +0 -332
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue.d.ts +0 -105
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/row.d.vue.ts +0 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/row.vue +0 -119
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/row.vue.d.ts +0 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/runtime.d.vue.ts +0 -8
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/runtime.vue +0 -218
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/runtime.vue.d.ts +0 -8
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +0 -111
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.js +0 -78
- package/dist/runtime/components/form/index.d.vue.ts +0 -22
- package/dist/runtime/components/form/index.vue +0 -175
- package/dist/runtime/components/form/index.vue.d.ts +0 -22
- package/dist/runtime/components/form/schema.d.ts +0 -164
- package/dist/runtime/components/form/schema.js +0 -77
- package/dist/runtime/components/form/unit-config.d.vue.ts +0 -63
- package/dist/runtime/components/form/unit-config.vue +0 -498
- package/dist/runtime/components/form/unit-config.vue.d.ts +0 -63
- package/dist/runtime/components/form/utils/common.d.ts +0 -15
- package/dist/runtime/components/form/utils/common.js +0 -26
- package/dist/runtime/components/form/utils/resolve.d.ts +0 -77
- package/dist/runtime/components/form/utils/resolve.js +0 -74
- package/dist/runtime/components/form/utils/schema-meta.d.ts +0 -5
- package/dist/runtime/components/form/utils/schema-meta.js +0 -48
- package/dist/runtime/components/form/utils/state.d.ts +0 -11
- package/dist/runtime/components/form/utils/state.js +0 -26
- package/dist/runtime/components/modal.d.vue.ts +0 -56
- package/dist/runtime/components/modal.vue +0 -153
- package/dist/runtime/components/modal.vue.d.ts +0 -56
- package/dist/runtime/components/sidebar-takeover.d.ts +0 -6
- package/dist/runtime/components/sidebar-takeover.js +0 -1
- package/dist/runtime/components/table/ai/columns-button.d.vue.ts +0 -12
- package/dist/runtime/components/table/ai/columns-button.vue +0 -492
- package/dist/runtime/components/table/ai/columns-button.vue.d.ts +0 -12
- package/dist/runtime/components/table/ai/columns-task.md +0 -44
- package/dist/runtime/components/table/ai/data-source-button.d.vue.ts +0 -20
- package/dist/runtime/components/table/ai/data-source-button.vue +0 -325
- package/dist/runtime/components/table/ai/data-source-button.vue.d.ts +0 -20
- package/dist/runtime/components/table/ai/data-source-task.md +0 -17
- package/dist/runtime/components/table/column-layout.d.ts +0 -5
- package/dist/runtime/components/table/column-layout.js +0 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/config.d.vue.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/config.vue +0 -112
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/config.vue.d.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/runtime.d.vue.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/runtime.vue +0 -28
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/runtime.vue.d.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +0 -94
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.js +0 -45
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/config.d.vue.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/config.vue +0 -225
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/config.vue.d.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/runtime.d.vue.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/runtime.vue +0 -32
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/runtime.vue.d.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +0 -40
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +0 -42
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.d.vue.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue +0 -215
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue.d.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.d.vue.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.vue +0 -46
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.vue.d.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +0 -40
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +0 -45
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/config.d.vue.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/config.vue +0 -180
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/config.vue.d.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/runtime.d.vue.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/runtime.vue +0 -68
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/runtime.vue.d.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +0 -51
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.js +0 -51
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.d.vue.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue +0 -293
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue.d.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/runtime.d.vue.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/runtime.vue +0 -97
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/runtime.vue.d.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +0 -44
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +0 -50
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/config.d.vue.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/config.vue +0 -141
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/config.vue.d.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/header.d.vue.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/header.vue +0 -60
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/header.vue.d.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.d.vue.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.vue +0 -117
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.vue.d.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.d.ts +0 -23
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.js +0 -50
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.d.vue.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue +0 -255
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue.d.ts +0 -10
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.d.vue.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.vue +0 -54
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.vue.d.ts +0 -9
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +0 -43
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +0 -48
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.d.vue.ts +0 -10
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.vue +0 -280
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.vue.d.ts +0 -10
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.d.vue.ts +0 -9
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue +0 -82
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue.d.ts +0 -9
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +0 -42
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.js +0 -65
- package/dist/runtime/components/table/config.d.vue.ts +0 -16
- package/dist/runtime/components/table/config.vue +0 -1581
- package/dist/runtime/components/table/config.vue.d.ts +0 -16
- package/dist/runtime/components/table/index.d.vue.ts +0 -93
- package/dist/runtime/components/table/index.vue +0 -893
- package/dist/runtime/components/table/index.vue.d.ts +0 -93
- package/dist/runtime/components/table/schema.d.ts +0 -633
- package/dist/runtime/components/table/schema.js +0 -258
- package/dist/runtime/components/table/utils/host.d.ts +0 -9
- package/dist/runtime/components/table/utils/host.js +0 -8
- package/dist/runtime/components/table/utils/resolve.d.ts +0 -32
- package/dist/runtime/components/table/utils/resolve.js +0 -50
- package/dist/runtime/components/table/utils/runtime.d.ts +0 -6
- package/dist/runtime/components/table/utils/runtime.js +0 -28
- package/dist/runtime/components/table/utils/schema-meta.d.ts +0 -5
- package/dist/runtime/components/table/utils/schema-meta.js +0 -48
- package/dist/runtime/components/table/utils/shared.d.ts +0 -40
- package/dist/runtime/components/table/utils/shared.js +0 -67
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.d.vue.ts +0 -21
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue +0 -20
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue.d.ts +0 -21
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.d.vue.ts +0 -18
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue +0 -21
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +0 -18
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.d.vue.ts +0 -18
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue +0 -21
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +0 -18
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.d.vue.ts +0 -32
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue +0 -44
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +0 -32
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.d.vue.ts +0 -18
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue +0 -22
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +0 -18
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.d.vue.ts +0 -17
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +0 -15
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +0 -17
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.d.vue.ts +0 -17
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.vue +0 -15
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +0 -17
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.d.vue.ts +0 -18
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue +0 -22
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +0 -18
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.d.vue.ts +0 -14
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue +0 -16
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +0 -14
- package/dist/runtime/components/ui/alert-dialog/index.d.ts +0 -9
- package/dist/runtime/components/ui/alert-dialog/index.js +0 -9
- package/dist/runtime/components/ui/badge/Badge.d.vue.ts +0 -20
- package/dist/runtime/components/ui/badge/Badge.vue +0 -24
- package/dist/runtime/components/ui/badge/Badge.vue.d.ts +0 -20
- package/dist/runtime/components/ui/badge/index.d.ts +0 -6
- package/dist/runtime/components/ui/badge/index.js +0 -18
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.d.vue.ts +0 -17
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.vue +0 -17
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.vue.d.ts +0 -17
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.d.vue.ts +0 -7
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +0 -23
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +0 -7
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.d.vue.ts +0 -17
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue +0 -16
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +0 -17
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.d.vue.ts +0 -20
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue +0 -28
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +0 -20
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.d.vue.ts +0 -17
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue +0 -21
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +0 -17
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.d.vue.ts +0 -17
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue +0 -19
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +0 -17
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.d.vue.ts +0 -17
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +0 -21
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +0 -17
- package/dist/runtime/components/ui/breadcrumb/index.d.ts +0 -7
- package/dist/runtime/components/ui/breadcrumb/index.js +0 -7
- package/dist/runtime/components/ui/button/Button.d.vue.ts +0 -27
- package/dist/runtime/components/ui/button/Button.vue +0 -28
- package/dist/runtime/components/ui/button/Button.vue.d.ts +0 -27
- package/dist/runtime/components/ui/button/index.d.ts +0 -7
- package/dist/runtime/components/ui/button/index.js +0 -25
- package/dist/runtime/components/ui/button-group/ButtonGroup.d.vue.ts +0 -19
- package/dist/runtime/components/ui/button-group/ButtonGroup.vue +0 -19
- package/dist/runtime/components/ui/button-group/ButtonGroup.vue.d.ts +0 -19
- package/dist/runtime/components/ui/button-group/ButtonGroupText.d.vue.ts +0 -22
- package/dist/runtime/components/ui/button-group/ButtonGroupText.vue +0 -23
- package/dist/runtime/components/ui/button-group/ButtonGroupText.vue.d.ts +0 -22
- package/dist/runtime/components/ui/button-group/index.d.ts +0 -7
- package/dist/runtime/components/ui/button-group/index.js +0 -17
- package/dist/runtime/components/ui/calendar/Calendar.d.vue.ts +0 -35
- package/dist/runtime/components/ui/calendar/Calendar.vue +0 -196
- package/dist/runtime/components/ui/calendar/Calendar.vue.d.ts +0 -35
- package/dist/runtime/components/ui/calendar/CalendarCell.d.vue.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarCell.vue +0 -23
- package/dist/runtime/components/ui/calendar/CalendarCell.vue.d.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.d.vue.ts +0 -20
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue +0 -39
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue.d.ts +0 -20
- package/dist/runtime/components/ui/calendar/CalendarGrid.d.vue.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue +0 -22
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue.d.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarGridBody.d.vue.ts +0 -14
- package/dist/runtime/components/ui/calendar/CalendarGridBody.vue +0 -16
- package/dist/runtime/components/ui/calendar/CalendarGridBody.vue.d.ts +0 -14
- package/dist/runtime/components/ui/calendar/CalendarGridHead.d.vue.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarGridHead.vue +0 -17
- package/dist/runtime/components/ui/calendar/CalendarGridHead.vue.d.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarGridRow.d.vue.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue +0 -22
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue.d.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.d.vue.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue +0 -22
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue.d.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarHeader.d.vue.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue +0 -22
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue.d.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarHeading.d.vue.ts +0 -19
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue +0 -27
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue.d.ts +0 -19
- package/dist/runtime/components/ui/calendar/CalendarNextButton.d.vue.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue +0 -31
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue.d.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.d.vue.ts +0 -18
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue +0 -31
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue.d.ts +0 -18
- package/dist/runtime/components/ui/calendar/index.d.ts +0 -13
- package/dist/runtime/components/ui/calendar/index.js +0 -12
- package/dist/runtime/components/ui/checkbox/Checkbox.d.vue.ts +0 -25
- package/dist/runtime/components/ui/checkbox/Checkbox.vue +0 -54
- package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +0 -25
- package/dist/runtime/components/ui/checkbox/index.d.ts +0 -1
- package/dist/runtime/components/ui/checkbox/index.js +0 -1
- package/dist/runtime/components/ui/collapsible/Collapsible.d.vue.ts +0 -20
- package/dist/runtime/components/ui/collapsible/Collapsible.vue +0 -24
- package/dist/runtime/components/ui/collapsible/Collapsible.vue.d.ts +0 -20
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.d.vue.ts +0 -14
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.vue +0 -17
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.vue.d.ts +0 -14
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.d.vue.ts +0 -14
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.vue +0 -16
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +0 -14
- package/dist/runtime/components/ui/collapsible/index.d.ts +0 -3
- package/dist/runtime/components/ui/collapsible/index.js +0 -3
- package/dist/runtime/components/ui/color-picker/ColorPicker.d.vue.ts +0 -18
- package/dist/runtime/components/ui/color-picker/ColorPicker.vue +0 -51
- package/dist/runtime/components/ui/color-picker/ColorPicker.vue.d.ts +0 -18
- package/dist/runtime/components/ui/color-picker/index.d.ts +0 -1
- package/dist/runtime/components/ui/color-picker/index.js +0 -1
- package/dist/runtime/components/ui/command/Command.d.vue.ts +0 -36
- package/dist/runtime/components/ui/command/Command.vue +0 -82
- package/dist/runtime/components/ui/command/Command.vue.d.ts +0 -36
- package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +0 -28
- package/dist/runtime/components/ui/command/CommandDialog.vue +0 -34
- package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +0 -28
- package/dist/runtime/components/ui/command/CommandEmpty.d.vue.ts +0 -18
- package/dist/runtime/components/ui/command/CommandEmpty.vue +0 -28
- package/dist/runtime/components/ui/command/CommandEmpty.vue.d.ts +0 -18
- package/dist/runtime/components/ui/command/CommandGroup.d.vue.ts +0 -19
- package/dist/runtime/components/ui/command/CommandGroup.vue +0 -48
- package/dist/runtime/components/ui/command/CommandGroup.vue.d.ts +0 -19
- package/dist/runtime/components/ui/command/CommandInput.d.vue.ts +0 -8
- package/dist/runtime/components/ui/command/CommandInput.vue +0 -40
- package/dist/runtime/components/ui/command/CommandInput.vue.d.ts +0 -8
- package/dist/runtime/components/ui/command/CommandItem.d.vue.ts +0 -22
- package/dist/runtime/components/ui/command/CommandItem.vue +0 -65
- package/dist/runtime/components/ui/command/CommandItem.vue.d.ts +0 -22
- package/dist/runtime/components/ui/command/CommandList.d.vue.ts +0 -18
- package/dist/runtime/components/ui/command/CommandList.vue +0 -24
- package/dist/runtime/components/ui/command/CommandList.vue.d.ts +0 -18
- package/dist/runtime/components/ui/command/CommandSeparator.d.vue.ts +0 -18
- package/dist/runtime/components/ui/command/CommandSeparator.vue +0 -23
- package/dist/runtime/components/ui/command/CommandSeparator.vue.d.ts +0 -18
- package/dist/runtime/components/ui/command/CommandShortcut.d.vue.ts +0 -17
- package/dist/runtime/components/ui/command/CommandShortcut.vue +0 -15
- package/dist/runtime/components/ui/command/CommandShortcut.vue.d.ts +0 -17
- package/dist/runtime/components/ui/command/index.d.ts +0 -90
- package/dist/runtime/components/ui/command/index.js +0 -12
- package/dist/runtime/components/ui/config-toolbar/ConfigToolbar.d.vue.ts +0 -12
- package/dist/runtime/components/ui/config-toolbar/ConfigToolbar.vue +0 -152
- package/dist/runtime/components/ui/config-toolbar/ConfigToolbar.vue.d.ts +0 -12
- package/dist/runtime/components/ui/config-toolbar/index.d.ts +0 -1
- package/dist/runtime/components/ui/config-toolbar/index.js +0 -1
- package/dist/runtime/components/ui/context-menu/ContextMenu.d.vue.ts +0 -18
- package/dist/runtime/components/ui/context-menu/ContextMenu.vue +0 -19
- package/dist/runtime/components/ui/context-menu/ContextMenu.vue.d.ts +0 -18
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.d.vue.ts +0 -26
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue +0 -41
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +0 -26
- package/dist/runtime/components/ui/context-menu/ContextMenuContent.d.vue.ts +0 -31
- package/dist/runtime/components/ui/context-menu/ContextMenuContent.vue +0 -48
- package/dist/runtime/components/ui/context-menu/ContextMenuContent.vue.d.ts +0 -31
- package/dist/runtime/components/ui/context-menu/ContextMenuGroup.d.vue.ts +0 -14
- package/dist/runtime/components/ui/context-menu/ContextMenuGroup.vue +0 -16
- package/dist/runtime/components/ui/context-menu/ContextMenuGroup.vue.d.ts +0 -14
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.d.vue.ts +0 -23
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.vue +0 -27
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.vue.d.ts +0 -23
- package/dist/runtime/components/ui/context-menu/ContextMenuLabel.d.vue.ts +0 -19
- package/dist/runtime/components/ui/context-menu/ContextMenuLabel.vue +0 -23
- package/dist/runtime/components/ui/context-menu/ContextMenuLabel.vue.d.ts +0 -19
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioGroup.d.vue.ts +0 -18
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioGroup.vue +0 -19
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +0 -18
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.d.vue.ts +0 -25
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue +0 -45
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +0 -25
- package/dist/runtime/components/ui/context-menu/ContextMenuSeparator.d.vue.ts +0 -8
- package/dist/runtime/components/ui/context-menu/ContextMenuSeparator.vue +0 -19
- package/dist/runtime/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +0 -8
- package/dist/runtime/components/ui/context-menu/ContextMenuShortcut.d.vue.ts +0 -17
- package/dist/runtime/components/ui/context-menu/ContextMenuShortcut.vue +0 -15
- package/dist/runtime/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +0 -17
- package/dist/runtime/components/ui/context-menu/ContextMenuSub.d.vue.ts +0 -18
- package/dist/runtime/components/ui/context-menu/ContextMenuSub.vue +0 -18
- package/dist/runtime/components/ui/context-menu/ContextMenuSub.vue.d.ts +0 -18
- package/dist/runtime/components/ui/context-menu/ContextMenuSubContent.d.vue.ts +0 -34
- package/dist/runtime/components/ui/context-menu/ContextMenuSubContent.vue +0 -41
- package/dist/runtime/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +0 -34
- package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.d.vue.ts +0 -19
- package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue +0 -31
- package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +0 -19
- package/dist/runtime/components/ui/context-menu/ContextMenuTrigger.d.vue.ts +0 -14
- package/dist/runtime/components/ui/context-menu/ContextMenuTrigger.vue +0 -18
- package/dist/runtime/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +0 -14
- package/dist/runtime/components/ui/context-menu/index.d.ts +0 -14
- package/dist/runtime/components/ui/context-menu/index.js +0 -14
- package/dist/runtime/components/ui/date-picker/DatePicker.d.vue.ts +0 -50
- package/dist/runtime/components/ui/date-picker/DatePicker.vue +0 -257
- package/dist/runtime/components/ui/date-picker/DatePicker.vue.d.ts +0 -50
- package/dist/runtime/components/ui/date-picker/DatePickerDatePanel.d.vue.ts +0 -14
- package/dist/runtime/components/ui/date-picker/DatePickerDatePanel.vue +0 -37
- package/dist/runtime/components/ui/date-picker/DatePickerDatePanel.vue.d.ts +0 -14
- package/dist/runtime/components/ui/date-picker/DatePickerDateTimePanel.d.vue.ts +0 -20
- package/dist/runtime/components/ui/date-picker/DatePickerDateTimePanel.vue +0 -147
- package/dist/runtime/components/ui/date-picker/DatePickerDateTimePanel.vue.d.ts +0 -20
- package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +0 -31
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue +0 -117
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +0 -31
- package/dist/runtime/components/ui/date-picker/DatePickerMonthPanel.d.vue.ts +0 -14
- package/dist/runtime/components/ui/date-picker/DatePickerMonthPanel.vue +0 -38
- package/dist/runtime/components/ui/date-picker/DatePickerMonthPanel.vue.d.ts +0 -14
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +0 -29
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue +0 -106
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +0 -29
- package/dist/runtime/components/ui/date-picker/DatePickerYearPanel.d.vue.ts +0 -14
- package/dist/runtime/components/ui/date-picker/DatePickerYearPanel.vue +0 -38
- package/dist/runtime/components/ui/date-picker/DatePickerYearPanel.vue.d.ts +0 -14
- package/dist/runtime/components/ui/date-picker/PickerShortcuts.d.vue.ts +0 -28
- package/dist/runtime/components/ui/date-picker/PickerShortcuts.vue +0 -37
- package/dist/runtime/components/ui/date-picker/PickerShortcuts.vue.d.ts +0 -28
- package/dist/runtime/components/ui/date-picker/index.d.ts +0 -10
- package/dist/runtime/components/ui/date-picker/index.js +0 -9
- package/dist/runtime/components/ui/date-picker/types.d.ts +0 -5
- package/dist/runtime/components/ui/date-picker/types.js +0 -7
- package/dist/runtime/components/ui/date-range-picker/DateRangePicker.d.vue.ts +0 -54
- package/dist/runtime/components/ui/date-range-picker/DateRangePicker.vue +0 -304
- package/dist/runtime/components/ui/date-range-picker/DateRangePicker.vue.d.ts +0 -54
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDatePanel.d.vue.ts +0 -15
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDatePanel.vue +0 -27
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDatePanel.vue.d.ts +0 -15
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDateTimePanel.d.vue.ts +0 -23
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDateTimePanel.vue +0 -151
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDateTimePanel.vue.d.ts +0 -23
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +0 -36
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue +0 -169
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +0 -36
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerMonthPanel.d.vue.ts +0 -14
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerMonthPanel.vue +0 -73
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerMonthPanel.vue.d.ts +0 -14
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +0 -34
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue +0 -148
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +0 -34
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerYearPanel.d.vue.ts +0 -14
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerYearPanel.vue +0 -73
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerYearPanel.vue.d.ts +0 -14
- package/dist/runtime/components/ui/date-range-picker/index.d.ts +0 -9
- package/dist/runtime/components/ui/date-range-picker/index.js +0 -8
- package/dist/runtime/components/ui/date-range-picker/types.d.ts +0 -5
- package/dist/runtime/components/ui/date-range-picker/types.js +0 -7
- package/dist/runtime/components/ui/dialog/Dialog.d.vue.ts +0 -21
- package/dist/runtime/components/ui/dialog/Dialog.vue +0 -21
- package/dist/runtime/components/ui/dialog/Dialog.vue.d.ts +0 -21
- package/dist/runtime/components/ui/dialog/DialogClose.d.vue.ts +0 -14
- package/dist/runtime/components/ui/dialog/DialogClose.vue +0 -16
- package/dist/runtime/components/ui/dialog/DialogClose.vue.d.ts +0 -14
- package/dist/runtime/components/ui/dialog/DialogContent.d.vue.ts +0 -37
- package/dist/runtime/components/ui/dialog/DialogContent.vue +0 -164
- package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +0 -37
- package/dist/runtime/components/ui/dialog/DialogDescription.d.vue.ts +0 -18
- package/dist/runtime/components/ui/dialog/DialogDescription.vue +0 -22
- package/dist/runtime/components/ui/dialog/DialogDescription.vue.d.ts +0 -18
- package/dist/runtime/components/ui/dialog/DialogFooter.d.vue.ts +0 -17
- package/dist/runtime/components/ui/dialog/DialogFooter.vue +0 -15
- package/dist/runtime/components/ui/dialog/DialogFooter.vue.d.ts +0 -17
- package/dist/runtime/components/ui/dialog/DialogHeader.d.vue.ts +0 -17
- package/dist/runtime/components/ui/dialog/DialogHeader.vue +0 -15
- package/dist/runtime/components/ui/dialog/DialogHeader.vue.d.ts +0 -17
- package/dist/runtime/components/ui/dialog/DialogOverlay.d.vue.ts +0 -18
- package/dist/runtime/components/ui/dialog/DialogOverlay.vue +0 -22
- package/dist/runtime/components/ui/dialog/DialogOverlay.vue.d.ts +0 -18
- package/dist/runtime/components/ui/dialog/DialogScrollContent.d.vue.ts +0 -38
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue +0 -174
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -38
- package/dist/runtime/components/ui/dialog/DialogTitle.d.vue.ts +0 -18
- package/dist/runtime/components/ui/dialog/DialogTitle.vue +0 -22
- package/dist/runtime/components/ui/dialog/DialogTitle.vue.d.ts +0 -18
- package/dist/runtime/components/ui/dialog/DialogTrigger.d.vue.ts +0 -14
- package/dist/runtime/components/ui/dialog/DialogTrigger.vue +0 -16
- package/dist/runtime/components/ui/dialog/DialogTrigger.vue.d.ts +0 -14
- package/dist/runtime/components/ui/dialog/index.d.ts +0 -10
- package/dist/runtime/components/ui/dialog/index.js +0 -10
- package/dist/runtime/components/ui/drawer/Drawer.d.vue.ts +0 -31
- package/dist/runtime/components/ui/drawer/Drawer.vue +0 -39
- package/dist/runtime/components/ui/drawer/Drawer.vue.d.ts +0 -31
- package/dist/runtime/components/ui/drawer/DrawerClose.d.vue.ts +0 -14
- package/dist/runtime/components/ui/drawer/DrawerClose.vue +0 -19
- package/dist/runtime/components/ui/drawer/DrawerClose.vue.d.ts +0 -14
- package/dist/runtime/components/ui/drawer/DrawerContent.d.vue.ts +0 -24
- package/dist/runtime/components/ui/drawer/DrawerContent.vue +0 -183
- package/dist/runtime/components/ui/drawer/DrawerContent.vue.d.ts +0 -24
- package/dist/runtime/components/ui/drawer/DrawerDescription.d.vue.ts +0 -18
- package/dist/runtime/components/ui/drawer/DrawerDescription.vue +0 -26
- package/dist/runtime/components/ui/drawer/DrawerDescription.vue.d.ts +0 -18
- package/dist/runtime/components/ui/drawer/DrawerFooter.d.vue.ts +0 -17
- package/dist/runtime/components/ui/drawer/DrawerFooter.vue +0 -15
- package/dist/runtime/components/ui/drawer/DrawerFooter.vue.d.ts +0 -17
- package/dist/runtime/components/ui/drawer/DrawerHeader.d.vue.ts +0 -17
- package/dist/runtime/components/ui/drawer/DrawerHeader.vue +0 -15
- package/dist/runtime/components/ui/drawer/DrawerHeader.vue.d.ts +0 -17
- package/dist/runtime/components/ui/drawer/DrawerOverlay.d.vue.ts +0 -7
- package/dist/runtime/components/ui/drawer/DrawerOverlay.vue +0 -19
- package/dist/runtime/components/ui/drawer/DrawerOverlay.vue.d.ts +0 -7
- package/dist/runtime/components/ui/drawer/DrawerTitle.d.vue.ts +0 -18
- package/dist/runtime/components/ui/drawer/DrawerTitle.vue +0 -26
- package/dist/runtime/components/ui/drawer/DrawerTitle.vue.d.ts +0 -18
- package/dist/runtime/components/ui/drawer/DrawerTrigger.d.vue.ts +0 -14
- package/dist/runtime/components/ui/drawer/DrawerTrigger.vue +0 -19
- package/dist/runtime/components/ui/drawer/DrawerTrigger.vue.d.ts +0 -14
- package/dist/runtime/components/ui/drawer/index.d.ts +0 -8
- package/dist/runtime/components/ui/drawer/index.js +0 -8
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.d.vue.ts +0 -20
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue +0 -21
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +0 -20
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +0 -32
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue +0 -52
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -32
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +0 -26
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +0 -29
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -26
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.d.vue.ts +0 -14
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue +0 -18
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -14
- package/dist/runtime/components/ui/dropdown-menu/index.d.ts +0 -4
- package/dist/runtime/components/ui/dropdown-menu/index.js +0 -4
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.d.vue.ts +0 -22
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +0 -150
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue.d.ts +0 -22
- package/dist/runtime/components/ui/expression-editor/index.d.ts +0 -1
- package/dist/runtime/components/ui/expression-editor/index.js +0 -1
- package/dist/runtime/components/ui/field/Field.d.vue.ts +0 -19
- package/dist/runtime/components/ui/field/Field.vue +0 -23
- package/dist/runtime/components/ui/field/Field.vue.d.ts +0 -19
- package/dist/runtime/components/ui/field/FieldContent.d.vue.ts +0 -17
- package/dist/runtime/components/ui/field/FieldContent.vue +0 -18
- package/dist/runtime/components/ui/field/FieldContent.vue.d.ts +0 -17
- package/dist/runtime/components/ui/field/FieldDescription.d.vue.ts +0 -17
- package/dist/runtime/components/ui/field/FieldDescription.vue +0 -20
- package/dist/runtime/components/ui/field/FieldDescription.vue.d.ts +0 -17
- package/dist/runtime/components/ui/field/FieldError.d.vue.ts +0 -20
- package/dist/runtime/components/ui/field/FieldError.vue +0 -51
- package/dist/runtime/components/ui/field/FieldError.vue.d.ts +0 -20
- package/dist/runtime/components/ui/field/FieldGroup.d.vue.ts +0 -17
- package/dist/runtime/components/ui/field/FieldGroup.vue +0 -18
- package/dist/runtime/components/ui/field/FieldGroup.vue.d.ts +0 -17
- package/dist/runtime/components/ui/field/FieldLabel.d.vue.ts +0 -19
- package/dist/runtime/components/ui/field/FieldLabel.vue +0 -29
- package/dist/runtime/components/ui/field/FieldLabel.vue.d.ts +0 -19
- package/dist/runtime/components/ui/field/FieldLegend.d.vue.ts +0 -18
- package/dist/runtime/components/ui/field/FieldLegend.vue +0 -22
- package/dist/runtime/components/ui/field/FieldLegend.vue.d.ts +0 -18
- package/dist/runtime/components/ui/field/FieldSeparator.d.vue.ts +0 -17
- package/dist/runtime/components/ui/field/FieldSeparator.vue +0 -27
- package/dist/runtime/components/ui/field/FieldSeparator.vue.d.ts +0 -17
- package/dist/runtime/components/ui/field/FieldSet.d.vue.ts +0 -17
- package/dist/runtime/components/ui/field/FieldSet.vue +0 -15
- package/dist/runtime/components/ui/field/FieldSet.vue.d.ts +0 -17
- package/dist/runtime/components/ui/field/FieldTitle.d.vue.ts +0 -17
- package/dist/runtime/components/ui/field/FieldTitle.vue +0 -18
- package/dist/runtime/components/ui/field/FieldTitle.vue.d.ts +0 -17
- package/dist/runtime/components/ui/field/index.d.ts +0 -15
- package/dist/runtime/components/ui/field/index.js +0 -61
- package/dist/runtime/components/ui/icon-picker/IconPicker.d.vue.ts +0 -12
- package/dist/runtime/components/ui/icon-picker/IconPicker.vue +0 -48
- package/dist/runtime/components/ui/icon-picker/IconPicker.vue.d.ts +0 -12
- package/dist/runtime/components/ui/icon-picker/index.d.ts +0 -1
- package/dist/runtime/components/ui/icon-picker/index.js +0 -1
- package/dist/runtime/components/ui/input/Input.d.vue.ts +0 -15
- package/dist/runtime/components/ui/input/Input.vue +0 -31
- package/dist/runtime/components/ui/input/Input.vue.d.ts +0 -15
- package/dist/runtime/components/ui/input/index.d.ts +0 -1
- package/dist/runtime/components/ui/input/index.js +0 -1
- package/dist/runtime/components/ui/input-group/InputGroup.d.vue.ts +0 -17
- package/dist/runtime/components/ui/input-group/InputGroup.vue +0 -34
- package/dist/runtime/components/ui/input-group/InputGroup.vue.d.ts +0 -17
- package/dist/runtime/components/ui/input-group/InputGroupAddon.d.vue.ts +0 -21
- package/dist/runtime/components/ui/input-group/InputGroupAddon.vue +0 -33
- package/dist/runtime/components/ui/input-group/InputGroupAddon.vue.d.ts +0 -21
- package/dist/runtime/components/ui/input-group/InputGroupButton.d.vue.ts +0 -24
- package/dist/runtime/components/ui/input-group/InputGroupButton.vue +0 -20
- package/dist/runtime/components/ui/input-group/InputGroupButton.vue.d.ts +0 -24
- package/dist/runtime/components/ui/input-group/InputGroupCombobox.d.vue.ts +0 -28
- package/dist/runtime/components/ui/input-group/InputGroupCombobox.vue +0 -90
- package/dist/runtime/components/ui/input-group/InputGroupCombobox.vue.d.ts +0 -28
- package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.d.vue.ts +0 -10
- package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.vue +0 -27
- package/dist/runtime/components/ui/input-group/InputGroupComboboxInput.vue.d.ts +0 -10
- package/dist/runtime/components/ui/input-group/InputGroupInput.d.vue.ts +0 -8
- package/dist/runtime/components/ui/input-group/InputGroupInput.vue +0 -20
- package/dist/runtime/components/ui/input-group/InputGroupInput.vue.d.ts +0 -8
- package/dist/runtime/components/ui/input-group/InputGroupNumberField.d.vue.ts +0 -18
- package/dist/runtime/components/ui/input-group/InputGroupNumberField.vue +0 -57
- package/dist/runtime/components/ui/input-group/InputGroupNumberField.vue.d.ts +0 -18
- package/dist/runtime/components/ui/input-group/InputGroupText.d.vue.ts +0 -17
- package/dist/runtime/components/ui/input-group/InputGroupText.vue +0 -17
- package/dist/runtime/components/ui/input-group/InputGroupText.vue.d.ts +0 -17
- package/dist/runtime/components/ui/input-group/InputGroupTextarea.d.vue.ts +0 -7
- package/dist/runtime/components/ui/input-group/InputGroupTextarea.vue +0 -17
- package/dist/runtime/components/ui/input-group/InputGroupTextarea.vue.d.ts +0 -7
- package/dist/runtime/components/ui/input-group/index.d.ts +0 -19
- package/dist/runtime/components/ui/input-group/index.js +0 -43
- package/dist/runtime/components/ui/label/Label.d.vue.ts +0 -18
- package/dist/runtime/components/ui/label/Label.vue +0 -50
- package/dist/runtime/components/ui/label/Label.vue.d.ts +0 -18
- package/dist/runtime/components/ui/label/index.d.ts +0 -1
- package/dist/runtime/components/ui/label/index.js +0 -1
- package/dist/runtime/components/ui/locale/Locale.d.vue.ts +0 -28
- package/dist/runtime/components/ui/locale/Locale.vue +0 -350
- package/dist/runtime/components/ui/locale/Locale.vue.d.ts +0 -28
- package/dist/runtime/components/ui/locale/index.d.ts +0 -1
- package/dist/runtime/components/ui/locale/index.js +0 -1
- package/dist/runtime/components/ui/markdown/Markdown.d.vue.ts +0 -26
- package/dist/runtime/components/ui/markdown/Markdown.vue +0 -109
- package/dist/runtime/components/ui/markdown/Markdown.vue.d.ts +0 -26
- package/dist/runtime/components/ui/markdown/index.d.ts +0 -1
- package/dist/runtime/components/ui/markdown/index.js +0 -1
- package/dist/runtime/components/ui/native-select/NativeSelect.d.vue.ts +0 -23
- package/dist/runtime/components/ui/native-select/NativeSelect.vue +0 -42
- package/dist/runtime/components/ui/native-select/NativeSelect.vue.d.ts +0 -23
- package/dist/runtime/components/ui/native-select/index.d.ts +0 -1
- package/dist/runtime/components/ui/native-select/index.js +0 -1
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.d.vue.ts +0 -27
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue +0 -41
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue.d.ts +0 -27
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.d.vue.ts +0 -28
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.vue +0 -32
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.vue.d.ts +0 -28
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.d.vue.ts +0 -8
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue +0 -23
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue.d.ts +0 -8
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.d.vue.ts +0 -18
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.vue +0 -22
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.vue.d.ts +0 -18
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.d.vue.ts +0 -26
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +0 -27
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue.d.ts +0 -26
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.d.vue.ts +0 -18
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.vue +0 -27
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.vue.d.ts +0 -18
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.d.vue.ts +0 -18
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue +0 -33
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue.d.ts +0 -18
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.d.vue.ts +0 -8
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue +0 -32
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue.d.ts +0 -8
- package/dist/runtime/components/ui/navigation-menu/index.d.ts +0 -9
- package/dist/runtime/components/ui/navigation-menu/index.js +0 -12
- package/dist/runtime/components/ui/number-field/NumberField.d.vue.ts +0 -26
- package/dist/runtime/components/ui/number-field/NumberField.vue +0 -39
- package/dist/runtime/components/ui/number-field/NumberField.vue.d.ts +0 -26
- package/dist/runtime/components/ui/number-field/NumberFieldContent.d.vue.ts +0 -17
- package/dist/runtime/components/ui/number-field/NumberFieldContent.vue +0 -12
- package/dist/runtime/components/ui/number-field/NumberFieldContent.vue.d.ts +0 -17
- package/dist/runtime/components/ui/number-field/NumberFieldDecrement.d.vue.ts +0 -18
- package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue +0 -29
- package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue.d.ts +0 -18
- package/dist/runtime/components/ui/number-field/NumberFieldIncrement.d.vue.ts +0 -18
- package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue +0 -29
- package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue.d.ts +0 -18
- package/dist/runtime/components/ui/number-field/NumberFieldInput.d.vue.ts +0 -7
- package/dist/runtime/components/ui/number-field/NumberFieldInput.vue +0 -14
- package/dist/runtime/components/ui/number-field/NumberFieldInput.vue.d.ts +0 -7
- package/dist/runtime/components/ui/number-field/index.d.ts +0 -5
- package/dist/runtime/components/ui/number-field/index.js +0 -5
- package/dist/runtime/components/ui/popover/Popover.d.vue.ts +0 -21
- package/dist/runtime/components/ui/popover/Popover.vue +0 -21
- package/dist/runtime/components/ui/popover/Popover.vue.d.ts +0 -21
- package/dist/runtime/components/ui/popover/PopoverAnchor.d.vue.ts +0 -14
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue +0 -17
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue.d.ts +0 -14
- package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +0 -36
- package/dist/runtime/components/ui/popover/PopoverContent.vue +0 -58
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +0 -36
- package/dist/runtime/components/ui/popover/PopoverTrigger.d.vue.ts +0 -14
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue +0 -16
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue.d.ts +0 -14
- package/dist/runtime/components/ui/popover/index.d.ts +0 -4
- package/dist/runtime/components/ui/popover/index.js +0 -4
- package/dist/runtime/components/ui/range-calendar/RangeCalendar.d.vue.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendar.vue +0 -100
- package/dist/runtime/components/ui/range-calendar/RangeCalendar.vue.d.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCell.d.vue.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCell.vue +0 -49
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCell.vue.d.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.d.vue.ts +0 -20
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue +0 -45
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +0 -20
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGrid.d.vue.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGrid.vue +0 -22
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGrid.vue.d.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridBody.d.vue.ts +0 -14
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridBody.vue +0 -16
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridBody.vue.d.ts +0 -14
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridHead.d.vue.ts +0 -14
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridHead.vue +0 -16
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridHead.vue.d.ts +0 -14
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridRow.d.vue.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridRow.vue +0 -22
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridRow.vue.d.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeadCell.d.vue.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeadCell.vue +0 -22
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeadCell.vue.d.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeader.d.vue.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeader.vue +0 -22
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeader.vue.d.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeading.d.vue.ts +0 -19
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeading.vue +0 -26
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeading.vue.d.ts +0 -19
- package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.d.vue.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue +0 -32
- package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue.d.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.d.vue.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue +0 -32
- package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue.d.ts +0 -18
- package/dist/runtime/components/ui/range-calendar/index.d.ts +0 -12
- package/dist/runtime/components/ui/range-calendar/index.js +0 -12
- package/dist/runtime/components/ui/scroll-area/ScrollArea.d.vue.ts +0 -18
- package/dist/runtime/components/ui/scroll-area/ScrollArea.vue +0 -37
- package/dist/runtime/components/ui/scroll-area/ScrollArea.vue.d.ts +0 -18
- package/dist/runtime/components/ui/scroll-area/ScrollBar.d.vue.ts +0 -10
- package/dist/runtime/components/ui/scroll-area/ScrollBar.vue +0 -32
- package/dist/runtime/components/ui/scroll-area/ScrollBar.vue.d.ts +0 -10
- package/dist/runtime/components/ui/scroll-area/index.d.ts +0 -2
- package/dist/runtime/components/ui/scroll-area/index.js +0 -2
- package/dist/runtime/components/ui/select/Select.d.vue.ts +0 -24
- package/dist/runtime/components/ui/select/Select.vue +0 -29
- package/dist/runtime/components/ui/select/Select.vue.d.ts +0 -24
- package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +0 -28
- package/dist/runtime/components/ui/select/SelectContent.vue +0 -68
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +0 -28
- package/dist/runtime/components/ui/select/SelectGroup.d.vue.ts +0 -14
- package/dist/runtime/components/ui/select/SelectGroup.vue +0 -17
- package/dist/runtime/components/ui/select/SelectGroup.vue.d.ts +0 -14
- package/dist/runtime/components/ui/select/SelectItem.d.vue.ts +0 -20
- package/dist/runtime/components/ui/select/SelectItem.vue +0 -48
- package/dist/runtime/components/ui/select/SelectItem.vue.d.ts +0 -20
- package/dist/runtime/components/ui/select/SelectItemText.d.vue.ts +0 -14
- package/dist/runtime/components/ui/select/SelectItemText.vue +0 -17
- package/dist/runtime/components/ui/select/SelectItemText.vue.d.ts +0 -14
- package/dist/runtime/components/ui/select/SelectLabel.d.vue.ts +0 -18
- package/dist/runtime/components/ui/select/SelectLabel.vue +0 -20
- package/dist/runtime/components/ui/select/SelectLabel.vue.d.ts +0 -18
- package/dist/runtime/components/ui/select/SelectScrollDownButton.d.vue.ts +0 -18
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue +0 -29
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue.d.ts +0 -18
- package/dist/runtime/components/ui/select/SelectScrollUpButton.d.vue.ts +0 -18
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +0 -29
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue.d.ts +0 -18
- package/dist/runtime/components/ui/select/SelectSeparator.d.vue.ts +0 -8
- package/dist/runtime/components/ui/select/SelectSeparator.vue +0 -20
- package/dist/runtime/components/ui/select/SelectSeparator.vue.d.ts +0 -8
- package/dist/runtime/components/ui/select/SelectTrigger.d.vue.ts +0 -21
- package/dist/runtime/components/ui/select/SelectTrigger.vue +0 -38
- package/dist/runtime/components/ui/select/SelectTrigger.vue.d.ts +0 -21
- package/dist/runtime/components/ui/select/SelectValue.d.vue.ts +0 -14
- package/dist/runtime/components/ui/select/SelectValue.vue +0 -18
- package/dist/runtime/components/ui/select/SelectValue.vue.d.ts +0 -14
- package/dist/runtime/components/ui/select/index.d.ts +0 -11
- package/dist/runtime/components/ui/select/index.js +0 -11
- package/dist/runtime/components/ui/separator/Separator.d.vue.ts +0 -11
- package/dist/runtime/components/ui/separator/Separator.vue +0 -27
- package/dist/runtime/components/ui/separator/Separator.vue.d.ts +0 -11
- package/dist/runtime/components/ui/separator/index.d.ts +0 -1
- package/dist/runtime/components/ui/separator/index.js +0 -1
- package/dist/runtime/components/ui/sheet/Sheet.d.vue.ts +0 -21
- package/dist/runtime/components/ui/sheet/Sheet.vue +0 -21
- package/dist/runtime/components/ui/sheet/Sheet.vue.d.ts +0 -21
- package/dist/runtime/components/ui/sheet/SheetClose.d.vue.ts +0 -14
- package/dist/runtime/components/ui/sheet/SheetClose.vue +0 -16
- package/dist/runtime/components/ui/sheet/SheetClose.vue.d.ts +0 -14
- package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +0 -35
- package/dist/runtime/components/ui/sheet/SheetContent.vue +0 -53
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +0 -35
- package/dist/runtime/components/ui/sheet/SheetDescription.d.vue.ts +0 -18
- package/dist/runtime/components/ui/sheet/SheetDescription.vue +0 -21
- package/dist/runtime/components/ui/sheet/SheetDescription.vue.d.ts +0 -18
- package/dist/runtime/components/ui/sheet/SheetFooter.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sheet/SheetFooter.vue +0 -17
- package/dist/runtime/components/ui/sheet/SheetFooter.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sheet/SheetHeader.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sheet/SheetHeader.vue +0 -15
- package/dist/runtime/components/ui/sheet/SheetHeader.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sheet/SheetOverlay.d.vue.ts +0 -18
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue +0 -22
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue.d.ts +0 -18
- package/dist/runtime/components/ui/sheet/SheetTitle.d.vue.ts +0 -18
- package/dist/runtime/components/ui/sheet/SheetTitle.vue +0 -21
- package/dist/runtime/components/ui/sheet/SheetTitle.vue.d.ts +0 -18
- package/dist/runtime/components/ui/sheet/SheetTrigger.d.vue.ts +0 -14
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue +0 -16
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue.d.ts +0 -14
- package/dist/runtime/components/ui/sheet/index.d.ts +0 -8
- package/dist/runtime/components/ui/sheet/index.js +0 -8
- package/dist/runtime/components/ui/sidebar/Sidebar.d.vue.ts +0 -22
- package/dist/runtime/components/ui/sidebar/Sidebar.vue +0 -93
- package/dist/runtime/components/ui/sidebar/Sidebar.vue.d.ts +0 -22
- package/dist/runtime/components/ui/sidebar/SidebarContent.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue +0 -16
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarFooter.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue +0 -16
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarGroup.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue +0 -16
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.d.vue.ts +0 -18
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue +0 -26
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue.d.ts +0 -18
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue +0 -16
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.d.vue.ts +0 -18
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue +0 -25
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +0 -18
- package/dist/runtime/components/ui/sidebar/SidebarHeader.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue +0 -16
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarInput.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue +0 -20
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarInset.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue +0 -19
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarMenu.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue +0 -16
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.d.vue.ts +0 -21
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue +0 -31
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue.d.ts +0 -21
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue +0 -24
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.d.vue.ts +0 -24
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue +0 -50
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue.d.ts +0 -24
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.d.vue.ts +0 -26
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue +0 -28
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +0 -26
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue +0 -16
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.d.vue.ts +0 -8
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue +0 -32
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +0 -8
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue +0 -20
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.d.vue.ts +0 -23
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue +0 -32
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +0 -23
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue +0 -16
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarProvider.d.vue.ts +0 -26
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue +0 -61
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue.d.ts +0 -26
- package/dist/runtime/components/ui/sidebar/SidebarRail.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue +0 -30
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.d.vue.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue.d.ts +0 -17
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.d.vue.ts +0 -7
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue +0 -23
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue.d.ts +0 -7
- package/dist/runtime/components/ui/sidebar/index.d.ts +0 -37
- package/dist/runtime/components/ui/sidebar/index.js +0 -45
- package/dist/runtime/components/ui/sidebar/utils.d.ts +0 -56
- package/dist/runtime/components/ui/sidebar/utils.js +0 -8
- package/dist/runtime/components/ui/skeleton/Skeleton.d.vue.ts +0 -7
- package/dist/runtime/components/ui/skeleton/Skeleton.vue +0 -14
- package/dist/runtime/components/ui/skeleton/Skeleton.vue.d.ts +0 -7
- package/dist/runtime/components/ui/skeleton/index.d.ts +0 -1
- package/dist/runtime/components/ui/skeleton/index.js +0 -1
- package/dist/runtime/components/ui/switch/Switch.d.vue.ts +0 -29
- package/dist/runtime/components/ui/switch/Switch.vue +0 -58
- package/dist/runtime/components/ui/switch/Switch.vue.d.ts +0 -29
- package/dist/runtime/components/ui/switch/index.d.ts +0 -1
- package/dist/runtime/components/ui/switch/index.js +0 -1
- package/dist/runtime/components/ui/tabs/Tabs.d.vue.ts +0 -24
- package/dist/runtime/components/ui/tabs/Tabs.vue +0 -31
- package/dist/runtime/components/ui/tabs/Tabs.vue.d.ts +0 -24
- package/dist/runtime/components/ui/tabs/TabsContent.d.vue.ts +0 -18
- package/dist/runtime/components/ui/tabs/TabsContent.vue +0 -23
- package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +0 -18
- package/dist/runtime/components/ui/tabs/TabsList.d.vue.ts +0 -18
- package/dist/runtime/components/ui/tabs/TabsList.vue +0 -86
- package/dist/runtime/components/ui/tabs/TabsList.vue.d.ts +0 -18
- package/dist/runtime/components/ui/tabs/TabsTrigger.d.vue.ts +0 -18
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue +0 -32
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +0 -18
- package/dist/runtime/components/ui/tabs/index.d.ts +0 -4
- package/dist/runtime/components/ui/tabs/index.js +0 -4
- package/dist/runtime/components/ui/textarea/Textarea.d.vue.ts +0 -14
- package/dist/runtime/components/ui/textarea/Textarea.vue +0 -29
- package/dist/runtime/components/ui/textarea/Textarea.vue.d.ts +0 -14
- package/dist/runtime/components/ui/textarea/index.d.ts +0 -1
- package/dist/runtime/components/ui/textarea/index.js +0 -1
- package/dist/runtime/components/ui/toggle/Toggle.d.vue.ts +0 -34
- package/dist/runtime/components/ui/toggle/Toggle.vue +0 -33
- package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +0 -34
- package/dist/runtime/components/ui/toggle/index.d.ts +0 -7
- package/dist/runtime/components/ui/toggle/index.js +0 -23
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.d.vue.ts +0 -28
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue +0 -41
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue.d.ts +0 -28
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.d.vue.ts +0 -21
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue +0 -33
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +0 -21
- package/dist/runtime/components/ui/toggle-group/index.d.ts +0 -8
- package/dist/runtime/components/ui/toggle-group/index.js +0 -3
- package/dist/runtime/components/ui/tooltip/Tooltip.d.vue.ts +0 -20
- package/dist/runtime/components/ui/tooltip/Tooltip.vue +0 -27
- package/dist/runtime/components/ui/tooltip/Tooltip.vue.d.ts +0 -20
- package/dist/runtime/components/ui/tooltip/TooltipContent.d.vue.ts +0 -27
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue +0 -59
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue.d.ts +0 -27
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.d.vue.ts +0 -14
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue +0 -17
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue.d.ts +0 -14
- package/dist/runtime/components/ui/tooltip/index.d.ts +0 -3
- package/dist/runtime/components/ui/tooltip/index.js +0 -3
- package/dist/runtime/composables/useCel.d.ts +0 -16
- package/dist/runtime/composables/useCel.js +0 -8
- package/dist/runtime/composables/useDragging.d.ts +0 -25
- package/dist/runtime/composables/useDragging.js +0 -76
- package/dist/runtime/composables/useInfinitePlane.d.ts +0 -30
- package/dist/runtime/composables/useInfinitePlane.js +0 -24
- package/dist/runtime/composables/useOverlay.d.ts +0 -110
- package/dist/runtime/composables/useOverlay.js +0 -268
- package/dist/runtime/composables/useTranslateLocale.d.ts +0 -11
- package/dist/runtime/composables/useTranslateLocale.js +0 -66
- package/dist/runtime/composables/useTreeDnd.d.ts +0 -52
- package/dist/runtime/composables/useTreeDnd.js +0 -211
- package/dist/runtime/middleware/token.d.ts +0 -2
- package/dist/runtime/middleware/token.js +0 -20
- package/dist/runtime/plugins/ai/cel-prompt.d.ts +0 -11
- package/dist/runtime/plugins/ai/cel-prompt.js +0 -27
- package/dist/runtime/plugins/ai/index.d.ts +0 -44
- package/dist/runtime/plugins/ai/index.js +0 -266
- package/dist/runtime/plugins/cel/context.d.ts +0 -10
- package/dist/runtime/plugins/cel/context.js +0 -16
- package/dist/runtime/plugins/cel/http.d.ts +0 -8
- package/dist/runtime/plugins/cel/http.js +0 -49
- package/dist/runtime/plugins/cel/index.d.ts +0 -9
- package/dist/runtime/plugins/cel/index.js +0 -59
- package/dist/runtime/plugins/http/builder.d.ts +0 -14
- package/dist/runtime/plugins/http/builder.js +0 -109
- package/dist/runtime/plugins/http/index.d.ts +0 -19
- package/dist/runtime/plugins/http/index.js +0 -35
- package/dist/runtime/plugins/i18n/index.d.ts +0 -2
- package/dist/runtime/plugins/i18n/index.js +0 -14
- package/dist/runtime/plugins/toast/index.d.ts +0 -108
- package/dist/runtime/plugins/toast/index.js +0 -10
- package/dist/runtime/share/define-registry.d.ts +0 -57
- package/dist/runtime/share/define-registry.js +0 -63
- package/dist/runtime/share/expression.d.ts +0 -15
- package/dist/runtime/share/expression.js +0 -132
- package/dist/runtime/share/layout.d.ts +0 -122
- package/dist/runtime/share/layout.js +0 -219
- package/dist/runtime/share/locale.d.ts +0 -11
- package/dist/runtime/share/locale.js +0 -37
- package/dist/runtime/share/markdown.d.ts +0 -9
- package/dist/runtime/share/markdown.js +0 -6
- package/dist/runtime/share/slot-renderer.d.vue.ts +0 -50
- package/dist/runtime/share/slot-renderer.vue +0 -116
- package/dist/runtime/share/slot-renderer.vue.d.ts +0 -50
- package/dist/runtime/share/use-active-tab-id.d.ts +0 -13
- package/dist/runtime/share/use-active-tab-id.js +0 -34
- package/dist/runtime/shims.d.ts +0 -4
- package/dist/runtime/style.css +0 -1
- package/dist/runtime/types.d.ts +0 -25
- package/dist/runtime/utils/cn.d.ts +0 -2
- package/dist/runtime/utils/cn.js +0 -3
- package/dist/runtime/utils/config-clipboard.d.ts +0 -4
- package/dist/runtime/utils/config-clipboard.js +0 -12
- package/dist/runtime/utils/markdown-tooltip.d.ts +0 -4
- package/dist/runtime/utils/markdown-tooltip.js +0 -55
- package/dist/runtime/utils/markdown.d.ts +0 -5
- package/dist/runtime/utils/markdown.js +0 -6
- package/dist/runtime/vendor/cel-js/CLAUDE.md +0 -74
- package/dist/runtime/vendor/cel-js/LICENSE +0 -21
- package/dist/runtime/vendor/cel-js/PROMPT.md +0 -319
- package/dist/runtime/vendor/cel-js/VENDORED +0 -3
- package/dist/runtime/vendor/cel-js/__tests__/helpers.d.ts +0 -8
- package/dist/runtime/vendor/cel-js/__tests__/helpers.js +0 -18
- package/dist/runtime/vendor/cel-js/lib/decimal.d.ts +0 -31
- package/dist/runtime/vendor/cel-js/lib/decimal.js +0 -208
- package/dist/runtime/vendor/cel-js/lib/errors.d.ts +0 -50
- package/dist/runtime/vendor/cel-js/lib/errors.js +0 -112
- package/dist/runtime/vendor/cel-js/lib/evaluator.d.ts +0 -37
- package/dist/runtime/vendor/cel-js/lib/evaluator.js +0 -163
- package/dist/runtime/vendor/cel-js/lib/functions.d.ts +0 -2
- package/dist/runtime/vendor/cel-js/lib/functions.js +0 -340
- package/dist/runtime/vendor/cel-js/lib/globals.d.ts +0 -27
- package/dist/runtime/vendor/cel-js/lib/globals.js +0 -31
- package/dist/runtime/vendor/cel-js/lib/http-builtins.d.ts +0 -16
- package/dist/runtime/vendor/cel-js/lib/http-builtins.js +0 -15
- package/dist/runtime/vendor/cel-js/lib/index.d.ts +0 -3
- package/dist/runtime/vendor/cel-js/lib/index.js +0 -3
- package/dist/runtime/vendor/cel-js/lib/macros.d.ts +0 -2
- package/dist/runtime/vendor/cel-js/lib/macros.js +0 -268
- package/dist/runtime/vendor/cel-js/lib/operators.d.ts +0 -29
- package/dist/runtime/vendor/cel-js/lib/operators.js +0 -673
- package/dist/runtime/vendor/cel-js/lib/optional.d.ts +0 -5
- package/dist/runtime/vendor/cel-js/lib/optional.js +0 -111
- package/dist/runtime/vendor/cel-js/lib/options.d.ts +0 -15
- package/dist/runtime/vendor/cel-js/lib/options.js +0 -37
- package/dist/runtime/vendor/cel-js/lib/overloads.d.ts +0 -2
- package/dist/runtime/vendor/cel-js/lib/overloads.js +0 -170
- package/dist/runtime/vendor/cel-js/lib/parser.d.ts +0 -83
- package/dist/runtime/vendor/cel-js/lib/parser.js +0 -787
- package/dist/runtime/vendor/cel-js/lib/registry.d.ts +0 -209
- package/dist/runtime/vendor/cel-js/lib/registry.js +0 -1326
- package/dist/runtime/vendor/cel-js/lib/serialize.d.ts +0 -3
- package/dist/runtime/vendor/cel-js/lib/serialize.js +0 -168
- package/dist/runtime/vendor/cel-js/lib/type-checker.d.ts +0 -15
- package/dist/runtime/vendor/cel-js/lib/type-checker.js +0 -56
- package/dist/runtime/vendor/cel-js/lib/types.d.ts +0 -192
- package/dist/runtime/vendor/cel-js/lib/types.js +0 -0
|
@@ -1,1326 +0,0 @@
|
|
|
1
|
-
import { EvaluationError, evaluationError } from "./errors.js";
|
|
2
|
-
import { Decimal } from "./decimal.js";
|
|
3
|
-
import { Option } from "effect";
|
|
4
|
-
import { optionalOf } from "./optional.js";
|
|
5
|
-
import { isAsync, hasOwn, objFreeze, objKeys, objEntries, RESERVED } from "./globals.js";
|
|
6
|
-
export class Type {
|
|
7
|
-
#name;
|
|
8
|
-
constructor(name) {
|
|
9
|
-
this.#name = name;
|
|
10
|
-
objFreeze(this);
|
|
11
|
-
}
|
|
12
|
-
get name() {
|
|
13
|
-
return this.#name;
|
|
14
|
-
}
|
|
15
|
-
get [Symbol.toStringTag]() {
|
|
16
|
-
return `Type<${this.#name}>`;
|
|
17
|
-
}
|
|
18
|
-
toString() {
|
|
19
|
-
return `Type<${this.#name}>`;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export const TYPES = {
|
|
23
|
-
string: new Type("string"),
|
|
24
|
-
bool: new Type("bool"),
|
|
25
|
-
number: new Type("number"),
|
|
26
|
-
map: new Type("map"),
|
|
27
|
-
list: new Type("list"),
|
|
28
|
-
bytes: new Type("bytes"),
|
|
29
|
-
null_type: new Type("null"),
|
|
30
|
-
type: new Type("type")
|
|
31
|
-
};
|
|
32
|
-
const valueTypeMatchers = {
|
|
33
|
-
dyn(v, ev) {
|
|
34
|
-
switch (typeof v) {
|
|
35
|
-
case "string":
|
|
36
|
-
case "number":
|
|
37
|
-
case "bigint":
|
|
38
|
-
case "boolean":
|
|
39
|
-
return true;
|
|
40
|
-
case "object":
|
|
41
|
-
if (v instanceof Decimal) return true;
|
|
42
|
-
switch (v ? v.constructor : v) {
|
|
43
|
-
case null:
|
|
44
|
-
case void 0:
|
|
45
|
-
case Object:
|
|
46
|
-
case Map:
|
|
47
|
-
case Array:
|
|
48
|
-
case Set:
|
|
49
|
-
return true;
|
|
50
|
-
default:
|
|
51
|
-
if (ev.objectTypesByConstructor.get(v.constructor)) return true;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return !!ev.debugType(v);
|
|
55
|
-
},
|
|
56
|
-
string(v) {
|
|
57
|
-
return typeof v === "string";
|
|
58
|
-
},
|
|
59
|
-
number(v) {
|
|
60
|
-
return v instanceof Decimal || typeof v === "number" || typeof v === "bigint";
|
|
61
|
-
},
|
|
62
|
-
bool(v) {
|
|
63
|
-
return typeof v === "boolean";
|
|
64
|
-
},
|
|
65
|
-
null(v) {
|
|
66
|
-
return v === null;
|
|
67
|
-
},
|
|
68
|
-
bytes(v) {
|
|
69
|
-
return v instanceof Uint8Array;
|
|
70
|
-
},
|
|
71
|
-
type(v) {
|
|
72
|
-
return v instanceof Type;
|
|
73
|
-
},
|
|
74
|
-
list(v) {
|
|
75
|
-
switch (v?.constructor) {
|
|
76
|
-
case Array:
|
|
77
|
-
case Set:
|
|
78
|
-
return true;
|
|
79
|
-
default:
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
map(v) {
|
|
84
|
-
switch (typeof v === "object" && v ? v.constructor : null) {
|
|
85
|
-
case void 0:
|
|
86
|
-
case Object:
|
|
87
|
-
case Map:
|
|
88
|
-
return true;
|
|
89
|
-
default:
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
optional(v) {
|
|
94
|
-
return Option.isOption(v);
|
|
95
|
-
},
|
|
96
|
-
message(v, ev) {
|
|
97
|
-
return this === ev.debugType(v);
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
valueTypeMatchers.param = valueTypeMatchers.dyn;
|
|
101
|
-
export class TypeDeclaration {
|
|
102
|
-
#matchesCache = /* @__PURE__ */ new WeakMap();
|
|
103
|
-
kind;
|
|
104
|
-
type;
|
|
105
|
-
name;
|
|
106
|
-
keyType;
|
|
107
|
-
valueType;
|
|
108
|
-
unwrappedType;
|
|
109
|
-
wrappedType;
|
|
110
|
-
hasDynType;
|
|
111
|
-
hasPlaceholderType;
|
|
112
|
-
matchesValueType;
|
|
113
|
-
fieldLazy;
|
|
114
|
-
constructor({ kind, type, name, keyType, valueType }) {
|
|
115
|
-
this.kind = kind;
|
|
116
|
-
this.type = type;
|
|
117
|
-
this.name = name;
|
|
118
|
-
this.keyType = keyType;
|
|
119
|
-
this.valueType = valueType;
|
|
120
|
-
this.unwrappedType = kind === "dyn" && valueType ? valueType.unwrappedType : this;
|
|
121
|
-
this.wrappedType = kind === "dyn" ? this : _createDynType(this.unwrappedType);
|
|
122
|
-
this.hasDynType = this.kind === "dyn" || this.valueType?.hasDynType || this.keyType?.hasDynType || false;
|
|
123
|
-
this.hasPlaceholderType = this.kind === "param" || this.keyType?.hasPlaceholderType || this.valueType?.hasPlaceholderType || false;
|
|
124
|
-
this.fieldLazy = (_obj, _key, _ast, _ev) => void 0;
|
|
125
|
-
if (kind === "list") this.fieldLazy = this.#getListField.bind(this);
|
|
126
|
-
else if (kind === "map") this.fieldLazy = this.#getMapField.bind(this);
|
|
127
|
-
else if (kind === "message") this.fieldLazy = this.#getMessageField.bind(this);
|
|
128
|
-
else if (kind === "optional") this.fieldLazy = this.#getOptionalField.bind(this);
|
|
129
|
-
this.matchesValueType = valueTypeMatchers[name] || valueTypeMatchers[kind];
|
|
130
|
-
objFreeze(this);
|
|
131
|
-
}
|
|
132
|
-
isDynOrBool() {
|
|
133
|
-
return this.type === "bool" || this.kind === "dyn";
|
|
134
|
-
}
|
|
135
|
-
isEmpty() {
|
|
136
|
-
return !!(this.valueType && this.valueType.kind === "param");
|
|
137
|
-
}
|
|
138
|
-
unify(r, t2) {
|
|
139
|
-
if (this === t2 || this.kind === "dyn" || t2.kind === "param") return this;
|
|
140
|
-
if (t2.kind === "dyn" || this.kind === "param") return t2;
|
|
141
|
-
if (this.kind !== t2.kind) return null;
|
|
142
|
-
if (!(this.hasPlaceholderType || t2.hasPlaceholderType || this.hasDynType || t2.hasDynType))
|
|
143
|
-
return null;
|
|
144
|
-
const valueType = this.valueType.unify(r, t2.valueType);
|
|
145
|
-
if (!valueType) return null;
|
|
146
|
-
switch (this.kind) {
|
|
147
|
-
case "optional":
|
|
148
|
-
return r.getOptionalType(valueType);
|
|
149
|
-
case "list":
|
|
150
|
-
return r.getListType(valueType);
|
|
151
|
-
case "map": {
|
|
152
|
-
const keyType = this.keyType.unify(r, t2.keyType);
|
|
153
|
-
return keyType ? r.getMapType(keyType, valueType) : null;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return null;
|
|
157
|
-
}
|
|
158
|
-
templated(r, bind) {
|
|
159
|
-
if (!this.hasPlaceholderType) return this;
|
|
160
|
-
switch (this.kind) {
|
|
161
|
-
case "dyn":
|
|
162
|
-
return this.valueType.templated(r, bind);
|
|
163
|
-
case "param":
|
|
164
|
-
return bind?.get(this.name) || this;
|
|
165
|
-
case "map":
|
|
166
|
-
return r.getMapType(this.keyType.templated(r, bind), this.valueType.templated(r, bind));
|
|
167
|
-
case "list":
|
|
168
|
-
return r.getListType(this.valueType.templated(r, bind));
|
|
169
|
-
case "optional":
|
|
170
|
-
return r.getOptionalType(this.valueType.templated(r, bind));
|
|
171
|
-
default:
|
|
172
|
-
return this;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
toString() {
|
|
176
|
-
return this.name;
|
|
177
|
-
}
|
|
178
|
-
#getOptionalField(obj, key, ast, ev) {
|
|
179
|
-
const unwrapped = Option.isOption(obj) ? Option.getOrUndefined(obj) : obj;
|
|
180
|
-
if (unwrapped === void 0) return Option.none();
|
|
181
|
-
const type = ev.debugType(unwrapped);
|
|
182
|
-
try {
|
|
183
|
-
return optionalOf(type.fieldLazy(unwrapped, key, ast, ev));
|
|
184
|
-
} catch (e) {
|
|
185
|
-
if (e instanceof EvaluationError) return Option.none();
|
|
186
|
-
throw e;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
#getMessageField(obj, key, ast, ev) {
|
|
190
|
-
const ctor = obj && typeof obj === "object" ? obj.constructor : void 0;
|
|
191
|
-
const message = ctor ? ev.objectTypesByConstructor.get(ctor) : void 0;
|
|
192
|
-
if (!message) return void 0;
|
|
193
|
-
const type = message.fields ? message.fields[key] : dynType;
|
|
194
|
-
if (!type) return void 0;
|
|
195
|
-
const value = obj instanceof Map ? obj.get(key) : obj[key];
|
|
196
|
-
if (value === void 0) return void 0;
|
|
197
|
-
if (type.matchesValueType(value, ev)) return value;
|
|
198
|
-
throw evaluationError(
|
|
199
|
-
"field_type_mismatch",
|
|
200
|
-
`Field '${key}' is not of type '${type}', got '${ev.debugType(value)}'`,
|
|
201
|
-
ast
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
#getMapField(obj, key, ast, ev) {
|
|
205
|
-
const value = obj instanceof Map ? obj.get(key) : obj && hasOwn(obj, key) ? obj[key] : void 0;
|
|
206
|
-
if (value === void 0) return void 0;
|
|
207
|
-
if (this.valueType.matchesValueType(value, ev)) return value;
|
|
208
|
-
throw evaluationError(
|
|
209
|
-
"field_type_mismatch",
|
|
210
|
-
`Field '${key}' is not of type '${this.valueType}', got '${ev.debugType(value)}'`,
|
|
211
|
-
ast
|
|
212
|
-
);
|
|
213
|
-
}
|
|
214
|
-
#getListElementAtIndex(list, pos) {
|
|
215
|
-
switch (list?.constructor) {
|
|
216
|
-
case Array:
|
|
217
|
-
return list[pos];
|
|
218
|
-
case Set: {
|
|
219
|
-
let i = 0;
|
|
220
|
-
for (const item of list) {
|
|
221
|
-
if (i++ !== pos) continue;
|
|
222
|
-
return item;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
return void 0;
|
|
227
|
-
}
|
|
228
|
-
#getListField(obj, key, ast, ev) {
|
|
229
|
-
let keyNum;
|
|
230
|
-
if (key instanceof Decimal) keyNum = key.toNumber();
|
|
231
|
-
else if (typeof key === "bigint") keyNum = Number(key);
|
|
232
|
-
else if (typeof key === "number") keyNum = key;
|
|
233
|
-
else return void 0;
|
|
234
|
-
const value = this.#getListElementAtIndex(obj, keyNum);
|
|
235
|
-
if (value === void 0) {
|
|
236
|
-
if (!obj) return void 0;
|
|
237
|
-
const sized = obj;
|
|
238
|
-
throw evaluationError(
|
|
239
|
-
"index_out_of_bounds",
|
|
240
|
-
`No such key: index out of bounds, index ${keyNum} ${keyNum < 0 ? "< 0" : `>= size ${sized.length ?? sized.size}`}`,
|
|
241
|
-
ast
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
if (this.valueType.matchesValueType(value, ev)) return value;
|
|
245
|
-
throw evaluationError(
|
|
246
|
-
"list_item_type_mismatch",
|
|
247
|
-
`List item with index '${keyNum}' is not of type '${this.valueType}', got '${ev.debugType(value)}'`,
|
|
248
|
-
ast
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
field(obj, key, ast, ev) {
|
|
252
|
-
const v = this.fieldLazy(obj, key, ast, ev);
|
|
253
|
-
if (v !== void 0) return v;
|
|
254
|
-
throw evaluationError("no_such_key", `No such key: ${key}`, ast);
|
|
255
|
-
}
|
|
256
|
-
matchesBoth(other) {
|
|
257
|
-
return this.matches(other) && other.matches(this);
|
|
258
|
-
}
|
|
259
|
-
matches(o) {
|
|
260
|
-
const s = this.unwrappedType;
|
|
261
|
-
o = o.unwrappedType;
|
|
262
|
-
if (s === o || s.kind === "dyn" || o.kind === "dyn" || o.kind === "param") return true;
|
|
263
|
-
return this.#matchesCache.get(o) ?? this.#matchesCache.set(o, this.#matches(s, o)).get(o);
|
|
264
|
-
}
|
|
265
|
-
#matches(s, o) {
|
|
266
|
-
switch (s.kind) {
|
|
267
|
-
case "dyn":
|
|
268
|
-
case "param":
|
|
269
|
-
return true;
|
|
270
|
-
case "list":
|
|
271
|
-
return o.kind === "list" && s.valueType.matches(o.valueType);
|
|
272
|
-
case "map":
|
|
273
|
-
return o.kind === "map" && s.keyType.matches(o.keyType) && s.valueType.matches(o.valueType);
|
|
274
|
-
case "optional":
|
|
275
|
-
return o.kind === "optional" && s.valueType.matches(o.valueType);
|
|
276
|
-
default:
|
|
277
|
-
return s.name === o.name;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
const macroEvaluateErr = `have a .callAst property or .evaluate(checker, macro, ctx) method.`;
|
|
282
|
-
const macroTypeCheckErr = `have a .callAst property or .typeCheck(checker, macro, ctx) method.`;
|
|
283
|
-
function wrapMacroExpander(name, handler) {
|
|
284
|
-
const p = `Macro '${name}' must`;
|
|
285
|
-
return function macroExpander(opts) {
|
|
286
|
-
const macro = handler(opts);
|
|
287
|
-
if (!macro || typeof macro !== "object") throw new Error(`${p} return an object.`);
|
|
288
|
-
if (macro.callAst) return macro;
|
|
289
|
-
if (!macro.evaluate) throw new Error(`${p} ${macroEvaluateErr}`);
|
|
290
|
-
if (!macro.typeCheck) throw new Error(`${p} ${macroTypeCheckErr}`);
|
|
291
|
-
return macro;
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
export class VariableDeclaration {
|
|
295
|
-
name;
|
|
296
|
-
type;
|
|
297
|
-
description;
|
|
298
|
-
constant;
|
|
299
|
-
value;
|
|
300
|
-
constructor(name, type, description, value) {
|
|
301
|
-
this.name = name;
|
|
302
|
-
this.type = type;
|
|
303
|
-
this.description = description ?? null;
|
|
304
|
-
this.constant = value !== void 0;
|
|
305
|
-
this.value = value;
|
|
306
|
-
objFreeze(this);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
export class FunctionDeclaration {
|
|
310
|
-
name;
|
|
311
|
-
async;
|
|
312
|
-
receiverType;
|
|
313
|
-
returnType;
|
|
314
|
-
description;
|
|
315
|
-
params;
|
|
316
|
-
argTypes;
|
|
317
|
-
macro;
|
|
318
|
-
signature;
|
|
319
|
-
handler;
|
|
320
|
-
partitionKey;
|
|
321
|
-
hasPlaceholderType;
|
|
322
|
-
constructor({ name, receiverType, returnType, handler, description, params, async: isAsync_ }) {
|
|
323
|
-
if (typeof name !== "string") throw new Error("name must be a string");
|
|
324
|
-
if (handler !== void 0 && typeof handler !== "function") throw new Error("handler must be a function");
|
|
325
|
-
const effectiveHandler = handler || ((..._args) => {
|
|
326
|
-
throw new Error(`Function '${name}' has no runtime implementation (type-checking stub)`);
|
|
327
|
-
});
|
|
328
|
-
this.name = name;
|
|
329
|
-
this.async = handler ? isAsync(handler, isAsync_) : false;
|
|
330
|
-
this.receiverType = receiverType ?? null;
|
|
331
|
-
this.returnType = returnType;
|
|
332
|
-
this.description = description ?? null;
|
|
333
|
-
this.params = params;
|
|
334
|
-
this.argTypes = this.params.map((p) => p.type);
|
|
335
|
-
this.macro = this.argTypes.includes(astType);
|
|
336
|
-
const receiverString = receiverType ? `${receiverType}.` : "";
|
|
337
|
-
this.signature = `${receiverString}${name}(${this.argTypes.join(", ")}): ${returnType}`;
|
|
338
|
-
this.handler = this.macro ? wrapMacroExpander(this.signature, effectiveHandler) : effectiveHandler;
|
|
339
|
-
this.partitionKey = `${receiverType ? "rcall" : "call"}:${name}:${params.length}`;
|
|
340
|
-
this.hasPlaceholderType = this.returnType.hasPlaceholderType || this.receiverType?.hasPlaceholderType || this.argTypes.some((t) => t.hasPlaceholderType) || false;
|
|
341
|
-
objFreeze(this);
|
|
342
|
-
}
|
|
343
|
-
matchesArgs(argTypes) {
|
|
344
|
-
return argTypes.length === this.argTypes.length && this.argTypes.every((t, i) => t.matches(argTypes[i])) ? this : null;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
export class OperatorDeclaration {
|
|
348
|
-
operator;
|
|
349
|
-
leftType;
|
|
350
|
-
rightType;
|
|
351
|
-
handler;
|
|
352
|
-
async;
|
|
353
|
-
returnType;
|
|
354
|
-
signature;
|
|
355
|
-
hasPlaceholderType;
|
|
356
|
-
constructor({ op, leftType, rightType, handler, returnType, async: isAsync_ }) {
|
|
357
|
-
this.operator = op;
|
|
358
|
-
this.leftType = leftType;
|
|
359
|
-
this.rightType = rightType || null;
|
|
360
|
-
this.handler = handler;
|
|
361
|
-
this.async = isAsync(handler, isAsync_);
|
|
362
|
-
this.returnType = returnType;
|
|
363
|
-
if (rightType) this.signature = `${leftType} ${op} ${rightType}: ${returnType}`;
|
|
364
|
-
else this.signature = `${op}${leftType}: ${returnType}`;
|
|
365
|
-
this.hasPlaceholderType = this.leftType.hasPlaceholderType || this.rightType?.hasPlaceholderType || false;
|
|
366
|
-
objFreeze(this);
|
|
367
|
-
}
|
|
368
|
-
equals(other) {
|
|
369
|
-
return this.operator === other.operator && this.leftType === other.leftType && this.rightType === other.rightType;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
function _createListType(valueType) {
|
|
373
|
-
return new TypeDeclaration({
|
|
374
|
-
kind: "list",
|
|
375
|
-
name: `list<${valueType}>`,
|
|
376
|
-
type: "list",
|
|
377
|
-
valueType
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
function _createPrimitiveType(name) {
|
|
381
|
-
return new TypeDeclaration({ kind: "primitive", name, type: name });
|
|
382
|
-
}
|
|
383
|
-
function _createMessageType(name) {
|
|
384
|
-
return new TypeDeclaration({ kind: "message", name, type: name });
|
|
385
|
-
}
|
|
386
|
-
function _createDynType(valueType) {
|
|
387
|
-
const name = valueType ? `dyn<${valueType}>` : "dyn";
|
|
388
|
-
return new TypeDeclaration({ kind: "dyn", name, type: name, valueType });
|
|
389
|
-
}
|
|
390
|
-
function _createOptionalType(valueType) {
|
|
391
|
-
const name = `optional<${valueType}>`;
|
|
392
|
-
return new TypeDeclaration({ kind: "optional", name, type: "optional", valueType });
|
|
393
|
-
}
|
|
394
|
-
function _createMapType(keyType, valueType) {
|
|
395
|
-
return new TypeDeclaration({
|
|
396
|
-
kind: "map",
|
|
397
|
-
name: `map<${keyType}, ${valueType}>`,
|
|
398
|
-
type: "map",
|
|
399
|
-
keyType,
|
|
400
|
-
valueType
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
function _createPlaceholderType(name) {
|
|
404
|
-
return new TypeDeclaration({ kind: "param", name, type: name });
|
|
405
|
-
}
|
|
406
|
-
const dynType = _createDynType();
|
|
407
|
-
const astType = _createPrimitiveType("ast");
|
|
408
|
-
const listType = _createListType(dynType);
|
|
409
|
-
const mapType = _createMapType(dynType, dynType);
|
|
410
|
-
export const celTypes = {
|
|
411
|
-
"string": _createPrimitiveType("string"),
|
|
412
|
-
"bool": _createPrimitiveType("bool"),
|
|
413
|
-
"number": _createPrimitiveType("number"),
|
|
414
|
-
"bytes": _createPrimitiveType("bytes"),
|
|
415
|
-
"dyn": dynType,
|
|
416
|
-
"null": _createPrimitiveType("null"),
|
|
417
|
-
"type": _createPrimitiveType("type"),
|
|
418
|
-
"optional": _createOptionalType(dynType),
|
|
419
|
-
"list": listType,
|
|
420
|
-
"list<dyn>": listType,
|
|
421
|
-
"map": mapType,
|
|
422
|
-
"map<dyn, dyn>": mapType
|
|
423
|
-
};
|
|
424
|
-
for (const t of [celTypes.string, celTypes.number]) {
|
|
425
|
-
const list = _createListType(t);
|
|
426
|
-
const map = _createMapType(celTypes.string, t);
|
|
427
|
-
celTypes[list.name] = list;
|
|
428
|
-
celTypes[map.name] = map;
|
|
429
|
-
}
|
|
430
|
-
Object.freeze(celTypes);
|
|
431
|
-
class Candidates {
|
|
432
|
-
returnType = null;
|
|
433
|
-
async = false;
|
|
434
|
-
macro = false;
|
|
435
|
-
#matchCache = null;
|
|
436
|
-
#checkCache = null;
|
|
437
|
-
declarations = [];
|
|
438
|
-
registry;
|
|
439
|
-
constructor(registry) {
|
|
440
|
-
this.registry = registry;
|
|
441
|
-
}
|
|
442
|
-
[Symbol.iterator]() {
|
|
443
|
-
return this.declarations[Symbol.iterator]();
|
|
444
|
-
}
|
|
445
|
-
add(decl) {
|
|
446
|
-
this.returnType = (this.returnType || decl.returnType).unify(this.registry, decl.returnType) || dynType;
|
|
447
|
-
if (decl instanceof FunctionDeclaration && decl.macro) this.macro = decl;
|
|
448
|
-
if (decl.async && !this.async) this.async = true;
|
|
449
|
-
this.declarations.push(decl);
|
|
450
|
-
this.#matchCache?.clear();
|
|
451
|
-
this.#checkCache?.clear();
|
|
452
|
-
}
|
|
453
|
-
findFunction(argTypes, receiverType = null) {
|
|
454
|
-
for (let i = 0; i < this.declarations.length; i++) {
|
|
455
|
-
const decl = this.declarations[i];
|
|
456
|
-
if (!(decl instanceof FunctionDeclaration)) continue;
|
|
457
|
-
const match = this.#matchesFunction(decl, argTypes, receiverType);
|
|
458
|
-
if (match) return match;
|
|
459
|
-
}
|
|
460
|
-
return null;
|
|
461
|
-
}
|
|
462
|
-
findUnaryOverload(left) {
|
|
463
|
-
const cached = (this.#matchCache ??= /* @__PURE__ */ new Map()).get(left);
|
|
464
|
-
if (cached !== void 0) return cached;
|
|
465
|
-
let value = false;
|
|
466
|
-
for (const decl of this.declarations) {
|
|
467
|
-
if (!(decl instanceof OperatorDeclaration)) continue;
|
|
468
|
-
if (decl.leftType !== left) continue;
|
|
469
|
-
value = decl;
|
|
470
|
-
break;
|
|
471
|
-
}
|
|
472
|
-
this.#matchCache.set(left, value);
|
|
473
|
-
return value;
|
|
474
|
-
}
|
|
475
|
-
findBinaryOverload(left, right) {
|
|
476
|
-
if (left.kind === "dyn" && left.valueType) right = right.wrappedType;
|
|
477
|
-
else if (right.kind === "dyn" && right.valueType) left = left.wrappedType;
|
|
478
|
-
const binaryCache = this.#matchCache;
|
|
479
|
-
return binaryCache?.get(left)?.get(right) ?? this.#cacheBinaryMatch(
|
|
480
|
-
this.#matchCache ??= /* @__PURE__ */ new Map(),
|
|
481
|
-
left,
|
|
482
|
-
right,
|
|
483
|
-
this.#findBinaryUncached(left, right)
|
|
484
|
-
);
|
|
485
|
-
}
|
|
486
|
-
checkBinaryOverload(left, right) {
|
|
487
|
-
return (this.#checkCache ??= /* @__PURE__ */ new Map()).get(left)?.get(right) ?? this.#cacheBinary(this.#checkCache, left, right, this.#checkBinaryUncached(left, right));
|
|
488
|
-
}
|
|
489
|
-
#cacheBinary(c, l, r, v) {
|
|
490
|
-
return (c.get(l) ?? (c.set(l, /* @__PURE__ */ new Map()), c.get(l))).set(r, v), v;
|
|
491
|
-
}
|
|
492
|
-
#cacheBinaryMatch(c, l, r, v) {
|
|
493
|
-
return (c.get(l) ?? (c.set(l, /* @__PURE__ */ new Map()), c.get(l))).set(r, v), v;
|
|
494
|
-
}
|
|
495
|
-
#findBinaryUncached(left, right) {
|
|
496
|
-
const ops = this.#findBinaryOverloads(left, right);
|
|
497
|
-
if (ops.length === 0) return false;
|
|
498
|
-
if (ops.length === 1) return ops[0];
|
|
499
|
-
throw new Error(`Operator overload '${ops[0].signature}' overlaps with '${ops[1].signature}'.`);
|
|
500
|
-
}
|
|
501
|
-
#checkBinaryUncached(left, right) {
|
|
502
|
-
const ops = this.#findBinaryOverloads(left, right);
|
|
503
|
-
if (ops.length === 0) return false;
|
|
504
|
-
let rt = ops[0].returnType;
|
|
505
|
-
for (let i = 1; i < ops.length; i++) rt = rt.unify(this.registry, ops[i].returnType) || dynType;
|
|
506
|
-
return rt;
|
|
507
|
-
}
|
|
508
|
-
#findBinaryOverloads(leftType, rightType) {
|
|
509
|
-
const nonexactMatches = [];
|
|
510
|
-
for (const decl of this.declarations) {
|
|
511
|
-
if (!(decl instanceof OperatorDeclaration)) continue;
|
|
512
|
-
if (decl.leftType === leftType && decl.rightType === rightType) return [decl];
|
|
513
|
-
const secondary = this.#matchBinaryOverload(decl, leftType, rightType);
|
|
514
|
-
if (secondary) nonexactMatches.push(secondary);
|
|
515
|
-
}
|
|
516
|
-
if (nonexactMatches.length === 0) {
|
|
517
|
-
const first = this.declarations.find((d) => d instanceof OperatorDeclaration);
|
|
518
|
-
const op = first?.operator;
|
|
519
|
-
if ((op === "==" || op === "!=") && leftType.kind === "dyn") {
|
|
520
|
-
return fallbackDynEqualityMatchers[op];
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
return nonexactMatches;
|
|
524
|
-
}
|
|
525
|
-
#matchBinaryOverload(decl, actualLeft, actualRight) {
|
|
526
|
-
const bindings = decl.hasPlaceholderType ? /* @__PURE__ */ new Map() : null;
|
|
527
|
-
const leftType = this.#matchTypeWithPlaceholders(decl.leftType, actualLeft, bindings);
|
|
528
|
-
if (!leftType) return false;
|
|
529
|
-
const rightType = decl.rightType ? this.#matchTypeWithPlaceholders(decl.rightType, actualRight, bindings) : null;
|
|
530
|
-
if (decl.rightType && !rightType) return false;
|
|
531
|
-
if ((decl.operator === "==" || decl.operator === "!=") && decl.leftType.kind === "dyn" && decl.leftType.valueType && actualLeft.kind !== "dyn" && actualRight.kind !== "dyn")
|
|
532
|
-
return false;
|
|
533
|
-
return decl.hasPlaceholderType ? {
|
|
534
|
-
async: decl.async,
|
|
535
|
-
signature: decl.signature,
|
|
536
|
-
handler: decl.handler,
|
|
537
|
-
leftType,
|
|
538
|
-
rightType: rightType ?? void 0,
|
|
539
|
-
returnType: decl.returnType.templated(this.registry, bindings)
|
|
540
|
-
} : decl;
|
|
541
|
-
}
|
|
542
|
-
#matchesFunction(fn, argTypes, receiverType) {
|
|
543
|
-
if (fn.hasPlaceholderType) return this.#matchWithPlaceholders(fn, argTypes, receiverType);
|
|
544
|
-
if (receiverType && fn.receiverType && !receiverType.matches(fn.receiverType)) return null;
|
|
545
|
-
return fn.matchesArgs(argTypes);
|
|
546
|
-
}
|
|
547
|
-
#matchWithPlaceholders(fn, argTypes, receiverType) {
|
|
548
|
-
const bindings = /* @__PURE__ */ new Map();
|
|
549
|
-
if (receiverType && fn.receiverType) {
|
|
550
|
-
if (!this.#matchTypeWithPlaceholders(fn.receiverType, receiverType, bindings)) {
|
|
551
|
-
return null;
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
for (let i = 0; i < argTypes.length; i++) {
|
|
555
|
-
if (!this.#matchTypeWithPlaceholders(fn.argTypes[i], argTypes[i], bindings)) {
|
|
556
|
-
return null;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
return {
|
|
560
|
-
async: fn.async,
|
|
561
|
-
handler: fn.handler,
|
|
562
|
-
signature: fn.signature,
|
|
563
|
-
returnType: fn.returnType.templated(this.registry, bindings)
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
#matchTypeWithPlaceholders(declared, actual, bindings) {
|
|
567
|
-
if (!declared.hasPlaceholderType) return actual.matches(declared) ? actual : null;
|
|
568
|
-
const treatAsDyn = actual.kind === "dyn";
|
|
569
|
-
if (!this.#collectPlaceholderBindings(declared, actual, bindings, treatAsDyn)) return null;
|
|
570
|
-
if (treatAsDyn) return actual;
|
|
571
|
-
return actual.matches(declared.templated(this.registry, bindings)) ? actual : null;
|
|
572
|
-
}
|
|
573
|
-
#collectPlaceholderBindings(dec, act, bind, fromDyn = false) {
|
|
574
|
-
if (!dec.hasPlaceholderType) return true;
|
|
575
|
-
if (!act) return false;
|
|
576
|
-
const asDyn = fromDyn || act.kind === "dyn";
|
|
577
|
-
act = act.unwrappedType;
|
|
578
|
-
switch (dec.kind) {
|
|
579
|
-
case "param": {
|
|
580
|
-
const type = asDyn ? dynType : act;
|
|
581
|
-
const existing = bind.get(dec.name);
|
|
582
|
-
if (!existing) return bind.set(dec.name, type) && true;
|
|
583
|
-
return existing.kind === "dyn" || type.kind === "dyn" ? true : existing.matchesBoth(type);
|
|
584
|
-
}
|
|
585
|
-
case "list": {
|
|
586
|
-
if (act.name === "dyn") act = dec;
|
|
587
|
-
if (act.kind !== "list") return false;
|
|
588
|
-
return this.#collectPlaceholderBindings(dec.valueType, act.valueType, bind, asDyn);
|
|
589
|
-
}
|
|
590
|
-
case "map": {
|
|
591
|
-
if (act.name === "dyn") act = dec;
|
|
592
|
-
if (act.kind !== "map") return false;
|
|
593
|
-
return this.#collectPlaceholderBindings(dec.keyType, act.keyType, bind, asDyn) && this.#collectPlaceholderBindings(dec.valueType, act.valueType, bind, asDyn);
|
|
594
|
-
}
|
|
595
|
-
case "optional": {
|
|
596
|
-
if (act.name === "dyn") act = dec;
|
|
597
|
-
if (act.kind !== "optional") return false;
|
|
598
|
-
return this.#collectPlaceholderBindings(dec.valueType, act.valueType, bind, asDyn);
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
return true;
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
function splitByComma(str) {
|
|
605
|
-
const parts = [];
|
|
606
|
-
let current = "";
|
|
607
|
-
let depth = 0;
|
|
608
|
-
for (const char of str) {
|
|
609
|
-
if (char === "<") depth++;
|
|
610
|
-
else if (char === ">") depth--;
|
|
611
|
-
else if (char === "," && depth === 0) {
|
|
612
|
-
parts.push(current.trim());
|
|
613
|
-
current = "";
|
|
614
|
-
continue;
|
|
615
|
-
}
|
|
616
|
-
current += char;
|
|
617
|
-
}
|
|
618
|
-
if (current) parts.push(current.trim());
|
|
619
|
-
return parts;
|
|
620
|
-
}
|
|
621
|
-
const objTypesDecls = [
|
|
622
|
-
[Decimal, "number", TYPES.number, celTypes.number],
|
|
623
|
-
[Type, "type", TYPES.type, celTypes.type],
|
|
624
|
-
[Uint8Array, "bytes", TYPES.bytes, celTypes.bytes],
|
|
625
|
-
...typeof Buffer !== "undefined" ? [[Buffer, "bytes", TYPES.bytes, celTypes.bytes]] : []
|
|
626
|
-
].map((entry) => {
|
|
627
|
-
const [ctor, name, typeType, type] = entry;
|
|
628
|
-
return Object.freeze({ name, typeType, type, ctor });
|
|
629
|
-
});
|
|
630
|
-
const objTypes = objTypesDecls.map((t) => [t.name, t]);
|
|
631
|
-
const objTypesCtor = objTypesDecls.map((t) => [t.ctor, t]);
|
|
632
|
-
const invalidVar = (postfix) => new Error(`Invalid variable declaration: ${postfix}`);
|
|
633
|
-
const invalidType = (postfix) => new Error(`Invalid type declaration: ${postfix}`);
|
|
634
|
-
const fallbackDynEqualityMatchers = {
|
|
635
|
-
"==": [{ handler: (a, b) => a === b, returnType: celTypes.bool }],
|
|
636
|
-
"!=": [{ handler: (a, b) => a !== b, returnType: celTypes.bool }]
|
|
637
|
-
};
|
|
638
|
-
export class Registry {
|
|
639
|
-
#parent = null;
|
|
640
|
-
#typeDeclarations;
|
|
641
|
-
#ownsVariables = true;
|
|
642
|
-
#operators = null;
|
|
643
|
-
#functions = null;
|
|
644
|
-
#operatorsByOp = null;
|
|
645
|
-
#functionsByKey = null;
|
|
646
|
-
#listTypes = null;
|
|
647
|
-
#mapTypes = null;
|
|
648
|
-
#optionalTypes = null;
|
|
649
|
-
#others = null;
|
|
650
|
-
#locked = false;
|
|
651
|
-
objectTypes;
|
|
652
|
-
objectTypesByConstructor;
|
|
653
|
-
variables;
|
|
654
|
-
unlistedVariablesAreDyn;
|
|
655
|
-
constructor(opts = {}) {
|
|
656
|
-
this.unlistedVariablesAreDyn = opts.unlistedVariablesAreDyn ?? false;
|
|
657
|
-
const parent = opts.parent instanceof Registry ? opts.parent : null;
|
|
658
|
-
if (parent) {
|
|
659
|
-
this.#parent = parent;
|
|
660
|
-
let opParent = parent;
|
|
661
|
-
while (opParent && !opParent.#operators) opParent = opParent.#parent;
|
|
662
|
-
let fnParent = parent;
|
|
663
|
-
while (fnParent && !fnParent.#functions) fnParent = fnParent.#parent;
|
|
664
|
-
this.#operatorsByOp = parent.#operatorsByOp;
|
|
665
|
-
this.#functionsByKey = parent.#functionsByKey;
|
|
666
|
-
this.#others = { operators: opParent.#operators, functions: fnParent.#functions };
|
|
667
|
-
this.objectTypes = new Map(parent.objectTypes);
|
|
668
|
-
this.objectTypesByConstructor = new Map(parent.objectTypesByConstructor);
|
|
669
|
-
this.variables = parent.variables;
|
|
670
|
-
this.#ownsVariables = false;
|
|
671
|
-
this.#typeDeclarations = parent.#typeDeclarations;
|
|
672
|
-
this.#listTypes = parent.#listTypes;
|
|
673
|
-
this.#mapTypes = parent.#mapTypes;
|
|
674
|
-
this.#optionalTypes = parent.#optionalTypes;
|
|
675
|
-
if (this.unlistedVariablesAreDyn !== parent.unlistedVariablesAreDyn) {
|
|
676
|
-
this.#ensureOwnVariables();
|
|
677
|
-
}
|
|
678
|
-
} else {
|
|
679
|
-
this.#operators = [];
|
|
680
|
-
this.#functions = [];
|
|
681
|
-
this.objectTypes = new Map(objTypes);
|
|
682
|
-
this.objectTypesByConstructor = new Map(objTypesCtor);
|
|
683
|
-
this.#typeDeclarations = new Map(objEntries(celTypes));
|
|
684
|
-
this.#listTypes = /* @__PURE__ */ new Map();
|
|
685
|
-
this.#mapTypes = /* @__PURE__ */ new Map();
|
|
686
|
-
this.#optionalTypes = /* @__PURE__ */ new Map();
|
|
687
|
-
this.variables = /* @__PURE__ */ new Map();
|
|
688
|
-
this.variables.dyn = this.unlistedVariablesAreDyn;
|
|
689
|
-
for (const n in TYPES) this.registerConstant(n, "type", TYPES[n]);
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
#ensureOwnVariables() {
|
|
693
|
-
if (this.#ownsVariables) return;
|
|
694
|
-
this.variables = new Map(this.variables);
|
|
695
|
-
this.variables.dyn = this.unlistedVariablesAreDyn;
|
|
696
|
-
this.#ownsVariables = true;
|
|
697
|
-
}
|
|
698
|
-
deleteVariable(name) {
|
|
699
|
-
this.#ensureOwnVariables();
|
|
700
|
-
this.variables.delete(name);
|
|
701
|
-
}
|
|
702
|
-
#pushOperator(decl) {
|
|
703
|
-
if (!this.#operators) this.#operatorsByOp = null;
|
|
704
|
-
this.operatorCandidates(decl.operator).add(decl);
|
|
705
|
-
this.#operators.push(decl);
|
|
706
|
-
}
|
|
707
|
-
#pushFunction(decl) {
|
|
708
|
-
if (!this.#functions) this.#functionsByKey = null;
|
|
709
|
-
this.#functionCandidates(decl.partitionKey).add(decl);
|
|
710
|
-
this.#functions.push(decl);
|
|
711
|
-
}
|
|
712
|
-
#ensureCandiate(c, key) {
|
|
713
|
-
return c.get(key) || c.set(key, new Candidates(this)).get(key);
|
|
714
|
-
}
|
|
715
|
-
#getOperators() {
|
|
716
|
-
if (this.#operators) return this.#operators;
|
|
717
|
-
return this.#operators = [...this.#others.operators];
|
|
718
|
-
}
|
|
719
|
-
#getFunctions() {
|
|
720
|
-
if (this.#functions) return this.#functions;
|
|
721
|
-
return this.#functions = [...this.#others.functions];
|
|
722
|
-
}
|
|
723
|
-
operatorCandidates(op) {
|
|
724
|
-
if (this.#operatorsByOp) return this.#ensureCandiate(this.#operatorsByOp, op);
|
|
725
|
-
const c = this.#operatorsByOp = /* @__PURE__ */ new Map();
|
|
726
|
-
for (const decl of this.#getOperators()) this.#ensureCandiate(c, decl.operator).add(decl);
|
|
727
|
-
return this.#ensureCandiate(c, op);
|
|
728
|
-
}
|
|
729
|
-
functionCandidates(rec, name, argLen) {
|
|
730
|
-
return this.#functionCandidates(`${rec ? "rcall" : "call"}:${name}:${argLen}`);
|
|
731
|
-
}
|
|
732
|
-
#functionCandidates(key) {
|
|
733
|
-
if (this.#functionsByKey) return this.#ensureCandiate(this.#functionsByKey, key);
|
|
734
|
-
const c = this.#functionsByKey = /* @__PURE__ */ new Map();
|
|
735
|
-
for (const decl of this.#getFunctions()) this.#ensureCandiate(c, decl.partitionKey).add(decl);
|
|
736
|
-
return this.#ensureCandiate(c, key);
|
|
737
|
-
}
|
|
738
|
-
registerVariable(name, type, opts) {
|
|
739
|
-
if (this.#locked) throw new Error("Cannot modify frozen registry");
|
|
740
|
-
let description = opts?.description;
|
|
741
|
-
let value;
|
|
742
|
-
if (typeof name === "string" && typeof type === "object" && !(type instanceof TypeDeclaration)) {
|
|
743
|
-
description = type.description;
|
|
744
|
-
value = type.value;
|
|
745
|
-
if (type.schema) type = this.registerType({ name: `$${name}`, schema: type.schema }).type;
|
|
746
|
-
else type = type.type;
|
|
747
|
-
} else if (typeof name === "object") {
|
|
748
|
-
if (name.schema) type = this.registerType({ name: `$${name.name}`, schema: name.schema }).type;
|
|
749
|
-
else type = name.type;
|
|
750
|
-
description = name.description;
|
|
751
|
-
value = name.value;
|
|
752
|
-
name = name.name;
|
|
753
|
-
}
|
|
754
|
-
if (typeof name !== "string" || !name) throw invalidVar(`name must be a string`);
|
|
755
|
-
if (RESERVED.has(name)) throw invalidVar(`'${name}' is a reserved name`);
|
|
756
|
-
if (this.variables.get(name) !== void 0) throw invalidVar(`'${name}' is already registered`);
|
|
757
|
-
if (typeof type === "string") type = this.getType(type);
|
|
758
|
-
else if (!(type instanceof TypeDeclaration)) throw invalidVar(`type is required`);
|
|
759
|
-
this.#ensureOwnVariables();
|
|
760
|
-
this.variables.set(name, new VariableDeclaration(name, type, description, value));
|
|
761
|
-
return this;
|
|
762
|
-
}
|
|
763
|
-
#registerSchemaAsType(name, schema) {
|
|
764
|
-
const fields = /* @__PURE__ */ Object.create(null);
|
|
765
|
-
for (const key of objKeys(schema)) {
|
|
766
|
-
const def = schema[key];
|
|
767
|
-
if (typeof def === "object" && def) {
|
|
768
|
-
fields[key] = this.registerType({ name: `${name}.${key}`, schema: def }).type.name;
|
|
769
|
-
} else if (typeof def === "string") {
|
|
770
|
-
fields[key] = def;
|
|
771
|
-
} else {
|
|
772
|
-
throw new TypeError(`Invalid field definition for '${name}.${key}'`);
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
return fields;
|
|
776
|
-
}
|
|
777
|
-
registerConstant(name, type, value) {
|
|
778
|
-
if (typeof name === "object") this.registerVariable(name);
|
|
779
|
-
else this.registerVariable({ name, type, value });
|
|
780
|
-
return this;
|
|
781
|
-
}
|
|
782
|
-
getType(typename) {
|
|
783
|
-
return this.#parseTypeString(typename, true);
|
|
784
|
-
}
|
|
785
|
-
getListType(type) {
|
|
786
|
-
return this.#listTypes.get(type) || this.#listTypes.set(type, this.#parseTypeString(`list<${type}>`, true)).get(type);
|
|
787
|
-
}
|
|
788
|
-
getMapType(a, b) {
|
|
789
|
-
return this.#mapTypes.get(a)?.get(b) || (this.#mapTypes.get(a) ?? (this.#mapTypes.set(a, /* @__PURE__ */ new Map()), this.#mapTypes.get(a))).set(b, this.#parseTypeString(`map<${a}, ${b}>`, true)).get(b);
|
|
790
|
-
}
|
|
791
|
-
getOptionalType(type) {
|
|
792
|
-
return this.#optionalTypes.get(type) || this.#optionalTypes.set(type, this.#parseTypeString(`optional<${type}>`, true)).get(type);
|
|
793
|
-
}
|
|
794
|
-
assertType(typename, type, signature) {
|
|
795
|
-
try {
|
|
796
|
-
return this.#parseTypeString(typename, true);
|
|
797
|
-
} catch (e) {
|
|
798
|
-
e.message = `Invalid ${type} '${e.unknownType || typename}' in '${signature}'`;
|
|
799
|
-
throw e;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
/**
|
|
803
|
-
* Declare a type name for compile-time type checking only.
|
|
804
|
-
* Creates a TypeDeclaration so the type can be used in function signatures
|
|
805
|
-
* and variable declarations, without requiring a constructor (no objectType entry).
|
|
806
|
-
* Call `registerType(name, ctor)` later to provide the full runtime definition.
|
|
807
|
-
*/
|
|
808
|
-
declareType(name) {
|
|
809
|
-
return this.#parseTypeString(name, false);
|
|
810
|
-
}
|
|
811
|
-
getFunctionType(typename) {
|
|
812
|
-
if (typename === "ast") return astType;
|
|
813
|
-
const t = this.#parseTypeString(typename, true);
|
|
814
|
-
if (t.kind === "dyn" && t.valueType) throw new Error(`type '${t.name}' is not supported`);
|
|
815
|
-
return t;
|
|
816
|
-
}
|
|
817
|
-
registerType(name, _d) {
|
|
818
|
-
if (this.#locked) throw new Error("Cannot modify frozen registry");
|
|
819
|
-
if (typeof name === "object") {
|
|
820
|
-
_d = name;
|
|
821
|
-
name = _d.fullName || _d.name || _d.ctor?.name;
|
|
822
|
-
}
|
|
823
|
-
if (typeof name === "string" && name[0] === ".") name = name.slice(1);
|
|
824
|
-
if (typeof name !== "string" || name.length < 2 || RESERVED.has(name)) {
|
|
825
|
-
throw invalidType(`name '${name}' is not valid`);
|
|
826
|
-
}
|
|
827
|
-
if (this.objectTypes.has(name)) throw invalidType(`type '${name}' already registered`);
|
|
828
|
-
const type = this.#parseTypeString(name, false);
|
|
829
|
-
if (type.kind !== "message") throw invalidType(`type '${name}' is not valid`);
|
|
830
|
-
const dObj = _d;
|
|
831
|
-
const decl = {
|
|
832
|
-
name,
|
|
833
|
-
typeType: new Type(name),
|
|
834
|
-
type,
|
|
835
|
-
ctor: typeof _d === "function" ? _d : dObj?.ctor,
|
|
836
|
-
convert: typeof _d === "function" ? void 0 : dObj?.convert,
|
|
837
|
-
fields: typeof dObj?.schema === "object" ? this.#normalizeFields(name, this.#registerSchemaAsType(name, dObj.schema)) : this.#normalizeFields(name, typeof _d === "function" ? void 0 : dObj?.fields)
|
|
838
|
-
};
|
|
839
|
-
if (typeof decl.ctor !== "function") {
|
|
840
|
-
if (!decl.fields) throw invalidType(`type '${name}' requires a constructor or fields`);
|
|
841
|
-
Object.assign(decl, this.#createDefaultConvert(name, decl.fields));
|
|
842
|
-
}
|
|
843
|
-
this.objectTypes.set(name, Object.freeze(decl));
|
|
844
|
-
this.objectTypesByConstructor.set(decl.ctor, decl);
|
|
845
|
-
this.registerFunctionOverload(`type(${name}): type`, () => decl.typeType, { async: false });
|
|
846
|
-
return decl;
|
|
847
|
-
}
|
|
848
|
-
#parseTypeString(typeStr, requireKnownTypes = true) {
|
|
849
|
-
const cached = this.#typeDeclarations.get(typeStr);
|
|
850
|
-
if (cached) return cached;
|
|
851
|
-
if (typeof typeStr !== "string" || !typeStr.length) {
|
|
852
|
-
throw new Error(`Invalid type: must be a string`);
|
|
853
|
-
}
|
|
854
|
-
const singleMatch = typeStr.match(/^[A-Z]$/);
|
|
855
|
-
if (singleMatch) return this.#createDeclaration(_createPlaceholderType, typeStr, typeStr);
|
|
856
|
-
const complexMatch = typeStr.match(/^(dyn|list|map|optional)<(.+)>$/);
|
|
857
|
-
if (!complexMatch) {
|
|
858
|
-
if (requireKnownTypes) {
|
|
859
|
-
const err = new Error(`Unknown type: ${typeStr}`);
|
|
860
|
-
err.unknownType = typeStr;
|
|
861
|
-
throw err;
|
|
862
|
-
}
|
|
863
|
-
return this.#createDeclaration(_createMessageType, typeStr, typeStr);
|
|
864
|
-
}
|
|
865
|
-
const kind = complexMatch[1];
|
|
866
|
-
const inner = complexMatch[2].trim();
|
|
867
|
-
switch (kind) {
|
|
868
|
-
case "dyn": {
|
|
869
|
-
const type = this.#parseTypeString(inner, requireKnownTypes).wrappedType;
|
|
870
|
-
this.#typeDeclarations.set(type.name, type);
|
|
871
|
-
return type;
|
|
872
|
-
}
|
|
873
|
-
case "list": {
|
|
874
|
-
const vType = this.#parseTypeString(inner, requireKnownTypes);
|
|
875
|
-
return this.#createDeclaration(_createListType, `list<${vType}>`, vType);
|
|
876
|
-
}
|
|
877
|
-
case "map": {
|
|
878
|
-
const parts = splitByComma(inner);
|
|
879
|
-
if (parts.length !== 2) throw new Error(`Invalid map type: ${typeStr}`);
|
|
880
|
-
const kType = this.#parseTypeString(parts[0], requireKnownTypes);
|
|
881
|
-
const vType = this.#parseTypeString(parts[1], requireKnownTypes);
|
|
882
|
-
return this.#createDeclaration(_createMapType, `map<${kType}, ${vType}>`, kType, vType);
|
|
883
|
-
}
|
|
884
|
-
case "optional": {
|
|
885
|
-
const vType = this.#parseTypeString(inner, requireKnownTypes);
|
|
886
|
-
return this.#createDeclaration(_createOptionalType, `optional<${vType}>`, vType);
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
throw new Error(`Unknown type kind: ${kind}`);
|
|
890
|
-
}
|
|
891
|
-
#createDeclaration(creator, key, ...args) {
|
|
892
|
-
const fn = creator;
|
|
893
|
-
return this.#typeDeclarations.get(key) || this.#typeDeclarations.set(key, fn(...args)).get(key);
|
|
894
|
-
}
|
|
895
|
-
findMacro(name, hasReceiver, argLen) {
|
|
896
|
-
return this.functionCandidates(hasReceiver, name, argLen).macro;
|
|
897
|
-
}
|
|
898
|
-
findUnaryOverload(op, left) {
|
|
899
|
-
return this.operatorCandidates(op).findUnaryOverload(left);
|
|
900
|
-
}
|
|
901
|
-
findBinaryOverload(op, left, right) {
|
|
902
|
-
return this.operatorCandidates(op).findBinaryOverload(left, right);
|
|
903
|
-
}
|
|
904
|
-
#toCelFieldType(field) {
|
|
905
|
-
if (typeof field === "string") return { type: field };
|
|
906
|
-
if (field?.id) return protobufjsFieldToCelType(field);
|
|
907
|
-
return field;
|
|
908
|
-
}
|
|
909
|
-
#toCelFieldDeclaration(typename, fields, k, requireKnownTypes = false) {
|
|
910
|
-
try {
|
|
911
|
-
const field = this.#toCelFieldType(fields[k]);
|
|
912
|
-
if (typeof field?.type !== "string") throw new Error(`unsupported declaration`);
|
|
913
|
-
return this.#parseTypeString(field.type, requireKnownTypes);
|
|
914
|
-
} catch (e) {
|
|
915
|
-
e.message = `Field '${k}' in type '${typename}' has unsupported declaration: ${JSON.stringify(fields[k])}`;
|
|
916
|
-
throw e;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
#normalizeFields(typename, fields) {
|
|
920
|
-
if (!fields) return void 0;
|
|
921
|
-
const all = /* @__PURE__ */ Object.create(null);
|
|
922
|
-
for (const k of objKeys(fields)) all[k] = this.#toCelFieldDeclaration(typename, fields, k);
|
|
923
|
-
return all;
|
|
924
|
-
}
|
|
925
|
-
#createDefaultConvert(name, fields) {
|
|
926
|
-
const keys = objKeys(fields);
|
|
927
|
-
const conversions = /* @__PURE__ */ Object.create(null);
|
|
928
|
-
for (const k of keys) {
|
|
929
|
-
const type = fields[k];
|
|
930
|
-
const decl = type.kind === "message" && this.objectTypes.get(type.name);
|
|
931
|
-
if (decl === false) conversions[k] = false;
|
|
932
|
-
else conversions[k] = decl && decl.convert ? decl : false;
|
|
933
|
-
}
|
|
934
|
-
const Ctor = {
|
|
935
|
-
[name]: class extends Map {
|
|
936
|
-
#raw;
|
|
937
|
-
constructor(v) {
|
|
938
|
-
super();
|
|
939
|
-
this.#raw = v;
|
|
940
|
-
}
|
|
941
|
-
[Symbol.iterator]() {
|
|
942
|
-
if (this.size !== keys.length) for (const k of keys) this.get(k);
|
|
943
|
-
return super[Symbol.iterator]();
|
|
944
|
-
}
|
|
945
|
-
get(field) {
|
|
946
|
-
let v = super.get(field);
|
|
947
|
-
if (v !== void 0 || this.has(field)) return v;
|
|
948
|
-
const dec = conversions[field];
|
|
949
|
-
if (dec === void 0) return void 0;
|
|
950
|
-
const raw = this.#raw;
|
|
951
|
-
v = raw instanceof Map ? raw.get(field) : raw?.[field];
|
|
952
|
-
if (dec && v && typeof v === "object") {
|
|
953
|
-
switch (v.constructor) {
|
|
954
|
-
case void 0:
|
|
955
|
-
case Object:
|
|
956
|
-
case Map:
|
|
957
|
-
v = dec.convert(v);
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
return super.set(field, v), v;
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
}[name];
|
|
964
|
-
return {
|
|
965
|
-
ctor: Ctor,
|
|
966
|
-
convert(v) {
|
|
967
|
-
if (!v) return void 0;
|
|
968
|
-
if (v.constructor === Ctor) return v;
|
|
969
|
-
return new Ctor(v);
|
|
970
|
-
}
|
|
971
|
-
};
|
|
972
|
-
}
|
|
973
|
-
clone(opts) {
|
|
974
|
-
this.#locked = true;
|
|
975
|
-
return new Registry({
|
|
976
|
-
parent: this,
|
|
977
|
-
unlistedVariablesAreDyn: opts.unlistedVariablesAreDyn
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
getDefinitions() {
|
|
981
|
-
const variables = [];
|
|
982
|
-
const functions = [];
|
|
983
|
-
for (const [, varDecl] of this.variables) {
|
|
984
|
-
if (!varDecl) continue;
|
|
985
|
-
variables.push({
|
|
986
|
-
name: varDecl.name,
|
|
987
|
-
description: varDecl.description || null,
|
|
988
|
-
type: varDecl.type.name
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
for (const decl of this.#getFunctions()) {
|
|
992
|
-
functions.push({
|
|
993
|
-
signature: decl.signature,
|
|
994
|
-
name: decl.name,
|
|
995
|
-
description: decl.description,
|
|
996
|
-
receiverType: decl.receiverType ? decl.receiverType.name : null,
|
|
997
|
-
returnType: decl.returnType.name,
|
|
998
|
-
params: decl.params.map((p) => ({
|
|
999
|
-
name: p.name,
|
|
1000
|
-
type: p.type.name,
|
|
1001
|
-
description: p.description
|
|
1002
|
-
}))
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
return { variables, functions };
|
|
1006
|
-
}
|
|
1007
|
-
#parseSignature(signature) {
|
|
1008
|
-
if (typeof signature !== "string") throw new Error("Invalid signature: must be a string");
|
|
1009
|
-
const match = signature.match(/^(?:([a-z0-9.<>]+)\.)?(\w+)\((.*?)\):(.+)$/i);
|
|
1010
|
-
if (!match) throw new Error(`Invalid signature: ${signature}`);
|
|
1011
|
-
return {
|
|
1012
|
-
receiverType: match[1] || null,
|
|
1013
|
-
name: match[2],
|
|
1014
|
-
argTypes: splitByComma(match[3]),
|
|
1015
|
-
returnType: match[4].trim()
|
|
1016
|
-
};
|
|
1017
|
-
}
|
|
1018
|
-
#functionSignatureOverlaps(a, b) {
|
|
1019
|
-
if (a.name !== b.name) return false;
|
|
1020
|
-
if (a.argTypes.length !== b.argTypes.length) return false;
|
|
1021
|
-
if ((a.receiverType || b.receiverType) && (!a.receiverType || !b.receiverType)) return false;
|
|
1022
|
-
const isDifferentReceiver = a.receiverType !== b.receiverType && a.receiverType !== dynType && b.receiverType !== dynType;
|
|
1023
|
-
return !isDifferentReceiver && (!!b.macro || !!a.macro || b.argTypes.every((t, i) => {
|
|
1024
|
-
const o = a.argTypes[i];
|
|
1025
|
-
return t === o || t === dynType || o === dynType;
|
|
1026
|
-
}));
|
|
1027
|
-
}
|
|
1028
|
-
#checkOverlappingSignatures(newDec) {
|
|
1029
|
-
const fns = this.#getFunctions();
|
|
1030
|
-
for (let i = 0; i < fns.length; i++) {
|
|
1031
|
-
const decl = fns[i];
|
|
1032
|
-
if (!(decl instanceof FunctionDeclaration)) continue;
|
|
1033
|
-
if (!this.#functionSignatureOverlaps(decl, newDec)) continue;
|
|
1034
|
-
fns[i] = newDec;
|
|
1035
|
-
this.#functionsByKey = null;
|
|
1036
|
-
return true;
|
|
1037
|
-
}
|
|
1038
|
-
return false;
|
|
1039
|
-
}
|
|
1040
|
-
#normalizeParam(i, aType, param) {
|
|
1041
|
-
if (!param) return { type: this.getFunctionType(aType), name: `arg${i}`, description: null };
|
|
1042
|
-
const type = param.type || aType;
|
|
1043
|
-
if (!type) throw new Error(`params[${i}].type is required`);
|
|
1044
|
-
if (aType && type !== aType) throw new Error(`params[${i}].type not equal to signature type`);
|
|
1045
|
-
return {
|
|
1046
|
-
name: param.name || `arg${i}`,
|
|
1047
|
-
type: this.getFunctionType(type),
|
|
1048
|
-
description: param.description ?? null
|
|
1049
|
-
};
|
|
1050
|
-
}
|
|
1051
|
-
registerFunctionOverload(s, handler, opts) {
|
|
1052
|
-
if (this.#locked) throw new Error("Cannot modify frozen registry");
|
|
1053
|
-
if (typeof s === "object") opts = s;
|
|
1054
|
-
else if (typeof handler === "object") opts = handler;
|
|
1055
|
-
else if (!opts) opts = {};
|
|
1056
|
-
const sig = typeof s === "string" ? s : opts.signature;
|
|
1057
|
-
const parsed = sig !== void 0 ? this.#parseSignature(sig) : void 0;
|
|
1058
|
-
const name = parsed?.name || opts.name;
|
|
1059
|
-
const receiverType = parsed?.receiverType || opts.receiverType;
|
|
1060
|
-
const argTypes = parsed?.argTypes;
|
|
1061
|
-
const returnType = parsed?.returnType || opts.returnType;
|
|
1062
|
-
const params = opts.params;
|
|
1063
|
-
handler = typeof handler === "function" ? handler : opts.handler;
|
|
1064
|
-
let dec;
|
|
1065
|
-
try {
|
|
1066
|
-
if (!name) throw new Error(`signature or name are required`);
|
|
1067
|
-
if (!returnType) throw new Error(`must have a returnType`);
|
|
1068
|
-
if (params) {
|
|
1069
|
-
if (argTypes && params.length !== argTypes.length) {
|
|
1070
|
-
throw new Error(`mismatched length in params and args in signature`);
|
|
1071
|
-
}
|
|
1072
|
-
} else if (!argTypes) throw new Error(`signature or params are required`);
|
|
1073
|
-
dec = new FunctionDeclaration({
|
|
1074
|
-
name,
|
|
1075
|
-
async: opts?.async,
|
|
1076
|
-
receiverType: receiverType ? this.getType(receiverType) : null,
|
|
1077
|
-
returnType: this.getType(returnType),
|
|
1078
|
-
handler,
|
|
1079
|
-
description: opts.description,
|
|
1080
|
-
params: (argTypes || params).map(
|
|
1081
|
-
(_, i) => this.#normalizeParam(i, argTypes?.[i], params?.[i])
|
|
1082
|
-
)
|
|
1083
|
-
});
|
|
1084
|
-
} catch (e) {
|
|
1085
|
-
e.message = typeof sig === "string" ? `Invalid function declaration '${sig}': ${e.message}` : name ? `Invalid function declaration '${name}': ${e.message}` : `Invalid function declaration: ${e.message}`;
|
|
1086
|
-
throw e;
|
|
1087
|
-
}
|
|
1088
|
-
const replaced = this.#checkOverlappingSignatures(dec);
|
|
1089
|
-
if (!replaced) this.#pushFunction(dec);
|
|
1090
|
-
}
|
|
1091
|
-
registerOperatorOverload(string, handler, opts) {
|
|
1092
|
-
const unaryParts = string.match(/^([-!])([\w.<>]+)(?::\s*([\w.<>]+))?$/);
|
|
1093
|
-
if (unaryParts) {
|
|
1094
|
-
const [, op2, operandType, returnType2] = unaryParts;
|
|
1095
|
-
return this.unaryOverload(op2, operandType, handler, returnType2, opts?.async);
|
|
1096
|
-
}
|
|
1097
|
-
const parts = string.match(
|
|
1098
|
-
/^([\w.<>]+) ([-+*%/<>]|==|!=|<=|>=|in) ([\w.<>]+)(?::\s*([\w.<>]+))?$/
|
|
1099
|
-
);
|
|
1100
|
-
if (!parts) throw new Error(`Operator overload invalid: ${string}`);
|
|
1101
|
-
const [, leftType, op, rightType, returnType] = parts;
|
|
1102
|
-
return this.binaryOverload(leftType, op, rightType, handler, returnType);
|
|
1103
|
-
}
|
|
1104
|
-
unaryOverload(op, typeStr, handler, returnTypeStr, async_) {
|
|
1105
|
-
if (this.#locked) throw new Error("Cannot modify frozen registry");
|
|
1106
|
-
const leftType = this.assertType(typeStr, "type", `${op}${typeStr}`);
|
|
1107
|
-
const returnType = this.assertType(
|
|
1108
|
-
returnTypeStr || typeStr,
|
|
1109
|
-
"return type",
|
|
1110
|
-
`${op}${typeStr}: ${returnTypeStr || typeStr}`
|
|
1111
|
-
);
|
|
1112
|
-
const d = new OperatorDeclaration({ op: `${op}_`, leftType, returnType, handler, async: async_ });
|
|
1113
|
-
this.#pushOperator(this.#assertOverload(d));
|
|
1114
|
-
}
|
|
1115
|
-
#hasOverload(d) {
|
|
1116
|
-
for (const o of this.operatorCandidates(d.operator)) {
|
|
1117
|
-
if (o instanceof OperatorDeclaration && d.equals(o)) return true;
|
|
1118
|
-
}
|
|
1119
|
-
return false;
|
|
1120
|
-
}
|
|
1121
|
-
#assertOverload(decl) {
|
|
1122
|
-
if (!this.#hasOverload(decl)) return decl;
|
|
1123
|
-
throw new Error(`Operator overload already registered: ${decl.signature}`);
|
|
1124
|
-
}
|
|
1125
|
-
binaryOverload(leftTypeStr, op, rightTypeStr, handler, returnTypeStr, async_) {
|
|
1126
|
-
if (this.#locked) throw new Error("Cannot modify frozen registry");
|
|
1127
|
-
returnTypeStr ??= isRelational.has(op) ? "bool" : leftTypeStr;
|
|
1128
|
-
const sig = `${leftTypeStr} ${op} ${rightTypeStr}: ${returnTypeStr}`;
|
|
1129
|
-
let leftType = this.assertType(leftTypeStr, "left type", sig);
|
|
1130
|
-
let rightType = this.assertType(rightTypeStr, "right type", sig);
|
|
1131
|
-
const returnType = this.assertType(returnTypeStr, "return type", sig);
|
|
1132
|
-
if (leftType.kind === "dyn" && leftType.valueType) rightType = rightType.wrappedType;
|
|
1133
|
-
else if (rightType.kind === "dyn" && rightType.valueType) leftType = leftType.wrappedType;
|
|
1134
|
-
if (isRelational.has(op) && returnType.type !== "bool") {
|
|
1135
|
-
throw new Error(`Comparison operator '${op}' must return 'bool', got '${returnType.type}'`);
|
|
1136
|
-
}
|
|
1137
|
-
const dec = new OperatorDeclaration({ op, leftType, rightType, returnType, handler, async: async_ });
|
|
1138
|
-
if (dec.hasPlaceholderType && !(rightType.hasPlaceholderType && leftType.hasPlaceholderType)) {
|
|
1139
|
-
throw new Error(
|
|
1140
|
-
`Operator overload with placeholders must use them in both left and right types: ${sig}`
|
|
1141
|
-
);
|
|
1142
|
-
}
|
|
1143
|
-
this.#assertOverload(dec);
|
|
1144
|
-
if (op === "==") {
|
|
1145
|
-
const declarations = [
|
|
1146
|
-
new OperatorDeclaration({
|
|
1147
|
-
op: "!=",
|
|
1148
|
-
leftType,
|
|
1149
|
-
rightType,
|
|
1150
|
-
handler(a, b, ast, ev) {
|
|
1151
|
-
return !handler(a, b, ast, ev);
|
|
1152
|
-
},
|
|
1153
|
-
returnType,
|
|
1154
|
-
async: async_
|
|
1155
|
-
})
|
|
1156
|
-
];
|
|
1157
|
-
if (leftType !== rightType) {
|
|
1158
|
-
declarations.push(
|
|
1159
|
-
new OperatorDeclaration({
|
|
1160
|
-
op: "==",
|
|
1161
|
-
leftType: rightType,
|
|
1162
|
-
rightType: leftType,
|
|
1163
|
-
handler(a, b, ast, ev) {
|
|
1164
|
-
return handler(b, a, ast, ev);
|
|
1165
|
-
},
|
|
1166
|
-
returnType,
|
|
1167
|
-
async: async_
|
|
1168
|
-
}),
|
|
1169
|
-
new OperatorDeclaration({
|
|
1170
|
-
op: "!=",
|
|
1171
|
-
leftType: rightType,
|
|
1172
|
-
rightType: leftType,
|
|
1173
|
-
handler(a, b, ast, ev) {
|
|
1174
|
-
return !handler(b, a, ast, ev);
|
|
1175
|
-
},
|
|
1176
|
-
returnType,
|
|
1177
|
-
async: async_
|
|
1178
|
-
})
|
|
1179
|
-
);
|
|
1180
|
-
}
|
|
1181
|
-
for (const decl of declarations) this.#assertOverload(decl);
|
|
1182
|
-
for (const decl of declarations) this.#pushOperator(decl);
|
|
1183
|
-
}
|
|
1184
|
-
this.#pushOperator(dec);
|
|
1185
|
-
}
|
|
1186
|
-
}
|
|
1187
|
-
const isRelational = /* @__PURE__ */ new Set(["<", "<=", ">", ">=", "==", "!=", "in"]);
|
|
1188
|
-
export function createRegistry(opts) {
|
|
1189
|
-
return new Registry(opts);
|
|
1190
|
-
}
|
|
1191
|
-
export class RootContext {
|
|
1192
|
-
#vars;
|
|
1193
|
-
#contextObj;
|
|
1194
|
-
#contextMap;
|
|
1195
|
-
#convertCache;
|
|
1196
|
-
constructor(registry, context) {
|
|
1197
|
-
this.#vars = registry.variables;
|
|
1198
|
-
if (context === void 0 || context === null) return;
|
|
1199
|
-
if (typeof context !== "object") {
|
|
1200
|
-
throw evaluationError("invalid_context", "Context must be an object");
|
|
1201
|
-
}
|
|
1202
|
-
if (context instanceof Map) this.#contextMap = context;
|
|
1203
|
-
else this.#contextObj = context;
|
|
1204
|
-
}
|
|
1205
|
-
getValue(key) {
|
|
1206
|
-
return this.#convertCache?.get(key) || (this.#contextObj ? this.#contextObj[key] : this.#contextMap?.get(key));
|
|
1207
|
-
}
|
|
1208
|
-
getVariable(name) {
|
|
1209
|
-
return this.#vars.get(name) ?? (this.#vars.dyn && !RESERVED.has(name) ? new VariableDeclaration(name, dynType) : void 0);
|
|
1210
|
-
}
|
|
1211
|
-
getCheckedValue(ev, ast) {
|
|
1212
|
-
const v = this.getValue(ast.args);
|
|
1213
|
-
if (v === void 0) throw evaluationError("unknown_variable", `Unknown variable: ${ast.args}`, ast);
|
|
1214
|
-
if (ast.checkedType.matchesValueType(v, ev)) return v;
|
|
1215
|
-
const type = ast.checkedType;
|
|
1216
|
-
const valueType = ev.debugType(v);
|
|
1217
|
-
if (type.kind === "message" && valueType.kind === "map") {
|
|
1218
|
-
const c = ev.objectTypes.get(type.name)?.convert?.(v);
|
|
1219
|
-
if (c) return (this.#convertCache ??= /* @__PURE__ */ new Map()).set(ast.args, c), c;
|
|
1220
|
-
}
|
|
1221
|
-
throw evaluationError(
|
|
1222
|
-
"variable_type_mismatch",
|
|
1223
|
-
`Variable '${ast.args}' is not of type '${type}', got '${valueType}'`,
|
|
1224
|
-
ast
|
|
1225
|
-
);
|
|
1226
|
-
}
|
|
1227
|
-
forkWithVariable(iterVar, iterType) {
|
|
1228
|
-
return new OverlayContext(this, iterVar, iterType);
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
export class OverlayContext {
|
|
1232
|
-
#parent;
|
|
1233
|
-
accuType;
|
|
1234
|
-
accuValue;
|
|
1235
|
-
iterValue;
|
|
1236
|
-
iterVar;
|
|
1237
|
-
iterType;
|
|
1238
|
-
async;
|
|
1239
|
-
constructor(parent, iterVar, iterType) {
|
|
1240
|
-
this.#parent = parent;
|
|
1241
|
-
this.iterVar = iterVar;
|
|
1242
|
-
this.iterType = iterType;
|
|
1243
|
-
}
|
|
1244
|
-
forkWithVariable(iterVar, iterType) {
|
|
1245
|
-
return new OverlayContext(this, iterVar, iterType);
|
|
1246
|
-
}
|
|
1247
|
-
reuse(parent) {
|
|
1248
|
-
if (!this.async) return this.#parent = parent, this;
|
|
1249
|
-
const ctx = new OverlayContext(parent, this.iterVar, this.iterType);
|
|
1250
|
-
ctx.accuType = this.accuType;
|
|
1251
|
-
return ctx;
|
|
1252
|
-
}
|
|
1253
|
-
setIterValue(v, ev) {
|
|
1254
|
-
if (this.iterType.matchesValueType(v, ev)) return this.iterValue = v, this;
|
|
1255
|
-
const type = this.iterType;
|
|
1256
|
-
const valueType = ev.debugType(v);
|
|
1257
|
-
if (type.kind === "message" && valueType.kind === "map") {
|
|
1258
|
-
const c = ev.objectTypes.get(type.name)?.convert?.(v);
|
|
1259
|
-
if (c) return this.iterValue = c, this;
|
|
1260
|
-
}
|
|
1261
|
-
throw evaluationError(
|
|
1262
|
-
"variable_type_mismatch",
|
|
1263
|
-
`Variable '${this.iterVar}' is not of type '${type}', got '${valueType}'`
|
|
1264
|
-
);
|
|
1265
|
-
}
|
|
1266
|
-
setAccuType(type) {
|
|
1267
|
-
return this.accuType = type, this;
|
|
1268
|
-
}
|
|
1269
|
-
setAccuValue(v) {
|
|
1270
|
-
return this.accuValue = v, this;
|
|
1271
|
-
}
|
|
1272
|
-
getValue(key) {
|
|
1273
|
-
return this.iterVar === key ? this.iterValue : this.#parent.getValue(key);
|
|
1274
|
-
}
|
|
1275
|
-
getCheckedValue(ev, ast) {
|
|
1276
|
-
if (this.iterVar === ast.args) return this.iterValue;
|
|
1277
|
-
return this.#parent.getCheckedValue(ev, ast);
|
|
1278
|
-
}
|
|
1279
|
-
getVariable(name) {
|
|
1280
|
-
if (this.iterVar === name) return new VariableDeclaration(name, this.iterType);
|
|
1281
|
-
return this.#parent.getVariable(name);
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
function protobufjsFieldToCelType(field) {
|
|
1285
|
-
let fieldType;
|
|
1286
|
-
if (field.map) {
|
|
1287
|
-
const keyType = protobufjsTypeToCelType(field.keyType, field.resolvedKeyType);
|
|
1288
|
-
const valueType = protobufjsTypeToCelType(field.type, field.resolvedType);
|
|
1289
|
-
fieldType = `map<${keyType}, ${valueType}>`;
|
|
1290
|
-
} else {
|
|
1291
|
-
fieldType = protobufjsTypeToCelType(field.type, field.resolvedType);
|
|
1292
|
-
}
|
|
1293
|
-
return { type: field.repeated ? `list<${fieldType}>` : fieldType };
|
|
1294
|
-
}
|
|
1295
|
-
function protobufjsTypeToCelType(protoType, resolvedType) {
|
|
1296
|
-
switch (protoType) {
|
|
1297
|
-
case "string":
|
|
1298
|
-
return "string";
|
|
1299
|
-
case "bytes":
|
|
1300
|
-
return "bytes";
|
|
1301
|
-
case "bool":
|
|
1302
|
-
return "bool";
|
|
1303
|
-
case "double":
|
|
1304
|
-
case "float":
|
|
1305
|
-
case "int32":
|
|
1306
|
-
case "int64":
|
|
1307
|
-
case "sint32":
|
|
1308
|
-
case "sint64":
|
|
1309
|
-
case "sfixed32":
|
|
1310
|
-
case "sfixed64":
|
|
1311
|
-
case "uint32":
|
|
1312
|
-
case "uint64":
|
|
1313
|
-
case "fixed32":
|
|
1314
|
-
case "fixed64":
|
|
1315
|
-
return "double";
|
|
1316
|
-
default:
|
|
1317
|
-
switch (resolvedType?.constructor?.name) {
|
|
1318
|
-
case "Type":
|
|
1319
|
-
return resolvedType.fullName.slice(1);
|
|
1320
|
-
case "Enum":
|
|
1321
|
-
return "int";
|
|
1322
|
-
}
|
|
1323
|
-
if (protoType?.includes(".")) return protoType;
|
|
1324
|
-
return "dyn";
|
|
1325
|
-
}
|
|
1326
|
-
}
|