@capillarytech/blaze-ui 5.0.9 → 5.0.11
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/CapDrawer/index.d.ts.map +1 -1
- package/CapDrawer/index.js +4 -2
- package/CapDrawer/index.js.map +1 -1
- package/CapHamburgerMenu/index.js +4 -2
- package/CapHamburgerMenu/index.js.map +1 -1
- package/CapNavigation/index.js +281 -117
- package/CapNavigation/index.js.map +1 -1
- package/CapTopBar/CapOrgSelect.d.ts.map +1 -1
- package/CapTopBar/CapOrgSelectUtils.d.ts.map +1 -1
- package/CapTopBar/index.d.ts.map +1 -1
- package/CapTopBar/index.js +389 -117
- package/CapTopBar/index.js.map +1 -1
- package/CapTopBar/themeConfig.d.ts.map +1 -1
- package/CapTopBar/types.d.ts +3 -2
- package/CapTopBar/types.d.ts.map +1 -1
- package/CapTopBar/utils.d.ts +1 -1
- package/CapTopBar/utils.d.ts.map +1 -1
- package/CapUnifiedSelect/enhanceOptions.d.ts +11 -1
- package/CapUnifiedSelect/enhanceOptions.d.ts.map +1 -1
- package/CapUnifiedSelect/index.d.ts +6 -0
- package/CapUnifiedSelect/index.d.ts.map +1 -1
- package/CapUnifiedSelect/index.js +87 -39
- package/CapUnifiedSelect/index.js.map +1 -1
- package/index.js +281 -117
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CapTopBar/index.js
CHANGED
|
@@ -815,22 +815,13 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
815
815
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
816
816
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
817
817
|
// Module
|
|
818
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cap-navbar a,.cap-navbar a:hover,.cap-navbar a:visited,.cap-navbar a:focus{text-decoration:none;color:#091e42}.cap-navbar-header{background-color:#fff;padding:0;display:flex;justify-content:
|
|
818
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-navbar a,.cap-navbar a:hover,.cap-navbar a:visited,.cap-navbar a:focus{text-decoration:none;color:#091e42}.cap-navbar-header{background-color:#fff;padding:0;display:flex;justify-content:center;align-items:center;border-bottom:1px solid #e8e8e8;width:100%;position:fixed;z-index:100;height:4.571rem;box-shadow:none}.cap-navbar-new-header{background-color:rgba(0,0,0,0);padding:0;display:flex;justify-content:space-between;align-items:center;width:calc(100vw - 21.42rem);position:fixed;z-index:100;height:4rem;box-shadow:none;margin-left:20.57rem;background-color:#fff !important}.cap-navbar-drawer .ant-list-items{margin-top:.857rem}.cap-navbar-drawer .ant-list-split .ant-list-item{--ant-line-width: 0}.cap-navbar-divider{height:1.428rem;align-self:center}.top-bar-select-selection{width:240px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:0 0 0 .571rem;margin:.571rem 0;height:3.428rem;border:1px solid rgba(0,0,0,0)}.top-bar-select-selection.open{border-radius:.285rem;border:1px solid #b3bac5}.top-bar-select-selection.secondary-select{margin-left:0}.top-bar-select-selected-value{font-size:1.143rem;font-weight:500;display:flex;align-items:center;min-width:188px}.top-bar-select-overflow-ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.top-bar-select-selected-value-label{max-width:150px}.top-bar-select-selected-ou-value-label{display:inline-flex;align-items:baseline;justify-content:space-between;width:150px}.cap-navbar-menu{width:100%;display:flex;flex-direction:row;justify-content:end;margin-right:4.286rem}.cap-navbar-menu .ant-menu-item-selected{font-weight:500}.cap-navbar-menu .ant-dropdown-menu-vertical{display:flex;flex-direction:column}.cap-navbar-actions-menu{width:100%;display:flex;flex-direction:column}.cap-navbar-vertical{height:1.428rem;margin-right:15px}.user-profile{width:17.714rem;display:flex;flex-direction:column;align-items:center;margin-top:.6rem}.user-profile-name-wrapper{display:flex;justify-content:center;align-items:center;background-color:#9e1d71;width:2.857rem;height:2.857rem;border-radius:1.142rem}.user-profile-avatar{font-weight:500;font-size:1.143rem;color:#fff}.user-profile-name{margin:.8rem 0 .2rem;font-weight:500}.user-profile-loginName{font-size:.857rem;opacity:.8}.user-profile .ant-divider-horizontal{width:20.2rem;margin:1rem 0 .857rem}.lang-wrapper{display:flex;align-items:center}.lang-icon{margin-right:.4rem;opacity:.6}.logout-wrapper{display:flex;align-items:center;margin-bottom:.286rem}.logout-text{font-weight:500;margin-left:.4rem;cursor:pointer}.cap-navbar-topbarIcon{padding:1.714rem;margin:0 2px;color:#091e42;cursor:pointer}.cap-navbar-new-topbarIcon{padding:.571rem}.cap-navbar-topbarIcon:hover{background-color:#ebecf0;border-radius:1.714rem;cursor:pointer}.cap-navbar-user{margin:0 2.857rem 0 2.857rem;cursor:pointer}.cap-navbar-new-user{cursor:pointer}@media screen and (min-width: 1260px){.cap-navbar-new-user.expanded{margin:0 0 0 3%}.cap-navbar-new-user.collapsed{margin:0 6% 0 3%}}@media screen and (max-width: 1260px){.cap-navbar-new-user{margin:0 4.571rem 0 2.857rem}}.top-bar-select-selected-icon{margin-right:.571rem}.cap-navbar-user,.cap-navbar-new-user,.top-bar-select-selected-icon{display:flex;align-items:center;justify-content:center;position:relative;height:2.285rem;width:2.285rem}.cap-navbar-user .text-label,.cap-navbar-new-user .text-label,.top-bar-select-selected-icon .text-label{position:absolute;right:47%;top:50%;transform:translate(50%, -50%);line-height:14px}.oval{width:2.285rem;height:2.285rem;background:#dfe2e7;border-radius:36%;display:flex}.oval .text-label{position:relative;right:47%;top:22%}.top-bar-select-header{padding:.571rem 1.142rem 1.428rem 1.142rem;font-size:1rem;font-weight:500}.top-bar-select-select-item,.top-bar-select-select-ou-org-item,.top-bar-select-select-ou-item{cursor:pointer}.top-bar-select-select-item:hover,.top-bar-select-select-ou-org-item:hover,.top-bar-select-select-ou-item:hover{background-color:#faf9f4}.top-bar-select-select-item.selected,.top-bar-select-select-ou-org-item.selected,.top-bar-select-select-ou-item.selected{color:#2466ea;font-weight:500;position:relative;background-color:rgba(36,102,234,.1)}.top-bar-select-select-item.selected:before,.top-bar-select-select-ou-org-item.selected:before,.top-bar-select-select-ou-item.selected:before{content:" ";width:2px;height:100%;left:0;top:0;position:absolute;background-color:#2466ea}.top-bar-select-select-item{padding:.571rem .571rem .571rem 1.714rem}.top-bar-select-select-ou-org-item{padding:.571rem .571rem .571rem .571rem}.top-bar-select-select-ou-item{padding:.571rem 1.142rem .571rem 2.857rem;display:flex;justify-content:space-between;align-items:baseline}.top-bar-select-no-results{display:flex;justify-content:center;flex-direction:column}.top-bar-select-no-results .top-bar-select-no-results-text{margin-top:8px;text-align:center;color:#97a0af;font-size:.857rem}.ant-popover.top-bar-select-popover,.ant-popover.cap-navbar-user-popover{padding-top:0;width:260px}.ant-popover.top-bar-select-popover .ant-popover-inner-content,.ant-popover.cap-navbar-user-popover .ant-popover-inner-content{padding-left:0;padding-right:0}.ant-popover.top-bar-select-popover .ant-popover-arrow,.ant-popover.cap-navbar-user-popover .ant-popover-arrow{display:none}.top-bar-select-search{padding:0 1.142rem 1.142rem 1.142rem}.top-bar-select-items-wrapper{max-height:200px}.top-bar-select-arrow{margin-right:.857rem}.cap-navbar-user-popover{width:260px}.cap-navbar-user-popover-item{cursor:pointer;display:flex;align-items:center;justify-content:space-between}.cap-navbar-person{z-index:0}.cap-navbar-flexDisplay{display:flex;flex-grow:1;align-items:center}.cap-navbar-more-app{height:1.714rem;width:1.614rem;margin:17px 10px 17px 21px}.cap-navbar-product-title{margin:1.428rem .857rem 1.428rem 1.714rem}.cap-navbar-new-dimensions{height:2.857rem;width:220px}.cap-navbar-new-dimensions .top-bar-select-selection{justify-content:unset;border:1px solid #b3bac5;border-radius:4px;margin:0;height:2.857rem}.cap-navbar-new-dimensions .top-bar-select-arrow{margin-left:.857rem;margin-right:unset}.cap-navbar-dimensions{width:17.143rem}.cap-navbar-heading{font-weight:500}.cap-navbar-capitalize{text-transform:capitalize}.cap-navbar-tick-icon{margin-right:.857rem}.cap-navbar-cursor-pointer{cursor:pointer}.breadcrumbs-topbar-expanded{font-weight:500 !important;color:#5e6c84 !important}.breadcrumbs-topbar-collapsed{font-weight:500 !important;color:#5e6c84 !important}.user-profile-icon{width:2.5rem;height:2.5rem;border-radius:.9375rem;background-color:#ebecf0;margin-right:.75rem}.cap-navbar-left-navigation-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.cap-navbar-left-navigation-wrapper .cap-unified-select-container .ant-select-prefix{display:inline;width:1.714rem;height:1.714rem;color:#091e42;fill:#dfe2e7;font-weight:500;line-height:4.571rem}.cap-navbar-left-navigation-wrapper .cap-unified-select-container .ant-select-content-value{display:flex;align-items:center;justify-content:start;flex-grow:1;margin:0 .857rem 0 .571rem;font-size:1rem;font-weight:500;color:#091e42}.cap-navbar-left-navigation-wrapper .cap-unified-select-container .ant-select-content-value>div{display:flex;align-items:center;justify-content:space-between;flex-grow:1}.cap-navbar-left-navigation-wrapper .cap-unified-select-container .ant-select-content-value>div>span:first-child{color:#091e42;font-size:1rem;font-weight:500}.cap-navbar-right-navigation-wrapper{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}`, ""]);
|
|
819
819
|
// Exports
|
|
820
820
|
___CSS_LOADER_EXPORT___.locals = {
|
|
821
821
|
"cap-navbar": `cap-navbar`,
|
|
822
822
|
"cap-navbar-header": `cap-navbar-header`,
|
|
823
823
|
"cap-navbar-new-header": `cap-navbar-new-header`,
|
|
824
824
|
"cap-navbar-drawer": `cap-navbar-drawer`,
|
|
825
|
-
"ant-drawer-header": `ant-drawer-header`,
|
|
826
|
-
"ant-drawer-body": `ant-drawer-body`,
|
|
827
|
-
"ant-list": `ant-list`,
|
|
828
|
-
"cap-list-v2": `cap-list-v2`,
|
|
829
|
-
"ant-list-split": `ant-list-split`,
|
|
830
|
-
"ant-list-item": `ant-list-item`,
|
|
831
|
-
"cap-icon-v2-tick": `cap-icon-v2-tick`,
|
|
832
|
-
"cap-navbar-menu": `cap-navbar-menu`,
|
|
833
|
-
"ant-dropdown-menu-item": `ant-dropdown-menu-item`,
|
|
834
825
|
"cap-navbar-divider": `cap-navbar-divider`,
|
|
835
826
|
"top-bar-select-selection": `top-bar-select-selection`,
|
|
836
827
|
"open": `open`,
|
|
@@ -839,9 +830,8 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
839
830
|
"top-bar-select-overflow-ellipsis": `top-bar-select-overflow-ellipsis`,
|
|
840
831
|
"top-bar-select-selected-value-label": `top-bar-select-selected-value-label`,
|
|
841
832
|
"top-bar-select-selected-ou-value-label": `top-bar-select-selected-ou-value-label`,
|
|
842
|
-
"cap-navbar-menu
|
|
843
|
-
"
|
|
844
|
-
"ant-menu-item-selected": `ant-menu-item-selected`,
|
|
833
|
+
"cap-navbar-menu": `cap-navbar-menu`,
|
|
834
|
+
"cap-navbar-actions-menu": `cap-navbar-actions-menu`,
|
|
845
835
|
"cap-navbar-vertical": `cap-navbar-vertical`,
|
|
846
836
|
"user-profile": `user-profile`,
|
|
847
837
|
"user-profile-name-wrapper": `user-profile-name-wrapper`,
|
|
@@ -886,10 +876,14 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
886
876
|
"cap-navbar-dimensions": `cap-navbar-dimensions`,
|
|
887
877
|
"cap-navbar-heading": `cap-navbar-heading`,
|
|
888
878
|
"cap-navbar-capitalize": `cap-navbar-capitalize`,
|
|
879
|
+
"cap-navbar-tick-icon": `cap-navbar-tick-icon`,
|
|
889
880
|
"cap-navbar-cursor-pointer": `cap-navbar-cursor-pointer`,
|
|
890
881
|
"breadcrumbs-topbar-expanded": `breadcrumbs-topbar-expanded`,
|
|
891
882
|
"breadcrumbs-topbar-collapsed": `breadcrumbs-topbar-collapsed`,
|
|
892
|
-
"user-profile-icon": `user-profile-icon
|
|
883
|
+
"user-profile-icon": `user-profile-icon`,
|
|
884
|
+
"cap-navbar-left-navigation-wrapper": `cap-navbar-left-navigation-wrapper`,
|
|
885
|
+
"cap-unified-select-container": `cap-unified-select-container`,
|
|
886
|
+
"cap-navbar-right-navigation-wrapper": `cap-navbar-right-navigation-wrapper`
|
|
893
887
|
};
|
|
894
888
|
module.exports = ___CSS_LOADER_EXPORT___;
|
|
895
889
|
|
|
@@ -1581,10 +1575,11 @@ var _default = exports["default"] = Calender;
|
|
|
1581
1575
|
exports.__esModule = true;
|
|
1582
1576
|
exports.transformOrgOuToTreeOptions = exports.isSelectDisabled = exports.handleSelectChange = exports.getSelectedValue = exports.getSelectType = exports.findParentOrgValue = exports.extractLabelText = exports.createPrefix = void 0;
|
|
1583
1577
|
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
1584
|
-
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
1585
|
-
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
1586
1578
|
var _icons = __webpack_require__(30775);
|
|
1587
1579
|
var _capillary_logo = _interopRequireDefault(__webpack_require__(69038));
|
|
1580
|
+
var _CapImage = _interopRequireDefault(__webpack_require__(84446));
|
|
1581
|
+
var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
|
|
1582
|
+
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
1588
1583
|
var styledVars = _interopRequireWildcard(__webpack_require__(56587));
|
|
1589
1584
|
var _jsxRuntime = __webpack_require__(74848);
|
|
1590
1585
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -1600,36 +1595,56 @@ const transformOrgOuToTreeOptions = function (items) {
|
|
|
1600
1595
|
return items.map(org => {
|
|
1601
1596
|
var _org$accessibleOus;
|
|
1602
1597
|
const hasOus = org.accessibleOus && org.accessibleOus.length > 0;
|
|
1598
|
+
const parentOrgSubLabel = org.parentOrgSubLabel;
|
|
1603
1599
|
|
|
1604
|
-
//
|
|
1605
|
-
const
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1600
|
+
// Helper to create label with right-aligned sub-label for selected value display
|
|
1601
|
+
const createLabelWithSubLabel = (mainLabel, subLabel) => {
|
|
1602
|
+
if (!subLabel) return mainLabel;
|
|
1603
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
1604
|
+
align: "middle",
|
|
1605
|
+
justify: "space-between",
|
|
1606
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default.CapLabelInline, {
|
|
1607
|
+
children: mainLabel
|
|
1608
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default.CapLabelInline, {
|
|
1609
|
+
children: subLabel
|
|
1610
|
+
})]
|
|
1611
|
+
});
|
|
1612
|
+
};
|
|
1613
|
+
|
|
1614
|
+
// For parent organizations:
|
|
1615
|
+
// - Label should be just text (no icon, no sub-label) for selected state
|
|
1616
|
+
// - Icon will be added in dropdown items via enhanceOptions
|
|
1617
|
+
// - No sub-label for parent orgs (only for children/OUs)
|
|
1618
|
+
const orgLabel = org.label || '';
|
|
1621
1619
|
return {
|
|
1622
1620
|
value: org.value,
|
|
1623
1621
|
label: orgLabel,
|
|
1622
|
+
// Just text for parent orgs - no icon, no sub-label
|
|
1624
1623
|
// Store original label as string for prefix extraction
|
|
1625
1624
|
originalLabel: org.label,
|
|
1625
|
+
// Store parent org sub label for OU display only (not for parent orgs themselves)
|
|
1626
|
+
parentOrgSubLabel,
|
|
1627
|
+
// Store flag to indicate this is a parent org with OUs (for icon in dropdown)
|
|
1628
|
+
hasOus,
|
|
1629
|
+
// No optionSuffix for parent orgs - sub-label only for children
|
|
1630
|
+
optionSuffix: undefined,
|
|
1631
|
+
// Explicitly no sub-label for parent orgs
|
|
1626
1632
|
key: org.key,
|
|
1627
1633
|
children: (_org$accessibleOus = org.accessibleOus) == null ? void 0 : _org$accessibleOus.map(ou => ({
|
|
1628
1634
|
value: ou.value,
|
|
1629
|
-
label
|
|
1635
|
+
// Label with sub-label for selected state (TreeSelect uses label prop for selected value)
|
|
1636
|
+
// For dropdown, enhanceOptions will extract plain text when optionSuffix exists
|
|
1637
|
+
label: parentOrgSubLabel ? createLabelWithSubLabel(ou.label || '', parentOrgSubLabel) : ou.label || '',
|
|
1630
1638
|
key: ou.key,
|
|
1631
1639
|
// Store parent org label for OU display
|
|
1632
|
-
parentOrgLabel: org.label
|
|
1640
|
+
parentOrgLabel: org.label,
|
|
1641
|
+
// Store parent org sub label for OU display
|
|
1642
|
+
parentOrgSubLabel,
|
|
1643
|
+
// Use optionSuffix for right-aligned sub-label in dropdown items
|
|
1644
|
+
// enhanceOptions will extract plain text from label when optionSuffix exists to avoid duplication
|
|
1645
|
+
optionSuffix: parentOrgSubLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default.CapLabelInline, {
|
|
1646
|
+
children: parentOrgSubLabel
|
|
1647
|
+
}) : undefined
|
|
1633
1648
|
}))
|
|
1634
1649
|
};
|
|
1635
1650
|
});
|
|
@@ -1659,20 +1674,56 @@ const extractLabelText = node => {
|
|
|
1659
1674
|
return String(node.originalLabel);
|
|
1660
1675
|
}
|
|
1661
1676
|
if (node.label && typeof node.label === 'object' && 'props' in node.label) {
|
|
1662
|
-
var
|
|
1663
|
-
// Try to extract text from React element (for org labels with icons)
|
|
1664
|
-
const
|
|
1677
|
+
var _element$props;
|
|
1678
|
+
// Try to extract text from React element (for org labels with icons and sub-labels)
|
|
1679
|
+
const element = node.label;
|
|
1680
|
+
const children = (_element$props = element.props) == null ? void 0 : _element$props.children;
|
|
1681
|
+
|
|
1682
|
+
// Helper to extract text from nested React elements
|
|
1683
|
+
const extractTextFromElement = child => {
|
|
1684
|
+
if (typeof child === 'string') {
|
|
1685
|
+
return child;
|
|
1686
|
+
}
|
|
1687
|
+
if (child && typeof child === 'object' && 'props' in child) {
|
|
1688
|
+
const childProps = child.props;
|
|
1689
|
+
// If it's a span with children array, get the first text child (main label)
|
|
1690
|
+
// This handles the case: <span><span>{mainLabel}</span><span>{subLabel}</span></span>
|
|
1691
|
+
if (Array.isArray(childProps == null ? void 0 : childProps.children)) {
|
|
1692
|
+
// First try to find a direct string child
|
|
1693
|
+
const firstTextChild = childProps.children.find(c => typeof c === 'string');
|
|
1694
|
+
if (firstTextChild) return firstTextChild;
|
|
1695
|
+
// Otherwise, recursively extract from the first element (which should be the main label span)
|
|
1696
|
+
if (childProps.children.length > 0) {
|
|
1697
|
+
const extracted = extractTextFromElement(childProps.children[0]);
|
|
1698
|
+
if (extracted) return extracted;
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
// Recursively try to extract from nested children (single child case)
|
|
1702
|
+
if (childProps != null && childProps.children && !Array.isArray(childProps.children)) {
|
|
1703
|
+
return extractTextFromElement(childProps.children);
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
return '';
|
|
1707
|
+
};
|
|
1665
1708
|
if (Array.isArray(children)) {
|
|
1666
|
-
|
|
1667
|
-
const
|
|
1709
|
+
// For CapRow with icon and label, find the label element
|
|
1710
|
+
const labelElement = children.find(child => {
|
|
1668
1711
|
var _child$props;
|
|
1669
|
-
return typeof child === 'string' || typeof child === 'object' &&
|
|
1712
|
+
return typeof child === 'string' || typeof child === 'object' && child && 'props' in child && ((_child$props = child.props) == null ? void 0 : _child$props.children);
|
|
1670
1713
|
});
|
|
1671
|
-
|
|
1714
|
+
if (labelElement) {
|
|
1715
|
+
const extracted = extractTextFromElement(labelElement);
|
|
1716
|
+
if (extracted) return extracted;
|
|
1717
|
+
}
|
|
1672
1718
|
}
|
|
1673
1719
|
if (typeof children === 'string') {
|
|
1674
1720
|
return children;
|
|
1675
1721
|
}
|
|
1722
|
+
// Try extracting from children directly
|
|
1723
|
+
if (children) {
|
|
1724
|
+
const extracted = extractTextFromElement(children);
|
|
1725
|
+
if (extracted) return extracted;
|
|
1726
|
+
}
|
|
1676
1727
|
}
|
|
1677
1728
|
return '';
|
|
1678
1729
|
};
|
|
@@ -1686,37 +1737,35 @@ const createPrefix = (value, treeMaps, showCapillaryIcon) => {
|
|
|
1686
1737
|
const node = treeMaps.nodeMap[value];
|
|
1687
1738
|
const labelText = extractLabelText(node);
|
|
1688
1739
|
if (showCapillaryIcon) {
|
|
1689
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
1740
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapImage.default, {
|
|
1690
1741
|
src: _capillary_logo.default,
|
|
1691
|
-
alt: ""
|
|
1692
|
-
style: {
|
|
1693
|
-
marginRight: 8,
|
|
1694
|
-
width: 24,
|
|
1695
|
-
height: 24
|
|
1696
|
-
}
|
|
1742
|
+
alt: ""
|
|
1697
1743
|
});
|
|
1698
1744
|
}
|
|
1699
1745
|
if (labelText) {
|
|
1700
1746
|
var _labelText$;
|
|
1701
1747
|
const firstLetter = ((_labelText$ = labelText[0]) == null ? void 0 : _labelText$.toUpperCase()) || '';
|
|
1702
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
1748
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
1749
|
+
align: "middle",
|
|
1703
1750
|
style: {
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
position: 'relative'
|
|
1751
|
+
position: 'relative',
|
|
1752
|
+
width: styledVars.CAP_SPACE_24,
|
|
1753
|
+
height: styledVars.CAP_SPACE_24
|
|
1708
1754
|
},
|
|
1709
1755
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.LogoBackground, {
|
|
1710
1756
|
width: 24,
|
|
1711
1757
|
height: 24
|
|
1712
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
1758
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
1759
|
+
type: "label14",
|
|
1713
1760
|
style: {
|
|
1714
1761
|
position: 'absolute',
|
|
1715
1762
|
left: '50%',
|
|
1716
1763
|
top: '50%',
|
|
1717
1764
|
transform: 'translate(-50%, -50%)',
|
|
1718
|
-
lineHeight:
|
|
1719
|
-
|
|
1765
|
+
lineHeight: styledVars.CAP_SPACE_24,
|
|
1766
|
+
fontWeight: styledVars.FONT_WEIGHT_MEDIUM,
|
|
1767
|
+
fontSize: styledVars.FONT_SIZE_M,
|
|
1768
|
+
color: styledVars.CAP_G01
|
|
1720
1769
|
},
|
|
1721
1770
|
children: firstLetter
|
|
1722
1771
|
})]
|
|
@@ -1924,7 +1973,7 @@ var _messages = _interopRequireDefault(__webpack_require__(13581));
|
|
|
1924
1973
|
var _styles = _interopRequireDefault(__webpack_require__(18263));
|
|
1925
1974
|
var _useCapUnifiedSelect = __webpack_require__(480);
|
|
1926
1975
|
var _jsxRuntime = __webpack_require__(74848);
|
|
1927
|
-
const _excluded = ["intl", "type", "options", "value", "onChange", "placeholder", "className", "style", "isError", "errorMessage", "containerClassName", "popoverClassName", "allowClear", "headerLabel", "onUpload", "uploadLabel", "tooltip", "bylineText", "disabled", "showUpload", "customPopupRender", "showSearch", "searchBasedOn", "onSearch", "searchDebounce", "onConfirm", "clearText", "noResultCustomText", "noResultCustomIcon", "readOnly", "staticValue", "onFooterDownloadChange", "onPopupScroll", "hasMore", "enableVirtualization", "virtualRowHeight", "resetSearch", "resetData", "fetchMissingOptions", "fetchDynamicValueStatus"];
|
|
1976
|
+
const _excluded = ["intl", "type", "options", "value", "onChange", "placeholder", "className", "style", "isError", "errorMessage", "containerClassName", "popoverClassName", "allowClear", "headerLabel", "onUpload", "uploadLabel", "tooltip", "bylineText", "disabled", "showUpload", "customPopupRender", "showSearch", "searchBasedOn", "onSearch", "searchDebounce", "onConfirm", "clearText", "noResultCustomText", "noResultCustomIcon", "readOnly", "staticValue", "onFooterDownloadChange", "onPopupScroll", "hasMore", "enableVirtualization", "virtualRowHeight", "listHeight", "resetSearch", "resetData", "fetchMissingOptions", "fetchDynamicValueStatus", "customOptionRenderer"];
|
|
1928
1977
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
1929
1978
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1930
1979
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
@@ -1969,10 +2018,12 @@ const CapUnifiedSelect = _ref => {
|
|
|
1969
2018
|
hasMore = true,
|
|
1970
2019
|
enableVirtualization = false,
|
|
1971
2020
|
virtualRowHeight = _constants.DEFAULTS.VIRTUAL_ROW_HEIGHT,
|
|
2021
|
+
listHeight = _constants.DEFAULTS.LIST_HEIGHT,
|
|
1972
2022
|
resetSearch = true,
|
|
1973
2023
|
resetData,
|
|
1974
2024
|
fetchMissingOptions,
|
|
1975
|
-
fetchDynamicValueStatus
|
|
2025
|
+
fetchDynamicValueStatus,
|
|
2026
|
+
customOptionRenderer
|
|
1976
2027
|
} = _ref,
|
|
1977
2028
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
1978
2029
|
const isMulti = (0, _react.useMemo)(() => type === _constants.SELECT_TYPES.MULTI_SELECT || type === _constants.SELECT_TYPES.MULTI_TREE_SELECT, [type]);
|
|
@@ -2018,8 +2069,8 @@ const CapUnifiedSelect = _ref => {
|
|
|
2018
2069
|
// Enhance filtered tree with React components
|
|
2019
2070
|
const filteredTree = (0, _react.useMemo)(() => {
|
|
2020
2071
|
if (!(rawFilteredTree != null && rawFilteredTree.length)) return [];
|
|
2021
|
-
return (0, _enhanceOptions.enhanceOptionsWithComponents)(rawFilteredTree, type);
|
|
2022
|
-
}, [rawFilteredTree, type]);
|
|
2072
|
+
return (0, _enhanceOptions.enhanceOptionsWithComponents)(rawFilteredTree, type, customOptionRenderer);
|
|
2073
|
+
}, [rawFilteredTree, type, customOptionRenderer]);
|
|
2023
2074
|
|
|
2024
2075
|
// Render tooltip content for multi-select
|
|
2025
2076
|
const renderDisabledTooltipContent = (0, _react.useMemo)(() => {
|
|
@@ -2185,7 +2236,7 @@ const CapUnifiedSelect = _ref => {
|
|
|
2185
2236
|
className: _styles.default['cap-unified-select-tree-select-container'],
|
|
2186
2237
|
type: "flex",
|
|
2187
2238
|
align: "middle",
|
|
2188
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_treeSelect.default, _extends({
|
|
2239
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_treeSelect.default, _extends({}, rest, {
|
|
2189
2240
|
treeData: filteredTree,
|
|
2190
2241
|
value: customPopupRender ? tempValue : value,
|
|
2191
2242
|
treeNodeLabelProp: "label",
|
|
@@ -2211,13 +2262,12 @@ const CapUnifiedSelect = _ref => {
|
|
|
2211
2262
|
open: dropdownOpen,
|
|
2212
2263
|
onOpenChange: handleDropdownVisibilityChange,
|
|
2213
2264
|
virtual: !enableVirtualization,
|
|
2214
|
-
popupMatchSelectWidth:
|
|
2265
|
+
popupMatchSelectWidth: !enableVirtualization,
|
|
2215
2266
|
disabled: disabled || readOnly,
|
|
2216
2267
|
filterTreeNode: false,
|
|
2217
|
-
listHeight:
|
|
2268
|
+
listHeight: listHeight,
|
|
2218
2269
|
listItemHeight: virtualRowHeight,
|
|
2219
|
-
popupRender: renderCustomDropdown
|
|
2220
|
-
}, rest, {
|
|
2270
|
+
popupRender: renderCustomDropdown,
|
|
2221
2271
|
suffixIcon: null
|
|
2222
2272
|
})), suffix]
|
|
2223
2273
|
}), isError && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
@@ -2351,6 +2401,24 @@ if (false) // removed by dead control flow
|
|
|
2351
2401
|
{}
|
|
2352
2402
|
var _default = exports["default"] = Icon;
|
|
2353
2403
|
|
|
2404
|
+
/***/ }),
|
|
2405
|
+
|
|
2406
|
+
/***/ 3833:
|
|
2407
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2408
|
+
|
|
2409
|
+
// Imports
|
|
2410
|
+
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
2411
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
2412
|
+
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
2413
|
+
// Module
|
|
2414
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-image-v2{background-repeat:no-repeat}`, ""]);
|
|
2415
|
+
// Exports
|
|
2416
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
2417
|
+
"cap-image-v2": `cap-image-v2`
|
|
2418
|
+
};
|
|
2419
|
+
module.exports = ___CSS_LOADER_EXPORT___;
|
|
2420
|
+
|
|
2421
|
+
|
|
2354
2422
|
/***/ }),
|
|
2355
2423
|
|
|
2356
2424
|
/***/ 4014:
|
|
@@ -14314,14 +14382,21 @@ var _default = exports["default"] = Empty;
|
|
|
14314
14382
|
|
|
14315
14383
|
exports.__esModule = true;
|
|
14316
14384
|
exports["default"] = exports.CapOrgSelect = void 0;
|
|
14385
|
+
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
14317
14386
|
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
14387
|
+
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
14388
|
+
var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
|
|
14389
|
+
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
14390
|
+
var _CapTooltipWithInfo = _interopRequireDefault(__webpack_require__(74584));
|
|
14318
14391
|
var _CapUnifiedSelect = _interopRequireDefault(__webpack_require__(3535));
|
|
14319
14392
|
var _constants = __webpack_require__(99788);
|
|
14393
|
+
var _styles = _interopRequireDefault(__webpack_require__(18263));
|
|
14320
14394
|
var _utils = __webpack_require__(8052);
|
|
14395
|
+
var styledVars = _interopRequireWildcard(__webpack_require__(56587));
|
|
14321
14396
|
var _CapOrgSelectUtils = __webpack_require__(2834);
|
|
14322
14397
|
var _jsxRuntime = __webpack_require__(74848);
|
|
14323
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14324
14398
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14399
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14325
14400
|
/**
|
|
14326
14401
|
* Wrapper component that maintains backward compatibility with the old Select API
|
|
14327
14402
|
* while using CapUnifiedSelect internally.
|
|
@@ -14371,8 +14446,60 @@ const CapOrgSelect = _ref => {
|
|
|
14371
14446
|
const type = (0, _CapOrgSelectUtils.getSelectType)(items);
|
|
14372
14447
|
return type === 'treeSelect' ? _constants.SELECT_TYPES.TREE_SELECT : _constants.SELECT_TYPES.SELECT;
|
|
14373
14448
|
}, [items]);
|
|
14449
|
+
|
|
14450
|
+
// Custom option renderer that adds sitemap icon for organizations with OUs
|
|
14451
|
+
const customOptionRenderer = (0, _react.useMemo)(() => (opt, defaultTitle, context) => {
|
|
14452
|
+
// Check if this is a parent org with OUs (for adding sitemap icon in dropdown)
|
|
14453
|
+
const hasOus = opt.hasOus === true;
|
|
14454
|
+
if (!hasOus) {
|
|
14455
|
+
return defaultTitle;
|
|
14456
|
+
}
|
|
14457
|
+
|
|
14458
|
+
// Build custom title with sitemap icon, using the same structure as defaultTitle
|
|
14459
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
14460
|
+
className: _styles.default['cap-unified-select-option-with-suffix'],
|
|
14461
|
+
justify: "space-between",
|
|
14462
|
+
align: "middle",
|
|
14463
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
14464
|
+
className: _styles.default['cap-unified-select-option-label'],
|
|
14465
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
14466
|
+
align: "middle",
|
|
14467
|
+
style: {
|
|
14468
|
+
display: 'flex',
|
|
14469
|
+
alignItems: 'center',
|
|
14470
|
+
flexWrap: 'nowrap'
|
|
14471
|
+
},
|
|
14472
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
14473
|
+
type: "sitemap",
|
|
14474
|
+
size: "s",
|
|
14475
|
+
style: {
|
|
14476
|
+
marginRight: styledVars.CAP_SPACE_04
|
|
14477
|
+
}
|
|
14478
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14479
|
+
type: "label14",
|
|
14480
|
+
className: (0, _classnames.default)(_styles.default['truncate-text'], {
|
|
14481
|
+
[_styles.default['option-disabled']]: context.isDisabled,
|
|
14482
|
+
[_styles.default['option-enabled']]: !context.isDisabled
|
|
14483
|
+
}),
|
|
14484
|
+
title: context.tooltipTitle,
|
|
14485
|
+
children: context.displayText
|
|
14486
|
+
})]
|
|
14487
|
+
})
|
|
14488
|
+
}), ((opt == null ? void 0 : opt.optionSuffix) || (opt == null ? void 0 : opt.optionTooltipInfo)) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
14489
|
+
className: _styles.default['cap-unified-select-option-end'],
|
|
14490
|
+
children: [(opt == null ? void 0 : opt.optionSuffix) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
14491
|
+
className: _styles.default['cap-unified-select-option-suffix'],
|
|
14492
|
+
children: [opt == null ? void 0 : opt.optionSuffix, (opt == null ? void 0 : opt.optionSuffixInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
14493
|
+
title: opt == null ? void 0 : opt.optionSuffixInfo
|
|
14494
|
+
})]
|
|
14495
|
+
}), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
14496
|
+
title: opt == null ? void 0 : opt.optionTooltipInfo
|
|
14497
|
+
})]
|
|
14498
|
+
})]
|
|
14499
|
+
});
|
|
14500
|
+
}, []);
|
|
14374
14501
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapUnifiedSelect.default, {
|
|
14375
|
-
size:
|
|
14502
|
+
size: "large",
|
|
14376
14503
|
type: selectType,
|
|
14377
14504
|
options: options,
|
|
14378
14505
|
value: value,
|
|
@@ -14388,13 +14515,14 @@ const CapOrgSelect = _ref => {
|
|
|
14388
14515
|
},
|
|
14389
14516
|
listHeight: 200,
|
|
14390
14517
|
virtualRowHeight: 40,
|
|
14391
|
-
enableVirtualization: false //
|
|
14518
|
+
enableVirtualization: false // false enables virtualization (inverted prop: virtual={!enableVirtualization})
|
|
14392
14519
|
,
|
|
14393
14520
|
staticValue: true // Client-side search
|
|
14394
14521
|
,
|
|
14395
14522
|
searchBasedOn: "label",
|
|
14396
14523
|
resetSearch: true,
|
|
14397
|
-
prefix: prefix
|
|
14524
|
+
prefix: prefix,
|
|
14525
|
+
customOptionRenderer: customOptionRenderer
|
|
14398
14526
|
});
|
|
14399
14527
|
};
|
|
14400
14528
|
exports.CapOrgSelect = CapOrgSelect;
|
|
@@ -43065,8 +43193,7 @@ const menuTheme = exports.menuTheme = {
|
|
|
43065
43193
|
horizontalItemSelectedBg: 'transparent',
|
|
43066
43194
|
horizontalItemHoverColor: styledVars.CAP_G01,
|
|
43067
43195
|
horizontalItemHoverBg: 'transparent',
|
|
43068
|
-
activeBarHeight: 2
|
|
43069
|
-
activeBarBorderWidth: 2
|
|
43196
|
+
activeBarHeight: 2
|
|
43070
43197
|
}
|
|
43071
43198
|
}
|
|
43072
43199
|
};
|
|
@@ -45146,6 +45273,58 @@ function SvgSmileymessageNormal(props) {
|
|
|
45146
45273
|
}
|
|
45147
45274
|
var _default = exports["default"] = SvgSmileymessageNormal;
|
|
45148
45275
|
|
|
45276
|
+
/***/ }),
|
|
45277
|
+
|
|
45278
|
+
/***/ 75158:
|
|
45279
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
45280
|
+
|
|
45281
|
+
"use strict";
|
|
45282
|
+
__webpack_require__.r(__webpack_exports__);
|
|
45283
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
45284
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
45285
|
+
/* harmony export */ });
|
|
45286
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
45287
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
45288
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
45289
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
45290
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
45291
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
45292
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
45293
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
45294
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
45295
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
45296
|
+
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3833);
|
|
45297
|
+
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
45298
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
45299
|
+
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
45300
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
45301
|
+
|
|
45302
|
+
|
|
45303
|
+
|
|
45304
|
+
|
|
45305
|
+
|
|
45306
|
+
|
|
45307
|
+
|
|
45308
|
+
|
|
45309
|
+
|
|
45310
|
+
|
|
45311
|
+
|
|
45312
|
+
var options = {};
|
|
45313
|
+
|
|
45314
|
+
;
|
|
45315
|
+
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
45316
|
+
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
45317
|
+
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
45318
|
+
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
45319
|
+
|
|
45320
|
+
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
45321
|
+
|
|
45322
|
+
|
|
45323
|
+
|
|
45324
|
+
|
|
45325
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
45326
|
+
|
|
45327
|
+
|
|
45149
45328
|
/***/ }),
|
|
45150
45329
|
|
|
45151
45330
|
/***/ 75400:
|
|
@@ -47027,7 +47206,7 @@ var _antdV = __webpack_require__(64273);
|
|
|
47027
47206
|
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
47028
47207
|
var _logDeprecationWarning = _interopRequireDefault(__webpack_require__(19224));
|
|
47029
47208
|
var _jsxRuntime = __webpack_require__(74848);
|
|
47030
|
-
const _excluded = ["content", "size", "width", "open", "visible", "onOpenChange", "onVisibleChange"];
|
|
47209
|
+
const _excluded = ["content", "size", "width", "open", "visible", "onOpenChange", "onVisibleChange", "className"];
|
|
47031
47210
|
/**
|
|
47032
47211
|
*
|
|
47033
47212
|
* CapDrawer
|
|
@@ -47044,7 +47223,8 @@ const CapDrawer = _ref => {
|
|
|
47044
47223
|
open,
|
|
47045
47224
|
visible,
|
|
47046
47225
|
onOpenChange,
|
|
47047
|
-
onVisibleChange
|
|
47226
|
+
onVisibleChange,
|
|
47227
|
+
className
|
|
47048
47228
|
} = _ref,
|
|
47049
47229
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
47050
47230
|
(0, _logDeprecationWarning.default)('CapDrawer', 'visible', visible, 'open');
|
|
@@ -47063,6 +47243,7 @@ const CapDrawer = _ref => {
|
|
|
47063
47243
|
// Ant Design v5 Drawer types expect onVisibleChange, but runtime (v6) supports both
|
|
47064
47244
|
// Use onVisibleChange to satisfy TypeScript types
|
|
47065
47245
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Drawer, _extends({
|
|
47246
|
+
className: className,
|
|
47066
47247
|
width: widthMapping,
|
|
47067
47248
|
open: finalOpen
|
|
47068
47249
|
}, finalOnOpenChange && {
|
|
@@ -48031,19 +48212,51 @@ var _constants = __webpack_require__(99788);
|
|
|
48031
48212
|
var _styles = _interopRequireDefault(__webpack_require__(18263));
|
|
48032
48213
|
var _jsxRuntime = __webpack_require__(74848);
|
|
48033
48214
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
48034
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
48215
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /**
|
|
48216
|
+
* Custom option renderer function type
|
|
48217
|
+
* Allows customization of how option titles are rendered
|
|
48218
|
+
*/
|
|
48035
48219
|
/**
|
|
48036
48220
|
* Enhances options with React components for rendering
|
|
48037
48221
|
* Adds decorated titles with suffixes and tooltips
|
|
48038
48222
|
*/
|
|
48039
|
-
const enhanceOptionsWithComponents = (options, type) => {
|
|
48223
|
+
const enhanceOptionsWithComponents = (options, type, customOptionRenderer) => {
|
|
48040
48224
|
if (!(options != null && options.length)) return [];
|
|
48041
48225
|
const isTree = type === _constants.SELECT_TYPES.TREE_SELECT || type === _constants.SELECT_TYPES.MULTI_TREE_SELECT;
|
|
48226
|
+
|
|
48227
|
+
// Helper to extract plain text from label (handles React elements with sub-labels)
|
|
48228
|
+
const extractPlainText = label => {
|
|
48229
|
+
if (typeof label === 'string' || typeof label === 'number') {
|
|
48230
|
+
return label;
|
|
48231
|
+
}
|
|
48232
|
+
if (label && typeof label === 'object' && 'props' in label) {
|
|
48233
|
+
var _element$props;
|
|
48234
|
+
const element = label;
|
|
48235
|
+
// If it's a span with flex layout (contains sub-label), extract just the main text
|
|
48236
|
+
if ((_element$props = element.props) != null && _element$props.children && Array.isArray(element.props.children)) {
|
|
48237
|
+
const firstChild = element.props.children[0];
|
|
48238
|
+
if (firstChild && typeof firstChild === 'object' && 'props' in firstChild) {
|
|
48239
|
+
var _props;
|
|
48240
|
+
// Get text from first child span
|
|
48241
|
+
const textChild = (_props = firstChild.props) == null ? void 0 : _props.children;
|
|
48242
|
+
return typeof textChild === 'string' ? textChild : textChild;
|
|
48243
|
+
}
|
|
48244
|
+
// If first child is string, return it
|
|
48245
|
+
if (typeof firstChild === 'string') {
|
|
48246
|
+
return firstChild;
|
|
48247
|
+
}
|
|
48248
|
+
}
|
|
48249
|
+
}
|
|
48250
|
+
return label;
|
|
48251
|
+
};
|
|
48042
48252
|
const enhanceOptions = opts => opts.map(opt => {
|
|
48043
|
-
|
|
48253
|
+
// Extract plain text from label if it's a React element (to avoid duplication with optionSuffix)
|
|
48254
|
+
// If label is a React element with sub-label, use plain text for dropdown display
|
|
48255
|
+
// The optionSuffix will add the sub-label separately
|
|
48256
|
+
const displayText = opt != null && opt.optionSuffix ? extractPlainText(opt == null ? void 0 : opt.label) || (opt == null ? void 0 : opt.value) : (opt == null ? void 0 : opt.label) || (opt == null ? void 0 : opt.value);
|
|
48044
48257
|
const tooltipTitle = opt == null ? void 0 : opt.hoverText;
|
|
48045
48258
|
const isDisabled = (opt == null ? void 0 : opt.disabled) === true;
|
|
48046
|
-
const
|
|
48259
|
+
const defaultTitle = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
48047
48260
|
className: _styles.default['cap-unified-select-option-with-suffix'],
|
|
48048
48261
|
justify: "space-between",
|
|
48049
48262
|
align: "middle",
|
|
@@ -48070,6 +48283,13 @@ const enhanceOptionsWithComponents = (options, type) => {
|
|
|
48070
48283
|
})]
|
|
48071
48284
|
})]
|
|
48072
48285
|
});
|
|
48286
|
+
|
|
48287
|
+
// Use custom renderer if provided, otherwise use default
|
|
48288
|
+
const decoratedTitle = customOptionRenderer ? customOptionRenderer(opt, defaultTitle, {
|
|
48289
|
+
displayText,
|
|
48290
|
+
tooltipTitle,
|
|
48291
|
+
isDisabled
|
|
48292
|
+
}) : defaultTitle;
|
|
48073
48293
|
return _extends({}, opt, {
|
|
48074
48294
|
title: decoratedTitle,
|
|
48075
48295
|
label: opt == null ? void 0 : opt.label,
|
|
@@ -48083,34 +48303,42 @@ const enhanceOptionsWithComponents = (options, type) => {
|
|
|
48083
48303
|
const displayText = (opt == null ? void 0 : opt.label) || (opt == null ? void 0 : opt.value);
|
|
48084
48304
|
const tooltipTitle = opt == null ? void 0 : opt.hoverText;
|
|
48085
48305
|
const isDisabled = (opt == null ? void 0 : opt.disabled) === true;
|
|
48086
|
-
|
|
48087
|
-
|
|
48088
|
-
|
|
48089
|
-
|
|
48090
|
-
|
|
48091
|
-
|
|
48092
|
-
|
|
48093
|
-
|
|
48094
|
-
|
|
48095
|
-
|
|
48096
|
-
|
|
48097
|
-
|
|
48098
|
-
|
|
48099
|
-
|
|
48100
|
-
|
|
48101
|
-
|
|
48102
|
-
|
|
48103
|
-
|
|
48104
|
-
|
|
48105
|
-
|
|
48106
|
-
|
|
48107
|
-
title: opt == null ? void 0 : opt.optionSuffixInfo
|
|
48108
|
-
})]
|
|
48109
|
-
}), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
48110
|
-
title: opt == null ? void 0 : opt.optionTooltipInfo
|
|
48306
|
+
const defaultTitle = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
48307
|
+
className: _styles.default['cap-unified-select-option-with-suffix'],
|
|
48308
|
+
justify: "space-between",
|
|
48309
|
+
align: "middle",
|
|
48310
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
48311
|
+
className: _styles.default['cap-unified-select-option-label'],
|
|
48312
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
48313
|
+
type: "label14",
|
|
48314
|
+
className: (0, _classnames.default)(_styles.default['truncate-text'], {
|
|
48315
|
+
[_styles.default['option-disabled']]: isDisabled,
|
|
48316
|
+
[_styles.default['option-enabled']]: !isDisabled
|
|
48317
|
+
}),
|
|
48318
|
+
title: tooltipTitle,
|
|
48319
|
+
children: displayText
|
|
48320
|
+
})
|
|
48321
|
+
}), ((opt == null ? void 0 : opt.optionSuffix) || (opt == null ? void 0 : opt.optionTooltipInfo)) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
48322
|
+
className: _styles.default['cap-unified-select-option-end'],
|
|
48323
|
+
children: [(opt == null ? void 0 : opt.optionSuffix) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
48324
|
+
className: _styles.default['cap-unified-select-option-suffix'],
|
|
48325
|
+
children: [opt == null ? void 0 : opt.optionSuffix, (opt == null ? void 0 : opt.optionSuffixInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
48326
|
+
title: opt == null ? void 0 : opt.optionSuffixInfo
|
|
48111
48327
|
})]
|
|
48328
|
+
}), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
48329
|
+
title: opt == null ? void 0 : opt.optionTooltipInfo
|
|
48112
48330
|
})]
|
|
48113
|
-
})
|
|
48331
|
+
})]
|
|
48332
|
+
});
|
|
48333
|
+
|
|
48334
|
+
// Use custom renderer if provided, otherwise use default
|
|
48335
|
+
const decoratedTitle = customOptionRenderer ? customOptionRenderer(opt, defaultTitle, {
|
|
48336
|
+
displayText,
|
|
48337
|
+
tooltipTitle,
|
|
48338
|
+
isDisabled
|
|
48339
|
+
}) : defaultTitle;
|
|
48340
|
+
return _extends({}, opt, {
|
|
48341
|
+
title: decoratedTitle,
|
|
48114
48342
|
label: opt == null ? void 0 : opt.label
|
|
48115
48343
|
});
|
|
48116
48344
|
});
|
|
@@ -48596,6 +48824,44 @@ var _default = exports["default"] = SvgFilter;
|
|
|
48596
48824
|
|
|
48597
48825
|
/***/ }),
|
|
48598
48826
|
|
|
48827
|
+
/***/ 84446:
|
|
48828
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
48829
|
+
|
|
48830
|
+
"use strict";
|
|
48831
|
+
|
|
48832
|
+
|
|
48833
|
+
exports.__esModule = true;
|
|
48834
|
+
exports["default"] = void 0;
|
|
48835
|
+
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
48836
|
+
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
48837
|
+
var _styles = _interopRequireDefault(__webpack_require__(75158));
|
|
48838
|
+
var _jsxRuntime = __webpack_require__(74848);
|
|
48839
|
+
const _excluded = ["className", "src", "alt"];
|
|
48840
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
48841
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
48842
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
48843
|
+
const clsPrefix = 'cap-image-v2';
|
|
48844
|
+
const CapImage = _ref => {
|
|
48845
|
+
let {
|
|
48846
|
+
className,
|
|
48847
|
+
src,
|
|
48848
|
+
alt
|
|
48849
|
+
} = _ref,
|
|
48850
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
48851
|
+
// Only render if src is provided
|
|
48852
|
+
if (!src) {
|
|
48853
|
+
return null;
|
|
48854
|
+
}
|
|
48855
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("img", _extends({
|
|
48856
|
+
className: (0, _classnames.default)(_styles.default[clsPrefix], className),
|
|
48857
|
+
src: src,
|
|
48858
|
+
alt: alt
|
|
48859
|
+
}, rest));
|
|
48860
|
+
};
|
|
48861
|
+
var _default = exports["default"] = CapImage;
|
|
48862
|
+
|
|
48863
|
+
/***/ }),
|
|
48864
|
+
|
|
48599
48865
|
/***/ 84615:
|
|
48600
48866
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
48601
48867
|
|
|
@@ -53274,11 +53540,11 @@ var _CapPopover = _interopRequireDefault(__webpack_require__(33018));
|
|
|
53274
53540
|
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
53275
53541
|
var _CapTooltip = _interopRequireDefault(__webpack_require__(85684));
|
|
53276
53542
|
var styledVars = _interopRequireWildcard(__webpack_require__(56587));
|
|
53277
|
-
var _constants = __webpack_require__(77608);
|
|
53278
53543
|
var _CapOrgSelect = _interopRequireDefault(__webpack_require__(21505));
|
|
53544
|
+
var _constants = __webpack_require__(77608);
|
|
53279
53545
|
var _styles = _interopRequireDefault(__webpack_require__(49789));
|
|
53280
|
-
var _utils = __webpack_require__(74032);
|
|
53281
53546
|
var _themeConfig = __webpack_require__(69490);
|
|
53547
|
+
var _utils = __webpack_require__(74032);
|
|
53282
53548
|
var _jsxRuntime = __webpack_require__(74848);
|
|
53283
53549
|
const _excluded = ["onMenuItemClick", "items"],
|
|
53284
53550
|
_excluded2 = ["iconType", "onClickHandler", "className", "toolTip", "placement", "content"],
|
|
@@ -53323,8 +53589,8 @@ const CapTopBar = _ref => {
|
|
|
53323
53589
|
isLatestLeftNavigationEnabled = false,
|
|
53324
53590
|
leftNavbarExpanded = false,
|
|
53325
53591
|
headerOverideCss = {},
|
|
53326
|
-
request,
|
|
53327
|
-
getAPICallObject,
|
|
53592
|
+
request: _request,
|
|
53593
|
+
getAPICallObject: _getAPICallObject,
|
|
53328
53594
|
userData,
|
|
53329
53595
|
children
|
|
53330
53596
|
} = _ref;
|
|
@@ -53352,6 +53618,7 @@ const CapTopBar = _ref => {
|
|
|
53352
53618
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapMenu.default, _extends({
|
|
53353
53619
|
className: _styles.default[clsPrefix + "-menu"],
|
|
53354
53620
|
mode: "horizontal",
|
|
53621
|
+
items: items,
|
|
53355
53622
|
style: {
|
|
53356
53623
|
lineHeight: styledVars.CAP_SPACE_64
|
|
53357
53624
|
}
|
|
@@ -53381,7 +53648,7 @@ const CapTopBar = _ref => {
|
|
|
53381
53648
|
placement: placement || 'bottom',
|
|
53382
53649
|
children: iconType === 'custom' ? content : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, _extends({
|
|
53383
53650
|
onClick: onClickHandler ? () => onClickHandler() : undefined,
|
|
53384
|
-
className: (0, _classnames.default)(_styles.default[
|
|
53651
|
+
className: (0, _classnames.default)(isLatestLeftNavigationEnabled ? _styles.default[clsPrefix + "-new-topbarIcon"] : _styles.default[clsPrefix + "-topbarIcon"], className),
|
|
53385
53652
|
type: iconType
|
|
53386
53653
|
}, rest))
|
|
53387
53654
|
}, index);
|
|
@@ -53473,7 +53740,7 @@ const CapTopBar = _ref => {
|
|
|
53473
53740
|
trigger: ['click'],
|
|
53474
53741
|
onOpenChange: expandUserBackground,
|
|
53475
53742
|
overlay: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapMenu.default, {
|
|
53476
|
-
className: _styles.default[clsPrefix + "-menu"],
|
|
53743
|
+
className: _styles.default[clsPrefix + "-actions-menu"],
|
|
53477
53744
|
children: dropdownMenuProps.map(dropdownMenuProp => /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapMenu.default.Item, {
|
|
53478
53745
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
53479
53746
|
onClick: dropdownMenuProp.onClickHandler ? () => dropdownMenuProp.onClickHandler == null ? void 0 : dropdownMenuProp.onClickHandler() : undefined,
|
|
@@ -53483,8 +53750,9 @@ const CapTopBar = _ref => {
|
|
|
53483
53750
|
})
|
|
53484
53751
|
})
|
|
53485
53752
|
}, dropdownMenuProp.key))
|
|
53486
|
-
})
|
|
53487
|
-
placement
|
|
53753
|
+
})
|
|
53754
|
+
//placement="bottomLeft"
|
|
53755
|
+
,
|
|
53488
53756
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
53489
53757
|
className: (0, _classnames.default)(_styles.default["" + clsPrefix + (isLatestLeftNavigationEnabled ? '-new' : '') + "-user"], visible && _styles.default['oval'], leftNavbarExpanded ? 'expanded' : 'collapsed'),
|
|
53490
53758
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.LogoBackground, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -53539,7 +53807,8 @@ const CapTopBar = _ref => {
|
|
|
53539
53807
|
"data-testid": "tick-icon",
|
|
53540
53808
|
svgProps: {
|
|
53541
53809
|
fill: styledVars.CAP_BLUE01
|
|
53542
|
-
}
|
|
53810
|
+
},
|
|
53811
|
+
className: _styles.default[clsPrefix + "-tick-icon"]
|
|
53543
53812
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
|
|
53544
53813
|
type: "h3",
|
|
53545
53814
|
className: (0, _classnames.default)({
|
|
@@ -53650,11 +53919,14 @@ const CapTopBar = _ref => {
|
|
|
53650
53919
|
style: _extends({}, headerOverideCss),
|
|
53651
53920
|
className: (0, _classnames.default)(isLatestLeftNavigationEnabled ? _styles.default[clsPrefix + "-new-header"] : _styles.default[clsPrefix + "-header"]),
|
|
53652
53921
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
53653
|
-
className: _styles.default[clsPrefix + "-
|
|
53922
|
+
className: _styles.default[clsPrefix + "-left-navigation-wrapper"],
|
|
53654
53923
|
children: [isLatestLeftNavigationEnabled && breadcrumbs && renderBreadcrumbs(), !isLatestLeftNavigationEnabled && drawerListProps && renderDrawerList(), !isLatestLeftNavigationEnabled && selectProps && renderOrgsSelect()]
|
|
53655
|
-
}),
|
|
53656
|
-
|
|
53657
|
-
|
|
53924
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
53925
|
+
className: _styles.default[clsPrefix + "-right-navigation-wrapper"],
|
|
53926
|
+
children: [menuProps && renderTopMenu(), topbarIcons && renderTopbarIcons(), isLatestLeftNavigationEnabled && selectProps && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
53927
|
+
children: [renderDividerBeforeOrgSelect(topbarIcons, showDocumentationBot), renderOrgsSelect()]
|
|
53928
|
+
}), dropdownMenuProps && renderDropdownMenu()]
|
|
53929
|
+
}), children]
|
|
53658
53930
|
})
|
|
53659
53931
|
});
|
|
53660
53932
|
};
|