@kyndryl-design-system/shidoka-applications 2.110.0 → 2.110.1

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.
@@ -1,2 +1,2 @@
1
- export{T as Table}from"../../../table-BCKPa7di.js";export{TableCell}from"./table-cell.js";export{TableRow}from"./table-row.js";export{TableBody}from"./table-body.js";export{TableHead}from"./table-head.js";export{T as TableHeader,a as TableSkeleton}from"../../../table.skeleton-k-f3acVp.js";export{TableFoot}from"./table-foot.js";export{TableFooter}from"./table-footer.js";export{TableLegend}from"./table-legend.js";export{TableLegendItem}from"./table-legend-item.js";export{TableToolbar}from"./table-toolbar.js";export{TableContainer}from"./table-container.js";export{TableHeaderRow}from"./table-header-row.js";export{TableExpandedRow}from"./table-expanded-row.js";export{TableHeaderGroup}from"./table-header-group.js";import"tslib";import"lit";import"lit/decorators.js";import"@lit/context";import"./table-context.js";import"./defs.js";import"lit-html/directives/unsafe-svg.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-DG_R4Jwh.js";import"../checkbox/checkbox.js";import"lit-html/directives/class-map.js";import"lit/directives/if-defined.js";import"deepmerge-ts";import"../overflowMenu/overflowMenu.js";import"lit/directives/class-map.js";import"lit/directives/unsafe-html.js";import"../overflowMenu/overflowMenuItem.js";import"lit/directives/unsafe-svg.js";import"../tooltip/tooltip.js";import"../loaders/skeleton.js";import"../pagination/pagination.skeleton.js";import"../../../pagination-0XbKxe9y.js";import"../../global/header/header.js";import"lit-html/directives/unsafe-html.js";import"../../../common/helpers/helpers.js";import"../../../vendor/@kyndryl-design-system/shidoka-foundation-CkxvZH5D.js";import"../../global/header/headerNav.js";import"query-selector-shadow-dom";import"../../global/header/headerLink.js";import"lit/directives/style-map.js";import"../textInput/textInput.js";import"../button/button.js";import"../button/defs.js";import"../../../common/mixins/form-input.js";import"../../global/header/headerCategories.js";import"../../global/header/headerCategory.js";import"../../global/header/headerDivider.js";import"../../global/header/headerFlyouts.js";import"../../global/header/headerFlyout.js";import"../link/link.js";import"../link/defs.js";import"../../global/header/headerUserProfile.js";import"../../global/header/headerPanelLink.js";import"../../global/header/headerNotificationPanel.js";import"../../global/localNav/localNav.js";import"../../global/localNav/localNavLink.js";import"../../global/localNav/localNavDivider.js";import"../../global/footer/footer.js";import"../../global/uiShell/uiShell.js";import"../radioButton/radioButton.js";import"../radioButton/radioButtonGroup.js";import"../checkbox/checkboxGroup.js";import"../checkbox/checkboxSubgroup.js";import"../textArea/textArea.js";import"../avatar/avatar.js";import"../toggleButton/toggleButton.js";import"../dropdown/dropdown.js";import"@floating-ui/dom";import"../dropdown/dropdownOption.js";import"../dropdown/enhancedDropdownOption.js";import"../tag/tag.js";import"../../../tag-ehM901IX.js";import"../tag/tagGroup.js";import"../tag/tag.skeleton.js";import"../dropdown/dropdownCategory.js";import"../datePicker/datepicker.js";import"../../../common/helpers/flatpickr/flatpickr.js";import"flatpickr";import"flatpickr/dist/esm/plugins/rangePlugin.js";import"flatpickr/dist/esm/l10n/default.js";import"../../../common/helpers/flatpickr/langs.js";import"../../../common/helpers/flatpickr/overlay.js";import"../../../common/helpers/flatpickr/utils.js";import"../../../shidoka-flatpickr-calendar-DDdZQJ-B.js";import"../daterangepicker/daterangepicker.js";import"../timepicker/timepicker.js";import"../progressBar/progressBar.js";import"../loaders/loader.js";import"lottie-web";import"../loaders/inline.js";import"../../../inline-CxNcYPfA.js";import"../blockCodeView/blockCodeView.js";import"prismjs";import"prismjs/plugins/autoloader/prism-autoloader";import"prismjs/plugins/line-numbers/prism-line-numbers";import"../inlineCodeView/inlineCodeView.js";import"../breadcrumbs/breadcrumbs.js";import"../globalFilter/globalFilter.js";import"../pagination/Pagination.js";import"../pagination/pagination-items-range.js";import"../pagination/pagination-page-size-dropdown.js";import"../pagination/pagination-navigation-buttons.js";import"../numberInput/numberInput.js";import"../tabs/tabs.js";import"../tabs/tab.js";import"../tabs/tabPanel.js";import"../modal/modal.js";import"../sideDrawer/sideDrawer.js";import"../pagetitle/pageTitle.js";import"../pagetitle/pageTitleOption.js";import"../notification/notification.js";import"../card/card.js";import"../inlineConfirm/inlineConfirm.js";import"../card/vitalCard.skeleton.js";import"../../../cardSample-BCIwY1rJ.js";import"../card/informationalCard.skeleton.js";import"../badge/badge.js";import"../notification/notificationContainer.js";import"../widget/widget.js";import"../widget/defs.js";import"../widget/widgetDragHandle.js";import"../widget/widgetGridstack.js";import"../../../common/helpers/gridstack.js";import"gridstack";import"../search/search.js";import"../sliderInput/sliderInput.js";import"../popover/popover.js";import"../../../common/helpers/popoverHelper.js";import"../stepper/stepper.js";import"../stepper/stepperItem.js";import"../stepper/stepperItemChild.js";import"../accordion/accordion.js";import"../accordion/accordionItem.js";import"../splitButton/splitButton.js";import"../splitButton/defs.js";import"../splitButton/splitButtonOption.js";import"../floatingContainer/floatingContainer.js";import"../../ai/sourcesFeedback/aiSourcesFeedback.js";import"../colorInput/colorInput.js";import"../metaData/metaData.js";import"../divider/divider.js";import"../splitView/splitView.js";import"../statusButton/statusButton.js";import"../statusButton/defs.js";import"../stateIndicator/stateIndicator.js";import"../stateIndicator/defs.js";import"../queryBuilder/queryBuilder.js";import"../queryBuilder/defs/types.js";import"../queryBuilder/defs/helpers.js";import"../queryBuilder/queryBuilderGroup.js";import"lit/directives/repeat.js";import"../queryBuilder/queryBuilderRule.js";import"../queryBuilder/defs/operators.js";import"../buttonGroup/buttonGroup.js";import"../iconSelector/iconSelector.js";import"../iconSelector/iconSelectorGroup.js";
1
+ export{T as Table}from"../../../table-BCKPa7di.js";export{TableCell}from"./table-cell.js";export{TableRow}from"./table-row.js";export{TableBody}from"./table-body.js";export{TableHead}from"./table-head.js";export{T as TableHeader,a as TableSkeleton}from"../../../table.skeleton-k-f3acVp.js";export{TableFoot}from"./table-foot.js";export{TableFooter}from"./table-footer.js";export{TableLegend}from"./table-legend.js";export{TableLegendItem}from"./table-legend-item.js";export{TableToolbar}from"./table-toolbar.js";export{TableContainer}from"./table-container.js";export{TableHeaderRow}from"./table-header-row.js";export{TableExpandedRow}from"./table-expanded-row.js";export{TableHeaderGroup}from"./table-header-group.js";import"tslib";import"lit";import"lit/decorators.js";import"@lit/context";import"./table-context.js";import"lit/directives/class-map.js";import"./defs.js";import"lit-html/directives/unsafe-svg.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-DG_R4Jwh.js";import"../checkbox/checkbox.js";import"lit-html/directives/class-map.js";import"lit/directives/if-defined.js";import"deepmerge-ts";import"../overflowMenu/overflowMenu.js";import"lit/directives/unsafe-html.js";import"../overflowMenu/overflowMenuItem.js";import"lit/directives/unsafe-svg.js";import"../tooltip/tooltip.js";import"../loaders/skeleton.js";import"../pagination/pagination.skeleton.js";import"../../../pagination-0XbKxe9y.js";import"../../global/header/header.js";import"lit-html/directives/unsafe-html.js";import"../../../common/helpers/helpers.js";import"../../../vendor/@kyndryl-design-system/shidoka-foundation-CkxvZH5D.js";import"../../global/header/headerNav.js";import"query-selector-shadow-dom";import"../../global/header/headerLink.js";import"lit/directives/style-map.js";import"../textInput/textInput.js";import"../button/button.js";import"../button/defs.js";import"../../../common/mixins/form-input.js";import"../../global/header/headerCategories.js";import"../../global/header/headerCategory.js";import"../../global/header/headerDivider.js";import"../../global/header/headerFlyouts.js";import"../../global/header/headerFlyout.js";import"../link/link.js";import"../link/defs.js";import"../../global/header/headerUserProfile.js";import"../../global/header/headerPanelLink.js";import"../../global/header/headerNotificationPanel.js";import"../../global/localNav/localNav.js";import"../../global/localNav/localNavLink.js";import"../../global/localNav/localNavDivider.js";import"../../global/footer/footer.js";import"../../global/uiShell/uiShell.js";import"../radioButton/radioButton.js";import"../radioButton/radioButtonGroup.js";import"../checkbox/checkboxGroup.js";import"../checkbox/checkboxSubgroup.js";import"../textArea/textArea.js";import"../avatar/avatar.js";import"../toggleButton/toggleButton.js";import"../dropdown/dropdown.js";import"@floating-ui/dom";import"../dropdown/dropdownOption.js";import"../dropdown/enhancedDropdownOption.js";import"../tag/tag.js";import"../../../tag-ehM901IX.js";import"../tag/tagGroup.js";import"../tag/tag.skeleton.js";import"../dropdown/dropdownCategory.js";import"../datePicker/datepicker.js";import"../../../common/helpers/flatpickr/flatpickr.js";import"flatpickr";import"flatpickr/dist/esm/plugins/rangePlugin.js";import"flatpickr/dist/esm/l10n/default.js";import"../../../common/helpers/flatpickr/langs.js";import"../../../common/helpers/flatpickr/overlay.js";import"../../../common/helpers/flatpickr/utils.js";import"../../../shidoka-flatpickr-calendar-DDdZQJ-B.js";import"../daterangepicker/daterangepicker.js";import"../timepicker/timepicker.js";import"../progressBar/progressBar.js";import"../loaders/loader.js";import"lottie-web";import"../loaders/inline.js";import"../../../inline-CxNcYPfA.js";import"../blockCodeView/blockCodeView.js";import"prismjs";import"prismjs/plugins/autoloader/prism-autoloader";import"prismjs/plugins/line-numbers/prism-line-numbers";import"../inlineCodeView/inlineCodeView.js";import"../breadcrumbs/breadcrumbs.js";import"../globalFilter/globalFilter.js";import"../pagination/Pagination.js";import"../pagination/pagination-items-range.js";import"../pagination/pagination-page-size-dropdown.js";import"../pagination/pagination-navigation-buttons.js";import"../numberInput/numberInput.js";import"../tabs/tabs.js";import"../tabs/tab.js";import"../tabs/tabPanel.js";import"../modal/modal.js";import"../sideDrawer/sideDrawer.js";import"../pagetitle/pageTitle.js";import"../pagetitle/pageTitleOption.js";import"../notification/notification.js";import"../card/card.js";import"../inlineConfirm/inlineConfirm.js";import"../card/vitalCard.skeleton.js";import"../../../cardSample-BCIwY1rJ.js";import"../card/informationalCard.skeleton.js";import"../badge/badge.js";import"../notification/notificationContainer.js";import"../widget/widget.js";import"../widget/defs.js";import"../widget/widgetDragHandle.js";import"../widget/widgetGridstack.js";import"../../../common/helpers/gridstack.js";import"gridstack";import"../search/search.js";import"../sliderInput/sliderInput.js";import"../popover/popover.js";import"../../../common/helpers/popoverHelper.js";import"../stepper/stepper.js";import"../stepper/stepperItem.js";import"../stepper/stepperItemChild.js";import"../accordion/accordion.js";import"../accordion/accordionItem.js";import"../splitButton/splitButton.js";import"../splitButton/defs.js";import"../splitButton/splitButtonOption.js";import"../floatingContainer/floatingContainer.js";import"../../ai/sourcesFeedback/aiSourcesFeedback.js";import"../colorInput/colorInput.js";import"../metaData/metaData.js";import"../divider/divider.js";import"../splitView/splitView.js";import"../statusButton/statusButton.js";import"../statusButton/defs.js";import"../stateIndicator/stateIndicator.js";import"../stateIndicator/defs.js";import"../queryBuilder/queryBuilder.js";import"../queryBuilder/defs/types.js";import"../queryBuilder/defs/helpers.js";import"../queryBuilder/queryBuilderGroup.js";import"lit/directives/repeat.js";import"../queryBuilder/queryBuilderRule.js";import"../queryBuilder/defs/operators.js";import"../buttonGroup/buttonGroup.js";import"../iconSelector/iconSelector.js";import"../iconSelector/iconSelectorGroup.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -39,6 +39,7 @@ export declare class TableCell extends LitElement {
39
39
  accessor disabled: boolean;
