@mooncellwiki/prts-design-vue 0.1.0

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 (138) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +21 -0
  3. package/dist/components/Accordion/AkCollapse.vue.d.ts +31 -0
  4. package/dist/components/Accordion/AkCollapseItem.vue.d.ts +27 -0
  5. package/dist/components/Accordion/context.d.ts +7 -0
  6. package/dist/components/Archive/AkArchive.vue.d.ts +35 -0
  7. package/dist/components/Archive/AkArchivePlay.vue.d.ts +18 -0
  8. package/dist/components/Attrs/AkAttr.vue.d.ts +26 -0
  9. package/dist/components/Attrs/AkAttrs.vue.d.ts +18 -0
  10. package/dist/components/Avatar/AkAvatar.vue.d.ts +30 -0
  11. package/dist/components/Avatar/AkAvatarGroup.vue.d.ts +35 -0
  12. package/dist/components/Avatar/context.d.ts +6 -0
  13. package/dist/components/Badge/AkBadge.vue.d.ts +35 -0
  14. package/dist/components/Breadcrumb/AkBreadcrumb.vue.d.ts +25 -0
  15. package/dist/components/Breadcrumb/AkBreadcrumbItem.vue.d.ts +20 -0
  16. package/dist/components/Button/AkButton.vue.d.ts +47 -0
  17. package/dist/components/Button/AkButtonGroup.vue.d.ts +21 -0
  18. package/dist/components/Button/context.d.ts +7 -0
  19. package/dist/components/Camp/AkCamp.vue.d.ts +18 -0
  20. package/dist/components/Card/AkCard.vue.d.ts +54 -0
  21. package/dist/components/Card/AkCardGrid.vue.d.ts +13 -0
  22. package/dist/components/Cbox/AkCbox.vue.d.ts +33 -0
  23. package/dist/components/Checkbox/AkCheckbox.vue.d.ts +39 -0
  24. package/dist/components/Checkbox/AkCheckboxGroup.vue.d.ts +43 -0
  25. package/dist/components/Checkbox/context.d.ts +15 -0
  26. package/dist/components/Chip/AkChip.vue.d.ts +35 -0
  27. package/dist/components/Dialog/AkDialog.vue.d.ts +57 -0
  28. package/dist/components/Dialogue/AkDialogue.vue.d.ts +14 -0
  29. package/dist/components/Dialogue/AkDialogueLine.vue.d.ts +20 -0
  30. package/dist/components/Divider/AkDivider.vue.d.ts +21 -0
  31. package/dist/components/Dossier/AkDossier.vue.d.ts +28 -0
  32. package/dist/components/Dossier/AkRedacted.vue.d.ts +21 -0
  33. package/dist/components/Dropdown/AkDropdown.vue.d.ts +47 -0
  34. package/dist/components/Dropdown/MenuItem.vue.d.ts +14 -0
  35. package/dist/components/Dropdown/types.d.ts +27 -0
  36. package/dist/components/Elite/AkElite.vue.d.ts +33 -0
  37. package/dist/components/Empty/AkEmpty.vue.d.ts +37 -0
  38. package/dist/components/Enemy/AkEnemy.vue.d.ts +34 -0
  39. package/dist/components/Event/AkCountdown.vue.d.ts +25 -0
  40. package/dist/components/Event/AkEvent.vue.d.ts +34 -0
  41. package/dist/components/Fab/AkBackTop.vue.d.ts +36 -0
  42. package/dist/components/Field/AkField.vue.d.ts +35 -0
  43. package/dist/components/Field/context.d.ts +48 -0
  44. package/dist/components/Heading/AkHeading.vue.d.ts +35 -0
  45. package/dist/components/Hero/AkHero.vue.d.ts +41 -0
  46. package/dist/components/Icon/AkIcon.vue.d.ts +15 -0
  47. package/dist/components/Input/AkInput.vue.d.ts +54 -0
  48. package/dist/components/Input/AkInputGroup.vue.d.ts +19 -0
  49. package/dist/components/Input/context.d.ts +6 -0
  50. package/dist/components/InputNumber/AkInputNumber.vue.d.ts +37 -0
  51. package/dist/components/Item/AkItem.vue.d.ts +47 -0
  52. package/dist/components/Item/AkItemList.vue.d.ts +19 -0
  53. package/dist/components/Item/context.d.ts +6 -0
  54. package/dist/components/Kbd/AkKbd.vue.d.ts +14 -0
  55. package/dist/components/Kv/AkKv.vue.d.ts +23 -0
  56. package/dist/components/Kv/AkKvItem.vue.d.ts +20 -0
  57. package/dist/components/Kv/context.d.ts +5 -0
  58. package/dist/components/Level/AkLevel.vue.d.ts +11 -0
  59. package/dist/components/Materials/AkMaterials.vue.d.ts +17 -0
  60. package/dist/components/Materials/AkMaterialsDivider.vue.d.ts +14 -0
  61. package/dist/components/Materials/AkMaterialsRow.vue.d.ts +19 -0
  62. package/dist/components/Message/AkMessage.vue.d.ts +52 -0
  63. package/dist/components/Module/AkModule.vue.d.ts +62 -0
  64. package/dist/components/Module/AkModuleStage.vue.d.ts +22 -0
  65. package/dist/components/Module/AkModuleUnlock.vue.d.ts +20 -0
  66. package/dist/components/News/AkNews.vue.d.ts +25 -0
  67. package/dist/components/OpCard/AkOpCard.vue.d.ts +52 -0
  68. package/dist/components/OpCard/AkOpGrid.vue.d.ts +13 -0
  69. package/dist/components/OpRow/AkOpRow.vue.d.ts +33 -0
  70. package/dist/components/Pagination/AkPagination.vue.d.ts +51 -0
  71. package/dist/components/Panel/AkPanel.vue.d.ts +43 -0
  72. package/dist/components/PhaseTabs/AkPhaseTabs.vue.d.ts +28 -0
  73. package/dist/components/PotList/AkPot.vue.d.ts +27 -0
  74. package/dist/components/PotList/AkPotList.vue.d.ts +18 -0
  75. package/dist/components/PotList/context.d.ts +5 -0
  76. package/dist/components/Potential/AkPotential.vue.d.ts +16 -0
  77. package/dist/components/Potential/AkSpecialization.vue.d.ts +16 -0
  78. package/dist/components/Profession/AkProfession.vue.d.ts +22 -0
  79. package/dist/components/Profession/AkProfessionLabel.vue.d.ts +28 -0
  80. package/dist/components/Progress/AkProgress.vue.d.ts +40 -0
  81. package/dist/components/Radio/AkRadio.vue.d.ts +39 -0
  82. package/dist/components/Radio/AkRadioButton.vue.d.ts +33 -0
  83. package/dist/components/Radio/AkRadioGroup.vue.d.ts +40 -0
  84. package/dist/components/Radio/context.d.ts +12 -0
  85. package/dist/components/Range/AkRange.vue.d.ts +19 -0
  86. package/dist/components/Rarity/AkRarity.vue.d.ts +24 -0
  87. package/dist/components/RichText/AkRichText.vue.d.ts +40 -0
  88. package/dist/components/RichText/parse.d.ts +33 -0
  89. package/dist/components/Scope/AkScope.vue.d.ts +27 -0
  90. package/dist/components/Search/AkSearch.vue.d.ts +31 -0
  91. package/dist/components/Select/AkSelect.vue.d.ts +46 -0
  92. package/dist/components/Skeleton/AkSkeleton.vue.d.ts +21 -0
  93. package/dist/components/Skill/AkSkill.vue.d.ts +65 -0
  94. package/dist/components/Skill/LevelLabel.vue.d.ts +15 -0
  95. package/dist/components/SkillLevels/AkSkillLevels.vue.d.ts +26 -0
  96. package/dist/components/SkillMatrix/AkSkillMatrix.vue.d.ts +58 -0
  97. package/dist/components/SkillSheet/AkSkillSheet.vue.d.ts +50 -0
  98. package/dist/components/Slider/AkSlider.vue.d.ts +36 -0
  99. package/dist/components/Sp/AkSp.vue.d.ts +23 -0
  100. package/dist/components/Sp/AkSpTrigger.vue.d.ts +21 -0
  101. package/dist/components/Sp/AkSpValue.vue.d.ts +25 -0
  102. package/dist/components/Sp/sp.d.ts +19 -0
  103. package/dist/components/Spinner/AkSpinner.vue.d.ts +33 -0
  104. package/dist/components/Stage/AkSanity.vue.d.ts +10 -0
  105. package/dist/components/Stage/AkStage.vue.d.ts +36 -0
  106. package/dist/components/Stage/AkStageCode.vue.d.ts +22 -0
  107. package/dist/components/Stat/AkStat.vue.d.ts +36 -0
  108. package/dist/components/Stat/AkStatRow.vue.d.ts +14 -0
  109. package/dist/components/Stepper/AkStep.vue.d.ts +24 -0
  110. package/dist/components/Stepper/AkSteps.vue.d.ts +25 -0
  111. package/dist/components/Switch/AkSwitch.vue.d.ts +37 -0
  112. package/dist/components/Table/AkDataTable.vue.d.ts +48 -0
  113. package/dist/components/Table/types.d.ts +21 -0
  114. package/dist/components/Tabs/AkTab.vue.d.ts +25 -0
  115. package/dist/components/Tabs/AkTabPane.vue.d.ts +29 -0
  116. package/dist/components/Tabs/AkTabs.vue.d.ts +36 -0
  117. package/dist/components/Tag/AkTag.vue.d.ts +35 -0
  118. package/dist/components/Talent/AkTalent.vue.d.ts +28 -0
  119. package/dist/components/TalentTable/AkCalc.vue.d.ts +8 -0
  120. package/dist/components/TalentTable/AkTalentTable.vue.d.ts +66 -0
  121. package/dist/components/Timeline/AkTimeline.vue.d.ts +17 -0
  122. package/dist/components/Timeline/AkTimelineItem.vue.d.ts +32 -0
  123. package/dist/components/Toast/AkToastProvider.vue.d.ts +35 -0
  124. package/dist/components/Toast/useToast.d.ts +39 -0
  125. package/dist/components/Tooltip/AkPopover.vue.d.ts +52 -0
  126. package/dist/components/Tooltip/AkTooltip.vue.d.ts +48 -0
  127. package/dist/components/Tooltip/trigger.d.ts +13 -0
  128. package/dist/components/Tooltip/usePopover.d.ts +25 -0
  129. package/dist/components/Trust/AkTrust.vue.d.ts +11 -0
  130. package/dist/components/Voice/AkVoice.vue.d.ts +23 -0
  131. package/dist/components/Voice/AkVoiceList.vue.d.ts +36 -0
  132. package/dist/components/Voice/context.d.ts +19 -0
  133. package/dist/components/Voice/player.d.ts +8 -0
  134. package/dist/icons.d.ts +50 -0
  135. package/dist/index.d.ts +135 -0
  136. package/dist/index.js +6455 -0
  137. package/dist/index.js.map +1 -0
  138. package/package.json +48 -0
