@reportportal/ui-kit 0.0.1-alpha.16 → 0.0.1-alpha.161
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 +28 -2
- package/dist/adaptiveTagList.js +189 -0
- package/dist/attachedFile.js +9 -0
- package/dist/autocompletes.js +780 -0
- package/dist/baseIconButton-251479f7.js +25 -0
- package/dist/baseIconButton.js +1 -1
- package/dist/breadcrumbs-8e5ca8d7.js +183 -0
- package/dist/breadcrumbs.js +12 -0
- package/dist/bubblesLoader-f3ffa240.js +28 -0
- package/dist/bubblesLoader.js +1 -1
- package/dist/bulkPanel.js +92 -0
- package/dist/button-97d9e587.js +66 -0
- package/dist/button.js +1 -1
- package/dist/calendarArrow-44c7e60e.js +5 -0
- package/dist/checkbox-493fdc63.js +73 -0
- package/dist/checkbox.js +1 -1
- package/dist/chevronDownDropdown-0260bb66.js +5 -0
- package/dist/chip.js +72 -0
- package/dist/clear-53660571.js +5 -0
- package/dist/close-4d480ef7.js +5 -0
- package/dist/common/constants/floatingUi.d.ts +8 -0
- package/dist/common/constants/sortable.d.ts +1 -0
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useOnClickOutside.d.ts +5 -1
- package/dist/common/hooks/useSortable.d.ts +3 -0
- package/dist/common/types/commonTypes.d.ts +4 -0
- package/dist/common/types/index.d.ts +2 -0
- package/dist/common/types/sortableTypes.d.ts +84 -0
- package/dist/common/utils/floatingUi.d.ts +3 -0
- package/dist/common/utils/getFileExtension.d.ts +1 -0
- package/dist/common/utils/htmlAttributes.d.ts +20 -0
- package/dist/common/utils/index.d.ts +4 -0
- package/dist/common/utils/isString.d.ts +1 -0
- package/dist/common/utils/testUtils.d.ts +3 -0
- package/dist/common.js +11 -0
- package/dist/components/adaptiveTagList/adaptiveTagList.d.ts +11 -0
- package/dist/components/adaptiveTagList/constants.d.ts +6 -0
- package/dist/components/adaptiveTagList/index.d.ts +2 -0
- package/dist/components/attachedFile/attachedFile.d.ts +14 -0
- package/dist/components/attachedFile/index.d.ts +2 -0
- package/dist/components/autocompletes/common/autocompleteMenu/autocompleteMenu.d.ts +10 -0
- package/dist/components/autocompletes/common/autocompleteMenu/index.d.ts +1 -0
- package/dist/components/autocompletes/common/autocompleteOption/autocompleteOption.d.ts +13 -0
- package/dist/components/autocompletes/common/autocompleteOption/index.d.ts +1 -0
- package/dist/components/autocompletes/common/autocompleteOptions.d.ts +19 -0
- package/dist/components/autocompletes/common/autocompletePrompt/autocompletePrompt.d.ts +7 -0
- package/dist/components/autocompletes/common/autocompletePrompt/index.d.ts +1 -0
- package/dist/components/autocompletes/common/index.d.ts +19 -0
- package/dist/components/autocompletes/constants.d.ts +2 -0
- package/dist/components/autocompletes/index.d.ts +3 -0
- package/dist/components/autocompletes/multipleAutocomplete/index.d.ts +17 -0
- package/dist/components/autocompletes/multipleAutocomplete/multipleAutocomplete.d.ts +53 -0
- package/dist/components/autocompletes/multipleAutocomplete/multipleDownshift.d.ts +25 -0
- package/dist/components/autocompletes/multipleAutocomplete/selectedItems/index.d.ts +1 -0
- package/dist/components/autocompletes/multipleAutocomplete/selectedItems/selectedItems.d.ts +41 -0
- package/dist/components/autocompletes/singleAutocomplete/index.d.ts +1 -0
- package/dist/components/autocompletes/singleAutocomplete/singleAutocomplete.d.ts +42 -0
- package/dist/components/autocompletes/types.d.ts +8 -0
- package/dist/components/autocompletes/utils.d.ts +5 -0
- package/dist/components/{icons/baseIconButton → baseIconButton}/baseIconButton.d.ts +1 -0
- package/dist/components/{icons/baseIconButton → baseIconButton}/index.d.ts +1 -0
- package/dist/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +10 -0
- package/dist/components/breadcrumbs/breadcrumb/index.d.ts +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +3 -0
- package/dist/components/breadcrumbs/breadcrumbsProvider/breadcrumbsProvider.d.ts +13 -0
- package/dist/components/breadcrumbs/breadcrumbsProvider/hooks.d.ts +3 -0
- package/dist/components/breadcrumbs/breadcrumbsProvider/index.d.ts +1 -0
- package/dist/components/breadcrumbs/hiddenBreadcrumbs/hiddenBreadcrumbs.d.ts +6 -0
- package/dist/components/breadcrumbs/hiddenBreadcrumbs/index.d.ts +2 -0
- package/dist/components/breadcrumbs/index.d.ts +5 -0
- package/dist/components/breadcrumbs/tree/index.d.ts +1 -0
- package/dist/components/breadcrumbs/tree/tree.d.ts +7 -0
- package/dist/components/breadcrumbs/types.d.ts +24 -0
- package/dist/components/bubblesLoader/bubblesLoader.d.ts +2 -0
- package/dist/components/bubblesLoader/index.d.ts +1 -0
- package/dist/components/bulkPanel/bulkPanel.d.ts +3 -0
- package/dist/components/bulkPanel/index.d.ts +2 -0
- package/dist/components/bulkPanel/types.d.ts +16 -0
- package/dist/components/button/button.d.ts +5 -4
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/checkbox/checkbox.d.ts +2 -1
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/chip/chip.d.ts +15 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/datePicker/datePicker.d.ts +2 -1
- package/dist/components/datePicker/header/datePickerHeader.d.ts +1 -0
- package/dist/components/datePicker/header/index.d.ts +1 -0
- package/dist/components/datePicker/index.d.ts +3 -1
- package/dist/components/datePicker/utils.d.ts +1 -0
- package/dist/components/dropdown/constants.d.ts +4 -0
- package/dist/components/dropdown/dropdown.d.ts +37 -5
- package/dist/components/dropdown/dropdownOption/dropdownOption.d.ts +1 -0
- package/dist/components/dropdown/dropdownOption/index.d.ts +1 -0
- package/dist/components/dropdown/index.d.ts +2 -0
- package/dist/components/dropdown/types.d.ts +11 -0
- package/dist/components/dropdown/utils.d.ts +6 -2
- package/dist/components/fieldLabel/fieldLabel.d.ts +7 -0
- package/dist/components/fieldLabel/index.d.ts +1 -0
- package/dist/components/fieldNumber/constants.d.ts +1 -0
- package/dist/components/fieldNumber/fieldNumber.d.ts +3 -3
- package/dist/components/fieldNumber/index.d.ts +1 -0
- package/dist/components/fieldText/fieldText.d.ts +12 -4
- package/dist/components/fieldText/index.d.ts +1 -0
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +5 -2
- package/dist/components/fieldTextFlex/index.d.ts +1 -0
- package/dist/components/fileDropArea/attachedFilesList/attachedFilesList.d.ts +21 -0
- package/dist/components/fileDropArea/attachedFilesList/index.d.ts +5 -0
- package/dist/components/fileDropArea/browseButton/browseButton.d.ts +9 -0
- package/dist/components/fileDropArea/browseButton/index.d.ts +4 -0
- package/dist/components/fileDropArea/constants.d.ts +2 -0
- package/dist/components/fileDropArea/dropZone/dropZone.d.ts +10 -0
- package/dist/components/fileDropArea/dropZone/index.d.ts +4 -0
- package/dist/components/fileDropArea/errorMessage/errorMessage.d.ts +5 -0
- package/dist/components/fileDropArea/errorMessage/index.d.ts +4 -0
- package/dist/components/fileDropArea/fileDropArea.d.ts +19 -0
- package/dist/components/fileDropArea/fileDropAreaProvider/fileDropAreaProvider.d.ts +17 -0
- package/dist/components/fileDropArea/fileDropAreaProvider/index.d.ts +1 -0
- package/dist/components/fileDropArea/fileDropAreaProvider/useFileDropAreaContext.d.ts +3 -0
- package/dist/components/fileDropArea/hooks/index.d.ts +1 -0
- package/dist/components/fileDropArea/hooks/useFileDropArea.d.ts +13 -0
- package/dist/components/fileDropArea/hooks/useFileProcessing.d.ts +13 -0
- package/dist/components/fileDropArea/hooks/useOverlayDropArea.d.ts +22 -0
- package/dist/components/fileDropArea/index.d.ts +6 -0
- package/dist/components/fileDropArea/types.d.ts +58 -0
- package/dist/components/fileDropArea/utils/getValidationErrorMessage.d.ts +3 -0
- package/dist/components/fileDropArea/utils/index.d.ts +2 -0
- package/dist/components/fileDropArea/utils/validateFile.d.ts +3 -0
- package/dist/components/filtersButton/filtersButton.d.ts +9 -0
- package/dist/components/filtersButton/index.d.ts +2 -0
- package/dist/components/icons/index.d.ts +64 -9
- package/dist/components/index.d.ts +27 -10
- package/dist/components/issueList/constants.d.ts +5 -0
- package/dist/components/issueList/index.d.ts +2 -0
- package/dist/components/issueList/issueList.d.ts +18 -0
- package/dist/components/maxValueDisplay/index.d.ts +4 -0
- package/dist/components/maxValueDisplay/maxValueDisplay.d.ts +8 -0
- package/dist/components/maxValueDisplay/utils/index.d.ts +1 -0
- package/dist/components/maxValueDisplay/utils/isPositiveInteger.d.ts +1 -0
- package/dist/components/modal/index.d.ts +1 -0
- package/dist/components/modal/modal.d.ts +4 -4
- package/dist/components/modal/modalContent/modalContent.d.ts +3 -2
- package/dist/components/modal/modalFooter/modalFooter.d.ts +3 -1
- package/dist/components/modal/modalHeader/modalHeader.d.ts +1 -0
- package/dist/components/modal/types.d.ts +6 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/itemsCounter/itemCounter.d.ts +5 -2
- package/dist/components/pagination/pageControls/activePage/activePage.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/pageSelector.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageControls.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/bar.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/pageNavigator.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/pageSizeControl.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/sizeSelector.d.ts +1 -0
- package/dist/components/pagination/pagination.d.ts +6 -2
- package/dist/components/popover/index.d.ts +4 -1
- package/dist/components/popover/popover.d.ts +3 -2
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/radio.d.ts +1 -0
- package/dist/components/radio/radioGroup.d.ts +1 -0
- package/dist/components/selection/index.d.ts +5 -0
- package/dist/components/selection/selection.d.ts +12 -0
- package/dist/components/selection/types.d.ts +1 -0
- package/dist/components/sidePanel/index.d.ts +2 -0
- package/dist/components/sidePanel/sidePanel.d.ts +17 -0
- package/dist/components/sortable/dragLayer/dragLayer.d.ts +3 -0
- package/dist/components/sortable/dragLayer/index.d.ts +1 -0
- package/dist/components/sortable/helpers.d.ts +11 -0
- package/dist/components/sortable/index.d.ts +3 -0
- package/dist/components/sortable/sortableItem/index.d.ts +1 -0
- package/dist/components/sortable/sortableItem/sortableItem.d.ts +3 -0
- package/dist/components/sortable/sortableList/index.d.ts +1 -0
- package/dist/components/sortable/sortableList/sortableList.d.ts +5 -0
- package/dist/components/spinLoader/index.d.ts +4 -0
- package/dist/components/spinLoader/spinLoader.d.ts +8 -0
- package/dist/components/systemAlert/index.d.ts +1 -0
- package/dist/components/systemAlert/systemAlert.d.ts +4 -0
- package/dist/components/systemAlert/types.d.ts +22 -0
- package/dist/components/systemMessage/index.d.ts +1 -0
- package/dist/components/systemMessage/systemMessage.d.ts +1 -0
- package/dist/components/table/constants.d.ts +6 -0
- package/dist/components/table/gradientOverlay/gradientOverlay.d.ts +19 -0
- package/dist/components/table/gradientOverlay/index.d.ts +2 -0
- package/dist/components/table/hooks/index.d.ts +8 -0
- package/dist/components/table/hooks/useCheckboxRowSync.d.ts +10 -0
- package/dist/components/table/hooks/useColumnResize.d.ts +18 -0
- package/dist/components/table/hooks/useColumnWidths.d.ts +8 -0
- package/dist/components/table/hooks/useGradientPosition.d.ts +24 -0
- package/dist/components/table/hooks/useTableColumns.d.ts +13 -0
- package/dist/components/table/hooks/useTableExpansion.d.ts +15 -0
- package/dist/components/table/hooks/useTableHover.d.ts +10 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/resizeHandle/index.d.ts +1 -0
- package/dist/components/table/resizeHandle/resizeHandle.d.ts +2 -0
- package/dist/components/table/table.d.ts +1 -0
- package/dist/components/table/types.d.ts +39 -9
- package/dist/components/table/utils.d.ts +10 -1
- package/dist/components/themeProvider/index.d.ts +1 -0
- package/dist/components/themeProvider/themeProvider.d.ts +1 -0
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle/toggle.d.ts +1 -0
- package/dist/components/tooltip/tooltip.d.ts +12 -2
- package/dist/datePicker-60b22314.js +194 -0
- package/dist/datePicker.js +32 -0
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-40fcc3ad.js +642 -0
- package/dist/dropdown.js +13 -3
- package/dist/fieldLabel.js +18 -0
- package/dist/fieldNumber-d1b5a7a1.js +140 -0
- package/dist/fieldNumber.js +5 -2
- package/dist/fieldText-1749da7a.js +167 -0
- package/dist/fieldText.js +7 -2
- package/dist/fieldTextFlex-2f51c173.js +80 -0
- package/dist/fieldTextFlex.js +3 -1
- package/dist/fileDropArea.js +325 -0
- package/dist/filterOutline-819b4b0d.js +6 -0
- package/dist/filtersButton.js +25 -0
- package/dist/floatingUi-41f8c7b5.js +29 -0
- package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
- package/dist/icons.js +87 -0
- package/dist/index-1a874a8b.js +110 -0
- package/dist/index.js +170 -241
- package/dist/isEmpty-ccacb5ff.js +38 -0
- package/dist/issueList.js +125 -0
- package/dist/maxValueDisplay-9be01a75.js +13 -0
- package/dist/maxValueDisplay.js +6 -0
- package/dist/minus-2857540f.js +5 -0
- package/dist/modal.js +180 -14
- package/dist/openEye-950159cb.js +6 -0
- package/dist/pagination-4ded0ec6.js +355 -0
- package/dist/pagination.js +12 -5
- package/dist/plus-199fb2a8.js +5 -0
- package/dist/popover.js +58 -73
- package/dist/prevPage-87faf576.js +6 -0
- package/dist/radio-62546efa.js +76 -0
- package/dist/radio.js +1 -1
- package/dist/resizeColumn-46b5b30f.js +7 -0
- package/dist/selection-9124d029.js +38 -0
- package/dist/selection.js +10 -0
- package/dist/sidePanel.js +88 -0
- package/dist/sortable.js +213 -0
- package/dist/spinLoader-c4a53718.js +11 -0
- package/dist/spinLoader.js +7 -0
- package/dist/style.css +1 -1
- package/dist/success-8fd8bd2c.js +7 -0
- package/dist/systemAlert.js +69 -0
- package/dist/systemMessage-924fdaa6.js +30 -0
- package/dist/systemMessage.js +1 -1
- package/dist/table-0adbac16.js +1059 -0
- package/dist/table.js +10 -3
- package/dist/toggle-304107fa.js +59 -0
- package/dist/toggle.js +1 -1
- package/dist/tooltip.js +90 -56
- package/dist/tree-c3dd3d45.js +6 -0
- package/dist/useOnClickOutside-8f7d68a1.js +25 -0
- package/dist/xls-995781cc.js +11 -0
- package/package.json +49 -16
- package/dist/baseIconButton-7bc53dec.js +0 -25
- package/dist/bubblesLoader-a7e709d4.js +0 -17
- package/dist/button-bb309472.js +0 -62
- package/dist/checkbox-6777be17.js +0 -73
- package/dist/dropdown-bbfa828e.js +0 -213
- package/dist/fieldNumber-46fe79b9.js +0 -127
- package/dist/fieldText-d80b29ba.js +0 -102
- package/dist/fieldTextFlex-5bddf46a.js +0 -67
- package/dist/index-2a2d261a.js +0 -145
- package/dist/pagination-761d3427.js +0 -346
- package/dist/radio-fd49a09c.js +0 -76
- package/dist/systemMessage-1ced6079.js +0 -30
- package/dist/table-83e050dc.js +0 -147
- package/dist/toggle-9284387b.js +0 -67
- package/dist/useOnClickOutside-c332f7d3.js +0 -16
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as o, useCallback as m } from "react";
|
|
3
|
+
import { c as C } from "./bind-06a7ff84.js";
|
|
4
|
+
import { S } from "./close-4d480ef7.js";
|
|
5
|
+
import { a as w, b as E, S as j, d as y, e as I, c as l, f as x } from "./xls-995781cc.js";
|
|
6
|
+
const k = (_) => {
|
|
7
|
+
var c;
|
|
8
|
+
const d = _.split(".");
|
|
9
|
+
return d.length > 1 && ((c = d.pop()) == null ? void 0 : c.toLowerCase()) || "";
|
|
10
|
+
}, L = {
|
|
11
|
+
"attached-file": "_attached-file_1x0ei_16",
|
|
12
|
+
"attached-file__file-name": "_attached-file__file-name_1x0ei_29",
|
|
13
|
+
"attached-file--failed": "_attached-file--failed_1x0ei_32",
|
|
14
|
+
"attached-file__name-text": "_attached-file__name-text_1x0ei_36",
|
|
15
|
+
"attached-file__icon": "_attached-file__icon_1x0ei_39",
|
|
16
|
+
"attached-file--uploading": "_attached-file--uploading_1x0ei_45",
|
|
17
|
+
"attached-file--full-width": "_attached-file--full-width_1x0ei_57",
|
|
18
|
+
"attached-file__file-icon": "_attached-file__file-icon_1x0ei_66",
|
|
19
|
+
"attached-file__info": "_attached-file__info_1x0ei_78",
|
|
20
|
+
"attached-file__download-icon": "_attached-file__download-icon_1x0ei_108",
|
|
21
|
+
"attached-file__file-details": "_attached-file__file-details_1x0ei_117",
|
|
22
|
+
"attached-file__error-message": "_attached-file__error-message_1x0ei_122",
|
|
23
|
+
"attached-file__upload-progress": "_attached-file__upload-progress_1x0ei_127",
|
|
24
|
+
"attached-file__upload-progress-bar": "_attached-file__upload-progress-bar_1x0ei_137",
|
|
25
|
+
"attached-file__remove-button": "_attached-file__remove-button_1x0ei_141",
|
|
26
|
+
"attached-file__remove-button--disabled": "_attached-file__remove-button--disabled_1x0ei_163"
|
|
27
|
+
}, e = C.bind(L), A = {
|
|
28
|
+
csv: j,
|
|
29
|
+
jar: y,
|
|
30
|
+
pdf: I,
|
|
31
|
+
jpg: l,
|
|
32
|
+
jpeg: l,
|
|
33
|
+
png: l,
|
|
34
|
+
gif: l,
|
|
35
|
+
svg: l,
|
|
36
|
+
webp: l,
|
|
37
|
+
xls: x,
|
|
38
|
+
xlsx: x
|
|
39
|
+
}, M = (_) => A[_.toLowerCase()] ?? E, X = ({
|
|
40
|
+
fileName: _,
|
|
41
|
+
size: d,
|
|
42
|
+
uploadingProgress: c = 0,
|
|
43
|
+
isUploadFailed: i = !1,
|
|
44
|
+
uploadFailedMessage: p,
|
|
45
|
+
isUploading: a = !1,
|
|
46
|
+
isFullWidth: u = !1,
|
|
47
|
+
onDownload: f,
|
|
48
|
+
onRemove: s
|
|
49
|
+
}) => {
|
|
50
|
+
const r = o(() => k(_), [_]), g = r.toUpperCase(), b = o(() => M(r), [r]), v = m(
|
|
51
|
+
(n) => {
|
|
52
|
+
n.stopPropagation(), a || s == null || s();
|
|
53
|
+
},
|
|
54
|
+
[a, s]
|
|
55
|
+
), N = m(
|
|
56
|
+
(n) => {
|
|
57
|
+
n.stopPropagation(), !i && !a && f && f();
|
|
58
|
+
},
|
|
59
|
+
[i, a, f]
|
|
60
|
+
);
|
|
61
|
+
return /* @__PURE__ */ h(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
className: e("attached-file", {
|
|
65
|
+
"attached-file--failed": i,
|
|
66
|
+
"attached-file--uploading": a,
|
|
67
|
+
"attached-file--full-width": u
|
|
68
|
+
}),
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ t("div", { className: e("attached-file__icon"), children: /* @__PURE__ */ t("div", { className: e("attached-file__file-icon"), children: /* @__PURE__ */ t(b, {}) }) }),
|
|
71
|
+
/* @__PURE__ */ h("div", { className: e("attached-file__info"), children: [
|
|
72
|
+
f ? /* @__PURE__ */ h("button", { type: "button", className: e("attached-file__file-name"), onClick: N, children: [
|
|
73
|
+
/* @__PURE__ */ t("span", { className: e("attached-file__name-text"), children: _ }),
|
|
74
|
+
!a && !i && /* @__PURE__ */ t("span", { className: e("attached-file__download-icon"), children: /* @__PURE__ */ t(w, {}) })
|
|
75
|
+
] }) : /* @__PURE__ */ t("div", { className: e("attached-file__file-name"), children: /* @__PURE__ */ t("span", { className: e("attached-file__name-text"), children: _ }) }),
|
|
76
|
+
!i && /* @__PURE__ */ h("div", { className: e("attached-file__file-details"), children: [
|
|
77
|
+
g,
|
|
78
|
+
", ",
|
|
79
|
+
d,
|
|
80
|
+
" MB"
|
|
81
|
+
] }),
|
|
82
|
+
i && /* @__PURE__ */ t("div", { className: e("attached-file__error-message"), children: p })
|
|
83
|
+
] }),
|
|
84
|
+
s && /* @__PURE__ */ t(
|
|
85
|
+
"button",
|
|
86
|
+
{
|
|
87
|
+
type: "button",
|
|
88
|
+
className: e("attached-file__remove-button", {
|
|
89
|
+
"attached-file__remove-button--disabled": a
|
|
90
|
+
}),
|
|
91
|
+
disabled: a,
|
|
92
|
+
onClick: v,
|
|
93
|
+
children: /* @__PURE__ */ t(S, {})
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
a && c > 0 && /* @__PURE__ */ t("div", { className: e("attached-file__upload-progress"), children: /* @__PURE__ */ t(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
className: e("attached-file__upload-progress-bar"),
|
|
100
|
+
style: { width: `${c}%` }
|
|
101
|
+
}
|
|
102
|
+
) })
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
};
|
|
107
|
+
export {
|
|
108
|
+
X as A,
|
|
109
|
+
k as g
|
|
110
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,247 +1,176 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import "./
|
|
1
|
+
import { AdaptiveTagList as b } from "./adaptiveTagList.js";
|
|
2
|
+
import { A as B } from "./index-1a874a8b.js";
|
|
3
|
+
import { B as h } from "./baseIconButton-251479f7.js";
|
|
4
|
+
import { B as v } from "./breadcrumbs-8e5ca8d7.js";
|
|
5
|
+
import { B as L } from "./bubblesLoader-f3ffa240.js";
|
|
6
|
+
import { BulkPanel as k } from "./bulkPanel.js";
|
|
7
|
+
import { B as E } from "./button-97d9e587.js";
|
|
8
|
+
import { C as U } from "./checkbox-493fdc63.js";
|
|
9
|
+
import { Chip as H } from "./chip.js";
|
|
10
|
+
import { D as N } from "./datePicker-60b22314.js";
|
|
11
|
+
import "react-datepicker";
|
|
12
|
+
import { D as W } from "./dropdown-40fcc3ad.js";
|
|
13
|
+
import { FieldLabel as j } from "./fieldLabel.js";
|
|
14
|
+
import { F as K } from "./fieldNumber-d1b5a7a1.js";
|
|
15
|
+
import { F as V } from "./fieldText-1749da7a.js";
|
|
16
|
+
import { F as Z } from "./fieldTextFlex-2f51c173.js";
|
|
17
|
+
import { FileDropArea as $ } from "./fileDropArea.js";
|
|
18
|
+
import { FiltersButton as ro } from "./filtersButton.js";
|
|
19
|
+
import { IssueList as to } from "./issueList.js";
|
|
20
|
+
import { Modal as no } from "./modal.js";
|
|
21
|
+
import { MultipleAutocomplete as co, SingleAutocomplete as mo } from "./autocompletes.js";
|
|
22
|
+
import { P as so } from "./pagination-4ded0ec6.js";
|
|
23
|
+
import { Popover as lo } from "./popover.js";
|
|
24
|
+
import { R as fo } from "./radio-62546efa.js";
|
|
25
|
+
import { S as So } from "./selection-9124d029.js";
|
|
26
|
+
import { S as Co } from "./spinLoader-c4a53718.js";
|
|
27
|
+
import { SystemAlert as Fo } from "./systemAlert.js";
|
|
28
|
+
import { S as bo } from "./systemMessage-924fdaa6.js";
|
|
29
|
+
import { DragLayer as Bo, SortableItem as To, SortableList as ho } from "./sortable.js";
|
|
30
|
+
import { T as vo } from "./table-0adbac16.js";
|
|
31
|
+
import { T as Lo } from "./themeProvider-46c2be7b.js";
|
|
32
|
+
import { T as ko } from "./toggle-304107fa.js";
|
|
33
|
+
import { Tooltip as Eo } from "./tooltip.js";
|
|
34
|
+
import { SidePanel as Uo } from "./sidePanel.js";
|
|
35
|
+
import { AddCsvIcon as Ho, AddImageIcon as Jo, AddJarIcon as No, BreadcrumbsTreeIcon as Go, CalendarIcon as Wo, CheckmarkIcon as Xo, ChevronRightBreadcrumbsIcon as jo, ConfigurationIcon as qo, CopyIcon as Ko, CoverageFullIcon as Qo, CoveragePartialIcon as Vo, CoveredManuallyIcon as Yo, DeleteIcon as Zo, DragAndDropIcon as _o, DragNDropIcon as $o, DurationIcon as or, EditIcon as rr, ExportIcon as er, FlagIcon as tr, GroupByIcon as ar, HideIcon as nr, LaunchTypeIcon as pr, MaximizeIcon as cr, MoveToFolderIcon as mr, PinFilledIcon as ir, PinOutlineIcon as sr, PriorityBlockerIcon as Ir, PriorityCriticalIcon as lr, PriorityHighIcon as xr, PriorityLowIcon as fr, PriorityMediumIcon as dr, PriorityUnspecifiedIcon as ur, RefreshIcon as Sr, RerunIcon as Pr, RunManualIcon as Cr, SearchIcon as gr, SortIcon as Fr, StatusSuccessIcon as Dr, TestPlanIcon as br, UserIcon as yr, WarningIcon as Br } from "./icons.js";
|
|
36
|
+
import { S as hr, a as Ar, b as vr } from "./resizeColumn-46b5b30f.js";
|
|
37
|
+
import { S as Lr } from "./calendarArrow-44c7e60e.js";
|
|
38
|
+
import { S as kr } from "./chevronDownDropdown-0260bb66.js";
|
|
39
|
+
import { S as Er } from "./clear-53660571.js";
|
|
40
|
+
import { S as Ur, a as zr } from "./openEye-950159cb.js";
|
|
41
|
+
import { S as Jr } from "./close-4d480ef7.js";
|
|
42
|
+
import { S as Gr, a as Wr, b as Xr, c as jr, d as qr, e as Kr, f as Qr } from "./xls-995781cc.js";
|
|
43
|
+
import { S as Yr } from "./dropdown-0260bb66.js";
|
|
44
|
+
import { S as _r, a as $r, b as oe } from "./success-8fd8bd2c.js";
|
|
45
|
+
import { S as ee, a as te } from "./filterOutline-819b4b0d.js";
|
|
46
|
+
import { S as ne, a as pe } from "./tree-c3dd3d45.js";
|
|
47
|
+
import { S as me } from "./minus-2857540f.js";
|
|
48
|
+
import { S as se } from "./plus-199fb2a8.js";
|
|
49
|
+
import { S as le, a as xe } from "./prevPage-87faf576.js";
|
|
50
|
+
import "react/jsx-runtime";
|
|
51
|
+
import "react";
|
|
52
|
+
import "./bind-06a7ff84.js";
|
|
53
|
+
import "./isEmpty-ccacb5ff.js";
|
|
54
|
+
import "react-dom";
|
|
26
55
|
import "rc-scrollbars";
|
|
27
|
-
import "
|
|
28
|
-
import "
|
|
56
|
+
import "./useOnClickOutside-8f7d68a1.js";
|
|
57
|
+
import "react-dnd";
|
|
58
|
+
import "react-dnd-html5-backend";
|
|
59
|
+
import "./keyCodes-f63c0e11.js";
|
|
60
|
+
import "react-datepicker/dist/es/index.js";
|
|
29
61
|
import "@floating-ui/react-dom";
|
|
30
62
|
import "downshift";
|
|
63
|
+
import "./maxValueDisplay-9be01a75.js";
|
|
64
|
+
import "react-dropzone";
|
|
65
|
+
import "framer-motion";
|
|
31
66
|
import "@floating-ui/react";
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, G = "_header_a3cjx_1", O = "_disabled_a3cjx_25", W = "_dropdown_a3cjx_8", q = {
|
|
36
|
-
header: G,
|
|
37
|
-
"dropdowns-wrapper": "_dropdowns-wrapper_a3cjx_8",
|
|
38
|
-
"button-prev": "_button-prev_a3cjx_13",
|
|
39
|
-
"button-next": "_button-next_a3cjx_14",
|
|
40
|
-
disabled: O,
|
|
41
|
-
dropdown: W,
|
|
42
|
-
"month-dropdown": "_month-dropdown_a3cjx_44",
|
|
43
|
-
"toggle-button": "_toggle-button_a3cjx_47"
|
|
44
|
-
}, l = P.bind(q), z = ({
|
|
45
|
-
date: t = /* @__PURE__ */ new Date(),
|
|
46
|
-
changeYear: c = () => {
|
|
47
|
-
},
|
|
48
|
-
changeMonth: i = () => {
|
|
49
|
-
},
|
|
50
|
-
decreaseMonth: g = () => {
|
|
51
|
-
},
|
|
52
|
-
increaseMonth: o = () => {
|
|
53
|
-
},
|
|
54
|
-
prevMonthButtonDisabled: r = !1,
|
|
55
|
-
nextMonthButtonDisabled: w = !1,
|
|
56
|
-
headerNodes: f = null,
|
|
57
|
-
customClassName: x = "",
|
|
58
|
-
yearsOptions: m = [],
|
|
59
|
-
locale: v
|
|
60
|
-
}) => {
|
|
61
|
-
const p = t.getFullYear(), b = t.getMonth(), _ = F(() => {
|
|
62
|
-
const a = Array(12).keys(), s = new Intl.DateTimeFormat(v, {
|
|
63
|
-
month: "long"
|
|
64
|
-
}), d = (h) => s.format(new Date(p, h));
|
|
65
|
-
return Array.from(a, d).reduce((h, A, E) => h.concat({
|
|
66
|
-
value: E,
|
|
67
|
-
label: A
|
|
68
|
-
}), []);
|
|
69
|
-
}, []), L = F(() => (m.length > 0 ? m : $(p)).reduce(
|
|
70
|
-
(s, d) => s.concat({ value: d, label: `${d}` }),
|
|
71
|
-
[]
|
|
72
|
-
), [m]), B = (a) => {
|
|
73
|
-
i(a);
|
|
74
|
-
}, M = (a) => {
|
|
75
|
-
c(a);
|
|
76
|
-
};
|
|
77
|
-
return /* @__PURE__ */ y(D, { children: [
|
|
78
|
-
f && /* @__PURE__ */ n("div", { className: l(x), children: f }),
|
|
79
|
-
/* @__PURE__ */ y("div", { className: l("header"), children: [
|
|
80
|
-
/* @__PURE__ */ n(
|
|
81
|
-
"button",
|
|
82
|
-
{
|
|
83
|
-
"aria-label": "Previous Months",
|
|
84
|
-
disabled: r,
|
|
85
|
-
onClick: g,
|
|
86
|
-
className: l("button-prev", { disabled: r }),
|
|
87
|
-
children: /* @__PURE__ */ n(T, {})
|
|
88
|
-
}
|
|
89
|
-
),
|
|
90
|
-
/* @__PURE__ */ y("div", { className: l("dropdowns-wrapper"), children: [
|
|
91
|
-
/* @__PURE__ */ n(
|
|
92
|
-
I,
|
|
93
|
-
{
|
|
94
|
-
options: _,
|
|
95
|
-
value: b,
|
|
96
|
-
onChange: B,
|
|
97
|
-
transparentBackground: !0,
|
|
98
|
-
className: l("dropdown", "month-dropdown"),
|
|
99
|
-
toggleButtonClassName: l("toggle-button")
|
|
100
|
-
}
|
|
101
|
-
),
|
|
102
|
-
/* @__PURE__ */ n(
|
|
103
|
-
I,
|
|
104
|
-
{
|
|
105
|
-
options: L,
|
|
106
|
-
value: p,
|
|
107
|
-
onChange: M,
|
|
108
|
-
transparentBackground: !0,
|
|
109
|
-
className: l("dropdown"),
|
|
110
|
-
toggleButtonClassName: l("toggle-button")
|
|
111
|
-
}
|
|
112
|
-
)
|
|
113
|
-
] }),
|
|
114
|
-
/* @__PURE__ */ n(
|
|
115
|
-
"button",
|
|
116
|
-
{
|
|
117
|
-
"aria-label": "Next Months",
|
|
118
|
-
disabled: w,
|
|
119
|
-
onClick: o,
|
|
120
|
-
className: l("button-next", { disabled: w }),
|
|
121
|
-
children: /* @__PURE__ */ n(T, {})
|
|
122
|
-
}
|
|
123
|
-
)
|
|
124
|
-
] })
|
|
125
|
-
] });
|
|
126
|
-
}, J = "_calendar_1jr94_5", K = "_date_1jr94_90", Q = "_disabled_1jr94_202", X = "_popper_1jr94_210", e1 = "_input_1jr94_214", t1 = {
|
|
127
|
-
calendar: J,
|
|
128
|
-
"current-date": "_current-date_1jr94_89",
|
|
129
|
-
date: K,
|
|
130
|
-
"selected-range": "_selected-range_1jr94_119",
|
|
131
|
-
"end-date": "_end-date_1jr94_119",
|
|
132
|
-
disabled: Q,
|
|
133
|
-
popper: X,
|
|
134
|
-
input: e1
|
|
135
|
-
}, u = P.bind(t1), o1 = "en", R = "MM-dd-yyyy", f1 = ({
|
|
136
|
-
onChange: t = () => {
|
|
137
|
-
},
|
|
138
|
-
disabled: c = !1,
|
|
139
|
-
onBlur: i = () => {
|
|
140
|
-
},
|
|
141
|
-
onFocus: g = () => {
|
|
142
|
-
},
|
|
143
|
-
endDate: o = void 0,
|
|
144
|
-
startDate: r = void 0,
|
|
145
|
-
headerNodes: w = null,
|
|
146
|
-
customClassName: f = "",
|
|
147
|
-
customTimeInput: x = void 0,
|
|
148
|
-
shouldCloseOnSelect: m = !0,
|
|
149
|
-
popperClassName: v = "",
|
|
150
|
-
calendarClassName: p = "",
|
|
151
|
-
fixedHeight: b = !1,
|
|
152
|
-
language: _ = o1,
|
|
153
|
-
yearsOptions: L = [],
|
|
154
|
-
placeholder: B = R.toUpperCase(),
|
|
155
|
-
dateFormat: M = R,
|
|
156
|
-
selects: a = "start",
|
|
157
|
-
value: s = null
|
|
158
|
-
}) => {
|
|
159
|
-
const d = U(null), S = r == null ? void 0 : r.toDateString(), h = o == null ? void 0 : o.toDateString(), A = o && r && o > r, E = (C) => {
|
|
160
|
-
const N = C.toDateString(), H = N === S, j = A && N === h, k = r && o && C > r && C < o;
|
|
161
|
-
return u("date", {
|
|
162
|
-
"current-date": H,
|
|
163
|
-
"selected-range": k && !j,
|
|
164
|
-
"end-date": j && A,
|
|
165
|
-
disabled: c
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
return /* @__PURE__ */ n(
|
|
169
|
-
V,
|
|
170
|
-
{
|
|
171
|
-
customInput: /* @__PURE__ */ n(
|
|
172
|
-
Z,
|
|
173
|
-
{
|
|
174
|
-
className: u("input"),
|
|
175
|
-
defaultWidth: !1,
|
|
176
|
-
endIcon: /* @__PURE__ */ n(Y, {}),
|
|
177
|
-
ref: d
|
|
178
|
-
}
|
|
179
|
-
),
|
|
180
|
-
placeholderText: B,
|
|
181
|
-
selected: s,
|
|
182
|
-
startDate: r,
|
|
183
|
-
endDate: o,
|
|
184
|
-
minDate: a === "end" ? r : void 0,
|
|
185
|
-
disabled: c,
|
|
186
|
-
shouldCloseOnSelect: m,
|
|
187
|
-
fixedHeight: b,
|
|
188
|
-
locale: _,
|
|
189
|
-
showPopperArrow: !1,
|
|
190
|
-
dayClassName: E,
|
|
191
|
-
calendarClassName: u(p, "calendar"),
|
|
192
|
-
renderCustomHeader: (C) => /* @__PURE__ */ n(
|
|
193
|
-
z,
|
|
194
|
-
{
|
|
195
|
-
...C,
|
|
196
|
-
headerNodes: w,
|
|
197
|
-
customClassName: f,
|
|
198
|
-
yearsOptions: L,
|
|
199
|
-
locale: _
|
|
200
|
-
}
|
|
201
|
-
),
|
|
202
|
-
onChange: t,
|
|
203
|
-
onBlur: i,
|
|
204
|
-
onFocus: g,
|
|
205
|
-
customTimeInput: x,
|
|
206
|
-
showTimeInput: !!x,
|
|
207
|
-
popperClassName: u(v, "popper"),
|
|
208
|
-
dateFormat: M,
|
|
209
|
-
selectsStart: a === "start",
|
|
210
|
-
selectsEnd: a === "end",
|
|
211
|
-
className: u("datepicker")
|
|
212
|
-
}
|
|
213
|
-
);
|
|
214
|
-
};
|
|
67
|
+
import "./floatingUi-41f8c7b5.js";
|
|
68
|
+
import "./common.js";
|
|
69
|
+
import "react-resizable";
|
|
215
70
|
export {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
71
|
+
b as AdaptiveTagList,
|
|
72
|
+
Ho as AddCsvIcon,
|
|
73
|
+
Jo as AddImageIcon,
|
|
74
|
+
No as AddJarIcon,
|
|
75
|
+
hr as ArrowDownIcon,
|
|
76
|
+
Ar as ArrowUpIcon,
|
|
77
|
+
B as AttachedFile,
|
|
78
|
+
h as BaseIconButton,
|
|
79
|
+
v as Breadcrumbs,
|
|
80
|
+
Go as BreadcrumbsTreeIcon,
|
|
81
|
+
L as BubblesLoader,
|
|
82
|
+
k as BulkPanel,
|
|
83
|
+
E as Button,
|
|
84
|
+
Lr as CalendarArrowIcon,
|
|
85
|
+
Wo as CalendarIcon,
|
|
86
|
+
U as Checkbox,
|
|
87
|
+
Xo as CheckmarkIcon,
|
|
88
|
+
kr as ChevronDownDropdownIcon,
|
|
89
|
+
jo as ChevronRightBreadcrumbsIcon,
|
|
90
|
+
H as Chip,
|
|
91
|
+
Er as ClearIcon,
|
|
92
|
+
Ur as CloseEyeIcon,
|
|
93
|
+
Jr as CloseIcon,
|
|
94
|
+
qo as ConfigurationIcon,
|
|
95
|
+
Ko as CopyIcon,
|
|
96
|
+
Qo as CoverageFullIcon,
|
|
97
|
+
Vo as CoveragePartialIcon,
|
|
98
|
+
Yo as CoveredManuallyIcon,
|
|
99
|
+
Gr as CsvIcon,
|
|
100
|
+
N as DatePicker,
|
|
101
|
+
Zo as DeleteIcon,
|
|
102
|
+
_o as DragAndDropIcon,
|
|
103
|
+
Bo as DragLayer,
|
|
104
|
+
$o as DragNDropIcon,
|
|
105
|
+
W as Dropdown,
|
|
106
|
+
Yr as DropdownIcon,
|
|
107
|
+
or as DurationIcon,
|
|
108
|
+
rr as EditIcon,
|
|
109
|
+
_r as ErrorIcon,
|
|
110
|
+
er as ExportIcon,
|
|
111
|
+
Wr as ExternalLinkIcon,
|
|
112
|
+
j as FieldLabel,
|
|
113
|
+
K as FieldNumber,
|
|
114
|
+
V as FieldText,
|
|
115
|
+
Z as FieldTextFlex,
|
|
116
|
+
$ as FileDropArea,
|
|
117
|
+
Xr as FileOtherIcon,
|
|
118
|
+
ee as FilterFilledIcon,
|
|
119
|
+
te as FilterOutlineIcon,
|
|
120
|
+
ro as FiltersButton,
|
|
121
|
+
tr as FlagIcon,
|
|
122
|
+
ar as GroupByIcon,
|
|
123
|
+
nr as HideIcon,
|
|
124
|
+
jr as ImageIcon,
|
|
125
|
+
$r as InfoIcon,
|
|
126
|
+
to as IssueList,
|
|
127
|
+
qr as JarIcon,
|
|
128
|
+
pr as LaunchTypeIcon,
|
|
129
|
+
cr as MaximizeIcon,
|
|
130
|
+
ne as MeatballMenuIcon,
|
|
131
|
+
me as MinusIcon,
|
|
132
|
+
no as Modal,
|
|
133
|
+
mr as MoveToFolderIcon,
|
|
134
|
+
co as MultipleAutocomplete,
|
|
135
|
+
zr as OpenEyeIcon,
|
|
136
|
+
so as Pagination,
|
|
137
|
+
Kr as PdfIcon,
|
|
138
|
+
ir as PinFilledIcon,
|
|
139
|
+
sr as PinOutlineIcon,
|
|
140
|
+
se as PlusIcon,
|
|
141
|
+
lo as Popover,
|
|
142
|
+
le as PrevChapterIcon,
|
|
143
|
+
xe as PrevPageIcon,
|
|
144
|
+
Ir as PriorityBlockerIcon,
|
|
145
|
+
lr as PriorityCriticalIcon,
|
|
146
|
+
xr as PriorityHighIcon,
|
|
147
|
+
fr as PriorityLowIcon,
|
|
148
|
+
dr as PriorityMediumIcon,
|
|
149
|
+
ur as PriorityUnspecifiedIcon,
|
|
150
|
+
fo as Radio,
|
|
151
|
+
Sr as RefreshIcon,
|
|
152
|
+
Pr as RerunIcon,
|
|
153
|
+
vr as ResizeColumnIcon,
|
|
154
|
+
Cr as RunManualIcon,
|
|
155
|
+
gr as SearchIcon,
|
|
156
|
+
So as Selection,
|
|
157
|
+
Uo as SidePanel,
|
|
158
|
+
mo as SingleAutocomplete,
|
|
159
|
+
Fr as SortIcon,
|
|
160
|
+
To as SortableItem,
|
|
161
|
+
ho as SortableList,
|
|
162
|
+
Co as SpinLoader,
|
|
163
|
+
Dr as StatusSuccessIcon,
|
|
164
|
+
oe as SuccessIcon,
|
|
165
|
+
Fo as SystemAlert,
|
|
166
|
+
bo as SystemMessage,
|
|
167
|
+
vo as Table,
|
|
168
|
+
br as TestPlanIcon,
|
|
169
|
+
Lo as ThemeProvider,
|
|
170
|
+
ko as Toggle,
|
|
171
|
+
Eo as Tooltip,
|
|
172
|
+
pe as TreeIcon,
|
|
173
|
+
yr as UserIcon,
|
|
174
|
+
Br as WarningIcon,
|
|
175
|
+
Qr as XlsIcon
|
|
247
176
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
function e(t) {
|
|
2
|
+
return Number.isSafeInteger(t) && t >= 0;
|
|
3
|
+
}
|
|
4
|
+
function o(t) {
|
|
5
|
+
return t != null && typeof t != "function" && e(t.length);
|
|
6
|
+
}
|
|
7
|
+
function i(t) {
|
|
8
|
+
return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
|
|
9
|
+
}
|
|
10
|
+
function f(t) {
|
|
11
|
+
return ArrayBuffer.isView(t) && !(t instanceof DataView);
|
|
12
|
+
}
|
|
13
|
+
function c(t) {
|
|
14
|
+
return t !== null && typeof t == "object" && i(t) === "[object Arguments]";
|
|
15
|
+
}
|
|
16
|
+
function s(t) {
|
|
17
|
+
const n = t == null ? void 0 : t.constructor, r = typeof n == "function" ? n.prototype : Object.prototype;
|
|
18
|
+
return t === r;
|
|
19
|
+
}
|
|
20
|
+
function p(t) {
|
|
21
|
+
return f(t);
|
|
22
|
+
}
|
|
23
|
+
function y(t) {
|
|
24
|
+
if (t == null)
|
|
25
|
+
return !0;
|
|
26
|
+
if (o(t))
|
|
27
|
+
return typeof t.splice != "function" && typeof t != "string" && (typeof Buffer > "u" || !Buffer.isBuffer(t)) && !p(t) && !c(t) ? !1 : t.length === 0;
|
|
28
|
+
if (typeof t == "object") {
|
|
29
|
+
if (t instanceof Map || t instanceof Set)
|
|
30
|
+
return t.size === 0;
|
|
31
|
+
const n = Object.keys(t);
|
|
32
|
+
return s(t) ? n.filter((r) => r !== "constructor").length === 0 : n.length === 0;
|
|
33
|
+
}
|
|
34
|
+
return !0;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
y as i
|
|
38
|
+
};
|