@retailcrm/embed-ui 0.9.1-alpha.1 → 0.9.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/CHANGELOG.md +15 -0
- package/dist/index.cjs +5 -1
- package/dist/index.mjs +5 -1
- package/dist/meta.json +18 -582
- package/package.json +13 -13
- package/types/host/callable.d.ts +2 -0
- package/types/widget.d.ts +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## [0.9.1](https://github.com/retailcrm/embed-ui/compare/v0.9.1-alpha.2...v0.9.1) (2025-11-24)
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Added goTo method to host callables for navigation inside CRM ([25d72dc](https://github.com/retailcrm/embed-ui/commit/25d72dc84fb4476abe1f9275763fd8a7d6a9a7cd))
|
|
9
|
+
* UiTextbox component - basic text input ([28eda2a](https://github.com/retailcrm/embed-ui/commit/28eda2a659eefdd7a1dbaad8d1c5a40b8e613345))
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Fixed en-GB locale for UiTag ([debe5a5](https://github.com/retailcrm/embed-ui/commit/debe5a5e72579d399f42bbe23a58ddf0f3f501c0))
|
|
14
|
+
## [0.9.1-alpha.2](https://github.com/retailcrm/embed-ui/compare/v0.9.1-alpha.1...v0.9.1-alpha.2) (2025-11-12)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* ref [#102071](https://github.com/retailcrm/embed-ui/issues/102071) Implementation of a general scheme for a card in the orders section and in chats ([ade5857](https://github.com/retailcrm/embed-ui/commit/ade58571a689a073c9b97b36e424ee5c13ab7162))
|
|
4
19
|
## [0.9.1-alpha.1](https://github.com/retailcrm/embed-ui/compare/v0.9.0...v0.9.1-alpha.1) (2025-11-05)
|
|
5
20
|
|
|
6
21
|
### Features
|
package/dist/index.cjs
CHANGED
|
@@ -43,9 +43,12 @@ const useCustomField = (store, code, options = { readonly: false }) => {
|
|
|
43
43
|
const useInternal = pinia.defineStore("@retailcrm/embed-ui/_internal", {});
|
|
44
44
|
const useHost = () => {
|
|
45
45
|
const store = useInternal();
|
|
46
|
+
const endpoint = store.endpoint;
|
|
46
47
|
return {
|
|
48
|
+
goTo(route, params = void 0) {
|
|
49
|
+
return params ? endpoint.call.goTo(route, params) : endpoint.call.goTo(route);
|
|
50
|
+
},
|
|
47
51
|
httpCall(action, payload = void 0) {
|
|
48
|
-
const endpoint = store.endpoint;
|
|
49
52
|
return payload ? endpoint.call.httpCall(action, payload) : endpoint.call.httpCall(action);
|
|
50
53
|
}
|
|
51
54
|
};
|
|
@@ -91,6 +94,7 @@ const createRoot = async (channel) => {
|
|
|
91
94
|
"UiRadio",
|
|
92
95
|
"UiScrollBox",
|
|
93
96
|
"UiTag",
|
|
97
|
+
"UiTextbox",
|
|
94
98
|
"UiToolbarButton",
|
|
95
99
|
"UiToolbarLink",
|
|
96
100
|
"UiTooltip",
|
package/dist/index.mjs
CHANGED
|
@@ -42,9 +42,12 @@ const useCustomField = (store, code, options = { readonly: false }) => {
|
|
|
42
42
|
const useInternal = defineStore("@retailcrm/embed-ui/_internal", {});
|
|
43
43
|
const useHost = () => {
|
|
44
44
|
const store = useInternal();
|
|
45
|
+
const endpoint = store.endpoint;
|
|
45
46
|
return {
|
|
47
|
+
goTo(route, params = void 0) {
|
|
48
|
+
return params ? endpoint.call.goTo(route, params) : endpoint.call.goTo(route);
|
|
49
|
+
},
|
|
46
50
|
httpCall(action, payload = void 0) {
|
|
47
|
-
const endpoint = store.endpoint;
|
|
48
51
|
return payload ? endpoint.call.httpCall(action, payload) : endpoint.call.httpCall(action);
|
|
49
52
|
}
|
|
50
53
|
};
|
|
@@ -90,6 +93,7 @@ const createRoot = async (channel) => {
|
|
|
90
93
|
"UiRadio",
|
|
91
94
|
"UiScrollBox",
|
|
92
95
|
"UiTag",
|
|
96
|
+
"UiTextbox",
|
|
93
97
|
"UiToolbarButton",
|
|
94
98
|
"UiToolbarLink",
|
|
95
99
|
"UiTooltip",
|
package/dist/meta.json
CHANGED
|
@@ -585,256 +585,6 @@
|
|
|
585
585
|
}
|
|
586
586
|
]
|
|
587
587
|
},
|
|
588
|
-
{
|
|
589
|
-
"name": "CreateMgOrderItemInput",
|
|
590
|
-
"fields": [
|
|
591
|
-
{
|
|
592
|
-
"name": "productId",
|
|
593
|
-
"type": "number",
|
|
594
|
-
"description": {
|
|
595
|
-
"en-GB": "Product or service ID",
|
|
596
|
-
"es-ES": "ID del producto o servicio",
|
|
597
|
-
"ru-RU": "Идентификатор товара или услуги"
|
|
598
|
-
}
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
"name": "offerId",
|
|
602
|
-
"type": "number",
|
|
603
|
-
"description": {
|
|
604
|
-
"en-GB": "Trade offer ID",
|
|
605
|
-
"es-ES": "ID de la oferta comercial",
|
|
606
|
-
"ru-RU": "Идентификатор торгового предложения"
|
|
607
|
-
}
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
"name": "priceAmount",
|
|
611
|
-
"type": "number",
|
|
612
|
-
"description": {
|
|
613
|
-
"en-GB": "Price value in order currency",
|
|
614
|
-
"es-ES": "Valor del precio en la moneda del pedido",
|
|
615
|
-
"ru-RU": "Значение цены в валюте заказа"
|
|
616
|
-
}
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
"name": "priceTypeCode",
|
|
620
|
-
"type": "string",
|
|
621
|
-
"description": {
|
|
622
|
-
"en-GB": "Character price type code",
|
|
623
|
-
"es-ES": "Código de tipo de precio de caracteres",
|
|
624
|
-
"ru-RU": "Символьный код типа цены"
|
|
625
|
-
}
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
"name": "quantity",
|
|
629
|
-
"type": "number",
|
|
630
|
-
"description": {
|
|
631
|
-
"en-GB": "Item quantity",
|
|
632
|
-
"es-ES": "Cantidad del artículo",
|
|
633
|
-
"ru-RU": "Количество товарной позиции"
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
]
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
"name": "MgOrderItem",
|
|
640
|
-
"fields": [
|
|
641
|
-
{
|
|
642
|
-
"name": "id",
|
|
643
|
-
"type": "number|null",
|
|
644
|
-
"description": {
|
|
645
|
-
"en-GB": "ID",
|
|
646
|
-
"es-ES": "ID",
|
|
647
|
-
"ru-RU": "Идентификатор"
|
|
648
|
-
}
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
"name": "index",
|
|
652
|
-
"type": "number",
|
|
653
|
-
"description": {
|
|
654
|
-
"en-GB": "Temporary ID while editing order",
|
|
655
|
-
"es-ES": "ID temporal durante la edición del pedido",
|
|
656
|
-
"ru-RU": "Порядковый номер товара в заказе"
|
|
657
|
-
}
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
"name": "type",
|
|
661
|
-
"type": "\"PRODUCT\"|\"SERVICE\"",
|
|
662
|
-
"description": {
|
|
663
|
-
"en-GB": "Item type - product or service",
|
|
664
|
-
"es-ES": "Tipo de artículo - producto o servicio",
|
|
665
|
-
"ru-RU": "Тип товарной позиции - товар или услуга"
|
|
666
|
-
}
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
"name": "product",
|
|
670
|
-
"type": "Product|null",
|
|
671
|
-
"description": {
|
|
672
|
-
"en-GB": "Selected product or service",
|
|
673
|
-
"es-ES": "Producto o servicio seleccionado",
|
|
674
|
-
"ru-RU": "Выбранный товар или услуга"
|
|
675
|
-
}
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
"name": "offer",
|
|
679
|
-
"type": "Offer|null",
|
|
680
|
-
"description": {
|
|
681
|
-
"en-GB": "Trade offer for selected product or service",
|
|
682
|
-
"es-ES": "Oferta comercial para el producto o servicio seleccionado",
|
|
683
|
-
"ru-RU": "Торговое предложение для выбранного товара или услуги"
|
|
684
|
-
}
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
"name": "price",
|
|
688
|
-
"type": "Price",
|
|
689
|
-
"description": {
|
|
690
|
-
"en-GB": "Product price and currency",
|
|
691
|
-
"es-ES": "Precio del producto y moneda",
|
|
692
|
-
"ru-RU": "Цена товара и валюта"
|
|
693
|
-
}
|
|
694
|
-
},
|
|
695
|
-
{
|
|
696
|
-
"name": "quantity",
|
|
697
|
-
"type": "number",
|
|
698
|
-
"description": {
|
|
699
|
-
"en-GB": "Item quantity",
|
|
700
|
-
"es-ES": "Cantidad del artículo",
|
|
701
|
-
"ru-RU": "Количество товарной позиции"
|
|
702
|
-
}
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
"name": "discount",
|
|
706
|
-
"type": "Discount",
|
|
707
|
-
"description": {
|
|
708
|
-
"en-GB": "Final monetary discount including all product and order discounts (in the object currency)",
|
|
709
|
-
"es-ES": "Descuento monetario final incluyendo todos los descuentos del producto y del pedido (en la moneda del objeto)",
|
|
710
|
-
"ru-RU": "Итоговая денежная скидка c учетом всех скидок на товар и заказ (в валюте объекта)"
|
|
711
|
-
}
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
"name": "bonuses",
|
|
715
|
-
"type": "Bonuses",
|
|
716
|
-
"description": {
|
|
717
|
-
"en-GB": "Number of redeemed and accrued bonuses",
|
|
718
|
-
"es-ES": "Cantidad de bonos canjeados y acumulados",
|
|
719
|
-
"ru-RU": "Количество списанных и начисленных бонусов"
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
"name": "total",
|
|
724
|
-
"type": "Money|null",
|
|
725
|
-
"description": {
|
|
726
|
-
"en-GB": "Total item cost including discounts",
|
|
727
|
-
"es-ES": "Coste total del artículo con descuentos",
|
|
728
|
-
"ru-RU": "Общая стоимость товарной позиции с учетом скидок"
|
|
729
|
-
}
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
"name": "totalPerUnit",
|
|
733
|
-
"type": "Money|null",
|
|
734
|
-
"description": {
|
|
735
|
-
"en-GB": "Final unit price of the product",
|
|
736
|
-
"es-ES": "Precio final por unidad del producto",
|
|
737
|
-
"ru-RU": "Итоговая стоимость единицы товара"
|
|
738
|
-
}
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
"name": "status",
|
|
742
|
-
"type": "OrderItemStatus|null",
|
|
743
|
-
"description": {
|
|
744
|
-
"en-GB": "Status",
|
|
745
|
-
"es-ES": "Estado",
|
|
746
|
-
"ru-RU": "Статус"
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
]
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
"name": "Price",
|
|
753
|
-
"fields": [
|
|
754
|
-
{
|
|
755
|
-
"name": "type",
|
|
756
|
-
"type": "PriceType|null",
|
|
757
|
-
"description": {
|
|
758
|
-
"en-GB": "Price type",
|
|
759
|
-
"es-ES": "Tipo de precio",
|
|
760
|
-
"ru-RU": "Тип цены"
|
|
761
|
-
}
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
"name": "value",
|
|
765
|
-
"type": "Money",
|
|
766
|
-
"description": {
|
|
767
|
-
"en-GB": "Product price",
|
|
768
|
-
"es-ES": "Precio del producto",
|
|
769
|
-
"ru-RU": "Цена товара"
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
]
|
|
773
|
-
},
|
|
774
|
-
{
|
|
775
|
-
"name": "MgDiscount",
|
|
776
|
-
"fields": [
|
|
777
|
-
{
|
|
778
|
-
"name": "amount",
|
|
779
|
-
"type": "number",
|
|
780
|
-
"description": {
|
|
781
|
-
"en-GB": "Discount amount",
|
|
782
|
-
"es-ES": "Importe del descuento",
|
|
783
|
-
"ru-RU": "Размер скидки"
|
|
784
|
-
}
|
|
785
|
-
},
|
|
786
|
-
{
|
|
787
|
-
"name": "percent",
|
|
788
|
-
"type": "number",
|
|
789
|
-
"description": {
|
|
790
|
-
"en-GB": "Discount percentage",
|
|
791
|
-
"es-ES": "Porcentaje de descuento",
|
|
792
|
-
"ru-RU": "Процент скидки"
|
|
793
|
-
}
|
|
794
|
-
},
|
|
795
|
-
{
|
|
796
|
-
"name": "share",
|
|
797
|
-
"type": "Money",
|
|
798
|
-
"description": {
|
|
799
|
-
"en-GB": "Discount share",
|
|
800
|
-
"es-ES": "Participación en el descuento",
|
|
801
|
-
"ru-RU": "Доля скидки"
|
|
802
|
-
}
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
"name": "total",
|
|
806
|
-
"type": "Money",
|
|
807
|
-
"description": {
|
|
808
|
-
"en-GB": "Share of the discount in the total final order discount",
|
|
809
|
-
"es-ES": "Participación del descuento en el importe total del descuento final del pedido",
|
|
810
|
-
"ru-RU": "Доля скидки в общем размере итоговой скидки по заказу"
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
]
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
"name": "Bonuses",
|
|
817
|
-
"fields": [
|
|
818
|
-
{
|
|
819
|
-
"name": "charge",
|
|
820
|
-
"type": "number",
|
|
821
|
-
"description": {
|
|
822
|
-
"en-GB": "Amount of charged bonuses",
|
|
823
|
-
"es-ES": "Cantidad de bonos cargados",
|
|
824
|
-
"ru-RU": "Количество списанных бонусов"
|
|
825
|
-
}
|
|
826
|
-
},
|
|
827
|
-
{
|
|
828
|
-
"name": "credit",
|
|
829
|
-
"type": "number",
|
|
830
|
-
"description": {
|
|
831
|
-
"en-GB": "Amount of credited bonuses",
|
|
832
|
-
"es-ES": "Cantidad de bonos acreditados",
|
|
833
|
-
"ru-RU": "Количество начисленных бонусов"
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
]
|
|
837
|
-
},
|
|
838
588
|
{
|
|
839
589
|
"name": "Dimensions",
|
|
840
590
|
"fields": [
|
|
@@ -1041,114 +791,6 @@
|
|
|
1041
791
|
"ru-RU": "Удаляет товарную позицию из заказа"
|
|
1042
792
|
}
|
|
1043
793
|
}
|
|
1044
|
-
],
|
|
1045
|
-
"order/mg": [
|
|
1046
|
-
{
|
|
1047
|
-
"name": "createItem",
|
|
1048
|
-
"arguments": [
|
|
1049
|
-
{
|
|
1050
|
-
"name": "input",
|
|
1051
|
-
"type": "CreateMgOrderItemInput"
|
|
1052
|
-
}
|
|
1053
|
-
],
|
|
1054
|
-
"returns": "Promise<number>",
|
|
1055
|
-
"description": {
|
|
1056
|
-
"en-GB": "Creates and adds a new item to the order",
|
|
1057
|
-
"es-ES": "Crea y agrega un nuevo artículo al pedido",
|
|
1058
|
-
"ru-RU": "Создает и добавляет новую товарную позицию в заказ"
|
|
1059
|
-
}
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
"name": "changeItemPrice",
|
|
1063
|
-
"arguments": [
|
|
1064
|
-
{
|
|
1065
|
-
"name": "item",
|
|
1066
|
-
"type": "OrderItem"
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
"name": "price",
|
|
1070
|
-
"type": "number|Price"
|
|
1071
|
-
}
|
|
1072
|
-
],
|
|
1073
|
-
"returns": "Promise<void>",
|
|
1074
|
-
"description": {
|
|
1075
|
-
"en-GB": "Changes the price value of an item",
|
|
1076
|
-
"es-ES": "Cambia el valor del precio de un artículo",
|
|
1077
|
-
"ru-RU": "Изменяет значение цены и её типа товарной позиции. Изменяет цену, если новый тип цены не пуст"
|
|
1078
|
-
}
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
"name": "changeItemDiscount",
|
|
1082
|
-
"arguments": [
|
|
1083
|
-
{
|
|
1084
|
-
"name": "item",
|
|
1085
|
-
"type": "OrderItem"
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
"name": "discount",
|
|
1089
|
-
"type": "object"
|
|
1090
|
-
}
|
|
1091
|
-
],
|
|
1092
|
-
"returns": "Promise<void>",
|
|
1093
|
-
"description": {
|
|
1094
|
-
"en-GB": "Changes the discount value of an item",
|
|
1095
|
-
"es-ES": "Cambia el valor del descuento de un artículo",
|
|
1096
|
-
"ru-RU": "Изменяет значение скидки товарной позиции"
|
|
1097
|
-
}
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
"name": "changeItemQuantity",
|
|
1101
|
-
"arguments": [
|
|
1102
|
-
{
|
|
1103
|
-
"name": "item",
|
|
1104
|
-
"type": "OrderItem"
|
|
1105
|
-
},
|
|
1106
|
-
{
|
|
1107
|
-
"name": "quantity",
|
|
1108
|
-
"type": "number"
|
|
1109
|
-
}
|
|
1110
|
-
],
|
|
1111
|
-
"returns": "Promise<void>",
|
|
1112
|
-
"description": {
|
|
1113
|
-
"en-GB": "Changes the quantity of an item",
|
|
1114
|
-
"es-ES": "Cambia la cantidad de un artículo",
|
|
1115
|
-
"ru-RU": "Изменяет количество товарной позиции"
|
|
1116
|
-
}
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
"name": "changeItemStatus",
|
|
1120
|
-
"arguments": [
|
|
1121
|
-
{
|
|
1122
|
-
"name": "item",
|
|
1123
|
-
"type": "OrderItem"
|
|
1124
|
-
},
|
|
1125
|
-
{
|
|
1126
|
-
"name": "code",
|
|
1127
|
-
"type": "string"
|
|
1128
|
-
}
|
|
1129
|
-
],
|
|
1130
|
-
"returns": "Promise<void>",
|
|
1131
|
-
"description": {
|
|
1132
|
-
"en-GB": "Changes the status of an item by specified identifier",
|
|
1133
|
-
"es-ES": "Cambia el estado de un artículo por identificador especificado",
|
|
1134
|
-
"ru-RU": "Изменяет статус товарной позиции по указанному коду"
|
|
1135
|
-
}
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
"name": "removeItem",
|
|
1139
|
-
"arguments": [
|
|
1140
|
-
{
|
|
1141
|
-
"name": "item",
|
|
1142
|
-
"type": "OrderItem"
|
|
1143
|
-
}
|
|
1144
|
-
],
|
|
1145
|
-
"returns": "Promise<void>",
|
|
1146
|
-
"description": {
|
|
1147
|
-
"en-GB": "Removes an item from the order",
|
|
1148
|
-
"es-ES": "Elimina un artículo del pedido",
|
|
1149
|
-
"ru-RU": "Удаляет товарную позицию из заказа"
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
794
|
]
|
|
1153
795
|
},
|
|
1154
796
|
"contexts": {
|
|
@@ -1794,212 +1436,6 @@
|
|
|
1794
1436
|
"call": "const orderSettings = useContext()"
|
|
1795
1437
|
}
|
|
1796
1438
|
},
|
|
1797
|
-
"order/mg": {
|
|
1798
|
-
"fields": [
|
|
1799
|
-
{
|
|
1800
|
-
"name": "id",
|
|
1801
|
-
"type": "number|null",
|
|
1802
|
-
"description": {
|
|
1803
|
-
"en-GB": "Order ID in CRM",
|
|
1804
|
-
"es-ES": "ID del pedido en CRM",
|
|
1805
|
-
"ru-RU": "Идентификатор заказа в CRM"
|
|
1806
|
-
},
|
|
1807
|
-
"readonly": true
|
|
1808
|
-
},
|
|
1809
|
-
{
|
|
1810
|
-
"name": "externalId",
|
|
1811
|
-
"type": "string|null",
|
|
1812
|
-
"description": {
|
|
1813
|
-
"en-GB": "The order ID in the external source system",
|
|
1814
|
-
"es-ES": "El ID del pedido en el sistema de origen externo",
|
|
1815
|
-
"ru-RU": "Идентифкатор заказа во внешней системе источника"
|
|
1816
|
-
},
|
|
1817
|
-
"readonly": true
|
|
1818
|
-
},
|
|
1819
|
-
{
|
|
1820
|
-
"name": "type",
|
|
1821
|
-
"type": "string|null",
|
|
1822
|
-
"description": {
|
|
1823
|
-
"en-GB": "Order type code",
|
|
1824
|
-
"es-ES": "Código del tipo de pedido",
|
|
1825
|
-
"ru-RU": "Код типа заказа"
|
|
1826
|
-
},
|
|
1827
|
-
"readonly": true
|
|
1828
|
-
},
|
|
1829
|
-
{
|
|
1830
|
-
"name": "site",
|
|
1831
|
-
"type": "string|null",
|
|
1832
|
-
"description": {
|
|
1833
|
-
"en-GB": "Store code associated with the order",
|
|
1834
|
-
"es-ES": "Código de la tienda asociado al pedido",
|
|
1835
|
-
"ru-RU": "Код магазина, к которому относится заказ"
|
|
1836
|
-
},
|
|
1837
|
-
"readonly": true
|
|
1838
|
-
},
|
|
1839
|
-
{
|
|
1840
|
-
"name": "number",
|
|
1841
|
-
"type": "string",
|
|
1842
|
-
"description": {
|
|
1843
|
-
"en-GB": "Displayed order number",
|
|
1844
|
-
"es-ES": "Número de pedido mostrado",
|
|
1845
|
-
"ru-RU": "Отображаемый номер заказа"
|
|
1846
|
-
},
|
|
1847
|
-
"readonly": true
|
|
1848
|
-
},
|
|
1849
|
-
{
|
|
1850
|
-
"name": "country",
|
|
1851
|
-
"type": "string|null",
|
|
1852
|
-
"description": {
|
|
1853
|
-
"en-GB": "Character code of the country",
|
|
1854
|
-
"es-ES": "Código de caracteres del país",
|
|
1855
|
-
"ru-RU": "Символьный код страны"
|
|
1856
|
-
},
|
|
1857
|
-
"readonly": true
|
|
1858
|
-
},
|
|
1859
|
-
{
|
|
1860
|
-
"name": "currency",
|
|
1861
|
-
"type": "string",
|
|
1862
|
-
"description": {
|
|
1863
|
-
"en-GB": "Currency code",
|
|
1864
|
-
"es-ES": "Código de moneda",
|
|
1865
|
-
"ru-RU": "Символьный код валюты"
|
|
1866
|
-
},
|
|
1867
|
-
"readonly": true
|
|
1868
|
-
},
|
|
1869
|
-
{
|
|
1870
|
-
"name": "customer.id",
|
|
1871
|
-
"type": "number|null",
|
|
1872
|
-
"description": {
|
|
1873
|
-
"en-GB": "Client ID in CRM",
|
|
1874
|
-
"es-ES": "ID del cliente en CRM",
|
|
1875
|
-
"ru-RU": "Идентификатор клиента в CRM"
|
|
1876
|
-
},
|
|
1877
|
-
"readonly": true
|
|
1878
|
-
},
|
|
1879
|
-
{
|
|
1880
|
-
"name": "customer.type",
|
|
1881
|
-
"type": "\"customer\"|\"customer_corporate\"",
|
|
1882
|
-
"description": {
|
|
1883
|
-
"en-GB": "Client type",
|
|
1884
|
-
"es-ES": "Tipo de cliente",
|
|
1885
|
-
"ru-RU": "Тип клиента"
|
|
1886
|
-
},
|
|
1887
|
-
"readonly": true
|
|
1888
|
-
},
|
|
1889
|
-
{
|
|
1890
|
-
"name": "items",
|
|
1891
|
-
"type": "Array<OrderItem>",
|
|
1892
|
-
"description": {
|
|
1893
|
-
"en-GB": "List of items in the order",
|
|
1894
|
-
"es-ES": "Lista de artículos en el pedido",
|
|
1895
|
-
"ru-RU": "Список товарных позиций заказа"
|
|
1896
|
-
},
|
|
1897
|
-
"readonly": true
|
|
1898
|
-
},
|
|
1899
|
-
{
|
|
1900
|
-
"name": "discount.amount",
|
|
1901
|
-
"type": "number",
|
|
1902
|
-
"description": {
|
|
1903
|
-
"en-GB": "One-time discount amount in order currency",
|
|
1904
|
-
"es-ES": "Importe del descuento único en la moneda del pedido",
|
|
1905
|
-
"ru-RU": "Размер одноразовой скидки в валюте заказа"
|
|
1906
|
-
},
|
|
1907
|
-
"readonly": false
|
|
1908
|
-
},
|
|
1909
|
-
{
|
|
1910
|
-
"name": "discount.percent",
|
|
1911
|
-
"type": "number",
|
|
1912
|
-
"description": {
|
|
1913
|
-
"en-GB": "One-time discount percentage",
|
|
1914
|
-
"es-ES": "Porcentaje de descuento único",
|
|
1915
|
-
"ru-RU": "Процент одноразовой скидки"
|
|
1916
|
-
},
|
|
1917
|
-
"readonly": false
|
|
1918
|
-
},
|
|
1919
|
-
{
|
|
1920
|
-
"name": "discount.total",
|
|
1921
|
-
"type": "number",
|
|
1922
|
-
"description": {
|
|
1923
|
-
"en-GB": "Total order discount",
|
|
1924
|
-
"es-ES": "Descuento total del pedido",
|
|
1925
|
-
"ru-RU": "Общая скидка по заказу"
|
|
1926
|
-
},
|
|
1927
|
-
"readonly": true
|
|
1928
|
-
},
|
|
1929
|
-
{
|
|
1930
|
-
"name": "status",
|
|
1931
|
-
"type": "string",
|
|
1932
|
-
"description": {
|
|
1933
|
-
"en-GB": "Order status",
|
|
1934
|
-
"es-ES": "Estado del pedido",
|
|
1935
|
-
"ru-RU": "Статус заказа"
|
|
1936
|
-
},
|
|
1937
|
-
"readonly": true
|
|
1938
|
-
}
|
|
1939
|
-
],
|
|
1940
|
-
"usage": {
|
|
1941
|
-
"import": "import { useContext } from '@retailcrm/embed-ui-v1-contexts/remote/order/mg'",
|
|
1942
|
-
"call": "const order = useContext()"
|
|
1943
|
-
}
|
|
1944
|
-
},
|
|
1945
|
-
"order/mg:settings": {
|
|
1946
|
-
"fields": [
|
|
1947
|
-
{
|
|
1948
|
-
"name": "defaultUnit",
|
|
1949
|
-
"type": "string|null",
|
|
1950
|
-
"description": {
|
|
1951
|
-
"en-GB": "Default quantity unit of measurement",
|
|
1952
|
-
"es-ES": "Unidad de medida de cantidad predeterminada",
|
|
1953
|
-
"ru-RU": "Единица измерения количества по-умолчанию"
|
|
1954
|
-
},
|
|
1955
|
-
"readonly": true
|
|
1956
|
-
},
|
|
1957
|
-
{
|
|
1958
|
-
"name": "duplicatesAllowed",
|
|
1959
|
-
"type": "boolean",
|
|
1960
|
-
"description": {
|
|
1961
|
-
"en-GB": "Possibility of adding the same SKUs to the order as different items",
|
|
1962
|
-
"es-ES": "La posibilidad de añadir las mismas variantes como diferentes productos al pedido",
|
|
1963
|
-
"ru-RU": "Возможность добавлять в заказ одинаковые торговые предложения как разные позиции"
|
|
1964
|
-
},
|
|
1965
|
-
"readonly": true
|
|
1966
|
-
},
|
|
1967
|
-
{
|
|
1968
|
-
"name": "quantityIsFractional",
|
|
1969
|
-
"type": "boolean",
|
|
1970
|
-
"description": {
|
|
1971
|
-
"en-GB": "Integer or fractional quantity of items",
|
|
1972
|
-
"es-ES": "Cantidad entera o fraccionada de productos",
|
|
1973
|
-
"ru-RU": "Целое или дробное количество товара"
|
|
1974
|
-
},
|
|
1975
|
-
"readonly": true
|
|
1976
|
-
},
|
|
1977
|
-
{
|
|
1978
|
-
"name": "priceEditable",
|
|
1979
|
-
"type": "boolean",
|
|
1980
|
-
"description": {
|
|
1981
|
-
"en-GB": "Ability to edit item prices",
|
|
1982
|
-
"es-ES": "Capacidad de editar precios de artículos",
|
|
1983
|
-
"ru-RU": "Возможность редактировать цену товарных позиций"
|
|
1984
|
-
},
|
|
1985
|
-
"readonly": true
|
|
1986
|
-
},
|
|
1987
|
-
{
|
|
1988
|
-
"name": "availableStatuses",
|
|
1989
|
-
"type": "Array<OrderItemStatus>",
|
|
1990
|
-
"description": {
|
|
1991
|
-
"en-GB": "List of available order item statuses",
|
|
1992
|
-
"es-ES": "Lista de estados disponibles de los artículos del pedido",
|
|
1993
|
-
"ru-RU": "Доступные статусы товарных позиций заказа"
|
|
1994
|
-
},
|
|
1995
|
-
"readonly": true
|
|
1996
|
-
}
|
|
1997
|
-
],
|
|
1998
|
-
"usage": {
|
|
1999
|
-
"import": "import { useContext } from '@retailcrm/embed-ui-v1-contexts/remote/order/mg-settings'",
|
|
2000
|
-
"call": "const orderSettings = useContext()"
|
|
2001
|
-
}
|
|
2002
|
-
},
|
|
2003
1439
|
"user/current": {
|
|
2004
1440
|
"fields": [
|
|
2005
1441
|
{
|
|
@@ -2610,8 +2046,8 @@
|
|
|
2610
2046
|
"ru-RU": "Начало секции, над списком товарных позиций"
|
|
2611
2047
|
},
|
|
2612
2048
|
"contexts": [
|
|
2613
|
-
"order/
|
|
2614
|
-
"order/
|
|
2049
|
+
"order/card",
|
|
2050
|
+
"order/card:settings",
|
|
2615
2051
|
"user/current",
|
|
2616
2052
|
"settings"
|
|
2617
2053
|
],
|
|
@@ -2619,7 +2055,7 @@
|
|
|
2619
2055
|
"order"
|
|
2620
2056
|
],
|
|
2621
2057
|
"actions": [
|
|
2622
|
-
"order/
|
|
2058
|
+
"order/card"
|
|
2623
2059
|
]
|
|
2624
2060
|
},
|
|
2625
2061
|
{
|
|
@@ -2635,8 +2071,8 @@
|
|
|
2635
2071
|
"ru-RU": "Конец секции, сразу после списка товарных позиций и до полей ввода скидки, выбора привилегии и т.п."
|
|
2636
2072
|
},
|
|
2637
2073
|
"contexts": [
|
|
2638
|
-
"order/
|
|
2639
|
-
"order/
|
|
2074
|
+
"order/card",
|
|
2075
|
+
"order/card:settings",
|
|
2640
2076
|
"user/current",
|
|
2641
2077
|
"settings"
|
|
2642
2078
|
],
|
|
@@ -2644,7 +2080,7 @@
|
|
|
2644
2080
|
"order"
|
|
2645
2081
|
],
|
|
2646
2082
|
"actions": [
|
|
2647
|
-
"order/
|
|
2083
|
+
"order/card"
|
|
2648
2084
|
]
|
|
2649
2085
|
},
|
|
2650
2086
|
{
|
|
@@ -2660,8 +2096,8 @@
|
|
|
2660
2096
|
"ru-RU": "Начало секции, над полем ввода"
|
|
2661
2097
|
},
|
|
2662
2098
|
"contexts": [
|
|
2663
|
-
"order/
|
|
2664
|
-
"order/
|
|
2099
|
+
"order/card",
|
|
2100
|
+
"order/card:settings",
|
|
2665
2101
|
"user/current",
|
|
2666
2102
|
"settings"
|
|
2667
2103
|
],
|
|
@@ -2669,7 +2105,7 @@
|
|
|
2669
2105
|
"order"
|
|
2670
2106
|
],
|
|
2671
2107
|
"actions": [
|
|
2672
|
-
"order/
|
|
2108
|
+
"order/card"
|
|
2673
2109
|
]
|
|
2674
2110
|
},
|
|
2675
2111
|
{
|
|
@@ -2685,8 +2121,8 @@
|
|
|
2685
2121
|
"ru-RU": "Конец секции, под полями ввода"
|
|
2686
2122
|
},
|
|
2687
2123
|
"contexts": [
|
|
2688
|
-
"order/
|
|
2689
|
-
"order/
|
|
2124
|
+
"order/card",
|
|
2125
|
+
"order/card:settings",
|
|
2690
2126
|
"user/current",
|
|
2691
2127
|
"settings"
|
|
2692
2128
|
],
|
|
@@ -2694,7 +2130,7 @@
|
|
|
2694
2130
|
"order"
|
|
2695
2131
|
],
|
|
2696
2132
|
"actions": [
|
|
2697
|
-
"order/
|
|
2133
|
+
"order/card"
|
|
2698
2134
|
]
|
|
2699
2135
|
},
|
|
2700
2136
|
{
|
|
@@ -2710,8 +2146,8 @@
|
|
|
2710
2146
|
"ru-RU": "Начало секции, над полем ввода"
|
|
2711
2147
|
},
|
|
2712
2148
|
"contexts": [
|
|
2713
|
-
"order/
|
|
2714
|
-
"order/
|
|
2149
|
+
"order/card",
|
|
2150
|
+
"order/card:settings",
|
|
2715
2151
|
"user/current",
|
|
2716
2152
|
"settings"
|
|
2717
2153
|
],
|
|
@@ -2719,7 +2155,7 @@
|
|
|
2719
2155
|
"order"
|
|
2720
2156
|
],
|
|
2721
2157
|
"actions": [
|
|
2722
|
-
"order/
|
|
2158
|
+
"order/card"
|
|
2723
2159
|
]
|
|
2724
2160
|
},
|
|
2725
2161
|
{
|
|
@@ -2735,8 +2171,8 @@
|
|
|
2735
2171
|
"ru-RU": "Конец секции, после списка оплат, контролов и пользовательских полей"
|
|
2736
2172
|
},
|
|
2737
2173
|
"contexts": [
|
|
2738
|
-
"order/
|
|
2739
|
-
"order/
|
|
2174
|
+
"order/card",
|
|
2175
|
+
"order/card:settings",
|
|
2740
2176
|
"user/current",
|
|
2741
2177
|
"settings"
|
|
2742
2178
|
],
|
|
@@ -2744,7 +2180,7 @@
|
|
|
2744
2180
|
"order"
|
|
2745
2181
|
],
|
|
2746
2182
|
"actions": [
|
|
2747
|
-
"order/
|
|
2183
|
+
"order/card"
|
|
2748
2184
|
]
|
|
2749
2185
|
}
|
|
2750
2186
|
],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@retailcrm/embed-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.1
|
|
4
|
+
"version": "0.9.1",
|
|
5
5
|
"description": "API and components for creating RetailCRM UI extensions",
|
|
6
6
|
"repository": "git@github.com:retailcrm/embed-ui.git",
|
|
7
7
|
"author": "RetailDriverLLC <integration@retailcrm.ru>",
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"@floating-ui/core": "^1.6.9",
|
|
39
39
|
"@floating-ui/dom": "^1.6.13",
|
|
40
40
|
"@omnicajs/symfony-router": "^1.0.0",
|
|
41
|
-
"@omnicajs/vue-remote": "^0.2.
|
|
41
|
+
"@omnicajs/vue-remote": "^0.2.8",
|
|
42
42
|
"@remote-ui/rpc": "^1.4.5",
|
|
43
|
-
"@retailcrm/embed-ui-v1-contexts": "^0.9.1
|
|
44
|
-
"@retailcrm/embed-ui-v1-types": "^0.9.1
|
|
43
|
+
"@retailcrm/embed-ui-v1-contexts": "^0.9.1",
|
|
44
|
+
"@retailcrm/embed-ui-v1-types": "^0.9.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@eslint/eslintrc": "^3.
|
|
48
|
-
"@eslint/js": "^9.
|
|
47
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
48
|
+
"@eslint/js": "^9.39.1",
|
|
49
49
|
"@modulify/git-toolkit": "^0.0.2",
|
|
50
50
|
"@modulify/pkg": "^1.0.1",
|
|
51
|
-
"@retailcrm/embed-ui-v1-testing": "^0.9.1
|
|
51
|
+
"@retailcrm/embed-ui-v1-testing": "^0.9.1",
|
|
52
52
|
"@types/git-semver-tags": "^7.0.0",
|
|
53
53
|
"@types/node": "^22.7.9",
|
|
54
54
|
"@types/semver": "^7.5.8",
|
|
@@ -60,20 +60,20 @@
|
|
|
60
60
|
"conventional-changelog": "^6.0.0",
|
|
61
61
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
62
62
|
"conventional-recommended-bump": "^10.0.0",
|
|
63
|
-
"eslint": "^9.
|
|
64
|
-
"eslint-plugin-import": "^2.
|
|
65
|
-
"eslint-plugin-n": "^17.
|
|
63
|
+
"eslint": "^9.39.1",
|
|
64
|
+
"eslint-plugin-import": "^2.32.0",
|
|
65
|
+
"eslint-plugin-n": "^17.23.1",
|
|
66
66
|
"eslint-plugin-promise": "^6.6.0",
|
|
67
67
|
"eslint-plugin-vue": "^9.32.0",
|
|
68
68
|
"figures": "^6.1.0",
|
|
69
69
|
"git-semver-tags": "^7.0.1",
|
|
70
|
-
"glob": "^11.0
|
|
71
|
-
"globals": "^
|
|
70
|
+
"glob": "^11.1.0",
|
|
71
|
+
"globals": "^16.5.0",
|
|
72
72
|
"jsdom": "^25.0.1",
|
|
73
73
|
"pinia": "^2.2.8",
|
|
74
74
|
"semver": "^7.6.3",
|
|
75
75
|
"tsx": "^4.19.2",
|
|
76
|
-
"typescript": "^5.
|
|
76
|
+
"typescript": "^5.9.3",
|
|
77
77
|
"typescript-eslint": "^8.22.0",
|
|
78
78
|
"vite": "^5.4.11",
|
|
79
79
|
"vite-plugin-dts": "^4.5.0",
|
package/types/host/callable.d.ts
CHANGED
package/types/widget.d.ts
CHANGED
|
@@ -129,38 +129,38 @@ export type SchemaListByTarget = {
|
|
|
129
129
|
| 'settings'
|
|
130
130
|
>;
|
|
131
131
|
'order/mg:list.before': Pick<SchemaList,
|
|
132
|
-
| 'order/
|
|
133
|
-
| 'order/
|
|
132
|
+
| 'order/card'
|
|
133
|
+
| 'order/card:settings'
|
|
134
134
|
| 'user/current'
|
|
135
135
|
| 'settings'
|
|
136
136
|
>;
|
|
137
137
|
'order/mg:list.after': Pick<SchemaList,
|
|
138
|
-
| 'order/
|
|
139
|
-
| 'order/
|
|
138
|
+
| 'order/card'
|
|
139
|
+
| 'order/card:settings'
|
|
140
140
|
| 'user/current'
|
|
141
141
|
| 'settings'
|
|
142
142
|
>;
|
|
143
143
|
'order/mg:delivery.before': Pick<SchemaList,
|
|
144
|
-
| 'order/
|
|
145
|
-
| 'order/
|
|
144
|
+
| 'order/card'
|
|
145
|
+
| 'order/card:settings'
|
|
146
146
|
| 'user/current'
|
|
147
147
|
| 'settings'
|
|
148
148
|
>;
|
|
149
149
|
'order/mg:delivery.after': Pick<SchemaList,
|
|
150
|
-
| 'order/
|
|
151
|
-
| 'order/
|
|
150
|
+
| 'order/card'
|
|
151
|
+
| 'order/card:settings'
|
|
152
152
|
| 'user/current'
|
|
153
153
|
| 'settings'
|
|
154
154
|
>;
|
|
155
155
|
'order/mg:payment.before': Pick<SchemaList,
|
|
156
|
-
| 'order/
|
|
157
|
-
| 'order/
|
|
156
|
+
| 'order/card'
|
|
157
|
+
| 'order/card:settings'
|
|
158
158
|
| 'user/current'
|
|
159
159
|
| 'settings'
|
|
160
160
|
>;
|
|
161
161
|
'order/mg:payment.after': Pick<SchemaList,
|
|
162
|
-
| 'order/
|
|
163
|
-
| 'order/
|
|
162
|
+
| 'order/card'
|
|
163
|
+
| 'order/card:settings'
|
|
164
164
|
| 'user/current'
|
|
165
165
|
| 'settings'
|
|
166
166
|
>;
|