@design.estate/dees-catalog 21.26.0 → 21.27.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/dist_bundle/bundle.js +38 -9
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-appui/dees-appui-bottombar/dees-appui-bottombar.demo.js +29 -4
- package/dist_ts_web/elements/00group-appui/dees-appui-bottombar/dees-appui-bottombar.js +9 -5
- package/dist_ts_web/elements/interfaces/appconfig.d.ts +1 -0
- package/package.json +2 -2
- package/readme.md +19 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-appui/dees-appui-bottombar/dees-appui-bottombar.demo.ts +29 -3
- package/ts_web/elements/00group-appui/dees-appui-bottombar/dees-appui-bottombar.ts +8 -4
- package/ts_web/elements/interfaces/appconfig.ts +1 -0
package/dist_bundle/bundle.js
CHANGED
|
@@ -59525,7 +59525,7 @@ var demoFunc52 = /* @__PURE__ */ __name(() => {
|
|
|
59525
59525
|
flex-direction: column;
|
|
59526
59526
|
gap: 24px;
|
|
59527
59527
|
padding: 24px;
|
|
59528
|
-
background:
|
|
59528
|
+
background: var(--dees-color-bg-canvas);
|
|
59529
59529
|
}
|
|
59530
59530
|
|
|
59531
59531
|
.demo-section {
|
|
@@ -59536,17 +59536,22 @@ var demoFunc52 = /* @__PURE__ */ __name(() => {
|
|
|
59536
59536
|
|
|
59537
59537
|
.demo-label {
|
|
59538
59538
|
font-size: 12px;
|
|
59539
|
-
color:
|
|
59539
|
+
color: var(--dees-color-text-muted);
|
|
59540
59540
|
font-family: 'Geist Sans', sans-serif;
|
|
59541
59541
|
}
|
|
59542
59542
|
|
|
59543
59543
|
.demo-bottombar-wrapper {
|
|
59544
|
-
border: 1px solid
|
|
59544
|
+
border: 1px solid var(--dees-color-border-subtle);
|
|
59545
59545
|
border-radius: 4px;
|
|
59546
59546
|
overflow: hidden;
|
|
59547
59547
|
}
|
|
59548
59548
|
</style>
|
|
59549
59549
|
<div class="demo-container">
|
|
59550
|
+
<div class="demo-section">
|
|
59551
|
+
<div class="demo-label">Action states (light and dark theme)</div>
|
|
59552
|
+
`, `
|
|
59553
|
+
</div>
|
|
59554
|
+
|
|
59550
59555
|
<div class="demo-section">
|
|
59551
59556
|
<div class="demo-label">Bottom bar with status widgets and actions</div>
|
|
59552
59557
|
<div class="demo-bottombar-wrapper">
|
|
@@ -59720,7 +59725,27 @@ var demoFunc52 = /* @__PURE__ */ __name(() => {
|
|
|
59720
59725
|
};
|
|
59721
59726
|
<\/script>
|
|
59722
59727
|
</dees-demowrapper>
|
|
59723
|
-
`]))
|
|
59728
|
+
`])), [
|
|
59729
|
+
{ id: "ready", label: "Ready to resync", loading: false, disabled: false },
|
|
59730
|
+
{ id: "loading", label: "Resyncing: spinning and disabled", loading: true, disabled: false },
|
|
59731
|
+
{ id: "disabled", label: "Resync unavailable", loading: false, disabled: true }
|
|
59732
|
+
].map((preview) => b`
|
|
59733
|
+
<div class="demo-bottombar-wrapper">
|
|
59734
|
+
<dees-appui-bottombar
|
|
59735
|
+
data-action-state=${preview.id}
|
|
59736
|
+
.widgets=${[{ id: preview.id, label: preview.label }]}
|
|
59737
|
+
.actions=${[{
|
|
59738
|
+
id: "resync",
|
|
59739
|
+
iconName: "lucide:refresh-cw",
|
|
59740
|
+
tooltip: preview.label,
|
|
59741
|
+
loading: preview.loading,
|
|
59742
|
+
disabled: preview.disabled,
|
|
59743
|
+
position: "right",
|
|
59744
|
+
onClick: /* @__PURE__ */ __name(() => alert("Resync requested"), "onClick")
|
|
59745
|
+
}]}
|
|
59746
|
+
></dees-appui-bottombar>
|
|
59747
|
+
</div>
|
|
59748
|
+
`));
|
|
59724
59749
|
}, "demoFunc");
|
|
59725
59750
|
|
|
59726
59751
|
// ts_web/elements/00group-appui/dees-appui-bottombar/dees-appui-bottombar.ts
|
|
@@ -59808,17 +59833,20 @@ var _DeesAppuiBottombar = class _DeesAppuiBottombar extends (_a79 = DeesElement,
|
|
|
59808
59833
|
}
|
|
59809
59834
|
renderAction(action) {
|
|
59810
59835
|
const iconName = normalizeIconName(action.iconName);
|
|
59836
|
+
const disabled = !!(action.disabled || action.loading);
|
|
59811
59837
|
return b`
|
|
59812
59838
|
<button type="button"
|
|
59813
|
-
class="action-button ${
|
|
59814
|
-
?disabled=${
|
|
59839
|
+
class="action-button ${disabled ? "disabled" : ""}"
|
|
59840
|
+
?disabled=${disabled}
|
|
59841
|
+
aria-busy=${action.loading ? "true" : "false"}
|
|
59815
59842
|
aria-label=${action.tooltip || action.id}
|
|
59816
59843
|
title="${action.tooltip || ""}"
|
|
59817
|
-
@click=${() => !action.disabled && action.onClick?.()}
|
|
59844
|
+
@click=${() => !action.disabled && !action.loading && action.onClick?.()}
|
|
59818
59845
|
>
|
|
59819
59846
|
<dees-icon
|
|
59820
59847
|
.icon=${iconName}
|
|
59821
59848
|
iconSize="12"
|
|
59849
|
+
class="${action.loading ? "spinning" : ""}"
|
|
59822
59850
|
></dees-icon>
|
|
59823
59851
|
</button>
|
|
59824
59852
|
`;
|
|
@@ -59926,7 +59954,6 @@ __publicField(_DeesAppuiBottombar, "styles", [
|
|
|
59926
59954
|
.widget:not([role="button"]) { cursor: default; }
|
|
59927
59955
|
.bottom-bar { overflow-x: auto; }
|
|
59928
59956
|
.widget, .action-button { flex-shrink: 0; }
|
|
59929
|
-
@media (prefers-reduced-motion: reduce) { .spinning { animation: none; } .widget, .action-button { transition: none; } }
|
|
59930
59957
|
|
|
59931
59958
|
.bottom-bar {
|
|
59932
59959
|
height: 24px;
|
|
@@ -59993,6 +60020,8 @@ __publicField(_DeesAppuiBottombar, "styles", [
|
|
|
59993
60020
|
animation: spin 1s linear infinite;
|
|
59994
60021
|
}
|
|
59995
60022
|
|
|
60023
|
+
@media (prefers-reduced-motion: reduce) { .spinning { animation: none; } .widget, .action-button { transition: none; } }
|
|
60024
|
+
|
|
59996
60025
|
.spacer {
|
|
59997
60026
|
flex: 1;
|
|
59998
60027
|
}
|
|
@@ -119157,7 +119186,7 @@ var bright = {
|
|
|
119157
119186
|
// ts_web/00_commitinfo_data.ts
|
|
119158
119187
|
var commitinfo = {
|
|
119159
119188
|
name: "@design.estate/dees-catalog",
|
|
119160
|
-
version: "21.
|
|
119189
|
+
version: "21.27.0",
|
|
119161
119190
|
description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
|
|
119162
119191
|
};
|
|
119163
119192
|
export {
|