@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,10 +1,10 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
2
|
-
const
|
|
3
|
-
const { namespace:
|
|
1
|
+
import { genComponentStyleHook as a } from "../../utils/cssinjs/index.mjs";
|
|
2
|
+
const i = (r) => {
|
|
3
|
+
const { namespace: e } = r, o = `.${e}-ap-form-search-form__popover`;
|
|
4
4
|
return {
|
|
5
|
-
[
|
|
5
|
+
[o]: {
|
|
6
6
|
".ant-form-item": {
|
|
7
|
-
marginBlockEnd:
|
|
7
|
+
marginBlockEnd: r.space
|
|
8
8
|
},
|
|
9
9
|
".ant-popover-arrow": {
|
|
10
10
|
display: "none"
|
|
@@ -12,29 +12,26 @@ const a = (o) => {
|
|
|
12
12
|
".ant-popover-inner": {
|
|
13
13
|
padding: 0
|
|
14
14
|
},
|
|
15
|
-
[`${
|
|
16
|
-
padding: `${
|
|
15
|
+
[`${o}-content`]: {
|
|
16
|
+
padding: `${r.spaceLG} ${r.spaceXL} ${r.spaceXL}`,
|
|
17
17
|
textarea: {
|
|
18
18
|
padding: 0
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
[`${
|
|
22
|
-
padding: `${
|
|
23
|
-
"&-confirm-btn": {
|
|
24
|
-
marginLeft: "10px"
|
|
25
|
-
},
|
|
21
|
+
[`${o}-footer`]: {
|
|
22
|
+
padding: `${r.spaceLG} ${r.spaceXL}`,
|
|
26
23
|
"& button.ant-btn": {
|
|
27
|
-
paddingInline:
|
|
24
|
+
paddingInline: r.spaceXL
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
28
|
};
|
|
32
|
-
}, t = (
|
|
33
|
-
const { componentCls:
|
|
29
|
+
}, t = (r) => {
|
|
30
|
+
const { componentCls: e } = r;
|
|
34
31
|
return {
|
|
35
|
-
[
|
|
32
|
+
[e]: {
|
|
36
33
|
".ant-form-item": {
|
|
37
|
-
marginBlockEnd:
|
|
34
|
+
marginBlockEnd: r.space
|
|
38
35
|
},
|
|
39
36
|
".ant-form-item-control": {
|
|
40
37
|
".ant-picker": {
|
|
@@ -45,22 +42,22 @@ const a = (o) => {
|
|
|
45
42
|
}
|
|
46
43
|
},
|
|
47
44
|
// for more filter trigger button
|
|
48
|
-
[`${
|
|
45
|
+
[`${e}-trigger-btn`]: {
|
|
49
46
|
fontSize: 0,
|
|
50
47
|
"&-active": {
|
|
51
|
-
color:
|
|
52
|
-
borderColor:
|
|
48
|
+
color: r.hoverColorBase,
|
|
49
|
+
borderColor: r.hoverColorBase,
|
|
53
50
|
zIndex: 1
|
|
54
51
|
},
|
|
55
52
|
"&-badge": {
|
|
56
53
|
display: "inline-block",
|
|
57
|
-
padding:
|
|
58
|
-
minWidth:
|
|
59
|
-
height:
|
|
60
|
-
backgroundColor:
|
|
61
|
-
fontSize:
|
|
54
|
+
padding: r.spaceXXS,
|
|
55
|
+
minWidth: r.searchFormPopoverFilterBadgeSize,
|
|
56
|
+
height: r.searchFormPopoverFilterBadgeSize,
|
|
57
|
+
backgroundColor: r.colorPrimary,
|
|
58
|
+
fontSize: r.fontSizeSM,
|
|
62
59
|
lineHeight: 1,
|
|
63
|
-
borderRadius:
|
|
60
|
+
borderRadius: r.calc(r.searchFormPopoverFilterBadgeSize).div(2).equal(),
|
|
64
61
|
color: "#fff",
|
|
65
62
|
position: "absolute",
|
|
66
63
|
top: 0,
|
|
@@ -69,7 +66,7 @@ const a = (o) => {
|
|
|
69
66
|
boxShadow: "0 0 0 1px #fff"
|
|
70
67
|
}
|
|
71
68
|
},
|
|
72
|
-
[`${
|
|
69
|
+
[`${e}-column-setting-trigger-wrapper`]: {
|
|
73
70
|
flexShrink: 0,
|
|
74
71
|
".ant-btn:not(:only-child)": {
|
|
75
72
|
"&:first-child": {
|
|
@@ -89,18 +86,24 @@ const a = (o) => {
|
|
|
89
86
|
}
|
|
90
87
|
}
|
|
91
88
|
},
|
|
92
|
-
[`${
|
|
93
|
-
paddingInline:
|
|
89
|
+
[`${e}-action-btn`]: {
|
|
90
|
+
paddingInline: r.spaceLG
|
|
94
91
|
},
|
|
95
|
-
[`${
|
|
96
|
-
backgroundColor:
|
|
92
|
+
[`${e}-action-btn-reset`]: {
|
|
93
|
+
backgroundColor: r.colorBg1
|
|
97
94
|
}
|
|
98
95
|
},
|
|
99
|
-
...
|
|
96
|
+
...i(r)
|
|
100
97
|
};
|
|
101
|
-
}, p =
|
|
98
|
+
}, p = a(
|
|
99
|
+
"ApForm.SearchForm",
|
|
100
|
+
(r) => [t(r)],
|
|
101
|
+
{
|
|
102
|
+
searchFormPopoverFilterBadgeSize: 14
|
|
103
|
+
}
|
|
104
|
+
);
|
|
102
105
|
export {
|
|
103
106
|
p as default,
|
|
104
|
-
|
|
107
|
+
i as genPopoverStyle,
|
|
105
108
|
t as genSearchFormStyle
|
|
106
109
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as z, useSlots as G, toRef as K, ref as c, unref as s,
|
|
|
2
2
|
import { ApForm as y } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isUndefined as Y, isNumber as d, cloneDeep as Z, isArray as M, omit as ee } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import
|
|
5
|
+
import "../../utils/index.mjs";
|
|
6
6
|
import { useGetEditableColumns as te } from "../hooks/use-editable-columns.mjs";
|
|
7
7
|
import "../index.vue2.mjs";
|
|
8
8
|
import { useInjectForm as ae } from "../../ap-form/context.mjs";
|
|
@@ -11,8 +11,9 @@ import { useDevWarning as ne } from "../../utils/warning.mjs";
|
|
|
11
11
|
import le from "../style/editable.mjs";
|
|
12
12
|
import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
|
|
13
13
|
import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
|
|
14
|
+
import { isDef as C } from "../../utils/is.mjs";
|
|
14
15
|
import ie from "../index.vue.mjs";
|
|
15
|
-
const
|
|
16
|
+
const Fe = /* @__PURE__ */ z({
|
|
16
17
|
name: "EditableGridFormItem",
|
|
17
18
|
__name: "form-item",
|
|
18
19
|
props: {
|
|
@@ -115,7 +116,7 @@ const Se = /* @__PURE__ */ z({
|
|
|
115
116
|
type: Boolean
|
|
116
117
|
},
|
|
117
118
|
rowSelection: {
|
|
118
|
-
type: Boolean,
|
|
119
|
+
type: [Boolean, Object],
|
|
119
120
|
default: void 0
|
|
120
121
|
},
|
|
121
122
|
onLoadingChange: {},
|
|
@@ -242,14 +243,14 @@ const Se = /* @__PURE__ */ z({
|
|
|
242
243
|
}
|
|
243
244
|
});
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function j(e) {
|
|
246
247
|
i?.setFieldValue(o.name, e);
|
|
247
248
|
}
|
|
248
|
-
function
|
|
249
|
+
function O(e) {
|
|
249
250
|
const n = e === "end" ? f.value.length - 1 : e;
|
|
250
251
|
p.value?.scrollToRow(n);
|
|
251
252
|
}
|
|
252
|
-
function
|
|
253
|
+
function _() {
|
|
253
254
|
i?.setFieldValue?.(o.name, []);
|
|
254
255
|
}
|
|
255
256
|
return b({
|
|
@@ -259,9 +260,9 @@ const Se = /* @__PURE__ */ z({
|
|
|
259
260
|
getRowsData: L,
|
|
260
261
|
setRowData: T,
|
|
261
262
|
addMultiple: D,
|
|
262
|
-
scrollTo:
|
|
263
|
-
setTableData:
|
|
264
|
-
clear:
|
|
263
|
+
scrollTo: O,
|
|
264
|
+
setTableData: j,
|
|
265
|
+
clear: _,
|
|
265
266
|
removeByKey: k
|
|
266
267
|
}), (e, n) => (W(), H(s(y).FormItem, g(e.formItem, {
|
|
267
268
|
name: e.name,
|
|
@@ -285,5 +286,5 @@ const Se = /* @__PURE__ */ z({
|
|
|
285
286
|
}
|
|
286
287
|
});
|
|
287
288
|
export {
|
|
288
|
-
|
|
289
|
+
Fe as default
|
|
289
290
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as W, useSlots as U, ref as y, watch as C, unref as s, createBlock as $, openBlock as q, withCtx as p, createVNode as w, mergeProps as J, createSlots as Q, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as M } from "vue";
|
|
2
2
|
import { ApForm as m } from "../../ap-form/index.mjs";
|
|
3
|
-
import { isEqual as ee, isArray as c, isUndefined as
|
|
3
|
+
import { isEqual as ee, isArray as c, isUndefined as te, isNumber as g, cloneDeep as ae, omit as oe } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
|
-
import
|
|
6
|
+
import "../../utils/index.mjs";
|
|
7
7
|
import { useGetEditableColumns as ne } from "../hooks/use-editable-columns.mjs";
|
|
8
8
|
import "../index.vue2.mjs";
|
|
9
9
|
import { useDevWarning as le } from "../../utils/warning.mjs";
|
|
@@ -11,8 +11,9 @@ import se from "../style/editable.mjs";
|
|
|
11
11
|
import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
12
|
import { useControllableValue as ie } from "../../hooks/useControllableValue.mjs";
|
|
13
13
|
import { useGlobalConfig as ue } from "../../config-provider/hooks/use-global-config.mjs";
|
|
14
|
+
import { isDef as b } from "../../utils/is.mjs";
|
|
14
15
|
import de from "../index.vue.mjs";
|
|
15
|
-
const
|
|
16
|
+
const Ee = /* @__PURE__ */ W({
|
|
16
17
|
name: "EditableGrid",
|
|
17
18
|
__name: "index",
|
|
18
19
|
props: {
|
|
@@ -115,7 +116,7 @@ const Fe = /* @__PURE__ */ W({
|
|
|
115
116
|
type: Boolean
|
|
116
117
|
},
|
|
117
118
|
rowSelection: {
|
|
118
|
-
type: Boolean,
|
|
119
|
+
type: [Boolean, Object],
|
|
119
120
|
default: void 0
|
|
120
121
|
},
|
|
121
122
|
onLoadingChange: {},
|
|
@@ -168,55 +169,55 @@ const Fe = /* @__PURE__ */ W({
|
|
|
168
169
|
expose: x,
|
|
169
170
|
emit: R
|
|
170
171
|
}) {
|
|
171
|
-
const B = U(),
|
|
172
|
+
const B = U(), t = v, {
|
|
172
173
|
b: S
|
|
173
174
|
} = re("editable-grid"), F = se("editable-grid"), E = R;
|
|
174
175
|
le("EditableGrid")(!1, "breaking", "EditableGrid has been EOL, Please use EditableAgGrid(https://aplus.aplnk.com/aplus-ui/components/ag-grid/editable/) instead.");
|
|
175
176
|
const h = y(), {
|
|
176
177
|
value: u,
|
|
177
178
|
updateValue: N
|
|
178
|
-
} = ie(
|
|
179
|
+
} = ie(t, E), i = y(), V = ue("valueTypeMap"), f = m.useWatch(t.name, i);
|
|
179
180
|
C(() => f.value, (e) => {
|
|
180
|
-
N(e),
|
|
181
|
+
N(e), t.onChange?.(e);
|
|
181
182
|
}, {
|
|
182
183
|
deep: !0,
|
|
183
184
|
flush: "post"
|
|
184
185
|
}), C(u, (e) => {
|
|
185
|
-
e !== s(f) && (ee(e, s(f)) || i.value?.setFieldValue(
|
|
186
|
+
e !== s(f) && (ee(e, s(f)) || i.value?.setFieldValue(t.name, e));
|
|
186
187
|
}, {
|
|
187
188
|
deep: !0
|
|
188
189
|
});
|
|
189
|
-
const k = ne(
|
|
190
|
+
const k = ne(t, V);
|
|
190
191
|
function L() {
|
|
191
192
|
i.value?.resetFields();
|
|
192
193
|
}
|
|
193
194
|
function _(e) {
|
|
194
|
-
return e ? (c(e) ? e : [e]).map((l) => c(l) ? [
|
|
195
|
+
return e ? (c(e) ? e : [e]).map((l) => c(l) ? [t.name, ...l] : [t.name, l]) : void 0;
|
|
195
196
|
}
|
|
196
197
|
async function D(e, n) {
|
|
197
|
-
return (await i.value?.validateFields(_(e), n))?.[
|
|
198
|
+
return (await i.value?.validateFields(_(e), n))?.[t.name];
|
|
198
199
|
}
|
|
199
|
-
function
|
|
200
|
+
function O(e, n) {
|
|
200
201
|
const l = s(u)?.length || 0;
|
|
201
|
-
if (b(
|
|
202
|
+
if (b(t.maxLength) && l >= t.maxLength)
|
|
202
203
|
return;
|
|
203
|
-
const
|
|
204
|
+
const a = {
|
|
204
205
|
...e || {}
|
|
205
206
|
};
|
|
206
|
-
i.value?.setFieldValue?.(
|
|
207
|
+
i.value?.setFieldValue?.(t.name, a, !0, (o, r) => {
|
|
207
208
|
if (!o[r]) {
|
|
208
|
-
o[r] = [
|
|
209
|
+
o[r] = [a];
|
|
209
210
|
return;
|
|
210
211
|
}
|
|
211
|
-
|
|
212
|
+
te(n) ? o[r].push(a) : o[r].splice(n, 0, a);
|
|
212
213
|
});
|
|
213
214
|
}
|
|
214
|
-
function
|
|
215
|
-
const l = s(u)?.length || 0,
|
|
216
|
-
if (b(
|
|
215
|
+
function T(e, n = "suffix") {
|
|
216
|
+
const l = s(u)?.length || 0, a = g(e) ? e : e.length;
|
|
217
|
+
if (b(t.maxLength) && l + a > t.maxLength)
|
|
217
218
|
return;
|
|
218
|
-
const o = g(e) ? new Array(e).fill(0).map(() => ({})) :
|
|
219
|
-
i.value?.setFieldValue?.(
|
|
219
|
+
const o = g(e) ? new Array(e).fill(0).map(() => ({})) : ae(e);
|
|
220
|
+
i.value?.setFieldValue?.(t.name, o, !0, (r, d) => {
|
|
220
221
|
if (!r[d]) {
|
|
221
222
|
r[d] = [...o];
|
|
222
223
|
return;
|
|
@@ -226,34 +227,34 @@ const Fe = /* @__PURE__ */ W({
|
|
|
226
227
|
}
|
|
227
228
|
function j(e) {
|
|
228
229
|
const n = new Set(g(e) ? [e] : e);
|
|
229
|
-
i.value?.setFieldValue?.(
|
|
230
|
-
l[
|
|
230
|
+
i.value?.setFieldValue?.(t.name, void 0, !0, (l, a) => {
|
|
231
|
+
l[a] = l[a].filter((o, r) => !n.has(r));
|
|
231
232
|
});
|
|
232
233
|
}
|
|
233
234
|
function A(e) {
|
|
234
235
|
const n = new Set(c(e) ? e : [e]);
|
|
235
|
-
n.size !== 0 && i.value?.setFieldValue?.(
|
|
236
|
-
l[
|
|
236
|
+
n.size !== 0 && i.value?.setFieldValue?.(t.name, void 0, !0, (l, a) => {
|
|
237
|
+
l[a] = l[a].filter((o) => !n.has(o[t.rowKey]));
|
|
237
238
|
});
|
|
238
239
|
}
|
|
239
240
|
function z() {
|
|
240
241
|
return s(u);
|
|
241
242
|
}
|
|
242
243
|
function G(e) {
|
|
243
|
-
i.value?.setFieldValue(
|
|
244
|
+
i.value?.setFieldValue(t.name, e);
|
|
244
245
|
}
|
|
245
246
|
function I(e) {
|
|
246
247
|
return s(u)?.[e];
|
|
247
248
|
}
|
|
248
249
|
function K(e, n, l = !0) {
|
|
249
|
-
i.value?.setFieldValue?.(
|
|
250
|
-
if (!(!
|
|
250
|
+
i.value?.setFieldValue?.(t.name, void 0, !0, (a, o) => {
|
|
251
|
+
if (!(!a[o] || !a[o][e])) {
|
|
251
252
|
if (!l) {
|
|
252
|
-
const r = Object.keys(
|
|
253
|
+
const r = Object.keys(a[o][e]);
|
|
253
254
|
for (const d of r)
|
|
254
|
-
d !==
|
|
255
|
+
d !== t.rowKey && delete a[o][e][d];
|
|
255
256
|
}
|
|
256
|
-
Object.assign(
|
|
257
|
+
Object.assign(a[o][e], {
|
|
257
258
|
...n
|
|
258
259
|
});
|
|
259
260
|
}
|
|
@@ -264,17 +265,17 @@ const Fe = /* @__PURE__ */ W({
|
|
|
264
265
|
h.value?.scrollToRow(n);
|
|
265
266
|
}
|
|
266
267
|
function H() {
|
|
267
|
-
i.value?.setFieldValue?.(
|
|
268
|
+
i.value?.setFieldValue?.(t.name, []);
|
|
268
269
|
}
|
|
269
270
|
return x({
|
|
270
271
|
resetFields: L,
|
|
271
272
|
validateFields: D,
|
|
272
|
-
add:
|
|
273
|
+
add: O,
|
|
273
274
|
remove: j,
|
|
274
275
|
getRowData: I,
|
|
275
276
|
getRowsData: z,
|
|
276
277
|
setRowData: K,
|
|
277
|
-
addMultiple:
|
|
278
|
+
addMultiple: T,
|
|
278
279
|
scrollTo: P,
|
|
279
280
|
clear: H,
|
|
280
281
|
setTableData: G,
|
|
@@ -283,7 +284,7 @@ const Fe = /* @__PURE__ */ W({
|
|
|
283
284
|
ref_key: "formRef",
|
|
284
285
|
ref: i,
|
|
285
286
|
"initial-values": {
|
|
286
|
-
[
|
|
287
|
+
[t.name]: s(u)
|
|
287
288
|
},
|
|
288
289
|
style: {
|
|
289
290
|
height: "100%"
|
|
@@ -293,7 +294,7 @@ const Fe = /* @__PURE__ */ W({
|
|
|
293
294
|
name: e.name,
|
|
294
295
|
"no-style": ""
|
|
295
296
|
}, {
|
|
296
|
-
default: p(() => [w(de, J(s(oe)(
|
|
297
|
+
default: p(() => [w(de, J(s(oe)(t, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
|
|
297
298
|
ref_key: "tableRef",
|
|
298
299
|
ref: h,
|
|
299
300
|
class: [s(S)(), s(F)],
|
|
@@ -302,9 +303,9 @@ const Fe = /* @__PURE__ */ W({
|
|
|
302
303
|
"search-form": !1
|
|
303
304
|
}), Q({
|
|
304
305
|
_: 2
|
|
305
|
-
}, [X(B, (l,
|
|
306
|
-
name:
|
|
307
|
-
fn: p((o) => [Y(e.$slots,
|
|
306
|
+
}, [X(B, (l, a) => ({
|
|
307
|
+
name: a,
|
|
308
|
+
fn: p((o) => [Y(e.$slots, a, Z(M(o || {})))])
|
|
308
309
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
309
310
|
_: 3
|
|
310
311
|
}, 8, ["name"])]),
|
|
@@ -313,5 +314,5 @@ const Fe = /* @__PURE__ */ W({
|
|
|
313
314
|
}
|
|
314
315
|
});
|
|
315
316
|
export {
|
|
316
|
-
|
|
317
|
+
Ee as default
|
|
317
318
|
};
|
|
@@ -16,16 +16,17 @@ import { DEFAULT_ROW_SELECTION_CONFIG as ue, sizeReverseMap as wt, sizeMap as St
|
|
|
16
16
|
import { useRenderColumns as bt } from "./hooks/use-render-columns.mjs";
|
|
17
17
|
import { useToken as xt } from "@aplus-frontend/antdv/es/theme/internal";
|
|
18
18
|
import "../scroll-bar/index.mjs";
|
|
19
|
-
import
|
|
20
|
-
import { getValidVNodeList as
|
|
21
|
-
import { useTableStyle as
|
|
22
|
-
import { useDevWarning as
|
|
23
|
-
import
|
|
24
|
-
import { useNamespace as
|
|
19
|
+
import "../utils/index.mjs";
|
|
20
|
+
import { getValidVNodeList as kt } from "../utils/slot.mjs";
|
|
21
|
+
import { useTableStyle as Ft } from "./hooks/use-table-style.mjs";
|
|
22
|
+
import { useDevWarning as Et } from "../utils/warning.mjs";
|
|
23
|
+
import It from "./style/index.mjs";
|
|
24
|
+
import { useNamespace as Bt } from "../config-provider/hooks/use-namespace.mjs";
|
|
25
25
|
import { useGlobalConfig as ce } from "../config-provider/hooks/use-global-config.mjs";
|
|
26
|
-
import { useLocale as
|
|
26
|
+
import { useLocale as Tt } from "../config-provider/hooks/use-locale.mjs";
|
|
27
|
+
import { isDef as Nt } from "../utils/is.mjs";
|
|
27
28
|
import Pt from "../scroll-bar/index.vue.mjs";
|
|
28
|
-
const
|
|
29
|
+
const io = /* @__PURE__ */ Qe({
|
|
29
30
|
name: "ApGrid",
|
|
30
31
|
__name: "index",
|
|
31
32
|
props: {
|
|
@@ -90,7 +91,7 @@ const so = /* @__PURE__ */ Qe({
|
|
|
90
91
|
footerCellConfig: {},
|
|
91
92
|
round: { type: Boolean, default: void 0 },
|
|
92
93
|
columns: {},
|
|
93
|
-
rowSelection: { type: Boolean },
|
|
94
|
+
rowSelection: { type: [Boolean, Object] },
|
|
94
95
|
card: { type: Boolean, default: !1 },
|
|
95
96
|
params: {},
|
|
96
97
|
request: {},
|
|
@@ -119,12 +120,12 @@ const so = /* @__PURE__ */ Qe({
|
|
|
119
120
|
},
|
|
120
121
|
setup(pe, { expose: fe }) {
|
|
121
122
|
const T = Ye(), o = pe, x = Ze()?.appContext.app;
|
|
122
|
-
x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(ne), x.__VXE_PC_UI_INSTALLED__ = !0),
|
|
123
|
+
x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(ne), x.__VXE_PC_UI_INSTALLED__ = !0), Et("ApGrid")(
|
|
123
124
|
!1,
|
|
124
125
|
"breaking",
|
|
125
126
|
"AgGrid has been EOL, Please use AgGrid(https://aplus.aplnk.com/aplus-ui/components/ag-grid/) instead."
|
|
126
127
|
);
|
|
127
|
-
const { e: k, b: u, be: me } =
|
|
128
|
+
const { e: k, b: u, be: me } = Bt("ap-grid"), ge = It("ap-grid"), he = ce("valueTypeMap"), Ce = ce("apGrid"), i = y([]), W = y([]), l = y(), F = y(o.size), ve = Ft(), [, ye] = xt(), { t: we } = Tt(), N = y(!0);
|
|
128
129
|
ne.setConfig({
|
|
129
130
|
i18n: (e, a) => we(`ap.${e}`, a)
|
|
130
131
|
});
|
|
@@ -167,7 +168,7 @@ const so = /* @__PURE__ */ Qe({
|
|
|
167
168
|
r,
|
|
168
169
|
t(he)
|
|
169
170
|
), r;
|
|
170
|
-
}) || [])), xe = n(() =>
|
|
171
|
+
}) || [])), xe = n(() => Nt(o.manual) ? o.manual : kt(T.searchFormExtra?.() || []).some((a) => a.type?.name === "ApView")), ke = n(() => [
|
|
171
172
|
u(),
|
|
172
173
|
o.card ? null : u("wrapper"),
|
|
173
174
|
o.adaptive ? u("adaptive") : null,
|
|
@@ -548,5 +549,5 @@ const so = /* @__PURE__ */ Qe({
|
|
|
548
549
|
}
|
|
549
550
|
});
|
|
550
551
|
export {
|
|
551
|
-
|
|
552
|
+
io as default
|
|
552
553
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { multiRows as
|
|
1
|
+
import { multiRows as r } from "../../style/index.mjs";
|
|
2
2
|
import { genComponentStyleHook as l } from "../../utils/cssinjs/index.mjs";
|
|
3
|
-
const
|
|
3
|
+
const i = (e) => {
|
|
4
4
|
const { componentCls: t } = e;
|
|
5
5
|
return {
|
|
6
6
|
[t]: {
|
|
7
7
|
[`${t}__header-cell--required`]: {
|
|
8
|
-
color:
|
|
9
|
-
paddingRight:
|
|
8
|
+
color: e.colorError,
|
|
9
|
+
paddingRight: e.spaceXXS
|
|
10
10
|
},
|
|
11
11
|
[`${t}-table-header`]: {
|
|
12
12
|
"&__title": {
|
|
13
|
-
...
|
|
13
|
+
...r(e),
|
|
14
14
|
textAlign: "right"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -24,9 +24,9 @@ const o = (e) => {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
}, d = l("EditableGrid", (e) => [
|
|
27
|
-
|
|
27
|
+
i(e)
|
|
28
28
|
]);
|
|
29
29
|
export {
|
|
30
30
|
d as default,
|
|
31
|
-
|
|
31
|
+
i as genEditableGridStyle
|
|
32
32
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { genSettingTriggerBtnStyle as
|
|
1
|
+
import { genSettingTriggerBtnStyle as n } from "../../ap-table/style/index.mjs";
|
|
2
2
|
import { multiRows as o, resetScrollbar as d } from "../../style/index.mjs";
|
|
3
3
|
import { genComponentStyleHook as p } from "../../utils/cssinjs/index.mjs";
|
|
4
4
|
import { aplusApGridIconFont as c } from "./font.mjs";
|
|
5
5
|
const g = (e) => {
|
|
6
|
-
const { componentCls: i, namespace: t } = e, l = `${i}-vxe-wrapper`, a = `${i}-pagination-wrapper`,
|
|
6
|
+
const { componentCls: i, namespace: t } = e, l = `${i}-vxe-wrapper`, a = `${i}-pagination-wrapper`, r = `.${t}-scroll-bar`;
|
|
7
7
|
return [
|
|
8
8
|
c,
|
|
9
9
|
{
|
|
@@ -50,11 +50,11 @@ const g = (e) => {
|
|
|
50
50
|
position: "sticky",
|
|
51
51
|
bottom: 0
|
|
52
52
|
},
|
|
53
|
-
[`&:has(${
|
|
53
|
+
[`&:has(${r})`]: {
|
|
54
54
|
[a]: {
|
|
55
55
|
"ul.ant-pagination": {
|
|
56
56
|
marginBlockStart: 0,
|
|
57
|
-
paddingBlockStart:
|
|
57
|
+
paddingBlockStart: e.spaceXS
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
".vxe-table--scroll-x-wrapper": {
|
|
@@ -85,7 +85,7 @@ const g = (e) => {
|
|
|
85
85
|
paddingBlockEnd: 0,
|
|
86
86
|
backgroundColor: "#fff",
|
|
87
87
|
borderRadius: e.borderRadius,
|
|
88
|
-
marginBlockEnd:
|
|
88
|
+
marginBlockEnd: e.spaceMD
|
|
89
89
|
},
|
|
90
90
|
[`${i}__table-wrapper`]: {
|
|
91
91
|
flex: 1,
|
|
@@ -109,7 +109,7 @@ const g = (e) => {
|
|
|
109
109
|
display: "flex",
|
|
110
110
|
flexWrap: "wrap",
|
|
111
111
|
alignItems: "center",
|
|
112
|
-
rowGap:
|
|
112
|
+
rowGap: e.space,
|
|
113
113
|
".ant-pagination-total-text": {
|
|
114
114
|
flex: 1,
|
|
115
115
|
height: "unset",
|
|
@@ -142,7 +142,7 @@ const g = (e) => {
|
|
|
142
142
|
color: e.textColor1
|
|
143
143
|
},
|
|
144
144
|
[`${i}-pagination--total-right`]: {
|
|
145
|
-
paddingInlineStart:
|
|
145
|
+
paddingInlineStart: e.spaceLG
|
|
146
146
|
},
|
|
147
147
|
[`${i}-pagination-total-wrapper`]: {
|
|
148
148
|
color: e.textColor2
|
|
@@ -157,7 +157,7 @@ const g = (e) => {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
|
-
...
|
|
160
|
+
...n(e),
|
|
161
161
|
// 实现表头不换行排列
|
|
162
162
|
"th.vxe-header--column .vxe-cell--wrapper": {
|
|
163
163
|
display: "flex",
|
|
@@ -196,7 +196,7 @@ const g = (e) => {
|
|
|
196
196
|
},
|
|
197
197
|
".vxe-cell--checkbox.is--disabled > .vxe-checkbox--icon": {
|
|
198
198
|
backgroundColor: e.tableHeaderBg,
|
|
199
|
-
borderRadius:
|
|
199
|
+
borderRadius: e.borderRadius
|
|
200
200
|
},
|
|
201
201
|
".vxe-cell--checkbox span.vxe-checkbox--icon": {
|
|
202
202
|
verticalAlign: "text-wrap"
|
|
@@ -208,7 +208,7 @@ const g = (e) => {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
];
|
|
211
|
-
},
|
|
211
|
+
}, b = p(
|
|
212
212
|
"ApGrid",
|
|
213
213
|
(e) => [g(e)],
|
|
214
214
|
{
|
|
@@ -216,6 +216,6 @@ const g = (e) => {
|
|
|
216
216
|
}
|
|
217
217
|
);
|
|
218
218
|
export {
|
|
219
|
-
|
|
219
|
+
b as default,
|
|
220
220
|
g as genApGridStyle
|
|
221
221
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { omit as d, isUndefined as s, isFunction as g, isNumber as m } from "lodash-unified";
|
|
2
|
-
import
|
|
2
|
+
import "../../utils/index.mjs";
|
|
3
|
+
import { isDef as C } from "../../utils/is.mjs";
|
|
3
4
|
const b = 20, y = 50, v = (e) => e.some((i) => !!i.html);
|
|
4
|
-
function
|
|
5
|
+
function z(e, i) {
|
|
5
6
|
const t = {
|
|
6
7
|
...d(e, [
|
|
7
8
|
"columns",
|
|
@@ -62,9 +63,9 @@ function k(e, i) {
|
|
|
62
63
|
}, t;
|
|
63
64
|
}
|
|
64
65
|
function l(e, i, t) {
|
|
65
|
-
const n = i === "X", r = n ? "x" : "y", a = n ? "virtualXConfig" : "virtualYConfig",
|
|
66
|
+
const n = i === "X", r = n ? "x" : "y", a = n ? "virtualXConfig" : "virtualYConfig", o = t?.[r], u = o !== !1, f = n ? b : y, c = m(o) && o >= 0 ? o : f;
|
|
66
67
|
e[a] = {
|
|
67
|
-
enabled:
|
|
68
|
+
enabled: u,
|
|
68
69
|
gt: c,
|
|
69
70
|
oSize: t?.oSize || 0
|
|
70
71
|
};
|
|
@@ -72,18 +73,18 @@ function l(e, i, t) {
|
|
|
72
73
|
function x(e) {
|
|
73
74
|
return e === !0 ? "left" : e;
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function F(e, i, t) {
|
|
76
77
|
const n = e === !0 || !e.type ? "checkbox" : e.type, r = (t === "mini" ? 9 * 2 : 12 * 2) + 16, a = e === !0 ? r : e.columnWidth || r;
|
|
77
|
-
let
|
|
78
|
-
return
|
|
79
|
-
(
|
|
78
|
+
let o = e === !0 ? void 0 : x(e.fixed);
|
|
79
|
+
return o || (o === !1 ? o = void 0 : o = i.some(
|
|
80
|
+
(u) => u.fixed === "left" || u.fixed === !0
|
|
80
81
|
) ? "left" : void 0), {
|
|
81
82
|
type: n,
|
|
82
83
|
width: a,
|
|
83
|
-
fixed:
|
|
84
|
+
fixed: o
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function K(e) {
|
|
87
88
|
const i = e?.width || "auto";
|
|
88
89
|
return {
|
|
89
90
|
type: "expand",
|
|
@@ -106,7 +107,7 @@ function R(e, i) {
|
|
|
106
107
|
return n += r, e.querySelector("span.anticon-question-circle") && (n += 20), n += h(e.querySelector(".vxe-cell--sort")) + h(e.querySelector(".vxe-cell--filter")), Math.ceil(n);
|
|
107
108
|
}
|
|
108
109
|
export {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
K as getRowExpandProps,
|
|
111
|
+
F as getRowSelectionProps,
|
|
112
|
+
z as toVxeProps
|
|
112
113
|
};
|
|
@@ -12,8 +12,8 @@ export declare const useOfflineList: <DataType = Recordable>(params: ApListProps
|
|
|
12
12
|
current: number;
|
|
13
13
|
pageSize: number;
|
|
14
14
|
total: number;
|
|
15
|
-
showSizeChanger: boolean
|
|
16
|
-
showQuickJumper: boolean
|
|
15
|
+
showSizeChanger: NonNullable<boolean | undefined>;
|
|
16
|
+
showQuickJumper: NonNullable<boolean | undefined>;
|
|
17
17
|
showLessItems: boolean | undefined;
|
|
18
18
|
size: "default" | "small";
|
|
19
19
|
pageSizeOptions: (string | number)[];
|