Socket
Book a DemoInstallSign in
Socket

intellisoft-mi-claro-interactive-invoice

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intellisoft-mi-claro-interactive-invoice

Stencil Component Starter

0.2.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Mi Claro Interactive Invoice

Built With Stencil

Componente web interactivo para mostrar y gestionar facturas en el sistema de facturación de Claro. Construido con Stencil para máxima compatibilidad entre frameworks.

🚀 Instalación Rápida

npm install intellisoft-mi-claro-interactive-invoice

📋 Uso Básico

Vanilla JavaScript / HTML

<!DOCTYPE html>
<html>
<head>
  <script type="module" src="https://unpkg.com/intellisoft-mi-claro-interactive-invoice@latest/dist/mi-claro-interactive-invoice/mi-claro-interactive-invoice.esm.js"></script>
</head>
<body>
  <mi-claro-interactive-invoice></mi-claro-interactive-invoice>
</body>
</html>

React

import { defineCustomElements } from 'intellisoft-mi-claro-interactive-invoice/loader';

// Inicializar una vez en tu app
defineCustomElements();

function App() {
  const handleInvoicePaid = (event) => {
    console.log('Factura pagada:', event.detail);
  };

  return (
    <mi-claro-interactive-invoice 
      onInvoicePaid={handleInvoicePaid}>
    </mi-claro-interactive-invoice>
  );
}

Angular

// app.module.ts
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { defineCustomElements } from 'intellisoft-mi-claro-interactive-invoice/loader';

defineCustomElements();

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class AppModule { }

// component.ts
@Component({
  template: `
    <mi-claro-interactive-invoice 
      (invoicePaid)="onInvoicePaid($event)">
    </mi-claro-interactive-invoice>
  `
})
export class InvoiceComponent {
  onInvoicePaid(event: CustomEvent) {
    console.log('Factura pagada:', event.detail);
  }
}

Vue 3

<template>
  <mi-claro-interactive-invoice 
    @invoice-paid="handleInvoicePaid">
  </mi-claro-interactive-invoice>
</template>

<script setup>
import { defineCustomElements } from 'intellisoft-mi-claro-interactive-invoice/loader';

defineCustomElements();

const handleInvoicePaid = (event) => {
  console.log('Factura pagada:', event.detail);
};
</script>

🛠️ Propiedades

PropiedadTipoDescripciónPor Defecto
Por definir-Se agregarán según lógica de negocio-

📡 Eventos

EventoDescripciónDetalle
invoicePaidSe emite cuando se completa un pago{ invoiceId: string, amount: number, method: string }
invoiceDetailToggledSe emite al expandir/contraer detalles{ invoiceId: string, isOpen: boolean }

🎨 Personalización

El componente soporta CSS Custom Properties para personalización:

mi-claro-interactive-invoice {
  --invoice-primary-color: #e60028;
  --invoice-background: #ffffff;
  --invoice-border-radius: 8px;
  /* Más variables por definir según diseño */
}

💻 Desarrollo

Requisitos

  • Node.js >= 14.x
  • npm >= 6.x

Comandos

# Instalar dependencias
npm install

# Servidor de desarrollo
npm start

# Construir para producción
npm run build

# Ejecutar tests
npm test

# Generar nuevo componente
npm run generate

📁 Estructura del Proyecto

mi-claro-interactive-invoice/
├── src/
│   ├── components/
│   │   └── mi-claro-interactive-invoice/
│   │       ├── mi-claro-interactive-invoice.tsx
│   │       ├── mi-claro-interactive-invoice.css
│   │       └── readme.md
│   └── index.ts
├── examples/              # Ejemplos de integración
│   ├── vanilla-js/
│   ├── react-app/
│   ├── angular-app/
│   └── vue-app/
└── dist/                 # Archivos construidos

📚 Documentación

🤝 Contribución

Sección por definir según políticas internas de Claro

📄 Licencia

MIT © IntelliSoft

Nota: Este componente está en desarrollo activo. Las propiedades, eventos y estilos se definirán según los requerimientos específicos del negocio de Claro.

FAQs

Package last updated on 26 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.