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

essence-ionic

v5.0.0

Published

This is ionic custom components.

Readme

essence-ionic

This is ionic custom components.

Introduce

  1. essence-ion-amap(高德地图)

  2. essence-ion-videoplayer(视频播放器)

  3. essence-ion-calendar(日历)

Usage

  1. Install

    npm install --save essence-ionic@latest
  2. Add the EssenceIonicModule

    import {EssenceIonicModule} from "essence-ionic";
    @NgModule({
        imports: [
            EssenceIonicModule
        ]
    })

Use components

essence-ion-amap

需求在index.html引入高德地图API:

  1. Use in Template

    <essence-ion-amap (ready)="amapReady($event)" (destroy)="amapDestroy($event)"></essence-ion-amap>
  2. Use in component

    amapReady ($event: EssenceIonAMapComponent) {
        console.log($event);
    }
    
    amapDestroy ($event) {
        console.log($event);
    }

essence-ion-videoplayer

  1. Use in Template

    <div #videoDiv>
        <essence-ion-videoplayer (ready)="videoViewerReady($event)" [source]="url" [width]="videoDiv.offsetWidth"></essence-ion-videoplayer>
    </div>
  2. Use in component

    url: string = 'http://www.laixiangran.cn/CDN/custom/video/test.mp4';
    
    constructor() {}
    
    videoViewerReady($event: any) {
        console.log($event);
    }

essence-ion-calendar

  1. Use in Template

    <essence-ion-calendar [schedules]="schedules"
    					  (ready)="onReady()"
    					  (ViewSchedule)="onViewSchedule($event)"
    					  (dateChange)="onDateChange($event)">
    </essence-ion-calendar>
  2. Use in component

    schedules: any;
    
    constructor() {
    	this.schedules = [
    		{
    			date: new Date(),
    			data: {
    				title: '参加会议',
    				address: '公司会议室',
    				content: '讨论考核制度',
    				info: '参会人员包括:张三、李四'
    			}
    		}
    	]
    }
    
    onReady() {
    	console.log('日历组件加载完成!');
    }
    
    onDateChange($event: Date) {
    	console.log($event);
    }
    
    onViewSchedule($event: any) {
    	console.log($event);
    }

API

essence-ion-amap

Inputs

  • apiKey(string) - 高德地图JS API key,请到官网申请

  • webApiKey(string) - 高德地图Web服务key,请到官网申请

  • options?Object) - 地图初始化参数对象,参数详情

  • showCurrentLocation?boolean=false) - 是否显示定位按钮,true为显示

  • isShowMapToolbar?boolean=true) - 是否显示左下角地图工具栏,true为显示

  • showLocationMarker?boolean=true) - 是否显示定位之后的图标,true为显示

  • showTraffic?boolean=false) - 是否加载实时交通图层,true为加载

Outputs (event)

  • ready($event) - 地图初始化完成事件,参数$event为当前EssenceIonAMapComponent实例对象

  • destroy($event) - 地图销毁事件

  • location($event) - 地图定位成功事件,参数$event为{code,info, result}

Properties

  • eAMapany) - 高德地图对象AMap

essence-ion-videoplayer

Inputs

  • width?number=0) - 视频播放器的宽度

  • height?number=0) - 视频播放器的高度

  • poster (?string) - 视频海报路径

  • sourcestring) - 视频路径

Outputs (event)

  • ready($event) - 视频播放器初始化完成事件,参数$event为当前EssenceIonVideoplayerComponent实例对象

  • videoPlay($event) - 视频播放开发事件

  • videoPause($event) - 视频播放暂停事件

  • videoEnded($event) - 视频播放结束事件

  • videoPan($event) - 视频滑动快进/退事件

  • videoError($event) - 视频播放错误事件

essence-ion-calendar

Inputs

  • schedules?Array<{date: Date, data: any}>) - 要显示在日历中对应日期的数据

Outputs (event)

  • ready($event) - 日历初始化完成事件,参数$event为当前EssenceIonCalendarComponent实例对象

  • dateChange($event) - 日期改变事件,参数$event为改变之后的日期

  • viewData($event) - 查看对应日期的数据

License

MIT License