@aplus-frontend/ui 0.4.3 → 0.4.5

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.
Files changed (99) hide show
  1. package/es/index.mjs +170 -162
  2. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +52 -56
  3. package/es/src/business/ap-summary/ap-summary.vue.d.ts +0 -1
  4. package/es/src/business/ap-summary/ap-summary.vue2.mjs +36 -35
  5. package/es/src/business/ap-summary/index.d.ts +0 -3
  6. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -4
  7. package/es/src/business/batch-input-group/form-item.vue.d.ts +9 -1
  8. package/es/src/business/batch-input-group/form-item.vue.mjs +48 -44
  9. package/es/src/config-provider/hooks/use-namespace.d.ts +1 -1
  10. package/es/src/config-provider/hooks/use-namespace.mjs +3 -3
  11. package/es/src/hooks/index.d.ts +2 -0
  12. package/es/src/hooks/index.mjs +7 -3
  13. package/es/src/hooks/useManualRef.d.ts +6 -0
  14. package/es/src/hooks/useManualRef.mjs +27 -0
  15. package/es/src/hooks/useThrottleRef.d.ts +2 -0
  16. package/es/src/hooks/useThrottleRef.mjs +31 -0
  17. package/es/src/index.d.ts +1 -1
  18. package/es/src/index.mjs +227 -222
  19. package/es/src/locale/lang/en.mjs +3 -0
  20. package/es/src/locale/lang/zh-cn.mjs +3 -0
  21. package/es/src/path-map.mjs +1 -1
  22. package/es/src/scroll-bar/hooks/use-track.d.ts +30 -0
  23. package/es/src/scroll-bar/hooks/use-track.mjs +76 -0
  24. package/es/src/scroll-bar/index.d.ts +5 -0
  25. package/es/src/scroll-bar/index.mjs +7 -0
  26. package/es/src/scroll-bar/index.vue.d.ts +53 -0
  27. package/es/src/scroll-bar/index.vue.mjs +90 -0
  28. package/es/src/scroll-bar/index.vue2.mjs +4 -0
  29. package/es/src/scroll-bar/interface.d.ts +66 -0
  30. package/es/src/scroll-bar/internal.vue.d.ts +22 -0
  31. package/es/src/scroll-bar/internal.vue.mjs +132 -0
  32. package/es/src/scroll-bar/internal.vue2.mjs +4 -0
  33. package/es/src/scroll-bar/style/css.js +1 -0
  34. package/es/src/scroll-bar/style/index.js +1 -0
  35. package/es/src/scroll-bar/utils/index.d.ts +29 -0
  36. package/es/src/scroll-bar/utils/index.mjs +22 -0
  37. package/lib/index.js +1 -1
  38. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  39. package/lib/src/business/ap-summary/ap-summary.vue.d.ts +0 -1
  40. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  41. package/lib/src/business/ap-summary/index.d.ts +0 -3
  42. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  43. package/lib/src/business/batch-input-group/form-item.vue.d.ts +9 -1
  44. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  45. package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -1
  46. package/lib/src/config-provider/hooks/use-namespace.js +1 -1
  47. package/lib/src/hooks/index.d.ts +2 -0
  48. package/lib/src/hooks/index.js +1 -1
  49. package/lib/src/hooks/useManualRef.d.ts +6 -0
  50. package/lib/src/hooks/useManualRef.js +1 -0
  51. package/lib/src/hooks/useThrottleRef.d.ts +2 -0
  52. package/lib/src/hooks/useThrottleRef.js +1 -0
  53. package/lib/src/index.d.ts +1 -1
  54. package/lib/src/index.js +1 -1
  55. package/lib/src/locale/lang/en.js +1 -1
  56. package/lib/src/locale/lang/zh-cn.js +1 -1
  57. package/lib/src/path-map.js +1 -1
  58. package/lib/src/scroll-bar/hooks/use-track.d.ts +30 -0
  59. package/lib/src/scroll-bar/hooks/use-track.js +1 -0
  60. package/lib/src/scroll-bar/index.d.ts +5 -0
  61. package/lib/src/scroll-bar/index.js +1 -0
  62. package/lib/src/scroll-bar/index.vue.d.ts +53 -0
  63. package/lib/src/scroll-bar/index.vue.js +1 -0
  64. package/lib/src/scroll-bar/index.vue2.js +1 -0
  65. package/lib/src/scroll-bar/interface.d.ts +66 -0
  66. package/lib/src/scroll-bar/internal.vue.d.ts +22 -0
  67. package/lib/src/scroll-bar/internal.vue.js +1 -0
  68. package/lib/src/scroll-bar/internal.vue2.js +1 -0
  69. package/lib/src/scroll-bar/style/css.cjs +1 -0
  70. package/lib/src/scroll-bar/style/index.cjs +1 -0
  71. package/lib/src/scroll-bar/utils/index.d.ts +29 -0
  72. package/lib/src/scroll-bar/utils/index.js +1 -0
  73. package/package.json +1 -1
  74. package/theme/index.css +36 -21
  75. package/theme/index.less +1 -1
  76. package/theme/scroll-bar/index.css +46 -0
  77. package/theme/scroll-bar/index.less +62 -0
  78. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +0 -8
  79. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.mjs +0 -4
  80. package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +0 -116
  81. package/es/src/ap-scroll-bar/index.d.ts +0 -29
  82. package/es/src/ap-scroll-bar/index.mjs +0 -8
  83. package/es/src/ap-scroll-bar/interface.d.ts +0 -4
  84. package/es/src/ap-scroll-bar/style/css.js +0 -1
  85. package/es/src/ap-scroll-bar/style/index.js +0 -1
  86. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +0 -8
  87. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.js +0 -1
  88. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +0 -1
  89. package/lib/src/ap-scroll-bar/index.d.ts +0 -29
  90. package/lib/src/ap-scroll-bar/index.js +0 -1
  91. package/lib/src/ap-scroll-bar/interface.d.ts +0 -4
  92. package/lib/src/ap-scroll-bar/style/css.cjs +0 -1
  93. package/lib/src/ap-scroll-bar/style/index.cjs +0 -1
  94. /package/es/src/{ap-scroll-bar → scroll-bar}/interface.mjs +0 -0
  95. /package/es/src/{ap-scroll-bar → scroll-bar}/style/css.d.ts +0 -0
  96. /package/es/src/{ap-scroll-bar → scroll-bar}/style/index.d.ts +0 -0
  97. /package/lib/src/{ap-scroll-bar → scroll-bar}/interface.js +0 -0
  98. /package/lib/src/{ap-scroll-bar → scroll-bar}/style/css.d.ts +0 -0
  99. /package/lib/src/{ap-scroll-bar → scroll-bar}/style/index.d.ts +0 -0
