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

angular-alur-kerja-lib

v0.2.3-s

Published

- `npm i angular-alur-kerja-lib`

Downloads

66

Readme

Readme

Install Latest

  • npm i angular-alur-kerja-lib

Create CRUD Command

  • ng g crud-component-alur-kerja:crud-component --name=<nama_collection_bpmn> --path=src/app/pages(metronic path) untuk melakukan generate otamatis
  • contoh ng g crud-component-alur-kerja:crud-component --name=organization --path=src/app/pages
  • setelah itu masuk ke folder src/app/pages/organization
  • sesuaikan beberapa konfigurasi
  • masuk ke organization.service.ts, edit dan sesuaikan bagian variable API_URL
  • contoh API_URL = '${environment.apiUrl}/crud/organization';
  • edit dan sesuaikan header (jika API nya menggunakan bearer token)
  • contoh myHeader = getAWSHeaders(localStorage.getItem('id_token'))
  • edit dan sesuaikan function filterForm() dan filter() utk menambah filter pencarian, secara default pencarian nya menggunakan id
  • comment function getForms() pada ngOnInit() jika tidak ingin menggunakan manual form bukan mengambil dari BE
  • jika ingin menambah pada tabel nya, bisa edit dan sesuaikan pada file organization.component.html
  • jika ingin menambah sorting pada tabel gunakan code ini, taruh code ini di dalam th nya <app-sort-icon column="<paramater_di_be_nya>" [activeColumn]="sorting.column" [activeDirection]="sorting.direction" (sort)="sort($event)"></app-sort-icon>
  • jika ingin memakai form manual tanpa dari BE, cukup edit const transFormArrForm dengan format array object, seperti berikut:
[
    {
        title: 'Nama',
        form: 'name',
        type: 'text',
        mandatory: true
    }
]
  • edit dan sesuaikan function prepareFormData() dan prepareFormEdit() pada file src/app/pages/organization/component/edit-organization-modal.component.ts, kedua function tsb berfungsi sebagai payload json object utk dikirim ke BE, sesuaikan dengan kebutuhan BE, contoh seperti berikut:
    prepareFormData() {
        //    OVERRIDE THIS
        const formData = this.formGroup.value;
        this.formObj.name = formData.name;
        this.formObj.code = formData.code;
    }

    prepareFormEdit() {
        //    OVERRIDE THIS
        const formData = this.formGroup.value;
        return {
            name: formData.name,
            code: formData.code,
        };
    }

Create BPMN Command

  • ng g crud-component-alur-kerja:bpmn-component --name=<nama_collection_bpmn> --path=src/app/pages(metronic path) untuk melakukan generate otamatis
  • contoh ng g crud-component-alur-kerja:crud-component --name=single-approval --path=src/app/pages
  • setelah itu masuk ke folder src/app/pages/single-approval
  • sesuaikan beberapa konfigurasi
  • masuk ke organization.service.ts, edit dan sesuaikan bagian variable API_URL
  • contoh API_URL = '${environment.apiUrl}/crud/singleApproval';
  • edit dan sesuaikan header (jika API nya menggunakan bearer token)
  • contoh myHeader = getAWSHeaders(localStorage.getItem('id_token'))
  • edit dan sesuaikan function filterForm() dan filter() utk menambah filter pencarian, secara default pencarian nya menggunakan id
  • untuk saat ini customization di bpmn cuman segitu saja (akan segera menyusul)...

List Komponen yang sudah tersedia

  • CRUD Table
  • Bpmn Viewer
  • Form -- text -- textarea -- select (get from api) -- radio -- checkbox -- signature -- date

Penggunaan Komponen

  • Yang sudah dalam komponen masih di BPMN saja, untuk CRUD menyusul

  • Komponen Form untuk type Variable dan DTO
<app-base-edit-bpmn
        [formGroupParent]="formGroup"
        [arrGroup]="arrParamsGroup"
        [listInput]="listInput"
        [show]="show"
></app-base-edit-bpmn>
  • formGroup itu ya formGroup di angular
  • arrParamsGroup itu array object isinya bentuk skeleton dari datanya
  • listInput itu array tipe form input yang bsa di handle
  • show boolean utk show or not aja sih

  • Komponent Form untuk type Decision
<app-base-edit-bpmn-decision
        [formGroupParent]="formGroup"
        [formName]="'decision'"
        [typeDecision]="typeDecision"
        [arrDecision]="arrDecision"
    ></app-base-edit-bpmn-decision>
  • formGroup itu ya formGroup di angular
  • formName utk nama di inputnya, utk bpmn defaulnya decision
  • typeDecision itu array object isinya bentuk skeleton dari datanya
  • arrDecision itu array utk pilihan radionya

  • Komponen Date
<app-date-select
        [formGroupParent]="formGroupParent"
        [labelName]="item.title"
        formName="{{item.form}}"
      >
</app-date-select>
  • formGroup itu ya formGroup di angular
  • formName utk nama di inputnya, utk bpmn defaulnya decision
  • labelName utk judulnya

  • Komponen Select biasa (yang searching menyusul)
<app-common-select2
        *ngIf="item.type == 'select'"
        [formGroupParent]="formGroupParent"
        link="{{item.metaData.url}}"
        selectId="{{item.metaData.key}}"
        selectName="{{item.metaData.value}}"
        [labelName]="item.title"
        formName="{{item.form}}"
      >
</app-common-select2>
  • formGroup itu ya formGroup di angular
  • formName utk nama di inputnya, utk bpmn defaulnya decision
  • labelName utk judulnya
  • selectName buat nentuin name di select
  • selectId buat nentuin id di selectnya
  • link untuk nembak API

  • Komponnen Draw Signature
<app-draw-select></app-draw-select>

  • Komponen Diagram
<app-diagram-tes [url]="diagramUrl" [myHeader]="myHeader" (importDone)="handleImported($event)"></app-diagram-tes>
  • url itu url untuk nembak api nya
  • myHeader utk label
  • importDone itu function setelah selesai load api