@adyen/bento-vue3 1.25.0 → 1.27.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 +4 -0
- package/dist/@types/packages/core/src/utils/ts/storybook.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/utils/get-lang-loader.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +10 -2
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +8 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +27 -11
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +19 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +38 -12
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +19 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +19 -6
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +29 -48
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +1 -18
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +36 -54
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +27 -22
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +76 -1
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +20 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +42 -3
- package/dist/@types/packages/vue2/src/components/typography/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +78 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +103 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -12
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +70 -154
- 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/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.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/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/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -0
- 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/use-cached-selected-values.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +3 -3
- package/dist/checkbox.js +5 -5
- package/dist/chunks/{base-button.6be8b60e.js → base-button.a0140a4c.js} +2 -2
- package/dist/chunks/{base-button.6be8b60e.js.map → base-button.a0140a4c.js.map} +1 -1
- package/dist/chunks/{base-modal.310c4790.js → base-modal.4102f69d.js} +6 -6
- package/dist/chunks/{base-modal.310c4790.js.map → base-modal.4102f69d.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.a007b034.js → button-actions-with-menu.4f311411.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.a007b034.js.map → button-actions-with-menu.4f311411.js.map} +1 -1
- package/dist/chunks/{button-actions.adc0a2fe.js → button-actions.82163994.js} +42 -40
- package/dist/chunks/button-actions.82163994.js.map +1 -0
- package/dist/chunks/{button.de5589fa.js → button.ae4760cd.js} +27 -26
- package/dist/chunks/button.ae4760cd.js.map +1 -0
- package/dist/chunks/{calendar.73f5b904.js → calendar.a9c5a68c.js} +5 -5
- package/dist/chunks/{calendar.73f5b904.js.map → calendar.a9c5a68c.js.map} +1 -1
- package/dist/chunks/{checkbox.4c96cc23.js → checkbox.9c30c07b.js} +3 -3
- package/dist/chunks/{checkbox.4c96cc23.js.map → checkbox.9c30c07b.js.map} +1 -1
- package/dist/chunks/{controls-group.37a67734.js → controls-group.8357e3fd.js} +3 -3
- package/dist/chunks/{controls-group.37a67734.js.map → controls-group.8357e3fd.js.map} +1 -1
- package/dist/chunks/{copy.43de2653.js → copy.60ee6ac3.js} +4 -4
- package/dist/chunks/{copy.43de2653.js.map → copy.60ee6ac3.js.map} +1 -1
- package/dist/chunks/{dialog-page.cd8c7fff.js → dialog-page.cb6ce9b6.js} +3 -3
- package/dist/chunks/{dialog-page.cd8c7fff.js.map → dialog-page.cb6ce9b6.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.424e0eb6.js → dropdown-default-textbox.cda0798f.js} +3 -3
- package/dist/chunks/{dropdown-default-textbox.424e0eb6.js.map → dropdown-default-textbox.cda0798f.js.map} +1 -1
- package/dist/chunks/{dropdown.57b2ea6f.js → dropdown.0ae3b842.js} +118 -128
- package/dist/chunks/dropdown.0ae3b842.js.map +1 -0
- package/dist/chunks/{error-message.4bd22112.js → error-message.d2bdeb80.js} +2 -2
- package/dist/chunks/{error-message.4bd22112.js.map → error-message.d2bdeb80.js.map} +1 -1
- package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
- package/dist/chunks/events.f14a214b.js.map +1 -0
- package/dist/chunks/{fixed-scroller.5b93a6a6.js → fixed-scroller.7b42cb1e.js} +2 -2
- package/dist/chunks/{fixed-scroller.5b93a6a6.js.map → fixed-scroller.7b42cb1e.js.map} +1 -1
- package/dist/chunks/{footer-actions.c401ec50.js → footer-actions.64f6f5d8.js} +4 -4
- package/dist/chunks/{footer-actions.c401ec50.js.map → footer-actions.64f6f5d8.js.map} +1 -1
- package/dist/chunks/{index.faec0854.js → index.2d7b4511.js} +9 -9
- package/dist/chunks/{index.faec0854.js.map → index.2d7b4511.js.map} +1 -1
- package/dist/chunks/index.2fcd1233.js +103 -0
- package/dist/chunks/index.2fcd1233.js.map +1 -0
- package/dist/chunks/{index.f71015d8.js → index.6295e754.js} +3 -3
- package/dist/chunks/{index.f71015d8.js.map → index.6295e754.js.map} +1 -1
- package/dist/chunks/{index.8b10ee32.js → index.6bb6f38c.js} +6 -6
- package/dist/chunks/{index.8b10ee32.js.map → index.6bb6f38c.js.map} +1 -1
- package/dist/chunks/{index.73ac0db6.js → index.8aa536a8.js} +3 -3
- package/dist/chunks/{index.73ac0db6.js.map → index.8aa536a8.js.map} +1 -1
- package/dist/chunks/{index.ea65003b.js → index.9d7fb316.js} +2 -2
- package/dist/chunks/{index.ea65003b.js.map → index.9d7fb316.js.map} +1 -1
- package/dist/chunks/{index.bab8811d.js → index.a001a0a8.js} +6 -6
- package/dist/chunks/{index.bab8811d.js.map → index.a001a0a8.js.map} +1 -1
- package/dist/chunks/{index.98bbaed9.js → index.b18c78d6.js} +2 -2
- package/dist/chunks/{index.98bbaed9.js.map → index.b18c78d6.js.map} +1 -1
- package/dist/chunks/{index.aa83aa48.js → index.eb38a6c4.js} +3 -3
- package/dist/chunks/{index.aa83aa48.js.map → index.eb38a6c4.js.map} +1 -1
- package/dist/chunks/{index.11b6dd35.js → index.ee15db35.js} +17 -17
- package/dist/chunks/index.ee15db35.js.map +1 -0
- package/dist/chunks/{index.8682bd04.js → index.f9d081d2.js} +2 -2
- package/dist/chunks/{index.8682bd04.js.map → index.f9d081d2.js.map} +1 -1
- package/dist/chunks/index.fedbb4c2.js +125 -0
- package/dist/chunks/index.fedbb4c2.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.d1a3b340.js → listbox-option-tag.2aea037c.js} +3 -3
- package/dist/chunks/{listbox-option-tag.d1a3b340.js.map → listbox-option-tag.2aea037c.js.map} +1 -1
- package/dist/chunks/{loading-button.2db95771.js → loading-button.6b81b546.js} +2 -2
- package/dist/chunks/{loading-button.2db95771.js.map → loading-button.6b81b546.js.map} +1 -1
- package/dist/chunks/{payment-method.26fa5509.js → payment-method.d5595a7c.js} +2 -2
- package/dist/chunks/{payment-method.26fa5509.js.map → payment-method.d5595a7c.js.map} +1 -1
- package/dist/chunks/{tooltip.e29f7d7e.js → tooltip.36172265.js} +4 -4
- package/dist/chunks/{tooltip.e29f7d7e.js.map → tooltip.36172265.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.98ca249a.js → use-bento-toast-controller.3dc4e113.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.98ca249a.js.map → use-bento-toast-controller.3dc4e113.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.a9b0fb3d.js → use-cached-selected-values.3c312296.js} +396 -375
- package/dist/chunks/use-cached-selected-values.3c312296.js.map +1 -0
- package/dist/code-snippet.js +137 -135
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +169 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1295 -1253
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +8 -8
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +84 -82
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +53 -51
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +4 -4
- package/dist/index.js +66 -63
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +6 -6
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +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/secondary-nav.js +2 -2
- package/dist/segmented-control.js +66 -72
- package/dist/segmented-control.js.map +1 -1
- package/dist/selection-card.js +4 -4
- package/dist/sidepanel.js +6 -6
- package/dist/status.js +2 -2
- package/dist/stepper.js +4 -4
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +81 -77
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +4 -4
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +168 -132
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +8 -6
- package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +0 -8
- package/dist/chunks/button-actions.adc0a2fe.js.map +0 -1
- package/dist/chunks/button.de5589fa.js.map +0 -1
- package/dist/chunks/checkmark.eb3c7a06.js +0 -29
- package/dist/chunks/checkmark.eb3c7a06.js.map +0 -1
- package/dist/chunks/dropdown.57b2ea6f.js.map +0 -1
- package/dist/chunks/events.58c00e6d.js.map +0 -1
- package/dist/chunks/index.11b6dd35.js.map +0 -1
- package/dist/chunks/index.38752f78.js +0 -168
- package/dist/chunks/index.38752f78.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.a9b0fb3d.js.map +0 -1
- /package/dist/@types/packages/{vue2 → core}/src/components/typography/typography.types.d.ts +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { BentoDashboardTemplateHeader } from '../../dashboard-template.types';
|
|
2
|
+
/**
|
|
3
|
+
* Dashboard section is subcomponent of Dashboard template meant to be used to create the different sections within the page.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* import { BentoDashboardSection } from '@adyen/bento-vue2';
|
|
7
|
+
*
|
|
8
|
+
* export default {
|
|
9
|
+
* components: { BentoDashboardSection },
|
|
10
|
+
* template: `
|
|
11
|
+
* <bento-dashboard-section :header="{ title: 'Section' }" half-width>
|
|
12
|
+
* <template #controls>
|
|
13
|
+
* // Add your controls here
|
|
14
|
+
* </template>
|
|
15
|
+
* // You can render content with two cols
|
|
16
|
+
* <template #content-col-1>
|
|
17
|
+
* // Add your content here
|
|
18
|
+
* </template>
|
|
19
|
+
* <template #content-col-2>
|
|
20
|
+
* // Add your content here
|
|
21
|
+
* </template>
|
|
22
|
+
* // Or you can render full width content by using default slot
|
|
23
|
+
* // Add your content here
|
|
24
|
+
* </bento-dashboard-section>
|
|
25
|
+
* `
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<import("../../../../../../vue3/node_modules/vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
29
|
+
/**
|
|
30
|
+
* The header of the section
|
|
31
|
+
*/
|
|
32
|
+
header: BentoDashboardTemplateHeader;
|
|
33
|
+
/**
|
|
34
|
+
* Renders the section to take only half of the page
|
|
35
|
+
*/
|
|
36
|
+
halfWidth?: boolean;
|
|
37
|
+
}>, {
|
|
38
|
+
halfWidth: boolean;
|
|
39
|
+
}>, {}, unknown, {}, {}, import("../../../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, 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<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
40
|
+
/**
|
|
41
|
+
* The header of the section
|
|
42
|
+
*/
|
|
43
|
+
header: BentoDashboardTemplateHeader;
|
|
44
|
+
/**
|
|
45
|
+
* Renders the section to take only half of the page
|
|
46
|
+
*/
|
|
47
|
+
halfWidth?: boolean;
|
|
48
|
+
}>, {
|
|
49
|
+
halfWidth: boolean;
|
|
50
|
+
}>>>, {
|
|
51
|
+
halfWidth: boolean;
|
|
52
|
+
}>, {
|
|
53
|
+
infoIconTooltipContent: (_: {}) => any;
|
|
54
|
+
controls: (_: {}) => any;
|
|
55
|
+
default: (_: {}) => any;
|
|
56
|
+
'content-col-1': (_: {}) => any;
|
|
57
|
+
'content-col-2': (_: {}) => any;
|
|
58
|
+
}>;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
62
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
+
type: import("../../../../../../vue3/node_modules/vue").PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
+
} : {
|
|
65
|
+
type: import("../../../../../../vue3/node_modules/vue").PropType<T[K]>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
type __VLS_WithDefaults<P, D> = {
|
|
70
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
71
|
+
default: D[K];
|
|
72
|
+
} : P[K];
|
|
73
|
+
};
|
|
74
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.types.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BentoTab } from "../../components/tabs";
|
|
2
|
+
import type { BentoHeader } from "../../components/header";
|
|
3
|
+
export type BentoDashboardTemplateTab = InstanceType<typeof BentoTab>['$props'];
|
|
4
|
+
export type BentoDashboardTemplateHeader = InstanceType<typeof BentoHeader>['$props'];
|
|
5
|
+
export type BentoDashboardTemplateTabs = {
|
|
6
|
+
activeTabIndex?: number;
|
|
7
|
+
tabs: BentoDashboardTemplateTab[];
|
|
8
|
+
};
|
package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { BentoDashboardTemplateHeader, BentoDashboardTemplateTabs } from './dashboard-template.types';
|
|
2
|
+
/**
|
|
3
|
+
* Dashboard template is a full page template used to visualize data on pages such as data dashboards and reports.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* import { BentoDashboardTemplate, BentoDashboardSection } from '@adyen/bento-vue2';
|
|
7
|
+
*
|
|
8
|
+
* export default {
|
|
9
|
+
* components: { BentoDashboardTemplate, BentoDashboardSection },
|
|
10
|
+
* template: `
|
|
11
|
+
* <bento-dashboard-template :header="{ title: 'Dashboard'}" :tabs="tabs: [{ title: 'Tab 1' }, { title: 'Tab 2' }]" sticky-tabs sticky-filters>
|
|
12
|
+
* <template #tab-1>
|
|
13
|
+
* <bento-dashboard-section :header="{ title: 'Section'}">
|
|
14
|
+
* <template #controls>
|
|
15
|
+
* // Add your controls here
|
|
16
|
+
* </template>
|
|
17
|
+
* // Add your content here
|
|
18
|
+
* </bento-dashboard-section>
|
|
19
|
+
* </template>
|
|
20
|
+
* <template #tab-2>
|
|
21
|
+
* <bento-dashboard-section :header="{ title: 'Section'}">
|
|
22
|
+
* // Add your content here
|
|
23
|
+
* </bento-dashboard-section>
|
|
24
|
+
* </template>
|
|
25
|
+
* </bento-dashboard-template>
|
|
26
|
+
* `
|
|
27
|
+
* }
|
|
28
|
+
*/
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_modules/vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
30
|
+
/**
|
|
31
|
+
* The header that goes to the top of the template
|
|
32
|
+
*/
|
|
33
|
+
header: BentoDashboardTemplateHeader;
|
|
34
|
+
/**
|
|
35
|
+
* All the tab properties that can be set on the inner tab components.
|
|
36
|
+
* - tabs.activeTabIndex: the currently active tab index.
|
|
37
|
+
* - tabs.tabs: an array of BentoTab props, the first item in the array will affect the `tab-1` slot and so on.
|
|
38
|
+
*/
|
|
39
|
+
tabs?: BentoDashboardTemplateTabs;
|
|
40
|
+
/**
|
|
41
|
+
* Renders the tabs with a sticky positioning
|
|
42
|
+
*/
|
|
43
|
+
stickyTabs?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Renders the tabs with a sticky positioning
|
|
46
|
+
*/
|
|
47
|
+
stickyFilters?: boolean;
|
|
48
|
+
}>, {
|
|
49
|
+
tabs: any;
|
|
50
|
+
stickyTabs: boolean;
|
|
51
|
+
stickyFilters: boolean;
|
|
52
|
+
}>, {}, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, 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<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
53
|
+
/**
|
|
54
|
+
* The header that goes to the top of the template
|
|
55
|
+
*/
|
|
56
|
+
header: BentoDashboardTemplateHeader;
|
|
57
|
+
/**
|
|
58
|
+
* All the tab properties that can be set on the inner tab components.
|
|
59
|
+
* - tabs.activeTabIndex: the currently active tab index.
|
|
60
|
+
* - tabs.tabs: an array of BentoTab props, the first item in the array will affect the `tab-1` slot and so on.
|
|
61
|
+
*/
|
|
62
|
+
tabs?: BentoDashboardTemplateTabs;
|
|
63
|
+
/**
|
|
64
|
+
* Renders the tabs with a sticky positioning
|
|
65
|
+
*/
|
|
66
|
+
stickyTabs?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Renders the tabs with a sticky positioning
|
|
69
|
+
*/
|
|
70
|
+
stickyFilters?: boolean;
|
|
71
|
+
}>, {
|
|
72
|
+
tabs: any;
|
|
73
|
+
stickyTabs: boolean;
|
|
74
|
+
stickyFilters: boolean;
|
|
75
|
+
}>>>, {
|
|
76
|
+
tabs: BentoDashboardTemplateTabs;
|
|
77
|
+
stickyFilters: boolean;
|
|
78
|
+
stickyTabs: boolean;
|
|
79
|
+
}>, Record<string, (_: {}) => any> & {
|
|
80
|
+
infoIconTooltipContent: (_: {}) => any;
|
|
81
|
+
filters: (_: {}) => any;
|
|
82
|
+
default: (_: {}) => any;
|
|
83
|
+
}>;
|
|
84
|
+
export default _default;
|
|
85
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
86
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
87
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
88
|
+
type: import("../../../../vue3/node_modules/vue").PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
89
|
+
} : {
|
|
90
|
+
type: import("../../../../vue3/node_modules/vue").PropType<T[K]>;
|
|
91
|
+
required: true;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
type __VLS_WithDefaults<P, D> = {
|
|
95
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
96
|
+
default: D[K];
|
|
97
|
+
} : P[K];
|
|
98
|
+
};
|
|
99
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
100
|
+
new (): {
|
|
101
|
+
$slots: S;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
docs: {
|
|
3
|
-
source: {
|
|
4
|
-
code: string;
|
|
5
|
-
language: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export declare const getPokemonFromApi: (pokemonName?: string) => Promise<{
|
|
10
|
-
label: any;
|
|
11
|
-
value: any;
|
|
12
|
-
}[]>;
|
|
1
|
+
export * from "../../../../core/src/utils/ts/storybook";
|
|
13
2
|
/**
|
|
14
3
|
* Adds necessary Toast component to display toasts.
|
|
15
4
|
* It should be added just once on the app level, but never in the views or components itself
|
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.ee15db35.js";
|
|
4
4
|
import { C as R, a as j } from "./chunks/chevron-up.638a9f34.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/index2.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,99 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { C as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { defineComponent as W, computed as c, ref as p, toRefs as U, watch as g, provide as z, nextTick as f, openBlock as m, createBlock as b, Transition as D, withCtx as y, createElementVNode as E, normalizeClass as G, unref as e, createElementBlock as K, createVNode as B, createCommentVNode as M, createTextVNode as q, toDisplayString as S } from "vue";
|
|
2
|
+
import { a as J } from "./chunks/button.ae4760cd.js";
|
|
3
|
+
import { B as Y } from "./chunks/index.ee15db35.js";
|
|
4
|
+
import { B as Z } from "./chunks/button-actions-with-menu.4f311411.js";
|
|
5
|
+
import { C as $ } from "./chunks/cross.26509efc.js";
|
|
6
|
+
import { u as j } from "./chunks/i18n.f7e6533e.js";
|
|
7
|
+
import { u as H } from "./chunks/index.fedbb4c2.js";
|
|
8
|
+
import { P as Q } from "./chunks/index.a001a0a8.js";
|
|
9
|
+
import { B as X } from "./chunks/button-actions.82163994.js";
|
|
10
|
+
import { _ as ee } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
10
11
|
import "./assets/index5.css";
|
|
11
|
-
|
|
12
|
-
return z() ? (H(e), !0) : !1;
|
|
13
|
-
}
|
|
14
|
-
function O(e) {
|
|
15
|
-
return typeof e == "function" ? e() : o(e);
|
|
16
|
-
}
|
|
17
|
-
const re = typeof window < "u" && typeof document < "u";
|
|
18
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
19
|
-
const le = Object.prototype.toString, ue = (e) => le.call(e) === "[object Object]", de = () => {
|
|
20
|
-
};
|
|
21
|
-
function fe(e) {
|
|
22
|
-
return e || x();
|
|
23
|
-
}
|
|
24
|
-
function pe(e, n = !0, t) {
|
|
25
|
-
fe() ? k(e, t) : n ? e() : B(e);
|
|
26
|
-
}
|
|
27
|
-
function ve(e) {
|
|
28
|
-
var n;
|
|
29
|
-
const t = O(e);
|
|
30
|
-
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
31
|
-
}
|
|
32
|
-
const T = re ? window : void 0;
|
|
33
|
-
function me(...e) {
|
|
34
|
-
let n, t, c, a;
|
|
35
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, c, a] = e, n = T) : [n, t, c, a] = e, !n)
|
|
36
|
-
return de;
|
|
37
|
-
Array.isArray(t) || (t = [t]), Array.isArray(c) || (c = [c]);
|
|
38
|
-
const l = [], i = () => {
|
|
39
|
-
l.forEach((r) => r()), l.length = 0;
|
|
40
|
-
}, s = (r, v, b, f) => (r.addEventListener(v, b, f), () => r.removeEventListener(v, b, f)), d = A(
|
|
41
|
-
() => [ve(n), O(a)],
|
|
42
|
-
([r, v]) => {
|
|
43
|
-
if (i(), !r)
|
|
44
|
-
return;
|
|
45
|
-
const b = ue(v) ? { ...v } : v;
|
|
46
|
-
l.push(
|
|
47
|
-
...t.flatMap((f) => c.map((u) => s(r, f, u, b)))
|
|
48
|
-
);
|
|
49
|
-
},
|
|
50
|
-
{ immediate: !0, flush: "post" }
|
|
51
|
-
), p = () => {
|
|
52
|
-
d(), i();
|
|
53
|
-
};
|
|
54
|
-
return P(p), p;
|
|
55
|
-
}
|
|
56
|
-
function _e() {
|
|
57
|
-
const e = _(!1);
|
|
58
|
-
return x() && k(() => {
|
|
59
|
-
e.value = !0;
|
|
60
|
-
}), e;
|
|
61
|
-
}
|
|
62
|
-
function be(e) {
|
|
63
|
-
const n = _e();
|
|
64
|
-
return y(() => (n.value, !!e()));
|
|
65
|
-
}
|
|
66
|
-
function he(e, n = {}) {
|
|
67
|
-
const { window: t = T } = n, c = be(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
68
|
-
let a;
|
|
69
|
-
const l = _(!1), i = (p) => {
|
|
70
|
-
l.value = p.matches;
|
|
71
|
-
}, s = () => {
|
|
72
|
-
a && ("removeEventListener" in a ? a.removeEventListener("change", i) : a.removeListener(i));
|
|
73
|
-
}, d = U(() => {
|
|
74
|
-
c.value && (s(), a = t.matchMedia(O(e)), "addEventListener" in a ? a.addEventListener("change", i) : a.addListener(i), l.value = a.matches);
|
|
75
|
-
});
|
|
76
|
-
return P(() => {
|
|
77
|
-
d(), s(), a = void 0;
|
|
78
|
-
}), l;
|
|
79
|
-
}
|
|
80
|
-
function ye(e = {}) {
|
|
81
|
-
const {
|
|
82
|
-
window: n = T,
|
|
83
|
-
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
84
|
-
initialHeight: c = Number.POSITIVE_INFINITY,
|
|
85
|
-
listenOrientation: a = !0,
|
|
86
|
-
includeScrollbar: l = !0
|
|
87
|
-
} = e, i = _(t), s = _(c), d = () => {
|
|
88
|
-
n && (l ? (i.value = n.innerWidth, s.value = n.innerHeight) : (i.value = n.document.documentElement.clientWidth, s.value = n.document.documentElement.clientHeight));
|
|
89
|
-
};
|
|
90
|
-
if (d(), pe(d), me("resize", d, { passive: !0 }), a) {
|
|
91
|
-
const p = he("(orientation: portrait)");
|
|
92
|
-
A(p, () => d());
|
|
93
|
-
}
|
|
94
|
-
return { width: i, height: s };
|
|
95
|
-
}
|
|
96
|
-
const F = {
|
|
12
|
+
const N = {
|
|
97
13
|
"en-US": {
|
|
98
14
|
actionBar: "Action bar",
|
|
99
15
|
cancel: "Cancel",
|
|
@@ -102,13 +18,13 @@ const F = {
|
|
|
102
18
|
selected: "selected",
|
|
103
19
|
unsavedChanges: "unsaved change | unsaved changes"
|
|
104
20
|
}
|
|
105
|
-
},
|
|
21
|
+
}, te = ["aria-label"], ae = {
|
|
106
22
|
key: 0,
|
|
107
23
|
class: "b-action-bar__close-button"
|
|
108
|
-
},
|
|
109
|
-
i18n: { messages:
|
|
110
|
-
},
|
|
111
|
-
...
|
|
24
|
+
}, ne = {
|
|
25
|
+
i18n: { messages: N }
|
|
26
|
+
}, oe = /* @__PURE__ */ W({
|
|
27
|
+
...ne,
|
|
112
28
|
__name: "action-bar",
|
|
113
29
|
props: {
|
|
114
30
|
/**
|
|
@@ -132,7 +48,7 @@ const F = {
|
|
|
132
48
|
visibleActions: {
|
|
133
49
|
type: Number,
|
|
134
50
|
default: 4,
|
|
135
|
-
validator: (
|
|
51
|
+
validator: (n) => n > 0 && n <= 4
|
|
136
52
|
},
|
|
137
53
|
/**
|
|
138
54
|
* Use when there are sticky elements at the bottom, like sticky pagination
|
|
@@ -165,109 +81,109 @@ const F = {
|
|
|
165
81
|
}
|
|
166
82
|
},
|
|
167
83
|
emits: ["close", "cancel", "save"],
|
|
168
|
-
setup(
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
() =>
|
|
172
|
-
(
|
|
173
|
-
|
|
84
|
+
setup(n, { emit: v }) {
|
|
85
|
+
const s = n, I = 100, x = 7, T = 500, A = 32, { t: i, tc: k } = j({ messages: N }), w = c(() => s.selectionLabel ? s.selectionLabel : i("selected")), r = p(null), { extraBottomSpacing: V, visibleActions: O } = U(s), { width: l } = H(), t = p(null), _ = p(null), u = c(() => s.variant === "confirmation");
|
|
86
|
+
g(
|
|
87
|
+
() => O.value,
|
|
88
|
+
(a) => {
|
|
89
|
+
_.value = a <= 4 ? a : 4, t.value = _.value;
|
|
174
90
|
},
|
|
175
91
|
{ immediate: !0 }
|
|
176
92
|
);
|
|
177
|
-
const
|
|
178
|
-
"b-action-bar--extra-spacing":
|
|
179
|
-
"b-action-bar--confirmation":
|
|
93
|
+
const P = c(() => ({
|
|
94
|
+
"b-action-bar--extra-spacing": V.value,
|
|
95
|
+
"b-action-bar--confirmation": u.value
|
|
180
96
|
}));
|
|
181
|
-
Q
|
|
182
|
-
const
|
|
183
|
-
const
|
|
184
|
-
...
|
|
97
|
+
z(Q, x);
|
|
98
|
+
const R = c(() => {
|
|
99
|
+
const a = s.actions.map((L) => ({
|
|
100
|
+
...L,
|
|
185
101
|
variant: "secondary"
|
|
186
|
-
})),
|
|
187
|
-
return [...
|
|
188
|
-
}),
|
|
102
|
+
})), o = a.slice(0, t.value).reverse(), d = a.slice(t.value);
|
|
103
|
+
return [...o, ...d];
|
|
104
|
+
}), F = c(() => [
|
|
189
105
|
{
|
|
190
|
-
title:
|
|
191
|
-
event: () =>
|
|
106
|
+
title: i("save"),
|
|
107
|
+
event: () => v("save")
|
|
192
108
|
},
|
|
193
109
|
{
|
|
194
|
-
title:
|
|
110
|
+
title: i("cancel"),
|
|
195
111
|
variant: "secondary",
|
|
196
|
-
event: () =>
|
|
112
|
+
event: () => v("cancel")
|
|
197
113
|
}
|
|
198
|
-
]),
|
|
199
|
-
await
|
|
200
|
-
},
|
|
201
|
-
await
|
|
114
|
+
]), C = async () => {
|
|
115
|
+
await f(), l.value > r.value.clientWidth + A + I && t.value < _.value && (t.value += 1, C());
|
|
116
|
+
}, h = async () => {
|
|
117
|
+
await f(), l.value < r.value.clientWidth + A && t.value > 0 && (t.value -= 1, h());
|
|
202
118
|
};
|
|
203
|
-
return
|
|
204
|
-
() =>
|
|
205
|
-
async (
|
|
206
|
-
if (await
|
|
119
|
+
return g(
|
|
120
|
+
() => l.value,
|
|
121
|
+
async (a, o) => {
|
|
122
|
+
if (await f(), !r.value)
|
|
207
123
|
return;
|
|
208
|
-
const
|
|
209
|
-
|
|
124
|
+
const d = a > o;
|
|
125
|
+
l.value < T ? t.value = 0 : d ? C() : h();
|
|
210
126
|
},
|
|
211
127
|
{ immediate: !0 }
|
|
212
|
-
), (
|
|
128
|
+
), (a, o) => (m(), b(D, {
|
|
213
129
|
name: "b-action-bar__animation",
|
|
214
130
|
appear: ""
|
|
215
131
|
}, {
|
|
216
|
-
default:
|
|
217
|
-
|
|
218
|
-
class:
|
|
219
|
-
"aria-label":
|
|
132
|
+
default: y(() => [
|
|
133
|
+
E("section", {
|
|
134
|
+
class: G(["b-action-bar", e(P)]),
|
|
135
|
+
"aria-label": e(i)("actionBar")
|
|
220
136
|
}, [
|
|
221
|
-
|
|
137
|
+
E("div", {
|
|
222
138
|
ref_key: "actionBar",
|
|
223
139
|
ref: r,
|
|
224
140
|
class: "b-action-bar__container"
|
|
225
141
|
}, [
|
|
226
|
-
|
|
227
|
-
|
|
142
|
+
e(u) ? M("", !0) : (m(), K("div", ae, [
|
|
143
|
+
B(e(J), {
|
|
228
144
|
variant: "tertiary",
|
|
229
145
|
inverse: "",
|
|
230
|
-
"aria-label":
|
|
231
|
-
onClick:
|
|
146
|
+
"aria-label": e(i)("close"),
|
|
147
|
+
onClick: o[0] || (o[0] = (d) => v("close"))
|
|
232
148
|
}, {
|
|
233
|
-
iconLeft:
|
|
234
|
-
|
|
149
|
+
iconLeft: y(() => [
|
|
150
|
+
B(e($), { "aria-hidden": !0 })
|
|
235
151
|
]),
|
|
236
152
|
_: 1
|
|
237
153
|
}, 8, ["aria-label"])
|
|
238
154
|
])),
|
|
239
|
-
|
|
155
|
+
B(e(Y), {
|
|
240
156
|
el: "span",
|
|
241
157
|
stronger: "",
|
|
242
158
|
class: "b-action-bar__selection"
|
|
243
159
|
}, {
|
|
244
|
-
default:
|
|
245
|
-
|
|
160
|
+
default: y(() => [
|
|
161
|
+
q(S(n.itemCounter) + " " + S(e(u) ? e(k)("unsavedChanges", n.itemCounter) : e(w)), 1)
|
|
246
162
|
]),
|
|
247
163
|
_: 1
|
|
248
164
|
}),
|
|
249
|
-
|
|
165
|
+
e(u) ? (m(), b(e(X), {
|
|
250
166
|
key: 1,
|
|
251
|
-
actions:
|
|
167
|
+
actions: e(F),
|
|
252
168
|
class: "b-action-bar__actions",
|
|
253
169
|
inverse: ""
|
|
254
|
-
}, null, 8, ["actions"])) : (
|
|
170
|
+
}, null, 8, ["actions"])) : (m(), b(Z, {
|
|
255
171
|
key: 2,
|
|
256
|
-
actions:
|
|
172
|
+
actions: e(R),
|
|
257
173
|
class: "b-action-bar__actions",
|
|
258
|
-
"displayed-actions":
|
|
174
|
+
"displayed-actions": t.value,
|
|
259
175
|
"menu-position": "top-end",
|
|
260
176
|
inverse: ""
|
|
261
177
|
}, null, 8, ["actions", "displayed-actions"]))
|
|
262
178
|
], 512)
|
|
263
|
-
], 10,
|
|
179
|
+
], 10, te)
|
|
264
180
|
]),
|
|
265
181
|
_: 1
|
|
266
182
|
}));
|
|
267
183
|
}
|
|
268
184
|
});
|
|
269
|
-
const
|
|
185
|
+
const pe = /* @__PURE__ */ ee(oe, [["__scopeId", "data-v-191a2ab0"]]);
|
|
270
186
|
export {
|
|
271
|
-
|
|
187
|
+
pe as BentoActionBar
|
|
272
188
|
};
|
|
273
189
|
//# sourceMappingURL=action-bar.js.map
|