dap-design-system 0.53.21 → 0.54.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/common/types.d.ts +1 -0
- package/dist/components/icons/system/system-zoom-in-line/system-zoom-in-line.component.d.ts +30 -0
- package/dist/components/icons/system/system-zoom-in-line/system-zoom-in-line.d.ts +8 -0
- package/dist/components/icons/system/system-zoom-out-line/system-zoom-out-line.component.d.ts +30 -0
- package/dist/components/icons/system/system-zoom-out-line/system-zoom-out-line.d.ts +8 -0
- package/dist/components/image-zoom/image-zoom.component.d.ts +78 -0
- package/dist/{components-Dz0ahnZp.js → components-DA73YE3_.js} +5634 -5428
- package/dist/components-DA73YE3_.js.map +1 -0
- package/dist/components.d.ts +1 -0
- package/dist/components.js +56 -55
- package/dist/dap-design-system.d.ts +3 -0
- package/dist/dds.js +320 -215
- package/dist/dds.js.map +1 -1
- package/dist/events/dds-change.d.ts +1 -59
- package/dist/events/dds-unzoom.d.ts +6 -0
- package/dist/events/dds-zoom.d.ts +6 -0
- package/dist/events/events.d.ts +2 -0
- package/dist/icons.js +1 -2
- package/dist/icons.js.map +1 -1
- package/dist/manifest/types/vue/index.d.ts +729 -635
- package/dist/manifest/vscode.html-custom-data.json +660 -539
- package/dist/manifest/web-types.json +1599 -1362
- package/dist/react/dap-ds-icon-zoom-in-line/index.d.ts +18 -0
- package/dist/react/dap-ds-icon-zoom-out-line/index.d.ts +18 -0
- package/dist/react/dap-ds-image-zoom/index.d.ts +42 -0
- package/dist/react/index.d.ts +24 -21
- package/dist/react-types.ts +26 -23
- package/dist/react.js +729 -705
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/dist/components-Dz0ahnZp.js.map +0 -1
package/dist/common/types.d.ts
CHANGED
|
@@ -90,3 +90,4 @@ export interface TimePreset {
|
|
|
90
90
|
export type CloseSource = 'cancel-button' | 'close-button' | 'esc' | 'ok-button' | 'overlay';
|
|
91
91
|
export type AccordionVariant = 'default' | 'collapsed' | 'clean' | 'clean-collapsed';
|
|
92
92
|
export type TabNavigationMode = 'group' | 'items';
|
|
93
|
+
export type DialogState = 'closed' | 'opening' | 'open' | 'closing';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropertyValueMap } from 'lit';
|
|
2
|
+
import { DdsElement } from '../../../../internal/dds-hu-element';
|
|
3
|
+
/**
|
|
4
|
+
* `dap-ds-icon-zoom-in-line`
|
|
5
|
+
* @summary An icon
|
|
6
|
+
* @element dap-ds-icon-zoom-in-line
|
|
7
|
+
* @title - SystemZoomInLine
|
|
8
|
+
* @group icon
|
|
9
|
+
* @icontype system
|
|
10
|
+
*
|
|
11
|
+
* @attribute {number} size - (optional) The width and height in pixels
|
|
12
|
+
* @attribute {boolean} selected - (optional) Sets the icon color via the `fill` attribute
|
|
13
|
+
* @attribute {string} accessibilityTitle - (optional) When using the icon standalone, make it meaningful for accessibility
|
|
14
|
+
* @attribute {boolean} focusable - (optional) If `true` the icon can receive focus
|
|
15
|
+
*
|
|
16
|
+
* @csspart base - The main icon container.
|
|
17
|
+
*/
|
|
18
|
+
export default class SystemZoomInLine extends DdsElement {
|
|
19
|
+
/** (optional) The width and height in pixels */
|
|
20
|
+
size?: number | undefined;
|
|
21
|
+
/** (optional) Sets the icon color via the `fill` attribute */
|
|
22
|
+
selected?: boolean;
|
|
23
|
+
/** (optional) When using the icon standalone, make it meaningful for accessibility */
|
|
24
|
+
accessibilityTitle?: string;
|
|
25
|
+
/** (optional) If `true` the icon can receive focus */
|
|
26
|
+
focusable?: boolean;
|
|
27
|
+
static readonly styles: import('lit').CSSResult;
|
|
28
|
+
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
29
|
+
render(): import('lit-html').TemplateResult;
|
|
30
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as SystemZoomInLine } from './system-zoom-in-line.component.js';
|
|
2
|
+
export * from './system-zoom-in-line.component.js';
|
|
3
|
+
export default SystemZoomInLine;
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'dap-ds-icon-zoom-in-line': SystemZoomInLine;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropertyValueMap } from 'lit';
|
|
2
|
+
import { DdsElement } from '../../../../internal/dds-hu-element';
|
|
3
|
+
/**
|
|
4
|
+
* `dap-ds-icon-zoom-out-line`
|
|
5
|
+
* @summary An icon
|
|
6
|
+
* @element dap-ds-icon-zoom-out-line
|
|
7
|
+
* @title - SystemZoomOutLine
|
|
8
|
+
* @group icon
|
|
9
|
+
* @icontype system
|
|
10
|
+
*
|
|
11
|
+
* @attribute {number} size - (optional) The width and height in pixels
|
|
12
|
+
* @attribute {boolean} selected - (optional) Sets the icon color via the `fill` attribute
|
|
13
|
+
* @attribute {string} accessibilityTitle - (optional) When using the icon standalone, make it meaningful for accessibility
|
|
14
|
+
* @attribute {boolean} focusable - (optional) If `true` the icon can receive focus
|
|
15
|
+
*
|
|
16
|
+
* @csspart base - The main icon container.
|
|
17
|
+
*/
|
|
18
|
+
export default class SystemZoomOutLine extends DdsElement {
|
|
19
|
+
/** (optional) The width and height in pixels */
|
|
20
|
+
size?: number | undefined;
|
|
21
|
+
/** (optional) Sets the icon color via the `fill` attribute */
|
|
22
|
+
selected?: boolean;
|
|
23
|
+
/** (optional) When using the icon standalone, make it meaningful for accessibility */
|
|
24
|
+
accessibilityTitle?: string;
|
|
25
|
+
/** (optional) If `true` the icon can receive focus */
|
|
26
|
+
focusable?: boolean;
|
|
27
|
+
static readonly styles: import('lit').CSSResult;
|
|
28
|
+
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
29
|
+
render(): import('lit-html').TemplateResult;
|
|
30
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as SystemZoomOutLine } from './system-zoom-out-line.component.js';
|
|
2
|
+
export * from './system-zoom-out-line.component.js';
|
|
3
|
+
export default SystemZoomOutLine;
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'dap-ds-icon-zoom-out-line': SystemZoomOutLine;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { PropertyValueMap } from 'lit';
|
|
2
|
+
import { DdsElement } from '../../internal/dds-hu-element';
|
|
3
|
+
/**
|
|
4
|
+
* `dap-ds-image-zoom`
|
|
5
|
+
* @summary An image zoom component that provides a Medium.com-style zoom experience. Click an image to expand it to fill the viewport with a smooth animation.
|
|
6
|
+
* @element dap-ds-image-zoom
|
|
7
|
+
* @title - Image Zoom
|
|
8
|
+
*
|
|
9
|
+
* @property {boolean} open - The open/zoomed state. Can be used for controlled mode.
|
|
10
|
+
* @property {boolean} isDisabled - Disables zoom functionality.
|
|
11
|
+
* @property {number} zoomMargin - Margin in pixels from viewport edges when zoomed. Default is 0.
|
|
12
|
+
* @property {string} expandButtonAriaLabel - Accessible label for the zoom trigger. Default is 'Expand image'.
|
|
13
|
+
* @property {string} unzoomButtonAriaLabel - Accessible label for the unzoom button. Default is 'Minimize image'.
|
|
14
|
+
* @property {boolean} hideButtons - Hides the expand and unzoom buttons. Default is false.
|
|
15
|
+
* @property {boolean} canSwipeToUnzoom - Enables swipe gesture to close when zoomed. Default is true.
|
|
16
|
+
* @property {number} swipeToUnzoomThreshold - Swipe distance in pixels required to trigger unzoom. Default is 10.
|
|
17
|
+
* @property {string} zoomSrc - URL of a higher quality image to display when zoomed. Falls back to the slotted image src.
|
|
18
|
+
*
|
|
19
|
+
* @event {CustomEvent} dds-zoom - Fires when the image is about to zoom. Cancelable via event.preventDefault().
|
|
20
|
+
* @event {CustomEvent} dds-unzoom - Fires after the image has unzoomed.
|
|
21
|
+
*
|
|
22
|
+
* @slot - The image or content element to zoom. Should contain an <img> element.
|
|
23
|
+
*
|
|
24
|
+
* @csspart trigger - The zoom trigger wrapper element.
|
|
25
|
+
* @csspart dialog - The zoom dialog element.
|
|
26
|
+
* @csspart overlay - The backdrop overlay element.
|
|
27
|
+
* @csspart zoomed-image - The zoomed image element.
|
|
28
|
+
* @csspart unzoom-button - The button to close the zoomed view.
|
|
29
|
+
* @csspart expand-button - The button to expand the image.
|
|
30
|
+
*
|
|
31
|
+
* @cssproperty --dds-image-zoom-overlay-bg - Overlay background color (default: rgba(0, 0, 0, 0.8)).
|
|
32
|
+
* @cssproperty --dds-image-zoom-transition-speed - Animation duration (default: 300ms).
|
|
33
|
+
* @cssproperty --dds-image-zoom-transition-timing - Animation timing function (default: var(--dds-easing-ease-in-out, ease-in-out)).
|
|
34
|
+
*/
|
|
35
|
+
export default class DapDSImageZoom extends DdsElement {
|
|
36
|
+
static readonly styles: import('lit').CSSResult;
|
|
37
|
+
private _dialog;
|
|
38
|
+
/** The open/zoomed state. */
|
|
39
|
+
open: boolean;
|
|
40
|
+
/** Disables zoom functionality. */
|
|
41
|
+
isDisabled: boolean;
|
|
42
|
+
/** Margin in pixels from viewport edges when zoomed. */
|
|
43
|
+
zoomMargin: number;
|
|
44
|
+
/** Accessible label for the zoom trigger. */
|
|
45
|
+
expandButtonAriaLabel: string | null;
|
|
46
|
+
/** Accessible label for the unzoom button. */
|
|
47
|
+
unzoomButtonAriaLabel: string | null;
|
|
48
|
+
/** Enable swipe down gesture to close when zoomed. */
|
|
49
|
+
canSwipeToUnzoom: boolean;
|
|
50
|
+
/** Distance in pixels a swipe must travel to trigger unzoom. */
|
|
51
|
+
swipeToUnzoomThreshold: number;
|
|
52
|
+
/** URL of a higher quality image to display when zoomed. Falls back to slotted image src. */
|
|
53
|
+
zoomSrc?: string;
|
|
54
|
+
/** Hides the expand and unzoom buttons. Useful when the host UI provides its own controls. */
|
|
55
|
+
hideButtons: boolean;
|
|
56
|
+
private _dialogState;
|
|
57
|
+
private _slottedImgSrc;
|
|
58
|
+
private _slottedImgAlt;
|
|
59
|
+
private _touchStartY;
|
|
60
|
+
private _closeTimeout?;
|
|
61
|
+
private _previouslyFocusedElement;
|
|
62
|
+
disconnectedCallback(): void;
|
|
63
|
+
protected updated(changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
64
|
+
private _setDialogState;
|
|
65
|
+
private _handleSlotChange;
|
|
66
|
+
private _openDialog;
|
|
67
|
+
private _animateClose;
|
|
68
|
+
/** Programmatically zoom the image. */
|
|
69
|
+
zoom(): void;
|
|
70
|
+
/** Programmatically unzoom the image. */
|
|
71
|
+
unzoom(): void;
|
|
72
|
+
private _handleTriggerClick;
|
|
73
|
+
private _handleTriggerKeydown;
|
|
74
|
+
private _handleDialogCancel;
|
|
75
|
+
private _handleTouchStart;
|
|
76
|
+
private _handleTouchEnd;
|
|
77
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
78
|
+
}
|