@erpsquad/common 1.8.7 → 1.8.9
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/_virtual/ArrowDropDown/index.esm.js +5 -0
- package/dist/_virtual/ArrowDropDown/index.esm.js.map +1 -0
- package/dist/_virtual/ArrowDropDown/index.js +2 -0
- package/dist/_virtual/ArrowDropDown/index.js.map +1 -0
- package/dist/_virtual/ArrowDropUp/index.esm.js +5 -0
- package/dist/_virtual/ArrowDropUp/index.esm.js.map +1 -0
- package/dist/_virtual/ArrowDropUp/index.js +2 -0
- package/dist/_virtual/ArrowDropUp/index.js.map +1 -0
- package/dist/components/Dashboard/dashboard-card/index.esm.js +17 -0
- package/dist/components/Dashboard/dashboard-card/index.esm.js.map +1 -0
- package/dist/components/Dashboard/dashboard-card/index.js +6 -0
- package/dist/components/Dashboard/dashboard-card/index.js.map +1 -0
- package/dist/components/Dashboard/dashboard-header/index.esm.js +68 -0
- package/dist/components/Dashboard/dashboard-header/index.esm.js.map +1 -0
- package/dist/components/Dashboard/dashboard-header/index.js +7 -0
- package/dist/components/Dashboard/dashboard-header/index.js.map +1 -0
- package/dist/components/activityLog/activity-log/index.esm.js +104 -0
- package/dist/components/activityLog/activity-log/index.esm.js.map +1 -0
- package/dist/components/activityLog/activity-log/index.js +14 -0
- package/dist/components/activityLog/activity-log/index.js.map +1 -0
- package/dist/components/charts/ChartLegends/index.esm.js +31 -0
- package/dist/components/charts/ChartLegends/index.esm.js.map +1 -0
- package/dist/components/charts/ChartLegends/index.js +5 -0
- package/dist/components/charts/ChartLegends/index.js.map +1 -0
- package/dist/components/charts/areaLinerChart/index.esm.js +110 -0
- package/dist/components/charts/areaLinerChart/index.esm.js.map +1 -0
- package/dist/components/charts/areaLinerChart/index.js +4 -0
- package/dist/components/charts/areaLinerChart/index.js.map +1 -0
- package/dist/components/charts/bar-chart/bar-chart/index.esm.js +85 -0
- package/dist/components/charts/bar-chart/bar-chart/index.esm.js.map +1 -0
- package/dist/components/charts/bar-chart/bar-chart/index.js +2 -0
- package/dist/components/charts/bar-chart/bar-chart/index.js.map +1 -0
- package/dist/components/charts/barChart/barChart/index.esm.js +147 -0
- package/dist/components/charts/barChart/barChart/index.esm.js.map +1 -0
- package/dist/components/charts/barChart/barChart/index.js +2 -0
- package/dist/components/charts/barChart/barChart/index.js.map +1 -0
- package/dist/components/charts/barLineChart/barLinechart/index.esm.js +193 -0
- package/dist/components/charts/barLineChart/barLinechart/index.esm.js.map +1 -0
- package/dist/components/charts/barLineChart/barLinechart/index.js +11 -0
- package/dist/components/charts/barLineChart/barLinechart/index.js.map +1 -0
- package/dist/components/charts/donut-chart/donut-chart/index.esm.js +85 -0
- package/dist/components/charts/donut-chart/donut-chart/index.esm.js.map +1 -0
- package/dist/components/charts/donut-chart/donut-chart/index.js +6 -0
- package/dist/components/charts/donut-chart/donut-chart/index.js.map +1 -0
- package/dist/components/charts/donutChart/DonutChart/index.esm.js +96 -0
- package/dist/components/charts/donutChart/DonutChart/index.esm.js.map +1 -0
- package/dist/components/charts/donutChart/DonutChart/index.js +5 -0
- package/dist/components/charts/donutChart/DonutChart/index.js.map +1 -0
- package/dist/components/charts/groupBarChart/GroupBarChart/index.esm.js +92 -0
- package/dist/components/charts/groupBarChart/GroupBarChart/index.esm.js.map +1 -0
- package/dist/components/charts/groupBarChart/GroupBarChart/index.js +2 -0
- package/dist/components/charts/groupBarChart/GroupBarChart/index.js.map +1 -0
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js +55 -0
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js.map +1 -0
- package/dist/components/charts/line-chart/area-lineChart/index.js +2 -0
- package/dist/components/charts/line-chart/area-lineChart/index.js.map +1 -0
- package/dist/components/charts/line-chart/line-chart/index.esm.js +108 -0
- package/dist/components/charts/line-chart/line-chart/index.esm.js.map +1 -0
- package/dist/components/charts/line-chart/line-chart/index.js +2 -0
- package/dist/components/charts/line-chart/line-chart/index.js.map +1 -0
- package/dist/components/charts/multiLineChart/multi-line-chart/index.esm.js +100 -0
- package/dist/components/charts/multiLineChart/multi-line-chart/index.esm.js.map +1 -0
- package/dist/components/charts/multiLineChart/multi-line-chart/index.js +2 -0
- package/dist/components/charts/multiLineChart/multi-line-chart/index.js.map +1 -0
- package/dist/components/filter/filter/index.esm.js +1 -1
- package/dist/components/filter/filter/index.js +6 -6
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.esm.js +131 -0
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.esm.js.map +1 -0
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.js +11 -0
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.js.map +1 -0
- package/dist/components/grid/grid-card/grid-card/index.esm.js +102 -0
- package/dist/components/grid/grid-card/grid-card/index.esm.js.map +1 -0
- package/dist/components/grid/grid-card/grid-card/index.js +12 -0
- package/dist/components/grid/grid-card/grid-card/index.js.map +1 -0
- package/dist/components/grid/grid-wrapper/grid-wrapper/index.esm.js +17 -0
- package/dist/components/grid/grid-wrapper/grid-wrapper/index.esm.js.map +1 -0
- package/dist/components/grid/grid-wrapper/grid-wrapper/index.js +5 -0
- package/dist/components/grid/grid-wrapper/grid-wrapper/index.js.map +1 -0
- package/dist/components/index.d.ts +54 -12
- package/dist/components/index.esm.js +479 -431
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/material-table/material-table/index.esm.js +2 -2
- package/dist/components/material-table/material-table/index.js +4 -4
- package/dist/components/mulitline/multiline/index.esm.js +62 -0
- package/dist/components/mulitline/multiline/index.esm.js.map +1 -0
- package/dist/components/mulitline/multiline/index.js +13 -0
- package/dist/components/mulitline/multiline/index.js.map +1 -0
- package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +472 -0
- package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js.map +1 -0
- package/dist/components/reports/dynamic-report/dynamic-report/index.js +8 -0
- package/dist/components/reports/dynamic-report/dynamic-report/index.js.map +1 -0
- package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +201 -0
- package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js.map +1 -0
- package/dist/components/reports/dynamic-report/dynamic-rows/index.js +6 -0
- package/dist/components/reports/dynamic-report/dynamic-rows/index.js.map +1 -0
- package/dist/components/rfq-response/item-response-details/index.esm.js +91 -0
- package/dist/components/rfq-response/item-response-details/index.esm.js.map +1 -0
- package/dist/components/rfq-response/item-response-details/index.js +9 -0
- package/dist/components/rfq-response/item-response-details/index.js.map +1 -0
- package/dist/constants/index.d.ts +4 -1
- package/dist/constants/index.esm.js +2 -0
- package/dist/constants/index.esm.js.map +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/index.esm.js +571 -523
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/node_modules/@mui/icons-material/ArrowDropDown/index.esm.js +18 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropDown/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropDown/index.js +2 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropDown/index.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropUp/index.esm.js +18 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropUp/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropUp/index.js +2 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropUp/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/ascending/index.esm.js +7 -0
- package/dist/node_modules/d3-array/src/ascending/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/ascending/index.js +2 -0
- package/dist/node_modules/d3-array/src/ascending/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisect/index.esm.js +11 -0
- package/dist/node_modules/d3-array/src/bisect/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisect/index.js +2 -0
- package/dist/node_modules/d3-array/src/bisect/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisector/index.esm.js +48 -0
- package/dist/node_modules/d3-array/src/bisector/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisector/index.js +2 -0
- package/dist/node_modules/d3-array/src/bisector/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/descending/index.esm.js +7 -0
- package/dist/node_modules/d3-array/src/descending/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/descending/index.js +2 -0
- package/dist/node_modules/d3-array/src/descending/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/max/index.esm.js +22 -0
- package/dist/node_modules/d3-array/src/max/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/max/index.js +2 -0
- package/dist/node_modules/d3-array/src/max/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/min/index.esm.js +22 -0
- package/dist/node_modules/d3-array/src/min/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/min/index.js +2 -0
- package/dist/node_modules/d3-array/src/min/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/number/index.esm.js +7 -0
- package/dist/node_modules/d3-array/src/number/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/number/index.js +2 -0
- package/dist/node_modules/d3-array/src/number/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/range/index.esm.js +12 -0
- package/dist/node_modules/d3-array/src/range/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/range/index.js +2 -0
- package/dist/node_modules/d3-array/src/range/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/ticks/index.esm.js +52 -0
- package/dist/node_modules/d3-array/src/ticks/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/ticks/index.js +2 -0
- package/dist/node_modules/d3-array/src/ticks/index.js.map +1 -0
- package/dist/node_modules/d3-axis/src/axis/index.esm.js +99 -0
- package/dist/node_modules/d3-axis/src/axis/index.esm.js.map +1 -0
- package/dist/node_modules/d3-axis/src/axis/index.js +2 -0
- package/dist/node_modules/d3-axis/src/axis/index.js.map +1 -0
- package/dist/node_modules/d3-axis/src/identity/index.esm.js +7 -0
- package/dist/node_modules/d3-axis/src/identity/index.esm.js.map +1 -0
- package/dist/node_modules/d3-axis/src/identity/index.js +2 -0
- package/dist/node_modules/d3-axis/src/identity/index.js.map +1 -0
- package/dist/node_modules/d3-color/src/color/index.esm.js +339 -0
- package/dist/node_modules/d3-color/src/color/index.esm.js.map +1 -0
- package/dist/node_modules/d3-color/src/color/index.js +2 -0
- package/dist/node_modules/d3-color/src/color/index.js.map +1 -0
- package/dist/node_modules/d3-color/src/define/index.esm.js +14 -0
- package/dist/node_modules/d3-color/src/define/index.esm.js.map +1 -0
- package/dist/node_modules/d3-color/src/define/index.js +2 -0
- package/dist/node_modules/d3-color/src/define/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/defaultLocale/index.esm.js +21 -0
- package/dist/node_modules/d3-format/src/defaultLocale/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/defaultLocale/index.js +2 -0
- package/dist/node_modules/d3-format/src/defaultLocale/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/exponent/index.esm.js +8 -0
- package/dist/node_modules/d3-format/src/exponent/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/exponent/index.js +2 -0
- package/dist/node_modules/d3-format/src/exponent/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatDecimal/index.esm.js +16 -0
- package/dist/node_modules/d3-format/src/formatDecimal/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatDecimal/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatDecimal/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatGroup/index.esm.js +16 -0
- package/dist/node_modules/d3-format/src/formatGroup/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatGroup/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatGroup/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatNumerals/index.esm.js +11 -0
- package/dist/node_modules/d3-format/src/formatNumerals/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatNumerals/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatNumerals/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto/index.esm.js +13 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatRounded/index.esm.js +11 -0
- package/dist/node_modules/d3-format/src/formatRounded/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatRounded/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatRounded/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatSpecifier/index.esm.js +38 -0
- package/dist/node_modules/d3-format/src/formatSpecifier/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatSpecifier/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatSpecifier/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTrim/index.esm.js +22 -0
- package/dist/node_modules/d3-format/src/formatTrim/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTrim/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatTrim/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTypes/index.esm.js +22 -0
- package/dist/node_modules/d3-format/src/formatTypes/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTypes/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatTypes/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/identity/index.esm.js +7 -0
- package/dist/node_modules/d3-format/src/identity/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/identity/index.js +2 -0
- package/dist/node_modules/d3-format/src/identity/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/locale/index.esm.js +83 -0
- package/dist/node_modules/d3-format/src/locale/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/locale/index.js +2 -0
- package/dist/node_modules/d3-format/src/locale/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionFixed/index.esm.js +8 -0
- package/dist/node_modules/d3-format/src/precisionFixed/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionFixed/index.js +2 -0
- package/dist/node_modules/d3-format/src/precisionFixed/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionPrefix/index.esm.js +8 -0
- package/dist/node_modules/d3-format/src/precisionPrefix/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionPrefix/index.js +2 -0
- package/dist/node_modules/d3-format/src/precisionPrefix/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionRound/index.esm.js +9 -0
- package/dist/node_modules/d3-format/src/precisionRound/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionRound/index.js +2 -0
- package/dist/node_modules/d3-format/src/precisionRound/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/array/index.esm.js +14 -0
- package/dist/node_modules/d3-interpolate/src/array/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/array/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/array/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/color/index.esm.js +25 -0
- package/dist/node_modules/d3-interpolate/src/color/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/color/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/color/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/constant/index.esm.js +5 -0
- package/dist/node_modules/d3-interpolate/src/constant/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/constant/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/constant/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/date/index.esm.js +10 -0
- package/dist/node_modules/d3-interpolate/src/date/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/date/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/date/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/number/index.esm.js +9 -0
- package/dist/node_modules/d3-interpolate/src/number/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/number/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/number/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/numberArray/index.esm.js +16 -0
- package/dist/node_modules/d3-interpolate/src/numberArray/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/numberArray/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/numberArray/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/object/index.esm.js +21 -0
- package/dist/node_modules/d3-interpolate/src/object/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/object/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/object/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/rgb/index.esm.js +21 -0
- package/dist/node_modules/d3-interpolate/src/rgb/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/rgb/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/rgb/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/round/index.esm.js +9 -0
- package/dist/node_modules/d3-interpolate/src/round/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/round/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/round/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/string/index.esm.js +44 -0
- package/dist/node_modules/d3-interpolate/src/string/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/string/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/string/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/value/index.esm.js +17 -0
- package/dist/node_modules/d3-interpolate/src/value/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/value/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/value/index.js.map +1 -0
- package/dist/node_modules/d3-path/src/path/index.esm.js +89 -0
- package/dist/node_modules/d3-path/src/path/index.esm.js.map +1 -0
- package/dist/node_modules/d3-path/src/path/index.js +2 -0
- package/dist/node_modules/d3-path/src/path/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/band/index.esm.js +71 -0
- package/dist/node_modules/d3-scale/src/band/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/band/index.js +2 -0
- package/dist/node_modules/d3-scale/src/band/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/constant/index.esm.js +9 -0
- package/dist/node_modules/d3-scale/src/constant/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/constant/index.js +2 -0
- package/dist/node_modules/d3-scale/src/constant/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/continuous/index.esm.js +96 -0
- package/dist/node_modules/d3-scale/src/continuous/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/continuous/index.js +2 -0
- package/dist/node_modules/d3-scale/src/continuous/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/init/index.esm.js +17 -0
- package/dist/node_modules/d3-scale/src/init/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/init/index.js +2 -0
- package/dist/node_modules/d3-scale/src/init/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/linear/index.esm.js +62 -0
- package/dist/node_modules/d3-scale/src/linear/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/linear/index.js +2 -0
- package/dist/node_modules/d3-scale/src/linear/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/number/index.esm.js +7 -0
- package/dist/node_modules/d3-scale/src/number/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/number/index.js +2 -0
- package/dist/node_modules/d3-scale/src/number/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/ordinal/index.esm.js +39 -0
- package/dist/node_modules/d3-scale/src/ordinal/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/ordinal/index.js +2 -0
- package/dist/node_modules/d3-scale/src/ordinal/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/tickFormat/index.esm.js +35 -0
- package/dist/node_modules/d3-scale/src/tickFormat/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/tickFormat/index.js +2 -0
- package/dist/node_modules/d3-scale/src/tickFormat/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/array/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/array/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/array/index.js +2 -0
- package/dist/node_modules/d3-selection/src/array/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/constant/index.esm.js +9 -0
- package/dist/node_modules/d3-selection/src/constant/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/constant/index.js +2 -0
- package/dist/node_modules/d3-selection/src/constant/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/creator/index.esm.js +21 -0
- package/dist/node_modules/d3-selection/src/creator/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/creator/index.js +2 -0
- package/dist/node_modules/d3-selection/src/creator/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/matcher/index.esm.js +15 -0
- package/dist/node_modules/d3-selection/src/matcher/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/matcher/index.js +2 -0
- package/dist/node_modules/d3-selection/src/matcher/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/namespace/index.esm.js +10 -0
- package/dist/node_modules/d3-selection/src/namespace/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/namespace/index.js +2 -0
- package/dist/node_modules/d3-selection/src/namespace/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/namespaces/index.esm.js +13 -0
- package/dist/node_modules/d3-selection/src/namespaces/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/namespaces/index.js +2 -0
- package/dist/node_modules/d3-selection/src/namespaces/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/pointer/index.esm.js +23 -0
- package/dist/node_modules/d3-selection/src/pointer/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/pointer/index.js +2 -0
- package/dist/node_modules/d3-selection/src/pointer/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/select/index.esm.js +8 -0
- package/dist/node_modules/d3-selection/src/select/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/select/index.js +2 -0
- package/dist/node_modules/d3-selection/src/select/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/append/index.esm.js +11 -0
- package/dist/node_modules/d3-selection/src/selection/append/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/append/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/append/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/attr/index.esm.js +47 -0
- package/dist/node_modules/d3-selection/src/selection/attr/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/attr/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/attr/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/call/index.esm.js +10 -0
- package/dist/node_modules/d3-selection/src/selection/call/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/call/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/call/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/classed/index.esm.js +65 -0
- package/dist/node_modules/d3-selection/src/selection/classed/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/classed/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/classed/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/clone/index.esm.js +15 -0
- package/dist/node_modules/d3-selection/src/selection/clone/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/clone/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/clone/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/data/index.esm.js +77 -0
- package/dist/node_modules/d3-selection/src/selection/data/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/data/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/data/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/datum/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/datum/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/datum/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/datum/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch/index.esm.js +29 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/each/index.esm.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/each/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/each/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/each/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/empty/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/empty/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/empty/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/empty/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/enter/index.esm.js +32 -0
- package/dist/node_modules/d3-selection/src/selection/enter/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/enter/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/enter/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/exit/index.esm.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/exit/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/exit/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/exit/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/filter/index.esm.js +17 -0
- package/dist/node_modules/d3-selection/src/selection/filter/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/filter/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/filter/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/html/index.esm.js +21 -0
- package/dist/node_modules/d3-selection/src/selection/html/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/html/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/html/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/index/index.esm.js +85 -0
- package/dist/node_modules/d3-selection/src/selection/index/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/index/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/index/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/insert/index.esm.js +15 -0
- package/dist/node_modules/d3-selection/src/selection/insert/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/insert/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/insert/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/iterator/index.esm.js +11 -0
- package/dist/node_modules/d3-selection/src/selection/iterator/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/iterator/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/iterator/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/join/index.esm.js +20 -0
- package/dist/node_modules/d3-selection/src/selection/join/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/join/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/join/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/lower/index.esm.js +10 -0
- package/dist/node_modules/d3-selection/src/selection/lower/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/lower/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/lower/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/merge/index.esm.js +19 -0
- package/dist/node_modules/d3-selection/src/selection/merge/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/merge/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/merge/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/node/index.esm.js +13 -0
- package/dist/node_modules/d3-selection/src/selection/node/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/node/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/node/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/nodes/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/nodes/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/nodes/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/nodes/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/on/index.esm.js +65 -0
- package/dist/node_modules/d3-selection/src/selection/on/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/on/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/on/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/order/index.esm.js +15 -0
- package/dist/node_modules/d3-selection/src/selection/order/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/order/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/order/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/property/index.esm.js +24 -0
- package/dist/node_modules/d3-selection/src/selection/property/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/property/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/property/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/raise/index.esm.js +10 -0
- package/dist/node_modules/d3-selection/src/selection/raise/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/raise/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/raise/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/remove/index.esm.js +11 -0
- package/dist/node_modules/d3-selection/src/selection/remove/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/remove/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/remove/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/select/index.esm.js +18 -0
- package/dist/node_modules/d3-selection/src/selection/select/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/select/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/select/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll/index.esm.js +25 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild/index.esm.js +17 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren/index.esm.js +17 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/size/index.esm.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/size/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/size/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/size/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/sort/index.esm.js +23 -0
- package/dist/node_modules/d3-selection/src/selection/sort/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/sort/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/sort/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/sparse/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/sparse/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/sparse/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/sparse/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/style/index.esm.js +29 -0
- package/dist/node_modules/d3-selection/src/selection/style/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/style/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/style/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/text/index.esm.js +21 -0
- package/dist/node_modules/d3-selection/src/selection/text/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/text/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/text/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selector/index.esm.js +11 -0
- package/dist/node_modules/d3-selection/src/selector/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selector/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selector/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selectorAll/index.esm.js +12 -0
- package/dist/node_modules/d3-selection/src/selectorAll/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selectorAll/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selectorAll/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/sourceEvent/index.esm.js +9 -0
- package/dist/node_modules/d3-selection/src/sourceEvent/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/sourceEvent/index.js +2 -0
- package/dist/node_modules/d3-selection/src/sourceEvent/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/window/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/window/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/window/index.js +2 -0
- package/dist/node_modules/d3-selection/src/window/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/arc/index.esm.js +134 -0
- package/dist/node_modules/d3-shape/src/arc/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/arc/index.js +2 -0
- package/dist/node_modules/d3-shape/src/arc/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/area/index.esm.js +82 -0
- package/dist/node_modules/d3-shape/src/area/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/area/index.js +2 -0
- package/dist/node_modules/d3-shape/src/area/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/array/index.esm.js +7 -0
- package/dist/node_modules/d3-shape/src/array/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/array/index.js +2 -0
- package/dist/node_modules/d3-shape/src/array/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/constant/index.esm.js +9 -0
- package/dist/node_modules/d3-shape/src/constant/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/constant/index.js +2 -0
- package/dist/node_modules/d3-shape/src/constant/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/linear/index.esm.js +39 -0
- package/dist/node_modules/d3-shape/src/curve/linear/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/linear/index.js +2 -0
- package/dist/node_modules/d3-shape/src/curve/linear/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/monotone/index.esm.js +76 -0
- package/dist/node_modules/d3-shape/src/curve/monotone/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/monotone/index.js +2 -0
- package/dist/node_modules/d3-shape/src/curve/monotone/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/descending/index.esm.js +7 -0
- package/dist/node_modules/d3-shape/src/descending/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/descending/index.js +2 -0
- package/dist/node_modules/d3-shape/src/descending/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/identity/index.esm.js +7 -0
- package/dist/node_modules/d3-shape/src/identity/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/identity/index.js +2 -0
- package/dist/node_modules/d3-shape/src/identity/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/line/index.esm.js +42 -0
- package/dist/node_modules/d3-shape/src/line/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/line/index.js +2 -0
- package/dist/node_modules/d3-shape/src/line/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/math/index.esm.js +33 -0
- package/dist/node_modules/d3-shape/src/math/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/math/index.js +2 -0
- package/dist/node_modules/d3-shape/src/math/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/path/index.esm.js +20 -0
- package/dist/node_modules/d3-shape/src/path/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/path/index.js +2 -0
- package/dist/node_modules/d3-shape/src/path/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/pie/index.esm.js +56 -0
- package/dist/node_modules/d3-shape/src/pie/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/pie/index.js +2 -0
- package/dist/node_modules/d3-shape/src/pie/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/point/index.esm.js +11 -0
- package/dist/node_modules/d3-shape/src/point/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/point/index.js +2 -0
- package/dist/node_modules/d3-shape/src/point/index.js.map +1 -0
- package/dist/node_modules/internmap/src/index/index.esm.js +44 -0
- package/dist/node_modules/internmap/src/index/index.esm.js.map +1 -0
- package/dist/node_modules/internmap/src/index/index.js +2 -0
- package/dist/node_modules/internmap/src/index/index.js.map +1 -0
- package/dist/style.css +2 -2
- package/dist/views/template-editor/components/EditorHeader/index.esm.js +1 -1
- package/dist/views/template-editor/components/EditorHeader/index.js +3 -3
- package/dist/views/template-editor/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { Typography } from "../../typography/typography/index.esm.js";
|
|
4
|
+
import { images } from "../../../images/index.esm.js";
|
|
5
|
+
import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
|
|
6
|
+
function DashBoardCard(props) {
|
|
7
|
+
const { title, value } = props;
|
|
8
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Box, { className: "card-class", children: /* @__PURE__ */ jsxs(Box, { p: 2, sx: { display: "flex", flexDirection: "column", border: "1px solid", borderRadius: "8px", gap: 1, borderColor: "#EEEFF1" }, children: [
|
|
9
|
+
/* @__PURE__ */ jsx(Box, { className: "dashboard-card-icon", children: /* @__PURE__ */ jsx("img", { src: images.ArrowCircleUpIcon }) }),
|
|
10
|
+
/* @__PURE__ */ jsx(Typography, { type: "s5", weight: "normal", color: "theme.neutral.800", children: title }),
|
|
11
|
+
/* @__PURE__ */ jsx(Typography, { type: "h2", weight: "bold", color: "theme.neutral.1000", children: value })
|
|
12
|
+
] }) }) });
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
DashBoardCard as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/components/Dashboard/dashboard-card.tsx"],"sourcesContent":["import { Box } from \"@mui/material\"\nimport './dashboard.scss'\nimport Typography from \"../typography/typography\"\nimport logo from '../../assets/images'\ninterface Iprops {\n title?: string,\n value?: string | number\n}\nfunction DashBoardCard(props: Iprops) {\n const { title, value } = props\n return (\n <>\n <Box className='card-class'>\n <Box p={2} sx={{ display: 'flex', flexDirection: 'column', border: '1px solid', borderRadius: '8px', gap: 1, borderColor: '#EEEFF1' }}>\n <Box className='dashboard-card-icon'>\n <img src={logo.ArrowCircleUpIcon} />\n\n </Box>\n <Typography type=\"s5\" weight=\"normal\" color=\"theme.neutral.800\">{title}</Typography>\n <Typography type=\"h2\" weight=\"bold\" color=\"theme.neutral.1000\">{value}</Typography>\n </Box>\n </Box>\n </>\n )\n}\n\n\nexport default DashBoardCard"],"names":["logo"],"mappings":";;;;;AAQA,SAAS,cAAc,OAAe;AAClC,QAAM,EAAE,OAAO,MAAA,IAAU;AACzB,SACI,oBAAA,UAAA,EACI,8BAAC,KAAA,EAAI,WAAU,cACX,UAAA,qBAAC,KAAA,EAAI,GAAG,GAAG,IAAI,EAAE,SAAS,QAAQ,eAAe,UAAU,QAAQ,aAAa,cAAc,OAAO,KAAK,GAAG,aAAa,UAAA,GACtH,UAAA;AAAA,IAAA,oBAAC,KAAA,EAAI,WAAU,uBACX,UAAA,oBAAC,SAAI,KAAKA,OAAK,mBAAmB,EAAA,CAEtC;AAAA,IACA,oBAAC,cAAW,MAAK,MAAK,QAAO,UAAS,OAAM,qBAAqB,UAAA,MAAA,CAAM;AAAA,IACvE,oBAAC,cAAW,MAAK,MAAK,QAAO,QAAO,OAAM,sBAAsB,UAAA,MAAA,CAAM;AAAA,EAAA,EAAA,CAC1E,GACJ,GACJ;AAER;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");;/* empty css */var r=,/* empty css */s=,/* empty css */a=;/* empty css */exports.default=function(i){const{title:o,value:l}=i;/* @__PURE__ */
|
|
2
|
+
return e.jsx(e.Fragment,{children:/* @__PURE__ */e.jsx(a.default,{className:"card-class",children:/* @__PURE__ */e.jsxs(a.default,{p:2,sx:{display:"flex",flexDirection:"column",border:"1px solid",borderRadius:"8px",gap:1,borderColor:"#EEEFF1"},children:[
|
|
3
|
+
/* @__PURE__ */e.jsx(a.default,{className:"dashboard-card-icon",children:/* @__PURE__ */e.jsx("img",{src:s.images.ArrowCircleUpIcon})}),
|
|
4
|
+
/* @__PURE__ */e.jsx(r.Typography,{type:"s5",weight:"normal",color:"theme.neutral.800",children:o}),
|
|
5
|
+
/* @__PURE__ */e.jsx(r.Typography,{type:"h2",weight:"bold",color:"theme.neutral.1000",children:l})]})})})};
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Dashboard/dashboard-card.tsx"],"sourcesContent":["import { Box } from \"@mui/material\"\nimport './dashboard.scss'\nimport Typography from \"../typography/typography\"\nimport logo from '../../assets/images'\ninterface Iprops {\n title?: string,\n value?: string | number\n}\nfunction DashBoardCard(props: Iprops) {\n const { title, value } = props\n return (\n <>\n <Box className='card-class'>\n <Box p={2} sx={{ display: 'flex', flexDirection: 'column', border: '1px solid', borderRadius: '8px', gap: 1, borderColor: '#EEEFF1' }}>\n <Box className='dashboard-card-icon'>\n <img src={logo.ArrowCircleUpIcon} />\n\n </Box>\n <Typography type=\"s5\" weight=\"normal\" color=\"theme.neutral.800\">{title}</Typography>\n <Typography type=\"h2\" weight=\"bold\" color=\"theme.neutral.1000\">{value}</Typography>\n </Box>\n </Box>\n </>\n )\n}\n\n\nexport default DashBoardCard"],"names":["props","title","value","jsx","Fragment","children","Box","className","jsxs","p","sx","display","flexDirection","border","borderRadius","gap","borderColor","src","logo","ArrowCircleUpIcon","Typography","type","weight","color"],"mappings":"2TAQA,SAAuBA,GACnB,MAAMC,MAAEA,EAAAC,MAAOA,GAAUF;AACzB,SACIG,IAAAC,EAAAA,SAAA,CACIC,8BAACC,EAAAA,QAAA,CAAIC,UAAU,aACXF,wBAAAG,EAAAA,KAACF,EAAAA,QAAA,CAAIG,EAAG,EAAGC,GAAI,CAAEC,QAAS,OAAQC,cAAe,SAAUC,OAAQ,YAAaC,aAAc,MAAOC,IAAK,EAAGC,YAAa,WACtHX,SAAA;iBAAAF,IAACG,EAAAA,QAAA,CAAIC,UAAU,sBACXF,wBAAAF,EAAAA,IAAC,OAAIc,IAAKC,EAAAA,OAAKC;eAGnBhB,EAAAA,IAACiB,EAAAA,YAAWC,KAAK,KAAKC,OAAO,SAASC,MAAM,oBAAqBlB,SAAAJ;eACjEE,EAAAA,IAACiB,EAAAA,YAAWC,KAAK,KAAKC,OAAO,OAAOC,MAAM,qBAAsBlB,SAAAH,UAKpF"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Typography } from "../../typography/typography/index.esm.js";
|
|
3
|
+
import Chip from "../../chip/chip/index.esm.js";
|
|
4
|
+
import { images } from "../../../images/index.esm.js";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import Menu from "../../menu/menu/index.esm.js";
|
|
7
|
+
import { useTranslation } from "react-i18next";
|
|
8
|
+
import IconButton from "../../../node_modules/@mui/material/IconButton/IconButton/index.esm.js";
|
|
9
|
+
import MenuItem from "../../../node_modules/@mui/material/MenuItem/MenuItem/index.esm.js";
|
|
10
|
+
const DashBoardHeader = ({ title, customElement, showEdit = true, showDropDowan = true }) => {
|
|
11
|
+
const { t } = useTranslation();
|
|
12
|
+
const [isEditingMode, setIsEditingMode] = useState(false);
|
|
13
|
+
const [anchorMoreEl, setAnchorMoreEl] = useState(null);
|
|
14
|
+
const handleMoreIconClick = (event) => {
|
|
15
|
+
setAnchorMoreEl(event.currentTarget);
|
|
16
|
+
};
|
|
17
|
+
const handleMoreIconClose = () => {
|
|
18
|
+
setAnchorMoreEl(null);
|
|
19
|
+
};
|
|
20
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { className: "header-title", children: [
|
|
21
|
+
/* @__PURE__ */ jsx(Typography, { type: "h3", weight: "medium", color: "theme.secondary.1000", children: title }),
|
|
22
|
+
/* @__PURE__ */ jsxs("div", { className: "header-right-wrap", children: [
|
|
23
|
+
customElement,
|
|
24
|
+
showEdit && /* @__PURE__ */ jsx(
|
|
25
|
+
Chip,
|
|
26
|
+
{
|
|
27
|
+
type: "normal",
|
|
28
|
+
label: isEditingMode ? t("manufacturing.dashboard.editing_dashboard_mode_label") : t("manufacturing.dashboard.edit_layout_mode_label"),
|
|
29
|
+
className: `${isEditingMode ? "edit-box" : "edit-box edit-box--InActive"}`,
|
|
30
|
+
icon: /* @__PURE__ */ jsx(
|
|
31
|
+
"img",
|
|
32
|
+
{
|
|
33
|
+
src: isEditingMode ? images.common.editIcon : images.edit,
|
|
34
|
+
alt: t("common.edit")
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
onClick: () => setIsEditingMode(true),
|
|
38
|
+
active: isEditingMode
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
showDropDowan && /* @__PURE__ */ jsxs("div", { children: [
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
IconButton,
|
|
44
|
+
{
|
|
45
|
+
color: "inherit",
|
|
46
|
+
size: "small",
|
|
47
|
+
onClick: handleMoreIconClick,
|
|
48
|
+
children: /* @__PURE__ */ jsx("img", { src: images.more, alt: t("manufacturing.dashboard.more_icon_label") })
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ jsx(
|
|
52
|
+
Menu,
|
|
53
|
+
{
|
|
54
|
+
anchorEl: anchorMoreEl,
|
|
55
|
+
open: Boolean(anchorMoreEl),
|
|
56
|
+
onClose: handleMoreIconClose,
|
|
57
|
+
className: "dropdown-inner calender-drp",
|
|
58
|
+
children: /* @__PURE__ */ jsx(MenuItem, { onClick: handleMoreIconClose, children: t("common.export") })
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
] })
|
|
62
|
+
] })
|
|
63
|
+
] }) });
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
DashBoardHeader as default
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/components/Dashboard/dashboard-header.tsx"],"sourcesContent":["\nimport Typography from \"../typography/typography\";\nimport Chip from \"../chip/chip\";\nimport images from '../../assets/images';\nimport { useState } from \"react\";\nimport { IconButton, MenuItem } from '@mui/material';\nimport Menu from '../menu/menu';\nimport { useTranslation } from 'react-i18next';\nconst DashBoardHeader = ({ title, customElement, showEdit = true, showDropDowan = true }) => {\n const { t } = useTranslation();\n //Local State\n const [isEditingMode, setIsEditingMode] = useState<boolean>(false);\n const [anchorMoreEl, setAnchorMoreEl] = useState<\n null | (EventTarget & HTMLButtonElement)\n >(null);\n\n\n\n\n const handleMoreIconClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorMoreEl(event.currentTarget);\n };\n\n const handleMoreIconClose = () => {\n setAnchorMoreEl(null);\n };\n\n // const handleConfirm = () => {\n // setIsDiscardModalOpen(false);\n // setIsEditingMode(false);\n // };\n\n // const handleSaveChange = (event: SelectChangeEvent<unknown>) => {\n // setIsEditingMode(false);\n // };\n return (\n <div>\n <div className='header-title'>\n <Typography type='h3' weight={'medium'} color={'theme.secondary.1000'}>\n {title}\n </Typography>\n <div className='header-right-wrap'>\n\n {customElement}\n {showEdit && <Chip\n type='normal'\n label={isEditingMode ? t('manufacturing.dashboard.editing_dashboard_mode_label') : t('manufacturing.dashboard.edit_layout_mode_label')}\n className={`${isEditingMode ? 'edit-box' : 'edit-box edit-box--InActive'\n }`}\n icon={\n <img\n src={isEditingMode ? images.common.editIcon : images.edit}\n alt={t('common.edit')}\n />\n }\n onClick={() => setIsEditingMode(true)}\n active={isEditingMode}\n />\n }\n {\n showDropDowan && <div>\n <IconButton\n color='inherit'\n size='small'\n onClick={handleMoreIconClick}>\n <img src={images.more} alt={t('manufacturing.dashboard.more_icon_label')} />\n </IconButton>\n <Menu\n anchorEl={anchorMoreEl}\n open={Boolean(anchorMoreEl)}\n onClose={handleMoreIconClose}\n className='dropdown-inner calender-drp'>\n <MenuItem onClick={handleMoreIconClose}>{t('common.export')}</MenuItem>\n </Menu>\n </div>\n }\n </div>\n </div>\n </div>\n );\n};\n\nexport default DashBoardHeader;\n"],"names":[],"mappings":";;;;;;;;;AAQA,MAAM,kBAAkB,CAAC,EAAE,OAAO,eAAe,WAAW,MAAM,gBAAgB,WAAW;AACzF,QAAM,EAAE,EAAA,IAAM,eAAA;AAEd,QAAM,CAAC,eAAe,gBAAgB,IAAI,SAAkB,KAAK;AACjE,QAAM,CAAC,cAAc,eAAe,IAAI,SAEtC,IAAI;AAKN,QAAM,sBAAsB,CAAC,UAA+C;AACxE,oBAAgB,MAAM,aAAa;AAAA,EACvC;AAEA,QAAM,sBAAsB,MAAM;AAC9B,oBAAgB,IAAI;AAAA,EACxB;AAUA,SACI,oBAAC,OAAA,EACG,UAAA,qBAAC,OAAA,EAAI,WAAU,gBACX,UAAA;AAAA,IAAA,oBAAC,cAAW,MAAK,MAAK,QAAQ,UAAU,OAAO,wBAC1C,UAAA,MAAA,CACL;AAAA,IACA,qBAAC,OAAA,EAAI,WAAU,qBAEV,UAAA;AAAA,MAAA;AAAA,MACA,YAAY;AAAA,QAAC;AAAA,QAAA;AAAA,UACV,MAAK;AAAA,UACL,OAAO,gBAAgB,EAAE,sDAAsD,IAAI,EAAE,gDAAgD;AAAA,UACrI,WAAW,GAAG,gBAAgB,aAAa,6BACvC;AAAA,UACJ,MACI;AAAA,YAAC;AAAA,YAAA;AAAA,cACG,KAAK,gBAAgB,OAAO,OAAO,WAAW,OAAO;AAAA,cACrD,KAAK,EAAE,aAAa;AAAA,YAAA;AAAA,UAAA;AAAA,UAG5B,SAAS,MAAM,iBAAiB,IAAI;AAAA,UACpC,QAAQ;AAAA,QAAA;AAAA,MAAA;AAAA,MAIR,sCAAkB,OAAA,EACd,UAAA;AAAA,QAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,OAAM;AAAA,YACN,MAAK;AAAA,YACL,SAAS;AAAA,YACT,UAAA,oBAAC,SAAI,KAAK,OAAO,MAAM,KAAK,EAAE,yCAAyC,EAAA,CAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAE9E;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,UAAU;AAAA,YACV,MAAM,QAAQ,YAAY;AAAA,YAC1B,SAAS;AAAA,YACT,WAAU;AAAA,YACV,8BAAC,UAAA,EAAS,SAAS,qBAAsB,UAAA,EAAE,eAAe,EAAA,CAAE;AAAA,UAAA;AAAA,QAAA;AAAA,MAChE,EAAA,CACJ;AAAA,IAAA,EAAA,CAER;AAAA,EAAA,EAAA,CACJ,EAAA,CACJ;AAER;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../../typography/typography/index.js"),i=require("../../chip/chip/index.js"),a=require("../../../images/index.js"),t=require("react"),n=require("../../menu/menu/index.js"),o=require("react-i18next"),s=require("../../../node_modules/@mui/material/IconButton/IconButton/index.js"),d=require("../../../node_modules/@mui/material/MenuItem/MenuItem/index.js");exports.default=({title:l,customElement:c,showEdit:u=!0,showDropDowan:m=!0})=>{const{t:h}=o.useTranslation(),[x,j]=t.useState(!1),[p,g]=t.useState(null),b=()=>{g(null)};/* @__PURE__ */
|
|
2
|
+
return e.jsx("div",{children:/* @__PURE__ */e.jsxs("div",{className:"header-title",children:[
|
|
3
|
+
/* @__PURE__ */e.jsx(r.Typography,{type:"h3",weight:"medium",color:"theme.secondary.1000",children:l}),
|
|
4
|
+
/* @__PURE__ */e.jsxs("div",{className:"header-right-wrap",children:[c,u&&/* @__PURE__ */e.jsx(i.default,{type:"normal",label:h(x?"manufacturing.dashboard.editing_dashboard_mode_label":"manufacturing.dashboard.edit_layout_mode_label"),className:x?"edit-box":"edit-box edit-box--InActive",icon:/* @__PURE__ */e.jsx("img",{src:x?a.images.common.editIcon:a.images.edit,alt:h("common.edit")}),onClick:()=>j(!0),active:x}),m&&/* @__PURE__ */e.jsxs("div",{children:[
|
|
5
|
+
/* @__PURE__ */e.jsx(s.default,{color:"inherit",size:"small",onClick:e=>{g(e.currentTarget)},children:/* @__PURE__ */e.jsx("img",{src:a.images.more,alt:h("manufacturing.dashboard.more_icon_label")})}),
|
|
6
|
+
/* @__PURE__ */e.jsx(n.default,{anchorEl:p,open:Boolean(p),onClose:b,className:"dropdown-inner calender-drp",children:/* @__PURE__ */e.jsx(d.default,{onClick:b,children:h("common.export")})})]})]})]})})};
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Dashboard/dashboard-header.tsx"],"sourcesContent":["\nimport Typography from \"../typography/typography\";\nimport Chip from \"../chip/chip\";\nimport images from '../../assets/images';\nimport { useState } from \"react\";\nimport { IconButton, MenuItem } from '@mui/material';\nimport Menu from '../menu/menu';\nimport { useTranslation } from 'react-i18next';\nconst DashBoardHeader = ({ title, customElement, showEdit = true, showDropDowan = true }) => {\n const { t } = useTranslation();\n //Local State\n const [isEditingMode, setIsEditingMode] = useState<boolean>(false);\n const [anchorMoreEl, setAnchorMoreEl] = useState<\n null | (EventTarget & HTMLButtonElement)\n >(null);\n\n\n\n\n const handleMoreIconClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorMoreEl(event.currentTarget);\n };\n\n const handleMoreIconClose = () => {\n setAnchorMoreEl(null);\n };\n\n // const handleConfirm = () => {\n // setIsDiscardModalOpen(false);\n // setIsEditingMode(false);\n // };\n\n // const handleSaveChange = (event: SelectChangeEvent<unknown>) => {\n // setIsEditingMode(false);\n // };\n return (\n <div>\n <div className='header-title'>\n <Typography type='h3' weight={'medium'} color={'theme.secondary.1000'}>\n {title}\n </Typography>\n <div className='header-right-wrap'>\n\n {customElement}\n {showEdit && <Chip\n type='normal'\n label={isEditingMode ? t('manufacturing.dashboard.editing_dashboard_mode_label') : t('manufacturing.dashboard.edit_layout_mode_label')}\n className={`${isEditingMode ? 'edit-box' : 'edit-box edit-box--InActive'\n }`}\n icon={\n <img\n src={isEditingMode ? images.common.editIcon : images.edit}\n alt={t('common.edit')}\n />\n }\n onClick={() => setIsEditingMode(true)}\n active={isEditingMode}\n />\n }\n {\n showDropDowan && <div>\n <IconButton\n color='inherit'\n size='small'\n onClick={handleMoreIconClick}>\n <img src={images.more} alt={t('manufacturing.dashboard.more_icon_label')} />\n </IconButton>\n <Menu\n anchorEl={anchorMoreEl}\n open={Boolean(anchorMoreEl)}\n onClose={handleMoreIconClose}\n className='dropdown-inner calender-drp'>\n <MenuItem onClick={handleMoreIconClose}>{t('common.export')}</MenuItem>\n </Menu>\n </div>\n }\n </div>\n </div>\n </div>\n );\n};\n\nexport default DashBoardHeader;\n"],"names":["title","customElement","showEdit","showDropDowan","t","useTranslation","isEditingMode","setIsEditingMode","useState","anchorMoreEl","setAnchorMoreEl","handleMoreIconClose","jsx","children","jsxs","className","Typography","type","weight","color","Chip","label","icon","src","images","common","editIcon","edit","alt","onClick","active","IconButton","size","event","currentTarget","more","Menu","anchorEl","open","Boolean","onClose","MenuItem"],"mappings":"qeAQwB,EAAGA,QAAOC,gBAAeC,YAAW,EAAMC,iBAAgB,MAC9E,MAAMC,EAAEA,GAAMC,oBAEPC,EAAeC,GAAoBC,EAAAA,UAAkB,IACrDC,EAAcC,GAAmBF,EAAAA,SAEtC,MASIG,EAAsB,KACxBD,EAAgB;AAWpB,OACIE,EAAAA,IAAC,MAAA,CACGC,wBAAAC,EAAAA,KAAC,MAAA,CAAIC,UAAU,eACXF,SAAA;eAAAD,EAAAA,IAACI,EAAAA,YAAWC,KAAK,KAAKC,OAAQ,SAAUC,MAAO,uBAC1CN,SAAAb;iBAELc,KAAC,MAAA,CAAIC,UAAU,oBAEVF,SAAA,CAAAZ,EACAC,kBAAYU,EAAAA,IAACQ,EAAAA,QAAA,CACVH,KAAK,SACLI,MAAuBjB,EAAhBE,EAAkB,uDAA4D,kDACrFS,UAAcT,EAAgB,WAAa,8BAE3CgB,oBACIV,EAAAA,IAAC,MAAA,CACGW,IAAKjB,EAAgBkB,EAAAA,OAAOC,OAAOC,SAAWF,EAAAA,OAAOG,KACrDC,IAAKxB,EAAE,iBAGfyB,QAAS,IAAMtB,GAAiB,GAChCuB,OAAQxB,IAIRH,yBAAkB,MAAA,CACdU,SAAA;eAAAD,EAAAA,IAACmB,EAAAA,QAAA,CACGZ,MAAM,UACNa,KAAK,QACLH,QA7CCI,IACzBvB,EAAgBuB,EAAMC,gBA6CErB,wBAAAD,EAAAA,IAAC,OAAIW,IAAKC,SAAOW,KAAMP,IAAKxB,EAAE;eAElCQ,EAAAA,IAACwB,EAAAA,QAAA,CACGC,SAAU5B,EACV6B,KAAMC,QAAQ9B,GACd+B,QAAS7B,EACTI,UAAU,8BACVF,8BAAC4B,EAAAA,QAAA,CAASZ,QAASlB,EAAsBE,SAAAT,EAAE"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { Typography } from "../../typography/typography/index.esm.js";
|
|
4
|
+
import dayjs from "dayjs";
|
|
5
|
+
import formatText from "../../../utils/format-text/index.esm.js";
|
|
6
|
+
import { useTranslation } from "react-i18next";
|
|
7
|
+
import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
|
|
8
|
+
import Timeline from "../../../node_modules/@mui/lab/Timeline/Timeline/index.esm.js";
|
|
9
|
+
import TimelineItem from "../../../node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js";
|
|
10
|
+
import TimelineSeparator from "../../../node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js";
|
|
11
|
+
import TimelineDot from "../../../node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js";
|
|
12
|
+
import TimelineConnector from "../../../node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js";
|
|
13
|
+
import TimelineContent from "../../../node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js";
|
|
14
|
+
const ActivityTag = (props) => {
|
|
15
|
+
const { t } = useTranslation();
|
|
16
|
+
const { data } = props;
|
|
17
|
+
const formatDateTime = (date) => {
|
|
18
|
+
const formattedDate = dayjs(date).format("DD MMM, YYYY");
|
|
19
|
+
const formattedTime = dayjs(date).format("HH:mm");
|
|
20
|
+
return `${formattedDate} • ${formattedTime}`;
|
|
21
|
+
};
|
|
22
|
+
const actions = {
|
|
23
|
+
view: t("common.viewed_text"),
|
|
24
|
+
delete: t("common.deleted_text"),
|
|
25
|
+
create: t("common.created_text"),
|
|
26
|
+
update: t("common.updated_text")
|
|
27
|
+
};
|
|
28
|
+
return (
|
|
29
|
+
// <Box position='relative'>
|
|
30
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Timeline, { className: "Timeline", children: /* @__PURE__ */ jsxs(
|
|
31
|
+
Box,
|
|
32
|
+
{
|
|
33
|
+
sx: {
|
|
34
|
+
display: "flex",
|
|
35
|
+
flexDirection: "column",
|
|
36
|
+
gap: 2,
|
|
37
|
+
padding: "16px"
|
|
38
|
+
},
|
|
39
|
+
className: "box-class",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ jsx(Typography, { type: "s3", weight: "medium", color: "theme.secondary.800", children: t("common.activities_label") }),
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
Box,
|
|
44
|
+
{
|
|
45
|
+
sx: {
|
|
46
|
+
height: 400,
|
|
47
|
+
overflowY: "auto",
|
|
48
|
+
gap: 1.5,
|
|
49
|
+
display: "flex",
|
|
50
|
+
flexDirection: "column"
|
|
51
|
+
},
|
|
52
|
+
children: data == null ? void 0 : data.map((item, index) => {
|
|
53
|
+
var _a;
|
|
54
|
+
return /* @__PURE__ */ jsx("div", { className: "Timeline--Activity", children: /* @__PURE__ */ jsxs(TimelineItem, { children: [
|
|
55
|
+
/* @__PURE__ */ jsxs(TimelineSeparator, { children: [
|
|
56
|
+
/* @__PURE__ */ jsx(
|
|
57
|
+
TimelineDot,
|
|
58
|
+
{
|
|
59
|
+
color: "primary",
|
|
60
|
+
sx: { backgroundColor: "#D3D3D4" }
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
data.length - 1 !== index && /* @__PURE__ */ jsx(TimelineConnector, {})
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ jsxs(TimelineContent, { className: "Timeline--Content", children: [
|
|
66
|
+
/* @__PURE__ */ jsxs(
|
|
67
|
+
Typography,
|
|
68
|
+
{
|
|
69
|
+
type: "s5",
|
|
70
|
+
color: "theme.secondary.800",
|
|
71
|
+
className: "Timeline--ActivityLogItem",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ jsx("b", { children: formatText(item.username) }),
|
|
74
|
+
" ",
|
|
75
|
+
actions[item.action],
|
|
76
|
+
" ",
|
|
77
|
+
/* @__PURE__ */ jsx("b", { children: formatText((_a = item.resource) == null ? void 0 : _a.replace("_", " ")) })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ jsx(
|
|
82
|
+
Typography,
|
|
83
|
+
{
|
|
84
|
+
type: "s5",
|
|
85
|
+
color: "theme.secondary.800",
|
|
86
|
+
className: "Timeline--ActivityLogItem",
|
|
87
|
+
children: formatDateTime(item == null ? void 0 : item.created_at)
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] })
|
|
91
|
+
] }, index) });
|
|
92
|
+
})
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
) }) })
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
export {
|
|
101
|
+
ActivityTag,
|
|
102
|
+
ActivityTag as default
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/components/activityLog/activity-log.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Box } from '@mui/material';\nimport Timeline from '@mui/lab/Timeline';\nimport TimelineItem from '@mui/lab/TimelineItem';\nimport TimelineSeparator from '@mui/lab/TimelineSeparator';\nimport TimelineConnector from '@mui/lab/TimelineConnector';\nimport TimelineContent from '@mui/lab/TimelineContent';\nimport TimelineDot from '@mui/lab/TimelineDot';\nimport './activity-log.scss';\nimport Typography from '../typography/typography';\nimport dayjs from 'dayjs';\nimport formatText from '../../utils/format-text';\nimport { useTranslation } from 'react-i18next';\n\nexport const ActivityTag = (props: any) => {\n\tconst { t } = useTranslation();\n\tconst { data } = props;\n\n\tconst formatDateTime = (date: Date): string => {\n\t\tconst formattedDate = dayjs(date).format('DD MMM, YYYY');\n\t\tconst formattedTime = dayjs(date).format('HH:mm');\n\t\treturn `${formattedDate} • ${formattedTime}`;\n\t};\n\n\tconst actions = {\n\t\tview: t('common.viewed_text'),\n\t\tdelete: t('common.deleted_text'),\n\t\tcreate: t('common.created_text'),\n\t\tupdate: t('common.updated_text')\n\t};\n\treturn (\n\t\t// <Box position='relative'>\n\t\t<Box>\n\t\t\t<Timeline className='Timeline'>\n\t\t\t\t<Box\n\t\t\t\t\tsx={{\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\tgap: 2,\n\t\t\t\t\t\tpadding: '16px'\n\t\t\t\t\t}}\n\t\t\t\t\tclassName='box-class'>\n\t\t\t\t\t<Typography type='s3' weight='medium' color='theme.secondary.800'>\n\t\t\t\t\t\t{t('common.activities_label')}\n\t\t\t\t\t</Typography>\n\t\t\t\t\t<Box\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\theight: 400,\n\t\t\t\t\t\t\toverflowY: 'auto',\n\t\t\t\t\t\t\tgap: 1.5,\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\tflexDirection: 'column'\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\t{data?.map((item: any, index: number) => (\n\t\t\t\t\t\t\t<div className='Timeline--Activity'>\n\t\t\t\t\t\t\t\t<TimelineItem key={index}>\n\t\t\t\t\t\t\t\t\t<TimelineSeparator>\n\t\t\t\t\t\t\t\t\t\t<TimelineDot\n\t\t\t\t\t\t\t\t\t\t\tcolor='primary'\n\t\t\t\t\t\t\t\t\t\t\tsx={{ backgroundColor: '#D3D3D4' }}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t{data.length - 1 !== index && <TimelineConnector />}\n\t\t\t\t\t\t\t\t\t</TimelineSeparator>\n\t\t\t\t\t\t\t\t\t<TimelineContent className='Timeline--Content'>\n\t\t\t\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\t\t\t\ttype='s5'\n\t\t\t\t\t\t\t\t\t\t\tcolor='theme.secondary.800'\n\t\t\t\t\t\t\t\t\t\t\tclassName='Timeline--ActivityLogItem'>\n\t\t\t\t\t\t\t\t\t\t\t<b>{formatText(item.username)}</b> {actions[item.action]}{' '}\n\t\t\t\t\t\t\t\t\t\t\t<b>{formatText(item.resource?.replace('_', ' '))}</b>\n\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\t\t\t\ttype='s5'\n\t\t\t\t\t\t\t\t\t\t\tcolor='theme.secondary.800'\n\t\t\t\t\t\t\t\t\t\t\tclassName='Timeline--ActivityLogItem'>\n\t\t\t\t\t\t\t\t\t\t\t{formatDateTime(item?.created_at)}\n\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t</TimelineContent>\n\t\t\t\t\t\t\t\t</TimelineItem>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Box>\n\t\t\t\t</Box>\n\t\t\t</Timeline>\n\t\t</Box>\n\t\t// </Box>\n\t);\n};\n\nexport default ActivityTag;\n"],"names":[],"m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AA;AAAA,oBAEjC,KAAK,SAAS,MAAM,6BAAU,mBAAA,CAAA,CAAkB;AAAA,kBAAA,GAClD;AAAA,kBACA,qBAAC,iBAAA,EAAgB,WAAU,qBAC1B,UAAA;AAAA,oBAAA;AAAA,sBAAC;AAAA,sBAAA;AAAA,wBACA,MAAK;AAAA,wBACL,OAAM;AAAA,wBACN,WAAU;AAAA,wBACV,UAAA;AAAA,0BAAA,oBAAC,KAAA,EAAG,UAAA,WAAW,KAAK,QAAQ,GAAE;AAAA,0BAAI;AAAA,0BAAE,QAAQ,KAAK,MAAM;AAAA,0BAAG;AAAA,0BAC1D,oBAAC,OAAG,UAAA,YAAW,UAAK,aAAL,mBAAe,QAAQ,KAAK,IAAI,EAAA,CAAE;AAAA,wBAAA;AAAA,sBAAA;AAAA,oBAAA;AAAA,oBAElD;AAAA,sBAAC;AAAA,sBAAA;AAAA,wBACA,MAAK;AAAA,wBACL,OAAM;AAAA,wBACN,WAAU;AAAA,wBACT,UAAA,eAAe,6BAAM,UAAU;AAAA,sBAAA;AAAA,oBAAA;AAAA,kBACjC,EAAA,CACD;AAAA,gBAAA,EAAA,GAtBkB,KAuBnB,GACD;AAAA;AAAA,YACA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA,GAEF,EAAA,CACD;AAAA;AAGF;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");;/* empty css */var i=,/* empty css */t=require("dayjs"),l=,/* empty css */r=require("react-i18next"),n=,/* empty css */a=,/* empty css */o=,/* empty css */s=,/* empty css */d=,/* empty css */m=,/* empty css */u=;/* empty css */function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var x=/* @__PURE__ */c(t);const p=t=>{const{t:c}=r.useTranslation(),{data:p}=t,j={view:c("common.viewed_text"),delete:c("common.deleted_text"),create:c("common.created_text"),update:c("common.updated_text")};
|
|
2
|
+
/* @__PURE__ */
|
|
3
|
+
return e.jsx(n.default,{children:/* @__PURE__ */e.jsx(a.default,{className:"Timeline",children:/* @__PURE__ */e.jsxs(n.default,{sx:{display:"flex",flexDirection:"column",gap:2,padding:"16px"},className:"box-class",children:[
|
|
4
|
+
/* @__PURE__ */e.jsx(i.Typography,{type:"s3",weight:"medium",color:"theme.secondary.800",children:c("common.activities_label")}),
|
|
5
|
+
/* @__PURE__ */e.jsx(n.default,{sx:{height:400,overflowY:"auto",gap:1.5,display:"flex",flexDirection:"column"},children:null==p?void 0:p.map((t,r)=>{var n,a;/* @__PURE__ */
|
|
6
|
+
return e.jsx("div",{className:"Timeline--Activity",children:/* @__PURE__ */e.jsxs(o.default,{children:[
|
|
7
|
+
/* @__PURE__ */e.jsxs(s.default,{children:[
|
|
8
|
+
/* @__PURE__ */e.jsx(d.default,{color:"primary",sx:{backgroundColor:"#D3D3D4"}}),p.length-1!==r&&/* @__PURE__ */e.jsx(m.default,{})]}),
|
|
9
|
+
/* @__PURE__ */e.jsxs(u.default,{className:"Timeline--Content",children:[
|
|
10
|
+
/* @__PURE__ */e.jsxs(i.Typography,{type:"s5",color:"theme.secondary.800",className:"Timeline--ActivityLogItem",children:[
|
|
11
|
+
/* @__PURE__ */e.jsx("b",{children:l.default(t.username)})," ",j[t.action]," ",
|
|
12
|
+
/* @__PURE__ */e.jsx("b",{children:l.default(null==(n=t.resource)?void 0:n.replace("_"," "))})]}),
|
|
13
|
+
/* @__PURE__ */e.jsx(i.Typography,{type:"s5",color:"theme.secondary.800",className:"Timeline--ActivityLogItem",children:(a=null==t?void 0:t.created_at,`${x.default(a).format("DD MMM, YYYY")} • ${x.default(a).format("HH:mm")}`)})]})]},r)})})})]})})})};exports.ActivityTag=p,exports.default=p;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/activityLog/activity-log.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Box } from '@mui/material';\nimport Timeline from '@mui/lab/Timeline';\nimport TimelineItem from '@mui/lab/TimelineItem';\nimport TimelineSeparator from '@mui/lab/TimelineSeparator';\nimport TimelineConnector from '@mui/lab/TimelineConnector';\nimport TimelineContent from '@mui/lab/TimelineContent';\nimport TimelineDot from '@mui/lab/TimelineDot';\nimport './activity-log.scss';\nimport Typography from '../typography/typography';\nimport dayjs from 'dayjs';\nimport formatText from '../../utils/format-text';\nimport { useTranslation } from 'react-i18next';\n\nexport const ActivityTag = (props: any) => {\n\tconst { t } = useTranslation();\n\tconst { data } = props;\n\n\tconst formatDateTime = (date: Date): string => {\n\t\tconst formattedDate = dayjs(date).format('DD MMM, YYYY');\n\t\tconst formattedTime = dayjs(date).format('HH:mm');\n\t\treturn `${formattedDate} • ${formattedTime}`;\n\t};\n\n\tconst actions = {\n\t\tview: t('common.viewed_text'),\n\t\tdelete: t('common.deleted_text'),\n\t\tcreate: t('common.created_text'),\n\t\tupdate: t('common.updated_text')\n\t};\n\treturn (\n\t\t// <Box position='relative'>\n\t\t<Box>\n\t\t\t<Timeline className='Timeline'>\n\t\t\t\t<Box\n\t\t\t\t\tsx={{\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\tgap: 2,\n\t\t\t\t\t\tpadding: '16px'\n\t\t\t\t\t}}\n\t\t\t\t\tclassName='box-class'>\n\t\t\t\t\t<Typography type='s3' weight='medium' color='theme.secondary.800'>\n\t\t\t\t\t\t{t('common.activities_label')}\n\t\t\t\t\t</Typography>\n\t\t\t\t\t<Box\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\theight: 400,\n\t\t\t\t\t\t\toverflowY: 'auto',\n\t\t\t\t\t\t\tgap: 1.5,\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\tflexDirection: 'column'\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\t{data?.map((item: any, index: number) => (\n\t\t\t\t\t\t\t<div className='Timeline--Activity'>\n\t\t\t\t\t\t\t\t<TimelineItem key={index}>\n\t\t\t\t\t\t\t\t\t<TimelineSeparator>\n\t\t\t\t\t\t\t\t\t\t<TimelineDot\n\t\t\t\t\t\t\t\t\t\t\tcolor='primary'\n\t\t\t\t\t\t\t\t\t\t\tsx={{ backgroundColor: '#D3D3D4' }}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t{data.length - 1 !== index && <TimelineConnector />}\n\t\t\t\t\t\t\t\t\t</TimelineSeparator>\n\t\t\t\t\t\t\t\t\t<TimelineContent className='Timeline--Content'>\n\t\t\t\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\t\t\t\ttype='s5'\n\t\t\t\t\t\t\t\t\t\t\tcolor='theme.secondary.800'\n\t\t\t\t\t\t\t\t\t\t\tclassName='Timeline--ActivityLogItem'>\n\t\t\t\t\t\t\t\t\t\t\t<b>{formatText(item.username)}</b> {actions[item.action]}{' '}\n\t\t\t\t\t\t\t\t\t\t\t<b>{formatText(item.resource?.replace('_', ' '))}</b>\n\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\t\t\t\ttype='s5'\n\t\t\t\t\t\t\t\t\t\t\tcolor='theme.secondary.800'\n\t\t\t\t\t\t\t\t\t\t\tclassName='Timeline--ActivityLogItem'>\n\t\t\t\t\t\t\t\t\t\t\t{formatDateTime(item?.created_at)}\n\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t</TimelineContent>\n\t\t\t\t\t\t\t\t</TimelineItem>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Box>\n\t\t\t\t</Box>\n\t\t\t</Timeline>\n\t\t</Box>\n\t\t// </Box>\n\t);\n};\n\nexport default ActivityTag;\n"],"names":["ActivityTag","props","t","useTranslation","data","actions","view","delete","create","update","jsx","Box","children","Timeline","className","jsxs","sx","display","flexDirection","gap","padding","Typography","type","weight","color","height","overflowY","map","item","index","date","TimelineItem","TimelineSeparator","TimelineDot","backgroundColor","length","TimelineConnector","TimelineContent","formatText","username","action","_a","resource","replace","created_at","dayjs","format"],"mappings":"m7BAeO,MAAMA,EAAeC,IAC3B,MAAMC,EAAEA,GAAMC,oBACRC,KAAEA,GAASH,EAQXI,EAAU,CACfC,KAAMJ,EAAE,sBACRK,OAAQL,EAAE,uBACVM,OAAQN,EAAE,uBACVO,OAAQP,EAAE;;AAEX,OAECQ,MAACC,EAAAA,QAAA,CACAC,wBAAAF,EAAAA,IAACG,EAAAA,QAAA,CAASC,UAAU,WACnBF,wBAAAG,EAAAA,KAACJ,EAAAA,QAAA,CACAK,GAAI,CACHC,QAAS,OACTC,cAAe,SACfC,IAAK,EACLC,QAAS,QAEVN,UAAU,YACVF,SAAA;eAAAF,EAAAA,IAACW,EAAAA,WAAA,CAAWC,KAAK,KAAKC,OAAO,SAASC,MAAM,sBAC1CZ,SAAAV,EAAE;eAEJQ,EAAAA,IAACC,EAAAA,QAAA,CACAK,GAAI,CACHS,OAAQ,IACRC,UAAW,OACXP,IAAK,IACLF,QAAS,OACTC,cAAe,UAEfN,SAAA,MAAAR,OAAA,EAAAA,EAAMuB,IAAI,CAACC,EAAWC,WAnCJC;aAoCjB,MAAA,CAAIhB,UAAU,qBACdF,wBAAAG,EAAAA,KAACgB,EAAAA,QAAA,CACAnB,SAAA;eAAAG,OAACiB,EAAAA,QAAA,CACApB,SAAA;eAAAF,EAAAA,IAACuB,EAAAA,QAAA,CACAT,MAAM,UACNR,GAAI,CAAEkB,gBAAiB,aAEvB9B,EAAK+B,OAAS,IAAMN,wBAAUO,EAAAA,QAAA,CAAA;iBAEhCrB,KAACsB,EAAAA,QAAA,CAAgBvB,UAAU,oBAC1BF,SAAA;eAAAG,EAAAA,KAACM,EAAAA,WAAA,CACAC,KAAK,KACLE,MAAM,sBACNV,UAAU,4BACVF,SAAA;eAAAF,EAAAA,IAAC,IAAA,CAAGE,SAAA0B,EAAAA,QAAWV,EAAKW,YAAc,IAAElC,EAAQuB,EAAKY,QAAS;eAC1D9B,EAAAA,IAAC,KAAGE,SAAA0B,UAAW,OAAAG,EAAAb,EAAKc,eAAL,EAAAD,EAAeE,QAAQ,IAAK;eAE5CjC,EAAAA,IAACW,EAAAA,WAAA,CACAC,KAAK,KACLE,MAAM,sBACNV,UAAU,4BACTF,UAzDakB,EAyDE,MAAAF,OAAA,EAAAA,EAAMgB,WAtDxB,GAFeC,EAAAA,QAAMf,GAAMgB,OAAO,qBACnBD,EAAAA,QAAMf,GAAMgB,OAAO,mBAmChBjB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Typography } from "../../typography/typography/index.esm.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
|
|
5
|
+
function ChartLegends({ legends, colors }) {
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
Box,
|
|
8
|
+
{
|
|
9
|
+
sx: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
justifyContent: "center",
|
|
12
|
+
alignContent: "space-between"
|
|
13
|
+
},
|
|
14
|
+
children: legends.map((legend, index) => /* @__PURE__ */ jsxs("div", { style: { marginLeft: "20px", display: "flex" }, children: [
|
|
15
|
+
/* @__PURE__ */ jsx(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
className: "legends-circle",
|
|
19
|
+
style: { backgroundColor: colors[index] }
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ jsx(Typography, { type: "s5", sx: { color: "#656669" }, children: legend })
|
|
23
|
+
] }))
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
ChartLegends,
|
|
29
|
+
ChartLegends as default
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/components/charts/ChartLegends.tsx"],"sourcesContent":["import { Box } from '@mui/material';\nimport Typography from '../typography/typography';\nimport './chartLegend.scss';\ninterface IProps {\n\tlegends: string[];\n\tcolors: string[];\n}\nexport function ChartLegends({ legends, colors }: IProps) {\n\treturn (\n\t\t<Box\n\t\t\tsx={{\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tjustifyContent: 'center',\n\t\t\t\talignContent: 'space-between'\n\t\t\t}}>\n\t\t\t{legends.map((legend, index) => (\n\t\t\t\t<div style={{ marginLeft: '20px', display: 'flex' }}>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName='legends-circle'\n\t\t\t\t\t\tstyle={{ backgroundColor: colors[index] }}></div>\n\t\t\t\t\t<Typography type='s5' sx={{ color: '#656669' }}>\n\t\t\t\t\t\t{legend}\n\t\t\t\t\t</Typography>\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</Box>\n\t);\n}\n\nexport default ChartLegends\n"],"names":[],"mappings":";;;;AAOO,SAAS,aAAa,EAAE,SAAS,UAAkB;AACzD,SACC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,IAAI;AAAA,QACH,SAAS;AAAA,QACT,gBAAgB;AAAA,QAChB,cAAc;AAAA,MAAA;AAAA,MAEd,UAAA,QAAQ,IAAI,CAAC,QAAQ,UACrB,qBAAC,OAAA,EAAI,OAAO,EAAE,YAAY,QAAQ,SAAS,UAC1C,UAAA;AAAA,QAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,WAAU;AAAA,YACV,OAAO,EAAE,iBAAiB,OAAO,KAAK,EAAA;AAAA,UAAE;AAAA,QAAA;AAAA,QACzC,oBAAC,cAAW,MAAK,MAAK,IAAI,EAAE,OAAO,UAAA,GACjC,UAAA,OAAA,CACF;AAAA,MAAA,GACD,CACA;AAAA,IAAA;AAAA,EAAA;AAGJ;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=;/* empty css */;/* empty css */var s=;/* empty css */function t({legends:t,colors:n}){/* @__PURE__ */
|
|
2
|
+
return e.jsx(s.default,{sx:{display:"flex",justifyContent:"center",alignContent:"space-between"},children:t.map((s,t)=>/* @__PURE__ */e.jsxs("div",{style:{marginLeft:"20px",display:"flex"},children:[
|
|
3
|
+
/* @__PURE__ */e.jsx("div",{className:"legends-circle",style:{backgroundColor:n[t]}}),
|
|
4
|
+
/* @__PURE__ */e.jsx(r.Typography,{type:"s5",sx:{color:"#656669"},children:s})]}))})}exports.ChartLegends=t,exports.default=t;
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/charts/ChartLegends.tsx"],"sourcesContent":["import { Box } from '@mui/material';\nimport Typography from '../typography/typography';\nimport './chartLegend.scss';\ninterface IProps {\n\tlegends: string[];\n\tcolors: string[];\n}\nexport function ChartLegends({ legends, colors }: IProps) {\n\treturn (\n\t\t<Box\n\t\t\tsx={{\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tjustifyContent: 'center',\n\t\t\t\talignContent: 'space-between'\n\t\t\t}}>\n\t\t\t{legends.map((legend, index) => (\n\t\t\t\t<div style={{ marginLeft: '20px', display: 'flex' }}>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName='legends-circle'\n\t\t\t\t\t\tstyle={{ backgroundColor: colors[index] }}></div>\n\t\t\t\t\t<Typography type='s5' sx={{ color: '#656669' }}>\n\t\t\t\t\t\t{legend}\n\t\t\t\t\t</Typography>\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</Box>\n\t);\n}\n\nexport default ChartLegends\n"],"names":["ChartLegends","legends","colors","jsx","Box","sx","display","justifyContent","alignContent","children","map","legend","index","jsxs","style","marginLeft","className","backgroundColor","Typography","type","color"],"mappings":"uQAOO,SAASA,GAAaC,QAAEA,EAAAC,OAASA;AACvC,OACCC,EAAAA,IAACC,EAAAA,QAAA,CACAC,GAAI,CACHC,QAAS,OACTC,eAAgB,SAChBC,aAAc,iBAEdC,SAAAR,EAAQS,IAAI,CAACC,EAAQC,mBACrBC,EAAAA,KAAC,MAAA,CAAIC,MAAO,CAAEC,WAAY,OAAQT,QAAS,QAC1CG,SAAA;eAAAN,EAAAA,IAAC,MAAA,CACAa,UAAU,iBACVF,MAAO,CAAEG,gBAAiBf,EAAOU;eAClCT,EAAAA,IAACe,EAAAA,YAAWC,KAAK,KAAKd,GAAI,CAAEe,MAAO,WACjCX,SAAAE,SAMP"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useState, useEffect } from "react";
|
|
3
|
+
import linear from "../../../node_modules/d3-scale/src/linear/index.esm.js";
|
|
4
|
+
import max from "../../../node_modules/d3-array/src/max/index.esm.js";
|
|
5
|
+
import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
|
|
6
|
+
import select from "../../../node_modules/d3-selection/src/select/index.esm.js";
|
|
7
|
+
import { point } from "../../../node_modules/d3-scale/src/band/index.esm.js";
|
|
8
|
+
import { axisBottom, axisLeft } from "../../../node_modules/d3-axis/src/axis/index.esm.js";
|
|
9
|
+
import area from "../../../node_modules/d3-shape/src/area/index.esm.js";
|
|
10
|
+
import line from "../../../node_modules/d3-shape/src/line/index.esm.js";
|
|
11
|
+
import { format } from "../../../node_modules/d3-format/src/defaultLocale/index.esm.js";
|
|
12
|
+
import { monotoneX } from "../../../node_modules/d3-shape/src/curve/monotone/index.esm.js";
|
|
13
|
+
import curveLinear from "../../../node_modules/d3-shape/src/curve/linear/index.esm.js";
|
|
14
|
+
const formatNumber = (num, symbol, labelType) => {
|
|
15
|
+
if (labelType === "inPercent") {
|
|
16
|
+
return `${format(".0%")(num / 100)}`;
|
|
17
|
+
} else if (labelType === "inValue") {
|
|
18
|
+
return `${symbol || ""} ${format(".2s")(num).replace("k", "K")}`;
|
|
19
|
+
}
|
|
20
|
+
return num.toString();
|
|
21
|
+
};
|
|
22
|
+
const AreaLineChart = ({ data, height = 400, customLabelFormatter, yAxisLabelType = "inValue", currency, colors, customLegend }) => {
|
|
23
|
+
const svgRef = useRef(null);
|
|
24
|
+
const wrapperRef = useRef(null);
|
|
25
|
+
const [containerWidth, setContainerWidth] = useState(0);
|
|
26
|
+
const [tooltipData, setTooltipData] = useState(null);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
const wrapper = wrapperRef.current;
|
|
29
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
30
|
+
if (entries[0]) {
|
|
31
|
+
const newWidth = entries[0].contentRect.width;
|
|
32
|
+
setContainerWidth(newWidth);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
if (wrapper) {
|
|
36
|
+
resizeObserver.observe(wrapper);
|
|
37
|
+
}
|
|
38
|
+
return () => {
|
|
39
|
+
if (wrapper) {
|
|
40
|
+
resizeObserver.unobserve(wrapper);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}, []);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (containerWidth === 0) return;
|
|
46
|
+
const margin = { top: 20, right: 30, bottom: 30, left: 40 };
|
|
47
|
+
const width = containerWidth - margin.left - margin.right;
|
|
48
|
+
const chartHeight = height - margin.top - margin.bottom;
|
|
49
|
+
select(svgRef.current).selectAll("*").remove();
|
|
50
|
+
const svg = select(svgRef.current).attr("width", containerWidth).attr("height", height).append("g").attr("transform", `translate(${margin.left},${margin.top})`);
|
|
51
|
+
const x = point().domain(data[0].values.map((d) => d.month)).range([0, width]);
|
|
52
|
+
const y = linear().domain([0, max(data, (dataset) => max(dataset.values, (d) => d.value))]).range([chartHeight, 0]);
|
|
53
|
+
const numTicks = Math.floor(width / 80);
|
|
54
|
+
const xAxis = axisBottom(x).ticks(numTicks);
|
|
55
|
+
const xAxisGroup = svg.append("g").attr("transform", `translate(0,${chartHeight})`).call(xAxis);
|
|
56
|
+
xAxisGroup.selectAll("text").attr("transform", "translate(0, 10)").attr("color", "#8E8E93").style("text-anchor", "middle");
|
|
57
|
+
const yAxis = svg.append("g");
|
|
58
|
+
yAxis.append("g").attr("color", "#8E8E93").attr("transform", `translate(-10,0)`).call(axisLeft(y).tickSize(-width).tickFormat(
|
|
59
|
+
(d) => customLabelFormatter ? customLabelFormatter(d) : formatNumber(d, currency, yAxisLabelType)
|
|
60
|
+
).tickSizeOuter(0)).selectAll("line").attr("stroke-dasharray", "3,3").attr("stroke", "#D3D3D4");
|
|
61
|
+
xAxisGroup.selectAll(".tick line").remove();
|
|
62
|
+
yAxis.select(".domain").attr("stroke", "none");
|
|
63
|
+
xAxisGroup.select(".domain").attr("stroke", "none");
|
|
64
|
+
const line$1 = (isSmooth) => line().x((d) => x(d.month)).y((d) => y(d.value)).curve(isSmooth ? monotoneX : curveLinear);
|
|
65
|
+
const area$1 = area().x((d) => x(d.month)).y0(chartHeight).y1((d) => y(d.value));
|
|
66
|
+
data.forEach((dataset, i) => {
|
|
67
|
+
const gradient = svg.append("defs").append("linearGradient").attr("id", `area-gradient-${i}`).attr("x1", "0%").attr("x2", "0%").attr("y1", "0%").attr("y2", "100%");
|
|
68
|
+
gradient.append("stop").attr("offset", "0%").attr("stop-color", colors[i]).attr("stop-opacity", 0.4);
|
|
69
|
+
gradient.append("stop").attr("offset", "100%").attr("stop-color", colors[i]).attr("stop-opacity", 0.1);
|
|
70
|
+
svg.append("path").datum(dataset.values).attr("fill", `url(#area-gradient-${i})`).attr("d", area$1);
|
|
71
|
+
svg.append("path").datum(dataset.values).attr("fill", "none").attr("stroke", colors[i]).attr("stroke-width", 2).attr("d", line$1(dataset.isSmooth || false));
|
|
72
|
+
{
|
|
73
|
+
(dataset == null ? void 0 : dataset.showCircle) && svg.selectAll(`circle-${i}`).data(dataset.values).enter().append("circle").attr("cx", (d) => x(d.month)).attr("cy", (d) => y(d.value)).attr("r", 5).attr("fill", colors[i]).attr("stroke", "#fff").style("cursor", "pointer").on("mouseover", function(event, d) {
|
|
74
|
+
setTooltipData({
|
|
75
|
+
x: `${event.pageX + 10}px`,
|
|
76
|
+
y: `${event.pageY - 30}px`,
|
|
77
|
+
content: `${dataset.name}: ${d.value}`
|
|
78
|
+
});
|
|
79
|
+
select(this).transition().attr("r", 7).attr("fill", "#ff4500");
|
|
80
|
+
}).on("mouseout", function() {
|
|
81
|
+
setTooltipData(null);
|
|
82
|
+
select(this).transition().attr("r", 5).attr("fill", colors[i]);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}, [data, containerWidth, height, customLabelFormatter, yAxisLabelType, currency, colors, customLegend]);
|
|
87
|
+
return /* @__PURE__ */ jsxs("div", { ref: wrapperRef, style: { width: "100%", height: "100%" }, children: [
|
|
88
|
+
/* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
|
|
89
|
+
/* @__PURE__ */ jsx("svg", { ref: svgRef, width: "100%", height }),
|
|
90
|
+
customLegend && customLegend
|
|
91
|
+
] }),
|
|
92
|
+
tooltipData && /* @__PURE__ */ jsx(Box, { sx: {
|
|
93
|
+
position: "absolute",
|
|
94
|
+
left: tooltipData.x,
|
|
95
|
+
top: tooltipData.y,
|
|
96
|
+
pointerEvents: "none",
|
|
97
|
+
backgroundColor: "#2EB273",
|
|
98
|
+
zIndex: "99999",
|
|
99
|
+
border: "none",
|
|
100
|
+
borderRadius: "3px",
|
|
101
|
+
transform: "translate(-50%, -100%)",
|
|
102
|
+
padding: "2px 6px 2px 6px",
|
|
103
|
+
gap: "10px"
|
|
104
|
+
}, children: /* @__PURE__ */ jsx("span", { style: { fontSize: "16px", weight: "500", color: "#ffff" }, children: tooltipData.content }) })
|
|
105
|
+
] });
|
|
106
|
+
};
|
|
107
|
+
export {
|
|
108
|
+
AreaLineChart as default
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/components/charts/areaLinerChart.tsx"],"sourcesContent":["import { Box } from '@mui/material';\nimport * as d3 from 'd3';\nimport { useEffect, useRef, useState } from 'react';\n\ninterface IChartProps {\n data: { name: string, values: { month: string, value: number }[], isSmooth?: boolean }[],\n height: number,\n yAxisLabelType?: 'inPercent' | 'inValue' | 'custom';\n customLabelFormatter?: (value: number) => string;\n currency?: string;\n colors?: string[];\n customLegend: React.ReactNode\n}\n\nconst formatNumber = (num: number, symbol: string, labelType: string) => {\n if (labelType === 'inPercent') {\n return `${d3.format(\".0%\")(num / 100)}`;\n } else if (labelType === 'inValue') {\n return `${symbol || ''} ${d3.format(\".2s\")(num).replace('k', 'K')}`;\n }\n return num.toString();\n};\n\nconst AreaLineChart = ({ data, height = 400, customLabelFormatter, yAxisLabelType = 'inValue', currency, colors, customLegend }: IChartProps) => {\n const svgRef = useRef<SVGSVGElement | null>(null);\n const wrapperRef = useRef<HTMLDivElement>(null);\n const [containerWidth, setContainerWidth] = useState<number>(0);\n const [tooltipData, setTooltipData] = useState<any>(null);\n useEffect(() => {\n const wrapper = wrapperRef.current;\n\n const resizeObserver = new ResizeObserver((entries) => {\n if (entries[0]) {\n const newWidth = entries[0].contentRect.width;\n setContainerWidth(newWidth);\n }\n });\n\n if (wrapper) {\n resizeObserver.observe(wrapper);\n }\n\n return () => {\n if (wrapper) {\n resizeObserver.unobserve(wrapper);\n }\n };\n }, []);\n\n useEffect(() => {\n if (containerWidth === 0) return; // Wait for the container width\n\n const margin = { top: 20, right: 30, bottom: 30, left: 40 };\n const width = containerWidth - margin.left - margin.right;\n const chartHeight = height - margin.top - margin.bottom;\n\n // Clear the SVG\n d3.select(svgRef.current).selectAll('*').remove();\n\n const svg = d3\n .select(svgRef.current)\n .attr('width', containerWidth)\n .attr('height', height)\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n\n // Define scales\n const x = d3\n .scalePoint()\n .domain(data[0].values.map(d => d.month)) // Assuming all datasets share the same x-domain\n .range([0, width]);\n\n const y = d3\n .scaleLinear()\n .domain([0, d3.max(data, dataset => d3.max(dataset.values, d => d.value))!]) // Max value across all datasets\n .range([chartHeight, 0]);\n\n // Limit x-axis ticks dynamically based on width\n const numTicks = Math.floor(width / 80); // Adjust the factor (80) based on chart width\n const xAxis = d3.axisBottom(x).ticks(numTicks);\n\n const xAxisGroup = svg.append('g')\n .attr('transform', `translate(0,${chartHeight})`)\n .call(xAxis);\n\n xAxisGroup.selectAll(\"text\")\n .attr(\"transform\", \"translate(0, 10)\")\n .attr('color', '#8E8E93')\n .style(\"text-anchor\", \"middle\");\n\n // Y Axis\n const yAxis = svg.append('g')\n yAxis.append('g').attr('color', '#8E8E93').attr(\"transform\", `translate(-10,0)`)\n .call(d3.axisLeft(y).tickSize(-width).tickFormat((d: any) =>\n customLabelFormatter\n ? customLabelFormatter(d)\n : formatNumber(d, currency, yAxisLabelType)\n ).tickSizeOuter(0) as any)\n .selectAll('line')\n .attr('stroke-dasharray', '3,3')\n .attr('stroke', '#D3D3D4');\n\n xAxisGroup.selectAll(\".tick line\").remove();\n yAxis.select(\".domain\").attr(\"stroke\", \"none\");\n xAxisGroup.select(\".domain\").attr(\"stroke\", \"none\");\n\n // Define color scale for lines\n // const color = d3.scaleOrdinal(d3.schemeCategory10);\n\n // Line and area generators\n const line = (isSmooth: boolean) => d3.line<any>()\n .x(d => x(d.month)!)\n .y(d => y(d.value))\n .curve(isSmooth ? d3.curveMonotoneX : d3.curveLinear); // Conditionally smooth the line\n\n const area = d3.area<any>()\n .x(d => x(d.month)!)\n .y0(chartHeight)\n .y1(d => y(d.value));\n\n // Iterate over each dataset to create lines and areas\n data.forEach((dataset, i) => {\n // const datasetColor = color(i.toString());\n\n // Create gradient for each area\n const gradient = svg.append('defs')\n .append('linearGradient')\n .attr('id', `area-gradient-${i}`)\n .attr('x1', '0%')\n .attr('x2', '0%')\n .attr('y1', '0%')\n .attr('y2', '100%');\n\n gradient.append('stop')\n .attr('offset', '0%')\n .attr('stop-color', colors[i])\n .attr('stop-opacity', 0.4);\n\n gradient.append('stop')\n .attr('offset', '100%')\n .attr('stop-color', colors[i])\n .attr('stop-opacity', 0.1);\n\n // Append the area with gradient\n svg.append('path')\n .datum(dataset.values)\n .attr('fill', `url(#area-gradient-${i})`)\n .attr('d', area);\n\n // Append the line with smoothness condition\n svg.append('path')\n .datum(dataset.values)\n .attr('fill', 'none')\n .attr('stroke', colors[i])\n .attr('stroke-width', 2)\n .attr('d', line(dataset.isSmooth || false)); // Use smoothness from the dataset\n\n // Append circles for hover effect\n {\n dataset?.showCircle &&\n svg.selectAll(`circle-${i}`)\n .data(dataset.values)\n .enter()\n .append('circle')\n .attr('cx', d => x(d.month)!)\n .attr('cy', d => y(d.value))\n .attr('r', 5)\n .attr('fill', colors[i])\n .attr('stroke', '#fff')\n .style('cursor', 'pointer')\n .on('mouseover', function (event, d) {\n setTooltipData({\n x: `${event.pageX + 10}px`,\n y: `${event.pageY - 30}px`,\n content: `${dataset.name}: ${d.value}`\n });\n d3.select(this).transition().attr('r', 7).attr('fill', '#ff4500');\n })\n .on('mouseout', function () {\n setTooltipData(null);\n d3.select(this).transition().attr('r', 5).attr('fill', colors[i]);\n });\n }\n\n });\n\n }, [data, containerWidth, height, customLabelFormatter, yAxisLabelType, currency, colors, customLegend]);\n\n return (\n <div ref={wrapperRef} style={{ width: '100%', height: '100%' }}>\n <div style={{ position: 'relative' }}>\n <svg ref={svgRef} width=\"100%\" height={height} />\n {\n customLegend &&\n customLegend\n\n }\n </div>\n {tooltipData &&\n <Box sx={{\n position: 'absolute',\n left: tooltipData.x,\n top: tooltipData.y,\n pointerEvents: 'none',\n backgroundColor: '#2EB273',\n zIndex: '99999',\n border: 'none',\n borderRadius: '3px',\n transform: 'translate(-50%, -100%)',\n padding: '2px 6px 2px 6px',\n gap: '10px'\n }}>\n <span style={{ fontSize: '16px', weight: '500', color: '#ffff' }}>\n {tooltipData.content}\n </span>\n </Box>\n }\n </div>\n );\n};\n\nexport default AreaLineChart;\n"],"names":["d3.format","d3.select","d3.scalePoint","d3.scaleLinear","d3.max","d3.axisBottom","d3.axisLeft","line","d3.line","d3.curveMonotoneX","d3.curveLinear","area","d3.area"],"mappings":";;;;;;;;;;;;;AAcA,MAAM,eAAe,CAAC,KAAa,QAAgB,cAAsB;AACrE,MAAI,cAAc,aAAa;AAC3B,WAAO,GAAGA,OAAU,KAAK,EAAE,MAAM,GAAG,CAAC;AAAA,EACzC,WAAW,cAAc,WAAW;AAChC,WAAO,GAAG,UAAU,EAAE,IAAIA,OAAU,KAAK,EAAE,GAAG,EAAE,QAAQ,KAAK,GAAG,CAAC;AAAA,EACrE;AACA,SAAO,IAAI,SAAA;AACf;AAEA,MAAM,gBAAgB,CAAC,EAAE,MAAM,SAAS,KAAK,sBAAsB,iBAAiB,WAAW,UAAU,QAAQ,aAAA,MAAgC;AAC7I,QAAM,SAAS,OAA6B,IAAI;AAChD,QAAM,aAAa,OAAuB,IAAI;AAC9C,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAiB,CAAC;AAC9D,QAAM,CAAC,aAAa,cAAc,IAAI,SAAc,IAAI;AACxD,YAAU,MAAM;AACZ,UAAM,UAAU,WAAW;AAE3B,UAAM,iBAAiB,IAAI,eAAe,CAAC,YAAY;AACnD,UAAI,QAAQ,CAAC,GAAG;AACZ,cAAM,WAAW,QAAQ,CAAC,EAAE,YAAY;AACxC,0BAAkB,QAAQ;AAAA,MAC9B;AAAA,IACJ,CAAC;AAED,QAAI,SAAS;AACT,qBAAe,QAAQ,OAAO;AAAA,IAClC;AAEA,WAAO,MAAM;AACT,UAAI,SAAS;AACT,uBAAe,UAAU,OAAO;AAAA,MACpC;AAAA,IACJ;AAAA,EACJ,GAAG,CAAA,CAAE;AAEL,YAAU,MAAM;AACZ,QAAI,mBAAmB,EAAG;AAE1B,UAAM,SAAS,EAAE,KAAK,IAAI,OAAO,IAAI,QAAQ,IAAI,MAAM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MAClB,KAAK,YAAY;AAAA,MACjB,eAAe;AAAA,MACf,iBAAiB;AAAA,MACjB,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,cAAc;AAAA,MACd,WAAW;AAAA,MACX,SAAS;AAAA,MACT,KAAK;AAAA,IAAA,GAEL,UAAA,oBAAC,QAAA,EAAK,OAAO,EAAE,UAAU,QAAQ,QAAQ,OAAO,OAAO,QAAA,GAClD,UAAA,YAAY,SACjB,EAAA,CACJ;AAAA,EAAA,GAER;AAER;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("../../../node_modules/d3-scale/src/linear/index.js"),a=require("../../../node_modules/d3-array/src/max/index.js"),n=require("../../../node_modules/@mui/material/Box/Box/index.js"),o=require("../../../node_modules/d3-selection/src/select/index.js"),s=require("../../../node_modules/d3-scale/src/band/index.js"),l=require("../../../node_modules/d3-axis/src/axis/index.js"),i=require("../../../node_modules/d3-shape/src/area/index.js"),d=require("../../../node_modules/d3-shape/src/line/index.js"),u=require("../../../node_modules/d3-format/src/defaultLocale/index.js"),c=require("../../../node_modules/d3-shape/src/curve/monotone/index.js"),p=require("../../../node_modules/d3-shape/src/curve/linear/index.js");exports.default=({data:f,height:m=400,customLabelFormatter:x,yAxisLabelType:h="inValue",currency:v,colors:g,customLegend:y})=>{const j=t.useRef(null),k=t.useRef(null),[q,_]=t.useState(0),[b,$]=t.useState(null);return t.useEffect(()=>{const e=k.current,t=new ResizeObserver(e=>{if(e[0]){const t=e[0].contentRect.width;_(t)}});return e&&t.observe(e),()=>{e&&t.unobserve(e)}},[]),t.useEffect(()=>{if(0===q)return;const e=q-40-30,t=m-20-30;o.default(j.current).selectAll("*").remove();const n=o.default(j.current).attr("width",q).attr("height",m).append("g").attr("transform","translate(40,20)"),y=s.point().domain(f[0].values.map(e=>e.month)).range([0,e]),k=r.default().domain([0,a.default(f,e=>a.default(e.values,e=>e.value))]).range([t,0]),_=Math.floor(e/80),b=l.axisBottom(y).ticks(_),E=n.append("g").attr("transform",`translate(0,${t})`).call(b);E.selectAll("text").attr("transform","translate(0, 10)").attr("color","#8E8E93").style("text-anchor","middle");const w=n.append("g");w.append("g").attr("color","#8E8E93").attr("transform","translate(-10,0)").call(l.axisLeft(k).tickSize(-e).tickFormat(e=>{return x?x(e):(t=e,r=v,"inPercent"===(a=h)?`${u.format(".0%")(t/100)}`:"inValue"===a?`${r||""} ${u.format(".2s")(t).replace("k","K")}`:t.toString());var t,r,a}).tickSizeOuter(0)).selectAll("line").attr("stroke-dasharray","3,3").attr("stroke","#D3D3D4"),E.selectAll(".tick line").remove(),w.select(".domain").attr("stroke","none"),E.select(".domain").attr("stroke","none");const S=i.default().x(e=>y(e.month)).y0(t).y1(e=>k(e.value));f.forEach((e,t)=>{const r=n.append("defs").append("linearGradient").attr("id",`area-gradient-${t}`).attr("x1","0%").attr("x2","0%").attr("y1","0%").attr("y2","100%");var a;r.append("stop").attr("offset","0%").attr("stop-color",g[t]).attr("stop-opacity",.4),r.append("stop").attr("offset","100%").attr("stop-color",g[t]).attr("stop-opacity",.1),n.append("path").datum(e.values).attr("fill",`url(#area-gradient-${t})`).attr("d",S),n.append("path").datum(e.values).attr("fill","none").attr("stroke",g[t]).attr("stroke-width",2).attr("d",(a=e.isSmooth||!1,d.default().x(e=>y(e.month)).y(e=>k(e.value)).curve(a?c.monotoneX:p.default))),(null==e?void 0:e.showCircle)&&n.selectAll(`circle-${t}`).data(e.values).enter().append("circle").attr("cx",e=>y(e.month)).attr("cy",e=>k(e.value)).attr("r",5).attr("fill",g[t]).attr("stroke","#fff").style("cursor","pointer").on("mouseover",function(t,r){$({x:`${t.pageX+10}px`,y:t.pageY-30+"px",content:`${e.name}: ${r.value}`}),o.default(this).transition().attr("r",7).attr("fill","#ff4500")}).on("mouseout",function(){$(null),o.default(this).transition().attr("r",5).attr("fill",g[t])})})},[f,q,m,x,h,v,g,y]),/* @__PURE__ */e.jsxs("div",{ref:k,style:{width:"100%",height:"100%"},children:[
|
|
2
|
+
/* @__PURE__ */e.jsxs("div",{style:{position:"relative"},children:[
|
|
3
|
+
/* @__PURE__ */e.jsx("svg",{ref:j,width:"100%",height:m}),y&&y]}),b&&/* @__PURE__ */e.jsx(n.default,{sx:{position:"absolute",left:b.x,top:b.y,pointerEvents:"none",backgroundColor:"#2EB273",zIndex:"99999",border:"none",borderRadius:"3px",transform:"translate(-50%, -100%)",padding:"2px 6px 2px 6px",gap:"10px"},children:/* @__PURE__ */e.jsx("span",{style:{fontSize:"16px",weight:"500",color:"#ffff"},children:b.content})})]})};
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/charts/areaLinerChart.tsx"],"sourcesContent":["import { Box } from '@mui/material';\nimport * as d3 from 'd3';\nimport { useEffect, useRef, useState } from 'react';\n\ninterface IChartProps {\n data: { name: string, values: { month: string, value: number }[], isSmooth?: boolean }[],\n height: number,\n yAxisLabelType?: 'inPercent' | 'inValue' | 'custom';\n customLabelFormatter?: (value: number) => string;\n currency?: string;\n colors?: string[];\n customLegend: React.ReactNode\n}\n\nconst formatNumber = (num: number, symbol: string, labelType: string) => {\n if (labelType === 'inPercent') {\n return `${d3.format(\".0%\")(num / 100)}`;\n } else if (labelType === 'inValue') {\n return `${symbol || ''} ${d3.format(\".2s\")(num).replace('k', 'K')}`;\n }\n return num.toString();\n};\n\nconst AreaLineChart = ({ data, height = 400, customLabelFormatter, yAxisLabelType = 'inValue', currency, colors, customLegend }: IChartProps) => {\n const svgRef = useRef<SVGSVGElement | null>(null);\n const wrapperRef = useRef<HTMLDivElement>(null);\n const [containerWidth, setContainerWidth] = useState<number>(0);\n const [tooltipData, setTooltipData] = useState<any>(null);\n useEffect(() => {\n const wrapper = wrapperRef.current;\n\n const resizeObserver = new ResizeObserver((entries) => {\n if (entries[0]) {\n const newWidth = entries[0].contentRect.width;\n setContainerWidth(newWidth);\n }\n });\n\n if (wrapper) {\n resizeObserver.observe(wrapper);\n }\n\n return () => {\n if (wrapper) {\n resizeObserver.unobserve(wrapper);\n }\n };\n }, []);\n\n useEffect(() => {\n if (containerWidth === 0) return; // Wait for the container width\n\n const margin = { top: 20, right: 30, bottom: 30, left: 40 };\n const width = containerWidth - margin.left - margin.right;\n const chartHeight = height - margin.top - margin.bottom;\n\n // Clear the SVG\n d3.select(svgRef.current).selectAll('*').remove();\n\n const svg = d3\n .select(svgRef.current)\n .attr('width', containerWidth)\n .attr('height', height)\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n\n // Define scales\n const x = d3\n .scalePoint()\n .domain(data[0].values.map(d => d.month)) // Assuming all datasets share the same x-domain\n .range([0, width]);\n\n const y = d3\n .scaleLinear()\n .domain([0, d3.max(data, dataset => d3.max(dataset.values, d => d.value))!]) // Max value across all datasets\n .range([chartHeight, 0]);\n\n // Limit x-axis ticks dynamically based on width\n const numTicks = Math.floor(width / 80); // Adjust the factor (80) based on chart width\n const xAxis = d3.axisBottom(x).ticks(numTicks);\n\n const xAxisGroup = svg.append('g')\n .attr('transform', `translate(0,${chartHeight})`)\n .call(xAxis);\n\n xAxisGroup.selectAll(\"text\")\n .attr(\"transform\", \"translate(0, 10)\")\n .attr('color', '#8E8E93')\n .style(\"text-anchor\", \"middle\");\n\n // Y Axis\n const yAxis = svg.append('g')\n yAxis.append('g').attr('color', '#8E8E93').attr(\"transform\", `translate(-10,0)`)\n .call(d3.axisLeft(y).tickSize(-width).tickFormat((d: any) =>\n customLabelFormatter\n ? customLabelFormatter(d)\n : formatNumber(d, currency, yAxisLabelType)\n ).tickSizeOuter(0) as any)\n .selectAll('line')\n .attr('stroke-dasharray', '3,3')\n .attr('stroke', '#D3D3D4');\n\n xAxisGroup.selectAll(\".tick line\").remove();\n yAxis.select(\".domain\").attr(\"stroke\", \"none\");\n xAxisGroup.select(\".domain\").attr(\"stroke\", \"none\");\n\n // Define color scale for lines\n // const color = d3.scaleOrdinal(d3.schemeCategory10);\n\n // Line and area generators\n const line = (isSmooth: boolean) => d3.line<any>()\n .x(d => x(d.month)!)\n .y(d => y(d.value))\n .curve(isSmooth ? d3.curveMonotoneX : d3.curveLinear); // Conditionally smooth the line\n\n const area = d3.area<any>()\n .x(d => x(d.month)!)\n .y0(chartHeight)\n .y1(d => y(d.value));\n\n // Iterate over each dataset to create lines and areas\n data.forEach((dataset, i) => {\n // const datasetColor = color(i.toString());\n\n // Create gradient for each area\n const gradient = svg.append('defs')\n .append('linearGradient')\n .attr('id', `area-gradient-${i}`)\n .attr('x1', '0%')\n .attr('x2', '0%')\n .attr('y1', '0%')\n .attr('y2', '100%');\n\n gradient.append('stop')\n .attr('offset', '0%')\n .attr('stop-color', colors[i])\n .attr('stop-opacity', 0.4);\n\n gradient.append('stop')\n .attr('offset', '100%')\n .attr('stop-color', colors[i])\n .attr('stop-opacity', 0.1);\n\n // Append the area with gradient\n svg.append('path')\n .datum(dataset.values)\n .attr('fill', `url(#area-gradient-${i})`)\n .attr('d', area);\n\n // Append the line with smoothness condition\n svg.append('path')\n .datum(dataset.values)\n .attr('fill', 'none')\n .attr('stroke', colors[i])\n .attr('stroke-width', 2)\n .attr('d', line(dataset.isSmooth || false)); // Use smoothness from the dataset\n\n // Append circles for hover effect\n {\n dataset?.showCircle &&\n svg.selectAll(`circle-${i}`)\n .data(dataset.values)\n .enter()\n .append('circle')\n .attr('cx', d => x(d.month)!)\n .attr('cy', d => y(d.value))\n .attr('r', 5)\n .attr('fill', colors[i])\n .attr('stroke', '#fff')\n .style('cursor', 'pointer')\n .on('mouseover', function (event, d) {\n setTooltipData({\n x: `${event.pageX + 10}px`,\n y: `${event.pageY - 30}px`,\n content: `${dataset.name}: ${d.value}`\n });\n d3.select(this).transition().attr('r', 7).attr('fill', '#ff4500');\n })\n .on('mouseout', function () {\n setTooltipData(null);\n d3.select(this).transition().attr('r', 5).attr('fill', colors[i]);\n });\n }\n\n });\n\n }, [data, containerWidth, height, customLabelFormatter, yAxisLabelType, currency, colors, customLegend]);\n\n return (\n <div ref={wrapperRef} style={{ width: '100%', height: '100%' }}>\n <div style={{ position: 'relative' }}>\n <svg ref={svgRef} width=\"100%\" height={height} />\n {\n customLegend &&\n customLegend\n\n }\n </div>\n {tooltipData &&\n <Box sx={{\n position: 'absolute',\n left: tooltipData.x,\n top: tooltipData.y,\n pointerEvents: 'none',\n backgroundColor: '#2EB273',\n zIndex: '99999',\n border: 'none',\n borderRadius: '3px',\n transform: 'translate(-50%, -100%)',\n padding: '2px 6px 2px 6px',\n gap: '10px'\n }}>\n <span style={{ fontSize: '16px', weight: '500', color: '#ffff' }}>\n {tooltipData.content}\n </span>\n </Box>\n }\n </div>\n );\n};\n\nexport default AreaLineChart;\n"],"names":["data","height","customLabelFormatter","yAxisLabelType","currency","colors","customLegend","svgRef","useRef","wrapperRef","containerWidth","setContainerWidth","useState","tooltipData","setTooltipData","useEffect","wrapper","current","resizeObserver","ResizeObserver","entries","newWidth","contentRect","width","observe","unobserve","chartHeight","d3.select","selectAll","remove","svg","attr","append","x","d3.scalePoint","domain","values","map","d","month","range","y","d3.scaleLinear","d3.max","dataset","value","numTicks","Math","floor","xAxis","d3.axisBottom","ticks","xAxisGroup","call","style","yAxis","d3.axisLeft","tickSize","tickFormat","num","symbol","labelType","d3.format","replace","toString","tickSizeOuter","select","area","d3.area","y0","y1","forEach","i","gradient","isSmooth","datum","d3.line","curve","d3.curveMonotoneX","d3.curveLinear","showCircle","enter","on","event","pageX","pageY","content","name","this","transition","jsxs","ref","children","position","jsx","Box","sx","left","top","pointerEvents","backgroundColor","zIndex","border","borderRadius","transform","padding","gap","fontSize","weight","color"],"mappings":"01BAuBsB,EAAGA,OAAMC,SAAS,IAAKC,uBAAsBC,iBAAiB,UAAWC,WAAUC,SAAQC,mBAC7G,MAAMC,EAASC,EAAAA,OAA6B,MACtCC,EAAaD,EAAAA,OAAuB,OACnCE,EAAgBC,GAAqBC,EAAAA,S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