40
40
  /** Dim the cell. */
41
41
  accessor dimmed: boolean;
42
+ private accessor hasProgressBarComponent;
42
43
  /**
43
44
  * Context consumer for the table context.
44
45
  * Updates the cell's dense properties when the context changes.
@@ -53,6 +54,7 @@ export declare class TableCell extends LitElement {
53
54
  */
54
55
  handleContextChange: ({ dense }: TableContextType) => void;
55
56
  updated(changedProperties: PropertyValues): void;
57
+ private applyProgressBarStyles;
56
58
  render(): import("lit-html").TemplateResult<1>;
57
59
  }
58
60
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"table-cell.d.ts","sourceRoot":"","sources":["../../../../src/components/reusable/table/table-cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;AAGlE,OAAO,EAAgB,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C;;;;;;;;GAQG;AACH,qBACa,SAAU,SAAQ,UAAU;IACvC,OAAgB,MAAM,0BAAqB;IAG3C,QAAQ,CAAC,KAAK,UAAS;IAEvB;;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yB;IAEzB,QAAQ,CAAC,QAAQ,UAAS;IAE1B,oBAAoB;IAEpB,QAAQ,CAAC,MAAM,UAAS;IAGxB,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAS;IAEjD;;;;;;OAMG;IAGH,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAO/B;IAEF;;;OAGG;IACH,mBAAmB,GAAI,WAAW,gBAAgB,UAIhD;IAEO,OAAO,CAAC,iBAAiB,EAAE,cAAc;IAiBlD,OAAO,CAAC,sBAAsB;IAiBrB,MAAM;CAYhB;AAGD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,QAAQ,EAAE,SAAS,CAAC;KACrB;CACF"}
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as s}from"tslib";import{css as n,LitElement as r,unsafeCSS as d,html as o}from"lit";import{customElement as l,property as h,state as m}from"lit/decorators.js";import{ContextConsumer as c}from"@lit/context";import{tableContext as p}from"./table-context.js";import{TABLE_CELL_ALIGN as g}from"./defs.js";var f=n`*,
1
+ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as s,__classPrivateFieldSet as a}from"tslib";import{css as r,LitElement as n,unsafeCSS as o,html as d}from"lit";import{customElement as l,property as h,state as m}from"lit/decorators.js";import{classMap as c}from"lit/directives/class-map.js";import{ContextConsumer as p}from"@lit/context";import{tableContext as g}from"./table-context.js";import{TABLE_CELL_ALIGN as f}from"./defs.js";var k=r`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -76,12 +76,14 @@ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPr
76
76
 
