@getflip/swirl-components 0.223.0 → 0.224.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.
package/components.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-08-08T13:39:38",
2
+ "timestamp": "2024-08-09T13:43:29",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.18.1",
@@ -6991,6 +6991,25 @@
6991
6991
  ],
6992
6992
  "methods": [],
6993
6993
  "events": [
6994
+ {
6995
+ "event": "chipClick",
6996
+ "detail": "MouseEvent",
6997
+ "bubbles": true,
6998
+ "complexType": {
6999
+ "original": "MouseEvent",
7000
+ "resolved": "MouseEvent",
7001
+ "references": {
7002
+ "MouseEvent": {
7003
+ "location": "global",
7004
+ "id": "global::MouseEvent"
7005
+ }
7006
+ }
7007
+ },
7008
+ "cancelable": true,
7009
+ "composed": true,
7010
+ "docs": "",
7011
+ "docsTags": []
7012
+ },
6994
7013
  {
6995
7014
  "event": "remove",
6996
7015
  "detail": "MouseEvent",
@@ -12,6 +12,7 @@ const SwirlChipStyle0 = swirlChipCss;
12
12
  const SwirlChip = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
+ this.chipClick = index.createEvent(this, "chipClick", 7);
15
16
  this.remove = index.createEvent(this, "remove", 7);
16
17
  this.desktopMediaQuery = utils.getDesktopMediaQuery();
17
18
  this.desktopMediaQueryHandler = (event) => {
@@ -56,7 +57,7 @@ const SwirlChip = class {
56
57
  "chip--interactive": this.interactive || this.pressed !== undefined,
57
58
  "chip--removable": this.removable,
58
59
  });
59
- return (index.h(index.Host, { key: '2c558ecbcce9b65da44616543ec1f764a01cb2cf' }, index.h(Tag, { key: '4f146a7481412df5d1b398b85b455114afc40297', class: className, type: this.interactive ? "button" : undefined, "aria-pressed": this.pressed !== undefined ? String(this.pressed) : undefined }, index.h("span", { key: '1718cc6dc4e726a8ed98fecf322cd0b6284f67a1', class: "chip__inner" }, showAvatar && (index.h("span", { key: '9ae76d5e8b2349ad69c704b062ea6638c1f50191', class: "chip__avatar" }, index.h("slot", { key: '87d4b9788a9efca593aa1e0cacb2e84eeae6fea3', name: "avatar" }))), showIcon && (index.h("span", { key: 'e92922a857124377ca8892c3c242f6444954cb02', class: "chip__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), index.h("span", { key: '7b7d73e445ed9ea5c5641c23bcbff85aaafb0a02', class: "chip__label" }, this.label)), this.progress !== undefined && (index.h("span", { key: '8a9fc592a21a81237a13b15185c382a016a70b5f', class: "chip__progress-indicator" }, index.h("swirl-progress-indicator", { key: 'fad6f0d26d8968a40bcb3c6d71c66c5f109e8012', label: this.progressBarLabel, value: this.progress })))), this.removable && (index.h("button", { key: '5ec9c622c143c895146cbee3643ddfd7247ad383', "aria-label": this.removeButtonLabel, class: "chip__remove-button", onClick: this.remove.emit, type: "button" }, index.h("swirl-icon-close", { key: 'c259db9f4c46a5f0a1e083b5f99d696dee815954', size: 20 })))));
60
+ return (index.h(index.Host, { key: 'fb5885a5e342bf086ec524d438b9427b30b29598' }, index.h(Tag, { key: '06aabd7960c3919ecb90640a313462bbf89d2b42', "aria-pressed": this.pressed !== undefined ? String(this.pressed) : undefined, class: className, onClick: this.chipClick.emit, type: this.interactive ? "button" : undefined }, index.h("span", { key: '4f7f50827d6fc53aece738f31aff1a7694d63b98', class: "chip__inner" }, showAvatar && (index.h("span", { key: '91c3b2dda9886ca0d831c7871986b979c9f272a1', class: "chip__avatar" }, index.h("slot", { key: '8a160db2247eb3467ce80197f9fff840a71594d4', name: "avatar" }))), showIcon && (index.h("span", { key: '788ca102c452ce600738a0c3f8584c748c1275f4', class: "chip__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), index.h("span", { key: 'd5b3eb5d4f4384847d53e05d296ade03fe6354f2', class: "chip__label" }, this.label)), this.progress !== undefined && (index.h("span", { key: '49e776230624ab382a0a745d1ffa3e051c9a21ff', class: "chip__progress-indicator" }, index.h("swirl-progress-indicator", { key: '86ad1c9d6c9c4b12ccb337667272e5ecb3233730', label: this.progressBarLabel, value: this.progress })))), this.removable && (index.h("button", { key: '1e2440e03f99407293420744d52e0c5d2c60855b', "aria-label": this.removeButtonLabel, class: "chip__remove-button", onClick: this.remove.emit, type: "button" }, index.h("swirl-icon-close", { key: 'df8db1499738c9eb952fc78802bebfcd03cd65f8', size: 20 })))));
60
61
  }
61
62
  get el() { return index.getElement(this); }
62
63
  };