@aplus-frontend/ui 7.5.0 → 7.7.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 +200 -198
- package/es/src/ag-grid/editable/form-item.vue.mjs +14 -14
- package/es/src/ag-grid/editable/index.vue.mjs +20 -20
- package/es/src/ag-grid/hooks/use-columns-def.mjs +32 -31
- package/es/src/ag-grid/hooks/use-editable-api.mjs +9 -8
- package/es/src/ag-grid/hooks/use-editable-columns.mjs +26 -25
- package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +11 -10
- package/es/src/ag-grid/index.vue.mjs +37 -36
- package/es/src/ag-grid/renderer/number.mjs +7 -7
- package/es/src/ag-grid/style/custom-header.mjs +3 -3
- package/es/src/ag-grid/style/index.mjs +1 -1
- package/es/src/ap-action/style/index.mjs +1 -1
- package/es/src/ap-drawer/style/index.mjs +12 -12
- package/es/src/ap-field/date/index.vue.mjs +14 -14
- package/es/src/ap-field/date/read.vue2.mjs +3 -3
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/date-range/read.vue2.mjs +3 -3
- package/es/src/ap-field/hooks/use-default-placeholder.mjs +5 -4
- package/es/src/ap-field/number/helper.mjs +1 -1
- package/es/src/ap-field/number/index.vue.mjs +9 -9
- package/es/src/ap-field/number/read.vue2.mjs +5 -5
- package/es/src/ap-field/style/checkbox.d.ts +2 -2
- package/es/src/ap-field/style/number.d.ts +2 -2
- package/es/src/ap-field/style/radio.d.ts +2 -2
- package/es/src/ap-field/style/textarea.d.ts +2 -2
- package/es/src/ap-field/switch/index.vue.mjs +4 -3
- package/es/src/ap-form/ap-form.vue2.mjs +18 -17
- package/es/src/ap-form/item/index.vue.mjs +6 -6
- package/es/src/ap-form/item-group/helper.mjs +8 -7
- package/es/src/ap-form/item-group/index.vue.mjs +15 -14
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +24 -22
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +9 -8
- package/es/src/ap-form/search-form/index.vue.mjs +12 -11
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-form/style/item.mjs +15 -15
- package/es/src/ap-form/style/modal-form.mjs +2 -1
- package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
- package/es/src/ap-form/style/search-form.d.ts +7 -1
- package/es/src/ap-form/style/search-form.mjs +37 -34
- package/es/src/ap-grid/editable/form-item.vue.mjs +11 -10
- package/es/src/ap-grid/editable/index.vue.mjs +42 -41
- package/es/src/ap-grid/index.vue.mjs +14 -13
- package/es/src/ap-grid/style/editable.mjs +7 -7
- package/es/src/ap-grid/style/index.mjs +11 -11
- package/es/src/ap-grid/utils/table.mjs +14 -13
- package/es/src/ap-list/hooks/use-offline-list.d.ts +2 -2
- package/es/src/ap-list/hooks/use-offline-list.mjs +13 -12
- package/es/src/ap-list/style/index.mjs +1 -1
- package/es/src/ap-pro-card/style/divider.mjs +2 -2
- package/es/src/ap-pro-card/style/index.mjs +14 -14
- package/es/src/ap-pro-card/style/operation.mjs +1 -2
- package/es/src/ap-pro-card/style/statistic.mjs +12 -12
- package/es/src/ap-pro-card/style/statistics-card.mjs +13 -13
- package/es/src/ap-pro-card/style/title.mjs +13 -33
- package/es/src/ap-table/ap-table.vue2.mjs +4 -3
- package/es/src/ap-table/constants.d.ts +5 -5
- package/es/src/ap-table/hooks/use-table-column-state.mjs +23 -22
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +4 -3
- package/es/src/ap-table/style/index-comp.d.ts +2 -1
- package/es/src/ap-table/style/index-comp.mjs +15 -12
- package/es/src/ap-table/style/index.d.ts +3 -0
- package/es/src/ap-table/style/index.mjs +14 -11
- package/es/src/ap-table/style/setting.d.ts +2 -1
- package/es/src/ap-table/style/setting.mjs +73 -61
- package/es/src/ap-table/utils.mjs +61 -62
- package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +15 -15
- package/es/src/business/ag-grid-modal/style/index.d.ts +3 -0
- package/es/src/business/ag-grid-modal/style/index.mjs +24 -20
- package/es/src/business/ag-grid-modal/style/selected-items.mjs +8 -8
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +26 -27
- package/es/src/business/ap-appendix/style/index.mjs +20 -21
- package/es/src/business/ap-attachment/style/index.d.ts +6 -0
- package/es/src/business/ap-attachment/style/index.mjs +28 -25
- package/es/src/business/ap-batch-action/style/index.d.ts +2 -2
- package/es/src/business/ap-batch-action/style/index.mjs +18 -18
- package/es/src/business/ap-card/style/index.d.ts +2 -2
- package/es/src/business/ap-card/style/index.mjs +8 -8
- package/es/src/business/ap-copy/style/index.mjs +16 -22
- package/es/src/business/ap-descriptions/formatter/index.mjs +1 -1
- package/es/src/business/ap-descriptions/style/index.mjs +8 -6
- package/es/src/business/ap-download/style/index.mjs +4 -4
- package/es/src/business/ap-draggable-grid/style/index.mjs +7 -7
- package/es/src/business/ap-expand-alert/style/index.mjs +30 -26
- package/es/src/business/ap-image/style/index.d.ts +2 -2
- package/es/src/business/ap-image/style/index.mjs +8 -7
- package/es/src/business/ap-input-radio/style/index.mjs +1 -1
- package/es/src/business/ap-label/style/index.d.ts +14 -0
- package/es/src/business/ap-label/style/index.mjs +29 -19
- package/es/src/business/ap-ladder/style/index.mjs +7 -6
- package/es/src/business/ap-product-info/style/index.d.ts +10 -0
- package/es/src/business/ap-product-info/style/index.mjs +35 -28
- package/es/src/business/ap-radio-group/style/index.mjs +3 -3
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +6 -6
- package/es/src/business/ap-select-layout/style/index.d.ts +6 -0
- package/es/src/business/ap-select-layout/style/index.mjs +59 -53
- package/es/src/business/ap-size-input/style/index.mjs +3 -3
- package/es/src/business/ap-status/style/index.mjs +1 -1
- package/es/src/business/ap-summary/style/index.d.ts +10 -0
- package/es/src/business/ap-summary/style/index.mjs +18 -11
- package/es/src/business/ap-table-modal/style/index.d.ts +11 -1
- package/es/src/business/ap-table-modal/style/index.mjs +17 -12
- package/es/src/business/ap-tag/ap-tag-group.vue.mjs +2 -2
- package/es/src/business/ap-tag/style/index.mjs +33 -31
- package/es/src/business/ap-title/style/index.d.ts +2 -1
- package/es/src/business/ap-title/style/index.mjs +41 -49
- package/es/src/business/ap-upload/style/index.mjs +10 -5
- package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -2
- package/es/src/business/ap-upload/style/multiple-file.mjs +8 -7
- package/es/src/business/ap-upload/style/picture.d.ts +3 -2
- package/es/src/business/ap-upload/style/picture.mjs +26 -26
- package/es/src/business/ap-upload/style/single-file.d.ts +3 -2
- package/es/src/business/ap-upload/style/single-file.mjs +30 -29
- package/es/src/business/ap-upload/style/token.d.ts +19 -0
- package/es/src/business/ap-upload/style/token.mjs +9 -0
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +51 -42
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-value-select-card/style/index.mjs +45 -43
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +14 -14
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +35 -34
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
- package/es/src/business/ap-view/style/index.d.ts +6 -2
- package/es/src/business/ap-view/style/index.mjs +43 -35
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.mjs +23 -22
- package/es/src/business/batch-input-group/style/index.mjs +2 -2
- package/es/src/check-card/style/index.mjs +17 -17
- package/es/src/design-token/constants.mjs +9 -1
- package/es/src/design-token/interface.d.ts +139 -12
- package/es/src/editable-table/form-item.vue.mjs +4 -3
- package/es/src/editable-table/index.vue.mjs +4 -3
- package/es/src/editable-table/style/index.mjs +11 -11
- package/es/src/editable-table/utils.d.ts +1 -1
- package/es/src/editable-table/utils.mjs +27 -26
- package/es/src/highlight/index.d.ts +3 -0
- package/es/src/highlight/index.mjs +2 -0
- package/es/src/highlight/index.vue.d.ts +31 -0
- package/es/src/highlight/index.vue.mjs +49 -0
- package/es/src/highlight/index.vue2.mjs +4 -0
- package/es/src/highlight/interface.d.ts +14 -0
- package/es/src/highlight/interface.mjs +1 -0
- package/es/src/highlight/style/index.d.ts +8 -0
- package/es/src/highlight/style/index.mjs +23 -0
- package/es/src/hooks/useMessage.mjs +4 -4
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +296 -293
- package/es/src/loading-bar/index.vue2.mjs +4 -3
- package/es/src/loading-bar/style/index.mjs +10 -10
- package/es/src/scroll-view/hooks/use-scroll-smooth.mjs +10 -9
- package/es/src/scroll-view/index.vue.mjs +4 -3
- package/es/src/splitter/style/index.mjs +11 -11
- package/es/src/text/index.vue.mjs +8 -7
- package/es/src/time-ago/index.vue.mjs +17 -16
- package/es/src/time-ago/useTimeAgo.mjs +31 -30
- package/es/src/utils/cssinjs/TokenUtil.d.ts +1 -0
- package/es/src/utils/cssinjs/TokenUtil.mjs +3 -0
- package/es/src/utils/decimal.d.ts +36 -0
- package/es/src/utils/decimal.mjs +45 -0
- package/es/src/utils/format.d.ts +21 -0
- package/es/src/utils/format.mjs +32 -0
- package/es/src/utils/index.d.ts +2 -1
- package/es/src/utils/index.mjs +20 -22
- package/es/src/utils/is.d.ts +54 -0
- package/es/src/utils/is.mjs +26 -0
- package/es/src/utils/slot.mjs +1 -2
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/renderer/number.js +1 -1
- package/lib/src/ag-grid/style/custom-header.js +1 -1
- package/lib/src/ag-grid/style/index.js +1 -1
- package/lib/src/ap-action/style/index.js +1 -1
- package/lib/src/ap-drawer/style/index.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/number/read.vue2.js +1 -1
- package/lib/src/ap-field/style/checkbox.d.ts +2 -2
- package/lib/src/ap-field/style/number.d.ts +2 -2
- package/lib/src/ap-field/style/radio.d.ts +2 -2
- package/lib/src/ap-field/style/textarea.d.ts +2 -2
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/helper.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
- 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-sorter.js +1 -1
- 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-form/style/item.js +1 -1
- package/lib/src/ap-form/style/modal-form.js +1 -1
- package/lib/src/ap-form/style/search-form-sorter.js +1 -1
- package/lib/src/ap-form/style/search-form.d.ts +7 -1
- package/lib/src/ap-form/style/search-form.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/index.vue.js +1 -1
- package/lib/src/ap-grid/style/editable.js +1 -1
- package/lib/src/ap-grid/style/index.js +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/hooks/use-offline-list.d.ts +2 -2
- package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
- package/lib/src/ap-list/style/index.js +1 -1
- package/lib/src/ap-pro-card/style/divider.js +1 -1
- package/lib/src/ap-pro-card/style/index.js +1 -1
- package/lib/src/ap-pro-card/style/operation.js +1 -1
- package/lib/src/ap-pro-card/style/statistic.js +1 -1
- package/lib/src/ap-pro-card/style/statistics-card.js +1 -1
- package/lib/src/ap-pro-card/style/title.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +5 -5
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/style/index-comp.d.ts +2 -1
- package/lib/src/ap-table/style/index-comp.js +1 -1
- package/lib/src/ap-table/style/index.d.ts +3 -0
- package/lib/src/ap-table/style/index.js +1 -1
- package/lib/src/ap-table/style/setting.d.ts +2 -1
- package/lib/src/ap-table/style/setting.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/style/index.d.ts +3 -0
- package/lib/src/business/ag-grid-modal/style/index.js +1 -1
- package/lib/src/business/ag-grid-modal/style/selected-items.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/style/index.js +1 -1
- package/lib/src/business/ap-attachment/style/index.d.ts +6 -0
- package/lib/src/business/ap-attachment/style/index.js +1 -1
- package/lib/src/business/ap-batch-action/style/index.d.ts +2 -2
- package/lib/src/business/ap-batch-action/style/index.js +1 -1
- package/lib/src/business/ap-card/style/index.d.ts +2 -2
- package/lib/src/business/ap-card/style/index.js +1 -1
- package/lib/src/business/ap-copy/style/index.js +1 -1
- package/lib/src/business/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/business/ap-descriptions/style/index.js +1 -1
- package/lib/src/business/ap-download/style/index.js +1 -1
- package/lib/src/business/ap-draggable-grid/style/index.js +1 -1
- package/lib/src/business/ap-expand-alert/style/index.js +1 -1
- package/lib/src/business/ap-image/style/index.d.ts +2 -2
- package/lib/src/business/ap-image/style/index.js +1 -1
- package/lib/src/business/ap-input-radio/style/index.js +1 -1
- package/lib/src/business/ap-label/style/index.d.ts +14 -0
- package/lib/src/business/ap-label/style/index.js +1 -1
- package/lib/src/business/ap-ladder/style/index.js +1 -1
- package/lib/src/business/ap-product-info/style/index.d.ts +10 -0
- package/lib/src/business/ap-product-info/style/index.js +1 -1
- package/lib/src/business/ap-radio-group/style/index.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-select-layout/style/index.d.ts +6 -0
- package/lib/src/business/ap-select-layout/style/index.js +1 -1
- package/lib/src/business/ap-size-input/style/index.js +1 -1
- package/lib/src/business/ap-status/style/index.js +1 -1
- package/lib/src/business/ap-summary/style/index.d.ts +10 -0
- package/lib/src/business/ap-summary/style/index.js +1 -1
- package/lib/src/business/ap-table-modal/style/index.d.ts +11 -1
- package/lib/src/business/ap-table-modal/style/index.js +1 -1
- package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-tag/style/index.js +1 -1
- package/lib/src/business/ap-title/style/index.d.ts +2 -1
- package/lib/src/business/ap-title/style/index.js +1 -1
- package/lib/src/business/ap-upload/style/index.js +1 -1
- package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -2
- package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
- package/lib/src/business/ap-upload/style/picture.d.ts +3 -2
- package/lib/src/business/ap-upload/style/picture.js +1 -1
- package/lib/src/business/ap-upload/style/single-file.d.ts +3 -2
- package/lib/src/business/ap-upload/style/single-file.js +1 -1
- package/lib/src/business/ap-upload/style/token.d.ts +19 -0
- package/lib/src/business/ap-upload/style/token.js +1 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.js +1 -1
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
- package/lib/src/business/ap-value-select-card/style/index.js +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.vue2.js +1 -1
- package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -1
- package/lib/src/business/ap-view/icons/line-down.vue.js +1 -1
- package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -1
- package/lib/src/business/ap-view/style/index.d.ts +6 -2
- package/lib/src/business/ap-view/style/index.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/style/index.js +1 -1
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/design-token/constants.js +1 -1
- package/lib/src/design-token/interface.d.ts +139 -12
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/style/index.js +1 -1
- package/lib/src/editable-table/utils.d.ts +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/highlight/index.d.ts +3 -0
- package/lib/src/highlight/index.js +1 -0
- package/lib/src/highlight/index.vue.d.ts +31 -0
- package/lib/src/highlight/index.vue.js +1 -0
- package/lib/src/highlight/index.vue2.js +1 -0
- package/lib/src/highlight/interface.d.ts +14 -0
- package/lib/src/highlight/interface.js +1 -0
- package/lib/src/highlight/style/index.d.ts +8 -0
- package/lib/src/highlight/style/index.js +1 -0
- package/lib/src/hooks/useMessage.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/loading-bar/index.vue2.js +1 -1
- package/lib/src/loading-bar/style/index.js +3 -3
- package/lib/src/scroll-view/hooks/use-scroll-smooth.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/splitter/style/index.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/time-ago/index.vue.js +1 -1
- package/lib/src/time-ago/useTimeAgo.js +1 -1
- package/lib/src/utils/cssinjs/TokenUtil.d.ts +1 -0
- package/lib/src/utils/cssinjs/TokenUtil.js +1 -1
- package/lib/src/utils/decimal.d.ts +36 -0
- package/lib/src/utils/decimal.js +1 -0
- package/lib/src/utils/format.d.ts +21 -0
- package/lib/src/utils/format.js +1 -0
- package/lib/src/utils/index.d.ts +2 -1
- package/lib/src/utils/index.js +1 -1
- package/lib/src/utils/is.d.ts +54 -0
- package/lib/src/utils/is.js +1 -0
- package/lib/src/utils/slot.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +6 -6
- package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +0 -18
- package/es/src/utils/copy-text-to-clipboard.d.ts +0 -1
- package/es/src/utils/tree.d.ts +0 -38
- package/es/src/utils/uuid.d.ts +0 -2
- package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
- package/lib/src/business/ap-appendix/icons/file-icon.vue.js +0 -1
- package/lib/src/utils/copy-text-to-clipboard.d.ts +0 -1
- package/lib/src/utils/tree.d.ts +0 -38
- package/lib/src/utils/uuid.d.ts +0 -2
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import { ref as c, computed as g, unref as n } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { isUndefined as
|
|
4
|
-
|
|
2
|
+
import "../../utils/index.mjs";
|
|
3
|
+
import { isUndefined as d } from "lodash-unified";
|
|
4
|
+
import { isDef as f } from "../../utils/is.mjs";
|
|
5
|
+
const C = (e) => {
|
|
5
6
|
const i = c(
|
|
6
7
|
e.pagination && e.pagination.defaultCurrent || 1
|
|
7
8
|
), o = c(
|
|
8
9
|
e.pagination && e.pagination.defaultPageSize || 10
|
|
9
10
|
);
|
|
10
|
-
function s(t,
|
|
11
|
-
i.value = t, o.value =
|
|
11
|
+
function s(t, r) {
|
|
12
|
+
i.value = t, o.value = r;
|
|
12
13
|
}
|
|
13
|
-
const
|
|
14
|
+
const p = g(() => e.dataSource ? e.pagination === !1 ? [...e.dataSource] : e.dataSource.slice(
|
|
14
15
|
(n(i) - 1) * n(o),
|
|
15
16
|
n(i) * n(o)
|
|
16
17
|
) : []);
|
|
17
18
|
return {
|
|
18
19
|
pagination: g(() => {
|
|
19
|
-
const { showLessItems: t, showSizeChanger:
|
|
20
|
+
const { showLessItems: t, showSizeChanger: r, showQuickJumper: a, pageSizeOptions: u } = e.pagination || {};
|
|
20
21
|
return {
|
|
21
22
|
current: n(i),
|
|
22
23
|
pageSize: n(o),
|
|
23
24
|
total: e.dataSource?.length || 0,
|
|
24
|
-
showSizeChanger: f(
|
|
25
|
-
showQuickJumper: f(
|
|
25
|
+
showSizeChanger: f(r) ? r : !t,
|
|
26
|
+
showQuickJumper: f(a) ? a : !t,
|
|
26
27
|
showLessItems: t,
|
|
27
28
|
size: "default",
|
|
28
|
-
pageSizeOptions:
|
|
29
|
+
pageSizeOptions: d(u) ? ["10", "20", "50", "100"] : u
|
|
29
30
|
};
|
|
30
31
|
}),
|
|
31
|
-
dataSource:
|
|
32
|
+
dataSource: p,
|
|
32
33
|
onChange: s
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
+
C as useOfflineList
|
|
37
38
|
};
|
|
@@ -8,7 +8,7 @@ const a = (r) => {
|
|
|
8
8
|
backgroundColor: r.apProCardBorderColorSplit,
|
|
9
9
|
"&-vertical": {
|
|
10
10
|
position: "relative",
|
|
11
|
-
marginInline:
|
|
11
|
+
marginInline: r.space,
|
|
12
12
|
"&::after": {
|
|
13
13
|
position: "absolute",
|
|
14
14
|
height: r.apProCardDividerLineHeight,
|
|
@@ -21,7 +21,7 @@ const a = (r) => {
|
|
|
21
21
|
},
|
|
22
22
|
"&-horizontal": {
|
|
23
23
|
position: "relative",
|
|
24
|
-
marginBlock:
|
|
24
|
+
marginBlock: r.space,
|
|
25
25
|
"&::after": {
|
|
26
26
|
position: "absolute",
|
|
27
27
|
width: r.apProCardDividerLineHeight,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
2
|
-
import { defaultToken as
|
|
3
|
-
const
|
|
1
|
+
import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
|
|
2
|
+
import { defaultToken as e } from "./token.mjs";
|
|
3
|
+
const t = () => {
|
|
4
4
|
const r = {};
|
|
5
5
|
r["&-span-0"] = {
|
|
6
6
|
display: "none"
|
|
@@ -13,7 +13,7 @@ const i = () => {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
return r;
|
|
16
|
-
},
|
|
16
|
+
}, d = (r) => {
|
|
17
17
|
const { componentCls: o } = r, a = `${r.apProCardBorderLineWidth} ${r.apProCardBorderLineType} ${r.apProCardBorderColorSplit}`;
|
|
18
18
|
return {
|
|
19
19
|
[o]: {
|
|
@@ -23,7 +23,7 @@ const i = () => {
|
|
|
23
23
|
boxSizing: "border-box",
|
|
24
24
|
padding: 0,
|
|
25
25
|
width: "100%",
|
|
26
|
-
transition:
|
|
26
|
+
transition: `all ${r.motionDurationSlow}`,
|
|
27
27
|
backgroundColor: r.apProCardColorBgContainer,
|
|
28
28
|
borderRadius: r.apProCardBorderRadius,
|
|
29
29
|
fontSize: r.fontSize,
|
|
@@ -37,7 +37,7 @@ const i = () => {
|
|
|
37
37
|
},
|
|
38
38
|
"&-hoverable": {
|
|
39
39
|
cursor: "pointer",
|
|
40
|
-
transition:
|
|
40
|
+
transition: `box-shadow ${r.motionDurationSlow}, border-color ${r.motionDurationSlow}`,
|
|
41
41
|
"&:hover": {
|
|
42
42
|
borderColor: "transparent",
|
|
43
43
|
boxShadow: r.apProCardBoxShadow
|
|
@@ -53,7 +53,7 @@ const i = () => {
|
|
|
53
53
|
color: r.apProCardHeaderTitleFontColor,
|
|
54
54
|
fontWeight: "500",
|
|
55
55
|
"&-tooltip": {
|
|
56
|
-
marginLeft:
|
|
56
|
+
marginLeft: r.spaceXS,
|
|
57
57
|
fontSize: r.fontSize,
|
|
58
58
|
color: r.apProCardTooltipColor
|
|
59
59
|
}
|
|
@@ -70,10 +70,10 @@ const i = () => {
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
[`${o}-collapsible-icon`]: {
|
|
73
|
-
marginInlineEnd:
|
|
73
|
+
marginInlineEnd: r.spaceXS,
|
|
74
74
|
color: r.apProCardHeaderTitleFontColor,
|
|
75
75
|
fontSize: r.fontSizeLG,
|
|
76
|
-
transition:
|
|
76
|
+
transition: `transform ${r.motionDurationSlow}`,
|
|
77
77
|
"&:hover": {
|
|
78
78
|
color: r.hoverColorBase
|
|
79
79
|
},
|
|
@@ -142,7 +142,7 @@ const i = () => {
|
|
|
142
142
|
content: '""'
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
|
-
...
|
|
145
|
+
...t(r)
|
|
146
146
|
},
|
|
147
147
|
[`${o}-actions`]: {
|
|
148
148
|
borderBlockStart: a,
|
|
@@ -158,12 +158,12 @@ const i = () => {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
-
}, p =
|
|
161
|
+
}, p = i(
|
|
162
162
|
"ProCard",
|
|
163
|
-
(r) => [
|
|
164
|
-
|
|
163
|
+
(r) => [d(r)],
|
|
164
|
+
e
|
|
165
165
|
);
|
|
166
166
|
export {
|
|
167
167
|
p as default,
|
|
168
|
-
|
|
168
|
+
d as genProCardStyle
|
|
169
169
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defaultToken as
|
|
2
|
-
import { genComponentStyleHook as
|
|
1
|
+
import { defaultToken as e } from "./token.mjs";
|
|
2
|
+
import { genComponentStyleHook as n } from "../../utils/cssinjs/index.mjs";
|
|
3
3
|
const o = (t) => {
|
|
4
4
|
const { componentCls: i } = t;
|
|
5
5
|
return {
|
|
6
6
|
[i]: {
|
|
7
7
|
display: "flex",
|
|
8
8
|
"& + &": {
|
|
9
|
-
marginBlockStart:
|
|
9
|
+
marginBlockStart: t.spaceXS
|
|
10
10
|
},
|
|
11
11
|
[`${i}-tip`]: {
|
|
12
|
-
marginInlineStart:
|
|
12
|
+
marginInlineStart: t.spaceXS,
|
|
13
13
|
color: t.textColor3
|
|
14
14
|
},
|
|
15
15
|
[`${i}-wrapper`]: {
|
|
@@ -23,7 +23,7 @@ const o = (t) => {
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
[`${i}-icon`]: {
|
|
26
|
-
marginInlineEnd:
|
|
26
|
+
marginInlineEnd: t.spaceXL
|
|
27
27
|
},
|
|
28
28
|
[`${i}-trend-icon`]: {
|
|
29
29
|
width: 0,
|
|
@@ -41,8 +41,8 @@ const o = (t) => {
|
|
|
41
41
|
[`${i}-content`]: {
|
|
42
42
|
width: "100%",
|
|
43
43
|
".ant-statistic-content": {
|
|
44
|
-
fontSize:
|
|
45
|
-
lineHeight:
|
|
44
|
+
fontSize: t.fontSizeXXL,
|
|
45
|
+
lineHeight: t.lineHeightLG,
|
|
46
46
|
fontWeight: "bold"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
@@ -54,11 +54,11 @@ const o = (t) => {
|
|
|
54
54
|
color: t.textColor2,
|
|
55
55
|
fontSize: t.fontSize,
|
|
56
56
|
lineHeight: t.lineHeight,
|
|
57
|
-
marginBlockEnd:
|
|
57
|
+
marginBlockEnd: t.space
|
|
58
58
|
},
|
|
59
59
|
"&-size-small": {
|
|
60
60
|
".ant-statistic-title": {
|
|
61
|
-
marginBlockEnd:
|
|
61
|
+
marginBlockEnd: t.spaceXS
|
|
62
62
|
},
|
|
63
63
|
[`${i}-content`]: {
|
|
64
64
|
"div.ant-statistic-content": {
|
|
@@ -103,7 +103,7 @@ const o = (t) => {
|
|
|
103
103
|
[`${i}-layout-inline`]: {
|
|
104
104
|
display: "inline-flex",
|
|
105
105
|
".ant-statistic-title": {
|
|
106
|
-
marginInlineEnd:
|
|
106
|
+
marginInlineEnd: t.spaceSM,
|
|
107
107
|
marginBlockEnd: 0,
|
|
108
108
|
color: t.textColor3,
|
|
109
109
|
fontSize: t.fontSize,
|
|
@@ -124,10 +124,10 @@ const o = (t) => {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
|
-
}, a =
|
|
127
|
+
}, a = n(
|
|
128
128
|
"ProCard.Statistic",
|
|
129
129
|
(t) => [o(t)],
|
|
130
|
-
|
|
130
|
+
e
|
|
131
131
|
);
|
|
132
132
|
export {
|
|
133
133
|
a as default,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defaultToken as
|
|
2
|
-
import { genComponentStyleHook as
|
|
3
|
-
const
|
|
1
|
+
import { defaultToken as a } from "./token.mjs";
|
|
2
|
+
import { genComponentStyleHook as e } from "../../utils/cssinjs/index.mjs";
|
|
3
|
+
const i = (r) => {
|
|
4
4
|
const { componentCls: t } = r;
|
|
5
5
|
return {
|
|
6
6
|
[t]: {
|
|
7
7
|
[`${t}-chart`]: {
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: "column",
|
|
10
|
-
marginBlockStart:
|
|
11
|
-
marginBlockEnd:
|
|
10
|
+
marginBlockStart: r.space,
|
|
11
|
+
marginBlockEnd: r.space,
|
|
12
12
|
width: "100%",
|
|
13
13
|
alignItems: "center",
|
|
14
14
|
alignSelf: "flex-start",
|
|
15
15
|
"&-left": {
|
|
16
16
|
marginBlockStart: 0,
|
|
17
|
-
marginInlineEnd:
|
|
17
|
+
marginInlineEnd: r.spaceXL
|
|
18
18
|
},
|
|
19
19
|
"&-right": {
|
|
20
20
|
marginBlockStart: 0,
|
|
21
|
-
marginInlineStart:
|
|
21
|
+
marginInlineStart: r.spaceXL
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
[`${t}-content`]: {
|
|
@@ -29,17 +29,17 @@ const e = (r) => {
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
[`${t}-footer`]: {
|
|
32
|
-
marginBlockStart:
|
|
33
|
-
paddingBlockStart:
|
|
32
|
+
marginBlockStart: r.space,
|
|
33
|
+
paddingBlockStart: r.spaceXL,
|
|
34
34
|
borderBlockStart: `${r.apProCardBorderLineWidth} ${r.apProCardBorderLineType} ${r.apProCardBorderColorSplit}`
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
},
|
|
38
|
+
}, n = e(
|
|
39
39
|
"StatisticsCard",
|
|
40
|
-
(r) => [
|
|
41
|
-
|
|
40
|
+
(r) => [i(r)],
|
|
41
|
+
a
|
|
42
42
|
);
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
n as default
|
|
45
45
|
};
|
|
@@ -1,50 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { genTitlePrefix as l } from "../../business/ap-title/style/index.mjs";
|
|
2
|
+
import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
|
|
3
|
+
const r = (e) => {
|
|
4
|
+
const { componentCls: t } = e, { normal: a, admin: o } = l(e);
|
|
4
5
|
return {
|
|
5
|
-
[
|
|
6
|
+
[t]: {
|
|
6
7
|
"&-default": {
|
|
7
8
|
position: "relative",
|
|
8
9
|
fontWeight: "bold",
|
|
9
|
-
fontSize:
|
|
10
|
+
fontSize: e.fontSize,
|
|
10
11
|
display: "flex",
|
|
11
12
|
alignItems: "center",
|
|
12
13
|
"&-user": {
|
|
13
|
-
paddingLeft: "
|
|
14
|
-
"&::before":
|
|
15
|
-
position: "absolute",
|
|
16
|
-
content: '""',
|
|
17
|
-
left: 0,
|
|
18
|
-
top: "50%",
|
|
19
|
-
transform: "translateY(-50%)",
|
|
20
|
-
width: "3px",
|
|
21
|
-
height: "14px",
|
|
22
|
-
backgroundColor: t.colorPrimary,
|
|
23
|
-
borderRadius: "0px 4px 4px 0px"
|
|
24
|
-
}
|
|
14
|
+
paddingLeft: e.calc(e.spaceSM).add("3px").equal(),
|
|
15
|
+
"&::before": a
|
|
25
16
|
},
|
|
26
17
|
"&-admin": {
|
|
27
|
-
paddingLeft: "
|
|
28
|
-
"&::before":
|
|
29
|
-
position: "absolute",
|
|
30
|
-
content: '""',
|
|
31
|
-
left: 0,
|
|
32
|
-
top: "50%",
|
|
33
|
-
transform: "translateY(-50%)",
|
|
34
|
-
width: "8px",
|
|
35
|
-
height: "8px",
|
|
36
|
-
borderRadius: "50%",
|
|
37
|
-
border: `2px solid ${t.colorPrimary}`,
|
|
38
|
-
background: "#fff"
|
|
39
|
-
}
|
|
18
|
+
paddingLeft: e.calc(e.spaceSM).add("8px").equal(),
|
|
19
|
+
"&::before": o
|
|
40
20
|
}
|
|
41
21
|
}
|
|
42
22
|
}
|
|
43
23
|
};
|
|
44
|
-
},
|
|
45
|
-
r(
|
|
24
|
+
}, f = i("ProCard.Title", (e) => [
|
|
25
|
+
r(e)
|
|
46
26
|
]);
|
|
47
27
|
export {
|
|
48
|
-
|
|
28
|
+
f as default,
|
|
49
29
|
r as genProCardTitleStyle
|
|
50
30
|
};
|
|
@@ -9,7 +9,7 @@ import { isUndefined as g, omit as ie, isBoolean as Ye } from "lodash-unified";
|
|
|
9
9
|
import { getColumnOrder as ce, updateFormProps as Ze, getFieldProps as er, getSearchFormItemRenderNode as rr, recursionApColumns as pe, getTableTitle as or, getTableRenderType as tr, getTableRenderProps as ar, getTableCellRenderNode as lr, apColumnToColumn as nr, falseToUndefined as sr, objectToString as ur } from "./utils.mjs";
|
|
10
10
|
import dr from "./hooks/use-table-content-height.mjs";
|
|
11
11
|
import ir from "./hooks/use-table-row-selection.mjs";
|
|
12
|
-
import { getScrollbarSize as cr
|
|
12
|
+
import { getScrollbarSize as cr } from "../utils/index.mjs";
|
|
13
13
|
import "./components/setting/modal/index.vue.mjs";
|
|
14
14
|
import "./components/paragraph-ellipsis/index.vue.mjs";
|
|
15
15
|
import { useProvideApTable as pr } from "./context.mjs";
|
|
@@ -20,10 +20,11 @@ import { useDevWarning as gr } from "../utils/warning.mjs";
|
|
|
20
20
|
import br from "./style/index.mjs";
|
|
21
21
|
import { useNamespace as yr } from "../config-provider/hooks/use-namespace.mjs";
|
|
22
22
|
import { useGlobalConfig as Sr } from "../config-provider/hooks/use-global-config.mjs";
|
|
23
|
+
import { isDef as fe } from "../utils/is.mjs";
|
|
23
24
|
import hr from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
24
25
|
import wr from "./components/setting/modal/index.vue2.mjs";
|
|
25
26
|
import vr from "../scroll-bar/index.vue.mjs";
|
|
26
|
-
const
|
|
27
|
+
const Jr = /* @__PURE__ */ $e({
|
|
27
28
|
name: "ApTable",
|
|
28
29
|
__name: "ap-table",
|
|
29
30
|
props: {
|
|
@@ -497,5 +498,5 @@ const Gr = /* @__PURE__ */ $e({
|
|
|
497
498
|
}
|
|
498
499
|
});
|
|
499
500
|
export {
|
|
500
|
-
|
|
501
|
+
Jr as default
|
|
501
502
|
};
|
|
@@ -209,9 +209,9 @@ export declare const apTableFormItemMap: {
|
|
|
209
209
|
type: "up" | "down";
|
|
210
210
|
}) => void) | undefined;
|
|
211
211
|
readonly type?: string | undefined;
|
|
212
|
+
readonly placeholder?: string | undefined;
|
|
212
213
|
readonly name?: string | undefined;
|
|
213
214
|
readonly id?: string | undefined;
|
|
214
|
-
readonly placeholder?: string | undefined;
|
|
215
215
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
216
216
|
readonly addonBefore?: any;
|
|
217
217
|
readonly addonAfter?: any;
|
|
@@ -918,6 +918,7 @@ export declare const apTableFormItemMap: {
|
|
|
918
918
|
readonly direction?: "ltr" | "rtl" | undefined;
|
|
919
919
|
readonly animation?: string | undefined;
|
|
920
920
|
readonly children?: VueNode[] | undefined;
|
|
921
|
+
readonly placeholder?: any;
|
|
921
922
|
readonly prefixCls?: string | undefined;
|
|
922
923
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
923
924
|
readonly loading?: boolean | undefined;
|
|
@@ -928,7 +929,6 @@ export declare const apTableFormItemMap: {
|
|
|
928
929
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
929
930
|
readonly virtual?: boolean | undefined;
|
|
930
931
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
931
|
-
readonly placeholder?: any;
|
|
932
932
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
933
933
|
readonly defaultValue?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
934
934
|
readonly prefix?: any;
|
|
@@ -1679,6 +1679,7 @@ export declare const apTableFormItemMap: {
|
|
|
1679
1679
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
1680
1680
|
readonly value?: string | number | undefined;
|
|
1681
1681
|
readonly disabled?: boolean | undefined;
|
|
1682
|
+
readonly placeholder?: string | number | undefined;
|
|
1682
1683
|
readonly prefixCls?: string | undefined;
|
|
1683
1684
|
readonly name?: string | undefined;
|
|
1684
1685
|
readonly loading?: boolean | undefined;
|
|
@@ -1689,7 +1690,6 @@ export declare const apTableFormItemMap: {
|
|
|
1689
1690
|
readonly focused?: boolean | undefined;
|
|
1690
1691
|
readonly readonly?: boolean | undefined;
|
|
1691
1692
|
readonly autocomplete?: string | undefined;
|
|
1692
|
-
readonly placeholder?: string | number | undefined;
|
|
1693
1693
|
readonly maxlength?: number | undefined;
|
|
1694
1694
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
1695
1695
|
readonly htmlSize?: number | undefined;
|
|
@@ -2301,6 +2301,7 @@ export declare const apTableFormItemMap: {
|
|
|
2301
2301
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
2302
2302
|
readonly value?: string | number | undefined;
|
|
2303
2303
|
readonly disabled?: boolean | undefined;
|
|
2304
|
+
readonly placeholder?: string | number | undefined;
|
|
2304
2305
|
readonly prefixCls?: string | undefined;
|
|
2305
2306
|
readonly name?: string | undefined;
|
|
2306
2307
|
readonly loading?: boolean | undefined;
|
|
@@ -2311,7 +2312,6 @@ export declare const apTableFormItemMap: {
|
|
|
2311
2312
|
readonly focused?: boolean | undefined;
|
|
2312
2313
|
readonly readonly?: boolean | undefined;
|
|
2313
2314
|
readonly autocomplete?: string | undefined;
|
|
2314
|
-
readonly placeholder?: string | number | undefined;
|
|
2315
2315
|
readonly maxlength?: number | undefined;
|
|
2316
2316
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
2317
2317
|
readonly htmlSize?: number | undefined;
|
|
@@ -2515,6 +2515,7 @@ export declare const apTableFormItemMap: {
|
|
|
2515
2515
|
readonly direction?: "ltr" | "rtl" | undefined;
|
|
2516
2516
|
readonly animation?: string | undefined;
|
|
2517
2517
|
readonly children?: VueNode[] | undefined;
|
|
2518
|
+
readonly placeholder?: any;
|
|
2518
2519
|
readonly prefixCls?: string | undefined;
|
|
2519
2520
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
2520
2521
|
readonly loading?: boolean | undefined;
|
|
@@ -2526,7 +2527,6 @@ export declare const apTableFormItemMap: {
|
|
|
2526
2527
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
2527
2528
|
readonly virtual?: boolean | undefined;
|
|
2528
2529
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
2529
|
-
readonly placeholder?: any;
|
|
2530
2530
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
2531
2531
|
readonly defaultValue?: unknown;
|
|
2532
2532
|
readonly prefix?: any;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ref as D, shallowRef as G, unref as i, computed as W, watchEffect as X } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useInjectApTable as
|
|
5
|
-
import { isObject as T, mergeWith as A, isBoolean as
|
|
2
|
+
import "../../utils/index.mjs";
|
|
3
|
+
import q, { customCloneColumnStates as v, getColumnStateString as H } from "../components/setting/utils.mjs";
|
|
4
|
+
import { useInjectApTable as L } from "../context.mjs";
|
|
5
|
+
import { isObject as T, mergeWith as A, isBoolean as P, omit as Q, isString as U, isNumber as b } from "lodash-unified";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { useToken as
|
|
8
|
-
import { getTableTitle as
|
|
9
|
-
import { useNamespace as
|
|
7
|
+
import { useToken as V } from "@aplus-frontend/antdv/es/theme/internal";
|
|
8
|
+
import { getTableTitle as Y } from "../utils.mjs";
|
|
9
|
+
import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import { isDef as $ } from "../../utils/is.mjs";
|
|
10
11
|
function c(r, o) {
|
|
11
12
|
r.forEach((n) => {
|
|
12
13
|
o(n), n.children?.length && c(n.children, o);
|
|
@@ -24,12 +25,12 @@ function N(r, o) {
|
|
|
24
25
|
}
|
|
25
26
|
const y = Number.MAX_SAFE_INTEGER;
|
|
26
27
|
function ee(r, o, n, a) {
|
|
27
|
-
return a ? a.fixed : o ? o.fixed : n && "fixed" in n ? n.fixed :
|
|
28
|
+
return a ? a.fixed : o ? o.fixed : n && "fixed" in n ? n.fixed : P(r.fixed) ? r.fixed ? "left" : void 0 : r.fixed;
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
-
const { be: a } =
|
|
30
|
+
const de = (r, o, n) => {
|
|
31
|
+
const { be: a } = Z("ap-table"), [te, B] = V(), l = D(n), d = G(
|
|
31
32
|
v(n)
|
|
32
|
-
), { columnsBackup: m, updateColumns: E } =
|
|
33
|
+
), { columnsBackup: m, updateColumns: E } = L(), F = r.persistenceType || "localStorage", h = window[F];
|
|
33
34
|
function I() {
|
|
34
35
|
const e = K(
|
|
35
36
|
h,
|
|
@@ -44,7 +45,7 @@ const ce = (r, o, n) => {
|
|
|
44
45
|
return R.map((f) => {
|
|
45
46
|
const k = j?.[f.key] || {}, g = {
|
|
46
47
|
key: f.key,
|
|
47
|
-
label:
|
|
48
|
+
label: U(f.title) ? Y(
|
|
48
49
|
f,
|
|
49
50
|
a("table-header", "title"),
|
|
50
51
|
void 0,
|
|
@@ -58,7 +59,7 @@ const ce = (r, o, n) => {
|
|
|
58
59
|
z
|
|
59
60
|
),
|
|
60
61
|
disabled: !1,
|
|
61
|
-
...
|
|
62
|
+
...Q(k, ["children", "fixed"])
|
|
62
63
|
};
|
|
63
64
|
return g.children = f.children?.length ? u(
|
|
64
65
|
f.children,
|
|
@@ -74,8 +75,8 @@ const ce = (r, o, n) => {
|
|
|
74
75
|
let u = b(t.order) ? t.order : y;
|
|
75
76
|
return e.fixed === "right" && t.fixed !== "right" && (u = s - 1), t.fixed === "left" && e.fixed !== "left" && (u = s - 1), s - u;
|
|
76
77
|
}
|
|
77
|
-
const
|
|
78
|
-
function
|
|
78
|
+
const p = W(() => i(l).every((e) => e.show));
|
|
79
|
+
function S() {
|
|
79
80
|
const e = i(l);
|
|
80
81
|
c(e, (t) => {
|
|
81
82
|
!t.disabled && (t.show = !0);
|
|
@@ -88,11 +89,11 @@ const ce = (r, o, n) => {
|
|
|
88
89
|
});
|
|
89
90
|
}
|
|
90
91
|
function _() {
|
|
91
|
-
i(
|
|
92
|
+
i(p) ? x() : S();
|
|
92
93
|
}
|
|
93
94
|
function J(e, t) {
|
|
94
95
|
c(i(l), (s) => {
|
|
95
|
-
s.key === e && (s.show =
|
|
96
|
+
s.key === e && (s.show = $(t) ? t : !s.show);
|
|
96
97
|
});
|
|
97
98
|
}
|
|
98
99
|
function C(e) {
|
|
@@ -103,25 +104,25 @@ const ce = (r, o, n) => {
|
|
|
103
104
|
}
|
|
104
105
|
function w(e) {
|
|
105
106
|
if (i(o)) {
|
|
106
|
-
const t =
|
|
107
|
+
const t = H(e);
|
|
107
108
|
h.setItem(i(o), JSON.stringify(t));
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
return X(() => {
|
|
111
112
|
const e = I();
|
|
112
113
|
C(e), r.onChange?.(e), E?.(
|
|
113
|
-
|
|
114
|
+
q(
|
|
114
115
|
i(m),
|
|
115
116
|
i(e)
|
|
116
117
|
)
|
|
117
118
|
), d.value = v(e), w(e);
|
|
118
119
|
}), {
|
|
119
120
|
columnState: l,
|
|
120
|
-
selectAll:
|
|
121
|
+
selectAll: S,
|
|
121
122
|
unSelectAll: x,
|
|
122
123
|
toggleSelect: J,
|
|
123
124
|
setColumnState: C,
|
|
124
|
-
isAllSelected:
|
|
125
|
+
isAllSelected: p,
|
|
125
126
|
toggleSelectAll: _,
|
|
126
127
|
columnStateBackup: d,
|
|
127
128
|
setColumnStateBackup: M,
|
|
@@ -129,5 +130,5 @@ const ce = (r, o, n) => {
|
|
|
129
130
|
};
|
|
130
131
|
};
|
|
131
132
|
export {
|
|
132
|
-
|
|
133
|
+
de as useTableColumnState
|
|
133
134
|
};
|
|
@@ -91,8 +91,8 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
|
|
|
91
91
|
current: number;
|
|
92
92
|
pageSize: number;
|
|
93
93
|
total: number;
|
|
94
|
-
showSizeChanger: boolean
|
|
95
|
-
showQuickJumper: boolean
|
|
94
|
+
showSizeChanger: NonNullable<boolean | undefined>;
|
|
95
|
+
showQuickJumper: NonNullable<boolean | undefined>;
|
|
96
96
|
showLessItems: boolean | undefined;
|
|
97
97
|
size: "default" | "small";
|
|
98
98
|
pageSizeOptions: (string | number)[];
|
|
@@ -3,9 +3,10 @@ import { useTableSortedAndFiltered as de } from "./use-sorted-filtered.mjs";
|
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import { parseFieldValue as pe, dataIndexToStr as me, isEqualCustom as he } from "../utils.mjs";
|
|
5
5
|
import { isArray as N, isEqualWith as Se, isUndefined as ze } from "lodash-unified";
|
|
6
|
-
import
|
|
6
|
+
import "../../utils/index.mjs";
|
|
7
7
|
import { useLocale as Pe } from "../../config-provider/hooks/use-locale.mjs";
|
|
8
8
|
import { useNamespace as Te } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { isDef as k } from "../../utils/is.mjs";
|
|
9
10
|
const d = 1, E = 20, B = {
|
|
10
11
|
defaultCurrent: d,
|
|
11
12
|
defaultPageSize: E,
|
|
@@ -22,7 +23,7 @@ function Ce(c) {
|
|
|
22
23
|
const u = {};
|
|
23
24
|
return c === !1 || (c === !0 || c == null ? (u.current = d, u.pageSize = E) : (u.current = c.defaultCurrent || d, u.pageSize = c.defaultPageSize || E)), u;
|
|
24
25
|
}
|
|
25
|
-
const
|
|
26
|
+
const ye = ({
|
|
26
27
|
manual: c = !1,
|
|
27
28
|
request: u,
|
|
28
29
|
params: v = {},
|
|
@@ -246,5 +247,5 @@ const Le = ({
|
|
|
246
247
|
export {
|
|
247
248
|
d as DEFAULT_CURRENT,
|
|
248
249
|
E as DEFAULT_PAGE_SIZE,
|
|
249
|
-
|
|
250
|
+
ye as useTablePaging
|
|
250
251
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
+
import { ApTableToken } from '.';
|
|
2
3
|
import { ComputedRef } from 'vue';
|
|
3
|
-
export declare const genTableIndexCellStyle: GenStyleFunc
|
|
4
|
+
export declare const genTableIndexCellStyle: GenStyleFunc<ApTableToken>;
|
|
4
5
|
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
6
|
export default _default;
|