@trops/dash-core 0.1.565 → 0.1.566
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/index.esm.js +14 -18
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +14 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -59151,27 +59151,23 @@ var DashboardConfigModal = function DashboardConfigModal(_ref) {
|
|
|
59151
59151
|
});
|
|
59152
59152
|
}
|
|
59153
59153
|
|
|
59154
|
-
// Bulk-apply:
|
|
59155
|
-
//
|
|
59154
|
+
// Bulk-apply: retarget every widget of this provider type to the
|
|
59155
|
+
// newly-chosen provider name. The header text above the dropdown
|
|
59156
|
+
// says "Apply one provider to every widget of this type, or adjust
|
|
59157
|
+
// per-widget below" — bulk is the retarget-everything action;
|
|
59158
|
+
// per-row overrides happen AFTER bulk if the user wants exceptions.
|
|
59156
59159
|
//
|
|
59157
|
-
//
|
|
59158
|
-
//
|
|
59159
|
-
//
|
|
59160
|
-
//
|
|
59161
|
-
//
|
|
59162
|
-
//
|
|
59163
|
-
//
|
|
59160
|
+
// Previous behavior skipped rows that already had an explicit pick,
|
|
59161
|
+
// which meant the dropdown was a no-op when every row already had a
|
|
59162
|
+
// value (the common case: every Slack widget on a dashboard inherits
|
|
59163
|
+
// the same Slack provider). The user changing bulk from "Slack" to
|
|
59164
|
+
// "Slack Dash Comms" would see zero rows update and Save stay
|
|
59165
|
+
// disabled. The fill-blanks-only semantics fought the UI text and
|
|
59166
|
+
// the user's mental model — every spreadsheet-style bulk operation
|
|
59167
|
+
// overrides everything, with per-row tweaks happening afterward.
|
|
59164
59168
|
function stageBulk(providerType, providerName) {
|
|
59165
59169
|
var affected = effectiveBindings.filter(function (b) {
|
|
59166
|
-
|
|
59167
|
-
if (b.providerType !== providerType) return false;
|
|
59168
|
-
var stagedValue = (_staged$b$widgetId2 = staged[b.widgetId]) === null || _staged$b$widgetId2 === void 0 ? void 0 : _staged$b$widgetId2[providerType];
|
|
59169
|
-
if (stagedValue !== undefined) {
|
|
59170
|
-
// Empty/null staged value → user staged an unset → include
|
|
59171
|
-
// in bulk. Non-empty → explicit pick, preserve it.
|
|
59172
|
-
return !stagedValue;
|
|
59173
|
-
}
|
|
59174
|
-
return !((_b$layoutItem = b.layoutItem) !== null && _b$layoutItem !== void 0 && (_b$layoutItem = _b$layoutItem.selectedProviders) !== null && _b$layoutItem !== void 0 && _b$layoutItem[providerType]);
|
|
59170
|
+
return b.providerType === providerType;
|
|
59175
59171
|
});
|
|
59176
59172
|
setStaged(function (prev) {
|
|
59177
59173
|
var next = _objectSpread$a({}, prev);
|