@knime/kds-components 0.1.0 → 0.2.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.
@@ -1,20 +1,3 @@
1
- import { Component } from 'vue';
2
- import { BaseButtonProps } from './types';
3
- declare const _default: <UNUSED>(__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 onClick?: ((event: MouseEvent) => any) | undefined;
6
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick"> & (BaseButtonProps & {
7
- component?: string | Component;
8
- }) & Partial<{}>> & import('vue').PublicProps;
9
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
- attrs: any;
11
- slots: {};
12
- emit: (evt: "click", event: MouseEvent) => void;
13
- }>) => import('vue').VNode & {
14
- __ctx?: Awaited<typeof __VLS_setup>;
15
- };
1
+ declare const _default: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
16
2
  export default _default;
17
- type __VLS_PrettifyLocal<T> = {
18
- [K in keyof T]: T[K];
19
- } & {};
20
3
  //# sourceMappingURL=BaseButton.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseButton.vue.d.ts","sourceRoot":"","sources":["../../src/Button/BaseButton.vue"],"names":[],"mappings":"AAkSA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,KAAK,CAAC;AAI/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;yBAE9B,MAAM,EACtB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAsKO,mBAAmB,CAAC;;;oBApKd,MAAM,GAAG,SAAS;oBAoK8D,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;EAIP,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAjLzE,wBAiL4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"BaseButton.vue.d.ts","sourceRoot":"","sources":["../../src/Button/BaseButton.vue"],"names":[],"mappings":";AAucA,wBASG"}
@@ -1,16 +1,43 @@
1
- declare const _default: <UNUSED>(__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<{
2
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
3
- readonly onClick?: ((event: MouseEvent) => any) | undefined;
4
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick"> & import('./types').BaseButtonProps & Partial<{}>> & import('vue').PublicProps;
5
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
6
- attrs: any;
7
- slots: {};
8
- emit: (evt: "click", event: MouseEvent) => void;
9
- }>) => import('vue').VNode & {
10
- __ctx?: Awaited<typeof __VLS_setup>;
11
- };
1
+ declare const _default: import('vue').DefineComponent<({
2
+ variant?: import('./types').KdsButtonVariant;
3
+ size?: import('../types').KdsSize;
4
+ destructive?: boolean;
5
+ disabled?: boolean;
6
+ } & {
7
+ label: string;
8
+ leadingIcon?: import('packages/styles/dist/img/icons/def').IconName;
9
+ trailingIcon?: import('packages/styles/dist/img/icons/def').IconName;
10
+ }) | ({
11
+ variant?: import('./types').KdsButtonVariant;
12
+ size?: import('../types').KdsSize;
13
+ destructive?: boolean;
14
+ disabled?: boolean;
15
+ } & {
16
+ label?: never;
17
+ leadingIcon: import('packages/styles/dist/img/icons/def').IconName;
18
+ trailingIcon?: never;
19
+ }), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ click: (event: MouseEvent) => any;
21
+ }, string, import('vue').PublicProps, Readonly<({
22
+ variant?: import('./types').KdsButtonVariant;
23
+ size?: import('../types').KdsSize;
24
+ destructive?: boolean;
25
+ disabled?: boolean;
26
+ } & {
27
+ label: string;
28
+ leadingIcon?: import('packages/styles/dist/img/icons/def').IconName;
29
+ trailingIcon?: import('packages/styles/dist/img/icons/def').IconName;
30
+ }) | ({
31
+ variant?: import('./types').KdsButtonVariant;
32
+ size?: import('../types').KdsSize;
33
+ destructive?: boolean;
34
+ disabled?: boolean;
35
+ } & {
36
+ label?: never;
37
+ leadingIcon: import('packages/styles/dist/img/icons/def').IconName;
38
+ trailingIcon?: never;
39
+ })> & Readonly<{
40
+ onClick?: ((event: MouseEvent) => any) | undefined;
41
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
42
  export default _default;
13
- type __VLS_PrettifyLocal<T> = {
14
- [K in keyof T]: T[K];
15
- } & {};
16
43
  //# sourceMappingURL=KdsButton.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KdsButton.vue.d.ts","sourceRoot":"","sources":["../../src/Button/KdsButton.vue"],"names":[],"mappings":"yBAmBiB,MAAM,EACtB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAuEO,mBAAmB,CAAC;;iLAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;EAIP,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAlFzE,wBAkF4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"KdsButton.vue.d.ts","sourceRoot":"","sources":["../../src/Button/KdsButton.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,wBAQG"}
@@ -1,17 +1,3 @@
1
- import { KdsLinkButtonProps } from './types';
2
- declare const _default: <UNUSED>(__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 onClick?: ((event: MouseEvent) => any) | undefined;
5
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick"> & KdsLinkButtonProps & Partial<{}>> & import('vue').PublicProps;
6
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
7
- attrs: any;
8
- slots: {};
9
- emit: (e: "click", event: MouseEvent) => void;
10
- }>) => import('vue').VNode & {
11
- __ctx?: Awaited<typeof __VLS_setup>;
12
- };
1
+ declare const _default: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
13
2
  export default _default;
