@uzum-tech/ui 2.1.4 → 2.2.0

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 (85) hide show
  1. package/dist/index.js +1213 -527
  2. package/dist/index.mjs +1210 -528
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/_internal/icon/src/UIcon.mjs +17 -9
  6. package/es/_internal/icons/SearchOutline.d.ts +2 -0
  7. package/es/_internal/icons/SearchOutline.mjs +18 -0
  8. package/es/_internal/icons/index.d.ts +1 -0
  9. package/es/_internal/icons/index.mjs +1 -0
  10. package/es/_utils/dom/copy-to-clipboard.d.ts +1 -0
  11. package/es/_utils/dom/copy-to-clipboard.mjs +8 -0
  12. package/es/_utils/dom/index.d.ts +1 -0
  13. package/es/_utils/dom/index.mjs +1 -0
  14. package/es/components.d.ts +1079 -4
  15. package/es/components.mjs +3 -0
  16. package/es/config-provider/src/internal-interface.d.ts +4 -0
  17. package/es/data-table/src/use-table-data.d.ts +1 -1
  18. package/es/icon-pack/index.d.ts +5 -0
  19. package/es/icon-pack/index.mjs +3 -0
  20. package/es/icon-pack/src/IconPack.d.ts +1047 -0
  21. package/es/icon-pack/src/IconPack.mjs +300 -0
  22. package/es/icon-pack/src/interface.d.ts +465 -0
  23. package/es/icon-pack/src/interface.mjs +75 -0
  24. package/es/icon-pack/src/styles/index.cssr.d.ts +2 -0
  25. package/es/icon-pack/src/styles/index.cssr.mjs +131 -0
  26. package/es/icon-pack/styles/dark.d.ts +123 -0
  27. package/es/icon-pack/styles/dark.mjs +20 -0
  28. package/es/icon-pack/styles/index.d.ts +3 -0
  29. package/es/icon-pack/styles/index.mjs +2 -0
  30. package/es/icon-pack/styles/light.d.ts +143 -0
  31. package/es/icon-pack/styles/light.mjs +64 -0
  32. package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
  33. package/es/input/src/Input.mjs +3 -1
  34. package/es/pagination/index.d.ts +3 -3
  35. package/es/pagination/index.mjs +2 -1
  36. package/es/pagination/src/Pagination.d.ts +74 -1379
  37. package/es/pagination/src/Pagination.mjs +28 -63
  38. package/es/pagination/src/interface.d.ts +1345 -1
  39. package/es/pagination/src/interface.mjs +68 -1
  40. package/es/themes/dark.mjs +2 -0
  41. package/es/themes/light.mjs +2 -0
  42. package/es/version.d.ts +1 -1
  43. package/es/version.mjs +1 -1
  44. package/lib/_internal/icon/src/UIcon.js +15 -8
  45. package/lib/_internal/icons/SearchOutline.d.ts +2 -0
  46. package/lib/_internal/icons/SearchOutline.js +10 -0
  47. package/lib/_internal/icons/index.d.ts +1 -0
  48. package/lib/_internal/icons/index.js +3 -1
  49. package/lib/_utils/dom/copy-to-clipboard.d.ts +1 -0
  50. package/lib/_utils/dom/copy-to-clipboard.js +11 -0
  51. package/lib/_utils/dom/index.d.ts +1 -0
  52. package/lib/_utils/dom/index.js +3 -1
  53. package/lib/components.d.ts +1079 -4
  54. package/lib/components.js +11 -5
  55. package/lib/config-provider/src/internal-interface.d.ts +4 -0
  56. package/lib/data-table/src/use-table-data.d.ts +1 -1
  57. package/lib/icon-pack/index.d.ts +5 -0
  58. package/lib/icon-pack/index.js +13 -0
  59. package/lib/icon-pack/src/IconPack.d.ts +1047 -0
  60. package/lib/icon-pack/src/IconPack.js +240 -0
  61. package/lib/icon-pack/src/interface.d.ts +465 -0
  62. package/lib/icon-pack/src/interface.js +49 -0
  63. package/lib/icon-pack/src/styles/index.cssr.d.ts +2 -0
  64. package/lib/icon-pack/src/styles/index.cssr.js +136 -0
  65. package/lib/icon-pack/styles/dark.d.ts +123 -0
  66. package/lib/icon-pack/styles/dark.js +22 -0
  67. package/lib/icon-pack/styles/index.d.ts +3 -0
  68. package/lib/icon-pack/styles/index.js +10 -0
  69. package/lib/icon-pack/styles/light.d.ts +143 -0
  70. package/lib/icon-pack/styles/light.js +46 -0
  71. package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
  72. package/lib/input/src/Input.js +3 -1
  73. package/lib/pagination/index.d.ts +3 -3
  74. package/lib/pagination/index.js +2 -1
  75. package/lib/pagination/src/Pagination.d.ts +74 -1379
  76. package/lib/pagination/src/Pagination.js +27 -40
  77. package/lib/pagination/src/interface.d.ts +1345 -1
  78. package/lib/pagination/src/interface.js +37 -0
  79. package/lib/themes/dark.js +110 -108
  80. package/lib/themes/light.js +110 -108
  81. package/lib/version.d.ts +1 -1
  82. package/lib/version.js +1 -1
  83. package/package.json +1 -1
  84. package/volar.d.ts +1 -0
  85. package/web-types.json +258 -1