package/es/index.mjs CHANGED
@@ -1,250 +1,258 @@
1
- import * as e from "./src/index.mjs";
1
+ import * as o from "./src/index.mjs";
2
2
  import { default as l } from "./src/path-map.mjs";
3
3
  import "./src/hooks/index.mjs";
4
4
  import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
5
- import { DEFAULT_NAMESPACE as A, DEFAULT_UIMODE as s, configProviderContextKey as n } from "./src/config-provider/constants.mjs";
5
+ import { DEFAULT_NAMESPACE as s, DEFAULT_UIMODE as A, configProviderContextKey as n } from "./src/config-provider/constants.mjs";
6
6
  import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as I } from "./src/config-provider/hooks/use-global-config.mjs";
7
- import { buildLocaleContext as T, buildTranslator as C, localeContextKey as D, translate as g, useLocale as S } from "./src/config-provider/hooks/use-locale.mjs";
8
- import { defaultNamespace as G, namespaceContextKey as P, useGetDerivedNamespace as E, useNamespace as L } from "./src/config-provider/hooks/use-namespace.mjs";
9
- import { ConfigProvider as N, globalConfigCached as y } from "./src/config-provider/config-provider.mjs";
10
- import { APConfigProvider as R } from "./src/config-provider/index.mjs";
7
+ import { buildLocaleContext as b, buildTranslator as C, localeContextKey as D, translate as g, useLocale as S } from "./src/config-provider/hooks/use-locale.mjs";
8
+ import { defaultNamespace as G, namespaceContextKey as M, useGetDerivedNamespace as P, useNamespace as E } from "./src/config-provider/hooks/use-namespace.mjs";
9
+ import { ConfigProvider as N, globalConfigCached as R } from "./src/config-provider/config-provider.mjs";
10
+ import { APConfigProvider as w } from "./src/config-provider/index.mjs";
11
11
  import { ApFormItemText as v } from "./src/ap-form/items/text/index.mjs";
12
12
  import { default as K } from "./src/ap-form/items/text-area/index.vue.mjs";
13
13
  import { default as O } from "./src/ap-form/items/number/index.vue.mjs";
14
- import { default as _ } from "./src/ap-form/items/date/index.vue.mjs";
15
- import { default as H } from "./src/ap-form/items/date-range/index.vue.mjs";
14
+ import { default as W } from "./src/ap-form/items/date/index.vue.mjs";
15
+ import { default as z } from "./src/ap-form/items/date-range/index.vue.mjs";
16
16
  import { default as $ } from "./src/ap-form/items/radio/index.vue.mjs";
17
17
  import { default as q } from "./src/ap-form/items/select/index.vue.mjs";
18
18
  import { default as Q } from "./src/ap-form/items/switch/index.vue.mjs";
19
19
  import { default as Y } from "./src/ap-form/items/checkbox/index.vue.mjs";
