@aplus-frontend/ui 6.26.2 → 6.26.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/es/src/ag-grid/components/header-cell/index.vue2.mjs +26 -29
- package/es/src/ag-grid/hooks/use-columns-def.mjs +69 -72
- package/es/src/ag-grid/hooks/use-columns.mjs +11 -13
- package/es/src/ag-grid/hooks/use-row-selection.mjs +43 -43
- package/es/src/ag-grid/hooks/use-search-form.mjs +33 -36
- package/es/src/ag-grid/index.vue.mjs +251 -268
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ag-grid/renderer/checkbox.mjs +4 -5
- package/es/src/ag-grid/renderer/date-range.mjs +11 -12
- package/es/src/ag-grid/renderer/date.mjs +12 -13
- package/es/src/ag-grid/renderer/radio.mjs +9 -10
- package/es/src/ag-grid/renderer/select.mjs +10 -17
- package/es/src/ag-grid/renderer/tree-select.mjs +8 -10
- package/es/src/ap-action/item/index.vue2.mjs +19 -20
- package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -24
- package/es/src/ap-action/item-modal/index.vue.mjs +15 -16
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +17 -18
- package/es/src/ap-button/ap-confirm-button.vue.mjs +18 -19
- package/es/src/ap-button/utils/index.mjs +27 -28
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +78 -86
- package/es/src/ap-descriptions/formatter/index.mjs +60 -61
- package/es/src/ap-descriptions/helper.mjs +6 -6
- package/es/src/ap-download/ap-download.vue.mjs +42 -46
- package/es/src/ap-download/hooks/index.mjs +13 -13
- package/es/src/ap-download/utils/getFileInfo.mjs +21 -21
- package/es/src/ap-drawer/utils/createDrawer.mjs +43 -52
- package/es/src/ap-field/checkbox/index.vue.mjs +31 -34
- package/es/src/ap-field/checkbox/read.vue2.mjs +11 -14
- package/es/src/ap-field/date/index.vue.mjs +66 -68
- package/es/src/ap-field/date-range/index.vue.mjs +99 -107
- package/es/src/ap-field/date-range/read.vue2.mjs +28 -32
- package/es/src/ap-field/hooks/use-date-timezone.mjs +1 -4
- package/es/src/ap-field/hooks/use-default-presets.mjs +18 -24
- package/es/src/ap-field/hooks/use-options.mjs +11 -11
- package/es/src/ap-field/number/helper.mjs +17 -17
- package/es/src/ap-field/number/index.vue.mjs +2 -4
- package/es/src/ap-field/radio/index.vue.mjs +38 -42
- package/es/src/ap-field/radio/read.vue2.mjs +12 -13
- package/es/src/ap-field/rate/index.vue.mjs +23 -25
- package/es/src/ap-field/segmented/index.vue.mjs +38 -39
- package/es/src/ap-field/select/index.vue.mjs +90 -107
- package/es/src/ap-field/select/read.vue2.mjs +13 -20
- package/es/src/ap-field/select/use-select-options.mjs +24 -25
- package/es/src/ap-field/slider/index.vue.mjs +28 -30
- package/es/src/ap-field/switch/index.vue.mjs +38 -39
- package/es/src/ap-field/text/index.vue2.mjs +43 -52
- package/es/src/ap-field/text/password.vue.mjs +20 -22
- package/es/src/ap-field/text-area/index.vue.mjs +25 -31
- package/es/src/ap-field/tree-select/index.vue.mjs +61 -65
- package/es/src/ap-field/tree-select/read.vue2.mjs +26 -28
- package/es/src/ap-field/tree-select/use-request.mjs +40 -41
- package/es/src/ap-form/ap-form.vue2.mjs +127 -142
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/drawer-form/index.vue.mjs +109 -146
- package/es/src/ap-form/hooks/use-watch.mjs +25 -26
- package/es/src/ap-form/item/index.vue.mjs +76 -81
- package/es/src/ap-form/item-group/index.vue.mjs +20 -20
- package/es/src/ap-form/items/date/index.vue.mjs +18 -21
- package/es/src/ap-form/items/date-range/index.vue.mjs +24 -27
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.mjs +2 -4
- package/es/src/ap-form/items/radio/index.vue.mjs +8 -10
- package/es/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/es/src/ap-form/items/select/index.vue.mjs +30 -36
- package/es/src/ap-form/items/text/index.vue2.mjs +20 -27
- package/es/src/ap-form/items/text/password.vue.mjs +12 -14
- package/es/src/ap-form/items/text-area/index.vue.mjs +18 -23
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.mjs +28 -34
- package/es/src/ap-form/list/index.vue.mjs +26 -26
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/modal-form/index.vue.mjs +98 -130
- package/es/src/ap-form/provider/index.vue.mjs +24 -24
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +9 -9
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -24
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +25 -26
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/search-form/index.vue.mjs +96 -103
- package/es/src/ap-form/search-form/utils.mjs +17 -17
- package/es/src/ap-form/set/index.vue.mjs +16 -20
- package/es/src/ap-form/utils/get.mjs +11 -11
- package/es/src/ap-grid/editable/form-item.vue.mjs +85 -92
- package/es/src/ap-grid/editable/index.vue.mjs +102 -116
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +40 -43
- package/es/src/ap-grid/hooks/use-inner-params.mjs +15 -15
- package/es/src/ap-grid/hooks/use-row-selection.mjs +76 -76
- package/es/src/ap-grid/index.vue.mjs +309 -334
- package/es/src/ap-grid/utils/col.mjs +78 -81
- package/es/src/ap-grid/utils/editable.mjs +17 -18
- package/es/src/ap-grid/utils/renderer.mjs +7 -11
- package/es/src/ap-grid/utils/table.mjs +45 -46
- package/es/src/ap-grid/utils/to-tree-array.mjs +9 -10
- package/es/src/ap-list/hooks/use-offline-list.mjs +16 -17
- package/es/src/ap-list/index.vue.mjs +120 -131
- package/es/src/ap-modal/utils/createModal.mjs +60 -67
- package/es/src/ap-modal/utils/createModalStream.mjs +65 -73
- package/es/src/ap-modal/utils/methods.mjs +17 -22
- package/es/src/ap-modal/utils/util.mjs +1 -1
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +113 -127
- package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
- package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +44 -53
- package/es/src/ap-table/ap-table.vue2.mjs +270 -303
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
- package/es/src/ap-table/components/setting/utils.mjs +44 -46
- package/es/src/ap-table/constants.d.ts +6 -6
- package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
- package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
- package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
- package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
- package/es/src/ap-table/utils.mjs +123 -130
- package/es/src/ap-upload/apUpload.vue.mjs +43 -46
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
- package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
- package/es/src/ap-upload/hooks/useOss.mjs +35 -35
- package/es/src/ap-upload/utils/accept.mjs +37 -38
- package/es/src/ap-upload/utils/returnData.mjs +14 -14
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
- package/es/src/business/ap-appendix/utils/index.mjs +13 -13
- package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
- package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
- package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
- package/es/src/business/ap-copy/ApCopy.mjs +38 -39
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
- package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
- package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
- package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
- package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
- package/es/src/business/ap-keep-alive/hook.mjs +14 -20
- package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/utils.mjs +25 -26
- package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
- package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
- package/es/src/business/ap-summary/utils.mjs +23 -29
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
- package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
- package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
- package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
- package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
- package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
- package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
- package/es/src/business/ap-value-select-card/utils.mjs +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
- package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
- package/es/src/business/batch-input-group/index.vue.mjs +113 -127
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
- package/es/src/business/hooks/useGridRefresh.mjs +11 -12
- package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
- package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
- package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
- package/es/src/business/hooks/usePageListApTable.mjs +27 -32
- package/es/src/business/hooks/useTableRefresh.mjs +39 -41
- package/es/src/check-card/index.vue2.mjs +51 -56
- package/es/src/config-provider/config-provider.mjs +12 -12
- package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
- package/es/src/config-provider/hooks/use-locale.mjs +17 -17
- package/es/src/editable-table/form-item.vue.mjs +82 -88
- package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
- package/es/src/editable-table/index.vue.mjs +100 -113
- package/es/src/editable-table/utils.mjs +88 -95
- package/es/src/hooks/useControllableValue.mjs +18 -18
- package/es/src/hooks/useResize.mjs +16 -16
- package/es/src/mask/index.vue.mjs +11 -11
- package/es/src/resize-observer/index.vue.mjs +20 -22
- package/es/src/scroll-bar/index.vue.mjs +2 -8
- package/es/src/scroll-bar/internal.vue.mjs +59 -65
- package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
- package/es/src/scroll-view/index.vue.mjs +40 -42
- package/es/src/splitter/Splitter.vue2.mjs +48 -52
- package/es/src/splitter/hooks/useItems.mjs +14 -15
- package/es/src/splitter/hooks/useResize.mjs +31 -34
- package/es/src/splitter/hooks/useSizes.mjs +34 -34
- package/es/src/text/index.vue.mjs +24 -24
- package/es/src/utils/config-provider-preset.mjs +17 -21
- package/es/src/utils/copy.mjs +9 -9
- package/es/src/utils/index.mjs +43 -43
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ag-grid/renderer/checkbox.js +1 -1
- package/lib/src/ag-grid/renderer/date-range.js +1 -1
- package/lib/src/ag-grid/renderer/date.js +1 -1
- package/lib/src/ag-grid/renderer/radio.js +1 -1
- package/lib/src/ag-grid/renderer/select.js +1 -1
- package/lib/src/ag-grid/renderer/tree-select.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
- package/lib/src/ap-button/utils/index.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/index.js +1 -1
- package/lib/src/ap-download/utils/getFileInfo.js +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
- package/lib/src/ap-field/hooks/use-options.js +1 -1
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/radio/read.vue2.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/select/use-select-options.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/use-request.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/list/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/utils.js +1 -1
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-form/utils/get.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-grid/utils/editable.js +1 -1
- package/lib/src/ap-grid/utils/renderer.js +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
- package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- package/lib/src/ap-modal/utils/methods.js +1 -1
- package/lib/src/ap-modal/utils/util.js +1 -1
- package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.js +1 -1
- package/lib/src/ap-table/constants.d.ts +6 -6
- package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/ap-upload/hooks/useOss.js +1 -1
- package/lib/src/ap-upload/utils/accept.js +1 -1
- package/lib/src/ap-upload/utils/returnData.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/utils/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-copy/ApCopy.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/convertExportField.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/hooks/useOss.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/hook.js +1 -1
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/utils.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/utils.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/utils.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/business/hooks/useGridRefresh.js +1 -1
- package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.js +1 -1
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/hooks/useResize.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/resize-observer/index.vue.js +1 -1
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/splitter/hooks/useItems.js +1 -1
- package/lib/src/splitter/hooks/useResize.js +1 -1
- package/lib/src/splitter/hooks/useSizes.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/lib/src/utils/copy.js +1 -1
- package/lib/src/utils/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +5 -5
- package/theme/ap-draggable-grid/ap-draggable-grid.css +2 -1
- package/theme/ap-draggable-grid/ap-draggable-grid.less +2 -1
- package/theme/index.css +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as h, ref as y, toRef as w, createBlock as u, openBlock as s, unref as e, withCtx as o, createVNode as t, normalizeClass as a, withDirectives as x, createElementVNode as f, toDisplayString as
|
|
2
|
-
import { Popover as P, Tooltip as T, Button as
|
|
1
|
+
import { defineComponent as h, ref as y, toRef as w, createBlock as u, openBlock as s, unref as e, withCtx as o, createVNode as t, normalizeClass as a, withDirectives as x, createElementVNode as f, toDisplayString as d, vShow as R, createElementBlock as S, Fragment as D, renderList as L, resolveDynamicComponent as N, createTextVNode as b } from "vue";
|
|
2
|
+
import { Popover as P, Tooltip as T, Button as g, Row as V, Col as z, Divider as A, Flex as E } from "@aplus-frontend/antdv";
|
|
3
3
|
import { IconApFilterOutlined as I } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
5
5
|
import { useCollapseInputCount as j } from "../hooks/use-collapse-input-count.mjs";
|
|
@@ -16,7 +16,7 @@ const Q = /* @__PURE__ */ h({
|
|
|
16
16
|
setup(k) {
|
|
17
17
|
const C = k, F = y(), { e: i, b: c } = O("ap-form-search-form"), { t: m } = U(), p = y(!1), B = w(() => C.config), { count: v } = j(B);
|
|
18
18
|
function _(r) {
|
|
19
|
-
return
|
|
19
|
+
return r?.closest(".ant-form") || document.body;
|
|
20
20
|
}
|
|
21
21
|
return (r, l) => (s(), u(e(P), {
|
|
22
22
|
open: p.value,
|
|
@@ -55,22 +55,22 @@ const Q = /* @__PURE__ */ h({
|
|
|
55
55
|
}, [
|
|
56
56
|
t(e(E), { justify: "end" }, {
|
|
57
57
|
default: o(() => [
|
|
58
|
-
t(e(
|
|
58
|
+
t(e(g), {
|
|
59
59
|
onClick: l[0] || (l[0] = (n) => p.value = !1)
|
|
60
60
|
}, {
|
|
61
61
|
default: o(() => [
|
|
62
|
-
b(
|
|
62
|
+
b(d(e(m)("ap.common.cancelText")), 1)
|
|
63
63
|
]),
|
|
64
64
|
_: 1
|
|
65
65
|
}),
|
|
66
|
-
t(e(
|
|
66
|
+
t(e(g), {
|
|
67
67
|
class: a(e(i)("popover-footer-confirm-btn")),
|
|
68
68
|
type: "primary",
|
|
69
69
|
loading: r.submitLoading,
|
|
70
70
|
onClick: r.onSubmit
|
|
71
71
|
}, {
|
|
72
72
|
default: o(() => [
|
|
73
|
-
b(
|
|
73
|
+
b(d(e(m)("ap.apForm.search.search")), 1)
|
|
74
74
|
]),
|
|
75
75
|
_: 1
|
|
76
76
|
}, 8, ["class", "loading", "onClick"])
|
|
@@ -85,7 +85,7 @@ const Q = /* @__PURE__ */ h({
|
|
|
85
85
|
placement: "top"
|
|
86
86
|
}, {
|
|
87
87
|
default: o(() => [
|
|
88
|
-
t(e(
|
|
88
|
+
t(e(g), {
|
|
89
89
|
ref_key: "triggerBtnRef",
|
|
90
90
|
ref: F,
|
|
91
91
|
class: a([e(c)("trigger-btn"), { [e(c)("trigger-btn-active")]: p.value }])
|
|
@@ -93,7 +93,7 @@ const Q = /* @__PURE__ */ h({
|
|
|
93
93
|
icon: o(() => [
|
|
94
94
|
x(f("sup", {
|
|
95
95
|
class: a(e(c)("trigger-btn-badge"))
|
|
96
|
-
},
|
|
96
|
+
}, d(e(v)), 3), [
|
|
97
97
|
[R, e(v) !== 0]
|
|
98
98
|
]),
|
|
99
99
|
t(e(I), { size: 14 })
|
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { useInjectForm as
|
|
3
|
-
import { isArray as
|
|
1
|
+
import { computed as p } from "vue";
|
|
2
|
+
import { useInjectForm as a } from "../../context.mjs";
|
|
3
|
+
import { isArray as d, isObject as F, isFunction as g } from "lodash-unified";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
5
|
-
import { getModelValue as
|
|
6
|
-
import { useGlobalConfig as
|
|
7
|
-
function
|
|
5
|
+
import { getModelValue as h } from "../../utils/get.mjs";
|
|
6
|
+
import { useGlobalConfig as y } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
7
|
+
function i(t) {
|
|
8
8
|
if (t == null)
|
|
9
9
|
return !1;
|
|
10
10
|
if (typeof t == "string")
|
|
11
11
|
return t.trim() !== "";
|
|
12
|
-
if (
|
|
13
|
-
return t.some((e) =>
|
|
14
|
-
if (
|
|
12
|
+
if (d(t))
|
|
13
|
+
return t.some((e) => i(e));
|
|
14
|
+
if (F(t)) {
|
|
15
15
|
const o = Object.keys(t);
|
|
16
16
|
if (o.length === 0)
|
|
17
17
|
return !1;
|
|
18
18
|
for (const e of o)
|
|
19
|
-
if (
|
|
19
|
+
if (i(t[e]))
|
|
20
20
|
return !0;
|
|
21
21
|
return !1;
|
|
22
22
|
}
|
|
23
23
|
return !0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return
|
|
25
|
+
function C(t) {
|
|
26
|
+
return g(t.type) ? t.type() : t;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
29
|
-
const { model: o } =
|
|
28
|
+
const x = (t) => {
|
|
29
|
+
const { model: o } = a(), e = y("searchForm");
|
|
30
30
|
return {
|
|
31
|
-
count:
|
|
32
|
-
let
|
|
33
|
-
return t.value.forEach((
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}), i;
|
|
31
|
+
count: p(() => {
|
|
32
|
+
let n = 0;
|
|
33
|
+
return t.value.forEach((u) => {
|
|
34
|
+
const r = C(u.node), m = [r.props.name].flat(1), l = h(o?.value, m), s = r.props.customFilled || r.props["custom-filled"], c = e.value?.customFilled;
|
|
35
|
+
!s && c ? c?.(r, l) && (n += 1) : (s || i)(l) && (n += 1);
|
|
36
|
+
}), n;
|
|
38
37
|
})
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
40
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
i as defaultFilled,
|
|
42
|
+
C as getTargetNode,
|
|
43
|
+
x as useCollapseInputCount
|
|
45
44
|
};
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import { isBoolean as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { getStringName as
|
|
4
|
-
import { isDef as
|
|
5
|
-
import { getTargetNode as
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
t && i.has(t) && a.set(t, e);
|
|
1
|
+
import { isBoolean as p } from "lodash-unified";
|
|
2
|
+
import { ref as f, computed as c } from "vue";
|
|
3
|
+
import { getStringName as d } from "../../item-group/helper.mjs";
|
|
4
|
+
import { isDef as u } from "../../../utils/index.mjs";
|
|
5
|
+
import { getTargetNode as m } from "./use-collapse-input-count.mjs";
|
|
6
|
+
function l(n, r) {
|
|
7
|
+
const i = new Set(n.map((o) => o.name)), a = /* @__PURE__ */ new Map();
|
|
8
|
+
for (const o of r) {
|
|
9
|
+
const e = String(d(m(o).props?.name));
|
|
10
|
+
e && i.has(e) && a.set(e, o);
|
|
12
11
|
}
|
|
13
|
-
const s = /* @__PURE__ */ new Set(),
|
|
14
|
-
for (const
|
|
15
|
-
const
|
|
16
|
-
|
|
12
|
+
const s = /* @__PURE__ */ new Set(), t = [];
|
|
13
|
+
for (const o of n) {
|
|
14
|
+
const e = a.get(o.name);
|
|
15
|
+
e && (t.push(e), s.add(e));
|
|
17
16
|
}
|
|
18
|
-
for (const
|
|
19
|
-
s.has(
|
|
20
|
-
return
|
|
17
|
+
for (const o of r)
|
|
18
|
+
s.has(o) || t.push(o);
|
|
19
|
+
return t;
|
|
21
20
|
}
|
|
22
|
-
const
|
|
23
|
-
const r =
|
|
24
|
-
const e =
|
|
21
|
+
const w = (n) => {
|
|
22
|
+
const r = f(!1), i = c(() => (n.value || []).map((t) => {
|
|
23
|
+
const e = m(t).props;
|
|
25
24
|
return {
|
|
26
25
|
label: e.description || e.label || e.placeholder,
|
|
27
|
-
name:
|
|
28
|
-
isHidden:
|
|
26
|
+
name: d(e.name),
|
|
27
|
+
isHidden: p(e.hidden) ? !!e.hidden : u(e.hidden)
|
|
29
28
|
};
|
|
30
29
|
}));
|
|
31
30
|
function a(s) {
|
|
32
|
-
const
|
|
31
|
+
const t = l(
|
|
33
32
|
s || [],
|
|
34
33
|
n.value || []
|
|
35
34
|
);
|
|
36
|
-
r.value = !0, n.value =
|
|
35
|
+
r.value = !0, n.value = t;
|
|
37
36
|
}
|
|
38
37
|
return {
|
|
39
38
|
items: i,
|
|
@@ -42,5 +41,5 @@ const C = (n) => {
|
|
|
42
41
|
};
|
|
43
42
|
};
|
|
44
43
|
export {
|
|
45
|
-
|
|
44
|
+
w as useSorter
|
|
46
45
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
|
|
3
|
-
import { SizeType, ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
|
|
4
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
5
4
|
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
6
5
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
@@ -8,6 +7,7 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
|
8
7
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
9
8
|
import { Recordable } from '../../type';
|
|
10
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSearchFormPopoverSorterItem } from '..';
|
|
13
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -25,7 +25,7 @@ declare function __VLS_template(): {
|
|
|
25
25
|
$: ComponentInternalInstance;
|
|
26
26
|
$data: {};
|
|
27
27
|
$props: {
|
|
28
|
-
readonly size?:
|
|
28
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
29
29
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
30
30
|
readonly layout?: string | undefined;
|
|
31
31
|
readonly disabled?: boolean | undefined;
|
|
@@ -864,7 +864,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
864
864
|
$: ComponentInternalInstance;
|
|
865
865
|
$data: {};
|
|
866
866
|
$props: {
|
|
867
|
-
readonly size?:
|
|
867
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
868
868
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
869
869
|
readonly layout?: string | undefined;
|
|
870
870
|
readonly disabled?: boolean | undefined;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Col as R, Flex as k, Button as
|
|
1
|
+
import { isVNode as re, defineComponent as se, useSlots as ie, ref as V, shallowRef as D, computed as _, unref as a, watch as U, createVNode as o, Fragment as w, createBlock as y, openBlock as p, mergeProps as ue, withCtx as B, resolveDynamicComponent as I, createElementBlock as ce, renderList as pe, normalizeStyle as de } from "vue";
|
|
2
|
+
import { Col as R, Flex as k, Button as z, Row as fe } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../item/index.vue2.mjs";
|
|
5
|
-
import { genRealChildren as
|
|
5
|
+
import { genRealChildren as M } from "../item-group/helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { isArray as
|
|
8
|
-
import { isDef as
|
|
9
|
-
import { execFunc as
|
|
7
|
+
import { isArray as me, isBoolean as he, omit as xe } from "lodash-unified";
|
|
8
|
+
import { isDef as q } from "../../utils/index.mjs";
|
|
9
|
+
import { execFunc as H, diffFormItem as ye } from "./utils.mjs";
|
|
10
10
|
import "./components/popover-filter.vue.mjs";
|
|
11
|
-
import { useCountPerRow as
|
|
11
|
+
import { useCountPerRow as ge } from "./hooks/use-count-per-row.mjs";
|
|
12
12
|
import "./components/popover-sorter/index.vue.mjs";
|
|
13
|
-
import { useSorter as
|
|
14
|
-
import { getTargetNode as
|
|
15
|
-
import { floorWith as
|
|
16
|
-
import { useNamespace as
|
|
17
|
-
import { useLocale as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
function
|
|
23
|
-
return typeof
|
|
13
|
+
import { useSorter as ve } from "./hooks/use-sorter.mjs";
|
|
14
|
+
import { getTargetNode as Ce } from "./hooks/use-collapse-input-count.mjs";
|
|
15
|
+
import { floorWith as G } from "@fruits-chain/utils";
|
|
16
|
+
import { useNamespace as Se } from "../../config-provider/hooks/use-namespace.mjs";
|
|
17
|
+
import { useLocale as _e } from "../../config-provider/hooks/use-locale.mjs";
|
|
18
|
+
import J from "../item/index.vue.mjs";
|
|
19
|
+
import we from "./components/popover-filter.vue2.mjs";
|
|
20
|
+
import Re from "./components/popover-sorter/index.vue2.mjs";
|
|
21
|
+
import be from "../ap-form.vue2.mjs";
|
|
22
|
+
function Fe(d) {
|
|
23
|
+
return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !re(d);
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const r = 100, Qe = /* @__PURE__ */ se({
|
|
26
26
|
name: "ApFormSearchForm",
|
|
27
27
|
__name: "index",
|
|
28
28
|
props: {
|
|
@@ -117,158 +117,151 @@ const s = 100, Xe = /* @__PURE__ */ ie({
|
|
|
117
117
|
default: 300
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
setup(
|
|
121
|
-
expose:
|
|
120
|
+
setup(d, {
|
|
121
|
+
expose: K
|
|
122
122
|
}) {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
} = _e("ap-form-search-form"), {
|
|
123
|
+
const g = ie(), t = d, {
|
|
124
|
+
b: f
|
|
125
|
+
} = Se("ap-form-search-form"), {
|
|
127
126
|
t: T
|
|
128
|
-
} =
|
|
127
|
+
} = _e(), Q = ge(t), v = V(), X = V();
|
|
129
128
|
function P() {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
G(t.onSubmit, e);
|
|
129
|
+
const e = v.value?.getFieldsValueTransformed(!0);
|
|
130
|
+
H(t.onSubmit, e);
|
|
133
131
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
136
|
-
t.customReset || (a = (e = v.value) == null ? void 0 : e.resetFields) == null || a.call(e), G(t.onReset);
|
|
132
|
+
function Y() {
|
|
133
|
+
t.customReset || v.value?.resetFields?.(), H(t.onReset);
|
|
137
134
|
}
|
|
138
|
-
const
|
|
135
|
+
const Z = (e) => q(e) ? (me(e) ? e : [e]).join("") : Date.now();
|
|
139
136
|
let E = [];
|
|
140
|
-
const
|
|
137
|
+
const m = D(M(g.default())), u = D(g.extra?.()), O = _(() => G(r / a(Q), 4)), {
|
|
141
138
|
items: b,
|
|
142
139
|
sorted: L,
|
|
143
140
|
handleClickConfirm: F
|
|
144
|
-
} =
|
|
145
|
-
|
|
146
|
-
E =
|
|
147
|
-
}),
|
|
148
|
-
|
|
149
|
-
return (e = i.extra) == null ? void 0 : e.call(i);
|
|
150
|
-
}, (e) => {
|
|
151
|
-
p.value = e;
|
|
141
|
+
} = ve(m);
|
|
142
|
+
U(() => g.default(), (e) => {
|
|
143
|
+
E = m.value, m.value = ye(E, M(e)), L.value = !1;
|
|
144
|
+
}), U(() => g.extra?.(), (e) => {
|
|
145
|
+
u.value = e;
|
|
152
146
|
});
|
|
153
|
-
function
|
|
154
|
-
return
|
|
147
|
+
function ee(e) {
|
|
148
|
+
return G(e * (r / 24), 4);
|
|
155
149
|
}
|
|
156
|
-
const
|
|
157
|
-
const e =
|
|
150
|
+
const n = _(() => {
|
|
151
|
+
const e = m.value, c = [], l = [], x = [], s = a(O);
|
|
158
152
|
let C = 0, N = 0;
|
|
159
|
-
const
|
|
153
|
+
const ae = r * t.maxRows - s * (a(u) && !t.extraInAction ? 2 : 1);
|
|
160
154
|
e.forEach((A) => {
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
163
|
-
|
|
155
|
+
const i = Ce(A).props;
|
|
156
|
+
if (he(i.hidden) ? !!i.hidden : q(i.hidden))
|
|
157
|
+
c.push(A);
|
|
164
158
|
else {
|
|
165
|
-
let S =
|
|
166
|
-
const
|
|
159
|
+
let S = i.span ? ee(i.span) : s;
|
|
160
|
+
const $ = {
|
|
167
161
|
node: A,
|
|
168
162
|
span: S,
|
|
169
|
-
key: `ApFormSearchFormItem-${
|
|
170
|
-
},
|
|
171
|
-
|
|
163
|
+
key: `ApFormSearchFormItem-${Z(i.name)}-${i._signal}`
|
|
164
|
+
}, j = r - C % r;
|
|
165
|
+
j < S && (S += j), C += S, C > ae ? l.push($) : (N = C, x.push($));
|
|
172
166
|
}
|
|
173
167
|
});
|
|
174
|
-
const
|
|
168
|
+
const W = r - (N + s) % r, ne = Math.ceil(N) % r < s, le = W < s ? r : W;
|
|
175
169
|
return {
|
|
176
|
-
hideNode: o(w, null, [
|
|
177
|
-
nodes:
|
|
178
|
-
collapseNodes:
|
|
179
|
-
extraSpan:
|
|
180
|
-
lastRowOnlyIncludeActionAndExtra:
|
|
170
|
+
hideNode: o(w, null, [c]),
|
|
171
|
+
nodes: x,
|
|
172
|
+
collapseNodes: l,
|
|
173
|
+
extraSpan: le,
|
|
174
|
+
lastRowOnlyIncludeActionAndExtra: ne
|
|
181
175
|
};
|
|
182
|
-
}),
|
|
176
|
+
}), h = (e) => `${e}%`, te = _(() => {
|
|
183
177
|
let e;
|
|
184
|
-
const
|
|
185
|
-
flex:
|
|
178
|
+
const c = n.value.collapseNodes.length || t.sortable && m.value.length, l = o(R, {
|
|
179
|
+
flex: h(a(O)),
|
|
186
180
|
key: "actionWrapper"
|
|
187
181
|
}, {
|
|
188
|
-
default: () => [o(
|
|
182
|
+
default: () => [o(J, null, {
|
|
189
183
|
default: () => [o(k, {
|
|
190
184
|
wrap: "wrap",
|
|
191
|
-
justify:
|
|
185
|
+
justify: n.value.lastRowOnlyIncludeActionAndExtra && !(a(u) && t.extraInAction) ? "flex-end" : "space-between"
|
|
192
186
|
}, {
|
|
193
187
|
default: () => [o(k, {
|
|
194
188
|
gap: 8,
|
|
195
189
|
wrap: "wrap"
|
|
196
190
|
}, {
|
|
197
|
-
default: () => [
|
|
198
|
-
class:
|
|
199
|
-
}, [
|
|
191
|
+
default: () => [c ? o("div", {
|
|
192
|
+
class: f("column-setting-trigger-wrapper")
|
|
193
|
+
}, [n.value.collapseNodes.length ? o(we, {
|
|
200
194
|
onSubmit: P,
|
|
201
|
-
config:
|
|
195
|
+
config: n.value.collapseNodes,
|
|
202
196
|
submitLoading: t.submitLoading
|
|
203
|
-
}, null) : null, t.sortable && b.value.length ? o(
|
|
197
|
+
}, null) : null, t.sortable && b.value.length ? o(Re, {
|
|
204
198
|
ref: "sorterIns",
|
|
205
199
|
items: b.value,
|
|
206
200
|
onClickConfirm: F,
|
|
207
201
|
sorted: L.value
|
|
208
|
-
}, null) : null]) : null, o(
|
|
202
|
+
}, null) : null]) : null, o(z, {
|
|
209
203
|
type: "primary",
|
|
210
204
|
onClick: P,
|
|
211
205
|
loading: t.submitLoading ? {
|
|
212
206
|
delay: t.loadingDelay
|
|
213
207
|
} : !1,
|
|
214
208
|
htmlType: "submit",
|
|
215
|
-
class:
|
|
209
|
+
class: f("action-btn")
|
|
216
210
|
}, {
|
|
217
211
|
default: () => [t.searchText || T("ap.apForm.search.search")]
|
|
218
|
-
}), o(
|
|
219
|
-
onClick:
|
|
212
|
+
}), o(z, {
|
|
213
|
+
onClick: Y,
|
|
220
214
|
type: "text",
|
|
221
|
-
class: [
|
|
215
|
+
class: [f("action-btn"), f("action-btn-reset")]
|
|
222
216
|
}, {
|
|
223
217
|
default: () => [t.resetText || T("ap.apForm.search.reset")]
|
|
224
218
|
})]
|
|
225
|
-
}), t.extraInAction ?
|
|
219
|
+
}), t.extraInAction ? a(u) : null]
|
|
226
220
|
})]
|
|
227
221
|
})]
|
|
228
|
-
}),
|
|
229
|
-
flex:
|
|
222
|
+
}), x = !t.extraInAction && a(u) ? o(R, {
|
|
223
|
+
flex: h(n.value.extraSpan),
|
|
230
224
|
key: "extraNode"
|
|
231
225
|
}, {
|
|
232
|
-
default: () => [o(
|
|
226
|
+
default: () => [o(J, null, {
|
|
233
227
|
default: () => [o(k, {
|
|
234
|
-
justify:
|
|
235
|
-
},
|
|
228
|
+
justify: n.value.extraSpan === r || n.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
|
|
229
|
+
}, Fe(e = a(u)) ? e : {
|
|
236
230
|
default: () => [e]
|
|
237
231
|
})]
|
|
238
232
|
})]
|
|
239
|
-
}) : null,
|
|
240
|
-
flex:
|
|
233
|
+
}) : null, s = o(R, {
|
|
234
|
+
flex: h(n.value.extraSpan)
|
|
241
235
|
}, null);
|
|
242
|
-
return
|
|
236
|
+
return n.value.lastRowOnlyIncludeActionAndExtra ? o(w, null, [x || s, l]) : o(w, null, [l, x]);
|
|
243
237
|
});
|
|
244
|
-
function
|
|
245
|
-
|
|
246
|
-
const e = (a = Y.value) == null ? void 0 : a.getCachedList();
|
|
238
|
+
function oe() {
|
|
239
|
+
const e = X.value?.getCachedList();
|
|
247
240
|
F(e);
|
|
248
241
|
}
|
|
249
|
-
return
|
|
250
|
-
apForm: _(() =>
|
|
242
|
+
return K({
|
|
243
|
+
apForm: _(() => a(v)),
|
|
251
244
|
getSorterItems: () => b.value,
|
|
252
245
|
setSorterItems: F,
|
|
253
|
-
resetSorterItems:
|
|
254
|
-
}), (e,
|
|
246
|
+
resetSorterItems: oe
|
|
247
|
+
}), (e, c) => (p(), y(be, ue({
|
|
255
248
|
ref_key: "apForm",
|
|
256
249
|
ref: v,
|
|
257
|
-
class:
|
|
258
|
-
},
|
|
259
|
-
default: B(() => [(
|
|
250
|
+
class: a(f)()
|
|
251
|
+
}, a(xe)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
252
|
+
default: B(() => [(p(), y(I(n.value.hideNode))), o(a(fe), {
|
|
260
253
|
gutter: 8
|
|
261
254
|
}, {
|
|
262
|
-
default: B(() => [(
|
|
263
|
-
key:
|
|
264
|
-
flex:
|
|
265
|
-
style:
|
|
266
|
-
maxWidth:
|
|
255
|
+
default: B(() => [(p(!0), ce(w, null, pe(n.value.nodes, (l) => (p(), y(a(R), {
|
|
256
|
+
key: l.key,
|
|
257
|
+
flex: h(l.span),
|
|
258
|
+
style: de({
|
|
259
|
+
maxWidth: h(l.span)
|
|
267
260
|
})
|
|
268
261
|
}, {
|
|
269
|
-
default: B(() => [(
|
|
262
|
+
default: B(() => [(p(), y(I(l.node)))]),
|
|
270
263
|
_: 2
|
|
271
|
-
}, 1032, ["flex", "style"]))), 128)), (
|
|
264
|
+
}, 1032, ["flex", "style"]))), 128)), (p(), y(I(te.value)))]),
|
|
272
265
|
_: 1
|
|
273
266
|
})]),
|
|
274
267
|
_: 1
|
|
@@ -276,5 +269,5 @@ const s = 100, Xe = /* @__PURE__ */ ie({
|
|
|
276
269
|
}
|
|
277
270
|
});
|
|
278
271
|
export {
|
|
279
|
-
|
|
272
|
+
Qe as default
|
|
280
273
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { cloneVNode as l } from "vue";
|
|
2
2
|
import { isArray as a, isFunction as p } from "lodash-unified";
|
|
3
|
-
function
|
|
4
|
-
const t = u(n),
|
|
5
|
-
return r.map((
|
|
6
|
-
const i = m(
|
|
7
|
-
if (!t.get(i) ||
|
|
8
|
-
return
|
|
9
|
-
const g =
|
|
10
|
-
return JSON.stringify(g) !== JSON.stringify(y) ?
|
|
3
|
+
function x(n, r) {
|
|
4
|
+
const t = u(n), o = u(r);
|
|
5
|
+
return r.map((e) => {
|
|
6
|
+
const i = m(e.props.name), f = o.get(i), s = t.get(i);
|
|
7
|
+
if (!t.get(i) || f?.index !== s?.index)
|
|
8
|
+
return e;
|
|
9
|
+
const g = c(s.item), y = c(f.item);
|
|
10
|
+
return JSON.stringify(g) !== JSON.stringify(y) ? e : l(e, { _signal: s.item._signal });
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
function m(n) {
|
|
@@ -15,27 +15,27 @@ function m(n) {
|
|
|
15
15
|
}
|
|
16
16
|
function u(n) {
|
|
17
17
|
const r = /* @__PURE__ */ new Map();
|
|
18
|
-
return n.forEach((t,
|
|
19
|
-
const
|
|
20
|
-
r.set(i, { item:
|
|
18
|
+
return n.forEach((t, o) => {
|
|
19
|
+
const e = t.props, i = m(e.name);
|
|
20
|
+
r.set(i, { item: e, index: o });
|
|
21
21
|
}), r;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function c(n) {
|
|
24
24
|
if (n === null || typeof n != "object") return n;
|
|
25
25
|
const r = {};
|
|
26
26
|
for (const t in n) {
|
|
27
|
-
const
|
|
28
|
-
t === "_signal" || typeof
|
|
27
|
+
const o = n[t];
|
|
28
|
+
t === "_signal" || typeof o == "function" || (r[t] = c(o));
|
|
29
29
|
}
|
|
30
30
|
return r;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function M(n, ...r) {
|
|
33
33
|
if (a(n))
|
|
34
34
|
for (const t of n)
|
|
35
35
|
p(t) && t(...r);
|
|
36
36
|
else p(n) && n(...r);
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
x as diffFormItem,
|
|
40
|
+
M as execFunc
|
|
41
41
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useInjectForm as
|
|
3
|
-
import { isFunction as
|
|
4
|
-
import { isPromise as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as c, useSlots as u, cloneVNode as p, onMounted as f, createElementBlock as d, openBlock as o, Fragment as V, renderList as _, createBlock as y, resolveDynamicComponent as C } from "vue";
|
|
2
|
+
import { useInjectForm as F } from "../context.mjs";
|
|
3
|
+
import { isFunction as k, cloneDeep as g } from "lodash-unified";
|
|
4
|
+
import { isPromise as h } from "@fruits-chain/utils";
|
|
5
|
+
const I = /* @__PURE__ */ c({
|
|
6
6
|
name: "ApFormSet",
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: {
|
|
@@ -11,25 +11,21 @@ const v = /* @__PURE__ */ p({
|
|
|
11
11
|
initialValue: {},
|
|
12
12
|
transform: {}
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const { internalInstance:
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
return V(async () => {
|
|
24
|
-
let n = h(e.initialValue) ? e.initialValue() : e.initialValue;
|
|
25
|
-
x(n) && (n = await n), t == null || t.registerField({
|
|
14
|
+
setup(i) {
|
|
15
|
+
const { internalInstance: l } = F(), s = u(), e = i, m = () => (s.default?.() || []).map((r, t) => {
|
|
16
|
+
const a = e.as === "array" ? [e.name, t] : [e.name, r.props?.name || ""];
|
|
17
|
+
return p(r, { name: a });
|
|
18
|
+
});
|
|
19
|
+
return f(async () => {
|
|
20
|
+
let n = k(e.initialValue) ? e.initialValue() : e.initialValue;
|
|
21
|
+
h(n) && (n = await n), l?.registerField({
|
|
26
22
|
name: e.name,
|
|
27
|
-
initialValue:
|
|
23
|
+
initialValue: g(n),
|
|
28
24
|
transform: e.transform
|
|
29
25
|
});
|
|
30
|
-
}), (n,
|
|
26
|
+
}), (n, r) => (o(!0), d(V, null, _(m(), (t, a) => (o(), y(C(t), { key: a }))), 128));
|
|
31
27
|
}
|
|
32
28
|
});
|
|
33
29
|
export {
|
|
34
|
-
|
|
30
|
+
I as default
|
|
35
31
|
};
|