datastake-daf 0.6.144 → 0.6.145

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.
@@ -3065,7 +3065,7 @@ const config$3 = {
3065
3065
  Integration: config$4
3066
3066
  };
3067
3067
 
3068
- const _excluded$r = ["width", "height", "size", "name", "fill"];
3068
+ const _excluded$q = ["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$r);
3077
+ props = _objectWithoutProperties(_ref, _excluded$q);
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$q = ["view", "module", "scope", "form", "meta"];
9279
+ const _excluded$p = ["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$q);
9653
+ rest = _objectWithoutProperties(data, _excluded$p);
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$p = ["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"];
10038
+ const _excluded$o = ["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$p);
10069
+ rest = _objectWithoutProperties(_ref, _excluded$o);
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$o = ["size", "maxHeight", "dataSource", "columns", "pagination"];
10791
+ const _excluded$n = ["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$o);
10800
+ props = _objectWithoutProperties(_ref, _excluded$n);
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$n = ["content", "size", "type", "icon", "onClick", "disabled", "loading", "title", "style", "className"];
11265
+ const _excluded$m = ["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$n);
11279
+ restProps = _objectWithoutProperties(_ref, _excluded$m);
11280
11280
  return /*#__PURE__*/jsxRuntime.jsx(antd.Button, _objectSpread2(_objectSpread2({
11281
11281
  icon: icon,
11282
11282
  type: type,
@@ -11510,12 +11510,12 @@ const Style$H = dt.div`
11510
11510
  }
11511
11511
  `;
11512
11512
 
11513
- const _excluded$m = ["children"];
11513
+ const _excluded$l = ["children"];
11514
11514
  const BorderedButton = _ref => {
11515
11515
  let {
11516
11516
  children
11517
11517
  } = _ref,
11518
- props = _objectWithoutProperties(_ref, _excluded$m);
11518
+ props = _objectWithoutProperties(_ref, _excluded$l);
11519
11519
  return /*#__PURE__*/jsxRuntime.jsx(Style$H, {
11520
11520
  className: "d-btn-cont",
11521
11521
  children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, _objectSpread2(_objectSpread2({}, props), {}, {
@@ -11524,7 +11524,7 @@ const BorderedButton = _ref => {
11524
11524
  });
11525
11525
  };
11526
11526
 
11527
- var _templateObject$c;
11527
+ var _templateObject$b;
11528
11528
  const variantConfig = {
11529
11529
  default: {
11530
11530
  className: "default-badge",
@@ -11642,7 +11642,7 @@ function Badge(_ref) {
11642
11642
  })
11643
11643
  });
11644
11644
  }
11645
- const Style$G = 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"])));
11645
+ const Style$G = dt.div(_templateObject$b || (_templateObject$b = _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$l = ["icon"];
11658
+ const _excluded$k = ["icon"];
11659
11659
  function GetIcon(_ref) {
11660
11660
  let {
11661
11661
  icon
11662
11662
  } = _ref,
11663
- props = _objectWithoutProperties(_ref, _excluded$l);
11663
+ props = _objectWithoutProperties(_ref, _excluded$k);
11664
11664
  let Icon = Icons__namespace.CloseOutlined;
11665
11665
  if (Icons__namespace[icon]) {
11666
11666
  Icon = Icons__namespace[icon];
@@ -11982,7 +11982,7 @@ GoToSelect.propTypes = {
11982
11982
  t: PropTypes__default["default"].func
11983
11983
  };
11984
11984
 
11985
- const _excluded$k = ["options", "defaultSelected", "onChange", "textWhenMultiple", "withCount", "oneAlwaysSelected", "canUnselectLast", "isAvatarGroup", "maxAvatarCount", "dropDownWidth", "topAvatarValue", "isSingle", "selectionType"];
11985
+ const _excluded$j = ["options", "defaultSelected", "onChange", "textWhenMultiple", "withCount", "oneAlwaysSelected", "canUnselectLast", "isAvatarGroup", "maxAvatarCount", "dropDownWidth", "topAvatarValue", "isSingle", "selectionType"];
11986
11986
  const {
11987
11987
  useToken: useToken$i
11988
11988
  } = antd.theme;
@@ -12075,7 +12075,7 @@ function Multiselect(_ref) {
12075
12075
  isSingle = false,
12076
12076
  selectionType = SELECTION_TYPES.DEFAULT
12077
12077
  } = _ref,
12078
- restProps = _objectWithoutProperties(_ref, _excluded$k);
12078
+ restProps = _objectWithoutProperties(_ref, _excluded$j);
12079
12079
  const {
12080
12080
  token
12081
12081
  } = useToken$i();
@@ -12742,7 +12742,7 @@ DAFHeader.propTypes = {
12742
12742
  downloadDisabled: PropTypes__default["default"].any
12743
12743
  };
12744
12744
 
12745
- const _excluded$j = ["tabs", "onChange", "value", "className"];
12745
+ const _excluded$i = ["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$j);
12753
+ rest = _objectWithoutProperties(_ref, _excluded$i);
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,16 +12847,14 @@ DrawerHeader.propTypes = {
12847
12847
  tabsConfig: PropTypes__default["default"].any
12848
12848
  };
12849
12849
 
12850
- const _excluded$i = ["label", "onClick", "icon", "type", "tooltip", "disabled", "loading", "style", "className"];
12851
- const useFooter = _ref => {
12852
- let {
12853
- leftContent,
12854
- centerContent,
12855
- rightContent,
12856
- actionButtons,
12857
- app,
12858
- isViewMode
12859
- } = _ref;
12850
+ const useFooter = ({
12851
+ leftContent,
12852
+ centerContent,
12853
+ rightContent,
12854
+ actionButtons,
12855
+ app,
12856
+ isViewMode
12857
+ }) => {
12860
12858
  const renderFooterContent = React.useMemo(() => {
12861
12859
  const FooterContent = () => /*#__PURE__*/jsxRuntime.jsxs("div", {
12862
12860
  className: "daf-footer-content",
@@ -12872,18 +12870,18 @@ const useFooter = _ref => {
12872
12870
  className: "daf-footer-actions",
12873
12871
  children: actionButtons.map((button, index) => {
12874
12872
  const {
12875
- label,
12876
- onClick,
12877
- icon,
12878
- type = BTN_TYPES.PRIMARY,
12879
- tooltip,
12880
- disabled = false,
12881
- loading = false,
12882
- style = {},
12883
- className = ""
12884
- } = button,
12885
- restProps = _objectWithoutProperties(button, _excluded$i);
12886
- return /*#__PURE__*/jsxRuntime.jsx(DafButton, _objectSpread2({
12873
+ label,
12874
+ onClick,
12875
+ icon,
12876
+ type = BTN_TYPES.PRIMARY,
12877
+ tooltip,
12878
+ disabled = false,
12879
+ loading = false,
12880
+ style = {},
12881
+ className = "",
12882
+ ...restProps
12883
+ } = button;
12884
+ return /*#__PURE__*/jsxRuntime.jsx(DafButton, {
12887
12885
  content: label,
12888
12886
  type: type,
12889
12887
  size: BTN_SIZE.MD,
@@ -12895,8 +12893,9 @@ const useFooter = _ref => {
12895
12893
  loading: loading,
12896
12894
  title: tooltip,
12897
12895
  style: style,
12898
- className: className
12899
- }, restProps), index);
12896
+ className: className,
12897
+ ...restProps
12898
+ }, index);
12900
12899
  })
12901
12900
  })]
12902
12901
  })]
@@ -12909,8 +12908,180 @@ const useFooter = _ref => {
12909
12908
  };
12910
12909
  };
12911
12910
 
12912
- var _templateObject$b;
12913
- const FooterContainer = dt.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteral(["\n\t.daf-footer {\n\t\tbackground: #ffffff;\n\t\tborder-top: 1px solid #e8e8e8;\n\t\tborder-left: none;\n\t\tborder-right: none;\n\t\tborder-bottom: none;\n\t\tborder-radius: 0;\n\t\tpadding: 24px;\n\t\tmargin: 0;\n\t\tbox-shadow: none;\n\t\tz-index: 100;\n\t\tposition: relative;\n\t\tmin-height: 80px;\n\n\t\t&.daf-footer-fixed {\n\t\t\tposition: fixed;\n\t\t\tbottom: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tz-index: 1000;\n\t\t}\n\n\t\t.daf-footer-content {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: space-between;\n\t\t\twidth: 100%;\n\t\t\tmin-height: 32px;\n\n\t\t\t.daf-footer-left {\n\t\t\t\tflex: 1;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\n\t\t\t.daf-footer-center {\n\t\t\t\tflex: 1;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t}\n\n\t\t\t.daf-footer-right {\n\t\t\t\tflex: 1;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: flex-end;\n\t\t\t\tgap: 12px;\n\n\t\t\t\t.daf-footer-actions {\n\t\t\t\t\t.ant-btn {\n\t\t\t\t\t\theight: 40px;\n\t\t\t\t\t\tpadding: 0 24px;\n\t\t\t\t\t\tborder-radius: 6px;\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\ttransition: all 0.3s ease;\n\t\t\t\t\t\tborder: 1px solid transparent;\n\n\t\t\t\t\t\t&.ant-btn-primary {\n\t\t\t\t\t\t\tbackground-color: var(--color-primary-70);\n\t\t\t\t\t\t\tcolor: #ffffff;\n\t\t\t\t\t\t\tborder-color: var(--color-primary-70);\n\n\t\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t\tbackground-color: var(--color-primary-60);\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-60);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:active {\n\t\t\t\t\t\t\t\tbackground-color: var(--color-primary-80);\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-80);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:disabled {\n\t\t\t\t\t\t\t\tbackground-color: #f5f5f5;\n\t\t\t\t\t\t\t\tcolor: #bfbfbf;\n\t\t\t\t\t\t\t\tborder-color: #d9d9d9;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&.ant-btn-default {\n\t\t\t\t\t\t\tbackground: #ffffff;\n\t\t\t\t\t\t\tcolor: #666666;\n\t\t\t\t\t\t\tborder-color: #d9d9d9;\n\n\t\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-70);\n\t\t\t\t\t\t\t\tcolor: var(--color-primary-70);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:active {\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-80);\n\t\t\t\t\t\t\t\tcolor: var(--color-primary-80);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:disabled {\n\t\t\t\t\t\t\t\tbackground-color: #f5f5f5;\n\t\t\t\t\t\t\t\tcolor: #bfbfbf;\n\t\t\t\t\t\t\t\tborder-color: #d9d9d9;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&.ant-btn-ghost {\n\t\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\t\tcolor: #666666;\n\t\t\t\t\t\t\tborder-color: #d9d9d9;\n\n\t\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-70);\n\t\t\t\t\t\t\t\tcolor: var(--color-primary-70);\n\t\t\t\t\t\t\t\tbackground: rgba(0, 0, 0, 0.02);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:active {\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-80);\n\t\t\t\t\t\t\t\tcolor: var(--color-primary-80);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:disabled {\n\t\t\t\t\t\t\t\tcolor: #bfbfbf;\n\t\t\t\t\t\t\t\tborder-color: #d9d9d9;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Responsive design */\n\t@media (max-width: 768px) {\n\t\t.daf-footer {\n\t\t\tmargin: 0;\n\t\t\tpadding: 16px;\n\n\t\t\t.daf-footer-content {\n\t\t\t\tflex-direction: column;\n\t\t\t\tgap: 16px;\n\t\t\t\talign-items: stretch;\n\n\t\t\t\t.daf-footer-left,\n\t\t\t\t.daf-footer-center,\n\t\t\t\t.daf-footer-right {\n\t\t\t\t\tflex: none;\n\t\t\t\t\tjustify-content: center;\n\t\t\t\t}\n\n\t\t\t\t.daf-footer-right {\n\t\t\t\t\t.daf-footer-actions {\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/* App-specific styling */\n\t&.sbg-app {\n\t\t.daf-footer {\n\t\t\tbackground: #f8f9fa;\n\t\t\tborder-color: #e9ecef;\n\t\t}\n\t}\n\n\t&.nashiriki-app {\n\t\t.daf-footer {\n\t\t\tbackground: #fff;\n\t\t\tborder-color: #d9d9d9;\n\t\t}\n\t}\n"])));
12911
+ const FooterContainer = dt.div`
12912
+ .daf-footer {
12913
+ background: #ffffff;
12914
+ border-top: 1px solid #e8e8e8;
12915
+ border-left: none;
12916
+ border-right: none;
12917
+ border-bottom: none;
12918
+ border-radius: 0;
12919
+ padding: 24px;
12920
+ margin: 0;
12921
+ box-shadow: none;
12922
+ z-index: 100;
12923
+ position: relative;
12924
+ min-height: 80px;
12925
+
12926
+ &.daf-footer-fixed {
12927
+ position: fixed;
12928
+ bottom: 0;
12929
+ left: 0;
12930
+ right: 0;
12931
+ z-index: 1000;
12932
+ }
12933
+
12934
+ .daf-footer-content {
12935
+ display: flex;
12936
+ align-items: center;
12937
+ justify-content: space-between;
12938
+ width: 100%;
12939
+ min-height: 32px;
12940
+
12941
+ .daf-footer-left {
12942
+ flex: 1;
12943
+ display: flex;
12944
+ align-items: center;
12945
+ justify-content: flex-start;
12946
+ }
12947
+
12948
+ .daf-footer-center {
12949
+ flex: 1;
12950
+ display: flex;
12951
+ align-items: center;
12952
+ justify-content: center;
12953
+ }
12954
+
12955
+ .daf-footer-right {
12956
+ flex: 1;
12957
+ display: flex;
12958
+ align-items: center;
12959
+ justify-content: flex-end;
12960
+ gap: 12px;
12961
+
12962
+ .daf-footer-actions {
12963
+ .ant-btn {
12964
+ height: 40px;
12965
+ padding: 0 24px;
12966
+ border-radius: 6px;
12967
+ font-weight: 500;
12968
+ font-size: 14px;
12969
+ transition: all 0.3s ease;
12970
+ border: 1px solid transparent;
12971
+
12972
+ &.ant-btn-primary {
12973
+ background-color: var(--color-primary-70);
12974
+ color: #ffffff;
12975
+ border-color: var(--color-primary-70);
12976
+
12977
+ &:hover {
12978
+ background-color: var(--color-primary-60);
12979
+ border-color: var(--color-primary-60);
12980
+ }
12981
+
12982
+ &:active {
12983
+ background-color: var(--color-primary-80);
12984
+ border-color: var(--color-primary-80);
12985
+ }
12986
+
12987
+ &:disabled {
12988
+ background-color: #f5f5f5;
12989
+ color: #bfbfbf;
12990
+ border-color: #d9d9d9;
12991
+ }
12992
+ }
12993
+
12994
+ &.ant-btn-default {
12995
+ background: #ffffff;
12996
+ color: #666666;
12997
+ border-color: #d9d9d9;
12998
+
12999
+ &:hover {
13000
+ border-color: var(--color-primary-70);
13001
+ color: var(--color-primary-70);
13002
+ }
13003
+
13004
+ &:active {
13005
+ border-color: var(--color-primary-80);
13006
+ color: var(--color-primary-80);
13007
+ }
13008
+
13009
+ &:disabled {
13010
+ background-color: #f5f5f5;
13011
+ color: #bfbfbf;
13012
+ border-color: #d9d9d9;
13013
+ }
13014
+ }
13015
+
13016
+ &.ant-btn-ghost {
13017
+ background: transparent;
13018
+ color: #666666;
13019
+ border-color: #d9d9d9;
13020
+
13021
+ &:hover {
13022
+ border-color: var(--color-primary-70);
13023
+ color: var(--color-primary-70);
13024
+ background: rgba(0, 0, 0, 0.02);
13025
+ }
13026
+
13027
+ &:active {
13028
+ border-color: var(--color-primary-80);
13029
+ color: var(--color-primary-80);
13030
+ }
13031
+
13032
+ &:disabled {
13033
+ color: #bfbfbf;
13034
+ border-color: #d9d9d9;
13035
+ }
13036
+ }
13037
+ }
13038
+ }
13039
+ }
13040
+ }
13041
+ }
13042
+
13043
+ /* Responsive design */
13044
+ @media (max-width: 768px) {
13045
+ .daf-footer {
13046
+ margin: 0;
13047
+ padding: 16px;
13048
+
13049
+ .daf-footer-content {
13050
+ flex-direction: column;
13051
+ gap: 16px;
13052
+ align-items: stretch;
13053
+
13054
+ .daf-footer-left,
13055
+ .daf-footer-center,
13056
+ .daf-footer-right {
13057
+ flex: none;
13058
+ justify-content: center;
13059
+ }
13060
+
13061
+ .daf-footer-right {
13062
+ .daf-footer-actions {
13063
+ justify-content: center;
13064
+ }
13065
+ }
13066
+ }
13067
+ }
13068
+ }
13069
+
13070
+ /* App-specific styling */
13071
+ &.sbg-app {
13072
+ .daf-footer {
13073
+ background: #f8f9fa;
13074
+ border-color: #e9ecef;
13075
+ }
13076
+ }
13077
+
13078
+ &.nashiriki-app {
13079
+ .daf-footer {
13080
+ background: #fff;
13081
+ border-color: #d9d9d9;
13082
+ }
13083
+ }
13084
+ `;
12914
13085
 
12915
13086
  function DAFFooter(_ref) {
12916
13087
  let {
@@ -13778,9 +13949,8 @@ const determineHasChildren = ({
13778
13949
 
13779
13950
  const sortByPosition = (items, getConfig) => {
13780
13951
  return items.sort((a, b) => {
13781
- var _getConfig, _getConfig2;
13782
- const positionA = ((_getConfig = getConfig(a)) === null || _getConfig === void 0 ? void 0 : _getConfig.position) || 0;
13783
- const positionB = ((_getConfig2 = getConfig(b)) === null || _getConfig2 === void 0 ? void 0 : _getConfig2.position) || 0;
13952
+ const positionA = getConfig(a)?.position || 0;
13953
+ const positionB = getConfig(b)?.position || 0;
13784
13954
  return positionA - positionB;
13785
13955
  });
13786
13956
  };
@@ -13797,7 +13967,7 @@ const resolveDynamicLabel = (labelConfig, item, defaultLabel) => {
13797
13967
  const parts = labelKey.split(' is ');
13798
13968
  if (parts.length === 2) {
13799
13969
  const [conditionKey, conditionValue] = parts;
13800
- if ((item === null || item === void 0 ? void 0 : item[conditionKey]) === conditionValue) {
13970
+ if (item?.[conditionKey] === conditionValue) {
13801
13971
  return labelConfig[labelKey];
13802
13972
  }
13803
13973
  }
@@ -17009,12 +17179,13 @@ function StakeholderIcon$1({
17009
17179
  items: renderTooltip(data),
17010
17180
  link,
17011
17181
  onClickLink: () => {
17012
- const popovers = document.querySelectorAll(".ant-popover");
17013
- popovers.forEach(popover => {
17014
- if (popover && popover.parentNode) {
17015
- popover.parentNode.removeChild(popover);
17016
- }
17017
- });
17182
+ // const popovers = document.querySelectorAll(".ant-popover");
17183
+
17184
+ // popovers.forEach((popover) => {
17185
+ // if (popover && popover.parentNode) {
17186
+ // popover.parentNode.removeChild(popover);
17187
+ // }
17188
+ // });
17018
17189
  onClickLink(data);
17019
17190
  }
17020
17191
  })
@@ -17051,6 +17222,7 @@ function LocationIcon({
17051
17222
  onClickLink,
17052
17223
  selectedMarkersId,
17053
17224
  handleSelectMarker,
17225
+ i,
17054
17226
  mapRef,
17055
17227
  setMapMarkers,
17056
17228
  openPopupIdRef,
@@ -17225,7 +17397,7 @@ function LocationIcon({
17225
17397
  // }
17226
17398
  ,
17227
17399
 
17228
- getPopupContainer: () => document.getElementById("map"),
17400
+ getPopupContainer: () => document.getElementById(i),
17229
17401
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
17230
17402
  style: {
17231
17403
  position: "relative",
@@ -17709,6 +17881,7 @@ function useMapHelper$1({
17709
17881
  root.render( /*#__PURE__*/jsxRuntime.jsx(LocationIcon, {
17710
17882
  data: data,
17711
17883
  zoom: zoom,
17884
+ i: i,
17712
17885
  allData: allData,
17713
17886
  link: link,
17714
17887
  renderTooltip: renderTooltip,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.144",
3
+ "version": "0.6.145",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -231,13 +231,13 @@ export default function StakeholderIcon({
231
231
  items: renderTooltip(data),
232
232
  link,
233
233
  onClickLink: () => {
234
- const popovers = document.querySelectorAll(".ant-popover");
234
+ // const popovers = document.querySelectorAll(".ant-popover");
235
235
 
236
- popovers.forEach((popover) => {
237
- if (popover && popover.parentNode) {
238
- popover.parentNode.removeChild(popover);
239
- }
240
- });
236
+ // popovers.forEach((popover) => {
237
+ // if (popover && popover.parentNode) {
238
+ // popover.parentNode.removeChild(popover);
239
+ // }
240
+ // });
241
241
  onClickLink(data);
242
242
  },
243
243
  })}
@@ -24,6 +24,7 @@ export default function LocationIcon({
24
24
  onClickLink,
25
25
  selectedMarkersId,
26
26
  handleSelectMarker,
27
+ i,
27
28
  mapRef,
28
29
  setMapMarkers,
29
30
  openPopupIdRef,
@@ -213,7 +214,7 @@ export default function LocationIcon({
213
214
  // isHovering
214
215
  // }
215
216
 
216
- getPopupContainer={() => document.getElementById("map")}
217
+ getPopupContainer={() => document.getElementById(i)}
217
218
  >
218
219
  <div style={{ position: "relative", display: "inline-block" }}>
219
220
  {(isSelected || selectedMarkersId.length === 0) && (
@@ -370,6 +370,7 @@ export function useMapHelper({
370
370
  <ChainIcon
371
371
  data={data}
372
372
  zoom={zoom}
373
+ i={i}
373
374
  allData={allData}
374
375
  link={link}
375
376
  renderTooltip={renderTooltip}