@hotelinking/ui 10.41.11 → 10.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/Atoms/uiButton/uiButton.vue.d.ts +2 -2
- package/dist/types/components/Atoms/uiCheckbox/uiCheckbox.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiDropdown/uiDropdown.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiIcon/uiIcon.vue.d.ts +2 -2
- package/dist/types/components/Atoms/uiInput/uiInput.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiInputFile/uiInputFile.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiRangeSlider/uiRangeSlider.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiSelect/uiSelect.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiTag/uiTag.vue.d.ts +2 -2
- package/dist/types/components/Atoms/uiTextArea/uiTextArea.vue.d.ts +2 -2
- package/dist/types/components/Atoms/uiToggle/uiToggle.vue.d.ts +1 -1
- package/dist/types/components/Molecules/uiAlert/uiAlert.vue.d.ts +1 -1
- package/dist/types/components/Molecules/uiFilter/uiFilter.vue.d.ts +1 -1
- package/dist/types/components/Molecules/uiModal/uiModal.vue.d.ts +1 -1
- package/dist/types/components/Molecules/uiNotification/uiNotification.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiCharts/uiChart.vue.d.ts +2 -2
- package/dist/types/components/Organisms/uiCircleCharts/uiCircleChart.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiFunnelChartV2/uiFunnelChartV2.vue.d.ts +2 -2
- package/dist/types/components/Organisms/uiSmartFilter/uiSmartFilter.vue.d.ts +24 -0
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/types/index.d.ts +30 -3
- package/dist/ui.cjs +1 -1
- package/dist/ui.es.js +1476 -1432
- package/package.json +1 -1
|
@@ -9,9 +9,9 @@ declare function __VLS_template(): {
|
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
11
|
declare const __VLS_component: import("vue").DefineComponent<UiButtonInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiButtonInterface> & Readonly<{}>, {
|
|
12
|
-
size: "small" | "medium" | "big";
|
|
13
|
-
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red";
|
|
14
12
|
loading: boolean;
|
|
13
|
+
size: "big" | "small" | "medium";
|
|
14
|
+
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red";
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
17
|
export default _default;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_component: import("vue").DefineComponent<UiCheckboxInterface
|
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<UiCheckboxInterface> & Readonly<{
|
|
14
14
|
onCheckboxChanged?: ((checkbox: import("@/types").UiCheckboxType) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
loading: boolean;
|
|
17
16
|
disabled: boolean;
|
|
17
|
+
loading: boolean;
|
|
18
18
|
check: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<UiDropdownInterface, {}, {
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<UiDropdownInterface> & Readonly<{
|
|
5
5
|
onOptionSelected?: ((v: UiDropdownItemType) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
loading: boolean;
|
|
8
7
|
position: "left" | "right";
|
|
8
|
+
loading: boolean;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UiIconInterface } from '@/types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<UiIconInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiIconInterface> & Readonly<{}>, {
|
|
3
|
-
size: "small" | "medium" | "big" | "bigger" | "huge" | "massive";
|
|
4
|
-
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
5
3
|
loading: boolean;
|
|
4
|
+
size: "big" | "small" | "medium" | "bigger" | "huge" | "massive";
|
|
5
|
+
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
6
6
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
export default _default;
|
|
@@ -8,9 +8,9 @@ declare const _default: import("vue").DefineComponent<UiInputInterface, {}, {},
|
|
|
8
8
|
onRightAddOnClicked?: (() => any) | undefined;
|
|
9
9
|
onAddOnClicked?: (() => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
|
+
loading: boolean;
|
|
11
12
|
type: "number" | "text" | "email" | "password" | "date" | "datetime-local";
|
|
12
13
|
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
13
|
-
loading: boolean;
|
|
14
14
|
placeholder: string;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
export default _default;
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<UiInputFileInterface, {},
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<UiInputFileInterface> & Readonly<{
|
|
5
5
|
onFilesUploaded?: ((T: import("@/types").FileInputType) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
icon: any;
|
|
8
7
|
loading: boolean;
|
|
8
|
+
icon: any;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<UiRangeSliderInterface, {}
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<UiRangeSliderInterface> & Readonly<{
|
|
5
5
|
onSliderUpdated?: ((T: any) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
loading: boolean;
|
|
8
7
|
disabled: boolean;
|
|
8
|
+
loading: boolean;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
10
|
export default _default;
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<UiSelectInterface, {}, {},
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<UiSelectInterface> & Readonly<{
|
|
5
5
|
onSelectChanged?: ((T: SelectItemType) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
8
7
|
loading: boolean;
|
|
8
|
+
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -13,9 +13,9 @@ declare const __VLS_component: import("vue").DefineComponent<UiTagInterface, {},
|
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<UiTagInterface> & Readonly<{
|
|
14
14
|
onTagEvent?: ((T: string | undefined) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
size: "small" | "medium" | "big";
|
|
17
|
-
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
18
16
|
loading: boolean;
|
|
17
|
+
size: "big" | "small" | "medium";
|
|
18
|
+
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
21
|
export default _default;
|
|
@@ -10,9 +10,9 @@ declare const _default: import("vue").DefineComponent<UiTextAreaInterface, {}, {
|
|
|
10
10
|
value?: string;
|
|
11
11
|
}) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
-
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
14
|
-
loading: boolean;
|
|
15
13
|
disabled: boolean;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
16
16
|
placeholder: string;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
export default _default;
|
|
@@ -22,8 +22,8 @@ declare const _default: import("vue").DefineComponent<UiToggleInterface, {}, {},
|
|
|
22
22
|
action: string;
|
|
23
23
|
}) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
loading: boolean;
|
|
26
25
|
disabled: boolean;
|
|
26
|
+
loading: boolean;
|
|
27
27
|
checked: boolean;
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
export default _default;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_component: import("vue").DefineComponent<UiAlertInterface, {
|
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<UiAlertInterface> & Readonly<{
|
|
14
14
|
onAlertEvent?: ((T: string) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
type: string;
|
|
17
16
|
loading: boolean;
|
|
17
|
+
type: string;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
20
|
export default _default;
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<UiFilterInterface, {}, {},
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<UiFilterInterface> & Readonly<{
|
|
5
5
|
onFilterSelected?: ((T: string) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
loading: boolean;
|
|
8
7
|
position: "left" | "right";
|
|
8
|
+
loading: boolean;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -19,8 +19,8 @@ declare const __VLS_component: import("vue").DefineComponent<UiModalInterface, {
|
|
|
19
19
|
action: string;
|
|
20
20
|
}) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
|
-
type: string;
|
|
23
22
|
loading: boolean;
|
|
23
|
+
type: string;
|
|
24
24
|
open: boolean;
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -4,8 +4,8 @@ declare const _default: import("vue").DefineComponent<UiNotificationInterface, {
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<UiNotificationInterface> & Readonly<{
|
|
5
5
|
onCloseNotification?: (() => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
type: string;
|
|
8
7
|
fixed: boolean;
|
|
8
|
+
type: string;
|
|
9
9
|
show: boolean;
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
export default _default;
|
|
@@ -22,9 +22,9 @@ declare const _default: import("vue").DefineComponent<UiChartInterface, {}, {},
|
|
|
22
22
|
onDataPointSelection?: ((T: any) => any) | undefined;
|
|
23
23
|
onMaximizeChart?: ((T: string) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
id: string;
|
|
26
|
-
type: "area" | "line" | "bar" | "scatter";
|
|
27
25
|
loading: boolean;
|
|
26
|
+
type: "area" | "line" | "bar" | "scatter";
|
|
27
|
+
id: string;
|
|
28
28
|
empty: boolean;
|
|
29
29
|
horizontal: boolean;
|
|
30
30
|
stacked: boolean;
|
|
@@ -22,8 +22,8 @@ declare const _default: import("vue").DefineComponent<UiChartInterface, {}, {},
|
|
|
22
22
|
onDataPointSelection?: ((T: any) => any) | undefined;
|
|
23
23
|
onMaximizeChart?: ((T: string) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
id: string;
|
|
26
25
|
loading: boolean;
|
|
26
|
+
id: string;
|
|
27
27
|
empty: boolean;
|
|
28
28
|
horizontal: boolean;
|
|
29
29
|
stacked: boolean;
|
|
@@ -22,9 +22,9 @@ declare const _default: import("vue").DefineComponent<UiChartInterface, {}, {},
|
|
|
22
22
|
onDataPointSelection?: ((T: any) => any) | undefined;
|
|
23
23
|
onMaximizeChart?: ((T: string) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
id: string;
|
|
26
|
-
type: "area" | "line" | "bar" | "scatter";
|
|
27
25
|
loading: boolean;
|
|
26
|
+
type: "area" | "line" | "bar" | "scatter";
|
|
27
|
+
id: string;
|
|
28
28
|
range: "24h" | "7d" | "1m" | "3m" | "all";
|
|
29
29
|
empty: boolean;
|
|
30
30
|
horizontal: boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UiSmartFilterInterface } from "@/types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<UiSmartFilterInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
+
smartFilterSelected: (T: {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
type?: "dropdown" | "input";
|
|
8
|
+
}[]) => any;
|
|
9
|
+
smartInputChanged: (T: import("@/types").InputType) => any;
|
|
10
|
+
smartOptionSelected: (T: import("@/types").UiDropdownItemType) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<UiSmartFilterInterface> & Readonly<{
|
|
12
|
+
onSmartFilterSelected?: ((T: {
|
|
13
|
+
name: string;
|
|
14
|
+
value: string;
|
|
15
|
+
active?: boolean;
|
|
16
|
+
type?: "dropdown" | "input";
|
|
17
|
+
}[]) => any) | undefined;
|
|
18
|
+
onSmartInputChanged?: ((T: import("@/types").InputType) => any) | undefined;
|
|
19
|
+
onSmartOptionSelected?: ((T: import("@/types").UiDropdownItemType) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
loading: boolean;
|
|
22
|
+
filterType: "dropdown" | "input";
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
|
+
export default _default;
|
|
@@ -39,4 +39,5 @@ import uiSectionTitle from "./Molecules/uiSectionTitle/uiSectionTitle.vue";
|
|
|
39
39
|
import uiDeviceStatus from "./Molecules/uiDeviceStatus/uiDeviceStatus.vue";
|
|
40
40
|
import uiWrapper from "./Organisms/uiWrapper/uiWrapper.vue";
|
|
41
41
|
import uiDynamicStats from "./Organisms/uiDynamicStats/uiDynamicStats.vue";
|
|
42
|
-
|
|
42
|
+
import uiSmartFilter from "./Organisms/uiSmartFilter/uiSmartFilter.vue";
|
|
43
|
+
export { uiButton, uiIcon, uiCheckbox, uiDropdown, uiInput, uiInputFile, uiSelect, uiTag, uiTextArea, uiToggle, uiAlert, uiBreadcrumbs, uiCard, uiFilter, uiModal, uiNotification, uiTaskList, uiPriceCalendar, uiChart, uiFooter, uiLoadingScreen, uiPagination, uiSidebar, uiStats, uiStripedCard, uiTable, uiTabs, uiTimeline, uiTopbar, uiFunnelChartV2, uiNoResults, uiRightSidebar, uiGallery, uiDragAndDrop, uiCircleChart, uiDateRange, uiRangeSlider, uiSectionTitle, uiDeviceStatus, uiWrapper, uiDynamicStats, uiSmartFilter, };
|
|
@@ -364,12 +364,14 @@ export interface UiDeviceStatusEventsInterface {
|
|
|
364
364
|
export interface UiFilterInterface {
|
|
365
365
|
/** items array */
|
|
366
366
|
items: {
|
|
367
|
-
/**
|
|
367
|
+
/** item name */
|
|
368
368
|
name: string;
|
|
369
|
-
/**
|
|
369
|
+
/** item value */
|
|
370
370
|
value: string;
|
|
371
|
-
/** is
|
|
371
|
+
/** is is selected or not */
|
|
372
372
|
active?: boolean;
|
|
373
|
+
/** for use in UiSmartFilter, it determines if input is a dropdown or input field */
|
|
374
|
+
type?: "dropdown" | "input";
|
|
373
375
|
}[];
|
|
374
376
|
/** float position of dropdown */
|
|
375
377
|
position?: "left" | "right";
|
|
@@ -382,6 +384,31 @@ export interface UiFilterEventsInterface {
|
|
|
382
384
|
/** emits UiFilterInterface["items"]["value"] when filter is selected */
|
|
383
385
|
(e: 'filterSelected', T: string): void;
|
|
384
386
|
}
|
|
387
|
+
/** uiSmartFilter */
|
|
388
|
+
export interface UiSmartFilterInterface {
|
|
389
|
+
/** Filter items */
|
|
390
|
+
items: UiFilterInterface["items"];
|
|
391
|
+
/** If filter is uiInput here uiInput props */
|
|
392
|
+
inputProps: UiInputInterface;
|
|
393
|
+
/** if filter is uiDropdown here uiDropdown props */
|
|
394
|
+
dropdownProps: UiDropdownInterface;
|
|
395
|
+
/** select input filter type or dropdown filter type */
|
|
396
|
+
filterType?: "dropdown" | "input";
|
|
397
|
+
/** filter action literal */
|
|
398
|
+
buttonLiteral: string;
|
|
399
|
+
/** delete add on literal */
|
|
400
|
+
deleteLiteral: string;
|
|
401
|
+
/** show skeleton */
|
|
402
|
+
loading?: boolean;
|
|
403
|
+
}
|
|
404
|
+
export interface UiSmartFilterEventInterface {
|
|
405
|
+
/** when a filter is selected */
|
|
406
|
+
(e: 'smartFilterSelected', T: UiFilterInterface["items"]): void;
|
|
407
|
+
/** when an input is changed */
|
|
408
|
+
(e: 'smartInputChanged', T: InputType): void;
|
|
409
|
+
/** when a dropdown option is selected */
|
|
410
|
+
(e: 'smartOptionSelected', T: UiDropdownItemType): void;
|
|
411
|
+
}
|
|
385
412
|
export interface UiModalInterface {
|
|
386
413
|
/** modal title */
|
|
387
414
|
title: string;
|