feather-k-demo-utils 0.0.32 → 0.0.33

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.
@@ -0,0 +1,92 @@
1
+ import { defineComponent as c, openBlock as r, createElementBlock as l, toDisplayString as g, createCommentVNode as i, createElementVNode as b, useSlots as d, computed as u, normalizeClass as m, renderSlot as _ } from "vue";
2
+ const h = { key: 0 }, f = { key: 1 }, p = { key: 2 }, D = /* @__PURE__ */ c({
3
+ __name: "DemoStats",
4
+ props: {
5
+ publishDate: {},
6
+ version: {}
7
+ },
8
+ setup(s) {
9
+ const t = () => {
10
+ const n = document.querySelector(".demo-stats");
11
+ n && n.classList.toggle("active");
12
+ };
13
+ return (n, o) => s.publishDate || s.version ? (r(), l("div", {
14
+ key: 0,
15
+ class: "demo-stats tb-v8_2_0 active",
16
+ tabindex: "0",
17
+ role: "region",
18
+ "aria-label": "Demo Stats",
19
+ onClick: t
20
+ }, [
21
+ s.version ? (r(), l("div", h, "using @featherk/styles@" + g(s.version), 1)) : i("", !0),
22
+ s.publishDate ? (r(), l("div", f, "Published: " + g(s.publishDate), 1)) : (r(), l("div", p, [...o[0] || (o[0] = [
23
+ b("a", {
24
+ href: "https://github.com/NantHealth/feather-k-demo-utils/blob/integration/README.md",
25
+ target: "_blank",
26
+ rel: "noopener noreferrer",
27
+ style: { "pointer-events": "auto !important" }
28
+ }, " Setup Publish Date ", -1)
29
+ ])]))
30
+ ])) : i("", !0);
31
+ }
32
+ }), y = /* @__PURE__ */ c({
33
+ __name: "DemoDebug",
34
+ setup(s) {
35
+ const t = d(), n = u(() => !!t.default && t.default({}).some((e) => e.children)), o = () => {
36
+ const e = document.querySelector(".demo-debug");
37
+ e && e.classList.toggle("active");
38
+ }, a = u(() => ({
39
+ "demo-debug": !0,
40
+ "tb-v8_2_0": !0,
41
+ hidden: !n.value
42
+ }));
43
+ return (e, v) => (r(), l("div", {
44
+ class: m(a.value),
45
+ onClick: o,
46
+ tabindex: "0"
47
+ }, [
48
+ _(e.$slots, "default")
49
+ ], 2));
50
+ }
51
+ }), S = /* @__PURE__ */ c({
52
+ __name: "DemoSettings",
53
+ setup(s) {
54
+ const t = d(), n = u(() => !!t.default && t.default({}).some((e) => e.children)), o = () => {
55
+ const e = document.querySelector(".demo-settings");
56
+ e && e.classList.toggle("active");
57
+ }, a = u(() => ({
58
+ "demo-settings": !0,
59
+ "tb-v8_2_0": !0,
60
+ hidden: !n.value
61
+ // active: true,
62
+ }));
63
+ return (e, v) => (r(), l("div", {
64
+ class: m(a.value),
65
+ onClick: o,
66
+ tabindex: "0"
67
+ }, [
68
+ _(e.$slots, "default")
69
+ ], 2));
70
+ }
71
+ }), C = /* @__PURE__ */ c({
72
+ __name: "DemoNotes",
73
+ setup(s) {
74
+ const t = d(), n = u(() => !!t.default && t.default({}).some((a) => a.children)), o = u(() => ({
75
+ "demo-notes": !0,
76
+ "tb-v8_2_0": !0
77
+ }));
78
+ return (a, e) => n.value ? (r(), l("div", {
79
+ key: 0,
80
+ class: m(o.value),
81
+ tabindex: "0"
82
+ }, [
83
+ _(a.$slots, "default")
84
+ ], 2)) : i("", !0);
85
+ }
86
+ });
87
+ export {
88
+ y as _,
89
+ C as a,
90
+ S as b,
91
+ D as c
92
+ };
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -1,3 +1,4 @@
1
1
  export { default as DemoStats } from './DemoStats.vue';
2
2
  export { default as DemoDebug } from './DemoDebug.vue';
3
3
  export { default as DemoSettings } from './DemoSettings.vue';
4
+ export { default as DemoNotes } from './DemoNotes.vue';
@@ -1,6 +1,7 @@
1
- import { _ as o, a as s, b as t } from "../DemoSettings.vue_vue_type_script_setup_true_lang-C-HWMDnB.js";
1
+ import { _ as s, a, b as t, c as m } from "../DemoNotes.vue_vue_type_script_setup_true_lang-hamVxLCB.js";
2
2
  export {
3
- o as DemoDebug,
4
- s as DemoSettings,
5
- t as DemoStats
3
+ s as DemoDebug,
4
+ a as DemoNotes,
5
+ t as DemoSettings,
6
+ m as DemoStats
6
7
  };
