vlite3 1.4.31 → 1.4.32

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/components/Accordion/Accordion.vue.js +19 -16
  2. package/components/Accordion/AccordionContent.vue.js +2 -2
  3. package/components/Accordion/AccordionItem.vue.js +38 -36
  4. package/components/CategoryManager/CategoryManager.vue2.js +4 -3
  5. package/components/Chart/GanttChart.vue.d.ts +13 -1
  6. package/components/Chart/GanttChart.vue.js +2 -2
  7. package/components/Chart/GanttChart.vue2.js +1185 -607
  8. package/components/Chart/GanttChartDateUtils.d.ts +38 -0
  9. package/components/Chart/GanttChartDateUtils.js +79 -0
  10. package/components/Chart/GanttChartDependencyUtils.d.ts +92 -0
  11. package/components/Chart/GanttChartDependencyUtils.js +113 -0
  12. package/components/Chart/GanttChartResizePreviewUtils.d.ts +52 -0
  13. package/components/Chart/GanttChartResizePreviewUtils.js +53 -0
  14. package/components/Chart/GanttChartTooltipUtils.d.ts +41 -0
  15. package/components/Chart/GanttChartTooltipUtils.js +63 -0
  16. package/components/Chart/index.d.ts +3 -1
  17. package/components/Chart/types.d.ts +76 -1
  18. package/components/Chart/types.js +8 -0
  19. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  20. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  21. package/components/Form/AccordionView.vue2.js +5 -2
  22. package/components/Form/AccordionView.vue3.js +250 -0
  23. package/components/Form/Form.vue.js +2 -2
  24. package/components/Form/Form.vue2.js +309 -280
  25. package/components/Form/FormField.vue.js +175 -196
  26. package/components/Form/FormFields.vue.js +1 -1
  27. package/components/Form/FormFields.vue2.js +60 -60
  28. package/components/Form/FormSkeleton.vue.js +50 -35
  29. package/components/Form/TableView.vue.js +59 -43
  30. package/components/Form/composables/useForm.js +159 -148
  31. package/components/Form/index.vue2.js +8 -8
  32. package/components/Form/utils/form.utils.d.ts +2 -0
  33. package/components/Form/utils/form.utils.js +17 -13
  34. package/components/GoogleMap.vue.d.ts +1 -1
  35. package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +189 -0
  36. package/components/PanZoomViewport/PanZoomViewport.vue.js +7 -0
  37. package/components/PanZoomViewport/PanZoomViewport.vue2.js +536 -0
  38. package/components/PanZoomViewport/index.d.ts +2 -0
  39. package/components/PanZoomViewport/types.d.ts +121 -0
  40. package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +3 -0
  41. package/components/ScaleGenerator/ScaleGenerator.vue.js +5 -108
  42. package/components/ScaleGenerator/ScaleGenerator.vue2.js +143 -2
  43. package/components/ScaleGenerator/types.d.ts +2 -0
  44. package/components/Screen/ScreenFilter.vue.js +19 -18
  45. package/components/SeoProvider/SeoProvider.vue.d.ts +4 -1
  46. package/components/SeoProvider/SeoProvider.vue.js +39 -33
  47. package/components/SeoProvider/domAdapter.d.ts +1 -4
  48. package/components/SeoProvider/domAdapter.js +71 -58
  49. package/components/SeoProvider/index.d.ts +5 -2
  50. package/components/SeoProvider/normalizeSeo.d.ts +10 -49
  51. package/components/SeoProvider/normalizeSeo.js +246 -182
  52. package/components/SeoProvider/plainText.d.ts +8 -0
  53. package/components/SeoProvider/plainText.js +117 -0
  54. package/components/SeoProvider/seoUrl.d.ts +13 -0
  55. package/components/SeoProvider/seoUrl.js +25 -0
  56. package/components/SeoProvider/structuredData.d.ts +100 -0
  57. package/components/SeoProvider/structuredData.js +33 -0
  58. package/components/SeoProvider/types.d.ts +47 -109
  59. package/components/Tabes/Tabes.vue.js +1 -1
  60. package/components/Tabes/Tabes.vue2.js +215 -193
  61. package/components/Tabes/TabesMarkerGeometry.d.ts +34 -0
  62. package/components/Tabes/TabesMarkerGeometry.js +21 -0
  63. package/components/ThemeProvider/ThemeProvider.vue.d.ts +2 -0
  64. package/components/ThemeProvider/ThemeProvider.vue.js +29 -23
  65. package/components/ThemeProvider/index.d.ts +1 -1
  66. package/components/ThemeProvider/themeVars.d.ts +9 -13
  67. package/components/ThemeProvider/themeVars.js +173 -125
  68. package/components/ThemeProvider/types.d.ts +10 -0
  69. package/components/index.d.ts +2 -1
  70. package/index.d.ts +1 -0
  71. package/index.js +415 -387
  72. package/package.json +3 -2
  73. package/style.css +1 -1
  74. package/components/Form/AccordionView.vue.js +0 -222
  75. /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
