@uzum-tech/ui 2.1.4 → 2.2.1

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 +1221 -527
  2. package/dist/index.mjs +1218 -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 +1083 -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 +78 -1379
  37. package/es/pagination/src/Pagination.mjs +36 -63
  38. package/es/pagination/src/interface.d.ts +1347 -1
  39. package/es/pagination/src/interface.mjs +70 -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 +1083 -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 +78 -1379
  76. package/lib/pagination/src/Pagination.js +33 -40
  77. package/lib/pagination/src/interface.d.ts +1347 -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 +3 -3
  84. package/volar.d.ts +1 -0
  85. package/web-types.json +272 -1
@@ -5,6 +5,7 @@ import style from "../../../icon/src/styles/index.cssr.mjs";
5
5
  import { iconLight } from "../../../icon/styles/index.mjs";
6
6
  import UBaseIcon from "./Icon.mjs";
7
7
  import { iconProps } from "./interface.mjs";
8
+ const FALLBACK_ICON = '&#65533';
8
9
  const UIconImpl = defineComponent({
9
10
  _n_icon__: true,
10
11
  name: 'Icon',
@@ -62,17 +63,24 @@ const UIconImpl = defineComponent({
62
63
  warn('icon', `icon pack "${targetName}" not found`);
63
64
  return null;
64
65
  }
65
- if ((_a = props.async) !== null && _a !== void 0 ? _a : config.async) {
66
- if ('renderIcon' in target) {
67
- warnOnce('icon', `pack "${target.name}" is a sync pack rendered in async mode — its icons are already bundled, so async loads them again at runtime. Register the async pack ("${target.name}Async") or drop \`async\`.`);
66
+ try {
67
+ if ((_a = props.async) !== null && _a !== void 0 ? _a : config.async) {
68
+ if ('renderIcon' in target) {
69
+ warnOnce('icon', `pack "${target.name}" is a sync pack rendered in async mode — its icons are already bundled, so async loads them again at runtime. Register the async pack ("${target.name}Async") or drop \`async\`.`);
70
+ }
71
+ return target.renderAsyncIcon(name);
68
72
  }
69
- return target.renderAsyncIcon(name);
70
- }
71
- if (!('renderIcon' in target)) {
72
- warn('icon', `pack "${target.name}" is async-only, set \`async: true\` on \`u-config-provider :icon-packs\``);
73
- return null;
73
+ if (!('renderIcon' in target)) {
74
+ warn('icon', `pack "${target.name}" is async-only, set \`async: true\` on \`u-config-provider :icon-packs\``);
75
+ return null;
76
+ }
77
+ return target.renderIcon(name);
78
+ } catch (err) {
79
+ warnOnce('icon', `icon "${name}" not found in pack "${target.name}", rendering fallback (${err.message})`);
80
+ return h('span', {
81
+ innerHTML: FALLBACK_ICON
82
+ });
74
83
  }
75
- return target.renderIcon(name);
76
84
  });
77
85
  return {
78
86
  mergedClsPrefix: mergedClsPrefixRef,
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { defineComponent, h } from 'vue';
2
+ export default defineComponent({
3
+ name: 'SearchOutline',
4
+ render() {
5
+ return h("svg", {
6
+ viewBox: "0 0 24 24",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ "aria-hidden": true
10
+ }, h("path", {
11
+ d: "M21 21l-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0z",
12
+ stroke: "currentColor",
13
+ "stroke-width": "2",
14
+ "stroke-linecap": "round",
15
+ "stroke-linejoin": "round"
16
+ }));
17
+ }
18
+ });
@@ -52,6 +52,7 @@ export { default as RotateClockwiseIcon } from './RotateClockwise';
52
52
  export { default as RotateCounterclockwiseIcon } from './RotateCounterclockwise';
53
53
  export { default as RussiaFlag } from './RussiaFlag';
54
54
  export { default as SearchIcon } from './Search';
55
+ export { default as SearchOutlineIcon } from './SearchOutline';
55
56
  export { default as SendFilled } from './SendFilled';
56
57
  export { default as SiderUnionBorder } from './SiderUnionBorder';
57
58
  export { default as SuccessIcon } from './Success';
@@ -52,6 +52,7 @@ export { default as RotateClockwiseIcon } from "./RotateClockwise.mjs";
52
52
  export { default as RotateCounterclockwiseIcon } from "./RotateCounterclockwise.mjs";
53
53
  export { default as RussiaFlag } from "./RussiaFlag.mjs";
54
54
  export { default as SearchIcon } from "./Search.mjs";
55
+ export { default as SearchOutlineIcon } from "./SearchOutline.mjs";
55
56
  export { default as SendFilled } from "./SendFilled.mjs";
56
57
  export { default as SiderUnionBorder } from "./SiderUnionBorder.mjs";
57
58
  export { default as SuccessIcon } from "./Success.mjs";
@@ -0,0 +1 @@
1
+ export declare function copyToClipboard(text: string): Promise<void>;
@@ -0,0 +1,8 @@
1
+ export function copyToClipboard(text) {
2
+ var _a;
3
+ const clipboard = (_a = globalThis.navigator) === null || _a === void 0 ? void 0 : _a.clipboard;
4
+ if (!(clipboard === null || clipboard === void 0 ? void 0 : clipboard.writeText)) {
5
+ return Promise.reject(new Error('Clipboard API is unavailable'));
6
+ }
7
+ return clipboard.writeText(text);
8
+ }
@@ -1,2 +1,3 @@
1
+ export { copyToClipboard } from './copy-to-clipboard';
1
2
  export { download, publicDownload } from './download';
2
3
  export { isDocument } from './is-document';
@@ -1,2 +1,3 @@
1
+ export { copyToClipboard } from "./copy-to-clipboard.mjs";
1
2
  export { download, publicDownload } from "./download.mjs";
2
3
  export { isDocument } from "./is-document.mjs";