@retailcrm/embed-ui-v1-components 0.5.16 → 0.5.18
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.
- package/assets/stylesheets/layout.less +9 -0
- package/dist/host.cjs +4221 -2950
- package/dist/host.css +93 -0
- package/dist/host.d.ts +110 -4
- package/dist/host.js +4222 -2951
- package/dist/remote.cjs +23 -0
- package/dist/remote.d.ts +130 -0
- package/dist/remote.js +23 -0
- package/package.json +7 -5
package/dist/remote.cjs
CHANGED
|
@@ -58,6 +58,11 @@ const UiCheckbox = defineRemoteComponent(
|
|
|
58
58
|
UiCheckboxType,
|
|
59
59
|
["click", "focus", "blur"]
|
|
60
60
|
);
|
|
61
|
+
const UiCopyButtonType = "UiCopyButton";
|
|
62
|
+
const UiCopyButton = defineRemoteComponent(
|
|
63
|
+
UiCopyButtonType,
|
|
64
|
+
["click", "focus", "blur"]
|
|
65
|
+
);
|
|
61
66
|
const UiErrorType = "UiError";
|
|
62
67
|
const UiError = defineRemoteComponent(
|
|
63
68
|
UiErrorType,
|
|
@@ -133,6 +138,12 @@ const UiModalWindowSurface = defineRemoteComponent(
|
|
|
133
138
|
"update:overlapped"
|
|
134
139
|
]
|
|
135
140
|
);
|
|
141
|
+
const UiPopperType = "UiPopper";
|
|
142
|
+
const UiPopper = defineRemoteComponent(UiPopperType);
|
|
143
|
+
const UiPopperConnectorType = "UiPopperConnector";
|
|
144
|
+
const UiPopperConnector = defineRemoteComponent(UiPopperConnectorType);
|
|
145
|
+
const UiPopperTargetType = "UiPopperTarget";
|
|
146
|
+
const UiPopperTarget = defineRemoteComponent(UiPopperTargetType);
|
|
136
147
|
const UiRadioType = "UiRadio";
|
|
137
148
|
const UiRadio = defineRemoteComponent(
|
|
138
149
|
UiRadioType,
|
|
@@ -164,6 +175,8 @@ const UiToolbarLink = defineRemoteComponent(
|
|
|
164
175
|
UiToolbarLinkType,
|
|
165
176
|
["click", "focus", "blur"]
|
|
166
177
|
);
|
|
178
|
+
const UiTooltipType = "UiTooltip";
|
|
179
|
+
const UiTooltip = defineRemoteComponent(UiTooltipType);
|
|
167
180
|
const UiTransitionType = "UiTransition";
|
|
168
181
|
const UiTransition = defineRemoteComponent(UiTransitionType);
|
|
169
182
|
const UiYandexMapType = "UiYandexMap";
|
|
@@ -1816,6 +1829,8 @@ exports.UiButton = UiButton;
|
|
|
1816
1829
|
exports.UiButtonType = UiButtonType;
|
|
1817
1830
|
exports.UiCheckbox = UiCheckbox;
|
|
1818
1831
|
exports.UiCheckboxType = UiCheckboxType;
|
|
1832
|
+
exports.UiCopyButton = UiCopyButton;
|
|
1833
|
+
exports.UiCopyButtonType = UiCopyButtonType;
|
|
1819
1834
|
exports.UiError = UiError;
|
|
1820
1835
|
exports.UiErrorType = UiErrorType;
|
|
1821
1836
|
exports.UiLink = UiLink;
|
|
@@ -1828,6 +1843,12 @@ exports.UiModalWindow = UiModalWindow;
|
|
|
1828
1843
|
exports.UiModalWindowSurface = UiModalWindowSurface;
|
|
1829
1844
|
exports.UiModalWindowSurfaceType = UiModalWindowSurfaceType;
|
|
1830
1845
|
exports.UiModalWindowType = UiModalWindowType;
|
|
1846
|
+
exports.UiPopper = UiPopper;
|
|
1847
|
+
exports.UiPopperConnector = UiPopperConnector;
|
|
1848
|
+
exports.UiPopperConnectorType = UiPopperConnectorType;
|
|
1849
|
+
exports.UiPopperTarget = UiPopperTarget;
|
|
1850
|
+
exports.UiPopperTargetType = UiPopperTargetType;
|
|
1851
|
+
exports.UiPopperType = UiPopperType;
|
|
1831
1852
|
exports.UiRadio = UiRadio;
|
|
1832
1853
|
exports.UiRadioType = UiRadioType;
|
|
1833
1854
|
exports.UiScrollBox = UiScrollBox;
|
|
@@ -1838,6 +1859,8 @@ exports.UiToolbarButton = UiToolbarButton;
|
|
|
1838
1859
|
exports.UiToolbarButtonType = UiToolbarButtonType;
|
|
1839
1860
|
exports.UiToolbarLink = UiToolbarLink;
|
|
1840
1861
|
exports.UiToolbarLinkType = UiToolbarLinkType;
|
|
1862
|
+
exports.UiTooltip = UiTooltip;
|
|
1863
|
+
exports.UiTooltipType = UiTooltipType;
|
|
1841
1864
|
exports.UiTransition = UiTransition;
|
|
1842
1865
|
exports.UiTransitionType = UiTransitionType;
|
|
1843
1866
|
exports.UiYandexMap = UiYandexMap;
|
package/dist/remote.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Alignment } from '@floating-ui/dom';
|
|
1
2
|
import { Component } from 'vue';
|
|
2
3
|
import { HTMLAttributes } from 'vue';
|
|
3
4
|
import { InjectionKey } from 'vue';
|
|
@@ -8,6 +9,10 @@ import { SchemaType } from '@omnicajs/vue-remote/remote';
|
|
|
8
9
|
import { SchemaType as SchemaType_2 } from '@omnicajs/vue-remote/dist/remote';
|
|
9
10
|
import { SerializedEvent } from '@omnicajs/vue-remote/types/events';
|
|
10
11
|
import { SerializedFocusEvent } from '@omnicajs/vue-remote/types/events';
|
|
12
|
+
import { Side } from '@floating-ui/dom';
|
|
13
|
+
import { Strategy } from '@floating-ui/dom';
|
|
14
|
+
|
|
15
|
+
declare type Adaptation = 'flip' | 'shift';
|
|
11
16
|
|
|
12
17
|
declare enum ALIGN {
|
|
13
18
|
LEFT = "left",
|
|
@@ -42,6 +47,11 @@ declare enum CLOSE_METHOD {
|
|
|
42
47
|
KEY_ESC = "Esc"
|
|
43
48
|
}
|
|
44
49
|
|
|
50
|
+
declare type Delay = {
|
|
51
|
+
show?: number;
|
|
52
|
+
hide?: number;
|
|
53
|
+
};
|
|
54
|
+
|
|
45
55
|
declare type Dimensions = `${number}x${number}` | `${number}x-` | `-x${number}`;
|
|
46
56
|
|
|
47
57
|
declare enum DIRECTION {
|
|
@@ -49,6 +59,13 @@ declare enum DIRECTION {
|
|
|
49
59
|
RIGHT = "right"
|
|
50
60
|
}
|
|
51
61
|
|
|
62
|
+
declare type FloatingOptions = {
|
|
63
|
+
placement?: PlacementLiteral | PlacementOptions;
|
|
64
|
+
offsetMainAxis?: number | string;
|
|
65
|
+
offsetCrossAxis?: number | string;
|
|
66
|
+
strategy?: Strategy;
|
|
67
|
+
};
|
|
68
|
+
|
|
52
69
|
export declare const formatDate: (date: Date | string, locale?: Locale | undefined) => string;
|
|
53
70
|
|
|
54
71
|
export declare const formatDateTime: (date: Date | string, locale?: Locale | undefined) => string;
|
|
@@ -61,6 +78,14 @@ declare type Locale = 'en-GB' | 'es-ES' | 'ru-RU';
|
|
|
61
78
|
|
|
62
79
|
declare type Numeric = number | string;
|
|
63
80
|
|
|
81
|
+
declare type PlacementLiteral = `${Side}-${Alignment}` | Side;
|
|
82
|
+
|
|
83
|
+
declare type PlacementOptions = {
|
|
84
|
+
side: Side;
|
|
85
|
+
alignment?: Alignment | 'center';
|
|
86
|
+
adaptation?: Adaptation[];
|
|
87
|
+
};
|
|
88
|
+
|
|
64
89
|
declare type Primitive = boolean | number | string | null | undefined;
|
|
65
90
|
|
|
66
91
|
declare type RemoteProperties<T> = HTMLAttributes & T & Record<string, never>;
|
|
@@ -80,6 +105,17 @@ declare type SerializedDOMRect = {
|
|
|
80
105
|
[K in Exclude<keyof DOMRect, 'toJSON'>]: DOMRect[K];
|
|
81
106
|
};
|
|
82
107
|
|
|
108
|
+
declare type ShowingOptions = {
|
|
109
|
+
shown?: boolean;
|
|
110
|
+
targetTriggers?: Trigger[] | TriggerSchema;
|
|
111
|
+
popperTriggers?: Trigger[] | TriggerSchema;
|
|
112
|
+
globalTriggers?: Array<'miss-click' | 'reference-hidden'>;
|
|
113
|
+
delay?: Numeric | Delay;
|
|
114
|
+
disposeTimeout?: Numeric | null;
|
|
115
|
+
disabled?: boolean;
|
|
116
|
+
container?: string | null;
|
|
117
|
+
};
|
|
118
|
+
|
|
83
119
|
declare enum SIZE {
|
|
84
120
|
XS = "xs",
|
|
85
121
|
SM = "sm",
|
|
@@ -123,6 +159,15 @@ declare enum STATUS {
|
|
|
123
159
|
FREE = "free"
|
|
124
160
|
}
|
|
125
161
|
|
|
162
|
+
declare type TooltipOptions = Omit<UiPopperProperties, 'target' | 'targetTriggers' | 'popperTriggers' | 'globalTriggers'>;
|
|
163
|
+
|
|
164
|
+
declare type Trigger<T extends string = never> = 'hover' | 'focus' | 'click' | 'touch' | T;
|
|
165
|
+
|
|
166
|
+
declare type TriggerSchema<S extends string = never, H extends string = never> = {
|
|
167
|
+
show?: Trigger<S>[];
|
|
168
|
+
hide?: Trigger<H>[];
|
|
169
|
+
};
|
|
170
|
+
|
|
126
171
|
export declare const UiAvatar: Component< {
|
|
127
172
|
[x: string]: unknown;
|
|
128
173
|
}, RemoteProperties<UiAvatarProperties>, {
|
|
@@ -232,6 +277,26 @@ declare type UiCheckboxProperties = {
|
|
|
232
277
|
|
|
233
278
|
export declare const UiCheckboxType: SchemaType<"UiCheckbox", RemoteProperties<UiCheckboxProperties>, RemoteCallable<UiCheckboxMethods>>;
|
|
234
279
|
|
|
280
|
+
export declare const UiCopyButton: Component< {
|
|
281
|
+
[x: string]: unknown;
|
|
282
|
+
}, RemoteProperties<UiCopyButtonProperties>, {
|
|
283
|
+
[x: string]: never;
|
|
284
|
+
}, {
|
|
285
|
+
[x: string]: never;
|
|
286
|
+
}, MethodOptions, {
|
|
287
|
+
click: (event: SerializedEvent) => boolean;
|
|
288
|
+
focus: (event: SerializedFocusEvent) => boolean;
|
|
289
|
+
blur: (event: SerializedEvent) => boolean;
|
|
290
|
+
}>;
|
|
291
|
+
|
|
292
|
+
declare type UiCopyButtonProperties = {
|
|
293
|
+
text: string;
|
|
294
|
+
size: SIZE_2;
|
|
295
|
+
tooltipOptions?: TooltipOptions;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
export declare const UiCopyButtonType: SchemaType<"UiCopyButton", RemoteProperties<UiCopyButtonProperties>>;
|
|
299
|
+
|
|
235
300
|
export declare const UiError: Component< {
|
|
236
301
|
[x: string]: unknown;
|
|
237
302
|
}, RemoteProperties<UiErrorProperties>, {
|
|
@@ -395,6 +460,52 @@ export declare const UiModalWindowSurfaceType: SchemaType<"UiModalWindowSurface"
|
|
|
395
460
|
|
|
396
461
|
export declare const UiModalWindowType: SchemaType<"UiModalWindow", RemoteProperties<UiModalWindowProperties>, RemoteCallable<UiModalWindowMethods>>;
|
|
397
462
|
|
|
463
|
+
export declare const UiPopper: Component< {
|
|
464
|
+
[x: string]: unknown;
|
|
465
|
+
}, RemoteProperties<UiPopperProperties>, {
|
|
466
|
+
[x: string]: never;
|
|
467
|
+
}, {
|
|
468
|
+
[x: string]: never;
|
|
469
|
+
}, MethodOptions, {
|
|
470
|
+
[x: string]: never;
|
|
471
|
+
}>;
|
|
472
|
+
|
|
473
|
+
export declare const UiPopperConnector: Component< {
|
|
474
|
+
[x: string]: unknown;
|
|
475
|
+
}, {
|
|
476
|
+
[x: string]: never;
|
|
477
|
+
}, {
|
|
478
|
+
[x: string]: never;
|
|
479
|
+
}, {
|
|
480
|
+
[x: string]: never;
|
|
481
|
+
}, MethodOptions, {
|
|
482
|
+
[x: string]: never;
|
|
483
|
+
}>;
|
|
484
|
+
|
|
485
|
+
export declare const UiPopperConnectorType: SchemaType<"UiPopperConnector">;
|
|
486
|
+
|
|
487
|
+
declare type UiPopperProperties = FloatingOptions & ShowingOptions & {
|
|
488
|
+
withArrow?: boolean;
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
export declare const UiPopperTarget: Component< {
|
|
492
|
+
[x: string]: unknown;
|
|
493
|
+
}, RemoteProperties<{
|
|
494
|
+
tag?: string;
|
|
495
|
+
}>, {
|
|
496
|
+
[x: string]: never;
|
|
497
|
+
}, {
|
|
498
|
+
[x: string]: never;
|
|
499
|
+
}, MethodOptions, {
|
|
500
|
+
[x: string]: never;
|
|
501
|
+
}>;
|
|
502
|
+
|
|
503
|
+
export declare const UiPopperTargetType: SchemaType<"UiPopperTarget", RemoteProperties<{
|
|
504
|
+
tag?: string;
|
|
505
|
+
}>>;
|
|
506
|
+
|
|
507
|
+
export declare const UiPopperType: SchemaType<"UiPopper", RemoteProperties<UiPopperProperties>>;
|
|
508
|
+
|
|
398
509
|
export declare const UiRadio: Component< {
|
|
399
510
|
[x: string]: unknown;
|
|
400
511
|
}, RemoteProperties<UiRadioProperties>, {
|
|
@@ -508,6 +619,18 @@ declare type UiToolbarLinkProperties = Omit<UiLinkProperties, 'size'>;
|
|
|
508
619
|
|
|
509
620
|
export declare const UiToolbarLinkType: SchemaType<"UiToolbarLink", RemoteProperties<UiToolbarLinkProperties>, Record<string, never>>;
|
|
510
621
|
|
|
622
|
+
export declare const UiTooltip: Component< {
|
|
623
|
+
[x: string]: unknown;
|
|
624
|
+
}, RemoteProperties<UiPopperProperties>, {
|
|
625
|
+
[x: string]: never;
|
|
626
|
+
}, {
|
|
627
|
+
[x: string]: never;
|
|
628
|
+
}, MethodOptions, {
|
|
629
|
+
[x: string]: never;
|
|
630
|
+
}>;
|
|
631
|
+
|
|
632
|
+
export declare const UiTooltipType: SchemaType<"UiTooltip", RemoteProperties<UiPopperProperties>>;
|
|
633
|
+
|
|
511
634
|
export declare const UiTransition: Component< {
|
|
512
635
|
[x: string]: unknown;
|
|
513
636
|
}, RemoteProperties<UiTransitionProps>, {
|
|
@@ -555,3 +678,10 @@ declare enum VARIANT {
|
|
|
555
678
|
}
|
|
556
679
|
|
|
557
680
|
export { }
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
declare global {
|
|
684
|
+
interface Window {
|
|
685
|
+
MSStream: unknown;
|
|
686
|
+
}
|
|
687
|
+
}
|
package/dist/remote.js
CHANGED
|
@@ -56,6 +56,11 @@ const UiCheckbox = defineRemoteComponent(
|
|
|
56
56
|
UiCheckboxType,
|
|
57
57
|
["click", "focus", "blur"]
|
|
58
58
|
);
|
|
59
|
+
const UiCopyButtonType = "UiCopyButton";
|
|
60
|
+
const UiCopyButton = defineRemoteComponent(
|
|
61
|
+
UiCopyButtonType,
|
|
62
|
+
["click", "focus", "blur"]
|
|
63
|
+
);
|
|
59
64
|
const UiErrorType = "UiError";
|
|
60
65
|
const UiError = defineRemoteComponent(
|
|
61
66
|
UiErrorType,
|
|
@@ -131,6 +136,12 @@ const UiModalWindowSurface = defineRemoteComponent(
|
|
|
131
136
|
"update:overlapped"
|
|
132
137
|
]
|
|
133
138
|
);
|
|
139
|
+
const UiPopperType = "UiPopper";
|
|
140
|
+
const UiPopper = defineRemoteComponent(UiPopperType);
|
|
141
|
+
const UiPopperConnectorType = "UiPopperConnector";
|
|
142
|
+
const UiPopperConnector = defineRemoteComponent(UiPopperConnectorType);
|
|
143
|
+
const UiPopperTargetType = "UiPopperTarget";
|
|
144
|
+
const UiPopperTarget = defineRemoteComponent(UiPopperTargetType);
|
|
134
145
|
const UiRadioType = "UiRadio";
|
|
135
146
|
const UiRadio = defineRemoteComponent(
|
|
136
147
|
UiRadioType,
|
|
@@ -162,6 +173,8 @@ const UiToolbarLink = defineRemoteComponent(
|
|
|
162
173
|
UiToolbarLinkType,
|
|
163
174
|
["click", "focus", "blur"]
|
|
164
175
|
);
|
|
176
|
+
const UiTooltipType = "UiTooltip";
|
|
177
|
+
const UiTooltip = defineRemoteComponent(UiTooltipType);
|
|
165
178
|
const UiTransitionType = "UiTransition";
|
|
166
179
|
const UiTransition = defineRemoteComponent(UiTransitionType);
|
|
167
180
|
const UiYandexMapType = "UiYandexMap";
|
|
@@ -1815,6 +1828,8 @@ export {
|
|
|
1815
1828
|
UiButtonType,
|
|
1816
1829
|
UiCheckbox,
|
|
1817
1830
|
UiCheckboxType,
|
|
1831
|
+
UiCopyButton,
|
|
1832
|
+
UiCopyButtonType,
|
|
1818
1833
|
UiError,
|
|
1819
1834
|
UiErrorType,
|
|
1820
1835
|
UiLink,
|
|
@@ -1827,6 +1842,12 @@ export {
|
|
|
1827
1842
|
UiModalWindowSurface,
|
|
1828
1843
|
UiModalWindowSurfaceType,
|
|
1829
1844
|
UiModalWindowType,
|
|
1845
|
+
UiPopper,
|
|
1846
|
+
UiPopperConnector,
|
|
1847
|
+
UiPopperConnectorType,
|
|
1848
|
+
UiPopperTarget,
|
|
1849
|
+
UiPopperTargetType,
|
|
1850
|
+
UiPopperType,
|
|
1830
1851
|
UiRadio,
|
|
1831
1852
|
UiRadioType,
|
|
1832
1853
|
UiScrollBox,
|
|
@@ -1837,6 +1858,8 @@ export {
|
|
|
1837
1858
|
UiToolbarButtonType,
|
|
1838
1859
|
UiToolbarLink,
|
|
1839
1860
|
UiToolbarLinkType,
|
|
1861
|
+
UiTooltip,
|
|
1862
|
+
UiTooltipType,
|
|
1840
1863
|
UiTransition,
|
|
1841
1864
|
UiTransitionType,
|
|
1842
1865
|
UiYandexMap,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@retailcrm/embed-ui-v1-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.18",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "RetailDriverLLC <integration@retailcrm.ru>",
|
|
7
7
|
"repository": "git@github.com:retailcrm/embed-ui.git",
|
|
@@ -57,7 +57,9 @@
|
|
|
57
57
|
"@omnicajs/vue-remote": "^0.2.5",
|
|
58
58
|
"@remote-ui/rpc": "^1.4.5",
|
|
59
59
|
"@retailcrm/image-preview": "^1.0.2",
|
|
60
|
-
"date-fns": "^4.1.0"
|
|
60
|
+
"date-fns": "^4.1.0",
|
|
61
|
+
"lodash.isequal": "^4.5.0",
|
|
62
|
+
"vue3-perfect-scrollbar": "^1.6.0"
|
|
61
63
|
},
|
|
62
64
|
"devDependencies": {
|
|
63
65
|
"@storybook/addon-a11y": "^8.4.7",
|
|
@@ -74,6 +76,7 @@
|
|
|
74
76
|
"@storybook/types": "^8.4.7",
|
|
75
77
|
"@storybook/vue3": "^8.4.7",
|
|
76
78
|
"@storybook/vue3-vite": "^8.4.7",
|
|
79
|
+
"@types/lodash.isequal": "^4.5.6",
|
|
77
80
|
"@vitejs/plugin-vue": "^5.1.4",
|
|
78
81
|
"@vue/compiler-sfc": "^3.5.12",
|
|
79
82
|
"@vue/test-utils": "^2.4.6",
|
|
@@ -87,11 +90,10 @@
|
|
|
87
90
|
"typescript": "^5.6.3",
|
|
88
91
|
"uuid": "^11.0.3",
|
|
89
92
|
"vite": "^5.4.11",
|
|
90
|
-
"vite-plugin-dts": "^4.
|
|
93
|
+
"vite-plugin-dts": "^4.5.0",
|
|
91
94
|
"vite-svg-loader": "^5.1.0",
|
|
92
95
|
"vitest": "^3.0.4",
|
|
93
96
|
"vue": "^3.5.12",
|
|
94
|
-
"vue-i18n": "10"
|
|
95
|
-
"vue3-perfect-scrollbar": "^1.6.0"
|
|
97
|
+
"vue-i18n": "10"
|
|
96
98
|
}
|
|
97
99
|
}
|