dap-design-system 0.54.8 → 0.55.1

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.
@@ -144,6 +144,8 @@ export default class DapDSDatePicker extends GenericFormElement {
144
144
  placeholder: string | null;
145
145
  /** The loading state of the datepicker. */
146
146
  loading?: boolean;
147
+ /** Whether to enable input masking. When active, only digit characters are accepted and format separators are auto-inserted after each complete digit group. Only works in single mode with a single configured format. */
148
+ mask: boolean;
147
149
  /** The format of the datepicker. This is a comma separated list of [formats](https://day.js.org/docs/en/display/format). */
148
150
  format?: string;
149
151
  /** The format separator character in the format attribute. */
@@ -166,6 +168,7 @@ export default class DapDSDatePicker extends GenericFormElement {
166
168
  hideAdjacentMonths?: boolean;
167
169
  private formatOptions;
168
170
  private setValueState;
171
+ private lastMaskDigitCount;
169
172
  static readonly styles: import('lit').CSSResult;
170
173
  constructor();
171
174
  /**
@@ -181,6 +184,10 @@ export default class DapDSDatePicker extends GenericFormElement {
181
184
  isInputValid(): boolean;
182
185
  setValue(value?: Dayjs, setInputValue?: boolean, sendEmptyEventOnInput?: boolean): void;
183
186
  clearSelection(): Promise<void>;
187
+ private isMaskActive;
188
+ private getActiveMaskFormat;
189
+ private parseMaskTokens;
190
+ private buildMaskedValue;
184
191
  private readonly handleDocumentMouseDown;
185
192
  private readonly handlePopupAutoClose;
186
193
  private readonly handleInput;