npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@g1cloud/open-bluesea-nuxt-module

v1.1.1

Published

Open Bluesea Next Module

Readme

@g1cloud/open-bluesea-nuxt-module

npm version npm downloads License Nuxt

Nuxt module for @g1cloud/open-bluesea-core - Vue UI component library.

Features

  • Auto-import of 25+ UI components (BSButton, BSTextInput, BSCheckbox, BSSelect, etc.)
  • Auto-import of composables (useBlueseaConfig, showNotification, useSavePoint, etc.)
  • Vue directives (v-tooltip, v-focus-on-load, v-click-outside)
  • Notification system
  • Context menu support
  • SavePoint (change tracking) support

Quick Setup

Install the module to your Nuxt application:

pnpm add @g1cloud/open-bluesea-nuxt-module

Add to your nuxt.config.ts:

export default defineNuxtConfig({
  modules: ['@g1cloud/open-bluesea-nuxt-module'],
  openBluesea: {
    // Optional configuration
    dateFormat: 'YYYY-MM-DD HH:mm',
  },
})

Usage

Components are auto-imported and can be used directly in your templates:

<template>
  <div>
    <BSButton @click="handleClick">
      Click me
    </BSButton>

    <BSTextInput v-model="text" placeholder="Enter text..." />

    <BSCheckbox v-model="checked">
      Check me
    </BSCheckbox>

    <span v-tooltip="'Tooltip text'">Hover me</span>

    <!-- Required for notifications -->
    <BSNotificationContainer />
  </div>
</template>

<script setup>
const text = ref('')
const checked = ref(false)

const handleClick = () => {
  showNotification('Button clicked!', 'info')
}
</script>

Available Components

Basic Components

  • BSButton - Button
  • BSPageNavigation - Pagination
  • BSLoadingIcon - Loading indicator
  • BSPopup - Popup/Modal
  • BSTooltip - Tooltip
  • BSCalendar - Calendar picker
  • BSCalendarRange - Date range calendar

Input Components

  • BSTextInput - Text input
  • BSNumberInput - Number input
  • BSTextArea - Text area
  • BSCheckbox / BSCheckboxGroup - Checkbox
  • BSRadioButton / BSRadioButtonGroup - Radio button
  • BSSelect / BSMultiSelect - Dropdown select
  • BSDateInput / BSDateInputPopup - Date input
  • BSDateRange / BSDateRangeInputPopup - Date range input

Layout Components

  • BSCardLayout - Card layout

Container Components

  • BSNotificationContainer - Notification container
  • BSContextMenuContainer - Context menu container
  • BSContextMenu - Context menu

Available Composables

  • useBlueseaConfig() - Access configuration
  • showNotification() / showAlarm() / closeAlarm() - Notification system
  • showTooltip() / hideTooltip() - Tooltip control
  • showLoading() / hideLoading() / withLoading() - Loading state
  • useContextMenu() / createContextMenuPlugin() - Context menu
  • provideSavePoint() / useSavePoint() - Change tracking
  • provideFieldContext() / useFieldContext() - Field context
  • debounce() - Debounce utility
  • waitUntil() / waitDuring() / tryUntil() - Async utilities

Configuration Options

interface ModuleOptions {
  dateFormat?: string           // Default: 'YYYY-MM-DD HH:mm'
  dateFormatDay?: string        // Default: 'YYYY-MM-DD'
  dateFormatMinute?: string     // Default: 'YYYY-MM-DD HH:mm'
  dateFormatSecond?: string     // Default: 'YYYY-MM-DD HH:mm:ss'
  minDateValue?: string
  maxDateValue?: string
  timeZone?: string
  componentConfig?: {
    popup?: {
      container?: string | HTMLElement
      hideOnScroll?: boolean
    }
    calendar?: {
      startYear?: string
      endYear?: string
    }
  }
}

Development

# Install dependencies
pnpm install

# Generate type stubs
pnpm dev:prepare

# Develop with the playground
pnpm dev

# Run ESLint
pnpm lint

# Run tests
pnpm test

# Type check
pnpm test:types

Publishing

# Full release (lint, test, build, changelog, publish, push tags)
pnpm release

# Or step by step:
# 1. Build the module
pnpm prepack

# 2. Generate changelog and bump version
npx changelogen --release

# 3. Publish to npm
npm publish

# 4. Push tags to git
git push --follow-tags