package/lib/index.es.js CHANGED
@@ -1,12 +1,13 @@
1
- import { F as a, a as t, f as r, g as o, b as S } from "./cdnVersion-DGJCb4AH.js";
2
- import { _ as m, a as F, b as _ } from "./DemoSettings.vue_vue_type_script_setup_true_lang-C-HWMDnB.js";
1
+ import { F as a, a as t, f as o, g as r, b as S } from "./cdnVersion-DGJCb4AH.js";
2
+ import { _ as E, a as D, b as F, c as _ } from "./DemoNotes.vue_vue_type_script_setup_true_lang-hamVxLCB.js";
3
3
  export {
4
- m as DemoDebug,
4
+ E as DemoDebug,
5
+ D as DemoNotes,
5
6
  F as DemoSettings,
6
7
  _ as DemoStats,
7
8
  a as FEATHERK_STYLES_CDN_URL,
8
9
  t as FEATHERK_STYLES_VERSION,
9
- r as featherkStylesVersion,
10
- o as getFeatherKStylesCdnUrl,
10
+ o as featherkStylesVersion,
11
+ r as getFeatherKStylesCdnUrl,
11
12
  S as getFeatherkStylesVersionFromUrl
12
13
  };
@@ -1,12 +1,13 @@
1
- import { F as a, a as t, f as r, g as o, b as S } from "../cdnVersion-DGJCb4AH.js";
2
- import { _ as m, a as F, b as _ } from "../DemoSettings.vue_vue_type_script_setup_true_lang-C-HWMDnB.js";
1
+ import { F as a, a as t, f as o, g as r, b as S } from "../cdnVersion-DGJCb4AH.js";
2
+ import { _ as E, a as D, b as F, c as _ } from "../DemoNotes.vue_vue_type_script_setup_true_lang-hamVxLCB.js";
3
3
  export {
4
- m as DemoDebug,
4
+ E as DemoDebug,
5
+ D as DemoNotes,
5
6
  F as DemoSettings,
6
7
  _ as DemoStats,
7
8
  a as FEATHERK_STYLES_CDN_URL,
8
9
  t as FEATHERK_STYLES_VERSION,
9
- r as featherkStylesVersion,
10
- o as getFeatherKStylesCdnUrl,
10
+ o as featherkStylesVersion,
11
+ r as getFeatherKStylesCdnUrl,
11
12
  S as getFeatherkStylesVersionFromUrl
12
13
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "feather-k-demo-utils",
3
3
  "private": false,
4
- "version": "0.0.32",
4
+ "version": "0.0.33",
5
5
  "type": "module",
6
6
  "main": "lib/index.es.js",
7
7
  "module": "lib/index.es.js",
@@ -1,76 +0,0 @@
1
- import { defineComponent as c, openBlock as a, createElementBlock as l, toDisplayString as u, createCommentVNode as d, createElementVNode as v, useSlots as m, computed as r, normalizeClass as g, renderSlot as b } from "vue";
2
- const _ = { key: 0 }, f = { key: 1 }, p = { key: 2 }, D = /* @__PURE__ */ c({
3
- __name: "DemoStats",
4
- props: {
5
- publishDate: {},
6
- version: {}
7
- },
8
- setup(t) {
9
- const s = () => {
10
- const n = document.querySelector(".demo-stats");
11
- n && n.classList.toggle("active");
12
- };
13
- return (n, o) => t.publishDate || t.version ? (a(), l("div", {
14
- key: 0,
15
- class: "demo-stats tb-v8_2_0 active",
16
- tabindex: "0",
17
- role: "region",
18
- "aria-label": "Demo Stats",
19
- onClick: s
20
- }, [
21
- t.version ? (a(), l("div", _, "using @featherk/styles@" + u(t.version), 1)) : d("", !0),
22
- t.publishDate ? (a(), l("div", f, "Published: " + u(t.publishDate), 1)) : (a(), l("div", p, [...o[0] || (o[0] = [
23
- v("a", {
24
- href: "https://github.com/NantHealth/feather-k-demo-utils/blob/integration/README.md",
25
- target: "_blank",
26
- rel: "noopener noreferrer",
27
- style: { "pointer-events": "auto !important" }
28
- }, " Setup Publish Date ", -1)
29
- ])]))
30
- ])) : d("", !0);
31
- }
32
- }), y = /* @__PURE__ */ c({
33
- __name: "DemoDebug",
34
- setup(t) {
35
- const s = m(), n = r(() => !!s.default && s.default({}).some((e) => e.children)), o = () => {
36
- const e = document.querySelector(".demo-debug");
37
- e && e.classList.toggle("active");
38
- }, i = r(() => ({
39
- "demo-debug": !0,
40
- "tb-v8_2_0": !0,
41
- hidden: !n.value
42
- }));
43
- return (e, h) => (a(), l("div", {
44
- class: g(i.value),
45
- onClick: o,
46
- tabindex: "0"
47
- }, [
48
- b(e.$slots, "default")
49
- ], 2));
50
- }
51
- }), S = /* @__PURE__ */ c({
52
- __name: "DemoSettings",
53
- setup(t) {
54
- const s = m(), n = r(() => !!s.default && s.default({}).some((e) => e.children)), o = () => {
55
- const e = document.querySelector(".demo-settings");
56
- e && e.classList.toggle("active");
57
- }, i = r(() => ({
58
- "demo-settings": !0,
59
- "tb-v8_2_0": !0,
60
- hidden: !n.value
61
- // active: true,
62
- }));
63
- return (e, h) => (a(), l("div", {
64
- class: g(i.value),
65
- onClick: o,
66
- tabindex: "0"
67
- }, [
68
- b(e.$slots, "default")
69
- ], 2));
70
- }
71
- });
72
- export {
73
- y as _,
74
- S as a,
75
- D as b
76
- };