@getflip/swirl-components 0.125.1 → 0.126.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 +17 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-app-layout_6.cjs.entry.js +3 -1
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.css +4 -0
- package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.js +19 -0
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-resource-list-item2.js +4 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-app-layout_6.entry.js +3 -1
- package/dist/esm/swirl-components.js +1 -1
- package/dist/swirl-components/{p-6da47161.entry.js → p-f25bae61.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-resource-list-item/swirl-resource-list-item.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/vscode-data.json +4 -0
|
@@ -173,6 +173,10 @@
|
|
|
173
173
|
color: var(--s-text-on-status);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
.resource-list-item--wrap-label .resource-list-item__label {
|
|
177
|
+
white-space: normal;
|
|
178
|
+
}
|
|
179
|
+
|
|
176
180
|
.resource-list-item__content {
|
|
177
181
|
--swirl-avatar-group-border-color: var(--s-background-default);
|
|
178
182
|
--swirl-badge-border-color: var(--s-background-default);
|
|
@@ -52,6 +52,7 @@ export class SwirlResourceListItem {
|
|
|
52
52
|
this.interactive = true;
|
|
53
53
|
this.label = undefined;
|
|
54
54
|
this.labelWeight = "medium";
|
|
55
|
+
this.labelWrap = undefined;
|
|
55
56
|
this.menuTriggerId = undefined;
|
|
56
57
|
this.menuTriggerLabel = "Options";
|
|
57
58
|
this.meta = undefined;
|
|
@@ -134,6 +135,7 @@ export class SwirlResourceListItem {
|
|
|
134
135
|
"resource-list-item--selectable": this.selectable,
|
|
135
136
|
"resource-list-item--show-control-on-focus": showControlOnFocus,
|
|
136
137
|
"resource-list-item--show-meta": showMeta,
|
|
138
|
+
"resource-list-item--wrap-label": this.labelWrap,
|
|
137
139
|
});
|
|
138
140
|
return (h(Host, { role: "row" }, h("div", { class: className, role: "gridcell" }, h(Tag, { "aria-checked": ariaChecked, "aria-disabled": disabled ? "true" : undefined, "aria-labelledby": this.id, class: "resource-list-item__content", href: href, disabled: disabled, onClick: this.onClick, onBlur: this.onBlur, onFocus: this.onFocus, part: "resource-list-item__content", role: role, tabIndex: 0, type: Tag === "button" ? "button" : undefined }, this.hasMedia && (h("span", { class: "resource-list-item__media" }, h("slot", { name: "media" }))), h("span", { class: "resource-list-item__label-container" }, h("span", { class: "resource-list-item__label", id: this.id, innerHTML: this.label }), this.description && (h("span", { class: "resource-list-item__description", innerHTML: this.description }))), showMeta && (h("span", { class: "resource-list-item__meta" }, h("span", { class: "resource-list-item__meta-text" }, this.meta), h("span", { class: "resource-list-item__badges" }, h("slot", { name: "badges" }))))), this.selectable && (h("span", { "aria-hidden": "true", class: "resource-list-item__checkbox" }, h("span", { class: "resource-list-item__checkbox-icon" }, this.checked && (h("swirl-icon-check-strong", null))))), h("span", { class: "resource-list-item__control" }, h("slot", { name: "control" })), showMenu && (h("swirl-popover-trigger", { popover: this.menuTriggerId }, h("swirl-button", { "aria-disabled": disabled ? "true" : undefined, class: "resource-list-item__menu-trigger", disabled: disabled, hideLabel: true, icon: "<swirl-icon-more-horizontal></swirl-icon-more-horizontal>", intent: "primary", label: this.menuTriggerLabel, onClick: this.onMenuTriggerClick })))), this.allowDrag && (h("button", { "aria-describedby": this.dragHandleDescription, "aria-label": `${this.dragHandleLabel} "${this.label}"`, class: "resource-list-item__drag-handle", onKeyDown: this.onDragHandleKeyDown, type: "button" }, h("swirl-icon-drag-handle", { size: this.iconSize })))));
|
|
139
141
|
}
|
|
@@ -382,6 +384,23 @@ export class SwirlResourceListItem {
|
|
|
382
384
|
"reflect": false,
|
|
383
385
|
"defaultValue": "\"medium\""
|
|
384
386
|
},
|
|
387
|
+
"labelWrap": {
|
|
388
|
+
"type": "boolean",
|
|
389
|
+
"mutable": false,
|
|
390
|
+
"complexType": {
|
|
391
|
+
"original": "boolean",
|
|
392
|
+
"resolved": "boolean",
|
|
393
|
+
"references": {}
|
|
394
|
+
},
|
|
395
|
+
"required": false,
|
|
396
|
+
"optional": true,
|
|
397
|
+
"docs": {
|
|
398
|
+
"tags": [],
|
|
399
|
+
"text": ""
|
|
400
|
+
},
|
|
401
|
+
"attribute": "label-wrap",
|
|
402
|
+
"reflect": false
|
|
403
|
+
},
|
|
385
404
|
"menuTriggerId": {
|
|
386
405
|
"type": "string",
|
|
387
406
|
"mutable": false,
|