@eos-ui/vue 0.1.1 → 0.2.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/THIRD_PARTY.md +1 -1
- package/dist/component-names.js +1 -1
- package/dist/component-names.js.map +1 -1
- package/dist/components/Actions/EActions.js.map +1 -1
- package/dist/components/Actions/EActions.vue.d.ts +3 -1
- package/dist/components/Actions/EActions.vue_vue_type_script_setup_true_lang.js +12 -3
- package/dist/components/Actions/EActions.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/AppHeader/EAppHeader.js.map +1 -1
- package/dist/components/AppHeader/EAppHeader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/AppShell/EAppShell.js.map +1 -1
- package/dist/components/AppShell/EAppShell.vue.d.ts +2 -2
- package/dist/components/AppShell/EAppShell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Avatar/EAvatar.js.map +1 -1
- package/dist/components/Avatar/EAvatar.vue.d.ts +4 -4
- package/dist/components/Avatar/EAvatar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Breadcrumb/EBreadcrumb.js.map +1 -1
- package/dist/components/Breadcrumb/EBreadcrumb.vue.d.ts +2 -2
- package/dist/components/Breadcrumb/EBreadcrumb.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Button/EButton.js.map +1 -1
- package/dist/components/Button/EButton.vue.d.ts +5 -3
- package/dist/components/Button/EButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Calendar/ECalendar.js.map +1 -1
- package/dist/components/Calendar/ECalendar.vue.d.ts +12 -9
- package/dist/components/Calendar/ECalendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Checkbox/ECheckbox.js.map +1 -1
- package/dist/components/Checkbox/ECheckbox.vue.d.ts +6 -3
- package/dist/components/Checkbox/ECheckbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/CodeBlock/ECodeBlock.js.map +1 -1
- package/dist/components/CodeBlock/ECodeBlock.vue.d.ts +2 -2
- package/dist/components/CodeBlock/ECodeBlock.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/ColorField/EColorField.js.map +1 -1
- package/dist/components/ColorField/EColorField.vue.d.ts +5 -3
- package/dist/components/ColorField/EColorField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Combobox/ECombobox.js.map +1 -1
- package/dist/components/Combobox/ECombobox.vue.d.ts +7 -5
- package/dist/components/Combobox/ECombobox.vue_vue_type_script_setup_true_lang.js +3 -2
- package/dist/components/Combobox/ECombobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Combobox/EComboboxBase.js.map +1 -1
- package/dist/components/Combobox/EComboboxBase.vue.d.ts +6 -14
- package/dist/components/Combobox/EComboboxBase.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/Combobox/EComboboxBase.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Combobox/EComboboxOption.js.map +1 -1
- package/dist/components/Combobox/EComboboxOption.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/Combobox/EComboboxOption.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Combobox/{EHighlight.js → matchHighlight.js} +3 -3
- package/dist/components/Combobox/matchHighlight.js.map +1 -0
- package/dist/components/Combobox/types.d.ts +13 -8
- package/dist/components/CurrencyField/ECurrencyField.js.map +1 -1
- package/dist/components/CurrencyField/ECurrencyField.vue.d.ts +8 -6
- package/dist/components/CurrencyField/ECurrencyField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/DataGrid/EDataGrid.js.map +1 -1
- package/dist/components/DataGrid/EDataGrid.vue.d.ts +20 -15
- package/dist/components/DataGrid/EDataGrid.vue_vue_type_script_setup_true_lang.js +213 -213
- package/dist/components/DataGrid/EDataGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/DatePicker/EDatePicker.js.map +1 -1
- package/dist/components/DatePicker/EDatePicker.vue.d.ts +9 -6
- package/dist/components/DatePicker/EDatePicker.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/components/DatePicker/EDatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Definition/EDefinition.js +8 -0
- package/dist/components/Definition/EDefinition.js.map +1 -0
- package/dist/components/{Popover/EPopover.vue.d.ts → Definition/EDefinition.vue.d.ts} +2 -1
- package/dist/components/{Popover/EPopover.vue_vue_type_script_setup_true_lang.js → Definition/EDefinition.vue_vue_type_script_setup_true_lang.js} +4 -4
- package/dist/components/Definition/EDefinition.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/Definition/index.d.ts +1 -0
- package/dist/components/DescriptionList/EDescriptionList.js.map +1 -1
- package/dist/components/DescriptionList/EDescriptionList.vue.d.ts +32 -5
- package/dist/components/DescriptionList/EDescriptionList.vue_vue_type_script_setup_true_lang.js +70 -8
- package/dist/components/DescriptionList/EDescriptionList.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Dialog/DialogFrame.js.map +1 -1
- package/dist/components/Dialog/DialogFrame.vue.d.ts +1 -0
- package/dist/components/Dialog/DialogFrame.vue_vue_type_script_setup_true_lang.js +19 -18
- package/dist/components/Dialog/DialogFrame.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Dialog/EDialog.js.map +1 -1
- package/dist/components/Dialog/EDialog.vue.d.ts +4 -1
- package/dist/components/Dialog/EDialog.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/Dialog/EDialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Disclosure/EDisclosure.js.map +1 -1
- package/dist/components/Disclosure/EDisclosure.vue.d.ts +6 -9
- package/dist/components/Disclosure/EDisclosure.vue_vue_type_script_setup_true_lang.js +14 -19
- package/dist/components/Disclosure/EDisclosure.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Drawer/EDrawer.js.map +1 -1
- package/dist/components/Drawer/EDrawer.vue.d.ts +4 -1
- package/dist/components/Drawer/EDrawer.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/Drawer/EDrawer.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/EmptyState/EEmptyState.js.map +1 -1
- package/dist/components/EmptyState/EEmptyState.vue.d.ts +1 -1
- package/dist/components/EmptyState/EEmptyState.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/ExpandableRow/EExpandableRow.js +8 -0
- package/dist/components/ExpandableRow/EExpandableRow.js.map +1 -0
- package/dist/components/{ButtonGroup/EButtonGroup.vue.d.ts → ExpandableRow/EExpandableRow.vue.d.ts} +12 -4
- package/dist/components/ExpandableRow/EExpandableRow.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/components/ExpandableRow/EExpandableRow.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/ExpandableRow/index.d.ts +1 -0
- package/dist/components/Field/EField.js.map +1 -1
- package/dist/components/Field/EField.vue.d.ts +1 -1
- package/dist/components/Field/EField.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/Field/EField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Field/labelProps.d.ts +2 -2
- package/dist/components/Fieldset/EFieldset.js.map +1 -1
- package/dist/components/Fieldset/EFieldset.vue.d.ts +5 -3
- package/dist/components/Fieldset/EFieldset.vue_vue_type_script_setup_true_lang.js +54 -35
- package/dist/components/Fieldset/EFieldset.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Grid/EGrid.js.map +1 -1
- package/dist/components/Grid/EGrid.vue.d.ts +5 -2
- package/dist/components/Grid/EGrid.vue_vue_type_script_setup_true_lang.js +15 -11
- package/dist/components/Grid/EGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Heading/EHeading.js.map +1 -1
- package/dist/components/Heading/EHeading.vue.d.ts +1 -1
- package/dist/components/Heading/EHeading.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/components/Heading/EHeading.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Highlight/EHighlight.js.map +1 -1
- package/dist/components/Highlight/EHighlight.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/IconButton/EIconButton.js.map +1 -1
- package/dist/components/IconButton/EIconButton.vue.d.ts +1 -0
- package/dist/components/IconButton/EIconButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Inline/EInline.js.map +1 -1
- package/dist/components/Inline/EInline.vue.d.ts +3 -3
- package/dist/components/Inline/EInline.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Kbd/EKbd.js.map +1 -1
- package/dist/components/Kbd/EKbd.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Link/ELink.js.map +1 -1
- package/dist/components/Link/ELink.vue.d.ts +2 -2
- package/dist/components/Link/ELink.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Menu/EMenu.js.map +1 -1
- package/dist/components/Menu/EMenu.vue.d.ts +4 -3
- package/dist/components/Menu/EMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/Menu/EMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/NavList/ENavList.js.map +1 -1
- package/dist/components/NavList/ENavList.vue.d.ts +7 -9
- package/dist/components/NavList/ENavList.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/components/NavList/ENavList.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/{Tabs → NavList}/LinkNav.js +1 -1
- package/dist/components/NavList/LinkNav.js.map +1 -0
- package/dist/components/{Tabs → NavList}/LinkNav.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/NavList/LinkNav.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/Notice/ENotice.js.map +1 -1
- package/dist/components/Notice/ENotice.vue.d.ts +2 -2
- package/dist/components/Notice/ENotice.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/NumberField/ENumberField.js.map +1 -1
- package/dist/components/NumberField/ENumberField.vue.d.ts +5 -3
- package/dist/components/NumberField/ENumberField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/OtpField/EOtpField.js.map +1 -1
- package/dist/components/OtpField/EOtpField.vue.d.ts +10 -8
- package/dist/components/OtpField/EOtpField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/OtpField/EOtpField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/PageHeader/EPageHeader.js.map +1 -1
- package/dist/components/PageHeader/EPageHeader.vue.d.ts +1 -1
- package/dist/components/PageHeader/EPageHeader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Pagination/EPagination.js.map +1 -1
- package/dist/components/Pagination/EPagination.vue.d.ts +1 -0
- package/dist/components/Pagination/EPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/PasswordField/EPasswordField.js.map +1 -1
- package/dist/components/PasswordField/EPasswordField.vue.d.ts +14 -10
- package/dist/components/PasswordField/EPasswordField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/PhoneField/EPhoneField.js.map +1 -1
- package/dist/components/PhoneField/EPhoneField.vue.d.ts +6 -4
- package/dist/components/PhoneField/EPhoneField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Progress/EProgress.js.map +1 -1
- package/dist/components/Progress/EProgress.vue.d.ts +5 -5
- package/dist/components/Progress/EProgress.vue_vue_type_script_setup_true_lang.js +20 -14
- package/dist/components/Progress/EProgress.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/RadioGroup/ERadioGroup.js.map +1 -1
- package/dist/components/RadioGroup/ERadioGroup.vue.d.ts +8 -4
- package/dist/components/RadioGroup/ERadioGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/RadioGroup/ERadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/RangePicker/ERangePicker.js.map +1 -1
- package/dist/components/RangePicker/ERangePicker.vue.d.ts +12 -8
- package/dist/components/RangePicker/ERangePicker.vue_vue_type_script_setup_true_lang.js +65 -65
- package/dist/components/RangePicker/ERangePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/SearchBar/ESearchBar.js.map +1 -1
- package/dist/components/SearchBar/ESearchBar.vue.d.ts +8 -7
- package/dist/components/SearchBar/ESearchBar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/SearchBar/ESearchBar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/SearchResults/ESearchResults.js.map +1 -1
- package/dist/components/SearchResults/ESearchResults.vue.d.ts +3 -3
- package/dist/components/SearchResults/ESearchResults.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/SearchResults/ESearchResults.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Segmented/ESegmented.js.map +1 -1
- package/dist/components/Segmented/ESegmented.vue.d.ts +10 -6
- package/dist/components/Segmented/ESegmented.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Select/ESelect.js.map +1 -1
- package/dist/components/Select/ESelect.vue.d.ts +9 -6
- package/dist/components/Select/ESelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Select/ESelectControl.vue.d.ts +2 -2
- package/dist/components/Select/ESelectControl.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/components/Select/options.d.ts +1 -1
- package/dist/components/Select/options.js.map +1 -1
- package/dist/components/SignatureField/ESignatureField.js.map +1 -1
- package/dist/components/SignatureField/ESignatureField.vue.d.ts +14 -10
- package/dist/components/SignatureField/ESignatureField.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/SignatureField/ESignatureField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/SignaturePad/ESignaturePad.js.map +1 -1
- package/dist/components/SignaturePad/ESignaturePad.vue.d.ts +3 -1
- package/dist/components/SignaturePad/ESignaturePad.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Skeleton/ESkeleton.js.map +1 -1
- package/dist/components/Skeleton/ESkeleton.vue.d.ts +3 -3
- package/dist/components/Skeleton/ESkeleton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Stack/EStack.js.map +1 -1
- package/dist/components/Stack/EStack.vue.d.ts +2 -2
- package/dist/components/Stack/EStack.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Stamp/EStamp.js.map +1 -1
- package/dist/components/Stamp/EStamp.vue.d.ts +18 -12
- package/dist/components/Stamp/EStamp.vue_vue_type_script_setup_true_lang.js +27 -40
- package/dist/components/Stamp/EStamp.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Stepper/EStepper.js.map +1 -1
- package/dist/components/Stepper/EStepper.vue.d.ts +2 -2
- package/dist/components/Stepper/EStepper.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Surface/ESurface.js.map +1 -1
- package/dist/components/Surface/ESurface.vue.d.ts +5 -5
- package/dist/components/Surface/ESurface.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/Surface/ESurface.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Switch/ESwitch.js.map +1 -1
- package/dist/components/Switch/ESwitch.vue.d.ts +3 -1
- package/dist/components/Switch/ESwitch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Tabs/ETabs.js.map +1 -1
- package/dist/components/Tabs/ETabs.vue.d.ts +10 -32
- package/dist/components/Tabs/ETabs.vue_vue_type_script_setup_true_lang.js +21 -50
- package/dist/components/Tabs/ETabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Text/EText.js.map +1 -1
- package/dist/components/Text/EText.vue.d.ts +4 -3
- package/dist/components/Text/EText.vue_vue_type_script_setup_true_lang.js +7 -2
- package/dist/components/Text/EText.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/TextField/ETextField.js.map +1 -1
- package/dist/components/TextField/ETextField.vue.d.ts +8 -6
- package/dist/components/TextField/ETextField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Textarea/ETextarea.js.map +1 -1
- package/dist/components/Textarea/ETextarea.vue.d.ts +4 -2
- package/dist/components/Textarea/ETextarea.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Toast/EToast.js.map +1 -1
- package/dist/components/Toast/EToast.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/Toast/EToast.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/ToastProvider/EToastProvider.js.map +1 -1
- package/dist/components/ToastProvider/EToastProvider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Tooltip/ETooltip.js.map +1 -1
- package/dist/components/Tooltip/ETooltip.vue.d.ts +1 -0
- package/dist/components/Tooltip/ETooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Upload/EUpload.js.map +1 -1
- package/dist/components/Upload/EUpload.vue.d.ts +5 -3
- package/dist/components/Upload/EUpload.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/fonts.css +1 -1
- package/dist/index.d.ts +2 -25
- package/dist/index.js +71 -94
- package/dist/messages.d.ts +0 -13
- package/dist/messages.js +0 -13
- package/dist/messages.js.map +1 -1
- package/dist/style.css +2667 -3127
- package/package.json +4 -2
- package/dist/components/Accordion/EAccordion.js +0 -8
- package/dist/components/Accordion/EAccordion.js.map +0 -1
- package/dist/components/Accordion/EAccordion.vue.d.ts +0 -32
- package/dist/components/Accordion/EAccordion.vue_vue_type_script_setup_true_lang.js +0 -35
- package/dist/components/Accordion/EAccordion.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/Accordion/index.d.ts +0 -2
- package/dist/components/AddressField/EAddressField.js +0 -8
- package/dist/components/AddressField/EAddressField.js.map +0 -1
- package/dist/components/AddressField/EAddressField.vue.d.ts +0 -39
- package/dist/components/AddressField/EAddressField.vue_vue_type_script_setup_true_lang.js +0 -119
- package/dist/components/AddressField/EAddressField.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/AddressField/index.d.ts +0 -2
- package/dist/components/AddressField/usStates.d.ts +0 -5
- package/dist/components/AddressField/usStates.js +0 -211
- package/dist/components/AddressField/usStates.js.map +0 -1
- package/dist/components/Amount/EAmount.js +0 -8
- package/dist/components/Amount/EAmount.js.map +0 -1
- package/dist/components/Amount/EAmount.vue.d.ts +0 -21
- package/dist/components/Amount/EAmount.vue_vue_type_script_setup_true_lang.js +0 -38
- package/dist/components/Amount/EAmount.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/Amount/index.d.ts +0 -2
- package/dist/components/Autocomplete/EAutocomplete.js +0 -7
- package/dist/components/Autocomplete/EAutocomplete.js.map +0 -1
- package/dist/components/Autocomplete/EAutocomplete.vue.d.ts +0 -44
- package/dist/components/Autocomplete/EAutocomplete.vue_vue_type_script_setup_true_lang.js +0 -58
- package/dist/components/Autocomplete/EAutocomplete.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/Autocomplete/index.d.ts +0 -1
- package/dist/components/BackLink/EBackLink.js +0 -8
- package/dist/components/BackLink/EBackLink.js.map +0 -1
- package/dist/components/BackLink/EBackLink.vue.d.ts +0 -23
- package/dist/components/BackLink/EBackLink.vue_vue_type_script_setup_true_lang.js +0 -27
- package/dist/components/BackLink/EBackLink.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/BackLink/index.d.ts +0 -1
- package/dist/components/BookingCard/EBookingCard.js +0 -8
- package/dist/components/BookingCard/EBookingCard.js.map +0 -1
- package/dist/components/BookingCard/EBookingCard.vue.d.ts +0 -46
- package/dist/components/BookingCard/EBookingCard.vue_vue_type_script_setup_true_lang.js +0 -86
- package/dist/components/BookingCard/EBookingCard.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/BookingCard/index.d.ts +0 -2
- package/dist/components/ButtonGroup/EButtonGroup.js +0 -8
- package/dist/components/ButtonGroup/EButtonGroup.js.map +0 -1
- package/dist/components/ButtonGroup/EButtonGroup.vue_vue_type_script_setup_true_lang.js +0 -18
- package/dist/components/ButtonGroup/EButtonGroup.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/ButtonGroup/index.d.ts +0 -1
- package/dist/components/CardField/ECardField.js +0 -8
- package/dist/components/CardField/ECardField.js.map +0 -1
- package/dist/components/CardField/ECardField.vue.d.ts +0 -31
- package/dist/components/CardField/ECardField.vue_vue_type_script_setup_true_lang.js +0 -65
- package/dist/components/CardField/ECardField.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/CardField/index.d.ts +0 -1
- package/dist/components/Chip/EChip.js +0 -8
- package/dist/components/Chip/EChip.js.map +0 -1
- package/dist/components/Chip/EChip.vue.d.ts +0 -22
- package/dist/components/Chip/EChip.vue_vue_type_script_setup_true_lang.js +0 -18
- package/dist/components/Chip/EChip.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/Chip/index.d.ts +0 -2
- package/dist/components/Combobox/EHighlight.js.map +0 -1
- package/dist/components/DetailRow/EDetailRow.js +0 -8
- package/dist/components/DetailRow/EDetailRow.js.map +0 -1
- package/dist/components/DetailRow/EDetailRow.vue.d.ts +0 -30
- package/dist/components/DetailRow/EDetailRow.vue_vue_type_script_setup_true_lang.js +0 -53
- package/dist/components/DetailRow/EDetailRow.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/DetailRow/index.d.ts +0 -1
- package/dist/components/ErrorSummary/EErrorSummary.js +0 -8
- package/dist/components/ErrorSummary/EErrorSummary.js.map +0 -1
- package/dist/components/ErrorSummary/EErrorSummary.vue.d.ts +0 -30
- package/dist/components/ErrorSummary/EErrorSummary.vue_vue_type_script_setup_true_lang.js +0 -52
- package/dist/components/ErrorSummary/EErrorSummary.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/ErrorSummary/index.d.ts +0 -2
- package/dist/components/FormSection/EFormSection.js +0 -8
- package/dist/components/FormSection/EFormSection.js.map +0 -1
- package/dist/components/FormSection/EFormSection.vue.d.ts +0 -28
- package/dist/components/FormSection/EFormSection.vue_vue_type_script_setup_true_lang.js +0 -38
- package/dist/components/FormSection/EFormSection.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/FormSection/index.d.ts +0 -1
- package/dist/components/ItemList/EItemList.js +0 -8
- package/dist/components/ItemList/EItemList.js.map +0 -1
- package/dist/components/ItemList/EItemList.vue.d.ts +0 -13
- package/dist/components/ItemList/EItemList.vue_vue_type_script_setup_true_lang.js +0 -17
- package/dist/components/ItemList/EItemList.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/ItemList/context.d.ts +0 -3
- package/dist/components/ItemList/context.js +0 -6
- package/dist/components/ItemList/context.js.map +0 -1
- package/dist/components/ItemList/index.d.ts +0 -1
- package/dist/components/ItemRow/EItemRow.js +0 -8
- package/dist/components/ItemRow/EItemRow.js.map +0 -1
- package/dist/components/ItemRow/EItemRow.vue.d.ts +0 -29
- package/dist/components/ItemRow/EItemRow.vue_vue_type_script_setup_true_lang.js +0 -54
- package/dist/components/ItemRow/EItemRow.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/ItemRow/index.d.ts +0 -1
- package/dist/components/LinkCard/ELinkCard.js +0 -8
- package/dist/components/LinkCard/ELinkCard.js.map +0 -1
- package/dist/components/LinkCard/ELinkCard.vue.d.ts +0 -39
- package/dist/components/LinkCard/ELinkCard.vue_vue_type_script_setup_true_lang.js +0 -61
- package/dist/components/LinkCard/ELinkCard.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/LinkCard/index.d.ts +0 -1
- package/dist/components/LoadingBar/ELoadingBar.js +0 -8
- package/dist/components/LoadingBar/ELoadingBar.js.map +0 -1
- package/dist/components/LoadingBar/ELoadingBar.vue.d.ts +0 -7
- package/dist/components/LoadingBar/ELoadingBar.vue_vue_type_script_setup_true_lang.js +0 -21
- package/dist/components/LoadingBar/ELoadingBar.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/LoadingBar/index.d.ts +0 -1
- package/dist/components/MetaList/EMetaList.js +0 -8
- package/dist/components/MetaList/EMetaList.js.map +0 -1
- package/dist/components/MetaList/EMetaList.vue.d.ts +0 -15
- package/dist/components/MetaList/EMetaList.vue_vue_type_script_setup_true_lang.js +0 -19
- package/dist/components/MetaList/EMetaList.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/MetaList/index.d.ts +0 -2
- package/dist/components/MultiSelect/EMultiSelect.js +0 -7
- package/dist/components/MultiSelect/EMultiSelect.js.map +0 -1
- package/dist/components/MultiSelect/EMultiSelect.vue.d.ts +0 -44
- package/dist/components/MultiSelect/EMultiSelect.vue_vue_type_script_setup_true_lang.js +0 -58
- package/dist/components/MultiSelect/EMultiSelect.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/MultiSelect/index.d.ts +0 -1
- package/dist/components/Panel/EPanel.js +0 -8
- package/dist/components/Panel/EPanel.js.map +0 -1
- package/dist/components/Panel/EPanel.vue.d.ts +0 -25
- package/dist/components/Panel/EPanel.vue_vue_type_script_setup_true_lang.js +0 -38
- package/dist/components/Panel/EPanel.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/Panel/index.d.ts +0 -1
- package/dist/components/Popover/EPopover.js +0 -8
- package/dist/components/Popover/EPopover.js.map +0 -1
- package/dist/components/Popover/EPopover.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/Popover/index.d.ts +0 -1
- package/dist/components/SlotPicker/ESlotPicker.js +0 -8
- package/dist/components/SlotPicker/ESlotPicker.js.map +0 -1
- package/dist/components/SlotPicker/ESlotPicker.vue.d.ts +0 -55
- package/dist/components/SlotPicker/ESlotPicker.vue_vue_type_script_setup_true_lang.js +0 -82
- package/dist/components/SlotPicker/ESlotPicker.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/SlotPicker/index.d.ts +0 -2
- package/dist/components/StatementCard/EStatementCard.js +0 -8
- package/dist/components/StatementCard/EStatementCard.js.map +0 -1
- package/dist/components/StatementCard/EStatementCard.vue.d.ts +0 -20
- package/dist/components/StatementCard/EStatementCard.vue_vue_type_script_setup_true_lang.js +0 -96
- package/dist/components/StatementCard/EStatementCard.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/StatementCard/index.d.ts +0 -2
- package/dist/components/StatementCard/types.d.ts +0 -37
- package/dist/components/StatementRow/EStatementRow.js +0 -8
- package/dist/components/StatementRow/EStatementRow.js.map +0 -1
- package/dist/components/StatementRow/EStatementRow.vue.d.ts +0 -14
- package/dist/components/StatementRow/EStatementRow.vue_vue_type_script_setup_true_lang.js +0 -96
- package/dist/components/StatementRow/EStatementRow.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/StatementRow/index.d.ts +0 -1
- package/dist/components/Tabs/LinkNav.js.map +0 -1
- package/dist/components/Tabs/LinkNav.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/Timeline/ETimeline.js +0 -8
- package/dist/components/Timeline/ETimeline.js.map +0 -1
- package/dist/components/Timeline/ETimeline.vue.d.ts +0 -15
- package/dist/components/Timeline/ETimeline.vue_vue_type_script_setup_true_lang.js +0 -43
- package/dist/components/Timeline/ETimeline.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/Timeline/index.d.ts +0 -2
- package/dist/components/Toggle/EToggle.js +0 -8
- package/dist/components/Toggle/EToggle.js.map +0 -1
- package/dist/components/Toggle/EToggle.vue.d.ts +0 -27
- package/dist/components/Toggle/EToggle.vue_vue_type_script_setup_true_lang.js +0 -40
- package/dist/components/Toggle/EToggle.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/components/Toggle/index.d.ts +0 -1
- /package/dist/components/Combobox/{EHighlight.d.ts → matchHighlight.d.ts} +0 -0
- /package/dist/components/{Tabs → NavList}/LinkNav.vue.d.ts +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { computed as e, createElementBlock as t, defineComponent as n, normalizeClass as r, openBlock as i, renderSlot as a } from "vue";
|
|
3
|
-
//#region src/components/Chip/EChip.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var o = /*@__PURE__*/ n({
|
|
5
|
-
__name: "EChip",
|
|
6
|
-
props: {
|
|
7
|
-
tone: {},
|
|
8
|
-
variant: { default: "solid" }
|
|
9
|
-
},
|
|
10
|
-
setup(n) {
|
|
11
|
-
let o = n, s = e(() => o.tone && o.tone !== "ink" && o.tone !== "neutral" ? `e-chip--${o.tone}` : null);
|
|
12
|
-
return (e, o) => (i(), t("span", { class: r(["e-chip", [s.value, n.variant === "subtle" && "e-chip--subtle"]]) }, [a(e.$slots, "default")], 2));
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
//#endregion
|
|
16
|
-
export { o as default };
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=EChip.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EChip.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_normalizeClass","_renderSlot","EChip_vue_vue_type_script_setup_true_lang_default","props","__props","toneClass","computed","openBlock","createElementBlock","normalizeClass","renderSlot","_ctx"],"sources":["../../../src/components/Chip/EChip.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport \"../../styles/base.css\";\n\nexport type ChipTone = \"neutral\" | \"ink\" | \"success\" | \"info\" | \"warning\" | \"danger\";\n\nconst props = withDefaults(defineProps<{\n /** `success` (paid, confirmed, signed), `info` (due, scheduled, pending), `warning` (needs attention), `danger` (overdue, cancelled, failed). None is neutral. */\n tone?: ChipTone;\n /** `solid` is a filled badge with light text (the default); `subtle` is a soft tint with a tone-coloured outline and text. */\n variant?: \"solid\" | \"subtle\";\n}>(), { variant: \"solid\" });\n\ndefineSlots<{\n /** The word. Write sentence case; the chip sets it in capitals. */\n default(): unknown;\n}>();\n\nconst toneClass = computed(() =>\n props.tone && props.tone !== \"ink\" && props.tone !== \"neutral\" ? `e-chip--${props.tone}` : null,\n);\n</script>\n\n<template>\n <span class=\"e-chip\" :class=\"[toneClass, variant === 'subtle' && 'e-chip--subtle']\"><slot /></span>\n</template>\n\n<style>\n@layer e.primitives {\n .e-chip {\n --e-chip-text: var(--e-ink);\n --e-chip-soft: var(--e-surface-tint);\n --e-chip-on: var(--e-surface);\n\n display: inline-flex;\n align-items: center;\n gap: var(--e-space-1);\n height: var(--e-chip-height);\n padding: 0 var(--e-space-3);\n border-radius: var(--e-radius-pill);\n background: var(--e-chip-text);\n color: var(--e-chip-on);\n box-shadow: inset 0 0 0 var(--e-stroke-card) var(--e-chip-text);\n font: 600 var(--e-text-xs) / 1 var(--e-font-mono);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n white-space: nowrap;\n /* stylelint-disable declaration-block-no-redundant-longhand-properties -- two longhands */\n align-self: flex-start;\n justify-self: start;\n /* stylelint-enable declaration-block-no-redundant-longhand-properties */\n }\n\n .e-chip--success {\n --e-chip-text: var(--e-secondary);\n --e-chip-soft: var(--e-secondary-soft);\n --e-chip-on: var(--e-on-secondary);\n }\n\n .e-chip--info {\n --e-chip-text: var(--e-primary);\n --e-chip-soft: var(--e-surface-tint);\n --e-chip-on: var(--e-on-primary);\n }\n\n .e-chip--danger {\n --e-chip-text: var(--e-danger);\n --e-chip-soft: var(--e-danger-soft);\n --e-chip-on: var(--e-on-danger);\n }\n\n .e-chip--warning {\n --e-chip-text: var(--e-warning-strong);\n --e-chip-soft: var(--e-warning-soft);\n }\n\n .e-chip--subtle {\n background: var(--e-chip-soft);\n color: var(--e-chip-text);\n }\n\n @media (forced-colors: active) {\n .e-chip {\n border: 1px solid CanvasText;\n }\n }\n\n @media print {\n .e-chip {\n border: 1px solid #000;\n background: none;\n color: #000;\n }\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;EAMA,IAAMK,IAAQC,GAYRC,IAAYC,QAChBH,EAAM,QAAQA,EAAM,SAAS,SAASA,EAAM,SAAS,YAAY,WAAWA,EAAM,SAAS,IAC7F;E,kBAIEL,EAAA,GAAAC,EAAmG,QAAA,EAA7F,OAAKC,EAAA,CAAC,UAAQ,CAAUK,EAAA,OAAWD,EAAA,YAAO,YAAA,gBAAA,CAAA,CAAA,E,IAAoCH,EAAQU,EAAA,QAAA,SAAA,C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EHighlight.js","names":["EHighlight_default","defineComponent","i","props","h"],"sources":["../../../src/components/Combobox/EHighlight.ts"],"sourcesContent":["import { defineComponent, h } from \"vue\";\n\nexport default defineComponent({\n name: \"EHighlight\",\n props: {\n text: { type: String, required: true },\n query: { type: String, required: true },\n },\n setup(props) {\n return () => {\n const i = props.query ? props.text.toLowerCase().indexOf(props.query) : -1;\n if (i < 0) return props.text;\n return [\n props.text.slice(0, i),\n h(\"mark\", props.text.slice(i, i + props.query.length)),\n props.text.slice(i + props.query.length),\n ];\n };\n },\n});\n"],"mappings":";;AAEA,IAAAA,IAAeC,EAAgB;CAC7B,MAAM;CACN,OAAO;EACL,MAAM;GAAE,MAAM;GAAQ,UAAU;EAAK;EACrC,OAAO;GAAE,MAAM;GAAQ,UAAU;EAAK;CACxC;CACA,MAAM,GAAO;EACX,aAAa;GACX,IAAMC,IAAIC,EAAM,QAAQA,EAAM,KAAK,YAAY,CAAC,CAAC,QAAQA,EAAM,KAAK,IAAI;GAExE,OADID,IAAI,IAAUC,EAAM,OACjB;IACLA,EAAM,KAAK,MAAM,GAAGD,CAAC;IACrBE,EAAE,QAAQD,EAAM,KAAK,MAAMD,GAAGA,IAAIC,EAAM,MAAM,MAAM,CAAC;IACrDA,EAAM,KAAK,MAAMD,IAAIC,EAAM,MAAM,MAAM;GACzC;EACF;CACF;AACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EDetailRow.js","names":["_sfc_main","EDetailRow_vue_vue_type_script_setup_true_lang_default","EDetailRow_default"],"sources":["../../../src/components/DetailRow/EDetailRow.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { getCurrentInstance } from \"vue\";\nimport EButton from \"../Button/EButton.vue\";\nimport EChip from \"../Chip/EChip.vue\";\nimport type { ChipTone } from \"../Chip/EChip.vue\";\nimport { useMessages } from \"../../config.js\";\nimport \"../../styles/base.css\";\n\nconst props = withDefaults(\n defineProps<{\n /** What the detail is, such as \"Email\". Names the Edit button for screen readers. */\n label: string;\n /** A word in a chip after the value, such as \"Verified\" or \"Needs update\". */\n status?: string;\n /** The chip's tone. */\n tone?: ChipTone;\n /** Forces the Edit button on or off. Left out, it shows when an `@edit` listener is attached. */\n editable?: boolean;\n }>(),\n { editable: undefined },\n);\n\nconst emit = defineEmits<{\n /** The Edit button was pressed. The button appears only when something listens. */\n edit: [];\n}>();\n\ndefineSlots<{\n /** The value. */\n default(): unknown;\n}>();\n\nconst t = useMessages();\nconst instance = getCurrentInstance();\nconst showEdit = () => props.editable ?? Boolean(instance?.vnode.props?.onEdit);\n\nfunction say(key: string, fallback: string, vars?: Record<string, string>) {\n const text = t(key, vars);\n return text === key ? fallback.replace(/\\{(\\w+)\\}/g, (m, k: string) => vars?.[k] ?? m) : text;\n}\n</script>\n\n<template>\n <div class=\"e-detail\">\n <div class=\"e-detail-main\">\n <p class=\"e-kicker e-detail-label\">{{ label }}</p>\n <p class=\"e-detail-value\"><slot /></p>\n </div>\n <EChip v-if=\"status\" :tone=\"tone\">{{ status }}</EChip>\n <span v-else class=\"e-detail-gap\" aria-hidden=\"true\" />\n <EButton\n v-if=\"showEdit()\"\n variant=\"quiet\"\n :aria-label=\"say('editItem', 'Edit {label}', { label })\"\n @click=\"emit('edit')\"\n >\n {{ say(\"edit\", \"Edit\") }}\n </EButton>\n </div>\n</template>\n\n<style>\n@layer e.account {\n .e-detail {\n display: grid;\n grid-template-columns: minmax(0, 1fr) 8.75rem auto;\n align-items: center;\n gap: var(--e-space-1) var(--e-space-3);\n padding: var(--e-space-3) 0;\n border-top: var(--e-stroke-hair) solid var(--e-border);\n }\n\n .e-detail-main {\n display: grid;\n gap: var(--e-space-1);\n min-width: 0;\n }\n\n .e-detail-label {\n margin: 0;\n }\n\n .e-detail-value {\n margin: 0;\n font: 400 var(--e-text-md) / 1.4 var(--e-font-sans);\n overflow-wrap: anywhere;\n }\n\n .e-detail .e-chip {\n /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties -- two longhands */\n align-self: center;\n justify-self: end;\n }\n\n .e-detail-gap {\n display: block;\n }\n\n .e-detail:first-child {\n border-top: 0;\n }\n\n @media (max-width: 32rem) {\n .e-detail {\n grid-template-columns: auto minmax(0, 1fr);\n }\n\n .e-detail-main {\n grid-column: 1 / -1;\n }\n\n .e-detail .e-chip {\n justify-self: start;\n }\n\n .e-detail-gap {\n display: none;\n }\n\n .e-detail .e-btn {\n grid-column: 2;\n justify-self: end;\n }\n }\n}\n</style>\n"],"mappings":""}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ChipTone } from '../Chip/EChip.vue.js';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
/** What the detail is, such as "Email". Names the Edit button for screen readers. */
|
|
4
|
-
label: string;
|
|
5
|
-
/** A word in a chip after the value, such as "Verified" or "Needs update". */
|
|
6
|
-
status?: string;
|
|
7
|
-
/** The chip's tone. */
|
|
8
|
-
tone?: ChipTone;
|
|
9
|
-
/** Forces the Edit button on or off. Left out, it shows when an `@edit` listener is attached. */
|
|
10
|
-
editable?: boolean;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_Slots = {
|
|
13
|
-
/** The value. */
|
|
14
|
-
default(): unknown;
|
|
15
|
-
};
|
|
16
|
-
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
-
edit: () => any;
|
|
18
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
onEdit?: (() => any) | undefined;
|
|
20
|
-
}>, {
|
|
21
|
-
editable: boolean;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
-
declare const _default: typeof __VLS_export;
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
-
new (): {
|
|
28
|
-
$slots: S;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { useMessages as e } from "../../config.js";
|
|
3
|
-
import t from "../Button/EButton.js";
|
|
4
|
-
import n from "../Chip/EChip.js";
|
|
5
|
-
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, getCurrentInstance as l, openBlock as u, renderSlot as d, toDisplayString as f, withCtx as p } from "vue";
|
|
6
|
-
//#region src/components/DetailRow/EDetailRow.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var m = { class: "e-detail" }, h = { class: "e-detail-main" }, g = { class: "e-kicker e-detail-label" }, _ = { class: "e-detail-value" }, v = {
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "e-detail-gap",
|
|
10
|
-
"aria-hidden": "true"
|
|
11
|
-
}, y = /*@__PURE__*/ c({
|
|
12
|
-
__name: "EDetailRow",
|
|
13
|
-
props: {
|
|
14
|
-
label: {},
|
|
15
|
-
status: {},
|
|
16
|
-
tone: {},
|
|
17
|
-
editable: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: void 0
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
emits: ["edit"],
|
|
23
|
-
setup(c, { emit: y }) {
|
|
24
|
-
let b = c, x = y, S = e(), C = l(), w = () => b.editable ?? !!C?.vnode.props?.onEdit;
|
|
25
|
-
function T(e, t, n) {
|
|
26
|
-
let r = S(e, n);
|
|
27
|
-
return r === e ? t.replace(/\{(\w+)\}/g, (e, t) => n?.[t] ?? e) : r;
|
|
28
|
-
}
|
|
29
|
-
return (e, l) => (u(), a("div", m, [
|
|
30
|
-
o("div", h, [o("p", g, f(c.label), 1), o("p", _, [d(e.$slots, "default")])]),
|
|
31
|
-
c.status ? (u(), r(n, {
|
|
32
|
-
key: 0,
|
|
33
|
-
tone: c.tone
|
|
34
|
-
}, {
|
|
35
|
-
default: p(() => [s(f(c.status), 1)]),
|
|
36
|
-
_: 1
|
|
37
|
-
}, 8, ["tone"])) : (u(), a("span", v)),
|
|
38
|
-
w() ? (u(), r(t, {
|
|
39
|
-
key: 2,
|
|
40
|
-
variant: "quiet",
|
|
41
|
-
"aria-label": T("editItem", "Edit {label}", { label: c.label }),
|
|
42
|
-
onClick: l[0] ||= (e) => x("edit")
|
|
43
|
-
}, {
|
|
44
|
-
default: p(() => [s(f(T("edit", "Edit")), 1)]),
|
|
45
|
-
_: 1
|
|
46
|
-
}, 8, ["aria-label"])) : i("", !0)
|
|
47
|
-
]));
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
//#endregion
|
|
51
|
-
export { y as default };
|
|
52
|
-
|
|
53
|
-
//# sourceMappingURL=EDetailRow.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EDetailRow.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","_renderSlot","_createBlock","EChip","_withCtx","_createTextVNode","EButton","_createCommentVNode","EButton_default","EChip_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","EDetailRow_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","t","useMessages","instance","getCurrentInstance","showEdit","say","text","key","vars","fallback","k","m","openBlock","createElementBlock","createElementVNode","toDisplayString","renderSlot","_ctx","createBlock","withCtx","createTextVNode","_cache","createCommentVNode"],"sources":["../../../src/components/DetailRow/EDetailRow.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { getCurrentInstance } from \"vue\";\nimport EButton from \"../Button/EButton.vue\";\nimport EChip from \"../Chip/EChip.vue\";\nimport type { ChipTone } from \"../Chip/EChip.vue\";\nimport { useMessages } from \"../../config.js\";\nimport \"../../styles/base.css\";\n\nconst props = withDefaults(\n defineProps<{\n /** What the detail is, such as \"Email\". Names the Edit button for screen readers. */\n label: string;\n /** A word in a chip after the value, such as \"Verified\" or \"Needs update\". */\n status?: string;\n /** The chip's tone. */\n tone?: ChipTone;\n /** Forces the Edit button on or off. Left out, it shows when an `@edit` listener is attached. */\n editable?: boolean;\n }>(),\n { editable: undefined },\n);\n\nconst emit = defineEmits<{\n /** The Edit button was pressed. The button appears only when something listens. */\n edit: [];\n}>();\n\ndefineSlots<{\n /** The value. */\n default(): unknown;\n}>();\n\nconst t = useMessages();\nconst instance = getCurrentInstance();\nconst showEdit = () => props.editable ?? Boolean(instance?.vnode.props?.onEdit);\n\nfunction say(key: string, fallback: string, vars?: Record<string, string>) {\n const text = t(key, vars);\n return text === key ? fallback.replace(/\\{(\\w+)\\}/g, (m, k: string) => vars?.[k] ?? m) : text;\n}\n</script>\n\n<template>\n <div class=\"e-detail\">\n <div class=\"e-detail-main\">\n <p class=\"e-kicker e-detail-label\">{{ label }}</p>\n <p class=\"e-detail-value\"><slot /></p>\n </div>\n <EChip v-if=\"status\" :tone=\"tone\">{{ status }}</EChip>\n <span v-else class=\"e-detail-gap\" aria-hidden=\"true\" />\n <EButton\n v-if=\"showEdit()\"\n variant=\"quiet\"\n :aria-label=\"say('editItem', 'Edit {label}', { label })\"\n @click=\"emit('edit')\"\n >\n {{ say(\"edit\", \"Edit\") }}\n </EButton>\n </div>\n</template>\n\n<style>\n@layer e.account {\n .e-detail {\n display: grid;\n grid-template-columns: minmax(0, 1fr) 8.75rem auto;\n align-items: center;\n gap: var(--e-space-1) var(--e-space-3);\n padding: var(--e-space-3) 0;\n border-top: var(--e-stroke-hair) solid var(--e-border);\n }\n\n .e-detail-main {\n display: grid;\n gap: var(--e-space-1);\n min-width: 0;\n }\n\n .e-detail-label {\n margin: 0;\n }\n\n .e-detail-value {\n margin: 0;\n font: 400 var(--e-text-md) / 1.4 var(--e-font-sans);\n overflow-wrap: anywhere;\n }\n\n .e-detail .e-chip {\n /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties -- two longhands */\n align-self: center;\n justify-self: end;\n }\n\n .e-detail-gap {\n display: block;\n }\n\n .e-detail:first-child {\n border-top: 0;\n }\n\n @media (max-width: 32rem) {\n .e-detail {\n grid-template-columns: auto minmax(0, 1fr);\n }\n\n .e-detail-main {\n grid-column: 1 / -1;\n }\n\n .e-detail .e-chip {\n justify-self: start;\n }\n\n .e-detail-gap {\n display: none;\n }\n\n .e-detail .e-btn {\n grid-column: 2;\n justify-self: end;\n }\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;EAQA,IAAMoB,IAAQC,GAcRC,IAAOH,GAUPI,IAAIC,EAAY,GAChBC,IAAWC,EAAmB,GAC9BC,UAAiBP,EAAM,YAAY,EAAQK,GAAU,MAAM,OAAO;EAExE,SAASG,EAAI,GAAa,GAAkB,GAA+B;GACzE,IAAMC,IAAON,EAAEO,GAAKC,CAAI;GACxB,OAAOF,MAASC,IAAME,EAAS,QAAQ,eAAe,GAAG,MAAcD,IAAOE,MAAMC,CAAC,IAAIL;EAC3F;E,kBAIE7B,EAAA,GAAAC,EAeM,OAfNY,GAeM;GAdJX,EAGM,OAHNY,GAGM,CAFJZ,EAAkD,KAAlDa,GAAkDZ,EAAZkB,EAAA,KAAK,GAAA,CAAA,GAC3CnB,EAAsC,KAAtCc,GAAsC,CAAZZ,EAAQoC,EAAA,QAAA,SAAA,C;GAEvBnB,EAAA,UAAbrB,EAAA,GAAAK,EAAsDC,GAAA;;IAAhC,MAAMe,EAAA;;IAAM,SAAAd,QAAY,CAATC,EAAAL,EAAAkB,EAAA,MAAM,GAAA,CAAA,C;;G,oBAC3CrB,EAAA,GAAAC,EAAuD,QAAvDgB,CAAuD;GAE/CU,EAAQ,KADhB3B,EAAA,GAAAK,EAOUI,GAAA;;IALR,SAAQ;IACP,cAAYmB,EAAG,YAAA,gBAAA,EAAA,OAA+BP,EAAA,MAAK,CAAA;IACnD,SAAK,AAAAuB,EAAA,QAAA,MAAEtB,EAAI,MAAA;;IAEZ,SAAAf,QAAyB,CAAtBC,EAAAL,EAAAyB,EAAG,QAAA,MAAA,CAAA,GAAA,CAAA,C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as EDetailRow } from './EDetailRow.vue.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EErrorSummary.js","names":["_sfc_main","EErrorSummary_vue_vue_type_script_setup_true_lang_default","EErrorSummary_default"],"sources":["../../../src/components/ErrorSummary/EErrorSummary.vue"],"sourcesContent":["<script lang=\"ts\">\nexport interface ErrorSummaryItem {\n /** The field's name, shown first in medium weight (\"Email: Enter an email address\"). Leave it out when the message already names the field. */\n field?: string;\n /** What is wrong and how to fix it, written the same way as the field's own error. */\n message: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { nextTick, onMounted, ref, watch } from \"vue\";\nimport ENotice from \"../Notice/ENotice.vue\";\nimport { useMessages } from \"../../config.js\";\nimport { useUid } from \"../../composables/useUid.js\";\nimport \"../../styles/base.css\";\n\nconst props = withDefaults(\n defineProps<{\n /** What went wrong. The summary shows nothing while the list is empty. */\n errors: ErrorSummaryItem[];\n /** The heading. Defaults to \"There is a problem\". */\n title?: string;\n /** The level of the heading element, 1 to 6. */\n headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;\n /** Moves focus to the summary when errors appear, so keyboard and screen reader users land on it. */\n autoFocus?: boolean;\n }>(),\n { headingLevel: 2, autoFocus: true },\n);\n\nconst t = useMessages();\nconst titleId = useUid();\nconst root = ref<HTMLElement>();\n\nfunction focusSummary() {\n if (!props.errors.length || !props.autoFocus || !root.value) return;\n root.value.focus();\n root.value.scrollIntoView?.({ block: \"nearest\" });\n}\n\nonMounted(() => nextTick(focusSummary));\nwatch(\n () => props.errors.length,\n async () => {\n await nextTick();\n focusSummary();\n },\n);\n</script>\n\n<template>\n <div v-if=\"errors.length\" ref=\"root\" class=\"e-errsum\" role=\"alert\" tabindex=\"-1\" :aria-labelledby=\"titleId\">\n <ENotice\n tone=\"danger\"\n :role=\"false\"\n :heading-level=\"headingLevel\"\n :title-id=\"titleId\"\n :title=\"title ?? t('errorSummary')\"\n >\n <ul class=\"e-errsum-list\">\n <li v-for=\"(error, i) in errors\" :key=\"`${i}-${error.message}`\">\n <strong v-if=\"error.field\">{{ error.field }}</strong\n >{{ error.field ? \": \" : \"\" }}{{ error.message }}\n </li>\n </ul>\n </ENotice>\n </div>\n</template>\n\n<style>\n@layer e.containers {\n .e-errsum {\n border-radius: var(--e-radius-md);\n }\n\n .e-errsum:focus-visible {\n outline: var(--e-stroke-focus) solid var(--e-focus-ring);\n outline-offset: var(--e-focus-gap);\n }\n\n .e-errsum-list {\n display: grid;\n gap: var(--e-space-1);\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n .e-errsum-list li {\n position: relative;\n padding-inline-start: var(--e-space-4);\n }\n\n .e-errsum-list li::before {\n content: \"\";\n position: absolute;\n inset-inline-start: 0;\n top: 0.5em;\n width: 7px;\n height: 7px;\n border-radius: calc(var(--e-radius-sm) / 2);\n background: var(--e-danger);\n }\n}\n</style>\n"],"mappings":""}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface ErrorSummaryItem {
|
|
2
|
-
/** The field's name, shown first in medium weight ("Email: Enter an email address"). Leave it out when the message already names the field. */
|
|
3
|
-
field?: string;
|
|
4
|
-
/** What is wrong and how to fix it, written the same way as the field's own error. */
|
|
5
|
-
message: string;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: typeof __VLS_export;
|
|
8
|
-
export default _default;
|
|
9
|
-
declare const __VLS_export: import('vue').DefineComponent<{
|
|
10
|
-
/** What went wrong. The summary shows nothing while the list is empty. */
|
|
11
|
-
errors: ErrorSummaryItem[];
|
|
12
|
-
/** The heading. Defaults to "There is a problem". */
|
|
13
|
-
title?: string;
|
|
14
|
-
/** The level of the heading element, 1 to 6. */
|
|
15
|
-
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
16
|
-
/** Moves focus to the summary when errors appear, so keyboard and screen reader users land on it. */
|
|
17
|
-
autoFocus?: boolean;
|
|
18
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
19
|
-
/** What went wrong. The summary shows nothing while the list is empty. */
|
|
20
|
-
errors: ErrorSummaryItem[];
|
|
21
|
-
/** The heading. Defaults to "There is a problem". */
|
|
22
|
-
title?: string;
|
|
23
|
-
/** The level of the heading element, 1 to 6. */
|
|
24
|
-
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
25
|
-
/** Moves focus to the summary when errors appear, so keyboard and screen reader users land on it. */
|
|
26
|
-
autoFocus?: boolean;
|
|
27
|
-
}> & Readonly<{}>, {
|
|
28
|
-
autoFocus: boolean;
|
|
29
|
-
headingLevel: 1 | 2 | 3 | 4 | 5 | 6;
|
|
30
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { useMessages as e } from "../../config.js";
|
|
3
|
-
import { useUid as t } from "../../composables/useUid.js";
|
|
4
|
-
import n from "../Notice/ENotice.js";
|
|
5
|
-
import { Fragment as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, nextTick as u, onMounted as d, openBlock as f, ref as p, renderList as m, toDisplayString as h, unref as g, watch as _, withCtx as v } from "vue";
|
|
6
|
-
//#region src/components/ErrorSummary/EErrorSummary.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var y = ["aria-labelledby"], b = { class: "e-errsum-list" }, x = { key: 0 }, S = /*@__PURE__*/ l({
|
|
8
|
-
__name: "EErrorSummary",
|
|
9
|
-
props: {
|
|
10
|
-
errors: {},
|
|
11
|
-
title: {},
|
|
12
|
-
headingLevel: { default: 2 },
|
|
13
|
-
autoFocus: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: !0
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(l) {
|
|
19
|
-
let S = l, C = e(), w = t(), T = p();
|
|
20
|
-
function E() {
|
|
21
|
-
S.errors.length && S.autoFocus && T.value && (T.value.focus(), T.value.scrollIntoView?.({ block: "nearest" }));
|
|
22
|
-
}
|
|
23
|
-
return d(() => u(E)), _(() => S.errors.length, async () => {
|
|
24
|
-
await u(), E();
|
|
25
|
-
}), (e, t) => l.errors.length ? (f(), a("div", {
|
|
26
|
-
key: 0,
|
|
27
|
-
ref_key: "root",
|
|
28
|
-
ref: T,
|
|
29
|
-
class: "e-errsum",
|
|
30
|
-
role: "alert",
|
|
31
|
-
tabindex: "-1",
|
|
32
|
-
"aria-labelledby": g(w)
|
|
33
|
-
}, [c(n, {
|
|
34
|
-
tone: "danger",
|
|
35
|
-
role: !1,
|
|
36
|
-
"heading-level": l.headingLevel,
|
|
37
|
-
"title-id": g(w),
|
|
38
|
-
title: l.title ?? g(C)("errorSummary")
|
|
39
|
-
}, {
|
|
40
|
-
default: v(() => [o("ul", b, [(f(!0), a(r, null, m(l.errors, (e, t) => (f(), a("li", { key: `${t}-${e.message}` }, [e.field ? (f(), a("strong", x, h(e.field), 1)) : i("", !0), s(h(e.field ? ": " : "") + h(e.message), 1)]))), 128))])]),
|
|
41
|
-
_: 1
|
|
42
|
-
}, 8, [
|
|
43
|
-
"heading-level",
|
|
44
|
-
"title-id",
|
|
45
|
-
"title"
|
|
46
|
-
])], 8, y)) : i("", !0);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
//#endregion
|
|
50
|
-
export { S as default };
|
|
51
|
-
|
|
52
|
-
//# sourceMappingURL=EErrorSummary.vue_vue_type_script_setup_true_lang.js.map
|
package/dist/components/ErrorSummary/EErrorSummary.vue_vue_type_script_setup_true_lang.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EErrorSummary.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_unref","_createVNode","ENotice","_withCtx","_createElementVNode","_Fragment","_renderList","_toDisplayString","_createCommentVNode","_createTextVNode","ENotice_default","_hoisted_1","_hoisted_2","_hoisted_3","EErrorSummary_vue_vue_type_script_setup_true_lang_default","props","__props","t","useMessages","titleId","useUid","root","ref","focusSummary","onMounted","nextTick","watch","openBlock","createElementBlock","unref","createVNode","withCtx","createElementVNode","Fragment","renderList","i","error","toDisplayString","createCommentVNode","createTextVNode"],"sources":["../../../src/components/ErrorSummary/EErrorSummary.vue"],"sourcesContent":["<script lang=\"ts\">\nexport interface ErrorSummaryItem {\n /** The field's name, shown first in medium weight (\"Email: Enter an email address\"). Leave it out when the message already names the field. */\n field?: string;\n /** What is wrong and how to fix it, written the same way as the field's own error. */\n message: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { nextTick, onMounted, ref, watch } from \"vue\";\nimport ENotice from \"../Notice/ENotice.vue\";\nimport { useMessages } from \"../../config.js\";\nimport { useUid } from \"../../composables/useUid.js\";\nimport \"../../styles/base.css\";\n\nconst props = withDefaults(\n defineProps<{\n /** What went wrong. The summary shows nothing while the list is empty. */\n errors: ErrorSummaryItem[];\n /** The heading. Defaults to \"There is a problem\". */\n title?: string;\n /** The level of the heading element, 1 to 6. */\n headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;\n /** Moves focus to the summary when errors appear, so keyboard and screen reader users land on it. */\n autoFocus?: boolean;\n }>(),\n { headingLevel: 2, autoFocus: true },\n);\n\nconst t = useMessages();\nconst titleId = useUid();\nconst root = ref<HTMLElement>();\n\nfunction focusSummary() {\n if (!props.errors.length || !props.autoFocus || !root.value) return;\n root.value.focus();\n root.value.scrollIntoView?.({ block: \"nearest\" });\n}\n\nonMounted(() => nextTick(focusSummary));\nwatch(\n () => props.errors.length,\n async () => {\n await nextTick();\n focusSummary();\n },\n);\n</script>\n\n<template>\n <div v-if=\"errors.length\" ref=\"root\" class=\"e-errsum\" role=\"alert\" tabindex=\"-1\" :aria-labelledby=\"titleId\">\n <ENotice\n tone=\"danger\"\n :role=\"false\"\n :heading-level=\"headingLevel\"\n :title-id=\"titleId\"\n :title=\"title ?? t('errorSummary')\"\n >\n <ul class=\"e-errsum-list\">\n <li v-for=\"(error, i) in errors\" :key=\"`${i}-${error.message}`\">\n <strong v-if=\"error.field\">{{ error.field }}</strong\n >{{ error.field ? \": \" : \"\" }}{{ error.message }}\n </li>\n </ul>\n </ENotice>\n </div>\n</template>\n\n<style>\n@layer e.containers {\n .e-errsum {\n border-radius: var(--e-radius-md);\n }\n\n .e-errsum:focus-visible {\n outline: var(--e-stroke-focus) solid var(--e-focus-ring);\n outline-offset: var(--e-focus-gap);\n }\n\n .e-errsum-list {\n display: grid;\n gap: var(--e-space-1);\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n .e-errsum-list li {\n position: relative;\n padding-inline-start: var(--e-space-4);\n }\n\n .e-errsum-list li::before {\n content: \"\";\n position: absolute;\n inset-inline-start: 0;\n top: 0.5em;\n width: 7px;\n height: 7px;\n border-radius: calc(var(--e-radius-sm) / 2);\n background: var(--e-danger);\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAgBA,IAAMiB,IAAQC,GAcRC,IAAIC,EAAY,GAChBC,IAAUC,EAAO,GACjBC,IAAOC,EAAiB;EAE9B,SAASC,IAAe;GACtB,AAAKR,EAAM,OAAO,UAAWA,EAAM,aAAcM,EAAK,UACtDA,EAAK,MAAM,MAAM,GACjBA,EAAK,MAAM,iBAAiB,EAAE,OAAO,UAAU,CAAC;EAClD;E,OAEAG,QAAgBC,EAASF,CAAY,CAAC,GACtCG,QACQX,EAAM,OAAO,QACnB,YAAY;GAEV,AADA,MAAMU,EAAS,GACfF,EAAa;EACf,CACF,I,SAIaP,EAAA,OAAO,UAAlBlB,EAAA,GAAAC,EAeM,OAAA;;GAfwB,SAAA;GAAJ,KAAIsB;GAAO,OAAM;GAAW,MAAK;GAAQ,UAAS;GAAM,mBAAiBrB,EAAAmB,CAAA;E,IACjGlB,EAaUC,GAAA;GAZR,MAAK;GACJ,MAAM;GACN,iBAAec,EAAA;GACf,YAAUhB,EAAAmB,CAAA;GACV,OAAOH,EAAA,SAAShB,EAAAiB,CAAA,CAAC,CAAA,cAAA;;GAElB,SAAAd,QAKK,CALLC,EAKK,MALLQ,GAKK,EAJHd,EAAA,EAAA,GAAAC,EAGKM,GAAA,MAAAC,EAHoBU,EAAA,SAAb,GAAO,OAAnBlB,EAAA,GAAAC,EAGK,MAAA,EAH6B,KAAG,GAAKoC,EAAC,GAAIC,EAAM,U,IACrCA,EAAM,SAApBtC,EAAA,GAAAC,EACC,UAAAc,GAAAN,EAD6B6B,EAAM,KAAK,GAAA,CAAA,K,WACrC3B,EAAAF,EAAA6B,EAAM,QAAK,OAAA,EAAA,IAAA7B,EAAkB6B,EAAM,OAAO,GAAA,CAAA,C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EFormSection.js","names":["_sfc_main","EFormSection_vue_vue_type_script_setup_true_lang_default","EFormSection_default"],"sources":["../../../src/components/FormSection/EFormSection.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport EStack from \"../Stack/EStack.vue\";\nimport { useUid } from \"../../composables/useUid.js\";\nimport \"../../styles/base.css\";\n\nconst props = withDefaults(\n defineProps<{\n /** The question the section answers, such as \"Your details\". */\n title: string;\n /** A short line under the title. */\n description?: string;\n /** The heading element, 1 to 4. */\n headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;\n /** Space between the fields: a space token number (1, 2, 3, 4, 6, 8) or any CSS length. */\n gap?: number | string;\n /** The id of the heading; the section is labelled by it. Generated when left out. */\n id?: string;\n }>(),\n { headingLevel: 2, gap: 4 },\n);\n\ndefineSlots<{\n /** The fields, spaced evenly. */\n default(): unknown;\n}>();\n\nconst id = useUid(() => props.id);\n</script>\n\n<template>\n <section class=\"e-formsection\" :aria-labelledby=\"id\">\n <div class=\"e-formsection-head\">\n <component :is=\"`h${headingLevel}`\" :id=\"id\" class=\"e-formsection-title\">{{ title }}</component>\n <p v-if=\"description\" class=\"e-formsection-desc\">{{ description }}</p>\n </div>\n <EStack :gap=\"gap\"><slot /></EStack>\n </section>\n</template>\n\n<style>\n@layer e.composites {\n .e-formsection {\n display: grid;\n gap: var(--e-space-4);\n padding-top: var(--e-space-6);\n border-top: var(--e-stroke-hair) solid var(--e-border);\n }\n\n .e-formsection:first-child {\n padding-top: 0;\n border-top: 0;\n }\n\n .e-formsection-title {\n margin: 0;\n font: 500 var(--e-text-xl)/1.25 var(--e-font-sans);\n }\n\n .e-formsection-desc {\n margin: var(--e-space-1) 0 0;\n max-width: var(--e-measure);\n font: 400 var(--e-text-md)/1.45 var(--e-font-sans);\n color: var(--e-muted);\n }\n}\n</style>\n"],"mappings":""}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
/** The question the section answers, such as "Your details". */
|
|
3
|
-
title: string;
|
|
4
|
-
/** A short line under the title. */
|
|
5
|
-
description?: string;
|
|
6
|
-
/** The heading element, 1 to 4. */
|
|
7
|
-
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
8
|
-
/** Space between the fields: a space token number (1, 2, 3, 4, 6, 8) or any CSS length. */
|
|
9
|
-
gap?: number | string;
|
|
10
|
-
/** The id of the heading; the section is labelled by it. Generated when left out. */
|
|
11
|
-
id?: string;
|
|
12
|
-
};
|
|
13
|
-
type __VLS_Slots = {
|
|
14
|
-
/** The fields, spaced evenly. */
|
|
15
|
-
default(): unknown;
|
|
16
|
-
};
|
|
17
|
-
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
-
headingLevel: 1 | 2 | 3 | 4 | 5 | 6;
|
|
19
|
-
gap: string | number;
|
|
20
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
-
declare const _default: typeof __VLS_export;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { useUid as e } from "../../composables/useUid.js";
|
|
3
|
-
import t from "../Stack/EStack.js";
|
|
4
|
-
import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, openBlock as l, renderSlot as u, resolveDynamicComponent as d, toDisplayString as f, unref as p, withCtx as m } from "vue";
|
|
5
|
-
//#region src/components/FormSection/EFormSection.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var h = ["aria-labelledby"], g = { class: "e-formsection-head" }, _ = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "e-formsection-desc"
|
|
9
|
-
}, v = /*@__PURE__*/ c({
|
|
10
|
-
__name: "EFormSection",
|
|
11
|
-
props: {
|
|
12
|
-
title: {},
|
|
13
|
-
description: {},
|
|
14
|
-
headingLevel: { default: 2 },
|
|
15
|
-
gap: { default: 4 },
|
|
16
|
-
id: {}
|
|
17
|
-
},
|
|
18
|
-
setup(c) {
|
|
19
|
-
let v = c, y = e(() => v.id);
|
|
20
|
-
return (e, v) => (l(), i("section", {
|
|
21
|
-
class: "e-formsection",
|
|
22
|
-
"aria-labelledby": p(y)
|
|
23
|
-
}, [a("div", g, [(l(), n(d(`h${c.headingLevel}`), {
|
|
24
|
-
id: p(y),
|
|
25
|
-
class: "e-formsection-title"
|
|
26
|
-
}, {
|
|
27
|
-
default: m(() => [o(f(c.title), 1)]),
|
|
28
|
-
_: 1
|
|
29
|
-
}, 8, ["id"])), c.description ? (l(), i("p", _, f(c.description), 1)) : r("", !0)]), s(t, { gap: c.gap }, {
|
|
30
|
-
default: m(() => [u(e.$slots, "default")]),
|
|
31
|
-
_: 3
|
|
32
|
-
}, 8, ["gap"])], 8, h));
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
//#endregion
|
|
36
|
-
export { v as default };
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=EFormSection.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EFormSection.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_unref","_createElementVNode","_createBlock","_resolveDynamicComponent","_withCtx","_createTextVNode","_toDisplayString","_createCommentVNode","_createVNode","EStack","_renderSlot","EStack_default","_hoisted_1","_hoisted_2","_hoisted_3","EFormSection_vue_vue_type_script_setup_true_lang_default","props","__props","id","useUid","openBlock","createElementBlock","unref","createElementVNode","createBlock","resolveDynamicComponent","withCtx","createTextVNode","toDisplayString","createCommentVNode","createVNode","renderSlot","_ctx"],"sources":["../../../src/components/FormSection/EFormSection.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport EStack from \"../Stack/EStack.vue\";\nimport { useUid } from \"../../composables/useUid.js\";\nimport \"../../styles/base.css\";\n\nconst props = withDefaults(\n defineProps<{\n /** The question the section answers, such as \"Your details\". */\n title: string;\n /** A short line under the title. */\n description?: string;\n /** The heading element, 1 to 4. */\n headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;\n /** Space between the fields: a space token number (1, 2, 3, 4, 6, 8) or any CSS length. */\n gap?: number | string;\n /** The id of the heading; the section is labelled by it. Generated when left out. */\n id?: string;\n }>(),\n { headingLevel: 2, gap: 4 },\n);\n\ndefineSlots<{\n /** The fields, spaced evenly. */\n default(): unknown;\n}>();\n\nconst id = useUid(() => props.id);\n</script>\n\n<template>\n <section class=\"e-formsection\" :aria-labelledby=\"id\">\n <div class=\"e-formsection-head\">\n <component :is=\"`h${headingLevel}`\" :id=\"id\" class=\"e-formsection-title\">{{ title }}</component>\n <p v-if=\"description\" class=\"e-formsection-desc\">{{ description }}</p>\n </div>\n <EStack :gap=\"gap\"><slot /></EStack>\n </section>\n</template>\n\n<style>\n@layer e.composites {\n .e-formsection {\n display: grid;\n gap: var(--e-space-4);\n padding-top: var(--e-space-6);\n border-top: var(--e-stroke-hair) solid var(--e-border);\n }\n\n .e-formsection:first-child {\n padding-top: 0;\n border-top: 0;\n }\n\n .e-formsection-title {\n margin: 0;\n font: 500 var(--e-text-xl)/1.25 var(--e-font-sans);\n }\n\n .e-formsection-desc {\n margin: var(--e-space-1) 0 0;\n max-width: var(--e-measure);\n font: 400 var(--e-text-md)/1.45 var(--e-font-sans);\n color: var(--e-muted);\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAKA,IAAMkB,IAAQC,GAqBRC,IAAKC,QAAaH,EAAM,EAAE;E,kBAI9BlB,EAAA,GAAAC,EAMU,WAAA;GAND,OAAM;GAAiB,mBAAiBC,EAAAkB,CAAA;E,IAC/CjB,EAGM,OAHNY,GAGM,EAFJf,EAAA,GAAAI,EAAgGC,EAAA,IAA5Ec,EAAA,cAAY,GAAA;GAAK,IAAIjB,EAAAkB,CAAA;GAAI,OAAM;;GAAsB,SAAAd,QAAW,CAARC,EAAAC,EAAAW,EAAA,KAAK,GAAA,CAAA,C;;E,gBACxEA,EAAA,eAATnB,EAAA,GAAAC,EAAsE,KAAtEe,GAAsER,EAAlBW,EAAA,WAAW,GAAA,CAAA,K,aAEjET,EAAoCC,GAAA,EAA3B,KAAKQ,EAAA,IAAG,GAAA;GAAE,SAAAb,QAAQ,CAARM,EAAQsB,EAAA,QAAA,SAAA,C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as EFormSection } from './EFormSection.vue.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EItemList.js","names":["_sfc_main","EItemList_vue_vue_type_script_setup_true_lang_default","EItemList_default"],"sources":["../../../src/components/ItemList/EItemList.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { provide } from \"vue\";\nimport { ITEM_LIST_KEY } from \"./context.js\";\nimport \"../../styles/base.css\";\n\ndefineSlots<{\n /** The `EItemRow`s. */\n default(): unknown;\n}>();\n\nprovide(ITEM_LIST_KEY, true);\n</script>\n\n<template>\n <div class=\"e-items\">\n <div class=\"e-items-grid\" role=\"list\"><slot /></div>\n </div>\n</template>\n\n<style>\n@layer e.account {\n .e-items {\n container-type: inline-size;\n }\n\n .e-items-grid {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n column-gap: var(--e-space-3);\n }\n\n @container (min-width: 36rem) {\n .e-items-grid {\n grid-template-columns: auto minmax(0, 1fr) auto auto;\n }\n }\n}\n</style>\n"],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type __VLS_Slots = {
|
|
2
|
-
/** The `EItemRow`s. */
|
|
3
|
-
default(): unknown;
|
|
4
|
-
};
|
|
5
|
-
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
-
declare const _default: typeof __VLS_export;
|
|
8
|
-
export default _default;
|
|
9
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
-
new (): {
|
|
11
|
-
$slots: S;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { ITEM_LIST_KEY as e } from "./context.js";
|
|
3
|
-
import { createElementBlock as t, createElementVNode as n, defineComponent as r, openBlock as i, provide as a, renderSlot as o } from "vue";
|
|
4
|
-
//#region src/components/ItemList/EItemList.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var s = { class: "e-items" }, c = {
|
|
6
|
-
class: "e-items-grid",
|
|
7
|
-
role: "list"
|
|
8
|
-
}, l = /*@__PURE__*/ r({
|
|
9
|
-
__name: "EItemList",
|
|
10
|
-
setup(r) {
|
|
11
|
-
return a(e, !0), (e, r) => (i(), t("div", s, [n("div", c, [o(e.$slots, "default")])]));
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
//#endregion
|
|
15
|
-
export { l as default };
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=EItemList.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EItemList.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","_renderSlot","_hoisted_1","_hoisted_2","EItemList_vue_vue_type_script_setup_true_lang_default","provide","ITEM_LIST_KEY","openBlock","createElementBlock","createElementVNode","renderSlot","_ctx"],"sources":["../../../src/components/ItemList/EItemList.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { provide } from \"vue\";\nimport { ITEM_LIST_KEY } from \"./context.js\";\nimport \"../../styles/base.css\";\n\ndefineSlots<{\n /** The `EItemRow`s. */\n default(): unknown;\n}>();\n\nprovide(ITEM_LIST_KEY, true);\n</script>\n\n<template>\n <div class=\"e-items\">\n <div class=\"e-items-grid\" role=\"list\"><slot /></div>\n </div>\n</template>\n\n<style>\n@layer e.account {\n .e-items {\n container-type: inline-size;\n }\n\n .e-items-grid {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n column-gap: var(--e-space-3);\n }\n\n @container (min-width: 36rem) {\n .e-items-grid {\n grid-template-columns: auto minmax(0, 1fr) auto auto;\n }\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;E,OAUAO,EAAQC,GAAe,EAAI,I,UAIzBR,EAAA,GAAAC,EAEM,OAFNG,GAEM,CADJF,EAAoD,OAApDG,GAAoD,CAAdF,EAAQU,EAAA,QAAA,SAAA,C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":["ITEM_LIST_KEY"],"sources":["../../../src/components/ItemList/context.ts"],"sourcesContent":["import type { InjectionKey } from \"vue\";\n\n/** Provided by `EItemList` so an `EItemRow` knows it already has a list around it. Internal. */\nexport const ITEM_LIST_KEY: InjectionKey<boolean> = Symbol(\"eos.itemList\");\n"],"mappings":";AAGA,IAAaA,IAAuC,OAAO,cAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as EItemList } from './EItemList.vue.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EItemRow.js","names":["_sfc_main","EItemRow_vue_vue_type_script_setup_true_lang_default","EItemRow_default"],"sources":["../../../src/components/ItemRow/EItemRow.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { h, inject, type FunctionalComponent } from \"vue\";\nimport EIcon from \"../Icon/EIcon.vue\";\nimport EStamp from \"../Stamp/EStamp.vue\";\nimport EItemList from \"../ItemList/EItemList.vue\";\nimport { ITEM_LIST_KEY } from \"../ItemList/context.js\";\nimport type { StampStatus, StampTone } from \"../Stamp/EStamp.vue\";\nimport type { IconProp } from \"../../icons/types.js\";\nimport \"../../styles/base.css\";\n\ndefineOptions({ inheritAttrs: false });\n\ndefineProps<{\n /** What the line is, such as \"New client form\". */\n title: string;\n /** A line under the title, such as when it is due. */\n subtitle?: string;\n /** An icon in a tile before the title. */\n icon?: IconProp;\n /** A preset for the stamp: sets its tone, word and glyph. */\n status?: StampStatus;\n /** Overrides the status's tone. */\n tone?: StampTone;\n /** The stamp's word. Overrides the status's; on its own it shows a stamp too. */\n label?: string;\n}>();\n\ndefineSlots<{\n /** A Button or IconButton at the end of the row. */\n action?(): unknown;\n}>();\n\nconst inList = inject(ITEM_LIST_KEY, false);\nconst Frame: FunctionalComponent = (_props, { slots }) =>\n inList ? slots.default?.() : h(EItemList, null, { default: () => slots.default?.() });\n</script>\n\n<template>\n <Frame>\n <div class=\"e-item\" role=\"listitem\" v-bind=\"$attrs\">\n <span v-if=\"icon\" class=\"e-item-icon\"><EIcon :name=\"icon\" /></span>\n <div class=\"e-item-main\">\n <p class=\"e-item-title\">{{ title }}</p>\n <p v-if=\"subtitle\" class=\"e-item-sub\">{{ subtitle }}</p>\n </div>\n <EStamp v-if=\"status || label\" :status=\"status\" :tone=\"tone\" :label=\"label\" small />\n <slot name=\"action\" />\n </div>\n </Frame>\n</template>\n\n<style>\n@layer e.account {\n .e-item {\n grid-column: 1 / -1;\n display: grid;\n grid-template-columns: subgrid;\n align-items: center;\n padding: var(--e-space-3) 0;\n border-top: var(--e-stroke-hair) solid var(--e-border);\n }\n\n .e-item:first-child {\n border-top: 0;\n }\n\n .e-item-icon {\n grid-column: 1;\n grid-row: 1 / span 2;\n align-self: start;\n display: grid;\n place-items: center;\n width: 40px;\n height: 40px;\n border-radius: var(--e-radius-md);\n background: var(--e-surface-tint);\n box-shadow: inset 0 0 0 1px var(--e-border-strong);\n }\n\n .e-item-icon .e-icon {\n width: 22px;\n height: 22px;\n }\n\n .e-item-main {\n grid-column: 2;\n grid-row: 1;\n min-width: 0;\n }\n\n .e-item .e-stamp {\n grid-column: 2;\n grid-row: 2;\n justify-self: start;\n margin-top: var(--e-space-2);\n }\n\n .e-item > .e-btn {\n grid-column: 2 / -1;\n grid-row: 3;\n justify-self: start;\n margin-top: var(--e-space-3);\n }\n\n .e-item > .e-icon-btn {\n grid-column: 3;\n grid-row: 1 / span 2;\n /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties -- two longhands */\n justify-self: end;\n align-self: center;\n }\n\n .e-item-title {\n margin: 0;\n font: 500 var(--e-text-md) / 1.3 var(--e-font-sans);\n overflow-wrap: anywhere;\n }\n\n .e-item-sub {\n margin: var(--e-space-1) 0 0;\n font: 400 var(--e-text-sm) / 1.4 var(--e-font-sans);\n color: var(--e-muted);\n }\n\n @container (min-width: 36rem) {\n .e-item-icon {\n grid-row: 1;\n align-self: center;\n }\n\n .e-item .e-stamp {\n grid-column: 3;\n grid-row: 1;\n margin-top: 0;\n align-self: center;\n }\n\n .e-item > .e-btn,\n .e-item > .e-icon-btn {\n grid-column: 4;\n grid-row: 1;\n margin-top: 0;\n /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties -- two longhands */\n justify-self: end;\n align-self: center;\n }\n }\n\n @media print {\n .e-item {\n box-shadow: none;\n border: 1px solid #000;\n border-width: 0 0 1px;\n break-inside: avoid;\n }\n }\n}\n</style>\n"],"mappings":""}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { StampStatus, StampTone } from '../Stamp/EStamp.vue.js';
|
|
2
|
-
import { IconProp } from '../../icons/types.js';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
/** What the line is, such as "New client form". */
|
|
5
|
-
title: string;
|
|
6
|
-
/** A line under the title, such as when it is due. */
|
|
7
|
-
subtitle?: string;
|
|
8
|
-
/** An icon in a tile before the title. */
|
|
9
|
-
icon?: IconProp;
|
|
10
|
-
/** A preset for the stamp: sets its tone, word and glyph. */
|
|
11
|
-
status?: StampStatus;
|
|
12
|
-
/** Overrides the status's tone. */
|
|
13
|
-
tone?: StampTone;
|
|
14
|
-
/** The stamp's word. Overrides the status's; on its own it shows a stamp too. */
|
|
15
|
-
label?: string;
|
|
16
|
-
};
|
|
17
|
-
type __VLS_Slots = {
|
|
18
|
-
/** A Button or IconButton at the end of the row. */
|
|
19
|
-
action?(): unknown;
|
|
20
|
-
};
|
|
21
|
-
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
-
declare const _default: typeof __VLS_export;
|
|
24
|
-
export default _default;
|
|
25
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
-
new (): {
|
|
27
|
-
$slots: S;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import e from "../Icon/EIcon.js";
|
|
3
|
-
import t from "../Stamp/EStamp.js";
|
|
4
|
-
import { ITEM_LIST_KEY as n } from "../ItemList/context.js";
|
|
5
|
-
import r from "../ItemList/EItemList.js";
|
|
6
|
-
import { createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, h as u, inject as d, mergeProps as f, openBlock as p, renderSlot as m, toDisplayString as h, withCtx as g } from "vue";
|
|
7
|
-
//#region src/components/ItemRow/EItemRow.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var _ = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "e-item-icon"
|
|
11
|
-
}, v = { class: "e-item-main" }, y = { class: "e-item-title" }, b = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "e-item-sub"
|
|
14
|
-
}, x = /*@__PURE__*/ l({
|
|
15
|
-
inheritAttrs: !1,
|
|
16
|
-
__name: "EItemRow",
|
|
17
|
-
props: {
|
|
18
|
-
title: {},
|
|
19
|
-
subtitle: {},
|
|
20
|
-
icon: {},
|
|
21
|
-
status: {},
|
|
22
|
-
tone: {},
|
|
23
|
-
label: {}
|
|
24
|
-
},
|
|
25
|
-
setup(l) {
|
|
26
|
-
let x = d(n, !1), S = (e, { slots: t }) => x ? t.default?.() : u(r, null, { default: () => t.default?.() });
|
|
27
|
-
return (n, r) => (p(), i(S, null, {
|
|
28
|
-
default: g(() => [s("div", f({
|
|
29
|
-
class: "e-item",
|
|
30
|
-
role: "listitem"
|
|
31
|
-
}, n.$attrs), [
|
|
32
|
-
l.icon ? (p(), o("span", _, [c(e, { name: l.icon }, null, 8, ["name"])])) : a("", !0),
|
|
33
|
-
s("div", v, [s("p", y, h(l.title), 1), l.subtitle ? (p(), o("p", b, h(l.subtitle), 1)) : a("", !0)]),
|
|
34
|
-
l.status || l.label ? (p(), i(t, {
|
|
35
|
-
key: 1,
|
|
36
|
-
status: l.status,
|
|
37
|
-
tone: l.tone,
|
|
38
|
-
label: l.label,
|
|
39
|
-
small: ""
|
|
40
|
-
}, null, 8, [
|
|
41
|
-
"status",
|
|
42
|
-
"tone",
|
|
43
|
-
"label"
|
|
44
|
-
])) : a("", !0),
|
|
45
|
-
m(n.$slots, "action")
|
|
46
|
-
], 16)]),
|
|
47
|
-
_: 3
|
|
48
|
-
}));
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
//#endregion
|
|
52
|
-
export { x as default };
|
|
53
|
-
|
|
54
|
-
//# sourceMappingURL=EItemRow.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EItemRow.vue_vue_type_script_setup_true_lang.js","names":["$attrs","EItemList","_openBlock","_createBlock","_withCtx","_createElementVNode","_mergeProps","_createElementBlock","_createVNode","EIcon","_createCommentVNode","_toDisplayString","EStamp","_renderSlot","EIcon_default","EStamp_default","EItemList_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","EItemRow_vue_vue_type_script_setup_true_lang_default","inList","inject","ITEM_LIST_KEY","Frame","slots","h","openBlock","createBlock","withCtx","createElementVNode","mergeProps","_ctx","__props","createElementBlock","createVNode","createCommentVNode","toDisplayString","renderSlot"],"sources":["../../../src/components/ItemRow/EItemRow.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { h, inject, type FunctionalComponent } from \"vue\";\nimport EIcon from \"../Icon/EIcon.vue\";\nimport EStamp from \"../Stamp/EStamp.vue\";\nimport EItemList from \"../ItemList/EItemList.vue\";\nimport { ITEM_LIST_KEY } from \"../ItemList/context.js\";\nimport type { StampStatus, StampTone } from \"../Stamp/EStamp.vue\";\nimport type { IconProp } from \"../../icons/types.js\";\nimport \"../../styles/base.css\";\n\ndefineOptions({ inheritAttrs: false });\n\ndefineProps<{\n /** What the line is, such as \"New client form\". */\n title: string;\n /** A line under the title, such as when it is due. */\n subtitle?: string;\n /** An icon in a tile before the title. */\n icon?: IconProp;\n /** A preset for the stamp: sets its tone, word and glyph. */\n status?: StampStatus;\n /** Overrides the status's tone. */\n tone?: StampTone;\n /** The stamp's word. Overrides the status's; on its own it shows a stamp too. */\n label?: string;\n}>();\n\ndefineSlots<{\n /** A Button or IconButton at the end of the row. */\n action?(): unknown;\n}>();\n\nconst inList = inject(ITEM_LIST_KEY, false);\nconst Frame: FunctionalComponent = (_props, { slots }) =>\n inList ? slots.default?.() : h(EItemList, null, { default: () => slots.default?.() });\n</script>\n\n<template>\n <Frame>\n <div class=\"e-item\" role=\"listitem\" v-bind=\"$attrs\">\n <span v-if=\"icon\" class=\"e-item-icon\"><EIcon :name=\"icon\" /></span>\n <div class=\"e-item-main\">\n <p class=\"e-item-title\">{{ title }}</p>\n <p v-if=\"subtitle\" class=\"e-item-sub\">{{ subtitle }}</p>\n </div>\n <EStamp v-if=\"status || label\" :status=\"status\" :tone=\"tone\" :label=\"label\" small />\n <slot name=\"action\" />\n </div>\n </Frame>\n</template>\n\n<style>\n@layer e.account {\n .e-item {\n grid-column: 1 / -1;\n display: grid;\n grid-template-columns: subgrid;\n align-items: center;\n padding: var(--e-space-3) 0;\n border-top: var(--e-stroke-hair) solid var(--e-border);\n }\n\n .e-item:first-child {\n border-top: 0;\n }\n\n .e-item-icon {\n grid-column: 1;\n grid-row: 1 / span 2;\n align-self: start;\n display: grid;\n place-items: center;\n width: 40px;\n height: 40px;\n border-radius: var(--e-radius-md);\n background: var(--e-surface-tint);\n box-shadow: inset 0 0 0 1px var(--e-border-strong);\n }\n\n .e-item-icon .e-icon {\n width: 22px;\n height: 22px;\n }\n\n .e-item-main {\n grid-column: 2;\n grid-row: 1;\n min-width: 0;\n }\n\n .e-item .e-stamp {\n grid-column: 2;\n grid-row: 2;\n justify-self: start;\n margin-top: var(--e-space-2);\n }\n\n .e-item > .e-btn {\n grid-column: 2 / -1;\n grid-row: 3;\n justify-self: start;\n margin-top: var(--e-space-3);\n }\n\n .e-item > .e-icon-btn {\n grid-column: 3;\n grid-row: 1 / span 2;\n /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties -- two longhands */\n justify-self: end;\n align-self: center;\n }\n\n .e-item-title {\n margin: 0;\n font: 500 var(--e-text-md) / 1.3 var(--e-font-sans);\n overflow-wrap: anywhere;\n }\n\n .e-item-sub {\n margin: var(--e-space-1) 0 0;\n font: 400 var(--e-text-sm) / 1.4 var(--e-font-sans);\n color: var(--e-muted);\n }\n\n @container (min-width: 36rem) {\n .e-item-icon {\n grid-row: 1;\n align-self: center;\n }\n\n .e-item .e-stamp {\n grid-column: 3;\n grid-row: 1;\n margin-top: 0;\n align-self: center;\n }\n\n .e-item > .e-btn,\n .e-item > .e-icon-btn {\n grid-column: 4;\n grid-row: 1;\n margin-top: 0;\n /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties -- two longhands */\n justify-self: end;\n align-self: center;\n }\n }\n\n @media print {\n .e-item {\n box-shadow: none;\n border: 1px solid #000;\n border-width: 0 0 1px;\n break-inside: avoid;\n }\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAgCA,IAAMsB,IAASC,EAAOC,GAAe,EAAK,GACpCC,KAA8B,GAAQ,EAAE,eAC5CH,IAASI,EAAM,UAAU,IAAIC,EAAE1B,GAAW,MAAM,EAAE,eAAeyB,EAAM,UAAU,EAAE,CAAC;E,kBAIpFxB,EAAA,GAAAC,EAUQsB,GAAA,MAAA;GATN,SAAArB,QAQM,CARNC,EAQM,OARNC,EAQM;IARD,OAAM;IAAS,MAAK;GAAmBN,GAAAA,EAAAA,MAAM,GAAA;IACpCkC,EAAA,QAAZhC,EAAA,GAAAK,EAAmE,QAAnEU,GAAmE,CAA7BT,EAAsBC,GAAA,EAAd,MAAMyB,EAAA,KAAI,GAAA,MAAA,GAAA,CAAA,MAAA,CAAA,C;IACxD7B,EAGM,OAHNa,GAGM,CAFJb,EAAuC,KAAvCc,GAAuCR,EAAZuB,EAAA,KAAK,GAAA,CAAA,GACvBA,EAAA,YAAThC,EAAA,GAAAK,EAAwD,KAAxDa,GAAwDT,EAAfuB,EAAA,QAAQ,GAAA,CAAA,K;IAErCA,EAAA,UAAUA,EAAA,SAAxBhC,EAAA,GAAAC,EAAoFS,GAAA;;KAApD,QAAQsB,EAAA;KAAS,MAAMA,EAAA;KAAO,OAAOA,EAAA;KAAO,OAAA;;;;;;IAC5ErB,EAAsBoB,EAAA,QAAA,QAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as EItemRow } from './EItemRow.vue.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ELinkCard.js","names":["_sfc_main","ELinkCard_vue_vue_type_script_setup_true_lang_default","ELinkCard_default"],"sources":["../../../src/components/LinkCard/ELinkCard.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, type Component } from \"vue\";\nimport ESurface from \"../Surface/ESurface.vue\";\nimport EText from \"../Text/EText.vue\";\nimport \"../../styles/base.css\";\n\nconst props = withDefaults(\n defineProps<{\n /** The card's title, and the text of the one link the whole card is. */\n title: string;\n /** Where the card goes. Defaults to `#`. */\n href?: string;\n /** A router location, passed to `linkComponent` as `to` (for `RouterLink`). Used instead of `href`. */\n to?: unknown;\n /** A line under the title saying what is there. */\n description?: string;\n /** A small mono label above the title. */\n kicker?: string;\n /** The level of the title's heading element, 1 to 6. Pick the one that fits the page outline. */\n headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;\n /** Opens in a new tab. */\n external?: boolean;\n /** The element to render, `div` by default. Use `li` inside a list, such as `<EGrid as=\"ul\">`. */\n as?: string;\n /** What renders the link: `\"a\"` by default, or `RouterLink` (or any component that takes `href` or `to` and a default slot). */\n linkComponent?: string | Component;\n }>(),\n { href: \"#\", headingLevel: 3, as: \"div\", linkComponent: \"a\" },\n);\n\ndefineSlots<{\n /** Anything more under the description, such as a stamp or a count. It must not hold links or buttons: the whole card is already one link. */\n default?(): unknown;\n}>();\n\nconst linkAttrs = computed(() => ({\n ...(props.to !== undefined ? { to: props.to } : { href: props.href }),\n ...(props.external && { target: \"_blank\", rel: \"noreferrer\" }),\n}));\n</script>\n\n<template>\n <ESurface :as=\"as\" pad=\"sm\" class=\"e-linkcard\">\n <p v-if=\"kicker\" class=\"e-kicker e-linkcard-kicker\">{{ kicker }}</p>\n <component :is=\"`h${headingLevel}`\" class=\"e-linkcard-title\">\n <component :is=\"linkComponent\" class=\"e-linkcard-link\" v-bind=\"linkAttrs\">{{ title }}</component>\n </component>\n <EText v-if=\"description\" variant=\"small\" muted>{{ description }}</EText>\n <slot />\n </ESurface>\n</template>\n\n<style>\n@layer e.blocks {\n .e-linkcard {\n position: relative;\n display: grid;\n gap: var(--e-space-1);\n align-content: start;\n transition: box-shadow var(--e-duration-tap) var(--e-easing-out);\n }\n\n .e-linkcard:hover {\n box-shadow: 0 0 0 var(--e-stroke-edge) var(--e-border-strong);\n }\n\n .e-linkcard:has(.e-linkcard-link:focus-visible) {\n outline: var(--e-stroke-focus) solid var(--e-focus-ring);\n outline-offset: var(--e-focus-gap);\n }\n\n .e-linkcard-kicker,\n .e-linkcard-title {\n margin: 0;\n }\n\n .e-linkcard-title {\n font: 500 var(--e-text-md) / 1.3 var(--e-font-sans);\n }\n\n .e-linkcard-link {\n color: var(--e-primary);\n text-decoration: underline;\n text-decoration-thickness: var(--e-stroke-edge);\n text-underline-offset: 4px;\n text-decoration-color: var(--e-primary);\n }\n\n .e-linkcard-link::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: var(--e-radius-md);\n }\n\n .e-linkcard-link:focus-visible {\n outline: none;\n }\n\n .e-linkcard:hover .e-linkcard-link {\n color: var(--e-ink);\n text-decoration-color: var(--e-ink);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .e-linkcard {\n transition: none;\n }\n }\n\n @media (forced-colors: active) {\n .e-linkcard:hover {\n outline: var(--e-stroke-edge) solid Highlight;\n }\n }\n}\n</style>\n"],"mappings":""}
|