@bpmn-io/form-js-viewer 0.10.0-alpha.3 → 0.10.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 +1 -0
- package/dist/assets/flatpickr/light.css +809 -0
- package/dist/assets/form-js.css +148 -26
- package/dist/index.cjs +1435 -313
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +1417 -316
- package/dist/index.es.js.map +1 -1
- package/dist/types/render/components/Util.d.ts +0 -2
- package/dist/types/render/components/form-fields/Checklist.d.ts +1 -1
- package/dist/types/render/components/form-fields/Datetime.d.ts +11 -0
- package/dist/types/render/components/form-fields/Radio.d.ts +1 -1
- package/dist/types/render/components/form-fields/Select.d.ts +1 -1
- package/dist/types/render/components/form-fields/Taglist.d.ts +1 -1
- package/dist/types/render/components/form-fields/parts/Datepicker.d.ts +1 -0
- package/dist/types/render/components/form-fields/parts/InputAdorner.d.ts +1 -0
- package/dist/types/render/components/form-fields/parts/Timepicker.d.ts +1 -0
- package/dist/types/render/components/icons/index.d.ts +16 -0
- package/dist/types/render/components/index.d.ts +3 -1
- package/dist/types/render/components/util/dateTimeUtil.d.ts +12 -0
- package/dist/types/render/components/util/sanitizerUtil.d.ts +3 -0
- package/dist/types/util/constants/DatetimeConstants.d.ts +24 -0
- package/dist/types/util/constants/ValuesSourceConstants.d.ts +15 -0
- package/dist/types/util/constants/index.d.ts +2 -0
- package/dist/types/util/feel.d.ts +1 -0
- package/dist/types/util/index.d.ts +1 -0
- package/package.json +4 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare function Datetime(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Datetime {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const keyed: boolean;
|
|
6
|
+
export const emptyValue: any;
|
|
7
|
+
export { sanitizeDateTimePickerValue as sanitizeValue };
|
|
8
|
+
}
|
|
9
|
+
export default Datetime;
|
|
10
|
+
declare const type: "datetime";
|
|
11
|
+
import { sanitizeDateTimePickerValue } from "../util/sanitizerUtil";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Datepicker(props: any): import("preact").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function InputAdorner(props: any): import("preact").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Timepicker(props: any): import("preact").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export namespace iconsByType {
|
|
2
|
+
export { ButtonIcon as button };
|
|
3
|
+
export { CheckboxIcon as checkbox };
|
|
4
|
+
export { ChecklistIcon as checklist };
|
|
5
|
+
export { ColumnsIcon as columns };
|
|
6
|
+
export { DatetimeIcon as datetime };
|
|
7
|
+
export { ImageIcon as image };
|
|
8
|
+
export { NumberIcon as number };
|
|
9
|
+
export { RadioIcon as radio };
|
|
10
|
+
export { SelectIcon as select };
|
|
11
|
+
export { TaglistIcon as taglist };
|
|
12
|
+
export { TextIcon as text };
|
|
13
|
+
export { TextfieldIcon as textfield };
|
|
14
|
+
export { TextareaIcon as textarea };
|
|
15
|
+
export { FormIcon as default };
|
|
16
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export const formFields: (typeof Image)[];
|
|
2
|
+
export * from "./icons";
|
|
2
3
|
import Button from "./form-fields/Button";
|
|
3
4
|
import Checkbox from "./form-fields/Checkbox";
|
|
4
5
|
import Checklist from "./form-fields/Checklist";
|
|
5
6
|
import Default from "./form-fields/Default";
|
|
7
|
+
import Datetime from "./form-fields/Datetime";
|
|
6
8
|
import FormComponent from "./FormComponent";
|
|
7
9
|
import Image from "./form-fields/Image";
|
|
8
10
|
import Numberfield from "./form-fields/Number";
|
|
@@ -12,4 +14,4 @@ import Taglist from "./form-fields/Taglist";
|
|
|
12
14
|
import Text from "./form-fields/Text";
|
|
13
15
|
import Textfield from "./form-fields/Textfield";
|
|
14
16
|
import Textarea from "./form-fields/Textarea";
|
|
15
|
-
export { Button, Checkbox, Checklist, Default, FormComponent, Image, Numberfield, Radio, Select, Taglist, Text, Textfield, Textarea };
|
|
17
|
+
export { Button, Checkbox, Checklist, Default, Datetime, FormComponent, Image, Numberfield, Radio, Select, Taglist, Text, Textfield, Textarea };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function focusRelevantFlatpickerDay(flatpickrInstance: any): void;
|
|
2
|
+
export function formatTime(use24h: any, minutes: any): string;
|
|
3
|
+
export function parseInputTime(stringTime: any): number;
|
|
4
|
+
export function serializeTime(minutes: any, offset: any, timeSerializingFormat: any): string;
|
|
5
|
+
export function parseIsoTime(isoTimeString: any): number;
|
|
6
|
+
export function serializeDate(date: any): string;
|
|
7
|
+
export function isDateTimeInputInformationSufficient(value: any): boolean;
|
|
8
|
+
export function isDateInputInformationMatching(value: any): boolean;
|
|
9
|
+
export function serializeDateTime(date: any, time: any, timeSerializingFormat: any): string;
|
|
10
|
+
export function formatTimezoneOffset(minutes: any): string;
|
|
11
|
+
export function isInvalidDateString(value: any): boolean;
|
|
12
|
+
export const ENTER_KEYDOWN_EVENT: KeyboardEvent;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const MINUTES_IN_DAY: number;
|
|
2
|
+
export namespace DATETIME_SUBTYPES {
|
|
3
|
+
const DATE: string;
|
|
4
|
+
const TIME: string;
|
|
5
|
+
const DATETIME: string;
|
|
6
|
+
}
|
|
7
|
+
export namespace TIME_SERIALISING_FORMATS {
|
|
8
|
+
const UTC_OFFSET: string;
|
|
9
|
+
const UTC_NORMALIZED: string;
|
|
10
|
+
const NO_TIMEZONE: string;
|
|
11
|
+
}
|
|
12
|
+
export const DATETIME_SUBTYPES_LABELS: {
|
|
13
|
+
[x: string]: string;
|
|
14
|
+
};
|
|
15
|
+
export const TIME_SERIALISINGFORMAT_LABELS: {
|
|
16
|
+
[x: string]: string;
|
|
17
|
+
};
|
|
18
|
+
export const DATETIME_SUBTYPE_PATH: string[];
|
|
19
|
+
export const DATE_LABEL_PATH: string[];
|
|
20
|
+
export const DATE_DISALLOW_PAST_PATH: string[];
|
|
21
|
+
export const TIME_LABEL_PATH: string[];
|
|
22
|
+
export const TIME_USE24H_PATH: string[];
|
|
23
|
+
export const TIME_INTERVAL_PATH: string[];
|
|
24
|
+
export const TIME_SERIALISING_FORMAT_PATH: string[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function getValuesSource(field: any): string;
|
|
2
|
+
export namespace VALUES_SOURCES {
|
|
3
|
+
const STATIC: string;
|
|
4
|
+
const INPUT: string;
|
|
5
|
+
}
|
|
6
|
+
export const VALUES_SOURCE_DEFAULT: string;
|
|
7
|
+
export const VALUES_SOURCES_LABELS: {
|
|
8
|
+
[x: string]: string;
|
|
9
|
+
};
|
|
10
|
+
export const VALUES_SOURCES_PATHS: {
|
|
11
|
+
[x: string]: string[];
|
|
12
|
+
};
|
|
13
|
+
export const VALUES_SOURCES_DEFAULTS: {
|
|
14
|
+
[x: string]: string | any[];
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-viewer",
|
|
3
|
-
"version": "0.10.0
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "View forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"require": "./dist/index.cjs"
|
|
9
9
|
},
|
|
10
10
|
"./dist/assets/form-js.css": "./dist/assets/form-js.css",
|
|
11
|
+
"./dist/assets/flatpickr/light.css": "./dist/assets/flatpickr/light.css",
|
|
11
12
|
"./package.json": "./package.json"
|
|
12
13
|
},
|
|
13
14
|
"publishConfig": {
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
"classnames": "^2.3.1",
|
|
44
45
|
"didi": "^9.0.0",
|
|
45
46
|
"feelin": "^0.41.0",
|
|
47
|
+
"flatpickr": "^4.6.13",
|
|
46
48
|
"ids": "^1.0.0",
|
|
47
49
|
"min-dash": "^4.0.0",
|
|
48
50
|
"preact": "^10.5.14",
|
|
@@ -54,5 +56,5 @@
|
|
|
54
56
|
"files": [
|
|
55
57
|
"dist"
|
|
56
58
|
],
|
|
57
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "7e5b431f2e37ecaf23a8e10b647fbdfc25eb4b22"
|
|
58
60
|
}
|