dap-design-system 0.44.10 → 0.45.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.d.ts +136 -6
- package/dist/components.js +5261 -4975
- package/dist/components.js.map +1 -1
- package/dist/dark.theme.css +2 -2
- package/dist/dds.d.ts +136 -6
- package/dist/dds.js +127 -125
- package/dist/high-contrast.theme.css +2 -2
- package/dist/light.theme.css +2 -2
- package/dist/manifest/types/vue/index.d.ts +378 -308
- package/dist/manifest/vscode.html-custom-data.json +340 -266
- package/dist/manifest/web-types.json +1160 -986
- package/dist/react-types.ts +9 -8
- package/dist/react.d.ts +189 -7
- package/dist/react.js +673 -661
- package/dist/react.js.map +1 -1
- package/dist/variables/variables-dark.css +2 -1
- package/dist/variables/variables-high-contrast.css +2 -1
- package/dist/variables/variables-light.css +2 -1
- package/package.json +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ColumnDef } from '@tanstack/lit-table';
|
|
|
2
2
|
import { CSSResult } from 'lit';
|
|
3
3
|
import { Dayjs } from 'dayjs';
|
|
4
4
|
import { default as default_2 } from 'dayjs';
|
|
5
|
+
import { default as i18next } from 'i18next';
|
|
5
6
|
import { LitElement } from 'lit';
|
|
6
7
|
import { nothing } from 'lit';
|
|
7
8
|
import { PaginationState } from '@tanstack/lit-table';
|
|
@@ -1234,7 +1235,7 @@ export declare class DapDSCalendar extends DdsElement {
|
|
|
1234
1235
|
*/
|
|
1235
1236
|
disabledDate: (date: Dayjs) => boolean;
|
|
1236
1237
|
/** The locale of the calendar.
|
|
1237
|
-
* @type {
|
|
1238
|
+
* @type {'hu' | 'en' | 'de'}
|
|
1238
1239
|
* @default dayjs.locale()
|
|
1239
1240
|
*/
|
|
1240
1241
|
locale: string;
|
|
@@ -2687,7 +2688,7 @@ export declare class DapDSDatePicker extends GenericFormElement {
|
|
|
2687
2688
|
/** The floating strategy of the datepicker. */
|
|
2688
2689
|
floatingStrategy: FloatingStrategy;
|
|
2689
2690
|
/** The locale of the datepicker. By default it uses the global locale from dayjs. It is determined from the browser language.
|
|
2690
|
-
* @type {'hu' | 'en'}
|
|
2691
|
+
* @type {'hu' | 'en' | 'de'}
|
|
2691
2692
|
*/
|
|
2692
2693
|
locale: string;
|
|
2693
2694
|
/** Whether to hide dates from adjacent months (previous/next) in the calendar grid. When not explicitly set, defaults to `false` for single mode and `true` for range mode.
|
|
@@ -4272,17 +4273,32 @@ declare const DapDSOptionList_base: typeof DdsElement & {
|
|
|
4272
4273
|
* @element dap-ds-overlay
|
|
4273
4274
|
* @title - Overlay
|
|
4274
4275
|
*
|
|
4276
|
+
* @property {boolean} open - The open state of the overlay.
|
|
4277
|
+
*
|
|
4278
|
+
* @event {CustomEvent} dds-before-open - Fires before the overlay opens.
|
|
4279
|
+
* @event {CustomEvent} dds-opened - Fires after the overlay opens.
|
|
4280
|
+
* @event {CustomEvent} dds-before-close - Fires before the overlay closes.
|
|
4281
|
+
* @event {CustomEvent} dds-closed - Fires after the overlay closes.
|
|
4282
|
+
*
|
|
4283
|
+
* @slot - The content of the overlay.
|
|
4284
|
+
*
|
|
4275
4285
|
* @csspart overlay - The overlay element
|
|
4276
4286
|
*
|
|
4277
4287
|
* @cssproperty --dds-overlay-z-index - Controls the z-index of the overlay (default: 1)
|
|
4278
4288
|
* @cssproperty --dds-overlay-background-color - Controls the background color of the overlay (default: var(--dds-black-10))
|
|
4279
4289
|
* @cssproperty --dds-overlay-opacity-closed - Controls the opacity when overlay is closed (default: 0)
|
|
4280
4290
|
* @cssproperty --dds-overlay-opacity-open - Controls the opacity when overlay is open (default: 1)
|
|
4291
|
+
* @cssproperty --dds-overlay-transition-duration - Controls the transition duration (default: var(--dds-transition-fast))
|
|
4292
|
+
* @cssproperty --dds-overlay-transition-timing - Controls the transition timing function (default: var(--dds-easing-ease-in-out))
|
|
4281
4293
|
*/
|
|
4282
4294
|
export declare class DapDSOverlay extends DdsElement {
|
|
4283
4295
|
/** The open state of the overlay. */
|
|
4284
|
-
open
|
|
4296
|
+
open: boolean;
|
|
4285
4297
|
static readonly styles: CSSResult;
|
|
4298
|
+
connectedCallback(): void;
|
|
4299
|
+
protected updated(changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
4300
|
+
private handleOpen;
|
|
4301
|
+
private handleClose;
|
|
4286
4302
|
render(): TemplateResult_2<1>;
|
|
4287
4303
|
}
|
|
4288
4304
|
|
|
@@ -4358,10 +4374,10 @@ export declare class DapDSPager extends DdsElement {
|
|
|
4358
4374
|
nextButtonLabel: string;
|
|
4359
4375
|
/** The last button label. */
|
|
4360
4376
|
lastButtonLabel: string;
|
|
4361
|
-
/** The function to determine the pager text
|
|
4377
|
+
/** The function to determine the pager text. If not provided, uses default reactive translation.
|
|
4362
4378
|
* @type {Function}
|
|
4363
4379
|
*/
|
|
4364
|
-
pageStateText
|
|
4380
|
+
pageStateText?: (pageIndex: number, pageSize: number, totalRows: number) => unknown;
|
|
4365
4381
|
static readonly styles: CSSResult;
|
|
4366
4382
|
protected updated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
4367
4383
|
private updatePageIndex;
|
|
@@ -4481,6 +4497,109 @@ export declare class DapDSPopup extends PopupBaseElement {
|
|
|
4481
4497
|
render(): TemplateResult_2;
|
|
4482
4498
|
}
|
|
4483
4499
|
|
|
4500
|
+
/**
|
|
4501
|
+
* `dap-ds-progress`
|
|
4502
|
+
* @summary Progress indicator component with linear and circular variants.
|
|
4503
|
+
* @element dap-ds-progress
|
|
4504
|
+
* @title - Progress
|
|
4505
|
+
*
|
|
4506
|
+
* @csspart base - The main progress container.
|
|
4507
|
+
* @csspart track - The progress track (background).
|
|
4508
|
+
* @csspart fill - The progress fill (bar for linear, circle for circular).
|
|
4509
|
+
* @csspart label - The progress label text.
|
|
4510
|
+
* @csspart percentage - The percentage text (circular variant only).
|
|
4511
|
+
* @csspart background - The background circle (circular variant only).
|
|
4512
|
+
*
|
|
4513
|
+
* @slot label - Custom label content for the progress indicator.
|
|
4514
|
+
*
|
|
4515
|
+
* @cssprop --dds-progress-track-color - Background color of the progress track. Default is var(--dds-neutral-200).
|
|
4516
|
+
* @cssprop --dds-progress-fill-color-neutral - Fill color for neutral variant. Default is var(--dds-icon-neutral-base).
|
|
4517
|
+
* @cssprop --dds-progress-fill-color-brand - Fill color for brand variant. Default is var(--dds-icon-brand-subtle).
|
|
4518
|
+
* @cssprop --dds-progress-fill-color-negative - Fill color for negative variant. Default is var(--dds-icon-negative-subtle).
|
|
4519
|
+
* @cssprop --dds-progress-fill-color-positive - Fill color for positive variant. Default is var(--dds-icon-positive-subtle).
|
|
4520
|
+
* @cssprop --dds-progress-fill-color-inverted - Fill color for inverted variant. Default is var(--dds-icon-neutral-inverted).
|
|
4521
|
+
* @cssprop --dds-progress-height-xs - Height for extra small linear progress. Default is var(--dds-spacing-50).
|
|
4522
|
+
* @cssprop --dds-progress-height-sm - Height for small linear progress. Default is var(--dds-spacing-100).
|
|
4523
|
+
* @cssprop --dds-progress-height-md - Height for medium linear progress. Default is var(--dds-spacing-150).
|
|
4524
|
+
* @cssprop --dds-progress-height-lg - Height for large linear progress. Default is var(--dds-spacing-200).
|
|
4525
|
+
* @cssprop --dds-progress-height-xl - Height for extra large linear progress. Default is var(--dds-spacing-300).
|
|
4526
|
+
* @cssprop --dds-progress-height-xxl - Height for extra extra large linear progress. Default is var(--dds-spacing-400).
|
|
4527
|
+
* @cssprop --dds-progress-diameter-xs - Diameter for extra small circular progress. Default is var(--dds-spacing-600).
|
|
4528
|
+
* @cssprop --dds-progress-diameter-sm - Diameter for small circular progress. Default is var(--dds-spacing-800).
|
|
4529
|
+
* @cssprop --dds-progress-diameter-md - Diameter for medium circular progress. Default is var(--dds-spacing-1200).
|
|
4530
|
+
* @cssprop --dds-progress-diameter-lg - Diameter for large circular progress. Default is var(--dds-spacing-1600).
|
|
4531
|
+
* @cssprop --dds-progress-diameter-xl - Diameter for extra large circular progress. Default is var(--dds-spacing-2000).
|
|
4532
|
+
* @cssprop --dds-progress-diameter-xxl - Diameter for extra extra large circular progress. Default is var(--dds-spacing-2400).
|
|
4533
|
+
* @cssprop --dds-progress-stroke-width - Stroke width for circular progress. Default is var(--dds-spacing-200).
|
|
4534
|
+
* @cssprop --dds-progress-animation-duration - Duration of indeterminate animation. Default is 1.5s.
|
|
4535
|
+
*
|
|
4536
|
+
*/
|
|
4537
|
+
export declare class DapDSProgress extends DdsElement {
|
|
4538
|
+
/**
|
|
4539
|
+
* The variant of the progress indicator.
|
|
4540
|
+
* @type {"linear" | "circular"}
|
|
4541
|
+
*/
|
|
4542
|
+
variant: ProgressVariant;
|
|
4543
|
+
/**
|
|
4544
|
+
* The color variant of the progress indicator.
|
|
4545
|
+
* @type {"neutral" | "brand" | "negative" | "positive" | "inverted"}
|
|
4546
|
+
*/
|
|
4547
|
+
color: ProgressColor;
|
|
4548
|
+
/**
|
|
4549
|
+
* The size of the progress indicator.
|
|
4550
|
+
* @type {"xxl" | "xl" | "lg" | "md" | "sm" | "xs"}
|
|
4551
|
+
*/
|
|
4552
|
+
size: IconSize;
|
|
4553
|
+
/**
|
|
4554
|
+
* Current progress value (0-100 for percentage, or 0-max).
|
|
4555
|
+
*/
|
|
4556
|
+
value?: number;
|
|
4557
|
+
/**
|
|
4558
|
+
* Maximum value for the progress indicator.
|
|
4559
|
+
*/
|
|
4560
|
+
max: number;
|
|
4561
|
+
/**
|
|
4562
|
+
* Whether to show the progress as indeterminate (loading animation).
|
|
4563
|
+
*/
|
|
4564
|
+
indeterminate: boolean;
|
|
4565
|
+
/**
|
|
4566
|
+
* Whether to show percentage text in the center (circular variant only).
|
|
4567
|
+
*/
|
|
4568
|
+
showPercentage: boolean;
|
|
4569
|
+
/**
|
|
4570
|
+
* Label text for the progress indicator.
|
|
4571
|
+
*/
|
|
4572
|
+
label?: string;
|
|
4573
|
+
/**
|
|
4574
|
+
* The aria-live politeness level for screen readers.
|
|
4575
|
+
* @type {"polite" | "assertive" | "off"}
|
|
4576
|
+
*/
|
|
4577
|
+
ariaLive: 'polite' | 'assertive' | 'off';
|
|
4578
|
+
static readonly styles: CSSResult;
|
|
4579
|
+
/**
|
|
4580
|
+
* Calculate the percentage value (0-100).
|
|
4581
|
+
*/
|
|
4582
|
+
private get percentage();
|
|
4583
|
+
/**
|
|
4584
|
+
* Calculate the stroke-dashoffset for circular progress.
|
|
4585
|
+
* Circle circumference = 2πr where r = 45 (radius of circle with center at 50,50 in viewBox 0 0 100 100)
|
|
4586
|
+
*/
|
|
4587
|
+
private get circleOffset();
|
|
4588
|
+
/**
|
|
4589
|
+
* Get the accessible label for the progress indicator.
|
|
4590
|
+
*/
|
|
4591
|
+
private get accessibleLabel();
|
|
4592
|
+
/**
|
|
4593
|
+
* Render the linear progress variant.
|
|
4594
|
+
*/
|
|
4595
|
+
private renderLinear;
|
|
4596
|
+
/**
|
|
4597
|
+
* Render the circular progress variant.
|
|
4598
|
+
*/
|
|
4599
|
+
private renderCircular;
|
|
4600
|
+
render(): TemplateResult_2<1>;
|
|
4601
|
+
}
|
|
4602
|
+
|
|
4484
4603
|
/**
|
|
4485
4604
|
* `dap-ds-radio-button`
|
|
4486
4605
|
* @summary A radio button is a graphical control element that allows the user to choose only one of a predefined set of mutually exclusive options.
|
|
@@ -4964,6 +5083,9 @@ export declare class DapDSSelect extends GenericFormElement {
|
|
|
4964
5083
|
*/
|
|
4965
5084
|
selectedItem: any;
|
|
4966
5085
|
static readonly styles: CSSResult;
|
|
5086
|
+
private languageChangeHandler;
|
|
5087
|
+
connectedCallback(): void;
|
|
5088
|
+
disconnectedCallback(): void;
|
|
4967
5089
|
/**
|
|
4968
5090
|
* Lifecycle method to handle property changes
|
|
4969
5091
|
*/
|
|
@@ -4980,6 +5102,8 @@ export declare class DapDSSelect extends GenericFormElement {
|
|
|
4980
5102
|
get focusElement(): HTMLButtonElement;
|
|
4981
5103
|
get validity(): ValidityState;
|
|
4982
5104
|
get validationMessage(): string;
|
|
5105
|
+
/** Get the current display text for the selected item, dynamically fetching from the option */
|
|
5106
|
+
get selectedDisplayText(): string | null;
|
|
4983
5107
|
checkValidity(): boolean;
|
|
4984
5108
|
reportValidity(): boolean;
|
|
4985
5109
|
setValidity(): void;
|
|
@@ -6072,7 +6196,7 @@ export declare class DapDSTimePicker extends GenericFormElement {
|
|
|
6072
6196
|
/** The floating strategy of the timepicker. */
|
|
6073
6197
|
floatingStrategy: FloatingStrategy;
|
|
6074
6198
|
/** The locale of the timepicker. By default it uses the global locale from dayjs.
|
|
6075
|
-
* @type {'hu' | 'en'}
|
|
6199
|
+
* @type {'hu' | 'en' | 'de'}
|
|
6076
6200
|
*/
|
|
6077
6201
|
locale: string;
|
|
6078
6202
|
/** Whether the dropdown should close when a time is selected. */
|
|
@@ -6831,6 +6955,8 @@ export declare class HttpError extends Error {
|
|
|
6831
6955
|
constructor(message: string, response: any, status: number);
|
|
6832
6956
|
}
|
|
6833
6957
|
|
|
6958
|
+
export { i18next }
|
|
6959
|
+
|
|
6834
6960
|
declare type IconSize = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
6835
6961
|
|
|
6836
6962
|
declare class InputBaseElement extends GenericFormElement {
|
|
@@ -7060,6 +7186,10 @@ export declare type PopupPlacement = 'top' | 'top-start' | 'top-end' | 'right' |
|
|
|
7060
7186
|
|
|
7061
7187
|
export declare type PopupTrigger = 'click' | 'hover' | 'focus' | 'manual' | 'hover focus';
|
|
7062
7188
|
|
|
7189
|
+
declare type ProgressColor = 'neutral' | 'brand' | 'negative' | 'positive' | 'inverted';
|
|
7190
|
+
|
|
7191
|
+
declare type ProgressVariant = 'linear' | 'circular';
|
|
7192
|
+
|
|
7063
7193
|
export { Row }
|
|
7064
7194
|
|
|
7065
7195
|
export { RowData }
|