@effect-app/vue-components 4.0.0-beta.1 → 4.0.0-beta.10

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.
Files changed (75) hide show
  1. package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +1 -1
  2. package/dist/vue-components.es16.js +41 -41
  3. package/dist/vue-components.es17.js +9 -9
  4. package/dist/vue-components.es19.js +8 -8
  5. package/dist/vue-components.es20.js +1 -1
  6. package/dist/vue-components.es21.js +2 -2
  7. package/dist/vue-components.es22.js +2 -2
  8. package/dist/vue-components.es23.js +1 -1
  9. package/dist/vue-components.es25.js +1 -1
  10. package/dist/vue-components.es26.js +2 -2
  11. package/dist/vue-components.es27.js +2 -2
  12. package/dist/vue-components.es28.js +1 -1
  13. package/dist/vue-components.es29.js +1 -1
  14. package/dist/vue-components.es36.js +37 -317
  15. package/dist/vue-components.es37.js +4 -561
  16. package/dist/vue-components.es38.js +77 -21
  17. package/dist/vue-components.es39.js +1 -1
  18. package/dist/vue-components.es40.js +551 -54
  19. package/dist/vue-components.es41.js +41 -4
  20. package/dist/vue-components.es42.js +27 -4
  21. package/dist/vue-components.es43.js +5 -24
  22. package/dist/vue-components.es44.js +36 -71
  23. package/dist/vue-components.es45.js +304 -30
  24. package/dist/vue-components.es46.js +25 -308
  25. package/dist/vue-components.es47.js +4 -99
  26. package/dist/vue-components.es48.js +22 -29
  27. package/dist/vue-components.es49.js +75 -2
  28. package/dist/vue-components.es50.js +99 -2
  29. package/dist/vue-components.es51.js +2 -2
  30. package/dist/vue-components.es52.js +317 -110
  31. package/dist/vue-components.es53.js +66 -0
  32. package/dist/vue-components.es54.js +2 -7
  33. package/dist/vue-components.es55.js +2 -32
  34. package/dist/vue-components.es56.js +113 -0
  35. package/dist/vue-components.es58.js +9 -0
  36. package/dist/vue-components.es59.js +30 -36
  37. package/dist/vue-components.es61.js +191 -40
  38. package/dist/vue-components.es63.js +101 -4
  39. package/dist/vue-components.es64.js +2 -23
  40. package/dist/vue-components.es65.js +21 -5
  41. package/dist/vue-components.es66.js +81 -20
  42. package/dist/vue-components.es67.js +12 -30
  43. package/dist/vue-components.es68.js +112 -21
  44. package/dist/vue-components.es69.js +3 -12
  45. package/dist/vue-components.es7.js +1 -1
  46. package/dist/vue-components.es70.js +32 -5
  47. package/dist/vue-components.es71.js +2 -19
  48. package/dist/vue-components.es72.js +2 -9
  49. package/dist/vue-components.es73.js +15 -31
  50. package/dist/vue-components.es74.js +69 -47
  51. package/dist/vue-components.es75.js +4 -26
  52. package/dist/vue-components.es76.js +16 -101
  53. package/dist/vue-components.es77.js +14 -81
  54. package/dist/vue-components.es78.js +8 -15
  55. package/dist/vue-components.es79.js +22 -31
  56. package/dist/vue-components.es80.js +5 -21
  57. package/dist/vue-components.es81.js +21 -12
  58. package/dist/vue-components.es82.js +29 -112
  59. package/dist/vue-components.es83.js +22 -3
  60. package/dist/vue-components.es84.js +12 -2
  61. package/dist/vue-components.es85.js +5 -2
  62. package/dist/vue-components.es86.js +19 -16
  63. package/dist/vue-components.es87.js +8 -69
  64. package/dist/vue-components.es88.js +31 -8
  65. package/dist/vue-components.es89.js +48 -2
  66. package/dist/vue-components.es90.js +26 -15
  67. package/dist/vue-components.es92.js +1 -1
  68. package/dist/vue-components.es94.js +1 -1
  69. package/dist/vue-components.es96.js +3 -3
  70. package/dist/vue-components.es97.js +1 -1
  71. package/package.json +10 -10
  72. package/src/components/OmegaForm/OmegaFormStuff.ts +6 -6
  73. package/dist/vue-components.es57.js +0 -194
  74. package/dist/vue-components.es60.js +0 -85
  75. package/dist/vue-components.es62.js +0 -7
