@signature.digital/catalog 1.3.0 → 1.5.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 +445 -308
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/index.d.ts +1 -0
- package/dist_ts_web/elements/index.js +2 -1
- package/dist_ts_web/elements/sdig-contextmenu/index.d.ts +1 -0
- package/dist_ts_web/elements/sdig-contextmenu/index.js +2 -0
- package/dist_ts_web/elements/sdig-contextmenu/sdig-contextmenu.d.ts +36 -0
- package/dist_ts_web/elements/sdig-contextmenu/sdig-contextmenu.js +283 -0
- package/dist_ts_web/elements/sdig-workspace/sdig-workspace-compose.d.ts +20 -2
- package/dist_ts_web/elements/sdig-workspace/sdig-workspace-compose.js +237 -26
- package/dist_ts_web/elements/sdig-workspace/sdig-workspace.shared.d.ts +2 -0
- package/dist_ts_web/elements/sdig-workspace/sdig-workspace.shared.js +4 -4
- package/dist_watch/bundle.js +587 -182
- package/dist_watch/bundle.js.map +4 -4
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/index.ts +1 -0
- package/ts_web/elements/sdig-contextmenu/index.ts +1 -0
- package/ts_web/elements/sdig-contextmenu/sdig-contextmenu.ts +234 -0
- package/ts_web/elements/sdig-workspace/sdig-workspace-compose.ts +249 -17
- package/ts_web/elements/sdig-workspace/sdig-workspace.shared.ts +5 -3
package/dist_watch/bundle.js
CHANGED
|
@@ -2189,7 +2189,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
2189
2189
|
hash: null
|
|
2190
2190
|
};
|
|
2191
2191
|
this.loop = function(time) {
|
|
2192
|
-
var
|
|
2192
|
+
var _a12 = _this, $el = _a12.$el, ctx = _a12.ctx;
|
|
2193
2193
|
if (!ctx.start) {
|
|
2194
2194
|
ctx.start = time;
|
|
2195
2195
|
}
|
|
@@ -2285,7 +2285,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
2285
2285
|
if (!canUseDOM) {
|
|
2286
2286
|
return;
|
|
2287
2287
|
}
|
|
2288
|
-
var
|
|
2288
|
+
var _a12 = this, $el = _a12.$el, ctx = _a12.ctx, currentOptions = _a12.opts;
|
|
2289
2289
|
var $trigger = ctx.$trigger;
|
|
2290
2290
|
var opts = __assign2({}, currentOptions, options || {});
|
|
2291
2291
|
var optOffset = opts.offset, vertical = opts.vertical, horizontal = opts.horizontal;
|
|
@@ -2352,7 +2352,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
2352
2352
|
if (gotoEnd === void 0) {
|
|
2353
2353
|
gotoEnd = false;
|
|
2354
2354
|
}
|
|
2355
|
-
var
|
|
2355
|
+
var _a12 = this, $el = _a12.$el, ctx = _a12.ctx;
|
|
2356
2356
|
var pos = ctx.pos;
|
|
2357
2357
|
if (!$el || !ctx.progress) {
|
|
2358
2358
|
return;
|
|
@@ -2408,7 +2408,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
2408
2408
|
ctx.id = SweetScroll3.raf(this.loop);
|
|
2409
2409
|
};
|
|
2410
2410
|
SweetScroll3.prototype.complete = function() {
|
|
2411
|
-
var
|
|
2411
|
+
var _a12 = this, $el = _a12.$el, ctx = _a12.ctx;
|
|
2412
2412
|
var hash = ctx.hash, cancel = ctx.cancel, opts = ctx.opts, pos = ctx.pos, $trigger = ctx.$trigger;
|
|
2413
2413
|
if (!$el || !opts) {
|
|
2414
2414
|
return;
|
|
@@ -2434,18 +2434,18 @@ var require_sweet_scroll = __commonJS({
|
|
|
2434
2434
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
2435
2435
|
args[_i - 2] = arguments[_i];
|
|
2436
2436
|
}
|
|
2437
|
-
var
|
|
2437
|
+
var _a12;
|
|
2438
2438
|
var callback = options[type5];
|
|
2439
2439
|
var callbackResult;
|
|
2440
2440
|
var methodResult;
|
|
2441
2441
|
if (isFunction2(callback)) {
|
|
2442
2442
|
callbackResult = callback.apply(this, args.concat([this]));
|
|
2443
2443
|
}
|
|
2444
|
-
methodResult = (
|
|
2444
|
+
methodResult = (_a12 = this)["on" + (type5[0].toUpperCase() + type5.slice(1))].apply(_a12, args);
|
|
2445
2445
|
return callbackResult !== void 0 ? callbackResult : methodResult;
|
|
2446
2446
|
};
|
|
2447
2447
|
SweetScroll3.prototype.bind = function(click, stop) {
|
|
2448
|
-
var
|
|
2448
|
+
var _a12 = this, $el = _a12.$el, opts = _a12.ctx.opts;
|
|
2449
2449
|
if ($el) {
|
|
2450
2450
|
if (click) {
|
|
2451
2451
|
addEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
|
|
@@ -2456,7 +2456,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
2456
2456
|
}
|
|
2457
2457
|
};
|
|
2458
2458
|
SweetScroll3.prototype.unbind = function(click, stop) {
|
|
2459
|
-
var
|
|
2459
|
+
var _a12 = this, $el = _a12.$el, opts = _a12.ctx.opts;
|
|
2460
2460
|
if ($el) {
|
|
2461
2461
|
if (click) {
|
|
2462
2462
|
removeEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
|
|
@@ -40593,7 +40593,7 @@ var Subscription = (function() {
|
|
|
40593
40593
|
}
|
|
40594
40594
|
__name(Subscription2, "Subscription");
|
|
40595
40595
|
Subscription2.prototype.unsubscribe = function() {
|
|
40596
|
-
var e_1,
|
|
40596
|
+
var e_1, _a12, e_2, _b;
|
|
40597
40597
|
var errors;
|
|
40598
40598
|
if (!this.closed) {
|
|
40599
40599
|
this.closed = true;
|
|
@@ -40610,7 +40610,7 @@ var Subscription = (function() {
|
|
|
40610
40610
|
e_1 = { error: e_1_1 };
|
|
40611
40611
|
} finally {
|
|
40612
40612
|
try {
|
|
40613
|
-
if (_parentage_1_1 && !_parentage_1_1.done && (
|
|
40613
|
+
if (_parentage_1_1 && !_parentage_1_1.done && (_a12 = _parentage_1.return)) _a12.call(_parentage_1);
|
|
40614
40614
|
} finally {
|
|
40615
40615
|
if (e_1) throw e_1.error;
|
|
40616
40616
|
}
|
|
@@ -40660,7 +40660,7 @@ var Subscription = (function() {
|
|
|
40660
40660
|
}
|
|
40661
40661
|
};
|
|
40662
40662
|
Subscription2.prototype.add = function(teardown) {
|
|
40663
|
-
var
|
|
40663
|
+
var _a12;
|
|
40664
40664
|
if (teardown && teardown !== this) {
|
|
40665
40665
|
if (this.closed) {
|
|
40666
40666
|
execFinalizer(teardown);
|
|
@@ -40671,7 +40671,7 @@ var Subscription = (function() {
|
|
|
40671
40671
|
}
|
|
40672
40672
|
teardown._addParent(this);
|
|
40673
40673
|
}
|
|
40674
|
-
(this._finalizers = (
|
|
40674
|
+
(this._finalizers = (_a12 = this._finalizers) !== null && _a12 !== void 0 ? _a12 : []).push(teardown);
|
|
40675
40675
|
}
|
|
40676
40676
|
}
|
|
40677
40677
|
};
|
|
@@ -40797,7 +40797,7 @@ function errorContext(cb) {
|
|
|
40797
40797
|
}
|
|
40798
40798
|
cb();
|
|
40799
40799
|
if (isRoot) {
|
|
40800
|
-
var
|
|
40800
|
+
var _a12 = context, errorThrown = _a12.errorThrown, error = _a12.error;
|
|
40801
40801
|
context = null;
|
|
40802
40802
|
if (errorThrown) {
|
|
40803
40803
|
throw error;
|
|
@@ -41041,7 +41041,7 @@ var Observable = (function() {
|
|
|
41041
41041
|
var _this = this;
|
|
41042
41042
|
var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
|
|
41043
41043
|
errorContext(function() {
|
|
41044
|
-
var
|
|
41044
|
+
var _a12 = _this, operator = _a12.operator, source = _a12.source;
|
|
41045
41045
|
subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
|
|
41046
41046
|
});
|
|
41047
41047
|
return subscriber;
|
|
@@ -41073,8 +41073,8 @@ var Observable = (function() {
|
|
|
41073
41073
|
});
|
|
41074
41074
|
};
|
|
41075
41075
|
Observable2.prototype._subscribe = function(subscriber) {
|
|
41076
|
-
var
|
|
41077
|
-
return (
|
|
41076
|
+
var _a12;
|
|
41077
|
+
return (_a12 = this.source) === null || _a12 === void 0 ? void 0 : _a12.subscribe(subscriber);
|
|
41078
41078
|
};
|
|
41079
41079
|
Observable2.prototype[observable] = function() {
|
|
41080
41080
|
return this;
|
|
@@ -41106,8 +41106,8 @@ var Observable = (function() {
|
|
|
41106
41106
|
return Observable2;
|
|
41107
41107
|
})();
|
|
41108
41108
|
function getPromiseCtor(promiseCtor) {
|
|
41109
|
-
var
|
|
41110
|
-
return (
|
|
41109
|
+
var _a12;
|
|
41110
|
+
return (_a12 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a12 !== void 0 ? _a12 : Promise;
|
|
41111
41111
|
}
|
|
41112
41112
|
__name(getPromiseCtor, "getPromiseCtor");
|
|
41113
41113
|
function isObserver(value2) {
|
|
@@ -41180,11 +41180,11 @@ var OperatorSubscriber = (function(_super) {
|
|
|
41180
41180
|
}
|
|
41181
41181
|
__name(OperatorSubscriber2, "OperatorSubscriber");
|
|
41182
41182
|
OperatorSubscriber2.prototype.unsubscribe = function() {
|
|
41183
|
-
var
|
|
41183
|
+
var _a12;
|
|
41184
41184
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
41185
41185
|
var closed_1 = this.closed;
|
|
41186
41186
|
_super.prototype.unsubscribe.call(this);
|
|
41187
|
-
!closed_1 && ((
|
|
41187
|
+
!closed_1 && ((_a12 = this.onFinalize) === null || _a12 === void 0 ? void 0 : _a12.call(this));
|
|
41188
41188
|
}
|
|
41189
41189
|
};
|
|
41190
41190
|
return OperatorSubscriber2;
|
|
@@ -41226,7 +41226,7 @@ var Subject = (function(_super) {
|
|
|
41226
41226
|
Subject2.prototype.next = function(value2) {
|
|
41227
41227
|
var _this = this;
|
|
41228
41228
|
errorContext(function() {
|
|
41229
|
-
var e_1,
|
|
41229
|
+
var e_1, _a12;
|
|
41230
41230
|
_this._throwIfClosed();
|
|
41231
41231
|
if (!_this.isStopped) {
|
|
41232
41232
|
if (!_this.currentObservers) {
|
|
@@ -41241,7 +41241,7 @@ var Subject = (function(_super) {
|
|
|
41241
41241
|
e_1 = { error: e_1_1 };
|
|
41242
41242
|
} finally {
|
|
41243
41243
|
try {
|
|
41244
|
-
if (_c && !_c.done && (
|
|
41244
|
+
if (_c && !_c.done && (_a12 = _b.return)) _a12.call(_b);
|
|
41245
41245
|
} finally {
|
|
41246
41246
|
if (e_1) throw e_1.error;
|
|
41247
41247
|
}
|
|
@@ -41282,8 +41282,8 @@ var Subject = (function(_super) {
|
|
|
41282
41282
|
};
|
|
41283
41283
|
Object.defineProperty(Subject2.prototype, "observed", {
|
|
41284
41284
|
get: /* @__PURE__ */ __name(function() {
|
|
41285
|
-
var
|
|
41286
|
-
return ((
|
|
41285
|
+
var _a12;
|
|
41286
|
+
return ((_a12 = this.observers) === null || _a12 === void 0 ? void 0 : _a12.length) > 0;
|
|
41287
41287
|
}, "get"),
|
|
41288
41288
|
enumerable: false,
|
|
41289
41289
|
configurable: true
|
|
@@ -41299,7 +41299,7 @@ var Subject = (function(_super) {
|
|
|
41299
41299
|
};
|
|
41300
41300
|
Subject2.prototype._innerSubscribe = function(subscriber) {
|
|
41301
41301
|
var _this = this;
|
|
41302
|
-
var
|
|
41302
|
+
var _a12 = this, hasError = _a12.hasError, isStopped = _a12.isStopped, observers = _a12.observers;
|
|
41303
41303
|
if (hasError || isStopped) {
|
|
41304
41304
|
return EMPTY_SUBSCRIPTION;
|
|
41305
41305
|
}
|
|
@@ -41311,7 +41311,7 @@ var Subject = (function(_super) {
|
|
|
41311
41311
|
});
|
|
41312
41312
|
};
|
|
41313
41313
|
Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
41314
|
-
var
|
|
41314
|
+
var _a12 = this, hasError = _a12.hasError, thrownError = _a12.thrownError, isStopped = _a12.isStopped;
|
|
41315
41315
|
if (hasError) {
|
|
41316
41316
|
subscriber.error(thrownError);
|
|
41317
41317
|
} else if (isStopped) {
|
|
@@ -41338,20 +41338,20 @@ var AnonymousSubject = (function(_super) {
|
|
|
41338
41338
|
}
|
|
41339
41339
|
__name(AnonymousSubject2, "AnonymousSubject");
|
|
41340
41340
|
AnonymousSubject2.prototype.next = function(value2) {
|
|
41341
|
-
var
|
|
41342
|
-
(_b = (
|
|
41341
|
+
var _a12, _b;
|
|
41342
|
+
(_b = (_a12 = this.destination) === null || _a12 === void 0 ? void 0 : _a12.next) === null || _b === void 0 ? void 0 : _b.call(_a12, value2);
|
|
41343
41343
|
};
|
|
41344
41344
|
AnonymousSubject2.prototype.error = function(err) {
|
|
41345
|
-
var
|
|
41346
|
-
(_b = (
|
|
41345
|
+
var _a12, _b;
|
|
41346
|
+
(_b = (_a12 = this.destination) === null || _a12 === void 0 ? void 0 : _a12.error) === null || _b === void 0 ? void 0 : _b.call(_a12, err);
|
|
41347
41347
|
};
|
|
41348
41348
|
AnonymousSubject2.prototype.complete = function() {
|
|
41349
|
-
var
|
|
41350
|
-
(_b = (
|
|
41349
|
+
var _a12, _b;
|
|
41350
|
+
(_b = (_a12 = this.destination) === null || _a12 === void 0 ? void 0 : _a12.complete) === null || _b === void 0 ? void 0 : _b.call(_a12);
|
|
41351
41351
|
};
|
|
41352
41352
|
AnonymousSubject2.prototype._subscribe = function(subscriber) {
|
|
41353
|
-
var
|
|
41354
|
-
return (_b = (
|
|
41353
|
+
var _a12, _b;
|
|
41354
|
+
return (_b = (_a12 = this.source) === null || _a12 === void 0 ? void 0 : _a12.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
|
|
41355
41355
|
};
|
|
41356
41356
|
return AnonymousSubject2;
|
|
41357
41357
|
})(Subject);
|
|
@@ -41378,7 +41378,7 @@ var BehaviorSubject = (function(_super) {
|
|
|
41378
41378
|
return subscription;
|
|
41379
41379
|
};
|
|
41380
41380
|
BehaviorSubject2.prototype.getValue = function() {
|
|
41381
|
-
var
|
|
41381
|
+
var _a12 = this, hasError = _a12.hasError, thrownError = _a12.thrownError, _value = _a12._value;
|
|
41382
41382
|
if (hasError) {
|
|
41383
41383
|
throw thrownError;
|
|
41384
41384
|
}
|
|
@@ -41425,7 +41425,7 @@ var ReplaySubject = (function(_super) {
|
|
|
41425
41425
|
}
|
|
41426
41426
|
__name(ReplaySubject2, "ReplaySubject");
|
|
41427
41427
|
ReplaySubject2.prototype.next = function(value2) {
|
|
41428
|
-
var
|
|
41428
|
+
var _a12 = this, isStopped = _a12.isStopped, _buffer = _a12._buffer, _infiniteTimeWindow = _a12._infiniteTimeWindow, _timestampProvider = _a12._timestampProvider, _windowTime = _a12._windowTime;
|
|
41429
41429
|
if (!isStopped) {
|
|
41430
41430
|
_buffer.push(value2);
|
|
41431
41431
|
!_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
|
|
@@ -41437,7 +41437,7 @@ var ReplaySubject = (function(_super) {
|
|
|
41437
41437
|
this._throwIfClosed();
|
|
41438
41438
|
this._trimBuffer();
|
|
41439
41439
|
var subscription = this._innerSubscribe(subscriber);
|
|
41440
|
-
var
|
|
41440
|
+
var _a12 = this, _infiniteTimeWindow = _a12._infiniteTimeWindow, _buffer = _a12._buffer;
|
|
41441
41441
|
var copy = _buffer.slice();
|
|
41442
41442
|
for (var i11 = 0; i11 < copy.length && !subscriber.closed; i11 += _infiniteTimeWindow ? 1 : 2) {
|
|
41443
41443
|
subscriber.next(copy[i11]);
|
|
@@ -41446,7 +41446,7 @@ var ReplaySubject = (function(_super) {
|
|
|
41446
41446
|
return subscription;
|
|
41447
41447
|
};
|
|
41448
41448
|
ReplaySubject2.prototype._trimBuffer = function() {
|
|
41449
|
-
var
|
|
41449
|
+
var _a12 = this, _bufferSize = _a12._bufferSize, _timestampProvider = _a12._timestampProvider, _buffer = _a12._buffer, _infiniteTimeWindow = _a12._infiniteTimeWindow;
|
|
41450
41450
|
var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
|
|
41451
41451
|
_bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
|
|
41452
41452
|
if (!_infiniteTimeWindow) {
|
|
@@ -41509,7 +41509,7 @@ var AsyncAction = (function(_super) {
|
|
|
41509
41509
|
}
|
|
41510
41510
|
__name(AsyncAction2, "AsyncAction");
|
|
41511
41511
|
AsyncAction2.prototype.schedule = function(state, delay2) {
|
|
41512
|
-
var
|
|
41512
|
+
var _a12;
|
|
41513
41513
|
if (delay2 === void 0) {
|
|
41514
41514
|
delay2 = 0;
|
|
41515
41515
|
}
|
|
@@ -41524,7 +41524,7 @@ var AsyncAction = (function(_super) {
|
|
|
41524
41524
|
}
|
|
41525
41525
|
this.pending = true;
|
|
41526
41526
|
this.delay = delay2;
|
|
41527
|
-
this.id = (
|
|
41527
|
+
this.id = (_a12 = this.id) !== null && _a12 !== void 0 ? _a12 : this.requestAsyncId(scheduler, this.id, delay2);
|
|
41528
41528
|
return this;
|
|
41529
41529
|
};
|
|
41530
41530
|
AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay2) {
|
|
@@ -41573,7 +41573,7 @@ var AsyncAction = (function(_super) {
|
|
|
41573
41573
|
};
|
|
41574
41574
|
AsyncAction2.prototype.unsubscribe = function() {
|
|
41575
41575
|
if (!this.closed) {
|
|
41576
|
-
var
|
|
41576
|
+
var _a12 = this, id = _a12.id, scheduler = _a12.scheduler;
|
|
41577
41577
|
var actions = scheduler.actions;
|
|
41578
41578
|
this.work = this.state = this.scheduler = null;
|
|
41579
41579
|
this.pending = false;
|
|
@@ -41721,7 +41721,7 @@ __name(isIterable, "isIterable");
|
|
|
41721
41721
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
|
|
41722
41722
|
function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
41723
41723
|
return __asyncGenerator(this, arguments, /* @__PURE__ */ __name(function readableStreamLikeToAsyncGenerator_1() {
|
|
41724
|
-
var reader,
|
|
41724
|
+
var reader, _a12, value2, done;
|
|
41725
41725
|
return __generator(this, function(_b) {
|
|
41726
41726
|
switch (_b.label) {
|
|
41727
41727
|
case 0:
|
|
@@ -41734,7 +41734,7 @@ function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
|
41734
41734
|
if (false) return [3, 8];
|
|
41735
41735
|
return [4, __await(reader.read())];
|
|
41736
41736
|
case 3:
|
|
41737
|
-
|
|
41737
|
+
_a12 = _b.sent(), value2 = _a12.value, done = _a12.done;
|
|
41738
41738
|
if (!done) return [3, 5];
|
|
41739
41739
|
return [4, __await(void 0)];
|
|
41740
41740
|
case 4:
|
|
@@ -41825,7 +41825,7 @@ function fromPromise(promise) {
|
|
|
41825
41825
|
__name(fromPromise, "fromPromise");
|
|
41826
41826
|
function fromIterable(iterable) {
|
|
41827
41827
|
return new Observable(function(subscriber) {
|
|
41828
|
-
var e_1,
|
|
41828
|
+
var e_1, _a12;
|
|
41829
41829
|
try {
|
|
41830
41830
|
for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
|
|
41831
41831
|
var value2 = iterable_1_1.value;
|
|
@@ -41838,7 +41838,7 @@ function fromIterable(iterable) {
|
|
|
41838
41838
|
e_1 = { error: e_1_1 };
|
|
41839
41839
|
} finally {
|
|
41840
41840
|
try {
|
|
41841
|
-
if (iterable_1_1 && !iterable_1_1.done && (
|
|
41841
|
+
if (iterable_1_1 && !iterable_1_1.done && (_a12 = iterable_1.return)) _a12.call(iterable_1);
|
|
41842
41842
|
} finally {
|
|
41843
41843
|
if (e_1) throw e_1.error;
|
|
41844
41844
|
}
|
|
@@ -41861,7 +41861,7 @@ function fromReadableStreamLike(readableStream) {
|
|
|
41861
41861
|
__name(fromReadableStreamLike, "fromReadableStreamLike");
|
|
41862
41862
|
function process2(asyncIterable, subscriber) {
|
|
41863
41863
|
var asyncIterable_1, asyncIterable_1_1;
|
|
41864
|
-
var e_2,
|
|
41864
|
+
var e_2, _a12;
|
|
41865
41865
|
return __awaiter(this, void 0, void 0, function() {
|
|
41866
41866
|
var value2, e_2_1;
|
|
41867
41867
|
return __generator(this, function(_b) {
|
|
@@ -41890,8 +41890,8 @@ function process2(asyncIterable, subscriber) {
|
|
|
41890
41890
|
return [3, 11];
|
|
41891
41891
|
case 6:
|
|
41892
41892
|
_b.trys.push([6, , 9, 10]);
|
|
41893
|
-
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (
|
|
41894
|
-
return [4,
|
|
41893
|
+
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a12 = asyncIterable_1.return))) return [3, 8];
|
|
41894
|
+
return [4, _a12.call(asyncIterable_1)];
|
|
41895
41895
|
case 7:
|
|
41896
41896
|
_b.sent();
|
|
41897
41897
|
_b.label = 8;
|
|
@@ -42007,11 +42007,11 @@ function scheduleIterable(input, scheduler) {
|
|
|
42007
42007
|
executeSchedule(subscriber, scheduler, function() {
|
|
42008
42008
|
iterator2 = input[iterator]();
|
|
42009
42009
|
executeSchedule(subscriber, scheduler, function() {
|
|
42010
|
-
var
|
|
42010
|
+
var _a12;
|
|
42011
42011
|
var value2;
|
|
42012
42012
|
var done;
|
|
42013
42013
|
try {
|
|
42014
|
-
|
|
42014
|
+
_a12 = iterator2.next(), value2 = _a12.value, done = _a12.done;
|
|
42015
42015
|
} catch (err) {
|
|
42016
42016
|
subscriber.error(err);
|
|
42017
42017
|
return;
|
|
@@ -42174,7 +42174,7 @@ function combineLatest() {
|
|
|
42174
42174
|
}
|
|
42175
42175
|
var scheduler = popScheduler(args);
|
|
42176
42176
|
var resultSelector = popResultSelector(args);
|
|
42177
|
-
var
|
|
42177
|
+
var _a12 = argsArgArrayOrObject(args), observables = _a12.args, keys2 = _a12.keys;
|
|
42178
42178
|
if (observables.length === 0) {
|
|
42179
42179
|
return from([], scheduler);
|
|
42180
42180
|
}
|
|
@@ -42348,11 +42348,11 @@ function fromEvent(target, eventName, options, resultSelector) {
|
|
|
42348
42348
|
if (resultSelector) {
|
|
42349
42349
|
return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
|
|
42350
42350
|
}
|
|
42351
|
-
var
|
|
42351
|
+
var _a12 = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) {
|
|
42352
42352
|
return function(handler2) {
|
|
42353
42353
|
return target[methodName](eventName, handler2, options);
|
|
42354
42354
|
};
|
|
42355
|
-
}) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add2 =
|
|
42355
|
+
}) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add2 = _a12[0], remove2 = _a12[1];
|
|
42356
42356
|
if (!add2) {
|
|
42357
42357
|
if (isArrayLike(target)) {
|
|
42358
42358
|
return mergeMap(function(subTarget) {
|
|
@@ -42493,7 +42493,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
42493
42493
|
var buffers = [];
|
|
42494
42494
|
var count2 = 0;
|
|
42495
42495
|
source.subscribe(createOperatorSubscriber(subscriber, function(value2) {
|
|
42496
|
-
var e_1,
|
|
42496
|
+
var e_1, _a12, e_2, _b;
|
|
42497
42497
|
var toEmit = null;
|
|
42498
42498
|
if (count2++ % startBufferEvery === 0) {
|
|
42499
42499
|
buffers.push([]);
|
|
@@ -42511,7 +42511,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
42511
42511
|
e_1 = { error: e_1_1 };
|
|
42512
42512
|
} finally {
|
|
42513
42513
|
try {
|
|
42514
|
-
if (buffers_1_1 && !buffers_1_1.done && (
|
|
42514
|
+
if (buffers_1_1 && !buffers_1_1.done && (_a12 = buffers_1.return)) _a12.call(buffers_1);
|
|
42515
42515
|
} finally {
|
|
42516
42516
|
if (e_1) throw e_1.error;
|
|
42517
42517
|
}
|
|
@@ -42534,7 +42534,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
42534
42534
|
}
|
|
42535
42535
|
}
|
|
42536
42536
|
}, function() {
|
|
42537
|
-
var e_3,
|
|
42537
|
+
var e_3, _a12;
|
|
42538
42538
|
try {
|
|
42539
42539
|
for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) {
|
|
42540
42540
|
var buffer2 = buffers_2_1.value;
|
|
@@ -42544,7 +42544,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
42544
42544
|
e_3 = { error: e_3_1 };
|
|
42545
42545
|
} finally {
|
|
42546
42546
|
try {
|
|
42547
|
-
if (buffers_2_1 && !buffers_2_1.done && (
|
|
42547
|
+
if (buffers_2_1 && !buffers_2_1.done && (_a12 = buffers_2.return)) _a12.call(buffers_2);
|
|
42548
42548
|
} finally {
|
|
42549
42549
|
if (e_3) throw e_3.error;
|
|
42550
42550
|
}
|
|
@@ -42559,12 +42559,12 @@ __name(bufferCount, "bufferCount");
|
|
|
42559
42559
|
|
|
42560
42560
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js
|
|
42561
42561
|
function bufferTime(bufferTimeSpan) {
|
|
42562
|
-
var
|
|
42562
|
+
var _a12, _b;
|
|
42563
42563
|
var otherArgs = [];
|
|
42564
42564
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
42565
42565
|
otherArgs[_i - 1] = arguments[_i];
|
|
42566
42566
|
}
|
|
42567
|
-
var scheduler = (
|
|
42567
|
+
var scheduler = (_a12 = popScheduler(otherArgs)) !== null && _a12 !== void 0 ? _a12 : asyncScheduler;
|
|
42568
42568
|
var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
|
|
42569
42569
|
var maxBufferSize = otherArgs[1] || Infinity;
|
|
42570
42570
|
return operate(function(source, subscriber) {
|
|
@@ -42599,7 +42599,7 @@ function bufferTime(bufferTimeSpan) {
|
|
|
42599
42599
|
}
|
|
42600
42600
|
startBuffer();
|
|
42601
42601
|
var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function(value2) {
|
|
42602
|
-
var e_1,
|
|
42602
|
+
var e_1, _a13;
|
|
42603
42603
|
var recordsCopy = bufferRecords.slice();
|
|
42604
42604
|
try {
|
|
42605
42605
|
for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
|
|
@@ -42612,7 +42612,7 @@ function bufferTime(bufferTimeSpan) {
|
|
|
42612
42612
|
e_1 = { error: e_1_1 };
|
|
42613
42613
|
} finally {
|
|
42614
42614
|
try {
|
|
42615
|
-
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (
|
|
42615
|
+
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a13 = recordsCopy_1.return)) _a13.call(recordsCopy_1);
|
|
42616
42616
|
} finally {
|
|
42617
42617
|
if (e_1) throw e_1.error;
|
|
42618
42618
|
}
|
|
@@ -42740,9 +42740,9 @@ function share(options) {
|
|
|
42740
42740
|
if (options === void 0) {
|
|
42741
42741
|
options = {};
|
|
42742
42742
|
}
|
|
42743
|
-
var
|
|
42743
|
+
var _a12 = options.connector, connector = _a12 === void 0 ? function() {
|
|
42744
42744
|
return new Subject();
|
|
42745
|
-
} :
|
|
42745
|
+
} : _a12, _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;
|
|
42746
42746
|
return function(wrapperSource) {
|
|
42747
42747
|
var connection;
|
|
42748
42748
|
var resetConnection;
|
|
@@ -42825,11 +42825,11 @@ __name(handleReset, "handleReset");
|
|
|
42825
42825
|
|
|
42826
42826
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js
|
|
42827
42827
|
function shareReplay(configOrBufferSize, windowTime2, scheduler) {
|
|
42828
|
-
var
|
|
42828
|
+
var _a12, _b, _c;
|
|
42829
42829
|
var bufferSize;
|
|
42830
42830
|
var refCount2 = false;
|
|
42831
42831
|
if (configOrBufferSize && typeof configOrBufferSize === "object") {
|
|
42832
|
-
|
|
42832
|
+
_a12 = configOrBufferSize.bufferSize, bufferSize = _a12 === void 0 ? Infinity : _a12, _b = configOrBufferSize.windowTime, windowTime2 = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount2 = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler;
|
|
42833
42833
|
} else {
|
|
42834
42834
|
bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity;
|
|
42835
42835
|
}
|
|
@@ -42871,7 +42871,7 @@ __name(takeUntil, "takeUntil");
|
|
|
42871
42871
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throttle.js
|
|
42872
42872
|
function throttle(durationSelector, config3) {
|
|
42873
42873
|
return operate(function(source, subscriber) {
|
|
42874
|
-
var
|
|
42874
|
+
var _a12 = config3 !== null && config3 !== void 0 ? config3 : {}, _b = _a12.leading, leading = _b === void 0 ? true : _b, _c = _a12.trailing, trailing = _c === void 0 ? false : _c;
|
|
42875
42875
|
var hasValue = false;
|
|
42876
42876
|
var sendValue = null;
|
|
42877
42877
|
var throttled = null;
|
|
@@ -91531,6 +91531,7 @@ var setupWccTools = /* @__PURE__ */ __name((configOrElements, pagesArg) => {
|
|
|
91531
91531
|
// ts_web/elements/index.ts
|
|
91532
91532
|
var elements_exports = {};
|
|
91533
91533
|
__export(elements_exports, {
|
|
91534
|
+
SdigContextmenu: () => SdigContextmenu,
|
|
91534
91535
|
SdigWorkspace: () => SdigWorkspace,
|
|
91535
91536
|
SdigWorkspaceAudit: () => SdigWorkspaceAudit,
|
|
91536
91537
|
SdigWorkspaceCompose: () => SdigWorkspaceCompose,
|
|
@@ -91553,10 +91554,222 @@ __export(elements_exports, {
|
|
|
91553
91554
|
workspaceDemoFrame: () => workspaceDemoFrame
|
|
91554
91555
|
});
|
|
91555
91556
|
|
|
91557
|
+
// ts_web/elements/sdig-contextmenu/sdig-contextmenu.ts
|
|
91558
|
+
var _position_dec, _actions_dec, _title_dec, _anchorY_dec, _anchorX_dec, _a, _SdigContextmenu_decorators, _init, _anchorX, _anchorY, _title, _actions, _position;
|
|
91559
|
+
_SdigContextmenu_decorators = [customElement("sdig-contextmenu")];
|
|
91560
|
+
var _SdigContextmenu = class _SdigContextmenu extends (_a = DeesElement, _anchorX_dec = [n5({ type: Number })], _anchorY_dec = [n5({ type: Number })], _title_dec = [n5({ type: String })], _actions_dec = [n5({ attribute: false })], _position_dec = [r5()], _a) {
|
|
91561
|
+
constructor() {
|
|
91562
|
+
super(...arguments);
|
|
91563
|
+
__privateAdd(this, _anchorX, __runInitializers(_init, 8, this, 0)), __runInitializers(_init, 11, this);
|
|
91564
|
+
__privateAdd(this, _anchorY, __runInitializers(_init, 12, this, 0)), __runInitializers(_init, 15, this);
|
|
91565
|
+
__privateAdd(this, _title, __runInitializers(_init, 16, this, "")), __runInitializers(_init, 19, this);
|
|
91566
|
+
__privateAdd(this, _actions, __runInitializers(_init, 20, this, [])), __runInitializers(_init, 23, this);
|
|
91567
|
+
__privateAdd(this, _position, __runInitializers(_init, 24, this, { x: 0, y: 0, ready: false })), __runInitializers(_init, 27, this);
|
|
91568
|
+
__publicField(this, "positionUpdateFrame", null);
|
|
91569
|
+
__publicField(this, "connectedCallback", /* @__PURE__ */ __name(async () => {
|
|
91570
|
+
await super.connectedCallback();
|
|
91571
|
+
window.addEventListener("resize", this.queuePositionUpdate);
|
|
91572
|
+
}, "connectedCallback"));
|
|
91573
|
+
__publicField(this, "disconnectedCallback", /* @__PURE__ */ __name(async () => {
|
|
91574
|
+
window.removeEventListener("resize", this.queuePositionUpdate);
|
|
91575
|
+
if (this.positionUpdateFrame !== null) {
|
|
91576
|
+
globalThis.cancelAnimationFrame(this.positionUpdateFrame);
|
|
91577
|
+
this.positionUpdateFrame = null;
|
|
91578
|
+
}
|
|
91579
|
+
await super.disconnectedCallback();
|
|
91580
|
+
}, "disconnectedCallback"));
|
|
91581
|
+
__publicField(this, "queuePositionUpdate", /* @__PURE__ */ __name(() => {
|
|
91582
|
+
if (this.positionUpdateFrame !== null) return;
|
|
91583
|
+
this.positionUpdateFrame = globalThis.requestAnimationFrame(() => {
|
|
91584
|
+
this.positionUpdateFrame = null;
|
|
91585
|
+
this.positionMenu();
|
|
91586
|
+
});
|
|
91587
|
+
}, "queuePositionUpdate"));
|
|
91588
|
+
}
|
|
91589
|
+
updated() {
|
|
91590
|
+
this.queuePositionUpdate();
|
|
91591
|
+
}
|
|
91592
|
+
positionMenu() {
|
|
91593
|
+
const menu = this.shadowRoot?.querySelector(".menu");
|
|
91594
|
+
if (!menu) return;
|
|
91595
|
+
const margin = 8;
|
|
91596
|
+
const gap = 4;
|
|
91597
|
+
const rect = menu.getBoundingClientRect();
|
|
91598
|
+
const viewportWidth = globalThis.innerWidth;
|
|
91599
|
+
const viewportHeight = globalThis.innerHeight;
|
|
91600
|
+
const spaceRight = viewportWidth - this.anchorX - margin;
|
|
91601
|
+
const spaceLeft = this.anchorX - margin;
|
|
91602
|
+
const spaceBelow = viewportHeight - this.anchorY - margin;
|
|
91603
|
+
const spaceAbove = this.anchorY - margin;
|
|
91604
|
+
let x4 = this.anchorX + gap;
|
|
91605
|
+
let y4 = this.anchorY + gap;
|
|
91606
|
+
if (spaceRight < rect.width + gap && spaceLeft > spaceRight) {
|
|
91607
|
+
x4 = this.anchorX - rect.width - gap;
|
|
91608
|
+
}
|
|
91609
|
+
if (spaceBelow < rect.height + gap && spaceAbove > spaceBelow) {
|
|
91610
|
+
y4 = this.anchorY - rect.height - gap;
|
|
91611
|
+
}
|
|
91612
|
+
const maxX = Math.max(margin, viewportWidth - rect.width - margin);
|
|
91613
|
+
const maxY = Math.max(margin, viewportHeight - rect.height - margin);
|
|
91614
|
+
const nextPosition = {
|
|
91615
|
+
x: Math.round(Math.max(margin, Math.min(maxX, x4))),
|
|
91616
|
+
y: Math.round(Math.max(margin, Math.min(maxY, y4))),
|
|
91617
|
+
ready: true
|
|
91618
|
+
};
|
|
91619
|
+
if (this.position.x !== nextPosition.x || this.position.y !== nextPosition.y || this.position.ready !== nextPosition.ready) {
|
|
91620
|
+
this.position = nextPosition;
|
|
91621
|
+
}
|
|
91622
|
+
}
|
|
91623
|
+
selectAction(action) {
|
|
91624
|
+
if (action.disabled) return;
|
|
91625
|
+
this.dispatchEvent(new CustomEvent("contextmenu-action", {
|
|
91626
|
+
detail: { id: action.id, action },
|
|
91627
|
+
bubbles: true,
|
|
91628
|
+
composed: true
|
|
91629
|
+
}));
|
|
91630
|
+
}
|
|
91631
|
+
render() {
|
|
91632
|
+
const x4 = this.position.ready ? this.position.x : this.anchorX;
|
|
91633
|
+
const y4 = this.position.ready ? this.position.y : this.anchorY;
|
|
91634
|
+
return b2`
|
|
91635
|
+
<div class="menu" style="left: ${x4}px; top: ${y4}px; visibility: ${this.position.ready ? "visible" : "hidden"};" @click=${(event) => event.stopPropagation()} @contextmenu=${(event) => event.preventDefault()}>
|
|
91636
|
+
${this.title ? b2`<div class="title">${this.title}</div>` : ""}
|
|
91637
|
+
${this.actions.map((action) => b2`
|
|
91638
|
+
<button class="action ${action.danger ? "danger" : ""}" ?disabled=${action.disabled} @click=${() => this.selectAction(action)}>
|
|
91639
|
+
<span class="action-mark ${action.selected ? "selected" : ""}"></span>
|
|
91640
|
+
<span class="action-copy">
|
|
91641
|
+
<span class="action-label">${action.label}</span>
|
|
91642
|
+
${action.description ? b2`<span class="action-description">${action.description}</span>` : ""}
|
|
91643
|
+
</span>
|
|
91644
|
+
</button>
|
|
91645
|
+
`)}
|
|
91646
|
+
</div>
|
|
91647
|
+
`;
|
|
91648
|
+
}
|
|
91649
|
+
};
|
|
91650
|
+
_init = __decoratorStart(_a);
|
|
91651
|
+
_anchorX = new WeakMap();
|
|
91652
|
+
_anchorY = new WeakMap();
|
|
91653
|
+
_title = new WeakMap();
|
|
91654
|
+
_actions = new WeakMap();
|
|
91655
|
+
_position = new WeakMap();
|
|
91656
|
+
__decorateElement(_init, 4, "anchorX", _anchorX_dec, _SdigContextmenu, _anchorX);
|
|
91657
|
+
__decorateElement(_init, 4, "anchorY", _anchorY_dec, _SdigContextmenu, _anchorY);
|
|
91658
|
+
__decorateElement(_init, 4, "title", _title_dec, _SdigContextmenu, _title);
|
|
91659
|
+
__decorateElement(_init, 4, "actions", _actions_dec, _SdigContextmenu, _actions);
|
|
91660
|
+
__decorateElement(_init, 4, "position", _position_dec, _SdigContextmenu, _position);
|
|
91661
|
+
_SdigContextmenu = __decorateElement(_init, 0, "SdigContextmenu", _SdigContextmenu_decorators, _SdigContextmenu);
|
|
91662
|
+
__name(_SdigContextmenu, "SdigContextmenu");
|
|
91663
|
+
__publicField(_SdigContextmenu, "demo", /* @__PURE__ */ __name(() => b2`
|
|
91664
|
+
<div style="position: relative; min-height: 260px; padding: 24px; --bg-card: hsl(0 0% 7%); --bg-input: hsl(0 0% 9%); --border: hsl(0 0% 14.9%); --border-subtle: hsl(0 0% 11%); --text: hsl(0 0% 98%); --text-sec: hsl(0 0% 63.9%); --text-muted: hsl(0 0% 48%); --hover: rgba(255,255,255,0.06); --error: #ef4444;">
|
|
91665
|
+
<sdig-contextmenu
|
|
91666
|
+
.anchorX=${80}
|
|
91667
|
+
.anchorY=${70}
|
|
91668
|
+
.title=${"Recipient"}
|
|
91669
|
+
.actions=${[
|
|
91670
|
+
{ id: "signer", label: "Needs signature", selected: true },
|
|
91671
|
+
{ id: "copy", label: "Final copy only" },
|
|
91672
|
+
{ id: "updates", label: "Every step update" }
|
|
91673
|
+
]}
|
|
91674
|
+
></sdig-contextmenu>
|
|
91675
|
+
</div>
|
|
91676
|
+
`, "demo"));
|
|
91677
|
+
__publicField(_SdigContextmenu, "demoGroups", ["Signature Digital Primitives"]);
|
|
91678
|
+
__publicField(_SdigContextmenu, "styles", i`
|
|
91679
|
+
:host { display: contents; }
|
|
91680
|
+
|
|
91681
|
+
.menu {
|
|
91682
|
+
position: fixed;
|
|
91683
|
+
z-index: 1000;
|
|
91684
|
+
min-width: 190px;
|
|
91685
|
+
max-width: min(280px, calc(100vw - 16px));
|
|
91686
|
+
padding: 6px;
|
|
91687
|
+
border: 1px solid var(--border, hsl(0 0% 14.9%));
|
|
91688
|
+
border-radius: 8px;
|
|
91689
|
+
background: var(--bg-card, hsl(0 0% 7%));
|
|
91690
|
+
color: var(--text, hsl(0 0% 98%));
|
|
91691
|
+
box-shadow: 0 16px 42px rgba(0,0,0,0.36);
|
|
91692
|
+
box-sizing: border-box;
|
|
91693
|
+
}
|
|
91694
|
+
|
|
91695
|
+
.title {
|
|
91696
|
+
padding: 7px 8px;
|
|
91697
|
+
margin-bottom: 4px;
|
|
91698
|
+
border-bottom: 1px solid var(--border-subtle, hsl(0 0% 11%));
|
|
91699
|
+
font-size: 11px;
|
|
91700
|
+
font-weight: 700;
|
|
91701
|
+
color: var(--text-sec, hsl(0 0% 63.9%));
|
|
91702
|
+
}
|
|
91703
|
+
|
|
91704
|
+
.action {
|
|
91705
|
+
width: 100%;
|
|
91706
|
+
min-height: 34px;
|
|
91707
|
+
padding: 8px;
|
|
91708
|
+
border: 0;
|
|
91709
|
+
border-radius: 6px;
|
|
91710
|
+
background: transparent;
|
|
91711
|
+
color: var(--text-sec, hsl(0 0% 63.9%));
|
|
91712
|
+
display: flex;
|
|
91713
|
+
align-items: center;
|
|
91714
|
+
gap: 8px;
|
|
91715
|
+
text-align: left;
|
|
91716
|
+
font: inherit;
|
|
91717
|
+
font-size: 11px;
|
|
91718
|
+
cursor: pointer;
|
|
91719
|
+
}
|
|
91720
|
+
|
|
91721
|
+
.action:hover { background: var(--hover, rgba(255,255,255,0.06)); color: var(--text, hsl(0 0% 98%)); }
|
|
91722
|
+
.action.danger { color: var(--error, #ef4444); }
|
|
91723
|
+
.action[disabled] { opacity: 0.45; cursor: not-allowed; }
|
|
91724
|
+
.action[disabled]:hover { background: transparent; color: var(--text-sec, hsl(0 0% 63.9%)); }
|
|
91725
|
+
|
|
91726
|
+
.action-mark {
|
|
91727
|
+
width: 12px;
|
|
91728
|
+
height: 12px;
|
|
91729
|
+
display: inline-flex;
|
|
91730
|
+
align-items: center;
|
|
91731
|
+
justify-content: center;
|
|
91732
|
+
flex-shrink: 0;
|
|
91733
|
+
}
|
|
91734
|
+
|
|
91735
|
+
.action-mark.selected::before {
|
|
91736
|
+
content: '';
|
|
91737
|
+
width: 7px;
|
|
91738
|
+
height: 4px;
|
|
91739
|
+
border-left: 1.5px solid currentColor;
|
|
91740
|
+
border-bottom: 1.5px solid currentColor;
|
|
91741
|
+
transform: rotate(-45deg) translate(1px, -1px);
|
|
91742
|
+
}
|
|
91743
|
+
|
|
91744
|
+
.action-copy {
|
|
91745
|
+
min-width: 0;
|
|
91746
|
+
display: flex;
|
|
91747
|
+
flex-direction: column;
|
|
91748
|
+
gap: 2px;
|
|
91749
|
+
}
|
|
91750
|
+
|
|
91751
|
+
.action-label {
|
|
91752
|
+
overflow: hidden;
|
|
91753
|
+
white-space: nowrap;
|
|
91754
|
+
text-overflow: ellipsis;
|
|
91755
|
+
}
|
|
91756
|
+
|
|
91757
|
+
.action-description {
|
|
91758
|
+
overflow: hidden;
|
|
91759
|
+
white-space: nowrap;
|
|
91760
|
+
text-overflow: ellipsis;
|
|
91761
|
+
color: var(--text-muted, hsl(0 0% 48%));
|
|
91762
|
+
font-size: 10px;
|
|
91763
|
+
line-height: 1.25;
|
|
91764
|
+
}
|
|
91765
|
+
`);
|
|
91766
|
+
__runInitializers(_init, 1, _SdigContextmenu);
|
|
91767
|
+
var SdigContextmenu = _SdigContextmenu;
|
|
91768
|
+
|
|
91556
91769
|
// ts_web/elements/sdig-signbox/sdig-signbox.ts
|
|
91557
|
-
var _SignBox_decorators,
|
|
91770
|
+
var _SignBox_decorators, _init2, _a2;
|
|
91558
91771
|
_SignBox_decorators = [customElement("sdig-signbox")];
|
|
91559
|
-
var SignBox = class extends (
|
|
91772
|
+
var SignBox = class extends (_a2 = DeesElement) {
|
|
91560
91773
|
static {
|
|
91561
91774
|
__name(this, "SignBox");
|
|
91562
91775
|
}
|
|
@@ -91656,9 +91869,9 @@ var SignBox = class extends (_a = DeesElement) {
|
|
|
91656
91869
|
`;
|
|
91657
91870
|
}
|
|
91658
91871
|
};
|
|
91659
|
-
|
|
91660
|
-
SignBox = __decorateElement(
|
|
91661
|
-
__runInitializers(
|
|
91872
|
+
_init2 = __decoratorStart(_a2);
|
|
91873
|
+
SignBox = __decorateElement(_init2, 0, "SignBox", _SignBox_decorators, SignBox);
|
|
91874
|
+
__runInitializers(_init2, 1, SignBox);
|
|
91662
91875
|
|
|
91663
91876
|
// node_modules/.pnpm/signature_pad@5.1.3/node_modules/signature_pad/dist/signature_pad.js
|
|
91664
91877
|
var Point = class {
|
|
@@ -92447,9 +92660,9 @@ var SignaturePad = class _SignaturePad extends SignatureEventTarget {
|
|
|
92447
92660
|
var signaturePad = SignaturePad;
|
|
92448
92661
|
|
|
92449
92662
|
// ts_web/elements/sdig-signpad/sdig-signpad.ts
|
|
92450
|
-
var _SignPad_decorators,
|
|
92663
|
+
var _SignPad_decorators, _init3, _a3;
|
|
92451
92664
|
_SignPad_decorators = [customElement("sdig-signpad")];
|
|
92452
|
-
var SignPad = class extends (
|
|
92665
|
+
var SignPad = class extends (_a3 = DeesElement) {
|
|
92453
92666
|
static {
|
|
92454
92667
|
__name(this, "SignPad");
|
|
92455
92668
|
}
|
|
@@ -92543,9 +92756,9 @@ var SignPad = class extends (_a2 = DeesElement) {
|
|
|
92543
92756
|
await this.fromData(data);
|
|
92544
92757
|
}
|
|
92545
92758
|
};
|
|
92546
|
-
|
|
92547
|
-
SignPad = __decorateElement(
|
|
92548
|
-
__runInitializers(
|
|
92759
|
+
_init3 = __decoratorStart(_a3);
|
|
92760
|
+
SignPad = __decorateElement(_init3, 0, "SignPad", _SignPad_decorators, SignPad);
|
|
92761
|
+
__runInitializers(_init3, 1, SignPad);
|
|
92549
92762
|
|
|
92550
92763
|
// node_modules/.pnpm/@design.estate+dees-catalog@3.81.0_@tiptap+pm@2.27.2/node_modules/@design.estate/dees-catalog/ts_web/elements/00theme.ts
|
|
92551
92764
|
var themeDefaults = {
|
|
@@ -131883,7 +132096,7 @@ var demoFunc = /* @__PURE__ */ __name(() => {
|
|
|
131883
132096
|
}, "demoFunc");
|
|
131884
132097
|
|
|
131885
132098
|
// node_modules/.pnpm/@design.estate+dees-catalog@3.81.0_@tiptap+pm@2.27.2/node_modules/@design.estate/dees-catalog/ts_web/elements/00group-utility/dees-icon/dees-icon.ts
|
|
131886
|
-
var _strokeWidth_dec, _color_dec, _iconSize_dec, _icon_dec, _iconFA_dec,
|
|
132099
|
+
var _strokeWidth_dec, _color_dec, _iconSize_dec, _icon_dec, _iconFA_dec, _a4, _DeesIcon_decorators, _init4, _iconFA, _icon, _iconSize, _color, _strokeWidth;
|
|
131887
132100
|
var faIcons2 = {
|
|
131888
132101
|
// normal
|
|
131889
132102
|
arrowRight: faArrowRight,
|
|
@@ -131957,7 +132170,7 @@ function limitCacheSize() {
|
|
|
131957
132170
|
}
|
|
131958
132171
|
__name(limitCacheSize, "limitCacheSize");
|
|
131959
132172
|
_DeesIcon_decorators = [customElement("dees-icon")];
|
|
131960
|
-
var _DeesIcon = class _DeesIcon extends (
|
|
132173
|
+
var _DeesIcon = class _DeesIcon extends (_a4 = DeesElement, _iconFA_dec = [n5({
|
|
131961
132174
|
type: String,
|
|
131962
132175
|
converter: {
|
|
131963
132176
|
// Convert attribute string to property (for reflected attributes)
|
|
@@ -131971,14 +132184,14 @@ var _DeesIcon = class _DeesIcon extends (_a3 = DeesElement, _iconFA_dec = [n5({
|
|
|
131971
132184
|
fromAttribute: /* @__PURE__ */ __name((value2) => value2, "fromAttribute"),
|
|
131972
132185
|
toAttribute: /* @__PURE__ */ __name((value2) => value2, "toAttribute")
|
|
131973
132186
|
}
|
|
131974
|
-
})], _iconSize_dec = [n5({ type: Number })], _color_dec = [n5({ type: String })], _strokeWidth_dec = [n5({ type: Number })],
|
|
132187
|
+
})], _iconSize_dec = [n5({ type: Number })], _color_dec = [n5({ type: String })], _strokeWidth_dec = [n5({ type: Number })], _a4) {
|
|
131975
132188
|
constructor() {
|
|
131976
132189
|
super();
|
|
131977
|
-
__privateAdd(this, _iconFA, __runInitializers(
|
|
131978
|
-
__privateAdd(this, _icon, __runInitializers(
|
|
131979
|
-
__privateAdd(this, _iconSize, __runInitializers(
|
|
131980
|
-
__privateAdd(this, _color, __runInitializers(
|
|
131981
|
-
__privateAdd(this, _strokeWidth, __runInitializers(
|
|
132190
|
+
__privateAdd(this, _iconFA, __runInitializers(_init4, 8, this)), __runInitializers(_init4, 11, this);
|
|
132191
|
+
__privateAdd(this, _icon, __runInitializers(_init4, 12, this)), __runInitializers(_init4, 15, this);
|
|
132192
|
+
__privateAdd(this, _iconSize, __runInitializers(_init4, 16, this)), __runInitializers(_init4, 19, this);
|
|
132193
|
+
__privateAdd(this, _color, __runInitializers(_init4, 20, this, "currentColor")), __runInitializers(_init4, 23, this);
|
|
132194
|
+
__privateAdd(this, _strokeWidth, __runInitializers(_init4, 24, this, 2)), __runInitializers(_init4, 27, this);
|
|
131982
132195
|
// For tracking when we need to re-render
|
|
131983
132196
|
__publicField(this, "lastIcon", null);
|
|
131984
132197
|
__publicField(this, "lastIconSize", null);
|
|
@@ -132133,18 +132346,18 @@ var _DeesIcon = class _DeesIcon extends (_a3 = DeesElement, _iconFA_dec = [n5({
|
|
|
132133
132346
|
this.lastStrokeWidth = null;
|
|
132134
132347
|
}
|
|
132135
132348
|
};
|
|
132136
|
-
|
|
132349
|
+
_init4 = __decoratorStart(_a4);
|
|
132137
132350
|
_iconFA = new WeakMap();
|
|
132138
132351
|
_icon = new WeakMap();
|
|
132139
132352
|
_iconSize = new WeakMap();
|
|
132140
132353
|
_color = new WeakMap();
|
|
132141
132354
|
_strokeWidth = new WeakMap();
|
|
132142
|
-
__decorateElement(
|
|
132143
|
-
__decorateElement(
|
|
132144
|
-
__decorateElement(
|
|
132145
|
-
__decorateElement(
|
|
132146
|
-
__decorateElement(
|
|
132147
|
-
_DeesIcon = __decorateElement(
|
|
132355
|
+
__decorateElement(_init4, 4, "iconFA", _iconFA_dec, _DeesIcon, _iconFA);
|
|
132356
|
+
__decorateElement(_init4, 4, "icon", _icon_dec, _DeesIcon, _icon);
|
|
132357
|
+
__decorateElement(_init4, 4, "iconSize", _iconSize_dec, _DeesIcon, _iconSize);
|
|
132358
|
+
__decorateElement(_init4, 4, "color", _color_dec, _DeesIcon, _color);
|
|
132359
|
+
__decorateElement(_init4, 4, "strokeWidth", _strokeWidth_dec, _DeesIcon, _strokeWidth);
|
|
132360
|
+
_DeesIcon = __decorateElement(_init4, 0, "DeesIcon", _DeesIcon_decorators, _DeesIcon);
|
|
132148
132361
|
__name(_DeesIcon, "DeesIcon");
|
|
132149
132362
|
__publicField(_DeesIcon, "demo", demoFunc);
|
|
132150
132363
|
__publicField(_DeesIcon, "demoGroups", ["Utility"]);
|
|
@@ -132172,7 +132385,7 @@ __publicField(_DeesIcon, "styles", [
|
|
|
132172
132385
|
}
|
|
132173
132386
|
`
|
|
132174
132387
|
]);
|
|
132175
|
-
__runInitializers(
|
|
132388
|
+
__runInitializers(_init4, 1, _DeesIcon);
|
|
132176
132389
|
var DeesIcon = _DeesIcon;
|
|
132177
132390
|
|
|
132178
132391
|
// ts_web/elements/sdig-workspace/sdig-workspace.shared.ts
|
|
@@ -132185,9 +132398,9 @@ var demoDocuments = [
|
|
|
132185
132398
|
{ id: "doc_4dN8sP", title: "API Reseller Agreement - Northwind", status: "signed", recipients: [{ name: "Lila Brooks", initials: "LB", signed: true }, { name: "You", initials: "PK", signed: true }], updated: "2 days ago", sender: "You", pages: 8 }
|
|
132186
132399
|
];
|
|
132187
132400
|
var demoRecipients = [
|
|
132188
|
-
{ id: 0, name: "Sarah Chen", email: "sarah@acme.com", color: "#60a5fa", order: 1 },
|
|
132189
|
-
{ id: 1, name: "David Park", email: "d.park@acme.com", color: "#fbbf24", order: 2 },
|
|
132190
|
-
{ id: 2, name: "Philipp K.", email: "philipp@lossless.com", color: "#3b82f6", order: 3 }
|
|
132401
|
+
{ id: 0, name: "Sarah Chen", email: "sarah@acme.com", color: "#60a5fa", order: 1, role: "signer" },
|
|
132402
|
+
{ id: 1, name: "David Park", email: "d.park@acme.com", color: "#fbbf24", order: 2, role: "signer" },
|
|
132403
|
+
{ id: 2, name: "Philipp K.", email: "philipp@lossless.com", color: "#3b82f6", order: 3, role: "updates" }
|
|
132191
132404
|
];
|
|
132192
132405
|
var demoFields = [
|
|
132193
132406
|
{ id: "f1", type: "signature", x: 60, y: 580, w: 200, h: 50, page: 1, recipient: 0, label: "Signature" },
|
|
@@ -132590,14 +132803,14 @@ function requestWorkspaceView(element4, view2) {
|
|
|
132590
132803
|
__name(requestWorkspaceView, "requestWorkspaceView");
|
|
132591
132804
|
|
|
132592
132805
|
// ts_web/elements/sdig-workspace/sdig-workspace-inbox.ts
|
|
132593
|
-
var _search_dec, _filter_dec, _density_dec,
|
|
132806
|
+
var _search_dec, _filter_dec, _density_dec, _a5, _SdigWorkspaceInbox_decorators, _init5, _density, _filter, _search;
|
|
132594
132807
|
_SdigWorkspaceInbox_decorators = [customElement("sdig-workspace-inbox")];
|
|
132595
|
-
var _SdigWorkspaceInbox = class _SdigWorkspaceInbox extends (
|
|
132808
|
+
var _SdigWorkspaceInbox = class _SdigWorkspaceInbox extends (_a5 = DeesElement, _density_dec = [n5({ type: String })], _filter_dec = [r5()], _search_dec = [r5()], _a5) {
|
|
132596
132809
|
constructor() {
|
|
132597
132810
|
super(...arguments);
|
|
132598
|
-
__privateAdd(this, _density, __runInitializers(
|
|
132599
|
-
__privateAdd(this, _filter, __runInitializers(
|
|
132600
|
-
__privateAdd(this, _search, __runInitializers(
|
|
132811
|
+
__privateAdd(this, _density, __runInitializers(_init5, 8, this, "comfortable")), __runInitializers(_init5, 11, this);
|
|
132812
|
+
__privateAdd(this, _filter, __runInitializers(_init5, 12, this, "all")), __runInitializers(_init5, 15, this);
|
|
132813
|
+
__privateAdd(this, _search, __runInitializers(_init5, 16, this, "")), __runInitializers(_init5, 19, this);
|
|
132601
132814
|
}
|
|
132602
132815
|
get filteredDocuments() {
|
|
132603
132816
|
return demoDocuments.filter((doc) => this.filter === "all" || doc.status === this.filter).filter((doc) => !this.search || doc.title.toLowerCase().includes(this.search.toLowerCase()));
|
|
@@ -132664,14 +132877,14 @@ var _SdigWorkspaceInbox = class _SdigWorkspaceInbox extends (_a4 = DeesElement,
|
|
|
132664
132877
|
`;
|
|
132665
132878
|
}
|
|
132666
132879
|
};
|
|
132667
|
-
|
|
132880
|
+
_init5 = __decoratorStart(_a5);
|
|
132668
132881
|
_density = new WeakMap();
|
|
132669
132882
|
_filter = new WeakMap();
|
|
132670
132883
|
_search = new WeakMap();
|
|
132671
|
-
__decorateElement(
|
|
132672
|
-
__decorateElement(
|
|
132673
|
-
__decorateElement(
|
|
132674
|
-
_SdigWorkspaceInbox = __decorateElement(
|
|
132884
|
+
__decorateElement(_init5, 4, "density", _density_dec, _SdigWorkspaceInbox, _density);
|
|
132885
|
+
__decorateElement(_init5, 4, "filter", _filter_dec, _SdigWorkspaceInbox, _filter);
|
|
132886
|
+
__decorateElement(_init5, 4, "search", _search_dec, _SdigWorkspaceInbox, _search);
|
|
132887
|
+
_SdigWorkspaceInbox = __decorateElement(_init5, 0, "SdigWorkspaceInbox", _SdigWorkspaceInbox_decorators, _SdigWorkspaceInbox);
|
|
132675
132888
|
__name(_SdigWorkspaceInbox, "SdigWorkspaceInbox");
|
|
132676
132889
|
__publicField(_SdigWorkspaceInbox, "demo", /* @__PURE__ */ __name(() => workspaceDemoFrame(b2`<sdig-workspace-inbox></sdig-workspace-inbox>`), "demo"));
|
|
132677
132890
|
__publicField(_SdigWorkspaceInbox, "demoGroups", ["Signature Digital Workspace"]);
|
|
@@ -132701,11 +132914,11 @@ __publicField(_SdigWorkspaceInbox, "styles", [workspaceBaseStyles, i`
|
|
|
132701
132914
|
.metric-value { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
|
|
132702
132915
|
@media (max-width: 920px) { .filterbar { padding: 12px 16px; display: block; } .searchbox { width: 100%; margin-bottom: 10px; } .stats-grid { grid-template-columns: 1fr; } }
|
|
132703
132916
|
`]);
|
|
132704
|
-
__runInitializers(
|
|
132917
|
+
__runInitializers(_init5, 1, _SdigWorkspaceInbox);
|
|
132705
132918
|
var SdigWorkspaceInbox = _SdigWorkspaceInbox;
|
|
132706
132919
|
|
|
132707
132920
|
// ts_web/elements/sdig-workspace/sdig-workspace-compose.ts
|
|
132708
|
-
var _fields_dec, _recipients_dec, _selectedFieldId_dec,
|
|
132921
|
+
var _recipientContextMenu_dec, _signingOrderDrag_dec, _fields_dec, _recipients_dec, _selectedFieldId_dec, _activeRecipient_dec, _step_dec, _a6, _SdigWorkspaceCompose_decorators, _init6, _step, _activeRecipient, _selectedFieldId, _recipients, _fields, _signingOrderDrag, _recipientContextMenu;
|
|
132709
132922
|
var fieldDefinitions = [
|
|
132710
132923
|
{ type: "signature", icon: "sign", label: "Signature", w: 200, h: 50 },
|
|
132711
132924
|
{ type: "initials", icon: "type", label: "Initials", w: 120, h: 32 },
|
|
@@ -132714,23 +132927,34 @@ var fieldDefinitions = [
|
|
|
132714
132927
|
{ type: "check", icon: "check", label: "Checkbox", w: 120, h: 32 }
|
|
132715
132928
|
];
|
|
132716
132929
|
var resizeHandles = ["n", "ne", "e", "se", "s", "sw", "w", "nw"];
|
|
132930
|
+
var recipientRoleDefinitions = [
|
|
132931
|
+
{ role: "signer", label: "Needs signature", shortLabel: "Signer", description: "Can receive fields and must sign in order." },
|
|
132932
|
+
{ role: "copy", label: "Final copy only", shortLabel: "Copy", description: "Receives the completed document after signing." },
|
|
132933
|
+
{ role: "updates", label: "Every step update", shortLabel: "Updates", description: "Receives notifications for every routing step." }
|
|
132934
|
+
];
|
|
132717
132935
|
_SdigWorkspaceCompose_decorators = [customElement("sdig-workspace-compose")];
|
|
132718
|
-
var _SdigWorkspaceCompose = class _SdigWorkspaceCompose extends (
|
|
132936
|
+
var _SdigWorkspaceCompose = class _SdigWorkspaceCompose extends (_a6 = DeesElement, _step_dec = [r5()], _activeRecipient_dec = [r5()], _selectedFieldId_dec = [r5()], _recipients_dec = [r5()], _fields_dec = [r5()], _signingOrderDrag_dec = [r5()], _recipientContextMenu_dec = [r5()], _a6) {
|
|
132719
132937
|
constructor() {
|
|
132720
132938
|
super(...arguments);
|
|
132721
|
-
__privateAdd(this, _step, __runInitializers(
|
|
132722
|
-
__privateAdd(this, _activeRecipient, __runInitializers(
|
|
132723
|
-
__privateAdd(this,
|
|
132724
|
-
__privateAdd(this,
|
|
132725
|
-
__privateAdd(this,
|
|
132726
|
-
__privateAdd(this,
|
|
132939
|
+
__privateAdd(this, _step, __runInitializers(_init6, 8, this, 2)), __runInitializers(_init6, 11, this);
|
|
132940
|
+
__privateAdd(this, _activeRecipient, __runInitializers(_init6, 12, this, 0)), __runInitializers(_init6, 15, this);
|
|
132941
|
+
__privateAdd(this, _selectedFieldId, __runInitializers(_init6, 16, this, null)), __runInitializers(_init6, 19, this);
|
|
132942
|
+
__privateAdd(this, _recipients, __runInitializers(_init6, 20, this, [...demoRecipients])), __runInitializers(_init6, 23, this);
|
|
132943
|
+
__privateAdd(this, _fields, __runInitializers(_init6, 24, this, [...demoFields])), __runInitializers(_init6, 27, this);
|
|
132944
|
+
__privateAdd(this, _signingOrderDrag, __runInitializers(_init6, 28, this, null)), __runInitializers(_init6, 31, this);
|
|
132945
|
+
__privateAdd(this, _recipientContextMenu, __runInitializers(_init6, 32, this, null)), __runInitializers(_init6, 35, this);
|
|
132727
132946
|
__publicField(this, "draggedFieldDefinition", null);
|
|
132728
132947
|
__publicField(this, "draggedFieldGrabOffset", null);
|
|
132729
132948
|
__publicField(this, "fieldInteraction", null);
|
|
132730
132949
|
__publicField(this, "disconnectedCallback", /* @__PURE__ */ __name(async () => {
|
|
132731
132950
|
this.stopFieldInteraction();
|
|
132951
|
+
this.stopSigningOrderDrag();
|
|
132952
|
+
window.removeEventListener("click", this.closeRecipientContextMenu);
|
|
132732
132953
|
await super.disconnectedCallback();
|
|
132733
132954
|
}, "disconnectedCallback"));
|
|
132955
|
+
__publicField(this, "closeRecipientContextMenu", /* @__PURE__ */ __name(() => {
|
|
132956
|
+
this.recipientContextMenu = null;
|
|
132957
|
+
}, "closeRecipientContextMenu"));
|
|
132734
132958
|
__publicField(this, "handleDocumentClick", /* @__PURE__ */ __name((event) => {
|
|
132735
132959
|
const target = event.target;
|
|
132736
132960
|
if (target?.closest(".field-box")) return;
|
|
@@ -132784,6 +133008,32 @@ var _SdigWorkspaceCompose = class _SdigWorkspaceCompose extends (_a5 = DeesEleme
|
|
|
132784
133008
|
window.removeEventListener("pointerup", this.stopFieldInteraction);
|
|
132785
133009
|
window.removeEventListener("pointercancel", this.stopFieldInteraction);
|
|
132786
133010
|
}, "stopFieldInteraction"));
|
|
133011
|
+
__publicField(this, "handleSigningOrderPointerMove", /* @__PURE__ */ __name((event) => {
|
|
133012
|
+
if (!this.signingOrderDrag) return;
|
|
133013
|
+
event.preventDefault();
|
|
133014
|
+
const drag = this.signingOrderDrag;
|
|
133015
|
+
const target = this.shadowRoot?.elementFromPoint(event.clientX, event.clientY);
|
|
133016
|
+
const section = target?.closest(".routing-role-section");
|
|
133017
|
+
const roleCandidate = section?.dataset.role || drag.targetRole;
|
|
133018
|
+
const draggedRecipient = this.recipients.find((recipient) => recipient.id === drag.recipientId);
|
|
133019
|
+
const targetRole = draggedRecipient?.role === "signer" && roleCandidate !== "signer" && this.signingRecipients().length <= 1 ? "signer" : roleCandidate;
|
|
133020
|
+
const list5 = this.shadowRoot?.querySelector(`.routing-role-section[data-role="${targetRole}"] .signing-order-list`);
|
|
133021
|
+
const listRect = list5?.getBoundingClientRect();
|
|
133022
|
+
const listTop = listRect?.top ?? drag.listTop;
|
|
133023
|
+
const targetMemberCount = this.recipients.filter((recipient) => recipient.role === targetRole && recipient.id !== drag.recipientId).length;
|
|
133024
|
+
const draggedCenterY = event.clientY - listTop - drag.grabOffsetY + drag.itemStep / 2;
|
|
133025
|
+
const targetIndex = Math.round(this.clamp(draggedCenterY / drag.itemStep, 0, targetMemberCount));
|
|
133026
|
+
this.signingOrderDrag = { ...drag, pointerY: event.clientY, listTop, targetRole, targetIndex };
|
|
133027
|
+
}, "handleSigningOrderPointerMove"));
|
|
133028
|
+
__publicField(this, "stopSigningOrderDrag", /* @__PURE__ */ __name(() => {
|
|
133029
|
+
if (this.signingOrderDrag) {
|
|
133030
|
+
this.moveRecipientToRole(this.signingOrderDrag.recipientId, this.signingOrderDrag.targetRole, this.signingOrderDrag.targetIndex);
|
|
133031
|
+
}
|
|
133032
|
+
this.signingOrderDrag = null;
|
|
133033
|
+
window.removeEventListener("pointermove", this.handleSigningOrderPointerMove);
|
|
133034
|
+
window.removeEventListener("pointerup", this.stopSigningOrderDrag);
|
|
133035
|
+
window.removeEventListener("pointercancel", this.stopSigningOrderDrag);
|
|
133036
|
+
}, "stopSigningOrderDrag"));
|
|
132787
133037
|
}
|
|
132788
133038
|
recipientColor(id) {
|
|
132789
133039
|
return this.recipients.find((recipient) => recipient.id === id)?.color || "var(--accent)";
|
|
@@ -132797,6 +133047,12 @@ var _SdigWorkspaceCompose = class _SdigWorkspaceCompose extends (_a5 = DeesEleme
|
|
|
132797
133047
|
fieldDefinition(type5) {
|
|
132798
133048
|
return fieldDefinitions.find((definition3) => definition3.type === type5) || fieldDefinitions[0];
|
|
132799
133049
|
}
|
|
133050
|
+
recipientRoleDefinition(role) {
|
|
133051
|
+
return recipientRoleDefinitions.find((definition3) => definition3.role === role) || recipientRoleDefinitions[0];
|
|
133052
|
+
}
|
|
133053
|
+
signingRecipients() {
|
|
133054
|
+
return this.recipients.filter((recipient) => recipient.role === "signer");
|
|
133055
|
+
}
|
|
132800
133056
|
clamp(value2, min3, max3) {
|
|
132801
133057
|
return Math.max(min3, Math.min(max3, value2));
|
|
132802
133058
|
}
|
|
@@ -132822,6 +133078,59 @@ var _SdigWorkspaceCompose = class _SdigWorkspaceCompose extends (_a5 = DeesEleme
|
|
|
132822
133078
|
this.fields = this.fields.filter((field) => field.id !== this.selectedFieldId);
|
|
132823
133079
|
this.selectedFieldId = null;
|
|
132824
133080
|
}
|
|
133081
|
+
updateRecipientRole(recipientId, role) {
|
|
133082
|
+
const recipient = this.recipients.find((currentRecipient) => currentRecipient.id === recipientId);
|
|
133083
|
+
if (!recipient) return;
|
|
133084
|
+
const signerCount = this.signingRecipients().length;
|
|
133085
|
+
if (recipient.role === "signer" && role !== "signer" && signerCount <= 1) return;
|
|
133086
|
+
this.moveRecipientToRole(recipientId, role);
|
|
133087
|
+
}
|
|
133088
|
+
moveRecipientToRole(recipientId, role, targetIndex) {
|
|
133089
|
+
const recipient = this.recipients.find((currentRecipient) => currentRecipient.id === recipientId);
|
|
133090
|
+
if (!recipient) return;
|
|
133091
|
+
const signerCount = this.signingRecipients().length;
|
|
133092
|
+
const nextRole = recipient.role === "signer" && role !== "signer" && signerCount <= 1 ? "signer" : role;
|
|
133093
|
+
const withoutRecipient = this.recipients.filter((currentRecipient) => currentRecipient.id !== recipientId);
|
|
133094
|
+
const nextByRole = /* @__PURE__ */ new Map();
|
|
133095
|
+
for (const roleDefinition of recipientRoleDefinitions) {
|
|
133096
|
+
nextByRole.set(roleDefinition.role, withoutRecipient.filter((currentRecipient) => currentRecipient.role === roleDefinition.role));
|
|
133097
|
+
}
|
|
133098
|
+
const targetMembers = [...nextByRole.get(nextRole) || []];
|
|
133099
|
+
const insertIndex = targetIndex === void 0 ? targetMembers.length : this.clamp(targetIndex, 0, targetMembers.length);
|
|
133100
|
+
targetMembers.splice(insertIndex, 0, { ...recipient, role: nextRole });
|
|
133101
|
+
nextByRole.set(nextRole, targetMembers);
|
|
133102
|
+
this.recipients = recipientRoleDefinitions.flatMap((roleDefinition) => nextByRole.get(roleDefinition.role) || []).map((currentRecipient, index2) => ({ ...currentRecipient, order: index2 + 1 }));
|
|
133103
|
+
const nextSigners = this.recipients.filter((currentRecipient) => currentRecipient.role === "signer");
|
|
133104
|
+
const fallbackSigner = nextSigners[0];
|
|
133105
|
+
if (nextRole !== "signer" && fallbackSigner) {
|
|
133106
|
+
this.fields = this.fields.map((field) => field.recipient === recipientId ? { ...field, recipient: fallbackSigner.id } : field);
|
|
133107
|
+
if (this.activeRecipient === recipientId) {
|
|
133108
|
+
this.activeRecipient = fallbackSigner.id;
|
|
133109
|
+
}
|
|
133110
|
+
}
|
|
133111
|
+
}
|
|
133112
|
+
openRecipientContextMenu(event, recipient) {
|
|
133113
|
+
event.preventDefault();
|
|
133114
|
+
event.stopPropagation();
|
|
133115
|
+
this.recipientContextMenu = { recipientId: recipient.id, x: event.clientX, y: event.clientY };
|
|
133116
|
+
window.removeEventListener("click", this.closeRecipientContextMenu);
|
|
133117
|
+
setTimeout(() => window.addEventListener("click", this.closeRecipientContextMenu, { once: true }), 0);
|
|
133118
|
+
}
|
|
133119
|
+
recipientContextMenuActions(recipient) {
|
|
133120
|
+
const signerCount = this.signingRecipients().length;
|
|
133121
|
+
return recipientRoleDefinitions.map((roleDefinition) => ({
|
|
133122
|
+
id: roleDefinition.role,
|
|
133123
|
+
label: roleDefinition.label,
|
|
133124
|
+
selected: recipient.role === roleDefinition.role,
|
|
133125
|
+
disabled: recipient.role === "signer" && roleDefinition.role !== "signer" && signerCount <= 1
|
|
133126
|
+
}));
|
|
133127
|
+
}
|
|
133128
|
+
handleRecipientContextMenuAction(event, recipient) {
|
|
133129
|
+
const role = event.detail.id;
|
|
133130
|
+
if (!recipientRoleDefinitions.some((roleDefinition) => roleDefinition.role === role)) return;
|
|
133131
|
+
this.updateRecipientRole(recipient.id, role);
|
|
133132
|
+
this.closeRecipientContextMenu();
|
|
133133
|
+
}
|
|
132825
133134
|
startFieldInteraction(event, field, mode, handle3) {
|
|
132826
133135
|
if (event.button !== 0) return;
|
|
132827
133136
|
const page = this.shadowRoot?.querySelector(".document-page");
|
|
@@ -132850,16 +133159,49 @@ var _SdigWorkspaceCompose = class _SdigWorkspaceCompose extends (_a5 = DeesEleme
|
|
|
132850
133159
|
startFieldResize(event, field, handle3) {
|
|
132851
133160
|
this.startFieldInteraction(event, field, "resize", handle3);
|
|
132852
133161
|
}
|
|
132853
|
-
|
|
132854
|
-
if (this.
|
|
132855
|
-
const
|
|
132856
|
-
|
|
132857
|
-
const
|
|
132858
|
-
|
|
132859
|
-
|
|
132860
|
-
|
|
132861
|
-
|
|
132862
|
-
this.
|
|
133162
|
+
visualSigningOrder() {
|
|
133163
|
+
if (!this.signingOrderDrag) return this.recipients;
|
|
133164
|
+
const dragged = this.recipients.find((recipient) => recipient.id === this.signingOrderDrag?.recipientId);
|
|
133165
|
+
if (!dragged) return this.recipients;
|
|
133166
|
+
const others = this.recipients.filter((recipient) => recipient.role === this.signingOrderDrag?.targetRole && recipient.id !== dragged.id);
|
|
133167
|
+
const targetIndex = this.clamp(this.signingOrderDrag.targetIndex, 0, others.length);
|
|
133168
|
+
return [...others.slice(0, targetIndex), dragged, ...others.slice(targetIndex)];
|
|
133169
|
+
}
|
|
133170
|
+
recipientsForRole(role) {
|
|
133171
|
+
if (!this.signingOrderDrag) return this.recipients.filter((recipient) => recipient.role === role);
|
|
133172
|
+
const dragged = this.recipients.find((recipient) => recipient.id === this.signingOrderDrag?.recipientId);
|
|
133173
|
+
const recipients = this.recipients.filter((recipient) => recipient.role === role && recipient.id !== dragged?.id);
|
|
133174
|
+
if (!dragged || this.signingOrderDrag.targetRole !== role) return recipients;
|
|
133175
|
+
const targetIndex = this.clamp(this.signingOrderDrag.targetIndex, 0, recipients.length);
|
|
133176
|
+
return [...recipients.slice(0, targetIndex), { ...dragged, role }, ...recipients.slice(targetIndex)];
|
|
133177
|
+
}
|
|
133178
|
+
startSigningOrderDrag(event, recipient) {
|
|
133179
|
+
if (event.button !== 0) return;
|
|
133180
|
+
const target = event.target;
|
|
133181
|
+
if (target?.closest("select, input, button")) return;
|
|
133182
|
+
const item = event.currentTarget;
|
|
133183
|
+
const list5 = item.closest(".signing-order-list");
|
|
133184
|
+
if (!list5) return;
|
|
133185
|
+
const section = item.closest(".routing-role-section");
|
|
133186
|
+
const role = section?.dataset.role || recipient.role;
|
|
133187
|
+
const itemRect = item.getBoundingClientRect();
|
|
133188
|
+
const listRect = list5.getBoundingClientRect();
|
|
133189
|
+
const marginBottom = Number.parseFloat(globalThis.getComputedStyle(item).marginBottom || "0");
|
|
133190
|
+
const startIndex = this.recipients.filter((currentRecipient) => currentRecipient.role === role).findIndex((currentRecipient) => currentRecipient.id === recipient.id);
|
|
133191
|
+
this.signingOrderDrag = {
|
|
133192
|
+
recipientId: recipient.id,
|
|
133193
|
+
pointerY: event.clientY,
|
|
133194
|
+
listTop: listRect.top,
|
|
133195
|
+
grabOffsetY: event.clientY - itemRect.top,
|
|
133196
|
+
itemHeight: itemRect.height,
|
|
133197
|
+
itemStep: itemRect.height + marginBottom,
|
|
133198
|
+
targetRole: role,
|
|
133199
|
+
targetIndex: Math.max(0, startIndex)
|
|
133200
|
+
};
|
|
133201
|
+
event.preventDefault();
|
|
133202
|
+
window.addEventListener("pointermove", this.handleSigningOrderPointerMove, { passive: false });
|
|
133203
|
+
window.addEventListener("pointerup", this.stopSigningOrderDrag);
|
|
133204
|
+
window.addEventListener("pointercancel", this.stopSigningOrderDrag);
|
|
132863
133205
|
}
|
|
132864
133206
|
addFieldFromDrop(event) {
|
|
132865
133207
|
event.preventDefault();
|
|
@@ -132914,7 +133256,7 @@ var _SdigWorkspaceCompose = class _SdigWorkspaceCompose extends (_a5 = DeesEleme
|
|
|
132914
133256
|
</div>
|
|
132915
133257
|
<div class="field-editor-grid">
|
|
132916
133258
|
<label class="field-control full">Label<input .value=${field.label} @input=${(event) => this.updateSelectedField({ label: event.target.value })} /></label>
|
|
132917
|
-
<label class="field-control full">Assigned signer<select .value=${String(field.recipient)} @change=${(event) => this.updateSelectedField({ recipient: Number(event.target.value) })}>${this.
|
|
133259
|
+
<label class="field-control full">Assigned signer<select .value=${String(field.recipient)} @change=${(event) => this.updateSelectedField({ recipient: Number(event.target.value) })}>${this.signingRecipients().map((recipient) => b2`<option value=${String(recipient.id)}>${recipient.order}. ${recipient.name}</option>`)}</select></label>
|
|
132918
133260
|
<label class="field-control">X<input type="number" min="0" .value=${String(field.x)} @input=${(event) => this.updateSelectedFieldNumber("x", event)} /></label>
|
|
132919
133261
|
<label class="field-control">Y<input type="number" min="0" .value=${String(field.y)} @input=${(event) => this.updateSelectedFieldNumber("y", event)} /></label>
|
|
132920
133262
|
<label class="field-control">Width<input type="number" min="16" .value=${String(field.w)} @input=${(event) => this.updateSelectedFieldNumber("w", event)} /></label>
|
|
@@ -132930,6 +133272,51 @@ var _SdigWorkspaceCompose = class _SdigWorkspaceCompose extends (_a5 = DeesEleme
|
|
|
132930
133272
|
renderResizeHandles(field) {
|
|
132931
133273
|
return b2`${resizeHandles.map((handle3) => b2`<span class="resize-handle ${handle3}" @pointerdown=${(event) => this.startFieldResize(event, field, handle3)}></span>`)}`;
|
|
132932
133274
|
}
|
|
133275
|
+
renderSigningRecipient(recipient, orderNumber, options = {}) {
|
|
133276
|
+
const initials = recipient.name.split(" ").map((part) => part[0]).slice(0, 2).join("");
|
|
133277
|
+
const isOverlay = options.overlayTop !== void 0;
|
|
133278
|
+
const top = options.overlayTop ?? options.rowTop;
|
|
133279
|
+
const displayRole = options.displayRole || recipient.role;
|
|
133280
|
+
return b2`<div class="recipient-line signing-recipient ${isOverlay ? "signing-drag-overlay" : ""}" style="${top !== void 0 ? `--routing-top: ${top}px;` : ""}" @contextmenu=${(event) => this.openRecipientContextMenu(event, recipient)} @pointerdown=${!isOverlay ? (event) => this.startSigningOrderDrag(event, recipient) : void 0}><span class="mono" style="width: 14px; font-size: 10px; color: ${isOverlay ? "var(--accent)" : "var(--text-muted)"};">${orderNumber}</span><span class="avatar" style="background: ${recipient.color};">${initials}</span><div style="flex: 1; min-width: 0;"><div style="font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">${recipient.name}</div><div class="mono" style="font-size: 10px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">${this.recipientRoleDefinition(displayRole).description}</div></div><span class="role-chip">${this.recipientRoleDefinition(displayRole).shortLabel}</span></div>`;
|
|
133281
|
+
}
|
|
133282
|
+
renderRoleSection(roleDefinition) {
|
|
133283
|
+
const role = roleDefinition.role;
|
|
133284
|
+
const members = this.recipientsForRole(role);
|
|
133285
|
+
const isTargetRole = this.signingOrderDrag?.targetRole === role;
|
|
133286
|
+
const draggedRecipientId = this.signingOrderDrag?.recipientId;
|
|
133287
|
+
const draggedRecipient = draggedRecipientId !== void 0 ? this.recipients.find((recipient) => recipient.id === draggedRecipientId) : void 0;
|
|
133288
|
+
if (!this.signingOrderDrag) {
|
|
133289
|
+
return b2`<div class="routing-role-section" data-role=${role}><div class="routing-role-head"><span class="routing-role-title">${roleDefinition.label}</span><span class="role-count">${members.length}</span></div><div class="routing-role-description">${roleDefinition.description}</div><div class="signing-order-list">${members.map((recipient, index2) => this.renderSigningRecipient(recipient, index2 + 1))}</div></div>`;
|
|
133290
|
+
}
|
|
133291
|
+
const visualIndexById = new Map(members.map((recipient, index2) => [recipient.id, index2]));
|
|
133292
|
+
const overlayTop = isTargetRole ? this.signingOrderDrag.pointerY - this.signingOrderDrag.listTop - this.signingOrderDrag.grabOffsetY : 0;
|
|
133293
|
+
const draggedOrder = draggedRecipient ? members.findIndex((recipient) => recipient.id === draggedRecipient.id) + 1 || this.signingOrderDrag.targetIndex + 1 : 0;
|
|
133294
|
+
return b2`<div class="routing-role-section ${isTargetRole ? "active-drop" : ""}" data-role=${role}><div class="routing-role-head"><span class="routing-role-title">${roleDefinition.label}</span><span class="role-count">${members.filter((recipient) => recipient.id !== draggedRecipientId).length + (isTargetRole ? 1 : 0)}</span></div><div class="routing-role-description">${roleDefinition.description}</div><div class="signing-order-list dragging" style="--routing-list-height: ${Math.max(1, members.length) * this.signingOrderDrag.itemStep}px;">
|
|
133295
|
+
${members.filter((recipient) => recipient.id !== draggedRecipientId).map((recipient) => {
|
|
133296
|
+
const visualIndex = visualIndexById.get(recipient.id) ?? 0;
|
|
133297
|
+
return this.renderSigningRecipient(recipient, visualIndex + 1, { rowTop: visualIndex * this.signingOrderDrag.itemStep, displayRole: role });
|
|
133298
|
+
})}
|
|
133299
|
+
${isTargetRole ? b2`<div class="signing-placeholder" style="--routing-top: ${this.signingOrderDrag.targetIndex * this.signingOrderDrag.itemStep}px; --routing-row-height: ${this.signingOrderDrag.itemHeight}px;"></div>` : ""}
|
|
133300
|
+
${isTargetRole && draggedRecipient ? this.renderSigningRecipient(draggedRecipient, draggedOrder, { overlayTop, displayRole: role }) : ""}
|
|
133301
|
+
</div></div>`;
|
|
133302
|
+
}
|
|
133303
|
+
renderSigningOrder() {
|
|
133304
|
+
return b2`${recipientRoleDefinitions.map((roleDefinition) => this.renderRoleSection(roleDefinition))}`;
|
|
133305
|
+
}
|
|
133306
|
+
renderRecipientContextMenu() {
|
|
133307
|
+
if (!this.recipientContextMenu) return b2``;
|
|
133308
|
+
const recipient = this.recipients.find((currentRecipient) => currentRecipient.id === this.recipientContextMenu?.recipientId);
|
|
133309
|
+
if (!recipient) return b2``;
|
|
133310
|
+
return b2`
|
|
133311
|
+
<sdig-contextmenu
|
|
133312
|
+
.anchorX=${this.recipientContextMenu.x}
|
|
133313
|
+
.anchorY=${this.recipientContextMenu.y}
|
|
133314
|
+
.title=${recipient.name}
|
|
133315
|
+
.actions=${this.recipientContextMenuActions(recipient)}
|
|
133316
|
+
@contextmenu-action=${(event) => this.handleRecipientContextMenuAction(event, recipient)}
|
|
133317
|
+
></sdig-contextmenu>
|
|
133318
|
+
`;
|
|
133319
|
+
}
|
|
132933
133320
|
renderStepper() {
|
|
132934
133321
|
const labels = ["Upload", "Place fields", "Recipients & routing", "Review & send"];
|
|
132935
133322
|
return b2`
|
|
@@ -132948,12 +133335,13 @@ var _SdigWorkspaceCompose = class _SdigWorkspaceCompose extends (_a5 = DeesEleme
|
|
|
132948
133335
|
${topBar({ breadcrumb: ["signature.digital", "Inbox", "Compose"], title: "Master Services Agreement", subtitle: pill("Draft \xB7 auto-saved"), actions: b2`${actionButton("Save draft", "ghost")}${actionButton("Preview", "outline", "eye")}${actionButton("Send for signature", "primary", "send")}` })}
|
|
132949
133336
|
${this.renderStepper()}
|
|
132950
133337
|
<div class="compose-workspace">
|
|
133338
|
+
${this.renderRecipientContextMenu()}
|
|
132951
133339
|
<div class="palette">
|
|
132952
133340
|
<div class="label-upper">Drag onto document</div>
|
|
132953
133341
|
${fieldDefinitions.map((fieldType) => b2`<div class="field-tool" style="--tool-w: ${fieldType.w}px; --tool-h: ${fieldType.h}px; --recipient-color: ${this.recipientColor(this.activeRecipient)};" draggable="true" @dragstart=${(event) => this.startFieldToolDrag(event, fieldType)} @dragend=${() => this.endFieldToolDrag()}>${icon3(fieldType.icon, 14)}<span style="flex: 1;">${fieldType.label}</span></div>`)}
|
|
132954
133342
|
<div style="height: 1px; background: var(--border-subtle); margin: 20px 0 16px;"></div>
|
|
132955
133343
|
<div class="label-upper">Active for</div>
|
|
132956
|
-
${this.
|
|
133344
|
+
${this.signingRecipients().map((recipient) => b2`<div class="recipient-line ${this.activeRecipient === recipient.id ? "active" : ""}" @click=${() => this.activeRecipient = recipient.id}><span class="swatch" style="--recipient-color: ${recipient.color};"></span><span style="flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">${recipient.name.split(" ")[0]}</span><span class="mono" style="font-size: 10px; color: var(--text-muted);">${this.fields.filter((field) => field.recipient === recipient.id).length}</span></div>`)}
|
|
132957
133345
|
</div>
|
|
132958
133346
|
<div class="document-stage">
|
|
132959
133347
|
<div class="document-page page-drop-target" @click=${this.handleDocumentClick} @dragover=${(event) => {
|
|
@@ -132968,28 +133356,31 @@ var _SdigWorkspaceCompose = class _SdigWorkspaceCompose extends (_a5 = DeesEleme
|
|
|
132968
133356
|
<div style="display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-muted);">${actionButton("Prev", "outline")}${b2`<span class="mono">1 / 14</span>`}${actionButton("Next", "outline")}</div>
|
|
132969
133357
|
</div>
|
|
132970
133358
|
<div class="right-panel">
|
|
132971
|
-
<div class="label-upper">
|
|
132972
|
-
|
|
133359
|
+
<div class="label-upper">Routing order · drag to reorder</div>
|
|
133360
|
+
<div class="role-hint">Choose who signs, who gets the completed copy, and who is notified at every step.</div>
|
|
133361
|
+
${this.renderSigningOrder()}
|
|
132973
133362
|
${selectedField ? this.renderFieldEditor(selectedField) : ""}
|
|
132974
133363
|
</div>
|
|
132975
133364
|
</div>
|
|
132976
133365
|
`;
|
|
132977
133366
|
}
|
|
132978
133367
|
};
|
|
132979
|
-
|
|
133368
|
+
_init6 = __decoratorStart(_a6);
|
|
132980
133369
|
_step = new WeakMap();
|
|
132981
133370
|
_activeRecipient = new WeakMap();
|
|
132982
|
-
_draggedRecipientId = new WeakMap();
|
|
132983
133371
|
_selectedFieldId = new WeakMap();
|
|
132984
133372
|
_recipients = new WeakMap();
|
|
132985
133373
|
_fields = new WeakMap();
|
|
132986
|
-
|
|
132987
|
-
|
|
132988
|
-
__decorateElement(
|
|
132989
|
-
__decorateElement(
|
|
132990
|
-
__decorateElement(
|
|
132991
|
-
__decorateElement(
|
|
132992
|
-
|
|
133374
|
+
_signingOrderDrag = new WeakMap();
|
|
133375
|
+
_recipientContextMenu = new WeakMap();
|
|
133376
|
+
__decorateElement(_init6, 4, "step", _step_dec, _SdigWorkspaceCompose, _step);
|
|
133377
|
+
__decorateElement(_init6, 4, "activeRecipient", _activeRecipient_dec, _SdigWorkspaceCompose, _activeRecipient);
|
|
133378
|
+
__decorateElement(_init6, 4, "selectedFieldId", _selectedFieldId_dec, _SdigWorkspaceCompose, _selectedFieldId);
|
|
133379
|
+
__decorateElement(_init6, 4, "recipients", _recipients_dec, _SdigWorkspaceCompose, _recipients);
|
|
133380
|
+
__decorateElement(_init6, 4, "fields", _fields_dec, _SdigWorkspaceCompose, _fields);
|
|
133381
|
+
__decorateElement(_init6, 4, "signingOrderDrag", _signingOrderDrag_dec, _SdigWorkspaceCompose, _signingOrderDrag);
|
|
133382
|
+
__decorateElement(_init6, 4, "recipientContextMenu", _recipientContextMenu_dec, _SdigWorkspaceCompose, _recipientContextMenu);
|
|
133383
|
+
_SdigWorkspaceCompose = __decorateElement(_init6, 0, "SdigWorkspaceCompose", _SdigWorkspaceCompose_decorators, _SdigWorkspaceCompose);
|
|
132993
133384
|
__name(_SdigWorkspaceCompose, "SdigWorkspaceCompose");
|
|
132994
133385
|
__publicField(_SdigWorkspaceCompose, "demo", /* @__PURE__ */ __name(() => workspaceDemoFrame(b2`<sdig-workspace-compose></sdig-workspace-compose>`), "demo"));
|
|
132995
133386
|
__publicField(_SdigWorkspaceCompose, "demoGroups", ["Signature Digital Workspace"]);
|
|
@@ -133010,7 +133401,21 @@ __publicField(_SdigWorkspaceCompose, "styles", [workspaceBaseStyles, i`
|
|
|
133010
133401
|
.document-stage { flex: 1; overflow: auto; background: hsl(0 0% 8%); display: flex; flex-direction: column; align-items: center; padding: 32px; gap: 20px; }
|
|
133011
133402
|
:host-context(sdig-workspace[theme='light']) .document-stage { background: hsl(0 0% 92%); }
|
|
133012
133403
|
.recipient-line { cursor: grab; }
|
|
133013
|
-
.
|
|
133404
|
+
.routing-role-section { margin-bottom: 14px; padding: 10px; border: 1px solid var(--border-subtle); border-radius: 8px; background: color-mix(in srgb, var(--bg-card) 72%, transparent); transition: border-color 0.14s ease, background 0.14s ease; }
|
|
133405
|
+
.routing-role-section.active-drop { border-color: color-mix(in srgb, var(--accent) 48%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, var(--bg-card)); }
|
|
133406
|
+
.routing-role-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
|
|
133407
|
+
.routing-role-title { font-size: 11px; font-weight: 700; color: var(--text-sec); }
|
|
133408
|
+
.routing-role-description { margin-bottom: 8px; font-size: 10px; line-height: 1.35; color: var(--text-muted); }
|
|
133409
|
+
.role-count { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-input); color: var(--text-muted); font-size: 10px; }
|
|
133410
|
+
.role-chip { height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--bg-input); color: var(--text-muted); font-size: 10px; font-weight: 600; }
|
|
133411
|
+
.signing-order-list { position: relative; min-height: 44px; }
|
|
133412
|
+
.signing-order-list.dragging { height: var(--routing-list-height); min-height: var(--routing-list-height); }
|
|
133413
|
+
.signing-order-list::before { content: ''; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1px; background: var(--border); }
|
|
133414
|
+
.signing-recipient { position: relative; z-index: 1; transition: transform 0.14s ease, opacity 0.14s ease, border-color 0.14s ease; }
|
|
133415
|
+
.signing-order-list.dragging .signing-recipient:not(.signing-drag-overlay) { position: absolute; left: 0; right: 0; top: var(--routing-top); margin-bottom: 0; transition: top 0.16s ease, transform 0.14s ease, opacity 0.14s ease, border-color 0.14s ease; }
|
|
133416
|
+
.signing-placeholder { position: absolute; left: 0; right: 0; top: var(--routing-top); height: var(--routing-row-height); border: 1.5px dashed var(--accent); border-radius: 6px; background: transparent; pointer-events: none; transition: top 0.16s ease; }
|
|
133417
|
+
.signing-drag-overlay { position: absolute; left: 0; right: 0; z-index: 6; top: var(--routing-top); margin-bottom: 0; cursor: grabbing; pointer-events: none; border-color: var(--accent); box-shadow: 0 10px 28px rgba(0,0,0,0.28); transform: scale(1.015); }
|
|
133418
|
+
.role-hint { margin-top: -2px; margin-bottom: 10px; font-size: 10px; line-height: 1.45; color: var(--text-muted); }
|
|
133014
133419
|
.page-drop-target { outline: 1px dashed transparent; outline-offset: 8px; }
|
|
133015
133420
|
.page-drop-target.drag-over { outline-color: var(--accent); }
|
|
133016
133421
|
.field-box { user-select: none; touch-action: none; }
|
|
@@ -133034,17 +133439,17 @@ __publicField(_SdigWorkspaceCompose, "styles", [workspaceBaseStyles, i`
|
|
|
133034
133439
|
.field-control input:focus, .field-control select:focus { border-color: var(--accent); }
|
|
133035
133440
|
@media (max-width: 920px) { .compose-workspace { flex-direction: column; overflow: auto; } .palette, .right-panel { width: 100%; border: 0; border-bottom: 1px solid var(--border-subtle); } .document-page { width: 560px; } }
|
|
133036
133441
|
`]);
|
|
133037
|
-
__runInitializers(
|
|
133442
|
+
__runInitializers(_init6, 1, _SdigWorkspaceCompose);
|
|
133038
133443
|
var SdigWorkspaceCompose = _SdigWorkspaceCompose;
|
|
133039
133444
|
|
|
133040
133445
|
// ts_web/elements/sdig-workspace/sdig-workspace-sign.ts
|
|
133041
|
-
var _signedFieldIds_dec, _activeFieldId_dec,
|
|
133446
|
+
var _signedFieldIds_dec, _activeFieldId_dec, _a7, _SdigWorkspaceSign_decorators, _init7, _activeFieldId, _signedFieldIds;
|
|
133042
133447
|
_SdigWorkspaceSign_decorators = [customElement("sdig-workspace-sign")];
|
|
133043
|
-
var _SdigWorkspaceSign = class _SdigWorkspaceSign extends (
|
|
133448
|
+
var _SdigWorkspaceSign = class _SdigWorkspaceSign extends (_a7 = DeesElement, _activeFieldId_dec = [r5()], _signedFieldIds_dec = [r5()], _a7) {
|
|
133044
133449
|
constructor() {
|
|
133045
133450
|
super(...arguments);
|
|
133046
|
-
__privateAdd(this, _activeFieldId, __runInitializers(
|
|
133047
|
-
__privateAdd(this, _signedFieldIds, __runInitializers(
|
|
133451
|
+
__privateAdd(this, _activeFieldId, __runInitializers(_init7, 8, this, "f1")), __runInitializers(_init7, 11, this);
|
|
133452
|
+
__privateAdd(this, _signedFieldIds, __runInitializers(_init7, 12, this, [])), __runInitializers(_init7, 15, this);
|
|
133048
133453
|
}
|
|
133049
133454
|
get signFields() {
|
|
133050
133455
|
return demoFields.slice(0, 3);
|
|
@@ -133104,12 +133509,12 @@ var _SdigWorkspaceSign = class _SdigWorkspaceSign extends (_a6 = DeesElement, _a
|
|
|
133104
133509
|
`;
|
|
133105
133510
|
}
|
|
133106
133511
|
};
|
|
133107
|
-
|
|
133512
|
+
_init7 = __decoratorStart(_a7);
|
|
133108
133513
|
_activeFieldId = new WeakMap();
|
|
133109
133514
|
_signedFieldIds = new WeakMap();
|
|
133110
|
-
__decorateElement(
|
|
133111
|
-
__decorateElement(
|
|
133112
|
-
_SdigWorkspaceSign = __decorateElement(
|
|
133515
|
+
__decorateElement(_init7, 4, "activeFieldId", _activeFieldId_dec, _SdigWorkspaceSign, _activeFieldId);
|
|
133516
|
+
__decorateElement(_init7, 4, "signedFieldIds", _signedFieldIds_dec, _SdigWorkspaceSign, _signedFieldIds);
|
|
133517
|
+
_SdigWorkspaceSign = __decorateElement(_init7, 0, "SdigWorkspaceSign", _SdigWorkspaceSign_decorators, _SdigWorkspaceSign);
|
|
133113
133518
|
__name(_SdigWorkspaceSign, "SdigWorkspaceSign");
|
|
133114
133519
|
__publicField(_SdigWorkspaceSign, "demo", /* @__PURE__ */ __name(() => workspaceDemoFrame(b2`<sdig-workspace-sign></sdig-workspace-sign>`), "demo"));
|
|
133115
133520
|
__publicField(_SdigWorkspaceSign, "demoGroups", ["Signature Digital Workspace"]);
|
|
@@ -133123,13 +133528,13 @@ __publicField(_SdigWorkspaceSign, "styles", [workspaceBaseStyles, i`
|
|
|
133123
133528
|
.sign-panel { width: 320px; border-left: 1px solid var(--border); background: var(--bg-card); padding: 20px; overflow: auto; flex-shrink: 0; }
|
|
133124
133529
|
@media (max-width: 920px) { .recipient-header .actions { display: none; } .sign-layout { flex-direction: column; overflow: auto; } .sign-panel { width: 100%; border-left: 0; border-top: 1px solid var(--border); } .document-page { width: 560px; } }
|
|
133125
133530
|
`]);
|
|
133126
|
-
__runInitializers(
|
|
133531
|
+
__runInitializers(_init7, 1, _SdigWorkspaceSign);
|
|
133127
133532
|
var SdigWorkspaceSign = _SdigWorkspaceSign;
|
|
133128
133533
|
|
|
133129
133534
|
// ts_web/elements/sdig-workspace/sdig-workspace-audit.ts
|
|
133130
|
-
var _SdigWorkspaceAudit_decorators,
|
|
133535
|
+
var _SdigWorkspaceAudit_decorators, _init8, _a8;
|
|
133131
133536
|
_SdigWorkspaceAudit_decorators = [customElement("sdig-workspace-audit")];
|
|
133132
|
-
var SdigWorkspaceAudit = class extends (
|
|
133537
|
+
var SdigWorkspaceAudit = class extends (_a8 = DeesElement) {
|
|
133133
133538
|
static {
|
|
133134
133539
|
__name(this, "SdigWorkspaceAudit");
|
|
133135
133540
|
}
|
|
@@ -133157,14 +133562,14 @@ var SdigWorkspaceAudit = class extends (_a7 = DeesElement) {
|
|
|
133157
133562
|
`;
|
|
133158
133563
|
}
|
|
133159
133564
|
};
|
|
133160
|
-
|
|
133161
|
-
SdigWorkspaceAudit = __decorateElement(
|
|
133162
|
-
__runInitializers(
|
|
133565
|
+
_init8 = __decoratorStart(_a8);
|
|
133566
|
+
SdigWorkspaceAudit = __decorateElement(_init8, 0, "SdigWorkspaceAudit", _SdigWorkspaceAudit_decorators, SdigWorkspaceAudit);
|
|
133567
|
+
__runInitializers(_init8, 1, SdigWorkspaceAudit);
|
|
133163
133568
|
|
|
133164
133569
|
// ts_web/elements/sdig-workspace/sdig-workspace-developers.ts
|
|
133165
|
-
var _SdigWorkspaceDevelopers_decorators,
|
|
133570
|
+
var _SdigWorkspaceDevelopers_decorators, _init9, _a9;
|
|
133166
133571
|
_SdigWorkspaceDevelopers_decorators = [customElement("sdig-workspace-developers")];
|
|
133167
|
-
var SdigWorkspaceDevelopers = class extends (
|
|
133572
|
+
var SdigWorkspaceDevelopers = class extends (_a9 = DeesElement) {
|
|
133168
133573
|
static {
|
|
133169
133574
|
__name(this, "SdigWorkspaceDevelopers");
|
|
133170
133575
|
}
|
|
@@ -133202,47 +133607,47 @@ await sig.documents.send({
|
|
|
133202
133607
|
`;
|
|
133203
133608
|
}
|
|
133204
133609
|
};
|
|
133205
|
-
|
|
133206
|
-
SdigWorkspaceDevelopers = __decorateElement(
|
|
133207
|
-
__runInitializers(
|
|
133610
|
+
_init9 = __decoratorStart(_a9);
|
|
133611
|
+
SdigWorkspaceDevelopers = __decorateElement(_init9, 0, "SdigWorkspaceDevelopers", _SdigWorkspaceDevelopers_decorators, SdigWorkspaceDevelopers);
|
|
133612
|
+
__runInitializers(_init9, 1, SdigWorkspaceDevelopers);
|
|
133208
133613
|
|
|
133209
133614
|
// ts_web/elements/sdig-workspace/sdig-workspace-placeholder.ts
|
|
133210
|
-
var _subtitle_dec, _label_dec,
|
|
133615
|
+
var _subtitle_dec, _label_dec, _a10, _SdigWorkspacePlaceholder_decorators, _init10, _label, _subtitle;
|
|
133211
133616
|
_SdigWorkspacePlaceholder_decorators = [customElement("sdig-workspace-placeholder")];
|
|
133212
|
-
var _SdigWorkspacePlaceholder = class _SdigWorkspacePlaceholder extends (
|
|
133617
|
+
var _SdigWorkspacePlaceholder = class _SdigWorkspacePlaceholder extends (_a10 = DeesElement, _label_dec = [n5({ type: String })], _subtitle_dec = [n5({ type: String })], _a10) {
|
|
133213
133618
|
constructor() {
|
|
133214
133619
|
super(...arguments);
|
|
133215
|
-
__privateAdd(this, _label, __runInitializers(
|
|
133216
|
-
__privateAdd(this, _subtitle, __runInitializers(
|
|
133620
|
+
__privateAdd(this, _label, __runInitializers(_init10, 8, this, "Section")), __runInitializers(_init10, 11, this);
|
|
133621
|
+
__privateAdd(this, _subtitle, __runInitializers(_init10, 12, this, "Coming soon")), __runInitializers(_init10, 15, this);
|
|
133217
133622
|
}
|
|
133218
133623
|
render() {
|
|
133219
133624
|
return b2`${topBar({ breadcrumb: ["signature.digital", this.label], title: this.label, subtitle: pill("coming soon") })}<div class="content-scroll" style="display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--text-muted); gap: 8px;">${icon3("folder", 32)}<div style="font-size: 13px; color: var(--text-sec);">${this.label}</div><div style="font-size: 11px;">${this.subtitle}</div></div>`;
|
|
133220
133625
|
}
|
|
133221
133626
|
};
|
|
133222
|
-
|
|
133627
|
+
_init10 = __decoratorStart(_a10);
|
|
133223
133628
|
_label = new WeakMap();
|
|
133224
133629
|
_subtitle = new WeakMap();
|
|
133225
|
-
__decorateElement(
|
|
133226
|
-
__decorateElement(
|
|
133227
|
-
_SdigWorkspacePlaceholder = __decorateElement(
|
|
133630
|
+
__decorateElement(_init10, 4, "label", _label_dec, _SdigWorkspacePlaceholder, _label);
|
|
133631
|
+
__decorateElement(_init10, 4, "subtitle", _subtitle_dec, _SdigWorkspacePlaceholder, _subtitle);
|
|
133632
|
+
_SdigWorkspacePlaceholder = __decorateElement(_init10, 0, "SdigWorkspacePlaceholder", _SdigWorkspacePlaceholder_decorators, _SdigWorkspacePlaceholder);
|
|
133228
133633
|
__name(_SdigWorkspacePlaceholder, "SdigWorkspacePlaceholder");
|
|
133229
133634
|
__publicField(_SdigWorkspacePlaceholder, "demo", /* @__PURE__ */ __name(() => workspaceDemoFrame(b2`<sdig-workspace-placeholder label="Templates" subtitle="Reusable agreement templates"></sdig-workspace-placeholder>`), "demo"));
|
|
133230
133635
|
__publicField(_SdigWorkspacePlaceholder, "demoGroups", ["Signature Digital Workspace"]);
|
|
133231
133636
|
__publicField(_SdigWorkspacePlaceholder, "styles", [workspaceBaseStyles]);
|
|
133232
|
-
__runInitializers(
|
|
133637
|
+
__runInitializers(_init10, 1, _SdigWorkspacePlaceholder);
|
|
133233
133638
|
var SdigWorkspacePlaceholder = _SdigWorkspacePlaceholder;
|
|
133234
133639
|
|
|
133235
133640
|
// ts_web/elements/sdig-workspace/sdig-workspace.ts
|
|
133236
|
-
var _view_dec, _initialView_dec, _theme_dec, _density_dec2, _accent_dec,
|
|
133641
|
+
var _view_dec, _initialView_dec, _theme_dec, _density_dec2, _accent_dec, _a11, _SdigWorkspace_decorators, _init11, _accent, _density2, _theme, _initialView, _view;
|
|
133237
133642
|
_SdigWorkspace_decorators = [customElement("sdig-workspace")];
|
|
133238
|
-
var _SdigWorkspace = class _SdigWorkspace extends (
|
|
133643
|
+
var _SdigWorkspace = class _SdigWorkspace extends (_a11 = DeesElement, _accent_dec = [n5({ type: String })], _density_dec2 = [n5({ type: String })], _theme_dec = [n5({ type: String, reflect: true })], _initialView_dec = [n5({ type: String })], _view_dec = [r5()], _a11) {
|
|
133239
133644
|
constructor() {
|
|
133240
133645
|
super(...arguments);
|
|
133241
|
-
__privateAdd(this, _accent, __runInitializers(
|
|
133242
|
-
__privateAdd(this, _density2, __runInitializers(
|
|
133243
|
-
__privateAdd(this, _theme, __runInitializers(
|
|
133244
|
-
__privateAdd(this, _initialView, __runInitializers(
|
|
133245
|
-
__privateAdd(this, _view, __runInitializers(
|
|
133646
|
+
__privateAdd(this, _accent, __runInitializers(_init11, 8, this, "#3b82f6")), __runInitializers(_init11, 11, this);
|
|
133647
|
+
__privateAdd(this, _density2, __runInitializers(_init11, 12, this, "comfortable")), __runInitializers(_init11, 15, this);
|
|
133648
|
+
__privateAdd(this, _theme, __runInitializers(_init11, 16, this, "dark")), __runInitializers(_init11, 19, this);
|
|
133649
|
+
__privateAdd(this, _initialView, __runInitializers(_init11, 20, this, "inbox")), __runInitializers(_init11, 23, this);
|
|
133650
|
+
__privateAdd(this, _view, __runInitializers(_init11, 24, this, "inbox")), __runInitializers(_init11, 27, this);
|
|
133246
133651
|
__publicField(this, "connectedCallback", /* @__PURE__ */ __name(async () => {
|
|
133247
133652
|
await super.connectedCallback();
|
|
133248
133653
|
this.view = this.initialView || "inbox";
|
|
@@ -133313,18 +133718,18 @@ var _SdigWorkspace = class _SdigWorkspace extends (_a10 = DeesElement, _accent_d
|
|
|
133313
133718
|
return b2`<div class="workspace ${this.density === "compact" ? "compact" : ""}" style="--accent: ${this.accent};" data-screen-label=${this.view}>${this.renderSidebar()}<main class="main">${this.renderView()}<div class="statusbar"><span style="display: inline-flex; align-items: center; gap: 5px;"><span style="width: 6px; height: 6px; border-radius: 50%; background: var(--success);"></span>api.signature.digital</span><span>eu-central-1</span><span>4 sigs queued</span><div style="flex: 1;"></div><span style="color: var(--accent);">Open Source · MIT</span><span>v0.42.1</span><span>${icon3("git", 11)} main</span></div></main></div>`;
|
|
133314
133719
|
}
|
|
133315
133720
|
};
|
|
133316
|
-
|
|
133721
|
+
_init11 = __decoratorStart(_a11);
|
|
133317
133722
|
_accent = new WeakMap();
|
|
133318
133723
|
_density2 = new WeakMap();
|
|
133319
133724
|
_theme = new WeakMap();
|
|
133320
133725
|
_initialView = new WeakMap();
|
|
133321
133726
|
_view = new WeakMap();
|
|
133322
|
-
__decorateElement(
|
|
133323
|
-
__decorateElement(
|
|
133324
|
-
__decorateElement(
|
|
133325
|
-
__decorateElement(
|
|
133326
|
-
__decorateElement(
|
|
133327
|
-
_SdigWorkspace = __decorateElement(
|
|
133727
|
+
__decorateElement(_init11, 4, "accent", _accent_dec, _SdigWorkspace, _accent);
|
|
133728
|
+
__decorateElement(_init11, 4, "density", _density_dec2, _SdigWorkspace, _density2);
|
|
133729
|
+
__decorateElement(_init11, 4, "theme", _theme_dec, _SdigWorkspace, _theme);
|
|
133730
|
+
__decorateElement(_init11, 4, "initialView", _initialView_dec, _SdigWorkspace, _initialView);
|
|
133731
|
+
__decorateElement(_init11, 4, "view", _view_dec, _SdigWorkspace, _view);
|
|
133732
|
+
_SdigWorkspace = __decorateElement(_init11, 0, "SdigWorkspace", _SdigWorkspace_decorators, _SdigWorkspace);
|
|
133328
133733
|
__name(_SdigWorkspace, "SdigWorkspace");
|
|
133329
133734
|
__publicField(_SdigWorkspace, "demo", /* @__PURE__ */ __name(() => b2`<sdig-workspace></sdig-workspace>`, "demo"));
|
|
133330
133735
|
__publicField(_SdigWorkspace, "demoGroups", ["Signature Digital Workspace"]);
|
|
@@ -133408,7 +133813,7 @@ __publicField(_SdigWorkspace, "styles", i`
|
|
|
133408
133813
|
.statusbar { height: 24px; flex-shrink: 0; border-top: 1px solid var(--border-subtle); background: var(--bg); display: flex; align-items: center; padding: 0 16px; gap: 16px; font-size: 10px; color: var(--text-dim); font-family: 'Intel One Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
133409
133814
|
@media (max-width: 920px) { .workspace { flex-direction: column; min-height: 100vh; } .sidebar { width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--border-subtle); } .brand, .workspace-card, .github-card, .user-card { display: none; } .nav-block { display: flex; overflow-x: auto; padding: 8px; } .nav-item { width: auto; margin: 0 2px; } .statusbar { display: none; } }
|
|
133410
133815
|
`);
|
|
133411
|
-
__runInitializers(
|
|
133816
|
+
__runInitializers(_init11, 1, _SdigWorkspace);
|
|
133412
133817
|
var SdigWorkspace = _SdigWorkspace;
|
|
133413
133818
|
|
|
133414
133819
|
// ts_web/pages/index.ts
|