@leavittsoftware/web 4.9.0 → 4.10.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.
@@ -138,7 +138,7 @@ let LeavittUserFeedback = class LeavittUserFeedback extends LoadWhile(LitElement
138
138
  return html `
139
139
  <titanium-header header="Report a problem" subHeader="Report bugs and provide feedback for this site" no-nav></titanium-header>
140
140
 
141
- <titanium-card has-footer>
141
+ <titanium-card>
142
142
  <md-tabs
143
143
  full-width
144
144
  @change=${(event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leavittsoftware/web",
3
- "version": "4.9.0",
3
+ "version": "4.10.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "files": [
@@ -40,5 +40,5 @@
40
40
  "url": "https://github.com/LeavittSoftware/titanium-elements/issues"
41
41
  },
42
42
  "homepage": "https://github.com/LeavittSoftware/titanium-elements/#readme",
43
- "gitHead": "aad80f524a4a832c36717b501653cb0ef89fc2ef"
43
+ "gitHead": "c676aebc86ec148711e7067b2c347c7bbc114f10"
44
44
  }
@@ -17,6 +17,7 @@ export declare class TitaniumCard extends LitElement {
17
17
  accessor hasFooter: boolean;
18
18
  accessor filled: boolean;
19
19
  accessor elevated: boolean;
20
+ private readonly assignedElements;
20
21
  static styles: import("lit").CSSResult[];
21
22
  render(): import("lit-html").TemplateResult<1>;
22
23
  }
@@ -1,7 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import '@material/web/elevation/elevation';
3
3
  import { css, html, LitElement } from 'lit';
4
- import { property, customElement } from 'lit/decorators.js';
4
+ import { property, customElement, queryAssignedElements } from 'lit/decorators.js';
5
5
  /**
6
6
  * A material card filled or outlined
7
7
  *
@@ -152,7 +152,15 @@ let TitaniumCard = class TitaniumCard extends LitElement {
152
152
  `,
153
153
  ]; }
154
154
  render() {
155
- return html `<md-elevation></md-elevation> <slot></slot> `;
155
+ return html `<md-elevation></md-elevation>
156
+ <slot
157
+ @slotchange=${() => {
158
+ this.hasFooter = this.assignedElements.some((el) => el.hasAttribute('card-footer'));
159
+ this.hasImage = this.assignedElements.some((el) => el.hasAttribute('card-image'));
160
+ this.hasMenu = this.assignedElements.some((el) => el.hasAttribute('card-menu'));
161
+ }}
162
+ >
163
+ </slot> `;
156
164
  }
157
165
  };
158
166
  __decorate([
@@ -170,6 +178,9 @@ __decorate([
170
178
  __decorate([
171
179
  property({ type: Boolean, reflect: true, attribute: 'elevated' })
172
180
  ], TitaniumCard.prototype, "elevated", null);
181
+ __decorate([
182
+ queryAssignedElements({ flatten: true })
183
+ ], TitaniumCard.prototype, "assignedElements", void 0);
173
184
  TitaniumCard = __decorate([
174
185
  customElement('titanium-card')
175
186
  ], TitaniumCard);
@@ -1 +1 @@
1
- {"version":3,"file":"card.js","sourceRoot":"","sources":["card.ts"],"names":[],"mappings":";AAAA,OAAO,mCAAmC,CAAC;AAE3C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;;;;;;;GAUG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IACkC,0BAAiB;IAAjB,IAAA,OAAO,6CAAU;IAAjB,IAAA,OAAO,mDAAU;IAChB,2BAAkB;IAAlB,IAAA,QAAQ,8CAAU;IAAlB,IAAA,QAAQ,oDAAU;IACjB,4BAAmB;IAAnB,IAAA,SAAS,+CAAU;IAAnB,IAAA,SAAS,qDAAU;IACvB,yBAAgB;IAAhB,IAAA,MAAM,4CAAU;IAAhB,IAAA,MAAM,kDAAU;IACd,2BAAkB;IAAlB,IAAA,QAAQ,8CAAU;IAAlB,IAAA,QAAQ,oDAAU;aAEvF,WAAM,GAAG;QACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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