@nldd/design-system 0.18.0 → 0.19.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/custom-elements.json +22 -3
- package/dist/components/components.js +285 -31
- package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +12 -6
- package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +373 -372
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/{decorate-Bwufpnmp.js → decorate-C7khEuc7.js} +1 -1
- package/dist/components/{defer-focus-CtZ0JSne.js → defer-focus-BQ3c4mzj.js} +2 -2
- package/dist/components/{dev-checks-Bl2WXSBI.js → dev-checks-lQ-gHUjV.js} +7 -2
- package/dist/components/icon-CrBk3W-t.js +969 -0
- package/dist/components/{icon-button-BJR_r6Wo.js → icon-button-CfpnGzYQ.js} +3 -3
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +20 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js +97 -3
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +132 -4
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.d.ts +1 -0
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js +21 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +2 -2
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +1 -1
- package/dist/components/inputs/search-field/search-field.template.js +1 -1
- package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.styles.js +2 -1
- package/dist/components/inputs/slider/slider.styles.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +11 -3
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +30 -14
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.template.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.template.js +3 -0
- package/dist/components/inputs/time-picker/time-picker.template.js.map +1 -1
- package/dist/components/{visibility-mixin-DrsvxcmK.js → visibility-mixin-BMtETgjk.js} +1 -1
- package/dist/nldd.min.js +702 -616
- package/dist/types/vue.d.ts +5 -3
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +7 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/package.json +1 -1
- package/dist/components/icon-BH4iy_z4.js +0 -968
package/custom-elements.json
CHANGED
|
@@ -15839,6 +15839,16 @@
|
|
|
15839
15839
|
"attribute": "size",
|
|
15840
15840
|
"reflects": true
|
|
15841
15841
|
},
|
|
15842
|
+
{
|
|
15843
|
+
"kind": "field",
|
|
15844
|
+
"name": "centered",
|
|
15845
|
+
"type": {
|
|
15846
|
+
"text": "boolean"
|
|
15847
|
+
},
|
|
15848
|
+
"default": "false",
|
|
15849
|
+
"attribute": "centered",
|
|
15850
|
+
"reflects": true
|
|
15851
|
+
},
|
|
15842
15852
|
{
|
|
15843
15853
|
"kind": "field",
|
|
15844
15854
|
"name": "length",
|
|
@@ -16282,7 +16292,16 @@
|
|
|
16282
16292
|
"expandedType": {
|
|
16283
16293
|
"text": "'lg' | 'md' | 'sm'"
|
|
16284
16294
|
},
|
|
16285
|
-
"description": "'sm' | 'md' (default) | 'lg'. 'lg' has boxes
|
|
16295
|
+
"description": "'sm' | 'md' (default) | 'lg'. 'lg' has boxes 56px tall with larger characters, for a page where the code is the only thing to do, such as signing in. Where the boxes do not fit the width, the field steps down a size, to md and then sm: a code never wraps onto a second line. Where not even sm fits, the field shows the code in a text field of its own size."
|
|
16296
|
+
},
|
|
16297
|
+
{
|
|
16298
|
+
"name": "centered",
|
|
16299
|
+
"type": {
|
|
16300
|
+
"text": "boolean"
|
|
16301
|
+
},
|
|
16302
|
+
"default": "false",
|
|
16303
|
+
"fieldName": "centered",
|
|
16304
|
+
"description": "Puts the boxes in the middle of the row, as on a sign-in page where the code is the only field. The field keeps the full width of the row, so it still sees when the boxes no longer fit and steps down a size; centering it from outside, with the alignment of its parent, would shrink it to its boxes and take that away."
|
|
16286
16305
|
},
|
|
16287
16306
|
{
|
|
16288
16307
|
"name": "length",
|
|
@@ -18768,10 +18787,10 @@
|
|
|
18768
18787
|
"text": "SearchButtonAppearance | null"
|
|
18769
18788
|
},
|
|
18770
18789
|
"default": "null",
|
|
18771
|
-
"description": "Shows a search button on the right, in the appearance you name: '
|
|
18790
|
+
"description": "Shows a search button on the right, in the appearance you name: 'secondary' (also with no value) | 'primary'. Leave it out for no button: Enter searches as well. 'primary' is for a page where searching is the main task, such as a search page; in a header or above a list the quiet one fits.",
|
|
18772
18791
|
"fieldName": "searchButton",
|
|
18773
18792
|
"expandedType": {
|
|
18774
|
-
"text": "'' | '
|
|
18793
|
+
"text": "'' | 'primary' | 'secondary'"
|
|
18775
18794
|
}
|
|
18776
18795
|
},
|
|
18777
18796
|
{
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
|
|
2
|
-
import { n as customElement, t as __decorate } from "./decorate-
|
|
2
|
+
import { n as customElement, t as __decorate } from "./decorate-C7khEuc7.js";
|
|
3
3
|
import { n as slottedReset, t as inheritedTextReset } from "./shadow-resets-BwOyyZFH.js";
|
|
4
|
-
import { a as downloadLinkHintKey, c as linkRel, i as translate, n as withTranslations, o as linkHintKey, r as setTranslations, s as markDownloadTarget, t as deferFocus } from "./defer-focus-
|
|
4
|
+
import { a as downloadLinkHintKey, c as linkRel, i as translate, n as withTranslations, o as linkHintKey, r as setTranslations, s as markDownloadTarget, t as deferFocus } from "./defer-focus-BQ3c4mzj.js";
|
|
5
5
|
import { n as internalsOf, r as setState$1 } from "./element-state-BnarBv0M.js";
|
|
6
|
-
import { a as releaseContext, c as anchorPopoverTarget, d as ShortcutAvailabilityController, f as hasShortcut, i as langOf, l as popoverTargetOf, m as shortcutsAvailable, n as NLDDTooltip, o as NLDDActivityIndicator, p as shortcutLabel, r as carryContext, s as PopupAnchorController, t as NLDDIconButton, u as NLDDKeyboardShortcut } from "./icon-button-
|
|
6
|
+
import { a as releaseContext, c as anchorPopoverTarget, d as ShortcutAvailabilityController, f as hasShortcut, i as langOf, l as popoverTargetOf, m as shortcutsAvailable, n as NLDDTooltip, o as NLDDActivityIndicator, p as shortcutLabel, r as carryContext, s as PopupAnchorController, t as NLDDIconButton, u as NLDDKeyboardShortcut } from "./icon-button-CfpnGzYQ.js";
|
|
7
7
|
import { t as reflectNonDefault } from "./reflect-non-default-B9wQcnne.js";
|
|
8
8
|
import { t as nlddButtonTranslations } from "./button.i18n-DiDGynnq.js";
|
|
9
|
-
import { t as NLDDIcon } from "./icon-
|
|
9
|
+
import { t as NLDDIcon } from "./icon-CrBk3W-t.js";
|
|
10
10
|
import { n as isPointerMode, r as isTouchMode, t as isKeyboardMode } from "./input-modality-CiPLYYMN.js";
|
|
11
11
|
import { A as nlddStepperTranslations, B as nlddComboBoxTranslations, C as nlddCardTranslations, D as nlddTimeFieldTranslations, E as nlddTokenFieldTranslations, F as nlddFileFieldTranslations, G as nlddCodeViewerTranslations, H as nlddTokenTranslations, I as nlddDateFieldTranslations, J as nlddAvatarTranslations, K as nlddAvatarGroupTranslations, L as MONTH_KEYS, M as nlddSearchFieldTranslations, N as nlddPasswordFieldTranslations, O as nlddTimePickerTranslations, P as nlddNumberFieldTranslations, R as WEEKDAY_KEYS, S as nlddCollectionTranslations, T as nlddSliderTranslations, U as nlddRichTextTranslations, V as nlddValidationListTranslations, W as nlddImageTranslations, X as nlddMenuTranslations, Y as nlddToolbarTranslations, Z as nlddSplitButtonTranslations, _ as nlddTableTranslations, a as nlddBadgeTranslations, b as nlddPageFooterTranslations, c as nlddPaginationTranslations, d as nlddTopNavigationBarTranslations, f as nlddSkipLinkTranslations, g as nlddDragHandleCellTranslations, h as nlddBreadcrumbsTranslations, i as nlddProgressBarTranslations, j as nlddSwatchPickerItemTranslations, k as nlddTextEditorTranslations, l as nlddDocumentTabBarTranslations, m as nlddMenuBarTranslations, n as nlddStepBarTranslations, o as nlddNotificationTranslations, p as nlddLinkTranslations, q as nlddPopoverTranslations, r as nlddProgressCircleTranslations, s as nlddBannerTranslations, t as nlddJustInTimeEducationTranslations, u as nlddTabBarTranslations, v as nlddListItemSegmentTranslations, w as nlddSidebarSectionTranslations, x as nlddWindowTranslations, y as nlddKanbanTranslations, z as nlddDatePickerTranslations } from "./just-in-time-education.i18n-BqU1ImP4.js";
|
|
12
12
|
import { i as splitSectionBreakpoints, n as queryBreakpoints, r as rootFontSize, t as breakpointPx } from "./breakpoints-DtL62nLI.js";
|
|
13
|
-
import { t as VisibilityMixin } from "./visibility-mixin-
|
|
13
|
+
import { t as VisibilityMixin } from "./visibility-mixin-BMtETgjk.js";
|
|
14
14
|
import { t as nlddListTranslations } from "./list.i18n-CKqbhFQ_.js";
|
|
15
15
|
import { t as nlddListItemTranslations } from "./list-item.i18n-89uqlBMK.js";
|
|
16
16
|
import { $ as ChangeSet, A as syntaxTree, B as getDrawSelectionConfig, C as indentNodeProp, D as matchBrackets, E as languageDataProp, F as RectangleMarker, G as layer, H as gutter, I as ViewPlugin, J as placeholder, K as lineNumbers, L as WidgetType, M as Direction, N as EditorView, P as GutterMarker, Q as ChangeDesc, R as drawSelection, S as getIndentation, T as indentUnit, U as gutterLineClass, W as keymap, X as tooltips, Y as showTooltip, Z as Annotation, _t as findClusterBreak, a as HighlightStyle, at as Prec, b as foldService, c as Language, d as ParseContext, dt as Text, et as Compartment, f as StreamLanguage, ft as Transaction, gt as countColumn, h as defineLanguageFacet, ht as combineConfig, j as Decoration, k as syntaxHighlighting, l as LanguageDescription, lt as StateEffect, nt as EditorState, o as IndentContext, ot as RangeSet, rt as Facet, st as RangeSetBuilder, tt as EditorSelection, u as LanguageSupport, ut as StateField, w as indentString, x as getIndentUnit, y as foldNodeProp, z as dropCursor } from "./dist-BFZM0YsR.js";
|
|
@@ -24708,7 +24708,7 @@ function renderInput$1(component, text, index) {
|
|
|
24708
24708
|
>
|
|
24709
24709
|
`;
|
|
24710
24710
|
}
|
|
24711
|
-
function renderSeparator(component) {
|
|
24711
|
+
function renderSeparator$1(component) {
|
|
24712
24712
|
return html`
|
|
24713
24713
|
<span class="date-field__separator"
|
|
24714
24714
|
aria-hidden="true"
|
|
@@ -24725,7 +24725,7 @@ function dateFieldTemplate(component) {
|
|
|
24725
24725
|
@focusout=${component._handleFieldBlur}
|
|
24726
24726
|
>
|
|
24727
24727
|
${component._texts.map((text, index) => html`
|
|
24728
|
-
${index > 0 ? renderSeparator(component) : nothing}
|
|
24728
|
+
${index > 0 ? renderSeparator$1(component) : nothing}
|
|
24729
24729
|
${renderInput$1(component, text, index)}
|
|
24730
24730
|
`)}
|
|
24731
24731
|
<div class="date-field__input-fade"></div>
|
|
@@ -28538,12 +28538,19 @@ var oneTimeCodeFieldStyles = css`
|
|
|
28538
28538
|
:host {
|
|
28539
28539
|
--_one-time-code-field-gap: var(--primitives-space-8);
|
|
28540
28540
|
--_one-time-code-field-box-size: var(--semantics-controls-md-min-size);
|
|
28541
|
+
--_one-time-code-field-box-width: var(--primitives-space-32);
|
|
28541
28542
|
--_one-time-code-field-box-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
28542
28543
|
--_one-time-code-field-box-background-color: var(--semantics-input-fields-background-color);
|
|
28543
28544
|
--_one-time-code-field-font: var(--semantics-input-fields-md-text-font);
|
|
28544
28545
|
--_one-time-code-field-box-font: var(--primitives-font-monospace-md-regular-flat);
|
|
28545
28546
|
--_one-time-code-field-caret-width: var(--primitives-space-2);
|
|
28546
28547
|
--_one-time-code-field-caret-height: var(--primitives-space-20);
|
|
28548
|
+
--_one-time-code-field-space-width: var(--primitives-space-12);
|
|
28549
|
+
--_one-time-code-field-dash-width: var(--primitives-space-12);
|
|
28550
|
+
--_one-time-code-field-dash-height: var(--primitives-space-3);
|
|
28551
|
+
--_one-time-code-field-inline-padding: var(--semantics-controls-md-inline-padding);
|
|
28552
|
+
--_one-time-code-field-letter-spacing: 0.1em;
|
|
28553
|
+
--_one-time-code-field-validation-icon-size: var(--semantics-input-fields-md-validation-icon-size);
|
|
28547
28554
|
|
|
28548
28555
|
${inheritedTextReset}
|
|
28549
28556
|
display: block;
|
|
@@ -28555,21 +28562,33 @@ var oneTimeCodeFieldStyles = css`
|
|
|
28555
28562
|
display: none;
|
|
28556
28563
|
}
|
|
28557
28564
|
|
|
28558
|
-
:host([size="sm"])
|
|
28565
|
+
:host([size="sm"]),
|
|
28566
|
+
:host([data-fit="sm"]) {
|
|
28559
28567
|
--_one-time-code-field-gap: var(--primitives-space-6);
|
|
28560
28568
|
--_one-time-code-field-box-size: var(--semantics-controls-sm-min-size);
|
|
28569
|
+
--_one-time-code-field-box-width: var(--primitives-space-24);
|
|
28561
28570
|
--_one-time-code-field-box-corner-radius: var(--semantics-controls-sm-corner-radius);
|
|
28562
28571
|
--_one-time-code-field-font: var(--semantics-input-fields-sm-text-font);
|
|
28563
28572
|
--_one-time-code-field-box-font: var(--primitives-font-monospace-sm-regular-flat);
|
|
28564
28573
|
--_one-time-code-field-caret-height: var(--primitives-space-16);
|
|
28574
|
+
--_one-time-code-field-space-width: var(--primitives-space-8);
|
|
28575
|
+
--_one-time-code-field-dash-width: var(--primitives-space-10);
|
|
28576
|
+
--_one-time-code-field-dash-height: var(--primitives-space-2);
|
|
28577
|
+
--_one-time-code-field-inline-padding: var(--semantics-controls-sm-inline-padding);
|
|
28578
|
+
--_one-time-code-field-validation-icon-size: var(--semantics-input-fields-sm-validation-icon-size);
|
|
28565
28579
|
}
|
|
28566
28580
|
|
|
28567
|
-
:host([size="lg"]) {
|
|
28581
|
+
:host([size="lg"]:not([data-fit="md"], [data-fit="sm"])) {
|
|
28568
28582
|
--_one-time-code-field-gap: var(--primitives-space-10);
|
|
28569
28583
|
--_one-time-code-field-box-size: var(--semantics-controls-lg-min-size);
|
|
28584
|
+
--_one-time-code-field-box-width: var(--primitives-space-40);
|
|
28570
28585
|
--_one-time-code-field-box-corner-radius: var(--semantics-controls-lg-corner-radius);
|
|
28571
28586
|
--_one-time-code-field-box-font: var(--primitives-font-weight-body-regular) var(--primitives-font-size-300) / var(--primitives-line-height-flat) var(--primitives-font-family-monospace);
|
|
28572
28587
|
--_one-time-code-field-caret-height: var(--primitives-space-28);
|
|
28588
|
+
--_one-time-code-field-space-width: var(--primitives-space-16);
|
|
28589
|
+
--_one-time-code-field-dash-width: var(--primitives-space-16);
|
|
28590
|
+
--_one-time-code-field-dash-height: var(--primitives-space-4);
|
|
28591
|
+
--_one-time-code-field-inline-padding: var(--semantics-controls-lg-inline-padding);
|
|
28573
28592
|
}
|
|
28574
28593
|
|
|
28575
28594
|
:host([readonly]) {
|
|
@@ -28586,6 +28605,10 @@ var oneTimeCodeFieldStyles = css`
|
|
|
28586
28605
|
max-width: 100%;
|
|
28587
28606
|
}
|
|
28588
28607
|
|
|
28608
|
+
:host([centered]) .one-time-code-field {
|
|
28609
|
+
margin-inline: auto;
|
|
28610
|
+
}
|
|
28611
|
+
|
|
28589
28612
|
:host([disabled]) .one-time-code-field {
|
|
28590
28613
|
opacity: var(--primitives-opacity-disabled);
|
|
28591
28614
|
}
|
|
@@ -28611,7 +28634,7 @@ var oneTimeCodeFieldStyles = css`
|
|
|
28611
28634
|
appearance: none;
|
|
28612
28635
|
}
|
|
28613
28636
|
|
|
28614
|
-
.one-time-code-field__input::selection {
|
|
28637
|
+
:host(:not([data-fit="field"])) .one-time-code-field__input::selection {
|
|
28615
28638
|
background: transparent;
|
|
28616
28639
|
}
|
|
28617
28640
|
|
|
@@ -28636,7 +28659,7 @@ var oneTimeCodeFieldStyles = css`
|
|
|
28636
28659
|
border: var(--semantics-input-fields-border);
|
|
28637
28660
|
border-radius: var(--_one-time-code-field-box-corner-radius);
|
|
28638
28661
|
background-color: var(--_one-time-code-field-box-background-color);
|
|
28639
|
-
width: var(--_one-time-code-field-box-
|
|
28662
|
+
width: var(--_one-time-code-field-box-width);
|
|
28640
28663
|
min-width: 0;
|
|
28641
28664
|
height: var(--_one-time-code-field-box-size);
|
|
28642
28665
|
flex-shrink: 1;
|
|
@@ -28668,6 +28691,20 @@ var oneTimeCodeFieldStyles = css`
|
|
|
28668
28691
|
white-space: pre;
|
|
28669
28692
|
}
|
|
28670
28693
|
|
|
28694
|
+
.one-time-code-field__separator.is-space {
|
|
28695
|
+
width: var(--_one-time-code-field-space-width);
|
|
28696
|
+
flex-shrink: 0;
|
|
28697
|
+
}
|
|
28698
|
+
|
|
28699
|
+
.one-time-code-field__separator.is-dash {
|
|
28700
|
+
border-radius: calc(var(--_one-time-code-field-dash-height) / 2);
|
|
28701
|
+
background-color: currentColor;
|
|
28702
|
+
width: var(--_one-time-code-field-dash-width);
|
|
28703
|
+
height: var(--_one-time-code-field-dash-height);
|
|
28704
|
+
flex-shrink: 0;
|
|
28705
|
+
align-self: center;
|
|
28706
|
+
}
|
|
28707
|
+
|
|
28671
28708
|
.one-time-code-field__character {
|
|
28672
28709
|
position: relative;
|
|
28673
28710
|
}
|
|
@@ -28700,6 +28737,97 @@ var oneTimeCodeFieldStyles = css`
|
|
|
28700
28737
|
}
|
|
28701
28738
|
|
|
28702
28739
|
|
|
28740
|
+
/* # Field */
|
|
28741
|
+
|
|
28742
|
+
:host([data-fit="field"]) .one-time-code-field {
|
|
28743
|
+
box-sizing: border-box;
|
|
28744
|
+
border: var(--semantics-input-fields-border);
|
|
28745
|
+
border-radius: var(--_one-time-code-field-box-corner-radius);
|
|
28746
|
+
background-color: var(--_one-time-code-field-box-background-color);
|
|
28747
|
+
width: 100%;
|
|
28748
|
+
height: var(--_one-time-code-field-box-size);
|
|
28749
|
+
overflow: hidden;
|
|
28750
|
+
padding-left: calc(var(--_one-time-code-field-inline-padding) - var(--semantics-input-fields-border-width));
|
|
28751
|
+
align-items: center;
|
|
28752
|
+
}
|
|
28753
|
+
|
|
28754
|
+
.one-time-code-field__input-fade,
|
|
28755
|
+
.one-time-code-field__validation-icon-area {
|
|
28756
|
+
display: none;
|
|
28757
|
+
}
|
|
28758
|
+
|
|
28759
|
+
:host([data-fit="field"]) .one-time-code-field__input-fade {
|
|
28760
|
+
display: block;
|
|
28761
|
+
position: relative;
|
|
28762
|
+
width: 0;
|
|
28763
|
+
flex-shrink: 0;
|
|
28764
|
+
align-self: stretch;
|
|
28765
|
+
}
|
|
28766
|
+
|
|
28767
|
+
:host([data-fit="field"]) .one-time-code-field__input-fade::after {
|
|
28768
|
+
content: '';
|
|
28769
|
+
position: absolute;
|
|
28770
|
+
top: 0;
|
|
28771
|
+
right: 0;
|
|
28772
|
+
bottom: 0;
|
|
28773
|
+
background: linear-gradient(90deg, color-mix(in oklch, var(--_one-time-code-field-box-background-color) 0%, transparent) 0%, var(--_one-time-code-field-box-background-color) 100%);
|
|
28774
|
+
pointer-events: none;
|
|
28775
|
+
width: var(--primitives-space-8);
|
|
28776
|
+
}
|
|
28777
|
+
|
|
28778
|
+
:host([data-fit="field"]) .one-time-code-field__validation-icon-area {
|
|
28779
|
+
display: flex;
|
|
28780
|
+
width: calc(var(--_one-time-code-field-box-size) - var(--semantics-input-fields-border-width) * 2);
|
|
28781
|
+
height: 100%;
|
|
28782
|
+
flex-shrink: 0;
|
|
28783
|
+
align-items: center;
|
|
28784
|
+
justify-content: center;
|
|
28785
|
+
color: var(--semantics-input-fields-is-invalid-icon-color);
|
|
28786
|
+
}
|
|
28787
|
+
|
|
28788
|
+
.one-time-code-field__validation-icon {
|
|
28789
|
+
width: var(--_one-time-code-field-validation-icon-size);
|
|
28790
|
+
height: var(--_one-time-code-field-validation-icon-size);
|
|
28791
|
+
}
|
|
28792
|
+
|
|
28793
|
+
:host([data-fit="field"]) .one-time-code-field:has(.one-time-code-field__input:focus-visible) {
|
|
28794
|
+
outline: var(--semantics-focus-ring-outline);
|
|
28795
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
28796
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
28797
|
+
}
|
|
28798
|
+
|
|
28799
|
+
:host([data-fit="field"][invalid]) .one-time-code-field {
|
|
28800
|
+
border-color: var(--semantics-input-fields-is-invalid-border-color);
|
|
28801
|
+
}
|
|
28802
|
+
|
|
28803
|
+
:host([data-fit="field"][readonly]) .one-time-code-field {
|
|
28804
|
+
border-color: var(--semantics-input-fields-is-read-only-border-color);
|
|
28805
|
+
}
|
|
28806
|
+
|
|
28807
|
+
:host([data-fit="field"]) .one-time-code-field__boxes {
|
|
28808
|
+
display: none;
|
|
28809
|
+
}
|
|
28810
|
+
|
|
28811
|
+
:host([data-fit="field"]) .one-time-code-field__input {
|
|
28812
|
+
position: static;
|
|
28813
|
+
z-index: auto;
|
|
28814
|
+
width: auto;
|
|
28815
|
+
min-width: 0;
|
|
28816
|
+
height: 100%;
|
|
28817
|
+
flex-grow: 1;
|
|
28818
|
+
color: var(--semantics-content-color);
|
|
28819
|
+
font: var(--_one-time-code-field-box-font);
|
|
28820
|
+
letter-spacing: var(--_one-time-code-field-letter-spacing);
|
|
28821
|
+
caret-color: auto;
|
|
28822
|
+
}
|
|
28823
|
+
|
|
28824
|
+
:host([data-fit="field"]) .one-time-code-field__input:-webkit-autofill,
|
|
28825
|
+
:host([data-fit="field"]) .one-time-code-field__input:autofill {
|
|
28826
|
+
box-shadow: 0 0 0 999px var(--_one-time-code-field-box-background-color) inset;
|
|
28827
|
+
-webkit-text-fill-color: currentColor;
|
|
28828
|
+
}
|
|
28829
|
+
|
|
28830
|
+
|
|
28703
28831
|
/* # Accessibility */
|
|
28704
28832
|
|
|
28705
28833
|
@media (forced-colors: active) {
|
|
@@ -28736,7 +28864,15 @@ function renderBoxes(component) {
|
|
|
28736
28864
|
const parts = component.formatParts;
|
|
28737
28865
|
if (!parts) return Array.from({ length: component.boxes }, (_, index) => renderBox(component, index));
|
|
28738
28866
|
let index = 0;
|
|
28739
|
-
return parts.map((part) => part === BOX ? renderBox(component, index++) :
|
|
28867
|
+
return parts.map((part) => part === BOX ? renderBox(component, index++) : renderSeparator(part));
|
|
28868
|
+
}
|
|
28869
|
+
/** A space becomes room between the groups and a dash a drawn bar, both sized
|
|
28870
|
+
* with the boxes; any other character stays text. */
|
|
28871
|
+
function renderSeparator(part) {
|
|
28872
|
+
const mark = part.trim();
|
|
28873
|
+
if (mark === "") return html`<span class="one-time-code-field__separator is-space"></span>`;
|
|
28874
|
+
if (mark === "-" || mark === "–") return html`<span class="one-time-code-field__separator is-dash"></span>`;
|
|
28875
|
+
return html`<span class="one-time-code-field__separator">${part}</span>`;
|
|
28740
28876
|
}
|
|
28741
28877
|
function oneTimeCodeFieldTemplate(component) {
|
|
28742
28878
|
return html`
|
|
@@ -28767,6 +28903,15 @@ function oneTimeCodeFieldTemplate(component) {
|
|
|
28767
28903
|
@input=${component._handleInput}
|
|
28768
28904
|
@change=${component._handleChange}
|
|
28769
28905
|
>
|
|
28906
|
+
<div class="one-time-code-field__input-fade"></div>
|
|
28907
|
+
${component.invalid ? html`
|
|
28908
|
+
<div class="one-time-code-field__validation-icon-area">
|
|
28909
|
+
<nldd-icon class="one-time-code-field__validation-icon"
|
|
28910
|
+
icon="invalid"
|
|
28911
|
+
aria-hidden="true"
|
|
28912
|
+
></nldd-icon>
|
|
28913
|
+
</div>
|
|
28914
|
+
` : nothing}
|
|
28770
28915
|
<div class="one-time-code-field__boxes"
|
|
28771
28916
|
aria-hidden="true"
|
|
28772
28917
|
>
|
|
@@ -28805,7 +28950,8 @@ function oneTimeCodeFieldTemplate(component) {
|
|
|
28805
28950
|
*
|
|
28806
28951
|
* @element nldd-one-time-code-field
|
|
28807
28952
|
*
|
|
28808
|
-
* @attr {string} size - 'sm' | 'md' (default) | 'lg'. 'lg' has boxes
|
|
28953
|
+
* @attr {string} size - 'sm' | 'md' (default) | 'lg'. 'lg' has boxes 56px tall with larger characters, for a page where the code is the only thing to do, such as signing in. Where the boxes do not fit the width, the field steps down a size, to md and then sm: a code never wraps onto a second line. Where not even sm fits, the field shows the code in a text field of its own size.
|
|
28954
|
+
* @attr {boolean} centered - Puts the boxes in the middle of the row, as on a sign-in page where the code is the only field. The field keeps the full width of the row, so it still sees when the boxes no longer fit and steps down a size; centering it from outside, with the alignment of its parent, would shrink it to its boxes and take that away.
|
|
28809
28955
|
* @attr {number} length - How many characters the code has (default: 6).
|
|
28810
28956
|
* @attr {string} format - The shape of a code that is printed in groups, such as '###-###' or '#### ####': each `#` is a box, anything else a separator you see but a screen reader does not hear. The number of `#` is then the length, so `format` wins over `length`. The value never holds a separator: '123-234' is submitted as '123234'. Leave it out for a code without groups, as most codes from a text message are.
|
|
28811
28957
|
* @attr {string} accessible-label - Accessible label forwarded to the inner input. Set automatically by nldd-form-field.
|
|
@@ -28841,6 +28987,7 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
|
|
|
28841
28987
|
super(..._args);
|
|
28842
28988
|
this._initialValue = "";
|
|
28843
28989
|
this.size = "md";
|
|
28990
|
+
this.centered = false;
|
|
28844
28991
|
this.length = DEFAULT_LENGTH;
|
|
28845
28992
|
this.format = "";
|
|
28846
28993
|
this.accessibleLabel = "";
|
|
@@ -28924,6 +29071,49 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
|
|
|
28924
29071
|
firstUpdated() {
|
|
28925
29072
|
this._initialValue = this.value;
|
|
28926
29073
|
}
|
|
29074
|
+
connectedCallback() {
|
|
29075
|
+
super.connectedCallback();
|
|
29076
|
+
this._resizeObserver = new ResizeObserver(() => this._fit());
|
|
29077
|
+
this._resizeObserver.observe(this);
|
|
29078
|
+
}
|
|
29079
|
+
disconnectedCallback() {
|
|
29080
|
+
this._resizeObserver?.disconnect();
|
|
29081
|
+
super.disconnectedCallback();
|
|
29082
|
+
}
|
|
29083
|
+
updated(changed) {
|
|
29084
|
+
super.updated(changed);
|
|
29085
|
+
if ([
|
|
29086
|
+
"size",
|
|
29087
|
+
"length",
|
|
29088
|
+
"format"
|
|
29089
|
+
].some((key) => changed.has(key))) this._fit();
|
|
29090
|
+
}
|
|
29091
|
+
/** Steps down from `size` until the boxes fit the width, so a code never
|
|
29092
|
+
* wraps. Where not even sm fits, the input itself shows as a text field in
|
|
29093
|
+
* the size of `size`. The boxes are measured at their full width for this. */
|
|
29094
|
+
_fit() {
|
|
29095
|
+
const boxes = this.shadowRoot?.querySelector(".one-time-code-field__boxes");
|
|
29096
|
+
const available = this.clientWidth;
|
|
29097
|
+
if (!boxes || available === 0) return;
|
|
29098
|
+
const sizes = [
|
|
29099
|
+
"lg",
|
|
29100
|
+
"md",
|
|
29101
|
+
"sm"
|
|
29102
|
+
];
|
|
29103
|
+
const start = sizes.includes(this.size) ? sizes.indexOf(this.size) : sizes.indexOf("md");
|
|
29104
|
+
this.removeAttribute("data-fit");
|
|
29105
|
+
boxes.style.minWidth = "max-content";
|
|
29106
|
+
let fits = false;
|
|
29107
|
+
for (const size of sizes.slice(start)) {
|
|
29108
|
+
if (size !== this.size) this.setAttribute("data-fit", size);
|
|
29109
|
+
if (boxes.getBoundingClientRect().width <= available + .5) {
|
|
29110
|
+
fits = true;
|
|
29111
|
+
break;
|
|
29112
|
+
}
|
|
29113
|
+
}
|
|
29114
|
+
boxes.style.removeProperty("min-width");
|
|
29115
|
+
if (!fits) this.setAttribute("data-fit", "field");
|
|
29116
|
+
}
|
|
28927
29117
|
formValue() {
|
|
28928
29118
|
return this.value;
|
|
28929
29119
|
}
|
|
@@ -28962,6 +29152,7 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
|
|
|
28962
29152
|
* keeps the browser's focus, which is what raises the keyboard.
|
|
28963
29153
|
*/
|
|
28964
29154
|
_handlePointerDown(e) {
|
|
29155
|
+
if (this._asField) return;
|
|
28965
29156
|
const box = this._boxAt(e.clientX);
|
|
28966
29157
|
this._pressedBox = box;
|
|
28967
29158
|
this._moveTo(box);
|
|
@@ -28971,6 +29162,7 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
|
|
|
28971
29162
|
}
|
|
28972
29163
|
_handleFocus() {
|
|
28973
29164
|
this._focused = true;
|
|
29165
|
+
if (this._asField) return;
|
|
28974
29166
|
if (this._pressedBox === null) this._moveTo(this._nextBox);
|
|
28975
29167
|
this._pressedBox = null;
|
|
28976
29168
|
this._keepNativeCaretAtEnd();
|
|
@@ -28982,7 +29174,7 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
|
|
|
28982
29174
|
/** The native caret means nothing here; at the end it never selects a part of the code. */
|
|
28983
29175
|
_keepNativeCaretAtEnd() {
|
|
28984
29176
|
const input = this._input;
|
|
28985
|
-
if (!input || this.shadowRoot?.activeElement !== input) return;
|
|
29177
|
+
if (!input || this._asField || this.shadowRoot?.activeElement !== input) return;
|
|
28986
29178
|
const end = input.value.length;
|
|
28987
29179
|
if (input.selectionStart !== end || input.selectionEnd !== end) input.setSelectionRange(end, end);
|
|
28988
29180
|
}
|
|
@@ -28995,6 +29187,10 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
|
|
|
28995
29187
|
*/
|
|
28996
29188
|
_handleBeforeInput(e) {
|
|
28997
29189
|
if (this.readonly || this.disabled) return;
|
|
29190
|
+
if (this._asField) {
|
|
29191
|
+
this._beforeFieldInput(e);
|
|
29192
|
+
return;
|
|
29193
|
+
}
|
|
28998
29194
|
switch (e.inputType) {
|
|
28999
29195
|
case "insertText": {
|
|
29000
29196
|
e.preventDefault();
|
|
@@ -29027,6 +29223,44 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
|
|
|
29027
29223
|
return;
|
|
29028
29224
|
}
|
|
29029
29225
|
}
|
|
29226
|
+
/**
|
|
29227
|
+
* As a text field the input edits like any other: select, move and delete
|
|
29228
|
+
* where you like. Only what cannot be in the code is kept out, and a pasted
|
|
29229
|
+
* code is cut out of the text around it.
|
|
29230
|
+
*/
|
|
29231
|
+
_beforeFieldInput(e) {
|
|
29232
|
+
const input = this._input;
|
|
29233
|
+
if (e.inputType === "insertText") {
|
|
29234
|
+
if (!this._clean(e.data ?? "")) e.preventDefault();
|
|
29235
|
+
return;
|
|
29236
|
+
}
|
|
29237
|
+
if ([
|
|
29238
|
+
"insertFromPaste",
|
|
29239
|
+
"insertFromDrop",
|
|
29240
|
+
"insertReplacementText"
|
|
29241
|
+
].includes(e.inputType)) {
|
|
29242
|
+
e.preventDefault();
|
|
29243
|
+
const text = this._codeIn(e.dataTransfer?.getData("text/plain") ?? e.data ?? "");
|
|
29244
|
+
if (text.length === this.boxes) input.value = text;
|
|
29245
|
+
else input.setRangeText(text, input.selectionStart ?? 0, input.selectionEnd ?? 0, "end");
|
|
29246
|
+
this._syncFromField();
|
|
29247
|
+
}
|
|
29248
|
+
}
|
|
29249
|
+
/** Reads the text field back into the code, keeping the caret where it was. */
|
|
29250
|
+
_syncFromField() {
|
|
29251
|
+
const input = this._input;
|
|
29252
|
+
const caret = input.selectionStart ?? input.value.length;
|
|
29253
|
+
const clean = this._clean(input.value);
|
|
29254
|
+
if (input.value !== clean) {
|
|
29255
|
+
const at = this._clean(input.value.slice(0, caret)).length;
|
|
29256
|
+
input.value = clean;
|
|
29257
|
+
input.setSelectionRange(at, at);
|
|
29258
|
+
}
|
|
29259
|
+
this._setChars(this._charsOf(clean), Math.min(clean.length, this.boxes - 1));
|
|
29260
|
+
}
|
|
29261
|
+
get _asField() {
|
|
29262
|
+
return this.getAttribute("data-fit") === "field";
|
|
29263
|
+
}
|
|
29030
29264
|
/** Writes characters from the caret on; a whole code at once replaces what was there. */
|
|
29031
29265
|
_write(text, pasted) {
|
|
29032
29266
|
if (pasted && text.length === this.boxes) {
|
|
@@ -29045,7 +29279,7 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
|
|
|
29045
29279
|
}
|
|
29046
29280
|
_handleKeydown(e) {
|
|
29047
29281
|
submitOnEnter(this, e);
|
|
29048
|
-
if (e.altKey || e.ctrlKey || e.metaKey) return;
|
|
29282
|
+
if (this._asField || e.altKey || e.ctrlKey || e.metaKey) return;
|
|
29049
29283
|
const move = {
|
|
29050
29284
|
ArrowLeft: () => this._box - 1,
|
|
29051
29285
|
ArrowRight: () => Math.min(this._box + 1, this._nextBox),
|
|
@@ -29059,6 +29293,10 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
|
|
|
29059
29293
|
/** Input that did not come through beforeinput, such as a code a phone fills in: take it from the start. */
|
|
29060
29294
|
_handleInput(e) {
|
|
29061
29295
|
e.stopPropagation();
|
|
29296
|
+
if (this._asField) {
|
|
29297
|
+
this._syncFromField();
|
|
29298
|
+
return;
|
|
29299
|
+
}
|
|
29062
29300
|
const clean = this._clean(this._input.value);
|
|
29063
29301
|
this._setChars(this._charsOf(clean), Math.min(clean.length, this.boxes - 1));
|
|
29064
29302
|
}
|
|
@@ -29116,6 +29354,10 @@ __decorate([property({
|
|
|
29116
29354
|
reflect: true,
|
|
29117
29355
|
converter: reflectNonDefault("md")
|
|
29118
29356
|
})], NLDDOneTimeCodeField.prototype, "size", void 0);
|
|
29357
|
+
__decorate([property({
|
|
29358
|
+
type: Boolean,
|
|
29359
|
+
reflect: true
|
|
29360
|
+
})], NLDDOneTimeCodeField.prototype, "centered", void 0);
|
|
29119
29361
|
__decorate([property({
|
|
29120
29362
|
reflect: true,
|
|
29121
29363
|
converter: reflectNonDefault(DEFAULT_LENGTH)
|
|
@@ -30843,7 +31085,7 @@ function searchFieldTemplate(component) {
|
|
|
30843
31085
|
${hasSearchButton ? html`
|
|
30844
31086
|
<div class="search-field__search-button">
|
|
30845
31087
|
<nldd-button
|
|
30846
|
-
appearance=${component.searchButton === "
|
|
31088
|
+
appearance=${component.searchButton === "primary" ? "primary" : "secondary"}
|
|
30847
31089
|
size=${buttonSize}
|
|
30848
31090
|
text=${component._t("components.search-field.search-action")}
|
|
30849
31091
|
@click=${component._handleSearch}
|
|
@@ -30867,7 +31109,7 @@ function searchFieldTemplate(component) {
|
|
|
30867
31109
|
* @attr {string} width - Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container.
|
|
30868
31110
|
* @attr {string} placeholder - Placeholder text for the input
|
|
30869
31111
|
* @attr {string} accessible-label - Accessible name (aria-label) of the native input. Falls back to `placeholder`, and keeps it when a value is typed. That works while the placeholder names the field ('Zoek een gebruiker'); set this when the placeholder is an example instead ('bijv. Jansen'). Without a visible label the placeholder is the only text on screen, so a name of your own starts with it: someone who works the computer by voice says what they see, and a name that leaves it out does not answer (WCAG 2.5.3).
|
|
30870
|
-
* @attr {string} search-button - Shows a search button on the right, in the appearance you name: '
|
|
31112
|
+
* @attr {string} search-button - Shows a search button on the right, in the appearance you name: 'secondary' (also with no value) | 'primary'. Leave it out for no button: Enter searches as well. 'primary' is for a page where searching is the main task, such as a search page; in a header or above a list the quiet one fits.
|
|
30871
31113
|
* @attr {string} shortcut - Keyboard shortcut hint shown at the right end of the empty field, e.g. 'Cmd+K' or '/'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up focusing the field in your app. Hidden while the field has focus or a value, and on touch-only devices. Joins the field's description for screen readers.
|
|
30872
31114
|
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
30873
31115
|
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
@@ -42076,6 +42318,9 @@ function renderColumn(component, column, numbers, selected) {
|
|
|
42076
42318
|
data-column=${column}
|
|
42077
42319
|
@keydown=${(e) => component._handleKeydown(e, column)}
|
|
42078
42320
|
@scroll=${(e) => component._handleScroll(e, column)}
|
|
42321
|
+
@wheel=${component._takeOver}
|
|
42322
|
+
@touchstart=${component._takeOver}
|
|
42323
|
+
@pointerdown=${component._takeOver}
|
|
42079
42324
|
>
|
|
42080
42325
|
${numbers.map((number) => {
|
|
42081
42326
|
return html`
|
|
@@ -42184,12 +42429,6 @@ function toMs(time) {
|
|
|
42184
42429
|
if (Number.isNaN(value)) return 0;
|
|
42185
42430
|
return time.trim().endsWith("ms") ? value : time.trim().endsWith("s") ? value * 1e3 : 0;
|
|
42186
42431
|
}
|
|
42187
|
-
/** What ends a glide: the user scrolling the column themselves. */
|
|
42188
|
-
var GLIDE_INTERRUPTIONS = [
|
|
42189
|
-
"wheel",
|
|
42190
|
-
"touchstart",
|
|
42191
|
-
"pointerdown"
|
|
42192
|
-
];
|
|
42193
42432
|
var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy(LitElement) {
|
|
42194
42433
|
constructor(..._args) {
|
|
42195
42434
|
super(..._args);
|
|
@@ -42214,10 +42453,13 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
|
|
|
42214
42453
|
this._selfScrollTimer = 0;
|
|
42215
42454
|
this._chosenHere = false;
|
|
42216
42455
|
this._glides = /* @__PURE__ */ new Map();
|
|
42217
|
-
this.
|
|
42218
|
-
|
|
42219
|
-
|
|
42220
|
-
|
|
42456
|
+
this._takeOver = {
|
|
42457
|
+
passive: true,
|
|
42458
|
+
handleEvent: () => {
|
|
42459
|
+
for (const column of [...this._glides.keys()]) this._stopGlide(column);
|
|
42460
|
+
clearTimeout(this._selfScrollTimer);
|
|
42461
|
+
this._scrollingSelf = false;
|
|
42462
|
+
}
|
|
42221
42463
|
};
|
|
42222
42464
|
}
|
|
42223
42465
|
_t(key) {
|
|
@@ -42294,10 +42536,18 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
|
|
|
42294
42536
|
next = (this._selected === null ? this._hours[0] : Math.floor(this._selected / 60)) * 60 + number;
|
|
42295
42537
|
if (!slots.includes(next)) return;
|
|
42296
42538
|
}
|
|
42539
|
+
if (commit) this._cancelSettle();
|
|
42297
42540
|
const changed = fromMinutes$1(next) !== this.value;
|
|
42298
42541
|
this._chosenHere = changed;
|
|
42299
42542
|
this.value = fromMinutes$1(next);
|
|
42300
42543
|
if (changed) this._emit("input");
|
|
42544
|
+
else if (commit) {
|
|
42545
|
+
this._scrolledTo = {
|
|
42546
|
+
hours: null,
|
|
42547
|
+
minutes: null
|
|
42548
|
+
};
|
|
42549
|
+
this.scrollSelectedIntoView(true);
|
|
42550
|
+
}
|
|
42301
42551
|
if (commit) this._emit("change");
|
|
42302
42552
|
}
|
|
42303
42553
|
_emit(type) {
|
|
@@ -42393,6 +42643,11 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
|
|
|
42393
42643
|
this.toggleAttribute("data-scrolling", false);
|
|
42394
42644
|
}, 120);
|
|
42395
42645
|
}
|
|
42646
|
+
_cancelSettle() {
|
|
42647
|
+
clearTimeout(this._scrollTimers.hours);
|
|
42648
|
+
clearTimeout(this._scrollTimers.minutes);
|
|
42649
|
+
this.toggleAttribute("data-scrolling", false);
|
|
42650
|
+
}
|
|
42396
42651
|
/** The number of the option closest to the middle of the column. */
|
|
42397
42652
|
_centeredOption(el) {
|
|
42398
42653
|
const center = el.scrollTop + el.clientHeight / 2;
|
|
@@ -42451,7 +42706,6 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
|
|
|
42451
42706
|
const duration = toMs(getComputedStyle(this).getPropertyValue("--_time-picker-glide-duration"));
|
|
42452
42707
|
const start = performance.now();
|
|
42453
42708
|
column.toggleAttribute("data-gliding", true);
|
|
42454
|
-
for (const type of GLIDE_INTERRUPTIONS) column.addEventListener(type, this._interruptGlide, { passive: true });
|
|
42455
42709
|
const step = (now) => {
|
|
42456
42710
|
const t = duration > 0 ? Math.min(1, (now - start) / duration) : 1;
|
|
42457
42711
|
column.scrollTop = from + distance * (1 - (1 - t) ** 3);
|
|
@@ -42464,7 +42718,6 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
|
|
|
42464
42718
|
cancelAnimationFrame(this._glides.get(column) ?? 0);
|
|
42465
42719
|
this._glides.delete(column);
|
|
42466
42720
|
column.removeAttribute("data-gliding");
|
|
42467
|
-
for (const type of GLIDE_INTERRUPTIONS) column.removeEventListener(type, this._interruptGlide);
|
|
42468
42721
|
}
|
|
42469
42722
|
/** Listen to scrolling again once our own has been still a little longer than
|
|
42470
42723
|
* the debounce above, so all its scroll events have been ignored. */
|
|
@@ -45200,6 +45453,7 @@ var sliderStyles = css`
|
|
|
45200
45453
|
--_slider-histogram-bar-corner-radius: var(--primitives-space-2);
|
|
45201
45454
|
--_slider-histogram-bar-height: 0;
|
|
45202
45455
|
--_slider-tooltip-offset: var(--primitives-space-8);
|
|
45456
|
+
--_slider-histogram-tooltip-offset: var(--primitives-space-4);
|
|
45203
45457
|
--_slider-tooltip-touch-offset: calc(var(--semantics-fingertip-size) / 2);
|
|
45204
45458
|
--_slider-tooltip-shift: 0px;
|
|
45205
45459
|
--_slider-tooltip-background-color: var(--semantics-tooltips-background-color);
|
|
@@ -45505,7 +45759,7 @@ var sliderStyles = css`
|
|
|
45505
45759
|
}
|
|
45506
45760
|
|
|
45507
45761
|
.slider__control.has-histogram .slider__tooltip {
|
|
45508
|
-
bottom: calc(50% + var(--_slider-track-height) / 2 + var(--_slider-histogram-track-gap) + var(--_slider-histogram-height) + var(--_slider-tooltip-offset));
|
|
45762
|
+
bottom: calc(50% + var(--_slider-track-height) / 2 + var(--_slider-histogram-track-gap) + var(--_slider-histogram-height) + var(--_slider-histogram-tooltip-offset));
|
|
45509
45763
|
}
|
|
45510
45764
|
|
|
45511
45765
|
.slider__tooltip--start {
|
|
@@ -59111,7 +59365,7 @@ async function loadDependencies() {
|
|
|
59111
59365
|
Promise.resolve().then(() => list_item_exports),
|
|
59112
59366
|
Promise.resolve().then(() => text_cell_exports),
|
|
59113
59367
|
Promise.resolve().then(() => icon_cell_exports),
|
|
59114
|
-
import("./icon-
|
|
59368
|
+
import("./icon-CrBk3W-t.js").then((n) => n.n)
|
|
59115
59369
|
]);
|
|
59116
59370
|
}
|
|
59117
59371
|
/** The rows of a level, read from its container: the global menu bar's items
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-gallery-status.d.ts","sourceRoot":"","sources":["../../../../src/components/content/icon/icon-gallery-status.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icon-gallery-status.d.ts","sourceRoot":"","sources":["../../../../src/components/content/icon/icon-gallery-status.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,SAAS,aAoCpB,CAAC;AAEH,eAAO,MAAM,aAAa,aAqBxB,CAAC"}
|