@aplus-frontend/ui 0.6.0-beta.4 → 0.6.0-beta.6

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 (174) hide show
  1. package/es/src/ap-action/group/index.vue.d.ts +1 -1
  2. package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  3. package/es/src/ap-field/date/helper.mjs +12 -12
  4. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  5. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  6. package/es/src/ap-field/number/index.vue.d.ts +1 -1
  7. package/es/src/ap-field/rate/index.vue.d.ts +1 -1
  8. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  9. package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
  10. package/es/src/ap-form/item/index.vue.d.ts +1 -1
  11. package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
  12. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  13. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  14. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  15. package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  16. package/es/src/ap-form/render/item.vue.d.ts +1 -1
  17. package/es/src/ap-grid/index.vue.mjs +37 -35
  18. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  19. package/es/src/ap-table/ap-table.vue2.mjs +20 -18
  20. package/es/src/ap-table/constants.d.ts +30 -30
  21. package/es/src/ap-table/utils.d.ts +14 -14
  22. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  23. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +25 -25
  24. package/es/src/business/ap-expand-alert/index.d.ts +4 -4
  25. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  26. package/es/src/business/ap-label/index.d.ts +3 -3
  27. package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
  28. package/es/src/business/ap-ladder/index.d.ts +3 -3
  29. package/es/src/business/ap-view/ap-view.vue2.mjs +60 -58
  30. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
  31. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  32. package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  33. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  34. package/es/src/check-card/group.vue.d.ts +1 -1
  35. package/es/src/config-provider/config-provider-props.d.ts +0 -5
  36. package/es/src/config-provider/config-provider-props.mjs +0 -4
  37. package/es/src/config-provider/config-provider.d.ts +0 -138
  38. package/es/src/config-provider/config-provider.mjs +21 -26
  39. package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
  40. package/es/src/config-provider/index.d.ts +0 -652
  41. package/lib/src/ap-action/group/index.vue.d.ts +1 -1
  42. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  43. package/lib/src/ap-field/date/helper.js +1 -1
  44. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  45. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  46. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  47. package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
  48. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  49. package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
  50. package/lib/src/ap-form/item/index.vue.d.ts +1 -1
  51. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
  52. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  53. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  54. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  55. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  56. package/lib/src/ap-form/render/item.vue.d.ts +1 -1
  57. package/lib/src/ap-grid/index.vue.js +1 -1
  58. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  59. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  60. package/lib/src/ap-table/constants.d.ts +30 -30
  61. package/lib/src/ap-table/utils.d.ts +14 -14
  62. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  63. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  64. package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
  65. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  66. package/lib/src/business/ap-label/index.d.ts +3 -3
  67. package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
  68. package/lib/src/business/ap-ladder/index.d.ts +3 -3
  69. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  70. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  71. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  72. package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  73. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  74. package/lib/src/check-card/group.vue.d.ts +1 -1
  75. package/lib/src/config-provider/config-provider-props.d.ts +0 -5
  76. package/lib/src/config-provider/config-provider-props.js +1 -1
  77. package/lib/src/config-provider/config-provider.d.ts +0 -138
  78. package/lib/src/config-provider/config-provider.js +1 -1
  79. package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
  80. package/lib/src/config-provider/index.d.ts +0 -652
  81. package/package.json +3 -3
  82. package/theme/antd-global-overwrite/admin/index.css +3 -0
  83. package/theme/antd-global-overwrite/admin/index.less +1 -0
  84. package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
  85. package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
  86. package/theme/antd-global-overwrite/aplus/index.css +3 -0
  87. package/theme/antd-global-overwrite/aplus/index.less +1 -0
  88. package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
  89. package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
  90. package/theme/ap-action/item-dropdown.css +17 -0
  91. package/theme/ap-action/item.css +17 -0
  92. package/theme/ap-appendix/ap-appendix.css +17 -0
  93. package/theme/ap-attachment/ap-attachment.css +17 -0
  94. package/theme/ap-batch-action/ap-batch-action.css +17 -0
  95. package/theme/ap-button/ap-button.css +17 -0
  96. package/theme/ap-card/ap-card.css +17 -0
  97. package/theme/ap-descriptions/ap-descriptions.css +17 -0
  98. package/theme/ap-download/ap-download.css +17 -0
  99. package/theme/ap-expand-alert/ap-expand-alert.css +17 -0
  100. package/theme/ap-field/checkbox.css +17 -0
  101. package/theme/ap-field/index.css +17 -0
  102. package/theme/ap-field/number.css +17 -0
  103. package/theme/ap-field/radio.css +17 -0
  104. package/theme/ap-field/text-area.css +17 -0
  105. package/theme/ap-form/ap-form-item-group.css +17 -0
  106. package/theme/ap-form/ap-form-item.css +22 -2
  107. package/theme/ap-form/ap-form-item.less +9 -3
  108. package/theme/ap-form/drawer-form.css +17 -0
  109. package/theme/ap-form/index.css +22 -2
  110. package/theme/ap-form/item-text-group.css +17 -0
  111. package/theme/ap-form/item-text.css +17 -0
  112. package/theme/ap-form/modal-form.css +17 -0
  113. package/theme/ap-form/search-form-sorter.css +17 -0
  114. package/theme/ap-form/search-form.css +22 -2
  115. package/theme/ap-grid/editable.css +17 -0
  116. package/theme/ap-grid/index.css +39 -2
  117. package/theme/ap-grid/index.less +1 -0
  118. package/theme/ap-group-search/ap-extension-select.css +17 -0
  119. package/theme/ap-group-search/ap-group-search.css +17 -0
  120. package/theme/ap-group-search/ap-popover-select.css +17 -0
  121. package/theme/ap-image/ap-image.css +17 -0
  122. package/theme/ap-input-radio/ap-input-radio.css +17 -0
  123. package/theme/ap-label/ap-label.css +17 -0
  124. package/theme/ap-ladder/ap-ladder.css +17 -0
  125. package/theme/ap-layout/ap-info-layout.css +17 -0
  126. package/theme/ap-list/index.css +17 -0
  127. package/theme/ap-product-info/ap-product-info.css +17 -0
  128. package/theme/ap-select-layout/ap-select-layout.css +17 -0
  129. package/theme/ap-size-input/ap-size-input.css +17 -0
  130. package/theme/ap-status/ap-status.css +17 -0
  131. package/theme/ap-summary/index.css +17 -0
  132. package/theme/ap-table/ap-table-index.css +17 -0
  133. package/theme/ap-table/ap-table-paragraph-ellipsis.css +17 -0
  134. package/theme/ap-table/ap-table.css +39 -2
  135. package/theme/ap-table/ap-table.less +1 -0
  136. package/theme/ap-table/setting/index.css +17 -0
  137. package/theme/ap-table/setting/modal.css +17 -0
  138. package/theme/ap-table/setting/select-group.css +17 -0
  139. package/theme/ap-table/setting/sortable-item-meta.css +17 -0
  140. package/theme/ap-table/setting/sortable-item.css +17 -0
  141. package/theme/ap-table/setting/sorter.css +17 -0
  142. package/theme/ap-table-modal/index.css +39 -2
  143. package/theme/ap-tag/ap-tag-group.css +17 -0
  144. package/theme/ap-tag/ap-tag.css +17 -0
  145. package/theme/ap-title/ap-title.css +17 -0
  146. package/theme/ap-upload/index.css +17 -0
  147. package/theme/ap-upload/multiple-file.css +17 -0
  148. package/theme/ap-upload/picture.css +17 -0
  149. package/theme/ap-upload/single-file.css +17 -0
  150. package/theme/ap-upload/upload.css +17 -0
  151. package/theme/ap-upload-single/index.css +17 -0
  152. package/theme/ap-view/ap-view.css +17 -0
  153. package/theme/batch-input-group/index.css +17 -0
  154. package/theme/batch-input-group/popover-input.css +17 -0
  155. package/theme/check-card/index.css +17 -0
  156. package/theme/editable-table/index.css +22 -2
  157. package/theme/full-screen/index.css +17 -0
  158. package/theme/index.css +148 -2
  159. package/theme/index.less +1 -0
  160. package/theme/mask/index.css +17 -0
  161. package/theme/mixins/mixins.css +17 -0
  162. package/theme/mixins/mixins.less +28 -0
  163. package/theme/scroll-bar/index.css +17 -0
  164. package/theme/scroll-view/index.css +17 -0
  165. package/theme/splitter/index.css +17 -0
  166. package/theme/text/group.css +17 -0
  167. package/theme/text/index.css +17 -0
  168. package/theme/ui-mode.css +92 -0
  169. package/theme/ui-mode.less +93 -0
  170. package/theme/work-order-modal/index.css +17 -0
  171. package/es/src/config-provider/css-var.d.ts +0 -139
  172. package/es/src/config-provider/css-var.mjs +0 -278
  173. package/lib/src/config-provider/css-var.d.ts +0 -139
  174. package/lib/src/config-provider/css-var.js +0 -1
@@ -1,6 +1,5 @@
1
1
  import { Ref, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { ConfigProviderProps } from './config-provider-props';
3
- import { CssVarType } from './css-var';
4
3
  import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
5
4
  import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
6
5
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
@@ -12,7 +11,6 @@ import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
12
11
  import { LocaleType } from '../locale';
13
12
  import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
14
13
  import { ViewCacheOption } from '..';
15
- import { RecursivePartial } from '../type';
16
14
  export declare const globalConfigCached: Ref<ConfigProviderProps>;
17
15
  export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
18
16
  iconPrefixCls: StringConstructor;
@@ -156,10 +154,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
156
154
  type: PropType<downloadCenterTriggerConfig>;
157
155
  default: () => {};
158
156
  };
159
- cssVar: {
160
- type: PropType<CssVarType>;
161
- default: () => {};
162
- };
163
157
  exportField: {
164
158
  type: PropType<ExportField>;
165
159
  default: boolean;
@@ -313,10 +307,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
313
307
  type: PropType<downloadCenterTriggerConfig>;
314
308
  default: () => {};
315
309
  };
316
- cssVar: {
317
- type: PropType<CssVarType>;
318
- default: () => {};
319
- };
320
310
  exportField: {
321
311
  type: PropType<ExportField>;
322
312
  default: boolean;
@@ -365,134 +355,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
365
355
  apDescriptions: ApDescriptionsConfig;
366
356
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
367
357
  downloadCenterTriggerConfig: downloadCenterTriggerConfig;
368
- cssVar: RecursivePartial<{
369
- 'ap-form': {
370
- bordered: {
371
- 'border-color': {
372
- base: string;
373
- hover: string;
374
- active: string;
375
- };
376
- 'shadow-color': string;
377
- };
378
- };
379
- 'ap-action': {
380
- color: {
381
- primary: {
382
- base: string;
383
- hover: string;
384
- };
385
- success: string;
386
- error: string;
387
- warn: string;
388
- };
389
- };
390
- 'check-card': {
391
- outline: {
392
- color: string;
393
- };
394
- hover: {
395
- outline: {
396
- color: string;
397
- };
398
- };
399
- checked: {
400
- outline: {
401
- color: string;
402
- };
403
- bg: string;
404
- };
405
- };
406
- 'ap-table': {
407
- header: {
408
- bg: string;
409
- };
410
- pagination: {
411
- total: {
412
- color: string;
413
- count: {
414
- color: string;
415
- };
416
- };
417
- };
418
- setting: {
419
- button: {
420
- color: string;
421
- };
422
- };
423
- };
424
- 'ap-batch-action': {
425
- color: {
426
- font: string;
427
- active: string;
428
- border: string;
429
- };
430
- };
431
- basic: {
432
- color: {
433
- primary: string;
434
- };
435
- };
436
- 'ap-descriptions': {
437
- item: {
438
- 'padding-bottom': string;
439
- 'label-width': string;
440
- };
441
- 'last-row-item': {
442
- 'padding-bottom': string;
443
- };
444
- };
445
- 'ap-appendix': {
446
- area: {
447
- color: {
448
- border: string;
449
- font: string;
450
- 'font-hover': string;
451
- 'font-disabled': string;
452
- icon: string;
453
- };
454
- };
455
- };
456
- 'ap-upload-single': {
457
- color: {
458
- main: string;
459
- sub: string;
460
- border: string;
461
- primary: string;
462
- };
463
- };
464
- 'batch-input-group': {
465
- trigger: {
466
- color: string;
467
- 'color-disabled': string;
468
- };
469
- };
470
- 'ap-text': {
471
- label: {
472
- color: string;
473
- };
474
- content: {
475
- color: {
476
- major: string;
477
- minor: string;
478
- };
479
- };
480
- };
481
- 'ap-view': {
482
- icon: {
483
- color: string;
484
- };
485
- bg: {
486
- color: string;
487
- };
488
- message: {
489
- color: string;
490
- };
491
- border: {
492
- color: string;
493
- };
494
- };
495
- }>;
496
358
  exportField: ExportField;
497
359
  viewCacheOption: ViewCacheOption;
498
360
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -1,24 +1,23 @@
1
- import { isVNode as v, ref as P, defineComponent as V, computed as i, unref as r, watch as u, createVNode as M, renderSlot as b } from "vue";
2
- import { ConfigProvider as w } from "@aplus-frontend/antdv";
3
- import { useGlobalConfig as d, provideGlobalConfig as A } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as D } from "./config-provider-props.mjs";
5
- import { mergeAntdProviderConfigWithCache as N, mergeAntdProvideConfig as U } from "../utils/config-provider-preset.mjs";
6
- import { generateCssVar as h, aplusCssVar as S, adminCssVar as T, setCSSVariables as y } from "./css-var.mjs";
7
- import { DEFAULT_NAMESPACE as E, DEFAULT_UIMODE as O } from "./constants.mjs";
8
- function F(e) {
9
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !v(e);
1
+ import { isVNode as p, ref as C, defineComponent as s, computed as i, unref as t, watch as c, createVNode as v, renderSlot as M } from "vue";
2
+ import { ConfigProvider as P } from "@aplus-frontend/antdv";
3
+ import { useGlobalConfig as l, provideGlobalConfig as U } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as w } from "./config-provider-props.mjs";
5
+ import { mergeAntdProviderConfigWithCache as A, mergeAntdProvideConfig as D } from "../utils/config-provider-preset.mjs";
6
+ import { DEFAULT_NAMESPACE as N, DEFAULT_UIMODE as b } from "./constants.mjs";
7
+ function h(e) {
8
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !p(e);
10
9
  }
