@aplus-frontend/ui 0.6.0-beta.2 → 0.6.0-beta.20
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 +305 -289
- package/es/src/ap-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +9 -8
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/ap-field/date/helper.mjs +12 -12
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +8 -7
- package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
- package/es/src/ap-field/number/index.vue.d.ts +3 -5
- package/es/src/ap-field/radio/index.vue.d.ts +2 -4
- package/es/src/ap-field/rate/index.vue.d.ts +3 -5
- package/es/src/ap-field/select/index.vue.d.ts +4 -7
- package/es/src/ap-field/slider/index.vue.d.ts +2 -4
- package/es/src/ap-field/text/index.vue2.mjs +42 -44
- package/es/src/ap-field/text/password.vue.mjs +15 -17
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
- package/es/src/ap-form/ap-form.vue2.mjs +89 -77
- package/es/src/ap-form/dependency/index.vue.mjs +29 -23
- package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
- package/es/src/ap-form/interface.d.ts +13 -5
- package/es/src/ap-form/item/index.vue.d.ts +6 -11
- package/es/src/ap-form/item/index.vue.mjs +43 -39
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/select/index.vue.mjs +12 -14
- 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/text/password.vue.mjs +9 -9
- package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/tree-select/index.vue.mjs +12 -14
- package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
- package/es/src/ap-form/provider/index.vue.mjs +6 -5
- package/es/src/ap-form/render/item.vue.d.ts +1 -1
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +88 -69
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +33 -13
- package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.mjs +99 -97
- package/es/src/ap-form/set/index.vue.mjs +7 -6
- package/es/src/ap-grid/constants.d.ts +3 -3
- package/es/src/ap-grid/constants.mjs +9 -9
- package/es/src/ap-grid/editable/form-item.vue.mjs +97 -83
- package/es/src/ap-grid/editable/index.vue.mjs +100 -86
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
- package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
- package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
- package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
- package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
- package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
- package/es/src/ap-grid/index.vue.mjs +291 -224
- package/es/src/ap-grid/interface.d.ts +31 -2
- package/es/src/ap-grid/utils/table.mjs +31 -31
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/es/src/ap-list/index.vue.d.ts +2 -9
- package/es/src/ap-list/index.vue.mjs +116 -106
- package/es/src/ap-list/interface.d.ts +20 -0
- package/es/src/ap-table/ap-table.vue.d.ts +10 -2
- package/es/src/ap-table/ap-table.vue2.mjs +78 -70
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +52 -52
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +23 -4
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +152 -124
- package/es/src/ap-table/interface.d.ts +14 -1
- package/es/src/ap-table/utils.d.ts +35 -35
- package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
- package/es/src/business/ap-card/ApCard.vue2.mjs +1 -1
- package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/es/src/business/ap-copy/ApCopy.mjs +79 -0
- package/es/src/business/ap-copy/constans.d.ts +24 -0
- package/es/src/business/ap-copy/constans.mjs +25 -0
- package/es/src/business/ap-copy/index.d.ts +102 -0
- package/es/src/business/ap-copy/index.mjs +7 -0
- package/es/src/business/ap-copy/interface.d.ts +8 -0
- package/es/src/business/ap-copy/interface.mjs +1 -0
- package/es/src/business/ap-copy/style/css.d.ts +0 -0
- package/es/src/business/ap-copy/style/css.js +1 -0
- package/es/src/business/ap-copy/style/index.d.ts +0 -0
- package/es/src/business/ap-copy/style/index.js +1 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +94 -73
- package/es/src/business/ap-expand-alert/index.d.ts +4 -4
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +18 -17
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
- package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
- package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/es/src/business/ap-keep-alive/hook.mjs +33 -0
- package/es/src/business/ap-keep-alive/index.d.ts +107 -0
- package/es/src/business/ap-keep-alive/index.mjs +13 -0
- package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
- package/es/src/business/ap-keep-alive/interface.mjs +54 -0
- package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
- package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/utils.d.ts +22 -0
- package/es/src/business/ap-keep-alive/utils.mjs +41 -0
- package/es/src/business/ap-label/ApLabel.d.ts +1 -1
- package/es/src/business/ap-label/constans.mjs +1 -1
- package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
- package/es/src/business/ap-label/index.d.ts +3 -3
- package/es/src/business/ap-label/interface.d.ts +2 -3
- package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/es/src/business/ap-ladder/index.d.ts +3 -3
- package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
- package/es/src/business/ap-product-info/constans.d.ts +4 -0
- package/es/src/business/ap-product-info/constans.mjs +4 -0
- package/es/src/business/ap-product-info/index.d.ts +15 -0
- package/es/src/business/ap-product-info/interface.d.ts +1 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +19 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +60 -0
- package/es/src/business/ap-radio-group/index.d.ts +60 -0
- package/es/src/business/ap-radio-group/index.mjs +8 -0
- package/es/src/business/ap-radio-group/interface.d.ts +11 -0
- package/es/src/business/ap-radio-group/interface.mjs +1 -0
- package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/css.js +1 -0
- package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/index.js +1 -0
- package/es/src/business/ap-status/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/index.d.ts +32 -5
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
- package/es/src/business/ap-view/ap-view.vue.d.ts +5 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +162 -129
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +55 -51
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/es/src/business/ap-view/index.d.ts +15 -3
- package/es/src/business/ap-view/interface.d.ts +11 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.mjs +10 -9
- package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
- package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/es/src/business/index.d.ts +3 -0
- package/es/src/business/index.mjs +36 -30
- package/es/src/check-card/group.vue.d.ts +1 -1
- package/es/src/components.d.ts +1 -0
- package/es/src/config-provider/config-provider-props.d.ts +0 -5
- package/es/src/config-provider/config-provider-props.mjs +0 -4
- package/es/src/config-provider/config-provider.d.ts +0 -138
- package/es/src/config-provider/config-provider.mjs +21 -26
- package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/es/src/config-provider/index.d.ts +0 -652
- package/es/src/editable-table/form-item.vue.d.ts +2 -14
- package/es/src/editable-table/form-item.vue.mjs +86 -78
- package/es/src/editable-table/index.vue.d.ts +2 -16
- package/es/src/editable-table/index.vue.mjs +91 -83
- package/es/src/editable-table/interface.d.ts +7 -0
- package/es/src/full-screen/interface.d.ts +5 -6
- package/es/src/index.mjs +132 -119
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/mask/index.vue.mjs +21 -20
- package/es/src/path-map.mjs +3 -1
- package/es/src/resize-observer/interface.d.ts +2 -3
- package/es/src/scroll-bar/interface.d.ts +7 -7
- package/es/src/scroll-view/interface.d.ts +2 -3
- package/es/src/splitter/SplitBar.vue2.mjs +1 -0
- package/es/src/splitter/Splitter.vue2.mjs +1 -0
- package/es/src/tests/mock-resize-observer.d.ts +2 -0
- package/es/src/tests/utils.d.ts +8 -0
- package/es/src/text/group.vue.mjs +7 -6
- package/es/src/text/index.vue.mjs +20 -19
- package/es/src/version.d.ts +2 -0
- package/es/src/version.mjs +4 -0
- package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
- package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
- package/es/src/work-order-modal/interfaces.d.ts +4 -0
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +120 -105
- package/es/test/setup.d.ts +5 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-field/date/helper.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +3 -5
- package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
- package/lib/src/ap-field/rate/index.vue.d.ts +3 -5
- package/lib/src/ap-field/select/index.vue.d.ts +4 -7
- package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +13 -5
- package/lib/src/ap-form/item/index.vue.d.ts +6 -11
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- 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/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/index.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.d.ts +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- 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-count-per-row.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
- 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-grid/constants.d.ts +3 -3
- package/lib/src/ap-grid/constants.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/hooks/use-editable-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
- package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +31 -2
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -9
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +20 -0
- package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +52 -52
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +23 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +14 -1
- package/lib/src/ap-table/utils.d.ts +35 -35
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/lib/src/business/ap-copy/ApCopy.js +1 -0
- package/lib/src/business/ap-copy/constans.d.ts +24 -0
- package/lib/src/business/ap-copy/constans.js +1 -0
- package/lib/src/business/ap-copy/index.d.ts +102 -0
- package/lib/src/business/ap-copy/index.js +1 -0
- package/lib/src/business/ap-copy/interface.d.ts +8 -0
- package/lib/src/business/ap-copy/interface.js +1 -0
- package/lib/src/business/ap-copy/style/css.cjs +1 -0
- package/lib/src/business/ap-copy/style/css.d.ts +0 -0
- package/lib/src/business/ap-copy/style/index.cjs +1 -0
- package/lib/src/business/ap-copy/style/index.d.ts +0 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
- package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/hook.js +1 -0
- package/lib/src/business/ap-keep-alive/index.d.ts +107 -0
- package/lib/src/business/ap-keep-alive/index.js +1 -0
- package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
- package/lib/src/business/ap-keep-alive/interface.js +1 -0
- package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/utils.d.ts +22 -0
- package/lib/src/business/ap-keep-alive/utils.js +1 -0
- package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +3 -3
- package/lib/src/business/ap-label/interface.d.ts +2 -3
- package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +3 -3
- package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-product-info/constans.d.ts +4 -0
- package/lib/src/business/ap-product-info/constans.js +1 -1
- package/lib/src/business/ap-product-info/index.d.ts +15 -0
- package/lib/src/business/ap-product-info/interface.d.ts +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +19 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
- package/lib/src/business/ap-radio-group/index.d.ts +60 -0
- package/lib/src/business/ap-radio-group/index.js +1 -0
- package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
- package/lib/src/business/ap-radio-group/interface.js +1 -0
- package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/lib/src/business/ap-status/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/index.d.ts +32 -5
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue.d.ts +5 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +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.vue.d.ts +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/lib/src/business/ap-view/index.d.ts +15 -3
- package/lib/src/business/ap-view/interface.d.ts +11 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.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/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/lib/src/business/index.d.ts +3 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +1 -1
- package/lib/src/components.d.ts +1 -0
- package/lib/src/config-provider/config-provider-props.d.ts +0 -5
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +0 -138
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/lib/src/config-provider/index.d.ts +0 -652
- package/lib/src/editable-table/form-item.vue.d.ts +2 -14
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +2 -16
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +7 -0
- package/lib/src/full-screen/interface.d.ts +5 -6
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/resize-observer/interface.d.ts +2 -3
- package/lib/src/scroll-bar/interface.d.ts +7 -7
- package/lib/src/scroll-view/interface.d.ts +2 -3
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/tests/mock-resize-observer.d.ts +2 -0
- package/lib/src/tests/utils.d.ts +8 -0
- package/lib/src/text/group.vue.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/version.d.ts +2 -0
- package/lib/src/version.js +1 -0
- package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/interfaces.d.ts +4 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/lib/test/setup.d.ts +5 -0
- package/package.json +12 -11
- package/theme/antd-global-overwrite/admin/alert.css +6 -19
- package/theme/antd-global-overwrite/admin/alert.less +25 -36
- package/theme/antd-global-overwrite/admin/button.css +13 -13
- package/theme/antd-global-overwrite/admin/button.less +24 -24
- package/theme/antd-global-overwrite/admin/field.css +39 -0
- package/theme/antd-global-overwrite/admin/field.less +39 -0
- package/theme/antd-global-overwrite/admin/index.css +89 -646
- package/theme/antd-global-overwrite/admin/index.less +2 -3
- package/theme/antd-global-overwrite/admin/message.css +2 -9
- package/theme/antd-global-overwrite/admin/message.less +2 -10
- package/theme/antd-global-overwrite/admin/modal.css +15 -48
- package/theme/antd-global-overwrite/admin/modal.less +13 -54
- package/theme/antd-global-overwrite/admin/table.css +11 -251
- package/theme/antd-global-overwrite/admin/table.less +4 -132
- package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
- package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
- package/theme/antd-global-overwrite/aplus/alert.css +9 -19
- package/theme/antd-global-overwrite/aplus/alert.less +27 -34
- package/theme/antd-global-overwrite/aplus/button.css +20 -20
- package/theme/antd-global-overwrite/aplus/button.less +24 -24
- package/theme/antd-global-overwrite/aplus/field.css +33 -0
- package/theme/antd-global-overwrite/aplus/field.less +32 -0
- package/theme/antd-global-overwrite/aplus/index.css +91 -690
- package/theme/antd-global-overwrite/aplus/index.less +1 -3
- package/theme/antd-global-overwrite/aplus/message.css +2 -9
- package/theme/antd-global-overwrite/aplus/message.less +2 -10
- package/theme/antd-global-overwrite/aplus/modal.css +15 -49
- package/theme/antd-global-overwrite/aplus/modal.less +14 -58
- package/theme/antd-global-overwrite/aplus/table.css +11 -236
- package/theme/antd-global-overwrite/aplus/table.less +4 -134
- package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
- package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
- package/theme/ap-action/item-dropdown.css +19 -1
- package/theme/ap-action/item.css +37 -8
- package/theme/ap-action/item.less +18 -6
- package/theme/ap-appendix/ap-appendix.css +27 -9
- package/theme/ap-appendix/ap-appendix.less +8 -8
- package/theme/ap-attachment/ap-attachment.css +21 -2
- package/theme/ap-attachment/ap-attachment.less +2 -2
- package/theme/ap-batch-action/ap-batch-action.css +22 -4
- package/theme/ap-batch-action/ap-batch-action.less +3 -3
- package/theme/ap-button/ap-button.css +19 -1
- package/theme/ap-card/ap-card.css +20 -2
- package/theme/ap-card/ap-card.less +1 -1
- package/theme/ap-copy/ap-copy.css +96 -0
- package/theme/ap-copy/ap-copy.less +61 -0
- package/theme/ap-descriptions/ap-descriptions.css +25 -5
- package/theme/ap-descriptions/ap-descriptions.less +6 -4
- package/theme/ap-download/ap-download.css +19 -1
- package/theme/ap-expand-alert/ap-expand-alert.css +21 -2
- package/theme/ap-expand-alert/ap-expand-alert.less +2 -1
- package/theme/ap-field/checkbox.css +19 -1
- package/theme/ap-field/index.css +19 -1
- package/theme/ap-field/number.css +19 -1
- package/theme/ap-field/radio.css +19 -1
- package/theme/ap-field/text-area.css +19 -1
- package/theme/ap-form/ap-form-item-group.css +19 -1
- package/theme/ap-form/ap-form-item.css +30 -9
- package/theme/ap-form/ap-form-item.less +15 -9
- package/theme/ap-form/drawer-form.css +19 -1
- package/theme/ap-form/index.css +51 -18
- package/theme/ap-form/item-text-group.css +19 -1
- package/theme/ap-form/item-text.css +19 -1
- package/theme/ap-form/modal-form.css +19 -1
- package/theme/ap-form/search-form-sorter.css +28 -9
- package/theme/ap-form/search-form-sorter.less +5 -4
- package/theme/ap-form/search-form.css +51 -18
- package/theme/ap-form/search-form.less +12 -1
- package/theme/ap-grid/editable.css +19 -1
- package/theme/ap-grid/index.css +118 -31
- package/theme/ap-grid/index.less +34 -5
- package/theme/ap-group-search/ap-extension-select.css +19 -1
- package/theme/ap-group-search/ap-group-search.css +19 -1
- package/theme/ap-group-search/ap-popover-select.css +19 -1
- package/theme/ap-image/ap-image.css +19 -1
- package/theme/ap-input-radio/ap-input-radio.css +19 -1
- package/theme/ap-label/ap-label.css +19 -1
- package/theme/ap-ladder/ap-ladder.css +20 -1
- package/theme/ap-ladder/ap-ladder.less +1 -0
- package/theme/ap-layout/ap-info-layout.css +19 -1
- package/theme/ap-list/index.css +19 -1
- package/theme/ap-product-info/ap-product-info.css +39 -31
- package/theme/ap-product-info/ap-product-info.less +28 -42
- package/theme/ap-radio-group/ap-radio-group.css +65 -0
- package/theme/ap-radio-group/ap-radio-group.less +25 -0
- package/theme/ap-select-layout/ap-select-layout.css +19 -1
- package/theme/ap-size-input/ap-size-input.css +19 -1
- package/theme/ap-status/ap-status.css +20 -2
- package/theme/ap-status/ap-status.less +1 -1
- package/theme/ap-summary/index.css +19 -1
- package/theme/ap-table/ap-table-index.css +19 -1
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +20 -2
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +127 -50
- package/theme/ap-table/ap-table.less +24 -11
- package/theme/ap-table/setting/index.css +35 -13
- package/theme/ap-table/setting/modal.css +26 -5
- package/theme/ap-table/setting/modal.less +6 -3
- package/theme/ap-table/setting/select-group.css +21 -2
- package/theme/ap-table/setting/select-group.less +2 -1
- package/theme/ap-table/setting/sortable-item-meta.css +21 -3
- package/theme/ap-table/setting/sortable-item-meta.less +2 -2
- package/theme/ap-table/setting/sortable-item.css +19 -1
- package/theme/ap-table/setting/sorter.css +24 -6
- package/theme/ap-table/setting/sorter.less +4 -4
- package/theme/ap-table-modal/index.css +142 -63
- package/theme/ap-table-modal/index.less +15 -13
- package/theme/ap-tag/ap-tag-group.css +21 -3
- package/theme/ap-tag/ap-tag-group.less +2 -3
- package/theme/ap-tag/ap-tag.css +23 -5
- package/theme/ap-tag/ap-tag.less +4 -4
- package/theme/ap-title/ap-title.css +24 -4
- package/theme/ap-title/ap-title.less +5 -3
- package/theme/ap-upload/index.css +24 -6
- package/theme/ap-upload/multiple-file.css +20 -2
- package/theme/ap-upload/multiple-file.less +1 -1
- package/theme/ap-upload/picture.css +21 -3
- package/theme/ap-upload/picture.less +2 -2
- package/theme/ap-upload/single-file.css +21 -3
- package/theme/ap-upload/single-file.less +2 -2
- package/theme/ap-upload/upload.css +19 -1
- package/theme/ap-upload-single/index.css +23 -5
- package/theme/ap-upload-single/index.less +4 -4
- package/theme/ap-view/ap-view.css +26 -8
- package/theme/ap-view/ap-view.less +7 -7
- package/theme/batch-input-group/index.css +22 -3
- package/theme/batch-input-group/popover-input.css +22 -3
- package/theme/batch-input-group/popover-input.less +3 -2
- package/theme/check-card/index.css +27 -9
- package/theme/check-card/index.less +5 -5
- package/theme/editable-table/index.css +69 -25
- package/theme/full-screen/index.css +19 -1
- package/theme/index.css +410 -163
- package/theme/index.less +3 -0
- package/theme/mask/index.css +19 -1
- package/theme/mixins/config.less +1 -1
- package/theme/mixins/mixins.css +19 -1
- package/theme/mixins/mixins.less +25 -0
- package/theme/scroll-bar/index.css +19 -1
- package/theme/scroll-view/index.css +19 -1
- package/theme/splitter/index.css +24 -6
- package/theme/splitter/index.less +1 -1
- package/theme/text/group.css +19 -1
- package/theme/text/index.css +24 -6
- package/theme/text/index.less +4 -4
- package/theme/ui-mode.css +58 -0
- package/theme/ui-mode.less +107 -0
- package/theme/work-order-modal/index.css +19 -1
- package/es/src/config-provider/css-var.d.ts +0 -139
- package/es/src/config-provider/css-var.mjs +0 -278
- package/lib/src/config-provider/css-var.d.ts +0 -139
- package/lib/src/config-provider/css-var.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@aplus-frontend/antdv"),i=require("./helper.js"),p=require("lodash-unified");require("./help-message/index.vue.js");require("../config-provider/index.js");const u=require("../config-provider/hooks/use-global-config.js"),C=require("../config-provider/hooks/use-namespace.js"),_=require("./help-message/index.vue2.js"),P={key:0},q=e.defineComponent({__name:"ap-descriptions",props:{descriptionsProps:{},schemas:{},dataSource:{},style:{type:[Boolean,null,String,Object,Array]},className:{}},setup(d){const n=d,f=u.useGlobalConfig("uiMode","admin"),y=u.useGlobalConfig("apDescriptions"),b=u.useGlobalConfig("downloadCenterTriggerConfig"),{m:g,b:k,be:v}=C.useNamespace("ap-descriptions"),S=(t={})=>{var r;let o="";return((r=n.descriptionsProps)==null?void 0:r.layout)==="vertical"&&(o="start"),{justifyContent:o,...t}},c=t=>{var l,s;const o=p.get(n.dataSource,t.field);if(t.customRender)return t.customRender(n.dataSource);t.valueType==="attachment"&&(t.extraProps=i.mixinsAttachmentExtraProps(t.extraProps,{fromConfig:(l=y.value)==null?void 0:l.downloadFile,fromGlobal:(s=b.value)==null?void 0:s.trigger}));const r=t.format?t.format(o,n.dataSource||{}):o;return i.transformValue({value:r,record:n.dataSource},t)},m=t=>{var o;return t.valueType==="text"&&!!((o=t.extraProps)!=null&&o.ellipsis)},B=t=>{if(t.visible!=null){if(typeof t.visible=="boolean")return t.visible;if(typeof t.visible=="function")return t.visible({record:n.dataSource||{},schema:t})}return!0};return(t,o)=>{var r;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.className,e.unref(k)(),e.unref(g)(e.unref(f))]),style:e.normalizeStyle(t.style)},[e.createVNode(e.unref(a.Descriptions),e.mergeProps(t.descriptionsProps,{"label-style":S({...((r=t.descriptionsProps)==null?void 0:r.labelStyle)||{}})}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.schemas,(l,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.field||"empty"+s},[l.valueType==="empty"?(e.openBlock(),e.createBlock(e.unref(a.DescriptionsItem),{key:0,"content-style":l.contentStyle,"label-style":l.labelStyle,span:l.span},null,8,["content-style","label-style","span"])):B(l)?(e.openBlock(),e.createBlock(e.unref(a.DescriptionsItem),{key:1,class:e.normalizeClass(m(l)?e.unref(v)("item","ellipsis"):""),label:l.label?e.h(e.Fragment,[e.h(_.default,{helpMessage:l.helpMessage,label:l.label})]):null,span:l.span,"content-style":l.contentStyle,"label-style":l.labelStyle},{default:e.withCtx(()=>[e.unref(i.isEmptyWithType)(e.unref(p.get)(t.dataSource,l.field),l)?(e.openBlock(),e.createElementBlock("span",P,"--")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.contentSlotName?e.renderSlot(t.$slots,l.contentSlotName,{key:0,index:s,item:c(l),record:t.dataSource}):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[l.prefix,c(l),l.suffix])),{key:1}))],64))]),_:2},1032,["class","label","span","content-style","label-style"])):e.createCommentVNode("",!0)],64))),128))]),_:3},16,["label-style"])],6)}}});exports.default=q;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@aplus-frontend/antdv"),i=require("./helper.js"),p=require("lodash-unified");require("./help-message/index.vue.js");require("../config-provider/index.js");const u=require("../config-provider/hooks/use-global-config.js"),C=require("../config-provider/hooks/use-namespace.js"),_=require("./help-message/index.vue2.js"),P={key:0},q=e.defineComponent({name:"ApDescriptions",__name:"ap-descriptions",props:{descriptionsProps:{},schemas:{},dataSource:{},style:{type:[Boolean,null,String,Object,Array]},className:{}},setup(d){const n=d,f=u.useGlobalConfig("uiMode","admin"),y=u.useGlobalConfig("apDescriptions"),b=u.useGlobalConfig("downloadCenterTriggerConfig"),{m:g,b:k,be:v}=C.useNamespace("ap-descriptions"),S=(t={})=>{var r;let o="";return((r=n.descriptionsProps)==null?void 0:r.layout)==="vertical"&&(o="start"),{justifyContent:o,...t}},c=t=>{var l,s;const o=p.get(n.dataSource,t.field);if(t.customRender)return t.customRender(n.dataSource);t.valueType==="attachment"&&(t.extraProps=i.mixinsAttachmentExtraProps(t.extraProps,{fromConfig:(l=y.value)==null?void 0:l.downloadFile,fromGlobal:(s=b.value)==null?void 0:s.trigger}));const r=t.format?t.format(o,n.dataSource||{}):o;return i.transformValue({value:r,record:n.dataSource},t)},m=t=>{var o;return t.valueType==="text"&&!!((o=t.extraProps)!=null&&o.ellipsis)},B=t=>{if(t.visible!=null){if(typeof t.visible=="boolean")return t.visible;if(typeof t.visible=="function")return t.visible({record:n.dataSource||{},schema:t})}return!0};return(t,o)=>{var r;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.className,e.unref(k)(),e.unref(g)(e.unref(f))]),style:e.normalizeStyle(t.style)},[e.createVNode(e.unref(a.Descriptions),e.mergeProps(t.descriptionsProps,{"label-style":S({...((r=t.descriptionsProps)==null?void 0:r.labelStyle)||{}})}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.schemas,(l,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.field||"empty"+s},[l.valueType==="empty"?(e.openBlock(),e.createBlock(e.unref(a.DescriptionsItem),{key:0,"content-style":l.contentStyle,"label-style":l.labelStyle,span:l.span},null,8,["content-style","label-style","span"])):B(l)?(e.openBlock(),e.createBlock(e.unref(a.DescriptionsItem),{key:1,class:e.normalizeClass(m(l)?e.unref(v)("item","ellipsis"):""),label:l.label?e.h(e.Fragment,[e.h(_.default,{helpMessage:l.helpMessage,label:l.label})]):null,span:l.span,"content-style":l.contentStyle,"label-style":l.labelStyle},{default:e.withCtx(()=>[e.unref(i.isEmptyWithType)(e.unref(p.get)(t.dataSource,l.field),l)?(e.openBlock(),e.createElementBlock("span",P,"--")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.contentSlotName?e.renderSlot(t.$slots,l.contentSlotName,{key:0,index:s,item:c(l),record:t.dataSource}):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[l.prefix,c(l),l.suffix])),{key:1}))],64))]),_:2},1032,["class","label","span","content-style","label-style"])):e.createCommentVNode("",!0)],64))),128))]),_:3},16,["label-style"])],6)}}});exports.default=q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const i=require("@ant-design/icons-vue"),o=require("@aplus-frontend/antdv"),r=require("../../config-provider/hooks/use-namespace.js"),p={style:{display:"inline-flex"}},u=e.defineComponent({__name:"index",props:{helpMessage:{},label:{}},setup(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const i=require("@ant-design/icons-vue"),o=require("@aplus-frontend/antdv"),r=require("../../config-provider/hooks/use-namespace.js"),p={style:{display:"inline-flex"}},u=e.defineComponent({__name:"index",props:{helpMessage:{},label:{}},setup(s){const l=s,{m:n}=r.useNamespace("ap-descriptions"),c=e.computed(()=>{const t=l.label;return typeof t!="object"?e.createVNode("div",{class:n("item-label"),style:{maxWidth:"var(--ap-descriptions-item-label-width, auto)"}},[e.createVNode(o.TypographyText,{ellipsis:{tooltip:t},content:t},null)]):t});return(t,a)=>(e.openBlock(),e.createElementBlock("span",p,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value))),t.helpMessage?(e.openBlock(),e.createBlock(e.unref(o.Tooltip),{key:0,placement:"topLeft",title:t.helpMessage},{default:e.withCtx(()=>[e.createVNode(e.unref(i.QuestionCircleOutlined),{class:"ap-descriptions-item-content__help"})]),_:1},8,["title"])):e.createCommentVNode("",!0)]))}});exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@aplus-frontend/utils"),i=require("dayjs"),n=(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@aplus-frontend/utils"),i=require("dayjs"),n=(e,o,r=!0)=>{if(!e)return null;let t=e.clone();return t=t.millisecond(r?0:999),o.indexOf("ss")===-1&&(t=t.second(r?0:59)),o.indexOf("mm")===-1&&(t=t.minute(r?0:59)),o.indexOf("HH")===-1&&(t=t.hour(r?0:23)),o.indexOf("DD")===-1&&(t=t.date(r?1:t.daysInMonth())),o.indexOf("MM")===-1&&(t=t.month(r?0:12)),t.valueOf()};function f(e){return(o,r,t=!0)=>{const a=r?n(o,r,t):o.valueOf();return e?u.getUtcTimestamp(i(a),e):a}}const m=e=>e&&e.valueOf();exports.formatDay=n;exports.formatDayWithTimezone=f;exports.formatValue=m;
|
|
@@ -33,8 +33,8 @@ declare const __VLS_component: DefineComponent<ApFieldDateProps, {}, {}, {}, {},
|
|
|
33
33
|
mode: FieldMode;
|
|
34
34
|
open: boolean;
|
|
35
35
|
disabled: boolean;
|
|
36
|
-
bordered: boolean;
|
|
37
36
|
autofocus: boolean;
|
|
37
|
+
bordered: boolean;
|
|
38
38
|
format: LiteralUnion<ApFormatPresetType, string>;
|
|
39
39
|
clearIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
40
40
|
[key: string]: any;
|
|
@@ -41,8 +41,8 @@ declare const __VLS_component: DefineComponent<ApFieldDateRangeProps, {}, {}, {}
|
|
|
41
41
|
[key: string]: any;
|
|
42
42
|
}> | null;
|
|
43
43
|
disabled: boolean | [boolean, boolean];
|
|
44
|
-
bordered: boolean;
|
|
45
44
|
autofocus: boolean;
|
|
45
|
+
bordered: boolean;
|
|
46
46
|
format: LiteralUnion<ApFormatPresetType, string>;
|
|
47
47
|
clearIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../date/constant.js");require("../../hooks/index.js");const u=require("lodash-unified"),d=require("dayjs"),v=require("@aplus-frontend/antdv"),E=require("../date/helper.js"),I=require("@ant-design/icons-vue"),U=require("../../utils/index.js"),T=require("@aplus-frontend/utils"),j=require("../hooks/use-default-placeholder.js"),H=require("../hooks/use-default-presets.js"),K=require("../hooks/use-date-timezone.js"),L=require("../../hooks/useControllableValue.js"),Z=e.defineComponent({__name:"index",props:{mode:{default:"edit"},class:{},style:{},id:{},defaultPickerValue:{},placeholder:{},disabled:{type:[Boolean,Array],default:void 0},disabledTime:{},ranges:{},separator:{type:[Object,String,Number,Boolean,null,Array],default:void 0},allowEmpty:{},onCalendarChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},direction:{},autocomplete:{},activePickerIndex:{},dateRender:{},panelRender:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},allowClear:{type:Boolean,default:!0},autofocus:{type:Boolean,default:void 0},tabindex:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},inputReadOnly:{type:Boolean,default:void 0},suffixIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},clearIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},getPopupContainer:{},inputRender:{},onOpenChange:{},onContextmenu:{},onKeydown:{},role:{},name:{},picker:{},prefixCls:{},disabledDate:{},monthCellRender:{},locale:{},size:{},bordered:{type:Boolean,default:void 0},showTime:{type:Boolean,default:void 0},showNow:{type:Boolean,default:void 0},order:{type:Boolean,default:void 0},defaultOpenValue:{},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12Hours:{type:Boolean,default:void 0},hourStep:{},minuteStep:{},secondStep:{},hideDisabledOptions:{type:Boolean,default:void 0},disabledHours:{},disabledMinutes:{},disabledSeconds:{},valueFormat:{},emptyText:{default:"--"},value:{},defaultValue:{},onChange:{},onOk:{},format:{default:"Y-D"},shownFormat:{},timezone:{},readModeSeparator:{},presets:{type:[Array,Boolean]}},emits:["update:value"],setup(D,{emit:P}){const t=D,
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../date/constant.js");require("../../hooks/index.js");const u=require("lodash-unified"),d=require("dayjs"),v=require("@aplus-frontend/antdv"),E=require("../date/helper.js"),I=require("@ant-design/icons-vue"),U=require("../../utils/index.js"),T=require("@aplus-frontend/utils"),j=require("../hooks/use-default-placeholder.js"),H=require("../hooks/use-default-presets.js"),K=require("../hooks/use-date-timezone.js"),L=require("../../hooks/useControllableValue.js"),Z=e.defineComponent({name:"ApFieldDateRange",__name:"index",props:{mode:{default:"edit"},class:{},style:{},id:{},defaultPickerValue:{},placeholder:{},disabled:{type:[Boolean,Array],default:void 0},disabledTime:{},ranges:{},separator:{type:[Object,String,Number,Boolean,null,Array],default:void 0},allowEmpty:{},onCalendarChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},direction:{},autocomplete:{},activePickerIndex:{},dateRender:{},panelRender:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},allowClear:{type:Boolean,default:!0},autofocus:{type:Boolean,default:void 0},tabindex:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},inputReadOnly:{type:Boolean,default:void 0},suffixIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},clearIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},getPopupContainer:{},inputRender:{},onOpenChange:{},onContextmenu:{},onKeydown:{},role:{},name:{},picker:{},prefixCls:{},disabledDate:{},monthCellRender:{},locale:{},size:{},bordered:{type:Boolean,default:void 0},showTime:{type:Boolean,default:void 0},showNow:{type:Boolean,default:void 0},order:{type:Boolean,default:void 0},defaultOpenValue:{},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12Hours:{type:Boolean,default:void 0},hourStep:{},minuteStep:{},secondStep:{},hideDisabledOptions:{type:Boolean,default:void 0},disabledHours:{},disabledMinutes:{},disabledSeconds:{},valueFormat:{},emptyText:{default:"--"},value:{},defaultValue:{},onChange:{},onOk:{},format:{default:"Y-D"},shownFormat:{},timezone:{},readModeSeparator:{},presets:{type:[Array,Boolean]}},emits:["update:value"],setup(D,{emit:P}){const t=D,F=P,k=e.useSlots(),s=e.computed(()=>g.ApFieldDatePresetFormats.indexOf(t.format)>-1),m=e.computed(()=>s.value?g.PRESET_FORMAT_MAP[t.format]:t.format),{value:y,updateValue:S}=L.useControllableValue(t,F),M=e.computed(()=>t.shownFormat?t.shownFormat:s.value?g.PRESET_FORMAT_MAP[t.format]:t.format),O=j.useDefaultPlaceholder("DateRange",t),{currentTimezone:i}=K.useDateTimezone(t),{presets:w,changeCurrentDate:b}=H.useDefaultPresets({...t,timezone:i}),c=(n,a,r=!0)=>E.formatDayWithTimezone(i.value)(n,a,r),h=e.computed(()=>{var l,o;const n=e.unref(y);if(u.isNil(n)||!(n!=null&&n.length))return n;const a=i.value?T.getTimeFormatToZone(e.unref(y)[0],i.value):(l=e.unref(y))==null?void 0:l[0],r=t.timezone?T.getTimeFormatToZone(e.unref(y)[1],i.value):(o=e.unref(y))==null?void 0:o[1];return[d(a),d(r)]}),A=e.computed(()=>e.unref(s)?t.picker??g.PRESET_FORMAT_PICK_MAP[t.format]:t.picker),R=e.computed(()=>{const n=e.unref(s)?g.PRESET_FORMAT_TIME_MAP[t.format]:{};return{...U.omitUndefined(u.omit(t,["value","onUpdate:value","onChange","onOk","format","mode","presets"])),placeholder:e.unref(O),presets:e.unref(w),...n}});function _(n){if(!n){S(n);return}let a=u.isString(n[0])?d(n[0]):n[0],r=u.isString(n[1])?d(n[1]):n[1];const l=e.unref(s)?e.unref(m):void 0;S([c(a,l),c(r,l,!1)])}function N(n){var p;const a=u.isString(n[0])?d(n[0]):n[0],r=u.isString(n[1])?d(n[1]):n[1],l=e.unref(s)?e.unref(m):void 0,o=n[0]?c(a,l):null,f=n[1]?c(r,l,!1):null;(p=t.onOk)==null||p.call(t,[o,f])}function x(n){var a;n&&b(),(a=t.onOpenChange)==null||a.call(t,n)}function V(n,a){var B,C;if(u.isNil(n)){(B=t.onChange)==null||B.call(t,n,a);return}const r=u.isString(n[0])?d(n[0]):n[0],l=u.isString(n[1])?d(n[1]):n[1],o=e.unref(s)?e.unref(m):void 0,f=n[0]?c(r,o):null,p=n[1]?c(l,o,!1):null;(C=t.onChange)==null||C.call(t,[f,p],a)}const q=e.computed(()=>{var r;const n=t.readModeSeparator;if(n)return e.isVNode(n)||u.isFunction(n)?t.readModeSeparator:e.createVNode(e.Fragment,null,[t.readModeSeparator]);const a=(r=k.readModeSeparator)==null?void 0:r.call(k);return a?e.createVNode(e.Fragment,null,[a]):I.SwapRightOutlined});return(n,a)=>{var r,l;return n.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[h.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString((r=h.value[0])==null?void 0:r.format(m.value))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(q.value))),e.createTextVNode(" "+e.toDisplayString((l=h.value[1])==null?void 0:l.format(m.value)),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(n.emptyText),1)],64))],64)):(e.openBlock(),e.createBlock(e.unref(v.InputGroup),{key:1,compact:"",style:e.normalizeStyle({display:Array.isArray(t.timezone)&&t.timezone.length?"flex":"block"})},{default:e.withCtx(()=>[Array.isArray(t.timezone)&&t.timezone.length?(e.openBlock(),e.createBlock(e.unref(v.Select),{key:0,value:e.unref(i),"onUpdate:value":a[0]||(a[0]=o=>e.isRef(i)?i.value=o:null),"default-active-first-option":"","dropdown-match-select-width":!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.timezone,o=>(e.openBlock(),e.createBlock(e.unref(v.SelectOption),{key:o==null?void 0:o.value,value:o==null?void 0:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((o==null?void 0:o.label)??(o==null?void 0:o.value)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.DatePicker).RangePicker,e.mergeProps(R.value,{value:h.value,picker:A.value,format:M.value,"onUpdate:value":_,onChange:V,onOk:N,onOpenChange:x}),e.createSlots({_:2},[e.renderList(e.unref(u.omit)(n.$slots,"readModeSeparator"),(o,f)=>({name:f,fn:e.withCtx(p=>[e.renderSlot(n.$slots,f,e.normalizeProps(e.guardReactiveProps(p||{})))])}))]),1040,["value","picker","format"])]),_:3},8,["style"]))}}});exports.default=Z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),o=require("lodash-unified"),t=e=>{var r;return Array.isArray(e)?(r=e[0])==null?void 0:r.value:e},s=e=>{const r=n.ref(t(e.timezone));return n.watch(()=>e.timezone,(i,u)=>{o.isUndefined(u)&&(r.value=t(i))}),{currentTimezone:r}};exports.useDateTimezone=s;
|
|
@@ -13,8 +13,6 @@ type ApFieldNumberSlots = {
|
|
|
13
13
|
upIcon?: any;
|
|
14
14
|
downIcon?: any;
|
|
15
15
|
};
|
|
16
|
-
declare function focus(): void;
|
|
17
|
-
declare function blur(): void;
|
|
18
16
|
declare function __VLS_template(): {
|
|
19
17
|
attrs: Partial<{}>;
|
|
20
18
|
slots: Readonly<ApFieldNumberSlots> & ApFieldNumberSlots;
|
|
@@ -344,8 +342,8 @@ declare function __VLS_template(): {
|
|
|
344
342
|
};
|
|
345
343
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
346
344
|
declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
|
|
347
|
-
focus:
|
|
348
|
-
blur:
|
|
345
|
+
focus: () => void;
|
|
346
|
+
blur: () => void;
|
|
349
347
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
350
348
|
"update:value": (...args: any[]) => void;
|
|
351
349
|
}, string, PublicProps, Readonly<ApFieldNumberProps> & Readonly<{
|
|
@@ -353,8 +351,8 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
|
|
|
353
351
|
}>, {
|
|
354
352
|
step: ValueType;
|
|
355
353
|
disabled: boolean;
|
|
356
|
-
bordered: boolean;
|
|
357
354
|
keyboard: boolean;
|
|
355
|
+
bordered: boolean;
|
|
358
356
|
max: ValueType;
|
|
359
357
|
min: ValueType;
|
|
360
358
|
controls: boolean;
|
|
@@ -6,11 +6,9 @@ import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
|
|
|
6
6
|
import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
|
|
7
7
|
import { RadioChangeEvent } from '@aplus-frontend/antdv';
|
|
8
8
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
9
|
-
declare function focus(): void;
|
|
10
|
-
declare function blur(): void;
|
|
11
9
|
declare const _default: DefineComponent<ApFieldRadioProps, {
|
|
12
|
-
focus:
|
|
13
|
-
blur:
|
|
10
|
+
focus: () => void;
|
|
11
|
+
blur: () => void;
|
|
14
12
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
13
|
"update:value": (...args: any[]) => void;
|
|
16
14
|
}, string, PublicProps, Readonly<ApFieldRadioProps> & Readonly<{
|
|
@@ -5,8 +5,6 @@ import { Direction } from '@aplus-frontend/antdv/es/config-provider';
|
|
|
5
5
|
import { FocusEventHandler, KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
6
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
7
7
|
import { FieldMode } from '..';
|
|
8
|
-
declare function focus(): void;
|
|
9
|
-
declare function blur(): void;
|
|
10
8
|
declare function __VLS_template(): {
|
|
11
9
|
attrs: Partial<{}>;
|
|
12
10
|
slots: Readonly<{
|
|
@@ -100,8 +98,8 @@ declare function __VLS_template(): {
|
|
|
100
98
|
};
|
|
101
99
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
102
100
|
declare const __VLS_component: DefineComponent<ApFieldRateProps, {
|
|
103
|
-
focus:
|
|
104
|
-
blur:
|
|
101
|
+
focus: () => void;
|
|
102
|
+
blur: () => void;
|
|
105
103
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
106
104
|
"update:value": (...args: any[]) => void;
|
|
107
105
|
}, string, PublicProps, Readonly<ApFieldRateProps> & Readonly<{
|
|
@@ -109,9 +107,9 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
|
|
|
109
107
|
}>, {
|
|
110
108
|
mode: FieldMode;
|
|
111
109
|
disabled: boolean;
|
|
112
|
-
count: number;
|
|
113
110
|
autofocus: boolean;
|
|
114
111
|
allowClear: boolean;
|
|
112
|
+
count: number;
|
|
115
113
|
allowHalf: boolean;
|
|
116
114
|
character: any;
|
|
117
115
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -22,9 +22,6 @@ type ApFieldSelectSlots = {
|
|
|
22
22
|
optionLabel: any;
|
|
23
23
|
default: any;
|
|
24
24
|
};
|
|
25
|
-
declare function requestIfNeeded(clear?: boolean): Promise<void>;
|
|
26
|
-
declare function focus(): void;
|
|
27
|
-
declare function blur(): void;
|
|
28
25
|
declare function __VLS_template(): {
|
|
29
26
|
attrs: Partial<{}>;
|
|
30
27
|
slots: Readonly<ApFieldSelectSlots> & ApFieldSelectSlots;
|
|
@@ -437,9 +434,9 @@ declare function __VLS_template(): {
|
|
|
437
434
|
};
|
|
438
435
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
439
436
|
declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
440
|
-
focus:
|
|
441
|
-
blur:
|
|
442
|
-
request:
|
|
437
|
+
focus: () => void;
|
|
438
|
+
blur: () => void;
|
|
439
|
+
request: (clear?: boolean) => Promise<void>;
|
|
443
440
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
444
441
|
"update:value": (...args: any[]) => void;
|
|
445
442
|
}, string, PublicProps, Readonly<ApFieldSelectProps> & Readonly<{
|
|
@@ -449,9 +446,9 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
449
446
|
open: boolean;
|
|
450
447
|
multiple: boolean;
|
|
451
448
|
disabled: boolean;
|
|
452
|
-
bordered: boolean;
|
|
453
449
|
loading: boolean;
|
|
454
450
|
autofocus: boolean;
|
|
451
|
+
bordered: boolean;
|
|
455
452
|
virtual: boolean;
|
|
456
453
|
lazy: boolean;
|
|
457
454
|
allowClear: boolean;
|
|
@@ -11,8 +11,6 @@ type ApFieldSliderSlots = {
|
|
|
11
11
|
label: any;
|
|
12
12
|
}) => any;
|
|
13
13
|
};
|
|
14
|
-
declare function focus(): void;
|
|
15
|
-
declare function blur(): void;
|
|
16
14
|
declare function __VLS_template(): {
|
|
17
15
|
attrs: Partial<{}>;
|
|
18
16
|
slots: Readonly<ApFieldSliderSlots> & ApFieldSliderSlots;
|
|
@@ -277,8 +275,8 @@ declare function __VLS_template(): {
|
|
|
277
275
|
};
|
|
278
276
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
279
277
|
declare const __VLS_component: DefineComponent<ApFieldSliderProps, {
|
|
280
|
-
focus:
|
|
281
|
-
blur:
|
|
278
|
+
focus: () => void;
|
|
279
|
+
blur: () => void;
|
|
282
280
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
283
281
|
"update:value": (...args: any[]) => void;
|
|
284
282
|
}, string, PublicProps, Readonly<ApFieldSliderProps> & Readonly<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),S=require("@aplus-frontend/antdv");require("../../hooks/index.js");const _=require("lodash-unified"),V=require("../hooks/use-default-placeholder.js"),q=require("../../hooks/useControllableValue.js");function T(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!t.isVNode(a)}const j=t.defineComponent({name:"ApFieldText",__name:"index",props:{mode:{default:"edit"},class:{},style:{},id:{},placeholder:{},autocomplete:{},type:{default:"text"},name:{},size:{},autofocus:{type:Boolean},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onKeydown:{},onKeyup:{},onMousedown:{},onMouseUp:{},onFocus:{},onBlur:{},onChange:{},onInput:{},onRawInput:{},"onUpdate:value":{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},hidden:{type:Boolean},status:{},value:{},defaultValue:{},inputElement:{},prefixCls:{},disabled:{type:Boolean,default:void 0},focused:{type:Boolean},triggerFocus:{},readonly:{type:Boolean},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"},beforeInput:{}},emits:["update:value"],setup(a,{expose:f,emit:m}){const l=t.ref(),o=t.useSlots(),y=e=>{var u;(u=l.value)==null||u.focus(e)},v=()=>{var e;(e=l.value)==null||e.blur()},x=(e,u,i)=>{var r;(r=l.value)==null||r.setSelectionRange(e,u,i)},b=()=>{var e;(e=l.value)==null||e.select()},h=m,n=a,{value:d,updateValue:B}=q.useControllableValue(n,h),g=V.useDefaultPlaceholder("Text",n);function I(e){var c,p,s;const u=e.target.value||"",i=n.beforeInput?(c=n.beforeInput)==null?void 0:c.call(n,u):u,r=(s=(p=l.value)==null?void 0:p.$el)==null?void 0:s.querySelector("input");r&&(r.value=i),B(i)}function C(){var e,u;return n.mode==="edit"?t.createVNode(S.Input,t.mergeProps(_.omit(n,["mode","emptyText","value","onUpdate:value","beforeInput"]),{placeholder:t.unref(g),value:t.unref(d),onInput:I,ref:l}),T(o)?o:{default:()=>[o]}):t.createVNode("span",null,[n.prefix||((e=o==null?void 0:o.prefix)==null?void 0:e.call(o)),t.unref(d)||n.emptyText,n.suffix||((u=o==null?void 0:o.suffix)==null?void 0:u.call(o))])}return f({focus:y,blur:v,setSelectionRange:x,select:b,input:t.computed(()=>{var e;return(e=l.value)==null?void 0:e.input})}),(e,u)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(C())))}});exports.default=j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@aplus-frontend/antdv");require("../../hooks/index.js");const h=require("lodash-unified"),c=require("@ant-design/icons-vue"),x=require("../hooks/use-default-placeholder.js"),p=require("../../hooks/useControllableValue.js");function C(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!e.isVNode(l)}const g=e.defineComponent({name:"ApFieldTextPassword",__name:"password",props:{mode:{default:"edit"},class:{},style:{},id:{},placeholder:{},autocomplete:{},type:{default:"text"},name:{},size:{},autofocus:{type:Boolean},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onKeydown:{},onKeyup:{},onMousedown:{},onMouseUp:{},onFocus:{},onBlur:{},onChange:{},onInput:{},onRawInput:{},"onUpdate:value":{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},hidden:{type:Boolean},status:{},value:{},defaultValue:{},inputElement:{},prefixCls:{},disabled:{type:Boolean,default:void 0},focused:{type:Boolean},triggerFocus:{},readonly:{type:Boolean},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},inputPrefixCls:{},action:{default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":{},emptyText:{default:"--"}},emits:["update:value","update:visible"],setup(l,{expose:f,emit:v}){const a=e.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@aplus-frontend/antdv");require("../../hooks/index.js");const h=require("lodash-unified"),c=require("@ant-design/icons-vue"),x=require("../hooks/use-default-placeholder.js"),p=require("../../hooks/useControllableValue.js");function C(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!e.isVNode(l)}const g=e.defineComponent({name:"ApFieldTextPassword",__name:"password",props:{mode:{default:"edit"},class:{},style:{},id:{},placeholder:{},autocomplete:{},type:{default:"text"},name:{},size:{},autofocus:{type:Boolean},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onKeydown:{},onKeyup:{},onMousedown:{},onMouseUp:{},onFocus:{},onBlur:{},onChange:{},onInput:{},onRawInput:{},"onUpdate:value":{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},hidden:{type:Boolean},status:{},value:{},defaultValue:{},inputElement:{},prefixCls:{},disabled:{type:Boolean,default:void 0},focused:{type:Boolean},triggerFocus:{},readonly:{type:Boolean},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},inputPrefixCls:{},action:{default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":{},emptyText:{default:"--"}},emits:["update:value","update:visible"],setup(l,{expose:f,emit:v}){const s=v,t=l,a=e.useSlots(),u=e.ref(),{value:y,updateValue:m}=p.useControllableValue(t,s),b=x.useDefaultPlaceholder("TextPassword",t),{value:B,updateValue:r}=p.useControllableValue(t,s,{valuePropName:"visible"});function V(){const o=e.unref(y),n=e.unref(B);if(t.mode==="edit")return e.createVNode(d.Input.Password,e.mergeProps(h.omit(t,["mode","emptyText","value","onUpdate:value","visible","onUpdate:visible"]),{placeholder:e.unref(b),value:o,"onUpdate:value":m,visible:n,"onUpdate:visible":r,ref:u}),C(a)?a:{default:()=>[a]});let i=e.createVNode(e.Fragment,null,[t.emptyText]);return o&&(i=e.createVNode(d.Space,null,{default:()=>[e.createVNode("span",null,[n?o:"********"]),e.createVNode("span",{style:{cursor:"pointer"},onClick:()=>r(!n)},[n?e.createVNode(c.EyeOutlined,null,null):e.createVNode(c.EyeInvisibleOutlined,null,null)])]})),i}return f({focus:()=>{var o;(o=u.value)==null||o.focus()},blur:()=>{var o;(o=u.value)==null||o.blur()}}),(o,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(V())))}});exports.default=g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApFieldTextAreaProps } from '../interface';
|
|
2
2
|
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
3
|
-
import { DefineComponent,
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
4
4
|
import { FieldMode } from '..';
|
|
5
5
|
import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
|
|
6
6
|
import { CompositionEventHandler, FocusEventHandler, ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
@@ -11,7 +11,7 @@ import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
|
11
11
|
declare const _default: DefineComponent<ApFieldTextAreaProps, {
|
|
12
12
|
focus: (options?: InputFocusOptions) => void;
|
|
13
13
|
blur: () => void;
|
|
14
|
-
resizableTextArea:
|
|
14
|
+
resizableTextArea: any;
|
|
15
15
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
16
|
"update:value": (...args: any[]) => void;
|
|
17
17
|
}, string, PublicProps, Readonly<ApFieldTextAreaProps> & Readonly<{
|
|
@@ -593,9 +593,9 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
593
593
|
open: boolean;
|
|
594
594
|
multiple: boolean;
|
|
595
595
|
disabled: boolean;
|
|
596
|
-
bordered: boolean;
|
|
597
596
|
loading: boolean;
|
|
598
597
|
autofocus: boolean;
|
|
598
|
+
bordered: boolean;
|
|
599
599
|
virtual: boolean;
|
|
600
600
|
dropdownMatchSelectWidth: number | boolean;
|
|
601
601
|
allowClear: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv");require("../../hooks/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv");require("../../hooks/index.js");const B=require("lodash-unified"),F=require("./use-request.js"),I=require("../../hooks/useControllableValue.js");function C(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!e.isVNode(r)}const R=e.defineComponent({name:"ApFieldTreeSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},suffixIcon:{},size:{},bordered:{type:Boolean,default:void 0},treeLine:{},replaceFields:{},placement:{},status:{},popupClassName:{},dropdownClassName:{},"onUpdate:value":{},"onUpdate:treeExpandedKeys":{},"onUpdate:searchValue":{},value:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},multiple:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:!0},dropdownMatchSelectWidth:{default:!0},defaultValue:{},showAction:{},transitionName:{},onDeselect:{},loading:{type:Boolean,default:void 0},placeholder:{},clearIcon:{},allowClear:{type:Boolean,default:void 0},onSearch:{},notFoundContent:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},switcherIcon:{},filterTreeNode:{},treeData:{},treeCheckable:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},choiceTransitionName:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},getRawInputElement:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},showCheckedStrategy:{},treeExpandAction:{},treeDefaultExpandAll:{type:Boolean,default:void 0},treeIcon:{},treeLoadedKeys:{},onTreeLoad:{},treeNodeFilterProp:{},treeNodeLabelProp:{},treeCheckStrictly:{type:Boolean,default:void 0},treeDataSimpleMode:{},treeExpandedKeys:{},treeDefaultExpandedKeys:{},onTreeExpand:{},dropdownPopupAlign:{},emptyText:{default:"--"},request:{},lazy:{type:Boolean},params:{},loadData:{type:Boolean}},emits:["update:value"],setup(r,{expose:N,emit:w}){const a=r,V=e.useSlots(),x=w,c=e.ref(),{value:f,updateValue:b}=I.useControllableValue(a,x),{treeData:m,loading:y,request:h}=F.useRequest(a),T=e.computed(()=>{var v,S;let t;const n=e.unref(f),d=B.isArray(n)?n:[n].filter(Boolean);if(!d.length)return e.createVNode(e.Fragment,null,[a.emptyText]);const o=[],p=((v=a.fieldNames)==null?void 0:v.label)||"label",P=((S=a.fieldNames)==null?void 0:S.value)||"value";function g(l){var u;for(const i of l){if(d.find(_=>_===i[P])&&o.push(i[p]),o.length===d.length)return;(u=i.children)!=null&&u.length&&g(i.children)}}return g(e.unref(m)),o.length?o.length===1?e.createVNode("span",null,[o[0]]):e.createVNode(s.Space,{size:4},C(t=o.map((l,u)=>e.createVNode(s.Tag,{style:"margin-right: 0px",key:`${l}-${u}`},C(l)?l:{default:()=>[l]})))?t:{default:()=>[t]}):e.createVNode(e.Fragment,null,[a.emptyText])});function k(){var t,n;(n=(t=c.value)==null?void 0:t.focus)==null||n.call(t)}function D(){var t,n;(n=(t=c.value)==null?void 0:t.blur)==null||n.call(t)}function q(t){return h(t)}return N({request:h,focus:k,blur:D}),(t,n)=>t.mode==="read"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T.value),{key:0})):(e.openBlock(),e.createBlock(e.unref(s.TreeSelect),e.mergeProps({key:1},e.unref(B.omit)(a,["onUpdate:value","value","treeData","loadData"]),{ref_key:"treeSelectRef",ref:c,value:e.unref(f),"tree-data":e.unref(m),loading:e.unref(y),"load-data":t.loadData?q:void 0,"onUpdate:value":e.unref(b)}),e.createSlots({_:2},[e.renderList(V,(d,o)=>({name:o,fn:e.withCtx(p=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(p||{})))])})),e.unref(y)?{name:"notFoundContent",fn:e.withCtx(()=>[e.createVNode(e.unref(s.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["value","tree-data","loading","load-data","onUpdate:value"]))}});exports.default=R;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),K=require("@aplus-frontend/antdv"),L=require("./context.js"),o=require("lodash-unified"),G=require("@vueuse/core"),H=require("./constant.js"),T=require("../utils/index.js"),J=require("./utils/set.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),K=require("@aplus-frontend/antdv"),L=require("./context.js"),o=require("lodash-unified"),G=require("@vueuse/core"),H=require("./constant.js"),T=require("../utils/index.js"),J=require("./utils/set.js"),p=require("./utils/params.js"),Q=require("./provider/context.js"),X=s.defineComponent({name:"ApForm",__name:"ap-form",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function],default:!1},syncToUrlPriority:{type:Boolean}},setup(O,{expose:j}){function w(e,t){return o.isArray(t)?t.reduce((r,i)=>r==null?void 0:r[i],e):e==null?void 0:e[t]}const n=O;function m(e,t,r=!0,i){var l;if(o.isArray(e)){let c=a;for(let g=0;g<e.length-1;g++)e[g]in c||(c[e[g]]={}),c=c[e[g]];i?i(c,e[e.length-1]):c[e[e.length-1]]=t}else i?i(a,e):a[e]=t;let u=o.isArray(e)?e[0]:e;if(r){const c={[u]:a[u]};v.triggerFormChange(n.name,c),(l=n.onValuesChange)==null||l.call(n,c,a,e)}V()}const f=s.ref(),U=G.useUrlSearchParams(T.getRouteType()),v=Q.useInjectFormProvider(),A=s.ref(n.syncToUrl?p.genParams(n.syncToUrl,U,"get"):{});let P=o.cloneDeep(R()),F={};const a=s.reactive(R());let h=[];function R(){const e=n.initialValues||{};return n.syncToUrlPriority?{...e,...s.unref(A)}:{...s.unref(A),...e}}function B(e){var r;const t=y(e,F);v.triggerFormFinish(n.name,e),n.syncToUrl&&p.setToParams(U,p.genParams(n.syncToUrl,t,"set")),(r=n.onFinish)==null||r.call(n,t)}const x=async()=>{var e;(e=f.value)==null||e.resetFields(),await s.nextTick(()=>{Object.keys(a).forEach(t=>delete a[t]),Object.assign(a,P),V(),n.syncToUrl&&p.setToParams(U,p.genParams(n.syncToUrl,y(P,F),"set"))})},E=e=>{var t;(t=f.value)==null||t.clearValidate(e)},S=(e,t)=>{var r;return(r=f.value)==null?void 0:r.validateFields(e,t)},C=async(e,t)=>{var i;const r=await((i=f.value)==null?void 0:i.validateFields(e,t));return y(r,F)},I=e=>{var t;return e===!0?s.toRaw(a):(t=f.value)==null?void 0:t.getFieldsValue(e)},D=e=>{const t=I(e);return y(t,F)},N=(e,t)=>{var r;return(r=f.value)==null?void 0:r.validate(e,t)},W=(e,t={})=>{var r;(r=f.value)==null||r.scrollToField(e,t)},$=e=>{Object.assign(a,e),V()},b=(e,t,r=!0,i)=>{m(e,t,r,i),V()};function q(e,t){return t||e(s.toRaw(a)),h.push(e),()=>{h=h.filter(r=>r!==e)}}function M({initialValue:e,name:t,transform:r}){if(T.isDef(e)&&T.isDef(t)){const i=w(s.unref(A),t);if(!T.isDef(i)||!n.syncToUrlPriority)if(m(t,e,!1),o.isArray(t)){let u=P;for(let l=0;l<t.length-1;l++)T.isDef(u[t[l]])||(u[t[l]]={}),u=u[t[l]];u[t[t.length-1]]=e}else P[t]=e}r&&(F=J.default(F,[t].flat(1),r,!0))}function k(e){if(e!==H.INTERNAL_FORM_INSTANCE_MARK){console.warn("getInternalInstance should only used at internal");return}return{registerField:M,registerWatch:q,setFieldValue:b}}function V(){if(h.length){const e=s.toRaw(a);h.forEach(t=>{t(e)})}}function y(e,t){if(e==null)return;let r=o.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const u=e[i],l=t==null?void 0:t[i],c=o.isFunction(l)?l:l==null?void 0:l.transformer,g=o.isFunction(l)?!0:l==null?void 0:l.flat;if(o.isFunction(c)){const d=c(u);g?o.isArray(d)&&o.isArray(r)?r=[...r,...d]:o.isPlainObject(d)&&o.isPlainObject(r)?r={...r,...d}:r[i]=d:r[i]=d}else if(o.isPlainObject(u)||o.isArray(u)){const d=y(u,l);r[i]=d}else r[i]=u}),r}const _={resetFields:x,clearValidate:E,validateFields:S,getFieldsValue:I,validate:N,scrollToField:W,setFieldsValue:$,setFieldValue:b,registerWatch:q,validateFieldsReturnTransformed:C,getFieldsValueTransformed:D,getInternalInstance:k};return s.watch(()=>n.name,e=>{e&&(v.registerForm(e,_),s.onWatcherCleanup(()=>{v.unregisterForm(n.name)}))},{immediate:!0}),L.useProvideForm({model:s.computed(()=>a),updateModel:m,internalInstance:{registerWatch:q,registerField:M,setFieldValue:b}}),j(_),(e,t)=>(s.openBlock(),s.createBlock(s.unref(K.Form),s.mergeProps({ref_key:"formRef",ref:f},s.unref(o.omit)(n,["initialValues","onValuesChange","onFinish","syncToUrl","syncToUrlPriority"]),{model:a,"data-form-name":e.name,onFinish:B}),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default")]),_:3},16,["model","data-form-name"]))}});exports.default=X;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("vue"),g=require("../context.js"),l=require("lodash-unified"),y=c.defineComponent({name:"ApFormDependency",__name:"index",props:{nameList:{}},setup(a){function i(e,n){return l.isArray(n)?n.reduce((s,t)=>s==null?void 0:s[t],e):e==null?void 0:e[n]}const f=a,{model:d}=g.useInjectForm(),r=c.ref({});function p(e,n,s){let t=n;for(let o=0;o<e.length;o++){const u=e[o];if(o===e.length-1)t[u]=s;else{const _=e[o+1];(typeof t[u]!="object"||t[u]===null)&&(t[u]=l.isNumber(_)?[]:{}),t=t[u]}}}return c.watchEffect(()=>{const e=l.cloneDeep(r.value);for(const n of f.nameList){const s=[n].flat(1),t=i(c.unref(d),s);p(s,e,t)}r.value=e}),(e,n)=>c.renderSlot(e.$slots,"default",{values:r.value})}});exports.default=y;
|
|
@@ -818,7 +818,7 @@ declare function __VLS_template(): {
|
|
|
818
818
|
hideRequiredMark: boolean;
|
|
819
819
|
validateOnRuleChange: boolean;
|
|
820
820
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
821
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "
|
|
821
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
822
822
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
823
823
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
824
824
|
resetFields: () => Promise<void>;
|
|
@@ -841,15 +841,17 @@ declare function __VLS_template(): {
|
|
|
841
841
|
};
|
|
842
842
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
843
843
|
declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
844
|
-
|
|
844
|
+
validate: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
845
|
+
setFieldsValue: (fields: Partial<any>) => void;
|
|
846
|
+
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
847
|
+
resetFields: () => Promise<void>;
|
|
845
848
|
clearValidate: (name?: NamePath) => void;
|
|
846
849
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
847
850
|
getFieldsValue: (nameList?: true | InternalNamePath[]) => Partial<any> | undefined;
|
|
848
|
-
|
|
849
|
-
scrollToField: (name: NamePath, options?: {}) => void;
|
|
850
|
-
setFieldValue: (key: string, newValue: any) => void;
|
|
851
|
-
setFieldsValue: (values: Record<string, any>) => void;
|
|
851
|
+
scrollToField: (name: NamePath, options?: any) => void;
|
|
852
852
|
getInternalInstance: (mark: string) => ApFormInternalInstance | undefined;
|
|
853
|
+
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
854
|
+
getFieldsValueTransformed: (nameList?: true | InternalNamePath[]) => Partial<any> | undefined;
|
|
853
855
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
854
856
|
"update:open": (...args: any[]) => void;
|
|
855
857
|
}, string, PublicProps, Readonly<ApFormDrawerFormProps> & Readonly<{
|
|
@@ -1760,7 +1762,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1760
1762
|
hideRequiredMark: boolean;
|
|
1761
1763
|
validateOnRuleChange: boolean;
|
|
1762
1764
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
1763
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "
|
|
1765
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
1764
1766
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
1765
1767
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
1766
1768
|
resetFields: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),c=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const U=require("../../utils/slot.js");require("../../config-provider/index.js");const g=require("lodash-unified"),j=require("../../utils/index.js"),E=require("../../hooks/useControllableValue.js"),D=require("../../config-provider/hooks/use-locale.js"),A=require("../../config-provider/hooks/use-namespace.js"),I=require("../ap-form.vue2.js");function W(f){return typeof f=="function"||Object.prototype.toString.call(f)==="[object Object]"&&!n.isVNode(f)}const $=n.defineComponent({name:"ApFormDrawerForm",__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinishFailed:{},onValidate:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},open:{type:Boolean,default:void 0},"onUpdate:open":{},drawerProps:{default:()=>({})},title:{},width:{default:378},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{},resize:{type:[Object,Boolean],default:!1}},emits:["update:open"],setup(f,{expose:k,emit:x}){const i=f,h=n.useSlots(),N=x,a=n.ref(),p=n.ref(),u=n.ref(!1),{value:F,updateValue:v}=E.useControllableValue(i,N,{valuePropName:"open",defaultValue:!1}),d=n.computed(()=>{var t,o,l,s;const e={onResize:()=>{},minWidth:300,maxWidth:window.innerWidth*.8,resizeOnOpen:!0};return g.isBoolean(i.resize)?i.resize?e:{}:{minWidth:((t=i.resize)==null?void 0:t.minWidth)??e.minWidth,maxWidth:((o=i.resize)==null?void 0:o.maxWidth)??e.maxWidth,onResize:((l=i.resize)==null?void 0:l.onResize)??e.onResize,resizeOnOpen:g.isUndefined((s=i.resize)==null?void 0:s.resizeOnOpen)?e.onResize:i.resize.resizeOnOpen}}),m=n.ref(V()),{t:b}=D.useLocale(),{e:R,em:y}=A.useNamespace("ap-form-drawer-form"),O=n.computed(()=>[R("resize-bar"),{[y("resize-bar","min-disabled")]:n.unref(m)===n.unref(d).minWidth},{[y("resize-bar","max-disabled")]:n.unref(m)===n.unref(d).maxWidth}]);n.watch(()=>a.value,e=>{var t;e&&p.value&&((t=e.setFieldsValue)==null||t.call(e,p.value),p.value=void 0)}),n.watch(()=>n.unref(F),e=>{var t;e&&(t=n.unref(d))!=null&&t.resizeOnOpen&&(m.value=V())});function V(){var t;const e=(t=n.unref(d))==null?void 0:t.minWidth;return!e||e&&e<i.width?i.width:e}const w=U.getSingleVNode(h.trigger),C=w?n.cloneVNode(w,{onClick:()=>{v(!0)}}):null,P=n.computed(()=>{var t,o,l,s;const e=[];if(i.submitter===!1)return null;if(i.showCancel){let r;e.push(n.createVNode(c.Button,{onClick:T,disabled:u.value},W(r=b("ap.common.cancelText"))?r:{default:()=>[r]}))}return((t=i.submitter)==null?void 0:t.resetButtonProps)!==!1&&e.push(n.createVNode(c.Button,n.mergeProps(((o=i.submitter)==null?void 0:o.resetButtonProps)||{},{key:"submit",disabled:u.value,onClick:q}),{default:()=>{var r;return[((r=i.submitter)==null?void 0:r.resetText)||b("ap.common.resetText")]}})),((l=i.submitter)==null?void 0:l.submitButtonProps)!==!1&&e.push(n.createVNode(c.Button,n.mergeProps({type:"primary",key:"submit"},((s=i.submitter)==null?void 0:s.submitButtonProps)||{},{loading:u.value,onClick:S}),{default:()=>{var r;return[((r=i.submitter)==null?void 0:r.submitText)||b("ap.common.okText")]}})),n.createVNode(c.Flex,{justify:"flex-end"},{default:()=>[h.submitter?h.submitter(e):n.createVNode(c.Space,null,W(e)?e:{default:()=>[e]})]})});function _(){var e,t;(t=(e=d.value)==null?void 0:e.onResize)==null||t.call(e),document.addEventListener("mousemove",B),document.addEventListener("mouseup",z)}function B(e){const t=n.unref(d),o=(document.body.offsetWidth||1e3)-(e.clientX-document.body.offsetLeft),l=(t==null?void 0:t.minWidth)??(i.width||800),s=(t==null?void 0:t.maxWidth)??window.innerWidth*.8;let r=o;o<l&&(r=l),o>s&&(r=s),m.value=r}function z(){document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",z)}function q(){var e,t,o;i.submitter!==!1&&((e=a.value)==null||e.resetFields(),(o=(t=i.submitter)==null?void 0:t.onReset)==null||o.call(t))}async function S(){var e,t,o,l;if(i.submitter!==!1)try{const s=await((e=a.value)==null?void 0:e.validateFieldsReturnTransformed());(o=(t=i.submitter)==null?void 0:t.onSubmit)==null||o.call(t),u.value=!0;const r=(l=i.onFinish)==null?void 0:l.call(i,j.convertReactiveToRaw(s));if(i.submitTimeout&&r instanceof Promise){const L=setTimeout(()=>u.value=!1,i.submitTimeout);r.finally(()=>{clearTimeout(L),u.value=!1})}await r&&v(!1)}finally{u.value=!1}}function T(){n.unref(u)||v(!1)}function M(e){!e&&n.unref(u)||v(e)}return k({resetFields:async()=>{var e;(e=a.value)==null||e.resetFields()},clearValidate:e=>{var t;(t=a.value)==null||t.clearValidate(e)},validateFields:(e,t)=>{var o;return(o=a.value)==null?void 0:o.validateFields(e,t)},getFieldsValue:e=>{var t;return(t=a.value)==null?void 0:t.getFieldsValue(e)},validate:(e,t)=>{var o;return(o=a.value)==null?void 0:o.validate(e,t)},scrollToField:(e,t={})=>{var o;(o=a.value)==null||o.scrollToField(e,t)},setFieldValue:(e,t)=>{var o,l;(l=(o=a.value)==null?void 0:o.setFieldValue)==null||l.call(o,e,t)},setFieldsValue:e=>{var t,o;if(!a.value){p.value=e;return}(o=(t=a.value)==null?void 0:t.setFieldsValue)==null||o.call(t,e)},getInternalInstance:e=>{var t;return(t=a.value)==null?void 0:t.getInternalInstance(e)},getFieldsValueTransformed:e=>{var t;return(t=a.value)==null?void 0:t.getFieldsValueTransformed(e)},validateFieldsReturnTransformed:e=>{var t;return(t=a.value)==null?void 0:t.validateFieldsReturnTransformed(e)}}),(e,t)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(n.unref(c.Drawer),n.mergeProps(e.drawerProps,{open:n.unref(F),width:m.value,"onUpdate:open":M,onCancel:T}),{title:n.withCtx(()=>[n.renderSlot(e.$slots,"title",{},()=>[n.createTextVNode(n.toDisplayString(i.title),1)])]),footer:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(P.value)))]),default:n.withCtx(()=>[n.createVNode(I.default,n.mergeProps({ref_key:"formRef",ref:a},n.unref(g.omit)(i,["drawerProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},16),e.resize?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(O.value),onMousedown:n.withModifiers(_,["stop","prevent"])},null,34)):n.createCommentVNode("",!0)]),_:3},16,["open","width"]),n.unref(C)?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(C)),{key:0})):n.createCommentVNode("",!0)],64))}});exports.default=$;
|
|
@@ -162,6 +162,10 @@ export type ApFormSearchFormProps = ApFormProps & {
|
|
|
162
162
|
* 是否可排序
|
|
163
163
|
*/
|
|
164
164
|
sortable?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* 尺寸监听目标元素(用于响应式)
|
|
167
|
+
*/
|
|
168
|
+
resizeTarget?: HTMLElement | null;
|
|
165
169
|
};
|
|
166
170
|
export type ApFormSearchFormPopoverFilterProps = {
|
|
167
171
|
config: Array<{
|
|
@@ -183,6 +187,10 @@ export type ApFormSearchFormPopoverSorterProps = {
|
|
|
183
187
|
* @returns
|
|
184
188
|
*/
|
|
185
189
|
onClickConfirm: (sortedChildren: VNode[]) => void;
|
|
190
|
+
/**
|
|
191
|
+
* 当前的children是否已经排序过了
|
|
192
|
+
*/
|
|
193
|
+
sorted?: boolean;
|
|
186
194
|
};
|
|
187
195
|
export type ApFormSearchFormExpose = {
|
|
188
196
|
apForm: ApFormExpose;
|
|
@@ -233,15 +241,15 @@ export type ApFormDrawerFormProps = Omit<ApFormProps, 'onFinish'> & {
|
|
|
233
241
|
*/
|
|
234
242
|
resize?: CustomizeResizeType | boolean;
|
|
235
243
|
};
|
|
236
|
-
export type ApFormModalFormExpose = ApFormExpose
|
|
237
|
-
export type ApFormDrawerFormExpose =
|
|
244
|
+
export type ApFormModalFormExpose = Omit<ApFormExpose, 'registerWatch'>;
|
|
245
|
+
export type ApFormDrawerFormExpose = ApFormModalFormExpose;
|
|
238
246
|
/**
|
|
239
247
|
* ApFormItem支持的插槽
|
|
240
248
|
*/
|
|
241
249
|
export type ApFormItemSlots = {
|
|
242
|
-
help
|
|
243
|
-
label
|
|
244
|
-
extra
|
|
250
|
+
help?: any;
|
|
251
|
+
label?: any;
|
|
252
|
+
extra?: any;
|
|
245
253
|
default: () => VNode[];
|
|
246
254
|
};
|
|
247
255
|
export type ApFormDependencyProps = {
|
|
@@ -6,11 +6,6 @@ import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
|
6
6
|
import { VueTypeValidableDef, VueTypeDef } from '../../../node_modules/vue-types';
|
|
7
7
|
import { CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
8
8
|
import { OnCleanup } from '@vue/reactivity';
|
|
9
|
-
declare function onFieldBlur(): void;
|
|
10
|
-
declare function onFieldChange(): void;
|
|
11
|
-
declare function clearValidate(): void;
|
|
12
|
-
declare function resetField(): void;
|
|
13
|
-
declare function getFieldValue(shouldFormat?: boolean): any;
|
|
14
9
|
declare function __VLS_template(): {
|
|
15
10
|
attrs: Partial<{}>;
|
|
16
11
|
slots: Readonly<ApFormItemSlots> & ApFormItemSlots;
|
|
@@ -795,18 +790,18 @@ declare function __VLS_template(): {
|
|
|
795
790
|
};
|
|
796
791
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
797
792
|
declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
798
|
-
onFieldBlur:
|
|
799
|
-
onFieldChange:
|
|
800
|
-
clearValidate:
|
|
801
|
-
resetField:
|
|
802
|
-
getFieldValue:
|
|
793
|
+
onFieldBlur: () => void;
|
|
794
|
+
onFieldChange: () => void;
|
|
795
|
+
clearValidate: () => void;
|
|
796
|
+
resetField: () => void;
|
|
797
|
+
getFieldValue: (shouldFormat?: boolean) => any;
|
|
803
798
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemProps> & Readonly<{}>, {
|
|
804
|
-
bordered: boolean;
|
|
805
799
|
hasFeedback: boolean;
|
|
806
800
|
colon: boolean;
|
|
807
801
|
autoLink: boolean;
|
|
808
802
|
required: boolean;
|
|
809
803
|
validateFirst: boolean;
|
|
804
|
+
bordered: boolean;
|
|
810
805
|
valuePropName: string;
|
|
811
806
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
812
807
|
formItemRef: ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@aplus-frontend/antdv"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@aplus-frontend/antdv"),I=require("@aplus-frontend/antdv/es/theme/internal"),a=require("lodash-unified"),_=require("../constant.js"),z=require("@ant-design/icons-vue");require("../../config-provider/index.js");const A=require("../context.js"),L=require("@fruits-chain/utils"),b=require("../../utils/slot.js"),R=require("../../config-provider/hooks/use-namespace.js"),j=e.defineComponent({name:"ApFormItem",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean,default:!1},valuePropName:{default:"value"},initialValue:{},_signal:{},transform:{},description:{}},setup(h,{expose:F}){const o=h,l=e.useSlots(),{model:u,updateModel:s,internalInstance:d}=A.useInjectForm(),{m,b:g}=R.useNamespace("ap-form-item"),f=e.ref(!1),i=e.ref(),[,B]=I.useToken();e.onMounted(async()=>{let t=a.isFunction(o.initialValue)?o.initialValue():o.initialValue;L.isPromise(t)&&(t=await t),d==null||d.registerField({name:o.name,initialValue:a.cloneDeep(t),transform:o.transform})});const p=e.computed(()=>o.name?a.isArray(o.name)?o.name.reduce((t,n)=>t==null?void 0:t[n],e.unref(u)):u==null?void 0:u.value[o.name]:null),v=e.ref(b.getSingleVNode(l.default));e.watch(()=>{var t;return(t=l.default)==null?void 0:t.call(l)},t=>{v.value=b.getValidVNodeList(t)[0]});function C(t){s==null||s(o.name,t)}function x(){f.value=!0}function N(){f.value=!1}const y=e.computed(()=>{var n,r;if(!o.name)return(n=l.default())==null?void 0:n[0];const t=e.unref(v);return t?e.cloneVNode(t,{[o.valuePropName]:e.unref(p),[`onUpdate:${o.valuePropName}`]:C,bordered:o.bordered?!1:(r=t==null?void 0:t.props)==null?void 0:r.bordered,onFocus:x,onBlur:N}):null});function k(){var t;(t=i.value)==null||t.onFieldBlur()}function q(){var t;(t=i.value)==null||t.onFieldChange()}function w(){var t;(t=i.value)==null||t.clearValidate()}function S(){var t;(t=i.value)==null||t.resetField()}function P(t=!1){const n=e.unref(p);if(!t||!o.transform)return n;const r=a.isFunction(o.transform)?o.transform:o.transform.transformer;return o.transform?r(n):n}return F({onFieldBlur:k,onFieldChange:q,clearValidate:w,resetField:S,getFieldValue:P}),(t,n)=>(e.openBlock(),e.createBlock(e.unref(c.Form).Item,e.mergeProps({ref_key:"formItemRef",ref:i},e.unref(a.omit)(o,[...e.unref(_.apFormItemColPropKeys),"tooltip","label","description"]),{class:{[e.unref(m)("bordered")]:t.bordered,[e.unref(m)("focused")]:t.bordered&&f.value,[e.unref(g)()]:!0},colon:t.bordered?!1:o.colon}),e.createSlots({default:e.withCtx(()=>[y.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{key:0})):e.createCommentVNode("",!0)]),_:2},[o.tooltip?{name:"tooltip",fn:e.withCtx(({class:r})=>[e.createElementVNode("span",{class:e.normalizeClass(r)},[e.createVNode(e.unref(c.Tooltip),{title:o.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(z.QuestionCircleOutlined),{style:e.normalizeStyle({color:e.unref(B).colorTextTertiary,fontSize:"14px",transform:"translateY(1px)"})},null,8,["style"])]),_:1},8,["title"])],2)]),key:"0"}:void 0,t.label?{name:"label",fn:e.withCtx(()=>[e.createVNode(e.unref(c.TypographyText),{content:t.label,ellipsis:{tooltip:t.label},style:{"min-width":"0px",flex:"1"}},null,8,["content","ellipsis"])]),key:"1"}:void 0,e.renderList(e.unref(a.omit)(l,"default"),(r,V)=>({name:V,fn:e.withCtx(T=>[e.renderSlot(t.$slots,V,e.normalizeProps(e.guardReactiveProps(T||{})))])}))]),1040,["class","colon"]))}});exports.default=j;
|