@fluid-topics/ftds-period-picker 2.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.
- package/README.md +19 -0
- package/build/FtPeriodsBuiltin.d.ts +21 -0
- package/build/FtPeriodsBuiltin.js +87 -0
- package/build/FtdsPeriodPickerMessages.d.ts +29 -0
- package/build/FtdsPeriodPickerMessages.js +33 -0
- package/build/define.d.ts +1 -0
- package/build/define.js +3 -0
- package/build/definitions.d.ts +7 -0
- package/build/definitions.js +6 -0
- package/build/ftds-period-picker-in-select.d.ts +60 -0
- package/build/ftds-period-picker-in-select.js +305 -0
- package/build/ftds-period-picker-in-select.properties.d.ts +5 -0
- package/build/ftds-period-picker-in-select.properties.js +1 -0
- package/build/ftds-period-picker-in-select.styles.d.ts +3 -0
- package/build/ftds-period-picker-in-select.styles.js +51 -0
- package/build/ftds-period-picker.d.ts +52 -0
- package/build/ftds-period-picker.js +283 -0
- package/build/ftds-period-picker.light.js +2586 -0
- package/build/ftds-period-picker.min.js +2699 -0
- package/build/ftds-period-picker.properties.d.ts +35 -0
- package/build/ftds-period-picker.properties.js +10 -0
- package/build/ftds-period-picker.styles.d.ts +1 -0
- package/build/ftds-period-picker.styles.js +9 -0
- package/build/index.d.ts +8 -0
- package/build/index.js +8 -0
- package/package.json +36 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface FtPeriod {
|
|
2
|
+
from?: Date;
|
|
3
|
+
to?: Date;
|
|
4
|
+
}
|
|
5
|
+
export interface FtPeriodSelection {
|
|
6
|
+
key: string;
|
|
7
|
+
from?: Date;
|
|
8
|
+
to?: Date;
|
|
9
|
+
}
|
|
10
|
+
export interface FtPeriodPickerConfigOption {
|
|
11
|
+
key: string;
|
|
12
|
+
label: string | (() => string);
|
|
13
|
+
selector: () => FtPeriod;
|
|
14
|
+
}
|
|
15
|
+
export interface FtPeriodPickerOption {
|
|
16
|
+
key: string;
|
|
17
|
+
label: string;
|
|
18
|
+
selector: () => FtPeriod;
|
|
19
|
+
}
|
|
20
|
+
export declare enum FtdsPeriodPickerDateInputsVisibility {
|
|
21
|
+
dateInputsAlwaysVisible = "dateInputsAlwaysVisible",
|
|
22
|
+
dateInputsVisibleWithCustom = "dateInputsVisibleWithCustom"
|
|
23
|
+
}
|
|
24
|
+
export declare enum FtdsPeriodPickerInSelectDisplayMode {
|
|
25
|
+
labels = "labels",
|
|
26
|
+
realDates = "realDates"
|
|
27
|
+
}
|
|
28
|
+
export interface FtdsPeriodPickerProperties {
|
|
29
|
+
dateInputsVisibility: FtdsPeriodPickerDateInputsVisibility;
|
|
30
|
+
periods: FtPeriodPickerConfigOption[];
|
|
31
|
+
minDate?: Date;
|
|
32
|
+
maxDate?: Date;
|
|
33
|
+
defaultPeriod?: FtPeriodSelection;
|
|
34
|
+
locale?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export var FtdsPeriodPickerDateInputsVisibility;
|
|
2
|
+
(function (FtdsPeriodPickerDateInputsVisibility) {
|
|
3
|
+
FtdsPeriodPickerDateInputsVisibility["dateInputsAlwaysVisible"] = "dateInputsAlwaysVisible";
|
|
4
|
+
FtdsPeriodPickerDateInputsVisibility["dateInputsVisibleWithCustom"] = "dateInputsVisibleWithCustom";
|
|
5
|
+
})(FtdsPeriodPickerDateInputsVisibility || (FtdsPeriodPickerDateInputsVisibility = {}));
|
|
6
|
+
export var FtdsPeriodPickerInSelectDisplayMode;
|
|
7
|
+
(function (FtdsPeriodPickerInSelectDisplayMode) {
|
|
8
|
+
FtdsPeriodPickerInSelectDisplayMode["labels"] = "labels";
|
|
9
|
+
FtdsPeriodPickerInSelectDisplayMode["realDates"] = "realDates";
|
|
10
|
+
})(FtdsPeriodPickerInSelectDisplayMode || (FtdsPeriodPickerInSelectDisplayMode = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./ftds-period-picker.styles";
|
|
2
|
+
export * from "./ftds-period-picker.properties";
|
|
3
|
+
export * from "./ftds-period-picker";
|
|
4
|
+
export * from "./ftds-period-picker-in-select.styles";
|
|
5
|
+
export * from "./ftds-period-picker-in-select.properties";
|
|
6
|
+
export * from "./ftds-period-picker-in-select";
|
|
7
|
+
export * from "./FtPeriodsBuiltin";
|
|
8
|
+
import "./define";
|
package/build/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./ftds-period-picker.styles";
|
|
2
|
+
export * from "./ftds-period-picker.properties";
|
|
3
|
+
export * from "./ftds-period-picker";
|
|
4
|
+
export * from "./ftds-period-picker-in-select.styles";
|
|
5
|
+
export * from "./ftds-period-picker-in-select.properties";
|
|
6
|
+
export * from "./ftds-period-picker-in-select";
|
|
7
|
+
export * from "./FtPeriodsBuiltin";
|
|
8
|
+
import "./define";
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluid-topics/ftds-period-picker",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "The design system period picker component",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Lit"
|
|
7
|
+
],
|
|
8
|
+
"author": "Fluid Topics <devtopics@antidot.net>",
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"main": "build/index.js",
|
|
11
|
+
"web": "build/ftds-period-picker.min.js",
|
|
12
|
+
"typings": "build/index",
|
|
13
|
+
"files": [
|
|
14
|
+
"build/**/*.js",
|
|
15
|
+
"build/**/*.ts"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@fluid-topics/ft-i18n": "2.1.0",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "2.1.0",
|
|
24
|
+
"@fluid-topics/ftds-base-input": "2.1.0",
|
|
25
|
+
"@fluid-topics/ftds-button": "2.1.0",
|
|
26
|
+
"@fluid-topics/ftds-floating-menu": "2.1.0",
|
|
27
|
+
"@fluid-topics/ftds-icon": "2.1.0",
|
|
28
|
+
"@fluid-topics/ftds-radio": "2.1.0",
|
|
29
|
+
"@fluid-topics/ftds-text-input": "2.1.0",
|
|
30
|
+
"lit": "3.1.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@fluid-topics/ft-wc-test-utils": "2.1.0"
|
|
34
|
+
},
|
|
35
|
+
"gitHead": "4727cf19d04236ad1d2b2cb43ce1c46298834c7e"
|
|
36
|
+
}
|