0.0.6 • Published 9 months ago

deprecated-ui v0.0.6

Weekly downloads
-
License
-
Repository
github
Last release
9 months ago

logo.svg

Deprecated UI - Easy Component Library

The Deprecated UI component library is the pinnacle of innovation and efficiency, offering developers a comprehensive suite of reliable and modern solutions. Seamlessly integrated with Angular, this library empowers you to effortlessly upgrade your deprecated UI components and embrace the future of web development. With its intuitive interface, extensive customization options, and advanced features, Deprecated UI streamlines the process of refactoring your applications, ensuring a smooth transition to the latest industry standards. Experience the power of Angular Deprecated UI and unlock limitless creativity in designing visually stunning, high-performance web applications.

Specifications

Components

  1. Button
props
no specs
  1. Player
propType
1sourcestring
2Audio namestring
3author namestring
  1. Icon - no necessary props

Directives

  1. Ripple
propType
1ripple colorstring
  1. Drag N Drop - no props

Services

  1. Dialog Service
propTypewhat is this prop
1widthnumberwindow width
2heightnumberwindow height
3backgroundstringwindow background
4templateTemplateReftemplate for which will be projected in window

Important You need crete CSS variables for primary and secondary color and need crete CSS vars for --btnColor or else appearance will does-not work correctly

Usages

  1. Window
  import { Component, DestroyRef, inject, TemplateRef } from '@angular/core';
import { AppWrapperComponent } from '@deprecated-ui/cdk';
import { DialogService } from '@deprecated-ui/components';

@Component({
  standalone: true,
  imports: [AppWrapperComponent, DialogService],
  providers: [DialogService],
  template: `<dui-app-wrapper>
              <dui-button (click)="open()">face</dui-button>
             </dui-app-wrapper>
             `
})
export class AppComponent {
  private dialog = inject(DialogService);
  private destroyRef = inject(DestroyRef)

  public openDialog(template: TemplateRef<any>) {
    this.dialog.open(DialogComponent, {
        width: 200,
        height: 200,
        template: template
      }, { test: 'data' }
    )
      .pipe(takeUntilDestoyed(this.destroyRef))
      .subscribe()
  }
}

Questions:

Q: Why i need a subscribe for open the Dialog?

A: Because method open returns observable

Q: What is data?

A: It is unnecessary prop for window. This prop produce data what your want to your window

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago

1.0.1-b

9 months ago

1.0.0

9 months ago