feat: initial commit - Phase 1 & 2 core features

This commit is contained in:
hiderfong
2026-04-22 17:07:33 +08:00
commit 1773bda06b
25005 changed files with 6252106 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
//#region ../../packages/constants/aria.d.ts
declare const EVENT_CODE: {
tab: string;
enter: string;
space: string;
left: string;
up: string;
right: string;
down: string;
esc: string;
delete: string;
backspace: string;
numpadEnter: string;
pageUp: string;
pageDown: string;
home: string;
end: string;
};
//#endregion
export { EVENT_CODE };
+22
View File
@@ -0,0 +1,22 @@
//#region ../../packages/constants/aria.ts
const EVENT_CODE = {
tab: "Tab",
enter: "Enter",
space: "Space",
left: "ArrowLeft",
up: "ArrowUp",
right: "ArrowRight",
down: "ArrowDown",
esc: "Escape",
delete: "Delete",
backspace: "Backspace",
numpadEnter: "NumpadEnter",
pageUp: "PageUp",
pageDown: "PageDown",
home: "Home",
end: "End"
};
//#endregion
export { EVENT_CODE };
//# sourceMappingURL=aria.mjs.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"aria.mjs","names":[],"sources":["../../../../packages/constants/aria.ts"],"sourcesContent":["export const EVENT_CODE = {\n tab: 'Tab',\n enter: 'Enter',\n space: 'Space',\n left: 'ArrowLeft', // 37\n up: 'ArrowUp', // 38\n right: 'ArrowRight', // 39\n down: 'ArrowDown', // 40\n esc: 'Escape',\n delete: 'Delete',\n backspace: 'Backspace',\n numpadEnter: 'NumpadEnter',\n pageUp: 'PageUp',\n pageDown: 'PageDown',\n home: 'Home',\n end: 'End',\n}\n"],"mappings":";AAAA,MAAa,aAAa;CACxB,KAAK;CACL,OAAO;CACP,OAAO;CACP,MAAM;CACN,IAAI;CACJ,OAAO;CACP,MAAM;CACN,KAAK;CACL,QAAQ;CACR,WAAW;CACX,aAAa;CACb,QAAQ;CACR,UAAU;CACV,MAAM;CACN,KAAK;CACN"}
@@ -0,0 +1,5 @@
//#region ../../packages/constants/column-alignment.d.ts
declare const columnAlignment: readonly ["left", "center", "right"];
type ColumnAlignment = (typeof columnAlignment)[number];
//#endregion
export { ColumnAlignment, columnAlignment };
+10
View File
@@ -0,0 +1,10 @@
//#region ../../packages/constants/column-alignment.ts
const columnAlignment = [
"left",
"center",
"right"
];
//#endregion
export { columnAlignment };
//# sourceMappingURL=column-alignment.mjs.map
@@ -0,0 +1 @@
{"version":3,"file":"column-alignment.mjs","names":[],"sources":["../../../../packages/constants/column-alignment.ts"],"sourcesContent":["export const columnAlignment = ['left', 'center', 'right'] as const\n\nexport type ColumnAlignment = (typeof columnAlignment)[number]\n"],"mappings":";AAAA,MAAa,kBAAkB;CAAC;CAAQ;CAAU;CAAQ"}
+6
View File
@@ -0,0 +1,6 @@
//#region ../../packages/constants/date.d.ts
declare const datePickTypes: readonly ["year", "years", "month", "months", "date", "dates", "week", "datetime", "datetimerange", "daterange", "monthrange", "yearrange"];
declare const WEEK_DAYS: readonly ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
type DatePickType = (typeof datePickTypes)[number];
//#endregion
export { DatePickType, WEEK_DAYS, datePickTypes };
+28
View File
@@ -0,0 +1,28 @@
//#region ../../packages/constants/date.ts
const datePickTypes = [
"year",
"years",
"month",
"months",
"date",
"dates",
"week",
"datetime",
"datetimerange",
"daterange",
"monthrange",
"yearrange"
];
const WEEK_DAYS = [
"sun",
"mon",
"tue",
"wed",
"thu",
"fri",
"sat"
];
//#endregion
export { WEEK_DAYS, datePickTypes };
//# sourceMappingURL=date.mjs.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"date.mjs","names":[],"sources":["../../../../packages/constants/date.ts"],"sourcesContent":["export const datePickTypes = [\n 'year',\n 'years',\n 'month',\n 'months',\n 'date',\n 'dates',\n 'week',\n 'datetime',\n 'datetimerange',\n 'daterange',\n 'monthrange',\n 'yearrange',\n] as const\n\nexport const WEEK_DAYS = [\n 'sun',\n 'mon',\n 'tue',\n 'wed',\n 'thu',\n 'fri',\n 'sat',\n] as const\n\nexport type DatePickType = (typeof datePickTypes)[number]\n"],"mappings":";AAAA,MAAa,gBAAgB;CAC3B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,YAAY;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
+6
View File
@@ -0,0 +1,6 @@
//#region ../../packages/constants/event.d.ts
declare const UPDATE_MODEL_EVENT = "update:modelValue";
declare const CHANGE_EVENT = "change";
declare const INPUT_EVENT = "input";
//#endregion
export { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT };
+8
View File
@@ -0,0 +1,8 @@
//#region ../../packages/constants/event.ts
const UPDATE_MODEL_EVENT = "update:modelValue";
const CHANGE_EVENT = "change";
const INPUT_EVENT = "input";
//#endregion
export { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT };
//# sourceMappingURL=event.mjs.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"event.mjs","names":[],"sources":["../../../../packages/constants/event.ts"],"sourcesContent":["export const UPDATE_MODEL_EVENT = 'update:modelValue'\nexport const CHANGE_EVENT = 'change'\nexport const INPUT_EVENT = 'input'\n"],"mappings":";AAAA,MAAa,qBAAqB;AAClC,MAAa,eAAe;AAC5B,MAAa,cAAc"}
+5
View File
@@ -0,0 +1,5 @@
//#region ../../packages/constants/form.d.ts
declare const MINIMUM_INPUT_WIDTH = 11;
declare const BORDER_HORIZONTAL_WIDTH = 2;
//#endregion
export { BORDER_HORIZONTAL_WIDTH, MINIMUM_INPUT_WIDTH };
+7
View File
@@ -0,0 +1,7 @@
//#region ../../packages/constants/form.ts
const MINIMUM_INPUT_WIDTH = 11;
const BORDER_HORIZONTAL_WIDTH = 2;
//#endregion
export { BORDER_HORIZONTAL_WIDTH, MINIMUM_INPUT_WIDTH };
//# sourceMappingURL=form.mjs.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"form.mjs","names":[],"sources":["../../../../packages/constants/form.ts"],"sourcesContent":["export const MINIMUM_INPUT_WIDTH = 11\nexport const BORDER_HORIZONTAL_WIDTH = 2\n"],"mappings":";AAAA,MAAa,sBAAsB;AACnC,MAAa,0BAA0B"}
+8
View File
@@ -0,0 +1,8 @@
import { EVENT_CODE } from "./aria.js";
import { DatePickType, WEEK_DAYS, datePickTypes } from "./date.js";
import { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from "./event.js";
import { INSTALLED_KEY } from "./key.js";
import { ComponentSize, componentSizeMap, componentSizes } from "./size.js";
import { ColumnAlignment, columnAlignment } from "./column-alignment.js";
import { BORDER_HORIZONTAL_WIDTH, MINIMUM_INPUT_WIDTH } from "./form.js";
export { BORDER_HORIZONTAL_WIDTH, CHANGE_EVENT, ColumnAlignment, ComponentSize, DatePickType, EVENT_CODE, INPUT_EVENT, INSTALLED_KEY, MINIMUM_INPUT_WIDTH, UPDATE_MODEL_EVENT, WEEK_DAYS, columnAlignment, componentSizeMap, componentSizes, datePickTypes };
+9
View File
@@ -0,0 +1,9 @@
import { EVENT_CODE } from "./aria.mjs";
import { columnAlignment } from "./column-alignment.mjs";
import { WEEK_DAYS, datePickTypes } from "./date.mjs";
import { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from "./event.mjs";
import { BORDER_HORIZONTAL_WIDTH, MINIMUM_INPUT_WIDTH } from "./form.mjs";
import { INSTALLED_KEY } from "./key.mjs";
import { componentSizeMap, componentSizes } from "./size.mjs";
export { BORDER_HORIZONTAL_WIDTH, CHANGE_EVENT, EVENT_CODE, INPUT_EVENT, INSTALLED_KEY, MINIMUM_INPUT_WIDTH, UPDATE_MODEL_EVENT, WEEK_DAYS, columnAlignment, componentSizeMap, componentSizes, datePickTypes };
+4
View File
@@ -0,0 +1,4 @@
//#region ../../packages/constants/key.d.ts
declare const INSTALLED_KEY: unique symbol;
//#endregion
export { INSTALLED_KEY };
+6
View File
@@ -0,0 +1,6 @@
//#region ../../packages/constants/key.ts
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
//#endregion
export { INSTALLED_KEY };
//# sourceMappingURL=key.mjs.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"key.mjs","names":[],"sources":["../../../../packages/constants/key.ts"],"sourcesContent":["export const INSTALLED_KEY = Symbol('INSTALLED_KEY')\n"],"mappings":";AAAA,MAAa,gBAAgB,OAAO,gBAAgB"}
+10
View File
@@ -0,0 +1,10 @@
//#region ../../packages/constants/size.d.ts
declare const componentSizes: readonly ["", "default", "small", "large"];
type ComponentSize = (typeof componentSizes)[number];
declare const componentSizeMap: {
readonly large: 40;
readonly default: 32;
readonly small: 24;
};
//#endregion
export { ComponentSize, componentSizeMap, componentSizes };
+16
View File
@@ -0,0 +1,16 @@
//#region ../../packages/constants/size.ts
const componentSizes = [
"",
"default",
"small",
"large"
];
const componentSizeMap = {
large: 40,
default: 32,
small: 24
};
//#endregion
export { componentSizeMap, componentSizes };
//# sourceMappingURL=size.mjs.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"size.mjs","names":[],"sources":["../../../../packages/constants/size.ts"],"sourcesContent":["export const componentSizes = ['', 'default', 'small', 'large'] as const\n\nexport type ComponentSize = (typeof componentSizes)[number]\n\nexport const componentSizeMap = {\n large: 40,\n default: 32,\n small: 24,\n} as const\n"],"mappings":";AAAA,MAAa,iBAAiB;CAAC;CAAI;CAAW;CAAS;CAAQ;AAI/D,MAAa,mBAAmB;CAC9B,OAAO;CACP,SAAS;CACT,OAAO;CACR"}