@hybridcore/ui 1.6.12 → 1.6.13
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/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +149 -41
- package/dist/components/charts/_common/utils.js +16 -11
- package/dist/components/collapsible-card/index.js +21 -30
- package/dist/components/collapsible-card/styled.js +16 -14
- package/dist/components/color-picker/index.js +2227 -3357
- package/dist/components/color-picker/styled.js +87 -7
- package/dist/components/confirm/dialog.js +89 -8
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-map/logic.js +20 -20
- package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
- package/dist/components/date-picker-with-custom-range/index.js +86 -7
- package/dist/components/date-range-picker/index.js +464 -452
- package/dist/components/document-viewer/components/viewer/index.js +1 -1
- package/dist/components/duration-select/index.js +10 -10
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +14 -14
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/kml/index.js +11 -11
- package/dist/components/geometry-picker/map/logic.js +145 -3656
- package/dist/components/geometry-picker/map/style.js +18 -17
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +77 -1924
- package/dist/components/instance-hierarchy-table/styled.js +18 -16
- package/dist/components/map/helpers/mapbox.js +17 -15
- package/dist/components/map/helpers/ol.js +386 -27
- package/dist/components/map/index.js +11 -10
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +31 -27
- package/dist/components/metric-card/logic.js +46 -49
- package/dist/components/phone-input/index.js +10 -9
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/prr-map/logic.js +27 -26
- package/dist/components/range-selector/styled.js +65 -4228
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +60 -57
- package/dist/components/simple-pivot-table/index.js +17 -17
- package/dist/components/simple-pivot-table/logic.js +67 -76
- package/dist/components/sortable-list/index.js +1091 -1264
- package/dist/components/template-form/components/property-list/index.js +36 -33
- package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
- package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
- package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
- package/dist/components/tree-select/index.js +16 -16
- package/dist/index.esm-UfGMjYOL.js +197 -0
- package/dist/main.d.ts +54 -8
- package/dist/main.js +176 -175
- package/package.json +1 -1
- package/dist/AccordionSummary-CJppWeqF.js +0 -781
- package/dist/Add-CqcD1PWb.js +0 -403
- package/dist/Box-DqUMmZjL.js +0 -31
- package/dist/Button-C5yquWAB.js +0 -357
- package/dist/ButtonBase-BEF7oTOe.js +0 -887
- package/dist/Delete-BdyYpINH.js +0 -23
- package/dist/DialogContent-BvVjD9z3.js +0 -523
- package/dist/FormGroup-CpBsIyYR.js +0 -89
- package/dist/IconButton-BoGwbvrP.js +0 -184
- package/dist/InputLabel-Dd8RrneV.js +0 -341
- package/dist/MenuItem-DwqJqzuM.js +0 -233
- package/dist/Modal-MUZygjmQ.js +0 -1158
- package/dist/Paper-BkQLdsCI.js +0 -582
- package/dist/Select-DHUl_uG3.js +0 -3916
- package/dist/Source-BSZST_GH.js +0 -4410
- package/dist/SwitchBase-DTndTqI8.js +0 -235
- package/dist/Text-ChJRuaD8.js +0 -2197
- package/dist/TextField-e2oKaUN1.js +0 -669
- package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
- package/dist/Typography-DgsSLCFC.js +0 -178
- package/dist/Vector-BmuhQO4p.js +0 -3606
- package/dist/Vector-DfTqQEln.js +0 -1735
- package/dist/WKT-2wsDT-nq.js +0 -2310
- package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
- package/dist/assets/index3.css +0 -1
- package/dist/assets/index4.css +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSvgIcon-Ch_cT8az.js +0 -185
- package/dist/createSvgIcon-DuDuASu1.js +0 -62
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/dialog-BYRnCztH.js +0 -154
- package/dist/formControlState-vgaj2ksH.js +0 -10
- package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
- package/dist/index-DH6qsPBn.js +0 -153
- package/dist/index-e9xTIYWt.js +0 -1934
- package/dist/index.esm-BLLrbTzY.js +0 -318
- package/dist/math-Bvt2Ubuz.js +0 -704
- package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
- package/dist/ol-yOE-NV0X.js +0 -7465
- package/dist/ownerWindow-wg6foiOE.js +0 -10
- package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
- package/dist/styled-SoqbyrkW.js +0 -350
- package/dist/unsupportedProp-DuqR2hj9.js +0 -36
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
- package/dist/useSlot-B_Q4vnX5.js +0 -42
package/dist/assets/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
#react-doc-viewer #proxy-renderer{background-color:#ededed;min-height:calc(100vh - 85px)}#react-doc-viewer #pdf-controls{position:fixed;z-index:9999;left:50%;top:7px;transform:translate(-50%);box-shadow:none}#react-doc-viewer #pdf-controls button,#react-doc-viewer #pdf-controls a{box-shadow:none;color:#9e9e9e}#react-doc-viewer #pdf-controls #pdf-download{display:none}#react-doc-viewer #image-img{max-width:100%;max-height:100%}#react-doc-viewer #pdf-page-wrapper{margin-top:20px;margin-bottom:20px}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors: active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;top:0;right:0;bottom:0;left:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;top:100%;right:0;bottom:0;left:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}
|
package/dist/assets/index2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:
|
|
1
|
+
.react-daterange-picker{display:inline-flex;position:relative}.react-daterange-picker,.react-daterange-picker *,.react-daterange-picker *:before,.react-daterange-picker *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.react-daterange-picker--disabled{background-color:#f0f0f0;color:#6d6d6d}.react-daterange-picker__wrapper{display:flex;flex-grow:1;flex-shrink:0;align-items:center;border:thin solid gray}.react-daterange-picker__inputGroup{min-width:calc((4px * 3) + .54em * 8 + .217em * 2);height:100%;flex-grow:1;padding:0 2px;box-sizing:content-box}.react-daterange-picker__inputGroup__divider{padding:1px 0;white-space:pre}.react-daterange-picker__inputGroup__divider,.react-daterange-picker__inputGroup__leadingZero{display:inline-block}.react-daterange-picker__inputGroup__input{min-width:.54em;height:100%;position:relative;padding:0 1px;border:0;background:none;color:currentColor;font:inherit;box-sizing:content-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.react-daterange-picker__inputGroup__input::-webkit-outer-spin-button,.react-daterange-picker__inputGroup__input::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.react-daterange-picker__inputGroup__input:invalid{background:#ff00001a}.react-daterange-picker__inputGroup__input--hasLeadingZero{margin-left:-.54em;padding-left:calc(1px + .54em)}.react-daterange-picker__button{border:0;background:transparent;padding:4px 6px}.react-daterange-picker__button:enabled{cursor:pointer}.react-daterange-picker__button:enabled:hover .react-daterange-picker__button__icon,.react-daterange-picker__button:enabled:focus .react-daterange-picker__button__icon{stroke:#0078d7}.react-daterange-picker__button:disabled .react-daterange-picker__button__icon{stroke:#6d6d6d}.react-daterange-picker__button svg{display:inherit}.react-daterange-picker__calendar{width:350px;max-width:100vw;z-index:1}.react-daterange-picker__calendar--closed{display:none}.react-daterange-picker__calendar .react-calendar{border-width:thin}.react-calendar{width:350px;max-width:100%;background:#fff;border:1px solid #a0a096;font-family:Arial,Helvetica,sans-serif;line-height:1.125em}.react-calendar--doubleView{width:700px}.react-calendar--doubleView .react-calendar__viewContainer{display:flex;margin:-.5em}.react-calendar--doubleView .react-calendar__viewContainer>*{width:50%;margin:.5em}.react-calendar,.react-calendar *,.react-calendar *:before,.react-calendar *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.react-calendar button{margin:0;border:0;outline:none}.react-calendar button:enabled:hover{cursor:pointer}.react-calendar__navigation{display:flex;height:44px;margin-bottom:1em}.react-calendar__navigation button{min-width:44px;background:none}.react-calendar__navigation button:disabled{background-color:#f0f0f0}.react-calendar__navigation button:enabled:hover,.react-calendar__navigation button:enabled:focus{background-color:#e6e6e6}.react-calendar__month-view__weekdays{text-align:center;text-transform:uppercase;font:inherit;font-size:.75em;font-weight:700}.react-calendar__month-view__weekdays__weekday{padding:.5em}.react-calendar__month-view__weekNumbers .react-calendar__tile{display:flex;align-items:center;justify-content:center;font:inherit;font-size:.75em;font-weight:700}.react-calendar__month-view__days__day--weekend{color:#d10000}.react-calendar__month-view__days__day--neighboringMonth,.react-calendar__decade-view__years__year--neighboringDecade,.react-calendar__century-view__decades__decade--neighboringCentury{color:#757575}.react-calendar__year-view .react-calendar__tile,.react-calendar__decade-view .react-calendar__tile,.react-calendar__century-view .react-calendar__tile{padding:2em .5em}.react-calendar__tile{max-width:100%;padding:10px 6.6667px;background:none;text-align:center;line-height:16px;font:inherit;font-size:.833em}.react-calendar__tile:disabled{background-color:#f0f0f0;color:#ababab}.react-calendar__month-view__days__day--neighboringMonth:disabled,.react-calendar__decade-view__years__year--neighboringDecade:disabled,.react-calendar__century-view__decades__decade--neighboringCentury:disabled{color:#cdcdcd}.react-calendar__tile:enabled:hover,.react-calendar__tile:enabled:focus{background-color:#e6e6e6}.react-calendar__tile--now{background:#ffff76}.react-calendar__tile--now:enabled:hover,.react-calendar__tile--now:enabled:focus{background:#ffffa9}.react-calendar__tile--hasActive{background:#76baff}.react-calendar__tile--hasActive:enabled:hover,.react-calendar__tile--hasActive:enabled:focus{background:#a9d4ff}.react-calendar__tile--active{background:#006edc;color:#fff}.react-calendar__tile--active:enabled:hover,.react-calendar__tile--active:enabled:focus{background:#1087ff}.react-calendar--selectRange .react-calendar__tile--hover{background-color:#e6e6e6}.react-daterange-picker .react-daterange-picker__wrapper{height:40px;border-radius:4px;padding:4px 8px;border:1px solid rgba(0,0,0,.23)}.react-daterange-picker .react-daterange-picker__wrapper:hover{border-color:#000000de}.MuiTypography-root.react-daterange-picker__label{position:absolute;display:block;top:-6px;left:9px;font-size:12px;color:#0009;background-color:#fff;z-index:9;padding:0 4px;line-height:.75rem}
|
|
@@ -1,55 +1,163 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import p from "dayjs";
|
|
2
|
+
import N from "dayjs/plugin/relativeTime";
|
|
3
|
+
p.extend(N);
|
|
4
|
+
const m = "—", h = (t) => {
|
|
5
|
+
const { decimals: e, notation: n } = t ?? {};
|
|
6
|
+
return n === "compact" ? new Intl.NumberFormat("en-US", {
|
|
7
|
+
notation: "compact",
|
|
8
|
+
compactDisplay: "short",
|
|
9
|
+
maximumFractionDigits: e ?? 1,
|
|
10
|
+
...e !== void 0 && { minimumFractionDigits: e }
|
|
11
|
+
}) : new Intl.NumberFormat(
|
|
12
|
+
"en-US",
|
|
13
|
+
e === void 0 ? { maximumFractionDigits: 2 } : { minimumFractionDigits: e, maximumFractionDigits: e }
|
|
14
|
+
);
|
|
15
|
+
}, a = (t) => {
|
|
16
|
+
if (typeof t == "boolean") return t;
|
|
17
|
+
if (typeof t == "number") return t === 1;
|
|
18
|
+
if (typeof t == "string") {
|
|
19
|
+
const e = t.trim().toLowerCase();
|
|
20
|
+
return e === "true" || e === "1";
|
|
21
|
+
}
|
|
22
|
+
return !1;
|
|
23
|
+
}, D = (t) => {
|
|
24
|
+
const e = t.toLowerCase();
|
|
25
|
+
return e.includes("year") ? "YYYY" : e.includes("month") ? "MMM YYYY" : e.includes("hour") || e.includes("minute") || e.includes("time") ? "DD MMM YYYY HH:mm" : "DD MMM YYYY";
|
|
26
|
+
}, Y = (t, e, n = "") => {
|
|
27
|
+
const r = p(t);
|
|
28
|
+
return r.isValid() ? e === "relative" ? r.fromNow() : r.format(e || D(n)) : String(t);
|
|
29
|
+
}, u = (t, e) => `${(t == null ? void 0 : t.prefix) ?? ""}${e}${(t == null ? void 0 : t.suffix) ?? ""}`, T = (t, e, n = m, r = "") => {
|
|
30
|
+
if (t == null || t === "") return n;
|
|
31
|
+
switch ((e == null ? void 0 : e.valueType) ?? (e != null && e.dateFormat ? "date" : "number")) {
|
|
32
|
+
case "date":
|
|
33
|
+
return Y(t, e == null ? void 0 : e.dateFormat, r);
|
|
34
|
+
case "boolean":
|
|
35
|
+
return a(t) ? (e == null ? void 0 : e.trueLabel) ?? "true" : (e == null ? void 0 : e.falseLabel) ?? "false";
|
|
36
|
+
case "text":
|
|
37
|
+
return u(e, String(t));
|
|
38
|
+
case "number":
|
|
39
|
+
default: {
|
|
40
|
+
const c = Number(t);
|
|
41
|
+
return Number.isNaN(c) ? u(e, String(t)) : u(e, h(e).format(c));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, S = (t) => {
|
|
45
|
+
if (!t) return;
|
|
46
|
+
const { prefix: e, suffix: n, decimals: r, notation: s } = t, c = s === "compact";
|
|
47
|
+
if (e === void 0 && n === void 0 && r === void 0 && !c)
|
|
14
48
|
return;
|
|
15
|
-
const
|
|
16
|
-
return `${
|
|
17
|
-
},
|
|
49
|
+
const g = c ? r === void 0 ? "#,###.#a" : r <= 0 ? "#,##0a" : `#,##0.${"0".repeat(r)}a` : r === void 0 ? "#,###.##" : r <= 0 ? "#,##0" : `#,##0.${"0".repeat(r)}`, l = (d) => d ? `'${d.replace(/'/g, "")}'` : "";
|
|
50
|
+
return `${l(e)}${g}${l(n)}`;
|
|
51
|
+
}, L = (t) => t && t.replace(/[_-]+/g, " ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/\s+/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()), o = (t) => t instanceof Date ? t.getTime() : typeof t == "number" ? t : typeof t == "string" && t !== "" ? Date.parse(t) : NaN, b = (t, e) => {
|
|
52
|
+
const n = new Date(t), r = new Date(e);
|
|
53
|
+
return n.getFullYear() === r.getFullYear() && n.getMonth() === r.getMonth() && n.getDate() === r.getDate();
|
|
54
|
+
}, w = (t, e) => {
|
|
55
|
+
const n = Number(t);
|
|
56
|
+
if (Number.isNaN(n)) return !1;
|
|
57
|
+
const r = Number(e.value);
|
|
58
|
+
switch (e.op) {
|
|
59
|
+
case "lt":
|
|
60
|
+
return n < r;
|
|
61
|
+
case "lte":
|
|
62
|
+
return n <= r;
|
|
63
|
+
case "gt":
|
|
64
|
+
return n > r;
|
|
65
|
+
case "gte":
|
|
66
|
+
return n >= r;
|
|
67
|
+
case "eq":
|
|
68
|
+
return n === r;
|
|
69
|
+
case "neq":
|
|
70
|
+
return n !== r;
|
|
71
|
+
case "between": {
|
|
72
|
+
const s = Number(e.value2);
|
|
73
|
+
return !Number.isNaN(s) && n >= r && n <= s;
|
|
74
|
+
}
|
|
75
|
+
default:
|
|
76
|
+
return !1;
|
|
77
|
+
}
|
|
78
|
+
}, y = (t, e) => {
|
|
79
|
+
const n = o(t), r = o(e.value);
|
|
80
|
+
if (Number.isNaN(n) || Number.isNaN(r)) return !1;
|
|
18
81
|
switch (e.op) {
|
|
19
82
|
case "lt":
|
|
20
|
-
return n <
|
|
83
|
+
return n < r;
|
|
21
84
|
case "lte":
|
|
22
|
-
return n <=
|
|
85
|
+
return n <= r;
|
|
23
86
|
case "gt":
|
|
24
|
-
return n >
|
|
87
|
+
return n > r;
|
|
25
88
|
case "gte":
|
|
26
|
-
return n >=
|
|
89
|
+
return n >= r;
|
|
27
90
|
case "eq":
|
|
28
|
-
return n
|
|
91
|
+
return b(n, r);
|
|
29
92
|
case "neq":
|
|
30
|
-
return n
|
|
31
|
-
case "between":
|
|
32
|
-
|
|
93
|
+
return !b(n, r);
|
|
94
|
+
case "between": {
|
|
95
|
+
const s = o(e.value2);
|
|
96
|
+
return !Number.isNaN(s) && n >= r && n <= s;
|
|
97
|
+
}
|
|
33
98
|
default:
|
|
34
99
|
return !1;
|
|
35
100
|
}
|
|
36
|
-
},
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
101
|
+
}, F = (t, e) => {
|
|
102
|
+
const n = String(t ?? "").toLowerCase(), r = String(e.value ?? "").toLowerCase();
|
|
103
|
+
switch (e.op) {
|
|
104
|
+
case "eq":
|
|
105
|
+
return n === r;
|
|
106
|
+
case "neq":
|
|
107
|
+
return n !== r;
|
|
108
|
+
case "contains":
|
|
109
|
+
return n.includes(r);
|
|
110
|
+
case "notContains":
|
|
111
|
+
return !n.includes(r);
|
|
112
|
+
case "startsWith":
|
|
113
|
+
return n.startsWith(r);
|
|
114
|
+
case "endsWith":
|
|
115
|
+
return n.endsWith(r);
|
|
116
|
+
case "isEmpty":
|
|
117
|
+
return n.trim() === "";
|
|
118
|
+
case "isNotEmpty":
|
|
119
|
+
return n.trim() !== "";
|
|
120
|
+
default:
|
|
121
|
+
return !1;
|
|
122
|
+
}
|
|
123
|
+
}, M = (t, e) => {
|
|
124
|
+
switch (e.op) {
|
|
125
|
+
case "isTrue":
|
|
126
|
+
return a(t);
|
|
127
|
+
case "isFalse":
|
|
128
|
+
return !a(t);
|
|
129
|
+
default:
|
|
130
|
+
return !1;
|
|
131
|
+
}
|
|
132
|
+
}, x = (t, e) => {
|
|
133
|
+
switch (e.type ?? "number") {
|
|
134
|
+
case "date":
|
|
135
|
+
return y(t, e);
|
|
136
|
+
case "text":
|
|
137
|
+
return F(t, e);
|
|
138
|
+
case "boolean":
|
|
139
|
+
return M(t, e);
|
|
140
|
+
case "number":
|
|
141
|
+
default:
|
|
142
|
+
return w(t, e);
|
|
143
|
+
}
|
|
144
|
+
}, i = (t) => t || void 0, f = (t, e) => {
|
|
145
|
+
const n = {
|
|
146
|
+
color: i(e == null ? void 0 : e.color),
|
|
147
|
+
backgroundColor: i(e == null ? void 0 : e.backgroundColor)
|
|
148
|
+
}, r = e == null ? void 0 : e.conditionalRules;
|
|
149
|
+
if (!(r != null && r.length)) return n;
|
|
150
|
+
const s = r.find((c) => x(t, c));
|
|
151
|
+
return s ? {
|
|
152
|
+
color: i(s.color) ?? n.color,
|
|
153
|
+
backgroundColor: i(s.backgroundColor) ?? n.backgroundColor
|
|
154
|
+
} : n;
|
|
49
155
|
};
|
|
50
156
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
157
|
+
S as buildAmNumberFormat,
|
|
158
|
+
D as defaultDateFormat,
|
|
159
|
+
Y as formatDateValue,
|
|
160
|
+
T as formatValue,
|
|
161
|
+
L as humanizeLabel,
|
|
162
|
+
f as resolveConditionalStyle
|
|
55
163
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { buildAmNumberFormat as
|
|
2
|
-
import { C as
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
1
|
+
import { buildAmNumberFormat as o } from "./format.js";
|
|
2
|
+
import { C as t } from "../../../ColorSet-cyPmWGwh.js";
|
|
3
|
+
import { c as u } from "../../../Entity-BJCuhdq_.js";
|
|
4
|
+
const n = [
|
|
5
5
|
"#294D94",
|
|
6
6
|
"#375F97",
|
|
7
7
|
"#44729C",
|
|
@@ -12,15 +12,20 @@ const a = [
|
|
|
12
12
|
"#9FCFBF",
|
|
13
13
|
"#B9E1C9",
|
|
14
14
|
"#D6F1D5"
|
|
15
|
-
], c = (r,
|
|
16
|
-
colors:
|
|
15
|
+
], c = (r, e = n) => t.new(r, {
|
|
16
|
+
colors: e.map((m) => u(m)),
|
|
17
17
|
reuse: !0
|
|
18
|
-
}),
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
}), s = [
|
|
19
|
+
{ number: 1e3, suffix: "K" },
|
|
20
|
+
{ number: 1e6, suffix: "M" },
|
|
21
|
+
{ number: 1e9, suffix: "B" },
|
|
22
|
+
{ number: 1e12, suffix: "T" }
|
|
23
|
+
], a = (r, e) => {
|
|
24
|
+
const m = o(e) ?? "#,###.##";
|
|
25
|
+
r.numberFormatter.set("numericFields", void 0), r.numberFormatter.set("numberFormat", m), (e == null ? void 0 : e.notation) === "compact" && r.numberFormatter.set("bigNumberPrefixes", s);
|
|
21
26
|
};
|
|
22
27
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
n as DEFAULT_VIRIDIS_COOL,
|
|
29
|
+
a as applyValueFormat,
|
|
25
30
|
c as colorSetFromPalette
|
|
26
31
|
};
|
|
@@ -1,34 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
var a = {}, p = c;
|
|
8
|
-
Object.defineProperty(a, "__esModule", {
|
|
9
|
-
value: !0
|
|
10
|
-
});
|
|
11
|
-
var o = a.default = void 0, v = p(l()), C = d;
|
|
12
|
-
o = a.default = (0, v.default)(/* @__PURE__ */ (0, C.jsx)("path", {
|
|
13
|
-
d: "M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"
|
|
14
|
-
}), "ArrowForwardIosSharp");
|
|
15
|
-
const A = { marginTop: 1, borderRadius: "13px" }, b = {
|
|
1
|
+
import { jsx as n, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import t from "@mui/icons-material/ArrowForwardIosSharp";
|
|
3
|
+
import { Container as d } from "../container/index.js";
|
|
4
|
+
import { useCollapsibleCardLogic as i } from "./logic.js";
|
|
5
|
+
import { Accordion as c, AccordionSummary as l, SummaryHeader as s, SummaryActions as m, AccordionDetails as x } from "./styled.js";
|
|
6
|
+
const u = { marginTop: 1, borderRadius: "13px" }, h = {
|
|
16
7
|
p: "0 !important",
|
|
17
8
|
m: 0,
|
|
18
9
|
"& .MuiPaper-root": { borderRadius: "13px" }
|
|
19
|
-
},
|
|
20
|
-
const { state:
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
10
|
+
}, y = (e) => {
|
|
11
|
+
const { state: o } = i(e), { ownerState: r } = o;
|
|
12
|
+
return /* @__PURE__ */ n(
|
|
13
|
+
d,
|
|
23
14
|
{
|
|
24
15
|
disableHeader: !0,
|
|
25
16
|
sx: [
|
|
26
|
-
|
|
17
|
+
u,
|
|
27
18
|
...Array.isArray(e.sx) ? e.sx : [e.sx]
|
|
28
19
|
],
|
|
29
|
-
contentSx:
|
|
30
|
-
children: /* @__PURE__ */
|
|
31
|
-
|
|
20
|
+
contentSx: h,
|
|
21
|
+
children: /* @__PURE__ */ a(
|
|
22
|
+
c,
|
|
32
23
|
{
|
|
33
24
|
disableGutters: !0,
|
|
34
25
|
elevation: 0,
|
|
@@ -37,19 +28,19 @@ const A = { marginTop: 1, borderRadius: "13px" }, b = {
|
|
|
37
28
|
expanded: e.expanded,
|
|
38
29
|
onChange: e.onChange,
|
|
39
30
|
children: [
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
|
|
31
|
+
/* @__PURE__ */ a(
|
|
32
|
+
l,
|
|
42
33
|
{
|
|
43
|
-
expandIcon: /* @__PURE__ */
|
|
34
|
+
expandIcon: /* @__PURE__ */ n(t, { sx: { fontSize: 12 } }),
|
|
44
35
|
"aria-controls": "panel1d-content",
|
|
45
36
|
id: "panel1d-header",
|
|
46
37
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ n(s, { ownerState: r, children: e.header }),
|
|
39
|
+
/* @__PURE__ */ n(m, { ownerState: r, children: e.actions })
|
|
49
40
|
]
|
|
50
41
|
}
|
|
51
42
|
),
|
|
52
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ n(x, { children: e.content })
|
|
53
44
|
]
|
|
54
45
|
}
|
|
55
46
|
)
|
|
@@ -57,5 +48,5 @@ const A = { marginTop: 1, borderRadius: "13px" }, b = {
|
|
|
57
48
|
);
|
|
58
49
|
};
|
|
59
50
|
export {
|
|
60
|
-
|
|
51
|
+
y as CollapsibleCard
|
|
61
52
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { styled as r, Box as a } from "@mui/material";
|
|
2
|
+
import i from "@mui/material/Accordion";
|
|
3
|
+
import n from "@mui/material/AccordionDetails";
|
|
4
|
+
import t from "@mui/material/AccordionSummary";
|
|
5
|
+
const e = (o) => o !== "ownerState", l = r(i, {
|
|
4
6
|
name: "HCCollapsibleCard",
|
|
5
7
|
slot: "accordion"
|
|
6
8
|
})({
|
|
@@ -10,7 +12,7 @@ const r = (o) => o !== "ownerState", m = a(n, {
|
|
|
10
12
|
"&:before": {
|
|
11
13
|
display: "none"
|
|
12
14
|
}
|
|
13
|
-
}),
|
|
15
|
+
}), p = r(t, {
|
|
14
16
|
name: "HCCollapsibleCard",
|
|
15
17
|
slot: "summary"
|
|
16
18
|
})(({ theme: o }) => ({
|
|
@@ -28,25 +30,25 @@ const r = (o) => o !== "ownerState", m = a(n, {
|
|
|
28
30
|
justifyContent: "space-between",
|
|
29
31
|
alignItems: "center"
|
|
30
32
|
}
|
|
31
|
-
})),
|
|
33
|
+
})), u = r(n, {
|
|
32
34
|
name: "HCCollapsibleCard",
|
|
33
35
|
slot: "details"
|
|
34
36
|
})(({ theme: o }) => ({
|
|
35
37
|
padding: o.spacing(2),
|
|
36
38
|
paddingTop: 0
|
|
37
|
-
})),
|
|
39
|
+
})), C = r(a, {
|
|
38
40
|
name: "HCCollapsibleCard",
|
|
39
41
|
slot: "summaryHeader",
|
|
40
|
-
shouldForwardProp:
|
|
41
|
-
})({}),
|
|
42
|
+
shouldForwardProp: e
|
|
43
|
+
})({}), y = r(a, {
|
|
42
44
|
name: "HCCollapsibleCard",
|
|
43
45
|
slot: "summaryActions",
|
|
44
|
-
shouldForwardProp:
|
|
46
|
+
shouldForwardProp: e
|
|
45
47
|
})({});
|
|
46
48
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
l as Accordion,
|
|
50
|
+
u as AccordionDetails,
|
|
51
|
+
p as AccordionSummary,
|
|
52
|
+
y as SummaryActions,
|
|
53
|
+
C as SummaryHeader
|
|
52
54
|
};
|