@silver-formily/element-plus 3.0.1 → 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 +77 -24
- 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 -209
- 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 -61
- 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 -119
- 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 -175
- package/esm/array-collapse/index.mjs.map +1 -1
- package/esm/array-collapse/style.css +20 -0
- package/esm/array-collapse/utils.mjs +7 -13
- 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 -108
- 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 -187
- 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 -16
- 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 -224
- 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 -23
- 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 -87
- 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 -114
- 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 -51
- 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 -70
- 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 -220
- 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 -97
- 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 -13
- 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 -87
- 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 -110
- 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 -333
- 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 -84
- 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 -94
- 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 -77
- 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 -69
- 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 -50
- 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 -97
- 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 -364
- 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 -334
- 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 -184
- 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 -69
- 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 -41
- 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 -128
- 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 -205
- 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 -105
- 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 -41
- 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 -176
- 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 +25 -26
- 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
package/esm/mention/index.mjs
CHANGED
|
@@ -1,97 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
import "@
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const o = h(), { props: d } = w(), t = u(), f = $(() => {
|
|
17
|
-
const e = d.value, { onSearch: s } = e;
|
|
18
|
-
return s ? {
|
|
19
|
-
...e,
|
|
20
|
-
onSearch(a, m) {
|
|
21
|
-
return s(
|
|
22
|
-
a,
|
|
23
|
-
m,
|
|
24
|
-
t.value
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
} : e;
|
|
28
|
-
});
|
|
29
|
-
return (e, s) => (P(), S(i(y), p(l(f.value)), g({ _: 2 }, [
|
|
30
|
-
o.prefix ? {
|
|
31
|
-
name: "prefix",
|
|
32
|
-
fn: n(() => [
|
|
33
|
-
r(e.$slots, "prefix")
|
|
34
|
-
]),
|
|
35
|
-
key: "0"
|
|
36
|
-
} : void 0,
|
|
37
|
-
o.suffix ? {
|
|
38
|
-
name: "suffix",
|
|
39
|
-
fn: n(() => [
|
|
40
|
-
r(e.$slots, "suffix")
|
|
41
|
-
]),
|
|
42
|
-
key: "1"
|
|
43
|
-
} : void 0,
|
|
44
|
-
o.prepend ? {
|
|
45
|
-
name: "prepend",
|
|
46
|
-
fn: n(() => [
|
|
47
|
-
r(e.$slots, "prepend")
|
|
48
|
-
]),
|
|
49
|
-
key: "2"
|
|
50
|
-
} : void 0,
|
|
51
|
-
o.append ? {
|
|
52
|
-
name: "append",
|
|
53
|
-
fn: n(() => [
|
|
54
|
-
r(e.$slots, "append")
|
|
55
|
-
]),
|
|
56
|
-
key: "3"
|
|
57
|
-
} : void 0,
|
|
58
|
-
o.header ? {
|
|
59
|
-
name: "header",
|
|
60
|
-
fn: n(() => [
|
|
61
|
-
r(e.$slots, "header", { field: i(t) })
|
|
62
|
-
]),
|
|
63
|
-
key: "4"
|
|
64
|
-
} : void 0,
|
|
65
|
-
o.footer ? {
|
|
66
|
-
name: "footer",
|
|
67
|
-
fn: n(() => [
|
|
68
|
-
r(e.$slots, "footer", { field: i(t) })
|
|
69
|
-
]),
|
|
70
|
-
key: "5"
|
|
71
|
-
} : void 0,
|
|
72
|
-
o.label ? {
|
|
73
|
-
name: "label",
|
|
74
|
-
fn: n((a) => [
|
|
75
|
-
r(e.$slots, "label", p(l({ ...a, field: i(t) })))
|
|
76
|
-
]),
|
|
77
|
-
key: "6"
|
|
78
|
-
} : void 0,
|
|
79
|
-
o.loading ? {
|
|
80
|
-
name: "loading",
|
|
81
|
-
fn: n(() => [
|
|
82
|
-
r(e.$slots, "loading")
|
|
83
|
-
]),
|
|
84
|
-
key: "7"
|
|
85
|
-
} : void 0
|
|
86
|
-
]), 1040));
|
|
87
|
-
}
|
|
88
|
-
}), j = c(
|
|
89
|
-
C,
|
|
90
|
-
v({ dataSource: "options", readOnly: "readonly", loading: !0, disabled: !0 }),
|
|
91
|
-
b(M.Input)
|
|
92
|
-
);
|
|
93
|
-
export {
|
|
94
|
-
j as Mention,
|
|
95
|
-
j as default
|
|
96
|
-
};
|
|
97
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
import { mapReadPretty } from "../__builtins__/shared/transform-component.mjs";
|
|
2
|
+
import PreviewText from "../preview-text/index.mjs";
|
|
3
|
+
import _sfc_main from "./mention.mjs";
|
|
4
|
+
import { connect, mapProps } from "@silver-formily/vue";
|
|
5
|
+
//#region src/mention/index.ts
|
|
6
|
+
const Mention = connect(_sfc_main, mapProps({
|
|
7
|
+
dataSource: "options",
|
|
8
|
+
readOnly: "readonly",
|
|
9
|
+
loading: true,
|
|
10
|
+
disabled: true
|
|
11
|
+
}), mapReadPretty(PreviewText.Input));
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Mention as default };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["FMention"],"sources":["../../src/mention/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FMention from './mention.vue'\n\nexport const Mention = connect<typeof FMention>(\n FMention,\n mapProps({ dataSource: 'options', readOnly: 'readonly', loading: true, disabled: true }),\n mapReadPretty(PreviewText.Input),\n)\n\nexport default Mention\n"],"mappings":";;;;;AAKA,MAAa,UAAU,QACrBA,WACA,SAAS;CAAE,YAAY;CAAW,UAAU;CAAY,SAAS;CAAM,UAAU;CAAM,CAAC,EACxF,cAAc,YAAY,MAAM,CACjC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { useCleanAttrs } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { ElMention } from "element-plus";
|
|
3
|
+
import { computed, createBlock, createSlots, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, useSlots, withCtx } from "vue";
|
|
4
|
+
import { useField } from "@silver-formily/vue";
|
|
5
|
+
//#region src/mention/mention.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "FMention",
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
__name: "mention",
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const slots = useSlots();
|
|
12
|
+
const { props: rawMentionProps } = useCleanAttrs();
|
|
13
|
+
const fieldRef = useField();
|
|
14
|
+
const mentionProps = computed(() => {
|
|
15
|
+
const props = rawMentionProps.value;
|
|
16
|
+
const { onSearch } = props;
|
|
17
|
+
if (!onSearch) return props;
|
|
18
|
+
return {
|
|
19
|
+
...props,
|
|
20
|
+
onSearch(pattern, prefix) {
|
|
21
|
+
return onSearch(pattern, prefix, fieldRef.value);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createBlock(unref(ElMention), normalizeProps(guardReactiveProps(mentionProps.value)), createSlots({ _: 2 }, [
|
|
27
|
+
slots.prefix ? {
|
|
28
|
+
name: "prefix",
|
|
29
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "prefix")]),
|
|
30
|
+
key: "0"
|
|
31
|
+
} : void 0,
|
|
32
|
+
slots.suffix ? {
|
|
33
|
+
name: "suffix",
|
|
34
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "suffix")]),
|
|
35
|
+
key: "1"
|
|
36
|
+
} : void 0,
|
|
37
|
+
slots.prepend ? {
|
|
38
|
+
name: "prepend",
|
|
39
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "prepend")]),
|
|
40
|
+
key: "2"
|
|
41
|
+
} : void 0,
|
|
42
|
+
slots.append ? {
|
|
43
|
+
name: "append",
|
|
44
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "append")]),
|
|
45
|
+
key: "3"
|
|
46
|
+
} : void 0,
|
|
47
|
+
slots.header ? {
|
|
48
|
+
name: "header",
|
|
49
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "header", { field: unref(fieldRef) })]),
|
|
50
|
+
key: "4"
|
|
51
|
+
} : void 0,
|
|
52
|
+
slots.footer ? {
|
|
53
|
+
name: "footer",
|
|
54
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "footer", { field: unref(fieldRef) })]),
|
|
55
|
+
key: "5"
|
|
56
|
+
} : void 0,
|
|
57
|
+
slots.label ? {
|
|
58
|
+
name: "label",
|
|
59
|
+
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps({
|
|
60
|
+
...slotProps,
|
|
61
|
+
field: unref(fieldRef)
|
|
62
|
+
})))]),
|
|
63
|
+
key: "6"
|
|
64
|
+
} : void 0,
|
|
65
|
+
slots.loading ? {
|
|
66
|
+
name: "loading",
|
|
67
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "loading")]),
|
|
68
|
+
key: "7"
|
|
69
|
+
} : void 0
|
|
70
|
+
]), 1040);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { _sfc_main as default };
|
|
76
|
+
|
|
77
|
+
//# sourceMappingURL=mention.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mention.mjs","names":[],"sources":["../../src/mention/mention.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Field } from '@formily/core'\nimport type { MentionOption } from 'element-plus/es/components/mention'\nimport { useField } from '@silver-formily/vue'\nimport { ElMention } from 'element-plus'\nimport { computed } from 'vue'\nimport { useCleanAttrs } from '../__builtins__'\n\ndefineOptions({\n name: 'FMention',\n inheritAttrs: false,\n})\n\nconst slots = defineSlots<{\n label?: (scope: { item: MentionOption, index: number, field: Field | undefined }) => any\n header?: (scope: { field: Field | undefined }) => any\n footer?: (scope: { field: Field | undefined }) => any\n loading?: () => any\n prefix?: () => any\n suffix?: () => any\n prepend?: () => any\n append?: () => any\n}>()\n\nconst { props: rawMentionProps } = useCleanAttrs()\nconst fieldRef = useField<Field>()\n\nconst mentionProps = computed(() => {\n const props = rawMentionProps.value\n const { onSearch } = props\n if (!onSearch) {\n return props\n }\n\n return {\n ...props,\n onSearch(pattern: string, prefix: string) {\n return (onSearch as (pattern: string, prefix: string, field?: Field) => any)(\n pattern,\n prefix,\n fieldRef.value,\n )\n },\n }\n})\n</script>\n\n<template>\n <ElMention v-bind=\"mentionProps\">\n <template v-if=\"slots.prefix\" #prefix>\n <slot name=\"prefix\" />\n </template>\n <template v-if=\"slots.suffix\" #suffix>\n <slot name=\"suffix\" />\n </template>\n <template v-if=\"slots.prepend\" #prepend>\n <slot name=\"prepend\" />\n </template>\n <template v-if=\"slots.append\" #append>\n <slot name=\"append\" />\n </template>\n <template v-if=\"slots.header\" #header>\n <slot name=\"header\" :field=\"fieldRef\" />\n </template>\n <template v-if=\"slots.footer\" #footer>\n <slot name=\"footer\" :field=\"fieldRef\" />\n </template>\n <template v-if=\"slots.label\" #label=\"slotProps\">\n <slot name=\"label\" v-bind=\"{ ...slotProps, field: fieldRef }\" />\n </template>\n <template v-if=\"slots.loading\" #loading>\n <slot name=\"loading\" />\n </template>\n </ElMention>\n</template>\n"],"mappings":";;;;;;;;;;EAaA,MAAM,QAAQ,UAAA;EAWd,MAAM,EAAE,OAAO,oBAAoB,eAAc;EACjD,MAAM,WAAW,UAAgB;EAEjC,MAAM,eAAe,eAAe;GAClC,MAAM,QAAQ,gBAAgB;GAC9B,MAAM,EAAE,aAAa;AACrB,OAAI,CAAC,SACH,QAAO;AAGT,UAAO;IACL,GAAG;IACH,SAAS,SAAiB,QAAgB;AACxC,YAAQ,SACN,SACA,QACA,SAAS,MACX;;IAEJ;IACD;;uBAIC,YAyBY,MAAA,UAAA,EAAA,eAAA,mBAzBO,aAAA,MAAY,CAAA,EAAA,YAAA,EAAA,GAAA,GAAA,EAAA;IACb,MAAM,SAAA;WAAS;uBACP,CAAtB,WAAsB,KAAA,QAAA,SAAA,CAAA,CAAA;;;IAER,MAAM,SAAA;WAAS;uBACP,CAAtB,WAAsB,KAAA,QAAA,SAAA,CAAA,CAAA;;;IAER,MAAM,UAAA;WAAU;uBACP,CAAvB,WAAuB,KAAA,QAAA,UAAA,CAAA,CAAA;;;IAET,MAAM,SAAA;WAAS;uBACP,CAAtB,WAAsB,KAAA,QAAA,SAAA,CAAA,CAAA;;;IAER,MAAM,SAAA;WAAS;uBACW,CAAxC,WAAwC,KAAA,QAAA,UAAA,EAAnB,OAAO,MAAA,SAAQ,EAAA,CAAA,CAAA,CAAA;;;IAEtB,MAAM,SAAA;WAAS;uBACW,CAAxC,WAAwC,KAAA,QAAA,UAAA,EAAnB,OAAO,MAAA,SAAQ,EAAA,CAAA,CAAA,CAAA;;;IAEtB,MAAM,QAAA;WAAQ;kBAAO,cAAS,CAC5C,WAAgE,KAAA,QAAA,SAAA,eAAA,mBAAA;MAAA,GAAhC;MAAS,OAAS,MAAA,SAAQ;MAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;IAE5C,MAAM,UAAA;WAAU;uBACP,CAAvB,WAAuB,KAAA,QAAA,UAAA,CAAA,CAAA"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { componentSizes
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=jumper.mjs.map
|
|
1
|
+
import { componentSizes } from "element-plus";
|
|
2
|
+
import { buildProps } from "element-plus/es/utils/index";
|
|
3
|
+
//#region src/pagination/components/jumper.ts
|
|
4
|
+
const paginationJumperProps = buildProps({ size: {
|
|
5
|
+
type: String,
|
|
6
|
+
values: componentSizes
|
|
7
|
+
} });
|
|
8
|
+
//#endregion
|
|
9
|
+
export { paginationJumperProps };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=jumper.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jumper.mjs","sources":["../../../src/pagination/components/jumper.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Jumper from './jumper.vue'\nimport { componentSizes } from 'element-plus'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationJumperProps = buildProps({\n size: {\n type: String,\n values: componentSizes,\n },\n} as const)\n\nexport type PaginationJumperProps = ExtractPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper> & unknown\n"],"
|
|
1
|
+
{"version":3,"file":"jumper.mjs","names":[],"sources":["../../../src/pagination/components/jumper.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Jumper from './jumper.vue'\nimport { componentSizes } from 'element-plus'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationJumperProps = buildProps({\n size: {\n type: String,\n values: componentSizes,\n },\n} as const)\n\nexport type PaginationJumperProps = ExtractPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper> & unknown\n"],"mappings":";;;AAKA,MAAa,wBAAwB,WAAW,EAC9C,MAAM;CACJ,MAAM;CACN,QAAQ;CACT,EACF,CAAU"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { paginationJumperProps } from "./jumper.mjs";
|
|
2
|
+
import { ElInput, useLocale, useNamespace } from "element-plus";
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, toDisplayString, unref } from "vue";
|
|
4
|
+
import { usePagination } from "element-plus/es/components/pagination/src/usePagination";
|
|
5
|
+
//#region src/pagination/components/jumper.vue
|
|
6
|
+
const _hoisted_1 = ["disabled"];
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "ElPaginationJumper",
|
|
9
|
+
__name: "jumper",
|
|
10
|
+
props: paginationJumperProps,
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const { t } = useLocale();
|
|
13
|
+
const ns = useNamespace("pagination");
|
|
14
|
+
const { pageCount, disabled, currentPage, changeEvent } = usePagination();
|
|
15
|
+
const userInput = ref();
|
|
16
|
+
const innerValue = computed(() => userInput.value ?? currentPage?.value);
|
|
17
|
+
function handleInput(val) {
|
|
18
|
+
userInput.value = val ? +val : "";
|
|
19
|
+
}
|
|
20
|
+
function handleChange(val) {
|
|
21
|
+
val = Math.trunc(+val);
|
|
22
|
+
changeEvent?.(val);
|
|
23
|
+
userInput.value = void 0;
|
|
24
|
+
}
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createElementBlock("span", {
|
|
27
|
+
class: normalizeClass(unref(ns).e("jump")),
|
|
28
|
+
disabled: unref(disabled)
|
|
29
|
+
}, [
|
|
30
|
+
createElementVNode("span", { class: normalizeClass([unref(ns).e("goto")]) }, toDisplayString(unref(t)("el.pagination.goto")), 3),
|
|
31
|
+
createVNode(unref(ElInput), {
|
|
32
|
+
size: _ctx.size,
|
|
33
|
+
class: normalizeClass([unref(ns).e("editor"), unref(ns).is("in-pagination")]),
|
|
34
|
+
min: 1,
|
|
35
|
+
max: unref(pageCount),
|
|
36
|
+
disabled: unref(disabled),
|
|
37
|
+
"model-value": innerValue.value,
|
|
38
|
+
"validate-event": false,
|
|
39
|
+
"aria-label": unref(t)("el.pagination.page"),
|
|
40
|
+
type: "number",
|
|
41
|
+
"onUpdate:modelValue": handleInput,
|
|
42
|
+
onChange: handleChange
|
|
43
|
+
}, null, 8, [
|
|
44
|
+
"size",
|
|
45
|
+
"class",
|
|
46
|
+
"max",
|
|
47
|
+
"disabled",
|
|
48
|
+
"model-value",
|
|
49
|
+
"aria-label"
|
|
50
|
+
]),
|
|
51
|
+
createElementVNode("span", { class: normalizeClass([unref(ns).e("classifier")]) }, toDisplayString(unref(t)("el.pagination.pageClassifier")), 3)
|
|
52
|
+
], 10, _hoisted_1);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { _sfc_main as default };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=jumper2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jumper2.mjs","names":["size"],"sources":["../../../src/pagination/components/jumper.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ElInput, useLocale, useNamespace } from 'element-plus'\nimport { usePagination } from 'element-plus/es/components/pagination/src/usePagination'\nimport { computed, ref } from 'vue'\nimport { paginationJumperProps } from './jumper'\n\ndefineOptions({\n name: 'ElPaginationJumper',\n})\n\ndefineProps(paginationJumperProps)\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst { pageCount, disabled, currentPage, changeEvent } = usePagination()\nconst userInput = ref<number | string>()\nconst innerValue = computed(() => userInput.value ?? currentPage?.value)\n\nfunction handleInput(val: number | string) {\n userInput.value = val ? +val : ''\n}\n\nfunction handleChange(val: number | string) {\n val = Math.trunc(+val)\n changeEvent?.(val)\n userInput.value = undefined\n}\n</script>\n\n<template>\n <span :class=\"ns.e('jump')\" :disabled=\"disabled\">\n <span :class=\"[ns.e('goto')]\">{{ t('el.pagination.goto') }}</span>\n <ElInput\n :size=\"size\"\n :class=\"[ns.e('editor'), ns.is('in-pagination')]\"\n :min=\"1\"\n :max=\"pageCount\"\n :disabled=\"disabled\"\n :model-value=\"innerValue\"\n :validate-event=\"false\"\n :aria-label=\"t('el.pagination.page')\"\n type=\"number\"\n @update:model-value=\"handleInput\"\n @change=\"handleChange\"\n />\n <span :class=\"[ns.e('classifier')]\">\n {{ t('el.pagination.pageClassifier') }}\n </span>\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;EAWA,MAAM,EAAE,MAAM,WAAU;EACxB,MAAM,KAAK,aAAa,aAAY;EACpC,MAAM,EAAE,WAAW,UAAU,aAAa,gBAAgB,eAAc;EACxE,MAAM,YAAY,KAAqB;EACvC,MAAM,aAAa,eAAe,UAAU,SAAS,aAAa,MAAK;EAEvE,SAAS,YAAY,KAAsB;AACzC,aAAU,QAAQ,MAAM,CAAC,MAAM;;EAGjC,SAAS,aAAa,KAAsB;AAC1C,SAAM,KAAK,MAAM,CAAC,IAAG;AACrB,iBAAc,IAAG;AACjB,aAAU,QAAQ,KAAA;;;uBAKlB,mBAkBO,QAAA;IAlBA,OAAK,eAAE,MAAA,GAAE,CAAC,EAAC,OAAA,CAAA;IAAW,UAAU,MAAA,SAAQ;;IAC7C,mBAAkE,QAAA,EAA3D,OAAK,eAAA,CAAG,MAAA,GAAE,CAAC,EAAC,OAAA,CAAA,CAAA,EAAA,EAAA,gBAAc,MAAA,EAAC,CAAA,qBAAA,CAAA,EAAA,EAAA;IAClC,YAYE,MAAA,QAAA,EAAA;KAXC,MAAMA,KAAAA;KACN,OAAK,eAAA,CAAG,MAAA,GAAE,CAAC,EAAC,SAAA,EAAY,MAAA,GAAE,CAAC,GAAE,gBAAA,CAAA,CAAA;KAC7B,KAAK;KACL,KAAK,MAAA,UAAS;KACd,UAAU,MAAA,SAAQ;KAClB,eAAa,WAAA;KACb,kBAAgB;KAChB,cAAY,MAAA,EAAC,CAAA,qBAAA;KACd,MAAK;KACJ,uBAAoB;KACpB,UAAQ;;;;;;;;;IAEX,mBAEO,QAAA,EAFA,OAAK,eAAA,CAAG,MAAA,GAAE,CAAC,EAAC,aAAA,CAAA,CAAA,EAAA,EAAA,gBACd,MAAA,EAAC,CAAA,+BAAA,CAAA,EAAA,EAAA"}
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
nextIcon: {
|
|
17
|
-
type: t
|
|
18
|
-
}
|
|
1
|
+
import { buildProps, iconPropType } from "element-plus/es/utils/index";
|
|
2
|
+
//#region src/pagination/components/next.ts
|
|
3
|
+
const paginationNextProps = buildProps({
|
|
4
|
+
disabled: Boolean,
|
|
5
|
+
currentPage: {
|
|
6
|
+
type: Number,
|
|
7
|
+
default: 1
|
|
8
|
+
},
|
|
9
|
+
pageCount: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 50
|
|
12
|
+
},
|
|
13
|
+
nextText: { type: String },
|
|
14
|
+
nextIcon: { type: iconPropType }
|
|
19
15
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=next.mjs.map
|
|
16
|
+
//#endregion
|
|
17
|
+
export { paginationNextProps };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=next.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.mjs","sources":["../../../src/pagination/components/next.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Next from './next.vue'\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\n\nexport const paginationNextProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n default: 50,\n },\n nextText: {\n type: String,\n },\n nextIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\n\nexport type NextInstance = InstanceType<typeof Next> & unknown\n"],"
|
|
1
|
+
{"version":3,"file":"next.mjs","names":[],"sources":["../../../src/pagination/components/next.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Next from './next.vue'\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\n\nexport const paginationNextProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n default: 50,\n },\n nextText: {\n type: String,\n },\n nextIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\n\nexport type NextInstance = InstanceType<typeof Next> & unknown\n"],"mappings":";;AAIA,MAAa,sBAAsB,WAAW;CAC5C,UAAU;CACV,aAAa;EACX,MAAM;EACN,SAAS;EACV;CACD,WAAW;EACT,MAAM;EACN,SAAS;EACV;CACD,UAAU,EACR,MAAM,QACP;CACD,UAAU,EACR,MAAM,cACP;CACF,CAAU"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { paginationNextProps } from "./next.mjs";
|
|
2
|
+
import { ElIcon, useLocale } from "element-plus";
|
|
3
|
+
import { computed, createBlock, createElementBlock, defineComponent, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
//#region src/pagination/components/next.vue
|
|
5
|
+
const _hoisted_1 = [
|
|
6
|
+
"disabled",
|
|
7
|
+
"aria-label",
|
|
8
|
+
"aria-disabled"
|
|
9
|
+
];
|
|
10
|
+
const _hoisted_2 = { key: 0 };
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
name: "ElPaginationNext",
|
|
13
|
+
__name: "next",
|
|
14
|
+
props: paginationNextProps,
|
|
15
|
+
emits: ["click"],
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const { t } = useLocale();
|
|
19
|
+
const internalDisabled = computed(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createElementBlock("button", {
|
|
22
|
+
type: "button",
|
|
23
|
+
class: "btn-next",
|
|
24
|
+
disabled: internalDisabled.value,
|
|
25
|
+
"aria-label": _ctx.nextText || unref(t)("el.pagination.next"),
|
|
26
|
+
"aria-disabled": internalDisabled.value,
|
|
27
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
|
28
|
+
}, [_ctx.nextText ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.nextText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
|
|
29
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon)))]),
|
|
30
|
+
_: 1
|
|
31
|
+
}))], 8, _hoisted_1);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { _sfc_main as default };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=next2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next2.mjs","names":["nextText","$emit","nextIcon"],"sources":["../../../src/pagination/components/next.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ElIcon, useLocale } from 'element-plus'\nimport { computed } from 'vue'\nimport { paginationNextProps } from './next'\n\ndefineOptions({\n name: 'ElPaginationNext',\n})\n\nconst props = defineProps(paginationNextProps)\n\ndefineEmits(['click'])\n\nconst { t } = useLocale()\n\nconst internalDisabled = computed(\n () =>\n props.disabled\n || props.currentPage === props.pageCount\n || props.pageCount === 0,\n)\n</script>\n\n<template>\n <button\n type=\"button\"\n class=\"btn-next\"\n :disabled=\"internalDisabled\"\n :aria-label=\"nextText || t('el.pagination.next')\"\n :aria-disabled=\"internalDisabled\"\n @click=\"$emit('click', $event)\"\n >\n <span v-if=\"nextText\">{{ nextText }}</span>\n <ElIcon v-else>\n <component :is=\"nextIcon\" />\n </ElIcon>\n </button>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;EASA,MAAM,QAAQ;EAId,MAAM,EAAE,MAAM,WAAU;EAExB,MAAM,mBAAmB,eAErB,MAAM,YACH,MAAM,gBAAgB,MAAM,aAC5B,MAAM,cAAc,EAC3B;;uBAIE,mBAYS,UAAA;IAXP,MAAK;IACL,OAAM;IACL,UAAU,iBAAA;IACV,cAAYA,KAAAA,YAAY,MAAA,EAAC,CAAA,qBAAA;IACzB,iBAAe,iBAAA;IACf,SAAK,OAAA,OAAA,OAAA,MAAA,WAAEC,KAAAA,MAAK,SAAU,OAAM;OAEjBD,KAAAA,YAAAA,WAAAA,EAAZ,mBAA2C,QAAA,YAAA,gBAAlBA,KAAAA,SAAQ,EAAA,EAAA,KAAA,WAAA,EACjC,YAES,MAAA,OAAA,EAAA,EAAA,KAAA,GAAA,EAAA;2BADqB,EAAA,WAAA,EAA5B,YAA4B,wBAAZE,KAAAA,SAAQ,CAAA,EAAA,CAAA"}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
disabled: Boolean
|
|
1
|
+
import { buildProps } from "element-plus/es/utils/index";
|
|
2
|
+
//#region src/pagination/components/pager.ts
|
|
3
|
+
const paginationPagerProps = buildProps({
|
|
4
|
+
currentPage: {
|
|
5
|
+
type: Number,
|
|
6
|
+
default: 1
|
|
7
|
+
},
|
|
8
|
+
pageCount: {
|
|
9
|
+
type: Number,
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
pagerCount: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 7
|
|
15
|
+
},
|
|
16
|
+
pageSize: { type: Number },
|
|
17
|
+
disabled: Boolean
|
|
19
18
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=pager.mjs.map
|
|
19
|
+
//#endregion
|
|
20
|
+
export { paginationPagerProps };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=pager.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pager.mjs","sources":["../../../src/pagination/components/pager.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Pager from './pager.vue'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationPagerProps = buildProps({\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n required: true,\n },\n pagerCount: {\n type: Number,\n default: 7,\n },\n pageSize: {\n type: Number,\n },\n disabled: Boolean,\n} as const)\n\nexport type PaginationPagerProps = ExtractPropTypes<typeof paginationPagerProps>\n\nexport type PagerInstance = InstanceType<typeof Pager> & unknown\n"],"
|
|
1
|
+
{"version":3,"file":"pager.mjs","names":[],"sources":["../../../src/pagination/components/pager.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Pager from './pager.vue'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationPagerProps = buildProps({\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n required: true,\n },\n pagerCount: {\n type: Number,\n default: 7,\n },\n pageSize: {\n type: Number,\n },\n disabled: Boolean,\n} as const)\n\nexport type PaginationPagerProps = ExtractPropTypes<typeof paginationPagerProps>\n\nexport type PagerInstance = InstanceType<typeof Pager> & unknown\n"],"mappings":";;AAIA,MAAa,uBAAuB,WAAW;CAC7C,aAAa;EACX,MAAM;EACN,SAAS;EACV;CACD,WAAW;EACT,MAAM;EACN,UAAU;EACX;CACD,YAAY;EACV,MAAM;EACN,SAAS;EACV;CACD,UAAU,EACR,MAAM,QACP;CACD,UAAU;CACX,CAAU"}
|