@retailcrm/embed-ui-v1-components 0.9.11-alpha.1 → 0.9.11-alpha.2
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/dist/host.cjs +266 -1809
- package/dist/host.css +36 -0
- package/dist/host.d.ts +30 -1
- package/dist/host.js +220 -1763
- package/dist/remote.cjs +230 -2702
- package/dist/remote.d.ts +5 -1
- package/dist/remote.js +157 -2629
- package/package.json +3 -2
package/dist/host.css
CHANGED
|
@@ -1877,6 +1877,8 @@
|
|
|
1877
1877
|
padding-inline-end: var(--gap);
|
|
1878
1878
|
align-items: center;
|
|
1879
1879
|
justify-content: center;
|
|
1880
|
+
border: 0;
|
|
1881
|
+
background: transparent;
|
|
1880
1882
|
cursor: pointer;
|
|
1881
1883
|
z-index: 2;
|
|
1882
1884
|
}
|
|
@@ -1884,6 +1886,7 @@
|
|
|
1884
1886
|
width: var(--icon-size);
|
|
1885
1887
|
min-width: var(--icon-size);
|
|
1886
1888
|
height: var(--icon-size);
|
|
1889
|
+
border-radius: 50%;
|
|
1887
1890
|
color: #AFB9C3;
|
|
1888
1891
|
fill: #AFB9C3;
|
|
1889
1892
|
}
|
|
@@ -1891,6 +1894,18 @@
|
|
|
1891
1894
|
color: var(--ui-v1-textbox-primary-color);
|
|
1892
1895
|
fill: var(--ui-v1-textbox-primary-color);
|
|
1893
1896
|
}
|
|
1897
|
+
.ui-v1-textbox__eraser:disabled {
|
|
1898
|
+
cursor: default;
|
|
1899
|
+
}
|
|
1900
|
+
.ui-v1-textbox__eraser:focus,
|
|
1901
|
+
.ui-v1-textbox__eraser:focus-visible {
|
|
1902
|
+
outline: none;
|
|
1903
|
+
}
|
|
1904
|
+
.ui-v1-textbox__eraser:focus-visible svg {
|
|
1905
|
+
color: var(--ui-v1-textbox-primary-color);
|
|
1906
|
+
fill: var(--ui-v1-textbox-primary-color);
|
|
1907
|
+
box-shadow: 0 0 0 4px var(--ui-v1-textbox-primary-shadow-color);
|
|
1908
|
+
}
|
|
1894
1909
|
.ui-v1-textbox:has(.ui-v1-textbox__icon_trailing) .ui-v1-textbox__eraser {
|
|
1895
1910
|
padding-inline-end: 0;
|
|
1896
1911
|
}
|
|
@@ -2911,9 +2926,15 @@
|
|
|
2911
2926
|
background: #F9FAFB;
|
|
2912
2927
|
}
|
|
2913
2928
|
.ui-v1-modal-sidebar__close {
|
|
2929
|
+
display: inline-flex;
|
|
2930
|
+
align-items: center;
|
|
2931
|
+
justify-content: center;
|
|
2914
2932
|
width: 32px;
|
|
2915
2933
|
min-width: 32px;
|
|
2916
2934
|
height: 32px;
|
|
2935
|
+
border: 0;
|
|
2936
|
+
background: transparent;
|
|
2937
|
+
padding: 0;
|
|
2917
2938
|
color: #AFB9C3;
|
|
2918
2939
|
transition: color 0.25s ease;
|
|
2919
2940
|
cursor: pointer;
|
|
@@ -2924,6 +2945,9 @@
|
|
|
2924
2945
|
.ui-v1-modal-sidebar__close:hover {
|
|
2925
2946
|
color: #636F7F;
|
|
2926
2947
|
}
|
|
2948
|
+
.ui-v1-modal-sidebar__close:disabled {
|
|
2949
|
+
cursor: default;
|
|
2950
|
+
}
|
|
2927
2951
|
.ui-v1-modal {
|
|
2928
2952
|
background: rgba(45, 51, 108, 0.4);
|
|
2929
2953
|
z-index: 1000;
|
|
@@ -2977,6 +3001,9 @@
|
|
|
2977
3001
|
width: 24px;
|
|
2978
3002
|
min-width: 24px;
|
|
2979
3003
|
height: 24px;
|
|
3004
|
+
border: 0;
|
|
3005
|
+
background: transparent;
|
|
3006
|
+
padding: 0;
|
|
2980
3007
|
color: #1E2248;
|
|
2981
3008
|
cursor: pointer;
|
|
2982
3009
|
transition: color 0.25s ease;
|
|
@@ -2988,6 +3015,9 @@
|
|
|
2988
3015
|
.ui-v1-modal-window__close:hover {
|
|
2989
3016
|
color: #636F7F;
|
|
2990
3017
|
}
|
|
3018
|
+
.ui-v1-modal-window__close:disabled {
|
|
3019
|
+
cursor: default;
|
|
3020
|
+
}
|
|
2991
3021
|
.ui-v1-modal-window__content {
|
|
2992
3022
|
padding: 32px 48px 32px 32px;
|
|
2993
3023
|
font-size: 16px;
|
|
@@ -3979,12 +4009,18 @@
|
|
|
3979
4009
|
width: 20px;
|
|
3980
4010
|
min-width: 20px;
|
|
3981
4011
|
height: 20px;
|
|
4012
|
+
display: inline-flex;
|
|
4013
|
+
align-items: center;
|
|
4014
|
+
justify-content: center;
|
|
3982
4015
|
flex-shrink: 0;
|
|
3983
4016
|
color: #AFB9C3;
|
|
3984
4017
|
cursor: pointer;
|
|
3985
4018
|
transition: 0.25s ease;
|
|
3986
4019
|
position: relative;
|
|
3987
4020
|
margin-left: 4px;
|
|
4021
|
+
padding: 0;
|
|
4022
|
+
border: 0;
|
|
4023
|
+
background: transparent;
|
|
3988
4024
|
}
|
|
3989
4025
|
.ui-v1-tag__remove-icon:hover {
|
|
3990
4026
|
color: #636F7F;
|
package/dist/host.d.ts
CHANGED
|
@@ -66,6 +66,12 @@ declare const __VLS_component: DefineComponent_2<ExtractPropTypes<{
|
|
|
66
66
|
validator: (scrolling: string) => boolean;
|
|
67
67
|
default: SCROLLING_2;
|
|
68
68
|
};
|
|
69
|
+
/** ARIA-роль модального контейнера */
|
|
70
|
+
role: {
|
|
71
|
+
type: PropType<MODAL_WINDOW_ROLE>;
|
|
72
|
+
validator: (role: string) => boolean;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
69
75
|
}>, {
|
|
70
76
|
open(): void;
|
|
71
77
|
close(): void;
|
|
@@ -128,6 +134,12 @@ declare const __VLS_component: DefineComponent_2<ExtractPropTypes<{
|
|
|
128
134
|
validator: (scrolling: string) => boolean;
|
|
129
135
|
default: SCROLLING_2;
|
|
130
136
|
};
|
|
137
|
+
/** ARIA-роль модального контейнера */
|
|
138
|
+
role: {
|
|
139
|
+
type: PropType<MODAL_WINDOW_ROLE>;
|
|
140
|
+
validator: (role: string) => boolean;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
131
143
|
}>> & Readonly<{
|
|
132
144
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
133
145
|
onToggle?: ((...args: any[]) => any) | undefined;
|
|
@@ -142,6 +154,7 @@ declare const __VLS_component: DefineComponent_2<ExtractPropTypes<{
|
|
|
142
154
|
}>, {
|
|
143
155
|
closable: boolean;
|
|
144
156
|
id: string;
|
|
157
|
+
role: MODAL_WINDOW_ROLE;
|
|
145
158
|
appearance: APPEARANCE_4;
|
|
146
159
|
disposeTimeout: string | number | null;
|
|
147
160
|
opened: boolean;
|
|
@@ -306,8 +319,17 @@ declare enum INPUTMODE {
|
|
|
306
319
|
}
|
|
307
320
|
declare type Locale = 'en-GB' | 'es-ES' | 'ru-RU';
|
|
308
321
|
declare type Locale_2 = 'en-GB' | 'es-ES' | 'ru-RU';
|
|
322
|
+
declare type MODAL_SIDEBAR_ROLE = 'dialog' | 'alertdialog';
|
|
323
|
+
declare type MODAL_WINDOW_ROLE = 'dialog' | 'alertdialog';
|
|
309
324
|
export declare const ModalPlugin: Plugin_2;
|
|
310
325
|
declare type Numeric = number | string;
|
|
326
|
+
declare type Option_2 = {
|
|
327
|
+
id: string;
|
|
328
|
+
value: unknown;
|
|
329
|
+
label: string;
|
|
330
|
+
disabled?: boolean;
|
|
331
|
+
isMatched(): boolean;
|
|
332
|
+
};
|
|
311
333
|
declare type PlacementLiteral = `${Side}-${Alignment}` | Side;
|
|
312
334
|
declare type PlacementOptions = {
|
|
313
335
|
side: Side;
|
|
@@ -681,6 +703,7 @@ declare type UiModalSidebarProperties = {
|
|
|
681
703
|
fixed?: boolean;
|
|
682
704
|
scrolling?: SCROLLING | `${SCROLLING}`;
|
|
683
705
|
size?: SIZE_7 | `${SIZE_7}`;
|
|
706
|
+
role?: MODAL_SIDEBAR_ROLE;
|
|
684
707
|
};
|
|
685
708
|
export declare const UiModalWindow: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
686
709
|
export declare const UiModalWindowSurface: DefineComponent<UiModalWindowSurfaceProperties, UiModalWindowSurfaceMethods>;
|
|
@@ -697,6 +720,7 @@ declare type UiModalWindowSurfaceProperties = {
|
|
|
697
720
|
responsive?: boolean;
|
|
698
721
|
disposeTimeout?: number | string | null;
|
|
699
722
|
scrolling?: SCROLLING_2 | `${SCROLLING_2}`;
|
|
723
|
+
role?: MODAL_WINDOW_ROLE;
|
|
700
724
|
};
|
|
701
725
|
export declare const UiNumberStepper: DefineComponent<UiNumberStepperProperties, UiNumberStepperMethods>;
|
|
702
726
|
declare type UiNumberStepperMethods = {
|
|
@@ -770,19 +794,24 @@ export declare const UiSelectTrigger: DefineComponent<UiSelectTriggerProperties,
|
|
|
770
794
|
declare type UiSelectTriggerMethods = {
|
|
771
795
|
open(): void;
|
|
772
796
|
close(): void;
|
|
773
|
-
onClick(): void;
|
|
797
|
+
onClick(event?: MouseEvent): void;
|
|
798
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
774
799
|
onInput(event: Event): void;
|
|
775
800
|
onFocus(event: Event): void;
|
|
776
801
|
onBlur(event: Event): void;
|
|
777
802
|
onClear(event: MouseEvent): void;
|
|
778
803
|
};
|
|
779
804
|
declare type UiSelectTriggerProperties = {
|
|
805
|
+
id?: string;
|
|
780
806
|
value?: unknown | unknown[];
|
|
807
|
+
selection?: Option_2[];
|
|
781
808
|
clearable?: boolean;
|
|
782
809
|
filter?: string;
|
|
810
|
+
filterable?: boolean;
|
|
783
811
|
invalid?: boolean;
|
|
784
812
|
multiple?: boolean;
|
|
785
813
|
expanded?: boolean;
|
|
814
|
+
activeDescendant?: string | null;
|
|
786
815
|
placeholder?: string;
|
|
787
816
|
placeholderOnly?: boolean;
|
|
788
817
|
readonly?: boolean;
|