@stacksjs/defaults 0.75.317 → 0.75.320
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/ai/skills/stacks-browse/SKILL.md +8 -0
- package/ai/skills/stacks-browse/scripts/browse.ts +16 -6
- package/ai/skills/stacks-browse/scripts/chrome.ts +4 -0
- package/ai/skills/stacks-database/SKILL.md +1 -1
- package/ai/skills/stacks-migrations/SKILL.md +2 -2
- package/ai/skills/stacks-native/CATALOG.md +6 -6
- package/app/Actions/Cms/AuthorUpdateAction.ts +4 -4
- package/app/Actions/Cms/CategorizableUpdateAction.ts +4 -4
- package/app/Actions/Cms/PostUpdateAction.ts +4 -5
- package/app/Actions/Cms/TaggableUpdateAction.ts +4 -2
- package/app/Actions/Commerce/CustomerStoreAction.ts +4 -6
- package/app/Actions/Commerce/CustomerUpdateAction.ts +4 -6
- package/app/Actions/Commerce/PaymentStoreAction.ts +5 -8
- package/app/Actions/Commerce/PaymentUpdateAction.ts +20 -17
- package/app/Actions/Dashboard/Commerce/commerce-product-records.test.ts +7 -0
- package/app/Actions/Dashboard/Commerce/commerce-product-records.ts +14 -3
- package/app/Actions/Dashboard/Commerce/review-records.test.ts +12 -0
- package/app/Actions/Dashboard/Commerce/review-records.ts +10 -5
- package/app/Actions/Dashboard/Content/AuthorStoreAction.ts +2 -0
- package/app/Actions/Dashboard/Content/CategoryStoreAction.ts +4 -1
- package/app/Actions/Dashboard/Content/PageStoreAction.ts +2 -0
- package/app/Actions/Dashboard/Content/PostStoreAction.ts +2 -0
- package/app/Actions/Dashboard/Content/TagStoreAction.ts +2 -0
- package/app/Actions/Dashboard/Content/content-input.ts +9 -4
- package/app/Actions/Dashboard/Content/content-record-input.test.ts +20 -1
- package/app/Actions/Dashboard/Marketing/CampaignIndexAction.ts +1 -1
- package/app/Actions/Dashboard/Marketing/ListIndexAction.ts +1 -1
- package/app/Actions/Dashboard/Models/ModelStoreAction.ts +5 -1
- package/app/Actions/Dashboard/Models/ModelUpdateAction.ts +5 -1
- package/app/Actions/Dashboard/Notifications/NotificationDeliveryOverviewAction.ts +1 -1
- package/app/Actions/Storefront/AddToCartAction.ts +5 -2
- package/app/Actions/Storefront/PlaceOrderAction.ts +6 -11
- package/app/Actions/Storefront/SubmitReviewAction.ts +6 -5
- package/app/Models/Activity.ts +1 -0
- package/app/Models/AnalyticsEvent.ts +1 -0
- package/app/Models/AutomationRun.ts +1 -1
- package/app/Models/BoardColumn.ts +0 -1
- package/app/Models/Campaign.ts +1 -1
- package/app/Models/CampaignSend.ts +3 -3
- package/app/Models/Card.ts +0 -1
- package/app/Models/CardComment.ts +0 -2
- package/app/Models/Content/Author.ts +2 -0
- package/app/Models/Content/Categorizable.ts +1 -0
- package/app/Models/Content/Menu.ts +2 -0
- package/app/Models/Content/MenuItem.ts +2 -0
- package/app/Models/Content/PageRevision.ts +2 -0
- package/app/Models/Content/Post.ts +2 -0
- package/app/Models/Content/Redirect.ts +2 -0
- package/app/Models/EmailListSubscriber.ts +2 -2
- package/app/Models/Error.ts +5 -0
- package/app/Models/Forms/Form.ts +2 -0
- package/app/Models/Forms/FormField.ts +2 -0
- package/app/Models/Forms/FormSubmission.ts +2 -0
- package/app/Models/Label.ts +0 -1
- package/app/Models/Log.ts +3 -1
- package/app/Models/MagicLinkToken.ts +0 -7
- package/app/Models/PaymentProduct.ts +1 -0
- package/app/Models/PaymentTransaction.ts +1 -0
- package/app/Models/Release.ts +3 -0
- package/app/Models/Request.ts +1 -0
- package/app/Models/SenderDomain.ts +2 -0
- package/app/Models/SmsOptOut.ts +0 -7
- package/app/Models/Subscription.ts +2 -0
- package/app/Models/commerce/Auction.ts +1 -0
- package/app/Models/commerce/AuctionItem.ts +1 -0
- package/app/Models/commerce/Cart.ts +83 -2
- package/app/Models/commerce/Category.ts +5 -1
- package/app/Models/commerce/Coupon.ts +4 -1
- package/app/Models/commerce/DigitalDelivery.ts +1 -0
- package/app/Models/commerce/GiftCard.ts +1 -0
- package/app/Models/commerce/LoyaltyPoint.ts +1 -0
- package/app/Models/commerce/LoyaltyReward.ts +3 -1
- package/app/Models/commerce/Order.ts +4 -1
- package/app/Models/commerce/OrderItem.ts +1 -0
- package/app/Models/commerce/Payment.ts +1 -0
- package/app/Models/commerce/Product.ts +15 -0
- package/app/Models/commerce/ProductVariant.ts +2 -0
- package/app/Models/commerce/Receipt.ts +1 -0
- package/app/Models/commerce/Review.ts +3 -1
- package/app/Models/commerce/Transaction.ts +1 -0
- package/app/Models/realtime/Websocket.ts +4 -1
- package/functions/dashboard-form.test.ts +10 -1
- package/functions/dashboard-form.ts +17 -0
- package/ide/vscode/package.json +1 -1
- package/package.json +4 -4
- package/resources/components/Dashboard/Analytics/AnalyticsPageHeader.stx +1 -1
- package/resources/components/Dashboard/App/RequestDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Auth/AccessTokenCreateDialog.stx +1 -1
- package/resources/components/Dashboard/Auth/ForgotPassword.stx +1 -1
- package/resources/components/Dashboard/Auth/Login.stx +1 -1
- package/resources/components/Dashboard/Auth/Register.stx +1 -1
- package/resources/components/Dashboard/Auth/ResetPassword.stx +1 -1
- package/resources/components/Dashboard/Auth/TwoFactorLogin.stx +1 -1
- package/resources/components/Dashboard/CodeEditor.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCategoriesDashboard.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCategoriesTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCategoryDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCategoryDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCategoryDialog.stx +4 -13
- package/resources/components/Dashboard/Commerce/CommerceCouponDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCouponDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCouponDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCouponsTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCustomerDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCustomerDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCustomerDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceCustomersTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceGiftCardDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceGiftCardDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceGiftCardDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceGiftCardsTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceManufacturerDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceManufacturerDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceManufacturersTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceOrderDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceOrderDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceOrderDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceOrdersTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommercePaymentsTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommercePosCart.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommercePosCatalog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommercePosCheckoutDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommercePosReceiptDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceProductDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceProductDialog.stx +27 -2
- package/resources/components/Dashboard/Commerce/CommerceProductsTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceReviewDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceReviewEditDialog.stx +7 -5
- package/resources/components/Dashboard/Commerce/CommerceReviewsDashboard.stx +12 -4
- package/resources/components/Dashboard/Commerce/CommerceReviewsTable.stx +3 -3
- package/resources/components/Dashboard/Commerce/CommerceTaxDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceTaxDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceTaxesTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceUnitDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceUnitDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceUnitsTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceVariantDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceVariantDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/CommerceVariantsTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/CourierDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/CourierDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/CouriersTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/DeliveryPagination.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/DeliveryRouteDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/DeliveryRouteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/DeliveryRoutesTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/DigitalDeliveryDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/DigitalDeliveryDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/DigitalDeliveryTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/LicenseKeyDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/LicenseKeyDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/LicenseKeysTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/ShippingMethodDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/ShippingMethodDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/ShippingMethodsTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/ShippingRateDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/ShippingRateDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/ShippingRatesTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/ShippingZoneDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/ShippingZoneDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/ShippingZonesTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/PaymentDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/PaymentRefundDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/PrintDeviceDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/PrintDeviceDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/PrintDeviceDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/PrintDevicesTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/PrintLogDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/PrintLogDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/PrintLogsTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/ProductWaitlistDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/ProductWaitlistEntryDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/ProductWaitlistTable.stx +1 -1
- package/resources/components/Dashboard/Commerce/RestaurantWaitlistDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/RestaurantWaitlistEntryDialog.stx +1 -1
- package/resources/components/Dashboard/Commerce/RestaurantWaitlistTable.stx +1 -1
- package/resources/components/Dashboard/Content/AuthorEditorDialog.stx +1 -1
- package/resources/components/Dashboard/Content/BlogPostEditorDialog.stx +1 -1
- package/resources/components/Dashboard/Content/CreateFolderDialog.stx +1 -1
- package/resources/components/Dashboard/Content/FileDetailsDrawer.stx +1 -1
- package/resources/components/Dashboard/Content/FileUploadDialog.stx +1 -1
- package/resources/components/Dashboard/Content/PageEditorDialog.stx +1 -1
- package/resources/components/Dashboard/Content/PostEditorDialog.stx +1 -1
- package/resources/components/Dashboard/Content/SeoEditorDialog.stx +1 -1
- package/resources/components/Dashboard/Content/TaxonomyEditorDialog.stx +1 -1
- package/resources/components/Dashboard/CreateRecordModal.stx +1 -1
- package/resources/components/Dashboard/Deployments/DeploymentPreviewDialog.stx +1 -1
- package/resources/components/Dashboard/Elements/DropdownNavigation.stx +1 -1
- package/resources/components/Dashboard/Email/CapturedMailList.stx +1 -1
- package/resources/components/Dashboard/Email/EmailSettingsList.stx +1 -1
- package/resources/components/Dashboard/Email/EmailSettingsNavigation.stx +1 -1
- package/resources/components/Dashboard/Email/EmailSidebar.stx +1 -1
- package/resources/components/Dashboard/Email/InboxComposer.stx +1 -1
- package/resources/components/Dashboard/Email/InboxMessageDetail.stx +1 -1
- package/resources/components/Dashboard/Email/InboxMessageList.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/CloudDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/CloudResourceButton.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/DnsRecordDialog.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/LogDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/MailboxDetailsDialog.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/ServerInspectorDialog.stx +1 -1
- package/resources/components/Dashboard/Jobs/JobTable.stx +1 -1
- package/resources/components/Dashboard/Library/SourceScaffoldDialog.stx +1 -1
- package/resources/components/Dashboard/Management/AssignmentDrawer.stx +1 -1
- package/resources/components/Dashboard/Marketing/CampaignDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Marketing/CampaignDeliveryDialog.stx +1 -1
- package/resources/components/Dashboard/Marketing/CampaignDialog.stx +1 -1
- package/resources/components/Dashboard/Marketing/CampaignsTable.stx +1 -1
- package/resources/components/Dashboard/Marketing/MarketingListDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Marketing/MarketingListDialog.stx +1 -1
- package/resources/components/Dashboard/Marketing/MarketingListsTable.stx +1 -1
- package/resources/components/Dashboard/Marketing/RecoveryCampaignDialog.stx +1 -1
- package/resources/components/Dashboard/Marketing/SocialPostDeleteDialog.stx +1 -1
- package/resources/components/Dashboard/Marketing/SocialPostDialog.stx +1 -1
- package/resources/components/Dashboard/Marketing/SocialPostsTable.stx +1 -1
- package/resources/components/Dashboard/MobileSidebar.stx +1 -1
- package/resources/components/Dashboard/Modals/BaseModal.stx +1 -1
- package/resources/components/Dashboard/Modals/Popups/Alert.stx +1 -1
- package/resources/components/Dashboard/Modals/Popups/Toast.stx +1 -1
- package/resources/components/Dashboard/Modals/ToastWrapper.stx +1 -1
- package/resources/components/Dashboard/Models/EditRecordModal.stx +1 -1
- package/resources/components/Dashboard/Models/ModelRecordActions.stx +1 -1
- package/resources/components/Dashboard/Monitoring/ErrorTable.stx +1 -1
- package/resources/components/Dashboard/Notifications/NotificationDeliveryDialog.stx +1 -1
- package/resources/components/Dashboard/Notifications/NotificationDeliveryTable.stx +1 -1
- package/resources/components/Dashboard/Operations/RecoveryDestinationDialog.stx +1 -1
- package/resources/components/Dashboard/Operations/RecoveryPointTable.stx +1 -1
- package/resources/components/Dashboard/Operations/RecoveryPolicyDialog.stx +1 -1
- package/resources/components/Dashboard/Operations/RecoveryRestoreDialog.stx +1 -1
- package/resources/components/Dashboard/Operations/SchedulerTaskTable.stx +1 -1
- package/resources/components/Dashboard/UI/Checkbox.stx +1 -1
- package/resources/components/Dashboard/UI/ConfirmDialog.stx +1 -1
- package/resources/components/Dashboard/UI/Drawer.stx +1 -1
- package/resources/components/Dashboard/UI/Dropdown.stx +1 -1
- package/resources/components/Dashboard/UI/Input.stx +1 -1
- package/resources/components/Dashboard/UI/Modal.stx +1 -1
- package/resources/components/Dashboard/UI/Pagination.stx +1 -1
- package/resources/components/Dashboard/UI/SearchFilter.stx +1 -1
- package/resources/components/Dashboard/UI/Select.stx +1 -1
- package/resources/components/Dashboard/UI/Table.stx +1 -1
- package/resources/components/Dashboard/UI/Tabs.stx +1 -1
- package/resources/components/Dashboard/UI/Textarea.stx +1 -1
- package/resources/components/Dashboard/UI/Toggle.stx +1 -1
- package/resources/components/Dashboard/UI/WindowControls.stx +1 -1
- package/resources/components/NativeActionSheet.stx +1 -1
- package/resources/components/NativeContextMenu.stx +1 -1
- package/resources/components/NativeHealthButton.stx +1 -1
- package/resources/components/NativePermissionButton.stx +1 -1
- package/resources/components/NativePullToRefresh.stx +1 -1
- package/resources/components/NativeSegmentedControl.stx +1 -1
- package/resources/components/NativeSheet.stx +1 -1
|
@@ -9,7 +9,7 @@ const loading = useReactiveProp('loading', false)
|
|
|
9
9
|
const sortResetKey = useReactiveProp<unknown>('sortResetKey', '')
|
|
10
10
|
/** The parent's search and filters: a change returns to the first page. */
|
|
11
11
|
const pageResetKey = useReactiveProp<unknown>('pageResetKey', '')
|
|
12
|
-
const emit = defineEmits()
|
|
12
|
+
const emit = defineEmits(['edit', 'delete'])
|
|
13
13
|
|
|
14
14
|
/** The list cell is slotted for the drift warning beside the name. */
|
|
15
15
|
const COLUMNS = [
|
|
@@ -9,7 +9,7 @@ const defaultIdleHours = useReactiveProp('defaultIdleHours', 4)
|
|
|
9
9
|
const defaultCurrency = useReactiveProp('defaultCurrency', 'USD')
|
|
10
10
|
const busy = useReactiveProp('busy', false)
|
|
11
11
|
const error = useReactiveProp('error', '')
|
|
12
|
-
const emit = defineEmits()
|
|
12
|
+
const emit = defineEmits(['submit', 'close'])
|
|
13
13
|
|
|
14
14
|
const name = state('')
|
|
15
15
|
const subject = state('')
|
|
@@ -5,7 +5,7 @@ const open = useReactiveProp('open', false)
|
|
|
5
5
|
const record = useReactiveProp('record', null as SocialPostRecord | null)
|
|
6
6
|
const busy = useReactiveProp('busy', false)
|
|
7
7
|
const error = useReactiveProp('error', '')
|
|
8
|
-
const emit = defineEmits()
|
|
8
|
+
const emit = defineEmits(['close', 'confirm'])
|
|
9
9
|
const description = derived(() => `The persisted ${record()?.platform || 'social'} post will be permanently removed. This does not remove a post already published on the external platform.`)
|
|
10
10
|
</script>
|
|
11
11
|
|
|
@@ -10,7 +10,7 @@ const record = useReactiveProp('record', null as SocialPostRecord | null)
|
|
|
10
10
|
const users = useReactiveProp('users', [] as SocialPostUserOption[])
|
|
11
11
|
const busy = useReactiveProp('busy', false)
|
|
12
12
|
const error = useReactiveProp('error', '')
|
|
13
|
-
const emit = defineEmits()
|
|
13
|
+
const emit = defineEmits(['submit', 'close'])
|
|
14
14
|
const content = state('')
|
|
15
15
|
const platform = state('twitter')
|
|
16
16
|
const status = state('draft')
|
|
@@ -10,7 +10,7 @@ const loading = useReactiveProp('loading', false)
|
|
|
10
10
|
const sortResetKey = useReactiveProp<unknown>('sortResetKey', '')
|
|
11
11
|
/** The parent's search and filters: a change returns to the first page. */
|
|
12
12
|
const pageResetKey = useReactiveProp<unknown>('pageResetKey', '')
|
|
13
|
-
const emit = defineEmits()
|
|
13
|
+
const emit = defineEmits(['edit', 'delete'])
|
|
14
14
|
|
|
15
15
|
function formatDate(value: string): string {
|
|
16
16
|
if (!value)
|
|
@@ -3,7 +3,7 @@ import { useScrollLock } from '@stacksjs/composables'
|
|
|
3
3
|
const isOpen = state(false)
|
|
4
4
|
const isDesktop = useMediaQuery('(min-width: 1024px)')
|
|
5
5
|
const scrollLocked = useScrollLock()
|
|
6
|
-
const emit = defineEmits()
|
|
6
|
+
const emit = defineEmits(['open', 'close'])
|
|
7
7
|
const menuButton = useRef<HTMLButtonElement>('dashboardMobileMenuButton')
|
|
8
8
|
const closeButton = useRef<HTMLButtonElement>('dashboardMobileCloseButton')
|
|
9
9
|
const dialog = useRef<HTMLElement>('dashboardMobileNavigation')
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const liveId = useReactiveProp('id', '')
|
|
3
3
|
const liveShow = useReactiveProp('show', true)
|
|
4
4
|
const liveAriaLabel = useReactiveProp('ariaLabel', 'Dialog')
|
|
5
|
-
const emit = defineEmits()
|
|
5
|
+
const emit = defineEmits(['update:show', 'close'])
|
|
6
6
|
const generatedId = useId('modal')
|
|
7
7
|
|
|
8
8
|
const modalId = derived(() => liveId() || generatedId)
|
|
@@ -7,7 +7,7 @@ const liveType = useReactiveProp('type', 'info' as AlertType)
|
|
|
7
7
|
const liveConfirmationText = useReactiveProp('confirmationText', 'Confirm')
|
|
8
8
|
const liveAbortText = useReactiveProp('abortText', 'Cancel')
|
|
9
9
|
const liveShow = useReactiveProp('show', true)
|
|
10
|
-
const emit = defineEmits()
|
|
10
|
+
const emit = defineEmits(['update:show', 'close', 'cancel', 'confirm'])
|
|
11
11
|
|
|
12
12
|
const normalizedType = derived((): Exclude<AlertType, 'danger'> => {
|
|
13
13
|
const type = liveType()
|
|
@@ -9,7 +9,7 @@ const liveType = useReactiveProp('type', 'warning' as ToastType)
|
|
|
9
9
|
const liveTitle = useReactiveProp('title', '')
|
|
10
10
|
const livePosition = useReactiveProp('position', 'top-right' as ToastPosition)
|
|
11
11
|
const liveId = useReactiveProp('id', '')
|
|
12
|
-
const emit = defineEmits()
|
|
12
|
+
const emit = defineEmits(['update:show', 'close'])
|
|
13
13
|
const generatedId = useId('toast')
|
|
14
14
|
|
|
15
15
|
const toastId = derived(() => liveId() || generatedId)
|
|
@@ -5,7 +5,7 @@ type ToastWrapperPosition = 'center' | 'top' | 'top-right' | 'top-left'
|
|
|
5
5
|
|
|
6
6
|
const liveWidth = useReactiveProp('width', 30)
|
|
7
7
|
const livePosition = useReactiveProp('position', 'top-right' as ToastWrapperPosition)
|
|
8
|
-
const emit = defineEmits()
|
|
8
|
+
const emit = defineEmits(['close'])
|
|
9
9
|
|
|
10
10
|
const containerClass = derived(() => [
|
|
11
11
|
'pointer-events-none fixed z-[60] flex p-4 sm:p-6',
|
|
@@ -11,7 +11,7 @@ const modelName = useReactiveProp('modelName', 'Record')
|
|
|
11
11
|
const fields = useReactiveProp('fields', [] as EditField[])
|
|
12
12
|
const busy = useReactiveProp('busy', false)
|
|
13
13
|
const values = state<Record<string, string>>({})
|
|
14
|
-
const emit = defineEmits()
|
|
14
|
+
const emit = defineEmits(['submit', 'close'])
|
|
15
15
|
let hydrationKey = ''
|
|
16
16
|
|
|
17
17
|
effect(() => {
|
|
@@ -3,7 +3,7 @@ const record = useReactiveProp('record', {} as Record<string, unknown>)
|
|
|
3
3
|
const modelName = useReactiveProp('modelName', 'Record')
|
|
4
4
|
const canUpdate = useReactiveProp('canUpdate', false)
|
|
5
5
|
const canDestroy = useReactiveProp('canDestroy', false)
|
|
6
|
-
const emit = defineEmits()
|
|
6
|
+
const emit = defineEmits(['edit', 'delete'])
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<div class="flex gap-1 items-center justify-end">
|
|
@@ -17,7 +17,7 @@ const emptyTitle = useReactiveProp('emptyTitle', 'No errors found')
|
|
|
17
17
|
const emptyDescription = useReactiveProp('emptyDescription', 'Your application is running smoothly!')
|
|
18
18
|
/** The parent's search and filters: a change returns to the first page. */
|
|
19
19
|
const pageResetKey = useReactiveProp<unknown>('pageResetKey', '')
|
|
20
|
-
const emit = defineEmits()
|
|
20
|
+
const emit = defineEmits(['view', 'resolve', 'ignore', 'unresolve', 'delete'])
|
|
21
21
|
|
|
22
22
|
function formatRelativeTime(value: string): string {
|
|
23
23
|
if (!value)
|
|
@@ -3,7 +3,7 @@ import type { NotificationDelivery } from '../../../../functions/notifications/d
|
|
|
3
3
|
|
|
4
4
|
const open = useReactiveProp('open', false)
|
|
5
5
|
const delivery = useReactiveProp('delivery', null as NotificationDelivery | null)
|
|
6
|
-
const emit = defineEmits()
|
|
6
|
+
const emit = defineEmits(['close'])
|
|
7
7
|
|
|
8
8
|
function formatDate(value?: string): string {
|
|
9
9
|
if (!value)
|
|
@@ -19,7 +19,7 @@ const paginated = useReactiveProp('paginated', false)
|
|
|
19
19
|
const sortResetKey = useReactiveProp<unknown>('sortResetKey', '')
|
|
20
20
|
/** The parent's search and filters: a change returns to the first page. */
|
|
21
21
|
const pageResetKey = useReactiveProp<unknown>('pageResetKey', '')
|
|
22
|
-
const emit = defineEmits()
|
|
22
|
+
const emit = defineEmits(['retry', 'view'])
|
|
23
23
|
|
|
24
24
|
function channelIcon(channel: string): string {
|
|
25
25
|
if (channel === 'email')
|
|
@@ -3,7 +3,7 @@ import type { RecoveryDestinationInput } from '../../../../functions/operations'
|
|
|
3
3
|
|
|
4
4
|
const open = useReactiveProp('isOpen', false)
|
|
5
5
|
const busy = useReactiveProp('busy', false)
|
|
6
|
-
const emit = defineEmits()
|
|
6
|
+
const emit = defineEmits(['close', 'save'])
|
|
7
7
|
|
|
8
8
|
const name = state('')
|
|
9
9
|
const provider = state<RecoveryDestinationInput['provider']>('aws_s3')
|
|
@@ -6,7 +6,7 @@ import type { RecoveryPoint, RecoveryPolicy } from '../../../../functions/operat
|
|
|
6
6
|
const pointItems = useReactiveProp('points', [])
|
|
7
7
|
const policyItems = useReactiveProp('policies', [])
|
|
8
8
|
const busyId = useReactiveProp('busyId', '')
|
|
9
|
-
const emit = defineEmits()
|
|
9
|
+
const emit = defineEmits(['verify', 'restore', 'protect'])
|
|
10
10
|
|
|
11
11
|
function policyName(id?: string): string {
|
|
12
12
|
return (policyItems() as RecoveryPolicy[]).find(policy => policy.id === id)?.name || 'Manual recovery point'
|
|
@@ -6,7 +6,7 @@ const busy = useReactiveProp('busy', false)
|
|
|
6
6
|
const destinationItems = useReactiveProp('destinations', [])
|
|
7
7
|
const resourceItems = useReactiveProp('resources', [])
|
|
8
8
|
const serviceItems = useReactiveProp('dataServices', [])
|
|
9
|
-
const emit = defineEmits()
|
|
9
|
+
const emit = defineEmits(['close', 'save'])
|
|
10
10
|
|
|
11
11
|
const name = state('')
|
|
12
12
|
const destinationId = state('')
|
|
@@ -6,7 +6,7 @@ const pointValue = useReactiveProp('point', null)
|
|
|
6
6
|
const pointItems = useReactiveProp('points', [])
|
|
7
7
|
const busy = useReactiveProp('busy', false)
|
|
8
8
|
const planValue = useReactiveProp('plan', null)
|
|
9
|
-
const emit = defineEmits()
|
|
9
|
+
const emit = defineEmits(['close', 'preview', 'execute'])
|
|
10
10
|
|
|
11
11
|
const mode = state<'isolated' | 'in_place'>('isolated')
|
|
12
12
|
const targetName = state('')
|
|
@@ -6,7 +6,7 @@ import type { SchedulerTask } from '../../../../functions/operations'
|
|
|
6
6
|
const tasks = useReactiveProp('tasks', [])
|
|
7
7
|
const loading = useReactiveProp('loading', false)
|
|
8
8
|
const busyTask = useReactiveProp('busyTask', '')
|
|
9
|
-
const emit = defineEmits()
|
|
9
|
+
const emit = defineEmits(['run', 'toggle'])
|
|
10
10
|
|
|
11
11
|
const COLUMNS = [
|
|
12
12
|
{ key: 'name', label: 'Task', sortable: true, subtitleKey: 'timezone', class: 'font-medium text-gray-900 dark:text-white' },
|
|
@@ -11,7 +11,7 @@ const liveError = useReactiveProp('error', '')
|
|
|
11
11
|
const liveName = useReactiveProp('name', '')
|
|
12
12
|
const liveId = useReactiveProp('id', '')
|
|
13
13
|
const liveAriaLabel = useReactiveProp('ariaLabel', '')
|
|
14
|
-
const emit = defineEmits()
|
|
14
|
+
const emit = defineEmits(['update:checked', 'update:indeterminate', 'change'])
|
|
15
15
|
const generatedId = useId('checkbox')
|
|
16
16
|
|
|
17
17
|
const sizeClasses: Record<CheckboxSize, { control: string, icon: string, label: string, description: string }> = {
|
|
@@ -11,7 +11,7 @@ const busy = useReactiveProp('busy', false)
|
|
|
11
11
|
const disabled = useReactiveProp('disabled', false)
|
|
12
12
|
const warning = useReactiveProp('warning', '')
|
|
13
13
|
const error = useReactiveProp('error', '')
|
|
14
|
-
const emit = defineEmits()
|
|
14
|
+
const emit = defineEmits(['close', 'confirm'])
|
|
15
15
|
|
|
16
16
|
function close(): void {
|
|
17
17
|
if (!busy())
|
|
@@ -25,7 +25,7 @@ const liveDescription = useReactiveProp('description', '')
|
|
|
25
25
|
const dialog = useRef<HTMLDialogElement>('dashboardDrawerDialog')
|
|
26
26
|
const activeElement = useActiveElement()
|
|
27
27
|
const scrollLocked = useScrollLock()
|
|
28
|
-
const emit = defineEmits()
|
|
28
|
+
const emit = defineEmits(['close'])
|
|
29
29
|
let restoreFocus: HTMLElement | null = null
|
|
30
30
|
|
|
31
31
|
function close(): void {
|
|
@@ -9,7 +9,7 @@ const disabled = useReactiveProp('disabled', false)
|
|
|
9
9
|
const isOpen = state(requestedOpen())
|
|
10
10
|
const root = useRef('dropdownRoot')
|
|
11
11
|
const menu = useRef('dropdownMenu')
|
|
12
|
-
const emit = defineEmits()
|
|
12
|
+
const emit = defineEmits(['update:open', 'open', 'close'])
|
|
13
13
|
|
|
14
14
|
const widthClasses: Record<DropdownWidth, string> = {
|
|
15
15
|
auto: 'min-w-[12rem]',
|
|
@@ -17,7 +17,7 @@ const liveId = useReactiveProp('id', '')
|
|
|
17
17
|
const liveSize = useReactiveProp('size', 'md' as InputSize)
|
|
18
18
|
const liveName = useReactiveProp('name', '')
|
|
19
19
|
const liveFullWidth = useReactiveProp('fullWidth', true)
|
|
20
|
-
const emit = defineEmits()
|
|
20
|
+
const emit = defineEmits(['update:value', 'input', 'change', 'blur'])
|
|
21
21
|
const generatedId = useId('input')
|
|
22
22
|
|
|
23
23
|
const sizeClasses: Record<InputSize, string> = {
|
|
@@ -52,7 +52,7 @@ const liveShowCloseButton = useReactiveProp('showCloseButton', true)
|
|
|
52
52
|
const dialog = useRef<HTMLDialogElement>('dashboardModalDialog')
|
|
53
53
|
const activeElement = useActiveElement()
|
|
54
54
|
const scrollLocked = useScrollLock()
|
|
55
|
-
const emit = defineEmits()
|
|
55
|
+
const emit = defineEmits(['close'])
|
|
56
56
|
let restoreFocus: HTMLElement | null = null
|
|
57
57
|
|
|
58
58
|
type ModalCloseReason = 'backdrop' | 'button' | 'escape'
|
|
@@ -8,7 +8,7 @@ const itemsPerPage = useReactiveProp('itemsPerPage', 20)
|
|
|
8
8
|
const showItemsPerPage = useReactiveProp('showItemsPerPage', false)
|
|
9
9
|
const showTotalItems = useReactiveProp('showTotalItems', true)
|
|
10
10
|
const maxVisiblePages = useReactiveProp('maxVisiblePages', 5)
|
|
11
|
-
const emit = defineEmits()
|
|
11
|
+
const emit = defineEmits(['page', 'prev', 'next', 'per-page'])
|
|
12
12
|
const selectedItemsPerPage = state(20)
|
|
13
13
|
|
|
14
14
|
const perPageOptions = [10, 20, 25, 50, 100]
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
const placeholder = useReactiveProp('placeholder', 'Search...')
|
|
17
17
|
const requested = useReactiveProp('searchValue', '')
|
|
18
18
|
const query = state(requested())
|
|
19
|
-
const emit = defineEmits()
|
|
19
|
+
const emit = defineEmits(['update:searchValue', 'search'])
|
|
20
20
|
|
|
21
21
|
effect(() => {
|
|
22
22
|
query.set(requested())
|
|
@@ -21,7 +21,7 @@ const liveRequired = useReactiveProp('required', false)
|
|
|
21
21
|
const liveSize = useReactiveProp('size', 'md' as SelectSize)
|
|
22
22
|
const liveName = useReactiveProp('name', '')
|
|
23
23
|
const liveId = useReactiveProp('id', '')
|
|
24
|
-
const emit = defineEmits()
|
|
24
|
+
const emit = defineEmits(['change', 'update:value'])
|
|
25
25
|
const generatedId = useId('select')
|
|
26
26
|
|
|
27
27
|
const sizeClasses: Record<SelectSize, string> = {
|
|
@@ -248,7 +248,7 @@ effect(() => {
|
|
|
248
248
|
page.set(1)
|
|
249
249
|
})
|
|
250
250
|
const columnMenuOpen = state(false)
|
|
251
|
-
const emit = defineEmits()
|
|
251
|
+
const emit = defineEmits(['column-visibility-change', 'page-change', 'page-size-change', 'update:selectedKeys', 'selection-change', 'sort', 'filter-change', 'search', 'export', 'row-action'])
|
|
252
252
|
|
|
253
253
|
/* ---------------------------------------------------------------- columns */
|
|
254
254
|
|
|
@@ -17,7 +17,7 @@ const variant = useReactiveProp<TabsVariant>('variant', 'underline')
|
|
|
17
17
|
const size = useReactiveProp<TabsSize>('size', 'md')
|
|
18
18
|
const fullWidth = useReactiveProp('fullWidth', false)
|
|
19
19
|
const activeTab = state(requestedTab())
|
|
20
|
-
const emit = defineEmits()
|
|
20
|
+
const emit = defineEmits(['update:activeTab', 'change'])
|
|
21
21
|
|
|
22
22
|
const sizeClasses: Record<TabsSize, string> = {
|
|
23
23
|
sm: 'text-sm py-2 px-3',
|
|
@@ -17,7 +17,7 @@ const liveName = useReactiveProp('name', '')
|
|
|
17
17
|
const liveId = useReactiveProp('id', '')
|
|
18
18
|
const liveAriaLabel = useReactiveProp('ariaLabel', '')
|
|
19
19
|
const liveClass = useReactiveProp('class', '')
|
|
20
|
-
const emit = defineEmits()
|
|
20
|
+
const emit = defineEmits(['update:value', 'input', 'change', 'blur'])
|
|
21
21
|
const generatedId = useId('textarea')
|
|
22
22
|
|
|
23
23
|
const resizeClasses: Record<TextareaResize, string> = {
|
|
@@ -11,7 +11,7 @@ const liveLabelPosition = useReactiveProp('labelPosition', 'right' as ToggleLabe
|
|
|
11
11
|
const liveName = useReactiveProp('name', '')
|
|
12
12
|
const liveId = useReactiveProp('id', '')
|
|
13
13
|
const liveAriaLabel = useReactiveProp('ariaLabel', '')
|
|
14
|
-
const emit = defineEmits()
|
|
14
|
+
const emit = defineEmits(['update:checked', 'change'])
|
|
15
15
|
const generatedId = useId('toggle')
|
|
16
16
|
|
|
17
17
|
const trackSizes: Record<ToggleSize, string> = {
|
|
@@ -24,7 +24,7 @@ const liveVariant = useReactiveProp('variant', 'macos' as WindowControlVariant)
|
|
|
24
24
|
const liveSize = useReactiveProp('size', 'md' as WindowControlSize)
|
|
25
25
|
const liveShowLabels = useReactiveProp('showLabels', false)
|
|
26
26
|
const liveDisabled = useReactiveProp('disabled', false)
|
|
27
|
-
const emit = defineEmits()
|
|
27
|
+
const emit = defineEmits(['close', 'minimize', 'maximize'])
|
|
28
28
|
const windowControls = useWindowControls()
|
|
29
29
|
|
|
30
30
|
const sizeConfig: Record<WindowControlSize, { button: string, gap: string, icon: string }> = {
|
|
@@ -14,7 +14,7 @@ import { dialog } from '@stacksjs/mobile'
|
|
|
14
14
|
* For a sheet asked from code rather than declared, `useActionSheet()` and
|
|
15
15
|
* `confirmAction()` from @stacksjs/mobile do the same in one call.
|
|
16
16
|
*/
|
|
17
|
-
const emit = defineEmits()
|
|
17
|
+
const emit = defineEmits(['select', 'close'])
|
|
18
18
|
const open = useModel('open', { default: false })
|
|
19
19
|
const title = useReactiveProp<string>('title', '')
|
|
20
20
|
const message = useReactiveProp<string>('message', '')
|
|
@@ -13,7 +13,7 @@ import { haptics, observeLongPress, showContextMenuFor } from '@stacksjs/mobile'
|
|
|
13
13
|
* `symbol` an SF Symbol for the native menu, `icon` an Iconify class for the
|
|
14
14
|
* web one. Listen for `select`, which carries the chosen id.
|
|
15
15
|
*/
|
|
16
|
-
const emit = defineEmits()
|
|
16
|
+
const emit = defineEmits(['select'])
|
|
17
17
|
const items = useReactiveProp<ContextMenuItem[]>('items', [])
|
|
18
18
|
const title = useReactiveProp<string>('title', '')
|
|
19
19
|
const delay = useReactiveProp<number>('delay', 500)
|
|
@@ -5,7 +5,7 @@ import { device, haptics, health, isNativeMobile } from '@stacksjs/mobile'
|
|
|
5
5
|
const types = useReactiveProp<HealthDataType[]>('types', ['steps', 'distance', 'activeEnergy', 'heartRate', 'workouts'])
|
|
6
6
|
const className = useReactiveProp<string>('class', 'inline-flex min-h-11 items-center justify-center gap-2 rounded-xl px-4 text-sm font-semibold')
|
|
7
7
|
const status = state<'idle' | 'requesting' | 'connected' | 'denied' | 'unavailable' | 'error'>('idle')
|
|
8
|
-
const emit = defineEmits()
|
|
8
|
+
const emit = defineEmits(['change', 'error'])
|
|
9
9
|
|
|
10
10
|
const provider = derived(() => device.isIOS() ? 'Apple Health' : device.isAndroid() ? 'Health Connect' : 'Health')
|
|
11
11
|
const buttonLabel = derived(() => {
|
|
@@ -9,7 +9,7 @@ const grantedLabel = useReactiveProp<string>('grantedLabel', 'Access allowed')
|
|
|
9
9
|
const className = useReactiveProp<string>('class', 'inline-flex min-h-11 items-center justify-center gap-2 rounded-xl px-4 text-sm font-semibold')
|
|
10
10
|
const status = state<PermissionStatus>('undetermined')
|
|
11
11
|
const busy = state(false)
|
|
12
|
-
const emit = defineEmits()
|
|
12
|
+
const emit = defineEmits(['change', 'error'])
|
|
13
13
|
|
|
14
14
|
onMount(() => {
|
|
15
15
|
void permissions.check(permission()).then(status.set).catch(() => status.set('undetermined'))
|
|
@@ -16,7 +16,7 @@ import { observeNativeRefresh, observePullToRefresh, refresh, resolveScrollHost,
|
|
|
16
16
|
* (by CSS selector) a container the screen scrolls in instead of the page;
|
|
17
17
|
* the native control covers only the page, so a scroll host uses the gesture.
|
|
18
18
|
*/
|
|
19
|
-
const emit = defineEmits()
|
|
19
|
+
const emit = defineEmits(['refresh'])
|
|
20
20
|
const threshold = useReactiveProp<number>('threshold', 72)
|
|
21
21
|
const label = useReactiveProp<string>('label', 'Refreshing')
|
|
22
22
|
const scrollHost = useReactiveProp<string>('scrollHost', '')
|
|
@@ -12,7 +12,7 @@ import { focusSegment, haptics, observeSegmentScrub, segmentForKey } from '@stac
|
|
|
12
12
|
*/
|
|
13
13
|
interface SegmentOption { label: string, value: string }
|
|
14
14
|
|
|
15
|
-
const emit = defineEmits()
|
|
15
|
+
const emit = defineEmits(['change'])
|
|
16
16
|
const rawOptions = useReactiveProp<Array<string | SegmentOption>>('options', [])
|
|
17
17
|
const ariaLabel = useReactiveProp<string>('label', 'View')
|
|
18
18
|
const className = useReactiveProp<string>('class', '')
|
|
@@ -30,7 +30,7 @@ import { coverTabBar, liftToBody, observeSheetDrag, presentPageAsCard } from '@s
|
|
|
30
30
|
* sheet opened over a drawer, closes with one Escape and leaves the layer
|
|
31
31
|
* under it up, locked and in charge of the keyboard.
|
|
32
32
|
*/
|
|
33
|
-
const emit = defineEmits()
|
|
33
|
+
const emit = defineEmits(['close'])
|
|
34
34
|
const open = useModel('open', { default: false })
|
|
35
35
|
const title = useReactiveProp<string>('title', '')
|
|
36
36
|
const doneLabel = useReactiveProp<string>('doneLabel', 'Done')
|