@@ -0,0 +1,36 @@
1
+ type __VLS_Props = {
2
+ /** 名称(小号大写 overline:Operators / Edits / 24h);要带格式时用 #label 插槽 */
3
+ label?: string;
4
+ /** 数值,原样显示(千分位等格式由调用方先排好:「1,204」);也可以写在默认插槽里 */
5
+ value?: string | number;
6
+ /** 变化量(「+4 本月」「-12%」),显示在数值下面 */
7
+ delta?: string;
8
+ /** 变化方向(颜色取游戏富文本的升 / 降色);不写时按 delta 开头的 + / - 判断 */
9
+ trend?: "up" | "down";
10
+ /** 行内:一行「名称 数值」,不要卡片框(放进正文 / 表格里) */
11
+ inline?: boolean;
12
+ };
13
+ type __VLS_Slots = {
14
+ /** 数值(代替 value) */
15
+ default?: () => unknown;
16
+ /** 名称(代替 label) */
17
+ label?: () => unknown;
18
+ /** 数值前面的内容(货币符号、图标) */
19
+ prefix?: () => unknown;
20
+ /** 数值后面的小字单位(渲染成 <small>:2.3<small>k</small>) */
21
+ suffix?: () => unknown;
22
+ };
23
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
24
+ label: string;
25
+ value: string | number;
26
+ delta: string;
27
+ trend: "up" | "down";
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ type __VLS_WithSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,14 @@
1
+ /** 一排统计卡片:自动铺满(每格至少 120px,放不下就换行),间距 12 */
2
+ type __VLS_Slots = {
3
+ /** 若干 AkStat */
4
+ default?: () => unknown;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ type __VLS_WithSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 步骤条的一步(= Naive 的 NStep),只能直接放在 AkSteps 里。
3
+ * AkSteps 读它的 title / status / 默认插槽自己画这一步(序号由 CSS 计数器给),这个组件本身不会被挂载。
4
+ */
5
+ export type StepStatus = "wait" | "active" | "done";
6
+ type __VLS_Props = {
7
+ /** 步骤名(也可以写在默认插槽里) */
8
+ title?: string;
9
+ /** 状态:wait 未到 · active 当前(主色序号 + 加粗)· done 已完成(主色序号 + 主色连线);不写时按 AkSteps 的 current 推算 */
10
+ status?: StepStatus;
11
+ };
12
+ type __VLS_Slots = {
13
+ /** 步骤名(代替 title) */
14
+ default?: () => unknown;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,25 @@
1
+ import { type VNode } from "vue";
2
+ /**
3
+ * 步骤条(= Naive 的 NSteps,只有横排):一排带序号的步骤 + 连线,放若干 AkStep。
4
+ * 同 AkTabs:从默认插槽读 AkStep 的 props 自己画,首次渲染 / SSR 预渲染就是完整的。只是展示进度,不可点。
5
+ * 输出 ol > li;ol 上显式 role="list":Safari(VoiceOver)对 list-style: none 的列表不报列表语义,写上补回。
6
+ */
7
+ type __VLS_Props = {
8
+ /** 当前步骤(从 1 数,同 Naive):之前的已完成、这一步是当前、之后未到;超过步数 = 全部完成;不写则各步按自己的 status */
9
+ current?: number;
10
+ /** 读屏用的列表名(如「精英化进度」) */
11
+ label?: string;
12
+ };
13
+ type __VLS_Slots = {
14
+ /** 若干 AkStep */
15
+ default?: () => VNode[];
16
+ };
17
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,37 @@
1
+ type __VLS_Props = {
2
+ /** 禁用 */
3
+ disabled?: boolean;
4
+ /** 尺寸:sm 32 × 18(标题栏旁、表头里)· md 40 × 22 */
5
+ size?: "sm" | "md";
6
+ /** 可访问名(aria-label):没有默认插槽的文字、也不在带标签的 AkField 里时必填 */
7
+ label?: string;
8
+ };
9
+ type __VLS_Slots = {
10
+ /** 开关的名称(「显示潜能加成」)——就是它的可访问名,开 / 关时不变 */
11
+ default?: () => unknown;
12
+ /** 打开时名称后面的状态文字(同 Naive 的 #checked);只给眼睛看,读屏已经念「开」 */
13
+ checked?: () => unknown;
14
+ /** 关闭时名称后面的状态文字(同 Naive 的 #unchecked) */
15
+ unchecked?: () => unknown;
16
+ };
17
+ type __VLS_ModelProps = {
18
+ /** 是否打开 */
19
+ modelValue?: boolean;
20
+ };
21
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
22
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ "update:modelValue": (value: boolean) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
26
+ }>, {
27
+ size: "sm" | "md";
28
+ label: string;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,48 @@
1
+ import type { DataTableColumn, DataTableSort } from "./types";
2
+ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
+ /** 列定义:key 取值字段 · title 表头 · num 数字列 · sorter 可排序 · render 自定义单元格 · className */
5
+ columns: DataTableColumn<T>[];
6
+ /** 行数据 */
7
+ data: T[];
8
+ /** 行的唯一标识(同 Naive 的 row-key);不写用原始下标 */
9
+ rowKey?: (row: T) => string | number;
10
+ /** 行的额外类名(同 Naive 的 row-class-name):给当前行 / 选中行加 is-selected(淡主色底) */
11
+ rowClassName?: string | ((row: T, index: number) => string | undefined);
12
+ /** 斑马纹 */
13
+ striped?: boolean;
14
+ /** 紧凑:格内边距 4 / 8 */
15
+ compact?: boolean;
16
+ /** 表格的可访问名(aria-label);上方已有标题说明这张表时可以不写 */
17
+ label?: string;
18
+ } & {
19
+ /** 排序状态 { key, order: "ascending" | "descending" },null = 原顺序;点可排序的表头依次切换 升序 → 降序 → 原顺序 */
20
+ modelValue?: DataTableSort | null;
21
+ }) & {
22
+ "onUpdate:modelValue"?: ((value: DataTableSort | null) => any) | undefined;
23
+ }> & (typeof globalThis extends {
24
+ __VLS_PROPS_FALLBACK: infer P;
25
+ } ? P : {});
26
+ expose: (exposed: {}) => void;
27
+ attrs: any;
28
+ slots: {
29
+ /** 没有数据时整行显示的内容(默认「暂无数据」) */
30
+ empty?: () => unknown;
31
+ } & {
32
+ [x: `cell-${string}`]: ((p: {
33
+ row: T;
34
+ index: number;
35
+ value: unknown;
36
+ }) => unknown) | undefined;
37
+ };
38
+ emit: (event: "update:modelValue", value: DataTableSort | null) => void;
39
+ }>) => import("vue").VNode & {
40
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
41
+ };
42
+ declare const _default: typeof __VLS_export;
43
+ export default _default;
44
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
45
+ [K in keyof T]: T[K];
46
+ } : {
47
+ [K in keyof T as K]: T[K];
48
+ }) & {};
@@ -0,0 +1,21 @@
1
+ import type { VNodeChild } from "vue";
2
+ /** AkDataTable 的一列(NDataTable 列定义的精简版:只留 CSS 支持的——数字列、排序) */
3
+ export interface DataTableColumn<T> {
4
+ /** 列标识,也是取值的字段名(row[key]);#cell-<key> 插槽按它找 */
5
+ key: Extract<keyof T, string> | (string & {});
6
+ /** 表头文字 */
7
+ title?: string;
8
+ /** 数字列:右对齐 + 等宽数字(.num) */
9
+ num?: boolean;
10
+ /** 可排序:true 按 row[key] 比较(数字比大小、文字按中文排序),或者自己给比较函数(升序时的结果) */
11
+ sorter?: boolean | ((a: T, b: T) => number);
12
+ /** 自定义单元格(同 Naive 的 render);SFC 里用 #cell-<key> 插槽更顺手 */
13
+ render?: (row: T, index: number) => VNodeChild;
14
+ /** 这一列 th / td 的额外类名 */
15
+ className?: string;
16
+ }
17
+ /** 排序状态(aria-sort 的取值):哪一列、升序还是降序 */
18
+ export interface DataTableSort {
19
+ key: string;
20
+ order: "ascending" | "descending";
21
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * 只有页签、没有面板(= Naive 的 NTab):一排页签当筛选 / 切换外部内容时用,只能直接放在 AkTabs 里。
3
+ * AkTabs 读它的 name / tab / disabled / 默认插槽自己画页签,这个组件本身不会被挂载。
4
+ */
5
+ type __VLS_Props = {
6
+ /** 标识,= AkTabs 的 v-model 值 */
7
+ name: string | number;
8
+ /** 页签文字(也可以写在默认插槽里) */
9
+ tab?: string;
10
+ /** 禁用:页签不可选,方向键跳过 */
11
+ disabled?: boolean;
12
+ };
13
+ type __VLS_Slots = {
14
+ /** 页签内容(代替 tab) */
15
+ default?: () => unknown;
16
+ };
17
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * 一个页签 + 它的面板(= Naive 的 NTabPane),只能直接放在 AkTabs 里。
3
+ * AkTabs 读它的 name / tab / disabled / #tab 画页签,再把它渲染成面板(id、aria-labelledby、hidden 由 AkTabs 补上)。
4
+ */
5
+ type __VLS_Props = {
6
+ /** 标识,= AkTabs 的 v-model 值 */
7
+ name: string | number;
8
+ /** 页签文字;要第二行小字(「信赖 25%」)或图标时改用 #tab 插槽 */
9
+ tab?: string;
10
+ /** 禁用:页签不可选,方向键跳过 */
11
+ disabled?: boolean;
12
+ /** 面板渲染方式(同 Naive):if 只渲染当前页(默认)· show 全部渲染、非当前页 hidden · show:lazy 第一次切到时渲染,之后保留 */
13
+ displayDirective?: "if" | "show" | "show:lazy";
14
+ };
15
+ type __VLS_Slots = {
16
+ /** 面板内容 */
17
+ default?: () => unknown;
18
+ /** 页签内容(代替 tab) */
19
+ tab?: () => unknown;
20
+ };
21
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,36 @@
1
+ import { type VNode } from "vue";
2
+ type Name = string | number;
3
+ type __VLS_Props = {
4
+ /** 外观:underline 下划线(默认)· pill 胶囊底 · block 游戏内块状(选中黑白反转) */
5
+ variant?: "underline" | "pill" | "block";
6
+ /** 页签位置:top 在上(默认)· left 竖排在左、面板在右(干员档案),上下方向键切换 */
7
+ placement?: "top" | "left";
8
+ /** 读屏用的页签组名 */
9
+ label?: string;
10
+ };
11
+ type __VLS_Slots = {
12
+ /** AkTabPane(页签 + 面板)或 AkTab(只有页签)若干 */
13
+ default?: () => VNode[];
14
+ };
15
+ type __VLS_ModelProps = {
16
+ /** 当前页签的 name;不绑定时默认第一个 */
17
+ modelValue?: Name;
18
+ };
19
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: Name | undefined) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: Name | undefined) => any) | undefined;
24
+ }>, {
25
+ label: string;
26
+ variant: "underline" | "pill" | "block";
27
+ placement: "top" | "left";
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ type __VLS_WithSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,35 @@
1
+ export type TagVariant = "default" | "outline" | "accent" | "accent-soft" | "yellow" | "info" | "success" | "warning" | "danger" | "danger-solid" | "new" | "inverse";
2
+ type __VLS_Props = {
3
+ /** 外观:状态色走 info / success / warning / danger(淡底色字);new = 红底 NEW 角标;danger-solid = BREAKING 红;yellow 次强调 */
4
+ variant?: TagVariant;
5
+ /** 尺寸:sm 18 · md 22 · lg 28(px 高) */
6
+ size?: "sm" | "md" | "lg";
7
+ /** 标签字(Bender 大写 + 字距),给版本号 / 状态码这类拉丁短词 */
8
+ caps?: boolean;
9
+ /** 前置小方点 */
10
+ dot?: boolean;
11
+ /** 显示移除按钮,点击触发 remove(读屏名是「移除 + 标签文字」) */
12
+ removable?: boolean;
13
+ };
14
+ declare var __VLS_1: {}, __VLS_3: {};
15
+ type __VLS_Slots = {} & {
16
+ default?: (props: typeof __VLS_1) => any;
17
+ } & {
18
+ default?: (props: typeof __VLS_3) => any;
19
+ };
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ remove: () => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onRemove?: (() => any) | undefined;
24
+ }>, {
25
+ size: "sm" | "md" | "lg";
26
+ variant: TagVariant;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,28 @@
1
+ /** 一条解锁条件:精英化 / 潜能图标 + 字 */
2
+ export interface TalentRequirement {
3
+ /** 图标地址(elite_N / potential_N) */
4
+ icon?: string;
5
+ /** 「精英二 · 1级」「潜能5」 */
6
+ text: string;
7
+ }
8
+ type __VLS_Props = {
9
+ /** 天赋名 */
10
+ name: string;
11
+ /** 解锁条件,跟在名字后面(小号标签字) */
12
+ requirements?: TalentRequirement[];
13
+ };
14
+ type __VLS_Slots = {
15
+ /** 描述(游戏原始标记可以套 AkRichText) */
16
+ default?: () => unknown;
17
+ };
18
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ requirements: TalentRequirement[];
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,8 @@
1
+ export type CalcKind = "add" | "mul" | "fadd" | "fmul";
2
+ type __VLS_Props = {
3
+ /** 进公式的方式:add 直接加算(绿 +)· mul 直接乘算(蓝 +)· fadd 最终加算(橙 +)· fmul 最终乘算(橙 ×) */
4
+ kind: CalcKind;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,66 @@
1
+ /** 天赋表的一行:一个条件下的效果 */
2
+ export interface TalentRow {
3
+ /** 天赋名;相邻几行同名时合并成一格(rowspan) */
4
+ name: string;
5
+ /** 条件(「精英二 · Y模组 2级」);要放精英化图标时用 #condition 插槽 */
6
+ condition?: string;
7
+ /** 描述:游戏原始标记(<@ba.vup>…</>),由 AkRichText 渲染 */
8
+ description: string;
9
+ /** 潜能加成后的描述(潜能开关打开时换成它;加成部分一般是 <@ba.talpu>(+1%)</>);不写就没有潜能版 */
10
+ potential?: string;
11
+ }
12
+ type __VLS_Props = {
13
+ /** 第一列的列头(「第一天赋」「第二天赋」) */
14
+ title: string;
15
+ /** 各条件下的效果 */
16
+ rows: TalentRow[];
17
+ /** 潜能开关上写的潜能等级(「潜能5」);有任一行写了 potential 才出现开关 */
18
+ potentialRank?: number;
19
+ /** 潜能开关上的潜能图标地址(游戏 potential_N) */
20
+ potentialIcon?: string;
21
+ /** 表头显示「算法」开关——描述里用 AkCalc 标了加成项进公式的方式时打开;打开后表尾有图例行 */
22
+ calcToggle?: boolean;
23
+ /** 术语说明(termDescriptionDict),给描述里 <$ba.xxx> 的悬停提示 */
24
+ terms?: Record<string, string>;
25
+ };
26
+ type __VLS_Slots = {
27
+ /** 自己画条件格(放精英化图标等):{ row, index } */
28
+ condition?: (p: {
29
+ row: TalentRow;
30
+ index: number;
31
+ }) => unknown;
32
+ /** 自己画描述(要标 AkCalc 时用):potential = 这是潜能版还是基础版(有潜能版的行调两次) */
33
+ description?: (p: {
34
+ row: TalentRow;
35
+ index: number;
36
+ potential: boolean;
37
+ }) => unknown;
38
+ /** 图例行末尾的附加内容(「详见 属性基本公式」链接) */
39
+ legend?: () => unknown;
40
+ };
41
+ type __VLS_ModelProps = {
42
+ /** 潜能加成开关:打开时描述换成潜能版(表上 .is-pot) */
43
+ modelValue?: boolean;
44
+ /** 算法标记开关:打开时每个加成项前露出 AkCalc、表尾出图例(表上 .is-calc) */
45
+ "calc"?: boolean;
46
+ };
47
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
48
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
49
+ "update:modelValue": (value: boolean) => any;
50
+ "update:calc": (value: boolean) => any;
51
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
52
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
53
+ "onUpdate:calc"?: ((value: boolean) => any) | undefined;
54
+ }>, {
55
+ terms: Record<string, string>;
56
+ potentialRank: number;
57
+ potentialIcon: string;
58
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
59
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
60
+ declare const _default: typeof __VLS_export;
61
+ export default _default;
62
+ type __VLS_WithSlots<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 时间线(= Naive 的 NTimeline):左侧一条竖线 + 菱形节点,里面放 AkTimelineItem。
3
+ * 不标 ak-not-prose:timeline.css 自己压得过正文列表规则,说明里的链接照常是正文链接。
4
+ */
5
+ type __VLS_Slots = {
6
+ /** 若干 AkTimelineItem,从早到晚 */
7
+ default?: () => unknown;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,32 @@
1
+ export type TimelineStatus = "wait" | "active" | "done";
2
+ /** 时间线的一项(= Naive 的 NTimelineItem),只能放在 AkTimeline 里 */
3
+ type __VLS_Props = {
4
+ /** 时间(Bender 小字,在标题上方) */
5
+ time?: string;
6
+ /** 标题 */
7
+ title?: string;
8
+ /** 说明文字(也可以写在默认插槽里) */
9
+ content?: string;
10
+ /** 节点状态:wait 空心菱形(默认)· active 当前 · done 已发生(后两者都是主色实心) */
11
+ status?: TimelineStatus;
12
+ };
13
+ type __VLS_Slots = {
14
+ /** 标题(代替 title) */
15
+ header?: () => unknown;
16
+ /** 说明(代替 content) */
17
+ default?: () => unknown;
18
+ };
19
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
+ time: string;
21
+ title: string;
22
+ status: TimelineStatus;
23
+ content: string;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,35 @@
1
+ import { type ToastApi } from "./useToast";
2
+ type __VLS_Props = {
3
+ /** 默认停留时长(ms),0 = 不自动消失;单条可以在选项里改 */
4
+ duration?: number;
5
+ /** 默认显示 ✕ 关闭按钮 */
6
+ closable?: boolean;
7
+ /** 鼠标悬停 / 键盘聚焦在某条上时暂停它的倒计时(同 Naive 的 keep-alive-on-hover) */
8
+ keepAliveOnHover?: boolean;
9
+ /** 最多同时显示几条,多了先关最早的 */
10
+ max?: number;
11
+ /** 把提示栈传送到别处(Teleport 的 to,如 "body");不写就渲染在原地——它是 fixed 定位,一般用不着 */
12
+ to?: string | HTMLElement;
13
+ /** 读屏里提示栈的名字 */
14
+ label?: string;
15
+ };
16
+ type __VLS_Slots = {
17
+ /** 应用内容:里面的组件可以 useToast() */
18
+ default?: () => unknown;
19
+ };
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, ToastApi, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
+ label: string;
22
+ max: number;
23
+ closable: boolean;
24
+ duration: number;
25
+ keepAliveOnHover: boolean;
26
+ to: string | HTMLElement;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,39 @@
1
+ import { type InjectionKey, type VNodeChild } from "vue";
2
+ /** 颜色:info 主色(默认)· success 绿 · warning 黄 · danger 红(= toast.error) */
3
+ export type ToastVariant = "info" | "success" | "warning" | "danger";
4
+ /** 正文:字符串,或返回 vnode 的函数(要放链接 / 加粗时) */
5
+ export type ToastContent = string | (() => VNodeChild);
6
+ /** 单条的选项(同 Naive 的 MessageOptions;不写的跟 AkToastProvider) */
7
+ export interface ToastOptions {
8
+ /** 加粗的标题行 */
9
+ title?: string;
10
+ /** 停留时长(ms),0 = 不自动消失 */
11
+ duration?: number;
12
+ /** 显示 ✕ 关闭按钮 */
13
+ closable?: boolean;
14
+ /** 关掉时(到时 / 点 ✕ / destroy)调用 */
15
+ onClose?: () => void;
16
+ }
17
+ /** 已弹出的一条:destroy() 提前关掉 */
18
+ export interface ToastHandle {
19
+ destroy: () => void;
20
+ }
21
+ /** useToast() 的返回值(同 Naive 的 MessageApi) */
22
+ export interface ToastApi {
23
+ create: (content: ToastContent, options?: ToastOptions & {
24
+ variant?: ToastVariant;
25
+ }) => ToastHandle;
26
+ info: (content: ToastContent, options?: ToastOptions) => ToastHandle;
27
+ success: (content: ToastContent, options?: ToastOptions) => ToastHandle;
28
+ warning: (content: ToastContent, options?: ToastOptions) => ToastHandle;
29
+ error: (content: ToastContent, options?: ToastOptions) => ToastHandle;
30
+ /** 全部关掉 */
31
+ destroyAll: () => void;
32
+ }
33
+ export declare const toastKey: InjectionKey<ToastApi>;
34
+ /**
35
+ * 弹轻提示(同 Naive 的 useMessage):要在 <AkToastProvider> 里面的组件的 setup 里调用。
36
+ * const toast = useToast();
37
+ * toast.success("页面已加入监视列表", { title: "完成" });
38
+ */
39
+ export declare function useToast(): ToastApi;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * 弹出卡片(同 Naive 的 NPopover):比 AkTooltip 大、白底、顶边主色条,能放标题、段落、链接、道具。
3
+ * 默认点击开合(里面常有可点的东西,悬停弹出的卡片键盘用户够不着);点外面 / Esc 关,焦点在卡片里时还给触发元素。
4
+ */
5
+ import { type VNode } from "vue";
6
+ import { type PopoverPlacement, type PopoverTrigger } from "./usePopover";
7
+ type __VLS_Props = {
8
+ /** 标题(粗体一行);也可以用 #header 插槽 */
9
+ title?: string;
10
+ /** 出现在触发元素的哪一边:bottom(默认)· top · left · right;-start / -end 与触发元素左 / 右缘对齐。不自动翻转,贴边的触发元素自己选 */
11
+ placement?: PopoverPlacement;
12
+ /** 触发方式:click 点击开合(默认)· hover 悬停 + 键盘聚焦 · focus 只看聚焦 · manual 只由 v-model 控制 */
13
+ trigger?: PopoverTrigger;
14
+ /** hover 模式:悬停多久后出现(ms) */
15
+ delay?: number;
16
+ /** hover 模式:移开多久后消失(ms);这段时间里鼠标能移进卡片里 */
17
+ duration?: number;
18
+ /** 禁用:不再弹出 */
19
+ disabled?: boolean;
20
+ };
21
+ type __VLS_Slots = {
22
+ /** 触发元素:取第一个元素 / 组件;只有文字时自动包一层 <span>,不可聚焦的元素自动补 tabindex="0" */
23
+ trigger?: () => VNode[];
24
+ /** 卡片正文 */
25
+ default?: () => unknown;
26
+ /** 标题行(代替 title) */
27
+ header?: () => unknown;
28
+ };
29
+ type __VLS_ModelProps = {
30
+ /** 是否显示;不绑定时由 trigger 决定 */
31
+ modelValue?: boolean;
32
+ };
33
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
34
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ "update:modelValue": (value: boolean) => any;
36
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
37
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
38
+ }>, {
39
+ title: string;
40
+ placement: PopoverPlacement;
41
+ trigger: PopoverTrigger;
42
+ delay: number;
43
+ duration: number;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
47
+ export default _default;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };