Remove with Text
Remove GetEngineeringSpcReview Better error message EnforceCodeStyleInBuild NginxFileSystem Remove Reactors and Working Directory AppSettings Delete self contained Thunder Tests Back to .net8.0 api/v4/InfinityQS ApiExplorerSettings Wafer Counter
This commit is contained in:
26
Server/wwwroot/package/dist/esm/ifx-card-text.entry.js
vendored
Normal file
26
Server/wwwroot/package/dist/esm/ifx-card-text.entry.js
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
import { r as registerInstance, h, g as getElement } from './index-38bfff87.js';
|
||||
|
||||
const cardTextCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}:host{pointer-events:none}.card__text-wrapper{padding-bottom:0px}.card__text-wrapper.hasBtn{padding-bottom:16px}.card-text{line-height:1.5rem;font-size:1rem;font-weight:400;white-space:wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}";
|
||||
|
||||
const CardText = class {
|
||||
constructor(hostRef) {
|
||||
registerInstance(this, hostRef);
|
||||
this.hasBtn = undefined;
|
||||
}
|
||||
componentWillLoad() {
|
||||
const link = this.el.closest('ifx-card').querySelector('ifx-link');
|
||||
const button = this.el.closest('ifx-card').querySelector('ifx-button');
|
||||
if (link || button) {
|
||||
this.hasBtn = true;
|
||||
}
|
||||
}
|
||||
render() {
|
||||
return (h("div", { class: `card__text-wrapper ${this.hasBtn ? 'hasBtn' : ""}` }, h("div", { class: `card-text` }, h("slot", null))));
|
||||
}
|
||||
get el() { return getElement(this); }
|
||||
};
|
||||
CardText.style = cardTextCss;
|
||||
|
||||
export { CardText as ifx_card_text };
|
||||
|
||||
//# sourceMappingURL=ifx-card-text.entry.js.map
|
Reference in New Issue
Block a user