prlg-ui 1.8.352 → 1.8.354

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.
@@ -19843,18 +19843,21 @@ const pq = /* @__PURE__ */ g({
19843
19843
  ])
19844
19844
  ]));
19845
19845
  }
19846
- }), Qb = /* @__PURE__ */ N(Jb, [["__scopeId", "data-v-2ef585ae"]]), eC = { class: "table__footer" }, tC = ["colspan"], aC = /* @__PURE__ */ g({
19846
+ }), Qb = /* @__PURE__ */ N(Jb, [["__scopeId", "data-v-2ef585ae"]]), eC = {
19847
+ key: 0,
19848
+ class: "table__footer"
19849
+ }, tC = ["colspan"], aC = /* @__PURE__ */ g({
19847
19850
  __name: "DataTableFooter",
19848
19851
  props: {
19849
19852
  table: {}
19850
19853
  },
19851
19854
  setup(e) {
19852
- return (a, t) => (p(), R("tfoot", eC, [
19853
- (p(!0), R(ge, null, Ie(a.table.getFooterGroups(), (l) => (p(), R("tr", {
19855
+ return (a, t) => a.table.getFooterGroups().length > 0 ? (p(), R("div", eC, [
19856
+ (p(!0), R(ge, null, Ie(a.table.getFooterGroups(), (l) => (p(), R("div", {
19854
19857
  key: l.id,
19855
19858
  class: "table__row table__row--footer"
19856
19859
  }, [
19857
- (p(!0), R(ge, null, Ie(l.headers, (o) => (p(), R("th", {
19860
+ (p(!0), R(ge, null, Ie(l.headers, (o) => (p(), R("div", {
19858
19861
  key: o.id,
19859
19862
  colspan: o.colSpan,
19860
19863
  scope: "row",
@@ -19873,9 +19876,9 @@ const pq = /* @__PURE__ */ g({
19873
19876
  ], 4)
19874
19877
  ], 12, tC))), 128))
19875
19878
  ]))), 128))
19876
- ]));
19879
+ ])) : H("", !0);
19877
19880
  }
19878
- }), lC = /* @__PURE__ */ N(aC, [["__scopeId", "data-v-d880d7aa"]]), rC = /* @__PURE__ */ g({
19881
+ }), lC = /* @__PURE__ */ N(aC, [["__scopeId", "data-v-7caabcf7"]]), rC = /* @__PURE__ */ g({
19879
19882
  __name: "PaginationList",
19880
19883
  props: {
19881
19884
  asChild: { type: Boolean },
@@ -1,3 +1,5 @@
1
+ @use "sass:map";
2
+
1
3
  /**
2
4
  * Миксин для подключения шрифтов
3
5
  * @param {string} $font-family - Название семейства шрифтов
@@ -17,40 +19,22 @@
17
19
  */
18
20
 
19
21
  @mixin font-face($font-family, $weights) {
22
+ $weight-names: (
23
+ 100: "Thin",
24
+ 200: "ExtraLight",
25
+ 300: "Light",
26
+ 400: "Regular",
27
+ 500: "Medium",
28
+ 600: "SemiBold",
29
+ 700: "Bold",
30
+ 800: "ExtraBold",
31
+ 900: "Black",
32
+ );
33
+
20
34
  @each $weight in $weights {
21
- $weight-name: if(
22
- $weight == 100,
23
- "Thin",
24
- if(
25
- $weight == 200,
26
- "ExtraLight",
27
- if(
28
- $weight == 300,
29
- "Light",
30
- if(
31
- $weight == 400,
32
- "Regular",
33
- if(
34
- $weight == 500,
35
- "Medium",
36
- if(
37
- $weight == 600,
38
- "SemiBold",
39
- if(
40
- $weight == 700,
41
- "Bold",
42
- if(
43
- $weight == 800,
44
- "ExtraBold",
45
- if($weight == 900, "Black", $weight)
46
- )
47
- )
48
- )
49
- )
50
- )
51
- )
52
- )
53
- );
35
+ // Используем новый синтаксис map.get()
36
+ $weight-name: map.get($weight-names, $weight);
37
+
54
38
  @font-face {
55
39
  font-family: "#{$font-family}";
56
40
  font-weight: #{$weight};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prlg-ui",
3
3
  "private": false,
4
- "version": "1.8.352",
4
+ "version": "1.8.354",
5
5
  "type": "module",
6
6
  "main": "dist/prlg-ui.umd.js",
7
7
  "module": "dist/prlg-ui.es.js",
Binary file