@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,5 +1,5 @@
|
|
|
1
|
-
import { ApDownLoadNeedNameKeyDefault as
|
|
2
|
-
function
|
|
1
|
+
import { ApDownLoadNeedNameKeyDefault as p } from "../interface.mjs";
|
|
2
|
+
function u(r, t) {
|
|
3
3
|
if (r === !0) {
|
|
4
4
|
if (typeof t == "string")
|
|
5
5
|
return [
|
|
@@ -9,15 +9,15 @@ function K(r, t) {
|
|
|
9
9
|
}
|
|
10
10
|
];
|
|
11
11
|
if (Array.isArray(t))
|
|
12
|
-
return t.map((
|
|
13
|
-
path:
|
|
14
|
-
fileName:
|
|
12
|
+
return t.map((n) => ({
|
|
13
|
+
path: n?.[p.pathKey] ?? n,
|
|
14
|
+
fileName: n?.[p.nameKey] ?? n
|
|
15
15
|
}));
|
|
16
16
|
if (typeof t == "object")
|
|
17
17
|
return [
|
|
18
18
|
{
|
|
19
|
-
path: t
|
|
20
|
-
fileName: t
|
|
19
|
+
path: t?.[p.pathKey],
|
|
20
|
+
fileName: t?.[p.nameKey]
|
|
21
21
|
}
|
|
22
22
|
];
|
|
23
23
|
} else if (typeof r == "object") {
|
|
@@ -29,15 +29,15 @@ function K(r, t) {
|
|
|
29
29
|
}
|
|
30
30
|
];
|
|
31
31
|
if (Array.isArray(t))
|
|
32
|
-
return t.map((
|
|
33
|
-
path:
|
|
34
|
-
fileName:
|
|
32
|
+
return t.map((n) => ({
|
|
33
|
+
path: n?.[r?.pathKey || p.pathKey] ?? n,
|
|
34
|
+
fileName: n?.[r?.nameKey || p.nameKey] ?? n
|
|
35
35
|
}));
|
|
36
36
|
if (typeof t == "object")
|
|
37
37
|
return [
|
|
38
38
|
{
|
|
39
|
-
path: t
|
|
40
|
-
fileName: t
|
|
39
|
+
path: t?.[r?.pathKey || p.pathKey],
|
|
40
|
+
fileName: t?.[r?.nameKey || p.nameKey]
|
|
41
41
|
}
|
|
42
42
|
];
|
|
43
43
|
} else {
|
|
@@ -49,21 +49,21 @@ function K(r, t) {
|
|
|
49
49
|
}
|
|
50
50
|
];
|
|
51
51
|
if (Array.isArray(t))
|
|
52
|
-
return t.map((
|
|
53
|
-
path:
|
|
54
|
-
fileName:
|
|
55
|
-
} :
|
|
52
|
+
return t.map((n) => typeof n == "string" ? {
|
|
53
|
+
path: n,
|
|
54
|
+
fileName: n
|
|
55
|
+
} : n);
|
|
56
56
|
if (typeof t == "object")
|
|
57
57
|
return [t];
|
|
58
58
|
}
|
|
59
59
|
return [];
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function c(r, t) {
|
|
62
62
|
r.length === 4 && (r = `#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}`);
|
|
63
|
-
const
|
|
64
|
-
return `#${
|
|
63
|
+
const n = parseInt(r.slice(1, 3), 16), y = parseInt(r.slice(3, 5), 16), s = parseInt(r.slice(5, 7), 16), a = Math.round(t * 255).toString(16).padStart(2, "0");
|
|
64
|
+
return `#${n.toString(16).padStart(2, "0")}${y.toString(16).padStart(2, "0")}${s.toString(16).padStart(2, "0")}${a}`;
|
|
65
65
|
}
|
|
66
66
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
u as getFileInfo,
|
|
68
|
+
c as getHexWithOpacity
|
|
69
69
|
};
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import { render as
|
|
2
|
-
import { Drawer as
|
|
3
|
-
import { ConfigProvider as
|
|
4
|
-
import { omit as
|
|
1
|
+
import { render as c, defineComponent as C, createVNode as a, mergeProps as g, h as x } from "vue";
|
|
2
|
+
import { Drawer as v } from "@aplus-frontend/antdv";
|
|
3
|
+
import { ConfigProvider as b, globalConfigCached as w } from "../../config-provider/config-provider.mjs";
|
|
4
|
+
import { omit as P } from "lodash-unified";
|
|
5
5
|
import "../components/ApDrawerClose.vue.mjs";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
let o,
|
|
6
|
+
import y from "../components/ApDrawerClose.vue2.mjs";
|
|
7
|
+
const _ = (n) => {
|
|
8
|
+
let o, s;
|
|
9
9
|
const {
|
|
10
|
-
destroyOnClose:
|
|
11
|
-
} =
|
|
12
|
-
function
|
|
10
|
+
destroyOnClose: r = !0
|
|
11
|
+
} = n;
|
|
12
|
+
function p() {
|
|
13
13
|
o && o(!1), setTimeout(() => {
|
|
14
|
-
|
|
15
|
-
w(null, t), (e = t.parentElement) == null || e.removeChild(t);
|
|
14
|
+
c(null, t), t.parentElement?.removeChild(t);
|
|
16
15
|
}, 500);
|
|
17
16
|
}
|
|
18
|
-
function
|
|
17
|
+
function h() {
|
|
19
18
|
o && o(!0);
|
|
20
19
|
}
|
|
21
|
-
function
|
|
20
|
+
function i() {
|
|
22
21
|
o && o(!1);
|
|
23
22
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
23
|
+
function m(e) {
|
|
24
|
+
s && s(e);
|
|
26
25
|
}
|
|
27
|
-
const
|
|
26
|
+
const f = /* @__PURE__ */ C({
|
|
28
27
|
data() {
|
|
29
28
|
return {
|
|
30
|
-
open:
|
|
31
|
-
props:
|
|
29
|
+
open: r,
|
|
30
|
+
props: n
|
|
32
31
|
};
|
|
33
32
|
},
|
|
34
33
|
created() {
|
|
35
34
|
o = (e) => {
|
|
36
35
|
this.open = e;
|
|
37
|
-
},
|
|
36
|
+
}, s = (e) => {
|
|
38
37
|
this.props = {
|
|
39
38
|
...this.props,
|
|
40
39
|
...e
|
|
@@ -43,45 +42,37 @@ const G = (d) => {
|
|
|
43
42
|
},
|
|
44
43
|
methods: {
|
|
45
44
|
async handleClose() {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
await ((p = this.props) == null ? void 0 : p.onClose(i));
|
|
45
|
+
if (this.props?.onClose) {
|
|
46
|
+
const e = this.props?.content?.component?.exposed ?? void 0;
|
|
47
|
+
await this.props?.onClose(e);
|
|
50
48
|
}
|
|
51
|
-
|
|
49
|
+
r ? p() : i();
|
|
52
50
|
}
|
|
53
51
|
},
|
|
54
52
|
render() {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
onClose: this.handleClose
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}, e), {
|
|
69
|
-
default: () => {
|
|
70
|
-
var b;
|
|
71
|
-
return [(b = this.props) == null ? void 0 : b.content];
|
|
72
|
-
}
|
|
73
|
-
})];
|
|
74
|
-
}
|
|
53
|
+
const e = P(this.props, ["onClose", "extra", "footer", "visible", "onUpdate:visible", "afterVisibleChange", "onAfterVisibleOChange", "open", "onUpdate:open", "getContainer"]), l = this.props?.content?.component?.exposed ?? void 0, d = () => r ? p() : i();
|
|
54
|
+
return a(b, w.value, {
|
|
55
|
+
default: () => [a(v, g({
|
|
56
|
+
open: this.open,
|
|
57
|
+
onClose: this.handleClose,
|
|
58
|
+
closeIcon: this.props?.closeIcon ?? null,
|
|
59
|
+
extra: this.props?.extra ? this.props?.extra?.(l, d) : a(y, {
|
|
60
|
+
onClose: this.handleClose
|
|
61
|
+
}, null),
|
|
62
|
+
footer: this.props?.footer?.(l, d)
|
|
63
|
+
}, e), {
|
|
64
|
+
default: () => [this.props?.content]
|
|
65
|
+
})]
|
|
75
66
|
});
|
|
76
67
|
}
|
|
77
|
-
}),
|
|
78
|
-
return
|
|
79
|
-
destroy:
|
|
80
|
-
update:
|
|
81
|
-
open:
|
|
82
|
-
close:
|
|
68
|
+
}), u = n.getContainer || document.body, t = document.createElement("div");
|
|
69
|
+
return u.appendChild(t), c(x(f), t), {
|
|
70
|
+
destroy: p,
|
|
71
|
+
update: m,
|
|
72
|
+
open: h,
|
|
73
|
+
close: i
|
|
83
74
|
};
|
|
84
75
|
};
|
|
85
76
|
export {
|
|
86
|
-
|
|
77
|
+
_ as createDrawer
|
|
87
78
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isFunction as
|
|
3
|
-
import { Spin as
|
|
1
|
+
import { defineComponent as g, ref as h, onMounted as b, createElementBlock as l, openBlock as o, Fragment as n, unref as e, createTextVNode as u, toDisplayString as m, createBlock as d, mergeProps as C } from "vue";
|
|
2
|
+
import { isFunction as V, isNil as B, omit as O } from "lodash-unified";
|
|
3
|
+
import { Spin as q, CheckboxGroup as T } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
|
-
import { getOptionValue as
|
|
5
|
+
import { getOptionValue as U, getOptionLabel as _ } from "./helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
import { useControllableValue as
|
|
10
|
-
const
|
|
7
|
+
import F from "../hooks/use-options.mjs";
|
|
8
|
+
import { useNamespace as N } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useControllableValue as A } from "../../hooks/useControllableValue.mjs";
|
|
10
|
+
const H = /* @__PURE__ */ g({
|
|
11
11
|
name: "ApFieldCheckbox",
|
|
12
12
|
inheritAttrs: !1,
|
|
13
13
|
__name: "index",
|
|
@@ -29,42 +29,39 @@ const I = /* @__PURE__ */ h({
|
|
|
29
29
|
vertical: { type: Boolean }
|
|
30
30
|
},
|
|
31
31
|
emits: ["update:value"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
setup(c, { emit: f }) {
|
|
33
|
+
const v = f, t = c, { options: p, updateOptions: y } = F(t), { m: k } = N("field-checkbox"), i = h(!1);
|
|
34
|
+
b(() => {
|
|
35
|
+
V(t.request) && (i.value = !0, t.request().then((a) => y(a)).finally(() => {
|
|
36
36
|
i.value = !1;
|
|
37
37
|
}));
|
|
38
38
|
});
|
|
39
|
-
const { value: r, updateValue:
|
|
39
|
+
const { value: r, updateValue: x } = A(
|
|
40
40
|
t,
|
|
41
|
-
|
|
41
|
+
v,
|
|
42
42
|
{
|
|
43
43
|
defaultValue: []
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
|
-
return (a,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
e(O)(e(r)) ? (o(), l(n, { key: 0 }, [
|
|
50
|
-
m(d(t.emptyText), 1)
|
|
51
|
-
], 64)) : (o(), l(n, { key: 1 }, [
|
|
52
|
-
m(d(((u = e(p)) == null ? void 0 : u.filter((s) => e(r).indexOf(e(_)(s)) > -1).map((s) => e(F)(s)).join("、")) || t.emptyText), 1)
|
|
53
|
-
], 64))
|
|
46
|
+
return (a, S) => a.mode === "read" ? (o(), l(n, { key: 0 }, [
|
|
47
|
+
e(B)(e(r)) ? (o(), l(n, { key: 0 }, [
|
|
48
|
+
u(m(t.emptyText), 1)
|
|
54
49
|
], 64)) : (o(), l(n, { key: 1 }, [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
u(m(e(p)?.filter((s) => e(r).indexOf(e(U)(s)) > -1).map((s) => e(_)(s)).join("、") || t.emptyText), 1)
|
|
51
|
+
], 64))
|
|
52
|
+
], 64)) : (o(), l(n, { key: 1 }, [
|
|
53
|
+
i.value ? (o(), d(e(q), {
|
|
54
|
+
key: 0,
|
|
55
|
+
size: "small"
|
|
56
|
+
})) : (o(), d(e(T), C({ key: 1 }, e(O)(t, ["onUpdate:value", "value", "request", "vertical"]), {
|
|
57
|
+
options: e(p),
|
|
58
|
+
value: e(r),
|
|
59
|
+
class: a.vertical ? e(k)("vertical") : null,
|
|
60
|
+
"onUpdate:value": e(x)
|
|
61
|
+
}), null, 16, ["options", "value", "class", "onUpdate:value"]))
|
|
62
|
+
], 64));
|
|
66
63
|
}
|
|
67
64
|
});
|
|
68
65
|
export {
|
|
69
|
-
|
|
66
|
+
H as default
|
|
70
67
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isNil as
|
|
3
|
-
import { getOptionValue as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as r, createElementBlock as o, unref as a, openBlock as l, Fragment as n, createTextVNode as p, toDisplayString as i } from "vue";
|
|
2
|
+
import { isNil as d } from "lodash-unified";
|
|
3
|
+
import { getOptionValue as m, getOptionLabel as u } from "./helper.mjs";
|
|
4
|
+
const g = /* @__PURE__ */ r({
|
|
5
5
|
name: "ApFieldCheckboxRead",
|
|
6
6
|
__name: "read",
|
|
7
7
|
props: {
|
|
@@ -21,17 +21,14 @@ const k = /* @__PURE__ */ d({
|
|
|
21
21
|
request: {},
|
|
22
22
|
vertical: { type: Boolean }
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
25
|
-
return (e,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
i(r(((o = e.options) == null ? void 0 : o.filter((t) => e.value.indexOf(a(u)(t)) > -1).map((t) => a(s)(t)).join("、")) || e.emptyText), 1)
|
|
31
|
-
], 64));
|
|
32
|
-
};
|
|
24
|
+
setup(s) {
|
|
25
|
+
return (e, f) => a(d)(e.value) ? (l(), o(n, { key: 0 }, [
|
|
26
|
+
p(i(e.emptyText), 1)
|
|
27
|
+
], 64)) : (l(), o(n, { key: 1 }, [
|
|
28
|
+
p(i(e.options?.filter((t) => e.value.indexOf(a(m)(t)) > -1).map((t) => a(u)(t)).join("、") || e.emptyText), 1)
|
|
29
|
+
], 64));
|
|
33
30
|
}
|
|
34
31
|
});
|
|
35
32
|
export {
|
|
36
|
-
|
|
33
|
+
g as default
|
|
37
34
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { InputGroup as
|
|
4
|
-
import { ApFieldDatePresetFormats as
|
|
1
|
+
import { defineComponent as z, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as E, withCtx as p, createCommentVNode as N, createVNode as j, isRef as I, renderList as P, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as $, guardReactiveProps as G } from "vue";
|
|
2
|
+
import u from "dayjs";
|
|
3
|
+
import { InputGroup as L, Select as W, SelectOption as Y, DatePicker as Z } from "@aplus-frontend/antdv";
|
|
4
|
+
import { ApFieldDatePresetFormats as q, PRESET_FORMAT_MAP as C, PRESET_FORMAT_PICK_MAP as J, PRESET_FORMAT_TIME_MAP as Q } from "./constant.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
|
-
import { isNil as
|
|
6
|
+
import { isNil as S, omit as X } from "lodash-unified";
|
|
7
7
|
import { formatDayWithTimezone as ee } from "./helper.mjs";
|
|
8
8
|
import { getTimeFormatToZone as oe } from "@aplus-frontend/utils";
|
|
9
9
|
import { useDefaultPlaceholder as te } from "../hooks/use-default-placeholder.mjs";
|
|
10
10
|
import { useDateTimezone as ae } from "../hooks/use-date-timezone.mjs";
|
|
11
11
|
import { useControllableValue as ne } from "../../hooks/useControllableValue.mjs";
|
|
12
|
-
const ye = /* @__PURE__ */
|
|
12
|
+
const ye = /* @__PURE__ */ z({
|
|
13
13
|
name: "ApFieldDate",
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -89,23 +89,23 @@ const ye = /* @__PURE__ */ E({
|
|
|
89
89
|
timezone: {}
|
|
90
90
|
},
|
|
91
91
|
emits: ["update:value"],
|
|
92
|
-
setup(
|
|
93
|
-
const e =
|
|
92
|
+
setup(T, { emit: O }) {
|
|
93
|
+
const e = T, b = O, { value: f, updateValue: h } = ne(
|
|
94
94
|
e,
|
|
95
|
-
|
|
96
|
-
),
|
|
97
|
-
() =>
|
|
98
|
-
),
|
|
99
|
-
() => l.value ?
|
|
100
|
-
),
|
|
101
|
-
if (
|
|
95
|
+
b
|
|
96
|
+
), F = te("Date", e), { currentTimezone: d } = ae(e), l = r(
|
|
97
|
+
() => q.indexOf(e.format) > -1
|
|
98
|
+
), _ = r(() => e.shownFormat ? e.shownFormat : l.value ? C[e.format] : e.format), s = r(
|
|
99
|
+
() => l.value ? C[e.format] : e.format
|
|
100
|
+
), c = r(() => {
|
|
101
|
+
if (S(t(f)))
|
|
102
102
|
return;
|
|
103
|
-
let
|
|
104
|
-
return e.timezone && (
|
|
105
|
-
}),
|
|
106
|
-
const
|
|
103
|
+
let o = u(t(f));
|
|
104
|
+
return e.timezone && (o = u(oe(t(f), d.value))), o;
|
|
105
|
+
}), A = r(() => t(l) ? e.picker ?? J[e.format] : e.picker), R = r(() => {
|
|
106
|
+
const o = t(l) ? Q[e.format] : {};
|
|
107
107
|
return {
|
|
108
|
-
...
|
|
108
|
+
...X(e, [
|
|
109
109
|
"value",
|
|
110
110
|
"defaultValue",
|
|
111
111
|
"onChange",
|
|
@@ -114,85 +114,83 @@ const ye = /* @__PURE__ */ E({
|
|
|
114
114
|
"onUpdate:value",
|
|
115
115
|
"mode"
|
|
116
116
|
]),
|
|
117
|
-
placeholder:
|
|
118
|
-
...
|
|
117
|
+
placeholder: t(F),
|
|
118
|
+
...o
|
|
119
119
|
};
|
|
120
|
-
}),
|
|
121
|
-
function
|
|
122
|
-
if (
|
|
123
|
-
|
|
120
|
+
}), v = (o, n, a = !0) => ee(d.value)(o, n, a);
|
|
121
|
+
function M(o) {
|
|
122
|
+
if (S(o)) {
|
|
123
|
+
h(null);
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
126
|
-
const n =
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
const n = u(o);
|
|
127
|
+
h(
|
|
128
|
+
v(
|
|
129
129
|
n,
|
|
130
|
-
|
|
130
|
+
t(l) ? t(s) : void 0,
|
|
131
131
|
e.formatBegins
|
|
132
132
|
)
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
a(l) ? a(m) : void 0,
|
|
135
|
+
function D(o, n) {
|
|
136
|
+
const a = u(o), m = o ? v(
|
|
137
|
+
a,
|
|
138
|
+
t(l) ? t(s) : void 0,
|
|
140
139
|
e.formatBegins
|
|
141
140
|
) : null;
|
|
142
|
-
|
|
141
|
+
e.onChange?.(m, n);
|
|
143
142
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
146
|
-
const n = d(t), o = t ? y(
|
|
143
|
+
function x(o) {
|
|
144
|
+
const n = u(o), a = o ? v(
|
|
147
145
|
n,
|
|
148
|
-
|
|
146
|
+
t(l) ? t(s) : void 0,
|
|
149
147
|
e.formatBegins
|
|
150
148
|
) : null;
|
|
151
|
-
|
|
149
|
+
e.onOk?.(a);
|
|
152
150
|
}
|
|
153
|
-
return (
|
|
154
|
-
w(
|
|
155
|
-
], 64)) : (
|
|
151
|
+
return (o, n) => o.mode === "read" ? (i(), B(g, { key: 0 }, [
|
|
152
|
+
k(w(c.value ? t(u)(c.value).format(s.value) : o.emptyText), 1)
|
|
153
|
+
], 64)) : (i(), y(t(L), {
|
|
156
154
|
key: 1,
|
|
157
155
|
compact: "",
|
|
158
|
-
style:
|
|
156
|
+
style: E({
|
|
159
157
|
display: Array.isArray(e.timezone) && e.timezone.length ? "flex" : "block"
|
|
160
158
|
})
|
|
161
159
|
}, {
|
|
162
|
-
default:
|
|
163
|
-
Array.isArray(e.timezone) && e.timezone.length ? (
|
|
160
|
+
default: p(() => [
|
|
161
|
+
Array.isArray(e.timezone) && e.timezone.length ? (i(), y(t(W), {
|
|
164
162
|
key: 0,
|
|
165
|
-
value:
|
|
166
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
163
|
+
value: t(d),
|
|
164
|
+
"onUpdate:value": n[0] || (n[0] = (a) => I(d) ? d.value = a : null),
|
|
167
165
|
"default-active-first-option": "",
|
|
168
166
|
"dropdown-match-select-width": !1,
|
|
169
167
|
style: { "max-width": "50%" }
|
|
170
168
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
(
|
|
173
|
-
key:
|
|
174
|
-
value:
|
|
169
|
+
default: p(() => [
|
|
170
|
+
(i(!0), B(g, null, P(e.timezone, (a) => (i(), y(t(Y), {
|
|
171
|
+
key: a?.value,
|
|
172
|
+
value: a?.value
|
|
175
173
|
}, {
|
|
176
|
-
default:
|
|
177
|
-
w(
|
|
174
|
+
default: p(() => [
|
|
175
|
+
k(w(a?.label ?? a?.value), 1)
|
|
178
176
|
]),
|
|
179
177
|
_: 2
|
|
180
178
|
}, 1032, ["value"]))), 128))
|
|
181
179
|
]),
|
|
182
180
|
_: 1
|
|
183
|
-
}, 8, ["value"])) :
|
|
184
|
-
|
|
185
|
-
value:
|
|
186
|
-
format:
|
|
187
|
-
picker:
|
|
188
|
-
"onUpdate:value":
|
|
189
|
-
onChange:
|
|
190
|
-
onOk:
|
|
191
|
-
}),
|
|
192
|
-
|
|
193
|
-
name:
|
|
194
|
-
fn:
|
|
195
|
-
|
|
181
|
+
}, 8, ["value"])) : N("", !0),
|
|
182
|
+
j(t(Z), U(R.value, {
|
|
183
|
+
value: c.value,
|
|
184
|
+
format: _.value,
|
|
185
|
+
picker: A.value,
|
|
186
|
+
"onUpdate:value": M,
|
|
187
|
+
onChange: D,
|
|
188
|
+
onOk: x
|
|
189
|
+
}), H({ _: 2 }, [
|
|
190
|
+
P(o.$slots, (a, m) => ({
|
|
191
|
+
name: m,
|
|
192
|
+
fn: p((V) => [
|
|
193
|
+
K(o.$slots, m, $(G(V || {})))
|
|
196
194
|
])
|
|
197
195
|
}))
|
|
198
196
|
]), 1040, ["value", "format", "picker"])
|