@aplus-frontend/ui 6.26.1 → 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 +114 -127
- package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
- package/es/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
- package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +47 -57
- 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-draggable-grid/ApDraggableGrid.vue2.mjs +118 -112
- 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.vue.d.ts +3 -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-draggable-grid/ApDraggableGrid.vue2.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 +7 -7
- package/theme/ap-draggable-grid/ap-draggable-grid.css +7 -3
- package/theme/ap-draggable-grid/ap-draggable-grid.less +5 -3
- package/theme/index.css +7 -3
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ApFieldDatePresetFormats as
|
|
1
|
+
import { defineComponent as W, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as P, Fragment as m, createElementBlock as g, createBlock as S, openBlock as u, createTextVNode as k, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as T, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
|
|
2
|
+
import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as w, PRESET_FORMAT_PICK_MAP as le, PRESET_FORMAT_TIME_MAP as ue } from "../date/constant.mjs";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { isNil as
|
|
5
|
-
import
|
|
6
|
-
import { InputGroup as
|
|
7
|
-
import { formatDayWithTimezone as
|
|
8
|
-
import { SwapRightOutlined as
|
|
9
|
-
import { omitUndefined as
|
|
10
|
-
import { getTimeFormatToZone as
|
|
11
|
-
import { useDefaultPlaceholder as
|
|
12
|
-
import { useDefaultPresets as
|
|
13
|
-
import { useDateTimezone as
|
|
14
|
-
import { useControllableValue as
|
|
15
|
-
const
|
|
4
|
+
import { isNil as M, omit as b, isString as c, isFunction as de } from "lodash-unified";
|
|
5
|
+
import d from "dayjs";
|
|
6
|
+
import { InputGroup as ie, Select as se, SelectOption as pe, DatePicker as fe } from "@aplus-frontend/antdv";
|
|
7
|
+
import { formatDayWithTimezone as me } from "../date/helper.mjs";
|
|
8
|
+
import { SwapRightOutlined as ce } from "@ant-design/icons-vue";
|
|
9
|
+
import { omitUndefined as ye } from "../../utils/index.mjs";
|
|
10
|
+
import { getTimeFormatToZone as A } from "@aplus-frontend/utils";
|
|
11
|
+
import { useDefaultPlaceholder as ve } from "../hooks/use-default-placeholder.mjs";
|
|
12
|
+
import { useDefaultPresets as he } from "../hooks/use-default-presets.mjs";
|
|
13
|
+
import { useDateTimezone as ge } from "../hooks/use-date-timezone.mjs";
|
|
14
|
+
import { useControllableValue as Se } from "../../hooks/useControllableValue.mjs";
|
|
15
|
+
const ze = /* @__PURE__ */ W({
|
|
16
16
|
name: "ApFieldDateRange",
|
|
17
17
|
__name: "index",
|
|
18
18
|
props: {
|
|
@@ -156,120 +156,112 @@ const Ee = /* @__PURE__ */ q({
|
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
emits: ["update:value"],
|
|
159
|
-
setup(
|
|
160
|
-
emit:
|
|
159
|
+
setup(R, {
|
|
160
|
+
emit: F
|
|
161
161
|
}) {
|
|
162
|
-
const
|
|
163
|
-
value:
|
|
164
|
-
updateValue:
|
|
165
|
-
} =
|
|
166
|
-
currentTimezone:
|
|
167
|
-
} =
|
|
168
|
-
presets:
|
|
169
|
-
changeCurrentDate:
|
|
170
|
-
} =
|
|
171
|
-
...
|
|
172
|
-
timezone:
|
|
173
|
-
}),
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
if (F(e) || !(e != null && e.length))
|
|
162
|
+
const o = R, _ = F, z = Y(), i = s(() => re.indexOf(o.format) > -1), y = s(() => i.value ? w[o.format] : o.format), {
|
|
163
|
+
value: v,
|
|
164
|
+
updateValue: O
|
|
165
|
+
} = Se(o, _), N = s(() => o.shownFormat ? o.shownFormat : i.value ? w[o.format] : o.format), x = ve("DateRange", o), {
|
|
166
|
+
currentTimezone: l
|
|
167
|
+
} = ge(o), {
|
|
168
|
+
presets: E,
|
|
169
|
+
changeCurrentDate: V
|
|
170
|
+
} = he({
|
|
171
|
+
...o,
|
|
172
|
+
timezone: l
|
|
173
|
+
}), p = (e, a, n = !0) => me(l.value)(e, a, n), h = s(() => {
|
|
174
|
+
const e = t(v);
|
|
175
|
+
if (M(e) || !e?.length)
|
|
177
176
|
return e;
|
|
178
|
-
const a =
|
|
179
|
-
return [
|
|
180
|
-
}),
|
|
181
|
-
const e = t(
|
|
177
|
+
const a = l.value ? A(t(v)[0], l.value) : t(v)?.[0], n = o.timezone ? A(t(v)[1], l.value) : t(v)?.[1];
|
|
178
|
+
return [d(a), d(n)];
|
|
179
|
+
}), I = s(() => t(i) ? o.picker ?? le[o.format] : o.picker), U = s(() => {
|
|
180
|
+
const e = t(i) ? ue[o.format] : {};
|
|
182
181
|
return {
|
|
183
|
-
...
|
|
184
|
-
placeholder: t(
|
|
185
|
-
presets: t(
|
|
182
|
+
...ye(b(o, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode", "presets"])),
|
|
183
|
+
placeholder: t(x),
|
|
184
|
+
presets: t(E),
|
|
186
185
|
...e
|
|
187
186
|
};
|
|
188
187
|
});
|
|
189
|
-
function
|
|
188
|
+
function j(e) {
|
|
190
189
|
if (!e) {
|
|
191
|
-
|
|
190
|
+
O(e);
|
|
192
191
|
return;
|
|
193
192
|
}
|
|
194
|
-
let a =
|
|
195
|
-
const
|
|
196
|
-
|
|
193
|
+
let a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1];
|
|
194
|
+
const r = t(i) ? t(y) : void 0;
|
|
195
|
+
O([p(a, r), p(n, r, !1)]);
|
|
197
196
|
}
|
|
198
|
-
function
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
(c = n.onOk) == null || c.call(n, [o, p]);
|
|
197
|
+
function H(e) {
|
|
198
|
+
const a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1], r = t(i) ? t(y) : void 0, f = e[0] ? p(a, r) : null, D = e[1] ? p(n, r, !1) : null;
|
|
199
|
+
o.onOk?.([f, D]);
|
|
202
200
|
}
|
|
203
|
-
function
|
|
204
|
-
|
|
205
|
-
e && H(), (a = n.onOpenChange) == null || a.call(n, e);
|
|
201
|
+
function K(e) {
|
|
202
|
+
e && V(), o.onOpenChange?.(e);
|
|
206
203
|
}
|
|
207
|
-
function
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
(M = n.onChange) == null || M.call(n, e, a);
|
|
204
|
+
function $(e, a) {
|
|
205
|
+
if (M(e)) {
|
|
206
|
+
o.onChange?.(e, a);
|
|
211
207
|
return;
|
|
212
208
|
}
|
|
213
|
-
const
|
|
214
|
-
|
|
209
|
+
const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], f = t(i) ? t(y) : void 0, D = e[0] ? p(n, f) : null, L = e[1] ? p(r, f, !1) : null;
|
|
210
|
+
o.onChange?.([D, L], a);
|
|
215
211
|
}
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
const e = n.readModeSeparator;
|
|
212
|
+
const G = s(() => {
|
|
213
|
+
const e = o.readModeSeparator;
|
|
219
214
|
if (e)
|
|
220
|
-
return
|
|
221
|
-
const a =
|
|
222
|
-
return a ?
|
|
215
|
+
return Z(e) || de(e) ? o.readModeSeparator : P(m, null, [o.readModeSeparator]);
|
|
216
|
+
const a = z.readModeSeparator?.();
|
|
217
|
+
return a ? P(m, null, [a]) : ce;
|
|
223
218
|
});
|
|
224
|
-
return (e, a) => {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
219
|
+
return (e, a) => e.mode === "read" ? (u(), g(m, {
|
|
220
|
+
key: 0
|
|
221
|
+
}, [h.value ? (u(), g(m, {
|
|
222
|
+
key: 0
|
|
223
|
+
}, [k(C(h.value[0]?.format(y.value)) + " ", 1), (u(), S(q(G.value))), k(" " + C(h.value[1]?.format(y.value)), 1)], 64)) : (u(), g(m, {
|
|
224
|
+
key: 1
|
|
225
|
+
}, [k(C(e.emptyText), 1)], 64))], 64)) : (u(), S(t(ie), {
|
|
226
|
+
key: 1,
|
|
227
|
+
compact: "",
|
|
228
|
+
style: J({
|
|
229
|
+
display: Array.isArray(o.timezone) && o.timezone.length ? "flex" : "block"
|
|
230
|
+
})
|
|
231
|
+
}, {
|
|
232
|
+
default: B(() => [Array.isArray(o.timezone) && o.timezone.length ? (u(), S(t(se), {
|
|
233
|
+
key: 0,
|
|
234
|
+
value: t(l),
|
|
235
|
+
"onUpdate:value": a[0] || (a[0] = (n) => X(l) ? l.value = n : null),
|
|
236
|
+
"default-active-first-option": "",
|
|
237
|
+
"dropdown-match-select-width": !1
|
|
238
238
|
}, {
|
|
239
|
-
default:
|
|
240
|
-
key:
|
|
241
|
-
value:
|
|
242
|
-
"onUpdate:value": a[0] || (a[0] = (o) => ne(u) ? u.value = o : null),
|
|
243
|
-
"default-active-first-option": "",
|
|
244
|
-
"dropdown-match-select-width": !1
|
|
239
|
+
default: B(() => [(u(!0), g(m, null, T(o.timezone, (n) => (u(), S(t(pe), {
|
|
240
|
+
key: n?.value,
|
|
241
|
+
value: n?.value
|
|
245
242
|
}, {
|
|
246
|
-
default:
|
|
247
|
-
key: o == null ? void 0 : o.value,
|
|
248
|
-
value: o == null ? void 0 : o.value
|
|
249
|
-
}, {
|
|
250
|
-
default: P(() => [B(D((o == null ? void 0 : o.label) ?? (o == null ? void 0 : o.value)), 1)]),
|
|
251
|
-
_: 2
|
|
252
|
-
}, 1032, ["value"]))), 128))]),
|
|
253
|
-
_: 1
|
|
254
|
-
}, 8, ["value"])) : ee("", !0), T(t(ce).RangePicker, oe($.value, {
|
|
255
|
-
value: S.value,
|
|
256
|
-
picker: K.value,
|
|
257
|
-
format: I.value,
|
|
258
|
-
"onUpdate:value": G,
|
|
259
|
-
onChange: Y,
|
|
260
|
-
onOk: L,
|
|
261
|
-
onOpenChange: W
|
|
262
|
-
}), te({
|
|
243
|
+
default: B(() => [k(C(n?.label ?? n?.value), 1)]),
|
|
263
244
|
_: 2
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
245
|
+
}, 1032, ["value"]))), 128))]),
|
|
246
|
+
_: 1
|
|
247
|
+
}, 8, ["value"])) : Q("", !0), P(t(fe).RangePicker, ee(U.value, {
|
|
248
|
+
value: h.value,
|
|
249
|
+
picker: I.value,
|
|
250
|
+
format: N.value,
|
|
251
|
+
"onUpdate:value": j,
|
|
252
|
+
onChange: $,
|
|
253
|
+
onOk: H,
|
|
254
|
+
onOpenChange: K
|
|
255
|
+
}), oe({
|
|
256
|
+
_: 2
|
|
257
|
+
}, [T(t(b)(e.$slots, "readModeSeparator"), (n, r) => ({
|
|
258
|
+
name: r,
|
|
259
|
+
fn: B((f) => [te(e.$slots, r, ne(ae(f || {})))])
|
|
260
|
+
}))]), 1040, ["value", "picker", "format"])]),
|
|
261
|
+
_: 3
|
|
262
|
+
}, 8, ["style"]));
|
|
271
263
|
}
|
|
272
264
|
});
|
|
273
265
|
export {
|
|
274
|
-
|
|
266
|
+
ze as default
|
|
275
267
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isNil as
|
|
3
|
-
import { useDateTimezone as
|
|
4
|
-
import { getTimeFormatToZone as
|
|
5
|
-
import
|
|
6
|
-
import { ApFieldDatePresetFormats as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as b, toDisplayString as p, resolveDynamicComponent as h } from "vue";
|
|
2
|
+
import { isNil as g } from "lodash-unified";
|
|
3
|
+
import { useDateTimezone as w } from "../hooks/use-date-timezone.mjs";
|
|
4
|
+
import { getTimeFormatToZone as m } from "@aplus-frontend/utils";
|
|
5
|
+
import c from "dayjs";
|
|
6
|
+
import { ApFieldDatePresetFormats as C, PRESET_FORMAT_MAP as S } from "../date/constant.mjs";
|
|
7
|
+
const M = /* @__PURE__ */ v({
|
|
8
8
|
name: "ApFieldDateRangeRead",
|
|
9
9
|
__name: "read",
|
|
10
10
|
props: {
|
|
@@ -85,37 +85,33 @@ const R = /* @__PURE__ */ h({
|
|
|
85
85
|
readModeSeparator: {},
|
|
86
86
|
presets: { type: [Array, Boolean] }
|
|
87
87
|
},
|
|
88
|
-
setup(
|
|
89
|
-
const e =
|
|
90
|
-
var a, m;
|
|
88
|
+
setup(y) {
|
|
89
|
+
const e = y, { currentTimezone: a } = w(e), t = n(() => {
|
|
91
90
|
const o = e.value;
|
|
92
|
-
if (
|
|
91
|
+
if (g(o) || !o?.length)
|
|
93
92
|
return o;
|
|
94
|
-
const
|
|
93
|
+
const s = a.value ? m(
|
|
95
94
|
e.value[0],
|
|
96
|
-
|
|
97
|
-
) :
|
|
95
|
+
a.value
|
|
96
|
+
) : e.value?.[0], B = e.timezone ? m(
|
|
98
97
|
e.value[1],
|
|
99
|
-
|
|
100
|
-
) :
|
|
101
|
-
return [
|
|
102
|
-
}),
|
|
103
|
-
() =>
|
|
104
|
-
),
|
|
105
|
-
() =>
|
|
98
|
+
a.value
|
|
99
|
+
) : e.value?.[1];
|
|
100
|
+
return [c(s), c(B)];
|
|
101
|
+
}), f = n(
|
|
102
|
+
() => C.indexOf(e.format) > -1
|
|
103
|
+
), u = n(
|
|
104
|
+
() => f.value ? S[e.format] : e.format
|
|
106
105
|
);
|
|
107
|
-
return (o,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
u(s(o.emptyText), 1)
|
|
115
|
-
], 64));
|
|
116
|
-
};
|
|
106
|
+
return (o, s) => t.value ? (r(), d(i, { key: 0 }, [
|
|
107
|
+
l(p(t.value[0]?.format(u.value)) + " ", 1),
|
|
108
|
+
(r(), b(h(o.readModeSeparator))),
|
|
109
|
+
l(" " + p(t.value[1]?.format(u.value)), 1)
|
|
110
|
+
], 64)) : (r(), d(i, { key: 1 }, [
|
|
111
|
+
l(p(o.emptyText), 1)
|
|
112
|
+
], 64));
|
|
117
113
|
}
|
|
118
114
|
});
|
|
119
115
|
export {
|
|
120
|
-
|
|
116
|
+
M as default
|
|
121
117
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { ref as o, watch as m } from "vue";
|
|
2
2
|
import { isUndefined as u } from "lodash-unified";
|
|
3
|
-
const n = (e) => {
|
|
4
|
-
var r;
|
|
5
|
-
return Array.isArray(e) ? (r = e[0]) == null ? void 0 : r.value : e;
|
|
6
|
-
}, c = (e) => {
|
|
3
|
+
const n = (e) => Array.isArray(e) ? e[0]?.value : e, c = (e) => {
|
|
7
4
|
const r = o(n(e.timezone));
|
|
8
5
|
return m(
|
|
9
6
|
() => e.timezone,
|
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
import { ref as s, computed as
|
|
2
|
-
import { presetsDefault as
|
|
3
|
-
import
|
|
1
|
+
import { ref as s, computed as n } from "vue";
|
|
2
|
+
import { presetsDefault as o } from "../../utils/data-range-persets.mjs";
|
|
3
|
+
import u from "dayjs";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { useLocale as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
import { useLocale as f } from "../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
const p = (e) => {
|
|
7
|
+
const a = s(u().valueOf()), { t: l } = f();
|
|
8
8
|
return {
|
|
9
|
-
presets:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return {
|
|
20
|
-
label: t.label,
|
|
21
|
-
value: (a = t == null ? void 0 : t.value) == null ? void 0 : a.filter((c) => c !== null)
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
}),
|
|
9
|
+
presets: n(() => e.presets === !0 ? o(
|
|
10
|
+
e?.timezone?.value,
|
|
11
|
+
a.value,
|
|
12
|
+
l
|
|
13
|
+
)?.filter(({ value: t }) => t.every(
|
|
14
|
+
(r) => e.disabledDate ? !e.disabledDate(r) : !0
|
|
15
|
+
)) : e?.presets?.map?.((t) => ({
|
|
16
|
+
label: t.label,
|
|
17
|
+
value: t?.value?.filter((r) => r !== null)
|
|
18
|
+
}))),
|
|
25
19
|
changeCurrentDate: () => {
|
|
26
|
-
|
|
20
|
+
a.value = u().valueOf();
|
|
27
21
|
}
|
|
28
22
|
};
|
|
29
23
|
};
|
|
30
24
|
export {
|
|
31
|
-
|
|
25
|
+
p as useDefaultPresets
|
|
32
26
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
t && (
|
|
1
|
+
import { ref as u, watch as n } from "vue";
|
|
2
|
+
const a = (o) => {
|
|
3
|
+
const e = u(o?.options || []);
|
|
4
|
+
function r(t) {
|
|
5
|
+
t && (e.value = t);
|
|
6
6
|
}
|
|
7
|
-
return
|
|
8
|
-
() =>
|
|
7
|
+
return n(
|
|
8
|
+
() => o.options,
|
|
9
9
|
(t) => {
|
|
10
|
-
t && (
|
|
10
|
+
t && (e.value = t);
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
deep: !0
|
|
14
14
|
}
|
|
15
15
|
), {
|
|
16
|
-
options:
|
|
17
|
-
updateOptions:
|
|
16
|
+
options: e,
|
|
17
|
+
updateOptions: r
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
a as default
|
|
22
22
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { isNil as
|
|
2
|
-
import { toDecimalMark as
|
|
3
|
-
function
|
|
4
|
-
if (
|
|
5
|
-
return
|
|
6
|
-
let [
|
|
1
|
+
import { isNil as a } from "lodash-unified";
|
|
2
|
+
import { toDecimalMark as f } from "@fruits-chain/utils";
|
|
3
|
+
function n(t, e) {
|
|
4
|
+
if (a(e))
|
|
5
|
+
return t;
|
|
6
|
+
let [i, r = ""] = t.split(".");
|
|
7
7
|
if (r.length >= e)
|
|
8
|
-
return
|
|
9
|
-
for (let
|
|
8
|
+
return t;
|
|
9
|
+
for (let l = r.length; l < e; l++)
|
|
10
10
|
r += "0";
|
|
11
|
-
return
|
|
11
|
+
return i + "." + r;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
return e
|
|
17
|
-
let r = e
|
|
18
|
-
return e
|
|
13
|
+
function u(t, e) {
|
|
14
|
+
const i = t;
|
|
15
|
+
if (a(i))
|
|
16
|
+
return e?.emptyText;
|
|
17
|
+
let r = e?.thousands ? f(i, e.precision) : String(i);
|
|
18
|
+
return e?.precision && e.limitDecimalsRetain && (r = n(r, e.precision)), r;
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
n as addZeroToDecimalPlaces,
|
|
22
|
+
u as getValueStr
|
|
23
23
|
};
|
|
@@ -69,12 +69,10 @@ const j = { key: 0 }, te = /* @__PURE__ */ x({
|
|
|
69
69
|
return o.precision && o.limitDecimalsRetain && (a = w(a, o.precision)), a;
|
|
70
70
|
});
|
|
71
71
|
function k() {
|
|
72
|
-
|
|
73
|
-
(e = l.value) == null || e.focus();
|
|
72
|
+
l.value?.focus();
|
|
74
73
|
}
|
|
75
74
|
function g() {
|
|
76
|
-
|
|
77
|
-
(e = l.value) == null || e.blur();
|
|
75
|
+
l.value?.blur();
|
|
78
76
|
}
|
|
79
77
|
return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n("span", j, [
|
|
80
78
|
e.$slots.prefix ? (r(), n("span", {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Spin as
|
|
1
|
+
import { defineComponent as _, ref as s, onMounted as q, computed as C, unref as e, createElementBlock as p, openBlock as a, Fragment as m, createTextVNode as O, toDisplayString as R, createBlock as d, mergeProps as U } from "vue";
|
|
2
|
+
import { Spin as h, RadioGroup as G } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { isNil as
|
|
5
|
-
import { getOptionValue as
|
|
4
|
+
import { isNil as N, omit as S } from "lodash-unified";
|
|
5
|
+
import { getOptionValue as z, getOptionLabel as F } from "./helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import
|
|
8
|
-
import { useControllableValue as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
const
|
|
7
|
+
import A from "../hooks/use-options.mjs";
|
|
8
|
+
import { useControllableValue as D } from "../../hooks/useControllableValue.mjs";
|
|
9
|
+
import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
const Q = /* @__PURE__ */ _({
|
|
11
11
|
name: "ApFieldRadio",
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
@@ -30,44 +30,40 @@ const W = /* @__PURE__ */ q({
|
|
|
30
30
|
vertical: { type: Boolean, default: !1 }
|
|
31
31
|
},
|
|
32
32
|
emits: ["update:value"],
|
|
33
|
-
setup(
|
|
34
|
-
const t =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
r.value = !1;
|
|
33
|
+
setup(f, { expose: c, emit: v }) {
|
|
34
|
+
const t = f, y = v, l = s(), { options: r, updateOptions: g } = A(t), { value: u, updateValue: k } = D(t, y), { m: x } = E("field-radio"), n = s(!1);
|
|
35
|
+
q(() => {
|
|
36
|
+
t.request && (n.value = !0, t.request?.().then((o) => g(o)).finally(() => {
|
|
37
|
+
n.value = !1;
|
|
39
38
|
}));
|
|
40
39
|
});
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (S(e))
|
|
40
|
+
const b = C(() => {
|
|
41
|
+
const o = e(u);
|
|
42
|
+
if (N(o))
|
|
45
43
|
return t.emptyText;
|
|
46
|
-
const
|
|
47
|
-
(
|
|
44
|
+
const i = r.value?.find(
|
|
45
|
+
(V) => o === z(V)
|
|
48
46
|
);
|
|
49
|
-
return
|
|
47
|
+
return F(i) || t.emptyText;
|
|
50
48
|
});
|
|
51
|
-
function
|
|
52
|
-
|
|
53
|
-
(e = n.value) == null || e.focus();
|
|
49
|
+
function T() {
|
|
50
|
+
l.value?.focus();
|
|
54
51
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
57
|
-
(e = n.value) == null || e.blur();
|
|
52
|
+
function B() {
|
|
53
|
+
l.value?.blur();
|
|
58
54
|
}
|
|
59
|
-
return
|
|
60
|
-
focus:
|
|
61
|
-
blur:
|
|
62
|
-
}), (
|
|
63
|
-
R(
|
|
64
|
-
], 64)) : (
|
|
65
|
-
|
|
55
|
+
return c({
|
|
56
|
+
focus: T,
|
|
57
|
+
blur: B
|
|
58
|
+
}), (o, i) => o.mode === "read" ? (a(), p(m, { key: 0 }, [
|
|
59
|
+
O(R(b.value), 1)
|
|
60
|
+
], 64)) : (a(), p(m, { key: 1 }, [
|
|
61
|
+
n.value ? (a(), d(e(h), {
|
|
66
62
|
key: 0,
|
|
67
63
|
size: "small"
|
|
68
|
-
})) : (
|
|
64
|
+
})) : (a(), d(e(G), U(
|
|
69
65
|
{ key: 1 },
|
|
70
|
-
|
|
66
|
+
e(S)(t, [
|
|
71
67
|
"value",
|
|
72
68
|
"onUpdate:value",
|
|
73
69
|
"options",
|
|
@@ -76,16 +72,16 @@ const W = /* @__PURE__ */ q({
|
|
|
76
72
|
]),
|
|
77
73
|
{
|
|
78
74
|
ref_key: "radioGroupRef",
|
|
79
|
-
ref:
|
|
80
|
-
value:
|
|
81
|
-
options:
|
|
82
|
-
class:
|
|
83
|
-
"onUpdate:value":
|
|
75
|
+
ref: l,
|
|
76
|
+
value: e(u),
|
|
77
|
+
options: e(r),
|
|
78
|
+
class: o.vertical ? e(x)("vertical") : null,
|
|
79
|
+
"onUpdate:value": e(k)
|
|
84
80
|
}
|
|
85
81
|
), null, 16, ["value", "options", "class", "onUpdate:value"]))
|
|
86
82
|
], 64));
|
|
87
83
|
}
|
|
88
84
|
});
|
|
89
85
|
export {
|
|
90
|
-
|
|
86
|
+
Q as default
|
|
91
87
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isNil as
|
|
3
|
-
import { getOptionValue as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as i, computed as l, toDisplayString as r } from "vue";
|
|
2
|
+
import { isNil as s } from "lodash-unified";
|
|
3
|
+
import { getOptionValue as d, getOptionLabel as u } from "./helper.mjs";
|
|
4
|
+
const y = /* @__PURE__ */ i({
|
|
5
5
|
name: "ApFieldRadioRead",
|
|
6
6
|
__name: "read",
|
|
7
7
|
props: {
|
|
@@ -23,20 +23,19 @@ const v = /* @__PURE__ */ l({
|
|
|
23
23
|
request: {},
|
|
24
24
|
vertical: { type: Boolean, default: !1 }
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const e =
|
|
28
|
-
var a;
|
|
26
|
+
setup(a) {
|
|
27
|
+
const e = a, n = l(() => {
|
|
29
28
|
const t = e.value;
|
|
30
|
-
if (
|
|
29
|
+
if (s(t))
|
|
31
30
|
return e.emptyText;
|
|
32
|
-
const o =
|
|
33
|
-
(
|
|
31
|
+
const o = e.options?.find(
|
|
32
|
+
(p) => t === d(p)
|
|
34
33
|
);
|
|
35
|
-
return
|
|
34
|
+
return u(o) || e.emptyText;
|
|
36
35
|
});
|
|
37
|
-
return (t, o) =>
|
|
36
|
+
return (t, o) => r(n.value);
|
|
38
37
|
}
|
|
39
38
|
});
|
|
40
39
|
export {
|
|
41
|
-
|
|
40
|
+
y as default
|
|
42
41
|
};
|