@devtron-labs/devtron-fe-common-lib 0.0.59-beta-12 → 0.0.59-beta-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.js
CHANGED
|
@@ -29030,7 +29030,7 @@ var Footer = function (_a) {
|
|
|
29030
29030
|
return BUILD_INFRA_TEXT.SAVE_SUBMIT;
|
|
29031
29031
|
};
|
|
29032
29032
|
var renderTippy = function (children) { return (jsxRuntime.jsx(Tippy, __assign({ content: disableMessage, placement: "top", className: "default-tt", arrow: false }, { children: children }))); };
|
|
29033
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "flex pl pr pb pt h-64 dc__gap-12 dc__border-top dc__content-start" }, { children: [jsxRuntime.jsx(ConditionalWrap, __assign({ condition: disabled || loading, wrap: renderTippy }, { children: jsxRuntime.jsx("div", __assign({ className: "flexbox dc__align-items-center" }, { children: jsxRuntime.jsx("button", __assign({ type: "submit", className: "cta submit h-32 flex", disabled: disabled || loading, "data-testid": BUILD_INFRA_TEST_IDS.SUBMIT_BUTTON }, { children: loading ? jsxRuntime.jsx(Progressing, { size: 16 }) : getButtonText() })) })) })), handleCancel && (jsxRuntime.jsx("button", __assign({ type: "button", className: "cta cancel h-32 flex", "data-testid": BUILD_INFRA_TEST_IDS.CANCEL_BUTTON, onClick: handleCancel }, { children: BUILD_INFRA_TEXT.EDIT_CANCEL })))] })));
|
|
29033
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "flex pl pr pb pt h-64 dc__gap-12 dc__border-top dc__content-start" }, { children: [jsxRuntime.jsx(ConditionalWrap, __assign({ condition: disabled || loading, wrap: renderTippy }, { children: jsxRuntime.jsx("div", __assign({ className: "flexbox dc__align-items-center" }, { children: jsxRuntime.jsx("button", __assign({ type: "submit", className: "cta submit h-32 flex", disabled: disabled || loading, "data-testid": BUILD_INFRA_TEST_IDS.SUBMIT_BUTTON }, { children: loading ? jsxRuntime.jsx(Progressing, { size: 16 }) : getButtonText() })) })) })), handleCancel && (jsxRuntime.jsx("button", __assign({ type: "button", className: "cta cancel h-32 flex", disabled: loading, "data-testid": BUILD_INFRA_TEST_IDS.CANCEL_BUTTON, onClick: handleCancel }, { children: BUILD_INFRA_TEXT.EDIT_CANCEL })))] })));
|
|
29034
29034
|
};
|
|
29035
29035
|
|
|
29036
29036
|
var getBaseProfileObject = function (fromCreateView, profile) {
|
|
@@ -29352,7 +29352,7 @@ var BulkSelectionProvider = function (_a) {
|
|
|
29352
29352
|
};
|
|
29353
29353
|
}
|
|
29354
29354
|
// if all the identifiers are selected then CHECKED else intermediate
|
|
29355
|
-
var areAllPresentIdentifiersSelected =
|
|
29355
|
+
var areAllPresentIdentifiersSelected = Object.keys(identifiers).every(function (identifierId) { return selectedIdentifiers[identifierId]; });
|
|
29356
29356
|
if (areAllPresentIdentifiersSelected) {
|
|
29357
29357
|
return {
|
|
29358
29358
|
isChecked: true,
|
|
@@ -29480,7 +29480,7 @@ var BulkSelection = function (_a) {
|
|
|
29480
29480
|
},
|
|
29481
29481
|
]
|
|
29482
29482
|
: [])), false);
|
|
29483
|
-
return (jsxRuntime.jsxs(PopupMenu, __assign({ autoClose: true }, { children: [jsxRuntime.jsxs(PopupMenu.Button, __assign({ isKebab: true, rootClassName: "h-20 flexbox p-0 dc__no-background dc__no-border dc__outline-none-imp", dataTestId: BULK_DROPDOWN_TEST_ID }, { children: [jsxRuntime.jsx(Checkbox$1, { isChecked: isChecked, onChange: noop$1, rootClassName: "icon-dim-20", value: checkboxValue }), jsxRuntime.jsx(SvgIcChevronDown, { className: "icon-dim-20
|
|
29483
|
+
return (jsxRuntime.jsxs(PopupMenu, __assign({ autoClose: true }, { children: [jsxRuntime.jsxs(PopupMenu.Button, __assign({ isKebab: true, rootClassName: "h-20 flexbox p-0 dc__no-background dc__no-border dc__outline-none-imp", dataTestId: BULK_DROPDOWN_TEST_ID }, { children: [jsxRuntime.jsx(Checkbox$1, { isChecked: isChecked, onChange: noop$1, rootClassName: "icon-dim-20 m-0", value: checkboxValue }), jsxRuntime.jsx(SvgIcChevronDown, { className: "icon-dim-20 fcn-6 dc__no-shrink" })] })), jsxRuntime.jsx(PopupMenu.Body, __assign({ rootClassName: "dc__top-22 w-150 dc__right-0 pt-4 pb-4 pl-0 pr-0 bcn-0 flex column dc__content-start dc__align-start dc__position-abs bcn-0 dc__border dc__border-radius-4-imp" }, { children: BulkSelectionItems.map(function (item) { return (jsxRuntime.jsx(BulkSelectionDropdownItems, { locator: item.locator, label: item.label, isSelected: item.isSelected, icon: item.icon, handleBulkSelection: handleBulkSelection }, item.locator)); }) }))] })));
|
|
29484
29484
|
};
|
|
29485
29485
|
|
|
29486
29486
|
var MESSAGES = {
|
package/package.json
CHANGED
|
@@ -50,12 +50,12 @@ const BulkSelection = <T,>({ showPagination }: BulkSelectionProps) => {
|
|
|
50
50
|
<Checkbox
|
|
51
51
|
isChecked={isChecked}
|
|
52
52
|
onChange={noop}
|
|
53
|
-
rootClassName="icon-dim-20"
|
|
53
|
+
rootClassName="icon-dim-20 m-0"
|
|
54
54
|
value={checkboxValue}
|
|
55
55
|
// Ideally should be disabled but was giving issue with cursor
|
|
56
56
|
/>
|
|
57
57
|
|
|
58
|
-
<ICChevronDown className="icon-dim-20
|
|
58
|
+
<ICChevronDown className="icon-dim-20 fcn-6 dc__no-shrink" />
|
|
59
59
|
</PopupMenu.Button>
|
|
60
60
|
|
|
61
61
|
<PopupMenu.Body rootClassName="dc__top-22 w-150 dc__right-0 pt-4 pb-4 pl-0 pr-0 bcn-0 flex column dc__content-start dc__align-start dc__position-abs bcn-0 dc__border dc__border-radius-4-imp">
|
|
@@ -127,8 +127,8 @@ export const BulkSelectionProvider = <T,>({
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
// if all the identifiers are selected then CHECKED else intermediate
|
|
130
|
-
const areAllPresentIdentifiersSelected =
|
|
131
|
-
(identifierId) =>
|
|
130
|
+
const areAllPresentIdentifiersSelected = Object.keys(identifiers).every(
|
|
131
|
+
(identifierId) => selectedIdentifiers[identifierId],
|
|
132
132
|
)
|
|
133
133
|
|
|
134
134
|
if (areAllPresentIdentifiersSelected) {
|