@retailcrm/embed-ui-v1-components 0.9.21 → 0.9.22-alpha.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.
- package/AGENTS.md +3 -3
- package/README.md +3 -4
- package/assets/sprites/actions/add-square-outlined.svg +8 -0
- package/assets/sprites/actions/drag.svg +8 -0
- package/bin/embed-ui-v1-components.mjs +227 -50
- package/bin/postinstall.mjs +2 -1
- package/dist/host.cjs +1204 -488
- package/dist/host.css +629 -0
- package/dist/host.d.ts +100 -20
- package/dist/host.js +1205 -489
- package/dist/remote.cjs +1210 -153
- package/dist/remote.d.ts +786 -36
- package/dist/remote.js +1212 -155
- package/docs/AI.md +19 -20
- package/docs/COMPONENTS.md +58 -59
- package/docs/FORMAT.md +6 -8
- package/docs/PROFILES.md +34 -21
- package/docs/README.md +3 -6
- package/docs/profiles/{UiAddButton.yml → components/UiAddButton.yml} +49 -2
- package/docs/profiles/{UiAlert.yml → components/UiAlert.yml} +32 -2
- package/docs/profiles/{UiAvatar.yml → components/UiAvatar.yml} +17 -3
- package/docs/profiles/{UiAvatarList.yml → components/UiAvatarList.yml} +0 -2
- package/docs/profiles/{UiButton.yml → components/UiButton.yml} +14 -1
- package/docs/profiles/components/UiCalendar.yml +190 -0
- package/docs/profiles/{UiCheckbox.yml → components/UiCheckbox.yml} +28 -2
- package/docs/profiles/{UiCollapse.yml → components/UiCollapse.yml} +57 -2
- package/docs/profiles/{UiCollapseBox.yml → components/UiCollapseBox.yml} +64 -2
- package/docs/profiles/{UiCollapseGroup.yml → components/UiCollapseGroup.yml} +0 -2
- package/docs/profiles/{UiCopyButton.yml → components/UiCopyButton.yml} +19 -2
- package/docs/profiles/{UiDate.yml → components/UiDate.yml} +20 -2
- package/docs/profiles/{UiDatePicker.yml → components/UiDatePicker.yml} +51 -2
- package/docs/profiles/{UiError.yml → components/UiError.yml} +48 -2
- package/docs/profiles/{UiField.yml → components/UiField.yml} +46 -1
- package/docs/profiles/{UiInfobox.yml → components/UiInfobox.yml} +54 -2
- package/docs/profiles/{UiLink.yml → components/UiLink.yml} +22 -2
- package/docs/profiles/{UiLoader.yml → components/UiLoader.yml} +0 -2
- package/docs/profiles/{UiMenuItem.yml → components/UiMenuItem.yml} +0 -2
- package/docs/profiles/{UiMenuItemGroup.yml → components/UiMenuItemGroup.yml} +0 -2
- package/docs/profiles/{UiModalSidebar.yml → components/UiModalSidebar.yml} +80 -2
- package/docs/profiles/components/UiModalWindow.yml +181 -0
- package/docs/profiles/{UiModalWindowSurface.yml → components/UiModalWindowSurface.yml} +0 -2
- package/docs/profiles/{UiNumberStepper.yml → components/UiNumberStepper.yml} +14 -2
- package/docs/profiles/{UiPageHeader.yml → components/UiPageHeader.yml} +39 -1
- package/docs/profiles/components/UiPopconfirm.yml +164 -0
- package/docs/profiles/{UiPopper.yml → components/UiPopper.yml} +66 -1
- package/docs/profiles/{UiPopperConnector.yml → components/UiPopperConnector.yml} +0 -2
- package/docs/profiles/{UiPopperTarget.yml → components/UiPopperTarget.yml} +0 -2
- package/docs/profiles/{UiRadio.yml → components/UiRadio.yml} +15 -2
- package/docs/profiles/{UiRadioSwitch.yml → components/UiRadioSwitch.yml} +55 -1
- package/docs/profiles/{UiRadioSwitchOption.yml → components/UiRadioSwitchOption.yml} +0 -2
- package/docs/profiles/{UiScrollBox.yml → components/UiScrollBox.yml} +45 -2
- package/docs/profiles/{UiSelect.yml → components/UiSelect.yml} +133 -1
- package/docs/profiles/{UiSelectOption.yml → components/UiSelectOption.yml} +0 -2
- package/docs/profiles/{UiSelectOptionGroup.yml → components/UiSelectOptionGroup.yml} +0 -2
- package/docs/profiles/{UiSkeleton.yml → components/UiSkeleton.yml} +11 -2
- package/docs/profiles/{UiSlider.yml → components/UiSlider.yml} +85 -2
- package/docs/profiles/{UiSwitch.yml → components/UiSwitch.yml} +50 -2
- package/docs/profiles/{UiTab.yml → components/UiTab.yml} +126 -2
- package/docs/profiles/{UiTabGroup.yml → components/UiTabGroup.yml} +0 -1
- package/docs/profiles/components/UiTable.yml +622 -0
- package/docs/profiles/{UiTableBodyCell.yml → components/UiTableBodyCell.yml} +0 -2
- package/docs/profiles/{UiTableColumn.yml → components/UiTableColumn.yml} +0 -2
- package/docs/profiles/{UiTableFooterButton.yml → components/UiTableFooterButton.yml} +0 -2
- package/docs/profiles/{UiTableFooterSection.yml → components/UiTableFooterSection.yml} +0 -2
- package/docs/profiles/{UiTableHeadCell.yml → components/UiTableHeadCell.yml} +0 -2
- package/docs/profiles/{UiTableSorter.yml → components/UiTableSorter.yml} +0 -2
- package/docs/profiles/{UiTag.yml → components/UiTag.yml} +13 -2
- package/docs/profiles/{UiTextbox.yml → components/UiTextbox.yml} +20 -1
- package/docs/profiles/{UiTimePicker.yml → components/UiTimePicker.yml} +60 -2
- package/docs/profiles/{UiToggleButton.yml → components/UiToggleButton.yml} +16 -1
- package/docs/profiles/{UiToggleGroup.yml → components/UiToggleGroup.yml} +25 -1
- package/docs/profiles/{UiToggleGroupOption.yml → components/UiToggleGroupOption.yml} +0 -2
- package/docs/profiles/{UiToolbarButton.yml → components/UiToolbarButton.yml} +15 -2
- package/docs/profiles/{UiToolbarLink.yml → components/UiToolbarLink.yml} +13 -2
- package/docs/profiles/{UiTooltip.yml → components/UiTooltip.yml} +18 -2
- package/docs/profiles/{UiTransition.yml → components/UiTransition.yml} +0 -2
- package/docs/profiles/{UiYandexMap.yml → components/UiYandexMap.yml} +24 -2
- package/docs/profiles/pages/CardSettingsPage.yml +58 -0
- package/docs/profiles/pages/CollapseBlockPage.yml +46 -0
- package/docs/profiles/pages/EntityListPage.yml +66 -0
- package/docs/profiles/pages/ModalSidebar.yml +158 -0
- package/docs/profiles/pages/ModalWindow.yml +55 -0
- package/docs/profiles/pages/MultiColumnPage.yml +27 -0
- package/docs/profiles/pages/PageComposition.yml +56 -0
- package/package.json +1 -1
- package/docs/AGENT-DESIGN-GUIDELINES.md +0 -463
- package/docs/assets/page-guidelines/card-settings-page.png +0 -0
- package/docs/assets/page-guidelines/collapse-block-page.png +0 -0
- package/docs/assets/page-guidelines/entity-list-page.png +0 -0
- package/docs/assets/page-guidelines/modal-sidebar.png +0 -0
- package/docs/assets/page-guidelines/modal-window.png +0 -0
- package/docs/assets/page-guidelines/multi-column-page.png +0 -0
- package/docs/profiles/UiCalendar.yml +0 -76
- package/docs/profiles/UiImage.yml +0 -67
- package/docs/profiles/UiModalWindow.yml +0 -86
- package/docs/profiles/UiTable.yml +0 -300
package/dist/host.d.ts
CHANGED
|
@@ -1794,6 +1794,17 @@ declare enum INPUTMODE {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
declare type Locale = 'en-GB' | 'es-ES' | 'ru-RU';
|
|
1796
1796
|
declare type Locale_2 = 'en-GB' | 'es-ES' | 'ru-RU';
|
|
1797
|
+
declare enum LogicTreeNodeView {
|
|
1798
|
+
ACTIONS = "actions",
|
|
1799
|
+
SUMMARY = "summary"
|
|
1800
|
+
}
|
|
1801
|
+
declare enum LogicTreeTone {
|
|
1802
|
+
BLUE = "blue",
|
|
1803
|
+
GREEN = "green",
|
|
1804
|
+
GREY = "grey",
|
|
1805
|
+
RED = "red",
|
|
1806
|
+
YELLOW = "yellow"
|
|
1807
|
+
}
|
|
1797
1808
|
declare type MODAL_SIDEBAR_ROLE = 'dialog' | 'alertdialog';
|
|
1798
1809
|
declare type MODAL_WINDOW_ROLE = 'dialog' | 'alertdialog';
|
|
1799
1810
|
export declare const ModalPlugin: Plugin_2;
|
|
@@ -1866,6 +1877,7 @@ declare enum SCROLLING_2 {
|
|
|
1866
1877
|
NATIVE = "native"
|
|
1867
1878
|
}
|
|
1868
1879
|
declare type ShowingOptions = {
|
|
1880
|
+
visible?: boolean;
|
|
1869
1881
|
shown?: boolean;
|
|
1870
1882
|
targetTriggers?: Trigger[] | TriggerSchema;
|
|
1871
1883
|
popperTriggers?: Trigger[] | TriggerSchema;
|
|
@@ -1876,19 +1888,19 @@ declare type ShowingOptions = {
|
|
|
1876
1888
|
container?: string | null;
|
|
1877
1889
|
};
|
|
1878
1890
|
declare enum SIZE {
|
|
1879
|
-
|
|
1891
|
+
LG = "lg",
|
|
1892
|
+
MD = "md",
|
|
1880
1893
|
SM = "sm",
|
|
1881
|
-
|
|
1894
|
+
XS = "xs"
|
|
1882
1895
|
}
|
|
1883
1896
|
declare enum SIZE_10 {
|
|
1884
1897
|
SM = "sm",
|
|
1885
1898
|
MD = "md"
|
|
1886
1899
|
}
|
|
1887
1900
|
declare enum SIZE_2 {
|
|
1888
|
-
|
|
1889
|
-
MD = "md",
|
|
1901
|
+
XS = "xs",
|
|
1890
1902
|
SM = "sm",
|
|
1891
|
-
|
|
1903
|
+
LG = "lg"
|
|
1892
1904
|
}
|
|
1893
1905
|
declare enum SIZE_3 {
|
|
1894
1906
|
SM = "sm",
|
|
@@ -2020,7 +2032,7 @@ declare type UiAlertMethods = {
|
|
|
2020
2032
|
scrollIntoView(): void;
|
|
2021
2033
|
};
|
|
2022
2034
|
declare type UiAlertProperties = {
|
|
2023
|
-
variant?:
|
|
2035
|
+
variant?: VARIANT_2 | `${VARIANT_2}`;
|
|
2024
2036
|
text?: string;
|
|
2025
2037
|
shown?: boolean;
|
|
2026
2038
|
closable?: boolean;
|
|
@@ -2037,7 +2049,7 @@ declare type UiAvatarListProperties = {
|
|
|
2037
2049
|
src: string;
|
|
2038
2050
|
name: string;
|
|
2039
2051
|
}>;
|
|
2040
|
-
size?:
|
|
2052
|
+
size?: SIZE_2;
|
|
2041
2053
|
};
|
|
2042
2054
|
declare type UiAvatarProperties = {
|
|
2043
2055
|
src?: string;
|
|
@@ -2046,7 +2058,7 @@ declare type UiAvatarProperties = {
|
|
|
2046
2058
|
status?: STATUS;
|
|
2047
2059
|
vip?: boolean;
|
|
2048
2060
|
bad?: boolean;
|
|
2049
|
-
size?:
|
|
2061
|
+
size?: SIZE_2;
|
|
2050
2062
|
optimize?: boolean | {
|
|
2051
2063
|
resize?: Dimensions;
|
|
2052
2064
|
crop?: Dimensions;
|
|
@@ -2062,8 +2074,8 @@ declare type UiButtonProperties = {
|
|
|
2062
2074
|
type?: HTMLButtonElement['type'];
|
|
2063
2075
|
href?: HTMLAnchorElement['href'] | undefined;
|
|
2064
2076
|
appearance?: APPEARANCE | `${APPEARANCE}`;
|
|
2065
|
-
variant?:
|
|
2066
|
-
size?:
|
|
2077
|
+
variant?: VARIANT | `${VARIANT}`;
|
|
2078
|
+
size?: SIZE | `${SIZE}`;
|
|
2067
2079
|
active?: boolean;
|
|
2068
2080
|
disabled?: boolean;
|
|
2069
2081
|
locked?: boolean;
|
|
@@ -2080,7 +2092,7 @@ declare type UiCalendarProperties = {
|
|
|
2080
2092
|
minDate?: Date | null;
|
|
2081
2093
|
maxDate?: Date | null;
|
|
2082
2094
|
nullable?: boolean;
|
|
2083
|
-
locale?:
|
|
2095
|
+
locale?: Locale;
|
|
2084
2096
|
};
|
|
2085
2097
|
export declare const UiCheckbox: DefineComponent<UiCheckboxProperties, UiCheckboxMethods>;
|
|
2086
2098
|
declare type UiCheckboxMethods = {
|
|
@@ -2141,7 +2153,7 @@ declare type UiCollapseProperties = {
|
|
|
2141
2153
|
export declare const UiCopyButton: DefineComponent<UiCopyButtonProperties>;
|
|
2142
2154
|
declare type UiCopyButtonProperties = {
|
|
2143
2155
|
text: string;
|
|
2144
|
-
size:
|
|
2156
|
+
size: SIZE;
|
|
2145
2157
|
tooltipOptions?: TooltipOptions;
|
|
2146
2158
|
};
|
|
2147
2159
|
export declare const UiDate: DefineComponent<UiDateProperties>;
|
|
@@ -2172,12 +2184,12 @@ declare type UiDatePickerProperties = {
|
|
|
2172
2184
|
popperOptions?: Omit<UiPopperProperties, 'visible' | 'target' | 'targetTriggers' | 'popperTriggers' | 'globalTriggers'>;
|
|
2173
2185
|
quickOptions?: QuickOption[];
|
|
2174
2186
|
textboxOptions?: Partial<Omit<UiTextboxProperties, 'id' | 'value' | 'placeholder' | 'clearable' | 'disabled' | 'readonly' | 'active'>>;
|
|
2175
|
-
locale?:
|
|
2187
|
+
locale?: Locale;
|
|
2176
2188
|
};
|
|
2177
2189
|
declare type UiDateProperties = {
|
|
2178
2190
|
date: Date | string;
|
|
2179
2191
|
withTime: boolean;
|
|
2180
|
-
locale?:
|
|
2192
|
+
locale?: Locale;
|
|
2181
2193
|
};
|
|
2182
2194
|
export declare const UiError: DefineComponent<UiErrorProperties>;
|
|
2183
2195
|
declare type UiErrorProperties = {
|
|
@@ -2228,6 +2240,39 @@ declare type UiLoaderProperties = {
|
|
|
2228
2240
|
fixed?: boolean;
|
|
2229
2241
|
overlay?: boolean;
|
|
2230
2242
|
};
|
|
2243
|
+
export declare const UiLogicTreeCaret: DefineComponent<UiLogicTreeCaretProperties>;
|
|
2244
|
+
declare type UiLogicTreeCaretProperties = {
|
|
2245
|
+
active?: boolean;
|
|
2246
|
+
};
|
|
2247
|
+
declare type UiLogicTreeConnector = {
|
|
2248
|
+
continues: boolean;
|
|
2249
|
+
placeholder?: boolean;
|
|
2250
|
+
tone: LogicTreeTone;
|
|
2251
|
+
visible: boolean;
|
|
2252
|
+
};
|
|
2253
|
+
export declare const UiLogicTreeNode: DefineComponent<UiLogicTreeNodeProperties>;
|
|
2254
|
+
export declare const UiLogicTreeNodeIcon: DefineComponent;
|
|
2255
|
+
export declare const UiLogicTreeNodeItem: DefineComponent;
|
|
2256
|
+
declare type UiLogicTreeNodeProperties = {
|
|
2257
|
+
pathKey?: string;
|
|
2258
|
+
nodeView?: LogicTreeNodeView;
|
|
2259
|
+
connectors?: UiLogicTreeConnector[];
|
|
2260
|
+
conjunction?: string;
|
|
2261
|
+
conjunctionEndPathKey?: string;
|
|
2262
|
+
conjunctionLabel?: string;
|
|
2263
|
+
conjunctionOffset?: number;
|
|
2264
|
+
conjunctionStartPathKey?: string;
|
|
2265
|
+
conjunctionTone?: LogicTreeTone;
|
|
2266
|
+
groupedHeader?: boolean;
|
|
2267
|
+
grouped?: boolean;
|
|
2268
|
+
groupedPosition?: 'end' | 'middle' | 'single' | 'start';
|
|
2269
|
+
editable?: boolean;
|
|
2270
|
+
disabled?: boolean;
|
|
2271
|
+
highlighted?: boolean;
|
|
2272
|
+
selected?: boolean;
|
|
2273
|
+
};
|
|
2274
|
+
export declare const UiLogicTreeRoot: DefineComponent<UiLogicTreeRootProperties>;
|
|
2275
|
+
declare type UiLogicTreeRootProperties = Record<string, never>;
|
|
2231
2276
|
export declare const UiMenuItem: DefineComponent<UiMenuItemProperties>;
|
|
2232
2277
|
export declare const UiMenuItemGroup: DefineComponent;
|
|
2233
2278
|
declare type UiMenuItemProperties = {
|
|
@@ -2931,6 +2976,41 @@ export declare const UiPageHeaderTitle: DefineComponent_2<ExtractPropTypes<{
|
|
|
2931
2976
|
};
|
|
2932
2977
|
}) | null;
|
|
2933
2978
|
}, any>;
|
|
2979
|
+
export declare type UiPopconfirmMethods = {
|
|
2980
|
+
adjust(): Promise<void>;
|
|
2981
|
+
close(): void;
|
|
2982
|
+
dispose(): void;
|
|
2983
|
+
open(): void;
|
|
2984
|
+
toggle(): void;
|
|
2985
|
+
};
|
|
2986
|
+
export declare const UiPopconfirmPopper: DefineComponent<UiPopconfirmPopperProperties, UiPopconfirmPopperMethods>;
|
|
2987
|
+
export declare type UiPopconfirmPopperMethods = {
|
|
2988
|
+
adjust(): Promise<void>;
|
|
2989
|
+
close(): void;
|
|
2990
|
+
dispose(): void;
|
|
2991
|
+
open(): void;
|
|
2992
|
+
};
|
|
2993
|
+
export declare type UiPopconfirmPopperOptions = Partial<Omit<UiPopperProperties, 'target' | 'visible' | 'targetTriggers' | 'popperTriggers' | 'globalTriggers' | 'placement' | 'withArrow'>>;
|
|
2994
|
+
export declare type UiPopconfirmPopperProperties = {
|
|
2995
|
+
id?: string;
|
|
2996
|
+
visible?: boolean;
|
|
2997
|
+
title?: string;
|
|
2998
|
+
okVariant?: VARIANT | `${VARIANT}`;
|
|
2999
|
+
okTitle?: string | null;
|
|
3000
|
+
cancelTitle?: string | null;
|
|
3001
|
+
cancelAppearance?: APPEARANCE | `${APPEARANCE}`;
|
|
3002
|
+
cancelVariant?: VARIANT | `${VARIANT}`;
|
|
3003
|
+
buttonSize?: SIZE | `${SIZE}`;
|
|
3004
|
+
placement?: UiPopperProperties['placement'];
|
|
3005
|
+
popperClass?: string | null;
|
|
3006
|
+
popperOptions?: UiPopconfirmPopperOptions;
|
|
3007
|
+
locale?: Locale;
|
|
3008
|
+
};
|
|
3009
|
+
export declare type UiPopconfirmProperties = UiPopconfirmPopperProperties;
|
|
3010
|
+
export declare const UiPopconfirmTrigger: DefineComponent<UiPopconfirmTriggerProperties>;
|
|
3011
|
+
export declare type UiPopconfirmTriggerProperties = {
|
|
3012
|
+
visible?: boolean;
|
|
3013
|
+
};
|
|
2934
3014
|
export declare const UiPopper: DefineComponent<UiPopperProperties & {
|
|
2935
3015
|
target: Ref<HTMLElement | null>;
|
|
2936
3016
|
}, UiPopperMethods>;
|
|
@@ -3608,21 +3688,21 @@ export declare enum VALIGN {
|
|
|
3608
3688
|
BOTTOM = "bottom"
|
|
3609
3689
|
}
|
|
3610
3690
|
declare enum VARIANT {
|
|
3611
|
-
|
|
3612
|
-
WARNING = "warning",
|
|
3691
|
+
DEFAULT = "default",
|
|
3613
3692
|
SUCCESS = "success",
|
|
3614
3693
|
DANGER = "danger"
|
|
3615
3694
|
}
|
|
3616
3695
|
declare enum VARIANT_2 {
|
|
3617
|
-
|
|
3696
|
+
PRIMARY = "primary",
|
|
3697
|
+
WARNING = "warning",
|
|
3618
3698
|
SUCCESS = "success",
|
|
3619
3699
|
DANGER = "danger"
|
|
3620
3700
|
}
|
|
3621
3701
|
export declare class VueI18n {
|
|
3622
3702
|
private _state;
|
|
3623
|
-
constructor(locale?:
|
|
3624
|
-
get locale():
|
|
3625
|
-
set locale(locale:
|
|
3703
|
+
constructor(locale?: Locale_2 | undefined);
|
|
3704
|
+
get locale(): Locale_2 | undefined;
|
|
3705
|
+
set locale(locale: Locale_2 | undefined);
|
|
3626
3706
|
}
|
|
3627
3707
|
declare enum WIDTH {
|
|
3628
3708
|
FIT = "fit",
|