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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@angel-gonzalez/ngx-touch-keyboard

v4.0.12

Published

Teclado en pantalla para Angular Material 18

Downloads

9

Readme

AngularTouchKeyboard

MIT licensed npm version Build Status

What is this?

Virtual Keyboard for Angular applications. Forked from ngx-touch-keyboard and added some features to work in webkit and spanish layouts.

angular touch keyboard

Install

Step 1: Install @angel-gonzalez/ngx-touch-keyboard

npm install @angular/cdk @angel-gonzalez/ngx-touch-keyboard

Step 2: Import the module

Add ngxTouchKeyboardModule as an import in your app's root NgModule.

import { ngxTouchKeyboardModule }  from 'ngx-touch-keyboard';
@NgModule({
  ...
  imports: [
    ...
    ngxTouchKeyboardModule,
  ],
  ...
})
export class AppModule { }

Compatibility

Version [4.0.12]

  • @angular/core: ^18.0.0
  • @angular/cdk: ^18.0.0

Localization

AngularTouchKeyboard is localized in 5 keyboard-specific locales:

  • es-ES English (United States) (default)
  • en-US English (United States)
  • en-UK English (United Kingdom)
  • fa-IR Persian (Iran)
  • sv-SE Swedish (Sweden)
  • ka-GE Georgian (Georgia)

Usage

Simple usage example

<input
  type="text"
  ngxTouchKeyboard
  #touchKeyboard="ngxTouchKeyboard"
  (focus)="touchKeyboard.openPanel()"
/>

Locale usage example

<input
  type="text"
  ngxTouchKeyboard="fa-IR"
  #touchKeyboard="ngxTouchKeyboard"
  (focus)="touchKeyboard.openPanel()"
/>

Material usage example

<mat-form-field>
  <mat-label>Default</mat-label>
  <input
    matInput
    type="text"
    ngxTouchKeyboard
    #touchKeyboard="ngxTouchKeyboard"
  />
  <button
    mat-icon-button
    matSuffix
    type="button"
    (click)="touchKeyboard.togglePanel()"
  >
    <mat-icon> keyboard </mat-icon>
  </button>
</mat-form-field>

Properties

| Property | Description | | ---------------------------- | ----------------------------------------------------------- | | ngxTouchKeyboard | Required to initialize Virtual Keyboard to specified input. | | ngxTouchKeyboardDebug | Debug mode is on. | | ngxTouchKeyboardFullScreen | Full screen mode is on. |

Methods

Here's the list of all available methods:

| Methods | Description | | --------------------- | --------------------- | | openPanel(): void | Open keyboard panel | | closePanel(): void | Close keyboard panel | | togglePanel(): void | Toggle keyboard panel |

Themes

Built-in themes

  • default: white theme
  • dark: dark theme

You must put the class dark in the body to use the dark theme.

Create custom theme

To customize the theme, you need to use css variables.

| Name | Description | | ------------------------------- | ------------------------------------- | | --tk-color-text | color of text button | | --tk-background | color of background panel | | --tk-background-button | color of background basic button | | --tk-background-button-fn | color of background functional button | | --tk-background-button-active | color of background active button |

Layouts

Depends on attribute inputmode, the keyboard layout is changed.

| inputmode | Screenshot | | --------------------- | -------------------------------------------------------------------------------------------------------- | | inputmode='text' | angular touch keyboard | | inputmode='search' | angular touch keyboard | | inputmode='email' | angular touch keyboard | | inputmode='url' | angular touch keyboard | | inputmode='numeric' | angular touch keyboard | | inputmode='decimal' | angular touch keyboard | | inputmode='tel' | angular touch keyboard |

Development

The most useful commands for development are:

  • npm run start to start a development server
  • npm run build-demo to build the demo locally (it will be published automatically by GitHub Actions)

License

The MIT License (MIT)