sag_components 2.0.0-beta166 → 2.0.0-beta167
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/index.d.ts +2 -1
- package/dist/index.esm.js +46 -36
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +46 -36
- package/dist/index.js.map +1 -1
- package/dist/types/components/ItemManagerPanel/ItemManagerPanel.d.ts +2 -1
- package/dist/types/components/ItemManagerPanel/NewSubitem/NewSubitem.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1509,7 +1509,7 @@ declare function RangePop(props: any): react_jsx_runtime.JSX.Element;
|
|
|
1509
1509
|
|
|
1510
1510
|
declare function SearchInput(props: any): react_jsx_runtime.JSX.Element;
|
|
1511
1511
|
|
|
1512
|
-
declare function ItemManagerPanel({ width, height, disableSection, onSendForms, editMode, disabledSendForms, AllFormsSent, itemAndPackage, setItemAndPackage, linkColor, backgroundColor, buttonTooltipText, trashTooltipText, maxVisibleVendors }: {
|
|
1512
|
+
declare function ItemManagerPanel({ width, height, disableSection, onSendForms, editMode, disabledSendForms, AllFormsSent, itemAndPackage, setItemAndPackage, linkColor, backgroundColor, buttonTooltipText, trashTooltipText, maxVisibleVendors, componentText }: {
|
|
1513
1513
|
width?: string;
|
|
1514
1514
|
height?: string;
|
|
1515
1515
|
disableSection?: boolean;
|
|
@@ -1524,6 +1524,7 @@ declare function ItemManagerPanel({ width, height, disableSection, onSendForms,
|
|
|
1524
1524
|
buttonTooltipText?: string;
|
|
1525
1525
|
trashTooltipText?: string;
|
|
1526
1526
|
maxVisibleVendors?: number;
|
|
1527
|
+
componentText?: string;
|
|
1527
1528
|
}): react_jsx_runtime.JSX.Element;
|
|
1528
1529
|
|
|
1529
1530
|
/**
|
package/dist/index.esm.js
CHANGED
|
@@ -34705,16 +34705,15 @@ css`
|
|
|
34705
34705
|
* • onApply(start,end) – callback, both numbers (inclusive)
|
|
34706
34706
|
* • onCancel() – callback
|
|
34707
34707
|
*/
|
|
34708
|
-
const WeeksCalendar =
|
|
34709
|
-
|
|
34710
|
-
|
|
34711
|
-
|
|
34712
|
-
|
|
34713
|
-
|
|
34714
|
-
|
|
34715
|
-
|
|
34716
|
-
|
|
34717
|
-
} = _ref;
|
|
34708
|
+
const WeeksCalendar = ({
|
|
34709
|
+
year,
|
|
34710
|
+
defaultStartWeek = null,
|
|
34711
|
+
defaultEndWeek = null,
|
|
34712
|
+
backgroundColor = "#066768",
|
|
34713
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34714
|
+
onApply,
|
|
34715
|
+
onCancel
|
|
34716
|
+
}) => {
|
|
34718
34717
|
// state -------------------------------------------------
|
|
34719
34718
|
const [startWeek, setStartWeek] = useState(defaultStartWeek);
|
|
34720
34719
|
const [endWeek, setEndWeek] = useState(defaultEndWeek);
|
|
@@ -35614,9 +35613,12 @@ const ToggleSwitchLabel = styled.label`
|
|
|
35614
35613
|
position: relative;
|
|
35615
35614
|
cursor: pointer;
|
|
35616
35615
|
user-select: none;
|
|
35617
|
-
opacity: ${
|
|
35618
|
-
|
|
35619
|
-
|
|
35616
|
+
opacity: ${_ref => {
|
|
35617
|
+
let {
|
|
35618
|
+
disabled
|
|
35619
|
+
} = _ref;
|
|
35620
|
+
return disabled ? 0.5 : 1;
|
|
35621
|
+
}};
|
|
35620
35622
|
`;
|
|
35621
35623
|
const ToggleInput = styled.input`
|
|
35622
35624
|
display: none;
|
|
@@ -35624,15 +35626,19 @@ const ToggleInput = styled.input`
|
|
|
35624
35626
|
const ToggleSlider = styled.span`
|
|
35625
35627
|
display: block;
|
|
35626
35628
|
position: relative;
|
|
35627
|
-
background: ${
|
|
35628
|
-
|
|
35629
|
-
|
|
35630
|
-
|
|
35629
|
+
background: ${_ref2 => {
|
|
35630
|
+
let {
|
|
35631
|
+
checked,
|
|
35632
|
+
disabled
|
|
35633
|
+
} = _ref2;
|
|
35634
|
+
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
35635
|
+
}};
|
|
35631
35636
|
border-radius: 999px;
|
|
35632
35637
|
transition: background 0.2s;
|
|
35633
|
-
${
|
|
35634
|
-
|
|
35635
|
-
|
|
35638
|
+
${_ref3 => {
|
|
35639
|
+
let {
|
|
35640
|
+
size
|
|
35641
|
+
} = _ref3;
|
|
35636
35642
|
switch (size) {
|
|
35637
35643
|
case "s":
|
|
35638
35644
|
return css`width: 40px; height: 20px;`;
|
|
@@ -35651,9 +35657,10 @@ const ToggleSlider = styled.span`
|
|
|
35651
35657
|
background: #fff;
|
|
35652
35658
|
border-radius: 50%;
|
|
35653
35659
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
35654
|
-
${
|
|
35655
|
-
|
|
35656
|
-
|
|
35660
|
+
${_ref4 => {
|
|
35661
|
+
let {
|
|
35662
|
+
size
|
|
35663
|
+
} = _ref4;
|
|
35657
35664
|
switch (size) {
|
|
35658
35665
|
case "s":
|
|
35659
35666
|
return css`width: 14px; height: 14px;`;
|
|
@@ -35663,10 +35670,11 @@ const ToggleSlider = styled.span`
|
|
|
35663
35670
|
return css`width: 20px; height: 20px;`;
|
|
35664
35671
|
}
|
|
35665
35672
|
}}
|
|
35666
|
-
left: ${
|
|
35667
|
-
|
|
35668
|
-
|
|
35669
|
-
|
|
35673
|
+
left: ${_ref5 => {
|
|
35674
|
+
let {
|
|
35675
|
+
checked,
|
|
35676
|
+
size
|
|
35677
|
+
} = _ref5;
|
|
35670
35678
|
if (!checked) return "3px";
|
|
35671
35679
|
switch (size) {
|
|
35672
35680
|
case "s":
|
|
@@ -43788,10 +43796,11 @@ const NewSubitem = ({
|
|
|
43788
43796
|
packageObject,
|
|
43789
43797
|
vendor,
|
|
43790
43798
|
onBack,
|
|
43791
|
-
addNewPackage
|
|
43799
|
+
addNewPackage,
|
|
43800
|
+
componentText = "Scale"
|
|
43792
43801
|
}) => {
|
|
43793
43802
|
const [negotiatedBrands, setNegotiatedBrands] = useState("");
|
|
43794
|
-
const [negotiatedComponent, setNegotiatedComponent] = useState(
|
|
43803
|
+
const [negotiatedComponent, setNegotiatedComponent] = useState(componentText);
|
|
43795
43804
|
|
|
43796
43805
|
// Form state
|
|
43797
43806
|
const isApplyEnabled = negotiatedBrands.trim().length > 2;
|
|
@@ -52506,7 +52515,8 @@ const ItemManagerPanel = _ref => {
|
|
|
52506
52515
|
backgroundColor = 'white',
|
|
52507
52516
|
buttonTooltipText = "Please fill out all forms before sending.",
|
|
52508
52517
|
trashTooltipText = 'Package cannot be deleted since it has been sent to the vendor as a form.',
|
|
52509
|
-
maxVisibleVendors = 12
|
|
52518
|
+
maxVisibleVendors = 12,
|
|
52519
|
+
componentText = "Scale"
|
|
52510
52520
|
} = _ref;
|
|
52511
52521
|
const [screen, setScreen] = useState("initial");
|
|
52512
52522
|
const [selectedVendor, setSelectedVendor] = useState(null);
|
|
@@ -52702,7 +52712,8 @@ const ItemManagerPanel = _ref => {
|
|
|
52702
52712
|
addNewPackage: addNewPackage,
|
|
52703
52713
|
updateExistingPackage: updateExistingPackage,
|
|
52704
52714
|
isEditingExisting: isEditingExisting,
|
|
52705
|
-
onBack: () => setScreen("subitem")
|
|
52715
|
+
onBack: () => setScreen("subitem"),
|
|
52716
|
+
componentText: componentText
|
|
52706
52717
|
}));
|
|
52707
52718
|
}
|
|
52708
52719
|
if (screen === "list") {
|
|
@@ -52920,11 +52931,10 @@ const DropdownList = styled.ul`
|
|
|
52920
52931
|
`}
|
|
52921
52932
|
`;
|
|
52922
52933
|
const SectionDiv = styled.div`
|
|
52923
|
-
${
|
|
52924
|
-
|
|
52925
|
-
|
|
52926
|
-
|
|
52927
|
-
} = _ref;
|
|
52934
|
+
${({
|
|
52935
|
+
$showBorder,
|
|
52936
|
+
margin
|
|
52937
|
+
}) => {
|
|
52928
52938
|
switch ($showBorder) {
|
|
52929
52939
|
case 'Template Offer':
|
|
52930
52940
|
return css`border-top: 1px solid #e6e2e2ff;
|