@aplus-frontend/ui 0.6.0-beta.8 → 0.6.0
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/index.mjs +307 -289
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +9 -8
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +4 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +25 -0
- package/es/src/ap-drawer/index.d.ts +2 -0
- package/es/src/ap-drawer/index.mjs +5 -2
- package/es/src/ap-drawer/utils/createDrawer.mjs +38 -33
- package/es/src/ap-field/date-range/index.vue.mjs +8 -7
- package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
- package/es/src/ap-field/number/index.vue.d.ts +2 -4
- package/es/src/ap-field/radio/index.vue.d.ts +2 -4
- package/es/src/ap-field/rate/index.vue.d.ts +2 -4
- package/es/src/ap-field/select/index.vue.d.ts +3 -6
- package/es/src/ap-field/slider/index.vue.d.ts +2 -4
- package/es/src/ap-field/text/index.vue2.mjs +42 -44
- package/es/src/ap-field/text/password.vue.mjs +15 -17
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
- package/es/src/ap-form/ap-form.vue2.mjs +89 -77
- package/es/src/ap-form/dependency/index.vue.mjs +29 -23
- package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
- package/es/src/ap-form/interface.d.ts +13 -5
- package/es/src/ap-form/item/index.vue.d.ts +5 -10
- package/es/src/ap-form/item/index.vue.mjs +69 -73
- package/es/src/ap-form/item-group/index.vue.mjs +34 -35
- package/es/src/ap-form/items/select/index.vue.mjs +12 -14
- package/es/src/ap-form/items/text/password.vue.mjs +9 -9
- package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/es/src/ap-form/items/tree-select/index.vue.mjs +12 -14
- package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
- package/es/src/ap-form/provider/index.vue.mjs +6 -5
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +79 -71
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +31 -13
- package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.mjs +99 -97
- package/es/src/ap-form/set/index.vue.mjs +20 -20
- package/es/src/ap-grid/editable/form-item.vue.mjs +39 -36
- package/es/src/ap-grid/editable/index.vue.mjs +13 -10
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
- package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
- package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
- package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
- package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
- package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
- package/es/src/ap-grid/hooks/use-table-style.d.ts +16 -0
- package/es/src/ap-grid/hooks/use-table-style.mjs +26 -0
- package/es/src/ap-grid/index.vue.mjs +295 -243
- package/es/src/ap-grid/interface.d.ts +32 -3
- package/es/src/ap-grid/utils/table.mjs +15 -15
- package/es/src/ap-list/index.vue.d.ts +2 -9
- package/es/src/ap-list/index.vue.mjs +113 -103
- package/es/src/ap-list/interface.d.ts +24 -3
- package/es/src/ap-modal/interface.d.ts +2 -1
- package/es/src/ap-modal/utils/createModalStream.mjs +24 -24
- package/es/src/ap-table/ap-table.vue.d.ts +10 -2
- package/es/src/ap-table/ap-table.vue2.mjs +86 -82
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
- package/es/src/ap-table/constants.d.ts +22 -22
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +25 -6
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +158 -130
- package/es/src/ap-table/interface.d.ts +17 -4
- package/es/src/ap-table/utils.d.ts +21 -21
- package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
- package/es/src/business/ap-card/ApCard.vue.d.ts +2 -4
- package/es/src/business/ap-card/ApCard.vue2.mjs +34 -33
- package/es/src/business/ap-card/index.d.ts +2 -4
- package/es/src/business/ap-card/interface.d.ts +5 -0
- package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/es/src/business/ap-copy/ApCopy.mjs +79 -0
- package/es/src/business/ap-copy/constans.d.ts +24 -0
- package/es/src/business/ap-copy/constans.mjs +25 -0
- package/es/src/business/ap-copy/index.d.ts +102 -0
- package/es/src/business/ap-copy/index.mjs +7 -0
- package/es/src/business/ap-copy/interface.d.ts +8 -0
- package/es/src/business/ap-copy/interface.mjs +1 -0
- package/es/src/business/ap-copy/style/css.d.ts +0 -0
- package/es/src/business/ap-copy/style/css.js +1 -0
- package/es/src/business/ap-copy/style/index.d.ts +0 -0
- package/es/src/business/ap-copy/style/index.js +1 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +92 -71
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +18 -17
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
- package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
- package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/es/src/business/ap-keep-alive/hook.mjs +33 -0
- package/es/src/business/ap-keep-alive/index.d.ts +108 -0
- package/es/src/business/ap-keep-alive/index.mjs +15 -0
- package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
- package/es/src/business/ap-keep-alive/interface.mjs +54 -0
- package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
- package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/utils.d.ts +23 -0
- package/es/src/business/ap-keep-alive/utils.mjs +42 -0
- package/es/src/business/ap-label/constans.mjs +1 -1
- package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
- package/es/src/business/ap-label/interface.d.ts +2 -3
- package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
- package/es/src/business/ap-product-info/constans.d.ts +4 -0
- package/es/src/business/ap-product-info/constans.mjs +4 -0
- package/es/src/business/ap-product-info/index.d.ts +15 -0
- package/es/src/business/ap-product-info/interface.d.ts +1 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +73 -0
- package/es/src/business/ap-radio-group/index.d.ts +66 -0
- package/es/src/business/ap-radio-group/index.mjs +8 -0
- package/es/src/business/ap-radio-group/interface.d.ts +11 -0
- package/es/src/business/ap-radio-group/interface.mjs +1 -0
- package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/css.js +1 -0
- package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/index.js +1 -0
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/index.d.ts +32 -5
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
- package/es/src/business/ap-view/ap-view.vue.d.ts +4 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +135 -115
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +55 -51
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/index.d.ts +12 -3
- package/es/src/business/ap-view/interface.d.ts +7 -0
- package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
- package/es/src/business/batch-input-group/index.vue.mjs +10 -9
- package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
- package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/es/src/business/index.d.ts +3 -0
- package/es/src/business/index.mjs +36 -30
- package/es/src/components.d.ts +1 -0
- package/es/src/editable-table/form-item.vue.mjs +23 -23
- package/es/src/full-screen/interface.d.ts +5 -6
- package/es/src/index.mjs +112 -97
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/mask/index.vue.mjs +21 -20
- package/es/src/path-map.mjs +3 -1
- package/es/src/resize-observer/interface.d.ts +2 -3
- package/es/src/scroll-bar/interface.d.ts +7 -7
- package/es/src/scroll-view/interface.d.ts +2 -3
- package/es/src/splitter/SplitBar.vue2.mjs +1 -0
- package/es/src/splitter/Splitter.vue2.mjs +1 -0
- package/es/src/tests/mock-resize-observer.d.ts +2 -0
- package/es/src/tests/mock-warning.d.ts +1 -0
- package/es/src/tests/utils.d.ts +8 -0
- package/es/src/text/group.vue.mjs +7 -6
- package/es/src/text/index.vue.mjs +20 -19
- package/es/src/version.d.ts +2 -0
- package/es/src/version.mjs +4 -0
- package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
- package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
- package/es/src/work-order-modal/interfaces.d.ts +4 -0
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +120 -105
- package/es/test/setup.d.ts +5 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
- package/lib/src/ap-drawer/index.d.ts +2 -0
- package/lib/src/ap-drawer/index.js +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +2 -4
- package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
- package/lib/src/ap-field/rate/index.vue.d.ts +2 -4
- package/lib/src/ap-field/select/index.vue.d.ts +3 -6
- package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
- 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.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +13 -5
- package/lib/src/ap-form/item/index.vue.d.ts +5 -10
- 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/select/index.vue.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.d.ts +5 -5
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
- 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.vue.d.ts +131 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/index.vue.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.d.ts +2 -1
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
- package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
- package/lib/src/ap-grid/hooks/use-table-style.d.ts +16 -0
- package/lib/src/ap-grid/hooks/use-table-style.js +1 -0
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +32 -3
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -9
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +24 -3
- package/lib/src/ap-modal/interface.d.ts +2 -1
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +22 -22
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +25 -6
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +17 -4
- package/lib/src/ap-table/utils.d.ts +21 -21
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -4
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-card/index.d.ts +2 -4
- package/lib/src/business/ap-card/interface.d.ts +5 -0
- package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/lib/src/business/ap-copy/ApCopy.js +1 -0
- package/lib/src/business/ap-copy/constans.d.ts +24 -0
- package/lib/src/business/ap-copy/constans.js +1 -0
- package/lib/src/business/ap-copy/index.d.ts +102 -0
- package/lib/src/business/ap-copy/index.js +1 -0
- package/lib/src/business/ap-copy/interface.d.ts +8 -0
- package/lib/src/business/ap-copy/interface.js +1 -0
- package/lib/src/business/ap-copy/style/css.cjs +1 -0
- package/lib/src/business/ap-copy/style/css.d.ts +0 -0
- package/lib/src/business/ap-copy/style/index.cjs +1 -0
- package/lib/src/business/ap-copy/style/index.d.ts +0 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
- package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/hook.js +1 -0
- package/lib/src/business/ap-keep-alive/index.d.ts +108 -0
- package/lib/src/business/ap-keep-alive/index.js +1 -0
- package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
- package/lib/src/business/ap-keep-alive/interface.js +1 -0
- package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/utils.d.ts +23 -0
- package/lib/src/business/ap-keep-alive/utils.js +1 -0
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/interface.d.ts +2 -3
- package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-product-info/constans.d.ts +4 -0
- package/lib/src/business/ap-product-info/constans.js +1 -1
- package/lib/src/business/ap-product-info/index.d.ts +15 -0
- package/lib/src/business/ap-product-info/interface.d.ts +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
- package/lib/src/business/ap-radio-group/index.d.ts +66 -0
- package/lib/src/business/ap-radio-group/index.js +1 -0
- package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
- package/lib/src/business/ap-radio-group/interface.js +1 -0
- package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/index.d.ts +32 -5
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue.d.ts +4 -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 +1 -1
- 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 +1 -1
- package/lib/src/business/ap-view/index.d.ts +12 -3
- package/lib/src/business/ap-view/interface.d.ts +7 -0
- 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/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/lib/src/business/index.d.ts +3 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/components.d.ts +1 -0
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/full-screen/interface.d.ts +5 -6
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/resize-observer/interface.d.ts +2 -3
- package/lib/src/scroll-bar/interface.d.ts +7 -7
- package/lib/src/scroll-view/interface.d.ts +2 -3
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/tests/mock-resize-observer.d.ts +2 -0
- package/lib/src/tests/mock-warning.d.ts +1 -0
- package/lib/src/tests/utils.d.ts +8 -0
- package/lib/src/text/group.vue.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/version.d.ts +2 -0
- package/lib/src/version.js +1 -0
- package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/interfaces.d.ts +4 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/lib/test/setup.d.ts +5 -0
- package/package.json +18 -14
- package/theme/antd-global-overwrite/admin/alert.css +5 -18
- package/theme/antd-global-overwrite/admin/alert.less +25 -36
- package/theme/antd-global-overwrite/admin/button.css +13 -13
- package/theme/antd-global-overwrite/admin/button.less +24 -24
- package/theme/antd-global-overwrite/admin/drawer.css +3 -0
- package/theme/antd-global-overwrite/admin/drawer.less +5 -0
- package/theme/antd-global-overwrite/admin/field.css +42 -0
- package/theme/antd-global-overwrite/admin/field.less +43 -0
- package/theme/antd-global-overwrite/admin/index.css +93 -631
- package/theme/antd-global-overwrite/admin/index.less +1 -3
- package/theme/antd-global-overwrite/admin/message.css +2 -9
- package/theme/antd-global-overwrite/admin/message.less +2 -10
- package/theme/antd-global-overwrite/admin/modal.css +20 -34
- package/theme/antd-global-overwrite/admin/modal.less +20 -38
- package/theme/antd-global-overwrite/admin/table.css +11 -251
- package/theme/antd-global-overwrite/admin/table.less +4 -132
- package/theme/antd-global-overwrite/aplus/alert.css +8 -18
- package/theme/antd-global-overwrite/aplus/alert.less +27 -34
- package/theme/antd-global-overwrite/aplus/button.css +20 -20
- package/theme/antd-global-overwrite/aplus/button.less +24 -24
- package/theme/antd-global-overwrite/aplus/drawer.css +3 -0
- package/theme/antd-global-overwrite/aplus/drawer.less +5 -0
- package/theme/antd-global-overwrite/aplus/field.css +36 -0
- package/theme/antd-global-overwrite/aplus/field.less +36 -0
- package/theme/antd-global-overwrite/aplus/index.css +93 -679
- package/theme/antd-global-overwrite/aplus/index.less +0 -3
- package/theme/antd-global-overwrite/aplus/message.css +2 -9
- package/theme/antd-global-overwrite/aplus/message.less +2 -10
- package/theme/antd-global-overwrite/aplus/modal.css +18 -39
- package/theme/antd-global-overwrite/aplus/modal.less +19 -45
- package/theme/antd-global-overwrite/aplus/table.css +11 -236
- package/theme/antd-global-overwrite/aplus/table.less +4 -134
- package/theme/ap-action/item-dropdown.css +4 -4
- package/theme/ap-action/item.css +23 -12
- package/theme/ap-action/item.less +18 -6
- package/theme/ap-appendix/ap-appendix.css +13 -13
- package/theme/ap-appendix/ap-appendix.less +8 -8
- package/theme/ap-attachment/ap-attachment.css +6 -5
- package/theme/ap-attachment/ap-attachment.less +2 -2
- package/theme/ap-batch-action/ap-batch-action.css +7 -7
- package/theme/ap-batch-action/ap-batch-action.less +3 -3
- package/theme/ap-button/ap-button.css +4 -4
- package/theme/ap-card/ap-card.css +5 -5
- package/theme/ap-card/ap-card.less +1 -1
- package/theme/ap-copy/ap-copy.css +96 -0
- package/theme/ap-copy/ap-copy.less +61 -0
- package/theme/ap-descriptions/ap-descriptions.css +10 -8
- package/theme/ap-descriptions/ap-descriptions.less +6 -4
- package/theme/ap-download/ap-download.css +7 -7
- package/theme/ap-drawer/ap-drawer.css +66 -0
- package/theme/ap-drawer/ap-drawer.less +27 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +5 -4
- package/theme/ap-expand-alert/ap-expand-alert.less +2 -1
- package/theme/ap-field/checkbox.css +4 -4
- package/theme/ap-field/index.css +4 -4
- package/theme/ap-field/number.css +4 -4
- package/theme/ap-field/radio.css +4 -4
- package/theme/ap-field/text-area.css +4 -4
- package/theme/ap-form/ap-form-item-group.css +4 -4
- package/theme/ap-form/ap-form-item.css +12 -9
- package/theme/ap-form/ap-form-item.less +8 -5
- package/theme/ap-form/drawer-form.css +4 -4
- package/theme/ap-form/index.css +34 -22
- package/theme/ap-form/item-text-group.css +4 -4
- package/theme/ap-form/item-text.css +4 -4
- package/theme/ap-form/modal-form.css +4 -4
- package/theme/ap-form/search-form-sorter.css +17 -16
- package/theme/ap-form/search-form-sorter.less +5 -4
- package/theme/ap-form/search-form.css +34 -22
- package/theme/ap-form/search-form.less +9 -1
- package/theme/ap-grid/editable.css +4 -4
- package/theme/ap-grid/index.css +83 -44
- package/theme/ap-grid/index.less +26 -9
- package/theme/ap-group-search/ap-extension-select.css +4 -4
- package/theme/ap-group-search/ap-group-search.css +4 -4
- package/theme/ap-group-search/ap-popover-select.css +4 -4
- package/theme/ap-image/ap-image.css +4 -4
- package/theme/ap-input-radio/ap-input-radio.css +4 -4
- package/theme/ap-label/ap-label.css +4 -4
- package/theme/ap-ladder/ap-ladder.css +7 -6
- package/theme/ap-ladder/ap-ladder.less +1 -0
- package/theme/ap-layout/ap-info-layout.css +4 -4
- package/theme/ap-list/index.css +4 -4
- package/theme/ap-product-info/ap-product-info.css +24 -34
- package/theme/ap-product-info/ap-product-info.less +28 -42
- package/theme/ap-radio-group/ap-radio-group.css +66 -0
- package/theme/ap-radio-group/ap-radio-group.less +26 -0
- package/theme/ap-select-layout/ap-select-layout.css +6 -6
- package/theme/ap-size-input/ap-size-input.css +4 -4
- package/theme/ap-status/ap-status.css +5 -5
- package/theme/ap-status/ap-status.less +1 -1
- package/theme/ap-summary/index.css +4 -4
- package/theme/ap-table/ap-table-index.css +4 -4
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +5 -5
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +90 -52
- package/theme/ap-table/ap-table.less +19 -7
- package/theme/ap-table/setting/index.css +19 -15
- package/theme/ap-table/setting/modal.css +11 -7
- package/theme/ap-table/setting/modal.less +5 -1
- package/theme/ap-table/setting/select-group.css +4 -4
- package/theme/ap-table/setting/sortable-item-meta.css +6 -6
- package/theme/ap-table/setting/sortable-item-meta.less +2 -2
- package/theme/ap-table/setting/sortable-item.css +4 -4
- package/theme/ap-table/setting/sorter.css +10 -10
- package/theme/ap-table/setting/sorter.less +4 -4
- package/theme/ap-table-modal/index.css +105 -65
- package/theme/ap-table-modal/index.less +15 -13
- package/theme/ap-tag/ap-tag-group.css +6 -6
- package/theme/ap-tag/ap-tag-group.less +2 -3
- package/theme/ap-tag/ap-tag.css +10 -10
- package/theme/ap-tag/ap-tag.less +4 -4
- package/theme/ap-title/ap-title.css +9 -7
- package/theme/ap-title/ap-title.less +5 -3
- package/theme/ap-upload/index.css +9 -9
- package/theme/ap-upload/multiple-file.css +5 -5
- package/theme/ap-upload/multiple-file.less +1 -1
- package/theme/ap-upload/picture.css +6 -6
- package/theme/ap-upload/picture.less +2 -2
- package/theme/ap-upload/single-file.css +6 -6
- package/theme/ap-upload/single-file.less +2 -2
- package/theme/ap-upload/upload.css +4 -4
- package/theme/ap-upload-single/index.css +8 -8
- package/theme/ap-upload-single/index.less +4 -4
- package/theme/ap-view/ap-view.css +11 -11
- package/theme/ap-view/ap-view.less +7 -7
- package/theme/batch-input-group/index.css +7 -6
- package/theme/batch-input-group/popover-input.css +7 -6
- package/theme/batch-input-group/popover-input.less +3 -2
- package/theme/check-card/index.css +15 -15
- package/theme/check-card/index.less +5 -5
- package/theme/editable-table/index.css +53 -30
- package/theme/full-screen/index.css +4 -4
- package/theme/index.css +382 -270
- package/theme/index.less +3 -0
- package/theme/mask/index.css +4 -4
- package/theme/mixins/config.less +4 -4
- package/theme/mixins/mixins.css +4 -4
- package/theme/mixins/mixins.less +2 -2
- package/theme/scroll-bar/index.css +4 -4
- package/theme/scroll-view/index.css +4 -4
- package/theme/splitter/index.css +10 -10
- package/theme/splitter/index.less +1 -1
- package/theme/text/group.css +4 -4
- package/theme/text/index.css +10 -10
- package/theme/text/index.less +4 -4
- package/theme/ui-mode.css +51 -83
- package/theme/ui-mode.less +99 -83
- package/theme/work-order-modal/index.css +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-copy/ap-copy.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-copy/ap-copy.less';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DownOutlined as
|
|
3
|
-
import { Alert as
|
|
4
|
-
import { ApActionItem as
|
|
1
|
+
import { defineComponent as K, computed as c, ref as g, watch as x, nextTick as f, onMounted as W, createElementBlock as i, openBlock as a, normalizeClass as n, unref as t, createVNode as b, withCtx as m, createElementVNode as S, normalizeStyle as y, renderSlot as H, createBlock as $, toDisplayString as u, resolveDynamicComponent as I, Fragment as C, renderList as j, createCommentVNode as L, createTextVNode as J } from "vue";
|
|
2
|
+
import { DownOutlined as P } from "@ant-design/icons-vue";
|
|
3
|
+
import { Alert as Q, Tooltip as U } from "@aplus-frontend/antdv";
|
|
4
|
+
import { ApActionItem as X } from "../../ap-action/index.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import { isString as E } from "lodash-unified";
|
|
7
|
-
import { useLocale as
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
import { useGlobalConfig as
|
|
10
|
-
const
|
|
6
|
+
import { isNil as Y, isString as E } from "lodash-unified";
|
|
7
|
+
import { useLocale as Z } from "../../config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { useNamespace as _ } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useGlobalConfig as ee } from "../../config-provider/hooks/use-global-config.mjs";
|
|
10
|
+
const te = ["onClick"], ce = /* @__PURE__ */ K({
|
|
11
11
|
__name: "ApExpandAlert",
|
|
12
12
|
props: {
|
|
13
13
|
type: { default: "warning" },
|
|
@@ -24,124 +24,145 @@ const Z = ["onClick"], ie = /* @__PURE__ */ W({
|
|
|
24
24
|
showIcon: { type: Boolean, default: !0 }
|
|
25
25
|
},
|
|
26
26
|
emits: ["choose", "expand"],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
return
|
|
31
|
-
}), l =
|
|
27
|
+
setup(z, { expose: D, emit: M }) {
|
|
28
|
+
const A = M, p = z, { t: B } = Z(), V = c(() => {
|
|
29
|
+
if (p.type != "card")
|
|
30
|
+
return p.type;
|
|
31
|
+
}), l = g(""), d = g(null), R = c(() => ({
|
|
32
32
|
fontWeight: "400",
|
|
33
33
|
wordBreak: "break-all",
|
|
34
34
|
overflow: "hidden",
|
|
35
35
|
display: "-webkit-box",
|
|
36
36
|
webkitLineClamp: l.value,
|
|
37
|
-
webkitBoxOrient: "vertical"
|
|
37
|
+
webkitBoxOrient: "vertical",
|
|
38
|
+
lineHeight: "18px"
|
|
38
39
|
}));
|
|
39
|
-
function
|
|
40
|
-
l.value === "1" ? (l.value = "",
|
|
40
|
+
function q() {
|
|
41
|
+
l.value === "1" ? (l.value = "", A("expand", "expand")) : (l.value = "1", A("expand", "collapse"));
|
|
41
42
|
}
|
|
42
|
-
const
|
|
43
|
+
const F = c(() => l.value === "1" ? B("ap.apExpandAlert.expand") : B("ap.apExpandAlert.collapse")), h = g(!0), N = c(() => l.value !== "1");
|
|
43
44
|
function v(e) {
|
|
44
45
|
e ? l.value = "" : l.value = "1";
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
() =>
|
|
47
|
+
x(
|
|
48
|
+
() => p.data,
|
|
48
49
|
() => {
|
|
49
|
-
l.value = "",
|
|
50
|
-
if (
|
|
51
|
-
const e = Number(
|
|
52
|
-
parseInt(
|
|
50
|
+
l.value = "", f(() => {
|
|
51
|
+
if (d.value) {
|
|
52
|
+
const e = Number(d.value.clientHeight), r = Number(
|
|
53
|
+
parseInt(d.value.style.lineHeight)
|
|
53
54
|
);
|
|
54
|
-
e <
|
|
55
|
+
e < r * Number(p.rows) && N.value ? h.value = !1 : h.value = !0;
|
|
55
56
|
}
|
|
56
57
|
});
|
|
57
58
|
},
|
|
58
59
|
{
|
|
59
60
|
immediate: !0
|
|
60
61
|
}
|
|
61
|
-
),
|
|
62
|
-
() =>
|
|
62
|
+
), x(
|
|
63
|
+
() => p.defaultExpand,
|
|
63
64
|
(e) => {
|
|
64
|
-
e ?
|
|
65
|
+
e ? f(() => {
|
|
65
66
|
v(e);
|
|
66
|
-
}) :
|
|
67
|
+
}) : f(() => {
|
|
67
68
|
v(e);
|
|
68
69
|
});
|
|
69
70
|
},
|
|
70
71
|
{ immediate: !0 }
|
|
71
|
-
)
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
), W(() => {
|
|
73
|
+
x(
|
|
74
|
+
() => p.contentStyle,
|
|
75
|
+
(e) => {
|
|
76
|
+
Y(e.lineHeight) || f(() => {
|
|
77
|
+
const r = document.querySelector(
|
|
78
|
+
`#${k} .ant-alert-action`
|
|
79
|
+
), s = document.querySelector(
|
|
80
|
+
`#${k} .ant-alert-icon`
|
|
81
|
+
);
|
|
82
|
+
r && r.setAttribute("style", `line-height: ${e.lineHeight}`), s && s.setAttribute("style", `line-height: ${e.lineHeight}`);
|
|
83
|
+
});
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
deep: !0,
|
|
87
|
+
immediate: !0,
|
|
88
|
+
flush: "post"
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
});
|
|
92
|
+
const { b: T, e: o, m: O } = _("ap-expand-alert"), k = `${T()}-key-${Date.now()}-${(Math.random() * 1e6).toFixed(0)}`, G = ee("uiMode", "aplus");
|
|
93
|
+
return D({
|
|
74
94
|
setExpand: v
|
|
75
|
-
}), (e,
|
|
76
|
-
|
|
95
|
+
}), (e, r) => (a(), i("div", {
|
|
96
|
+
id: k,
|
|
97
|
+
class: n([t(T)(), `${t(O)(t(G))}`])
|
|
77
98
|
}, [
|
|
78
|
-
|
|
99
|
+
b(t(Q), {
|
|
79
100
|
type: V.value,
|
|
80
101
|
"show-icon": e.showIcon,
|
|
81
|
-
class:
|
|
102
|
+
class: n([t(o)("antAlert"), e.type == "card" ? "card-alert" : ""])
|
|
82
103
|
}, {
|
|
83
104
|
action: m(() => [
|
|
84
|
-
|
|
105
|
+
h.value ? (a(), $(t(X), {
|
|
85
106
|
key: 0,
|
|
86
107
|
size: "small",
|
|
87
108
|
style: { "font-size": "12px", "padding-left": "16px" },
|
|
88
|
-
onClick:
|
|
109
|
+
onClick: r[0] || (r[0] = (s) => q())
|
|
89
110
|
}, {
|
|
90
111
|
default: m(() => [
|
|
91
|
-
|
|
92
|
-
class:
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
class:
|
|
112
|
+
S("span", {
|
|
113
|
+
class: n(t(o)("expandText"))
|
|
114
|
+
}, u(F.value), 3),
|
|
115
|
+
b(t(P), {
|
|
116
|
+
class: n(N.value ? t(o)("expandIcon") : t(o)("collapseIcon"))
|
|
96
117
|
}, null, 8, ["class"])
|
|
97
118
|
]),
|
|
98
119
|
_: 1
|
|
99
120
|
})) : L("", !0)
|
|
100
121
|
]),
|
|
101
122
|
message: m(() => [
|
|
102
|
-
|
|
123
|
+
S("div", {
|
|
103
124
|
ref_key: "ellipsisBoxRef",
|
|
104
|
-
ref:
|
|
105
|
-
style:
|
|
106
|
-
class:
|
|
125
|
+
ref: d,
|
|
126
|
+
style: y({ ...R.value, ...e.contentStyle }),
|
|
127
|
+
class: n(t(o)("alertContent"))
|
|
107
128
|
}, [
|
|
108
|
-
|
|
109
|
-
t(E)(e.prefix) ? (a(),
|
|
129
|
+
H(e.$slots, "default", {}, () => [
|
|
130
|
+
t(E)(e.prefix) ? (a(), i("span", {
|
|
110
131
|
key: 0,
|
|
111
|
-
class:
|
|
112
|
-
style:
|
|
113
|
-
},
|
|
132
|
+
class: n(t(o)("prefix")),
|
|
133
|
+
style: y(e.prefixStyle)
|
|
134
|
+
}, u(e.prefix), 7)) : (a(), $(I(e.prefix), {
|
|
114
135
|
key: 1,
|
|
115
|
-
style:
|
|
136
|
+
style: y(e.prefixStyle)
|
|
116
137
|
}, null, 8, ["style"])),
|
|
117
|
-
t(E)(e.data) ? (a(),
|
|
138
|
+
t(E)(e.data) ? (a(), i("span", {
|
|
118
139
|
key: 2,
|
|
119
|
-
class:
|
|
120
|
-
},
|
|
121
|
-
|
|
140
|
+
class: n(t(o)("text"))
|
|
141
|
+
}, u(e.data), 3)) : (a(!0), i(C, { key: 3 }, j(e.data, (s, w) => (a(), i(C, { key: w }, [
|
|
142
|
+
b(t(U), {
|
|
122
143
|
title: e.tipTitle ? e.tipTitle : null
|
|
123
144
|
}, {
|
|
124
145
|
default: m(() => [
|
|
125
|
-
|
|
126
|
-
record:
|
|
127
|
-
index:
|
|
146
|
+
H(e.$slots, "item", {
|
|
147
|
+
record: s,
|
|
148
|
+
index: w
|
|
128
149
|
}, () => [
|
|
129
|
-
|
|
130
|
-
class:
|
|
131
|
-
onClick: (
|
|
132
|
-
},
|
|
150
|
+
S("span", {
|
|
151
|
+
class: n(t(o)("showItem")),
|
|
152
|
+
onClick: (ae) => e.$emit("choose", s)
|
|
153
|
+
}, u(e.mapLabel ? s[e.mapLabel] : s), 11, te)
|
|
133
154
|
])
|
|
134
155
|
]),
|
|
135
156
|
_: 2
|
|
136
157
|
}, 1032, ["title"]),
|
|
137
|
-
|
|
158
|
+
w !== e.data.length - 1 ? (a(), i("span", {
|
|
138
159
|
key: 0,
|
|
139
|
-
class:
|
|
140
|
-
style:
|
|
160
|
+
class: n(t(o)("spliter")),
|
|
161
|
+
style: y(e.separatorStyle)
|
|
141
162
|
}, [
|
|
142
|
-
t(E)(e.separator) ? (a(),
|
|
143
|
-
|
|
144
|
-
], 64)) : (a(),
|
|
163
|
+
t(E)(e.separator) ? (a(), i(C, { key: 0 }, [
|
|
164
|
+
J(u(e.separator), 1)
|
|
165
|
+
], 64)) : (a(), $(I(e.separator), { key: 1 }))
|
|
145
166
|
], 6)) : L("", !0)
|
|
146
167
|
], 64))), 128))
|
|
147
168
|
])
|
|
@@ -153,5 +174,5 @@ const Z = ["onClick"], ie = /* @__PURE__ */ W({
|
|
|
153
174
|
}
|
|
154
175
|
});
|
|
155
176
|
export {
|
|
156
|
-
|
|
177
|
+
ce as default
|
|
157
178
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as O, ref as A, computed as s, watch as V, createElemen
|
|
|
2
2
|
import { DownOutlined as U } from "@ant-design/icons-vue";
|
|
3
3
|
import { message as H, Dropdown as J, Menu as Q, MenuItem as G } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { ApExportGroupActionType as
|
|
5
|
+
import { ApExportGroupActionType as i } from "./interface.mjs";
|
|
6
6
|
import { usePermission as W } from "@aplus-frontend/hooks";
|
|
7
7
|
import { handleExportDownload as X } from "./handleExportDownload.mjs";
|
|
8
8
|
import { useInjectApTable as Y } from "../../ap-table/context.mjs";
|
|
@@ -30,10 +30,10 @@ const ge = /* @__PURE__ */ O({
|
|
|
30
30
|
exportField: { type: [Boolean, Object], default: void 0 }
|
|
31
31
|
},
|
|
32
32
|
setup(K) {
|
|
33
|
-
const { hasPermission: T } = W(), e = K, { columns: c, dataSource: f } = Y(), { b: D } = ee("ap-export-group"), { t:
|
|
33
|
+
const { hasPermission: T } = W(), e = K, { columns: c, dataSource: f } = Y(), { b: D } = ee("ap-export-group"), { t: r } = te(), C = ae("exportField"), u = A(!1), p = A(!1), m = s(
|
|
34
34
|
() => {
|
|
35
35
|
var t;
|
|
36
|
-
return !!(e != null && e.disabled) || (f !== void 0 ? !((t = f == null ? void 0 : f.value) != null && t.length) : !1) ||
|
|
36
|
+
return !!(e != null && e.disabled) || (f !== void 0 ? !((t = f == null ? void 0 : f.value) != null && t.length) : !1) || u.value;
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
V(
|
|
@@ -45,7 +45,7 @@ const ge = /* @__PURE__ */ O({
|
|
|
45
45
|
immediate: !0
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
|
-
const R = s(() => (e == null ? void 0 : e.successMessage) === !0 ?
|
|
48
|
+
const R = s(() => (e == null ? void 0 : e.successMessage) === !0 ? r("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), b = s(() => {
|
|
49
49
|
const t = "exportFieldList", l = (e == null ? void 0 : e.exportField) ?? (C.value === "" ? !0 : C.value) ?? !1;
|
|
50
50
|
return l === !0 ? {
|
|
51
51
|
key: t
|
|
@@ -60,18 +60,18 @@ const ge = /* @__PURE__ */ O({
|
|
|
60
60
|
return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => T(e.auth)), (t == null ? void 0 : t()) ?? !0;
|
|
61
61
|
});
|
|
62
62
|
async function I() {
|
|
63
|
-
k.value.length > 0 ? w({ key:
|
|
63
|
+
k.value.length > 0 ? w({ key: i.SELECT }) : w({ key: i.ALL });
|
|
64
64
|
}
|
|
65
65
|
async function w({ key: t }) {
|
|
66
66
|
var F, S, _;
|
|
67
67
|
const { getRequestParams: l, request: o } = e || {};
|
|
68
68
|
let E = {};
|
|
69
|
-
t ===
|
|
69
|
+
t === i.SELECT ? E = {
|
|
70
70
|
[(e == null ? void 0 : e.idKey) || "ids"]: k.value
|
|
71
|
-
} : t ===
|
|
71
|
+
} : t === i.ALL && (E = (l == null ? void 0 : l()) || {});
|
|
72
72
|
const N = ((F = e == null ? void 0 : e.getInitialParams) == null ? void 0 : F.call(e)) || {};
|
|
73
73
|
try {
|
|
74
|
-
|
|
74
|
+
u.value = !0;
|
|
75
75
|
let v = Object.assign(
|
|
76
76
|
{
|
|
77
77
|
...E,
|
|
@@ -86,7 +86,7 @@ const ge = /* @__PURE__ */ O({
|
|
|
86
86
|
);
|
|
87
87
|
v = ((_ = e == null ? void 0 : e.beforeRequest) == null ? void 0 : _.call(e, v)) || v, await X(async () => await (o == null ? void 0 : o(v))), e != null && e.successMessage && H.success(R.value);
|
|
88
88
|
} finally {
|
|
89
|
-
|
|
89
|
+
u.value = !1;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
return (t, l) => (d(), $(q, null, [
|
|
@@ -94,11 +94,12 @@ const ge = /* @__PURE__ */ O({
|
|
|
94
94
|
...t.$attrs
|
|
95
95
|
}, {
|
|
96
96
|
disabled: m.value,
|
|
97
|
-
loading:
|
|
97
|
+
loading: u.value,
|
|
98
|
+
"min-width": "",
|
|
98
99
|
onClick: I
|
|
99
100
|
}), {
|
|
100
101
|
default: n(() => [
|
|
101
|
-
x(g((e == null ? void 0 : e.text) ?? a(
|
|
102
|
+
x(g((e == null ? void 0 : e.text) ?? a(r)("ap.apExportGroup.export")), 1)
|
|
102
103
|
]),
|
|
103
104
|
_: 1
|
|
104
105
|
}, 16, ["disabled", "loading"])) : M("", !0),
|
|
@@ -116,19 +117,19 @@ const ge = /* @__PURE__ */ O({
|
|
|
116
117
|
var o;
|
|
117
118
|
return [
|
|
118
119
|
(d(), y(a(G), {
|
|
119
|
-
key: a(
|
|
120
|
+
key: a(i).SELECT,
|
|
120
121
|
disabled: ((o = k.value) == null ? void 0 : o.length) === 0
|
|
121
122
|
}, {
|
|
122
123
|
default: n(() => [
|
|
123
|
-
x(g(a(
|
|
124
|
+
x(g(a(r)("ap.apExportGroup.exportSelected")), 1)
|
|
124
125
|
]),
|
|
125
126
|
_: 1
|
|
126
127
|
}, 8, ["disabled"])),
|
|
127
128
|
(d(), y(a(G), {
|
|
128
|
-
key: a(
|
|
129
|
+
key: a(i).ALL
|
|
129
130
|
}, {
|
|
130
131
|
default: n(() => [
|
|
131
|
-
x(g(a(
|
|
132
|
+
x(g(a(r)("ap.apExportGroup.exportAll")), 1)
|
|
132
133
|
]),
|
|
133
134
|
_: 1
|
|
134
135
|
}))
|
|
@@ -140,9 +141,9 @@ const ge = /* @__PURE__ */ O({
|
|
|
140
141
|
default: n(() => [
|
|
141
142
|
h(a(P), B({
|
|
142
143
|
...t.$attrs
|
|
143
|
-
}, { loading:
|
|
144
|
+
}, { loading: u.value }), {
|
|
144
145
|
default: n(() => [
|
|
145
|
-
x(g((e == null ? void 0 : e.text) ?? a(
|
|
146
|
+
x(g((e == null ? void 0 : e.text) ?? a(r)("ap.apExportGroup.export")) + " ", 1),
|
|
146
147
|
h(a(U))
|
|
147
148
|
]),
|
|
148
149
|
_: 1
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, onMounted as R, createElementBlock as V, openBlock as h, normalizeClass as b, unref as t, createVNode as i, mergeProps as I } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
|
-
import { Form as
|
|
3
|
+
import { Form as B, InputNumber as k, RadioGroup as x } from "@aplus-frontend/antdv";
|
|
4
4
|
import { omit as _ } from "lodash-unified";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { useLocale as y } from "../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
import { useNamespace as F } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const S = /* @__PURE__ */ g({
|
|
7
8
|
name: "ApInputRadio",
|
|
8
9
|
__name: "ApInputRadio",
|
|
9
10
|
props: {
|
|
@@ -31,36 +32,37 @@ const G = /* @__PURE__ */ f({
|
|
|
31
32
|
},
|
|
32
33
|
emits: ["update:value", "InputRadioChange"],
|
|
33
34
|
setup(p, { emit: s }) {
|
|
34
|
-
const
|
|
35
|
-
let
|
|
36
|
-
u("update:value",
|
|
37
|
-
},
|
|
38
|
-
n({ inputVal:
|
|
39
|
-
}, v = (
|
|
40
|
-
const
|
|
35
|
+
const c = B.useInjectFormItemContext(), e = p, { t: d } = y(), { b: m, e: C } = F("ap-input-radio"), u = s, n = (o) => {
|
|
36
|
+
let a = { ...e.value, ...o };
|
|
37
|
+
u("update:value", a), u("InputRadioChange", a), c.onFieldChange();
|
|
38
|
+
}, f = (o) => {
|
|
39
|
+
n({ inputVal: o });
|
|
40
|
+
}, v = (o) => {
|
|
41
|
+
const a = o.target.value;
|
|
41
42
|
if (e.setRadioValCallback) {
|
|
42
|
-
let l = e.setRadioValCallback(
|
|
43
|
-
n({ inputVal: l, radioVal:
|
|
43
|
+
let l = e.setRadioValCallback(a);
|
|
44
|
+
n({ inputVal: l, radioVal: a });
|
|
44
45
|
} else
|
|
45
|
-
n({ radioVal:
|
|
46
|
+
n({ radioVal: a });
|
|
46
47
|
};
|
|
47
|
-
return
|
|
48
|
+
return R(() => {
|
|
48
49
|
if (e.setRadioValCallback) {
|
|
49
|
-
let
|
|
50
|
-
n({ inputVal:
|
|
50
|
+
let o = e.setRadioValCallback(e.value.radioVal);
|
|
51
|
+
n({ inputVal: o });
|
|
51
52
|
}
|
|
52
|
-
}), (
|
|
53
|
+
}), (o, a) => {
|
|
53
54
|
var l, r;
|
|
54
|
-
return
|
|
55
|
+
return h(), V("div", {
|
|
55
56
|
class: b([t(m)()])
|
|
56
57
|
}, [
|
|
57
|
-
i(t(
|
|
58
|
-
class: t(
|
|
58
|
+
i(t(k), I({
|
|
59
|
+
class: t(C)("input-number")
|
|
59
60
|
}, t(_)(e, ["value", "options"]), {
|
|
60
61
|
value: e.value ? (l = e.value) == null ? void 0 : l.inputVal : "",
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
placeholder: t(d)("ap.common.inputText"),
|
|
63
|
+
onChange: f
|
|
64
|
+
}), null, 16, ["class", "value", "placeholder"]),
|
|
65
|
+
i(t(x), {
|
|
64
66
|
value: e.value ? (r = e.value) == null ? void 0 : r.radioVal : "",
|
|
65
67
|
options: e.options,
|
|
66
68
|
onChange: v
|
|
@@ -70,5 +72,5 @@ const G = /* @__PURE__ */ f({
|
|
|
70
72
|
}
|
|
71
73
|
});
|
|
72
74
|
export {
|
|
73
|
-
|
|
75
|
+
S as default
|
|
74
76
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Recordable } from '../../../type';
|
|
2
|
+
import { cacheDataArrType, CacheInterface, PropertyKeyType } from '../interface';
|
|
3
|
+
export default class Cache implements CacheInterface {
|
|
4
|
+
store: Map<PropertyKeyType, Map<string, any>>;
|
|
5
|
+
constructor();
|
|
6
|
+
get(node: PropertyKeyType): Map<string, Recordable> | undefined;
|
|
7
|
+
set(node: PropertyKeyType, data: cacheDataArrType): void;
|
|
8
|
+
has(node: PropertyKeyType): boolean;
|
|
9
|
+
del(node: PropertyKeyType): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CacheInterface, PropertyKeyType, cacheDataArrType } from '../interface';
|
|
2
|
+
export declare class LruCacher implements CacheInterface {
|
|
3
|
+
store: Map<PropertyKeyType, Map<PropertyKeyType, any>>;
|
|
4
|
+
maxSize: number;
|
|
5
|
+
isExpired: boolean;
|
|
6
|
+
expiredTimer: ReturnType<typeof setTimeout> | null;
|
|
7
|
+
constructor(max?: number);
|
|
8
|
+
changeMaxSize(maxSize: number): void;
|
|
9
|
+
expireCheck(): void;
|
|
10
|
+
has(ModelKey: PropertyKeyType): boolean;
|
|
11
|
+
get(ModelKey: PropertyKeyType): Map<PropertyKey, any> | null | undefined;
|
|
12
|
+
set(ModelKey: PropertyKeyType, value: Map<string, any> | cacheDataArrType): void;
|
|
13
|
+
del(ModelKey: PropertyKeyType): void;
|
|
14
|
+
clear(): void;
|
|
15
|
+
}
|
|
16
|
+
export default LruCacher;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
class r {
|
|
2
|
+
constructor(e = 50) {
|
|
3
|
+
this.store = /* @__PURE__ */ new Map(), this.maxSize = e, this.isExpired = !1, this.expiredTimer = null;
|
|
4
|
+
}
|
|
5
|
+
changeMaxSize(e) {
|
|
6
|
+
this.maxSize = e;
|
|
7
|
+
}
|
|
8
|
+
expireCheck() {
|
|
9
|
+
this.isExpired && (clearTimeout(this.expiredTimer), this.expiredTimer = setTimeout(() => {
|
|
10
|
+
this.isExpired = !1;
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
has(e) {
|
|
14
|
+
return this.expireCheck(), this.store.has(e);
|
|
15
|
+
}
|
|
16
|
+
get(e) {
|
|
17
|
+
if (this.expireCheck(), !this.has(e))
|
|
18
|
+
return null;
|
|
19
|
+
const s = this.store.get(e);
|
|
20
|
+
return this.store.delete(e), this.store.set(e, s), s;
|
|
21
|
+
}
|
|
22
|
+
set(e, s) {
|
|
23
|
+
if (this.expireCheck(), !this.isExpired) {
|
|
24
|
+
if (this.has(e))
|
|
25
|
+
this.store.delete(e);
|
|
26
|
+
else if (this.store.size >= this.maxSize) {
|
|
27
|
+
const t = this.store.keys().next().value;
|
|
28
|
+
t && this.store.delete(t);
|
|
29
|
+
}
|
|
30
|
+
Array.isArray(s) && (s = new Map(s)), this.store.set(e, s);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
del(e) {
|
|
34
|
+
this.isExpired = !0, this.store.delete(e);
|
|
35
|
+
}
|
|
36
|
+
clear() {
|
|
37
|
+
this.store.clear();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
r as LruCacher,
|
|
42
|
+
r as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { CacheInterface, PropertyKeyType } from './interface';
|
|
3
|
+
type DataModel = {
|
|
4
|
+
getter: (key?: string) => Promise<any>;
|
|
5
|
+
setter: (key: string, data: any) => Promise<any>;
|
|
6
|
+
has: (key?: string) => Promise<any>;
|
|
7
|
+
};
|
|
8
|
+
export declare const useApKeepAliveProvide: (cache: CacheInterface, currentModuleKey: Ref<PropertyKeyType>) => void;
|
|
9
|
+
export declare const useApKeepAliveInject: () => DataModel;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { provide as v, nextTick as i, inject as o } from "vue";
|
|
2
|
+
const a = Symbol("ApKeepAliveProvideKey"), f = (s, r) => {
|
|
3
|
+
v(a, {
|
|
4
|
+
getter: async (e) => {
|
|
5
|
+
await i();
|
|
6
|
+
const t = s.get(r.value);
|
|
7
|
+
return t ? e ? t == null ? void 0 : t.get(e) : Object.fromEntries(t) : {};
|
|
8
|
+
},
|
|
9
|
+
setter: async (e, t) => {
|
|
10
|
+
await i();
|
|
11
|
+
let n = s.get(r.value);
|
|
12
|
+
return n || (n = /* @__PURE__ */ new Map(), s.set(r.value, n)), n == null ? void 0 : n.set(e, t);
|
|
13
|
+
},
|
|
14
|
+
has: async (e) => {
|
|
15
|
+
if (await i(), e) {
|
|
16
|
+
const t = s.get(r.value);
|
|
17
|
+
return !!(t != null && t.has(e));
|
|
18
|
+
}
|
|
19
|
+
return s.has(r.value);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}, l = () => o(a, {
|
|
23
|
+
getter: async () => {
|
|
24
|
+
},
|
|
25
|
+
setter: async () => {
|
|
26
|
+
},
|
|
27
|
+
has: async () => {
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
l as useApKeepAliveInject,
|
|
32
|
+
f as useApKeepAliveProvide
|
|
33
|
+
};
|