@trackunit/react-date-and-time-components 0.0.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/README.md +18 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.js +2798 -0
- package/index.esm.d.ts +1 -0
- package/index.esm.js +2789 -0
- package/package.json +16 -0
- package/src/DayPicker/DayPicker.d.ts +32 -0
- package/src/DayPicker/DayRangePicker.d.ts +52 -0
- package/src/DayPicker/DayRangePicker.stories.d.ts +12 -0
- package/src/DayPicker/DayRangePickerPopover.d.ts +46 -0
- package/src/DayPicker/index.d.ts +21 -0
- package/src/DayPicker/useLocale.d.ts +8 -0
- package/src/dateTime/DateTime.d.ts +30 -0
- package/src/dateTime/DateTime.stories.d.ts +8 -0
- package/src/dateTime/DateTimeHumanized.d.ts +11 -0
- package/src/dateTime/index.d.ts +2 -0
- package/src/index.d.ts +2 -0
- package/src/translation.d.ts +34 -0
- package/translation.cjs.js +20 -0
- package/translation.cjs10.js +20 -0
- package/translation.cjs11.js +20 -0
- package/translation.cjs12.js +20 -0
- package/translation.cjs13.js +20 -0
- package/translation.cjs14.js +20 -0
- package/translation.cjs15.js +20 -0
- package/translation.cjs16.js +20 -0
- package/translation.cjs17.js +20 -0
- package/translation.cjs2.js +20 -0
- package/translation.cjs3.js +20 -0
- package/translation.cjs4.js +20 -0
- package/translation.cjs5.js +20 -0
- package/translation.cjs6.js +20 -0
- package/translation.cjs7.js +20 -0
- package/translation.cjs8.js +20 -0
- package/translation.cjs9.js +20 -0
- package/translation.esm.js +18 -0
- package/translation.esm10.js +18 -0
- package/translation.esm11.js +18 -0
- package/translation.esm12.js +18 -0
- package/translation.esm13.js +18 -0
- package/translation.esm14.js +18 -0
- package/translation.esm15.js +18 -0
- package/translation.esm16.js +18 -0
- package/translation.esm17.js +18 -0
- package/translation.esm2.js +18 -0
- package/translation.esm3.js +18 -0
- package/translation.esm4.js +18 -0
- package/translation.esm5.js +18 -0
- package/translation.esm6.js +18 -0
- package/translation.esm7.js +18 -0
- package/translation.esm8.js +18 -0
- package/translation.esm9.js +18 -0
package/package.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@trackunit/react-date-and-time-components",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"repository": "https://github.com/Trackunit/manager",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=20.x"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"react-day-picker": "^8.9.1",
|
|
11
|
+
"@trackunit/react-date-and-time-hooks": "*",
|
|
12
|
+
"date-fns": "^2.30.0"
|
|
13
|
+
},
|
|
14
|
+
"module": "./index.esm.js",
|
|
15
|
+
"main": "./index.cjs.js"
|
|
16
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Matcher } from "react-day-picker";
|
|
3
|
+
import { CommonProps } from "@trackunit/react-components";
|
|
4
|
+
export interface DayPickerProps extends CommonProps {
|
|
5
|
+
/**
|
|
6
|
+
* A callback function for when a date is selected
|
|
7
|
+
*/
|
|
8
|
+
onDaySelect?: (day: Date) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Define any days which may not be selected
|
|
11
|
+
*/
|
|
12
|
+
disabledDays?: Matcher | Matcher[];
|
|
13
|
+
/**
|
|
14
|
+
* Set any days which are selected
|
|
15
|
+
*/
|
|
16
|
+
selectedDays?: Matcher | Matcher[];
|
|
17
|
+
/**
|
|
18
|
+
* Set the language
|
|
19
|
+
*/
|
|
20
|
+
language: string;
|
|
21
|
+
/**
|
|
22
|
+
* The maximum amount of days that can be selected
|
|
23
|
+
*/
|
|
24
|
+
max?: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The DayPicker component is used when the user needs to select a date.
|
|
28
|
+
|
|
29
|
+
* @param {DayPickerProps} props - The props for the DayPicker component
|
|
30
|
+
* @returns {JSX.Element} DayPicker component
|
|
31
|
+
*/
|
|
32
|
+
export declare const DayPicker: ({ onDaySelect, disabledDays, selectedDays, language, className, dataTestId, max, }: DayPickerProps) => JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CommonProps } from "@trackunit/react-components";
|
|
3
|
+
import { DateRange, Matcher } from "react-day-picker";
|
|
4
|
+
import { TimeZone } from "./index";
|
|
5
|
+
export interface ShowQuickOption {
|
|
6
|
+
/**
|
|
7
|
+
* Number of days of historical data that customer can view - info should come from useUserSubscription hook
|
|
8
|
+
*/
|
|
9
|
+
dataRetention: number;
|
|
10
|
+
}
|
|
11
|
+
export type IDateRange = DateRange;
|
|
12
|
+
export interface DayRangePickerProps extends CommonProps {
|
|
13
|
+
/**
|
|
14
|
+
* A callback function for when a range is selected
|
|
15
|
+
*/
|
|
16
|
+
onRangeSelect?: (range: IDateRange | undefined) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Define any days which may not be selected
|
|
19
|
+
*/
|
|
20
|
+
disabledDays?: Matcher | Matcher[];
|
|
21
|
+
/**
|
|
22
|
+
* Set any days which are selected
|
|
23
|
+
*/
|
|
24
|
+
selectedDays?: IDateRange;
|
|
25
|
+
/**
|
|
26
|
+
* Set the language
|
|
27
|
+
*/
|
|
28
|
+
language: string;
|
|
29
|
+
/**
|
|
30
|
+
* The maximum amount of days that can be selected
|
|
31
|
+
*/
|
|
32
|
+
max?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Display quick options buttons above calendar which will preselect date range
|
|
35
|
+
*/
|
|
36
|
+
showQuickOptions?: ShowQuickOption;
|
|
37
|
+
/**
|
|
38
|
+
* Shown time ranges will take timezone into consideration
|
|
39
|
+
*/
|
|
40
|
+
timezone?: TimeZone;
|
|
41
|
+
/**
|
|
42
|
+
* Callback for closing component view
|
|
43
|
+
*/
|
|
44
|
+
onClose?: () => void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The DayRangePicker component should be used when the user needs to select a range of dates.
|
|
48
|
+
*
|
|
49
|
+
* @param {DayRangePickerProps} props - The props for the DayRangePicker component
|
|
50
|
+
* @returns {JSX.Element} DayRangePicker component
|
|
51
|
+
*/
|
|
52
|
+
export declare const DayRangePicker: ({ onRangeSelect, selectedDays, disabledDays, dataTestId, language, className, max, showQuickOptions, timezone, onClose, }: DayRangePickerProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import { DayRangePicker } from "./DayRangePicker";
|
|
4
|
+
type Story = StoryObj<typeof DayRangePicker>;
|
|
5
|
+
declare const meta: Meta<typeof DayRangePicker>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const packageName: () => JSX.Element;
|
|
9
|
+
export declare const DefaultSDA: () => JSX.Element;
|
|
10
|
+
export declare const VariantWithMax: () => JSX.Element;
|
|
11
|
+
export declare const VariantWithDisabledDays: () => JSX.Element;
|
|
12
|
+
export declare const VariantWithQuickButtons: () => JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonVariant, CommonProps, PopoverPlacement, Size } from "@trackunit/react-components";
|
|
3
|
+
import { Matcher } from "react-day-picker";
|
|
4
|
+
import { IDateRange, ShowQuickOption } from "./DayRangePicker";
|
|
5
|
+
import { TimeZone } from "./index";
|
|
6
|
+
interface DayRangePickerPopoverProps extends CommonProps {
|
|
7
|
+
interval: IDateRange;
|
|
8
|
+
showQuickOptions?: ShowQuickOption;
|
|
9
|
+
disabledDays?: Matcher | Matcher[];
|
|
10
|
+
onRangeSelect: (range: IDateRange) => void;
|
|
11
|
+
placement?: PopoverPlacement;
|
|
12
|
+
variant?: ButtonVariant;
|
|
13
|
+
size?: Size;
|
|
14
|
+
fullwidth?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Shown time ranges will take timezone into consideration
|
|
17
|
+
*/
|
|
18
|
+
timezone?: TimeZone;
|
|
19
|
+
/** An element to use as the portal root for the popover component */
|
|
20
|
+
bindTo?: HTMLElement;
|
|
21
|
+
buttonContent: JSX.Element;
|
|
22
|
+
max?: number;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A popover to select a range of dates. Consider providing quick options.
|
|
27
|
+
* quickOptions takes optional "includeExtraDay". This is because customers often want to see 8 days when selecting "week" so they can compare this monday to last weeks monday. Same goes for months. This option will not impact the label of the button.
|
|
28
|
+
*
|
|
29
|
+
* @param { DayRangePickerPopoverProps} props - The properties for the DayRangePickerPopover component.
|
|
30
|
+
* @param props.interval initial date range
|
|
31
|
+
* @param props.showQuickOptions display additional buttons for quick date range selection
|
|
32
|
+
* @param props.disabledDays disable days from selecting possibility
|
|
33
|
+
* @param props.className custom className to be added to the component
|
|
34
|
+
* @param props.dataTestId id used for tests
|
|
35
|
+
* @param props.onRangeSelect hook function to handle applied date range
|
|
36
|
+
* @param props.variant popover button variant
|
|
37
|
+
* @param props.size popover button size
|
|
38
|
+
* @param props.placement popover button placement
|
|
39
|
+
* @param props.timezone timezone for DayRangePicker
|
|
40
|
+
* @param props.fullwidth popover button fill width
|
|
41
|
+
* @param props.buttonContent popover button content
|
|
42
|
+
* @param props.max The maximum amount of days that can be selected
|
|
43
|
+
* @param props.disabled disabling popover button
|
|
44
|
+
*/
|
|
45
|
+
export declare const DayRangePickerPopover: ({ interval, showQuickOptions, disabledDays, className, dataTestId, onRangeSelect, variant, size, placement, timezone, fullwidth, bindTo, buttonContent, max, disabled, }: DayRangePickerPopoverProps) => JSX.Element;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface TimeZone {
|
|
2
|
+
/**
|
|
3
|
+
* The unique id of the timezone
|
|
4
|
+
*
|
|
5
|
+
* @example "America/Denver"
|
|
6
|
+
*/
|
|
7
|
+
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* The human-readable name of the timezone. Combines id and offset.
|
|
10
|
+
*
|
|
11
|
+
* @example "America/Denver (-06:00 MDT)"
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example "-06:00 MDT"
|
|
16
|
+
*/
|
|
17
|
+
offset: string;
|
|
18
|
+
}
|
|
19
|
+
export * from "./DayPicker";
|
|
20
|
+
export * from "./DayRangePicker";
|
|
21
|
+
export * from "./DayRangePickerPopover";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Locale } from "date-fns";
|
|
2
|
+
/**
|
|
3
|
+
* A helper function to get the matching Locale object for a given language.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} language The language to match
|
|
6
|
+
* @returns {Locale} The corresponding Locale object
|
|
7
|
+
*/
|
|
8
|
+
export declare const useLocale: (language: string) => Locale;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TemporalFormat } from "@trackunit/date-and-time-utils";
|
|
3
|
+
import { TimeZone } from "../DayPicker";
|
|
4
|
+
export interface DateTimeProps {
|
|
5
|
+
value: Date | string | number | null | undefined;
|
|
6
|
+
format?: TemporalFormat;
|
|
7
|
+
className?: string;
|
|
8
|
+
fromNow?: boolean;
|
|
9
|
+
withTitle?: boolean;
|
|
10
|
+
titleFormat?: TemporalFormat;
|
|
11
|
+
timezone?: TimeZone;
|
|
12
|
+
subtle?: boolean;
|
|
13
|
+
calendar?: boolean | object;
|
|
14
|
+
}
|
|
15
|
+
export declare const MS_PER_HOUR: number;
|
|
16
|
+
/**
|
|
17
|
+
* DateTime component
|
|
18
|
+
*
|
|
19
|
+
* @param { DateTimeProps } props - The properties for the DateTime component.
|
|
20
|
+
* @param props.value Date | string | number | null | undefined
|
|
21
|
+
* @param props.format DateTimeFormat | TemporalFormat | string
|
|
22
|
+
* @param props.className string
|
|
23
|
+
* @param props.fromNow boolean
|
|
24
|
+
* @param props.withTitle boolean
|
|
25
|
+
* @param props.titleFormat string
|
|
26
|
+
* @param props.timezone TimeZone
|
|
27
|
+
* @param props.subtle boolean
|
|
28
|
+
* @param props.calendar boolean | object
|
|
29
|
+
*/
|
|
30
|
+
export declare const DateTime: ({ value, format, className, fromNow, withTitle, titleFormat, timezone, subtle, calendar, }: DateTimeProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import { DateTime } from "./DateTime";
|
|
4
|
+
type Story = StoryObj<typeof DateTime>;
|
|
5
|
+
declare const meta: Meta<typeof DateTime>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const packageName: () => JSX.Element;
|
|
8
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface RelativeDateTimeProps {
|
|
3
|
+
value: Date | string | number | null | undefined;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* DateTimeHumanized component
|
|
7
|
+
*
|
|
8
|
+
* @param { RelativeDateTimeProps } props - The properties for the DateTimeHumanized component.
|
|
9
|
+
* @param props.value Date | string | number | null | undefined
|
|
10
|
+
*/
|
|
11
|
+
export declare const DateTimeHumanized: ({ value }: RelativeDateTimeProps) => JSX.Element;
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NamespaceTransProps, TransForLibs, TranslationResource } from "@trackunit/i18n-library-translation";
|
|
3
|
+
import defaultTranslations from "./locales/en/translation.json";
|
|
4
|
+
/** A type for all available translation keys in this library */
|
|
5
|
+
export type TranslationKeys = keyof typeof defaultTranslations;
|
|
6
|
+
/** The translation namespace for this library */
|
|
7
|
+
export declare const namespace = "date-and-time.date-and-time-components";
|
|
8
|
+
/**
|
|
9
|
+
* The TranslationResource for this Library.
|
|
10
|
+
* Holds lazy loaded imports for all languages supported by the library.
|
|
11
|
+
*
|
|
12
|
+
* This is used to register the translations for this library before initializing i18next.
|
|
13
|
+
*/
|
|
14
|
+
export declare const translations: TranslationResource<TranslationKeys>;
|
|
15
|
+
/**
|
|
16
|
+
* Local useTranslation for this specific library
|
|
17
|
+
*/
|
|
18
|
+
export declare const useTranslation: () => [TransForLibs<"dateTime.instant.now" | "dayRangePickerPopover.icon.tooltip.calendar" | "layout.actions.apply" | "layout.actions.cancel" | "layout.actions.clear" | "shared.timePeriods.days" | "shared.timePeriods.days_plural" | "shared.timePeriods.hours" | "shared.timePeriods.hours_plural" | "shared.timePeriods.months" | "shared.timePeriods.months_plural" | "shared.timePeriods.today" | "shared.timePeriods.weeks" | "shared.timePeriods.weeks_plural">, import("i18next").i18n, boolean] & {
|
|
19
|
+
t: TransForLibs<"dateTime.instant.now" | "dayRangePickerPopover.icon.tooltip.calendar" | "layout.actions.apply" | "layout.actions.cancel" | "layout.actions.clear" | "shared.timePeriods.days" | "shared.timePeriods.days_plural" | "shared.timePeriods.hours" | "shared.timePeriods.hours_plural" | "shared.timePeriods.months" | "shared.timePeriods.months_plural" | "shared.timePeriods.today" | "shared.timePeriods.weeks" | "shared.timePeriods.weeks_plural">;
|
|
20
|
+
i18n: import("i18next").i18n;
|
|
21
|
+
ready: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Type of the t function for the local useTranslation for this specific library
|
|
25
|
+
*/
|
|
26
|
+
export type TranslationFunction = TransForLibs<TranslationKeys>;
|
|
27
|
+
/**
|
|
28
|
+
* Trans for this specific library.
|
|
29
|
+
*/
|
|
30
|
+
export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => JSX.Element;
|
|
31
|
+
/**
|
|
32
|
+
* Registers the translations for this library
|
|
33
|
+
*/
|
|
34
|
+
export declare const setupLibraryTranslations: () => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var translation = {
|
|
4
|
+
"dateTime.instant.now": "Now",
|
|
5
|
+
"dayRangePickerPopover.icon.tooltip.calendar": "Calendar",
|
|
6
|
+
"layout.actions.apply": "Apply",
|
|
7
|
+
"layout.actions.cancel": "Cancel",
|
|
8
|
+
"layout.actions.clear": "Clear",
|
|
9
|
+
"shared.timePeriods.days": "{{count}} day",
|
|
10
|
+
"shared.timePeriods.days_plural": "{{count}} days",
|
|
11
|
+
"shared.timePeriods.hours": "{{count}} hour",
|
|
12
|
+
"shared.timePeriods.hours_plural": "{{count}} hours",
|
|
13
|
+
"shared.timePeriods.months": "{{count}} month",
|
|
14
|
+
"shared.timePeriods.months_plural": "{{count}} months",
|
|
15
|
+
"shared.timePeriods.today": "Today",
|
|
16
|
+
"shared.timePeriods.weeks": "{{count}} week",
|
|
17
|
+
"shared.timePeriods.weeks_plural": "{{count}} weeks"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = translation;
|