vlite3 1.5.1 → 1.5.4
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.
- package/components/CategoryManager/CategoryManager.vue2.js +3 -3
- package/components/Chart/GanttChart.vue.d.ts +92 -2
- package/components/Chart/GanttChart.vue.js +2 -2
- package/components/Chart/GanttChart.vue2.js +1028 -878
- package/components/Chart/GanttChartDateUtils.js +28 -24
- package/components/Chart/index.d.ts +1 -1
- package/components/Chart/types.d.ts +88 -1
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/DataTable/DataTable.vue.js +1 -1
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Kanban/Kanban.vue.d.ts +6 -5
- package/components/Kanban/Kanban.vue.js +1 -1
- package/components/Kanban/Kanban.vue2.js +139 -118
- package/components/Kanban/groupKanbanData.d.ts +36 -0
- package/components/Kanban/groupKanbanData.js +72 -0
- package/components/Kanban/index.d.ts +1 -0
- package/components/Kanban/types.d.ts +17 -0
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +1 -1
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
- package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
- package/components/Screen/Screen.vue.js +80 -82
- package/components/Screen/ScreenFilter.vue.js +3 -3
- package/components/Screen/components/ScreenAddAction.vue.js +31 -31
- package/components/Screen/components/ScreenHeaderTitle.vue.js +1 -1
- package/components/Screen/components/ScreenToolbar.vue.d.ts +9 -0
- package/components/Screen/components/ScreenToolbar.vue.js +85 -52
- package/index.js +426 -421
- package/package.json +1 -1
- package/style.css +1 -7
- /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
- /package/components/Dropdown/{DropdownMenu.vue3.js → DropdownMenu.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue2.js → RichTextLinkPopover.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue2.js → RichTextToolbar.vue.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const s = /^(\d{4})-(\d{2})-(\d{2})$/,
|
|
1
|
+
const s = /^(\d{4})-(\d{2})-(\d{2})$/, i = /^(\d{4})-(\d{2})-(\d{2})/;
|
|
2
2
|
function u(t) {
|
|
3
3
|
return new Date(t.getFullYear(), t.getMonth(), t.getDate(), 0, 0, 0, 0);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function y(t) {
|
|
6
6
|
if (t instanceof Date)
|
|
7
7
|
return Number.isNaN(t.getTime()) ? /* @__PURE__ */ new Date(NaN) : u(t);
|
|
8
8
|
const e = String(t).trim();
|
|
@@ -18,7 +18,7 @@ function i(t) {
|
|
|
18
18
|
0,
|
|
19
19
|
0
|
|
20
20
|
);
|
|
21
|
-
const r =
|
|
21
|
+
const r = i.exec(e);
|
|
22
22
|
if (r && (e.includes("T") || e.includes(" ")))
|
|
23
23
|
return new Date(
|
|
24
24
|
Number(r[1]),
|
|
@@ -32,48 +32,52 @@ function i(t) {
|
|
|
32
32
|
const a = new Date(e);
|
|
33
33
|
return Number.isNaN(a.getTime()) ? a : u(a);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function g(t, e) {
|
|
36
36
|
const n = Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
|
|
37
37
|
return (Date.UTC(e.getFullYear(), e.getMonth(), e.getDate()) - n) / 864e5;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function T(t, e) {
|
|
40
40
|
const n = u(t);
|
|
41
41
|
return n.setDate(n.getDate() + e), n;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function N(t) {
|
|
44
44
|
const e = u(t), n = e.getDay();
|
|
45
45
|
return e.setDate(e.getDate() - (n === 0 ? 6 : n - 1)), e;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function l(t) {
|
|
48
48
|
return new Date(t.getFullYear(), t.getMonth(), 1, 0, 0, 0, 0);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function F(t) {
|
|
51
51
|
const e = t.getFullYear(), n = String(t.getMonth() + 1).padStart(2, "0"), r = String(t.getDate()).padStart(2, "0");
|
|
52
52
|
return `${e}-${n}-${r}`;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function o(t, e, n, r) {
|
|
55
55
|
if (n === "day")
|
|
56
|
-
return
|
|
56
|
+
return g(e, t) * r;
|
|
57
57
|
if (n === "week")
|
|
58
|
-
return
|
|
59
|
-
const a = e,
|
|
60
|
-
return (
|
|
58
|
+
return g(e, t) / 7 * r;
|
|
59
|
+
const a = e, f = (t.getFullYear() - a.getFullYear()) * 12 + (t.getMonth() - a.getMonth()), D = new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate(), c = (t.getDate() - 1) / D;
|
|
60
|
+
return (f + c) * r;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Y(t, e, n) {
|
|
63
63
|
return e === "day" ? t / n : e === "week" ? t / n * 7 : t / n * 30.44;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function m(t, e, n) {
|
|
66
66
|
return e === "day" ? t * n : e === "week" ? t / 7 * n : t / 30.44 * n;
|
|
67
67
|
}
|
|
68
|
+
function w(t, e, n, r) {
|
|
69
|
+
return o(n === "day" ? u(t) : n === "week" ? N(t) : l(t), e, n, r);
|
|
70
|
+
}
|
|
68
71
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
F as formatGanttLocalDate,
|
|
73
|
+
T as ganttAddDays,
|
|
74
|
+
g as ganttCalendarDaysBetween,
|
|
75
|
+
w as ganttColumnBoundaryX,
|
|
76
|
+
o as ganttDateToX,
|
|
77
|
+
m as ganttDaysToPx,
|
|
78
|
+
Y as ganttPxToDays,
|
|
75
79
|
u as ganttStartOfLocalDay,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
l as ganttStartOfMonth,
|
|
81
|
+
N as ganttStartOfWeek,
|
|
82
|
+
y as parseGanttDate
|
|
79
83
|
};
|
|
@@ -9,7 +9,7 @@ export { default as SegmentBarChart } from './SegmentBarChart.vue';
|
|
|
9
9
|
export { default as StatCardChart } from './StatCardChart.vue';
|
|
10
10
|
export { default as WaffleChart } from './WaffleChart.vue';
|
|
11
11
|
export { default as GanttChart } from './GanttChart.vue';
|
|
12
|
-
export type { ChartDataPoint, ChartDataset, ChartLegendsVariant, LegendPosition, LineChartProps, BarChartProps, PieChartProps, CircleChartProps, GaugeChartProps, GaugeVariant, GaugeZone, SpeedometerChartProps, SpeedometerVariant, TimelineChartProps, TimelineTask, SegmentBarChartProps, StatCardChartProps, StatCardItem, WaffleChartProps, GanttChartProps, GanttTask, GanttViewMode, GanttDependencyType, GanttTaskDependencyLink, GanttDependencyCreatePayload, GanttDependencyDeletePayload, } from './types';
|
|
12
|
+
export type { ChartDataPoint, ChartDataset, ChartLegendsVariant, LegendPosition, LineChartProps, BarChartProps, PieChartProps, CircleChartProps, GaugeChartProps, GaugeVariant, GaugeZone, SpeedometerChartProps, SpeedometerVariant, TimelineChartProps, TimelineTask, SegmentBarChartProps, StatCardChartProps, StatCardItem, WaffleChartProps, GanttChartProps, GanttTask, GanttPerson, GanttViewMode, GanttDependencyType, GanttTaskDependencyLink, GanttDependencyCreatePayload, GanttDependencyDeletePayload, GanttZoomState, } from './types';
|
|
13
13
|
export { GANTT_DEPENDENCY_TYPE_LABELS } from './types';
|
|
14
14
|
export { formatGanttLocalDate, parseGanttDate, ganttDateToX, ganttCalendarDaysBetween, } from './GanttChartDateUtils';
|
|
15
15
|
export { default as ChartLegend } from './ChartLegend.vue';
|
|
@@ -386,6 +386,26 @@ export interface GanttTaskDependencyLink {
|
|
|
386
386
|
/** Relationship from THIS task's perspective */
|
|
387
387
|
type: GanttDependencyType;
|
|
388
388
|
}
|
|
389
|
+
/**
|
|
390
|
+
* A person assigned to a Gantt task, shown in the tooltip. The shape maps onto
|
|
391
|
+
* both `AvatarGroup` (multiple assignees) and `Persona` (a single assignee):
|
|
392
|
+
* `name` → Persona `label` / AvatarGroup `heading`, `role` → Persona
|
|
393
|
+
* `secondaryLabel` / AvatarGroup `text`.
|
|
394
|
+
*/
|
|
395
|
+
export interface GanttPerson {
|
|
396
|
+
/** Display name */
|
|
397
|
+
name?: string;
|
|
398
|
+
/** Avatar image URL */
|
|
399
|
+
src?: string;
|
|
400
|
+
/** Alt text for the avatar image */
|
|
401
|
+
alt?: string;
|
|
402
|
+
/** Initials/fallback shown when no image is available */
|
|
403
|
+
fallback?: string;
|
|
404
|
+
/** Secondary line (e.g. job title or role on the task) */
|
|
405
|
+
role?: string;
|
|
406
|
+
/** Presence indicator — only used when a single assignee renders as a Persona */
|
|
407
|
+
presence?: 'online' | 'offline' | 'busy' | 'dnd' | 'away';
|
|
408
|
+
}
|
|
389
409
|
/** A single task (or milestone) on the Gantt chart */
|
|
390
410
|
export interface GanttTask {
|
|
391
411
|
/** Unique identifier for this task */
|
|
@@ -424,6 +444,11 @@ export interface GanttTask {
|
|
|
424
444
|
blocked?: boolean;
|
|
425
445
|
/** Short human-readable reason shown in the tooltip when `blocked` */
|
|
426
446
|
blockedReason?: string;
|
|
447
|
+
/**
|
|
448
|
+
* People assigned to this task. Shown in the tooltip: a single assignee
|
|
449
|
+
* renders as a `Persona`, multiple render as an overlapping `AvatarGroup`.
|
|
450
|
+
*/
|
|
451
|
+
assignees?: GanttPerson[];
|
|
427
452
|
}
|
|
428
453
|
export interface GanttChartProps {
|
|
429
454
|
/** Array of task objects */
|
|
@@ -442,6 +467,8 @@ export interface GanttChartProps {
|
|
|
442
467
|
sidebarWidth?: number;
|
|
443
468
|
/** Show dashed vertical grid lines */
|
|
444
469
|
showGrid?: boolean;
|
|
470
|
+
/** Gridline opacity 0–1 */
|
|
471
|
+
gridOpacity?: number;
|
|
445
472
|
/** Enable hover tooltip */
|
|
446
473
|
showTooltip?: boolean;
|
|
447
474
|
/** Show task name labels inside bars when wide enough */
|
|
@@ -479,8 +506,68 @@ export interface GanttChartProps {
|
|
|
479
506
|
* transactional guarantee.)
|
|
480
507
|
*/
|
|
481
508
|
cascadeDependencies?: boolean;
|
|
482
|
-
/**
|
|
509
|
+
/**
|
|
510
|
+
* Enable Ctrl/Meta + wheel (and trackpad pinch) zoom. The chart renders no
|
|
511
|
+
* zoom buttons — drive zoom from the parent via the exposed methods
|
|
512
|
+
* (`zoomIn`, `zoomOut`, `setZoom`, `resetZoom`) and the `zoom-change` event.
|
|
513
|
+
*/
|
|
483
514
|
zoom?: boolean;
|
|
515
|
+
/** Lower bound for the zoom level (default 0.2) */
|
|
516
|
+
minZoom?: number;
|
|
517
|
+
/** Upper bound for the zoom level (default 5) */
|
|
518
|
+
maxZoom?: number;
|
|
519
|
+
/** Increment applied by `zoomIn` / `zoomOut` (default 0.2) */
|
|
520
|
+
zoomStep?: number;
|
|
521
|
+
/**
|
|
522
|
+
* Target number of period columns visible at once (days/weeks/months by
|
|
523
|
+
* view mode). Omit for a responsive count derived from the container width.
|
|
524
|
+
* Columns never shrink below `minColumnWidth`; the rest scrolls.
|
|
525
|
+
*/
|
|
526
|
+
visiblePeriodCount?: number;
|
|
527
|
+
/**
|
|
528
|
+
* Minimum width in px per period column, preventing the full project range
|
|
529
|
+
* from being squeezed into the viewport. Per-view defaults: Day 44, Week 96,
|
|
530
|
+
* Month 130.
|
|
531
|
+
*/
|
|
532
|
+
minColumnWidth?: number;
|
|
533
|
+
/** Force the timeline start date (aligned to the view's period boundary). */
|
|
534
|
+
timelineStart?: Date | string;
|
|
535
|
+
/** Force the timeline end date instead of deriving it from the last task. */
|
|
536
|
+
timelineEnd?: Date | string;
|
|
537
|
+
/**
|
|
538
|
+
* Extra empty periods after the last task's (completed) boundary period, as
|
|
539
|
+
* navigation padding (weeks in Day/Week view, months in Month view).
|
|
540
|
+
* Default 0.
|
|
541
|
+
*/
|
|
542
|
+
rangePadding?: number;
|
|
543
|
+
/**
|
|
544
|
+
* Preserve the viewport's centre date when switching Day / Week / Month
|
|
545
|
+
* instead of jumping back to the project start. Default true.
|
|
546
|
+
*/
|
|
547
|
+
preserveCenterDate?: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Show a collapse/expand control on the task sidebar so the timeline can be
|
|
550
|
+
* given more room. Default true.
|
|
551
|
+
*/
|
|
552
|
+
collapsibleSidebar?: boolean;
|
|
553
|
+
/** Start with the sidebar collapsed. Default false. */
|
|
554
|
+
defaultSidebarCollapsed?: boolean;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* Payload emitted by GanttChart `@zoom-change` on every zoom change (wheel or
|
|
558
|
+
* imperative). Use it to render accurate parent-owned zoom controls.
|
|
559
|
+
*/
|
|
560
|
+
export interface GanttZoomState {
|
|
561
|
+
/** Current zoom level */
|
|
562
|
+
zoom: number;
|
|
563
|
+
/** `zoom < maxZoom` */
|
|
564
|
+
canZoomIn: boolean;
|
|
565
|
+
/** `zoom > minZoom` */
|
|
566
|
+
canZoomOut: boolean;
|
|
567
|
+
/** Configured `minZoom` */
|
|
568
|
+
min: number;
|
|
569
|
+
/** Configured `maxZoom` */
|
|
570
|
+
max: number;
|
|
484
571
|
}
|
|
485
572
|
/**
|
|
486
573
|
* Payload emitted by GanttChart `@dependency-create`.
|
|
@@ -7,8 +7,8 @@ import "../../core/config.js";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import y from "../Button.vue.js";
|
|
10
|
-
import A from "./ColorIro.
|
|
11
|
-
/* empty css
|
|
10
|
+
import A from "./ColorIro.vue.js";
|
|
11
|
+
/* empty css */
|
|
12
12
|
import { useEyeDropper as T } from "@vueuse/core";
|
|
13
13
|
import { COLOR_PICKER_RESET_VALUE as g } from "./constants.js";
|
|
14
14
|
const F = ["disabled", "aria-label"], G = { class: "min-w-0 flex-1 truncate text-foreground" }, K = { class: "absolute left-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center z-20 pointer-events-none" }, q = {
|
|
@@ -4,7 +4,7 @@ import k from "../Icon.vue.js";
|
|
|
4
4
|
import { $t as E } from "../../utils/i18n.js";
|
|
5
5
|
import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
|
|
6
6
|
import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
|
|
7
|
-
import ee from "./CommandPaletteItem.
|
|
7
|
+
import ee from "./CommandPaletteItem.vue2.js";
|
|
8
8
|
const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/80 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
|
|
@@ -240,7 +240,7 @@ const Qe = { class: "space-y-6.5" }, Ze = {
|
|
|
240
240
|
a.class
|
|
241
241
|
].join(" ");
|
|
242
242
|
}), Re = u(() => {
|
|
243
|
-
const e = a.cellBordered ? "[
|
|
243
|
+
const e = a.cellBordered ? "[&_thead_th]:border-border [&_tbody_td]:border-border [&_tbody_th]:border-border [&_thead_th:not(:last-child)]:border-r [&_tbody_td:not(:last-child)]:border-r [&_tbody_th:not(:last-child)]:border-r [&_tbody_tr:not(:last-child)>td]:border-b [&_tbody_tr:not(:last-child)>th]:border-b" : "";
|
|
244
244
|
return [
|
|
245
245
|
"w-full caption-bottom -text-fs-1",
|
|
246
246
|
g.value ? "table-fixed" : "",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { KanbanChangeEvent, KanbanMoveEvent, KanbanProps } from './types';
|
|
1
|
+
import { KanbanChangeEvent, KanbanColumn, KanbanMoveEvent, KanbanProps } from './types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: {
|
|
5
5
|
'column-header'?(_: {
|
|
6
|
-
column:
|
|
6
|
+
column: KanbanColumn;
|
|
7
7
|
pageInfo: {
|
|
8
8
|
currentPage: number;
|
|
9
9
|
totalPages: number;
|
|
@@ -11,16 +11,16 @@ declare function __VLS_template(): {
|
|
|
11
11
|
};
|
|
12
12
|
}): any;
|
|
13
13
|
'prepend-item'?(_: {
|
|
14
|
-
column:
|
|
14
|
+
column: KanbanColumn;
|
|
15
15
|
items: any[];
|
|
16
16
|
}): any;
|
|
17
17
|
item?(_: {
|
|
18
18
|
item: any;
|
|
19
|
-
column:
|
|
19
|
+
column: KanbanColumn;
|
|
20
20
|
isDisabled: boolean;
|
|
21
21
|
}): any;
|
|
22
22
|
'append-item'?(_: {
|
|
23
|
-
column:
|
|
23
|
+
column: KanbanColumn;
|
|
24
24
|
items: any[];
|
|
25
25
|
}): any;
|
|
26
26
|
};
|
|
@@ -58,6 +58,7 @@ declare const __VLS_component: import('vue').DefineComponent<KanbanProps, {}, {}
|
|
|
58
58
|
itemKey: string;
|
|
59
59
|
groupKey: string;
|
|
60
60
|
positionKey: string;
|
|
61
|
+
includeOrphanColumns: boolean;
|
|
61
62
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
62
63
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
63
64
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Kanban.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b1467651"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|