@adyen/bento-vue2 1.90.0 → 1.91.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/index.d.ts +254 -109
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.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/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/input-time.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.B63qIiiH.js → action-bar.Dj830k6L.js} +3 -3
- package/dist/chunks/{action-bar.B63qIiiH.js.map → action-bar.Dj830k6L.js.map} +1 -1
- package/dist/chunks/{ai-tag.CCJCOdXu.js → ai-tag.AyG2UWCB.js} +2 -2
- package/dist/chunks/{ai-tag.CCJCOdXu.js.map → ai-tag.AyG2UWCB.js.map} +1 -1
- package/dist/chunks/{base-modal.DpmeDmq-.js → base-modal.C52VMtnd.js} +4 -4
- package/dist/chunks/{base-modal.DpmeDmq-.js.map → base-modal.C52VMtnd.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ChTUOsZl.js → button-actions-with-menu.OsPQ-POD.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.ChTUOsZl.js.map → button-actions-with-menu.OsPQ-POD.js.map} +1 -1
- package/dist/chunks/{button-actions.BmU1DngD.js → button-actions.Bdbu0bvt.js} +2 -2
- package/dist/chunks/{button-actions.BmU1DngD.js.map → button-actions.Bdbu0bvt.js.map} +1 -1
- package/dist/chunks/{calendar.uvIGF_jU.js → calendar.CqsfThnC.js} +271 -253
- package/dist/chunks/calendar.CqsfThnC.js.map +1 -0
- package/dist/chunks/{card.WWUfBkqf.js → card.8z7UQeVK.js} +2 -2
- package/dist/chunks/{card.WWUfBkqf.js.map → card.8z7UQeVK.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CI0xDnql.js → checkbox-group.Dur2Edtw.js} +4 -4
- package/dist/chunks/{checkbox-group.CI0xDnql.js.map → checkbox-group.Dur2Edtw.js.map} +1 -1
- package/dist/chunks/{checkbox.TsWA6O3Z.js → checkbox.vNjt6QDJ.js} +18 -18
- package/dist/chunks/{checkbox.TsWA6O3Z.js.map → checkbox.vNjt6QDJ.js.map} +1 -1
- package/dist/chunks/{click-outside.CDz_x8mN.js → click-outside.BG01Sm0A.js} +2 -2
- package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BG01Sm0A.js.map} +1 -1
- package/dist/chunks/{code-snippet.4DX9iUV8.js → code-snippet.BVpFBhKq.js} +3 -3
- package/dist/chunks/{code-snippet.4DX9iUV8.js.map → code-snippet.BVpFBhKq.js.map} +1 -1
- package/dist/chunks/{controls-group.D_KE99mg.js → controls-group.DSm2Ujwt.js} +2 -2
- package/dist/chunks/{controls-group.D_KE99mg.js.map → controls-group.DSm2Ujwt.js.map} +1 -1
- package/dist/chunks/{dashboard-section.TWlLdQHG.js → dashboard-section.DNxNVV44.js} +2 -2
- package/dist/chunks/{dashboard-section.TWlLdQHG.js.map → dashboard-section.DNxNVV44.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CpDuQ3Fo.js → dashed-underline.DL2_sik5.js} +2 -2
- package/dist/chunks/{dashed-underline.CpDuQ3Fo.js.map → dashed-underline.DL2_sik5.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DZaE-kOS.js → data-grid-template.BFv1zr6g.js} +2 -2
- package/dist/chunks/{data-grid-template.DZaE-kOS.js.map → data-grid-template.BFv1zr6g.js.map} +1 -1
- package/dist/chunks/{data-grid.x6cEW0az.js → data-grid.ZHY5EzP3.js} +318 -316
- package/dist/chunks/{data-grid.x6cEW0az.js.map → data-grid.ZHY5EzP3.js.map} +1 -1
- package/dist/chunks/date-picker.kl6aFlr1.js +237 -0
- package/dist/chunks/date-picker.kl6aFlr1.js.map +1 -0
- package/dist/chunks/{date-range-picker.DPGy2h-9.js → date-range-picker.LCWVAa5R.js} +412 -391
- package/dist/chunks/date-range-picker.LCWVAa5R.js.map +1 -0
- package/dist/chunks/{directive.rXUeDb8p.js → directive.Bfr4fuOy.js} +2 -2
- package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Bfr4fuOy.js.map} +1 -1
- package/dist/{draggable-handle.js → chunks/draggable-handle.Ba28eM8o.js} +49 -40
- package/dist/chunks/draggable-handle.Ba28eM8o.js.map +1 -0
- package/dist/chunks/{dropdown-tag.t3FlJUSy.js → dropdown-tag.B61hPq5n.js} +2 -2
- package/dist/chunks/{dropdown-tag.t3FlJUSy.js.map → dropdown-tag.B61hPq5n.js.map} +1 -1
- package/dist/chunks/dropdown.Ca-f8tdX.js +1140 -0
- package/dist/chunks/dropdown.Ca-f8tdX.js.map +1 -0
- package/dist/chunks/error-message.CyERcfdt.js +72 -0
- package/dist/chunks/error-message.CyERcfdt.js.map +1 -0
- package/dist/chunks/field-label.DjjjkcO6.js +97 -0
- package/dist/chunks/field-label.DjjjkcO6.js.map +1 -0
- package/dist/chunks/{file-uploader.Cig5gDXT.js → file-uploader.DeWmLpfp.js} +5 -4
- package/dist/chunks/{file-uploader.Cig5gDXT.js.map → file-uploader.DeWmLpfp.js.map} +1 -1
- package/dist/chunks/{filter-bar.x445KK3y.js → filter-bar.Bd4ghW_B.js} +888 -871
- package/dist/chunks/filter-bar.Bd4ghW_B.js.map +1 -0
- package/dist/chunks/{footer-actions.CIkul1OD.js → footer-actions.CvUaoMzj.js} +2 -2
- package/dist/chunks/{footer-actions.CIkul1OD.js.map → footer-actions.CvUaoMzj.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DR5M7GP3.js → form-layout-title.DzGajv4U.js} +70 -61
- package/dist/chunks/form-layout-title.DzGajv4U.js.map +1 -0
- package/dist/chunks/{header-meta.BC5fdpD1.js → header-meta.AXUGoqDd.js} +2 -2
- package/dist/chunks/{header-meta.BC5fdpD1.js.map → header-meta.AXUGoqDd.js.map} +1 -1
- package/dist/chunks/{header-with-views.-cvdi9-L.js → header-with-views.Ba4dswJF.js} +10 -10
- package/dist/chunks/{header-with-views.-cvdi9-L.js.map → header-with-views.Ba4dswJF.js.map} +1 -1
- package/dist/chunks/{header.DtmZjxiU.js → header.C7B7RBib.js} +3 -3
- package/dist/chunks/{header.DtmZjxiU.js.map → header.C7B7RBib.js.map} +1 -1
- package/dist/chunks/{input-field-password.Bdlw4dzr.js → input-field-password.BNAtIn_D.js} +4 -4
- package/dist/chunks/{input-field-password.Bdlw4dzr.js.map → input-field-password.BNAtIn_D.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.DPuWxBBz.js → input-field-phone-number.CEYx1s4b.js} +3 -3
- package/dist/chunks/{input-field-phone-number.DPuWxBBz.js.map → input-field-phone-number.CEYx1s4b.js.map} +1 -1
- package/dist/chunks/{input-field.DH25CU_G.js → input-field.Dh5W0Az-.js} +74 -70
- package/dist/chunks/input-field.Dh5W0Az-.js.map +1 -0
- package/dist/chunks/input-time.BLuMfakv.js +135 -0
- package/dist/chunks/input-time.BLuMfakv.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.CaxuXW-H.js → modal-fullscreen.DTvg2NLk.js} +2 -2
- package/dist/chunks/{modal-fullscreen.CaxuXW-H.js.map → modal-fullscreen.DTvg2NLk.js.map} +1 -1
- package/dist/chunks/{modal.Brif0vAy.js → modal.D_TcWTkf.js} +4 -4
- package/dist/chunks/{modal.Brif0vAy.js.map → modal.D_TcWTkf.js.map} +1 -1
- package/dist/chunks/on-click-outside.Cy1eFULD.js +109 -0
- package/dist/chunks/on-click-outside.Cy1eFULD.js.map +1 -0
- package/dist/chunks/{pagination.BmrU_sn_.js → pagination.D6BxMw5L.js} +37 -37
- package/dist/chunks/{pagination.BmrU_sn_.js.map → pagination.D6BxMw5L.js.map} +1 -1
- package/dist/chunks/{radio-group.5oS-AeYN.js → radio-group.Bb-L-0io.js} +3 -3
- package/dist/chunks/{radio-group.5oS-AeYN.js.map → radio-group.Bb-L-0io.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DSGTe8Zt.js → rich-text-editor.Dtdfh-0V.js} +6 -5
- package/dist/chunks/{rich-text-editor.DSGTe8Zt.js.map → rich-text-editor.Dtdfh-0V.js.map} +1 -1
- package/dist/chunks/{search-bar.CNfoeLLt.js → search-bar.MVJS9-Mh.js} +4 -4
- package/dist/chunks/{search-bar.CNfoeLLt.js.map → search-bar.MVJS9-Mh.js.map} +1 -1
- package/dist/chunks/{secondary-nav.IF5CgeIP.js → secondary-nav.C-nPZR-2.js} +2 -2
- package/dist/chunks/{secondary-nav.IF5CgeIP.js.map → secondary-nav.C-nPZR-2.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DZjFeQKR.js → selection-card-group.CLJPaknG.js} +10 -10
- package/dist/chunks/{selection-card-group.DZjFeQKR.js.map → selection-card-group.CLJPaknG.js.map} +1 -1
- package/dist/chunks/{sidepanel.DZDXuyzg.js → sidepanel.BTRfwGiS.js} +4 -4
- package/dist/chunks/{sidepanel.DZDXuyzg.js.map → sidepanel.BTRfwGiS.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CrPNQbX0.js → summary-grid.types.DUIqCmwg.js} +2 -2
- package/dist/chunks/{summary-grid.types.CrPNQbX0.js.map → summary-grid.types.DUIqCmwg.js.map} +1 -1
- package/dist/chunks/{textarea.Bi53QF5Q.js → textarea.CJS-1I41.js} +5 -4
- package/dist/chunks/{textarea.Bi53QF5Q.js.map → textarea.CJS-1I41.js.map} +1 -1
- package/dist/chunks/{timeline-item.C6Bi0eam.js → timeline-item.BOUWkLi1.js} +4 -4
- package/dist/chunks/{timeline-item.C6Bi0eam.js.map → timeline-item.BOUWkLi1.js.map} +1 -1
- package/dist/chunks/{tutorial.BCiZMLJE.js → tutorial.CZt_mcuT.js} +2 -2
- package/dist/chunks/{tutorial.BCiZMLJE.js.map → tutorial.CZt_mcuT.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.Bn3Y8Iuq.js → use-cached-selected-values.BJbWbkEQ.js} +180 -175
- package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +1 -0
- package/dist/chunks/{use-date-input-formatter.DRMt9yR2.js → use-date-input-formatter.Djf8AoLr.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.DRMt9yR2.js.map → use-date-input-formatter.Djf8AoLr.js.map} +1 -1
- package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
- package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable.js +1396 -0
- package/dist/draggable.js.map +1 -0
- package/dist/dropdown.js +11 -12
- package/dist/dropdown.js.map +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +274 -271
- package/dist/index.js.map +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/internal.js +24 -23
- package/dist/internal.js.map +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +100 -4
- package/package.json +8 -13
- package/dist/assets/dropdown-default-textbox.css +0 -1
- package/dist/chunks/calendar.uvIGF_jU.js.map +0 -1
- package/dist/chunks/date-picker.Dln8ocL4.js +0 -222
- package/dist/chunks/date-picker.Dln8ocL4.js.map +0 -1
- package/dist/chunks/date-range-picker.DPGy2h-9.js.map +0 -1
- package/dist/chunks/debounce.DUTu11PS.js +0 -10
- package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.CjhLIxVq.js +0 -364
- package/dist/chunks/dropdown-default-textbox.CjhLIxVq.js.map +0 -1
- package/dist/chunks/dropdown.CvNI2V33.js +0 -790
- package/dist/chunks/dropdown.CvNI2V33.js.map +0 -1
- package/dist/chunks/error-message.BUNKRa_w.js +0 -160
- package/dist/chunks/error-message.BUNKRa_w.js.map +0 -1
- package/dist/chunks/filter-bar.x445KK3y.js.map +0 -1
- package/dist/chunks/form-layout-title.DR5M7GP3.js.map +0 -1
- package/dist/chunks/input-field.DH25CU_G.js.map +0 -1
- package/dist/chunks/input-time.6eJ4-QdU.js +0 -92
- package/dist/chunks/input-time.6eJ4-QdU.js.map +0 -1
- package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
- package/dist/chunks/on-click-outside.BW4rkhzG.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.Bn3Y8Iuq.js.map +0 -1
- package/dist/draggable-handle.js.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-theme/use-bento-theme.types.ts","../src/composables/use-bento-theme/use-bento-theme.ts","../src/directives/highlight/highlight.ts","../src/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.types.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts","../src/types/base-filter.ts","../src/types/date-format.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { type allKeys, type ErrorBag, type UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param props Form configuration object\n * @param extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns response.errors Object with all the form values and the first error found for that field (if any)\n * @returns response.values Object with all the form values and their current value\n * @returns response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({\n validationSchema,\n}: UseForm<T>): {\n errorBag: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: Array<string>;\n }>;\n errors: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string;\n }>;\n values: Ref<(typeof validationSchema)['_type']>;\n handleReset: () => void;\n submitForm: (submitted: any) => () => void;\n} {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values: Ref<z.TypeOf<T>> = ref(getInitialFormValues<T>(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type BentoTheme } from './install.types';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { type UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\n}\n","const getSize = ({ modifiers, value }) => Object.keys(modifiers)[0] || value?.size || 'small';\n\nconst toggleHighlight = (el, binding, enabled) => {\n const extraPadding = binding.value?.extraPadding ?? false;\n const rounded = binding.value?.rounded ?? false;\n const size = getSize(binding);\n\n el.classList.toggle('b-highlight', enabled);\n el.classList.toggle('b-highlight--extra-padding', enabled && extraPadding);\n el.classList.toggle('b-highlight--rounded', enabled && rounded);\n\n ['small', 'medium', 'large'].forEach(s => {\n el.classList.toggle(`b-highlight--${s}`, enabled && s === size);\n });\n};\n\nconst applyHighlight = (el, binding) => {\n toggleHighlight(el, binding, binding.value !== false);\n};\n\nconst updateHighlight = (el, binding) => {\n toggleHighlight(el, binding, binding.value !== false);\n};\n\nconst removeHighlight = (el, binding) => {\n toggleHighlight(el, binding, false);\n};\n\nexport const BentoHighlightDirective = {\n // Vue 2\n bind: applyHighlight,\n update: updateHighlight,\n unbind: removeHighlight,\n\n // Vue 3\n beforeMount: applyHighlight,\n mounted: updateHighlight,\n updated: updateHighlight,\n unmounted: removeHighlight,\n};\n\nimport './highlight.scss';\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","export enum BentoTheme {\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\nimport { BentoTheme } from './install.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\nimport { BentoTheme } from './composables/use-bento-theme/install.types';\nimport type { PluginObject } from 'vue';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\n\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\nexport default plugin;\n","/**\n * Defines the props used by `bento-base-filter` that must be implemented\n * on every filter as `defineProps`.\n *\n * The interface can be extended if new values are required.\n * The object can be extended if new values are required.\n *\n * @template CustomValue Defines the type of the `value` and `defaultValue` props.\n * @template CustomOptions Defines the type of the options used by the filter (default: `undefined`).\n *\n * @example\n * Using the interface\n *\n * ```typescript\n * import { type BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * interface CustomOptions {\n * option: string;\n * }\n *\n * withDefaults(defineProps<BentoBaseFilterProps<string, CustomOptions>>(), {\n * defaultValue: undefined,\n * })\n * ```\n *\n * @example\n * Using the object\n *\n * ```typescript\n * import { BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * defineProps({\n * ...BentoBaseFilterProps,\n * options: {\n * type: Object,\n * default: () => ({\n * option: null\n * })\n * }\n * })\n * ```\n */\nexport interface BentoBaseFilterProps<CustomValue, CustomOptions = undefined> {\n /**\n * Disables the filter from being interacted with.\n */\n disabled?: boolean;\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue?: CustomValue;\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: string;\n\n /**\n * Label text to be displayed\n */\n label: string;\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot?: boolean;\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n * - isDateDisabled: Indicate if a date should be disabled or not\n * - tooltipPosition: The position of the tooltip attached to the filter button\n * - tooltipText: The content of the tooltip attached to the filter button\n */\n options?: CustomOptions;\n\n /**\n * Current value of the filter\n */\n value: CustomValue;\n}\n\nexport const BentoBaseFilterProps = Object.freeze({\n /**\n * Disables the filter from being interacted with.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: {\n type: [Object, Number, Boolean, Array, String, Date],\n default: null,\n },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * The current value of the filter, used for v-model.\n */\n value: {\n type: [Object, Number, Boolean, Array, String, Date],\n default: undefined,\n },\n});\n\n/**\n * Defines the mandatory emits that need to be defined by the implementation of any filter\n *\n * @template CustomValue Defines the type of the value being passed to the emit. Same as the type set in `BentoBaseFilterProps`\n *\n * @example\n * Using the interface\n *\n * ```typescript\n * import { type BentoBaseFilterEvents } from '@adyen/bento-vue2'\n *\n * defineEmits<BentoBaseFilterEvents<string>>()\n * ```\n *\n * @example\n * Using the object\n *\n * ```typescript\n * import { BentoBaseFilterEvents } from '@adyen/bento-vue2'\n *\n * defineEmits(BentoBaseFilterEvents)\n * ```\n */\nexport interface BentoBaseFilterEvents<CustomFilterProps> {\n /**\n * Used in the All filters modal\n */\n (e: 'input', updatedProps: CustomFilterProps): void;\n\n /**\n * Used in the Filter Bar\n */\n (e: 'update', updatedProps: CustomFilterProps): void;\n}\n\nexport const BentoBaseFilterEvents = ['input', 'update'];\n","export enum DateFormat {\n // DAY\n DAY_OF_MONTH = 'd', // 1, 2, ..., 31,\n NUMERIC_DAY = 'dd', // 01, 02, ..., 31,\n\n // WEEK\n SHORT_WEEKDAY = 'EEE', // Fri\n\n // MONTH\n NUMERIC_MONTH = 'MM', // 06\n SHORT_MONTH = 'MMM', // Jun\n LONG_MONTH = 'MMMM', // June\n LONG_MONTH_YEAR = `${LONG_MONTH} yyyy`, // June 2023\n\n // YEAR\n FULL_YEAR = 'yyyy', // 0001, 2023\n\n // DATE\n FULL_DATE = `${DAY_OF_MONTH} ${SHORT_MONTH}, ${FULL_YEAR}`, // 25 Jun, 2023\n FULL_DATE_MONTH_FIRST = `${SHORT_MONTH} ${NUMERIC_DAY}, ${FULL_YEAR}`, // Jun 25, 2023\n NUMERIC_DATE_YEAR_FIRST = `${FULL_YEAR}-${NUMERIC_MONTH}-${NUMERIC_DAY}`, // 2023-06-25\n NUMERIC_DATE_DAY_FIRST = `${FULL_YEAR}-${NUMERIC_MONTH}-${NUMERIC_DAY}`, // 25-06-2023\n\n // TIME\n MILITARY_HOUR = 'HH',\n MINUTES_TWO_DIGITS = 'mm',\n SECONDS_TWO_DIGITS = 'ss',\n HOUR_MINUTE_SECONDS = `${MILITARY_HOUR}:${MINUTES_TWO_DIGITS}:${SECONDS_TWO_DIGITS}`,\n}\n\nexport type BentoTextInputDateFormat = 'YYYY-MM-DD' | 'DD-MM-YYYY' | 'MM-DD-YYYY';\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","submitted","validSchema","error","path","useBentoThemeKey","useBentoTheme","bentoThemeController","_a","getCurrentInstance","printDevelopmentWarning","getSize","modifiers","toggleHighlight","el","binding","enabled","extraPadding","rounded","_b","size","s","applyHighlight","updateHighlight","removeHighlight","BentoHighlightDirective","installToast","Vue","toastStackInjectionKey","createToastStack","BentoTheme","BentoTheme2","getTheme","getThemeForSystemPreference","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate","BentoBaseFilterProps","BentoBaseFilterEvents","DateFormat","DateFormat2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,SAAAA,EAAAC,GAAA;AACH,SAAAA;AACJ;AA4BA,SAAAC,EAAAC,GAAA;AACI,MAAAC,KAAAD,aAAAC,EAAA;AACI,WAAA,OAAA;AAAA,MAAc,OAAA,QAAAD,EAAA,KAAA,EAAA,IAAA,CAAA,CAAAE,GAAAC,CAAA,MAENF,KAAAE,aAAAF,EAAA,aAEI,CAAAC,GAAAC,EAAA,KAAA,aAAA,CAAA,IAGJF,KAAAE,aAAAF,EAAA,YACI,CAAAC,GAAAH,EAAAI,CAAA,CAAA,IAGJ,CAAAD,GAAA,MAAA,CAAsB;AAAA,IACzB;AAKb;AAOA,SAAAE,EAAAC,GAAA;AACI,SAAAA,EAAA,KAAA,KAAA,GAAA;AACJ;AA6CO,SAAAC,EAAA;AAAA,EAAsC,kBAAAC;AAE7C,GAAA;AAYI,QAAAC,IAAAC,EAAA,CAAA,CAAA,GAEAC,IAAAC,EAAA,CAAA,CAAA,GACAC,IAAAD,EAAAZ,EAAAQ,CAAA,CAAA,GAEAM,IAAA,MAAA;AACI,IAAAL,EAAA,QAAA,CAAA,GACAE,EAAA,QAAA,CAAA;AAAA,EAAkB,GAGtBI,IAAA,MAAA;AACI,IAAAD,EAAA,GACAD,EAAA,QAAAb,EAAAQ,CAAA;AAAA,EAAuD;AA+B3D,SAAA;AAAA;AAAA,IAAO,UAAAG;AAAA,IAEH,QA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,EACb,OAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA;AAAA;AAAA;AAAA,EAMsC,OAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,UAAA,EAAA,MAAA,SAAA,SAAA,GAAA;AAAA;AAAA;AAAA;AAAA,EAMI,OAAA;AAAA,IAKnC,MAAA,CAAA,QAAA,QAAA,SAAA,OAAA,QAAA,IAAA;AAAA,IACgD,SAAA;AAAA,EAC1C;AAEjB,CAAA,GAqCOC,IAAA,CAAA,SAAA,QAAA;ACjKA,IAAAC,IAAA,kBAAAC,OAEHA,EAAA,eAAA,KACAA,EAAA,cAAA,MAGAA,EAAA,gBAAA,OAGAA,EAAA,gBAAA,MACAA,EAAA,cAAA,OACAA,EAAA,aAAA,QACAA,EAAA,kBAAA,aAGAA,EAAA,YAAA,QAGAA,EAAA,YAAA,eACAA,EAAA,wBAAA,gBACAA,EAAA,0BAAA,cACAA,EAAA,yBAAA,cAGAA,EAAA,gBAAA,MACAA,EAAA,qBAAA,MACAA,EAAA,qBAAA,MACAA,EAAA,sBAAA,YA3BQA,IAAAD,KAAA,CAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-theme/use-bento-theme.types.ts","../src/composables/use-bento-theme/use-bento-theme.ts","../src/directives/highlight/highlight.ts","../src/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.types.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts","../src/types/base-filter.ts","../src/types/date-format.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { type allKeys, type ErrorBag, type UseForm } from './use-form.types';\n\n/**\n * Composable that transforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n /* eslint-disable-next-line no-underscore-dangle */\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n /**\n * Zod's refine and superRefine use {@link z.ZodEffects} instead of {@link z.ZodSchema}.\n * We need to extract the schema from the {@link z.ZodEffects} structure.\n */\n if (!!z && schema instanceof z.ZodEffects) {\n // eslint-disable-next-line no-underscore-dangle\n return getInitialFormValues(schema._def.schema);\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param props Form configuration object\n * @param extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns response.errors Object with all the form values and the first error found for that field (if any)\n * @returns response.values Object with all the form values and their current value\n * @returns response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({\n validationSchema,\n}: UseForm<T>): {\n errorBag: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: Array<string>;\n }>;\n errors: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string;\n }>;\n values: Ref<(typeof validationSchema)['_type']>;\n handleReset: () => void;\n submitForm: (submitted: any) => () => void;\n} {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values: Ref<z.TypeOf<T>> = ref(getInitialFormValues<T>(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first occurrence of a field error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type BentoTheme } from './install.types';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { type UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\n}\n","const getSize = ({ modifiers, value }) => Object.keys(modifiers)[0] || value?.size || 'small';\n\nconst toggleHighlight = (el, binding, enabled) => {\n const extraPadding = binding.value?.extraPadding ?? false;\n const rounded = binding.value?.rounded ?? false;\n const size = getSize(binding);\n\n el.classList.toggle('b-highlight', enabled);\n el.classList.toggle('b-highlight--extra-padding', enabled && extraPadding);\n el.classList.toggle('b-highlight--rounded', enabled && rounded);\n\n ['small', 'medium', 'large'].forEach(s => {\n el.classList.toggle(`b-highlight--${s}`, enabled && s === size);\n });\n};\n\nconst applyHighlight = (el, binding) => {\n toggleHighlight(el, binding, binding.value !== false);\n};\n\nconst updateHighlight = (el, binding) => {\n toggleHighlight(el, binding, binding.value !== false);\n};\n\nconst removeHighlight = (el, binding) => {\n toggleHighlight(el, binding, false);\n};\n\nexport const BentoHighlightDirective = {\n // Vue 2\n bind: applyHighlight,\n update: updateHighlight,\n unbind: removeHighlight,\n\n // Vue 3\n beforeMount: applyHighlight,\n mounted: updateHighlight,\n updated: updateHighlight,\n unmounted: removeHighlight,\n};\n\nimport './highlight.scss';\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","export enum BentoTheme {\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\nimport { BentoTheme } from './install.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\nimport { BentoTheme } from './composables/use-bento-theme/install.types';\nimport type { PluginObject } from 'vue';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\n\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\nexport default plugin;\n","/**\n * Defines the props used by `bento-base-filter` that must be implemented\n * on every filter as `defineProps`.\n *\n * The interface can be extended if new values are required.\n * The object can be extended if new values are required.\n *\n * @template CustomValue Defines the type of the `value` and `defaultValue` props.\n * @template CustomOptions Defines the type of the options used by the filter (default: `undefined`).\n *\n * @example\n * Using the interface\n *\n * ```typescript\n * import { type BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * interface CustomOptions {\n * option: string;\n * }\n *\n * withDefaults(defineProps<BentoBaseFilterProps<string, CustomOptions>>(), {\n * defaultValue: undefined,\n * })\n * ```\n *\n * @example\n * Using the object\n *\n * ```typescript\n * import { BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * defineProps({\n * ...BentoBaseFilterProps,\n * options: {\n * type: Object,\n * default: () => ({\n * option: null\n * })\n * }\n * })\n * ```\n */\nexport interface BentoBaseFilterProps<CustomValue, CustomOptions = undefined> {\n /**\n * Disables the filter from being interacted with.\n */\n disabled?: boolean;\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue?: CustomValue;\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: string;\n\n /**\n * Label text to be displayed\n */\n label: string;\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot?: boolean;\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n * - isDateDisabled: Indicate if a date should be disabled or not\n * - tooltipPosition: The position of the tooltip attached to the filter button\n * - tooltipText: The content of the tooltip attached to the filter button\n */\n options?: CustomOptions;\n\n /**\n * Current value of the filter\n */\n value: CustomValue;\n}\n\nexport const BentoBaseFilterProps = Object.freeze({\n /**\n * Disables the filter from being interacted with.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: {\n type: [Object, Number, Boolean, Array, String, Date],\n default: null,\n },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * The current value of the filter, used for v-model.\n */\n value: {\n type: [Object, Number, Boolean, Array, String, Date],\n default: undefined,\n },\n});\n\n/**\n * Defines the mandatory emits that need to be defined by the implementation of any filter\n *\n * @template CustomValue Defines the type of the value being passed to the emit. Same as the type set in `BentoBaseFilterProps`\n *\n * @example\n * Using the interface\n *\n * ```typescript\n * import { type BentoBaseFilterEvents } from '@adyen/bento-vue2'\n *\n * defineEmits<BentoBaseFilterEvents<string>>()\n * ```\n *\n * @example\n * Using the object\n *\n * ```typescript\n * import { BentoBaseFilterEvents } from '@adyen/bento-vue2'\n *\n * defineEmits(BentoBaseFilterEvents)\n * ```\n */\nexport interface BentoBaseFilterEvents<CustomFilterProps> {\n /**\n * Used in the All filters modal\n */\n (e: 'input', updatedProps: CustomFilterProps): void;\n\n /**\n * Used in the Filter Bar\n */\n (e: 'update', updatedProps: CustomFilterProps): void;\n}\n\nexport const BentoBaseFilterEvents = ['input', 'update'];\n","export enum DateFormat {\n // DAY\n DAY_OF_MONTH = 'd', // 1, 2, ..., 31,\n NUMERIC_DAY = 'dd', // 01, 02, ..., 31,\n\n // WEEK\n SHORT_WEEKDAY = 'EEE', // Fri\n\n // MONTH\n NUMERIC_MONTH = 'MM', // 06\n SHORT_MONTH = 'MMM', // Jun\n LONG_MONTH = 'MMMM', // June\n LONG_MONTH_YEAR = `${LONG_MONTH} yyyy`, // June 2023\n\n // YEAR\n FULL_YEAR = 'yyyy', // 0001, 2023\n\n // DATE\n FULL_DATE = `${DAY_OF_MONTH} ${SHORT_MONTH}, ${FULL_YEAR}`, // 25 Jun, 2023\n FULL_DATE_MONTH_FIRST = `${SHORT_MONTH} ${NUMERIC_DAY}, ${FULL_YEAR}`, // Jun 25, 2023\n NUMERIC_DATE_YEAR_FIRST = `${FULL_YEAR}-${NUMERIC_MONTH}-${NUMERIC_DAY}`, // 2023-06-25\n NUMERIC_DATE_DAY_FIRST = `${FULL_YEAR}-${NUMERIC_MONTH}-${NUMERIC_DAY}`, // 25-06-2023\n\n // TIME\n MILITARY_HOUR = 'HH',\n MINUTES_TWO_DIGITS = 'mm',\n SECONDS_TWO_DIGITS = 'ss',\n HOUR_MINUTE_SECONDS = `${MILITARY_HOUR}:${MINUTES_TWO_DIGITS}:${SECONDS_TWO_DIGITS}`,\n}\n\nexport type BentoTextInputDateFormat = 'YYYY-MM-DD' | 'DD-MM-YYYY' | 'MM-DD-YYYY';\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","submitted","validSchema","error","path","useBentoThemeKey","useBentoTheme","bentoThemeController","_a","getCurrentInstance","printDevelopmentWarning","getSize","modifiers","toggleHighlight","el","binding","enabled","extraPadding","rounded","_b","size","s","applyHighlight","updateHighlight","removeHighlight","BentoHighlightDirective","installToast","Vue","toastStackInjectionKey","createToastStack","BentoTheme","BentoTheme2","getTheme","getThemeForSystemPreference","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate","BentoBaseFilterProps","BentoBaseFilterEvents","DateFormat","DateFormat2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,SAAAA,EAAAC,GAAA;AACH,SAAAA;AACJ;AA4BA,SAAAC,EAAAC,GAAA;AACI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AEHA,EAAA,eAAA,KACAA,EAAA,cAAA,MAGAA,EAAA,gBAAA,OAGAA,EAAA,gBAAA,MACAA,EAAA,cAAA,OACAA,EAAA,aAAA,QACAA,EAAA,kBAAA,aAGAA,EAAA,YAAA,QAGAA,EAAA,YAAA,eACAA,EAAA,wBAAA,gBACAA,EAAA,0BAAA,cACAA,EAAA,yBAAA,cAGAA,EAAA,gBAAA,MACAA,EAAA,qBAAA,MACAA,EAAA,qBAAA,MACAA,EAAA,sBAAA,YA3BQA,IAAAD,KAAA,CAAA,CAAA;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as a, m as s, r as i, a as c, b as u, c as o } from "./chunks/input-field-password.
|
|
1
|
+
import { i as a, m as s, r as i, a as c, b as u, c as o } from "./chunks/input-field-password.BNAtIn_D.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BentoInputFieldPassword,
|
|
4
4
|
s as minLength,
|
package/dist/input-field.js
CHANGED
package/dist/input-time.js
CHANGED
package/dist/internal.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { d as e, e as t } from "./chunks/button-actions.
|
|
1
|
+
import { d as e, e as t } from "./chunks/button-actions.Bdbu0bvt.js";
|
|
2
2
|
import { B as s, D as i, a as n, b as p } from "./chunks/dialog-page.EdejG53a.js";
|
|
3
|
-
import { b as C, u as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as d } from "./chunks/button-actions-with-menu.
|
|
6
|
-
import { b as G, c as O, C as u, d as B, a as A } from "./chunks/calendar.
|
|
7
|
-
import { C as P } from "./chunks/controls-group.
|
|
3
|
+
import { b as C, u as x, c as I } from "./chunks/use-cached-selected-values.BJbWbkEQ.js";
|
|
4
|
+
import { B as f, a as m, T as E } from "./chunks/tooltip.BxtnF3is.js";
|
|
5
|
+
import { B as d } from "./chunks/button-actions-with-menu.OsPQ-POD.js";
|
|
6
|
+
import { b as G, c as O, C as u, d as B, a as A } from "./chunks/calendar.CqsfThnC.js";
|
|
7
|
+
import { C as P } from "./chunks/controls-group.DSm2Ujwt.js";
|
|
8
8
|
import { C as b, a as g } from "./chunks/copy.qqGYFbKJ.js";
|
|
9
|
-
import { E as D
|
|
10
|
-
import { F as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import { E as D } from "./chunks/error-message.CyERcfdt.js";
|
|
10
|
+
import { F as S } from "./chunks/field-label.DjjjkcO6.js";
|
|
11
|
+
import { F as W } from "./chunks/fixed-scroller.DR2E_No4.js";
|
|
12
|
+
import { G as v, a as H } from "./chunks/grid-layout.1aIiz2N_.js";
|
|
13
|
+
import { H as K, I as R } from "./chunks/header-meta.AXUGoqDd.js";
|
|
14
|
+
import { L as U } from "./chunks/listbox-option-tag.CvbE-EuG.js";
|
|
14
15
|
export {
|
|
15
16
|
e as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
|
|
16
17
|
s as BentoDialogPageAnimation,
|
|
17
18
|
C as BentoListbox,
|
|
18
19
|
t as BentoTeleport,
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
f as BentoTooltipPosition,
|
|
21
|
+
m as BentoTooltipState,
|
|
21
22
|
d as ButtonActionsWithMenu,
|
|
22
23
|
G as Calendar,
|
|
23
24
|
O as CalendarEvent,
|
|
@@ -31,15 +32,15 @@ export {
|
|
|
31
32
|
n as DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,
|
|
32
33
|
p as DialogPage,
|
|
33
34
|
D as ErrorMessage,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
S as FieldLabel,
|
|
36
|
+
W as FixedScroller,
|
|
37
|
+
v as GridLayout,
|
|
38
|
+
H as GridLayoutContainerType,
|
|
39
|
+
K as HeaderMeta,
|
|
40
|
+
R as InfoIconWithPopover,
|
|
41
|
+
U as ListboxOptionTag,
|
|
42
|
+
E as Tooltip,
|
|
43
|
+
x as useCachedSelectedValues,
|
|
44
|
+
I as useMultiLevelItems
|
|
44
45
|
};
|
|
45
46
|
//# sourceMappingURL=internal.js.map
|
package/dist/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"internal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/menu.js
CHANGED
package/dist/modal-fullscreen.js
CHANGED
package/dist/modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as e } from "./chunks/modal.
|
|
2
|
-
import { B as n, a as l, b as B, c as d, d as M, e as s, f as r, g as i } from "./chunks/base-modal.
|
|
1
|
+
import { B as e } from "./chunks/modal.D_TcWTkf.js";
|
|
2
|
+
import { B as n, a as l, b as B, c as d, d as M, e as s, f as r, g as i } from "./chunks/base-modal.C52VMtnd.js";
|
|
3
3
|
export {
|
|
4
4
|
e as BentoModal,
|
|
5
5
|
n as BentoModalColumnLayoutVariant,
|
package/dist/pagination.js
CHANGED
package/dist/popover.js
CHANGED
package/dist/radio-group.js
CHANGED
package/dist/rich-text-editor.js
CHANGED
package/dist/search-bar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as r, a as t, b as B } from "./chunks/search-bar.
|
|
2
|
-
import { u as o } from "./chunks/dropdown.
|
|
1
|
+
import { B as r, a as t, b as B } from "./chunks/search-bar.MVJS9-Mh.js";
|
|
2
|
+
import { u as o } from "./chunks/dropdown.Ca-f8tdX.js";
|
|
3
3
|
export {
|
|
4
4
|
r as BentoSearchBar,
|
|
5
5
|
t as BentoSearchBarEvent,
|
package/dist/secondary-nav.js
CHANGED
package/dist/selection-card.js
CHANGED
package/dist/sidepanel.js
CHANGED
package/dist/summary-grid.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as r, a as t, b as a, c as o, d as i, B as n, e as u, f as d } from "./chunks/summary-grid.types.
|
|
1
|
+
import { s as r, a as t, b as a, c as o, d as i, B as n, e as u, f as d } from "./chunks/summary-grid.types.DUIqCmwg.js";
|
|
2
2
|
export {
|
|
3
3
|
r as BentoSummaryGrid,
|
|
4
4
|
t as BentoSummaryGridItemAmount,
|
package/dist/textarea.js
CHANGED
package/dist/timeline.js
CHANGED
package/dist/tutorial.js
CHANGED
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "@adyen/bento-vue2",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.91.0",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -1546,6 +1546,30 @@
|
|
|
1546
1546
|
"symbol": "default"
|
|
1547
1547
|
}
|
|
1548
1548
|
},
|
|
1549
|
+
{
|
|
1550
|
+
"name": "bento-draggable-default-example",
|
|
1551
|
+
"description": "",
|
|
1552
|
+
"source": {
|
|
1553
|
+
"module": "./src/components/draggable/__tests__/bento-draggable-default-example.vue",
|
|
1554
|
+
"symbol": "default"
|
|
1555
|
+
}
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
"name": "bento-draggable-grid-example",
|
|
1559
|
+
"description": "",
|
|
1560
|
+
"source": {
|
|
1561
|
+
"module": "./src/components/draggable/__tests__/bento-draggable-grid-example.vue",
|
|
1562
|
+
"symbol": "default"
|
|
1563
|
+
}
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
"name": "bento-draggable-nested-example",
|
|
1567
|
+
"description": "",
|
|
1568
|
+
"source": {
|
|
1569
|
+
"module": "./src/components/draggable/__tests__/bento-draggable-nested-example.vue",
|
|
1570
|
+
"symbol": "default"
|
|
1571
|
+
}
|
|
1572
|
+
},
|
|
1549
1573
|
{
|
|
1550
1574
|
"name": "bento-header",
|
|
1551
1575
|
"description": "",
|
|
@@ -6393,6 +6417,51 @@
|
|
|
6393
6417
|
"symbol": "default"
|
|
6394
6418
|
}
|
|
6395
6419
|
},
|
|
6420
|
+
{
|
|
6421
|
+
"name": "draggable",
|
|
6422
|
+
"description": "",
|
|
6423
|
+
"attributes": [
|
|
6424
|
+
{
|
|
6425
|
+
"name": "el",
|
|
6426
|
+
"required": false,
|
|
6427
|
+
"description": "Element that will contain the draggable elements.",
|
|
6428
|
+
"value": {
|
|
6429
|
+
"kind": "expression",
|
|
6430
|
+
"type": "TSTypeOperator"
|
|
6431
|
+
},
|
|
6432
|
+
"default": "'div'"
|
|
6433
|
+
},
|
|
6434
|
+
{
|
|
6435
|
+
"name": "items",
|
|
6436
|
+
"required": false,
|
|
6437
|
+
"description": "List of items to be rendered as draggable elements",
|
|
6438
|
+
"value": {
|
|
6439
|
+
"kind": "expression",
|
|
6440
|
+
"type": "Array"
|
|
6441
|
+
},
|
|
6442
|
+
"default": "() => []"
|
|
6443
|
+
},
|
|
6444
|
+
{
|
|
6445
|
+
"name": "options",
|
|
6446
|
+
"required": false,
|
|
6447
|
+
"description": "Options to be passed to SortableJS.",
|
|
6448
|
+
"value": {
|
|
6449
|
+
"kind": "expression",
|
|
6450
|
+
"type": "BentoDraggableOptions"
|
|
6451
|
+
},
|
|
6452
|
+
"default": "() => ({})"
|
|
6453
|
+
}
|
|
6454
|
+
],
|
|
6455
|
+
"slots": [
|
|
6456
|
+
{
|
|
6457
|
+
"name": "default"
|
|
6458
|
+
}
|
|
6459
|
+
],
|
|
6460
|
+
"source": {
|
|
6461
|
+
"module": "./src/components/draggable/draggable.vue",
|
|
6462
|
+
"symbol": "default"
|
|
6463
|
+
}
|
|
6464
|
+
},
|
|
6396
6465
|
{
|
|
6397
6466
|
"name": "draggable-handle",
|
|
6398
6467
|
"description": "",
|
|
@@ -6407,6 +6476,16 @@
|
|
|
6407
6476
|
},
|
|
6408
6477
|
"default": "false"
|
|
6409
6478
|
},
|
|
6479
|
+
{
|
|
6480
|
+
"name": "disabled",
|
|
6481
|
+
"required": false,
|
|
6482
|
+
"description": "Prevents the component from being dragged.\nDisables the handle",
|
|
6483
|
+
"value": {
|
|
6484
|
+
"kind": "expression",
|
|
6485
|
+
"type": "boolean"
|
|
6486
|
+
},
|
|
6487
|
+
"default": "false"
|
|
6488
|
+
},
|
|
6410
6489
|
{
|
|
6411
6490
|
"name": "disabledMenus",
|
|
6412
6491
|
"required": false,
|
|
@@ -6464,7 +6543,7 @@
|
|
|
6464
6543
|
}
|
|
6465
6544
|
],
|
|
6466
6545
|
"source": {
|
|
6467
|
-
"module": "./src/components/draggable-handle/draggable-handle.vue",
|
|
6546
|
+
"module": "./src/components/draggable/components/draggable-handle/draggable-handle.vue",
|
|
6468
6547
|
"symbol": "default"
|
|
6469
6548
|
}
|
|
6470
6549
|
},
|
|
@@ -6472,7 +6551,7 @@
|
|
|
6472
6551
|
"name": "draggable-handle-default-example",
|
|
6473
6552
|
"description": "",
|
|
6474
6553
|
"source": {
|
|
6475
|
-
"module": "./src/components/draggable-handle/__tests__/draggable-handle-default-example.vue",
|
|
6554
|
+
"module": "./src/components/draggable/components/draggable-handle/__tests__/draggable-handle-default-example.vue",
|
|
6476
6555
|
"symbol": "default"
|
|
6477
6556
|
}
|
|
6478
6557
|
},
|
|
@@ -9212,12 +9291,21 @@
|
|
|
9212
9291
|
"attributes": [
|
|
9213
9292
|
{
|
|
9214
9293
|
"name": "layout",
|
|
9215
|
-
"description": "The layout of the pair group of components.\nThis will render the components within the width of the proportions.\nOnly two
|
|
9294
|
+
"description": "The layout of the pair group of components.\nThis will render the components within the width of the proportions.\nOnly two columns are available.\n\nIf only one value is entered, then it will assume there's only one child in the group.\nIf two values are entered, the first value will be use for the first child and the second\nvalue for the second child.\n\nIf the value entered is not listed in the example\nlist below it will use 100% by default.",
|
|
9216
9295
|
"value": {
|
|
9217
9296
|
"kind": "expression",
|
|
9218
9297
|
"type": "BentoLayoutGroupProportions"
|
|
9219
9298
|
},
|
|
9220
9299
|
"default": "'100'"
|
|
9300
|
+
},
|
|
9301
|
+
{
|
|
9302
|
+
"name": "errorMessage",
|
|
9303
|
+
"description": "The error message to be displayed for the whole group.\n\nIf set, individual error messages for all components within this group will be hidden.\nThis is particularly useful for field pairs where a single group error is displayed.",
|
|
9304
|
+
"value": {
|
|
9305
|
+
"kind": "expression",
|
|
9306
|
+
"type": "string"
|
|
9307
|
+
},
|
|
9308
|
+
"default": "null"
|
|
9221
9309
|
}
|
|
9222
9310
|
],
|
|
9223
9311
|
"slots": [
|
|
@@ -9275,6 +9363,14 @@
|
|
|
9275
9363
|
"symbol": "default"
|
|
9276
9364
|
}
|
|
9277
9365
|
},
|
|
9366
|
+
{
|
|
9367
|
+
"name": "form-layout-validate-example",
|
|
9368
|
+
"description": "",
|
|
9369
|
+
"source": {
|
|
9370
|
+
"module": "./src/components/form-layout/__tests__/form-layout-validate-example.vue",
|
|
9371
|
+
"symbol": "default"
|
|
9372
|
+
}
|
|
9373
|
+
},
|
|
9278
9374
|
{
|
|
9279
9375
|
"name": "grid-layout",
|
|
9280
9376
|
"description": "Component used to render the grid layout in the bento-summary-grid. For internal use only",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/bento-vue2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.91.0",
|
|
4
4
|
"description": "Adyen Bento Vue2 components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"unified": "11.0.5",
|
|
52
52
|
"uuid": "11.0.5",
|
|
53
53
|
"vue-demi": "0.14.10",
|
|
54
|
-
"@adyen/bento-design-tokens": "1.
|
|
54
|
+
"@adyen/bento-design-tokens": "1.91.0"
|
|
55
55
|
},
|
|
56
56
|
"dependenciesMeta": {
|
|
57
57
|
"@adyen/bento-vue-i18n-demi": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"vue": "~2.7",
|
|
63
63
|
"vue-i18n": "8.26.7",
|
|
64
|
-
"zod": "^3.25"
|
|
64
|
+
"zod": "^3.25 || ^4"
|
|
65
65
|
},
|
|
66
66
|
"overrides": {
|
|
67
67
|
"@codemirror/state": "catalog:",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@storybook/theming": "7.6.21",
|
|
97
97
|
"@storybook/vue": "7.6.21",
|
|
98
98
|
"@storybook/vue-vite": "7.6.21",
|
|
99
|
-
"@swc/core": "1.15.11",
|
|
99
|
+
"@swc/core": "^1.15.11",
|
|
100
100
|
"@testing-library/dom": "10.4.1",
|
|
101
101
|
"@testing-library/jest-dom": "5.16.5",
|
|
102
102
|
"@testing-library/user-event": "14.4.3",
|
|
@@ -108,11 +108,8 @@
|
|
|
108
108
|
"@vue/test-utils": "1.3.4",
|
|
109
109
|
"axe-core": "4.4.2",
|
|
110
110
|
"codemirror-lang-csv": "0.1.1",
|
|
111
|
-
"css-loader": "5.2.7",
|
|
112
111
|
"dompurify": "3.3.2",
|
|
113
112
|
"fast-glob": "3.3.3",
|
|
114
|
-
"fork-ts-checker-webpack-plugin": "6.5.2",
|
|
115
|
-
"html-webpack-plugin": "4.5.2",
|
|
116
113
|
"magic-string": "0.30.14",
|
|
117
114
|
"marked": "15.0.12",
|
|
118
115
|
"oxc-resolver": "11.16.2",
|
|
@@ -120,7 +117,6 @@
|
|
|
120
117
|
"react-dom": "18.3.1",
|
|
121
118
|
"remark-gfm": "3.0.1",
|
|
122
119
|
"sass": "^1.83.4",
|
|
123
|
-
"sass-loader": "12.6.0",
|
|
124
120
|
"shiki": "3.7.0",
|
|
125
121
|
"storybook": "7.6.21",
|
|
126
122
|
"tsc-alias": "1.8.11",
|
|
@@ -133,15 +129,14 @@
|
|
|
133
129
|
"vue-demi": "0.14.10",
|
|
134
130
|
"vue-docgen-web-types": "0.1.8",
|
|
135
131
|
"vue-router": "3.6.4",
|
|
136
|
-
"vue-style-loader": "4.1.3",
|
|
137
132
|
"vue-template-compiler": "2.7.16",
|
|
138
133
|
"vue-tsc": "2.2.10",
|
|
139
134
|
"zod": "3.25.35",
|
|
140
|
-
"@adyen/bento-cli": "0.
|
|
135
|
+
"@adyen/bento-cli": "0.10.0",
|
|
136
|
+
"@adyen/bento-core": "0.0.1",
|
|
141
137
|
"@adyen/bento-vue-i18n-demi": "0.1.0",
|
|
142
|
-
"@adyen/ui-assets-icons-16": "7.
|
|
143
|
-
"@adyen/ui-assets-payment-method-icons": "10.
|
|
144
|
-
"@adyen/bento-core": "0.0.1"
|
|
138
|
+
"@adyen/ui-assets-icons-16": "7.8.0",
|
|
139
|
+
"@adyen/ui-assets-payment-method-icons": "10.8.0"
|
|
145
140
|
},
|
|
146
141
|
"optionalDependencies": {
|
|
147
142
|
"vue-router": "~3.6"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
input[data-v-36875648]:disabled{cursor:inherit}input[data-v-36875648]{background-color:inherit;border:unset;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0;width:100%}input[data-v-36875648]::placeholder{font-family:inherit;font-size:inherit;font-weight:inherit}input[data-v-36875648]:disabled{color:inherit}.b-dropdown-base-textbox[data-v-36875648]{align-items:center;display:grid;grid-template-columns:auto 16px;grid-template-rows:100%;width:100%}.b-dropdown-base-textbox--disabled[data-v-36875648]{cursor:not-allowed;pointer-events:none}.b-dropdown-base-textbox--has-items[data-v-36875648]{grid-template-columns:auto auto 16px}.b-dropdown-base-textbox__icon[data-v-36875648]{justify-self:end}.b-dropdown-base-textbox__additional-items[data-v-36875648]{border-radius:var(--b-border-radius-s);justify-self:end}.b-dropdown-base-textbox__input[data-v-36875648]{-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.b-dropdown-base-textbox__input[data-v-36875648]:focus-visible{outline:none}.b-dropdown-base-textbox__input[data-v-36875648]:empty{height:1lh}.b-dropdown-base-textbox__input--dynamic-filtering[data-v-36875648]{cursor:text}.b-dropdown-base-textbox__input-multiple-selected[data-v-36875648]{align-items:center;display:flex;overflow:hidden}.b-dropdown-base-textbox__clear-search[data-v-36875648]{cursor:pointer;display:inherit}.b-dropdown-base-textbox__clear-search[data-v-36875648]:focus-visible{border-color:transparent;border-radius:50%;box-shadow:none;outline-style:none;animation:outer-ring-default-36875648 var(--b-animation-duration-fast) var(--b-animation-easing-standard);box-shadow:0 0 0 var(--b-focus-ring-spacer) var(--b-color-background-primary),0 0 0 var(--b-focus-ring-outline) var(--b-focus-ring-color)}@keyframes outer-ring-default-36875648{0%{box-shadow:0 0 0 var(--b-border-width-s) var(--b-color-background-primary),0 0 0 0 var(--b-focus-ring-color)}to{box-shadow:0 0 0 var(--b-border-width-s) var(--b-color-background-primary),0 0 0 var(--b-border-width-l) var(--b-focus-ring-color)}}.b-dropdown-default-textbox[data-v-bf2d43b0]{scrollbar-color:var(--b-color-background-quaternary) transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;align-items:center;background-color:var(--b-color-background-primary);border:1px solid var(--b-color-outline-tertiary);border-radius:var(--b-border-radius-m);color:var(--b-color-label-primary);cursor:pointer;display:flex;flex-wrap:wrap;gap:4px;justify-content:space-between;min-height:36px;overflow:hidden}.b-dropdown-default-textbox[data-v-bf2d43b0],.b-dropdown-default-textbox[data-v-bf2d43b0]:before,.b-dropdown-default-textbox[data-v-bf2d43b0]:after{box-sizing:border-box}.b-dropdown-default-textbox[data-v-bf2d43b0] ::-webkit-scrollbar{height:14px;width:14px}.b-dropdown-default-textbox[data-v-bf2d43b0] ::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:var(--b-color-background-quaternary);border:3px solid transparent;border-radius:var(--b-border-radius-l)}.b-dropdown-default-textbox__textbox[data-v-bf2d43b0]{display:flex;height:100%;min-height:34px;padding:0 var(--b-spacer-060);width:100%}.b-dropdown-default-textbox[data-v-bf2d43b0] .b-dropdown-base-textbox{gap:var(--b-spacer-060)}.b-dropdown-default-textbox[data-v-bf2d43b0] .b-dropdown-base-textbox__additional-items{background-color:var(--b-color-background-secondary);padding:var(--b-spacer-020) var(--b-spacer-030)}.b-dropdown-default-textbox[data-v-bf2d43b0] .b-dropdown-base-textbox__input-selected-element{margin-right:var(--b-spacer-040)}.b-dropdown-default-textbox__chevron[data-v-bf2d43b0]{align-items:center;color:var(--b-color-label-primary);display:flex;line-height:1;pointer-events:none}.b-dropdown-default-textbox[data-v-bf2d43b0]:hover:not(.b-dropdown-default-textbox--disabled){border-color:var(--b-color-outline-tertiary-active)}.b-dropdown-default-textbox[data-v-bf2d43b0]:focus-within,.b-dropdown-default-textbox[data-v-bf2d43b0]:focus-visible{outline:none}.b-dropdown-default-textbox[data-v-bf2d43b0]:focus-within:not(.b-dropdown-default-textbox--disabled),.b-dropdown-default-textbox[data-v-bf2d43b0]:focus-visible:not(.b-dropdown-default-textbox--disabled){border-color:var(--b-color-outline-tertiary-active);outline:solid .5px var(--b-color-outline-tertiary-active)}.b-dropdown-default-textbox--condensed[data-v-bf2d43b0]{min-height:28px}.b-dropdown-default-textbox--condensed .b-dropdown-default-textbox__textbox[data-v-bf2d43b0]{min-height:28px;padding:0 var(--b-spacer-050)}.b-dropdown-default-textbox--condensed[data-v-bf2d43b0] .b-dropdown-base-textbox__additional-items{align-items:center;display:flex;max-height:24px}.b-dropdown-default-textbox--opened[data-v-bf2d43b0]{border-bottom-left-radius:var(--b-border-radius-m);border-bottom-right-radius:var(--b-border-radius-m)}.b-dropdown-default-textbox--disabled[data-v-bf2d43b0],.b-dropdown-default-textbox--disabled>*[data-v-bf2d43b0]{background-color:var(--b-color-background-disabled);border-color:var(--b-color-outline-disabled);color:var(--b-color-label-disabled);cursor:not-allowed}.b-dropdown-default-textbox--disabled .b-dropdown-default-textbox__chevron[data-v-bf2d43b0],.b-dropdown-default-textbox--disabled>* .b-dropdown-default-textbox__chevron[data-v-bf2d43b0]{color:var(--b-color-label-disabled)}.b-dropdown-default-textbox--readonly[data-v-bf2d43b0],.b-dropdown-default-textbox--readonly>*[data-v-bf2d43b0]{background-color:var(--b-color-background-disabled);border-color:var(--b-color-outline-disabled);pointer-events:none}.b-dropdown-default-textbox--readonly .b-dropdown-default-textbox__chevron[data-v-bf2d43b0],.b-dropdown-default-textbox--readonly>* .b-dropdown-default-textbox__chevron[data-v-bf2d43b0]{color:var(--b-color-label-disabled)}.b-dropdown-default-textbox--readonly[data-v-bf2d43b0] .b-dropdown-base-textbox__additional-items,.b-dropdown-default-textbox--readonly>*[data-v-bf2d43b0] .b-dropdown-base-textbox__additional-items{background-color:var(--b-color-background-disabled)}.b-dropdown-default-textbox--error[data-v-bf2d43b0]{border:1.5px solid var(--b-color-outline-critical)}.b-dropdown-default-textbox--error:focus-within.b-dropdown-default-textbox[data-v-bf2d43b0],.b-dropdown-default-textbox--error:focus-visible.b-dropdown-default-textbox[data-v-bf2d43b0]{border-color:var(--b-color-outline-tertiary-active);outline:solid .5px var(--b-color-outline-tertiary-active)}
|