mediacube-ui-v2 0.0.283 → 0.0.284

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.
@@ -1 +1 @@
1
- @charset "UTF-8";.mc-filter-presets{position:relative;flex-grow:1;min-width:0}.mc-filter-presets:after{content:"";display:block;position:absolute;top:0;inset-inline-end:0;bottom:0;width:5rem;background:linear-gradient(90deg,#fff0 0,#fff);pointer-events:none}.mc-filter-presets-inner{display:flex;flex-wrap:nowrap;overflow-x:auto;height:calc(2.5rem + 2px)}.mc-filter-presets-inner>*:not(:last-child){margin-inline-end:.5rem}.mc-filter-presets-inner{-ms-overflow-style:none;scrollbar-width:none}.mc-filter-presets-inner::-webkit-scrollbar{display:none}.mc-filter-presets-inner:after{content:"";display:block;position:static;min-width:1.5rem}
1
+ @charset "UTF-8";.mc-filter-presets{position:relative;flex-grow:1;min-width:0}.mc-filter-presets:after{content:"";display:block;position:absolute;top:0;inset-inline-end:0;bottom:0;width:5rem;background:linear-gradient(90deg,#fff0 0,#fff);pointer-events:none}.mc-filter-presets-inner{display:flex;flex-wrap:nowrap;overflow-x:auto;height:calc(2.5rem + 2px)}.mc-filter-presets-inner{-ms-overflow-style:none;scrollbar-width:none}.mc-filter-presets-inner::-webkit-scrollbar{display:none}.mc-filter-presets-inner:after{content:"";display:block;position:static;min-width:1.5rem}
@@ -1,7 +1,11 @@
1
- import { defineComponent as w, defineAsyncComponent as B, ref as u, onMounted as M, onBeforeUnmount as b, watch as k, openBlock as o, createElementBlock as i, createElementVNode as L, Fragment as S, renderList as x, createBlock as C, unref as m, withCtx as E, createTextVNode as F, toDisplayString as V } from "vue";
2
- import { useDebounceFn as D, useLocalStorage as N } from "@vueuse/core";
1
+ import { defineComponent as M, defineAsyncComponent as b, ref as u, onMounted as k, onBeforeUnmount as x, watch as L, openBlock as o, createElementBlock as m, createElementVNode as S, createVNode as d, withCtx as r, Fragment as C, renderList as E, createBlock as F, unref as p, createTextVNode as V, toDisplayString as N } from "vue";
2
+ import { useDebounceFn as $, useLocalStorage as D } from "@vueuse/core";
3
3
  import { useTheme as T } from "../../../../composables/useTheme2.js";
4
- const U = { class: "mc-filter-presets" }, j = { class: "mc-filter-presets-inner" }, d = "mcFilterPresets", z = /* @__PURE__ */ w({
4
+ import U from "../../McWrapScroll/McWrapScroll.vue2.js";
5
+ import '../../../../assets/components/patterns/McGridCol/index.css';import '../../../../assets/components/patterns/McWrapScroll/index.css';/* empty css */
6
+ import j from "../../McGridCol/McGridCol.vue2.js";
7
+ /* empty css */
8
+ const q = { class: "mc-filter-presets" }, A = { class: "mc-filter-presets-inner" }, f = "mcFilterPresets", R = /* @__PURE__ */ M({
5
9
  __name: "McFilterPresets",
6
10
  props: {
7
11
  name: {
@@ -14,44 +18,58 @@ const U = { class: "mc-filter-presets" }, j = { class: "mc-filter-presets-inner"
14
18
  }
15
19
  },
16
20
  emits: ["preset-selected"],
17
- setup(p, { emit: v }) {
18
- const f = B(() => import("../../../elements/McButton/McButton.vue.js")), g = v, r = p, s = T("filter"), _ = D((e) => {
21
+ setup(v, { emit: _ }) {
22
+ const g = b(() => import("../../../elements/McButton/McButton.vue.js")), h = _, s = v, a = T("filter"), y = $((e) => {
19
23
  e();
20
- }, 100), t = u(null), h = N(d, {}), a = u([]), y = (e) => {
21
- t.value && t.value.name === e.name ? t.value = null : t.value = e, g("preset-selected", t.value);
22
- }, c = () => {
23
- a.value = h.value[r.name] || [];
24
- }, P = (e) => t.value && t.value.name === e.name ? `${s.component.button}-invert` : "gray-outline", l = (e) => {
25
- e?.key === d && _(() => {
26
- c();
24
+ }, 100), t = u(null), P = D(f, {}), c = u([]), w = (e) => {
25
+ t.value && t.value.name === e.name ? t.value = null : t.value = e, h("preset-selected", t.value);
26
+ }, l = () => {
27
+ c.value = P.value[s.name] || [];
28
+ }, B = (e) => t.value && t.value.name === e.name ? `${a.component.button}-invert` : "gray-outline", i = (e) => {
29
+ e?.key === f && y(() => {
30
+ l();
27
31
  });
28
32
  };
29
- return M(() => {
30
- c(), window.addEventListener("storage", l);
31
- }), b(() => {
32
- window.removeEventListener("storage", l);
33
- }), k(
34
- () => r.selectedPreset,
33
+ return k(() => {
34
+ l(), window.addEventListener("storage", i);
35
+ }), x(() => {
36
+ window.removeEventListener("storage", i);
37
+ }), L(
38
+ () => s.selectedPreset,
35
39
  (e) => {
36
40
  t.value = e;
37
41
  }
38
- ), (e, q) => (o(), i("div", U, [
39
- L("div", j, [
40
- (o(!0), i(S, null, x(a.value, (n) => (o(), C(m(f), {
41
- key: n.name,
42
- variation: P(n),
43
- "secondary-color": m(s).component.button,
44
- onMouseup: () => y(n)
42
+ ), (e, O) => (o(), m("div", q, [
43
+ S("div", A, [
44
+ d(U, {
45
+ "scroll-speed": 2,
46
+ "gutter-x": 8
45
47
  }, {
46
- default: E(() => [
47
- F(V(n.name), 1)
48
+ default: r(() => [
49
+ (o(!0), m(C, null, E(c.value, (n) => (o(), F(j, {
50
+ key: n.name
51
+ }, {
52
+ default: r(() => [
53
+ d(p(g), {
54
+ variation: B(n),
55
+ "secondary-color": p(a).component.button,
56
+ onMouseup: () => w(n)
57
+ }, {
58
+ default: r(() => [
59
+ V(N(n.name), 1)
60
+ ]),
61
+ _: 2
62
+ }, 1032, ["variation", "secondary-color", "onMouseup"])
63
+ ]),
64
+ _: 2
65
+ }, 1024))), 128))
48
66
  ]),
49
- _: 2
50
- }, 1032, ["variation", "secondary-color", "onMouseup"]))), 128))
67
+ _: 1
68
+ })
51
69
  ])
52
70
  ]));
53
71
  }
54
72
  });
55
73
  export {
56
- z as default
74
+ R as default
57
75
  };
@@ -13,18 +13,23 @@ const e = l, i = (() => {
13
13
  a: [...t, "href", "title", "target", "rel", "data-*"],
14
14
  b: [...t],
15
15
  i: [...t],
16
+ u: [...t],
16
17
  s: [...t],
17
18
  em: [...t],
18
19
  strong: [...t],
19
20
  p: [...t],
20
21
  br: [...t],
22
+ h1: [...t],
23
+ h2: [...t],
24
+ h3: [...t],
25
+ blockquote: [...t],
21
26
  ul: [...t],
22
27
  ol: [...t],
23
28
  li: [...t],
24
29
  div: [...t, "data-*"],
25
30
  span: [...t],
26
31
  img: [...t, "src", "alt", "title", "width", "height"]
27
- }, c = (r) => i(r, {
32
+ }, u = (r) => i(r, {
28
33
  whiteList: s,
29
34
  allowList: {},
30
35
  stripIgnoreTag: !0,
@@ -36,5 +41,5 @@ const e = l, i = (() => {
36
41
  }
37
42
  });
38
43
  export {
39
- c as sanitize
44
+ u as sanitize
40
45
  };
@@ -17,18 +17,23 @@ const e = l, i = (() => {
17
17
  a: [...t, "href", "title", "target", "rel", "data-*"],
18
18
  b: [...t],
19
19
  i: [...t],
20
+ u: [...t],
20
21
  s: [...t],
21
22
  em: [...t],
22
23
  strong: [...t],
23
24
  p: [...t],
24
25
  br: [...t],
26
+ h1: [...t],
27
+ h2: [...t],
28
+ h3: [...t],
29
+ blockquote: [...t],
25
30
  ul: [...t],
26
31
  ol: [...t],
27
32
  li: [...t],
28
33
  div: [...t, "data-*"],
29
34
  span: [...t],
30
35
  img: [...t, "src", "alt", "title", "width", "height"]
31
- }, c = (r) => i(r, {
36
+ }, u = (r) => i(r, {
32
37
  whiteList: s,
33
38
  allowList: {},
34
39
  stripIgnoreTag: !0,
@@ -40,5 +45,5 @@ const e = l, i = (() => {
40
45
  }
41
46
  });
42
47
  export {
43
- c as sanitize
48
+ u as sanitize
44
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui-v2",
3
- "version": "0.0.283",
3
+ "version": "0.0.284",
4
4
  "license": "MIT",
5
5
  "description": "Design system for Mediacube services",
6
6
  "sideEffects": [