@ganpatiinfo/gids-core-web 9.0.0 → 10.0.0
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/css/index.css +1445 -1
- package/dist/css/index.css.map +1 -1
- package/dist/gids-activity-gauge.d.ts +11 -0
- package/dist/gids-activity-gauge.js +1 -0
- package/dist/gids-bar-chart.d.ts +11 -0
- package/dist/gids-bar-chart.js +1 -0
- package/dist/gids-calendar-header-panel.d.ts +11 -0
- package/dist/gids-calendar-header-panel.js +1 -0
- package/dist/gids-calendar-month-list.d.ts +11 -0
- package/dist/gids-calendar-month-list.js +1 -0
- package/dist/gids-calendar-year-list.d.ts +11 -0
- package/dist/gids-calendar-year-list.js +1 -0
- package/dist/gids-calendar.d.ts +11 -0
- package/dist/gids-calendar.js +1 -0
- package/dist/gids-chart-legend-item.d.ts +11 -0
- package/dist/gids-chart-legend-item.js +1 -0
- package/dist/gids-chart-legend.d.ts +11 -0
- package/dist/gids-chart-legend.js +1 -0
- package/dist/gids-chart.d.ts +11 -0
- package/dist/gids-chart.js +1 -0
- package/dist/gids-chevron-button.d.ts +11 -0
- package/dist/gids-chevron-button.js +1 -0
- package/dist/gids-dot.d.ts +11 -0
- package/dist/gids-dot.js +1 -0
- package/dist/gids-dropdown-field.d.ts +11 -0
- package/dist/gids-dropdown-field.js +1 -0
- package/dist/gids-dropdown-picker.d.ts +11 -0
- package/dist/gids-dropdown-picker.js +1 -0
- package/dist/gids-dropdown.d.ts +11 -0
- package/dist/gids-dropdown.js +1 -0
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-icon.d.ts +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +11 -0
- package/dist/gids-level-gauge.js +1 -0
- package/dist/gids-line-chart.d.ts +11 -0
- package/dist/gids-line-chart.js +1 -0
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-notification.js +1 -1
- package/dist/gids-overflow-container.d.ts +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +11 -0
- package/dist/gids-pie-chart.js +1 -0
- package/dist/gids-popover.d.ts +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-progress-circle.d.ts +11 -0
- package/dist/gids-progress-circle.js +1 -0
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-snackbar.js +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/index.js +1 -1
- package/dist/p-9_mrQ7ac.js +1 -0
- package/dist/p-B81J5HCC.js +1 -0
- package/dist/p-BFHWXEeg.js +1 -0
- package/dist/p-B_HaXpJZ.js +1 -0
- package/dist/p-BaO-kEWS.js +1 -0
- package/dist/p-BiPAgxAQ.js +1 -0
- package/dist/p-Bmb-HiXg.js +1 -0
- package/dist/{p-veoOgDXg.js → p-BnL97lOW.js} +1 -1
- package/dist/{p-iCAclJND.js → p-BvYnawkJ.js} +1 -1
- package/dist/p-CIP0xyhD.js +1 -0
- package/dist/p-CJzporPT.js +1 -0
- package/dist/p-CPSHPtGE.js +1 -0
- package/dist/p-CRngHsR7.js +1 -0
- package/dist/p-Ct3Ixgvf.js +1 -0
- package/dist/p-D93TNeOt.js +1 -0
- package/dist/p-DKsrt7dx.js +1 -0
- package/dist/p-DZWWuJac.js +1 -0
- package/dist/p-D_wcwB7E.js +1 -0
- package/dist/p-Dehss-X0.js +1 -0
- package/dist/{p-DvoHLz_5.js → p-DfFqFdmS.js} +1 -1
- package/dist/p-KxRqlvSh.js +1 -0
- package/dist/p-MgTlrSP_.js +1 -0
- package/dist/p-h6alWGT8.js +1 -0
- package/dist/p-quZYWCxU.js +1 -0
- package/dist/p-tyIgTtUC.js +1 -0
- package/dist/p-uqSjmNkw.js +1 -0
- package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
- package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
- package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +1 -1
- package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +1 -1
- package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +1 -1
- package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +2 -2
- package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
- package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
- package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
- package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
- package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
- package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
- package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
- package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
- package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
- package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
- package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
- package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
- package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
- package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
- package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
- package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
- package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
- package/dist/types/components.d.ts +1352 -71
- package/dist/types/utils/childrenValidityUtils.d.ts +1 -1
- package/dist-bundled/es/gids-activity-gauge.js +6 -0
- package/dist-bundled/es/gids-bar-chart.js +6 -0
- package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
- package/dist-bundled/es/gids-calendar-month-list.js +6 -0
- package/dist-bundled/es/gids-calendar-year-list.js +6 -0
- package/dist-bundled/es/gids-calendar.js +153 -0
- package/dist-bundled/es/gids-chart-legend-item.js +6 -0
- package/dist-bundled/es/gids-chart-legend.js +6 -0
- package/dist-bundled/es/gids-chart.js +108 -0
- package/dist-bundled/es/gids-chevron-button.js +56 -0
- package/dist-bundled/es/gids-dot.js +6 -0
- package/dist-bundled/es/gids-dropdown-field.js +88 -0
- package/dist-bundled/es/gids-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-dropdown.js +6 -0
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-icon.js +4 -30
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +6 -0
- package/dist-bundled/es/gids-line-chart.js +6 -0
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +6 -6
- package/dist-bundled/es/gids-overlay-provider.js +17 -17
- package/dist-bundled/es/gids-password-field.js +29 -28
- package/dist-bundled/es/gids-pie-chart.js +6 -0
- package/dist-bundled/es/gids-popover.js +7 -7
- package/dist-bundled/es/gids-progress-circle.js +6 -0
- package/dist-bundled/es/gids-scrim.js +8 -8
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-text-field.js +16 -15
- package/dist-bundled/es/gids-toggle-button.js +8 -8
- package/dist-bundled/es/gids-tooltip.js +5 -5
- package/dist-bundled/es/index.js +1 -1
- package/dist-bundled/es/p-9_mrQ7ac-If6e6cvJ.js +71 -0
- package/dist-bundled/es/p-B81J5HCC-Bkt2yXKi.js +47 -0
- package/dist-bundled/es/p-BFHWXEeg-ByjSjz8i.js +133 -0
- package/dist-bundled/es/p-B_HaXpJZ-a2SDgQ0E.js +37 -0
- package/dist-bundled/es/p-BaO-kEWS-ZITkeP-j.js +241 -0
- package/dist-bundled/es/p-BiPAgxAQ-BtMBQpJY.js +31 -0
- package/dist-bundled/es/p-Bmb-HiXg-MyHWdhpw.js +80 -0
- package/dist-bundled/es/{p-veoOgDXg-fRinub-C.js → p-BnL97lOW-BO0p4EdC.js} +9 -9
- package/dist-bundled/es/{p-iCAclJND-Bmsvd-W1.js → p-BvYnawkJ-DohV9UNG.js} +3 -3
- package/dist-bundled/es/p-CIP0xyhD-D6y5soLj.js +180 -0
- package/dist-bundled/es/p-CJzporPT-I_OdjJsQ.js +92 -0
- package/dist-bundled/es/p-CPSHPtGE-C7baJgXR.js +115 -0
- package/dist-bundled/es/p-CRngHsR7-DL9wz3Z3.js +25 -0
- package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +646 -0
- package/dist-bundled/es/p-D93TNeOt-Vvshbux8.js +88 -0
- package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-DKsrt7dx-ImYLc4xz.js} +1 -1
- package/dist-bundled/es/p-DZWWuJac-DNQvnHAr.js +15 -0
- package/dist-bundled/es/p-D_wcwB7E-d3jYxfod.js +20 -0
- package/dist-bundled/es/p-Dehss-X0-Di5vMgvd.js +29 -0
- package/dist-bundled/es/{p-DvoHLz_5-C5EvA91N.js → p-DfFqFdmS-DjI2pk-0.js} +6 -6
- package/dist-bundled/es/{p-CFw4_-5A-Dzvju3VE.js → p-KxRqlvSh-JOFDmT0B.js} +5 -5
- package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +70 -0
- package/dist-bundled/es/p-h6alWGT8-CSY2g3c8.js +67 -0
- package/dist-bundled/es/p-quZYWCxU-CPyWW0nv.js +56 -0
- package/dist-bundled/es/p-tyIgTtUC-C8jR4A5G.js +71 -0
- package/dist-bundled/es/p-uqSjmNkw-Cz2T86sC.js +55 -0
- package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
- package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
- package/dist-bundled/umd/gids-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
- package/dist-bundled/umd/gids-dot.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-level-gauge.umd.js +5 -0
- package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
- package/dist-bundled/umd/gids-notification.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-pie-chart.umd.js +5 -0
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
- package/dist-bundled/umd/gids-scrim.umd.js +2 -2
- package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
- package/package.json +148 -4
- package/dist/p-CFw4_-5A.js +0 -1
- package/dist/p-DijVkS9b.js +0 -1
- package/dist/p-DybsMR13.js +0 -1
- package/dist/p-ibikYq-w.js +0 -1
- package/dist-bundled/es/p-DijVkS9b-CeV1i4T-.js +0 -35
- package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as i,H as e,h as a}from"./p-Ct3Ixgvf.js";import{GidsLineChartWebUtils as s}from"@ganpatiinfo/gids-web-shared";import{G as r}from"./p-Dehss-X0.js";import{d as l}from"./p-B_HaXpJZ.js";import{d as n}from"./p-B81J5HCC.js";const{getGidsLineChartClassNames:o}=s,d=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.breakpoint="desktop",this.legend="none",this.chartData=[],this.yAxisVisible=!1,this.dataPoints=[],this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}dataPointsChanged(t){this.dataPoints=t}legendChanged(t){this.legend=t}yAxisVisibilityChanged(t){this.yAxisVisible=t}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const t=this.hostElement.getBoundingClientRect();this.width=t.width,this.height=t.height>0?t.height:300}render(){if(this.chartLoading)return a("div",{class:"gids-line-chart__no-data"},a(r,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const t=this.chartData.flatMap((t=>Array.isArray(t?.data)?t.data.map((t=>t.value)):[])),i=t.length>0?Math.max(...t):10,e=Math.pow(10,Math.floor(Math.log10(i||1)));let s=e;i/e<=2?s=e/5:i/e<=5&&(s=e/2);const l=Math.ceil(i/s)*s;let n=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0)n=[...this.dataPoints].sort(((t,i)=>t-i));else{const t=5,i=l/(t-1);for(let e=0;e<t;e++)n.push(Math.round(0+e*i))}const d=Math.max(...n,l)-0||1,g=this?.chartData?.[0]?.data?.map((t=>t.label))??[],h=g.length,c=o({breakpoint:this.breakpoint});let p=!1,_=!1;return"mobile"===this.breakpoint?"none"!==this.legend&&(p=!0):"top"===this.legend?p=!0:"right"===this.legend&&(_=!0),a("div",{class:c},p?a("div",{class:"gids-line-chart__header"},a("gids-chart-legend",{orientation:"horizontal"},this.chartData.map(((t,i)=>a("gids-chart-legend-item",{key:t.label,seriesType:`${i+1}`,orientation:"horizontal"},t.label))))):null,a("div",{class:"gids-line-chart__main-container"},a("div",{class:"gids-line-chart__grid-layout"},a("span",{class:"gids-line-chart__y-axis-label"},this.yAxisLabel),a("div",{class:"gids-line-chart__chart-stage-container"},this.yAxisVisible?a("div",{class:"gids-line-chart__y-axis-scale-container"},n.map((t=>a("span",{class:"gids-line-chart__scale-text gids-line-chart__y-axis-scale-value",key:t,style:{bottom:(t-0)/d*100+"%"}},t)))):null,a("div",{class:"gids-line-chart__chart-stage"},a("svg",{viewBox:"0 0 100 100",class:"gids-line-chart__chart-vector",preserveAspectRatio:"none"},a("defs",null,this.chartData.map(((t,i)=>a("linearGradient",{id:`areaGradient-${i}`,x1:"0",y1:"0",x2:"0",y2:"1",key:i},a("stop",{offset:"0%",class:`gids-line-chart__gradient-start-${i}`}),a("stop",{offset:"100%",class:`gids-line-chart__gradient-end-${i}`}))))),n.map((t=>{const i=100-(t-0)/d*100;return a("line",{x1:"0",y1:i,x2:"100",y2:i,class:"gids-line-chart__grid-line",key:t})})),this.chartData.map(((t,i)=>{if(!Array.isArray(t.data)||t.data.length<2)return null;const e=t.data.map(((t,i)=>`${0===i?"M":"L"} ${i/(h-1)*100} ${100-(t.value-0)/d*100}`)).join(" ");return a("g",{key:t.label||i},a("path",{d:`${e} L 100 100 L 0 100 Z`,fill:`url(#areaGradient-${i})`,class:"gids-line-chart__chart-area"}),a("path",{d:e,class:`gids-line-chart__chart-line gids-line-chart__series-line-${i+1}`}))}))))),a("div",{class:"gids-line-chart__x-axis-scale-container"},g.map(((t,i)=>a("span",{class:"gids-line-chart__scale-text",key:i},t)))),a("span",{class:"gids-line-chart__x-axis-label"},this.xAxisLabel)),_?a("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((t,i)=>a("gids-chart-legend-item",{key:t.label,seriesType:`${i+1}`,orientation:"vertical"},t.label)))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-line-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-line-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-line-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-line-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-line-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-line-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-150);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-line-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-line-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-line-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%)}.gids-line-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-line-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-line-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-line-chart__chart-area{stroke:none}.gids-line-chart__chart-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.gids-line-chart__chart-line.gids-line-chart__series-line-1{stroke:var(--gids-color-icon-subtle)}.gids-line-chart__chart-line.gids-line-chart__series-line-2{stroke:var(--gids-color-icon-warning)}.gids-line-chart__chart-line.gids-line-chart__series-line-3{stroke:var(--gids-color-icon-danger)}.gids-line-chart__gradient-start-0{stop-color:rgba(127, 86, 217, 0.09);stop-opacity:1}.gids-line-chart__gradient-end-0{stop-color:rgba(127, 86, 217, 0.09);stop-opacity:0}.gids-line-chart__gradient-start-1{stop-color:rgba(127, 86, 217, 0.1);stop-opacity:1}.gids-line-chart__gradient-end-1{stop-color:rgba(127, 86, 217, 0.1);stop-opacity:0}.gids-line-chart__gradient-start-2{stop-color:rgba(127, 86, 217, 0.12);stop-opacity:1}.gids-line-chart__gradient-end-2{stop-color:rgba(127, 86, 217, 0.12);stop-opacity:0}.gids-line-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-between;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-100);box-sizing:border-box}.gids-line-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-line-chart__scale-text{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-line-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-line-chart",{breakpoint:[1],legend:[1],chartData:[16],yAxisVisible:[4,"y-axis-visible"],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],dataPoints:[16],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}]);function g(){"undefined"!=typeof customElements&&["gids-line-chart","gids-chart-legend","gids-chart-legend-item"].forEach((i=>{switch(i){case"gids-line-chart":customElements.get(t(i))||customElements.define(t(i),d);break;case"gids-chart-legend":customElements.get(t(i))||l();break;case"gids-chart-legend-item":customElements.get(t(i))||n()}}))}g();export{d as G,g as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s}from"./p-Ct3Ixgvf.js";import{GidsSpinnerControlWebUtils as e}from"@ganpatiinfo/gids-web-shared";import{GidsSpinnerControlCommonUtils as r}from"@ganpatiinfo/gids-core-shared";const{getGidsSpinnerControlClassNames:t}=e,{calculateStrokeDasharray:i,thickness:o,radius:a,centerPosition:n,viewBox:c}=r,l=({size:e,indeterminate:r,value:l,max:d,...p})=>{let g;return r||(g={strokeDashArray:i(l,d||0),strokeDashoffset:"0"}),s("svg",{class:t({size:e,indeterminate:r,value:l}),viewBox:c,...p},s("circle",{class:"gids-spinner-control__track",cx:n,cy:n,r:a,"stroke-width":o}),s("circle",{style:g,class:"gids-spinner-control__progress",cx:n,cy:n,r:a,"stroke-width":o}))};export{l as G}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s}from"./p-Ct3Ixgvf.js";import{GidsDismissButtonWebUtils as a}from"@ganpatiinfo/gids-web-shared";import{G as e}from"./p-BnL97lOW.js";const{getGidsDismissButtonClassNames:i}=a,r=({appearance:a="subtle",size:r="md",disabled:o=!1,class:l,onPressDismiss:p,label:t,...n})=>s("button",{class:i({appearance:a,size:r},l),onClick:p,disabled:o,"aria-label":t,...n},s(e,{name:"cross",appearance:"regular"}));export{r as G}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s}from"./p-Ct3Ixgvf.js";import{GidsButtonDockWebUtils as i,GidsFeedbackBlockWebUtils as a}from"@ganpatiinfo/gids-web-shared";const{getGidsButtonDockClassNames:e}=i,d=({class:i,primaryChildren:a,secondaryChildren:d,...c})=>s("div",{class:e(i),...c},s("div",{class:"gids-button-dock__secondary-area"},d),s("div",{class:"gids-button-dock__primary-area"},a)),{getGidsFeedbackBlockClassNames:c}=a,r=({title:i,supportingText:a,image:e,children:r})=>s("div",{class:c()},s("div",{class:"gids-feedback-block__inner-container"},e&&s("div",{class:"gids-feedback-block__image-container"},e),s("p",{class:"gids-feedback-block__title"},s("strong",null,i)),s("div",{class:"gids-feedback-block__supporting-text"},a),r&&s(d,{primaryChildren:r})));export{r as G}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s}from"./p-Ct3Ixgvf.js";import{GidsSpinnerCommonUtils as e}from"@ganpatiinfo/gids-core-shared";import{GidsSpinnerWebUtils as i}from"@ganpatiinfo/gids-web-shared";import{G as a}from"./p-DKsrt7dx.js";const{getGidsSpinnerClassNames:t}=i,{getElementVisibility:n}=e,r=({label:e,supportingText:i,size:r,indeterminate:p,value:o,max:l,class:m,...g})=>{const{hasLabel:d,hasSupportingText:x}=n({label:e,supportingText:i});return s("span",{class:t({size:r},m),...g},s(a,{size:r,indeterminate:p,value:o,max:l}),d&&s("span",{class:"gids-spinner__label"},e),x&&s("span",{class:"gids-spinner__supporting-text"},i))};export{r as G}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as i,h as s,F as a}from"./p-
|
|
1
|
+
import{t as e,p as t,H as i,h as s,F as a}from"./p-Ct3Ixgvf.js";import{isInteractiveElement as n}from"@ganpatiinfo/gids-web-shared";import{G as l}from"./p-BnL97lOW.js";import{G as d}from"./p-DKsrt7dx.js";const c=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.#e={},this._focusInput=e=>{const t=e.target;t===this.#t||this._isWithinInteractiveElement(t)||this.#t?.focus()},this._handleInputFocusAndBlur=e=>{this._el.dispatchEvent(new FocusEvent(e.type,{relatedTarget:e.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(null===e||e===this._el||!this._el.contains(e))return!1;if(n(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return s(a,{key:"8cfc78682bffd38298aaa5bc8fe63bc996f17586"},s("slot",{key:"5e5c57234e3e531b0d095597e021ab3d4756173d",name:"leadingIcon"}),this.leadingLabel&&s("span",{key:"5d0fc2c8a8716806891347f30ba961db61e1cf91",class:"gids-input__label"},this.leadingLabel),s("slot",{key:"881161160b2e933479c7af0a63846c0f86c7bbfe",name:"leadingAccessory"}),s("input",{key:"f0db6b63f0aa4a1a778743620753184ff0a7086a",...this.inputProps,ref:e=>{this.#t=e,void 0!==this.#e.value&&(this.#t.value=this.#e.value,delete this.#e.value),void 0!==this.#e.defaultValue&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),s("slot",{key:"5bb8549e6aa491b7ebbf56bce66bab6f386f98fe",name:"trailingAccessory"}),this.trailingLabel&&s("span",{key:"3ef3319efd5512bbd370e314724820a539e342f9",class:"gids-input__label"},this.trailingLabel),s("slot",{key:"22dcea487ee58e5df65a5b88d3f7ce7bcc32f828",name:"trailingIcon"}),"incomplete"===this.status&&s(l,{key:"808723d08c4e8a1533652d6c20fd7f8ff0e98275",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),"complete"===this.status&&s(l,{key:"10c61d22cb2a4fa56dc0de3025cfc07c1268f91e",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&s(d,{key:"58147d27b92c93a6bf9dde27c394de2868d6225e",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function r(){"undefined"!=typeof customElements&&["gids-input"].forEach((t=>{"gids-input"===t&&(customElements.get(e(t))||customElements.define(e(t),c))}))}r();export{c as G,r as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t}from"./p-Ct3Ixgvf.js";import{GidsButtonWebUtils as i,nonEmpty as s}from"@ganpatiinfo/gids-web-shared";import{G as e}from"./p-DKsrt7dx.js";const{getGidsButtonClassNames:n}=i,o=({appearance:i,size:o,destructive:a,positive:d,loading:r,width:p,leadingIcon:c,trailingIcon:l,as:g,disabled:m,class:u,forceIconOnly:b=!1,...v},f)=>{const I=g||"button",h="lg"===o||void 0===o?"md":o;return"button"!==I||"type"in v||(v.type="button"),t(I,{class:n({appearance:i,size:o,destructive:a,loading:r,width:p,positive:d},b||0===f.length&&s(c)&&!s(l),u),disabled:"button"===I?m:void 0,...v},t("span",{class:"gids-button__content"},c,f),r&&t(e,{size:h,indeterminate:!0}),l)};export{o as G}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,F as e}from"./p-Ct3Ixgvf.js";import{GidsDropdownMenuGroupWebUtils as i,GidsButtonGroupWebUtils as s,GidsHeadingWebUtils as n,GidsDropdownMenuWebUtils as l,GidsEditButtonWebUtils as d,GidsDividerWebUtils as a,GidsListItemWebUtils as o,GidsDropdownItemWebUtils as r}from"@ganpatiinfo/gids-web-shared";import{G as c}from"./p-Dehss-X0.js";import{G as g}from"./p-BnL97lOW.js";const{getGidsDropdownMenuGroupClassNames:p}=i,u=({type:e="no-options",supportingText:i="No options",class:s,...n},l)=>t("div",{class:p({type:e},s),...n},"loading"===e?t(c,{indeterminate:!0,size:"md"}):null,"no-options"===e?t("span",null,i):null,"default"===e&&null!=l?l:null),{getGidsButtonGroupClassNames:_}=s,m=({layout:e,children:i,class:s})=>t("span",{class:_({layout:e},s)},i),{getGidsHeadingClassNames:b,getGidsHeadingSupportingTextTypographyClass:y}=n,v=({heading:e,supportingText:i,level:s="section",children:n,supportingTextTypography:l,class:d})=>t("div",{class:b(d)},t("div",{class:"gids-heading__content-container"},null!=e&&""!==e?"string"==typeof e?""!==e?t("span",{class:"section"===s?"gids-heading__heading-text-section":"gids-heading__heading-text-group"},e):null:e:null,null!=i&&""!==i?"string"==typeof i?""!==i?t("span",{class:`${"section"===s?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${y(l)}`},i):null:i:null),n?t(m,{layout:"wrap"},n):null),{getGidsDropdownMenuClassNames:x}=l,f=({sectionLabel:e,class:i,...s},n)=>t("div",{class:x(i),...s},null!=e&&""!==e?t(v,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,null!=n?t("div",{class:"gids-dropdown-menu__children"},n):null),{getGidsEditButtonClassNames:h}=d,C=({disabled:e,children:i,size:s="md",editButtonType:n="add",onPressEditButton:l,class:d,...a})=>t("button",{class:h({size:s},d),...a,onClick:l,disabled:e},"custom"===n&&i?t("div",null,i):"add"===n?t("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},t(g,{name:"add",appearance:"filled",size:s})):"remove"===n?t("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},t(g,{appearance:"filled",name:"remove",size:s})):void 0),{getGidsDividerClassNames:I}=a,G=({orientation:e})=>t("hr",{class:I({orientation:e})}),{getGidsListItemClassNames:w}=o,T=({id:i,value:s,index:n,defaultSelectedIndex:l,disabled:d,selected:a,editButton:o,onPressEditButton:r,onPressListItem:c,leadingAccessory:p,leadingSupport:u,leadingParagraph:_,trailingContent:m,trailingAccessory:b,trailingSupport:y,trailingParagraph:v,divider:x,role:f="list-item-option",class:h,...I},T)=>t("button",{type:"button",id:i,class:w({selected:a,disabled:d},h),role:f,"aria-selected":a?"true":"false",disabled:d,value:(()=>{if("string"==typeof s&&""!==s.trim())return s;const t=T;return t?(Array.isArray(t)?t:[t]).map((t=>"string"==typeof t||"number"==typeof t?String(t):t&&"object"==typeof t&&"text"in t?t.text??"":"")).join("").trim():""})(),onClick:t=>{const e=t.currentTarget;if(!e)return;if(t.defaultPrevented||e.disabled)return;const i=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:n,defaultSelectedIndex:l}});c?.(i)},...I},t("div",{class:"gids-list-item__main-container"},null==o||"none"===o||d?null:t(C,{size:"md",editButtonType:o,onPressEditButton:r}),null!=p?t("div",{class:d?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},p):null,t("div",{class:"gids-list-item__middle-content-container"},t("div",{class:"gids-list-item__leading-content-container"},t(e,null,null!=T?t("span",{class:d?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},T):null,t("div",{class:"gids-list-item__leading-support-content"},null!=u?"string"==typeof u?t("p",{class:d?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},u):u:null,null!=_?"string"==typeof _?t("p",{class:d?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},_):_:null))),t("div",{class:"gids-list-item__trailing-content-container"},t(e,null,null!=m?"string"==typeof m?t("span",{class:d?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},m):m:null,t("div",{class:"gids-list-item__trailing-support-content"},null!=y?"string"==typeof y?t("p",{class:d?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},y):y:null,null!=v?"string"==typeof v?t("p",{class:d?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},v):v:null)))),a?t("div",{class:d?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},t(g,{name:"checkmark",size:"md",appearance:"regular"})):null,a||null==b?null:t("div",{class:d?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},b)),x&&!a?t("div",{class:"gids-list-item__divider"},t(G,{orientation:"horizontal"})):null),{getGidsDropdownItemClassNames:P}=r,B=({id:e,title:i,class:s,selected:n=!1,disabled:l=!1,role:d="list-item-option",value:a,name:o,onPressDropdownItem:r,index:c,defaultSelectedIndex:g,leadingAccessory:p,divider:u,..._})=>{const m=P("string"==typeof s?s:void 0);return t(T,{id:e,index:c??0,defaultSelectedIndex:g,selected:n,disabled:l,role:d,value:a,name:o,leadingAccessory:p,class:m,onPressListItem:t=>{if(t.defaultPrevented)return;const s=new CustomEvent("onPressDropdownItem",{bubbles:!0,composed:!0,detail:{id:e,title:i,value:a,disabled:l,selectedIndex:c,defaultSelectedIndex:g}});r?.(s)},divider:u,..._},i)};export{u as G,f as a,B as b}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as a,H as i,h as e}from"./p-Ct3Ixgvf.js";import{GidsActivityGaugeWebUtils as s}from"@ganpatiinfo/gids-web-shared";import{G as g}from"./p-Dehss-X0.js";import{d as l}from"./p-B_HaXpJZ.js";import{d as r}from"./p-B81J5HCC.js";const{getGidsActivityGaugeClassNames:n}=s,o=a(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.breakpoint="desktop",this.chartData=[],this.label="",this.size="xs",this.legend="none",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendChanged(t){this.legend=t}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const t=this.hostElement.getBoundingClientRect();this.width=t.width,this.height=t.height>0?t.height:240}render(){if(this.chartLoading)return e("div",{class:"gids-activity-gauge__no-data"},e(g,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const t=this.chartData.map((t=>t.value||0)),a=t.length>0?Math.max(...t):0,i=Math.max(1e3,a),s=i.toLocaleString(),l=n({breakpoint:this.breakpoint}),r=[{radius:42,strokeWidth:5.5},{radius:34,strokeWidth:5.5},{radius:26,strokeWidth:5.5}],o="xxs"===this.size,d="string"==typeof this.label&&""!==this.label.trim(),h=this.legend&&"right"===this.legend&&"mobile"!==this.breakpoint,p=this.legend&&("bottom"===this.legend||"mobile"===this.breakpoint);return e("div",{class:l},e("div",{class:"gids-activity-gauge__main-container"},e("div",{class:"gids-activity-gauge__chart-stage-container"},e("div",{class:`gids-activity-gauge__svg-wrapper gids-activity-gauge--size-${this.size}`},e("svg",{viewBox:"0 0 100 100",class:"gids-activity-gauge__chart-vector"},this.chartData.slice(0,3).map(((t,a)=>{const s=r[a]||r[0]||{radius:26,strokeWidth:5.5},g=i>0?Math.min(Math.max((t.value||0)/i,0),1):0,l=2*Math.PI*s.radius,n=`${g*l} ${l}`;return e("g",{key:t.label||a},e("circle",{cx:"50",cy:"50",r:s.radius,"stroke-width":s.strokeWidth,class:"gids-activity-gauge__track-background"}),e("circle",{cx:"50",cy:"50",r:s.radius,"stroke-width":s.strokeWidth,class:`gids-activity-gauge__segment gids-activity-gauge__segment-series-${a+1}`,"stroke-dasharray":n,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"}))}))),e("div",{class:"gids-activity-gauge__center-content"},d&&!o?e("span",{class:`gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}`},this.label):null,e("span",{class:`gids-activity-gauge__value-common gids-activity-gauge__value-${this.size}`},s)))),h?e("div",{class:"gids-activity-gauge__sidebar"},e("gids-chart-legend",{orientation:"vertical"},this.chartData.slice(0,3).map(((t,a)=>e("gids-chart-legend-item",{key:t.label,seriesType:`${a+1}`,orientation:"vertical"},t.label))))):null),o&&d?e("div",{class:"gids-activity-gauge__bottom-content"},e("span",{class:`gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}`},this.label)):null,p?e("div",{class:"gids-activity-gauge__legend-container gids-activity-gauge__legend-container--bottom"},e("gids-chart-legend",{orientation:"horizontal"},this.chartData.slice(0,3).map(((t,a)=>e("gids-chart-legend-item",{key:t.label,seriesType:`${a+1}`,orientation:"horizontal"},t.label))))):null)}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legend:[{legendChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-activity-gauge__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-activity-gauge__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-activity-gauge--size-xxs{width:180px;height:180px}.gids-activity-gauge--size-xs{width:220px;height:220px}.gids-activity-gauge--size-sm{width:260px;height:260px}.gids-activity-gauge--size-md{width:300px;height:300px}.gids-activity-gauge--size-lg{width:340px;height:340px}.gids-activity-gauge__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-activity-gauge__chart-vector{display:block;width:100%;height:100%}.gids-activity-gauge__track-background{fill:none;stroke:var(--gids-color-background-brand-subtlest-default);stroke-linecap:round}.gids-activity-gauge__segment{fill:none;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-1{stroke:var(--gids-color-icon-subtle)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-2{stroke:var(--gids-color-icon-warning)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-3{stroke:var(--gids-color-icon-danger)}.gids-activity-gauge__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-activity-gauge__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-md{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-activity-gauge__label-lg{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-activity-gauge__label-common{color:var(--gids-color-text-subtlest)}.gids-activity-gauge__value-xxs{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-activity-gauge__value-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-common{color:var(--gids-color-text-default)}.gids-activity-gauge__bottom-content{display:flex;justify-content:center;align-items:center;text-align:center}.gids-activity-gauge__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-activity-gauge",{breakpoint:[1],chartData:[16],label:[1],size:[1],legend:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legend:[{legendChanged:0}]}]);function d(){"undefined"!=typeof customElements&&["gids-activity-gauge","gids-chart-legend","gids-chart-legend-item"].forEach((a=>{switch(a){case"gids-activity-gauge":customElements.get(t(a))||customElements.define(t(a),o);break;case"gids-chart-legend":customElements.get(t(a))||l();break;case"gids-chart-legend-item":customElements.get(t(a))||r()}}))}d();export{o as G,d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as s,p as e,H as i,h as r}from"./p-Ct3Ixgvf.js";import{GidsProgressCircleWebUtils as t}from"@ganpatiinfo/gids-web-shared";import{CIRCLE_VAL_LESS_MAX_VAL_SUPPORTING_TEXT as a,CIRCLE_VAL_LESS_MAX_VAL_TITLE as l,HALF_CIRCLE_MAX_VAL as g,FULL_CIRCLE_MAX_VAL as o}from"@ganpatiinfo/gids-core-shared";import{G as p}from"./p-D_wcwB7E.js";import{G as n}from"./p-Dehss-X0.js";const{getGidsProgressCircleClassNames:c}=t,h=e(class extends i{constructor(s){super(),!1!==s&&this.__registerHost(),this.breakpoint="desktop",this.value=0,this.shape="circle",this.label="",this.size="xs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}valueChanged(){this.updateDimensions()}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const s=this.hostElement.getBoundingClientRect();this.width=s.width,this.height=s.height>0?s.height:240}render(){if(this.chartLoading)return r("div",{class:"gids-progress-circle__no-data"},r(n,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const s="half-circle"===this.shape?g:o;if(!("number"==typeof this.value&&!isNaN(this.value)&&this.value<=s&&this.value>=0))return r("div",{class:"gids-progress-circle__no-data"},r(p,{title:l,supportingText:a(s)}));const e=this.value/s,i=`${this.value}%`,t=c({breakpoint:this.breakpoint}),h="half-circle"===this.shape;let d=2*Math.PI*40,_=e*d,y=0,m="0 0 100 100",f="rotate(-90 50 50)";h&&(d=40*Math.PI,_=e*d,y=0,m="0 0 100 50",f="");const v="xxs"===this.size,x="string"==typeof this.label&&""!==this.label.trim();return r("div",{class:t},r("div",{class:"gids-progress-circle__main-container"},r("div",{class:`gids-progress-circle__svg-wrapper gids-progress-circle__svg-wrapper--shape-${this.shape}--size-${this.size}`},r("svg",{viewBox:m,class:"gids-progress-circle__chart-vector"},h?r("g",null,r("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__track-background"}),r("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__segment","stroke-dasharray":`${_} ${d}`,"stroke-dashoffset":y})):r("g",null,r("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__track-background"}),r("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__segment","stroke-dasharray":`${_} ${d}`,"stroke-dashoffset":y,transform:f}))),r("div",{class:`gids-progress-circle__center-content gids-progress-circle__shape-${this.shape}`},x&&!v?r("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label):null,r("span",{class:`gids-progress-circle__percentage-common gids-progress-circle__percentage-${this.size}`},i))),v&&x?r("div",{class:"gids-progress-circle__bottom-content"},r("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label)):null))}get hostElement(){return this}static get watchers(){return{value:[{valueChanged:0}],shape:[{valueChanged:0}]}}static get style(){return":host{display:block;box-sizing:border-box}.gids-progress-circle{display:block;box-sizing:border-box}.gids-progress-circle--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-progress-circle__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__svg-wrapper{position:relative;display:block;flex-shrink:0;}.gids-progress-circle__svg-wrapper--shape-circle--size-xxs{width:180px;height:180px}.gids-progress-circle__svg-wrapper--shape-circle--size-xs{width:220px;height:220px}.gids-progress-circle__svg-wrapper--shape-circle--size-sm{width:260px;height:260px}.gids-progress-circle__svg-wrapper--shape-circle--size-md{width:300px;height:300px}.gids-progress-circle__svg-wrapper--shape-circle--size-lg{width:340px;height:340px}.gids-progress-circle__svg-wrapper{}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xxs{width:180px;height:144px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xs{width:220px;height:130px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-sm{width:260px;height:152px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-md{width:300px;height:174px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-lg{width:340px;height:194px}.gids-progress-circle__chart-vector{display:block;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:6;stroke-linecap:round}.gids-progress-circle{}.gids-progress-circle__segment{fill:none;stroke:var(--gids-color-text-brand);stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out, stroke-dashoffset 0.4s ease-out}.gids-progress-circle{}.gids-progress-circle__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-progress-circle__shape-half-circle{justify-content:flex-end;align-items:center;bottom:var(--gids-padding-vertical-edge-to-element-300)}.gids-progress-circle__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-md{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-progress-circle__label-lg{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-progress-circle__label-common{color:var(--gids-color-text-subtlest)}.gids-progress-circle__percentage-xxs{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-common{color:var(--gids-color-text-default)}.gids-progress-circle{}.gids-progress-circle__bottom-content{display:flex;justify-content:center;text-align:center}.gids-progress-circle__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-progress-circle",{breakpoint:[1],value:[2],shape:[1],label:[1],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{value:[{valueChanged:0}],shape:[{valueChanged:0}]}]);function d(){"undefined"!=typeof customElements&&["gids-progress-circle"].forEach((e=>{"gids-progress-circle"===e&&(customElements.get(s(e))||customElements.define(s(e),h))}))}d();export{h as G,d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as i,H as t,h as s}from"./p-Ct3Ixgvf.js";import{GidsPieChartWebUtils as r}from"@ganpatiinfo/gids-web-shared";import{G as a}from"./p-Dehss-X0.js";import{d}from"./p-B_HaXpJZ.js";import{d as h}from"./p-B81J5HCC.js";const{getGidsPieChartClassNames:g}=r,n=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.breakpoint="desktop",this.legendVisible=!1,this.chartData=[],this.size="xxs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendVisibilityChanged(e){this.legendVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return s("div",{class:"gids-pie-chart__no-data"},s(a,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.length,i=this.chartData.reduce(((e,i)=>e+(i.value||0)),0);let t=i;e<6&&e>0&&(t=i+i/e*(6-e));const r=t>0?t:1,d=g({breakpoint:this.breakpoint}),h=2*Math.PI*25;let n=0;return s("div",{class:d},s("div",{class:"gids-pie-chart__main-container"},s("div",{class:"gids-pie-chart__chart-stage-container"},s("div",{class:`gids-pie-chart__svg-wrapper gids-pie-chart__svg-wrapper--size-${this.size}`},s("svg",{viewBox:"0 0 100 100",class:"gids-pie-chart__chart-vector"},s("circle",{cx:"50",cy:"50",r:25,class:"gids-pie-chart__track-background"}),this.chartData.map(((e,i)=>{const t=(e.value||0)/r,a=`${t*h} ${h}`,d=-n*h;return n+=t,s("circle",{key:e.label||i,cx:"50",cy:"50",r:25,class:`gids-pie-chart__segment gids-pie-chart__segment-series-${i+1}`,"stroke-dasharray":a,"stroke-dashoffset":d,transform:"rotate(-90 50 50)"})}))))),this.legendVisible?s("div",{class:"gids-pie-chart__legend-container"},s("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((e,i)=>s("gids-chart-legend-item",{key:e.label,seriesType:`${i+1}`,orientation:"vertical"},e.label))))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-pie-chart__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-pie-chart__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-pie-chart{}.gids-pie-chart__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-pie-chart__svg-wrapper--size-xxs{width:180px;height:180px}.gids-pie-chart__svg-wrapper--size-xs{width:220px;height:220px}.gids-pie-chart__svg-wrapper--size-sm{width:260px;height:260px}.gids-pie-chart__svg-wrapper--size-md{width:300px;height:300px}.gids-pie-chart__svg-wrapper--size-lg{width:340px;height:340px}.gids-pie-chart__chart-vector{display:block;width:100%;height:100%}.gids-pie-chart{}.gids-pie-chart__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:12;}.gids-pie-chart__segment{fill:none;stroke-width:12;stroke-linecap:butt;transition:stroke-dashoffset 0.3s ease;}.gids-pie-chart__segment.gids-pie-chart__segment-series-1{stroke:var(--gids-color-icon-subtle);}.gids-pie-chart__segment.gids-pie-chart__segment-series-2{stroke:var(--gids-color-icon-warning);}.gids-pie-chart__segment.gids-pie-chart__segment-series-3{stroke:var(--gids-color-icon-danger);}.gids-pie-chart__segment.gids-pie-chart__segment-series-4{stroke:var(--gids-color-background-positive-bold-hovered);}.gids-pie-chart__segment.gids-pie-chart__segment-series-5{stroke:var(--gids-color-background-information-bold-default);}.gids-pie-chart__segment.gids-pie-chart__segment-series-6{stroke:rgb(238, 70, 188);}.gids-pie-chart__legend-container{display:inline-flex;align-items:flex-start}.gids-pie-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-pie-chart",{breakpoint:[1],legendVisible:[4,"legend-visible"],chartData:[16],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}]);function c(){"undefined"!=typeof customElements&&["gids-pie-chart","gids-chart-legend","gids-chart-legend-item"].forEach((i=>{switch(i){case"gids-pie-chart":customElements.get(e(i))||customElements.define(e(i),n);break;case"gids-chart-legend":customElements.get(e(i))||d();break;case"gids-chart-legend-item":customElements.get(e(i))||h()}}))}c();export{n as G,c as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as a,p as e,H as t,h as l}from"./p-Ct3Ixgvf.js";import{GidsLevelGaugeWebUtils as i}from"@ganpatiinfo/gids-web-shared";import{CIRCLE_VAL_LESS_MAX_VAL_SUPPORTING_TEXT as s,CIRCLE_VAL_LESS_MAX_VAL_TITLE as g,FULL_CIRCLE_MAX_VAL as r}from"@ganpatiinfo/gids-core-shared";import{G as n}from"./p-D_wcwB7E.js";import{G as o}from"./p-Dehss-X0.js";const{getGidsLevelGaugeClassNames:p}=i,d=e(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.breakpoint="desktop",this.value=0,this.label="Completed",this.size="xxs",this.color="amber",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}valueChanged(){this.updateDimensions()}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const a=this.hostElement.getBoundingClientRect();this.width=a.width,this.height=a.height>0?a.height:240}render(){if(this.chartLoading)return l("div",{class:"gids-level-gauge__no-data"},l(o,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));let a=0;"number"==typeof this.value&&!isNaN(this.value)&&(a=this.value);const e=r;if(!("number"==typeof this.value&&!isNaN(this.value)&&this.value<=e&&this.value>=0))return l("div",{class:"gids-level-gauge__no-data"},l(n,{title:g,supportingText:s(100),image:l("slot",{name:"chartFeedbackBlockImage"})}));const t=Math.min(Math.max(a/e,0),1),i=`${Math.round(100*t)}%`,d=p({breakpoint:this.breakpoint}),h=2*Math.PI*40,_=`${t*h} ${h}`,y="xxs"===this.size;return l("div",{class:d},l("div",{class:`gids-level-gauge__main-container gids-level-gauge__main-container--variant-${this.color}`},l("div",{class:`gids-level-gauge__svg-wrapper gids-level-gauge__svg-wrapper--size-${this.size}`},l("svg",{viewBox:"0 0 100 100",class:"gids-level-gauge__chart-vector"},l("circle",{cx:"50",cy:"50",r:40,class:"gids-level-gauge__track-background"}),l("circle",{cx:"50",cy:"50",r:40,class:`gids-level-gauge__segment gids-level-gauge__segment--variant-${this.color}`,"stroke-dasharray":_,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"})),l("div",{class:"gids-level-gauge__center-content"},y?null:l("span",{class:`gids-level-gauge__label-common gids-level-gauge__label-${this.size}`},this.label),l("span",{class:`gids-level-gauge__percentage-common gids-level-gauge__percentage-${this.size}`},i))),y?l("div",{class:"gids-level-gauge__bottom-content"},l("span",{class:`gids-level-gauge__label-common gids-level-gauge__label-${this.size}`},this.label)):null))}get hostElement(){return this}static get watchers(){return{value:[{valueChanged:0}],max:[{valueChanged:0}]}}static get style(){return":host{display:block;box-sizing:border-box}.gids-level-gauge{display:block;box-sizing:border-box}.gids-level-gauge--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-level-gauge__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-level-gauge{}.gids-level-gauge__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-level-gauge__svg-wrapper--size-xxs{width:180px;height:180px}.gids-level-gauge__svg-wrapper--size-xs{width:220px;height:220px}.gids-level-gauge__svg-wrapper--size-sm{width:260px;height:260px}.gids-level-gauge__svg-wrapper--size-md{width:300px;height:300px}.gids-level-gauge__svg-wrapper--size-lg{width:340px;height:340px}.gids-level-gauge__chart-vector{display:block;width:100%;height:100%}.gids-level-gauge{}.gids-level-gauge__main-container{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-level-gauge__main-container--variant-amber .gids-level-gauge__track-background{stroke:rgb(248, 248, 248)}.gids-level-gauge__main-container--variant-burgundy .gids-level-gauge__track-background{stroke:rgb(246, 243, 243)}.gids-level-gauge__main-container--variant-teal .gids-level-gauge__track-background{stroke:rgb(232, 245, 250)}.gids-level-gauge__track-background{fill:none;stroke-width:6}.gids-level-gauge__segment{fill:none;stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out}.gids-level-gauge__segment--variant-amber{stroke:rgb(80, 82, 88)}.gids-level-gauge__segment--variant-burgundy{stroke:rgb(132, 84, 95)}.gids-level-gauge__segment--variant-teal{stroke:rgb(23, 60, 102)}.gids-level-gauge{}.gids-level-gauge__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;gap:var(--gids-gap-025)}.gids-level-gauge__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-md{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-level-gauge__label-lg{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-level-gauge__label-common{color:var(--gids-color-text-subtlest)}.gids-level-gauge__percentage-xxs{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-common{color:var(--gids-color-text-default)}.gids-level-gauge{}.gids-level-gauge__bottom-content{display:flex;justify-content:center;text-align:center}.gids-level-gauge__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[260,"gids-level-gauge",{breakpoint:[1],value:[2],label:[1],size:[1],color:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{value:[{valueChanged:0}],max:[{valueChanged:0}]}]);function h(){"undefined"!=typeof customElements&&["gids-level-gauge"].forEach((e=>{"gids-level-gauge"===e&&(customElements.get(a(e))||customElements.define(a(e),d))}))}h();export{d as G,h as d}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type FunctionalComponent, type JSXBase } from '../../../stencil-public-runtime';
|
|
2
|
+
import { GidsCalendarCellSelectEventDetail } from '@ganpatiinfo/gids-core-shared';
|
|
3
|
+
import { GidsCalendarCellWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
4
|
+
export interface GidsCalendarCellProps extends GidsCalendarCellWebProps, Omit<JSXBase.IntrinsicElements['button'], 'label' | 'children' | 'onClick' | 'disabled' | 'selected'> {
|
|
5
|
+
onPressCalendarCell?: (event: CustomEvent<GidsCalendarCellSelectEventDetail>) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const GidsCalendarCell: FunctionalComponent<GidsCalendarCellProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FunctionalComponent, JSXBase } from '../../../stencil-public-runtime';
|
|
2
|
+
import { GidsCalendarDayCellWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
export type GidsCalendarDayCellProps = GidsCalendarDayCellWebProps & Omit<JSXBase.IntrinsicElements['button'], 'label' | 'children' | 'onClick' | 'disabled' | 'selected'>;
|
|
4
|
+
export declare const GidsCalendarDayCell: FunctionalComponent<GidsCalendarDayCellProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GidsDropdownItemWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import { FunctionalComponent, JSXBase, VNode } from '../../../stencil-public-runtime';
|
|
3
3
|
import { GidsDropdownItemSelectEventDetail } from '@ganpatiinfo/gids-core-shared';
|
|
4
|
-
type NativeButtonProps = Omit<JSXBase.IntrinsicElements['button'], 'disabled' | 'type' | 'onClick' | 'children' | 'value'>;
|
|
4
|
+
type NativeButtonProps = Omit<JSXBase.IntrinsicElements['button'], 'disabled' | 'type' | 'onClick' | 'children' | 'value' | 'id'>;
|
|
5
5
|
export interface GidsDropdownItemProps extends GidsDropdownItemWebProps<VNode>, NativeButtonProps {
|
|
6
6
|
onPressDropdownItem?: (event: CustomEvent<GidsDropdownItemSelectEventDetail>) => void;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionalComponent, VNode } from '../../../stencil-public-runtime';
|
|
2
2
|
import { JSXBase } from '../../../stencil-public-runtime';
|
|
3
3
|
import { type GidsDropdownMenuWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
4
|
-
export interface GidsDropdownMenuProps extends GidsDropdownMenuWebProps<VNode>, Omit<JSXBase.IntrinsicElements['div'], '
|
|
4
|
+
export interface GidsDropdownMenuProps extends Omit<GidsDropdownMenuWebProps<VNode>, 'children'>, Omit<JSXBase.IntrinsicElements['div'], 'onClick' | 'id'> {
|
|
5
5
|
}
|
|
6
6
|
export declare const GidsDropdownMenu: FunctionalComponent<GidsDropdownMenuProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VNode } from '../../../stencil-public-runtime';
|
|
2
2
|
import { FunctionalComponent, JSXBase } from '../../../stencil-public-runtime';
|
|
3
3
|
import { GidsDropdownMenuGroupWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
4
|
-
export type GidsDropdownMenuGroupProps = GidsDropdownMenuGroupWebProps<VNode> & Omit<JSXBase.IntrinsicElements['div'], 'onClick' | '
|
|
4
|
+
export type GidsDropdownMenuGroupProps = Omit<GidsDropdownMenuGroupWebProps<VNode>, 'children'> & Omit<JSXBase.IntrinsicElements['div'], 'onClick' | 'id'>;
|
|
5
5
|
export declare const GidsDropdownMenuGroup: FunctionalComponent<GidsDropdownMenuGroupProps>;
|
|
@@ -2,8 +2,8 @@ import { FunctionalComponent, type VNode } from '../../../stencil-public-runtime
|
|
|
2
2
|
import { GidsListItemWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
3
3
|
import { type JSXBase } from '../../../stencil-public-runtime';
|
|
4
4
|
import { GidsListItemSelectEventDetail } from '@ganpatiinfo/gids-core-shared';
|
|
5
|
-
type NativeButtonProps = Omit<JSXBase.IntrinsicElements['button'], '
|
|
6
|
-
export interface GidsListItemProps extends GidsListItemWebProps<VNode | string, VNode, VNode | string, VNode | string>, NativeButtonProps {
|
|
5
|
+
type NativeButtonProps = Omit<JSXBase.IntrinsicElements['button'], 'onClick' | 'disabled' | 'type' | 'value' | 'id'>;
|
|
6
|
+
export interface GidsListItemProps extends Omit<GidsListItemWebProps<VNode | string, VNode, VNode | string, VNode | string>, 'children'>, NativeButtonProps {
|
|
7
7
|
onPressEditButton?: (this: HTMLButtonElement, event: Event) => void;
|
|
8
8
|
onPressListItem?: (event: CustomEvent<GidsListItemSelectEventDetail>) => void;
|
|
9
9
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type JSXBase, type VNode } from '../../../stencil-public-runtime';
|
|
2
|
+
import { GidsPageTitleWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
export type GidsPageTitleProps = Omit<JSXBase.IntrinsicElements['div'], 'title'> & Omit<GidsPageTitleWebProps<VNode, never>, 'children'>;
|
|
4
|
+
export declare const GidsPageTitle: ({ level, leadingAccessory, trailingAccessory, class: className, ...restProps }: GidsPageTitleProps, children: VNode | string) => any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GidsActivityGaugeWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsActivityGaugeLegendPosition, GidsActivityGaugeSize, type GidsActivityGaugeData, type GidsChartBreakpoint, type GidsSpinnerSize } from '@ganpatiinfo/gids-core-shared';
|
|
3
|
+
export declare class GidsActivityGauge implements GidsActivityGaugeWebProps {
|
|
4
|
+
private hostElement;
|
|
5
|
+
breakpoint?: GidsChartBreakpoint;
|
|
6
|
+
chartData: GidsActivityGaugeData[];
|
|
7
|
+
label?: string;
|
|
8
|
+
size?: GidsActivityGaugeSize;
|
|
9
|
+
legend?: GidsActivityGaugeLegendPosition;
|
|
10
|
+
chartLoaderSize?: GidsSpinnerSize;
|
|
11
|
+
chartLoading?: boolean;
|
|
12
|
+
chartLoadingTitle?: string;
|
|
13
|
+
chartLoadingSupportingText?: string;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
private resizeObserver;
|
|
17
|
+
protected chartDataChanged(): void;
|
|
18
|
+
protected legendChanged(next: GidsActivityGaugeLegendPosition): void;
|
|
19
|
+
componentDidLoad(): void;
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
private updateDimensions;
|
|
22
|
+
render(): any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GidsBarChartWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsChartBreakpoint, GidsBarChartData, GidsSpinnerSize, GidsBarChartLegendPosition } from '@ganpatiinfo/gids-core-shared';
|
|
3
|
+
export declare class GidsBarChart implements GidsBarChartWebProps {
|
|
4
|
+
private hostElement;
|
|
5
|
+
breakpoint?: GidsChartBreakpoint;
|
|
6
|
+
legend?: GidsBarChartLegendPosition;
|
|
7
|
+
chartData: GidsBarChartData[];
|
|
8
|
+
yAxisVisible?: boolean;
|
|
9
|
+
xAxisLabel?: string;
|
|
10
|
+
yAxisLabel?: string;
|
|
11
|
+
dataPoints?: number[];
|
|
12
|
+
chartLoaderSize?: GidsSpinnerSize;
|
|
13
|
+
chartLoading?: boolean;
|
|
14
|
+
chartLoadingTitle?: string;
|
|
15
|
+
chartLoadingSupportingText?: string;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
private resizeObserver;
|
|
19
|
+
protected chartDataChanged(): void;
|
|
20
|
+
protected dataPointsChanged(next: number[]): void;
|
|
21
|
+
protected legendChanged(next: GidsBarChartLegendPosition): void;
|
|
22
|
+
protected yAxisVisibilityChanged(next: boolean): void;
|
|
23
|
+
componentDidLoad(): void;
|
|
24
|
+
disconnectedCallback(): void;
|
|
25
|
+
private updateDimensions;
|
|
26
|
+
render(): any;
|
|
27
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type GidsCalendarWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsButtonAppearance, GidsCalendarDateSelectionEventDetails, GidsCalendarHeaderPanelActionsEventDetail, GidsCalendarHeaderPanelItemSelectEventDetail, GidsCalendarWidth } from '@ganpatiinfo/gids-core-shared';
|
|
3
|
+
export declare class GidsCalendar implements GidsCalendarWebProps {
|
|
4
|
+
width?: GidsCalendarWidth;
|
|
5
|
+
panelActionsAppearance?: GidsButtonAppearance;
|
|
6
|
+
selectedDate?: string;
|
|
7
|
+
dotVisibleDates?: string[];
|
|
8
|
+
startYear?: number;
|
|
9
|
+
endYear?: number;
|
|
10
|
+
monthPickerDisabled?: boolean;
|
|
11
|
+
yearPickerDisabled?: boolean;
|
|
12
|
+
previousDisabled?: boolean;
|
|
13
|
+
nextDisabled?: boolean;
|
|
14
|
+
panelDisabled?: boolean;
|
|
15
|
+
activeMonthNumber?: number;
|
|
16
|
+
activeYear?: number;
|
|
17
|
+
onNextChange?: (event: GidsCalendarHeaderPanelActionsEventDetail) => void;
|
|
18
|
+
onPreviousChange?: (event: GidsCalendarHeaderPanelActionsEventDetail) => void;
|
|
19
|
+
onPanelMonthChange?: (event: GidsCalendarHeaderPanelItemSelectEventDetail) => void;
|
|
20
|
+
onPanelYearChange?: (event: GidsCalendarHeaderPanelItemSelectEventDetail) => void;
|
|
21
|
+
onSelectionCalendarCell?: (event: GidsCalendarDateSelectionEventDetails) => void;
|
|
22
|
+
private currentMonth;
|
|
23
|
+
private currentYear;
|
|
24
|
+
protected handleActiveMonthPropChange(newValue: number): void;
|
|
25
|
+
protected handleActiveYearPropChange(newValue: number): void;
|
|
26
|
+
componentWillLoad(): void;
|
|
27
|
+
private handleCHPOnPreviousActionEvent;
|
|
28
|
+
private handleCHPOnNextActionEvent;
|
|
29
|
+
private handleCHPOnPanelMonthChangeEvent;
|
|
30
|
+
private handleCHPOnPanelYearChangeEvent;
|
|
31
|
+
private handleDateCellClick;
|
|
32
|
+
private setLocalStates;
|
|
33
|
+
render(): any;
|
|
34
|
+
}
|
package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { GidsButtonAppearance, GidsCalendarHeaderPanelActionsEventDetail, type GidsCalendarHeaderPanelItemSelectEventDetail } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { type GidsCalendarHeaderPanelWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
export declare class GidsCalendarHeaderPanel implements GidsCalendarHeaderPanelWebProps {
|
|
4
|
+
private hostElement;
|
|
5
|
+
selectedMonthNumber?: number;
|
|
6
|
+
selectedYear?: number;
|
|
7
|
+
startYear?: number;
|
|
8
|
+
endYear?: number;
|
|
9
|
+
appearance?: GidsButtonAppearance;
|
|
10
|
+
monthPickerDisabled?: boolean;
|
|
11
|
+
yearPickerDisabled?: boolean;
|
|
12
|
+
panelDisabled?: boolean;
|
|
13
|
+
previousDisabled?: boolean;
|
|
14
|
+
nextDisabled?: boolean;
|
|
15
|
+
expandedMonthPicker?: boolean;
|
|
16
|
+
expandedYearPicker?: boolean;
|
|
17
|
+
onPreviousChange?: (event: GidsCalendarHeaderPanelActionsEventDetail) => void;
|
|
18
|
+
onNextChange?: (event: GidsCalendarHeaderPanelActionsEventDetail) => void;
|
|
19
|
+
onPanelMonthChange?: (event: GidsCalendarHeaderPanelItemSelectEventDetail) => void;
|
|
20
|
+
onPanelYearChange?: (event: GidsCalendarHeaderPanelItemSelectEventDetail) => void;
|
|
21
|
+
private panelMonth?;
|
|
22
|
+
private panelMonthNumber?;
|
|
23
|
+
private panelYear?;
|
|
24
|
+
private panelDisplayValue?;
|
|
25
|
+
private internalPreviousDisabled?;
|
|
26
|
+
private internalNextDisabled?;
|
|
27
|
+
private suppressNextMenuClickSelection;
|
|
28
|
+
private suppressNextActionClickSelection;
|
|
29
|
+
private fallbackYear;
|
|
30
|
+
private fallbackMonth;
|
|
31
|
+
private fallbackStartYear;
|
|
32
|
+
private fallbackEndYear;
|
|
33
|
+
protected handleSelectedMonthNumberChange(newValue: number): void;
|
|
34
|
+
protected handleSelectedYearChange(newValue: number): void;
|
|
35
|
+
protected handleExpandedMonthPickerChange(next: boolean): void;
|
|
36
|
+
protected handleExpandedYearPickerChange(next: boolean): void;
|
|
37
|
+
protected handleMonthPickerInteractivityChange(): void;
|
|
38
|
+
protected handleYearPickerInteractivityChange(): void;
|
|
39
|
+
protected handleAppearanceChange(next: GidsButtonAppearance): void;
|
|
40
|
+
connectedCallback(): void;
|
|
41
|
+
private readonly handleMonthPickerMenuClick;
|
|
42
|
+
private applyMonthSelection;
|
|
43
|
+
private readonly handleYearPickerMenuClick;
|
|
44
|
+
private applyYearSelection;
|
|
45
|
+
private setExpandedMonthPickerState;
|
|
46
|
+
private setExpandedYearPickerState;
|
|
47
|
+
private syncPanelDisplayValue;
|
|
48
|
+
private handlePreviousActionClick;
|
|
49
|
+
private handleNextActionClick;
|
|
50
|
+
private applyActionsSelection;
|
|
51
|
+
private checkPrevYearIsAllowed;
|
|
52
|
+
private checkNextYearIsAllowed;
|
|
53
|
+
private isPreviousActionInteractive;
|
|
54
|
+
private isNextActionInteractive;
|
|
55
|
+
private onPreviousActionChange;
|
|
56
|
+
private onNextActionChange;
|
|
57
|
+
private isMonthPickerInteractive;
|
|
58
|
+
private isYearPickerInteractive;
|
|
59
|
+
private coerceEvent;
|
|
60
|
+
private updatePanelMonth;
|
|
61
|
+
private updatePanelYear;
|
|
62
|
+
private setPreviousActionInteractivity;
|
|
63
|
+
private setNextActionInteractivity;
|
|
64
|
+
private updateActionProps;
|
|
65
|
+
private getPanelValue;
|
|
66
|
+
render(): any;
|
|
67
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { GidsMenuGroupType, type GidsCalendarMonthListItemSelectEventDetail } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { GidsCalendarMonthListWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
export declare class GidsCalendarMonthList implements GidsCalendarMonthListWebProps {
|
|
4
|
+
private hostElement;
|
|
5
|
+
type?: GidsMenuGroupType;
|
|
6
|
+
noOptionsText?: string;
|
|
7
|
+
disabledIndices?: number[];
|
|
8
|
+
divider?: boolean;
|
|
9
|
+
selectedMonthNumber?: number;
|
|
10
|
+
onSelectionMonthChange?: (event: GidsCalendarMonthListItemSelectEventDetail) => void;
|
|
11
|
+
private hasItemListener;
|
|
12
|
+
private suppressNextMenuClickSelection;
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
private getItemElements;
|
|
16
|
+
private readonly handleCalendarMenuItemSelect;
|
|
17
|
+
private readonly handleMenuClick;
|
|
18
|
+
private attachItemListener;
|
|
19
|
+
private detachItemListener;
|
|
20
|
+
private applySelection;
|
|
21
|
+
private clearActive;
|
|
22
|
+
private monthsList;
|
|
23
|
+
private getSelectedItem;
|
|
24
|
+
private isItemSelected;
|
|
25
|
+
render(): any;
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { GidsMenuGroupType, type GidsCalendarYearListItemSelectEventDetail } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { GidsCalendarYearListWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
export declare class GidsCalendarYearList implements GidsCalendarYearListWebProps {
|
|
4
|
+
private hostElement;
|
|
5
|
+
type?: GidsMenuGroupType;
|
|
6
|
+
noOptionsText?: string;
|
|
7
|
+
disabledIndices?: number[];
|
|
8
|
+
divider?: boolean;
|
|
9
|
+
selectedYear?: number;
|
|
10
|
+
startYear?: number;
|
|
11
|
+
endYear?: number;
|
|
12
|
+
onSelectionYearChange?: (event: GidsCalendarYearListItemSelectEventDetail) => void;
|
|
13
|
+
newStartYear: number;
|
|
14
|
+
newEndYear: number;
|
|
15
|
+
private hasItemListener;
|
|
16
|
+
private suppressNextMenuClickSelection;
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
disconnectedCallback(): void;
|
|
19
|
+
private getItemElements;
|
|
20
|
+
private readonly handleCalendarMenuItemSelect;
|
|
21
|
+
private readonly handleMenuClick;
|
|
22
|
+
private attachItemListener;
|
|
23
|
+
private detachItemListener;
|
|
24
|
+
private handleStartAndEndYear;
|
|
25
|
+
private applySelection;
|
|
26
|
+
private clearActive;
|
|
27
|
+
private yearsList;
|
|
28
|
+
private getSelectedItem;
|
|
29
|
+
private isItemSelected;
|
|
30
|
+
render(): any;
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GidsChartWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsActivityGaugeCommonProps, GidsBarChartCommonProps, GidsChartBreakpoint, GidsChartType, GidsLevelGaugeCommonProps, GidsLineChartCommonProps, GidsPieChartCommonProps, GidsProgressCircleCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
3
|
+
export declare class GidsChart implements GidsChartWebProps {
|
|
4
|
+
breakpoint?: GidsChartBreakpoint;
|
|
5
|
+
chartType?: GidsChartType;
|
|
6
|
+
lineChartProps?: GidsLineChartCommonProps;
|
|
7
|
+
barChartProps?: GidsBarChartCommonProps;
|
|
8
|
+
pieChartProps?: GidsPieChartCommonProps;
|
|
9
|
+
activityGaugeProps?: GidsActivityGaugeCommonProps;
|
|
10
|
+
levelGaugeProps?: GidsLevelGaugeCommonProps;
|
|
11
|
+
progressCircleProps?: GidsProgressCircleCommonProps;
|
|
12
|
+
protected handleBreakpointChange(next: GidsChartBreakpoint): void;
|
|
13
|
+
protected handleChartTypeChange(next: GidsChartType): void;
|
|
14
|
+
private getChartTypes;
|
|
15
|
+
private isChartTypeValid;
|
|
16
|
+
private isChartDataValid;
|
|
17
|
+
private getChartTypeText;
|
|
18
|
+
render(): any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GidsChartLegendWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsChartLegendItemOrientation } from '@ganpatiinfo/gids-core-shared';
|
|
3
|
+
export declare class GidsChartLegend implements Omit<GidsChartLegendWebProps<never>, 'children'> {
|
|
4
|
+
orientation?: GidsChartLegendItemOrientation;
|
|
5
|
+
protected handleOrientationChange(next: GidsChartLegendItemOrientation): void;
|
|
6
|
+
render(): any;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GidsChartLegendItemWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsChartLegendItemSeriesType, GidsChartLegendItemOrientation } from '@ganpatiinfo/gids-core-shared';
|
|
3
|
+
export declare class GidsChartLegendItem implements Omit<GidsChartLegendItemWebProps<never>, 'children'> {
|
|
4
|
+
orientation?: GidsChartLegendItemOrientation;
|
|
5
|
+
seriesType?: GidsChartLegendItemSeriesType;
|
|
6
|
+
protected handleOrientationChange(next: GidsChartLegendItemOrientation): void;
|
|
7
|
+
protected handleSeriesTypeChange(next: GidsChartLegendItemSeriesType): void;
|
|
8
|
+
render(): any;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { GidsChevronButtonWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
import { GidsButtonSize } from '@ganpatiinfo/gids-core-shared';
|
|
4
|
+
export declare class GidsChevronButton implements GidsChevronButtonWebProps {
|
|
5
|
+
private _el;
|
|
6
|
+
private activeClasses;
|
|
7
|
+
extraClasses?: string;
|
|
8
|
+
size?: GidsButtonSize;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
ariaLabel: string | null;
|
|
11
|
+
ariaHaspopup: string | null;
|
|
12
|
+
ariaExpanded: string | null;
|
|
13
|
+
ariaControls: string | null;
|
|
14
|
+
gidsChevronButton: EventEmitter<PointerEvent>;
|
|
15
|
+
handleExtraClassesAndSizeChange(newValue: string | undefined): void;
|
|
16
|
+
handleSizeChange(newValue?: GidsButtonSize): void;
|
|
17
|
+
handleDisabledChange(newValue?: boolean): void;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
componentDidLoad(): void;
|
|
20
|
+
render(): any;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GidsDotWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsDotAppearance, GidsDotSize } from '@ganpatiinfo/gids-core-shared';
|
|
3
|
+
export declare class GidsDot implements GidsDotWebProps {
|
|
4
|
+
private _el;
|
|
5
|
+
extraClasses?: string;
|
|
6
|
+
appearance?: GidsDotAppearance;
|
|
7
|
+
size?: GidsDotSize;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
private activeClasses;
|
|
10
|
+
handleExtraClassesAndSizeChange(newValue: string | undefined): void;
|
|
11
|
+
handleAppearanceChange(newValue?: GidsDotAppearance): void;
|
|
12
|
+
handleSizeChange(newValue?: GidsDotSize): void;
|
|
13
|
+
handleDisabledChange(newValue?: boolean): void;
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
componentDidLoad(): void;
|
|
16
|
+
render(): any;
|
|
17
|
+
}
|