bitboss-ui 3.0.0-beta.69 → 3.0.0-beta.70
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/README.md +20 -11
- package/bin/bitboss-ui-mcp.mjs +7 -4
- package/bin/bitboss-ui.mjs +0 -0
- package/bin/cli.mjs +47 -28
- package/dist/ai/BbBaseButton.md +4 -4
- package/dist/ai/BbCarousel.md +32 -29
- package/dist/ai/BbCheckboxGroup.md +15 -12
- package/dist/ai/BbColorInput.md +6 -10
- package/dist/ai/BbDropzone.md +3 -3
- package/dist/ai/BbGallery.md +2034 -0
- package/dist/ai/BbPopover.md +12 -6
- package/dist/ai/BbRadioGroup.md +18 -15
- package/dist/ai/BbRating.md +3 -7
- package/dist/ai/BbSwitchGroup.md +3 -3
- package/dist/ai/BbTextInput.md +8 -8
- package/dist/ai/OptionsContainer.md +10 -7
- package/dist/ai/changelog.json +80 -4
- package/dist/ai/components.json +19 -14
- package/dist/ai/guides/ai-router.md +3 -2
- package/dist/ai/guides/component-picker.md +1 -0
- package/dist/ai/guides/eslint-rules.md +3 -3
- package/dist/ai/guides/installation-and-plugin-setup.md +5 -5
- package/dist/ai/guides/migration/v2-to-v3.md +29 -1
- package/dist/ai/guides/migration/v3-beta-tooling.md +25 -15
- package/dist/ai/guides/passthrough.md +2 -1
- package/dist/ai/guides/preset-components.md +19 -10
- package/dist/ai/helpers/definePreset.ts +8 -4
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +2 -1
- package/dist/ai/manifest/components/BbCarousel.json +3 -2
- package/dist/ai/manifest/components/BbCarousel.tree.json +7 -0
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +13 -11
- package/dist/ai/manifest/components/BbConfigScope.json +1 -1
- package/dist/ai/manifest/components/BbGallery.json +54 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +139 -0
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +12 -10
- package/dist/ai/manifest/components/BbRating.removed.json +1 -1
- package/dist/ai/manifest/components/BbSlider.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +1 -1
- package/dist/ai/manifest/components/BbTabs.removed.json +4 -4
- package/dist/ai/manifest/components/BbTabsList.removed.json +4 -4
- package/dist/ai/manifest/components/OptionsContainer.tree.json +10 -7
- package/dist/ai/manifest/index.json +4 -3
- package/dist/ai/manifest/meta.json +5 -1
- package/dist/ai/manifest/types.advanced.json +3 -1
- package/dist/ai/manifest/types.api.json +1 -1
- package/dist/ai/manifest/types.wrapper.json +1 -0
- package/dist/ai/recipes/inertia/onboarding.md +5 -8
- package/dist/ai/recipes/inertia/record-form.md +33 -12
- package/dist/ai/recipes/nuxt/onboarding.md +5 -8
- package/dist/ai/recipes/nuxt/record-form.md +27 -11
- package/dist/ai/recipes/vue/onboarding.md +5 -8
- package/dist/ai/recipes/vue/record-form.md +25 -11
- package/dist/ai/source/BbCalendar.md +2 -0
- package/dist/ai/source/BbCarousel.md +135 -32
- package/dist/ai/source/BbDropdown.md +2 -0
- package/dist/ai/source/BbDropdownGroup.md +2 -0
- package/dist/ai/source/BbGallery.md +2027 -0
- package/dist/ai/source/BbRadioGroup.md +2 -2
- package/dist/ai/source/BbSelectPopover.md +1 -0
- package/dist/ai/source/BbSwitchGroup.md +1 -0
- package/dist/ai/source/BbTable.md +11 -7
- package/dist/ai/source/BbTree.md +7 -3
- package/dist/ai/source/CommonPopover.md +13 -3
- package/dist/ai/source/FlatListBox.md +3 -3
- package/dist/ai/source/GroupedListBox.md +3 -3
- package/dist/ai/source/ListBox.md +4 -4
- package/dist/ai/source/OptionsContainer.md +4 -4
- package/dist/components/BbCalendar/useDayjsLocale.js +5 -3
- package/dist/components/BbCarousel/BbCarousel.vue.d.ts +1 -1
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +506 -481
- package/dist/components/BbCarousel/dragRelease.js +14 -0
- package/dist/components/BbCarousel/ptKeys.generated.d.ts +4 -0
- package/dist/components/BbCarousel/types.d.ts +11 -6
- package/dist/components/BbCarousel/types.js +1 -0
- package/dist/components/BbGallery/BbGallery.vue.d.ts +50 -0
- package/dist/components/BbGallery/BbGallery.vue.js +5 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +587 -0
- package/dist/components/BbGallery/findItem.js +41 -0
- package/dist/components/BbGallery/ptKeys.generated.d.ts +112 -0
- package/dist/components/BbGallery/types.d.ts +177 -0
- package/dist/components/BbGallery/types.js +29 -0
- package/dist/components/BbOffCanvas/sheetSnap.d.ts +2 -0
- package/dist/components/BbOffCanvas/sheetSnap.js +5 -5
- package/dist/components/BbRadioGroup/types.d.ts +2 -2
- package/dist/components/BbTable/types.d.ts +7 -7
- package/dist/components/BbTree/types.d.ts +3 -3
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +28 -26
- package/dist/composables/overlayRegistry.d.ts +17 -0
- package/dist/composables/overlayRegistry.js +16 -9
- package/dist/composables/useChoiceIndicator.js +1 -1
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbGallery.d.ts +64 -0
- package/dist/directives/bbGallery.js +38 -0
- package/dist/i18n/locales/ar.json +3 -1
- package/dist/i18n/locales/cs.json +3 -1
- package/dist/i18n/locales/da.json +3 -1
- package/dist/i18n/locales/de-CH.json +3 -1
- package/dist/i18n/locales/de.json +3 -1
- package/dist/i18n/locales/el.json +3 -1
- package/dist/i18n/locales/en-GB.json +3 -1
- package/dist/i18n/locales/en.json +3 -1
- package/dist/i18n/locales/es-MX.json +3 -1
- package/dist/i18n/locales/es.json +3 -1
- package/dist/i18n/locales/fa.json +3 -1
- package/dist/i18n/locales/fi.json +3 -1
- package/dist/i18n/locales/fr.json +3 -1
- package/dist/i18n/locales/he.json +3 -1
- package/dist/i18n/locales/hu.json +3 -1
- package/dist/i18n/locales/it.json +3 -1
- package/dist/i18n/locales/ja.json +3 -1
- package/dist/i18n/locales/ko.json +3 -1
- package/dist/i18n/locales/nb.json +3 -1
- package/dist/i18n/locales/nl.json +3 -1
- package/dist/i18n/locales/pl.json +3 -1
- package/dist/i18n/locales/pt-BR.json +3 -1
- package/dist/i18n/locales/pt-PT.json +3 -1
- package/dist/i18n/locales/ro.json +3 -1
- package/dist/i18n/locales/ru.json +3 -1
- package/dist/i18n/locales/sv.json +3 -1
- package/dist/i18n/locales/tr.json +3 -1
- package/dist/i18n/locales/uk.json +3 -1
- package/dist/i18n/locales/zh-CN.json +3 -1
- package/dist/i18n/locales/zh-HK.json +3 -1
- package/dist/i18n/locales/zh-TW.json +3 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +38 -36
- package/dist/llms-full.txt +2328 -185
- package/dist/llms-medium.txt +10 -7
- package/dist/llms.txt +1 -1
- package/dist/locale-blueprint.json +3 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/plugin.js +18 -17
- package/dist/project-dts.js +17 -16
- package/dist/runtime/nuxt-plugin.js +22 -21
- package/dist/scripts/lib/atomic-write.js +42 -0
- package/dist/styles.css +2 -2
- package/dist/types/passthrough.d.ts +2 -2
- package/dist/types/ptComponentMap.d.ts +2 -1
- package/dist/utilities/calendar/canonicalParts.js +10 -2
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +361 -331
- package/llms.txt +2 -2
- package/package.json +2 -1
- package/scripts/README.md +25 -25
- package/scripts/lib/agent-refresh.mjs +15 -9
- package/scripts/lib/agent-setup.mjs +46 -15
- package/scripts/lib/atomic-write.d.mts +6 -0
- package/scripts/lib/atomic-write.mjs +85 -0
- package/scripts/lib/define-preset-copy.mjs +23 -3
- package/scripts/lib/eslint-plugin.mjs +74 -36
- package/scripts/lib/hand-imported-styles.mjs +44 -99
- package/scripts/lib/helpers-add.mjs +3 -1
- package/scripts/lib/linked-target.mjs +1 -1
- package/scripts/lib/locale-check.mjs +41 -25
- package/scripts/lib/mcp-config.mjs +250 -133
- package/scripts/lib/mcp-sdk.mjs +24 -0
- package/scripts/lib/plugin-options-check.mjs +22 -15
- package/scripts/lib/pnp.mjs +1 -1
- package/scripts/lib/project-variant-dts.mjs +80 -136
- package/scripts/lib/release-results.mjs +331 -0
- package/scripts/lib/setup.mjs +53 -3
- package/scripts/lib/toolchain-check.mjs +10 -8
- package/scripts/lib/tooling-options.mjs +357 -38
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +0 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +0 -55
- package/dist/components/BbBaseButton/RouterComponent.vue.d.ts +0 -18
- package/dist/components/BbBaseButton/useLinkState.d.ts +0 -43
- package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.d.ts +0 -18
- package/dist/components/BbButton/toggleRoving.d.ts +0 -6
- package/dist/components/BbCalendar/CalendarMonthPanel.vue.d.ts +0 -5
- package/dist/components/BbCalendar/CalendarYearPanel.vue.d.ts +0 -5
- package/dist/components/BbCalendar/calendarHost.d.ts +0 -29
- package/dist/components/BbCalendar/calendarMath.d.ts +0 -102
- package/dist/components/BbCalendar/useCalendarContext.d.ts +0 -116
- package/dist/components/BbCalendar/useCalendarGrid.d.ts +0 -411
- package/dist/components/BbCalendar/useDayGrid.d.ts +0 -122
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +0 -93
- package/dist/components/BbCalendar/useToday.d.ts +0 -25
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +0 -4
- package/dist/components/BbConfirm/BbConfirmHost.d.ts +0 -10
- package/dist/components/BbConfirm/confirmEntry.d.ts +0 -4
- package/dist/components/BbDatePickerInput/calendarFields.d.ts +0 -91
- package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +0 -29
- package/dist/components/BbDialog/useDialogStack.d.ts +0 -19
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +0 -26
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +0 -38
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +0 -16
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +0 -41
- package/dist/components/BbDropdown/normalizeGroups.d.ts +0 -39
- package/dist/components/BbDropdown/pointerTrail.d.ts +0 -5
- package/dist/components/BbDropdown/useDropdownContext.d.ts +0 -131
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +0 -170
- package/dist/components/BbForm/BbFormCustomField.d.ts +0 -14
- package/dist/components/BbForm/bindFormField.d.ts +0 -56
- package/dist/components/BbForm/formFields.d.ts +0 -77
- package/dist/components/BbHost/BbHostOpening.d.ts +0 -27
- package/dist/components/BbHoverCard/hoverCardFocus.d.ts +0 -29
- package/dist/components/BbIcon/iconCache.d.ts +0 -63
- package/dist/components/BbNumberInput/numberDisplay.d.ts +0 -255
- package/dist/components/BbNumberInput/platform.d.ts +0 -7
- package/dist/components/BbOffCanvas/hostCloseLabel.d.ts +0 -3
- package/dist/components/BbOffCanvas/sheetAttrs.d.ts +0 -9
- package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +0 -37
- package/dist/components/BbPagination/paginationFit.d.ts +0 -38
- package/dist/components/BbSelectPopover/knownItems.d.ts +0 -65
- package/dist/components/BbSelectPopover/reclickClears.d.ts +0 -17
- package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +0 -18
- package/dist/components/BbTable/BbTableDataRow.d.ts +0 -204
- package/dist/components/BbTable/BbTableEdgeRow.d.ts +0 -112
- package/dist/components/BbTable/BbTableExpandRow.d.ts +0 -84
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +0 -128
- package/dist/components/BbTable/estimatedFloors.golden.d.ts +0 -25
- package/dist/components/BbTable/gridWidgets.d.ts +0 -30
- package/dist/components/BbTable/measuredFloors.d.ts +0 -46
- package/dist/components/BbTable/measuredFloorsTestKit.d.ts +0 -27
- package/dist/components/BbTable/textRuler.d.ts +0 -73
- package/dist/components/BbTable/useRowReorder.d.ts +0 -60
- package/dist/components/BbTable/utils.d.ts +0 -375
- package/dist/components/BbTabs/tablistName.d.ts +0 -4
- package/dist/components/BbToast/BbToast.vue.d.ts +0 -5
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +0 -22
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +0 -15
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +0 -23
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +0 -19
- package/dist/components/BbTree/context.d.ts +0 -25
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +0 -21
- package/dist/components/ChipsBox/types.d.ts +0 -28
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +0 -6
- package/dist/components/ClearableButton/types.d.ts +0 -9
- package/dist/components/CloseIcon/CloseButton.vue.d.ts +0 -7
- package/dist/components/CloseIcon/types.d.ts +0 -2
- package/dist/components/CommaBox/CommaBox.vue.d.ts +0 -21
- package/dist/components/CommaBox/types.d.ts +0 -20
- package/dist/components/CommonField/CommonField.vue.d.ts +0 -20
- package/dist/components/CommonField/messageHeightMatrix.d.ts +0 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +0 -22
- package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +0 -10
- package/dist/components/CommonFieldInput/types.d.ts +0 -114
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +0 -42
- package/dist/components/CommonPopover/resolvePlacement.d.ts +0 -9
- package/dist/components/CommonPopover/types.d.ts +0 -120
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +0 -48
- package/dist/components/CommonTimeSelector/useMeridiem.d.ts +0 -19
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +0 -7
- package/dist/components/ErrorIcon/types.d.ts +0 -3
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +0 -39
- package/dist/components/FlatListBox/types.d.ts +0 -140
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +0 -39
- package/dist/components/GroupedListBox/types.d.ts +0 -163
- package/dist/components/ListBox/ListBox.vue.d.ts +0 -39
- package/dist/components/ListBox/types.d.ts +0 -180
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +0 -20
- package/dist/components/OptionsContainer/types.d.ts +0 -168
- package/dist/components/Transitions/ScaleFade.vue.d.ts +0 -28
- package/dist/components/Transitions/Slide.vue.d.ts +0 -39
- package/dist/components/WarningIcon/WarningIcon.vue.d.ts +0 -7
- package/dist/components/WarningIcon/types.d.ts +0 -3
- package/dist/composables/__testResets.d.ts +0 -1
- package/dist/composables/autoHost.d.ts +0 -22
- package/dist/composables/formSubmitLock.d.ts +0 -48
- package/dist/composables/hostOpenings.d.ts +0 -88
- package/dist/composables/hostRegistry.d.ts +0 -47
- package/dist/composables/ssrMarker.d.ts +0 -15
- package/dist/composables/useActiveInactiveState.d.ts +0 -4
- package/dist/composables/useArray.d.ts +0 -7
- package/dist/composables/useBaseOptions.d.ts +0 -51
- package/dist/composables/useBodyScrollLock.d.ts +0 -4
- package/dist/composables/useBreakpoint.d.ts +0 -13
- package/dist/composables/useCancelableFunction.d.ts +0 -17
- package/dist/composables/useChoiceIndicator.d.ts +0 -58
- package/dist/composables/useClosingInert.d.ts +0 -28
- package/dist/composables/useCoarsePointer.d.ts +0 -9
- package/dist/composables/useCoherence.d.ts +0 -21
- package/dist/composables/useConfig.d.ts +0 -59
- package/dist/composables/useConfigDefaults.d.ts +0 -54
- package/dist/composables/useDirection.d.ts +0 -43
- package/dist/composables/useEscapeStackEntry.d.ts +0 -13
- package/dist/composables/useFrameworkDetection.d.ts +0 -12
- package/dist/composables/useHashedWatcher.d.ts +0 -19
- package/dist/composables/useHydrated.d.ts +0 -37
- package/dist/composables/useImeDismissBlur.d.ts +0 -103
- package/dist/composables/useIndexById.d.ts +0 -11
- package/dist/composables/useInertiaPage.d.ts +0 -10
- package/dist/composables/useItemText.d.ts +0 -17
- package/dist/composables/useItemValue.d.ts +0 -7
- package/dist/composables/useItemsGetter.d.ts +0 -83
- package/dist/composables/useKeyboardInset.d.ts +0 -28
- package/dist/composables/useListboxFocus.d.ts +0 -21
- package/dist/composables/useLocale.d.ts +0 -5
- package/dist/composables/useLogger.d.ts +0 -5
- package/dist/composables/useMinimalQueue.d.ts +0 -9
- package/dist/composables/useOnFalsy.d.ts +0 -2
- package/dist/composables/useOnTruthy.d.ts +0 -7
- package/dist/composables/useOverlayNavigation.d.ts +0 -37
- package/dist/composables/useOverlayYield.d.ts +0 -23
- package/dist/composables/usePrefill.d.ts +0 -44
- package/dist/composables/useQuery.d.ts +0 -39
- package/dist/composables/useRefusedCloseAnnouncement.d.ts +0 -13
- package/dist/composables/useRoute.d.ts +0 -3
- package/dist/composables/useRouter.d.ts +0 -2
- package/dist/composables/useSegmentedFields.d.ts +0 -129
- package/dist/composables/useServerPrefetch.d.ts +0 -28
- package/dist/composables/useSheetSurface.d.ts +0 -39
- package/dist/composables/useSsrState.d.ts +0 -28
- package/dist/composables/useTableWidthContext.d.ts +0 -73
- package/dist/composables/useToggleInput.d.ts +0 -44
- package/dist/composables/useTopLayer.d.ts +0 -9
- package/dist/composables/useTypeahead.d.ts +0 -112
- package/dist/composables/useUntil.d.ts +0 -7
- package/dist/composables/useUrlQueryParam.d.ts +0 -21
- package/dist/composables/useViewportWidth.d.ts +0 -14
- package/dist/deprecation/ai-deprecations.json.d.ts +0 -2984
- package/dist/deprecation/removedProps.d.ts +0 -3
- package/dist/directives/createPopoverDirective.d.ts +0 -111
- package/dist/directives/renderingInstance.d.ts +0 -2
- package/dist/i18n/eraNames.d.ts +0 -2
- package/dist/i18n/regionHints.d.ts +0 -16
- package/dist/icons-whitelist.d.ts +0 -9
- package/dist/reset.d.ts +0 -0
- package/dist/runtime/nuxt-plugin.d.ts +0 -2
- package/dist/styles.d.ts +0 -0
- package/dist/types/ExtractGenericFromComputedRef.d.ts +0 -2
- package/dist/types/ExtractGenericFromRef.d.ts +0 -2
- package/dist/types/NestedKeyOf.d.ts +0 -3
- package/dist/types/PrefixWith.d.ts +0 -1
- package/dist/types/ShapeErased.d.ts +0 -15
- package/dist/types/Simplify.d.ts +0 -6
- package/dist/utilities/calendar/canonicalParts.d.ts +0 -29
- package/dist/utilities/calendar/digits.d.ts +0 -18
- package/dist/utilities/calendar/gregorian.d.ts +0 -2
- package/dist/utilities/calendar/index.d.ts +0 -3
- package/dist/utilities/calendar/international.d.ts +0 -19
- package/dist/utilities/calendar/resolve.d.ts +0 -32
- package/dist/utilities/calendar/runtime.d.ts +0 -49
- package/dist/utilities/functions/animationsSettled.d.ts +0 -7
- package/dist/utilities/functions/bytesToUnit.d.ts +0 -2
- package/dist/utilities/functions/chunk.d.ts +0 -1
- package/dist/utilities/functions/clamp.d.ts +0 -9
- package/dist/utilities/functions/clampPrecision.d.ts +0 -1
- package/dist/utilities/functions/convertDateValue.d.ts +0 -57
- package/dist/utilities/functions/curry.d.ts +0 -6
- package/dist/utilities/functions/deburr.d.ts +0 -1
- package/dist/utilities/functions/elementLabel.d.ts +0 -8
- package/dist/utilities/functions/empty.d.ts +0 -1
- package/dist/utilities/functions/extractDomContainer.d.ts +0 -20
- package/dist/utilities/functions/findInTree.d.ts +0 -4
- package/dist/utilities/functions/flattenTree.d.ts +0 -1
- package/dist/utilities/functions/get.d.ts +0 -3
- package/dist/utilities/functions/hasVnodeListener.d.ts +0 -16
- package/dist/utilities/functions/hash.d.ts +0 -1
- package/dist/utilities/functions/head.d.ts +0 -2
- package/dist/utilities/functions/identity.d.ts +0 -1
- package/dist/utilities/functions/indexBy.d.ts +0 -11
- package/dist/utilities/functions/isDateDisabled.d.ts +0 -25
- package/dist/utilities/functions/isEqual.d.ts +0 -1
- package/dist/utilities/functions/isHex.d.ts +0 -1
- package/dist/utilities/functions/isImeComposing.d.ts +0 -7
- package/dist/utilities/functions/isNil.d.ts +0 -6
- package/dist/utilities/functions/isNotEmpty.d.ts +0 -1
- package/dist/utilities/functions/isNotNil.d.ts +0 -6
- package/dist/utilities/functions/isTextEntry.d.ts +0 -5
- package/dist/utilities/functions/isoWeek.d.ts +0 -36
- package/dist/utilities/functions/itemProps.d.ts +0 -46
- package/dist/utilities/functions/last.d.ts +0 -2
- package/dist/utilities/functions/negative.d.ts +0 -1
- package/dist/utilities/functions/noop.d.ts +0 -1
- package/dist/utilities/functions/normalizeDateBound.d.ts +0 -69
- package/dist/utilities/functions/parsePaginationNumber.d.ts +0 -22
- package/dist/utilities/functions/parseSize.d.ts +0 -3
- package/dist/utilities/functions/parseWidthString.d.ts +0 -6
- package/dist/utilities/functions/percentage.d.ts +0 -26
- package/dist/utilities/functions/pickBy.d.ts +0 -1
- package/dist/utilities/functions/range.d.ts +0 -1
- package/dist/utilities/functions/readableValue.d.ts +0 -6
- package/dist/utilities/functions/reject.d.ts +0 -25
- package/dist/utilities/functions/resolveEnumProp.d.ts +0 -19
- package/dist/utilities/functions/responsiveDefault.d.ts +0 -7
- package/dist/utilities/functions/searchRank.d.ts +0 -19
- package/dist/utilities/functions/settlesVisible.d.ts +0 -20
- package/dist/utilities/functions/snapToStep.d.ts +0 -1
- package/dist/utilities/functions/sort.d.ts +0 -6
- package/dist/utilities/functions/throttle.d.ts +0 -1
- package/dist/utilities/functions/toggleInput.d.ts +0 -114
- package/dist/utilities/functions/transpose.d.ts +0 -1
- package/dist/utilities/functions/validateDateFormat.d.ts +0 -8
- package/dist/utilities/functions/wait.d.ts +0 -2
- package/dist/utilities/functions/waitFor.d.ts +0 -9
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +0 -49
- package/dist/utilities/functions/when.d.ts +0 -9
- package/dist/utilities/misc/autofocus.d.ts +0 -20
- package/dist/utilities/misc/iconsInjectionKey.d.ts +0 -15
- package/dist/utilities/misc/listboxMetrics.d.ts +0 -47
- package/dist/utilities/misc/maskaDataOptions.d.ts +0 -12
- package/dist/utilities/misc/pageText.d.ts +0 -16
- package/dist/utilities/misc/ssrValue.d.ts +0 -20
- package/dist/utilities/misc/transitions.d.ts +0 -5
- package/dist/utils/configDefaults.d.ts +0 -43
- package/dist/utils/configScope.d.ts +0 -43
- package/dist/utils/copyData.d.ts +0 -13
- package/dist/utils/focusVisibility.d.ts +0 -15
- package/dist/utils/injectLibraryStyles.d.ts +0 -8
- package/dist/utils/overlayEscapeStack.d.ts +0 -52
- package/dist/utils/overlaySurfaceIsolation.d.ts +0 -1
- package/dist/utils/passthroughDeduper.d.ts +0 -16
- package/dist/utils/releasedActivator.d.ts +0 -20
- package/dist/utils/versionCheck.d.ts +0 -19
package/dist/vite.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import { DEFAULT_MAX_FILE_SIZE as e, IconScanner as t, extractIconCandidates as n, globToRegExp as r, hasGlobMagic as i, iconLiteralRegExp as a, iconScanCacheFile as o } from "./icon-scan.js";
|
|
2
2
|
import { BB_LAYERS as s, TAILWIND_V3_LAYERS as c, TAILWIND_V4_LAYERS as l, validateCssLayers as u } from "./utils/cssLayers.js";
|
|
3
|
-
import { BUILTIN_LOCALE_KEYS as d, DICTIONARY_HOME as f, LOCALE_TABLE as p, aliasesOf as ee, localeKeyOf as m, localePartsOf as
|
|
4
|
-
import { ERA_NAMES as
|
|
5
|
-
import { CALENDAR_FACTORIES as
|
|
6
|
-
import { invalidLocaleTag as
|
|
7
|
-
import { regionHints as
|
|
8
|
-
import { validatePtGlobalMap as
|
|
9
|
-
import { closestName as
|
|
10
|
-
import { DEFAULT_VARIANT_REGISTRIES as
|
|
11
|
-
import { DEFAULTS_ALLOWLIST as
|
|
12
|
-
import { existsSync as
|
|
13
|
-
import { basename as
|
|
14
|
-
import { fileURLToPath as
|
|
15
|
-
import { createRequire as
|
|
16
|
-
import { convertParsedSVG as
|
|
3
|
+
import { BUILTIN_LOCALE_KEYS as d, DICTIONARY_HOME as f, LOCALE_TABLE as p, aliasesOf as ee, localeKeyOf as m, localePartsOf as te, nearestLocaleKey as ne } from "./i18n/regions.js";
|
|
4
|
+
import { ERA_NAMES as re } from "./i18n/eraNames.js";
|
|
5
|
+
import { CALENDAR_FACTORIES as ie, CALENDAR_IDS as ae } from "./utilities/calendar/types.js";
|
|
6
|
+
import { invalidLocaleTag as oe, isDecimalSystem as se, localeExtensionWarnings as ce } from "./locale-tags.js";
|
|
7
|
+
import { regionHints as h } from "./i18n/regionHints.js";
|
|
8
|
+
import { validatePtGlobalMap as le } from "./utils/passthrough.js";
|
|
9
|
+
import { closestName as g, ptOfComponents as ue, validateComponentsMap as de, validateConfigScopes as fe, validateRemovedOptions as pe, validateUnknownOptions as me, withoutPt as he } from "./utils/configDefaults.js";
|
|
10
|
+
import { DEFAULT_VARIANT_REGISTRIES as _, VARIANT_COMPONENTS as ge, VARIANT_PT_COMPONENTS as v, VARIANT_REGISTRY_OPTIONS as y, customVariants as _e, emptyStringControls as ve, flattenVariants as ye, isInTypeScriptProgram as be, projectVariantRegistries as xe, resolveProjectDtsPath as Se, variantIconsOf as Ce, variantOptionLabel as b, writeProjectDts as we } from "./project-dts.js";
|
|
11
|
+
import { DEFAULTS_ALLOWLIST as x } from "./types/ConfigDefaults.js";
|
|
12
|
+
import { existsSync as S, mkdirSync as C, readFileSync as w, readdirSync as T, writeFileSync as E } from "node:fs";
|
|
13
|
+
import { basename as Te, dirname as D, isAbsolute as O, join as k, relative as Ee, resolve as A } from "node:path";
|
|
14
|
+
import { fileURLToPath as j } from "node:url";
|
|
15
|
+
import { createRequire as M } from "node:module";
|
|
16
|
+
import { convertParsedSVG as De, getIconData as N, iconToHTML as Oe, iconToSVG as P, parseSVGContent as ke, stringToIcon as Ae } from "@iconify/utils";
|
|
17
17
|
// src/vite-plugin.ts
|
|
18
|
-
function
|
|
19
|
-
let t =
|
|
18
|
+
function je(e) {
|
|
19
|
+
let t = P(e, {
|
|
20
20
|
width: "unset",
|
|
21
21
|
height: "unset"
|
|
22
22
|
});
|
|
23
|
-
return
|
|
23
|
+
return Oe(t.body, t.attributes);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function F(e, t) {
|
|
26
26
|
try {
|
|
27
|
-
let n =
|
|
28
|
-
return JSON.parse(
|
|
27
|
+
let n = M(k(e, "package.json"));
|
|
28
|
+
return JSON.parse(w(n.resolve(`${t}/icons.json`), "utf-8"));
|
|
29
29
|
} catch {
|
|
30
30
|
return null;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Me(e, t) {
|
|
34
34
|
return e !== "heroicons" || !/-(?:20|16)-/.test(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
let t =
|
|
36
|
+
function Ne(e) {
|
|
37
|
+
let t = A(e);
|
|
38
38
|
for (;;) {
|
|
39
|
-
let e =
|
|
40
|
-
if (
|
|
41
|
-
let n =
|
|
39
|
+
let e = k(t, "node_modules", "@iconify-json");
|
|
40
|
+
if (S(e)) return e;
|
|
41
|
+
let n = D(t);
|
|
42
42
|
if (n === t) return null;
|
|
43
43
|
t = n;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Pe(e) {
|
|
47
47
|
try {
|
|
48
|
-
let t =
|
|
48
|
+
let t = Ne(e);
|
|
49
49
|
if (!t) return [];
|
|
50
|
-
let n =
|
|
51
|
-
return
|
|
52
|
-
let r =
|
|
50
|
+
let n = D(D(t));
|
|
51
|
+
return T(t, { encoding: "utf-8" }).flatMap((t) => {
|
|
52
|
+
let r = F(n, `@iconify-json/${t}`) ?? F(e, `@iconify-json/${t}`);
|
|
53
53
|
return r ? [r] : [];
|
|
54
54
|
});
|
|
55
55
|
} catch {
|
|
56
56
|
return [];
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Fe(e) {
|
|
60
60
|
try {
|
|
61
|
-
let t =
|
|
61
|
+
let t = M(k(e, "package.json")), n = JSON.parse(w(t.resolve("@iconify/collections/collections.json"), "utf-8"));
|
|
62
62
|
return new Set(Object.keys(n));
|
|
63
63
|
} catch {
|
|
64
64
|
return /* @__PURE__ */ new Set();
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
var
|
|
67
|
+
var Ie = "(key, loaded, known, all, ip) => {\n const c = key.indexOf(':'); const p = key.slice(0, c); const n = key.slice(c + 1);\n if (p === 'local' || !/^[a-z][a-z0-9-]*$/.test(p) || !/^[a-z0-9][a-z0-9-]*$/.test(n)) return null;\n const installed = loaded.size ? `installed sets: ${[...loaded].join(', ')}` : 'no @iconify-json/* set is installed';\n const fix = `If the name is composed at runtime or comes from a database, add it to the plugin's \\`iconWhitelist\\``;\n if (loaded.has(p)) {\n const set = all(p);\n if (set && set.includes(n)) return `[bitboss-ui] icon \"${key}\" exists in the ${p} icon set but is not bundled: no scanned source file contains the literal \"${key}\" and it is not in \\`iconWhitelist\\`. Write it as a literal, or — if the name is composed at runtime or comes from a database — add it to the plugin's \\`iconWhitelist\\`.`;\n const names = set ?? known(p);\n const sq = n.replace(/-/g, '');\n const sug = names.find((x) => x.replace(/-/g, '') === sq) ?? (n.length >= 3 ? names.find((x) => x.includes(n) || (x.length >= 3 && n.includes(x))) : undefined);\n const hint = sug ? ` — did you mean \"${p}:${sug}\"?` : '';\n if (set) return `[bitboss-ui] icon \"${key}\" does not exist in the ${p} icon set${hint}`;\n return `[bitboss-ui] icon \"${key}\" is not bundled: it is not among the ${p} names found as literals in scanned source, nor in \\`iconWhitelist\\`${hint}. ${fix}; if it is a typo, fix the name.`;\n }\n const pkg = `@iconify-json/${p}`; const cmd = `run: npm install -D ${pkg}`;\n if (ip.has(p)) return `[bitboss-ui] \"${key}\" requires \"${pkg}\" — ${cmd} (${installed})`;\n if (ip.size) return `[bitboss-ui] \"${key}\" — \"${p}\" is neither an installed icon set nor a known Iconify prefix (${installed})`;\n return `[bitboss-ui] \"${key}\" — no installed icon set has the prefix \"${p}\" (${installed}). If \"${p}\" is an Iconify set, ${cmd}`;\n}", I = Function(`return ${Ie};`)();
|
|
68
68
|
function Le(e, t) {
|
|
69
|
-
return [...Object.keys(e.icons), ...Object.keys(e.aliases ?? {})].filter((n) => (!t || t(n)) &&
|
|
69
|
+
return [...Object.keys(e.icons), ...Object.keys(e.aliases ?? {})].filter((n) => (!t || t(n)) && N(e, n) !== null);
|
|
70
70
|
}
|
|
71
71
|
function Re(e, t, n, a) {
|
|
72
72
|
let o = /* @__PURE__ */ new Set(), s = [], c = new Set(t.keys()), l = /* @__PURE__ */ new Map(), u = (e) => {
|
|
@@ -88,7 +88,7 @@ function Re(e, t, n, a) {
|
|
|
88
88
|
continue;
|
|
89
89
|
}
|
|
90
90
|
if (!c.has(f)) {
|
|
91
|
-
s.push(
|
|
91
|
+
s.push(I(e, c, u, (e) => c.has(e) ? u(e) : null, new Set(a)) ?? `[bitboss-ui] iconWhitelist entry "${l}" does not resolve`);
|
|
92
92
|
continue;
|
|
93
93
|
}
|
|
94
94
|
if (i(p)) {
|
|
@@ -101,7 +101,7 @@ function Re(e, t, n, a) {
|
|
|
101
101
|
continue;
|
|
102
102
|
}
|
|
103
103
|
let ee = t.get(f), m = n.get(f);
|
|
104
|
-
|
|
104
|
+
N(ee, p) && (!m || m(p)) ? o.add(e) : s.push(I(e, c, u, u, new Set(a)) ?? `[bitboss-ui] iconWhitelist entry "${l}" does not resolve`);
|
|
105
105
|
}
|
|
106
106
|
return {
|
|
107
107
|
icons: [...o],
|
|
@@ -109,61 +109,78 @@ function Re(e, t, n, a) {
|
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
function ze(e, t) {
|
|
112
|
-
let n =
|
|
112
|
+
let n = k(e, "node_modules", ".cache", "bitboss-ui", "version"), r = null;
|
|
113
113
|
try {
|
|
114
|
-
r =
|
|
114
|
+
r = w(n, "utf-8").trim() || null;
|
|
115
115
|
} catch {}
|
|
116
116
|
if (r === t) return null;
|
|
117
117
|
try {
|
|
118
|
-
|
|
118
|
+
C(D(n), { recursive: !0 }), E(n, t + "\n", "utf-8");
|
|
119
119
|
} catch {}
|
|
120
120
|
return !r || t === "0" ? null : `[bitboss-ui] upgraded ${r} → ${t}. What breaks between them: npx bitboss-ui changelog --since ${r}`;
|
|
121
121
|
}
|
|
122
122
|
function Be(e) {
|
|
123
|
-
let t =
|
|
124
|
-
return t && !t.startsWith("..") && !
|
|
123
|
+
let t = Ee(process.cwd(), e);
|
|
124
|
+
return t && !t.startsWith("..") && !O(t) ? t : e;
|
|
125
125
|
}
|
|
126
126
|
var L = /* @__PURE__ */ new Set();
|
|
127
127
|
function Ve(e) {
|
|
128
128
|
try {
|
|
129
|
-
return JSON.parse(
|
|
129
|
+
return JSON.parse(w(k(e, "..", "package.json"), "utf-8")).version ?? "0";
|
|
130
130
|
} catch {
|
|
131
131
|
return "0";
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
function He(e) {
|
|
135
|
+
let t = [];
|
|
136
|
+
try {
|
|
137
|
+
t.push(M(k(e, "package.json")).resolve("bitboss-ui/package.json"));
|
|
138
|
+
} catch {}
|
|
139
|
+
t.push(k(e, "node_modules", "bitboss-ui", "package.json"));
|
|
140
|
+
for (let e of t) try {
|
|
141
|
+
let t = JSON.parse(w(e, "utf-8")).version;
|
|
142
|
+
if (t) return t;
|
|
143
|
+
} catch {}
|
|
136
144
|
return null;
|
|
137
|
-
}
|
|
145
|
+
}
|
|
146
|
+
function Ue(e, t, n) {
|
|
147
|
+
if (!n || !t || t === "0") return null;
|
|
148
|
+
let r = He(n);
|
|
149
|
+
return !r || r === t ? null : `[bitboss-ui] cannot serve "${e}": this dev server is running the bitboss-ui ${t} build plugin, but bitboss-ui ${r} is installed now — the package changed while the server was running, and the new runtime imports virtual modules the old plugin does not know. Restart the dev server so it loads the ${r} plugin.`;
|
|
150
|
+
}
|
|
151
|
+
var R = D(j(import.meta.url)), We = () => {
|
|
152
|
+
for (let e of [k(R, "ai", "components.json"), k(R, "..", "dist", "ai", "components.json")]) if (S(e)) return e;
|
|
153
|
+
return null;
|
|
154
|
+
}, Ge = (e) => {
|
|
138
155
|
try {
|
|
139
|
-
let { components: t } = JSON.parse(
|
|
156
|
+
let { components: t } = JSON.parse(w(e, "utf-8"));
|
|
140
157
|
return Array.isArray(t) ? new Map(t.map((e) => [e.name, e])) : null;
|
|
141
158
|
} catch {
|
|
142
159
|
return null;
|
|
143
160
|
}
|
|
144
|
-
},
|
|
145
|
-
function
|
|
146
|
-
let n = t ?
|
|
161
|
+
}, Ke = (e) => Object.keys(v).filter((t) => v[t].includes(e));
|
|
162
|
+
function qe(e, t = We()) {
|
|
163
|
+
let n = t ? Ge(t) : null;
|
|
147
164
|
if (!n) return null;
|
|
148
|
-
for (let t of Object.keys(
|
|
149
|
-
let r =
|
|
150
|
-
if (i.length) for (let e of
|
|
165
|
+
for (let t of Object.keys(v)) {
|
|
166
|
+
let r = y[t], i = _e(_[t], e[r]);
|
|
167
|
+
if (i.length) for (let e of v[t]) {
|
|
151
168
|
let t = n.get(e);
|
|
152
169
|
if (!t) continue;
|
|
153
|
-
let a = new Set(
|
|
154
|
-
if (s) return `[bitboss-ui] ${
|
|
170
|
+
let a = new Set(Ke(e).flatMap((e) => [..._[e]])), o = new Set(t.props.map((e) => e.name.split(":")).filter((e) => e[0] === "pt" && e[2] && !a.has(e[2])).map((e) => e[2])), s = i.find((e) => o.has(e));
|
|
171
|
+
if (s) return `[bitboss-ui] ${b(r)}: "${s}" is a passthrough state of ${e}, so \`pt:<part>:${s}\` could not tell the state from the variant. Give the variant another name.`;
|
|
155
172
|
}
|
|
156
173
|
}
|
|
157
174
|
return null;
|
|
158
175
|
}
|
|
159
|
-
function
|
|
176
|
+
function Je(e, t = We(), n = "pt", r = {}) {
|
|
160
177
|
if (!e || !t) return null;
|
|
161
|
-
let i =
|
|
178
|
+
let i = Ge(t);
|
|
162
179
|
if (!i) return null;
|
|
163
180
|
for (let [t, a] of Object.entries(e)) {
|
|
164
181
|
let e = i.get(t);
|
|
165
182
|
if (!e) {
|
|
166
|
-
let e =
|
|
183
|
+
let e = g(t, [...i.keys()]);
|
|
167
184
|
return `[bitboss-ui] ${n}.${t}: no component is called "${t}"${e ? ` — did you mean "${e}"?` : ""}. The map is keyed by component name (ai/guides/passthrough.md).`;
|
|
168
185
|
}
|
|
169
186
|
let o = e.props.map((e) => e.name).filter((e) => e.startsWith("pt:"));
|
|
@@ -181,27 +198,27 @@ function Ke(e, t = He(), n = "pt", r = {}) {
|
|
|
181
198
|
}).join(" ")}`;
|
|
182
199
|
}
|
|
183
200
|
let [a, l] = e.split(":");
|
|
184
|
-
if (l && e.split(":").length === 2 &&
|
|
201
|
+
if (l && e.split(":").length === 2 && Ke(t).some((e) => _e(_[e], r[y[e]]).includes(l) && _[e].some((e) => o.includes(`pt:${a}:${e}`)))) continue;
|
|
185
202
|
let u = l && s.includes(a) ? o.filter((e) => e.endsWith(`:${l}`)).map((e) => e.split(":")[1]) : [];
|
|
186
203
|
return `[bitboss-ui] ${n}.${t}.pt["${e}"] matches nothing and would be ignored. ${u.length ? `"${l}" never reaches "${a}" on ${t}; it reaches ${u.join(", ")}.` : s.includes(a) ? c.length === 0 ? `${t} has no states — use "${a}" alone.` : `"${l}" is not a state of ${t}. States: ${c.join(", ")}.` : `"${a}" is not a part of ${t}. Parts: ${s.join(", ")}.`}`;
|
|
187
204
|
}
|
|
188
205
|
}
|
|
189
206
|
return null;
|
|
190
207
|
}
|
|
191
|
-
var z =
|
|
192
|
-
let t =
|
|
208
|
+
var z = k(R, "i18n", "locales"), Ye = (e) => {
|
|
209
|
+
let t = ne(e);
|
|
193
210
|
return t ? ` — did you mean '${t}'?` : "";
|
|
194
211
|
};
|
|
195
|
-
function
|
|
212
|
+
function Xe(e) {
|
|
196
213
|
let t = e.customLocaleKeys ?? [], n = m(e.locale) ?? "en", r = [], i = /* @__PURE__ */ new Set([n, "en"]), a = /* @__PURE__ */ new Set();
|
|
197
214
|
for (let o of [...e.locale && /[-_]u[-_]/i.test(e.locale) ? [e.locale] : [], ...e.enabledLocales ?? []]) {
|
|
198
|
-
let s =
|
|
215
|
+
let s = oe(o, o === e.locale ? n : void 0);
|
|
199
216
|
if (s) {
|
|
200
217
|
r.push(s);
|
|
201
218
|
continue;
|
|
202
219
|
}
|
|
203
220
|
let c = m(o);
|
|
204
|
-
c ? (i.add(c), /[-_]u[-_]/i.test(o) && a.add(o)) : t.includes(o) || r.push(`[bitboss-ui] \`enabledLocales\` entry '${o}' is not a built-in locale${
|
|
221
|
+
c ? (i.add(c), /[-_]u[-_]/i.test(o) && a.add(o)) : t.includes(o) || r.push(`[bitboss-ui] \`enabledLocales\` entry '${o}' is not a built-in locale${Ye(o)} — ignored.`);
|
|
205
222
|
}
|
|
206
223
|
return {
|
|
207
224
|
enabled: [...i].sort(),
|
|
@@ -210,14 +227,14 @@ function Je(e) {
|
|
|
210
227
|
warnings: r
|
|
211
228
|
};
|
|
212
229
|
}
|
|
213
|
-
function
|
|
230
|
+
function Ze(e) {
|
|
214
231
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = [], i = /* @__PURE__ */ new Set();
|
|
215
232
|
for (let a of [e.locale ?? "en", ...e.enabledLocales ?? []]) {
|
|
216
233
|
let e = m(a);
|
|
217
|
-
if (!e ||
|
|
218
|
-
for (let { id: e, message: t } of
|
|
219
|
-
let o =
|
|
220
|
-
o.ca &&
|
|
234
|
+
if (!e || oe(a)) continue;
|
|
235
|
+
for (let { id: e, message: t } of ce(a)) i.has(e) || (i.add(e), r.push(t));
|
|
236
|
+
let o = te(a), s = p[e].calendar;
|
|
237
|
+
o.ca && ae.includes(o.ca) && (s = o.ca === "gregory" ? void 0 : o.ca), o.nu && se(o.nu) && n.add(o.nu), s && t.add(s);
|
|
221
238
|
}
|
|
222
239
|
return {
|
|
223
240
|
calendars: [...t].sort(),
|
|
@@ -225,8 +242,8 @@ function Ye(e) {
|
|
|
225
242
|
warnings: r
|
|
226
243
|
};
|
|
227
244
|
}
|
|
228
|
-
function
|
|
229
|
-
let r = (e, t) => JSON.stringify(
|
|
245
|
+
function Qe(e, t, n = R) {
|
|
246
|
+
let r = (e, t) => JSON.stringify(S(k(n, e)) ? k(n, e) : k(n, t)), i = r("calendar-runtime.js", "utilities/calendar/runtime.ts");
|
|
230
247
|
if (!e.length && !t.extended) {
|
|
231
248
|
let e = Object.fromEntries([.../* @__PURE__ */ new Set(["en", ...t.enabled])].map((e) => {
|
|
232
249
|
let t = p[e];
|
|
@@ -236,29 +253,29 @@ function Xe(e, t, n = R) {
|
|
|
236
253
|
}
|
|
237
254
|
let a = {};
|
|
238
255
|
for (let n of t.enabled) for (let t of e) {
|
|
239
|
-
let e =
|
|
256
|
+
let e = re[n]?.[t];
|
|
240
257
|
e && ((a[n] ??= {})[t] = e);
|
|
241
258
|
}
|
|
242
|
-
let o = e.map((e) =>
|
|
259
|
+
let o = e.map((e) => ie[e]);
|
|
243
260
|
return (o.length ? `import { ${o.join(", ")} } from ${r("calendars.js", "utilities/calendar/international.ts")};\n` : "") + `import { createLocaleSeams, formatDigits } from ${i};\nexport { formatDigits };\nexport const calendars = {\n${e.map((e, t) => `\t${JSON.stringify(e)}: ${o[t]}(),`).join("\n")}\n};\nexport const { hasCalendar, localeOf, intlLocaleOf, calendarSystemOf, formatCalendarDate } = createLocaleSeams(calendars, ${JSON.stringify(t.enabled)}, ${JSON.stringify([.../* @__PURE__ */ new Set(["latn", ...t.numberingSystems ?? []])])}, ${JSON.stringify(a)});\n`;
|
|
244
261
|
}
|
|
245
|
-
function
|
|
262
|
+
function $e(e) {
|
|
246
263
|
let t = /* @__PURE__ */ new Map();
|
|
247
264
|
for (let n of e) {
|
|
248
265
|
let e = p[n].dictionary;
|
|
249
|
-
t.has(e) || t.set(e, JSON.parse(
|
|
266
|
+
t.has(e) || t.set(e, JSON.parse(w(k(z, `${e}.json`), "utf-8")));
|
|
250
267
|
}
|
|
251
268
|
let n = [...t].map(([e, t]) => `\t${JSON.stringify(e)}: ${JSON.stringify(t)},`), r = [];
|
|
252
269
|
for (let n of e) {
|
|
253
270
|
let { tag: e, dictionary: i } = p[n];
|
|
254
271
|
if (f[i] === e) continue;
|
|
255
|
-
let a =
|
|
272
|
+
let a = h(t.get(i).datePickerInput, e);
|
|
256
273
|
a && r.push(`\t${JSON.stringify(n)}: ${JSON.stringify({ datePickerInput: a })},`);
|
|
257
274
|
}
|
|
258
275
|
return `export const locales = {\n${n.join("\n")}\n};\nexport const regionFormats = {\n${r.join("\n")}\n};\n`;
|
|
259
276
|
}
|
|
260
|
-
function
|
|
261
|
-
let t =
|
|
277
|
+
function et(e) {
|
|
278
|
+
let t = M(import.meta.url), n = [], r = [];
|
|
262
279
|
for (let i of e) {
|
|
263
280
|
let e = m(i), a = e ? p[e].dayjs : i;
|
|
264
281
|
if (a !== null) try {
|
|
@@ -275,19 +292,19 @@ function Qe(e) {
|
|
|
275
292
|
missing: r
|
|
276
293
|
};
|
|
277
294
|
}
|
|
278
|
-
function
|
|
295
|
+
function tt(e) {
|
|
279
296
|
let t = [...new Set(e.map(({ pack: e }) => e))];
|
|
280
297
|
return `${t.map((e, t) => `import l${t} from ${JSON.stringify(`dayjs/locale/${e}`)};`).join("\n")}\nexport const dayjsLocales = {\n${e.map(({ key: e, pack: n }) => `\t${JSON.stringify(e)}: l${t.indexOf(n)},`).join("\n")}\n};\n`;
|
|
281
298
|
}
|
|
282
|
-
function
|
|
299
|
+
function nt(e, t, n = R, r) {
|
|
283
300
|
if (e === !1) return "export default null;\n";
|
|
284
301
|
let i;
|
|
285
302
|
if (e === void 0) {
|
|
286
|
-
let e =
|
|
287
|
-
i =
|
|
288
|
-
let a = r ??
|
|
303
|
+
let e = k(n, "passthrough-deduper.js");
|
|
304
|
+
i = S(e) ? e : k(n, "utils/passthroughDeduper.ts");
|
|
305
|
+
let a = r ?? st(t);
|
|
289
306
|
if (Object.keys(a).length) return `import { createPassthroughDeduper } from ${JSON.stringify(i)};\nexport default createPassthroughDeduper(${JSON.stringify(a)});\n`;
|
|
290
|
-
} else i = e.startsWith(".") ||
|
|
307
|
+
} else i = e.startsWith(".") || O(e) ? A(t, e) : e;
|
|
291
308
|
return `export { default } from ${JSON.stringify(i)};\n`;
|
|
292
309
|
}
|
|
293
310
|
var B = [
|
|
@@ -322,7 +339,7 @@ var B = [
|
|
|
322
339
|
"public",
|
|
323
340
|
"coverage"
|
|
324
341
|
]);
|
|
325
|
-
function
|
|
342
|
+
function rt(e) {
|
|
326
343
|
let t = {};
|
|
327
344
|
for (let n of e.matchAll(/@theme\b[^{]*\{([^}]*)\}/g)) for (let [, e] of n[1].matchAll(/--([a-z0-9-]+)\s*:/g)) {
|
|
328
345
|
if (e.includes("--")) continue;
|
|
@@ -331,94 +348,94 @@ function tt(e) {
|
|
|
331
348
|
}
|
|
332
349
|
return Object.fromEntries(Object.entries(t).map(([e, t]) => [e, [...t]]));
|
|
333
350
|
}
|
|
334
|
-
function
|
|
351
|
+
function H(e) {
|
|
335
352
|
let t = {};
|
|
336
353
|
for (let n of e) for (let [e, r] of Object.entries(n)) for (let n of r) (t[e] ??= /* @__PURE__ */ new Set()).add(n);
|
|
337
354
|
return Object.fromEntries(Object.keys(t).sort().map((e) => [e, [...t[e]].sort()]));
|
|
338
355
|
}
|
|
339
|
-
function
|
|
356
|
+
function it(e, t) {
|
|
340
357
|
if (!t.endsWith(".css")) return !1;
|
|
341
|
-
let n =
|
|
342
|
-
if (!n || n.startsWith("..") ||
|
|
358
|
+
let n = Ee(e, t);
|
|
359
|
+
if (!n || n.startsWith("..") || O(n)) return !1;
|
|
343
360
|
let r = n.split(/[\\/]/);
|
|
344
361
|
return r.length <= 7 && !r.some((e) => V.has(e));
|
|
345
362
|
}
|
|
346
|
-
function
|
|
363
|
+
function at(e) {
|
|
347
364
|
let t = /* @__PURE__ */ new Map(), n = (e, r) => {
|
|
348
365
|
let i = (() => {
|
|
349
366
|
try {
|
|
350
|
-
return
|
|
367
|
+
return T(e, { withFileTypes: !0 });
|
|
351
368
|
} catch {
|
|
352
369
|
return [];
|
|
353
370
|
}
|
|
354
371
|
})();
|
|
355
372
|
for (let a of i) {
|
|
356
|
-
let i =
|
|
373
|
+
let i = k(e, a.name);
|
|
357
374
|
if (a.isDirectory()) r < 6 && !V.has(a.name) && n(i, r + 1);
|
|
358
375
|
else if (a.name.endsWith(".css")) {
|
|
359
|
-
let e =
|
|
376
|
+
let e = ot(i);
|
|
360
377
|
Object.keys(e).length && t.set(i, e);
|
|
361
378
|
}
|
|
362
379
|
}
|
|
363
380
|
};
|
|
364
381
|
return e && n(e, 0), t;
|
|
365
382
|
}
|
|
366
|
-
var
|
|
383
|
+
var ot = (e) => {
|
|
367
384
|
try {
|
|
368
|
-
return
|
|
385
|
+
return rt(w(e, "utf-8"));
|
|
369
386
|
} catch {
|
|
370
387
|
return {};
|
|
371
388
|
}
|
|
372
389
|
};
|
|
373
|
-
function ot(e) {
|
|
374
|
-
return nt(it(e).values());
|
|
375
|
-
}
|
|
376
390
|
function st(e) {
|
|
391
|
+
return H(at(e).values());
|
|
392
|
+
}
|
|
393
|
+
function ct(e) {
|
|
377
394
|
return e === void 0 || e === !1 || typeof e == "string" && e.trim() ? null : "[bitboss-ui] passthroughDeduper must be false or a module path whose default export is (className: string) => string, e.g. passthroughDeduper: './src/utils/cn.ts'. Remove the key to use the bundled tailwind-merge.";
|
|
378
395
|
}
|
|
379
|
-
var
|
|
396
|
+
var lt = "@inertiajs/vue3", U = [
|
|
380
397
|
"dependencies",
|
|
381
398
|
"devDependencies",
|
|
382
399
|
"peerDependencies",
|
|
383
400
|
"optionalDependencies"
|
|
384
401
|
];
|
|
385
|
-
function
|
|
386
|
-
let t =
|
|
402
|
+
function W(e) {
|
|
403
|
+
let t = A(e);
|
|
387
404
|
for (;;) {
|
|
388
|
-
let e =
|
|
389
|
-
if (
|
|
390
|
-
return JSON.parse(
|
|
405
|
+
let e = k(t, "package.json");
|
|
406
|
+
if (S(e)) try {
|
|
407
|
+
return JSON.parse(w(e, "utf-8"));
|
|
391
408
|
} catch {
|
|
392
409
|
return null;
|
|
393
410
|
}
|
|
394
|
-
let n =
|
|
411
|
+
let n = D(t);
|
|
395
412
|
if (n === t) return null;
|
|
396
413
|
t = n;
|
|
397
414
|
}
|
|
398
415
|
}
|
|
399
|
-
function
|
|
400
|
-
return
|
|
416
|
+
function G(e, t) {
|
|
417
|
+
return U.some((n) => {
|
|
401
418
|
let r = e[n];
|
|
402
419
|
return typeof r == "object" && !!r && t in r;
|
|
403
420
|
});
|
|
404
421
|
}
|
|
405
|
-
function
|
|
406
|
-
let n = t.split("/"), r =
|
|
422
|
+
function ut(e, t) {
|
|
423
|
+
let n = t.split("/"), r = A(e);
|
|
407
424
|
for (;;) {
|
|
408
|
-
if (
|
|
409
|
-
let e =
|
|
425
|
+
if (S(k(r, "node_modules", ...n))) return !0;
|
|
426
|
+
let e = D(r);
|
|
410
427
|
if (e === r) return !1;
|
|
411
428
|
r = e;
|
|
412
429
|
}
|
|
413
430
|
}
|
|
414
|
-
function ut(e) {
|
|
415
|
-
let t = U(e);
|
|
416
|
-
return !t || !W(t, ct) ? !1 : lt(e, ct);
|
|
417
|
-
}
|
|
418
431
|
function dt(e) {
|
|
432
|
+
let t = W(e);
|
|
433
|
+
return !t || !G(t, lt) ? !1 : ut(e, lt);
|
|
434
|
+
}
|
|
435
|
+
function ft(e) {
|
|
419
436
|
return e ? "export { Link as InertiaLink } from '@inertiajs/vue3';\n" : "export const InertiaLink = null;\n";
|
|
420
437
|
}
|
|
421
|
-
var
|
|
438
|
+
var pt = [
|
|
422
439
|
"@floating-ui/vue",
|
|
423
440
|
"@tanstack/vue-virtual",
|
|
424
441
|
"@vueuse/core",
|
|
@@ -434,50 +451,50 @@ var ft = [
|
|
|
434
451
|
"mime",
|
|
435
452
|
"object-code",
|
|
436
453
|
"tailwind-merge"
|
|
437
|
-
],
|
|
438
|
-
function gt(e) {
|
|
439
|
-
return typeof e == "string" ? e === G : (e.lastIndex = 0, e.test(G));
|
|
440
|
-
}
|
|
454
|
+
], mt = ["bitboss-ui"], ht = "@internationalized/date", gt = lt, K = "bitboss-ui";
|
|
441
455
|
function _t(e) {
|
|
442
|
-
return
|
|
456
|
+
return typeof e == "string" ? e === K : (e.lastIndex = 0, e.test(K));
|
|
457
|
+
}
|
|
458
|
+
function vt(e) {
|
|
459
|
+
return e === !0 ? [] : e == null || e === !1 ? [K] : (Array.isArray(e) ? e : [e]).some(_t) ? [] : [K];
|
|
443
460
|
}
|
|
444
|
-
var
|
|
445
|
-
function
|
|
461
|
+
var yt = "virtual:bitboss-ui/icons", bt = "\0virtual:bitboss-ui/icons", xt = "virtual:bitboss-ui/config", St = "\0virtual:bitboss-ui/config", Ct = "virtual:bitboss-ui/dayjs-locales", wt = "\0virtual:bitboss-ui/dayjs-locales", Tt = "virtual:bitboss-ui/calendars", Et = "\0virtual:bitboss-ui/calendars", Dt = "virtual:bitboss-ui/locales", Ot = "\0virtual:bitboss-ui/locales", kt = "virtual:bitboss-ui/styles", At = "\0virtual:bitboss-ui/styles", jt = "virtual:bitboss-ui/vee-validate-missing", Mt = "\0virtual:bitboss-ui/vee-validate-missing", Nt = "bitboss-ui:vee-validate-missing", Pt = "[bitboss-ui] BbForm needs vee-validate, which is not installed: run `npm i vee-validate` (an optional peer, >=4.10.0 <5). An app without forms needs nothing.", Ft = ["useForm", "useField"];
|
|
462
|
+
function It() {
|
|
446
463
|
return [
|
|
447
|
-
`const fail = () => { throw new Error(${JSON.stringify(
|
|
448
|
-
...
|
|
464
|
+
`const fail = () => { throw new Error(${JSON.stringify(Pt)} + ' (${Nt})'); };`,
|
|
465
|
+
...Ft.map((e) => `export const ${e} = fail;`),
|
|
449
466
|
""
|
|
450
467
|
].join("\n");
|
|
451
468
|
}
|
|
452
|
-
function
|
|
469
|
+
function Lt(e) {
|
|
453
470
|
return /import\s*\{[^}]*\bBbForm\b[^}]*\}\s*from\s*['"]bitboss-ui(?:\/validated)?['"]/.test(e) || /<(?:BbForm|bb-form)[\s>/]/.test(e) || /resolveComponent\(\s*['"](?:BbForm|bb-form)['"]/.test(e);
|
|
454
471
|
}
|
|
455
|
-
var
|
|
456
|
-
function
|
|
457
|
-
let e =
|
|
458
|
-
return
|
|
459
|
-
let t =
|
|
460
|
-
return
|
|
472
|
+
var Rt = "virtual:bitboss-ui/link", zt = "\0virtual:bitboss-ui/link", Bt = "virtual:bitboss-ui/passthrough-deduper", Vt = "\0virtual:bitboss-ui/passthrough-deduper";
|
|
473
|
+
function Ht() {
|
|
474
|
+
let e = k(R, "styles.css");
|
|
475
|
+
return S(e) ? w(e, "utf-8") : ["main.css", "variables.css"].map((e) => {
|
|
476
|
+
let t = k(R, "assets/css", e);
|
|
477
|
+
return S(t) ? w(t, "utf-8") : "";
|
|
461
478
|
}).join("\n");
|
|
462
479
|
}
|
|
463
|
-
var
|
|
464
|
-
function
|
|
480
|
+
var Ut = "local", Wt = "./assets/icons";
|
|
481
|
+
function Gt(e) {
|
|
465
482
|
let t = {};
|
|
466
483
|
try {
|
|
467
|
-
let n =
|
|
484
|
+
let n = T(e, {
|
|
468
485
|
recursive: !0,
|
|
469
486
|
encoding: "utf-8"
|
|
470
487
|
}).filter((e) => e.endsWith(".svg"));
|
|
471
488
|
for (let r of n) {
|
|
472
|
-
let n =
|
|
489
|
+
let n = Te(r, ".svg");
|
|
473
490
|
try {
|
|
474
|
-
let i =
|
|
491
|
+
let i = ke(w(k(e, r), "utf-8")), a = i && De(i);
|
|
475
492
|
a && (t[n] = a);
|
|
476
493
|
} catch {}
|
|
477
494
|
}
|
|
478
495
|
} catch {}
|
|
479
496
|
return {
|
|
480
|
-
prefix:
|
|
497
|
+
prefix: Ut,
|
|
481
498
|
info: {
|
|
482
499
|
name: "Local",
|
|
483
500
|
author: { name: "Icons automatically inferred from the icons installed locally" },
|
|
@@ -486,12 +503,12 @@ function Ut(e) {
|
|
|
486
503
|
icons: t
|
|
487
504
|
};
|
|
488
505
|
}
|
|
489
|
-
var q = "./.vscode/bitboss-ui.local-icons.json", J = "iconify.customCollectionJsonPaths", Y = "tailwindCSS.classAttributes", X = "tailwindCSS.experimental.classRegex",
|
|
506
|
+
var q = "./.vscode/bitboss-ui.local-icons.json", J = "iconify.customCollectionJsonPaths", Y = "tailwindCSS.classAttributes", X = "tailwindCSS.experimental.classRegex", Kt = "editor.quickSuggestions", Z = "pt(?::[\\w&-]+)*", qt = [
|
|
490
507
|
"class",
|
|
491
508
|
"className",
|
|
492
509
|
"ngClass",
|
|
493
510
|
"class:list"
|
|
494
|
-
],
|
|
511
|
+
], Jt = "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w&-]+)*\\s*=\\s*", Yt = [
|
|
495
512
|
"\\?\\s*'([^\\s':][^']*)'",
|
|
496
513
|
"'([^\\s':][^']*)'(?!\\s*:)",
|
|
497
514
|
"\\?\\s*\"([^\\s\":][^\"]*)\"",
|
|
@@ -499,28 +516,28 @@ var q = "./.vscode/bitboss-ui.local-icons.json", J = "iconify.customCollectionJs
|
|
|
499
516
|
"\\?\\s*`([^\\s`:][^`]*)`",
|
|
500
517
|
"`([^\\s`:][^`]*)`(?!\\s*:)"
|
|
501
518
|
], Q = [
|
|
502
|
-
`${
|
|
503
|
-
`${
|
|
519
|
+
`${Jt}"([\\s\\S]*?)"`,
|
|
520
|
+
`${Jt}'([\\s\\S]*?)'`,
|
|
504
521
|
"\\bpt\\s*:\\s*\\{([\\s\\S]*?)\\}"
|
|
505
|
-
].flatMap((e) =>
|
|
522
|
+
].flatMap((e) => Yt.map((t) => [e, t])), Xt = { strings: "on" }, Zt = () => ({
|
|
506
523
|
[J]: [q],
|
|
507
|
-
[Y]: [...
|
|
524
|
+
[Y]: [...qt, Z],
|
|
508
525
|
[X]: Q,
|
|
509
|
-
[
|
|
526
|
+
[Kt]: Xt
|
|
510
527
|
});
|
|
511
|
-
function
|
|
512
|
-
let n =
|
|
528
|
+
function Qt(e, t) {
|
|
529
|
+
let n = k(t, q);
|
|
513
530
|
try {
|
|
514
|
-
return
|
|
531
|
+
return C(D(n), { recursive: !0 }), E(n, JSON.stringify(Gt(e)), "utf-8"), null;
|
|
515
532
|
} catch (e) {
|
|
516
|
-
return `[bitboss-ui] could not write ${q} (${e instanceof Error ? e.message : String(e)}) — the Iconify editor extension will not preview local icons. ${
|
|
533
|
+
return `[bitboss-ui] could not write ${q} (${e instanceof Error ? e.message : String(e)}) — the Iconify editor extension will not preview local icons. ${on}`;
|
|
517
534
|
}
|
|
518
535
|
}
|
|
519
|
-
function
|
|
520
|
-
if (e ===
|
|
536
|
+
function $t(e, t) {
|
|
537
|
+
if (e === Wt) return null;
|
|
521
538
|
let n = 0;
|
|
522
539
|
try {
|
|
523
|
-
n =
|
|
540
|
+
n = T(t, {
|
|
524
541
|
recursive: !0,
|
|
525
542
|
encoding: "utf-8"
|
|
526
543
|
}).filter((e) => e.endsWith(".svg")).length;
|
|
@@ -529,7 +546,7 @@ function Zt(e, t) {
|
|
|
529
546
|
}
|
|
530
547
|
return n > 0 ? null : `[bitboss-ui] iconDir "${e}" resolves to ${t}, which contains no .svg files — no \`local:\` icon will render. A relative iconDir resolves from the Vite root (under Nuxt, \`app/\`).`;
|
|
531
548
|
}
|
|
532
|
-
function
|
|
549
|
+
function en(e) {
|
|
533
550
|
let t = "", n = !1, r = !1, i = !1;
|
|
534
551
|
for (let a = 0; a < e.length; a++) {
|
|
535
552
|
let o = e[a], s = e[a + 1];
|
|
@@ -537,8 +554,8 @@ function Qt(e) {
|
|
|
537
554
|
}
|
|
538
555
|
return t;
|
|
539
556
|
}
|
|
540
|
-
var
|
|
541
|
-
function
|
|
557
|
+
var tn = (e) => e === " " || e === " " || e === "\n" || e === "\r";
|
|
558
|
+
function nn(e, t) {
|
|
542
559
|
let n = !1, r = !1;
|
|
543
560
|
for (let i = t; i < e.length; i++) {
|
|
544
561
|
let t = e[i], a = e[i + 1];
|
|
@@ -546,11 +563,11 @@ function en(e, t) {
|
|
|
546
563
|
else if (r) t === "*" && a === "/" && (r = !1, i++);
|
|
547
564
|
else if (t === "/" && a === "/") n = !0, i++;
|
|
548
565
|
else if (t === "/" && a === "*") r = !0, i++;
|
|
549
|
-
else if (
|
|
566
|
+
else if (!tn(t)) return i;
|
|
550
567
|
}
|
|
551
568
|
return -1;
|
|
552
569
|
}
|
|
553
|
-
function
|
|
570
|
+
function rn(e, t) {
|
|
554
571
|
let n = !1, r = !1, i = !1, a = -1, o = 0, s = null;
|
|
555
572
|
for (let c = 0; c < e.length; c++) {
|
|
556
573
|
let l = e[c], u = e[c + 1];
|
|
@@ -565,19 +582,19 @@ function tn(e, t) {
|
|
|
565
582
|
} else if (l === "/" && u === "/") n = !0, c++;
|
|
566
583
|
else if (l === "/" && u === "*") r = !0, c++;
|
|
567
584
|
else if (l === "\"") i = !0, a = c;
|
|
568
|
-
else if (
|
|
585
|
+
else if (!tn(l)) {
|
|
569
586
|
if (l === ":" && s !== null) {
|
|
570
587
|
let n = s === t;
|
|
571
588
|
if (s = null, !n) continue;
|
|
572
|
-
let r =
|
|
573
|
-
return r === -1 || e[r] !== "[" ? null :
|
|
589
|
+
let r = nn(e, c + 1);
|
|
590
|
+
return r === -1 || e[r] !== "[" ? null : an(e, r);
|
|
574
591
|
}
|
|
575
592
|
s = null, l === "{" || l === "[" ? o++ : (l === "}" || l === "]") && o--;
|
|
576
593
|
}
|
|
577
594
|
}
|
|
578
595
|
return null;
|
|
579
596
|
}
|
|
580
|
-
function
|
|
597
|
+
function an(e, t) {
|
|
581
598
|
let n = !1, r = !1, i = !1, a = 0, o = -1;
|
|
582
599
|
for (let s = t; s < e.length; s++) {
|
|
583
600
|
let c = e[s], l = e[s + 1];
|
|
@@ -592,7 +609,7 @@ function nn(e, t) {
|
|
|
592
609
|
} else if (c === "/" && l === "/") n = !0, s++;
|
|
593
610
|
else if (c === "/" && l === "*") r = !0, s++;
|
|
594
611
|
else if (c === "\"") i = !0, o = s + 1;
|
|
595
|
-
else if (
|
|
612
|
+
else if (!tn(c)) {
|
|
596
613
|
if (c === "[" || c === "{") a++, s > t && (o = s + 1);
|
|
597
614
|
else if (c === "]" || c === "}") {
|
|
598
615
|
if (a--, a === 0 && c === "]") return {
|
|
@@ -606,10 +623,10 @@ function nn(e, t) {
|
|
|
606
623
|
}
|
|
607
624
|
return null;
|
|
608
625
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
626
|
+
var on = "Set `vscodeSettings: false` in the plugin options to disable this write.", $ = `add "${J}": ["${q}"], "${Y}" (include ${JSON.stringify(Z)}), and "${X}" for passthrough IntelliSense`, sn = (e) => Array.isArray(e) && e.some((e) => typeof e == "string" && (e === "pt(?::[\\w&-]+)*" || e === "pt" || e.startsWith("pt:") || e.startsWith("pt("))), cn = (e) => Array.isArray(e) ? Q.filter((t) => !e.some((e) => JSON.stringify(e) === JSON.stringify(t))) : [...Q], ln = (e) => JSON.stringify(e, null, " ").replace(/\n/g, "\n ");
|
|
627
|
+
function un(e, t, n) {
|
|
611
628
|
if (n.length === 0) return e;
|
|
612
|
-
let r =
|
|
629
|
+
let r = rn(e, t);
|
|
613
630
|
if (!r) return null;
|
|
614
631
|
if (r.lastSignificantEnd === -1) return e.slice(0, r.close) + n.join(", ") + e.slice(r.close);
|
|
615
632
|
if (e.slice(r.open + 1, r.close).includes("\n")) {
|
|
@@ -618,55 +635,55 @@ function cn(e, t, n) {
|
|
|
618
635
|
}
|
|
619
636
|
return e.slice(0, r.lastSignificantEnd) + `, ${n.join(", ")}` + e.slice(r.lastSignificantEnd);
|
|
620
637
|
}
|
|
621
|
-
function
|
|
638
|
+
function dn(e, t, n) {
|
|
622
639
|
if (t.length === 0) return e;
|
|
623
|
-
let r =
|
|
640
|
+
let r = nn(e, 0);
|
|
624
641
|
if (r === -1 || e[r] !== "{") return null;
|
|
625
642
|
let i = t.map((e, r) => {
|
|
626
643
|
let i = r === t.length - 1, a = n || !i ? "," : "", o = n || !i ? "" : "\n";
|
|
627
|
-
return `\n\t${JSON.stringify(e.key)}: ${
|
|
644
|
+
return `\n\t${JSON.stringify(e.key)}: ${ln(e.value)}${a}${o}`;
|
|
628
645
|
}).join("");
|
|
629
646
|
return e.slice(0, r + 1) + i + e.slice(r + 1);
|
|
630
647
|
}
|
|
631
|
-
function
|
|
632
|
-
let n =
|
|
648
|
+
function fn(e, t) {
|
|
649
|
+
let n = k(e, ".vscode"), r = k(n, "settings.json"), i = "";
|
|
633
650
|
try {
|
|
634
|
-
i =
|
|
651
|
+
i = w(r, "utf-8");
|
|
635
652
|
} catch {}
|
|
636
653
|
let a = [], o = (e) => {
|
|
637
654
|
a.push(e);
|
|
638
655
|
}, s = (e) => {
|
|
639
656
|
try {
|
|
640
|
-
return
|
|
657
|
+
return C(n, { recursive: !0 }), E(r, e, "utf-8"), !0;
|
|
641
658
|
} catch (e) {
|
|
642
|
-
return t.warn(`[bitboss-ui] could not write .vscode/settings.json (${e instanceof Error ? e.message : String(e)}) — ${$}. ${
|
|
659
|
+
return t.warn(`[bitboss-ui] could not write .vscode/settings.json (${e instanceof Error ? e.message : String(e)}) — ${$}. ${on}`), !1;
|
|
643
660
|
}
|
|
644
661
|
};
|
|
645
662
|
if (!i.trim()) {
|
|
646
|
-
if (!s(JSON.stringify(
|
|
647
|
-
t.info(`[bitboss-ui] .vscode/settings.json: wrote "${q}" on "${J}", Tailwind "${Y}" / "${X}" for passthrough, and "${
|
|
663
|
+
if (!s(JSON.stringify(Zt(), null, " ") + "\n")) return;
|
|
664
|
+
t.info(`[bitboss-ui] .vscode/settings.json: wrote "${q}" on "${J}", Tailwind "${Y}" / "${X}" for passthrough, and "${Kt}". ${on}`);
|
|
648
665
|
return;
|
|
649
666
|
}
|
|
650
667
|
let c;
|
|
651
668
|
try {
|
|
652
|
-
c = JSON.parse(
|
|
669
|
+
c = JSON.parse(en(i));
|
|
653
670
|
} catch {
|
|
654
671
|
t.warn(`[bitboss-ui] Could not parse .vscode/settings.json — ${$}.`);
|
|
655
672
|
return;
|
|
656
673
|
}
|
|
657
674
|
let l = (e) => {
|
|
658
675
|
try {
|
|
659
|
-
return c = JSON.parse(
|
|
676
|
+
return c = JSON.parse(en(e)), i = e, !0;
|
|
660
677
|
} catch {
|
|
661
678
|
return t.warn(`[bitboss-ui] Could not parse .vscode/settings.json after splice — ${$}.`), !1;
|
|
662
679
|
}
|
|
663
680
|
}, u = (e, n, r) => {
|
|
664
681
|
if (!Array.isArray(c[e])) return t.warn(`[bitboss-ui] .vscode/settings.json has a non-array "${e}" — ${$}.`), !1;
|
|
665
|
-
let a =
|
|
682
|
+
let a = un(i, e, n);
|
|
666
683
|
return a ? l(a) ? (o(r), !0) : !1 : (t.warn(`[bitboss-ui] Could not locate "${e}" in .vscode/settings.json — ${$}.`), !1);
|
|
667
684
|
};
|
|
668
|
-
if (!i.includes("./.vscode/bitboss-ui.local-icons.json") && J in c && u(J, [JSON.stringify(q)], `added "${q}" to "${J}"`), Y in c && !
|
|
669
|
-
let e =
|
|
685
|
+
if (!i.includes("./.vscode/bitboss-ui.local-icons.json") && J in c && u(J, [JSON.stringify(q)], `added "${q}" to "${J}"`), Y in c && !sn(c[Y]) && u(Y, [JSON.stringify(Z)], `added ${JSON.stringify(Z)} to "${Y}"`), X in c) {
|
|
686
|
+
let e = cn(c[X]);
|
|
670
687
|
e.length > 0 && u(X, e.map((e) => JSON.stringify(e)), `added ${e.length} "${X}" ${e.length === 1 ? "entry" : "entries"} for passthrough`);
|
|
671
688
|
}
|
|
672
689
|
let d = [];
|
|
@@ -675,106 +692,115 @@ function un(e, t) {
|
|
|
675
692
|
value: [q]
|
|
676
693
|
}), Y in c || d.push({
|
|
677
694
|
key: Y,
|
|
678
|
-
value: [...
|
|
695
|
+
value: [...qt, Z]
|
|
679
696
|
}), X in c || d.push({
|
|
680
697
|
key: X,
|
|
681
698
|
value: Q
|
|
682
|
-
}),
|
|
683
|
-
key:
|
|
684
|
-
value:
|
|
699
|
+
}), Kt in c || d.push({
|
|
700
|
+
key: Kt,
|
|
701
|
+
value: Xt
|
|
685
702
|
}), d.length > 0) {
|
|
686
|
-
let e = Object.keys(c).length > 0, n =
|
|
703
|
+
let e = Object.keys(c).length > 0, n = dn(i, d, e);
|
|
687
704
|
if (!n) t.warn(`[bitboss-ui] .vscode/settings.json is not a JSON object — ${$}.`);
|
|
688
705
|
else if (l(n)) for (let e of d) o(`added "${e.key}"`);
|
|
689
706
|
}
|
|
690
|
-
a.length !== 0 && s(i) && t.info(`[bitboss-ui] .vscode/settings.json: ${a.join("; ")}. ${
|
|
707
|
+
a.length !== 0 && s(i) && t.info(`[bitboss-ui] .vscode/settings.json: ${a.join("; ")}. ${on}`);
|
|
691
708
|
}
|
|
692
|
-
var
|
|
693
|
-
async function
|
|
709
|
+
var pn = "virtual:bb-icon/", mn = "\0virtual:bb-icon/";
|
|
710
|
+
async function hn(e, t, n) {
|
|
694
711
|
try {
|
|
695
|
-
let { syncAgentSetup: r } = await import(
|
|
712
|
+
let [{ syncAgentSetup: r }, i] = await Promise.all([import(
|
|
696
713
|
/* @vite-ignore */
|
|
697
714
|
new URL("../scripts/lib/agent-setup.mjs", import.meta.url).href
|
|
698
|
-
),
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
715
|
+
), import(
|
|
716
|
+
/* @vite-ignore */
|
|
717
|
+
new URL("../scripts/lib/tooling-options.mjs", import.meta.url).href
|
|
718
|
+
)]), a = e;
|
|
719
|
+
for (; !S(k(a, "package.json"));) {
|
|
720
|
+
let t = D(a);
|
|
721
|
+
if (t === a) {
|
|
722
|
+
a = e;
|
|
703
723
|
break;
|
|
704
724
|
}
|
|
705
|
-
|
|
725
|
+
a = t;
|
|
726
|
+
}
|
|
727
|
+
let o = i.readToolingOptions(a), s = i.agentFilesAi(o, t);
|
|
728
|
+
if (s === void 0) {
|
|
729
|
+
let e = i.toolingNotice(o);
|
|
730
|
+
e && n.warn(e);
|
|
731
|
+
return;
|
|
706
732
|
}
|
|
707
|
-
let { results:
|
|
708
|
-
if (
|
|
709
|
-
n.info(`[bitboss-ui] agent setup: ${
|
|
710
|
-
for (let e of
|
|
733
|
+
let { results: c, notes: l } = r(a, { ai: s }), u = c.filter((e) => e.action !== "unchanged" && e.action !== "skipped");
|
|
734
|
+
if (u.length > 0) {
|
|
735
|
+
n.info(`[bitboss-ui] agent setup: ${u.map((e) => `${e.action} ${e.path}`).join(", ")}. Commit these; restart your agent to pick them up.`);
|
|
736
|
+
for (let e of l) n.info(`[bitboss-ui] ${e}`);
|
|
711
737
|
}
|
|
712
|
-
for (let e of
|
|
738
|
+
for (let e of c.filter((e) => e.action === "skipped")) n.warn(`[bitboss-ui] agent setup: skipped ${e.path}${e.reason ? ` (${e.reason})` : ""}`);
|
|
713
739
|
} catch (e) {
|
|
714
740
|
let t = e instanceof Error ? e.message : String(e);
|
|
715
741
|
n.warn(`[bitboss-ui] agent setup failed (${t})`);
|
|
716
742
|
}
|
|
717
743
|
}
|
|
718
|
-
var
|
|
719
|
-
function
|
|
720
|
-
let n =
|
|
744
|
+
var gn = Symbol.for("bitboss-ui:editorRoot");
|
|
745
|
+
function _n(e = {}) {
|
|
746
|
+
let n = pe(e);
|
|
721
747
|
if (n) throw Error(n);
|
|
722
|
-
let r =
|
|
748
|
+
let r = me(e);
|
|
723
749
|
if (r) throw Error(r);
|
|
724
|
-
let i =
|
|
725
|
-
variantComponents:
|
|
750
|
+
let i = We(), a = i ? [...Ge(i)?.keys() ?? []] : void 0, s = de(e.components, {
|
|
751
|
+
variantComponents: ge,
|
|
726
752
|
knownComponents: a
|
|
727
753
|
});
|
|
728
754
|
if (s) throw Error(s);
|
|
729
|
-
let c =
|
|
730
|
-
variantComponents:
|
|
755
|
+
let c = fe(e.configScopes, {
|
|
756
|
+
variantComponents: ge,
|
|
731
757
|
knownComponents: a
|
|
732
758
|
});
|
|
733
759
|
if (c) throw Error(c);
|
|
734
760
|
let { components: l } = e, f = {
|
|
735
|
-
iconDir:
|
|
761
|
+
iconDir: Wt,
|
|
736
762
|
...e,
|
|
737
|
-
...
|
|
738
|
-
pt:
|
|
739
|
-
},
|
|
763
|
+
...ye(l),
|
|
764
|
+
pt: ue(l)
|
|
765
|
+
}, te = e[gn], ne = Ve(R);
|
|
740
766
|
if ("cssLayers" in f && f.cssLayers === void 0) throw Error("[bitboss-ui] cssLayers is present but undefined. If you passed an imported constant such as TAILWIND_V4_LAYERS, the installed bitboss-ui does not export it (older dist?) — upgrade, or pass the array literal. Remove the key entirely for an unlayered sheet.");
|
|
741
|
-
let
|
|
742
|
-
if (te) throw Error(te);
|
|
743
|
-
let ne = oe(f.pt);
|
|
744
|
-
if (ne) throw Error(ne);
|
|
745
|
-
let re = Ge(f);
|
|
767
|
+
let re = u(f.cssLayers, { resetCss: f.resetCss ?? !1 });
|
|
746
768
|
if (re) throw Error(re);
|
|
747
|
-
let ie =
|
|
769
|
+
let ie = le(f.pt);
|
|
748
770
|
if (ie) throw Error(ie);
|
|
771
|
+
let ae = qe(f);
|
|
772
|
+
if (ae) throw Error(ae);
|
|
773
|
+
let se = Je(f.pt, void 0, "components", f);
|
|
774
|
+
if (se) throw Error(se);
|
|
749
775
|
for (let [e, t] of Object.entries(f.configScopes ?? {})) {
|
|
750
|
-
let n =
|
|
776
|
+
let n = Je(ue(t), void 0, `configScopes.${e}`, f);
|
|
751
777
|
if (n) throw Error(n);
|
|
752
778
|
}
|
|
753
|
-
let
|
|
754
|
-
if (
|
|
755
|
-
let
|
|
756
|
-
let r =
|
|
757
|
-
r && !
|
|
779
|
+
let ce = ct(f.passthroughDeduper);
|
|
780
|
+
if (ce) throw Error(ce);
|
|
781
|
+
let h, g, v, b, x = !0, C = [], T = !1, E, D, O = !1, k = (e, t, n) => {
|
|
782
|
+
let r = Qt(e, t);
|
|
783
|
+
r && !O && (O = !0, n(r));
|
|
758
784
|
}, j = {
|
|
759
785
|
info: (e) => console.warn(e),
|
|
760
786
|
warn: (e) => console.warn(e)
|
|
761
|
-
},
|
|
787
|
+
}, M = [], De = [], Oe = [], { enabled: P, defaultLocale: ke, extended: F, warnings: Ne } = Xe({
|
|
762
788
|
locale: f.locale,
|
|
763
789
|
enabledLocales: f.enabledLocales,
|
|
764
|
-
customLocaleKeys:
|
|
765
|
-
}), { calendars:
|
|
790
|
+
customLocaleKeys: M
|
|
791
|
+
}), { calendars: I, numberingSystems: He, warnings: Ke } = Ze({
|
|
766
792
|
locale: f.locale,
|
|
767
793
|
enabledLocales: f.enabledLocales
|
|
768
|
-
}), z =
|
|
769
|
-
B.clear(), V.clear(),
|
|
770
|
-
for (let e of
|
|
771
|
-
|
|
772
|
-
},
|
|
794
|
+
}), z = et([...P, ...M]), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Set(), st = () => {
|
|
795
|
+
B.clear(), V.clear(), ot = Fe(h);
|
|
796
|
+
for (let e of Pe(h)) B.set(e.prefix, e), V.set(e.prefix, (t) => Me(e.prefix, t));
|
|
797
|
+
U = null, W = null;
|
|
798
|
+
}, lt = (e, t) => {
|
|
773
799
|
let n = B.get(e);
|
|
774
800
|
if (!n) return !1;
|
|
775
801
|
let r = V.get(e);
|
|
776
|
-
return
|
|
777
|
-
},
|
|
802
|
+
return N(n, t) !== null && (!r || r(t));
|
|
803
|
+
}, U = null, W = null, G = null, K = () => W || (W = (async () => {
|
|
778
804
|
let e = f.iconsScanner ?? {}, n = JSON.stringify({
|
|
779
805
|
version: Ve(R),
|
|
780
806
|
sets: Array.from(B.entries()).map(([e, t]) => [e, t.lastModified ?? 0]).sort(([e], [t]) => e < t ? -1 : +(e > t)),
|
|
@@ -782,40 +808,40 @@ function hn(e = {}) {
|
|
|
782
808
|
exclude: e.exclude ?? [],
|
|
783
809
|
maxFileSize: e.maxFileSize ?? null
|
|
784
810
|
}), r = new t({
|
|
785
|
-
root:
|
|
786
|
-
outDir:
|
|
811
|
+
root: h,
|
|
812
|
+
outDir: E ?? A(h, "dist"),
|
|
787
813
|
scanner: e,
|
|
788
814
|
prefixes: Array.from(B.keys()),
|
|
789
|
-
resolves:
|
|
790
|
-
cacheFile: o(
|
|
815
|
+
resolves: lt,
|
|
816
|
+
cacheFile: o(h),
|
|
791
817
|
cacheKey: n
|
|
792
818
|
}), i = await r.scan();
|
|
793
|
-
if (i.cold && j.info(`[bitboss-ui] icon scan: ${i.files} files in ${i.elapsed}ms${i.workers ? ` on ${i.workers} threads` : ""} (${r.icons.size} provider icons referenced)`),
|
|
819
|
+
if (i.cold && j.info(`[bitboss-ui] icon scan: ${i.files} files in ${i.elapsed}ms${i.workers ? ` on ${i.workers} threads` : ""} (${r.icons.size} provider icons referenced)`), U = r, G) for (let e of r.includeDirs) G.add(e);
|
|
794
820
|
return r;
|
|
795
|
-
})(),
|
|
821
|
+
})(), W);
|
|
796
822
|
return {
|
|
797
823
|
name: "bitboss-ui:icon-registry",
|
|
798
824
|
configEnvironment(e, t) {
|
|
799
825
|
if (e !== "client") return;
|
|
800
|
-
let n = t.optimizeDeps?.include ?? [], r =
|
|
826
|
+
let n = t.optimizeDeps?.include ?? [], r = C.filter((e) => !n.includes(e));
|
|
801
827
|
if (r.length) return { optimizeDeps: { include: r } };
|
|
802
828
|
},
|
|
803
829
|
config(e) {
|
|
804
830
|
let t = e.optimizeDeps?.include ?? [], n = e.optimizeDeps?.exclude ?? [], r = e.root ?? process.cwd();
|
|
805
|
-
|
|
806
|
-
let i =
|
|
807
|
-
|
|
831
|
+
x = ut(r, "vee-validate");
|
|
832
|
+
let i = dt(r) ? [...pt, gt] : pt, a = z.found.map(({ pack: e }) => `dayjs/locale/${e}`), o = I.length ? [ht] : [];
|
|
833
|
+
C = [
|
|
808
834
|
...i,
|
|
809
835
|
...a,
|
|
810
836
|
...o
|
|
811
837
|
];
|
|
812
838
|
let s = (e.build?.assetsDir ?? "assets").replace(/\/+$/, ""), c = e.build?.rollupOptions?.output, l = (Array.isArray(c) ? c[0] : c)?.chunkFileNames, u = e.ssr;
|
|
813
839
|
u && u.noExternal === !1 && delete u.noExternal;
|
|
814
|
-
let d =
|
|
840
|
+
let d = vt(u?.noExternal);
|
|
815
841
|
return {
|
|
816
|
-
...
|
|
842
|
+
...x ? {} : { resolve: { alias: [{
|
|
817
843
|
find: /^vee-validate$/,
|
|
818
|
-
replacement:
|
|
844
|
+
replacement: jt
|
|
819
845
|
}] } },
|
|
820
846
|
optimizeDeps: {
|
|
821
847
|
include: [
|
|
@@ -823,11 +849,11 @@ function hn(e = {}) {
|
|
|
823
849
|
...a,
|
|
824
850
|
...o
|
|
825
851
|
].filter((e) => !t.includes(e)),
|
|
826
|
-
exclude:
|
|
852
|
+
exclude: mt.filter((e) => !n.includes(e))
|
|
827
853
|
},
|
|
828
854
|
...d.length ? { ssr: { noExternal: d } } : {},
|
|
829
855
|
build: { rollupOptions: { output: { chunkFileNames(e) {
|
|
830
|
-
if (e.facadeModuleId?.startsWith(
|
|
856
|
+
if (e.facadeModuleId?.startsWith(mn)) {
|
|
831
857
|
let t = e.facadeModuleId.slice(17);
|
|
832
858
|
return `${s}/icons/${t.replace("/", "_")}-[hash].js`;
|
|
833
859
|
}
|
|
@@ -836,28 +862,32 @@ function hn(e = {}) {
|
|
|
836
862
|
};
|
|
837
863
|
},
|
|
838
864
|
transform(e, t) {
|
|
839
|
-
return
|
|
865
|
+
return x || t.includes("/node_modules/") || t.startsWith("\0") || !/\.(vue|[cm]?[jt]sx?)(\?|$)/.test(t) || Lt(e) && this.error(`${Pt}\n used in ${Ee(h || process.cwd(), t.split("?")[0])}`), null;
|
|
840
866
|
},
|
|
841
867
|
renderChunk(e) {
|
|
842
|
-
return !
|
|
868
|
+
return !x && e.includes(Nt) && this.error(Pt), null;
|
|
843
869
|
},
|
|
844
870
|
configResolved(e) {
|
|
845
|
-
|
|
871
|
+
h = e.root, b = te ?? h, T = e.command === "build", E = A(h, e.build?.outDir ?? "dist"), D = e.build?.rollupOptions?.input, e.logger && (j = e.logger);
|
|
846
872
|
},
|
|
847
873
|
resolveId(e) {
|
|
848
|
-
if (e ===
|
|
849
|
-
if (e ===
|
|
850
|
-
if (e ===
|
|
851
|
-
if (e ===
|
|
852
|
-
if (e ===
|
|
853
|
-
if (e ===
|
|
854
|
-
if (e === It) return Lt;
|
|
855
|
-
if (e === At) return jt;
|
|
874
|
+
if (e === yt) return bt;
|
|
875
|
+
if (e === xt) return St;
|
|
876
|
+
if (e === Ct) return wt;
|
|
877
|
+
if (e === Dt) return Ot;
|
|
878
|
+
if (e === Tt) return Et;
|
|
879
|
+
if (e === kt) return At;
|
|
856
880
|
if (e === Rt) return zt;
|
|
857
|
-
if (e
|
|
881
|
+
if (e === jt) return Mt;
|
|
882
|
+
if (e === Bt) return Vt;
|
|
883
|
+
if (e.startsWith(pn)) return "\0" + e;
|
|
884
|
+
if (e.startsWith("virtual:bitboss-ui/")) {
|
|
885
|
+
let t = Ue(e, ne, h);
|
|
886
|
+
t && this.error(t);
|
|
887
|
+
}
|
|
858
888
|
},
|
|
859
889
|
async load(e) {
|
|
860
|
-
if (e ===
|
|
890
|
+
if (e === St) {
|
|
861
891
|
let { iconDir: e, enabledLocales: t, passthroughDeduper: n, configScopes: r, components: i, pt: a, ...o } = f, s = {
|
|
862
892
|
inertiaLinkName: "Link",
|
|
863
893
|
nuxtLinkName: "NuxtLink",
|
|
@@ -870,89 +900,89 @@ function hn(e = {}) {
|
|
|
870
900
|
resetCss: !1,
|
|
871
901
|
cssLayers: void 0,
|
|
872
902
|
injectDirectives: !0,
|
|
873
|
-
...Object.fromEntries(Object.entries(o).filter(([e]) => !Object.values(
|
|
903
|
+
...Object.fromEntries(Object.entries(o).filter(([e]) => !Object.values(y).includes(e))),
|
|
874
904
|
pt: f.pt,
|
|
875
|
-
components:
|
|
905
|
+
components: he(f.components),
|
|
876
906
|
variantIcons: {
|
|
877
|
-
toast:
|
|
878
|
-
alert:
|
|
907
|
+
toast: Ce(f.toastVariants),
|
|
908
|
+
alert: Ce(f.alertVariants)
|
|
879
909
|
},
|
|
880
|
-
variantNames: Object.fromEntries(Object.keys(
|
|
881
|
-
defaultLocale:
|
|
882
|
-
...f.locale !== void 0 &&
|
|
910
|
+
variantNames: Object.fromEntries(Object.keys(y).map((e) => [y[e], _e(_[e], f[y[e]])])),
|
|
911
|
+
defaultLocale: ke,
|
|
912
|
+
...f.locale !== void 0 && oe(f.locale) ? { locale: ke } : {}
|
|
883
913
|
};
|
|
884
914
|
return `import { reactive } from 'vue';\nexport const config = reactive(${JSON.stringify(s)});\nexport const configScopes = ${JSON.stringify(r ?? {})};\n`;
|
|
885
915
|
}
|
|
886
|
-
if (e ===
|
|
887
|
-
if (e ===
|
|
888
|
-
if (e ===
|
|
889
|
-
enabled:
|
|
890
|
-
extended:
|
|
891
|
-
numberingSystems:
|
|
916
|
+
if (e === Ot) return $e(P);
|
|
917
|
+
if (e === wt) return tt(z.found);
|
|
918
|
+
if (e === Et) return Qe(I, {
|
|
919
|
+
enabled: P.filter((e) => p[e].dayjs === null || z.found.some((t) => t.key === e)),
|
|
920
|
+
extended: F.length > 0,
|
|
921
|
+
numberingSystems: He
|
|
892
922
|
});
|
|
893
|
-
if (e ===
|
|
894
|
-
if (e ===
|
|
895
|
-
if (e ===
|
|
896
|
-
if (e ===
|
|
897
|
-
if (f.passthroughDeduper !== void 0) return
|
|
898
|
-
|
|
899
|
-
let e =
|
|
900
|
-
return
|
|
923
|
+
if (e === At) return `export default ${JSON.stringify(Ht())};`;
|
|
924
|
+
if (e === Mt) return It();
|
|
925
|
+
if (e === zt) return ft(dt(h));
|
|
926
|
+
if (e === Vt) {
|
|
927
|
+
if (f.passthroughDeduper !== void 0) return nt(f.passthroughDeduper, h);
|
|
928
|
+
g ??= at(h);
|
|
929
|
+
let e = H(g.values());
|
|
930
|
+
return v = JSON.stringify(e), nt(void 0, h, void 0, e);
|
|
901
931
|
}
|
|
902
|
-
if (e.startsWith(
|
|
932
|
+
if (e.startsWith(mn)) {
|
|
903
933
|
let t = e.slice(17), n = t.indexOf("/"), r = t.slice(0, n), i = t.slice(n + 1), a = B.get(r);
|
|
904
934
|
a || this.error(`[bitboss-ui] cannot load "${r}:${i}" — @iconify-json/${r} is not installed.\n Run: npm install -D @iconify-json/${r}`);
|
|
905
|
-
let o =
|
|
906
|
-
return o || this.error(`[bitboss-ui] icon "${i}" does not exist in the ${r} icon set`), `export default ${JSON.stringify(
|
|
935
|
+
let o = N(a, i);
|
|
936
|
+
return o || this.error(`[bitboss-ui] icon "${i}" does not exist in the ${r} icon set`), `export default ${JSON.stringify(je(o))};`;
|
|
907
937
|
}
|
|
908
|
-
if (e !==
|
|
909
|
-
let t =
|
|
938
|
+
if (e !== bt) return;
|
|
939
|
+
let t = A(h, f.iconDir), n = "/" + Ee(h, t).replace(/\\/g, "/") + "/**/*.svg", r = await K(), i = Re(f.iconWhitelist ?? [], B, V, ot);
|
|
910
940
|
i.errors.length > 0 && this.error(i.errors.length === 1 ? i.errors[0] : `[bitboss-ui] iconWhitelist has ${i.errors.length} entries that do not resolve:\n - ${i.errors.map((e) => e.replace(/^\[bitboss-ui\] /, "")).join("\n - ")}`);
|
|
911
941
|
let a = /* @__PURE__ */ new Set([...r.icons, ...i.icons]), o = Array.from(a).sort().flatMap((e) => {
|
|
912
|
-
let t =
|
|
913
|
-
return t ? [`\t${JSON.stringify(e)}: () => import(${JSON.stringify(
|
|
942
|
+
let t = Ae(e);
|
|
943
|
+
return t ? [`\t${JSON.stringify(e)}: () => import(${JSON.stringify(pn + t.prefix + "/" + t.name)}).then(m => m.default),`] : [];
|
|
914
944
|
}).join("\n"), s = T ? null : Object.fromEntries(Array.from(B.entries()).map(([e, t]) => [e, Le(t, V.get(e))]));
|
|
915
|
-
return `const _local = import.meta.glob(${JSON.stringify(n)}, { query: '?raw', import: 'default' });\nconst _localIcons = Object.fromEntries(Object.entries(_local).map(([k, l]) => { const f = k.split(/[/\\\\]+/).pop(); return [\`local:\${f.replace(/\\.svg$/i, '')}\`, l]; }));\nconst _icons = {\n` + (o ? o + "\n" : "") + `\t..._localIcons,\n};\nconst _ip = new Set(${JSON.stringify(Array.from(
|
|
945
|
+
return `const _local = import.meta.glob(${JSON.stringify(n)}, { query: '?raw', import: 'default' });\nconst _localIcons = Object.fromEntries(Object.entries(_local).map(([k, l]) => { const f = k.split(/[/\\\\]+/).pop(); return [\`local:\${f.replace(/\\.svg$/i, '')}\`, l]; }));\nconst _icons = {\n` + (o ? o + "\n" : "") + `\t..._localIcons,\n};\nconst _ip = new Set(${JSON.stringify(Array.from(ot))});\nconst _loaded = new Set(${JSON.stringify(Array.from(B.keys()))});\nconst _all = ${s ? JSON.stringify(s) : "null"};\nconst _diag = ${Ie};\nconst _fail = (msg) => () => { const _e = new Error(); import.meta.hot?.send('bitboss-ui:icon-missing', { msg, stack: _e.stack }); return Promise.reject(new Error(msg)); };\nexport const icons = new Proxy(_icons, {\n\tget(t, k) {\n\t\tif (k in t || typeof k !== 'string' || !k.includes(':')) return t[k];\n\t\tconst _msg = _diag(k, _loaded, (p) => Object.keys(t).filter((x) => x.startsWith(p + ':')).map((x) => x.slice(p.length + 1)), (p) => (_all && _all[p]) || null, _ip);\n\t\treturn _msg ? _fail(_msg) : undefined;\n\t},\n});\n`;
|
|
916
946
|
},
|
|
917
947
|
buildStart() {
|
|
918
|
-
|
|
919
|
-
let e =
|
|
948
|
+
st();
|
|
949
|
+
let e = A(h, f.iconDir), t = $t(f.iconDir, e);
|
|
920
950
|
if (t && this.warn(t), !T) {
|
|
921
|
-
let e = ze(
|
|
951
|
+
let e = ze(b, Ve(R));
|
|
922
952
|
e && this.warn(e);
|
|
923
953
|
}
|
|
924
|
-
!T && f.vscodeSettings !== !1 && (
|
|
954
|
+
!T && f.vscodeSettings !== !1 && (k(e, b, (e) => this.warn(e)), fn(b, {
|
|
925
955
|
info: (e) => this.info(e),
|
|
926
956
|
warn: (e) => this.warn(e)
|
|
927
957
|
}));
|
|
928
|
-
for (let e of
|
|
929
|
-
for (let e of
|
|
930
|
-
for (let e of
|
|
931
|
-
for (let e of
|
|
958
|
+
for (let e of De) this.warn(e);
|
|
959
|
+
for (let e of Ne) this.warn(e);
|
|
960
|
+
for (let e of Ke) this.warn(e);
|
|
961
|
+
for (let e of Oe) this.warn(e);
|
|
932
962
|
for (let e of z.missing) this.warn(`[bitboss-ui] locale '${e}' has no dayjs counterpart (dayjs/locale/${e}) — its calendars fall back to English. Dayjs locale names: https://github.com/iamkun/dayjs/tree/dev/src/locale`);
|
|
933
|
-
f.locale && !m(f.locale) && !
|
|
934
|
-
let n =
|
|
935
|
-
root:
|
|
936
|
-
input:
|
|
963
|
+
f.locale && !m(f.locale) && !M.includes(f.locale) && this.warn(`[bitboss-ui] \`locale: '${f.locale}'\` is not a built-in locale${Ye(f.locale)} — the library ships ${d.length} locales. Strings fall back to the default locale.`);
|
|
964
|
+
let n = Se({
|
|
965
|
+
root: h,
|
|
966
|
+
input: D,
|
|
937
967
|
dts: f.dts
|
|
938
968
|
});
|
|
939
969
|
if (n) {
|
|
940
|
-
let e =
|
|
970
|
+
let e = xe(f), t = we(n, {
|
|
941
971
|
...e,
|
|
942
972
|
LocaleRegistry: [
|
|
943
|
-
...
|
|
944
|
-
...
|
|
945
|
-
...
|
|
973
|
+
...P.flatMap((e) => [e, ...ee(e)]),
|
|
974
|
+
...F,
|
|
975
|
+
...M
|
|
946
976
|
],
|
|
947
977
|
ConfigScopeRegistry: Object.keys(f.configScopes ?? {}),
|
|
948
|
-
EmptyStringControlRegistry:
|
|
978
|
+
EmptyStringControlRegistry: ve(f.components)
|
|
949
979
|
}), r = Be(n);
|
|
950
|
-
t === "changed" ? this.info(`[bitboss-ui] Wrote ${r} — commit this file so CI and teammates get matching types.`) : typeof t == "object" && !L.has("write") && (L.add("write"), this.warn(`[bitboss-ui] could not write ${r} (${t.error}). The committed copy still types the app; regenerate it where the project is writable.`)), !L.has("program") &&
|
|
980
|
+
t === "changed" ? this.info(`[bitboss-ui] Wrote ${r} — commit this file so CI and teammates get matching types.`) : typeof t == "object" && !L.has("write") && (L.add("write"), this.warn(`[bitboss-ui] could not write ${r} (${t.error}). The committed copy still types the app; regenerate it where the project is writable.`)), !L.has("program") && S(n) && (L.add("program"), be(h, n) === !1 && this.warn(`[bitboss-ui] ${r} is outside your TypeScript project — custom names will look like typos. Set \`dts\` to a path inside your app sources (for example resources/js/).`));
|
|
951
981
|
}
|
|
952
982
|
},
|
|
953
983
|
configureServer(e) {
|
|
954
|
-
|
|
955
|
-
let t =
|
|
984
|
+
hn(te ?? e.config.root, f.ai !== !1, e.config.logger);
|
|
985
|
+
let t = A(e.config.root, f.iconDir), n = (e) => e.startsWith(t) && e.endsWith(".svg");
|
|
956
986
|
e.ws.on("bitboss-ui:icon-missing", (t) => {
|
|
957
987
|
if (process.env.VITEST || e.config.mode === "test") return;
|
|
958
988
|
let n = t.stack ? t.stack.replace(/^Error/, `Error: ${t.msg}`) : `Error: ${t.msg}`;
|
|
@@ -966,52 +996,52 @@ function hn(e = {}) {
|
|
|
966
996
|
});
|
|
967
997
|
});
|
|
968
998
|
let r = async (t, n) => {
|
|
969
|
-
if (f.passthroughDeduper !== void 0 || !
|
|
970
|
-
let r = n ? {} :
|
|
999
|
+
if (f.passthroughDeduper !== void 0 || !g || !it(h, t)) return;
|
|
1000
|
+
let r = n ? {} : rt((() => {
|
|
971
1001
|
try {
|
|
972
|
-
return
|
|
1002
|
+
return w(t, "utf-8");
|
|
973
1003
|
} catch {
|
|
974
1004
|
return "";
|
|
975
1005
|
}
|
|
976
1006
|
})());
|
|
977
|
-
if (Object.keys(r).length)
|
|
978
|
-
else if (!
|
|
979
|
-
let i = JSON.stringify(
|
|
980
|
-
if (i ===
|
|
981
|
-
|
|
982
|
-
let a = e.moduleGraph.getModuleById(
|
|
1007
|
+
if (Object.keys(r).length) g.set(t, r);
|
|
1008
|
+
else if (!g.delete(t)) return;
|
|
1009
|
+
let i = JSON.stringify(H(g.values()));
|
|
1010
|
+
if (i === v) return;
|
|
1011
|
+
v = i;
|
|
1012
|
+
let a = e.moduleGraph.getModuleById(Vt);
|
|
983
1013
|
a && await e.reloadModule(a);
|
|
984
1014
|
};
|
|
985
1015
|
e.watcher.on("change", (e) => void r(e, !1)), e.watcher.on("add", (e) => void r(e, !1)), e.watcher.on("unlink", (e) => void r(e, !0));
|
|
986
1016
|
let i = async () => {
|
|
987
|
-
let t = e.moduleGraph.getModuleById(
|
|
1017
|
+
let t = e.moduleGraph.getModuleById(bt);
|
|
988
1018
|
t && await e.reloadModule(t);
|
|
989
1019
|
}, a, o = () => {
|
|
990
|
-
clearTimeout(a), a = setTimeout(() => void
|
|
1020
|
+
clearTimeout(a), a = setTimeout(() => void U?.persist(), 500);
|
|
991
1021
|
}, s = Promise.resolve(), c = (e, t) => {
|
|
992
1022
|
s = s.then(async () => {
|
|
993
|
-
if (!
|
|
1023
|
+
if (!U) return;
|
|
994
1024
|
let n;
|
|
995
|
-
if (
|
|
996
|
-
let e =
|
|
997
|
-
|
|
998
|
-
let t =
|
|
1025
|
+
if (Te(t) === ".gitignore") {
|
|
1026
|
+
let e = U.icons;
|
|
1027
|
+
U.resetGitignores(), await U.scan();
|
|
1028
|
+
let t = U.icons;
|
|
999
1029
|
n = e.size !== t.size || [...e].some((e) => !t.has(e));
|
|
1000
|
-
} else n = e === "unlink" ?
|
|
1030
|
+
} else n = e === "unlink" ? U.removeFile(t) : await U.updateFile(t);
|
|
1001
1031
|
o(), n && await i();
|
|
1002
1032
|
}).catch((e) => {
|
|
1003
1033
|
j.warn(`[bitboss-ui] icon scan: could not update ${t} (${e instanceof Error ? e.message : String(e)})`);
|
|
1004
1034
|
});
|
|
1005
1035
|
};
|
|
1006
|
-
if (
|
|
1036
|
+
if (G = e.watcher, U) for (let e of U.includeDirs) G.add(e);
|
|
1007
1037
|
for (let r of [
|
|
1008
1038
|
"add",
|
|
1009
1039
|
"change",
|
|
1010
1040
|
"unlink"
|
|
1011
1041
|
]) e.watcher.on(r, (i) => {
|
|
1012
|
-
n(i) ? f.vscodeSettings !== !1 &&
|
|
1042
|
+
n(i) ? f.vscodeSettings !== !1 && k(t, te ?? e.config.root, (e) => j.warn(e)) : c(r, i);
|
|
1013
1043
|
});
|
|
1014
1044
|
}
|
|
1015
1045
|
};
|
|
1016
1046
|
}
|
|
1017
|
-
export { s as BB_LAYERS, d as BUILTIN_LOCALE_KEYS,
|
|
1047
|
+
export { s as BB_LAYERS, d as BUILTIN_LOCALE_KEYS, ht as CALENDAR_ENGINE, x as DEFAULTS_ALLOWLIST, e as DEFAULT_MAX_FILE_SIZE, _ as DEFAULT_VARIANT_REGISTRIES, t as IconScanner, q as LOCAL_ICONS_JSON_PATH, mt as REQUIRED_OPTIMIZE_DEPS_EXCLUDE, pt as REQUIRED_OPTIMIZE_DEPS_INCLUDE, K as SSR_NO_EXTERNAL, qt as TAILWIND_CLASS_ATTRIBUTES_DEFAULTS, Z as TAILWIND_PT_CLASS_ATTRIBUTE, Q as TAILWIND_PT_CLASS_REGEX, c as TAILWIND_V3_LAYERS, l as TAILWIND_V4_LAYERS, Pt as VEE_MISSING_MESSAGE, _n as bitbossUi, st as collectThemeNames, Zt as defaultVscodeSettings, I as diagnoseMissingIcon, Re as expandIconWhitelist, n as extractIconCandidates, Qe as generateCalendarsModule, tt as generateDayjsLocalesModule, ft as generateLinkModule, $e as generateLocalesModule, nt as generatePassthroughDeduperModule, It as generateVeeMissingModule, dt as hasInertia, a as iconLiteralRegExp, o as iconScanCacheFile, oe as invalidLocaleTag, it as isAppThemeCss, $t as localIconDirWarning, H as mergeThemeNames, Ze as resolveCalendars, et as resolveDayjsLocales, Xe as resolveEnabledLocales, vt as resolveSsrNoExternal, at as scanThemeFiles, en as stripJsonComments, rt as themeNamesInCss, fn as updateVscodeSettings, ze as upgradeHint, Lt as usesBbForm, ct as validatePassthroughDeduper, Je as validatePtGlobalMapNames, qe as validateVariantNames, Qt as writeLocalIconifyCollection };
|