@fluid-topics/ft-filterable-table 0.3.16 → 0.3.17
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.
|
@@ -995,7 +995,7 @@ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t
|
|
|
995
995
|
${e.setVariable(_e.size,Pe.iconSize)};
|
|
996
996
|
${e.setVariable(_e.color,"var(--ft-button-internal-color)")};
|
|
997
997
|
}
|
|
998
|
-
`];var qe=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class Xe 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=ye.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!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-button--safari-fix":e.isSafari,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
|
|
998
|
+
`];var qe=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class Xe 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=ye.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-button--safari-fix":e.isSafari,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
|
|
999
999
|
<button part="button"
|
|
1000
1000
|
class="${s.classMap(t)}"
|
|
1001
1001
|
aria-label="${this.getLabel()}"
|
|
@@ -1009,15 +1009,15 @@ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t
|
|
|
1009
1009
|
</ft-typography>
|
|
1010
1010
|
${this.resolveIcon()}
|
|
1011
1011
|
</button>
|
|
1012
|
-
`)}addTooltipIfNeeded(t){return this.
|
|
1012
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?i.html`
|
|
1013
1013
|
<ft-tooltip part="tooltip"
|
|
1014
1014
|
text="${this.getLabel()}"
|
|
1015
1015
|
position="${this.tooltipPosition}">
|
|
1016
1016
|
${t}
|
|
1017
1017
|
</ft-tooltip>
|
|
1018
|
-
|
|
1018
|
+
`:t}resolveIcon(){return this.loading?i.html`
|
|
1019
1019
|
<ft-loader></ft-loader> `:this.icon?i.html`
|
|
1020
|
-
<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}}Xe.elementDefinitions={"ft-ripple":be,"ft-tooltip":Me,"ft-typography":Qt,"ft-icon":$e,"ft-loader":He},Xe.styles=Ve,qe([o.property({type:Boolean})],Xe.prototype,"primary",void 0),qe([o.property({type:Boolean})],Xe.prototype,"outlined",void 0),qe([o.property({type:Boolean})],Xe.prototype,"disabled",void 0),qe([o.property({type:Boolean})],Xe.prototype,"dense",void 0),qe([o.property({type:Boolean})],Xe.prototype,"round",void 0),qe([o.property({type:String})],Xe.prototype,"label",void 0),qe([o.property({type:String})],Xe.prototype,"icon",void 0),qe([o.property({type:String})],Xe.prototype,"iconVariant",void 0),qe([o.property({type:Boolean})],Xe.prototype,"trailingIcon",void 0),qe([o.property({type:Boolean})],Xe.prototype,"loading",void 0),qe([o.property({type:String})],Xe.prototype,"tooltipPosition",void 0),qe([o.property({type:Boolean})],Xe.prototype,"hideTooltip",void 0),qe([o.query(".ft-button")],Xe.prototype,"button",void 0),qe([o.query(".ft-button--label slot")],Xe.prototype,"slottedContent",void 0),e.customElement("ft-button")(Xe);class Ye extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Je={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"),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")},Qe=i.css`
|
|
1020
|
+
<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}}Xe.elementDefinitions={"ft-ripple":be,"ft-tooltip":Me,"ft-typography":Qt,"ft-icon":$e,"ft-loader":He},Xe.styles=Ve,qe([o.property({type:Boolean})],Xe.prototype,"primary",void 0),qe([o.property({type:Boolean})],Xe.prototype,"outlined",void 0),qe([o.property({type:Boolean})],Xe.prototype,"disabled",void 0),qe([o.property({type:Boolean})],Xe.prototype,"dense",void 0),qe([o.property({type:Boolean})],Xe.prototype,"round",void 0),qe([o.property({type:String})],Xe.prototype,"label",void 0),qe([o.property({type:String})],Xe.prototype,"icon",void 0),qe([o.property({type:String})],Xe.prototype,"iconVariant",void 0),qe([o.property({type:Boolean})],Xe.prototype,"trailingIcon",void 0),qe([o.property({type:Boolean})],Xe.prototype,"loading",void 0),qe([o.property({type:String})],Xe.prototype,"tooltipPosition",void 0),qe([o.property({type:Boolean})],Xe.prototype,"hideTooltip",void 0),qe([o.property({type:Boolean})],Xe.prototype,"forceTooltip",void 0),qe([o.query(".ft-button")],Xe.prototype,"button",void 0),qe([o.query(".ft-button--label slot")],Xe.prototype,"slottedContent",void 0),e.customElement("ft-button")(Xe);class Ye extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Je={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"),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")},Qe=i.css`
|
|
1021
1021
|
:host {
|
|
1022
1022
|
display: block;
|
|
1023
1023
|
}
|
|
@@ -1110,7 +1110,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
1110
1110
|
${ht(ji.size,Ii.iconSize)};
|
|
1111
1111
|
${ht(ji.color,"var(--ft-button-internal-color)")};
|
|
1112
1112
|
}
|
|
1113
|
-
`];var Zi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ki extends vt{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=bi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!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-button--safari-fix":$t,"ft-no-text-select":!0};return this.addTooltipIfNeeded(W`
|
|
1113
|
+
`];var Zi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ki extends vt{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=bi.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-button--safari-fix":$t,"ft-no-text-select":!0};return this.addTooltipIfNeeded(W`
|
|
1114
1114
|
<button part="button"
|
|
1115
1115
|
class="${jt(t)}"
|
|
1116
1116
|
aria-label="${this.getLabel()}"
|
|
@@ -1124,15 +1124,15 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
1124
1124
|
</ft-typography>
|
|
1125
1125
|
${this.resolveIcon()}
|
|
1126
1126
|
</button>
|
|
1127
|
-
`)}addTooltipIfNeeded(t){return this.
|
|
1127
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?W`
|
|
1128
1128
|
<ft-tooltip part="tooltip"
|
|
1129
1129
|
text="${this.getLabel()}"
|
|
1130
1130
|
position="${this.tooltipPosition}">
|
|
1131
1131
|
${t}
|
|
1132
1132
|
</ft-tooltip>
|
|
1133
|
-
|
|
1133
|
+
`:t}resolveIcon(){return this.loading?W`
|
|
1134
1134
|
<ft-loader></ft-loader> `:this.icon?W`
|
|
1135
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:K}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}}Ki.elementDefinitions={"ft-ripple":fi,"ft-tooltip":Di,"ft-typography":qe,"ft-icon":xi,"ft-loader":Ti},Ki.styles=Wi,Zi([o({type:Boolean})],Ki.prototype,"primary",void 0),Zi([o({type:Boolean})],Ki.prototype,"outlined",void 0),Zi([o({type:Boolean})],Ki.prototype,"disabled",void 0),Zi([o({type:Boolean})],Ki.prototype,"dense",void 0),Zi([o({type:Boolean})],Ki.prototype,"round",void 0),Zi([o({type:String})],Ki.prototype,"label",void 0),Zi([o({type:String})],Ki.prototype,"icon",void 0),Zi([o({type:String})],Ki.prototype,"iconVariant",void 0),Zi([o({type:Boolean})],Ki.prototype,"trailingIcon",void 0),Zi([o({type:Boolean})],Ki.prototype,"loading",void 0),Zi([o({type:String})],Ki.prototype,"tooltipPosition",void 0),Zi([o({type:Boolean})],Ki.prototype,"hideTooltip",void 0),Zi([r(".ft-button")],Ki.prototype,"button",void 0),Zi([r(".ft-button--label slot")],Ki.prototype,"slottedContent",void 0),p("ft-button")(Ki);class Vi extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Ji={headerBackground:ft.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:ft.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:ft.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:ft.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:ft.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:ft.external(ut.colorOnSurfaceHigh,"Design system"),titleFont:ft.external(ut.titleFont,"Design system"),contentFont:ft.external(ut.contentFont,"Design system")},qi=b`
|
|
1135
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:K}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}}Ki.elementDefinitions={"ft-ripple":fi,"ft-tooltip":Di,"ft-typography":qe,"ft-icon":xi,"ft-loader":Ti},Ki.styles=Wi,Zi([o({type:Boolean})],Ki.prototype,"primary",void 0),Zi([o({type:Boolean})],Ki.prototype,"outlined",void 0),Zi([o({type:Boolean})],Ki.prototype,"disabled",void 0),Zi([o({type:Boolean})],Ki.prototype,"dense",void 0),Zi([o({type:Boolean})],Ki.prototype,"round",void 0),Zi([o({type:String})],Ki.prototype,"label",void 0),Zi([o({type:String})],Ki.prototype,"icon",void 0),Zi([o({type:String})],Ki.prototype,"iconVariant",void 0),Zi([o({type:Boolean})],Ki.prototype,"trailingIcon",void 0),Zi([o({type:Boolean})],Ki.prototype,"loading",void 0),Zi([o({type:String})],Ki.prototype,"tooltipPosition",void 0),Zi([o({type:Boolean})],Ki.prototype,"hideTooltip",void 0),Zi([o({type:Boolean})],Ki.prototype,"forceTooltip",void 0),Zi([r(".ft-button")],Ki.prototype,"button",void 0),Zi([r(".ft-button--label slot")],Ki.prototype,"slottedContent",void 0),p("ft-button")(Ki);class Vi extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Ji={headerBackground:ft.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:ft.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:ft.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:ft.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:ft.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:ft.external(ut.colorOnSurfaceHigh,"Design system"),titleFont:ft.external(ut.titleFont,"Design system"),contentFont:ft.external(ut.contentFont,"Design system")},qi=b`
|
|
1136
1136
|
:host {
|
|
1137
1137
|
display: block;
|
|
1138
1138
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-filterable-table",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
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.
|
|
26
|
-
"@fluid-topics/ft-select": "0.3.
|
|
27
|
-
"@fluid-topics/ft-text-field": "0.3.
|
|
28
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
25
|
+
"@fluid-topics/ft-button": "0.3.17",
|
|
26
|
+
"@fluid-topics/ft-select": "0.3.17",
|
|
27
|
+
"@fluid-topics/ft-text-field": "0.3.17",
|
|
28
|
+
"@fluid-topics/ft-wc-utils": "0.3.17",
|
|
29
29
|
"lit": "2.2.8"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "35c3683874910a6b132930ac8f7dd1ede0294f28"
|
|
32
32
|
}
|