@cwellt_software/cwellt-reactjs-lib 1.4.12 → 1.4.14
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.cjs.js +370 -16
- package/dist/index.css +1 -1
- package/dist/index.d.ts +110 -63
- package/dist/index.es.js +370 -17
- package/dist/src/components/control/action/button/CwButton.d.ts +1 -1
- package/dist/src/components/control/action/button/CwButton.d.ts.map +1 -1
- package/dist/src/components/control/action/buttons/CwButtons.d.ts +5 -5
- package/dist/src/components/control/action/buttons/CwButtons.d.ts.map +1 -1
- package/dist/src/components/control/action/search/CwSearch.d.ts +1 -1
- package/dist/src/components/control/action/search/CwSearch.d.ts.map +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheck.d.ts +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheck.d.ts.map +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheckbox.d.ts +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheckbox.d.ts.map +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.d.ts +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.d.ts.map +1 -1
- package/dist/src/components/control/choice/dropdown/CwDropdownFilter.d.ts +1 -1
- package/dist/src/components/control/choice/dropdown/CwDropdownFilter.d.ts.map +1 -1
- package/dist/src/components/control/choice/dropdown/CwPopoverButton.d.ts +1 -1
- package/dist/src/components/control/choice/dropdown/CwPopoverButton.d.ts.map +1 -1
- package/dist/src/components/control/choice/option/CwOption.d.ts +1 -1
- package/dist/src/components/control/choice/option/CwOption.d.ts.map +1 -1
- package/dist/src/components/control/choice/select/CwDropdown.d.ts +1 -1
- package/dist/src/components/control/choice/select/CwDropdown.d.ts.map +1 -1
- package/dist/src/components/control/choice/select/CwSelect.d.ts +1 -1
- package/dist/src/components/control/choice/select/CwSelect.d.ts.map +1 -1
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.d.ts +1 -1
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.d.ts.map +1 -1
- package/dist/src/components/control/choice/toggle/CwToggle.d.ts +1 -1
- package/dist/src/components/control/choice/toggle/CwToggle.d.ts.map +1 -1
- package/dist/src/components/control/choice/tree-view/CwTreeView.d.ts +1 -1
- package/dist/src/components/control/choice/tree-view/CwTreeView.d.ts.map +1 -1
- package/dist/src/components/control/input/any/CwInput.d.ts +1 -1
- package/dist/src/components/control/input/any/CwInput.d.ts.map +1 -1
- package/dist/src/components/control/input/date-text/CwInputDateText.d.ts +1 -1
- package/dist/src/components/control/input/date-text/CwInputDateText.d.ts.map +1 -1
- package/dist/src/components/control/input/datetime/CwInputDatetime.d.ts +1 -1
- package/dist/src/components/control/input/datetime/CwInputDatetime.d.ts.map +1 -1
- package/dist/src/components/control/input/digit/CwDigit.d.ts +1 -1
- package/dist/src/components/control/input/digit/CwDigit.d.ts.map +1 -1
- package/dist/src/components/control/input/file/CwFileUpload.d.ts +1 -1
- package/dist/src/components/control/input/file/CwFileUpload.d.ts.map +1 -1
- package/dist/src/components/control/input/file/CwFileUploadMultiple.d.ts +1 -1
- package/dist/src/components/control/input/file/CwFileUploadMultiple.d.ts.map +1 -1
- package/dist/src/components/control/input/image/CwInputImage.d.ts +1 -1
- package/dist/src/components/control/input/image/CwInputImage.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts +2 -1
- package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDatePickerTemporal.d.ts +2 -1
- package/dist/src/components/control/input/new-dates/CwDatePickerTemporal.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePickerTemporal.d.ts +2 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePickerTemporal.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts +2 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePickerTemporal.d.ts +52 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePickerTemporal.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts +4 -3
- package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/domain/DateTimePickerState.d.ts +78 -0
- package/dist/src/components/control/input/new-dates/domain/DateTimePickerState.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/useCwDateTimePickerTemporal.d.ts +29 -0
- package/dist/src/components/control/input/new-dates/useCwDateTimePickerTemporal.d.ts.map +1 -0
- package/dist/src/components/control/input/number/CwInputNumber.d.ts +1 -1
- package/dist/src/components/control/input/number/CwInputNumber.d.ts.map +1 -1
- package/dist/src/components/control/input/phone/CwInputPhone.d.ts +1 -1
- package/dist/src/components/control/input/phone/CwInputPhone.d.ts.map +1 -1
- package/dist/src/components/control/input/text/CwInputText.d.ts +1 -1
- package/dist/src/components/control/input/text/CwInputText.d.ts.map +1 -1
- package/dist/src/components/control/input/text-area/CwTextArea.d.ts +1 -1
- package/dist/src/components/control/input/text-area/CwTextArea.d.ts.map +1 -1
- package/dist/src/components/control/input/time/CwTime.d.ts +1 -1
- package/dist/src/components/control/input/time/CwTime.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/CwSchedulerComp.d.ts +1 -1
- package/dist/src/components/custom/scheduler/CwSuperSchedulerComp.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/DayHeader.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/DayHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/MonthHeader.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/MonthHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/WeekHeader.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/WeekHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/scheduler_timeline/SchedulerTimeLine.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/scheduler_timeline/SchedulerTimeLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/time_headers/TimeHeader.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/time_headers/TimeHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/NewScheduler.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/NewScheduler.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderDivision.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderDivision.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderTitle.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderTitle.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgroundEvent.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgroundEvent.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/Event.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/Event.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/SchedulerRow.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/SchedulerRow.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.d.ts.map +1 -1
- package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts +1 -1
- package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts.map +1 -1
- package/dist/src/components/custom/super-scheduler/SuperScheduler.d.ts +2 -2
- package/dist/src/components/custom/super-scheduler/SuperScheduler.d.ts.map +1 -1
- package/dist/src/components/display/data/accordion/CwAccordionContainer.d.ts +1 -1
- package/dist/src/components/display/data/accordion/CwAccordionContainer.d.ts.map +1 -1
- package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.d.ts +2 -2
- package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.d.ts.map +1 -1
- package/dist/src/components/display/data/table/CwTable.d.ts +1 -1
- package/dist/src/components/display/data/table/CwTable.d.ts.map +1 -1
- package/dist/src/components/display/data/table-serverside/CwTableServerSide.d.ts +1 -1
- package/dist/src/components/display/data/table-serverside/CwTableServerSide.d.ts.map +1 -1
- package/dist/src/components/display/data/table_sortable/CwSortableTable.d.ts +1 -1
- package/dist/src/components/display/data/table_sortable/CwSortableTable.d.ts.map +1 -1
- package/dist/src/components/display/data/tooltip_manager/CwTooltipManager.d.ts.map +1 -1
- package/dist/src/components/display/graphics/icon/CwIcon.d.ts +2 -2
- package/dist/src/components/display/graphics/icon/CwIcon.d.ts.map +1 -1
- package/dist/src/components/display/graphics/icon/svg-icons.d.ts +2 -2
- package/dist/src/components/display/graphics/image-gallery/CwImageGallery.d.ts +1 -1
- package/dist/src/components/display/graphics/image-gallery/CwImageGallery.d.ts.map +1 -1
- package/dist/src/components/display/graphics/image-zoom/CwImageZoom.d.ts +1 -1
- package/dist/src/components/display/graphics/image-zoom/CwImageZoom.d.ts.map +1 -1
- package/dist/src/components/display/graphics/loading/CwLoading.d.ts +1 -1
- package/dist/src/components/display/graphics/loading/CwLoading.d.ts.map +1 -1
- package/dist/src/components/display/graphics/loading-small/CwLoadingSmall.d.ts +1 -1
- package/dist/src/components/display/graphics/loading-small/CwLoadingSmall.d.ts.map +1 -1
- package/dist/src/components/display/text/heading/CwHeadingMain.d.ts +1 -1
- package/dist/src/components/display/text/heading/CwHeadingMain.d.ts.map +1 -1
- package/dist/src/components/display/text/heading/CwHeadingSecond.d.ts +1 -1
- package/dist/src/components/display/text/heading/CwHeadingSecond.d.ts.map +1 -1
- package/dist/src/components/display/text/label/CwLabel.d.ts +1 -1
- package/dist/src/components/display/text/label/CwLabel.d.ts.map +1 -1
- package/dist/src/components/display/text/message/CwMessage.d.ts +1 -1
- package/dist/src/components/layout/align/CwAlign.d.ts +1 -1
- package/dist/src/components/layout/align/CwAlign.d.ts.map +1 -1
- package/dist/src/components/layout/card/CwCardList.d.ts +1 -1
- package/dist/src/components/layout/card/CwCardList.d.ts.map +1 -1
- package/dist/src/components/layout/confirmation-popup/CwConfirmationPopup.d.ts +2 -2
- package/dist/src/components/layout/confirmation-popup/CwConfirmationPopup.d.ts.map +1 -1
- package/dist/src/components/layout/list/sortable/CwSortableList.d.ts +2 -2
- package/dist/src/components/layout/list/sortable/CwSortableList.d.ts.map +1 -1
- package/dist/src/components/layout/modal/legacy/cw_modal.d.ts +1 -1
- package/dist/src/components/layout/modal/legacy/cw_modal.d.ts.map +1 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_report.d.ts +1 -1
- package/dist/src/components/layout/tabs/CwTabs.d.ts +1 -1
- package/dist/src/components/layout/tabs/CwTabs.d.ts.map +1 -1
- package/dist/src/dev/index.d.ts +1 -1
- package/dist/src/dev/index.d.ts.map +1 -1
- package/dist/src/dev/palette.d.ts +2 -2
- package/dist/src/dev/palette.d.ts.map +1 -1
- package/dist/src/dev/previews.d.ts +2 -1
- package/dist/src/dev/previews.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/playground/PlaygroundApp.d.ts.map +1 -1
- package/dist/src/playground/pages/DatePickerTemporalPage.d.ts.map +1 -1
- package/dist/src/playground/pages/TooltipCrashPage.d.ts +3 -0
- package/dist/src/playground/pages/TooltipCrashPage.d.ts.map +1 -0
- package/dist/test/components/control/input/new-dates/DateTimePickerState.test.d.ts +2 -0
- package/dist/test/components/control/input/new-dates/DateTimePickerState.test.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -199,6 +199,11 @@ const showTooltip = (content, triggerElement, position = "right", dissapearsWhen
|
|
|
199
199
|
constraintRect: constraintElement?.getBoundingClientRect()
|
|
200
200
|
};
|
|
201
201
|
stateUpdateCallbacks.forEach((cb) => cb());
|
|
202
|
+
// Self-heal: if the manager root died (e.g. a prior uncaught error), rebuild
|
|
203
|
+
// it now. The fresh manager initializes from the currentState set above, so
|
|
204
|
+
// this tooltip still shows on this hover — no page reload required. No-op
|
|
205
|
+
// (cheap guard return) when the manager is alive.
|
|
206
|
+
ensureTooltipManager();
|
|
202
207
|
};
|
|
203
208
|
const hideTooltip = (delay = 100) => {
|
|
204
209
|
if (hideTimeout !== undefined) {
|
|
@@ -239,15 +244,59 @@ const calculatePositionForSide$1 = (position, triggerRect, tooltipRect) => {
|
|
|
239
244
|
}
|
|
240
245
|
};
|
|
241
246
|
const MANAGER_CONTAINER_CLASS = "cw-tooltip-manager";
|
|
247
|
+
// Live reference to the manager's React root. Non-null while the manager is
|
|
248
|
+
// mounted (or being built), null once it unmounts — including when React tears
|
|
249
|
+
// the root down after an uncaught error. This is the liveness signal used to
|
|
250
|
+
// self-heal: a dead root leaves a stale container div in the DOM, so checking
|
|
251
|
+
// the div alone (as before) would never rebuild. The manager's effect nulls it
|
|
252
|
+
// on unmount (see CwTooltipManager).
|
|
253
|
+
let managerRoot = null;
|
|
242
254
|
const ensureTooltipManager = () => {
|
|
243
|
-
|
|
255
|
+
// Truthy => alive or already being built this tick (guards against the many
|
|
256
|
+
// CwTooltipNew that mount in the same commit each spinning up their own root).
|
|
257
|
+
if (managerRoot)
|
|
244
258
|
return;
|
|
259
|
+
// Remove any dead container left behind by a previous crash before rebuilding.
|
|
260
|
+
document.querySelectorAll(`.${MANAGER_CONTAINER_CLASS}`).forEach((el) => el.remove());
|
|
245
261
|
const container = document.createElement("div");
|
|
246
262
|
container.className = MANAGER_CONTAINER_CLASS;
|
|
247
263
|
document.body.appendChild(container);
|
|
248
|
-
|
|
249
|
-
|
|
264
|
+
managerRoot = createRoot(container);
|
|
265
|
+
managerRoot.render(jsx(CwTooltipManager, {}));
|
|
250
266
|
};
|
|
267
|
+
/**
|
|
268
|
+
* Isolates a crashing tooltip's content from the shared singleton root.
|
|
269
|
+
* Without this, an error thrown while rendering any single tooltip's content
|
|
270
|
+
* would unmount the whole CwTooltipManager root, killing every tooltip across
|
|
271
|
+
* the app until a full page reload.
|
|
272
|
+
*
|
|
273
|
+
* NOTE: React error boundaries can ONLY be implemented as class components —
|
|
274
|
+
* there is no hook / functional-component equivalent (see the React docs). This
|
|
275
|
+
* is the accepted exception to the project's functional-component convention;
|
|
276
|
+
* it is intentional infrastructure, not a refactor target — do not flag it.
|
|
277
|
+
*/
|
|
278
|
+
class TooltipErrorBoundary extends React__default.Component {
|
|
279
|
+
state = { hasError: false };
|
|
280
|
+
static getDerivedStateFromError() {
|
|
281
|
+
return { hasError: true };
|
|
282
|
+
}
|
|
283
|
+
componentDidCatch(error) {
|
|
284
|
+
// Contain the crash: log it, then hide the tooltip so the manager stays
|
|
285
|
+
// mounted and the next hover works normally.
|
|
286
|
+
console.error("CwTooltip content crashed; hiding tooltip.", error);
|
|
287
|
+
this.props.onError();
|
|
288
|
+
}
|
|
289
|
+
componentDidUpdate(prevProps) {
|
|
290
|
+
// Recover for the hover-to-adjacent-element case, where content swaps
|
|
291
|
+
// without the boundary unmounting: clear the error so new content renders.
|
|
292
|
+
if (this.state.hasError && prevProps.children !== this.props.children) {
|
|
293
|
+
this.setState({ hasError: false });
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
render() {
|
|
297
|
+
return this.state.hasError ? null : this.props.children;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
251
300
|
// Main component
|
|
252
301
|
/**
|
|
253
302
|
* Global tooltip renderer. Manages a single portal instance in the DOM,
|
|
@@ -277,6 +326,11 @@ const CwTooltipManager = () => {
|
|
|
277
326
|
stateUpdateCallbacks.add(update);
|
|
278
327
|
return () => {
|
|
279
328
|
stateUpdateCallbacks.delete(update);
|
|
329
|
+
// Signal that the root is gone so ensureTooltipManager rebuilds it on
|
|
330
|
+
// the next show — covers React tearing down the root after an uncaught
|
|
331
|
+
// error in the manager's own machinery (which the content boundary,
|
|
332
|
+
// living inside this tree, cannot catch).
|
|
333
|
+
managerRoot = null;
|
|
280
334
|
};
|
|
281
335
|
}, []);
|
|
282
336
|
// Function to calculate position
|
|
@@ -406,7 +460,7 @@ const CwTooltipManager = () => {
|
|
|
406
460
|
top: `${tooltipPosition.top}px`,
|
|
407
461
|
left: `${tooltipPosition.left}px`,
|
|
408
462
|
opacity: (isPositioned && !isMeasuring) ? 1 : 0,
|
|
409
|
-
}, onMouseEnter: () => state.dissapearsWhenHover && hideTooltip(), children: state.content }), document.body);
|
|
463
|
+
}, onMouseEnter: () => state.dissapearsWhenHover && hideTooltip(), children: jsx(TooltipErrorBoundary, { onError: () => hideTooltip(0), children: state.content }) }), document.body);
|
|
410
464
|
};
|
|
411
465
|
|
|
412
466
|
/**
|
|
@@ -6492,7 +6546,10 @@ function CwTimePicker({ value, onChange, interval = 15, minTime, maxTime, labelP
|
|
|
6492
6546
|
const handleClear = (e) => {
|
|
6493
6547
|
e.stopPropagation();
|
|
6494
6548
|
onChange(undefined);
|
|
6495
|
-
|
|
6549
|
+
// Keep showing the current value prop: a controlled parent that accepts the
|
|
6550
|
+
// clear empties it via the value-sync effect, while a parent that rejects or
|
|
6551
|
+
// transforms the clear (e.g. resets to a default) stays visually in sync.
|
|
6552
|
+
setInputValue(value ?? "");
|
|
6496
6553
|
};
|
|
6497
6554
|
const handleInputClick = () => {
|
|
6498
6555
|
if (!disabled) {
|
|
@@ -6520,15 +6577,18 @@ function CwTimePicker({ value, onChange, interval = 15, minTime, maxTime, labelP
|
|
|
6520
6577
|
const [hours, minutes] = newValue.split(":");
|
|
6521
6578
|
const h = parseInt(hours, 10);
|
|
6522
6579
|
const m = parseInt(minutes, 10);
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6580
|
+
const formattedTime = `${hours.padStart(2, "0")}:${minutes.padStart(2, "0")}`;
|
|
6581
|
+
// Check well-formedness and min/max time restrictions
|
|
6582
|
+
const isValid = h >= 0 && h <= 23 && m >= 0 && m <= 59 &&
|
|
6583
|
+
(!minTime || formattedTime >= minTime) &&
|
|
6584
|
+
(!maxTime || formattedTime <= maxTime);
|
|
6585
|
+
if (isValid) {
|
|
6586
|
+
onChange(formattedTime);
|
|
6587
|
+
setInputValue(formattedTime);
|
|
6588
|
+
}
|
|
6589
|
+
else {
|
|
6590
|
+
// Completed entry is invalid/out of range: snap back to the previous value
|
|
6591
|
+
setInputValue(value ?? "");
|
|
6532
6592
|
}
|
|
6533
6593
|
}
|
|
6534
6594
|
else if (newValue === "") {
|
|
@@ -7244,7 +7304,8 @@ function formatPlainDate(pd, fmt) {
|
|
|
7244
7304
|
|
|
7245
7305
|
function CwDatePickerTemporal({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder = "Select a date", displayFormat = "dd.MM.yyyy", disabled, required, className, showClear = true, popupPosition = "left-bottom", numberOfMonths = 1, showTodayButton = false, locale = enGB, todayLabel = "Today", yearRangeStart, yearRangeEnd, feedback, }) {
|
|
7246
7306
|
const [isOpen, setIsOpen] = useState(false);
|
|
7247
|
-
|
|
7307
|
+
// Initialize with the formatted value so the input is controlled from the first render
|
|
7308
|
+
const [inputValue, setInputValue] = useState(() => value ? formatPlainDate(value, displayFormat) : "");
|
|
7248
7309
|
const containerRef = useRef(null);
|
|
7249
7310
|
const feedbackMessages = feedback
|
|
7250
7311
|
? Array.isArray(feedback) ? feedback : [feedback]
|
|
@@ -7362,6 +7423,298 @@ function CwDatePickerTemporal({ value, onChange, minDate, maxDate, disabledDates
|
|
|
7362
7423
|
} }), showTodayButton && (jsx("footer", { className: "cw-flex-row cw-align-right-center", children: jsx(CwButton, { type: "button", variant: "outline", onClick: handleTodayClick, text: todayLabel }) }))] }))] })] }), feedbackMessages.map((feedbackItem, index) => (jsx("p", { className: "cw-input-info", "data-color": feedbackItem.type, children: feedbackItem.message }, index)))] }));
|
|
7363
7424
|
}
|
|
7364
7425
|
|
|
7426
|
+
// DateTimePickerState - immutable domain model for the Temporal date-time picker.
|
|
7427
|
+
//
|
|
7428
|
+
// Invariants:
|
|
7429
|
+
// - `time` is NEVER null: this is a date-TIME picker, so the time always has a
|
|
7430
|
+
// value and defaults to 00:00. Only the date can be unselected, and without
|
|
7431
|
+
// a date the whole `value` is undefined.
|
|
7432
|
+
// - Minute precision everywhere: times AND constraints are truncated to HH:mm
|
|
7433
|
+
// on the way in, so emitted values always carry :00 seconds and boundary
|
|
7434
|
+
// checks never fail on sub-minute residue.
|
|
7435
|
+
// - NO reachable state holds an out-of-range selection when minDateTime /
|
|
7436
|
+
// maxDateTime are set. User operations that would leave the state invalid
|
|
7437
|
+
// return THE SAME instance (===), which the hook uses to skip the emission
|
|
7438
|
+
// and let the UI snap back; entry paths that cannot reject (fromValue,
|
|
7439
|
+
// withConstraints, withTimeCleared) clamp into the range instead.
|
|
7440
|
+
//
|
|
7441
|
+
// Because of these invariants the emission is state-scoped: after any accepted
|
|
7442
|
+
// operation the value to emit is simply the new state's `value`. Rejected
|
|
7443
|
+
// operations are detected by identity (`next === prev`).
|
|
7444
|
+
/** Truncate to minute precision (HH:mm) - the picker's working precision */
|
|
7445
|
+
function truncateToMinute(time) {
|
|
7446
|
+
return new Temporal.PlainTime(time.hour, time.minute);
|
|
7447
|
+
}
|
|
7448
|
+
function midnight() {
|
|
7449
|
+
return new Temporal.PlainTime(0, 0);
|
|
7450
|
+
}
|
|
7451
|
+
function truncateDateTimeToMinute(dateTime) {
|
|
7452
|
+
return dateTime
|
|
7453
|
+
? dateTime.toPlainDate().toPlainDateTime(truncateToMinute(dateTime.toPlainTime()))
|
|
7454
|
+
: undefined;
|
|
7455
|
+
}
|
|
7456
|
+
/** Normalize constraints to the picker's minute precision */
|
|
7457
|
+
function normalizeConstraints(constraints) {
|
|
7458
|
+
return {
|
|
7459
|
+
minDateTime: truncateDateTimeToMinute(constraints.minDateTime),
|
|
7460
|
+
maxDateTime: truncateDateTimeToMinute(constraints.maxDateTime),
|
|
7461
|
+
minTime: constraints.minTime ? truncateToMinute(constraints.minTime) : undefined,
|
|
7462
|
+
maxTime: constraints.maxTime ? truncateToMinute(constraints.maxTime) : undefined,
|
|
7463
|
+
};
|
|
7464
|
+
}
|
|
7465
|
+
class DateTimePickerState {
|
|
7466
|
+
date;
|
|
7467
|
+
time;
|
|
7468
|
+
constraints;
|
|
7469
|
+
constructor(date, time, constraints) {
|
|
7470
|
+
this.date = date;
|
|
7471
|
+
this.time = time;
|
|
7472
|
+
this.constraints = normalizeConstraints(constraints);
|
|
7473
|
+
Object.freeze(this);
|
|
7474
|
+
}
|
|
7475
|
+
static empty(constraints = {}) {
|
|
7476
|
+
return new DateTimePickerState(undefined, midnight(), constraints);
|
|
7477
|
+
}
|
|
7478
|
+
/**
|
|
7479
|
+
* Build a state from an external value (the value-prop sync path).
|
|
7480
|
+
* The time is truncated to minute precision and the whole value is
|
|
7481
|
+
* clamped into [minDateTime, maxDateTime]: no state can ever hold an
|
|
7482
|
+
* out-of-range selection, regardless of where the value came from.
|
|
7483
|
+
*/
|
|
7484
|
+
static fromValue(value, constraints = {}) {
|
|
7485
|
+
if (!value)
|
|
7486
|
+
return new DateTimePickerState(undefined, midnight(), constraints);
|
|
7487
|
+
const base = new DateTimePickerState(value.toPlainDate(), truncateToMinute(value.toPlainTime()), constraints);
|
|
7488
|
+
return base.clampedIntoRange();
|
|
7489
|
+
}
|
|
7490
|
+
/** Combined date+time; undefined when no date is selected. */
|
|
7491
|
+
get value() {
|
|
7492
|
+
return this.date ? this.date.toPlainDateTime(this.time) : undefined;
|
|
7493
|
+
}
|
|
7494
|
+
/**
|
|
7495
|
+
* Effective minimum time of day for the currently selected date:
|
|
7496
|
+
* when the selected date is the minDateTime boundary date, the boundary's
|
|
7497
|
+
* time (minute-truncated) replaces the static minTime.
|
|
7498
|
+
*/
|
|
7499
|
+
get effectiveMinTime() {
|
|
7500
|
+
return this.effectiveMinTimeFor(this.date);
|
|
7501
|
+
}
|
|
7502
|
+
/** Effective maximum time of day for the currently selected date (see effectiveMinTime). */
|
|
7503
|
+
get effectiveMaxTime() {
|
|
7504
|
+
return this.effectiveMaxTimeFor(this.date);
|
|
7505
|
+
}
|
|
7506
|
+
/**
|
|
7507
|
+
* Select (or clear) the date.
|
|
7508
|
+
* - Clearing the date resets the whole selection (time back to 00:00).
|
|
7509
|
+
* - When the current time is out of range for the new date, it falls back
|
|
7510
|
+
* to the effective minimum time for that date (or 00:00).
|
|
7511
|
+
* - When even the fallback is out of range the date is rejected and the
|
|
7512
|
+
* same instance is returned.
|
|
7513
|
+
*/
|
|
7514
|
+
withDate(date) {
|
|
7515
|
+
if (!date) {
|
|
7516
|
+
return new DateTimePickerState(undefined, midnight(), this.constraints);
|
|
7517
|
+
}
|
|
7518
|
+
if (this.isInRange(date.toPlainDateTime(this.time))) {
|
|
7519
|
+
return new DateTimePickerState(date, this.time, this.constraints);
|
|
7520
|
+
}
|
|
7521
|
+
const fallbackTime = this.effectiveMinTimeFor(date) ?? midnight();
|
|
7522
|
+
if (this.isInRange(date.toPlainDateTime(fallbackTime))) {
|
|
7523
|
+
return new DateTimePickerState(date, fallbackTime, this.constraints);
|
|
7524
|
+
}
|
|
7525
|
+
return this;
|
|
7526
|
+
}
|
|
7527
|
+
/**
|
|
7528
|
+
* Select the time (minute-truncated). An out-of-range time for the
|
|
7529
|
+
* selected date is rejected: the same instance is returned so the UI can
|
|
7530
|
+
* snap back to the previous time. Without a date any time is accepted
|
|
7531
|
+
* (there is no combination to validate yet).
|
|
7532
|
+
*/
|
|
7533
|
+
withTime(time) {
|
|
7534
|
+
const truncated = truncateToMinute(time);
|
|
7535
|
+
if (this.date && !this.isInRange(this.date.toPlainDateTime(truncated))) {
|
|
7536
|
+
return this;
|
|
7537
|
+
}
|
|
7538
|
+
return new DateTimePickerState(this.date, truncated, this.constraints);
|
|
7539
|
+
}
|
|
7540
|
+
/**
|
|
7541
|
+
* Apply "now" (Now button), truncated to minute precision. Rejected
|
|
7542
|
+
* (same instance returned) when the truncated now is out of range.
|
|
7543
|
+
*/
|
|
7544
|
+
withNow(now) {
|
|
7545
|
+
const date = now.toPlainDate();
|
|
7546
|
+
const time = truncateToMinute(now.toPlainTime());
|
|
7547
|
+
if (!this.isInRange(date.toPlainDateTime(time))) {
|
|
7548
|
+
return this;
|
|
7549
|
+
}
|
|
7550
|
+
return new DateTimePickerState(date, time, this.constraints);
|
|
7551
|
+
}
|
|
7552
|
+
/**
|
|
7553
|
+
* Reset the time to its default: the effective minimum for the current
|
|
7554
|
+
* date when 00:00 would be out of range (boundary dates), else 00:00.
|
|
7555
|
+
* The result is always in range - this is the clear-time path.
|
|
7556
|
+
*/
|
|
7557
|
+
withTimeCleared() {
|
|
7558
|
+
if (!this.date) {
|
|
7559
|
+
return new DateTimePickerState(undefined, midnight(), this.constraints);
|
|
7560
|
+
}
|
|
7561
|
+
return new DateTimePickerState(this.date, midnight(), this.constraints).clampedIntoRange();
|
|
7562
|
+
}
|
|
7563
|
+
/** Reset the selection (no date, time back to 00:00), keeping the constraints. */
|
|
7564
|
+
clear() {
|
|
7565
|
+
return new DateTimePickerState(undefined, midnight(), this.constraints);
|
|
7566
|
+
}
|
|
7567
|
+
/**
|
|
7568
|
+
* Replace the constraints. The current selection is clamped into the new
|
|
7569
|
+
* [minDateTime, maxDateTime] range so it can never be left out of range.
|
|
7570
|
+
*/
|
|
7571
|
+
withConstraints(constraints) {
|
|
7572
|
+
return new DateTimePickerState(this.date, this.time, constraints).clampedIntoRange();
|
|
7573
|
+
}
|
|
7574
|
+
/**
|
|
7575
|
+
* Clamp the selection into [minDateTime, maxDateTime]: a combined value
|
|
7576
|
+
* below the minimum becomes the minimum (date and time), one above the
|
|
7577
|
+
* maximum becomes the maximum. In-range states return themselves.
|
|
7578
|
+
*/
|
|
7579
|
+
clampedIntoRange() {
|
|
7580
|
+
const combined = this.value;
|
|
7581
|
+
if (!combined)
|
|
7582
|
+
return this;
|
|
7583
|
+
const { minDateTime, maxDateTime } = this.constraints;
|
|
7584
|
+
if (minDateTime && Temporal.PlainDateTime.compare(combined, minDateTime) < 0) {
|
|
7585
|
+
return new DateTimePickerState(minDateTime.toPlainDate(), truncateToMinute(minDateTime.toPlainTime()), this.constraints);
|
|
7586
|
+
}
|
|
7587
|
+
if (maxDateTime && Temporal.PlainDateTime.compare(combined, maxDateTime) > 0) {
|
|
7588
|
+
return new DateTimePickerState(maxDateTime.toPlainDate(), truncateToMinute(maxDateTime.toPlainTime()), this.constraints);
|
|
7589
|
+
}
|
|
7590
|
+
return this;
|
|
7591
|
+
}
|
|
7592
|
+
effectiveMinTimeFor(date) {
|
|
7593
|
+
const { minDateTime, minTime } = this.constraints;
|
|
7594
|
+
if (date && minDateTime && date.equals(minDateTime.toPlainDate())) {
|
|
7595
|
+
return truncateToMinute(minDateTime.toPlainTime());
|
|
7596
|
+
}
|
|
7597
|
+
return minTime;
|
|
7598
|
+
}
|
|
7599
|
+
effectiveMaxTimeFor(date) {
|
|
7600
|
+
const { maxDateTime, maxTime } = this.constraints;
|
|
7601
|
+
if (date && maxDateTime && date.equals(maxDateTime.toPlainDate())) {
|
|
7602
|
+
return truncateToMinute(maxDateTime.toPlainTime());
|
|
7603
|
+
}
|
|
7604
|
+
return maxTime;
|
|
7605
|
+
}
|
|
7606
|
+
isInRange(combined) {
|
|
7607
|
+
const { minDateTime, maxDateTime } = this.constraints;
|
|
7608
|
+
if (minDateTime && Temporal.PlainDateTime.compare(combined, minDateTime) < 0)
|
|
7609
|
+
return false;
|
|
7610
|
+
if (maxDateTime && Temporal.PlainDateTime.compare(combined, maxDateTime) > 0)
|
|
7611
|
+
return false;
|
|
7612
|
+
return true;
|
|
7613
|
+
}
|
|
7614
|
+
}
|
|
7615
|
+
|
|
7616
|
+
// useCwDateTimePickerTemporal - thin glue between DateTimePickerState and the
|
|
7617
|
+
// CwDateTimePickerTemporal component. All picker logic lives in the domain
|
|
7618
|
+
// class; this hook only holds the instance in React state, syncs it with the
|
|
7619
|
+
// external value prop, and converts PlainTime <-> "HH:mm" at the CwTimePicker
|
|
7620
|
+
// string boundary.
|
|
7621
|
+
//
|
|
7622
|
+
// Emission model: an accepted operation returns a NEW instance and the hook
|
|
7623
|
+
// emits its `value`; a rejected operation returns the SAME instance and
|
|
7624
|
+
// nothing is emitted (CwTimePicker snaps its text back to the value prop as
|
|
7625
|
+
// soon as the typed entry is complete and invalid).
|
|
7626
|
+
//
|
|
7627
|
+
// The time string is empty until a date is selected (visual only): without a
|
|
7628
|
+
// date the whole value is undefined, so showing the default 00:00 would
|
|
7629
|
+
// suggest a selection that doesn't exist.
|
|
7630
|
+
function plainTimeToHHmm(time) {
|
|
7631
|
+
return `${String(time.hour).padStart(2, "0")}:${String(time.minute).padStart(2, "0")}`;
|
|
7632
|
+
}
|
|
7633
|
+
/** "HH:mm" -> PlainTime; unparseable input yields undefined (ignored by the caller) */
|
|
7634
|
+
function hhmmToPlainTime(time) {
|
|
7635
|
+
try {
|
|
7636
|
+
return Temporal.PlainTime.from(time);
|
|
7637
|
+
}
|
|
7638
|
+
catch {
|
|
7639
|
+
return undefined;
|
|
7640
|
+
}
|
|
7641
|
+
}
|
|
7642
|
+
function optionalTimeToHHmm(time) {
|
|
7643
|
+
return time ? plainTimeToHHmm(time) : undefined;
|
|
7644
|
+
}
|
|
7645
|
+
function plainDateTimesEqual(a, b) {
|
|
7646
|
+
if (!a || !b)
|
|
7647
|
+
return a === b;
|
|
7648
|
+
return a.equals(b);
|
|
7649
|
+
}
|
|
7650
|
+
function useCwDateTimePickerTemporal({ value, onChange, minDateTime, maxDateTime, minTime, maxTime, }) {
|
|
7651
|
+
const constraints = useMemo(() => ({
|
|
7652
|
+
minDateTime,
|
|
7653
|
+
maxDateTime,
|
|
7654
|
+
minTime: minTime ? hhmmToPlainTime(minTime) : undefined,
|
|
7655
|
+
maxTime: maxTime ? hhmmToPlainTime(maxTime) : undefined,
|
|
7656
|
+
// ISO-string deps keep the object stable across re-created Temporal instances
|
|
7657
|
+
}), [minDateTime?.toString(), maxDateTime?.toString(), minTime, maxTime]);
|
|
7658
|
+
const [state, setState] = useState(() => DateTimePickerState.fromValue(value, constraints));
|
|
7659
|
+
// Track the previous value prop to detect external changes.
|
|
7660
|
+
const prevValueRef = useRef(value);
|
|
7661
|
+
useEffect(() => {
|
|
7662
|
+
if (!plainDateTimesEqual(value, prevValueRef.current)) {
|
|
7663
|
+
prevValueRef.current = value;
|
|
7664
|
+
setState(prev => DateTimePickerState.fromValue(value, prev.constraints));
|
|
7665
|
+
}
|
|
7666
|
+
}, [value]);
|
|
7667
|
+
useEffect(() => {
|
|
7668
|
+
setState(prev => prev.withConstraints(constraints));
|
|
7669
|
+
}, [constraints]);
|
|
7670
|
+
const apply = useCallback((next) => {
|
|
7671
|
+
if (next === state)
|
|
7672
|
+
return; // operation rejected by the domain - no emission
|
|
7673
|
+
setState(next);
|
|
7674
|
+
onChange(next.value);
|
|
7675
|
+
}, [state, onChange]);
|
|
7676
|
+
const selectDate = useCallback((date) => {
|
|
7677
|
+
apply(state.withDate(date));
|
|
7678
|
+
}, [state, apply]);
|
|
7679
|
+
const selectTime = useCallback((time) => {
|
|
7680
|
+
if (!time) {
|
|
7681
|
+
// Cleared time input: reset to the in-range default for the current date
|
|
7682
|
+
apply(state.withTimeCleared());
|
|
7683
|
+
return;
|
|
7684
|
+
}
|
|
7685
|
+
const parsed = hhmmToPlainTime(time);
|
|
7686
|
+
if (parsed) {
|
|
7687
|
+
apply(state.withTime(parsed));
|
|
7688
|
+
}
|
|
7689
|
+
}, [state, apply]);
|
|
7690
|
+
const selectNow = useCallback(() => {
|
|
7691
|
+
apply(state.withNow(Temporal.Now.plainDateTimeISO()));
|
|
7692
|
+
}, [state, apply]);
|
|
7693
|
+
return {
|
|
7694
|
+
date: state.date,
|
|
7695
|
+
time: state.date ? plainTimeToHHmm(state.time) : "",
|
|
7696
|
+
minDate: minDateTime?.toPlainDate(),
|
|
7697
|
+
maxDate: maxDateTime?.toPlainDate(),
|
|
7698
|
+
effectiveMinTime: optionalTimeToHHmm(state.effectiveMinTime),
|
|
7699
|
+
effectiveMaxTime: optionalTimeToHHmm(state.effectiveMaxTime),
|
|
7700
|
+
selectDate,
|
|
7701
|
+
selectTime,
|
|
7702
|
+
selectNow,
|
|
7703
|
+
};
|
|
7704
|
+
}
|
|
7705
|
+
|
|
7706
|
+
function CwDateTimePickerTemporal({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval = 15, minTime, maxTime, labelProps, alignProps, datePlaceholder = "dd.MM.yyyy", timePlaceholder = "HH:mm", disabled, required, className, showClear = true, popupPosition = "left-bottom", numberOfMonths = 1, showNowButton = false, nowLabel = "Now", locale = enGB, }) {
|
|
7707
|
+
const picker = useCwDateTimePickerTemporal({
|
|
7708
|
+
value,
|
|
7709
|
+
onChange,
|
|
7710
|
+
minDateTime,
|
|
7711
|
+
maxDateTime,
|
|
7712
|
+
minTime,
|
|
7713
|
+
maxTime,
|
|
7714
|
+
});
|
|
7715
|
+
return jsx("div", { className: `cw-datetimepicker cw-datetimepicker-separate ${className || ""}`, children: jsxs(CwAlign, { ...alignProps, itemProp: required ? "required" : "", children: [labelProps && (jsx(CwLabel, { ...labelProps, children: labelProps.text })), jsxs("div", { className: "cw-flex-row cw-align-left-center cw-gap-small", children: [jsx(CwDatePickerTemporal, { value: picker.date, onChange: picker.selectDate, minDate: picker.minDate, maxDate: picker.maxDate, disabledDates: disabledDates, disabledMatcher: disabledMatcher, placeholder: datePlaceholder, disabled: disabled, required: required, showClear: showClear, numberOfMonths: numberOfMonths, popupPosition: popupPosition, locale: locale }), jsx(CwTimePicker, { value: picker.time, onChange: picker.selectTime, interval: timeInterval, minTime: picker.effectiveMinTime, maxTime: picker.effectiveMaxTime, placeholder: timePlaceholder, disabled: disabled, required: required, showClear: showClear, popupPosition: popupPosition }), showNowButton && (jsx(CwButton, { type: "button", variant: "outline", onClick: picker.selectNow, disabled: disabled, text: nowLabel }))] })] }) });
|
|
7716
|
+
}
|
|
7717
|
+
|
|
7365
7718
|
// dateRangePresetsTemporal.ts
|
|
7366
7719
|
// Temporal-typed counterpart of dateRangePresets.ts (used by CwDateRangePickerTemporal).
|
|
7367
7720
|
// Each preset is evaluated at click time; a reference date can be injected for testing.
|
|
@@ -8128,7 +8481,7 @@ crewAssignmentSchedulerContextMenu, }) => {
|
|
|
8128
8481
|
};
|
|
8129
8482
|
|
|
8130
8483
|
const TimeLine$1 = ({ id, toolTipTitle, marginLeft, color = "rgba(255,0,0,.6)", pixels = 2, height = "100%", zIndex = 1, }) => {
|
|
8131
|
-
return (jsx(
|
|
8484
|
+
return (jsx(CwTooltipNew, { content: toolTipTitle, position: "top", children: jsx("div", { id: id, style: {
|
|
8132
8485
|
borderLeft: `${pixels}px solid ${color}`,
|
|
8133
8486
|
marginLeft: marginLeft,
|
|
8134
8487
|
width: "0px",
|
|
@@ -10747,4 +11100,4 @@ const CwFindCrewmember = ({ handleChange, placeHolder = "Search crew…", requir
|
|
|
10747
11100
|
}, "data-direction": direction, children: [jsxs(CwAlign, { ...alignProps, itemProp: required ? "required" : "", children: [labelProps && (jsx(CwLabel, { ...labelProps, children: labelProps.text })), jsxs("div", { className: "cw-search-input-wrapper", ref: wrapperRef, children: [jsx("input", { ref: inputRef, type: "text", value: inputValue, onChange: handleInputChange, onKeyDown: handleKeyDown, onFocus: handleInputFocus, placeholder: isInitialLoading ? "Loading…" : placeHolder, disabled: disabled, required: required, autoComplete: "off", "aria-expanded": showDropdown, "aria-haspopup": "listbox", role: "combobox", title: tooltipText }), (isLoading || isInitialLoading) && (jsx("div", { className: "cw-search-input-loading", children: jsx(CwIcon, { iconId: "spinner" }) })), jsx("div", { className: "cw-search-input-icons", children: inputValue && !disabled && !isInitialLoading ? (jsx(CwButton, { type: "button", onClick: handleClear, "aria-label": "Clear selected crewmember", variant: "icon", icon: "close", color: "neutral" })) : (jsx(CwIcon, { iconId: "person" })) })] })] }), renderPanel(jsx("div", { ref: panelRef, className: dropdownStyles.dropdown, style: panelStyle, role: "listbox", children: jsx("ul", { children: options.map((option, index) => (jsx("li", { className: `${dropdownStyles.option}${index === highlightedIndex ? ` ${dropdownStyles.optionFocused}` : ""}`, onClick: () => handleOptionSelect(option.value), onMouseDown: (e) => e.preventDefault(), onMouseEnter: () => setHighlightedIndex(index), role: "option", "aria-selected": index === highlightedIndex, children: option.text }, option.value))) }) }))] }));
|
|
10748
11101
|
};
|
|
10749
11102
|
|
|
10750
|
-
export { CblDragAndDrop, CwAccordionContainer, CwAlign, CwAnchoredMenu, CwBtnApprove, CwBtnCancel, CwBtnDelete, CwBtnEdit, CwBtnSave, CwButton, CwCard, CwCardList, CwCheck, CwCheckbox, CwCheckboxGroup, CwChip, CwColorPicker, CwConfirmationPopup, CwContextMenu, CwDatePicker, CwDatePickerTemporal, CwDateRangePicker, CwDateRangePickerTemporal, CwDateTimePicker, CwDateTimePickerCompact, CwDialog, CwDigit, CwDisplayMessage, CwDropdown, CwDropdownFilter, CwExpandable, CwFileUpload, CwFileUploadMultiple, CwFindAirport, CwFindCrewmember, CwGenericTooltip, CwHeadingMain, CwHeadingSecond, CwIcon, CwImageArea, CwImageGallery, CwImageZoom, CwInput, CwInputColor, CwInputDateText, CwInputDatetime, CwInputImage, CwInputNumber, CwInputPhone, CwInputText, CwKeyValueList, CwLabel, CwLoading, CwLoadingSmall, CwMasterDetail, CwMessage, CwMessageManager, CwMessageType, CwModal, CwModalHover, CwModalReportFunctional, CwMultiFilter, CwMultiFilterTag, CwNote, CwOption, CwPopoverButton, CwReportModal, CwScheduler, CwSearchAsync, CwSearchInput, CwSelect, CwSelectList, CwSelectListItems, CwSortableList, CwSortableTable, CwSuperScheduler, CwTable, CwTableGrouped, CwTableServerSide, CwTabs, CwTagSelector, CwTextArea, CwTime, CwTimePicker, CwToggle, CwTooltipManager, CwTooltipNew, CwTreeView, CwWeekdaySelector, DefaultRowHeader, OnClearPinned, OnClickContextMenu, OnClickEvent, OnClickRowEvent, OnClickRowHeader, OnClickUtc, OnDoubleClickEvent, OnDoubleClickRowEvent, OnDragEvent, OnDropCtrlEvent, OnDropEvent, OnEndClickHeaderEvent, OnLeftDragStart, OnMultiClickEvent, OnPinRow, OnRangeClickEvent, OnRightClickEvent, OnRightClickRow, OnRightDragStart, OnStartClickHeaderEvent, OnUnpinRow, PRESET_LIBRARY_TEMPORAL, PinRowHeader, Resource, Scheduler, SchedulerEvent, SuperScheduler, TooltipConstraintContext, UiEvent, Weekdays, cblEvent, eventIsVisible, filterVisibleEvents, getDefaultDivisions, getEventSizes, getPresetsByKeysTemporal, itemsToMultiFilterTags, useCwMessage, useSortableList, useSortableTable, useTooltipConstraint };
|
|
11103
|
+
export { CblDragAndDrop, CwAccordionContainer, CwAlign, CwAnchoredMenu, CwBtnApprove, CwBtnCancel, CwBtnDelete, CwBtnEdit, CwBtnSave, CwButton, CwCard, CwCardList, CwCheck, CwCheckbox, CwCheckboxGroup, CwChip, CwColorPicker, CwConfirmationPopup, CwContextMenu, CwDatePicker, CwDatePickerTemporal, CwDateRangePicker, CwDateRangePickerTemporal, CwDateTimePicker, CwDateTimePickerCompact, CwDateTimePickerTemporal, CwDialog, CwDigit, CwDisplayMessage, CwDropdown, CwDropdownFilter, CwExpandable, CwFileUpload, CwFileUploadMultiple, CwFindAirport, CwFindCrewmember, CwGenericTooltip, CwHeadingMain, CwHeadingSecond, CwIcon, CwImageArea, CwImageGallery, CwImageZoom, CwInput, CwInputColor, CwInputDateText, CwInputDatetime, CwInputImage, CwInputNumber, CwInputPhone, CwInputText, CwKeyValueList, CwLabel, CwLoading, CwLoadingSmall, CwMasterDetail, CwMessage, CwMessageManager, CwMessageType, CwModal, CwModalHover, CwModalReportFunctional, CwMultiFilter, CwMultiFilterTag, CwNote, CwOption, CwPopoverButton, CwReportModal, CwScheduler, CwSearchAsync, CwSearchInput, CwSelect, CwSelectList, CwSelectListItems, CwSortableList, CwSortableTable, CwSuperScheduler, CwTable, CwTableGrouped, CwTableServerSide, CwTabs, CwTagSelector, CwTextArea, CwTime, CwTimePicker, CwToggle, CwTooltipManager, CwTooltipNew, CwTreeView, CwWeekdaySelector, DefaultRowHeader, OnClearPinned, OnClickContextMenu, OnClickEvent, OnClickRowEvent, OnClickRowHeader, OnClickUtc, OnDoubleClickEvent, OnDoubleClickRowEvent, OnDragEvent, OnDropCtrlEvent, OnDropEvent, OnEndClickHeaderEvent, OnLeftDragStart, OnMultiClickEvent, OnPinRow, OnRangeClickEvent, OnRightClickEvent, OnRightClickRow, OnRightDragStart, OnStartClickHeaderEvent, OnUnpinRow, PRESET_LIBRARY_TEMPORAL, PinRowHeader, Resource, Scheduler, SchedulerEvent, SuperScheduler, TooltipConstraintContext, UiEvent, Weekdays, cblEvent, eventIsVisible, filterVisibleEvents, getDefaultDivisions, getEventSizes, getPresetsByKeysTemporal, itemsToMultiFilterTags, useCwMessage, useSortableList, useSortableTable, useTooltipConstraint };
|
|
@@ -25,5 +25,5 @@ export interface CwButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
25
25
|
tooltipPosition?: 'top' | 'bottom' | 'left' | 'right';
|
|
26
26
|
ref?: React.LegacyRef<HTMLButtonElement>;
|
|
27
27
|
}
|
|
28
|
-
export declare function CwButton({ text, variant, color, className, icon, title, tooltipPosition, children, ...buttonProps }: CwButtonProps): import("react
|
|
28
|
+
export declare function CwButton({ text, variant, color, className, icon, title, tooltipPosition, children, ...buttonProps }: CwButtonProps): import("react").JSX.Element;
|
|
29
29
|
//# sourceMappingURL=CwButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/button/CwButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACnF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvC,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;CACzC;AAED,wBAAgB,QAAQ,CAAC,EACxB,IAAI,EACJ,OAAiB,EACjB,KAAiB,EACjB,SAAc,EACd,IAAS,EACT,KAAK,EACL,eAA0B,EAC1B,QAAQ,EACR,GAAG,WAAW,EACd,EAAE,aAAa
|
|
1
|
+
{"version":3,"file":"CwButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/button/CwButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACnF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvC,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;CACzC;AAED,wBAAgB,QAAQ,CAAC,EACxB,IAAI,EACJ,OAAiB,EACjB,KAAiB,EACjB,SAAc,EACd,IAAS,EACT,KAAK,EACL,eAA0B,EAC1B,QAAQ,EACR,GAAG,WAAW,EACd,EAAE,aAAa,+BA6Cf"}
|
|
@@ -15,27 +15,27 @@ export interface cw_btnProps extends Omit<CwButtonProps, 'variant' | 'icon' | 'c
|
|
|
15
15
|
* Save button wrapper (6 uses pending delete)
|
|
16
16
|
* @deprecated Use <CwButton variant="icon" icon="save" onClick={...} /> instead
|
|
17
17
|
*/
|
|
18
|
-
export declare function CwBtnSave({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): import("react
|
|
18
|
+
export declare function CwBtnSave({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): import("react").JSX.Element;
|
|
19
19
|
/**
|
|
20
20
|
* Edit button wrapper (5 uses pending delete)
|
|
21
21
|
* @deprecated Use <CwButton variant="icon" icon="edit" onClick={...} /> instead
|
|
22
22
|
*/
|
|
23
|
-
export declare function CwBtnEdit({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): import("react
|
|
23
|
+
export declare function CwBtnEdit({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): import("react").JSX.Element;
|
|
24
24
|
/**
|
|
25
25
|
* Delete button wrapper (4 uses pending delete)
|
|
26
26
|
* @deprecated Use <CwButton variant="icon" icon="delete" color="danger" onClick={...} /> instead
|
|
27
27
|
*/
|
|
28
|
-
export declare function CwBtnDelete({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): import("react
|
|
28
|
+
export declare function CwBtnDelete({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): import("react").JSX.Element;
|
|
29
29
|
/**
|
|
30
30
|
* Approve button wrapper.
|
|
31
31
|
* DO NOT DELETE — used by Operon (lib pinned at ^1.0.9, currently dormant).
|
|
32
32
|
* @deprecated Use <CwButton variant="icon" icon="check-circle" onClick={...} /> instead
|
|
33
33
|
*/
|
|
34
|
-
export declare function CwBtnApprove({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): import("react
|
|
34
|
+
export declare function CwBtnApprove({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): import("react").JSX.Element;
|
|
35
35
|
/**
|
|
36
36
|
* Cancel button wrapper.
|
|
37
37
|
* DO NOT DELETE — used by Operon (lib pinned at ^1.0.9, currently dormant).
|
|
38
38
|
* @deprecated Use <CwButton variant="icon" icon="cancel" color="danger" onClick={...} /> instead
|
|
39
39
|
*/
|
|
40
|
-
export declare function CwBtnCancel({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): import("react
|
|
40
|
+
export declare function CwBtnCancel({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): import("react").JSX.Element;
|
|
41
41
|
//# sourceMappingURL=CwButtons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwButtons.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/buttons/CwButtons.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IACrF,sCAAsC;IACtC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,uCAAuC;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC;CAE1B;AAID;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACzB,aAAa,EACb,eAAe,EACf,OAAO,EACP,QAAQ,EACR,GAAG,IAAI,EACP,EAAE,WAAW
|
|
1
|
+
{"version":3,"file":"CwButtons.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/buttons/CwButtons.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IACrF,sCAAsC;IACtC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,uCAAuC;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC;CAE1B;AAID;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACzB,aAAa,EACb,eAAe,EACf,OAAO,EACP,QAAQ,EACR,GAAG,IAAI,EACP,EAAE,WAAW,+BAWb;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACzB,aAAa,EACb,eAAe,EACf,OAAO,EACP,QAAQ,EACR,GAAG,IAAI,EACP,EAAE,WAAW,+BAWb;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC3B,aAAa,EACb,eAAe,EACf,OAAO,EACP,QAAQ,EACR,GAAG,IAAI,EACP,EAAE,WAAW,+BAYb;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC5B,aAAa,EACb,eAAe,EACf,OAAO,EACP,QAAQ,EACR,GAAG,IAAI,EACP,EAAE,WAAW,+BAWb;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC3B,aAAa,EACb,eAAe,EACf,OAAO,EACP,QAAQ,EACR,GAAG,IAAI,EACP,EAAE,WAAW,+BAYb"}
|
|
@@ -38,5 +38,5 @@ export interface CwSearchInputProps extends HTMLProps<HTMLDivElement> {
|
|
|
38
38
|
* placeholder="Search by name…"
|
|
39
39
|
* />
|
|
40
40
|
*/
|
|
41
|
-
export declare function CwSearchInput(optionsProps: React.PropsWithChildren<CwSearchInputProps>):
|
|
41
|
+
export declare function CwSearchInput(optionsProps: React.PropsWithChildren<CwSearchInputProps>): React.JSX.Element;
|
|
42
42
|
//# sourceMappingURL=CwSearch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/search/CwSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAIvE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,EAAW,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAW,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAEpF,uCAAuC;AACvC,MAAM,WAAW,kBAAmB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACpE,oFAAoF;IACpF,UAAU,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAChC,iDAAiD;IACjD,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,oDAAoD;IACpD,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,uDAAuD;IACvD,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,gEAAgE;IAChE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4FAA4F;IAC5F,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,KAAK,CAAC,SAAS,CAAC;CACzD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"CwSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/search/CwSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAIvE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,EAAW,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAW,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAEpF,uCAAuC;AACvC,MAAM,WAAW,kBAAmB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACpE,oFAAoF;IACpF,UAAU,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAChC,iDAAiD;IACjD,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,oDAAoD;IACpD,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,uDAAuD;IACvD,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,gEAAgE;IAChE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4FAA4F;IAC5F,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,KAAK,CAAC,SAAS,CAAC;CACzD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,qBAuKtF"}
|
|
@@ -11,5 +11,5 @@ export interface CwCheckProps extends Omit<React.DetailedHTMLProps<React.InputHT
|
|
|
11
11
|
/** Layout alignment: "row" (side by side) | "column" (label above) @default "row" */
|
|
12
12
|
alignment?: "row" | "column";
|
|
13
13
|
}
|
|
14
|
-
export declare function CwCheck(props: CwCheckProps):
|
|
14
|
+
export declare function CwCheck(props: CwCheckProps): React.JSX.Element;
|
|
15
15
|
//# sourceMappingURL=CwCheck.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwCheck.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/checkbox/CwCheck.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAU,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAGjF,MAAM,WAAW,YAChB,SAAQ,IAAI,CACX,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,EACtF,MAAM,CACN;IACD,oCAAoC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,qFAAqF;IACrF,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC7B;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"CwCheck.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/checkbox/CwCheck.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAU,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAGjF,MAAM,WAAW,YAChB,SAAQ,IAAI,CACX,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,EACtF,MAAM,CACN;IACD,oCAAoC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,qFAAqF;IACrF,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC7B;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,qBA4B1C"}
|
|
@@ -17,5 +17,5 @@ export interface CwCheckboxProps {
|
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
error?: boolean;
|
|
19
19
|
}
|
|
20
|
-
export declare function CwCheckbox(CwCheckboxProps: React.PropsWithChildren<CwCheckboxProps>):
|
|
20
|
+
export declare function CwCheckbox(CwCheckboxProps: React.PropsWithChildren<CwCheckboxProps>): React.JSX.Element;
|
|
21
21
|
//# sourceMappingURL=CwCheckbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/checkbox/CwCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,UAAU,CAAC,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"CwCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/checkbox/CwCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,UAAU,CAAC,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,qBA+CnF"}
|
|
@@ -31,5 +31,5 @@ export interface CwCheckboxGroupProps {
|
|
|
31
31
|
/** Error or info messages below the group */
|
|
32
32
|
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
33
33
|
}
|
|
34
|
-
export declare function CwCheckboxGroup({ options, value, onChange, labelProps, alignProps, required, disabled, optionsAlignment, className, feedback, }: CwCheckboxGroupProps): import("react
|
|
34
|
+
export declare function CwCheckboxGroup({ options, value, onChange, labelProps, alignProps, required, disabled, optionsAlignment, className, feedback, }: CwCheckboxGroupProps): import("react").JSX.Element;
|
|
35
35
|
//# sourceMappingURL=CwCheckboxGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwCheckboxGroup.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/checkbox/CwCheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAW,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAW,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAIpF,MAAM,WAAW,cAAc;IAC9B,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACpC,iCAAiC;IACjC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,8EAA8E;IAC9E,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACvC,oCAAoC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,0BAA0B;IAC1B,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACpC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;CAC/C;AAED,wBAAgB,eAAe,CAAC,EAC/B,OAAO,EACP,KAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,gBAAwB,EACxB,SAAS,EACT,QAAQ,GACR,EAAE,oBAAoB
|
|
1
|
+
{"version":3,"file":"CwCheckboxGroup.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/checkbox/CwCheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAW,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAW,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAIpF,MAAM,WAAW,cAAc;IAC9B,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACpC,iCAAiC;IACjC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,8EAA8E;IAC9E,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACvC,oCAAoC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,0BAA0B;IAC1B,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACpC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;CAC/C;AAED,wBAAgB,eAAe,CAAC,EAC/B,OAAO,EACP,KAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,gBAAwB,EACxB,SAAS,EACT,QAAQ,GACR,EAAE,oBAAoB,+BA+CtB"}
|
|
@@ -13,6 +13,6 @@ export interface CwDropdownFilterProps {
|
|
|
13
13
|
isNested?: boolean;
|
|
14
14
|
IdContent?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare function CwDropdownFilter(props: React.PropsWithChildren<CwDropdownFilterProps>):
|
|
16
|
+
export declare function CwDropdownFilter(props: React.PropsWithChildren<CwDropdownFilterProps>): React.JSX.Element;
|
|
17
17
|
export {};
|
|
18
18
|
//# sourceMappingURL=CwDropdownFilter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDropdownFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/dropdown/CwDropdownFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,mBAAmB;IAC5B,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CACnC;AAGD,MAAM,WAAW,qBAAqB;IAErC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,sBAAsB,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAGf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"file":"CwDropdownFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/dropdown/CwDropdownFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,mBAAmB;IAC5B,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CACnC;AAGD,MAAM,WAAW,qBAAqB;IAErC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,sBAAsB,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAGf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,qBAwCrF"}
|
|
@@ -31,5 +31,5 @@ export interface CwPopoverButtonProps extends Omit<CwButtonProps, "onClick" | "c
|
|
|
31
31
|
* <CwToggle labelText="Show assigned" checked={v} onChange={setV} />
|
|
32
32
|
* </CwPopoverButton>
|
|
33
33
|
*/
|
|
34
|
-
export declare function CwPopoverButton({ children, panelWidth, placement, panelClassName, ...buttonProps }: CwPopoverButtonProps):
|
|
34
|
+
export declare function CwPopoverButton({ children, panelWidth, placement, panelClassName, ...buttonProps }: CwPopoverButtonProps): React.JSX.Element;
|
|
35
35
|
//# sourceMappingURL=CwPopoverButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwPopoverButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/dropdown/CwPopoverButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG5E,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,UAAU,CAAC;IACxF,iDAAiD;IACjD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,cAAc,GAAG,YAAY,CAAC;IAC1C,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,EAC/B,QAAQ,EACR,UAAmB,EACnB,SAA0B,EAC1B,cAAc,EACd,GAAG,WAAW,EACd,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CwPopoverButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/dropdown/CwPopoverButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG5E,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,UAAU,CAAC;IACxF,iDAAiD;IACjD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,cAAc,GAAG,YAAY,CAAC;IAC1C,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,EAC/B,QAAQ,EACR,UAAmB,EACnB,SAA0B,EAC1B,cAAc,EACd,GAAG,WAAW,EACd,EAAE,oBAAoB,qBA6EtB"}
|
|
@@ -15,5 +15,5 @@ export interface CwOptionProps extends Omit<HTMLProps<PropsWithChildren<HTMLOpti
|
|
|
15
15
|
* <CwOption>C</CwOption>
|
|
16
16
|
* </CwSelect>
|
|
17
17
|
*/
|
|
18
|
-
export declare function CwOption(props: CwOptionProps): import("react
|
|
18
|
+
export declare function CwOption(props: CwOptionProps): import("react").JSX.Element;
|
|
19
19
|
//# sourceMappingURL=CwOption.d.ts.map
|