@wavelengthusaf/components 4.12.0 → 4.15.0
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/dist/cjs/index.cjs +338 -257
- package/dist/cjs/index.d.cts +65 -24
- package/dist/esm/index.d.ts +65 -24
- package/dist/esm/index.js +642 -561
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -29,24 +29,24 @@ var require_react_is_production_min = __commonJS({
|
|
|
29
29
|
"../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
30
30
|
"use strict";
|
|
31
31
|
var b = "function" === typeof Symbol && Symbol.for;
|
|
32
|
-
var c = b ? Symbol.for("react.element") : 60103;
|
|
33
|
-
var d = b ? Symbol.for("react.portal") : 60106;
|
|
34
|
-
var e = b ? Symbol.for("react.fragment") : 60107;
|
|
35
|
-
var f = b ? Symbol.for("react.strict_mode") : 60108;
|
|
36
|
-
var g = b ? Symbol.for("react.profiler") : 60114;
|
|
37
|
-
var h = b ? Symbol.for("react.provider") : 60109;
|
|
38
|
-
var k = b ? Symbol.for("react.context") : 60110;
|
|
39
|
-
var l = b ? Symbol.for("react.async_mode") : 60111;
|
|
40
|
-
var m = b ? Symbol.for("react.concurrent_mode") : 60111;
|
|
41
|
-
var n = b ? Symbol.for("react.forward_ref") : 60112;
|
|
42
|
-
var p = b ? Symbol.for("react.suspense") : 60113;
|
|
43
|
-
var q = b ? Symbol.for("react.suspense_list") : 60120;
|
|
44
|
-
var r = b ? Symbol.for("react.memo") : 60115;
|
|
45
|
-
var t = b ? Symbol.for("react.lazy") : 60116;
|
|
46
|
-
var v = b ? Symbol.for("react.block") : 60121;
|
|
47
|
-
var w = b ? Symbol.for("react.fundamental") : 60117;
|
|
48
|
-
var x = b ? Symbol.for("react.responder") : 60118;
|
|
49
|
-
var y = b ? Symbol.for("react.scope") : 60119;
|
|
32
|
+
var c = b ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
|
|
33
|
+
var d = b ? /* @__PURE__ */ Symbol.for("react.portal") : 60106;
|
|
34
|
+
var e = b ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107;
|
|
35
|
+
var f = b ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108;
|
|
36
|
+
var g = b ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114;
|
|
37
|
+
var h = b ? /* @__PURE__ */ Symbol.for("react.provider") : 60109;
|
|
38
|
+
var k = b ? /* @__PURE__ */ Symbol.for("react.context") : 60110;
|
|
39
|
+
var l = b ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111;
|
|
40
|
+
var m = b ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111;
|
|
41
|
+
var n = b ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
|
|
42
|
+
var p = b ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113;
|
|
43
|
+
var q = b ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120;
|
|
44
|
+
var r = b ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
|
|
45
|
+
var t = b ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116;
|
|
46
|
+
var v = b ? /* @__PURE__ */ Symbol.for("react.block") : 60121;
|
|
47
|
+
var w = b ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117;
|
|
48
|
+
var x = b ? /* @__PURE__ */ Symbol.for("react.responder") : 60118;
|
|
49
|
+
var y = b ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
50
50
|
function z(a) {
|
|
51
51
|
if ("object" === typeof a && null !== a) {
|
|
52
52
|
var u = a.$$typeof;
|
|
@@ -145,24 +145,24 @@ var require_react_is_development = __commonJS({
|
|
|
145
145
|
(function() {
|
|
146
146
|
"use strict";
|
|
147
147
|
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
148
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
149
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
150
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
151
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
152
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
153
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
154
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
155
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
156
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
157
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
158
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
159
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
160
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
161
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
162
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
163
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
164
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
165
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
148
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
|
|
149
|
+
var REACT_PORTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.portal") : 60106;
|
|
150
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107;
|
|
151
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108;
|
|
152
|
+
var REACT_PROFILER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114;
|
|
153
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.provider") : 60109;
|
|
154
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.context") : 60110;
|
|
155
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111;
|
|
156
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111;
|
|
157
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
|
|
158
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113;
|
|
159
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120;
|
|
160
|
+
var REACT_MEMO_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
|
|
161
|
+
var REACT_LAZY_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116;
|
|
162
|
+
var REACT_BLOCK_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.block") : 60121;
|
|
163
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117;
|
|
164
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.responder") : 60118;
|
|
165
|
+
var REACT_SCOPE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
166
166
|
function isValidElementType(type) {
|
|
167
167
|
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
168
168
|
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
@@ -206,7 +206,7 @@ var require_react_is_development = __commonJS({
|
|
|
206
206
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
207
207
|
var Element = REACT_ELEMENT_TYPE;
|
|
208
208
|
var ForwardRef2 = REACT_FORWARD_REF_TYPE;
|
|
209
|
-
var
|
|
209
|
+
var Fragment15 = REACT_FRAGMENT_TYPE;
|
|
210
210
|
var Lazy = REACT_LAZY_TYPE;
|
|
211
211
|
var Memo2 = REACT_MEMO_TYPE;
|
|
212
212
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -265,7 +265,7 @@ var require_react_is_development = __commonJS({
|
|
|
265
265
|
exports.ContextProvider = ContextProvider;
|
|
266
266
|
exports.Element = Element;
|
|
267
267
|
exports.ForwardRef = ForwardRef2;
|
|
268
|
-
exports.Fragment =
|
|
268
|
+
exports.Fragment = Fragment15;
|
|
269
269
|
exports.Lazy = Lazy;
|
|
270
270
|
exports.Memo = Memo2;
|
|
271
271
|
exports.Portal = Portal;
|
|
@@ -976,21 +976,20 @@ var require_prop_types = __commonJS({
|
|
|
976
976
|
var require_react_is_production = __commonJS({
|
|
977
977
|
"../../../node_modules/react-is/cjs/react-is.production.js"(exports) {
|
|
978
978
|
"use strict";
|
|
979
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
980
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
981
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
982
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
983
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
984
|
-
Symbol.for("react.
|
|
985
|
-
var
|
|
986
|
-
var
|
|
987
|
-
var
|
|
988
|
-
var
|
|
989
|
-
var
|
|
990
|
-
var
|
|
991
|
-
var
|
|
992
|
-
var
|
|
993
|
-
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
979
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
980
|
+
var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
|
|
981
|
+
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
982
|
+
var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
|
|
983
|
+
var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
|
|
984
|
+
var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
|
|
985
|
+
var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
|
|
986
|
+
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
987
|
+
var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
|
|
988
|
+
var REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list");
|
|
989
|
+
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
990
|
+
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
991
|
+
var REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition");
|
|
992
|
+
var REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
994
993
|
function typeOf(object) {
|
|
995
994
|
if ("object" === typeof object && null !== object) {
|
|
996
995
|
var $$typeof = object.$$typeof;
|
|
@@ -1113,9 +1112,7 @@ var require_react_is_development2 = __commonJS({
|
|
|
1113
1112
|
}
|
|
1114
1113
|
}
|
|
1115
1114
|
}
|
|
1116
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1117
|
-
Symbol.for("react.provider");
|
|
1118
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
1115
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
1119
1116
|
exports.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
1120
1117
|
exports.ContextProvider = REACT_CONTEXT_TYPE;
|
|
1121
1118
|
exports.Element = REACT_ELEMENT_TYPE;
|
|
@@ -3731,7 +3728,7 @@ WavelengthExampleComponent.displayName = "WavelengthExampleComponent";
|
|
|
3731
3728
|
|
|
3732
3729
|
|
|
3733
3730
|
var WavelengthSearch = ({
|
|
3734
|
-
customStyle
|
|
3731
|
+
customStyle,
|
|
3735
3732
|
width: width2,
|
|
3736
3733
|
mode,
|
|
3737
3734
|
fontSize,
|
|
@@ -3764,7 +3761,7 @@ var WavelengthSearch = ({
|
|
|
3764
3761
|
_react.useEffect.call(void 0, () => {
|
|
3765
3762
|
const el = ref.current;
|
|
3766
3763
|
if (!el) return;
|
|
3767
|
-
el.customStyles =
|
|
3764
|
+
el.customStyles = customStyle;
|
|
3768
3765
|
syncAttribute("width", width2);
|
|
3769
3766
|
syncAttribute("mode", mode);
|
|
3770
3767
|
syncAttribute("font-size", fontSize);
|
|
@@ -3782,7 +3779,7 @@ var WavelengthSearch = ({
|
|
|
3782
3779
|
syncAttribute("input-color", inputColor);
|
|
3783
3780
|
syncAttribute("input-font", inputFont);
|
|
3784
3781
|
}, [
|
|
3785
|
-
|
|
3782
|
+
customStyle,
|
|
3786
3783
|
width2,
|
|
3787
3784
|
mode,
|
|
3788
3785
|
fontSize,
|
|
@@ -5142,6 +5139,89 @@ var WavelengthToolTip = ({ color: color2, font, direction, children, textColor,
|
|
|
5142
5139
|
};
|
|
5143
5140
|
WavelengthToolTip.displayName = "WavelengthToolTip";
|
|
5144
5141
|
|
|
5142
|
+
// src/components/PageComponents/WavelengthBadge.tsx
|
|
5143
|
+
|
|
5144
|
+
|
|
5145
|
+
var WavelengthBadge = ({
|
|
5146
|
+
variant,
|
|
5147
|
+
badgeBorderRadius,
|
|
5148
|
+
fontSize,
|
|
5149
|
+
href,
|
|
5150
|
+
badgeColor,
|
|
5151
|
+
badgeTextColor,
|
|
5152
|
+
badgeHoverColor,
|
|
5153
|
+
badgeContent,
|
|
5154
|
+
badgeFont,
|
|
5155
|
+
badgeSize,
|
|
5156
|
+
textBoxWidth,
|
|
5157
|
+
textBoxHeight,
|
|
5158
|
+
textBoxBackgroundColor,
|
|
5159
|
+
textBoxTextColor,
|
|
5160
|
+
textBoxBorderColor,
|
|
5161
|
+
textBoxBorderRadius,
|
|
5162
|
+
textBoxHoverBorderColor,
|
|
5163
|
+
item,
|
|
5164
|
+
children,
|
|
5165
|
+
customStyle,
|
|
5166
|
+
...rest
|
|
5167
|
+
}) => {
|
|
5168
|
+
const ref = _react.useRef.call(void 0, null);
|
|
5169
|
+
_react.useEffect.call(void 0, () => {
|
|
5170
|
+
const el = ref.current;
|
|
5171
|
+
if (!el) return;
|
|
5172
|
+
el.customStyles = customStyle;
|
|
5173
|
+
const updateAttribute = (attr, value) => {
|
|
5174
|
+
if (value !== void 0 && value !== null && value !== "") {
|
|
5175
|
+
el.setAttribute(attr, value.toString());
|
|
5176
|
+
} else {
|
|
5177
|
+
el.removeAttribute(attr);
|
|
5178
|
+
}
|
|
5179
|
+
};
|
|
5180
|
+
updateAttribute("variant", variant);
|
|
5181
|
+
updateAttribute("badge-border-radius", badgeBorderRadius);
|
|
5182
|
+
updateAttribute("font-size", fontSize);
|
|
5183
|
+
updateAttribute("href", href);
|
|
5184
|
+
updateAttribute("badge-color", badgeColor);
|
|
5185
|
+
updateAttribute("badge-text-color", badgeTextColor);
|
|
5186
|
+
updateAttribute("badge-hover-color", badgeHoverColor);
|
|
5187
|
+
updateAttribute("text-box-width", textBoxWidth);
|
|
5188
|
+
updateAttribute("text-box-height", textBoxHeight);
|
|
5189
|
+
updateAttribute("text-box-background-color", textBoxBackgroundColor);
|
|
5190
|
+
updateAttribute("text-box-text-color", textBoxTextColor);
|
|
5191
|
+
updateAttribute("text-box-border-color", textBoxBorderColor);
|
|
5192
|
+
updateAttribute("text-box-border-radius", textBoxBorderRadius);
|
|
5193
|
+
updateAttribute("text-box-hover-border-color", textBoxHoverBorderColor);
|
|
5194
|
+
updateAttribute("badge-font", badgeFont);
|
|
5195
|
+
updateAttribute("badge-content", _optionalChain([badgeContent, 'optionalAccess', _12 => _12.toString, 'call', _13 => _13()]));
|
|
5196
|
+
updateAttribute("badge-size", badgeSize);
|
|
5197
|
+
}, [
|
|
5198
|
+
variant,
|
|
5199
|
+
badgeBorderRadius,
|
|
5200
|
+
fontSize,
|
|
5201
|
+
href,
|
|
5202
|
+
badgeColor,
|
|
5203
|
+
badgeTextColor,
|
|
5204
|
+
badgeHoverColor,
|
|
5205
|
+
badgeContent,
|
|
5206
|
+
badgeFont,
|
|
5207
|
+
badgeSize,
|
|
5208
|
+
textBoxWidth,
|
|
5209
|
+
textBoxHeight,
|
|
5210
|
+
textBoxBackgroundColor,
|
|
5211
|
+
textBoxTextColor,
|
|
5212
|
+
textBoxBorderColor,
|
|
5213
|
+
textBoxBorderRadius,
|
|
5214
|
+
textBoxHoverBorderColor,
|
|
5215
|
+
item,
|
|
5216
|
+
customStyle
|
|
5217
|
+
]);
|
|
5218
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "wavelength-badge", { ref, ...rest, children: [
|
|
5219
|
+
badgeContent !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { slot: "badge", children: badgeContent }),
|
|
5220
|
+
item || children
|
|
5221
|
+
] });
|
|
5222
|
+
};
|
|
5223
|
+
WavelengthBadge.displayName = "WavelengthBadge";
|
|
5224
|
+
|
|
5145
5225
|
// src/components/footers/WavelengthFooter/WavelengthFooter.tsx
|
|
5146
5226
|
|
|
5147
5227
|
var _Box = require('@mui/material/Box'); var _Box2 = _interopRequireDefault(_Box);
|
|
@@ -5203,7 +5283,7 @@ function useStableCallback(fn) {
|
|
|
5203
5283
|
_react.useEffect.call(void 0, () => {
|
|
5204
5284
|
fnRef.current = fn;
|
|
5205
5285
|
}, [fn]);
|
|
5206
|
-
return (...args) => _optionalChain([fnRef, 'access',
|
|
5286
|
+
return (...args) => _optionalChain([fnRef, 'access', _14 => _14.current, 'optionalCall', _15 => _15(...args)]);
|
|
5207
5287
|
}
|
|
5208
5288
|
function WavelengthFormInner(props, ref) {
|
|
5209
5289
|
const {
|
|
@@ -5243,7 +5323,7 @@ function WavelengthFormInner(props, ref) {
|
|
|
5243
5323
|
if (!el) return;
|
|
5244
5324
|
let finalSchema = schema;
|
|
5245
5325
|
if (placeholders) {
|
|
5246
|
-
const shape2 = _optionalChain([schema, 'optionalAccess',
|
|
5326
|
+
const shape2 = _optionalChain([schema, 'optionalAccess', _16 => _16.shape]);
|
|
5247
5327
|
if (shape2) {
|
|
5248
5328
|
const overrides = {};
|
|
5249
5329
|
for (const [key, ph] of Object.entries(placeholders)) {
|
|
@@ -5276,15 +5356,15 @@ function WavelengthFormInner(props, ref) {
|
|
|
5276
5356
|
if (!el) return;
|
|
5277
5357
|
const handleChange = (e) => {
|
|
5278
5358
|
const detail = e.detail;
|
|
5279
|
-
_optionalChain([onChangeStable, 'optionalCall',
|
|
5359
|
+
_optionalChain([onChangeStable, 'optionalCall', _17 => _17(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _18 => _18.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _19 => _19.issues]), () => ( [])))]);
|
|
5280
5360
|
};
|
|
5281
5361
|
const handleValid = (e) => {
|
|
5282
5362
|
const detail = e.detail;
|
|
5283
|
-
_optionalChain([onValidStable, 'optionalCall',
|
|
5363
|
+
_optionalChain([onValidStable, 'optionalCall', _20 => _20(_optionalChain([detail, 'optionalAccess', _21 => _21.value]), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _22 => _22.issues]), () => ( [])))]);
|
|
5284
5364
|
};
|
|
5285
5365
|
const handleInvalid = (e) => {
|
|
5286
5366
|
const detail = e.detail;
|
|
5287
|
-
_optionalChain([onInvalidStable, 'optionalCall',
|
|
5367
|
+
_optionalChain([onInvalidStable, 'optionalCall', _23 => _23(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _24 => _24.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _25 => _25.issues]), () => ( [])))]);
|
|
5288
5368
|
};
|
|
5289
5369
|
el.addEventListener("form-change", handleChange);
|
|
5290
5370
|
el.addEventListener("form-valid", handleValid);
|
|
@@ -5306,8 +5386,8 @@ function WavelengthFormInner(props, ref) {
|
|
|
5306
5386
|
_react.useImperativeHandle.call(void 0,
|
|
5307
5387
|
ref,
|
|
5308
5388
|
() => ({
|
|
5309
|
-
validate: () => _nullishCoalesce(_optionalChain([hostRef, 'access',
|
|
5310
|
-
getValue: () => _optionalChain([hostRef, 'access',
|
|
5389
|
+
validate: () => _nullishCoalesce(_optionalChain([hostRef, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.validate, 'optionalCall', _28 => _28()]), () => ( false)),
|
|
5390
|
+
getValue: () => _optionalChain([hostRef, 'access', _29 => _29.current, 'optionalAccess', _30 => _30.value]),
|
|
5311
5391
|
setValue: (v) => {
|
|
5312
5392
|
if (hostRef.current) hostRef.current.value = v;
|
|
5313
5393
|
}
|
|
@@ -5446,7 +5526,7 @@ var WavelengthPlaneTrail = ({
|
|
|
5446
5526
|
id,
|
|
5447
5527
|
children,
|
|
5448
5528
|
// Style argument
|
|
5449
|
-
customStyle
|
|
5529
|
+
customStyle,
|
|
5450
5530
|
...rest
|
|
5451
5531
|
// This rest operator includes className, style, onClick, etc.
|
|
5452
5532
|
}) => {
|
|
@@ -5454,8 +5534,8 @@ var WavelengthPlaneTrail = ({
|
|
|
5454
5534
|
_react.useEffect.call(void 0, () => {
|
|
5455
5535
|
const el = ref.current;
|
|
5456
5536
|
if (!el) return;
|
|
5457
|
-
if (
|
|
5458
|
-
el.customStyles =
|
|
5537
|
+
if (customStyle !== void 0) {
|
|
5538
|
+
el.customStyles = customStyle;
|
|
5459
5539
|
}
|
|
5460
5540
|
if (trailDir !== void 0) {
|
|
5461
5541
|
el.setAttribute("trailDir", trailDir);
|
|
@@ -5467,7 +5547,7 @@ var WavelengthPlaneTrail = ({
|
|
|
5467
5547
|
el.setAttribute("id", id);
|
|
5468
5548
|
}
|
|
5469
5549
|
}, [trailDir]);
|
|
5470
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-planetrail", { ref, trailDir, color: color2, id, customStyle
|
|
5550
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-planetrail", { ref, trailDir, color: color2, id, customStyle, ...rest, children });
|
|
5471
5551
|
};
|
|
5472
5552
|
WavelengthPlaneTrail.displayName = "WavelengthPlaneTrail";
|
|
5473
5553
|
|
|
@@ -5476,39 +5556,41 @@ WavelengthPlaneTrail.displayName = "WavelengthPlaneTrail";
|
|
|
5476
5556
|
|
|
5477
5557
|
function WavelengthConfirmationModal(props) {
|
|
5478
5558
|
const { show, setShow, id, name } = props;
|
|
5479
|
-
const
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5559
|
+
const modalRef = _react.useRef.call(void 0, null);
|
|
5560
|
+
_react.useEffect.call(void 0, () => {
|
|
5561
|
+
const handleClose = () => {
|
|
5562
|
+
setShow(false);
|
|
5563
|
+
};
|
|
5564
|
+
const currentModal = modalRef.current;
|
|
5565
|
+
if (currentModal) {
|
|
5566
|
+
currentModal.addEventListener("close", handleClose);
|
|
5567
|
+
}
|
|
5568
|
+
return () => {
|
|
5569
|
+
if (currentModal) {
|
|
5570
|
+
currentModal.removeEventListener("close", handleClose);
|
|
5571
|
+
}
|
|
5572
|
+
};
|
|
5573
|
+
}, [setShow]);
|
|
5574
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5575
|
+
"wavelength-confirmation-modal",
|
|
5484
5576
|
{
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
borderRadius: "16px",
|
|
5497
|
-
color: props.textColor || "black",
|
|
5498
|
-
boxShadow: 24,
|
|
5499
|
-
padding: "32px",
|
|
5500
|
-
overflow: "scroll"
|
|
5501
|
-
},
|
|
5577
|
+
ref: modalRef,
|
|
5578
|
+
show: show ? "true" : void 0,
|
|
5579
|
+
"modal-id": id,
|
|
5580
|
+
"modal-name": name,
|
|
5581
|
+
width: props.width,
|
|
5582
|
+
height: props.height,
|
|
5583
|
+
"font-family": props.fontFamily,
|
|
5584
|
+
"text-color": props.textColor,
|
|
5585
|
+
"background-color": props.backgroundColor,
|
|
5586
|
+
"title-text": _optionalChain([props, 'access', _31 => _31.textObj, 'optionalAccess', _32 => _32.title]),
|
|
5587
|
+
"dialog-text": _optionalChain([props, 'access', _33 => _33.textObj, 'optionalAccess', _34 => _34.dialog]),
|
|
5502
5588
|
children: [
|
|
5503
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "
|
|
5504
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "
|
|
5505
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "row", justifyContent: "flex-end", marginTop: "40px", gap: "8px" }, children: [
|
|
5506
|
-
props.cancelButton,
|
|
5507
|
-
props.submitButton
|
|
5508
|
-
] })
|
|
5589
|
+
props.cancelButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { slot: "cancel-button", style: { display: "contents" }, children: props.cancelButton }),
|
|
5590
|
+
props.submitButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { slot: "submit-button", style: { display: "contents" }, children: props.submitButton })
|
|
5509
5591
|
]
|
|
5510
5592
|
}
|
|
5511
|
-
)
|
|
5593
|
+
);
|
|
5512
5594
|
}
|
|
5513
5595
|
WavelengthConfirmationModal.displayName = "WavelengthConfirmationModal";
|
|
5514
5596
|
|
|
@@ -5523,147 +5605,45 @@ function WavelengthContentModal(props) {
|
|
|
5523
5605
|
};
|
|
5524
5606
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Dialog, { "data-testid": "testId-WavelengthContentModal", open: show, onClose: handleClose, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description", id: props.id, children: [
|
|
5525
5607
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogTitle, { alignContent: `center`, id: "alert-dialog-title", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, { display: "flex", alignItems: "center", children: [
|
|
5526
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access',
|
|
5608
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access', _35 => _35.textObj, 'optionalAccess', _36 => _36.title]) }),
|
|
5527
5609
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { onClick: handleClose, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Close2.default, {}) }) })
|
|
5528
5610
|
] }) }),
|
|
5529
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access',
|
|
5530
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogActions, { style: { justifyContent: `center` }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Button, { "data-testid": "testId-WavelengthContentModalConfirmButton", onClick: handleContentModalOnConfirmProp, color: "primary", variant: "contained", autoFocus: true, children: _optionalChain([props, 'access',
|
|
5611
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access', _37 => _37.textObj, 'optionalAccess', _38 => _38.dialog]) }) }),
|
|
5612
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogActions, { style: { justifyContent: `center` }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Button, { "data-testid": "testId-WavelengthContentModalConfirmButton", onClick: handleContentModalOnConfirmProp, color: "primary", variant: "contained", autoFocus: true, children: _optionalChain([props, 'access', _39 => _39.textObj, 'optionalAccess', _40 => _40.purpose]) }) })
|
|
5531
5613
|
] });
|
|
5532
5614
|
}
|
|
5533
5615
|
WavelengthContentModal.displayName = "WavelengthContentModal";
|
|
5534
5616
|
|
|
5535
5617
|
// src/components/modals/WavelengthPopUpMenu.tsx
|
|
5536
5618
|
|
|
5537
|
-
var _Menu = require('@mui/material/Menu'); var _Menu2 = _interopRequireDefault(_Menu);
|
|
5538
|
-
var _MenuItem = require('@mui/material/MenuItem'); var _MenuItem2 = _interopRequireDefault(_MenuItem);
|
|
5539
|
-
|
|
5540
|
-
var _Slide = require('@mui/material/Slide'); var _Slide2 = _interopRequireDefault(_Slide);
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
var _IconButton = require('@mui/material/IconButton'); var _IconButton2 = _interopRequireDefault(_IconButton);
|
|
5544
|
-
var _Divider = require('@mui/material/Divider'); var _Divider2 = _interopRequireDefault(_Divider);
|
|
5545
|
-
|
|
5546
|
-
var customStyle = { marginLeft: 16, marginRight: 16, marginTop: 8, marginBottom: 8 };
|
|
5547
|
-
var emailStyle = {
|
|
5548
|
-
marginLeft: 16,
|
|
5549
|
-
marginRight: 16,
|
|
5550
|
-
marginTop: 8,
|
|
5551
|
-
marginBottom: 8
|
|
5552
|
-
};
|
|
5553
|
-
function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, menuDirection = "top", color: color2, id, border: border2 }) {
|
|
5554
|
-
const Links = _styledcomponents2.default.a`
|
|
5555
|
-
color: inherit;
|
|
5556
|
-
text-decoration: none;
|
|
5557
5619
|
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
const anchor = menuDirection === "top" || menuDirection === void 0 ? "top" : "bottom";
|
|
5581
|
-
const transform = menuDirection === "top" || menuDirection === void 0 ? "bottom" : "top";
|
|
5582
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5583
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _IconButton2.default, { onClick: handleClick, children: icon }),
|
|
5584
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5585
|
-
_Menu2.default,
|
|
5586
|
-
{
|
|
5587
|
-
id,
|
|
5588
|
-
open,
|
|
5589
|
-
sx: {
|
|
5590
|
-
width: width2,
|
|
5591
|
-
"& .MuiPaper-root": {
|
|
5592
|
-
border: border2
|
|
5593
|
-
}
|
|
5594
|
-
},
|
|
5595
|
-
onClose: handleClose,
|
|
5596
|
-
anchorEl,
|
|
5597
|
-
TransitionComponent: _Slide2.default,
|
|
5598
|
-
anchorOrigin: { vertical: anchor, horizontal: "center" },
|
|
5599
|
-
transformOrigin: { vertical: transform, horizontal: "center" },
|
|
5600
|
-
children: [
|
|
5601
|
-
...menuItems.map((items, index) => {
|
|
5602
|
-
if (items.end === true) {
|
|
5603
|
-
if (items.itemType === "header") {
|
|
5604
|
-
if (items.link) {
|
|
5605
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
5606
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontWeight: "bold" }, children: items.label }) }) }),
|
|
5607
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
5608
|
-
] }, index);
|
|
5609
|
-
} else {
|
|
5610
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
5611
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: { marginLeft: 16, marginRight: 16, marginTop: 6, marginBottom: 6 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontWeight: "bold" }, children: items.label }) }),
|
|
5612
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
5613
|
-
] }, index);
|
|
5614
|
-
}
|
|
5615
|
-
} else if (items.itemType === "link") {
|
|
5616
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
5617
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.link, hoverColor: items.hoverColor, children: items.label }, index) }),
|
|
5618
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
5619
|
-
] }, index);
|
|
5620
|
-
} else {
|
|
5621
|
-
if (items.link) {
|
|
5622
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
5623
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: items.label }) }),
|
|
5624
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
5625
|
-
] }, index);
|
|
5626
|
-
} else {
|
|
5627
|
-
if (items.email) {
|
|
5628
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
5629
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.email, style: emailStyle, children: items.label }),
|
|
5630
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
5631
|
-
] }, index);
|
|
5632
|
-
} else {
|
|
5633
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
5634
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: customStyle, children: items.label }),
|
|
5635
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
5636
|
-
] }, index);
|
|
5637
|
-
}
|
|
5638
|
-
}
|
|
5639
|
-
}
|
|
5640
|
-
} else if (items.end === void 0 || items.end === false || items.end === null) {
|
|
5641
|
-
if (items.itemType === "header") {
|
|
5642
|
-
if (items.link) {
|
|
5643
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.link, hoverColor: items.hoverColor, children: items.label }) }, index);
|
|
5644
|
-
} else {
|
|
5645
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: customStyle, children: items.label }, index);
|
|
5646
|
-
}
|
|
5647
|
-
} else if (items.itemType === "link") {
|
|
5648
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { style: { textDecoration: "none" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.link, hoverColor: items.hoverColor || "", children: items.label }) }, index);
|
|
5649
|
-
} else {
|
|
5650
|
-
if (items.link) {
|
|
5651
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { href: items.link, children: items.label }, index);
|
|
5652
|
-
} else {
|
|
5653
|
-
if (items.email) {
|
|
5654
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: emailStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.email, hoverColor: items.hoverColor || "blue", children: items.label }) }, index);
|
|
5655
|
-
} else {
|
|
5656
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: customStyle, children: items.label }, index);
|
|
5657
|
-
}
|
|
5658
|
-
}
|
|
5659
|
-
}
|
|
5660
|
-
}
|
|
5661
|
-
})
|
|
5662
|
-
]
|
|
5620
|
+
var WavelengthPopUpMenu = React2.default.forwardRef(
|
|
5621
|
+
({ children, customStyle = {}, variant, trigger, menuDirection, menuOffset, menuItems, badgeLabel, ...rest }, externalRef) => {
|
|
5622
|
+
const internalRef = _react.useRef.call(void 0, null);
|
|
5623
|
+
React2.default.useImperativeHandle(externalRef, () => internalRef.current);
|
|
5624
|
+
_react.useEffect.call(void 0, () => {
|
|
5625
|
+
const el = internalRef.current;
|
|
5626
|
+
if (!el) return;
|
|
5627
|
+
el.customStyles = customStyle;
|
|
5628
|
+
const set = (attr, value) => {
|
|
5629
|
+
if (value !== void 0 && value !== null && value !== "") {
|
|
5630
|
+
el.setAttribute(attr, value.toString());
|
|
5631
|
+
} else {
|
|
5632
|
+
el.removeAttribute(attr);
|
|
5633
|
+
}
|
|
5634
|
+
};
|
|
5635
|
+
set("variant", variant);
|
|
5636
|
+
set("trigger", trigger);
|
|
5637
|
+
set("menu-direction", menuDirection);
|
|
5638
|
+
set("menu-offset", menuOffset);
|
|
5639
|
+
set("badge-label", badgeLabel);
|
|
5640
|
+
if (menuItems !== void 0) {
|
|
5641
|
+
el.setAttribute("menu-items", JSON.stringify(menuItems));
|
|
5663
5642
|
}
|
|
5664
|
-
)
|
|
5665
|
-
|
|
5666
|
-
}
|
|
5643
|
+
}, [customStyle, variant, trigger, menuDirection, menuOffset, menuItems, badgeLabel]);
|
|
5644
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-popup-menu", { ref: internalRef, ...rest, children });
|
|
5645
|
+
}
|
|
5646
|
+
);
|
|
5667
5647
|
WavelengthPopUpMenu.displayName = "WavelengthPopUpMenu";
|
|
5668
5648
|
|
|
5669
5649
|
// src/components/modals/WavelengthDropdown.tsx
|
|
@@ -5806,7 +5786,7 @@ WavelengthMenu.displayName = "WavelengthMenu";
|
|
|
5806
5786
|
// src/components/modals/WavelengthSwitch.tsx
|
|
5807
5787
|
|
|
5808
5788
|
|
|
5809
|
-
var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2, labelFont, checked, value, onWavelengthSwitchChange, customStyle
|
|
5789
|
+
var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2, labelFont, checked, value, onWavelengthSwitchChange, customStyle, ...rest }) => {
|
|
5810
5790
|
const ref = _react.useRef.call(void 0, null);
|
|
5811
5791
|
_react.useEffect.call(void 0, () => {
|
|
5812
5792
|
const el = ref.current;
|
|
@@ -5818,7 +5798,7 @@ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2,
|
|
|
5818
5798
|
el.setAttribute(attr, isBool ? "" : val.toString());
|
|
5819
5799
|
}
|
|
5820
5800
|
};
|
|
5821
|
-
el.customStyles =
|
|
5801
|
+
el.customStyles = customStyle;
|
|
5822
5802
|
syncAttribute("checked", checked, true);
|
|
5823
5803
|
syncAttribute("disabled", disabled, true);
|
|
5824
5804
|
syncAttribute("label", label);
|
|
@@ -5827,7 +5807,7 @@ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2,
|
|
|
5827
5807
|
syncAttribute("color", color2);
|
|
5828
5808
|
syncAttribute("label-font", labelFont);
|
|
5829
5809
|
syncAttribute("value", value);
|
|
5830
|
-
}, [checked, label, labelPlacement, size, disabled, color2, labelFont, value,
|
|
5810
|
+
}, [checked, label, labelPlacement, size, disabled, color2, labelFont, value, customStyle]);
|
|
5831
5811
|
_react.useEffect.call(void 0, () => {
|
|
5832
5812
|
const el = ref.current;
|
|
5833
5813
|
if (!el || !onWavelengthSwitchChange) return;
|
|
@@ -5841,6 +5821,102 @@ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2,
|
|
|
5841
5821
|
};
|
|
5842
5822
|
WavelengthSwitch.displayName = "WavelengthSwitch";
|
|
5843
5823
|
|
|
5824
|
+
// src/components/modals/WavelengthDialog.tsx
|
|
5825
|
+
|
|
5826
|
+
|
|
5827
|
+
var WavelengthDialog = ({
|
|
5828
|
+
children,
|
|
5829
|
+
customStyle,
|
|
5830
|
+
dialogTitle,
|
|
5831
|
+
leftBtnLabel,
|
|
5832
|
+
rightBtnLabel,
|
|
5833
|
+
boxColor,
|
|
5834
|
+
maxWidth: maxWidth2,
|
|
5835
|
+
maxHeight: maxHeight2,
|
|
5836
|
+
shadow,
|
|
5837
|
+
borderRadius: borderRadius2,
|
|
5838
|
+
borderColor: borderColor2,
|
|
5839
|
+
textColor,
|
|
5840
|
+
leftBtnBg,
|
|
5841
|
+
leftBtnColor,
|
|
5842
|
+
rightBtnBg,
|
|
5843
|
+
rightBtnColor,
|
|
5844
|
+
overlay,
|
|
5845
|
+
fontFamily,
|
|
5846
|
+
open,
|
|
5847
|
+
onWlLeftBtnClick,
|
|
5848
|
+
onWlRightBtnClick,
|
|
5849
|
+
...rest
|
|
5850
|
+
}) => {
|
|
5851
|
+
const ref = _react.useRef.call(void 0, null);
|
|
5852
|
+
_react.useEffect.call(void 0, () => {
|
|
5853
|
+
const el = ref.current;
|
|
5854
|
+
if (!el) return;
|
|
5855
|
+
if (open) el.setAttribute("open", "");
|
|
5856
|
+
else el.removeAttribute("open");
|
|
5857
|
+
}, [open]);
|
|
5858
|
+
_react.useEffect.call(void 0, () => {
|
|
5859
|
+
const el = ref.current;
|
|
5860
|
+
if (!el) return;
|
|
5861
|
+
if (overlay) el.setAttribute("overlay", "");
|
|
5862
|
+
else el.removeAttribute("overlay");
|
|
5863
|
+
}, [overlay]);
|
|
5864
|
+
_react.useEffect.call(void 0, () => {
|
|
5865
|
+
const el = ref.current;
|
|
5866
|
+
if (!el) return;
|
|
5867
|
+
const handleLeft = (e) => _optionalChain([onWlLeftBtnClick, 'optionalCall', _41 => _41(e)]);
|
|
5868
|
+
const handleRight = (e) => _optionalChain([onWlRightBtnClick, 'optionalCall', _42 => _42(e)]);
|
|
5869
|
+
el.addEventListener("wl-left-btn-click", handleLeft);
|
|
5870
|
+
el.addEventListener("wl-right-btn-click", handleRight);
|
|
5871
|
+
return () => {
|
|
5872
|
+
el.removeEventListener("wl-left-btn-click", handleLeft);
|
|
5873
|
+
el.removeEventListener("wl-right-btn-click", handleRight);
|
|
5874
|
+
};
|
|
5875
|
+
}, [onWlLeftBtnClick, onWlRightBtnClick]);
|
|
5876
|
+
_react.useEffect.call(void 0, () => {
|
|
5877
|
+
const el = ref.current;
|
|
5878
|
+
if (!el) return;
|
|
5879
|
+
if (customStyle !== void 0) el.customStyles = customStyle;
|
|
5880
|
+
const setAttr = (attr, value) => {
|
|
5881
|
+
if (value !== void 0) el.setAttribute(attr, value);
|
|
5882
|
+
};
|
|
5883
|
+
setAttr("dialog-title", dialogTitle);
|
|
5884
|
+
setAttr("left-btn-label", leftBtnLabel);
|
|
5885
|
+
setAttr("right-btn-label", rightBtnLabel);
|
|
5886
|
+
setAttr("box-color", boxColor);
|
|
5887
|
+
setAttr("max-width", maxWidth2);
|
|
5888
|
+
setAttr("max-height", maxHeight2);
|
|
5889
|
+
setAttr("shadow", shadow);
|
|
5890
|
+
setAttr("border-radius", borderRadius2);
|
|
5891
|
+
setAttr("border-color", borderColor2);
|
|
5892
|
+
setAttr("text-color", textColor);
|
|
5893
|
+
setAttr("left-btn-bg", leftBtnBg);
|
|
5894
|
+
setAttr("left-btn-color", leftBtnColor);
|
|
5895
|
+
setAttr("right-btn-bg", rightBtnBg);
|
|
5896
|
+
setAttr("right-btn-color", rightBtnColor);
|
|
5897
|
+
setAttr("font-family", fontFamily);
|
|
5898
|
+
}, [
|
|
5899
|
+
customStyle,
|
|
5900
|
+
dialogTitle,
|
|
5901
|
+
leftBtnLabel,
|
|
5902
|
+
rightBtnLabel,
|
|
5903
|
+
boxColor,
|
|
5904
|
+
maxWidth2,
|
|
5905
|
+
maxHeight2,
|
|
5906
|
+
shadow,
|
|
5907
|
+
borderRadius2,
|
|
5908
|
+
borderColor2,
|
|
5909
|
+
textColor,
|
|
5910
|
+
leftBtnBg,
|
|
5911
|
+
leftBtnColor,
|
|
5912
|
+
rightBtnBg,
|
|
5913
|
+
rightBtnColor,
|
|
5914
|
+
fontFamily
|
|
5915
|
+
]);
|
|
5916
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-dialog", { ref, ...rest, children });
|
|
5917
|
+
};
|
|
5918
|
+
WavelengthDialog.displayName = "WavelengthDialog";
|
|
5919
|
+
|
|
5844
5920
|
// src/components/modals/WavelengthPagination.tsx
|
|
5845
5921
|
|
|
5846
5922
|
|
|
@@ -5848,7 +5924,7 @@ var WavelengthPagination = ({
|
|
|
5848
5924
|
testProp,
|
|
5849
5925
|
children,
|
|
5850
5926
|
// Style argument
|
|
5851
|
-
customStyle
|
|
5927
|
+
customStyle,
|
|
5852
5928
|
variant,
|
|
5853
5929
|
textColor,
|
|
5854
5930
|
font,
|
|
@@ -5875,7 +5951,7 @@ var WavelengthPagination = ({
|
|
|
5875
5951
|
_react.useEffect.call(void 0, () => {
|
|
5876
5952
|
const el = ref.current;
|
|
5877
5953
|
if (!el) return;
|
|
5878
|
-
el.customStyles =
|
|
5954
|
+
el.customStyles = customStyle;
|
|
5879
5955
|
syncAttribute("variant", variant || "");
|
|
5880
5956
|
syncAttribute("text-color", textColor || "");
|
|
5881
5957
|
syncAttribute("font", font || "");
|
|
@@ -5887,8 +5963,8 @@ var WavelengthPagination = ({
|
|
|
5887
5963
|
syncAttribute("active-text-color", activeTextColor || "");
|
|
5888
5964
|
syncAttribute("background-color", backgroundColor2 || "");
|
|
5889
5965
|
syncAttribute("disabled-color", disabledColor || "");
|
|
5890
|
-
syncAttribute("total-pages", _optionalChain([totalPages, 'optionalAccess',
|
|
5891
|
-
syncAttribute("current-page", _optionalChain([currentPage, 'optionalAccess',
|
|
5966
|
+
syncAttribute("total-pages", _optionalChain([totalPages, 'optionalAccess', _43 => _43.toString, 'call', _44 => _44()]) || "");
|
|
5967
|
+
syncAttribute("current-page", _optionalChain([currentPage, 'optionalAccess', _45 => _45.toString, 'call', _46 => _46()]) || "");
|
|
5892
5968
|
const handlePageChange = (e) => {
|
|
5893
5969
|
if (onPageChange) {
|
|
5894
5970
|
onPageChange(e.detail.page);
|
|
@@ -6417,7 +6493,7 @@ WavelengthSlider.displayName = "WavelengthSlider";
|
|
|
6417
6493
|
|
|
6418
6494
|
// src/components/carousels/WavelengthDefaultCarousel.tsx
|
|
6419
6495
|
|
|
6420
|
-
|
|
6496
|
+
var _IconButton = require('@mui/material/IconButton'); var _IconButton2 = _interopRequireDefault(_IconButton);
|
|
6421
6497
|
var _NavigateBefore = require('@mui/icons-material/NavigateBefore'); var _NavigateBefore2 = _interopRequireDefault(_NavigateBefore);
|
|
6422
6498
|
var _NavigateNext = require('@mui/icons-material/NavigateNext'); var _NavigateNext2 = _interopRequireDefault(_NavigateNext);
|
|
6423
6499
|
|
|
@@ -6583,6 +6659,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
|
|
|
6583
6659
|
required,
|
|
6584
6660
|
forceError,
|
|
6585
6661
|
disabled,
|
|
6662
|
+
multiLine,
|
|
6586
6663
|
width: width2,
|
|
6587
6664
|
height: height2,
|
|
6588
6665
|
padding: padding2,
|
|
@@ -6603,7 +6680,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
|
|
|
6603
6680
|
const internalRef = _react.useRef.call(void 0, null);
|
|
6604
6681
|
_react.useImperativeHandle.call(void 0, ref, () => ({
|
|
6605
6682
|
...internalRef.current,
|
|
6606
|
-
validate: () => _optionalChain([internalRef, 'access',
|
|
6683
|
+
validate: () => _optionalChain([internalRef, 'access', _47 => _47.current, 'optionalAccess', _48 => _48.validate, 'optionalCall', _49 => _49(true)])
|
|
6607
6684
|
}));
|
|
6608
6685
|
_react.useEffect.call(void 0, () => {
|
|
6609
6686
|
const el = internalRef.current;
|
|
@@ -6645,6 +6722,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
|
|
|
6645
6722
|
set("helper-color", helperColor);
|
|
6646
6723
|
set("label", label);
|
|
6647
6724
|
set("disabled", disabled ? "" : void 0);
|
|
6725
|
+
set("multi-line", multiLine ? "" : void 0);
|
|
6648
6726
|
}, [
|
|
6649
6727
|
id,
|
|
6650
6728
|
name,
|
|
@@ -6674,13 +6752,14 @@ var WavelengthInput = _react.forwardRef.call(void 0,
|
|
|
6674
6752
|
focusColor,
|
|
6675
6753
|
helperColor,
|
|
6676
6754
|
label,
|
|
6677
|
-
disabled
|
|
6755
|
+
disabled,
|
|
6756
|
+
multiLine
|
|
6678
6757
|
]);
|
|
6679
6758
|
_react.useEffect.call(void 0, () => {
|
|
6680
6759
|
const el = internalRef.current;
|
|
6681
6760
|
if (!el || !onBlurCallback) return;
|
|
6682
6761
|
const handler = (e) => {
|
|
6683
|
-
const input = _optionalChain([el, 'access',
|
|
6762
|
+
const input = _optionalChain([el, 'access', _50 => _50.shadowRoot, 'optionalAccess', _51 => _51.querySelector, 'call', _52 => _52("input, textarea")]);
|
|
6684
6763
|
if (input) {
|
|
6685
6764
|
onBlurCallback();
|
|
6686
6765
|
}
|
|
@@ -6692,7 +6771,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
|
|
|
6692
6771
|
const el = internalRef.current;
|
|
6693
6772
|
if (!el || !onChange) return;
|
|
6694
6773
|
const handler = (e) => {
|
|
6695
|
-
const input = _optionalChain([el, 'access',
|
|
6774
|
+
const input = _optionalChain([el, 'access', _53 => _53.shadowRoot, 'optionalAccess', _54 => _54.querySelector, 'call', _55 => _55("input, textarea")]);
|
|
6696
6775
|
if (input) {
|
|
6697
6776
|
const synthetic = {
|
|
6698
6777
|
...e,
|
|
@@ -6895,7 +6974,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
6895
6974
|
const [noRowsOpen, setNoRowsOpen] = _react.useState.call(void 0, false);
|
|
6896
6975
|
const [isModalOpen, setIsModalOpen] = _react.useState.call(void 0, false);
|
|
6897
6976
|
const [searchItem, setSearchItem] = _react.useState.call(void 0, "");
|
|
6898
|
-
const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access',
|
|
6977
|
+
const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access', _56 => _56[0], 'optionalAccess', _57 => _57.key]) || "");
|
|
6899
6978
|
const [currentPage, setCurrentPage] = _react.useState.call(void 0, 1);
|
|
6900
6979
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
6901
6980
|
const [editingMenuKey, setEditingMenuKey] = _react.useState.call(void 0, null);
|
|
@@ -7049,7 +7128,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7049
7128
|
] }, index)
|
|
7050
7129
|
] }, `headCell-${index}`);
|
|
7051
7130
|
});
|
|
7052
|
-
const rows = !_optionalChain([currentPageData, 'optionalAccess',
|
|
7131
|
+
const rows = !_optionalChain([currentPageData, 'optionalAccess', _58 => _58.length]) || noRowsOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : _optionalChain([currentPageData, 'optionalAccess', _59 => _59.map, 'call', _60 => _60((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((column, index2) => {
|
|
7053
7132
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7054
7133
|
StyledInput,
|
|
7055
7134
|
{
|
|
@@ -7295,7 +7374,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7295
7374
|
}
|
|
7296
7375
|
if (sortSubOrder) {
|
|
7297
7376
|
result.map(
|
|
7298
|
-
(item) => _optionalChain([item, 'access',
|
|
7377
|
+
(item) => _optionalChain([item, 'access', _61 => _61.Details, 'optionalAccess', _62 => _62.fileObjects, 'access', _63 => _63.sort, 'call', _64 => _64((c, d) => {
|
|
7299
7378
|
const valueC = c[sortSubKey];
|
|
7300
7379
|
const valueD = d[sortSubKey];
|
|
7301
7380
|
if (typeof valueC === "string" && typeof valueD === "string") {
|
|
@@ -7356,24 +7435,24 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7356
7435
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
|
|
7357
7436
|
});
|
|
7358
7437
|
const subDataRows = (itemId) => {
|
|
7359
|
-
return processedRowData.filter((item) => _optionalChain([item, 'access',
|
|
7438
|
+
return processedRowData.filter((item) => _optionalChain([item, 'access', _65 => _65.Details, 'optionalAccess', _66 => _66.relationId]) === itemId).map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: _optionalChain([item, 'access', _67 => _67.Details, 'optionalAccess', _68 => _68.fileObjects, 'access', _69 => _69.map, 'call', _70 => _70((fileItem, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SubDataTableBodyRowContainer, { children: [
|
|
7360
7439
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadArrow, { onClick: downloadArrowOnClick, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7361
7440
|
"path",
|
|
7362
7441
|
{
|
|
7363
7442
|
d: "M8.5 12L3.5 7L4.9 5.55L7.5 8.15V0H9.5V8.15L12.1 5.55L13.5 7L8.5 12ZM2.5 16C1.95 16 1.47917 15.8042 1.0875 15.4125C0.695833 15.0208 0.5 14.55 0.5 14V11H2.5V14H14.5V11H16.5V14C16.5 14.55 16.3042 15.0208 15.9125 15.4125C15.5208 15.8042 15.05 16 14.5 16H2.5Z",
|
|
7364
7443
|
fill: "#1C1B1F"
|
|
7365
7444
|
}
|
|
7366
|
-
) }) }) }, `td-${_optionalChain([item, 'access',
|
|
7445
|
+
) }) }) }, `td-${_optionalChain([item, 'access', _71 => _71.Details, 'optionalAccess', _72 => _72.relationId])}-${fileItem.id}`),
|
|
7367
7446
|
SubDataColumns.map((column) => {
|
|
7368
7447
|
const columnKey = trimBeforePeriod2(column.key);
|
|
7369
7448
|
const value = fileItem[columnKey];
|
|
7370
7449
|
if (value !== void 0) {
|
|
7371
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access',
|
|
7450
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access', _73 => _73.Details, 'optionalAccess', _74 => _74.relationId])}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${_optionalChain([item, 'access', _75 => _75.Details, 'optionalAccess', _76 => _76.relationId])}-${fileItem.id}-${index}-${column.title}`);
|
|
7372
7451
|
}
|
|
7373
7452
|
})
|
|
7374
|
-
] }, `${item}-${_optionalChain([item, 'access',
|
|
7453
|
+
] }, `${item}-${_optionalChain([item, 'access', _77 => _77.Details, 'optionalAccess', _78 => _78.relationId])}-${fileItem.id}-${index}`))]) }, `SDR-${item.id}-${_optionalChain([item, 'access', _79 => _79.Details, 'optionalAccess', _80 => _80.relationId])}`));
|
|
7375
7454
|
};
|
|
7376
|
-
const dataRows = _optionalChain([processedRowData, 'optionalAccess',
|
|
7455
|
+
const dataRows = _optionalChain([processedRowData, 'optionalAccess', _81 => _81.map, 'call', _82 => _82((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BodyRowContainer, { children: [
|
|
7377
7456
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { $amountofColumns: HeadColumns.length, children: HeadColumns.map((column) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBodyCell, { $primaryBoldState: column.PrimaryBoldText, children: item[column.key] }, `TableBodycell-${item.id}-${column.key}`)) }),
|
|
7378
7457
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ButtonStylingRow, { children: [
|
|
7379
7458
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
|
|
@@ -7427,7 +7506,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
|
|
|
7427
7506
|
root = _client.createRoot.call(void 0, container);
|
|
7428
7507
|
reactDropdownRoots.current.set(container, root);
|
|
7429
7508
|
}
|
|
7430
|
-
const item = _optionalChain([data, 'optionalAccess',
|
|
7509
|
+
const item = _optionalChain([data, 'optionalAccess', _83 => _83.find, 'call', _84 => _84((item2) => String(item2.id) === String(itemId))]);
|
|
7431
7510
|
if (item && item.dropdown && root) {
|
|
7432
7511
|
root.render(item.dropdown);
|
|
7433
7512
|
}
|
|
@@ -7554,9 +7633,9 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
7554
7633
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
7555
7634
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: column.title }, `SubHeadCell-${index}`);
|
|
7556
7635
|
});
|
|
7557
|
-
const subDataRows = !_optionalChain([data, 'optionalAccess',
|
|
7636
|
+
const subDataRows = !_optionalChain([data, 'optionalAccess', _85 => _85.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) => {
|
|
7558
7637
|
const columnKey = trimBeforePeriod(column.key);
|
|
7559
|
-
const value = _optionalChain([item, 'access',
|
|
7638
|
+
const value = _optionalChain([item, 'access', _86 => _86.Details, 'optionalAccess', _87 => _87[columnKey]]);
|
|
7560
7639
|
console.log("value: ", value);
|
|
7561
7640
|
if (value !== void 0) {
|
|
7562
7641
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
@@ -7566,7 +7645,7 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
7566
7645
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: SubDataHeaders }) }),
|
|
7567
7646
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: subDataRows })
|
|
7568
7647
|
] });
|
|
7569
|
-
const rows = !_optionalChain([data, 'optionalAccess',
|
|
7648
|
+
const rows = !_optionalChain([data, 'optionalAccess', _88 => _88.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', _89 => _89.map, 'call', _90 => _90((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
7570
7649
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PrimaryTrRows, { $index: index, children: [
|
|
7571
7650
|
/* @__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" }) }),
|
|
7572
7651
|
HeadColumns.map((column, index2) => {
|
|
@@ -8064,7 +8143,7 @@ var SampleComponent = ({
|
|
|
8064
8143
|
testProp,
|
|
8065
8144
|
children,
|
|
8066
8145
|
// Style argument
|
|
8067
|
-
customStyle
|
|
8146
|
+
customStyle,
|
|
8068
8147
|
...rest
|
|
8069
8148
|
// This rest operator includes className, style, onClick, etc.
|
|
8070
8149
|
}) => {
|
|
@@ -8072,7 +8151,7 @@ var SampleComponent = ({
|
|
|
8072
8151
|
_react.useEffect.call(void 0, () => {
|
|
8073
8152
|
const el = ref.current;
|
|
8074
8153
|
if (!el) return;
|
|
8075
|
-
el.customStyles =
|
|
8154
|
+
el.customStyles = customStyle;
|
|
8076
8155
|
if (testProp !== void 0) {
|
|
8077
8156
|
el.setAttribute("test-prop", testProp);
|
|
8078
8157
|
}
|
|
@@ -8234,7 +8313,9 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
8234
8313
|
|
|
8235
8314
|
|
|
8236
8315
|
|
|
8237
|
-
|
|
8316
|
+
|
|
8317
|
+
|
|
8318
|
+
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.WavelengthBadge = WavelengthBadge; exports.WavelengthBanner = WavelengthBanner; exports.WavelengthBannerElement = _webcomponents.WavelengthBanner; exports.WavelengthBox = WavelengthBox; exports.WavelengthButton = WavelengthButton; exports.WavelengthButtonElement = _webcomponents.WavelengthButton; exports.WavelengthCheckbox = WavelengthCheckbox; 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.WavelengthDialog = WavelengthDialog; exports.WavelengthDragAndDrop = WavelengthDragAndDrop; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthDropdownButton = WavelengthDropdownButton; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDownloader = WavelengthFileDownloader; exports.WavelengthFileDropZone = WavelengthFileDropZone; exports.WavelengthFooter = WavelengthFooter; exports.WavelengthForm = WavelengthForm; exports.WavelengthFormElement = _webcomponents.WavelengthForm; exports.WavelengthInput = WavelengthInput; exports.WavelengthInputElement = _webcomponents.WavelengthInput; exports.WavelengthManyPlanes = WavelengthManyPlanes; exports.WavelengthMenu = WavelengthMenu; exports.WavelengthMultiSelectAutocomplete = WavelengthMultiSelectAutocomplete; exports.WavelengthMultiSelectAutocompleteElement = _webcomponents.WavelengthMultiSelectAutocomplete; exports.WavelengthNavBar = WavelengthNavBar; exports.WavelengthNotAvailablePage = WavelengthNotAvailablePage; exports.WavelengthNotificationPanel = WavelengthNotificationPanel; exports.WavelengthPagination = WavelengthPagination; exports.WavelengthPaginationElement = _webcomponents.WavelengthPagination; 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.WavelengthSwitch = WavelengthSwitch; exports.WavelengthTestSnackbar = WavelengthTestSnackbar; exports.WavelengthTitleBar = WavelengthTitleBar; exports.WavelengthTitleBarElement = _webcomponents.WavelengthTitleBar; exports.WavelengthToolTip = WavelengthToolTip; exports.WavelengthWebSnackbar = WavelengthWebSnackbar; exports.add = add; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
|
|
8238
8319
|
/*! Bundled license information:
|
|
8239
8320
|
|
|
8240
8321
|
react-is/cjs/react-is.production.min.js:
|