dap-design-system 0.57.1 → 0.57.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/number-input/number-input.component.d.ts +1 -0
- package/dist/components/sidenav/sidenav.component.d.ts +1 -0
- package/dist/{components-C2yXmzb-.js → components-I_1pevVu.js} +48 -27
- package/dist/{components-C2yXmzb-.js.map → components-I_1pevVu.js.map} +1 -1
- package/dist/components.js +1 -1
- package/dist/dds.js +1 -1
- package/dist/manifest/types/vue/index.d.ts +165 -165
- package/dist/manifest/vscode.html-custom-data.json +113 -113
- package/dist/manifest/web-types.json +363 -363
- package/dist/react/index.d.ts +5 -5
- package/dist/react-types.ts +5 -5
- package/dist/react.js +65 -65
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
|
@@ -111,6 +111,7 @@ export default class DapDSNumberInput extends InputBaseElement {
|
|
|
111
111
|
hideControls: boolean;
|
|
112
112
|
padStart?: number;
|
|
113
113
|
private formattedValue;
|
|
114
|
+
private valueSetInternally;
|
|
114
115
|
get _thousandSeparator(): string;
|
|
115
116
|
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
116
117
|
private handleKeydown;
|
|
@@ -25,5 +25,6 @@ export default class DapDSSideNav extends DdsElement {
|
|
|
25
25
|
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
|
|
26
26
|
private removeActive;
|
|
27
27
|
private setActive;
|
|
28
|
+
private handleClick;
|
|
28
29
|
render(): import('lit-html').TemplateResult;
|
|
29
30
|
}
|
|
@@ -3339,11 +3339,16 @@ to = Br([
|
|
|
3339
3339
|
O("dap-ds-accordion-group")
|
|
3340
3340
|
], to);
|
|
3341
3341
|
const kr = "dds-anchor", In = (t) => {
|
|
3342
|
-
const e = window, i = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, o = t.constructor.styles, r =
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3342
|
+
const e = window, i = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, o = t.constructor.styles, r = Array.isArray(o) ? o : o ? [o] : [], a = r.map((s) => s.cssText).join(`
|
|
3343
|
+
`);
|
|
3344
|
+
if (i) {
|
|
3345
|
+
const s = new CSSStyleSheet();
|
|
3346
|
+
s.replace(a), document.adoptedStyleSheets = [...document.adoptedStyleSheets, s];
|
|
3347
|
+
} else
|
|
3348
|
+
r.forEach((s) => {
|
|
3349
|
+
const d = document.createElement("style"), l = e.litNonce;
|
|
3350
|
+
l !== void 0 && d.setAttribute("nonce", l), d.textContent = s.cssText, document.head.appendChild(d);
|
|
3351
|
+
});
|
|
3347
3352
|
}, On = '*,*:before,*:after{box-sizing:border-box;outline:none}* :not(dap-ds-table-cell,dap-ds-table-header){margin:0;padding:0}html:focus-within{scroll-behavior:smooth}a:not([class]){text-decoration-skip-ink:auto}img,picture,svg,video,canvas{max-width:100%;height:auto;background-repeat:no-repeat;background-size:cover;font-style:italic;vertical-align:middle}input,button,textarea,select{font:inherit}[hidden]{display:none!important}@media (prefers-reduced-motion: reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{transition:none;transition-duration:.01ms!important;transition-delay:1ms!important;animation-duration:1ms!important;animation-delay:-1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important}}body,html{height:100%;scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=number]{appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{appearance:none}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.input-description{display:block;margin-bottom:var(--dds-spacing-200)}@keyframes dds-spin{to{transform:rotate(360deg)}}@keyframes dds-fade{0%,to{opacity:.3}50%{opacity:1}}:root{--font-family: "Inter", sans-serif}:host{--dds-text-color: var(--dds-text-neutral-base);--dds-text-color-inverted: var(--dds-text-neutral-on-inverted);--dds-text-heading-color: var(--dds-text-neutral-strong);--dds-text-heading-color-inverted: var(--dds-text-neutral-on-inverted);--dds-text-description-color: var(--dds-text-neutral-subtle);--dds-text-description-color-inverted: var(--dds-text-neutral-on-inverted);--dds-text-font-family: var(--font-family);--dds-text-font-weight-medium: var(--dds-font-weight-medium);--dds-text-font-weight-bold: var(--dds-font-weight-bold);--dds-text-font-size-h1: var(--dds-font-7xl);--dds-text-font-size-h2: var(--dds-font-4xl);--dds-text-font-size-h3: var(--dds-font-2xl);--dds-text-font-size-h4: var(--dds-font-xl);--dds-text-font-size-h5: var(--dds-font-lg);--dds-text-font-size-h6: var(--dds-font-base);--dds-text-font-size-body: var(--dds-font-base);--dds-text-font-size-caption: var(--dds-font-xs);--dds-text-font-size-description: var(--dds-font-base);--dds-text-font-size-description-lg: var(--dds-font-base);--dds-text-font-size-description-sm: var(--dds-font-sm);--dds-text-font-size-lg: var(--dds-font-lg);--dds-text-font-size-md: var(--dds-font-base);--dds-text-font-size-sm: var(--dds-font-sm);--dds-text-font-size-xs: var(--dds-font-xs)}:host([variant=h1]),:host([variant=h2]),:host([variant=h3]),:host([variant=h4]),:host([variant=h5]),:host([variant=h6]){color:var(--dds-text-heading-color)}:host([inverted]) :host([variant=h1]),:host([inverted]) :host([variant=h2]),:host([inverted]) :host([variant=h3]),:host([inverted]) :host([variant=h4]),:host([inverted]) :host([variant=h5]),:host([inverted]) :host([variant=h6]){color:var(--dds-text-heading-color-inverted)}:host([variant=description]){color:var(--dds-text-description-color)}:host([inverted]) :host([variant=description]){color:var(--dds-text-description-color-inverted)}:host([variant=body]){color:var(--dds-text-color)}:host([inverted]) :host([variant=body]){color:var(--dds-text-color-inverted)}:host([variant=caption]){color:var(--dds-text-description-color)}:host([inverted]) :host([variant=caption]){color:var(--dds-text-description-color-inverted)}.typography{margin:0;font-family:var(--dds-text-font-family);font-weight:var(--dds-text-font-weight-medium);letter-spacing:0}.heading{font-weight:var(--dds-text-font-weight-bold);line-height:var(--dds-font-line-height-large)}.typography-h1{font-size:var(--dds-text-font-size-h1);letter-spacing:-.72px}@media (width >= 768px){.typography-h1{font-size:var(--dds-text-font-size-h1);letter-spacing:-.8px;line-height:var(--dds-font-line-height-xlarge)}}.typography-h2{font-size:var(--dds-text-font-size-h2);letter-spacing:-.56px}.typography-h3{font-size:var(--dds-text-font-size-h3);letter-spacing:-.48px}.typography-h4{font-size:var(--dds-text-font-size-h4);letter-spacing:-.4px}.typography-h5{font-size:var(--dds-text-font-size-h5)}.typography-h6{font-size:var(--dds-text-font-size-h6)}.typography-body{font-size:var(--dds-text-font-size-body);line-height:var(--dds-font-line-height-xlarge)}.typography-caption{font-size:var(--dds-text-font-size-caption);line-height:var(--dds-font-line-height-xlarge)}.typography-description{font-size:var(--dds-text-font-size-description);line-height:var(--dds-font-line-height-xlarge)}.typography-description-lg{font-size:var(--dds-text-font-size-description-lg);line-height:var(--dds-font-line-height-xlarge)}.typography-description-sm{font-size:var(--dds-text-font-size-description-sm);line-height:var(--dds-font-line-height-xlarge)}.typography-size-lg{font-size:var(--dds-text-font-size-lg);letter-spacing:0;line-height:var(--dds-font-line-height-xlarge)}.typography-size-md{font-size:var(--dds-text-font-size-md);letter-spacing:0;line-height:var(--dds-font-line-height-xlarge)}.typography-size-sm{font-size:var(--dds-text-font-size-sm);letter-spacing:0;line-height:var(--dds-font-line-height-xlarge)}.typography-size-xs{font-size:var(--dds-text-font-size-xs);letter-spacing:0;line-height:var(--dds-font-line-height-xlarge)}.typography-inverted{color:var(--dds-text-color-inverted)}.typography-heading-inverted{color:var(--dds-text-heading-color-inverted)}.typography-description-inverted{color:var(--dds-text-description-color-inverted)}', wu = ':host{--dds-anchor-link-color: var(--dds-color-primary);--dds-anchor-link-opacity: 0;--dds-anchor-link-hover-opacity: 1;--dds-anchor-link-transition: opacity .2s ease-in-out}.gds-anchor:hover>.gds-anchor__link::part(base){opacity:var(--dds-anchor-link-hover-opacity)}.gds-anchor__link::part(base){transition:var(--dds-anchor-link-transition);opacity:var(--dds-anchor-link-opacity);color:var(--dds-anchor-link-color);user-select:none}.gds-anchor__link::part(base):before{content:"#"}';
|
|
3348
3353
|
var _u = Object.defineProperty, ku = Object.getOwnPropertyDescriptor, Wa = (t, e, i, o) => {
|
|
3349
3354
|
for (var r = o > 1 ? void 0 : o ? ku(e, i) : e, a = t.length - 1, s; a >= 0; a--)
|
|
@@ -16387,7 +16392,7 @@ var Av = Object.defineProperty, Lv = Object.getOwnPropertyDescriptor, Ge = (t, e
|
|
|
16387
16392
|
};
|
|
16388
16393
|
let Ae = class extends gt {
|
|
16389
16394
|
constructor() {
|
|
16390
|
-
super(), this.thousandSeparator = "", this.decimalSeparator = ",", this.allowNegative = "true", this.allowDecimal = "true", this.hideControls = !1, this.formattedValue = "", this.manualValueSet = !0, this.type = "text";
|
|
16395
|
+
super(), this.thousandSeparator = "", this.decimalSeparator = ",", this.allowNegative = "true", this.allowDecimal = "true", this.hideControls = !1, this.formattedValue = "", this.valueSetInternally = !1, this.manualValueSet = !0, this.type = "text";
|
|
16391
16396
|
}
|
|
16392
16397
|
get _thousandSeparator() {
|
|
16393
16398
|
var t;
|
|
@@ -16425,7 +16430,7 @@ let Ae = class extends gt {
|
|
|
16425
16430
|
return t.inputType === "deleteContentBackward" || t.inputType === "deleteContentForward";
|
|
16426
16431
|
}
|
|
16427
16432
|
handleEmptyValue() {
|
|
16428
|
-
this.value = "", this.formattedValue = "", this.inputElement.value = "", this.emit("dds-change", {
|
|
16433
|
+
this.valueSetInternally = !0, this.value = "", this.formattedValue = "", this.inputElement.value = "", this.emit("dds-change", {
|
|
16429
16434
|
value: "",
|
|
16430
16435
|
formattedValue: ""
|
|
16431
16436
|
});
|
|
@@ -16473,13 +16478,14 @@ let Ae = class extends gt {
|
|
|
16473
16478
|
}
|
|
16474
16479
|
i = this.enforceDecimalScale(i);
|
|
16475
16480
|
const r = this.convertToNumericValue(i);
|
|
16476
|
-
this.value = r, this.formattedValue = this.getMaskedValue(i), e.value = this.formattedValue, this.emit("dds-change", {
|
|
16481
|
+
this.valueSetInternally = !0, this.value = r, this.formattedValue = this.getMaskedValue(i), e.value = this.formattedValue, this.emit("dds-change", {
|
|
16477
16482
|
value: this.value,
|
|
16478
16483
|
formattedValue: this.formattedValue
|
|
16479
16484
|
}), this.setValidity();
|
|
16480
16485
|
}
|
|
16481
16486
|
updated(t) {
|
|
16482
|
-
|
|
16487
|
+
var e;
|
|
16488
|
+
t.has("value") && (this.valueSetInternally || (this.formattedValue = this.getMaskedValue((e = this.value) != null ? e : "")), this.valueSetInternally = !1, this.inputElement.value = this.formattedValue, this.setValidity());
|
|
16483
16489
|
}
|
|
16484
16490
|
formResetCallback() {
|
|
16485
16491
|
super.formResetCallback(), this.formattedValue = this.getMaskedValue(this.value || ""), this.inputElement.value = this.formattedValue;
|
|
@@ -16489,7 +16495,7 @@ let Ae = class extends gt {
|
|
|
16489
16495
|
if (this.disabled || this.readonly) return;
|
|
16490
16496
|
const t = this.value ? parseFloat(this.value.toString().replace(this._thousandSeparator, "")) : 0, e = typeof this.step == "number" ? this.step : parseFloat((r = (o = this.step) == null ? void 0 : o.toString()) != null ? r : "1");
|
|
16491
16497
|
let i = t - e;
|
|
16492
|
-
this.min !== void 0 && i < this.min && (i = this.min), this.value = i, this.formattedValue = this.getMaskedValue(i), this.inputElement.value = this.formattedValue, this.emit("dds-change", {
|
|
16498
|
+
this.min !== void 0 && i < this.min && (i = this.min), this.valueSetInternally = !0, this.value = i, this.formattedValue = this.getMaskedValue(i), this.inputElement.value = this.formattedValue, this.emit("dds-change", {
|
|
16493
16499
|
value: this.value,
|
|
16494
16500
|
formattedValue: this.formattedValue
|
|
16495
16501
|
});
|
|
@@ -16499,7 +16505,7 @@ let Ae = class extends gt {
|
|
|
16499
16505
|
if (this.disabled || this.readonly) return;
|
|
16500
16506
|
const t = this.value ? parseFloat(this.value.toString().replace(this.thousandSeparator, "")) : 0, e = typeof this.step == "number" ? this.step : parseFloat((r = (o = this.step) == null ? void 0 : o.toString()) != null ? r : "1");
|
|
16501
16507
|
let i = t + e;
|
|
16502
|
-
this.max !== void 0 && i > this.max && (i = this.max), this.value = i, this.formattedValue = this.getMaskedValue(i), this.inputElement.value = this.formattedValue, this.emit("dds-change", {
|
|
16508
|
+
this.max !== void 0 && i > this.max && (i = this.max), this.valueSetInternally = !0, this.value = i, this.formattedValue = this.getMaskedValue(i), this.inputElement.value = this.formattedValue, this.emit("dds-change", {
|
|
16503
16509
|
value: this.value,
|
|
16504
16510
|
formattedValue: this.formattedValue
|
|
16505
16511
|
});
|
|
@@ -18562,6 +18568,21 @@ let lo = class extends M {
|
|
|
18562
18568
|
e && e.setAttribute("open", "true");
|
|
18563
18569
|
}
|
|
18564
18570
|
}
|
|
18571
|
+
// Emits `dds-item-click` when an item (or a group acting as a link) is
|
|
18572
|
+
// activated. The event is cancelable: consumers doing client-side routing can
|
|
18573
|
+
// call `event.preventDefault()` to suppress the item's native anchor
|
|
18574
|
+
// navigation. When nobody prevents it, the anchor navigates as before.
|
|
18575
|
+
handleClick(t) {
|
|
18576
|
+
const e = t.composedPath().find(
|
|
18577
|
+
(r) => r instanceof HTMLElement && (r.tagName === "DAP-DS-SIDENAV-ITEM" || r.tagName === "DAP-DS-SIDENAV-GROUP")
|
|
18578
|
+
), i = (e == null ? void 0 : e.href) || (e == null ? void 0 : e.getAttribute("href"));
|
|
18579
|
+
if (!i) return;
|
|
18580
|
+
this.emit(
|
|
18581
|
+
"dds-item-click",
|
|
18582
|
+
{ href: i, event: t },
|
|
18583
|
+
{ cancelable: !0 }
|
|
18584
|
+
).defaultPrevented && t.preventDefault();
|
|
18585
|
+
}
|
|
18565
18586
|
render() {
|
|
18566
18587
|
var t;
|
|
18567
18588
|
return b`
|
|
@@ -18569,7 +18590,7 @@ let lo = class extends M {
|
|
|
18569
18590
|
part="base"
|
|
18570
18591
|
class=${v("sidenav", `sidenav--${this.size}`)}
|
|
18571
18592
|
aria-label=${(t = this.ariaLabel) != null ? t : this.label}>
|
|
18572
|
-
<menu part="menu">
|
|
18593
|
+
<menu part="menu" @click=${this.handleClick}>
|
|
18573
18594
|
<slot></slot>
|
|
18574
18595
|
</menu>
|
|
18575
18596
|
</aside>
|
|
@@ -21555,7 +21576,7 @@ export {
|
|
|
21555
21576
|
Na as Y,
|
|
21556
21577
|
Ro as Z,
|
|
21557
21578
|
ie as _,
|
|
21558
|
-
|
|
21579
|
+
Be as a,
|
|
21559
21580
|
Ar as a0,
|
|
21560
21581
|
zt as a1,
|
|
21561
21582
|
Lr as a2,
|
|
@@ -21601,24 +21622,24 @@ export {
|
|
|
21601
21622
|
po as ax,
|
|
21602
21623
|
me as ay,
|
|
21603
21624
|
Pr as az,
|
|
21604
|
-
|
|
21605
|
-
|
|
21606
|
-
|
|
21607
|
-
|
|
21608
|
-
|
|
21609
|
-
|
|
21625
|
+
Ut as b,
|
|
21626
|
+
eo as c,
|
|
21627
|
+
He as d,
|
|
21628
|
+
to as e,
|
|
21629
|
+
vi as f,
|
|
21630
|
+
Eo as g,
|
|
21610
21631
|
ii as h,
|
|
21611
21632
|
Ot as i,
|
|
21612
21633
|
qt as j,
|
|
21613
21634
|
Mt as k,
|
|
21614
21635
|
Xt as l,
|
|
21615
|
-
|
|
21616
|
-
|
|
21617
|
-
|
|
21618
|
-
|
|
21619
|
-
|
|
21620
|
-
|
|
21621
|
-
|
|
21636
|
+
Ia as m,
|
|
21637
|
+
$r as n,
|
|
21638
|
+
Li as o,
|
|
21639
|
+
Sr as p,
|
|
21640
|
+
Po as q,
|
|
21641
|
+
ve as r,
|
|
21642
|
+
jt as s,
|
|
21622
21643
|
Ce as t,
|
|
21623
21644
|
Ei as u,
|
|
21624
21645
|
De as v,
|
|
@@ -21627,4 +21648,4 @@ export {
|
|
|
21627
21648
|
Qt as y,
|
|
21628
21649
|
wi as z
|
|
21629
21650
|
};
|
|
21630
|
-
//# sourceMappingURL=components-
|
|
21651
|
+
//# sourceMappingURL=components-I_1pevVu.js.map
|