@vaadin/react-components 24.6.0-alpha7 → 24.6.0-alpha8
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/DateTimePicker.d.ts +1 -1
- package/DateTimePicker.js +1 -1
- package/DateTimePicker.js.map +2 -2
- package/generated/DateTimePicker.d.ts +2 -2
- package/generated/DateTimePicker.d.ts.map +1 -1
- package/package.json +59 -59
- package/utils/createComponent.js +1 -1
- package/utils/createComponent.js.map +1 -1
package/DateTimePicker.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export * from './generated/DateTimePicker.js';
|
|
|
3
3
|
export declare const DateTimePicker: import("react").ForwardRefExoticComponent<Partial<import("./utils/createComponent.js").ThemedWebComponentProps<DateTimePickerElement, Readonly<{
|
|
4
4
|
onValidated: import("@lit/react").EventName<import("@vaadin/date-time-picker").DateTimePickerEventMap["validated"]>;
|
|
5
5
|
onChange: import("@lit/react").EventName<import("@vaadin/date-time-picker").DateTimePickerEventMap["change"]>;
|
|
6
|
-
onValueChanged: import("@lit/react").EventName<import("@vaadin/date-time-picker").DateTimePickerEventMap["value-changed"]>;
|
|
7
6
|
onInvalidChanged: import("@lit/react").EventName<import("@vaadin/date-time-picker").DateTimePickerEventMap["invalid-changed"]>;
|
|
7
|
+
onValueChanged: import("@lit/react").EventName<import("@vaadin/date-time-picker").DateTimePickerEventMap["value-changed"]>;
|
|
8
8
|
}>>> & import("react").RefAttributes<DateTimePickerElement>>;
|
|
9
9
|
//# sourceMappingURL=DateTimePicker.d.ts.map
|
package/DateTimePicker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"@vaadin/date-time-picker/vaadin-date-time-picker.js";import{forwardRef as n}from"react";import{DateTimePicker as t}from"@vaadin/date-time-picker/vaadin-date-time-picker.js";import*as a from"react";import{createComponent as i}from"./utils/createComponent.js";var r={onValidated:"validated",onChange:"change",
|
|
1
|
+
export*from"@vaadin/date-time-picker/vaadin-date-time-picker.js";import{forwardRef as n}from"react";import{DateTimePicker as t}from"@vaadin/date-time-picker/vaadin-date-time-picker.js";import*as a from"react";import{createComponent as i}from"./utils/createComponent.js";var r={onValidated:"validated",onChange:"change",onInvalidChanged:"invalid-changed",onValueChanged:"value-changed"},e=i({elementClass:t,events:r,react:a,tagName:"vaadin-date-time-picker"});import m from"./utils/createComponentWithOrderedProps.js";var k=n(m(e,"value"));export{k as DateTimePicker,t as DateTimePickerElement};
|
|
2
2
|
//# sourceMappingURL=DateTimePicker.js.map
|
package/DateTimePicker.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["src/DateTimePicker.tsx", "src/generated/DateTimePicker.ts"],
|
|
4
|
-
"sourcesContent": ["export * from \"@vaadin/date-time-picker/vaadin-date-time-picker.js\";\nimport { forwardRef } from 'react';\nimport {\n DateTimePicker as _DateTimePicker,\n type DateTimePickerElement,\n type DateTimePickerProps,\n} from './generated/DateTimePicker.js';\nimport createComponentWithOrderedProps from './utils/createComponentWithOrderedProps.js';\n\nexport * from './generated/DateTimePicker.js';\n\nexport const DateTimePicker = forwardRef(\n createComponentWithOrderedProps<DateTimePickerProps, DateTimePickerElement>(_DateTimePicker, 'value'),\n);\n", "import type { EventName } from \"@lit/react\";\nimport { DateTimePicker as DateTimePickerElement, type DateTimePickerEventMap as _DateTimePickerEventMap, } from \"@vaadin/date-time-picker/vaadin-date-time-picker.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { DateTimePickerElement, };\nexport type DateTimePickerEventMap = Readonly<{\n onValidated: EventName<_DateTimePickerEventMap[\"validated\"]>;\n onChange: EventName<_DateTimePickerEventMap[\"change\"]>;\n
|
|
5
|
-
"mappings": "AAAA,WAAc,sDACd,OAAS,cAAAA,MAAkB,QCA3B,OAAS,kBAAkBC,MAAsF,sDACjH,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAQxD,IAAMC,EAAS,CAAE,YAAa,YAAa,SAAU,SAAU,
|
|
4
|
+
"sourcesContent": ["export * from \"@vaadin/date-time-picker/vaadin-date-time-picker.js\";\nimport { forwardRef } from 'react';\nimport {\n DateTimePicker as _DateTimePicker,\n type DateTimePickerElement,\n type DateTimePickerProps,\n} from './generated/DateTimePicker.js';\nimport createComponentWithOrderedProps from './utils/createComponentWithOrderedProps.js';\n\nexport * from './generated/DateTimePicker.js';\n\nexport const DateTimePicker = forwardRef(\n createComponentWithOrderedProps<DateTimePickerProps, DateTimePickerElement>(_DateTimePicker, 'value'),\n);\n", "import type { EventName } from \"@lit/react\";\nimport { DateTimePicker as DateTimePickerElement, type DateTimePickerEventMap as _DateTimePickerEventMap, } from \"@vaadin/date-time-picker/vaadin-date-time-picker.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { DateTimePickerElement, };\nexport type DateTimePickerEventMap = Readonly<{\n onValidated: EventName<_DateTimePickerEventMap[\"validated\"]>;\n onChange: EventName<_DateTimePickerEventMap[\"change\"]>;\n onInvalidChanged: EventName<_DateTimePickerEventMap[\"invalid-changed\"]>;\n onValueChanged: EventName<_DateTimePickerEventMap[\"value-changed\"]>;\n}>;\nconst events = { onValidated: \"validated\", onChange: \"change\", onInvalidChanged: \"invalid-changed\", onValueChanged: \"value-changed\" } as DateTimePickerEventMap;\nexport type DateTimePickerProps = WebComponentProps<DateTimePickerElement, DateTimePickerEventMap>;\nexport const DateTimePicker = createComponent({\n elementClass: DateTimePickerElement, events, react: React, tagName: \"vaadin-date-time-picker\"\n});\n"],
|
|
5
|
+
"mappings": "AAAA,WAAc,sDACd,OAAS,cAAAA,MAAkB,QCA3B,OAAS,kBAAkBC,MAAsF,sDACjH,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAQxD,IAAMC,EAAS,CAAE,YAAa,YAAa,SAAU,SAAU,iBAAkB,kBAAmB,eAAgB,eAAgB,EAEvHC,EAAiBC,EAAgB,CAC1C,aAAcC,EAAuB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,yBACxE,CAAC,EDRD,OAAOC,MAAqC,6CAIrC,IAAMC,EAAiBC,EAC5BF,EAA4EC,EAAiB,OAAO,CACtG",
|
|
6
6
|
"names": ["forwardRef", "DateTimePickerElement", "React", "createComponent", "events", "DateTimePicker", "createComponent", "DateTimePickerElement", "React", "createComponentWithOrderedProps", "DateTimePicker", "forwardRef"]
|
|
7
7
|
}
|
|
@@ -7,14 +7,14 @@ export { DateTimePickerElement, };
|
|
|
7
7
|
export type DateTimePickerEventMap = Readonly<{
|
|
8
8
|
onValidated: EventName<_DateTimePickerEventMap["validated"]>;
|
|
9
9
|
onChange: EventName<_DateTimePickerEventMap["change"]>;
|
|
10
|
-
onValueChanged: EventName<_DateTimePickerEventMap["value-changed"]>;
|
|
11
10
|
onInvalidChanged: EventName<_DateTimePickerEventMap["invalid-changed"]>;
|
|
11
|
+
onValueChanged: EventName<_DateTimePickerEventMap["value-changed"]>;
|
|
12
12
|
}>;
|
|
13
13
|
export type DateTimePickerProps = WebComponentProps<DateTimePickerElement, DateTimePickerEventMap>;
|
|
14
14
|
export declare const DateTimePicker: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<DateTimePickerElement, Readonly<{
|
|
15
15
|
onValidated: EventName<_DateTimePickerEventMap["validated"]>;
|
|
16
16
|
onChange: EventName<_DateTimePickerEventMap["change"]>;
|
|
17
|
-
onValueChanged: EventName<_DateTimePickerEventMap["value-changed"]>;
|
|
18
17
|
onInvalidChanged: EventName<_DateTimePickerEventMap["invalid-changed"]>;
|
|
18
|
+
onValueChanged: EventName<_DateTimePickerEventMap["value-changed"]>;
|
|
19
19
|
}>>> & React.RefAttributes<DateTimePickerElement>) => React.ReactElement | null;
|
|
20
20
|
//# sourceMappingURL=DateTimePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimePicker.d.ts","sourceRoot":"","sources":["../src/generated/DateTimePicker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,KAAK,sBAAsB,IAAI,uBAAuB,EAAG,MAAM,qDAAqD,CAAC;AACvK,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,qDAAqD,CAAC;AACpE,OAAO,EAAE,qBAAqB,GAAG,CAAC;AAClC,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;IAC1C,WAAW,EAAE,SAAS,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC;IAC7D,QAAQ,EAAE,SAAS,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvD,
|
|
1
|
+
{"version":3,"file":"DateTimePicker.d.ts","sourceRoot":"","sources":["../src/generated/DateTimePicker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,KAAK,sBAAsB,IAAI,uBAAuB,EAAG,MAAM,qDAAqD,CAAC;AACvK,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,qDAAqD,CAAC;AACpE,OAAO,EAAE,qBAAqB,GAAG,CAAC;AAClC,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;IAC1C,WAAW,EAAE,SAAS,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC;IAC7D,QAAQ,EAAE,SAAS,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvD,gBAAgB,EAAE,SAAS,CAAC,uBAAuB,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACxE,cAAc,EAAE,SAAS,CAAC,uBAAuB,CAAC,eAAe,CAAC,CAAC,CAAC;CACvE,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,qBAAqB,EAAE,sBAAsB,CAAC,CAAC;AACnG,eAAO,MAAM,cAAc;iBAPV,SAAS,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC;cAClD,SAAS,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;sBACpC,SAAS,CAAC,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;oBACvD,SAAS,CAAC,uBAAuB,CAAC,eAAe,CAAC,CAAC;+EAMrE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/react-components",
|
|
3
|
-
"version": "24.6.0-
|
|
3
|
+
"version": "24.6.0-alpha8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -27,64 +27,64 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@lit/react": "^1.0.5",
|
|
30
|
-
"@vaadin/a11y-base": "24.6.0-
|
|
31
|
-
"@vaadin/accordion": "24.6.0-
|
|
32
|
-
"@vaadin/app-layout": "24.6.0-
|
|
33
|
-
"@vaadin/avatar": "24.6.0-
|
|
34
|
-
"@vaadin/avatar-group": "24.6.0-
|
|
35
|
-
"@vaadin/button": "24.6.0-
|
|
36
|
-
"@vaadin/checkbox": "24.6.0-
|
|
37
|
-
"@vaadin/checkbox-group": "24.6.0-
|
|
38
|
-
"@vaadin/combo-box": "24.6.0-
|
|
39
|
-
"@vaadin/component-base": "24.6.0-
|
|
40
|
-
"@vaadin/confirm-dialog": "24.6.0-
|
|
41
|
-
"@vaadin/context-menu": "24.6.0-
|
|
42
|
-
"@vaadin/custom-field": "24.6.0-
|
|
43
|
-
"@vaadin/date-picker": "24.6.0-
|
|
44
|
-
"@vaadin/date-time-picker": "24.6.0-
|
|
45
|
-
"@vaadin/details": "24.6.0-
|
|
46
|
-
"@vaadin/dialog": "24.6.0-
|
|
47
|
-
"@vaadin/email-field": "24.6.0-
|
|
48
|
-
"@vaadin/field-base": "24.6.0-
|
|
49
|
-
"@vaadin/field-highlighter": "24.6.0-
|
|
50
|
-
"@vaadin/form-layout": "24.6.0-
|
|
51
|
-
"@vaadin/grid": "24.6.0-
|
|
52
|
-
"@vaadin/horizontal-layout": "24.6.0-
|
|
53
|
-
"@vaadin/icon": "24.6.0-
|
|
54
|
-
"@vaadin/icons": "24.6.0-
|
|
55
|
-
"@vaadin/input-container": "24.6.0-
|
|
56
|
-
"@vaadin/integer-field": "24.6.0-
|
|
57
|
-
"@vaadin/item": "24.6.0-
|
|
58
|
-
"@vaadin/list-box": "24.6.0-
|
|
59
|
-
"@vaadin/lit-renderer": "24.6.0-
|
|
60
|
-
"@vaadin/login": "24.6.0-
|
|
61
|
-
"@vaadin/menu-bar": "24.6.0-
|
|
62
|
-
"@vaadin/message-input": "24.6.0-
|
|
63
|
-
"@vaadin/message-list": "24.6.0-
|
|
64
|
-
"@vaadin/multi-select-combo-box": "24.6.0-
|
|
65
|
-
"@vaadin/notification": "24.6.0-
|
|
66
|
-
"@vaadin/number-field": "24.6.0-
|
|
67
|
-
"@vaadin/overlay": "24.6.0-
|
|
68
|
-
"@vaadin/password-field": "24.6.0-
|
|
69
|
-
"@vaadin/popover": "24.6.0-
|
|
70
|
-
"@vaadin/progress-bar": "24.6.0-
|
|
71
|
-
"@vaadin/radio-group": "24.6.0-
|
|
72
|
-
"@vaadin/scroller": "24.6.0-
|
|
73
|
-
"@vaadin/select": "24.6.0-
|
|
74
|
-
"@vaadin/side-nav": "24.6.0-
|
|
75
|
-
"@vaadin/split-layout": "24.6.0-
|
|
76
|
-
"@vaadin/tabs": "24.6.0-
|
|
77
|
-
"@vaadin/tabsheet": "24.6.0-
|
|
78
|
-
"@vaadin/text-area": "24.6.0-
|
|
79
|
-
"@vaadin/text-field": "24.6.0-
|
|
80
|
-
"@vaadin/time-picker": "24.6.0-
|
|
81
|
-
"@vaadin/tooltip": "24.6.0-
|
|
82
|
-
"@vaadin/upload": "24.6.0-
|
|
83
|
-
"@vaadin/vaadin-lumo-styles": "24.6.0-
|
|
84
|
-
"@vaadin/vaadin-material-styles": "24.6.0-
|
|
85
|
-
"@vaadin/vaadin-themable-mixin": "24.6.0-
|
|
86
|
-
"@vaadin/vertical-layout": "24.6.0-
|
|
87
|
-
"@vaadin/virtual-list": "24.6.0-
|
|
30
|
+
"@vaadin/a11y-base": "24.6.0-alpha8",
|
|
31
|
+
"@vaadin/accordion": "24.6.0-alpha8",
|
|
32
|
+
"@vaadin/app-layout": "24.6.0-alpha8",
|
|
33
|
+
"@vaadin/avatar": "24.6.0-alpha8",
|
|
34
|
+
"@vaadin/avatar-group": "24.6.0-alpha8",
|
|
35
|
+
"@vaadin/button": "24.6.0-alpha8",
|
|
36
|
+
"@vaadin/checkbox": "24.6.0-alpha8",
|
|
37
|
+
"@vaadin/checkbox-group": "24.6.0-alpha8",
|
|
38
|
+
"@vaadin/combo-box": "24.6.0-alpha8",
|
|
39
|
+
"@vaadin/component-base": "24.6.0-alpha8",
|
|
40
|
+
"@vaadin/confirm-dialog": "24.6.0-alpha8",
|
|
41
|
+
"@vaadin/context-menu": "24.6.0-alpha8",
|
|
42
|
+
"@vaadin/custom-field": "24.6.0-alpha8",
|
|
43
|
+
"@vaadin/date-picker": "24.6.0-alpha8",
|
|
44
|
+
"@vaadin/date-time-picker": "24.6.0-alpha8",
|
|
45
|
+
"@vaadin/details": "24.6.0-alpha8",
|
|
46
|
+
"@vaadin/dialog": "24.6.0-alpha8",
|
|
47
|
+
"@vaadin/email-field": "24.6.0-alpha8",
|
|
48
|
+
"@vaadin/field-base": "24.6.0-alpha8",
|
|
49
|
+
"@vaadin/field-highlighter": "24.6.0-alpha8",
|
|
50
|
+
"@vaadin/form-layout": "24.6.0-alpha8",
|
|
51
|
+
"@vaadin/grid": "24.6.0-alpha8",
|
|
52
|
+
"@vaadin/horizontal-layout": "24.6.0-alpha8",
|
|
53
|
+
"@vaadin/icon": "24.6.0-alpha8",
|
|
54
|
+
"@vaadin/icons": "24.6.0-alpha8",
|
|
55
|
+
"@vaadin/input-container": "24.6.0-alpha8",
|
|
56
|
+
"@vaadin/integer-field": "24.6.0-alpha8",
|
|
57
|
+
"@vaadin/item": "24.6.0-alpha8",
|
|
58
|
+
"@vaadin/list-box": "24.6.0-alpha8",
|
|
59
|
+
"@vaadin/lit-renderer": "24.6.0-alpha8",
|
|
60
|
+
"@vaadin/login": "24.6.0-alpha8",
|
|
61
|
+
"@vaadin/menu-bar": "24.6.0-alpha8",
|
|
62
|
+
"@vaadin/message-input": "24.6.0-alpha8",
|
|
63
|
+
"@vaadin/message-list": "24.6.0-alpha8",
|
|
64
|
+
"@vaadin/multi-select-combo-box": "24.6.0-alpha8",
|
|
65
|
+
"@vaadin/notification": "24.6.0-alpha8",
|
|
66
|
+
"@vaadin/number-field": "24.6.0-alpha8",
|
|
67
|
+
"@vaadin/overlay": "24.6.0-alpha8",
|
|
68
|
+
"@vaadin/password-field": "24.6.0-alpha8",
|
|
69
|
+
"@vaadin/popover": "24.6.0-alpha8",
|
|
70
|
+
"@vaadin/progress-bar": "24.6.0-alpha8",
|
|
71
|
+
"@vaadin/radio-group": "24.6.0-alpha8",
|
|
72
|
+
"@vaadin/scroller": "24.6.0-alpha8",
|
|
73
|
+
"@vaadin/select": "24.6.0-alpha8",
|
|
74
|
+
"@vaadin/side-nav": "24.6.0-alpha8",
|
|
75
|
+
"@vaadin/split-layout": "24.6.0-alpha8",
|
|
76
|
+
"@vaadin/tabs": "24.6.0-alpha8",
|
|
77
|
+
"@vaadin/tabsheet": "24.6.0-alpha8",
|
|
78
|
+
"@vaadin/text-area": "24.6.0-alpha8",
|
|
79
|
+
"@vaadin/text-field": "24.6.0-alpha8",
|
|
80
|
+
"@vaadin/time-picker": "24.6.0-alpha8",
|
|
81
|
+
"@vaadin/tooltip": "24.6.0-alpha8",
|
|
82
|
+
"@vaadin/upload": "24.6.0-alpha8",
|
|
83
|
+
"@vaadin/vaadin-lumo-styles": "24.6.0-alpha8",
|
|
84
|
+
"@vaadin/vaadin-material-styles": "24.6.0-alpha8",
|
|
85
|
+
"@vaadin/vaadin-themable-mixin": "24.6.0-alpha8",
|
|
86
|
+
"@vaadin/vertical-layout": "24.6.0-alpha8",
|
|
87
|
+
"@vaadin/virtual-list": "24.6.0-alpha8"
|
|
88
88
|
},
|
|
89
89
|
"author": "Vaadin Ltd.",
|
|
90
90
|
"license": "Apache-2.0",
|
package/utils/createComponent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createComponent as n}from"@lit/react";window.Vaadin??={},window.Vaadin.registrations??=[],window.Vaadin.registrations.push({is:"@vaadin/react-components",version:"24.6.0-
|
|
1
|
+
import{createComponent as n}from"@lit/react";window.Vaadin??={},window.Vaadin.registrations??=[],window.Vaadin.registrations.push({is:"@vaadin/react-components",version:"24.6.0-alpha8"});function s(e){const{elementClass:t}=e;return n("_properties"in t?{...e,elementClass:{name:t.name,prototype:{...t._properties,hidden:Boolean}}}:e)}export{s as createComponent};
|
|
2
2
|
//# sourceMappingURL=createComponent.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/utils/createComponent.ts"],
|
|
4
|
-
"sourcesContent": ["import { createComponent as _createComponent, type EventName } from '@lit/react';\nimport type { ThemePropertyMixinClass } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';\nimport type React from 'react';\nimport type { RefAttributes } from 'react';\n\ndeclare const __VERSION__: string;\n\ndeclare global {\n interface VaadinRegistration {\n is: string;\n version: string;\n }\n\n interface Vaadin {\n registrations?: VaadinRegistration[];\n }\n\n interface Window {\n // @ts-expect-error: Different declaration from one of the dependencies.\n Vaadin?: Vaadin;\n }\n}\n\nwindow.Vaadin ??= {};\nwindow.Vaadin.registrations ??= [];\nwindow.Vaadin.registrations.push({\n is: '@vaadin/react-components',\n version: /* updated-by-script */ '24.6.0-
|
|
4
|
+
"sourcesContent": ["import { createComponent as _createComponent, type EventName } from '@lit/react';\nimport type { ThemePropertyMixinClass } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';\nimport type React from 'react';\nimport type { RefAttributes } from 'react';\n\ndeclare const __VERSION__: string;\n\ndeclare global {\n interface VaadinRegistration {\n is: string;\n version: string;\n }\n\n interface Vaadin {\n registrations?: VaadinRegistration[];\n }\n\n interface Window {\n // @ts-expect-error: Different declaration from one of the dependencies.\n Vaadin?: Vaadin;\n }\n}\n\nwindow.Vaadin ??= {};\nwindow.Vaadin.registrations ??= [];\nwindow.Vaadin.registrations.push({\n is: '@vaadin/react-components',\n version: /* updated-by-script */ '24.6.0-alpha8',\n});\n\n// TODO: Remove when types from @lit-labs/react are exported\nexport type EventNames = Record<string, EventName | string>;\ntype Constructor<T> = { new (): T; name: string };\ntype PolymerConstructor<T> = Constructor<T> & { _properties: Record<string, unknown> };\ntype Options<I extends HTMLElement, E extends EventNames = {}> = Readonly<{\n displayName?: string;\n elementClass: Constructor<I> | PolymerConstructor<I>;\n events?: E;\n react: typeof window.React;\n tagName: string;\n}>;\n\n// A map of expected event listener types based on EventNames.\ntype EventListeners<R extends EventNames> = {\n [K in keyof R]?: R[K] extends EventName ? (e: R[K]['__eventType']) => void : (e: Event) => void;\n};\n\n// Props derived from custom element class. Currently has limitations of making\n// all properties optional and also surfaces life cycle methods in autocomplete.\n// TODO: LoginOverlay has \"autofocus\" property, so we add it back manually.\ntype ElementProps<I> = Partial<Omit<I, keyof HTMLElement>> & { autofocus?: boolean };\n\n// Acceptable props to the React component.\ntype ComponentProps<I, E extends EventNames = {}> = Omit<\n React.HTMLAttributes<I>,\n // Prefer type of provided event handler props or those on element over\n // built-in HTMLAttributes\n keyof E | keyof ElementProps<I>\n> &\n EventListeners<E> &\n ElementProps<I>;\n\nexport type ThemedWebComponentProps<\n I extends ThemePropertyMixinClass & HTMLElement,\n E extends EventNames = {},\n> = ComponentProps<I, E> & {\n /**\n * Attribute that can be used by the component to apply built-in style variants,\n * or to propagate its value to the sub-components in Shadow DOM.\n *\n * @see ThemePropertyMixinClass#_theme\n */\n theme?: string;\n};\n\ntype AllWebComponentProps<I extends HTMLElement, E extends EventNames = {}> = I extends ThemePropertyMixinClass\n ? ThemedWebComponentProps<I, E>\n : ComponentProps<I, E>;\n\nexport type WebComponentProps<I extends HTMLElement, E extends EventNames = {}> = Partial<AllWebComponentProps<I, E>>;\n\n// We need a separate declaration here; otherwise, the TypeScript fails into the\n// endless loop trying to resolve the typings.\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>(\n options: Options<I, E>,\n): (props: WebComponentProps<I, E> & RefAttributes<I>) => React.ReactElement | null;\n\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>(options: Options<I, E>): any {\n const { elementClass } = options;\n\n return _createComponent(\n '_properties' in elementClass\n ? {\n ...options,\n // TODO: improve or remove the Polymer workaround\n // 'createComponent' relies on key presence on the custom element class,\n // but Polymer defines properties on the prototype when the first element\n // is created. Workaround: pass a mock object with properties in\n // the prototype.\n elementClass: {\n // @ts-expect-error: it is a specific workaround for Polymer classes.\n name: elementClass.name,\n prototype: { ...elementClass._properties, hidden: Boolean },\n },\n }\n : options,\n );\n}\n"],
|
|
5
5
|
"mappings": "AAAA,OAAS,mBAAmBA,MAAwC,aAuBpE,OAAO,SAAW,CAAC,EACnB,OAAO,OAAO,gBAAkB,CAAC,EACjC,OAAO,OAAO,cAAc,KAAK,CAC/B,GAAI,2BACJ,QAAiC,eACnC,CAAC,EA2DM,SAASC,EAAkEC,EAA6B,CAC7G,KAAM,CAAE,aAAAC,CAAa,EAAID,EAEzB,OAAOF,EACL,gBAAiBG,EACb,CACE,GAAGD,EAMH,aAAc,CAEZ,KAAMC,EAAa,KACnB,UAAW,CAAE,GAAGA,EAAa,YAAa,OAAQ,OAAQ,CAC5D,CACF,EACAD,CACN,CACF",
|
|
6
6
|
"names": ["_createComponent", "createComponent", "options", "elementClass"]
|
|
7
7
|
}
|