@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,52 @@
1
+ import { type Rarity } from "../Rarity/AkRarity.vue";
2
+ type __VLS_Props = {
3
+ /** 干员名 */
4
+ name: string;
5
+ /** 名字下的小字(Bender 大写):英文名 · 编号(Ch'en · LM04)/ 生日 / 获得方式 */
6
+ sub?: string;
7
+ /** 头像地址(正方形,avatar/char_xxx_2.png) */
8
+ avatar: string;
9
+ /** 稀有度 1–6:名字上方的色线(rail 时是左边条),并作左上角星级的 alt */
10
+ rarity: Rarity;
11
+ /** 左上角星级原图地址(rarity/rarity_yellow_{rarity−1}.png);不传时画 CSS 星形 */
12
+ rarityIcon?: string;
13
+ /** 职业名:左下角职业图标的 alt */
14
+ profession?: string;
15
+ /** 左下角职业图标地址:md / lg 用 profession/<职业>.png,sm 用头像同款小图标 profession/icon_<职业>.png;不传不显示 */
16
+ professionIcon?: string;
17
+ /** 精英阶段 0–2:右下角精英图标的 alt */
18
+ elite?: 0 | 1 | 2;
19
+ /** 右下角精英图标地址(elite/elite_N.png);不传不显示 */
20
+ eliteIcon?: string;
21
+ /** 尺寸:sm 88 · md 128 · lg 180(px 宽);放进 AkOpGrid 时宽度由网格定 */
22
+ size?: "sm" | "md" | "lg";
23
+ /** 外观:default 稀有度色顶线 · rail 稀有度色左边条(与 1px 框直角拼接) */
24
+ variant?: "default" | "rail";
25
+ /** 链接到干员页;不写渲染成 <div> */
26
+ href?: string;
27
+ /** 当前项(异格一览里正在看的这位):青色描边 + aria-current="page" */
28
+ current?: boolean;
29
+ };
30
+ type __VLS_Slots = {
31
+ /** 头像右上角的角标(.ak-op-card__badge:首页「兑」字标、模组类型小图标…) */
32
+ badge?: () => unknown;
33
+ };
34
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
35
+ sub: string;
36
+ size: "sm" | "md" | "lg";
37
+ variant: "default" | "rail";
38
+ href: string;
39
+ rarityIcon: string;
40
+ profession: string;
41
+ professionIcon: string;
42
+ elite: 0 | 1 | 2;
43
+ eliteIcon: string;
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
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ 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>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,33 @@
1
+ import { type Rarity } from "../Rarity/AkRarity.vue";
2
+ /** 干员横向条目:列表 / 表格里一行一位——头像(稀有度色左边条)+ 名字 + 第二行小字 */
3
+ type __VLS_Props = {
4
+ /** 干员名 */
5
+ name: string;
6
+ /** 头像地址(正方形,36px 显示) */
7
+ avatar: string;
8
+ /** 稀有度 1–6:头像左边的色条;stars 时第二行的星也按它画 */
9
+ rarity?: Rarity;
10
+ /** 第二行小字:分支 / 职业 / 获得方式 */
11
+ meta?: string;
12
+ /** 在第二行前面画稀有度星(按稀有度色阶着色;要写 rarity) */
13
+ stars?: boolean;
14
+ /** 链接到干员页;不写渲染成 <span> */
15
+ href?: string;
16
+ };
17
+ type __VLS_Slots = {
18
+ /** 第二行(代替 meta),可放标签 / 链接 */
19
+ meta?: () => 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<{}>, {
22
+ meta: string;
23
+ href: string;
24
+ rarity: Rarity;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,51 @@
1
+ /**
2
+ * 分页(= Naive 的 NPagination,精简):‹ 页码 … 页码 ›,当前页主色实底。
3
+ * 不给 page-href 时页码是页内切换的 <button>;给了就渲染成 <a href>(MW 页面上真能打开的地址,同 CSS 版)。
4
+ */
5
+ type __VLS_Props = {
6
+ /** 总页数;不写时由 itemCount ÷ pageSize 算出 */
7
+ pageCount?: number;
8
+ /** 总条数(配合 pageSize 算页数) */
9
+ itemCount?: number;
10
+ /** 每页条数(只在用 itemCount 算页数时有用) */
11
+ pageSize?: number;
12
+ /** 最多显示几格页码(含首页、尾页和省略号,同 Naive 的 page-slot,最少 5);每格约 50px,窄处调小 */
13
+ pageSlot?: number;
14
+ /** 整组禁用 */
15
+ disabled?: boolean;
16
+ /** 页码链接:给了就渲染成 <a href="pageHref(n)">,点击照常跳转;不给就是 <button>,只更新 v-model */
17
+ pageHref?: (page: number) => string;
18
+ /** 导航地标的可访问名(nav 的 aria-label) */
19
+ label?: string;
20
+ };
21
+ type __VLS_Slots = {
22
+ /** 「上一页」按钮的内容(默认 ‹) */
23
+ prev?: () => unknown;
24
+ /** 「下一页」按钮的内容(默认 ›) */
25
+ next?: () => unknown;
26
+ };
27
+ type __VLS_ModelProps = {
28
+ /** 当前页(从 1 数) */
29
+ modelValue?: number;
30
+ };
31
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
32
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
+ "update:modelValue": (value: number) => any;
34
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
35
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
36
+ }>, {
37
+ label: string;
38
+ pageCount: number;
39
+ itemCount: number;
40
+ pageSize: number;
41
+ pageSlot: number;
42
+ pageHref: (page: number) => string;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
+ declare const _default: typeof __VLS_export;
46
+ export default _default;
47
+ type __VLS_WithSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,43 @@
1
+ type TitleTag = "div" | "h2" | "h3" | "h4" | "h5" | "h6";
2
+ type __VLS_Props = {
3
+ /** 标题(也可用 #header 插槽) */
4
+ title?: string;
5
+ /** 标题后的英文(Bender 大写灰字:「Today」「Operations」) */
6
+ en?: string;
7
+ /** 标题元素:默认 div;面板是页面大纲里的一节时用 h2–h6(首页「新增关卡」是 h3) */
8
+ titleTag?: TitleTag;
9
+ /** 标题栏反转(亮色下黑底白字、暗色下白底黑字,同 .ak-inverse):公告这类要跳出来的区域 */
10
+ inverse?: boolean;
11
+ /** 可折叠:点标题栏收起 / 展开正文(右端出现 V 形箭头);需要有标题 */
12
+ collapsible?: boolean;
13
+ };
14
+ type __VLS_Slots = {
15
+ /** 正文 */
16
+ default?: () => unknown;
17
+ /** 标题内容(代替 title) */
18
+ header?: () => unknown;
19
+ /** 标题栏右侧(标签、日期、按钮) */
20
+ "header-extra"?: () => unknown;
21
+ };
22
+ type __VLS_ModelProps = {
23
+ /** 是否展开(collapsible 时有效);默认展开 */
24
+ modelValue?: boolean;
25
+ };
26
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
27
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ "update:modelValue": (value: boolean) => any;
29
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
30
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
31
+ }>, {
32
+ title: string;
33
+ titleTag: TitleTag;
34
+ en: string;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
+ declare const _default: typeof __VLS_export;
38
+ export default _default;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,28 @@
1
+ /**
2
+ * 精英阶段选择器(E0 / E1 / E2):属性计算器 / 攻击范围这类「同一块数据按阶段重算」的地方用。
3
+ * 语义是单选组(WAI-ARIA Radio Group)而不是页签:它不切换面板,只改一个值,下游数据跟着重算。
4
+ */
5
+ type __VLS_Props = {
6
+ /** 最高精英阶段:只画到这一阶(三星干员 1,一 / 二星 0) */
7
+ max?: 0 | 1 | 2;
8
+ /** 各阶段图标地址,下标 = 阶段(elite/elite_N.png,白线稿;选中项在反色块上自动反相);不传只有文字 */
9
+ icons?: string[];
10
+ /** 读屏用的组名 */
11
+ label?: string;
12
+ };
13
+ type __VLS_ModelProps = {
14
+ /** 当前精英阶段 0–2 */
15
+ modelValue?: number;
16
+ };
17
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
18
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ "update:modelValue": (value: number) => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
22
+ }>, {
23
+ label: string;
24
+ max: 0 | 1 | 2;
25
+ icons: string[];
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
@@ -0,0 +1,27 @@
1
+ /** 潜能提升一览里的一格:图标 + 小标「潜能 N」+ 效果(默认插槽),只能放在 AkPotList 里 */
2
+ type __VLS_Props = {
3
+ /** 潜能等级 2–6:给出小标「潜能 N」,并与 AkPotList 的 value 比较决定是否点亮 */
4
+ level: 2 | 3 | 4 | 5 | 6;
5
+ /** 潜能图标地址(potential/potential_{N−1}.png) */
6
+ src: string;
7
+ /** 小标:默认「潜能 N」 */
8
+ title?: string;
9
+ /** 点亮(已生效):不写时按 AkPotList 的 value 算 */
10
+ active?: boolean;
11
+ };
12
+ type __VLS_Slots = {
13
+ /** 效果:「部署费用<span class="ak-rt-vup">-1</span>」这种,可带富文本 */
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<{}>, {
17
+ title: string;
18
+ active: boolean;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,18 @@
1
+ /** 潜能提升一览(同现网 {{潜能提升}} 的五格表):潜能 2–6 各一格 AkPot,自动折行 */
2
+ type __VLS_Props = {
3
+ /** 当前潜能 1–6:潜能等级不超过它的格子点亮(顶部青条 + 青色小标);不写都不亮 */
4
+ value?: number;
5
+ };
6
+ type __VLS_Slots = {
7
+ /** 若干 AkPot */
8
+ default?: () => unknown;
9
+ };
10
+ 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>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,5 @@
1
+ import type { InjectionKey } from "vue";
2
+ /** AkPotList 给格子的当前潜能(格子自己比较决定是否点亮) */
3
+ export declare const potListKey: InjectionKey<{
4
+ value?: number;
5
+ }>;
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ /** 图标地址:potential/potential_{N−1}.png(游戏图标自带颜色,不随主题反相) */
3
+ src: string;
4
+ /** 潜能 1–6:给出默认 alt「潜能 N」 */
5
+ value?: 1 | 2 | 3 | 4 | 5 | 6;
6
+ /** 可访问名(图标的 alt):默认「潜能 N」;旁边已有同样的文字时写 "" 当装饰 */
7
+ label?: string;
8
+ /** 去掉深色底座(放进已有深底 / 表头开关这类行内位置) */
9
+ bare?: boolean;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ label: string;
13
+ value: 1 | 2 | 3 | 4 | 5 | 6;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ /** 图标地址:specialized/specialized_N.png */
3
+ src: string;
4
+ /** 专精 1–3:给出默认 alt「专精 N」 */
5
+ value?: 1 | 2 | 3;
6
+ /** 可访问名(图标的 alt):默认「专精 N」;旁边已有同样的文字时写 "" 当装饰 */
7
+ label?: string;
8
+ /** 去掉深色底座 */
9
+ bare?: boolean;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ label: string;
13
+ value: 1 | 2 | 3;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ /** 图标地址:职业 profession/<职业>.png、分支 subprofession/<分支>.png(torappu 白线稿,亮色主题下 CSS 反相为黑) */
3
+ src: string;
4
+ /** 职业 / 分支名:作图标的 alt,并默认作悬停提示;不写 = 装饰图标(旁边已经有文字) */
5
+ name?: string;
6
+ /** 分支图标(.ak-subprof,26px,图占 90%):size / variant 不适用 */
7
+ branch?: boolean;
8
+ /** 尺寸:sm 22 · md 32 · lg 48 · xl 72(px 边长) */
9
+ size?: "sm" | "md" | "lg" | "xl";
10
+ /** 外观:default 透明底(线稿跟主题反相)· box 深底白线稿(两套主题不变,同游戏内)· outline 1px 描边 */
11
+ variant?: "default" | "box" | "outline";
12
+ /** 悬停提示(data-ak-tip):默认是 name,可改写;false 关掉 */
13
+ tip?: string | false;
14
+ };
15
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ name: string;
17
+ size: "sm" | "md" | "lg" | "xl";
18
+ variant: "default" | "box" | "outline";
19
+ tip: string | false;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,28 @@
1
+ /** 带文字的职业 / 分支名(.ak-prof-label):图标 + 中文名 + Bender 英文小字,放在信息栏 / 表格里 */
2
+ type __VLS_Props = {
3
+ /** 职业 / 分支名 */
4
+ name: string;
5
+ /** 英文名(Bender 小字,.ak-en) */
6
+ en?: string;
7
+ /** 图标地址:画成分支图标(AkProfession branch,装饰,不带提示);要职业图标或别的写法用 #icon 插槽 */
8
+ src?: string;
9
+ /** 名字链接到职业 / 分支页 */
10
+ href?: string;
11
+ };
12
+ type __VLS_Slots = {
13
+ /** 图标(代替 src),如 <AkProfession size="sm" :src /> */
14
+ icon?: () => 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<{}>, {
17
+ href: string;
18
+ src: string;
19
+ en: string;
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,40 @@
1
+ type __VLS_Props = {
2
+ /** 百分比 0–100 */
3
+ percentage?: number;
4
+ /** 颜色:accent 主色(默认)· yellow 黄(信赖 / 次强调)· success 绿 · danger 红 */
5
+ variant?: "accent" | "yellow" | "success" | "danger";
6
+ /** 线形粗细:sm 4 · md 8(默认)· lg 14(px);环形不适用 */
7
+ size?: "sm" | "md" | "lg";
8
+ /** 名称:线形显示在条上方标签行的左边(并作可访问名);环形只作可访问名(aria-label) */
9
+ label?: string;
10
+ /** 显示数值:默认「N%」,默认插槽可改写(「200 / 200」);线形的数值在标签行右边,只在有 label 或插槽时出标签行 */
11
+ showIndicator?: boolean;
12
+ /** 斜纹(线形) */
13
+ stripes?: boolean;
14
+ /** 不定进度:一段色块来回滑,不报数值(线形) */
15
+ indeterminate?: boolean;
16
+ /** 分段:条切成 N 格,按百分比点亮(3 / 5 格 = steps 5 + percentage 60)(线形) */
17
+ steps?: number;
18
+ /** 环形(= .ak-ring:直径 56,中间是数值)——信赖、完成度 */
19
+ circle?: boolean;
20
+ };
21
+ type __VLS_Slots = {
22
+ /** 数值文字(代替「N%」) */
23
+ default?: () => unknown;
24
+ };
25
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
+ size: "sm" | "md" | "lg";
27
+ label: string;
28
+ variant: "accent" | "yellow" | "success" | "danger";
29
+ percentage: number;
30
+ showIndicator: boolean;
31
+ steps: number;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
36
+ type __VLS_WithSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,39 @@
1
+ import { type RadioValue } from "./context";
2
+ type __VLS_Props = {
3
+ /** 这一项的值:选中时成为 v-model(或所在 AkRadioGroup 的 v-model)的值 */
4
+ value: RadioValue;
5
+ /** 禁用 */
6
+ disabled?: boolean;
7
+ /** 尺寸:sm 16px 圆 · md 18px;不写时跟 AkRadioGroup(lg 对单选圆点不起作用) */
8
+ size?: "sm" | "md";
9
+ /** 原生 name:同名的单选互斥、方向键在其间移动;放在 AkRadioGroup 里时由组统一给 */
10
+ name?: string;
11
+ /** 可访问名(aria-label):不写文字(默认插槽)时必填 */
12
+ label?: string;
13
+ };
14
+ type __VLS_Slots = {
15
+ /** 文字 */
16
+ default?: () => unknown;
17
+ };
18
+ type __VLS_ModelProps = {
19
+ /** 单独用时 = 选中项的值(同原生 <input type="radio" v-model>);放在 AkRadioGroup 里时由组的 v-model 决定,不用绑 */
20
+ modelValue?: RadioValue;
21
+ };
22
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
23
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ "update:modelValue": (value: RadioValue | undefined) => any;
25
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
26
+ "onUpdate:modelValue"?: ((value: RadioValue | undefined) => any) | undefined;
27
+ }>, {
28
+ name: string;
29
+ size: "sm" | "md";
30
+ label: string;
31
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
+ declare const _default: typeof __VLS_export;
34
+ export default _default;
35
+ type __VLS_WithSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,33 @@
1
+ import type { IconName } from "../../icons";
2
+ import { type RadioValue } from "./context";
3
+ /**
4
+ * 按钮样式的单选(同 Naive 的 NRadioButton):分段控件——视图切换、排序方式这类「几个里选一个、立即生效」。
5
+ * 只能放在 AkRadioGroup 里:组渲染成 .ak-btn-group[role=radiogroup],这一项是 .ak-btn[role=radio],选中 .is-active(主色实底)。
6
+ * tabindex 由组按 roving tabindex 补上(只有选中项在 Tab 顺序里),方向键由组处理。
7
+ */
8
+ type __VLS_Props = {
9
+ /** 这一项的值:选中时成为 AkRadioGroup 的 v-model */
10
+ value: RadioValue;
11
+ /** 禁用:不可选,方向键跳过 */
12
+ disabled?: boolean;
13
+ /** 图标;不写文字(默认插槽)时是方形的图标按钮,这时 label 必填 */
14
+ icon?: IconName;
15
+ /** 可访问名(aria-label;图标按钮同时作 title)——只有图标时必填 */
16
+ label?: string;
17
+ };
18
+ type __VLS_Slots = {
19
+ /** 文字;不写就是图标按钮 */
20
+ default?: () => unknown;
21
+ };
22
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ label: string;
24
+ icon: IconName;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,40 @@
1
+ import { type VNode } from "vue";
2
+ import { type RadioSize, type RadioValue } from "./context";
3
+ type __VLS_Props = {
4
+ /** 原生 name(普通单选靠它互斥);不写自动生成 */
5
+ name?: string;
6
+ /** 整组禁用 */
7
+ disabled?: boolean;
8
+ /** 尺寸:单选按钮 sm 30 · md 36 · lg 44(px 高);普通单选只有 sm(16px 圆)与 md */
9
+ size?: RadioSize;
10
+ /** 竖排(只对普通单选;单选按钮总是连成一排) */
11
+ vertical?: boolean;
12
+ /** 读屏用的组名(aria-label);放在带标签的 AkField 里时不用写 */
13
+ label?: string;
14
+ };
15
+ type __VLS_Slots = {
16
+ /** 若干 AkRadio,或若干 AkRadioButton */
17
+ default?: () => VNode[];
18
+ };
19
+ type __VLS_ModelProps = {
20
+ /** 选中项的 value */
21
+ modelValue?: RadioValue;
22
+ };
23
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
24
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (value: RadioValue | undefined) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: RadioValue | undefined) => any) | undefined;
28
+ }>, {
29
+ name: string;
30
+ size: RadioSize;
31
+ label: string;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
36
+ type __VLS_WithSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,12 @@
1
+ import type { InjectionKey } from "vue";
2
+ export type RadioValue = string | number;
3
+ export type RadioSize = "sm" | "md" | "lg";
4
+ /** AkRadioGroup 给组内 AkRadio / AkRadioButton 的状态(同 Naive 的 NRadioGroup 注入);都是 getter,读的时候才取值 */
5
+ export interface RadioGroupContext {
6
+ readonly value: RadioValue | undefined;
7
+ readonly name: string;
8
+ readonly disabled: boolean;
9
+ readonly size: RadioSize | undefined;
10
+ select(value: RadioValue): void;
11
+ }
12
+ export declare const radioGroupKey: InjectionKey<RadioGroupContext>;
@@ -0,0 +1,19 @@
1
+ /** 一格:相对自身的行 / 列(= 游戏 range_table 的 grids 项),或写成 [row, col] */
2
+ export type RangeGrid = {
3
+ row: number;
4
+ col: number;
5
+ } | readonly [row: number, col: number];
6
+ type __VLS_Props = {
7
+ /** 可攻击的格子(相对自身):{ row, col }(直接传 range_table 的 grids)或 [row, col];col 向前为正,自身 (0, 0) 写不写都行 */
8
+ grids: readonly RangeGrid[];
9
+ /** 尺寸:sm 14 · md 22 · lg 28(px 格边);sm 给技能卡侧槽 / 表格 */
10
+ size?: "sm" | "md" | "lg";
11
+ /** 可访问名(aria-label);默认「攻击范围:自身之外 N 格」 */
12
+ label?: string;
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
+ size: "sm" | "md" | "lg";
16
+ label: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -0,0 +1,24 @@
1
+ /** 稀有度 = 星数 1–6(游戏数据里的 rarity 是 0–5,用的时候 +1) */
2
+ export type Rarity = 1 | 2 | 3 | 4 | 5 | 6;
3
+ type __VLS_Props = {
4
+ /** 星数 1–6 */
5
+ value: Rarity;
6
+ /** 颜色:default 游戏星黄 · white 正文色(亮黑暗白)· tier 按稀有度色阶(跟 value 走,= .ak-rarity--r{value}) */
7
+ variant?: "default" | "white" | "tier";
8
+ /** 尺寸:sm 0.8em · md 1em · lg 1.4em——星形跟字号走,放进哪行字就是那行的大小 */
9
+ size?: "sm" | "md" | "lg";
10
+ /** 改用游戏原图(rarity_yellow_N.png 黄星 / rarity_N.png 白星,N = 星数 − 1),固定 14px 高;这时 variant / size 不适用 */
11
+ src?: string;
12
+ /** 原图是白色的那套(rarity_N.png):亮色主题下反相为黑(.ak-glyph) */
13
+ glyph?: boolean;
14
+ /** 可访问名:默认「六星」这种(星形是 CSS 画的空元素,读屏读不到) */
15
+ label?: string;
16
+ };
17
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
+ size: "sm" | "md" | "lg";
19
+ label: string;
20
+ variant: "default" | "white" | "tier";
21
+ src: string;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,40 @@
1
+ export type RichTextVariant = "vup" | "vdown" | "rem" | "kw" | "talpu" | "term" | "imp" | "enemy" | "gild" | "drop" | "acrem" | "level" | "pn";
2
+ type __VLS_Props = {
3
+ /** 游戏原始标记:<@ba.vup>…</> 样式 · <$ba.stun>…</> 术语 · {atk_scale:0%} 占位符 · 换行;不写就渲染默认插槽 */
4
+ text?: string;
5
+ /** 占位符的取值(技能等级的 blackboard,如 { atk_scale: 2.6 });键不分大小写,没给的占位符原样留着 */
6
+ vars?: Record<string, number | string>;
7
+ /** 术语说明(termDescriptionDict,如 { "ba.stun": "晕眩:…" }),作 <$…> 的悬停提示 */
8
+ terms?: Record<string, string>;
9
+ /** 只包一层、不解析时的样式:vup 增益 · vdown 减益 · rem 提醒 · kw 关键词 · talpu 潜能加成 · term 术语 · imp 重要 · enemy 敌方 · gild 镀层 · level 关卡名 · pn 斜体 … */
10
+ variant?: RichTextVariant;
11
+ /** 悬停提示(data-ak-tip);variant="term" 时写术语说明 */
12
+ tip?: string;
13
+ /** 外层元素 */
14
+ tag?: string;
15
+ };
16
+ type __VLS_Slots = {
17
+ /** 不写 text 时的内容(用 variant 包一层) */
18
+ default?: () => unknown;
19
+ /** 占位符怎么画(技能参数矩阵用它把变量位画成 .ak-var);不写就按 vars 填数 */
20
+ var?: (p: {
21
+ key: string;
22
+ value: string | undefined;
23
+ }) => unknown;
24
+ };
25
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
+ tag: string;
27
+ text: string;
28
+ variant: RichTextVariant;
29
+ tip: string;
30
+ vars: Record<string, number | string>;
31
+ terms: Record<string, string>;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
36
+ type __VLS_WithSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };