udp-stencil-component-library 27.0.0-next.4 → 27.0.0-next.5
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/dist/cjs/ag-grid-base_66.cjs.entry.js +8 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/stencil-library.cjs.js +1 -1
- package/dist/collection/components/fluent-ui/tree/udp-tree.css +4 -1
- package/dist/collection/components/fluent-ui/tree/udp-tree.js +7 -3
- package/dist/components/udp-tree2.js +1 -1
- package/dist/docs.json +13 -3
- package/dist/esm/ag-grid-base_66.entry.js +8 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/stencil-library.js +1 -1
- package/dist/stencil-library/ag-grid-base_66.entry.js +1 -1
- package/dist/stencil-library/stencil-library.esm.js +1 -1
- package/dist/types/components/fluent-ui/tree/udp-tree.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13058,7 +13058,7 @@ UdpTooltip.style = udpTooltipCss();
|
|
|
13058
13058
|
const DND_PAYLOAD_TYPE = 'application/x-udp-tree-item';
|
|
13059
13059
|
const DND_TAG_PREFIX = 'application/x-udp-tree-tag--';
|
|
13060
13060
|
|
|
13061
|
-
const udpTreeCss = () => `:host{display:block}.interaction-button fluent-tree-item::part(chevron){display:none}.interaction-button.collapsible fluent-tree-item::part(chevron){display:inline-flex;cursor:pointer;border-radius:50%}.interaction-button.collapsible fluent-tree-item::part(chevron):hover{background-color:
|
|
13061
|
+
const udpTreeCss = () => `:host{display:block}.interaction-button fluent-tree-item::part(chevron){display:none}.interaction-button.collapsible fluent-tree-item::part(chevron){display:inline-flex;cursor:pointer;border-radius:50%}.interaction-button.collapsible fluent-tree-item::part(chevron):hover{background-color:color-mix(in srgb, currentColor 6%, transparent)}fluent-tree-item.row-toggles::part(positioning-region){cursor:pointer}.interaction-button fluent-tree-item::part(positioning-region){padding-inline-start:var(--spacingHorizontalXS, 4px)}.interaction-button fluent-tree-item fluent-tree-item{margin-inline-start:var(--spacingHorizontalXXL, 24px)}.interaction-button fluent-tree-item::part(positioning-region){position:relative;height:auto;min-height:24px;margin:1px var(--spacingHorizontalS);padding-block:var(--spacingVerticalXS);border-radius:6px;transition:background-color var(--durationFaster, 0.1s) ease}.interaction-button fluent-tree-item:not([selected])::part(positioning-region):hover{background-color:var(--colorNeutralBackground1Hover, #f0f0f0)}.interaction-button fluent-tree-item[selected]::part(positioning-region){background-color:var(--colorNeutralBackground1Selected, #ebebeb)}.interaction-button fluent-tree-item[selected]::part(positioning-region)::before{content:'';position:absolute;left:1px;top:50%;transform:translateY(-50%);z-index:1;pointer-events:none;width:3px;height:16px;border-radius:2px;background:var(--colorBrandStroke1, #0f6cbd)}.interaction-button fluent-tree-item::part(content){gap:var(--spacingHorizontalXS)}fluent-tree-item::part(content){min-width:0;flex:1 1 auto}.udp-tree__end{display:flex;align-items:center;gap:var(--spacingHorizontalXS);flex-shrink:0;margin-inline-start:auto}.udp-tree__end udp-fluent-badge.truncate{max-width:var(--udp-tree-badge-max-width, 12ch)}.udp-tree-item-content{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.udp-tree-item-lines{display:flex;align-items:baseline;gap:var(--spacingHorizontalS);min-width:0;max-width:100%;overflow:hidden;text-align:left}.udp-tree-item-lines .udp-tree-item-content{flex:0 1 auto}.udp-tree-item-description{flex:0 0 auto;max-width:50%;font-size:var(--fontSizeBase200);line-height:var(--lineHeightBase200);color:var(--colorNeutralForeground3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.interaction-button.stacked fluent-tree-item::part(positioning-region){min-height:36px}.stacked .udp-tree-item-lines{flex-direction:column;align-items:flex-start;gap:0}.stacked .udp-tree-item-lines .udp-tree-item-content,.stacked .udp-tree-item-description{flex:none;max-width:100%}fluent-tree-item.drag-source::part(positioning-region){opacity:0.5}fluent-tree-item.drop-candidate::part(positioning-region){outline:1px dashed var(--colorBrandStroke2);outline-offset:-1px}fluent-tree-item.drop-active::part(positioning-region){background-color:var(--colorSubtleBackgroundHover);outline:2px dashed var(--colorBrandStroke1);outline-offset:-2px}fluent-tree-item[draggable='true']::part(positioning-region){cursor:grab}fluent-tree-item.dimmed::part(positioning-region){opacity:0.4}.udp-tree__mark{background-color:var(--colorPaletteMarigoldBackground2, #f8e6a0);color:inherit;border-radius:2px;padding:0 1px}fluent-tree-item::part(positioning-region){--udp-tree-action-opacity:0}fluent-tree-item::part(positioning-region):hover,fluent-tree-item::part(positioning-region):focus-within{--udp-tree-action-opacity:1}.udp-tree__aside{display:inline-flex;align-items:center;gap:var(--spacingHorizontalXXS);max-height:24px}.udp-tree__aside.reserved{min-width:24px}.udp-tree__actions{display:inline-flex;align-items:center;gap:var(--spacingHorizontalXXS);opacity:var(--udp-tree-action-opacity, 1);transition:opacity var(--durationFaster, 0.1s) ease}@media (hover: none){.udp-tree__actions{opacity:1}}.multiselect .udp-tree__check{pointer-events:none;display:inline-flex;align-items:center}.multiselect .udp-tree__start{display:inline-flex;align-items:center;gap:var(--spacingHorizontalXS)}`;
|
|
13062
13062
|
|
|
13063
13063
|
/**
|
|
13064
13064
|
* Fold one character for accent/case-insensitive comparison. Kept per-character
|
|
@@ -13412,12 +13412,16 @@ const UdpTree = class {
|
|
|
13412
13412
|
return null;
|
|
13413
13413
|
return (index.h("span", { class: "udp-tree__actions" }, resolved.filter(Boolean).map(rowAction => {
|
|
13414
13414
|
var _a, _b;
|
|
13415
|
-
return (index.h("udp-
|
|
13415
|
+
return (index.h("udp-tooltip", { key: rowAction.action, content: (_a = rowAction.label) !== null && _a !== void 0 ? _a : rowAction.action }, index.h("udp-fluent-icon-button", { iconName: rowAction.iconName, ariaLabel: (_b = rowAction.label) !== null && _b !== void 0 ? _b : rowAction.action, appearance: "subtle", size: "small",
|
|
13416
|
+
// A mouse press must not focus the button: actions are revealed on
|
|
13417
|
+
// focus-within, so a clicked one stayed visible after the pointer
|
|
13418
|
+
// left. Keyboard focus (Tab) still lands on it and reveals it.
|
|
13419
|
+
onMouseDown: (e) => e.preventDefault(), onClick: (e) => {
|
|
13416
13420
|
// The action is row-scoped, not a row activation: stop here so the
|
|
13417
13421
|
// click never selects the row or reaches Fluent's tree handler.
|
|
13418
13422
|
e.stopPropagation();
|
|
13419
13423
|
this.itemActionClick.emit({ id, item, action: rowAction.action });
|
|
13420
|
-
} }));
|
|
13424
|
+
} })));
|
|
13421
13425
|
})));
|
|
13422
13426
|
}
|
|
13423
13427
|
/**
|
|
@@ -13630,7 +13634,7 @@ const UdpTree = class {
|
|
|
13630
13634
|
}
|
|
13631
13635
|
render() {
|
|
13632
13636
|
this.renderedExpanded.clear();
|
|
13633
|
-
return (index.h(index.Host, { key: '
|
|
13637
|
+
return (index.h(index.Host, { key: '7755062ed91205fdee231930b83806ed1a99db13' }, index.h("fluent-tree", { key: '78d289954e81f2eb02374cd353c062ba8612eb25', ref: (el) => (this.treeEl = el), class: {
|
|
13634
13638
|
'interaction-button': this.interaction === 'button',
|
|
13635
13639
|
collapsible: this.collapsible,
|
|
13636
13640
|
// Two-line rows: a medium tree that shows descriptions (see `itemDescription`).
|