@@ -1,17 +1,28 @@
1
- import { memoize as t } from "./vue-components.es39.js";
2
- function r(e) {
3
- return e.checks ? e.checks[e.checks.length - 1].annotations : e.annotations;
4
- }
5
- function o(e) {
6
- return (n) => r(n)?.[e];
7
- }
8
- const i = /* @__PURE__ */ o("identifier"), c = /* @__PURE__ */ t((e) => {
9
- const n = i(e);
10
- return typeof n == "string" ? n : e.getExpected(c);
11
- });
1
+ import { registerGlobal as a, getGlobal as p, unregisterGlobal as s } from "./vue-components.es95.js";
2
+ import { ProxyTracerProvider as i } from "./vue-components.es83.js";
3
+ import { wrapSpanContext as c, isSpanContextValid as h } from "./vue-components.es86.js";
4
+ import { deleteSpan as g, getSpan as S, getActiveSpan as x, getSpanContext as d, setSpan as f, setSpanContext as l } from "./vue-components.es96.js";
5
+ import { DiagAPI as o } from "./vue-components.es92.js";
6
+ var n = "trace", y = (
7
+ /** @class */
8
+ (function() {
9
+ function t() {
10
+ this._proxyTracerProvider = new i(), this.wrapSpanContext = c, this.isSpanContextValid = h, this.deleteSpan = g, this.getSpan = S, this.getActiveSpan = x, this.getSpanContext = d, this.setSpan = f, this.setSpanContext = l;
11
+ }
12
+ return t.getInstance = function() {
13
+ return this._instance || (this._instance = new t()), this._instance;
14
+ }, t.prototype.setGlobalTracerProvider = function(r) {
15
+ var e = a(n, this._proxyTracerProvider, o.instance());
16
+ return e && this._proxyTracerProvider.setDelegate(r), e;
17
+ }, t.prototype.getTracerProvider = function() {
18
+ return p(n) || this._proxyTracerProvider;
19
+ }, t.prototype.getTracer = function(r, e) {
20
+ return this.getTracerProvider().getTracer(r, e);
21
+ }, t.prototype.disable = function() {
22
+ s(n, o.instance()), this._proxyTracerProvider = new i();
23
+ }, t;
24
+ })()
25
+ );
12
26
  export {
13
- c as getExpected,
14
- r as resolve,
15
- o as resolveAt,
16
- i as resolveIdentifier
27
+ y as TraceAPI
17
28
  };
@@ -1,6 +1,6 @@
1
1
  import { DiagComponentLogger as m } from "./vue-components.es93.js";
2
2
  import { createLogLevelDiagLogger as y } from "./vue-components.es94.js";
3
- import { DiagLogLevel as d } from "./vue-components.es65.js";
3
+ import { DiagLogLevel as d } from "./vue-components.es80.js";
4
4
  import { unregisterGlobal as p, getGlobal as v, registerGlobal as w } from "./vue-components.es95.js";
