@design.estate/dees-catalog 21.28.0 → 21.29.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 +281 -99
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-45QQJK4L.js → chunk-CJVVAKHG.js} +509 -358
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-45QQJK4L.js.map → chunk-CJVVAKHG.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-C63GPX4U.js → chunk-QFJ7LA5L.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-OYJYQPHK.js → dees-modal-NVJRWZKO.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-UTDYRJTX.js → dees-workspace-terminal-BSBYG5IX.js} +3 -3
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00actionerror.d.ts +4 -2
- package/dist_ts_web/elements/00actionerror.js +1 -1
- package/dist_ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.d.ts +77 -0
- package/dist_ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.demo.d.ts +1 -0
- package/dist_ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.demo.js +60 -0
- package/dist_ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.js +240 -0
- package/dist_ts_web/elements/00group-button/dees-actionfooter/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-button/dees-actionfooter/index.js +2 -0
- package/dist_ts_web/elements/00group-button/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-button/index.js +2 -1
- package/dist_ts_web/elements/00group-dataview/dees-table/filters.d.ts +8 -3
- package/dist_ts_web/elements/00group-dataview/dees-table/filters.js +13 -15
- package/dist_ts_web/elements/00group-dataview/dees-table/search.js +3 -2
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.d.ts +7 -1
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.js +17 -2
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.js +25 -4
- package/dist_ts_web/elements/00group-input/profilepicture/profilepicture.modal.d.ts +1 -1
- package/dist_ts_web/elements/00group-input/profilepicture/profilepicture.modal.js +8 -20
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.d.ts +44 -3
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.d.ts +2 -0
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.js +118 -9
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.js +70 -13
- package/dist_ts_web/elements/00group-layout/dees-stepper/styles.js +54 -6
- package/dist_ts_web/elements/00group-overlay/dees-modal/dees-modal.d.ts +18 -26
- package/dist_ts_web/elements/00group-overlay/dees-modal/dees-modal.js +33 -100
- package/dist_ts_web/elements/00group-overlay/dees-popover/dees-popover.d.ts +14 -0
- package/dist_ts_web/elements/00group-overlay/dees-popover/dees-popover.js +49 -6
- package/package.json +1 -1
- package/readme.md +109 -16
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00actionerror.ts +4 -2
- package/ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.demo.ts +64 -0
- package/ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.ts +196 -0
- package/ts_web/elements/00group-button/dees-actionfooter/index.ts +1 -0
- package/ts_web/elements/00group-button/index.ts +1 -0
- package/ts_web/elements/00group-dataview/dees-table/filters.ts +14 -14
- package/ts_web/elements/00group-dataview/dees-table/search.ts +2 -1
- package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.ts +22 -1
- package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.ts +31 -5
- package/ts_web/elements/00group-input/profilepicture/profilepicture.modal.ts +7 -19
- package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.ts +106 -4
- package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.ts +95 -33
- package/ts_web/elements/00group-layout/dees-stepper/styles.ts +55 -5
- package/ts_web/elements/00group-overlay/dees-modal/dees-modal.ts +43 -101
- package/ts_web/elements/00group-overlay/dees-popover/dees-popover.ts +36 -2
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-C63GPX4U.js.map → chunk-QFJ7LA5L.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-OYJYQPHK.js.map → dees-modal-NVJRWZKO.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-UTDYRJTX.js.map → dees-workspace-terminal-BSBYG5IX.js.map} +0 -0
|
@@ -1928,7 +1928,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
1928
1928
|
hash: null
|
|
1929
1929
|
};
|
|
1930
1930
|
this.loop = function(time) {
|
|
1931
|
-
var
|
|
1931
|
+
var _a16 = _this, $el = _a16.$el, ctx = _a16.ctx;
|
|
1932
1932
|
if (!ctx.start) {
|
|
1933
1933
|
ctx.start = time;
|
|
1934
1934
|
}
|
|
@@ -2024,7 +2024,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
2024
2024
|
if (!canUseDOM) {
|
|
2025
2025
|
return;
|
|
2026
2026
|
}
|
|
2027
|
-
var
|
|
2027
|
+
var _a16 = this, $el = _a16.$el, ctx = _a16.ctx, currentOptions = _a16.opts;
|
|
2028
2028
|
var $trigger = ctx.$trigger;
|
|
2029
2029
|
var opts = __assign2({}, currentOptions, options || {});
|
|
2030
2030
|
var optOffset = opts.offset, vertical = opts.vertical, horizontal = opts.horizontal;
|
|
@@ -2091,7 +2091,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
2091
2091
|
if (gotoEnd === void 0) {
|
|
2092
2092
|
gotoEnd = false;
|
|
2093
2093
|
}
|
|
2094
|
-
var
|
|
2094
|
+
var _a16 = this, $el = _a16.$el, ctx = _a16.ctx;
|
|
2095
2095
|
var pos = ctx.pos;
|
|
2096
2096
|
if (!$el || !ctx.progress) {
|
|
2097
2097
|
return;
|
|
@@ -2147,7 +2147,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
2147
2147
|
ctx.id = SweetScroll3.raf(this.loop);
|
|
2148
2148
|
};
|
|
2149
2149
|
SweetScroll3.prototype.complete = function() {
|
|
2150
|
-
var
|
|
2150
|
+
var _a16 = this, $el = _a16.$el, ctx = _a16.ctx;
|
|
2151
2151
|
var hash = ctx.hash, cancel = ctx.cancel, opts = ctx.opts, pos = ctx.pos, $trigger = ctx.$trigger;
|
|
2152
2152
|
if (!$el || !opts) {
|
|
2153
2153
|
return;
|
|
@@ -2173,18 +2173,18 @@ var require_sweet_scroll = __commonJS({
|
|
|
2173
2173
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
2174
2174
|
args[_i - 2] = arguments[_i];
|
|
2175
2175
|
}
|
|
2176
|
-
var
|
|
2176
|
+
var _a16;
|
|
2177
2177
|
var callback = options[type5];
|
|
2178
2178
|
var callbackResult;
|
|
2179
2179
|
var methodResult;
|
|
2180
2180
|
if (isFunction2(callback)) {
|
|
2181
2181
|
callbackResult = callback.apply(this, args.concat([this]));
|
|
2182
2182
|
}
|
|
2183
|
-
methodResult = (
|
|
2183
|
+
methodResult = (_a16 = this)["on" + (type5[0].toUpperCase() + type5.slice(1))].apply(_a16, args);
|
|
2184
2184
|
return callbackResult !== void 0 ? callbackResult : methodResult;
|
|
2185
2185
|
};
|
|
2186
2186
|
SweetScroll3.prototype.bind = function(click, stop) {
|
|
2187
|
-
var
|
|
2187
|
+
var _a16 = this, $el = _a16.$el, opts = _a16.ctx.opts;
|
|
2188
2188
|
if ($el) {
|
|
2189
2189
|
if (click) {
|
|
2190
2190
|
addEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
|
|
@@ -2195,7 +2195,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
2195
2195
|
}
|
|
2196
2196
|
};
|
|
2197
2197
|
SweetScroll3.prototype.unbind = function(click, stop) {
|
|
2198
|
-
var
|
|
2198
|
+
var _a16 = this, $el = _a16.$el, opts = _a16.ctx.opts;
|
|
2199
2199
|
if ($el) {
|
|
2200
2200
|
if (click) {
|
|
2201
2201
|
removeEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
|
|
@@ -2998,7 +2998,7 @@ var Subscription = (function() {
|
|
|
2998
2998
|
}
|
|
2999
2999
|
__name(Subscription2, "Subscription");
|
|
3000
3000
|
Subscription2.prototype.unsubscribe = function() {
|
|
3001
|
-
var e_1,
|
|
3001
|
+
var e_1, _a16, e_2, _b;
|
|
3002
3002
|
var errors;
|
|
3003
3003
|
if (!this.closed) {
|
|
3004
3004
|
this.closed = true;
|
|
@@ -3015,7 +3015,7 @@ var Subscription = (function() {
|
|
|
3015
3015
|
e_1 = { error: e_1_1 };
|
|
3016
3016
|
} finally {
|
|
3017
3017
|
try {
|
|
3018
|
-
if (_parentage_1_1 && !_parentage_1_1.done && (
|
|
3018
|
+
if (_parentage_1_1 && !_parentage_1_1.done && (_a16 = _parentage_1.return)) _a16.call(_parentage_1);
|
|
3019
3019
|
} finally {
|
|
3020
3020
|
if (e_1) throw e_1.error;
|
|
3021
3021
|
}
|
|
@@ -3065,7 +3065,7 @@ var Subscription = (function() {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
};
|
|
3067
3067
|
Subscription2.prototype.add = function(teardown) {
|
|
3068
|
-
var
|
|
3068
|
+
var _a16;
|
|
3069
3069
|
if (teardown && teardown !== this) {
|
|
3070
3070
|
if (this.closed) {
|
|
3071
3071
|
execFinalizer(teardown);
|
|
@@ -3076,7 +3076,7 @@ var Subscription = (function() {
|
|
|
3076
3076
|
}
|
|
3077
3077
|
teardown._addParent(this);
|
|
3078
3078
|
}
|
|
3079
|
-
(this._finalizers = (
|
|
3079
|
+
(this._finalizers = (_a16 = this._finalizers) !== null && _a16 !== void 0 ? _a16 : []).push(teardown);
|
|
3080
3080
|
}
|
|
3081
3081
|
}
|
|
3082
3082
|
};
|
|
@@ -3202,7 +3202,7 @@ function errorContext(cb) {
|
|
|
3202
3202
|
}
|
|
3203
3203
|
cb();
|
|
3204
3204
|
if (isRoot) {
|
|
3205
|
-
var
|
|
3205
|
+
var _a16 = context, errorThrown = _a16.errorThrown, error = _a16.error;
|
|
3206
3206
|
context = null;
|
|
3207
3207
|
if (errorThrown) {
|
|
3208
3208
|
throw error;
|
|
@@ -3446,7 +3446,7 @@ var Observable = (function() {
|
|
|
3446
3446
|
var _this = this;
|
|
3447
3447
|
var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
|
|
3448
3448
|
errorContext(function() {
|
|
3449
|
-
var
|
|
3449
|
+
var _a16 = _this, operator = _a16.operator, source = _a16.source;
|
|
3450
3450
|
subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
|
|
3451
3451
|
});
|
|
3452
3452
|
return subscriber;
|
|
@@ -3478,8 +3478,8 @@ var Observable = (function() {
|
|
|
3478
3478
|
});
|
|
3479
3479
|
};
|
|
3480
3480
|
Observable2.prototype._subscribe = function(subscriber) {
|
|
3481
|
-
var
|
|
3482
|
-
return (
|
|
3481
|
+
var _a16;
|
|
3482
|
+
return (_a16 = this.source) === null || _a16 === void 0 ? void 0 : _a16.subscribe(subscriber);
|
|
3483
3483
|
};
|
|
3484
3484
|
Observable2.prototype[observable] = function() {
|
|
3485
3485
|
return this;
|
|
@@ -3511,8 +3511,8 @@ var Observable = (function() {
|
|
|
3511
3511
|
return Observable2;
|
|
3512
3512
|
})();
|
|
3513
3513
|
function getPromiseCtor(promiseCtor) {
|
|
3514
|
-
var
|
|
3515
|
-
return (
|
|
3514
|
+
var _a16;
|
|
3515
|
+
return (_a16 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a16 !== void 0 ? _a16 : Promise;
|
|
3516
3516
|
}
|
|
3517
3517
|
__name(getPromiseCtor, "getPromiseCtor");
|
|
3518
3518
|
function isObserver(value) {
|
|
@@ -3585,11 +3585,11 @@ var OperatorSubscriber = (function(_super) {
|
|
|
3585
3585
|
}
|
|
3586
3586
|
__name(OperatorSubscriber2, "OperatorSubscriber");
|
|
3587
3587
|
OperatorSubscriber2.prototype.unsubscribe = function() {
|
|
3588
|
-
var
|
|
3588
|
+
var _a16;
|
|
3589
3589
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
3590
3590
|
var closed_1 = this.closed;
|
|
3591
3591
|
_super.prototype.unsubscribe.call(this);
|
|
3592
|
-
!closed_1 && ((
|
|
3592
|
+
!closed_1 && ((_a16 = this.onFinalize) === null || _a16 === void 0 ? void 0 : _a16.call(this));
|
|
3593
3593
|
}
|
|
3594
3594
|
};
|
|
3595
3595
|
return OperatorSubscriber2;
|
|
@@ -3631,7 +3631,7 @@ var Subject = (function(_super) {
|
|
|
3631
3631
|
Subject2.prototype.next = function(value) {
|
|
3632
3632
|
var _this = this;
|
|
3633
3633
|
errorContext(function() {
|
|
3634
|
-
var e_1,
|
|
3634
|
+
var e_1, _a16;
|
|
3635
3635
|
_this._throwIfClosed();
|
|
3636
3636
|
if (!_this.isStopped) {
|
|
3637
3637
|
if (!_this.currentObservers) {
|
|
@@ -3646,7 +3646,7 @@ var Subject = (function(_super) {
|
|
|
3646
3646
|
e_1 = { error: e_1_1 };
|
|
3647
3647
|
} finally {
|
|
3648
3648
|
try {
|
|
3649
|
-
if (_c && !_c.done && (
|
|
3649
|
+
if (_c && !_c.done && (_a16 = _b.return)) _a16.call(_b);
|
|
3650
3650
|
} finally {
|
|
3651
3651
|
if (e_1) throw e_1.error;
|
|
3652
3652
|
}
|
|
@@ -3687,8 +3687,8 @@ var Subject = (function(_super) {
|
|
|
3687
3687
|
};
|
|
3688
3688
|
Object.defineProperty(Subject2.prototype, "observed", {
|
|
3689
3689
|
get: /* @__PURE__ */ __name(function() {
|
|
3690
|
-
var
|
|
3691
|
-
return ((
|
|
3690
|
+
var _a16;
|
|
3691
|
+
return ((_a16 = this.observers) === null || _a16 === void 0 ? void 0 : _a16.length) > 0;
|
|
3692
3692
|
}, "get"),
|
|
3693
3693
|
enumerable: false,
|
|
3694
3694
|
configurable: true
|
|
@@ -3704,7 +3704,7 @@ var Subject = (function(_super) {
|
|
|
3704
3704
|
};
|
|
3705
3705
|
Subject2.prototype._innerSubscribe = function(subscriber) {
|
|
3706
3706
|
var _this = this;
|
|
3707
|
-
var
|
|
3707
|
+
var _a16 = this, hasError = _a16.hasError, isStopped = _a16.isStopped, observers = _a16.observers;
|
|
3708
3708
|
if (hasError || isStopped) {
|
|
3709
3709
|
return EMPTY_SUBSCRIPTION;
|
|
3710
3710
|
}
|
|
@@ -3716,7 +3716,7 @@ var Subject = (function(_super) {
|
|
|
3716
3716
|
});
|
|
3717
3717
|
};
|
|
3718
3718
|
Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
3719
|
-
var
|
|
3719
|
+
var _a16 = this, hasError = _a16.hasError, thrownError = _a16.thrownError, isStopped = _a16.isStopped;
|
|
3720
3720
|
if (hasError) {
|
|
3721
3721
|
subscriber.error(thrownError);
|
|
3722
3722
|
} else if (isStopped) {
|
|
@@ -3743,20 +3743,20 @@ var AnonymousSubject = (function(_super) {
|
|
|
3743
3743
|
}
|
|
3744
3744
|
__name(AnonymousSubject2, "AnonymousSubject");
|
|
3745
3745
|
AnonymousSubject2.prototype.next = function(value) {
|
|
3746
|
-
var
|
|
3747
|
-
(_b = (
|
|
3746
|
+
var _a16, _b;
|
|
3747
|
+
(_b = (_a16 = this.destination) === null || _a16 === void 0 ? void 0 : _a16.next) === null || _b === void 0 ? void 0 : _b.call(_a16, value);
|
|
3748
3748
|
};
|
|
3749
3749
|
AnonymousSubject2.prototype.error = function(err) {
|
|
3750
|
-
var
|
|
3751
|
-
(_b = (
|
|
3750
|
+
var _a16, _b;
|
|
3751
|
+
(_b = (_a16 = this.destination) === null || _a16 === void 0 ? void 0 : _a16.error) === null || _b === void 0 ? void 0 : _b.call(_a16, err);
|
|
3752
3752
|
};
|
|
3753
3753
|
AnonymousSubject2.prototype.complete = function() {
|
|
3754
|
-
var
|
|
3755
|
-
(_b = (
|
|
3754
|
+
var _a16, _b;
|
|
3755
|
+
(_b = (_a16 = this.destination) === null || _a16 === void 0 ? void 0 : _a16.complete) === null || _b === void 0 ? void 0 : _b.call(_a16);
|
|
3756
3756
|
};
|
|
3757
3757
|
AnonymousSubject2.prototype._subscribe = function(subscriber) {
|
|
3758
|
-
var
|
|
3759
|
-
return (_b = (
|
|
3758
|
+
var _a16, _b;
|
|
3759
|
+
return (_b = (_a16 = this.source) === null || _a16 === void 0 ? void 0 : _a16.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
|
|
3760
3760
|
};
|
|
3761
3761
|
return AnonymousSubject2;
|
|
3762
3762
|
})(Subject);
|
|
@@ -3783,7 +3783,7 @@ var BehaviorSubject = (function(_super) {
|
|
|
3783
3783
|
return subscription;
|
|
3784
3784
|
};
|
|
3785
3785
|
BehaviorSubject2.prototype.getValue = function() {
|
|
3786
|
-
var
|
|
3786
|
+
var _a16 = this, hasError = _a16.hasError, thrownError = _a16.thrownError, _value2 = _a16._value;
|
|
3787
3787
|
if (hasError) {
|
|
3788
3788
|
throw thrownError;
|
|
3789
3789
|
}
|
|
@@ -3830,7 +3830,7 @@ var ReplaySubject = (function(_super) {
|
|
|
3830
3830
|
}
|
|
3831
3831
|
__name(ReplaySubject2, "ReplaySubject");
|
|
3832
3832
|
ReplaySubject2.prototype.next = function(value) {
|
|
3833
|
-
var
|
|
3833
|
+
var _a16 = this, isStopped = _a16.isStopped, _buffer = _a16._buffer, _infiniteTimeWindow = _a16._infiniteTimeWindow, _timestampProvider = _a16._timestampProvider, _windowTime = _a16._windowTime;
|
|
3834
3834
|
if (!isStopped) {
|
|
3835
3835
|
_buffer.push(value);
|
|
3836
3836
|
!_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
|
|
@@ -3842,7 +3842,7 @@ var ReplaySubject = (function(_super) {
|
|
|
3842
3842
|
this._throwIfClosed();
|
|
3843
3843
|
this._trimBuffer();
|
|
3844
3844
|
var subscription = this._innerSubscribe(subscriber);
|
|
3845
|
-
var
|
|
3845
|
+
var _a16 = this, _infiniteTimeWindow = _a16._infiniteTimeWindow, _buffer = _a16._buffer;
|
|
3846
3846
|
var copy = _buffer.slice();
|
|
3847
3847
|
for (var i11 = 0; i11 < copy.length && !subscriber.closed; i11 += _infiniteTimeWindow ? 1 : 2) {
|
|
3848
3848
|
subscriber.next(copy[i11]);
|
|
@@ -3851,7 +3851,7 @@ var ReplaySubject = (function(_super) {
|
|
|
3851
3851
|
return subscription;
|
|
3852
3852
|
};
|
|
3853
3853
|
ReplaySubject2.prototype._trimBuffer = function() {
|
|
3854
|
-
var
|
|
3854
|
+
var _a16 = this, _bufferSize = _a16._bufferSize, _timestampProvider = _a16._timestampProvider, _buffer = _a16._buffer, _infiniteTimeWindow = _a16._infiniteTimeWindow;
|
|
3855
3855
|
var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
|
|
3856
3856
|
_bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
|
|
3857
3857
|
if (!_infiniteTimeWindow) {
|
|
@@ -3914,7 +3914,7 @@ var AsyncAction = (function(_super) {
|
|
|
3914
3914
|
}
|
|
3915
3915
|
__name(AsyncAction2, "AsyncAction");
|
|
3916
3916
|
AsyncAction2.prototype.schedule = function(state2, delay2) {
|
|
3917
|
-
var
|
|
3917
|
+
var _a16;
|
|
3918
3918
|
if (delay2 === void 0) {
|
|
3919
3919
|
delay2 = 0;
|
|
3920
3920
|
}
|
|
@@ -3929,7 +3929,7 @@ var AsyncAction = (function(_super) {
|
|
|
3929
3929
|
}
|
|
3930
3930
|
this.pending = true;
|
|
3931
3931
|
this.delay = delay2;
|
|
3932
|
-
this.id = (
|
|
3932
|
+
this.id = (_a16 = this.id) !== null && _a16 !== void 0 ? _a16 : this.requestAsyncId(scheduler, this.id, delay2);
|
|
3933
3933
|
return this;
|
|
3934
3934
|
};
|
|
3935
3935
|
AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay2) {
|
|
@@ -3978,7 +3978,7 @@ var AsyncAction = (function(_super) {
|
|
|
3978
3978
|
};
|
|
3979
3979
|
AsyncAction2.prototype.unsubscribe = function() {
|
|
3980
3980
|
if (!this.closed) {
|
|
3981
|
-
var
|
|
3981
|
+
var _a16 = this, id = _a16.id, scheduler = _a16.scheduler;
|
|
3982
3982
|
var actions = scheduler.actions;
|
|
3983
3983
|
this.work = this.state = this.scheduler = null;
|
|
3984
3984
|
this.pending = false;
|
|
@@ -4126,7 +4126,7 @@ __name(isIterable, "isIterable");
|
|
|
4126
4126
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
|
|
4127
4127
|
function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
4128
4128
|
return __asyncGenerator(this, arguments, /* @__PURE__ */ __name(function readableStreamLikeToAsyncGenerator_1() {
|
|
4129
|
-
var reader,
|
|
4129
|
+
var reader, _a16, value, done;
|
|
4130
4130
|
return __generator(this, function(_b) {
|
|
4131
4131
|
switch (_b.label) {
|
|
4132
4132
|
case 0:
|
|
@@ -4139,7 +4139,7 @@ function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
|
4139
4139
|
if (false) return [3, 8];
|
|
4140
4140
|
return [4, __await(reader.read())];
|
|
4141
4141
|
case 3:
|
|
4142
|
-
|
|
4142
|
+
_a16 = _b.sent(), value = _a16.value, done = _a16.done;
|
|
4143
4143
|
if (!done) return [3, 5];
|
|
4144
4144
|
return [4, __await(void 0)];
|
|
4145
4145
|
case 4:
|
|
@@ -4230,7 +4230,7 @@ function fromPromise(promise) {
|
|
|
4230
4230
|
__name(fromPromise, "fromPromise");
|
|
4231
4231
|
function fromIterable(iterable) {
|
|
4232
4232
|
return new Observable(function(subscriber) {
|
|
4233
|
-
var e_1,
|
|
4233
|
+
var e_1, _a16;
|
|
4234
4234
|
try {
|
|
4235
4235
|
for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
|
|
4236
4236
|
var value = iterable_1_1.value;
|
|
@@ -4243,7 +4243,7 @@ function fromIterable(iterable) {
|
|
|
4243
4243
|
e_1 = { error: e_1_1 };
|
|
4244
4244
|
} finally {
|
|
4245
4245
|
try {
|
|
4246
|
-
if (iterable_1_1 && !iterable_1_1.done && (
|
|
4246
|
+
if (iterable_1_1 && !iterable_1_1.done && (_a16 = iterable_1.return)) _a16.call(iterable_1);
|
|
4247
4247
|
} finally {
|
|
4248
4248
|
if (e_1) throw e_1.error;
|
|
4249
4249
|
}
|
|
@@ -4266,7 +4266,7 @@ function fromReadableStreamLike(readableStream) {
|
|
|
4266
4266
|
__name(fromReadableStreamLike, "fromReadableStreamLike");
|
|
4267
4267
|
function process2(asyncIterable, subscriber) {
|
|
4268
4268
|
var asyncIterable_1, asyncIterable_1_1;
|
|
4269
|
-
var e_2,
|
|
4269
|
+
var e_2, _a16;
|
|
4270
4270
|
return __awaiter(this, void 0, void 0, function() {
|
|
4271
4271
|
var value, e_2_1;
|
|
4272
4272
|
return __generator(this, function(_b) {
|
|
@@ -4295,8 +4295,8 @@ function process2(asyncIterable, subscriber) {
|
|
|
4295
4295
|
return [3, 11];
|
|
4296
4296
|
case 6:
|
|
4297
4297
|
_b.trys.push([6, , 9, 10]);
|
|
4298
|
-
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (
|
|
4299
|
-
return [4,
|
|
4298
|
+
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a16 = asyncIterable_1.return))) return [3, 8];
|
|
4299
|
+
return [4, _a16.call(asyncIterable_1)];
|
|
4300
4300
|
case 7:
|
|
4301
4301
|
_b.sent();
|
|
4302
4302
|
_b.label = 8;
|
|
@@ -4412,11 +4412,11 @@ function scheduleIterable(input, scheduler) {
|
|
|
4412
4412
|
executeSchedule(subscriber, scheduler, function() {
|
|
4413
4413
|
iterator2 = input[iterator]();
|
|
4414
4414
|
executeSchedule(subscriber, scheduler, function() {
|
|
4415
|
-
var
|
|
4415
|
+
var _a16;
|
|
4416
4416
|
var value;
|
|
4417
4417
|
var done;
|
|
4418
4418
|
try {
|
|
4419
|
-
|
|
4419
|
+
_a16 = iterator2.next(), value = _a16.value, done = _a16.done;
|
|
4420
4420
|
} catch (err) {
|
|
4421
4421
|
subscriber.error(err);
|
|
4422
4422
|
return;
|
|
@@ -4579,7 +4579,7 @@ function combineLatest() {
|
|
|
4579
4579
|
}
|
|
4580
4580
|
var scheduler = popScheduler(args);
|
|
4581
4581
|
var resultSelector = popResultSelector(args);
|
|
4582
|
-
var
|
|
4582
|
+
var _a16 = argsArgArrayOrObject(args), observables = _a16.args, keys2 = _a16.keys;
|
|
4583
4583
|
if (observables.length === 0) {
|
|
4584
4584
|
return from([], scheduler);
|
|
4585
4585
|
}
|
|
@@ -4753,11 +4753,11 @@ function fromEvent(target, eventName, options, resultSelector) {
|
|
|
4753
4753
|
if (resultSelector) {
|
|
4754
4754
|
return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
|
|
4755
4755
|
}
|
|
4756
|
-
var
|
|
4756
|
+
var _a16 = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) {
|
|
4757
4757
|
return function(handler) {
|
|
4758
4758
|
return target[methodName](eventName, handler, options);
|
|
4759
4759
|
};
|
|
4760
|
-
}) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add2 =
|
|
4760
|
+
}) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add2 = _a16[0], remove2 = _a16[1];
|
|
4761
4761
|
if (!add2) {
|
|
4762
4762
|
if (isArrayLike(target)) {
|
|
4763
4763
|
return mergeMap(function(subTarget) {
|
|
@@ -4898,7 +4898,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
4898
4898
|
var buffers = [];
|
|
4899
4899
|
var count2 = 0;
|
|
4900
4900
|
source.subscribe(createOperatorSubscriber(subscriber, function(value) {
|
|
4901
|
-
var e_1,
|
|
4901
|
+
var e_1, _a16, e_2, _b;
|
|
4902
4902
|
var toEmit = null;
|
|
4903
4903
|
if (count2++ % startBufferEvery === 0) {
|
|
4904
4904
|
buffers.push([]);
|
|
@@ -4916,7 +4916,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
4916
4916
|
e_1 = { error: e_1_1 };
|
|
4917
4917
|
} finally {
|
|
4918
4918
|
try {
|
|
4919
|
-
if (buffers_1_1 && !buffers_1_1.done && (
|
|
4919
|
+
if (buffers_1_1 && !buffers_1_1.done && (_a16 = buffers_1.return)) _a16.call(buffers_1);
|
|
4920
4920
|
} finally {
|
|
4921
4921
|
if (e_1) throw e_1.error;
|
|
4922
4922
|
}
|
|
@@ -4939,7 +4939,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
4939
4939
|
}
|
|
4940
4940
|
}
|
|
4941
4941
|
}, function() {
|
|
4942
|
-
var e_3,
|
|
4942
|
+
var e_3, _a16;
|
|
4943
4943
|
try {
|
|
4944
4944
|
for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) {
|
|
4945
4945
|
var buffer2 = buffers_2_1.value;
|
|
@@ -4949,7 +4949,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
4949
4949
|
e_3 = { error: e_3_1 };
|
|
4950
4950
|
} finally {
|
|
4951
4951
|
try {
|
|
4952
|
-
if (buffers_2_1 && !buffers_2_1.done && (
|
|
4952
|
+
if (buffers_2_1 && !buffers_2_1.done && (_a16 = buffers_2.return)) _a16.call(buffers_2);
|
|
4953
4953
|
} finally {
|
|
4954
4954
|
if (e_3) throw e_3.error;
|
|
4955
4955
|
}
|
|
@@ -4964,12 +4964,12 @@ __name(bufferCount, "bufferCount");
|
|
|
4964
4964
|
|
|
4965
4965
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js
|
|
4966
4966
|
function bufferTime(bufferTimeSpan) {
|
|
4967
|
-
var
|
|
4967
|
+
var _a16, _b;
|
|
4968
4968
|
var otherArgs = [];
|
|
4969
4969
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4970
4970
|
otherArgs[_i - 1] = arguments[_i];
|
|
4971
4971
|
}
|
|
4972
|
-
var scheduler = (
|
|
4972
|
+
var scheduler = (_a16 = popScheduler(otherArgs)) !== null && _a16 !== void 0 ? _a16 : asyncScheduler;
|
|
4973
4973
|
var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
|
|
4974
4974
|
var maxBufferSize = otherArgs[1] || Infinity;
|
|
4975
4975
|
return operate(function(source, subscriber) {
|
|
@@ -5004,7 +5004,7 @@ function bufferTime(bufferTimeSpan) {
|
|
|
5004
5004
|
}
|
|
5005
5005
|
startBuffer();
|
|
5006
5006
|
var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function(value) {
|
|
5007
|
-
var e_1,
|
|
5007
|
+
var e_1, _a17;
|
|
5008
5008
|
var recordsCopy = bufferRecords.slice();
|
|
5009
5009
|
try {
|
|
5010
5010
|
for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
|
|
@@ -5017,7 +5017,7 @@ function bufferTime(bufferTimeSpan) {
|
|
|
5017
5017
|
e_1 = { error: e_1_1 };
|
|
5018
5018
|
} finally {
|
|
5019
5019
|
try {
|
|
5020
|
-
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (
|
|
5020
|
+
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a17 = recordsCopy_1.return)) _a17.call(recordsCopy_1);
|
|
5021
5021
|
} finally {
|
|
5022
5022
|
if (e_1) throw e_1.error;
|
|
5023
5023
|
}
|
|
@@ -5145,9 +5145,9 @@ function share(options) {
|
|
|
5145
5145
|
if (options === void 0) {
|
|
5146
5146
|
options = {};
|
|
5147
5147
|
}
|
|
5148
|
-
var
|
|
5148
|
+
var _a16 = options.connector, connector = _a16 === void 0 ? function() {
|
|
5149
5149
|
return new Subject();
|
|
5150
|
-
} :
|
|
5150
|
+
} : _a16, _b = options.resetOnError, resetOnError = _b === void 0 ? true : _b, _c = options.resetOnComplete, resetOnComplete = _c === void 0 ? true : _c, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d;
|
|
5151
5151
|
return function(wrapperSource) {
|
|
5152
5152
|
var connection;
|
|
5153
5153
|
var resetConnection;
|
|
@@ -5230,11 +5230,11 @@ __name(handleReset, "handleReset");
|
|
|
5230
5230
|
|
|
5231
5231
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js
|
|
5232
5232
|
function shareReplay(configOrBufferSize, windowTime2, scheduler) {
|
|
5233
|
-
var
|
|
5233
|
+
var _a16, _b, _c;
|
|
5234
5234
|
var bufferSize;
|
|
5235
5235
|
var refCount2 = false;
|
|
5236
5236
|
if (configOrBufferSize && typeof configOrBufferSize === "object") {
|
|
5237
|
-
|
|
5237
|
+
_a16 = configOrBufferSize.bufferSize, bufferSize = _a16 === void 0 ? Infinity : _a16, _b = configOrBufferSize.windowTime, windowTime2 = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount2 = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler;
|
|
5238
5238
|
} else {
|
|
5239
5239
|
bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity;
|
|
5240
5240
|
}
|
|
@@ -5276,7 +5276,7 @@ __name(takeUntil, "takeUntil");
|
|
|
5276
5276
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throttle.js
|
|
5277
5277
|
function throttle(durationSelector, config2) {
|
|
5278
5278
|
return operate(function(source, subscriber) {
|
|
5279
|
-
var
|
|
5279
|
+
var _a16 = config2 !== null && config2 !== void 0 ? config2 : {}, _b = _a16.leading, leading = _b === void 0 ? true : _b, _c = _a16.trailing, trailing = _c === void 0 ? false : _c;
|
|
5280
5280
|
var hasValue = false;
|
|
5281
5281
|
var sendValue = null;
|
|
5282
5282
|
var throttled = null;
|
|
@@ -20120,9 +20120,9 @@ var printDefaultReport = /* @__PURE__ */ __name((reportArg) => {
|
|
|
20120
20120
|
}
|
|
20121
20121
|
}, "printDefaultReport");
|
|
20122
20122
|
var reportTypedRequestError = /* @__PURE__ */ __name((inputArg) => {
|
|
20123
|
-
let
|
|
20123
|
+
let report2;
|
|
20124
20124
|
try {
|
|
20125
|
-
|
|
20125
|
+
report2 = buildTypedRequestErrorReport(inputArg);
|
|
20126
20126
|
} catch {
|
|
20127
20127
|
try {
|
|
20128
20128
|
console.error(`${buildPrefix(inputArg.origin, String(inputArg.method))}: <error description unavailable>`);
|
|
@@ -20132,18 +20132,18 @@ var reportTypedRequestError = /* @__PURE__ */ __name((inputArg) => {
|
|
|
20132
20132
|
}
|
|
20133
20133
|
const reporter = getGlobalTypedRequestErrorReporter();
|
|
20134
20134
|
if (!reporter) {
|
|
20135
|
-
printDefaultReport(
|
|
20135
|
+
printDefaultReport(report2);
|
|
20136
20136
|
return;
|
|
20137
20137
|
}
|
|
20138
20138
|
try {
|
|
20139
|
-
const reporterResult = reporter(
|
|
20139
|
+
const reporterResult = reporter(report2);
|
|
20140
20140
|
if (reporterResult && typeof reporterResult.then === "function") {
|
|
20141
20141
|
void Promise.resolve(reporterResult).catch(() => {
|
|
20142
|
-
printDefaultReport(
|
|
20142
|
+
printDefaultReport(report2);
|
|
20143
20143
|
});
|
|
20144
20144
|
}
|
|
20145
20145
|
} catch {
|
|
20146
|
-
printDefaultReport(
|
|
20146
|
+
printDefaultReport(report2);
|
|
20147
20147
|
}
|
|
20148
20148
|
}, "reportTypedRequestError");
|
|
20149
20149
|
|
|
@@ -33426,7 +33426,7 @@ var DeesElement = (() => {
|
|
|
33426
33426
|
// node_modules/.pnpm/@design.estate+dees-element@4.0.2/node_modules/@design.estate/dees-element/dist_ts/decorators.containerresponsive.js
|
|
33427
33427
|
var camelToKebab = /* @__PURE__ */ __name((name) => name.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), "camelToKebab");
|
|
33428
33428
|
function containerResponsive() {
|
|
33429
|
-
return function(target,
|
|
33429
|
+
return function(target, _context2) {
|
|
33430
33430
|
const superFinalizeStyles = target.finalizeStyles;
|
|
33431
33431
|
const finalizeStyles = /* @__PURE__ */ __name(function(styles2) {
|
|
33432
33432
|
if (this.finalizeStyles !== finalizeStyles) {
|
|
@@ -58886,6 +58886,189 @@ var runAction = /* @__PURE__ */ __name(async (hostArg, detailArg, runArg) => {
|
|
|
58886
58886
|
}
|
|
58887
58887
|
}, "runAction");
|
|
58888
58888
|
|
|
58889
|
+
// ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.demo.ts
|
|
58890
|
+
var surfaceStyles = b3`<style>
|
|
58891
|
+
.demo-surface { display: grid; max-width: 480px; overflow: hidden; border-radius: var(--dees-radius-2xl); background: var(--dees-material-thick-bg-opaque); box-shadow: 0 0 0 var(--dees-line-width-hairline) var(--dees-color-border-subtle), var(--dees-shadow-lg); }
|
|
58892
|
+
.demo-surface.narrow { max-width: 280px; }
|
|
58893
|
+
.demo-surface-body { padding: var(--dees-spacing-xl); font-size: var(--dees-font-footnote-size); line-height: var(--dees-font-footnote-line); color: var(--dees-color-text-secondary); }
|
|
58894
|
+
.demo-surface-body strong { display: block; margin-bottom: var(--dees-spacing-xs); font-size: var(--dees-font-subhead-size); line-height: var(--dees-font-subhead-line); color: var(--dees-color-text-primary); }
|
|
58895
|
+
</style>`;
|
|
58896
|
+
var surface = /* @__PURE__ */ __name((title, body3, footer2, narrow = false) => b3`
|
|
58897
|
+
<div class="demo-surface ${narrow ? "narrow" : ""}">
|
|
58898
|
+
<div class="demo-surface-body"><strong>${title}</strong>${body3}</div>
|
|
58899
|
+
${footer2}
|
|
58900
|
+
</div>`, "surface");
|
|
58901
|
+
var report = /* @__PURE__ */ __name((name) => async (footer2) => {
|
|
58902
|
+
showDemoResult(footer2, `${name} pressed`);
|
|
58903
|
+
}, "report");
|
|
58904
|
+
var demoFunc6 = /* @__PURE__ */ __name(() => demoPage("Action footer", "The action row at the bottom edge of a dialog, a speech bubble or a card: a divider, a tinted strip, the primary rightmost.", b3`
|
|
58905
|
+
${surfaceStyles}
|
|
58906
|
+
${demoSection("Two actions", "The last action is the primary unless one says otherwise; the others are secondary.", b3`
|
|
58907
|
+
${surface("Save the draft?", "Your changes stay on this device until you save them.", b3`
|
|
58908
|
+
<dees-actionfooter .actions=${[
|
|
58909
|
+
{ name: "Cancel", action: report("Cancel") },
|
|
58910
|
+
{ name: "Save changes", action: report("Save changes") }
|
|
58911
|
+
]}></dees-actionfooter>`)}
|
|
58912
|
+
${demoOutput("Press an action.")}
|
|
58913
|
+
${demoCode("<dees-actionfooter .actions=${[\n { name: 'Cancel', action: cancel },\n { name: 'Save changes', action: save },\n]}></dees-actionfooter>")}`)}
|
|
58914
|
+
${demoSection("A destructive primary", "An action that deletes or cannot be taken back is drawn as destructive.", b3`
|
|
58915
|
+
${surface("Remove this member?", "They lose access to the workspace immediately.", b3`
|
|
58916
|
+
<dees-actionfooter primaryActionType="destructive" .actions=${[
|
|
58917
|
+
{ name: "Keep", action: report("Keep") },
|
|
58918
|
+
{ name: "Remove", action: report("Remove") }
|
|
58919
|
+
]}></dees-actionfooter>`)}
|
|
58920
|
+
${demoOutput("Press an action.")}`)}
|
|
58921
|
+
${demoSection("No primary", "Actions all marked primary: false are ordinary buttons, as a filter bubble's Clear filters. A disabled action stays visible.", b3`
|
|
58922
|
+
${surface("Filters", "Two filters narrow the list.", b3`
|
|
58923
|
+
<dees-actionfooter style="--dees-actionfooter-inset: var(--dees-spacing-lg)" .actions=${[
|
|
58924
|
+
{ name: "Undo", primary: false, disabled: true, action: report("Undo") },
|
|
58925
|
+
{ name: "Clear filters", primary: false, action: report("Clear filters") }
|
|
58926
|
+
]}></dees-actionfooter>`)}
|
|
58927
|
+
${demoOutput("Press Clear filters.")}`)}
|
|
58928
|
+
${demoSection("Actions that take a moment", "One action runs at a time: its button shows the busy face and the others wait. A failure is announced and hands the row back.", b3`
|
|
58929
|
+
${surface("Issue the invoice", "Issuing takes a moment; failing shows a notification.", b3`
|
|
58930
|
+
<dees-actionfooter .actions=${[
|
|
58931
|
+
{ name: "Fail", action: /* @__PURE__ */ __name(async () => {
|
|
58932
|
+
throw new Error("The invoicing service is unavailable.");
|
|
58933
|
+
}, "action") },
|
|
58934
|
+
{ name: "Issue", action: /* @__PURE__ */ __name(async (footer2) => {
|
|
58935
|
+
await new Promise((resolve2) => setTimeout(resolve2, 1500));
|
|
58936
|
+
showDemoResult(footer2, "Issued once");
|
|
58937
|
+
}, "action") }
|
|
58938
|
+
]}></dees-actionfooter>`)}
|
|
58939
|
+
${demoOutput("Press Issue twice in a row to see it run once.")}`)}
|
|
58940
|
+
${demoSection("Long labels", "A label too long for the row wraps inside its button instead of being cut off.", b3`
|
|
58941
|
+
${surface("Discard the import?", "The imported rows have not been checked yet.", b3`
|
|
58942
|
+
<dees-actionfooter .actions=${[
|
|
58943
|
+
{ name: "Discard all imported rows", action: report("Discard") },
|
|
58944
|
+
{ name: "Check the imported rows one by one", action: report("Check") }
|
|
58945
|
+
]}></dees-actionfooter>`, true)}
|
|
58946
|
+
${demoOutput("Press an action.")}`)}
|
|
58947
|
+
`), "demoFunc");
|
|
58948
|
+
|
|
58949
|
+
// ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.ts
|
|
58950
|
+
var _pendingAction_dec, _source_dec, _disabled_dec2, _primaryActionType_dec, _context_dec, _actions_dec, _a6, _DeesActionFooter_decorators, _init6, _actions, _context, _primaryActionType, _disabled2, _source, _pendingAction;
|
|
58951
|
+
var catalogWords = /* @__PURE__ */ new WeakMap();
|
|
58952
|
+
var catalogAction = /* @__PURE__ */ __name((wordArg, actionArg) => {
|
|
58953
|
+
const item = { name: dcMessages.entries[wordArg].message, action: actionArg };
|
|
58954
|
+
catalogWords.set(item, wordArg);
|
|
58955
|
+
return item;
|
|
58956
|
+
}, "catalogAction");
|
|
58957
|
+
_DeesActionFooter_decorators = [customElement("dees-actionfooter")];
|
|
58958
|
+
var _DeesActionFooter = class _DeesActionFooter extends (_a6 = DeesElement, _actions_dec = [n5({ attribute: false })], _context_dec = [n5({ attribute: false })], _primaryActionType_dec = [n5({ type: String, reflect: true })], _disabled_dec2 = [n5({ type: Boolean, reflect: true })], _source_dec = [n5({ type: String, reflect: true })], _pendingAction_dec = [r5()], _a6) {
|
|
58959
|
+
constructor() {
|
|
58960
|
+
super(...arguments);
|
|
58961
|
+
__publicField(this, "t", dcLocalize(this));
|
|
58962
|
+
__privateAdd(this, _actions, __runInitializers(_init6, 8, this, [])), __runInitializers(_init6, 11, this);
|
|
58963
|
+
__privateAdd(this, _context, __runInitializers(_init6, 12, this)), __runInitializers(_init6, 15, this);
|
|
58964
|
+
__privateAdd(this, _primaryActionType, __runInitializers(_init6, 16, this, "accent")), __runInitializers(_init6, 19, this);
|
|
58965
|
+
__privateAdd(this, _disabled2, __runInitializers(_init6, 20, this, false)), __runInitializers(_init6, 23, this);
|
|
58966
|
+
__privateAdd(this, _source, __runInitializers(_init6, 24, this, "actionfooter")), __runInitializers(_init6, 27, this);
|
|
58967
|
+
__privateAdd(this, _pendingAction, __runInitializers(_init6, 28, this, null)), __runInitializers(_init6, 31, this);
|
|
58968
|
+
}
|
|
58969
|
+
render() {
|
|
58970
|
+
const primary = this.primaryAction;
|
|
58971
|
+
const ordered = primary ? [...this.actions.filter((action) => action !== primary), primary] : this.actions;
|
|
58972
|
+
return b3`${ordered.map((action) => b3`
|
|
58973
|
+
<dees-button class="action" .text=${this.actionName(action)}
|
|
58974
|
+
.disabled=${this.disabled || !!action.disabled || this.pendingAction !== null && this.pendingAction !== action}
|
|
58975
|
+
.status=${this.pendingAction === action ? "pending" : "normal"}
|
|
58976
|
+
.type=${action === primary ? this.primaryActionType : "secondary"}
|
|
58977
|
+
@clicked=${() => this.run(action)}></dees-button>
|
|
58978
|
+
`)}`;
|
|
58979
|
+
}
|
|
58980
|
+
/** The primary action: the first marked `primary: true`, or the last when none carries the flag. */
|
|
58981
|
+
get primaryAction() {
|
|
58982
|
+
if (this.actions.some((action) => action.primary !== void 0)) return this.actions.find((action) => action.primary === true);
|
|
58983
|
+
return this.actions[this.actions.length - 1];
|
|
58984
|
+
}
|
|
58985
|
+
/**
|
|
58986
|
+
* Runs the primary action as a press on its button would — Enter in a dialog's form does this.
|
|
58987
|
+
* Nothing starts while an action runs, while the footer or the primary is disabled, or without a
|
|
58988
|
+
* primary.
|
|
58989
|
+
*/
|
|
58990
|
+
async runPrimary() {
|
|
58991
|
+
const primary = this.primaryAction;
|
|
58992
|
+
if (primary) await this.run(primary);
|
|
58993
|
+
}
|
|
58994
|
+
/** An action's name: the caller's, or the catalog's for an action `catalogAction()` made. */
|
|
58995
|
+
actionName(actionArg) {
|
|
58996
|
+
const word = catalogWords.get(actionArg);
|
|
58997
|
+
return word ? this.t(word) : actionArg.name;
|
|
58998
|
+
}
|
|
58999
|
+
async run(actionArg) {
|
|
59000
|
+
if (this.pendingAction || this.disabled || actionArg.disabled) return;
|
|
59001
|
+
this.pendingAction = actionArg;
|
|
59002
|
+
try {
|
|
59003
|
+
await runAction(this, { action: actionArg, source: this.source, ownerElement: this }, () => actionArg.action(this.context ?? this));
|
|
59004
|
+
} finally {
|
|
59005
|
+
this.pendingAction = null;
|
|
59006
|
+
}
|
|
59007
|
+
}
|
|
59008
|
+
};
|
|
59009
|
+
_init6 = __decoratorStart(_a6);
|
|
59010
|
+
_actions = new WeakMap();
|
|
59011
|
+
_context = new WeakMap();
|
|
59012
|
+
_primaryActionType = new WeakMap();
|
|
59013
|
+
_disabled2 = new WeakMap();
|
|
59014
|
+
_source = new WeakMap();
|
|
59015
|
+
_pendingAction = new WeakMap();
|
|
59016
|
+
__decorateElement(_init6, 4, "actions", _actions_dec, _DeesActionFooter, _actions);
|
|
59017
|
+
__decorateElement(_init6, 4, "context", _context_dec, _DeesActionFooter, _context);
|
|
59018
|
+
__decorateElement(_init6, 4, "primaryActionType", _primaryActionType_dec, _DeesActionFooter, _primaryActionType);
|
|
59019
|
+
__decorateElement(_init6, 4, "disabled", _disabled_dec2, _DeesActionFooter, _disabled2);
|
|
59020
|
+
__decorateElement(_init6, 4, "source", _source_dec, _DeesActionFooter, _source);
|
|
59021
|
+
__decorateElement(_init6, 4, "pendingAction", _pendingAction_dec, _DeesActionFooter, _pendingAction);
|
|
59022
|
+
_DeesActionFooter = __decorateElement(_init6, 0, "DeesActionFooter", _DeesActionFooter_decorators, _DeesActionFooter);
|
|
59023
|
+
__name(_DeesActionFooter, "DeesActionFooter");
|
|
59024
|
+
__publicField(_DeesActionFooter, "demo", demoFunc6);
|
|
59025
|
+
__publicField(_DeesActionFooter, "demoGroups", ["Button"]);
|
|
59026
|
+
__publicField(_DeesActionFooter, "styles", [
|
|
59027
|
+
themeDefaultStyles,
|
|
59028
|
+
cssManager.defaultStyles,
|
|
59029
|
+
i`
|
|
59030
|
+
:host {
|
|
59031
|
+
display: flex;
|
|
59032
|
+
flex-wrap: wrap;
|
|
59033
|
+
justify-content: flex-end;
|
|
59034
|
+
align-items: center;
|
|
59035
|
+
gap: var(--dees-spacing-sm);
|
|
59036
|
+
padding: var(--dees-spacing-md) var(--dees-actionfooter-inset, var(--dees-spacing-xl));
|
|
59037
|
+
border-top: var(--dees-line-width-hairline) solid var(--dees-color-border-subtle);
|
|
59038
|
+
background: var(--dees-color-modal-sidebar);
|
|
59039
|
+
font-family: var(--dees-font-family);
|
|
59040
|
+
}
|
|
59041
|
+
|
|
59042
|
+
:host([hidden]) {
|
|
59043
|
+
display: none;
|
|
59044
|
+
}
|
|
59045
|
+
|
|
59046
|
+
/* An action keeps the one-line 28px face while its label fits. A label wider than the row
|
|
59047
|
+
(a long confirmation on a phone) wraps onto more lines inside it instead of being cut
|
|
59048
|
+
off: the face grows in height, never past the row's width. */
|
|
59049
|
+
.action {
|
|
59050
|
+
max-width: 100%;
|
|
59051
|
+
min-width: 0;
|
|
59052
|
+
}
|
|
59053
|
+
|
|
59054
|
+
.action::part(button) {
|
|
59055
|
+
height: auto;
|
|
59056
|
+
min-height: var(--dees-control-height-md);
|
|
59057
|
+
max-width: 100%;
|
|
59058
|
+
padding-block: var(--dees-spacing-xs);
|
|
59059
|
+
white-space: normal;
|
|
59060
|
+
/* anywhere, not break-word: only anywhere counts toward min-content, so an unbreakable
|
|
59061
|
+
token (an e-mail address, an identifier) breaks inside the face instead of spilling */
|
|
59062
|
+
overflow-wrap: anywhere;
|
|
59063
|
+
text-align: center;
|
|
59064
|
+
font-size: var(--dees-font-control-size);
|
|
59065
|
+
border-radius: var(--dees-radius-md);
|
|
59066
|
+
}
|
|
59067
|
+
`
|
|
59068
|
+
]);
|
|
59069
|
+
__runInitializers(_init6, 1, _DeesActionFooter);
|
|
59070
|
+
var DeesActionFooter = _DeesActionFooter;
|
|
59071
|
+
|
|
58889
59072
|
// ts_web/elements/00group-overlay/dees-modal/dees-modal.demo.ts
|
|
58890
59073
|
var openSettingsDemo = /* @__PURE__ */ __name(async (options = {}) => {
|
|
58891
59074
|
let draft = { ...options.initial ?? createWorkspace() };
|
|
@@ -58962,7 +59145,7 @@ var openExample = /* @__PURE__ */ __name((options) => DeesModal.createAndShow({
|
|
|
58962
59145
|
menuOptions: [{ name: "Done", action: /* @__PURE__ */ __name((modal) => modal.destroy(), "action") }],
|
|
58963
59146
|
...options
|
|
58964
59147
|
}), "openExample");
|
|
58965
|
-
var
|
|
59148
|
+
var demoFunc7 = /* @__PURE__ */ __name(() => demoPage("Modal", "Focused windows with native keyboard behavior, a clear action area, and room for settings that grow.", b3`
|
|
58966
59149
|
${demoSection("Workspace settings", "Switch between General and Privacy. A fixed height of 400px on desktop and 520px on narrow screens keeps the window steady.", b3`
|
|
58967
59150
|
<div class="dees-demo-row"><dees-button type="accent" text="Open settings" @clicked=${(event) => {
|
|
58968
59151
|
const trigger = event.currentTarget;
|
|
@@ -59099,18 +59282,18 @@ var demoFunc6 = /* @__PURE__ */ __name(() => demoPage("Modal", "Focused windows
|
|
|
59099
59282
|
`), "demoFunc");
|
|
59100
59283
|
|
|
59101
59284
|
// ts_web/elements/00group-button/dees-button-exit/dees-button-exit.ts
|
|
59102
|
-
var
|
|
59285
|
+
var _disabled_dec3, _label_dec, _size_dec3, _a7, _DeesButtonExit_decorators, _init7, _size3, _label, _disabled3;
|
|
59103
59286
|
_DeesButtonExit_decorators = [customElement("dees-button-exit")];
|
|
59104
|
-
var _DeesButtonExit = class _DeesButtonExit extends (
|
|
59287
|
+
var _DeesButtonExit = class _DeesButtonExit extends (_a7 = DeesElement, _size_dec3 = [n5({
|
|
59105
59288
|
type: Number,
|
|
59106
59289
|
reflect: true
|
|
59107
|
-
})], _label_dec = [n5({ type: String, reflect: true })],
|
|
59290
|
+
})], _label_dec = [n5({ type: String, reflect: true })], _disabled_dec3 = [n5({ type: Boolean, reflect: true })], _a7) {
|
|
59108
59291
|
constructor() {
|
|
59109
59292
|
super(...arguments);
|
|
59110
|
-
__privateAdd(this, _size3, __runInitializers(
|
|
59111
|
-
__privateAdd(this, _label, __runInitializers(
|
|
59293
|
+
__privateAdd(this, _size3, __runInitializers(_init7, 8, this, 24)), __runInitializers(_init7, 11, this);
|
|
59294
|
+
__privateAdd(this, _label, __runInitializers(_init7, 12, this, "")), __runInitializers(_init7, 15, this);
|
|
59112
59295
|
__publicField(this, "t", dcLocalize(this));
|
|
59113
|
-
__privateAdd(this,
|
|
59296
|
+
__privateAdd(this, _disabled3, __runInitializers(_init7, 16, this, false)), __runInitializers(_init7, 19, this);
|
|
59114
59297
|
}
|
|
59115
59298
|
render() {
|
|
59116
59299
|
return b3`<button type="button" aria-label=${this.label || this.t("common.close")} ?disabled=${this.disabled}
|
|
@@ -59123,14 +59306,14 @@ var _DeesButtonExit = class _DeesButtonExit extends (_a6 = DeesElement, _size_de
|
|
|
59123
59306
|
this.shadowRoot?.querySelector("button")?.blur();
|
|
59124
59307
|
}
|
|
59125
59308
|
};
|
|
59126
|
-
|
|
59309
|
+
_init7 = __decoratorStart(_a7);
|
|
59127
59310
|
_size3 = new WeakMap();
|
|
59128
59311
|
_label = new WeakMap();
|
|
59129
|
-
|
|
59130
|
-
__decorateElement(
|
|
59131
|
-
__decorateElement(
|
|
59132
|
-
__decorateElement(
|
|
59133
|
-
_DeesButtonExit = __decorateElement(
|
|
59312
|
+
_disabled3 = new WeakMap();
|
|
59313
|
+
__decorateElement(_init7, 4, "size", _size_dec3, _DeesButtonExit, _size3);
|
|
59314
|
+
__decorateElement(_init7, 4, "label", _label_dec, _DeesButtonExit, _label);
|
|
59315
|
+
__decorateElement(_init7, 4, "disabled", _disabled_dec3, _DeesButtonExit, _disabled3);
|
|
59316
|
+
_DeesButtonExit = __decorateElement(_init7, 0, "DeesButtonExit", _DeesButtonExit_decorators, _DeesButtonExit);
|
|
59134
59317
|
__name(_DeesButtonExit, "DeesButtonExit");
|
|
59135
59318
|
// DEMO
|
|
59136
59319
|
__publicField(_DeesButtonExit, "demo", /* @__PURE__ */ __name(() => b3`
|
|
@@ -59171,11 +59354,11 @@ __publicField(_DeesButtonExit, "styles", [
|
|
|
59171
59354
|
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
|
|
59172
59355
|
`
|
|
59173
59356
|
]);
|
|
59174
|
-
__runInitializers(
|
|
59357
|
+
__runInitializers(_init7, 1, _DeesButtonExit);
|
|
59175
59358
|
var DeesButtonExit = _DeesButtonExit;
|
|
59176
59359
|
|
|
59177
59360
|
// ts_web/elements/00group-layout/dees-label/dees-label.demo.ts
|
|
59178
|
-
var
|
|
59361
|
+
var demoFunc8 = /* @__PURE__ */ __name(() => demoPage("Label", "The label every input draws above or beside its control, with an optional required mark and an info icon that shows a hint on hover.", b3`
|
|
59179
59362
|
${demoSection("Basic label", "Plain label text with no indicators.", b3`
|
|
59180
59363
|
<dees-label .label=${"Username"}></dees-label>
|
|
59181
59364
|
<dees-label .label=${"Email address"}></dees-label>
|
|
@@ -59508,27 +59691,29 @@ var ScrollEdgeShadowController = class {
|
|
|
59508
59691
|
};
|
|
59509
59692
|
|
|
59510
59693
|
// ts_web/elements/00group-overlay/dees-popover/dees-popover.ts
|
|
59511
|
-
var _maxHeight_dec, _width_dec, _dismissOnTab_dec, _showTail_dec, _placement_dec, _label_dec2, _open_dec, _anchor_dec,
|
|
59694
|
+
var _tailOnActions_dec, _actions_dec2, _maxHeight_dec, _width_dec, _dismissOnTab_dec, _showTail_dec, _placement_dec, _label_dec2, _open_dec, _anchor_dec, _a8, _DeesPopover_decorators, _init8, _anchor, _open, _label2, _placement, _showTail, _dismissOnTab, _width, _maxHeight, _actions2, _tailOnActions;
|
|
59512
59695
|
var nextPopoverId = 0;
|
|
59513
59696
|
_DeesPopover_decorators = [customElement("dees-popover")];
|
|
59514
|
-
var _DeesPopover = class _DeesPopover extends (
|
|
59697
|
+
var _DeesPopover = class _DeesPopover extends (_a8 = DeesElement, _anchor_dec = [n5({ attribute: false })], _open_dec = [n5({ type: Boolean, reflect: true })], _label_dec2 = [n5({ reflect: true })], _placement_dec = [n5({ reflect: true })], _showTail_dec = [n5({ type: Boolean, reflect: true })], _dismissOnTab_dec = [n5({ type: Boolean, reflect: true })], _width_dec = [n5({ reflect: true })], _maxHeight_dec = [n5({ reflect: true })], _actions_dec2 = [n5({ attribute: false })], _tailOnActions_dec = [r5()], _a8) {
|
|
59515
59698
|
constructor() {
|
|
59516
59699
|
super(...arguments);
|
|
59517
59700
|
__publicField(this, "t", dcLocalize(this));
|
|
59518
|
-
__privateAdd(this, _anchor, __runInitializers(
|
|
59519
|
-
__privateAdd(this, _open, __runInitializers(
|
|
59520
|
-
__privateAdd(this, _label2, __runInitializers(
|
|
59521
|
-
__privateAdd(this, _placement, __runInitializers(
|
|
59522
|
-
__privateAdd(this, _showTail, __runInitializers(
|
|
59523
|
-
__privateAdd(this, _dismissOnTab, __runInitializers(
|
|
59524
|
-
__privateAdd(this, _width, __runInitializers(
|
|
59525
|
-
__privateAdd(this, _maxHeight, __runInitializers(
|
|
59701
|
+
__privateAdd(this, _anchor, __runInitializers(_init8, 8, this, null)), __runInitializers(_init8, 11, this);
|
|
59702
|
+
__privateAdd(this, _open, __runInitializers(_init8, 12, this, false)), __runInitializers(_init8, 15, this);
|
|
59703
|
+
__privateAdd(this, _label2, __runInitializers(_init8, 16, this, "")), __runInitializers(_init8, 19, this);
|
|
59704
|
+
__privateAdd(this, _placement, __runInitializers(_init8, 20, this, "auto")), __runInitializers(_init8, 23, this);
|
|
59705
|
+
__privateAdd(this, _showTail, __runInitializers(_init8, 24, this, true)), __runInitializers(_init8, 27, this);
|
|
59706
|
+
__privateAdd(this, _dismissOnTab, __runInitializers(_init8, 28, this, true)), __runInitializers(_init8, 31, this);
|
|
59707
|
+
__privateAdd(this, _width, __runInitializers(_init8, 32, this, "min(320px, calc(100vw - 16px))")), __runInitializers(_init8, 35, this);
|
|
59708
|
+
__privateAdd(this, _maxHeight, __runInitializers(_init8, 36, this, "min(60vh, 360px)")), __runInitializers(_init8, 39, this);
|
|
59709
|
+
__privateAdd(this, _actions2, __runInitializers(_init8, 40, this, [])), __runInitializers(_init8, 43, this);
|
|
59526
59710
|
__publicField(this, "openListeners");
|
|
59527
59711
|
__publicField(this, "resizeObserver");
|
|
59528
59712
|
__publicField(this, "positionFrame");
|
|
59529
59713
|
__publicField(this, "anchorAriaSnapshot");
|
|
59530
59714
|
/** The side the bubble opened on, kept while it stays open and still fits there. */
|
|
59531
59715
|
__publicField(this, "placedSide");
|
|
59716
|
+
__privateAdd(this, _tailOnActions, __runInitializers(_init8, 44, this, false)), __runInitializers(_init8, 47, this);
|
|
59532
59717
|
/** Content taller than the bubble scrolls, fading out toward an edge past which more lies. */
|
|
59533
59718
|
__publicField(this, "scrollEdges", new ScrollEdgeShadowController(this, () => this.shadowRoot?.querySelector(".content")));
|
|
59534
59719
|
__publicField(this, "handleDocumentKeydown", /* @__PURE__ */ __name((event) => {
|
|
@@ -59586,8 +59771,8 @@ var _DeesPopover = class _DeesPopover extends (_a7 = DeesElement, _anchor_dec =
|
|
|
59586
59771
|
}
|
|
59587
59772
|
render() {
|
|
59588
59773
|
return b3`
|
|
59589
|
-
<div class="surface"><div class="content ${this.scrollEdges.fadeClasses()}"><slot></slot></div></div>
|
|
59590
|
-
${this.showTail ? b3`<span class="tail" aria-hidden="true"></span>` : ""}
|
|
59774
|
+
<div class="surface"><div class="content ${this.scrollEdges.fadeClasses()}"><slot></slot></div>${this.actions.length ? b3`<dees-actionfooter class="actions" .actions=${this.actions} .context=${this} source="popover-action"></dees-actionfooter>` : ""}</div>
|
|
59775
|
+
${this.showTail ? b3`<span class="tail ${this.tailOnActions ? "onActions" : ""}" aria-hidden="true"></span>` : ""}
|
|
59591
59776
|
<div class="overlayLayer"></div>
|
|
59592
59777
|
`;
|
|
59593
59778
|
}
|
|
@@ -59703,6 +59888,7 @@ var _DeesPopover = class _DeesPopover extends (_a7 = DeesElement, _anchor_dec =
|
|
|
59703
59888
|
return;
|
|
59704
59889
|
}
|
|
59705
59890
|
const popoverRect = this.getBoundingClientRect();
|
|
59891
|
+
const actionsTop = this.shadowRoot?.querySelector(".actions")?.getBoundingClientRect().top;
|
|
59706
59892
|
const placed2 = placeAnchored({
|
|
59707
59893
|
anchor: anchorRect,
|
|
59708
59894
|
width: popoverRect.width,
|
|
@@ -59717,6 +59903,7 @@ var _DeesPopover = class _DeesPopover extends (_a7 = DeesElement, _anchor_dec =
|
|
|
59717
59903
|
this.style.top = `${placed2.top}px`;
|
|
59718
59904
|
const block = placed2.side === "top" || placed2.side === "bottom";
|
|
59719
59905
|
this.style.setProperty(block ? "--dees-popover-tail-left" : "--dees-popover-tail-top", `${placed2.arrow}px`);
|
|
59906
|
+
this.tailOnActions = actionsTop !== void 0 && (placed2.side === "top" || !block && placed2.arrow >= actionsTop - popoverRect.top);
|
|
59720
59907
|
this.setAttribute("actual-placement", placed2.side);
|
|
59721
59908
|
this.style.visibility = "";
|
|
59722
59909
|
}
|
|
@@ -59749,7 +59936,7 @@ var _DeesPopover = class _DeesPopover extends (_a7 = DeesElement, _anchor_dec =
|
|
|
59749
59936
|
this.anchorAriaSnapshot = void 0;
|
|
59750
59937
|
}
|
|
59751
59938
|
};
|
|
59752
|
-
|
|
59939
|
+
_init8 = __decoratorStart(_a8);
|
|
59753
59940
|
_anchor = new WeakMap();
|
|
59754
59941
|
_open = new WeakMap();
|
|
59755
59942
|
_label2 = new WeakMap();
|
|
@@ -59758,15 +59945,19 @@ _showTail = new WeakMap();
|
|
|
59758
59945
|
_dismissOnTab = new WeakMap();
|
|
59759
59946
|
_width = new WeakMap();
|
|
59760
59947
|
_maxHeight = new WeakMap();
|
|
59761
|
-
|
|
59762
|
-
|
|
59763
|
-
__decorateElement(
|
|
59764
|
-
__decorateElement(
|
|
59765
|
-
__decorateElement(
|
|
59766
|
-
__decorateElement(
|
|
59767
|
-
__decorateElement(
|
|
59768
|
-
__decorateElement(
|
|
59769
|
-
|
|
59948
|
+
_actions2 = new WeakMap();
|
|
59949
|
+
_tailOnActions = new WeakMap();
|
|
59950
|
+
__decorateElement(_init8, 4, "anchor", _anchor_dec, _DeesPopover, _anchor);
|
|
59951
|
+
__decorateElement(_init8, 4, "open", _open_dec, _DeesPopover, _open);
|
|
59952
|
+
__decorateElement(_init8, 4, "label", _label_dec2, _DeesPopover, _label2);
|
|
59953
|
+
__decorateElement(_init8, 4, "placement", _placement_dec, _DeesPopover, _placement);
|
|
59954
|
+
__decorateElement(_init8, 4, "showTail", _showTail_dec, _DeesPopover, _showTail);
|
|
59955
|
+
__decorateElement(_init8, 4, "dismissOnTab", _dismissOnTab_dec, _DeesPopover, _dismissOnTab);
|
|
59956
|
+
__decorateElement(_init8, 4, "width", _width_dec, _DeesPopover, _width);
|
|
59957
|
+
__decorateElement(_init8, 4, "maxHeight", _maxHeight_dec, _DeesPopover, _maxHeight);
|
|
59958
|
+
__decorateElement(_init8, 4, "actions", _actions_dec2, _DeesPopover, _actions2);
|
|
59959
|
+
__decorateElement(_init8, 4, "tailOnActions", _tailOnActions_dec, _DeesPopover, _tailOnActions);
|
|
59960
|
+
_DeesPopover = __decorateElement(_init8, 0, "DeesPopover", _DeesPopover_decorators, _DeesPopover);
|
|
59770
59961
|
__name(_DeesPopover, "DeesPopover");
|
|
59771
59962
|
__publicField(_DeesPopover, "styles", [
|
|
59772
59963
|
themeDefaultStyles,
|
|
@@ -59822,6 +60013,12 @@ __publicField(_DeesPopover, "styles", [
|
|
|
59822
60013
|
overscroll-behavior: contain;
|
|
59823
60014
|
}
|
|
59824
60015
|
|
|
60016
|
+
/* The actions line up with a panel's 16px padding. */
|
|
60017
|
+
.actions {
|
|
60018
|
+
flex: none;
|
|
60019
|
+
--dees-actionfooter-inset: var(--dees-spacing-lg);
|
|
60020
|
+
}
|
|
60021
|
+
|
|
59825
60022
|
.tail {
|
|
59826
60023
|
position: absolute;
|
|
59827
60024
|
left: var(--dees-popover-tail-left, 50%);
|
|
@@ -59833,6 +60030,10 @@ __publicField(_DeesPopover, "styles", [
|
|
|
59833
60030
|
pointer-events: none;
|
|
59834
60031
|
}
|
|
59835
60032
|
|
|
60033
|
+
.tail.onActions {
|
|
60034
|
+
background: var(--dees-color-modal-sidebar);
|
|
60035
|
+
}
|
|
60036
|
+
|
|
59836
60037
|
:host([actual-placement='top']) .tail {
|
|
59837
60038
|
bottom: -5px;
|
|
59838
60039
|
border-width: 0 var(--dees-line-width-hairline) var(--dees-line-width-hairline) 0;
|
|
@@ -59882,7 +60083,7 @@ __publicField(_DeesPopover, "styles", [
|
|
|
59882
60083
|
|
|
59883
60084
|
`
|
|
59884
60085
|
]);
|
|
59885
|
-
__runInitializers(
|
|
60086
|
+
__runInitializers(_init8, 1, _DeesPopover);
|
|
59886
60087
|
var DeesPopover = _DeesPopover;
|
|
59887
60088
|
|
|
59888
60089
|
// ts_web/elements/00group-overlay/dees-speechbubble/dees-speechbubble.demo.ts
|
|
@@ -59900,7 +60101,7 @@ var placed = /* @__PURE__ */ __name((label, placement) => b3`
|
|
|
59900
60101
|
<dees-button type="outline" text=${label} @clicked=${toggle}></dees-button>
|
|
59901
60102
|
<dees-popover .placement=${placement} label=${label} width="min(260px, calc(100vw - 16px))">${bubbleText}</dees-popover>
|
|
59902
60103
|
</span>`, "placed");
|
|
59903
|
-
var
|
|
60104
|
+
var demoFunc9 = /* @__PURE__ */ __name(() => demoPage("Speech bubble", "The catalog's one speech bubble: a status button's panel, a table's or tile's footer info and a label's information are all a dees-popover, with its tail on what it belongs to. It opens where it fits unless a side is named, stays inside the window, and places itself again as the page scrolls.", b3`
|
|
59904
60105
|
${demoSection("Opens where it fits", "Without a named side the bubble opens below or above its anchor, wherever it fits with more room \u2014 below a page header, above a footer \u2014 and beside it only when neither fits. Scroll the page so a button sits near the bottom of the window, then press it.", b3`
|
|
59905
60106
|
<div class="dees-demo-row">${placed("Where it fits", "auto")}</div>
|
|
59906
60107
|
${demoCode(`popover.anchor = button;
|
|
@@ -59926,9 +60127,9 @@ popover.open = true; // placement 'auto': below or above, wherever it fits`)}
|
|
|
59926
60127
|
`), "demoFunc");
|
|
59927
60128
|
|
|
59928
60129
|
// ts_web/elements/00group-overlay/dees-speechbubble/dees-speechbubble.ts
|
|
59929
|
-
var _richOpen_dec, _status_dec2, _wave_dec, _text_dec2, _reffedElement_dec, _describe_dec, _placement_dec2,
|
|
60130
|
+
var _richOpen_dec, _status_dec2, _wave_dec, _text_dec2, _reffedElement_dec, _describe_dec, _placement_dec2, _disabled_dec4, _hint_dec, _a9, _DeesSpeechbubble_decorators, _init9, _hint, _disabled4, _placement2, _describe, _reffedElement, _text2, _wave, _status2, _richOpen;
|
|
59930
60131
|
_DeesSpeechbubble_decorators = [customElement("dees-speechbubble")];
|
|
59931
|
-
var _DeesSpeechbubble = class _DeesSpeechbubble extends (
|
|
60132
|
+
var _DeesSpeechbubble = class _DeesSpeechbubble extends (_a9 = DeesElement, _hint_dec = [n5({ type: Boolean, reflect: true })], _disabled_dec4 = [n5({ type: Boolean, reflect: true })], _placement_dec2 = [n5({ type: String, reflect: true })], _describe_dec = [n5({ type: Boolean, reflect: true })], _reffedElement_dec = [n5({
|
|
59932
60133
|
type: Object
|
|
59933
60134
|
})], _text_dec2 = [n5({
|
|
59934
60135
|
type: String,
|
|
@@ -59939,20 +60140,20 @@ var _DeesSpeechbubble = class _DeesSpeechbubble extends (_a8 = DeesElement, _hin
|
|
|
59939
60140
|
})], _status_dec2 = [n5({
|
|
59940
60141
|
type: String,
|
|
59941
60142
|
reflect: true
|
|
59942
|
-
})], _richOpen_dec = [r5()],
|
|
60143
|
+
})], _richOpen_dec = [r5()], _a9) {
|
|
59943
60144
|
constructor() {
|
|
59944
60145
|
super();
|
|
59945
60146
|
__publicField(this, "hintTimer");
|
|
59946
60147
|
__publicField(this, "hintListeners");
|
|
59947
|
-
__privateAdd(this, _hint, __runInitializers(
|
|
59948
|
-
__privateAdd(this,
|
|
59949
|
-
__privateAdd(this, _placement2, __runInitializers(
|
|
59950
|
-
__privateAdd(this, _describe, __runInitializers(
|
|
59951
|
-
__privateAdd(this, _reffedElement, __runInitializers(
|
|
59952
|
-
__privateAdd(this, _text2, __runInitializers(
|
|
59953
|
-
__privateAdd(this, _wave, __runInitializers(
|
|
59954
|
-
__privateAdd(this, _status2, __runInitializers(
|
|
59955
|
-
__privateAdd(this, _richOpen, __runInitializers(
|
|
60148
|
+
__privateAdd(this, _hint, __runInitializers(_init9, 8, this, false)), __runInitializers(_init9, 11, this);
|
|
60149
|
+
__privateAdd(this, _disabled4, __runInitializers(_init9, 12, this, false)), __runInitializers(_init9, 15, this);
|
|
60150
|
+
__privateAdd(this, _placement2, __runInitializers(_init9, 16, this, "end")), __runInitializers(_init9, 19, this);
|
|
60151
|
+
__privateAdd(this, _describe, __runInitializers(_init9, 20, this, true)), __runInitializers(_init9, 23, this);
|
|
60152
|
+
__privateAdd(this, _reffedElement, __runInitializers(_init9, 24, this)), __runInitializers(_init9, 27, this);
|
|
60153
|
+
__privateAdd(this, _text2, __runInitializers(_init9, 28, this)), __runInitializers(_init9, 31, this);
|
|
60154
|
+
__privateAdd(this, _wave, __runInitializers(_init9, 32, this, false)), __runInitializers(_init9, 35, this);
|
|
60155
|
+
__privateAdd(this, _status2, __runInitializers(_init9, 36, this, "normal")), __runInitializers(_init9, 39, this);
|
|
60156
|
+
__privateAdd(this, _richOpen, __runInitializers(_init9, 40, this, false)), __runInitializers(_init9, 43, this);
|
|
59956
60157
|
/** Opened by `createAndShow`: it shows until `destroy()`, whatever the pointer and the focus do. */
|
|
59957
60158
|
__publicField(this, "fromCode", false);
|
|
59958
60159
|
/** The bubble closed itself: Escape, a press elsewhere, or its control left the screen. */
|
|
@@ -60148,9 +60349,9 @@ var _DeesSpeechbubble = class _DeesSpeechbubble extends (_a8 = DeesElement, _hin
|
|
|
60148
60349
|
this.remove();
|
|
60149
60350
|
}
|
|
60150
60351
|
};
|
|
60151
|
-
|
|
60352
|
+
_init9 = __decoratorStart(_a9);
|
|
60152
60353
|
_hint = new WeakMap();
|
|
60153
|
-
|
|
60354
|
+
_disabled4 = new WeakMap();
|
|
60154
60355
|
_placement2 = new WeakMap();
|
|
60155
60356
|
_describe = new WeakMap();
|
|
60156
60357
|
_reffedElement = new WeakMap();
|
|
@@ -60158,18 +60359,18 @@ _text2 = new WeakMap();
|
|
|
60158
60359
|
_wave = new WeakMap();
|
|
60159
60360
|
_status2 = new WeakMap();
|
|
60160
60361
|
_richOpen = new WeakMap();
|
|
60161
|
-
__decorateElement(
|
|
60162
|
-
__decorateElement(
|
|
60163
|
-
__decorateElement(
|
|
60164
|
-
__decorateElement(
|
|
60165
|
-
__decorateElement(
|
|
60166
|
-
__decorateElement(
|
|
60167
|
-
__decorateElement(
|
|
60168
|
-
__decorateElement(
|
|
60169
|
-
__decorateElement(
|
|
60170
|
-
_DeesSpeechbubble = __decorateElement(
|
|
60362
|
+
__decorateElement(_init9, 4, "hint", _hint_dec, _DeesSpeechbubble, _hint);
|
|
60363
|
+
__decorateElement(_init9, 4, "disabled", _disabled_dec4, _DeesSpeechbubble, _disabled4);
|
|
60364
|
+
__decorateElement(_init9, 4, "placement", _placement_dec2, _DeesSpeechbubble, _placement2);
|
|
60365
|
+
__decorateElement(_init9, 4, "describe", _describe_dec, _DeesSpeechbubble, _describe);
|
|
60366
|
+
__decorateElement(_init9, 4, "reffedElement", _reffedElement_dec, _DeesSpeechbubble, _reffedElement);
|
|
60367
|
+
__decorateElement(_init9, 4, "text", _text_dec2, _DeesSpeechbubble, _text2);
|
|
60368
|
+
__decorateElement(_init9, 4, "wave", _wave_dec, _DeesSpeechbubble, _wave);
|
|
60369
|
+
__decorateElement(_init9, 4, "status", _status_dec2, _DeesSpeechbubble, _status2);
|
|
60370
|
+
__decorateElement(_init9, 4, "richOpen", _richOpen_dec, _DeesSpeechbubble, _richOpen);
|
|
60371
|
+
_DeesSpeechbubble = __decorateElement(_init9, 0, "DeesSpeechbubble", _DeesSpeechbubble_decorators, _DeesSpeechbubble);
|
|
60171
60372
|
__name(_DeesSpeechbubble, "DeesSpeechbubble");
|
|
60172
|
-
__publicField(_DeesSpeechbubble, "demo",
|
|
60373
|
+
__publicField(_DeesSpeechbubble, "demo", demoFunc9);
|
|
60173
60374
|
__publicField(_DeesSpeechbubble, "demoGroups", ["Overlay"]);
|
|
60174
60375
|
__publicField(_DeesSpeechbubble, "hintId", 0);
|
|
60175
60376
|
__publicField(_DeesSpeechbubble, "styles", [
|
|
@@ -60273,14 +60474,14 @@ __publicField(_DeesSpeechbubble, "styles", [
|
|
|
60273
60474
|
}
|
|
60274
60475
|
`
|
|
60275
60476
|
]);
|
|
60276
|
-
__runInitializers(
|
|
60477
|
+
__runInitializers(_init9, 1, _DeesSpeechbubble);
|
|
60277
60478
|
var DeesSpeechbubble = _DeesSpeechbubble;
|
|
60278
60479
|
|
|
60279
60480
|
// ts_web/elements/00group-layout/dees-label/dees-label.ts
|
|
60280
|
-
var _required_dec, _infoText_dec, _label_dec3,
|
|
60481
|
+
var _required_dec, _infoText_dec, _label_dec3, _a10, _DeesLabel_decorators, _init10, _label3, _infoText, _required;
|
|
60281
60482
|
var infoGlyphPx = 14;
|
|
60282
60483
|
_DeesLabel_decorators = [customElement("dees-label")];
|
|
60283
|
-
var _DeesLabel = class _DeesLabel extends (
|
|
60484
|
+
var _DeesLabel = class _DeesLabel extends (_a10 = DeesElement, _label_dec3 = [n5({
|
|
60284
60485
|
type: String,
|
|
60285
60486
|
reflect: true
|
|
60286
60487
|
})], _infoText_dec = [n5({
|
|
@@ -60289,12 +60490,12 @@ var _DeesLabel = class _DeesLabel extends (_a9 = DeesElement, _label_dec3 = [n5(
|
|
|
60289
60490
|
})], _required_dec = [n5({
|
|
60290
60491
|
type: Boolean,
|
|
60291
60492
|
reflect: true
|
|
60292
|
-
})],
|
|
60493
|
+
})], _a10) {
|
|
60293
60494
|
constructor() {
|
|
60294
60495
|
super(...arguments);
|
|
60295
|
-
__privateAdd(this, _label3, __runInitializers(
|
|
60296
|
-
__privateAdd(this, _infoText, __runInitializers(
|
|
60297
|
-
__privateAdd(this, _required, __runInitializers(
|
|
60496
|
+
__privateAdd(this, _label3, __runInitializers(_init10, 8, this, "")), __runInitializers(_init10, 11, this);
|
|
60497
|
+
__privateAdd(this, _infoText, __runInitializers(_init10, 12, this)), __runInitializers(_init10, 15, this);
|
|
60498
|
+
__privateAdd(this, _required, __runInitializers(_init10, 16, this, false)), __runInitializers(_init10, 19, this);
|
|
60298
60499
|
__publicField(this, "t", dcLocalize(this));
|
|
60299
60500
|
}
|
|
60300
60501
|
render() {
|
|
@@ -60314,16 +60515,16 @@ var _DeesLabel = class _DeesLabel extends (_a9 = DeesElement, _label_dec3 = [n5(
|
|
|
60314
60515
|
`;
|
|
60315
60516
|
}
|
|
60316
60517
|
};
|
|
60317
|
-
|
|
60518
|
+
_init10 = __decoratorStart(_a10);
|
|
60318
60519
|
_label3 = new WeakMap();
|
|
60319
60520
|
_infoText = new WeakMap();
|
|
60320
60521
|
_required = new WeakMap();
|
|
60321
|
-
__decorateElement(
|
|
60322
|
-
__decorateElement(
|
|
60323
|
-
__decorateElement(
|
|
60324
|
-
_DeesLabel = __decorateElement(
|
|
60522
|
+
__decorateElement(_init10, 4, "label", _label_dec3, _DeesLabel, _label3);
|
|
60523
|
+
__decorateElement(_init10, 4, "infoText", _infoText_dec, _DeesLabel, _infoText);
|
|
60524
|
+
__decorateElement(_init10, 4, "required", _required_dec, _DeesLabel, _required);
|
|
60525
|
+
_DeesLabel = __decorateElement(_init10, 0, "DeesLabel", _DeesLabel_decorators, _DeesLabel);
|
|
60325
60526
|
__name(_DeesLabel, "DeesLabel");
|
|
60326
|
-
__publicField(_DeesLabel, "demo",
|
|
60527
|
+
__publicField(_DeesLabel, "demo", demoFunc8);
|
|
60327
60528
|
__publicField(_DeesLabel, "demoGroups", ["Layout", "Input"]);
|
|
60328
60529
|
__publicField(_DeesLabel, "styles", [
|
|
60329
60530
|
themeDefaultStyles,
|
|
@@ -60391,22 +60592,22 @@ __publicField(_DeesLabel, "styles", [
|
|
|
60391
60592
|
}
|
|
60392
60593
|
`
|
|
60393
60594
|
]);
|
|
60394
|
-
__runInitializers(
|
|
60595
|
+
__runInitializers(_init10, 1, _DeesLabel);
|
|
60395
60596
|
var DeesLabel = _DeesLabel;
|
|
60396
60597
|
|
|
60397
60598
|
// ts_web/elements/00group-input/dees-input-base/dees-input-base.ts
|
|
60398
|
-
var _description_dec, _infoText_dec2,
|
|
60399
|
-
var _DeesInputBase = class _DeesInputBase extends (
|
|
60599
|
+
var _description_dec, _infoText_dec2, _disabled_dec5, _required_dec2, _label_dec4, _key_dec, _labelPosition_dec, _layoutMode_dec, _a11, _init11, _layoutMode, _labelPosition, _key, _label4, _required2, _disabled5, _infoText2, _description;
|
|
60600
|
+
var _DeesInputBase = class _DeesInputBase extends (_a11 = DeesElement, _layoutMode_dec = [n5({ type: String, reflect: true })], _labelPosition_dec = [n5({ type: String, reflect: true })], _key_dec = [n5({ type: String, reflect: true })], _label_dec4 = [n5({ type: String, reflect: true })], _required_dec2 = [n5({ type: Boolean, reflect: true })], _disabled_dec5 = [n5({ type: Boolean, reflect: true })], _infoText_dec2 = [n5({ type: String, reflect: true })], _description_dec = [n5({ type: String, reflect: true })], _a11) {
|
|
60400
60601
|
constructor() {
|
|
60401
60602
|
super();
|
|
60402
|
-
__privateAdd(this, _layoutMode, __runInitializers(
|
|
60403
|
-
__privateAdd(this, _labelPosition, __runInitializers(
|
|
60404
|
-
__privateAdd(this, _key, __runInitializers(
|
|
60405
|
-
__privateAdd(this, _label4, __runInitializers(
|
|
60406
|
-
__privateAdd(this, _required2, __runInitializers(
|
|
60407
|
-
__privateAdd(this,
|
|
60408
|
-
__privateAdd(this, _infoText2, __runInitializers(
|
|
60409
|
-
__privateAdd(this, _description, __runInitializers(
|
|
60603
|
+
__privateAdd(this, _layoutMode, __runInitializers(_init11, 8, this, "auto")), __runInitializers(_init11, 11, this);
|
|
60604
|
+
__privateAdd(this, _labelPosition, __runInitializers(_init11, 12, this, "top")), __runInitializers(_init11, 15, this);
|
|
60605
|
+
__privateAdd(this, _key, __runInitializers(_init11, 16, this)), __runInitializers(_init11, 19, this);
|
|
60606
|
+
__privateAdd(this, _label4, __runInitializers(_init11, 20, this)), __runInitializers(_init11, 23, this);
|
|
60607
|
+
__privateAdd(this, _required2, __runInitializers(_init11, 24, this, false)), __runInitializers(_init11, 27, this);
|
|
60608
|
+
__privateAdd(this, _disabled5, __runInitializers(_init11, 28, this, false)), __runInitializers(_init11, 31, this);
|
|
60609
|
+
__privateAdd(this, _infoText2, __runInitializers(_init11, 32, this)), __runInitializers(_init11, 35, this);
|
|
60610
|
+
__privateAdd(this, _description, __runInitializers(_init11, 36, this)), __runInitializers(_init11, 39, this);
|
|
60410
60611
|
/**
|
|
60411
60612
|
* Subject for value changes that all inputs should implement
|
|
60412
60613
|
*/
|
|
@@ -60624,24 +60825,24 @@ var _DeesInputBase = class _DeesInputBase extends (_a10 = DeesElement, _layoutMo
|
|
|
60624
60825
|
return b3`<dees-label .label=${this.label} .infoText=${this.infoText} .required=${this.required}></dees-label>`;
|
|
60625
60826
|
}
|
|
60626
60827
|
};
|
|
60627
|
-
|
|
60828
|
+
_init11 = __decoratorStart(_a11);
|
|
60628
60829
|
_layoutMode = new WeakMap();
|
|
60629
60830
|
_labelPosition = new WeakMap();
|
|
60630
60831
|
_key = new WeakMap();
|
|
60631
60832
|
_label4 = new WeakMap();
|
|
60632
60833
|
_required2 = new WeakMap();
|
|
60633
|
-
|
|
60834
|
+
_disabled5 = new WeakMap();
|
|
60634
60835
|
_infoText2 = new WeakMap();
|
|
60635
60836
|
_description = new WeakMap();
|
|
60636
|
-
__decorateElement(
|
|
60637
|
-
__decorateElement(
|
|
60638
|
-
__decorateElement(
|
|
60639
|
-
__decorateElement(
|
|
60640
|
-
__decorateElement(
|
|
60641
|
-
__decorateElement(
|
|
60642
|
-
__decorateElement(
|
|
60643
|
-
__decorateElement(
|
|
60644
|
-
__decoratorMetadata(
|
|
60837
|
+
__decorateElement(_init11, 4, "layoutMode", _layoutMode_dec, _DeesInputBase, _layoutMode);
|
|
60838
|
+
__decorateElement(_init11, 4, "labelPosition", _labelPosition_dec, _DeesInputBase, _labelPosition);
|
|
60839
|
+
__decorateElement(_init11, 4, "key", _key_dec, _DeesInputBase, _key);
|
|
60840
|
+
__decorateElement(_init11, 4, "label", _label_dec4, _DeesInputBase, _label4);
|
|
60841
|
+
__decorateElement(_init11, 4, "required", _required_dec2, _DeesInputBase, _required2);
|
|
60842
|
+
__decorateElement(_init11, 4, "disabled", _disabled_dec5, _DeesInputBase, _disabled5);
|
|
60843
|
+
__decorateElement(_init11, 4, "infoText", _infoText_dec2, _DeesInputBase, _infoText2);
|
|
60844
|
+
__decorateElement(_init11, 4, "description", _description_dec, _DeesInputBase, _description);
|
|
60845
|
+
__decoratorMetadata(_init11, _DeesInputBase);
|
|
60645
60846
|
__name(_DeesInputBase, "DeesInputBase");
|
|
60646
60847
|
// Keep declarations tied to the superclass's DOM contract instead of emitting
|
|
60647
60848
|
// the build compiler's inferred (and potentially newer) ShadowRootInit shape.
|
|
@@ -60704,7 +60905,7 @@ var textInputContextMenuItems = /* @__PURE__ */ __name(({ input, t: t9, disabled
|
|
|
60704
60905
|
}, "textInputContextMenuItems");
|
|
60705
60906
|
|
|
60706
60907
|
// ts_web/elements/00group-input/dees-input-text/dees-input-text.demo.ts
|
|
60707
|
-
var
|
|
60908
|
+
var demoFunc10 = /* @__PURE__ */ __name(() => demoPage("Text input", "A compact editor field and a quiet grouped value, with accessible labels, password controls, and validation feedback.", b3`
|
|
60708
60909
|
${demoSection("Everyday entry", "Labels and descriptions explain what belongs in each field.", b3`
|
|
60709
60910
|
<div class="dees-demo-grid"><dees-input-text label="Workspace name" value="Design studio" description="A recognizable name for your team."></dees-input-text><dees-input-text label="Contact email" value="hello@example.com" autocomplete="email" required></dees-input-text></div>`)}
|
|
60710
60911
|
${demoSection("Layouts", "Top labels suit editing. Left labels fit settings rows. Horizontal forms arrange fields together.", b3`
|
|
@@ -60721,7 +60922,7 @@ var demoFunc9 = /* @__PURE__ */ __name(() => demoPage("Text input", "A compact e
|
|
|
60721
60922
|
`), "demoFunc");
|
|
60722
60923
|
|
|
60723
60924
|
// ts_web/elements/00group-overlay/dees-contextmenu/dees-contextmenu.demo.ts
|
|
60724
|
-
var
|
|
60925
|
+
var demoFunc11 = /* @__PURE__ */ __name(() => b3`
|
|
60725
60926
|
<style>
|
|
60726
60927
|
.withMargin {
|
|
60727
60928
|
display: block;
|
|
@@ -60954,20 +61155,20 @@ var demoFunc10 = /* @__PURE__ */ __name(() => b3`
|
|
|
60954
61155
|
`, "demoFunc");
|
|
60955
61156
|
|
|
60956
61157
|
// ts_web/elements/00group-overlay/dees-windowlayer/dees-windowlayer.ts
|
|
60957
|
-
var _visible_dec, _contentZIndex_dec, _backdropZIndex_dec, _options_dec,
|
|
61158
|
+
var _visible_dec, _contentZIndex_dec, _backdropZIndex_dec, _options_dec, _a12, _DeesWindowLayer_decorators, _init12, _options, _backdropZIndex, _contentZIndex, _visible, _protectedElements, _protectedSelector;
|
|
60958
61159
|
_DeesWindowLayer_decorators = [customElement("dees-windowlayer")];
|
|
60959
|
-
var _DeesWindowLayer = class _DeesWindowLayer extends (
|
|
61160
|
+
var _DeesWindowLayer = class _DeesWindowLayer extends (_a12 = DeesElement, _options_dec = [r5()], _backdropZIndex_dec = [r5()], _contentZIndex_dec = [r5()], _visible_dec = [n5({
|
|
60960
61161
|
type: Boolean,
|
|
60961
61162
|
reflect: true
|
|
60962
|
-
})],
|
|
61163
|
+
})], _a12) {
|
|
60963
61164
|
constructor() {
|
|
60964
61165
|
super();
|
|
60965
|
-
__privateAdd(this, _options, __runInitializers(
|
|
61166
|
+
__privateAdd(this, _options, __runInitializers(_init12, 8, this, {
|
|
60966
61167
|
blur: false
|
|
60967
|
-
})), __runInitializers(
|
|
60968
|
-
__privateAdd(this, _backdropZIndex, __runInitializers(
|
|
60969
|
-
__privateAdd(this, _contentZIndex, __runInitializers(
|
|
60970
|
-
__privateAdd(this, _visible, __runInitializers(
|
|
61168
|
+
})), __runInitializers(_init12, 11, this);
|
|
61169
|
+
__privateAdd(this, _backdropZIndex, __runInitializers(_init12, 12, this, 1e3)), __runInitializers(_init12, 15, this);
|
|
61170
|
+
__privateAdd(this, _contentZIndex, __runInitializers(_init12, 16, this, 1001)), __runInitializers(_init12, 19, this);
|
|
61171
|
+
__privateAdd(this, _visible, __runInitializers(_init12, 20, this, false)), __runInitializers(_init12, 23, this);
|
|
60971
61172
|
/** Elements whose presses must NOT dismiss the layer (e.g. the menu/dropdown
|
|
60972
61173
|
* content and its trigger), used when `dismissOnOutsidePress` is set. */
|
|
60973
61174
|
__privateAdd(this, _protectedElements, []);
|
|
@@ -61148,18 +61349,18 @@ var _DeesWindowLayer = class _DeesWindowLayer extends (_a11 = DeesElement, _opti
|
|
|
61148
61349
|
this.remove();
|
|
61149
61350
|
}
|
|
61150
61351
|
};
|
|
61151
|
-
|
|
61352
|
+
_init12 = __decoratorStart(_a12);
|
|
61152
61353
|
_options = new WeakMap();
|
|
61153
61354
|
_backdropZIndex = new WeakMap();
|
|
61154
61355
|
_contentZIndex = new WeakMap();
|
|
61155
61356
|
_visible = new WeakMap();
|
|
61156
61357
|
_protectedElements = new WeakMap();
|
|
61157
61358
|
_protectedSelector = new WeakMap();
|
|
61158
|
-
__decorateElement(
|
|
61159
|
-
__decorateElement(
|
|
61160
|
-
__decorateElement(
|
|
61161
|
-
__decorateElement(
|
|
61162
|
-
_DeesWindowLayer = __decorateElement(
|
|
61359
|
+
__decorateElement(_init12, 4, "options", _options_dec, _DeesWindowLayer, _options);
|
|
61360
|
+
__decorateElement(_init12, 4, "backdropZIndex", _backdropZIndex_dec, _DeesWindowLayer, _backdropZIndex);
|
|
61361
|
+
__decorateElement(_init12, 4, "contentZIndex", _contentZIndex_dec, _DeesWindowLayer, _contentZIndex);
|
|
61362
|
+
__decorateElement(_init12, 4, "visible", _visible_dec, _DeesWindowLayer, _visible);
|
|
61363
|
+
_DeesWindowLayer = __decorateElement(_init12, 0, "DeesWindowLayer", _DeesWindowLayer_decorators, _DeesWindowLayer);
|
|
61163
61364
|
__name(_DeesWindowLayer, "DeesWindowLayer");
|
|
61164
61365
|
// STATIC
|
|
61165
61366
|
__publicField(_DeesWindowLayer, "demo", /* @__PURE__ */ __name(() => b3`<dees-windowlayer></dees-windowlayer>`, "demo"));
|
|
@@ -61167,19 +61368,19 @@ __publicField(_DeesWindowLayer, "demoGroups", ["Overlay"]);
|
|
|
61167
61368
|
/* Rendered styles are dynamic (z-index, blur options); the static styles
|
|
61168
61369
|
only provide the theme tokens the rendered <style> consumes. */
|
|
61169
61370
|
__publicField(_DeesWindowLayer, "styles", [themeDefaultStyles, cssManager.defaultStyles]);
|
|
61170
|
-
__runInitializers(
|
|
61371
|
+
__runInitializers(_init12, 1, _DeesWindowLayer);
|
|
61171
61372
|
var DeesWindowLayer = _DeesWindowLayer;
|
|
61172
61373
|
|
|
61173
61374
|
// ts_web/elements/00group-overlay/dees-contextmenu/dees-contextmenu.ts
|
|
61174
|
-
var _menuItems_dec,
|
|
61375
|
+
var _menuItems_dec, _a13, _DeesContextmenu_decorators, _init13, _menuItems;
|
|
61175
61376
|
_DeesContextmenu_decorators = [customElement("dees-contextmenu")];
|
|
61176
|
-
var _DeesContextmenu = class _DeesContextmenu extends (
|
|
61377
|
+
var _DeesContextmenu = class _DeesContextmenu extends (_a13 = DeesElement, _menuItems_dec = [n5({
|
|
61177
61378
|
type: Array
|
|
61178
|
-
})],
|
|
61379
|
+
})], _a13) {
|
|
61179
61380
|
constructor() {
|
|
61180
61381
|
super(...arguments);
|
|
61181
61382
|
__publicField(this, "t", dcLocalize(this));
|
|
61182
|
-
__privateAdd(this, _menuItems, __runInitializers(
|
|
61383
|
+
__privateAdd(this, _menuItems, __runInitializers(_init13, 8, this, [])), __runInitializers(_init13, 11, this);
|
|
61183
61384
|
__publicField(this, "windowLayer");
|
|
61184
61385
|
__publicField(this, "submenu", null);
|
|
61185
61386
|
__publicField(this, "submenuTimeout", null);
|
|
@@ -61554,13 +61755,13 @@ var _DeesContextmenu = class _DeesContextmenu extends (_a12 = DeesElement, _menu
|
|
|
61554
61755
|
await rootMenu.destroy();
|
|
61555
61756
|
}
|
|
61556
61757
|
};
|
|
61557
|
-
|
|
61758
|
+
_init13 = __decoratorStart(_a13);
|
|
61558
61759
|
_menuItems = new WeakMap();
|
|
61559
|
-
__decorateElement(
|
|
61560
|
-
_DeesContextmenu = __decorateElement(
|
|
61760
|
+
__decorateElement(_init13, 4, "menuItems", _menuItems_dec, _DeesContextmenu, _menuItems);
|
|
61761
|
+
_DeesContextmenu = __decorateElement(_init13, 0, "DeesContextmenu", _DeesContextmenu_decorators, _DeesContextmenu);
|
|
61561
61762
|
__name(_DeesContextmenu, "DeesContextmenu");
|
|
61562
61763
|
// DEMO
|
|
61563
|
-
__publicField(_DeesContextmenu, "demo",
|
|
61764
|
+
__publicField(_DeesContextmenu, "demo", demoFunc11);
|
|
61564
61765
|
__publicField(_DeesContextmenu, "demoGroups", ["Overlay"]);
|
|
61565
61766
|
// STATIC
|
|
61566
61767
|
// This will store all the accumulated menu items
|
|
@@ -61717,12 +61918,12 @@ __publicField(_DeesContextmenu, "styles", [
|
|
|
61717
61918
|
}
|
|
61718
61919
|
`
|
|
61719
61920
|
]);
|
|
61720
|
-
__runInitializers(
|
|
61921
|
+
__runInitializers(_init13, 1, _DeesContextmenu);
|
|
61721
61922
|
var DeesContextmenu = _DeesContextmenu;
|
|
61722
61923
|
DeesContextmenu.initializeGlobalListener();
|
|
61723
61924
|
|
|
61724
61925
|
// ts_web/elements/00group-input/dees-input-text/dees-input-text.ts
|
|
61725
|
-
var _maxLength_dec, _placeholder_dec, _autocomplete_dec, _validConfirmed_dec, _frameless_dec, _validationFunction_dec, _validationText_dec, _validationState_dec, _showPasswordBool_dec, _isPasswordBool_dec, _value_dec, _type_dec3,
|
|
61926
|
+
var _maxLength_dec, _placeholder_dec, _autocomplete_dec, _validConfirmed_dec, _frameless_dec, _validationFunction_dec, _validationText_dec, _validationState_dec, _showPasswordBool_dec, _isPasswordBool_dec, _value_dec, _type_dec3, _a14, _DeesInputText_decorators, _init14, _type3, _value, _isPasswordBool, _showPasswordBool, _validationState, _validationText, _validationFunction, _frameless, _validConfirmed, _autocomplete, _placeholder, _maxLength;
|
|
61726
61927
|
var defaultInputModes = {
|
|
61727
61928
|
text: "text",
|
|
61728
61929
|
number: "decimal",
|
|
@@ -61733,7 +61934,7 @@ var defaultInputModes = {
|
|
|
61733
61934
|
password: "text"
|
|
61734
61935
|
};
|
|
61735
61936
|
_DeesInputText_decorators = [customElement("dees-input-text")];
|
|
61736
|
-
var _DeesInputText = class _DeesInputText extends (
|
|
61937
|
+
var _DeesInputText = class _DeesInputText extends (_a14 = DeesInputBase, _type_dec3 = [n5({
|
|
61737
61938
|
type: String,
|
|
61738
61939
|
reflect: true
|
|
61739
61940
|
})], _value_dec = [n5({
|
|
@@ -61753,22 +61954,22 @@ var _DeesInputText = class _DeesInputText extends (_a13 = DeesInputBase, _type_d
|
|
|
61753
61954
|
})], _validationFunction_dec = [n5({ attribute: false })], _frameless_dec = [n5({
|
|
61754
61955
|
type: Boolean,
|
|
61755
61956
|
reflect: true
|
|
61756
|
-
})], _validConfirmed_dec = [n5({ attribute: false })], _autocomplete_dec = [n5({ type: String, reflect: true })], _placeholder_dec = [n5({ type: String, reflect: true })], _maxLength_dec = [n5({ type: Number, reflect: true })],
|
|
61957
|
+
})], _validConfirmed_dec = [n5({ attribute: false })], _autocomplete_dec = [n5({ type: String, reflect: true })], _placeholder_dec = [n5({ type: String, reflect: true })], _maxLength_dec = [n5({ type: Number, reflect: true })], _a14) {
|
|
61757
61958
|
constructor() {
|
|
61758
61959
|
super(...arguments);
|
|
61759
61960
|
__publicField(this, "t", dcLocalize(this));
|
|
61760
|
-
__privateAdd(this, _type3, __runInitializers(
|
|
61761
|
-
__privateAdd(this, _value, __runInitializers(
|
|
61762
|
-
__privateAdd(this, _isPasswordBool, __runInitializers(
|
|
61763
|
-
__privateAdd(this, _showPasswordBool, __runInitializers(
|
|
61764
|
-
__privateAdd(this, _validationState, __runInitializers(
|
|
61765
|
-
__privateAdd(this, _validationText, __runInitializers(
|
|
61766
|
-
__privateAdd(this, _validationFunction, __runInitializers(
|
|
61767
|
-
__privateAdd(this, _frameless, __runInitializers(
|
|
61768
|
-
__privateAdd(this, _validConfirmed, __runInitializers(
|
|
61769
|
-
__privateAdd(this, _autocomplete, __runInitializers(
|
|
61770
|
-
__privateAdd(this, _placeholder, __runInitializers(
|
|
61771
|
-
__privateAdd(this, _maxLength, __runInitializers(
|
|
61961
|
+
__privateAdd(this, _type3, __runInitializers(_init14, 8, this, "text")), __runInitializers(_init14, 11, this);
|
|
61962
|
+
__privateAdd(this, _value, __runInitializers(_init14, 12, this, "")), __runInitializers(_init14, 15, this);
|
|
61963
|
+
__privateAdd(this, _isPasswordBool, __runInitializers(_init14, 16, this, false)), __runInitializers(_init14, 19, this);
|
|
61964
|
+
__privateAdd(this, _showPasswordBool, __runInitializers(_init14, 20, this, false)), __runInitializers(_init14, 23, this);
|
|
61965
|
+
__privateAdd(this, _validationState, __runInitializers(_init14, 24, this)), __runInitializers(_init14, 27, this);
|
|
61966
|
+
__privateAdd(this, _validationText, __runInitializers(_init14, 28, this, "")), __runInitializers(_init14, 31, this);
|
|
61967
|
+
__privateAdd(this, _validationFunction, __runInitializers(_init14, 32, this)), __runInitializers(_init14, 35, this);
|
|
61968
|
+
__privateAdd(this, _frameless, __runInitializers(_init14, 36, this, false)), __runInitializers(_init14, 39, this);
|
|
61969
|
+
__privateAdd(this, _validConfirmed, __runInitializers(_init14, 40, this, false)), __runInitializers(_init14, 43, this);
|
|
61970
|
+
__privateAdd(this, _autocomplete, __runInitializers(_init14, 44, this, "")), __runInitializers(_init14, 47, this);
|
|
61971
|
+
__privateAdd(this, _placeholder, __runInitializers(_init14, 48, this, "")), __runInitializers(_init14, 51, this);
|
|
61972
|
+
__privateAdd(this, _maxLength, __runInitializers(_init14, 52, this, -1)), __runInitializers(_init14, 55, this);
|
|
61772
61973
|
__publicField(this, "validTimeout");
|
|
61773
61974
|
}
|
|
61774
61975
|
render() {
|
|
@@ -61943,7 +62144,7 @@ var _DeesInputText = class _DeesInputText extends (_a13 = DeesInputBase, _type_d
|
|
|
61943
62144
|
textInput.blur();
|
|
61944
62145
|
}
|
|
61945
62146
|
};
|
|
61946
|
-
|
|
62147
|
+
_init14 = __decoratorStart(_a14);
|
|
61947
62148
|
_type3 = new WeakMap();
|
|
61948
62149
|
_value = new WeakMap();
|
|
61949
62150
|
_isPasswordBool = new WeakMap();
|
|
@@ -61956,21 +62157,21 @@ _validConfirmed = new WeakMap();
|
|
|
61956
62157
|
_autocomplete = new WeakMap();
|
|
61957
62158
|
_placeholder = new WeakMap();
|
|
61958
62159
|
_maxLength = new WeakMap();
|
|
61959
|
-
__decorateElement(
|
|
61960
|
-
__decorateElement(
|
|
61961
|
-
__decorateElement(
|
|
61962
|
-
__decorateElement(
|
|
61963
|
-
__decorateElement(
|
|
61964
|
-
__decorateElement(
|
|
61965
|
-
__decorateElement(
|
|
61966
|
-
__decorateElement(
|
|
61967
|
-
__decorateElement(
|
|
61968
|
-
__decorateElement(
|
|
61969
|
-
__decorateElement(
|
|
61970
|
-
__decorateElement(
|
|
61971
|
-
_DeesInputText = __decorateElement(
|
|
62160
|
+
__decorateElement(_init14, 4, "type", _type_dec3, _DeesInputText, _type3);
|
|
62161
|
+
__decorateElement(_init14, 4, "value", _value_dec, _DeesInputText, _value);
|
|
62162
|
+
__decorateElement(_init14, 4, "isPasswordBool", _isPasswordBool_dec, _DeesInputText, _isPasswordBool);
|
|
62163
|
+
__decorateElement(_init14, 4, "showPasswordBool", _showPasswordBool_dec, _DeesInputText, _showPasswordBool);
|
|
62164
|
+
__decorateElement(_init14, 4, "validationState", _validationState_dec, _DeesInputText, _validationState);
|
|
62165
|
+
__decorateElement(_init14, 4, "validationText", _validationText_dec, _DeesInputText, _validationText);
|
|
62166
|
+
__decorateElement(_init14, 4, "validationFunction", _validationFunction_dec, _DeesInputText, _validationFunction);
|
|
62167
|
+
__decorateElement(_init14, 4, "frameless", _frameless_dec, _DeesInputText, _frameless);
|
|
62168
|
+
__decorateElement(_init14, 4, "validConfirmed", _validConfirmed_dec, _DeesInputText, _validConfirmed);
|
|
62169
|
+
__decorateElement(_init14, 4, "autocomplete", _autocomplete_dec, _DeesInputText, _autocomplete);
|
|
62170
|
+
__decorateElement(_init14, 4, "placeholder", _placeholder_dec, _DeesInputText, _placeholder);
|
|
62171
|
+
__decorateElement(_init14, 4, "maxLength", _maxLength_dec, _DeesInputText, _maxLength);
|
|
62172
|
+
_DeesInputText = __decorateElement(_init14, 0, "DeesInputText", _DeesInputText_decorators, _DeesInputText);
|
|
61972
62173
|
__name(_DeesInputText, "DeesInputText");
|
|
61973
|
-
__publicField(_DeesInputText, "demo",
|
|
62174
|
+
__publicField(_DeesInputText, "demo", demoFunc10);
|
|
61974
62175
|
__publicField(_DeesInputText, "demoGroups", ["Input"]);
|
|
61975
62176
|
/** The native field's `input` is this input's own, so a composite such as `dees-input-phone` reads the native event. */
|
|
61976
62177
|
__publicField(_DeesInputText, "valueEventsFromNativeField", true);
|
|
@@ -62176,47 +62377,40 @@ __publicField(_DeesInputText, "styles", [
|
|
|
62176
62377
|
.field-messages { grid-column: 1 / -1; text-align: left; }
|
|
62177
62378
|
`
|
|
62178
62379
|
]);
|
|
62179
|
-
__runInitializers(
|
|
62380
|
+
__runInitializers(_init14, 1, _DeesInputText);
|
|
62180
62381
|
var DeesInputText = _DeesInputText;
|
|
62181
62382
|
|
|
62182
62383
|
// ts_web/elements/00group-overlay/dees-modal/dees-modal.ts
|
|
62183
|
-
var
|
|
62184
|
-
var builtInWords = /* @__PURE__ */ new WeakMap();
|
|
62185
|
-
var builtInAction = /* @__PURE__ */ __name((wordArg, action) => {
|
|
62186
|
-
const item = { name: dcMessages.entries[wordArg].message, action };
|
|
62187
|
-
builtInWords.set(item, wordArg);
|
|
62188
|
-
return item;
|
|
62189
|
-
}, "builtInAction");
|
|
62384
|
+
var _promptPending_dec, _modalZIndex_dec, _primaryActionType_dec2, _contentPadding_dec, _mobileFullscreen_dec, _questionOnly_dec, _beforeClose_dec, _onHelp_dec, _showHelpButton_dec, _showCloseButton_dec, _minWidth_dec, _maxWidth_dec, _height_dec, _width_dec2, _menuOptions_dec, _content_dec, _heading_dec, _sidebar_dec, _description_dec2, _subheading_dec, _a15, _DeesModal_decorators, _init15, _subheading, _description2, _sidebar, _heading, _content, _menuOptions, _width2, _height, _maxWidth, _minWidth, _showCloseButton, _showHelpButton, _onHelp, _beforeClose, _questionOnly, _mobileFullscreen, _contentPadding, _primaryActionType2, _modalZIndex, _promptPending;
|
|
62190
62385
|
_DeesModal_decorators = [customElement("dees-modal")];
|
|
62191
|
-
var _DeesModal = class _DeesModal extends (
|
|
62386
|
+
var _DeesModal = class _DeesModal extends (_a15 = DeesElement, _subheading_dec = [n5({ type: String, reflect: true })], _description_dec2 = [n5({ attribute: false })], _sidebar_dec = [n5({ attribute: false })], _heading_dec = [n5({
|
|
62192
62387
|
type: String,
|
|
62193
62388
|
reflect: true
|
|
62194
|
-
})], _content_dec = [r5({})], _menuOptions_dec = [r5({})], _width_dec2 = [n5({ type: String, reflect: true })], _height_dec = [n5({ type: Number, reflect: true })], _maxWidth_dec = [n5({ type: Number, reflect: true })], _minWidth_dec = [n5({ type: Number, reflect: true })], _showCloseButton_dec = [n5({ type: Boolean, reflect: true })], _showHelpButton_dec = [n5({ type: Boolean, reflect: true })], _onHelp_dec = [n5({ attribute: false })], _beforeClose_dec = [n5({ attribute: false })], _questionOnly_dec = [r5()], _mobileFullscreen_dec = [n5({ type: Boolean, reflect: true })], _contentPadding_dec = [n5({ type: Number, reflect: true })],
|
|
62389
|
+
})], _content_dec = [r5({})], _menuOptions_dec = [r5({})], _width_dec2 = [n5({ type: String, reflect: true })], _height_dec = [n5({ type: Number, reflect: true })], _maxWidth_dec = [n5({ type: Number, reflect: true })], _minWidth_dec = [n5({ type: Number, reflect: true })], _showCloseButton_dec = [n5({ type: Boolean, reflect: true })], _showHelpButton_dec = [n5({ type: Boolean, reflect: true })], _onHelp_dec = [n5({ attribute: false })], _beforeClose_dec = [n5({ attribute: false })], _questionOnly_dec = [r5()], _mobileFullscreen_dec = [n5({ type: Boolean, reflect: true })], _contentPadding_dec = [n5({ type: Number, reflect: true })], _primaryActionType_dec2 = [n5({ type: String, reflect: true })], _modalZIndex_dec = [r5()], _promptPending_dec = [r5()], _a15) {
|
|
62195
62390
|
constructor() {
|
|
62196
62391
|
super();
|
|
62197
62392
|
// INSTANCE
|
|
62198
62393
|
__publicField(this, "t", dcLocalize(this));
|
|
62199
|
-
__privateAdd(this, _subheading, __runInitializers(
|
|
62200
|
-
__privateAdd(this, _description2, __runInitializers(
|
|
62201
|
-
__privateAdd(this, _sidebar, __runInitializers(
|
|
62202
|
-
__privateAdd(this, _heading, __runInitializers(
|
|
62203
|
-
__privateAdd(this, _content, __runInitializers(
|
|
62204
|
-
__privateAdd(this, _menuOptions, __runInitializers(
|
|
62205
|
-
__privateAdd(this, _width2, __runInitializers(
|
|
62206
|
-
__privateAdd(this, _height, __runInitializers(
|
|
62207
|
-
__privateAdd(this, _maxWidth, __runInitializers(
|
|
62208
|
-
__privateAdd(this, _minWidth, __runInitializers(
|
|
62209
|
-
__privateAdd(this, _showCloseButton, __runInitializers(
|
|
62210
|
-
__privateAdd(this, _showHelpButton, __runInitializers(
|
|
62211
|
-
__privateAdd(this, _onHelp, __runInitializers(
|
|
62212
|
-
__privateAdd(this, _beforeClose, __runInitializers(
|
|
62213
|
-
__privateAdd(this, _questionOnly, __runInitializers(
|
|
62214
|
-
__privateAdd(this, _mobileFullscreen, __runInitializers(
|
|
62215
|
-
__privateAdd(this, _contentPadding, __runInitializers(
|
|
62216
|
-
__privateAdd(this,
|
|
62217
|
-
__privateAdd(this, _modalZIndex, __runInitializers(
|
|
62218
|
-
__privateAdd(this, _promptPending, __runInitializers(
|
|
62219
|
-
__privateAdd(this, _pendingAction, __runInitializers(_init14, 88, this, null)), __runInitializers(_init14, 91, this);
|
|
62394
|
+
__privateAdd(this, _subheading, __runInitializers(_init15, 8, this, "")), __runInitializers(_init15, 11, this);
|
|
62395
|
+
__privateAdd(this, _description2, __runInitializers(_init15, 12, this)), __runInitializers(_init15, 15, this);
|
|
62396
|
+
__privateAdd(this, _sidebar, __runInitializers(_init15, 16, this)), __runInitializers(_init15, 19, this);
|
|
62397
|
+
__privateAdd(this, _heading, __runInitializers(_init15, 20, this, "")), __runInitializers(_init15, 23, this);
|
|
62398
|
+
__privateAdd(this, _content, __runInitializers(_init15, 24, this)), __runInitializers(_init15, 27, this);
|
|
62399
|
+
__privateAdd(this, _menuOptions, __runInitializers(_init15, 28, this, [])), __runInitializers(_init15, 31, this);
|
|
62400
|
+
__privateAdd(this, _width2, __runInitializers(_init15, 32, this, "medium")), __runInitializers(_init15, 35, this);
|
|
62401
|
+
__privateAdd(this, _height, __runInitializers(_init15, 36, this)), __runInitializers(_init15, 39, this);
|
|
62402
|
+
__privateAdd(this, _maxWidth, __runInitializers(_init15, 40, this)), __runInitializers(_init15, 43, this);
|
|
62403
|
+
__privateAdd(this, _minWidth, __runInitializers(_init15, 44, this)), __runInitializers(_init15, 47, this);
|
|
62404
|
+
__privateAdd(this, _showCloseButton, __runInitializers(_init15, 48, this, true)), __runInitializers(_init15, 51, this);
|
|
62405
|
+
__privateAdd(this, _showHelpButton, __runInitializers(_init15, 52, this, false)), __runInitializers(_init15, 55, this);
|
|
62406
|
+
__privateAdd(this, _onHelp, __runInitializers(_init15, 56, this)), __runInitializers(_init15, 59, this);
|
|
62407
|
+
__privateAdd(this, _beforeClose, __runInitializers(_init15, 60, this)), __runInitializers(_init15, 63, this);
|
|
62408
|
+
__privateAdd(this, _questionOnly, __runInitializers(_init15, 64, this, false)), __runInitializers(_init15, 67, this);
|
|
62409
|
+
__privateAdd(this, _mobileFullscreen, __runInitializers(_init15, 68, this, false)), __runInitializers(_init15, 71, this);
|
|
62410
|
+
__privateAdd(this, _contentPadding, __runInitializers(_init15, 72, this, 24)), __runInitializers(_init15, 75, this);
|
|
62411
|
+
__privateAdd(this, _primaryActionType2, __runInitializers(_init15, 76, this, "accent")), __runInitializers(_init15, 79, this);
|
|
62412
|
+
__privateAdd(this, _modalZIndex, __runInitializers(_init15, 80, this, 1e3)), __runInitializers(_init15, 83, this);
|
|
62413
|
+
__privateAdd(this, _promptPending, __runInitializers(_init15, 84, this, false)), __runInitializers(_init15, 87, this);
|
|
62220
62414
|
__publicField(this, "destroyPromise");
|
|
62221
62415
|
/** The marker the content was last rendered before; a new one means a new body. */
|
|
62222
62416
|
__publicField(this, "renderedContentEnd");
|
|
@@ -62280,10 +62474,10 @@ var _DeesModal = class _DeesModal extends (_a14 = DeesElement, _subheading_dec =
|
|
|
62280
62474
|
content: b3`${input}`,
|
|
62281
62475
|
i18n: options.i18n,
|
|
62282
62476
|
menuOptions: [
|
|
62283
|
-
|
|
62477
|
+
catalogAction("common.cancel", async () => {
|
|
62284
62478
|
await modal.destroy();
|
|
62285
62479
|
}),
|
|
62286
|
-
options.confirmLabel ? { name: options.confirmLabel, action: confirm } :
|
|
62480
|
+
options.confirmLabel ? { name: options.confirmLabel, action: confirm } : catalogAction("common.create", confirm)
|
|
62287
62481
|
]
|
|
62288
62482
|
});
|
|
62289
62483
|
modal.addEventListener("modal-close", () => resolve2(confirmed), { once: true });
|
|
@@ -62318,8 +62512,8 @@ var _DeesModal = class _DeesModal extends (_a14 = DeesElement, _subheading_dec =
|
|
|
62318
62512
|
i18n: options.i18n,
|
|
62319
62513
|
primaryActionType: options.confirmType,
|
|
62320
62514
|
menuOptions: [
|
|
62321
|
-
options.cancelLabel ? { name: options.cancelLabel, action: cancel } :
|
|
62322
|
-
options.confirmLabel ? { name: options.confirmLabel, action: proceed } :
|
|
62515
|
+
options.cancelLabel ? { name: options.cancelLabel, action: cancel } : catalogAction("common.cancel", cancel),
|
|
62516
|
+
options.confirmLabel ? { name: options.confirmLabel, action: proceed } : catalogAction("modal.continue", proceed)
|
|
62323
62517
|
]
|
|
62324
62518
|
});
|
|
62325
62519
|
modal.addEventListener("modal-close", () => resolve2(confirmed), { once: true });
|
|
@@ -62383,15 +62577,9 @@ var _DeesModal = class _DeesModal extends (_a14 = DeesElement, _subheading_dec =
|
|
|
62383
62577
|
<div class=${["content", this.questionOnly ? "question-only" : "", this.contentPadding === 0 ? "flush" : ""].filter(Boolean).join(" ")}
|
|
62384
62578
|
style="padding:${this.contentPadding}px">${this.description ? b3`<p id="modal-description" class="description">${this.description}</p>` : ""}<span class="contentEnd" hidden></span></div>
|
|
62385
62579
|
${this.menuOptions.length ? b3`
|
|
62386
|
-
<
|
|
62387
|
-
|
|
62388
|
-
|
|
62389
|
-
.disabled=${this.promptPending || this.pendingAction !== null && this.pendingAction !== action}
|
|
62390
|
-
.status=${this.pendingAction === action ? "pending" : "normal"}
|
|
62391
|
-
.type=${index === this.menuOptions.length - 1 ? this.primaryActionType : "secondary"}
|
|
62392
|
-
@clicked=${() => this.runMenuAction(action)}></dees-button>
|
|
62393
|
-
`)}
|
|
62394
|
-
</div>
|
|
62580
|
+
<dees-actionfooter class="bottomButtons" .actions=${this.menuOptions} .context=${this}
|
|
62581
|
+
.primaryActionType=${this.primaryActionType} .disabled=${this.promptPending}
|
|
62582
|
+
source="modal-menu"></dees-actionfooter>
|
|
62395
62583
|
` : ""}
|
|
62396
62584
|
</section>
|
|
62397
62585
|
</dialog>
|
|
@@ -62444,6 +62632,21 @@ var _DeesModal = class _DeesModal extends (_a14 = DeesElement, _subheading_dec =
|
|
|
62444
62632
|
get dialog() {
|
|
62445
62633
|
return this.shadowRoot?.querySelector("dialog") ?? null;
|
|
62446
62634
|
}
|
|
62635
|
+
/**
|
|
62636
|
+
* The dialog's actions, run by its `dees-actionfooter`: one at a time, a failure announced
|
|
62637
|
+
* through `dees-action-error` with the source `modal-menu` and, unless a listener cancels it,
|
|
62638
|
+
* a notification inside this dialog. Dismissal is deliberately not blocked while an action
|
|
62639
|
+
* runs; an action that closes the dialog itself does so through `destroy()`.
|
|
62640
|
+
*/
|
|
62641
|
+
get actionFooter() {
|
|
62642
|
+
return this.shadowRoot?.querySelector("dees-actionfooter") ?? null;
|
|
62643
|
+
}
|
|
62644
|
+
/** The dialog is ready once its actions are drawn as well. */
|
|
62645
|
+
async getUpdateComplete() {
|
|
62646
|
+
const result2 = await super.getUpdateComplete();
|
|
62647
|
+
await this.actionFooter?.updateComplete;
|
|
62648
|
+
return result2;
|
|
62649
|
+
}
|
|
62447
62650
|
handleCancel(eventArg) {
|
|
62448
62651
|
eventArg.preventDefault();
|
|
62449
62652
|
void this.dismiss();
|
|
@@ -62471,17 +62674,16 @@ var _DeesModal = class _DeesModal extends (_a14 = DeesElement, _subheading_dec =
|
|
|
62471
62674
|
}
|
|
62472
62675
|
/**
|
|
62473
62676
|
* Enter in the last field of a form in this dialog runs the dialog's primary
|
|
62474
|
-
* action (
|
|
62677
|
+
* action (drawn as the primary button), as a click on it would.
|
|
62475
62678
|
* While an action runs, or a prompt confirms, the request is answered and
|
|
62476
62679
|
* nothing else starts.
|
|
62477
62680
|
*/
|
|
62478
62681
|
handleFormSubmitRequest(eventArg) {
|
|
62479
|
-
const
|
|
62480
|
-
if (!
|
|
62682
|
+
const footer2 = this.actionFooter;
|
|
62683
|
+
if (!footer2?.primaryAction) return;
|
|
62481
62684
|
eventArg.preventDefault();
|
|
62482
62685
|
eventArg.stopPropagation();
|
|
62483
|
-
|
|
62484
|
-
void this.runMenuAction(primary);
|
|
62686
|
+
void footer2.runPrimary();
|
|
62485
62687
|
}
|
|
62486
62688
|
async handleOutsideClick(eventArg) {
|
|
62487
62689
|
if (eventArg.composedPath()[0] === this.dialog) await this.dismiss();
|
|
@@ -62555,35 +62757,8 @@ var _DeesModal = class _DeesModal extends (_a14 = DeesElement, _subheading_dec =
|
|
|
62555
62757
|
async handleHelp() {
|
|
62556
62758
|
if (this.onHelp) await this.onHelp();
|
|
62557
62759
|
}
|
|
62558
|
-
/**
|
|
62559
|
-
* A menu action is awaited so a rejected callback surfaces as a visible
|
|
62560
|
-
* failure instead of an unhandled rejection. The error is announced on the
|
|
62561
|
-
* modal through the cancelable `dees-action-error` event and, unless a
|
|
62562
|
-
* listener cancels it, shown as a notification inside this dialog.
|
|
62563
|
-
*
|
|
62564
|
-
* One action runs at a time: while its promise is pending, its own button
|
|
62565
|
-
* shows the busy face and the other actions are disabled, so a second press
|
|
62566
|
-
* cannot run an irreversible operation twice. Both a resolution and a
|
|
62567
|
-
* rejection release the dialog — a failed action keeps it open and usable.
|
|
62568
|
-
* Dismissal is deliberately not blocked; an action that closes the dialog
|
|
62569
|
-
* itself does so through `destroy()` while it is still the pending action.
|
|
62570
|
-
*/
|
|
62571
|
-
/** An action's name: the caller's, or the catalog's for an action `prompt()` or `confirm()` added. */
|
|
62572
|
-
actionName(actionArg) {
|
|
62573
|
-
const word = builtInWords.get(actionArg);
|
|
62574
|
-
return word ? this.t(word) : actionArg.name;
|
|
62575
|
-
}
|
|
62576
|
-
async runMenuAction(actionArg) {
|
|
62577
|
-
if (this.pendingAction) return;
|
|
62578
|
-
this.pendingAction = actionArg;
|
|
62579
|
-
try {
|
|
62580
|
-
await runAction(this, { action: actionArg, source: "modal-menu", ownerElement: this.dialog }, () => actionArg.action(this));
|
|
62581
|
-
} finally {
|
|
62582
|
-
this.pendingAction = null;
|
|
62583
|
-
}
|
|
62584
|
-
}
|
|
62585
62760
|
};
|
|
62586
|
-
|
|
62761
|
+
_init15 = __decoratorStart(_a15);
|
|
62587
62762
|
_subheading = new WeakMap();
|
|
62588
62763
|
_description2 = new WeakMap();
|
|
62589
62764
|
_sidebar = new WeakMap();
|
|
@@ -62601,35 +62776,33 @@ _beforeClose = new WeakMap();
|
|
|
62601
62776
|
_questionOnly = new WeakMap();
|
|
62602
62777
|
_mobileFullscreen = new WeakMap();
|
|
62603
62778
|
_contentPadding = new WeakMap();
|
|
62604
|
-
|
|
62779
|
+
_primaryActionType2 = new WeakMap();
|
|
62605
62780
|
_modalZIndex = new WeakMap();
|
|
62606
62781
|
_promptPending = new WeakMap();
|
|
62607
|
-
|
|
62608
|
-
__decorateElement(
|
|
62609
|
-
__decorateElement(
|
|
62610
|
-
__decorateElement(
|
|
62611
|
-
__decorateElement(
|
|
62612
|
-
__decorateElement(
|
|
62613
|
-
__decorateElement(
|
|
62614
|
-
__decorateElement(
|
|
62615
|
-
__decorateElement(
|
|
62616
|
-
__decorateElement(
|
|
62617
|
-
__decorateElement(
|
|
62618
|
-
__decorateElement(
|
|
62619
|
-
__decorateElement(
|
|
62620
|
-
__decorateElement(
|
|
62621
|
-
__decorateElement(
|
|
62622
|
-
__decorateElement(
|
|
62623
|
-
__decorateElement(
|
|
62624
|
-
__decorateElement(
|
|
62625
|
-
__decorateElement(
|
|
62626
|
-
__decorateElement(
|
|
62627
|
-
__decorateElement(
|
|
62628
|
-
__decorateElement(_init14, 4, "pendingAction", _pendingAction_dec, _DeesModal, _pendingAction);
|
|
62629
|
-
_DeesModal = __decorateElement(_init14, 0, "DeesModal", _DeesModal_decorators, _DeesModal);
|
|
62782
|
+
__decorateElement(_init15, 4, "subheading", _subheading_dec, _DeesModal, _subheading);
|
|
62783
|
+
__decorateElement(_init15, 4, "description", _description_dec2, _DeesModal, _description2);
|
|
62784
|
+
__decorateElement(_init15, 4, "sidebar", _sidebar_dec, _DeesModal, _sidebar);
|
|
62785
|
+
__decorateElement(_init15, 4, "heading", _heading_dec, _DeesModal, _heading);
|
|
62786
|
+
__decorateElement(_init15, 4, "content", _content_dec, _DeesModal, _content);
|
|
62787
|
+
__decorateElement(_init15, 4, "menuOptions", _menuOptions_dec, _DeesModal, _menuOptions);
|
|
62788
|
+
__decorateElement(_init15, 4, "width", _width_dec2, _DeesModal, _width2);
|
|
62789
|
+
__decorateElement(_init15, 4, "height", _height_dec, _DeesModal, _height);
|
|
62790
|
+
__decorateElement(_init15, 4, "maxWidth", _maxWidth_dec, _DeesModal, _maxWidth);
|
|
62791
|
+
__decorateElement(_init15, 4, "minWidth", _minWidth_dec, _DeesModal, _minWidth);
|
|
62792
|
+
__decorateElement(_init15, 4, "showCloseButton", _showCloseButton_dec, _DeesModal, _showCloseButton);
|
|
62793
|
+
__decorateElement(_init15, 4, "showHelpButton", _showHelpButton_dec, _DeesModal, _showHelpButton);
|
|
62794
|
+
__decorateElement(_init15, 4, "onHelp", _onHelp_dec, _DeesModal, _onHelp);
|
|
62795
|
+
__decorateElement(_init15, 4, "beforeClose", _beforeClose_dec, _DeesModal, _beforeClose);
|
|
62796
|
+
__decorateElement(_init15, 4, "questionOnly", _questionOnly_dec, _DeesModal, _questionOnly);
|
|
62797
|
+
__decorateElement(_init15, 4, "mobileFullscreen", _mobileFullscreen_dec, _DeesModal, _mobileFullscreen);
|
|
62798
|
+
__decorateElement(_init15, 4, "contentPadding", _contentPadding_dec, _DeesModal, _contentPadding);
|
|
62799
|
+
__decorateElement(_init15, 4, "primaryActionType", _primaryActionType_dec2, _DeesModal, _primaryActionType2);
|
|
62800
|
+
__decorateElement(_init15, 4, "modalZIndex", _modalZIndex_dec, _DeesModal, _modalZIndex);
|
|
62801
|
+
__decorateElement(_init15, 4, "promptPending", _promptPending_dec, _DeesModal, _promptPending);
|
|
62802
|
+
_DeesModal = __decorateElement(_init15, 0, "DeesModal", _DeesModal_decorators, _DeesModal);
|
|
62630
62803
|
__name(_DeesModal, "DeesModal");
|
|
62631
62804
|
// STATIC
|
|
62632
|
-
__publicField(_DeesModal, "demo",
|
|
62805
|
+
__publicField(_DeesModal, "demo", demoFunc7);
|
|
62633
62806
|
__publicField(_DeesModal, "demoGroups", ["Overlay"]);
|
|
62634
62807
|
__publicField(_DeesModal, "styles", [
|
|
62635
62808
|
themeDefaultStyles,
|
|
@@ -62685,7 +62858,8 @@ __publicField(_DeesModal, "styles", [
|
|
|
62685
62858
|
heading's, so frameless content in it lines up with the heading. */
|
|
62686
62859
|
.content { --dees-inset-inline: initial; }
|
|
62687
62860
|
.content.flush { --dees-inset-inline: var(--modal-inset-inline); }
|
|
62688
|
-
|
|
62861
|
+
/* The actions line up with the heading. */
|
|
62862
|
+
.bottomButtons { grid-row: 3; --dees-actionfooter-inset: var(--modal-inset-inline); }
|
|
62689
62863
|
.heading-copy { flex: 1; min-width: 0; }
|
|
62690
62864
|
.subheading { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--dees-color-text-secondary); }
|
|
62691
62865
|
.description { margin: 0 0 var(--dees-spacing-lg); font-size: 13px; line-height: 1.5; color: var(--dees-color-text-secondary); }
|
|
@@ -62728,31 +62902,6 @@ __publicField(_DeesModal, "styles", [
|
|
|
62728
62902
|
.help-button:hover { background: var(--dees-color-hover); }
|
|
62729
62903
|
.help-button:focus-visible { outline: var(--dees-line-width-focus-ring) solid var(--dees-color-focus-ring); outline-offset: 2px; }
|
|
62730
62904
|
.content { min-width: 0; overflow-wrap: anywhere; }
|
|
62731
|
-
.bottomButtons {
|
|
62732
|
-
display: flex;
|
|
62733
|
-
flex-wrap: wrap;
|
|
62734
|
-
justify-content: flex-end;
|
|
62735
|
-
align-items: center;
|
|
62736
|
-
gap: var(--dees-spacing-sm);
|
|
62737
|
-
padding: var(--dees-spacing-md) var(--modal-inset-inline);
|
|
62738
|
-
}
|
|
62739
|
-
/* An action keeps the one-line 28px face while its label fits. A label wider than the
|
|
62740
|
-
sheet (a long confirmation on a phone) wraps onto more lines inside it instead of being
|
|
62741
|
-
cut off: the face grows in height, never past the sheet's width. */
|
|
62742
|
-
.modal-action { max-width: 100%; min-width: 0; }
|
|
62743
|
-
.modal-action::part(button) {
|
|
62744
|
-
height: auto;
|
|
62745
|
-
min-height: 28px;
|
|
62746
|
-
max-width: 100%;
|
|
62747
|
-
padding-block: 4px;
|
|
62748
|
-
white-space: normal;
|
|
62749
|
-
/* anywhere, not break-word: only anywhere counts toward min-content, so an unbreakable
|
|
62750
|
-
token (an e-mail address, an identifier) breaks inside the face instead of spilling */
|
|
62751
|
-
overflow-wrap: anywhere;
|
|
62752
|
-
text-align: center;
|
|
62753
|
-
font-size: 13px;
|
|
62754
|
-
border-radius: 8px;
|
|
62755
|
-
}
|
|
62756
62905
|
.predestroy { animation: leave var(--dees-transition-fast) var(--dees-ease-in) forwards; }
|
|
62757
62906
|
@keyframes enter { from { opacity: 0; transform: translateY(8px) scale(.98); } }
|
|
62758
62907
|
@keyframes leave { to { opacity: 0; transform: translateY(4px) scale(.99); } }
|
|
@@ -62771,7 +62920,7 @@ __publicField(_DeesModal, "styles", [
|
|
|
62771
62920
|
@media (prefers-reduced-transparency: reduce) { .modalContainer::backdrop { backdrop-filter: none; } }
|
|
62772
62921
|
`
|
|
62773
62922
|
]);
|
|
62774
|
-
__runInitializers(
|
|
62923
|
+
__runInitializers(_init15, 1, _DeesModal);
|
|
62775
62924
|
var DeesModal = _DeesModal;
|
|
62776
62925
|
|
|
62777
62926
|
export {
|
|
@@ -62852,6 +63001,8 @@ export {
|
|
|
62852
63001
|
visibleRect,
|
|
62853
63002
|
scrollAncestors,
|
|
62854
63003
|
listenForScrollAround,
|
|
63004
|
+
catalogAction,
|
|
63005
|
+
DeesActionFooter,
|
|
62855
63006
|
DeesPopover,
|
|
62856
63007
|
DeesSpeechbubble,
|
|
62857
63008
|
DeesLabel,
|
|
@@ -64655,4 +64806,4 @@ lucide/dist/esm/lucide.js:
|
|
|
64655
64806
|
* See the LICENSE file in the root directory of this source tree.
|
|
64656
64807
|
*)
|
|
64657
64808
|
*/
|
|
64658
|
-
//# sourceMappingURL=chunk-
|
|
64809
|
+
//# sourceMappingURL=chunk-CJVVAKHG.js.map
|