@wavelengthusaf/components 4.1.3 → 4.2.1
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 +5 -0
- package/dist/cjs/index.cjs +90 -6
- package/dist/cjs/index.d.cts +46 -50
- package/dist/esm/index.d.ts +46 -50
- package/dist/esm/index.js +427 -343
- package/package.json +7 -2
package/README.md
CHANGED
package/dist/cjs/index.cjs
CHANGED
|
@@ -4848,6 +4848,25 @@ function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor
|
|
|
4848
4848
|
}
|
|
4849
4849
|
WavelengthSideBar.displayName = "WavelengthSideBar";
|
|
4850
4850
|
|
|
4851
|
+
// src/components/PageComponents/WavelengthNavBar.tsx
|
|
4852
|
+
|
|
4853
|
+
|
|
4854
|
+
|
|
4855
|
+
var WavelengthNavBar = ({ items, bgColor, txtColor, hoverColor, height: height2, padding: padding2, children, ...rest }) => {
|
|
4856
|
+
const ref = _react.useRef.call(void 0, null);
|
|
4857
|
+
_react.useEffect.call(void 0, () => {
|
|
4858
|
+
const el = ref.current;
|
|
4859
|
+
if (!el) return;
|
|
4860
|
+
if (items) el.setAttribute("items", JSON.stringify(items));
|
|
4861
|
+
if (bgColor) el.setAttribute("bg-color", bgColor);
|
|
4862
|
+
if (txtColor) el.setAttribute("txt-color", txtColor);
|
|
4863
|
+
if (hoverColor) el.setAttribute("hover-color", hoverColor);
|
|
4864
|
+
if (height2) el.setAttribute("height", height2.toString());
|
|
4865
|
+
if (padding2) el.setAttribute("padding", padding2);
|
|
4866
|
+
}, [items, bgColor, txtColor, hoverColor, height2, padding2]);
|
|
4867
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-nav-bar", { ref, ...rest, children });
|
|
4868
|
+
};
|
|
4869
|
+
|
|
4851
4870
|
// src/components/PageComponents/WavelengthSpinningLogo.tsx
|
|
4852
4871
|
|
|
4853
4872
|
function WavelengthSpinningOuterCircle({ size, id, clip, color: color2, gradient, radius }) {
|
|
@@ -7549,6 +7568,68 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7549
7568
|
};
|
|
7550
7569
|
ChildDataTable.displayName = "ChildDataTable";
|
|
7551
7570
|
|
|
7571
|
+
// src/components/DataTable/SubRowTable/ChildDataTable.tsx
|
|
7572
|
+
|
|
7573
|
+
|
|
7574
|
+
var _client = require('react-dom/client');
|
|
7575
|
+
|
|
7576
|
+
var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon, ...rest }) => {
|
|
7577
|
+
const tableRef = _react.useRef.call(void 0, null);
|
|
7578
|
+
const reactDropdownRoots = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
|
|
7579
|
+
_react.useEffect.call(void 0, () => {
|
|
7580
|
+
const customChildDataTableElement = tableRef.current;
|
|
7581
|
+
if (!customChildDataTableElement) return;
|
|
7582
|
+
if (columns !== void 0) customChildDataTableElement.setColumns = columns;
|
|
7583
|
+
if (data !== void 0) customChildDataTableElement.setData = data;
|
|
7584
|
+
if (dropdownArrowLocation !== void 0) customChildDataTableElement.setDropdownArrowLocation = dropdownArrowLocation;
|
|
7585
|
+
if (sortIcon !== void 0) customChildDataTableElement.setSortIcon = sortIcon;
|
|
7586
|
+
if (dropdownButtonIcon !== void 0) customChildDataTableElement.setDropdownButtonIcon = dropdownButtonIcon;
|
|
7587
|
+
}, [columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon]);
|
|
7588
|
+
_react.useEffect.call(void 0, () => {
|
|
7589
|
+
const el = tableRef.current;
|
|
7590
|
+
if (!el) return;
|
|
7591
|
+
const handleReactDropdown = (event) => {
|
|
7592
|
+
console.log("handling react dropdown");
|
|
7593
|
+
const customEvent = event;
|
|
7594
|
+
event.stopPropagation();
|
|
7595
|
+
const { container, itemId } = customEvent.detail;
|
|
7596
|
+
let root = reactDropdownRoots.current.get(container);
|
|
7597
|
+
if (!root) {
|
|
7598
|
+
root = _client.createRoot.call(void 0, container);
|
|
7599
|
+
reactDropdownRoots.current.set(container, root);
|
|
7600
|
+
}
|
|
7601
|
+
const item = _optionalChain([data, 'optionalAccess', _75 => _75.find, 'call', _76 => _76((item2) => String(item2.id) === String(itemId))]);
|
|
7602
|
+
if (item && item.dropdown && root) {
|
|
7603
|
+
root.render(item.dropdown);
|
|
7604
|
+
}
|
|
7605
|
+
const dropdown = container.querySelector("#dropdown");
|
|
7606
|
+
if (dropdown) {
|
|
7607
|
+
dropdown.hidden = false;
|
|
7608
|
+
}
|
|
7609
|
+
};
|
|
7610
|
+
const handleCleanupDropdown = (event) => {
|
|
7611
|
+
event.stopPropagation();
|
|
7612
|
+
const { container } = event.detail;
|
|
7613
|
+
const root = reactDropdownRoots.current.get(container);
|
|
7614
|
+
const dropdown = container.querySelector("#dropdown");
|
|
7615
|
+
if (root && dropdown) {
|
|
7616
|
+
dropdown.hidden = true;
|
|
7617
|
+
}
|
|
7618
|
+
};
|
|
7619
|
+
el.addEventListener("getReactDropdown", handleReactDropdown);
|
|
7620
|
+
el.addEventListener("cleanupDropdown", handleCleanupDropdown);
|
|
7621
|
+
return () => {
|
|
7622
|
+
el.removeEventListener("getReactDropdown", handleReactDropdown);
|
|
7623
|
+
el.removeEventListener("cleanupDropdown", handleCleanupDropdown);
|
|
7624
|
+
};
|
|
7625
|
+
}, [data]);
|
|
7626
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-child-data-table", { ref: tableRef, ...rest });
|
|
7627
|
+
};
|
|
7628
|
+
ChildDataTable2.displayName = "ChildDataTable";
|
|
7629
|
+
|
|
7630
|
+
// src/index.ts
|
|
7631
|
+
|
|
7632
|
+
|
|
7552
7633
|
// src/components/DataTable/NestedDataTable/NestedDataTable.tsx
|
|
7553
7634
|
|
|
7554
7635
|
|
|
@@ -7644,9 +7725,9 @@ var NestedDataTable = ({ data, columns }) => {
|
|
|
7644
7725
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
7645
7726
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: column.title }, `SubHeadCell-${index}`);
|
|
7646
7727
|
});
|
|
7647
|
-
const subDataRows = !_optionalChain([data, 'optionalAccess',
|
|
7728
|
+
const subDataRows = !_optionalChain([data, 'optionalAccess', _77 => _77.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
|
|
7648
7729
|
const columnKey = trimBeforePeriod(column.key);
|
|
7649
|
-
const value = _optionalChain([item, 'access',
|
|
7730
|
+
const value = _optionalChain([item, 'access', _78 => _78.Details, 'optionalAccess', _79 => _79[columnKey]]);
|
|
7650
7731
|
console.log("value: ", value);
|
|
7651
7732
|
if (value !== void 0) {
|
|
7652
7733
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
@@ -7656,7 +7737,7 @@ var NestedDataTable = ({ data, columns }) => {
|
|
|
7656
7737
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: SubDataHeaders }) }),
|
|
7657
7738
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: subDataRows })
|
|
7658
7739
|
] });
|
|
7659
|
-
const rows = !_optionalChain([data, 'optionalAccess',
|
|
7740
|
+
const rows = !_optionalChain([data, 'optionalAccess', _80 => _80.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : _optionalChain([data, 'optionalAccess', _81 => _81.map, 'call', _82 => _82((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
7660
7741
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PrimaryTrRows, { $index: index, children: [
|
|
7661
7742
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: "\u2227" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: "\u2228" }) }),
|
|
7662
7743
|
HeadColumns.map((column, index2) => {
|
|
@@ -8107,10 +8188,11 @@ WavelengthDatePicker.displayName = "WavelengthDatePicker";
|
|
|
8107
8188
|
// src/components/samples/SampleComponent.tsx
|
|
8108
8189
|
|
|
8109
8190
|
|
|
8110
|
-
|
|
8111
8191
|
var SampleComponent = ({
|
|
8112
8192
|
testProp,
|
|
8113
8193
|
children,
|
|
8194
|
+
// Style argument
|
|
8195
|
+
customStyle: customStyle2,
|
|
8114
8196
|
...rest
|
|
8115
8197
|
// This rest operator includes className, style, onClick, etc.
|
|
8116
8198
|
}) => {
|
|
@@ -8118,6 +8200,7 @@ var SampleComponent = ({
|
|
|
8118
8200
|
_react.useEffect.call(void 0, () => {
|
|
8119
8201
|
const el = ref.current;
|
|
8120
8202
|
if (!el) return;
|
|
8203
|
+
el.customStyles = customStyle2;
|
|
8121
8204
|
if (testProp !== void 0) {
|
|
8122
8205
|
el.setAttribute("test-prop", testProp);
|
|
8123
8206
|
}
|
|
@@ -8132,7 +8215,6 @@ SampleComponent.displayName = "SampleComponent";
|
|
|
8132
8215
|
// src/components/MultiSelect/WavelengthMultiSelectAutocomplete.tsx
|
|
8133
8216
|
|
|
8134
8217
|
|
|
8135
|
-
|
|
8136
8218
|
var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Options", label, name, style: style3, onChange, value, ...rest }) => {
|
|
8137
8219
|
const componentRef = _react.useRef.call(void 0, null);
|
|
8138
8220
|
_react.useEffect.call(void 0, () => {
|
|
@@ -8235,7 +8317,9 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
8235
8317
|
|
|
8236
8318
|
|
|
8237
8319
|
|
|
8238
|
-
|
|
8320
|
+
|
|
8321
|
+
|
|
8322
|
+
exports.ButtonIcon = ButtonIcon; exports.ButtonMenu = ButtonMenu; exports.ChildDataTable = ChildDataTable2; exports.ChildDataTableElement = _webcomponents.ChildDataTable; exports.DefaultCarousel = DefaultCarousel; exports.NestedDataTable = NestedDataTable; exports.SampleComponent = SampleComponent; exports.SampleComponentElement = _webcomponents.SampleComponent; exports.SliderCardCarousel = SliderCardCarousel; exports.WavelengthAccessAlert = WavelengthAccessAlert; exports.WavelengthAlert = WavelengthAlert; exports.WavelengthAppLogo = WavelengthAppLogo; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutoComplete = WavelengthAutoComplete; exports.WavelengthAutocomplete = WavelengthAutocomplete; exports.WavelengthBanner = WavelengthBanner; exports.WavelengthBannerElement = _webcomponents.WavelengthBanner; exports.WavelengthBox = WavelengthBox; exports.WavelengthButton = WavelengthButton; exports.WavelengthButtonElement = _webcomponents.WavelengthButton; exports.WavelengthCommentDisplay = WavelengthCommentDisplay; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentModal = WavelengthContentModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDataTable = WavelengthDataTable; exports.WavelengthDatePicker = WavelengthDatePicker; exports.WavelengthDatePickerElement = _webcomponents.WavelengthDatePicker; exports.WavelengthDefaultIcon = WavelengthDefaultIcon; exports.WavelengthDefaultPagination = WavelengthDefaultPagination; exports.WavelengthDragAndDrop = WavelengthDragAndDrop; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthDropdownButton = WavelengthDropdownButton; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDownloader = WavelengthFileDownloader; exports.WavelengthFooter = WavelengthFooter; exports.WavelengthForm = WavelengthForm; exports.WavelengthFormElement = _webcomponents.WavelengthForm; exports.WavelengthInput = WavelengthInput; exports.WavelengthInputElement = _webcomponents.WavelengthInput; exports.WavelengthManyPlanes = WavelengthManyPlanes; exports.WavelengthMultiSelectAutocomplete = WavelengthMultiSelectAutocomplete; exports.WavelengthMultiSelectAutocompleteElement = _webcomponents.WavelengthMultiSelectAutocomplete; exports.WavelengthNavBar = WavelengthNavBar; exports.WavelengthNotAvailablePage = WavelengthNotAvailablePage; exports.WavelengthPermissionAlert = WavelengthPermissionAlert; exports.WavelengthPlaneTrail = WavelengthPlaneTrail; exports.WavelengthPopUpMenu = WavelengthPopUpMenu; exports.WavelengthProgressBar = WavelengthProgressBar; exports.WavelengthProgressBarElement = _webcomponents.WavelengthProgressBar; exports.WavelengthSearch = WavelengthSearch; exports.WavelengthSearchTextField = WavelengthSearchTextField; exports.WavelengthSideBar = WavelengthSideBar; exports.WavelengthSlider = WavelengthSlider; exports.WavelengthSnackbar = WavelengthSnackbar; exports.WavelengthSpinningLogo = WavelengthSpinningLogo; exports.WavelengthSpinningOuterCircle = WavelengthSpinningOuterCircle; exports.WavelengthStandardSnackbar = WavelengthStandardSnackbar; exports.WavelengthStyledButton = WavelengthStyledButton; exports.WavelengthTestSnackbar = WavelengthTestSnackbar; exports.WavelengthTitleBar = WavelengthTitleBar; exports.WavelengthTitleBarElement = _webcomponents.WavelengthTitleBar; exports.add = add; exports.ascendingRange = ascendingRange; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.range = range; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
|
|
8239
8323
|
/*! Bundled license information:
|
|
8240
8324
|
|
|
8241
8325
|
react-is/cjs/react-is.production.min.js:
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactNode, ChangeEvent, ReactElement, CSSProperties } from 'react';
|
|
3
|
-
export { SampleComponent as SampleComponentElement, WavelengthBanner as WavelengthBannerElement, WavelengthButton as WavelengthButtonElement, WavelengthDatePicker as WavelengthDatePickerElement, WavelengthForm as WavelengthFormElement, WavelengthInput as WavelengthInputElement, WavelengthMultiSelectAutocomplete as WavelengthMultiSelectAutocompleteElement, WavelengthProgressBar as WavelengthProgressBarElement, WavelengthTitleBar as WavelengthTitleBarElement } from '@wavelengthusaf/web-components';
|
|
2
|
+
import React__default, { ReactNode, ChangeEvent, ReactElement, CSSProperties as CSSProperties$1 } from 'react';
|
|
3
|
+
export { ChildDataTable as ChildDataTableElement, SampleComponent as SampleComponentElement, WavelengthBanner as WavelengthBannerElement, WavelengthButton as WavelengthButtonElement, WavelengthDatePicker as WavelengthDatePickerElement, WavelengthForm as WavelengthFormElement, WavelengthInput as WavelengthInputElement, WavelengthMultiSelectAutocomplete as WavelengthMultiSelectAutocompleteElement, WavelengthProgressBar as WavelengthProgressBarElement, WavelengthTitleBar as WavelengthTitleBarElement } from '@wavelengthusaf/web-components';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { TextFieldVariants, SxProps, Theme } from '@mui/material';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { Mark } from '@mui/material/Slider/useSlider.types';
|
|
8
|
+
import { CSSProperties } from 'styled-components';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Helper Functions
|
|
@@ -238,6 +239,22 @@ declare namespace WavelengthSideBar {
|
|
|
238
239
|
var displayName: string;
|
|
239
240
|
}
|
|
240
241
|
|
|
242
|
+
interface NavItem {
|
|
243
|
+
title: string;
|
|
244
|
+
path?: string;
|
|
245
|
+
onClick?: () => void;
|
|
246
|
+
children?: NavItem[];
|
|
247
|
+
}
|
|
248
|
+
interface WavelengthNavBarProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
249
|
+
items: NavItem[];
|
|
250
|
+
bgColor?: string;
|
|
251
|
+
txtColor?: string;
|
|
252
|
+
hoverColor?: string;
|
|
253
|
+
height?: string | number;
|
|
254
|
+
padding?: string;
|
|
255
|
+
}
|
|
256
|
+
declare const WavelengthNavBar: React__default.FC<WavelengthNavBarProps>;
|
|
257
|
+
|
|
241
258
|
interface ISpinningSvgProps {
|
|
242
259
|
size: number;
|
|
243
260
|
id: "outer-circle" | "middle-circle" | "inner-circle" | "spinning";
|
|
@@ -714,7 +731,7 @@ declare namespace WavelengthDefaultPagination {
|
|
|
714
731
|
|
|
715
732
|
type StyleProp = {
|
|
716
733
|
[selector: string]: any;
|
|
717
|
-
};
|
|
734
|
+
} & CSSProperties;
|
|
718
735
|
|
|
719
736
|
interface WavelengthInputProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
720
737
|
id?: string;
|
|
@@ -754,58 +771,36 @@ declare const WavelengthInput: React__default.ForwardRefExoticComponent<Waveleng
|
|
|
754
771
|
validate?: () => boolean;
|
|
755
772
|
}>>;
|
|
756
773
|
|
|
757
|
-
interface DataType$
|
|
774
|
+
interface DataType$1 {
|
|
758
775
|
id: number;
|
|
759
776
|
[key: string]: any;
|
|
760
777
|
}
|
|
761
|
-
interface ColumnProps$
|
|
778
|
+
interface ColumnProps$1<T> {
|
|
762
779
|
key: string;
|
|
763
780
|
title: string | ReactElement;
|
|
764
781
|
width?: string;
|
|
765
782
|
editable?: boolean;
|
|
766
|
-
render?: (column: ColumnProps$
|
|
783
|
+
render?: (column: ColumnProps$1<T>, item: T) => ReactElement;
|
|
767
784
|
}
|
|
768
|
-
type Props$
|
|
769
|
-
columns: Array<ColumnProps$
|
|
785
|
+
type Props$1<T> = {
|
|
786
|
+
columns: Array<ColumnProps$1<T>>;
|
|
770
787
|
data?: T[] | undefined;
|
|
771
788
|
itemsPerPage: number;
|
|
772
789
|
totalPages: number;
|
|
773
790
|
};
|
|
774
791
|
declare const WavelengthDataTable: {
|
|
775
|
-
<T extends DataType$
|
|
792
|
+
<T extends DataType$1>({ data, columns, itemsPerPage, totalPages }: Props$1<T>): react_jsx_runtime.JSX.Element;
|
|
776
793
|
displayName: string;
|
|
777
794
|
};
|
|
778
795
|
|
|
779
|
-
interface
|
|
780
|
-
|
|
781
|
-
|
|
796
|
+
interface ChildDataTableProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
797
|
+
columns?: object;
|
|
798
|
+
data?: object;
|
|
799
|
+
dropdownArrowLocation?: string;
|
|
800
|
+
sortIcon?: string | HTMLElement;
|
|
801
|
+
dropdownButtonIcon?: string | HTMLElement;
|
|
782
802
|
}
|
|
783
|
-
|
|
784
|
-
relationId: number;
|
|
785
|
-
fileObjects: fileObject[];
|
|
786
|
-
}
|
|
787
|
-
interface DataType$1 {
|
|
788
|
-
id: number;
|
|
789
|
-
[key: string]: any;
|
|
790
|
-
Details?: Details$1;
|
|
791
|
-
}
|
|
792
|
-
interface ColumnProps$1 {
|
|
793
|
-
key: string;
|
|
794
|
-
title: string | ReactElement;
|
|
795
|
-
subDataTableColumn: boolean;
|
|
796
|
-
PrimaryBoldText?: boolean;
|
|
797
|
-
}
|
|
798
|
-
type Props$1<T> = {
|
|
799
|
-
columns: Array<ColumnProps$1>;
|
|
800
|
-
data?: T[] | undefined;
|
|
801
|
-
downloadArrowOnClick?: () => void | Promise<void>;
|
|
802
|
-
downloadMissionOnClick?: () => void | Promise<void>;
|
|
803
|
-
addFilesOnClick?: () => void | Promise<void>;
|
|
804
|
-
};
|
|
805
|
-
declare const ChildDataTable: {
|
|
806
|
-
<T extends DataType$1>({ data, columns, downloadArrowOnClick, downloadMissionOnClick, addFilesOnClick }: Props$1<T>): react_jsx_runtime.JSX.Element;
|
|
807
|
-
displayName: string;
|
|
808
|
-
};
|
|
803
|
+
declare const ChildDataTable: React__default.FC<ChildDataTableProps>;
|
|
809
804
|
|
|
810
805
|
interface Details {
|
|
811
806
|
relationId: number;
|
|
@@ -879,6 +874,7 @@ declare const WavelengthDatePicker: {
|
|
|
879
874
|
|
|
880
875
|
interface SampleComponentProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
881
876
|
testProp?: string;
|
|
877
|
+
customStyle: StyleProp;
|
|
882
878
|
}
|
|
883
879
|
declare const SampleComponent: React__default.FC<SampleComponentProps>;
|
|
884
880
|
|
|
@@ -887,26 +883,26 @@ interface Option {
|
|
|
887
883
|
value: string;
|
|
888
884
|
}
|
|
889
885
|
interface CustomSelectors {
|
|
890
|
-
"&:hover"?: CSSProperties;
|
|
891
|
-
"&:focus"?: CSSProperties;
|
|
886
|
+
"&:hover"?: CSSProperties$1;
|
|
887
|
+
"&:focus"?: CSSProperties$1;
|
|
892
888
|
/**Styles the container which holds the input and label*/
|
|
893
|
-
"& .multi-select-input-wrapper"?: CSSProperties;
|
|
889
|
+
"& .multi-select-input-wrapper"?: CSSProperties$1;
|
|
894
890
|
/**Styles the input*/
|
|
895
|
-
"& .multi-select-input"?: CSSProperties;
|
|
891
|
+
"& .multi-select-input"?: CSSProperties$1;
|
|
896
892
|
/**Styles the label*/
|
|
897
|
-
"& .multi-select-label"?: CSSProperties;
|
|
893
|
+
"& .multi-select-label"?: CSSProperties$1;
|
|
898
894
|
/**Styles the dropdown*/
|
|
899
|
-
"& .multi-select-dropdown"?: CSSProperties;
|
|
895
|
+
"& .multi-select-dropdown"?: CSSProperties$1;
|
|
900
896
|
/** Styles the container that holds the options and checkbox*/
|
|
901
|
-
"& .multi-select-option-container"?: CSSProperties;
|
|
897
|
+
"& .multi-select-option-container"?: CSSProperties$1;
|
|
902
898
|
/**Styles the individual options*/
|
|
903
|
-
"& .multi-select-option"?: CSSProperties;
|
|
899
|
+
"& .multi-select-option"?: CSSProperties$1;
|
|
904
900
|
/**Styles the clear button*/
|
|
905
|
-
"& .multi-select-clear"?: CSSProperties;
|
|
901
|
+
"& .multi-select-clear"?: CSSProperties$1;
|
|
906
902
|
/**Styles the dropdown arrow*/
|
|
907
|
-
"& .multi-select-arrow"?: CSSProperties;
|
|
903
|
+
"& .multi-select-arrow"?: CSSProperties$1;
|
|
908
904
|
/**Styles the chip*/
|
|
909
|
-
"& .multi-select-chip"?: CSSProperties;
|
|
905
|
+
"& .multi-select-chip"?: CSSProperties$1;
|
|
910
906
|
}
|
|
911
907
|
type CustomStyleProp = CustomSelectors & StyleProp;
|
|
912
908
|
interface MultiSelectAutocompleteProps {
|
|
@@ -920,4 +916,4 @@ interface MultiSelectAutocompleteProps {
|
|
|
920
916
|
}
|
|
921
917
|
declare const WavelengthMultiSelectAutocomplete: React__default.FC<MultiSelectAutocompleteProps>;
|
|
922
918
|
|
|
923
|
-
export { ButtonIcon, ButtonMenu, ChildDataTable, DefaultCarousel, NestedDataTable, SampleComponent, type SearchProps, type SearchResult, SliderCardCarousel, type StyledButtonPropsTwo, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppLogo, WavelengthAppTheme, WavelengthAutoComplete, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDatePicker, WavelengthDefaultIcon, WavelengthDefaultPagination, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthForm, WavelengthInput, WavelengthManyPlanes, WavelengthMultiSelectAutocomplete, WavelengthNotAvailablePage, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSearchTextField, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTestSnackbar, WavelengthTitleBar, add, ascendingRange, concat, findBestStringMatch, type menuItemProps, range, useOutsideClick, useThemeContext };
|
|
919
|
+
export { ButtonIcon, ButtonMenu, ChildDataTable, DefaultCarousel, type NavItem, NestedDataTable, SampleComponent, type SearchProps, type SearchResult, SliderCardCarousel, type StyledButtonPropsTwo, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppLogo, WavelengthAppTheme, WavelengthAutoComplete, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDatePicker, WavelengthDefaultIcon, WavelengthDefaultPagination, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthForm, WavelengthInput, WavelengthManyPlanes, WavelengthMultiSelectAutocomplete, WavelengthNavBar, type WavelengthNavBarProps, WavelengthNotAvailablePage, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSearchTextField, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTestSnackbar, WavelengthTitleBar, add, ascendingRange, concat, findBestStringMatch, type menuItemProps, range, useOutsideClick, useThemeContext };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactNode, ChangeEvent, ReactElement, CSSProperties } from 'react';
|
|
3
|
-
export { SampleComponent as SampleComponentElement, WavelengthBanner as WavelengthBannerElement, WavelengthButton as WavelengthButtonElement, WavelengthDatePicker as WavelengthDatePickerElement, WavelengthForm as WavelengthFormElement, WavelengthInput as WavelengthInputElement, WavelengthMultiSelectAutocomplete as WavelengthMultiSelectAutocompleteElement, WavelengthProgressBar as WavelengthProgressBarElement, WavelengthTitleBar as WavelengthTitleBarElement } from '@wavelengthusaf/web-components';
|
|
2
|
+
import React__default, { ReactNode, ChangeEvent, ReactElement, CSSProperties as CSSProperties$1 } from 'react';
|
|
3
|
+
export { ChildDataTable as ChildDataTableElement, SampleComponent as SampleComponentElement, WavelengthBanner as WavelengthBannerElement, WavelengthButton as WavelengthButtonElement, WavelengthDatePicker as WavelengthDatePickerElement, WavelengthForm as WavelengthFormElement, WavelengthInput as WavelengthInputElement, WavelengthMultiSelectAutocomplete as WavelengthMultiSelectAutocompleteElement, WavelengthProgressBar as WavelengthProgressBarElement, WavelengthTitleBar as WavelengthTitleBarElement } from '@wavelengthusaf/web-components';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { TextFieldVariants, SxProps, Theme } from '@mui/material';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { Mark } from '@mui/material/Slider/useSlider.types';
|
|
8
|
+
import { CSSProperties } from 'styled-components';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Helper Functions
|
|
@@ -238,6 +239,22 @@ declare namespace WavelengthSideBar {
|
|
|
238
239
|
var displayName: string;
|
|
239
240
|
}
|
|
240
241
|
|
|
242
|
+
interface NavItem {
|
|
243
|
+
title: string;
|
|
244
|
+
path?: string;
|
|
245
|
+
onClick?: () => void;
|
|
246
|
+
children?: NavItem[];
|
|
247
|
+
}
|
|
248
|
+
interface WavelengthNavBarProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
249
|
+
items: NavItem[];
|
|
250
|
+
bgColor?: string;
|
|
251
|
+
txtColor?: string;
|
|
252
|
+
hoverColor?: string;
|
|
253
|
+
height?: string | number;
|
|
254
|
+
padding?: string;
|
|
255
|
+
}
|
|
256
|
+
declare const WavelengthNavBar: React__default.FC<WavelengthNavBarProps>;
|
|
257
|
+
|
|
241
258
|
interface ISpinningSvgProps {
|
|
242
259
|
size: number;
|
|
243
260
|
id: "outer-circle" | "middle-circle" | "inner-circle" | "spinning";
|
|
@@ -714,7 +731,7 @@ declare namespace WavelengthDefaultPagination {
|
|
|
714
731
|
|
|
715
732
|
type StyleProp = {
|
|
716
733
|
[selector: string]: any;
|
|
717
|
-
};
|
|
734
|
+
} & CSSProperties;
|
|
718
735
|
|
|
719
736
|
interface WavelengthInputProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
720
737
|
id?: string;
|
|
@@ -754,58 +771,36 @@ declare const WavelengthInput: React__default.ForwardRefExoticComponent<Waveleng
|
|
|
754
771
|
validate?: () => boolean;
|
|
755
772
|
}>>;
|
|
756
773
|
|
|
757
|
-
interface DataType$
|
|
774
|
+
interface DataType$1 {
|
|
758
775
|
id: number;
|
|
759
776
|
[key: string]: any;
|
|
760
777
|
}
|
|
761
|
-
interface ColumnProps$
|
|
778
|
+
interface ColumnProps$1<T> {
|
|
762
779
|
key: string;
|
|
763
780
|
title: string | ReactElement;
|
|
764
781
|
width?: string;
|
|
765
782
|
editable?: boolean;
|
|
766
|
-
render?: (column: ColumnProps$
|
|
783
|
+
render?: (column: ColumnProps$1<T>, item: T) => ReactElement;
|
|
767
784
|
}
|
|
768
|
-
type Props$
|
|
769
|
-
columns: Array<ColumnProps$
|
|
785
|
+
type Props$1<T> = {
|
|
786
|
+
columns: Array<ColumnProps$1<T>>;
|
|
770
787
|
data?: T[] | undefined;
|
|
771
788
|
itemsPerPage: number;
|
|
772
789
|
totalPages: number;
|
|
773
790
|
};
|
|
774
791
|
declare const WavelengthDataTable: {
|
|
775
|
-
<T extends DataType$
|
|
792
|
+
<T extends DataType$1>({ data, columns, itemsPerPage, totalPages }: Props$1<T>): react_jsx_runtime.JSX.Element;
|
|
776
793
|
displayName: string;
|
|
777
794
|
};
|
|
778
795
|
|
|
779
|
-
interface
|
|
780
|
-
|
|
781
|
-
|
|
796
|
+
interface ChildDataTableProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
797
|
+
columns?: object;
|
|
798
|
+
data?: object;
|
|
799
|
+
dropdownArrowLocation?: string;
|
|
800
|
+
sortIcon?: string | HTMLElement;
|
|
801
|
+
dropdownButtonIcon?: string | HTMLElement;
|
|
782
802
|
}
|
|
783
|
-
|
|
784
|
-
relationId: number;
|
|
785
|
-
fileObjects: fileObject[];
|
|
786
|
-
}
|
|
787
|
-
interface DataType$1 {
|
|
788
|
-
id: number;
|
|
789
|
-
[key: string]: any;
|
|
790
|
-
Details?: Details$1;
|
|
791
|
-
}
|
|
792
|
-
interface ColumnProps$1 {
|
|
793
|
-
key: string;
|
|
794
|
-
title: string | ReactElement;
|
|
795
|
-
subDataTableColumn: boolean;
|
|
796
|
-
PrimaryBoldText?: boolean;
|
|
797
|
-
}
|
|
798
|
-
type Props$1<T> = {
|
|
799
|
-
columns: Array<ColumnProps$1>;
|
|
800
|
-
data?: T[] | undefined;
|
|
801
|
-
downloadArrowOnClick?: () => void | Promise<void>;
|
|
802
|
-
downloadMissionOnClick?: () => void | Promise<void>;
|
|
803
|
-
addFilesOnClick?: () => void | Promise<void>;
|
|
804
|
-
};
|
|
805
|
-
declare const ChildDataTable: {
|
|
806
|
-
<T extends DataType$1>({ data, columns, downloadArrowOnClick, downloadMissionOnClick, addFilesOnClick }: Props$1<T>): react_jsx_runtime.JSX.Element;
|
|
807
|
-
displayName: string;
|
|
808
|
-
};
|
|
803
|
+
declare const ChildDataTable: React__default.FC<ChildDataTableProps>;
|
|
809
804
|
|
|
810
805
|
interface Details {
|
|
811
806
|
relationId: number;
|
|
@@ -879,6 +874,7 @@ declare const WavelengthDatePicker: {
|
|
|
879
874
|
|
|
880
875
|
interface SampleComponentProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
881
876
|
testProp?: string;
|
|
877
|
+
customStyle: StyleProp;
|
|
882
878
|
}
|
|
883
879
|
declare const SampleComponent: React__default.FC<SampleComponentProps>;
|
|
884
880
|
|
|
@@ -887,26 +883,26 @@ interface Option {
|
|
|
887
883
|
value: string;
|
|
888
884
|
}
|
|
889
885
|
interface CustomSelectors {
|
|
890
|
-
"&:hover"?: CSSProperties;
|
|
891
|
-
"&:focus"?: CSSProperties;
|
|
886
|
+
"&:hover"?: CSSProperties$1;
|
|
887
|
+
"&:focus"?: CSSProperties$1;
|
|
892
888
|
/**Styles the container which holds the input and label*/
|
|
893
|
-
"& .multi-select-input-wrapper"?: CSSProperties;
|
|
889
|
+
"& .multi-select-input-wrapper"?: CSSProperties$1;
|
|
894
890
|
/**Styles the input*/
|
|
895
|
-
"& .multi-select-input"?: CSSProperties;
|
|
891
|
+
"& .multi-select-input"?: CSSProperties$1;
|
|
896
892
|
/**Styles the label*/
|
|
897
|
-
"& .multi-select-label"?: CSSProperties;
|
|
893
|
+
"& .multi-select-label"?: CSSProperties$1;
|
|
898
894
|
/**Styles the dropdown*/
|
|
899
|
-
"& .multi-select-dropdown"?: CSSProperties;
|
|
895
|
+
"& .multi-select-dropdown"?: CSSProperties$1;
|
|
900
896
|
/** Styles the container that holds the options and checkbox*/
|
|
901
|
-
"& .multi-select-option-container"?: CSSProperties;
|
|
897
|
+
"& .multi-select-option-container"?: CSSProperties$1;
|
|
902
898
|
/**Styles the individual options*/
|
|
903
|
-
"& .multi-select-option"?: CSSProperties;
|
|
899
|
+
"& .multi-select-option"?: CSSProperties$1;
|
|
904
900
|
/**Styles the clear button*/
|
|
905
|
-
"& .multi-select-clear"?: CSSProperties;
|
|
901
|
+
"& .multi-select-clear"?: CSSProperties$1;
|
|
906
902
|
/**Styles the dropdown arrow*/
|
|
907
|
-
"& .multi-select-arrow"?: CSSProperties;
|
|
903
|
+
"& .multi-select-arrow"?: CSSProperties$1;
|
|
908
904
|
/**Styles the chip*/
|
|
909
|
-
"& .multi-select-chip"?: CSSProperties;
|
|
905
|
+
"& .multi-select-chip"?: CSSProperties$1;
|
|
910
906
|
}
|
|
911
907
|
type CustomStyleProp = CustomSelectors & StyleProp;
|
|
912
908
|
interface MultiSelectAutocompleteProps {
|
|
@@ -920,4 +916,4 @@ interface MultiSelectAutocompleteProps {
|
|
|
920
916
|
}
|
|
921
917
|
declare const WavelengthMultiSelectAutocomplete: React__default.FC<MultiSelectAutocompleteProps>;
|
|
922
918
|
|
|
923
|
-
export { ButtonIcon, ButtonMenu, ChildDataTable, DefaultCarousel, NestedDataTable, SampleComponent, type SearchProps, type SearchResult, SliderCardCarousel, type StyledButtonPropsTwo, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppLogo, WavelengthAppTheme, WavelengthAutoComplete, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDatePicker, WavelengthDefaultIcon, WavelengthDefaultPagination, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthForm, WavelengthInput, WavelengthManyPlanes, WavelengthMultiSelectAutocomplete, WavelengthNotAvailablePage, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSearchTextField, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTestSnackbar, WavelengthTitleBar, add, ascendingRange, concat, findBestStringMatch, type menuItemProps, range, useOutsideClick, useThemeContext };
|
|
919
|
+
export { ButtonIcon, ButtonMenu, ChildDataTable, DefaultCarousel, type NavItem, NestedDataTable, SampleComponent, type SearchProps, type SearchResult, SliderCardCarousel, type StyledButtonPropsTwo, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppLogo, WavelengthAppTheme, WavelengthAutoComplete, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDatePicker, WavelengthDefaultIcon, WavelengthDefaultPagination, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthForm, WavelengthInput, WavelengthManyPlanes, WavelengthMultiSelectAutocomplete, WavelengthNavBar, type WavelengthNavBarProps, WavelengthNotAvailablePage, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSearchTextField, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTestSnackbar, WavelengthTitleBar, add, ascendingRange, concat, findBestStringMatch, type menuItemProps, range, useOutsideClick, useThemeContext };
|