@kong-ui-public/entities-shared
TypeScript icon, indicating that this package has built-in type declarations

3.14.2 • Public • Published

@kong-ui-public/entities-shared

Shared components for Kong entities.

Features

Requirements

  • vue and vue-router must be initialized in the host application
  • @kong/kongponents must be added as a dependency in the host application, globally available via the Vue Plugin installation, and the package's style imports must be added in the app entry file. See here for instructions on installing Kongponents.
  • @kong-ui-public/i18n must be available as a dependency in the host application.
  • axios must be installed as a dependency in the host application

Included components

  • EntityDeleteModal
  • EntityBaseTable
  • EntityBaseForm
  • EntityFilter
  • PermissionsWrapper
  • EntityFormSection
  • EntityLink
  • EntityToggleModal
  • EntityBaseConfigCard

Reference the individual component docs for more info.

Included composables

  • useAxios

Reference the individual composables docs for more info.

Usage

Install

Install the component in your host application

yarn add @kong-ui-public/entities-shared

Note: If you are installing @kong-ui-public/entities-shared into another package within this repository, you will need to build it first before attempting to run locally with pnpm --filter="@kong-ui-public/entities-shared" run build.

Registration

Import the component in your host application

import { EntityDeleteModal, EntityBaseTable } from '@kong-ui-public/entities-shared'
import '@kong-ui-public/entities-shared/dist/style.css'

Individual component documentation

Individual composables documentation

Sandbox shared utilities

The individual entities sandboxes all share some common components/utilities which lives in the /packages/entities/entities-shared/sandbox/shared folder and can be imported via the @entities-shared-sandbox/... alias. Those components are not getting exported by the package and are only available in "dev" environment.

Docs.

Readme

Keywords

none

Package Sidebar

Install

npm i @kong-ui-public/entities-shared

Weekly Downloads

4,221

Version

3.14.2

License

Apache-2.0

Unpacked Size

420 kB

Total Files

104

Last publish

Collaborators

  • konginc