@fluid-topics/ft-filterable-table 0.3.61 → 0.3.62

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.
@@ -1085,7 +1085,7 @@ const Ee={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
1085
1085
  ${e.setVariable(Le.size,qe.iconSize)};
1086
1086
  ${e.setVariable(Le.color,"var(--ft-button-internal-color)")};
1087
1087
  }
1088
- `];var ti=function(t,e,i,o){for(var s,n=arguments.length,l=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(l=(n<3?s(l):n>3?s(e,i,l):s(e,i))||l);return n>3&&l&&Object.defineProperty(e,i,l),l};class ei extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=me.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
1088
+ `];var ti=function(t,e,i,o){for(var s,n=arguments.length,l=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(l=(n<3?s(l):n>3?s(e,i,l):s(e,i))||l);return n>3&&l&&Object.defineProperty(e,i,l),l};class ei extends e.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=me.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
1089
1089
  <button part="button"
1090
1090
  class="${l.classMap(t)}"
1091
1091
  aria-label="${this.getLabel()}"
@@ -1108,7 +1108,7 @@ const Ee={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
1108
1108
  </ft-tooltip>
1109
1109
  `:t}resolveIcon(){return this.loading?i.html`
1110
1110
  <ft-loader></ft-loader> `:this.icon?i.html`
1111
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:i.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ei.elementDefinitions={"ft-ripple":be,"ft-tooltip":Ke,"ft-typography":te,"ft-icon":we,"ft-loader":Ve},ei.styles=[e.safariEllipsisFix,Qe],ti([o.property({type:Boolean})],ei.prototype,"primary",void 0),ti([o.property({type:Boolean})],ei.prototype,"outlined",void 0),ti([o.property({type:Boolean})],ei.prototype,"disabled",void 0),ti([o.property({type:Boolean})],ei.prototype,"dense",void 0),ti([o.property({type:Boolean})],ei.prototype,"round",void 0),ti([o.property({type:String})],ei.prototype,"label",void 0),ti([o.property({type:String})],ei.prototype,"icon",void 0),ti([o.property({type:String})],ei.prototype,"iconVariant",void 0),ti([o.property({type:Boolean})],ei.prototype,"trailingIcon",void 0),ti([o.property({type:Boolean})],ei.prototype,"loading",void 0),ti([o.property({type:String})],ei.prototype,"tooltipPosition",void 0),ti([o.property({type:Boolean})],ei.prototype,"hideTooltip",void 0),ti([o.property({type:Boolean})],ei.prototype,"forceTooltip",void 0),ti([o.query(".ft-button")],ei.prototype,"button",void 0),ti([o.query(".ft-button--label slot")],ei.prototype,"slottedContent",void 0),e.customElement("ft-button")(ei);class ii extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const oi={headerBackground:e.FtCssVariableFactory.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:e.FtCssVariableFactory.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:e.FtCssVariableFactory.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:e.FtCssVariableFactory.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:e.FtCssVariableFactory.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),cellVerticalBorderWidth:e.FtCssVariableFactory.create("--ft-filterable-table-cell-vertical-border-width","SIZE","1px"),colorOnSurfaceHigh:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceHigh,"Design system"),titleFont:e.FtCssVariableFactory.external(e.designSystemVariables.titleFont,"Design system"),contentFont:e.FtCssVariableFactory.external(e.designSystemVariables.contentFont,"Design system")},si=i.css`
1111
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:i.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ei.elementDefinitions={"ft-ripple":be,"ft-tooltip":Ke,"ft-typography":te,"ft-icon":we,"ft-loader":Ve},ei.styles=[e.safariEllipsisFix,Qe],ti([o.property({type:String,reflect:!0})],ei.prototype,"role",void 0),ti([o.property({type:Boolean})],ei.prototype,"primary",void 0),ti([o.property({type:Boolean})],ei.prototype,"outlined",void 0),ti([o.property({type:Boolean})],ei.prototype,"disabled",void 0),ti([o.property({type:Boolean})],ei.prototype,"dense",void 0),ti([o.property({type:Boolean})],ei.prototype,"round",void 0),ti([o.property({type:String})],ei.prototype,"label",void 0),ti([o.property({type:String})],ei.prototype,"icon",void 0),ti([o.property({type:String})],ei.prototype,"iconVariant",void 0),ti([o.property({type:Boolean})],ei.prototype,"trailingIcon",void 0),ti([o.property({type:Boolean})],ei.prototype,"loading",void 0),ti([o.property({type:String})],ei.prototype,"tooltipPosition",void 0),ti([o.property({type:Boolean})],ei.prototype,"hideTooltip",void 0),ti([o.property({type:Boolean})],ei.prototype,"forceTooltip",void 0),ti([o.query(".ft-button")],ei.prototype,"button",void 0),ti([o.query(".ft-button--label slot")],ei.prototype,"slottedContent",void 0),e.customElement("ft-button")(ei);class ii extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const oi={headerBackground:e.FtCssVariableFactory.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:e.FtCssVariableFactory.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:e.FtCssVariableFactory.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:e.FtCssVariableFactory.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:e.FtCssVariableFactory.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),cellVerticalBorderWidth:e.FtCssVariableFactory.create("--ft-filterable-table-cell-vertical-border-width","SIZE","1px"),colorOnSurfaceHigh:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceHigh,"Design system"),titleFont:e.FtCssVariableFactory.external(e.designSystemVariables.titleFont,"Design system"),contentFont:e.FtCssVariableFactory.external(e.designSystemVariables.contentFont,"Design system")},si=i.css`
1112
1112
  :host {
1113
1113
  display: block;
1114
1114
  }