11
- const n = P({}), W = /* @__PURE__ */ V({
10
+ const n = C({}), S = /* @__PURE__ */ s({
12
11
  name: "AplusConfigProvider",
13
- props: D(),
12
+ props: w(),
14
13
  setup(e, {
15
14
  slots: f
16
15
  }) {
17
- const a = d("namespace"), c = d("uiMode"), m = i(() => e.namespace ? e.namespace : r(a) ? r(a) : E), l = i(() => e.uiMode ? e.uiMode : r(c) ? r(c) : O), s = i(() => ({
18
- namespace: r(m),
16
+ const a = l("namespace"), d = l("uiMode"), m = i(() => e.namespace ? e.namespace : t(a) ? t(a) : N), u = i(() => e.uiMode ? e.uiMode : t(d) ? t(d) : b), g = i(() => ({
17
+ namespace: t(m),
19
18
  aplusLocale: e.aplusLocale,
20
19
  api: e.api,
21
- uiMode: r(l),
20
+ uiMode: t(u),
22
21
  apUpload: e.apUpload,
23
22
  apDescriptions: e.apDescriptions,
24
23
  valueTypeMap: e.valueTypeMap,
@@ -26,24 +25,20 @@ const n = P({}), W = /* @__PURE__ */ V({
26
25
  exportField: e.exportField,
27
26
  scrollYDomName: e.scrollYDomName,
28
27
  viewCacheOption: e.viewCacheOption
29
- })), t = A(s);
30
- return u(() => e, (o) => {
31
- n.value = N(U(o), n.value);
28
+ })), r = U(g);
29
+ return c(() => e, (o) => {
30
+ n.value = A(D(o), n.value);
32
31
  }, {
33
32
  deep: !0,
34
33
  immediate: !0
35
- }), typeof window < "u" && u(() => [r(l), e.cssVar], ([o, C]) => {
36
- const g = h(C), p = {
37
- ...o === "aplus" ? S : T,
38
- ...g
39
- };
40
- y(p);
34
+ }), typeof window < "u" && c(() => t(u), (o) => {
35
+ document.documentElement.dataset.aplusUiMode = o;
41
36
  }, {
42
37
  immediate: !0
43
38
  }), () => {
44
39
  let o;
45
- return M(w, n.value, F(o = b(f, "default", {
46
- config: t == null ? void 0 : t.value
40
+ return v(P, n.value, h(o = M(f, "default", {
41
+ config: r == null ? void 0 : r.value
47
42
  })) ? o : {
48
43
  default: () => [o]
49
44
  });
@@ -51,6 +46,6 @@ const n = P({}), W = /* @__PURE__ */ V({
51
46
  }
52
47
  });
53
48
  export {
54
- W as ConfigProvider,
49
+ S as ConfigProvider,
55
50
  n as globalConfigCached
56
51
  };
@@ -11,7 +11,6 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
11
11
  import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
12
12
  import { LocaleType } from '../../locale';
13
13
  import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from '..';
14
- import { CssVarType } from '../css-var';
15
14
  import { ViewCacheOption } from '../..';
16
15
  export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
17
16
  export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
@@ -158,10 +157,6 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
158
157
  type: PropType<downloadCenterTriggerConfig>;
159
158
  default: () => {};
160
159
  };
161
- cssVar: {
162
- type: PropType<CssVarType>;
163
- default: () => {};
164
- };
165
160
  exportField: {
166
161
  type: PropType<ExportField>;
167
162
  default: boolean;