20
- import { default as oo } from "./src/ap-form/items/text/password.vue.mjs";
21
- import { ApForm as ro } from "./src/ap-form/index.mjs";
22
- import { default as po } from "./src/ap-form/item/index.vue.mjs";
23
- import { default as fo } from "./src/ap-form/item-group/index.vue.mjs";
24
- import { default as lo } from "./src/ap-form/list/index.vue.mjs";
25
- import { default as uo } from "./src/ap-form/search-form/index.vue.mjs";
26
- import { default as so } from "./src/ap-form/modal-form/index.vue.mjs";
27
- import { default as io } from "./src/ap-form/dependency/index.vue.mjs";
28
- import { default as Fo } from "./src/ap-form/set/index.vue.mjs";
29
- import { default as bo } from "./src/ap-form/drawer-form/index.vue.mjs";
30
- import { default as Co } from "./src/ap-form/render/control.vue.mjs";
31
- import { default as go } from "./src/ap-form/render/item.vue.mjs";
32
- import { default as ho } from "./src/ap-form/provider/index.vue.mjs";
33
- import { ApField as Po } from "./src/ap-field/index.mjs";
34
- import { ApFieldText as Lo } from "./src/ap-field/text/index.mjs";
35
- import { default as No } from "./src/ap-field/checkbox/index.vue.mjs";
36
- import { default as wo } from "./src/ap-field/date/index.vue.mjs";
37
- import { default as ko } from "./src/ap-field/number/index.vue.mjs";
38
- import { default as Bo } from "./src/ap-field/radio/index.vue.mjs";
39
- import { default as Uo } from "./src/ap-field/switch/index.vue.mjs";
40
- import { default as Wo } from "./src/ap-field/text-area/index.vue.mjs";
41
- import { default as zo } from "./src/ap-field/date-range/index.vue.mjs";
42
- import { default as Vo } from "./src/ap-field/select/index.vue.mjs";
43
- import { default as jo } from "./src/ap-field/text/password.vue.mjs";
44
- import { default as Jo } from "./src/ap-field/slider/index.vue.mjs";
45
- import { default as Xo } from "./src/ap-field/segmented/index.vue.mjs";
46
- import { default as Zo } from "./src/ap-field/rate/index.vue.mjs";
47
- import { adminToken as ee, aplusToken as re } from "./src/design-token/index.mjs";
48
- import { ApActionItem as pe } from "./src/ap-action/index.mjs";
49
- import { default as fe } from "./src/ap-action/item-modal/index.vue.mjs";
50
- import { default as le } from "./src/ap-action/item-popconfirm/index.vue.mjs";
51
- import { default as de } from "./src/ap-action/item-dropdown/index.vue.mjs";
52
- import { default as Ae } from "./src/ap-action/group/index.vue.mjs";
53
- import { DictCode as ne, langMap as ie } from "./src/work-order-modal/interfaces.mjs";
54
- import { createWorkOrderModal as Fe } from "./src/work-order-modal/createWorkOrder.mjs";
55
- import { default as be } from "./src/work-order-modal/work-order-modal.vue.mjs";
56
- import { default as Ce } from "./src/ap-tag/ap-tag.vue.mjs";
57
- import { default as ge } from "./src/ap-tag/ap-tag-group.vue.mjs";
58
- import { default as he } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
59
- import { NeedNameKeyDefault as Pe } from "./src/ap-upload/apUploadTypes.mjs";
60
- import { default as Le } from "./src/ap-upload/apUpload.vue.mjs";
61
- import { ApDownLoadNeedNameKeyDefault as Ne } from "./src/ap-download/interface.mjs";
62
- import { default as we } from "./src/ap-download/ap-download.vue.mjs";
63
- import { CheckCard as ke } from "./src/check-card/index.mjs";
64
- import { default as Be } from "./src/check-card/group.vue.mjs";
65
- import { ApModal as Ue } from "./src/ap-modal/index.mjs";
66
- import { default as We } from "./src/ap-list/index.vue.mjs";
67
- import { default as ze } from "./src/ap-button/ap-button.vue.mjs";
68
- import { default as Ve } from "./src/ap-button/ap-action-button.vue.mjs";
69
- import { ApDrawer as je } from "./src/ap-drawer/index.mjs";
70
- import { ApTransformDataHelper as Je } from "./src/utils/ap-trans-data/index.mjs";
71
- import { default as Xe } from "./src/business/ap-table-modal/index.mjs";
72
- import { useTableModal as Ze } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
73
- import { useTableSelectModal as er } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
20
+ import { default as ee } from "./src/ap-form/items/text/password.vue.mjs";
21
+ import { ApForm as re } from "./src/ap-form/index.mjs";
22
+ import { default as pe } from "./src/ap-form/item/index.vue.mjs";
23
+ import { default as fe } from "./src/ap-form/item-group/index.vue.mjs";
24
+ import { default as le } from "./src/ap-form/list/index.vue.mjs";
25
+ import { default as de } from "./src/ap-form/search-form/index.vue.mjs";
26
+ import { default as se } from "./src/ap-form/modal-form/index.vue.mjs";
27
+ import { default as ne } from "./src/ap-form/dependency/index.vue.mjs";
28
+ import { default as ce } from "./src/ap-form/set/index.vue.mjs";
29
+ import { default as Ie } from "./src/ap-form/drawer-form/index.vue.mjs";
30
+ import { default as be } from "./src/ap-form/render/control.vue.mjs";
31
+ import { default as De } from "./src/ap-form/render/item.vue.mjs";
32
+ import { default as Se } from "./src/ap-form/provider/index.vue.mjs";
33
+ import { ApField as Ge } from "./src/ap-field/index.mjs";
34
+ import { ApFieldText as Pe } from "./src/ap-field/text/index.mjs";
35
+ import { default as Le } from "./src/ap-field/checkbox/index.vue.mjs";
36
+ import { default as Re } from "./src/ap-field/date/index.vue.mjs";
37
+ import { default as we } from "./src/ap-field/number/index.vue.mjs";
38
+ import { default as ve } from "./src/ap-field/radio/index.vue.mjs";
39
+ import { default as Ke } from "./src/ap-field/switch/index.vue.mjs";
40
+ import { default as Oe } from "./src/ap-field/text-area/index.vue.mjs";
41
+ import { default as We } from "./src/ap-field/date-range/index.vue.mjs";
42
+ import { default as ze } from "./src/ap-field/select/index.vue.mjs";
43
+ import { default as $e } from "./src/ap-field/text/password.vue.mjs";
44
+ import { default as qe } from "./src/ap-field/slider/index.vue.mjs";
45
+ import { default as Qe } from "./src/ap-field/segmented/index.vue.mjs";
46
+ import { default as Ye } from "./src/ap-field/rate/index.vue.mjs";
47
+ import { adminToken as eo, aplusToken as oo } from "./src/design-token/index.mjs";
48
+ import { ApActionItem as to } from "./src/ap-action/index.mjs";
49
+ import { default as ao } from "./src/ap-action/item-modal/index.vue.mjs";
50
+ import { default as mo } from "./src/ap-action/item-popconfirm/index.vue.mjs";
51
+ import { default as xo } from "./src/ap-action/item-dropdown/index.vue.mjs";
52
+ import { default as so } from "./src/ap-action/group/index.vue.mjs";
53
+ import { DictCode as no, langMap as io } from "./src/work-order-modal/interfaces.mjs";
54
+ import { createWorkOrderModal as Fo } from "./src/work-order-modal/createWorkOrder.mjs";
55
+ import { default as To } from "./src/work-order-modal/work-order-modal.vue.mjs";
56
+ import { default as Co } from "./src/ap-tag/ap-tag.vue.mjs";
57
+ import { default as go } from "./src/ap-tag/ap-tag-group.vue.mjs";
58
+ import { default as ho } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
59
+ import { NeedNameKeyDefault as Mo } from "./src/ap-upload/apUploadTypes.mjs";
60
+ import { default as Eo } from "./src/ap-upload/apUpload.vue.mjs";
61
+ import { ApDownLoadNeedNameKeyDefault as No } from "./src/ap-download/interface.mjs";
62
+ import { default as yo } from "./src/ap-download/ap-download.vue.mjs";
63
+ import { CheckCard as ko } from "./src/check-card/index.mjs";
64
+ import { default as Bo } from "./src/check-card/group.vue.mjs";
65
+ import { ApModal as Uo } from "./src/ap-modal/index.mjs";
66
+ import { default as Vo } from "./src/ap-list/index.vue.mjs";
67
+ import { default as _o } from "./src/ap-button/ap-button.vue.mjs";
68
+ import { default as Ho } from "./src/ap-button/ap-action-button.vue.mjs";
69
+ import { ApDrawer as jo } from "./src/ap-drawer/index.mjs";
70
+ import { ApTransformDataHelper as Jo } from "./src/utils/ap-trans-data/index.mjs";
71
+ import { default as Xo } from "./src/business/ap-table-modal/index.mjs";
72
+ import { useTableModal as Zo } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
73
+ import { useTableSelectModal as or } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
74
74
  import { ApAttachment as tr } from "./src/business/ap-attachment/index.mjs";
