@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/src/index.mjs CHANGED
@@ -1,243 +1,248 @@
1
- import { APConfigProvider as u } from "./config-provider/index.mjs";
2
- import { ApForm as i } from "./ap-form/index.mjs";
3
- import { ApField as c } from "./ap-field/index.mjs";
4
- import { adminToken as I, aplusToken as T } from "./design-token/index.mjs";
5
- import { ApActionItem as D } from "./ap-action/index.mjs";
1
+ import { APConfigProvider as s } from "./config-provider/index.mjs";
2
+ import { ApForm as n } from "./ap-form/index.mjs";
3
+ import { ApField as F } from "./ap-field/index.mjs";
4
+ import { adminToken as T, aplusToken as b } from "./design-token/index.mjs";
5
+ import { ApActionItem as C } from "./ap-action/index.mjs";
6
6
  import "./work-order-modal/index.mjs";
7
7
  import "./ap-tag/index.mjs";
8
8
  import "./ap-info-layout/index.mjs";
9
9
  import "./ap-upload/index.mjs";
10
10
  import "./ap-download/index.mjs";
11
- import { CheckCard as S } from "./check-card/index.mjs";
12
- import { ApModal as h } from "./ap-modal/index.mjs";
11
+ import { CheckCard as g } from "./check-card/index.mjs";
12
+ import { ApModal as G } from "./ap-modal/index.mjs";
13
13
  import "./ap-list/index.mjs";
14
14
  import "./ap-button/index.mjs";
15
- import { ApDrawer as P } from "./ap-drawer/index.mjs";
15
+ import { ApDrawer as E } from "./ap-drawer/index.mjs";
16
16
  import "./business/index.mjs";
17
- import { ApTable as L } from "./ap-table/index.mjs";
17
+ import { ApTable as N } from "./ap-table/index.mjs";
18
18
  import "./editable-table/index.mjs";
19
19
  import "./ap-descriptions/index.mjs";
20
- import { ApScrollBar as y } from "./ap-scroll-bar/index.mjs";
21
- import { configProviderProps as w } from "./config-provider/config-provider-props.mjs";
22
- import { DEFAULT_NAMESPACE as k, DEFAULT_UIMODE as v, configProviderContextKey as B } from "./config-provider/constants.mjs";
23
- import { keysOf as U, provideGlobalConfig as O, useGlobalConfig as W } from "./config-provider/hooks/use-global-config.mjs";
24
- import { buildLocaleContext as z, buildTranslator as H, localeContextKey as j, translate as q, useLocale as J } from "./config-provider/hooks/use-locale.mjs";
25
- import { defaultNamespace as V, namespaceContextKey as X, useGetDerivedNamespace as Y, useNamespace as Z } from "./config-provider/hooks/use-namespace.mjs";
26
- import { ConfigProvider as oo, globalConfigCached as eo } from "./config-provider/config-provider.mjs";
27
- import { ApFormItemText as to } from "./ap-form/items/text/index.mjs";
28
- import { default as ao } from "./ap-form/items/text-area/index.vue.mjs";
29
- import { default as fo } from "./ap-form/items/number/index.vue.mjs";
30
- import { default as xo } from "./ap-form/items/date/index.vue.mjs";
20
+ import "./scroll-bar/index.mjs";
21
+ import { configProviderProps as M } from "./config-provider/config-provider-props.mjs";
22
+ import { DEFAULT_NAMESPACE as w, DEFAULT_UIMODE as k, configProviderContextKey as v } from "./config-provider/constants.mjs";
23
+ import { keysOf as K, provideGlobalConfig as U, useGlobalConfig as O } from "./config-provider/hooks/use-global-config.mjs";
24
+ import { buildLocaleContext as _, buildTranslator as z, localeContextKey as H, translate as V, useLocale as j } from "./config-provider/hooks/use-locale.mjs";
25
+ import { defaultNamespace as J, namespaceContextKey as Q, useGetDerivedNamespace as X, useNamespace as Y } from "./config-provider/hooks/use-namespace.mjs";
26
+ import { ConfigProvider as $, globalConfigCached as oo } from "./config-provider/config-provider.mjs";
27
+ import { ApFormItemText as ro } from "./ap-form/items/text/index.mjs";
28
+ import { default as po } from "./ap-form/items/text-area/index.vue.mjs";
29
+ import { default as mo } from "./ap-form/items/number/index.vue.mjs";
30
+ import { default as lo } from "./ap-form/items/date/index.vue.mjs";
31
31
  import { default as uo } from "./ap-form/items/date-range/index.vue.mjs";
