@cwellt_software/cwellt-reactjs-lib 1.6.0 → 1.6.1
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/content/icons/IconLibrary.stories.tsx +18 -18
- package/dist/index.cjs.js +65 -20
- package/dist/index.css +1 -1
- package/dist/index.es.js +65 -20
- package/dist/src/common/functions/colorManipulation.d.ts.map +1 -1
- package/dist/src/common/functions/lazy.d.ts +13 -0
- package/dist/src/common/functions/lazy.d.ts.map +1 -0
- 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.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts.map +1 -1
- package/dist/src/storybook/componentMappings.d.ts +15 -5
- package/dist/src/storybook/componentMappings.d.ts.map +1 -1
- package/dist/test/common/functions/colorManipulation.test.d.ts +2 -0
- package/dist/test/common/functions/colorManipulation.test.d.ts.map +1 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/separateEventsToInnerRows.test.d.ts +2 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/separateEventsToInnerRows.test.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/deprecated/components/MultiSelect_deprecated_.d.ts +0 -24
- package/dist/deprecated/components/MultiSelect_deprecated_.d.ts.map +0 -1
- package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts +0 -17
- package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts.map +0 -1
- package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts +0 -17
- package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts.map +0 -1
- package/dist/deprecated/components/multiselect/CwMultiselect.d.ts +0 -13
- package/dist/deprecated/components/multiselect/CwMultiselect.d.ts.map +0 -1
- package/dist/deprecated/components/multiselect/CwOptionList.d.ts +0 -14
- package/dist/deprecated/components/multiselect/CwOptionList.d.ts.map +0 -1
- package/dist/deprecated/components/tag/CwTag.d.ts +0 -15
- package/dist/deprecated/components/tag/CwTag.d.ts.map +0 -1
- package/dist/playground/main.d.ts +0 -4
- package/dist/playground/main.d.ts.map +0 -1
- package/dist/src/components/control/action/button/CwButtonBadge.d.ts +0 -63
- package/dist/src/components/control/action/button/CwButtonBadge.d.ts.map +0 -1
- package/dist/src/components/control/action/button/CwPopoverButton.d.ts +0 -33
- package/dist/src/components/control/action/button/CwPopoverButton.d.ts.map +0 -1
- package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts +0 -29
- package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts.map +0 -1
- package/dist/src/components/control/action/search/CwAsyncSearch.d.ts +0 -102
- package/dist/src/components/control/action/search/CwAsyncSearch.d.ts.map +0 -1
- package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts +0 -19
- package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts.map +0 -1
- package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts +0 -19
- package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts.map +0 -1
- package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts +0 -21
- package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts.map +0 -1
- package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts +0 -24
- package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts.map +0 -1
- package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts +0 -19
- package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts.map +0 -1
- package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts +0 -17
- package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts.map +0 -1
- package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts +0 -21
- package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts.map +0 -1
- package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts +0 -17
- package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts.map +0 -1
- package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts +0 -13
- package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts.map +0 -1
- package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts +0 -14
- package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts.map +0 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts +0 -47
- package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts +0 -24
- package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts +0 -86
- package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts +0 -10
- package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts +0 -20
- package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts +0 -14
- package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts +0 -13
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts +0 -14
- package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts +0 -23
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts +0 -8
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts +0 -12
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts +0 -12
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts +0 -10
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts +0 -12
- package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts +0 -10
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts +0 -8
- package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts +0 -13
- package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts +0 -6
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts +0 -5
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts +0 -5
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts +0 -6
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts +0 -43
- package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts +0 -14
- package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/State.d.ts +0 -25
- package/dist/src/components/custom/scheduler-temporal/state/State.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts +0 -18
- package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts +0 -6
- package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts.map +0 -1
- package/dist/src/components/display/data/accordion/CwAccordionContainer.stories.d.ts +0 -27
- package/dist/src/components/display/data/accordion/CwAccordionContainer.stories.d.ts.map +0 -1
- package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts +0 -21
- package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts.map +0 -1
- package/dist/src/components/display/text/tag/CwTag.d.ts +0 -15
- package/dist/src/components/display/text/tag/CwTag.d.ts.map +0 -1
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts +0 -11
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts.map +0 -1
- package/dist/src/components/layout/align/CwAlign.stories.d.ts +0 -439
- package/dist/src/components/layout/align/CwAlign.stories.d.ts.map +0 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts +0 -16
- package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts.map +0 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts +0 -21
- package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts.map +0 -1
- package/dist/src/playground/pages/ShadowRecipesPage.d.ts +0 -3
- package/dist/src/playground/pages/ShadowRecipesPage.d.ts.map +0 -1
- package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts +0 -2
- package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts.map +0 -1
- package/dist/test/jest.setup.d.ts +0 -2
- package/dist/test/jest.setup.d.ts.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -92,13 +92,27 @@ function colorToHSL(color) {
|
|
|
92
92
|
l: Math.round(l * 100)
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
+
const HEX_CACHE_LIMIT = 500;
|
|
96
|
+
const hexCache = new Map();
|
|
97
|
+
let canvasContext = null;
|
|
95
98
|
function colorToHEX(color) {
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
const cached = hexCache.get(color);
|
|
100
|
+
if (cached !== undefined)
|
|
101
|
+
return cached;
|
|
102
|
+
if (!canvasContext) {
|
|
103
|
+
canvasContext = document.createElement('canvas').getContext('2d');
|
|
104
|
+
if (!canvasContext)
|
|
105
|
+
throw new Error('Could not create canvas context');
|
|
106
|
+
}
|
|
107
|
+
// A reused context keeps its previous fillStyle when the new color is invalid; reset it to the
|
|
108
|
+
// fresh-canvas default so an invalid color still gives black instead of the last valid color.
|
|
109
|
+
canvasContext.fillStyle = '#000000';
|
|
110
|
+
canvasContext.fillStyle = color;
|
|
111
|
+
const hex = canvasContext.fillStyle;
|
|
112
|
+
if (hexCache.size >= HEX_CACHE_LIMIT)
|
|
113
|
+
hexCache.clear();
|
|
114
|
+
hexCache.set(color, hex);
|
|
115
|
+
return hex;
|
|
102
116
|
}
|
|
103
117
|
function getHSLColor(color, alpha = 1) {
|
|
104
118
|
const hsl = colorToHSL(color);
|
|
@@ -9021,18 +9035,16 @@ const getNow$1 = (isUtc) => {
|
|
|
9021
9035
|
return now;
|
|
9022
9036
|
};
|
|
9023
9037
|
const TimeLine = ({ left, top = "0px", height, color, width = "2px", zIndexNumber = 0, isHeader, isUtc = false }) => {
|
|
9024
|
-
const [currentTime, setCurrentTime] = useState(getNow$1(isUtc));
|
|
9038
|
+
const [currentTime, setCurrentTime] = useState(() => getNow$1(isUtc));
|
|
9025
9039
|
useEffect(() => {
|
|
9040
|
+
if (!isHeader) {
|
|
9041
|
+
return;
|
|
9042
|
+
}
|
|
9026
9043
|
const interval = setInterval(() => {
|
|
9027
9044
|
setCurrentTime(getNow$1(isUtc));
|
|
9028
|
-
}, 60000);
|
|
9045
|
+
}, 60000);
|
|
9029
9046
|
return () => clearInterval(interval);
|
|
9030
|
-
}, [isUtc]);
|
|
9031
|
-
const timeString = currentTime.toLocaleTimeString([], {
|
|
9032
|
-
hour: '2-digit',
|
|
9033
|
-
minute: '2-digit',
|
|
9034
|
-
hour12: false
|
|
9035
|
-
});
|
|
9047
|
+
}, [isUtc, isHeader]);
|
|
9036
9048
|
return (jsx("div", { style: {
|
|
9037
9049
|
position: "absolute",
|
|
9038
9050
|
top: top,
|
|
@@ -9044,7 +9056,11 @@ const TimeLine = ({ left, top = "0px", height, color, width = "2px", zIndexNumbe
|
|
|
9044
9056
|
zIndex: zIndexNumber,
|
|
9045
9057
|
}, className: styles$3["scheduler-timeline-now"], children: isHeader && (jsx("span", { style: {
|
|
9046
9058
|
color: color,
|
|
9047
|
-
}, className: styles$3["scheduler-timeline-label"], children:
|
|
9059
|
+
}, className: styles$3["scheduler-timeline-label"], children: currentTime.toLocaleTimeString([], {
|
|
9060
|
+
hour: '2-digit',
|
|
9061
|
+
minute: '2-digit',
|
|
9062
|
+
hour12: false
|
|
9063
|
+
}) })) }));
|
|
9048
9064
|
};
|
|
9049
9065
|
|
|
9050
9066
|
function isToday(startDate, endDate) {
|
|
@@ -9239,7 +9255,7 @@ const eventsCollide = (event1, event2) => {
|
|
|
9239
9255
|
return eventInsideOther || eventCollideStart || eventCollideEnd;
|
|
9240
9256
|
};
|
|
9241
9257
|
// Function to separate events into non-colliding rows
|
|
9242
|
-
const
|
|
9258
|
+
const computeInnerRows = (events) => {
|
|
9243
9259
|
const sortedEvents = [...events].sort((a, b) => {
|
|
9244
9260
|
const aOrder = a.order ?? Number.MAX_SAFE_INTEGER;
|
|
9245
9261
|
const bOrder = b.order ?? Number.MAX_SAFE_INTEGER;
|
|
@@ -9264,15 +9280,44 @@ const separateEventsToInnerRows = (events) => {
|
|
|
9264
9280
|
}
|
|
9265
9281
|
return rows;
|
|
9266
9282
|
};
|
|
9283
|
+
// The scheduler asks for the same row's lanes several times per repaint (total height, virtual-list
|
|
9284
|
+
// item size, row render). Row event arrays keep their identity until their events change, so the
|
|
9285
|
+
// array itself is the cache key.
|
|
9286
|
+
const innerRowsCache = new WeakMap();
|
|
9287
|
+
const separateEventsToInnerRows = (events) => {
|
|
9288
|
+
const cached = innerRowsCache.get(events);
|
|
9289
|
+
if (cached) {
|
|
9290
|
+
return cached;
|
|
9291
|
+
}
|
|
9292
|
+
const rows = computeInnerRows(events);
|
|
9293
|
+
innerRowsCache.set(events, rows);
|
|
9294
|
+
return rows;
|
|
9295
|
+
};
|
|
9267
9296
|
|
|
9268
9297
|
const DivisionLine = ({ left, top = "0px", height, isDayBoundary }) => {
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9298
|
+
return (jsx("div", { style: {
|
|
9299
|
+
position: "absolute",
|
|
9300
|
+
top: top,
|
|
9301
|
+
height: height,
|
|
9302
|
+
left: left + "%",
|
|
9303
|
+
width: isDayBoundary ? "2px" : "1px",
|
|
9304
|
+
background: isDayBoundary ? "rgba(255,255,255,1)" : "rgba(255,255,255,0.8)",
|
|
9305
|
+
pointerEvents: "none",
|
|
9306
|
+
zIndex: 0,
|
|
9307
|
+
} }));
|
|
9272
9308
|
};
|
|
9273
9309
|
|
|
9274
9310
|
const WeekEndLine = ({ left, top = "0px", height, widthPercentage }) => {
|
|
9275
|
-
return (jsx(
|
|
9311
|
+
return (jsx("div", { style: {
|
|
9312
|
+
position: "absolute",
|
|
9313
|
+
top: top,
|
|
9314
|
+
height: height,
|
|
9315
|
+
left: left + "%",
|
|
9316
|
+
width: widthPercentage + "%",
|
|
9317
|
+
background: "rgba(0,0,0,0.05)",
|
|
9318
|
+
pointerEvents: "none",
|
|
9319
|
+
zIndex: 0,
|
|
9320
|
+
} }));
|
|
9276
9321
|
};
|
|
9277
9322
|
|
|
9278
9323
|
var styles$1 = {"scheduler-row-header":"scheduler-row-module__scheduler-row-header__S-iv4"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorManipulation.d.ts","sourceRoot":"","sources":["../../../../src/common/functions/colorManipulation.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"colorManipulation.d.ts","sourceRoot":"","sources":["../../../../src/common/functions/colorManipulation.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,MAAM,CAAC;AA4CzB,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAkBpD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,GAAE,MAAU,GAAG,MAAM,CAGxE;AA0BD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CA2C1D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A value the caller can either hand over directly or describe as a thunk to build on demand.
|
|
3
|
+
*
|
|
4
|
+
* Building React content for every item of a large collection costs memory and CPU even when
|
|
5
|
+
* most of it is never seen: a virtualised scheduler paints a few dozen of its hundreds of rows,
|
|
6
|
+
* and a tooltip only matters while the pointer rests on it. Accepting a thunk lets the caller
|
|
7
|
+
* defer that work to the component that knows whether it is needed, without forcing every
|
|
8
|
+
* existing caller to change - a plain value still works.
|
|
9
|
+
*/
|
|
10
|
+
export type Lazy<T> = T | (() => T);
|
|
11
|
+
/** Calls `value` when it is a thunk, otherwise returns it unchanged. */
|
|
12
|
+
export declare function resolveLazy<T>(value: Lazy<T> | undefined): T | undefined;
|
|
13
|
+
//# sourceMappingURL=lazy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../../../src/common/functions/lazy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AAEpC,wEAAwE;AACxE,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,CAAC,GAAG,SAAS,CAExE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DivisionLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DivisionLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,UAAU,KAAK;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,CAalC,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAMpB,CAAC"}
|
package/dist/src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,EAAE,EAAC,MAAM,OAAO,CAAC;AAWnD,UAAU,KAAK;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"TimeLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,EAAE,EAAC,MAAM,OAAO,CAAC;AAWnD,UAAU,KAAK;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,KAAK,CAoD9B,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAMpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WeekEndLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WeekEndLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,UAAU,KAAK;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,KAAK,CAajC,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAMpB,CAAC"}
|
package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SchedulerEventDm } from "../components/row/Event";
|
|
2
|
-
export declare const separateEventsToInnerRows: <P extends SchedulerEventDm>(events: P[]) => P[][];
|
|
2
|
+
export declare const separateEventsToInnerRows: <P extends SchedulerEventDm>(events: readonly P[]) => readonly (readonly P[])[];
|
|
3
3
|
//# sourceMappingURL=separateEventsToInnerRows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separateEventsToInnerRows.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"separateEventsToInnerRows.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AA2C3D,eAAO,MAAM,yBAAyB,GAAI,CAAC,SAAS,gBAAgB,EAAE,QAAQ,SAAS,CAAC,EAAE,KAAG,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,EAQnH,CAAC"}
|
|
@@ -12,11 +12,21 @@
|
|
|
12
12
|
* Values here point at real existing tokens (layer 1, 2 or 3), never invented ones - per project
|
|
13
13
|
* convention, library stories stay domain-neutral (no real client names, no real client colors).
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
15
|
+
* ⚠️ The layer-3 vars alone (--cw-icon-content, --cw-button-solid-*, ...) have zero consumers today -
|
|
16
|
+
* cw-button.css / the generic `button` rule in cw-elements.css still read the OLD bridge tokens
|
|
17
|
+
* (--cw-color-icons, --cw-color-icons-variant, --cw-color-button-background/-content/-hover-*)
|
|
18
|
+
* directly, not through their new layer-3 successor (verified by grepping src/ for
|
|
19
|
+
* `var(--cw-icon-content` etc: no hits). So each mapping below also overrides the matching OLD token,
|
|
20
|
+
* which is what actually renders - the layer-3 override stays too, so this keeps working once
|
|
21
|
+
* CwIcon/CwButton are migrated to consume the new names directly (the "consumption flip").
|
|
22
|
+
* `--cw-button-outline-content` now has a real consumer: .cw-button-outline in cw-button.css reads it
|
|
23
|
+
* directly (its non-hover/rest-state color), so that mapping below is live, not aspirational -
|
|
24
|
+
* overriding the old shared bridge token (--cw-color-primary-variant) directly would still recolor
|
|
25
|
+
* everything else on the primary family (toggle, loading, pickers, file-upload, ...), which is exactly
|
|
26
|
+
* why the button now reads its own layer-3 token instead. `--cw-button-outline-hover-content` and the
|
|
27
|
+
* table header/row-selected pair are still layer-3-only: the hover state and CwTable hardcode
|
|
28
|
+
* surface-container/primary-container literally (0 consumers of those tokens, old or new) - see
|
|
29
|
+
* the comments in cw-colors.css/cw-theme.css. Both stay ready for their own future consumption flip.
|
|
20
30
|
*/
|
|
21
31
|
export type ComponentMappingOverrides = Record<string, string>;
|
|
22
32
|
export interface NamedComponentMapping {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentMappings.d.ts","sourceRoot":"","sources":["../../../src/storybook/componentMappings.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"componentMappings.d.ts","sourceRoot":"","sources":["../../../src/storybook/componentMappings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE/D,MAAM,WAAW,qBAAqB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,yBAAyB,CAAC;CACrC;AAkDD,mGAAmG;AACnG,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAI9E,CAAC;AAEF,eAAO,MAAM,6BAA6B,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorManipulation.test.d.ts","sourceRoot":"","sources":["../../../../test/common/functions/colorManipulation.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separateEventsToInnerRows.test.d.ts","sourceRoot":"","sources":["../../../../../../../test/components/custom/new-scheduler/presentation/logic/separateEventsToInnerRows.test.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { CwSelectList } from "../../src/common/classes/CwSelectList";
|
|
3
|
-
export interface MultiselectProps {
|
|
4
|
-
selectLists: Array<Array<CwSelectList>>;
|
|
5
|
-
handleChange?: (value: any, test: any) => void;
|
|
6
|
-
selectedItems?: Array<CwSelectList>;
|
|
7
|
-
}
|
|
8
|
-
interface State {
|
|
9
|
-
selected: any;
|
|
10
|
-
isVisibleDropDown: any;
|
|
11
|
-
activeClassName: string;
|
|
12
|
-
}
|
|
13
|
-
export declare class MultiSelect extends React.Component<MultiselectProps, State> {
|
|
14
|
-
constructor(Props: MultiselectProps);
|
|
15
|
-
componentDidMount(): void;
|
|
16
|
-
onClickSelect: () => void;
|
|
17
|
-
handleOnDropDownVisibleChange: () => void;
|
|
18
|
-
onKeyUpSelect: (e_KeyUp_select: any) => void;
|
|
19
|
-
onMouseHoverDropDownActive: () => boolean;
|
|
20
|
-
onMouseLeaveMultiSelect: (event_mouseLeave: any) => void;
|
|
21
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=MultiSelect_deprecated_.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect_deprecated_.d.ts","sourceRoot":"","sources":["../../../deprecated/components/MultiSelect_deprecated_.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAGrE,MAAM,WAAW,gBAAgB;IAChC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IACxC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CACpC;AAED,UAAU,KAAK;IACd,QAAQ,EAAE,GAAG,CAAC;IACd,iBAAiB,EAAE,GAAG,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACxB;AAED,qBAAa,WAAY,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,EAAE,KAAK,CAAC;gBAC5D,KAAK,EAAE,gBAAgB;IASnC,iBAAiB;IAYjB,aAAa,aAQX;IAEF,6BAA6B,aAS3B;IAEF,aAAa,mBAAoB,GAAG,UAUlC;IAGF,0BAA0B,gBAexB;IAGF,uBAAuB,qBAAsB,GAAG,UAa9C;IAEF,MAAM;CA6DN"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface CwDropdownContainerProps {
|
|
3
|
-
dropDownState?: boolean;
|
|
4
|
-
idDropDownContainer?: string;
|
|
5
|
-
children?: any;
|
|
6
|
-
listItems?: Array<OptionListItems>;
|
|
7
|
-
onKeyDownDropDownContainer?: any;
|
|
8
|
-
onMouseLeaveDropDownContainer?: any;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
interface OptionListItems {
|
|
12
|
-
idListOption?: string | number | any;
|
|
13
|
-
childrenOptionList?: string | any;
|
|
14
|
-
}
|
|
15
|
-
export declare function CwDropdownContainer(dropDownContainerProps: React.PropsWithChildren<CwDropdownContainerProps>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=CwDropdownContainer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CwDropdownContainer.d.ts","sourceRoot":"","sources":["../../../../deprecated/components/dropdown/CwDropdownContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,wBAAwB;IACxC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACnC,0BAA0B,CAAC,EAAE,GAAG,CAAC;IACjC,6BAA6B,CAAC,EAAE,GAAG,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,eAAe;IACxB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClC;AAED,wBAAgB,mBAAmB,CAAC,sBAAsB,EAAE,KAAK,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,2CAgD5G"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface CwHeadFilterProps {
|
|
3
|
-
style?: React.CSSProperties;
|
|
4
|
-
className?: string;
|
|
5
|
-
placeholder_desc?: string;
|
|
6
|
-
children?: any;
|
|
7
|
-
onShowDropDown?: any;
|
|
8
|
-
onChangeSearch?: any;
|
|
9
|
-
Id?: string;
|
|
10
|
-
tagValueContent?: any;
|
|
11
|
-
onClearValue?: any;
|
|
12
|
-
onKeypressInput?: any;
|
|
13
|
-
onMouseLeave?: any;
|
|
14
|
-
onBlur?: any;
|
|
15
|
-
}
|
|
16
|
-
export declare function CwHeadFilter(cwelltFilterTabMultiSelectProps: React.PropsWithChildren<CwHeadFilterProps>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
//# sourceMappingURL=CwHeadFilter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CwHeadFilter.d.ts","sourceRoot":"","sources":["../../../../deprecated/components/multiselect/CwHeadFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,iBAAiB;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IAEtB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,MAAM,CAAC,EAAE,GAAG,CAAC;CACb;AAED,wBAAgB,YAAY,CAAC,+BAA+B,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,2CA+HvG"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { CwSelectListProps } from "../../../src/common/interfaces/CwSelectListProps";
|
|
3
|
-
export interface CwFilterTabProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
idDropDownContainer?: string;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
onclickHandleChange?: any;
|
|
9
|
-
selectListsItems?: Array<Array<CwSelectListProps>>;
|
|
10
|
-
selectedListsItems?: Array<CwSelectListProps>;
|
|
11
|
-
}
|
|
12
|
-
export declare function CwMultiselect(CwelltCustomFilterTabProps: React.PropsWithChildren<CwFilterTabProps>): JSX.Element;
|
|
13
|
-
//# sourceMappingURL=CwMultiselect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CwMultiselect.d.ts","sourceRoot":"","sources":["../../../../deprecated/components/multiselect/CwMultiselect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAO1F,MAAM,WAAW,gBAAgB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAE1B,gBAAgB,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAEnD,kBAAkB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CAC9C;AAGD,wBAAgB,aAAa,CAC5B,0BAA0B,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GACnE,GAAG,CAAC,OAAO,CAiiBb"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface CwOptionListProps {
|
|
3
|
-
children?: any;
|
|
4
|
-
value?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
onClick?: any;
|
|
7
|
-
idOptionList?: string | number | any;
|
|
8
|
-
onKeyPress?: any;
|
|
9
|
-
onChangeOptionList?: any;
|
|
10
|
-
isSelected?: boolean;
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
}
|
|
13
|
-
export declare function CwOptionList(optionListProps: React.PropsWithChildren<CwOptionListProps>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
//# sourceMappingURL=CwOptionList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CwOptionList.d.ts","sourceRoot":"","sources":["../../../../deprecated/components/multiselect/CwOptionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IACrC,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,kBAAkB,CAAC,EAAE,GAAG,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC5B;AAED,wBAAgB,YAAY,CAAC,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,2CAiEvF"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface CwTagProps {
|
|
3
|
-
children?: any;
|
|
4
|
-
styleTag?: React.CSSProperties;
|
|
5
|
-
styleTag_description?: React.CSSProperties;
|
|
6
|
-
closableTag?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
onClickTag?: (clickEvent: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
9
|
-
onClickClosableTag?: (clickEvent: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
10
|
-
idTag?: string;
|
|
11
|
-
ref?: any;
|
|
12
|
-
styleClosableButton?: React.CSSProperties;
|
|
13
|
-
}
|
|
14
|
-
export declare function CwTag(tagProps: React.PropsWithChildren<CwTagProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
//# sourceMappingURL=CwTag.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CwTag.d.ts","sourceRoot":"","sources":["../../../../deprecated/components/tag/CwTag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,eAAe,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACjF,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,eAAe,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC1C;AAED,wBAAgB,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,2CAyClE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../playground/main.tsx"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,CAAC;AAG3B,OAAO,oCAAoC,CAAA;AAI3C,eAAO,MAAM,GAAG,+CAWf,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { type BadgeColorScheme, type BadgeSize, type BadgeVariant } from "../../../display/text/badge/CwBadge";
|
|
2
|
-
export interface CwButtonBadgeProps {
|
|
3
|
-
/** cwi icon name rendered by the button */
|
|
4
|
-
icon: string;
|
|
5
|
-
/** Tooltip and accessible name, handled by CwButton's own `title` */
|
|
6
|
-
title?: string;
|
|
7
|
-
/** Number shown in the badge */
|
|
8
|
-
count: number;
|
|
9
|
-
/** Badge color scheme */
|
|
10
|
-
colorScheme?: BadgeColorScheme;
|
|
11
|
-
/** Badge variant */
|
|
12
|
-
variant?: BadgeVariant;
|
|
13
|
-
/** Badge size */
|
|
14
|
-
size?: BadgeSize;
|
|
15
|
-
/** Render the badge when `count` is 0 */
|
|
16
|
-
showZero?: boolean;
|
|
17
|
-
/** Replace the badge with a spinner while the count is being fetched */
|
|
18
|
-
loading?: boolean;
|
|
19
|
-
/** Highest value rendered as a number */
|
|
20
|
-
max?: number;
|
|
21
|
-
/** Click handler for the button */
|
|
22
|
-
onClick?: () => void;
|
|
23
|
-
/** Disables the button */
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
/** Forwarded to the button element */
|
|
26
|
-
id?: string;
|
|
27
|
-
/** Additional CSS class name for the wrapper */
|
|
28
|
-
className?: string;
|
|
29
|
-
"data-testid"?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* CwButtonBadge - An icon CwButton with a CwBadge overlaid on its top-right corner: the
|
|
33
|
-
* alert-count button used in nav bars and alert rows.
|
|
34
|
-
*
|
|
35
|
-
* It composes {@link CwButton} and {@link CwBadge} rather than extending either. The wrapper
|
|
36
|
-
* is the positioning context and shrink-wraps the button, so the component drops into a
|
|
37
|
-
* toolbar row next to plain CwButtons without changing the row's layout. The badge is
|
|
38
|
-
* `pointer-events: none`, so it can never swallow a click meant for the button.
|
|
39
|
-
*
|
|
40
|
-
* Badge behaviour comes from CwBadge unchanged: `showZero={false}` with a count of 0 renders
|
|
41
|
-
* no badge at all, and `loading` replaces the badge with a bare spinner in the corner.
|
|
42
|
-
*
|
|
43
|
-
* @param icon cwi icon name rendered by the button.
|
|
44
|
-
* @param title Tooltip and accessible name.
|
|
45
|
-
* @param count Number shown in the badge.
|
|
46
|
-
* @param colorScheme Badge color scheme.
|
|
47
|
-
* @param variant Badge variant.
|
|
48
|
-
* @param size Badge size.
|
|
49
|
-
* @param showZero Render the badge when `count` is 0.
|
|
50
|
-
* @param loading Replace the badge with a spinner.
|
|
51
|
-
* @param max Highest value rendered as a number.
|
|
52
|
-
* @param onClick Click handler for the button.
|
|
53
|
-
* @param disabled Disables the button.
|
|
54
|
-
* @param id Forwarded to the button element.
|
|
55
|
-
* @param className Additional CSS class name for the wrapper.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* <CwButtonBadge icon="alert" title="Alerts" count={3} colorScheme="danger" onClick={openAlerts} />
|
|
59
|
-
* <CwButtonBadge icon="envelope" title="Messages" count={0} showZero={false} />
|
|
60
|
-
* <CwButtonBadge icon="alert" title="Alerts" count={0} loading />
|
|
61
|
-
*/
|
|
62
|
-
export declare function CwButtonBadge({ icon, title, count, colorScheme, variant, size, showZero, loading, max, onClick, disabled, id, className, "data-testid": dataTestId, }: CwButtonBadgeProps): import("react").JSX.Element;
|
|
63
|
-
//# sourceMappingURL=CwButtonBadge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CwButtonBadge.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/button/CwButtonBadge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGxH,MAAM,WAAW,kBAAkB;IAClC,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,oBAAoB;IACpB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,iBAAiB;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,aAAa,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,KAAK,EACL,WAAW,EACX,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,GAAG,EACH,OAAO,EACP,QAAQ,EACR,EAAE,EACF,SAAc,EACd,aAAa,EAAE,UAAU,GACzB,EAAE,kBAAkB,+BAwBpB"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { type CwButtonProps } from "./CwButton";
|
|
3
|
-
export interface CwPopoverButtonProps extends Omit<CwButtonProps, "onClick" | "children"> {
|
|
4
|
-
/** Content rendered inside the floating panel */
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/** Panel width — CSS value (e.g. "auto", "16rem"). @default "auto" */
|
|
7
|
-
panelWidth?: string;
|
|
8
|
-
/** Horizontal alignment relative to the button. @default "bottom-start" */
|
|
9
|
-
placement?: "bottom-start" | "bottom-end";
|
|
10
|
-
/** Additional CSS class for the panel */
|
|
11
|
-
panelClassName?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Button that toggles a floating panel with arbitrary children.
|
|
15
|
-
* Closes on click-outside or Escape.
|
|
16
|
-
*
|
|
17
|
-
* Designed as a composable primitive:
|
|
18
|
-
* - Column picker: put `<CwCheckboxGroup>` inside
|
|
19
|
-
* - Options menu: put toggles / links inside
|
|
20
|
-
* - Future CwTable integration: use internally for column visibility
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* <CwPopoverButton text="Columns" icon="table" variant="outline">
|
|
24
|
-
* <CwCheckboxGroup options={opts} value={val} onChange={setVal} />
|
|
25
|
-
* </CwPopoverButton>
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* <CwPopoverButton text="Options" icon="options" variant="outline" placement="bottom-end">
|
|
29
|
-
* <CwToggle labelText="Show assigned" checked={v} onChange={setV} />
|
|
30
|
-
* </CwPopoverButton>
|
|
31
|
-
*/
|
|
32
|
-
export declare function CwPopoverButton({ children, panelWidth, placement, panelClassName, ...buttonProps }: CwPopoverButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
//# sourceMappingURL=CwPopoverButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CwPopoverButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/button/CwPopoverButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAG1D,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;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,EAC/B,QAAQ,EACR,UAAmB,EACnB,SAA0B,EAC1B,cAAc,EACd,GAAG,WAAW,EACd,EAAE,oBAAoB,2CA0CtB"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface CwContextualMenuProps {
|
|
3
|
-
children?: any;
|
|
4
|
-
handleContextMenu?: any;
|
|
5
|
-
onClick?: any;
|
|
6
|
-
dataSourceContextMenu?: Array<CwDataItemsListProps>;
|
|
7
|
-
dataSourceContextMenu_schd?: Array<CwDataItemsListSchdProps>;
|
|
8
|
-
}
|
|
9
|
-
export interface CwDataItemsListProps {
|
|
10
|
-
idDataItem?: string | number | any;
|
|
11
|
-
dataItemContent?: string | any;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
styleDataItem?: React.CSSProperties;
|
|
14
|
-
}
|
|
15
|
-
export interface CwDataItemsListSchdProps {
|
|
16
|
-
key?: string;
|
|
17
|
-
text?: string;
|
|
18
|
-
icon?: string;
|
|
19
|
-
color?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface CwBoxItemsProps {
|
|
22
|
-
id?: any;
|
|
23
|
-
children?: any;
|
|
24
|
-
style?: React.CSSProperties;
|
|
25
|
-
styleDataItem?: React.CSSProperties;
|
|
26
|
-
}
|
|
27
|
-
export declare function CwDataItem(cwBoxItemsProps: React.PropsWithChildren<CwBoxItemsProps>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export declare function CwContextualMenu(CwelltRightClickProps: React.PropsWithChildren<CwContextualMenuProps>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
//# sourceMappingURL=CwContextualMenu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CwContextualMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/contextual-menu/CwContextualMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,iBAAiB,CAAC,EAAE,GAAG,CAAC;IACxB,OAAO,CAAC,EAAE,GAAG,CAAC;IAEd,qBAAqB,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAEpD,0BAA0B,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;CAC7D;AAGD,MAAM,WAAW,oBAAoB;IAEpC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAEnC,eAAe,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAE/B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACpC;AAGD,MAAM,WAAW,wBAAwB;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC/B,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACpC;AAED,wBAAgB,UAAU,CAAC,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,2CAQnF;AAED,wBAAgB,gBAAgB,CAAC,qBAAqB,EAAE,KAAK,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,2CAyFrG"}
|