datastake-daf 0.6.153 → 0.6.155
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/components/index.js +185 -75
- package/package.json +1 -1
- package/public/assets/images/SVG/403.svg +20 -0
- package/public/assets/images/SVG/404.svg +11 -0
- package/public/assets/images/SVG/CADD.svg +27 -0
- package/public/assets/images/SVG/InDevelopment.svg +24 -0
- package/public/assets/images/SVG/PME.svg +21 -0
- package/public/assets/images/SVG/comment-alt.svg +3 -0
- package/public/assets/images/SVG/comment.svg +3 -0
- package/public/assets/images/SVG/coordinator.svg +3 -0
- package/public/assets/images/SVG/implementer.svg +3 -0
- package/public/assets/images/SVG/logo-horizontal.svg +1 -0
- package/public/assets/images/SVG/partner-building.svg +3 -0
- package/public/assets/images/SVG/partner.svg +5 -0
- package/public/assets/images/SVG/unavailable-info.svg +16 -0
- package/public/assets/images/SVG/vault.svg +6 -0
- package/public/assets/images/app-navigation/mmt-logo.svg +32 -0
- package/public/assets/images/app-navigation/tazama-logo.svg +31 -0
- package/public/assets/images/app-navigation/tif-logo.svg +33 -0
- package/public/assets/images/applications/arm-prev.png +0 -0
- package/public/assets/images/applications/asm-icon.svg +29 -0
- package/public/assets/images/applications/kota-logo.svg +4 -0
- package/public/assets/images/applications/mmt-logo-2.svg +5 -0
- package/public/assets/images/applications/mmt-logo.svg +6 -0
- package/public/assets/images/applications/mmt-prev.png +0 -0
- package/public/assets/images/applications/sbgi_logo.png +0 -0
- package/public/assets/images/applications/tazama-home-img.jpeg +0 -0
- package/public/assets/images/applications/tazama-logo.svg +9 -0
- package/public/assets/images/applications/tif-app.png +0 -0
- package/public/assets/images/applications/tif-logo.svg +9 -0
- package/public/assets/images/auth-bg-2.svg +296 -0
- package/public/assets/images/auth-bg.svg +303 -0
- package/public/assets/images/countries/fr.png +0 -0
- package/public/assets/images/countries/gb.png +0 -0
- package/public/assets/images/countries/sp.png +0 -0
- package/public/assets/images/dashboard/amp-dashboard/empty.png +0 -0
- package/public/assets/images/dashboard/map-icons/amp.svg +28 -0
- package/public/assets/images/dashboard/map-icons/amp_focused.svg +28 -0
- package/public/assets/images/dashboard/map-icons/amp_location_pin.svg +4 -0
- package/public/assets/images/dashboard/map-icons/datachain-icon.svg +21 -0
- package/public/assets/images/dashboard/map-icons/ellipse.svg +3 -0
- package/public/assets/images/dashboard/map-icons/lir-icon.svg +3 -0
- package/public/assets/images/dashboard/map-icons/major-incident-events-icon.svg +3 -0
- package/public/assets/images/dashboard/map-icons/minesites-location-icon.svg +21 -0
- package/public/assets/images/dashboard/map-icons/minor-incident-events-icon.svg +3 -0
- package/public/assets/images/dashboard/map-icons/moderate-incident-events-icon.svg +3 -0
- package/public/assets/images/dashboard/map-icons/other-events-icon.svg +3 -0
- package/public/assets/images/dashboard/map-icons/other-location-icon.svg +21 -0
- package/public/assets/images/dashboard/map-icons/risk-mitigation-events-icon.svg +3 -0
- package/public/assets/images/dashboard/map-icons/sca_location_pin.svg +4 -0
- package/public/assets/images/dashboard/map-icons/villages-location-icon.svg +21 -0
- package/public/assets/images/dashboard/mine-site.svg +7 -0
- package/public/assets/images/dashboard/programs/key-data.svg +12 -0
- package/public/assets/images/dashboard/programs/key-projects.svg +12 -0
- package/public/assets/images/dashboard/scl-icons/close-icon.svg +4 -0
- package/public/assets/images/dashboard/scl-icons/dot.svg +3 -0
- package/public/assets/images/dashboard/scl-icons/empty-gallery.svg +5 -0
- package/public/assets/images/dashboard/scl-icons/location-icon.svg +14 -0
- package/public/assets/images/dashboard/scl-icons/town-dot.svg +3 -0
- package/public/assets/images/dashboard/scl-icons/town-icon.svg +4 -0
- package/public/assets/images/dashboard/scl-icons/village-icon.svg +6 -0
- package/public/assets/images/dashboard/tif-products/cobalt-bg.png +0 -0
- package/public/assets/images/dashboard/tif-products/cobalt-logo.png +0 -0
- package/public/assets/images/dashboard/tif-products/gold-bg.png +0 -0
- package/public/assets/images/dashboard/tif-products/gold-logo.png +0 -0
- package/public/assets/images/datastake-logo.svg +20 -0
- package/public/assets/images/datastake-white.svg +20 -0
- package/public/assets/images/empty-box.svg +5 -0
- package/public/assets/images/find-information/business-entity.svg +4 -0
- package/public/assets/images/find-information/civil-society.svg +4 -0
- package/public/assets/images/find-information/government.svg +4 -0
- package/public/assets/images/find-information/graphs.png +0 -0
- package/public/assets/images/find-information/individual.svg +11 -0
- package/public/assets/images/find-information/non-stated-arm-group.svg +4 -0
- package/public/assets/images/find-information/other-organisation.svg +4 -0
- package/public/assets/images/find-information/state-security.svg +4 -0
- package/public/assets/images/info-channels/investor.svg +4 -0
- package/public/assets/images/info-channels/mine.svg +4 -0
- package/public/assets/images/info-channels/source.png +0 -0
- package/public/assets/images/kota-bg.jpg +0 -0
- package/public/assets/images/kota-logo-small.svg +2 -0
- package/public/assets/images/kota-logo.svg +2 -0
- package/public/assets/images/logo-new-white-icon.svg +5 -0
- package/public/assets/images/logo-new-white.svg +8 -0
- package/public/assets/images/logo-white.svg +67 -0
- package/public/assets/images/map/assessed.png +0 -0
- package/public/assets/images/map/connected.png +0 -0
- package/public/assets/images/map/disabled.png +0 -0
- package/public/assets/images/map/identified.png +0 -0
- package/public/assets/images/map/position.png +0 -0
- package/public/assets/images/map/treasure-map.png +0 -0
- package/public/assets/images/project-share-info/due-dilligence.svg +3 -0
- package/public/assets/images/project-share-info/event.svg +3 -0
- package/public/assets/images/project-share-info/location.svg +3 -0
- package/public/assets/images/project-share-info/network.svg +3 -0
- package/public/assets/images/project-share-info/stakeholder.svg +10 -0
- package/public/assets/images/tif/antelope-mine-people.png +0 -0
- package/public/assets/images/tif/gesagu-people.png +0 -0
- package/public/assets/images/tif/ironstep-people.png +0 -0
- package/public/assets/images/tif-bg.png +0 -0
- package/public/assets/images/tif-logo-small.svg +3 -0
- package/public/assets/images/tif-logo.svg +9 -0
- package/public/assets/images/verified-user-tif.png +0 -0
- package/public/assets/images/verified-user.svg +100 -0
- package/public/favicons/android-chrome-192x192.png +0 -0
- package/public/favicons/android-chrome-512x512.png +0 -0
- package/public/favicons/apple-touch-icon.png +0 -0
- package/public/favicons/favicon-16x16.png +0 -0
- package/public/favicons/favicon-32x32.png +0 -0
- package/public/favicons/favicon.ico +0 -0
- package/public/favicons/tazama/android-chrome-192x192.png +0 -0
- package/public/favicons/tazama/android-chrome-512x512.png +0 -0
- package/public/favicons/tazama/apple-touch-icon.png +0 -0
- package/public/favicons/tazama/favicon-16x16.png +0 -0
- package/public/favicons/tazama/favicon-32x32.png +0 -0
- package/public/favicons/tazama/favicon.ico +0 -0
- package/src/@daf/core/components/Dashboard/Widget/ProjectWidget/index.jsx +4 -0
- package/src/@daf/core/components/Dashboard/Widget/WidgetCard/WidgetCard.stories.js +37 -0
- package/src/@daf/core/components/Dashboard/Widget/WidgetCard/index.js +73 -0
- package/src/@daf/core/components/Dashboard/Widget/WidgetCard/style.js +10 -0
- package/src/index.js +1 -0
package/dist/components/index.js
CHANGED
|
@@ -3065,7 +3065,7 @@ const config$3 = {
|
|
|
3065
3065
|
Integration: config$4
|
|
3066
3066
|
};
|
|
3067
3067
|
|
|
3068
|
-
const _excluded$
|
|
3068
|
+
const _excluded$s = ["width", "height", "size", "name", "fill"];
|
|
3069
3069
|
const CustomIcon = _ref => {
|
|
3070
3070
|
let {
|
|
3071
3071
|
width = 14,
|
|
@@ -3074,7 +3074,7 @@ const CustomIcon = _ref => {
|
|
|
3074
3074
|
name = "",
|
|
3075
3075
|
fill = "none"
|
|
3076
3076
|
} = _ref,
|
|
3077
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3077
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
3078
3078
|
const conf = config$3[name];
|
|
3079
3079
|
if (conf) {
|
|
3080
3080
|
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -9276,7 +9276,7 @@ createCommonjsModule(function (module, exports) {
|
|
|
9276
9276
|
!function(e,n){module.exports=n();}(commonjsGlobal,(function(){return {name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var n=["th","st","nd","rd"],t=e%100;return "["+e+(n[(t-20)%10]||n[t]||n[0])+"]"}}}));
|
|
9277
9277
|
});
|
|
9278
9278
|
|
|
9279
|
-
const _excluded$
|
|
9279
|
+
const _excluded$r = ["view", "module", "scope", "form", "meta"];
|
|
9280
9280
|
dayjs__default["default"].extend(customParseFormat);
|
|
9281
9281
|
dayjs__default["default"].extend(utc);
|
|
9282
9282
|
dayjs__default["default"].extend(utc);
|
|
@@ -9650,7 +9650,7 @@ const filterCreateData = data => {
|
|
|
9650
9650
|
form,
|
|
9651
9651
|
meta
|
|
9652
9652
|
} = data,
|
|
9653
|
-
rest = _objectWithoutProperties(data, _excluded$
|
|
9653
|
+
rest = _objectWithoutProperties(data, _excluded$r);
|
|
9654
9654
|
const _meta = isObjectEmpty(meta) ? undefined : meta;
|
|
9655
9655
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
9656
9656
|
meta: _meta
|
|
@@ -10035,7 +10035,7 @@ SelectFilters.propTypes = {
|
|
|
10035
10035
|
apiUrl: PropTypes__default["default"].string
|
|
10036
10036
|
};
|
|
10037
10037
|
|
|
10038
|
-
const _excluded$
|
|
10038
|
+
const _excluded$q = ["columns", "data", "defaultFilters", "style", "pagination", "loading", "onChange", "onFilterChange", "selectOptions", "filtersConfig", "rowSelection", "setShowFilters", "rowKey", "showFilters", "hideOnLoading", "sourcesKey", "className", "projects", "t", "selectedProject", "sourceId", "projectSources", "language", "scrollX", "apiUrl", "app", "doEmptyRows"];
|
|
10039
10039
|
function DAFTable(_ref) {
|
|
10040
10040
|
let {
|
|
10041
10041
|
columns = [],
|
|
@@ -10066,7 +10066,7 @@ function DAFTable(_ref) {
|
|
|
10066
10066
|
app,
|
|
10067
10067
|
doEmptyRows
|
|
10068
10068
|
} = _ref,
|
|
10069
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10069
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
10070
10070
|
const [source, setSource] = React.useState([]);
|
|
10071
10071
|
const projectData = (projects || []).find(p => p.id === selectedProject);
|
|
10072
10072
|
const [filtersInit, setFiltersInit] = React.useState(!loading);
|
|
@@ -10788,7 +10788,7 @@ Pagination.propTypes = {
|
|
|
10788
10788
|
isMobile: PropTypes__default["default"].bool
|
|
10789
10789
|
};
|
|
10790
10790
|
|
|
10791
|
-
const _excluded$
|
|
10791
|
+
const _excluded$p = ["size", "maxHeight", "dataSource", "columns", "pagination"];
|
|
10792
10792
|
function StickyTable(_ref) {
|
|
10793
10793
|
let {
|
|
10794
10794
|
size = null,
|
|
@@ -10797,7 +10797,7 @@ function StickyTable(_ref) {
|
|
|
10797
10797
|
columns = {},
|
|
10798
10798
|
pagination = false
|
|
10799
10799
|
} = _ref,
|
|
10800
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10800
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
10801
10801
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
10802
10802
|
className: "daf-sticky-table",
|
|
10803
10803
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Table, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -11262,7 +11262,7 @@ const BTN_SIZE = {
|
|
|
11262
11262
|
LG: 'large'
|
|
11263
11263
|
};
|
|
11264
11264
|
|
|
11265
|
-
const _excluded$
|
|
11265
|
+
const _excluded$o = ["content", "size", "type", "icon", "onClick", "disabled", "loading", "title", "style", "className"];
|
|
11266
11266
|
function DafButton(_ref) {
|
|
11267
11267
|
let {
|
|
11268
11268
|
content = '',
|
|
@@ -11276,7 +11276,7 @@ function DafButton(_ref) {
|
|
|
11276
11276
|
style = {},
|
|
11277
11277
|
className = ''
|
|
11278
11278
|
} = _ref,
|
|
11279
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
11279
|
+
restProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
11280
11280
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Button, _objectSpread2(_objectSpread2({
|
|
11281
11281
|
icon: icon,
|
|
11282
11282
|
type: type,
|
|
@@ -11455,7 +11455,7 @@ var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_
|
|
|
11455
11455
|
const MOBILE_W = 850;
|
|
11456
11456
|
const MOBILE_WIDTH = `max-width: ${MOBILE_W}px`;
|
|
11457
11457
|
|
|
11458
|
-
const Style$
|
|
11458
|
+
const Style$I = dt.div`
|
|
11459
11459
|
.ant-btn {
|
|
11460
11460
|
border-radius: 100px 100px 100px 0;
|
|
11461
11461
|
padding: 10px;
|
|
@@ -11510,13 +11510,13 @@ const Style$H = dt.div`
|
|
|
11510
11510
|
}
|
|
11511
11511
|
`;
|
|
11512
11512
|
|
|
11513
|
-
const _excluded$
|
|
11513
|
+
const _excluded$n = ["children"];
|
|
11514
11514
|
const BorderedButton = _ref => {
|
|
11515
11515
|
let {
|
|
11516
11516
|
children
|
|
11517
11517
|
} = _ref,
|
|
11518
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11519
|
-
return /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
11518
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
11519
|
+
return /*#__PURE__*/jsxRuntime.jsx(Style$I, {
|
|
11520
11520
|
className: "d-btn-cont",
|
|
11521
11521
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
11522
11522
|
children: children
|
|
@@ -11627,7 +11627,7 @@ function Badge(_ref) {
|
|
|
11627
11627
|
}, [tooltip]);
|
|
11628
11628
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
11629
11629
|
title: tooltipTitle,
|
|
11630
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
11630
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Style$H, {
|
|
11631
11631
|
className: "".concat((_variantConfig$varian = variantConfig[variant]) === null || _variantConfig$varian === void 0 ? void 0 : _variantConfig$varian.className, " ").concat(roundedConfig[rounded], " ").concat(className ? className : ""),
|
|
11632
11632
|
style: _objectSpread2({
|
|
11633
11633
|
width: size === "icon" ? "fit-content" : isNumberSize ? "".concat(size, "px") : "100%"
|
|
@@ -11642,7 +11642,7 @@ function Badge(_ref) {
|
|
|
11642
11642
|
})
|
|
11643
11643
|
});
|
|
11644
11644
|
}
|
|
11645
|
-
const Style$
|
|
11645
|
+
const Style$H = dt.div(_templateObject$c || (_templateObject$c = _taggedTemplateLiteral(["\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: 4px;\n\tpadding: 4px;\n\tmax-width: 100%;\n\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n\n\t> svg {\n\t\tflex-shrink: 0;\n\t}\n\n\t> span {\n\t\tall: unset;\n\t\tmargin-left: 4px;\n\t\tfont-weight: 600;\n\t\tfont-size: 12px;\n\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t\tdisplay: block;\n\t\tmax-width: 100%;\n\t}\n"])));
|
|
11646
11646
|
Badge.propTypes = {
|
|
11647
11647
|
children: PropTypes__default["default"].node,
|
|
11648
11648
|
className: PropTypes__default["default"].string,
|
|
@@ -11655,12 +11655,12 @@ Badge.propTypes = {
|
|
|
11655
11655
|
props: PropTypes__default["default"].object
|
|
11656
11656
|
};
|
|
11657
11657
|
|
|
11658
|
-
const _excluded$
|
|
11658
|
+
const _excluded$m = ["icon"];
|
|
11659
11659
|
function GetIcon(_ref) {
|
|
11660
11660
|
let {
|
|
11661
11661
|
icon
|
|
11662
11662
|
} = _ref,
|
|
11663
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11663
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
11664
11664
|
let Icon = Icons__namespace.CloseOutlined;
|
|
11665
11665
|
if (Icons__namespace[icon]) {
|
|
11666
11666
|
Icon = Icons__namespace[icon];
|
|
@@ -11982,9 +11982,9 @@ GoToSelect.propTypes = {
|
|
|
11982
11982
|
t: PropTypes__default["default"].func
|
|
11983
11983
|
};
|
|
11984
11984
|
|
|
11985
|
-
const _excluded$
|
|
11985
|
+
const _excluded$l = ["options", "defaultSelected", "onChange", "textWhenMultiple", "withCount", "oneAlwaysSelected", "canUnselectLast", "isAvatarGroup", "maxAvatarCount", "dropDownWidth", "topAvatarValue", "isSingle", "selectionType"];
|
|
11986
11986
|
const {
|
|
11987
|
-
useToken: useToken$
|
|
11987
|
+
useToken: useToken$k
|
|
11988
11988
|
} = antd.theme;
|
|
11989
11989
|
|
|
11990
11990
|
/**
|
|
@@ -12075,10 +12075,10 @@ function Multiselect(_ref) {
|
|
|
12075
12075
|
isSingle = false,
|
|
12076
12076
|
selectionType = SELECTION_TYPES.DEFAULT
|
|
12077
12077
|
} = _ref,
|
|
12078
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12078
|
+
restProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
12079
12079
|
const {
|
|
12080
12080
|
token
|
|
12081
|
-
} = useToken$
|
|
12081
|
+
} = useToken$k();
|
|
12082
12082
|
const [selectValue, setSelectValue] = React.useState(Array.isArray(defaultSelected) ? defaultSelected.length > 0 ? defaultSelected : [] : [defaultSelected]);
|
|
12083
12083
|
function onSelectChange(value) {
|
|
12084
12084
|
if (!canUnselectLast && value.length === 0) {
|
|
@@ -12582,7 +12582,7 @@ const useHeader = _ref => {
|
|
|
12582
12582
|
};
|
|
12583
12583
|
|
|
12584
12584
|
const {
|
|
12585
|
-
useToken: useToken$
|
|
12585
|
+
useToken: useToken$j
|
|
12586
12586
|
} = antd.theme;
|
|
12587
12587
|
function BreadCrumbs({
|
|
12588
12588
|
breadcrumbs = [],
|
|
@@ -12591,7 +12591,7 @@ function BreadCrumbs({
|
|
|
12591
12591
|
const [splitIndex, setSplitIndex] = React.useState(0);
|
|
12592
12592
|
const {
|
|
12593
12593
|
token
|
|
12594
|
-
} = useToken$
|
|
12594
|
+
} = useToken$j();
|
|
12595
12595
|
const _renderBreadcrumb = (b, i, isLast, noOnClickLast = false) => {
|
|
12596
12596
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
12597
12597
|
className: "flex breadcrumb-item",
|
|
@@ -12742,7 +12742,7 @@ DAFHeader.propTypes = {
|
|
|
12742
12742
|
downloadDisabled: PropTypes__default["default"].any
|
|
12743
12743
|
};
|
|
12744
12744
|
|
|
12745
|
-
const _excluded$
|
|
12745
|
+
const _excluded$k = ["tabs", "onChange", "value", "className"];
|
|
12746
12746
|
function TabsHeader(_ref) {
|
|
12747
12747
|
let {
|
|
12748
12748
|
tabs = [],
|
|
@@ -12750,7 +12750,7 @@ function TabsHeader(_ref) {
|
|
|
12750
12750
|
value = '',
|
|
12751
12751
|
className = 'mt-2'
|
|
12752
12752
|
} = _ref,
|
|
12753
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12753
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
12754
12754
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
12755
12755
|
className: formatClassname(['daf-tabs-header pl-6 pr-6', className]),
|
|
12756
12756
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Tabs, _objectSpread2({
|
|
@@ -12847,7 +12847,7 @@ DrawerHeader.propTypes = {
|
|
|
12847
12847
|
tabsConfig: PropTypes__default["default"].any
|
|
12848
12848
|
};
|
|
12849
12849
|
|
|
12850
|
-
const _excluded$
|
|
12850
|
+
const _excluded$j = ["label", "onClick", "icon", "type", "tooltip", "disabled", "loading", "style", "className"];
|
|
12851
12851
|
const useFooter = _ref => {
|
|
12852
12852
|
let {
|
|
12853
12853
|
leftContent,
|
|
@@ -12882,7 +12882,7 @@ const useFooter = _ref => {
|
|
|
12882
12882
|
style = {},
|
|
12883
12883
|
className = ""
|
|
12884
12884
|
} = button,
|
|
12885
|
-
restProps = _objectWithoutProperties(button, _excluded$
|
|
12885
|
+
restProps = _objectWithoutProperties(button, _excluded$j);
|
|
12886
12886
|
return /*#__PURE__*/jsxRuntime.jsx(DafButton, _objectSpread2({
|
|
12887
12887
|
content: label,
|
|
12888
12888
|
type: type,
|
|
@@ -15362,7 +15362,7 @@ Widget.propTypes = {
|
|
|
15362
15362
|
onExpandChange: PropTypes__default["default"].func
|
|
15363
15363
|
};
|
|
15364
15364
|
|
|
15365
|
-
const _excluded$
|
|
15365
|
+
const _excluded$i = ["loading", "title", "image", "description", "imgAlt", "noDescriptionText"];
|
|
15366
15366
|
function ImageWidget(_ref) {
|
|
15367
15367
|
let {
|
|
15368
15368
|
loading = false,
|
|
@@ -15372,7 +15372,7 @@ function ImageWidget(_ref) {
|
|
|
15372
15372
|
imgAlt,
|
|
15373
15373
|
noDescriptionText
|
|
15374
15374
|
} = _ref,
|
|
15375
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15375
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
15376
15376
|
return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
|
|
15377
15377
|
loading: loading,
|
|
15378
15378
|
title: title,
|
|
@@ -15429,7 +15429,7 @@ function ImageWidget(_ref) {
|
|
|
15429
15429
|
}
|
|
15430
15430
|
|
|
15431
15431
|
var _templateObject$a;
|
|
15432
|
-
const _excluded$
|
|
15432
|
+
const _excluded$h = ["title", "loading", "data", "current", "defaultActiveTab", "widgetClassname", "className", "direction"];
|
|
15433
15433
|
function FlowWidget(_ref) {
|
|
15434
15434
|
let {
|
|
15435
15435
|
title,
|
|
@@ -15441,7 +15441,7 @@ function FlowWidget(_ref) {
|
|
|
15441
15441
|
className,
|
|
15442
15442
|
direction = "horizontal"
|
|
15443
15443
|
} = _ref,
|
|
15444
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15444
|
+
rest = _objectWithoutProperties(_ref, _excluded$h);
|
|
15445
15445
|
const [activeTab, setActiveTab] = React.useState();
|
|
15446
15446
|
React.useEffect(() => {
|
|
15447
15447
|
if (defaultActiveTab) {
|
|
@@ -15536,7 +15536,7 @@ function FlowWidget(_ref) {
|
|
|
15536
15536
|
className: "with-border-header ".concat(widgetClassname),
|
|
15537
15537
|
tabsConfig: tabConfig
|
|
15538
15538
|
}, rest), {}, {
|
|
15539
|
-
children: !isEmpty ? /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
15539
|
+
children: !isEmpty ? /*#__PURE__*/jsxRuntime.jsx(Style$G, {
|
|
15540
15540
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Steps, {
|
|
15541
15541
|
current: currentForActiveTab,
|
|
15542
15542
|
initial: initialForActiveTab,
|
|
@@ -15578,7 +15578,7 @@ function Icon(_ref2) {
|
|
|
15578
15578
|
return icon(status);
|
|
15579
15579
|
}
|
|
15580
15580
|
}
|
|
15581
|
-
const Style$
|
|
15581
|
+
const Style$G = dt.div(_templateObject$a || (_templateObject$a = _taggedTemplateLiteral(["\n\toverflow-x: auto;\n\toverflow-y: hidden;\n\n\t::-webkit-scrollbar {\n\t\tdisplay: none;\n\t}\n\n\tscrollbar-width: none;\n\n\t-ms-overflow-style: none;\n\n\t@media (max-width: 532px) {\n\t\toverflow-x: hidden;\n\t}\n\n\t:where(.ant-steps-horizontal):not(.ant-steps-label-vertical) {\n\t\t.ant-steps-item-content {\n\t\t\twidth: 100%;\n\n\t\t\t.ant-steps-item-description {\n\t\t\t\tmin-width: 205px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n"])));
|
|
15582
15582
|
FlowWidget.propTypes = {
|
|
15583
15583
|
title: PropTypes__default["default"].string,
|
|
15584
15584
|
loading: PropTypes__default["default"].bool,
|
|
@@ -15640,7 +15640,7 @@ ActionWidget.propTypes = {
|
|
|
15640
15640
|
onClick: PropTypes__default["default"].func
|
|
15641
15641
|
};
|
|
15642
15642
|
|
|
15643
|
-
const Style$
|
|
15643
|
+
const Style$F = dt.div`
|
|
15644
15644
|
overflow-x: auto;
|
|
15645
15645
|
|
|
15646
15646
|
@media (${MOBILE_WIDTH}) {
|
|
@@ -15831,7 +15831,7 @@ function KeyIndicatorsWidget$1(_ref) {
|
|
|
15831
15831
|
className: formatClassname(["flex-1 with-border-header", widgetClassName]),
|
|
15832
15832
|
title: noTitle ? undefined : t(title),
|
|
15833
15833
|
noTitle: noTitle,
|
|
15834
|
-
children: [children, /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
15834
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(Style$F, {
|
|
15835
15835
|
className: formatClassname(["flex", className]),
|
|
15836
15836
|
children: config.map((c, i) => /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
15837
15837
|
className: "row-item",
|
|
@@ -15884,7 +15884,7 @@ function TooltipIcon(_ref) {
|
|
|
15884
15884
|
});
|
|
15885
15885
|
}
|
|
15886
15886
|
|
|
15887
|
-
const Style$
|
|
15887
|
+
const Style$E = dt.div`
|
|
15888
15888
|
display: flex;
|
|
15889
15889
|
flex-direction: row;
|
|
15890
15890
|
position: relative;
|
|
@@ -17275,7 +17275,7 @@ function LocationIcon({
|
|
|
17275
17275
|
});
|
|
17276
17276
|
}
|
|
17277
17277
|
|
|
17278
|
-
const Style$
|
|
17278
|
+
const Style$D = dt.div`
|
|
17279
17279
|
.main {
|
|
17280
17280
|
width: 24px;
|
|
17281
17281
|
height: 24px;
|
|
@@ -17417,7 +17417,7 @@ function StakeholderIcon({
|
|
|
17417
17417
|
link,
|
|
17418
17418
|
onClickLink: () => onClickLink(marker)
|
|
17419
17419
|
}),
|
|
17420
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
17420
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Style$D
|
|
17421
17421
|
// onClick={toggleOpen}
|
|
17422
17422
|
, {
|
|
17423
17423
|
className: `map-marker marker closed`,
|
|
@@ -17430,7 +17430,7 @@ function StakeholderIcon({
|
|
|
17430
17430
|
})
|
|
17431
17431
|
});
|
|
17432
17432
|
}
|
|
17433
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
17433
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Style$D, {
|
|
17434
17434
|
onClick: toggleOpen,
|
|
17435
17435
|
className: `map-marker marker ${isActive ? "opened" : "closed"}`,
|
|
17436
17436
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -18152,7 +18152,7 @@ const useMap$1 = ({
|
|
|
18152
18152
|
};
|
|
18153
18153
|
|
|
18154
18154
|
var _templateObject$9;
|
|
18155
|
-
const Style$
|
|
18155
|
+
const Style$C = dt.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteral(["\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n\n\t.p-placeholder {\n\t\tposition: absolute;\n\t\ttop: 0px;\n\t\tleft: 0px;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground: transparent;\n\t\tz-index: 100;\n\t}\n"])));
|
|
18156
18156
|
|
|
18157
18157
|
/**
|
|
18158
18158
|
* ComponentWithFocus
|
|
@@ -18212,7 +18212,7 @@ function ComponentWithFocus(_ref) {
|
|
|
18212
18212
|
setClosed(false);
|
|
18213
18213
|
}
|
|
18214
18214
|
}, [closed]);
|
|
18215
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
18215
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Style$C, {
|
|
18216
18216
|
className: className,
|
|
18217
18217
|
ref: ref,
|
|
18218
18218
|
style: style,
|
|
@@ -18224,7 +18224,7 @@ function ComponentWithFocus(_ref) {
|
|
|
18224
18224
|
});
|
|
18225
18225
|
}
|
|
18226
18226
|
|
|
18227
|
-
const Style$
|
|
18227
|
+
const Style$B = dt.div`
|
|
18228
18228
|
position: absolute;
|
|
18229
18229
|
top: 24px;
|
|
18230
18230
|
left: 24px;
|
|
@@ -18283,7 +18283,7 @@ function Filters({
|
|
|
18283
18283
|
return null;
|
|
18284
18284
|
}
|
|
18285
18285
|
};
|
|
18286
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
18286
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Style$B, {
|
|
18287
18287
|
children: [/*#__PURE__*/jsxRuntime.jsxs(antd.Button, {
|
|
18288
18288
|
onClick: () => setOpened(p => !p),
|
|
18289
18289
|
children: [t("Filter"), /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
@@ -18358,7 +18358,7 @@ function Map$3(_ref) {
|
|
|
18358
18358
|
isSatellite
|
|
18359
18359
|
});
|
|
18360
18360
|
return /*#__PURE__*/jsxRuntime.jsx(ComponentWithFocus, {
|
|
18361
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
18361
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Style$E, {
|
|
18362
18362
|
className: formatClassname([showSider && activeMarker && "with-sider"]),
|
|
18363
18363
|
children: [filtersConfig ? /*#__PURE__*/jsxRuntime.jsx(Filters, {
|
|
18364
18364
|
t: t,
|
|
@@ -18464,7 +18464,7 @@ Map$3.propTypes = {
|
|
|
18464
18464
|
nameAsSiderTitle: PropTypes__default["default"].bool
|
|
18465
18465
|
};
|
|
18466
18466
|
|
|
18467
|
-
const Style$
|
|
18467
|
+
const Style$A = dt.div`
|
|
18468
18468
|
display: flex;
|
|
18469
18469
|
flex-direction: row;
|
|
18470
18470
|
position: relative;
|
|
@@ -19731,7 +19731,7 @@ function Globe(_ref) {
|
|
|
19731
19731
|
onRender === null || onRender === void 0 || onRender();
|
|
19732
19732
|
}, [onRender]);
|
|
19733
19733
|
return /*#__PURE__*/jsxRuntime.jsx(ComponentWithFocus, {
|
|
19734
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
19734
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Style$A, {
|
|
19735
19735
|
className: formatClassname([showSider && activeMarker && "with-sider"]),
|
|
19736
19736
|
children: [filtersConfig ? /*#__PURE__*/jsxRuntime.jsx(Filters, {
|
|
19737
19737
|
t: t,
|
|
@@ -19975,7 +19975,7 @@ function DashboardLayout(_ref) {
|
|
|
19975
19975
|
});
|
|
19976
19976
|
}
|
|
19977
19977
|
|
|
19978
|
-
const Style$
|
|
19978
|
+
const Style$z = dt.div`
|
|
19979
19979
|
|
|
19980
19980
|
|
|
19981
19981
|
.card {
|
|
@@ -20042,20 +20042,20 @@ const MapConfig = ({
|
|
|
20042
20042
|
});
|
|
20043
20043
|
};
|
|
20044
20044
|
|
|
20045
|
-
const _excluded$
|
|
20045
|
+
const _excluded$g = ["config", "title", "loading"];
|
|
20046
20046
|
const Details = _ref => {
|
|
20047
20047
|
let {
|
|
20048
20048
|
config = [],
|
|
20049
20049
|
title,
|
|
20050
20050
|
loading = false
|
|
20051
20051
|
} = _ref,
|
|
20052
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
20052
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
20053
20053
|
return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
|
|
20054
20054
|
className: "with-border-header h-w-btn-header card",
|
|
20055
20055
|
loading: loading,
|
|
20056
20056
|
title: title
|
|
20057
20057
|
}, rest), {}, {
|
|
20058
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
20058
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Style$z, {
|
|
20059
20059
|
children: config.length > 0 ? /*#__PURE__*/jsxRuntime.jsx(MapConfig, {
|
|
20060
20060
|
config: config
|
|
20061
20061
|
}) : /*#__PURE__*/jsxRuntime.jsx(antd.Empty, {
|
|
@@ -20065,20 +20065,20 @@ const Details = _ref => {
|
|
|
20065
20065
|
}));
|
|
20066
20066
|
};
|
|
20067
20067
|
|
|
20068
|
-
const _excluded$
|
|
20068
|
+
const _excluded$f = ["config", "title", "loading"];
|
|
20069
20069
|
const KeyIndicatorsDetails = _ref => {
|
|
20070
20070
|
let {
|
|
20071
20071
|
config,
|
|
20072
20072
|
title,
|
|
20073
20073
|
loading = false
|
|
20074
20074
|
} = _ref,
|
|
20075
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
20075
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
20076
20076
|
return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
|
|
20077
20077
|
className: "with-border-header h-w-btn-header",
|
|
20078
20078
|
title: title,
|
|
20079
20079
|
loading: loading
|
|
20080
20080
|
}, rest), {}, {
|
|
20081
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
20081
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Style$z, {
|
|
20082
20082
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
20083
20083
|
className: "key-info-card",
|
|
20084
20084
|
children: /*#__PURE__*/jsxRuntime.jsx(MapConfig, {
|
|
@@ -20090,7 +20090,7 @@ const KeyIndicatorsDetails = _ref => {
|
|
|
20090
20090
|
}));
|
|
20091
20091
|
};
|
|
20092
20092
|
|
|
20093
|
-
const Style$
|
|
20093
|
+
const Style$y = dt.div`
|
|
20094
20094
|
|
|
20095
20095
|
.main-details {
|
|
20096
20096
|
display: grid;
|
|
@@ -20102,7 +20102,7 @@ const Style$x = dt.div`
|
|
|
20102
20102
|
}
|
|
20103
20103
|
`;
|
|
20104
20104
|
|
|
20105
|
-
const _excluded$
|
|
20105
|
+
const _excluded$e = ["children", "config", "detailsTitle", "firstColumnWidth"];
|
|
20106
20106
|
const DetailsSection = _ref => {
|
|
20107
20107
|
let {
|
|
20108
20108
|
children,
|
|
@@ -20110,8 +20110,8 @@ const DetailsSection = _ref => {
|
|
|
20110
20110
|
detailsTitle,
|
|
20111
20111
|
firstColumnWidth = "250px"
|
|
20112
20112
|
} = _ref,
|
|
20113
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
20114
|
-
return /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
20113
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
20114
|
+
return /*#__PURE__*/jsxRuntime.jsx(Style$y, {
|
|
20115
20115
|
firstColumnWidth: firstColumnWidth,
|
|
20116
20116
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
20117
20117
|
className: "main-details",
|
|
@@ -20286,14 +20286,14 @@ const getGoalConfig = () => {
|
|
|
20286
20286
|
};
|
|
20287
20287
|
|
|
20288
20288
|
var _templateObject$8;
|
|
20289
|
-
const _excluded$
|
|
20289
|
+
const _excluded$d = ["title", "activeSdgGoals", "t"];
|
|
20290
20290
|
function SDGWidget(_ref) {
|
|
20291
20291
|
let {
|
|
20292
20292
|
title = "Sustainable Development Goals",
|
|
20293
20293
|
activeSdgGoals = [],
|
|
20294
20294
|
t = key => key
|
|
20295
20295
|
} = _ref,
|
|
20296
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20296
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
20297
20297
|
const sdgConfig = getGoalConfig();
|
|
20298
20298
|
return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
|
|
20299
20299
|
title: title,
|
|
@@ -20383,35 +20383,39 @@ const Label = dt.span`
|
|
|
20383
20383
|
color: #6c737f;
|
|
20384
20384
|
`;
|
|
20385
20385
|
|
|
20386
|
+
const _excluded$c = ["title", "description", "onLinkClick", "image", "linkIcon", "sdgList", "items", "onCardClick", "hideSDGList", "t"];
|
|
20386
20387
|
const {
|
|
20387
20388
|
Meta
|
|
20388
20389
|
} = antd.Card;
|
|
20389
20390
|
const {
|
|
20390
|
-
useToken: useToken$
|
|
20391
|
+
useToken: useToken$i
|
|
20391
20392
|
} = antd.theme;
|
|
20392
20393
|
function ProjectWidget(_ref) {
|
|
20393
20394
|
let {
|
|
20394
|
-
|
|
20395
|
-
|
|
20396
|
-
|
|
20397
|
-
|
|
20398
|
-
|
|
20399
|
-
|
|
20400
|
-
|
|
20401
|
-
|
|
20402
|
-
|
|
20403
|
-
|
|
20395
|
+
title,
|
|
20396
|
+
description,
|
|
20397
|
+
onLinkClick,
|
|
20398
|
+
image,
|
|
20399
|
+
linkIcon = "Link",
|
|
20400
|
+
sdgList,
|
|
20401
|
+
items,
|
|
20402
|
+
onCardClick,
|
|
20403
|
+
hideSDGList = false,
|
|
20404
|
+
t = x => x
|
|
20405
|
+
} = _ref,
|
|
20406
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
20404
20407
|
const [isHovered, setIsHovered] = React__default["default"].useState(false);
|
|
20405
20408
|
const {
|
|
20406
20409
|
token
|
|
20407
|
-
} = useToken$
|
|
20408
|
-
return /*#__PURE__*/jsxRuntime.jsxs(antd.Card, {
|
|
20410
|
+
} = useToken$i();
|
|
20411
|
+
return /*#__PURE__*/jsxRuntime.jsxs(antd.Card, _objectSpread2(_objectSpread2({
|
|
20409
20412
|
style: {
|
|
20410
20413
|
flex: 1
|
|
20411
20414
|
},
|
|
20412
20415
|
hoverable: true,
|
|
20413
20416
|
onMouseEnter: () => setIsHovered(true),
|
|
20414
20417
|
onMouseLeave: () => setIsHovered(false),
|
|
20418
|
+
onClick: onCardClick,
|
|
20415
20419
|
cover: /*#__PURE__*/jsxRuntime.jsxs(ImageContainer, {
|
|
20416
20420
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
20417
20421
|
className: "image",
|
|
@@ -20428,7 +20432,8 @@ function ProjectWidget(_ref) {
|
|
|
20428
20432
|
color: isHovered ? token.colorPrimary7 : "black"
|
|
20429
20433
|
})
|
|
20430
20434
|
})]
|
|
20431
|
-
})
|
|
20435
|
+
})
|
|
20436
|
+
}, props), {}, {
|
|
20432
20437
|
children: [/*#__PURE__*/jsxRuntime.jsx(Meta, {
|
|
20433
20438
|
title: title || undefined,
|
|
20434
20439
|
description: description || undefined
|
|
@@ -20463,9 +20468,113 @@ function ProjectWidget(_ref) {
|
|
|
20463
20468
|
})
|
|
20464
20469
|
})]
|
|
20465
20470
|
})]
|
|
20466
|
-
});
|
|
20471
|
+
}));
|
|
20467
20472
|
}
|
|
20468
20473
|
|
|
20474
|
+
const Style$x = dt.div`
|
|
20475
|
+
.daf-widget {
|
|
20476
|
+
background-color: ${props => props.backgroundColor} !important;
|
|
20477
|
+
border-color: ${props => props.backgroundBorderColor} !important;
|
|
20478
|
+
}
|
|
20479
|
+
`;
|
|
20480
|
+
|
|
20481
|
+
const {
|
|
20482
|
+
useToken: useToken$h
|
|
20483
|
+
} = antd.theme;
|
|
20484
|
+
const WidgetCard = _ref => {
|
|
20485
|
+
let {
|
|
20486
|
+
title,
|
|
20487
|
+
backgroundColor,
|
|
20488
|
+
backgroundBorderColor,
|
|
20489
|
+
data = [],
|
|
20490
|
+
link,
|
|
20491
|
+
logoIcon,
|
|
20492
|
+
description,
|
|
20493
|
+
loading = false,
|
|
20494
|
+
iconColor,
|
|
20495
|
+
buttonIcon
|
|
20496
|
+
} = _ref;
|
|
20497
|
+
useToken$h();
|
|
20498
|
+
return /*#__PURE__*/jsxRuntime.jsx(Style$x, {
|
|
20499
|
+
backgroundColor: backgroundColor,
|
|
20500
|
+
backgroundBorderColor: backgroundBorderColor,
|
|
20501
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Widget, {
|
|
20502
|
+
title: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
20503
|
+
style: {
|
|
20504
|
+
display: "flex",
|
|
20505
|
+
alignItems: "center"
|
|
20506
|
+
},
|
|
20507
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
20508
|
+
style: {
|
|
20509
|
+
backgroundColor: '#FFFFFF',
|
|
20510
|
+
borderRadius: "20%",
|
|
20511
|
+
width: "32px",
|
|
20512
|
+
height: "32px",
|
|
20513
|
+
display: "flex",
|
|
20514
|
+
justifyContent: "center",
|
|
20515
|
+
alignItems: "center",
|
|
20516
|
+
marginRight: "8px",
|
|
20517
|
+
border: "1px solid #E5E7EB"
|
|
20518
|
+
},
|
|
20519
|
+
children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
20520
|
+
name: logoIcon,
|
|
20521
|
+
width: 25,
|
|
20522
|
+
height: 25
|
|
20523
|
+
})
|
|
20524
|
+
}), /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
20525
|
+
title: title,
|
|
20526
|
+
children: title
|
|
20527
|
+
})]
|
|
20528
|
+
}),
|
|
20529
|
+
addedHeader: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
20530
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
20531
|
+
className: "flex-1"
|
|
20532
|
+
}), /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
20533
|
+
style: {
|
|
20534
|
+
backgroundColor: '#FFFFFF',
|
|
20535
|
+
borderRadius: "20%",
|
|
20536
|
+
width: "32px",
|
|
20537
|
+
height: "32px",
|
|
20538
|
+
display: "flex",
|
|
20539
|
+
justifyContent: "center",
|
|
20540
|
+
alignItems: "center",
|
|
20541
|
+
border: "1px solid #E5E7EB"
|
|
20542
|
+
},
|
|
20543
|
+
href: link,
|
|
20544
|
+
children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
20545
|
+
className: buttonIcon,
|
|
20546
|
+
name: "Link",
|
|
20547
|
+
size: 16,
|
|
20548
|
+
color: iconColor || antd.theme.colorPrimary
|
|
20549
|
+
})
|
|
20550
|
+
})]
|
|
20551
|
+
}),
|
|
20552
|
+
loading: loading,
|
|
20553
|
+
children: [description && /*#__PURE__*/jsxRuntime.jsx("p", {
|
|
20554
|
+
children: description
|
|
20555
|
+
}), data === null || data === void 0 ? void 0 : data.map(item => /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
20556
|
+
style: {
|
|
20557
|
+
display: "flex",
|
|
20558
|
+
justifyContent: "space-between"
|
|
20559
|
+
},
|
|
20560
|
+
children: [item.isTag ? /*#__PURE__*/jsxRuntime.jsx(antd.Tag, {
|
|
20561
|
+
style: {
|
|
20562
|
+
width: '70px',
|
|
20563
|
+
textAlign: 'center',
|
|
20564
|
+
borderRadius: '10px'
|
|
20565
|
+
},
|
|
20566
|
+
color: item.tagColor || 'default',
|
|
20567
|
+
children: item.label
|
|
20568
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
20569
|
+
children: item.label
|
|
20570
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
20571
|
+
children: item.value
|
|
20572
|
+
})]
|
|
20573
|
+
}, item))]
|
|
20574
|
+
})
|
|
20575
|
+
});
|
|
20576
|
+
};
|
|
20577
|
+
|
|
20469
20578
|
var Style$w = dt.div`
|
|
20470
20579
|
border: 1px solid var(--base-gray-40);
|
|
20471
20580
|
padding: 12px;
|
|
@@ -59846,6 +59955,7 @@ exports.ViewForm = Content;
|
|
|
59846
59955
|
exports.ViewFormInput = Input;
|
|
59847
59956
|
exports.ViewFormNavigation = Navigation;
|
|
59848
59957
|
exports.Widget = Widget;
|
|
59958
|
+
exports.WidgetCard = WidgetCard;
|
|
59849
59959
|
exports.WidgetImage = ImageWidget;
|
|
59850
59960
|
exports.WidgetLoader = Loader;
|
|
59851
59961
|
exports.WidgetPlaceholder = WidgetPlaceholder;
|