@aplus-frontend/ui 0.6.0-beta.9 → 0.6.1
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-button/ap-button.vue.mjs +1 -1
- 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 +13 -7
- package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
- package/es/src/ap-form/interface.d.ts +9 -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-sorter/index.vue2.mjs +4 -1
- 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 +4 -8
- package/es/src/ap-form/search-form/index.vue.mjs +63 -62
- 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 +18 -0
- package/es/src/ap-grid/hooks/use-table-style.mjs +28 -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 +24 -5
- 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/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 +51 -49
- 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/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/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-button/ap-button.vue.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 +13 -7
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +9 -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-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 +4 -8
- 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 +18 -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 +24 -5
- 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/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-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/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/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 -634
- 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 -37
- package/theme/antd-global-overwrite/admin/modal.less +20 -41
- 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 +94 -683
- 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 +19 -43
- package/theme/antd-global-overwrite/aplus/modal.less +20 -49
- 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 +3 -3
- package/theme/ap-action/item.css +21 -10
- package/theme/ap-action/item.less +18 -6
- package/theme/ap-appendix/ap-appendix.css +10 -10
- package/theme/ap-appendix/ap-appendix.less +6 -6
- package/theme/ap-attachment/ap-attachment.css +4 -4
- package/theme/ap-batch-action/ap-batch-action.css +6 -6
- package/theme/ap-batch-action/ap-batch-action.less +3 -3
- package/theme/ap-button/ap-button.css +3 -3
- package/theme/ap-card/ap-card.css +4 -4
- 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 +9 -7
- package/theme/ap-descriptions/ap-descriptions.less +6 -4
- package/theme/ap-download/ap-download.css +6 -6
- 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 +4 -3
- package/theme/ap-expand-alert/ap-expand-alert.less +2 -2
- package/theme/ap-field/checkbox.css +3 -3
- package/theme/ap-field/index.css +3 -3
- package/theme/ap-field/number.css +3 -3
- package/theme/ap-field/radio.css +3 -3
- package/theme/ap-field/text-area.css +3 -3
- package/theme/ap-form/ap-form-item-group.css +3 -3
- package/theme/ap-form/ap-form-item.css +11 -8
- package/theme/ap-form/ap-form-item.less +8 -5
- package/theme/ap-form/drawer-form.css +3 -3
- package/theme/ap-form/index.css +25 -20
- package/theme/ap-form/item-text-group.css +3 -3
- package/theme/ap-form/item-text.css +3 -3
- package/theme/ap-form/modal-form.css +3 -3
- package/theme/ap-form/search-form-sorter.css +14 -12
- package/theme/ap-form/search-form-sorter.less +7 -5
- package/theme/ap-form/search-form.css +25 -20
- package/theme/ap-form/search-form.less +3 -3
- package/theme/ap-grid/editable.css +3 -3
- package/theme/ap-grid/index.css +73 -40
- package/theme/ap-grid/index.less +26 -8
- package/theme/ap-group-search/ap-extension-select.css +3 -3
- package/theme/ap-group-search/ap-group-search.css +3 -3
- package/theme/ap-group-search/ap-popover-select.css +3 -3
- package/theme/ap-image/ap-image.css +3 -3
- package/theme/ap-input-radio/ap-input-radio.css +3 -3
- package/theme/ap-label/ap-label.css +3 -3
- package/theme/ap-ladder/ap-ladder.css +6 -6
- package/theme/ap-layout/ap-info-layout.css +3 -3
- package/theme/ap-list/index.css +3 -3
- package/theme/ap-product-info/ap-product-info.css +23 -33
- 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 +5 -5
- package/theme/ap-size-input/ap-size-input.css +3 -3
- package/theme/ap-status/ap-status.css +3 -3
- package/theme/ap-summary/index.css +3 -3
- package/theme/ap-table/ap-table-index.css +3 -3
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +4 -4
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +80 -47
- package/theme/ap-table/ap-table.less +19 -7
- package/theme/ap-table/setting/index.css +18 -12
- package/theme/ap-table/setting/modal.css +10 -5
- package/theme/ap-table/setting/modal.less +6 -1
- package/theme/ap-table/setting/select-group.css +3 -3
- package/theme/ap-table/setting/sortable-item-meta.css +5 -5
- package/theme/ap-table/setting/sortable-item-meta.less +2 -2
- package/theme/ap-table/setting/sortable-item.css +3 -3
- package/theme/ap-table/setting/sorter.css +9 -8
- package/theme/ap-table/setting/sorter.less +4 -4
- package/theme/ap-table-modal/index.css +95 -60
- package/theme/ap-table-modal/index.less +15 -13
- package/theme/ap-tag/ap-tag-group.css +3 -3
- package/theme/ap-tag/ap-tag.css +7 -7
- package/theme/ap-tag/ap-tag.less +1 -1
- package/theme/ap-title/ap-title.css +3 -3
- package/theme/ap-upload/index.css +4 -4
- package/theme/ap-upload/multiple-file.css +3 -3
- package/theme/ap-upload/picture.css +3 -3
- package/theme/ap-upload/single-file.css +4 -4
- package/theme/ap-upload/upload.css +3 -3
- package/theme/ap-upload-single/index.css +7 -7
- package/theme/ap-upload-single/index.less +4 -4
- package/theme/ap-view/ap-view.css +10 -10
- package/theme/ap-view/ap-view.less +7 -7
- package/theme/batch-input-group/index.css +5 -5
- package/theme/batch-input-group/popover-input.css +5 -5
- package/theme/batch-input-group/popover-input.less +2 -2
- package/theme/check-card/index.css +11 -11
- package/theme/check-card/index.less +5 -5
- package/theme/editable-table/index.css +43 -27
- package/theme/full-screen/index.css +3 -3
- package/theme/index.css +350 -245
- package/theme/index.less +3 -0
- package/theme/mask/index.css +3 -3
- package/theme/mixins/config.less +3 -3
- package/theme/mixins/mixins.css +3 -3
- package/theme/mixins/mixins.less +2 -2
- package/theme/scroll-bar/index.css +3 -3
- package/theme/scroll-view/index.css +3 -3
- package/theme/splitter/index.css +7 -7
- package/theme/splitter/index.less +1 -1
- package/theme/text/group.css +3 -3
- package/theme/text/index.css +8 -8
- package/theme/text/index.less +4 -4
- package/theme/ui-mode.css +53 -83
- package/theme/ui-mode.less +103 -83
- package/theme/work-order-modal/index.css +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApColumnType, ValueEnum, ValueEnumType } from './interface';
|
|
2
2
|
import { ValueTypeRenderConfig } from '../config-provider';
|
|
3
3
|
import { apTableRenderItemMap } from './constants';
|
|
4
|
-
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties,
|
|
4
|
+
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ExtractPropTypes, PropType, CSSProperties, VNodeArrayChildren, RendererNode, RendererElement } from 'vue';
|
|
5
5
|
import { EditableColumnType } from '../editable-table/interface';
|
|
6
6
|
import { ColumnType, ColumnGroupType } from '@aplus-frontend/antdv/es/table';
|
|
7
7
|
import { ApTableDynamicCompProps } from './components/interface';
|
|
@@ -534,7 +534,7 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
534
534
|
}>, {
|
|
535
535
|
focus: (options?: InputFocusOptions) => void;
|
|
536
536
|
blur: () => void;
|
|
537
|
-
resizableTextArea:
|
|
537
|
+
resizableTextArea: any;
|
|
538
538
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
539
539
|
"update:value": (...args: any[]) => void;
|
|
540
540
|
}, PublicProps, {
|
|
@@ -816,7 +816,7 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
816
816
|
}>, {
|
|
817
817
|
focus: (options?: InputFocusOptions) => void;
|
|
818
818
|
blur: () => void;
|
|
819
|
-
resizableTextArea:
|
|
819
|
+
resizableTextArea: any;
|
|
820
820
|
}, {}, {}, {}, {
|
|
821
821
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
822
822
|
mode: FieldMode;
|
|
@@ -863,13 +863,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
863
863
|
field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
|
|
864
864
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
865
865
|
$slots: Readonly<{
|
|
866
|
-
label
|
|
867
|
-
help
|
|
868
|
-
extra
|
|
866
|
+
label?: any;
|
|
867
|
+
help?: any;
|
|
868
|
+
extra?: any;
|
|
869
869
|
}> & {
|
|
870
|
-
label
|
|
871
|
-
help
|
|
872
|
-
extra
|
|
870
|
+
label?: any;
|
|
871
|
+
help?: any;
|
|
872
|
+
extra?: any;
|
|
873
873
|
};
|
|
874
874
|
})) | ({
|
|
875
875
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemNumberProps> & Readonly<{}>, {
|
|
@@ -1681,13 +1681,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
1681
1681
|
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
|
|
1682
1682
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1683
1683
|
$slots: Readonly<{
|
|
1684
|
-
label
|
|
1685
|
-
help
|
|
1686
|
-
extra
|
|
1684
|
+
label?: any;
|
|
1685
|
+
help?: any;
|
|
1686
|
+
extra?: any;
|
|
1687
1687
|
}> & {
|
|
1688
|
-
label
|
|
1689
|
-
help
|
|
1690
|
-
extra
|
|
1688
|
+
label?: any;
|
|
1689
|
+
help?: any;
|
|
1690
|
+
extra?: any;
|
|
1691
1691
|
};
|
|
1692
1692
|
})) | ({
|
|
1693
1693
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemSelectProps> & Readonly<{}>, {
|
|
@@ -2467,13 +2467,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
2467
2467
|
field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
|
|
2468
2468
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2469
2469
|
$slots: Readonly<{
|
|
2470
|
-
label
|
|
2471
|
-
help
|
|
2472
|
-
extra
|
|
2470
|
+
label?: any;
|
|
2471
|
+
help?: any;
|
|
2472
|
+
extra?: any;
|
|
2473
2473
|
}> & {
|
|
2474
|
-
label
|
|
2475
|
-
help
|
|
2476
|
-
extra
|
|
2474
|
+
label?: any;
|
|
2475
|
+
help?: any;
|
|
2476
|
+
extra?: any;
|
|
2477
2477
|
};
|
|
2478
2478
|
})) | ({
|
|
2479
2479
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemTreeSelectProps> & Readonly<{}>, {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { ApCardProps } from './interface';
|
|
1
|
+
import { ApCardSlots, ApCardProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
5
|
-
slots:
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
};
|
|
5
|
+
slots: Readonly<ApCardSlots> & ApCardSlots;
|
|
8
6
|
refs: {};
|
|
9
7
|
rootEl: HTMLDivElement;
|
|
10
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../ap-title/ApTitle.vue.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../ap-title/ApTitle.vue.js");const x=require("lodash-unified");require("../../config-provider/index.js");const k=require("../../config-provider/hooks/use-namespace.js"),y=require("../ap-title/ApTitle.vue2.js"),P={key:2},p={key:2},_=e.defineComponent({__name:"ApCard",props:{titleProps:{},padding:{}},setup(f){const t=f,i=e.useSlots(),{b:c}=k.useNamespace("ap-card"),d=e.computed(()=>x.omit((t==null?void 0:t.titleProps)||{},["prefix","suffix"])),u=e.computed(()=>{var l;return(l=Object.keys((t==null?void 0:t.titleProps)||{}))==null?void 0:l.length}),m=e.computed(()=>t.padding??(u.value?"12px 14px 14px":"12px 14px"));return(l,v)=>{var a,s;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c)()]),style:e.normalizeStyle({padding:m.value})},[u.value||i!=null&&i.titlePrefix||i!=null&&i.titleSuffix?(e.openBlock(),e.createBlock(y.default,e.mergeProps({key:0,class:[`${e.unref(c)()}-title`]},{...d.value}),e.createSlots({_:2},[(a=t==null?void 0:t.titleProps)!=null&&a.suffix?{name:"suffix",fn:e.withCtx(()=>{var n,o,r;return[i!=null&&i.titleSuffix?e.renderSlot(l.$slots,"titleSuffix",{key:0}):e.isVNode((n=t==null?void 0:t.titleProps)==null?void 0:n.suffix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((o=t==null?void 0:t.titleProps)==null?void 0:o.suffix),{key:1})):(e.openBlock(),e.createElementBlock("div",P,e.toDisplayString((r=t==null?void 0:t.titleProps)==null?void 0:r.suffix),1))]}),key:"0"}:void 0,(s=t==null?void 0:t.titleProps)!=null&&s.prefix?{name:"prefix",fn:e.withCtx(()=>{var n,o,r;return[i!=null&&i.titlePrefix?e.renderSlot(l.$slots,"titlePrefix",{key:0}):e.createCommentVNode("",!0),e.isVNode((n=t==null?void 0:t.titleProps)==null?void 0:n.prefix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((o=t==null?void 0:t.titleProps)==null?void 0:o.prefix),{key:1})):(e.openBlock(),e.createElementBlock("div",p,e.toDisplayString((r=t==null?void 0:t.titleProps)==null?void 0:r.prefix),1))]}),key:"1"}:void 0]),1040,["class"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default")],6)}}});exports.default=_;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
|
-
import { ApCardProps } from './interface';
|
|
2
|
+
import { ApCardProps, ApCardSlots } from './interface';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApCard: {
|
|
5
5
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
@@ -14,9 +14,7 @@ declare const ApCard: {
|
|
|
14
14
|
__isTeleport?: never;
|
|
15
15
|
__isSuspense?: never;
|
|
16
16
|
} & ComponentOptionsBase<Readonly< ApCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
17
|
-
$slots:
|
|
18
|
-
default?(_: {}): any;
|
|
19
|
-
};
|
|
17
|
+
$slots: Readonly< ApCardSlots> & ApCardSlots;
|
|
20
18
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
21
19
|
$props: {
|
|
22
20
|
onClick?: () => void;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, CSSProperties, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ApCopy } from './interface';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
text: {
|
|
5
|
+
type: PropType< ApCopy["text"]>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
type: PropType< ApCopy["size"]>;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
textStyle: {
|
|
13
|
+
type: PropType< ApCopy["textStyle"]>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
link: {
|
|
17
|
+
type: PropType< ApCopy["link"]>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
disableCopy: {
|
|
21
|
+
type: PropType< ApCopy["disableCopy"]>;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
25
|
+
text: {
|
|
26
|
+
type: PropType< ApCopy["text"]>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
size: {
|
|
30
|
+
type: PropType< ApCopy["size"]>;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
textStyle: {
|
|
34
|
+
type: PropType< ApCopy["textStyle"]>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
link: {
|
|
38
|
+
type: PropType< ApCopy["link"]>;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
disableCopy: {
|
|
42
|
+
type: PropType< ApCopy["disableCopy"]>;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{}>, {
|
|
46
|
+
size: number | undefined;
|
|
47
|
+
link: string | undefined;
|
|
48
|
+
text: string | undefined;
|
|
49
|
+
textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
|
|
50
|
+
disableCopy: boolean | undefined;
|
|
51
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),S=require("./constans.js"),T=require("@aplus-frontend/icon");require("../../config-provider/index.js");const y=require("@aplus-frontend/antdv"),f=require("lodash-unified"),b=require("../../config-provider/hooks/use-namespace.js"),h=require("../../config-provider/hooks/use-locale.js"),C=t.defineComponent({name:"CopyBtn",props:S.ApCopyProps(),setup(r,{slots:a}){const{b:p,e:u,m:x}=b.useNamespace("ap-copy"),{t:c}=h.useLocale(),g=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation(),navigator.clipboard.writeText(r.text||l()||"").then(()=>{y.message.success(c("ap.apCopy.copySuccess"))}).catch(()=>{y.message.error(c("ap.apCopy.copyError"))})},m=e=>{if(e.length===1){const n=e[0];if(n.type===t.Text||n.type.toString()==="Symbol(Text)"||t.isVNode(n)&&typeof n.children=="string")return!0}return!1},v=e=>{if(!e.length)return"";const n=e[0];return n.type===t.Text||n.type.toString()==="Symbol(Text)"?String(n.children):t.isVNode(n)&&typeof n.children=="string"?n.children:""},l=()=>{var d;const e=(d=a.default)==null?void 0:d.call(a);return e&&m(e)?v(e):null},s=e=>!(f.isNull(e)||f.isUndefined(e)||typeof e=="string"&&e===""),o=t.computed(()=>{if(typeof r.textStyle=="string")switch(r.textStyle){case"link":return"text-link";case"minor":return"text-minor";case"major":return"text-major";default:return"text-major"}else if(typeof r.textStyle=="object")return{...r.textStyle};return{}}),i=t.computed(()=>l()||r.text||"");return()=>t.createVNode(t.Fragment,null,[t.createVNode("div",{class:[p()]},[t.createVNode("div",{class:[u("text"),typeof o.value=="string"&&x(o.value)],style:typeof o.value!="string"&&o.value,title:typeof o.value=="string"?i.value:""},[s(i.value)?r.link?t.createVNode("a",{href:r.link,target:"_blank"},[i.value]):i.value:"--"]),s(i.value)&&!r.disableCopy&&t.createVNode("div",{class:[u("copy-btn"),"copy-btn"],onClick:r.disableCopy?void 0:g},[t.createVNode(T.IconApAdLineCopy,{size:r.size},null)])])])}});exports.default=C;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ApCopy } from './interface';
|
|
3
|
+
export declare const ApCopyProps: () => {
|
|
4
|
+
text: {
|
|
5
|
+
type: PropType<ApCopy["text"]>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
type: PropType<ApCopy["size"]>;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
textStyle: {
|
|
13
|
+
type: PropType<ApCopy["textStyle"]>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
link: {
|
|
17
|
+
type: PropType<ApCopy["link"]>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
disableCopy: {
|
|
21
|
+
type: PropType<ApCopy["disableCopy"]>;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({text:{type:String,default:""},size:{type:Number,default:14},textStyle:{type:[String,Object],default:"major"},link:{type:String,default:""},disableCopy:{type:Boolean,default:!1}});exports.ApCopyProps=e;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
|
+
import { ApCopy } from './interface';
|
|
3
|
+
export * from './interface';
|
|
4
|
+
declare const ApCopy: {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
6
|
+
text: {
|
|
7
|
+
type: PropType< ApCopy["text"]>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
type: PropType< ApCopy["size"]>;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
textStyle: {
|
|
15
|
+
type: PropType< ApCopy["textStyle"]>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
link: {
|
|
19
|
+
type: PropType< ApCopy["link"]>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
disableCopy: {
|
|
23
|
+
type: PropType< ApCopy["disableCopy"]>;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
27
|
+
size: number | undefined;
|
|
28
|
+
link: string | undefined;
|
|
29
|
+
text: string | undefined;
|
|
30
|
+
textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
|
|
31
|
+
disableCopy: boolean | undefined;
|
|
32
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
33
|
+
P: {};
|
|
34
|
+
B: {};
|
|
35
|
+
D: {};
|
|
36
|
+
C: {};
|
|
37
|
+
M: {};
|
|
38
|
+
Defaults: {};
|
|
39
|
+
}, Readonly< ExtractPropTypes<{
|
|
40
|
+
text: {
|
|
41
|
+
type: PropType< ApCopy["text"]>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
size: {
|
|
45
|
+
type: PropType< ApCopy["size"]>;
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
textStyle: {
|
|
49
|
+
type: PropType< ApCopy["textStyle"]>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
link: {
|
|
53
|
+
type: PropType< ApCopy["link"]>;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
disableCopy: {
|
|
57
|
+
type: PropType< ApCopy["disableCopy"]>;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
61
|
+
size: number | undefined;
|
|
62
|
+
link: string | undefined;
|
|
63
|
+
text: string | undefined;
|
|
64
|
+
textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
|
|
65
|
+
disableCopy: boolean | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
__isFragment?: never;
|
|
68
|
+
__isTeleport?: never;
|
|
69
|
+
__isSuspense?: never;
|
|
70
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
71
|
+
text: {
|
|
72
|
+
type: PropType< ApCopy["text"]>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
size: {
|
|
76
|
+
type: PropType< ApCopy["size"]>;
|
|
77
|
+
default: number;
|
|
78
|
+
};
|
|
79
|
+
textStyle: {
|
|
80
|
+
type: PropType< ApCopy["textStyle"]>;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
link: {
|
|
84
|
+
type: PropType< ApCopy["link"]>;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
disableCopy: {
|
|
88
|
+
type: PropType< ApCopy["disableCopy"]>;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
92
|
+
size: number | undefined;
|
|
93
|
+
link: string | undefined;
|
|
94
|
+
text: string | undefined;
|
|
95
|
+
textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
|
|
96
|
+
disableCopy: boolean | undefined;
|
|
97
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
98
|
+
$props: {
|
|
99
|
+
onClick?: () => void;
|
|
100
|
+
};
|
|
101
|
+
}));
|
|
102
|
+
export { ApCopy };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/utils"),t=require("./ApCopy.js");require("./interface.js");const o=e.withInstall(t.default);exports.ApCopy=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -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';
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),z=require("@ant-design/icons-vue"),h=require("@aplus-frontend/antdv"),N=require("../../ap-action/index.js");require("../../config-provider/index.js");const i=require("lodash-unified"),T=require("../../config-provider/hooks/use-locale.js"),$=require("../../config-provider/hooks/use-namespace.js"),q=require("../../config-provider/hooks/use-global-config.js"),A=["onClick"],D=e.defineComponent({__name:"ApExpandAlert",props:{type:{default:"warning"},data:{default:()=>[]},prefix:{default:""},tipTitle:{default:""},mapLabel:{},separator:{default:"|"},separatorStyle:{default:()=>({})},contentStyle:{default:()=>({})},prefixStyle:{default:()=>({})},rows:{default:2},defaultExpand:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0}},emits:["choose","expand"],setup(g,{expose:v,emit:B}){const f=B,r=g,{t:m}=T.useLocale(),S=e.computed(()=>{if(r.type!="card")return r.type}),l=e.ref(""),s=e.ref(null),w=e.computed(()=>({fontWeight:"400",wordBreak:"break-all",overflow:"hidden",display:"-webkit-box",webkitLineClamp:l.value,webkitBoxOrient:"vertical",lineHeight:"18px"}));function C(){l.value==="1"?(l.value="",f("expand","expand")):(l.value="1",f("expand","collapse"))}const x=e.computed(()=>l.value==="1"?m("ap.apExpandAlert.expand"):m("ap.apExpandAlert.collapse")),u=e.ref(!0),y=e.computed(()=>l.value!=="1");function c(t){t?l.value="":l.value="1"}e.watch(()=>r.data,()=>{l.value="",e.nextTick(()=>{if(s.value){const t=Number(s.value.clientHeight),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),z=require("@ant-design/icons-vue"),h=require("@aplus-frontend/antdv"),N=require("../../ap-action/index.js");require("../../config-provider/index.js");const i=require("lodash-unified"),T=require("../../config-provider/hooks/use-locale.js"),$=require("../../config-provider/hooks/use-namespace.js"),q=require("../../config-provider/hooks/use-global-config.js"),A=["onClick"],D=e.defineComponent({__name:"ApExpandAlert",props:{type:{default:"warning"},data:{default:()=>[]},prefix:{default:""},tipTitle:{default:""},mapLabel:{},separator:{default:"|"},separatorStyle:{default:()=>({})},contentStyle:{default:()=>({})},prefixStyle:{default:()=>({})},rows:{default:2},defaultExpand:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0}},emits:["choose","expand"],setup(g,{expose:v,emit:B}){const f=B,r=g,{t:m}=T.useLocale(),S=e.computed(()=>{if(r.type!="card")return r.type}),l=e.ref(""),s=e.ref(null),w=e.computed(()=>({fontWeight:"400",wordBreak:"break-all",overflow:"hidden",display:"-webkit-box",webkitLineClamp:l.value,webkitBoxOrient:"vertical",lineHeight:"18px"}));function C(){l.value==="1"?(l.value="",f("expand","expand")):(l.value="1",f("expand","collapse"))}const x=e.computed(()=>l.value==="1"?m("ap.apExpandAlert.expand"):m("ap.apExpandAlert.collapse")),u=e.ref(!0),y=e.computed(()=>l.value!=="1");function c(t){t?l.value="":l.value="1"}e.watch(()=>r.data,()=>{l.value="",e.nextTick(()=>{if(s.value){const t=Number(s.value.clientHeight),o=Number(parseInt(s.value.style.lineHeight));t<o*Number(r.rows)&&y.value?u.value=!1:u.value=!0}})},{immediate:!0}),e.watch(()=>r.defaultExpand,t=>{t?e.nextTick(()=>{c(t)}):e.nextTick(()=>{c(t)})},{immediate:!0}),e.onMounted(()=>{e.watch(()=>r.contentStyle,t=>{i.isNil(t.lineHeight)||e.nextTick(()=>{const o=document.querySelector(`#${p} .ant-alert-action`),a=document.querySelector(`#${p} .ant-alert-icon`);o&&o.setAttribute("style",`line-height: ${t.lineHeight}`),a&&a.setAttribute("style",`line-height: ${t.lineHeight}`)})},{deep:!0,immediate:!0,flush:"post"})});const{b:k,e:n,m:E}=$.useNamespace("ap-expand-alert"),p=`${k()}-key-${Date.now()}-${(Math.random()*1e6).toFixed(0)}`,b=q.useGlobalConfig("uiMode","aplus");return v({setExpand:c}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{id:p,class:e.normalizeClass([e.unref(k)(),`${e.unref(E)(e.unref(b))}`])},[e.createVNode(e.unref(h.Alert),{type:S.value,"show-icon":t.showIcon,class:e.normalizeClass([e.unref(n)("antAlert"),t.type=="card"?"card-alert":""])},{action:e.withCtx(()=>[u.value?(e.openBlock(),e.createBlock(e.unref(N.ApActionItem),{key:0,size:"small",style:{"font-size":"12px","padding-left":"16px"},onClick:o[0]||(o[0]=a=>C())},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("expandText"))},e.toDisplayString(x.value),3),e.createVNode(e.unref(z.DownOutlined),{class:e.normalizeClass(y.value?e.unref(n)("expandIcon"):e.unref(n)("collapseIcon"))},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)]),message:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"ellipsisBoxRef",ref:s,style:e.normalizeStyle({...w.value,...t.contentStyle}),class:e.normalizeClass(e.unref(n)("alertContent"))},[e.renderSlot(t.$slots,"default",{},()=>[e.unref(i.isString)(t.prefix)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n)("prefix")),style:e.normalizeStyle(t.prefixStyle)},e.toDisplayString(t.prefix),7)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.prefix),{key:1,style:e.normalizeStyle(t.prefixStyle)},null,8,["style"])),e.unref(i.isString)(t.data)?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(n)("text"))},e.toDisplayString(t.data),3)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(t.data,(a,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[e.createVNode(e.unref(h.Tooltip),{title:t.tipTitle?t.tipTitle:null},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"item",{record:a,index:d},()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("showItem")),onClick:V=>t.$emit("choose",a)},e.toDisplayString(t.mapLabel?a[t.mapLabel]:a),11,A)])]),_:2},1032,["title"]),d!==t.data.length-1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n)("spliter")),style:e.normalizeStyle(t.separatorStyle)},[e.unref(i.isString)(t.separator)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.separator),1)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.separator),{key:1}))],6)):e.createCommentVNode("",!0)],64))),128))])],6)]),_:3},8,["type","show-icon","class"])],2))}});exports.default=D;
|
|
@@ -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 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});class i{constructor(e=50){this.store=new Map,this.maxSize=e,this.isExpired=!1,this.expiredTimer=null}changeMaxSize(e){this.maxSize=e}expireCheck(){this.isExpired&&(clearTimeout(this.expiredTimer),this.expiredTimer=setTimeout(()=>{this.isExpired=!1}))}has(e){return this.expireCheck(),this.store.has(e)}get(e){if(this.expireCheck(),!this.has(e))return null;const t=this.store.get(e);return this.store.delete(e),this.store.set(e,t),t}set(e,t){if(this.expireCheck(),!this.isExpired){if(this.has(e))this.store.delete(e);else if(this.store.size>=this.maxSize){const s=this.store.keys().next().value;s&&this.store.delete(s)}Array.isArray(t)&&(t=new Map(t)),this.store.set(e,t)}}del(e){this.isExpired=!0,this.store.delete(e)}clear(){this.store.clear()}}exports.LruCacher=i;exports.default=i;
|
|
@@ -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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),a=Symbol("ApKeepAliveProvideKey"),v=(s,n)=>{r.provide(a,{getter:async t=>{await r.nextTick();const e=s.get(n.value);return e?t?e==null?void 0:e.get(t):Object.fromEntries(e):{}},setter:async(t,e)=>{await r.nextTick();let i=s.get(n.value);return i||(i=new Map,s.set(n.value,i)),i==null?void 0:i.set(t,e)},has:async t=>{if(await r.nextTick(),t){const e=s.get(n.value);return!!(e!=null&&e.has(t))}return s.has(n.value)}})},o=()=>r.inject(a,{getter:async()=>{},setter:async()=>{},has:async()=>{}});exports.useApKeepAliveInject=o;exports.useApKeepAliveProvide=v;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { LruCacher } from './cacher/lru-cacher';
|
|
2
|
+
import { useApKeepAliveInject } from './hook';
|
|
3
|
+
import { matches as isNameMatches } from './utils';
|
|
4
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
5
|
+
import { CacheInterface, MatchPattern } from './interface';
|
|
6
|
+
export * from './interface';
|
|
7
|
+
declare const ApKeepAlive: {
|
|
8
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
9
|
+
store: {
|
|
10
|
+
type: PropType<CacheInterface>;
|
|
11
|
+
};
|
|
12
|
+
debug: {
|
|
13
|
+
type: PropType<boolean>;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
max: {
|
|
17
|
+
type: PropType<number>;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
exclude: {
|
|
21
|
+
type: PropType<MatchPattern>;
|
|
22
|
+
};
|
|
23
|
+
include: {
|
|
24
|
+
type: PropType<MatchPattern>;
|
|
25
|
+
};
|
|
26
|
+
stopTags: {
|
|
27
|
+
type: PropType<string[]>;
|
|
28
|
+
default: () => never[];
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{}>, () => VNode<RendererNode, RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>[] | undefined, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
33
|
+
max: number;
|
|
34
|
+
debug: boolean;
|
|
35
|
+
stopTags: string[];
|
|
36
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
37
|
+
P: {};
|
|
38
|
+
B: {};
|
|
39
|
+
D: {};
|
|
40
|
+
C: {};
|
|
41
|
+
M: {};
|
|
42
|
+
Defaults: {};
|
|
43
|
+
}, Readonly< ExtractPropTypes<{
|
|
44
|
+
store: {
|
|
45
|
+
type: PropType<CacheInterface>;
|
|
46
|
+
};
|
|
47
|
+
debug: {
|
|
48
|
+
type: PropType<boolean>;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
max: {
|
|
52
|
+
type: PropType<number>;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
exclude: {
|
|
56
|
+
type: PropType<MatchPattern>;
|
|
57
|
+
};
|
|
58
|
+
include: {
|
|
59
|
+
type: PropType<MatchPattern>;
|
|
60
|
+
};
|
|
61
|
+
stopTags: {
|
|
62
|
+
type: PropType<string[]>;
|
|
63
|
+
default: () => never[];
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{}>, () => VNode<RendererNode, RendererElement, {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}>[] | undefined, {}, {}, {}, {
|
|
68
|
+
max: number;
|
|
69
|
+
debug: boolean;
|
|
70
|
+
stopTags: string[];
|
|
71
|
+
}>;
|
|
72
|
+
__isFragment?: never;
|
|
73
|
+
__isTeleport?: never;
|
|
74
|
+
__isSuspense?: never;
|
|
75
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
76
|
+
store: {
|
|
77
|
+
type: PropType<CacheInterface>;
|
|
78
|
+
};
|
|
79
|
+
debug: {
|
|
80
|
+
type: PropType<boolean>;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
max: {
|
|
84
|
+
type: PropType<number>;
|
|
85
|
+
default: number;
|
|
86
|
+
};
|
|
87
|
+
exclude: {
|
|
88
|
+
type: PropType<MatchPattern>;
|
|
89
|
+
};
|
|
90
|
+
include: {
|
|
91
|
+
type: PropType<MatchPattern>;
|
|
92
|
+
};
|
|
93
|
+
stopTags: {
|
|
94
|
+
type: PropType<string[]>;
|
|
95
|
+
default: () => never[];
|
|
96
|
+
};
|
|
97
|
+
}>> & Readonly<{}>, () => VNode<RendererNode, RendererElement, {
|
|
98
|
+
[key: string]: any;
|
|
99
|
+
}>[] | undefined, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
100
|
+
max: number;
|
|
101
|
+
debug: boolean;
|
|
102
|
+
stopTags: string[];
|
|
103
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
104
|
+
$props: {
|
|
105
|
+
onClick?: () => void;
|
|
106
|
+
};
|
|
107
|
+
}));
|
|
108
|
+
export { ApKeepAlive, LruCacher, useApKeepAliveInject, isNameMatches };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@aplus-frontend/utils"),t=require("./keep-alive.js"),i=require("./cacher/lru-cacher.js"),s=require("./hook.js"),c=require("./utils.js"),e=require("./interface.js"),o=r.withInstall(t.default);exports.LruCacher=i.LruCacher;exports.useApKeepAliveInject=s.useApKeepAliveInject;exports.isNameMatches=c.matches;exports.ApKeepAliveProps=e.ApKeepAliveProps;exports.forceStopTags=e.forceStopTags;exports.ApKeepAlive=o;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Recordable } from '../../type';
|
|
3
|
+
export type PropertyKeyType = PropertyKey;
|
|
4
|
+
export interface CacheInterface {
|
|
5
|
+
get: (key: PropertyKeyType) => any;
|
|
6
|
+
set: (key: PropertyKeyType, data: any) => any;
|
|
7
|
+
has: (key: PropertyKeyType) => boolean;
|
|
8
|
+
del: (key: PropertyKeyType) => any;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export type cacheDataArrType = [string, Recordable<any>][];
|
|
12
|
+
export type MatchPattern = string | RegExp | (string | RegExp)[];
|
|
13
|
+
export declare const ApKeepAliveProps: () => {
|
|
14
|
+
store: {
|
|
15
|
+
type: PropType<CacheInterface>;
|
|
16
|
+
};
|
|
17
|
+
debug: {
|
|
18
|
+
type: PropType<boolean>;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
max: {
|
|
22
|
+
type: PropType<number>;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
exclude: {
|
|
26
|
+
type: PropType<MatchPattern>;
|
|
27
|
+
};
|
|
28
|
+
include: {
|
|
29
|
+
type: PropType<MatchPattern>;
|
|
30
|
+
};
|
|
31
|
+
stopTags: {
|
|
32
|
+
type: PropType<string[]>;
|
|
33
|
+
default: () => never[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const forceStopTags: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({store:{type:Object},debug:{type:Boolean,default:!1},max:{type:Number,default:30},exclude:{type:Array},include:{type:Array},stopTags:{type:Array,default:()=>[]}}),t=["ATable","ApKeepAlive","EditableTable","EditableTableInner","ApFormSearchForm","VxeTable","RouterView","APagination","ApTablePagination","ApView","ApTitle","span","svg","iframe","ApTableSetting","ApDescriptions","ApList","ApTable","ApGrid","ApBatchActionGroup","ApBatchAction","EditableGrid","AFormItem"];exports.ApKeepAliveProps=e;exports.forceStopTags=t;
|