@aplus-frontend/ui 7.6.0 → 7.7.1
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/src/ag-grid/components/tooltip/index.vue.d.ts +1 -1
- package/es/src/ag-grid/components/tooltip/index.vue2.mjs +12 -11
- package/es/src/ag-grid/hooks/use-columns-def.mjs +32 -31
- package/es/src/ag-grid/hooks/use-editable-api.mjs +9 -8
- package/es/src/ag-grid/hooks/use-editable-columns.mjs +26 -25
- package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +11 -10
- package/es/src/ag-grid/index.vue.mjs +22 -21
- package/es/src/ag-grid/renderer/number.mjs +7 -7
- package/es/src/ag-grid/style/custom-header.mjs +3 -3
- package/es/src/ag-grid/style/index.mjs +1 -1
- package/es/src/ap-action/style/index.mjs +1 -1
- package/es/src/ap-drawer/style/index.mjs +12 -12
- package/es/src/ap-field/hooks/use-default-placeholder.mjs +5 -4
- package/es/src/ap-field/number/helper.mjs +1 -1
- package/es/src/ap-field/number/index.vue.mjs +9 -9
- package/es/src/ap-field/number/read.vue2.mjs +5 -5
- package/es/src/ap-field/style/checkbox.d.ts +2 -2
- package/es/src/ap-field/style/number.d.ts +2 -2
- package/es/src/ap-field/style/radio.d.ts +2 -2
- package/es/src/ap-field/style/textarea.d.ts +2 -2
- package/es/src/ap-field/switch/index.vue.mjs +4 -3
- package/es/src/ap-form/ap-form.vue2.mjs +18 -17
- package/es/src/ap-form/item/index.vue.mjs +6 -6
- package/es/src/ap-form/item-group/helper.mjs +8 -7
- package/es/src/ap-form/item-group/index.vue.mjs +15 -14
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +24 -22
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +9 -8
- package/es/src/ap-form/search-form/index.vue.mjs +12 -11
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-form/style/item.mjs +15 -15
- package/es/src/ap-form/style/modal-form.mjs +2 -1
- package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
- package/es/src/ap-form/style/search-form.d.ts +7 -1
- package/es/src/ap-form/style/search-form.mjs +37 -34
- package/es/src/ap-grid/editable/form-item.vue.mjs +4 -3
- package/es/src/ap-grid/editable/index.vue.mjs +4 -3
- package/es/src/ap-grid/index.vue.mjs +13 -12
- package/es/src/ap-grid/style/editable.mjs +7 -7
- package/es/src/ap-grid/style/index.mjs +11 -11
- package/es/src/ap-grid/utils/table.mjs +14 -13
- package/es/src/ap-list/hooks/use-offline-list.d.ts +2 -2
- package/es/src/ap-list/hooks/use-offline-list.mjs +13 -12
- package/es/src/ap-list/style/index.mjs +1 -1
- package/es/src/ap-pro-card/style/divider.mjs +2 -2
- package/es/src/ap-pro-card/style/index.mjs +14 -14
- package/es/src/ap-pro-card/style/operation.mjs +1 -2
- package/es/src/ap-pro-card/style/statistic.mjs +12 -12
- package/es/src/ap-pro-card/style/statistics-card.mjs +13 -13
- package/es/src/ap-pro-card/style/title.mjs +13 -33
- package/es/src/ap-table/ap-table.vue2.mjs +4 -3
- package/es/src/ap-table/hooks/use-table-column-state.mjs +23 -22
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +4 -3
- package/es/src/ap-table/style/index-comp.d.ts +2 -1
- package/es/src/ap-table/style/index-comp.mjs +15 -12
- package/es/src/ap-table/style/index.d.ts +3 -0
- package/es/src/ap-table/style/index.mjs +14 -11
- package/es/src/ap-table/style/setting.d.ts +2 -1
- package/es/src/ap-table/style/setting.mjs +73 -61
- package/es/src/ap-table/utils.mjs +61 -62
- package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +15 -15
- package/es/src/business/ag-grid-modal/style/index.d.ts +3 -0
- package/es/src/business/ag-grid-modal/style/index.mjs +24 -20
- package/es/src/business/ag-grid-modal/style/selected-items.mjs +8 -8
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +26 -27
- package/es/src/business/ap-appendix/style/index.mjs +20 -21
- package/es/src/business/ap-attachment/style/index.d.ts +6 -0
- package/es/src/business/ap-attachment/style/index.mjs +28 -25
- package/es/src/business/ap-batch-action/style/index.d.ts +2 -2
- package/es/src/business/ap-batch-action/style/index.mjs +18 -18
- package/es/src/business/ap-card/style/index.d.ts +2 -2
- package/es/src/business/ap-card/style/index.mjs +8 -8
- package/es/src/business/ap-copy/style/index.mjs +16 -22
- package/es/src/business/ap-descriptions/formatter/index.mjs +1 -1
- package/es/src/business/ap-descriptions/style/index.mjs +6 -5
- package/es/src/business/ap-download/style/index.mjs +4 -4
- package/es/src/business/ap-draggable-grid/style/index.mjs +7 -7
- package/es/src/business/ap-expand-alert/style/index.mjs +30 -26
- package/es/src/business/ap-image/style/index.d.ts +2 -2
- package/es/src/business/ap-image/style/index.mjs +8 -7
- package/es/src/business/ap-input-radio/style/index.mjs +1 -1
- package/es/src/business/ap-label/style/index.d.ts +14 -0
- package/es/src/business/ap-label/style/index.mjs +29 -19
- package/es/src/business/ap-ladder/style/index.mjs +7 -6
- package/es/src/business/ap-product-info/style/index.d.ts +10 -0
- package/es/src/business/ap-product-info/style/index.mjs +35 -28
- package/es/src/business/ap-radio-group/style/index.mjs +3 -3
- package/es/src/business/ap-select-layout/style/index.d.ts +6 -0
- package/es/src/business/ap-select-layout/style/index.mjs +59 -53
- package/es/src/business/ap-size-input/style/index.mjs +3 -3
- package/es/src/business/ap-status/style/index.mjs +1 -1
- package/es/src/business/ap-summary/style/index.d.ts +10 -0
- package/es/src/business/ap-summary/style/index.mjs +18 -11
- package/es/src/business/ap-table-modal/style/index.d.ts +11 -1
- package/es/src/business/ap-table-modal/style/index.mjs +17 -12
- package/es/src/business/ap-tag/style/index.mjs +33 -31
- package/es/src/business/ap-title/style/index.d.ts +2 -1
- package/es/src/business/ap-title/style/index.mjs +41 -49
- package/es/src/business/ap-upload/style/index.mjs +10 -5
- package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -2
- package/es/src/business/ap-upload/style/multiple-file.mjs +8 -7
- package/es/src/business/ap-upload/style/picture.d.ts +3 -2
- package/es/src/business/ap-upload/style/picture.mjs +26 -26
- package/es/src/business/ap-upload/style/single-file.d.ts +3 -2
- package/es/src/business/ap-upload/style/single-file.mjs +30 -29
- package/es/src/business/ap-upload/style/token.d.ts +19 -0
- package/es/src/business/ap-upload/style/token.mjs +9 -0
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +51 -42
- package/es/src/business/ap-value-select-card/style/index.mjs +45 -43
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +14 -14
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +35 -34
- package/es/src/business/ap-view/style/index.d.ts +6 -2
- package/es/src/business/ap-view/style/index.mjs +43 -35
- package/es/src/business/batch-input-group/index.vue.mjs +23 -22
- package/es/src/business/batch-input-group/style/index.mjs +2 -2
- package/es/src/check-card/style/index.mjs +17 -17
- package/es/src/design-token/constants.mjs +9 -1
- package/es/src/design-token/interface.d.ts +137 -12
- package/es/src/editable-table/form-item.vue.mjs +4 -3
- package/es/src/editable-table/index.vue.mjs +4 -3
- package/es/src/editable-table/style/index.mjs +11 -11
- package/es/src/editable-table/utils.d.ts +1 -1
- package/es/src/editable-table/utils.mjs +27 -26
- package/es/src/hooks/useMessage.mjs +4 -4
- package/es/src/loading-bar/index.vue2.mjs +4 -3
- package/es/src/loading-bar/style/index.mjs +10 -10
- package/es/src/scroll-view/hooks/use-scroll-smooth.mjs +10 -9
- package/es/src/scroll-view/index.vue.mjs +4 -3
- package/es/src/splitter/style/index.mjs +11 -11
- package/es/src/text/index.vue.mjs +8 -7
- package/es/src/utils/cssinjs/TokenUtil.d.ts +1 -0
- package/es/src/utils/cssinjs/TokenUtil.mjs +3 -0
- package/es/src/utils/decimal.d.ts +36 -0
- package/es/src/utils/decimal.mjs +45 -0
- package/es/src/utils/format.d.ts +21 -0
- package/es/src/utils/format.mjs +32 -0
- package/es/src/utils/index.d.ts +2 -1
- package/es/src/utils/index.mjs +20 -22
- package/es/src/utils/is.d.ts +54 -0
- package/es/src/utils/is.mjs +26 -0
- package/es/src/utils/slot.mjs +1 -2
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/components/tooltip/index.vue.d.ts +1 -1
- package/lib/src/ag-grid/components/tooltip/index.vue2.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/renderer/number.js +1 -1
- package/lib/src/ag-grid/style/custom-header.js +1 -1
- package/lib/src/ag-grid/style/index.js +1 -1
- package/lib/src/ap-action/style/index.js +1 -1
- package/lib/src/ap-drawer/style/index.js +1 -1
- package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/number/read.vue2.js +1 -1
- package/lib/src/ap-field/style/checkbox.d.ts +2 -2
- package/lib/src/ap-field/style/number.d.ts +2 -2
- package/lib/src/ap-field/style/radio.d.ts +2 -2
- package/lib/src/ap-field/style/textarea.d.ts +2 -2
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/helper.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-form/style/item.js +1 -1
- package/lib/src/ap-form/style/modal-form.js +1 -1
- package/lib/src/ap-form/style/search-form-sorter.js +1 -1
- package/lib/src/ap-form/style/search-form.d.ts +7 -1
- package/lib/src/ap-form/style/search-form.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/style/editable.js +1 -1
- package/lib/src/ap-grid/style/index.js +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/hooks/use-offline-list.d.ts +2 -2
- package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
- package/lib/src/ap-list/style/index.js +1 -1
- package/lib/src/ap-pro-card/style/divider.js +1 -1
- package/lib/src/ap-pro-card/style/index.js +1 -1
- package/lib/src/ap-pro-card/style/operation.js +1 -1
- package/lib/src/ap-pro-card/style/statistic.js +1 -1
- package/lib/src/ap-pro-card/style/statistics-card.js +1 -1
- package/lib/src/ap-pro-card/style/title.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/style/index-comp.d.ts +2 -1
- package/lib/src/ap-table/style/index-comp.js +1 -1
- package/lib/src/ap-table/style/index.d.ts +3 -0
- package/lib/src/ap-table/style/index.js +1 -1
- package/lib/src/ap-table/style/setting.d.ts +2 -1
- package/lib/src/ap-table/style/setting.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/style/index.d.ts +3 -0
- package/lib/src/business/ag-grid-modal/style/index.js +1 -1
- package/lib/src/business/ag-grid-modal/style/selected-items.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/style/index.js +1 -1
- package/lib/src/business/ap-attachment/style/index.d.ts +6 -0
- package/lib/src/business/ap-attachment/style/index.js +1 -1
- package/lib/src/business/ap-batch-action/style/index.d.ts +2 -2
- package/lib/src/business/ap-batch-action/style/index.js +1 -1
- package/lib/src/business/ap-card/style/index.d.ts +2 -2
- package/lib/src/business/ap-card/style/index.js +1 -1
- package/lib/src/business/ap-copy/style/index.js +1 -1
- package/lib/src/business/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/business/ap-descriptions/style/index.js +1 -1
- package/lib/src/business/ap-download/style/index.js +1 -1
- package/lib/src/business/ap-draggable-grid/style/index.js +1 -1
- package/lib/src/business/ap-expand-alert/style/index.js +1 -1
- package/lib/src/business/ap-image/style/index.d.ts +2 -2
- package/lib/src/business/ap-image/style/index.js +1 -1
- package/lib/src/business/ap-input-radio/style/index.js +1 -1
- package/lib/src/business/ap-label/style/index.d.ts +14 -0
- package/lib/src/business/ap-label/style/index.js +1 -1
- package/lib/src/business/ap-ladder/style/index.js +1 -1
- package/lib/src/business/ap-product-info/style/index.d.ts +10 -0
- package/lib/src/business/ap-product-info/style/index.js +1 -1
- package/lib/src/business/ap-radio-group/style/index.js +1 -1
- package/lib/src/business/ap-select-layout/style/index.d.ts +6 -0
- package/lib/src/business/ap-select-layout/style/index.js +1 -1
- package/lib/src/business/ap-size-input/style/index.js +1 -1
- package/lib/src/business/ap-status/style/index.js +1 -1
- package/lib/src/business/ap-summary/style/index.d.ts +10 -0
- package/lib/src/business/ap-summary/style/index.js +1 -1
- package/lib/src/business/ap-table-modal/style/index.d.ts +11 -1
- package/lib/src/business/ap-table-modal/style/index.js +1 -1
- package/lib/src/business/ap-tag/style/index.js +1 -1
- package/lib/src/business/ap-title/style/index.d.ts +2 -1
- package/lib/src/business/ap-title/style/index.js +1 -1
- package/lib/src/business/ap-upload/style/index.js +1 -1
- package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -2
- package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
- package/lib/src/business/ap-upload/style/picture.d.ts +3 -2
- package/lib/src/business/ap-upload/style/picture.js +1 -1
- package/lib/src/business/ap-upload/style/single-file.d.ts +3 -2
- package/lib/src/business/ap-upload/style/single-file.js +1 -1
- package/lib/src/business/ap-upload/style/token.d.ts +19 -0
- package/lib/src/business/ap-upload/style/token.js +1 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
- package/lib/src/business/ap-value-select-card/style/index.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/style/index.d.ts +6 -2
- package/lib/src/business/ap-view/style/index.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/style/index.js +1 -1
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/design-token/constants.js +1 -1
- package/lib/src/design-token/interface.d.ts +137 -12
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/style/index.js +1 -1
- package/lib/src/editable-table/utils.d.ts +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useMessage.js +1 -1
- package/lib/src/loading-bar/index.vue2.js +1 -1
- package/lib/src/loading-bar/style/index.js +3 -3
- package/lib/src/scroll-view/hooks/use-scroll-smooth.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/splitter/style/index.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/utils/cssinjs/TokenUtil.d.ts +1 -0
- package/lib/src/utils/cssinjs/TokenUtil.js +1 -1
- package/lib/src/utils/decimal.d.ts +36 -0
- package/lib/src/utils/decimal.js +1 -0
- package/lib/src/utils/format.d.ts +21 -0
- package/lib/src/utils/format.js +1 -0
- package/lib/src/utils/index.d.ts +2 -1
- package/lib/src/utils/index.js +1 -1
- package/lib/src/utils/is.d.ts +54 -0
- package/lib/src/utils/is.js +1 -0
- package/lib/src/utils/slot.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +4 -4
- package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +0 -18
- package/es/src/utils/copy-text-to-clipboard.d.ts +0 -1
- package/es/src/utils/tree.d.ts +0 -38
- package/es/src/utils/uuid.d.ts +0 -2
- package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
- package/lib/src/business/ap-appendix/icons/file-icon.vue.js +0 -1
- package/lib/src/utils/copy-text-to-clipboard.d.ts +0 -1
- package/lib/src/utils/tree.d.ts +0 -38
- package/lib/src/utils/uuid.d.ts +0 -2
|
@@ -1 +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 l=require("../../../utils/cssinjs/index.js"),i=e=>{const{componentCls:t,namespace:o,spaceXS:r,motionDurationSlow:n}=e,a=`.${o}-action-item`;return{[t]:{[a]:{fontSize:e.fontSize},[`${t}__expandText`]:{fontSize:e.fontSize,marginInline:r},[`${t}__expandIcon`]:{transition:`all ${n}`,transform:"rotateZ(180deg)"},[`${t}__collapseIcon`]:{transition:`all ${n}`,transform:"rotateZ(0deg)"},[`${t}__prefix`]:{display:"inline-block"},[`${t}__showItem`]:{color:e.colorLink,cursor:"pointer",whiteSpace:"nowrap","&:hover":{color:e.colorLinkHover}},[`${t}__spliter`]:{color:e.borderColorBase,paddingInline:e.space,paddingBlock:0},[`${t}__antAlert.ant-alert`]:{alignItems:"flex-start",lineHeight:e.lineHeight,".ant-alert-icon":{fontSize:e.fontSizeLG,transform:"translateY(2px)",display:"block"}},".card-alert":{backgroundColor:"transparent !important",border:"none"},".ant-alert-close-icon":{lineHeight:"unset"}}}},s=l.genComponentStyleHook("ApExpandAlert",e=>[i(e)]);exports.default=s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GenStyleFunc } from '../../../design-token/interface';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
|
-
export declare const genApImageStyle: GenStyleFunc
|
|
3
|
+
export declare const genApImageStyle: GenStyleFunc;
|
|
4
4
|
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -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 t=require("../../../utils/cssinjs/index.js"),n=e=>{const{componentCls:o}=e;return{[`${o}-toolbar`]:{display:"flex",alignItems:"center",paddingInline:e.spaceXXL,paddingBlock:0,backgroundColor:"rgba(0, 0, 0, 0.1)",borderRadius:"100px"}}},l=t.genComponentStyleHook("ApImage",e=>[n(e)]);exports.default=l;exports.genApImageStyle=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),t=e=>({[e.componentCls]:{display:"flex",alignItems:"center",[`${e.componentCls}__input-number`]:{marginInlineEnd:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),t=e=>({[e.componentCls]:{display:"flex",alignItems:"center",[`${e.componentCls}__input-number`]:{marginInlineEnd:e.spaceXL}}}),o=n.genComponentStyleHook("ApInputRadio",e=>[t(e)]);exports.default=o;
|
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
+
export type ApLabelToken = {
|
|
3
|
+
/**
|
|
4
|
+
* 自定义绿色
|
|
5
|
+
*/
|
|
6
|
+
apLabelColorCustomGreen: string;
|
|
7
|
+
/**
|
|
8
|
+
* 自定义红色
|
|
9
|
+
*/
|
|
10
|
+
apLabelColorCustomRed: string;
|
|
11
|
+
/**
|
|
12
|
+
* 自定义蓝色
|
|
13
|
+
*/
|
|
14
|
+
apLabelColorCustomBlue: string;
|
|
15
|
+
};
|
|
2
16
|
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
17
|
export default _default;
|
|
@@ -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 a=require("../../../utils/cssinjs/index.js"),c=e=>{const{componentCls:o,apLabelColorCustomGreen:l,apLabelColorCustomBlue:r,apLabelColorCustomRed:t}=e;return{[o]:{display:"flex",flexDirection:"column",alignItems:"start",fontSize:e.fontSizeLG,[`${o}__content`]:{display:"flex",flexDirection:"row",alignItems:"center",".user-frontend-icon":{display:"flex",alignItems:"center"}},[`${o}__custom`]:{marginBlockStart:e.spaceXXS,width:"100%",".ant-tag":{lineHeight:e.lineHeightLG},".ant-tag-green":{color:l,borderColor:l,background:e.calc(l).colorOpacity(6)},".ant-tag-red":{color:t,borderColor:t,backgroundColor:e.calc(t).colorOpacity(6)},".ant-tag-blue":{color:r,borderColor:r,backgroundColor:e.calc(r).colorOpacity(6)}}}}},n=a.genComponentStyleHook("ApLabel",e=>[c(e)],{apLabelColorCustomGreen:"#34b77c",apLabelColorCustomRed:"#FF4D4F",apLabelColorCustomBlue:"#1890ff"});exports.default=n;
|
|
@@ -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 i=require("../../../utils/cssinjs/index.js"),o=l=>{const{componentCls:e}=l;return{[e]:{position:"relative",width:"inherit",fontSize:l.fontSize,lineHeight:l.lineHeight,[`${e}__value-group-item`]:{display:"flex",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},[`${e}__value-group-value-end`]:{justifyContent:"flex-end"},[`${e}__value-group-label`]:{display:"inline-block",color:l.textColor3,wordBreak:"break-all",position:"relative",justifyContent:"center"},[`${e}__value-group-label-semicolon`]:{display:"inline-block",paddingInlineStart:l.spaceXXS,paddingInlineEnd:l.spaceXS},[`${e}__value-group-value`]:{color:l.textColor1,wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${e}__value-group-link`]:{cursor:"pointer",color:l.colorLink,textDecoration:"none"},[`${e}__value-group-label-left`]:{textAlign:"left"},[`${e}__value-group-label-right`]:{textAlign:"right"},[`${e}__label-align-space-between`]:{justifyContent:"space-between"},[`${e}-base`]:{display:"flex"},[`${e}--vertical`]:{flexDirection:"column",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","> *":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0}},[`${e}--horizontal`]:{flexDirection:"row",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","> *":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0}},[`${e}__tooltip-item`]:{display:"flex"},[`${e}__tooltip-label`]:{whiteSpace:"nowrap",wordBreak:"break-all"},[`${e}__tooltip-value`]:{wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${e}__cross-bar`]:{display:"flex",alignItems:"center"},[`${e}__ellipsis`]:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-all"},[`${e}__help-message`]:{display:"flex",alignItems:"center",marginInlineStart:l.spaceXS},[`${e}__major`]:{lineHeight:l.lineHeight,color:l.textColor1},[`${e}__minor`]:{lineHeight:l.lineHeight,color:l.textColor3},[`${e}__label`]:{display:"inline-block",color:l.textColor3,wordBreak:"break-all"},[`${e}__value`]:{display:l.textColor1,wordBreak:"break-all"},[`${e}__unit`]:{color:l.textColor1},[`${e}__link, ${e}__link a`]:{cursor:"pointer",color:l.colorLink,textDecoration:"none"}}}},r=i.genComponentStyleHook("ApLadder",l=>[o(l)]);exports.default=r;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
+
export type ApProductInfoToken = {
|
|
3
|
+
/**
|
|
4
|
+
* 商品信息卡片图片尺寸
|
|
5
|
+
*/
|
|
6
|
+
apProductInfoImageSize: number;
|
|
7
|
+
/**
|
|
8
|
+
* 商品信息卡最大宽度
|
|
9
|
+
*/
|
|
10
|
+
apProductInfoMaxWidth: number;
|
|
11
|
+
};
|
|
2
12
|
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
13
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../../utils/cssinjs/index.js"),o=
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:i}=e;return{[i]:{display:"flex",[`${i}__img`]:{width:e.apProductInfoImageSize,height:e.apProductInfoImageSize,marginInlineEnd:e.space,flexShrink:0},[`${i}__content`]:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},[`${i}__row-container `]:{display:"flex",flexWrap:"wrap"},[`${i}__row-item`]:{position:"relative",display:"flex"},[`${i}__divider`]:{width:e.lineWidth,position:"relative",height:"12px",top:"50%",marginBlockStart:e.calc(e.spaceSM).mul(-1).equal(),marginInlineEnd:e.spaceXL,zIndex:1},[`${i}__divider-vertical`]:{width:e.lineWidth,height:"100%",backgroundColor:e.colorBg1,position:"absolute",transform:"translateX(-50%)"},[`${i}__item`]:{display:"flex",alignItems:"baseline"},[`${i}--full`]:{width:"100%"},[`${i}__label`]:{color:e.textColor3,flexShrink:0,span:{display:"inline-block",paddingInline:e.spaceXXS,paddingBlock:0}},[`${i}__value`]:{maxWidth:e.apProductInfoMaxWidth,color:e.textColor3,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${i}--link`]:{color:e.colorLink,cursor:"pointer"}}}},r=l.genComponentStyleHook("ApProductInfo",e=>[o(e)],{apProductInfoImageSize:44,apProductInfoMaxWidth:300});exports.default=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../utils/cssinjs/index.js"),a=o=>{const{componentCls:r}=o;return{[r]:{fontSize:o.fontSize,padding:`${o.space} ${o.space} 0`,backgroundColor:"#fff",[`${r}__item`]:{cursor:"pointer",paddingInline:o.spaceLG,borderRadius:o.borderRadius,color:o.textColor2,transition
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../utils/cssinjs/index.js"),a=o=>{const{componentCls:r}=o;return{[r]:{fontSize:o.fontSize,padding:`${o.space} ${o.space} 0`,backgroundColor:"#fff",[`${r}__item`]:{cursor:"pointer",paddingInline:o.spaceLG,borderRadius:o.borderRadius,color:o.textColor2,transition:`all ${o.motionDurationSlow} ease-in-out`,willChange:"background-color","&:hover":{backgroundColor:o.colorBg2},"&--active":{color:o.colorPrimary,backgroundColor:`${o.apRadioGroupItemActiveBgColor} !important`}}}}},i=e.genComponentStyleHook("ApRadioGroup",o=>[a(o)],{apRadioGroupItemActiveBgColor:"rgba(0, 112, 255, 0.12)"});exports.default=i;
|
|
@@ -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 r=require("../../../utils/cssinjs/index.js"),a=i=>{const{componentCls:e,apSelectLayoutSideWidth:l}=i;return{[e]:{display:"flex",width:"100%",height:"100%",[`${e}-side`]:{display:"flex",flexDirection:"column",width:l,minWidth:l,maxWidth:l,marginInlineEnd:i.spaceXL,overflow:"hidden",backgroundColor:"#fff","&__header":{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:i.spaceXL,paddingBlock:i.spaceLG,borderBottom:`${i.lineWidth} ${i.lineType} ${i.borderColorBase}`,overflow:"hidden",whiteSpace:"nowrap","& > h3":{margin:0,color:i.textColor1,fontSize:i.fontSize,fontWeight:"bold",lineHeight:i.lineHeightLG},"&--imgWrap":{borderRadius:i.borderRadiusSM,cursor:"pointer",fontSize:i.fontSizeXXL,color:i.textColor3,display:"flex","&:hover":{background:i.colorBg3}}},"&__body":{position:"relative",flex:1,"&--search":{marginBlock:i.spaceMD,paddingInline:i.spaceXL},"&--scroll":{position:"absolute",insetBlockStart:i.calc(i.controlHeight).add(i.calc(i.spaceMD).mul(2)).add(i.calc(i.lineWidth).mul(2)).equal(),insetBlockEnd:0,insetInlineStart:0,insetInlineEnd:0,overflowY:"auto",paddingInline:i.spaceXL},"&--scroll-item":{marginBottom:i.space,paddingInline:i.spaceLG,paddingBlock:i.space,overflow:"hidden",color:i.textColor1,lineHeight:i.lineHeightLG,width:i.calc(i.apSelectLayoutSideWidth).sub(i.calc(i.controlHeight).add(i.calc(i.lineWidth).mul(2))).equal(),textOverflow:"ellipsis",textWrap:"nowrap",cursor:"pointer",borderRadius:i.borderRadius,"&:hover":{background:i.colorBg3},"&.active":{backgroundColor:i.calc(i.colorPrimary).colorOpacity(10),color:i.colorPrimary,fontWeight:"bold","& > .ant-typography":{color:i.colorPrimary}}}}},".v-enter-active, .v-leave-active":{transition:`all ${i.motionDurationMid}, background 0s`},".v-enter-from, .v-leave-to":{width:0,minWidth:0,maxWidth:0,marginInlineEnd:0},[`${e}-content`]:{flex:1,overflowX:"hidden",display:"flex",flexDirection:"column","&__header":{display:"flex",alignItems:"center",height:i.controlHeight,paddingBlockStart:i.spaceXL,paddingInlineStart:i.spaceXL,boxSizing:"content-box",background:"#fff","&--imgWrap":{marginInlineEnd:i.spaceMD,borderRadius:i.borderRadiusSM,cursor:"pointer",fontSize:i.fontSizeXXL,display:"flex",color:i.textColor3,"&:hover":{background:i.colorBg3}},"&--title":{margin:0,fontSize:i.fontSizeLG,fontWeight:"bold",lineHeight:i.lineHeightLG}}}}}},o=r.genComponentStyleHook("ApSelectLayout",i=>[a(i)],{apSelectLayoutSideWidth:214});exports.default=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../utils/cssinjs/index.js"),n=e=>({[e.componentCls]:{display:"flex",alignItems:"center",gap:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../utils/cssinjs/index.js"),n=e=>({[e.componentCls]:{display:"flex",alignItems:"center",gap:e.space}}),l=t.genComponentStyleHook("ApSizeInput",e=>[n(e)]);exports.default=l;
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
src: url('https://front-ljh.oss-cn-hangzhou.aliyuncs.com/fonts/PlayfairDisplay-SemiBold.ttf');
|
|
5
5
|
src: url('https://front-ljh.oss-cn-hangzhou.aliyuncs.com/fonts/SourceHanSerifCN-Heavy.woff2');
|
|
6
6
|
}
|
|
7
|
-
`,{[o]:{fontSize:t.fontSizeXL,lineHeight:
|
|
7
|
+
`,{[o]:{fontSize:t.fontSizeXL,lineHeight:2,display:"inline-block",position:"relative",fontFamily:"aplusstatusfont",[`${o}__bg`]:{maskImage:"url('https://front-ljh.oss-cn-hangzhou.aliyuncs.com/aplus-ui/svg/ap-status-bg.svg')",maskRepeat:"no-repeat",maskSize:"100% 100%",position:"absolute",left:0,top:0,right:0,bottom:0}}}]},n=s.genComponentStyleHook("ApStatus",t=>[e(t)]);exports.default=n;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
+
export type ApSummaryToken = {
|
|
3
|
+
/**
|
|
4
|
+
* 表格总结栏高度
|
|
5
|
+
*/
|
|
6
|
+
apSummaryItemHeight: number;
|
|
7
|
+
/**
|
|
8
|
+
* 表格总结栏高度(较小)
|
|
9
|
+
*/
|
|
10
|
+
apSummartItemHeightSM: number;
|
|
11
|
+
};
|
|
2
12
|
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
13
|
export default _default;
|
|
@@ -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 e=require("../../../utils/cssinjs/index.js"),r=t=>{const{componentCls:a}=t;return{[a]:{[`${a}__item`]:{height:t.apSummaryItemHeight,paddingInline:`${t.spaceLG} !important`,paddingBlock:`${t.space} !important`,backgroundColor:"var(--ap-summary-background, #f9ecc7) !important",color:t.textColor1,fontWeight:"bolder","&--small":{height:t.apSummartItemHeightSM,paddingInline:`${t.spaceLG} !important`,paddingBlock:`${t.spaceXS} !important`,backgroundColor:"var(--ap-summary-background, #E6EDFF) !important"}}}}},m=e.genComponentStyleHook("ApSummary",t=>[r(t)],{apSummaryItemHeight:38,apSummartItemHeightSM:28});exports.default=m;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../../design-token/interface';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
|
-
export
|
|
3
|
+
export type ApTableModalToken = {
|
|
4
|
+
/**
|
|
5
|
+
* 右侧已选列表宽度
|
|
6
|
+
*/
|
|
7
|
+
apTableModalRightWidth: number;
|
|
8
|
+
/**
|
|
9
|
+
* 右侧已选列表最大高度
|
|
10
|
+
*/
|
|
11
|
+
apTableModalRightMaxHeight: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const genApTableModalStyle: GenStyleFunc<ApTableModalToken>;
|
|
4
14
|
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
15
|
export default _default;
|
|
@@ -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 l=require("../../../utils/cssinjs/index.js"),t=e=>({[`${e.componentCls}`]:{[`${e.componentCls}--table-layout`]:{display:"flex",justifyContent:"space-between",height:"100%","&.complex-layout":{height:"100%",position:"relative"},"&-left":{flex:1,minWidth:0,paddingInlineEnd:e.spaceXL,boxSizing:"border-box",display:"flex",flexDirection:"column","&-content":{flex:1,".ant-table-body":{height:"100%"}}},"&-right":{maxHeight:e.apTableModalRightMaxHeight,width:e.apTableModalRightWidth,paddingInlineStart:e.spaceXL,position:"relative",display:"flex",flexDirection:"column","&-content":{flex:1,overflowY:"auto"},"&::before":{content:'""',height:"calc(100% + 16px)",width:e.lineWidth,backgroundColor:e.borderColorBase,position:"absolute",left:0,top:"-16px"}}}}}),o=l.genComponentStyleHook("ApTable.Modal",e=>[t(e)],{apTableModalRightWidth:410,apTableModalRightMaxHeight:640});exports.default=o;exports.genApTableModalStyle=t;
|
|
@@ -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 o=require("../../../utils/cssinjs/index.js"),a=e=>{const{componentCls:r}=e,i=`${r}-wrapper`,l=`${r}-inner-wrapper`;return{[i]:{textWrap:"nowrap",whiteSpace:"nowrap",display:"inline-flex",maxWidth:"100%",[l]:{borderRadius:e.borderRadius,boxSizing:"border-box",overflow:"hidden",textOverflow:"ellipsis",width:"100%","&--large":{padding:e.spaceSM,lineHeight:e.lineHeightLG,fontSize:e.fontSizeLG},"&--middle":{lineHeight:e.lineHeight,paddingInline:e.spaceSM,paddingBlock:e.calc(e.spaceSM).div(2).equal(),fontSize:e.fontSize},"&--small":{paddingInline:e.spaceXS,paddingBlock:0,lineHeight:e.lineHeight,fontSize:e.fontSize,borderRadius:e.borderRadiusSM}}},[`${i}-purely`]:{"& > *":{backgroundColor:"var(--tag-main-color-background)",color:e.textColor1},[`${l}--disabled`]:{backgroundColor:`color-mix(in srgb, ${e.textColor3} 15%, white)`}},[`${i}-border`]:{"& > *":{outline:`${e.lineWidth} ${e.lineType} var(--tag-main-color)`,outlineOffset:e.calc(e.lineWidth).mul(-1).equal(),backgroundColor:"var(--tag-main-color-opacity)",color:"var(--tag-main-color)"},[`${l}--disabled`]:{outline:`${e.lineWidth} ${e.lineType} ${e.borderColorBase}`,outlineOffset:e.calc(e.lineWidth).mul(-1).equal(),backgroundColor:`color-mix(in srgb, ${e.textColor2} 6%, white)`,color:e.textColor2}}}},d=o.genComponentStyleHook("ApTag",e=>[a(e)]);exports.default=d;exports.genApTagStyle=a;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { GenStyleFunc } from '../../../design-token/interface';
|
|
1
|
+
import { GenStyleFunc, StyleMixin } from '../../../design-token/interface';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare const genTitlePrefix: StyleMixin;
|
|
3
4
|
export declare const genApTitleStyle: GenStyleFunc;
|
|
4
5
|
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
6
|
export default _default;
|
|
@@ -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("../../../utils/cssinjs/index.js"),r=e=>({normal:{position:"absolute",content:'""',left:0,top:"50%",transform:"translateY(-50%)",width:"3px",height:"14px",backgroundColor:e.colorPrimary,borderRadius:"0px 4px 4px 0px",zIndex:1},admin:{top:"50%",transform:"translateY(-50%)",width:"8px",height:"8px",borderRadius:"50%",borderWidth:"2px",borderStyle:"solid",borderColor:e.colorPrimary,background:"#fff",zIndex:1}}),o=e=>{const{componentCls:t}=e,{admin:i,normal:l}=r(e);return{[t]:{position:"relative",width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInlineStart:e.calc(e.spaceSM).add("3px").equal(),fontSize:e.fontSize,"&::before":l,[`${t}__prefix`]:{fontWeight:"bold",color:e.textColor1,display:"flex",alignItems:"center",".anticon-question-circle":{fontSize:e.fontSizeLG,marginInlineStart:e.spaceXS,color:e.textColor3}},"&--admin":{paddingLeft:e.calc(e.spaceSM).add("8px").equal(),"&::before":i},[`${t}__suffix`]:{color:e.textColor2}}}},a=n.genComponentStyleHook("ApTitle",e=>[o(e)]);exports.default=a;exports.genApTitleStyle=o;exports.genTitlePrefix=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../../utils/cssinjs/index.js"),t=require("./single-file.js"),i=require("./multiple-file.js"),u=require("./picture.js"),r=l.genComponentStyleHook("ApUpload",e=>[t.singleFileStyle(e),i.multipleFileStyle(e),u.pictureStyle(e)]);exports.default=
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../../utils/cssinjs/index.js"),t=require("./single-file.js"),i=require("./multiple-file.js"),u=require("./picture.js"),r=require("./token.js"),o=l.genComponentStyleHook("ApUpload",e=>[t.singleFileStyle(e),i.multipleFileStyle(e),u.pictureStyle(e)],r.defaultValue);exports.default=o;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const multipleFileStyle: GenStyleFunc
|
|
1
|
+
import { GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
+
export declare const multipleFileStyle: GenStyleFunc;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=l=>{const{componentCls:o}=l;return{[`${o}-multiple-file`]:{".multiple-file-context":{display:"flex",alignItems:"center",".file-btn":{display:"flex",alignItems:"center",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=l=>{const{componentCls:o}=l;return{[`${o}-multiple-file`]:{".multiple-file-context":{display:"flex",alignItems:"center",".file-btn":{display:"flex",alignItems:"center",paddingBlock:l.space,paddingInline:l.spaceLG,transition:`all ${l.motionDurationSlow}`,border:`${l.lineWidth} ${l.lineType} ${l.borderColorBase}`,borderRadius:l.borderRadius,color:l.textColor1,"&:hover":{borderColor:l.colorPrimary,color:l.colorPrimary}},".sub-title":{paddingLeft:l.spaceXL,color:l.textColor3,fontSize:l.fontSize}},".ant-upload-wrapper .ant-upload-list .ant-upload-list-item:hover":{backgroundColor:l.colorBgLayout,".ant-upload-list-item-actions .ant-upload-list-item-action:focus":{opacity:1}},".ant-upload-list-item-actions":{display:"flex",alignItems:"center",flexShrink:0},".ant-upload-wrapper .ant-upload-list .ant-upload-list-item .ant-upload-list-item-actions .ant-upload-list-item-action:focus":{opacity:0},".ant-upload-text-icon":{color:l.textColor4},".ant-upload-wrapper .ant-upload-list .ant-upload-list-item-error":{".ant-upload-list-item-name":{color:l.colorError},".ant-upload-icon .anticon":{color:l.colorError},".ant-upload-text-icon":{color:l.colorError}},".ant-upload-list-item-done":{color:l.colorLink},".ant-upload-list-item-undefined":{color:l.colorLink}}}};exports.multipleFileStyle=t;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
+
import { ApUploadToken } from './token';
|
|
3
|
+
export declare const pictureStyle: GenStyleFunc<ApUploadToken>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=i=>{const{componentCls:r}=i;return{[`${r}-picture`]:{".picture-context":{display:"grid",gap:i.spaceXL,gridTemplateColumns:"repeat(auto-fill, 100px)",userSelect:"none",".picture-upload":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100px",overflow:"hidden",transition:`all ${i.motionDurationMid}`,border:`${i.lineWidth} dashed ${i.borderColorBase}`,borderRadius:i.borderRadius,background:i.colorBgLayout,color:i.textColor4,fontSize:i.fontSizeXL,cursor:"pointer",aspectRatio:"1 / 1","& > * + *":{marginTop:i.spaceXS,fontSize:i.fontSize},"&:hover":{border:`${i.lineWidth} dashed ${i.colorPrimary}`}},".picture-item":{width:i.apUploadPictureItemWidth,padding:i.space,overflow:"hidden",border:`${i.lineWidth} ${i.lineType} ${i.borderColorBase}`,borderRadius:i.borderRadius,background:"#fff",aspectRatio:"1 / 1",".picture-item-box":{position:"relative",width:"100%",height:"100%",borderRadius:i.borderRadiusSM,"& > img":{width:"100%",height:"100%",borderRadius:i.borderRadiusSM,objectFit:"cover"},"&:hover > .picture-item-shadow":{display:"block !important"},".picture-item-shadow":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:i.borderRadiusSM,background:"rgb(0 0 0 / 50%)",color:"#fff",fontSize:i.fontSize,".picture-item-close":{display:"flex",position:"absolute",top:0,right:0,alignItems:"center",justifyContent:"center",width:i.apUploadPictureCloseIconWidth,overflow:"hidden",transform:"translate(30%, -30%)",border:`${i.lineWidth} ${i.lineType} #fff`,borderRadius:"50%",background:i.colorError,color:"#fff",fontSize:i.fontSizeSM,cursor:"pointer",aspectRatio:"1 / 1"},".picture-item-uploading":{position:"absolute",top:"50%",left:"50%",width:"84%",transform:"translate(-50%, -50%)",textAlign:"center"}}}}},".picture-title":{marginTop:"8px",color:i.textColor3,fontSize:"12px"}}}};exports.pictureStyle=e;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
+
import { ApUploadToken } from './token';
|
|
3
|
+
export declare const singleFileStyle: GenStyleFunc<ApUploadToken>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=i=>{const{componentCls:r}=i,e=`${r}-single-file`;return{[e]:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:i.apUploadSingleFileContainerHeight,overflow:"hidden",transition:`all ${i.motionDurationSlow}`,border:`${i.lineWidth} dashed ${i.borderColorBase}`,borderRadius:i.borderRadius,background:i.colorBgLayout,userSelect:"none","& > div":{display:"flex",alignItems:"center",justifyContent:"center"},".state-un":{flexDirection:"column",".state-un-icon":{display:"block",width:i.apUploadSingleFileIconHeight},".state-un-title":{marginTop:i.spaceMD,color:i.textColor1,fontSize:i.fontSizeLG,lineHeight:i.lineHeightLG},".state-un-subtitle":{marginTop:i.spaceXS,color:i.textColor4,fontSize:i.fontSize,lineHeight:i.lineHeight}},".state-ing":{display:"flex",alignItems:"center",width:"min(516px, 77.24%)",height:"96px",paddingBlock:0,paddingInline:i.spaceXXL,borderRadius:i.borderRadius,background:"#fff",".left":{flexShrink:0,width:"48px",marginRight:i.spaceXL,img:{display:"block",width:"100%"}},".center":{flex:1,".center-title":{display:"-webkit-box",overflow:"hidden",fontSize:i.fontSizeLG,textAlign:"start",textOverflow:"ellipsis",wordWrap:"break-word",wordBreak:"break-all",WebkitBoxOrient:"vertical",WebkitLineClamp:i.lineClamp},".center-progress ":{".ant-progress-line":{marginRight:0,marginBottom:0}}},".right":{flexShrink:0,marginLeft:i.spaceXXL,color:i.colorError,fontSize:i.fontSizeXXL,cursor:"pointer !important"}}},[`${e}-un`]:{cursor:"pointer","&:hover":{border:`${i.lineWidth} dashed ${i.colorPrimary}`,background:`color-mix(in srgb, ${i.colorPrimary} 10%, transparent)`}}}};exports.singleFileStyle=l;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type ApUploadToken = {
|
|
2
|
+
/**
|
|
3
|
+
* 单选上传组件外部容器高度
|
|
4
|
+
*/
|
|
5
|
+
apUploadSingleFileContainerHeight: number;
|
|
6
|
+
/**
|
|
7
|
+
* 单选上传组件上传图标的高度
|
|
8
|
+
*/
|
|
9
|
+
apUploadSingleFileIconHeight: number;
|
|
10
|
+
/**
|
|
11
|
+
* 卡片上传组件项宽度
|
|
12
|
+
*/
|
|
13
|
+
apUploadPictureItemWidth: number;
|
|
14
|
+
/**
|
|
15
|
+
* 卡片上传组件项删除按钮宽度
|
|
16
|
+
*/
|
|
17
|
+
apUploadPictureCloseIconWidth: number;
|
|
18
|
+
};
|
|
19
|
+
export declare const defaultValue: ApUploadToken;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={apUploadSingleFileContainerHeight:200,apUploadSingleFileIconHeight:56,apUploadPictureItemWidth:100,apUploadPictureCloseIconWidth:16};exports.defaultValue=e;
|
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GenStyleFunc } from '../../../../design-token/interface';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
|
-
export
|
|
3
|
+
export type ApUploadSingleToken = {
|
|
4
|
+
/**
|
|
5
|
+
* 单文件上传容器高度
|
|
6
|
+
*/
|
|
7
|
+
apUploadSingleContainerHeight: number;
|
|
8
|
+
/**
|
|
9
|
+
* 单文件上传文件卡片高度
|
|
10
|
+
*/
|
|
11
|
+
apUploadSingleItemHeight: number;
|
|
12
|
+
/**
|
|
13
|
+
* 单文件上传容器文件图标尺寸
|
|
14
|
+
*/
|
|
15
|
+
apUploadSingleContainerFileIconSize: number;
|
|
16
|
+
/**
|
|
17
|
+
* 单文件上传卡片左侧文件图标尺寸
|
|
18
|
+
*/
|
|
19
|
+
apUploadSingleItemFileIconSize: number;
|
|
20
|
+
/**
|
|
21
|
+
* 单文件上传卡片删除按钮尺寸
|
|
22
|
+
*/
|
|
23
|
+
apUploadSingleItemDeleteIconSize: number;
|
|
24
|
+
};
|
|
25
|
+
export declare const genProCardStyle: GenStyleFunc<ApUploadSingleToken>;
|
|
4
26
|
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
27
|
export default _default;
|
|
@@ -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 a=require("../../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:r}=e;return{[r]:{userSelect:"none",".ant-upload-drag":{background:e.colorBgLayout,border:`${e.lineWidth} dashed var(--ap-border-color-base)`,height:e.apUploadSingleContainerHeight,"&:not(.ant-upload-disabled):hover":{background:`color-mix(in srgb, ${e.colorPrimary} 10%, transparent)`,borderColor:e.colorPrimary},".ant-upload-btn":{padding:0},".ant-upload-disabled":{cursor:"default"}},[`${r}__content`]:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},[`${r}__content-file`]:{width:"min(516px, 77.24%)",height:e.apUploadSingleItemHeight,background:"#fff",borderRadius:e.borderRadius,display:"flex",alignItems:"center",paddingInline:e.spaceXXL,paddingBlock:0,"&-icon":{flexShrink:0,marginRight:e.spaceXL,svg:{width:e.apUploadSingleItemFileIconSize}},"&-name":{flex:1,textAlign:"start","&>.ant-typography":{color:"var(--name-color)",marginBottom:0,wordBreak:"break-all"}},"&-delete":{flexShrink:0,marginLeft:e.spaceXXL,svg:{width:e.apUploadSingleItemDeleteIconSize,color:e.colorError,fontSize:e.fontSizeXXL,cursor:"pointer"}}},[`${r}__content-ing`]:{"&-name":{"--name-color":"var(--ap-text-color-2)",".ant-progress-line":{marginInlineEnd:0,marginBottom:0}}},[`${r}__content-error`]:{"&-name":{"--name-color":e.colorError}},[`${r}__content-done`]:{"&-name":{"--name-color":e.colorPrimary}},[`${r}__content-empty`]:{cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center","&-icon":{svg:{width:e.apUploadSingleContainerFileIconSize}},"&-title":{marginTop:e.spaceMD,color:"var(--ap-text-color-2)",fontSize:e.fontSizeXL,lineHeight:e.lineHeightLG},"&-sub-title":{marginTop:e.spaceXS,color:"var(--ap-text-color-3)",fontSize:e.fontSize,lineHeight:e.lineHeight}}},[`${r}-affix-wrapper-status-error`]:{".ant-upload-drag:not(.ant-upload-disabled)":{borderColor:e.colorError,"&:hover":{borderColor:`color-mix(in srgb, ${e.colorPrimary} 80%, transparent)`}}}}},i=a.genComponentStyleHook("ApUploadSingle",e=>[o(e)],{apUploadSingleContainerHeight:200,apUploadSingleItemHeight:96,apUploadSingleItemFileIconSize:48,apUploadSingleItemDeleteIconSize:20,apUploadSingleContainerFileIconSize:56});exports.default=i;exports.genProCardStyle=o;
|
|
@@ -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 o=require("../../../utils/cssinjs/index.js"),l=r=>{const{componentCls:e}=r;return{[e]:{position:"relative",marginBlockStart:r.space,".ant-popover":{width:"100%"},[`${e}-list`]:{display:"grid",gridTemplateColumns:"repeat(var(--ap-value-select-card-column-count, 5), minmax(var(--ap-value-select-card-max-width, 150px), 1fr))",gridAutoRows:"1fr",gap:r.spaceLG,"&-item":{position:"relative",boxSizing:"border-box",paddingInline:r.spaceXL,paddingBlock:r.space,color:r.textColor2,border:`${r.lineWidth} ${r.lineType} ${r.borderColorBase}`,borderRadius:r.borderRadius,cursor:"pointer","&-close":{position:"absolute",top:r.space,lineHeight:r.lineHeight,right:r.spaceMD,zIndex:1,color:r.textColor3,fontSize:r.fontSizeLG,cursor:"pointer","&:hover":{color:r.colorError}},".label":{marginBlockEnd:r.spaceXS,fontSize:r.fontSize,lineHeight:r.lineHeight},".value":{overflow:"hidden",fontWeight:"bold",fontSize:r.fontSizeXL,whiteSpace:"nowrap",textOverflow:"ellipsis"},"&:hover:not(.select)":{border:`${r.lineWidth} ${r.lineType} ${r.colorPrimary}`},"&.select":{color:r.textColor1,borderColor:"transparent",boxShadow:"3px 10px 30px -2px rgba(123, 121, 140, 0.15)",background:"linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--ap-value-select-card-bg-color, #f5f9ff) 92%)","&:hover":{background:"var(--ap-value-select-card-bg-color, #f5f9ff)"}},"&.all":{color:r.textColor2,background:"#fff",border:`${r.lineWidth} ${r.lineType} ${r.borderColorBase}`,boxShadow:"none","&:hover:not(.disabled)":{borderColor:r.colorPrimary},"&.disabled":{color:r.textColor3,background:r.colorBg2,cursor:"not-allowed",border:`${r.lineWidth} ${r.lineType} ${r.borderColorBase}`},"&.select":{backgroundColor:r.colorBgControl,borderColor:r.colorPrimary,cursor:"pointer"}},"&.choose":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:r.colorPrimary,background:"#fff",border:`${r.lineWidth} dashed #d1d7df`,boxShadow:"none",".text":{fontSize:r.fontSize,marginInlineStart:r.spaceXS}}}},[`${e}-title`]:{display:"flex",alignItems:"center",marginBlockEnd:r.spaceLG,color:r.textColor2,fontSize:r.fontSize,"&-icon":{marginRight:r.spaceXS,color:r.textColor4,fontSize:r.fontSizeLG}}}}},i=o.genComponentStyleHook("ApValueSelectCard",r=>[l(r)]);exports.default=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const q=require("../icons/line-eye.vue.js");require("../../../ap-form/ap-form.vue.js");const D=require("../../../ap-field/index.js");require("../../../ap-button/index.js");const S=require("dayjs"),b=require("../hooks/use-view-provide.js"),F=require("../utils/uuid.js"),v=require("lodash-unified"),z=require("../style/index.js"),T=require("../../../config-provider/hooks/use-locale.js"),k=require("../../../config-provider/hooks/use-namespace.js"),p=require("../../../ap-form/ap-form.vue2.js"),w=require("../../../ap-button/ap-button.vue.js"),I=e.defineComponent({__name:"main-button-content",props:{maxViewNum:{}},setup(V){const s=V,{t}=T.useLocale(),{b:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const q=require("../icons/line-eye.vue.js");require("../../../ap-form/ap-form.vue.js");const D=require("../../../ap-field/index.js");require("../../../ap-button/index.js");const S=require("dayjs"),b=require("../hooks/use-view-provide.js"),F=require("../utils/uuid.js"),v=require("lodash-unified"),z=require("../style/index.js"),T=require("../../../config-provider/hooks/use-locale.js"),k=require("../../../config-provider/hooks/use-namespace.js"),p=require("../../../ap-form/ap-form.vue2.js"),w=require("../../../ap-button/ap-button.vue.js"),I=e.defineComponent({__name:"main-button-content",props:{maxViewNum:{}},setup(V){const s=V,{t}=T.useLocale(),{b:a}=k.useNamespace("ap-view"),i=z.default("ap-view"),f=e.ref(),{tableKey:h,popoverOpen:o,viewList:l,saveDataSource:d,viewListCRUD:N}=b.useViewInject(),m=e.computed({get:()=>o.value&&l.value.length<s.maxViewNum+1,set:r=>{l.value.length<s.maxViewNum+1&&(o.value=r)}});e.watch(o,r=>{r&&(f.value?.resetFields(),setTimeout(()=>{f.value?.setFieldsValue({isDefault:!l.value.some(n=>n.isDefault)})}))});const x=async r=>{const{viewName:n,isDefault:c}=r,_=F.generateUniqueKey(),g=v.cloneDeep(d?.getSearchFormValues?.(!!d?.searchFormTransform)),C=v.cloneDeep(d?.getSearchFormSorterItems?.()),y={searchForm:g,sorterItems:C};await N.addView?.({tableKey:h,viewKey:_,viewName:n,isDefault:c,viewConfig:y}),o.value=!1};return(r,n)=>(e.openBlock(),e.createBlock(e.unref(u.Popover),{open:m.value,"onUpdate:open":n[1]||(n[1]=c=>m.value=c),placement:"bottom",trigger:"click",arrow:!1,"overlay-inner-style":{padding:"12px 16px"}},{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(a)(),e.unref(a)("main-content-popover"),e.unref(i)])},[e.createVNode(p.default,{ref_key:"formRef",ref:f,layout:"vertical","initial-values":{viewName:`${e.unref(t)("ap.apView.newView")} ${e.unref(S)().format("YYYY-MM-DD").toString()}`},onFinish:x},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(a)("main-content-popover-title-content"),e.unref(i)])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(a)("main-content-popover-title-content-title")])},e.toDisplayString(e.unref(t)("ap.apView.saveNewView")),3),e.createVNode(p.default.FormItem,{name:"isDefault","value-prop-name":"checked"},{default:e.withCtx(()=>[e.createVNode(e.unref(u.Checkbox),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.setDefault")),1)]),_:1})]),_:1})],2),e.createVNode(p.default.FormItem,{label:e.unref(t)("ap.apView.viewName"),name:"viewName",rules:[{required:!0,message:e.unref(t)("ap.apView.notEmpty")}]},{default:e.withCtx(()=>[e.createVNode(e.unref(D.ApField).Text,{placeholder:e.unref(t)("ap.apView.viewName"),maxlength:20,"show-count":""},null,8,["placeholder"])]),_:1},8,["label","rules"]),e.createVNode(p.default.FormItem,{class:e.normalizeClass([e.unref(a)("main-content-popover-btn"),e.unref(i)])},{default:e.withCtx(()=>[e.createVNode(e.unref(u.Space),{size:8},{default:e.withCtx(()=>[e.createVNode(e.unref(w.default),{size:"small",onClick:n[0]||(n[0]=c=>o.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.cancel")),1)]),_:1}),e.createVNode(e.unref(w.default),{type:"primary",size:"small","html-type":"submit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.save")),1)]),_:1})]),_:1})]),_:1},8,["class"])]),_:1},8,["initial-values"])],2)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(a)("main-content")]:!0,[e.unref(a)("main-content-disabled")]:e.unref(l).length>=s.maxViewNum+1,hashId:e.unref(i)})},[e.createVNode(e.unref(u.Tooltip),{placement:"bottom"},e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(u.Space),{size:4},{default:e.withCtx(()=>[e.createVNode(q.default,{class:e.normalizeClass([e.unref(a)("icon"),e.unref(i)])},null,8,["class"]),e.createElementVNode("div",null,e.toDisplayString(e.unref(t)("ap.apView.saveView")),1)]),_:1})]),_:2},[e.unref(l).length>=s.maxViewNum+1?{name:"title",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.maxTip")),1)]),key:"0"}:void 0]),1024)],2)]),_:1},8,["open"]))}});exports.default=I;
|
|
@@ -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
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const E=require("../hooks/use-view-provide.js"),m=require("../utils/enum.js"),u=require("@aplus-frontend/antdv"),h=require("../icons/line-delete.vue.js");require("../../ap-tag/index.js");require("../../../ap-form/ap-form.vue.js");const S=require("../../../ap-field/index.js"),q=require("../style/index.js"),g=require("../../../config-provider/hooks/use-token.js"),D=require("../../../config-provider/hooks/use-namespace.js"),K=require("../../../config-provider/hooks/use-locale.js"),B=require("../../ap-tag/ap-tag.vue.js"),f=require("../../../ap-form/ap-form.vue2.js"),T={class:"menu-list-content-name"},z=["title"],I={key:0,class:"menu-list-content-default"},M={class:"menu-list-content-action-delete"},b={class:"menu-list-content-edit"},P=e.defineComponent({__name:"menu-list-content",props:{view:{}},setup(w){const{b:a}=D.useNamespace("ap-view"),c=q.default("ap-view"),{token:p}=g.useToken(),{t:n}=K.useLocale(),t=w,{currentViewKey:_,changeCurrentViewKey:V,viewListCRUD:r,tableKey:s,menuOpen:d}=E.useViewInject(),o=e.ref(!1),v=e.ref(),k=()=>{V(t.view.viewKey),d.value=!1},N=()=>{r?.changeView?.({...t.view,tableKey:s,isDefault:!0})},y=()=>{r?.removeView?.({tableKey:s,viewKey:t.view.viewKey})},C=async()=>{const l=await v.value?.validate?.();r?.changeView?.({...t.view,tableKey:s,viewName:l?.viewName||t.view.viewName}),o.value=!1};return e.watch(()=>d.value,l=>{l&&(o.value=!1)}),(l,i)=>o.value===!1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({[e.unref(a)()]:!0,[e.unref(a)("menu-list-content")]:!0,[e.unref(a)("menu-list-content-active")]:t.view?.viewKey===e.unref(_),[e.unref(c)]:!0}),onClick:k},[e.createElementVNode("div",T,[e.createElementVNode("span",{title:t.view?.viewName},e.toDisplayString(t.view?.viewName),9,z)]),t.view?.viewKey!==e.unref(m.SYSTEM_VIEW_KEY)&&t.view?.isDefault?(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(e.unref(B.default),{text:e.unref(n)("ap.apView.default"),size:"small",color:e.unref(p).colorPrimary},null,8,["text","color"])])):e.createCommentVNode("",!0),t.view?.viewKey!==e.unref(m.SYSTEM_VIEW_KEY)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"menu-list-content-action",onClick:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(e.unref(u.Space),{size:8},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:i[0]||(i[0]=x=>o.value=!0)},e.toDisplayString(e.unref(n)("ap.apView.rename")),1),t.view?.isDefault?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"menu-list-content-action-text",onClick:N},e.toDisplayString(e.unref(n)("ap.apView.setDefault")),1)),e.createElementVNode("div",M,[e.createVNode(e.unref(u.Popconfirm),{title:e.unref(n)("ap.apView.deleteTip"),"ok-text":e.unref(n)("ap.apView.ok"),onConfirm:y},{default:e.withCtx(()=>[e.createVNode(h.default)]),_:1},8,["title","ok-text"])])]),_:1})])):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(a)("menu-list-content"),e.unref(a)("menu-list-content-edit"),e.unref(c)])},[e.createVNode(f.default,{ref_key:"formRef",ref:v,"initial-values":{viewName:t.view?.viewName}},{default:e.withCtx(()=>[e.createElementVNode("div",b,[e.createVNode(e.unref(u.Space),{size:8},{default:e.withCtx(()=>[e.createVNode(f.default.FormItem,{name:"viewName"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ApField).Text,{maxlength:20})]),_:1}),e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:C},e.toDisplayString(e.unref(n)("ap.apView.save")),1),e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:i[2]||(i[2]=x=>o.value=!1)},e.toDisplayString(e.unref(n)("ap.apView.cancel")),1)]),_:1})])]),_:1},8,["initial-values"])],2))}});exports.default=P;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GenStyleFunc } from '../../../design-token/interface';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
|
-
export
|
|
3
|
+
export type ApViewToken = {
|
|
4
|
+
apViewPopoverWidth: number;
|
|
5
|
+
apViewMenuListWidth: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const genApViewStyle: GenStyleFunc<ApViewToken>;
|
|
4
8
|
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
9
|
export default _default;
|
|
@@ -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 i=require("../../../utils/cssinjs/index.js"),n=e=>{const{componentCls:t}=e;return{[t]:{"& > .ant-btn":{padding:0},"& > .ant-dropdown-trigger":{color:e.textColor3},[`${t}-main-content`]:{paddingInline:e.space,paddingBlock:e.spaceXS,display:"flex",alignItems:"center",justifyContent:"center","&-disabled":{color:e.textColor4,cursor:"not-allowed"}},[`${t}-icon`]:{width:"100%",height:"100%",fontSize:e.fontSizeLG,display:"flex",justifyContent:"center",alignItems:"center"}},[`${t}-main-content-popover`]:{width:e.apViewPopoverWidth,"&-title-content":{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:e.space,"&-title":{fontSize:e.fontSizeLG,fontWeight:500,lineHeight:e.lineHeightLG},".ant-form-item":{marginBottom:0}},"&-btn":{marginBottom:0,".ant-form-item-control-input-content":{display:"flex",justifyContent:"flex-end"}}},[`${t}-overlay`]:{".ant-dropdown-menu":{padding:e.space,"&-item":{padding:"0 !important","&:hover":{backgroundColor:"transparent !important"}}},[`${t}-menu-list-content`]:{width:e.apViewMenuListWidth,display:"flex",paddingBlock:e.spaceSM,paddingInline:e.space,alignItems:"center",height:e.calc(e.controlHeight).add(e.calc(e.lineWidth).mul(2)).equal(),".menu-list-content-name":{overflow:"hidden",display:"block",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:e.fontSize,marginInlineEnd:e.space},".menu-list-content-default":{marginInlineEnd:e.space,flexShrink:0},".menu-list-content-action":{cursor:"default",display:"none",flexShrink:0,marginLeft:"auto",userSelect:"none","&-text":{cursor:"pointer",fontSize:e.fontSize,display:"flex",alignItems:"center",color:e.colorPrimary},"&-delete":{cursor:"pointer",display:"flex",alignItems:"center",color:e.textColor3,svg:{outline:"none",boxShadow:"none"}}},".menu-list-content-edit":{display:"flex",alignItems:"center",".ant-form-item":{marginBottom:0},".ant-space-item:has(.menu-list-content-action-text)":{flexShrink:0}},"&-edit":{background:"transparent !important",paddingInline:e.space,paddingBlock:0,cursor:"default"},"&:hover":{background:e.colorBg3,".menu-list-content-action":{display:"block"}}},[`${t}-menu-list-content-active`]:{".menu-list-content-name":{color:e.colorPrimary}}}}},o=i.genComponentStyleHook("ApView",e=>[n(e)],{apViewPopoverWidth:340,apViewMenuListWidth:250});exports.default=o;exports.genApViewStyle=n;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-field/index.js");const R=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const v=require("lodash-unified");require("./popover-input/index.vue.js");require("../../hooks/index.js");
|
|
2
|
-
`):""),k=e.computed(()=>{const t=e.unref(u)?.key;if(t?.length)return t.length===1||!n.hasAll?t[0]:p}),I=e.computed(()=>{const t=e.unref(u)?.key;return!t||t?.length<=1?e.unref(g):(n.options||[]).filter(o=>t.includes(o.value)).map(o=>o.label).join("/")});function P(t){const l=e.unref(u)||{},o=t===p?e.unref(C):
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-field/index.js");const R=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const v=require("lodash-unified");require("./popover-input/index.vue.js");require("../../hooks/index.js");require("../../utils/index.js");const j=require("../../ap-field/hooks/use-default-placeholder.js"),z=require("./utils.js"),L=require("./style/index.js"),O=require("../../hooks/useControllableValue.js"),E=require("../../config-provider/hooks/use-locale.js"),F=require("../../config-provider/hooks/use-namespace.js"),T=require("../../utils/is.js"),M=require("../../ap-field/select/index.vue.js"),$=require("../../ap-field/text/index.js"),D=require("./popover-input/index.vue2.js"),p="GROUP_SEARCH_ALL",K=e.defineComponent({name:"BatchInputGroup",__name:"index",props:{style:{type:[Boolean,null,String,Object,Array]},inputStyle:{type:[Boolean,null,String,Object,Array]},options:{},hasAll:{type:Boolean,default:!0},value:{},"onUpdate:value":{},popoverPlacement:{default:"left"},maxNum:{default:200},mode:{default:"edit"},class:{},variant:{},size:{},name:{},type:{default:"text"},onCompositionend:{},onCompositionstart:{},onFocus:{},onBlur:{},onChange:{},onInput:{},onKeydown:{},onKeyup:{},onMousedown:{},focused:{type:Boolean},hidden:{type:Boolean},disabled:{type:Boolean},prefixCls:{},id:{},readonly:{type:Boolean},autofocus:{type:Boolean},autocomplete:{},placeholder:{},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onMouseUp:{},onRawInput:{},valueModifiers:{},status:{},defaultValue:{},inputElement:{},triggerFocus:{},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"},beforeInput:{}},emits:["update:value"],setup(y,{emit:h}){const n=y,g=j.useDefaultPlaceholder("Text",n),B=h,{value:u,updateValue:a}=O.useControllableValue(n,B),s=e.ref(),c=e.ref(),{t:b}=E.useLocale(),{b:V,cssVar:q}=F.useNamespace("batch-input-group"),d=L.default("batch-input-group"),x=e.computed(()=>{const t=n.popoverPlacement;return{"popover-left":v.isNumber(t)?`${t}px`:t==="left"?"0px":"unset","popover-right":t==="right"?"0px":"unset"}}),A=e.computed(()=>n.options?n.options.length>1&&n.hasAll?[{value:p,label:b("ap.common.all")},...n.options]:n.options:[]),C=e.computed(()=>n.options?n.options.map(t=>t.value):[]),_=e.computed(()=>e.unref(u)?.value?.length?e.unref(u).value.join(","):""),S=e.computed(()=>e.unref(u)?.value?.length?e.unref(u).value.join(`
|
|
2
|
+
`):""),k=e.computed(()=>{const t=e.unref(u)?.key;if(t?.length)return t.length===1||!n.hasAll?t[0]:p}),I=e.computed(()=>{const t=e.unref(u)?.key;return!t||t?.length<=1?e.unref(g):(n.options||[]).filter(o=>t.includes(o.value)).map(o=>o.label).join("/")});function P(t){const l=e.unref(u)||{},o=t===p?e.unref(C):T.isDef(t)?[t]:[];a({...l,key:o})}function U(t){const l=e.unref(u)||{},o=t.target.value||"";let i=z.splitValue(o,",",",",n.maxNum);if(o!==i){const m=c.value?.$el?.querySelector("input");m&&(m.value=i)}let r=i.split(",");r.length===1&&r[0]===""&&(r=[]),a({...l,value:r})}function w(t){const l=e.unref(u)||{};let o=t.split(/,|\n/);a({...l,value:o})}function f(){const t=e.unref(u)||{},l=t.value?.filter(Boolean);a({...t,value:l})}function N(t){f(),n.onBlur?.(t)}return(t,l)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:s,class:e.normalizeClass([e.unref(V)(),e.unref(d)]),style:e.normalizeStyle(e.unref(q)(x.value)),onFocus:l[0]||(l[0]=(...o)=>t.onFocus&&t.onFocus(...o)),onBlur:l[1]||(l[1]=(...o)=>t.onBlur&&t.onBlur(...o))},[e.createVNode(e.unref(R.Space).Compact,{block:""},{default:e.withCtx(()=>[t.options?.length?(e.openBlock(),e.createBlock(e.unref(M.default),{key:0,style:e.normalizeStyle(t.style),options:A.value,value:k.value,"allow-clear":!1,"dropdown-match-select-width":!1,disabled:t.disabled,"get-popup-container":()=>s.value,"onUpdate:value":P},null,8,["style","options","value","disabled","get-popup-container"])):e.createCommentVNode("",!0),e.createVNode(e.unref($.ApFieldText),e.mergeProps(e.unref(v.omit)(n,["style","value","onUpdate:value","inputStyle","hasAll","options","onBlur"]),{ref_key:"inputRef",ref:c,style:t.inputStyle,value:_.value,placeholder:I.value,onInput:U,onBlur:N}),{suffix:e.withCtx(()=>[e.createVNode(D.default,{_parent:s.value,value:S.value,disabled:t.disabled,placement:n.popoverPlacement,"max-num":t.maxNum,class:e.normalizeClass(e.unref(d)),"onUpdate:value":w,onClose:f},null,8,["_parent","value","disabled","placement","max-num","class"])]),_:1},16,["style","value","placeholder"])]),_:1})],38))}});exports.default=K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../../utils/cssinjs/index.js"),a=o=>{const{componentCls:e,namespace:t}=o,r=`${e}-popover-input`,n=`--${t}-batch-input-group-popover-left`,p=`--${t}-batch-input-group-popover-right`;return{[e]:{position:"relative",[r]:{display:"inline-flex",alignItems:"center",[`${r}-trigger-icon`]:{cursor:"pointer",fontSize:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../../utils/cssinjs/index.js"),a=o=>{const{componentCls:e,namespace:t}=o,r=`${e}-popover-input`,n=`--${t}-batch-input-group-popover-left`,p=`--${t}-batch-input-group-popover-right`;return{[e]:{position:"relative",[r]:{display:"inline-flex",alignItems:"center",[`${r}-trigger-icon`]:{cursor:"pointer",fontSize:o.fontSizeXL,color:o.textColor2,lineHeight:0,"&:hover":{color:o.colorPrimary},"&--disabled":{cursor:"not-allowed",color:o.batchInputGroupTriggerColorDisabled,"&:hover":{color:o.batchInputGroupTriggerColorDisabled}}}}},[`${r}__popover`]:{width:"100%",minWidth:"300px",left:`var(${n}) !important`,right:`var(${p}) !important`,".ant-popover-arrow":{display:"none"},".ant-popover-inner":{padding:0},[`${r}__popover--content`]:{padding:o.spaceLG,textarea:{padding:0,resize:"none"}}}}},l=i.genComponentStyleHook("BatchInputGroup",o=>[a(o)],{batchInputGroupTriggerColorDisabled:"rgba(24, 41, 72, 0.25)"});exports.default=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../style/index.js"),a=require("../../utils/cssinjs/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../style/index.js"),a=require("../../utils/cssinjs/index.js"),n=e=>{const{componentCls:i,checkCardDisabledOutlineColor:l,checkCardIndicatorSize:c,checkCardOutlineWidth:r,checkCardIndicatorOffset:t}=e,d=e.calc(c).mul(2).equal();return{[`${i}`]:{...o.resetComponent(e),borderRadius:e.borderRadius,position:"relative","&--disabled":{backgroundColor:e.checkCardDisabledBg,cursor:"not-allowed !important"},"&--bordered":{outline:`${e.lineWidth} ${e.lineType} ${e.borderColorBase}`},[`&:hover:not(${i}--disabled)`]:{cursor:"pointer",outline:`${e.lineWidth} ${e.lineType} ${e.colorPrimary}`},"&::after":{content:'""',position:"absolute",width:0,height:0,insetBlockStart:0,insetInlineEnd:0,clipPath:"polygon(100% 0, 100% 100%, 0 0)",background:e.colorPrimary,borderRadius:e.calc(e.borderRadius).add("2px").equal()},"&--checked":{outline:`${r} ${e.lineType} ${e.colorPrimary}`,[`&:hover:not(${i}--disabled)`]:{outline:`${r} ${e.lineType} ${e.colorPrimary}`},"&::after":{width:d,height:d,insetBlockStart:t,insetInlineEnd:t,transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), inset 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},[`&${i}--disabled`]:{outlineColor:l,"&::after":{backgroundColor:l}}},"&--middle":{padding:e.spaceLG},"&--small":{padding:`${e.spaceSM} ${e.spaceLG}`},[`${i}__title`]:{...o.resetComponent(e),marginBottom:e.spaceXS,color:e.textColor1,fontWeight:"bold","&--disabled":{color:e.textColor4}},[`${i}__content`]:{...o.resetComponent(e),color:e.textColor1,"&--disabled":{color:e.textColor4}},[`${i}__checked-icon`]:{position:"absolute",top:0,right:0,zIndex:1,lineHeight:1,userSelect:"none","& > img":{width:e.calc(c).sub(r).equal(),verticalAlign:"top"}}}}},s=a.genComponentStyleHook("CheckCard",e=>[n(e)],{checkCardDisabledBg:"#F9F9FA",checkCardDisabledOutlineColor:"#E9EDF3",checkCardIndicatorSize:14,checkCardOutlineWidth:2,checkCardIndicatorOffset:-2});exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={borderColorBase:"#dee4ed",hoverColorBase:"#66a9ff",activeColorBase:"#66a9ff",colorPrimary:"#0070ff",colorPrimaryDisabled:"#cce2ff",colorLink:"#0070ff",colorLinkHover:"#66a9ff",colorLinkDisabled:"#cce2ff",colorSuccess:"#2ed1a3",colorSuccessDisabled:"#d5f6ed",colorError:"#ff4d4f",colorErrorDisabled:"#ffdbdc",colorWarn:"#ffa940",colorWarnDisabled:"#ffeed9",textColor1:"#182948",textColor2:"#526a90",textColor3:"#8896b0",textColor4:"#abb7cc",colorBg1:"#e9edf3",colorBg2:"#f6f9fa",colorBg3:"#f3f5f8",colorBgDisabled:"#f2f6f9",colorBgLayout:"#f2f6f9",colorBgControl:"#F5F9FF",fontSizeSM:10,fontSize:12,fontSizeLG:14,fontSizeXL:16,lineHeightSM:16,lineHeight:18,lineHeightLG:22,borderRadiusXS:1,borderRadius:4,spaceXXS:2,spaceXS:4,spaceSM:6,space:8,spaceMD:10,spaceLG:12,spaceXL:16,spaceXXL:24,scrollbarThumbColorBase:"#c8d1de",scrollbarThumbColorHover:"#959ca7",scrollbarTrackColorHover:"#f2f6f9",tableHeaderBg:"#f2f6f9",lineClamp:2};exports.defaultToken=o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={borderColorBase:"#dee4ed",hoverColorBase:"#66a9ff",activeColorBase:"#66a9ff",colorPrimary:"#0070ff",colorPrimaryDisabled:"#cce2ff",colorLink:"#0070ff",colorLinkHover:"#66a9ff",colorLinkDisabled:"#cce2ff",colorSuccess:"#2ed1a3",colorSuccessDisabled:"#d5f6ed",colorError:"#ff4d4f",colorErrorDisabled:"#ffdbdc",colorWarn:"#ffa940",colorWarnDisabled:"#ffeed9",textColor1:"#182948",textColor2:"#526a90",textColor3:"#8896b0",textColor4:"#abb7cc",colorBg1:"#e9edf3",colorBg2:"#f6f9fa",colorBg3:"#f3f5f8",colorBgDisabled:"#f2f6f9",colorBgLayout:"#f2f6f9",colorBgControl:"#F5F9FF",fontSizeSM:10,fontSize:12,fontSizeLG:14,fontSizeXL:16,fontSizeXXL:20,lineHeightSM:16,lineHeight:18,lineHeightLG:22,borderRadiusXS:1,borderRadiusSM:2,borderRadius:4,spaceXXS:2,spaceXS:4,spaceSM:6,space:8,spaceMD:10,spaceLG:12,spaceXL:16,spaceXXL:24,scrollbarThumbColorBase:"#c8d1de",scrollbarThumbColorHover:"#959ca7",scrollbarTrackColorHover:"#f2f6f9",tableHeaderBg:"#f2f6f9",lineClamp:2,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",lineWidth:1,lineType:"solid",controlHeight:30};exports.defaultToken=o;
|