75
75
  import { ApBatchAction as ar } from "./src/business/ap-batch-action/index.mjs";
76
76
  import { ApBatchActionGroup as mr } from "./src/business/ap-batch-action-group/index.mjs";
77
77
  import { ApButtonGroup as xr } from "./src/business/ap-button-group/index.mjs";
78
78
  import { ApCard as ur } from "./src/business/ap-card/index.mjs";
79
- import { ApExpandAlert as sr } from "./src/business/ap-expand-alert/index.mjs";
79
+ import { ApExpandAlert as Ar } from "./src/business/ap-expand-alert/index.mjs";
80
80
  import { ApExportGroupActionType as ir } from "./src/business/ap-export-group/interface.mjs";
81
81
  import { ApExportGroup as Fr } from "./src/business/ap-export-group/index.mjs";
82
- import { handleExportDownload as br } from "./src/business/ap-export-group/handleExportDownload.mjs";
82
+ import { handleExportDownload as Tr } from "./src/business/ap-export-group/handleExportDownload.mjs";
83
83
  import { convertExportField as Cr } from "./src/business/ap-export-group/convertExportField.mjs";
84
84
  import { ApImage as gr } from "./src/business/ap-image/index.mjs";
85
85
  import { ApInputRadio as hr } from "./src/business/ap-input-radio/index.mjs";
86
- import { ApLabel as Pr, ApLabelGroup as Er } from "./src/business/ap-label/index.mjs";
87
- import { locales as Mr } from "./src/business/ap-ladder/interface.mjs";
88
- import { ApLadder as yr } from "./src/business/ap-ladder/index.mjs";
89
- import { ApSelectLayout as Rr } from "./src/business/ap-select-layout/index.mjs";
86
+ import { ApLabel as Mr, ApLabelGroup as Pr } from "./src/business/ap-label/index.mjs";
87
+ import { locales as Lr } from "./src/business/ap-ladder/interface.mjs";
88
+ import { ApLadder as Rr } from "./src/business/ap-ladder/index.mjs";
89
+ import { ApSelectLayout as wr } from "./src/business/ap-select-layout/index.mjs";
90
90
  import { ApStatus as vr, ApStatusGroup as Br } from "./src/business/ap-status/index.mjs";
91
91
  import { ApTitle as Ur } from "./src/business/ap-title/index.mjs";