@@ -1210,7 +1210,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1210
1210
  ${yt(Vi.size,Yi.iconSize)};
1211
1211
  ${yt(Vi.color,"var(--ft-button-internal-color)")};
1212
1212
  }
1213
- `];var io=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class oo extends wt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=wi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(X`
1213
+ `];var io=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class oo extends wt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=wi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(X`
1214
1214
  <button part="button"
1215
1215
  class="${Wt(t)}"
1216
1216
  aria-label="${this.getLabel()}"
@@ -1233,7 +1233,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1233
1233
  </ft-tooltip>
1234
1234
  `:t}resolveIcon(){return this.loading?X`
1235
1235
  <ft-loader></ft-loader> `:this.icon?X`
1236
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:G}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}oo.elementDefinitions={"ft-ripple":yi,"ft-tooltip":Ki,"ft-typography":ii,"ft-icon":Si,"ft-loader":qi},oo.styles=[St,eo],io([o({type:Boolean})],oo.prototype,"primary",void 0),io([o({type:Boolean})],oo.prototype,"outlined",void 0),io([o({type:Boolean})],oo.prototype,"disabled",void 0),io([o({type:Boolean})],oo.prototype,"dense",void 0),io([o({type:Boolean})],oo.prototype,"round",void 0),io([o({type:String})],oo.prototype,"label",void 0),io([o({type:String})],oo.prototype,"icon",void 0),io([o({type:String})],oo.prototype,"iconVariant",void 0),io([o({type:Boolean})],oo.prototype,"trailingIcon",void 0),io([o({type:Boolean})],oo.prototype,"loading",void 0),io([o({type:String})],oo.prototype,"tooltipPosition",void 0),io([o({type:Boolean})],oo.prototype,"hideTooltip",void 0),io([o({type:Boolean})],oo.prototype,"forceTooltip",void 0),io([r(".ft-button")],oo.prototype,"button",void 0),io([r(".ft-button--label slot")],oo.prototype,"slottedContent",void 0),f("ft-button")(oo);class so extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const no={headerBackground:gt.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:gt.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:gt.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:gt.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:gt.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),cellVerticalBorderWidth:gt.create("--ft-filterable-table-cell-vertical-border-width","SIZE","1px"),colorOnSurfaceHigh:gt.external(mt.colorOnSurfaceHigh,"Design system"),titleFont:gt.external(mt.titleFont,"Design system"),contentFont:gt.external(mt.contentFont,"Design system")},ro=y`
1236
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:G}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}oo.elementDefinitions={"ft-ripple":yi,"ft-tooltip":Ki,"ft-typography":ii,"ft-icon":Si,"ft-loader":qi},oo.styles=[St,eo],io([o({type:String,reflect:!0})],oo.prototype,"role",void 0),io([o({type:Boolean})],oo.prototype,"primary",void 0),io([o({type:Boolean})],oo.prototype,"outlined",void 0),io([o({type:Boolean})],oo.prototype,"disabled",void 0),io([o({type:Boolean})],oo.prototype,"dense",void 0),io([o({type:Boolean})],oo.prototype,"round",void 0),io([o({type:String})],oo.prototype,"label",void 0),io([o({type:String})],oo.prototype,"icon",void 0),io([o({type:String})],oo.prototype,"iconVariant",void 0),io([o({type:Boolean})],oo.prototype,"trailingIcon",void 0),io([o({type:Boolean})],oo.prototype,"loading",void 0),io([o({type:String})],oo.prototype,"tooltipPosition",void 0),io([o({type:Boolean})],oo.prototype,"hideTooltip",void 0),io([o({type:Boolean})],oo.prototype,"forceTooltip",void 0),io([r(".ft-button")],oo.prototype,"button",void 0),io([r(".ft-button--label slot")],oo.prototype,"slottedContent",void 0),f("ft-button")(oo);class so extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const no={headerBackground:gt.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:gt.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:gt.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:gt.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:gt.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),cellVerticalBorderWidth:gt.create("--ft-filterable-table-cell-vertical-border-width","SIZE","1px"),colorOnSurfaceHigh:gt.external(mt.colorOnSurfaceHigh,"Design system"),titleFont:gt.external(mt.titleFont,"Design system"),contentFont:gt.external(mt.contentFont,"Design system")},ro=y`
1237
1237
  :host {
1238
1238
  display: block;
1239
1239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-filterable-table",
3
- "version": "0.3.61",
3
+ "version": "0.3.62",
4
4
  "description": "A dynamic table with filters",
5
5
  "keywords": [
6
6
  "Lit"
@@ -22,11 +22,11 @@
22
22
  "test": "echo \"Error: run tests from root\" && exit 1"
23
23
  },
24
24
  "dependencies": {
25
- "@fluid-topics/ft-button": "0.3.61",
26
- "@fluid-topics/ft-select": "0.3.61",
27
- "@fluid-topics/ft-text-field": "0.3.61",
28
- "@fluid-topics/ft-wc-utils": "0.3.61",
25
+ "@fluid-topics/ft-button": "0.3.62",
26
+ "@fluid-topics/ft-select": "0.3.62",
27
+ "@fluid-topics/ft-text-field": "0.3.62",
28
+ "@fluid-topics/ft-wc-utils": "0.3.62",
29
29
  "lit": "2.2.8"
30
30
  },
31
- "gitHead": "12a4024fb3084b17772a3aef10723d22ae56c877"
31
+ "gitHead": "801f5c7705e58471510eca9ccb943d558e42e3fb"
32
32
  }