sit-onyx 1.0.0-beta.16 → 1.0.0-beta.161
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/README.md +1 -5
- package/dist/a11yConfig.d.ts +1 -0
- package/dist/components/OnyxAccordion/OnyxAccordion.vue.d.ts +23 -0
- package/dist/components/OnyxAccordion/types.d.ts +36 -0
- package/dist/components/OnyxAccordionItem/OnyxAccordionItem.vue.d.ts +22 -0
- package/dist/components/OnyxAccordionItem/types.d.ts +17 -0
- package/dist/components/OnyxAlertDialog/OnyxAlertDialog.vue.d.ts +34 -0
- package/dist/components/OnyxAlertDialog/types.d.ts +8 -0
- package/dist/components/OnyxAppLayout/OnyxAppLayout.vue.d.ts +5 -36
- package/dist/components/OnyxAvatar/OnyxAvatar.vue.d.ts +2 -40
- package/dist/components/OnyxAvatar/types.d.ts +15 -3
- package/dist/components/OnyxAvatarStack/OnyxAvatarStack.vue.d.ts +4 -9
- package/dist/components/OnyxBadge/OnyxBadge.vue.d.ts +6 -34
- package/dist/components/OnyxBottomBar/OnyxBottomBar.vue.d.ts +21 -0
- package/dist/components/OnyxBottomBar/types.d.ts +7 -0
- package/dist/components/OnyxButton/ButtonOrLinkLayout.vue.d.ts +16 -0
- package/dist/components/OnyxButton/types.d.ts +10 -2
- package/dist/components/OnyxCard/OnyxCard.vue.d.ts +17 -0
- package/dist/components/OnyxCard/types.d.ts +8 -0
- package/dist/components/OnyxCheckbox/OnyxCheckbox.vue.d.ts +11 -12
- package/dist/components/OnyxCheckbox/types.d.ts +2 -4
- package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue.d.ts +10 -10
- package/dist/components/OnyxCheckboxGroup/types.d.ts +4 -16
- package/dist/components/OnyxDataGrid/OnyxDataGrid.vue.d.ts +24 -0
- package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.vue.d.ts +24 -0
- package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/types.d.ts +83 -0
- package/dist/components/OnyxDataGrid/features/HeaderCell.vue.d.ts +17 -0
- package/dist/components/OnyxDataGrid/features/all.d.ts +5 -0
- package/dist/components/OnyxDataGrid/features/filtering/TestCase.vue.d.ts +10 -0
- package/dist/components/OnyxDataGrid/features/filtering/filtering.d.ts +27 -0
- package/dist/components/OnyxDataGrid/features/filtering/types.d.ts +80 -0
- package/dist/components/OnyxDataGrid/features/index.d.ts +206 -0
- package/dist/components/OnyxDataGrid/features/renderer.d.ts +11 -0
- package/dist/components/OnyxDataGrid/features/selection/TestCase.vue.d.ts +21 -0
- package/dist/components/OnyxDataGrid/features/selection/selection.d.ts +39 -0
- package/dist/components/OnyxDataGrid/features/selection/types.d.ts +42 -0
- package/dist/components/OnyxDataGrid/features/sorting/SortAction.vue.d.ts +13 -0
- package/dist/components/OnyxDataGrid/features/sorting/TestCase.vue.d.ts +9 -0
- package/dist/components/OnyxDataGrid/features/sorting/sorting.d.ts +22 -0
- package/dist/components/OnyxDataGrid/features/sorting/types.d.ts +55 -0
- package/dist/components/OnyxDataGrid/types.d.ts +38 -0
- package/dist/components/OnyxDatePicker/OnyxDatePicker.vue.d.ts +20 -0
- package/dist/components/OnyxDatePicker/types.d.ts +23 -0
- package/dist/components/OnyxDialog/OnyxDialog.vue.d.ts +12 -41
- package/dist/components/OnyxEmpty/OnyxEmpty.vue.d.ts +6 -20
- package/dist/components/OnyxErrorTooltip/OnyxErrorTooltip.vue.d.ts +29 -0
- package/dist/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue.d.ts +3 -24
- package/dist/components/OnyxExternalLinkIcon/types.d.ts +2 -5
- package/dist/components/OnyxForm/FormElementTestWrapper.vue.d.ts +20 -0
- package/dist/components/OnyxForm/OnyxForm.core.d.ts +99 -0
- package/dist/components/OnyxForm/OnyxForm.core.spec-d.d.ts +1 -0
- package/dist/components/OnyxForm/OnyxForm.vue.d.ts +18 -0
- package/dist/components/OnyxForm/types.d.ts +4 -0
- package/dist/components/OnyxFormElement/FormMessage.vue.d.ts +13 -0
- package/dist/components/OnyxFormElement/OnyxFormElement.ct-utils.d.ts +11 -0
- package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +23 -41
- package/dist/components/OnyxFormElement/types.d.ts +36 -19
- package/dist/components/OnyxHeadline/OnyxHeadline.vue.d.ts +6 -18
- package/dist/components/OnyxHeadline/types.d.ts +18 -2
- package/dist/components/OnyxIcon/OnyxIcon.vue.d.ts +1 -10
- package/dist/components/OnyxIconButton/OnyxIconButton.vue.d.ts +9 -43
- package/dist/components/OnyxIconButton/types.d.ts +6 -4
- package/dist/components/OnyxImage/OnyxImage.vue.d.ts +5 -0
- package/dist/components/OnyxImage/types.d.ts +38 -0
- package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.vue.d.ts +4 -10
- package/dist/components/OnyxInfoTooltip/types.d.ts +1 -5
- package/dist/components/OnyxInput/OnyxInput.vue.d.ts +41 -52
- package/dist/components/OnyxInput/types.d.ts +7 -67
- package/dist/components/OnyxLink/OnyxLink.vue.d.ts +6 -38
- package/dist/components/OnyxLink/types.d.ts +3 -10
- package/dist/components/OnyxListItem/OnyxListItem.vue.d.ts +5 -37
- package/dist/components/OnyxLoadingIndicator/OnyxCircleSpinner.vue.d.ts +2 -0
- package/dist/components/OnyxLoadingIndicator/OnyxLoadingDots.vue.d.ts +2 -0
- package/dist/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue.d.ts +2 -23
- package/dist/components/OnyxMiniSearch/OnyxMiniSearch.vue.d.ts +14 -16
- package/dist/components/OnyxMiniSearch/types.d.ts +1 -4
- package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.vue.d.ts +8 -34
- package/dist/components/OnyxModalDialog/OnyxModalDialog.vue.d.ts +28 -0
- package/dist/components/OnyxModalDialog/types.d.ts +2 -0
- package/dist/components/OnyxMoreList/OnyxMoreList.vue.d.ts +30 -0
- package/dist/components/OnyxMoreList/types.d.ts +18 -0
- package/dist/components/OnyxNavAppArea/OnyxNavAppArea.vue.d.ts +6 -22
- package/dist/components/OnyxNavAppArea/types.d.ts +2 -1
- package/dist/components/OnyxNavBar/OnyxNavBar.vue.d.ts +17 -61
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.vue.d.ts +7 -28
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/types.d.ts +2 -2
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.vue.d.ts +4 -13
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +17 -32
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +5 -0
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue.d.ts +10 -18
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +6 -9
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonLayout.vue.d.ts +24 -25
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonTrigger.vue.d.ts +22 -0
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/OnyxNavButton.vue.d.ts +120 -43
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/types.d.ts +4 -3
- package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.vue.d.ts +6 -36
- package/dist/components/OnyxNavBar/modules/OnyxNavSeparator/OnyxNavSeparator.vue.d.ts +2 -23
- package/dist/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.vue.d.ts +4 -13
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +12 -30
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +21 -17
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/types.d.ts +6 -3
- package/dist/components/OnyxNavBar/types.d.ts +7 -5
- package/dist/components/OnyxPageLayout/OnyxPageLayout.vue.d.ts +4 -20
- package/dist/components/OnyxPageLayout/types.d.ts +2 -1
- package/dist/components/OnyxPagination/OnyxPagination.vue.d.ts +10 -0
- package/dist/components/OnyxPagination/OnyxSelectPagination.vue.d.ts +9 -0
- package/dist/components/OnyxPagination/types.d.ts +20 -0
- package/dist/components/OnyxRadioButton/OnyxRadioButton.vue.d.ts +10 -12
- package/dist/components/OnyxRadioButton/types.d.ts +2 -10
- package/dist/components/OnyxRadioGroup/OnyxRadioGroup.vue.d.ts +11 -12
- package/dist/components/OnyxRadioGroup/types.d.ts +2 -23
- package/dist/components/OnyxRipple/OnyxRipple.vue.d.ts +7 -0
- package/dist/components/OnyxRouterLink/OnyxRouterLink.vue.d.ts +13 -0
- package/dist/components/OnyxRouterLink/types.d.ts +22 -0
- package/dist/components/OnyxSelect/OnyxSelect.vue.d.ts +35 -39
- package/dist/components/OnyxSelect/types.d.ts +38 -36
- package/dist/components/OnyxSelectInput/OnyxSelectInput.vue.d.ts +9 -12
- package/dist/components/OnyxSelectInput/types.d.ts +6 -36
- package/dist/components/OnyxSelectOption/OnyxSelectOption.vue.d.ts +6 -36
- package/dist/components/OnyxSkeleton/OnyxSkeleton.vue.d.ts +1 -1
- package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +21 -46
- package/dist/components/OnyxStepper/types.d.ts +21 -37
- package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +17 -39
- package/dist/components/OnyxSwitch/types.d.ts +2 -30
- package/dist/components/OnyxSystemButton/OnyxSystemButton.vue.d.ts +8 -0
- package/dist/components/{OnyxLoadingIndicator/CircleSpinner.vue.d.ts → OnyxSystemButton/examples/WithFlyoutMenu.vue.d.ts} +1 -1
- package/dist/components/OnyxSystemButton/examples/WithTooltip.vue.d.ts +2 -0
- package/dist/components/OnyxSystemButton/types.d.ts +17 -0
- package/dist/components/OnyxTab/OnyxTab.vue.d.ts +22 -0
- package/dist/components/OnyxTab/types.d.ts +20 -0
- package/dist/components/OnyxTable/OnyxTable.vue.d.ts +16 -42
- package/dist/components/OnyxTable/types.d.ts +23 -0
- package/dist/components/OnyxTabs/OnyxTabs.vue.d.ts +23 -0
- package/dist/components/OnyxTabs/types.d.ts +45 -0
- package/dist/components/OnyxTag/OnyxTag.vue.d.ts +3 -24
- package/dist/components/OnyxTextarea/OnyxTextarea.vue.d.ts +22 -51
- package/dist/components/OnyxTextarea/types.d.ts +1 -4
- package/dist/components/OnyxToast/OnyxToast.vue.d.ts +1 -1
- package/dist/components/OnyxToast/StorybookExample.vue.d.ts +1 -1
- package/dist/components/OnyxToastMessage/OnyxToastMessage.vue.d.ts +6 -35
- package/dist/components/OnyxToastMessage/types.d.ts +2 -2
- package/dist/components/OnyxTooltip/OnyxTooltip.ct-utils.d.ts +7 -0
- package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +19 -52
- package/dist/components/OnyxTooltip/types.d.ts +32 -8
- package/dist/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue.d.ts +9 -27
- package/dist/components/examples/ComponentShowcase/ComponentShowcase.vue.d.ts +9 -0
- package/dist/components/examples/DataGrid/FilteringDataGrid.vue.d.ts +11 -0
- package/dist/components/examples/DataGrid/SelectionDataGrid.vue.d.ts +13 -0
- package/dist/components/examples/DataGrid/SortingDataGrid.vue.d.ts +26 -0
- package/dist/components/examples/FormExample/FormExample.vue.d.ts +3 -0
- package/dist/components/examples/GridPlayground/EditGridElementDialog/EditGridElementDialog.vue.d.ts +27 -0
- package/dist/components/examples/GridPlayground/GridBadge/GridBadge.vue.d.ts +17 -0
- package/dist/components/examples/GridPlayground/GridElement/GridElement.vue.d.ts +30 -0
- package/dist/components/examples/GridPlayground/GridOverlay/GridOverlay.vue.d.ts +10 -0
- package/dist/components/examples/GridPlayground/GridPlayground.vue.d.ts +5 -0
- package/dist/components/{OnyxLoadingIndicator/LoadingDots.vue.d.ts → examples/OnyxCard/DetailsCardExample.vue.d.ts} +1 -1
- package/dist/components/{OnyxToast/PlaywrightTest.vue.d.ts → examples/OnyxCard/HeadlineCardExample.vue.d.ts} +1 -1
- package/dist/components/{OnyxToast/PlaywrightTestWrapper.vue.d.ts → examples/OnyxCard/IconCardExample.vue.d.ts} +1 -1
- package/dist/components/examples/OnyxCard/ImageCardExample.vue.d.ts +2 -0
- package/dist/components/examples/OnyxCard/KPICardExample.vue.d.ts +2 -0
- package/dist/composables/density.d.ts +1 -1
- package/dist/composables/required.d.ts +6 -12
- package/dist/composables/scrollEnd.d.ts +1 -1
- package/dist/composables/themeTransition.d.ts +3 -0
- package/dist/composables/useAutoFocus.d.ts +5 -0
- package/dist/composables/useCustomValidity.d.ts +37 -28
- package/dist/composables/useErrorClass.d.ts +14 -0
- package/dist/composables/useLenientMaxLengthValidation.ct-utils.d.ts +3 -0
- package/dist/composables/useLenientMaxLengthValidation.d.ts +88 -0
- package/dist/composables/useLink.d.ts +27 -0
- package/dist/composables/useLink.spec-d.d.ts +1 -0
- package/dist/composables/useMoreList.d.ts +115 -0
- package/dist/composables/useOpenDirection.d.ts +14 -0
- package/dist/composables/useResizeObserver.d.ts +13 -3
- package/dist/composables/useRipple.d.ts +15 -0
- package/dist/composables/useSkeletonState.d.ts +61 -0
- package/dist/composables/useTimer.d.ts +1 -1
- package/dist/composables/useWedgePosition.d.ts +13 -0
- package/dist/i18n/index.d.ts +15 -6
- package/dist/i18n/locales/de-DE.json +171 -0
- package/dist/i18n/locales/en-US.json +171 -0
- package/dist/i18n/locales/ko-KR.json +27 -0
- package/dist/index.cjs +54 -55
- package/dist/index.d.ts +44 -1
- package/dist/index.js +4726 -2688
- package/dist/playwright/a11y.d.ts +15 -1
- package/dist/playwright/screenshots.d.ts +5 -39
- package/dist/style.css +1 -1
- package/dist/types/colors.d.ts +1 -1
- package/dist/types/components.d.ts +6 -6
- package/dist/types/index.d.ts +0 -1
- package/dist/types/themes.d.ts +2 -1
- package/dist/types/utils.d.ts +25 -0
- package/dist/utils/attrs.d.ts +25 -4
- package/dist/utils/date.d.ts +7 -0
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/numbers.d.ts +18 -0
- package/dist/utils/objects.d.ts +8 -0
- package/dist/utils/plugin.d.ts +9 -1
- package/dist/utils/router.d.ts +5 -0
- package/dist/utils/strings.d.ts +13 -0
- package/package.json +24 -12
- package/src/i18n/locales/de-DE.json +71 -16
- package/src/i18n/locales/en-US.json +72 -17
- package/src/styles/breakpoints.scss +4 -2
- package/src/styles/grid.ct.tsx +76 -22
- package/src/styles/grid.scss +18 -4
- package/src/styles/index.scss +5 -5
- package/src/styles/mixins/checkbox.scss +6 -6
- package/src/styles/mixins/input.scss +142 -34
- package/src/styles/mixins/layers.scss +0 -6
- package/src/styles/mixins/list.scss +7 -4
- package/src/styles/mixins/sizes.scss +27 -0
- package/src/styles/root.scss +13 -3
- package/src/styles/variables/density-compact.css +1 -1
- package/src/styles/variables/density-cozy.css +1 -1
- package/src/styles/variables/density-default.css +1 -1
- package/src/styles/variables/spacing.css +1 -1
- package/src/styles/variables/themes/digits-dark.css +129 -0
- package/src/styles/variables/themes/digits-light.css +129 -0
- package/src/styles/variables/themes/kaufland-dark.css +129 -0
- package/src/styles/variables/themes/kaufland-light.css +129 -0
- package/src/styles/variables/themes/lidl-dark.css +129 -0
- package/src/styles/variables/themes/lidl-light.css +129 -0
- package/src/styles/variables/themes/onyx-dark.css +129 -0
- package/src/styles/variables/themes/onyx-light.css +129 -0
- package/src/styles/variables/themes/schwarz-dark.css +129 -0
- package/src/styles/variables/themes/schwarz-light.css +129 -0
- package/src/styles/variables/themes/value.css +224 -0
- package/dist/components/GridPlayground/GridElement.vue.d.ts +0 -18
- package/dist/components/GridPlayground/GridElementsIndicator.vue.d.ts +0 -22
- package/dist/components/GridPlayground/GridPlayground.vue.d.ts +0 -27
- package/dist/components/OnyxButton/OnyxButton.vue.d.ts +0 -45
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/MobileComponentTestWrapper.vue.d.ts +0 -41
- package/dist/composables/useManagedState.d.ts +0 -25
- package/dist/playwright/ScreenshotMatrix.vue.d.ts +0 -54
- package/dist/types/breakpoints.d.ts +0 -13
- package/src/styles/variables/dark.css +0 -120
- package/src/styles/variables/light.css +0 -120
- package/src/styles/variables/themes/kaufland.css +0 -126
- package/src/styles/variables/themes/lidl.css +0 -126
- package/src/styles/variables/themes/onyx.css +0 -126
- package/src/styles/variables/themes/onyx.json +0 -120
- package/src/styles/variables/themes/twogo.css +0 -126
- /package/dist/components/{OnyxRadioGroup/OnyxRadioGroup.d.ts → OnyxDataGrid/types.spec-d.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
<div align="center" style="text-align: center">
|
|
2
|
-
<
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" type="image/svg+xml" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-light.svg">
|
|
4
|
-
<source media="(prefers-color-scheme: light)" type="image/svg+xml" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-dark.svg">
|
|
5
|
-
<img alt="onyx logo" src="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-dark.svg" width="160px">
|
|
6
|
-
</picture>
|
|
2
|
+
<img alt="onyx logo" src="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo.svg" height="96px">
|
|
7
3
|
</div>
|
|
8
4
|
|
|
9
5
|
<br>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const a11yTags: string[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type OnyxAccordionProps } from "./types";
|
|
2
|
+
declare const _default: <TValue extends PropertyKey>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly "onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
|
|
5
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & OnyxAccordionProps<TValue> & Partial<{}>> & import("vue").PublicProps;
|
|
6
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {
|
|
9
|
+
/**
|
|
10
|
+
* Displays OnyxAccordionItem components.
|
|
11
|
+
*/
|
|
12
|
+
default(): unknown;
|
|
13
|
+
};
|
|
14
|
+
emit: (evt: "update:modelValue", value: TValue[]) => void;
|
|
15
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}> & {
|
|
18
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_PrettifyLocal<T> = {
|
|
22
|
+
[K in keyof T]: T[K];
|
|
23
|
+
} & {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { SkeletonInjected } from "src/composables/useSkeletonState";
|
|
2
|
+
import type { InjectionKey, Ref } from "vue";
|
|
3
|
+
import type { DensityProp } from "../../composables/density";
|
|
4
|
+
export type OnyxAccordionProps<TValue extends PropertyKey> = DensityProp & {
|
|
5
|
+
/**
|
|
6
|
+
* Currently opened items. Will include the `value` property of the nested `OnyxAccordionItems`.
|
|
7
|
+
*/
|
|
8
|
+
modelValue?: TValue[];
|
|
9
|
+
/**
|
|
10
|
+
* if `true`, only one accordion item can be open at the same time.
|
|
11
|
+
*/
|
|
12
|
+
exclusive?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Disable the accordion.
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* If set, the specified number of skeleton accordions will be shown.
|
|
19
|
+
*/
|
|
20
|
+
skeleton?: SkeletonInjected;
|
|
21
|
+
};
|
|
22
|
+
export type AccordionInjectionKey<TValue extends PropertyKey> = InjectionKey<{
|
|
23
|
+
/**
|
|
24
|
+
* IDs of currently open AccordionItems.
|
|
25
|
+
*/
|
|
26
|
+
openItems: Readonly<Ref<PropertyKey[]>>;
|
|
27
|
+
/**
|
|
28
|
+
* Function to update the open state of an AccordionItem.
|
|
29
|
+
* @param id - The unique ID of the AccordionItem.
|
|
30
|
+
* @param value - Whether the AccordionItem should be open (true) or closed (false).
|
|
31
|
+
*/
|
|
32
|
+
updateOpen: (id: TValue, value: boolean) => void;
|
|
33
|
+
disabled: Ref<boolean>;
|
|
34
|
+
skeleton: Ref<SkeletonInjected>;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const ACCORDION_INJECTION_KEY: AccordionInjectionKey<PropertyKey>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { OnyxAccordionItemProps } from "./types";
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
/**
|
|
4
|
+
* Displays the header content.
|
|
5
|
+
*/
|
|
6
|
+
header(): unknown;
|
|
7
|
+
/**
|
|
8
|
+
* Displays the panel content.
|
|
9
|
+
*/
|
|
10
|
+
default?(): unknown;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<OnyxAccordionItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAccordionItemProps> & Readonly<{}>, {
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DensityProp } from "../../composables/density";
|
|
2
|
+
import type { SkeletonInjected } from "../../composables/useSkeletonState";
|
|
3
|
+
export type OnyxAccordionItemProps = DensityProp & {
|
|
4
|
+
/**
|
|
5
|
+
* Value that is used inside the `OnyxAccordion` when the item is open.
|
|
6
|
+
* Must be unique across one accordion.
|
|
7
|
+
*/
|
|
8
|
+
value: PropertyKey;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the accordion is disabled
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to show a skeleton accordion.
|
|
15
|
+
*/
|
|
16
|
+
skeleton?: SkeletonInjected;
|
|
17
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { OnyxAlertDialogProps } from "./types";
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
/**
|
|
4
|
+
* Dialog content.
|
|
5
|
+
*/
|
|
6
|
+
default(): unknown;
|
|
7
|
+
/**
|
|
8
|
+
* Optional slot to override the headline with custom content.
|
|
9
|
+
* If unset, the `label` property will be shown.
|
|
10
|
+
*/
|
|
11
|
+
headline?(bindings: Pick<OnyxAlertDialogProps, "label">): unknown;
|
|
12
|
+
/**
|
|
13
|
+
* Slot to display custom actions at the bottom of the dialog, e.g. buttons for confirm or cancelling the current user workflow.
|
|
14
|
+
* For accessibility purposes it is recommended to set autofocus on one button, preferably the "cancel" button if one exists.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```vue
|
|
18
|
+
* <OnyxButton label="Cancel" color="neutral" mode="plain" autofocus />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
actions?(): unknown;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_component: import("vue").DefineComponent<OnyxAlertDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
close: () => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<OnyxAlertDialogProps> & Readonly<{
|
|
26
|
+
onClose?: (() => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { OnyxDialogProps } from "../OnyxDialog/types";
|
|
2
|
+
import type { OnyxIconProps } from "../OnyxIcon/types";
|
|
3
|
+
export type OnyxAlertDialogProps = Omit<OnyxDialogProps, "modal" | "alert"> & {
|
|
4
|
+
/**
|
|
5
|
+
* Optional icon to show.
|
|
6
|
+
*/
|
|
7
|
+
icon?: Omit<OnyxIconProps, "size">;
|
|
8
|
+
};
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import type { OnyxAppLayoutProps } from "./types";
|
|
2
|
-
|
|
3
|
-
/** Navigation area of the application */
|
|
4
|
-
navBar?(): unknown;
|
|
5
|
-
/** Page content area of the application */
|
|
6
|
-
default(): unknown;
|
|
7
|
-
/** Overlays that cover the page and exclude the nav area */
|
|
8
|
-
pageOverlay?(): unknown;
|
|
9
|
-
/** Overlays that cover the complete page */
|
|
10
|
-
appOverlay?(): unknown;
|
|
11
|
-
}> & {
|
|
2
|
+
type __VLS_Slots = {
|
|
12
3
|
/** Navigation area of the application */
|
|
13
4
|
navBar?(): unknown;
|
|
14
5
|
/** Page content area of the application */
|
|
@@ -18,35 +9,13 @@ declare function __VLS_template(): Readonly<{
|
|
|
18
9
|
/** Overlays that cover the complete page */
|
|
19
10
|
appOverlay?(): unknown;
|
|
20
11
|
};
|
|
21
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
22
|
-
navBarAlignment: string;
|
|
23
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxAppLayoutProps>, {
|
|
24
|
-
navBarAlignment: string;
|
|
25
|
-
}>>>, {
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<OnyxAppLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAppLayoutProps> & Readonly<{}>, {
|
|
26
13
|
navBarAlignment: "top" | "left";
|
|
27
|
-
}, {}>;
|
|
28
|
-
declare const _default:
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
29
16
|
export default _default;
|
|
30
|
-
|
|
31
|
-
type __VLS_WithDefaults<P, D> = {
|
|
32
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
-
default: D[K];
|
|
34
|
-
}> : P[K];
|
|
35
|
-
};
|
|
36
|
-
type __VLS_Prettify<T> = {
|
|
37
|
-
[K in keyof T]: T[K];
|
|
38
|
-
} & {};
|
|
39
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
40
18
|
new (): {
|
|
41
19
|
$slots: S;
|
|
42
20
|
};
|
|
43
21
|
};
|
|
44
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
|
-
type __VLS_TypePropsToOption<T> = {
|
|
46
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
48
|
-
} : {
|
|
49
|
-
type: import('vue').PropType<T[K]>;
|
|
50
|
-
required: true;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
@@ -1,43 +1,5 @@
|
|
|
1
1
|
import type { OnyxAvatarProps } from "./types";
|
|
2
|
-
declare
|
|
3
|
-
/**
|
|
4
|
-
* Optional slot to override the default initials. Will only be used if `type` is `initials`.
|
|
5
|
-
*/
|
|
6
|
-
default?(): unknown;
|
|
7
|
-
}> & {
|
|
8
|
-
/**
|
|
9
|
-
* Optional slot to override the default initials. Will only be used if `type` is `initials`.
|
|
10
|
-
*/
|
|
11
|
-
default?(): unknown;
|
|
12
|
-
};
|
|
13
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxAvatarProps>, {
|
|
14
|
-
size: string;
|
|
15
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxAvatarProps>, {
|
|
16
|
-
size: string;
|
|
17
|
-
}>>>, {
|
|
2
|
+
declare const _default: import("vue").DefineComponent<OnyxAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAvatarProps> & Readonly<{}>, {
|
|
18
3
|
size: "16px" | "24px" | "32px" | "48px" | "64px" | "96px";
|
|
19
|
-
}, {}>;
|
|
20
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
4
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLElement>;
|
|
21
5
|
export default _default;
|
|
22
|
-
type __VLS_WithDefaults<P, D> = {
|
|
23
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
24
|
-
default: D[K];
|
|
25
|
-
}> : P[K];
|
|
26
|
-
};
|
|
27
|
-
type __VLS_Prettify<T> = {
|
|
28
|
-
[K in keyof T]: T[K];
|
|
29
|
-
} & {};
|
|
30
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
-
new (): {
|
|
32
|
-
$slots: S;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
-
type __VLS_TypePropsToOption<T> = {
|
|
37
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
-
} : {
|
|
40
|
-
type: import('vue').PropType<T[K]>;
|
|
41
|
-
required: true;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import type { IconSize, IconSizeProp } from "../OnyxIcon/types";
|
|
2
2
|
export type OnyxAvatarProps = IconSizeProp<Exclude<IconSize, "12px">> & {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Full user name. Will determine the displayed initials.
|
|
5
|
+
*
|
|
6
|
+
* @example "John Doe"
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
fullName: DisplayName;
|
|
8
9
|
/**
|
|
9
10
|
* Image URL to show. If unset or an error occurs while loading, a fallback will be displayed
|
|
10
11
|
* with the initials.
|
|
11
12
|
*/
|
|
12
13
|
src?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Initials to use. If unset, they will be inferred automatically from the `fullName` property.
|
|
16
|
+
*/
|
|
17
|
+
initials?: string;
|
|
18
|
+
};
|
|
19
|
+
export type DisplayName = string | {
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Locale of the given name. Will be used for formatting.
|
|
23
|
+
*/
|
|
24
|
+
locale: string;
|
|
13
25
|
};
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Default slot to place the avatars.
|
|
4
|
-
*/
|
|
5
|
-
default(): unknown;
|
|
6
|
-
}> & {
|
|
1
|
+
type __VLS_Slots = {
|
|
7
2
|
/**
|
|
8
3
|
* Default slot to place the avatars.
|
|
9
4
|
*/
|
|
10
5
|
default(): unknown;
|
|
11
6
|
};
|
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
13
|
-
declare const _default:
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
8
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
14
9
|
export default _default;
|
|
15
|
-
type
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
11
|
new (): {
|
|
17
12
|
$slots: S;
|
|
18
13
|
};
|
|
@@ -1,46 +1,18 @@
|
|
|
1
1
|
import type { OnyxBadgeProps } from "./types";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Badge content.
|
|
5
|
-
*/
|
|
6
|
-
default?(): unknown;
|
|
7
|
-
}> & {
|
|
2
|
+
type __VLS_Slots = {
|
|
8
3
|
/**
|
|
9
4
|
* Badge content.
|
|
10
5
|
*/
|
|
11
6
|
default?(): unknown;
|
|
12
7
|
};
|
|
13
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
14
|
-
color:
|
|
15
|
-
dot: boolean;
|
|
16
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxBadgeProps>, {
|
|
17
|
-
color: string;
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<OnyxBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxBadgeProps> & Readonly<{}>, {
|
|
9
|
+
color: import("../../index.ts").OnyxColor;
|
|
18
10
|
dot: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
dot: boolean;
|
|
22
|
-
}, {}>;
|
|
23
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
24
13
|
export default _default;
|
|
25
|
-
type
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_Prettify<T> = {
|
|
31
|
-
[K in keyof T]: T[K];
|
|
32
|
-
} & {};
|
|
33
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
15
|
new (): {
|
|
35
16
|
$slots: S;
|
|
36
17
|
};
|
|
37
18
|
};
|
|
38
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
|
-
type __VLS_TypePropsToOption<T> = {
|
|
40
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
-
} : {
|
|
43
|
-
type: import('vue').PropType<T[K]>;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { OnyxBottomBarProps } from "./types";
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
/**
|
|
4
|
+
* Bottom bar content. This slot is left aligned and should be used by buttons and icon buttons.
|
|
5
|
+
*/
|
|
6
|
+
left?(): unknown;
|
|
7
|
+
/**
|
|
8
|
+
* Bottom bar content. This slot is right aligned and should be used by buttons and icon buttons.
|
|
9
|
+
*/
|
|
10
|
+
default?(): unknown;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<OnyxBottomBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxBottomBarProps> & Readonly<{}>, {
|
|
13
|
+
hideBorder: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { OnyxButtonProps } from "./types";
|
|
2
|
+
type __VLS_Props = Pick<OnyxButtonProps, "disabled" | "link" | "loading" | "type" | "autofocus">;
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
/**
|
|
5
|
+
* Button content.
|
|
6
|
+
*/
|
|
7
|
+
default(): unknown;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { DensityProp } from "../../composables/density";
|
|
2
|
+
import type { SkeletonInjected } from "../../composables/useSkeletonState";
|
|
2
3
|
import type { AutofocusProp } from "../../types";
|
|
4
|
+
import type { FormInjected } from "../OnyxForm/OnyxForm.core";
|
|
5
|
+
import type { WithLinkProp } from "../OnyxRouterLink/types";
|
|
3
6
|
export type OnyxButtonProps = DensityProp & AutofocusProp & {
|
|
4
7
|
/**
|
|
5
8
|
* The text content of the button.
|
|
@@ -8,7 +11,7 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
|
|
|
8
11
|
/**
|
|
9
12
|
* If the button should be disabled or not.
|
|
10
13
|
*/
|
|
11
|
-
disabled?: boolean
|
|
14
|
+
disabled?: FormInjected<boolean>;
|
|
12
15
|
/**
|
|
13
16
|
* Shows a loading indicator.
|
|
14
17
|
*/
|
|
@@ -32,7 +35,12 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
|
|
|
32
35
|
/**
|
|
33
36
|
* Whether to show a skeleton button.
|
|
34
37
|
*/
|
|
35
|
-
skeleton?:
|
|
38
|
+
skeleton?: SkeletonInjected;
|
|
39
|
+
/**
|
|
40
|
+
* If set, the button will be rendered as link.
|
|
41
|
+
* Note that not all button properties are supported when used as link, e.g. `disabled`, `type` and `autofocus` are not supported.
|
|
42
|
+
*/
|
|
43
|
+
link?: WithLinkProp["link"];
|
|
36
44
|
};
|
|
37
45
|
export declare const BUTTON_TYPES: readonly ["button", "submit", "reset"];
|
|
38
46
|
export type ButtonType = (typeof BUTTON_TYPES)[number];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OnyxCardProps } from "./types";
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
/**
|
|
4
|
+
* Card content.
|
|
5
|
+
*/
|
|
6
|
+
default(): unknown;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<OnyxCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxCardProps> & Readonly<{}>, {
|
|
9
|
+
clickable: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DensityProp } from "../../composables/density";
|
|
2
|
+
export type OnyxCardProps = DensityProp & {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the whole card should be clickable (will render it as `<button>`).
|
|
5
|
+
* **Important**: If clickable, the card must not contain interactive elements like other buttons etc.
|
|
6
|
+
*/
|
|
7
|
+
clickable?: boolean;
|
|
8
|
+
};
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import type { SelectOptionValue } from "../../types";
|
|
2
2
|
import type { OnyxCheckboxProps } from "./types";
|
|
3
|
-
declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
4
|
-
props:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps &
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
3
|
+
declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
6
|
+
readonly onValidityChange?: ((validity: ValidityState) => any) | undefined;
|
|
7
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onValidityChange"> & OnyxCheckboxProps<TValue> & Partial<{}>> & import("vue").PublicProps;
|
|
8
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
9
|
+
input: Readonly<import("vue").ShallowRef<HTMLInputElement | null>>;
|
|
10
|
+
}>): void;
|
|
12
11
|
attrs: any;
|
|
13
|
-
slots:
|
|
14
|
-
emit: ((
|
|
12
|
+
slots: {};
|
|
13
|
+
emit: ((evt: "update:modelValue", value: boolean) => void) & ((evt: "validityChange", validity: ValidityState) => void);
|
|
15
14
|
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
15
|
[key: string]: any;
|
|
17
16
|
}> & {
|
|
18
17
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
18
|
};
|
|
20
19
|
export default _default;
|
|
21
|
-
type
|
|
20
|
+
type __VLS_PrettifyLocal<T> = {
|
|
22
21
|
[K in keyof T]: T[K];
|
|
23
22
|
} & {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
import type { AutofocusProp, BaseSelectOption, SelectOptionValue } from "../../types";
|
|
4
|
-
export type OnyxCheckboxProps<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredMarkerProp & CustomValidityProp & AutofocusProp & {
|
|
1
|
+
import type { BaseSelectOption, SelectOptionValue } from "../../types";
|
|
2
|
+
export type OnyxCheckboxProps<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & {
|
|
5
3
|
/**
|
|
6
4
|
* Whether the checkbox is checked.
|
|
7
5
|
*/
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { SelectOptionValue } from "../../types";
|
|
2
2
|
import type { OnyxCheckboxGroupProps } from "./types";
|
|
3
|
-
declare const _default: <TValue extends SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
4
|
-
props:
|
|
5
|
-
"onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
|
|
6
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps &
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
declare const _default: <TValue extends SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly "onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
|
|
6
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & OnyxCheckboxGroupProps<TValue> & Partial<{}>> & import("vue").PublicProps;
|
|
7
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
8
|
+
inputs: import("vue").ComputedRef<HTMLInputElement[]>;
|
|
9
|
+
}>): void;
|
|
10
10
|
attrs: any;
|
|
11
|
-
slots:
|
|
12
|
-
emit: (
|
|
11
|
+
slots: {};
|
|
12
|
+
emit: (evt: "update:modelValue", value: TValue[]) => void;
|
|
13
13
|
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
}> & {
|
|
16
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
17
|
};
|
|
18
18
|
export default _default;
|
|
19
|
-
type
|
|
19
|
+
type __VLS_PrettifyLocal<T> = {
|
|
20
20
|
[K in keyof T]: T[K];
|
|
21
21
|
} & {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { RequiredMarkerProp } from "../../composables/required";
|
|
1
|
+
import type { RequiredProp } from "../../composables/required";
|
|
3
2
|
import type { CustomValidityProp } from "../../composables/useCustomValidity";
|
|
4
3
|
import type { AutofocusProp, BaseSelectOption, Direction, SelectOptionValue } from "../../types";
|
|
5
|
-
|
|
4
|
+
import type { SharedFormElementProps } from "../OnyxFormElement/types";
|
|
5
|
+
export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOptionValue> = Pick<BaseSelectOption, "truncation"> & Pick<SharedFormElementProps, "label" | "labelTooltip" | "hideLabel" | "density" | "skeleton" | "disabled" | "requiredMarker"> & {
|
|
6
6
|
/**
|
|
7
7
|
* Checkbox options.
|
|
8
8
|
*/
|
|
@@ -11,10 +11,6 @@ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOpti
|
|
|
11
11
|
* Currently checked checkboxes.
|
|
12
12
|
*/
|
|
13
13
|
modelValue?: TValue[];
|
|
14
|
-
/**
|
|
15
|
-
* Headline to show above all checkboxes which is also the fieldset legend.
|
|
16
|
-
*/
|
|
17
|
-
headline?: string;
|
|
18
14
|
/**
|
|
19
15
|
* Direction of the checkboxes.
|
|
20
16
|
*/
|
|
@@ -30,13 +26,5 @@ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOpti
|
|
|
30
26
|
*/
|
|
31
27
|
label?: string;
|
|
32
28
|
};
|
|
33
|
-
/**
|
|
34
|
-
* Whether all checkboxes should be disabled.
|
|
35
|
-
*/
|
|
36
|
-
disabled?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* If set, the specified number of skeleton radio buttons will be shown.
|
|
39
|
-
*/
|
|
40
|
-
skeleton?: number;
|
|
41
29
|
};
|
|
42
|
-
export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> &
|
|
30
|
+
export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredProp & CustomValidityProp & AutofocusProp;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ColumnGroupConfig, type DataGridFeature, type TypeRenderMap } from "./features";
|
|
2
|
+
import type { DataGridEntry, OnyxDataGridProps } from "./types";
|
|
3
|
+
declare const _default: <TEntry extends DataGridEntry, TTypeRenderer extends TypeRenderMap<TEntry>, TColumnGroup extends ColumnGroupConfig, TFeatureName extends symbol, TFeatures extends DataGridFeature<TEntry, TTypeRenderer, TFeatureName>[] | []>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & OnyxDataGridProps<TEntry, TColumnGroup, TTypeRenderer, TFeatureName, TFeatures> & Partial<{}>> & import("vue").PublicProps;
|
|
5
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
6
|
+
attrs: any;
|
|
7
|
+
slots: {
|
|
8
|
+
/**
|
|
9
|
+
* Optional slot to customize the empty state when no data exist.
|
|
10
|
+
*
|
|
11
|
+
* If unset, the default empty content of OnyxTable will be displayed.
|
|
12
|
+
*/
|
|
13
|
+
empty?(): unknown;
|
|
14
|
+
};
|
|
15
|
+
emit: {};
|
|
16
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}> & {
|
|
19
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_PrettifyLocal<T> = {
|
|
23
|
+
[K in keyof T]: T[K];
|
|
24
|
+
} & {};
|