dap-design-system 0.10.6 → 0.11.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/dist/dds.d.ts +156 -6
- package/dist/dds.js +4423 -3981
- package/dist/dds.js.map +1 -1
- package/dist/manifest/types/vue/index.d.ts +380 -224
- package/dist/manifest/vscode.html-custom-data.json +394 -182
- package/dist/manifest/web-types.json +724 -404
- package/dist/react.d.ts +241 -10
- package/dist/react.js +400 -385
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/dds.d.ts
CHANGED
|
@@ -516,6 +516,37 @@ export declare class BuildingsHome6Line extends DdsElement {
|
|
|
516
516
|
render(): TemplateResult_2;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
+
/**
|
|
520
|
+
* `dap-ds-icon-calendar-line`
|
|
521
|
+
* @summary An icon
|
|
522
|
+
* @element dap-ds-icon-calendar-line
|
|
523
|
+
* @title - BusinessCalendarLine
|
|
524
|
+
* @group icon
|
|
525
|
+
* @icontype business
|
|
526
|
+
*
|
|
527
|
+
* @attribute {number} size - (optional) The width and height in pixels
|
|
528
|
+
* @attribute {boolean} selected - (optional) Sets the icon color via the `fill` attribute
|
|
529
|
+
* @attribute {boolean} decorative - (optional) If `true` the SVG element will get `aria-hidden="true"`
|
|
530
|
+
* @attribute {string} accessibilityTitle - (optional) When using the icon standalone, make it meaningful for accessibility
|
|
531
|
+
* @attribute {boolean} focusable - (optional) If `true` the icon can receive focus
|
|
532
|
+
*
|
|
533
|
+
* @csspart base - The main icon container.
|
|
534
|
+
*/
|
|
535
|
+
export declare class BusinessCalendarLine extends DdsElement {
|
|
536
|
+
/** (optional) The width and height in pixels */
|
|
537
|
+
size?: number | undefined;
|
|
538
|
+
/** (optional) Sets the icon color via the `fill` attribute */
|
|
539
|
+
selected?: boolean;
|
|
540
|
+
/** (optional) If `true` the SVG element will get `aria-hidden="true"` */
|
|
541
|
+
decorative?: boolean;
|
|
542
|
+
/** (optional) When using the icon standalone, make it meaningful for accessibility */
|
|
543
|
+
accessibilityTitle?: string;
|
|
544
|
+
/** (optional) If `true` the icon can receive focus */
|
|
545
|
+
focusable?: boolean;
|
|
546
|
+
static styles: CSSResult;
|
|
547
|
+
render(): TemplateResult_2;
|
|
548
|
+
}
|
|
549
|
+
|
|
519
550
|
declare type ButtonShape = 'button' | 'circle';
|
|
520
551
|
|
|
521
552
|
declare type ButtonSize = Extract<Size, 'lg' | 'md' | 'sm'>;
|
|
@@ -873,7 +904,7 @@ export declare class DapDSButton extends GenericFormElement {
|
|
|
873
904
|
*/
|
|
874
905
|
export declare class DapDSCalendar extends DdsElement {
|
|
875
906
|
cells: NodeListOf<DapDSCalendarCell>;
|
|
876
|
-
value
|
|
907
|
+
value?: Dayjs;
|
|
877
908
|
currentDate: default_2.Dayjs;
|
|
878
909
|
minDate: default_2.Dayjs;
|
|
879
910
|
maxDate: default_2.Dayjs;
|
|
@@ -885,7 +916,7 @@ export declare class DapDSCalendar extends DdsElement {
|
|
|
885
916
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
886
917
|
protected updated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
887
918
|
updateLocale: () => void;
|
|
888
|
-
setValue(value
|
|
919
|
+
setValue(value?: Dayjs, setFocus?: boolean): void;
|
|
889
920
|
getWeeksInMonth: (date: Dayjs) => number;
|
|
890
921
|
isOutOfRange(currentDate: Dayjs, date: Dayjs): boolean;
|
|
891
922
|
isToday(date: Dayjs): boolean;
|
|
@@ -903,10 +934,12 @@ export declare class DapDSCalendar extends DdsElement {
|
|
|
903
934
|
getCellByDate(date: Dayjs): DapDSCalendarCell | undefined;
|
|
904
935
|
handleKeyDown(event: KeyboardEvent): void;
|
|
905
936
|
setCurrentCell(cell: DapDSCalendarCell, setFocus?: boolean): void;
|
|
937
|
+
setFocusToCurrentCell(): void;
|
|
906
938
|
setToFirstDayOfMonth(): void;
|
|
907
939
|
setToToday(): void;
|
|
908
940
|
setToFirstAllowedDayOfMonth(currentDate?: default_2.Dayjs): void;
|
|
909
941
|
focusNextCell(element: DapDSCalendarCell, offset: number): void;
|
|
942
|
+
captureFocus(): void;
|
|
910
943
|
renderCalendarGridHeader(): TemplateResult_2;
|
|
911
944
|
renderCalendarGridBody(date: Dayjs): TemplateResult_2;
|
|
912
945
|
renderCalendarHeader(): TemplateResult_2;
|
|
@@ -1236,6 +1269,12 @@ export declare class DapDSCheckbox extends LabelPositionedFormElement {
|
|
|
1236
1269
|
* @attribute {'error' | 'warning' | 'info'} feedbackType - The feedback type of the select.
|
|
1237
1270
|
* @attribute {'none' | 'typehead' | 'autocomplete' | 'manual'} searchMode - The search mode of the select.
|
|
1238
1271
|
* @attribute {boolean} openOnEmpty - Whether the combobox should open on empty results.
|
|
1272
|
+
* @attribute {boolean} allowManualInput - Whether the combobox allows manual input, or free text.
|
|
1273
|
+
* @attribute {boolean} searchForText - Whether the combobox should search for the selected item text.
|
|
1274
|
+
* @attribute {boolean} noTextComplete - Whether the combobox should not complete the text.
|
|
1275
|
+
* @attribute {string} searchButtonAriaLabel - The aria label of the search button.
|
|
1276
|
+
* @attribute {boolean} selectable - Show the selected item check mark in the dropdown.
|
|
1277
|
+
* @attribute {boolean} noAnimation - Whether the combobox open indicator should be animated.
|
|
1239
1278
|
*
|
|
1240
1279
|
* @csspart base - The main select container.
|
|
1241
1280
|
* @csspart trigger - The trigger button of the select.
|
|
@@ -1307,10 +1346,93 @@ export declare class DapDSContentSwitcherItem extends DdsElement {
|
|
|
1307
1346
|
* @element dap-ds-datepicker
|
|
1308
1347
|
* @title - Datepicker
|
|
1309
1348
|
*
|
|
1349
|
+
* @attribute {Dayjs} value - The value of the datepicker.
|
|
1350
|
+
* @attribute {string} format - The format of the datepicker.
|
|
1351
|
+
* @attribute {Dayjs} currentDate - The current date of the datepicker.
|
|
1352
|
+
* @attribute {Dayjs} minDate - The minimum date of the datepicker.
|
|
1353
|
+
* @attribute {Dayjs} maxDate - The maximum date of the datepicker.
|
|
1354
|
+
* @attribute {Function} disabledDate - The disabled date of the datepicker.
|
|
1355
|
+
* @attribute {PopupPlacement} placement - The placement of the datepicker. Can be 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-start', 'bottom', 'bottom-end', 'left-start', 'left', or 'left-end'. Default is 'bottom-start'.
|
|
1356
|
+
* @attribute {boolean} opened - The open state of the datepicker.
|
|
1357
|
+
* @attribute {boolean} openCalendarOnInput - Wheter the calendar should open on typing.
|
|
1358
|
+
* @attribute {boolean} sendEmptyEventOnInput - Wheter the calendar should send an empty event on typing.
|
|
1359
|
+
* @attribute {string} placeholder - The placeholder of the datepicker.
|
|
1360
|
+
* @attribute {'sm' | 'lg'} size - The size of the datepicker. Default is 'md'.
|
|
1361
|
+
* @attribute {boolean} loading - The loading state of the datepicker.
|
|
1362
|
+
* @attribute {boolean} disabled - The disabled state of the datepicker.
|
|
1363
|
+
* @attribute {boolean} required - The required state of the datepicker.
|
|
1364
|
+
* @attribute {boolean} readonly - The readonly state of the datepicker.
|
|
1365
|
+
* @attribute {boolean} autofocus - The autofocus state of the datepicker.
|
|
1366
|
+
* @attribute {string} label - The label of the datepicker.
|
|
1367
|
+
* @attribute {string} description - The description of the datepicker.
|
|
1368
|
+
* @attribute {string} tooltip - The tooltip of the datepicker.
|
|
1369
|
+
* @attribute {string} feedback - The feedback of the datepicker.
|
|
1370
|
+
* @attribute {'error' | 'warning' | 'info'} feedbackType - The feedback type of the datepicker.
|
|
1371
|
+
* @attribute {boolean} optional - The optional state of the datepicker.
|
|
1372
|
+
* @attribute {string} optionalLabel - The optional label of the datepicker.
|
|
1373
|
+
* @attribute {boolean} subtle - The weight of the label. Default is `false`
|
|
1374
|
+
* @attribute {string} autocomplete - The autocomplete of the datepicker.
|
|
1375
|
+
* @attribute {boolean} autofocus - The autofocus of the datepicker.
|
|
1376
|
+
* @attribute {string} clearButton - Whether the clear button should be shown.
|
|
1377
|
+
*
|
|
1378
|
+
* @event dds-change - Fired when the datepicker value changes.
|
|
1379
|
+
* @event dds-input - Fired when the datepicker input value changes.
|
|
1380
|
+
* @event dds-valid-date - Fired when the datepicker input value is valid.
|
|
1381
|
+
* @event dds-invalid-date - Fired when the datepicker input value is invalid.
|
|
1382
|
+
* @event dds-clear - Fired when the datepicker is cleared.
|
|
1383
|
+
* @event dds-focus - Emitted when the datepicker gains focus.
|
|
1384
|
+
* @event dds-blur - Emitted when the datepicker loses focus.
|
|
1385
|
+
*
|
|
1386
|
+
* @csspart base - The main datepicker container.
|
|
1387
|
+
* @csspart calendar - The calendar of the datepicker.
|
|
1388
|
+
* @csspart trigger - The trigger button of the datepicker.
|
|
1389
|
+
* @csspart label - The label of the datepicker.
|
|
1390
|
+
* @csspart description - The description of the datepicker.
|
|
1391
|
+
* @csspart feedback - The feedback of the datepicker.
|
|
1392
|
+
* @csspart tooltip - The tooltip of the datepicker.
|
|
1393
|
+
* @csspart input - The input of the datepicker.
|
|
1394
|
+
* @csspart clear-button - The clear button of the datepicker.
|
|
1395
|
+
*
|
|
1310
1396
|
*/
|
|
1311
|
-
export declare class DapDSDatePicker extends
|
|
1312
|
-
|
|
1397
|
+
export declare class DapDSDatePicker extends GenericFormElement {
|
|
1398
|
+
triggerInput: HTMLInputElement;
|
|
1399
|
+
calendar: DapDSCalendar;
|
|
1400
|
+
value?: Dayjs;
|
|
1401
|
+
currentDate: default_2.Dayjs;
|
|
1402
|
+
minDate: default_2.Dayjs;
|
|
1403
|
+
maxDate: default_2.Dayjs;
|
|
1404
|
+
disabledDate: (date: Dayjs) => boolean;
|
|
1405
|
+
placement: PopupPlacement;
|
|
1406
|
+
opened: boolean;
|
|
1407
|
+
openCalendarOnInput: boolean;
|
|
1408
|
+
sendEmptyEventOnInput: boolean;
|
|
1409
|
+
placeholder: string | null;
|
|
1410
|
+
loading?: boolean;
|
|
1411
|
+
format?: string;
|
|
1412
|
+
clearButton?: string;
|
|
1313
1413
|
static styles: CSSResult;
|
|
1414
|
+
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
1415
|
+
protected updated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
1416
|
+
getFormattedValue(): string;
|
|
1417
|
+
isValueValid(): boolean;
|
|
1418
|
+
setValue(value?: Dayjs, setInputValue?: boolean, sendEmptyEventOnInput?: boolean): void;
|
|
1419
|
+
clearSelection(): Promise<void>;
|
|
1420
|
+
handleDocumentMouseDown: (event: MouseEvent) => void;
|
|
1421
|
+
handleInput: (event: InputEvent) => void;
|
|
1422
|
+
handleKeyDown: (event: KeyboardEvent) => Promise<void>;
|
|
1423
|
+
get focusElement(): void;
|
|
1424
|
+
handleClick: () => void;
|
|
1425
|
+
handleClearClick: () => void;
|
|
1426
|
+
showCalendar(): Promise<void>;
|
|
1427
|
+
hideCalendar(): Promise<void>;
|
|
1428
|
+
handleFocus: () => void;
|
|
1429
|
+
handleBlur: () => void;
|
|
1430
|
+
getValidity(): boolean;
|
|
1431
|
+
get validity(): ValidityState;
|
|
1432
|
+
checkValidity(): boolean;
|
|
1433
|
+
reportValidity(): boolean;
|
|
1434
|
+
setValidity(): void;
|
|
1435
|
+
handleInvalid(event: Event): void;
|
|
1314
1436
|
render(): TemplateResult_2;
|
|
1315
1437
|
}
|
|
1316
1438
|
|
|
@@ -2074,7 +2196,7 @@ export declare class DapDSPopup extends DdsElement {
|
|
|
2074
2196
|
floatingStrategy: 'absolute' | 'fixed';
|
|
2075
2197
|
offset: number;
|
|
2076
2198
|
sync?: boolean;
|
|
2077
|
-
maxHeight: number;
|
|
2199
|
+
maxHeight: number | 'auto';
|
|
2078
2200
|
hasArrow: boolean;
|
|
2079
2201
|
overflow: boolean;
|
|
2080
2202
|
connectedCallback(): Promise<void>;
|
|
@@ -2208,7 +2330,7 @@ export declare class DapDSRadioGroup extends GenericFormElement {
|
|
|
2208
2330
|
* @attribute {string} description - The description of the search.
|
|
2209
2331
|
* @attribute {string} tooltip - The tooltip of the search.
|
|
2210
2332
|
* @attribute {'sm' | 'lg'} size - The size of the search. Default is 'md'.
|
|
2211
|
-
* @attribute {'none' | 'typehead' | 'autocomplete' | 'manual'} searchMode - The search mode of the select.
|
|
2333
|
+
* @attribute {'none' | 'typehead' | 'autocomplete' | 'manual'} searchMode - The search mode of the select. Default is 'none'.
|
|
2212
2334
|
* @attribute {boolean} disabled - Whether the search is disabled.
|
|
2213
2335
|
* @attribute {boolean} required - Whether the search is required.
|
|
2214
2336
|
* @attribute {boolean} readonly - Whether the search is readonly.
|
|
@@ -2222,6 +2344,8 @@ export declare class DapDSRadioGroup extends GenericFormElement {
|
|
|
2222
2344
|
* @attribute {boolean} noTextComplete - Whether the search should not complete the text.
|
|
2223
2345
|
* @attribute {string} searchButtonAriaLabel - The aria label of the search button.
|
|
2224
2346
|
* @attribute {boolean} openOnEmpty - Whether the search should open on empty results.
|
|
2347
|
+
* @attribute {boolean} selectable - Show the selected item check mark in the dropdown. Default is false.
|
|
2348
|
+
* @attribute {boolean} noAnimation - Whether the search open indicator should be animated. Default is true.
|
|
2225
2349
|
*
|
|
2226
2350
|
* @csspart base - The main search container.
|
|
2227
2351
|
* @csspart trigger - The trigger button of the search.
|
|
@@ -2844,6 +2968,8 @@ export declare type DdsFocusEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
|
2844
2968
|
|
|
2845
2969
|
export declare type DdsInputEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
2846
2970
|
|
|
2971
|
+
export declare type DdsInvalidDateEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
2972
|
+
|
|
2847
2973
|
export declare type DdsKeydownEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
2848
2974
|
|
|
2849
2975
|
export declare type DdsOkEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
@@ -2870,6 +2996,8 @@ export declare type DdsUploadProgressEvent = CustomEvent<Record<PropertyKey, nev
|
|
|
2870
2996
|
|
|
2871
2997
|
export declare type DdsUploadStartEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
2872
2998
|
|
|
2999
|
+
export declare type DdsValidDateEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
3000
|
+
|
|
2873
3001
|
declare type DescriptionPlacement = Extract<Placement, 'top' | 'bottom'>;
|
|
2874
3002
|
|
|
2875
3003
|
declare type DescriptionProps = {
|
|
@@ -2975,6 +3103,7 @@ declare interface FormElementInterface {
|
|
|
2975
3103
|
validationMessage: string;
|
|
2976
3104
|
willValidate: boolean;
|
|
2977
3105
|
innerInput: HTMLElement;
|
|
3106
|
+
autocomplete: string;
|
|
2978
3107
|
setValidity(): void;
|
|
2979
3108
|
checkValidity(): boolean;
|
|
2980
3109
|
reportValidity(): boolean;
|
|
@@ -4251,6 +4380,13 @@ declare global {
|
|
|
4251
4380
|
}
|
|
4252
4381
|
|
|
4253
4382
|
|
|
4383
|
+
declare global {
|
|
4384
|
+
interface GlobalEventHandlersEventMap {
|
|
4385
|
+
'dds-invalid-date': DdsInvalidDateEvent;
|
|
4386
|
+
}
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4389
|
+
|
|
4254
4390
|
declare global {
|
|
4255
4391
|
interface GlobalEventHandlersEventMap {
|
|
4256
4392
|
'dds-keydown': DdsKeydownEvent;
|
|
@@ -4335,6 +4471,13 @@ declare global {
|
|
|
4335
4471
|
}
|
|
4336
4472
|
|
|
4337
4473
|
|
|
4474
|
+
declare global {
|
|
4475
|
+
interface GlobalEventHandlersEventMap {
|
|
4476
|
+
'dds-valid-date': DdsValidDateEvent;
|
|
4477
|
+
}
|
|
4478
|
+
}
|
|
4479
|
+
|
|
4480
|
+
|
|
4338
4481
|
declare global {
|
|
4339
4482
|
interface HTMLElementTagNameMap {
|
|
4340
4483
|
'dap-ds-accordion': DapDSAccordion;
|
|
@@ -4634,6 +4777,13 @@ declare global {
|
|
|
4634
4777
|
}
|
|
4635
4778
|
|
|
4636
4779
|
|
|
4780
|
+
declare global {
|
|
4781
|
+
interface HTMLElementTagNameMap {
|
|
4782
|
+
'dap-ds-icon-calendar-line': BusinessCalendarLine;
|
|
4783
|
+
}
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4786
|
+
|
|
4637
4787
|
declare global {
|
|
4638
4788
|
interface HTMLElementTagNameMap {
|
|
4639
4789
|
'dap-ds-icon-clipboard-line': DocumentClipboardLine;
|