@@ -0,0 +1,123 @@
1
+ declare const iconPackDark: import("../../_mixins").Theme<"IconPack", {
2
+ containerColor: string;
3
+ borderRadius: string;
4
+ titleTextColor: string;
5
+ descriptionTextColor: string;
6
+ groupTitleTextColor: string;
7
+ groupCounterTextColor: string;
8
+ cardColor: string;
9
+ cardColorHover: string;
10
+ cardColorPressed: string;
11
+ cardColorSelected: string;
12
+ cardBorderRadius: string;
13
+ cardIconColor: string;
14
+ cardIconColorSelected: string;
15
+ cardLabelTextColor: string;
16
+ cardLabelTextColorSelected: string;
17
+ dividerColor: string;
18
+ }, {
19
+ Input: import("../../_mixins").Theme<"Input", {
20
+ paddingTiny: string;
21
+ paddingSmall: string;
22
+ paddingMedium: string;
23
+ paddingLarge: string;
24
+ paddingHuge: string;
25
+ clearSize: string;
26
+ countTextColorDisabled: string;
27
+ countTextColor: string;
28
+ heightTiny: string;
29
+ heightSmall: string;
30
+ heightMedium: string;
31
+ heightLarge: string;
32
+ heightHuge: string;
33
+ fontSizeTiny: string;
34
+ fontSizeSmall: string;
35
+ fontSizeMedium: string;
36
+ fontSizeLarge: string;
37
+ fontSizeHuge: string;
38
+ lineHeight: string;
39
+ lineHeightTextarea: string;
40
+ borderRadius: string;
41
+ iconSize: string;
42
+ groupLabelTextColor: string;
43
+ textColor: string;
44
+ textColorDisabled: string;
45
+ textDecorationColor: string;
46
+ caretColor: string;
47
+ placeholderColor: string;
48
+ placeholderColorDisabled: string;
49
+ color: string;
50
+ colorDisabled: string;
51
+ colorFocus: string;
52
+ groupLabelBorder: string;
53
+ border: string;
54
+ borderHover: string;
55
+ borderDisabled: string;
56
+ borderFocus: string;
57
+ boxShadowFocus: string;
58
+ loadingColor: string;
59
+ loadingColorSuccess: string;
60
+ borderSuccess: string;
61
+ borderHoverSuccess: string;
62
+ colorFocusSuccess: string;
63
+ borderFocusSuccess: string;
64
+ boxShadowFocusSuccess: string;
65
+ caretColorSuccess: string;
66
+ loadingColorWarning: string;
67
+ borderWarning: string;
68
+ borderHoverWarning: string;
69
+ colorFocusWarning: string;
70
+ borderFocusWarning: string;
71
+ boxShadowFocusWarning: string;
72
+ caretColorWarning: string;
73
+ loadingColorError: string;
74
+ borderError: string;
75
+ borderHoverError: string;
76
+ colorFocusError: string;
77
+ borderFocusError: string;
78
+ boxShadowFocusError: string;
79
+ caretColorError: string;
80
+ clearColor: string;
81
+ clearColorHover: string;
82
+ clearColorPressed: string;
83
+ iconColor: string;
84
+ iconColorDisabled: string;
85
+ iconColorHover: string;
86
+ iconColorPressed: string;
87
+ suffixTextColor: string;
88
+ selectionColor: string;
89
+ }, any>;
90
+ Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
91
+ height: string;
92
+ width: string;
93
+ borderRadius: string;
94
+ color: string;
95
+ colorHover: string;
96
+ railInsetHorizontalBottom: string;
97
+ railInsetHorizontalTop: string;
98
+ railInsetVerticalRight: string;
99
+ railInsetVerticalLeft: string;
100
+ railColor: string;
101
+ }, any>;
102
+ Empty: import("../../_mixins").Theme<"Empty", {
103
+ iconSizeSmall: string;
104
+ iconSizeMedium: string;
105
+ iconSizeLarge: string;
106
+ iconSizeHuge: string;
107
+ titleFontSizeSmall: string;
108
+ titleFontSizeMedium: string;
109
+ titleFontSizeLarge: string;
110
+ titleFontSizeHuge: string;
111
+ descriptionFontSizeSmall: string;
112
+ descriptionFontSizeMedium: string;
113
+ descriptionFontSizeLarge: string;
114
+ descriptionFontSizeHuge: string;
115
+ titleColor: string;
116
+ descriptionColor: string;
117
+ iconColor: string;
118
+ iconBgColor: string;
119
+ extraTextColor: string;
120
+ }, any>;
121
+ }>;
122
+ export default iconPackDark;
123
+ export type IconPackTheme = typeof iconPackDark;
@@ -0,0 +1,20 @@
1
+ import { scrollbarDark } from "../../_internal/scrollbar/styles/index.mjs";
2
+ import { createTheme } from "../../_mixins/index.mjs";
3
+ import { commonDark } from "../../_styles/common/index.mjs";
4
+ import { emptyDark } from "../../empty/styles/index.mjs";
5
+ import { inputDark } from "../../input/styles/index.mjs";
6
+ import { self } from "./light.mjs";
7
+ const iconPackDark = createTheme({
8
+ name: 'IconPack',
9
+ common: commonDark,
10
+ peers: {
11
+ Input: inputDark,
12
+ Scrollbar: scrollbarDark,
13
+ Empty: emptyDark
14
+ },
15
+ self: vars => {
16
+ const lightVars = self(vars);
17
+ return Object.assign({}, lightVars);
18
+ }
19
+ });
20
+ export default iconPackDark;
@@ -0,0 +1,3 @@
1
+ export { default as iconPackDark } from './dark';
2
+ export { default as iconPackLight } from './light';
3
+ export type { IconPackTheme, IconPackThemeVars } from './light';
@@ -0,0 +1,2 @@
1
+ export { default as iconPackDark } from "./dark.mjs";
2
+ export { default as iconPackLight } from "./light.mjs";
@@ -0,0 +1,143 @@
1
+ import type { ThemeCommonVars } from '../../_styles/common';
2
+ export declare function self(vars: ThemeCommonVars): {
3
+ containerColor: string;
4
+ borderRadius: string;
5
+ titleTextColor: string;
6
+ descriptionTextColor: string;
7
+ groupTitleTextColor: string;
8
+ groupCounterTextColor: string;
9
+ cardColor: string;
10
+ cardColorHover: string;
11
+ cardColorPressed: string;
12
+ cardColorSelected: string;
13
+ cardBorderRadius: string;
14
+ cardIconColor: string;
15
+ cardIconColorSelected: string;
16
+ cardLabelTextColor: string;
17
+ cardLabelTextColorSelected: string;
18
+ dividerColor: string;
19
+ };
20
+ declare const iconPackLight: import("../../_mixins").Theme<"IconPack", {
21
+ containerColor: string;
22
+ borderRadius: string;
23
+ titleTextColor: string;
24
+ descriptionTextColor: string;
25
+ groupTitleTextColor: string;
26
+ groupCounterTextColor: string;
27
+ cardColor: string;
28
+ cardColorHover: string;
29
+ cardColorPressed: string;
30
+ cardColorSelected: string;
31
+ cardBorderRadius: string;
32
+ cardIconColor: string;
33
+ cardIconColorSelected: string;
34
+ cardLabelTextColor: string;
35
+ cardLabelTextColorSelected: string;
36
+ dividerColor: string;
37
+ }, {
38
+ Input: import("../../_mixins").Theme<"Input", {
39
+ paddingTiny: string;
40
+ paddingSmall: string;
41
+ paddingMedium: string;
42
+ paddingLarge: string;
43
+ paddingHuge: string;
44
+ clearSize: string;
45
+ countTextColorDisabled: string;
46
+ countTextColor: string;
47
+ heightTiny: string;
48
+ heightSmall: string;
49
+ heightMedium: string;
50
+ heightLarge: string;
51
+ heightHuge: string;
52
+ fontSizeTiny: string;
53
+ fontSizeSmall: string;
54
+ fontSizeMedium: string;
55
+ fontSizeLarge: string;
56
+ fontSizeHuge: string;
57
+ lineHeight: string;
58
+ lineHeightTextarea: string;
59
+ borderRadius: string;
60
+ iconSize: string;
61
+ groupLabelTextColor: string;
62
+ textColor: string;
63
+ textColorDisabled: string;
64
+ textDecorationColor: string;
65
+ caretColor: string;
66
+ placeholderColor: string;
67
+ placeholderColorDisabled: string;
68
+ color: string;
69
+ colorDisabled: string;
70
+ colorFocus: string;
71
+ groupLabelBorder: string;
72
+ border: string;
73
+ borderHover: string;
74
+ borderDisabled: string;
75
+ borderFocus: string;
76
+ boxShadowFocus: string;
77
+ loadingColor: string;
78
+ loadingColorSuccess: string;
79
+ borderSuccess: string;
80
+ borderHoverSuccess: string;
81
+ colorFocusSuccess: string;
82
+ borderFocusSuccess: string;
83
+ boxShadowFocusSuccess: string;
84
+ caretColorSuccess: string;
85
+ loadingColorWarning: string;
86
+ borderWarning: string;
87
+ borderHoverWarning: string;
88
+ colorFocusWarning: string;
89
+ borderFocusWarning: string;
90
+ boxShadowFocusWarning: string;
91
+ caretColorWarning: string;
92
+ loadingColorError: string;
93
+ borderError: string;
94
+ borderHoverError: string;
95
+ colorFocusError: string;
96
+ borderFocusError: string;
97
+ boxShadowFocusError: string;
98
+ caretColorError: string;
99
+ clearColor: string;
100
+ clearColorHover: string;
101
+ clearColorPressed: string;
102
+ iconColor: string;
103
+ iconColorDisabled: string;
104
+ iconColorHover: string;
105
+ iconColorPressed: string;
106
+ suffixTextColor: string;
107
+ selectionColor: string;
108
+ }, any>;
109
+ Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
110
+ height: string;
111
+ width: string;
112
+ borderRadius: string;
113
+ color: string;
114
+ colorHover: string;
115
+ railInsetHorizontalBottom: string;
116
+ railInsetHorizontalTop: string;
117
+ railInsetVerticalRight: string;
118
+ railInsetVerticalLeft: string;
119
+ railColor: string;
120
+ }, any>;
121
+ Empty: import("../../_mixins").Theme<"Empty", {
122
+ iconSizeSmall: string;
123
+ iconSizeMedium: string;
124
+ iconSizeLarge: string;
125
+ iconSizeHuge: string;
126
+ titleFontSizeSmall: string;
127
+ titleFontSizeMedium: string;
128
+ titleFontSizeLarge: string;
129
+ titleFontSizeHuge: string;
130
+ descriptionFontSizeSmall: string;
131
+ descriptionFontSizeMedium: string;
132
+ descriptionFontSizeLarge: string;
133
+ descriptionFontSizeHuge: string;
134
+ titleColor: string;
135
+ descriptionColor: string;
136
+ iconColor: string;
137
+ iconBgColor: string;
138
+ extraTextColor: string;
139
+ }, any>;
140
+ }>;
141
+ export default iconPackLight;
142
+ export type IconPackThemeVars = ReturnType<typeof self>;
143
+ export type IconPackTheme = typeof iconPackLight;
@@ -0,0 +1,64 @@
1
+ import { scrollbarLight } from "../../_internal/scrollbar/styles/index.mjs";
2
+ import { createTheme } from "../../_mixins/index.mjs";
3
+ import { commonLight } from "../../_styles/common/index.mjs";
4
+ import { emptyLight } from "../../empty/styles/index.mjs";
5
+ import { inputLight } from "../../input/styles/index.mjs";
6
+ import { self as inputSelf } from "../../input/styles/light.mjs";
7
+ const iconPackInputLight = Object.assign(Object.assign({}, inputLight), {
8
+ self(vars) {
9
+ const originalInputSelf = inputSelf(vars);
10
+ const {
11
+ elementsDarkQuinary,
12
+ elementsPrimary
13
+ } = vars;
14
+ return Object.assign(Object.assign({}, originalInputSelf), {
15
+ heightMedium: '44px',
16
+ borderRadius: '12px',
17
+ paddingMedium: '0 20px',
18
+ border: `2px solid ${elementsDarkQuinary}`,
19
+ borderHover: `2px solid ${elementsPrimary}`,
20
+ borderFocus: `2px solid ${elementsPrimary}`,
21
+ boxShadowFocus: 'none'
22
+ });
23
+ }
24
+ });
25
+ export function self(vars) {
26
+ const {
27
+ staticWhite,
28
+ textPrimary,
29
+ textSecondary,
30
+ elementsTertiary,
31
+ elementsQuaternary,
32
+ elementsQuinary,
33
+ brandPrimary500
34
+ } = vars;
35
+ return {
36
+ containerColor: staticWhite,
37
+ borderRadius: '24px',
38
+ titleTextColor: textPrimary,
39
+ descriptionTextColor: textSecondary,
40
+ groupTitleTextColor: textPrimary,
41
+ groupCounterTextColor: textSecondary,
42
+ cardColor: elementsTertiary,
43
+ cardColorHover: elementsQuaternary,
44
+ cardColorPressed: elementsQuinary,
45
+ cardColorSelected: brandPrimary500,
46
+ cardBorderRadius: '20px',
47
+ cardIconColor: textPrimary,
48
+ cardIconColorSelected: staticWhite,
49
+ cardLabelTextColor: textPrimary,
50
+ cardLabelTextColorSelected: staticWhite,
51
+ dividerColor: elementsQuaternary
52
+ };
53
+ }
54
+ const iconPackLight = createTheme({
55
+ name: 'IconPack',
56
+ common: commonLight,
57
+ peers: {
58
+ Input: iconPackInputLight,
59
+ Scrollbar: scrollbarLight,
60
+ Empty: emptyLight
61
+ },
62
+ self
63
+ });
64
+ export default iconPackLight;
@@ -102,6 +102,6 @@ export declare const UIconWrapper: import("vue").DefineComponent<import("vue").E
102
102
  }>> & Readonly<{}>, {
103
103
  readonly borderRadius: number;
104
104
  readonly size: number;
105
- readonly pulseSize: number;
106
105
  readonly variant: IconWrapperVariant;
106
+ readonly pulseSize: number;
107
107
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -435,8 +435,10 @@ export default defineComponent({
435
435
  }
436
436
  function handleInput(e, index = 0, event = 'input') {
437
437
  let targetValue = e.target.value;
438
+ const sourceValue = targetValue;
438
439
  if (props.uppercase) targetValue = targetValue.toUpperCase();
439
440
  if (props.formatter) targetValue = props.formatter(targetValue);
441
+ const valueTransformed = targetValue !== sourceValue;
440
442
  syncMirror(targetValue);
441
443
  if (e instanceof InputEvent && !e.isComposing) {
442
444
  isComposingRef.value = false;
@@ -480,7 +482,7 @@ export default defineComponent({
480
482
  // force update to sync input's view with value
481
483
  // if not set, after input, input value won't sync with dom input value
482
484
  vm.$forceUpdate();
483
- if (!isIncomingValueValid) {
485
+ if (!isIncomingValueValid || valueTransformed) {
484
486
  void nextTick(focusedInputCursorControl.restoreCursor);
485
487
  }
486
488
  }
@@ -1,4 +1,4 @@
1
- export type { PaginationInfo, PaginationRenderLabel, PaginationSizeOption } from './src/interface';
2
- export { paginationProps, default as UPagination } from './src/Pagination';
3
- export type { PaginationProps, PaginationSlots } from './src/Pagination';
1
+ export { paginationProps } from './src/interface';
2
+ export type { PaginationDisplayOrder, PaginationInfo, PaginationProps, PaginationRenderLabel, PaginationSizeOption, PaginationSlots, PaginationVariant } from './src/interface';
3
+ export { default as UPagination } from './src/Pagination';
4
4
  export type * from './src/public-types';
@@ -1 +1,2 @@
1
- export { paginationProps, default as UPagination } from "./src/Pagination.mjs";
1
+ export { paginationProps } from "./src/interface.mjs";
2
+ export { default as UPagination } from "./src/Pagination.mjs";