Skip to content

ikilote/Magma

Repository files navigation

@ikilote/magma

npm version Downloads MIT license Angular 21.0

Magma is a component library for my personal projects, because I don't want to copy/paste.

It will evolve mainly according to my projects. But people want to use it and help, no worries.

Included in Magma

Components

  • Block
  • Color picker
  • Context-menu
    • List in options
    • Circle in options
  • Contrib calendar
  • Dialog
  • Expansion panel
  • Info-message
  • Input
    • Checkbox
    • Color
    • Date
    • Number
    • Password
    • Radio
    • Range
    • Select
    • Text
    • Textarea
  • Light-dark
  • Loader
  • Loader-block
  • Message
  • Paginate
  • Progress
  • Spinner
  • Table
  • Tabs
  • Walkthrough

Services

  • Cache
  • FormBuilderExtended
  • Logger

Pipes

  • arrayFilter
  • classList
  • fileSize
  • math
  • numFormat
  • repeatFor
  • strRelace

Directive

  • Click Enter
  • Click Outside
  • Limit-focus
  • ngInit
  • ngModelChange debounced
  • Sortable
  • Stop Propagation
  • Tooltip
  • Textarea autosize

Utils

  • Array
  • Clipboard
  • Coercion
  • CSS
  • Cookies
  • Date
  • DOM
  • Email
  • Enum
  • File
  • Json
  • Number
  • Object
  • Text
  • Subscriptions

Styles

  • Buttons
  • Links
  • Input
  • Grid
    • Responsive
  • Palette

Demo

See : Demo

For start

Install in project:

npm i @ikilote/magma colorjs.io ng-select2-component

Required in package.json

  • @angular/common: ^21.0.0
  • @angular/core: ^21.0.0
  • @angular/cdk: ^21.0.0

Add in style.css

@import '@angular/cdk/overlay-prebuilt.css';

@import '../node_modules/@ikilote/magma/assets/styles/font-icon.css';
@import '../node_modules/@ikilote/magma/assets/styles/css-var.css';
@import '../node_modules/@ikilote/magma/assets/styles/style.css';

Supported versions of Angular

Magma Angular
1.1.0 21.0
1.0.0 20.x

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Publishing the library

npm run build:lib
npm run publish:lib

Update Demo

npm run build:demo

Test

Linux

Required for start test

export CHROME_BIN=chromium

test for lib

npm run test:lib

Coverage

Statements 100% (1879/1879) Branches 100% (811/811) Functions 100% (485/485) Lines 100% (1829/1829)

License

Like Angular, this module is released under the permissive MIT license. Your contributions are always welcome.