92
- import { usePageListApTable as Wr } from "./src/business/hooks/usePageListApTable.mjs";
93
- import { useTableRefresh as zr } from "./src/business/hooks/useTableRefresh.mjs";
94
- import { computedRecords as Vr, flattenColumns as $r, formatDataIndex as jr, formatNumber as qr } from "./src/business/ap-summary/utils.mjs";
92
+ import { usePageListApTable as Vr } from "./src/business/hooks/usePageListApTable.mjs";
93
+ import { useTableRefresh as _r } from "./src/business/hooks/useTableRefresh.mjs";
94
+ import { computedRecords as Hr, flattenColumns as $r, formatDataIndex as jr, formatNumber as qr } from "./src/business/ap-summary/utils.mjs";
95
95
  import { ApSummary as Qr } from "./src/business/ap-summary/index.mjs";
96
96
  import { ApNeedNameKeyDefault as Yr } from "./src/business/ap-appendix/interface.mjs";
97
- import { ApAppendix as ot } from "./src/business/ap-appendix/index.mjs";
97
+ import { ApAppendix as et } from "./src/business/ap-appendix/index.mjs";
98
98
  import { ApExtensionSelect as rt, ApGroupSearch as tt, ApPopoverSelect as pt } from "./src/business/ap-group-search/index.mjs";
99
99
  import { default as ft } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
100
100
  import { default as lt } from "./src/business/batch-input-group/index.vue.mjs";
101
101
  import { default as dt } from "./src/business/batch-input-group/form-item.vue.mjs";
102
- import { ApSizeInput as At } from "./src/business/ap-size-input/index.mjs";
102
+ import { ApSizeInput as st } from "./src/business/ap-size-input/index.mjs";
103
103
  import { useTablePaging as nt } from "./src/ap-table/hooks/use-table-paging.mjs";
104
104
  import { ApTable as ct } from "./src/ap-table/index.mjs";
105
105
  import { default as It } from "./src/editable-table/index.vue.mjs";