@@ -0,0 +1,100 @@
1
+ export declare const SEO_STRUCTURED_DATA_CONTEXT: "https://schema.org";
2
+ /** Generic JSON-LD object accepted by `SeoData.jsonLd`. */
3
+ export type SeoStructuredData = Record<string, unknown>;
4
+ export type SeoStructuredDataReference = SeoStructuredData | {
5
+ '@id': string;
6
+ } | string;
7
+ export interface StructuredDataFactoryOptions {
8
+ context?: string | null;
9
+ id?: string | null;
10
+ }
11
+ type StructuredDataProperties = object;
12
+ /** Typed identity helper for consumer-defined schema.org objects. */
13
+ export declare const defineStructuredData: <T extends SeoStructuredData>(value: T) => T;
14
+ /** Generic factory for schema.org types not covered by a dedicated helper. */
15
+ export declare const createStructuredData: <T extends StructuredDataProperties>(type: string, properties: T, options?: StructuredDataFactoryOptions) => SeoStructuredData & T;
16
+ export interface ArticleStructuredDataInput {
17
+ headline: string;
18
+ description?: string | null;
19
+ image?: string | readonly string[] | null;
20
+ datePublished?: string | null;
21
+ dateModified?: string | null;
22
+ url?: string | null;
23
+ author?: SeoStructuredDataReference | readonly SeoStructuredDataReference[] | null;
24
+ publisher?: SeoStructuredDataReference | null;
25
+ mainEntityOfPage?: SeoStructuredDataReference | null;
26
+ }
27
+ export interface ArticleStructuredData extends SeoStructuredData {
28
+ '@type': 'Article';
29
+ headline: string;
30
+ }
31
+ export declare const createArticleStructuredData: (input: ArticleStructuredDataInput, options?: StructuredDataFactoryOptions) => ArticleStructuredData;
32
+ export interface PersonStructuredDataInput {
33
+ name: string;
34
+ jobTitle?: string | null;
35
+ description?: string | null;
36
+ image?: string | null;
37
+ url?: string | null;
38
+ sameAs?: readonly string[] | null;
39
+ }
40
+ export interface PersonStructuredData extends SeoStructuredData {
41
+ '@type': 'Person';
42
+ name: string;
43
+ }
44
+ export declare const createPersonStructuredData: (input: PersonStructuredDataInput, options?: StructuredDataFactoryOptions) => PersonStructuredData;
45
+ export interface CreativeWorkStructuredDataInput {
46
+ name: string;
47
+ description?: string | null;
48
+ image?: string | readonly string[] | null;
49
+ url?: string | null;
50
+ creator?: SeoStructuredDataReference | null;
51
+ dateCreated?: string | null;
52
+ dateModified?: string | null;
53
+ }
54
+ export interface CreativeWorkStructuredData extends SeoStructuredData {
55
+ '@type': 'CreativeWork';
56
+ name: string;
57
+ }
58
+ export declare const createCreativeWorkStructuredData: (input: CreativeWorkStructuredDataInput, options?: StructuredDataFactoryOptions) => CreativeWorkStructuredData;
59
+ export interface WebPageStructuredDataInput {
60
+ name: string;
61
+ description?: string | null;
62
+ url?: string | null;
63
+ image?: string | null;
64
+ isPartOf?: SeoStructuredDataReference | null;
65
+ breadcrumb?: SeoStructuredDataReference | null;
66
+ }
67
+ export interface WebPageStructuredData extends SeoStructuredData {
68
+ '@type': 'WebPage';
69
+ name: string;
70
+ }
71
+ export declare const createWebPageStructuredData: (input: WebPageStructuredDataInput, options?: StructuredDataFactoryOptions) => WebPageStructuredData;
72
+ export interface OrganizationStructuredDataInput {
73
+ name: string;
74
+ description?: string | null;
75
+ url?: string | null;
76
+ logo?: string | SeoStructuredDataReference | null;
77
+ image?: string | null;
78
+ sameAs?: readonly string[] | null;
79
+ }
80
+ export interface OrganizationStructuredData extends SeoStructuredData {
81
+ '@type': 'Organization';
82
+ name: string;
83
+ }
84
+ export declare const createOrganizationStructuredData: (input: OrganizationStructuredDataInput, options?: StructuredDataFactoryOptions) => OrganizationStructuredData;
85
+ export interface BreadcrumbStructuredDataItem {
86
+ name: string;
87
+ url?: string | null;
88
+ }
89
+ export interface BreadcrumbListItemStructuredData extends SeoStructuredData {
90
+ '@type': 'ListItem';
91
+ position: number;
92
+ name: string;
93
+ item?: string;
94
+ }
95
+ export interface BreadcrumbListStructuredData extends SeoStructuredData {
96
+ '@type': 'BreadcrumbList';
97
+ itemListElement: BreadcrumbListItemStructuredData[];
98
+ }
99
+ export declare const createBreadcrumbListStructuredData: (items: readonly BreadcrumbStructuredDataItem[], options?: StructuredDataFactoryOptions) => BreadcrumbListStructuredData;
100
+ export {};
@@ -0,0 +1,33 @@
1
+ const o = "https://schema.org", n = (t) => {
2
+ const e = {};
3
+ for (const [r, c] of Object.entries(t))
4
+ c != null && (e[r] = c);
5
+ return e;
6
+ }, u = (t) => t, a = (t, e, r = {}) => ({
7
+ ...r.context === null ? {} : { "@context": r.context ?? o },
8
+ "@type": t,
9
+ ...r.id ? { "@id": r.id } : {},
10
+ ...n(e)
11
+ }), i = (t, e) => a("Article", t, e), s = (t, e) => a("Person", t, e), d = (t, e) => a("CreativeWork", t, e), m = (t, e) => a("WebPage", t, e), D = (t, e) => a("Organization", t, e), S = (t, e) => a(
12
+ "BreadcrumbList",
13
+ {
14
+ itemListElement: t.map((r, c) => n({
15
+ "@type": "ListItem",
16
+ position: c + 1,
17
+ name: r.name,
18
+ item: r.url
19
+ }))
20
+ },
21
+ e
22
+ );
23
+ export {
24
+ o as SEO_STRUCTURED_DATA_CONTEXT,
25
+ i as createArticleStructuredData,
26
+ S as createBreadcrumbListStructuredData,
27
+ d as createCreativeWorkStructuredData,
28
+ D as createOrganizationStructuredData,
29
+ s as createPersonStructuredData,
30
+ a as createStructuredData,
31
+ m as createWebPageStructuredData,
32
+ u as defineStructuredData
33
+ };
@@ -1,63 +1,40 @@
1
+ import { SeoStructuredData } from './structuredData';
2
+ /** Keywords accepted by authored SEO inputs. */
3
+ export type SeoKeywordsInput = string | readonly string[];
1
4
  /**
2
- * Generic, framework-agnostic SEO contract.
3
- *
4
- * The goal of this layer is to keep SEO **normalization** (turning
5
- * "store config + route context + page-specific overrides" into one
6
- * canonical object) reusable, while letting the **application**
7
- * (Nuxt, plain Vue + DOM, server-rendered HTML, …) decide **how** the
8
- * data is actually emitted to the document head.
9
- *
10
- * The split is:
11
- *
12
- * 1. `SeoData` — the final shape every consumer (Nuxt
13
- * `useSeoMeta`, Open Graph crawler, plain
14
- * `<meta>` injection) understands.
15
- * 2. `SeoAdapter` — a tiny interface the host app provides
16
- * to apply `SeoData` to the document. In
17
- * Nuxt this wraps `useSeoMeta` / `useHead`;
18
- * in a Vue admin preview it mutates
19
- * `document.head` directly. The provider
20
- * itself never imports Nuxt or DOM APIs.
21
- * 3. `useSeo` — a Vue composable for components that
22
- * want to declare per-page SEO context
23
- * (page type, dynamic replacements, image).
24
- * 4. `SeoProvider` — the Vue component that owns the
25
- * lifecycle: it merges the current page
26
- * context, runs the normalizer, and calls
27
- * the adapter on every change.
28
- *
29
- * Keeping the layer UI-agnostic means `vlite3` can ship SEO support
30
- * without forcing every consumer onto Nuxt — and tests can run with
31
- * a stub adapter that just records the last call.
5
+ * Structured robots input. Each defined boolean is normalized to its
6
+ * positive or negative directive; extra directives are appended once.
32
7
  */