77
77
  .slot-wrapper {
78
78
  display: inline-block;
79
- width: 100%;
80
- min-width: 0;
81
79
  max-width: 100%;
82
80
  }
83
81
 
84
- .slot-wrapper slot::slotted(*) {
82
+ .has-progress {
83
+ width: 100%;
84
+ }
85
+
86
+ .slot-wrapper::slotted(*) {
85
87
  display: flex;
86
88
  min-width: 0;
87
89
  flex-shrink: 1;
@@ -132,9 +134,11 @@ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPr
132
134
 
133
135
  :host(:last-child) {
134
136
  border-bottom-right-radius: var(--kyn-td-border-radius-br);
135
- }`;let k=(()=>{var n,k,b,w,u,y,v,x,W;let z,C,M,S,j,_,P,B,O,T,E,F=[l("kyn-td")],L=[],q=r,A=[],D=[],G=[],H=[],I=[],J=[],K=[],N=[],Q=[],R=[],U=[],V=[],X=[],Y=[],Z=[],$=[],tt=[],et=[];return C=class extends q{constructor(){super(...arguments),n.set(this,i(this,A,!1)),k.set(this,(i(this,D),i(this,G,"cell"))),b.set(this,(i(this,H),i(this,I,g.LEFT))),w.set(this,(i(this,J),i(this,K,""))),u.set(this,(i(this,N),i(this,Q,""))),y.set(this,(i(this,R),i(this,U,""))),v.set(this,(i(this,V),i(this,X,!1))),x.set(this,(i(this,Y),i(this,Z,!1))),W.set(this,(i(this,$),i(this,tt,new c(this,p,(t=>{t&&this.handleContextChange(t)}),!0)))),this.handleContextChange=(i(this,et),({dense:t})=>{"boolean"==typeof t&&(this.dense=t)})}get dense(){return a(this,n,"f")}set dense(t){s(this,n,t,"f")}get role(){return a(this,k,"f")}set role(t){s(this,k,t,"f")}get align(){return a(this,b,"f")}set align(t){s(this,b,t,"f")}get width(){return a(this,w,"f")}set width(t){s(this,w,t,"f")}get maxWidth(){return a(this,u,"f")}set maxWidth(t){s(this,u,t,"f")}get minWidth(){return a(this,y,"f")}set minWidth(t){s(this,y,t,"f")}get disabled(){return a(this,v,"f")}set disabled(t){s(this,v,t,"f")}get dimmed(){return a(this,x,"f")}set dimmed(t){s(this,x,t,"f")}get _contextConsumer(){return a(this,W,"f")}set _contextConsumer(t){s(this,W,t,"f")}updated(t){super.updated(t),this.maxWidth&&t.has("maxWidth")&&this.style.setProperty("--kyn-td-max-width",this.maxWidth),this.width&&t.has("width")&&this.style.setProperty("--kyn-td-width",this.width),this.minWidth&&t.has("minWidth")&&this.style.setProperty("--kyn-td-min-width",this.minWidth)}render(){return o`
136
- <div class="slot-wrapper">
137
+ }`;let u=(()=>{var r,u,y,b,v,w,x,W,C,P;let B,S,z,M,j,_,E,L,O,T,q,F,N=[l("kyn-td")],R=[],$=n,A=[],D=[],G=[],H=[],I=[],J=[],K=[],Q=[],U=[],V=[],X=[],Y=[],Z=[],tt=[],et=[],it=[],st=[],at=[],rt=[],nt=[];return S=class extends ${constructor(){super(...arguments),r.set(this,i(this,A,!1)),u.set(this,(i(this,D),i(this,G,"cell"))),y.set(this,(i(this,H),i(this,I,f.LEFT))),b.set(this,(i(this,J),i(this,K,""))),v.set(this,(i(this,Q),i(this,U,""))),w.set(this,(i(this,V),i(this,X,""))),x.set(this,(i(this,Y),i(this,Z,!1))),W.set(this,(i(this,tt),i(this,et,!1))),C.set(this,(i(this,it),i(this,st,!1))),P.set(this,(i(this,at),i(this,rt,new p(this,g,(t=>{t&&this.handleContextChange(t)}),!0)))),this.handleContextChange=(i(this,nt),({dense:t})=>{"boolean"==typeof t&&(this.dense=t)})}get dense(){return s(this,r,"f")}set dense(t){a(this,r,t,"f")}get role(){return s(this,u,"f")}set role(t){a(this,u,t,"f")}get align(){return s(this,y,"f")}set align(t){a(this,y,t,"f")}get width(){return s(this,b,"f")}set width(t){a(this,b,t,"f")}get maxWidth(){return s(this,v,"f")}set maxWidth(t){a(this,v,t,"f")}get minWidth(){return s(this,w,"f")}set minWidth(t){a(this,w,t,"f")}get disabled(){return s(this,x,"f")}set disabled(t){a(this,x,t,"f")}get dimmed(){return s(this,W,"f")}set dimmed(t){a(this,W,t,"f")}get hasProgressBarComponent(){return s(this,C,"f")}set hasProgressBarComponent(t){a(this,C,t,"f")}get _contextConsumer(){return s(this,P,"f")}set _contextConsumer(t){a(this,P,t,"f")}updated(t){super.updated(t),this.maxWidth&&t.has("maxWidth")&&this.style.setProperty("--kyn-td-max-width",this.maxWidth),this.width&&t.has("width")&&this.style.setProperty("--kyn-td-width",this.width),this.minWidth&&t.has("minWidth")&&this.style.setProperty("--kyn-td-min-width",this.minWidth),this.applyProgressBarStyles()}applyProgressBarStyles(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot");if(!e)return;const i=null==e?void 0:e.assignedElements();let s=!1;i.forEach((t=>{var e;"kyn-progress-bar"===(null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase())&&(s=!0)})),this.hasProgressBarComponent=s}render(){return d`
138
+ <div
139
+ class=${c({"slot-wrapper":!0,"has-progress":this.hasProgressBarComponent})}
140
+ >
137
141
  <slot></slot>
138
142
  </div>
139
- `}},n=new WeakMap,k=new WeakMap,b=new WeakMap,w=new WeakMap,u=new WeakMap,y=new WeakMap,v=new WeakMap,x=new WeakMap,W=new WeakMap,t(C,"TableCell"),(()=>{var t;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(t=q[Symbol.metadata])&&void 0!==t?t:null):void 0;M=[h({type:Boolean,reflect:!0})],S=[h({type:String,reflect:!0})],j=[h({type:String,reflect:!0})],_=[h({type:String,reflect:!0})],P=[h({type:String,reflect:!0})],B=[h({type:String,reflect:!0})],O=[h({type:Boolean,reflect:!0})],T=[h({type:Boolean,reflect:!0})],E=[m()],e(C,null,M,{kind:"accessor",name:"dense",static:!1,private:!1,access:{has:t=>"dense"in t,get:t=>t.dense,set:(t,e)=>{t.dense=e}},metadata:i},A,D),e(C,null,S,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:t=>"role"in t,get:t=>t.role,set:(t,e)=>{t.role=e}},metadata:i},G,H),e(C,null,j,{kind:"accessor",name:"align",static:!1,private:!1,access:{has:t=>"align"in t,get:t=>t.align,set:(t,e)=>{t.align=e}},metadata:i},I,J),e(C,null,_,{kind:"accessor",name:"width",static:!1,private:!1,access:{has:t=>"width"in t,get:t=>t.width,set:(t,e)=>{t.width=e}},metadata:i},K,N),e(C,null,P,{kind:"accessor",name:"maxWidth",static:!1,private:!1,access:{has:t=>"maxWidth"in t,get:t=>t.maxWidth,set:(t,e)=>{t.maxWidth=e}},metadata:i},Q,R),e(C,null,B,{kind:"accessor",name:"minWidth",static:!1,private:!1,access:{has:t=>"minWidth"in t,get:t=>t.minWidth,set:(t,e)=>{t.minWidth=e}},metadata:i},U,V),e(C,null,O,{kind:"accessor",name:"disabled",static:!1,private:!1,access:{has:t=>"disabled"in t,get:t=>t.disabled,set:(t,e)=>{t.disabled=e}},metadata:i},X,Y),e(C,null,T,{kind:"accessor",name:"dimmed",static:!1,private:!1,access:{has:t=>"dimmed"in t,get:t=>t.dimmed,set:(t,e)=>{t.dimmed=e}},metadata:i},Z,$),e(C,null,E,{kind:"accessor",name:"_contextConsumer",static:!1,private:!1,access:{has:t=>"_contextConsumer"in t,get:t=>t._contextConsumer,set:(t,e)=>{t._contextConsumer=e}},metadata:i},tt,et),e(null,z={value:C},F,{kind:"class",name:C.name,metadata:i},null,L),C=z.value,i&&Object.defineProperty(C,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),C.styles=d(f),i(C,L),C})();export{k as TableCell};
143
+ `}},r=new WeakMap,u=new WeakMap,y=new WeakMap,b=new WeakMap,v=new WeakMap,w=new WeakMap,x=new WeakMap,W=new WeakMap,C=new WeakMap,P=new WeakMap,t(S,"TableCell"),(()=>{var t;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(t=$[Symbol.metadata])&&void 0!==t?t:null):void 0;z=[h({type:Boolean,reflect:!0})],M=[h({type:String,reflect:!0})],j=[h({type:String,reflect:!0})],_=[h({type:String,reflect:!0})],E=[h({type:String,reflect:!0})],L=[h({type:String,reflect:!0})],O=[h({type:Boolean,reflect:!0})],T=[h({type:Boolean,reflect:!0})],q=[m()],F=[m()],e(S,null,z,{kind:"accessor",name:"dense",static:!1,private:!1,access:{has:t=>"dense"in t,get:t=>t.dense,set:(t,e)=>{t.dense=e}},metadata:i},A,D),e(S,null,M,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:t=>"role"in t,get:t=>t.role,set:(t,e)=>{t.role=e}},metadata:i},G,H),e(S,null,j,{kind:"accessor",name:"align",static:!1,private:!1,access:{has:t=>"align"in t,get:t=>t.align,set:(t,e)=>{t.align=e}},metadata:i},I,J),e(S,null,_,{kind:"accessor",name:"width",static:!1,private:!1,access:{has:t=>"width"in t,get:t=>t.width,set:(t,e)=>{t.width=e}},metadata:i},K,Q),e(S,null,E,{kind:"accessor",name:"maxWidth",static:!1,private:!1,access:{has:t=>"maxWidth"in t,get:t=>t.maxWidth,set:(t,e)=>{t.maxWidth=e}},metadata:i},U,V),e(S,null,L,{kind:"accessor",name:"minWidth",static:!1,private:!1,access:{has:t=>"minWidth"in t,get:t=>t.minWidth,set:(t,e)=>{t.minWidth=e}},metadata:i},X,Y),e(S,null,O,{kind:"accessor",name:"disabled",static:!1,private:!1,access:{has:t=>"disabled"in t,get:t=>t.disabled,set:(t,e)=>{t.disabled=e}},metadata:i},Z,tt),e(S,null,T,{kind:"accessor",name:"dimmed",static:!1,private:!1,access:{has:t=>"dimmed"in t,get:t=>t.dimmed,set:(t,e)=>{t.dimmed=e}},metadata:i},et,it),e(S,null,q,{kind:"accessor",name:"hasProgressBarComponent",static:!1,private:!1,access:{has:t=>"hasProgressBarComponent"in t,get:t=>t.hasProgressBarComponent,set:(t,e)=>{t.hasProgressBarComponent=e}},metadata:i},st,at),e(S,null,F,{kind:"accessor",name:"_contextConsumer",static:!1,private:!1,access:{has:t=>"_contextConsumer"in t,get:t=>t._contextConsumer,set:(t,e)=>{t._contextConsumer=e}},metadata:i},rt,nt),e(null,B={value:S},N,{kind:"class",name:S.name,metadata:i},null,R),S=B.value,i&&Object.defineProperty(S,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),S.styles=o(k),i(S,R),S})();export{u as TableCell};
140
144
  //# sourceMappingURL=table-cell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-cell.js","sources":["../../../../src/components/reusable/table/table-cell.ts"],"sourcesContent":["import { html, LitElement, PropertyValues, unsafeCSS } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { ContextConsumer } from '@lit/context';\nimport { tableContext, TableContextType } from './table-context';\n\nimport styles from './table-cell.scss?inline';\n\nimport { TABLE_CELL_ALIGN } from './defs';\n\n/**\n * `kyn-td` Web Component.\n *\n * Represents a table cell (data cell) within Shidoka's design system tables.\n * Allows customization of alignment and can reflect the sort direction when\n * used within sortable columns.\n *\n * @slot unnamed - The content slot for adding table data inside the cell.\n */\n@customElement('kyn-td')\nexport class TableCell extends LitElement {\n static override styles = unsafeCSS(styles);\n\n @property({ type: Boolean, reflect: true })\n accessor dense = false;\n\n /** aria role.\n * @internal\n */\n @property({ type: String, reflect: true })\n override accessor role = 'cell';\n\n /** Determines the text alignment of the table cell's content. */\n @property({ type: String, reflect: true })\n accessor align: TABLE_CELL_ALIGN = TABLE_CELL_ALIGN.LEFT;\n\n /**\n * Sets a fixed width for the cell.\n * Accepts standard CSS width values (e.g., '150px', '50%').\n */\n @property({ type: String, reflect: true })\n accessor width = '';\n\n /**\n * Sets a maximum width for the cell.\n * Accepts standard CSS width values (e.g., '150px', '50%').\n */\n @property({ type: String, reflect: true })\n accessor maxWidth = '';\n\n /**\n * Sets a minimum width for the cell;\n * Accepts standard CSS width values (e.g., '150px', '50%').\n * @type {string}\n */\n @property({ type: String, reflect: true })\n accessor minWidth = '';\n\n /** Disables the cell. */\n @property({ type: Boolean, reflect: true })\n accessor disabled = false;\n\n /** Dim the cell. */\n @property({ type: Boolean, reflect: true })\n accessor dimmed = false;\n\n /**\n * Context consumer for the table context.\n * Updates the cell's dense properties when the context changes.\n * @private\n * @ignore\n * @type {ContextConsumer<TableContextType, TableCell>}\n */\n @state()\n // @ts-expect-error - This is a context consumer\n private accessor _contextConsumer = new ContextConsumer(\n this,\n tableContext,\n (context) => {\n if (context) this.handleContextChange(context);\n },\n true\n );\n\n /**\n * Updates the cell's dense properties when the context changes.\n * @param {TableContextType} context - The updated context.\n */\n handleContextChange = ({ dense }: TableContextType) => {\n if (typeof dense == 'boolean') {\n this.dense = dense;\n }\n };\n\n override updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n if (this.maxWidth && changedProperties.has('maxWidth')) {\n this.style.setProperty('--kyn-td-max-width', this.maxWidth);\n }\n\n if (this.width && changedProperties.has('width')) {\n this.style.setProperty('--kyn-td-width', this.width);\n }\n\n if (this.minWidth && changedProperties.has('minWidth')) {\n this.style.setProperty('--kyn-td-min-width', this.minWidth);\n }\n }\n\n override render() {\n return html`\n <div class=\"slot-wrapper\">\n <slot></slot>\n </div>\n `;\n }\n}\n\n// Define the custom element in the global namespace\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-td': TableCell;\n }\n}\n"],"names":["TableCell","customElement","LitElement","_classThis","_classSuper","_TableCell_dense_accessor_storage","set","this","__runInitializers","_dense_initializers","_TableCell_role_accessor_storage","_dense_extraInitializers","_role_initializers","_TableCell_align_accessor_storage","_role_extraInitializers","_align_initializers","TABLE_CELL_ALIGN","LEFT","_TableCell_width_accessor_storage","_align_extraInitializers","_width_initializers","_TableCell_maxWidth_accessor_storage","_width_extraInitializers","_maxWidth_initializers","_TableCell_minWidth_accessor_storage","_maxWidth_extraInitializers","_minWidth_initializers","_TableCell_disabled_accessor_storage","_minWidth_extraInitializers","_disabled_initializers","_TableCell_dimmed_accessor_storage","_disabled_extraInitializers","_dimmed_initializers","_TableCell__contextConsumer_accessor_storage","_dimmed_extraInitializers","__contextConsumer_initializers","ContextConsumer","tableContext","context","handleContextChange","dense","__classPrivateFieldGet","value","__classPrivateFieldSet","role","align","width","maxWidth","minWidth","disabled","dimmed","_contextConsumer","updated","changedProperties","super","has","style","setProperty","render","html","property","type","Boolean","reflect","String","__contextConsumer_decorators","state","__esDecorate","_dense_decorators","kind","name","static","private","access","obj","get","metadata","_metadata","_role_decorators","_align_decorators","_width_decorators","_maxWidth_decorators","_minWidth_decorators","_disabled_decorators","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AAAC,GAAA7C,EAAAE,GAWfiC,EAAAhE,EAAA,KAAA8D,EAAA,CAAAI,KAAA,WAAAC,KAAA,mBAAAC,QAAA,EAAAC,SAAA,EAAAC,OAAA,CAAAlB,IAAAmB,GAAA,qBAAAA,EAAAC,IAAAD,GAAAA,EAAiBvB,iBAAgB7C,IAAA,CAAAoE,EAAAhC,KAAAgC,EAAhBvB,iBAAgBT,CAAA,GAAAkC,SAAAC,GAAA1C,GAAAkD,IAvDnClB,EAAA,KAAAmB,EAAA,CAAA5C,MAAAvC,GAAAoF,EAAA,CAAAlB,KAAA,QAAAC,KAAAnE,EAAAmE,KAAAM,SAAAC,GAAA,KAAAW,iHACkBrF,EAAAsF,OAASC,EAAUD,GADxBjF,EAAAL,EAAAqF,MAAS"}