106
- import { default as Tt } from "./src/editable-table/form-item.vue.mjs";
106
+ import { default as bt } from "./src/editable-table/form-item.vue.mjs";
107
107
  import { default as Dt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
108
- import { ApScrollBar as St } from "./src/ap-scroll-bar/index.mjs";
109
- import { useMessage as Gt } from "./src/hooks/useMessage.mjs";
110
- import { useControllableValue as Et } from "./src/hooks/useControllableValue.mjs";
108
+ import { ensureRangeValue as St } from "./src/scroll-bar/utils/index.mjs";
109
+ import { default as Gt } from "./src/scroll-bar/index.vue.mjs";
110
+ import { default as Pt } from "./src/scroll-bar/internal.vue.mjs";
111
+ import { useMessage as Lt } from "./src/hooks/useMessage.mjs";
112
+ import { useControllableValue as Rt } from "./src/hooks/useControllableValue.mjs";
113
+ import { useManualRef as wt } from "./src/hooks/useManualRef.mjs";
114
+ import { useThrottleRef as vt } from "./src/hooks/useThrottleRef.mjs";
111
115
  const a = {
112
116
  install: (r) => {
113
- for (const t in e) {
114
- const o = e[t];
115
- o.install && r.use(o);
117
+ for (const t in o) {
118
+ const e = o[t];
119
+ e.install && r.use(e);
116
120
  }
117
121
  }
118
122
  };
119
123
  export {
120
- R as APConfigProvider,
121
- Ve as ApActionButton,
122
- Ae as ApActionGroup,
123
- pe as ApActionItem,
124
- de as ApActionItemDropdown,
125
- fe as ApActionItemModal,
126
- le as ApActionItemPopconfirm,
127
- ot as ApAppendix,
124
+ w as APConfigProvider,
125
+ Ho as ApActionButton,
126
+ so as ApActionGroup,
127
+ to as ApActionItem,
128
+ xo as ApActionItemDropdown,
129
+ ao as ApActionItemModal,
130
+ mo as ApActionItemPopconfirm,
131
+ et as ApAppendix,
128
132
  tr as ApAttachment,
129
133
  ar as ApBatchAction,
130
134
  mr as ApBatchActionGroup,
131
- ze as ApButton,
135
+ _o as ApButton,
132
136
  xr as ApButtonGroup,
133
137
  ur as ApCard,
134
138
  Dt as ApDescriptions,
135
- Ne as ApDownLoadNeedNameKeyDefault,
136
- we as ApDownload,
137
- je as ApDrawer,
138
- sr as ApExpandAlert,
139
+ No as ApDownLoadNeedNameKeyDefault,
140
+ yo as ApDownload,
141
+ jo as ApDrawer,
142
+ Ar as ApExpandAlert,
139
143
  Fr as ApExportGroup,
140
144
  ir as ApExportGroupActionType,
141
145
  rt as ApExtensionSelect,
142
- Po as ApField,
143
- No as ApFieldCheckbox,
144
- wo as ApFieldDate,
145
- zo as ApFieldDateRange,
146
- ko as ApFieldNumber,
147
- jo as ApFieldPassword,
148
- Bo as ApFieldRadio,
149
- Zo as ApFieldRate,
150
- Xo as ApFieldSegmented,
151
- Vo as ApFieldSelect,
152
- Jo as ApFieldSlider,
153
- Uo as ApFieldSwitch,
154
- Lo as ApFieldText,
155
- Wo as ApFieldTextArea,
156
- ro as ApForm,
157
- Co as ApFormControlRender,
158
- io as ApFormDependency,
159
- bo as ApFormDrawerForm,
160
- po as ApFormItem,
146
+ Ge as ApField,
147
+ Le as ApFieldCheckbox,
148
+ Re as ApFieldDate,
149
+ We as ApFieldDateRange,
150
+ we as ApFieldNumber,
151
+ $e as ApFieldPassword,
152
+ ve as ApFieldRadio,
153
+ Ye as ApFieldRate,
154
+ Qe as ApFieldSegmented,
155
+ ze as ApFieldSelect,
156
+ qe as ApFieldSlider,
157
+ Ke as ApFieldSwitch,
158
+ Pe as ApFieldText,
159
+ Oe as ApFieldTextArea,
160
+ re as ApForm,
161
+ be as ApFormControlRender,
162
+ ne as ApFormDependency,
163
+ Ie as ApFormDrawerForm,
164
+ pe as ApFormItem,
161
165
  dt as ApFormItemBatchInput,
162
166
  Y as ApFormItemCheckbox,
163
- _ as ApFormItemDate,
164
- H as ApFormItemDateRange,
165
- fo as ApFormItemGroup,
167
+ W as ApFormItemDate,
168
+ z as ApFormItemDateRange,
169
+ fe as ApFormItemGroup,
166
170
  O as ApFormItemNumber,
167
171
  $ as ApFormItemRadio,
168
- go as ApFormItemRender,
172
+ De as ApFormItemRender,
169
173
  q as ApFormItemSelect,
170
174
  Q as ApFormItemSwitch,
171
175
  v as ApFormItemText,
172
176
  K as ApFormItemTextArea,
173
- oo as ApFormItemTextPassword,
174
- lo as ApFormList,
175
- so as ApFormModalForm,
176
- ho as ApFormProvider,
177
- uo as ApFormSearchForm,
178
- Fo as ApFormSet,
177
+ ee as ApFormItemTextPassword,
178
+ le as ApFormList,
179
+ se as ApFormModalForm,
180
+ Se as ApFormProvider,
181
+ de as ApFormSearchForm,
182
+ ce as ApFormSet,
179
183
  tt as ApGroupSearch,
180
184
  gr as ApImage,
181
- he as ApInfoLayout,
185
+ ho as ApInfoLayout,
182
186
  hr as ApInputRadio,
183
- Pr as ApLabel,
184
- Er as ApLabelGroup,
185
- yr as ApLadder,
186
- We as ApList,
187
- Ue as ApModal,
187
+ Mr as ApLabel,
188
+ Pr as ApLabelGroup,
189
+ Rr as ApLadder,
190
+ Vo as ApList,
191
+ Uo as ApModal,
188
192
  Yr as ApNeedNameKeyDefault,
189
193
  pt as ApPopoverSelect,
190
- St as ApScrollBar,
191
- Rr as ApSelectLayout,
192
- At as ApSizeInput,
194
+ wr as ApSelectLayout,
195
+ st as ApSizeInput,
193
196
  vr as ApStatus,
194
197
  Br as ApStatusGroup,
195
198
  Qr as ApSummary,
196
199
  ct as ApTable,
197
- Xe as ApTableModal,
198
- Ce as ApTag,
199
- ge as ApTagGroup,
200
+ Xo as ApTableModal,
201
+ Co as ApTag,
202
+ go as ApTagGroup,
200
203
  Ur as ApTitle,
201
- Je as ApTransformDataHelper,
202
- Le as ApUpload,
204
+ Jo as ApTransformDataHelper,
205
+ Eo as ApUpload,
203
206
  ft as ApUploadSingle,
204
207
  lt as BatchInputGroup,
205
- ke as CheckCard,
206
- Be as CheckCardGroup,
208
+ ko as CheckCard,
209
+ Bo as CheckCardGroup,
207
210
  N as ConfigProvider,
208
- A as DEFAULT_NAMESPACE,
209
- s as DEFAULT_UIMODE,
210
- ne as DictCode,
211
+ s as DEFAULT_NAMESPACE,
212
+ A as DEFAULT_UIMODE,
213
+ no as DictCode,
211
214
  It as EditableTable,
212
- Tt as EditableTableFormItem,
213
- Pe as NeedNameKeyDefault,
214
- be as WorkOrderModal,
215
- ee as adminToken,
216
- re as aplusToken,
217
- T as buildLocaleContext,
215
+ bt as EditableTableFormItem,
216
+ Pt as InternalScrollBar,
217
+ Mo as NeedNameKeyDefault,
218
+ Gt as ScrollBar,
219
+ To as WorkOrderModal,
220
+ eo as adminToken,
221
+ oo as aplusToken,
222
+ b as buildLocaleContext,
218
223
  C as buildTranslator,
219
- Vr as computedRecords,
224
+ Hr as computedRecords,
220
225
  n as configProviderContextKey,
221
226
  d as configProviderProps,
222
227
  Cr as convertExportField,
223
- Fe as createWorkOrderModal,
228
+ Fo as createWorkOrderModal,
224
229
  a as default,
225
230
  G as defaultNamespace,
231
+ St as ensureRangeValue,
226
232
  $r as flattenColumns,
227
233
  jr as formatDataIndex,
228
234
  qr as formatNumber,
229
- y as globalConfigCached,
230
- br as handleExportDownload,
235
+ R as globalConfigCached,
236
+ Tr as handleExportDownload,
231
237
  c as keysOf,
232
- ie as langMap,
238
+ io as langMap,
233
239
  D as localeContextKey,
234
- Mr as locales,
235
- P as namespaceContextKey,
240
+ Lr as locales,
241
+ M as namespaceContextKey,
236
242
  l as pathMap,
237
243
  F as provideGlobalConfig,
238
244
  g as translate,
239
- Et as useControllableValue,
240
- E as useGetDerivedNamespace,
245
+ Rt as useControllableValue,
246
+ P as useGetDerivedNamespace,
241
247
  I as useGlobalConfig,
242
248
  S as useLocale,
243
- Gt as useMessage,
244
- L as useNamespace,
245
- Wr as usePageListApTable,
246
- Ze as useTableModal,
249
+ wt as useManualRef,
250
+ Lt as useMessage,
251
+ E as useNamespace,
252
+ Vr as usePageListApTable,
253
+ Zo as useTableModal,
247
254
  nt as useTablePaging,
248
- zr as useTableRefresh,
249
- er as useTableSelectModal
255
+ _r as useTableRefresh,
256
+ or as useTableSelectModal,
257
+ vt as useThrottleRef
250
258
  };
@@ -1,12 +1,11 @@
1
- import { defineComponent as O, ref as u, computed as U, onMounted as W, openBlock as p, createElementBlock as m, normalizeClass as a, unref as t, createVNode as d, Transition as z, withCtx as v, withDirectives as V, createElementVNode as s, toDisplayString as E, createTextVNode as $, Fragment as R, renderList as _, renderSlot as x, vShow as N, createCommentVNode as j } from "vue";
1
+ import { defineComponent as I, ref as d, computed as M, onMounted as O, openBlock as p, createElementBlock as m, normalizeClass as a, unref as t, createVNode as u, Transition as W, withCtx as v, withDirectives as g, createElementVNode as s, toDisplayString as E, createTextVNode as $, Fragment as z, renderList as R, renderSlot as x, vShow as N, createCommentVNode as j } from "vue";
2
2
  import "../../ap-field/index.mjs";
3
3
  import { IconApLeftarrow as G, IconApMenu as H } from "@aplus-frontend/icon";
4
4
  import "../../config-provider/index.mjs";
5
5
  import { Tooltip as w, TypographyText as J } from "@aplus-frontend/antdv";
6
- import { debounce as K } from "lodash-unified";
7
- import { useNamespace as P } from "../../config-provider/hooks/use-namespace.mjs";
8
- import { ApFieldText as Q } from "../../ap-field/text/index.mjs";
9
- const X = ["onClick"], re = /* @__PURE__ */ O({
6
+ import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
7
+ import { ApFieldText as P } from "../../ap-field/text/index.mjs";
8
+ const Q = ["onClick"], ae = /* @__PURE__ */ I({
10
9
  __name: "select-layout",
11
10
  props: {
12
11
  title: {},
@@ -17,45 +16,42 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
17
16
  },
18
17
  emits: ["onSelect", "afterEnter", "afterLeave"],
19
18
  setup(A, { emit: B }) {
20
- const { b: h, be: y, bem: i } = P("ap-select-layout"), o = A, C = B, g = u(), f = u(o.defaultFold), S = u(!o.defaultFold), T = u(), b = u(), k = u(), c = u(o.defaultValue), L = () => {
19
+ const { b: h, be: y, bem: i } = K("ap-select-layout"), o = A, C = B, S = d(), f = d(o.defaultFold), k = d(!o.defaultFold), T = d(), b = d(), F = d(), c = d(o.defaultValue), L = () => {
21
20
  f.value = !f.value, T.value = !1, b.value = !1;
22
- }, F = (l) => {
23
- k.value = l, C("onSelect", l);
24
- }, q = K((l) => {
25
- var e;
26
- c.value = (e = l.target) == null ? void 0 : e.value;
27
- }, 500), D = U(() => {
28
- var l;
29
- return (l = g.value) == null ? void 0 : l.filter((e) => {
30
- var r, n;
31
- return o != null && o.onSearch ? (r = o.onSearch) == null ? void 0 : r.call(o, e, c.value) : (n = e == null ? void 0 : e.name) == null ? void 0 : n.includes(c.value);
21
+ }, V = (n) => {
22
+ F.value = n, C("onSelect", n);
23
+ }, U = M(() => {
24
+ var n;
25
+ return (n = S.value) == null ? void 0 : n.filter((e) => {
26
+ var r, l;
27
+ return o != null && o.onSearch ? (r = o.onSearch) == null ? void 0 : r.call(o, e, c.value) : (l = e == null ? void 0 : e.name) == null ? void 0 : l.includes(c.value);
32
28
  });
33
- }), I = (l) => {
34
- S.value = !0, C("afterEnter", l);
35
- }, M = (l) => {
36
- S.value = !1, C("afterLeave", l);
29
+ }), q = (n) => {
30
+ k.value = !0, C("afterEnter", n);
31
+ }, D = (n) => {
32
+ k.value = !1, C("afterLeave", n);
37
33
  };
38
- return W(() => {
39
- o.request().then((l) => {
34
+ return O(() => {
35
+ o.request().then((n) => {
40
36
  var r;
41
- g.value = l;
42
- let e = (r = g.value) == null ? void 0 : r.filter(
43
- (n) => n.name.includes(c.value)
37
+ S.value = n;
38
+ let e = (r = S.value) == null ? void 0 : r.filter(
39
+ (l) => l.name.includes(c.value)
44
40
  );
45
- F(e == null ? void 0 : e[0]);
41
+ V(e == null ? void 0 : e[0]);
46
42
  });
47
- }), (l, e) => {
43
+ }), (n, e) => {
48
44
  var r;
49
45
  return p(), m("div", {
50
46
  class: a(t(h)())
51
47
  }, [
52
- d(z, {
48
+ u(W, {
53
49
  mode: "out-in",
54
- onAfterEnter: I,
55
- onAfterLeave: M
50
+ onAfterEnter: q,
51
+ onAfterLeave: D
56
52
  }, {
57
53
  default: v(() => [
58
- V(s("div", {
54
+ g(s("div", {
59
55
  class: a(t(h)("side"))
60
56
  }, [
61
57
  s("div", {
@@ -65,15 +61,15 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
65
61
  s("div", {
66
62
  class: a(t(i)("side", "header", "imgWrap"))
67
63
  }, [
68
- d(t(w), {
64
+ u(t(w), {
69
65
  open: T.value,
70
- "onUpdate:open": e[0] || (e[0] = (n) => T.value = n)
66
+ "onUpdate:open": e[0] || (e[0] = (l) => T.value = l)
71
67
  }, {
72
- title: v(() => e[2] || (e[2] = [
68
+ title: v(() => e[3] || (e[3] = [
73
69
  $("收起")
74
70
  ])),
75
71
  default: v(() => [
76
- d(t(G), { onClick: L })
72
+ u(t(G), { onClick: L })
77
73
  ]),
78
74
  _: 1
79
75
  }, 8, ["open"])
@@ -85,28 +81,28 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
85
81
  s("div", {
86
82
  class: a(t(i)("side", "body", "search"))
87
83
  }, [
88
- d(t(Q), {
89
- placeholder: "请输入",
84
+ u(t(P), {
90
85
  value: c.value,
91
- onChange: t(q)
92
- }, null, 8, ["value", "onChange"])
86
+ "onUpdate:value": e[1] || (e[1] = (l) => c.value = l),
87
+ placeholder: "请输入"
88
+ }, null, 8, ["value"])
93
89
  ], 2),
94
90
  s("div", {
95
91
  class: a(t(i)("side", "body", "scroll"))
96
92
  }, [
97
- (p(!0), m(R, null, _(D.value, (n) => V((p(), m("div", {
98
- key: n.value,
99
- class: a(`${t(i)("side", "body", "scroll-item")} ${k.value === n ? "active" : ""}`),
100
- onClick: (Y) => F(n)
93
+ (p(!0), m(z, null, R(U.value, (l) => g((p(), m("div", {
94
+ key: l.value,
95
+ class: a(`${t(i)("side", "body", "scroll-item")} ${F.value === l ? "active" : ""}`),
96
+ onClick: (X) => V(l)
101
97
  }, [
102
- x(l.$slots, "itemRender", { item: n }, () => [
103
- d(t(J), {
104
- ellipsis: { tooltip: n.name },
105
- content: `${n.name}`
98
+ x(n.$slots, "itemRender", { item: l }, () => [
99
+ u(t(J), {
100
+ ellipsis: { tooltip: l.name },
101
+ content: `${l.name}`
106
102
  }, null, 8, ["ellipsis", "content"])
107
103
  ])
108
- ], 10, X)), [
109
- [N, S.value]
104
+ ], 10, Q)), [
105
+ [N, k.value]
110
106
  ])), 128))
111
107
  ], 2)
112
108
  ], 2)
@@ -126,29 +122,29 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
126
122
  key: 0,
127
123
  class: a(t(i)("content", "header", "imgWrap"))
128
124
  }, [
129
- d(t(w), {
125
+ u(t(w), {
130
126
  open: b.value,
131
- "onUpdate:open": e[1] || (e[1] = (n) => b.value = n)
127
+ "onUpdate:open": e[2] || (e[2] = (l) => b.value = l)
132
128
  }, {
133
- title: v(() => e[3] || (e[3] = [
129
+ title: v(() => e[4] || (e[4] = [
134
130
  $("展开")
135
131
  ])),
136
132
  default: v(() => [
137
- d(t(H), { onClick: L })
133
+ u(t(H), { onClick: L })
138
134
  ]),
139
135
  _: 1
140
136
  }, 8, ["open"])
141
137
  ], 2)) : j("", !0),
142
138
  s("div", {
143
139
  class: a(t(i)("content", "header", "title"))
144
- }, E((r = k.value) == null ? void 0 : r.name), 3)
140
+ }, E((r = F.value) == null ? void 0 : r.name), 3)
145
141
  ], 2),
146
- x(l.$slots, "default")
142
+ x(n.$slots, "default")
147
143
  ], 2)
148
144
  ], 2);
149
145
  };
150
146
  }
151
147
  });
152
148
  export {
153
- re as default
149
+ ae as default
154
150
  };
@@ -2,7 +2,6 @@ import { ApSummaryProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<ApSummaryProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApSummaryProps> & Readonly<{}>, {
4
4
  size: "middle" | "small";
5
- summaryTitle: string;
6
5
  hasSelect: boolean;
7
6
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
7
  export default _default;