datastake-daf 0.6.394 → 0.6.396
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 +241 -69
- package/package.json +1 -1
- package/src/@daf/core/components/Dashboard/Map/ChainIcon/Markers/StakeholderMarker.js +0 -11
- package/src/@daf/core/components/Dashboard/Map/ChainIcon/index.js +7 -0
- package/src/@daf/core/components/Dashboard/Map/ChainIcon/utils.js +4 -2
- package/src/@daf/core/components/Dashboard/Map/hook.js +3 -0
- package/src/@daf/core/components/Dashboard/Map/storyConfig5.js +1 -1
package/dist/components/index.js
CHANGED
|
@@ -3226,7 +3226,7 @@ const config$3 = {
|
|
|
3226
3226
|
MagicWand: config$4
|
|
3227
3227
|
};
|
|
3228
3228
|
|
|
3229
|
-
const _excluded$
|
|
3229
|
+
const _excluded$y = ["width", "height", "size", "name", "fill"];
|
|
3230
3230
|
const CustomIcon = _ref => {
|
|
3231
3231
|
let {
|
|
3232
3232
|
width = 14,
|
|
@@ -3235,7 +3235,7 @@ const CustomIcon = _ref => {
|
|
|
3235
3235
|
name = "",
|
|
3236
3236
|
fill = "none"
|
|
3237
3237
|
} = _ref,
|
|
3238
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3238
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
3239
3239
|
const conf = config$3[name];
|
|
3240
3240
|
if (conf) {
|
|
3241
3241
|
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -9437,7 +9437,7 @@ createCommonjsModule(function (module, exports) {
|
|
|
9437
9437
|
!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])+"]"}}}));
|
|
9438
9438
|
});
|
|
9439
9439
|
|
|
9440
|
-
const _excluded$
|
|
9440
|
+
const _excluded$x = ["view", "module", "scope", "form", "meta", "createdAt", "updatedAt"];
|
|
9441
9441
|
dayjs__default["default"].extend(customParseFormat);
|
|
9442
9442
|
dayjs__default["default"].extend(utc);
|
|
9443
9443
|
dayjs__default["default"].extend(utc);
|
|
@@ -9813,7 +9813,7 @@ const filterCreateData = data => {
|
|
|
9813
9813
|
createdAt,
|
|
9814
9814
|
updatedAt
|
|
9815
9815
|
} = data,
|
|
9816
|
-
rest = _objectWithoutProperties(data, _excluded$
|
|
9816
|
+
rest = _objectWithoutProperties(data, _excluded$x);
|
|
9817
9817
|
const _meta = isObjectEmpty(meta) ? undefined : meta;
|
|
9818
9818
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
9819
9819
|
meta: _meta
|
|
@@ -10193,7 +10193,7 @@ SelectFilters.propTypes = {
|
|
|
10193
10193
|
apiUrl: PropTypes__default["default"].string
|
|
10194
10194
|
};
|
|
10195
10195
|
|
|
10196
|
-
const _excluded$
|
|
10196
|
+
const _excluded$w = ["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"];
|
|
10197
10197
|
function DAFTable(_ref) {
|
|
10198
10198
|
let {
|
|
10199
10199
|
columns = [],
|
|
@@ -10224,7 +10224,7 @@ function DAFTable(_ref) {
|
|
|
10224
10224
|
app,
|
|
10225
10225
|
doEmptyRows
|
|
10226
10226
|
} = _ref,
|
|
10227
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10227
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
10228
10228
|
const [source, setSource] = React.useState([]);
|
|
10229
10229
|
const projectData = (projects || []).find(p => p.id === selectedProject);
|
|
10230
10230
|
const [filtersInit, setFiltersInit] = React.useState(!loading);
|
|
@@ -11067,8 +11067,8 @@ var unitlessKeys = {
|
|
|
11067
11067
|
|
|
11068
11068
|
var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.12",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},React.useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L$1(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,W=G?Symbol.for("react.forward_ref"):60112,q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[W]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:q;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,!1)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=!1,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c$1=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c$1.slice();u.push(function(e){e.type===c&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(de$1),u.push(he$1);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=ue$1(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return pe$1(l,be$1(u.concat(we$1(function(e){return p.push(e)})))),p};return p.hash=c$1.length?c$1.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Me=new ke,ze=Fe(),$e=React__default["default"].createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;React__default["default"].createContext(void 0);function Ge(){return React.useContext($e)}var We=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),qe=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;qe(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(He(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),!1),["}"],!1)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof We||ce(r)||null===r||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(r,t,n,o)}var s;return e instanceof We?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return !1}return !0}var Ke=z(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),et=React__default["default"].createContext(void 0);et.Consumer;var rt={},st=new Set;function it(e,r,s){var i=se(e),a=e,c=!L$1(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);rt[n]=(rt[n]||0)+1;var o="".concat(n,"-").concat($(v+n+rt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L$1(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React__default["default"].useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&React.useDebugValue(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&React.useDebugValue(o),o}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L$1(S)&&!A.has(S)?"class":"className"]=N,w.ref=s,React.createElement(S,w)}(D,e,r)}O.displayName=y;var D=React__default["default"].forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:!0})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ut(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,__assign(__assign({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var St="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[St]||(window[St]=0),1===window[St]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[St]+=1);
|
|
11069
11069
|
|
|
11070
|
-
var _templateObject$
|
|
11071
|
-
const Style$K = dt.div(_templateObject$
|
|
11070
|
+
var _templateObject$c;
|
|
11071
|
+
const Style$K = dt.div(_templateObject$c || (_templateObject$c = _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"])));
|
|
11072
11072
|
|
|
11073
11073
|
/**
|
|
11074
11074
|
* ComponentWithFocus
|
|
@@ -11140,8 +11140,8 @@ function ComponentWithFocus(_ref) {
|
|
|
11140
11140
|
});
|
|
11141
11141
|
}
|
|
11142
11142
|
|
|
11143
|
-
var _templateObject$
|
|
11144
|
-
const _excluded$
|
|
11143
|
+
var _templateObject$b;
|
|
11144
|
+
const _excluded$v = ["size", "maxHeight", "containerHeight", "dataSource", "columns", "pagination", "doEmptyRows"];
|
|
11145
11145
|
function StickyTable(_ref) {
|
|
11146
11146
|
let {
|
|
11147
11147
|
size = "small",
|
|
@@ -11152,7 +11152,7 @@ function StickyTable(_ref) {
|
|
|
11152
11152
|
pagination = false,
|
|
11153
11153
|
doEmptyRows = true
|
|
11154
11154
|
} = _ref,
|
|
11155
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11155
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
11156
11156
|
const data = React__default["default"].useMemo(() => {
|
|
11157
11157
|
if (!doEmptyRows) {
|
|
11158
11158
|
return dataSource;
|
|
@@ -11198,7 +11198,7 @@ function StickyTable(_ref) {
|
|
|
11198
11198
|
})
|
|
11199
11199
|
});
|
|
11200
11200
|
}
|
|
11201
|
-
const Style$J = dt.div(_templateObject$
|
|
11201
|
+
const Style$J = dt.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteral(["\n\tmax-width: calc(100% - 48px);\n\tmargin-left: var(--size-lg);\n\toverflow: hidden;\n\n\t.daf-table {\n\t\tpadding: 0px;\n\t\tmargin-top: 0px;\n\n\t\t.ant-tag {\n\t\t\ttext-align: center;\n\t\t}\n\t}\n\n\t.daf-select-filters .filters {\n\t\tpadding-top: 16px;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t}\n\n\t.daf-table {\n\t\tpadding-top: 16px;\n\t}\n"])));
|
|
11202
11202
|
StickyTable.propTypes = {
|
|
11203
11203
|
size: PropTypes__default["default"].any,
|
|
11204
11204
|
maxHeight: PropTypes__default["default"].number,
|
|
@@ -11648,7 +11648,7 @@ const BTN_SIZE = {
|
|
|
11648
11648
|
LG: 'large'
|
|
11649
11649
|
};
|
|
11650
11650
|
|
|
11651
|
-
const _excluded$
|
|
11651
|
+
const _excluded$u = ["content", "size", "type", "icon", "onClick", "disabled", "loading", "title", "style", "className"];
|
|
11652
11652
|
function DafButton(_ref) {
|
|
11653
11653
|
let {
|
|
11654
11654
|
content = '',
|
|
@@ -11662,7 +11662,7 @@ function DafButton(_ref) {
|
|
|
11662
11662
|
style = {},
|
|
11663
11663
|
className = ''
|
|
11664
11664
|
} = _ref,
|
|
11665
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
11665
|
+
restProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
11666
11666
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Button, _objectSpread2(_objectSpread2({
|
|
11667
11667
|
icon: icon,
|
|
11668
11668
|
type: type,
|
|
@@ -11781,12 +11781,12 @@ const Style$I = dt.div`
|
|
|
11781
11781
|
}
|
|
11782
11782
|
`;
|
|
11783
11783
|
|
|
11784
|
-
const _excluded$
|
|
11784
|
+
const _excluded$t = ["children"];
|
|
11785
11785
|
const BorderedButton = _ref => {
|
|
11786
11786
|
let {
|
|
11787
11787
|
children
|
|
11788
11788
|
} = _ref,
|
|
11789
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11789
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
11790
11790
|
return /*#__PURE__*/jsxRuntime.jsx(Style$I, {
|
|
11791
11791
|
className: "d-btn-cont",
|
|
11792
11792
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -11795,7 +11795,7 @@ const BorderedButton = _ref => {
|
|
|
11795
11795
|
});
|
|
11796
11796
|
};
|
|
11797
11797
|
|
|
11798
|
-
var _templateObject$
|
|
11798
|
+
var _templateObject$a;
|
|
11799
11799
|
const variantConfig = {
|
|
11800
11800
|
default: {
|
|
11801
11801
|
className: "default-badge",
|
|
@@ -11913,7 +11913,7 @@ function Badge(_ref) {
|
|
|
11913
11913
|
})
|
|
11914
11914
|
});
|
|
11915
11915
|
}
|
|
11916
|
-
const Style$H = dt.div(_templateObject$
|
|
11916
|
+
const Style$H = dt.div(_templateObject$a || (_templateObject$a = _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"])));
|
|
11917
11917
|
Badge.propTypes = {
|
|
11918
11918
|
children: PropTypes__default["default"].node,
|
|
11919
11919
|
className: PropTypes__default["default"].string,
|
|
@@ -11926,12 +11926,12 @@ Badge.propTypes = {
|
|
|
11926
11926
|
props: PropTypes__default["default"].object
|
|
11927
11927
|
};
|
|
11928
11928
|
|
|
11929
|
-
const _excluded$
|
|
11929
|
+
const _excluded$s = ["icon"];
|
|
11930
11930
|
function GetIcon(_ref) {
|
|
11931
11931
|
let {
|
|
11932
11932
|
icon
|
|
11933
11933
|
} = _ref,
|
|
11934
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11934
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
11935
11935
|
let Icon = Icons__namespace.CloseOutlined;
|
|
11936
11936
|
if (Icons__namespace[icon]) {
|
|
11937
11937
|
Icon = Icons__namespace[icon];
|
|
@@ -12250,7 +12250,7 @@ GoToSelect.propTypes = {
|
|
|
12250
12250
|
t: PropTypes__default["default"].func
|
|
12251
12251
|
};
|
|
12252
12252
|
|
|
12253
|
-
const _excluded$
|
|
12253
|
+
const _excluded$r = ["options", "defaultSelected", "onChange", "textWhenMultiple", "withCount", "oneAlwaysSelected", "canUnselectLast", "isAvatarGroup", "maxAvatarCount", "dropDownWidth", "topAvatarValue", "isSingle", "selectionType"];
|
|
12254
12254
|
const {
|
|
12255
12255
|
useToken: useToken$n
|
|
12256
12256
|
} = antd.theme;
|
|
@@ -12343,7 +12343,7 @@ function Multiselect(_ref) {
|
|
|
12343
12343
|
isSingle = false,
|
|
12344
12344
|
selectionType = SELECTION_TYPES.DEFAULT
|
|
12345
12345
|
} = _ref,
|
|
12346
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12346
|
+
restProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
12347
12347
|
const {
|
|
12348
12348
|
token
|
|
12349
12349
|
} = useToken$n();
|
|
@@ -13062,7 +13062,7 @@ DAFHeader.propTypes = {
|
|
|
13062
13062
|
filtersConfig: PropTypes__default["default"].any
|
|
13063
13063
|
};
|
|
13064
13064
|
|
|
13065
|
-
const _excluded$
|
|
13065
|
+
const _excluded$q = ["tabs", "onChange", "value", "className"];
|
|
13066
13066
|
function TabsHeader(_ref) {
|
|
13067
13067
|
let {
|
|
13068
13068
|
tabs = [],
|
|
@@ -13070,7 +13070,7 @@ function TabsHeader(_ref) {
|
|
|
13070
13070
|
value = '',
|
|
13071
13071
|
className = 'mt-2'
|
|
13072
13072
|
} = _ref,
|
|
13073
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13073
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
13074
13074
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13075
13075
|
className: formatClassname(['daf-tabs-header pl-6 pr-6', className]),
|
|
13076
13076
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Tabs, _objectSpread2({
|
|
@@ -13167,16 +13167,14 @@ DrawerHeader.propTypes = {
|
|
|
13167
13167
|
tabsConfig: PropTypes__default["default"].any
|
|
13168
13168
|
};
|
|
13169
13169
|
|
|
13170
|
-
const
|
|
13171
|
-
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
|
|
13175
|
-
|
|
13176
|
-
|
|
13177
|
-
|
|
13178
|
-
isViewMode
|
|
13179
|
-
} = _ref;
|
|
13170
|
+
const useFooter = ({
|
|
13171
|
+
leftContent,
|
|
13172
|
+
centerContent,
|
|
13173
|
+
rightContent,
|
|
13174
|
+
actionButtons,
|
|
13175
|
+
app,
|
|
13176
|
+
isViewMode
|
|
13177
|
+
}) => {
|
|
13180
13178
|
const renderFooterContent = React.useMemo(() => {
|
|
13181
13179
|
const FooterContent = () => /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
13182
13180
|
className: "daf-footer-content",
|
|
@@ -13192,18 +13190,18 @@ const useFooter = _ref => {
|
|
|
13192
13190
|
className: "daf-footer-actions",
|
|
13193
13191
|
children: actionButtons.map((button, index) => {
|
|
13194
13192
|
const {
|
|
13195
|
-
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
13206
|
-
return /*#__PURE__*/jsxRuntime.jsx(DafButton,
|
|
13193
|
+
label,
|
|
13194
|
+
onClick,
|
|
13195
|
+
icon,
|
|
13196
|
+
type = BTN_TYPES.PRIMARY,
|
|
13197
|
+
tooltip,
|
|
13198
|
+
disabled = false,
|
|
13199
|
+
loading = false,
|
|
13200
|
+
style = {},
|
|
13201
|
+
className = "",
|
|
13202
|
+
...restProps
|
|
13203
|
+
} = button;
|
|
13204
|
+
return /*#__PURE__*/jsxRuntime.jsx(DafButton, {
|
|
13207
13205
|
content: label,
|
|
13208
13206
|
type: type,
|
|
13209
13207
|
size: BTN_SIZE.MD,
|
|
@@ -13215,8 +13213,9 @@ const useFooter = _ref => {
|
|
|
13215
13213
|
loading: loading,
|
|
13216
13214
|
title: tooltip,
|
|
13217
13215
|
style: style,
|
|
13218
|
-
className: className
|
|
13219
|
-
|
|
13216
|
+
className: className,
|
|
13217
|
+
...restProps
|
|
13218
|
+
}, index);
|
|
13220
13219
|
})
|
|
13221
13220
|
})]
|
|
13222
13221
|
})]
|
|
@@ -13229,8 +13228,180 @@ const useFooter = _ref => {
|
|
|
13229
13228
|
};
|
|
13230
13229
|
};
|
|
13231
13230
|
|
|
13232
|
-
|
|
13233
|
-
|
|
13231
|
+
const FooterContainer = dt.div`
|
|
13232
|
+
.daf-footer {
|
|
13233
|
+
background: #ffffff;
|
|
13234
|
+
border-top: 1px solid #e8e8e8;
|
|
13235
|
+
border-left: none;
|
|
13236
|
+
border-right: none;
|
|
13237
|
+
border-bottom: none;
|
|
13238
|
+
border-radius: 0;
|
|
13239
|
+
padding: 24px;
|
|
13240
|
+
margin: 0;
|
|
13241
|
+
box-shadow: none;
|
|
13242
|
+
z-index: 100;
|
|
13243
|
+
position: relative;
|
|
13244
|
+
min-height: 80px;
|
|
13245
|
+
|
|
13246
|
+
&.daf-footer-fixed {
|
|
13247
|
+
position: fixed;
|
|
13248
|
+
bottom: 0;
|
|
13249
|
+
left: 0;
|
|
13250
|
+
right: 0;
|
|
13251
|
+
z-index: 1000;
|
|
13252
|
+
}
|
|
13253
|
+
|
|
13254
|
+
.daf-footer-content {
|
|
13255
|
+
display: flex;
|
|
13256
|
+
align-items: center;
|
|
13257
|
+
justify-content: space-between;
|
|
13258
|
+
width: 100%;
|
|
13259
|
+
min-height: 32px;
|
|
13260
|
+
|
|
13261
|
+
.daf-footer-left {
|
|
13262
|
+
flex: 1;
|
|
13263
|
+
display: flex;
|
|
13264
|
+
align-items: center;
|
|
13265
|
+
justify-content: flex-start;
|
|
13266
|
+
}
|
|
13267
|
+
|
|
13268
|
+
.daf-footer-center {
|
|
13269
|
+
flex: 1;
|
|
13270
|
+
display: flex;
|
|
13271
|
+
align-items: center;
|
|
13272
|
+
justify-content: center;
|
|
13273
|
+
}
|
|
13274
|
+
|
|
13275
|
+
.daf-footer-right {
|
|
13276
|
+
flex: 1;
|
|
13277
|
+
display: flex;
|
|
13278
|
+
align-items: center;
|
|
13279
|
+
justify-content: flex-end;
|
|
13280
|
+
gap: 12px;
|
|
13281
|
+
|
|
13282
|
+
.daf-footer-actions {
|
|
13283
|
+
.ant-btn {
|
|
13284
|
+
height: 40px;
|
|
13285
|
+
padding: 0 24px;
|
|
13286
|
+
border-radius: 6px;
|
|
13287
|
+
font-weight: 500;
|
|
13288
|
+
font-size: 14px;
|
|
13289
|
+
transition: all 0.3s ease;
|
|
13290
|
+
border: 1px solid transparent;
|
|
13291
|
+
|
|
13292
|
+
&.ant-btn-primary {
|
|
13293
|
+
background-color: var(--color-primary-70);
|
|
13294
|
+
color: #ffffff;
|
|
13295
|
+
border-color: var(--color-primary-70);
|
|
13296
|
+
|
|
13297
|
+
&:hover {
|
|
13298
|
+
background-color: var(--color-primary-60);
|
|
13299
|
+
border-color: var(--color-primary-60);
|
|
13300
|
+
}
|
|
13301
|
+
|
|
13302
|
+
&:active {
|
|
13303
|
+
background-color: var(--color-primary-80);
|
|
13304
|
+
border-color: var(--color-primary-80);
|
|
13305
|
+
}
|
|
13306
|
+
|
|
13307
|
+
&:disabled {
|
|
13308
|
+
background-color: #f5f5f5;
|
|
13309
|
+
color: #bfbfbf;
|
|
13310
|
+
border-color: #d9d9d9;
|
|
13311
|
+
}
|
|
13312
|
+
}
|
|
13313
|
+
|
|
13314
|
+
&.ant-btn-default {
|
|
13315
|
+
background: #ffffff;
|
|
13316
|
+
color: #666666;
|
|
13317
|
+
border-color: #d9d9d9;
|
|
13318
|
+
|
|
13319
|
+
&:hover {
|
|
13320
|
+
border-color: var(--color-primary-70);
|
|
13321
|
+
color: var(--color-primary-70);
|
|
13322
|
+
}
|
|
13323
|
+
|
|
13324
|
+
&:active {
|
|
13325
|
+
border-color: var(--color-primary-80);
|
|
13326
|
+
color: var(--color-primary-80);
|
|
13327
|
+
}
|
|
13328
|
+
|
|
13329
|
+
&:disabled {
|
|
13330
|
+
background-color: #f5f5f5;
|
|
13331
|
+
color: #bfbfbf;
|
|
13332
|
+
border-color: #d9d9d9;
|
|
13333
|
+
}
|
|
13334
|
+
}
|
|
13335
|
+
|
|
13336
|
+
&.ant-btn-ghost {
|
|
13337
|
+
background: transparent;
|
|
13338
|
+
color: #666666;
|
|
13339
|
+
border-color: #d9d9d9;
|
|
13340
|
+
|
|
13341
|
+
&:hover {
|
|
13342
|
+
border-color: var(--color-primary-70);
|
|
13343
|
+
color: var(--color-primary-70);
|
|
13344
|
+
background: rgba(0, 0, 0, 0.02);
|
|
13345
|
+
}
|
|
13346
|
+
|
|
13347
|
+
&:active {
|
|
13348
|
+
border-color: var(--color-primary-80);
|
|
13349
|
+
color: var(--color-primary-80);
|
|
13350
|
+
}
|
|
13351
|
+
|
|
13352
|
+
&:disabled {
|
|
13353
|
+
color: #bfbfbf;
|
|
13354
|
+
border-color: #d9d9d9;
|
|
13355
|
+
}
|
|
13356
|
+
}
|
|
13357
|
+
}
|
|
13358
|
+
}
|
|
13359
|
+
}
|
|
13360
|
+
}
|
|
13361
|
+
}
|
|
13362
|
+
|
|
13363
|
+
/* Responsive design */
|
|
13364
|
+
@media (max-width: 768px) {
|
|
13365
|
+
.daf-footer {
|
|
13366
|
+
margin: 0;
|
|
13367
|
+
padding: 16px;
|
|
13368
|
+
|
|
13369
|
+
.daf-footer-content {
|
|
13370
|
+
flex-direction: column;
|
|
13371
|
+
gap: 16px;
|
|
13372
|
+
align-items: stretch;
|
|
13373
|
+
|
|
13374
|
+
.daf-footer-left,
|
|
13375
|
+
.daf-footer-center,
|
|
13376
|
+
.daf-footer-right {
|
|
13377
|
+
flex: none;
|
|
13378
|
+
justify-content: center;
|
|
13379
|
+
}
|
|
13380
|
+
|
|
13381
|
+
.daf-footer-right {
|
|
13382
|
+
.daf-footer-actions {
|
|
13383
|
+
justify-content: center;
|
|
13384
|
+
}
|
|
13385
|
+
}
|
|
13386
|
+
}
|
|
13387
|
+
}
|
|
13388
|
+
}
|
|
13389
|
+
|
|
13390
|
+
/* App-specific styling */
|
|
13391
|
+
&.sbg-app {
|
|
13392
|
+
.daf-footer {
|
|
13393
|
+
background: #f8f9fa;
|
|
13394
|
+
border-color: #e9ecef;
|
|
13395
|
+
}
|
|
13396
|
+
}
|
|
13397
|
+
|
|
13398
|
+
&.nashiriki-app {
|
|
13399
|
+
.daf-footer {
|
|
13400
|
+
background: #fff;
|
|
13401
|
+
border-color: #d9d9d9;
|
|
13402
|
+
}
|
|
13403
|
+
}
|
|
13404
|
+
`;
|
|
13234
13405
|
|
|
13235
13406
|
function DAFFooter(_ref) {
|
|
13236
13407
|
let {
|
|
@@ -14098,8 +14269,9 @@ const determineHasChildren = ({
|
|
|
14098
14269
|
|
|
14099
14270
|
const sortByPosition = (items, getConfig) => {
|
|
14100
14271
|
return items.sort((a, b) => {
|
|
14101
|
-
|
|
14102
|
-
const
|
|
14272
|
+
var _getConfig, _getConfig2;
|
|
14273
|
+
const positionA = ((_getConfig = getConfig(a)) === null || _getConfig === void 0 ? void 0 : _getConfig.position) || 0;
|
|
14274
|
+
const positionB = ((_getConfig2 = getConfig(b)) === null || _getConfig2 === void 0 ? void 0 : _getConfig2.position) || 0;
|
|
14103
14275
|
return positionA - positionB;
|
|
14104
14276
|
});
|
|
14105
14277
|
};
|
|
@@ -14116,7 +14288,7 @@ const resolveDynamicLabel = (labelConfig, item, defaultLabel) => {
|
|
|
14116
14288
|
const parts = labelKey.split(' is ');
|
|
14117
14289
|
if (parts.length === 2) {
|
|
14118
14290
|
const [conditionKey, conditionValue] = parts;
|
|
14119
|
-
if (item
|
|
14291
|
+
if ((item === null || item === void 0 ? void 0 : item[conditionKey]) === conditionValue) {
|
|
14120
14292
|
return labelConfig[labelKey];
|
|
14121
14293
|
}
|
|
14122
14294
|
}
|
|
@@ -17299,9 +17471,10 @@ function createPolyline({
|
|
|
17299
17471
|
const style = {
|
|
17300
17472
|
color: "var(--base-gray-70)",
|
|
17301
17473
|
weight: width,
|
|
17302
|
-
opacity:
|
|
17474
|
+
opacity: 0.5,
|
|
17303
17475
|
smoothFactor: 1,
|
|
17304
|
-
id
|
|
17476
|
+
id,
|
|
17477
|
+
dashArray: !isSelected ? "5, 5" : "0, 0"
|
|
17305
17478
|
};
|
|
17306
17479
|
const newPolyline = L.polyline(coordinates, style);
|
|
17307
17480
|
if (listOfPolylines.find(p => p.options.id === id)) {
|
|
@@ -17388,9 +17561,10 @@ function buildCurveWIthTwoSiblings({
|
|
|
17388
17561
|
const curve = L__namespace.curve(path, {
|
|
17389
17562
|
color: "var(--base-gray-70)",
|
|
17390
17563
|
weight: isExtraSmallMarker(zoom) ? 0 : 1.2,
|
|
17391
|
-
opacity:
|
|
17564
|
+
opacity: 0.5,
|
|
17392
17565
|
smoothFactor: 1,
|
|
17393
|
-
id
|
|
17566
|
+
id,
|
|
17567
|
+
dashArray: !isSelected ? "5, 5" : "0, 0"
|
|
17394
17568
|
});
|
|
17395
17569
|
mapRef.addLayer(curve);
|
|
17396
17570
|
}
|
|
@@ -17805,20 +17979,9 @@ function StakeholderIcon$1({
|
|
|
17805
17979
|
items: renderTooltip(data),
|
|
17806
17980
|
link,
|
|
17807
17981
|
onClickLink: () => {
|
|
17808
|
-
// const popovers = document.querySelectorAll(".ant-popover");
|
|
17809
|
-
|
|
17810
|
-
// popovers.forEach((popover) => {
|
|
17811
|
-
// if (popover && popover.parentNode) {
|
|
17812
|
-
// popover.parentNode.removeChild(popover);
|
|
17813
|
-
// }
|
|
17814
|
-
// });
|
|
17815
17982
|
onClickLink(data);
|
|
17816
17983
|
}
|
|
17817
|
-
})
|
|
17818
|
-
// trigger="click"
|
|
17819
|
-
// zIndex={1000}
|
|
17820
|
-
// open={isOpen}
|
|
17821
|
-
,
|
|
17984
|
+
}),
|
|
17822
17985
|
getPopupContainer: () => document.getElementById(data.datastakeId),
|
|
17823
17986
|
children: /*#__PURE__*/jsxRuntime.jsx(StakeholderMarker, {
|
|
17824
17987
|
className: `${data.type} ${isSelected ? "selected" : selectedMarkersId.length > 0 ? "unselected" : ""}
|
|
@@ -17926,6 +18089,12 @@ function LocationIcon({
|
|
|
17926
18089
|
}).addTo(mapRef);
|
|
17927
18090
|
const div = document.getElementById(markerId);
|
|
17928
18091
|
root.current = client.createRoot(div);
|
|
18092
|
+
console.log({
|
|
18093
|
+
locationID: data.datastakeId,
|
|
18094
|
+
stakeholder,
|
|
18095
|
+
index,
|
|
18096
|
+
parentId: data.datastakeId
|
|
18097
|
+
});
|
|
17929
18098
|
root.current.render( /*#__PURE__*/jsxRuntime.jsx(StakeholderIcon$1, {
|
|
17930
18099
|
data: stakeholder,
|
|
17931
18100
|
zoom: zoom,
|
|
@@ -18804,6 +18973,9 @@ const useMap$1 = ({
|
|
|
18804
18973
|
setData(null);
|
|
18805
18974
|
}
|
|
18806
18975
|
}
|
|
18976
|
+
if (mapRef) {
|
|
18977
|
+
mapRef.removeLayer(polygonLayer);
|
|
18978
|
+
}
|
|
18807
18979
|
}, [allData]);
|
|
18808
18980
|
React.useEffect(() => {
|
|
18809
18981
|
if (allData) {
|
package/package.json
CHANGED
|
@@ -231,19 +231,9 @@ export default function StakeholderIcon({
|
|
|
231
231
|
items: renderTooltip(data),
|
|
232
232
|
link,
|
|
233
233
|
onClickLink: () => {
|
|
234
|
-
// const popovers = document.querySelectorAll(".ant-popover");
|
|
235
|
-
|
|
236
|
-
// popovers.forEach((popover) => {
|
|
237
|
-
// if (popover && popover.parentNode) {
|
|
238
|
-
// popover.parentNode.removeChild(popover);
|
|
239
|
-
// }
|
|
240
|
-
// });
|
|
241
234
|
onClickLink(data);
|
|
242
235
|
},
|
|
243
236
|
})}
|
|
244
|
-
// trigger="click"
|
|
245
|
-
// zIndex={1000}
|
|
246
|
-
// open={isOpen}
|
|
247
237
|
getPopupContainer={() => document.getElementById(data.datastakeId)}
|
|
248
238
|
>
|
|
249
239
|
<StakeholderMarker
|
|
@@ -267,7 +257,6 @@ export default function StakeholderIcon({
|
|
|
267
257
|
)}
|
|
268
258
|
</StakeholderMarker>
|
|
269
259
|
</Popover>
|
|
270
|
-
{/* <div id="ant-popover-container-custom" style={{ zIndex: 1000, position: "relative" }} /> */}
|
|
271
260
|
</>
|
|
272
261
|
);
|
|
273
262
|
}
|
|
@@ -105,6 +105,13 @@ export default function LocationIcon({
|
|
|
105
105
|
const div = document.getElementById(markerId);
|
|
106
106
|
root.current = createRoot(div);
|
|
107
107
|
|
|
108
|
+
console.log({
|
|
109
|
+
locationID: data.datastakeId,
|
|
110
|
+
stakeholder,
|
|
111
|
+
index,
|
|
112
|
+
parentId: data.datastakeId,
|
|
113
|
+
});
|
|
114
|
+
|
|
108
115
|
root.current.render(
|
|
109
116
|
<StakeholderIcon
|
|
110
117
|
data={stakeholder}
|
|
@@ -137,9 +137,10 @@ export function createPolyline({
|
|
|
137
137
|
const style = {
|
|
138
138
|
color: "var(--base-gray-70)",
|
|
139
139
|
weight: width,
|
|
140
|
-
opacity:
|
|
140
|
+
opacity: 0.5,
|
|
141
141
|
smoothFactor: 1,
|
|
142
142
|
id,
|
|
143
|
+
dashArray: !isSelected ? "5, 5" : "0, 0",
|
|
143
144
|
};
|
|
144
145
|
|
|
145
146
|
const newPolyline = L.polyline(coordinates, style);
|
|
@@ -245,9 +246,10 @@ export function buildCurveWIthTwoSiblings({
|
|
|
245
246
|
const curve = L.curve(path, {
|
|
246
247
|
color: "var(--base-gray-70)",
|
|
247
248
|
weight: isExtraSmallMarker(zoom) ? 0 : 1.2,
|
|
248
|
-
opacity:
|
|
249
|
+
opacity: 0.5,
|
|
249
250
|
smoothFactor: 1,
|
|
250
251
|
id,
|
|
252
|
+
dashArray: !isSelected ? "5, 5" : "0, 0",
|
|
251
253
|
});
|
|
252
254
|
|
|
253
255
|
mapRef.addLayer(curve);
|