@migov/digital-guidelines-core-react 4.2.0 → 4.3.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components.js +467 -0
- package/dist/components.js.map +1 -0
- package/dist/types/components.d.ts +246 -0
- package/package.json +7 -6
- package/dist/index.js +0 -53
- package/dist/index.js.map +0 -1
- package/dist/react-component-lib/createComponent.js +0 -65
- package/dist/react-component-lib/createComponent.js.map +0 -1
- package/dist/react-component-lib/createOverlayComponent.js +0 -98
- package/dist/react-component-lib/createOverlayComponent.js.map +0 -1
- package/dist/react-component-lib/index.js +0 -3
- package/dist/react-component-lib/index.js.map +0 -1
- package/dist/react-component-lib/interfaces.js +0 -2
- package/dist/react-component-lib/interfaces.js.map +0 -1
- package/dist/react-component-lib/utils/attachProps.js +0 -92
- package/dist/react-component-lib/utils/attachProps.js.map +0 -1
- package/dist/react-component-lib/utils/case.js +0 -7
- package/dist/react-component-lib/utils/case.js.map +0 -1
- package/dist/react-component-lib/utils/dev.js +0 -13
- package/dist/react-component-lib/utils/dev.js.map +0 -1
- package/dist/react-component-lib/utils/index.js +0 -31
- package/dist/react-component-lib/utils/index.js.map +0 -1
- package/dist/types/index.d.ts +0 -50
- package/dist/types/react-component-lib/createComponent.d.ts +0 -10
- package/dist/types/react-component-lib/createOverlayComponent.d.ts +0 -21
- package/dist/types/react-component-lib/index.d.ts +0 -2
- package/dist/types/react-component-lib/interfaces.d.ts +0 -29
- package/dist/types/react-component-lib/utils/attachProps.d.ts +0 -9
- package/dist/types/react-component-lib/utils/case.d.ts +0 -2
- package/dist/types/react-component-lib/utils/dev.d.ts +0 -2
- package/dist/types/react-component-lib/utils/index.d.ts +0 -10
@@ -0,0 +1,246 @@
|
|
1
|
+
import { SomAccordionGroup as SomAccordionGroupElement } from "@migov/digital-guidelines-core/components/som-accordion-group.js";
|
2
|
+
import { SomAccordion as SomAccordionElement } from "@migov/digital-guidelines-core/components/som-accordion.js";
|
3
|
+
import { SomAlert as SomAlertElement } from "@migov/digital-guidelines-core/components/som-alert.js";
|
4
|
+
import { SomBadge as SomBadgeElement } from "@migov/digital-guidelines-core/components/som-badge.js";
|
5
|
+
import { SomButtonDropdown as SomButtonDropdownElement } from "@migov/digital-guidelines-core/components/som-button-dropdown.js";
|
6
|
+
import { SomButton as SomButtonElement } from "@migov/digital-guidelines-core/components/som-button.js";
|
7
|
+
import { SomCalendarVertical as SomCalendarVerticalElement } from "@migov/digital-guidelines-core/components/som-calendar-vertical.js";
|
8
|
+
import { SomCalendar as SomCalendarElement } from "@migov/digital-guidelines-core/components/som-calendar.js";
|
9
|
+
import { SomCard as SomCardElement } from "@migov/digital-guidelines-core/components/som-card.js";
|
10
|
+
import { SomCheckboxGroup as SomCheckboxGroupElement } from "@migov/digital-guidelines-core/components/som-checkbox-group.js";
|
11
|
+
import { SomCheckbox as SomCheckboxElement } from "@migov/digital-guidelines-core/components/som-checkbox.js";
|
12
|
+
import { SomCollapse as SomCollapseElement } from "@migov/digital-guidelines-core/components/som-collapse.js";
|
13
|
+
import { SomContent as SomContentElement } from "@migov/digital-guidelines-core/components/som-content.js";
|
14
|
+
import { SomDatePickerInput as SomDatePickerInputElement } from "@migov/digital-guidelines-core/components/som-date-picker-input.js";
|
15
|
+
import { SomDatePickerMobile as SomDatePickerMobileElement } from "@migov/digital-guidelines-core/components/som-date-picker-mobile.js";
|
16
|
+
import { SomDatePicker as SomDatePickerElement } from "@migov/digital-guidelines-core/components/som-date-picker.js";
|
17
|
+
import { SomDateRangePickerButton as SomDateRangePickerButtonElement } from "@migov/digital-guidelines-core/components/som-date-range-picker-button.js";
|
18
|
+
import { SomDateRangePicker as SomDateRangePickerElement } from "@migov/digital-guidelines-core/components/som-date-range-picker.js";
|
19
|
+
import { SomDialog as SomDialogElement } from "@migov/digital-guidelines-core/components/som-dialog.js";
|
20
|
+
import { SomFooterItem as SomFooterItemElement } from "@migov/digital-guidelines-core/components/som-footer-item.js";
|
21
|
+
import { SomFooter as SomFooterElement } from "@migov/digital-guidelines-core/components/som-footer.js";
|
22
|
+
import { SomGridTh as SomGridThElement } from "@migov/digital-guidelines-core/components/som-grid-th.js";
|
23
|
+
import { SomGrid as SomGridElement } from "@migov/digital-guidelines-core/components/som-grid.js";
|
24
|
+
import { SomHeader as SomHeaderElement } from "@migov/digital-guidelines-core/components/som-header.js";
|
25
|
+
import { SomIcon as SomIconElement } from "@migov/digital-guidelines-core/components/som-icon.js";
|
26
|
+
import { SomInput as SomInputElement } from "@migov/digital-guidelines-core/components/som-input.js";
|
27
|
+
import { SomListHeader as SomListHeaderElement } from "@migov/digital-guidelines-core/components/som-list-header.js";
|
28
|
+
import { SomListItem as SomListItemElement } from "@migov/digital-guidelines-core/components/som-list-item.js";
|
29
|
+
import { SomListParentItem as SomListParentItemElement } from "@migov/digital-guidelines-core/components/som-list-parent-item.js";
|
30
|
+
import { SomList as SomListElement } from "@migov/digital-guidelines-core/components/som-list.js";
|
31
|
+
import { SomMobileSubheader as SomMobileSubheaderElement } from "@migov/digital-guidelines-core/components/som-mobile-subheader.js";
|
32
|
+
import { SomModal as SomModalElement } from "@migov/digital-guidelines-core/components/som-modal.js";
|
33
|
+
import { SomPagination as SomPaginationElement } from "@migov/digital-guidelines-core/components/som-pagination.js";
|
34
|
+
import { SomPanel as SomPanelElement } from "@migov/digital-guidelines-core/components/som-panel.js";
|
35
|
+
import { SomPopover as SomPopoverElement } from "@migov/digital-guidelines-core/components/som-popover.js";
|
36
|
+
import { SomRadioButtonGroup as SomRadioButtonGroupElement } from "@migov/digital-guidelines-core/components/som-radio-button-group.js";
|
37
|
+
import { SomRadioButton as SomRadioButtonElement } from "@migov/digital-guidelines-core/components/som-radio-button.js";
|
38
|
+
import { SomSelect as SomSelectElement } from "@migov/digital-guidelines-core/components/som-select.js";
|
39
|
+
import { SomSidebar as SomSidebarElement } from "@migov/digital-guidelines-core/components/som-sidebar.js";
|
40
|
+
import { SomSpinner as SomSpinnerElement } from "@migov/digital-guidelines-core/components/som-spinner.js";
|
41
|
+
import { SomStatusCard as SomStatusCardElement } from "@migov/digital-guidelines-core/components/som-status-card.js";
|
42
|
+
import { SomTabGroup as SomTabGroupElement } from "@migov/digital-guidelines-core/components/som-tab-group.js";
|
43
|
+
import { SomTabPanelGroup as SomTabPanelGroupElement } from "@migov/digital-guidelines-core/components/som-tab-panel-group.js";
|
44
|
+
import { SomTabPanel as SomTabPanelElement } from "@migov/digital-guidelines-core/components/som-tab-panel.js";
|
45
|
+
import { SomTab as SomTabElement } from "@migov/digital-guidelines-core/components/som-tab.js";
|
46
|
+
import { SomTabs as SomTabsElement } from "@migov/digital-guidelines-core/components/som-tabs.js";
|
47
|
+
import { SomTextarea as SomTextareaElement } from "@migov/digital-guidelines-core/components/som-textarea.js";
|
48
|
+
import { SomToastGroup as SomToastGroupElement } from "@migov/digital-guidelines-core/components/som-toast-group.js";
|
49
|
+
import { SomToast as SomToastElement } from "@migov/digital-guidelines-core/components/som-toast.js";
|
50
|
+
import { SomToggle as SomToggleElement } from "@migov/digital-guidelines-core/components/som-toggle.js";
|
51
|
+
import { SomTooltip as SomTooltipElement } from "@migov/digital-guidelines-core/components/som-tooltip.js";
|
52
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
53
|
+
type SomAccordionEvents = {
|
54
|
+
onAccordionToggled: EventName<CustomEvent<boolean>>;
|
55
|
+
};
|
56
|
+
export declare const SomAccordion: StencilReactComponent<SomAccordionElement, SomAccordionEvents>;
|
57
|
+
type SomAccordionGroupEvents = NonNullable<unknown>;
|
58
|
+
export declare const SomAccordionGroup: StencilReactComponent<SomAccordionGroupElement, SomAccordionGroupEvents>;
|
59
|
+
type SomAlertEvents = {
|
60
|
+
onSomDismissed: EventName<CustomEvent<void>>;
|
61
|
+
};
|
62
|
+
export declare const SomAlert: StencilReactComponent<SomAlertElement, SomAlertEvents>;
|
63
|
+
type SomBadgeEvents = {
|
64
|
+
onSomDismissed: EventName<CustomEvent<void>>;
|
65
|
+
};
|
66
|
+
export declare const SomBadge: StencilReactComponent<SomBadgeElement, SomBadgeEvents>;
|
67
|
+
type SomButtonEvents = {
|
68
|
+
onSomFocus: EventName<CustomEvent<void>>;
|
69
|
+
onSomBlur: EventName<CustomEvent<void>>;
|
70
|
+
};
|
71
|
+
export declare const SomButton: StencilReactComponent<SomButtonElement, SomButtonEvents>;
|
72
|
+
type SomButtonDropdownEvents = NonNullable<unknown>;
|
73
|
+
export declare const SomButtonDropdown: StencilReactComponent<SomButtonDropdownElement, SomButtonDropdownEvents>;
|
74
|
+
type SomCalendarEvents = {
|
75
|
+
onDateChange: EventName<CustomEvent<any>>;
|
76
|
+
};
|
77
|
+
export declare const SomCalendar: StencilReactComponent<SomCalendarElement, SomCalendarEvents>;
|
78
|
+
type SomCalendarVerticalEvents = {
|
79
|
+
onDateChange: EventName<CustomEvent<any>>;
|
80
|
+
};
|
81
|
+
export declare const SomCalendarVertical: StencilReactComponent<SomCalendarVerticalElement, SomCalendarVerticalEvents>;
|
82
|
+
type SomCardEvents = NonNullable<unknown>;
|
83
|
+
export declare const SomCard: StencilReactComponent<SomCardElement, SomCardEvents>;
|
84
|
+
type SomCheckboxEvents = {
|
85
|
+
onSomFocus: EventName<CustomEvent<any>>;
|
86
|
+
onSomBlur: EventName<CustomEvent<any>>;
|
87
|
+
onSomChange: EventName<CustomEvent<any>>;
|
88
|
+
};
|
89
|
+
export declare const SomCheckbox: StencilReactComponent<SomCheckboxElement, SomCheckboxEvents>;
|
90
|
+
type SomCheckboxGroupEvents = NonNullable<unknown>;
|
91
|
+
export declare const SomCheckboxGroup: StencilReactComponent<SomCheckboxGroupElement, SomCheckboxGroupEvents>;
|
92
|
+
type SomCollapseEvents = {
|
93
|
+
onCollapseToggled: EventName<CustomEvent<any>>;
|
94
|
+
};
|
95
|
+
export declare const SomCollapse: StencilReactComponent<SomCollapseElement, SomCollapseEvents>;
|
96
|
+
type SomContentEvents = NonNullable<unknown>;
|
97
|
+
export declare const SomContent: StencilReactComponent<SomContentElement, SomContentEvents>;
|
98
|
+
type SomDatePickerEvents = {
|
99
|
+
onDateChange: EventName<CustomEvent<any>>;
|
100
|
+
};
|
101
|
+
export declare const SomDatePicker: StencilReactComponent<SomDatePickerElement, SomDatePickerEvents>;
|
102
|
+
type SomDatePickerInputEvents = {
|
103
|
+
onDateChanged: EventName<CustomEvent<any>>;
|
104
|
+
};
|
105
|
+
export declare const SomDatePickerInput: StencilReactComponent<SomDatePickerInputElement, SomDatePickerInputEvents>;
|
106
|
+
type SomDatePickerMobileEvents = {
|
107
|
+
onDatesChanged: EventName<CustomEvent<any>>;
|
108
|
+
onClose: EventName<CustomEvent<any>>;
|
109
|
+
};
|
110
|
+
export declare const SomDatePickerMobile: StencilReactComponent<SomDatePickerMobileElement, SomDatePickerMobileEvents>;
|
111
|
+
type SomDateRangePickerEvents = {
|
112
|
+
onDatesChanged: EventName<CustomEvent<any>>;
|
113
|
+
};
|
114
|
+
export declare const SomDateRangePicker: StencilReactComponent<SomDateRangePickerElement, SomDateRangePickerEvents>;
|
115
|
+
type SomDateRangePickerButtonEvents = {
|
116
|
+
onValueChange: EventName<CustomEvent<any>>;
|
117
|
+
};
|
118
|
+
export declare const SomDateRangePickerButton: StencilReactComponent<SomDateRangePickerButtonElement, SomDateRangePickerButtonEvents>;
|
119
|
+
type SomDialogEvents = {
|
120
|
+
onDialogOpen: EventName<CustomEvent<any>>;
|
121
|
+
onDialogClose: EventName<CustomEvent<any>>;
|
122
|
+
onDialogConfirm: EventName<CustomEvent<any>>;
|
123
|
+
};
|
124
|
+
export declare const SomDialog: StencilReactComponent<SomDialogElement, SomDialogEvents>;
|
125
|
+
type SomFooterEvents = NonNullable<unknown>;
|
126
|
+
export declare const SomFooter: StencilReactComponent<SomFooterElement, SomFooterEvents>;
|
127
|
+
type SomFooterItemEvents = NonNullable<unknown>;
|
128
|
+
export declare const SomFooterItem: StencilReactComponent<SomFooterItemElement, SomFooterItemEvents>;
|
129
|
+
type SomGridEvents = {
|
130
|
+
onSortChange: EventName<CustomEvent<any>>;
|
131
|
+
};
|
132
|
+
export declare const SomGrid: StencilReactComponent<SomGridElement, SomGridEvents>;
|
133
|
+
type SomGridThEvents = {
|
134
|
+
onColumnSortDirectionChange: EventName<CustomEvent<any>>;
|
135
|
+
};
|
136
|
+
export declare const SomGridTh: StencilReactComponent<SomGridThElement, SomGridThEvents>;
|
137
|
+
type SomHeaderEvents = NonNullable<unknown>;
|
138
|
+
export declare const SomHeader: StencilReactComponent<SomHeaderElement, SomHeaderEvents>;
|
139
|
+
type SomIconEvents = NonNullable<unknown>;
|
140
|
+
export declare const SomIcon: StencilReactComponent<SomIconElement, SomIconEvents>;
|
141
|
+
type SomInputEvents = {
|
142
|
+
onSomFocus: EventName<CustomEvent<any>>;
|
143
|
+
onSomInput: EventName<CustomEvent<any>>;
|
144
|
+
onSomBlur: EventName<CustomEvent<any>>;
|
145
|
+
onSomChange: EventName<CustomEvent<any>>;
|
146
|
+
};
|
147
|
+
export declare const SomInput: StencilReactComponent<SomInputElement, SomInputEvents>;
|
148
|
+
type SomListEvents = NonNullable<unknown>;
|
149
|
+
export declare const SomList: StencilReactComponent<SomListElement, SomListEvents>;
|
150
|
+
type SomListHeaderEvents = NonNullable<unknown>;
|
151
|
+
export declare const SomListHeader: StencilReactComponent<SomListHeaderElement, SomListHeaderEvents>;
|
152
|
+
type SomListItemEvents = NonNullable<unknown>;
|
153
|
+
export declare const SomListItem: StencilReactComponent<SomListItemElement, SomListItemEvents>;
|
154
|
+
type SomListParentItemEvents = {
|
155
|
+
onListClosed: EventName<CustomEvent<any>>;
|
156
|
+
onListOpened: EventName<CustomEvent<any>>;
|
157
|
+
onBeforeListOpened: EventName<CustomEvent<any>>;
|
158
|
+
onBeforeListClosed: EventName<CustomEvent<any>>;
|
159
|
+
};
|
160
|
+
export declare const SomListParentItem: StencilReactComponent<SomListParentItemElement, SomListParentItemEvents>;
|
161
|
+
type SomMobileSubheaderEvents = NonNullable<unknown>;
|
162
|
+
export declare const SomMobileSubheader: StencilReactComponent<SomMobileSubheaderElement, SomMobileSubheaderEvents>;
|
163
|
+
type SomModalEvents = {
|
164
|
+
onModalOpen: EventName<CustomEvent<any>>;
|
165
|
+
onModalClose: EventName<CustomEvent<any>>;
|
166
|
+
};
|
167
|
+
export declare const SomModal: StencilReactComponent<SomModalElement, SomModalEvents>;
|
168
|
+
type SomPaginationEvents = {
|
169
|
+
onPageChanged: EventName<CustomEvent<any>>;
|
170
|
+
};
|
171
|
+
export declare const SomPagination: StencilReactComponent<SomPaginationElement, SomPaginationEvents>;
|
172
|
+
type SomPanelEvents = {
|
173
|
+
onBeforeOpen: EventName<CustomEvent<any>>;
|
174
|
+
onAfterOpen: EventName<CustomEvent<any>>;
|
175
|
+
onBeforeClose: EventName<CustomEvent<any>>;
|
176
|
+
onAfterClose: EventName<CustomEvent<any>>;
|
177
|
+
};
|
178
|
+
export declare const SomPanel: StencilReactComponent<SomPanelElement, SomPanelEvents>;
|
179
|
+
type SomPopoverEvents = {
|
180
|
+
onPopoverOpened: EventName<CustomEvent<any>>;
|
181
|
+
onPopoverClosed: EventName<CustomEvent<any>>;
|
182
|
+
};
|
183
|
+
export declare const SomPopover: StencilReactComponent<SomPopoverElement, SomPopoverEvents>;
|
184
|
+
type SomRadioButtonEvents = {
|
185
|
+
onSomFocus: EventName<CustomEvent<any>>;
|
186
|
+
onSomBlur: EventName<CustomEvent<any>>;
|
187
|
+
onSomChange: EventName<CustomEvent<any>>;
|
188
|
+
};
|
189
|
+
export declare const SomRadioButton: StencilReactComponent<SomRadioButtonElement, SomRadioButtonEvents>;
|
190
|
+
type SomRadioButtonGroupEvents = {
|
191
|
+
onSomChange: EventName<CustomEvent<any>>;
|
192
|
+
};
|
193
|
+
export declare const SomRadioButtonGroup: StencilReactComponent<SomRadioButtonGroupElement, SomRadioButtonGroupEvents>;
|
194
|
+
type SomSelectEvents = {
|
195
|
+
onSomFocus: EventName<CustomEvent<any>>;
|
196
|
+
onSomBlur: EventName<CustomEvent<any>>;
|
197
|
+
onSomChange: EventName<CustomEvent<any>>;
|
198
|
+
};
|
199
|
+
export declare const SomSelect: StencilReactComponent<SomSelectElement, SomSelectEvents>;
|
200
|
+
type SomSidebarEvents = NonNullable<unknown>;
|
201
|
+
export declare const SomSidebar: StencilReactComponent<SomSidebarElement, SomSidebarEvents>;
|
202
|
+
type SomSpinnerEvents = NonNullable<unknown>;
|
203
|
+
export declare const SomSpinner: StencilReactComponent<SomSpinnerElement, SomSpinnerEvents>;
|
204
|
+
type SomStatusCardEvents = NonNullable<unknown>;
|
205
|
+
export declare const SomStatusCard: StencilReactComponent<SomStatusCardElement, SomStatusCardEvents>;
|
206
|
+
type SomTabEvents = {
|
207
|
+
onTabClick: EventName<CustomEvent<any>>;
|
208
|
+
};
|
209
|
+
export declare const SomTab: StencilReactComponent<SomTabElement, SomTabEvents>;
|
210
|
+
type SomTabGroupEvents = {
|
211
|
+
onTabChange: EventName<CustomEvent<any>>;
|
212
|
+
};
|
213
|
+
export declare const SomTabGroup: StencilReactComponent<SomTabGroupElement, SomTabGroupEvents>;
|
214
|
+
type SomTabPanelEvents = NonNullable<unknown>;
|
215
|
+
export declare const SomTabPanel: StencilReactComponent<SomTabPanelElement, SomTabPanelEvents>;
|
216
|
+
type SomTabPanelGroupEvents = NonNullable<unknown>;
|
217
|
+
export declare const SomTabPanelGroup: StencilReactComponent<SomTabPanelGroupElement, SomTabPanelGroupEvents>;
|
218
|
+
type SomTabsEvents = NonNullable<unknown>;
|
219
|
+
export declare const SomTabs: StencilReactComponent<SomTabsElement, SomTabsEvents>;
|
220
|
+
type SomTextareaEvents = {
|
221
|
+
onSomFocus: EventName<CustomEvent<any>>;
|
222
|
+
onSomInput: EventName<CustomEvent<any>>;
|
223
|
+
onSomBlur: EventName<CustomEvent<any>>;
|
224
|
+
onSomChange: EventName<CustomEvent<any>>;
|
225
|
+
};
|
226
|
+
export declare const SomTextarea: StencilReactComponent<SomTextareaElement, SomTextareaEvents>;
|
227
|
+
type SomToastEvents = {
|
228
|
+
onToastDismissed: EventName<CustomEvent<void>>;
|
229
|
+
};
|
230
|
+
export declare const SomToast: StencilReactComponent<SomToastElement, SomToastEvents>;
|
231
|
+
type SomToastGroupEvents = {
|
232
|
+
onToastGroupDismissed: EventName<CustomEvent<void>>;
|
233
|
+
};
|
234
|
+
export declare const SomToastGroup: StencilReactComponent<SomToastGroupElement, SomToastGroupEvents>;
|
235
|
+
type SomToggleEvents = {
|
236
|
+
onSomFocus: EventName<CustomEvent<any>>;
|
237
|
+
onSomBlur: EventName<CustomEvent<any>>;
|
238
|
+
onSomChange: EventName<CustomEvent<any>>;
|
239
|
+
};
|
240
|
+
export declare const SomToggle: StencilReactComponent<SomToggleElement, SomToggleEvents>;
|
241
|
+
type SomTooltipEvents = {
|
242
|
+
onOpened: EventName<CustomEvent<any>>;
|
243
|
+
onClosed: EventName<CustomEvent<any>>;
|
244
|
+
};
|
245
|
+
export declare const SomTooltip: StencilReactComponent<SomTooltipElement, SomTooltipEvents>;
|
246
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@migov/digital-guidelines-core-react",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.3.0-rc.1",
|
4
4
|
"description": "A React wrapper for Digital Guidelines Core",
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
6
6
|
"main": "dist/index.js",
|
@@ -27,13 +27,14 @@
|
|
27
27
|
"bump.patch": "node ./scripts/update-version.js"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"@migov/digital-guidelines-core": "4.
|
30
|
+
"@migov/digital-guidelines-core": "4.3.0-rc.1",
|
31
|
+
"@stencil/react-output-target": "^0.7.4"
|
31
32
|
},
|
32
33
|
"devDependencies": {
|
33
34
|
"@types/node": "^20.2.5",
|
34
|
-
"@types/react": "^18.
|
35
|
-
"react": "^18.
|
36
|
-
"react-dom": "^18.
|
37
|
-
"typescript": "^5.
|
35
|
+
"@types/react": "^18.3.12",
|
36
|
+
"react": "^18.3.1",
|
37
|
+
"react-dom": "^18.3.1",
|
38
|
+
"typescript": "^5.6.3"
|
38
39
|
}
|
39
40
|
}
|
package/dist/index.js
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
import { createReactComponent } from './react-component-lib';
|
2
|
-
import { defineCustomElements } from '@migov/digital-guidelines-core/loader';
|
3
|
-
defineCustomElements();
|
4
|
-
export const SomAccordion = createReactComponent('som-accordion');
|
5
|
-
export const SomAccordionGroup = createReactComponent('som-accordion-group');
|
6
|
-
export const SomAlert = createReactComponent('som-alert');
|
7
|
-
export const SomBadge = createReactComponent('som-badge');
|
8
|
-
export const SomButton = createReactComponent('som-button');
|
9
|
-
export const SomButtonDropdown = createReactComponent('som-button-dropdown');
|
10
|
-
export const SomCalendar = createReactComponent('som-calendar');
|
11
|
-
export const SomCalendarVertical = createReactComponent('som-calendar-vertical');
|
12
|
-
export const SomCard = createReactComponent('som-card');
|
13
|
-
export const SomCheckbox = createReactComponent('som-checkbox');
|
14
|
-
export const SomCheckboxGroup = createReactComponent('som-checkbox-group');
|
15
|
-
export const SomCollapse = createReactComponent('som-collapse');
|
16
|
-
export const SomContent = createReactComponent('som-content');
|
17
|
-
export const SomDatePicker = createReactComponent('som-date-picker');
|
18
|
-
export const SomDatePickerInput = createReactComponent('som-date-picker-input');
|
19
|
-
export const SomDatePickerMobile = createReactComponent('som-date-picker-mobile');
|
20
|
-
export const SomDateRangePicker = createReactComponent('som-date-range-picker');
|
21
|
-
export const SomDateRangePickerButton = createReactComponent('som-date-range-picker-button');
|
22
|
-
export const SomDialog = createReactComponent('som-dialog');
|
23
|
-
export const SomFooter = createReactComponent('som-footer');
|
24
|
-
export const SomFooterItem = createReactComponent('som-footer-item');
|
25
|
-
export const SomGrid = createReactComponent('som-grid');
|
26
|
-
export const SomGridTh = createReactComponent('som-grid-th');
|
27
|
-
export const SomHeader = createReactComponent('som-header');
|
28
|
-
export const SomIcon = createReactComponent('som-icon');
|
29
|
-
export const SomInput = createReactComponent('som-input');
|
30
|
-
export const SomList = createReactComponent('som-list');
|
31
|
-
export const SomListHeader = createReactComponent('som-list-header');
|
32
|
-
export const SomListItem = createReactComponent('som-list-item');
|
33
|
-
export const SomListParentItem = createReactComponent('som-list-parent-item');
|
34
|
-
export const SomMobileSubheader = createReactComponent('som-mobile-subheader');
|
35
|
-
export const SomModal = createReactComponent('som-modal');
|
36
|
-
export const SomPagination = createReactComponent('som-pagination');
|
37
|
-
export const SomPanel = createReactComponent('som-panel');
|
38
|
-
export const SomPopover = createReactComponent('som-popover');
|
39
|
-
export const SomRadioButton = createReactComponent('som-radio-button');
|
40
|
-
export const SomRadioButtonGroup = createReactComponent('som-radio-button-group');
|
41
|
-
export const SomSelect = createReactComponent('som-select');
|
42
|
-
export const SomSidebar = createReactComponent('som-sidebar');
|
43
|
-
export const SomSpinner = createReactComponent('som-spinner');
|
44
|
-
export const SomStatusCard = createReactComponent('som-status-card');
|
45
|
-
export const SomTab = createReactComponent('som-tab');
|
46
|
-
export const SomTabGroup = createReactComponent('som-tab-group');
|
47
|
-
export const SomTabPanel = createReactComponent('som-tab-panel');
|
48
|
-
export const SomTabPanelGroup = createReactComponent('som-tab-panel-group');
|
49
|
-
export const SomTabs = createReactComponent('som-tabs');
|
50
|
-
export const SomTextarea = createReactComponent('som-textarea');
|
51
|
-
export const SomToggle = createReactComponent('som-toggle');
|
52
|
-
export const SomTooltip = createReactComponent('som-tooltip');
|
53
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/components/stencil-generated/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAI7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,oBAAoB,EAAE,CAAC;AACvB,MAAM,CAAC,MAAM,YAAY,GAAgB,oBAAoB,CAA4C,eAAe,CAAC,CAAC;AAC1H,MAAM,C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oB,CAAwC,aAAa,CAAC,CAAC;AAClH,MAAM,CAAC,MAAM,cAAc,GAAgB,oBAAoB,CAAgD,kBAAkB,CAAC,CAAC;AACnI,MAAM,CAAC,MAAM,mBAAmB,GAAgB,oBAAoB,CAA0D,wBAAwB,CAAC,CAAC;AACxJ,MAAM,CAAC,MAAM,SAAS,GAAgB,oBAAoB,CAAsC,YAAY,CAAC,CAAC;AAC9G,MAAM,CAAC,MAAM,UAAU,GAAgB,oBAAoB,CAAwC,aAAa,CAAC,CAAC;AAClH,MAAM,CAAC,MAAM,UAAU,GAAgB,oBAAoB,CAAwC,aAAa,CAAC,CAAC;AAClH,MAAM,CAAC,MAAM,aAAa,GAAgB,oBAAoB,CAA8C,iBAAiB,CAAC,CAAC;AAC/H,MAAM,CAAC,MAAM,MAAM,GAAgB,oBAAoB,CAAgC,SAAS,CAAC,CAAC;AAClG,MAAM,CAAC,MAAM,WAAW,GAAgB,oBAAoB,CAA0C,eAAe,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,WAAW,GAAgB,oBAAoB,CAA0C,eAAe,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,gBAAgB,GAAgB,oBAAoB,CAAoD,qBAAqB,CAAC,CAAC;AAC5I,MAAM,CAAC,MAAM,OAAO,GAAgB,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,WAAW,GAAgB,oBAAoB,CAA0C,cAAc,CAAC,CAAC;AACtH,MAAM,CAAC,MAAM,SAAS,GAAgB,oBAAoB,CAAsC,YAAY,CAAC,CAAC;AAC9G,MAAM,CAAC,MAAM,UAAU,GAAgB,oBAAoB,CAAwC,aAAa,CAAC,CAAC"}
|
@@ -1,65 +0,0 @@
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
2
|
-
var t = {};
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4
|
-
t[p] = s[p];
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8
|
-
t[p[i]] = s[p[i]];
|
9
|
-
}
|
10
|
-
return t;
|
11
|
-
};
|
12
|
-
import React, { createElement } from 'react';
|
13
|
-
import { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils';
|
14
|
-
export const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
|
15
|
-
if (defineCustomElement !== undefined) {
|
16
|
-
defineCustomElement();
|
17
|
-
}
|
18
|
-
const displayName = dashToPascalCase(tagName);
|
19
|
-
const ReactComponent = class extends React.Component {
|
20
|
-
constructor(props) {
|
21
|
-
super(props);
|
22
|
-
this.setComponentElRef = (element) => {
|
23
|
-
this.componentEl = element;
|
24
|
-
};
|
25
|
-
}
|
26
|
-
componentDidMount() {
|
27
|
-
this.componentDidUpdate(this.props);
|
28
|
-
}
|
29
|
-
componentDidUpdate(prevProps) {
|
30
|
-
attachProps(this.componentEl, this.props, prevProps);
|
31
|
-
}
|
32
|
-
render() {
|
33
|
-
const _a = this.props, { children, forwardedRef, style, className, ref } = _a, cProps = __rest(_a, ["children", "forwardedRef", "style", "className", "ref"]);
|
34
|
-
let propsToPass = Object.keys(cProps).reduce((acc, name) => {
|
35
|
-
const value = cProps[name];
|
36
|
-
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
37
|
-
const eventName = name.substring(2).toLowerCase();
|
38
|
-
if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
|
39
|
-
acc[name] = value;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
else {
|
43
|
-
const type = typeof value;
|
44
|
-
if (type === 'string' || type === 'boolean' || type === 'number') {
|
45
|
-
acc[camelToDashCase(name)] = value;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
return acc;
|
49
|
-
}, {});
|
50
|
-
if (manipulatePropsFunction) {
|
51
|
-
propsToPass = manipulatePropsFunction(this.props, propsToPass);
|
52
|
-
}
|
53
|
-
const newProps = Object.assign(Object.assign({}, propsToPass), { ref: mergeRefs(forwardedRef, this.setComponentElRef), style });
|
54
|
-
return createElement(tagName, newProps, children);
|
55
|
-
}
|
56
|
-
static get displayName() {
|
57
|
-
return displayName;
|
58
|
-
}
|
59
|
-
};
|
60
|
-
if (ReactComponentContext) {
|
61
|
-
ReactComponent.contextType = ReactComponentContext;
|
62
|
-
}
|
63
|
-
return createForwardRef(ReactComponent, displayName);
|
64
|
-
};
|
65
|
-
//# sourceMappingURL=createComponent.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createComponent.js","sourceRoot":"","sources":["../../lib/components/stencil-generated/react-component-lib/createComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAWxH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAMlC,OAAe,EACf,qBAAuD,EACvD,uBAGuB,EACvB,mBAAgC,EAChC,EAAE;IACF,IAAI,mBAAmB,KAAK,SAAS,EAAE,CAAC;QACtC,mBAAmB,EAAE,CAAC;IACxB,CAAC;IAED,MAAM,WAAW,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9C,MAAM,cAAc,GAAG,KAAM,SAAQ,KAAK,CAAC,SAAiD;QAO1F,YAAY,KAA6C;YACvD,KAAK,CAAC,KAAK,CAAC,CAAC;YALf,sBAAiB,GAAG,CAAC,OAAoB,EAAE,EAAE;gBAC3C,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;YAC7B,CAAC,CAAC;QAIF,CAAC;QAED,iBAAiB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C;YAE7B,IAAI,uBAAuB,EAAE,CAAC;gBAC5B,WAAW,GAAG,uBAAuB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;YACjE,CAAC;YAED,MAAM,QAAQ,mCACT,WAAW,KACd,GAAG,EAAE,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,EACpD,KAAK,GACN,CAAC;YASF,OAAO,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,KAAK,WAAW;YACpB,OAAO,WAAW,CAAC;QACrB,CAAC;KACF,CAAC;IAGF,IAAI,qBAAqB,EAAE,CAAC;QAC1B,cAAc,CAAC,WAAW,GAAG,qBAAqB,CAAC;IACrD,CAAC;IAED,OAAO,gBAAgB,CAAwB,cAAc,EAAE,WAAW,CAAC,CAAC;AAC9E,CAAC,CAAC"}
|
@@ -1,98 +0,0 @@
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
-
});
|
9
|
-
};
|
10
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
11
|
-
var t = {};
|
12
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
13
|
-
t[p] = s[p];
|
14
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
15
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
16
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
17
|
-
t[p[i]] = s[p[i]];
|
18
|
-
}
|
19
|
-
return t;
|
20
|
-
};
|
21
|
-
import React from 'react';
|
22
|
-
import ReactDOM from 'react-dom';
|
23
|
-
import { attachProps, dashToPascalCase, defineCustomElement, setRef } from './utils';
|
24
|
-
export const createOverlayComponent = (tagName, controller, customElement) => {
|
25
|
-
defineCustomElement(tagName, customElement);
|
26
|
-
const displayName = dashToPascalCase(tagName);
|
27
|
-
const didDismissEventName = `on${displayName}DidDismiss`;
|
28
|
-
const didPresentEventName = `on${displayName}DidPresent`;
|
29
|
-
const willDismissEventName = `on${displayName}WillDismiss`;
|
30
|
-
const willPresentEventName = `on${displayName}WillPresent`;
|
31
|
-
let isDismissing = false;
|
32
|
-
class Overlay extends React.Component {
|
33
|
-
constructor(props) {
|
34
|
-
super(props);
|
35
|
-
if (typeof document !== 'undefined') {
|
36
|
-
this.el = document.createElement('div');
|
37
|
-
}
|
38
|
-
this.handleDismiss = this.handleDismiss.bind(this);
|
39
|
-
}
|
40
|
-
static get displayName() {
|
41
|
-
return displayName;
|
42
|
-
}
|
43
|
-
componentDidMount() {
|
44
|
-
if (this.props.isOpen) {
|
45
|
-
this.present();
|
46
|
-
}
|
47
|
-
}
|
48
|
-
componentWillUnmount() {
|
49
|
-
if (this.overlay) {
|
50
|
-
this.overlay.dismiss();
|
51
|
-
}
|
52
|
-
}
|
53
|
-
handleDismiss(event) {
|
54
|
-
if (this.props.onDidDismiss) {
|
55
|
-
this.props.onDidDismiss(event);
|
56
|
-
}
|
57
|
-
setRef(this.props.forwardedRef, null);
|
58
|
-
}
|
59
|
-
shouldComponentUpdate(nextProps) {
|
60
|
-
if (this.overlay && nextProps.isOpen !== this.props.isOpen && nextProps.isOpen === false) {
|
61
|
-
isDismissing = true;
|
62
|
-
}
|
63
|
-
return true;
|
64
|
-
}
|
65
|
-
componentDidUpdate(prevProps) {
|
66
|
-
return __awaiter(this, void 0, void 0, function* () {
|
67
|
-
if (this.overlay) {
|
68
|
-
attachProps(this.overlay, this.props, prevProps);
|
69
|
-
}
|
70
|
-
if (prevProps.isOpen !== this.props.isOpen && this.props.isOpen === true) {
|
71
|
-
this.present(prevProps);
|
72
|
-
}
|
73
|
-
if (this.overlay && prevProps.isOpen !== this.props.isOpen && this.props.isOpen === false) {
|
74
|
-
yield this.overlay.dismiss();
|
75
|
-
isDismissing = false;
|
76
|
-
this.forceUpdate();
|
77
|
-
}
|
78
|
-
});
|
79
|
-
}
|
80
|
-
present(prevProps) {
|
81
|
-
return __awaiter(this, void 0, void 0, function* () {
|
82
|
-
const _a = this.props, { children, isOpen, onDidDismiss, onDidPresent, onWillDismiss, onWillPresent } = _a, cProps = __rest(_a, ["children", "isOpen", "onDidDismiss", "onDidPresent", "onWillDismiss", "onWillPresent"]);
|
83
|
-
const elementProps = Object.assign(Object.assign({}, cProps), { ref: this.props.forwardedRef, [didDismissEventName]: this.handleDismiss, [didPresentEventName]: (e) => this.props.onDidPresent && this.props.onDidPresent(e), [willDismissEventName]: (e) => this.props.onWillDismiss && this.props.onWillDismiss(e), [willPresentEventName]: (e) => this.props.onWillPresent && this.props.onWillPresent(e) });
|
84
|
-
this.overlay = yield controller.create(Object.assign(Object.assign({}, elementProps), { component: this.el, componentProps: {} }));
|
85
|
-
setRef(this.props.forwardedRef, this.overlay);
|
86
|
-
attachProps(this.overlay, elementProps, prevProps);
|
87
|
-
yield this.overlay.present();
|
88
|
-
});
|
89
|
-
}
|
90
|
-
render() {
|
91
|
-
return ReactDOM.createPortal(this.props.isOpen || isDismissing ? this.props.children : null, this.el);
|
92
|
-
}
|
93
|
-
}
|
94
|
-
return React.forwardRef((props, ref) => {
|
95
|
-
return React.createElement(Overlay, Object.assign({}, props, { forwardedRef: ref }));
|
96
|
-
});
|
97
|
-
};
|
98
|
-
//# sourceMappingURL=createOverlayComponent.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createOverlayCompon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AAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;QACxG,CAAC;KACF;IAED,OAAO,KAAK,CAAC,UAAU,CAAqB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACzD,OAAO,oBAAC,OAAO,oBAAK,KAAK,IAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/components/stencil-generated/react-component-lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../lib/components/stencil-generated/react-component-lib/interfaces.ts"],"names":[],"mappings":""}
|
@@ -1,92 +0,0 @@
|
|
1
|
-
import { camelToDashCase } from './case';
|
2
|
-
export const attachProps = (node, newProps, oldProps = {}) => {
|
3
|
-
if (node instanceof Element) {
|
4
|
-
const className = getClassName(node.classList, newProps, oldProps);
|
5
|
-
if (className !== '') {
|
6
|
-
node.className = className;
|
7
|
-
}
|
8
|
-
Object.keys(newProps).forEach((name) => {
|
9
|
-
if (name === 'children' ||
|
10
|
-
name === 'style' ||
|
11
|
-
name === 'ref' ||
|
12
|
-
name === 'class' ||
|
13
|
-
name === 'className' ||
|
14
|
-
name === 'forwardedRef') {
|
15
|
-
return;
|
16
|
-
}
|
17
|
-
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
18
|
-
const eventName = name.substring(2);
|
19
|
-
const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
|
20
|
-
if (!isCoveredByReact(eventNameLc)) {
|
21
|
-
syncEvent(node, eventNameLc, newProps[name]);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
else {
|
25
|
-
node[name] = newProps[name];
|
26
|
-
const propType = typeof newProps[name];
|
27
|
-
if (propType === 'string') {
|
28
|
-
node.setAttribute(camelToDashCase(name), newProps[name]);
|
29
|
-
}
|
30
|
-
}
|
31
|
-
});
|
32
|
-
}
|
33
|
-
};
|
34
|
-
export const getClassName = (classList, newProps, oldProps) => {
|
35
|
-
const newClassProp = newProps.className || newProps.class;
|
36
|
-
const oldClassProp = oldProps.className || oldProps.class;
|
37
|
-
const currentClasses = arrayToMap(classList);
|
38
|
-
const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
|
39
|
-
const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
|
40
|
-
const finalClassNames = [];
|
41
|
-
currentClasses.forEach((currentClass) => {
|
42
|
-
if (incomingPropClasses.has(currentClass)) {
|
43
|
-
finalClassNames.push(currentClass);
|
44
|
-
incomingPropClasses.delete(currentClass);
|
45
|
-
}
|
46
|
-
else if (!oldPropClasses.has(currentClass)) {
|
47
|
-
finalClassNames.push(currentClass);
|
48
|
-
}
|
49
|
-
});
|
50
|
-
incomingPropClasses.forEach((s) => finalClassNames.push(s));
|
51
|
-
return finalClassNames.join(' ');
|
52
|
-
};
|
53
|
-
export const transformReactEventName = (eventNameSuffix) => {
|
54
|
-
switch (eventNameSuffix) {
|
55
|
-
case 'doubleclick':
|
56
|
-
return 'dblclick';
|
57
|
-
}
|
58
|
-
return eventNameSuffix;
|
59
|
-
};
|
60
|
-
export const isCoveredByReact = (eventNameSuffix) => {
|
61
|
-
if (typeof document === 'undefined') {
|
62
|
-
return true;
|
63
|
-
}
|
64
|
-
else {
|
65
|
-
const eventName = 'on' + transformReactEventName(eventNameSuffix);
|
66
|
-
let isSupported = eventName in document;
|
67
|
-
if (!isSupported) {
|
68
|
-
const element = document.createElement('div');
|
69
|
-
element.setAttribute(eventName, 'return;');
|
70
|
-
isSupported = typeof element[eventName] === 'function';
|
71
|
-
}
|
72
|
-
return isSupported;
|
73
|
-
}
|
74
|
-
};
|
75
|
-
export const syncEvent = (node, eventName, newEventHandler) => {
|
76
|
-
const eventStore = node.__events || (node.__events = {});
|
77
|
-
const oldEventHandler = eventStore[eventName];
|
78
|
-
if (oldEventHandler) {
|
79
|
-
node.removeEventListener(eventName, oldEventHandler);
|
80
|
-
}
|
81
|
-
node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {
|
82
|
-
if (newEventHandler) {
|
83
|
-
newEventHandler.call(this, e);
|
84
|
-
}
|
85
|
-
}));
|
86
|
-
};
|
87
|
-
const arrayToMap = (arr) => {
|
88
|
-
const map = new Map();
|
89
|
-
arr.forEach((s) => map.set(s, s));
|
90
|
-
return map;
|
91
|
-
};
|
92
|
-
//# sourceMappingURL=attachProps.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"attachProps.js","sourceRoot":"","sources":["../../../lib/components/stencil-generated/react-component-lib/utils/attachProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAiB,EAAE,QAAa,EAAE,WAAgB,EAAE,EAAE,EAAE;IAElF,IAAI,IAAI,YAAY,OAAO,EAAE,CAAC;QAE5B,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACnE,IAAI,SAAS,KAAK,EAAE,EAAE,CAAC;YACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC7B,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACrC,IACE,IAAI,KAAK,UAAU;gBACnB,IAAI,KAAK,OAAO;gBAChB,IAAI,KAAK,KAAK;gBACd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