@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
|
@@ -3,11 +3,11 @@ import { genComponentStyleHook as t } from "../../utils/cssinjs/index.mjs";
|
|
|
3
3
|
const s = (e) => {
|
|
4
4
|
const {
|
|
5
5
|
componentCls: i,
|
|
6
|
-
checkCardDisabledOutlineColor:
|
|
7
|
-
checkCardIndicatorSize:
|
|
6
|
+
checkCardDisabledOutlineColor: l,
|
|
7
|
+
checkCardIndicatorSize: c,
|
|
8
8
|
checkCardOutlineWidth: r,
|
|
9
|
-
checkCardIndicatorOffset:
|
|
10
|
-
} = e, a = e.calc(
|
|
9
|
+
checkCardIndicatorOffset: d
|
|
10
|
+
} = e, a = e.calc(c).mul(2).equal();
|
|
11
11
|
return {
|
|
12
12
|
[`${i}`]: {
|
|
13
13
|
...o(e),
|
|
@@ -18,11 +18,11 @@ const s = (e) => {
|
|
|
18
18
|
cursor: "not-allowed !important"
|
|
19
19
|
},
|
|
20
20
|
"&--bordered": {
|
|
21
|
-
outline:
|
|
21
|
+
outline: `${e.lineWidth} ${e.lineType} ${e.borderColorBase}`
|
|
22
22
|
},
|
|
23
23
|
[`&:hover:not(${i}--disabled)`]: {
|
|
24
24
|
cursor: "pointer",
|
|
25
|
-
outline:
|
|
25
|
+
outline: `${e.lineWidth} ${e.lineType} ${e.colorPrimary}`
|
|
26
26
|
},
|
|
27
27
|
"&::after": {
|
|
28
28
|
content: '""',
|
|
@@ -36,21 +36,21 @@ const s = (e) => {
|
|
|
36
36
|
borderRadius: e.calc(e.borderRadius).add("2px").equal()
|
|
37
37
|
},
|
|
38
38
|
"&--checked": {
|
|
39
|
-
outline: `${r}
|
|
39
|
+
outline: `${r} ${e.lineType} ${e.colorPrimary}`,
|
|
40
40
|
[`&:hover:not(${i}--disabled)`]: {
|
|
41
|
-
outline: `${r}
|
|
41
|
+
outline: `${r} ${e.lineType} ${e.colorPrimary}`
|
|
42
42
|
},
|
|
43
43
|
"&::after": {
|
|
44
44
|
width: a,
|
|
45
45
|
height: a,
|
|
46
|
-
insetBlockStart:
|
|
47
|
-
insetInlineEnd:
|
|
46
|
+
insetBlockStart: d,
|
|
47
|
+
insetInlineEnd: d,
|
|
48
48
|
transition: "width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), inset 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"
|
|
49
49
|
},
|
|
50
50
|
[`&${i}--disabled`]: {
|
|
51
|
-
outlineColor:
|
|
51
|
+
outlineColor: l,
|
|
52
52
|
"&::after": {
|
|
53
|
-
backgroundColor:
|
|
53
|
+
backgroundColor: l
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
},
|
|
@@ -63,7 +63,7 @@ const s = (e) => {
|
|
|
63
63
|
[`${i}__title`]: {
|
|
64
64
|
...o(e),
|
|
65
65
|
marginBottom: e.spaceXS,
|
|
66
|
-
color:
|
|
66
|
+
color: e.textColor1,
|
|
67
67
|
fontWeight: "bold",
|
|
68
68
|
"&--disabled": {
|
|
69
69
|
color: e.textColor4
|
|
@@ -71,7 +71,7 @@ const s = (e) => {
|
|
|
71
71
|
},
|
|
72
72
|
[`${i}__content`]: {
|
|
73
73
|
...o(e),
|
|
74
|
-
color:
|
|
74
|
+
color: e.textColor1,
|
|
75
75
|
"&--disabled": {
|
|
76
76
|
color: e.textColor4
|
|
77
77
|
}
|
|
@@ -84,13 +84,13 @@ const s = (e) => {
|
|
|
84
84
|
lineHeight: 1,
|
|
85
85
|
userSelect: "none",
|
|
86
86
|
"& > img": {
|
|
87
|
-
width: e.calc(
|
|
87
|
+
width: e.calc(c).sub(r).equal(),
|
|
88
88
|
verticalAlign: "top"
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
|
-
},
|
|
93
|
+
}, u = t(
|
|
94
94
|
"CheckCard",
|
|
95
95
|
(e) => [s(e)],
|
|
96
96
|
{
|
|
@@ -102,5 +102,5 @@ const s = (e) => {
|
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
104
|
export {
|
|
105
|
-
|
|
105
|
+
u as default
|
|
106
106
|
};
|
|
@@ -27,10 +27,12 @@ const o = {
|
|
|
27
27
|
fontSize: 12,
|
|
28
28
|
fontSizeLG: 14,
|
|
29
29
|
fontSizeXL: 16,
|
|
30
|
+
fontSizeXXL: 20,
|
|
30
31
|
lineHeightSM: 16,
|
|
31
32
|
lineHeight: 18,
|
|
32
33
|
lineHeightLG: 22,
|
|
33
34
|
borderRadiusXS: 1,
|
|
35
|
+
borderRadiusSM: 2,
|
|
34
36
|
borderRadius: 4,
|
|
35
37
|
spaceXXS: 2,
|
|
36
38
|
spaceXS: 4,
|
|
@@ -44,7 +46,13 @@ const o = {
|
|
|
44
46
|
scrollbarThumbColorHover: "#959ca7",
|
|
45
47
|
scrollbarTrackColorHover: "#f2f6f9",
|
|
46
48
|
tableHeaderBg: "#f2f6f9",
|
|
47
|
-
lineClamp: 2
|
|
49
|
+
lineClamp: 2,
|
|
50
|
+
motionDurationFast: "0.1s",
|
|
51
|
+
motionDurationMid: "0.2s",
|
|
52
|
+
motionDurationSlow: "0.3s",
|
|
53
|
+
lineWidth: 1,
|
|
54
|
+
lineType: "solid",
|
|
55
|
+
controlHeight: 30
|
|
48
56
|
};
|
|
49
57
|
export {
|
|
50
58
|
o as defaultToken
|
|
@@ -14,8 +14,53 @@ import { ApRadioGroupToken } from '../business/ap-radio-group/style';
|
|
|
14
14
|
import { ApGridToken } from '../ap-grid/style';
|
|
15
15
|
import { TokenUtil } from '../utils/cssinjs/TokenUtil';
|
|
16
16
|
import { LoadingBarToken } from '../loading-bar/style';
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
import { HighlightToken } from '../highlight/style';
|
|
18
|
+
import { SearchFormToken } from '../ap-form/style/search-form';
|
|
19
|
+
import { ApUploadToken } from '../business/ap-upload/style/token';
|
|
20
|
+
import { ApUploadSingleToken } from '../business/ap-upload-file/ap-upload-single/style';
|
|
21
|
+
import { ApAttachmentToken } from '../business/ap-attachment/style';
|
|
22
|
+
import { ApLabelToken } from '../business/ap-label/style';
|
|
23
|
+
import { ApSelectLayoutToken } from '../business/ap-select-layout/style';
|
|
24
|
+
import { ApTableModalToken } from '../business/ap-table-modal/style';
|
|
25
|
+
import { ApSummaryToken } from '../business/ap-summary/style';
|
|
26
|
+
import { AppendixToken } from '../business/ap-appendix/style/token';
|
|
27
|
+
import { ApProductInfoToken } from '../business/ap-product-info/style';
|
|
28
|
+
import { ApViewToken } from '../business/ap-view/style';
|
|
29
|
+
export type FontToken = {
|
|
30
|
+
/**
|
|
31
|
+
* 最大号字体
|
|
32
|
+
*/
|
|
33
|
+
fontSizeXXL: number;
|
|
34
|
+
/**
|
|
35
|
+
* 超大号字体
|
|
36
|
+
*/
|
|
37
|
+
fontSizeXL: number;
|
|
38
|
+
/**
|
|
39
|
+
* 大号字体
|
|
40
|
+
*/
|
|
41
|
+
fontSizeLG: number;
|
|
42
|
+
/**
|
|
43
|
+
* 中等尺寸字体
|
|
44
|
+
*/
|
|
45
|
+
fontSize: number;
|
|
46
|
+
/**
|
|
47
|
+
* 小尺寸字体
|
|
48
|
+
*/
|
|
49
|
+
fontSizeSM: number;
|
|
50
|
+
/**
|
|
51
|
+
* 大型文本行高
|
|
52
|
+
*/
|
|
53
|
+
lineHeightLG: number;
|
|
54
|
+
/**
|
|
55
|
+
* 基础行高
|
|
56
|
+
*/
|
|
57
|
+
lineHeight: number;
|
|
58
|
+
/**
|
|
59
|
+
* 小型文本行高
|
|
60
|
+
*/
|
|
61
|
+
lineHeightSM: number;
|
|
62
|
+
};
|
|
63
|
+
export type ColorToken = {
|
|
19
64
|
/**
|
|
20
65
|
* 基础边框色
|
|
21
66
|
*/
|
|
@@ -112,37 +157,108 @@ export type BaseToken = {
|
|
|
112
157
|
* 控件背景色(一般同主系,但是更浅,适用块选中效果)
|
|
113
158
|
*/
|
|
114
159
|
colorBgControl: string;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
160
|
+
/**
|
|
161
|
+
* 表格表头背景色
|
|
162
|
+
*/
|
|
163
|
+
tableHeaderBg: string;
|
|
164
|
+
};
|
|
165
|
+
export type HeightToken = {
|
|
166
|
+
/**
|
|
167
|
+
* 最小尺寸间距
|
|
168
|
+
*/
|
|
124
169
|
spaceXXS: number;
|
|
170
|
+
/**
|
|
171
|
+
* 极小尺寸间距
|
|
172
|
+
*/
|
|
125
173
|
spaceXS: number;
|
|
174
|
+
/**
|
|
175
|
+
* 小尺寸间距
|
|
176
|
+
*/
|
|
126
177
|
spaceSM: number;
|
|
178
|
+
/**
|
|
179
|
+
* 标准尺寸间距
|
|
180
|
+
*/
|
|
127
181
|
space: number;
|
|
182
|
+
/**
|
|
183
|
+
* 较大尺寸间距
|
|
184
|
+
*/
|
|
128
185
|
spaceMD: number;
|
|
186
|
+
/**
|
|
187
|
+
* 大尺寸间距
|
|
188
|
+
*/
|
|
129
189
|
spaceLG: number;
|
|
190
|
+
/**
|
|
191
|
+
* 极大尺寸间距
|
|
192
|
+
*/
|
|
130
193
|
spaceXL: number;
|
|
194
|
+
/**
|
|
195
|
+
* 最大尺寸间距
|
|
196
|
+
*/
|
|
131
197
|
spaceXXL: number;
|
|
198
|
+
};
|
|
199
|
+
export type MotionToken = {
|
|
200
|
+
/**
|
|
201
|
+
* 动画持续时间-快速,适用于小型元素
|
|
202
|
+
*/
|
|
203
|
+
motionDurationFast: string;
|
|
204
|
+
/**
|
|
205
|
+
* 动画持续时间-中等,适用于中型元素
|
|
206
|
+
*/
|
|
207
|
+
motionDurationMid: string;
|
|
208
|
+
/**
|
|
209
|
+
* 动画持续时间-慢速,适用于大型元素
|
|
210
|
+
*/
|
|
211
|
+
motionDurationSlow: string;
|
|
212
|
+
};
|
|
213
|
+
/** 基础token */
|
|
214
|
+
export type BaseToken = FontToken & ColorToken & HeightToken & MotionToken & {
|
|
215
|
+
/**
|
|
216
|
+
* 最小尺寸圆角
|
|
217
|
+
*/
|
|
218
|
+
borderRadiusXS: number;
|
|
219
|
+
/**
|
|
220
|
+
* 小尺寸圆角
|
|
221
|
+
*/
|
|
222
|
+
borderRadiusSM: number;
|
|
223
|
+
/**
|
|
224
|
+
* 标准尺寸圆角
|
|
225
|
+
*/
|
|
226
|
+
borderRadius: number;
|
|
227
|
+
/**
|
|
228
|
+
* 滚动条滑块颜色
|
|
229
|
+
*/
|
|
132
230
|
scrollbarThumbColorBase: string;
|
|
231
|
+
/**
|
|
232
|
+
* hover时滚动条滑块颜色
|
|
233
|
+
*/
|
|
133
234
|
scrollbarThumbColorHover: string;
|
|
235
|
+
/**
|
|
236
|
+
* hover时滚动条滑轨颜色
|
|
237
|
+
*/
|
|
134
238
|
scrollbarTrackColorHover: string;
|
|
135
|
-
|
|
239
|
+
/**
|
|
240
|
+
* 基础线宽
|
|
241
|
+
*/
|
|
242
|
+
lineWidth: number;
|
|
243
|
+
/**
|
|
244
|
+
* 线条样式
|
|
245
|
+
*/
|
|
246
|
+
lineType: string;
|
|
136
247
|
/**
|
|
137
248
|
* 多行文本显示时指定显示的最大行数
|
|
138
249
|
*/
|
|
139
250
|
lineClamp: number;
|
|
251
|
+
/**
|
|
252
|
+
* 控件高度
|
|
253
|
+
*/
|
|
254
|
+
controlHeight: number;
|
|
140
255
|
};
|
|
141
256
|
/** 组件token */
|
|
142
257
|
export type ComponentsToken = {
|
|
143
258
|
ApAction: ActionToken;
|
|
144
259
|
CheckCard: CheckCardToken;
|
|
145
260
|
ApForm: ApFormToken;
|
|
261
|
+
SearchForm: SearchFormToken;
|
|
146
262
|
ApList: ApListToken;
|
|
147
263
|
Scrollbar: ScrollbarToken;
|
|
148
264
|
Mask: MaskToken;
|
|
@@ -154,6 +270,17 @@ export type ComponentsToken = {
|
|
|
154
270
|
ApRadioGroup: ApRadioGroupToken;
|
|
155
271
|
ApGrid: ApGridToken;
|
|
156
272
|
LoadingBar: LoadingBarToken;
|
|
273
|
+
Highlight: HighlightToken;
|
|
274
|
+
ApUpload: ApUploadToken;
|
|
275
|
+
ApUploadSingle: ApUploadSingleToken;
|
|
276
|
+
ApAttachment: ApAttachmentToken;
|
|
277
|
+
ApLabel: ApLabelToken;
|
|
278
|
+
ApSelectLayout: ApSelectLayoutToken;
|
|
279
|
+
ApTableModal: ApTableModalToken;
|
|
280
|
+
ApSummary: ApSummaryToken;
|
|
281
|
+
ApAppendix: AppendixToken;
|
|
282
|
+
ApProductInfo: ApProductInfoToken;
|
|
283
|
+
ApView: ApViewToken;
|
|
157
284
|
};
|
|
158
285
|
/** 全量token */
|
|
159
286
|
export type FullToken = BaseToken & {
|
|
@@ -4,7 +4,7 @@ import { ApForm as b } from "../ap-form/index.mjs";
|
|
|
4
4
|
import { isUndefined as M, isNumber as f, cloneDeep as ee, isArray as te, omit as g } from "lodash-unified";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
6
|
import { useInjectForm as ae } from "../ap-form/context.mjs";
|
|
7
|
-
import
|
|
7
|
+
import "../utils/index.mjs";
|
|
8
8
|
import oe from "./hooks/use-get-columns.mjs";
|
|
9
9
|
import { scrollToRowIndex as ne } from "./utils.mjs";
|
|
10
10
|
import { getModelValue as le } from "../ap-form/utils/get.mjs";
|
|
@@ -12,7 +12,8 @@ import { useDevWarning as se } from "../utils/warning.mjs";
|
|
|
12
12
|
import re from "./style/index.mjs";
|
|
13
13
|
import { useNamespace as ie } from "../config-provider/hooks/use-namespace.mjs";
|
|
14
14
|
import { useGlobalConfig as ue } from "../config-provider/hooks/use-global-config.mjs";
|
|
15
|
-
|
|
15
|
+
import { isDef as w } from "../utils/is.mjs";
|
|
16
|
+
const Te = /* @__PURE__ */ A({
|
|
16
17
|
name: "EditableTableFormItem",
|
|
17
18
|
__name: "form-item",
|
|
18
19
|
props: {
|
|
@@ -226,5 +227,5 @@ const Ie = /* @__PURE__ */ A({
|
|
|
226
227
|
}
|
|
227
228
|
});
|
|
228
229
|
export {
|
|
229
|
-
|
|
230
|
+
Te as default
|
|
230
231
|
};
|
|
@@ -4,7 +4,7 @@ import { ApForm as m } from "../ap-form/index.mjs";
|
|
|
4
4
|
import { isEqual as ae, isArray as c, isUndefined as ne, isNumber as h, cloneDeep as oe, omit as x } from "lodash-unified";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
6
|
import "../hooks/index.mjs";
|
|
7
|
-
import
|
|
7
|
+
import "../utils/index.mjs";
|
|
8
8
|
import { scrollToRowIndex as le } from "./utils.mjs";
|
|
9
9
|
import se from "./hooks/use-get-columns.mjs";
|
|
10
10
|
import { useDevWarning as re } from "../utils/warning.mjs";
|
|
@@ -12,7 +12,8 @@ import ue from "./style/index.mjs";
|
|
|
12
12
|
import { useNamespace as ie } from "../config-provider/hooks/use-namespace.mjs";
|
|
13
13
|
import { useControllableValue as de } from "../hooks/useControllableValue.mjs";
|
|
14
14
|
import { useGlobalConfig as fe } from "../config-provider/hooks/use-global-config.mjs";
|
|
15
|
-
|
|
15
|
+
import { isDef as y } from "../utils/is.mjs";
|
|
16
|
+
const Ve = /* @__PURE__ */ H({
|
|
16
17
|
name: "EditableTable",
|
|
17
18
|
__name: "index",
|
|
18
19
|
props: {
|
|
@@ -251,5 +252,5 @@ const Ee = /* @__PURE__ */ H({
|
|
|
251
252
|
}
|
|
252
253
|
});
|
|
253
254
|
export {
|
|
254
|
-
|
|
255
|
+
Ve as default
|
|
255
256
|
};
|
|
@@ -5,11 +5,11 @@ const n = (a) => {
|
|
|
5
5
|
return {
|
|
6
6
|
[t]: {
|
|
7
7
|
".ant-form-item": {
|
|
8
|
-
marginBlockEnd:
|
|
8
|
+
marginBlockEnd: a.spaceXL
|
|
9
9
|
},
|
|
10
10
|
[`${t}__header-cell--required`]: {
|
|
11
|
-
color:
|
|
12
|
-
paddingInlineEnd:
|
|
11
|
+
color: a.colorError,
|
|
12
|
+
paddingInlineEnd: a.spaceXXS
|
|
13
13
|
},
|
|
14
14
|
".ant-pagination": {
|
|
15
15
|
marginBlockEnd: "0 !important",
|
|
@@ -24,24 +24,24 @@ const n = (a) => {
|
|
|
24
24
|
backgroundColor: a.editableTableHeaderBg
|
|
25
25
|
},
|
|
26
26
|
".ant-table.ant-table-middle .ant-table-row .ant-table-cell:has(.is-editable)": {
|
|
27
|
-
paddingBlockStart:
|
|
27
|
+
paddingBlockStart: a.spaceXL,
|
|
28
28
|
paddingBlockEnd: 0
|
|
29
29
|
},
|
|
30
30
|
".ant-table.ant-table-middle .ant-table-row .ant-table-cell": {
|
|
31
|
-
padding:
|
|
31
|
+
padding: a.spaceLG
|
|
32
32
|
},
|
|
33
33
|
".ant-table.ant-table-middle .ant-table-thead .ant-table-cell": {
|
|
34
|
-
padding:
|
|
34
|
+
padding: a.spaceLG
|
|
35
35
|
},
|
|
36
36
|
".ant-table.ant-table-small .ant-table-row .ant-table-cell:has(.is-editable)": {
|
|
37
|
-
paddingBlockStart:
|
|
37
|
+
paddingBlockStart: a.spaceXL,
|
|
38
38
|
paddingBlockEnd: 0
|
|
39
39
|
},
|
|
40
40
|
".ant-table.ant-table-small .ant-table-row .ant-table-cell": {
|
|
41
|
-
padding:
|
|
41
|
+
padding: a.space
|
|
42
42
|
},
|
|
43
43
|
".ant-table.ant-table-small .ant-table-thead .ant-table-cell": {
|
|
44
|
-
padding:
|
|
44
|
+
padding: a.space
|
|
45
45
|
},
|
|
46
46
|
".ant-table-placeholder .ant-table-expanded-row-fixed": {
|
|
47
47
|
"&::after": {
|
|
@@ -62,7 +62,7 @@ const n = (a) => {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
},
|
|
65
|
+
}, r = l(
|
|
66
66
|
"EditableTable",
|
|
67
67
|
(a) => [n(a)],
|
|
68
68
|
{
|
|
@@ -70,6 +70,6 @@ const n = (a) => {
|
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
export {
|
|
73
|
-
|
|
73
|
+
r as default,
|
|
74
74
|
n as genEditableTableStyle
|
|
75
75
|
};
|
|
@@ -16,7 +16,7 @@ export declare function getEditableComponent(valueType: EditableColumnType['valu
|
|
|
16
16
|
* @param column
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
|
-
export declare function getColumnIsRequired(column: EditableColumnType<any, 'text', 'text'>): boolean
|
|
19
|
+
export declare function getColumnIsRequired(column: EditableColumnType<any, 'text', 'text'>): NonNullable<boolean | undefined>;
|
|
20
20
|
/**
|
|
21
21
|
* 获取ellipsis模式下最终需要渲染的字符串
|
|
22
22
|
* @param column
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { isVNode as C, createVNode as i, mergeProps as R, createTextVNode as h, Fragment as I } from "vue";
|
|
2
2
|
import { isFunction as c, isArray as T, isBoolean as S, omit as F, isString as x } from "lodash-unified";
|
|
3
3
|
import { apTableFormItemMap as q, noRenderAsFormItemValueList as w, apTableRenderItemMap as P } from "../ap-table/constants.mjs";
|
|
4
|
-
import
|
|
5
|
-
import { getValueStr as
|
|
6
|
-
import
|
|
7
|
-
import { Typography as
|
|
4
|
+
import "../utils/index.mjs";
|
|
5
|
+
import { getValueStr as V } from "../ap-field/number/helper.mjs";
|
|
6
|
+
import N from "scroll-into-view-if-needed";
|
|
7
|
+
import { Typography as j, Tooltip as v } from "@aplus-frontend/antdv";
|
|
8
8
|
import "../ap-form/index.mjs";
|
|
9
|
-
import { objectToString as
|
|
10
|
-
import { QuestionCircleOutlined as
|
|
11
|
-
import
|
|
12
|
-
|
|
9
|
+
import { objectToString as A, getTableRenderType as M } from "../ap-table/utils.mjs";
|
|
10
|
+
import { QuestionCircleOutlined as O } from "@ant-design/icons-vue";
|
|
11
|
+
import { isDef as W } from "../utils/is.mjs";
|
|
12
|
+
import m from "../ap-form/item/index.vue.mjs";
|
|
13
|
+
function y(e) {
|
|
13
14
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !C(e);
|
|
14
15
|
}
|
|
15
16
|
function _(e) {
|
|
@@ -21,18 +22,18 @@ function k(e) {
|
|
|
21
22
|
if (!e.fieldProps)
|
|
22
23
|
return !1;
|
|
23
24
|
const t = c(e.fieldProps) ? e.fieldProps({}) : e.fieldProps;
|
|
24
|
-
return
|
|
25
|
+
return W(t.required) ? t.required : (T(t.rules) ? t.rules : t.rules ? [t.rules] : []).some((o) => o.required);
|
|
25
26
|
}
|
|
26
27
|
function D(e, t) {
|
|
27
28
|
if (e.valueType === "text" || e.valueType === "textArea")
|
|
28
29
|
return t || "--";
|
|
29
30
|
if (e.valueType === "number") {
|
|
30
31
|
const r = e.fieldProps ? c(e.fieldProps) ? e.fieldProps({}) : e.fieldProps : {};
|
|
31
|
-
return
|
|
32
|
+
return V(t, r) || "--";
|
|
32
33
|
}
|
|
33
|
-
return
|
|
34
|
+
return A(t);
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function ee(e, t) {
|
|
36
37
|
const r = [e];
|
|
37
38
|
if (t) {
|
|
38
39
|
const o = T(t) ? t : [t];
|
|
@@ -40,9 +41,9 @@ function $(e, t) {
|
|
|
40
41
|
}
|
|
41
42
|
return r.join(" ");
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function te(e, t = document.body, r = {}) {
|
|
44
45
|
const o = t.querySelectorAll("tr.ant-table-row")[e];
|
|
45
|
-
o &&
|
|
46
|
+
o && N(o, {
|
|
46
47
|
scrollMode: "if-needed",
|
|
47
48
|
block: "nearest",
|
|
48
49
|
behavior: "smooth",
|
|
@@ -50,7 +51,7 @@ function ee(e, t = document.body, r = {}) {
|
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
53
|
function E(e, t, r) {
|
|
53
|
-
return w.includes(e.valueType) ? r : e.copyable || e.ellipsis ? i(
|
|
54
|
+
return w.includes(e.valueType) ? r : e.copyable || e.ellipsis ? i(j.Paragraph, {
|
|
54
55
|
copyable: e.copyable ? {
|
|
55
56
|
text: t,
|
|
56
57
|
tooltip: !1
|
|
@@ -64,11 +65,11 @@ function E(e, t, r) {
|
|
|
64
65
|
content: e.ellipsis ? D(e, t) : r
|
|
65
66
|
}, null) : r;
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function re(e, t, r, o, p, n) {
|
|
68
69
|
if (t) {
|
|
69
70
|
if (e.customRenderFormItem) {
|
|
70
71
|
const f = e.customRenderFormItem(e, r.field, t, p);
|
|
71
|
-
return i(
|
|
72
|
+
return i(m, F(r, ["field"]), y(f) ? f : {
|
|
72
73
|
default: () => [f]
|
|
73
74
|
});
|
|
74
75
|
}
|
|
@@ -76,17 +77,17 @@ function te(e, t, r, o, p, n) {
|
|
|
76
77
|
if (a)
|
|
77
78
|
return i(a, r, null);
|
|
78
79
|
const l = n?.[e.valueType]?.renderFormItem?.(r.field);
|
|
79
|
-
return l ? i(
|
|
80
|
+
return l ? i(m, r, y(l) ? l : {
|
|
80
81
|
default: () => [l]
|
|
81
82
|
}) : null;
|
|
82
83
|
}
|
|
83
84
|
let s;
|
|
84
|
-
const u =
|
|
85
|
+
const u = M(e), d = P[u];
|
|
85
86
|
return d ? s = i(d, R(r.field, {
|
|
86
87
|
mode: "read"
|
|
87
88
|
}), null) : s = n?.[u]?.render?.(o, p, r.field), s ? E(e, o, s) : null;
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function oe(e, t, r, o, p) {
|
|
90
91
|
const n = o?.({
|
|
91
92
|
title: e.title,
|
|
92
93
|
column: e
|
|
@@ -105,11 +106,11 @@ function re(e, t, r, o, p) {
|
|
|
105
106
|
alignItems: "center",
|
|
106
107
|
maxWidth: "100%"
|
|
107
108
|
}
|
|
108
|
-
}, [l, i(
|
|
109
|
+
}, [l, i(v, {
|
|
109
110
|
title: f,
|
|
110
111
|
placement: "bottom"
|
|
111
112
|
}, {
|
|
112
|
-
default: () => [i(
|
|
113
|
+
default: () => [i(O, {
|
|
113
114
|
style: {
|
|
114
115
|
padding: "4px",
|
|
115
116
|
color: p,
|
|
@@ -121,9 +122,9 @@ function re(e, t, r, o, p) {
|
|
|
121
122
|
export {
|
|
122
123
|
k as getColumnIsRequired,
|
|
123
124
|
_ as getEditableComponent,
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
oe as getEditableTableTitle,
|
|
126
|
+
re as getFinalNode,
|
|
126
127
|
D as getRawDisplayValue,
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
ee as mergeClass,
|
|
129
|
+
te as scrollToRowIndex
|
|
129
130
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { HighlightProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<Partial<{
|
|
6
|
+
default: (options: {
|
|
7
|
+
text: string;
|
|
8
|
+
}) => any;
|
|
9
|
+
keywords: (options: {
|
|
10
|
+
text: string;
|
|
11
|
+
}) => any;
|
|
12
|
+
}>> & Partial<{
|
|
13
|
+
default: (options: {
|
|
14
|
+
text: string;
|
|
15
|
+
}) => any;
|
|
16
|
+
keywords: (options: {
|
|
17
|
+
text: string;
|
|
18
|
+
}) => any;
|
|
19
|
+
}>;
|
|
20
|
+
refs: {};
|
|
21
|
+
rootEl: HTMLDivElement;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: DefineComponent<HighlightProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<HighlightProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as v, computed as c, createElementBlock as s, openBlock as n, normalizeClass as p, unref as i, Fragment as u, renderList as C, renderSlot as d, createTextVNode as m, toDisplayString as y } from "vue";
|
|
2
|
+
import "../config-provider/index.mjs";
|
|
3
|
+
import S from "./style/index.mjs";
|
|
4
|
+
import { useNamespace as $ } from "../config-provider/hooks/use-namespace.mjs";
|
|
5
|
+
const B = { key: 1 }, N = /* @__PURE__ */ v({
|
|
6
|
+
name: "Highlight",
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
content: {},
|
|
10
|
+
keywords: {},
|
|
11
|
+
ignoreCase: { type: Boolean }
|
|
12
|
+
},
|
|
13
|
+
setup(g) {
|
|
14
|
+
const o = g, { b: h, e: k } = $("highlight"), f = S("highlight"), l = c(() => {
|
|
15
|
+
const e = o.keywords;
|
|
16
|
+
if (!e)
|
|
17
|
+
return null;
|
|
18
|
+
let t = Array.isArray(e) ? e : [e];
|
|
19
|
+
return t = t.sort((r, a) => a.length - r.length), new RegExp(
|
|
20
|
+
`(${t.join("|")})`,
|
|
21
|
+
`${o.ignoreCase ? "i" : ""}g`
|
|
22
|
+
);
|
|
23
|
+
}), w = c(() => {
|
|
24
|
+
const e = o.content;
|
|
25
|
+
return !l.value || !e ? [{ keywords: !1, text: e }] : e.split(l.value).map((t) => ({ keywords: l.value.test(t), text: t }));
|
|
26
|
+
});
|
|
27
|
+
return (e, t) => (n(), s("div", {
|
|
28
|
+
class: p([i(h)(), i(f)])
|
|
29
|
+
}, [
|
|
30
|
+
(n(!0), s(u, null, C(w.value, ({ text: r, keywords: a }, _) => (n(), s(u, { key: _ }, [
|
|
31
|
+
a ? (n(), s("span", {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: p(i(k)("keywords"))
|
|
34
|
+
}, [
|
|
35
|
+
d(e.$slots, "keywords", { text: r }, () => [
|
|
36
|
+
m(y(r), 1)
|
|
37
|
+
])
|
|
38
|
+
], 2)) : (n(), s("span", B, [
|
|
39
|
+
d(e.$slots, "default", { text: r }, () => [
|
|
40
|
+
m(y(r), 1)
|
|
41
|
+
])
|
|
42
|
+
]))
|
|
43
|
+
], 64))), 128))
|
|
44
|
+
], 2));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
N as default
|
|
49
|
+
};
|