-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Premium ⇒ OSS * Diverses corrections * Dernières corrections --------- Co-authored-by: Donovan Lambert <[email protected]>
- Loading branch information
Showing
399 changed files
with
19,590 additions
and
4,720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,9 @@ | ||
import type { VNode } from 'vue'; | ||
import type { | ||
ComponentPropsOptions, | ||
EmitsOptions, | ||
SetupContext, | ||
} from '@vue/composition-api'; | ||
|
||
module '@vue/composition-api' { | ||
export type Render = () => VNode | null; | ||
|
||
export type ImplicitProps = { | ||
key?: string | number, | ||
}; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type | ||
type ComponentReturnType = Record<string, unknown> | Render | void; | ||
|
||
export interface Component< | ||
Props = Record<string, never>, | ||
ReturnType extends ComponentReturnType = Render, | ||
> { | ||
(props: Props & ImplicitProps, ctx: SetupContext): ReturnType; | ||
props?: ComponentPropsOptions<Omit<Props, `on${string}`>>; | ||
emits?: EmitsOptions; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
declare module 'vue2-datepicker' { | ||
import type { RawComponent } from 'vue'; | ||
|
||
export type Translations = { | ||
days?: string[], | ||
months?: string[], | ||
yearFormat: string, | ||
monthFormat: string, | ||
monthBeforeYear: boolean, | ||
formatLocale: { | ||
months: string[], | ||
monthsShort: string[], | ||
weekdays: string[], | ||
weekdaysShort: string[], | ||
weekdaysMin: string[], | ||
firstDayOfWeek: number, | ||
firstWeekContainsDate: number, | ||
meridiem(h: number, _: number, isLowercase: boolean): boolean, | ||
meridiemParse: RegExp, | ||
isPM(input: string): boolean, | ||
}, | ||
}; | ||
|
||
export type Shortcuts = { | ||
text: string, | ||
onClick(): any, | ||
}; | ||
|
||
export type TimePickerOptions = { | ||
start: string, | ||
step: string, | ||
end: string, | ||
format: string, | ||
}; | ||
|
||
export type Formatter = { | ||
stringify(date: Date | null | undefined, format: string): string, | ||
parse(value: string | null | undefined, format: string): Date | null, | ||
getWeek?(value: Date, options: { firstDayOfWeek?: number, firstWeekContainsDate?: number }): number, | ||
}; | ||
|
||
export type DatePickerEmit = (value: Date | [Date, Date] | null | [null, null]) => void; | ||
export type DatePickerSlotParams = { emit: DatePickerEmit }; | ||
|
||
const Datepicker: RawComponent<{ | ||
type?: 'date' | 'datetime' | 'year' | 'month' | 'time' | 'week', | ||
range?: boolean, | ||
format?: string, | ||
formatter?: Formatter, | ||
valueType?: 'date' | 'timestamp' | 'format' | string, | ||
defaultValue?: Date, | ||
lang?: Translations, | ||
placeholder?: string, | ||
editable?: boolean, | ||
clearable?: boolean, | ||
confirm?: boolean, | ||
confirmText?: string, | ||
multiple?: boolean, | ||
disabled?: boolean, | ||
disabledDate?(date: Date, currentValue: Date[]): boolean, | ||
disabledTime?(date: Date): boolean, | ||
appendToBody?: boolean, | ||
inline?: boolean, | ||
inputClass?: string, | ||
inputAttr?(): Record<string, any>, | ||
open?: boolean, | ||
defaultPanel?: 'year' | 'month', | ||
popupStyle?(): Record<string, any>, | ||
popupClass?: string, | ||
shortcuts?: Shortcuts[], | ||
titleFormat?: string, | ||
partialUpdate?: boolean, | ||
rangeSeparator?: string, | ||
showWeekNumber?: boolean, | ||
hourStep?: number, | ||
minuteStep?: number, | ||
secondStep?: number, | ||
hourOptions?: number[], | ||
minuteOptions?: number[], | ||
secondOptions?: number[], | ||
showHour?: boolean, | ||
showMinute?: boolean, | ||
showSecond?: boolean, | ||
use12h?: boolean, | ||
showTimeHeader?: boolean, | ||
timeTitleFormat?: string, | ||
timePickerOptions?: TimePickerOptions, | ||
prefixClass?: string, | ||
scrollDuration?: number, | ||
}>; | ||
|
||
export default Datepicker; | ||
} | ||
|
||
declare module 'vue2-datepicker/locale/es/fr' { | ||
import type { Translations } from 'vue2-datepicker'; | ||
|
||
const translations: Translations; | ||
export default translations; | ||
} | ||
declare module 'vue2-datepicker/locale/es/en' { | ||
import type { Translations } from 'vue2-datepicker'; | ||
|
||
const translations: Translations; | ||
export default translations; | ||
} |
Oops, something went wrong.