@aplus-frontend/ui 0.5.17 → 0.5.19

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 (79) hide show
  1. package/es/src/ap-table/ap-table.vue2.mjs +30 -30
  2. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +1 -1
  3. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +108 -107
  4. package/es/src/ap-table/interface.d.ts +8 -0
  5. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +4 -20
  6. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +64 -266
  7. package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
  8. package/es/src/business/ap-ladder/components/SimpleMode.vue.mjs +4 -0
  9. package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +122 -0
  10. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
  11. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.mjs +4 -0
  12. package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +209 -0
  13. package/es/src/business/ap-ladder/index.d.ts +5 -38
  14. package/es/src/business/ap-ladder/interface.d.ts +42 -16
  15. package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
  16. package/es/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
  17. package/es/src/business/ap-ladder/utils.d.ts +2 -0
  18. package/es/src/business/ap-ladder/utils.mjs +5 -0
  19. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +1 -1
  20. package/es/src/business/ap-table-modal/interface.d.ts +1 -1
  21. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +1 -1
  22. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +8 -9
  23. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +14 -14
  24. package/es/src/mask/style/css.d.ts +0 -0
  25. package/es/src/mask/style/css.js +1 -0
  26. package/es/src/mask/style/index.d.ts +0 -0
  27. package/es/src/mask/style/index.js +1 -0
  28. package/es/src/path-map.mjs +3 -1
  29. package/es/src/text/index.vue.mjs +46 -41
  30. package/es/src/text/interface.d.ts +6 -0
  31. package/es/src/text/style/css.d.ts +0 -0
  32. package/es/src/text/style/css.js +2 -0
  33. package/es/src/text/style/index.d.ts +0 -0
  34. package/es/src/text/style/index.js +2 -0
  35. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  36. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  37. package/lib/src/ap-table/interface.d.ts +8 -0
  38. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +4 -20
  39. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
  40. package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
  41. package/lib/src/business/ap-ladder/components/SimpleMode.vue.js +1 -0
  42. package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -0
  43. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
  44. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.js +1 -0
  45. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -0
  46. package/lib/src/business/ap-ladder/index.d.ts +5 -38
  47. package/lib/src/business/ap-ladder/interface.d.ts +42 -16
  48. package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
  49. package/lib/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
  50. package/lib/src/business/ap-ladder/utils.d.ts +2 -0
  51. package/lib/src/business/ap-ladder/utils.js +1 -0
  52. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  53. package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
  54. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  55. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  56. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  57. package/lib/src/mask/style/css.cjs +1 -0
  58. package/lib/src/mask/style/css.d.ts +0 -0
  59. package/lib/src/mask/style/index.cjs +1 -0
  60. package/lib/src/mask/style/index.d.ts +0 -0
  61. package/lib/src/path-map.js +1 -1
  62. package/lib/src/text/index.vue.js +1 -1
  63. package/lib/src/text/interface.d.ts +6 -0
  64. package/lib/src/text/style/css.cjs +2 -0
  65. package/lib/src/text/style/css.d.ts +0 -0
  66. package/lib/src/text/style/index.cjs +2 -0
  67. package/lib/src/text/style/index.d.ts +0 -0
  68. package/package.json +1 -1
  69. package/theme/ap-ladder/ap-ladder.css +68 -1
  70. package/theme/ap-ladder/ap-ladder.less +72 -2
  71. package/theme/index.css +68 -1
  72. package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
  73. package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +0 -4
  74. package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +0 -35
  75. package/es/src/business/ap-ladder/useWatchEllipsis.mjs +0 -35
  76. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
  77. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +0 -1
  78. package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +0 -1
  79. package/lib/src/business/ap-ladder/useWatchEllipsis.js +0 -1
@@ -6,6 +6,71 @@
6
6
  /** Aplus端样式 */
7
7
  /** Admin端样式 */
8
8
  }
