@pie-players/pie-assessment-toolkit 0.3.56 → 0.3.58
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/README.md +4 -0
- package/dist/components/ItemToolBar.custom-element.js +160 -975
- package/dist/components/PieAssessmentToolkit.custom-element.js +1 -1
- package/dist/components/SectionToolBar.custom-element.js +160 -973
- package/dist/services/tool-providers/DesmosToolProvider.d.ts +1 -1
- package/dist/services/tool-providers/DesmosToolProvider.js +1 -1
- package/dist/services/tool-providers/DesmosToolProvider.js.map +1 -1
- package/dist/tools/calculators/desmos-provider.d.ts +2 -2
- package/dist/tools/calculators/desmos-provider.js +2 -2
- package/dist/tools/calculators/desmos-provider.js.map +1 -1
- package/dist/tools/library-loader.js +3 -3
- package/dist/tools/library-loader.js.map +1 -1
- package/package.json +7 -7
- package/dist/components/vendor/nds/README.md +0 -110
- package/dist/components/vendor/nds/nds-icon-button.js +0 -826
|
@@ -4322,6 +4322,7 @@ import {
|
|
|
4322
4322
|
isProgrammaticFocusTarget
|
|
4323
4323
|
} from "@pie-players/pie-players-shared";
|
|
4324
4324
|
import { validateCustomElementTag } from "@pie-players/pie-players-shared/pie/tag-names";
|
|
4325
|
+
import"@pie-players/pie-players-shared/nds-icon-button";
|
|
4325
4326
|
var PUBLIC_VERSION2 = "5";
|
|
4326
4327
|
if (typeof window !== "undefined") {
|
|
4327
4328
|
((window.__svelte ??= {}).v ??= new Set).add(PUBLIC_VERSION2);
|
|
@@ -8948,6 +8949,29 @@ function set_attribute22(element2, attribute, value, skip_warning) {
|
|
|
8948
8949
|
element2.setAttribute(attribute, value);
|
|
8949
8950
|
}
|
|
8950
8951
|
}
|
|
8952
|
+
function set_custom_element_data2(node, prop2, value) {
|
|
8953
|
+
var previous_reaction = active_reaction2;
|
|
8954
|
+
var previous_effect = active_effect2;
|
|
8955
|
+
let was_hydrating = hydrating2;
|
|
8956
|
+
if (hydrating2) {
|
|
8957
|
+
set_hydrating2(false);
|
|
8958
|
+
}
|
|
8959
|
+
set_active_reaction2(null);
|
|
8960
|
+
set_active_effect2(null);
|
|
8961
|
+
try {
|
|
8962
|
+
if (prop2 !== "style" && (setters_cache2.has(node.getAttribute("is") || node.nodeName) || !customElements || customElements.get(node.getAttribute("is") || node.nodeName.toLowerCase()) ? get_setters2(node).includes(prop2) : value && typeof value === "object")) {
|
|
8963
|
+
node[prop2] = value;
|
|
8964
|
+
} else {
|
|
8965
|
+
set_attribute22(node, prop2, value == null ? value : String(value));
|
|
8966
|
+
}
|
|
8967
|
+
} finally {
|
|
8968
|
+
set_active_reaction2(previous_reaction);
|
|
8969
|
+
set_active_effect2(previous_effect);
|
|
8970
|
+
if (was_hydrating) {
|
|
8971
|
+
set_hydrating2(true);
|
|
8972
|
+
}
|
|
8973
|
+
}
|
|
8974
|
+
}
|
|
8951
8975
|
function get_attributes2(element2) {
|
|
8952
8976
|
return element2[ATTRIBUTES_CACHE2] ??= {
|
|
8953
8977
|
[IS_CUSTOM_ELEMENT2]: element2.nodeName.includes("-"),
|
|
@@ -10294,7 +10318,7 @@ class DesmosToolProvider {
|
|
|
10294
10318
|
providerId = "desmos-calculator";
|
|
10295
10319
|
providerName = "Desmos Calculator";
|
|
10296
10320
|
category = "calculator";
|
|
10297
|
-
version = "1.
|
|
10321
|
+
version = "1.12";
|
|
10298
10322
|
requiresAuth = true;
|
|
10299
10323
|
desmosProvider = null;
|
|
10300
10324
|
config = null;
|
|
@@ -11973,877 +11997,6 @@ function createPackagedToolRegistry(options = {}) {
|
|
|
11973
11997
|
includePackagedTools: true
|
|
11974
11998
|
});
|
|
11975
11999
|
}
|
|
11976
|
-
var H = globalThis;
|
|
11977
|
-
var D = H.ShadowRoot && (H.ShadyCSS === undefined || H.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
11978
|
-
var tt = Symbol();
|
|
11979
|
-
var W = /* @__PURE__ */ new WeakMap;
|
|
11980
|
-
var nt = class {
|
|
11981
|
-
constructor(t, e, s) {
|
|
11982
|
-
if (this._$cssResult$ = true, s !== tt)
|
|
11983
|
-
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
11984
|
-
this.cssText = t, this.t = e;
|
|
11985
|
-
}
|
|
11986
|
-
get styleSheet() {
|
|
11987
|
-
let t = this.o;
|
|
11988
|
-
const e = this.t;
|
|
11989
|
-
if (D && t === undefined) {
|
|
11990
|
-
const s = e !== undefined && e.length === 1;
|
|
11991
|
-
s && (t = W.get(e)), t === undefined && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), s && W.set(e, t));
|
|
11992
|
-
}
|
|
11993
|
-
return t;
|
|
11994
|
-
}
|
|
11995
|
-
toString() {
|
|
11996
|
-
return this.cssText;
|
|
11997
|
-
}
|
|
11998
|
-
};
|
|
11999
|
-
var rt = (o) => new nt(typeof o == "string" ? o : o + "", undefined, tt);
|
|
12000
|
-
var at = (o, t) => {
|
|
12001
|
-
if (D)
|
|
12002
|
-
o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
12003
|
-
else
|
|
12004
|
-
for (const e of t) {
|
|
12005
|
-
const s = document.createElement("style"), i = H.litNonce;
|
|
12006
|
-
i !== undefined && s.setAttribute("nonce", i), s.textContent = e.cssText, o.appendChild(s);
|
|
12007
|
-
}
|
|
12008
|
-
};
|
|
12009
|
-
var V = D ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
12010
|
-
let e = "";
|
|
12011
|
-
for (const s of t.cssRules)
|
|
12012
|
-
e += s.cssText;
|
|
12013
|
-
return rt(e);
|
|
12014
|
-
})(o) : o;
|
|
12015
|
-
var { is: ht, defineProperty: ct, getOwnPropertyDescriptor: lt, getOwnPropertyNames: dt, getOwnPropertySymbols: ut, getPrototypeOf: pt } = Object;
|
|
12016
|
-
var R = globalThis;
|
|
12017
|
-
var F = R.trustedTypes;
|
|
12018
|
-
var ft = F ? F.emptyScript : "";
|
|
12019
|
-
var bt = R.reactiveElementPolyfillSupport;
|
|
12020
|
-
var S = (o, t) => o;
|
|
12021
|
-
var N = { toAttribute(o, t) {
|
|
12022
|
-
switch (t) {
|
|
12023
|
-
case Boolean:
|
|
12024
|
-
o = o ? ft : null;
|
|
12025
|
-
break;
|
|
12026
|
-
case Object:
|
|
12027
|
-
case Array:
|
|
12028
|
-
o = o == null ? o : JSON.stringify(o);
|
|
12029
|
-
}
|
|
12030
|
-
return o;
|
|
12031
|
-
}, fromAttribute(o, t) {
|
|
12032
|
-
let e = o;
|
|
12033
|
-
switch (t) {
|
|
12034
|
-
case Boolean:
|
|
12035
|
-
e = o !== null;
|
|
12036
|
-
break;
|
|
12037
|
-
case Number:
|
|
12038
|
-
e = o === null ? null : Number(o);
|
|
12039
|
-
break;
|
|
12040
|
-
case Object:
|
|
12041
|
-
case Array:
|
|
12042
|
-
try {
|
|
12043
|
-
e = JSON.parse(o);
|
|
12044
|
-
} catch {
|
|
12045
|
-
e = null;
|
|
12046
|
-
}
|
|
12047
|
-
}
|
|
12048
|
-
return e;
|
|
12049
|
-
} };
|
|
12050
|
-
var L = (o, t) => !ht(o, t);
|
|
12051
|
-
var J = { attribute: true, type: String, converter: N, reflect: false, useDefault: false, hasChanged: L };
|
|
12052
|
-
Symbol.metadata ??= Symbol("metadata"), R.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap;
|
|
12053
|
-
var A = class extends HTMLElement {
|
|
12054
|
-
static addInitializer(t) {
|
|
12055
|
-
this._$Ei(), (this.l ??= []).push(t);
|
|
12056
|
-
}
|
|
12057
|
-
static get observedAttributes() {
|
|
12058
|
-
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
12059
|
-
}
|
|
12060
|
-
static createProperty(t, e = J) {
|
|
12061
|
-
if (e.state && (e.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = true), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
12062
|
-
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
12063
|
-
i !== undefined && ct(this.prototype, t, i);
|
|
12064
|
-
}
|
|
12065
|
-
}
|
|
12066
|
-
static getPropertyDescriptor(t, e, s) {
|
|
12067
|
-
const { get: i, set: n } = lt(this.prototype, t) ?? { get() {
|
|
12068
|
-
return this[e];
|
|
12069
|
-
}, set(r) {
|
|
12070
|
-
this[e] = r;
|
|
12071
|
-
} };
|
|
12072
|
-
return { get: i, set(r) {
|
|
12073
|
-
const h = i?.call(this);
|
|
12074
|
-
n?.call(this, r), this.requestUpdate(t, h, s);
|
|
12075
|
-
}, configurable: true, enumerable: true };
|
|
12076
|
-
}
|
|
12077
|
-
static getPropertyOptions(t) {
|
|
12078
|
-
return this.elementProperties.get(t) ?? J;
|
|
12079
|
-
}
|
|
12080
|
-
static _$Ei() {
|
|
12081
|
-
if (this.hasOwnProperty(S("elementProperties")))
|
|
12082
|
-
return;
|
|
12083
|
-
const t = pt(this);
|
|
12084
|
-
t.finalize(), t.l !== undefined && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
12085
|
-
}
|
|
12086
|
-
static finalize() {
|
|
12087
|
-
if (this.hasOwnProperty(S("finalized")))
|
|
12088
|
-
return;
|
|
12089
|
-
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(S("properties"))) {
|
|
12090
|
-
const e = this.properties, s = [...dt(e), ...ut(e)];
|
|
12091
|
-
for (const i of s)
|
|
12092
|
-
this.createProperty(i, e[i]);
|
|
12093
|
-
}
|
|
12094
|
-
const t = this[Symbol.metadata];
|
|
12095
|
-
if (t !== null) {
|
|
12096
|
-
const e = litPropertyMetadata.get(t);
|
|
12097
|
-
if (e !== undefined)
|
|
12098
|
-
for (const [s, i] of e)
|
|
12099
|
-
this.elementProperties.set(s, i);
|
|
12100
|
-
}
|
|
12101
|
-
this._$Eh = /* @__PURE__ */ new Map;
|
|
12102
|
-
for (const [e, s] of this.elementProperties) {
|
|
12103
|
-
const i = this._$Eu(e, s);
|
|
12104
|
-
i !== undefined && this._$Eh.set(i, e);
|
|
12105
|
-
}
|
|
12106
|
-
this.elementStyles = this.finalizeStyles(this.styles);
|
|
12107
|
-
}
|
|
12108
|
-
static finalizeStyles(t) {
|
|
12109
|
-
const e = [];
|
|
12110
|
-
if (Array.isArray(t)) {
|
|
12111
|
-
const s = new Set(t.flat(Infinity).reverse());
|
|
12112
|
-
for (const i of s)
|
|
12113
|
-
e.unshift(V(i));
|
|
12114
|
-
} else
|
|
12115
|
-
t !== undefined && e.push(V(t));
|
|
12116
|
-
return e;
|
|
12117
|
-
}
|
|
12118
|
-
static _$Eu(t, e) {
|
|
12119
|
-
const s = e.attribute;
|
|
12120
|
-
return s === false ? undefined : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : undefined;
|
|
12121
|
-
}
|
|
12122
|
-
constructor() {
|
|
12123
|
-
super(), this._$Ep = undefined, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
12124
|
-
}
|
|
12125
|
-
_$Ev() {
|
|
12126
|
-
this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map, this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t) => t(this));
|
|
12127
|
-
}
|
|
12128
|
-
addController(t) {
|
|
12129
|
-
(this._$EO ??= /* @__PURE__ */ new Set).add(t), this.renderRoot !== undefined && this.isConnected && t.hostConnected?.();
|
|
12130
|
-
}
|
|
12131
|
-
removeController(t) {
|
|
12132
|
-
this._$EO?.delete(t);
|
|
12133
|
-
}
|
|
12134
|
-
_$E_() {
|
|
12135
|
-
const t = /* @__PURE__ */ new Map, e = this.constructor.elementProperties;
|
|
12136
|
-
for (const s of e.keys())
|
|
12137
|
-
this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
12138
|
-
t.size > 0 && (this._$Ep = t);
|
|
12139
|
-
}
|
|
12140
|
-
createRenderRoot() {
|
|
12141
|
-
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
12142
|
-
return at(t, this.constructor.elementStyles), t;
|
|
12143
|
-
}
|
|
12144
|
-
connectedCallback() {
|
|
12145
|
-
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t) => t.hostConnected?.());
|
|
12146
|
-
}
|
|
12147
|
-
enableUpdating(t) {}
|
|
12148
|
-
disconnectedCallback() {
|
|
12149
|
-
this._$EO?.forEach((t) => t.hostDisconnected?.());
|
|
12150
|
-
}
|
|
12151
|
-
attributeChangedCallback(t, e, s) {
|
|
12152
|
-
this._$AK(t, s);
|
|
12153
|
-
}
|
|
12154
|
-
_$ET(t, e) {
|
|
12155
|
-
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
12156
|
-
if (i !== undefined && s.reflect === true) {
|
|
12157
|
-
const n = (s.converter?.toAttribute !== undefined ? s.converter : N).toAttribute(e, s.type);
|
|
12158
|
-
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
|
12159
|
-
}
|
|
12160
|
-
}
|
|
12161
|
-
_$AK(t, e) {
|
|
12162
|
-
const s = this.constructor, i = s._$Eh.get(t);
|
|
12163
|
-
if (i !== undefined && this._$Em !== i) {
|
|
12164
|
-
const n = s.getPropertyOptions(i), r = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== undefined ? n.converter : N;
|
|
12165
|
-
this._$Em = i;
|
|
12166
|
-
const h = r.fromAttribute(e, n.type);
|
|
12167
|
-
this[i] = h ?? this._$Ej?.get(i) ?? h, this._$Em = null;
|
|
12168
|
-
}
|
|
12169
|
-
}
|
|
12170
|
-
requestUpdate(t, e, s) {
|
|
12171
|
-
if (t !== undefined) {
|
|
12172
|
-
const i = this.constructor, n = this[t];
|
|
12173
|
-
if (s ??= i.getPropertyOptions(t), !((s.hasChanged ?? L)(n, e) || s.useDefault && s.reflect && n === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, s))))
|
|
12174
|
-
return;
|
|
12175
|
-
this.C(t, e, s);
|
|
12176
|
-
}
|
|
12177
|
-
this.isUpdatePending === false && (this._$ES = this._$EP());
|
|
12178
|
-
}
|
|
12179
|
-
C(t, e, { useDefault: s, reflect: i, wrapped: n }, r) {
|
|
12180
|
-
s && !(this._$Ej ??= /* @__PURE__ */ new Map).has(t) && (this._$Ej.set(t, r ?? e ?? this[t]), n !== true || r !== undefined) || (this._$AL.has(t) || (this.hasUpdated || s || (e = undefined), this._$AL.set(t, e)), i === true && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set).add(t));
|
|
12181
|
-
}
|
|
12182
|
-
async _$EP() {
|
|
12183
|
-
this.isUpdatePending = true;
|
|
12184
|
-
try {
|
|
12185
|
-
await this._$ES;
|
|
12186
|
-
} catch (e) {
|
|
12187
|
-
Promise.reject(e);
|
|
12188
|
-
}
|
|
12189
|
-
const t = this.scheduleUpdate();
|
|
12190
|
-
return t != null && await t, !this.isUpdatePending;
|
|
12191
|
-
}
|
|
12192
|
-
scheduleUpdate() {
|
|
12193
|
-
return this.performUpdate();
|
|
12194
|
-
}
|
|
12195
|
-
performUpdate() {
|
|
12196
|
-
if (!this.isUpdatePending)
|
|
12197
|
-
return;
|
|
12198
|
-
if (!this.hasUpdated) {
|
|
12199
|
-
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
12200
|
-
for (const [i, n] of this._$Ep)
|
|
12201
|
-
this[i] = n;
|
|
12202
|
-
this._$Ep = undefined;
|
|
12203
|
-
}
|
|
12204
|
-
const s = this.constructor.elementProperties;
|
|
12205
|
-
if (s.size > 0)
|
|
12206
|
-
for (const [i, n] of s) {
|
|
12207
|
-
const { wrapped: r } = n, h = this[i];
|
|
12208
|
-
r !== true || this._$AL.has(i) || h === undefined || this.C(i, undefined, n, h);
|
|
12209
|
-
}
|
|
12210
|
-
}
|
|
12211
|
-
let t = false;
|
|
12212
|
-
const e = this._$AL;
|
|
12213
|
-
try {
|
|
12214
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach((s) => s.hostUpdate?.()), this.update(e)) : this._$EM();
|
|
12215
|
-
} catch (s) {
|
|
12216
|
-
throw t = false, this._$EM(), s;
|
|
12217
|
-
}
|
|
12218
|
-
t && this._$AE(e);
|
|
12219
|
-
}
|
|
12220
|
-
willUpdate(t) {}
|
|
12221
|
-
_$AE(t) {
|
|
12222
|
-
this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
12223
|
-
}
|
|
12224
|
-
_$EM() {
|
|
12225
|
-
this._$AL = /* @__PURE__ */ new Map, this.isUpdatePending = false;
|
|
12226
|
-
}
|
|
12227
|
-
get updateComplete() {
|
|
12228
|
-
return this.getUpdateComplete();
|
|
12229
|
-
}
|
|
12230
|
-
getUpdateComplete() {
|
|
12231
|
-
return this._$ES;
|
|
12232
|
-
}
|
|
12233
|
-
shouldUpdate(t) {
|
|
12234
|
-
return true;
|
|
12235
|
-
}
|
|
12236
|
-
update(t) {
|
|
12237
|
-
this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
|
|
12238
|
-
}
|
|
12239
|
-
updated(t) {}
|
|
12240
|
-
firstUpdated(t) {}
|
|
12241
|
-
};
|
|
12242
|
-
A.elementStyles = [], A.shadowRootOptions = { mode: "open" }, A[S("elementProperties")] = /* @__PURE__ */ new Map, A[S("finalized")] = /* @__PURE__ */ new Map, bt?.({ ReactiveElement: A }), (R.reactiveElementVersions ??= []).push("2.1.1");
|
|
12243
|
-
var I = globalThis;
|
|
12244
|
-
var T = I.trustedTypes;
|
|
12245
|
-
var K = T ? T.createPolicy("lit-html", { createHTML: (o) => o }) : undefined;
|
|
12246
|
-
var et = "$lit$";
|
|
12247
|
-
var v = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
12248
|
-
var st = "?" + v;
|
|
12249
|
-
var $t = `<${st}>`;
|
|
12250
|
-
var g = document;
|
|
12251
|
-
var k = () => g.createComment("");
|
|
12252
|
-
var P = (o) => o === null || typeof o != "object" && typeof o != "function";
|
|
12253
|
-
var B = Array.isArray;
|
|
12254
|
-
var vt = (o) => B(o) || typeof o?.[Symbol.iterator] == "function";
|
|
12255
|
-
var j = `[
|
|
12256
|
-
\f\r]`;
|
|
12257
|
-
var x = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
12258
|
-
var Z = /-->/g;
|
|
12259
|
-
var G = />/g;
|
|
12260
|
-
var y = RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^
|
|
12261
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
12262
|
-
var Q = /'/g;
|
|
12263
|
-
var X = /"/g;
|
|
12264
|
-
var it = /^(?:script|style|textarea|title)$/i;
|
|
12265
|
-
var _t = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e });
|
|
12266
|
-
var yt = _t(1);
|
|
12267
|
-
var w = Symbol.for("lit-noChange");
|
|
12268
|
-
var d = Symbol.for("lit-nothing");
|
|
12269
|
-
var Y = /* @__PURE__ */ new WeakMap;
|
|
12270
|
-
var m = g.createTreeWalker(g, 129);
|
|
12271
|
-
function ot(o, t) {
|
|
12272
|
-
if (!B(o) || !o.hasOwnProperty("raw"))
|
|
12273
|
-
throw Error("invalid template strings array");
|
|
12274
|
-
return K !== undefined ? K.createHTML(t) : t;
|
|
12275
|
-
}
|
|
12276
|
-
var mt = (o, t) => {
|
|
12277
|
-
const e = o.length - 1, s = [];
|
|
12278
|
-
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = x;
|
|
12279
|
-
for (let h = 0;h < e; h++) {
|
|
12280
|
-
const a = o[h];
|
|
12281
|
-
let l, u, c = -1, f = 0;
|
|
12282
|
-
for (;f < a.length && (r.lastIndex = f, u = r.exec(a), u !== null); )
|
|
12283
|
-
f = r.lastIndex, r === x ? u[1] === "!--" ? r = Z : u[1] !== undefined ? r = G : u[2] !== undefined ? (it.test(u[2]) && (i = RegExp("</" + u[2], "g")), r = y) : u[3] !== undefined && (r = y) : r === y ? u[0] === ">" ? (r = i ?? x, c = -1) : u[1] === undefined ? c = -2 : (c = r.lastIndex - u[2].length, l = u[1], r = u[3] === undefined ? y : u[3] === '"' ? X : Q) : r === X || r === Q ? r = y : r === Z || r === G ? r = x : (r = y, i = undefined);
|
|
12284
|
-
const $ = r === y && o[h + 1].startsWith("/>") ? " " : "";
|
|
12285
|
-
n += r === x ? a + $t : c >= 0 ? (s.push(l), a.slice(0, c) + et + a.slice(c) + v + $) : a + v + (c === -2 ? h : $);
|
|
12286
|
-
}
|
|
12287
|
-
return [ot(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
12288
|
-
};
|
|
12289
|
-
|
|
12290
|
-
class O {
|
|
12291
|
-
constructor({ strings: t, _$litType$: e }, s) {
|
|
12292
|
-
let i;
|
|
12293
|
-
this.parts = [];
|
|
12294
|
-
let n = 0, r = 0;
|
|
12295
|
-
const h = t.length - 1, a = this.parts, [l, u] = mt(t, e);
|
|
12296
|
-
if (this.el = O.createElement(l, s), m.currentNode = this.el.content, e === 2 || e === 3) {
|
|
12297
|
-
const c = this.el.content.firstChild;
|
|
12298
|
-
c.replaceWith(...c.childNodes);
|
|
12299
|
-
}
|
|
12300
|
-
for (;(i = m.nextNode()) !== null && a.length < h; ) {
|
|
12301
|
-
if (i.nodeType === 1) {
|
|
12302
|
-
if (i.hasAttributes())
|
|
12303
|
-
for (const c of i.getAttributeNames())
|
|
12304
|
-
if (c.endsWith(et)) {
|
|
12305
|
-
const f = u[r++], $ = i.getAttribute(c).split(v), M = /([.?@])?(.*)/.exec(f);
|
|
12306
|
-
a.push({ type: 1, index: n, name: M[2], strings: $, ctor: M[1] === "." ? At : M[1] === "?" ? wt : M[1] === "@" ? Et : z }), i.removeAttribute(c);
|
|
12307
|
-
} else
|
|
12308
|
-
c.startsWith(v) && (a.push({ type: 6, index: n }), i.removeAttribute(c));
|
|
12309
|
-
if (it.test(i.tagName)) {
|
|
12310
|
-
const c = i.textContent.split(v), f = c.length - 1;
|
|
12311
|
-
if (f > 0) {
|
|
12312
|
-
i.textContent = T ? T.emptyScript : "";
|
|
12313
|
-
for (let $ = 0;$ < f; $++)
|
|
12314
|
-
i.append(c[$], k()), m.nextNode(), a.push({ type: 2, index: ++n });
|
|
12315
|
-
i.append(c[f], k());
|
|
12316
|
-
}
|
|
12317
|
-
}
|
|
12318
|
-
} else if (i.nodeType === 8)
|
|
12319
|
-
if (i.data === st)
|
|
12320
|
-
a.push({ type: 2, index: n });
|
|
12321
|
-
else {
|
|
12322
|
-
let c = -1;
|
|
12323
|
-
for (;(c = i.data.indexOf(v, c + 1)) !== -1; )
|
|
12324
|
-
a.push({ type: 7, index: n }), c += v.length - 1;
|
|
12325
|
-
}
|
|
12326
|
-
n++;
|
|
12327
|
-
}
|
|
12328
|
-
}
|
|
12329
|
-
static createElement(t, e) {
|
|
12330
|
-
const s = g.createElement("template");
|
|
12331
|
-
return s.innerHTML = t, s;
|
|
12332
|
-
}
|
|
12333
|
-
}
|
|
12334
|
-
function E(o, t, e = o, s) {
|
|
12335
|
-
if (t === w)
|
|
12336
|
-
return t;
|
|
12337
|
-
let i = s !== undefined ? e._$Co?.[s] : e._$Cl;
|
|
12338
|
-
const n = P(t) ? undefined : t._$litDirective$;
|
|
12339
|
-
return i?.constructor !== n && (i?._$AO?.(false), n === undefined ? i = undefined : (i = new n(o), i._$AT(o, e, s)), s !== undefined ? (e._$Co ??= [])[s] = i : e._$Cl = i), i !== undefined && (t = E(o, i._$AS(o, t.values), i, s)), t;
|
|
12340
|
-
}
|
|
12341
|
-
|
|
12342
|
-
class gt {
|
|
12343
|
-
constructor(t, e) {
|
|
12344
|
-
this._$AV = [], this._$AN = undefined, this._$AD = t, this._$AM = e;
|
|
12345
|
-
}
|
|
12346
|
-
get parentNode() {
|
|
12347
|
-
return this._$AM.parentNode;
|
|
12348
|
-
}
|
|
12349
|
-
get _$AU() {
|
|
12350
|
-
return this._$AM._$AU;
|
|
12351
|
-
}
|
|
12352
|
-
u(t) {
|
|
12353
|
-
const { el: { content: e }, parts: s } = this._$AD, i = (t?.creationScope ?? g).importNode(e, true);
|
|
12354
|
-
m.currentNode = i;
|
|
12355
|
-
let n = m.nextNode(), r = 0, h = 0, a = s[0];
|
|
12356
|
-
for (;a !== undefined; ) {
|
|
12357
|
-
if (r === a.index) {
|
|
12358
|
-
let l;
|
|
12359
|
-
a.type === 2 ? l = new U(n, n.nextSibling, this, t) : a.type === 1 ? l = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (l = new xt(n, this, t)), this._$AV.push(l), a = s[++h];
|
|
12360
|
-
}
|
|
12361
|
-
r !== a?.index && (n = m.nextNode(), r++);
|
|
12362
|
-
}
|
|
12363
|
-
return m.currentNode = g, i;
|
|
12364
|
-
}
|
|
12365
|
-
p(t) {
|
|
12366
|
-
let e = 0;
|
|
12367
|
-
for (const s of this._$AV)
|
|
12368
|
-
s !== undefined && (s.strings !== undefined ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
12369
|
-
}
|
|
12370
|
-
}
|
|
12371
|
-
|
|
12372
|
-
class U {
|
|
12373
|
-
get _$AU() {
|
|
12374
|
-
return this._$AM?._$AU ?? this._$Cv;
|
|
12375
|
-
}
|
|
12376
|
-
constructor(t, e, s, i) {
|
|
12377
|
-
this.type = 2, this._$AH = d, this._$AN = undefined, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = i?.isConnected ?? true;
|
|
12378
|
-
}
|
|
12379
|
-
get parentNode() {
|
|
12380
|
-
let t = this._$AA.parentNode;
|
|
12381
|
-
const e = this._$AM;
|
|
12382
|
-
return e !== undefined && t?.nodeType === 11 && (t = e.parentNode), t;
|
|
12383
|
-
}
|
|
12384
|
-
get startNode() {
|
|
12385
|
-
return this._$AA;
|
|
12386
|
-
}
|
|
12387
|
-
get endNode() {
|
|
12388
|
-
return this._$AB;
|
|
12389
|
-
}
|
|
12390
|
-
_$AI(t, e = this) {
|
|
12391
|
-
t = E(this, t, e), P(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== w && this._(t) : t._$litType$ !== undefined ? this.$(t) : t.nodeType !== undefined ? this.T(t) : vt(t) ? this.k(t) : this._(t);
|
|
12392
|
-
}
|
|
12393
|
-
O(t) {
|
|
12394
|
-
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
12395
|
-
}
|
|
12396
|
-
T(t) {
|
|
12397
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
12398
|
-
}
|
|
12399
|
-
_(t) {
|
|
12400
|
-
this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T(g.createTextNode(t)), this._$AH = t;
|
|
12401
|
-
}
|
|
12402
|
-
$(t) {
|
|
12403
|
-
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === undefined && (s.el = O.createElement(ot(s.h, s.h[0]), this.options)), s);
|
|
12404
|
-
if (this._$AH?._$AD === i)
|
|
12405
|
-
this._$AH.p(e);
|
|
12406
|
-
else {
|
|
12407
|
-
const n = new gt(i, this), r = n.u(this.options);
|
|
12408
|
-
n.p(e), this.T(r), this._$AH = n;
|
|
12409
|
-
}
|
|
12410
|
-
}
|
|
12411
|
-
_$AC(t) {
|
|
12412
|
-
let e = Y.get(t.strings);
|
|
12413
|
-
return e === undefined && Y.set(t.strings, e = new O(t)), e;
|
|
12414
|
-
}
|
|
12415
|
-
k(t) {
|
|
12416
|
-
B(this._$AH) || (this._$AH = [], this._$AR());
|
|
12417
|
-
const e = this._$AH;
|
|
12418
|
-
let s, i = 0;
|
|
12419
|
-
for (const n of t)
|
|
12420
|
-
i === e.length ? e.push(s = new U(this.O(k()), this.O(k()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
|
12421
|
-
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
12422
|
-
}
|
|
12423
|
-
_$AR(t = this._$AA.nextSibling, e) {
|
|
12424
|
-
for (this._$AP?.(false, true, e);t !== this._$AB; ) {
|
|
12425
|
-
const s = t.nextSibling;
|
|
12426
|
-
t.remove(), t = s;
|
|
12427
|
-
}
|
|
12428
|
-
}
|
|
12429
|
-
setConnected(t) {
|
|
12430
|
-
this._$AM === undefined && (this._$Cv = t, this._$AP?.(t));
|
|
12431
|
-
}
|
|
12432
|
-
}
|
|
12433
|
-
|
|
12434
|
-
class z {
|
|
12435
|
-
get tagName() {
|
|
12436
|
-
return this.element.tagName;
|
|
12437
|
-
}
|
|
12438
|
-
get _$AU() {
|
|
12439
|
-
return this._$AM._$AU;
|
|
12440
|
-
}
|
|
12441
|
-
constructor(t, e, s, i, n) {
|
|
12442
|
-
this.type = 1, this._$AH = d, this._$AN = undefined, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = d;
|
|
12443
|
-
}
|
|
12444
|
-
_$AI(t, e = this, s, i) {
|
|
12445
|
-
const n = this.strings;
|
|
12446
|
-
let r = false;
|
|
12447
|
-
if (n === undefined)
|
|
12448
|
-
t = E(this, t, e, 0), r = !P(t) || t !== this._$AH && t !== w, r && (this._$AH = t);
|
|
12449
|
-
else {
|
|
12450
|
-
const h = t;
|
|
12451
|
-
let a, l;
|
|
12452
|
-
for (t = n[0], a = 0;a < n.length - 1; a++)
|
|
12453
|
-
l = E(this, h[s + a], e, a), l === w && (l = this._$AH[a]), r ||= !P(l) || l !== this._$AH[a], l === d ? t = d : t !== d && (t += (l ?? "") + n[a + 1]), this._$AH[a] = l;
|
|
12454
|
-
}
|
|
12455
|
-
r && !i && this.j(t);
|
|
12456
|
-
}
|
|
12457
|
-
j(t) {
|
|
12458
|
-
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
12459
|
-
}
|
|
12460
|
-
}
|
|
12461
|
-
|
|
12462
|
-
class At extends z {
|
|
12463
|
-
constructor() {
|
|
12464
|
-
super(...arguments), this.type = 3;
|
|
12465
|
-
}
|
|
12466
|
-
j(t) {
|
|
12467
|
-
this.element[this.name] = t === d ? undefined : t;
|
|
12468
|
-
}
|
|
12469
|
-
}
|
|
12470
|
-
|
|
12471
|
-
class wt extends z {
|
|
12472
|
-
constructor() {
|
|
12473
|
-
super(...arguments), this.type = 4;
|
|
12474
|
-
}
|
|
12475
|
-
j(t) {
|
|
12476
|
-
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
12477
|
-
}
|
|
12478
|
-
}
|
|
12479
|
-
|
|
12480
|
-
class Et extends z {
|
|
12481
|
-
constructor(t, e, s, i, n) {
|
|
12482
|
-
super(t, e, s, i, n), this.type = 5;
|
|
12483
|
-
}
|
|
12484
|
-
_$AI(t, e = this) {
|
|
12485
|
-
if ((t = E(this, t, e, 0) ?? d) === w)
|
|
12486
|
-
return;
|
|
12487
|
-
const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== d && (s === d || i);
|
|
12488
|
-
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
12489
|
-
}
|
|
12490
|
-
handleEvent(t) {
|
|
12491
|
-
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
12492
|
-
}
|
|
12493
|
-
}
|
|
12494
|
-
|
|
12495
|
-
class xt {
|
|
12496
|
-
constructor(t, e, s) {
|
|
12497
|
-
this.element = t, this.type = 6, this._$AN = undefined, this._$AM = e, this.options = s;
|
|
12498
|
-
}
|
|
12499
|
-
get _$AU() {
|
|
12500
|
-
return this._$AM._$AU;
|
|
12501
|
-
}
|
|
12502
|
-
_$AI(t) {
|
|
12503
|
-
E(this, t);
|
|
12504
|
-
}
|
|
12505
|
-
}
|
|
12506
|
-
var St = I.litHtmlPolyfillSupport;
|
|
12507
|
-
St?.(O, U), (I.litHtmlVersions ??= []).push("3.3.1");
|
|
12508
|
-
var Ct = (o, t, e) => {
|
|
12509
|
-
const s = e?.renderBefore ?? t;
|
|
12510
|
-
let i = s._$litPart$;
|
|
12511
|
-
if (i === undefined) {
|
|
12512
|
-
const n = e?.renderBefore ?? null;
|
|
12513
|
-
s._$litPart$ = i = new U(t.insertBefore(k(), n), n, undefined, e ?? {});
|
|
12514
|
-
}
|
|
12515
|
-
return i._$AI(o), i;
|
|
12516
|
-
};
|
|
12517
|
-
var q = globalThis;
|
|
12518
|
-
|
|
12519
|
-
class C extends A {
|
|
12520
|
-
constructor() {
|
|
12521
|
-
super(...arguments), this.renderOptions = { host: this }, this._$Do = undefined;
|
|
12522
|
-
}
|
|
12523
|
-
createRenderRoot() {
|
|
12524
|
-
const t = super.createRenderRoot();
|
|
12525
|
-
return this.renderOptions.renderBefore ??= t.firstChild, t;
|
|
12526
|
-
}
|
|
12527
|
-
update(t) {
|
|
12528
|
-
const e = this.render();
|
|
12529
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ct(e, this.renderRoot, this.renderOptions);
|
|
12530
|
-
}
|
|
12531
|
-
connectedCallback() {
|
|
12532
|
-
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
12533
|
-
}
|
|
12534
|
-
disconnectedCallback() {
|
|
12535
|
-
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
12536
|
-
}
|
|
12537
|
-
render() {
|
|
12538
|
-
return w;
|
|
12539
|
-
}
|
|
12540
|
-
}
|
|
12541
|
-
C._$litElement$ = true, C.finalized = true, q.litElementHydrateSupport?.({ LitElement: C });
|
|
12542
|
-
var kt = q.litElementPolyfillSupport;
|
|
12543
|
-
kt?.({ LitElement: C });
|
|
12544
|
-
(q.litElementVersions ??= []).push("4.2.1");
|
|
12545
|
-
var Pt = (o) => (t, e) => {
|
|
12546
|
-
e !== undefined ? e.addInitializer(() => {
|
|
12547
|
-
customElements.get(o) || customElements.define(o, t);
|
|
12548
|
-
}) : customElements.get(o) || customElements.define(o, t);
|
|
12549
|
-
};
|
|
12550
|
-
var Ot = { attribute: true, type: String, converter: N, reflect: false, hasChanged: L };
|
|
12551
|
-
var Ut = (o = Ot, t, e) => {
|
|
12552
|
-
const { kind: s, metadata: i } = e;
|
|
12553
|
-
let n = globalThis.litPropertyMetadata.get(i);
|
|
12554
|
-
if (n === undefined && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map), s === "setter" && ((o = Object.create(o)).wrapped = true), n.set(e.name, o), s === "accessor") {
|
|
12555
|
-
const { name: r } = e;
|
|
12556
|
-
return { set(h) {
|
|
12557
|
-
const a = t.get.call(this);
|
|
12558
|
-
t.set.call(this, h), this.requestUpdate(r, a, o);
|
|
12559
|
-
}, init(h) {
|
|
12560
|
-
return h !== undefined && this.C(r, undefined, o, h), h;
|
|
12561
|
-
} };
|
|
12562
|
-
}
|
|
12563
|
-
if (s === "setter") {
|
|
12564
|
-
const { name: r } = e;
|
|
12565
|
-
return function(h) {
|
|
12566
|
-
const a = this[r];
|
|
12567
|
-
t.call(this, h), this.requestUpdate(r, a, o);
|
|
12568
|
-
};
|
|
12569
|
-
}
|
|
12570
|
-
throw Error("Unsupported decorator location: " + s);
|
|
12571
|
-
};
|
|
12572
|
-
function _(o) {
|
|
12573
|
-
return (t, e) => typeof e == "object" ? Ut(o, t, e) : ((s, i, n) => {
|
|
12574
|
-
const r = i.hasOwnProperty(n);
|
|
12575
|
-
return i.constructor.createProperty(n, s), r ? Object.getOwnPropertyDescriptor(i, n) : undefined;
|
|
12576
|
-
})(o, t, e);
|
|
12577
|
-
}
|
|
12578
|
-
var Mt = Object.defineProperty;
|
|
12579
|
-
var Ht = Object.getOwnPropertyDescriptor;
|
|
12580
|
-
var b = (o, t, e, s) => {
|
|
12581
|
-
for (var i = s > 1 ? undefined : s ? Ht(t, e) : t, n = o.length - 1, r;n >= 0; n--)
|
|
12582
|
-
(r = o[n]) && (i = (s ? r(t, e, i) : r(i)) || i);
|
|
12583
|
-
return s && i && Mt(t, e, i), i;
|
|
12584
|
-
};
|
|
12585
|
-
var p = class extends C {
|
|
12586
|
-
constructor() {
|
|
12587
|
-
super(...arguments), this.variant = "primary", this.size = "default", this.type = "circle", this.state = "default", this.iconName = "home", this.disabled = false, this.buttonAriaLabel = "Icon button";
|
|
12588
|
-
}
|
|
12589
|
-
createRenderRoot() {
|
|
12590
|
-
return this;
|
|
12591
|
-
}
|
|
12592
|
-
connectedCallback() {
|
|
12593
|
-
if (super.connectedCallback(), !document.querySelector('link[href*="Roboto"]')) {
|
|
12594
|
-
const o = document.createElement("link");
|
|
12595
|
-
o.rel = "stylesheet", o.href = "https://ui.renaissance.com/fonts/Roboto/style.css", document.head.appendChild(o);
|
|
12596
|
-
}
|
|
12597
|
-
}
|
|
12598
|
-
set shape(o) {
|
|
12599
|
-
this.type = o;
|
|
12600
|
-
}
|
|
12601
|
-
get shape() {
|
|
12602
|
-
return this.type;
|
|
12603
|
-
}
|
|
12604
|
-
get buttonClasses() {
|
|
12605
|
-
return [
|
|
12606
|
-
"nds-icon-button",
|
|
12607
|
-
`nds-icon-button--${this.variant}`,
|
|
12608
|
-
`nds-icon-button--${this.size}`,
|
|
12609
|
-
`nds-icon-button--${this.type}`,
|
|
12610
|
-
this.state !== "default" ? `nds-icon-button--${this.state}` : "",
|
|
12611
|
-
this.disabled ? "nds-icon-button--disabled" : ""
|
|
12612
|
-
].filter(Boolean).join(" ");
|
|
12613
|
-
}
|
|
12614
|
-
handleClick(o) {
|
|
12615
|
-
if (this.disabled) {
|
|
12616
|
-
o.preventDefault(), o.stopPropagation();
|
|
12617
|
-
return;
|
|
12618
|
-
}
|
|
12619
|
-
this.dispatchEvent(new CustomEvent("icon-button-click", {
|
|
12620
|
-
bubbles: true,
|
|
12621
|
-
composed: true,
|
|
12622
|
-
detail: { originalEvent: o }
|
|
12623
|
-
}));
|
|
12624
|
-
}
|
|
12625
|
-
render() {
|
|
12626
|
-
return yt`
|
|
12627
|
-
<style>
|
|
12628
|
-
nds-icon-button {
|
|
12629
|
-
display: inline-block;
|
|
12630
|
-
}
|
|
12631
|
-
|
|
12632
|
-
.nds-icon-button {
|
|
12633
|
-
display: inline-flex;
|
|
12634
|
-
align-items: center;
|
|
12635
|
-
justify-content: center;
|
|
12636
|
-
cursor: pointer;
|
|
12637
|
-
font-family: var(--font-family-roboto, "Roboto", sans-serif);
|
|
12638
|
-
font-weight: var(--font-weight-regular, 400);
|
|
12639
|
-
line-height: 1;
|
|
12640
|
-
text-decoration: none;
|
|
12641
|
-
background: none;
|
|
12642
|
-
position: relative;
|
|
12643
|
-
box-sizing: border-box;
|
|
12644
|
-
margin: 0;
|
|
12645
|
-
padding: 0;
|
|
12646
|
-
border: none;
|
|
12647
|
-
transition: background-color 0.2s ease-in-out,
|
|
12648
|
-
color 0.2s ease-in-out,
|
|
12649
|
-
box-shadow 0.2s ease-in-out;
|
|
12650
|
-
}
|
|
12651
|
-
|
|
12652
|
-
/* ── Sizes ── */
|
|
12653
|
-
.nds-icon-button--small {
|
|
12654
|
-
width: var(--height-32, 32px);
|
|
12655
|
-
height: var(--height-32, 32px);
|
|
12656
|
-
}
|
|
12657
|
-
|
|
12658
|
-
.nds-icon-button--medium {
|
|
12659
|
-
width: var(--height-36, 36px);
|
|
12660
|
-
height: var(--height-36, 36px);
|
|
12661
|
-
}
|
|
12662
|
-
|
|
12663
|
-
.nds-icon-button--default {
|
|
12664
|
-
width: var(--height-40, 40px);
|
|
12665
|
-
height: var(--height-40, 40px);
|
|
12666
|
-
}
|
|
12667
|
-
|
|
12668
|
-
.nds-icon-button--large {
|
|
12669
|
-
width: var(--height-48, 48px);
|
|
12670
|
-
height: var(--height-48, 48px);
|
|
12671
|
-
}
|
|
12672
|
-
|
|
12673
|
-
/* ── Shapes ── */
|
|
12674
|
-
.nds-icon-button--circle {
|
|
12675
|
-
border-radius: var(--radius-circle, 50%);
|
|
12676
|
-
}
|
|
12677
|
-
|
|
12678
|
-
.nds-icon-button--rounded {
|
|
12679
|
-
border-radius: var(--radius-8, 8px);
|
|
12680
|
-
}
|
|
12681
|
-
|
|
12682
|
-
/* ── Primary ── */
|
|
12683
|
-
.nds-icon-button--primary {
|
|
12684
|
-
background-color: var(--color-interactive-blue, #146eb3);
|
|
12685
|
-
color: var(--color-primary-white, #ffffff);
|
|
12686
|
-
}
|
|
12687
|
-
|
|
12688
|
-
.nds-icon-button--primary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
12689
|
-
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
12690
|
-
}
|
|
12691
|
-
|
|
12692
|
-
.nds-icon-button--primary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
12693
|
-
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
12694
|
-
}
|
|
12695
|
-
|
|
12696
|
-
/* ── Secondary ── */
|
|
12697
|
-
.nds-icon-button--secondary {
|
|
12698
|
-
background-color: var(--color-primary-white, #ffffff);
|
|
12699
|
-
color: var(--color-interactive-blue, #146eb3);
|
|
12700
|
-
box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-interactive-blue, #146eb3);
|
|
12701
|
-
}
|
|
12702
|
-
|
|
12703
|
-
.nds-icon-button--secondary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
12704
|
-
background-color: var(--color-interactive-blue, #146eb3);
|
|
12705
|
-
color: var(--color-primary-white, #ffffff);
|
|
12706
|
-
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
12707
|
-
}
|
|
12708
|
-
|
|
12709
|
-
.nds-icon-button--secondary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
12710
|
-
background-color: var(--color-interactive-blue, #146eb3);
|
|
12711
|
-
color: var(--color-primary-white, #ffffff);
|
|
12712
|
-
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
12713
|
-
}
|
|
12714
|
-
|
|
12715
|
-
/* ── Tertiary ── */
|
|
12716
|
-
.nds-icon-button--tertiary {
|
|
12717
|
-
background-color: var(--color-new-gray, #f3f5f7);
|
|
12718
|
-
color: var(--color-interactive-blue, #146eb3);
|
|
12719
|
-
}
|
|
12720
|
-
|
|
12721
|
-
.nds-icon-button--tertiary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
12722
|
-
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
|
|
12723
|
-
}
|
|
12724
|
-
|
|
12725
|
-
.nds-icon-button--tertiary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
12726
|
-
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
12727
|
-
}
|
|
12728
|
-
|
|
12729
|
-
/* ── Ghost ── */
|
|
12730
|
-
.nds-icon-button--ghost {
|
|
12731
|
-
background-color: transparent;
|
|
12732
|
-
color: var(--color-interactive-blue, #146eb3);
|
|
12733
|
-
}
|
|
12734
|
-
|
|
12735
|
-
.nds-icon-button--ghost:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
12736
|
-
background-color: var(--color-new-gray, #f3f5f7);
|
|
12737
|
-
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
|
|
12738
|
-
}
|
|
12739
|
-
|
|
12740
|
-
.nds-icon-button--ghost:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
12741
|
-
background-color: var(--color-new-gray, #f3f5f7);
|
|
12742
|
-
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
12743
|
-
}
|
|
12744
|
-
|
|
12745
|
-
/* ── Dark (for dark backgrounds) ── */
|
|
12746
|
-
.nds-icon-button--dark {
|
|
12747
|
-
background-color: transparent;
|
|
12748
|
-
color: var(--color-primary-white, #ffffff);
|
|
12749
|
-
box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-primary-white, #ffffff);
|
|
12750
|
-
}
|
|
12751
|
-
|
|
12752
|
-
.nds-icon-button--dark:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
12753
|
-
background-color: var(--color-interactive-blue, #146eb3);
|
|
12754
|
-
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
|
|
12755
|
-
}
|
|
12756
|
-
|
|
12757
|
-
.nds-icon-button--dark:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
12758
|
-
background-color: var(--color-interactive-blue, #146eb3);
|
|
12759
|
-
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
|
|
12760
|
-
}
|
|
12761
|
-
|
|
12762
|
-
/* ── Disabled ── */
|
|
12763
|
-
.nds-icon-button--disabled,
|
|
12764
|
-
.nds-icon-button:disabled {
|
|
12765
|
-
opacity: 0.5;
|
|
12766
|
-
cursor: not-allowed;
|
|
12767
|
-
}
|
|
12768
|
-
|
|
12769
|
-
/* ── Icon sizing ── */
|
|
12770
|
-
.nds-icon-button__icon {
|
|
12771
|
-
line-height: 1;
|
|
12772
|
-
display: inline-flex;
|
|
12773
|
-
align-items: center;
|
|
12774
|
-
justify-content: center;
|
|
12775
|
-
color: inherit;
|
|
12776
|
-
}
|
|
12777
|
-
|
|
12778
|
-
.nds-icon-button--small .nds-icon-button__icon {
|
|
12779
|
-
font-size: var(--nds-icon-small, 12px);
|
|
12780
|
-
}
|
|
12781
|
-
|
|
12782
|
-
.nds-icon-button--medium .nds-icon-button__icon {
|
|
12783
|
-
font-size: var(--nds-icon-medium, 14px);
|
|
12784
|
-
}
|
|
12785
|
-
|
|
12786
|
-
.nds-icon-button--default .nds-icon-button__icon {
|
|
12787
|
-
font-size: var(--nds-icon-default, 16px);
|
|
12788
|
-
}
|
|
12789
|
-
|
|
12790
|
-
.nds-icon-button--large .nds-icon-button__icon {
|
|
12791
|
-
font-size: var(--nds-icon-large, 20px);
|
|
12792
|
-
}
|
|
12793
|
-
|
|
12794
|
-
/* ── Focus ── */
|
|
12795
|
-
.nds-icon-button:focus-visible {
|
|
12796
|
-
outline: 2px solid var(--color-focus-blue, #2b87ff);
|
|
12797
|
-
outline-offset: 2px;
|
|
12798
|
-
}
|
|
12799
|
-
|
|
12800
|
-
/* ── Reduced motion ── */
|
|
12801
|
-
@media (prefers-reduced-motion: reduce) {
|
|
12802
|
-
.nds-icon-button {
|
|
12803
|
-
transition: none;
|
|
12804
|
-
}
|
|
12805
|
-
}
|
|
12806
|
-
</style>
|
|
12807
|
-
<button
|
|
12808
|
-
type="button"
|
|
12809
|
-
class="${this.buttonClasses}"
|
|
12810
|
-
?disabled="${this.disabled}"
|
|
12811
|
-
aria-disabled="${this.disabled ? "true" : "false"}"
|
|
12812
|
-
aria-label="${this.buttonAriaLabel}"
|
|
12813
|
-
@click="${this.handleClick}"
|
|
12814
|
-
>
|
|
12815
|
-
<i class="fa-light fa-${this.iconName} nds-icon-button__icon" aria-hidden="true"></i>
|
|
12816
|
-
</button>
|
|
12817
|
-
`;
|
|
12818
|
-
}
|
|
12819
|
-
};
|
|
12820
|
-
b([
|
|
12821
|
-
_()
|
|
12822
|
-
], p.prototype, "variant", 2);
|
|
12823
|
-
b([
|
|
12824
|
-
_()
|
|
12825
|
-
], p.prototype, "size", 2);
|
|
12826
|
-
b([
|
|
12827
|
-
_()
|
|
12828
|
-
], p.prototype, "type", 2);
|
|
12829
|
-
b([
|
|
12830
|
-
_()
|
|
12831
|
-
], p.prototype, "state", 2);
|
|
12832
|
-
b([
|
|
12833
|
-
_({ attribute: "icon-name" })
|
|
12834
|
-
], p.prototype, "iconName", 2);
|
|
12835
|
-
b([
|
|
12836
|
-
_({ type: Boolean })
|
|
12837
|
-
], p.prototype, "disabled", 2);
|
|
12838
|
-
b([
|
|
12839
|
-
_({ attribute: "button-aria-label" })
|
|
12840
|
-
], p.prototype, "buttonAriaLabel", 2);
|
|
12841
|
-
b([
|
|
12842
|
-
_()
|
|
12843
|
-
], p.prototype, "shape", 1);
|
|
12844
|
-
p = b([
|
|
12845
|
-
Pt("nds-icon-button")
|
|
12846
|
-
], p);
|
|
12847
12000
|
var __pieDefineSafely = (tagName, ctor) => {
|
|
12848
12001
|
if (customElements.get(tagName))
|
|
12849
12002
|
return;
|
|
@@ -12857,7 +12010,7 @@ var __pieDefineSafely = (tagName, ctor) => {
|
|
|
12857
12010
|
}
|
|
12858
12011
|
};
|
|
12859
12012
|
var root_1 = from_html2(`<span class="item-toolbar__element-host svelte-rnx3ie"></span>`);
|
|
12860
|
-
var root_2 = from_html2(`<
|
|
12013
|
+
var root_2 = from_html2(`<nds-icon-button></nds-icon-button>`, 2);
|
|
12861
12014
|
var root_3 = from_html2(`<span aria-hidden="true"></span>`);
|
|
12862
12015
|
var root_4 = from_html2(`<img class="item-toolbar__icon-image svelte-rnx3ie" alt=""/>`);
|
|
12863
12016
|
var root_5 = from_html2(`<i aria-hidden="true"></i>`);
|
|
@@ -12872,12 +12025,18 @@ var $$css = {
|
|
|
12872
12025
|
.item-toolbar--bottom.svelte-rnx3ie {align-items:flex-end;}.item-toolbar--left.svelte-rnx3ie,
|
|
12873
12026
|
.item-toolbar--right.svelte-rnx3ie {align-items:stretch;}.item-toolbar--left.svelte-rnx3ie .item-toolbar__tools-row:where(.svelte-rnx3ie),
|
|
12874
12027
|
.item-toolbar--right.svelte-rnx3ie .item-toolbar__tools-row:where(.svelte-rnx3ie) {flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap;}.item-toolbar--left.svelte-rnx3ie .item-toolbar__controls-row:where(.svelte-rnx3ie),
|
|
12875
|
-
.item-toolbar--right.svelte-rnx3ie .item-toolbar__controls-row:where(.svelte-rnx3ie) {justify-content:flex-start;width:auto;min-height:0;height:auto;}.item-toolbar__button.svelte-rnx3ie {display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0.25rem;border:1px solid var(--pie-button-border, var(--pie-border, #ccc));border-radius:0.25rem;background-color:var(--pie-button-bg, var(--pie-background, white));color:var(--pie-button-color, var(--pie-text, #333));cursor:pointer;transition:all 0.15s ease;text-decoration:none;}
|
|
12876
|
-
|
|
12877
|
-
/* Decorative only — the outer link/button owns focus and aria semantics. */.item-toolbar__calculator-icon.svelte-rnx3ie {pointer-events:none;display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;}
|
|
12028
|
+
.item-toolbar--right.svelte-rnx3ie .item-toolbar__controls-row:where(.svelte-rnx3ie) {justify-content:flex-start;width:auto;min-height:0;height:auto;}.item-toolbar__button.svelte-rnx3ie {display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0.25rem;border:1px solid var(--pie-button-border, var(--pie-border, #ccc));border-radius:0.25rem;background-color:var(--pie-button-bg, var(--pie-background, white));color:var(--pie-button-color, var(--pie-text, #333));cursor:pointer;transition:all 0.15s ease;text-decoration:none;}
|
|
12878
12029
|
|
|
12879
|
-
/*
|
|
12880
|
-
|
|
12030
|
+
/* Drive the vendored NDS icon button's outer size via its own \`--height-32\`
|
|
12031
|
+
custom property so its light-DOM inner button matches the toolbar's
|
|
12032
|
+
md/sm/lg dimensions (32 / 44 / 40 px) without a layout shift. The glyph
|
|
12033
|
+
keeps the NDS-native icon size (we render size="small"), so it isn't
|
|
12034
|
+
oversized. */.item-toolbar.svelte-rnx3ie nds-icon-button:where(.svelte-rnx3ie) {
|
|
12035
|
+
/* Host-settable button size per toolbar size (drives the NDS outer button
|
|
12036
|
+
via its own --height-32). */--height-32: var(--pie-calculator-button-size, 2rem);
|
|
12037
|
+
/* Host-settable accent for the calculator button: the NDS tertiary glyph
|
|
12038
|
+
colour derives from --color-interactive-blue, remapped here to a
|
|
12039
|
+
themeable variable. */--color-interactive-blue: var(--pie-calculator-button-color, #146eb3);}.item-toolbar--sm.svelte-rnx3ie nds-icon-button:where(.svelte-rnx3ie) {--height-32: var(--pie-calculator-button-size-sm, 2.75rem);}.item-toolbar--lg.svelte-rnx3ie nds-icon-button:where(.svelte-rnx3ie) {--height-32: var(--pie-calculator-button-size-lg, 2.5rem);}.item-toolbar__element-host.svelte-rnx3ie {display:contents;}.item-toolbar--sm.svelte-rnx3ie .item-toolbar__button:where(.svelte-rnx3ie) {width:2.75rem;height:2.75rem;}.item-toolbar--sm.svelte-rnx3ie {--pie-toolbar-tools-row-height: 2.75rem;--pie-tts-controls-row-height: 3.625rem;}.item-toolbar--lg.svelte-rnx3ie .item-toolbar__button:where(.svelte-rnx3ie) {width:2.5rem;height:2.5rem;}.item-toolbar--lg.svelte-rnx3ie {--pie-toolbar-tools-row-height: 2.5rem;--pie-tts-controls-row-height: 3.375rem;}.item-toolbar__button.svelte-rnx3ie:hover:not(:disabled) {background-color:var(--pie-button-hover-bg, var(--pie-secondary-background, #f5f5f5));border-color:var(--pie-button-hover-border, var(--pie-button-border, var(--pie-border, #ccc)));color:var(--pie-button-hover-color, var(--pie-button-color, var(--pie-text, #333)));transform:translateY(-1px);box-shadow:0 2px 4px color-mix(in srgb, var(--pie-black, #000) 10%, transparent);}.item-toolbar__button.svelte-rnx3ie:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.item-toolbar__button--active.svelte-rnx3ie {background-color:var(--pie-primary, #1976d2);color:var(--pie-white, #fff);border-color:var(--pie-primary, #1976d2);}.item-toolbar__button--active.svelte-rnx3ie:hover:not(:disabled) {background-color:var(--pie-primary-dark, #1565c0);}.item-toolbar__button.svelte-rnx3ie:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #1976d2));outline-offset:2px;}.item-toolbar__button.svelte-rnx3ie:disabled {opacity:0.5;cursor:not-allowed;}.item-toolbar__button.svelte-rnx3ie svg {width:100%;height:100%;}.item-toolbar__icon-image.svelte-rnx3ie {width:100%;height:100%;object-fit:contain;}`
|
|
12881
12040
|
};
|
|
12882
12041
|
function ItemToolBar($$anchor, $$props) {
|
|
12883
12042
|
push2($$props, true);
|
|
@@ -12944,6 +12103,28 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
12944
12103
|
installFaInToolbarShadow(node);
|
|
12945
12104
|
return {};
|
|
12946
12105
|
};
|
|
12106
|
+
const reflectToggleState = (node, pressed) => {
|
|
12107
|
+
let current = pressed;
|
|
12108
|
+
const apply2 = () => {
|
|
12109
|
+
const inner = node.querySelector("button");
|
|
12110
|
+
if (inner)
|
|
12111
|
+
inner.setAttribute("aria-pressed", current ? "true" : "false");
|
|
12112
|
+
};
|
|
12113
|
+
apply2();
|
|
12114
|
+
const observer = new MutationObserver(apply2);
|
|
12115
|
+
observer.observe(node, { childList: true, subtree: true });
|
|
12116
|
+
return {
|
|
12117
|
+
update(next22) {
|
|
12118
|
+
current = next22;
|
|
12119
|
+
apply2();
|
|
12120
|
+
},
|
|
12121
|
+
destroy() {
|
|
12122
|
+
observer.disconnect();
|
|
12123
|
+
}
|
|
12124
|
+
};
|
|
12125
|
+
};
|
|
12126
|
+
const TOOL_FA_ICON_BY_ID = { calculator: "calculator" };
|
|
12127
|
+
const resolveFaIconName = (item2) => TOOL_FA_ICON_BY_ID[item2.id] ?? null;
|
|
12947
12128
|
const fallbackToolRegistry = createPackagedToolRegistry();
|
|
12948
12129
|
let activeToolState = state2(proxy2({}));
|
|
12949
12130
|
let level = prop2($$props, "level", 7, "item"), scopeId = prop2($$props, "scopeId", 7, ""), itemId = prop2($$props, "itemId", 7, ""), sectionId = prop2($$props, "sectionId", 7, ""), catalogId = prop2($$props, "catalogId", 7, ""), tools = prop2($$props, "tools", 7, "calculator,textToSpeech,answerEliminator"), contentKind = prop2($$props, "contentKind", 7, "assessment-item"), position = prop2($$props, "position", 7, "bottom"), scopeElement = prop2($$props, "scopeElement", 7, null), toolRegistry = prop2($$props, "toolRegistry", 7, null), item = prop2($$props, "item", 7, null), hostButtons = prop2($$props, "hostButtons", 23, () => []), className = prop2($$props, "class", 7, ""), size = prop2($$props, "size", 7, "md"), language = prop2($$props, "language", 7, "en-US");
|
|
@@ -13558,8 +12739,8 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
13558
12739
|
let resizeStartShellY = 0;
|
|
13559
12740
|
let resizeCorner = null;
|
|
13560
12741
|
const resizeHandleEls = [];
|
|
13561
|
-
let
|
|
13562
|
-
let
|
|
12742
|
+
let x = 0;
|
|
12743
|
+
let y = 0;
|
|
13563
12744
|
let width = currentArgs.mounted.entry.shell?.initialWidth ?? 720;
|
|
13564
12745
|
let height = currentArgs.mounted.entry.shell?.initialHeight ?? 560;
|
|
13565
12746
|
let focusTrapCleanup = null;
|
|
@@ -13669,16 +12850,16 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
13669
12850
|
const effectiveMinHeight = Math.min(minHeight, window.innerHeight);
|
|
13670
12851
|
width = clamp(width, effectiveMinWidth, Math.max(effectiveMinWidth, Math.min(maxWidth, window.innerWidth)));
|
|
13671
12852
|
height = clamp(height, effectiveMinHeight, Math.max(effectiveMinHeight, Math.min(maxHeight, window.innerHeight)));
|
|
13672
|
-
|
|
13673
|
-
|
|
12853
|
+
x = clamp(x, 0, Math.max(0, window.innerWidth - width));
|
|
12854
|
+
y = clamp(y, 0, Math.max(0, window.innerHeight - height));
|
|
13674
12855
|
applyShellStyle();
|
|
13675
12856
|
applyContentMinWidth();
|
|
13676
12857
|
applyContentLayout();
|
|
13677
12858
|
notifyHostedResize();
|
|
13678
12859
|
};
|
|
13679
12860
|
const moveBy = (dx, dy) => {
|
|
13680
|
-
|
|
13681
|
-
|
|
12861
|
+
x += dx;
|
|
12862
|
+
y += dy;
|
|
13682
12863
|
applyPositionAndSize();
|
|
13683
12864
|
};
|
|
13684
12865
|
const resizeBy = (dw, dh) => {
|
|
@@ -13759,8 +12940,8 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
13759
12940
|
const applyShellStyle = () => {
|
|
13760
12941
|
if (!shellEl)
|
|
13761
12942
|
return;
|
|
13762
|
-
shellEl.style.left = `${
|
|
13763
|
-
shellEl.style.top = `${
|
|
12943
|
+
shellEl.style.left = `${x}px`;
|
|
12944
|
+
shellEl.style.top = `${y}px`;
|
|
13764
12945
|
shellEl.style.width = `${width}px`;
|
|
13765
12946
|
shellEl.style.height = `${height}px`;
|
|
13766
12947
|
shellEl.style.display = currentArgs.active ? "flex" : "none";
|
|
@@ -13806,24 +12987,24 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
13806
12987
|
const verticalMargin = margin + 60;
|
|
13807
12988
|
switch (align) {
|
|
13808
12989
|
case "top-left":
|
|
13809
|
-
|
|
13810
|
-
|
|
12990
|
+
x = margin;
|
|
12991
|
+
y = verticalMargin;
|
|
13811
12992
|
break;
|
|
13812
12993
|
case "top-right":
|
|
13813
|
-
|
|
13814
|
-
|
|
12994
|
+
x = Math.max(0, viewportW - width - margin);
|
|
12995
|
+
y = verticalMargin;
|
|
13815
12996
|
break;
|
|
13816
12997
|
case "bottom-left":
|
|
13817
|
-
|
|
13818
|
-
|
|
12998
|
+
x = margin;
|
|
12999
|
+
y = Math.max(0, viewportH - height - verticalMargin);
|
|
13819
13000
|
break;
|
|
13820
13001
|
case "bottom-right":
|
|
13821
|
-
|
|
13822
|
-
|
|
13002
|
+
x = Math.max(0, viewportW - width - margin);
|
|
13003
|
+
y = Math.max(0, viewportH - height - verticalMargin);
|
|
13823
13004
|
break;
|
|
13824
13005
|
default:
|
|
13825
|
-
|
|
13826
|
-
|
|
13006
|
+
x = Math.max(0, Math.round((viewportW - width) / 2));
|
|
13007
|
+
y = Math.max(0, Math.round((viewportH - height) / 2));
|
|
13827
13008
|
}
|
|
13828
13009
|
applyPositionAndSize();
|
|
13829
13010
|
};
|
|
@@ -13988,8 +13169,8 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
13988
13169
|
return;
|
|
13989
13170
|
event2.preventDefault();
|
|
13990
13171
|
dragPointerId = event2.pointerId;
|
|
13991
|
-
dragOffsetX = event2.clientX -
|
|
13992
|
-
dragOffsetY = event2.clientY -
|
|
13172
|
+
dragOffsetX = event2.clientX - x;
|
|
13173
|
+
dragOffsetY = event2.clientY - y;
|
|
13993
13174
|
shellEl.setPointerCapture(event2.pointerId);
|
|
13994
13175
|
bringToFront();
|
|
13995
13176
|
};
|
|
@@ -14004,8 +13185,8 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14004
13185
|
resizeStartHeight = height;
|
|
14005
13186
|
resizeStartX = event2.clientX;
|
|
14006
13187
|
resizeStartY = event2.clientY;
|
|
14007
|
-
resizeStartShellX =
|
|
14008
|
-
resizeStartShellY =
|
|
13188
|
+
resizeStartShellX = x;
|
|
13189
|
+
resizeStartShellY = y;
|
|
14009
13190
|
shellEl.setPointerCapture(event2.pointerId);
|
|
14010
13191
|
bringToFront();
|
|
14011
13192
|
};
|
|
@@ -14016,8 +13197,8 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14016
13197
|
event2.preventDefault();
|
|
14017
13198
|
const maxX = Math.max(0, window.innerWidth - width);
|
|
14018
13199
|
const maxY = Math.max(0, window.innerHeight - height);
|
|
14019
|
-
|
|
14020
|
-
|
|
13200
|
+
x = clamp(event2.clientX - dragOffsetX, 0, maxX);
|
|
13201
|
+
y = clamp(event2.clientY - dragOffsetY, 0, maxY);
|
|
14021
13202
|
applyShellStyle();
|
|
14022
13203
|
return;
|
|
14023
13204
|
}
|
|
@@ -14033,28 +13214,28 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14033
13214
|
const dx = event2.clientX - resizeStartX;
|
|
14034
13215
|
const dy = event2.clientY - resizeStartY;
|
|
14035
13216
|
if (resizeCorner === "se") {
|
|
14036
|
-
width = clamp(resizeStartWidth + dx, minWidth, Math.max(minWidth, Math.min(maxWidth, window.innerWidth -
|
|
14037
|
-
height = clamp(resizeStartHeight + dy, minHeight, Math.max(minHeight, Math.min(maxHeight, window.innerHeight -
|
|
13217
|
+
width = clamp(resizeStartWidth + dx, minWidth, Math.max(minWidth, Math.min(maxWidth, window.innerWidth - x)));
|
|
13218
|
+
height = clamp(resizeStartHeight + dy, minHeight, Math.max(minHeight, Math.min(maxHeight, window.innerHeight - y)));
|
|
14038
13219
|
} else if (resizeCorner === "sw") {
|
|
14039
13220
|
const rightEdge = resizeStartShellX + resizeStartWidth;
|
|
14040
13221
|
const newWidth = clamp(resizeStartWidth - dx, minWidth, Math.min(maxWidth, rightEdge));
|
|
14041
|
-
|
|
13222
|
+
x = rightEdge - newWidth;
|
|
14042
13223
|
width = newWidth;
|
|
14043
|
-
height = clamp(resizeStartHeight + dy, minHeight, Math.max(minHeight, Math.min(maxHeight, window.innerHeight -
|
|
13224
|
+
height = clamp(resizeStartHeight + dy, minHeight, Math.max(minHeight, Math.min(maxHeight, window.innerHeight - y)));
|
|
14044
13225
|
} else if (resizeCorner === "ne") {
|
|
14045
13226
|
const bottomEdge = resizeStartShellY + resizeStartHeight;
|
|
14046
|
-
width = clamp(resizeStartWidth + dx, minWidth, Math.max(minWidth, Math.min(maxWidth, window.innerWidth -
|
|
13227
|
+
width = clamp(resizeStartWidth + dx, minWidth, Math.max(minWidth, Math.min(maxWidth, window.innerWidth - x)));
|
|
14047
13228
|
const newHeight = clamp(resizeStartHeight - dy, minHeight, Math.min(maxHeight, bottomEdge));
|
|
14048
|
-
|
|
13229
|
+
y = bottomEdge - newHeight;
|
|
14049
13230
|
height = newHeight;
|
|
14050
13231
|
} else if (resizeCorner === "nw") {
|
|
14051
13232
|
const rightEdge = resizeStartShellX + resizeStartWidth;
|
|
14052
13233
|
const bottomEdge = resizeStartShellY + resizeStartHeight;
|
|
14053
13234
|
const newWidth = clamp(resizeStartWidth - dx, minWidth, Math.min(maxWidth, rightEdge));
|
|
14054
|
-
|
|
13235
|
+
x = rightEdge - newWidth;
|
|
14055
13236
|
width = newWidth;
|
|
14056
13237
|
const newHeight = clamp(resizeStartHeight - dy, minHeight, Math.min(maxHeight, bottomEdge));
|
|
14057
|
-
|
|
13238
|
+
y = bottomEdge - newHeight;
|
|
14058
13239
|
height = newHeight;
|
|
14059
13240
|
}
|
|
14060
13241
|
applyShellStyle();
|
|
@@ -14547,7 +13728,7 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14547
13728
|
var fragment = comment2();
|
|
14548
13729
|
var node_1 = first_child2(fragment);
|
|
14549
13730
|
{
|
|
14550
|
-
var
|
|
13731
|
+
var consequent_14 = ($$anchor2) => {
|
|
14551
13732
|
var div = root_10();
|
|
14552
13733
|
let classes;
|
|
14553
13734
|
var div_1 = child2(div);
|
|
@@ -14580,9 +13761,27 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14580
13761
|
});
|
|
14581
13762
|
var node_4 = sibling2(node_2, 2);
|
|
14582
13763
|
each2(node_4, 17, () => get22(toolbarItems), (item2) => item2.id, ($$anchor3, item2, $$index_1, $$array) => {
|
|
13764
|
+
const faIconName = user_derived2(() => isToolbarLinkItem(get22(item2)) ? null : resolveFaIconName(get22(item2)));
|
|
14583
13765
|
var fragment_2 = comment2();
|
|
14584
13766
|
var node_5 = first_child2(fragment_2);
|
|
14585
13767
|
{
|
|
13768
|
+
var consequent_1 = ($$anchor4) => {
|
|
13769
|
+
var nds_icon_button = root_2();
|
|
13770
|
+
set_class2(nds_icon_button, 1, "item-toolbar__nds-button svelte-rnx3ie");
|
|
13771
|
+
set_custom_element_data2(nds_icon_button, "type", "circle");
|
|
13772
|
+
set_custom_element_data2(nds_icon_button, "size", "small");
|
|
13773
|
+
set_custom_element_data2(nds_icon_button, "variant", "tertiary");
|
|
13774
|
+
template_effect2(() => set_custom_element_data2(nds_icon_button, "icon-name", get22(faIconName)));
|
|
13775
|
+
template_effect2(() => set_custom_element_data2(nds_icon_button, "button-aria-label", get22(item2).ariaLabel || get22(item2).label));
|
|
13776
|
+
template_effect2(() => set_custom_element_data2(nds_icon_button, "title", get22(item2).tooltip || get22(item2).label));
|
|
13777
|
+
template_effect2(() => set_custom_element_data2(nds_icon_button, "disabled", get22(item2).disabled));
|
|
13778
|
+
action2(nds_icon_button, ($$node) => ndsIconButtonAction?.($$node));
|
|
13779
|
+
action2(nds_icon_button, ($$node, $$action_arg) => reflectToggleState?.($$node, $$action_arg), () => isToolbarItemActive(get22(item2)));
|
|
13780
|
+
delegated2("click", nds_icon_button, function(...$$args) {
|
|
13781
|
+
get22(item2).onClick?.apply(this, $$args);
|
|
13782
|
+
});
|
|
13783
|
+
append2($$anchor4, nds_icon_button);
|
|
13784
|
+
};
|
|
14586
13785
|
var consequent_6 = ($$anchor4) => {
|
|
14587
13786
|
var a = root_6();
|
|
14588
13787
|
let classes_1;
|
|
@@ -14592,18 +13791,13 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14592
13791
|
var fragment_3 = comment2();
|
|
14593
13792
|
var node_7 = first_child2(fragment_3);
|
|
14594
13793
|
{
|
|
14595
|
-
var consequent_1 = ($$anchor6) => {
|
|
14596
|
-
var span_2 = root_2();
|
|
14597
|
-
action2(span_2, ($$node) => ndsIconButtonAction?.($$node));
|
|
14598
|
-
append2($$anchor6, span_2);
|
|
14599
|
-
};
|
|
14600
13794
|
var consequent_2 = ($$anchor6) => {
|
|
14601
|
-
var
|
|
14602
|
-
html2(
|
|
14603
|
-
reset2(
|
|
14604
|
-
append2($$anchor6,
|
|
13795
|
+
var span_2 = root_3();
|
|
13796
|
+
html2(span_2, () => sanitizeSvgIcon(get22(item2).icon), true);
|
|
13797
|
+
reset2(span_2);
|
|
13798
|
+
append2($$anchor6, span_2);
|
|
14605
13799
|
};
|
|
14606
|
-
var
|
|
13800
|
+
var d = user_derived2(() => isInlineSvgIcon(get22(item2).icon));
|
|
14607
13801
|
var consequent_3 = ($$anchor6) => {
|
|
14608
13802
|
var img = root_4();
|
|
14609
13803
|
template_effect2(() => set_attribute22(img, "src", get22(item2).icon));
|
|
@@ -14616,10 +13810,10 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14616
13810
|
var node_8 = first_child2(fragment_4);
|
|
14617
13811
|
{
|
|
14618
13812
|
var consequent_4 = ($$anchor7) => {
|
|
14619
|
-
var
|
|
14620
|
-
html2(
|
|
14621
|
-
reset2(
|
|
14622
|
-
append2($$anchor7,
|
|
13813
|
+
var span_3 = root_3();
|
|
13814
|
+
html2(span_3, () => sanitizeSvgIcon(get22(fallbackIcon)), true);
|
|
13815
|
+
reset2(span_3);
|
|
13816
|
+
append2($$anchor7, span_3);
|
|
14623
13817
|
};
|
|
14624
13818
|
var alternate_1 = ($$anchor7) => {
|
|
14625
13819
|
var i_1 = root_5();
|
|
@@ -14636,12 +13830,10 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14636
13830
|
append2($$anchor6, fragment_4);
|
|
14637
13831
|
};
|
|
14638
13832
|
if_block2(node_7, ($$render) => {
|
|
14639
|
-
if (get22(
|
|
14640
|
-
$$render(
|
|
14641
|
-
else if (get22(d2))
|
|
14642
|
-
$$render(consequent_2, 1);
|
|
13833
|
+
if (get22(d))
|
|
13834
|
+
$$render(consequent_2);
|
|
14643
13835
|
else if (get22(d_1))
|
|
14644
|
-
$$render(consequent_3,
|
|
13836
|
+
$$render(consequent_3, 1);
|
|
14645
13837
|
else
|
|
14646
13838
|
$$render(alternate_2, -1);
|
|
14647
13839
|
});
|
|
@@ -14680,23 +13872,18 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14680
13872
|
let classes_2;
|
|
14681
13873
|
var node_9 = child2(button_1);
|
|
14682
13874
|
{
|
|
14683
|
-
var
|
|
13875
|
+
var consequent_10 = ($$anchor5) => {
|
|
14684
13876
|
var fragment_5 = comment2();
|
|
14685
13877
|
var node_10 = first_child2(fragment_5);
|
|
14686
13878
|
{
|
|
14687
13879
|
var consequent_7 = ($$anchor6) => {
|
|
14688
|
-
var
|
|
14689
|
-
|
|
14690
|
-
|
|
14691
|
-
|
|
14692
|
-
var consequent_8 = ($$anchor6) => {
|
|
14693
|
-
var span_6 = root_3();
|
|
14694
|
-
html2(span_6, () => sanitizeSvgIcon(get22(item2).icon), true);
|
|
14695
|
-
reset2(span_6);
|
|
14696
|
-
append2($$anchor6, span_6);
|
|
13880
|
+
var span_4 = root_3();
|
|
13881
|
+
html2(span_4, () => sanitizeSvgIcon(get22(item2).icon), true);
|
|
13882
|
+
reset2(span_4);
|
|
13883
|
+
append2($$anchor6, span_4);
|
|
14697
13884
|
};
|
|
14698
13885
|
var d_3 = user_derived2(() => isInlineSvgIcon(get22(item2).icon));
|
|
14699
|
-
var
|
|
13886
|
+
var consequent_8 = ($$anchor6) => {
|
|
14700
13887
|
var img_1 = root_4();
|
|
14701
13888
|
template_effect2(() => set_attribute22(img_1, "src", get22(item2).icon));
|
|
14702
13889
|
append2($$anchor6, img_1);
|
|
@@ -14707,11 +13894,11 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14707
13894
|
var fragment_6 = comment2();
|
|
14708
13895
|
var node_11 = first_child2(fragment_6);
|
|
14709
13896
|
{
|
|
14710
|
-
var
|
|
14711
|
-
var
|
|
14712
|
-
html2(
|
|
14713
|
-
reset2(
|
|
14714
|
-
append2($$anchor7,
|
|
13897
|
+
var consequent_9 = ($$anchor7) => {
|
|
13898
|
+
var span_5 = root_3();
|
|
13899
|
+
html2(span_5, () => sanitizeSvgIcon(get22(fallbackIcon)), true);
|
|
13900
|
+
reset2(span_5);
|
|
13901
|
+
append2($$anchor7, span_5);
|
|
14715
13902
|
};
|
|
14716
13903
|
var alternate_3 = ($$anchor7) => {
|
|
14717
13904
|
var i_2 = root_5();
|
|
@@ -14720,7 +13907,7 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14720
13907
|
};
|
|
14721
13908
|
if_block2(node_11, ($$render) => {
|
|
14722
13909
|
if (get22(fallbackIcon))
|
|
14723
|
-
$$render(
|
|
13910
|
+
$$render(consequent_9);
|
|
14724
13911
|
else
|
|
14725
13912
|
$$render(alternate_3, -1);
|
|
14726
13913
|
});
|
|
@@ -14728,12 +13915,10 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14728
13915
|
append2($$anchor6, fragment_6);
|
|
14729
13916
|
};
|
|
14730
13917
|
if_block2(node_10, ($$render) => {
|
|
14731
|
-
if (get22(
|
|
13918
|
+
if (get22(d_3))
|
|
14732
13919
|
$$render(consequent_7);
|
|
14733
|
-
else if (get22(d_3))
|
|
14734
|
-
$$render(consequent_8, 1);
|
|
14735
13920
|
else if (get22(d_4))
|
|
14736
|
-
$$render(
|
|
13921
|
+
$$render(consequent_8, 1);
|
|
14737
13922
|
else
|
|
14738
13923
|
$$render(alternate_4, -1);
|
|
14739
13924
|
});
|
|
@@ -14742,7 +13927,7 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14742
13927
|
};
|
|
14743
13928
|
if_block2(node_9, ($$render) => {
|
|
14744
13929
|
if (get22(item2).icon)
|
|
14745
|
-
$$render(
|
|
13930
|
+
$$render(consequent_10);
|
|
14746
13931
|
});
|
|
14747
13932
|
}
|
|
14748
13933
|
reset2(button_1);
|
|
@@ -14764,8 +13949,10 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14764
13949
|
append2($$anchor4, button_1);
|
|
14765
13950
|
};
|
|
14766
13951
|
if_block2(node_5, ($$render) => {
|
|
14767
|
-
if (get22(
|
|
14768
|
-
$$render(
|
|
13952
|
+
if (get22(faIconName))
|
|
13953
|
+
$$render(consequent_1);
|
|
13954
|
+
else if (get22(d_2))
|
|
13955
|
+
$$render(consequent_6, 1);
|
|
14769
13956
|
else
|
|
14770
13957
|
$$render(alternate_5, -1);
|
|
14771
13958
|
});
|
|
@@ -14777,22 +13964,22 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14777
13964
|
var fragment_7 = comment2();
|
|
14778
13965
|
var node_13 = first_child2(fragment_7);
|
|
14779
13966
|
{
|
|
14780
|
-
var
|
|
14781
|
-
var
|
|
14782
|
-
action2(
|
|
13967
|
+
var consequent_11 = ($$anchor4) => {
|
|
13968
|
+
var span_6 = root_1();
|
|
13969
|
+
action2(span_6, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
|
|
14783
13970
|
mounted: get22(mounted),
|
|
14784
13971
|
active: get22(renderedToolActiveById)[get22(mounted).toolId] ?? false
|
|
14785
13972
|
}));
|
|
14786
|
-
append2($$anchor4,
|
|
13973
|
+
append2($$anchor4, span_6);
|
|
14787
13974
|
};
|
|
14788
13975
|
var alternate_6 = ($$anchor4) => {
|
|
14789
|
-
var
|
|
14790
|
-
action2(
|
|
14791
|
-
append2($$anchor4,
|
|
13976
|
+
var span_7 = root_1();
|
|
13977
|
+
action2(span_7, ($$node, $$action_arg) => mountElement?.($$node, $$action_arg), () => get22(mounted).entry.element);
|
|
13978
|
+
append2($$anchor4, span_7);
|
|
14792
13979
|
};
|
|
14793
13980
|
if_block2(node_13, ($$render) => {
|
|
14794
13981
|
if (get22(mounted).entry.shell)
|
|
14795
|
-
$$render(
|
|
13982
|
+
$$render(consequent_11);
|
|
14796
13983
|
else
|
|
14797
13984
|
$$render(alternate_6, -1);
|
|
14798
13985
|
});
|
|
@@ -14802,29 +13989,29 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14802
13989
|
reset2(div_1);
|
|
14803
13990
|
var node_14 = sibling2(div_1, 2);
|
|
14804
13991
|
{
|
|
14805
|
-
var
|
|
13992
|
+
var consequent_13 = ($$anchor3) => {
|
|
14806
13993
|
var div_2 = root_9();
|
|
14807
13994
|
let classes_3;
|
|
14808
13995
|
each2(div_2, 21, () => get22(mountedElementsControlsRow), (mounted) => mounted.key, ($$anchor4, mounted) => {
|
|
14809
13996
|
var fragment_8 = comment2();
|
|
14810
13997
|
var node_15 = first_child2(fragment_8);
|
|
14811
13998
|
{
|
|
14812
|
-
var
|
|
14813
|
-
var
|
|
14814
|
-
action2(
|
|
13999
|
+
var consequent_12 = ($$anchor5) => {
|
|
14000
|
+
var span_8 = root_8();
|
|
14001
|
+
action2(span_8, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
|
|
14815
14002
|
mounted: get22(mounted),
|
|
14816
14003
|
active: get22(renderedToolActiveById)[get22(mounted).toolId] ?? false
|
|
14817
14004
|
}));
|
|
14818
|
-
append2($$anchor5,
|
|
14005
|
+
append2($$anchor5, span_8);
|
|
14819
14006
|
};
|
|
14820
14007
|
var alternate_7 = ($$anchor5) => {
|
|
14821
|
-
var
|
|
14822
|
-
action2(
|
|
14823
|
-
append2($$anchor5,
|
|
14008
|
+
var span_9 = root_8();
|
|
14009
|
+
action2(span_9, ($$node, $$action_arg) => mountElement?.($$node, $$action_arg), () => get22(mounted).entry.element);
|
|
14010
|
+
append2($$anchor5, span_9);
|
|
14824
14011
|
};
|
|
14825
14012
|
if_block2(node_15, ($$render) => {
|
|
14826
14013
|
if (get22(mounted).entry.shell)
|
|
14827
|
-
$$render(
|
|
14014
|
+
$$render(consequent_12);
|
|
14828
14015
|
else
|
|
14829
14016
|
$$render(alternate_7, -1);
|
|
14830
14017
|
});
|
|
@@ -14841,7 +14028,7 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14841
14028
|
};
|
|
14842
14029
|
if_block2(node_14, ($$render) => {
|
|
14843
14030
|
if (get22(shouldRenderControlsRow))
|
|
14844
|
-
$$render(
|
|
14031
|
+
$$render(consequent_13);
|
|
14845
14032
|
});
|
|
14846
14033
|
}
|
|
14847
14034
|
reset2(div);
|
|
@@ -14861,7 +14048,7 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
14861
14048
|
};
|
|
14862
14049
|
if_block2(node_1, ($$render) => {
|
|
14863
14050
|
if (isBrowser)
|
|
14864
|
-
$$render(
|
|
14051
|
+
$$render(consequent_14);
|
|
14865
14052
|
});
|
|
14866
14053
|
}
|
|
14867
14054
|
append2($$anchor, fragment);
|