@snabcentr/vue-ui-lib 6.0.0 → 6.0.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/manifest.json +2 -2
- package/dist/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +76 -61
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +4 -4
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/catalog/interfaces/events/i-category-emits.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-catalog-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-catalogable-item-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-category-collapse-item-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-category-collapse-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-product-actions-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-product-cost-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-product-name-properties.d.ts +1 -1
- package/dist/src/components/catalog/product-table-columns-definitions.d.ts +1 -1
- package/dist/src/components/configurators/kozyrek/classes/kozyrek-template.d.ts +1 -1
- package/dist/src/components/orders/blocks/order-items-list.vue.d.ts +11 -2
- package/dist/src/components/orders/simple/order-product-info.vue.d.ts +11 -0
- package/dist/src/helpers/address-quality-label-helper.d.ts +1 -0
- package/dist/src/orders/order-marker-colors.d.ts +1 -1
- package/dist/src/orders/order-status-colors.d.ts +1 -1
- package/dist/src/properties/interfaces/i-order-info-property.d.ts +1 -1
- package/dist/src/properties/interfaces/i-orders-table-fields.d.ts +1 -1
- package/package.json +2 -2
- package/dist/src/test/component-test-support.d.ts +0 -133
package/dist/sc-vue-ui-lib.js
CHANGED
|
@@ -303,11 +303,7 @@ var Cr = "(hover: hover) and (pointer: fine)", wr = () => {
|
|
|
303
303
|
}, !0), yt(t);
|
|
304
304
|
}, Tr = class {
|
|
305
305
|
static getLabel(t) {
|
|
306
|
-
|
|
307
|
-
case e.Incomplete: return "Неполный адрес";
|
|
308
|
-
case e.Undetermined: return "Полнота адреса не определена";
|
|
309
|
-
default: return;
|
|
310
|
-
}
|
|
306
|
+
return t === e.Incomplete || t === e.Undetermined ? "Проверьте адрес" : void 0;
|
|
311
307
|
}
|
|
312
308
|
}, Er = ".sc-versions-list";
|
|
313
309
|
function Dr(e, t, n) {
|
|
@@ -965,7 +961,7 @@ var wi = it({
|
|
|
965
961
|
let n = e.__vccOpts || e;
|
|
966
962
|
for (let [e, r] of t) n[e] = r;
|
|
967
963
|
return n;
|
|
968
|
-
}, Ii = /*#__PURE__*/ Fi(Pi, [["__scopeId", "data-v-
|
|
964
|
+
}, Ii = /*#__PURE__*/ Fi(Pi, [["__scopeId", "data-v-f7f7fed1"]]), Li = {
|
|
969
965
|
viewBox: "0 0 512 512",
|
|
970
966
|
width: "1.2em",
|
|
971
967
|
height: "1.2em"
|
|
@@ -3180,7 +3176,7 @@ var wo = it({
|
|
|
3180
3176
|
}, 8, ["model", "rules"])), [[V(ar), () => a("submit", c.value)]]);
|
|
3181
3177
|
};
|
|
3182
3178
|
}
|
|
3183
|
-
}), [["__scopeId", "data-v-
|
|
3179
|
+
}), [["__scopeId", "data-v-d7be5193"]]), Vo = Object.defineProperty, Ho = Object.defineProperties, Uo = Object.getOwnPropertyDescriptors, Wo = Object.getOwnPropertySymbols, Go = Object.prototype.hasOwnProperty, Ko = Object.prototype.propertyIsEnumerable, qo = (e) => {
|
|
3184
3180
|
throw TypeError(e);
|
|
3185
3181
|
}, Jo = (e, t, n) => t in e ? Vo(e, t, {
|
|
3186
3182
|
enumerable: !0,
|
|
@@ -12835,7 +12831,7 @@ var Gp = {
|
|
|
12835
12831
|
}, 8, ["name", "data-id"]);
|
|
12836
12832
|
};
|
|
12837
12833
|
}
|
|
12838
|
-
}), [["__scopeId", "data-v-
|
|
12834
|
+
}), [["__scopeId", "data-v-955d9ea8"]]), am = { class: "sc-collapse flex w-full flex-col" }, om = /* @__PURE__ */ F({
|
|
12839
12835
|
__name: "collapse",
|
|
12840
12836
|
props: {
|
|
12841
12837
|
defaultExpandedNames: { default: () => [] },
|
|
@@ -14233,11 +14229,11 @@ var Ih = it({
|
|
|
14233
14229
|
onKeydown: [jt(Mt((t) => V(u).selectHandler(e.index), ["prevent"]), ["enter"]), jt(Mt((t) => V(u).selectHandler(e.index), ["prevent"]), ["space"])]
|
|
14234
14230
|
}, B(e.day), 43, ig))), 128))])
|
|
14235
14231
|
]))), 128))], 2),
|
|
14236
|
-
t[4] ||= et("<div class=\"flex flex-wrap items-center gap-x-6 gap-y-1 text-xs text-gray-700\" data-v-
|
|
14232
|
+
t[4] ||= et("<div class=\"flex flex-wrap items-center gap-x-6 gap-y-1 text-xs text-gray-700\" data-v-0a24c228><span class=\"flex items-center gap-2\" data-v-0a24c228><i class=\"sc-legend sc-legend--bound\" data-v-0a24c228></i>Дата начала</span><span class=\"flex items-center gap-2\" data-v-0a24c228><i class=\"sc-legend sc-legend--in-range\" data-v-0a24c228></i>Выбранный период</span><span class=\"flex items-center gap-2\" data-v-0a24c228><i class=\"sc-legend sc-legend--bound\" data-v-0a24c228></i>Дата окончания</span></div>", 1)
|
|
14237
14233
|
], 36);
|
|
14238
14234
|
};
|
|
14239
14235
|
}
|
|
14240
|
-
}), [["__scopeId", "data-v-
|
|
14236
|
+
}), [["__scopeId", "data-v-0a24c228"]]), og = { class: "flex items-center justify-between gap-2" }, sg = { class: "flex items-center gap-2" }, cg = { class: "text-center font-semibold" }, lg = { class: "grid grid-cols-3 gap-2" }, ug = [
|
|
14241
14237
|
"onPointerdown",
|
|
14242
14238
|
"onPointerenter",
|
|
14243
14239
|
"onKeydown"
|
|
@@ -14317,7 +14313,7 @@ var Ih = it({
|
|
|
14317
14313
|
}, B(t), 43, ug))), 128))])]))), 128))], 2)], 36);
|
|
14318
14314
|
};
|
|
14319
14315
|
}
|
|
14320
|
-
}), [["__scopeId", "data-v-
|
|
14316
|
+
}), [["__scopeId", "data-v-4b12bde5"]]), fg = { class: "sc-date-range-sidebar flex flex-col gap-1" }, pg = { class: "flex items-center justify-center gap-1" }, mg = { class: "min-w-12 text-center font-semibold" }, hg = { class: "grid grid-flow-col grid-cols-2 grid-rows-6 gap-1" }, gg = /* @__PURE__ */ F({
|
|
14321
14317
|
__name: "month-year-sidebar",
|
|
14322
14318
|
props: {
|
|
14323
14319
|
year: {},
|
|
@@ -15676,7 +15672,7 @@ var B_ = it({
|
|
|
15676
15672
|
"only-countries"
|
|
15677
15673
|
]));
|
|
15678
15674
|
}
|
|
15679
|
-
}), [["__scopeId", "data-v-
|
|
15675
|
+
}), [["__scopeId", "data-v-4f05dd7b"]]), G_ = { class: "mb-7 grid grid-cols-2 gap-3.5 lg:grid-cols-4" }, K_ = { class: "mb-2 text-[11.5px] font-semibold uppercase text-gray-500" }, q_ = /* @__PURE__ */ F({
|
|
15680
15676
|
__name: "kpi-grid",
|
|
15681
15677
|
props: {
|
|
15682
15678
|
items: {},
|
|
@@ -24227,7 +24223,7 @@ var lE = ib({
|
|
|
24227
24223
|
])) : (L(), j("span", KE, B(e.item.quantity) + " " + B(e.item.product.unit.name), 1))], 64))]);
|
|
24228
24224
|
};
|
|
24229
24225
|
}
|
|
24230
|
-
}), [["__scopeId", "data-v-
|
|
24226
|
+
}), [["__scopeId", "data-v-cdbe0119"]]), JE = {
|
|
24231
24227
|
viewBox: "0 0 24 24",
|
|
24232
24228
|
width: "1.2em",
|
|
24233
24229
|
height: "1.2em"
|
|
@@ -24498,6 +24494,10 @@ var nD = it({
|
|
|
24498
24494
|
inactive: {
|
|
24499
24495
|
type: Boolean,
|
|
24500
24496
|
default: !1
|
|
24497
|
+
},
|
|
24498
|
+
showActions: {
|
|
24499
|
+
type: Boolean,
|
|
24500
|
+
default: void 0
|
|
24501
24501
|
}
|
|
24502
24502
|
},
|
|
24503
24503
|
setup(e) {
|
|
@@ -24520,7 +24520,7 @@ var nD = it({
|
|
|
24520
24520
|
"allow-edit",
|
|
24521
24521
|
"update-quantity-on-input",
|
|
24522
24522
|
"class"
|
|
24523
|
-
]), e.allowEdit ? z(t.$slots, "actions", {}, void 0, void 0, 0) : A("", !0)]),
|
|
24523
|
+
]), e.showActions ?? e.allowEdit ? z(t.$slots, "actions", {}, void 0, void 0, 0) : A("", !0)]),
|
|
24524
24524
|
M("div", { class: lt(["grid grid-flow-col grid-rows-2 gap-1 text-base", n.value]) }, [
|
|
24525
24525
|
r[0] ||= M("span", null, "Цена за ед.", -1),
|
|
24526
24526
|
P(na, {
|
|
@@ -24532,7 +24532,8 @@ var nD = it({
|
|
|
24532
24532
|
product: e.product,
|
|
24533
24533
|
"cost-field-name": "cost"
|
|
24534
24534
|
}, null, 8, ["product"])
|
|
24535
|
-
], 2)
|
|
24535
|
+
], 2),
|
|
24536
|
+
z(t.$slots, "extra")
|
|
24536
24537
|
])]));
|
|
24537
24538
|
}
|
|
24538
24539
|
}), TD = { class: "flex items-center gap-1.5" }, ED = {
|
|
@@ -24656,6 +24657,10 @@ var MD = it({
|
|
|
24656
24657
|
type: Function,
|
|
24657
24658
|
default: void 0
|
|
24658
24659
|
},
|
|
24660
|
+
isItemRemovable: {
|
|
24661
|
+
type: Function,
|
|
24662
|
+
default: void 0
|
|
24663
|
+
},
|
|
24659
24664
|
updateQuantityOnInput: {
|
|
24660
24665
|
type: Boolean,
|
|
24661
24666
|
default: !0
|
|
@@ -24666,23 +24671,28 @@ var MD = it({
|
|
|
24666
24671
|
}),
|
|
24667
24672
|
emits: ["update:selectedRowKeys"],
|
|
24668
24673
|
setup(e) {
|
|
24669
|
-
let t = e, n = Et(e, "selectedRowKeys"), r = (e) => Re(e, "ord"), i = O(() => r(t.products)), a = (e) => t.isItemInactive ? t.isItemInactive(e) : !!e.isRemoved || !!e.replacementId, o = (e) => t.isItemSelectable ? t.isItemSelectable(e) : !a(e), s = (e, t) => {
|
|
24674
|
+
let t = e, n = Et(e, "selectedRowKeys"), r = (e) => Re(e, "ord"), i = O(() => r(t.products)), a = (e) => t.isItemInactive ? t.isItemInactive(e) : !!e.isRemoved || !!e.replacementId, o = (e) => t.isItemSelectable ? t.isItemSelectable(e) : !a(e), s = (e) => t.isItemRemovable ? t.isItemRemovable(e) : !a(e), c = (e, t) => {
|
|
24670
24675
|
t ? n.value.includes(e) || (n.value = [...n.value, e]) : n.value = n.value.filter((t) => t !== e);
|
|
24671
|
-
},
|
|
24676
|
+
}, l = (e) => t.selectable ? { class: n.value.includes(e.id) ? void 0 : "opacity-60" } : {}, u = (e, t) => {
|
|
24672
24677
|
let n = i.value, r = e.logicGroupId;
|
|
24673
24678
|
if (!r) return 1;
|
|
24674
24679
|
let a = n.at(t - 1);
|
|
24675
24680
|
if (t && a && a.logicGroupId === r) return 0;
|
|
24676
24681
|
let o = n.slice(t), s = o.findIndex((e) => e.logicGroupId !== r);
|
|
24677
24682
|
return s === -1 ? o.length : s;
|
|
24678
|
-
},
|
|
24683
|
+
}, d = (e) => s(e) ? I(nn, {
|
|
24679
24684
|
quaternary: !0,
|
|
24680
24685
|
size: "small",
|
|
24681
24686
|
type: "error",
|
|
24682
24687
|
onClick: () => {
|
|
24683
24688
|
t.eventEmitter?.emit("order-item:delete", { item: e });
|
|
24684
24689
|
}
|
|
24685
|
-
}, () => I(MD))
|
|
24690
|
+
}, () => I(MD)) : null, f = (e, n) => (t.extraColumns ?? []).flatMap((t) => {
|
|
24691
|
+
let r = t.render?.(e, n);
|
|
24692
|
+
if (Te(r) || r === "" || r === !1) return [];
|
|
24693
|
+
let i = we(t.title) ? t.title(t) : t.title;
|
|
24694
|
+
return [I("div", { class: "flex flex-col items-start gap-1 text-sm" }, [I("span", { class: "text-sc-dark-grey" }, [i]), r])];
|
|
24695
|
+
}), p = R(br.getDeviceTypeByResolution()), m = R(window.innerWidth), h = O(() => !Te(t.maxHeight) || !Te(t.groups)), g = () => {
|
|
24686
24696
|
let e = [
|
|
24687
24697
|
{
|
|
24688
24698
|
title: "№ п.п.",
|
|
@@ -24695,13 +24705,14 @@ var MD = it({
|
|
|
24695
24705
|
title: "Артикул",
|
|
24696
24706
|
key: "codeNumber",
|
|
24697
24707
|
resizable: !0,
|
|
24698
|
-
width:
|
|
24708
|
+
width: m.value >= 1536 ? 156 : 120,
|
|
24699
24709
|
render: (e) => I("span", { class: `text-base${a(e) ? " line-through opacity-50" : ""}` }, [e.product.code])
|
|
24700
24710
|
},
|
|
24701
24711
|
{
|
|
24702
24712
|
title: "Наименование",
|
|
24703
24713
|
key: "name",
|
|
24704
24714
|
resizable: !0,
|
|
24715
|
+
minWidth: Te(t.groups) ? void 0 : 240,
|
|
24705
24716
|
render: (e) => I(bD, {
|
|
24706
24717
|
item: e,
|
|
24707
24718
|
inactive: a(e)
|
|
@@ -24712,7 +24723,7 @@ var MD = it({
|
|
|
24712
24723
|
key: "quantity",
|
|
24713
24724
|
resizable: !0,
|
|
24714
24725
|
width: 180,
|
|
24715
|
-
rowSpan:
|
|
24726
|
+
rowSpan: u,
|
|
24716
24727
|
render: (e) => I(qE, {
|
|
24717
24728
|
class: a(e) ? "line-through opacity-50" : "",
|
|
24718
24729
|
item: e,
|
|
@@ -24725,7 +24736,7 @@ var MD = it({
|
|
|
24725
24736
|
title: "Цена за ед.",
|
|
24726
24737
|
key: "costOneRub",
|
|
24727
24738
|
resizable: !0,
|
|
24728
|
-
width:
|
|
24739
|
+
width: h.value ? 170 : 120,
|
|
24729
24740
|
render: (e) => I("div", { class: a(e) ? "line-through opacity-50" : "" }, [I(na, {
|
|
24730
24741
|
product: e,
|
|
24731
24742
|
costFieldName: "costOne",
|
|
@@ -24736,7 +24747,7 @@ var MD = it({
|
|
|
24736
24747
|
title: "Сумма",
|
|
24737
24748
|
key: "cost",
|
|
24738
24749
|
resizable: !0,
|
|
24739
|
-
width:
|
|
24750
|
+
width: h.value ? 140 : 120,
|
|
24740
24751
|
render: (e) => I("div", { class: a(e) ? "line-through opacity-50" : "" }, [I(na, {
|
|
24741
24752
|
product: e,
|
|
24742
24753
|
costFieldName: "cost",
|
|
@@ -24748,8 +24759,8 @@ var MD = it({
|
|
|
24748
24759
|
title: "",
|
|
24749
24760
|
key: "delete",
|
|
24750
24761
|
width: 44,
|
|
24751
|
-
rowSpan:
|
|
24752
|
-
render: (e) =>
|
|
24762
|
+
rowSpan: u,
|
|
24763
|
+
render: (e) => d(e)
|
|
24753
24764
|
}] : []
|
|
24754
24765
|
], r = t.selectable ? [{
|
|
24755
24766
|
key: "checkbox",
|
|
@@ -24759,7 +24770,7 @@ var MD = it({
|
|
|
24759
24770
|
cellProps: (e) => ({
|
|
24760
24771
|
class: o(e) ? "cursor-pointer" : void 0,
|
|
24761
24772
|
onClick: () => {
|
|
24762
|
-
o(e) &&
|
|
24773
|
+
o(e) && c(e.id, !n.value.includes(e.id));
|
|
24763
24774
|
}
|
|
24764
24775
|
}),
|
|
24765
24776
|
render: (e) => I(rn, {
|
|
@@ -24767,58 +24778,68 @@ var MD = it({
|
|
|
24767
24778
|
disabled: !o(e)
|
|
24768
24779
|
})
|
|
24769
24780
|
}] : [];
|
|
24770
|
-
switch (
|
|
24781
|
+
switch (p.value) {
|
|
24771
24782
|
case yr.phone:
|
|
24772
24783
|
case yr.tablet: return [...r, {
|
|
24773
24784
|
title: "",
|
|
24774
24785
|
key: "items",
|
|
24775
24786
|
resizable: !0,
|
|
24776
24787
|
render: (e, n) => {
|
|
24777
|
-
let r =
|
|
24788
|
+
let r = u(e, n) > 0, i = t.allowEdit && !a(e) && r;
|
|
24778
24789
|
return I(wD, {
|
|
24779
24790
|
product: e,
|
|
24780
24791
|
index: n,
|
|
24781
24792
|
eventEmitter: t.eventEmitter,
|
|
24782
24793
|
allowEdit: i,
|
|
24783
24794
|
updateQuantityOnInput: t.updateQuantityOnInput,
|
|
24784
|
-
inactive: a(e)
|
|
24785
|
-
|
|
24795
|
+
inactive: a(e),
|
|
24796
|
+
showActions: t.allowEdit && r
|
|
24797
|
+
}, {
|
|
24798
|
+
actions: () => d(e),
|
|
24799
|
+
extra: () => f(e, n)
|
|
24800
|
+
});
|
|
24786
24801
|
}
|
|
24787
24802
|
}];
|
|
24788
24803
|
case yr.laptop: return [...r, ...e];
|
|
24789
24804
|
default: return [...r, ...e];
|
|
24790
24805
|
}
|
|
24791
|
-
},
|
|
24792
|
-
|
|
24806
|
+
}, _ = O(() => g()), v = (e) => {
|
|
24807
|
+
let t = e.width ?? e.minWidth;
|
|
24808
|
+
return Te(t) ? 0 : Number.parseFloat(String(t)) || 0;
|
|
24809
|
+
}, y = O(() => p.value === yr.phone || p.value === yr.tablet ? void 0 : He(_.value, v)), b = () => {
|
|
24810
|
+
p.value = br.getDeviceTypeByResolution(), m.value = window.innerWidth;
|
|
24793
24811
|
};
|
|
24794
24812
|
return ht(() => {
|
|
24795
|
-
|
|
24813
|
+
b(), window.addEventListener("resize", b);
|
|
24796
24814
|
}), _t(() => {
|
|
24797
|
-
window.removeEventListener("resize",
|
|
24815
|
+
window.removeEventListener("resize", b);
|
|
24798
24816
|
}), (t, n) => {
|
|
24799
24817
|
let a = on;
|
|
24800
24818
|
return L(), j(D, null, [e.title ? (L(), j("h3", ND, B(e.title), 1)) : A("", !0), e.groups ? (L(!0), j(D, { key: 1 }, bt(e.groups, (t) => (L(), j("div", {
|
|
24801
24819
|
key: t.name,
|
|
24802
24820
|
class: "mb-6 last:mb-0"
|
|
24803
24821
|
}, [M("div", PD, [M("div", FD, [M("span", ID, B(t.name), 1), t.description ? (L(), j("span", LD, B(t.description), 1)) : A("", !0)]), t.summary ? (L(), j("span", RD, B(t.summary), 1)) : A("", !0)]), P(a, {
|
|
24804
|
-
columns:
|
|
24822
|
+
columns: _.value,
|
|
24805
24823
|
data: r(t.items),
|
|
24806
24824
|
"row-key": (e) => e.id,
|
|
24807
|
-
"row-props":
|
|
24825
|
+
"row-props": l,
|
|
24808
24826
|
"bottom-bordered": !1,
|
|
24809
24827
|
bordered: !1,
|
|
24810
|
-
"max-height": e.maxHeight
|
|
24828
|
+
"max-height": e.maxHeight,
|
|
24829
|
+
"scroll-x": y.value,
|
|
24830
|
+
"table-layout": "fixed"
|
|
24811
24831
|
}, null, 8, [
|
|
24812
24832
|
"columns",
|
|
24813
24833
|
"data",
|
|
24814
24834
|
"row-key",
|
|
24815
|
-
"max-height"
|
|
24835
|
+
"max-height",
|
|
24836
|
+
"scroll-x"
|
|
24816
24837
|
])]))), 128)) : (L(), k(a, {
|
|
24817
24838
|
key: 2,
|
|
24818
|
-
columns:
|
|
24839
|
+
columns: _.value,
|
|
24819
24840
|
data: i.value,
|
|
24820
24841
|
"row-key": (e) => e.id,
|
|
24821
|
-
"row-props":
|
|
24842
|
+
"row-props": l,
|
|
24822
24843
|
"bottom-bordered": !1,
|
|
24823
24844
|
bordered: !1,
|
|
24824
24845
|
"max-height": e.maxHeight
|
|
@@ -24830,7 +24851,7 @@ var MD = it({
|
|
|
24830
24851
|
]))], 64);
|
|
24831
24852
|
};
|
|
24832
24853
|
}
|
|
24833
|
-
}), [["__scopeId", "data-v-
|
|
24854
|
+
}), [["__scopeId", "data-v-76fe9dca"]]), BD = {
|
|
24834
24855
|
key: 0,
|
|
24835
24856
|
class: "text-sc-dark-grey my-2 text-center"
|
|
24836
24857
|
}, VD = {
|
|
@@ -25026,7 +25047,7 @@ var ZD = it({
|
|
|
25026
25047
|
])], 64)) : A("", !0);
|
|
25027
25048
|
};
|
|
25028
25049
|
}
|
|
25029
|
-
}), [["__scopeId", "data-v-
|
|
25050
|
+
}), [["__scopeId", "data-v-53afb2ef"]]), eO = { key: 0 }, tO = { class: "text-sc-dark-grey my-2 text-center" }, nO = {
|
|
25030
25051
|
key: 1,
|
|
25031
25052
|
class: "text-sc-dark-grey my-2 text-center"
|
|
25032
25053
|
}, rO = { key: 2 }, iO = { class: "text-sc-dark-grey mt-4 text-right font-bold" }, aO = { class: "text-sc-primary" }, oO = { class: "mb-4 max-w-xs empty:hidden" }, sO = /* @__PURE__ */ F({
|
|
@@ -25517,7 +25538,7 @@ var ZD = it({
|
|
|
25517
25538
|
]);
|
|
25518
25539
|
};
|
|
25519
25540
|
}
|
|
25520
|
-
}), [["__scopeId", "data-v-
|
|
25541
|
+
}), [["__scopeId", "data-v-ee3efccb"]]), uO = O(() => ce().deliveryTypeReference ?? []), dO = O(() => ce().managersList ?? []), fO = O(() => ce().opfReference ?? []), pO = O(() => ce().partnerGroupsReference ?? []), mO = O(() => ce().priceCoefficientsReference ?? []), hO = O(() => ce().productFilesTypesReference ?? []), gO = O(() => ce().resourceTypesReference), _O = O(() => ce().salesDirectionsReference ?? []), vO = O(() => ce().warehousesReference ?? []), yO = O(() => ce().paymentTypeReference ?? []), bO = O(() => ce().orderStatusReference ?? []), xO = O(() => ce().orderStatusDetailReference ?? []), SO = O(() => ce().operatorReference ?? []), CO = O(() => zr.convertReferencesToSelectOptionsList(ce().channelPrimaryInterestsReference ?? [], !0, !1, !0)), wO = O(() => zr.convertReferencesToSelectOptionsList(ce().sourcePrimaryInterestsReference ?? [], !0, !1, !0)), TO = (e) => d.getInstance(T).searchCity(e), EO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e?.isNewRec() ? "-" : `${e.name}, ${e?.region?.name}, ${e?.region?.country?.name}`, (e) => e?.isNewRec()), DO = async (e) => Me(await d.getInstance(T).searchRegion(e), (e) => new E(e)), OO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e.isNewRec() ? "-" : Ae(de([e.name, e.country.name]), ", "), (e) => e.isNewRec()), kO = (e) => d.getInstance(r).searchClient(e), AO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e.isNewRec() ? "-" : [
|
|
25521
25542
|
e.name,
|
|
25522
25543
|
e.salesDirection.name ? `(${e.salesDirection.name})` : void 0,
|
|
25523
25544
|
e.city.name ? `г. ${e.city.name}${e.city.region.name ? `, ${e.city.region.name}` : ""}` : void 0,
|
|
@@ -26103,7 +26124,7 @@ var ZD = it({
|
|
|
26103
26124
|
"options"
|
|
26104
26125
|
]));
|
|
26105
26126
|
}
|
|
26106
|
-
}), ak = { class: "m-0.5 flex flex-col p-0.5" }, ok = {
|
|
26127
|
+
}), ak = { class: "m-0.5 flex flex-col p-0.5" }, ok = { "data-testid": "address-line" }, sk = { key: 0 }, ck = { key: 1 }, lk = { key: 2 }, uk = { key: 3 }, dk = { "data-testid": "address-line" }, fk = { key: 0 }, pk = { key: 1 }, mk = { key: 2 }, hk = { key: 3 }, gk = {
|
|
26107
26128
|
key: 0,
|
|
26108
26129
|
"data-testid": "address-quality-label",
|
|
26109
26130
|
class: "text-sc-warning text-xs"
|
|
@@ -26298,32 +26319,26 @@ var ZD = it({
|
|
|
26298
26319
|
}
|
|
26299
26320
|
}), Dk = { class: "font-medium" }, Ok = {
|
|
26300
26321
|
key: 0,
|
|
26301
|
-
|
|
26322
|
+
"data-testid": "org-details",
|
|
26323
|
+
class: "text-xs font-light"
|
|
26302
26324
|
}, kk = {
|
|
26303
26325
|
key: 0,
|
|
26304
|
-
|
|
26326
|
+
"data-testid": "org-inn",
|
|
26327
|
+
class: "mr-2 whitespace-nowrap text-blue-800"
|
|
26305
26328
|
}, Ak = {
|
|
26306
26329
|
key: 1,
|
|
26307
|
-
class: "text-sc-dark-grey
|
|
26308
|
-
}, jk = {
|
|
26309
|
-
key: 1,
|
|
26310
|
-
"data-testid": "address-quality-label",
|
|
26311
|
-
class: "text-sc-warning text-xs"
|
|
26312
|
-
}, Mk = /* @__PURE__ */ F({
|
|
26330
|
+
class: "text-sc-dark-grey"
|
|
26331
|
+
}, jk = /* @__PURE__ */ F({
|
|
26313
26332
|
__name: "org-suggestion-label",
|
|
26314
26333
|
props: {
|
|
26315
26334
|
org: {},
|
|
26316
26335
|
selected: { type: Boolean }
|
|
26317
26336
|
},
|
|
26318
26337
|
setup(e) {
|
|
26319
|
-
let t = e, n = O(() => t.org.rawData?.state?.liquidationDate ?? !1), r = O(() => t.org.rawData?.address?.value ?? "")
|
|
26320
|
-
return (t,
|
|
26321
|
-
M("span", Dk, B(e.org.name), 1),
|
|
26322
|
-
e.org.inn || r.value ? (L(), j("div", Ok, [e.org.inn ? (L(), j("span", kk, B(e.org.inn), 1)) : A("", !0), r.value ? (L(), j("span", Ak, B(r.value), 1)) : A("", !0)])) : A("", !0),
|
|
26323
|
-
r.value && i.value ? (L(), j("span", jk, B(i.value), 1)) : A("", !0)
|
|
26324
|
-
], 2));
|
|
26338
|
+
let t = e, n = O(() => t.org.rawData?.state?.liquidationDate ?? !1), r = O(() => t.org.rawData?.address?.value ?? "");
|
|
26339
|
+
return (t, i) => (L(), j("div", { class: lt(`m-0.5 flex flex-col p-0.5 ${n.value ? "line-through" : ""}`) }, [M("span", Dk, B(e.org.name), 1), e.org.inn || r.value ? (L(), j("div", Ok, [e.org.inn ? (L(), j("span", kk, B(e.org.inn), 1)) : A("", !0), r.value ? (L(), j("span", Ak, B(r.value), 1)) : A("", !0)])) : A("", !0)], 2));
|
|
26325
26340
|
}
|
|
26326
|
-
}),
|
|
26341
|
+
}), Mk = /* @__PURE__ */ F({
|
|
26327
26342
|
__name: "org-suggestion",
|
|
26328
26343
|
props: /*@__PURE__*/ at({
|
|
26329
26344
|
disabled: { type: Boolean },
|
|
@@ -26358,7 +26373,7 @@ var ZD = it({
|
|
|
26358
26373
|
}
|
|
26359
26374
|
}, m = (e, t) => {
|
|
26360
26375
|
let n = s.value.find((t) => t.id === e.value) || {};
|
|
26361
|
-
return I(
|
|
26376
|
+
return I(jk, {
|
|
26362
26377
|
org: n,
|
|
26363
26378
|
selected: t
|
|
26364
26379
|
}, { default: fe("-") });
|
|
@@ -26400,4 +26415,4 @@ var ZD = it({
|
|
|
26400
26415
|
}
|
|
26401
26416
|
});
|
|
26402
26417
|
//#endregion
|
|
26403
|
-
export { mr as ALL_ORDER_MARKERS, Tr as AddressQualityLabelHelper, Kn as CATEGORY_REQUIRED_HINT, Br as CommonValidators, Xd as ConfiguratorSettingsKozyrek, bh as ConfiguratorSettingsMosquito, Or as ContentHelper, kr as CurrencyHelper, sr as DEFAULT_ORDER_STATUS_COLORS, Vr as DateValidators, jr as EntityNameHelper, Ar as FileHelper, Fd as KozyrekLine, Yd as KozyrekTailTemplate, Jd as KozyrekTemplate, Gr as M2PriceHelper, Wn as MODE_DISABLED_HINT, Lr as NumberHelper, W as NumericValidators, fr as ORDER_MARKER_COLORS, pr as ORDER_MARKER_NAMES, cr as ORDER_STATUS_COLORS, or as OrderMarkerEnum, vr as OrdersTableFields, Gn as PRODUCT_REQUIRED_HINT, Pd as Point, fm as ScAddProductToCartDialog, yk as ScAddressSuggestion, _k as ScAddressSuggestionLabel, Ek as ScBankSuggestion, Tk as ScBankSuggestionLabel, Va as ScBaseDialog, Kr as ScButtonWithConfirmAction, sm as ScCategoryCollapse, Jr as ScChipGroup, bm as ScClientNameWithShortInfo, om as ScCollapse, Ii as ScCollapseItem, N_ as ScCommentEditor, nv as ScCompactCardList, ko as ScConfiguratorsProductInfo, Sm as ScContragentWithShortInfo, _D as ScCreatorUserTypeTag, nk as ScCuratorSelect, u_ as ScDateRange, f_ as ScDateTimeLabel, H_ as ScDebouncedInput, U_ as ScDebouncedInputNumber, p_ as ScDebt, v_ as ScDialogHeader, Hp as ScDynamicConfigurator, Dm as ScEmail, $_ as ScExternalLink, Oa as ScImageGallery, A_ as ScInlineEditableItem, k_ as ScInlineView, $d as ScKozyrekConfigurator, Bo as ScKozyrekConfiguratorParamsForm, qd as ScKozyrekConfiguratorPreview, Ud as ScKozyrekConfiguratorTemplates, q_ as ScKpiGrid, Ta as ScLightGallery, rk as ScManagerOperatorSelect, ik as ScManagerSelect, Lf as ScMetalForDoorsConfigurator, Ff as ScMetalForDoorsConfiguratorForm, bf as ScMosquitoConfigurator, uf as ScMosquitoConfiguratorForm, vf as ScMosquitoConfiguratorMeasurementInstructions, nf as ScMosquitoConfiguratorPreview, kD as ScOrderColorSwatch, mD as ScOrderCommonInfo, lD as ScOrderDeliveryLabel, JD as ScOrderDetails, $D as ScOrderExternalLinks, LO as ScOrderHighlightSettings, sO as ScOrderInfo, qE as ScOrderItemParams, zD as ScOrderItemsList, hD as ScOrderPayment, wD as ScOrderProductInfo, HD as ScOrderStatusHistory, OD as ScOrderStatusTag, lO as ScOrdersList,
|
|
26418
|
+
export { mr as ALL_ORDER_MARKERS, Tr as AddressQualityLabelHelper, Kn as CATEGORY_REQUIRED_HINT, Br as CommonValidators, Xd as ConfiguratorSettingsKozyrek, bh as ConfiguratorSettingsMosquito, Or as ContentHelper, kr as CurrencyHelper, sr as DEFAULT_ORDER_STATUS_COLORS, Vr as DateValidators, jr as EntityNameHelper, Ar as FileHelper, Fd as KozyrekLine, Yd as KozyrekTailTemplate, Jd as KozyrekTemplate, Gr as M2PriceHelper, Wn as MODE_DISABLED_HINT, Lr as NumberHelper, W as NumericValidators, fr as ORDER_MARKER_COLORS, pr as ORDER_MARKER_NAMES, cr as ORDER_STATUS_COLORS, or as OrderMarkerEnum, vr as OrdersTableFields, Gn as PRODUCT_REQUIRED_HINT, Pd as Point, fm as ScAddProductToCartDialog, yk as ScAddressSuggestion, _k as ScAddressSuggestionLabel, Ek as ScBankSuggestion, Tk as ScBankSuggestionLabel, Va as ScBaseDialog, Kr as ScButtonWithConfirmAction, sm as ScCategoryCollapse, Jr as ScChipGroup, bm as ScClientNameWithShortInfo, om as ScCollapse, Ii as ScCollapseItem, N_ as ScCommentEditor, nv as ScCompactCardList, ko as ScConfiguratorsProductInfo, Sm as ScContragentWithShortInfo, _D as ScCreatorUserTypeTag, nk as ScCuratorSelect, u_ as ScDateRange, f_ as ScDateTimeLabel, H_ as ScDebouncedInput, U_ as ScDebouncedInputNumber, p_ as ScDebt, v_ as ScDialogHeader, Hp as ScDynamicConfigurator, Dm as ScEmail, $_ as ScExternalLink, Oa as ScImageGallery, A_ as ScInlineEditableItem, k_ as ScInlineView, $d as ScKozyrekConfigurator, Bo as ScKozyrekConfiguratorParamsForm, qd as ScKozyrekConfiguratorPreview, Ud as ScKozyrekConfiguratorTemplates, q_ as ScKpiGrid, Ta as ScLightGallery, rk as ScManagerOperatorSelect, ik as ScManagerSelect, Lf as ScMetalForDoorsConfigurator, Ff as ScMetalForDoorsConfiguratorForm, bf as ScMosquitoConfigurator, uf as ScMosquitoConfiguratorForm, vf as ScMosquitoConfiguratorMeasurementInstructions, nf as ScMosquitoConfiguratorPreview, kD as ScOrderColorSwatch, mD as ScOrderCommonInfo, lD as ScOrderDeliveryLabel, JD as ScOrderDetails, $D as ScOrderExternalLinks, LO as ScOrderHighlightSettings, sO as ScOrderInfo, qE as ScOrderItemParams, zD as ScOrderItemsList, hD as ScOrderPayment, wD as ScOrderProductInfo, HD as ScOrderStatusHistory, OD as ScOrderStatusTag, lO as ScOrdersList, Mk as ScOrgSuggestion, jk as ScOrgSuggestionLabel, qO as ScPage, tk as ScPageWithSlidingPanel, yh as ScPersonContactsBlock, eh as ScPhone, W_ as ScPhoneInput, Ra as ScProductInfoContent, Wa as ScProductInfoDialog, qa as ScProductInfoPopover, go as ScProductName, bE as ScProductsList, cm as ScReferenceSelect, ap as ScSandwichConfigurator, np as ScSandwichConfiguratorForm, Ip as ScSandwichM2Configurator, Np as ScSandwichM2ConfiguratorForm, mE as ScSearchableProductSelect, pE as ScSearchableReferenceSelect, lm as ScSetClientPriceFormItem, BO as ScShortTextOrderInfo, L_ as ScSingleFileUploadSelector, XO as ScSlidingContentWithDrawer, Nf as ScStripConfigurator, Ef as ScStripConfiguratorForm, xf as ScStripConfiguratorLineItem, Af as ScStripConfiguratorPreview, WD as ScUserShortInfo, V_ as ScWarningIcon, zr as SelectOptionHelper, qn as UiNotificationProvider, Hr as Validators, yr as WindowResolutionEnum, br as WindowResolutionProvider, CO as channelPrimaryInterestOptionsList, Bi as componentSizeInjectionKey, Xn as copyToClipboard, uO as deliveryTypeReferenceList, hr as getOrderMarkerColors, gr as getOrderMarkerName, _r as getOrderMarkers, lr as getOrderStatusColors, dr as getOrderStatusCssVariables, ur as getOrderStatusTagColor, Ur as getProductInfoFiles, Nr as handleFloatInput, Mr as handleIntegerInput, Wr as hasProductInfo, xh as isCanSandwichM2Show, Wp as isCanSandwichShow, Up as isConfiguratorType, dO as managersReferenceList, Vi as naiveUiTheme, SO as operatorReferenceList, fO as opfReferenceList, xO as orderStatusDetailReferenceList, bO as orderStatusReferenceList, Rr as paginationItemsPrefix, Pr as parse, pO as partnerGroupReferenceList, yO as paymentTypeReferenceList, mO as priceCoefficientsReferenceList, hO as productFilesTypesReferenceList, Id as renderConfig, Fr as resetInputValidation, gO as resourceReferencesList, _O as salesDirectionsReferenceList, TO as searchCityReferenceDataHandler, EO as searchCityReferenceLabelRenderer, kO as searchClientReferenceDataHandler, AO as searchClientReferenceLabelRenderer, DO as searchRegionReferenceDataHandler, OO as searchRegionReferenceLabelRenderer, Ir as selectAllTextOnFocus, Dr as showAppVersion, wO as sourcePrimaryInterestOptionsList, Sr as useCompactLayout, wr as useHoverSupport, $n as vCopy, ar as vFocusNext, vO as warehousesReferenceList };
|