@adyen/bento-vue2 1.7.0 → 1.8.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.d.ts +2 -0
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +11 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +7 -2
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +28 -18
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +25 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +13 -1
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +153 -12
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +320 -21
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +30 -24
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.types.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +11 -1
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.types.d.ts +13 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.types.d.ts +14 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.types.d.ts +22 -0
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +48 -0
- package/dist/@types/packages/vue2/src/components/internal/field-label/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/grid-layout/grid-layout.vue.d.ts +11 -0
- package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/popover/popover.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +16 -22
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +20 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +19 -2
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +4 -2
- package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +18 -2
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +112 -93
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +38 -35
- package/dist/button.js.map +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +5 -5
- package/dist/chunks/{base-modal.88e7b9d4.js → base-modal.31634fe8.js} +60 -49
- package/dist/chunks/base-modal.31634fe8.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.a5413243.js → button-actions-with-menu.5faea13e.js} +5 -5
- package/dist/chunks/{button-actions-with-menu.a5413243.js.map → button-actions-with-menu.5faea13e.js.map} +1 -1
- package/dist/chunks/button.e09d5980.js.map +1 -1
- package/dist/chunks/calendar.47e9e755.js +959 -0
- package/dist/chunks/calendar.47e9e755.js.map +1 -0
- package/dist/chunks/{checkbox.5343e28e.js → checkbox.2277450e.js} +67 -56
- package/dist/chunks/checkbox.2277450e.js.map +1 -0
- package/dist/chunks/controls-group.6c5bfccd.js +79 -0
- package/dist/chunks/controls-group.6c5bfccd.js.map +1 -0
- package/dist/chunks/{copy.346eadb1.js → copy.a85c2e9f.js} +3 -3
- package/dist/chunks/{copy.346eadb1.js.map → copy.a85c2e9f.js.map} +1 -1
- package/dist/chunks/{dropdown.f1253a54.js → dropdown.ce937989.js} +200 -196
- package/dist/chunks/dropdown.ce937989.js.map +1 -0
- package/dist/chunks/field-label.330edb60.js +107 -0
- package/dist/chunks/field-label.330edb60.js.map +1 -0
- package/dist/chunks/{grid-layout.b7e0d964.js → grid-layout.a806acb2.js} +36 -27
- package/dist/chunks/grid-layout.a806acb2.js.map +1 -0
- package/dist/chunks/index.210d2169.js +290 -0
- package/dist/chunks/index.210d2169.js.map +1 -0
- package/dist/chunks/{index.8ac70774.js → index.66503760.js} +3 -3
- package/dist/chunks/{index.8ac70774.js.map → index.66503760.js.map} +1 -1
- package/dist/chunks/{index.2625175a.js → index.86fc63ca.js} +30 -28
- package/dist/chunks/{index.2625175a.js.map → index.86fc63ca.js.map} +1 -1
- package/dist/chunks/{index.a201f750.js → index.89942d3a.js} +4 -5
- package/dist/chunks/{index.a201f750.js.map → index.89942d3a.js.map} +1 -1
- package/dist/chunks/index.a5de5242.js +130 -0
- package/dist/chunks/index.a5de5242.js.map +1 -0
- package/dist/chunks/index.a99ffd48.js +634 -0
- package/dist/chunks/index.a99ffd48.js.map +1 -0
- package/dist/chunks/index.d80206ed.js +10 -0
- package/dist/chunks/index.d80206ed.js.map +1 -0
- package/dist/chunks/{index.37283390.js → index.d8bd7596.js} +96 -99
- package/dist/chunks/{index.37283390.js.map → index.d8bd7596.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.6a09e8e2.js → listbox-option-tag.97af47fc.js} +6 -7
- package/dist/chunks/{listbox-option-tag.6a09e8e2.js.map → listbox-option-tag.97af47fc.js.map} +1 -1
- package/dist/chunks/{listbox.73c38f38.js → listbox.d039b178.js} +5 -6
- package/dist/chunks/{listbox.73c38f38.js.map → listbox.d039b178.js.map} +1 -1
- package/dist/chunks/loading-button.9a9cbbad.js +89 -0
- package/dist/chunks/loading-button.9a9cbbad.js.map +1 -0
- package/dist/chunks/{tooltip.104e5fac.js → tooltip.ecd0f707.js} +2 -2
- package/dist/chunks/{tooltip.104e5fac.js.map → tooltip.ecd0f707.js.map} +1 -1
- package/dist/code-snippet.js +4 -4
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +1 -1
- package/dist/data-grid.js +563 -541
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +83 -80
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +13 -12
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +63 -67
- package/dist/header.js.map +1 -1
- package/dist/index.js +211 -209
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +57 -55
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +13 -12
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +2 -2
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +3 -305
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +3 -3
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +2 -2
- package/dist/sidepanel.js +2 -2
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +2 -2
- package/dist/textarea.js +59 -56
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +226 -173
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +7 -7
- package/dist/web-types.json +519 -393
- package/package.json +3 -3
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -118
- package/dist/assets/error-message.css +0 -1
- package/dist/chunks/base-modal.88e7b9d4.js.map +0 -1
- package/dist/chunks/calendar.24d0ac04.js +0 -821
- package/dist/chunks/calendar.24d0ac04.js.map +0 -1
- package/dist/chunks/checkbox.5343e28e.js.map +0 -1
- package/dist/chunks/controls-group.2a21bd83.js +0 -87
- package/dist/chunks/controls-group.2a21bd83.js.map +0 -1
- package/dist/chunks/dropdown.f1253a54.js.map +0 -1
- package/dist/chunks/error-message.8302a46c.js +0 -47
- package/dist/chunks/error-message.8302a46c.js.map +0 -1
- package/dist/chunks/grid-layout.b7e0d964.js.map +0 -1
- package/dist/chunks/index.d6b5f5e1.js +0 -112
- package/dist/chunks/index.d6b5f5e1.js.map +0 -1
- package/dist/chunks/index.e566354f.js +0 -532
- package/dist/chunks/index.e566354f.js.map +0 -1
- package/dist/chunks/loading-button.c65682d6.js +0 -86
- package/dist/chunks/loading-button.c65682d6.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GridLayoutColumnWidths } from "../internal/grid-layout/grid-layout.types";
|
|
2
2
|
export declare enum BentoSummaryGridItemSize {
|
|
3
3
|
SMALL = "small",
|
|
4
4
|
MEDIUM = "medium",
|
|
@@ -10,9 +10,9 @@ export declare enum BentoSummaryGridItemTrendDirection {
|
|
|
10
10
|
NEUTRAL = "neutral"
|
|
11
11
|
}
|
|
12
12
|
export interface BentoSummaryGridColumnWidth {
|
|
13
|
-
row1:
|
|
14
|
-
row2?:
|
|
15
|
-
row3?:
|
|
13
|
+
row1: GridLayoutColumnWidths;
|
|
14
|
+
row2?: GridLayoutColumnWidths;
|
|
15
|
+
row3?: GridLayoutColumnWidths;
|
|
16
16
|
}
|
|
17
17
|
export type BentoSummaryGridLayout = () => {
|
|
18
18
|
isSummaryGridLayout: boolean;
|
|
@@ -54,6 +54,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
type: BooleanConstructor;
|
|
55
55
|
default: boolean;
|
|
56
56
|
};
|
|
57
|
+
tooltipText: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: any;
|
|
60
|
+
};
|
|
57
61
|
value: {
|
|
58
62
|
type: StringConstructor;
|
|
59
63
|
default: string;
|
|
@@ -124,6 +128,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
128
|
type: BooleanConstructor;
|
|
125
129
|
default: boolean;
|
|
126
130
|
};
|
|
131
|
+
tooltipText: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: any;
|
|
134
|
+
};
|
|
127
135
|
value: {
|
|
128
136
|
type: StringConstructor;
|
|
129
137
|
default: string;
|
|
@@ -138,6 +146,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
138
146
|
optional: boolean;
|
|
139
147
|
readonly: boolean;
|
|
140
148
|
height: string;
|
|
149
|
+
tooltipText: string;
|
|
141
150
|
errorMessage: string;
|
|
142
151
|
ariaLabel: string;
|
|
143
152
|
clearable: boolean;
|
|
@@ -55,7 +55,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
};
|
|
56
56
|
title: {
|
|
57
57
|
type: PropType<string | BentoTimelineItemTitle>;
|
|
58
|
-
|
|
58
|
+
default: any;
|
|
59
|
+
};
|
|
60
|
+
type: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
validator: (value: string) => boolean;
|
|
59
64
|
};
|
|
60
65
|
variant: {
|
|
61
66
|
type: PropType<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
|
|
@@ -63,6 +68,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
68
|
validator: (value: BentoTimelineItemVariant) => boolean;
|
|
64
69
|
};
|
|
65
70
|
}, {
|
|
71
|
+
isNoteType: import("vue").ComputedRef<boolean>;
|
|
66
72
|
iconConditionalClasses: import("vue").ComputedRef<{
|
|
67
73
|
'b-timeline-item__icon--default': boolean;
|
|
68
74
|
'b-timeline-item__icon--success': boolean;
|
|
@@ -71,6 +77,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
77
|
titleConditionalClasses: import("vue").ComputedRef<{
|
|
72
78
|
'b-timeline-item__title--default': boolean;
|
|
73
79
|
}>;
|
|
80
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
81
|
+
'b-timeline-item--note': boolean;
|
|
82
|
+
}>;
|
|
74
83
|
displayShowMoreButton: import("vue").ComputedRef<boolean>;
|
|
75
84
|
showAll: import("vue").Ref<boolean>;
|
|
76
85
|
hiddenItems: import("vue").Ref<number>;
|
|
@@ -80,6 +89,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
89
|
timegap: import("vue").ComputedRef<string>;
|
|
81
90
|
timegapAriaLabel: import("vue").ComputedRef<string>;
|
|
82
91
|
isLastItem: import("vue").ComputedRef<boolean>;
|
|
92
|
+
computedIconVariant: import("vue").ComputedRef<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
|
|
83
93
|
generateUid: (value: string) => string;
|
|
84
94
|
hasSlot: (name: string) => boolean;
|
|
85
95
|
t: import("vue-i18n-bridge").ComposerTranslation<import("../../../../utils/ts/i18n").i18nMessages, string, import("@intlify/core-base").RemoveIndexSignature<{
|
|
@@ -144,7 +154,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
144
154
|
};
|
|
145
155
|
title: {
|
|
146
156
|
type: PropType<string | BentoTimelineItemTitle>;
|
|
147
|
-
|
|
157
|
+
default: any;
|
|
158
|
+
};
|
|
159
|
+
type: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
default: string;
|
|
162
|
+
validator: (value: string) => boolean;
|
|
148
163
|
};
|
|
149
164
|
variant: {
|
|
150
165
|
type: PropType<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
|
|
@@ -153,6 +168,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
153
168
|
};
|
|
154
169
|
}>>, {
|
|
155
170
|
description: string;
|
|
171
|
+
type: string;
|
|
172
|
+
title: string | BentoTimelineItemTitle;
|
|
156
173
|
variant: "CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant;
|
|
157
174
|
tag: any;
|
|
158
175
|
additionalTimestamp: BentoTimelineTimestamp;
|
|
@@ -46,11 +46,13 @@ export interface BentoTimelineDataListObject {
|
|
|
46
46
|
export type BentoTimelineDataList = Array<BentoTimelineDataListObject>;
|
|
47
47
|
export type BentoTimelineTagProps = InstanceType<typeof BentoTag>['$props'];
|
|
48
48
|
export interface BentoTimelineEntry {
|
|
49
|
-
title
|
|
49
|
+
title?: string | BentoTimelineItemTitle;
|
|
50
|
+
description?: string;
|
|
50
51
|
date: Date | number;
|
|
51
52
|
}
|
|
52
53
|
export type BentoTimelineRegisterEntry = (props: {
|
|
53
|
-
title
|
|
54
|
+
title?: string | BentoTimelineItemTitle;
|
|
55
|
+
description?: string;
|
|
54
56
|
date: Date | number;
|
|
55
57
|
}) => {
|
|
56
58
|
timelineEntries: Ref<BentoTimelineEntry[]>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, Ref } from 'vue';
|
|
2
2
|
import { BentoTimelineGapObject, BentoTimelineShowMoreObject } from './timeline.types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
addNote: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
4
8
|
showMore: {
|
|
5
9
|
type: PropType<BentoTimelineShowMoreObject>;
|
|
6
10
|
default: any;
|
|
@@ -9,7 +13,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
13
|
type: PropType<BentoTimelineGapObject>;
|
|
10
14
|
default: any;
|
|
11
15
|
};
|
|
12
|
-
},
|
|
16
|
+
}, {
|
|
17
|
+
addNoteLabel: import("vue").ComputedRef<string>;
|
|
18
|
+
cancelLabel: import("vue").ComputedRef<string>;
|
|
19
|
+
toggleAddNote: () => void;
|
|
20
|
+
updateNoteContent: (newTimelineNoteContent: string) => void;
|
|
21
|
+
addNoteToTimeline: () => void;
|
|
22
|
+
showAddNoteTextArea: Ref<boolean>;
|
|
23
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "add-timeline-note"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
addNote: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
13
28
|
showMore: {
|
|
14
29
|
type: PropType<BentoTimelineShowMoreObject>;
|
|
15
30
|
default: any;
|
|
@@ -20,6 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
35
|
};
|
|
21
36
|
}>>, {
|
|
22
37
|
showMore: BentoTimelineShowMoreObject;
|
|
38
|
+
addNote: boolean;
|
|
23
39
|
timegapLimit: BentoTimelineGapObject;
|
|
24
40
|
}>;
|
|
25
41
|
export default _default;
|
package/dist/accordion.js
CHANGED
|
@@ -5,7 +5,7 @@ import { C as O, a as T } from "./chunks/chevron-up.674ec2e5.js";
|
|
|
5
5
|
import { g as d } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { o as E } from "./chunks/resize.a041304d.js";
|
|
7
7
|
import { u as N } from "./chunks/use-expandable-content-height.62fc84e5.js";
|
|
8
|
-
import "./assets/
|
|
8
|
+
import "./assets/index44.css";
|
|
9
9
|
const m = Symbol("accordion title size injection key"), S = {}, z = /* @__PURE__ */ p({
|
|
10
10
|
...S,
|
|
11
11
|
__name: "accordion",
|
package/dist/action-bar.js
CHANGED
|
@@ -1,107 +1,108 @@
|
|
|
1
|
-
import { onMounted as C, nextTick as h, getCurrentScope as
|
|
2
|
-
import { a as
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { C as
|
|
6
|
-
import { u as
|
|
1
|
+
import { onMounted as C, nextTick as h, getCurrentScope as M, onScopeDispose as W, unref as x, getCurrentInstance as w, ref as v, watch as b, watchEffect as P, computed as y, defineComponent as F, toRefs as V, provide as R } from "vue";
|
|
2
|
+
import { a as k } from "./chunks/button.e09d5980.js";
|
|
3
|
+
import { B as j } from "./chunks/index.965ac1af.js";
|
|
4
|
+
import { B as D } from "./chunks/button-actions-with-menu.5faea13e.js";
|
|
5
|
+
import { C as G } from "./chunks/cross.a2cadac5.js";
|
|
6
|
+
import { u as z } from "./chunks/i18n.155748d6.js";
|
|
7
7
|
import "./chunks/index.af05ced4.js";
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
import { P as H } from "./chunks/index.210d2169.js";
|
|
9
|
+
import { n as U } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
10
|
+
import "./assets/index2.css";
|
|
11
|
+
function O(e) {
|
|
12
|
+
return M() ? (W(e), !0) : !1;
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
-
return typeof e == "function" ? e() :
|
|
14
|
+
function B(e) {
|
|
15
|
+
return typeof e == "function" ? e() : x(e);
|
|
15
16
|
}
|
|
16
|
-
const
|
|
17
|
+
const Y = typeof window < "u" && typeof document < "u";
|
|
17
18
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
18
|
-
const
|
|
19
|
+
const q = Object.prototype.toString, K = (e) => q.call(e) === "[object Object]", Q = () => {
|
|
19
20
|
};
|
|
20
|
-
function
|
|
21
|
-
return e ||
|
|
21
|
+
function $(e) {
|
|
22
|
+
return e || w();
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
24
|
+
function J(e, n = !0, t) {
|
|
25
|
+
$() ? C(e, t) : n ? e() : h(e);
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function Z(e) {
|
|
27
28
|
var n;
|
|
28
|
-
const t =
|
|
29
|
+
const t = B(e);
|
|
29
30
|
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
30
31
|
}
|
|
31
|
-
const I =
|
|
32
|
-
function
|
|
33
|
-
let n, t, o,
|
|
34
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, o,
|
|
35
|
-
return
|
|
32
|
+
const I = Y ? window : void 0;
|
|
33
|
+
function X(...e) {
|
|
34
|
+
let n, t, o, i;
|
|
35
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, o, i] = e, n = I) : [n, t, o, i] = e, !n)
|
|
36
|
+
return Q;
|
|
36
37
|
Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
|
|
37
|
-
const r = [],
|
|
38
|
-
r.forEach((
|
|
39
|
-
},
|
|
40
|
-
() => [
|
|
41
|
-
([
|
|
42
|
-
if (
|
|
38
|
+
const r = [], s = () => {
|
|
39
|
+
r.forEach((d) => d()), r.length = 0;
|
|
40
|
+
}, c = (d, p, f, a) => (d.addEventListener(p, f, a), () => d.removeEventListener(p, f, a)), u = b(
|
|
41
|
+
() => [Z(n), B(i)],
|
|
42
|
+
([d, p]) => {
|
|
43
|
+
if (s(), !d)
|
|
43
44
|
return;
|
|
44
|
-
const
|
|
45
|
+
const f = K(p) ? { ...p } : p;
|
|
45
46
|
r.push(
|
|
46
|
-
...t.flatMap((
|
|
47
|
+
...t.flatMap((a) => o.map((_) => c(d, a, _, f)))
|
|
47
48
|
);
|
|
48
49
|
},
|
|
49
50
|
{ immediate: !0, flush: "post" }
|
|
50
|
-
),
|
|
51
|
-
|
|
51
|
+
), l = () => {
|
|
52
|
+
u(), s();
|
|
52
53
|
};
|
|
53
|
-
return
|
|
54
|
+
return O(l), l;
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
-
const e =
|
|
57
|
-
return
|
|
56
|
+
function ee() {
|
|
57
|
+
const e = v(!1);
|
|
58
|
+
return w() && C(() => {
|
|
58
59
|
e.value = !0;
|
|
59
60
|
}), e;
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
const n =
|
|
62
|
+
function te(e) {
|
|
63
|
+
const n = ee();
|
|
63
64
|
return y(() => (n.value, !!e()));
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
-
const { window: t = I } = n, o =
|
|
67
|
-
let
|
|
68
|
-
const r =
|
|
69
|
-
r.value =
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
o.value && (
|
|
66
|
+
function ne(e, n = {}) {
|
|
67
|
+
const { window: t = I } = n, o = te(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
68
|
+
let i;
|
|
69
|
+
const r = v(!1), s = (l) => {
|
|
70
|
+
r.value = l.matches;
|
|
71
|
+
}, c = () => {
|
|
72
|
+
i && ("removeEventListener" in i ? i.removeEventListener("change", s) : i.removeListener(s));
|
|
73
|
+
}, u = P(() => {
|
|
74
|
+
o.value && (c(), i = t.matchMedia(B(e)), "addEventListener" in i ? i.addEventListener("change", s) : i.addListener(s), r.value = i.matches);
|
|
74
75
|
});
|
|
75
|
-
return
|
|
76
|
-
|
|
76
|
+
return O(() => {
|
|
77
|
+
u(), c(), i = void 0;
|
|
77
78
|
}), r;
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function oe(e = {}) {
|
|
80
81
|
const {
|
|
81
82
|
window: n = I,
|
|
82
83
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
83
84
|
initialHeight: o = Number.POSITIVE_INFINITY,
|
|
84
|
-
listenOrientation:
|
|
85
|
+
listenOrientation: i = !0,
|
|
85
86
|
includeScrollbar: r = !0
|
|
86
|
-
} = e,
|
|
87
|
-
n && (r ? (
|
|
87
|
+
} = e, s = v(t), c = v(o), u = () => {
|
|
88
|
+
n && (r ? (s.value = n.innerWidth, c.value = n.innerHeight) : (s.value = n.document.documentElement.clientWidth, c.value = n.document.documentElement.clientHeight));
|
|
88
89
|
};
|
|
89
|
-
if (
|
|
90
|
-
const
|
|
91
|
-
|
|
90
|
+
if (u(), J(u), X("resize", u, { passive: !0 }), i) {
|
|
91
|
+
const l = ne("(orientation: portrait)");
|
|
92
|
+
b(l, () => u());
|
|
92
93
|
}
|
|
93
|
-
return { width:
|
|
94
|
+
return { width: s, height: c };
|
|
94
95
|
}
|
|
95
|
-
const
|
|
96
|
+
const ie = {
|
|
96
97
|
"en-US": {
|
|
97
98
|
actionBar: "Action bar",
|
|
98
99
|
close: "Close",
|
|
99
100
|
selected: "selected"
|
|
100
101
|
}
|
|
101
|
-
},
|
|
102
|
-
i18n: { messages:
|
|
103
|
-
},
|
|
104
|
-
...
|
|
102
|
+
}, se = {
|
|
103
|
+
i18n: { messages: ie }
|
|
104
|
+
}, ae = /* @__PURE__ */ F({
|
|
105
|
+
...se,
|
|
105
106
|
__name: "action-bar",
|
|
106
107
|
props: {
|
|
107
108
|
/**
|
|
@@ -118,6 +119,14 @@ const X = {
|
|
|
118
119
|
type: Array,
|
|
119
120
|
required: !0
|
|
120
121
|
},
|
|
122
|
+
/**
|
|
123
|
+
* How many actions should be visible outside the menu, cannot be more than 4
|
|
124
|
+
*/
|
|
125
|
+
visibleActions: {
|
|
126
|
+
type: Number,
|
|
127
|
+
default: 4,
|
|
128
|
+
validator: (e) => e > 0 && e <= 4
|
|
129
|
+
},
|
|
121
130
|
/**
|
|
122
131
|
* Use when there are sticky elements at the bottom, like sticky pagination
|
|
123
132
|
*/
|
|
@@ -142,50 +151,60 @@ const X = {
|
|
|
142
151
|
},
|
|
143
152
|
emits: ["close"],
|
|
144
153
|
setup(e, { emit: n }) {
|
|
145
|
-
const t = e, { t:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
154
|
+
const t = e, o = 100, i = 7, r = 500, s = 32, { t: c } = z(), u = y(() => t.selectionLabel ? t.selectionLabel : c("selected")), l = v(null), { extraBottomSpacing: d, visibleActions: p } = V(t), { width: f } = oe(), a = v(null), _ = v(null);
|
|
155
|
+
b(
|
|
156
|
+
() => p.value,
|
|
157
|
+
(m) => {
|
|
158
|
+
_.value = m <= 4 ? m : 4, a.value = _.value;
|
|
159
|
+
},
|
|
160
|
+
{ immediate: !0 }
|
|
161
|
+
);
|
|
162
|
+
const T = y(() => ({
|
|
163
|
+
"b-action-bar--extra-spacing": d.value
|
|
164
|
+
}));
|
|
165
|
+
R(H, i);
|
|
166
|
+
const N = y(() => {
|
|
167
|
+
const m = t.actions.map((L) => ({
|
|
149
168
|
...L,
|
|
150
169
|
variant: "secondary"
|
|
151
|
-
})),
|
|
152
|
-
return [...
|
|
153
|
-
}),
|
|
154
|
-
await h(),
|
|
155
|
-
},
|
|
156
|
-
await h(),
|
|
170
|
+
})), A = m.slice(0, a.value).reverse(), S = m.slice(a.value);
|
|
171
|
+
return [...A, ...S];
|
|
172
|
+
}), E = async () => {
|
|
173
|
+
await h(), f.value > l.value.clientWidth + s + o && a.value < _.value && (a.value += 1, E());
|
|
174
|
+
}, g = async () => {
|
|
175
|
+
await h(), f.value < l.value.clientWidth + s && a.value > 0 && (a.value -= 1, g());
|
|
157
176
|
};
|
|
158
|
-
return
|
|
159
|
-
() =>
|
|
160
|
-
async (
|
|
161
|
-
if (await h(), !
|
|
177
|
+
return b(
|
|
178
|
+
() => f.value,
|
|
179
|
+
async (m, A) => {
|
|
180
|
+
if (await h(), !l.value)
|
|
162
181
|
return;
|
|
163
|
-
const
|
|
164
|
-
|
|
182
|
+
const S = m > A;
|
|
183
|
+
f.value < r ? a.value = 0 : S ? E() : g();
|
|
165
184
|
},
|
|
166
185
|
{ immediate: !0 }
|
|
167
|
-
), { __sfc: !0,
|
|
186
|
+
), { __sfc: !0, AVERAGE_BUTTON_SIZE: o, MENU_OFFSET: i, RESPONSIVE_BREAKPOINT: r, SPACING: s, props: t, emit: n, t: c, label: u, actionBar: l, extraBottomSpacing: d, visibleActions: p, width: f, internalDisplayedActions: a, internalVisibleActions: _, conditionalClasses: T, actionsInternal: N, showActions: E, hideActions: g, BentoButton: k, BentoTypography: j, ButtonActionsWithMenu: D, CrossIcon: G };
|
|
168
187
|
}
|
|
169
188
|
});
|
|
170
|
-
var
|
|
189
|
+
var re = function() {
|
|
171
190
|
var n = this, t = n._self._c, o = n._self._setupProxy;
|
|
172
|
-
return t("
|
|
191
|
+
return t("Transition", { attrs: { name: "b-action-bar__animation", appear: "" } }, [t("section", { staticClass: "b-action-bar", class: o.conditionalClasses, attrs: { "aria-label": o.t("actionBar") } }, [t("div", { ref: "actionBar", staticClass: "b-action-bar__container" }, [t("div", { staticClass: "b-action-bar__close-button" }, [t(o.BentoButton, { attrs: { variant: "tertiary", inverse: "", "aria-label": o.t("close") }, on: { click: function(i) {
|
|
173
192
|
return o.emit("close");
|
|
174
193
|
} }, scopedSlots: n._u([{ key: "iconLeft", fn: function() {
|
|
175
|
-
return [t(o.CrossIcon, { attrs: { "
|
|
176
|
-
}, proxy: !0 }]) })], 1), t(o.BentoTypography, { staticClass: "b-action-bar__selection", attrs: { el: "span", stronger: "" } }, [n._v(n._s(n.itemCounter) + " " + n._s(o.label))]), t(o.ButtonActionsWithMenu, { staticClass: "b-action-bar__actions", attrs: { actions: o.actionsInternal, "displayed-actions": o.
|
|
177
|
-
},
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
194
|
+
return [t(o.CrossIcon, { attrs: { "aria-hidden": !0 } })];
|
|
195
|
+
}, proxy: !0 }]) })], 1), t(o.BentoTypography, { staticClass: "b-action-bar__selection", attrs: { el: "span", stronger: "" } }, [n._v(n._s(n.itemCounter) + " " + n._s(o.label))]), t(o.ButtonActionsWithMenu, { staticClass: "b-action-bar__actions", attrs: { actions: o.actionsInternal, "displayed-actions": o.internalDisplayedActions, "menu-position": "top-end", inverse: "" } })], 1)])]);
|
|
196
|
+
}, ce = [], le = /* @__PURE__ */ U(
|
|
197
|
+
ae,
|
|
198
|
+
re,
|
|
199
|
+
ce,
|
|
181
200
|
!1,
|
|
182
201
|
null,
|
|
183
|
-
"
|
|
202
|
+
"d2278799",
|
|
184
203
|
null,
|
|
185
204
|
null
|
|
186
205
|
);
|
|
187
|
-
const
|
|
206
|
+
const be = le.exports;
|
|
188
207
|
export {
|
|
189
|
-
|
|
208
|
+
be as BentoActionBar
|
|
190
209
|
};
|
|
191
210
|
//# sourceMappingURL=action-bar.js.map
|