@adyen/bento-vue3 1.40.0 → 1.41.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 +6 -0
- package/dist/@types/packages/vue2/src/components/currency/currency.types.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +34 -211
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +0 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +10 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{use-selector.d.ts → use-selector/use-selector.d.ts} +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-sorter.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +16 -1
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +43 -72
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/layout/components/layout-row/layout-row.vue.d.ts +54 -0
- package/dist/@types/packages/vue2/src/components/layout/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/layout/layout.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/layout/layout.types.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/layout/layout.vue.d.ts +53 -0
- package/dist/@types/packages/vue2/src/components/promo-banner/__mock-image.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/promo-banner/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/promo-banner/promo-banner.types.d.ts +83 -0
- package/dist/@types/packages/vue2/src/components/promo-banner/promo-banner.vue.d.ts +65 -0
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +19 -4
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -3
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +1 -3
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/index.d.ts +2 -0
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -0
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/promo-banner.css +1 -0
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.CNH2XWmk.js → action-bar.BZIBGja0.js} +2 -2
- package/dist/chunks/{action-bar.CNH2XWmk.js.map → action-bar.BZIBGja0.js.map} +1 -1
- package/dist/chunks/{checkbox-group.Bu6WRt6i.js → checkbox-group.Zf-GivDW.js} +2 -2
- package/dist/chunks/{checkbox-group.Bu6WRt6i.js.map → checkbox-group.Zf-GivDW.js.map} +1 -1
- package/dist/chunks/{checkbox.DfUxRkJe.js → checkbox.DdMkyTo5.js} +15 -15
- package/dist/chunks/{checkbox.DfUxRkJe.js.map → checkbox.DdMkyTo5.js.map} +1 -1
- package/dist/chunks/{code-snippet.DqTEK8cz.js → code-snippet.Dp_tDJ-S.js} +3 -3
- package/dist/chunks/{code-snippet.DqTEK8cz.js.map → code-snippet.Dp_tDJ-S.js.map} +1 -1
- package/dist/chunks/{currency.BGrGBnhm.js → currency.Dz2x17_Q.js} +57 -70
- package/dist/chunks/currency.Dz2x17_Q.js.map +1 -0
- package/dist/chunks/{dashboard-section.rv0r2_-a.js → dashboard-section.BdRXcY4u.js} +2 -2
- package/dist/chunks/{dashboard-section.rv0r2_-a.js.map → dashboard-section.BdRXcY4u.js.map} +1 -1
- package/dist/chunks/{data-grid.DR-w_KKU.js → data-grid.BC2tOBxm.js} +1329 -1276
- package/dist/chunks/data-grid.BC2tOBxm.js.map +1 -0
- package/dist/chunks/{date-picker.mfXjVZ9w.js → date-picker.B6HK0sb2.js} +14 -14
- package/dist/chunks/{date-picker.mfXjVZ9w.js.map → date-picker.B6HK0sb2.js.map} +1 -1
- package/dist/chunks/{date-range-picker.Cs8Ia3Qs.js → date-range-picker.3iWt1Cd6.js} +23 -23
- package/dist/chunks/{date-range-picker.Cs8Ia3Qs.js.map → date-range-picker.3iWt1Cd6.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DeoUXbp4.js → dropdown-tag.ChFJ9l5g.js} +2 -2
- package/dist/chunks/{dropdown-tag.DeoUXbp4.js.map → dropdown-tag.ChFJ9l5g.js.map} +1 -1
- package/dist/chunks/{dropdown.DBxpqjEM.js → dropdown.CMKdLPHi.js} +26 -26
- package/dist/chunks/{dropdown.DBxpqjEM.js.map → dropdown.CMKdLPHi.js.map} +1 -1
- package/dist/chunks/es6.b4enG1py.js +10 -0
- package/dist/chunks/es6.b4enG1py.js.map +1 -0
- package/dist/chunks/{filter-bar.DiW13x-f.js → filter-bar.pKcJryD3.js} +7 -7
- package/dist/chunks/{filter-bar.DiW13x-f.js.map → filter-bar.pKcJryD3.js.map} +1 -1
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js +47 -0
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js.map +1 -0
- package/dist/chunks/index.ChdIlujs.js +248 -0
- package/dist/chunks/{index.DKQuLmwu.js.map → index.ChdIlujs.js.map} +1 -1
- package/dist/chunks/{input-field.DbeVnbwg.js → input-field.Bk2p3kIb.js} +2 -2
- package/dist/chunks/{input-field.DbeVnbwg.js.map → input-field.Bk2p3kIb.js.map} +1 -1
- package/dist/chunks/layout-row.rzhGrBQ3.js +101 -0
- package/dist/chunks/layout-row.rzhGrBQ3.js.map +1 -0
- package/dist/chunks/{pagination.B-OihXTg.js → pagination.D_4FRHE9.js} +2 -2
- package/dist/chunks/{pagination.B-OihXTg.js.map → pagination.D_4FRHE9.js.map} +1 -1
- package/dist/chunks/promo-banner.BRn1iznD.js +126 -0
- package/dist/chunks/promo-banner.BRn1iznD.js.map +1 -0
- package/dist/chunks/{search-bar.DN-QKFlJ.js → search-bar.D_4u91te.js} +3 -3
- package/dist/chunks/{search-bar.DN-QKFlJ.js.map → search-bar.D_4u91te.js.map} +1 -1
- package/dist/chunks/{secondary-nav.C-7Qq6rE.js → secondary-nav.CQ3aLyrM.js} +4 -4
- package/dist/chunks/{secondary-nav.C-7Qq6rE.js.map → secondary-nav.CQ3aLyrM.js.map} +1 -1
- package/dist/chunks/selection-card-group.Du3Cwf47.js +474 -0
- package/dist/chunks/selection-card-group.Du3Cwf47.js.map +1 -0
- package/dist/chunks/{structured-list-item.BhNJlDub.js → structured-list-item.CujUEOTK.js} +3 -3
- package/dist/chunks/structured-list-item.CujUEOTK.js.map +1 -0
- package/dist/chunks/{timeline-item.CEolKFn0.js → timeline-item.B8VvkDfR.js} +2 -2
- package/dist/chunks/{timeline-item.CEolKFn0.js.map → timeline-item.B8VvkDfR.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Bz6QyDuV.js → tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js} +9 -9
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Bz6QyDuV.js.map → tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.C7Lt5U_S.js → use-cached-selected-values.DaRzXFIt.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.C7Lt5U_S.js.map → use-cached-selected-values.DaRzXFIt.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/image.js +1 -1
- package/dist/index.js +197 -190
- package/dist/index.js.map +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/layout.js +6 -0
- package/dist/layout.js.map +1 -0
- package/dist/pagination.js +1 -1
- package/dist/promo-banner.js +7 -0
- package/dist/promo-banner.js.map +1 -0
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +16 -0
- package/dist/styles/bento-light.css +16 -0
- package/dist/styles/bento.css +16 -0
- package/dist/styles/legacy.css +16 -0
- package/dist/styles/styleguide.css +16 -0
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +0 -19
- package/dist/chunks/currency.BGrGBnhm.js.map +0 -1
- package/dist/chunks/data-grid.DR-w_KKU.js.map +0 -1
- package/dist/chunks/es6.BvpG4Oi6.js +0 -9
- package/dist/chunks/es6.BvpG4Oi6.js.map +0 -1
- package/dist/chunks/image.0KzfycGE.js +0 -78
- package/dist/chunks/image.0KzfycGE.js.map +0 -1
- package/dist/chunks/index.DKQuLmwu.js +0 -182
- package/dist/chunks/selection-card-group.DkSYInMF.js +0 -392
- package/dist/chunks/selection-card-group.DkSYInMF.js.map +0 -1
- package/dist/chunks/structured-list-item.BhNJlDub.js.map +0 -1
|
@@ -45,6 +45,8 @@ import {
|
|
|
45
45
|
BentoInfoIcon,
|
|
46
46
|
BentoInputField,
|
|
47
47
|
BentoInspector,
|
|
48
|
+
BentoLayout,
|
|
49
|
+
BentoLayoutRow,
|
|
48
50
|
BentoLink,
|
|
49
51
|
BentoLoadingButton,
|
|
50
52
|
BentoLoadingIndicator,
|
|
@@ -56,6 +58,7 @@ import {
|
|
|
56
58
|
BentoPagination,
|
|
57
59
|
BentoPaymentMethod,
|
|
58
60
|
BentoPopover,
|
|
61
|
+
BentoPromoBanner,
|
|
59
62
|
BentoRadioButton,
|
|
60
63
|
BentoRadioGroup,
|
|
61
64
|
BentoSearchBar,
|
|
@@ -133,6 +136,8 @@ declare module 'vue' {
|
|
|
133
136
|
BentoImage: typeof BentoImage;
|
|
134
137
|
BentoInfoIcon: typeof BentoInfoIcon;
|
|
135
138
|
BentoInspector: typeof BentoInspector;
|
|
139
|
+
BentoLayout: typeof BentoLayout;
|
|
140
|
+
BentoLayoutRow: typeof BentoLayoutRow;
|
|
136
141
|
BentoDropdownCurrency: typeof BentoDropdownCurrency;
|
|
137
142
|
BentoDropdownPaymentMethod: typeof BentoDropdownPaymentMethod;
|
|
138
143
|
BentoDropdownTag: typeof BentoDropdownTag;
|
|
@@ -148,6 +153,7 @@ declare module 'vue' {
|
|
|
148
153
|
BentoPagination: typeof BentoPagination;
|
|
149
154
|
BentoPaymentMethod: typeof BentoPaymentMethod;
|
|
150
155
|
BentoPopover: typeof BentoPopover;
|
|
156
|
+
BentoPromoBanner: typeof BentoPromoBanner;
|
|
151
157
|
BentoRadioButton: typeof BentoRadioButton;
|
|
152
158
|
BentoRadioGroup: typeof BentoRadioGroup;
|
|
153
159
|
BentoSearchBar: typeof BentoSearchBar;
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
export interface BentoCurrencyProps {
|
|
2
|
+
/**
|
|
3
|
+
* Currency code based on the ISO 4217 standard
|
|
4
|
+
*/
|
|
5
|
+
currency?: BentoCurrencyISOCode | `${BentoCurrencyISOCode}`;
|
|
6
|
+
/**
|
|
7
|
+
* Disable the default typography for the component. Only use this when the component is inside another typography component.
|
|
8
|
+
*/
|
|
9
|
+
disableTypography?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Accepts currency value in major units instead of minor ones
|
|
12
|
+
*/
|
|
13
|
+
majorUnits?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Currency value to be formatted
|
|
16
|
+
*/
|
|
17
|
+
value?: number;
|
|
18
|
+
}
|
|
1
19
|
export declare enum BentoCurrencyISOCode {
|
|
2
20
|
AFA = "AFA",
|
|
3
21
|
ALL = "ALL",
|
|
@@ -1,225 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BentoCurrencyISOCode } from "./currency.types";
|
|
1
|
+
import { BentoCurrencyISOCode, BentoCurrencyProps } from './currency.types';
|
|
3
2
|
/**
|
|
4
3
|
* A Currency component is used to display a formatted currency value.
|
|
5
4
|
*
|
|
6
5
|
* @example
|
|
7
|
-
* import { BentoCurrency } from '@adyen/
|
|
8
|
-
* import { BentoCurrency, BentoCurrencyCode } from '@adyen/bento-vue2';
|
|
6
|
+
* import { BentoCurrency, BentoCurrencyISOCode } from '@adyen/bento-vue2';
|
|
9
7
|
*
|
|
10
8
|
* export default {
|
|
11
9
|
* components: { BentoCurrency },
|
|
12
10
|
* template: `
|
|
13
|
-
* <bento-currency
|
|
14
|
-
*
|
|
15
|
-
*
|
|
11
|
+
* <bento-currency
|
|
12
|
+
* :currency="BentoCurrencyISOCode.USD"
|
|
13
|
+
* :value="76.33"
|
|
14
|
+
* />
|
|
16
15
|
* `
|
|
17
16
|
* }
|
|
18
17
|
*/
|
|
19
|
-
declare const _default: import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").DefineComponent<import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<{
|
|
20
|
-
currency:
|
|
21
|
-
type: PropType<BentoCurrencyISOCode | `${BentoCurrencyISOCode}`>;
|
|
22
|
-
default: BentoCurrencyISOCode;
|
|
23
|
-
validator: (value: BentoCurrencyISOCode) => boolean;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Accepts currency value in major units instead of minor ones
|
|
27
|
-
*/
|
|
28
|
-
majorUnits: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Disable the default typography for the component. Only use this when the component is inside another typography component.
|
|
34
|
-
*/
|
|
35
|
-
disableTypography: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
}>, {
|
|
40
|
-
formattedCurrency: import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComputedRef<string>;
|
|
41
|
-
}, {}, {}, {}, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PublicProps, Readonly<import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<{
|
|
42
|
-
currency: {
|
|
43
|
-
type: PropType<BentoCurrencyISOCode | `${BentoCurrencyISOCode}`>;
|
|
44
|
-
default: BentoCurrencyISOCode;
|
|
45
|
-
validator: (value: BentoCurrencyISOCode) => boolean;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Accepts currency value in major units instead of minor ones
|
|
49
|
-
*/
|
|
50
|
-
majorUnits: {
|
|
51
|
-
type: BooleanConstructor;
|
|
52
|
-
default: boolean;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Disable the default typography for the component. Only use this when the component is inside another typography component.
|
|
56
|
-
*/
|
|
57
|
-
disableTypography: {
|
|
58
|
-
type: BooleanConstructor;
|
|
59
|
-
default: boolean;
|
|
60
|
-
};
|
|
61
|
-
}>> & Readonly<{}>, {
|
|
18
|
+
declare const _default: import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").DefineComponent<import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BentoCurrencyProps>, {
|
|
19
|
+
currency: BentoCurrencyISOCode;
|
|
62
20
|
disableTypography: boolean;
|
|
63
|
-
currency: "TOP" | "CVE" | "DJF" | "GNF" | "IDR" | "JPY" | "KMF" | "KRW" | "PYG" | "RWF" | "UGX" | "VND" | "VUV" | "XAF" | "XOF" | "XPF" | "MRO" | "BHD" | "IQD" | "JOD" | "KWD" | "LYD" | "OMR" | "TND" | "AFA" | "ALL" | "DZD" | "AOA" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BDT" | "BBD" | "BYR" | "BEF" | "BZD" | "BMD" | "BTN" | "BTC" | "BOB" | "BAM" | "BWP" | "BRL" | "GBP" | "BND" | "BGN" | "BIF" | "KHR" | "CAD" | "KYD" | "CLP" | "CLF" | "CNY" | "COP" | "CDF" | "CRC" | "HRK" | "CUC" | "CZK" | "DKK" | "DOP" | "XCD" | "EGP" | "ERN" | "EEK" | "ETB" | "EUR" | "FKP" | "FJD" | "GMD" | "GEL" | "DEM" | "GHS" | "GIP" | "GRD" | "GTQ" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "INR" | "IRR" | "ILS" | "ITL" | "JMD" | "KZT" | "KES" | "KGS" | "LAK" | "LVL" | "LBP" | "LSL" | "LRD" | "LTC" | "LTL" | "MOP" | "MKD" | "MGA" | "MWK" | "MYR" | "MVR" | "MUR" | "MXN" | "MDL" | "MNT" | "MAD" | "MZM" | "MMK" | "NAD" | "NPR" | "ANG" | "TWD" | "NZD" | "NIO" | "NGN" | "KPW" | "NOK" | "PKR" | "PAB" | "PGK" | "PEN" | "PHP" | "PLN" | "QAR" | "RON" | "RUB" | "SVC" | "WST" | "STD" | "SAR" | "RSD" | "SCR" | "SLL" | "SGD" | "SKK" | "SBD" | "SOS" | "ZAR" | "SSP" | "XDR" | "LKR" | "SHP" | "SDG" | "SRD" | "SZL" | "SEK" | "CHF" | "SYP" | "TJS" | "TZS" | "THB" | "TTD" | "TRY" | "TMT" | "UAH" | "AED" | "UYU" | "USD" | "UZS" | "VEF" | "YER" | "ZMK" | "ZWL" | BentoCurrencyISOCode;
|
|
64
21
|
majorUnits: boolean;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
};
|
|
78
|
-
strongest: {
|
|
79
|
-
type: PropType<boolean>;
|
|
80
|
-
} & {
|
|
81
|
-
default: boolean;
|
|
82
|
-
};
|
|
83
|
-
el: {
|
|
84
|
-
type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
|
|
85
|
-
} & {
|
|
86
|
-
default: import("../typography").BentoTypographyElement;
|
|
87
|
-
};
|
|
88
|
-
large: {
|
|
89
|
-
type: PropType<boolean>;
|
|
90
|
-
} & {
|
|
91
|
-
default: boolean;
|
|
92
|
-
};
|
|
93
|
-
medium: {
|
|
94
|
-
type: PropType<boolean>;
|
|
95
|
-
} & {
|
|
96
|
-
default: boolean;
|
|
97
|
-
};
|
|
98
|
-
variant: {
|
|
99
|
-
type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
|
|
100
|
-
} & {
|
|
101
|
-
default: import("../typography").BentoTypographyVariant;
|
|
102
|
-
};
|
|
103
|
-
richText: {
|
|
104
|
-
type: PropType<boolean>;
|
|
105
|
-
};
|
|
106
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, {}, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PublicProps, {
|
|
107
|
-
wide: boolean;
|
|
108
|
-
stronger: boolean;
|
|
109
|
-
strongest: boolean;
|
|
110
|
-
el: import("../typography").BentoTypographyElement | `${import("../typography").BentoTypographyElement}`;
|
|
111
|
-
large: boolean;
|
|
112
|
-
medium: boolean;
|
|
113
|
-
variant: import("../typography").BentoTypographyVariant | `${import("../typography").BentoTypographyVariant}`;
|
|
114
|
-
}, true, {}, {}, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").GlobalComponents, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").GlobalDirectives, string, {}, any, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentProvideOptions, {
|
|
115
|
-
P: {};
|
|
116
|
-
B: {};
|
|
117
|
-
D: {};
|
|
118
|
-
C: {};
|
|
119
|
-
M: {};
|
|
120
|
-
Defaults: {};
|
|
121
|
-
}, Readonly<import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<{
|
|
122
|
-
wide: {
|
|
123
|
-
type: PropType<boolean>;
|
|
124
|
-
} & {
|
|
125
|
-
default: boolean;
|
|
126
|
-
};
|
|
127
|
-
stronger: {
|
|
128
|
-
type: PropType<boolean>;
|
|
129
|
-
} & {
|
|
130
|
-
default: boolean;
|
|
131
|
-
};
|
|
132
|
-
strongest: {
|
|
133
|
-
type: PropType<boolean>;
|
|
134
|
-
} & {
|
|
135
|
-
default: boolean;
|
|
136
|
-
};
|
|
137
|
-
el: {
|
|
138
|
-
type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
|
|
139
|
-
} & {
|
|
140
|
-
default: import("../typography").BentoTypographyElement;
|
|
141
|
-
};
|
|
142
|
-
large: {
|
|
143
|
-
type: PropType<boolean>;
|
|
144
|
-
} & {
|
|
145
|
-
default: boolean;
|
|
146
|
-
};
|
|
147
|
-
medium: {
|
|
148
|
-
type: PropType<boolean>;
|
|
149
|
-
} & {
|
|
150
|
-
default: boolean;
|
|
151
|
-
};
|
|
152
|
-
variant: {
|
|
153
|
-
type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
|
|
154
|
-
} & {
|
|
155
|
-
default: import("../typography").BentoTypographyVariant;
|
|
156
|
-
};
|
|
157
|
-
richText: {
|
|
158
|
-
type: PropType<boolean>;
|
|
159
|
-
};
|
|
160
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
161
|
-
wide: boolean;
|
|
162
|
-
stronger: boolean;
|
|
163
|
-
strongest: boolean;
|
|
164
|
-
el: import("../typography").BentoTypographyElement | `${import("../typography").BentoTypographyElement}`;
|
|
165
|
-
large: boolean;
|
|
166
|
-
medium: boolean;
|
|
167
|
-
variant: import("../typography").BentoTypographyVariant | `${import("../typography").BentoTypographyVariant}`;
|
|
168
|
-
}>;
|
|
169
|
-
__isFragment?: never;
|
|
170
|
-
__isTeleport?: never;
|
|
171
|
-
__isSuspense?: never;
|
|
172
|
-
} & import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsBase<Readonly<import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<{
|
|
173
|
-
wide: {
|
|
174
|
-
type: PropType<boolean>;
|
|
175
|
-
} & {
|
|
176
|
-
default: boolean;
|
|
177
|
-
};
|
|
178
|
-
stronger: {
|
|
179
|
-
type: PropType<boolean>;
|
|
180
|
-
} & {
|
|
181
|
-
default: boolean;
|
|
182
|
-
};
|
|
183
|
-
strongest: {
|
|
184
|
-
type: PropType<boolean>;
|
|
185
|
-
} & {
|
|
186
|
-
default: boolean;
|
|
187
|
-
};
|
|
188
|
-
el: {
|
|
189
|
-
type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
|
|
190
|
-
} & {
|
|
191
|
-
default: import("../typography").BentoTypographyElement;
|
|
192
|
-
};
|
|
193
|
-
large: {
|
|
194
|
-
type: PropType<boolean>;
|
|
195
|
-
} & {
|
|
196
|
-
default: boolean;
|
|
197
|
-
};
|
|
198
|
-
medium: {
|
|
199
|
-
type: PropType<boolean>;
|
|
200
|
-
} & {
|
|
201
|
-
default: boolean;
|
|
202
|
-
};
|
|
203
|
-
variant: {
|
|
204
|
-
type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
|
|
205
|
-
} & {
|
|
206
|
-
default: import("../typography").BentoTypographyVariant;
|
|
207
|
-
};
|
|
208
|
-
richText: {
|
|
209
|
-
type: PropType<boolean>;
|
|
210
|
-
};
|
|
211
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, {}, string, {
|
|
212
|
-
wide: boolean;
|
|
213
|
-
stronger: boolean;
|
|
214
|
-
strongest: boolean;
|
|
215
|
-
el: import("../typography").BentoTypographyElement | `${import("../typography").BentoTypographyElement}`;
|
|
216
|
-
large: boolean;
|
|
217
|
-
medium: boolean;
|
|
218
|
-
variant: import("../typography").BentoTypographyVariant | `${import("../typography").BentoTypographyVariant}`;
|
|
219
|
-
}, {}, string, {}, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").GlobalComponents, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").GlobalDirectives, string, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentProvideOptions> & import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").VNodeProps & import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").AllowedComponentProps & import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentCustomProps & (new () => {
|
|
220
|
-
$slots: {
|
|
221
|
-
default: (_: {}) => any;
|
|
222
|
-
};
|
|
223
|
-
});
|
|
224
|
-
}, {}, string, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
value: any;
|
|
23
|
+
}>>, {}, {}, {}, {}, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PublicProps, Readonly<import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BentoCurrencyProps>, {
|
|
24
|
+
currency: BentoCurrencyISOCode;
|
|
25
|
+
disableTypography: boolean;
|
|
26
|
+
majorUnits: boolean;
|
|
27
|
+
value: any;
|
|
28
|
+
}>>> & Readonly<{}>, {
|
|
29
|
+
value: number;
|
|
30
|
+
disableTypography: boolean;
|
|
31
|
+
currency: BentoCurrencyISOCode | `${BentoCurrencyISOCode}`;
|
|
32
|
+
majorUnits: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentProvideOptions, true, {}, any>;
|
|
225
34
|
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type __VLS_WithDefaults<P, D> = {
|
|
45
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
46
|
+
default: D[K];
|
|
47
|
+
} : P[K];
|
|
48
|
+
};
|
|
@@ -5,7 +5,6 @@ import { BentoColumn } from '../../data-grid.types';
|
|
|
5
5
|
export declare enum DatagridColumnsEvent {
|
|
6
6
|
COLUMN_RESIZE = "column-resize",
|
|
7
7
|
COLUMN_RESIZING = "column-resizing",
|
|
8
|
-
SORT = "sort",
|
|
9
8
|
SELECT_ALL_ROWS = "select-all-rows",
|
|
10
9
|
SELECT_ALL_ACROSS_PAGES = "select-all-across-pages",
|
|
11
10
|
COLUMN_MOVE = "column-move",
|
|
@@ -320,13 +320,13 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../../nod
|
|
|
320
320
|
default: boolean;
|
|
321
321
|
};
|
|
322
322
|
}>> & Readonly<{
|
|
323
|
+
onSort?: (updatedSortBy: BentoDatagridSortByColumn[]) => any;
|
|
323
324
|
"onColumn-hover"?: (columnKey: BentoColumn) => any;
|
|
324
325
|
"onColumn-resize"?: (column: {
|
|
325
326
|
field: string;
|
|
326
327
|
width: number;
|
|
327
328
|
}) => any;
|
|
328
329
|
"onColumn-resizing"?: (value: BentoColumnWidthOverridesLookup) => any;
|
|
329
|
-
onSort?: (updatedSortBy: BentoDatagridSortByColumn[]) => any;
|
|
330
330
|
"onSelect-all-rows"?: (areAllItemsSelected: boolean) => any;
|
|
331
331
|
"onSelect-all-across-pages"?: () => any;
|
|
332
332
|
"onColumn-move"?: (movingColumn: BentoColumn, offset: number) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useResizer } from './use-resizer';
|
|
2
2
|
export * from './use-calculate-column-width';
|
|
3
|
-
export { useSelector } from './use-selector';
|
|
3
|
+
export { useSelector } from './use-selector/use-selector';
|
|
4
4
|
export { useSorter } from './use-sorter';
|
|
5
5
|
export { useKeyboardNavigator } from './use-keyboard-navigator/use-keyboard-navigator';
|
|
6
6
|
export { useLazyLoading } from './use-lazy-loading/use-lazy-loading';
|
|
@@ -175,4 +175,5 @@ export declare const useCalculateColumnWidth: (newColumns: Ref<BentoColumn[]>, n
|
|
|
175
175
|
getCopyData?: (rowDataItem: import("../../data-grid.types").BentoDatagridDataItem, columnKey: string) => string;
|
|
176
176
|
}[];
|
|
177
177
|
}[]>;
|
|
178
|
+
totalWidthOfAllColumns: import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComputedRef<number>;
|
|
178
179
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Ref, UnwrapRef } from "../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue";
|
|
2
|
+
import type { BentoDatagridPaginationProps } from '../..';
|
|
2
3
|
/**
|
|
3
4
|
* Handles all scroll events & logic for the DataGrid.
|
|
4
5
|
* @param body The reference to the DataGrid body element.
|
|
@@ -6,10 +7,18 @@ import { Ref, UnwrapRef } from "../../../../../../../node_modules/.pnpm/vue@3.5.
|
|
|
6
7
|
* @param verticalScrollPosition The reference to scroll top position number.
|
|
7
8
|
* @returns Update methods for updating the scroll ppsotion references & the body scroll & overflow attributes.
|
|
8
9
|
*/
|
|
9
|
-
export declare const useScroller: (body: Ref<UnwrapRef<HTMLDivElement>>, columnsRef: Ref<UnwrapRef<HTMLDivElement>>, verticalScrollPosition: Ref<number
|
|
10
|
+
export declare const useScroller: (body: Ref<UnwrapRef<HTMLDivElement>>, columnsRef: Ref<UnwrapRef<HTMLDivElement>>, verticalScrollPosition: Ref<number>, virtualHorizontalScrollbar: Ref<UnwrapRef<HTMLDivElement | undefined>>, options?: {
|
|
11
|
+
isLazyLoad?: Ref<UnwrapRef<boolean>>;
|
|
12
|
+
pagination?: Ref<UnwrapRef<BentoDatagridPaginationProps | undefined>>;
|
|
13
|
+
stickyPagination: Ref<UnwrapRef<boolean>>;
|
|
14
|
+
}) => {
|
|
10
15
|
scrollLeftPosition: Ref<number, number>;
|
|
11
16
|
hasLeftOverflow: Ref<boolean, boolean>;
|
|
12
17
|
hasRightOverflow: Ref<boolean, boolean>;
|
|
18
|
+
horizontalScrollbarConditionalClasses: import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComputedRef<{
|
|
19
|
+
'b-data-grid__horizontal-scrollbar--sticky-pagination': boolean;
|
|
20
|
+
}>;
|
|
13
21
|
updateScrollPosition: (event: Event) => void;
|
|
14
22
|
updateScrollPositionOnFrozenColumnsNavigation: (event: KeyboardEvent) => void;
|
|
23
|
+
syncVirtualScrollerWithBody: (event: Event) => void;
|
|
15
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ref } from "
|
|
2
|
-
import { BentoDatagridData, BentoDatagridDataItemId, BentoDatagridGetDataItemIdFn, BentoDatagridIsDataItemDisabledFn } from '
|
|
1
|
+
import { Ref } from "../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue";
|
|
2
|
+
import { BentoDatagridData, BentoDatagridDataItemId, BentoDatagridGetDataItemIdFn, BentoDatagridIsDataItemDisabledFn } from '../../data-grid.types';
|
|
3
3
|
/**
|
|
4
4
|
* Exposed selection variables and methods for a data component to use and react to.
|
|
5
5
|
* @param selection A list of unique IDs
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Ref } from "../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue";
|
|
2
2
|
import { BentoColumn, BentoDatagridSortByColumn, BentoDatagridSortDirection } from '../data-grid.types';
|
|
3
|
-
import { DatagridColumnsEvent } from '../components/data-grid-columns/data-grid-columns.types';
|
|
4
3
|
/**
|
|
5
4
|
* Handles the sort direction logic of the columns in DataGrid.
|
|
6
5
|
* Emits the `sort` event with the new direction when the field sort direction changes.
|
|
@@ -8,7 +7,7 @@ import { DatagridColumnsEvent } from '../components/data-grid-columns/data-grid-
|
|
|
8
7
|
* @param columns Array of all columns in the grid
|
|
9
8
|
* @param emit The `bento-data-grid` emit function
|
|
10
9
|
*/
|
|
11
|
-
export declare const useSorter: (sortBy: Ref<BentoDatagridSortByColumn[]>, columns: Ref<BentoColumn[]>, emit: (event:
|
|
10
|
+
export declare const useSorter: (sortBy: Ref<BentoDatagridSortByColumn[]>, columns: Ref<BentoColumn[]>, emit: (event: "sort", updatedSortBy: BentoDatagridSortByColumn[]) => void) => {
|
|
12
11
|
isSorting: (field: string) => boolean;
|
|
13
12
|
getSortingDirection: (field: string) => BentoDatagridSortDirection;
|
|
14
13
|
sortByColumnField: (field: string) => void;
|
|
@@ -202,6 +202,13 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../node_modu
|
|
|
202
202
|
type: BooleanConstructor;
|
|
203
203
|
default: boolean;
|
|
204
204
|
};
|
|
205
|
+
/**
|
|
206
|
+
* Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
|
|
207
|
+
*/
|
|
208
|
+
stickyHorizontalScrollbar: {
|
|
209
|
+
type: BooleanConstructor;
|
|
210
|
+
default: boolean;
|
|
211
|
+
};
|
|
205
212
|
/**
|
|
206
213
|
* Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
|
|
207
214
|
* Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
|
|
@@ -440,6 +447,13 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../node_modu
|
|
|
440
447
|
type: BooleanConstructor;
|
|
441
448
|
default: boolean;
|
|
442
449
|
};
|
|
450
|
+
/**
|
|
451
|
+
* Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
|
|
452
|
+
*/
|
|
453
|
+
stickyHorizontalScrollbar: {
|
|
454
|
+
type: BooleanConstructor;
|
|
455
|
+
default: boolean;
|
|
456
|
+
};
|
|
443
457
|
/**
|
|
444
458
|
* Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
|
|
445
459
|
* Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
|
|
@@ -503,8 +517,8 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../node_modu
|
|
|
503
517
|
onSelect?: (...args: any[]) => any;
|
|
504
518
|
onNavigate?: (...args: any[]) => any;
|
|
505
519
|
"onItems-page"?: (...args: any[]) => any;
|
|
506
|
-
"onColumn-resize"?: (...args: any[]) => any;
|
|
507
520
|
onSort?: (...args: any[]) => any;
|
|
521
|
+
"onColumn-resize"?: (...args: any[]) => any;
|
|
508
522
|
"onSelect-all-across-pages"?: (...args: any[]) => any;
|
|
509
523
|
"onUpdate:columns"?: (...args: any[]) => any;
|
|
510
524
|
"onRow-click"?: (...args: any[]) => any;
|
|
@@ -579,6 +593,7 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../node_modu
|
|
|
579
593
|
columnPanel: boolean;
|
|
580
594
|
filterSearchTerm: any;
|
|
581
595
|
noSpacingTop: boolean;
|
|
596
|
+
stickyHorizontalScrollbar: boolean;
|
|
582
597
|
stickyPagination: boolean;
|
|
583
598
|
stickyFilters: boolean;
|
|
584
599
|
selection: BentoDatagridDataItemId[];
|
|
@@ -1,74 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
objectFit: {
|
|
30
|
-
type: PropType<BentoImageObjectFit | `${BentoImageObjectFit}`>;
|
|
31
|
-
default: any;
|
|
32
|
-
validator: (value: BentoImageObjectFit) => boolean;
|
|
33
|
-
};
|
|
34
|
-
}>, {
|
|
35
|
-
imageStyles: import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComputedRef<{
|
|
36
|
-
aspectRatio: string;
|
|
37
|
-
objectFit: "fill" | "contain" | "cover" | BentoImageObjectFit;
|
|
38
|
-
}>;
|
|
39
|
-
}, {}, {}, {}, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PublicProps, Readonly<import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<{
|
|
40
|
-
/**
|
|
41
|
-
* Url to image, same as src attribute of `<img>` tag
|
|
42
|
-
*/
|
|
43
|
-
src: {
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
required: true;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Accessible text describing the image, same as alt attribute of `<img>` tag
|
|
49
|
-
*/
|
|
50
|
-
alt: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
required: true;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Aspect ratio of the image, maps to css aspect-ratio
|
|
56
|
-
*/
|
|
57
|
-
aspectRatio: {
|
|
58
|
-
type: PropType<BentoImageAspectRatio | `${BentoImageAspectRatio}`>;
|
|
59
|
-
default: any;
|
|
60
|
-
validator: (value: BentoImageAspectRatio) => boolean;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Object fitting strategy, maps to css object-fit
|
|
64
|
-
*/
|
|
65
|
-
objectFit: {
|
|
66
|
-
type: PropType<BentoImageObjectFit | `${BentoImageObjectFit}`>;
|
|
67
|
-
default: any;
|
|
68
|
-
validator: (value: BentoImageObjectFit) => boolean;
|
|
69
|
-
};
|
|
70
|
-
}>> & Readonly<{}>, {
|
|
71
|
-
aspectRatio: "square" | "landscape" | "4:3" | "3:3" | "16:9" | "2:1" | "portrait" | "3:4" | "2:3" | "9:16" | "1:2" | "1:1" | BentoImageAspectRatio;
|
|
72
|
-
objectFit: "fill" | "contain" | "cover" | BentoImageObjectFit;
|
|
1
|
+
import { BentoImageAspectRatio, BentoImageProps } from '@adyen/bento-core/src/components/image/image.types';
|
|
2
|
+
/**
|
|
3
|
+
* Image component used for resizing images to certain aspect ratios and fit strategies.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* import { BentoImage } from '@adyen/bento-vue2';
|
|
7
|
+
*
|
|
8
|
+
* export default {
|
|
9
|
+
* components: { BentoImage },
|
|
10
|
+
* template: `
|
|
11
|
+
* <bento-image
|
|
12
|
+
* :src="imageSrc"
|
|
13
|
+
* alt="alternative text"
|
|
14
|
+
* aspect-ratio="landscape"
|
|
15
|
+
* object-fit="cover"
|
|
16
|
+
*
|
|
17
|
+
* />
|
|
18
|
+
* `
|
|
19
|
+
* }
|
|
20
|
+
*/
|
|
21
|
+
declare const _default: import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").DefineComponent<import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BentoImageProps>, {
|
|
22
|
+
aspectRatio: any;
|
|
23
|
+
objectFit: any;
|
|
24
|
+
}>>, {}, {}, {}, {}, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PublicProps, Readonly<import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BentoImageProps>, {
|
|
25
|
+
aspectRatio: any;
|
|
26
|
+
objectFit: any;
|
|
27
|
+
}>>> & Readonly<{}>, {
|
|
28
|
+
aspectRatio: BentoImageAspectRatio | `${BentoImageAspectRatio}` | null;
|
|
29
|
+
objectFit: import("@adyen/bento-core/src/components/image/image.types").BentoImageObjectFit | `${import("@adyen/bento-core/src/components/image/image.types").BentoImageObjectFit}` | null;
|
|
73
30
|
}, {}, {}, {}, string, import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentProvideOptions, true, {}, any>;
|
|
74
31
|
export default _default;
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: import("../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
} : P[K];
|
|
45
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as BentoImage } from './image.vue';
|
|
2
|
-
export * from '
|
|
2
|
+
export * from '@adyen/bento-core/src/components/image/image.types';
|
package/dist/@types/packages/vue2/src/components/layout/components/layout-row/layout-row.vue.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type BentoLayoutRowProps } from '../../layout.types';
|
|
2
|
+
/**
|
|
3
|
+
* Page row is subcomponent of Layout meant to be used to generate the row layout.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* import { BentoLayout, BentoLayoutRow } from '@adyen/bento-vue2';
|
|
7
|
+
*
|
|
8
|
+
* export default {
|
|
9
|
+
* components: { BentoLayout, BentoLayoutRow },
|
|
10
|
+
* template: `
|
|
11
|
+
* <bento-layout>
|
|
12
|
+
* <bento-layout-row columns-layout="3-9">
|
|
13
|
+
* <template #col-1>Narrow 3-9</template>
|
|
14
|
+
* <template #col-2>Wide 3-9</template>
|
|
15
|
+
* </bento-layout-row>
|
|
16
|
+
* <bento-layout-row>
|
|
17
|
+
* <template #col-1>6-6</template>
|
|
18
|
+
* <template #col-2>6-6</template>
|
|
19
|
+
* </bento-layout-row>
|
|
20
|
+
* </bento-layout>
|
|
21
|
+
* `
|
|
22
|
+
* }
|
|
23
|
+
*/
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").DefineComponent<import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BentoLayoutRowProps>, {
|
|
25
|
+
columnsLayout: string;
|
|
26
|
+
}>>, {}, {}, {}, {}, import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PublicProps, Readonly<import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BentoLayoutRowProps>, {
|
|
27
|
+
columnsLayout: string;
|
|
28
|
+
}>>> & Readonly<{}>, {
|
|
29
|
+
columnsLayout: import("../../layout.types").BentoLayoutRowColumnLayout;
|
|
30
|
+
}, {}, {}, {}, string, import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentProvideOptions, true, {}, any>, {
|
|
31
|
+
default: (_: {}) => any;
|
|
32
|
+
'col-1': (_: {}) => any;
|
|
33
|
+
'col-2': (_: {}) => any;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
38
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
+
type: import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
+
} : {
|
|
41
|
+
type: import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PropType<T[K]>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
type __VLS_WithDefaults<P, D> = {
|
|
46
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
47
|
+
default: D[K];
|
|
48
|
+
} : P[K];
|
|
49
|
+
};
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|