tsv2-library 1.1.20 → 1.1.22

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.
@@ -72096,9 +72096,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
72096
72096
  };
72097
72097
  }
72098
72098
  });
72099
- const _hoisted_1$t = ["src"];
72100
- const _hoisted_2$k = { class: "label__body" };
72101
- const _hoisted_3$d = { class: "label__date" };
72099
+ const _hoisted_1$t = { class: "label__body" };
72100
+ const _hoisted_2$k = { class: "label__date" };
72101
+ const _hoisted_3$d = ["src"];
72102
72102
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
72103
72103
  __name: "PrintLabel",
72104
72104
  props: {
@@ -72111,17 +72111,17 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
72111
72111
  const textSize = computed(() => {
72112
72112
  var _a, _b, _c, _d, _e, _f;
72113
72113
  const largeLinesLength = [
72114
- (((_a = props.label.assetName) == null ? void 0 : _a.length) ?? 0) > 16,
72115
- (((_b = props.label.code) == null ? void 0 : _b.length) ?? 0) > 17,
72116
- (((_c = props.label.category) == null ? void 0 : _c.length) ?? 0) > 15
72114
+ (((_a = props.label.assetName) == null ? void 0 : _a.length) ?? 0) > 17,
72115
+ (((_b = props.label.code) == null ? void 0 : _b.length) ?? 0) > 19,
72116
+ (((_c = props.label.category) == null ? void 0 : _c.length) ?? 0) > 16
72117
72117
  ].filter(Boolean).length;
72118
72118
  const mediumLinesLength = [
72119
- (((_d = props.label.assetName) == null ? void 0 : _d.length) ?? 0) > 18,
72120
- (((_e = props.label.code) == null ? void 0 : _e.length) ?? 0) > 22,
72121
- (((_f = props.label.category) == null ? void 0 : _f.length) ?? 0) > 16
72119
+ (((_d = props.label.assetName) == null ? void 0 : _d.length) ?? 0) > 19,
72120
+ (((_e = props.label.code) == null ? void 0 : _e.length) ?? 0) > 24,
72121
+ (((_f = props.label.category) == null ? void 0 : _f.length) ?? 0) > 18
72122
72122
  ].filter(Boolean).length;
72123
- if (largeLinesLength > 1) {
72124
- if (mediumLinesLength > 2)
72123
+ if (largeLinesLength > 0) {
72124
+ if (mediumLinesLength > 1)
72125
72125
  return "small";
72126
72126
  return "medium";
72127
72127
  }
@@ -72136,15 +72136,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
72136
72136
  }, "label"]),
72137
72137
  "data-print-label": ""
72138
72138
  }, [
72139
- createElementVNode("img", {
72140
- class: normalizeClass([{
72141
- "label__logo--small": _ctx.labelSize === "small",
72142
- "label__logo--large": _ctx.labelSize === "large"
72143
- }, "label__logo"]),
72144
- src: unref(TSLogoUrl),
72145
- alt: ""
72146
- }, null, 10, _hoisted_1$t),
72147
- createElementVNode("div", _hoisted_2$k, [
72139
+ createElementVNode("div", _hoisted_1$t, [
72148
72140
  createElementVNode("span", {
72149
72141
  class: normalizeClass([{
72150
72142
  "label__asset--small": textSize.value === "small",
@@ -72167,8 +72159,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
72167
72159
  }, "label__meta"])
72168
72160
  }, [
72169
72161
  createElementVNode("span", null, toDisplayString$1(_ctx.label.category ?? "-"), 1),
72170
- createElementVNode("span", _hoisted_3$d, toDisplayString$1(_ctx.label.purchaseDate ?? "-"), 1)
72171
- ], 2)
72162
+ createElementVNode("span", _hoisted_2$k, toDisplayString$1(_ctx.label.purchaseDate ?? "-"), 1)
72163
+ ], 2),
72164
+ createElementVNode("img", {
72165
+ src: unref(TSLogoUrl),
72166
+ alt: "",
72167
+ class: "label__logo"
72168
+ }, null, 8, _hoisted_3$d)
72172
72169
  ])
72173
72170
  ], 2);
72174
72171
  };
@@ -72222,7 +72219,6 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
72222
72219
  const labelScale = isSmall ? "1.005" : "1.575";
72223
72220
  return `
72224
72221
  .label {
72225
- position: relative;
72226
72222
  display: flex;
72227
72223
  align-items: center;
72228
72224
  word-break: break-all;
@@ -72233,7 +72229,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
72233
72229
  width: 190px;
72234
72230
  height: 95px;
72235
72231
  padding: 8px;
72236
- padding-left: calc(12px + 12.5px);
72232
+ padding-left: 12px;
72237
72233
  padding-right: 12px;
72238
72234
  }
72239
72235
 
@@ -72241,7 +72237,6 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
72241
72237
  width: 168px;
72242
72238
  height: 72px;
72243
72239
  padding: 11px;
72244
- padding-left: calc(9px + 12.5px);
72245
72240
  }
72246
72241
 
72247
72242
  .label--border {
@@ -72249,24 +72244,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
72249
72244
  }
72250
72245
 
72251
72246
  .label__logo {
72252
- position: absolute;
72253
- top: 50%;
72254
- transform-origin: left;
72255
- padding: 1px 0;
72256
- }
72257
-
72258
- .label__logo--small {
72259
- height: 13px;
72260
- width: 60px;
72261
- left: 14.5px;
72262
- transform: translateY(23.5px) rotate(-90deg);
72263
- }
72264
-
72265
- .label__logo--large {
72266
- height: 11px;
72267
- width: 47px;
72268
- left: 13.5px;
72269
- transform: translateY(18px) rotate(-90deg);
72247
+ height: 14px;
72248
+ width: 62px;
72249
+ padding: 1.7px;
72250
+ align-self: flex-end;
72270
72251
  }
72271
72252
 
72272
72253
  .label__body {