@sellmate/design-system-react 1.0.62 → 1.0.64
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 -1
- package/dist/components/components.d.ts +55 -13
- package/dist/components/components.js +97 -19
- package/dist/components/components.server.d.ts +55 -13
- package/dist/components/components.server.js +144 -18
- package/dist/hooks/useSdTableVirtualScroll.d.ts +11 -0
- package/dist/hooks/useSdTableVirtualScroll.js +56 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +2 -1
- package/dist/sdModal.d.ts +2 -1
- package/dist/sdModal.js +4 -6
- package/lib/components/components.server.ts +220 -72
- package/lib/components/components.ts +147 -28
- package/lib/hooks/useSdTableVirtualScroll.ts +82 -0
- package/lib/index.ts +4 -3
- package/lib/sdModal.ts +6 -9
- package/package.json +2 -2
- package/dist/SdTable.d.ts +0 -40
- package/dist/SdTable.js +0 -74
- package/lib/SdTable.tsx +0 -185
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// @ts-ignore - ignore potential type issues as the project is importing itself
|
|
9
9
|
import * as clientComponents from '@sellmate/design-system-react';
|
|
10
10
|
|
|
11
|
-
import { type CheckedType, type DateRangeValue, type DropdownButtonValue, type Event, type RadioValue, type SdBarcodeInputCustomEvent, type SdButtonCustomEvent, type SdButtonV2CustomEvent, type SdCheckboxCustomEvent, type SdDateRangePickerCustomEvent, type SdDropdownButtonCustomEvent, type SdFilePickerCustomEvent, type SdGhostButtonCustomEvent, type SdInputCustomEvent, type SdNumberInputCustomEvent, type
|
|
11
|
+
import { type CheckedType, type DateRangeValue, type DropdownButtonValue, type Event, type RadioValue, type Row, type SdBarcodeInputCustomEvent, type SdButtonCustomEvent, type SdButtonV2CustomEvent, type SdCheckboxCustomEvent, type SdDateRangePickerCustomEvent, type SdDropdownButtonCustomEvent, type SdFilePickerCustomEvent, type SdGhostButtonCustomEvent, type SdInputCustomEvent, type SdNumberInputCustomEvent, type SdRadioButtonCustomEvent, type SdRadioCustomEvent, type SdRadioGroupCustomEvent, type SdSelectCustomEvent, type SdSelectDropdownCustomEvent, type SdSelectGroupCustomEvent, type SdSelectMultipleCustomEvent, type SdSelectMultipleGroupCustomEvent, type SdSelectOptionCustomEvent, type SdSelectOptionGroupCustomEvent, type SdSelectV2CustomEvent, type SdSelectV2ListItemCustomEvent, type SdSelectV2ListboxCustomEvent, type SdTableCustomEvent, type SdTextareaCustomEvent, type SelectEvents, type SelectMultipleEvents, type SelectOption, type SelectOptionGroup, type SelectV2Option, type SelectV2OptionSelectDetail, type SelectV2Value } from "@sellmate/design-system";
|
|
12
12
|
import { SdActionModal as SdActionModalElement } from "@sellmate/design-system/dist/components/sd-action-modal.js";
|
|
13
13
|
import { SdBadge as SdBadgeElement } from "@sellmate/design-system/dist/components/sd-badge.js";
|
|
14
14
|
import { SdBarcodeInput as SdBarcodeInputElement } from "@sellmate/design-system/dist/components/sd-barcode-input.js";
|
|
@@ -17,6 +17,7 @@ import { SdButton as SdButtonElement } from "@sellmate/design-system/dist/compon
|
|
|
17
17
|
import { SdCalendar as SdCalendarElement } from "@sellmate/design-system/dist/components/sd-calendar.js";
|
|
18
18
|
import { SdCard as SdCardElement } from "@sellmate/design-system/dist/components/sd-card.js";
|
|
19
19
|
import { SdCheckbox as SdCheckboxElement } from "@sellmate/design-system/dist/components/sd-checkbox.js";
|
|
20
|
+
import { SdCircleProgress as SdCircleProgressElement } from "@sellmate/design-system/dist/components/sd-circle-progress.js";
|
|
20
21
|
import { SdConfirmModal as SdConfirmModalElement } from "@sellmate/design-system/dist/components/sd-confirm-modal.js";
|
|
21
22
|
import { SdDateBox as SdDateBoxElement } from "@sellmate/design-system/dist/components/sd-date-box.js";
|
|
22
23
|
import { SdDatePickerCalendar as SdDatePickerCalendarElement } from "@sellmate/design-system/dist/components/sd-date-picker-calendar.js";
|
|
@@ -33,14 +34,15 @@ import { SdGhostButton as SdGhostButtonElement } from "@sellmate/design-system/d
|
|
|
33
34
|
import { SdGuide as SdGuideElement } from "@sellmate/design-system/dist/components/sd-guide.js";
|
|
34
35
|
import { SdIcon as SdIconElement } from "@sellmate/design-system/dist/components/sd-icon.js";
|
|
35
36
|
import { SdInput as SdInputElement } from "@sellmate/design-system/dist/components/sd-input.js";
|
|
36
|
-
import {
|
|
37
|
+
import { SdLoadingContainer as SdLoadingContainerElement } from "@sellmate/design-system/dist/components/sd-loading-container.js";
|
|
38
|
+
import { SdLoadingModal as SdLoadingModalElement } from "@sellmate/design-system/dist/components/sd-loading-modal.js";
|
|
37
39
|
import { SdModalContainer as SdModalContainerElement } from "@sellmate/design-system/dist/components/sd-modal-container.js";
|
|
38
40
|
import { SdNumberInput as SdNumberInputElement } from "@sellmate/design-system/dist/components/sd-number-input.js";
|
|
39
41
|
import { SdPagination as SdPaginationElement } from "@sellmate/design-system/dist/components/sd-pagination.js";
|
|
40
42
|
import { SdPopover as SdPopoverElement } from "@sellmate/design-system/dist/components/sd-popover.js";
|
|
41
43
|
import { SdPortal as SdPortalElement } from "@sellmate/design-system/dist/components/sd-portal.js";
|
|
42
44
|
import { SdProgress as SdProgressElement } from "@sellmate/design-system/dist/components/sd-progress.js";
|
|
43
|
-
import {
|
|
45
|
+
import { SdRadioButton as SdRadioButtonElement } from "@sellmate/design-system/dist/components/sd-radio-button.js";
|
|
44
46
|
import { SdRadioGroup as SdRadioGroupElement } from "@sellmate/design-system/dist/components/sd-radio-group.js";
|
|
45
47
|
import { SdRadio as SdRadioElement } from "@sellmate/design-system/dist/components/sd-radio.js";
|
|
46
48
|
import { SdSelectDropdown as SdSelectDropdownElement } from "@sellmate/design-system/dist/components/sd-select-dropdown.js";
|
|
@@ -56,15 +58,21 @@ import { SdSelectV2Listbox as SdSelectV2ListboxElement } from "@sellmate/design-
|
|
|
56
58
|
import { SdSelectV2Trigger as SdSelectV2TriggerElement } from "@sellmate/design-system/dist/components/sd-select-v2-trigger.js";
|
|
57
59
|
import { SdSelectV2 as SdSelectV2Element } from "@sellmate/design-system/dist/components/sd-select-v2.js";
|
|
58
60
|
import { SdSelect as SdSelectElement } from "@sellmate/design-system/dist/components/sd-select.js";
|
|
61
|
+
import { SdSwitch as SdSwitchElement } from "@sellmate/design-system/dist/components/sd-switch.js";
|
|
62
|
+
import { SdTable as SdTableElement } from "@sellmate/design-system/dist/components/sd-table.js";
|
|
59
63
|
import { SdTabs as SdTabsElement } from "@sellmate/design-system/dist/components/sd-tabs.js";
|
|
60
64
|
import { SdTag as SdTagElement } from "@sellmate/design-system/dist/components/sd-tag.js";
|
|
65
|
+
import { SdTbody as SdTbodyElement } from "@sellmate/design-system/dist/components/sd-tbody.js";
|
|
66
|
+
import { SdTd as SdTdElement } from "@sellmate/design-system/dist/components/sd-td.js";
|
|
61
67
|
import { SdTextLink as SdTextLinkElement } from "@sellmate/design-system/dist/components/sd-text-link.js";
|
|
62
68
|
import { SdTextarea as SdTextareaElement } from "@sellmate/design-system/dist/components/sd-textarea.js";
|
|
69
|
+
import { SdThead as SdTheadElement } from "@sellmate/design-system/dist/components/sd-thead.js";
|
|
63
70
|
import { SdToastContainer as SdToastContainerElement } from "@sellmate/design-system/dist/components/sd-toast-container.js";
|
|
64
71
|
import { SdToast as SdToastElement } from "@sellmate/design-system/dist/components/sd-toast.js";
|
|
65
|
-
import { SdToggleButton as SdToggleButtonElement } from "@sellmate/design-system/dist/components/sd-toggle-button.js";
|
|
66
72
|
import { SdToggle as SdToggleElement } from "@sellmate/design-system/dist/components/sd-toggle.js";
|
|
67
73
|
import { SdTooltip as SdTooltipElement } from "@sellmate/design-system/dist/components/sd-tooltip.js";
|
|
74
|
+
import { SdTr as SdTrElement } from "@sellmate/design-system/dist/components/sd-tr.js";
|
|
75
|
+
import { TableTest as TableTestElement } from "@sellmate/design-system/dist/components/table-test.js";
|
|
68
76
|
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
69
77
|
import { createComponent, type HydrateModule, type ReactWebComponent, type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
|
|
70
78
|
|
|
@@ -122,9 +130,9 @@ export const SdBarcodeInput: StencilReactComponent<SdBarcodeInputElement, SdBarc
|
|
|
122
130
|
focused: 'focused',
|
|
123
131
|
hovered: 'hovered',
|
|
124
132
|
label: 'label',
|
|
133
|
+
labelWidth: 'label-width',
|
|
125
134
|
labelTooltip: 'label-tooltip',
|
|
126
|
-
rules: 'rules'
|
|
127
|
-
},
|
|
135
|
+
rules: 'rules'},
|
|
128
136
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
129
137
|
clientModule: clientComponents.SdBarcodeInput as ReactWebComponent<SdBarcodeInputElement, SdBarcodeInputEvents>,
|
|
130
138
|
serializeShadowRoot,
|
|
@@ -161,6 +169,7 @@ export const SdButtonV2: StencilReactComponent<SdButtonV2Element, SdButtonV2Even
|
|
|
161
169
|
name: 'name',
|
|
162
170
|
label: 'label',
|
|
163
171
|
icon: 'icon',
|
|
172
|
+
rightIcon: 'right-icon',
|
|
164
173
|
ariaLabel: 'aria-label',
|
|
165
174
|
disabled: 'disabled',
|
|
166
175
|
type: 'type'
|
|
@@ -204,6 +213,7 @@ export const SdCheckbox: StencilReactComponent<SdCheckboxElement, SdCheckboxEven
|
|
|
204
213
|
value: 'value',
|
|
205
214
|
val: 'val',
|
|
206
215
|
disabled: 'disabled',
|
|
216
|
+
inverse: 'inverse',
|
|
207
217
|
label: 'label'
|
|
208
218
|
},
|
|
209
219
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
@@ -211,6 +221,20 @@ export const SdCheckbox: StencilReactComponent<SdCheckboxElement, SdCheckboxEven
|
|
|
211
221
|
serializeShadowRoot,
|
|
212
222
|
});
|
|
213
223
|
|
|
224
|
+
export type SdCircleProgressEvents = NonNullable<unknown>;
|
|
225
|
+
|
|
226
|
+
export const SdCircleProgress: StencilReactComponent<SdCircleProgressElement, SdCircleProgressEvents> = /*@__PURE__*/ createComponent<SdCircleProgressElement, SdCircleProgressEvents>({
|
|
227
|
+
tagName: 'sd-circle-progress',
|
|
228
|
+
properties: {
|
|
229
|
+
indeterminate: 'indeterminate',
|
|
230
|
+
value: 'value',
|
|
231
|
+
type: 'type'
|
|
232
|
+
},
|
|
233
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
234
|
+
clientModule: clientComponents.SdCircleProgress as ReactWebComponent<SdCircleProgressElement, SdCircleProgressEvents>,
|
|
235
|
+
serializeShadowRoot,
|
|
236
|
+
});
|
|
237
|
+
|
|
214
238
|
export type SdConfirmModalEvents = {
|
|
215
239
|
onSdClose: EventName<CustomEvent<void>>,
|
|
216
240
|
onSdCancel: EventName<CustomEvent<void>>,
|
|
@@ -230,8 +254,7 @@ export const SdConfirmModal: StencilReactComponent<SdConfirmModalElement, SdConf
|
|
|
230
254
|
tagLabel: 'tag-label',
|
|
231
255
|
slotLabel: 'slot-label',
|
|
232
256
|
topMessage: 'topMessage',
|
|
233
|
-
bottomMessage: 'bottomMessage'
|
|
234
|
-
},
|
|
257
|
+
bottomMessage: 'bottomMessage'},
|
|
235
258
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
236
259
|
clientModule: clientComponents.SdConfirmModal as ReactWebComponent<SdConfirmModalElement, SdConfirmModalEvents>,
|
|
237
260
|
serializeShadowRoot,
|
|
@@ -273,14 +296,14 @@ export const SdDatePicker: StencilReactComponent<SdDatePickerElement, SdDatePick
|
|
|
273
296
|
disabled: 'disabled',
|
|
274
297
|
width: 'width',
|
|
275
298
|
label: 'label',
|
|
299
|
+
labelWidth: 'label-width',
|
|
276
300
|
addonLabel: 'addon-label',
|
|
277
301
|
hint: 'hint',
|
|
278
302
|
errorMessage: 'error-message',
|
|
279
303
|
fieldName: 'field-name',
|
|
280
304
|
error: 'error',
|
|
281
305
|
labelTooltip: 'label-tooltip',
|
|
282
|
-
rules: 'rules'
|
|
283
|
-
},
|
|
306
|
+
rules: 'rules'},
|
|
284
307
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
285
308
|
clientModule: clientComponents.SdDatePicker as ReactWebComponent<SdDatePickerElement, SdDatePickerEvents>,
|
|
286
309
|
serializeShadowRoot,
|
|
@@ -328,14 +351,14 @@ export const SdDateRangePicker: StencilReactComponent<SdDateRangePickerElement,
|
|
|
328
351
|
disabled: 'disabled',
|
|
329
352
|
width: 'width',
|
|
330
353
|
label: 'label',
|
|
354
|
+
labelWidth: 'label-width',
|
|
331
355
|
addonLabel: 'addon-label',
|
|
332
356
|
hint: 'hint',
|
|
333
357
|
errorMessage: 'error-message',
|
|
334
358
|
fieldName: 'field-name',
|
|
335
359
|
error: 'error',
|
|
336
360
|
labelTooltip: 'label-tooltip',
|
|
337
|
-
rules: 'rules'
|
|
338
|
-
},
|
|
361
|
+
rules: 'rules'},
|
|
339
362
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
340
363
|
clientModule: clientComponents.SdDateRangePicker as ReactWebComponent<SdDateRangePickerElement, SdDateRangePickerEvents>,
|
|
341
364
|
serializeShadowRoot,
|
|
@@ -365,8 +388,7 @@ export const SdDropdownButton: StencilReactComponent<SdDropdownButtonElement, Sd
|
|
|
365
388
|
name: 'name',
|
|
366
389
|
label: 'label',
|
|
367
390
|
disabled: 'disabled',
|
|
368
|
-
items: 'items'
|
|
369
|
-
},
|
|
391
|
+
items: 'items'},
|
|
370
392
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
371
393
|
clientModule: clientComponents.SdDropdownButton as ReactWebComponent<SdDropdownButtonElement, SdDropdownButtonEvents>,
|
|
372
394
|
serializeShadowRoot,
|
|
@@ -386,11 +408,12 @@ export const SdField: StencilReactComponent<SdFieldElement, SdFieldEvents> = /*@
|
|
|
386
408
|
hint: 'hint',
|
|
387
409
|
errorMessage: 'error-message',
|
|
388
410
|
width: 'width',
|
|
411
|
+
size: 'size',
|
|
389
412
|
label: 'label',
|
|
413
|
+
labelWidth: 'label-width',
|
|
390
414
|
addonLabel: 'addon-label',
|
|
391
415
|
labelTooltip: 'label-tooltip',
|
|
392
|
-
rules: 'rules'
|
|
393
|
-
},
|
|
416
|
+
rules: 'rules'},
|
|
394
417
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
395
418
|
clientModule: clientComponents.SdField as ReactWebComponent<SdFieldElement, SdFieldEvents>,
|
|
396
419
|
serializeShadowRoot,
|
|
@@ -398,7 +421,10 @@ export const SdField: StencilReactComponent<SdFieldElement, SdFieldEvents> = /*@
|
|
|
398
421
|
|
|
399
422
|
export type SdFilePickerEvents = {
|
|
400
423
|
onSdUpdate: EventName<SdFilePickerCustomEvent<File[] | File | null>>,
|
|
401
|
-
onSdReject: EventName<SdFilePickerCustomEvent<{
|
|
424
|
+
onSdReject: EventName<SdFilePickerCustomEvent<{
|
|
425
|
+
files: File[];
|
|
426
|
+
reason: 'max-file-size' | 'max-total-size' | 'max-files';
|
|
427
|
+
}>>
|
|
402
428
|
};
|
|
403
429
|
|
|
404
430
|
export const SdFilePicker: StencilReactComponent<SdFilePickerElement, SdFilePickerEvents> = /*@__PURE__*/ createComponent<SdFilePickerElement, SdFilePickerEvents>({
|
|
@@ -414,6 +440,7 @@ export const SdFilePicker: StencilReactComponent<SdFilePickerElement, SdFilePick
|
|
|
414
440
|
maxFiles: 'max-files',
|
|
415
441
|
name: 'name',
|
|
416
442
|
label: 'label',
|
|
443
|
+
labelWidth: 'label-width',
|
|
417
444
|
addonLabel: 'addon-label',
|
|
418
445
|
hint: 'hint',
|
|
419
446
|
errorMessage: 'error-message',
|
|
@@ -424,8 +451,7 @@ export const SdFilePicker: StencilReactComponent<SdFilePickerElement, SdFilePick
|
|
|
424
451
|
focused: 'focused',
|
|
425
452
|
hovered: 'hovered',
|
|
426
453
|
value: 'value',
|
|
427
|
-
rules: 'rules'
|
|
428
|
-
},
|
|
454
|
+
rules: 'rules'},
|
|
429
455
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
430
456
|
clientModule: clientComponents.SdFilePicker as ReactWebComponent<SdFilePickerElement, SdFilePickerEvents>,
|
|
431
457
|
serializeShadowRoot,
|
|
@@ -485,8 +511,7 @@ export const SdGuide: StencilReactComponent<SdGuideElement, SdGuideEvents> = /*@
|
|
|
485
511
|
message: 'message',
|
|
486
512
|
guideUrl: 'guide-url',
|
|
487
513
|
popupTitle: 'popup-title',
|
|
488
|
-
popupWidth: 'popup-width'
|
|
489
|
-
},
|
|
514
|
+
popupWidth: 'popup-width'},
|
|
490
515
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
491
516
|
clientModule: clientComponents.SdGuide as ReactWebComponent<SdGuideElement, SdGuideEvents>,
|
|
492
517
|
serializeShadowRoot,
|
|
@@ -541,21 +566,37 @@ export const SdInput: StencilReactComponent<SdInputElement, SdInputEvents> = /*@
|
|
|
541
566
|
focused: 'focused',
|
|
542
567
|
hovered: 'hovered',
|
|
543
568
|
label: 'label',
|
|
569
|
+
labelWidth: 'label-width',
|
|
544
570
|
labelTooltip: 'label-tooltip',
|
|
545
|
-
rules: 'rules'
|
|
546
|
-
},
|
|
571
|
+
rules: 'rules'},
|
|
547
572
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
548
573
|
clientModule: clientComponents.SdInput as ReactWebComponent<SdInputElement, SdInputEvents>,
|
|
549
574
|
serializeShadowRoot,
|
|
550
575
|
});
|
|
551
576
|
|
|
552
|
-
export type
|
|
577
|
+
export type SdLoadingContainerEvents = NonNullable<unknown>;
|
|
553
578
|
|
|
554
|
-
export const
|
|
555
|
-
tagName: 'sd-loading-
|
|
556
|
-
properties: {
|
|
579
|
+
export const SdLoadingContainer: StencilReactComponent<SdLoadingContainerElement, SdLoadingContainerEvents> = /*@__PURE__*/ createComponent<SdLoadingContainerElement, SdLoadingContainerEvents>({
|
|
580
|
+
tagName: 'sd-loading-container',
|
|
581
|
+
properties: {},
|
|
582
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
583
|
+
clientModule: clientComponents.SdLoadingContainer as ReactWebComponent<SdLoadingContainerElement, SdLoadingContainerEvents>,
|
|
584
|
+
serializeShadowRoot,
|
|
585
|
+
});
|
|
586
|
+
|
|
587
|
+
export type SdLoadingModalEvents = { onSdClick: EventName<CustomEvent<void>> };
|
|
588
|
+
|
|
589
|
+
export const SdLoadingModal: StencilReactComponent<SdLoadingModalElement, SdLoadingModalEvents> = /*@__PURE__*/ createComponent<SdLoadingModalElement, SdLoadingModalEvents>({
|
|
590
|
+
tagName: 'sd-loading-modal',
|
|
591
|
+
properties: {
|
|
592
|
+
state: 'state',
|
|
593
|
+
message: 'message',
|
|
594
|
+
buttonLabel: 'button-label',
|
|
595
|
+
width: 'width',
|
|
596
|
+
height: 'height'
|
|
597
|
+
},
|
|
557
598
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
558
|
-
clientModule: clientComponents.
|
|
599
|
+
clientModule: clientComponents.SdLoadingModal as ReactWebComponent<SdLoadingModalElement, SdLoadingModalEvents>,
|
|
559
600
|
serializeShadowRoot,
|
|
560
601
|
});
|
|
561
602
|
|
|
@@ -586,6 +627,7 @@ export const SdNumberInput: StencilReactComponent<SdNumberInputElement, SdNumber
|
|
|
586
627
|
useDecimal: 'use-decimal',
|
|
587
628
|
value: 'value',
|
|
588
629
|
label: 'label',
|
|
630
|
+
labelWidth: 'label-width',
|
|
589
631
|
addonLabel: 'addon-label',
|
|
590
632
|
placeholder: 'placeholder',
|
|
591
633
|
disabled: 'disabled',
|
|
@@ -601,8 +643,7 @@ export const SdNumberInput: StencilReactComponent<SdNumberInputElement, SdNumber
|
|
|
601
643
|
error: 'error',
|
|
602
644
|
focused: 'focused',
|
|
603
645
|
hovered: 'hovered',
|
|
604
|
-
rules: 'rules'
|
|
605
|
-
},
|
|
646
|
+
rules: 'rules'},
|
|
606
647
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
607
648
|
clientModule: clientComponents.SdNumberInput as ReactWebComponent<SdNumberInputElement, SdNumberInputEvents>,
|
|
608
649
|
serializeShadowRoot,
|
|
@@ -639,8 +680,7 @@ export const SdPopover: StencilReactComponent<SdPopoverElement, SdPopoverEvents>
|
|
|
639
680
|
menuClass: 'menu-class',
|
|
640
681
|
noHover: 'no-hover',
|
|
641
682
|
useClose: 'use-close',
|
|
642
|
-
messages: 'messages'
|
|
643
|
-
},
|
|
683
|
+
messages: 'messages'},
|
|
644
684
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
645
685
|
clientModule: clientComponents.SdPopover as ReactWebComponent<SdPopoverElement, SdPopoverEvents>,
|
|
646
686
|
serializeShadowRoot,
|
|
@@ -693,19 +733,18 @@ export const SdRadio: StencilReactComponent<SdRadioElement, SdRadioEvents> = /*@
|
|
|
693
733
|
serializeShadowRoot,
|
|
694
734
|
});
|
|
695
735
|
|
|
696
|
-
export type
|
|
736
|
+
export type SdRadioButtonEvents = { onSdUpdate: EventName<SdRadioButtonCustomEvent<RadioValue>> };
|
|
697
737
|
|
|
698
|
-
export const
|
|
699
|
-
tagName: 'sd-radio-button
|
|
738
|
+
export const SdRadioButton: StencilReactComponent<SdRadioButtonElement, SdRadioButtonEvents> = /*@__PURE__*/ createComponent<SdRadioButtonElement, SdRadioButtonEvents>({
|
|
739
|
+
tagName: 'sd-radio-button',
|
|
700
740
|
properties: {
|
|
701
741
|
value: 'value',
|
|
702
742
|
size: 'size',
|
|
703
743
|
disabled: 'disabled',
|
|
704
744
|
name: 'name',
|
|
705
|
-
options: 'options'
|
|
706
|
-
},
|
|
745
|
+
options: 'options'},
|
|
707
746
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
708
|
-
clientModule: clientComponents.
|
|
747
|
+
clientModule: clientComponents.SdRadioButton as ReactWebComponent<SdRadioButtonElement, SdRadioButtonEvents>,
|
|
709
748
|
serializeShadowRoot,
|
|
710
749
|
});
|
|
711
750
|
|
|
@@ -718,8 +757,7 @@ export const SdRadioGroup: StencilReactComponent<SdRadioGroupElement, SdRadioGro
|
|
|
718
757
|
direction: 'direction',
|
|
719
758
|
disabled: 'disabled',
|
|
720
759
|
groupName: 'group-name',
|
|
721
|
-
options: 'options'
|
|
722
|
-
},
|
|
760
|
+
options: 'options'},
|
|
723
761
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
724
762
|
clientModule: clientComponents.SdRadioGroup as ReactWebComponent<SdRadioGroupElement, SdRadioGroupEvents>,
|
|
725
763
|
serializeShadowRoot,
|
|
@@ -743,12 +781,12 @@ export const SdSelect: StencilReactComponent<SdSelectElement, SdSelectEvents> =
|
|
|
743
781
|
clearable: 'clearable',
|
|
744
782
|
searchable: 'searchable',
|
|
745
783
|
label: 'label',
|
|
784
|
+
labelWidth: 'label-width',
|
|
746
785
|
addonLabel: 'addon-label',
|
|
747
786
|
labelTooltip: 'label-tooltip',
|
|
748
787
|
error: 'error',
|
|
749
788
|
options: 'options',
|
|
750
|
-
rules: 'rules'
|
|
751
|
-
},
|
|
789
|
+
rules: 'rules'},
|
|
752
790
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
753
791
|
clientModule: clientComponents.SdSelect as ReactWebComponent<SdSelectElement, SdSelectEvents>,
|
|
754
792
|
serializeShadowRoot,
|
|
@@ -775,8 +813,7 @@ export const SdSelectDropdown: StencilReactComponent<SdSelectDropdownElement, Sd
|
|
|
775
813
|
optionPlaceholder: 'option-placeholder',
|
|
776
814
|
useCheckbox: 'use-checkbox',
|
|
777
815
|
useAll: 'use-all',
|
|
778
|
-
options: 'options'
|
|
779
|
-
},
|
|
816
|
+
options: 'options'},
|
|
780
817
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
781
818
|
clientModule: clientComponents.SdSelectDropdown as ReactWebComponent<SdSelectDropdownElement, SdSelectDropdownEvents>,
|
|
782
819
|
serializeShadowRoot,
|
|
@@ -800,12 +837,12 @@ export const SdSelectGroup: StencilReactComponent<SdSelectGroupElement, SdSelect
|
|
|
800
837
|
clearable: 'clearable',
|
|
801
838
|
searchable: 'searchable',
|
|
802
839
|
label: 'label',
|
|
840
|
+
labelWidth: 'label-width',
|
|
803
841
|
addonLabel: 'addon-label',
|
|
804
842
|
labelTooltip: 'label-tooltip',
|
|
805
843
|
error: 'error',
|
|
806
844
|
options: 'options',
|
|
807
|
-
rules: 'rules'
|
|
808
|
-
},
|
|
845
|
+
rules: 'rules'},
|
|
809
846
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
810
847
|
clientModule: clientComponents.SdSelectGroup as ReactWebComponent<SdSelectGroupElement, SdSelectGroupEvents>,
|
|
811
848
|
serializeShadowRoot,
|
|
@@ -830,12 +867,12 @@ export const SdSelectMultiple: StencilReactComponent<SdSelectMultipleElement, Sd
|
|
|
830
867
|
useAll: 'use-all',
|
|
831
868
|
useCheckbox: 'use-checkbox',
|
|
832
869
|
label: 'label',
|
|
870
|
+
labelWidth: 'label-width',
|
|
833
871
|
labelTooltip: 'label-tooltip',
|
|
834
872
|
error: 'error',
|
|
835
873
|
value: 'value',
|
|
836
874
|
options: 'options',
|
|
837
|
-
rules: 'rules'
|
|
838
|
-
},
|
|
875
|
+
rules: 'rules'},
|
|
839
876
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
840
877
|
clientModule: clientComponents.SdSelectMultiple as ReactWebComponent<SdSelectMultipleElement, SdSelectMultipleEvents>,
|
|
841
878
|
serializeShadowRoot,
|
|
@@ -861,12 +898,12 @@ export const SdSelectMultipleGroup: StencilReactComponent<SdSelectMultipleGroupE
|
|
|
861
898
|
allCheckedLabel: 'all-checked-label',
|
|
862
899
|
allCheckOptionLabel: 'all-check-option-label',
|
|
863
900
|
label: 'label',
|
|
901
|
+
labelWidth: 'label-width',
|
|
864
902
|
labelTooltip: 'label-tooltip',
|
|
865
903
|
error: 'error',
|
|
866
904
|
value: 'value',
|
|
867
905
|
options: 'options',
|
|
868
|
-
rules: 'rules'
|
|
869
|
-
},
|
|
906
|
+
rules: 'rules'},
|
|
870
907
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
871
908
|
clientModule: clientComponents.SdSelectMultipleGroup as ReactWebComponent<SdSelectMultipleGroupElement, SdSelectMultipleGroupEvents>,
|
|
872
909
|
serializeShadowRoot,
|
|
@@ -949,6 +986,7 @@ export const SdSelectV2: StencilReactComponent<SdSelectV2Element, SdSelectV2Even
|
|
|
949
986
|
dropdownHeight: 'dropdown-height',
|
|
950
987
|
disabled: 'disabled',
|
|
951
988
|
label: 'label',
|
|
989
|
+
labelWidth: 'label-width',
|
|
952
990
|
addonLabel: 'addon-label',
|
|
953
991
|
error: 'error',
|
|
954
992
|
hint: 'hint',
|
|
@@ -958,8 +996,7 @@ export const SdSelectV2: StencilReactComponent<SdSelectV2Element, SdSelectV2Even
|
|
|
958
996
|
emitValue: 'emit-value',
|
|
959
997
|
width: 'width',
|
|
960
998
|
options: 'options',
|
|
961
|
-
rules: 'rules'
|
|
962
|
-
},
|
|
999
|
+
rules: 'rules'},
|
|
963
1000
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
964
1001
|
clientModule: clientComponents.SdSelectV2 as ReactWebComponent<SdSelectV2Element, SdSelectV2Events>,
|
|
965
1002
|
serializeShadowRoot,
|
|
@@ -1004,8 +1041,7 @@ export const SdSelectV2Listbox: StencilReactComponent<SdSelectV2ListboxElement,
|
|
|
1004
1041
|
triggerWidth: 'trigger-width',
|
|
1005
1042
|
maxWidth: 'max-width',
|
|
1006
1043
|
maxHeight: 'max-height',
|
|
1007
|
-
options: 'options'
|
|
1008
|
-
},
|
|
1044
|
+
options: 'options'},
|
|
1009
1045
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1010
1046
|
clientModule: clientComponents.SdSelectV2Listbox as ReactWebComponent<SdSelectV2ListboxElement, SdSelectV2ListboxEvents>,
|
|
1011
1047
|
serializeShadowRoot,
|
|
@@ -1026,6 +1062,63 @@ export const SdSelectV2Trigger: StencilReactComponent<SdSelectV2TriggerElement,
|
|
|
1026
1062
|
serializeShadowRoot,
|
|
1027
1063
|
});
|
|
1028
1064
|
|
|
1065
|
+
export type SdSwitchEvents = { onSdUpdate: EventName<CustomEvent<boolean>> };
|
|
1066
|
+
|
|
1067
|
+
export const SdSwitch: StencilReactComponent<SdSwitchElement, SdSwitchEvents> = /*@__PURE__*/ createComponent<SdSwitchElement, SdSwitchEvents>({
|
|
1068
|
+
tagName: 'sd-switch',
|
|
1069
|
+
properties: {
|
|
1070
|
+
value: 'value',
|
|
1071
|
+
label: 'label',
|
|
1072
|
+
disabled: 'disabled'
|
|
1073
|
+
},
|
|
1074
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1075
|
+
clientModule: clientComponents.SdSwitch as ReactWebComponent<SdSwitchElement, SdSwitchEvents>,
|
|
1076
|
+
serializeShadowRoot,
|
|
1077
|
+
});
|
|
1078
|
+
|
|
1079
|
+
export type SdTableEvents = {
|
|
1080
|
+
onSdSelectChange: EventName<SdTableCustomEvent<Row[]>>,
|
|
1081
|
+
onSdPageChange: EventName<CustomEvent<number>>,
|
|
1082
|
+
onSdRowsPerPageChange: EventName<CustomEvent<number>>,
|
|
1083
|
+
onSdVirtualUpdate: EventName<CustomEvent<{
|
|
1084
|
+
from: number;
|
|
1085
|
+
to: number;
|
|
1086
|
+
}>>,
|
|
1087
|
+
onSdVirtualReachEnd: EventName<CustomEvent<{
|
|
1088
|
+
from: number;
|
|
1089
|
+
to: number;
|
|
1090
|
+
rowCount: number;
|
|
1091
|
+
threshold: number;
|
|
1092
|
+
}>>
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
export const SdTable: StencilReactComponent<SdTableElement, SdTableEvents> = /*@__PURE__*/ createComponent<SdTableElement, SdTableEvents>({
|
|
1096
|
+
tagName: 'sd-table',
|
|
1097
|
+
properties: {
|
|
1098
|
+
tableId: 'table-id',
|
|
1099
|
+
rowKey: 'row-key',
|
|
1100
|
+
selectable: 'selectable',
|
|
1101
|
+
resizable: 'resizable',
|
|
1102
|
+
width: 'width',
|
|
1103
|
+
height: 'height',
|
|
1104
|
+
stickyHeader: 'sticky-header',
|
|
1105
|
+
noDataLabel: 'no-data-label',
|
|
1106
|
+
isLoading: 'is-loading',
|
|
1107
|
+
useInternalPagination: 'use-internal-pagination',
|
|
1108
|
+
useRowsPerPageSelect: 'use-rows-per-page-select',
|
|
1109
|
+
useVirtualScroll: 'use-virtual-scroll',
|
|
1110
|
+
rowHeight: 'row-height',
|
|
1111
|
+
virtualBuffer: 'virtual-buffer',
|
|
1112
|
+
virtualEndThreshold: 'virtual-end-threshold',
|
|
1113
|
+
columns: 'columns',
|
|
1114
|
+
rows: 'rows',
|
|
1115
|
+
selected: 'selected',
|
|
1116
|
+
rowsPerPageOption: 'rowsPerPageOption'},
|
|
1117
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1118
|
+
clientModule: clientComponents.SdTable as ReactWebComponent<SdTableElement, SdTableEvents>,
|
|
1119
|
+
serializeShadowRoot,
|
|
1120
|
+
});
|
|
1121
|
+
|
|
1029
1122
|
export type SdTabsEvents = { onSdUpdate: EventName<CustomEvent<string>> };
|
|
1030
1123
|
|
|
1031
1124
|
export const SdTabs: StencilReactComponent<SdTabsElement, SdTabsEvents> = /*@__PURE__*/ createComponent<SdTabsElement, SdTabsEvents>({
|
|
@@ -1034,8 +1127,7 @@ export const SdTabs: StencilReactComponent<SdTabsElement, SdTabsEvents> = /*@__P
|
|
|
1034
1127
|
value: 'value',
|
|
1035
1128
|
size: 'size',
|
|
1036
1129
|
isSub: 'is-sub',
|
|
1037
|
-
tabs: 'tabs'
|
|
1038
|
-
},
|
|
1130
|
+
tabs: 'tabs'},
|
|
1039
1131
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1040
1132
|
clientModule: clientComponents.SdTabs as ReactWebComponent<SdTabsElement, SdTabsEvents>,
|
|
1041
1133
|
serializeShadowRoot,
|
|
@@ -1056,6 +1148,31 @@ export const SdTag: StencilReactComponent<SdTagElement, SdTagEvents> = /*@__PURE
|
|
|
1056
1148
|
serializeShadowRoot,
|
|
1057
1149
|
});
|
|
1058
1150
|
|
|
1151
|
+
export type SdTbodyEvents = NonNullable<unknown>;
|
|
1152
|
+
|
|
1153
|
+
export const SdTbody: StencilReactComponent<SdTbodyElement, SdTbodyEvents> = /*@__PURE__*/ createComponent<SdTbodyElement, SdTbodyEvents>({
|
|
1154
|
+
tagName: 'sd-tbody',
|
|
1155
|
+
properties: {
|
|
1156
|
+
rows: 'rows'},
|
|
1157
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1158
|
+
clientModule: clientComponents.SdTbody as ReactWebComponent<SdTbodyElement, SdTbodyEvents>,
|
|
1159
|
+
serializeShadowRoot,
|
|
1160
|
+
});
|
|
1161
|
+
|
|
1162
|
+
export type SdTdEvents = NonNullable<unknown>;
|
|
1163
|
+
|
|
1164
|
+
export const SdTd: StencilReactComponent<SdTdElement, SdTdEvents> = /*@__PURE__*/ createComponent<SdTdElement, SdTdEvents>({
|
|
1165
|
+
tagName: 'sd-td',
|
|
1166
|
+
properties: {
|
|
1167
|
+
field: 'field',
|
|
1168
|
+
rowKey: 'row-key',
|
|
1169
|
+
align: 'align'
|
|
1170
|
+
},
|
|
1171
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1172
|
+
clientModule: clientComponents.SdTd as ReactWebComponent<SdTdElement, SdTdEvents>,
|
|
1173
|
+
serializeShadowRoot,
|
|
1174
|
+
});
|
|
1175
|
+
|
|
1059
1176
|
export type SdTextLinkEvents = { onSdClick: EventName<CustomEvent<void>> };
|
|
1060
1177
|
|
|
1061
1178
|
export const SdTextLink: StencilReactComponent<SdTextLinkElement, SdTextLinkEvents> = /*@__PURE__*/ createComponent<SdTextLinkElement, SdTextLinkEvents>({
|
|
@@ -1094,6 +1211,7 @@ export const SdTextarea: StencilReactComponent<SdTextareaElement, SdTextareaEven
|
|
|
1094
1211
|
spellcheck: 'spellcheck',
|
|
1095
1212
|
width: 'width',
|
|
1096
1213
|
label: 'label',
|
|
1214
|
+
labelWidth: 'label-width',
|
|
1097
1215
|
addonLabel: 'addon-label',
|
|
1098
1216
|
hint: 'hint',
|
|
1099
1217
|
errorMessage: 'error-message',
|
|
@@ -1102,13 +1220,30 @@ export const SdTextarea: StencilReactComponent<SdTextareaElement, SdTextareaEven
|
|
|
1102
1220
|
status: 'status',
|
|
1103
1221
|
focused: 'focused',
|
|
1104
1222
|
hovered: 'hovered',
|
|
1105
|
-
rules: 'rules'
|
|
1106
|
-
},
|
|
1223
|
+
rules: 'rules'},
|
|
1107
1224
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1108
1225
|
clientModule: clientComponents.SdTextarea as ReactWebComponent<SdTextareaElement, SdTextareaEvents>,
|
|
1109
1226
|
serializeShadowRoot,
|
|
1110
1227
|
});
|
|
1111
1228
|
|
|
1229
|
+
export type SdTheadEvents = NonNullable<unknown>;
|
|
1230
|
+
|
|
1231
|
+
export const SdThead: StencilReactComponent<SdTheadElement, SdTheadEvents> = /*@__PURE__*/ createComponent<SdTheadElement, SdTheadEvents>({
|
|
1232
|
+
tagName: 'sd-thead',
|
|
1233
|
+
properties: {
|
|
1234
|
+
selectable: 'selectable',
|
|
1235
|
+
resizable: 'resizable',
|
|
1236
|
+
stickyHeader: 'sticky-header',
|
|
1237
|
+
scrolledLeft: 'scrolled-left',
|
|
1238
|
+
scrolledRight: 'scrolled-right',
|
|
1239
|
+
columns: 'columns',
|
|
1240
|
+
rows: 'rows',
|
|
1241
|
+
columnWidths: 'columnWidths'},
|
|
1242
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1243
|
+
clientModule: clientComponents.SdThead as ReactWebComponent<SdTheadElement, SdTheadEvents>,
|
|
1244
|
+
serializeShadowRoot,
|
|
1245
|
+
});
|
|
1246
|
+
|
|
1112
1247
|
export type SdToastEvents = { onSdClose: EventName<CustomEvent<void>> };
|
|
1113
1248
|
|
|
1114
1249
|
export const SdToast: StencilReactComponent<SdToastElement, SdToastEvents> = /*@__PURE__*/ createComponent<SdToastElement, SdToastEvents>({
|
|
@@ -1158,20 +1293,6 @@ export const SdToggle: StencilReactComponent<SdToggleElement, SdToggleEvents> =
|
|
|
1158
1293
|
serializeShadowRoot,
|
|
1159
1294
|
});
|
|
1160
1295
|
|
|
1161
|
-
export type SdToggleButtonEvents = { onSdUpdate: EventName<CustomEvent<boolean>> };
|
|
1162
|
-
|
|
1163
|
-
export const SdToggleButton: StencilReactComponent<SdToggleButtonElement, SdToggleButtonEvents> = /*@__PURE__*/ createComponent<SdToggleButtonElement, SdToggleButtonEvents>({
|
|
1164
|
-
tagName: 'sd-toggle-button',
|
|
1165
|
-
properties: {
|
|
1166
|
-
value: 'value',
|
|
1167
|
-
label: 'label',
|
|
1168
|
-
disabled: 'disabled'
|
|
1169
|
-
},
|
|
1170
|
-
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1171
|
-
clientModule: clientComponents.SdToggleButton as ReactWebComponent<SdToggleButtonElement, SdToggleButtonEvents>,
|
|
1172
|
-
serializeShadowRoot,
|
|
1173
|
-
});
|
|
1174
|
-
|
|
1175
1296
|
export type SdTooltipEvents = NonNullable<unknown>;
|
|
1176
1297
|
|
|
1177
1298
|
export const SdTooltip: StencilReactComponent<SdTooltipElement, SdTooltipEvents> = /*@__PURE__*/ createComponent<SdTooltipElement, SdTooltipEvents>({
|
|
@@ -1193,3 +1314,30 @@ export const SdTooltip: StencilReactComponent<SdTooltipElement, SdTooltipEvents>
|
|
|
1193
1314
|
clientModule: clientComponents.SdTooltip as ReactWebComponent<SdTooltipElement, SdTooltipEvents>,
|
|
1194
1315
|
serializeShadowRoot,
|
|
1195
1316
|
});
|
|
1317
|
+
|
|
1318
|
+
export type SdTrEvents = NonNullable<unknown>;
|
|
1319
|
+
|
|
1320
|
+
export const SdTr: StencilReactComponent<SdTrElement, SdTrEvents> = /*@__PURE__*/ createComponent<SdTrElement, SdTrEvents>({
|
|
1321
|
+
tagName: 'sd-tr',
|
|
1322
|
+
properties: {
|
|
1323
|
+
selectable: 'selectable',
|
|
1324
|
+
rowKey: 'row-key',
|
|
1325
|
+
columns: 'columns'},
|
|
1326
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1327
|
+
clientModule: clientComponents.SdTr as ReactWebComponent<SdTrElement, SdTrEvents>,
|
|
1328
|
+
serializeShadowRoot,
|
|
1329
|
+
});
|
|
1330
|
+
|
|
1331
|
+
export type TableTestEvents = { onTableReady: EventName<CustomEvent<void>> };
|
|
1332
|
+
|
|
1333
|
+
export const TableTest: StencilReactComponent<TableTestElement, TableTestEvents> = /*@__PURE__*/ createComponent<TableTestElement, TableTestEvents>({
|
|
1334
|
+
tagName: 'table-test',
|
|
1335
|
+
properties: {
|
|
1336
|
+
bordered: 'bordered',
|
|
1337
|
+
striped: 'striped',
|
|
1338
|
+
columns: 'columns',
|
|
1339
|
+
rows: 'rows'},
|
|
1340
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1341
|
+
clientModule: clientComponents.TableTest as ReactWebComponent<TableTestElement, TableTestEvents>,
|
|
1342
|
+
serializeShadowRoot,
|
|
1343
|
+
});
|