1
+ {"version":3,"file":"table-cell.js","sources":["../../../../src/components/reusable/table/table-cell.ts"],"sourcesContent":["import { html, LitElement, PropertyValues, unsafeCSS } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ContextConsumer } from '@lit/context';\nimport { tableContext, TableContextType } from './table-context';\n\nimport styles from './table-cell.scss?inline';\n\nimport { TABLE_CELL_ALIGN } from './defs';\n\n/**\n * `kyn-td` Web Component.\n *\n * Represents a table cell (data cell) within Shidoka's design system tables.\n * Allows customization of alignment and can reflect the sort direction when\n * used within sortable columns.\n *\n * @slot unnamed - The content slot for adding table data inside the cell.\n */\n@customElement('kyn-td')\nexport class TableCell extends LitElement {\n static override styles = unsafeCSS(styles);\n\n @property({ type: Boolean, reflect: true })\n accessor dense = false;\n\n /** aria role.\n * @internal\n */\n @property({ type: String, reflect: true })\n override accessor role = 'cell';\n\n /** Determines the text alignment of the table cell's content. */\n @property({ type: String, reflect: true })\n accessor align: TABLE_CELL_ALIGN = TABLE_CELL_ALIGN.LEFT;\n\n /**\n * Sets a fixed width for the cell.\n * Accepts standard CSS width values (e.g., '150px', '50%').\n */\n @property({ type: String, reflect: true })\n accessor width = '';\n\n /**\n * Sets a maximum width for the cell.\n * Accepts standard CSS width values (e.g., '150px', '50%').\n */\n @property({ type: String, reflect: true })\n accessor maxWidth = '';\n\n /**\n * Sets a minimum width for the cell;\n * Accepts standard CSS width values (e.g., '150px', '50%').\n * @type {string}\n */\n @property({ type: String, reflect: true })\n accessor minWidth = '';\n\n /** Disables the cell. */\n @property({ type: Boolean, reflect: true })\n accessor disabled = false;\n\n /** Dim the cell. */\n @property({ type: Boolean, reflect: true })\n accessor dimmed = false;\n\n @state()\n private accessor hasProgressBarComponent = false;\n\n /**\n * Context consumer for the table context.\n * Updates the cell's dense properties when the context changes.\n * @private\n * @ignore\n * @type {ContextConsumer<TableContextType, TableCell>}\n */\n @state()\n // @ts-expect-error - This is a context consumer\n private accessor _contextConsumer = new ContextConsumer(\n this,\n tableContext,\n (context) => {\n if (context) this.handleContextChange(context);\n },\n true\n );\n\n /**\n * Updates the cell's dense properties when the context changes.\n * @param {TableContextType} context - The updated context.\n */\n handleContextChange = ({ dense }: TableContextType) => {\n if (typeof dense == 'boolean') {\n this.dense = dense;\n }\n };\n\n override updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n if (this.maxWidth && changedProperties.has('maxWidth')) {\n this.style.setProperty('--kyn-td-max-width', this.maxWidth);\n }\n\n if (this.width && changedProperties.has('width')) {\n this.style.setProperty('--kyn-td-width', this.width);\n }\n\n if (this.minWidth && changedProperties.has('minWidth')) {\n this.style.setProperty('--kyn-td-min-width', this.minWidth);\n }\n\n this.applyProgressBarStyles();\n }\n\n private applyProgressBarStyles() {\n const slot = this.shadowRoot?.querySelector('slot');\n if (!slot) return;\n\n const assignedElements = slot?.assignedElements();\n let hasProgress = false;\n\n assignedElements.forEach((el) => {\n const tagName = el?.tagName?.toLowerCase();\n if (tagName === 'kyn-progress-bar') {\n hasProgress = true;\n }\n });\n\n this.hasProgressBarComponent = hasProgress;\n }\n\n override render() {\n return html`\n <div\n class=${classMap({\n 'slot-wrapper': true,\n 'has-progress': this.hasProgressBarComponent,\n })}\n >\n <slot></slot>\n </div>\n `;\n }\n}\n\n// Define the custom element in the global namespace\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-td': TableCell;\n }\n}\n"],"names":["TableCell","customElement","LitElement","_classThis","_classSuper","_TableCell_dense_accessor_storage","set","this","__runInitializers","_dense_initializers","_TableCell_role_accessor_storage","_dense_extraInitializers","_role_initializers","_TableCell_align_accessor_storage","_role_extraInitializers","_align_initializers","TABLE_CELL_ALIGN","LEFT","_TableCell_width_accessor_storage","_align_extraInitializers","_width_initializers","_TableCell_maxWidth_accessor_storage","_width_extraInitializers","_maxWidth_initializers","_TableCell_minWidth_accessor_storage","_maxWidth_extraInitializers","_minWidth_initializers","_TableCell_disabled_accessor_storage","_minWidth_extraInitializers","_disabled_initializers","_TableCell_dimmed_accessor_storage","_disabled_extraInitializers","_dimmed_initializers","_TableCell_hasProgressBarComponent_accessor_storage","_dimmed_extraInitializers","_hasProgressBarComponent_initializers","_TableCell__contextConsumer_accessor_storage","_hasProgressBarComponent_extraInitializers","__contextConsumer_initializers","ContextConsumer","tableContext","context","handleContextChange","dense","__classPrivateFieldGet","value","__classPrivateFieldSet","role","align","width","maxWidth","minWidth","disabled","dimmed","hasProgressBarComponent","_contextConsumer","updated","changedProperties","super","has","style","setProperty","applyProgressBarStyles","slot","_a","shadowRoot","querySelector","assignedElements","hasProgress","forEach","el","tagName","toLowerCase","render","html","classMap","property","type","Boolean","reflect","String","_hasProgressBarComponent_decorators","state","__contextConsumer_decorators","__esDecorate","_dense_decorators","kind","name","static","private","access","obj","get","metadata","_metadata","_role_decorators","_align_decorators","_width_decorators","_maxWidth_decorators","_minWidth_decorators","_disabled_decorators","_dimmed_decorators","__contextConsumer_extraInitializers","_classDescriptor","_classDecorators","_classExtraInitializers","styles","unsafeCSS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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