@db-ux/v-core-components 5.5.0 → 5.6.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/CHANGELOG.md +47 -0
- package/agent/Icon.md +14 -13
- package/agent/LoadingIndicator.md +57 -0
- package/agent/_instructions.md +1 -0
- package/dist/components/control-panel-navigation-item-group/model.d.ts +25 -0
- package/dist/components/dialog/dialog.vue.d.ts +30 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/dialog/model.d.ts +36 -0
- package/dist/components/dialog-footer/dialog-footer.vue.d.ts +18 -0
- package/dist/components/dialog-footer/index.d.ts +1 -0
- package/dist/components/dialog-footer/model.d.ts +5 -0
- package/dist/components/dialog-header/dialog-header.vue.d.ts +26 -0
- package/dist/components/dialog-header/index.d.ts +1 -0
- package/dist/components/dialog-header/model.d.ts +10 -0
- package/dist/components/drawer/drawer.vue.d.ts +3 -0
- package/dist/components/drawer/model.d.ts +11 -9
- package/dist/components/drawer-header/model.d.ts +3 -2
- package/dist/components/loading-indicator/examples/_timeout.data.d.ts +6 -0
- package/dist/components/loading-indicator/index.d.ts +1 -0
- package/dist/components/loading-indicator/loading-indicator.vue.d.ts +41 -0
- package/dist/components/loading-indicator/model.d.ts +93 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/model.d.ts +117 -0
- package/dist/components/pagination/pagination.vue.d.ts +31 -0
- package/dist/components/pagination-item/index.d.ts +1 -0
- package/dist/components/pagination-item/model.d.ts +5 -0
- package/dist/components/pagination-item/pagination-item.vue.d.ts +14 -0
- package/dist/components/popover/popover.vue.d.ts +1 -1
- package/dist/components/tooltip/tooltip.vue.d.ts +1 -1
- package/dist/db-ux.es.js +2243 -1495
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/shared/constants.d.ts +4 -0
- package/dist/shared/model.d.ts +43 -4
- package/dist/utils/dialog/index.d.ts +77 -0
- package/dist/utils/dialog/ponyfill.d.ts +55 -0
- package/dist/utils/document-keydown-listener.d.ts +8 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# @db-ux/v-core-components
|
|
2
2
|
|
|
3
|
+
## 5.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(DBControlPanel): open drilldown with a transition instead of a clip-path - [see commit b4165ee](https://github.com/db-ux-design-system/core-web/commit/b4165ee83c5c8ae14bfd3b4755c48d8b99bae1a6):
|
|
8
|
+
- open the navigation drilldown with a transition instead of a `clip-path`
|
|
9
|
+
- pin the drilldown overlay to the scroll viewport so it is not shifted up by an existing scroll offset
|
|
10
|
+
- restore the flat-icon navigation indicator and the drilldown group icons
|
|
11
|
+
- recompute the navigation variant on viewport resize so it no longer sticks to popover after switching from drilldown
|
|
12
|
+
- reduce the navigation item and expand button gap to fix wrong icon spacing
|
|
13
|
+
- move `data-icon` / `data-show-icon` for a navigation item group from the group `<li>` to its expand button (CSS-only consumers who hand-write the markup have to move these attributes onto the `.db-control-panel-navigation-item-group-expand-button`)
|
|
14
|
+
- fix(DBPopover): a controlled `open` no longer freezes the page in Angular - [see commit 2f14f69](https://github.com/db-ux-design-system/core-web/commit/2f14f69919bd57853661e90edc8f36915974e306)
|
|
15
|
+
- fix(DBFooterMeta): remove double space before the copyright holder in Angular - [see commit bc83f12](https://github.com/db-ux-design-system/core-web/commit/bc83f1280911791ff8c4a7ab611589825109f332):
|
|
16
|
+
- The copyright sign and its non-breaking space were a text node next to the `copyright` interpolation. For Angular that generated `© {{copyright()}}`, and Angular does not collapse whitespace next to a ` `, so the Angular output rendered the line about 3px wider than React and Vue. Sign and space are now part of the interpolated expression, so every target renders the same text.
|
|
17
|
+
- docs(DBIcon): document that the icon is always decorative - [see commit 6d48a36](https://github.com/db-ux-design-system/core-web/commit/6d48a366bf7078e52e029e73103d686a36198bb8):
|
|
18
|
+
- The usage examples showed `<DBIcon icon="x_placeholder">Icon</DBIcon>`, which suggests the child text is rendered somewhere. It is not: the component renders `aria-hidden="true"` and `font-size: 0`, so `text` and children are hidden both visually and from the accessibility tree, and `role` / `aria-label` on the component have no effect either. The examples now show the icon without content, and a new accessibility page explains how to label an informative icon (named wrapper, the parent component's `icon` property, or the `data-icon` attribute).
|
|
19
|
+
- fix(DBShell): stop reserving an empty sub-navigation row on mobile - [see commit bc83f12](https://github.com/db-ux-design-system/core-web/commit/bc83f1280911791ff8c4a7ab611589825109f332):
|
|
20
|
+
- The mobile grid templates declared the `sub-navigation` row unconditionally, while the desktop templates guard it with `:has()`. Without a sub-navigation the empty row captured any unplaced child of `DBShell` -- a `DBFooter` added as a direct child was rendered between the control panel and the content instead of below it. The mobile templates now add the row only when a sub-navigation is present, matching desktop.
|
|
21
|
+
- Also documents the supported composition: a footer belongs in the `endSlot` of `DBShellContent`, not in `DBShell`.
|
|
22
|
+
- fix(DBShell): prevent logo position jump between expanded and collapsed state - [see commit 2fe98a8](https://github.com/db-ux-design-system/core-web/commit/2fe98a82a6a52f40f41593bd437945795f30a7b8)
|
|
23
|
+
- style(Dialog & Drawer): corrected the headlines `font-family` (regular, instead of heading) - [see commit 2938761](https://github.com/db-ux-design-system/core-web/commit/29387612c7834664dbd93102dc09141c021fa159)
|
|
24
|
+
|
|
25
|
+
## 5.6.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- feat(DBPagination): add controlled pagination component - [see commit 333d265](https://github.com/db-ux-design-system/core-web/commit/333d265974b64c159e68918d76565ef854f593b5)
|
|
30
|
+
- feat(DBDialog): add `DBDialog`, `DBDialogHeader` and `DBDialogFooter` - [see commit 477e716](https://github.com/db-ux-design-system/core-web/commit/477e71630bee91ab280462857a5921777a02e8fd):
|
|
31
|
+
- Based on the native `<dialog>` element, using its centring and top-layer behaviour. Supports `backdrop` (`strong`, `weak`, `none`) and `containerSize` (`small`, `medium`, `large`, `full`).
|
|
32
|
+
- Open/close declaratively via `open`, natively via Invoker Commands (`command`/`commandfor`) or `<form method="dialog">`; reports `onClose` and `onCancel`.
|
|
33
|
+
- `DBDialogHeader` provides the heading, `startSlot`/`endSlot` and the close button, and composes the dialog's `aria-labelledby` (appending its heading id, preserving a consumer value; a consumer `aria-label` still wins). `DBDialogFooter` holds the actions.
|
|
34
|
+
- Adjust the max inline size with `--db-dialog-max-width` and the viewport distance with `--db-dialog-viewport-inset`.
|
|
35
|
+
- feat(DBDrawer): new event props and renamed header content class - [see commit 477e716](https://github.com/db-ux-design-system/core-web/commit/477e71630bee91ab280462857a5921777a02e8fd):
|
|
36
|
+
- Adds the `onClick` and `onCancel` props to `DBDrawerProps` (matching `DBDialog`). They are composed with the internal ponyfill handlers, so a consumer callback fires and `onCancel` can veto a native close via `event.preventDefault()`.
|
|
37
|
+
- Renames the heading wrapper class `db-drawer-header-container` to `db-drawer-header-content` (same for `db-dialog-header-content`) and moves the start slot before it. Update selectors that target the old class.
|
|
38
|
+
- feat(DBLoadingIndicator): add component to handle spinners, progress-bars etc. - [see commit a0f37cf](https://github.com/db-ux-design-system/core-web/commit/a0f37cf3531b94ace8be6bd606a08de2d7ee5f35)
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- fix(DBDrawer): accessibility, dismissal and shared dialog layer - [see commit 477e716](https://github.com/db-ux-design-system/core-web/commit/477e71630bee91ab280462857a5921777a02e8fd):
|
|
43
|
+
- The header composes the drawer's `aria-labelledby` (appending its heading id, preserving a consumer value) instead of overwriting it; a consumer `aria-label` still wins.
|
|
44
|
+
- Non-modal drawers (`backdrop="none"`, `variant="inside"`, `position="absolute"`) now dismiss on Escape and backdrop click in browsers without `closedby` support (e.g. Firefox ESR) via the ponyfill.
|
|
45
|
+
- Generates the fallback `id` hydration-safely (via the framework `useId()`), re-syncing when the consumer `id` changes or is cleared, so the document never keeps a stale or duplicate id.
|
|
46
|
+
- `open={undefined}` no longer counts as "closed", so a natively opened drawer stays open until `open` is set explicitly.
|
|
47
|
+
- Now uses the shared dialog utils, style mixins and ponyfill module. Behaviour change: the header close button no longer calls `stopPropagation()`, so its click follows native bubbling like every other click in the drawer (identify it via `command="request-close"` on `event.target` if you relied on the old behaviour).
|
|
48
|
+
- Behaviour change: `onClose` now fires on the native `<dialog>` `close` event, so its argument is that `close` event rather than the originating `MouseEvent`/`KeyboardEvent`. The declared `DBDrawerProps["onClose"]` type still reflects the previous union. In the edge case of distinguishing Escape, backdrop and close-button dismissal via `event.key`/`event.type`/`event.target` inside `onClose`, read the initiating event from `onCancel` (Escape/cancel) or `onClick` (pointer) instead.
|
|
49
|
+
|
|
3
50
|
## 5.5.0
|
|
4
51
|
|
|
5
52
|
### Patch Changes
|
package/agent/Icon.md
CHANGED
|
@@ -5,19 +5,20 @@
|
|
|
5
5
|
```vue
|
|
6
6
|
<template>
|
|
7
7
|
<h1>DBIcon Documentation Examples</h1>
|
|
8
|
-
<h2>1.
|
|
9
|
-
<DBIcon
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
<DBIcon icon="
|
|
13
|
-
<
|
|
14
|
-
<DBIcon weight="
|
|
15
|
-
<
|
|
16
|
-
<DBIcon
|
|
17
|
-
<h2>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
<h2>1. Icon Variants</h2>
|
|
9
|
+
<DBIcon icon="user"></DBIcon>
|
|
10
|
+
<DBIcon icon="settings"></DBIcon>
|
|
11
|
+
<h2>2. Icon Weights</h2>
|
|
12
|
+
<DBIcon icon="user" weight="16"></DBIcon>
|
|
13
|
+
<DBIcon icon="user" weight="24"></DBIcon>
|
|
14
|
+
<DBIcon icon="user" weight="32"></DBIcon>
|
|
15
|
+
<h2>3. Custom Class</h2>
|
|
16
|
+
<DBIcon icon="user"></DBIcon>
|
|
17
|
+
<h2>
|
|
18
|
+
4. Informative icon: DBIcon always renders aria-hidden, so the accessible
|
|
19
|
+
name goes on a wrapper
|
|
20
|
+
</h2>
|
|
21
|
+
<span role="img" aria-label="Coach"><DBIcon icon="coach"></DBIcon></span>
|
|
21
22
|
</template>
|
|
22
23
|
|
|
23
24
|
<script setup lang="ts">
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
# LoadingIndicator Examples (vue)
|
|
4
|
+
|
|
5
|
+
```vue
|
|
6
|
+
<template>
|
|
7
|
+
<h1>DBLoadingIndicator Documentation Examples</h1>
|
|
8
|
+
<h2>1. Default (indeterminate circular spinner)</h2>
|
|
9
|
+
<DBLoadingIndicator>Loading</DBLoadingIndicator>
|
|
10
|
+
<h2>2. Variants</h2>
|
|
11
|
+
<DBLoadingIndicator variant="circular">Circular</DBLoadingIndicator>
|
|
12
|
+
<DBLoadingIndicator variant="bar">Bar</DBLoadingIndicator>
|
|
13
|
+
<h2>3. Orientation (circular)</h2>
|
|
14
|
+
<DBLoadingIndicator variant="circular" orientation="horizontal">
|
|
15
|
+
Horizontal
|
|
16
|
+
</DBLoadingIndicator>
|
|
17
|
+
<DBLoadingIndicator variant="circular" orientation="vertical">
|
|
18
|
+
Vertical
|
|
19
|
+
</DBLoadingIndicator>
|
|
20
|
+
<h2>4. Sizes</h2>
|
|
21
|
+
<DBLoadingIndicator size="small">Small</DBLoadingIndicator>
|
|
22
|
+
<DBLoadingIndicator size="medium">Medium</DBLoadingIndicator>
|
|
23
|
+
<h2>5. Determinate progress</h2>
|
|
24
|
+
<DBLoadingIndicator
|
|
25
|
+
progressText="42 of 100"
|
|
26
|
+
:indeterminate="false"
|
|
27
|
+
:value="42"
|
|
28
|
+
:max="100"
|
|
29
|
+
>
|
|
30
|
+
Uploading
|
|
31
|
+
</DBLoadingIndicator>
|
|
32
|
+
<h2>6. States</h2>
|
|
33
|
+
<DBLoadingIndicator state="inactive">Inactive</DBLoadingIndicator>
|
|
34
|
+
<DBLoadingIndicator state="active">Active</DBLoadingIndicator>
|
|
35
|
+
<DBLoadingIndicator state="successful"> Successful </DBLoadingIndicator>
|
|
36
|
+
<DBLoadingIndicator state="critical">Critical</DBLoadingIndicator>
|
|
37
|
+
<h2>7. Overlay</h2>
|
|
38
|
+
<DBLoadingIndicator :overlay="true"> Loading overlay </DBLoadingIndicator>
|
|
39
|
+
<h2>8. Delay before showing</h2>
|
|
40
|
+
<DBLoadingIndicator delay="slow">Delayed (slow)</DBLoadingIndicator>
|
|
41
|
+
<DBLoadingIndicator delay="fast">Delayed (fast)</DBLoadingIndicator>
|
|
42
|
+
<h2>9. Show progress text</h2>
|
|
43
|
+
<DBLoadingIndicator
|
|
44
|
+
progressText="42 of 100"
|
|
45
|
+
:indeterminate="false"
|
|
46
|
+
:value="42"
|
|
47
|
+
:max="100"
|
|
48
|
+
:showProgressText="true"
|
|
49
|
+
>
|
|
50
|
+
With progress text
|
|
51
|
+
</DBLoadingIndicator>
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<script setup lang="ts">
|
|
55
|
+
import { DBLoadingIndicator } from "@db-ux/v-v-core-components";
|
|
56
|
+
</script>
|
|
57
|
+
```
|
package/agent/_instructions.md
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
- use for `DBNotification` or `Notification` the file __agent-path__/agent/Notification.md
|
|
16
16
|
- use for `DBNavigationItem` or `NavigationItem` the file __agent-path__/agent/NavigationItem.md
|
|
17
17
|
- use for `DBNavigation` or `Navigation` the file __agent-path__/agent/Navigation.md
|
|
18
|
+
- use for `DBLoadingIndicator` or `LoadingIndicator` the file __agent-path__/agent/LoadingIndicator.md
|
|
18
19
|
- use for `DBLink` or `Link` the file __agent-path__/agent/Link.md
|
|
19
20
|
- use for `DBInput` or `Input` the file __agent-path__/agent/Input.md
|
|
20
21
|
- use for `DBInfotext` or `Infotext` the file __agent-path__/agent/Infotext.md
|
|
@@ -38,5 +38,30 @@ export type DBControlPanelNavigationItemGroupDefaultState = {
|
|
|
38
38
|
_handleMouseEnter: () => void;
|
|
39
39
|
_handleMouseLeave: () => void;
|
|
40
40
|
_setSiblingsInert: (inert: boolean) => void;
|
|
41
|
+
/**
|
|
42
|
+
* The overlay is position: absolute; inset: 0 and anchors to the
|
|
43
|
+
* nearest positioned scroll owner. Which element scrolls depends on
|
|
44
|
+
* the layout (desktop scroll container, mobile drawer scroll
|
|
45
|
+
* container, or the left sub-navigation) and, for a nested level,
|
|
46
|
+
* it is the parent drilldown overlay menu. Rather than guess the
|
|
47
|
+
* owner per layout, walk up from this group and reset the scrollTop
|
|
48
|
+
* of every ancestor that currently has one. That clears the offset
|
|
49
|
+
* on whichever ancestor actually scrolled so the inset:0 overlay
|
|
50
|
+
* aligns with the visible scrollport.
|
|
51
|
+
*
|
|
52
|
+
* The walk stops at the outermost element for the current layout:
|
|
53
|
+
* - desktop main panel: the desktop scroll container
|
|
54
|
+
* - mobile drawer: the mobile drawer scroll container
|
|
55
|
+
* - left sub-navigation: the shell-sub-navigation wrapper, which
|
|
56
|
+
* sits directly above the scroll owner
|
|
57
|
+
* (.db-control-panel-navigation)
|
|
58
|
+
*
|
|
59
|
+
* .db-control-panel-navigation is intentionally NOT a boundary: in
|
|
60
|
+
* the desktop/mobile layouts it is only a descendant of the real
|
|
61
|
+
* scroll container, so stopping there would miss the element that
|
|
62
|
+
* actually scrolled. The document body is the hard backstop and is
|
|
63
|
+
* never itself reset, so the walk can never touch page-level scroll.
|
|
64
|
+
*/
|
|
65
|
+
_resetScrollOwner: () => void;
|
|
41
66
|
};
|
|
42
67
|
export type DBControlPanelNavigationItemGroupState = DBControlPanelNavigationItemGroupDefaultState & ClickEventState<HTMLButtonElement> & GlobalState & NavigationBehaviorState & InitializedState;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ClickEvent, GeneralEvent } from "../../shared/model.js";
|
|
2
|
+
import { DBDialogProps } from "./model.js";
|
|
3
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
header?: (props: typeof __VLS_1) => any;
|
|
6
|
+
} & {
|
|
7
|
+
default?: (props: typeof __VLS_3) => any;
|
|
8
|
+
} & {
|
|
9
|
+
footer?: (props: typeof __VLS_5) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBDialogProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DBDialogProps> & Readonly<{}>, {
|
|
12
|
+
id: string;
|
|
13
|
+
children: any;
|
|
14
|
+
className: string;
|
|
15
|
+
propOverrides: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
16
|
+
open: boolean | string;
|
|
17
|
+
onClick: (event: ClickEvent<HTMLDialogElement>) => void;
|
|
18
|
+
backdrop: import("./model.js", { with: { "resolution-mode": "import" } }).DialogBackdropType;
|
|
19
|
+
containerSize: import("./model.js", { with: { "resolution-mode": "import" } }).DialogContainerSizeType;
|
|
20
|
+
onCancel: (event: GeneralEvent<HTMLDialogElement>) => void;
|
|
21
|
+
onClose: (event?: Event | undefined) => void;
|
|
22
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBDialog } from './dialog.vue';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { CancelEventProps, ClickEvent, CloseEventProps, CloseEventState, DialogDrawerDefaultState, GeneralEvent, GlobalProps, GlobalState } from '../../shared/model.js';
|
|
2
|
+
export declare const DialogBackdropList: readonly ["none", "strong", "weak"];
|
|
3
|
+
export type DialogBackdropType = (typeof DialogBackdropList)[number];
|
|
4
|
+
export declare const DialogContainerSizeList: readonly ["small", "medium", "large", "full"];
|
|
5
|
+
export type DialogContainerSizeType = (typeof DialogContainerSizeList)[number];
|
|
6
|
+
export type DBDialogDefaultProps = {
|
|
7
|
+
/**
|
|
8
|
+
* The backdrop attribute changes the opacity of the backdrop.
|
|
9
|
+
* The backdrop 'none' will use `dialog.show()` instead of `dialog.showModal()`
|
|
10
|
+
*/
|
|
11
|
+
backdrop?: DialogBackdropType;
|
|
12
|
+
/**
|
|
13
|
+
* Change the maximum inline size of the dialog. Defaults to `medium`.
|
|
14
|
+
*/
|
|
15
|
+
containerSize?: DialogContainerSizeType;
|
|
16
|
+
/**
|
|
17
|
+
* Slot for changing the header of the dialog.
|
|
18
|
+
*/
|
|
19
|
+
header?: any;
|
|
20
|
+
/**
|
|
21
|
+
* Slot for changing the footer of the dialog.
|
|
22
|
+
*/
|
|
23
|
+
footer?: any;
|
|
24
|
+
/**
|
|
25
|
+
* The open attribute opens or closes the dialog based on the state.
|
|
26
|
+
*/
|
|
27
|
+
open?: boolean | string;
|
|
28
|
+
/**
|
|
29
|
+
* React specific onClick to pass to forward ref. Composed with the
|
|
30
|
+
* backdrop-close ponyfill, so a consumer handler still fires.
|
|
31
|
+
*/
|
|
32
|
+
onClick?: (event: ClickEvent<HTMLDialogElement>) => void;
|
|
33
|
+
};
|
|
34
|
+
export type DBDialogProps = DBDialogDefaultProps & GlobalProps & CancelEventProps<HTMLDialogElement> & CloseEventProps<GeneralEvent<HTMLDialogElement>>;
|
|
35
|
+
export type DBDialogDefaultState = DialogDrawerDefaultState;
|
|
36
|
+
export type DBDialogState = DBDialogDefaultState & GlobalState & CloseEventState<GeneralEvent<HTMLDialogElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<import("../../index.js", { with: { "resolution-mode": "import" } }).GlobalProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("../../index.js", { with: { "resolution-mode": "import" } }).GlobalProps> & Readonly<{}>, {
|
|
6
|
+
id: string;
|
|
7
|
+
children: any;
|
|
8
|
+
className: string;
|
|
9
|
+
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
10
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBDialogFooter } from './dialog-footer.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GlobalProps, GlobalState } from '../../shared/model.js';
|
|
2
|
+
export type DBDialogFooterDefaultProps = {};
|
|
3
|
+
export type DBDialogFooterProps = DBDialogFooterDefaultProps & GlobalProps;
|
|
4
|
+
export type DBDialogFooterDefaultState = {};
|
|
5
|
+
export type DBDialogFooterState = DBDialogFooterDefaultState & GlobalState;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DBDialogHeaderProps } from "./model.js";
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
'start-slot'?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_3) => any;
|
|
7
|
+
} & {
|
|
8
|
+
'end-slot'?: (props: typeof __VLS_5) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBDialogHeaderProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DBDialogHeaderProps> & Readonly<{}>, {
|
|
11
|
+
id: string;
|
|
12
|
+
children: any;
|
|
13
|
+
className: string;
|
|
14
|
+
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
15
|
+
text: string;
|
|
16
|
+
closeButtonId: string;
|
|
17
|
+
closeButtonText: string;
|
|
18
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBDialogHeader } from './dialog-header.vue';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EndSlotProps, GlobalProps, GlobalState, InnerCloseButtonProps, StartSlotProps, TextProps } from '../../shared/model.js';
|
|
2
|
+
export type DBDialogHeaderDefaultProps = {};
|
|
3
|
+
export type DBDialogHeaderProps = DBDialogHeaderDefaultProps & InnerCloseButtonProps & TextProps & GlobalProps & StartSlotProps & EndSlotProps;
|
|
4
|
+
export type DBDialogHeaderDefaultState = {
|
|
5
|
+
_headingId?: string;
|
|
6
|
+
_dialog?: HTMLDialogElement;
|
|
7
|
+
_resolveDialog: () => void;
|
|
8
|
+
removeAriaLabelledBy: () => void;
|
|
9
|
+
};
|
|
10
|
+
export type DBDialogHeaderState = DBDialogHeaderDefaultState & GlobalState;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ClickEvent, GeneralEvent } from "../../shared/model.js";
|
|
1
2
|
import { DBDrawerProps } from "./model.js";
|
|
2
3
|
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
3
4
|
type __VLS_Slots = {} & {
|
|
@@ -13,6 +14,7 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBDrawerPr
|
|
|
13
14
|
className: string;
|
|
14
15
|
propOverrides: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
15
16
|
open: boolean | string;
|
|
17
|
+
onClick: (event: ClickEvent<HTMLDialogElement>) => void;
|
|
16
18
|
variant: import("./model.js", { with: { "resolution-mode": "import" } }).DrawerVariantType;
|
|
17
19
|
backdrop: import("./model.js", { with: { "resolution-mode": "import" } }).DrawerBackdropType;
|
|
18
20
|
direction: import("./model.js", { with: { "resolution-mode": "import" } }).DrawerDirectionType;
|
|
@@ -20,6 +22,7 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBDrawerPr
|
|
|
20
22
|
rounded: boolean | string;
|
|
21
23
|
position: import("./model.js", { with: { "resolution-mode": "import" } }).DrawerPositionType;
|
|
22
24
|
containerSize: import("./model.js", { with: { "resolution-mode": "import" } }).DrawerContainerSizeType;
|
|
25
|
+
onCancel: (event: GeneralEvent<HTMLDialogElement>) => void;
|
|
23
26
|
onClose: (event?: KeyboardEvent | MouseEvent | undefined) => void;
|
|
24
27
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
25
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState } from '../../shared/model.js';
|
|
1
|
+
import type { CancelEventProps, ClickEvent, CloseEventProps, CloseEventState, DialogDrawerDefaultState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState } from '../../shared/model.js';
|
|
2
2
|
export declare const DrawerBackdropList: readonly ["none", "strong", "weak", "invisible"];
|
|
3
3
|
export type DrawerBackdropType = (typeof DrawerBackdropList)[number];
|
|
4
4
|
export declare const DrawerDirectionList: readonly ["to-left", "to-right", "up", "down"];
|
|
@@ -9,6 +9,8 @@ export declare const DrawerPositionList: readonly ["fixed", "absolute"];
|
|
|
9
9
|
export type DrawerPositionType = (typeof DrawerPositionList)[number];
|
|
10
10
|
export declare const DrawerContainerSizeList: readonly ["small", "medium", "large", "full"];
|
|
11
11
|
export type DrawerContainerSizeType = (typeof DrawerContainerSizeList)[number];
|
|
12
|
+
export declare const DrawerClosedByList: readonly ["any", "closerequest", "none"];
|
|
13
|
+
export type DrawerClosedByType = (typeof DrawerClosedByList)[number];
|
|
12
14
|
export type DBDrawerDefaultProps = {
|
|
13
15
|
/**
|
|
14
16
|
* The backdrop attribute changes the opacity of the backdrop.
|
|
@@ -56,12 +58,12 @@ export type DBDrawerDefaultProps = {
|
|
|
56
58
|
* Change the size of the drawer container.
|
|
57
59
|
*/
|
|
58
60
|
containerSize?: DrawerContainerSizeType;
|
|
61
|
+
/**
|
|
62
|
+
* React specific onClick to pass to forward ref. Composed with the
|
|
63
|
+
* backdrop-close ponyfill, so a consumer handler still fires.
|
|
64
|
+
*/
|
|
65
|
+
onClick?: (event: ClickEvent<HTMLDialogElement>) => void;
|
|
59
66
|
};
|
|
60
|
-
export type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>>;
|
|
61
|
-
export type DBDrawerDefaultState =
|
|
62
|
-
|
|
63
|
-
isNotModal: () => boolean;
|
|
64
|
-
handleBackdropPointerDown: (event: any) => void;
|
|
65
|
-
backdropPointerDown: boolean;
|
|
66
|
-
};
|
|
67
|
-
export type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InitializedState;
|
|
67
|
+
export type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CancelEventProps<HTMLDialogElement> & CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>>;
|
|
68
|
+
export type DBDrawerDefaultState = DialogDrawerDefaultState;
|
|
69
|
+
export type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState<Event> & InitializedState;
|
|
@@ -2,8 +2,9 @@ import { EndSlotProps, GlobalProps, GlobalState, InnerCloseButtonProps, StartSlo
|
|
|
2
2
|
export type DBDrawerHeaderDefaultProps = {};
|
|
3
3
|
export type DBDrawerHeaderProps = DBDrawerHeaderDefaultProps & InnerCloseButtonProps & TextProps & GlobalProps & StartSlotProps & EndSlotProps;
|
|
4
4
|
export type DBDrawerHeaderDefaultState = {
|
|
5
|
-
_headingId
|
|
6
|
-
|
|
5
|
+
_headingId?: string;
|
|
6
|
+
_dialog?: HTMLDialogElement;
|
|
7
|
+
_resolveDialog: () => void;
|
|
7
8
|
removeAriaLabelledBy: () => void;
|
|
8
9
|
};
|
|
9
10
|
export type DBDrawerHeaderState = DBDrawerHeaderDefaultState & GlobalState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBLoadingIndicator } from './loading-indicator.vue';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DBLoadingIndicatorProps } from "./model.js";
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBLoadingIndicatorProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DBLoadingIndicatorProps> & Readonly<{}>, {
|
|
7
|
+
id: string;
|
|
8
|
+
children: any;
|
|
9
|
+
className: string;
|
|
10
|
+
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType & {
|
|
11
|
+
progress?: {
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
role: "alert" | "status";
|
|
16
|
+
label: string;
|
|
17
|
+
value: string | number;
|
|
18
|
+
variant: import("./model.js", { with: { "resolution-mode": "import" } }).LoadingIndicatorVariantType;
|
|
19
|
+
size: import("../../index.js", { with: { "resolution-mode": "import" } }).SizeType | "large";
|
|
20
|
+
indeterminate: boolean | string;
|
|
21
|
+
showLabel: boolean | string;
|
|
22
|
+
delay: import("../../index.js", { with: { "resolution-mode": "import" } }).PopoverDelayType;
|
|
23
|
+
orientation: import("../../index.js", { with: { "resolution-mode": "import" } }).OrientationType;
|
|
24
|
+
max: number | string;
|
|
25
|
+
progressText: string;
|
|
26
|
+
showProgressText: boolean | string;
|
|
27
|
+
overlay: boolean | string;
|
|
28
|
+
state: import("./model.js", { with: { "resolution-mode": "import" } }).LoadingIndicatorStateType | string;
|
|
29
|
+
autoDisable: boolean | string;
|
|
30
|
+
onTimeout: (state?: import("./model.js", { with: { "resolution-mode": "import" } }).LoadingIndicatorStateType | string) => void;
|
|
31
|
+
timeoutDuration: number | string;
|
|
32
|
+
timeoutActiveDuration: number | string;
|
|
33
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { DelayProps, GlobalProps, GlobalState, InitializedState, OrientationProps, PropOverridesType, ShowLabelProps, SizeType } from '../../shared/model.js';
|
|
2
|
+
export declare const LoadingIndicatorVariantList: readonly ["bar", "circular"];
|
|
3
|
+
export type LoadingIndicatorVariantType = (typeof LoadingIndicatorVariantList)[number];
|
|
4
|
+
export declare const LoadingIndicatorStateList: readonly ["inactive", "active", "successful", "critical"];
|
|
5
|
+
export type LoadingIndicatorStateType = (typeof LoadingIndicatorStateList)[number];
|
|
6
|
+
export type DBLoadingIndicatorDefaultProps = {
|
|
7
|
+
/**
|
|
8
|
+
* If enabled the loading indicator shows an ongoing animation without a known completion (spinner/indeterminate progress). Set to false to show a determinate value via value/max.
|
|
9
|
+
*/
|
|
10
|
+
indeterminate?: boolean | string;
|
|
11
|
+
/**
|
|
12
|
+
* The label associated with the progress element. Alternative to passing children.
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The maximum value of the determinate progress (used together with value). Defaults to 100.
|
|
17
|
+
*/
|
|
18
|
+
max?: number | string;
|
|
19
|
+
/**
|
|
20
|
+
* The text describing the current progress (e.g. "42 of 100"), shown next to the indicator.
|
|
21
|
+
*/
|
|
22
|
+
progressText?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Enables/disables the visibility of the progressText
|
|
25
|
+
*/
|
|
26
|
+
showProgressText?: boolean | string;
|
|
27
|
+
/**
|
|
28
|
+
* The current value of the determinate progress (used together with max).
|
|
29
|
+
*/
|
|
30
|
+
value?: string | number;
|
|
31
|
+
/**
|
|
32
|
+
* If enabled the loading indicator is rendered as an overlay covering its positioned parent.
|
|
33
|
+
*/
|
|
34
|
+
overlay?: boolean | string;
|
|
35
|
+
/**
|
|
36
|
+
* The variant changes the visual appearance of the loading indicator between a circular spinner and a horizontal bar.
|
|
37
|
+
*/
|
|
38
|
+
variant?: LoadingIndicatorVariantType;
|
|
39
|
+
/**
|
|
40
|
+
* The current loading state. Controls the animation and the announced live-region role.
|
|
41
|
+
*/
|
|
42
|
+
state?: LoadingIndicatorStateType | string;
|
|
43
|
+
/**
|
|
44
|
+
* Disable the parent component (e.g. a DBButton) when loading indicator is inside it
|
|
45
|
+
*/
|
|
46
|
+
autoDisable?: boolean | string;
|
|
47
|
+
/**
|
|
48
|
+
* Overrides the automatically derived ARIA live-region role. By default the role is derived from the state ("alert" for critical, otherwise "status").
|
|
49
|
+
*/
|
|
50
|
+
role?: 'alert' | 'status';
|
|
51
|
+
/**
|
|
52
|
+
* Triggers after a timeout. For "active" after 5 seconds, for "successful" and "critical" after 2 seconds
|
|
53
|
+
*/
|
|
54
|
+
onTimeout?: (state?: LoadingIndicatorStateType | string) => void;
|
|
55
|
+
/**
|
|
56
|
+
* The size attribute changes the font-size and other related sizes of the component.
|
|
57
|
+
*/
|
|
58
|
+
size?: SizeType | 'large';
|
|
59
|
+
/**
|
|
60
|
+
* The timeoutDuration attribute specifies the time in milliseconds before the loading indicator triggers the onTimeout event. Default is 2000ms.
|
|
61
|
+
*/
|
|
62
|
+
timeoutDuration?: number | string;
|
|
63
|
+
/**
|
|
64
|
+
* The timeoutActiveDuration attribute specifies the time in milliseconds before the loading indicator triggers the onTimeout event when the state is "active". Default is 5000ms.
|
|
65
|
+
*/
|
|
66
|
+
timeoutActiveDuration?: number | string;
|
|
67
|
+
};
|
|
68
|
+
export type DBLoadingIndicatorProps = DBLoadingIndicatorDefaultProps & GlobalProps & ShowLabelProps & OrientationProps & DelayProps & {
|
|
69
|
+
/**
|
|
70
|
+
* Allows overriding specific props on nested elements or internal component structure
|
|
71
|
+
*/
|
|
72
|
+
propOverrides?: PropOverridesType & {
|
|
73
|
+
progress?: {
|
|
74
|
+
ariaLabel?: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export type DBLoadingIndicatorDefaultState = {
|
|
79
|
+
_loadingState?: LoadingIndicatorStateType | string;
|
|
80
|
+
_previousLoadingState?: LoadingIndicatorStateType | string;
|
|
81
|
+
_labelId?: string;
|
|
82
|
+
_progressId?: string;
|
|
83
|
+
_timeoutId?: ReturnType<typeof setTimeout>;
|
|
84
|
+
_didDisableParent?: boolean;
|
|
85
|
+
_didSetAriaBusy?: boolean;
|
|
86
|
+
getPercentage: () => string | undefined;
|
|
87
|
+
getRole: () => string | undefined;
|
|
88
|
+
handleParentAria: (remove: boolean) => void;
|
|
89
|
+
handleParentDisabled: (forceEnable?: boolean) => void;
|
|
90
|
+
handleUnmount: () => void;
|
|
91
|
+
resetIds: () => void;
|
|
92
|
+
};
|
|
93
|
+
export type DBLoadingIndicatorState = DBLoadingIndicatorDefaultState & GlobalState & InitializedState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBPagination } from './pagination.vue';
|