@silver-formily/element-plus 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en-US.md +1 -1
- package/README.md +1 -1
- package/esm/__builtins__/configs/index.mjs +6 -5
- package/esm/__builtins__/configs/index.mjs.map +1 -1
- package/esm/__builtins__/shared/load-config-provider.mjs +19 -11
- package/esm/__builtins__/shared/load-config-provider.mjs.map +1 -1
- package/esm/__builtins__/shared/loading.mjs +50 -46
- package/esm/__builtins__/shared/loading.mjs.map +1 -1
- package/esm/__builtins__/shared/simple-version-compare.mjs +16 -15
- package/esm/__builtins__/shared/simple-version-compare.mjs.map +1 -1
- package/esm/__builtins__/shared/transform-component.mjs +30 -31
- package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
- package/esm/__builtins__/shared/use-enter-submit.mjs +74 -62
- package/esm/__builtins__/shared/use-enter-submit.mjs.map +1 -1
- package/esm/__builtins__/shared/utils.mjs +44 -32
- package/esm/__builtins__/shared/utils.mjs.map +1 -1
- package/esm/_virtual/_/plugin-vue/export-helper.mjs +8 -0
- package/esm/array-base/array-base-addition.mjs +53 -0
- package/esm/array-base/array-base-addition.mjs.map +1 -0
- package/esm/array-base/array-base-index.mjs +17 -0
- package/esm/array-base/array-base-index.mjs.map +1 -0
- package/esm/array-base/array-base-inner.mjs +30 -0
- package/esm/array-base/array-base-inner.mjs.map +1 -0
- package/esm/array-base/array-base-item.mjs +21 -0
- package/esm/array-base/array-base-item.mjs.map +1 -0
- package/esm/array-base/array-base-move-down.mjs +45 -0
- package/esm/array-base/array-base-move-down.mjs.map +1 -0
- package/esm/array-base/array-base-move-up.mjs +45 -0
- package/esm/array-base/array-base-move-up.mjs.map +1 -0
- package/esm/array-base/array-base-remove.mjs +45 -0
- package/esm/array-base/array-base-remove.mjs.map +1 -0
- package/esm/array-base/array-base-sort-handle.mjs +33 -0
- package/esm/array-base/array-base-sort-handle.mjs.map +1 -0
- package/esm/array-base/index.mjs +28 -208
- package/esm/array-base/index.mjs.map +1 -1
- package/esm/array-base/style.css +36 -0
- package/esm/array-base/symbols.mjs +7 -6
- package/esm/array-base/symbols.mjs.map +1 -1
- package/esm/array-base/types.d.ts +23 -24
- package/esm/array-base/utils.d.ts +11 -17
- package/esm/array-base/utils.mjs +58 -60
- package/esm/array-base/utils.mjs.map +1 -1
- package/esm/array-cards/array-cards.mjs +109 -0
- package/esm/array-cards/array-cards.mjs.map +1 -0
- package/esm/array-cards/index.d.ts +120 -113
- package/esm/array-cards/index.mjs +19 -118
- package/esm/array-cards/index.mjs.map +1 -1
- package/esm/array-cards/style.css +20 -0
- package/esm/array-collapse/array-collapse-item.mjs +74 -0
- package/esm/array-collapse/array-collapse-item.mjs.map +1 -0
- package/esm/array-collapse/array-collapse.mjs +117 -0
- package/esm/array-collapse/array-collapse.mjs.map +1 -0
- package/esm/array-collapse/index.d.ts +137 -129
- package/esm/array-collapse/index.mjs +21 -174
- package/esm/array-collapse/index.mjs.map +1 -1
- package/esm/array-collapse/style.css +20 -0
- package/esm/array-collapse/utils.mjs +7 -12
- package/esm/array-collapse/utils.mjs.map +1 -1
- package/esm/array-items/array-items-item.mjs +22 -0
- package/esm/array-items/array-items-item.mjs.map +1 -0
- package/esm/array-items/array-items.mjs +88 -0
- package/esm/array-items/array-items.mjs.map +1 -0
- package/esm/array-items/index.d.ts +132 -125
- package/esm/array-items/index.mjs +21 -107
- package/esm/array-items/index.mjs.map +1 -1
- package/esm/array-items/style.css +22 -0
- package/esm/array-list-tabs/array-list-tabs.mjs +191 -0
- package/esm/array-list-tabs/array-list-tabs.mjs.map +1 -0
- package/esm/array-list-tabs/index.d.ts +80 -74
- package/esm/array-list-tabs/index.mjs +12 -186
- package/esm/array-list-tabs/index.mjs.map +1 -1
- package/esm/array-list-tabs/style.css +90 -0
- package/esm/array-list-tabs/utils.mjs +11 -15
- package/esm/array-list-tabs/utils.mjs.map +1 -1
- package/esm/array-table/array-table.mjs +236 -0
- package/esm/array-table/array-table.mjs.map +1 -0
- package/esm/array-table/index.d.ts +106 -1597
- package/esm/array-table/index.mjs +24 -223
- package/esm/array-table/index.mjs.map +1 -1
- package/esm/array-table/style.css +23 -0
- package/esm/array-table/types.d.ts +11 -6
- package/esm/array-table/utils.mjs +14 -22
- package/esm/array-table/utils.mjs.map +1 -1
- package/esm/array-tabs/array-tabs.mjs +92 -0
- package/esm/array-tabs/array-tabs.mjs.map +1 -0
- package/esm/array-tabs/index.d.ts +7 -2
- package/esm/array-tabs/index.mjs +8 -84
- package/esm/array-tabs/index.mjs.map +1 -1
- package/esm/array-tabs/style.css +7 -0
- package/esm/autocomplete/autocomplete.mjs +99 -0
- package/esm/autocomplete/autocomplete.mjs.map +1 -0
- package/esm/autocomplete/index.d.ts +5 -639
- package/esm/autocomplete/index.mjs +14 -113
- package/esm/autocomplete/index.mjs.map +1 -1
- package/esm/cascader/cascader.mjs +32 -0
- package/esm/cascader/cascader.mjs.map +1 -0
- package/esm/cascader/index.d.ts +5 -28
- package/esm/cascader/index.mjs +13 -50
- package/esm/cascader/index.mjs.map +1 -1
- package/esm/checkbox/checkbox-group.mjs +64 -0
- package/esm/checkbox/checkbox-group.mjs.map +1 -0
- package/esm/checkbox/index.d.ts +5 -817
- package/esm/checkbox/index.mjs +16 -69
- package/esm/checkbox/index.mjs.map +1 -1
- package/esm/color-picker/index.d.ts +8 -210
- package/esm/color-picker/index.mjs +13 -17
- package/esm/color-picker/index.mjs.map +1 -1
- package/esm/color-picker-panel/index.d.ts +8 -129
- package/esm/color-picker-panel/index.mjs +16 -25
- package/esm/color-picker-panel/index.mjs.map +1 -1
- package/esm/date-picker/index.d.ts +5 -443
- package/esm/date-picker/index.mjs +21 -29
- package/esm/date-picker/index.mjs.map +1 -1
- package/esm/date-picker/utils.mjs +21 -26
- package/esm/date-picker/utils.mjs.map +1 -1
- package/esm/date-picker-panel/index.d.ts +5 -143
- package/esm/date-picker-panel/index.mjs +23 -30
- package/esm/date-picker-panel/index.mjs.map +1 -1
- package/esm/editable/editable-popover.mjs +95 -0
- package/esm/editable/editable-popover.mjs.map +1 -0
- package/esm/editable/editable.mjs +113 -0
- package/esm/editable/editable.mjs.map +1 -0
- package/esm/editable/index.d.ts +10 -150
- package/esm/editable/index.mjs +17 -219
- package/esm/editable/index.mjs.map +1 -1
- package/esm/editable/style.css +29 -0
- package/esm/form/form.mjs +50 -70
- package/esm/form/form.mjs.map +1 -1
- package/esm/form/form.vue.d.ts +48 -0
- package/esm/form/index.d.ts +1 -1
- package/esm/form-button-group/form-button-group-sticky.mjs +37 -0
- package/esm/form-button-group/form-button-group-sticky.mjs.map +1 -0
- package/esm/form-button-group/form-button-group.mjs +71 -0
- package/esm/form-button-group/form-button-group.mjs.map +1 -0
- package/esm/form-button-group/index.d.ts +94 -87
- package/esm/form-button-group/index.mjs +10 -96
- package/esm/form-button-group/index.mjs.map +1 -1
- package/esm/form-button-group/style.css +281 -0
- package/esm/form-button-group/utils.mjs +7 -12
- package/esm/form-button-group/utils.mjs.map +1 -1
- package/esm/form-collapse/form-collapse.mjs +74 -0
- package/esm/form-collapse/form-collapse.mjs.map +1 -0
- package/esm/form-collapse/index.d.ts +43 -39
- package/esm/form-collapse/index.mjs +20 -86
- package/esm/form-collapse/index.mjs.map +1 -1
- package/esm/form-collapse/style.css +7 -0
- package/esm/form-collapse/utils.d.ts +21 -27
- package/esm/form-collapse/utils.mjs +48 -46
- package/esm/form-collapse/utils.mjs.map +1 -1
- package/esm/form-dialog/dialog-content.mjs +118 -0
- package/esm/form-dialog/dialog-content.mjs.map +1 -0
- package/esm/form-dialog/index.d.ts +8 -4
- package/esm/form-dialog/index.mjs +142 -211
- package/esm/form-dialog/index.mjs.map +1 -1
- package/esm/form-dialog/types.d.ts +38 -32
- package/esm/form-drawer/drawer-content.mjs +118 -0
- package/esm/form-drawer/drawer-content.mjs.map +1 -0
- package/esm/form-drawer/index.d.ts +8 -4
- package/esm/form-drawer/index.mjs +142 -204
- package/esm/form-drawer/index.mjs.map +1 -1
- package/esm/form-drawer/types.d.ts +38 -32
- package/esm/form-grid/form-grid-column.mjs +28 -0
- package/esm/form-grid/form-grid-column.mjs.map +1 -0
- package/esm/form-grid/form-grid.mjs +69 -0
- package/esm/form-grid/form-grid.mjs.map +1 -0
- package/esm/form-grid/hooks.mjs +7 -7
- package/esm/form-grid/hooks.mjs.map +1 -1
- package/esm/form-grid/index.d.ts +5 -2
- package/esm/form-grid/index.mjs +10 -109
- package/esm/form-grid/index.mjs.map +1 -1
- package/esm/form-grid/style.css +128 -0
- package/esm/form-item/form-item.mjs +308 -0
- package/esm/form-item/form-item.mjs.map +1 -0
- package/esm/form-item/form-item.vue.d.ts +29 -0
- package/esm/form-item/index.d.ts +9 -77
- package/esm/form-item/index.mjs +28 -332
- package/esm/form-item/index.mjs.map +1 -1
- package/esm/form-item/style.css +263 -0
- package/esm/form-item/types.d.ts +34 -29
- package/esm/form-item/utils.mjs +15 -15
- package/esm/form-item/utils.mjs.map +1 -1
- package/esm/form-layout/form-layout.mjs +103 -83
- package/esm/form-layout/form-layout.mjs.map +1 -1
- package/esm/form-layout/form-layout.vue.d.ts +28 -0
- package/esm/form-layout/index.d.ts +1 -1
- package/esm/form-layout/types.d.ts +24 -40
- package/esm/form-layout/utils.mjs +73 -99
- package/esm/form-layout/utils.mjs.map +1 -1
- package/esm/form-step/form-step-pane.mjs +15 -0
- package/esm/form-step/form-step-pane.mjs.map +1 -0
- package/esm/form-step/form-step.mjs +63 -0
- package/esm/form-step/form-step.mjs.map +1 -0
- package/esm/form-step/index.d.ts +29 -23
- package/esm/form-step/index.mjs +12 -93
- package/esm/form-step/index.mjs.map +1 -1
- package/esm/form-step/types.d.ts +19 -19
- package/esm/form-step/utils.d.ts +14 -10
- package/esm/form-step/utils.mjs +75 -59
- package/esm/form-step/utils.mjs.map +1 -1
- package/esm/form-tab/form-tab.mjs +79 -0
- package/esm/form-tab/form-tab.mjs.map +1 -0
- package/esm/form-tab/hooks.mjs +18 -16
- package/esm/form-tab/hooks.mjs.map +1 -1
- package/esm/form-tab/index.d.ts +5 -3
- package/esm/form-tab/index.mjs +10 -76
- package/esm/form-tab/index.mjs.map +1 -1
- package/esm/form-tab/style.css +4 -0
- package/esm/form-tab/utils.mjs +14 -13
- package/esm/form-tab/utils.mjs.map +1 -1
- package/esm/index.d.ts +53 -48
- package/esm/index.mjs +50 -103
- package/esm/input/index.d.ts +5 -52
- package/esm/input/index.mjs +16 -68
- package/esm/input/index.mjs.map +1 -1
- package/esm/input/input.mjs +41 -0
- package/esm/input/input.mjs.map +1 -0
- package/esm/input-number/index.d.ts +8 -329
- package/esm/input-number/index.mjs +12 -24
- package/esm/input-number/index.mjs.map +1 -1
- package/esm/input-tag/index.d.ts +5 -32
- package/esm/input-tag/index.mjs +13 -49
- package/esm/input-tag/index.mjs.map +1 -1
- package/esm/input-tag/input-tag.mjs +41 -0
- package/esm/input-tag/input-tag.mjs.map +1 -0
- package/esm/mention/index.d.ts +5 -50
- package/esm/mention/index.mjs +15 -96
- package/esm/mention/index.mjs.map +1 -1
- package/esm/mention/mention.mjs +77 -0
- package/esm/mention/mention.mjs.map +1 -0
- package/esm/pagination/components/jumper.mjs +11 -12
- package/esm/pagination/components/jumper.mjs.map +1 -1
- package/esm/pagination/components/jumper2.mjs +59 -0
- package/esm/pagination/components/jumper2.mjs.map +1 -0
- package/esm/pagination/components/next.mjs +18 -22
- package/esm/pagination/components/next.mjs.map +1 -1
- package/esm/pagination/components/next2.mjs +38 -0
- package/esm/pagination/components/next2.mjs.map +1 -0
- package/esm/pagination/components/pager.mjs +21 -22
- package/esm/pagination/components/pager.mjs.map +1 -1
- package/esm/pagination/components/pager2.mjs +229 -0
- package/esm/pagination/components/pager2.mjs.map +1 -0
- package/esm/pagination/components/prev.mjs +16 -22
- package/esm/pagination/components/prev.mjs.map +1 -1
- package/esm/pagination/components/prev2.mjs +38 -0
- package/esm/pagination/components/prev2.mjs.map +1 -0
- package/esm/pagination/components/sizes.mjs +32 -7
- package/esm/pagination/components/sizes.mjs.map +1 -1
- package/esm/pagination/components/sizes2.mjs +66 -0
- package/esm/pagination/components/sizes2.mjs.map +1 -0
- package/esm/pagination/components/total.mjs +10 -11
- package/esm/pagination/components/total.mjs.map +1 -1
- package/esm/pagination/components/total2.mjs +26 -0
- package/esm/pagination/components/total2.mjs.map +1 -0
- package/esm/pagination/pagination.mjs +271 -626
- package/esm/pagination/pagination.mjs.map +1 -1
- package/esm/password/index.d.ts +8 -54
- package/esm/password/index.mjs +11 -14
- package/esm/password/index.mjs.map +1 -1
- package/esm/preview-text/cascader.mjs +51 -0
- package/esm/preview-text/cascader.mjs.map +1 -0
- package/esm/preview-text/color-picker.mjs +37 -0
- package/esm/preview-text/color-picker.mjs.map +1 -0
- package/esm/preview-text/date-picker.mjs +61 -0
- package/esm/preview-text/date-picker.mjs.map +1 -0
- package/esm/preview-text/index.d.ts +107 -106
- package/esm/preview-text/index.mjs +25 -363
- package/esm/preview-text/index.mjs.map +1 -1
- package/esm/preview-text/input.mjs +39 -0
- package/esm/preview-text/input.mjs.map +1 -0
- package/esm/preview-text/preview.mjs +30 -0
- package/esm/preview-text/preview.mjs.map +1 -0
- package/esm/preview-text/rate.mjs +32 -0
- package/esm/preview-text/rate.mjs.map +1 -0
- package/esm/preview-text/select.mjs +42 -0
- package/esm/preview-text/select.mjs.map +1 -0
- package/esm/preview-text/style.css +16 -0
- package/esm/preview-text/time-picker.mjs +39 -0
- package/esm/preview-text/time-picker.mjs.map +1 -0
- package/esm/preview-text/tree.mjs +73 -0
- package/esm/preview-text/tree.mjs.map +1 -0
- package/esm/preview-text/utils.d.ts +10 -13
- package/esm/preview-text/utils.mjs +15 -15
- package/esm/preview-text/utils.mjs.map +1 -1
- package/esm/query-form/default-components.mjs +45 -45
- package/esm/query-form/default-components.mjs.map +1 -1
- package/esm/query-form/hooks.mjs +31 -26
- package/esm/query-form/hooks.mjs.map +1 -1
- package/esm/query-form/index.d.ts +115 -105
- package/esm/query-form/index.mjs +10 -333
- package/esm/query-form/index.mjs.map +1 -1
- package/esm/query-form/query-form-light.mjs +86 -0
- package/esm/query-form/query-form-light.mjs.map +1 -0
- package/esm/query-form/query-form.mjs +263 -0
- package/esm/query-form/query-form.mjs.map +1 -0
- package/esm/query-form/style.css +27 -0
- package/esm/query-form/types.d.ts +42 -41
- package/esm/query-form-item/index.d.ts +7 -151
- package/esm/query-form-item/index.mjs +15 -183
- package/esm/query-form-item/index.mjs.map +1 -1
- package/esm/query-form-item/query-form-item.mjs +195 -0
- package/esm/query-form-item/query-form-item.mjs.map +1 -0
- package/esm/query-form-item/style.css +12 -0
- package/esm/query-form-item/types.d.ts +42 -38
- package/esm/radio/index.d.ts +429 -473
- package/esm/radio/index.mjs +15 -68
- package/esm/radio/index.mjs.map +1 -1
- package/esm/radio/radio-group.mjs +70 -0
- package/esm/radio/radio-group.mjs.map +1 -0
- package/esm/{styles/radio/index.css → radio/style.css} +3 -1
- package/esm/rate/index.d.ts +8 -187
- package/esm/rate/index.mjs +13 -17
- package/esm/rate/index.mjs.map +1 -1
- package/esm/reset/index.d.ts +5 -2
- package/esm/reset/index.mjs +8 -44
- package/esm/reset/index.mjs.map +1 -1
- package/esm/reset/reset.mjs +42 -0
- package/esm/reset/reset.mjs.map +1 -0
- package/esm/segmented/index.d.ts +5 -26
- package/esm/segmented/index.mjs +13 -40
- package/esm/segmented/index.mjs.map +1 -1
- package/esm/segmented/segmented.mjs +26 -0
- package/esm/segmented/segmented.mjs.map +1 -0
- package/esm/select/index.d.ts +5 -129
- package/esm/select/index.mjs +14 -127
- package/esm/select/index.mjs.map +1 -1
- package/esm/select/select.mjs +95 -0
- package/esm/select/select.mjs.map +1 -0
- package/esm/select-table/index.d.ts +4 -1557
- package/esm/select-table/index.mjs +12 -204
- package/esm/select-table/index.mjs.map +1 -1
- package/esm/select-table/select-table.mjs +202 -0
- package/esm/select-table/select-table.mjs.map +1 -0
- package/esm/select-table/style.css +14 -0
- package/esm/shared/overlay-elements.mjs +15 -16
- package/esm/shared/overlay-elements.mjs.map +1 -1
- package/esm/shared/url-change-listener.mjs +50 -0
- package/esm/shared/url-change-listener.mjs.map +1 -0
- package/esm/slider/index.d.ts +8 -177
- package/esm/slider/index.mjs +13 -17
- package/esm/slider/index.mjs.map +1 -1
- package/esm/space/index.d.ts +2 -1
- package/esm/space/index.mjs +2 -6
- package/esm/submit/index.d.ts +5 -2
- package/esm/submit/index.mjs +8 -40
- package/esm/submit/index.mjs.map +1 -1
- package/esm/submit/submit.mjs +41 -0
- package/esm/submit/submit.mjs.map +1 -0
- package/esm/switch/index.d.ts +8 -299
- package/esm/switch/index.mjs +8 -13
- package/esm/switch/index.mjs.map +1 -1
- package/esm/time-picker/index.d.ts +8 -445
- package/esm/time-picker/index.mjs +10 -17
- package/esm/time-picker/index.mjs.map +1 -1
- package/esm/time-select/index.d.ts +5 -185
- package/esm/time-select/index.mjs +13 -17
- package/esm/time-select/index.mjs.map +1 -1
- package/esm/transfer/index.d.ts +8 -267
- package/esm/transfer/index.mjs +8 -11
- package/esm/transfer/index.mjs.map +1 -1
- package/esm/tree/index.d.ts +4 -41
- package/esm/tree/index.mjs +14 -104
- package/esm/tree/index.mjs.map +1 -1
- package/esm/tree/tree.mjs +127 -0
- package/esm/tree/tree.mjs.map +1 -0
- package/esm/tree/utils.mjs +157 -149
- package/esm/tree/utils.mjs.map +1 -1
- package/esm/tree-select/index.d.ts +5 -16
- package/esm/tree-select/index.mjs +13 -40
- package/esm/tree-select/index.mjs.map +1 -1
- package/esm/tree-select/tree-select.mjs +38 -0
- package/esm/tree-select/tree-select.mjs.map +1 -0
- package/esm/upload/index.d.ts +5 -712
- package/esm/upload/index.mjs +11 -172
- package/esm/upload/index.mjs.map +1 -1
- package/esm/upload/upload.mjs +176 -0
- package/esm/upload/upload.mjs.map +1 -0
- package/package.json +23 -24
- package/esm/__builtins__/configs/index.d.ts +0 -1
- package/esm/__builtins__/index.d.ts +0 -2
- package/esm/__builtins__/index.mjs +0 -23
- package/esm/__builtins__/index.mjs.map +0 -1
- package/esm/__builtins__/shared/index.d.ts +0 -6
- package/esm/__builtins__/shared/index.mjs +0 -21
- package/esm/__builtins__/shared/index.mjs.map +0 -1
- package/esm/__builtins__/shared/load-config-provider.d.ts +0 -2
- package/esm/__builtins__/shared/loading.d.ts +0 -12
- package/esm/__builtins__/shared/simple-version-compare.d.ts +0 -2
- package/esm/__builtins__/shared/transform-component.d.ts +0 -3
- package/esm/__builtins__/shared/types.d.ts +0 -2
- package/esm/__builtins__/shared/types.mjs +0 -2
- package/esm/__builtins__/shared/types.mjs.map +0 -1
- package/esm/__builtins__/shared/use-enter-submit.d.ts +0 -9
- package/esm/__builtins__/shared/utils.d.ts +0 -9
- package/esm/array-base/array-base-addition.d.ts +0 -5
- package/esm/array-base/array-base-index.d.ts +0 -19
- package/esm/array-base/array-base-inner.d.ts +0 -18
- package/esm/array-base/array-base-item.d.ts +0 -18
- package/esm/array-base/array-base-move-down.d.ts +0 -18
- package/esm/array-base/array-base-move-up.d.ts +0 -18
- package/esm/array-base/array-base-remove.d.ts +0 -18
- package/esm/array-base/array-base-sort-handle.d.ts +0 -2
- package/esm/array-base/index.d.ts +0 -114
- package/esm/array-base/symbols.d.ts +0 -4
- package/esm/array-base/types.mjs +0 -2
- package/esm/array-base/types.mjs.map +0 -1
- package/esm/array-cards/array-cards.d.ts +0 -13
- package/esm/array-collapse/array-collapse-item.d.ts +0 -18
- package/esm/array-collapse/array-collapse.d.ts +0 -16
- package/esm/array-collapse/utils.d.ts +0 -1
- package/esm/array-items/array-items-item.d.ts +0 -30
- package/esm/array-items/array-items.d.ts +0 -2
- package/esm/array-list-tabs/array-list-tabs.d.ts +0 -31
- package/esm/array-list-tabs/utils.d.ts +0 -3
- package/esm/array-table/array-table.d.ts +0 -1505
- package/esm/array-table/types.mjs +0 -2
- package/esm/array-table/types.mjs.map +0 -1
- package/esm/array-table/utils.d.ts +0 -5
- package/esm/array-tabs/array-tabs.d.ts +0 -2
- package/esm/autocomplete/autocomplete.d.ts +0 -1222
- package/esm/cascader/cascader.d.ts +0 -25
- package/esm/checkbox/checkbox-group.d.ts +0 -42
- package/esm/date-picker/utils.d.ts +0 -4
- package/esm/editable/editable-popover.d.ts +0 -25
- package/esm/editable/editable.d.ts +0 -193
- package/esm/env.d.d.ts +0 -1
- package/esm/env.d.mjs +0 -2
- package/esm/env.d.mjs.map +0 -1
- package/esm/form/form.d.ts +0 -46
- package/esm/form/index.mjs +0 -6
- package/esm/form/index.mjs.map +0 -1
- package/esm/form-button-group/form-button-group-sticky.d.ts +0 -17
- package/esm/form-button-group/form-button-group.d.ts +0 -57
- package/esm/form-button-group/utils.d.ts +0 -1
- package/esm/form-collapse/form-collapse.d.ts +0 -18
- package/esm/form-dialog/dialog-content.d.ts +0 -846
- package/esm/form-dialog/types.mjs +0 -2
- package/esm/form-dialog/types.mjs.map +0 -1
- package/esm/form-drawer/drawer-content.d.ts +0 -976
- package/esm/form-drawer/types.mjs +0 -2
- package/esm/form-drawer/types.mjs.map +0 -1
- package/esm/form-grid/form-grid-column.d.ts +0 -29
- package/esm/form-grid/form-grid.d.ts +0 -101
- package/esm/form-grid/hooks.d.ts +0 -4
- package/esm/form-item/form-item.d.ts +0 -19
- package/esm/form-item/types.mjs +0 -2
- package/esm/form-item/types.mjs.map +0 -1
- package/esm/form-item/utils.d.ts +0 -3
- package/esm/form-layout/form-layout.d.ts +0 -31
- package/esm/form-layout/index.mjs +0 -6
- package/esm/form-layout/index.mjs.map +0 -1
- package/esm/form-layout/types.mjs +0 -2
- package/esm/form-layout/types.mjs.map +0 -1
- package/esm/form-layout/utils.d.ts +0 -57
- package/esm/form-step/form-step-pane.d.ts +0 -2
- package/esm/form-step/form-step.d.ts +0 -5
- package/esm/form-step/types.mjs +0 -2
- package/esm/form-step/types.mjs.map +0 -1
- package/esm/form-tab/form-tab.d.ts +0 -7
- package/esm/form-tab/hooks.d.ts +0 -8
- package/esm/form-tab/types.d.ts +0 -12
- package/esm/form-tab/types.mjs +0 -2
- package/esm/form-tab/types.mjs.map +0 -1
- package/esm/form-tab/utils.d.ts +0 -4
- package/esm/index.mjs.map +0 -1
- package/esm/input/input.d.ts +0 -25
- package/esm/input-tag/input-tag.d.ts +0 -32
- package/esm/mention/mention.d.ts +0 -51
- package/esm/pagination/components/jumper.d.ts +0 -16
- package/esm/pagination/components/next.d.ts +0 -42
- package/esm/pagination/components/pager.d.ts +0 -42
- package/esm/pagination/components/prev.d.ts +0 -39
- package/esm/pagination/components/sizes.d.ts +0 -56
- package/esm/pagination/components/total.d.ts +0 -8
- package/esm/pagination/pagination.d.ts +0 -128
- package/esm/preview-text/cascader.d.ts +0 -5
- package/esm/preview-text/color-picker.d.ts +0 -5
- package/esm/preview-text/date-picker.d.ts +0 -5
- package/esm/preview-text/input.d.ts +0 -28
- package/esm/preview-text/preview.d.ts +0 -18
- package/esm/preview-text/rate.d.ts +0 -5
- package/esm/preview-text/select.d.ts +0 -5
- package/esm/preview-text/time-picker.d.ts +0 -5
- package/esm/preview-text/tree.d.ts +0 -22
- package/esm/query-form/default-components.d.ts +0 -5
- package/esm/query-form/hooks.d.ts +0 -25
- package/esm/query-form/query-form-light.d.ts +0 -27
- package/esm/query-form/query-form.d.ts +0 -52
- package/esm/query-form/types.mjs +0 -2
- package/esm/query-form/types.mjs.map +0 -1
- package/esm/query-form-item/query-form-item.d.ts +0 -96
- package/esm/query-form-item/types.mjs +0 -2
- package/esm/query-form-item/types.mjs.map +0 -1
- package/esm/radio/radio-group.d.ts +0 -33
- package/esm/reset/reset.d.ts +0 -45
- package/esm/segmented/segmented.d.ts +0 -25
- package/esm/select/select.d.ts +0 -45
- package/esm/select-table/select-table.d.ts +0 -3030
- package/esm/select-table/types.d.ts +0 -17
- package/esm/select-table/types.mjs +0 -2
- package/esm/select-table/types.mjs.map +0 -1
- package/esm/shared/overlay-elements.d.ts +0 -6
- package/esm/space/index.mjs.map +0 -1
- package/esm/styles/array-base/index.css +0 -1
- package/esm/styles/array-cards/index.css +0 -1
- package/esm/styles/array-collapse/index.css +0 -1
- package/esm/styles/array-items/index.css +0 -1
- package/esm/styles/array-list-tabs/index.css +0 -1
- package/esm/styles/array-table/index.css +0 -1
- package/esm/styles/array-tabs/index.css +0 -1
- package/esm/styles/editable/index.css +0 -1
- package/esm/styles/form-button-group/index.css +0 -1
- package/esm/styles/form-collapse/index.css +0 -1
- package/esm/styles/form-grid/index.css +0 -1
- package/esm/styles/form-item/index.css +0 -1
- package/esm/styles/form-tab/index.css +0 -1
- package/esm/styles/preview-text/index.css +0 -1
- package/esm/styles/query-form/index.css +0 -1
- package/esm/styles/query-form-item/index.css +0 -1
- package/esm/styles/select-table/index.css +0 -1
- package/esm/submit/submit.d.ts +0 -36
- package/esm/tree/tree.d.ts +0 -20
- package/esm/tree/types.d.ts +0 -13
- package/esm/tree/types.mjs +0 -2
- package/esm/tree/types.mjs.map +0 -1
- package/esm/tree/utils.d.ts +0 -45
- package/esm/tree-select/tree-select.d.ts +0 -10
- package/esm/upload/upload.d.ts +0 -1259
- package/esm/vendor/icon.mjs +0 -11
- package/esm/vendor/icon.mjs.map +0 -1
- package/esm/vendor/lodash.mjs +0 -1506
- package/esm/vendor/lodash.mjs.map +0 -1
- package/esm/vendor/runtime.mjs +0 -34
- package/esm/vendor/runtime.mjs.map +0 -1
- package/esm/vendor/shared.esm-bundler.mjs +0 -9
- package/esm/vendor/shared.esm-bundler.mjs.map +0 -1
- package/esm/vendor/sizes.mjs +0 -27
- package/esm/vendor/sizes.mjs.map +0 -1
- package/esm/vendor/types.mjs +0 -19
- package/esm/vendor/types.mjs.map +0 -1
|
@@ -1,36 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
shadow?: "always" | "hover" | "never";
|
|
26
|
-
modelValue: any;
|
|
27
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
28
|
-
shadow: "always" | "hover" | "never";
|
|
29
|
-
}>;
|
|
30
|
-
__isFragment?: never;
|
|
31
|
-
__isTeleport?: never;
|
|
32
|
-
__isSuspense?: never;
|
|
33
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
1
|
+
import { IArrayBaseAdditionProps, IArrayBaseOperationProps } from "../array-base/types.js";
|
|
2
|
+
import { useArray, useIndex, useRecord } from "../array-base/utils.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/array-cards/index.d.ts
|
|
6
|
+
declare const ArrayCards: {
|
|
7
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
8
|
+
title?: string;
|
|
9
|
+
header?: string;
|
|
10
|
+
footer?: string;
|
|
11
|
+
bodyStyle?: Record<string, string>;
|
|
12
|
+
bodyClass?: string;
|
|
13
|
+
shadow?: "always" | "hover" | "never";
|
|
14
|
+
modelValue: any;
|
|
15
|
+
}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {
|
|
16
|
+
shadow: "always" | "hover" | "never";
|
|
17
|
+
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
18
|
+
P: {};
|
|
19
|
+
B: {};
|
|
20
|
+
D: {};
|
|
21
|
+
C: {};
|
|
22
|
+
M: {};
|
|
23
|
+
Defaults: {};
|
|
24
|
+
}, Readonly<{
|
|
34
25
|
title?: string;
|
|
35
26
|
header?: string;
|
|
36
27
|
footer?: string;
|
|
@@ -38,85 +29,101 @@ export declare const ArrayCards: {
|
|
|
38
29
|
bodyClass?: string;
|
|
39
30
|
shadow?: "always" | "hover" | "never";
|
|
40
31
|
modelValue: any;
|
|
41
|
-
}> & Readonly<{}>, {}, {}, {}, {},
|
|
32
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
42
33
|
shadow: "always" | "hover" | "never";
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}, {}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
34
|
+
}>;
|
|
35
|
+
__isFragment?: never;
|
|
36
|
+
__isTeleport?: never;
|
|
37
|
+
__isSuspense?: never;
|
|
38
|
+
} & _$vue.ComponentOptionsBase<Readonly<{
|
|
39
|
+
title?: string;
|
|
40
|
+
header?: string;
|
|
41
|
+
footer?: string;
|
|
42
|
+
bodyStyle?: Record<string, string>;
|
|
43
|
+
bodyClass?: string;
|
|
44
|
+
shadow?: "always" | "hover" | "never";
|
|
45
|
+
modelValue: any;
|
|
46
|
+
}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {
|
|
47
|
+
shadow: "always" | "hover" | "never";
|
|
48
|
+
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & {
|
|
49
|
+
Index: {
|
|
50
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
51
|
+
P: {};
|
|
52
|
+
B: {};
|
|
53
|
+
D: {};
|
|
54
|
+
C: {};
|
|
55
|
+
M: {};
|
|
56
|
+
Defaults: {};
|
|
57
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
58
|
+
__isFragment?: never;
|
|
59
|
+
__isTeleport?: never;
|
|
60
|
+
__isSuspense?: never;
|
|
61
|
+
} & _$vue.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
62
|
+
$slots: {
|
|
63
|
+
default?: (props: {
|
|
64
|
+
index: number;
|
|
65
|
+
}) => any;
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
SortHandle: _$vue.DefineComponent<{}, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
69
|
+
Addition: _$vue.DefineComponent<IArrayBaseAdditionProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<IArrayBaseAdditionProps> & Readonly<{}>, {
|
|
70
|
+
method: "push" | "unshift";
|
|
71
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
72
|
+
Remove: {
|
|
73
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
74
|
+
P: {};
|
|
75
|
+
B: {};
|
|
76
|
+
D: {};
|
|
77
|
+
C: {};
|
|
78
|
+
M: {};
|
|
79
|
+
Defaults: {};
|
|
80
|
+
}, Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
81
|
+
__isFragment?: never;
|
|
82
|
+
__isTeleport?: never;
|
|
83
|
+
__isSuspense?: never;
|
|
84
|
+
} & _$vue.ComponentOptionsBase<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
85
|
+
$slots: {
|
|
86
|
+
default?: (props: {}) => any;
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
MoveDown: {
|
|
90
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
91
|
+
P: {};
|
|
92
|
+
B: {};
|
|
93
|
+
D: {};
|
|
94
|
+
C: {};
|
|
95
|
+
M: {};
|
|
96
|
+
Defaults: {};
|
|
97
|
+
}, Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
98
|
+
__isFragment?: never;
|
|
99
|
+
__isTeleport?: never;
|
|
100
|
+
__isSuspense?: never;
|
|
101
|
+
} & _$vue.ComponentOptionsBase<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
102
|
+
$slots: {
|
|
103
|
+
default?: (props: {}) => any;
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
MoveUp: {
|
|
107
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
108
|
+
P: {};
|
|
109
|
+
B: {};
|
|
110
|
+
D: {};
|
|
111
|
+
C: {};
|
|
112
|
+
M: {};
|
|
113
|
+
Defaults: {};
|
|
114
|
+
}, Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
115
|
+
__isFragment?: never;
|
|
116
|
+
__isTeleport?: never;
|
|
117
|
+
__isSuspense?: never;
|
|
118
|
+
} & _$vue.ComponentOptionsBase<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
119
|
+
$slots: {
|
|
120
|
+
default?: (props: {}) => any;
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
useArray: typeof useArray;
|
|
124
|
+
useIndex: typeof useIndex;
|
|
125
|
+
useRecord: typeof useRecord;
|
|
121
126
|
};
|
|
122
|
-
|
|
127
|
+
//#endregion
|
|
128
|
+
export { ArrayCards };
|
|
129
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,119 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
title: {},
|
|
17
|
-
header: {},
|
|
18
|
-
footer: {},
|
|
19
|
-
bodyStyle: {},
|
|
20
|
-
bodyClass: {},
|
|
21
|
-
shadow: { default: "never" },
|
|
22
|
-
modelValue: {}
|
|
23
|
-
},
|
|
24
|
-
setup(S) {
|
|
25
|
-
const i = S, V = P(), _ = U(), o = V.value, m = _.value, u = `${z}-array-cards`, { getKey: F, keyMap: M } = r.useKey(_.value), k = D(f(o.value) ? o.value : []);
|
|
26
|
-
return $(() => {
|
|
27
|
-
k.value = f(o.value) ? [...o.value] : [];
|
|
28
|
-
}), (T, q) => (a(), c("div", {
|
|
29
|
-
class: E(u)
|
|
30
|
-
}, [
|
|
31
|
-
s(e(r), { "key-map": e(M) }, {
|
|
32
|
-
default: n(() => [
|
|
33
|
-
e(f)(e(o).value) && e(o).value.length > 0 ? h("", !0) : (a(), v(e(A), R({
|
|
34
|
-
key: 0,
|
|
35
|
-
class: `${u}-item`
|
|
36
|
-
}, i), {
|
|
37
|
-
default: n(() => [
|
|
38
|
-
s(e(B))
|
|
39
|
-
]),
|
|
40
|
-
_: 1
|
|
41
|
-
}, 16, ["class"])),
|
|
42
|
-
e(f)(i.modelValue) ? (a(!0), c(C, { key: 1 }, x(k.value, (p, t) => (a(), v(e(r).Item, {
|
|
43
|
-
key: e(F)(p, t),
|
|
44
|
-
index: t,
|
|
45
|
-
record: p
|
|
46
|
-
}, {
|
|
47
|
-
default: n(() => [
|
|
48
|
-
s(e(A), R({ ref_for: !0 }, i, {
|
|
49
|
-
class: `${u}-item`
|
|
50
|
-
}), {
|
|
51
|
-
header: n(() => [
|
|
52
|
-
s(e(N), {
|
|
53
|
-
type: "flex",
|
|
54
|
-
justify: "space-between"
|
|
55
|
-
}, {
|
|
56
|
-
default: n(() => [
|
|
57
|
-
I("span", null, [
|
|
58
|
-
s(e(d), {
|
|
59
|
-
schema: e(y)(e(m), t),
|
|
60
|
-
name: t,
|
|
61
|
-
"filter-properties": (l) => e(g)(l),
|
|
62
|
-
"only-render-properties": !0
|
|
63
|
-
}, null, 8, ["schema", "name", "filter-properties"]),
|
|
64
|
-
H(" " + K(e(y)(e(m), t).title ?? i.title ?? e(o).title), 1)
|
|
65
|
-
]),
|
|
66
|
-
I("span", {
|
|
67
|
-
class: E(`${u}-extra-container`)
|
|
68
|
-
}, [
|
|
69
|
-
s(e(d), {
|
|
70
|
-
schema: e(y)(e(m), t),
|
|
71
|
-
name: t,
|
|
72
|
-
"filter-properties": (l) => e(w)(l),
|
|
73
|
-
"only-render-properties": !0
|
|
74
|
-
}, null, 8, ["schema", "name", "filter-properties"])
|
|
75
|
-
], 2)
|
|
76
|
-
]),
|
|
77
|
-
_: 2
|
|
78
|
-
}, 1024)
|
|
79
|
-
]),
|
|
80
|
-
default: n(() => [
|
|
81
|
-
s(e(d), {
|
|
82
|
-
schema: e(y)(e(m), t),
|
|
83
|
-
name: t,
|
|
84
|
-
"filter-properties": (l) => !e(g)(l) && !e(w)(l)
|
|
85
|
-
}, null, 8, ["schema", "name", "filter-properties"])
|
|
86
|
-
]),
|
|
87
|
-
_: 2
|
|
88
|
-
}, 1040, ["class"])
|
|
89
|
-
]),
|
|
90
|
-
_: 2
|
|
91
|
-
}, 1032, ["index", "record"]))), 128)) : h("", !0),
|
|
92
|
-
(a(!0), c(C, null, x(e(m).properties, (p, t) => (a(), c(C, { key: t }, [
|
|
93
|
-
e(L)(p) ? (a(), v(e(d), {
|
|
94
|
-
key: 0,
|
|
95
|
-
schema: p,
|
|
96
|
-
name: "addition"
|
|
97
|
-
}, null, 8, ["schema"])) : h("", !0)
|
|
98
|
-
], 64))), 128))
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}, 8, ["key-map"])
|
|
102
|
-
]));
|
|
103
|
-
}
|
|
104
|
-
}), ae = j(O, {
|
|
105
|
-
Index: r.Index,
|
|
106
|
-
SortHandle: r.SortHandle,
|
|
107
|
-
Addition: r.Addition,
|
|
108
|
-
Remove: r.Remove,
|
|
109
|
-
MoveDown: r.MoveDown,
|
|
110
|
-
MoveUp: r.MoveUp,
|
|
111
|
-
useArray: r.useArray,
|
|
112
|
-
useIndex: r.useIndex,
|
|
113
|
-
useRecord: r.useRecord
|
|
1
|
+
import { composeExport } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { ArrayBase } from "../array-base/index.mjs";
|
|
3
|
+
import _sfc_main from "./array-cards.mjs";
|
|
4
|
+
import "./style.css";
|
|
5
|
+
//#region src/array-cards/index.ts
|
|
6
|
+
const ArrayCards = composeExport(_sfc_main, {
|
|
7
|
+
Index: ArrayBase.Index,
|
|
8
|
+
SortHandle: ArrayBase.SortHandle,
|
|
9
|
+
Addition: ArrayBase.Addition,
|
|
10
|
+
Remove: ArrayBase.Remove,
|
|
11
|
+
MoveDown: ArrayBase.MoveDown,
|
|
12
|
+
MoveUp: ArrayBase.MoveUp,
|
|
13
|
+
useArray: ArrayBase.useArray,
|
|
14
|
+
useIndex: ArrayBase.useIndex,
|
|
15
|
+
useRecord: ArrayBase.useRecord
|
|
114
16
|
});
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
//# sourceMappingURL=index.mjs.map
|
|
17
|
+
//#endregion
|
|
18
|
+
export { ArrayCards as default };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["ArrayCardsInner"],"sources":["../../src/array-cards/index.ts"],"sourcesContent":["import { composeExport } from '../__builtins__/shared'\nimport { ArrayBase } from '../array-base'\nimport ArrayCardsInner from './array-cards.vue'\nimport './style.scss'\n\nexport const ArrayCards = composeExport(ArrayCardsInner, {\n Index: ArrayBase.Index,\n SortHandle: ArrayBase.SortHandle,\n Addition: ArrayBase.Addition,\n Remove: ArrayBase.Remove,\n MoveDown: ArrayBase.MoveDown,\n MoveUp: ArrayBase.MoveUp,\n useArray: ArrayBase.useArray,\n useIndex: ArrayBase.useIndex,\n useRecord: ArrayBase.useRecord,\n})\n\nexport default ArrayCards\n"],"mappings":";;;;;AAKA,MAAa,aAAa,cAAcA,WAAiB;CACvD,OAAO,UAAU;CACjB,YAAY,UAAU;CACtB,UAAU,UAAU;CACpB,QAAQ,UAAU;CAClB,UAAU,UAAU;CACpB,QAAQ,UAAU;CAClB,UAAU,UAAU;CACpB,UAAU,UAAU;CACpB,WAAW,UAAU;CACtB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.formily-element-plus-array-cards {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
.formily-element-plus-array-cards .el-card__header {
|
|
5
|
+
padding-top: 12.5px;
|
|
6
|
+
padding-bottom: 12.5px;
|
|
7
|
+
}
|
|
8
|
+
.formily-element-plus-array-cards .el-empty {
|
|
9
|
+
padding: 0;
|
|
10
|
+
}
|
|
11
|
+
.formily-element-plus-array-cards .formily-element-plus-array-cards-item + .formily-element-plus-array-cards-item {
|
|
12
|
+
margin-top: 8px;
|
|
13
|
+
}
|
|
14
|
+
.formily-element-plus-array-cards .formily-element-plus-array-cards-extra-container {
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
}
|
|
18
|
+
.formily-element-plus-array-cards .formily-element-plus-array-base-addition {
|
|
19
|
+
margin-top: 8px;
|
|
20
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { useCleanAttrs } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { isIndexComponent, isOperationComponent, useIndex } from "../array-base/utils.mjs";
|
|
3
|
+
import { prefixCls } from "./utils.mjs";
|
|
4
|
+
import { ElBadge, ElCollapseItem } from "element-plus";
|
|
5
|
+
import { formilyComputed } from "@silver-formily/reactive-vue";
|
|
6
|
+
import { createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
7
|
+
import { RecursionField, useField, useFieldSchema } from "@silver-formily/vue";
|
|
8
|
+
import { isArr } from "@formily/shared";
|
|
9
|
+
//#region src/array-collapse/array-collapse-item.vue
|
|
10
|
+
const _hoisted_1 = { style: {
|
|
11
|
+
"flex": "1",
|
|
12
|
+
"display": "flex",
|
|
13
|
+
"align-items": "center"
|
|
14
|
+
} };
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
+
name: "FArrayCollapseItem",
|
|
17
|
+
inheritAttrs: false,
|
|
18
|
+
__name: "array-collapse-item",
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const field = useField().value;
|
|
21
|
+
const schema = useFieldSchema().value.parent;
|
|
22
|
+
const index = useIndex();
|
|
23
|
+
const errorCount = formilyComputed(() => {
|
|
24
|
+
const path = field.address.concat();
|
|
25
|
+
return field.form.queryFeedbacks({
|
|
26
|
+
type: "error",
|
|
27
|
+
address: `${path}.**`
|
|
28
|
+
}).length;
|
|
29
|
+
});
|
|
30
|
+
const { props: collapseItemProps } = useCleanAttrs();
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createBlock(unref(ElCollapseItem), mergeProps({ name: unref(index) }, unref(collapseItemProps)), {
|
|
33
|
+
title: withCtx(() => [createElementVNode("div", _hoisted_1, [!unref(isArr)(unref(schema).items) ? (openBlock(), createBlock(unref(RecursionField), {
|
|
34
|
+
key: 0,
|
|
35
|
+
schema: unref(schema).items,
|
|
36
|
+
name: unref(index),
|
|
37
|
+
"filter-properties": (schema) => unref(isIndexComponent)(schema),
|
|
38
|
+
"only-render-properties": true
|
|
39
|
+
}, null, 8, [
|
|
40
|
+
"schema",
|
|
41
|
+
"name",
|
|
42
|
+
"filter-properties"
|
|
43
|
+
])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "title", {}, () => [createVNode(unref(ElBadge), {
|
|
44
|
+
class: normalizeClass([`${unref(prefixCls)}-errors-badge`]),
|
|
45
|
+
value: unref(errorCount),
|
|
46
|
+
offset: [5, -2],
|
|
47
|
+
hidden: unref(errorCount) === 0
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(schema).items?.["x-component-props"]?.title), 1)]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, [
|
|
52
|
+
"class",
|
|
53
|
+
"value",
|
|
54
|
+
"hidden"
|
|
55
|
+
])])]), createElementVNode("div", null, [createVNode(unref(RecursionField), {
|
|
56
|
+
schema: Array.isArray(unref(schema).items) ? unref(schema).items[unref(index)] || unref(schema).items[0] : unref(schema).items,
|
|
57
|
+
name: unref(index),
|
|
58
|
+
"filter-properties": (schema) => unref(isOperationComponent)(schema),
|
|
59
|
+
"only-render-properties": true
|
|
60
|
+
}, null, 8, [
|
|
61
|
+
"schema",
|
|
62
|
+
"name",
|
|
63
|
+
"filter-properties"
|
|
64
|
+
])])]),
|
|
65
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
66
|
+
_: 3
|
|
67
|
+
}, 16, ["name"]);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
//#endregion
|
|
72
|
+
export { _sfc_main as default };
|
|
73
|
+
|
|
74
|
+
//# sourceMappingURL=array-collapse-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-collapse-item.mjs","names":[],"sources":["../../src/array-collapse/array-collapse-item.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { ArrayField } from '@formily/core'\nimport type { ISchema } from '@formily/json-schema'\nimport { isArr } from '@formily/shared'\nimport { formilyComputed } from '@silver-formily/reactive-vue'\nimport { RecursionField, useField, useFieldSchema } from '@silver-formily/vue'\nimport { ElBadge, ElCollapseItem } from 'element-plus'\nimport { useCleanAttrs } from '../__builtins__'\nimport { isIndexComponent, isOperationComponent, useIndex } from '../array-base/utils'\nimport { prefixCls } from './utils'\n\ndefineOptions({\n name: 'FArrayCollapseItem',\n inheritAttrs: false,\n})\n\nconst fieldRef = useField<ArrayField>()\nconst field = fieldRef.value\nconst schemaRef = useFieldSchema()\nconst schema = schemaRef.value.parent\nconst index = useIndex()\nconst errorCount = formilyComputed(() => {\n const path = field.address.concat()\n return field.form.queryFeedbacks({\n type: 'error',\n address: `${path}.**`,\n }).length\n})\n\nconst { props: collapseItemProps } = useCleanAttrs()\n</script>\n\n<template>\n <ElCollapseItem :name=\"index\" v-bind=\"collapseItemProps\">\n <template #title>\n <div style=\"flex: 1;display: flex;align-items: center;\">\n <RecursionField\n v-if=\"!isArr(schema.items)\"\n :schema=\"schema.items\"\n :name=\"index\"\n :filter-properties=\"(schema: ISchema) => isIndexComponent(schema)\"\n :only-render-properties=\"true\"\n />\n <slot name=\"title\">\n <ElBadge\n :class=\"[`${prefixCls}-errors-badge`]\"\n :value=\"errorCount\"\n :offset=\"[5, -2]\"\n :hidden=\"errorCount === 0\"\n >\n {{ schema.items?.['x-component-props']?.title }}\n </ElBadge>\n </slot>\n </div>\n <div>\n <RecursionField\n :schema=\"Array.isArray(schema.items) ? schema.items[index] || schema.items[0] : schema.items\"\n :name=\"index\"\n :filter-properties=\"(schema: ISchema) => isOperationComponent(schema)\"\n :only-render-properties=\"true\"\n />\n </div>\n </template>\n <slot />\n </ElCollapseItem>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EAiBA,MAAM,QADW,UAAqB,CACf;EAEvB,MAAM,SADY,gBAAe,CACR,MAAM;EAC/B,MAAM,QAAQ,UAAS;EACvB,MAAM,aAAa,sBAAsB;GACvC,MAAM,OAAO,MAAM,QAAQ,QAAO;AAClC,UAAO,MAAM,KAAK,eAAe;IAC/B,MAAM;IACN,SAAS,GAAG,KAAK;IAClB,CAAC,CAAC;IACJ;EAED,MAAM,EAAE,OAAO,sBAAsB,eAAc;;uBAIjD,YA+BiB,MAAA,eAAA,EA/BjB,WA+BiB,EA/BA,MAAM,MAAA,MAAK,EAAA,EAAU,MAAA,kBAAiB,CAAA,EAAA;IAC1C,OAAK,cAmBR,CAlBN,mBAkBM,OAlBN,YAkBM,CAAA,CAhBK,MAAA,MAAK,CAAC,MAAA,OAAM,CAAC,MAAK,IAAA,WAAA,EAD3B,YAME,MAAA,eAAA,EAAA;;KAJC,QAAQ,MAAA,OAAM,CAAC;KACf,MAAM,MAAA,MAAK;KACX,sBAAoB,WAAoB,MAAA,iBAAgB,CAAC,OAAM;KAC/D,0BAAwB;;;;;4CAE3B,WASO,KAAA,QAAA,SAAA,EAAA,QAAA,CARL,YAOU,MAAA,QAAA,EAAA;KANP,OAAK,eAAA,CAAA,GAAM,MAAA,UAAS,CAAA,eAAA,CAAA;KACpB,OAAO,MAAA,WAAU;KACjB,QAAQ,CAAA,GAAA,GAAO;KACf,QAAQ,MAAA,WAAU,KAAA;;4BAE6B,CAAA,gBAAA,gBAA7C,MAAA,OAAM,CAAC,QAAK,sBAAyB,MAAK,EAAA,EAAA,CAAA,CAAA;;;;;;YAInD,mBAOM,OAAA,MAAA,CANJ,YAKE,MAAA,eAAA,EAAA;KAJC,QAAQ,MAAM,QAAQ,MAAA,OAAM,CAAC,MAAK,GAAI,MAAA,OAAM,CAAC,MAAM,MAAA,MAAK,KAAK,MAAA,OAAM,CAAC,MAAK,KAAM,MAAA,OAAM,CAAC;KACtF,MAAM,MAAA,MAAK;KACX,sBAAoB,WAAoB,MAAA,qBAAoB,CAAC,OAAM;KACnE,0BAAwB;;;;;;2BAIvB,CAAR,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { useCleanAttrs } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { getArrayItemSchema, isAdditionComponent, isIndexComponent, isOperationComponent } from "../array-base/utils.mjs";
|
|
3
|
+
import { ArrayBase } from "../array-base/index.mjs";
|
|
4
|
+
import { prefixCls } from "./utils.mjs";
|
|
5
|
+
import { ElCard, ElCollapse, ElEmpty } from "element-plus";
|
|
6
|
+
import { autorunEffect } from "@silver-formily/reactive-vue";
|
|
7
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderList, unref, watchEffect, withCtx } from "vue";
|
|
8
|
+
import { RecursionField, useField, useFieldSchema } from "@silver-formily/vue";
|
|
9
|
+
import { isArr } from "@formily/shared";
|
|
10
|
+
//#region src/array-collapse/array-collapse.vue
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
name: "FArrayCollapse",
|
|
13
|
+
inheritAttrs: false,
|
|
14
|
+
__name: "array-collapse",
|
|
15
|
+
props: {
|
|
16
|
+
modelValue: {},
|
|
17
|
+
defaultOpenPanelCount: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 5
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const fieldRef = useField();
|
|
25
|
+
const schemaRef = useFieldSchema();
|
|
26
|
+
const field = fieldRef.value;
|
|
27
|
+
const schema = schemaRef.value;
|
|
28
|
+
const { props: collapseProps } = useCleanAttrs(["modelValue", "onUpdate:modelValue"]);
|
|
29
|
+
const activeKeys = ref([]);
|
|
30
|
+
const { getKey, keyMap } = ArrayBase.useKey(schemaRef.value);
|
|
31
|
+
const dataSource = ref(isArr(field.value) ? field.value : []);
|
|
32
|
+
autorunEffect(() => {
|
|
33
|
+
dataSource.value = isArr(field.value) ? [...field.value] : [];
|
|
34
|
+
});
|
|
35
|
+
function range(count) {
|
|
36
|
+
return Array.from({ length: count }).map((_, i) => i);
|
|
37
|
+
}
|
|
38
|
+
function takeDefaultActiveKeys(dataSourceLength, defaultOpenPanelCount, accordion = false) {
|
|
39
|
+
if (accordion) return 0;
|
|
40
|
+
if (dataSourceLength < defaultOpenPanelCount) return range(dataSourceLength);
|
|
41
|
+
return range(defaultOpenPanelCount);
|
|
42
|
+
}
|
|
43
|
+
function insertActiveKeys(activeKeys, index, accordion = false) {
|
|
44
|
+
if (accordion) return index;
|
|
45
|
+
/* istanbul ignore if -- @preserve */
|
|
46
|
+
if (!isArr(activeKeys)) return index;
|
|
47
|
+
if (activeKeys.length <= index) return activeKeys.concat(index);
|
|
48
|
+
return activeKeys.reduce((buf, key) => {
|
|
49
|
+
if (key === index) return [
|
|
50
|
+
...buf,
|
|
51
|
+
key,
|
|
52
|
+
key + 1
|
|
53
|
+
];
|
|
54
|
+
return buf.concat(key + 1);
|
|
55
|
+
}, []);
|
|
56
|
+
}
|
|
57
|
+
watchEffect(() => {
|
|
58
|
+
if (!field.modified && dataSource.value.length > 0) activeKeys.value = takeDefaultActiveKeys(dataSource.value.length, props.defaultOpenPanelCount, collapseProps.value.accordion);
|
|
59
|
+
});
|
|
60
|
+
function handleCollapseChange(keys) {
|
|
61
|
+
activeKeys.value = keys;
|
|
62
|
+
}
|
|
63
|
+
return (_ctx, _cache) => {
|
|
64
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(prefixCls)) }, [(openBlock(), createBlock(unref(ArrayBase), {
|
|
65
|
+
key: dataSource.value.length,
|
|
66
|
+
"key-map": unref(keyMap),
|
|
67
|
+
add: (index) => {
|
|
68
|
+
activeKeys.value = insertActiveKeys(activeKeys.value, index, unref(collapseProps).accordion);
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
default: withCtx(() => [!Array.isArray(props.modelValue) || props.modelValue.length === 0 ? (openBlock(), createBlock(unref(ElCard), mergeProps({
|
|
72
|
+
key: 0,
|
|
73
|
+
class: [`${unref(prefixCls)}-item`],
|
|
74
|
+
shadow: "never"
|
|
75
|
+
}, unref(collapseProps), { header: unref(collapseProps).title || unref(field).title }), {
|
|
76
|
+
default: withCtx(() => [createVNode(unref(ElEmpty))]),
|
|
77
|
+
_: 1
|
|
78
|
+
}, 16, ["class", "header"])) : (openBlock(), createBlock(unref(ElCollapse), mergeProps({
|
|
79
|
+
key: 1,
|
|
80
|
+
"model-value": activeKeys.value,
|
|
81
|
+
class: `${unref(prefixCls)}-item`
|
|
82
|
+
}, unref(collapseProps), { onChange: handleCollapseChange }), {
|
|
83
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(dataSource.value, (item, index) => {
|
|
84
|
+
return openBlock(), createBlock(unref(ArrayBase).Item, {
|
|
85
|
+
key: unref(getKey)(item, index),
|
|
86
|
+
index,
|
|
87
|
+
record: item
|
|
88
|
+
}, {
|
|
89
|
+
default: withCtx(() => [createVNode(unref(RecursionField), {
|
|
90
|
+
schema: unref(getArrayItemSchema)(unref(schema), index),
|
|
91
|
+
name: index,
|
|
92
|
+
"filter-properties": (schema) => !unref(isIndexComponent)(schema) && !unref(isOperationComponent)(schema)
|
|
93
|
+
}, null, 8, [
|
|
94
|
+
"schema",
|
|
95
|
+
"name",
|
|
96
|
+
"filter-properties"
|
|
97
|
+
])]),
|
|
98
|
+
_: 2
|
|
99
|
+
}, 1032, ["index", "record"]);
|
|
100
|
+
}), 128))]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 16, ["model-value", "class"])), (openBlock(true), createElementBlock(Fragment, null, renderList(unref(schema).properties, (itemSchema, key) => {
|
|
103
|
+
return openBlock(), createElementBlock(Fragment, { key }, [unref(isAdditionComponent)(itemSchema) ? (openBlock(), createBlock(unref(RecursionField), {
|
|
104
|
+
key: 0,
|
|
105
|
+
schema: itemSchema,
|
|
106
|
+
name: "addition"
|
|
107
|
+
}, null, 8, ["schema"])) : createCommentVNode("v-if", true)], 64);
|
|
108
|
+
}), 128))]),
|
|
109
|
+
_: 1
|
|
110
|
+
}, 8, ["key-map", "add"]))], 2);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
//#endregion
|
|
115
|
+
export { _sfc_main as default };
|
|
116
|
+
|
|
117
|
+
//# sourceMappingURL=array-collapse.mjs.map
|