@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 +20 -1
- package/dist/cjs/swirl-chip.cjs.entry.js +2 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-chip/swirl-chip.js +21 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-chip.js +2 -1
- package/dist/esm/swirl-chip.entry.js +2 -1
- package/dist/swirl-components/p-9c02b88b.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-chip/swirl-chip.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/dist/swirl-components/p-7490b2df.entry.js +0 -1
package/components.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-08-
|
|
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: '
|
|
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
|
};
|