@retailcrm/embed-ui-v1-components 0.9.11-alpha.4 → 0.9.11-alpha.6
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 +7 -10
- package/dist/host.css +4 -0
- package/dist/host.js +7 -10
- package/dist/remote.cjs +8 -5
- package/dist/remote.d.ts +0 -3
- package/dist/remote.js +8 -5
- package/package.json +2 -2
package/dist/host.cjs
CHANGED
|
@@ -8706,11 +8706,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
8706
8706
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
8707
8707
|
const props = __props;
|
|
8708
8708
|
const emit = __emit;
|
|
8709
|
-
const uid2 = vue.useId();
|
|
8709
|
+
const uid2 = "embed-ui-" + vue.useId();
|
|
8710
8710
|
const stepperId = vue.computed(() => props.id ?? uid2);
|
|
8711
|
-
const inputId = vue.computed(() => `${stepperId.value}-input`);
|
|
8712
|
-
const increaseId = vue.computed(() => `${stepperId.value}-increase`);
|
|
8713
|
-
const decreaseId = vue.computed(() => `${stepperId.value}-decrease`);
|
|
8714
8711
|
const i18n = vue.computed(() => _i18n$3.init(vue.inject(I18nInjectKey, null)?.locale ?? _i18n$3.fallback));
|
|
8715
8712
|
const textbox = vue.ref(null);
|
|
8716
8713
|
const model = vue.ref("");
|
|
@@ -8946,7 +8943,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
8946
8943
|
});
|
|
8947
8944
|
return (_ctx, _cache) => {
|
|
8948
8945
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
8949
|
-
id: stepperId.value
|
|
8946
|
+
id: `${stepperId.value}-root`,
|
|
8950
8947
|
class: {
|
|
8951
8948
|
"ui-v1-number-stepper": true,
|
|
8952
8949
|
"ui-v1-number-stepper_horizontal": __props.direction === vue.unref(DIRECTION).HORIZONTAL,
|
|
@@ -8961,8 +8958,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
8961
8958
|
role: "group"
|
|
8962
8959
|
}, _ctx.$attrs), [
|
|
8963
8960
|
vue.createElementVNode("button", {
|
|
8964
|
-
id:
|
|
8965
|
-
"aria-controls":
|
|
8961
|
+
id: `${stepperId.value}-decrease`,
|
|
8962
|
+
"aria-controls": stepperId.value,
|
|
8966
8963
|
"aria-label": decreaseLabel.value,
|
|
8967
8964
|
disabled: !canDecrease.value,
|
|
8968
8965
|
class: "ui-v1-number-stepper__button ui-v1-number-stepper__button_decrease",
|
|
@@ -8981,7 +8978,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
8981
8978
|
}))
|
|
8982
8979
|
], 8, _hoisted_2$4),
|
|
8983
8980
|
vue.createVNode(_sfc_main$q, vue.mergeProps(resolvedTextboxOptions.value, {
|
|
8984
|
-
id:
|
|
8981
|
+
id: stepperId.value,
|
|
8985
8982
|
ref_key: "textbox",
|
|
8986
8983
|
ref: textbox,
|
|
8987
8984
|
value: model.value,
|
|
@@ -9001,8 +8998,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
9001
8998
|
onKeydown: onTextboxKeydown
|
|
9002
8999
|
}), null, 16, ["id", "value", "size", "outlined", "autofit", "readonly", "disabled", "required", "invalid", "input-attributes"]),
|
|
9003
9000
|
vue.createElementVNode("button", {
|
|
9004
|
-
id:
|
|
9005
|
-
"aria-controls":
|
|
9001
|
+
id: `${stepperId.value}-increase`,
|
|
9002
|
+
"aria-controls": stepperId.value,
|
|
9006
9003
|
"aria-label": increaseLabel.value,
|
|
9007
9004
|
disabled: !canIncrease.value,
|
|
9008
9005
|
class: "ui-v1-number-stepper__button ui-v1-number-stepper__button_increase",
|
package/dist/host.css
CHANGED
package/dist/host.js
CHANGED
|
@@ -8704,11 +8704,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8704
8704
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
8705
8705
|
const props = __props;
|
|
8706
8706
|
const emit = __emit;
|
|
8707
|
-
const uid2 = useId();
|
|
8707
|
+
const uid2 = "embed-ui-" + useId();
|
|
8708
8708
|
const stepperId = computed(() => props.id ?? uid2);
|
|
8709
|
-
const inputId = computed(() => `${stepperId.value}-input`);
|
|
8710
|
-
const increaseId = computed(() => `${stepperId.value}-increase`);
|
|
8711
|
-
const decreaseId = computed(() => `${stepperId.value}-decrease`);
|
|
8712
8709
|
const i18n = computed(() => _i18n$3.init(inject(I18nInjectKey, null)?.locale ?? _i18n$3.fallback));
|
|
8713
8710
|
const textbox = ref(null);
|
|
8714
8711
|
const model = ref("");
|
|
@@ -8944,7 +8941,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8944
8941
|
});
|
|
8945
8942
|
return (_ctx, _cache) => {
|
|
8946
8943
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8947
|
-
id: stepperId.value
|
|
8944
|
+
id: `${stepperId.value}-root`,
|
|
8948
8945
|
class: {
|
|
8949
8946
|
"ui-v1-number-stepper": true,
|
|
8950
8947
|
"ui-v1-number-stepper_horizontal": __props.direction === unref(DIRECTION).HORIZONTAL,
|
|
@@ -8959,8 +8956,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8959
8956
|
role: "group"
|
|
8960
8957
|
}, _ctx.$attrs), [
|
|
8961
8958
|
createElementVNode("button", {
|
|
8962
|
-
id:
|
|
8963
|
-
"aria-controls":
|
|
8959
|
+
id: `${stepperId.value}-decrease`,
|
|
8960
|
+
"aria-controls": stepperId.value,
|
|
8964
8961
|
"aria-label": decreaseLabel.value,
|
|
8965
8962
|
disabled: !canDecrease.value,
|
|
8966
8963
|
class: "ui-v1-number-stepper__button ui-v1-number-stepper__button_decrease",
|
|
@@ -8979,7 +8976,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8979
8976
|
}))
|
|
8980
8977
|
], 8, _hoisted_2$4),
|
|
8981
8978
|
createVNode(_sfc_main$q, mergeProps(resolvedTextboxOptions.value, {
|
|
8982
|
-
id:
|
|
8979
|
+
id: stepperId.value,
|
|
8983
8980
|
ref_key: "textbox",
|
|
8984
8981
|
ref: textbox,
|
|
8985
8982
|
value: model.value,
|
|
@@ -8999,8 +8996,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8999
8996
|
onKeydown: onTextboxKeydown
|
|
9000
8997
|
}), null, 16, ["id", "value", "size", "outlined", "autofit", "readonly", "disabled", "required", "invalid", "input-attributes"]),
|
|
9001
8998
|
createElementVNode("button", {
|
|
9002
|
-
id:
|
|
9003
|
-
"aria-controls":
|
|
8999
|
+
id: `${stepperId.value}-increase`,
|
|
9000
|
+
"aria-controls": stepperId.value,
|
|
9004
9001
|
"aria-label": increaseLabel.value,
|
|
9005
9002
|
disabled: !canIncrease.value,
|
|
9006
9003
|
class: "ui-v1-number-stepper__button ui-v1-number-stepper__button_increase",
|
package/dist/remote.cjs
CHANGED
|
@@ -728,6 +728,9 @@ const _hoisted_1$3 = {
|
|
|
728
728
|
class: "ui-v1-select__no-results-text"
|
|
729
729
|
};
|
|
730
730
|
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
731
|
+
...{
|
|
732
|
+
inheritAttrs: false
|
|
733
|
+
},
|
|
731
734
|
__name: "UiSelect",
|
|
732
735
|
props: {
|
|
733
736
|
/** Атрибут id корневого элемента выпадающего списка. Должен быть уникальным на странице */
|
|
@@ -737,8 +740,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
737
740
|
},
|
|
738
741
|
/** Атрибут value, содержащий выбранный элемент из выпадающего списка */
|
|
739
742
|
value: {
|
|
740
|
-
type: null
|
|
741
|
-
default: void 0
|
|
743
|
+
type: null
|
|
742
744
|
},
|
|
743
745
|
/** Атрибут placeholder нативного поля ввода input */
|
|
744
746
|
placeholder: {
|
|
@@ -1055,7 +1057,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1055
1057
|
return (_ctx, _cache) => {
|
|
1056
1058
|
return vue.openBlock(), vue.createBlock(vue.unref(UiPopperConnector), null, {
|
|
1057
1059
|
default: vue.withCtx(() => [
|
|
1058
|
-
vue.createVNode(vue.unref(UiSelectTrigger), {
|
|
1060
|
+
vue.createVNode(vue.unref(UiSelectTrigger), vue.mergeProps({
|
|
1059
1061
|
id: resolvedId.value,
|
|
1060
1062
|
value: state.value,
|
|
1061
1063
|
multiple: __props.multiple,
|
|
@@ -1070,12 +1072,13 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1070
1072
|
"placeholder-only": __props.placeholderOnly,
|
|
1071
1073
|
placeholder: __props.placeholder,
|
|
1072
1074
|
"textbox-size": __props.textboxSize,
|
|
1073
|
-
"active-descendant": activeOptionId.value
|
|
1075
|
+
"active-descendant": activeOptionId.value
|
|
1076
|
+
}, _ctx.$attrs, {
|
|
1074
1077
|
onInput,
|
|
1075
1078
|
onKeydown: onKeyDown,
|
|
1076
1079
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => state.value = $event),
|
|
1077
1080
|
"onUpdate:expanded": _cache[1] || (_cache[1] = ($event) => state.expanded = $event)
|
|
1078
|
-
}, null,
|
|
1081
|
+
}), null, 16, ["id", "value", "multiple", "selection", "filter", "filterable", "clearable", "expanded", "invalid", "disabled", "readonly", "placeholder-only", "placeholder", "textbox-size", "active-descendant"]),
|
|
1079
1082
|
vue.createVNode(vue.unref(UiSelectPopper), {
|
|
1080
1083
|
id: resolvedId.value,
|
|
1081
1084
|
disabled: __props.disabled || __props.readonly,
|
package/dist/remote.d.ts
CHANGED
|
@@ -129,7 +129,6 @@ declare const __VLS_component_2: DefineComponent<ExtractPropTypes<{
|
|
|
129
129
|
/** Атрибут value, содержащий выбранный элемент из выпадающего списка */
|
|
130
130
|
value: {
|
|
131
131
|
type: PropType<unknown | unknown[]>;
|
|
132
|
-
default: undefined;
|
|
133
132
|
};
|
|
134
133
|
/** Атрибут placeholder нативного поля ввода input */
|
|
135
134
|
placeholder: {
|
|
@@ -240,7 +239,6 @@ declare const __VLS_component_2: DefineComponent<ExtractPropTypes<{
|
|
|
240
239
|
/** Атрибут value, содержащий выбранный элемент из выпадающего списка */
|
|
241
240
|
value: {
|
|
242
241
|
type: PropType<unknown | unknown[]>;
|
|
243
|
-
default: undefined;
|
|
244
242
|
};
|
|
245
243
|
/** Атрибут placeholder нативного поля ввода input */
|
|
246
244
|
placeholder: {
|
|
@@ -346,7 +344,6 @@ declare const __VLS_component_2: DefineComponent<ExtractPropTypes<{
|
|
|
346
344
|
id: string;
|
|
347
345
|
placeholder: string;
|
|
348
346
|
disabled: boolean;
|
|
349
|
-
value: undefined;
|
|
350
347
|
expanded: boolean;
|
|
351
348
|
targetTriggers: TriggerSchema | Trigger[];
|
|
352
349
|
popperTriggers: TriggerSchema | Trigger[];
|
package/dist/remote.js
CHANGED
|
@@ -726,6 +726,9 @@ const _hoisted_1$3 = {
|
|
|
726
726
|
class: "ui-v1-select__no-results-text"
|
|
727
727
|
};
|
|
728
728
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
729
|
+
...{
|
|
730
|
+
inheritAttrs: false
|
|
731
|
+
},
|
|
729
732
|
__name: "UiSelect",
|
|
730
733
|
props: {
|
|
731
734
|
/** Атрибут id корневого элемента выпадающего списка. Должен быть уникальным на странице */
|
|
@@ -735,8 +738,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
735
738
|
},
|
|
736
739
|
/** Атрибут value, содержащий выбранный элемент из выпадающего списка */
|
|
737
740
|
value: {
|
|
738
|
-
type: null
|
|
739
|
-
default: void 0
|
|
741
|
+
type: null
|
|
740
742
|
},
|
|
741
743
|
/** Атрибут placeholder нативного поля ввода input */
|
|
742
744
|
placeholder: {
|
|
@@ -1053,7 +1055,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1053
1055
|
return (_ctx, _cache) => {
|
|
1054
1056
|
return openBlock(), createBlock(unref(UiPopperConnector), null, {
|
|
1055
1057
|
default: withCtx(() => [
|
|
1056
|
-
createVNode(unref(UiSelectTrigger), {
|
|
1058
|
+
createVNode(unref(UiSelectTrigger), mergeProps({
|
|
1057
1059
|
id: resolvedId.value,
|
|
1058
1060
|
value: state.value,
|
|
1059
1061
|
multiple: __props.multiple,
|
|
@@ -1068,12 +1070,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1068
1070
|
"placeholder-only": __props.placeholderOnly,
|
|
1069
1071
|
placeholder: __props.placeholder,
|
|
1070
1072
|
"textbox-size": __props.textboxSize,
|
|
1071
|
-
"active-descendant": activeOptionId.value
|
|
1073
|
+
"active-descendant": activeOptionId.value
|
|
1074
|
+
}, _ctx.$attrs, {
|
|
1072
1075
|
onInput,
|
|
1073
1076
|
onKeydown: onKeyDown,
|
|
1074
1077
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => state.value = $event),
|
|
1075
1078
|
"onUpdate:expanded": _cache[1] || (_cache[1] = ($event) => state.expanded = $event)
|
|
1076
|
-
}, null,
|
|
1079
|
+
}), null, 16, ["id", "value", "multiple", "selection", "filter", "filterable", "clearable", "expanded", "invalid", "disabled", "readonly", "placeholder-only", "placeholder", "textbox-size", "active-descendant"]),
|
|
1077
1080
|
createVNode(unref(UiSelectPopper), {
|
|
1078
1081
|
id: resolvedId.value,
|
|
1079
1082
|
disabled: __props.disabled || __props.readonly,
|
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.9.11-alpha.
|
|
4
|
+
"version": "0.9.11-alpha.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "RetailDriverLLC <integration@retailcrm.ru>",
|
|
7
7
|
"repository": "git@github.com:retailcrm/embed-ui.git",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"vue": "^3.5"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@omnicajs/vue-remote": "^0.2.
|
|
57
|
+
"@omnicajs/vue-remote": "^0.2.16",
|
|
58
58
|
"@remote-ui/rpc": "^1.4.7",
|
|
59
59
|
"@retailcrm/image-preview": "^1.0.2",
|
|
60
60
|
"date-fns": "^4.1.0",
|