@secondstaxorg/sscomp 2.0.94 → 2.0.96
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.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +18 -17
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/ConsentCheckbox/style.d.ts +2 -0
- package/types/components/ConsentCheckbox/types.d.ts +15 -0
package/dist/index.js
CHANGED
|
@@ -19302,12 +19302,13 @@ const _jsxFileName$14 = "D:\\SSX\\Projects\\SSX Comps\\sscomp\\src\\components\\
|
|
|
19302
19302
|
const DateRangePicker = ({ selectedDateRange,label,subtext ,placeholder,showActionButtons,width,readonly,disablePastDays,disableFutureDays,labelOverrides,hidePickerInput,triggerClass,zIndex}) => {
|
|
19303
19303
|
const [startMonth, setStartMonth] = React$1.useState(()=>{
|
|
19304
19304
|
const startMo = new Date();
|
|
19305
|
-
if (disableFutureDays || !disablePastDays) startMo.setMonth(startMo.getMonth()
|
|
19305
|
+
if (disableFutureDays || !disablePastDays) startMo.setMonth(startMo.getMonth());
|
|
19306
19306
|
return startMo
|
|
19307
19307
|
});
|
|
19308
19308
|
const [endMonth, setEndMonth] = React$1.useState(() => {
|
|
19309
19309
|
const endMo = new Date();
|
|
19310
|
-
if (disablePastDays) endMo.setMonth(endMo.getMonth() + 1)
|
|
19310
|
+
// if (disablePastDays) endMo.setMonth(endMo.getMonth() + 1)
|
|
19311
|
+
endMo.setMonth(endMo.getMonth() + 1);
|
|
19311
19312
|
return endMo
|
|
19312
19313
|
});
|
|
19313
19314
|
|
|
@@ -19322,16 +19323,15 @@ const DateRangePicker = ({ selectedDateRange,label,subtext ,placeholder,showActi
|
|
|
19322
19323
|
const ccRef = React$1.useRef(null);
|
|
19323
19324
|
|
|
19324
19325
|
React$1.useEffect(()=>{
|
|
19325
|
-
|
|
19326
|
-
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
}
|
|
19326
|
+
if (showCalendar && ccRef.current){
|
|
19327
|
+
const calendarRect = ccRef.current.getBoundingClientRect();
|
|
19328
|
+
const viewportWidth = window.innerWidth;
|
|
19329
|
+
|
|
19330
|
+
if (calendarRect.right > viewportWidth){
|
|
19331
|
+
ccRef.current.style.left = 'auto';
|
|
19332
|
+
ccRef.current.style.right = '12px';
|
|
19333
|
+
}
|
|
19334
|
+
}
|
|
19335
19335
|
},[showCalendar]);
|
|
19336
19336
|
|
|
19337
19337
|
React$1.useEffect(()=>{
|
|
@@ -27100,7 +27100,7 @@ const Table = styled.table`
|
|
|
27100
27100
|
}
|
|
27101
27101
|
`;
|
|
27102
27102
|
|
|
27103
|
-
const _jsxFileName$o = "D:\\SSX\\Projects\\SSX Comps\\sscomp\\src\\components\\TablePrimary\\index.tsx"; function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain$c(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
27103
|
+
const _jsxFileName$o = "D:\\SSX\\Projects\\SSX Comps\\sscomp\\src\\components\\TablePrimary\\index.tsx"; function _nullishCoalesce$1(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain$c(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
27104
27104
|
/**
|
|
27105
27105
|
* Default SSX table component
|
|
27106
27106
|
*/
|
|
@@ -27167,7 +27167,7 @@ const TablePrimary = (props) => {
|
|
|
27167
27167
|
, thead.map((cellItem,index) => (
|
|
27168
27168
|
React$1.createElement('td', { key: index, className: (index == thead.length - 1 && clickedRow) ? 'with-arrow' : '', __self: undefined, __source: {fileName: _jsxFileName$o, lineNumber: 70}}
|
|
27169
27169
|
, React$1.createElement('span', {__self: undefined, __source: {fileName: _jsxFileName$o, lineNumber: 71}}
|
|
27170
|
-
, _nullishCoalesce(_optionalChain$c([cellItem, 'access', _ => _.component, 'optionalCall', _2 => _2(item)]), () => ( item[cellItem.dataKey]))
|
|
27170
|
+
, _nullishCoalesce$1(_optionalChain$c([cellItem, 'access', _ => _.component, 'optionalCall', _2 => _2(item)]), () => ( item[cellItem.dataKey]))
|
|
27171
27171
|
/*{item[cellItem.dataKey]}*/
|
|
27172
27172
|
)
|
|
27173
27173
|
, (index == thead.length - 1 && clickedRow) &&
|
|
@@ -27320,7 +27320,7 @@ const SelectorItem = styled.button`
|
|
|
27320
27320
|
}
|
|
27321
27321
|
`;
|
|
27322
27322
|
|
|
27323
|
-
const _jsxFileName$m = "D:\\SSX\\Projects\\SSX Comps\\sscomp\\src\\components\\Selector\\Selector.tsx"; function _optionalChain$b(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
27323
|
+
const _jsxFileName$m = "D:\\SSX\\Projects\\SSX Comps\\sscomp\\src\\components\\Selector\\Selector.tsx"; function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain$b(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
27324
27324
|
* Component for making selections. Usage could be in an onboarding process
|
|
27325
27325
|
*/
|
|
27326
27326
|
const Selector = (props) => {
|
|
@@ -27430,7 +27430,7 @@ const Selector = (props) => {
|
|
|
27430
27430
|
, subText && React$1.createElement('span', {__self: undefined, __source: {fileName: _jsxFileName$m, lineNumber: 115}}, subText)
|
|
27431
27431
|
)
|
|
27432
27432
|
|
|
27433
|
-
, React$1.createElement(FieldContainer$4, { className: `${arrangement} ${readonly ? 'read-only' : ''}`, style: {width:width
|
|
27433
|
+
, React$1.createElement(FieldContainer$4, { className: `${arrangement} ${readonly ? 'read-only' : ''}`, style: {width:_nullishCoalesce(width, () => ( '100%')),gridTemplateColumns:`repeat(${_nullishCoalesce(numCols, () => ( itemsList.length))},1fr)`}, __self: undefined, __source: {fileName: _jsxFileName$m, lineNumber: 118}}
|
|
27434
27434
|
, React$1.createElement(React$1.Fragment, null
|
|
27435
27435
|
, itemsList.map((item,index) => (
|
|
27436
27436
|
React$1.createElement(SelectorItem, { type: "button", key: index, className: evaluateSelection(item) ? 'selected' : '', onClick: () => {
|
|
@@ -27483,7 +27483,8 @@ const Selector = (props) => {
|
|
|
27483
27483
|
)
|
|
27484
27484
|
, errMsg ?
|
|
27485
27485
|
React$1.createElement('span', { className: "paragraph1Regular", __self: undefined, __source: {fileName: _jsxFileName$m, lineNumber: 170}}, errMsg)
|
|
27486
|
-
:
|
|
27486
|
+
:
|
|
27487
|
+
React$1.createElement('span', { className: "paragraph1Regular", __self: undefined, __source: {fileName: _jsxFileName$m, lineNumber: 172}}, _optionalChain$b([labelOverrides, 'optionalAccess', _2 => _2.selectOptionMsg]) || 'Select an option')
|
|
27487
27488
|
)
|
|
27488
27489
|
|
|
27489
27490
|
)
|