14
- type __VLS_PrettifyLocal<T> = {
15
- [K in keyof T]: T[K];
16
- } & {};
17
3
  //# sourceMappingURL=KdsLinkButton.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KdsLinkButton.vue.d.ts","sourceRoot":"","sources":["../../src/Button/KdsLinkButton.vue"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;yBAEjC,MAAM,EACtB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA2FO,mBAAmB,CAAC;;kKAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA7EL,OAAO,SAAS,UAAU,KAAG,IAAI;EAiFnC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAtGzE,wBAsG4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"KdsLinkButton.vue.d.ts","sourceRoot":"","sources":["../../src/Button/KdsLinkButton.vue"],"names":[],"mappings":";AA8HA,wBASG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDialogElement>;
2
+ export default _default;
3
+ //# sourceMappingURL=KdsConfirmDialog.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KdsConfirmDialog.vue.d.ts","sourceRoot":"","sources":["../../src/Modal/KdsConfirmDialog.vue"],"names":[],"mappings":";AAoVA,wBAMG"}
@@ -0,0 +1,36 @@
1
+ import { KdsModalProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ footer?(_: {}): any;
7
+ };
8
+ refs: {
9
+ dialogElement: HTMLDialogElement;
10
+ };
11
+ rootEl: HTMLDialogElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<KdsModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ close: (event: Event) => any;
16
+ }, string, import('vue').PublicProps, Readonly<KdsModalProps> & Readonly<{
17
+ onClose?: ((event: Event) => any) | undefined;
18
+ }>, {
19
+ title: string;
20
+ variant: "default" | "plain";
21
+ icon: import('packages/styles/dist/img/icons/def').IconName;
22
+ width: "small" | "medium" | "large" | "xlarge" | "full";
23
+ height: "full" | "auto";
24
+ active: boolean;
25
+ closedby: "any" | "closerequest" | "none";
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
27
+ dialogElement: HTMLDialogElement;
28
+ }, HTMLDialogElement>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
36
+ //# sourceMappingURL=KdsModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KdsModal.vue.d.ts","sourceRoot":"","sources":["../../src/Modal/KdsModal.vue"],"names":[],"mappings":"AAyLA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAqE7C,iBAAS,cAAc;WA+FT,OAAO,IAA6B;;yBAZpB,GAAG;wBACJ,GAAG;;;;;;EAgB/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;qBAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const closedByOptions: readonly ["any", "closerequest", "none"];
2
+ export declare const widthSizes: readonly ["small", "medium", "large", "xlarge", "full"];
3
+ export declare const heightSizes: readonly ["auto", "full"];
4
+ export declare const modalVariants: readonly ["default", "plain"];
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/Modal/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,0CAA2C,CAAC;AACxE,eAAO,MAAM,UAAU,yDAMb,CAAC;AACX,eAAO,MAAM,WAAW,2BAA4B,CAAC;AACrD,eAAO,MAAM,aAAa,+BAAgC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { KdsIconName } from '../Icon/types';
2
+ import { closedByOptions, heightSizes, modalVariants, widthSizes } from './constants';
3
+ type WidthSizes = (typeof widthSizes)[number];
4
+ type HeightSizes = (typeof heightSizes)[number];
5
+ type ModalVariants = (typeof modalVariants)[number];
6
+ type ClosedByOptionsType = (typeof closedByOptions)[number];
7
+ export type KdsModalProps = {
8
+ icon?: KdsIconName;
9
+ title?: string;
10
+ /**
11
+ * default: does scroll and has padding
12
+ * plain: no scrolling or padding of the content
13
+ */
14
+ variant?: ModalVariants;
15
+ width?: WidthSizes;
16
+ /**
17
+ * full: take all space,
18
+ * auto: dialog is growing with the content.
19
+ */
20
+ height?: HeightSizes;
21
+ /** Whether the dialog is visible or not */
22
+ active?: boolean;
23
+ /** https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog#closedby */
24
+ closedby?: ClosedByOptionsType;
25
+ };
26
+ export {};
27
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Modal/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,aAAa,EACb,UAAU,EACX,MAAM,aAAa,CAAC;AAErB,KAAK,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9C,KAAK,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAChD,KAAK,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AACpD,KAAK,mBAAmB,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC"}
@@ -0,0 +1,150 @@
1
+ import { VNode } from 'vue';
2
+ import { KdsButtonProps } from '../Button/types';
3
+ import { KdsModalProps } from './types';
4
+ type CommonButtonProps = {
5
+ label: string;
6
+ autofocus?: boolean;
7
+ destructive?: boolean;
8
+ variant?: KdsButtonProps["variant"];
9
+ flushLeft?: boolean;
10
+ };
11
+ export type UseKdsConfirmDialogConfirmationButton = CommonButtonProps & {
12
+ type: "confirm";
13
+ customHandler?: (actions: {
14
+ confirm: () => void;
15
+ }) => void;
16
+ };
17
+ export type UseKdsConfirmDialogCancellationButton = CommonButtonProps & {
18
+ type: "cancel";
19
+ customHandler?: (actions: {
20
+ cancel: () => void;
21
+ }) => void;
22
+ };
23
+ export type UseKdsConfirmDialogButton = UseKdsConfirmDialogConfirmationButton | UseKdsConfirmDialogCancellationButton;
24
+ type CommonConfig = {
25
+ /**
26
+ * Dialog title
27
+ */
28
+ title: string;
29
+ /**
30
+ * Icon shown in the title bar of the dialog. Defaults to no icon used
31
+ */
32
+ icon?: KdsModalProps["icon"];
33
+ /**
34
+ * If the dialog gets closed by user actions:
35
+ * closerequest: pressing the "Esc" key (or equivalent on mobile) dismisses the dialog.
36
+ * any: the above and also clicking outside of the dialog
37
+ *
38
+ * Defaults to 'closerequest'
39
+ */
40
+ closedby?: KdsModalProps["closedby"];
41
+ /**
42
+ * Confirmation or cancellation buttons if omitted default ones are set
43
+ */
44
+ buttons?: Array<UseKdsConfirmDialogButton>;
45
+ };
46
+ export type UseKdsConfirmDialogPropertyBasedConfig = CommonConfig & {
47
+ /**
48
+ * The message displayed in the dialog body
49
+ */
50
+ message: string;
51
+ /**
52
+ * The label and helperText to be rendered for the "do not ask again" checkbox option.
53
+ * The title will be shown as tooltip on hover. The checkbox will only be present when
54
+ * an object is supplied. The value will be returned on the dialog result.
55
+ * Defaults to empty undefined.
56
+ */
57
+ doNotAskAgain?: {
58
+ label: string;
59
+ title?: string;
60
+ helperText?: string;
61
+ };
62
+ };
63
+ export type UseKdsConfirmDialogComponentBasedConfig = CommonConfig & {
64
+ /**
65
+ * A component (supplied as Vue VNode instance) to be used as the template
66
+ * for the dialog body
67
+ */
68
+ component: VNode;
69
+ };
70
+ type ModalConfig = UseKdsConfirmDialogPropertyBasedConfig | UseKdsConfirmDialogComponentBasedConfig;
71
+ type ConfirmResult = {
72
+ confirmed: boolean;
73
+ doNotAskAgain?: boolean;
74
+ };
75
+ export declare const useKdsConfirmDialog: () => {
76
+ show: {
77
+ (config: UseKdsConfirmDialogPropertyBasedConfig): Promise<ConfirmResult>;
78
+ (config: UseKdsConfirmDialogComponentBasedConfig): Promise<ConfirmResult>;
79
+ };
80
+ confirm: (doNotAskAgain?: boolean) => void;
81
+ cancel: () => void;
82
+ config: import('vue').ComputedRef<{
83
+ title: string;
84
+ icon?: "ai-general" | "annotation-mode" | "arrow-down" | "arrow-up" | "arrows-expand" | "arrows-move" | "arrows-order" | "back" | "bold" | "calendar" | "case-sensitive" | "center-aligned" | "checkmark" | "chevron-down" | "chevron-left-double" | "chevron-left" | "chevron-right-double" | "chevron-right" | "chevron-up" | "circle-error" | "circle-info" | "circle-question" | "circle-success" | "cloud-download" | "cloud-knime" | "cloud-upload" | "cloud-workflow" | "code-block" | "color-picker" | "comment" | "component" | "connection" | "copy" | "cursor" | "data-app" | "data-value-view" | "date-time" | "db-database" | "db-schema" | "db-table-view" | "db-table" | "deploy" | "detect" | "divider" | "duration" | "edit" | "education" | "error-panel" | "execute-all" | "execute" | "expand-panel" | "extension-community" | "extension" | "external-link" | "eye" | "file-export" | "file-text" | "file" | "filter" | "flow-variable-default" | "flow-variable-in-out" | "flow-variable-in" | "flow-variable-out" | "folder-plus" | "folder-workflow" | "folder" | "forum" | "function-catalog" | "home" | "import" | "info" | "interval" | "italic" | "layout-editor" | "left-aligned" | "like" | "limit" | "link" | "linked-metanode" | "list-bulletpoint" | "list-number" | "list-thumbs" | "list" | "local-filesystem" | "lock" | "metanode" | "mini-map" | "minimize-dialog" | "minus" | "more-actions" | "node-stack" | "nodes-align-horiz" | "nodes-align-vert" | "open-in-new-window" | "pan-mode" | "parameter" | "pending-changes" | "placeholder" | "plus" | "quote" | "re-execution" | "redo" | "regex" | "reload" | "rename" | "replace" | "reset-all" | "resume-execution" | "right-aligned" | "rocket" | "save-as" | "save" | "schedule" | "search" | "selected-cancel" | "selected-execution" | "selected-reset" | "send" | "server-rack-workflow" | "settings" | "share" | "shortcuts" | "sort-ascending" | "sort-descending" | "space-local" | "space-private" | "space" | "stepwise-execution" | "strikethrough" | "text" | "textstyles" | "thumbs-down" | "thumbs-up" | "time" | "to-bottom" | "to-top" | "trash" | "trigger" | "underline" | "undo" | "unlink" | "user" | "view-cards" | "warning" | "workflow" | "x-close" | undefined;
85
+ closedby?: "any" | "closerequest" | "none" | undefined;
86
+ buttons?: ({
87
+ label: string;
88
+ autofocus?: boolean | undefined;
89
+ destructive?: boolean | undefined;
90
+ variant?: "filled" | "outlined" | "transparent" | undefined;
91
+ flushLeft?: boolean | undefined;
92
+ type: "confirm";
93
+ customHandler?: ((actions: {
94
+ confirm: () => void;
95
+ }) => void) | undefined;
96
+ } | {
97
+ label: string;
98
+ autofocus?: boolean | undefined;
99
+ destructive?: boolean | undefined;
100
+ variant?: "filled" | "outlined" | "transparent" | undefined;
101
+ flushLeft?: boolean | undefined;
102
+ type: "cancel";
103
+ customHandler?: ((actions: {
104
+ cancel: () => void;
105
+ }) => void) | undefined;
106
+ })[] | undefined;
107
+ message: string;
108
+ doNotAskAgain?: {
109
+ label: string;
110
+ title?: string | undefined;
111
+ helperText?: string | undefined;
112
+ } | undefined;
113
+ } | {
114
+ title: string;
115
+ icon?: "ai-general" | "annotation-mode" | "arrow-down" | "arrow-up" | "arrows-expand" | "arrows-move" | "arrows-order" | "back" | "bold" | "calendar" | "case-sensitive" | "center-aligned" | "checkmark" | "chevron-down" | "chevron-left-double" | "chevron-left" | "chevron-right-double" | "chevron-right" | "chevron-up" | "circle-error" | "circle-info" | "circle-question" | "circle-success" | "cloud-download" | "cloud-knime" | "cloud-upload" | "cloud-workflow" | "code-block" | "color-picker" | "comment" | "component" | "connection" | "copy" | "cursor" | "data-app" | "data-value-view" | "date-time" | "db-database" | "db-schema" | "db-table-view" | "db-table" | "deploy" | "detect" | "divider" | "duration" | "edit" | "education" | "error-panel" | "execute-all" | "execute" | "expand-panel" | "extension-community" | "extension" | "external-link" | "eye" | "file-export" | "file-text" | "file" | "filter" | "flow-variable-default" | "flow-variable-in-out" | "flow-variable-in" | "flow-variable-out" | "folder-plus" | "folder-workflow" | "folder" | "forum" | "function-catalog" | "home" | "import" | "info" | "interval" | "italic" | "layout-editor" | "left-aligned" | "like" | "limit" | "link" | "linked-metanode" | "list-bulletpoint" | "list-number" | "list-thumbs" | "list" | "local-filesystem" | "lock" | "metanode" | "mini-map" | "minimize-dialog" | "minus" | "more-actions" | "node-stack" | "nodes-align-horiz" | "nodes-align-vert" | "open-in-new-window" | "pan-mode" | "parameter" | "pending-changes" | "placeholder" | "plus" | "quote" | "re-execution" | "redo" | "regex" | "reload" | "rename" | "replace" | "reset-all" | "resume-execution" | "right-aligned" | "rocket" | "save-as" | "save" | "schedule" | "search" | "selected-cancel" | "selected-execution" | "selected-reset" | "send" | "server-rack-workflow" | "settings" | "share" | "shortcuts" | "sort-ascending" | "sort-descending" | "space-local" | "space-private" | "space" | "stepwise-execution" | "strikethrough" | "text" | "textstyles" | "thumbs-down" | "thumbs-up" | "time" | "to-bottom" | "to-top" | "trash" | "trigger" | "underline" | "undo" | "unlink" | "user" | "view-cards" | "warning" | "workflow" | "x-close" | undefined;
116
+ closedby?: "any" | "closerequest" | "none" | undefined;
117
+ buttons?: ({
118
+ label: string;
119
+ autofocus?: boolean | undefined;
120
+ destructive?: boolean | undefined;
121
+ variant?: "filled" | "outlined" | "transparent" | undefined;
122
+ flushLeft?: boolean | undefined;
123
+ type: "confirm";
124
+ customHandler?: ((actions: {
125
+ confirm: () => void;
126
+ }) => void) | undefined;
127
+ } | {
128
+ label: string;
129
+ autofocus?: boolean | undefined;
130
+ destructive?: boolean | undefined;
131
+ variant?: "filled" | "outlined" | "transparent" | undefined;
132
+ flushLeft?: boolean | undefined;
133
+ type: "cancel";
134
+ customHandler?: ((actions: {
135
+ cancel: () => void;
136
+ }) => void) | undefined;
137
+ })[] | undefined;
138
+ component: VNode;
139
+ } | null>;
140
+ isActive: import('vue').ComputedRef<boolean>;
141
+ dialogResult: import('vue').ComputedRef<{
142
+ then: <TResult1 = ConfirmResult, TResult2 = never>(onfulfilled?: ((value: ConfirmResult) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
143
+ catch: <TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined) => Promise<ConfirmResult | TResult>;
144
+ finally: (onfinally?: (() => void) | null | undefined) => Promise<ConfirmResult>;
145
+ readonly [Symbol.toStringTag]: string;
146
+ }>;
147
+ isComponentBasedConfig: (config: ModalConfig) => config is UseKdsConfirmDialogComponentBasedConfig;
148
+ };
149
+ export {};
150
+ //# sourceMappingURL=useKdsConfirmDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKdsConfirmDialog.d.ts","sourceRoot":"","sources":["../../src/Modal/useKdsConfirmDialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAiB,MAAM,KAAK,CAAC;AAIhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB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