9
+ .aplus-ap-ladder__value-group-item {
10
+ display: flex;
11
+ overflow: hidden;
12
+ text-overflow: ellipsis;
13
+ white-space: nowrap;
14
+ min-width: 0;
15
+ }
16
+ .aplus-ap-ladder__value-group-label {
17
+ display: inline-block;
18
+ color: #8896B0;
19
+ word-break: break-all;
20
+ min-width: 50px;
21
+ }
22
+ .aplus-ap-ladder__value-group-value {
23
+ color: #182948;
24
+ word-break: break-all;
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+ }
29
+ .aplus-ap-ladder__value-group-link {
30
+ cursor: pointer !important;
31
+ color: #0070ff !important;
32
+ text-decoration: none !important;
33
+ }
34
+ .aplus-ap-ladder-base {
35
+ display: flex;
36
+ }
37
+ .aplus-ap-ladder--vertical {
38
+ flex-direction: column;
39
+ overflow: hidden;
40
+ text-overflow: ellipsis;
41
+ white-space: nowrap;
42
+ }
43
+ .aplus-ap-ladder--vertical > * {
44
+ overflow: hidden;
45
+ text-overflow: ellipsis;
46
+ white-space: nowrap;
47
+ min-width: 0;
48
+ }
49
+ .aplus-ap-ladder--horizontal {
50
+ flex-direction: row;
51
+ overflow: hidden;
52
+ text-overflow: ellipsis;
53
+ white-space: nowrap;
54
+ }
55
+ .aplus-ap-ladder--horizontal > * {
56
+ overflow: hidden;
57
+ text-overflow: ellipsis;
58
+ white-space: nowrap;
59
+ min-width: 0;
60
+ }
61
+ .aplus-ap-ladder__tooltip-item {
62
+ display: flex;
63
+ }
64
+ .aplus-ap-ladder__tooltip-label {
65
+ min-width: 50px;
66
+ word-break: break-all;
67
+ }
68
+ .aplus-ap-ladder__tooltip-value {
69
+ word-break: break-all;
70
+ overflow: hidden;
71
+ text-overflow: ellipsis;
72
+ white-space: nowrap;
73
+ }
9
74
  .aplus-ap-ladder__cross-bar {
10
75
  display: flex;
11
76
  align-items: center;
@@ -41,9 +106,11 @@
41
106
  .aplus-ap-ladder__unit {
42
107
  color: #182948;
43
108
  }
44
- .aplus-ap-ladder__link {
109
+ .aplus-ap-ladder__link,
110
+ .aplus-ap-ladder__link a {
45
111
  cursor: pointer;
46
112
  color: #0070ff;
113
+ text-decoration: none;
47
114
  }
48
115
  .aplus-ap-ladder--admin .aplus-ap-ladder__major {
49
116
  color: #333333;
@@ -6,13 +6,81 @@
6
6
  position: relative;
7
7
  width: inherit;
8
8
  font-size: 14px;
9
+
10
+
11
+ &__value-group-item{
12
+ display: flex;
13
+ overflow: hidden;
14
+ text-overflow: ellipsis;
15
+ white-space: nowrap;
16
+ min-width: 0; // Import
17
+ }
18
+
19
+ &__value-group-label{
20
+ display: inline-block;
21
+ color: #8896B0;
22
+ word-break: break-all;
23
+ min-width: 50px;
24
+ }
25
+ &__value-group-value{
26
+ color: #182948;
27
+ word-break: break-all;
28
+ overflow: hidden;
29
+ text-overflow: ellipsis;
30
+ white-space: nowrap;
31
+ }
32
+ &__value-group-link{
33
+ cursor: pointer !important;
34
+ color: @aplus-primary-color !important;
35
+ text-decoration: none !important;
36
+ }
37
+
38
+ &-base{
39
+ display: flex;
40
+ }
41
+ &--vertical{
42
+ flex-direction: column;
43
+ overflow: hidden;
44
+ text-overflow: ellipsis;
45
+ white-space: nowrap;
46
+ > * {
47
+ overflow: hidden;
48
+ text-overflow: ellipsis;
49
+ white-space: nowrap;
50
+ min-width: 0; // Important for flex children to be able to shrink below content size
51
+ }
52
+ }
53
+ &--horizontal{
54
+ flex-direction: row;
55
+ overflow: hidden;
56
+ text-overflow: ellipsis;
57
+ white-space: nowrap;
58
+ > * {
59
+ overflow: hidden;
60
+ text-overflow: ellipsis;
61
+ white-space: nowrap;
62
+ min-width: 0; // Important for flex children to be able to shrink below content size
63
+ }
64
+ }
65
+ &__tooltip-item{
66
+ display: flex;
67
+ }
68
+ &__tooltip-label{
69
+ min-width: 50px;
70
+ word-break: break-all;
71
+ }
72
+ &__tooltip-value{
73
+ word-break: break-all;
74
+ overflow: hidden;
75
+ text-overflow: ellipsis;
76
+ white-space: nowrap;
77
+ }
9
78
  &__cross-bar {
10
79
  display: flex;
11
80
  align-items: center;
12
81
  }
13
82
  /** 自动溢出省略 */
14
83
  &__ellipsis {
15
- // min-width: 120px;
16
84
  overflow: hidden;
17
85
  text-overflow: ellipsis;
18
86
  white-space: nowrap;
@@ -45,9 +113,11 @@
45
113
  &__unit {
46
114
  color: #182948;
47
115
  }
48
- &__link {
116
+
117
+ &__link,&__link a{
49
118
  cursor: pointer;
50
119
  color: @aplus-primary-color;
120
+ text-decoration: none;
51
121
  }
52
122
  /** Admin端样式 */
53
123
  &--admin {
package/theme/index.css CHANGED
@@ -594,6 +594,71 @@
594
594
  /** Aplus端样式 */
595
595
  /** Admin端样式 */
596
596
  }
597
+ .aplus-ap-ladder__value-group-item {
598
+ display: flex;
599
+ overflow: hidden;
600
+ text-overflow: ellipsis;
601
+ white-space: nowrap;
602
+ min-width: 0;
603
+ }
604
+ .aplus-ap-ladder__value-group-label {
605
+ display: inline-block;
606
+ color: #8896B0;
607
+ word-break: break-all;
608
+ min-width: 50px;
609
+ }
610
+ .aplus-ap-ladder__value-group-value {
611
+ color: #182948;
612
+ word-break: break-all;
613
+ overflow: hidden;
614
+ text-overflow: ellipsis;
615
+ white-space: nowrap;
616
+ }
617
+ .aplus-ap-ladder__value-group-link {
618
+ cursor: pointer !important;
619
+ color: #0070ff !important;
620
+ text-decoration: none !important;
621
+ }
622
+ .aplus-ap-ladder-base {
623
+ display: flex;
624
+ }
625
+ .aplus-ap-ladder--vertical {
626
+ flex-direction: column;
627
+ overflow: hidden;
628
+ text-overflow: ellipsis;
629
+ white-space: nowrap;
630
+ }
631
+ .aplus-ap-ladder--vertical > * {
632
+ overflow: hidden;
633
+ text-overflow: ellipsis;
634
+ white-space: nowrap;
635
+ min-width: 0;
636
+ }
637
+ .aplus-ap-ladder--horizontal {
638
+ flex-direction: row;
639
+ overflow: hidden;
640
+ text-overflow: ellipsis;
641
+ white-space: nowrap;
642
+ }
643
+ .aplus-ap-ladder--horizontal > * {
644
+ overflow: hidden;
645
+ text-overflow: ellipsis;
646
+ white-space: nowrap;
647
+ min-width: 0;
648
+ }
649
+ .aplus-ap-ladder__tooltip-item {
650
+ display: flex;
651
+ }
652
+ .aplus-ap-ladder__tooltip-label {
653
+ min-width: 50px;
654
+ word-break: break-all;
655
+ }
656
+ .aplus-ap-ladder__tooltip-value {
657
+ word-break: break-all;
658
+ overflow: hidden;
659
+ text-overflow: ellipsis;
660
+ white-space: nowrap;
661
+ }
597
662
  .aplus-ap-ladder__cross-bar {
598
663
  display: flex;
599
664
  align-items: center;
@@ -629,9 +694,11 @@
629
694
  .aplus-ap-ladder__unit {
630
695
  color: #182948;
631
696
  }
632
- .aplus-ap-ladder__link {
697
+ .aplus-ap-ladder__link,
698
+ .aplus-ap-ladder__link a {
633
699
  cursor: pointer;
634
700
  color: #0070ff;
701
+ text-decoration: none;
635
702
  }
636
703
  .aplus-ap-ladder--admin .aplus-ap-ladder__major {
637
704
  color: #333333;
@@ -1,14 +0,0 @@
1
- import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- import { ApLadderLabelValue } from './interface';
3
- declare const _default: DefineComponent<ExtractPropTypes<{
4
- lv: {
5
- type: PropType<ApLadderLabelValue>;
6
- required: true;
7
- };
8
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
9
- lv: {
10
- type: PropType<ApLadderLabelValue>;
11
- required: true;
12
- };
13
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLSpanElement>;
14
- export default _default;
@@ -1,4 +0,0 @@
1
- import f from "./HelpMessageIcon.vue2.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as a, createElementBlock as y, openBlock as l, createBlock as t, isVNode as i, resolveDynamicComponent as o, normalizeStyle as s, unref as c } from "vue";
2
- import { IconApAdFillWarn as r, IconApAdLineAnnotation as u } from "@aplus-frontend/icon";
3
- const g = { style: { display: "inline-flex", "align-items": "center" } }, v = /* @__PURE__ */ a({
4
- __name: "HelpMessageIcon",
5
- props: {
6
- lv: {
7
- type: Object,
8
- required: !0
9
- }
10
- },
11
- setup(e) {
12
- const n = {
13
- color: "#FAAD14",
14
- fontSize: "12px"
15
- };
16
- return (m, I) => (l(), y("span", g, [
17
- i(e.lv.helpMessageIcon) ? (l(), t(o(e.lv.helpMessageIcon), {
18
- key: 0,
19
- style: s([n, e.lv.helpMessageIconStyles])
20
- }, null, 8, ["style"])) : typeof e.lv.helpMessageIcon == "function" ? (l(), t(o(e.lv.helpMessageIcon()), {
21
- key: 1,
22
- style: s([n, e.lv.helpMessageIconStyles])
23
- }, null, 8, ["style"])) : e.lv.helpMessageIcon === "warning" ? (l(), t(c(r), {
24
- key: 2,
25
- style: s([n, e.lv.helpMessageIconStyles])
26
- }, null, 8, ["style"])) : (l(), t(c(u), {
27
- key: 3,
28
- style: s([n, e.lv.helpMessageIconStyles])
29
- }, null, 8, ["style"]))
30
- ]));
31
- }
32
- });
33
- export {
34
- v as default
35
- };
@@ -1,35 +0,0 @@
1
- import { isClient as a } from "@vueuse/core";
2
- import { ref as c, watch as n } from "vue";
3
- const r = /* @__PURE__ */ new WeakMap();
4
- let l;
5
- const p = "ap-ladder-is-ellipsised";
6
- function o(i) {
7
- const t = i.querySelectorAll(`.${p}`);
8
- let e = !1;
9
- return t.forEach((s) => {
10
- s.clientWidth < s.scrollWidth && (e = !0);
11
- }), e;
12
- }
13
- a && (l = new ResizeObserver((i) => {
14
- for (const t of i) {
15
- const e = t.target;
16
- if (r.has(e)) {
17
- const s = o(e);
18
- r.get(e).value = s;
19
- }
20
- }
21
- }));
22
- const h = (i) => {
23
- const t = c(!1);
24
- return n(
25
- () => i.value,
26
- (e, s) => {
27
- e && l.observe(e), s && l.unobserve(s), e && r.set(e, t), s && r.delete(s), e && (t.value = o(e));
28
- },
29
- { flush: "post", immediate: !0 }
30
- ), t;
31
- };
32
- export {
33
- p as ellipsisElementCls,
34
- h as useWatchEllipsis
35
- };
@@ -1,14 +0,0 @@
1
- import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- import { ApLadderLabelValue } from './interface';
3
- declare const _default: DefineComponent<ExtractPropTypes<{
4
- lv: {
5
- type: PropType<ApLadderLabelValue>;
6
- required: true;
7
- };
8
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
9
- lv: {
10
- type: PropType<ApLadderLabelValue>;
11
- required: true;
12
- };
13
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLSpanElement>;
14
- export default _default;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./HelpMessageIcon.vue2.js");exports.default=e.default;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("@aplus-frontend/icon"),o={style:{display:"inline-flex","align-items":"center"}},c=e.defineComponent({__name:"HelpMessageIcon",props:{lv:{type:Object,required:!0}},setup(l){const n={color:"#FAAD14",fontSize:"12px"};return(s,a)=>(e.openBlock(),e.createElementBlock("span",o,[e.isVNode(l.lv.helpMessageIcon)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.lv.helpMessageIcon),{key:0,style:e.normalizeStyle([n,l.lv.helpMessageIconStyles])},null,8,["style"])):typeof l.lv.helpMessageIcon=="function"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.lv.helpMessageIcon()),{key:1,style:e.normalizeStyle([n,l.lv.helpMessageIconStyles])},null,8,["style"])):l.lv.helpMessageIcon==="warning"?(e.openBlock(),e.createBlock(e.unref(t.IconApAdFillWarn),{key:2,style:e.normalizeStyle([n,l.lv.helpMessageIconStyles])},null,8,["style"])):(e.openBlock(),e.createBlock(e.unref(t.IconApAdLineAnnotation),{key:3,style:e.normalizeStyle([n,l.lv.helpMessageIconStyles])},null,8,["style"]))]))}});exports.default=c;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@vueuse/core"),c=require("vue"),l=new WeakMap;let r;const n="ap-ladder-is-ellipsised";function a(i){const t=i.querySelectorAll(`.${n}`);let e=!1;return t.forEach(s=>{s.clientWidth<s.scrollWidth&&(e=!0)}),e}o.isClient&&(r=new ResizeObserver(i=>{for(const t of i){const e=t.target;if(l.has(e)){const s=a(e);l.get(e).value=s}}}));const u=i=>{const t=c.ref(!1);return c.watch(()=>i.value,(e,s)=>{e&&r.observe(e),s&&r.unobserve(s),e&&l.set(e,t),s&&l.delete(s),e&&(t.value=a(e))},{flush:"post",immediate:!0}),t};exports.ellipsisElementCls=n;exports.useWatchEllipsis=u;