fds-vue-core 8.11.5 → 8.12.1
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.d.ts +2 -0
- package/dist/components/BankId/FdsBankIdSameDevice/FdsBankIdSameDevice.vue.d.ts +2 -2
- package/dist/components/Blocks/FdsBlockLink/FdsBlockLink.vue.d.ts +1 -1
- package/dist/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue.d.ts +1 -1
- package/dist/components/Buttons/FdsButtonMinor/FdsButtonMinor.vue.d.ts +2 -2
- package/dist/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.vue.d.ts +2 -2
- package/dist/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue.d.ts +2 -2
- package/dist/components/Buttons/FdsButtonTertiary/FdsButtonTertiary.vue.d.ts +2 -2
- package/dist/components/FdsIcon/FdsIcon.vue.d.ts +47 -1
- package/dist/components/FdsIcon/iconGame.d.ts +150 -0
- package/dist/components/FdsIcon/iconTargets.d.ts +26 -0
- package/dist/components/FdsIcon/types.d.ts +15 -0
- package/dist/components/FdsPopover/FdsPopover.vue.d.ts +2 -2
- package/dist/components/FdsSearchSelect/FdsSearchSelect.vue.d.ts +3 -3
- package/dist/components/FdsSearchSelectPro/FdsSearchSelectPro.vue.d.ts +3 -3
- package/dist/components/FdsSpinner/FdsSpinner.vue.d.ts +1 -1
- package/dist/components/Form/FdsCheckbox/FdsCheckbox.vue.d.ts +3 -3
- package/dist/components/Form/FdsInput/FdsInput.vue.d.ts +3 -3
- package/dist/components/Form/FdsPhonenumber/FdsPhonenumber.vue.d.ts +1 -1
- package/dist/components/Form/FdsRadio/FdsRadio.vue.d.ts +3 -3
- package/dist/components/Form/FdsSelect/FdsSelect.vue.d.ts +3 -3
- package/dist/components/Form/FdsSsn/FdsSsn.vue.d.ts +1 -1
- package/dist/components/Form/FdsSwitch/FdsSwitch.vue.d.ts +34 -0
- package/dist/components/Form/FdsSwitch/types.d.ts +11 -0
- package/dist/components/Form/FdsTextarea/FdsTextarea.vue.d.ts +3 -3
- package/dist/components/Tabs/FdsTabsItem/FdsTabsItem.vue.d.ts +2 -2
- package/dist/fds-vue-core.cjs.js +2778 -398
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.css +1 -1
- package/dist/fds-vue-core.es.js +2779 -400
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/components/FdsIcon/FdsIcon.vue +2413 -10
- package/src/components/FdsIcon/IconRescue.stories.ts +630 -0
- package/src/components/FdsIcon/iconGame.ts +152 -0
- package/src/components/FdsIcon/iconTargets.ts +34 -0
- package/src/components/FdsIcon/types.ts +12 -0
- package/src/components/FdsSearchSelectPro/FdsSearchSelectPro.vue +6 -1
- package/src/components/Form/FdsSwitch/FdsSwitch.spec.ts +163 -0
- package/src/components/Form/FdsSwitch/FdsSwitch.stories.ts +56 -0
- package/src/components/Form/FdsSwitch/FdsSwitch.vue +145 -0
- package/src/components/Form/FdsSwitch/types.ts +12 -0
- package/src/index.ts +5 -0
- package/src/lang/en.json +1 -0
- package/src/lang/sv.json +1 -0
package/components.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import type { FdsCheckboxProps } from './dist/components/Form/FdsCheckbox/types'
|
|
|
33
33
|
import type { FdsInputProps } from './dist/components/Form/FdsInput/types'
|
|
34
34
|
import type { FdsRadioProps } from './dist/components/Form/FdsRadio/types'
|
|
35
35
|
import type { FdsSelectProps } from './dist/components/Form/FdsSelect/types'
|
|
36
|
+
import type { FdsSwitchProps } from './dist/components/Form/FdsSwitch/types'
|
|
36
37
|
import type { FdsPhonenumberProps } from './dist/components/Form/FdsPhonenumber/types'
|
|
37
38
|
import type { FdsSsnProps } from './dist/components/Form/FdsSsn/types'
|
|
38
39
|
import type { FdsLoginEmailFormProps } from './dist/components/Form/FdsLoginEmailForm/types'
|
|
@@ -71,6 +72,7 @@ declare module 'vue' {
|
|
|
71
72
|
FdsRadio: DefineComponent<FdsRadioProps>
|
|
72
73
|
FdsInput: DefineComponent<FdsInputProps>
|
|
73
74
|
FdsCheckbox: DefineComponent<FdsCheckboxProps>
|
|
75
|
+
FdsSwitch: DefineComponent<FdsSwitchProps>
|
|
74
76
|
FdsTextarea: DefineComponent<FdsTextareaProps>
|
|
75
77
|
FdsPhonenumber: DefineComponent<FdsPhonenumberProps>
|
|
76
78
|
FdsSsn: DefineComponent<FdsSsnProps>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FdsBankIdSameDeviceProps } from './types';
|
|
2
2
|
declare const __VLS_export: import('vue').DefineComponent<FdsBankIdSameDeviceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
-
start: () => any;
|
|
4
3
|
cancel: () => any;
|
|
4
|
+
start: () => any;
|
|
5
5
|
}, string, import('vue').PublicProps, Readonly<FdsBankIdSameDeviceProps> & Readonly<{
|
|
6
|
-
onStart?: (() => any) | undefined;
|
|
7
6
|
onCancel?: (() => any) | undefined;
|
|
7
|
+
onStart?: (() => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
dataTestid: string;
|
|
10
10
|
ongoingLogin: boolean;
|
|
@@ -11,9 +11,9 @@ declare const __VLS_base: import('vue').DefineComponent<FdsInteractionBlockProps
|
|
|
11
11
|
}>, {
|
|
12
12
|
disabled: boolean;
|
|
13
13
|
dataTestid: string;
|
|
14
|
+
variant: "list" | "link";
|
|
14
15
|
icon: string;
|
|
15
16
|
heading: string;
|
|
16
|
-
variant: "list" | "link";
|
|
17
17
|
interactive: boolean;
|
|
18
18
|
as: "a" | "button" | "router-link";
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,7 +4,7 @@ declare const __VLS_export: import('vue').DefineComponent<FdsIconButtonProps, {}
|
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<FdsIconButtonProps> & Readonly<{
|
|
5
5
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
type: "
|
|
7
|
+
type: "reset" | "submit" | "button";
|
|
8
8
|
size: number;
|
|
9
9
|
dataTestid: string;
|
|
10
10
|
loading: boolean;
|
|
@@ -4,14 +4,14 @@ declare const __VLS_export: import('vue').DefineComponent<FdsButtonMinorProps, {
|
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<FdsButtonMinorProps> & Readonly<{
|
|
5
5
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
type: "
|
|
7
|
+
type: "reset" | "submit" | "button";
|
|
8
8
|
dataTestid: string;
|
|
9
9
|
icon: string;
|
|
10
10
|
loading: boolean;
|
|
11
11
|
iconSize: number;
|
|
12
12
|
as: "a" | "button" | "router-link";
|
|
13
13
|
block: boolean;
|
|
14
|
-
state: "
|
|
14
|
+
state: "focus" | "hover" | "active";
|
|
15
15
|
iconPos: "left" | "right";
|
|
16
16
|
textSelection: boolean;
|
|
17
17
|
invert: boolean;
|
|
@@ -4,7 +4,7 @@ declare const __VLS_export: import('vue').DefineComponent<FdsButtonBaseProps, {}
|
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<FdsButtonBaseProps> & Readonly<{
|
|
5
5
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
type: "
|
|
7
|
+
type: "reset" | "submit" | "button";
|
|
8
8
|
size: "sm" | "md" | "lg";
|
|
9
9
|
dataTestid: string;
|
|
10
10
|
icon: string;
|
|
@@ -12,7 +12,7 @@ declare const __VLS_export: import('vue').DefineComponent<FdsButtonBaseProps, {}
|
|
|
12
12
|
iconSize: number;
|
|
13
13
|
as: "a" | "button" | "router-link";
|
|
14
14
|
block: boolean;
|
|
15
|
-
state: "
|
|
15
|
+
state: "focus" | "hover" | "active";
|
|
16
16
|
iconPos: "left" | "right";
|
|
17
17
|
textSelection: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,7 +4,7 @@ declare const __VLS_export: import('vue').DefineComponent<FdsButtonBaseProps, {}
|
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<FdsButtonBaseProps> & Readonly<{
|
|
5
5
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
type: "
|
|
7
|
+
type: "reset" | "submit" | "button";
|
|
8
8
|
size: "sm" | "md" | "lg";
|
|
9
9
|
dataTestid: string;
|
|
10
10
|
icon: string;
|
|
@@ -12,7 +12,7 @@ declare const __VLS_export: import('vue').DefineComponent<FdsButtonBaseProps, {}
|
|
|
12
12
|
iconSize: number;
|
|
13
13
|
as: "a" | "button" | "router-link";
|
|
14
14
|
block: boolean;
|
|
15
|
-
state: "
|
|
15
|
+
state: "focus" | "hover" | "active";
|
|
16
16
|
iconPos: "left" | "right";
|
|
17
17
|
textSelection: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,7 +4,7 @@ declare const __VLS_export: import('vue').DefineComponent<FdsButtonTertiaryProps
|
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<FdsButtonTertiaryProps> & Readonly<{
|
|
5
5
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
type: "
|
|
7
|
+
type: "reset" | "submit" | "button";
|
|
8
8
|
size: "sm" | "md";
|
|
9
9
|
dataTestid: string;
|
|
10
10
|
icon: string;
|
|
@@ -12,7 +12,7 @@ declare const __VLS_export: import('vue').DefineComponent<FdsButtonTertiaryProps
|
|
|
12
12
|
iconSize: number;
|
|
13
13
|
as: "a" | "button" | "router-link";
|
|
14
14
|
block: boolean;
|
|
15
|
-
state: "
|
|
15
|
+
state: "focus" | "hover" | "active";
|
|
16
16
|
iconPos: "left" | "right";
|
|
17
17
|
textSelection: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,7 +1,53 @@
|
|
|
1
|
+
import { WeaponId } from './iconGame';
|
|
1
2
|
import { FdsIconProps } from './types';
|
|
2
|
-
declare
|
|
3
|
+
declare function heal(amount: number): void;
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<FdsIconProps, {
|
|
5
|
+
heal: typeof heal;
|
|
6
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
summon: (point: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}) => any;
|
|
11
|
+
kill: (points: number) => any;
|
|
12
|
+
gameOver: () => any;
|
|
13
|
+
destroyed: () => any;
|
|
14
|
+
split: (point: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
}) => any;
|
|
18
|
+
experience: (amount: number) => any;
|
|
19
|
+
crate: (reward: "laserBeam" | "homingLaser" | "weaponUpgrade") => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<FdsIconProps> & Readonly<{
|
|
21
|
+
onSummon?: ((point: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
}) => any) | undefined;
|
|
25
|
+
onKill?: ((points: number) => any) | undefined;
|
|
26
|
+
onGameOver?: (() => any) | undefined;
|
|
27
|
+
onDestroyed?: (() => any) | undefined;
|
|
28
|
+
onSplit?: ((point: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
}) => any) | undefined;
|
|
32
|
+
onExperience?: ((amount: number) => any) | undefined;
|
|
33
|
+
onCrate?: ((reward: "laserBeam" | "homingLaser" | "weaponUpgrade") => any) | undefined;
|
|
34
|
+
}>, {
|
|
3
35
|
size: string | number;
|
|
36
|
+
laser: boolean;
|
|
4
37
|
title: string;
|
|
38
|
+
flying: boolean;
|
|
39
|
+
boss: boolean;
|
|
40
|
+
enemyKind: "kamikaze" | "splitter" | "sniper" | "swarm";
|
|
41
|
+
spawnPoint: {
|
|
42
|
+
x: number;
|
|
43
|
+
y: number;
|
|
44
|
+
};
|
|
45
|
+
weapons: Partial<Record<WeaponId, number>>;
|
|
46
|
+
stats: import('./iconGame').PlayerStats;
|
|
47
|
+
bossAttacks: import('./iconGame').BossAttack[];
|
|
48
|
+
strength: number;
|
|
49
|
+
paused: boolean;
|
|
50
|
+
label: string;
|
|
5
51
|
dataTestid: string;
|
|
6
52
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
53
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
export type WeaponId = 'laser' | 'rockets' | 'fireballs' | 'iceAsteroids' | 'electricShock';
|
|
2
|
+
export type WeaponLevels = Partial<Record<WeaponId, number>>;
|
|
3
|
+
export type DamageType = 'laser' | 'rocket' | 'fire' | 'ice' | 'shock' | 'crash';
|
|
4
|
+
export type StatusEffect = 'burning' | 'frozen' | 'stunned';
|
|
5
|
+
export type SynergyId = 'napalm' | 'superconductor' | 'steamBlast' | 'plasmaLaser';
|
|
6
|
+
export type BossAttack = 'ring' | 'spiral' | 'summon' | 'charge';
|
|
7
|
+
export declare const allBossAttacks: BossAttack[];
|
|
8
|
+
export interface PlayerStats {
|
|
9
|
+
damageMultiplier: number;
|
|
10
|
+
maxHealth: number;
|
|
11
|
+
speedMultiplier: number;
|
|
12
|
+
cooldownMultiplier: number;
|
|
13
|
+
criticalHitChance: number;
|
|
14
|
+
pickupRadius: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const defaultPlayerStats: PlayerStats;
|
|
17
|
+
export declare const iconRescueHosts: string[];
|
|
18
|
+
export declare const iconRescueTag = "icon-rescue";
|
|
19
|
+
export declare const maxWeaponLevel = 5;
|
|
20
|
+
export declare const synergyMinimumLevel = 2;
|
|
21
|
+
export declare const gameBalance: {
|
|
22
|
+
criticalHitMultiplier: number;
|
|
23
|
+
laser: {
|
|
24
|
+
damage: number;
|
|
25
|
+
damagePerLevel: number;
|
|
26
|
+
chargedMultiplier: number;
|
|
27
|
+
};
|
|
28
|
+
homingLasers: {
|
|
29
|
+
maxCount: number;
|
|
30
|
+
pixelsPerSecond: number;
|
|
31
|
+
turnSpeed: number;
|
|
32
|
+
lifetime: number;
|
|
33
|
+
damageShare: number;
|
|
34
|
+
};
|
|
35
|
+
rockets: {
|
|
36
|
+
cooldown: number;
|
|
37
|
+
cooldownPerLevel: number;
|
|
38
|
+
damage: number;
|
|
39
|
+
damagePerLevel: number;
|
|
40
|
+
blastRadius: number;
|
|
41
|
+
blastRadiusPerLevel: number;
|
|
42
|
+
pixelsPerSecond: number;
|
|
43
|
+
turnSpeed: number;
|
|
44
|
+
lifetime: number;
|
|
45
|
+
doubleRocketLevel: number;
|
|
46
|
+
};
|
|
47
|
+
fireballs: {
|
|
48
|
+
damage: number;
|
|
49
|
+
damagePerLevel: number;
|
|
50
|
+
orbitRadius: number;
|
|
51
|
+
orbitRadiusPerLevel: number;
|
|
52
|
+
orbitDuration: number;
|
|
53
|
+
hitCooldown: number;
|
|
54
|
+
burnDuration: number;
|
|
55
|
+
};
|
|
56
|
+
iceAsteroids: {
|
|
57
|
+
cooldown: number;
|
|
58
|
+
cooldownPerLevel: number;
|
|
59
|
+
chunks: number;
|
|
60
|
+
chunksPerLevel: number;
|
|
61
|
+
damage: number;
|
|
62
|
+
damagePerLevel: number;
|
|
63
|
+
pixelsPerSecond: number;
|
|
64
|
+
freezeDuration: number;
|
|
65
|
+
};
|
|
66
|
+
electricShock: {
|
|
67
|
+
cooldown: number;
|
|
68
|
+
cooldownPerLevel: number;
|
|
69
|
+
damage: number;
|
|
70
|
+
damagePerLevel: number;
|
|
71
|
+
firstRange: number;
|
|
72
|
+
chainRange: number;
|
|
73
|
+
stunDuration: number;
|
|
74
|
+
};
|
|
75
|
+
burn: {
|
|
76
|
+
damagePerTick: number;
|
|
77
|
+
tickTime: number;
|
|
78
|
+
};
|
|
79
|
+
frozenSpeedFactor: number;
|
|
80
|
+
synergies: {
|
|
81
|
+
napalmBurnDuration: number;
|
|
82
|
+
superconductorMultiplier: number;
|
|
83
|
+
steamBlastDamage: number;
|
|
84
|
+
steamBlastRadius: number;
|
|
85
|
+
plasmaChainDamage: number;
|
|
86
|
+
};
|
|
87
|
+
enemyStrength: {
|
|
88
|
+
scale: number;
|
|
89
|
+
exponent: number;
|
|
90
|
+
};
|
|
91
|
+
bossHealthMultiplier: number;
|
|
92
|
+
finalBossHealthMultiplier: number;
|
|
93
|
+
enemyFireRateGrowth: number;
|
|
94
|
+
enemyExperience: {
|
|
95
|
+
normal: number;
|
|
96
|
+
tough: number;
|
|
97
|
+
kamikaze: number;
|
|
98
|
+
splitter: number;
|
|
99
|
+
sniper: number;
|
|
100
|
+
swarm: number;
|
|
101
|
+
boss: number;
|
|
102
|
+
};
|
|
103
|
+
experienceForFirstLevel: number;
|
|
104
|
+
experiencePerLevel: number;
|
|
105
|
+
gemMagnetPixelsPerSecond: number;
|
|
106
|
+
maxGemsOnScreen: number;
|
|
107
|
+
bossAttacks: {
|
|
108
|
+
cooldown: number;
|
|
109
|
+
rageHealthShare: number;
|
|
110
|
+
rageCooldownFactor: number;
|
|
111
|
+
ringProjectiles: number;
|
|
112
|
+
spiralDuration: number;
|
|
113
|
+
spiralShotInterval: number;
|
|
114
|
+
chargeWarningTime: number;
|
|
115
|
+
chargeDuration: number;
|
|
116
|
+
chargePixelsPerSecond: number;
|
|
117
|
+
summonCount: number;
|
|
118
|
+
};
|
|
119
|
+
upgrades: {
|
|
120
|
+
power: {
|
|
121
|
+
amount: number;
|
|
122
|
+
maxPicks: number;
|
|
123
|
+
};
|
|
124
|
+
vitality: {
|
|
125
|
+
amount: number;
|
|
126
|
+
maxPicks: number;
|
|
127
|
+
};
|
|
128
|
+
agility: {
|
|
129
|
+
amount: number;
|
|
130
|
+
maxPicks: number;
|
|
131
|
+
};
|
|
132
|
+
overclock: {
|
|
133
|
+
amount: number;
|
|
134
|
+
maxPicks: number;
|
|
135
|
+
};
|
|
136
|
+
precision: {
|
|
137
|
+
amount: number;
|
|
138
|
+
maxPicks: number;
|
|
139
|
+
};
|
|
140
|
+
magnet: {
|
|
141
|
+
amount: number;
|
|
142
|
+
maxPicks: number;
|
|
143
|
+
};
|
|
144
|
+
repairAmount: number;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
export declare const synergyWeapons: Record<SynergyId, [WeaponId, WeaponId]>;
|
|
148
|
+
export declare function getActiveSynergies(weapons: WeaponLevels): SynergyId[];
|
|
149
|
+
export declare function getWaveStrength(wave: number): number;
|
|
150
|
+
export declare function getElectricShockChainCount(level: number): number;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DamageType, StatusEffect } from './iconGame';
|
|
2
|
+
export interface IconTarget {
|
|
3
|
+
getBounds: () => DOMRect | undefined;
|
|
4
|
+
isHittable: () => boolean;
|
|
5
|
+
hit: (damage: number, damageType: DamageType, isCritical?: boolean) => number;
|
|
6
|
+
crash?: () => {
|
|
7
|
+
damageToPlayer: number;
|
|
8
|
+
points: number;
|
|
9
|
+
};
|
|
10
|
+
applyStatus?: (effect: StatusEffect, duration: number) => void;
|
|
11
|
+
hasStatus?: (effect: StatusEffect) => boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ExperienceGem {
|
|
14
|
+
id: number;
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
value: number;
|
|
18
|
+
isMagnetized: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const enemyIconTargets: Set<IconTarget>;
|
|
21
|
+
export declare const playerIconTargets: Set<IconTarget>;
|
|
22
|
+
export declare const experienceGems: import('vue').ShallowRef<ExperienceGem[], ExperienceGem[]>;
|
|
23
|
+
export declare function dropExperienceGem(point: {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
}, value: number, maxGems: number): void;
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
2
|
import { IconName } from '../../assets/icons';
|
|
3
|
+
import { BossAttack, PlayerStats, WeaponLevels } from './iconGame';
|
|
3
4
|
export type FdsIconName = IconName;
|
|
4
5
|
export interface FdsIconProps extends /* @vue-ignore */ HTMLAttributes {
|
|
5
6
|
name: FdsIconName;
|
|
6
7
|
size?: number | string;
|
|
7
8
|
title?: string | undefined;
|
|
9
|
+
laser?: boolean;
|
|
10
|
+
flying?: boolean;
|
|
11
|
+
boss?: boolean;
|
|
12
|
+
enemyKind?: 'kamikaze' | 'splitter' | 'sniper' | 'swarm';
|
|
13
|
+
spawnPoint?: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
};
|
|
17
|
+
weapons?: WeaponLevels;
|
|
18
|
+
stats?: PlayerStats;
|
|
19
|
+
bossAttacks?: BossAttack[];
|
|
20
|
+
strength?: number;
|
|
21
|
+
paused?: boolean;
|
|
22
|
+
label?: string;
|
|
8
23
|
dataTestid?: string;
|
|
9
24
|
}
|
|
@@ -14,11 +14,11 @@ declare const __VLS_base: import('vue').DefineComponent<FdsPopoverProps, {}, {},
|
|
|
14
14
|
onClose?: (() => any) | undefined;
|
|
15
15
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
+
label: string;
|
|
17
18
|
dataTestid: string;
|
|
18
19
|
body: string;
|
|
19
|
-
label: string;
|
|
20
20
|
open: boolean;
|
|
21
|
-
position: "left" | "right" | "
|
|
21
|
+
position: "left" | "right" | "top" | "bottom";
|
|
22
22
|
offset: number;
|
|
23
23
|
offsetX: number;
|
|
24
24
|
offsetY: number;
|
|
@@ -5,24 +5,24 @@ declare const __VLS_export: import('vue').DefineComponent<FdsSearchSelectProps,
|
|
|
5
5
|
blurAndClear: () => void;
|
|
6
6
|
focus: () => void;
|
|
7
7
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
-
input: (ev: Event) => any;
|
|
9
8
|
change: (value: string) => any;
|
|
9
|
+
input: (ev: Event) => any;
|
|
10
10
|
clearInput: (ev: Event) => any;
|
|
11
11
|
paginate: (value: number) => any;
|
|
12
12
|
searchSelected: (value: Record<string, unknown> | null) => any;
|
|
13
13
|
total: (value: number) => any;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<FdsSearchSelectProps> & Readonly<{
|
|
15
|
-
onInput?: ((ev: Event) => any) | undefined;
|
|
16
15
|
onChange?: ((value: string) => any) | undefined;
|
|
16
|
+
onInput?: ((ev: Event) => any) | undefined;
|
|
17
17
|
onClearInput?: ((ev: Event) => any) | undefined;
|
|
18
18
|
onPaginate?: ((value: number) => any) | undefined;
|
|
19
19
|
onSearchSelected?: ((value: Record<string, unknown> | null) => any) | undefined;
|
|
20
20
|
onTotal?: ((value: number) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
disabled: boolean;
|
|
23
|
+
label: string;
|
|
23
24
|
dataTestid: string;
|
|
24
25
|
page: number;
|
|
25
|
-
label: string;
|
|
26
26
|
meta: string | null;
|
|
27
27
|
loading: boolean;
|
|
28
28
|
valid: boolean | null;
|
|
@@ -5,24 +5,24 @@ declare const __VLS_export: import('vue').DefineComponent<FdsSearchSelectProProp
|
|
|
5
5
|
blurAndClear: () => void;
|
|
6
6
|
focus: () => void;
|
|
7
7
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
-
input: (ev: Event) => any;
|
|
9
8
|
change: (value: string) => any;
|
|
9
|
+
input: (ev: Event) => any;
|
|
10
10
|
clearInput: (ev: Event) => any;
|
|
11
11
|
searchSelected: (value: Record<string, unknown> | Record<string, unknown>[] | null) => any;
|
|
12
12
|
total: (value: number) => any;
|
|
13
13
|
loadMore: () => any;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<FdsSearchSelectProProps> & Readonly<{
|
|
15
|
-
onInput?: ((ev: Event) => any) | undefined;
|
|
16
15
|
onChange?: ((value: string) => any) | undefined;
|
|
16
|
+
onInput?: ((ev: Event) => any) | undefined;
|
|
17
17
|
onClearInput?: ((ev: Event) => any) | undefined;
|
|
18
18
|
onSearchSelected?: ((value: Record<string, unknown> | Record<string, unknown>[] | null) => any) | undefined;
|
|
19
19
|
onTotal?: ((value: number) => any) | undefined;
|
|
20
20
|
onLoadMore?: (() => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
disabled: boolean;
|
|
23
|
+
label: string;
|
|
23
24
|
dataTestid: string;
|
|
24
25
|
page: number;
|
|
25
|
-
label: string;
|
|
26
26
|
meta: string | null;
|
|
27
27
|
loading: boolean;
|
|
28
28
|
valid: boolean | null;
|
|
@@ -8,9 +8,9 @@ type __VLS_Props = {
|
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
10
|
size: string;
|
|
11
|
+
label: string;
|
|
11
12
|
dataTestid: string;
|
|
12
13
|
color: "inherit" | "black" | "blue" | "white";
|
|
13
|
-
label: string;
|
|
14
14
|
labelPosition: "right" | "bottom";
|
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
@@ -11,21 +11,21 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: boolean | (string | number | boolean | null)[] | undefined) => any;
|
|
13
13
|
} & {
|
|
14
|
-
input: (value: boolean) => any;
|
|
15
14
|
change: (value: boolean) => any;
|
|
15
|
+
input: (value: boolean) => any;
|
|
16
16
|
"update:checked": (value: boolean) => any;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
-
onInput?: ((value: boolean) => any) | undefined;
|
|
19
18
|
onChange?: ((value: boolean) => any) | undefined;
|
|
19
|
+
onInput?: ((value: boolean) => any) | undefined;
|
|
20
20
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
21
21
|
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean | null)[] | undefined) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
required: boolean;
|
|
25
25
|
value: string | number | boolean | null;
|
|
26
|
+
label: string;
|
|
26
27
|
dataTestid: string;
|
|
27
28
|
class: string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
28
|
-
label: string;
|
|
29
29
|
indeterminate: boolean;
|
|
30
30
|
checked: boolean;
|
|
31
31
|
inputClass: string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
@@ -7,16 +7,16 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
8
|
"update:modelValue": (value: string | undefined) => any;
|
|
9
9
|
} & {
|
|
10
|
-
input: (ev: Event) => any;
|
|
11
10
|
blur: (ev: FocusEvent) => any;
|
|
11
|
+
input: (ev: Event) => any;
|
|
12
12
|
keyup: (ev: KeyboardEvent) => any;
|
|
13
13
|
autocomplete: (ev: Event) => any;
|
|
14
14
|
clearInput: () => any;
|
|
15
15
|
"update:value": (value: string) => any;
|
|
16
16
|
"keyup.enter": (ev: KeyboardEvent) => any;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
-
onInput?: ((ev: Event) => any) | undefined;
|
|
19
18
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
19
|
+
onInput?: ((ev: Event) => any) | undefined;
|
|
20
20
|
onKeyup?: ((ev: KeyboardEvent) => any) | undefined;
|
|
21
21
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
22
22
|
onAutocomplete?: ((ev: Event) => any) | undefined;
|
|
@@ -27,9 +27,9 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
|
|
|
27
27
|
disabled: boolean;
|
|
28
28
|
required: boolean;
|
|
29
29
|
value: string;
|
|
30
|
+
label: string;
|
|
30
31
|
dataTestid: string;
|
|
31
32
|
class: string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
32
|
-
label: string;
|
|
33
33
|
meta: string;
|
|
34
34
|
mask: string | RegExp | (string | RegExp)[];
|
|
35
35
|
pattern: string;
|
|
@@ -25,8 +25,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
|
|
|
25
25
|
id: string;
|
|
26
26
|
name: string;
|
|
27
27
|
placeholder: string;
|
|
28
|
-
dataTestid: string;
|
|
29
28
|
label: string;
|
|
29
|
+
dataTestid: string;
|
|
30
30
|
meta: string;
|
|
31
31
|
autofocus: boolean;
|
|
32
32
|
locale: string;
|
|
@@ -11,13 +11,13 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: string | number | boolean | null | undefined) => any;
|
|
13
13
|
} & {
|
|
14
|
-
input: (value: string | number | boolean | null) => any;
|
|
15
14
|
change: (value: string | number | boolean | null) => any;
|
|
15
|
+
input: (value: string | number | boolean | null) => any;
|
|
16
16
|
"update:checked": (value: boolean) => any;
|
|
17
17
|
"update:modelValue": (value: string | number | boolean | null) => any;
|
|
18
18
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
-
onInput?: ((value: string | number | boolean | null) => any) | undefined;
|
|
20
19
|
onChange?: ((value: string | number | boolean | null) => any) | undefined;
|
|
20
|
+
onInput?: ((value: string | number | boolean | null) => any) | undefined;
|
|
21
21
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
22
22
|
"onUpdate:modelValue"?: ((value: string | number | boolean | null) => any) | undefined;
|
|
23
23
|
}>, {
|
|
@@ -26,9 +26,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
26
26
|
id: string;
|
|
27
27
|
name: string;
|
|
28
28
|
value: string | number | boolean | null;
|
|
29
|
+
label: string;
|
|
29
30
|
dataTestid: string;
|
|
30
31
|
class: string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
31
|
-
label: string;
|
|
32
32
|
checked: boolean;
|
|
33
33
|
inputClass: string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
34
34
|
disablePseudoStates: boolean;
|
|
@@ -11,18 +11,18 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: string | undefined) => any;
|
|
13
13
|
} & {
|
|
14
|
-
input: (ev: Event) => any;
|
|
15
14
|
change: (ev: Event) => any;
|
|
15
|
+
input: (ev: Event) => any;
|
|
16
16
|
"update:value": (value: string) => any;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
-
onInput?: ((ev: Event) => any) | undefined;
|
|
19
18
|
onChange?: ((ev: Event) => any) | undefined;
|
|
19
|
+
onInput?: ((ev: Event) => any) | undefined;
|
|
20
20
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
21
21
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
value: string;
|
|
24
|
-
dataTestid: string;
|
|
25
24
|
label: string;
|
|
25
|
+
dataTestid: string;
|
|
26
26
|
meta: string;
|
|
27
27
|
options: {
|
|
28
28
|
value: string;
|
|
@@ -21,8 +21,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
|
|
|
21
21
|
name: string;
|
|
22
22
|
placeholder: string;
|
|
23
23
|
maxlength: number;
|
|
24
|
-
dataTestid: string;
|
|
25
24
|
label: string;
|
|
25
|
+
dataTestid: string;
|
|
26
26
|
meta: string;
|
|
27
27
|
autofocus: boolean;
|
|
28
28
|
inputClass: string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Slot } from 'vue';
|
|
2
|
+
import { FdsSwitchProps } from './types';
|
|
3
|
+
type __VLS_Props = FdsSwitchProps;
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
default?: Slot;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
|
+
modelValue?: boolean | Array<string | number | boolean | null>;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: boolean | (string | number | boolean | null)[]) => any;
|
|
13
|
+
} & {
|
|
14
|
+
change: (value: boolean) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
17
|
+
"onUpdate:modelValue"?: ((value: boolean | (string | number | boolean | null)[]) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
value: string | number | boolean | null;
|
|
23
|
+
label: string;
|
|
24
|
+
dataTestid: string;
|
|
25
|
+
class: string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface FdsSwitchProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
modelValue?: boolean | Array<string | number | boolean | null>;
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
value?: string | number | boolean | null;
|
|
8
|
+
dataTestid?: string;
|
|
9
|
+
class?: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
10
|
+
onChange?: ((value: boolean) => void) | Array<(value: boolean) => void>;
|
|
11
|
+
}
|