32
- import { default as io } from "./ap-form/items/radio/index.vue.mjs";
33
- import { default as co } from "./ap-form/items/select/index.vue.mjs";
34
- import { default as Io } from "./ap-form/items/switch/index.vue.mjs";
35
- import { default as bo } from "./ap-form/items/checkbox/index.vue.mjs";
36
- import { default as Co } from "./ap-form/items/text/password.vue.mjs";
37
- import { default as go } from "./ap-form/item/index.vue.mjs";
38
- import { default as Go } from "./ap-form/item-group/index.vue.mjs";
39
- import { default as Eo } from "./ap-form/list/index.vue.mjs";
40
- import { default as No } from "./ap-form/search-form/index.vue.mjs";
41
- import { default as Mo } from "./ap-form/modal-form/index.vue.mjs";
32
+ import { default as so } from "./ap-form/items/radio/index.vue.mjs";
33
+ import { default as no } from "./ap-form/items/select/index.vue.mjs";
34
+ import { default as Fo } from "./ap-form/items/switch/index.vue.mjs";
35
+ import { default as To } from "./ap-form/items/checkbox/index.vue.mjs";
36
+ import { default as Do } from "./ap-form/items/text/password.vue.mjs";
37
+ import { default as So } from "./ap-form/item/index.vue.mjs";
38
+ import { default as ho } from "./ap-form/item-group/index.vue.mjs";
39
+ import { default as Po } from "./ap-form/list/index.vue.mjs";
40
+ import { default as Lo } from "./ap-form/search-form/index.vue.mjs";
41
+ import { default as yo } from "./ap-form/modal-form/index.vue.mjs";
42
42
  import { default as Ro } from "./ap-form/dependency/index.vue.mjs";
43
- import { default as vo } from "./ap-form/set/index.vue.mjs";
44
- import { default as Ko } from "./ap-form/drawer-form/index.vue.mjs";
45
- import { default as Oo } from "./ap-form/render/control.vue.mjs";
46
- import { default as _o } from "./ap-form/render/item.vue.mjs";
47
- import { default as Ho } from "./ap-form/provider/index.vue.mjs";
48
- import { ApFieldText as qo } from "./ap-field/text/index.mjs";
49
- import { default as Qo } from "./ap-field/checkbox/index.vue.mjs";
50
- import { default as Xo } from "./ap-field/date/index.vue.mjs";
51
- import { default as Zo } from "./ap-field/number/index.vue.mjs";
52
- import { default as oe } from "./ap-field/radio/index.vue.mjs";
53
- import { default as re } from "./ap-field/switch/index.vue.mjs";
54
- import { default as pe } from "./ap-field/text-area/index.vue.mjs";
55
- import { default as me } from "./ap-field/date-range/index.vue.mjs";
56
- import { default as le } from "./ap-field/select/index.vue.mjs";
57
- import { default as de } from "./ap-field/text/password.vue.mjs";
43
+ import { default as ko } from "./ap-form/set/index.vue.mjs";
44
+ import { default as Bo } from "./ap-form/drawer-form/index.vue.mjs";
45
+ import { default as Uo } from "./ap-form/render/control.vue.mjs";
46
+ import { default as Wo } from "./ap-form/render/item.vue.mjs";
47
+ import { default as zo } from "./ap-form/provider/index.vue.mjs";
48
+ import { ApFieldText as Vo } from "./ap-field/text/index.mjs";
49
+ import { default as qo } from "./ap-field/checkbox/index.vue.mjs";
50
+ import { default as Qo } from "./ap-field/date/index.vue.mjs";
51
+ import { default as Yo } from "./ap-field/number/index.vue.mjs";
52
+ import { default as $o } from "./ap-field/radio/index.vue.mjs";
53
+ import { default as ee } from "./ap-field/switch/index.vue.mjs";
54
+ import { default as te } from "./ap-field/text-area/index.vue.mjs";
55
+ import { default as ae } from "./ap-field/date-range/index.vue.mjs";
56
+ import { default as fe } from "./ap-field/select/index.vue.mjs";
57
+ import { default as xe } from "./ap-field/text/password.vue.mjs";
58
58
  import { default as ue } from "./ap-field/slider/index.vue.mjs";
59
- import { default as ie } from "./ap-field/segmented/index.vue.mjs";
60
- import { default as ce } from "./ap-field/rate/index.vue.mjs";
61
- import { default as Ie } from "./ap-action/item-modal/index.vue.mjs";
62
- import { default as be } from "./ap-action/item-popconfirm/index.vue.mjs";
63
- import { default as Ce } from "./ap-action/item-dropdown/index.vue.mjs";
64
- import { default as ge } from "./ap-action/group/index.vue.mjs";
65
- import { DictCode as Ge, langMap as Pe } from "./work-order-modal/interfaces.mjs";
66
- import { createWorkOrderModal as Le } from "./work-order-modal/createWorkOrder.mjs";
67
- import { default as ye } from "./work-order-modal/work-order-modal.vue.mjs";
68
- import { default as we } from "./ap-tag/ap-tag.vue.mjs";
69
- import { default as ke } from "./ap-tag/ap-tag-group.vue.mjs";
70
- import { default as Be } from "./ap-info-layout/ApInfoLayout.vue.mjs";
71
- import { NeedNameKeyDefault as Ue } from "./ap-upload/apUploadTypes.mjs";
72
- import { default as We } from "./ap-upload/apUpload.vue.mjs";
73
- import { ApDownLoadNeedNameKeyDefault as ze } from "./ap-download/interface.mjs";
74
- import { default as je } from "./ap-download/ap-download.vue.mjs";
75
- import { default as Je } from "./check-card/group.vue.mjs";
76
- import { default as Ve } from "./ap-list/index.vue.mjs";
77
- import { default as Ye } from "./ap-button/ap-button.vue.mjs";
78
- import { default as $e } from "./ap-button/ap-action-button.vue.mjs";
79
- import { ApTransformDataHelper as er } from "./utils/ap-trans-data/index.mjs";
80
- import { default as tr } from "./business/ap-table-modal/index.mjs";
81
- import { useTableModal as ar } from "./business/ap-table-modal/hooks/use-table-modal.mjs";
82
- import { useTableSelectModal as fr } from "./business/ap-table-modal/hooks/use-table-select-modal.mjs";
83
- import { ApAttachment as xr } from "./business/ap-attachment/index.mjs";
84
- import { ApBatchAction as Ar } from "./business/ap-batch-action/index.mjs";
85
- import { ApBatchActionGroup as sr } from "./business/ap-batch-action-group/index.mjs";
86
- import { ApButtonGroup as nr } from "./business/ap-button-group/index.mjs";
87
- import { ApCard as Fr } from "./business/ap-card/index.mjs";
88
- import { ApExpandAlert as Tr } from "./business/ap-expand-alert/index.mjs";
89
- import { ApExportGroupActionType as Dr } from "./business/ap-export-group/interface.mjs";
90
- import { ApExportGroup as Sr } from "./business/ap-export-group/index.mjs";
91
- import { handleExportDownload as hr } from "./business/ap-export-group/handleExportDownload.mjs";
92
- import { convertExportField as Pr } from "./business/ap-export-group/convertExportField.mjs";
93
- import { ApImage as Lr } from "./business/ap-image/index.mjs";
94
- import { ApInputRadio as yr } from "./business/ap-input-radio/index.mjs";
95
- import { ApLabel as wr, ApLabelGroup as Rr } from "./business/ap-label/index.mjs";
96
- import { locales as vr } from "./business/ap-ladder/interface.mjs";
97
- import { ApLadder as Kr } from "./business/ap-ladder/index.mjs";
98
- import { ApSelectLayout as Or } from "./business/ap-select-layout/index.mjs";
99
- import { ApStatus as _r, ApStatusGroup as zr } from "./business/ap-status/index.mjs";
100
- import { ApTitle as jr } from "./business/ap-title/index.mjs";
101
- import { usePageListApTable as Jr } from "./business/hooks/usePageListApTable.mjs";
102
- import { useTableRefresh as Vr } from "./business/hooks/useTableRefresh.mjs";
103
- import { computedRecords as Yr, flattenColumns as Zr, formatDataIndex as $r, formatNumber as ot } from "./business/ap-summary/utils.mjs";
104
- import { ApSummary as rt } from "./business/ap-summary/index.mjs";
105
- import { ApNeedNameKeyDefault as pt } from "./business/ap-appendix/interface.mjs";
106
- import { ApAppendix as mt } from "./business/ap-appendix/index.mjs";
107
- import { ApExtensionSelect as lt, ApGroupSearch as xt, ApPopoverSelect as dt } from "./business/ap-group-search/index.mjs";
59
+ import { default as se } from "./ap-field/segmented/index.vue.mjs";
60
+ import { default as ne } from "./ap-field/rate/index.vue.mjs";
61
+ import { default as Fe } from "./ap-action/item-modal/index.vue.mjs";
62
+ import { default as Te } from "./ap-action/item-popconfirm/index.vue.mjs";
63
+ import { default as De } from "./ap-action/item-dropdown/index.vue.mjs";
64
+ import { default as Se } from "./ap-action/group/index.vue.mjs";
65
+ import { DictCode as he, langMap as Ge } from "./work-order-modal/interfaces.mjs";
66
+ import { createWorkOrderModal as Ee } from "./work-order-modal/createWorkOrder.mjs";
67
+ import { default as Ne } from "./work-order-modal/work-order-modal.vue.mjs";
68
+ import { default as Me } from "./ap-tag/ap-tag.vue.mjs";
69
+ import { default as we } from "./ap-tag/ap-tag-group.vue.mjs";
70
+ import { default as ve } from "./ap-info-layout/ApInfoLayout.vue.mjs";
71
+ import { NeedNameKeyDefault as Ke } from "./ap-upload/apUploadTypes.mjs";
72
+ import { default as Oe } from "./ap-upload/apUpload.vue.mjs";
73
+ import { ApDownLoadNeedNameKeyDefault as _e } from "./ap-download/interface.mjs";
74
+ import { default as He } from "./ap-download/ap-download.vue.mjs";
75
+ import { default as je } from "./check-card/group.vue.mjs";
76
+ import { default as Je } from "./ap-list/index.vue.mjs";
77
+ import { default as Xe } from "./ap-button/ap-button.vue.mjs";
78
+ import { default as Ze } from "./ap-button/ap-action-button.vue.mjs";
79
+ import { ApTransformDataHelper as or } from "./utils/ap-trans-data/index.mjs";
80
+ import { default as rr } from "./business/ap-table-modal/index.mjs";
81
+ import { useTableModal as pr } from "./business/ap-table-modal/hooks/use-table-modal.mjs";
82
+ import { useTableSelectModal as mr } from "./business/ap-table-modal/hooks/use-table-select-modal.mjs";
83
+ import { ApAttachment as lr } from "./business/ap-attachment/index.mjs";
84
+ import { ApBatchAction as dr } from "./business/ap-batch-action/index.mjs";
85
+ import { ApBatchActionGroup as Ar } from "./business/ap-batch-action-group/index.mjs";
86
+ import { ApButtonGroup as ir } from "./business/ap-button-group/index.mjs";
87
+ import { ApCard as cr } from "./business/ap-card/index.mjs";
88
+ import { ApExpandAlert as Ir } from "./business/ap-expand-alert/index.mjs";
89
+ import { ApExportGroupActionType as br } from "./business/ap-export-group/interface.mjs";
90
+ import { ApExportGroup as Cr } from "./business/ap-export-group/index.mjs";
91
+ import { handleExportDownload as gr } from "./business/ap-export-group/handleExportDownload.mjs";
92
+ import { convertExportField as Gr } from "./business/ap-export-group/convertExportField.mjs";
93
+ import { ApImage as Er } from "./business/ap-image/index.mjs";
94
+ import { ApInputRadio as Nr } from "./business/ap-input-radio/index.mjs";
95
+ import { ApLabel as Mr, ApLabelGroup as Rr } from "./business/ap-label/index.mjs";
96
+ import { locales as kr } from "./business/ap-ladder/interface.mjs";
97
+ import { ApLadder as Br } from "./business/ap-ladder/index.mjs";
98
+ import { ApSelectLayout as Ur } from "./business/ap-select-layout/index.mjs";
99
+ import { ApStatus as Wr, ApStatusGroup as _r } from "./business/ap-status/index.mjs";
100
+ import { ApTitle as Hr } from "./business/ap-title/index.mjs";
101
+ import { usePageListApTable as jr } from "./business/hooks/usePageListApTable.mjs";
102
+ import { useTableRefresh as Jr } from "./business/hooks/useTableRefresh.mjs";
103
+ import { computedRecords as Xr, flattenColumns as Yr, formatDataIndex as Zr, formatNumber as $r } from "./business/ap-summary/utils.mjs";
104
+ import { ApSummary as et } from "./business/ap-summary/index.mjs";
105
+ import { ApNeedNameKeyDefault as tt } from "./business/ap-appendix/interface.mjs";
106
+ import { ApAppendix as at } from "./business/ap-appendix/index.mjs";
107
+ import { ApExtensionSelect as ft, ApGroupSearch as lt, ApPopoverSelect as xt } from "./business/ap-group-search/index.mjs";
108
108
  import { default as ut } from "./business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
109
- import { default as it } from "./business/batch-input-group/index.vue.mjs";
110
- import { default as ct } from "./business/batch-input-group/form-item.vue.mjs";
111
- import { ApSizeInput as It } from "./business/ap-size-input/index.mjs";
112
- import { useTablePaging as bt } from "./ap-table/hooks/use-table-paging.mjs";
113
- import { default as Ct } from "./editable-table/index.vue.mjs";
114
- import { default as gt } from "./editable-table/form-item.vue.mjs";
115
- import { default as Gt } from "./ap-descriptions/ap-descriptions.vue.mjs";
109
+ import { default as st } from "./business/batch-input-group/index.vue.mjs";
110
+ import { default as nt } from "./business/batch-input-group/form-item.vue.mjs";
111
+ import { ApSizeInput as Ft } from "./business/ap-size-input/index.mjs";
112
+ import { useTablePaging as Tt } from "./ap-table/hooks/use-table-paging.mjs";
113
+ import { default as Dt } from "./editable-table/index.vue.mjs";
114
+ import { default as St } from "./editable-table/form-item.vue.mjs";
115
+ import { default as ht } from "./ap-descriptions/ap-descriptions.vue.mjs";
116
+ import { ensureRangeValue as Pt } from "./scroll-bar/utils/index.mjs";
117
+ import { default as Lt } from "./scroll-bar/index.vue.mjs";
118
+ import { default as yt } from "./scroll-bar/internal.vue.mjs";
116
119
  export {
117
- u as APConfigProvider,
118
- $e as ApActionButton,
119
- ge as ApActionGroup,
120
- D as ApActionItem,
121
- Ce as ApActionItemDropdown,
122
- Ie as ApActionItemModal,
123
- be as ApActionItemPopconfirm,
124
- mt as ApAppendix,
125
- xr as ApAttachment,
126
- Ar as ApBatchAction,
127
- sr as ApBatchActionGroup,
128
- Ye as ApButton,
129
- nr as ApButtonGroup,
130
- Fr as ApCard,
131
- Gt as ApDescriptions,
132
- ze as ApDownLoadNeedNameKeyDefault,
133
- je as ApDownload,
134
- P as ApDrawer,
135
- Tr as ApExpandAlert,
136
- Sr as ApExportGroup,
137
- Dr as ApExportGroupActionType,
138
- lt as ApExtensionSelect,
139
- c as ApField,
140
- Qo as ApFieldCheckbox,
141
- Xo as ApFieldDate,
142
- me as ApFieldDateRange,
143
- Zo as ApFieldNumber,
144
- de as ApFieldPassword,
145
- oe as ApFieldRadio,
146
- ce as ApFieldRate,
147
- ie as ApFieldSegmented,
148
- le as ApFieldSelect,
120
+ s as APConfigProvider,
121
+ Ze as ApActionButton,
122
+ Se as ApActionGroup,
123
+ C as ApActionItem,
124
+ De as ApActionItemDropdown,
125
+ Fe as ApActionItemModal,
126
+ Te as ApActionItemPopconfirm,
127
+ at as ApAppendix,
128
+ lr as ApAttachment,
129
+ dr as ApBatchAction,
130
+ Ar as ApBatchActionGroup,
131
+ Xe as ApButton,
132
+ ir as ApButtonGroup,
133
+ cr as ApCard,
134
+ ht as ApDescriptions,
135
+ _e as ApDownLoadNeedNameKeyDefault,
136
+ He as ApDownload,
137
+ E as ApDrawer,
138
+ Ir as ApExpandAlert,
139
+ Cr as ApExportGroup,
140
+ br as ApExportGroupActionType,
141
+ ft as ApExtensionSelect,
142
+ F as ApField,
143
+ qo as ApFieldCheckbox,
144
+ Qo as ApFieldDate,
145
+ ae as ApFieldDateRange,
146
+ Yo as ApFieldNumber,
147
+ xe as ApFieldPassword,
148
+ $o as ApFieldRadio,
149
+ ne as ApFieldRate,
150
+ se as ApFieldSegmented,
151
+ fe as ApFieldSelect,
149
152
  ue as ApFieldSlider,
150
- re as ApFieldSwitch,
151
- qo as ApFieldText,
152
- pe as ApFieldTextArea,
153
- i as ApForm,
154
- Oo as ApFormControlRender,
153
+ ee as ApFieldSwitch,
154
+ Vo as ApFieldText,
155
+ te as ApFieldTextArea,
156
+ n as ApForm,
157
+ Uo as ApFormControlRender,
155
158
  Ro as ApFormDependency,
156
- Ko as ApFormDrawerForm,
157
- go as ApFormItem,
158
- ct as ApFormItemBatchInput,
159
- bo as ApFormItemCheckbox,
160
- xo as ApFormItemDate,
159
+ Bo as ApFormDrawerForm,
160
+ So as ApFormItem,
161
+ nt as ApFormItemBatchInput,
162
+ To as ApFormItemCheckbox,
163
+ lo as ApFormItemDate,
161
164
  uo as ApFormItemDateRange,
162
- Go as ApFormItemGroup,
163
- fo as ApFormItemNumber,
164
- io as ApFormItemRadio,
165
- _o as ApFormItemRender,
166
- co as ApFormItemSelect,
167
- Io as ApFormItemSwitch,
168
- to as ApFormItemText,
169
- ao as ApFormItemTextArea,
170
- Co as ApFormItemTextPassword,
171
- Eo as ApFormList,
172
- Mo as ApFormModalForm,
173
- Ho as ApFormProvider,
174
- No as ApFormSearchForm,
175
- vo as ApFormSet,
176
- xt as ApGroupSearch,
177
- Lr as ApImage,
178
- Be as ApInfoLayout,
179
- yr as ApInputRadio,
180
- wr as ApLabel,
165
+ ho as ApFormItemGroup,
166
+ mo as ApFormItemNumber,
167
+ so as ApFormItemRadio,
168
+ Wo as ApFormItemRender,
169
+ no as ApFormItemSelect,
170
+ Fo as ApFormItemSwitch,
171
+ ro as ApFormItemText,
172
+ po as ApFormItemTextArea,
173
+ Do as ApFormItemTextPassword,
174
+ Po as ApFormList,
175
+ yo as ApFormModalForm,
176
+ zo as ApFormProvider,
177
+ Lo as ApFormSearchForm,
178
+ ko as ApFormSet,
179
+ lt as ApGroupSearch,
180
+ Er as ApImage,
181
+ ve as ApInfoLayout,
182
+ Nr as ApInputRadio,
183
+ Mr as ApLabel,
181
184
  Rr as ApLabelGroup,
182
- Kr as ApLadder,
183
- Ve as ApList,
184
- h as ApModal,
185
- pt as ApNeedNameKeyDefault,
186
- dt as ApPopoverSelect,
187
- y as ApScrollBar,
188
- Or as ApSelectLayout,
189
- It as ApSizeInput,
190
- _r as ApStatus,
191
- zr as ApStatusGroup,
192
- rt as ApSummary,
193
- L as ApTable,
194
- tr as ApTableModal,
195
- we as ApTag,
196
- ke as ApTagGroup,
197
- jr as ApTitle,
198
- er as ApTransformDataHelper,
199
- We as ApUpload,
185
+ Br as ApLadder,
186
+ Je as ApList,
187
+ G as ApModal,
188
+ tt as ApNeedNameKeyDefault,
189
+ xt as ApPopoverSelect,
190
+ Ur as ApSelectLayout,
191
+ Ft as ApSizeInput,
192
+ Wr as ApStatus,
193
+ _r as ApStatusGroup,
194
+ et as ApSummary,
195
+ N as ApTable,
196
+ rr as ApTableModal,
197
+ Me as ApTag,
198
+ we as ApTagGroup,
199
+ Hr as ApTitle,
200
+ or as ApTransformDataHelper,
201
+ Oe as ApUpload,
200
202
  ut as ApUploadSingle,
201
- it as BatchInputGroup,
202
- S as CheckCard,
203
- Je as CheckCardGroup,
204
- oo as ConfigProvider,
205
- k as DEFAULT_NAMESPACE,
206
- v as DEFAULT_UIMODE,
207
- Ge as DictCode,
208
- Ct as EditableTable,
209
- gt as EditableTableFormItem,
210
- Ue as NeedNameKeyDefault,
211
- ye as WorkOrderModal,
212
- I as adminToken,
213
- T as aplusToken,
214
- z as buildLocaleContext,
215
- H as buildTranslator,
216
- Yr as computedRecords,
217
- B as configProviderContextKey,
218
- w as configProviderProps,
219
- Pr as convertExportField,
220
- Le as createWorkOrderModal,
221
- V as defaultNamespace,
222
- Zr as flattenColumns,
223
- $r as formatDataIndex,
224
- ot as formatNumber,
225
- eo as globalConfigCached,
226
- hr as handleExportDownload,
227
- U as keysOf,
228
- Pe as langMap,
229
- j as localeContextKey,
230
- vr as locales,
231
- X as namespaceContextKey,
232
- O as provideGlobalConfig,
233
- q as translate,
234
- Y as useGetDerivedNamespace,
235
- W as useGlobalConfig,
236
- J as useLocale,
237
- Z as useNamespace,
238
- Jr as usePageListApTable,
239
- ar as useTableModal,
240
- bt as useTablePaging,
241
- Vr as useTableRefresh,
242
- fr as useTableSelectModal
203
+ st as BatchInputGroup,
204
+ g as CheckCard,
205
+ je as CheckCardGroup,
206
+ $ as ConfigProvider,
207
+ w as DEFAULT_NAMESPACE,
208
+ k as DEFAULT_UIMODE,
209
+ he as DictCode,
210
+ Dt as EditableTable,
211
+ St as EditableTableFormItem,
212
+ yt as InternalScrollBar,
213
+ Ke as NeedNameKeyDefault,
214
+ Lt as ScrollBar,
215
+ Ne as WorkOrderModal,
216
+ T as adminToken,
217
+ b as aplusToken,
218
+ _ as buildLocaleContext,
219
+ z as buildTranslator,
220
+ Xr as computedRecords,
221
+ v as configProviderContextKey,
222
+ M as configProviderProps,
223
+ Gr as convertExportField,
224
+ Ee as createWorkOrderModal,
225
+ J as defaultNamespace,
226
+ Pt as ensureRangeValue,
227
+ Yr as flattenColumns,
228
+ Zr as formatDataIndex,
229
+ $r as formatNumber,
230
+ oo as globalConfigCached,
231
+ gr as handleExportDownload,
232
+ K as keysOf,
233
+ Ge as langMap,
234
+ H as localeContextKey,
235
+ kr as locales,
236
+ Q as namespaceContextKey,
237
+ U as provideGlobalConfig,
238
+ V as translate,
239
+ X as useGetDerivedNamespace,
240
+ O as useGlobalConfig,
241
+ j as useLocale,
242
+ Y as useNamespace,
243
+ jr as usePageListApTable,
244
+ pr as useTableModal,
245
+ Tt as useTablePaging,
246
+ Jr as useTableRefresh,
247
+ mr as useTableSelectModal
243
248
  };
