@ganpatiinfo/gids-core-web 10.0.0 → 10.2.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 +260 -0
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +11 -0
- package/dist/gids-action-bar.js +1 -0
- package/dist/gids-activity-gauge.d.ts +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-bar-chart.d.ts +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.d.ts +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.d.ts +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.d.ts +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.d.ts +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.d.ts +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.d.ts +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.d.ts +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.d.ts +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.d.ts +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.d.ts +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.d.ts +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.d.ts +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +11 -0
- package/dist/gids-filter.js +1 -0
- 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 +1 -1
- package/dist/gids-level-gauge.js +1 -1
- package/dist/gids-line-chart.d.ts +1 -1
- package/dist/gids-line-chart.js +1 -1
- 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 +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.d.ts +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-progress-circle.d.ts +1 -1
- package/dist/gids-progress-circle.js +1 -1
- 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-tab-item.d.ts +11 -0
- package/dist/gids-tab-item.js +1 -0
- package/dist/gids-tab.d.ts +11 -0
- package/dist/gids-tab.js +1 -0
- 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-h6alWGT8.js → p-5VIPb1eU.js} +1 -1
- package/dist/{p-BiPAgxAQ.js → p-8tOn5SjU.js} +1 -1
- package/dist/{p-Bmb-HiXg.js → p-B1Jgtjhu.js} +1 -1
- package/dist/{p-B81J5HCC.js → p-BYDimyG-.js} +1 -1
- package/dist/p-Bf3p-DY2.js +1 -0
- package/dist/{p-tyIgTtUC.js → p-BfnzH6wp.js} +1 -1
- package/dist/p-Bj28yqMD.js +1 -0
- package/dist/{p-CJzporPT.js → p-C-cUL-aA.js} +1 -1
- package/dist/{p-BvYnawkJ.js → p-C7ifjRCE.js} +1 -1
- package/dist/p-CHGTBObD.js +1 -0
- package/dist/{p-D_wcwB7E.js → p-CaauwQNd.js} +1 -1
- package/dist/p-Ciw-O9qN.js +1 -0
- package/dist/{p-quZYWCxU.js → p-CoS0NuDU.js} +1 -1
- package/dist/{p-BnL97lOW.js → p-D4Pimu_8.js} +1 -1
- package/dist/p-D6lxqcxP.js +1 -0
- package/dist/p-DMNS1d8v.js +1 -0
- package/dist/{p-uqSjmNkw.js → p-Degg_WJz.js} +1 -1
- package/dist/p-Dg2yoUxw.js +1 -0
- package/dist/{p-CIP0xyhD.js → p-DiNad9Px.js} +1 -1
- package/dist/{p-D93TNeOt.js → p-DoPuGtJd.js} +1 -1
- package/dist/{p-DfFqFdmS.js → p-Doi8Yizl.js} +1 -1
- package/dist/{p-9_mrQ7ac.js → p-Jdpe4Sgj.js} +1 -1
- package/dist/p-UVmSPzTd.js +1 -0
- package/dist/p-UxDcM-C5.js +1 -0
- package/dist/{p-CPSHPtGE.js → p-bPPm7cuw.js} +1 -1
- package/dist/p-qb1aWgjh.js +1 -0
- package/dist/p-qrjEbv6g.js +1 -0
- package/dist/p-xITwQAMz.js +1 -0
- package/dist/types/components/html/GidsButtonGroup/GidsButtonGroup.d.ts +2 -2
- package/dist/types/components/webComponents/GidsActionBar/GidsActionBar.d.ts +59 -0
- package/dist/types/components/webComponents/GidsFilter/GidsFilter.d.ts +55 -0
- package/dist/types/components/webComponents/GidsTab/GidsTab.d.ts +17 -0
- package/dist/types/components/webComponents/GidsTabItem/GidsTabItem.d.ts +29 -0
- package/dist/types/components/webComponents/GidsToggleButton/GidsToggleButton.d.ts +5 -3
- package/dist/types/components.d.ts +381 -5
- package/dist-bundled/es/gids-action-bar.js +177 -0
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +4 -4
- package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-year-list.js +3 -3
- package/dist-bundled/es/gids-calendar.js +34 -34
- package/dist-bundled/es/gids-chart-legend-item.js +3 -3
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +22 -22
- package/dist-bundled/es/gids-chevron-button.js +9 -9
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +9 -9
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +4 -4
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +6 -0
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +1 -1
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +9 -9
- package/dist-bundled/es/gids-overlay-provider.js +12 -12
- package/dist-bundled/es/gids-password-field.js +48 -48
- package/dist-bundled/es/gids-pie-chart.js +3 -3
- package/dist-bundled/es/gids-popover.js +5 -5
- package/dist-bundled/es/gids-progress-circle.js +1 -1
- package/dist-bundled/es/gids-scrim.js +3 -3
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +100 -0
- package/dist-bundled/es/gids-tab.js +63 -0
- package/dist-bundled/es/gids-text-field.js +17 -17
- package/dist-bundled/es/gids-toggle-button.js +4 -44
- package/dist-bundled/es/gids-tooltip.js +2 -2
- package/dist-bundled/es/index.js +3 -3
- package/dist-bundled/es/nonEmpty-B284_5ai.js +4 -0
- package/dist-bundled/es/{p-h6alWGT8-CSY2g3c8.js → p-5VIPb1eU-MCAo8JCp.js} +8 -8
- package/dist-bundled/es/{p-BiPAgxAQ-BtMBQpJY.js → p-8tOn5SjU-D9rZ28cf.js} +11 -11
- package/dist-bundled/es/{p-Bmb-HiXg-MyHWdhpw.js → p-B1Jgtjhu-B_VYp-ZP.js} +15 -15
- package/dist-bundled/es/{p-B81J5HCC-Bkt2yXKi.js → p-BYDimyG--DBCLrqDJ.js} +3 -3
- package/dist-bundled/es/p-Bf3p-DY2-CPqEc-vc.js +672 -0
- package/dist-bundled/es/{p-tyIgTtUC-C8jR4A5G.js → p-BfnzH6wp-BfLC7Nak.js} +4 -4
- package/dist-bundled/es/p-Bj28yqMD-Dz1SWSqM.js +44 -0
- package/dist-bundled/es/{p-CJzporPT-I_OdjJsQ.js → p-C-cUL-aA-2jsvw-Lr.js} +9 -9
- package/dist-bundled/es/{p-BvYnawkJ-DohV9UNG.js → p-C7ifjRCE-CRlorwoN.js} +10 -10
- package/dist-bundled/es/{p-DKsrt7dx-ImYLc4xz.js → p-CHGTBObD-EN4cCwtX.js} +3 -3
- package/dist-bundled/es/{p-D_wcwB7E-d3jYxfod.js → p-CaauwQNd-D6_PbcRr.js} +1 -1
- package/dist-bundled/es/{p-BFHWXEeg-ByjSjz8i.js → p-Ciw-O9qN-DkWfirFu.js} +24 -22
- package/dist-bundled/es/{p-quZYWCxU-CPyWW0nv.js → p-CoS0NuDU-CqmDcRWj.js} +9 -9
- package/dist-bundled/es/{p-BnL97lOW-BO0p4EdC.js → p-D4Pimu_8-DfEGRQGf.js} +1 -1
- package/dist-bundled/es/p-D6lxqcxP-DWrZi1Xi.js +74 -0
- package/dist-bundled/es/{p-Dehss-X0-Di5vMgvd.js → p-DMNS1d8v-CHF62UXm.js} +3 -3
- package/dist-bundled/es/{p-uqSjmNkw-Cz2T86sC.js → p-Degg_WJz-BLua06el.js} +3 -3
- package/dist-bundled/es/{p-CRngHsR7-DL9wz3Z3.js → p-Dg2yoUxw-Cca8ROd_.js} +4 -4
- package/dist-bundled/es/{p-CIP0xyhD-D6y5soLj.js → p-DiNad9Px-uOCMHqAq.js} +11 -11
- package/dist-bundled/es/{p-D93TNeOt-Vvshbux8.js → p-DoPuGtJd-DYlbhh57.js} +14 -14
- package/dist-bundled/es/{p-DfFqFdmS-DjI2pk-0.js → p-Doi8Yizl-BszWK5Dq.js} +5 -5
- package/dist-bundled/es/{p-9_mrQ7ac-If6e6cvJ.js → p-Jdpe4Sgj-acwaxLtK.js} +3 -3
- package/dist-bundled/es/p-UVmSPzTd-6vjXok6h.js +26 -0
- package/dist-bundled/es/{p-DZWWuJac-DNQvnHAr.js → p-UxDcM-C5-Dr5d_WpJ.js} +2 -2
- package/dist-bundled/es/{p-CPSHPtGE-C7baJgXR.js → p-bPPm7cuw-B-dtPJF9.js} +6 -6
- package/dist-bundled/es/{p-B_HaXpJZ-a2SDgQ0E.js → p-qb1aWgjh-CzmMPIME.js} +2 -2
- package/dist-bundled/es/p-qrjEbv6g-ITSp3ky_.js +152 -0
- package/dist-bundled/es/{p-BaO-kEWS-ZITkeP-j.js → p-xITwQAMz-BMXjOAAQ.js} +20 -18
- package/dist-bundled/umd/gids-action-bar.umd.js +7 -0
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-bar-chart.umd.js +3 -3
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend.umd.js +2 -2
- package/dist-bundled/umd/gids-chart.umd.js +3 -3
- package/dist-bundled/umd/gids-chevron-button.umd.js +2 -2
- package/dist-bundled/umd/gids-dot.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-filter.umd.js +7 -0
- 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 +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
- 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 +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-progress-circle.umd.js +2 -2
- 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-tab-item.umd.js +5 -0
- package/dist-bundled/umd/gids-tab.umd.js +5 -0
- 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 +8 -8
- package/package.json +36 -4
- package/dist/p-BFHWXEeg.js +0 -1
- package/dist/p-B_HaXpJZ.js +0 -1
- package/dist/p-BaO-kEWS.js +0 -1
- package/dist/p-CRngHsR7.js +0 -1
- package/dist/p-Ct3Ixgvf.js +0 -1
- package/dist/p-DKsrt7dx.js +0 -1
- package/dist/p-DZWWuJac.js +0 -1
- package/dist/p-Dehss-X0.js +0 -1
- package/dist/p-KxRqlvSh.js +0 -1
- package/dist/p-MgTlrSP_.js +0 -1
- package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +0 -646
- package/dist-bundled/es/p-KxRqlvSh-JOFDmT0B.js +0 -25
- package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +0 -70
package/dist/gids-chart.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as r,h as s}from"./p-
|
|
1
|
+
import{t,p as e,H as r,h as s}from"./p-Bf3p-DY2.js";import{GidsChartWebUtils as a}from"@ganpatiinfo/gids-web-shared";import{CHART_TYPE_INVALID_SUPPORTING_TEXT as i,CHART_TYPE_INVALID_TITLE as n,CHART_DEFAULT_NO_DATA_SUPPORTING_TEXT as o,CHART_DEFAULT_NO_DATA_TITLE as c}from"@ganpatiinfo/gids-core-shared";import{G as h}from"./p-CaauwQNd.js";import{d}from"./p-5VIPb1eU.js";import{d as g}from"./p-bPPm7cuw.js";import{d as l}from"./p-qb1aWgjh.js";import{d as p}from"./p-BYDimyG-.js";import{d as u}from"./p-Degg_WJz.js";import{d as m}from"./p-DoPuGtJd.js";import{d as b}from"./p-BfnzH6wp.js";import{d as f}from"./p-CoS0NuDU.js";const{getGidsChartClassNames:v}=a,y=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.breakpoint="desktop",this.chartType="line-chart",this.getChartTypes=()=>["line-chart","bar-chart","pie-chart","activity-gauge","level-gauge","progress-circle","radar-chart"],this.isChartTypeValid=()=>{const t=this.getChartTypes(),e=this.chartType;return!(!e||!t.includes(e))},this.isChartDataValid=()=>{const t=this.chartType;if("line-chart"===t){const t=this.lineChartProps,e=t?.chartData??[],r=e?.[0]?.data??[];return Array.isArray(e)&&e.length>0&&Array.isArray(r)&&r.length>0}if("bar-chart"===t){const t=this.barChartProps,e=t?.chartData??[],r=e?.[0]?.data??[];return Array.isArray(e)&&e.length>0&&Array.isArray(r)&&r.length>0}if("pie-chart"===t){const t=this.pieChartProps,e=t?.chartData??[];return Array.isArray(e)&&e.length>0}if("activity-gauge"===t){const t=this.activityGaugeProps,e=t?.chartData??[];return Array.isArray(e)&&e.length>0}return"radar-chart"===t},this.getChartTypeText=()=>{const t=this.chartType;if(t){const e=t.split("-");let r="";return e.map(((t,e)=>{r=0===e?""+t:`${r} ${t}`})),r}return""}}handleBreakpointChange(t){this.breakpoint=t}handleChartTypeChange(t){this.chartType=t}render(){if(!this.isChartTypeValid())return s("div",{class:"gids-chart__no-data"},s(h,{title:n,supportingText:i(this.getChartTypes().join(", "))}));const t=this.isChartDataValid(),e=this.getChartTypeText();if(!t)return s("div",{class:"gids-activity-gauge__no-data"},s(h,{title:c,supportingText:o(e)}));const r=v(),a=this.chartType,d=this.barChartProps,g=this.pieChartProps,l=this.activityGaugeProps,p=this.levelGaugeProps,u=this.progressCircleProps;return s("div",{class:r},"line-chart"===a?s("gids-line-chart",{...this.lineChartProps,breakpoint:this.breakpoint}):null,"bar-chart"===a?s("gids-bar-chart",{...d,breakpoint:this.breakpoint}):null,"pie-chart"===a?s("gids-pie-chart",{...g,breakpoint:this.breakpoint}):null,"activity-gauge"===a?s("gids-activity-gauge",{...l,breakpoint:this.breakpoint}):null,"level-gauge"===a?s("gids-level-gauge",{...p,breakpoint:this.breakpoint}):null,"progress-circle"===a?s("gids-progress-circle",{...u,breakpoint:this.breakpoint}):null,"radar-chart"===a?s("div",{class:"gids-chart__no-data"},s(h,{title:"Coming Soon!",supportingText:"Radar chart is under progress. This will be available in next major version of GIDS."})):null)}static get watchers(){return{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}}static get style(){return".gids-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-chart",{breakpoint:[1],chartType:[1,"chart-type"],lineChartProps:[16],barChartProps:[16],pieChartProps:[16],activityGaugeProps:[16],levelGaugeProps:[16],progressCircleProps:[16]},void 0,{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}]);function k(){"undefined"!=typeof customElements&&["gids-chart","gids-activity-gauge","gids-bar-chart","gids-chart-legend","gids-chart-legend-item","gids-level-gauge","gids-line-chart","gids-pie-chart","gids-progress-circle"].forEach((e=>{switch(e){case"gids-chart":customElements.get(t(e))||customElements.define(t(e),y);break;case"gids-activity-gauge":customElements.get(t(e))||d();break;case"gids-bar-chart":customElements.get(t(e))||g();break;case"gids-chart-legend":customElements.get(t(e))||l();break;case"gids-chart-legend-item":customElements.get(t(e))||p();break;case"gids-level-gauge":customElements.get(t(e))||u();break;case"gids-line-chart":customElements.get(t(e))||m();break;case"gids-pie-chart":customElements.get(t(e))||b();break;case"gids-progress-circle":customElements.get(t(e))||f()}}))}k();const C=y,j=k;export{C as GidsChart,j as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as s,H as a,c as t,h as i}from"./p-
|
|
1
|
+
import{t as e,p as s,H as a,c as t,h as i}from"./p-Bf3p-DY2.js";import{g as n}from"./p-B2zUuNXz.js";import{GidsChevronButtonWebUtils as o}from"@ganpatiinfo/gids-web-shared";import{G as r}from"./p-D4Pimu_8.js";const{getGidsChevronButtonClassNames:d}=o,c=s(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.gidsChevronButton=t(this,"gidsChevronButton"),this.activeClasses="",this.size="xs"}handleExtraClassesAndSizeChange(e){this.activeClasses=d({size:this.size},e)}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=n();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=d({size:this.size},this.extraClasses)}componentDidLoad(){this.activeClasses=d({size:this.size},this.extraClasses)}render(){return i("button",{key:"fbf4cca7180faabe095dadf14a9b0d2a032d3221",class:this.activeClasses,slot:"trailingAccessory",type:"button",onClick:e=>this.gidsChevronButton.emit(e),"aria-label":this?.ariaLabel??"","aria-expanded":this?.ariaExpanded??"","aria-haspopup":this?.ariaHaspopup??"","aria-controls":this?.ariaControls??"",disabled:this.disabled,tabIndex:-1},i("span",{key:"f4b5b4ddee310e1a17ce82b5db26c76bff100201",class:"gids-button__content"},i(r,{key:"d88b104d7baffc178c620f7d48b3bf1c83377cc1",name:"chevron-vertical",alt:""})))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return".gids-chevron-button{color:inherit;background-color:transparent;border:none;margin:0;padding:0;text-align:inherit;font:inherit;border-radius:0;appearance:none;display:inline-flex;justify-content:center;align-self:center;border-radius:var(--gids-border-radius-full);--gidsIcon-color:var(--gids-color-icon-default);--gidsIcon-height:var(--gidsChevronButtonIcon-height);--gidsChevronButtonIcon-height:var(--gids-size-120)}.gids-chevron-button--sm{--gidsIcon-height:var(--gids-size-160)}.gids-chevron-button--md{--gidsIcon-height:var(--gids-size-200)}.gids-chevron-button--lg{--gidsIcon-height:var(--gids-size-240)}.gids-chevron-button:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-chevron-button:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-chevron-button:disabled .gids-icon{--gidsIcon-color:var(--gids-color-icon-disabled)}.gids-chevron-button:disabled:hover{background-color:transparent}.gids-chevron-button:disabled:active{background-color:transparent}"}},[1,"gids-chevron-button",{extraClasses:[513,"extra-classes"],size:[513],disabled:[516],ariaLabel:[513,"aria-label"],ariaHaspopup:[513,"aria-haspopup"],ariaExpanded:[513,"aria-expanded"],ariaControls:[513,"aria-controls"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}]);function h(){"undefined"!=typeof customElements&&["gids-chevron-button"].forEach((s=>{"gids-chevron-button"===s&&(customElements.get(e(s))||customElements.define(e(s),c))}))}h();const l=c,g=h;export{l as GidsChevronButton,g as defineCustomElement}
|
package/dist/gids-dot.d.ts
CHANGED
package/dist/gids-dot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as o,d as
|
|
1
|
+
import{G as o,d as p}from"./p-Jdpe4Sgj.js";const s=o,r=p;export{s as GidsDot,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t as e,p as t,H as s,h as i}from"./p-Bf3p-DY2.js";import{generateId as a}from"@ganpatiinfo/gids-web-shared";import{G as d}from"./p-Dg2yoUxw.js";import{d as n}from"./p-xITwQAMz.js";import{d as o}from"./p-C7ifjRCE.js";import{d as r}from"./p-Doi8Yizl.js";const l=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#e=a(),this.handleSelectionChange=e=>{this.value=e.value,this.syncFormValue(e.value),this.onSelectionChange?.(e)},this.handleDropdownFocusAndBlur=e=>{this.hostElement.dispatchEvent(new FocusEvent(e.type,{relatedTarget:e.relatedTarget}))}}#e;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#e,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return i("gids-field",{key:"fb0965fc37a06b9937a6806516c7cddedadfe125",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},void 0!==this.label?i(d,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,i("gids-dropdown",{key:"8ccb36c6505cd9363f1f4334bc2a2be7e7045f52",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},i("slot",{key:"21bb6152c67fd767f8a55b7134d1eced8ae0516f",name:"leadingIconDropdown"}),i("slot",{key:"8b06bf5e9ac9f787b74ed6603a37c953fae67fe0",name:"leadingAccessoryDropdown"}),i("slot",{key:"9d653e38ecebdc233614f00a03fdaead3cf17fc7"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function h(){"undefined"!=typeof customElements&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((t=>{switch(t){case"gids-dropdown-field":customElements.get(e(t))||customElements.define(e(t),l);break;case"gids-dropdown":customElements.get(e(t))||n();break;case"gids-field":customElements.get(e(t))||o();break;case"gids-input":customElements.get(e(t))||r()}}))}h();const c=l,u=h;export{c as GidsDropdownField,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-Ciw-O9qN.js";const p=o,r=s;export{p as GidsDropdownPicker,r as defineCustomElement}
|
package/dist/gids-dropdown.d.ts
CHANGED
package/dist/gids-dropdown.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-xITwQAMz.js";const p=o,r=s;export{p as GidsDropdown,r as defineCustomElement}
|
package/dist/gids-field.d.ts
CHANGED
package/dist/gids-field.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-C7ifjRCE.js";const p=o,r=s;export{p as GidsField,r as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist-dev/types/components";
|
|
2
|
+
|
|
3
|
+
interface GidsFilter extends Components.GidsFilter, HTMLElement {}
|
|
4
|
+
export const GidsFilter: {
|
|
5
|
+
prototype: GidsFilter;
|
|
6
|
+
new (): GidsFilter;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as o,d as r}from"./p-qrjEbv6g.js";const s=o,p=r;export{s as GidsFilter,p as defineCustomElement}
|
package/dist/gids-icon.d.ts
CHANGED
package/dist/gids-icon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-8tOn5SjU.js";const t=o,p=s;export{t as GidsIcon,p as defineCustomElement}
|
package/dist/gids-input.d.ts
CHANGED
package/dist/gids-input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-Doi8Yizl.js";const i=o,p=s;export{i as GidsInput,p as defineCustomElement}
|
package/dist/gids-level-gauge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-Degg_WJz.js";const p=o,r=s;export{p as GidsLevelGauge,r as defineCustomElement}
|
package/dist/gids-line-chart.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-DoPuGtJd.js";const t=o,p=s;export{t as GidsLineChart,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as i,H as o}from"./p-
|
|
1
|
+
import{t,p as i,H as o}from"./p-Bf3p-DY2.js";import{g as s}from"./p-CVtNa0cL.js";const n=i(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const t=s(this._el);t&&this.show&&t.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function e(){"undefined"!=typeof customElements&&["gids-notification"].forEach((i=>{"gids-notification"===i&&(customElements.get(t(i))||customElements.define(t(i),n))}))}e();const a=n,c=e;export{a as GidsNotification,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as o,H as i,h as s}from"./p-
|
|
1
|
+
import{t,p as o,H as i,h as s}from"./p-Bf3p-DY2.js";import{g as e}from"./p-B2zUuNXz.js";import{GidsOverflowContainerCommonUtils as a}from"@ganpatiinfo/gids-core-shared";const{showGidsOverflowContainerBottomShadow:r,showGidsOverflowContainerTopShadow:n}=a,c=o(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const t=e();void 0!==t&&this._el.shadowRoot?.adoptedStyleSheets.push(t)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),r(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const t=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):0!==t?t>0&&(n(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(t/20,1)),r(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return s("div",{key:"da2e579bb37ac775378a4f53c7c30b4f578d9c94",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},s("slot",{key:"eaa87a33af09ad8a96361c0368c50730c172bdc1"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function h(){"undefined"!=typeof customElements&&["gids-overflow-container"].forEach((o=>{"gids-overflow-container"===o&&(customElements.get(t(o))||customElements.define(t(o),c))}))}h();const d=c,f=h;export{d as GidsOverflowContainer,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,t as i,p as n,H as e,F as a}from"./p-Ct3Ixgvf.js";import{g as o}from"./p-B2zUuNXz.js";import{g as s,a as r}from"./p-CVtNa0cL.js";import{GidsSnackbarContainerWebUtils as l,GidsNotificationContainerWebUtils as m,GidsOverlayProviderWebUtils as c}from"@ganpatiinfo/gids-web-shared";import{G as d}from"./p-BnL97lOW.js";import{G as p}from"./p-KxRqlvSh.js";const{getGidsSnackbarContainerClassNames:f,getSnackbarContainerIconNames:u}=l,g=({appearance:i="default",children:n,button:e,class:a,...o})=>{const s=u(i);return t("div",{...o,class:f({appearance:i},a)},t("div",{class:"gids-snackbar-container__content"},"default"!==i&&null!=s?t(d,{name:s,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,"string"==typeof n?t("p",null,n):n),e)},{getGidsNotificationContainerClassNames:h,getNotificationContainerIconNames:v}=m,b=({notificationTitle:i,children:n,button:e,appearance:a="default",pronunciation:o="standard",onCloseNotificationClick:s,class:r,...l})=>{const m=v(a);return t("div",{class:h({appearance:a},r),...l},"default"!==a&&m?t("div",{class:"gids-notification-container__leading-icon-wrapper"},t(d,{size:"md",name:m,alt:"",appearance:"filled"})):null,t("div",{class:"gids-notification-container__content-wrapper"},t("div",{class:"gids-notification-container__top-content"},t("div",{class:"gids-notification-container__text-content"},null!=i&&""!==i?t("span",{class:"gids-notification-container__title"},i):null,n?"string"==typeof n?t("p",null,n):n:null),"standard"===o?t("div",{class:"gids-notification-container__cross-btn-wrapper"},t(p,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:t(d,{name:"cross",size:"md",appearance:"regular"}),onClick:s})):null),e?t("div",{class:"gids-notification-container__bottom-content"},e):null))},{getComponentClasses:y,getComponentStackClasses:k}=c,w=n(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(i,n)=>{const{id:e,message:a,appearance:o,buttonLabel:s,onButtonClick:r}=i;return t(g,{key:e,class:n,children:a,appearance:o,button:null!=s&&""!==s?t(p,{appearance:"subtle",onClick:r},s):void 0})},this._renderNotification=(i,n)=>{const{id:e,notificationTitle:a,message:o,pronunciation:s,appearance:r,buttonLabel:l,onButtonClick:m,timerInMs:c}=i;return t(b,{key:e,class:n,notificationTitle:a,children:o,pronunciation:s,appearance:r,onCloseNotificationClick:()=>this.removeComponent(i,c||0,!0),button:null!=l&&""!==l?t(p,{appearance:"default",size:"sm",onClick:m},l):void 0})},this._renderComponent=t=>{const{componentName:i,position:n="bottom-center",id:e}=t,a=y({position:n,id:e,exitingComponents:this._exitingComponents});return null==i||"snackbar"===i?this._renderSnackbar(t,a):"notification"===i?this._renderNotification(t,a):null}}connectedCallback(){const t=o();void 0!==t&&this._el.shadowRoot?.adoptedStyleSheets.push(t),this._parentOverlayProvider=s(this._el)}_isRoot(){return null===this._parentOverlayProvider}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(t){return new Promise((i=>{const n=setTimeout((()=>(clearTimeout(n),i({isTimeout:!0}))),t)}))}async _queueSnackbar(t){const{appearance:i,message:n,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r}=t,l={id:""+(Date.now()+Math.random()),message:n,appearance:i,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r};this._componentQueue=[...this._componentQueue,l],this.processSingleComponentQueue()}async _queueNotification(t){const{appearance:i,notificationTitle:n,pronunciation:e,message:a,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m}=t,c={id:""+(Date.now()+Math.random()),notificationTitle:n,message:a,pronunciation:e,appearance:i,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m};this._componentQueue=[...this._componentQueue,c],this.processMultiComponentQueue()}async queueComponent(t){if(await this._isRoot()){const{componentName:i}=t;null!=i&&"snackbar"!==i||this._queueSnackbar(t),"notification"===i&&this._queueNotification(t)}else(await this.getRootOverlayProvider()).queueComponent(t)}async removeComponent(t,i,n){return n||await this.autoHide(i),this._exitingComponents=[...this._exitingComponents,t.id],new Promise((i=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((i=>i.id!==t.id)),this._exitingComponents=this._exitingComponents.filter((i=>i!==t.id)),this._allowedComponentQueue=[],i()}),500)}))}async processSingleComponentQueue(){if(0===this._componentQueue.length)return;const t=this._componentQueue[0];if(!t)return;this._allowedComponentQueue=[t],await new Promise((t=>requestAnimationFrame((()=>t()))));const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const t=this._componentQueue;0!==t.length&&(this._allowedComponentQueue=t,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1)})),this.processMultiComponentQueue())}render(){const i=this._allowedComponentQueue[0]?.position||"bottom-center";return t(a,{key:"c130346274545aa8cb3b12390fa28f65b612dcd9"},t("slot",{key:"6bfbde0f8f8a9cc75e3236ac806d762a9f2e0049"}),this._isRoot()?t("div",{class:k({position:i})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function C(){"undefined"!=typeof customElements&&["gids-overlay-provider"].forEach((t=>{"gids-overlay-provider"===t&&(customElements.get(i(t))||customElements.define(i(t),w))}))}C();const _=w,x=C;export{_ as GidsOverlayProvider,x as defineCustomElement}
|
|
1
|
+
import{h as t,t as i,p as n,H as e,F as a}from"./p-Bf3p-DY2.js";import{g as o}from"./p-B2zUuNXz.js";import{g as s,a as r}from"./p-CVtNa0cL.js";import{GidsSnackbarContainerWebUtils as l,GidsNotificationContainerWebUtils as m,GidsOverlayProviderWebUtils as c}from"@ganpatiinfo/gids-web-shared";import{G as d}from"./p-D4Pimu_8.js";import{G as p}from"./p-UVmSPzTd.js";const{getGidsSnackbarContainerClassNames:f,getSnackbarContainerIconNames:u}=l,g=({appearance:i="default",children:n,button:e,class:a,...o})=>{const s=u(i);return t("div",{...o,class:f({appearance:i},a)},t("div",{class:"gids-snackbar-container__content"},"default"!==i&&null!=s?t(d,{name:s,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,"string"==typeof n?t("p",null,n):n),e)},{getGidsNotificationContainerClassNames:h,getNotificationContainerIconNames:v}=m,b=({notificationTitle:i,children:n,button:e,appearance:a="default",pronunciation:o="standard",onCloseNotificationClick:s,class:r,...l})=>{const m=v(a);return t("div",{class:h({appearance:a},r),...l},"default"!==a&&m?t("div",{class:"gids-notification-container__leading-icon-wrapper"},t(d,{size:"md",name:m,alt:"",appearance:"filled"})):null,t("div",{class:"gids-notification-container__content-wrapper"},t("div",{class:"gids-notification-container__top-content"},t("div",{class:"gids-notification-container__text-content"},null!=i&&""!==i?t("span",{class:"gids-notification-container__title"},i):null,n?"string"==typeof n?t("p",null,n):n:null),"standard"===o?t("div",{class:"gids-notification-container__cross-btn-wrapper"},t(p,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:t(d,{name:"cross",size:"md",appearance:"regular"}),onClick:s})):null),e?t("div",{class:"gids-notification-container__bottom-content"},e):null))},{getComponentClasses:y,getComponentStackClasses:k}=c,w=n(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(i,n)=>{const{id:e,message:a,appearance:o,buttonLabel:s,onButtonClick:r}=i;return t(g,{key:e,class:n,children:a,appearance:o,button:null!=s&&""!==s?t(p,{appearance:"subtle",onClick:r},s):void 0})},this._renderNotification=(i,n)=>{const{id:e,notificationTitle:a,message:o,pronunciation:s,appearance:r,buttonLabel:l,onButtonClick:m,timerInMs:c}=i;return t(b,{key:e,class:n,notificationTitle:a,children:o,pronunciation:s,appearance:r,onCloseNotificationClick:()=>this.removeComponent(i,c||0,!0),button:null!=l&&""!==l?t(p,{appearance:"default",size:"sm",onClick:m},l):void 0})},this._renderComponent=t=>{const{componentName:i,position:n="bottom-center",id:e}=t,a=y({position:n,id:e,exitingComponents:this._exitingComponents});return null==i||"snackbar"===i?this._renderSnackbar(t,a):"notification"===i?this._renderNotification(t,a):null}}connectedCallback(){const t=o();void 0!==t&&this._el.shadowRoot?.adoptedStyleSheets.push(t),this._parentOverlayProvider=s(this._el)}_isRoot(){return null===this._parentOverlayProvider}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(t){return new Promise((i=>{const n=setTimeout((()=>(clearTimeout(n),i({isTimeout:!0}))),t)}))}async _queueSnackbar(t){const{appearance:i,message:n,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r}=t,l={id:""+(Date.now()+Math.random()),message:n,appearance:i,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r};this._componentQueue=[...this._componentQueue,l],this.processSingleComponentQueue()}async _queueNotification(t){const{appearance:i,notificationTitle:n,pronunciation:e,message:a,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m}=t,c={id:""+(Date.now()+Math.random()),notificationTitle:n,message:a,pronunciation:e,appearance:i,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m};this._componentQueue=[...this._componentQueue,c],this.processMultiComponentQueue()}async queueComponent(t){if(await this._isRoot()){const{componentName:i}=t;null!=i&&"snackbar"!==i||this._queueSnackbar(t),"notification"===i&&this._queueNotification(t)}else(await this.getRootOverlayProvider()).queueComponent(t)}async removeComponent(t,i,n){return n||await this.autoHide(i),this._exitingComponents=[...this._exitingComponents,t.id],new Promise((i=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((i=>i.id!==t.id)),this._exitingComponents=this._exitingComponents.filter((i=>i!==t.id)),this._allowedComponentQueue=[],i()}),500)}))}async processSingleComponentQueue(){if(0===this._componentQueue.length)return;const t=this._componentQueue[0];if(!t)return;this._allowedComponentQueue=[t],await new Promise((t=>requestAnimationFrame((()=>t()))));const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const t=this._componentQueue;0!==t.length&&(this._allowedComponentQueue=t,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1)})),this.processMultiComponentQueue())}render(){const i=this._allowedComponentQueue[0]?.position||"bottom-center";return t(a,{key:"c33ac4169b668a47a2a2a68dd2578378379e8b71"},t("slot",{key:"a404014f33eb6a13ca999a97c657e4d6c743e946"}),this._isRoot()?t("div",{class:k({position:i})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function C(){"undefined"!=typeof customElements&&["gids-overlay-provider"].forEach((t=>{"gids-overlay-provider"===t&&(customElements.get(i(t))||customElements.define(i(t),w))}))}C();const _=w,N=C;export{_ as GidsOverlayProvider,N as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,t,p as s,H as i,c as n,f as a,F as r}from"./p-
|
|
1
|
+
import{h as e,t,p as s,H as i,c as n,f as a,F as r}from"./p-Bf3p-DY2.js";import{GidsStrengthMeterWebUtils as l,GidsRequirementsMeterLabelWebUtils as d,GidsRequirementsMeterWebUtils as o,generateId as h,GidsPasswordFieldWebUtils as u}from"@ganpatiinfo/gids-web-shared";import{g as c}from"./p-B2zUuNXz.js";import{G as m}from"./p-Dg2yoUxw.js";import{G as g}from"./p-UxDcM-C5.js";import{G as p}from"./p-UVmSPzTd.js";import{minLengthRuleCanBeApplied as b,getMeterRulesFromRequirements as f,getDefaultRulesAndRequirementsForMeters as x}from"@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils.js";import{GidsStrengthMeterCommonUtils as R,GidsRequirementsMeterLabelCommonUtils as q,GidsRequirementsMeterCommonUtils as w}from"@ganpatiinfo/gids-core-shared";import{minLengthRuleCanBeApplied as v}from"@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils";import{G as y}from"./p-D4Pimu_8.js";import{d as M}from"./p-C7ifjRCE.js";import{d as L}from"./p-Doi8Yizl.js";const{getGidsStrengthMeterClassNames:C}=l,{getStrengthMeterScore:k,getColorModifierByScore:P}=R,S=({text:t,textMinLength:s,meterRules:i=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:n})=>{const a=(t,s,i)=>e("div",{key:t,class:["gids-strength-meter__strength-"+t,i?"is-active":"",i?s:""].filter(Boolean).join(" ")});return i.length>0?e("div",{class:C(n)},(()=>{const e=i.length,n=k({text:t,textMinLength:s,meterRules:i}),r=P({textScore:n,maxScore:e});return Array.from({length:e},((e,t)=>{const l=t+1,d=l<=n;return"include-min-length"===i[l]?v({requirementRule:"include-min-length",textMinLength:s})?a(l,r,d):null:a(l,r,d)}))})()):null},{getGidsRequirementsMeterLabelClassNames:_}=d,{getRequirementsMeterLabelLeadingIcon:G}=q,T=t=>{const{label:s,status:i="default",leadingIconVisible:n=!0,class:a}=t,r=G(i);return e("div",{class:_({status:i},a)},n&&i&&r?e(y,{name:r,size:"sm",appearance:"filled"}):null,s&&""!==s?e("span",null,s):null)},{checkRequirementRuleSatisfied:j}=w,{getGidsRequirementsMeterClassNames:F}=o,E=({requirements:t=[],text:s,textMinLength:i,class:n})=>{const a=(t,s)=>e(T,{status:s?"success":"error",label:t.requirementText});return e("div",{class:F(n)},t.map((e=>{if(null!=e?.requirementText&&null!=e?.requirementRule){const t=j({rule:e.requirementRule,textMinLength:i,text:s});return"include-min-length"===e.requirementRule?!0===b({requirementRule:e.requirementRule,textMinLength:i})?a(e,t):null:a(e,t)}return null})))},{inputToGidsFieldStatusForPassword:B}=u,z=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.gidsPasswordFieldClear=n(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=n(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#e=h(),this._handleDismiss=()=>{const e=this.#t?.querySelector("input.gids-input__control");e&&(e.value="",e.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const e=this.#t?.querySelector("input.gids-input__control");this.isPasswordRevealed=null!=e?.value&&""!==e.value&&!1===this.isPasswordRevealed,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=e=>{this.value=e.target?.value},this._handleInputFocusAndBlur=e=>{this._el.dispatchEvent(new FocusEvent(e.type,{relatedTarget:e.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const e=this.requirements;return!!(e&&e.length>0)},this._handleRequirementsMeter=()=>{const e=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=e?f(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{a(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){void 0===e&&(this.requirements=x(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=x(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=c();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:t,...s}=this.inputProps??{},i=t??this.#e,n=this.showClearButton&&void 0!==this.value&&this.value.length>0,a=this.showRevealPasswordButton,l={...s},d=void 0!==l?.placeholder&&null!==l.placeholder&&""!=l.placeholder?l.placeholder:"Enter password",o=this.isPasswordRevealed,h=this.meterRules,u=void 0!==this.textMinLength?this.textMinLength:8;return e(r,{key:"5a01700ed2e889989e76a785a4ea9f0832d43cba"},e("gids-field",{key:"82a848875d90d33e909277e9caca152802263775",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:B(this.status)},e(m,{key:"cbc12d98213148de3bd0bd24f73122fcc1bb0175",slot:"label",disabled:this.disabled,info:e("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),e("gids-input",{key:"86182396314618b1191b5af4dad1974ecec29d90",ref:e=>this.#t=e,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...l,placeholder:d,type:o?"text":"password",id:i,maxLength:this.maxLength}},e("slot",{key:"e0b5bfe6509975144dbb6eb9051cc161ee3730fb",name:"leadingIcon"}),e("slot",{key:"591d68804011e67edefbebd2ecbb0477608a6b9e",name:"leadingAccessory"}),e("div",{key:"e0b980ba3896b39aa59601f6ccc1940459de83da",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&e(g,{key:"29890daceaa8d95274eb501dba3ba139b1992b3f",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),a&&e(p,{key:"6e278e24e56531945fd9ee76b85278d31bf359d7",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},o?"Hide":"Show")))),e("div",{key:"6b379f62ce81fc6c2c641e98c53f3b5a57abe939",class:"gids-password-field__meters-container"},e(S,{key:"de60ed4d66045e988f60a8240b1e649003c7a841",meterRules:h,text:this.value,textMinLength:u}),e(E,{key:"8bcaae4c9d45b10b8462f81c885dbb4998f62a8f",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:u})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function D(){"undefined"!=typeof customElements&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(t(e))||customElements.define(t(e),z);break;case"gids-field":customElements.get(t(e))||M();break;case"gids-input":customElements.get(t(e))||L()}}))}D();const O=z,U=D;export{O as GidsPasswordField,U as defineCustomElement}
|
package/dist/gids-pie-chart.d.ts
CHANGED
package/dist/gids-pie-chart.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as
|
|
1
|
+
import{G as o,d as p}from"./p-BfnzH6wp.js";const s=o,r=p;export{s as GidsPieChart,r as defineCustomElement}
|
package/dist/gids-popover.d.ts
CHANGED
package/dist/gids-popover.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as o,h as i,F as s}from"./p-
|
|
1
|
+
import{t,p as e,H as o,h as i,F as s}from"./p-Bf3p-DY2.js";import{G as r}from"./p-a3JfEYJp.js";import{G as a}from"./p-B8kX8Vqv.js";const n=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const e=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!e&&this.floatingElementManager.isVisible()?this.onPopoverShow():e&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return"Escape"===t.key?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void("Tab"===t.key&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new r(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:a.POPOVER,getAnchorElementFromSlot:t=>{const e=t.querySelector('slot[name="anchor"]');return e?.assignedElements()[0]||null}}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const t=this.floatingElementManager.getAnchorElement();t&&(t.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const t=this._el.shadowRoot?.querySelector("#popover");if(!t)return;const e=[],o=l(t);e.push(...o);const i=this._el.shadowRoot?.querySelector("slot:not([name])");i&&i.assignedElements({flatten:!0}).forEach((t=>{const o=l(t);e.push(...o)})),this.focusableElements=e.sort(((t,e)=>{const o=t.compareDocumentPosition(e),i=!!(o&Node.DOCUMENT_POSITION_FOLLOWING),s=!!(o&Node.DOCUMENT_POSITION_PRECEDING);return i?-1:s?1:0}))}trapFocus(t){if(0===this.focusableElements.length)return;const e=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1];let i=document.activeElement;if(i===this._el){const t=this._el.shadowRoot?.activeElement;null!==t&&(i=t)}const s=-1!==this.focusableElements.indexOf(i);t.shiftKey?i!==e&&s||(t.preventDefault(),o&&o.focus()):i!==o&&s||(t.preventDefault(),e&&e.focus())}placementChanged(t){this.floatingElementManager?.updateConfig({placement:t}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(t){this.floatingElementManager?.updateConfig({htmlFor:t}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const t=this.floatingElementManager?.getAnchorElement();t&&t.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return i(s,{key:"da99dff29f34b163522c42a2a17bf4556dd9ba02"},i("slot",{key:"776a6ca0c9379f9059f8522feda55210476e0cd1",name:"anchor"}),i("div",{key:"1a73966a626ae553e28dca105f9b567312362497",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},i("span",{key:"06f5ddfd7795fa4f7a8c6fc7106e128d0ec51e54",id:"arrow"}),i("div",{key:"aed89418ee2297532a0655fca1a0d1bc8d24c06b"},i("slot",{key:"2474edda5a80075dabc0b19af54ea2585e62ca1d"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{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);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),d=t=>{if(!(t instanceof o))return!1;if(-1===t.tabIndex)return!1;if(t.hasAttribute("disabled"))return!1;const e=getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||t.hidden)return!1;try{const e=t.tabIndex;t.tabIndex=-1,t.focus();const o=document.activeElement===t;return t.tabIndex=e,o&&t.blur(),o}catch{return!1}},l=t=>{const e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>d(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),o=[];d(t)&&o.push(t);let i=e.nextNode();for(;null!==i;)o.push(i),i=e.nextNode();return o};function p(){"undefined"!=typeof customElements&&["gids-popover"].forEach((e=>{"gids-popover"===e&&(customElements.get(t(e))||customElements.define(t(e),n))}))}p();const h=n,c=p;export{h as GidsPopover,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-CoS0NuDU.js";const p=o,r=s;export{p as GidsProgressCircle,r as defineCustomElement}
|
package/dist/gids-scrim.d.ts
CHANGED
package/dist/gids-scrim.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as s,p as t,H as e,h as
|
|
1
|
+
import{t as s,p as t,H as e,h as a}from"./p-Bf3p-DY2.js";import{g as r}from"./p-B2zUuNXz.js";import{GidsScrimWebUtils as i}from"@ganpatiinfo/gids-web-shared";const{getGidsScrimClassNames:c}=i,o=t(class extends e{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(s){this.activeClasses=c(s)}connectedCallback(){const s=r();void 0!==s&&this._el.shadowRoot?.adoptedStyleSheets.push(s),this.activeClasses=c(this.extraClasses)}render(){return a("div",{key:"f9bf11077e7b7141816116d1cace7a87d9dfa652",class:this.activeClasses,part:"root"},a("slot",{key:"221cacbb0a57c9c356d20988b02e7730e74b4430"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function n(){"undefined"!=typeof customElements&&["gids-scrim"].forEach((t=>{"gids-scrim"===t&&(customElements.get(s(t))||customElements.define(s(t),o))}))}n();const l=o,d=n;export{l as GidsScrim,d as defineCustomElement}
|
package/dist/gids-snackbar.d.ts
CHANGED
package/dist/gids-snackbar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as s,H as n}from"./p-
|
|
1
|
+
import{t,p as s,H as n}from"./p-Bf3p-DY2.js";import{g as e}from"./p-CVtNa0cL.js";const o=s(class extends n{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const t=e(this._el);t&&this.show&&t.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function a(){"undefined"!=typeof customElements&&["gids-snackbar"].forEach((s=>{"gids-snackbar"===s&&(customElements.get(t(s))||customElements.define(t(s),o))}))}a();const i=o,r=a;export{i as GidsSnackbar,r as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist-dev/types/components";
|
|
2
|
+
|
|
3
|
+
interface GidsTabItem extends Components.GidsTabItem, HTMLElement {}
|
|
4
|
+
export const GidsTabItem: {
|
|
5
|
+
prototype: GidsTabItem;
|
|
6
|
+
new (): GidsTabItem;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,t as a,p as r,H as i,d as o}from"./p-Bf3p-DY2.js";import{nonEmpty as t,GidsBadgeWebUtils as d,GidsTabItemWebUtils as c}from"@ganpatiinfo/gids-web-shared";import{GidsBadgeCommonUtils as s}from"@ganpatiinfo/gids-core-shared";const{getDisplayContent:n,shouldIncludeA11yText:g}=s,{getGidsBadgeClassNames:l}=d,b=({appearance:a,type:r,count:i,accessibleText:o,outline:d,class:c,...s})=>{const b=g(r,i,t(o));return e("span",{class:l({appearance:a,type:r,outline:d},c),...s},b&&e("span",{class:"gids-visually-hidden"},t(o)?o:i),"notification"===r?b?e("span",{"aria-hidden":"true"},n(i,o)):n(i,o):null)},{getGidsTabItemClassNames:v}=c,h=r(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.active=!1,this.width="intrinsic",this.appearance="default",this.badgeVisible=!1,this.badgeAppearance="information",this.badgeType="dot",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.handleHostClick=()=>{this.onPressGidsTabItem&&this.onPressGidsTabItem({itemId:this.itemId,label:this?.label??"",active:this?.active??!1,appearance:this?.appearance??"default",name:this?.name,badgeCount:this?.badgeCount??0})}}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleBadgeVisibilityChange(e){this.badgeVisible=e}handleBadgeAppearanceChange(e){this.badgeAppearance=e}handleBadgeTypeChange(e){this.badgeType=e}handleActiveChange(e){this.active=e}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconTabItem"]'),this.hasTrailingIcon=!!this.hostElement.querySelector('[slot="trailingIconTabItem"]')}render(){const a=v({appearance:this.appearance,width:this.width,active:this.active}),r=this.hasTrailingIcon,i=this.badgeVisible,t="primary"===this.appearance&&this.active?"inverse":this.badgeAppearance??"information",d=this.label;return e(o,{key:"111117f9953d07da3af26834ab19352c9334a36a",class:a,onClick:this.handleHostClick},this.hasLeadingIcon?e("slot",{name:"leadingIconTabItem"}):void 0,d&&""!==d?e("span",{class:"gids-tab-item__label"},d&&""!==d?d:void 0,i?e(b,{appearance:t,type:this.badgeType,count:this.badgeCount}):void 0):void 0,r?e("slot",{name:"trailingIconTabItem"}):void 0)}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}}static get style(){return".gids-tab-item{margin:0;padding:0;appearance:none;border:none;background:none;display:inline-flex;justify-content:center;align-items:center;gap:var(--gids-gap-100);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);color:var(--gids-color-text-accent-5);cursor:pointer}.gids-tab-item .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-5)}.gids-tab-item__label{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);display:flex;justify-content:center;align-items:center;gap:var(--gids-gap-150)}.gids-tab-item--full{display:flex}.gids-tab-item--default{border-radius:var(--gids-border-radius-md)}.gids-tab-item--default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--primary{border-radius:var(--gids-border-radius-md)}.gids-tab-item--primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--bordered{border-radius:var(--gids-border-radius-full)}.gids-tab-item--bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-input)}.gids-tab-item--underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--subtle:active{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-subtler-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-default .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered)}.gids-tab-item--active-default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed)}.gids-tab-item--active-primary{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-bolder-default);color:var(--gids-color-text-inverse)}.gids-tab-item--active-primary .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--active-primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered)}.gids-tab-item--active-primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed)}.gids-tab-item--active-bordered{border-radius:var(--gids-border-radius-full);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-bordered .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default)}.gids-tab-item--active-underlined .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-subtle{color:var(--gids-color-text-accent-4)}.gids-tab-item--active-subtle .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}"}},[260,"gids-tab-item",{itemId:[1,"item-id"],label:[1],active:[4],name:[1],width:[1],appearance:[1],badgeVisible:[4,"badge-visible"],badgeAppearance:[1,"badge-appearance"],badgeCount:[2,"badge-count"],badgeType:[1,"badge-type"],onPressGidsTabItem:[16],hasLeadingIcon:[32],hasTrailingIcon:[32]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}]);function u(){"undefined"!=typeof customElements&&["gids-tab-item"].forEach((e=>{"gids-tab-item"===e&&(customElements.get(a(e))||customElements.define(a(e),h))}))}u();const p=h,m=u;export{p as GidsTabItem,m as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist-dev/types/components";
|
|
2
|
+
|
|
3
|
+
interface GidsTab extends Components.GidsTab, HTMLElement {}
|
|
4
|
+
export const GidsTab: {
|
|
5
|
+
prototype: GidsTab;
|
|
6
|
+
new (): GidsTab;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
package/dist/gids-tab.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as t,H as a,h as i,d as s}from"./p-Bf3p-DY2.js";import{GidsTabWebUtils as n}from"@ganpatiinfo/gids-web-shared";const{getGidsTabClassNames:d}=n,h=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.width="intrinsic",this.appearance="default"}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleActiveTabIdChange(e){this.activeTabId=e}componentDidLoad(){this.syncPropsToChildren(),this.hostElement.addEventListener("slotchange",(()=>this.syncPropsToChildren()))}componentDidUpdate(){this.syncPropsToChildren()}syncPropsToChildren(){this.hostElement.querySelectorAll("gids-tab-item").forEach((e=>{e&&(e.appearance=this.appearance,e.width=this.width,e.active=this.isTabActive(e.itemId),e.onPressGidsTabItem=e=>{this.activeTabId=e?.itemId,this.onPressGidsTab&&this.onPressGidsTab(e),this.syncPropsToChildren()})}))}isTabActive(e){return e===this.activeTabId}render(){const e=d({width:this.width,appearance:this.appearance});return i(s,{key:"cc7d6cde876ed48c224b7226f750bb5e4bb4cbf1",class:e},i("slot",{key:"bb499ecb3dfd5cba0fb59b1f22ec135fe435b28c"}))}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],activeTabId:[{handleActiveTabIdChange:0}]}}static get style(){return".gids-tab{display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--gids-gap-150)}.gids-tab--full{display:flex}.gids-tab--item-subtle{gap:0}.gids-tab--item-underlined{gap:0}"}},[260,"gids-tab",{width:[1],appearance:[1],activeTabId:[1,"active-tab-id"],onPressGidsTab:[16]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],activeTabId:[{handleActiveTabIdChange:0}]}]);function c(){"undefined"!=typeof customElements&&["gids-tab"].forEach((t=>{"gids-tab"===t&&(customElements.get(e(t))||customElements.define(e(t),h))}))}c();const r=h,b=c;export{r as GidsTab,b as defineCustomElement}
|
package/dist/gids-text-field.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as i,c as s,f as a,h as
|
|
1
|
+
import{t as e,p as t,H as i,c as s,f as a,h as l}from"./p-Bf3p-DY2.js";import{GidsTextFieldCommonUtils as n}from"@ganpatiinfo/gids-core-shared";import{generateId as d,GidsTextFieldWebUtils as r}from"@ganpatiinfo/gids-web-shared";import{g as o}from"./p-B2zUuNXz.js";import{G as h}from"./p-Dg2yoUxw.js";import{G as u}from"./p-UxDcM-C5.js";import{d as c}from"./p-C7ifjRCE.js";import{d as f}from"./p-Doi8Yizl.js";const{formatCharCount:m}=n,{inputToGidsFieldStatus:p}=r,b=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.gidsTextFieldClear=s(this,"gidsTextFieldClear"),this.#e=d(),this._handleDismiss=()=>{const e=this.#t?.querySelector("input.gids-input__control");e&&(e.value="",e.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=e=>{this.value=e.target?.value},this._handleInputFocusAndBlur=e=>{this._el.dispatchEvent(new FocusEvent(e.type,{relatedTarget:e.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{a(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=o();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#e,s=this.showClearButton&&void 0!==this.value&&this.value.length>0;return l("gids-field",{key:"951d6052bb8e98950f01a1c204a35904e3a3ee4c",disabled:this.disabled,count:m(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:p(this.status)},l(h,{key:"02a0b0308d754a68dd5f1be3cd8dd10b191f32a6",slot:"label",disabled:this.disabled,info:l("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),l("gids-input",{key:"9e601808d03998011afd0cef3a683e153ea42f10",ref:e=>this.#t=e,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},l("slot",{key:"f519b7683865ec3bc7d6dc02c3a4d3383b62c09a",name:"leadingIcon"}),l("slot",{key:"4241d7a23659bd3f7fe2b54ad3e9fce5b83de649",name:"leadingAccessory"}),s&&l(u,{key:"35d7868cec672757617bad343a3e700a4a9719c8",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),l("slot",{key:"07f1cd892f9eb103110e54f377ed6683da22157d",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function g(){"undefined"!=typeof customElements&&["gids-text-field","gids-field","gids-input"].forEach((t=>{switch(t){case"gids-text-field":customElements.get(e(t))||customElements.define(e(t),b);break;case"gids-field":customElements.get(e(t))||c();break;case"gids-input":customElements.get(e(t))||f()}}))}g();const x=b,y=g;export{x as GidsTextField,y as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{G as o,d as s}from"./p-Bj28yqMD.js";const p=o,r=s;export{p as GidsToggleButton,r as defineCustomElement}
|
package/dist/gids-tooltip.d.ts
CHANGED