5
5
  var b = function(i, n) {
6
6
  var r = typeof Symbol == "function" && i[Symbol.iterator];
@@ -1,4 +1,4 @@
1
- import { DiagLogLevel as r } from "./vue-components.es65.js";
1
+ import { DiagLogLevel as r } from "./vue-components.es80.js";
2
2
  function c(n, o) {
3
3
  n < r.NONE ? n = r.NONE : n > r.ALL && (n = r.ALL), o = o || {};
4
4
  function i(t, f) {
@@ -1,6 +1,6 @@
1
- import { createContextKey as o } from "./vue-components.es64.js";
2
- import { NonRecordingSpan as a } from "./vue-components.es73.js";
3
- import { ContextAPI as u } from "./vue-components.es74.js";
1
+ import { createContextKey as o } from "./vue-components.es79.js";
2
+ import { NonRecordingSpan as a } from "./vue-components.es88.js";
3
+ import { ContextAPI as u } from "./vue-components.es89.js";
4
4
  var n = o("OpenTelemetry Context Key SPAN");
5
5
  function r(e) {
6
6
  return e.getValue(n) || void 0;
@@ -1,4 +1,4 @@
1
- import { ROOT_CONTEXT as l } from "./vue-components.es64.js";
1
+ import { ROOT_CONTEXT as l } from "./vue-components.es79.js";
2
2
  var c = function(t, o) {
3
3
  var n = typeof Symbol == "function" && t[Symbol.iterator];
4
4
  if (!n) return t;
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@effect-app/vue-components",
3
- "version": "4.0.0-beta.1",
3
+ "version": "4.0.0-beta.10",
4
4
  "peerDependencies": {
5
5
  "@mdi/js": "^7.4.47",
6
- "effect": "^4.0.0-beta.25",
6
+ "effect": "^4.0.0-beta.27",
7
7
  "intl-messageformat": "^11.1.2",
8
8
  "mdi-js": "^1.0.1",
9
9
  "primeflex": "^4.0.0",
10
10
  "primeicons": "^7.0.0",
11
11
  "primevue": "^4.5.4",
12
12
  "vue": "^3.5.29",
13
- "vuetify": "^4.0.0"
13
+ "vuetify": "^4.0.1"
14
14
  },
15
15
  "devDependencies": {
16
- "@storybook/vue3": "^10.2.13",
17
- "@storybook/vue3-vite": "^10.2.13",
16
+ "@storybook/vue3": "^10.2.15",
17
+ "@storybook/vue3-vite": "^10.2.15",
18
18
  "@types/node": "^25.3.3",
19
19
  "@vitejs/plugin-vue": "^6.0.4",
20
20
  "@vue/test-utils": "^2.4.6",
@@ -23,7 +23,7 @@
23
23
  "jsdom": "^28.1.0",
24
24
  "rimraf": "^6.1.3",
25
25
  "sass": "^1.97.3",
26
- "storybook": "^10.2.13",
26
+ "storybook": "^10.2.15",
27
27
  "typescript": "~5.9.3",
28
28
  "vite": "^7.3.1",
29
29
  "vite-plugin-css-injected-by-js": "^4.0.1",
@@ -32,8 +32,8 @@
32
32
  "vue-router": "^5.0.3",
33
33
  "vue-toastification": "^2.0.0-rc.5",
34
34
  "vue-tsc": "^3.2.5",
35
- "vuetify": "^4.0.0",
36
- "@effect-app/eslint-shared-config": "0.5.7-beta.1"
35
+ "vuetify": "^4.0.1",
36
+ "@effect-app/eslint-shared-config": "0.5.7-beta.2"
37
37
  },
38
38
  "files": [
39
39
  "src",
@@ -53,8 +53,8 @@
53
53
  "highlight.js": "^11.11.1",
54
54
  "mitt": "^3.0.1",
55
55
  "vue3-highlightjs": "^1.0.5",
56
- "effect-app": "4.0.0-beta.1",
57
- "@effect-app/vue": "4.0.0-beta.1"
56
+ "@effect-app/vue": "4.0.0-beta.10",
57
+ "effect-app": "4.0.0-beta.10"
58
58
  },
59
59
  "scripts": {
60
60
  "check": "vue-tsc",
@@ -711,7 +711,7 @@ const flattenMeta = <T>(meta: MetaRecord<T> | FieldMeta, parentKey: string = "")
711
711
  return result
712
712
  }
713
713
 
714
- const _schemaFromAst = (ast: AST.AST): S.Schema<any> => S.make(ast)
714
+ const _schemaFromAst = (ast: AST.AST): S.Codec<any> => S.make(ast)
715
715
 
716
716
  const metadataFromAst = <_From, To>(
717
717
  schema: any // v4 Schema type is complex, use any for now
@@ -833,7 +833,7 @@ export const generateInputStandardSchemaFromFieldMeta = (
833
833
  if (!trans) {
834
834
  trans = useIntl().trans
835
835
  }
836
- let schema: S.Schema<any>
836
+ let schema: S.Codec<any>
837
837
 
838
838
  switch (meta.type) {
839
839
  case "string": {
@@ -982,9 +982,9 @@ export const generateInputStandardSchemaFromFieldMeta = (
982
982
 
983
983
  // TODO: Fix v4 migration - nullableInput transformation needs proper type handling
984
984
  // export const nullableInput = <A>(
985
- // schema: S.Schema<A>,
985
+ // schema: S.Codec<A>,
986
986
  // defaultValue: () => A
987
- // ): S.Schema<A> =>
987
+ // ): S.Codec<A> =>
988
988
  // S.NullOr(schema).pipe(
989
989
  // S.decodeTo(
990
990
  // schema,
@@ -1057,7 +1057,7 @@ function hasMembers(schema: any): schema is SchemaWithMembers {
1057
1057
 
1058
1058
  // Internal implementation with WeakSet tracking
1059
1059
  export const defaultsValueFromSchema = (
1060
- schema: S.Schema<any>,
1060
+ schema: S.Codec<any>,
1061
1061
  record: Record<string, any> = {}
1062
1062
  ): any => {
1063
1063
  const ast = schema.ast
@@ -1079,7 +1079,7 @@ export const defaultsValueFromSchema = (
1079
1079
 
1080
1080
  // Get the property schema from the original schema's fields if available
1081
1081
  // This preserves schema wrappers like withDefaultConstructor
1082
- let propSchema: S.Schema<any>
1082
+ let propSchema: S.Codec<any>
1083
1083
  if ((schema as any).fields && (schema as any).fields[key]) {
1084
1084
  propSchema = (schema as any).fields[key]
1085
1085
  } else {
@@ -1,194 +0,0 @@
1
- import { defineComponent as k, resolveComponent as b, createElementBlock as v, openBlock as a, createBlock as n, createCommentVNode as u, resolveDynamicComponent as g, mergeProps as o, createSlots as d, withCtx as r, renderSlot as m, normalizeProps as s, guardReactiveProps as P, unref as C, Fragment as V, renderList as U } from "vue";
2
- import { getInputType as c } from "./vue-components.es12.js";
3
- const w = /* @__PURE__ */ k({
4
- inheritAttrs: !1,
5
- __name: "OmegaInputVuetify",
6
- props: {
7
- inputProps: {},
8
- field: {},
9
- state: {}
10
- },
11
- emits: ["focus", "blur"],
12
- setup(e) {
13
- return (l, i) => {
14
- const y = b("v-text-field"), p = b("v-textarea"), f = b("v-radio"), h = b("v-radio-group"), q = b("v-select"), $ = b("v-autocomplete");
15
- return a(), v("div", {
16
- class: "omega-input",
17
- onFocusout: i[4] || (i[4] = (t) => l.$emit("blur", t)),
18
- onFocusin: i[5] || (i[5] = (t) => l.$emit("focus", t))
19
- }, [
20
- e.inputProps.type === "boolean" || e.inputProps.type === "switch" ? (a(), n(g(e.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), o({
21
- key: 0,
22
- id: e.inputProps.id,
23
- name: e.field.name,
24
- label: e.inputProps.label,
25
- "error-messages": e.inputProps.errorMessages,
26
- error: e.inputProps.error,
27
- ripple: ""
28
- }, l.$attrs, {
29
- "model-value": e.state.value,
30
- onChange: i[0] || (i[0] = (t) => e.field.handleChange(t.target.checked))
31
- }), d({ _: 2 }, [
32
- l.$slots.label ? {
33
- name: "label",
34
- fn: r(() => [
35
- m(l.$slots, "label", s(P({ required: e.inputProps.required, id: e.inputProps.id, label: e.inputProps.label })))
36
- ]),
37
- key: "0"
38
- } : void 0
39
- ]), 1040, ["id", "name", "label", "error-messages", "error", "model-value"])) : u("", !0),
40
- e.inputProps.type === "email" || e.inputProps.type === "string" || e.inputProps.type === "password" || e.inputProps.type === "date" ? (a(), n(y, o({
41
- key: 1,
42
- id: e.inputProps.id,
43
- required: e.inputProps.required,
44
- "min-length": e.inputProps.minLength,
45
- "max-length": e.inputProps.maxLength,
46
- type: C(c)(e.inputProps.type),
47
- name: e.field.name,
48
- label: e.inputProps.label,
49
- "error-messages": e.inputProps.errorMessages,
50
- error: e.inputProps.error
51
- }, l.$attrs, {
52
- "model-value": e.state.value,
53
- "onUpdate:modelValue": e.field.handleChange
54
- }), d({ _: 2 }, [
55
- l.$slots.label ? {
56
- name: "label",
57
- fn: r(() => [
58
- m(l.$slots, "label", s(P({ required: e.inputProps.required, id: e.inputProps.id, label: e.inputProps.label })))
59
- ]),
60
- key: "0"
61
- } : void 0
62
- ]), 1040, ["id", "required", "min-length", "max-length", "type", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : u("", !0),
63
- e.inputProps.type === "text" ? (a(), n(p, o({
64
- key: 2,
65
- id: e.inputProps.id,
66
- required: e.inputProps.required,
67
- "min-length": e.inputProps.minLength,
68
- "max-length": e.inputProps.maxLength,
69
- name: e.field.name,
70
- label: e.inputProps.label,
71
- "error-messages": e.inputProps.errorMessages,
72
- error: e.inputProps.error
73
- }, l.$attrs, {
74
- "model-value": e.state.value,
75
- "onUpdate:modelValue": e.field.handleChange
76
- }), d({ _: 2 }, [
77
- l.$slots.label ? {
78
- name: "label",
79
- fn: r(() => [
80
- m(l.$slots, "label", s(P({ required: e.inputProps.required, id: e.inputProps.id, label: e.inputProps.label })))
81
- ]),
82
- key: "0"
83
- } : void 0
84
- ]), 1040, ["id", "required", "min-length", "max-length", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : u("", !0),
85
- e.inputProps.type === "number" || e.inputProps.type === "range" ? (a(), n(g(e.inputProps.type === "range" ? "v-slider" : "v-text-field"), o({
86
- key: 3,
87
- id: e.inputProps.id,
88
- required: e.inputProps.required,
89
- min: e.inputProps.min,
90
- max: e.inputProps.max,
91
- type: e.inputProps.type,
92
- name: e.field.name,
93
- label: e.inputProps.label,
94
- "error-messages": e.inputProps.errorMessages,
95
- error: e.inputProps.error
96
- }, l.$attrs, {
97
- "model-value": e.state.value,
98
- "onUpdate:modelValue": i[1] || (i[1] = (t) => {
99
- t || t === 0 ? e.field.handleChange(Number(t)) : e.field.handleChange(void 0);
100
- })
101
- }), d({ _: 2 }, [
102
- l.$slots.label ? {
103
- name: "label",
104
- fn: r(() => [
105
- m(l.$slots, "label", s(P({ required: e.inputProps.required, id: e.inputProps.id, label: e.inputProps.label })))
106
- ]),
107
- key: "0"
108
- } : void 0
109
- ]), 1040, ["id", "required", "min", "max", "type", "name", "label", "error-messages", "error", "model-value"])) : u("", !0),
110
- e.inputProps.type === "radio" ? (a(), n(h, o({
111
- key: 4,
112
- id: e.inputProps.id,
113
- name: e.field.name,
114
- label: e.inputProps.label,
115
- "error-messages": e.inputProps.errorMessages,
116
- error: e.inputProps.error
117
- }, l.$attrs, {
118
- "model-value": e.state.value,
119
- "onUpdate:modelValue": e.field.handleChange
120
- }), d({
121
- default: r(() => [
122
- (a(!0), v(V, null, U(e.inputProps.options, (t) => (a(), n(f, {
123
- key: t.value,
124
- label: t.title,
125
- value: t.value
126
- }, null, 8, ["label", "value"]))), 128))
127
- ]),
128
- _: 2
129
- }, [
130
- l.$slots.label ? {
131
- name: "label",
132
- fn: r(() => [
133
- m(l.$slots, "label", s(P({ required: e.inputProps.required, id: e.inputProps.id, label: e.inputProps.label })))
134
- ]),
135
- key: "0"
136
- } : void 0
137
- ]), 1040, ["id", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : u("", !0),
138
- e.inputProps.type === "select" || e.inputProps.type === "multiple" ? (a(), n(q, o({
139
- key: 5,
140
- id: e.inputProps.id,
141
- clearable: e.inputProps.type === "select",
142
- required: e.inputProps.required,
143
- multiple: e.inputProps.type === "multiple",
144
- chips: e.inputProps.type === "multiple",
145
- name: e.field.name,
146
- label: e.inputProps.label,
147
- items: e.inputProps.options,
148
- "error-messages": e.inputProps.errorMessages,
149
- error: e.inputProps.error
150
- }, l.$attrs, {
151
- "model-value": e.state.value,
152
- onClear: i[2] || (i[2] = (t) => e.field.handleChange(void 0)),
153
- "onUpdate:modelValue": e.field.handleChange
154
- }), d({ _: 2 }, [
155
- l.$slots.label ? {
156
- name: "label",
157
- fn: r(() => [
158
- m(l.$slots, "label", s(P({ required: e.inputProps.required, id: e.inputProps.id, label: e.inputProps.label })))
159
- ]),
160
- key: "0"
161
- } : void 0
162
- ]), 1040, ["id", "clearable", "required", "multiple", "chips", "name", "label", "items", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : u("", !0),
163
- e.inputProps.type === "autocomplete" || e.inputProps.type === "autocompletemultiple" ? (a(), n($, o({
164
- key: 6,
165
- id: e.inputProps.id,
166
- clearable: e.inputProps.type === "autocomplete",
167
- multiple: e.inputProps.type === "autocompletemultiple",
168
- required: e.inputProps.required,
169
- name: e.field.name,
170
- label: e.inputProps.label,
171
- items: e.inputProps.options,
172
- "error-messages": e.inputProps.errorMessages,
173
- error: e.inputProps.error,
174
- chips: e.inputProps.type === "autocompletemultiple"
175
- }, l.$attrs, {
176
- "model-value": e.state.value,
177
- onClear: i[3] || (i[3] = (t) => e.field.handleChange(void 0)),
178
- "onUpdate:modelValue": e.field.handleChange
179
- }), d({ _: 2 }, [
180
- l.$slots.label ? {
181
- name: "label",
182
- fn: r(() => [
183
- m(l.$slots, "label", s(P({ required: e.inputProps.required, id: e.inputProps.id, label: e.inputProps.label })))
184
- ]),
185
- key: "0"
186
- } : void 0
187
- ]), 1040, ["id", "clearable", "multiple", "required", "name", "label", "items", "error-messages", "error", "chips", "model-value", "onUpdate:modelValue"])) : u("", !0)
188
- ], 32);
189
- };
190
- }
191
- });
192
- export {
193
- w as default
194
- };
@@ -1,85 +0,0 @@
1
- import { hasProperty as b } from "./vue-components.es38.js";
2
- import { symbolRedactable as h, getRedacted as l, redact as j } from "./vue-components.es80.js";
3
- function w(n, i) {
4
- const c = i?.space ?? 0, s = /* @__PURE__ */ new WeakSet(), a = c ? typeof c == "number" ? " ".repeat(c) : c : "", o = (t) => a.repeat(t), g = (t, r) => {
5
- const e = t?.constructor;
6
- return e && e !== Object.prototype.constructor && e.name ? `${e.name}(${r})` : r;
7
- }, $ = (t) => {
8
- try {
9
- return Reflect.ownKeys(t);
10
- } catch {
11
- return ["[ownKeys threw]"];
12
- }
13
- };
14
- function f(t, r = 0) {
15
- if (Array.isArray(t)) {
16
- if (s.has(t)) return m;
17
- if (s.add(t), !a || t.length <= 1) return `[${t.map((u) => f(u, r)).join(",")}]`;
18
- const e = t.map((u) => f(u, r + 1)).join(`,
19
- ` + o(r + 1));
20
- return `[
21
- ${o(r + 1)}${e}
22
- ${o(r)}]`;
23
- }
24
- if (t instanceof Date) return d(t);
25
- if (!i?.ignoreToString && b(t, "toString") && typeof t.toString == "function" && t.toString !== Object.prototype.toString && t.toString !== Array.prototype.toString) {
26
- const e = O(t);
27
- return t instanceof Error && t.cause ? `${e} (cause: ${f(t.cause, r)})` : e;
28
- }
29
- if (typeof t == "string") return JSON.stringify(t);
30
- if (typeof t == "number" || t == null || typeof t == "boolean" || typeof t == "symbol") return String(t);
31
- if (typeof t == "bigint") return String(t) + "n";
32
- if (typeof t == "object" || typeof t == "function") {
33
- if (s.has(t)) return m;
34
- if (s.add(t), h in t) return w(l(t));
35
- if (Symbol.iterator in t)
36
- return `${t.constructor.name}(${f(Array.from(t), r)})`;
37
- const e = $(t);
38
- if (!a || e.length <= 1) {
39
- const y = `{${e.map((S) => `${p(S)}:${f(t[S], r)}`).join(",")}}`;
40
- return g(t, y);
41
- }
42
- const u = `{
43
- ${e.map((y) => `${o(r + 1)}${p(y)}: ${f(t[y], r + 1)}`).join(`,
44
- `)}
45
- ${o(r)}}`;
46
- return g(t, u);
47
- }
48
- return String(t);
49
- }
50
- return f(n, 0);
51
- }
52
- const m = "[Circular]";
53
- function p(n) {
54
- return typeof n == "string" ? JSON.stringify(n) : String(n);
55
- }
56
- function J(n) {
57
- return n.map((i) => `[${p(i)}]`).join("");
58
- }
59
- function d(n) {
60
- try {
61
- return n.toISOString();
62
- } catch {
63
- return "Invalid Date";
64
- }
65
- }
66
- function O(n) {
67
- try {
68
- const i = n.toString();
69
- return typeof i == "string" ? i : String(i);
70
- } catch {
71
- return "[toString threw]";
72
- }
73
- }
74
- function K(n, i) {
75
- let c = [];
76
- const s = JSON.stringify(n, (a, o) => typeof o == "object" && o !== null ? c.includes(o) ? void 0 : c.push(o) && j(o) : o, i?.space);
77
- return c = void 0, s;
78
- }
79
- export {
80
- w as format,
81
- d as formatDate,
82
- K as formatJson,
83
- J as formatPath,
84
- p as formatPropertyKey
85
- };
@@ -1,7 +0,0 @@
1
- import { isFailure as s, succeed as e, fail as i } from "./vue-components.es87.js";
2
- const c = e, l = i, o = s;
3
- export {
4
- l as fail,
5
- o as isFailure,
6
- c as succeed
7
- };