@@ -139,6 +139,9 @@ const e = {
139
139
  },
140
140
  batchInputGroup: {
141
141
  popoverInputPlaceholder: "A maximum of 200 entries can be entered in batches, separated by newlines"
142
+ },
143
+ apSummary: {
144
+ total: "Total"
142
145
  }
143
146
  }
144
147
  };
@@ -148,6 +148,9 @@ const e = {
148
148
  },
149
149
  batchInputGroup: {
150
150
  popoverInputPlaceholder: "支持批量输入,可用换行符分隔,最多输入200条"
151
+ },
152
+ apSummary: {
153
+ total: "合计"
151
154
  }
152
155
  }
153
156
  };
@@ -77,7 +77,7 @@ const e = {
77
77
  useTableSelectModal: ["business", "ap-table-modal"],
78
78
  ApTitle: ["business", "ap-title"],
79
79
  ApSummary: ["business", "ap-summary"],
80
- ApScrollBar: ["ap-scroll-bar"],
80
+ ScrollBar: ["scroll-bar"],
81
81
  ApAppendix: ["business", "ap-appendix"],
82
82
  ApGroupSearch: ["business", "ap-group-search"],
83
83
  ApPopoverSelect: ["business", "ap-group-search", "popover-select"],
@@ -0,0 +1,30 @@
1
+ import { Ref } from 'vue';
2
+ /**
3
+ * 处理点击滑轨滚动
4
+ * @param param0
5
+ * @returns
6
+ */
7
+ export declare function useTrack({ currentScroll, trackSpeed, track, bar, tracking, type, barLength, disabled, onDown, onMove, onUp, onScroll }: {
8
+ currentScroll: Ref<number>;
9
+ type: Ref<'vertical' | 'horizontal'>;
10
+ trackSpeed?: Ref<number>;
11
+ track?: Ref<HTMLElement | null | undefined>;
12
+ bar?: Ref<HTMLElement | null | undefined>;
13
+ tracking?: Ref<boolean>;
14
+ barLength?: Ref<number>;
15
+ disabled?: Ref<boolean>;
16
+ onDown?: (scroll: number) => void;
17
+ onMove?: (scroll: number) => void;
18
+ onUp?: (scroll: number) => void;
19
+ onScroll?: (scroll: number) => void;
20
+ }): {
21
+ currentScroll: Ref<number, number>;
22
+ trackSpeed: Ref<number, number>;
23
+ track: Ref<HTMLElement | null | undefined, HTMLElement | null | undefined>;
24
+ bar: Ref<HTMLElement | null | undefined, HTMLElement | null | undefined>;
25
+ tracking: Ref<boolean, boolean>;
26
+ type: Ref<"horizontal" | "vertical", "horizontal" | "vertical">;
27
+ barLength: Ref<number, number>;
28
+ disabled: Ref<boolean, boolean>;
29
+ handleMouseDown: (event: PointerEvent) => false | undefined;
30
+ };
@@ -0,0 +1,76 @@
1
+ import { ref as n } from "vue";
2
+ import { ensureRangeValue as w } from "../utils/index.mjs";
3
+ const h = () => {
4
+ };
5
+ function U({
6
+ currentScroll: e = n(0),
7
+ trackSpeed: f = n(2),
8
+ track: p = n(null),
9
+ bar: o = n(null),
10
+ tracking: m = n(!1),
11
+ type: r = n("vertical"),
12
+ barLength: i = n(35),
13
+ disabled: D = n(!1),
14
+ onDown: A = h,
15
+ onMove: B = h,
16
+ onUp: C = h,
17
+ onScroll: P = h
18
+ }) {
19
+ let d, s, v, u, M = !0, c = !1;
20
+ function x() {
21
+ if (!m.value) return;
22
+ c = !0;
23
+ const t = q(u, e.value);
24
+ let a = !1;
25
+ if (M) {
26
+ if (e.value < u) {
27
+ const l = e.value + t * f.value;
28
+ e.value = Math.min(l, u), a = !0;
29
+ }
30
+ } else if (e.value > u) {
31
+ const l = e.value - t * f.value;
32
+ e.value = Math.max(l, u), a = !0;
33
+ }
34
+ a && P(e.value), (m.value && M ? e.value < u : e.value > u) ? requestAnimationFrame(x) : c = !1;
35
+ }
36
+ function X(t) {
37
+ if (D.value || t.button !== 0 || (t.stopPropagation(), t.preventDefault(), !p.value || !o.value)) return !1;
38
+ document.addEventListener("pointermove", E), document.addEventListener("pointerup", g);
39
+ const a = p.value.getBoundingClientRect(), l = o.value.getBoundingClientRect();
40
+ let R;
41
+ r.value === "vertical" ? (d = a.height, s = l.top - a.top, v = l.top, R = s + t.clientY - v) : (d = a.width, s = l.left - a.left, v = l.left, R = s + t.clientX - v), M = R / d * 100 > i.value;
42
+ const Y = (R / d * 100 - (M ? i.value : 0)) / (100 - i.value);
43
+ u = w(Y * 100), m.value = !0, A(e.value), x();
44
+ }
45
+ function E(t) {
46
+ t.stopPropagation(), t.preventDefault(), B(e.value);
47
+ let a;
48
+ r.value === "vertical" ? a = s + t.clientY - v : a = s + t.clientX - v;
49
+ const l = (a / d * 100 - (M ? i.value : 0)) / (100 - i.value);
50
+ u = w(l * 100), !c && x();
51
+ }
52
+ function g(t) {
53
+ t.preventDefault(), document.removeEventListener("pointermove", E), document.removeEventListener("pointerup", g), m.value = !1, C(e.value);
54
+ }
55
+ return {
56
+ currentScroll: e,
57
+ trackSpeed: f,
58
+ track: p,
59
+ bar: o,
60
+ tracking: m,
61
+ type: r,
62
+ barLength: i,
63
+ disabled: D,
64
+ handleMouseDown: X
65
+ };
66
+ }
67
+ function q(e, f) {
68
+ const p = Math.abs(e - f);
69
+ for (let o = 0; o < 5; ++o)
70
+ if (p < (o + 1) * 20)
71
+ return 1 + 0.25 * o;
72
+ return 2;
73
+ }
74
+ export {
75
+ U as useTrack
76
+ };
@@ -0,0 +1,5 @@
1
+ import { default as ScrollBar } from './index.vue';
2
+ import { default as InternalScrollBar } from './internal.vue';
3
+ export { ScrollBar, InternalScrollBar };
4
+ export { ensureRangeValue } from './utils';
5
+ export * from './interface';
@@ -0,0 +1,7 @@
1
+ import "./index.vue2.mjs";
2
+ import "./internal.vue2.mjs";
3
+ import { ensureRangeValue as t } from "./utils/index.mjs";
4
+ import "./interface.mjs";
5
+ export {
6
+ t as ensureRangeValue
7
+ };