8
+ export interface SeoRobotsDirectives {
9
+ index?: boolean;
10
+ follow?: boolean;
11
+ archive?: boolean;
12
+ imageIndex?: boolean;
13
+ translate?: boolean;
14
+ additional?: readonly string[];
15
+ }
33
16
  /**
34
- * Final, fully-resolved SEO payload.
17
+ * `true` means `index, follow`; `false` means `noindex, nofollow`.
18
+ * Objects allow the two directives to be controlled independently.
19
+ */
20
+ export type SeoRobotsInput = string | boolean | SeoRobotsDirectives;
21
+ /** One authored JSON-LD block or an ordered list of blocks. */
22
+ export type SeoJsonLdInput = SeoStructuredData | readonly SeoStructuredData[];
23
+ /**
24
+ * Generic, framework-agnostic SEO input contract.
35
25
  *
36
- * Every field is **already normalized** null vs empty string,
37
- * fallbacks applied, dynamic tokens replaced. Consumers (Nuxt
38
- * `useSeoMeta`, DOM mutation, SSR string templating) should be
39
- * able to read this object and emit `<meta>` tags without further
40
- * computation.
26
+ * This shape is accepted by provider defaults, page fallbacks, and
27
+ * `useSeo`. The normalizer converts ergonomic inputs such as keyword
28
+ * arrays, robot flags, and one-or-many JSON-LD into `SeoPayload`.
41
29
  */
