@adyen/bento-vue3 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 +25 -13
- 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 +12 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +319 -96
- 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/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 +18 -24
- 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 +21 -3
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +146 -116
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +3 -3
- 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/index10.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/index31.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/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/index46.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 +53 -51
- package/dist/button.js.map +1 -1
- package/dist/card.js +2 -2
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.7897a95e.js → base-button.aa085dfa.js} +2 -2
- package/dist/chunks/{base-button.7897a95e.js.map → base-button.aa085dfa.js.map} +1 -1
- package/dist/chunks/{base-modal.0c85e7cb.js → base-modal.3dcf8376.js} +119 -105
- package/dist/chunks/base-modal.3dcf8376.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.fa35390c.js → button-actions-with-menu.3f52ea2d.js} +7 -7
- package/dist/chunks/{button-actions-with-menu.fa35390c.js.map → button-actions-with-menu.3f52ea2d.js.map} +1 -1
- package/dist/chunks/{button.e5177388.js → button.82ed953e.js} +2 -2
- package/dist/chunks/button.82ed953e.js.map +1 -0
- package/dist/chunks/calendar.d4ab387d.js +1037 -0
- package/dist/chunks/calendar.d4ab387d.js.map +1 -0
- package/dist/chunks/checkbox.03c4b0fe.js +265 -0
- package/dist/chunks/checkbox.03c4b0fe.js.map +1 -0
- package/dist/chunks/controls-group.807b5fb0.js +95 -0
- package/dist/chunks/controls-group.807b5fb0.js.map +1 -0
- package/dist/chunks/{copy.86236c8d.js → copy.28bd4298.js} +4 -4
- package/dist/chunks/{copy.86236c8d.js.map → copy.28bd4298.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.0b38fac3.js → dropdown-default-textbox.74c4584a.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.0b38fac3.js.map → dropdown-default-textbox.74c4584a.js.map} +1 -1
- package/dist/chunks/{dropdown.afff433b.js → dropdown.502e1f5c.js} +314 -337
- package/dist/chunks/dropdown.502e1f5c.js.map +1 -0
- package/dist/chunks/field-label.61679178.js +132 -0
- package/dist/chunks/field-label.61679178.js.map +1 -0
- package/dist/chunks/{fixed-scroller.e5aa7b00.js → fixed-scroller.92bb77a6.js} +2 -2
- package/dist/chunks/{fixed-scroller.e5aa7b00.js.map → fixed-scroller.92bb77a6.js.map} +1 -1
- package/dist/chunks/{footer-actions.1ce44374.js → footer-actions.cefaf1e2.js} +3 -3
- package/dist/chunks/{footer-actions.1ce44374.js.map → footer-actions.cefaf1e2.js.map} +1 -1
- package/dist/chunks/{grid-layout.7c919507.js → grid-layout.c2fe3057.js} +43 -34
- package/dist/chunks/grid-layout.c2fe3057.js.map +1 -0
- package/dist/chunks/{index.fa7b44f1.js → index.0ee895e0.js} +2 -2
- package/dist/chunks/{index.fa7b44f1.js.map → index.0ee895e0.js.map} +1 -1
- package/dist/chunks/{index.bcc58fdd.js → index.7262642e.js} +3 -3
- package/dist/chunks/{index.bcc58fdd.js.map → index.7262642e.js.map} +1 -1
- package/dist/chunks/index.726e2f3c.js +339 -0
- package/dist/chunks/index.726e2f3c.js.map +1 -0
- package/dist/chunks/{index.2bd3812b.js → index.75f3672e.js} +2 -2
- package/dist/chunks/{index.2bd3812b.js.map → index.75f3672e.js.map} +1 -1
- package/dist/chunks/{index.6a665ade.js → index.abb2a1d5.js} +3 -3
- package/dist/chunks/{index.6a665ade.js.map → index.abb2a1d5.js.map} +1 -1
- package/dist/chunks/index.b043371e.js +150 -0
- package/dist/chunks/index.b043371e.js.map +1 -0
- package/dist/chunks/{index.e579bc02.js → index.cf0d3be3.js} +19 -17
- package/dist/chunks/{index.e579bc02.js.map → index.cf0d3be3.js.map} +1 -1
- package/dist/chunks/{index.c207e9ab.js → index.d2542c6a.js} +132 -135
- package/dist/chunks/index.d2542c6a.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.e9156fe3.js +817 -0
- package/dist/chunks/index.e9156fe3.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.809ec40e.js → listbox-option-tag.5b00c85f.js} +3 -3
- package/dist/chunks/{listbox-option-tag.809ec40e.js.map → listbox-option-tag.5b00c85f.js.map} +1 -1
- package/dist/chunks/{listbox.f6e5a11d.js → listbox.d07c24e6.js} +4 -4
- package/dist/chunks/{listbox.f6e5a11d.js.map → listbox.d07c24e6.js.map} +1 -1
- package/dist/chunks/loading-button.ad7cfaee.js +108 -0
- package/dist/chunks/loading-button.ad7cfaee.js.map +1 -0
- package/dist/chunks/{tooltip.f769eb14.js → tooltip.054d2eb6.js} +3 -3
- package/dist/chunks/{tooltip.f769eb14.js.map → tooltip.054d2eb6.js.map} +1 -1
- package/dist/code-snippet.js +6 -6
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +847 -820
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +114 -138
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +17 -16
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +76 -80
- package/dist/header.js.map +1 -1
- package/dist/index.js +207 -205
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +136 -158
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +14 -13
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +4 -4
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +3 -359
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +3 -3
- package/dist/sidepanel.js +5 -5
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +4 -4
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +125 -149
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +312 -229
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +49 -49
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -120
- package/dist/assets/error-message.css +0 -1
- package/dist/chunks/base-modal.0c85e7cb.js.map +0 -1
- package/dist/chunks/button.e5177388.js.map +0 -1
- package/dist/chunks/calendar.c83d4e99.js +0 -898
- package/dist/chunks/calendar.c83d4e99.js.map +0 -1
- package/dist/chunks/checkbox.3cdbdd52.js +0 -235
- package/dist/chunks/checkbox.3cdbdd52.js.map +0 -1
- package/dist/chunks/controls-group.38b436f6.js +0 -136
- package/dist/chunks/controls-group.38b436f6.js.map +0 -1
- package/dist/chunks/dropdown.afff433b.js.map +0 -1
- package/dist/chunks/error-message.64e1964b.js +0 -49
- package/dist/chunks/error-message.64e1964b.js.map +0 -1
- package/dist/chunks/grid-layout.7c919507.js.map +0 -1
- package/dist/chunks/index.369b0e66.js +0 -734
- package/dist/chunks/index.369b0e66.js.map +0 -1
- package/dist/chunks/index.77f35162.js +0 -134
- package/dist/chunks/index.77f35162.js.map +0 -1
- package/dist/chunks/index.c207e9ab.js.map +0 -1
- package/dist/chunks/loading-button.746b7fa1.js +0 -109
- package/dist/chunks/loading-button.746b7fa1.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("../../../../vue3/node_modules/vue").DefineCompon
|
|
|
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("../../../../vue3/node_modules/vue").DefineCompon
|
|
|
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;
|
|
@@ -145,6 +153,7 @@ declare const _default: import("../../../../vue3/node_modules/vue").DefineCompon
|
|
|
145
153
|
description: string;
|
|
146
154
|
optional: boolean;
|
|
147
155
|
readonly: boolean;
|
|
156
|
+
tooltipText: string;
|
|
148
157
|
errorMessage: string;
|
|
149
158
|
ariaLabel: string;
|
|
150
159
|
clearable: boolean;
|
|
@@ -41,7 +41,12 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
|
|
|
41
41
|
};
|
|
42
42
|
title: {
|
|
43
43
|
type: PropType<string | BentoTimelineItemTitle>;
|
|
44
|
-
|
|
44
|
+
default: any;
|
|
45
|
+
};
|
|
46
|
+
type: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
validator: (value: string) => boolean;
|
|
45
50
|
};
|
|
46
51
|
variant: {
|
|
47
52
|
type: PropType<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
|
|
@@ -49,6 +54,7 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
|
|
|
49
54
|
validator: (value: BentoTimelineItemVariant) => boolean;
|
|
50
55
|
};
|
|
51
56
|
}, {
|
|
57
|
+
isNoteType: import("../../../../../../vue3/node_modules/vue").ComputedRef<boolean>;
|
|
52
58
|
iconConditionalClasses: import("../../../../../../vue3/node_modules/vue").ComputedRef<{
|
|
53
59
|
'b-timeline-item__icon--default': boolean;
|
|
54
60
|
'b-timeline-item__icon--success': boolean;
|
|
@@ -57,6 +63,9 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
|
|
|
57
63
|
titleConditionalClasses: import("../../../../../../vue3/node_modules/vue").ComputedRef<{
|
|
58
64
|
'b-timeline-item__title--default': boolean;
|
|
59
65
|
}>;
|
|
66
|
+
conditionalClasses: import("../../../../../../vue3/node_modules/vue").ComputedRef<{
|
|
67
|
+
'b-timeline-item--note': boolean;
|
|
68
|
+
}>;
|
|
60
69
|
displayShowMoreButton: import("../../../../../../vue3/node_modules/vue").ComputedRef<boolean>;
|
|
61
70
|
showAll: import("../../../../../../vue3/node_modules/vue").Ref<boolean>;
|
|
62
71
|
hiddenItems: import("../../../../../../vue3/node_modules/vue").Ref<number>;
|
|
@@ -66,6 +75,7 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
|
|
|
66
75
|
timegap: import("../../../../../../vue3/node_modules/vue").ComputedRef<string>;
|
|
67
76
|
timegapAriaLabel: import("../../../../../../vue3/node_modules/vue").ComputedRef<string>;
|
|
68
77
|
isLastItem: import("../../../../../../vue3/node_modules/vue").ComputedRef<boolean>;
|
|
78
|
+
computedIconVariant: import("../../../../../../vue3/node_modules/vue").ComputedRef<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
|
|
69
79
|
generateUid: (value: string) => string;
|
|
70
80
|
hasSlot: (name: string) => boolean;
|
|
71
81
|
t: import("vue-i18n-bridge").ComposerTranslation<import("../../../../utils/ts/i18n").i18nMessages, string, import("@intlify/core-base").RemoveIndexSignature<{
|
|
@@ -116,7 +126,12 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
|
|
|
116
126
|
};
|
|
117
127
|
title: {
|
|
118
128
|
type: PropType<string | BentoTimelineItemTitle>;
|
|
119
|
-
|
|
129
|
+
default: any;
|
|
130
|
+
};
|
|
131
|
+
type: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
validator: (value: string) => boolean;
|
|
120
135
|
};
|
|
121
136
|
variant: {
|
|
122
137
|
type: PropType<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
|
|
@@ -124,6 +139,8 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
|
|
|
124
139
|
validator: (value: BentoTimelineItemVariant) => boolean;
|
|
125
140
|
};
|
|
126
141
|
}>>, {
|
|
142
|
+
type: string;
|
|
143
|
+
title: string | BentoTimelineItemTitle;
|
|
127
144
|
variant: "CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant;
|
|
128
145
|
tag: any;
|
|
129
146
|
description: string;
|
|
@@ -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 "../../../../vue3/node_modules/vue";
|
|
1
|
+
import { PropType, Ref } from "../../../../vue3/node_modules/vue";
|
|
2
2
|
import { BentoTimelineGapObject, BentoTimelineShowMoreObject } from './timeline.types';
|
|
3
3
|
declare const _default: import("../../../../vue3/node_modules/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("../../../../vue3/node_modules/vue").DefineCompon
|
|
|
9
13
|
type: PropType<BentoTimelineGapObject>;
|
|
10
14
|
default: any;
|
|
11
15
|
};
|
|
12
|
-
},
|
|
16
|
+
}, {
|
|
17
|
+
addNoteLabel: import("../../../../vue3/node_modules/vue").ComputedRef<string>;
|
|
18
|
+
cancelLabel: import("../../../../vue3/node_modules/vue").ComputedRef<string>;
|
|
19
|
+
toggleAddNote: () => void;
|
|
20
|
+
updateNoteContent: (newTimelineNoteContent: string) => void;
|
|
21
|
+
addNoteToTimeline: () => void;
|
|
22
|
+
showAddNoteTextArea: Ref<boolean>;
|
|
23
|
+
}, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, "add-timeline-note"[], "add-timeline-note", import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{
|
|
24
|
+
addNote: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
13
28
|
showMore: {
|
|
14
29
|
type: PropType<BentoTimelineShowMoreObject>;
|
|
15
30
|
default: any;
|
|
@@ -18,8 +33,11 @@ declare const _default: import("../../../../vue3/node_modules/vue").DefineCompon
|
|
|
18
33
|
type: PropType<BentoTimelineGapObject>;
|
|
19
34
|
default: any;
|
|
20
35
|
};
|
|
21
|
-
}
|
|
36
|
+
}>> & {
|
|
37
|
+
"onAdd-timeline-note"?: (...args: any[]) => any;
|
|
38
|
+
}, {
|
|
22
39
|
showMore: BentoTimelineShowMoreObject;
|
|
40
|
+
addNote: boolean;
|
|
23
41
|
timegapLimit: BentoTimelineGapObject;
|
|
24
42
|
}>;
|
|
25
43
|
export default _default;
|
package/dist/accordion.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as C, provide as k, toRef as B, openBlock as a, createElementBlock as r, renderSlot as E, ref as b, inject as O, computed as $, watch as s, createVNode as y, unref as e, withCtx as g, createElementVNode as h, createBlock as I, createTextVNode as z, toDisplayString as A, Transition as D, normalizeStyle as H, createCommentVNode as V } from "vue";
|
|
2
2
|
import { _ as N } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
3
|
-
import { B as w } from "./chunks/index.
|
|
3
|
+
import { B as w } from "./chunks/index.75f3672e.js";
|
|
4
4
|
import { a as R, C as j } from "./chunks/chevron-up.9bf21068.js";
|
|
5
5
|
import { g as x } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { o as M } from "./chunks/resize.a041304d.js";
|
|
7
7
|
import { u as U } from "./chunks/use-expandable-content-height.62fc84e5.js";
|
|
8
|
-
import "./assets/
|
|
8
|
+
import "./assets/index8.css";
|
|
9
9
|
const S = Symbol("accordion title size injection key"), q = { class: "b-accordion" }, J = {}, K = /* @__PURE__ */ C({
|
|
10
10
|
...J,
|
|
11
11
|
__name: "accordion",
|
package/dist/action-bar.js
CHANGED
|
@@ -1,95 +1,96 @@
|
|
|
1
|
-
import { onMounted as
|
|
2
|
-
import { a as
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { C as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import "./
|
|
1
|
+
import { onMounted as L, nextTick as g, getCurrentScope as F, onScopeDispose as R, unref as p, getCurrentInstance as M, ref as _, watch as A, watchEffect as j, computed as S, defineComponent as D, toRefs as G, provide as z, openBlock as H, createBlock as U, Transition as Y, withCtx as I, createElementVNode as B, normalizeClass as q, createVNode as E, createTextVNode as K, toDisplayString as T } from "vue";
|
|
2
|
+
import { a as Q } from "./chunks/button.82ed953e.js";
|
|
3
|
+
import { B as $ } from "./chunks/index.75f3672e.js";
|
|
4
|
+
import { B as J } from "./chunks/button-actions-with-menu.3f52ea2d.js";
|
|
5
|
+
import { C as Z } from "./chunks/cross.5c36a670.js";
|
|
6
|
+
import { u as X } from "./chunks/i18n.6c402773.js";
|
|
7
|
+
import { P as ee } from "./chunks/index.726e2f3c.js";
|
|
8
|
+
import { _ as te } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
9
|
+
import "./assets/index13.css";
|
|
9
10
|
function W(e) {
|
|
10
|
-
return
|
|
11
|
+
return F() ? (R(e), !0) : !1;
|
|
11
12
|
}
|
|
12
13
|
function w(e) {
|
|
13
|
-
return typeof e == "function" ? e() :
|
|
14
|
+
return typeof e == "function" ? e() : p(e);
|
|
14
15
|
}
|
|
15
|
-
const
|
|
16
|
+
const ne = typeof window < "u" && typeof document < "u";
|
|
16
17
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
17
|
-
const
|
|
18
|
+
const oe = Object.prototype.toString, ie = (e) => oe.call(e) === "[object Object]", ae = () => {
|
|
18
19
|
};
|
|
19
|
-
function
|
|
20
|
-
return e ||
|
|
20
|
+
function se(e) {
|
|
21
|
+
return e || M();
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
23
|
+
function re(e, n = !0, t) {
|
|
24
|
+
se() ? L(e, t) : n ? e() : g(e);
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function ce(e) {
|
|
26
27
|
var n;
|
|
27
28
|
const t = w(e);
|
|
28
29
|
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
-
function
|
|
32
|
-
let n, t,
|
|
33
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t,
|
|
34
|
-
return
|
|
35
|
-
Array.isArray(t) || (t = [t]), Array.isArray(
|
|
36
|
-
const c = [],
|
|
37
|
-
c.forEach((
|
|
38
|
-
},
|
|
39
|
-
() => [
|
|
40
|
-
([
|
|
41
|
-
if (
|
|
31
|
+
const N = ne ? window : void 0;
|
|
32
|
+
function le(...e) {
|
|
33
|
+
let n, t, s, o;
|
|
34
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, s, o] = e, n = N) : [n, t, s, o] = e, !n)
|
|
35
|
+
return ae;
|
|
36
|
+
Array.isArray(t) || (t = [t]), Array.isArray(s) || (s = [s]);
|
|
37
|
+
const c = [], i = () => {
|
|
38
|
+
c.forEach((d) => d()), c.length = 0;
|
|
39
|
+
}, r = (d, m, f, a) => (d.addEventListener(m, f, a), () => d.removeEventListener(m, f, a)), u = A(
|
|
40
|
+
() => [ce(n), w(o)],
|
|
41
|
+
([d, m]) => {
|
|
42
|
+
if (i(), !d)
|
|
42
43
|
return;
|
|
43
|
-
const
|
|
44
|
+
const f = ie(m) ? { ...m } : m;
|
|
44
45
|
c.push(
|
|
45
|
-
...t.flatMap((
|
|
46
|
+
...t.flatMap((a) => s.map((h) => r(d, a, h, f)))
|
|
46
47
|
);
|
|
47
48
|
},
|
|
48
49
|
{ immediate: !0, flush: "post" }
|
|
49
|
-
),
|
|
50
|
-
|
|
50
|
+
), l = () => {
|
|
51
|
+
u(), i();
|
|
51
52
|
};
|
|
52
|
-
return W(
|
|
53
|
+
return W(l), l;
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function ue() {
|
|
55
56
|
const e = _(!1);
|
|
56
|
-
return
|
|
57
|
+
return M() && L(() => {
|
|
57
58
|
e.value = !0;
|
|
58
59
|
}), e;
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
-
const n =
|
|
62
|
-
return
|
|
61
|
+
function de(e) {
|
|
62
|
+
const n = ue();
|
|
63
|
+
return S(() => (n.value, !!e()));
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
const { window: t =
|
|
65
|
+
function fe(e, n = {}) {
|
|
66
|
+
const { window: t = N } = n, s = de(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
66
67
|
let o;
|
|
67
|
-
const c = _(!1),
|
|
68
|
-
c.value =
|
|
69
|
-
},
|
|
70
|
-
o && ("removeEventListener" in o ? o.removeEventListener("change",
|
|
71
|
-
},
|
|
72
|
-
|
|
68
|
+
const c = _(!1), i = (l) => {
|
|
69
|
+
c.value = l.matches;
|
|
70
|
+
}, r = () => {
|
|
71
|
+
o && ("removeEventListener" in o ? o.removeEventListener("change", i) : o.removeListener(i));
|
|
72
|
+
}, u = j(() => {
|
|
73
|
+
s.value && (r(), o = t.matchMedia(w(e)), "addEventListener" in o ? o.addEventListener("change", i) : o.addListener(i), c.value = o.matches);
|
|
73
74
|
});
|
|
74
75
|
return W(() => {
|
|
75
|
-
|
|
76
|
+
u(), r(), o = void 0;
|
|
76
77
|
}), c;
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
+
function pe(e = {}) {
|
|
79
80
|
const {
|
|
80
|
-
window: n =
|
|
81
|
+
window: n = N,
|
|
81
82
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
82
|
-
initialHeight:
|
|
83
|
+
initialHeight: s = Number.POSITIVE_INFINITY,
|
|
83
84
|
listenOrientation: o = !0,
|
|
84
85
|
includeScrollbar: c = !0
|
|
85
|
-
} = e,
|
|
86
|
-
n && (c ? (
|
|
86
|
+
} = e, i = _(t), r = _(s), u = () => {
|
|
87
|
+
n && (c ? (i.value = n.innerWidth, r.value = n.innerHeight) : (i.value = n.document.documentElement.clientWidth, r.value = n.document.documentElement.clientHeight));
|
|
87
88
|
};
|
|
88
|
-
if (
|
|
89
|
-
const
|
|
90
|
-
|
|
89
|
+
if (u(), re(u), le("resize", u, { passive: !0 }), o) {
|
|
90
|
+
const l = fe("(orientation: portrait)");
|
|
91
|
+
A(l, () => u());
|
|
91
92
|
}
|
|
92
|
-
return { width:
|
|
93
|
+
return { width: i, height: r };
|
|
93
94
|
}
|
|
94
95
|
const x = {
|
|
95
96
|
"en-US": {
|
|
@@ -97,10 +98,10 @@ const x = {
|
|
|
97
98
|
close: "Close",
|
|
98
99
|
selected: "selected"
|
|
99
100
|
}
|
|
100
|
-
},
|
|
101
|
+
}, me = ["aria-label"], ve = { class: "b-action-bar__close-button" }, _e = {
|
|
101
102
|
i18n: { messages: x }
|
|
102
|
-
},
|
|
103
|
-
...
|
|
103
|
+
}, be = /* @__PURE__ */ D({
|
|
104
|
+
..._e,
|
|
104
105
|
__name: "action-bar",
|
|
105
106
|
props: {
|
|
106
107
|
/**
|
|
@@ -117,6 +118,14 @@ const x = {
|
|
|
117
118
|
type: Array,
|
|
118
119
|
required: !0
|
|
119
120
|
},
|
|
121
|
+
/**
|
|
122
|
+
* How many actions should be visible outside the menu, cannot be more than 4
|
|
123
|
+
*/
|
|
124
|
+
visibleActions: {
|
|
125
|
+
type: Number,
|
|
126
|
+
default: 4,
|
|
127
|
+
validator: (e) => e > 0 && e <= 4
|
|
128
|
+
},
|
|
120
129
|
/**
|
|
121
130
|
* Use when there are sticky elements at the bottom, like sticky pagination
|
|
122
131
|
*/
|
|
@@ -141,70 +150,91 @@ const x = {
|
|
|
141
150
|
},
|
|
142
151
|
emits: ["close"],
|
|
143
152
|
setup(e, { emit: n }) {
|
|
144
|
-
const t = e, { t:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
153
|
+
const t = e, s = 100, o = 7, c = 500, i = 32, { t: r } = X({ messages: x }), u = S(() => t.selectionLabel ? t.selectionLabel : r("selected")), l = _(null), { extraBottomSpacing: d, visibleActions: m } = G(t), { width: f } = pe(), a = _(null), h = _(null);
|
|
154
|
+
A(
|
|
155
|
+
() => m.value,
|
|
156
|
+
(v) => {
|
|
157
|
+
h.value = v <= 4 ? v : 4, a.value = h.value;
|
|
158
|
+
},
|
|
159
|
+
{ immediate: !0 }
|
|
160
|
+
);
|
|
161
|
+
const V = S(() => ({
|
|
162
|
+
"b-action-bar--extra-spacing": d.value
|
|
163
|
+
}));
|
|
164
|
+
z(ee, o);
|
|
165
|
+
const P = S(() => {
|
|
166
|
+
const v = t.actions.map((k) => ({
|
|
167
|
+
...k,
|
|
149
168
|
variant: "secondary"
|
|
150
|
-
})),
|
|
151
|
-
return [...
|
|
152
|
-
}),
|
|
153
|
-
await
|
|
154
|
-
},
|
|
155
|
-
await
|
|
169
|
+
})), b = v.slice(0, a.value).reverse(), y = v.slice(a.value);
|
|
170
|
+
return [...b, ...y];
|
|
171
|
+
}), C = async () => {
|
|
172
|
+
await g(), f.value > l.value.clientWidth + i + s && a.value < h.value && (a.value += 1, C());
|
|
173
|
+
}, O = async () => {
|
|
174
|
+
await g(), f.value < l.value.clientWidth + i && a.value > 0 && (a.value -= 1, O());
|
|
156
175
|
};
|
|
157
|
-
return
|
|
158
|
-
() =>
|
|
159
|
-
async (
|
|
160
|
-
if (await
|
|
176
|
+
return A(
|
|
177
|
+
() => f.value,
|
|
178
|
+
async (v, b) => {
|
|
179
|
+
if (await g(), !l.value)
|
|
161
180
|
return;
|
|
162
|
-
const
|
|
163
|
-
|
|
181
|
+
const y = v > b;
|
|
182
|
+
f.value < c ? a.value = 0 : y ? C() : O();
|
|
164
183
|
},
|
|
165
184
|
{ immediate: !0 }
|
|
166
|
-
), (
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
+
), (v, b) => (H(), U(Y, {
|
|
186
|
+
name: "b-action-bar__animation",
|
|
187
|
+
appear: ""
|
|
188
|
+
}, {
|
|
189
|
+
default: I(() => [
|
|
190
|
+
B("section", {
|
|
191
|
+
class: q(["b-action-bar", p(V)]),
|
|
192
|
+
"aria-label": p(r)("actionBar")
|
|
193
|
+
}, [
|
|
194
|
+
B("div", {
|
|
195
|
+
ref_key: "actionBar",
|
|
196
|
+
ref: l,
|
|
197
|
+
class: "b-action-bar__container"
|
|
198
|
+
}, [
|
|
199
|
+
B("div", ve, [
|
|
200
|
+
E(p(Q), {
|
|
201
|
+
variant: "tertiary",
|
|
202
|
+
inverse: "",
|
|
203
|
+
"aria-label": p(r)("close"),
|
|
204
|
+
onClick: b[0] || (b[0] = (y) => n("close"))
|
|
205
|
+
}, {
|
|
206
|
+
iconLeft: I(() => [
|
|
207
|
+
E(p(Z), { "aria-hidden": !0 })
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["aria-label"])
|
|
211
|
+
]),
|
|
212
|
+
E(p($), {
|
|
213
|
+
el: "span",
|
|
214
|
+
stronger: "",
|
|
215
|
+
class: "b-action-bar__selection"
|
|
216
|
+
}, {
|
|
217
|
+
default: I(() => [
|
|
218
|
+
K(T(e.itemCounter) + " " + T(p(u)), 1)
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}),
|
|
222
|
+
E(J, {
|
|
223
|
+
actions: p(P),
|
|
224
|
+
class: "b-action-bar__actions",
|
|
225
|
+
"displayed-actions": a.value,
|
|
226
|
+
"menu-position": "top-end",
|
|
227
|
+
inverse: ""
|
|
228
|
+
}, null, 8, ["actions", "displayed-actions"])
|
|
229
|
+
], 512)
|
|
230
|
+
], 10, me)
|
|
185
231
|
]),
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
stronger: "",
|
|
189
|
-
class: "b-action-bar__selection"
|
|
190
|
-
}, {
|
|
191
|
-
default: C(() => [
|
|
192
|
-
H(L(e.itemCounter) + " " + L(d(o)), 1)
|
|
193
|
-
]),
|
|
194
|
-
_: 1
|
|
195
|
-
}),
|
|
196
|
-
g(Q, {
|
|
197
|
-
actions: d(m),
|
|
198
|
-
class: "b-action-bar__actions",
|
|
199
|
-
"displayed-actions": s.value,
|
|
200
|
-
"menu-position": "top-end",
|
|
201
|
-
inverse: ""
|
|
202
|
-
}, null, 8, ["actions", "displayed-actions"])
|
|
203
|
-
], 10, ce));
|
|
232
|
+
_: 1
|
|
233
|
+
}));
|
|
204
234
|
}
|
|
205
235
|
});
|
|
206
|
-
const
|
|
236
|
+
const we = /* @__PURE__ */ te(be, [["__scopeId", "data-v-59086ee6"]]);
|
|
207
237
|
export {
|
|
208
|
-
|
|
238
|
+
we as BentoActionBar
|
|
209
239
|
};
|
|
210
240
|
//# sourceMappingURL=action-bar.js.map
|