@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,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { isNil as c, isString as n } from "lodash-unified";
|
|
2
|
+
import { addZeroToDecimalPlaces as f } from "../../ap-field/number/helper.mjs";
|
|
3
|
+
import { roundWith as l, toDecimalMark as m } from "../../utils/format.mjs";
|
|
4
4
|
function v(e) {
|
|
5
|
-
if (
|
|
5
|
+
if (c(e.value))
|
|
6
6
|
return e.emptyText || "--";
|
|
7
|
-
const r = n(e.prefix) ? `${e.prefix} ` : "", a = n(e.addonAfter) ? ` ${e.addonAfter}` : "", t = e.precision ?
|
|
8
|
-
let i = e.thousands ?
|
|
9
|
-
return e.precision && e.limitDecimalsRetain && (i =
|
|
7
|
+
const r = n(e.prefix) ? `${e.prefix} ` : "", a = n(e.addonAfter) ? ` ${e.addonAfter}` : "", t = e.precision ? l(e.value, e.precision) : e.value;
|
|
8
|
+
let i = e.thousands ? m(t) : String(t);
|
|
9
|
+
return e.precision && e.limitDecimalsRetain && (i = f(i, e.precision)), `${r}${i}${a}`;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
v as numberRenderer
|
|
@@ -21,10 +21,10 @@ const t = (e) => {
|
|
|
21
21
|
display: "inline-flex",
|
|
22
22
|
flexDirection: "column",
|
|
23
23
|
alignItems: "center",
|
|
24
|
-
color: "rgba(0, 0, 0, 0.
|
|
25
|
-
marginInlineStart:
|
|
24
|
+
color: "rgba(0, 0, 0, 0.3)",
|
|
25
|
+
marginInlineStart: e.spaceXS,
|
|
26
26
|
"&:hover": {
|
|
27
|
-
color: "rgba(0, 0, 0, 0.
|
|
27
|
+
color: "rgba(0, 0, 0, 0.6)"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
[`${r}__sorter-up.active`]: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
2
|
-
const
|
|
3
|
-
[`${
|
|
4
|
-
width:
|
|
5
|
-
height:
|
|
1
|
+
import { genComponentStyleHook as e } from "../../utils/cssinjs/index.mjs";
|
|
2
|
+
const o = (r) => ({
|
|
3
|
+
[`${r.componentCls}-close`]: {
|
|
4
|
+
width: r.controlHeight,
|
|
5
|
+
height: r.controlHeight,
|
|
6
6
|
display: "flex",
|
|
7
7
|
flexDirection: "column",
|
|
8
8
|
justifyContent: "center",
|
|
9
9
|
alignItems: "center",
|
|
10
|
-
border:
|
|
11
|
-
borderRadius:
|
|
10
|
+
border: `${r.lineWidth} ${r.lineType} ${r.borderColorBase}`,
|
|
11
|
+
borderRadius: r.borderRadius,
|
|
12
12
|
cursor: "pointer",
|
|
13
13
|
".user-frontend-icon": {
|
|
14
|
-
fontSize:
|
|
14
|
+
fontSize: r.fontSizeXL,
|
|
15
15
|
display: "flex",
|
|
16
16
|
alignItems: "center",
|
|
17
|
-
transition:
|
|
17
|
+
transition: `color ${r.motionDurationMid}`
|
|
18
18
|
},
|
|
19
19
|
"&:hover": {
|
|
20
20
|
".user-frontend-icon": {
|
|
21
|
-
color:
|
|
21
|
+
color: r.colorError
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
}), t =
|
|
26
|
-
r
|
|
25
|
+
}), t = e("ApDrawer", (r) => [
|
|
26
|
+
o(r)
|
|
27
27
|
]);
|
|
28
28
|
export {
|
|
29
29
|
t as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as E, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as N, withCtx as s, createVNode as
|
|
1
|
+
import { defineComponent as E, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as N, withCtx as s, createVNode as b, createCommentVNode as j, isRef as I, renderList as P, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as W, guardReactiveProps as $ } from "vue";
|
|
2
2
|
import u from "dayjs";
|
|
3
3
|
import { InputGroup as G, FormItemRest as L, Select as Y, SelectOption as Z, DatePicker as q } from "@aplus-frontend/antdv";
|
|
4
4
|
import { ApFieldDatePresetFormats as J, PRESET_FORMAT_MAP as C, PRESET_FORMAT_PICK_MAP as Q, PRESET_FORMAT_TIME_MAP as X } from "./constant.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
|
-
import { isNil as
|
|
6
|
+
import { isNil as O, omit as ee } from "lodash-unified";
|
|
7
7
|
import { formatDayWithTimezone as oe } from "./helper.mjs";
|
|
8
8
|
import { getTimeFormatToZone as te } from "@aplus-frontend/utils";
|
|
9
9
|
import { useDefaultPlaceholder as ae } from "../hooks/use-default-placeholder.mjs";
|
|
@@ -51,7 +51,7 @@ const he = /* @__PURE__ */ E({
|
|
|
51
51
|
autocomplete: {},
|
|
52
52
|
direction: {},
|
|
53
53
|
showToday: { type: Boolean, default: void 0 },
|
|
54
|
-
showTime: { type: Boolean, default: void 0 },
|
|
54
|
+
showTime: { type: [Boolean, Object], default: void 0 },
|
|
55
55
|
picker: {},
|
|
56
56
|
prefixCls: {},
|
|
57
57
|
defaultPickerValue: {},
|
|
@@ -92,16 +92,16 @@ const he = /* @__PURE__ */ E({
|
|
|
92
92
|
timezone: {}
|
|
93
93
|
},
|
|
94
94
|
emits: ["update:value"],
|
|
95
|
-
setup(
|
|
96
|
-
const e =
|
|
95
|
+
setup(S, { emit: T }) {
|
|
96
|
+
const e = S, F = T, { value: f, updateValue: h } = le(
|
|
97
97
|
e,
|
|
98
|
-
|
|
98
|
+
F
|
|
99
99
|
), _ = ae("Date", e), { currentTimezone: d } = ne(e), l = r(
|
|
100
100
|
() => J.indexOf(e.format) > -1
|
|
101
101
|
), A = r(() => e.shownFormat ? e.shownFormat : l.value ? C[e.format] : e.format), m = r(
|
|
102
102
|
() => l.value ? C[e.format] : e.format
|
|
103
103
|
), c = r(() => {
|
|
104
|
-
if (
|
|
104
|
+
if (O(t(f)))
|
|
105
105
|
return;
|
|
106
106
|
let o = u(t(f));
|
|
107
107
|
return e.timezone && (o = u(te(t(f), d.value))), o;
|
|
@@ -122,7 +122,7 @@ const he = /* @__PURE__ */ E({
|
|
|
122
122
|
};
|
|
123
123
|
}), v = (o, n, a = !0) => oe(d.value)(o, n, a);
|
|
124
124
|
function D(o) {
|
|
125
|
-
if (
|
|
125
|
+
if (O(o)) {
|
|
126
126
|
h(null);
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
@@ -161,19 +161,19 @@ const he = /* @__PURE__ */ E({
|
|
|
161
161
|
})
|
|
162
162
|
}, {
|
|
163
163
|
default: s(() => [
|
|
164
|
-
|
|
164
|
+
b(t(L), null, {
|
|
165
165
|
default: s(() => [
|
|
166
166
|
Array.isArray(e.timezone) && e.timezone.length ? (i(), y(t(Y), {
|
|
167
167
|
key: 0,
|
|
168
168
|
value: t(d),
|
|
169
|
-
"onUpdate:value": n[0] || (n[0] = (a) =>
|
|
169
|
+
"onUpdate:value": n[0] || (n[0] = (a) => I(d) ? d.value = a : null),
|
|
170
170
|
"default-active-first-option": "",
|
|
171
171
|
"dropdown-match-select-width": !1,
|
|
172
172
|
style: { "max-width": "50%" },
|
|
173
173
|
disabled: o.disabled
|
|
174
174
|
}, {
|
|
175
175
|
default: s(() => [
|
|
176
|
-
(i(!0), B(g, null,
|
|
176
|
+
(i(!0), B(g, null, P(e.timezone, (a) => (i(), y(t(Z), {
|
|
177
177
|
key: a?.value,
|
|
178
178
|
value: a?.value
|
|
179
179
|
}, {
|
|
@@ -184,11 +184,11 @@ const he = /* @__PURE__ */ E({
|
|
|
184
184
|
}, 1032, ["value"]))), 128))
|
|
185
185
|
]),
|
|
186
186
|
_: 1
|
|
187
|
-
}, 8, ["value", "disabled"])) :
|
|
187
|
+
}, 8, ["value", "disabled"])) : j("", !0)
|
|
188
188
|
]),
|
|
189
189
|
_: 1
|
|
190
190
|
}),
|
|
191
|
-
|
|
191
|
+
b(t(q), U(M.value, {
|
|
192
192
|
value: c.value,
|
|
193
193
|
format: A.value,
|
|
194
194
|
picker: R.value,
|
|
@@ -196,7 +196,7 @@ const he = /* @__PURE__ */ E({
|
|
|
196
196
|
onChange: V,
|
|
197
197
|
onOk: x
|
|
198
198
|
}), H({ _: 2 }, [
|
|
199
|
-
|
|
199
|
+
P(o.$slots, (a, p) => ({
|
|
200
200
|
name: p,
|
|
201
201
|
fn: s((z) => [
|
|
202
202
|
K(o.$slots, p, W($(z || {})))
|
|
@@ -4,7 +4,7 @@ import { isNil as m } from "lodash-unified";
|
|
|
4
4
|
import { getTimeFormatToZone as c } from "@aplus-frontend/utils";
|
|
5
5
|
import { useDateTimezone as f } from "../hooks/use-date-timezone.mjs";
|
|
6
6
|
import { ApFieldDatePresetFormats as y, PRESET_FORMAT_MAP as B } from "./constant.mjs";
|
|
7
|
-
const
|
|
7
|
+
const S = /* @__PURE__ */ u({
|
|
8
8
|
name: "ApFieldDateRead",
|
|
9
9
|
__name: "read",
|
|
10
10
|
props: {
|
|
@@ -46,7 +46,7 @@ const T = /* @__PURE__ */ u({
|
|
|
46
46
|
autocomplete: {},
|
|
47
47
|
direction: {},
|
|
48
48
|
showToday: { type: Boolean },
|
|
49
|
-
showTime: { type: Boolean },
|
|
49
|
+
showTime: { type: [Boolean, Object] },
|
|
50
50
|
picker: {},
|
|
51
51
|
prefixCls: {},
|
|
52
52
|
defaultPickerValue: {},
|
|
@@ -101,5 +101,5 @@ const T = /* @__PURE__ */ u({
|
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
export {
|
|
104
|
-
|
|
104
|
+
S as default
|
|
105
105
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as
|
|
1
|
+
import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as O, Fragment as m, createElementBlock as g, createBlock as k, openBlock as u, createTextVNode as S, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as w, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
|
|
2
2
|
import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as T, PRESET_FORMAT_PICK_MAP as le, PRESET_FORMAT_TIME_MAP as ue } from "../date/constant.mjs";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as M, omit as b, isString as c, isFunction as de } from "lodash-unified";
|
|
@@ -103,7 +103,7 @@ const ze = /* @__PURE__ */ L({
|
|
|
103
103
|
},
|
|
104
104
|
variant: {},
|
|
105
105
|
showTime: {
|
|
106
|
-
type: Boolean,
|
|
106
|
+
type: [Boolean, Object],
|
|
107
107
|
default: void 0
|
|
108
108
|
},
|
|
109
109
|
showNow: {
|
|
@@ -166,7 +166,7 @@ const ze = /* @__PURE__ */ L({
|
|
|
166
166
|
}) {
|
|
167
167
|
const o = R, _ = F, z = Y(), i = s(() => re.indexOf(o.format) > -1), y = s(() => i.value ? T[o.format] : o.format), {
|
|
168
168
|
value: v,
|
|
169
|
-
updateValue:
|
|
169
|
+
updateValue: P
|
|
170
170
|
} = ke(o, _), N = s(() => o.shownFormat ? o.shownFormat : i.value ? T[o.format] : o.format), x = ve("DateRange", o), {
|
|
171
171
|
currentTimezone: l
|
|
172
172
|
} = ge(o), {
|
|
@@ -192,12 +192,12 @@ const ze = /* @__PURE__ */ L({
|
|
|
192
192
|
});
|
|
193
193
|
function j(e) {
|
|
194
194
|
if (!e) {
|
|
195
|
-
|
|
195
|
+
P(e);
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
let a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1];
|
|
199
199
|
const r = t(i) ? t(y) : void 0;
|
|
200
|
-
|
|
200
|
+
P([p(a, r), p(n, r, !1)]);
|
|
201
201
|
}
|
|
202
202
|
function H(e) {
|
|
203
203
|
const a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1], r = t(i) ? t(y) : void 0, f = e[0] ? p(a, r) : null, D = e[1] ? p(n, r, !1) : null;
|
|
@@ -217,9 +217,9 @@ const ze = /* @__PURE__ */ L({
|
|
|
217
217
|
const $ = s(() => {
|
|
218
218
|
const e = o.readModeSeparator;
|
|
219
219
|
if (e)
|
|
220
|
-
return Z(e) || de(e) ? o.readModeSeparator :
|
|
220
|
+
return Z(e) || de(e) ? o.readModeSeparator : O(m, null, [o.readModeSeparator]);
|
|
221
221
|
const a = z.readModeSeparator?.();
|
|
222
|
-
return a ?
|
|
222
|
+
return a ? O(m, null, [a]) : ce;
|
|
223
223
|
});
|
|
224
224
|
return (e, a) => e.mode === "read" ? (u(), g(m, {
|
|
225
225
|
key: 0
|
|
@@ -249,7 +249,7 @@ const ze = /* @__PURE__ */ L({
|
|
|
249
249
|
_: 2
|
|
250
250
|
}, 1032, ["value"]))), 128))]),
|
|
251
251
|
_: 1
|
|
252
|
-
}, 8, ["value"])) : Q("", !0),
|
|
252
|
+
}, 8, ["value"])) : Q("", !0), O(t(fe).RangePicker, ee(U.value, {
|
|
253
253
|
value: h.value,
|
|
254
254
|
picker: I.value,
|
|
255
255
|
format: N.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as
|
|
1
|
+
import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as b, toDisplayString as p, resolveDynamicComponent as h } from "vue";
|
|
2
2
|
import { isNil as g } from "lodash-unified";
|
|
3
3
|
import { useDateTimezone as w } from "../hooks/use-date-timezone.mjs";
|
|
4
4
|
import { getTimeFormatToZone as m } from "@aplus-frontend/utils";
|
|
@@ -60,7 +60,7 @@ const M = /* @__PURE__ */ v({
|
|
|
60
60
|
size: {},
|
|
61
61
|
bordered: { type: Boolean },
|
|
62
62
|
variant: {},
|
|
63
|
-
showTime: { type: Boolean },
|
|
63
|
+
showTime: { type: [Boolean, Object] },
|
|
64
64
|
showNow: { type: Boolean },
|
|
65
65
|
order: { type: Boolean },
|
|
66
66
|
defaultOpenValue: {},
|
|
@@ -108,7 +108,7 @@ const M = /* @__PURE__ */ v({
|
|
|
108
108
|
);
|
|
109
109
|
return (o, s) => t.value ? (r(), d(i, { key: 0 }, [
|
|
110
110
|
l(p(t.value[0]?.format(u.value)) + " ", 1),
|
|
111
|
-
(r(), h(
|
|
111
|
+
(r(), b(h(o.readModeSeparator))),
|
|
112
112
|
l(" " + p(t.value[1]?.format(u.value)), 1)
|
|
113
113
|
], 64)) : (r(), d(i, { key: 1 }, [
|
|
114
114
|
l(p(o.emptyText), 1)
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { computed as o } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
|
-
import
|
|
4
|
-
import { useLocale as
|
|
3
|
+
import "../../utils/index.mjs";
|
|
4
|
+
import { useLocale as n } from "../../config-provider/hooks/use-locale.mjs";
|
|
5
|
+
import { isDef as i } from "../../utils/is.mjs";
|
|
5
6
|
const c = ["Select", "Date"], a = [
|
|
6
7
|
"Text",
|
|
7
8
|
"TextArea",
|
|
8
9
|
"Number",
|
|
9
10
|
"TextPassword"
|
|
10
11
|
], d = (t, r) => {
|
|
11
|
-
const { t: e } =
|
|
12
|
+
const { t: e } = n();
|
|
12
13
|
return o(() => {
|
|
13
|
-
if (
|
|
14
|
+
if (i(r.placeholder))
|
|
14
15
|
return r.placeholder;
|
|
15
16
|
if (t === "DateRange")
|
|
16
17
|
return [e("ap.field.startDateText"), e("ap.field.endDateText")];
|
|
@@ -2,11 +2,11 @@ import { defineComponent as C, ref as N, computed as D, unref as t, createElemen
|
|
|
2
2
|
import { InputNumber as M } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as T, omit as F } from "lodash-unified";
|
|
5
|
-
import {
|
|
6
|
-
import { addZeroToDecimalPlaces as w } from "./helper.mjs";
|
|
5
|
+
import { addZeroToDecimalPlaces as W } from "./helper.mjs";
|
|
7
6
|
import "../../config-provider/index.mjs";
|
|
8
|
-
import { useDefaultPlaceholder as
|
|
9
|
-
import
|
|
7
|
+
import { useDefaultPlaceholder as _ } from "../hooks/use-default-placeholder.mjs";
|
|
8
|
+
import w from "../style/index.mjs";
|
|
9
|
+
import { roundWith as L, toDecimalMark as O } from "../../utils/format.mjs";
|
|
10
10
|
import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
11
|
import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
|
|
12
12
|
const re = /* @__PURE__ */ C({
|
|
@@ -60,16 +60,16 @@ const re = /* @__PURE__ */ C({
|
|
|
60
60
|
},
|
|
61
61
|
emits: ["update:value"],
|
|
62
62
|
setup(m, { expose: c, emit: y }) {
|
|
63
|
-
const v = y, { b: l } = Z("field-number"), h =
|
|
63
|
+
const v = y, { b: l } = Z("field-number"), h = w("field"), o = m, n = N(), { value: p, updateValue: B } = j(
|
|
64
64
|
o,
|
|
65
65
|
v
|
|
66
|
-
), b =
|
|
66
|
+
), b = _("Number", o), k = D(() => {
|
|
67
67
|
let e = t(p);
|
|
68
68
|
if (T(e))
|
|
69
69
|
return o.emptyText;
|
|
70
|
-
o.precision && (e =
|
|
71
|
-
let a = o.thousands ?
|
|
72
|
-
return o.precision && o.limitDecimalsRetain && (a =
|
|
70
|
+
o.precision && (e = L(e, o.precision));
|
|
71
|
+
let a = o.thousands ? O(e) : String(e);
|
|
72
|
+
return o.precision && o.limitDecimalsRetain && (a = W(a, o.precision)), a;
|
|
73
73
|
});
|
|
74
74
|
function g() {
|
|
75
75
|
n.value?.focus();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, computed as d, createElementBlock as a, openBlock as n, createCommentVNode as r, createElementVNode as m, renderSlot as l, toDisplayString as u } from "vue";
|
|
2
2
|
import { isNil as c } from "lodash-unified";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { addZeroToDecimalPlaces as f } from "./helper.mjs";
|
|
4
|
+
import { roundWith as y, toDecimalMark as B } from "../../utils/format.mjs";
|
|
5
5
|
const h = {
|
|
6
6
|
key: 0,
|
|
7
7
|
style: { "padding-right": "4px" }
|
|
@@ -62,9 +62,9 @@ const h = {
|
|
|
62
62
|
let e = o.value;
|
|
63
63
|
if (c(e))
|
|
64
64
|
return o.emptyText;
|
|
65
|
-
o.precision && (e =
|
|
66
|
-
let t = o.thousands ?
|
|
67
|
-
return o.precision && o.limitDecimalsRetain && (t =
|
|
65
|
+
o.precision && (e = y(e, o.precision));
|
|
66
|
+
let t = o.thousands ? B(e) : String(e);
|
|
67
|
+
return o.precision && o.limitDecimalsRetain && (t = f(t, o.precision)), t;
|
|
68
68
|
});
|
|
69
69
|
return (e, t) => (n(), a("span", null, [
|
|
70
70
|
e.$slots.prefix ? (n(), a("span", h, [
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const genCheckboxStyle: GenStyleFunc
|
|
1
|
+
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
+
export declare const genCheckboxStyle: GenStyleFunc;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const genNumberStyle: GenStyleFunc
|
|
1
|
+
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
+
export declare const genNumberStyle: GenStyleFunc;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const genRadioStyle: GenStyleFunc
|
|
1
|
+
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
+
export declare const genRadioStyle: GenStyleFunc;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const genTextareaStyle: GenStyleFunc
|
|
1
|
+
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
+
export declare const genTextareaStyle: GenStyleFunc;
|
|
@@ -2,9 +2,10 @@ import { defineComponent as z, useSlots as D, ref as T, unref as o, computed as
|
|
|
2
2
|
import { Switch as A, Popconfirm as L } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as M, isFunction as R, omit as P } from "lodash-unified";
|
|
5
|
-
import
|
|
5
|
+
import "../../utils/index.mjs";
|
|
6
6
|
import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
|
|
7
|
-
|
|
7
|
+
import { isDef as d } from "../../utils/is.mjs";
|
|
8
|
+
const Q = /* @__PURE__ */ z({
|
|
8
9
|
name: "ApFieldSwitch",
|
|
9
10
|
__name: "index",
|
|
10
11
|
props: {
|
|
@@ -121,5 +122,5 @@ const O = /* @__PURE__ */ z({
|
|
|
121
122
|
}
|
|
122
123
|
});
|
|
123
124
|
export {
|
|
124
|
-
|
|
125
|
+
Q as default
|
|
125
126
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { defineComponent as te, reactive as re, ref as O, unref as h, nextTick as oe, toRaw as P, watch as ne, onWatcherCleanup as ie, computed as le, createBlock as se, openBlock as ae, mergeProps as ue, withCtx as ce, renderSlot as fe } from "vue";
|
|
2
2
|
import { Form as de } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useProvideForm as ge } from "./context.mjs";
|
|
4
|
-
import { isArray as f, cloneDeep as
|
|
4
|
+
import { isArray as f, cloneDeep as me, isEqual as pe, isFunction as M, isPlainObject as R, omit as he } from "lodash-unified";
|
|
5
5
|
import { useUrlSearchParams as Fe } from "@vueuse/core";
|
|
6
6
|
import { INTERNAL_FORM_INSTANCE_MARK as j } from "./constant.mjs";
|
|
7
|
-
import { getRouteType as ye
|
|
7
|
+
import { getRouteType as ye } from "../utils/index.mjs";
|
|
8
8
|
import Te from "./utils/set.mjs";
|
|
9
9
|
import { genParams as B, setToParams as x } from "./utils/params.mjs";
|
|
10
10
|
import { useInjectFormProvider as Ve } from "./provider/context.mjs";
|
|
11
11
|
import { getModelValue as W } from "./utils/get.mjs";
|
|
12
12
|
import { useDevWarning as ve } from "../utils/warning.mjs";
|
|
13
|
-
|
|
13
|
+
import { isDef as T } from "../utils/is.mjs";
|
|
14
|
+
const je = /* @__PURE__ */ te({
|
|
14
15
|
name: "ApForm",
|
|
15
16
|
__name: "ap-form",
|
|
16
17
|
props: {
|
|
@@ -62,9 +63,9 @@ const Oe = /* @__PURE__ */ te({
|
|
|
62
63
|
const s = O(), v = Fe(ye()), F = Ve(), q = ve("ApForm"), C = O(
|
|
63
64
|
n.syncToUrl ? B(n.syncToUrl, v, "get") : {}
|
|
64
65
|
);
|
|
65
|
-
let d =
|
|
66
|
+
let d = me(_()), g = {};
|
|
66
67
|
const l = re(_());
|
|
67
|
-
let
|
|
68
|
+
let m = [];
|
|
68
69
|
function _() {
|
|
69
70
|
const e = n.initialValues || {};
|
|
70
71
|
return n.syncToUrlPriority ? {
|
|
@@ -76,7 +77,7 @@ const Oe = /* @__PURE__ */ te({
|
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
function D(e) {
|
|
79
|
-
const t =
|
|
80
|
+
const t = p(e, g);
|
|
80
81
|
F.triggerFormFinish(n.name, e), n.syncToUrl && x(v, B(n.syncToUrl, t, "set")), n.onFinish?.(t);
|
|
81
82
|
}
|
|
82
83
|
const K = async () => {
|
|
@@ -85,7 +86,7 @@ const Oe = /* @__PURE__ */ te({
|
|
|
85
86
|
v,
|
|
86
87
|
B(
|
|
87
88
|
n.syncToUrl,
|
|
88
|
-
|
|
89
|
+
p(d, g),
|
|
89
90
|
"set"
|
|
90
91
|
)
|
|
91
92
|
);
|
|
@@ -97,10 +98,10 @@ const Oe = /* @__PURE__ */ te({
|
|
|
97
98
|
e,
|
|
98
99
|
t
|
|
99
100
|
);
|
|
100
|
-
return
|
|
101
|
+
return p(r, g);
|
|
101
102
|
}, b = (e) => e === !0 ? P(l) : s.value?.getFieldsValue(e), G = (e) => {
|
|
102
103
|
const t = b(e);
|
|
103
|
-
return
|
|
104
|
+
return p(t, g);
|
|
104
105
|
}, H = (e, t) => s.value?.validate(e, t), J = (e, t = {}) => {
|
|
105
106
|
s.value?.scrollToField(e, t);
|
|
106
107
|
}, Q = (e) => {
|
|
@@ -109,8 +110,8 @@ const Oe = /* @__PURE__ */ te({
|
|
|
109
110
|
V(e, t, r, o), y();
|
|
110
111
|
};
|
|
111
112
|
function U(e) {
|
|
112
|
-
return e(P(l)),
|
|
113
|
-
|
|
113
|
+
return e(P(l)), m.push(e), () => {
|
|
114
|
+
m = m.filter((t) => t !== e);
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
117
|
function X(e, t) {
|
|
@@ -126,7 +127,7 @@ const Oe = /* @__PURE__ */ te({
|
|
|
126
127
|
if (!T(e) || !T(t))
|
|
127
128
|
return;
|
|
128
129
|
const r = W(d, t);
|
|
129
|
-
if (
|
|
130
|
+
if (pe(r, e))
|
|
130
131
|
return;
|
|
131
132
|
const o = W(h(C), t);
|
|
132
133
|
T(o) && n.syncToUrlPriority || (V(t, e, !1), X(t, e));
|
|
@@ -159,14 +160,14 @@ const Oe = /* @__PURE__ */ te({
|
|
|
159
160
|
};
|
|
160
161
|
}
|
|
161
162
|
function y() {
|
|
162
|
-
if (
|
|
163
|
+
if (m.length) {
|
|
163
164
|
const e = P(l);
|
|
164
|
-
|
|
165
|
+
m.forEach((t) => {
|
|
165
166
|
t(e);
|
|
166
167
|
});
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
|
-
function
|
|
170
|
+
function p(e, t) {
|
|
170
171
|
if (e == null)
|
|
171
172
|
return;
|
|
172
173
|
let r = f(e) ? [] : {};
|
|
@@ -179,7 +180,7 @@ const Oe = /* @__PURE__ */ te({
|
|
|
179
180
|
...c
|
|
180
181
|
} : r[o] = c : r[o] = c;
|
|
181
182
|
} else if (R(a) || f(a)) {
|
|
182
|
-
const c =
|
|
183
|
+
const c = p(
|
|
183
184
|
a,
|
|
184
185
|
i
|
|
185
186
|
);
|
|
@@ -247,5 +248,5 @@ const Oe = /* @__PURE__ */ te({
|
|
|
247
248
|
}
|
|
248
249
|
});
|
|
249
250
|
export {
|
|
250
|
-
|
|
251
|
+
je as default
|
|
251
252
|
};
|
|
@@ -6,9 +6,9 @@ import { apFormItemColPropKeys as le } from "../constant.mjs";
|
|
|
6
6
|
import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
8
|
import { useInjectForm as ae } from "../context.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import ue from "
|
|
9
|
+
import { getValidVNodeList as ie } from "../../utils/slot.mjs";
|
|
10
|
+
import se from "../style/item.mjs";
|
|
11
|
+
import { isPromise as ue } from "../../utils/is.mjs";
|
|
12
12
|
import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
|
|
13
13
|
const Ce = /* @__PURE__ */ _({
|
|
14
14
|
name: "ApFormItem",
|
|
@@ -58,10 +58,10 @@ const Ce = /* @__PURE__ */ _({
|
|
|
58
58
|
disabled: { type: Boolean }
|
|
59
59
|
},
|
|
60
60
|
setup(g, { expose: h }) {
|
|
61
|
-
const o = g, m = j(), { model: p, updateModel: B, internalInstance: C } = ae(), { m: u, b: k } = de("ap-form-item"), P =
|
|
61
|
+
const o = g, m = j(), { model: p, updateModel: B, internalInstance: C } = ae(), { m: u, b: k } = de("ap-form-item"), P = se("ap-form-item"), d = y(!1), a = y(), [, x] = oe();
|
|
62
62
|
E(async () => {
|
|
63
63
|
let e = F(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
64
|
-
|
|
64
|
+
ue(e) && (e = await e), C?.registerField({
|
|
65
65
|
name: o.name,
|
|
66
66
|
initialValue: te(e),
|
|
67
67
|
transform: o.transform
|
|
@@ -78,7 +78,7 @@ const Ce = /* @__PURE__ */ _({
|
|
|
78
78
|
const e = m.default?.() || [];
|
|
79
79
|
if (!o.name)
|
|
80
80
|
return e[0];
|
|
81
|
-
const t =
|
|
81
|
+
const t = ie(e)[0];
|
|
82
82
|
if (!t)
|
|
83
83
|
return null;
|
|
84
84
|
const l = t?.type?.props ?? {}, n = {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { isFunction as c, isArray as u } from "lodash-unified";
|
|
2
|
-
import
|
|
2
|
+
import "../../utils/index.mjs";
|
|
3
|
+
import { isDef as p } from "../../utils/is.mjs";
|
|
3
4
|
const s = (r) => r <= 1 ? 1 : r, o = (r, t = 1) => {
|
|
4
5
|
const n = Math.floor(24 / r), e = n * t;
|
|
5
6
|
return e > 24 ? n : e;
|
|
6
|
-
},
|
|
7
|
+
}, y = (r, t = 1) => ({
|
|
7
8
|
xs: o(s(r - 3), t),
|
|
8
9
|
sm: o(s(r - 2), t),
|
|
9
10
|
md: o(s(r - 1), t),
|
|
@@ -29,15 +30,15 @@ function f(r) {
|
|
|
29
30
|
t.push(i(e));
|
|
30
31
|
return t;
|
|
31
32
|
}
|
|
32
|
-
const
|
|
33
|
+
const N = (r) => {
|
|
33
34
|
const t = [];
|
|
34
35
|
return t.push(...f(r)), t;
|
|
35
36
|
};
|
|
36
|
-
function
|
|
37
|
+
function d(r) {
|
|
37
38
|
return p(r) ? (u(r) ? r : [r]).join("") : Date.now();
|
|
38
39
|
}
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
y as buildColSpan,
|
|
42
|
+
N as genRealChildren,
|
|
43
|
+
d as getStringName
|
|
43
44
|
};
|