@design.estate/dees-catalog 21.32.2 → 21.32.3
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 +28 -8
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-VSNSBXUT.js → chunk-EL3KNDIB.js} +300 -182
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-VSNSBXUT.js.map → chunk-EL3KNDIB.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-PMJELHWH.js → chunk-ZRD47DC6.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-JVYREEMV.js → dees-modal-7LJGK5SK.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-RIABBONK.js → dees-workspace-terminal-O3NEQ4DO.js} +3 -3
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00formgate.d.ts +35 -0
- package/dist_ts_web/elements/00formgate.js +80 -0
- package/dist_ts_web/elements/00group-form/dees-form/dees-form.d.ts +6 -0
- package/dist_ts_web/elements/00group-form/dees-form/dees-form.js +12 -1
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.d.ts +6 -0
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.js +12 -3
- package/dist_ts_web/elements/00group-overlay/dees-modal/dees-modal.d.ts +5 -4
- package/dist_ts_web/elements/00group-overlay/dees-modal/dees-modal.demo.d.ts +2 -1
- package/dist_ts_web/elements/00group-overlay/dees-modal/dees-modal.demo.js +86 -25
- package/dist_ts_web/elements/00group-overlay/dees-modal/dees-modal.js +8 -6
- package/dist_ts_web/elements/00group-overlay/dees-popover/dees-popover.d.ts +8 -2
- package/dist_ts_web/elements/00group-overlay/dees-popover/dees-popover.js +12 -4
- package/dist_ts_web/elements/00group-overlay/dees-speechbubble/dees-speechbubble.demo.js +27 -2
- package/package.json +1 -1
- package/readme.md +12 -5
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00formgate.ts +90 -0
- package/ts_web/elements/00group-form/dees-form/dees-form.ts +12 -0
- package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.ts +12 -2
- package/ts_web/elements/00group-overlay/dees-modal/dees-modal.demo.ts +42 -24
- package/ts_web/elements/00group-overlay/dees-modal/dees-modal.ts +7 -7
- package/ts_web/elements/00group-overlay/dees-popover/dees-popover.ts +11 -3
- package/ts_web/elements/00group-overlay/dees-speechbubble/dees-speechbubble.demo.ts +30 -1
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-PMJELHWH.js.map → chunk-ZRD47DC6.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-JVYREEMV.js.map → dees-modal-7LJGK5SK.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-RIABBONK.js.map → dees-workspace-terminal-O3NEQ4DO.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 _a20 = _this, $el = _a20.$el, ctx = _a20.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 _a20 = this, $el = _a20.$el, ctx = _a20.ctx, currentOptions = _a20.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 _a20 = this, $el = _a20.$el, ctx = _a20.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 _a20 = this, $el = _a20.$el, ctx = _a20.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 _a20;
|
|
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 = (_a20 = this)["on" + (type5[0].toUpperCase() + type5.slice(1))].apply(_a20, args);
|
|
2184
2184
|
return callbackResult !== void 0 ? callbackResult : methodResult;
|
|
2185
2185
|
};
|
|
2186
2186
|
SweetScroll3.prototype.bind = function(click, stop) {
|
|
2187
|
-
var
|
|
2187
|
+
var _a20 = this, $el = _a20.$el, opts = _a20.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 _a20 = this, $el = _a20.$el, opts = _a20.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, _a20, 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 && (_a20 = _parentage_1.return)) _a20.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 _a20;
|
|
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 = (_a20 = this._finalizers) !== null && _a20 !== void 0 ? _a20 : []).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 _a20 = context, errorThrown = _a20.errorThrown, error = _a20.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 _a20 = _this, operator = _a20.operator, source = _a20.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 _a20;
|
|
3482
|
+
return (_a20 = this.source) === null || _a20 === void 0 ? void 0 : _a20.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 _a20;
|
|
3515
|
+
return (_a20 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a20 !== void 0 ? _a20 : 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 _a20;
|
|
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 && ((_a20 = this.onFinalize) === null || _a20 === void 0 ? void 0 : _a20.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, _a20;
|
|
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 && (_a20 = _b.return)) _a20.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 _a20;
|
|
3691
|
+
return ((_a20 = this.observers) === null || _a20 === void 0 ? void 0 : _a20.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 _a20 = this, hasError = _a20.hasError, isStopped = _a20.isStopped, observers = _a20.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 _a20 = this, hasError = _a20.hasError, thrownError = _a20.thrownError, isStopped = _a20.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 _a20, _b;
|
|
3747
|
+
(_b = (_a20 = this.destination) === null || _a20 === void 0 ? void 0 : _a20.next) === null || _b === void 0 ? void 0 : _b.call(_a20, value);
|
|
3748
3748
|
};
|
|
3749
3749
|
AnonymousSubject2.prototype.error = function(err) {
|
|
3750
|
-
var
|
|
3751
|
-
(_b = (
|
|
3750
|
+
var _a20, _b;
|
|
3751
|
+
(_b = (_a20 = this.destination) === null || _a20 === void 0 ? void 0 : _a20.error) === null || _b === void 0 ? void 0 : _b.call(_a20, err);
|
|
3752
3752
|
};
|
|
3753
3753
|
AnonymousSubject2.prototype.complete = function() {
|
|
3754
|
-
var
|
|
3755
|
-
(_b = (
|
|
3754
|
+
var _a20, _b;
|
|
3755
|
+
(_b = (_a20 = this.destination) === null || _a20 === void 0 ? void 0 : _a20.complete) === null || _b === void 0 ? void 0 : _b.call(_a20);
|
|
3756
3756
|
};
|
|
3757
3757
|
AnonymousSubject2.prototype._subscribe = function(subscriber) {
|
|
3758
|
-
var
|
|
3759
|
-
return (_b = (
|
|
3758
|
+
var _a20, _b;
|
|
3759
|
+
return (_b = (_a20 = this.source) === null || _a20 === void 0 ? void 0 : _a20.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 _a20 = this, hasError = _a20.hasError, thrownError = _a20.thrownError, _value3 = _a20._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 _a20 = this, isStopped = _a20.isStopped, _buffer = _a20._buffer, _infiniteTimeWindow = _a20._infiniteTimeWindow, _timestampProvider = _a20._timestampProvider, _windowTime = _a20._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 _a20 = this, _infiniteTimeWindow = _a20._infiniteTimeWindow, _buffer = _a20._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 _a20 = this, _bufferSize = _a20._bufferSize, _timestampProvider = _a20._timestampProvider, _buffer = _a20._buffer, _infiniteTimeWindow = _a20._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 _a20;
|
|
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 = (_a20 = this.id) !== null && _a20 !== void 0 ? _a20 : 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 _a20 = this, id = _a20.id, scheduler = _a20.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, _a20, 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
|
+
_a20 = _b.sent(), value = _a20.value, done = _a20.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, _a20;
|
|
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 && (_a20 = iterable_1.return)) _a20.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, _a20;
|
|
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 && (_a20 = asyncIterable_1.return))) return [3, 8];
|
|
4299
|
+
return [4, _a20.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 _a20;
|
|
4416
4416
|
var value;
|
|
4417
4417
|
var done;
|
|
4418
4418
|
try {
|
|
4419
|
-
|
|
4419
|
+
_a20 = iterator2.next(), value = _a20.value, done = _a20.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 _a20 = argsArgArrayOrObject(args), observables = _a20.args, keys2 = _a20.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 _a20 = __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 = _a20[0], remove2 = _a20[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, _a20, 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 && (_a20 = buffers_1.return)) _a20.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, _a20;
|
|
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 && (_a20 = buffers_2.return)) _a20.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 _a20, _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 = (_a20 = popScheduler(otherArgs)) !== null && _a20 !== void 0 ? _a20 : 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, _a21;
|
|
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 && (_a21 = recordsCopy_1.return)) _a21.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 _a20 = options.connector, connector = _a20 === void 0 ? function() {
|
|
5149
5149
|
return new Subject();
|
|
5150
|
-
} :
|
|
5150
|
+
} : _a20, _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 _a20, _b, _c;
|
|
5234
5234
|
var bufferSize;
|
|
5235
5235
|
var refCount2 = false;
|
|
5236
5236
|
if (configOrBufferSize && typeof configOrBufferSize === "object") {
|
|
5237
|
-
|
|
5237
|
+
_a20 = configOrBufferSize.bufferSize, bufferSize = _a20 === void 0 ? Infinity : _a20, _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 _a20 = config2 !== null && config2 !== void 0 ? config2 : {}, _b = _a20.leading, leading = _b === void 0 ? true : _b, _c = _a20.trailing, trailing = _c === void 0 ? false : _c;
|
|
5280
5280
|
var hasValue = false;
|
|
5281
5281
|
var sendValue = null;
|
|
5282
5282
|
var throttled = null;
|
|
@@ -59807,6 +59807,68 @@ var ScrollEdgeShadowController = class {
|
|
|
59807
59807
|
}
|
|
59808
59808
|
};
|
|
59809
59809
|
|
|
59810
|
+
// ts_web/elements/00formgate.ts
|
|
59811
|
+
var formConnectEvent = "form-connect";
|
|
59812
|
+
var holders = /* @__PURE__ */ new WeakMap();
|
|
59813
|
+
var drawnParent = /* @__PURE__ */ __name((node) => (node instanceof Element ? node.assignedSlot : null) ?? (node instanceof ShadowRoot ? node.host : node.parentNode), "drawnParent");
|
|
59814
|
+
var drawnAncestry = /* @__PURE__ */ __name((node) => {
|
|
59815
|
+
const ancestry = [];
|
|
59816
|
+
for (let current = node; current; current = drawnParent(current)) ancestry.unshift(current);
|
|
59817
|
+
return ancestry;
|
|
59818
|
+
}, "drawnAncestry");
|
|
59819
|
+
var byDrawnOrder = /* @__PURE__ */ __name((a4, b4) => {
|
|
59820
|
+
const ancestryA = drawnAncestry(a4);
|
|
59821
|
+
const ancestryB = drawnAncestry(b4);
|
|
59822
|
+
let depth = 0;
|
|
59823
|
+
while (depth < ancestryA.length && ancestryA[depth] === ancestryB[depth]) depth++;
|
|
59824
|
+
const [branchA, branchB] = [ancestryA[depth], ancestryB[depth]];
|
|
59825
|
+
if (!branchA || !branchB) return branchA ? 1 : branchB ? -1 : 0;
|
|
59826
|
+
return branchA.compareDocumentPosition(branchB) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
59827
|
+
}, "byDrawnOrder");
|
|
59828
|
+
var FormGate = class {
|
|
59829
|
+
constructor(host) {
|
|
59830
|
+
this.host = host;
|
|
59831
|
+
host.addEventListener(formConnectEvent, this.claim);
|
|
59832
|
+
}
|
|
59833
|
+
host;
|
|
59834
|
+
static {
|
|
59835
|
+
__name(this, "FormGate");
|
|
59836
|
+
}
|
|
59837
|
+
forms = /* @__PURE__ */ new Set();
|
|
59838
|
+
/**
|
|
59839
|
+
* Whether the host's forms accept their values, asked in the order they are drawn: the first
|
|
59840
|
+
* field that refuses reports why and takes the focus, and the answer is `false`. For a footer's
|
|
59841
|
+
* `beforePrimary`.
|
|
59842
|
+
*/
|
|
59843
|
+
accept = /* @__PURE__ */ __name(() => {
|
|
59844
|
+
this.release();
|
|
59845
|
+
return [...this.forms].sort(byDrawnOrder).every((form) => form.reportValidity());
|
|
59846
|
+
}, "accept");
|
|
59847
|
+
claim = /* @__PURE__ */ __name((eventArg) => {
|
|
59848
|
+
const { form } = eventArg.detail;
|
|
59849
|
+
eventArg.stopPropagation();
|
|
59850
|
+
holders.get(form)?.forms.delete(form);
|
|
59851
|
+
holders.set(form, this);
|
|
59852
|
+
this.forms.add(form);
|
|
59853
|
+
this.release();
|
|
59854
|
+
}, "claim");
|
|
59855
|
+
/** Lets go of the forms no longer inside the host. */
|
|
59856
|
+
release() {
|
|
59857
|
+
for (const form of this.forms) {
|
|
59858
|
+
if (this.contains(form)) continue;
|
|
59859
|
+
this.forms.delete(form);
|
|
59860
|
+
if (holders.get(form) === this) holders.delete(form);
|
|
59861
|
+
}
|
|
59862
|
+
}
|
|
59863
|
+
contains(form) {
|
|
59864
|
+
if (!form.isConnected) return false;
|
|
59865
|
+
for (let node = form; node; node = node instanceof ShadowRoot ? node.host : node.parentNode) {
|
|
59866
|
+
if (node === this.host) return true;
|
|
59867
|
+
}
|
|
59868
|
+
return false;
|
|
59869
|
+
}
|
|
59870
|
+
};
|
|
59871
|
+
|
|
59810
59872
|
// ts_web/elements/00group-overlay/dees-popover/dees-popover.ts
|
|
59811
59873
|
var _tailOnActions_dec, _actions_dec, _maxHeight_dec, _width_dec, _dismissOnTab_dec, _showTail_dec, _placement_dec, _label_dec, _open_dec, _anchor_dec, _a7, _DeesPopover_decorators, _init7, _anchor, _open, _label, _placement, _showTail, _dismissOnTab, _width, _maxHeight, _actions, _tailOnActions;
|
|
59812
59874
|
var nextPopoverId = 0;
|
|
@@ -59833,6 +59895,11 @@ var _DeesPopover = class _DeesPopover extends (_a7 = DeesElement, _anchor_dec =
|
|
|
59833
59895
|
__privateAdd(this, _tailOnActions, __runInitializers(_init7, 44, this, false)), __runInitializers(_init7, 47, this);
|
|
59834
59896
|
/** Content taller than the bubble scrolls, fading out toward an edge past which more lies. */
|
|
59835
59897
|
__publicField(this, "scrollEdges", new ScrollEdgeShadowController(this, () => this.shadowRoot?.querySelector(".content")));
|
|
59898
|
+
/**
|
|
59899
|
+
* The forms of the bubble's content, also those inside the shadow roots of the components it is
|
|
59900
|
+
* made of: the primary action waits for them as a dialog's does.
|
|
59901
|
+
*/
|
|
59902
|
+
__publicField(this, "formGate", new FormGate(this));
|
|
59836
59903
|
__publicField(this, "handleDocumentKeydown", /* @__PURE__ */ __name((event) => {
|
|
59837
59904
|
if (this.transientLayers.some((layer) => layer.visible)) return;
|
|
59838
59905
|
if (event.key === "Escape") {
|
|
@@ -59888,7 +59955,8 @@ var _DeesPopover = class _DeesPopover extends (_a7 = DeesElement, _anchor_dec =
|
|
|
59888
59955
|
}
|
|
59889
59956
|
render() {
|
|
59890
59957
|
return b3`
|
|
59891
|
-
<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}
|
|
59958
|
+
<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}
|
|
59959
|
+
.beforePrimary=${this.formGate.accept} source="popover-action"></dees-actionfooter>` : ""}</div>
|
|
59892
59960
|
${this.showTail ? b3`<span class="tail ${this.tailOnActions ? "onActions" : ""}" aria-hidden="true"></span>` : ""}
|
|
59893
59961
|
<div class="overlayLayer"></div>
|
|
59894
59962
|
`;
|
|
@@ -60540,6 +60608,16 @@ var placed = /* @__PURE__ */ __name((label, placement) => b3`
|
|
|
60540
60608
|
<dees-button type="outline" text=${label} @clicked=${toggle}></dees-button>
|
|
60541
60609
|
<dees-popover .placement=${placement} label=${label} width="min(260px, calc(100vw - 16px))">${bubbleText}</dees-popover>
|
|
60542
60610
|
</span>`, "placed");
|
|
60611
|
+
var noteActions = [
|
|
60612
|
+
{ name: "Clear", action: /* @__PURE__ */ __name(async (bubble) => {
|
|
60613
|
+
bubble.querySelector("dees-input-textarea").setValue("");
|
|
60614
|
+
}, "action") },
|
|
60615
|
+
{ name: "Save note", action: /* @__PURE__ */ __name(async (bubble) => {
|
|
60616
|
+
const { note } = await bubble.querySelector("dees-form").collectFormData();
|
|
60617
|
+
showDemoResult(bubble.anchor, `Saved: ${String(note) || "no note"}`);
|
|
60618
|
+
bubble.close();
|
|
60619
|
+
}, "action") }
|
|
60620
|
+
];
|
|
60543
60621
|
var demoFunc8 = /* @__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`
|
|
60544
60622
|
${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`
|
|
60545
60623
|
<div class="dees-demo-row">${placed("Where it fits", "auto")}</div>
|
|
@@ -60554,6 +60632,22 @@ popover.open = true; // placement 'auto': below or above, wherever it fits`)}
|
|
|
60554
60632
|
${placed("End", "end")}
|
|
60555
60633
|
</div>
|
|
60556
60634
|
`)}
|
|
60635
|
+
${demoSection("A form in the bubble", "The primary action waits for the bubble's form, as a dialog's does: a field that refuses its value says why and takes the focus. Clear never waits.", b3`
|
|
60636
|
+
<div class="dees-demo-row">
|
|
60637
|
+
<span>
|
|
60638
|
+
<dees-button type="outline" text="Note on booking" @clicked=${toggle}></dees-button>
|
|
60639
|
+
<dees-popover label="Note on booking" .actions=${noteActions}>
|
|
60640
|
+
<dees-form style="padding: var(--dees-spacing-lg)">
|
|
60641
|
+
<dees-input-textarea key="note" label="Note" .rows=${3} .maxLength=${80}
|
|
60642
|
+
.value=${"Paid by the customer in two parts: the deposit in March and the rest after delivery in April."}></dees-input-textarea>
|
|
60643
|
+
</dees-form>
|
|
60644
|
+
</dees-popover>
|
|
60645
|
+
</span>
|
|
60646
|
+
</div>${demoOutput("Save the note: the bubble holds it until it fits in 80 characters.")}
|
|
60647
|
+
${demoCode(`popover.actions = [clear, { name: 'Save note', action: save }];
|
|
60648
|
+
// the primary waits until the form's fields accept their values
|
|
60649
|
+
popover.innerHTML = '<dees-form><dees-input-textarea key="note" maxlength="80"></dees-input-textarea></dees-form>';`)}
|
|
60650
|
+
`)}
|
|
60557
60651
|
${demoSection("Information on hover", "A label's information, and any dees-speechbubble after a control, opens the same bubble as a tooltip on hover or keyboard focus and describes its control while it shows.", b3`
|
|
60558
60652
|
<dees-label label="Region" infoText="Choose the **nearest** region. Data stays in the region you choose."></dees-label>
|
|
60559
60653
|
`)}
|
|
@@ -62639,6 +62733,26 @@ __runInitializers(_init15, 1, _DeesInputTextarea);
|
|
|
62639
62733
|
var DeesInputTextarea = _DeesInputTextarea;
|
|
62640
62734
|
|
|
62641
62735
|
// ts_web/elements/00group-overlay/dees-modal/dees-modal.demo.ts
|
|
62736
|
+
var _DeesDemoInviteBody_decorators, _init16, _a16;
|
|
62737
|
+
var inviteAddresses = /* @__PURE__ */ __name((value) => value.split(/[\s,]+/).filter(Boolean), "inviteAddresses");
|
|
62738
|
+
var inviteForm = /* @__PURE__ */ __name(() => b3`<dees-form>
|
|
62739
|
+
<dees-input-textarea key="emails" label="Email addresses" .rows=${4} required
|
|
62740
|
+
.value=${"ada@northstar.example\ngrace@northstar"}
|
|
62741
|
+
.validationFunction=${(value) => inviteAddresses(value).every((address) => /^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(address)) ? { valid: true } : { valid: false, message: "Write each address in full, as name@example.com." }}></dees-input-textarea>
|
|
62742
|
+
</dees-form>`, "inviteForm");
|
|
62743
|
+
_DeesDemoInviteBody_decorators = [customElement("dees-demo-invite-body")];
|
|
62744
|
+
var DeesDemoInviteBody = class extends (_a16 = DeesElement) {
|
|
62745
|
+
static {
|
|
62746
|
+
__name(this, "DeesDemoInviteBody");
|
|
62747
|
+
}
|
|
62748
|
+
static styles = i`:host { display: block; }`;
|
|
62749
|
+
render() {
|
|
62750
|
+
return inviteForm();
|
|
62751
|
+
}
|
|
62752
|
+
};
|
|
62753
|
+
_init16 = __decoratorStart(_a16);
|
|
62754
|
+
DeesDemoInviteBody = __decorateElement(_init16, 0, "DeesDemoInviteBody", _DeesDemoInviteBody_decorators, DeesDemoInviteBody);
|
|
62755
|
+
__runInitializers(_init16, 1, DeesDemoInviteBody);
|
|
62642
62756
|
var openSettingsDemo = /* @__PURE__ */ __name(async (options = {}) => {
|
|
62643
62757
|
let draft = { ...options.initial ?? createWorkspace() };
|
|
62644
62758
|
const sections = {
|
|
@@ -62714,6 +62828,18 @@ var openExample = /* @__PURE__ */ __name((options) => DeesModal.createAndShow({
|
|
|
62714
62828
|
menuOptions: [{ name: "Done", action: /* @__PURE__ */ __name((modal) => modal.destroy(), "action") }],
|
|
62715
62829
|
...options
|
|
62716
62830
|
}), "openExample");
|
|
62831
|
+
var openInvitations = /* @__PURE__ */ __name((trigger, content, form) => openExample({
|
|
62832
|
+
heading: "Invite people",
|
|
62833
|
+
content,
|
|
62834
|
+
menuOptions: [
|
|
62835
|
+
{ name: "Cancel", action: /* @__PURE__ */ __name((modal) => modal.destroy(), "action") },
|
|
62836
|
+
{ name: "Send invitations", action: /* @__PURE__ */ __name(async (modal) => {
|
|
62837
|
+
const { emails } = await form(modal).collectFormData();
|
|
62838
|
+
showDemoResult(trigger, `Invited ${inviteAddresses(String(emails)).length} people`);
|
|
62839
|
+
await modal.destroy();
|
|
62840
|
+
}, "action") }
|
|
62841
|
+
]
|
|
62842
|
+
}), "openInvitations");
|
|
62717
62843
|
var demoFunc11 = /* @__PURE__ */ __name(() => demoPage("Modal", "Focused windows with native keyboard behavior, a clear action area, and room for settings that grow.", b3`
|
|
62718
62844
|
${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`
|
|
62719
62845
|
<div class="dees-demo-row"><dees-button type="accent" text="Open settings" @clicked=${(event) => {
|
|
@@ -62774,28 +62900,18 @@ var demoFunc11 = /* @__PURE__ */ __name(() => demoPage("Modal", "Focused windows
|
|
|
62774
62900
|
}}></dees-button>
|
|
62775
62901
|
</div>${demoOutput("Confirm or dismiss a prompt to see its result.")}
|
|
62776
62902
|
${demoCode("await DeesModal.prompt({\n heading: 'Close Northstar?', subheading: 'Workspace \xB7 14 services', width: 'medium',\n label: 'Type northstar to confirm',\n description: 'Closing a workspace removes its services, files and invitations.',\n emptyValueMessage: 'Type the workspace name to confirm.',\n validate: (value) => value === 'northstar' ? undefined : 'That is not the workspace name.',\n});")}`)}
|
|
62777
|
-
${demoSection("A field that refuses", "The primary action waits for the dialog's form: a field that refuses its value says why and takes the focus, from a press as from Enter. Cancel never waits.", b3`
|
|
62903
|
+
${demoSection("A field that refuses", "The primary action waits for the dialog's form, also one a component of the content draws in its own shadow root: a field that refuses its value says why and takes the focus, from a press as from Enter. Cancel never waits.", b3`
|
|
62778
62904
|
<div class="dees-demo-row">
|
|
62779
|
-
<dees-button text="Invite people" @clicked=${(event) =>
|
|
62780
|
-
|
|
62781
|
-
|
|
62782
|
-
|
|
62783
|
-
|
|
62784
|
-
|
|
62785
|
-
|
|
62786
|
-
|
|
62787
|
-
|
|
62788
|
-
|
|
62789
|
-
menuOptions: [
|
|
62790
|
-
{ name: "Cancel", action: /* @__PURE__ */ __name((modal) => modal.destroy(), "action") },
|
|
62791
|
-
{ name: "Send invitations", action: /* @__PURE__ */ __name(async (modal) => {
|
|
62792
|
-
const { emails } = await modal.shadowRoot.querySelector("dees-form").collectFormData();
|
|
62793
|
-
showDemoResult(trigger, `Invited ${addresses(String(emails)).length} people`);
|
|
62794
|
-
await modal.destroy();
|
|
62795
|
-
}, "action") }
|
|
62796
|
-
]
|
|
62797
|
-
});
|
|
62798
|
-
}}></dees-button>
|
|
62905
|
+
<dees-button text="Invite people" @clicked=${(event) => openInvitations(
|
|
62906
|
+
event.currentTarget,
|
|
62907
|
+
inviteForm(),
|
|
62908
|
+
(modal) => modal.shadowRoot.querySelector("dees-form")
|
|
62909
|
+
)}></dees-button>
|
|
62910
|
+
<dees-button text="Body in a component" @clicked=${(event) => openInvitations(
|
|
62911
|
+
event.currentTarget,
|
|
62912
|
+
b3`<dees-demo-invite-body></dees-demo-invite-body>`,
|
|
62913
|
+
(modal) => modal.shadowRoot.querySelector("dees-demo-invite-body").shadowRoot.querySelector("dees-form")
|
|
62914
|
+
)}></dees-button>
|
|
62799
62915
|
</div>${demoOutput("Send the invitations: the dialog holds them until every address is whole.")}
|
|
62800
62916
|
${demoCode("await DeesModal.createAndShow({\n heading: 'Invite people',\n // the primary waits until the form's fields accept their values\n content: html`<dees-form><dees-input-textarea key=\"emails\" .validationFunction=${everyAddressWhole}></dees-input-textarea></dees-form>`,\n menuOptions: [cancel, { name: 'Send invitations', action: send }],\n});")}`)}
|
|
62801
62917
|
${demoSection("Actions that take a moment", "One action runs at a time: its button shows the busy face, the others wait, and a failure hands the dialog back.", b3`
|
|
@@ -62875,18 +62991,18 @@ var demoFunc11 = /* @__PURE__ */ __name(() => demoPage("Modal", "Focused windows
|
|
|
62875
62991
|
`), "demoFunc");
|
|
62876
62992
|
|
|
62877
62993
|
// ts_web/elements/00group-button/dees-button-exit/dees-button-exit.ts
|
|
62878
|
-
var _disabled_dec5, _label_dec4, _size_dec4,
|
|
62994
|
+
var _disabled_dec5, _label_dec4, _size_dec4, _a17, _DeesButtonExit_decorators, _init17, _size4, _label4, _disabled5;
|
|
62879
62995
|
_DeesButtonExit_decorators = [customElement("dees-button-exit")];
|
|
62880
|
-
var _DeesButtonExit = class _DeesButtonExit extends (
|
|
62996
|
+
var _DeesButtonExit = class _DeesButtonExit extends (_a17 = DeesElement, _size_dec4 = [n5({
|
|
62881
62997
|
type: Number,
|
|
62882
62998
|
reflect: true
|
|
62883
|
-
})], _label_dec4 = [n5({ type: String, reflect: true })], _disabled_dec5 = [n5({ type: Boolean, reflect: true })],
|
|
62999
|
+
})], _label_dec4 = [n5({ type: String, reflect: true })], _disabled_dec5 = [n5({ type: Boolean, reflect: true })], _a17) {
|
|
62884
63000
|
constructor() {
|
|
62885
63001
|
super(...arguments);
|
|
62886
|
-
__privateAdd(this, _size4, __runInitializers(
|
|
62887
|
-
__privateAdd(this, _label4, __runInitializers(
|
|
63002
|
+
__privateAdd(this, _size4, __runInitializers(_init17, 8, this, 24)), __runInitializers(_init17, 11, this);
|
|
63003
|
+
__privateAdd(this, _label4, __runInitializers(_init17, 12, this, "")), __runInitializers(_init17, 15, this);
|
|
62888
63004
|
__publicField(this, "t", dcLocalize(this));
|
|
62889
|
-
__privateAdd(this, _disabled5, __runInitializers(
|
|
63005
|
+
__privateAdd(this, _disabled5, __runInitializers(_init17, 16, this, false)), __runInitializers(_init17, 19, this);
|
|
62890
63006
|
}
|
|
62891
63007
|
render() {
|
|
62892
63008
|
return b3`<button type="button" aria-label=${this.label || this.t("common.close")} ?disabled=${this.disabled}
|
|
@@ -62899,14 +63015,14 @@ var _DeesButtonExit = class _DeesButtonExit extends (_a16 = DeesElement, _size_d
|
|
|
62899
63015
|
this.shadowRoot?.querySelector("button")?.blur();
|
|
62900
63016
|
}
|
|
62901
63017
|
};
|
|
62902
|
-
|
|
63018
|
+
_init17 = __decoratorStart(_a17);
|
|
62903
63019
|
_size4 = new WeakMap();
|
|
62904
63020
|
_label4 = new WeakMap();
|
|
62905
63021
|
_disabled5 = new WeakMap();
|
|
62906
|
-
__decorateElement(
|
|
62907
|
-
__decorateElement(
|
|
62908
|
-
__decorateElement(
|
|
62909
|
-
_DeesButtonExit = __decorateElement(
|
|
63022
|
+
__decorateElement(_init17, 4, "size", _size_dec4, _DeesButtonExit, _size4);
|
|
63023
|
+
__decorateElement(_init17, 4, "label", _label_dec4, _DeesButtonExit, _label4);
|
|
63024
|
+
__decorateElement(_init17, 4, "disabled", _disabled_dec5, _DeesButtonExit, _disabled5);
|
|
63025
|
+
_DeesButtonExit = __decorateElement(_init17, 0, "DeesButtonExit", _DeesButtonExit_decorators, _DeesButtonExit);
|
|
62910
63026
|
__name(_DeesButtonExit, "DeesButtonExit");
|
|
62911
63027
|
// DEMO
|
|
62912
63028
|
__publicField(_DeesButtonExit, "demo", /* @__PURE__ */ __name(() => b3`
|
|
@@ -62947,7 +63063,7 @@ __publicField(_DeesButtonExit, "styles", [
|
|
|
62947
63063
|
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
|
|
62948
63064
|
`
|
|
62949
63065
|
]);
|
|
62950
|
-
__runInitializers(
|
|
63066
|
+
__runInitializers(_init17, 1, _DeesButtonExit);
|
|
62951
63067
|
var DeesButtonExit = _DeesButtonExit;
|
|
62952
63068
|
|
|
62953
63069
|
// ts_web/elements/00group-input/dees-input-text/dees-input-text.demo.ts
|
|
@@ -62968,7 +63084,7 @@ var demoFunc12 = /* @__PURE__ */ __name(() => demoPage("Text input", "A compact
|
|
|
62968
63084
|
`), "demoFunc");
|
|
62969
63085
|
|
|
62970
63086
|
// ts_web/elements/00group-input/dees-input-text/dees-input-text.ts
|
|
62971
|
-
var _maxLength_dec2, _placeholder_dec2, _autocomplete_dec, _validConfirmed_dec, _frameless_dec, _validationFunction_dec2, _validationText_dec2, _validationState_dec2, _showPasswordBool_dec, _isPasswordBool_dec, _value_dec2, _type_dec3,
|
|
63087
|
+
var _maxLength_dec2, _placeholder_dec2, _autocomplete_dec, _validConfirmed_dec, _frameless_dec, _validationFunction_dec2, _validationText_dec2, _validationState_dec2, _showPasswordBool_dec, _isPasswordBool_dec, _value_dec2, _type_dec3, _a18, _DeesInputText_decorators, _init18, _type3, _value2, _isPasswordBool, _showPasswordBool, _validationState2, _validationText2, _validationFunction2, _frameless, _validConfirmed, _autocomplete, _placeholder2, _maxLength2;
|
|
62972
63088
|
var defaultInputModes = {
|
|
62973
63089
|
text: "text",
|
|
62974
63090
|
number: "decimal",
|
|
@@ -62979,7 +63095,7 @@ var defaultInputModes = {
|
|
|
62979
63095
|
password: "text"
|
|
62980
63096
|
};
|
|
62981
63097
|
_DeesInputText_decorators = [customElement("dees-input-text")];
|
|
62982
|
-
var _DeesInputText = class _DeesInputText extends (
|
|
63098
|
+
var _DeesInputText = class _DeesInputText extends (_a18 = DeesInputBase, _type_dec3 = [n5({
|
|
62983
63099
|
type: String,
|
|
62984
63100
|
reflect: true
|
|
62985
63101
|
})], _value_dec2 = [n5({
|
|
@@ -62999,22 +63115,22 @@ var _DeesInputText = class _DeesInputText extends (_a17 = DeesInputBase, _type_d
|
|
|
62999
63115
|
})], _validationFunction_dec2 = [n5({ attribute: false })], _frameless_dec = [n5({
|
|
63000
63116
|
type: Boolean,
|
|
63001
63117
|
reflect: true
|
|
63002
|
-
})], _validConfirmed_dec = [n5({ attribute: false })], _autocomplete_dec = [n5({ type: String, reflect: true })], _placeholder_dec2 = [n5({ type: String, reflect: true })], _maxLength_dec2 = [n5({ type: Number, reflect: true })],
|
|
63118
|
+
})], _validConfirmed_dec = [n5({ attribute: false })], _autocomplete_dec = [n5({ type: String, reflect: true })], _placeholder_dec2 = [n5({ type: String, reflect: true })], _maxLength_dec2 = [n5({ type: Number, reflect: true })], _a18) {
|
|
63003
63119
|
constructor() {
|
|
63004
63120
|
super(...arguments);
|
|
63005
63121
|
__publicField(this, "t", dcLocalize(this));
|
|
63006
|
-
__privateAdd(this, _type3, __runInitializers(
|
|
63007
|
-
__privateAdd(this, _value2, __runInitializers(
|
|
63008
|
-
__privateAdd(this, _isPasswordBool, __runInitializers(
|
|
63009
|
-
__privateAdd(this, _showPasswordBool, __runInitializers(
|
|
63010
|
-
__privateAdd(this, _validationState2, __runInitializers(
|
|
63011
|
-
__privateAdd(this, _validationText2, __runInitializers(
|
|
63012
|
-
__privateAdd(this, _validationFunction2, __runInitializers(
|
|
63013
|
-
__privateAdd(this, _frameless, __runInitializers(
|
|
63014
|
-
__privateAdd(this, _validConfirmed, __runInitializers(
|
|
63015
|
-
__privateAdd(this, _autocomplete, __runInitializers(
|
|
63016
|
-
__privateAdd(this, _placeholder2, __runInitializers(
|
|
63017
|
-
__privateAdd(this, _maxLength2, __runInitializers(
|
|
63122
|
+
__privateAdd(this, _type3, __runInitializers(_init18, 8, this, "text")), __runInitializers(_init18, 11, this);
|
|
63123
|
+
__privateAdd(this, _value2, __runInitializers(_init18, 12, this, "")), __runInitializers(_init18, 15, this);
|
|
63124
|
+
__privateAdd(this, _isPasswordBool, __runInitializers(_init18, 16, this, false)), __runInitializers(_init18, 19, this);
|
|
63125
|
+
__privateAdd(this, _showPasswordBool, __runInitializers(_init18, 20, this, false)), __runInitializers(_init18, 23, this);
|
|
63126
|
+
__privateAdd(this, _validationState2, __runInitializers(_init18, 24, this)), __runInitializers(_init18, 27, this);
|
|
63127
|
+
__privateAdd(this, _validationText2, __runInitializers(_init18, 28, this, "")), __runInitializers(_init18, 31, this);
|
|
63128
|
+
__privateAdd(this, _validationFunction2, __runInitializers(_init18, 32, this)), __runInitializers(_init18, 35, this);
|
|
63129
|
+
__privateAdd(this, _frameless, __runInitializers(_init18, 36, this, false)), __runInitializers(_init18, 39, this);
|
|
63130
|
+
__privateAdd(this, _validConfirmed, __runInitializers(_init18, 40, this, false)), __runInitializers(_init18, 43, this);
|
|
63131
|
+
__privateAdd(this, _autocomplete, __runInitializers(_init18, 44, this, "")), __runInitializers(_init18, 47, this);
|
|
63132
|
+
__privateAdd(this, _placeholder2, __runInitializers(_init18, 48, this, "")), __runInitializers(_init18, 51, this);
|
|
63133
|
+
__privateAdd(this, _maxLength2, __runInitializers(_init18, 52, this, -1)), __runInitializers(_init18, 55, this);
|
|
63018
63134
|
__publicField(this, "validTimeout");
|
|
63019
63135
|
}
|
|
63020
63136
|
render() {
|
|
@@ -63189,7 +63305,7 @@ var _DeesInputText = class _DeesInputText extends (_a17 = DeesInputBase, _type_d
|
|
|
63189
63305
|
textInput.blur();
|
|
63190
63306
|
}
|
|
63191
63307
|
};
|
|
63192
|
-
|
|
63308
|
+
_init18 = __decoratorStart(_a18);
|
|
63193
63309
|
_type3 = new WeakMap();
|
|
63194
63310
|
_value2 = new WeakMap();
|
|
63195
63311
|
_isPasswordBool = new WeakMap();
|
|
@@ -63202,19 +63318,19 @@ _validConfirmed = new WeakMap();
|
|
|
63202
63318
|
_autocomplete = new WeakMap();
|
|
63203
63319
|
_placeholder2 = new WeakMap();
|
|
63204
63320
|
_maxLength2 = new WeakMap();
|
|
63205
|
-
__decorateElement(
|
|
63206
|
-
__decorateElement(
|
|
63207
|
-
__decorateElement(
|
|
63208
|
-
__decorateElement(
|
|
63209
|
-
__decorateElement(
|
|
63210
|
-
__decorateElement(
|
|
63211
|
-
__decorateElement(
|
|
63212
|
-
__decorateElement(
|
|
63213
|
-
__decorateElement(
|
|
63214
|
-
__decorateElement(
|
|
63215
|
-
__decorateElement(
|
|
63216
|
-
__decorateElement(
|
|
63217
|
-
_DeesInputText = __decorateElement(
|
|
63321
|
+
__decorateElement(_init18, 4, "type", _type_dec3, _DeesInputText, _type3);
|
|
63322
|
+
__decorateElement(_init18, 4, "value", _value_dec2, _DeesInputText, _value2);
|
|
63323
|
+
__decorateElement(_init18, 4, "isPasswordBool", _isPasswordBool_dec, _DeesInputText, _isPasswordBool);
|
|
63324
|
+
__decorateElement(_init18, 4, "showPasswordBool", _showPasswordBool_dec, _DeesInputText, _showPasswordBool);
|
|
63325
|
+
__decorateElement(_init18, 4, "validationState", _validationState_dec2, _DeesInputText, _validationState2);
|
|
63326
|
+
__decorateElement(_init18, 4, "validationText", _validationText_dec2, _DeesInputText, _validationText2);
|
|
63327
|
+
__decorateElement(_init18, 4, "validationFunction", _validationFunction_dec2, _DeesInputText, _validationFunction2);
|
|
63328
|
+
__decorateElement(_init18, 4, "frameless", _frameless_dec, _DeesInputText, _frameless);
|
|
63329
|
+
__decorateElement(_init18, 4, "validConfirmed", _validConfirmed_dec, _DeesInputText, _validConfirmed);
|
|
63330
|
+
__decorateElement(_init18, 4, "autocomplete", _autocomplete_dec, _DeesInputText, _autocomplete);
|
|
63331
|
+
__decorateElement(_init18, 4, "placeholder", _placeholder_dec2, _DeesInputText, _placeholder2);
|
|
63332
|
+
__decorateElement(_init18, 4, "maxLength", _maxLength_dec2, _DeesInputText, _maxLength2);
|
|
63333
|
+
_DeesInputText = __decorateElement(_init18, 0, "DeesInputText", _DeesInputText_decorators, _DeesInputText);
|
|
63218
63334
|
__name(_DeesInputText, "DeesInputText");
|
|
63219
63335
|
__publicField(_DeesInputText, "demo", demoFunc12);
|
|
63220
63336
|
__publicField(_DeesInputText, "demoGroups", ["Input"]);
|
|
@@ -63422,51 +63538,52 @@ __publicField(_DeesInputText, "styles", [
|
|
|
63422
63538
|
.field-messages { grid-column: 1 / -1; text-align: left; }
|
|
63423
63539
|
`
|
|
63424
63540
|
]);
|
|
63425
|
-
__runInitializers(
|
|
63541
|
+
__runInitializers(_init18, 1, _DeesInputText);
|
|
63426
63542
|
var DeesInputText = _DeesInputText;
|
|
63427
63543
|
|
|
63428
63544
|
// ts_web/elements/00group-overlay/dees-modal/dees-modal.ts
|
|
63429
|
-
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,
|
|
63545
|
+
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, _a19, _DeesModal_decorators, _init19, _subheading, _description2, _sidebar, _heading, _content, _menuOptions, _width2, _height, _maxWidth, _minWidth, _showCloseButton, _showHelpButton, _onHelp, _beforeClose, _questionOnly, _mobileFullscreen, _contentPadding, _primaryActionType2, _modalZIndex, _promptPending;
|
|
63430
63546
|
_DeesModal_decorators = [customElement("dees-modal")];
|
|
63431
|
-
var _DeesModal = class _DeesModal extends (
|
|
63547
|
+
var _DeesModal = class _DeesModal extends (_a19 = DeesElement, _subheading_dec = [n5({ type: String, reflect: true })], _description_dec2 = [n5({ attribute: false })], _sidebar_dec = [n5({ attribute: false })], _heading_dec = [n5({
|
|
63432
63548
|
type: String,
|
|
63433
63549
|
reflect: true
|
|
63434
|
-
})], _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()],
|
|
63550
|
+
})], _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()], _a19) {
|
|
63435
63551
|
constructor() {
|
|
63436
63552
|
super();
|
|
63437
63553
|
// INSTANCE
|
|
63438
63554
|
__publicField(this, "t", dcLocalize(this));
|
|
63439
|
-
__privateAdd(this, _subheading, __runInitializers(
|
|
63440
|
-
__privateAdd(this, _description2, __runInitializers(
|
|
63441
|
-
__privateAdd(this, _sidebar, __runInitializers(
|
|
63442
|
-
__privateAdd(this, _heading, __runInitializers(
|
|
63443
|
-
__privateAdd(this, _content, __runInitializers(
|
|
63444
|
-
__privateAdd(this, _menuOptions, __runInitializers(
|
|
63445
|
-
__privateAdd(this, _width2, __runInitializers(
|
|
63446
|
-
__privateAdd(this, _height, __runInitializers(
|
|
63447
|
-
__privateAdd(this, _maxWidth, __runInitializers(
|
|
63448
|
-
__privateAdd(this, _minWidth, __runInitializers(
|
|
63449
|
-
__privateAdd(this, _showCloseButton, __runInitializers(
|
|
63450
|
-
__privateAdd(this, _showHelpButton, __runInitializers(
|
|
63451
|
-
__privateAdd(this, _onHelp, __runInitializers(
|
|
63452
|
-
__privateAdd(this, _beforeClose, __runInitializers(
|
|
63453
|
-
__privateAdd(this, _questionOnly, __runInitializers(
|
|
63454
|
-
__privateAdd(this, _mobileFullscreen, __runInitializers(
|
|
63455
|
-
__privateAdd(this, _contentPadding, __runInitializers(
|
|
63456
|
-
__privateAdd(this, _primaryActionType2, __runInitializers(
|
|
63457
|
-
__privateAdd(this, _modalZIndex, __runInitializers(
|
|
63458
|
-
__privateAdd(this, _promptPending, __runInitializers(
|
|
63555
|
+
__privateAdd(this, _subheading, __runInitializers(_init19, 8, this, "")), __runInitializers(_init19, 11, this);
|
|
63556
|
+
__privateAdd(this, _description2, __runInitializers(_init19, 12, this)), __runInitializers(_init19, 15, this);
|
|
63557
|
+
__privateAdd(this, _sidebar, __runInitializers(_init19, 16, this)), __runInitializers(_init19, 19, this);
|
|
63558
|
+
__privateAdd(this, _heading, __runInitializers(_init19, 20, this, "")), __runInitializers(_init19, 23, this);
|
|
63559
|
+
__privateAdd(this, _content, __runInitializers(_init19, 24, this)), __runInitializers(_init19, 27, this);
|
|
63560
|
+
__privateAdd(this, _menuOptions, __runInitializers(_init19, 28, this, [])), __runInitializers(_init19, 31, this);
|
|
63561
|
+
__privateAdd(this, _width2, __runInitializers(_init19, 32, this, "medium")), __runInitializers(_init19, 35, this);
|
|
63562
|
+
__privateAdd(this, _height, __runInitializers(_init19, 36, this)), __runInitializers(_init19, 39, this);
|
|
63563
|
+
__privateAdd(this, _maxWidth, __runInitializers(_init19, 40, this)), __runInitializers(_init19, 43, this);
|
|
63564
|
+
__privateAdd(this, _minWidth, __runInitializers(_init19, 44, this)), __runInitializers(_init19, 47, this);
|
|
63565
|
+
__privateAdd(this, _showCloseButton, __runInitializers(_init19, 48, this, true)), __runInitializers(_init19, 51, this);
|
|
63566
|
+
__privateAdd(this, _showHelpButton, __runInitializers(_init19, 52, this, false)), __runInitializers(_init19, 55, this);
|
|
63567
|
+
__privateAdd(this, _onHelp, __runInitializers(_init19, 56, this)), __runInitializers(_init19, 59, this);
|
|
63568
|
+
__privateAdd(this, _beforeClose, __runInitializers(_init19, 60, this)), __runInitializers(_init19, 63, this);
|
|
63569
|
+
__privateAdd(this, _questionOnly, __runInitializers(_init19, 64, this, false)), __runInitializers(_init19, 67, this);
|
|
63570
|
+
__privateAdd(this, _mobileFullscreen, __runInitializers(_init19, 68, this, false)), __runInitializers(_init19, 71, this);
|
|
63571
|
+
__privateAdd(this, _contentPadding, __runInitializers(_init19, 72, this, 24)), __runInitializers(_init19, 75, this);
|
|
63572
|
+
__privateAdd(this, _primaryActionType2, __runInitializers(_init19, 76, this, "accent")), __runInitializers(_init19, 79, this);
|
|
63573
|
+
__privateAdd(this, _modalZIndex, __runInitializers(_init19, 80, this, 1e3)), __runInitializers(_init19, 83, this);
|
|
63574
|
+
__privateAdd(this, _promptPending, __runInitializers(_init19, 84, this, false)), __runInitializers(_init19, 87, this);
|
|
63459
63575
|
__publicField(this, "destroyPromise");
|
|
63460
63576
|
/** The marker the content was last rendered before; a new one means a new body. */
|
|
63461
63577
|
__publicField(this, "renderedContentEnd");
|
|
63462
63578
|
/** The content's own render, connected and disconnected with the dialog. */
|
|
63463
63579
|
__publicField(this, "contentPart");
|
|
63464
63580
|
/**
|
|
63465
|
-
*
|
|
63466
|
-
*
|
|
63467
|
-
* waits for it, from a press as from
|
|
63581
|
+
* The forms of the dialog's content, also those inside the shadow roots of
|
|
63582
|
+
* the components it is made of. The first field that refuses reports why and
|
|
63583
|
+
* takes the focus, and the primary action waits for it, from a press as from
|
|
63584
|
+
* Enter.
|
|
63468
63585
|
*/
|
|
63469
|
-
__publicField(this, "
|
|
63586
|
+
__publicField(this, "formGate", new FormGate(this));
|
|
63470
63587
|
__publicField(this, "closeRequestPending", false);
|
|
63471
63588
|
}
|
|
63472
63589
|
/**
|
|
@@ -63630,7 +63747,7 @@ var _DeesModal = class _DeesModal extends (_a18 = DeesElement, _subheading_dec =
|
|
|
63630
63747
|
${this.menuOptions.length ? b3`
|
|
63631
63748
|
<dees-actionfooter class="bottomButtons" .actions=${this.menuOptions} .context=${this}
|
|
63632
63749
|
.primaryActionType=${this.primaryActionType} .disabled=${this.promptPending}
|
|
63633
|
-
.beforePrimary=${this.
|
|
63750
|
+
.beforePrimary=${this.formGate.accept} source="modal-menu"></dees-actionfooter>
|
|
63634
63751
|
` : ""}
|
|
63635
63752
|
</section>
|
|
63636
63753
|
</dialog>
|
|
@@ -63809,7 +63926,7 @@ var _DeesModal = class _DeesModal extends (_a18 = DeesElement, _subheading_dec =
|
|
|
63809
63926
|
if (this.onHelp) await this.onHelp();
|
|
63810
63927
|
}
|
|
63811
63928
|
};
|
|
63812
|
-
|
|
63929
|
+
_init19 = __decoratorStart(_a19);
|
|
63813
63930
|
_subheading = new WeakMap();
|
|
63814
63931
|
_description2 = new WeakMap();
|
|
63815
63932
|
_sidebar = new WeakMap();
|
|
@@ -63830,27 +63947,27 @@ _contentPadding = new WeakMap();
|
|
|
63830
63947
|
_primaryActionType2 = new WeakMap();
|
|
63831
63948
|
_modalZIndex = new WeakMap();
|
|
63832
63949
|
_promptPending = new WeakMap();
|
|
63833
|
-
__decorateElement(
|
|
63834
|
-
__decorateElement(
|
|
63835
|
-
__decorateElement(
|
|
63836
|
-
__decorateElement(
|
|
63837
|
-
__decorateElement(
|
|
63838
|
-
__decorateElement(
|
|
63839
|
-
__decorateElement(
|
|
63840
|
-
__decorateElement(
|
|
63841
|
-
__decorateElement(
|
|
63842
|
-
__decorateElement(
|
|
63843
|
-
__decorateElement(
|
|
63844
|
-
__decorateElement(
|
|
63845
|
-
__decorateElement(
|
|
63846
|
-
__decorateElement(
|
|
63847
|
-
__decorateElement(
|
|
63848
|
-
__decorateElement(
|
|
63849
|
-
__decorateElement(
|
|
63850
|
-
__decorateElement(
|
|
63851
|
-
__decorateElement(
|
|
63852
|
-
__decorateElement(
|
|
63853
|
-
_DeesModal = __decorateElement(
|
|
63950
|
+
__decorateElement(_init19, 4, "subheading", _subheading_dec, _DeesModal, _subheading);
|
|
63951
|
+
__decorateElement(_init19, 4, "description", _description_dec2, _DeesModal, _description2);
|
|
63952
|
+
__decorateElement(_init19, 4, "sidebar", _sidebar_dec, _DeesModal, _sidebar);
|
|
63953
|
+
__decorateElement(_init19, 4, "heading", _heading_dec, _DeesModal, _heading);
|
|
63954
|
+
__decorateElement(_init19, 4, "content", _content_dec, _DeesModal, _content);
|
|
63955
|
+
__decorateElement(_init19, 4, "menuOptions", _menuOptions_dec, _DeesModal, _menuOptions);
|
|
63956
|
+
__decorateElement(_init19, 4, "width", _width_dec2, _DeesModal, _width2);
|
|
63957
|
+
__decorateElement(_init19, 4, "height", _height_dec, _DeesModal, _height);
|
|
63958
|
+
__decorateElement(_init19, 4, "maxWidth", _maxWidth_dec, _DeesModal, _maxWidth);
|
|
63959
|
+
__decorateElement(_init19, 4, "minWidth", _minWidth_dec, _DeesModal, _minWidth);
|
|
63960
|
+
__decorateElement(_init19, 4, "showCloseButton", _showCloseButton_dec, _DeesModal, _showCloseButton);
|
|
63961
|
+
__decorateElement(_init19, 4, "showHelpButton", _showHelpButton_dec, _DeesModal, _showHelpButton);
|
|
63962
|
+
__decorateElement(_init19, 4, "onHelp", _onHelp_dec, _DeesModal, _onHelp);
|
|
63963
|
+
__decorateElement(_init19, 4, "beforeClose", _beforeClose_dec, _DeesModal, _beforeClose);
|
|
63964
|
+
__decorateElement(_init19, 4, "questionOnly", _questionOnly_dec, _DeesModal, _questionOnly);
|
|
63965
|
+
__decorateElement(_init19, 4, "mobileFullscreen", _mobileFullscreen_dec, _DeesModal, _mobileFullscreen);
|
|
63966
|
+
__decorateElement(_init19, 4, "contentPadding", _contentPadding_dec, _DeesModal, _contentPadding);
|
|
63967
|
+
__decorateElement(_init19, 4, "primaryActionType", _primaryActionType_dec2, _DeesModal, _primaryActionType2);
|
|
63968
|
+
__decorateElement(_init19, 4, "modalZIndex", _modalZIndex_dec, _DeesModal, _modalZIndex);
|
|
63969
|
+
__decorateElement(_init19, 4, "promptPending", _promptPending_dec, _DeesModal, _promptPending);
|
|
63970
|
+
_DeesModal = __decorateElement(_init19, 0, "DeesModal", _DeesModal_decorators, _DeesModal);
|
|
63854
63971
|
__name(_DeesModal, "DeesModal");
|
|
63855
63972
|
// STATIC
|
|
63856
63973
|
__publicField(_DeesModal, "demo", demoFunc11);
|
|
@@ -63971,7 +64088,7 @@ __publicField(_DeesModal, "styles", [
|
|
|
63971
64088
|
@media (prefers-reduced-transparency: reduce) { .modalContainer::backdrop { backdrop-filter: none; } }
|
|
63972
64089
|
`
|
|
63973
64090
|
]);
|
|
63974
|
-
__runInitializers(
|
|
64091
|
+
__runInitializers(_init19, 1, _DeesModal);
|
|
63975
64092
|
var DeesModal = _DeesModal;
|
|
63976
64093
|
|
|
63977
64094
|
export {
|
|
@@ -64052,6 +64169,7 @@ export {
|
|
|
64052
64169
|
visibleRect,
|
|
64053
64170
|
scrollAncestors,
|
|
64054
64171
|
listenForScrollAround,
|
|
64172
|
+
formConnectEvent,
|
|
64055
64173
|
DeesSpinner,
|
|
64056
64174
|
actionControlStyles,
|
|
64057
64175
|
barActionStyles,
|
|
@@ -65865,4 +65983,4 @@ lucide/dist/esm/lucide.js:
|
|
|
65865
65983
|
* See the LICENSE file in the root directory of this source tree.
|
|
65866
65984
|
*)
|
|
65867
65985
|
*/
|
|
65868
|
-
//# sourceMappingURL=chunk-
|
|
65986
|
+
//# sourceMappingURL=chunk-EL3KNDIB.js.map
|