42
30
  export interface SeoData {
43
- /** Page title, ready to feed `useSeoMeta({ title })` / `<title>`. */
44
- title: string;
45
- /**
46
- * Optional title template, e.g. `"%s · Acme"`. Falsy → leave the
47
- * host app's default behaviour in place.
48
- */
31
+ title: string | null;
49
32
  titleTemplate?: string | null;
50
- /** Meta description, 1–2 sentences, crawler-friendly. */
51
- description: string;
52
- /** Comma- or space-separated keywords. Empty string if unset. */
53
- keywords: string;
54
- /** Absolute canonical URL. Falsy → host decides (use `useRequestURL` etc.). */
33
+ description: string | null;
34
+ keywords: SeoKeywordsInput | null;
55
35
  canonicalUrl?: string | null;
56
- /** Robots directive, e.g. `"index, follow"` or `"noindex, nofollow"`. */
57
- robots?: string | null;
58
- /** Absolute favicon URL (`.ico` / `.png`). */
36
+ robots?: SeoRobotsInput | null;
59
37
  favicon?: string | null;
60
- /** Absolute share-image URL (used for both OG and Twitter by default). */
61
38
  image?: string | null;
62
39
  ogTitle?: string | null;
63
40
  ogDescription?: string | null;
@@ -71,76 +48,37 @@ export interface SeoData {
71
48
  twitterTitle?: string | null;
72
49
  twitterDescription?: string | null;
73
50
  twitterImage?: string | null;
51
+ twitterImageAlt?: string | null;
74
52
  twitterSite?: string | null;
75
53
  twitterCreator?: string | null;
76
- /**
77
- * Site name used in OG `site_name`. Today the `ogSiteName` field
78
- * carries the same value — `siteName` is exposed separately for
79
- * adapters that prefer to render it as JSON-LD instead of a meta
80
- * tag.
81
- */
82
54
  siteName?: string | null;
83
- /** Free-form JSON-LD block. Adapter decides whether to render. */
84
- jsonLd?: Record<string, unknown> | null;
55
+ jsonLd?: SeoJsonLdInput | null;
85
56
  }
86
- /**
87
- * The full, normalized context the `SeoProvider` hands to its
88
- * adapter. Same as `SeoData` plus the canonical `pageType` key
89
- * (used for analytics / structured data) and the unresolved raw
90
- * inputs in case the adapter needs them.
91
- */
92
- export interface SeoPayload extends SeoData {
93
- /**
94
- * Logical page key, e.g. `"home"`, `"product"`, `"collection"`.
95
- * Adapter can use it for breadcrumb JSON-LD, custom `<meta>`,
96
- * or just logging.
97
- */
57
+ /** Final normalized payload passed to an adapter. */
58
+ export type SeoPayload = Omit<SeoData, 'title' | 'description' | 'keywords' | 'robots' | 'jsonLd'> & {
98
59
  pageType: string;
99
- }
60
+ title: string;
61
+ description: string;
62
+ keywords: string;
63
+ robots: string | null;
64
+ jsonLd: SeoStructuredData[];
65
+ };
100
66
  /**
101
- * Partial SEO data a page (or any component) can push into the
102
- * provider via `useSeo({ … })`. Anything not supplied is filled by
103
- * the provider's defaults / store-level fallback. Keys with `null`
104
- * explicitly clear the inherited value.
67
+ * Page-level input registered through `useSeo`.
68
+ *
69
+ * Direct fields are preferred. `overrides` remains available for
70
+ * compatibility and always has the highest precedence. Empty values fall
71
+ * through; `null` explicitly clears an inherited value.
105
72
  */
106
- export interface SeoContextInput {
73
+ export interface SeoContextInput extends Partial<SeoData> {
107
74
  pageType?: string;
108
- title?: string | null;
109
- description?: string | null;
110
- keywords?: string | null;
111
- image?: string | null;
112
- canonicalUrl?: string | null;
113
- robots?: string | null;
114
- /**
115
- * Token replacements applied to every string field, e.g.
116
- * `{ productName: 'Blue Tee' }` for `{{productName}}`.
117
- */
118
75
  replacements?: Record<string, string | number | null | undefined>;
119
- /**
120
- * Free-form extras merged on top of the resolved payload. Use
121
- * sparingly — the canonical fields above are preferred.
122
- */
123
76
  overrides?: Partial<SeoData>;
77
+ /** Opt in to rich-text/entity sanitization for textual SEO fields. */
78
+ sanitizeText?: boolean;
124
79
  }
125
- /**
126
- * The contract a host application (Nuxt app, Vue admin shell,
127
- * SSR template) provides so the generic `SeoProvider` can emit
128
- * the resolved SEO without depending on any specific framework.
129
- *
130
- * The adapter receives the final, normalized payload. The
131
- * provider calls it whenever the merged SEO context changes.
132
- */
80
+ /** Host-specific output adapter (DOM, Nuxt, SSR template, and so on). */
133
81
  export interface SeoAdapter {
134
- /**
135
- * Apply the SEO payload to the document. Called reactively on
136
- * every change; may be called multiple times during a session
137
- * (e.g. on route change, then on data load).
138
- */
139
82
  apply(payload: SeoPayload): void;
140
- /**
141
- * Optional cleanup hook, e.g. clearing injected meta tags when
142
- * the provider unmounts. The default implementation in
143
- * `normalizeSeo` no-ops.
144
- */
145
83
  reset?(): void;
146
84
  }
@@ -1,7 +1,7 @@
1
1
  import o from "./Tabes.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cdf6b045"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-813948ec"]]);
5
5
  export {
6
6
  m as default
7
7
  };