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.
- package/dist/components/datepicker/datepicker.component.d.ts +7 -0
- package/dist/{components-B4VmOYHn.js → components-Djmnk-Pt.js} +484 -449
- package/dist/components-Djmnk-Pt.js.map +1 -0
- package/dist/components.js +1 -1
- package/dist/dds.js +1 -1
- package/dist/manifest/types/vue/index.d.ts +194 -192
- package/dist/manifest/vscode.html-custom-data.json +202 -197
- package/dist/manifest/web-types.json +367 -357
- package/dist/react/index.d.ts +8 -8
- package/dist/react-types.ts +8 -8
- package/dist/react.js +146 -146
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/dist/components-B4VmOYHn.js.map +0 -1
|
@@ -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;
|