@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,16 +1,17 @@
|
|
|
1
|
-
import { isVNode as C, defineComponent as P, useSlots as k, ref as w, onBeforeUpdate as S, watch as B, unref as r, createVNode as N, mergeProps as d, createBlock as f, openBlock as
|
|
1
|
+
import { isVNode as C, defineComponent as P, useSlots as k, ref as w, onBeforeUpdate as S, watch as B, unref as r, createVNode as N, mergeProps as d, createBlock as f, openBlock as s, withCtx as R, createElementBlock as b, Fragment as x, renderList as j, resolveDynamicComponent as v } from "vue";
|
|
2
2
|
import { Col as F, Row as I } from "@aplus-frontend/antdv";
|
|
3
3
|
import { pick as D, isBoolean as O, omit as V } from "lodash-unified";
|
|
4
4
|
import { apFormItemColPropKeys as $ } from "../constant.mjs";
|
|
5
5
|
import { genRealChildren as A, buildColSpan as E, getStringName as G } from "./helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useNamespace as
|
|
7
|
+
import "../../utils/index.mjs";
|
|
8
|
+
import H from "../style/item-group.mjs";
|
|
9
|
+
import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import { isDef as L } from "../../utils/is.mjs";
|
|
10
11
|
function U(o) {
|
|
11
12
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !C(o);
|
|
12
13
|
}
|
|
13
|
-
const
|
|
14
|
+
const ee = /* @__PURE__ */ P({
|
|
14
15
|
name: "ApFormItemGroup",
|
|
15
16
|
__name: "index",
|
|
16
17
|
props: {
|
|
@@ -29,20 +30,20 @@ const Z = /* @__PURE__ */ P({
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
setup(o) {
|
|
32
|
-
const
|
|
33
|
+
const a = o, m = k(), {
|
|
33
34
|
b: i
|
|
34
|
-
} =
|
|
35
|
+
} = K("ap-form-item-group"), g = H("ap-form-item-group"), p = w([]);
|
|
35
36
|
S(() => {
|
|
36
|
-
|
|
37
|
+
p.value = c(m.default());
|
|
37
38
|
}), B(() => m.default(), (n) => {
|
|
38
|
-
|
|
39
|
+
p.value = c(n);
|
|
39
40
|
}, {
|
|
40
41
|
immediate: !0
|
|
41
42
|
});
|
|
42
43
|
function c(n) {
|
|
43
44
|
const l = A(n || []);
|
|
44
45
|
return r(l).map((e, y) => {
|
|
45
|
-
const t = e.props, u = D(t, $), _ = u?.span ? {} : E(
|
|
46
|
+
const t = e.props, u = D(t, $), _ = u?.span ? {} : E(a.countPerRow), h = O(t.hidden) ? !!t.hidden : L(t.hidden);
|
|
46
47
|
return {
|
|
47
48
|
key: `${y}-${G(t.name)}`,
|
|
48
49
|
node: N(F, d(_, u, {
|
|
@@ -53,10 +54,10 @@ const Z = /* @__PURE__ */ P({
|
|
|
53
54
|
};
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
|
-
return (n, l) => (
|
|
57
|
+
return (n, l) => (s(), f(r(I), d({
|
|
57
58
|
class: [r(i)(), r(g)]
|
|
58
|
-
}, r(V)(
|
|
59
|
-
default: R(() => [(
|
|
59
|
+
}, r(V)(a, ["countPerRow"])), {
|
|
60
|
+
default: R(() => [(s(!0), b(x, null, j(p.value, (e) => (s(), f(v(e.node), {
|
|
60
61
|
key: e.key
|
|
61
62
|
}))), 128))]),
|
|
62
63
|
_: 1
|
|
@@ -64,5 +65,5 @@ const Z = /* @__PURE__ */ P({
|
|
|
64
65
|
}
|
|
65
66
|
});
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
+
ee as default
|
|
68
69
|
};
|
|
@@ -66,9 +66,9 @@ declare function __VLS_template(): {
|
|
|
66
66
|
type: "up" | "down";
|
|
67
67
|
}) => void) | undefined;
|
|
68
68
|
readonly type?: string | undefined;
|
|
69
|
+
readonly placeholder?: string | undefined;
|
|
69
70
|
readonly name?: string | undefined;
|
|
70
71
|
readonly id?: string | undefined;
|
|
71
|
-
readonly placeholder?: string | undefined;
|
|
72
72
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
73
73
|
readonly addonBefore?: any;
|
|
74
74
|
readonly addonAfter?: any;
|
|
@@ -561,9 +561,9 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
561
561
|
type: "up" | "down";
|
|
562
562
|
}) => void) | undefined;
|
|
563
563
|
readonly type?: string | undefined;
|
|
564
|
+
readonly placeholder?: string | undefined;
|
|
564
565
|
readonly name?: string | undefined;
|
|
565
566
|
readonly id?: string | undefined;
|
|
566
|
-
readonly placeholder?: string | undefined;
|
|
567
567
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
568
568
|
readonly addonBefore?: any;
|
|
569
569
|
readonly addonAfter?: any;
|
|
@@ -66,6 +66,7 @@ declare function __VLS_template(): {
|
|
|
66
66
|
readonly direction?: "ltr" | "rtl" | undefined;
|
|
67
67
|
readonly animation?: string | undefined;
|
|
68
68
|
readonly children?: VueNode[] | undefined;
|
|
69
|
+
readonly placeholder?: any;
|
|
69
70
|
readonly prefixCls?: string | undefined;
|
|
70
71
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
71
72
|
readonly loading?: boolean | undefined;
|
|
@@ -76,7 +77,6 @@ declare function __VLS_template(): {
|
|
|
76
77
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
77
78
|
readonly virtual?: boolean | undefined;
|
|
78
79
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
79
|
-
readonly placeholder?: any;
|
|
80
80
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
81
81
|
readonly defaultValue?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
82
82
|
readonly prefix?: any;
|
|
@@ -715,6 +715,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
715
715
|
readonly direction?: "ltr" | "rtl" | undefined;
|
|
716
716
|
readonly animation?: string | undefined;
|
|
717
717
|
readonly children?: VueNode[] | undefined;
|
|
718
|
+
readonly placeholder?: any;
|
|
718
719
|
readonly prefixCls?: string | undefined;
|
|
719
720
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
720
721
|
readonly loading?: boolean | undefined;
|
|
@@ -725,7 +726,6 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
725
726
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
726
727
|
readonly virtual?: boolean | undefined;
|
|
727
728
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
728
|
-
readonly placeholder?: any;
|
|
729
729
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
730
730
|
readonly defaultValue?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
731
731
|
readonly prefix?: any;
|
|
@@ -46,6 +46,7 @@ declare function __VLS_template(): {
|
|
|
46
46
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
47
47
|
readonly value?: string | number | undefined;
|
|
48
48
|
readonly disabled?: boolean | undefined;
|
|
49
|
+
readonly placeholder?: string | number | undefined;
|
|
49
50
|
readonly prefixCls?: string | undefined;
|
|
50
51
|
readonly name?: string | undefined;
|
|
51
52
|
readonly loading?: boolean | undefined;
|
|
@@ -56,7 +57,6 @@ declare function __VLS_template(): {
|
|
|
56
57
|
readonly focused?: boolean | undefined;
|
|
57
58
|
readonly readonly?: boolean | undefined;
|
|
58
59
|
readonly autocomplete?: string | undefined;
|
|
59
|
-
readonly placeholder?: string | number | undefined;
|
|
60
60
|
readonly maxlength?: number | undefined;
|
|
61
61
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
62
62
|
readonly htmlSize?: number | undefined;
|
|
@@ -203,6 +203,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
|
|
|
203
203
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
204
204
|
readonly value?: string | number | undefined;
|
|
205
205
|
readonly disabled?: boolean | undefined;
|
|
206
|
+
readonly placeholder?: string | number | undefined;
|
|
206
207
|
readonly prefixCls?: string | undefined;
|
|
207
208
|
readonly name?: string | undefined;
|
|
208
209
|
readonly loading?: boolean | undefined;
|
|
@@ -213,7 +214,6 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
|
|
|
213
214
|
readonly focused?: boolean | undefined;
|
|
214
215
|
readonly readonly?: boolean | undefined;
|
|
215
216
|
readonly autocomplete?: string | undefined;
|
|
216
|
-
readonly placeholder?: string | number | undefined;
|
|
217
217
|
readonly maxlength?: number | undefined;
|
|
218
218
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
219
219
|
readonly htmlSize?: number | undefined;
|
|
@@ -47,6 +47,7 @@ declare function __VLS_template(): {
|
|
|
47
47
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
48
48
|
readonly value?: string | number | undefined;
|
|
49
49
|
readonly disabled?: boolean | undefined;
|
|
50
|
+
readonly placeholder?: string | number | undefined;
|
|
50
51
|
readonly prefixCls?: string | undefined;
|
|
51
52
|
readonly name?: string | undefined;
|
|
52
53
|
readonly loading?: boolean | undefined;
|
|
@@ -57,7 +58,6 @@ declare function __VLS_template(): {
|
|
|
57
58
|
readonly focused?: boolean | undefined;
|
|
58
59
|
readonly readonly?: boolean | undefined;
|
|
59
60
|
readonly autocomplete?: string | undefined;
|
|
60
|
-
readonly placeholder?: string | number | undefined;
|
|
61
61
|
readonly maxlength?: number | undefined;
|
|
62
62
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
63
63
|
readonly htmlSize?: number | undefined;
|
|
@@ -210,6 +210,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
|
210
210
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
211
211
|
readonly value?: string | number | undefined;
|
|
212
212
|
readonly disabled?: boolean | undefined;
|
|
213
|
+
readonly placeholder?: string | number | undefined;
|
|
213
214
|
readonly prefixCls?: string | undefined;
|
|
214
215
|
readonly name?: string | undefined;
|
|
215
216
|
readonly loading?: boolean | undefined;
|
|
@@ -220,7 +221,6 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
|
220
221
|
readonly focused?: boolean | undefined;
|
|
221
222
|
readonly readonly?: boolean | undefined;
|
|
222
223
|
readonly autocomplete?: string | undefined;
|
|
223
|
-
readonly placeholder?: string | number | undefined;
|
|
224
224
|
readonly maxlength?: number | undefined;
|
|
225
225
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
226
226
|
readonly htmlSize?: number | undefined;
|
|
@@ -70,6 +70,7 @@ declare function __VLS_template(): {
|
|
|
70
70
|
readonly direction?: "ltr" | "rtl" | undefined;
|
|
71
71
|
readonly animation?: string | undefined;
|
|
72
72
|
readonly children?: VueNode[] | undefined;
|
|
73
|
+
readonly placeholder?: any;
|
|
73
74
|
readonly prefixCls?: string | undefined;
|
|
74
75
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
75
76
|
readonly loading?: boolean | undefined;
|
|
@@ -81,7 +82,6 @@ declare function __VLS_template(): {
|
|
|
81
82
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
82
83
|
readonly virtual?: boolean | undefined;
|
|
83
84
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
84
|
-
readonly placeholder?: any;
|
|
85
85
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
86
86
|
readonly defaultValue?: unknown;
|
|
87
87
|
readonly prefix?: any;
|
|
@@ -861,6 +861,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
861
861
|
readonly direction?: "ltr" | "rtl" | undefined;
|
|
862
862
|
readonly animation?: string | undefined;
|
|
863
863
|
readonly children?: VueNode[] | undefined;
|
|
864
|
+
readonly placeholder?: any;
|
|
864
865
|
readonly prefixCls?: string | undefined;
|
|
865
866
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
866
867
|
readonly loading?: boolean | undefined;
|
|
@@ -872,7 +873,6 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
872
873
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
873
874
|
readonly virtual?: boolean | undefined;
|
|
874
875
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
875
|
-
readonly placeholder?: any;
|
|
876
876
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
877
877
|
readonly defaultValue?: unknown;
|
|
878
878
|
readonly prefix?: any;
|
|
@@ -143,7 +143,7 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
|
|
|
143
143
|
delay?: number;
|
|
144
144
|
};
|
|
145
145
|
danger: boolean;
|
|
146
|
-
htmlType:
|
|
146
|
+
htmlType: ButtonHTMLType;
|
|
147
147
|
ghost: boolean;
|
|
148
148
|
iconPosition: ButtonIconPosition;
|
|
149
149
|
}> | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, ref as y, toRef as w, createBlock as
|
|
1
|
+
import { defineComponent as S, ref as y, toRef as w, createBlock as u, openBlock as i, unref as e, withCtx as o, createVNode as t, normalizeClass as l, withDirectives as x, createElementVNode as f, toDisplayString as d, vShow as R, createElementBlock as D, Fragment as L, renderList as N, resolveDynamicComponent as I, createTextVNode as k } from "vue";
|
|
2
2
|
import { Popover as P, Tooltip as T, Button as g, Row as V, Col as $, Divider as z, Flex as A } from "@aplus-frontend/antdv";
|
|
3
3
|
import { IconApFilterOutlined as E } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
@@ -14,15 +14,15 @@ const Y = /* @__PURE__ */ S({
|
|
|
14
14
|
onSubmit: { type: Function },
|
|
15
15
|
submitLoading: { type: Boolean }
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const C =
|
|
17
|
+
setup(b) {
|
|
18
|
+
const C = b, F = y(), { e: s, b: c } = U("ap-form-search-form"), h = O("ap-form-search-form"), { t: m } = q(), a = y(!1), B = w(() => C.config), { count: v } = j(B);
|
|
19
19
|
function _(r) {
|
|
20
20
|
return r?.closest(".ant-form") || document.body;
|
|
21
21
|
}
|
|
22
|
-
return (r,
|
|
23
|
-
open:
|
|
24
|
-
"onUpdate:open":
|
|
25
|
-
"overlay-class-name": `${e(
|
|
22
|
+
return (r, p) => (i(), u(e(P), {
|
|
23
|
+
open: a.value,
|
|
24
|
+
"onUpdate:open": p[1] || (p[1] = (n) => a.value = n),
|
|
25
|
+
"overlay-class-name": `${e(s)("popover")} ${e(h)}`,
|
|
26
26
|
trigger: "click",
|
|
27
27
|
placement: "bottom",
|
|
28
28
|
mask: "",
|
|
@@ -31,18 +31,18 @@ const Y = /* @__PURE__ */ S({
|
|
|
31
31
|
"force-render": !0
|
|
32
32
|
}, {
|
|
33
33
|
content: o(() => [
|
|
34
|
-
|
|
35
|
-
class:
|
|
34
|
+
f("div", {
|
|
35
|
+
class: l([e(s)("popover-content")]),
|
|
36
36
|
style: { paddingBottom: "4px", width: "825px" }
|
|
37
37
|
}, [
|
|
38
38
|
t(e(V), { gutter: 8 }, {
|
|
39
39
|
default: o(() => [
|
|
40
|
-
(
|
|
40
|
+
(i(!0), D(L, null, N(r.config, (n) => (i(), u(e($), {
|
|
41
41
|
key: n.key,
|
|
42
42
|
span: 8
|
|
43
43
|
}, {
|
|
44
44
|
default: o(() => [
|
|
45
|
-
(
|
|
45
|
+
(i(), u(I(n.node)))
|
|
46
46
|
]),
|
|
47
47
|
_: 2
|
|
48
48
|
}, 1024))), 128))
|
|
@@ -51,30 +51,32 @@ const Y = /* @__PURE__ */ S({
|
|
|
51
51
|
})
|
|
52
52
|
], 2),
|
|
53
53
|
t(e(z), { style: { margin: "0" } }),
|
|
54
|
-
|
|
55
|
-
class:
|
|
54
|
+
f("div", {
|
|
55
|
+
class: l(e(s)("popover-footer"))
|
|
56
56
|
}, [
|
|
57
|
-
t(e(A), {
|
|
57
|
+
t(e(A), {
|
|
58
|
+
justify: "end",
|
|
59
|
+
gap: 10
|
|
60
|
+
}, {
|
|
58
61
|
default: o(() => [
|
|
59
62
|
t(e(g), {
|
|
60
|
-
onClick:
|
|
63
|
+
onClick: p[0] || (p[0] = (n) => a.value = !1)
|
|
61
64
|
}, {
|
|
62
65
|
default: o(() => [
|
|
63
|
-
|
|
66
|
+
k(d(e(m)("ap.common.cancelText")), 1)
|
|
64
67
|
]),
|
|
65
68
|
_: 1
|
|
66
69
|
}),
|
|
67
70
|
t(e(g), {
|
|
68
|
-
class: a(e(p)("popover-footer-confirm-btn")),
|
|
69
71
|
type: "primary",
|
|
70
72
|
loading: r.submitLoading,
|
|
71
73
|
onClick: r.onSubmit
|
|
72
74
|
}, {
|
|
73
75
|
default: o(() => [
|
|
74
|
-
|
|
76
|
+
k(d(e(m)("ap.apForm.search.search")), 1)
|
|
75
77
|
]),
|
|
76
78
|
_: 1
|
|
77
|
-
}, 8, ["
|
|
79
|
+
}, 8, ["loading", "onClick"])
|
|
78
80
|
]),
|
|
79
81
|
_: 1
|
|
80
82
|
})
|
|
@@ -89,11 +91,11 @@ const Y = /* @__PURE__ */ S({
|
|
|
89
91
|
t(e(g), {
|
|
90
92
|
ref_key: "triggerBtnRef",
|
|
91
93
|
ref: F,
|
|
92
|
-
class:
|
|
94
|
+
class: l([e(c)("trigger-btn"), { [e(c)("trigger-btn-active")]: a.value }])
|
|
93
95
|
}, {
|
|
94
96
|
icon: o(() => [
|
|
95
|
-
x(
|
|
96
|
-
class:
|
|
97
|
+
x(f("sup", {
|
|
98
|
+
class: l(e(c)("trigger-btn-badge"))
|
|
97
99
|
}, d(e(v)), 3), [
|
|
98
100
|
[R, e(v) !== 0]
|
|
99
101
|
]),
|
|
@@ -97,7 +97,10 @@ const X = /* @__PURE__ */ S({
|
|
|
97
97
|
n("div", {
|
|
98
98
|
class: o(e(f)("popover-footer"))
|
|
99
99
|
}, [
|
|
100
|
-
t(e(_), {
|
|
100
|
+
t(e(_), {
|
|
101
|
+
justify: "end",
|
|
102
|
+
gap: 8
|
|
103
|
+
}, {
|
|
101
104
|
default: r(() => [
|
|
102
105
|
t(e(g), {
|
|
103
106
|
onClick: u[0] || (u[0] = (d) => p.value = !1)
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { isBoolean as p } from "lodash-unified";
|
|
2
2
|
import { ref as f, computed as c } from "vue";
|
|
3
|
-
import { getStringName as
|
|
4
|
-
import
|
|
5
|
-
import { getTargetNode as
|
|
3
|
+
import { getStringName as m } from "../../item-group/helper.mjs";
|
|
4
|
+
import "../../../utils/index.mjs";
|
|
5
|
+
import { getTargetNode as d } from "./use-collapse-input-count.mjs";
|
|
6
|
+
import { isDef as u } from "../../../utils/is.mjs";
|
|
6
7
|
function l(n, r) {
|
|
7
8
|
const i = new Set(n.map((o) => o.name)), a = /* @__PURE__ */ new Map();
|
|
8
9
|
for (const o of r) {
|
|
9
|
-
const e = String(d(
|
|
10
|
+
const e = String(m(d(o).props?.name));
|
|
10
11
|
e && i.has(e) && a.set(e, o);
|
|
11
12
|
}
|
|
12
13
|
const s = /* @__PURE__ */ new Set(), t = [];
|
|
@@ -18,12 +19,12 @@ function l(n, r) {
|
|
|
18
19
|
s.has(o) || t.push(o);
|
|
19
20
|
return t;
|
|
20
21
|
}
|
|
21
|
-
const
|
|
22
|
+
const C = (n) => {
|
|
22
23
|
const r = f(!1), i = c(() => (n.value || []).map((t) => {
|
|
23
|
-
const e =
|
|
24
|
+
const e = d(t).props;
|
|
24
25
|
return {
|
|
25
26
|
label: e.description || e.label || e.placeholder,
|
|
26
|
-
name:
|
|
27
|
+
name: m(e.name),
|
|
27
28
|
isHidden: p(e.hidden) ? !!e.hidden : u(e.hidden)
|
|
28
29
|
};
|
|
29
30
|
}));
|
|
@@ -41,5 +42,5 @@ const w = (n) => {
|
|
|
41
42
|
};
|
|
42
43
|
};
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
C as useSorter
|
|
45
46
|
};
|
|
@@ -5,18 +5,19 @@ import "../item/index.vue2.mjs";
|
|
|
5
5
|
import { genRealChildren as G } from "../item-group/helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import { isArray as xe, isBoolean as ye, omit as ve } from "lodash-unified";
|
|
8
|
-
import
|
|
9
|
-
import { execFunc as
|
|
8
|
+
import "../../utils/index.mjs";
|
|
9
|
+
import { execFunc as J, diffFormItem as Se } from "./utils.mjs";
|
|
10
10
|
import "./components/popover-filter.vue.mjs";
|
|
11
11
|
import { useCountPerRow as Ce } from "./hooks/use-count-per-row.mjs";
|
|
12
12
|
import "./components/popover-sorter/index.vue.mjs";
|
|
13
13
|
import { useSorter as we } from "./hooks/use-sorter.mjs";
|
|
14
14
|
import { getTargetNode as Re } from "./hooks/use-collapse-input-count.mjs";
|
|
15
|
-
import { floorWith as Q } from "@fruits-chain/utils";
|
|
16
15
|
import { useDevWarning as _e } from "../../utils/warning.mjs";
|
|
17
16
|
import be from "../style/search-form.mjs";
|
|
17
|
+
import { floorWith as K } from "../../utils/format.mjs";
|
|
18
18
|
import { useNamespace as Fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
19
19
|
import { useLocale as Ae } from "../../config-provider/hooks/use-locale.mjs";
|
|
20
|
+
import { isDef as Q } from "../../utils/is.mjs";
|
|
20
21
|
import X from "../item/index.vue.mjs";
|
|
21
22
|
import Ne from "./components/popover-filter.vue2.mjs";
|
|
22
23
|
import Be from "./components/popover-sorter/index.vue2.mjs";
|
|
@@ -24,7 +25,7 @@ import Ie from "../ap-form.vue2.mjs";
|
|
|
24
25
|
function Te(d) {
|
|
25
26
|
return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !ce(d);
|
|
26
27
|
}
|
|
27
|
-
const r = 100,
|
|
28
|
+
const r = 100, nt = /* @__PURE__ */ ue({
|
|
28
29
|
name: "ApFormSearchForm",
|
|
29
30
|
__name: "index",
|
|
30
31
|
props: {
|
|
@@ -133,14 +134,14 @@ const r = 100, at = /* @__PURE__ */ ue({
|
|
|
133
134
|
} = Ae(), v = B(), E = B(), ee = Ce(t, E), W = B();
|
|
134
135
|
function z() {
|
|
135
136
|
const e = v.value?.getFieldsValueTransformed(!0);
|
|
136
|
-
|
|
137
|
+
J(t.onSubmit, e);
|
|
137
138
|
}
|
|
138
139
|
function te() {
|
|
139
|
-
t.customReset || v.value?.resetFields?.(),
|
|
140
|
+
t.customReset || v.value?.resetFields?.(), J(t.onReset);
|
|
140
141
|
}
|
|
141
|
-
const oe = (e) =>
|
|
142
|
+
const oe = (e) => Q(e) ? (xe(e) ? e : [e]).join("") : Date.now();
|
|
142
143
|
let O = [];
|
|
143
|
-
const m = M(G(y.default())), c = M(y.extra?.()), L = w(() =>
|
|
144
|
+
const m = M(G(y.default())), c = M(y.extra?.()), L = w(() => K(r / a(ee), 4)), {
|
|
144
145
|
items: b,
|
|
145
146
|
sorted: $,
|
|
146
147
|
handleClickConfirm: F
|
|
@@ -151,7 +152,7 @@ const r = 100, at = /* @__PURE__ */ ue({
|
|
|
151
152
|
c.value = e;
|
|
152
153
|
});
|
|
153
154
|
function ae(e) {
|
|
154
|
-
return
|
|
155
|
+
return K(e * (r / 24), 4);
|
|
155
156
|
}
|
|
156
157
|
const n = w(() => {
|
|
157
158
|
const e = m.value, u = [], l = [], g = [], s = a(L);
|
|
@@ -162,7 +163,7 @@ const r = 100, at = /* @__PURE__ */ ue({
|
|
|
162
163
|
if (!D)
|
|
163
164
|
return;
|
|
164
165
|
const i = D.props;
|
|
165
|
-
if (ye(i.hidden) ? !!i.hidden :
|
|
166
|
+
if (ye(i.hidden) ? !!i.hidden : Q(i.hidden))
|
|
166
167
|
u.push(N);
|
|
167
168
|
else {
|
|
168
169
|
let C = i.span ? ae(i.span) : s;
|
|
@@ -280,5 +281,5 @@ const r = 100, at = /* @__PURE__ */ ue({
|
|
|
280
281
|
}
|
|
281
282
|
});
|
|
282
283
|
export {
|
|
283
|
-
|
|
284
|
+
nt as default
|
|
284
285
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as c, useSlots as u, cloneVNode as p, onMounted as f, createElementBlock as d, openBlock as o, Fragment as V, renderList as _, createBlock as y, resolveDynamicComponent as C } from "vue";
|
|
2
2
|
import { useInjectForm as F } from "../context.mjs";
|
|
3
3
|
import { isFunction as k, cloneDeep as g } from "lodash-unified";
|
|
4
|
-
import { isPromise as h } from "
|
|
4
|
+
import { isPromise as h } from "../../utils/is.mjs";
|
|
5
5
|
const I = /* @__PURE__ */ c({
|
|
6
6
|
name: "ApFormSet",
|
|
7
7
|
__name: "index",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { genComponentStyleHook as a } from "../../utils/cssinjs/index.mjs";
|
|
2
|
-
const
|
|
3
|
-
const { componentCls:
|
|
2
|
+
const i = (n) => {
|
|
3
|
+
const { componentCls: t, namespace: e } = n;
|
|
4
4
|
return {
|
|
5
|
-
[
|
|
5
|
+
[t]: {
|
|
6
6
|
// bordered
|
|
7
7
|
"&--bordered": {
|
|
8
8
|
boxSizing: "border-box",
|
|
9
|
-
border:
|
|
9
|
+
border: `${n.lineWidth} ${n.lineType} ${n.borderColorBase}`,
|
|
10
10
|
borderRadius: n.borderRadius,
|
|
11
11
|
paddingInline: n.space,
|
|
12
12
|
".ant-input-affix-wrapper": {
|
|
13
13
|
padding: 0
|
|
14
14
|
},
|
|
15
|
-
[`&:has(.${
|
|
15
|
+
[`&:has(.${e}-batch-input-group):has(.ant-select)`]: {
|
|
16
16
|
".ant-input-affix-wrapper": {
|
|
17
17
|
paddingInlineEnd: n.space
|
|
18
18
|
}
|
|
@@ -46,7 +46,7 @@ const r = (n) => {
|
|
|
46
46
|
background: "unset !important"
|
|
47
47
|
},
|
|
48
48
|
".ant-select-single .ant-select-selector": {
|
|
49
|
-
height:
|
|
49
|
+
height: `${n.controlHeight} !important`
|
|
50
50
|
},
|
|
51
51
|
"input.ant-input-number-input": {
|
|
52
52
|
paddingInlineStart: 0
|
|
@@ -66,13 +66,13 @@ const r = (n) => {
|
|
|
66
66
|
},
|
|
67
67
|
".ant-form-item-label > label": {
|
|
68
68
|
paddingRight: n.spaceLG,
|
|
69
|
-
height:
|
|
69
|
+
height: n.controlHeight,
|
|
70
70
|
"&::after": {
|
|
71
71
|
margin: 0
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
".ant-form-item-control-input": {
|
|
75
|
-
minHeight:
|
|
75
|
+
minHeight: n.controlHeight,
|
|
76
76
|
".ant-select-single": {
|
|
77
77
|
height: "unset"
|
|
78
78
|
}
|
|
@@ -84,7 +84,7 @@ const r = (n) => {
|
|
|
84
84
|
borderColor: n.activeColorBase,
|
|
85
85
|
boxShadow: "0 0 0 2px rgba(5, 155, 255, 0.1)"
|
|
86
86
|
},
|
|
87
|
-
[`.${
|
|
87
|
+
[`.${e}-batch-input-group-popover-input__popover`]: {
|
|
88
88
|
width: "calc(100% + 12px)"
|
|
89
89
|
}
|
|
90
90
|
},
|
|
@@ -104,14 +104,14 @@ const r = (n) => {
|
|
|
104
104
|
".ant-form-show-help": {
|
|
105
105
|
".ant-form-item-explain-error": {
|
|
106
106
|
fontSize: n.fontSize,
|
|
107
|
-
lineHeight:
|
|
107
|
+
lineHeight: n.lineHeightSM
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
".ant-col .ant-form-item-extra": {
|
|
111
|
-
lineHeight:
|
|
111
|
+
lineHeight: n.lineHeightLG,
|
|
112
112
|
minHeight: "unset",
|
|
113
|
-
marginBlockStart:
|
|
114
|
-
marginBlockEnd:
|
|
113
|
+
marginBlockStart: n.spaceXS,
|
|
114
|
+
marginBlockEnd: n.spaceLG
|
|
115
115
|
},
|
|
116
116
|
".ant-input-group": {
|
|
117
117
|
".ant-picker:only-child": {
|
|
@@ -125,8 +125,8 @@ const r = (n) => {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
|
-
}, o = a("ApForm", (n) => [
|
|
128
|
+
}, o = a("ApForm", (n) => [i(n)]);
|
|
129
129
|
export {
|
|
130
130
|
o as default,
|
|
131
|
-
|
|
131
|
+
i as genApFormItemStyle
|
|
132
132
|
};
|
|
@@ -9,7 +9,8 @@ const e = (o) => {
|
|
|
9
9
|
".ant-modal-header": {
|
|
10
10
|
paddingInline: o.apFormModalHeaderPaddingInline,
|
|
11
11
|
paddingBlock: o.apFormModalHeaderPaddingBlock,
|
|
12
|
-
|
|
12
|
+
// todo:边框颜色在这里没有合适的token可以对应,后续需要优化
|
|
13
|
+
borderBottom: `${o.lineWidth} ${o.lineType} #E9EDF3`,
|
|
13
14
|
marginBottom: 0
|
|
14
15
|
},
|
|
15
16
|
[`${a}__content`]: {
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { GenStyleFunc, StyleMixin } from '../../design-token/interface';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
|
+
export type SearchFormToken = {
|
|
4
|
+
/**
|
|
5
|
+
* 查询表单筛选弹框触发按钮徽标记尺寸
|
|
6
|
+
*/
|
|
7
|
+
searchFormPopoverFilterBadgeSize: number;
|
|
8
|
+
};
|
|
3
9
|
export declare const genPopoverStyle: StyleMixin;
|
|
4
|
-
export declare const genSearchFormStyle: GenStyleFunc
|
|
10
|
+
export declare const genSearchFormStyle: GenStyleFunc<SearchFormToken>;
|
|
5
11
|
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
6
12
|
export default _default;
|