tecnualng 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -0
- package/fesm2022/tecnualng.mjs +552 -0
- package/fesm2022/tecnualng.mjs.map +1 -0
- package/package.json +24 -0
- package/types/tecnualng.d.ts +161 -0
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Tecnualng
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.0.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build tecnualng
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
+
|
|
29
|
+
### Publishing the Library
|
|
30
|
+
|
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
|
32
|
+
|
|
33
|
+
1. Navigate to the `dist` directory:
|
|
34
|
+
```bash
|
|
35
|
+
cd dist/tecnualng
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
+
```bash
|
|
40
|
+
npm publish
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Running unit tests
|
|
44
|
+
|
|
45
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
ng test
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Running end-to-end tests
|
|
52
|
+
|
|
53
|
+
For end-to-end (e2e) testing, run:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ng e2e
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
60
|
+
|
|
61
|
+
## Additional Resources
|
|
62
|
+
|
|
63
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, ChangeDetectionStrategy, ViewEncapsulation, Component, model, forwardRef, signal, computed, HostListener, effect, Injectable } from '@angular/core';
|
|
3
|
+
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
+
import * as i1 from '@angular/common';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
|
|
7
|
+
class TngButton {
|
|
8
|
+
variant = input(null, ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
9
|
+
rounded = input(false, ...(ngDevMode ? [{ debugName: "rounded" }] : []));
|
|
10
|
+
soft = input(false, ...(ngDevMode ? [{ debugName: "soft" }] : []));
|
|
11
|
+
ripple = input(true, ...(ngDevMode ? [{ debugName: "ripple" }] : []));
|
|
12
|
+
icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
13
|
+
iconPosition = input('left', ...(ngDevMode ? [{ debugName: "iconPosition" }] : []));
|
|
14
|
+
createRipple(event) {
|
|
15
|
+
if (!this.ripple())
|
|
16
|
+
return;
|
|
17
|
+
const button = event.currentTarget;
|
|
18
|
+
const circle = document.createElement('span');
|
|
19
|
+
const diameter = Math.max(button.clientWidth, button.clientHeight);
|
|
20
|
+
const radius = diameter / 2;
|
|
21
|
+
const rect = button.getBoundingClientRect();
|
|
22
|
+
circle.style.width = circle.style.height = `${diameter}px`;
|
|
23
|
+
circle.style.left = `${event.clientX - rect.left - radius}px`;
|
|
24
|
+
circle.style.top = `${event.clientY - rect.top - radius}px`;
|
|
25
|
+
circle.classList.add('tng-ripple');
|
|
26
|
+
const ripple = button.getElementsByClassName('tng-ripple')[0];
|
|
27
|
+
if (ripple) {
|
|
28
|
+
ripple.remove();
|
|
29
|
+
}
|
|
30
|
+
button.appendChild(circle);
|
|
31
|
+
}
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TngButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0", type: TngButton, isStandalone: true, selector: "button[tngButton], a[tngButton]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, soft: { classPropertyName: "soft", publicName: "soft", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "createRipple($event)" }, properties: { "class.tng-button--primary": "variant() === \"primary\"", "class.tng-button--secondary": "variant() === \"secondary\"", "class.tng-button--success": "variant() === \"success\"", "class.tng-button--warning": "variant() === \"warning\"", "class.tng-button--error": "variant() === \"error\"", "class.tng-button--rounded": "rounded()", "class.tng-button--soft": "soft()" }, classAttribute: "tng-button" }, exportAs: ["tngButton"], ngImport: i0, template: "<span class=\"tng-button__label\">\n @if (icon() && iconPosition() === 'left') {\n <i [class]=\"icon()\" class=\"tng-button__icon tng-button__icon--left\"></i>\n }\n <ng-content></ng-content>\n @if (icon() && iconPosition() === 'right') {\n <i [class]=\"icon()\" class=\"tng-button__icon tng-button__icon--right\"></i>\n }\n</span>\n\n", styles: [".tng-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;height:32px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:hidden;vertical-align:middle;background:transparent;padding:0 16px;font-family:inherit;font-size:.875rem;font-weight:500;letter-spacing:.02857em;border-radius:4px;transition:background-color .25s cubic-bezier(.4,0,.2,1),box-shadow .25s cubic-bezier(.4,0,.2,1),border-radius .25s cubic-bezier(.4,0,.2,1),transform .1s ease-in-out}.tng-button::-moz-focus-inner{padding:0;border:0}.tng-button:active{outline:none;transform:scale(.98)}.tng-button:hover{cursor:pointer}.tng-button:disabled{cursor:default;pointer-events:none;opacity:.5}.tng-button[hidden]{display:none}.tng-button .mdc-button__label{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px}.tng-button .tng-button__icon--left{margin-right:4px}.tng-button .tng-button__icon--right{margin-left:4px}.tng-button--rounded{border-radius:24px}.tng-button--soft{box-shadow:0 2px 4px -1px #0000001a,0 4px 5px #00000012,0 1px 10px #0000000f}.tng-button--soft:hover{box-shadow:0 5px 5px -3px #0000001a,0 8px 10px 1px #00000012,0 3px 14px 2px #0000000f;transform:translateY(-1px)}.tng-button--primary{background-color:var(--tng-primary);color:var(--tng-primary-contrast)}.tng-button--primary:hover{background-color:color-mix(in srgb,var(--tng-primary),white 10%)}.tng-button--secondary{background-color:var(--tng-secondary);color:var(--tng-secondary-contrast)}.tng-button--secondary:hover{background-color:color-mix(in srgb,var(--tng-secondary),white 10%)}.tng-button--success{background-color:var(--tng-success);color:#fff}.tng-button--success:hover{background-color:color-mix(in srgb,var(--tng-success),white 10%)}.tng-button--warning{background-color:var(--tng-warning);color:#fff}.tng-button--warning:hover{background-color:color-mix(in srgb,var(--tng-warning),white 10%)}.tng-button--error{background-color:var(--tng-error);color:#fff}.tng-button--error:hover{background-color:color-mix(in srgb,var(--tng-error),white 10%)}span.tng-ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple .6s linear;background-color:#ffffff4d;pointer-events:none}@keyframes ripple{to{transform:scale(4);opacity:0}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
34
|
+
}
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TngButton, decorators: [{
|
|
36
|
+
type: Component,
|
|
37
|
+
args: [{ selector: 'button[tngButton], a[tngButton]', imports: [], host: {
|
|
38
|
+
'class': 'tng-button',
|
|
39
|
+
'[class.tng-button--primary]': 'variant() === "primary"',
|
|
40
|
+
'[class.tng-button--secondary]': 'variant() === "secondary"',
|
|
41
|
+
'[class.tng-button--success]': 'variant() === "success"',
|
|
42
|
+
'[class.tng-button--warning]': 'variant() === "warning"',
|
|
43
|
+
'[class.tng-button--error]': 'variant() === "error"',
|
|
44
|
+
'[class.tng-button--rounded]': 'rounded()',
|
|
45
|
+
'[class.tng-button--soft]': 'soft()',
|
|
46
|
+
'(click)': 'createRipple($event)',
|
|
47
|
+
}, exportAs: 'tngButton', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"tng-button__label\">\n @if (icon() && iconPosition() === 'left') {\n <i [class]=\"icon()\" class=\"tng-button__icon tng-button__icon--left\"></i>\n }\n <ng-content></ng-content>\n @if (icon() && iconPosition() === 'right') {\n <i [class]=\"icon()\" class=\"tng-button__icon tng-button__icon--right\"></i>\n }\n</span>\n\n", styles: [".tng-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;height:32px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:hidden;vertical-align:middle;background:transparent;padding:0 16px;font-family:inherit;font-size:.875rem;font-weight:500;letter-spacing:.02857em;border-radius:4px;transition:background-color .25s cubic-bezier(.4,0,.2,1),box-shadow .25s cubic-bezier(.4,0,.2,1),border-radius .25s cubic-bezier(.4,0,.2,1),transform .1s ease-in-out}.tng-button::-moz-focus-inner{padding:0;border:0}.tng-button:active{outline:none;transform:scale(.98)}.tng-button:hover{cursor:pointer}.tng-button:disabled{cursor:default;pointer-events:none;opacity:.5}.tng-button[hidden]{display:none}.tng-button .mdc-button__label{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px}.tng-button .tng-button__icon--left{margin-right:4px}.tng-button .tng-button__icon--right{margin-left:4px}.tng-button--rounded{border-radius:24px}.tng-button--soft{box-shadow:0 2px 4px -1px #0000001a,0 4px 5px #00000012,0 1px 10px #0000000f}.tng-button--soft:hover{box-shadow:0 5px 5px -3px #0000001a,0 8px 10px 1px #00000012,0 3px 14px 2px #0000000f;transform:translateY(-1px)}.tng-button--primary{background-color:var(--tng-primary);color:var(--tng-primary-contrast)}.tng-button--primary:hover{background-color:color-mix(in srgb,var(--tng-primary),white 10%)}.tng-button--secondary{background-color:var(--tng-secondary);color:var(--tng-secondary-contrast)}.tng-button--secondary:hover{background-color:color-mix(in srgb,var(--tng-secondary),white 10%)}.tng-button--success{background-color:var(--tng-success);color:#fff}.tng-button--success:hover{background-color:color-mix(in srgb,var(--tng-success),white 10%)}.tng-button--warning{background-color:var(--tng-warning);color:#fff}.tng-button--warning:hover{background-color:color-mix(in srgb,var(--tng-warning),white 10%)}.tng-button--error{background-color:var(--tng-error);color:#fff}.tng-button--error:hover{background-color:color-mix(in srgb,var(--tng-error),white 10%)}span.tng-ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple .6s linear;background-color:#ffffff4d;pointer-events:none}@keyframes ripple{to{transform:scale(4);opacity:0}}\n"] }]
|
|
48
|
+
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], soft: [{ type: i0.Input, args: [{ isSignal: true, alias: "soft", required: false }] }], ripple: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripple", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPosition", required: false }] }] } });
|
|
49
|
+
|
|
50
|
+
class TngCardComponent {
|
|
51
|
+
variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
52
|
+
title = input(null, ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
53
|
+
subtitle = input(null, ...(ngDevMode ? [{ debugName: "subtitle" }] : []));
|
|
54
|
+
elevated = input(false, ...(ngDevMode ? [{ debugName: "elevated" }] : []));
|
|
55
|
+
outlined = input(false, ...(ngDevMode ? [{ debugName: "outlined" }] : []));
|
|
56
|
+
image = input(null, ...(ngDevMode ? [{ debugName: "image" }] : []));
|
|
57
|
+
imageAlt = input('Card image', ...(ngDevMode ? [{ debugName: "imageAlt" }] : []));
|
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TngCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0", type: TngCardComponent, isStandalone: true, selector: "tng-card", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, elevated: { classPropertyName: "elevated", publicName: "elevated", isSignal: true, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, imageAlt: { classPropertyName: "imageAlt", publicName: "imageAlt", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.tng-card--primary": "variant() === \"primary\"", "class.tng-card--secondary": "variant() === \"secondary\"", "class.tng-card--success": "variant() === \"success\"", "class.tng-card--warning": "variant() === \"warning\"", "class.tng-card--error": "variant() === \"error\"", "class.tng-card--elevated": "elevated()", "class.tng-card--outlined": "outlined()" }, classAttribute: "tng-card" }, ngImport: i0, template: "<div class=\"tng-card__container\">\n @if (image()) {\n <div class=\"tng-card__image\">\n <img [src]=\"image()\" [alt]=\"imageAlt()\" />\n </div>\n }\n\n @if (title() || subtitle()) {\n <div class=\"tng-card__header\">\n <ng-content select=\"[card-header]\"></ng-content>\n \n @if (!title() && !subtitle()) {\n <!-- Header projection only -->\n } @else {\n <div class=\"tng-card__header-text\">\n @if (title()) {\n <h3 class=\"tng-card__title\">{{ title() }}</h3>\n }\n @if (subtitle()) {\n <p class=\"tng-card__subtitle\">{{ subtitle() }}</p>\n }\n </div>\n }\n </div>\n }\n\n <div class=\"tng-card__content\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"tng-card__footer\">\n <ng-content select=\"[card-footer]\"></ng-content>\n </div>\n</div>\n", styles: [".tng-card{display:block;position:relative;background-color:#fff;border-radius:8px;overflow:hidden;transition:box-shadow .3s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.4,0,.2,1)}.tng-card__container{display:flex;flex-direction:column;height:100%}.tng-card__image{width:100%;overflow:hidden}.tng-card__image img{width:100%;height:auto;display:block;object-fit:cover}.tng-card__header{padding:16px 20px;border-bottom:1px solid rgba(0,0,0,.08)}.tng-card__header-text{display:flex;flex-direction:column;gap:4px}.tng-card__title{margin:0;font-size:1.25rem;font-weight:500;color:var(--tng-text, #333);line-height:1.4}.tng-card__subtitle{margin:0;font-size:.875rem;color:var(--tng-text-secondary, #666);line-height:1.5}.tng-card__content{padding:20px;flex:1;color:var(--tng-text, #333)}.tng-card__footer{padding:12px 20px;border-top:1px solid rgba(0,0,0,.08)}.tng-card__footer:empty{display:none}.tng-card--elevated{box-shadow:0 2px 4px -1px #0000001a,0 4px 5px #00000012,0 1px 10px #0000000f}.tng-card--elevated:hover{box-shadow:0 5px 5px -3px #0000001a,0 8px 10px 1px #00000012,0 3px 14px 2px #0000000f;transform:translateY(-2px)}.tng-card--outlined{border:1px solid rgba(0,0,0,.12);box-shadow:none}.tng-card--outlined:hover{border-color:#0000003d}.tng-card--primary .tng-card__header{background-color:var(--tng-primary);color:var(--tng-primary-contrast);border-bottom-color:#ffffff1f}.tng-card--primary .tng-card__title,.tng-card--primary .tng-card__subtitle{color:inherit}.tng-card--secondary .tng-card__header{background-color:var(--tng-secondary);color:var(--tng-secondary-contrast);border-bottom-color:#ffffff1f}.tng-card--secondary .tng-card__title,.tng-card--secondary .tng-card__subtitle{color:inherit}.tng-card--success .tng-card__header{background-color:var(--tng-success);color:#fff;border-bottom-color:#ffffff1f}.tng-card--success .tng-card__title,.tng-card--success .tng-card__subtitle{color:inherit}.tng-card--warning .tng-card__header{background-color:var(--tng-warning);color:#fff;border-bottom-color:#ffffff1f}.tng-card--warning .tng-card__title,.tng-card--warning .tng-card__subtitle{color:inherit}.tng-card--error .tng-card__header{background-color:var(--tng-error);color:#fff;border-bottom-color:#ffffff1f}.tng-card--error .tng-card__title,.tng-card--error .tng-card__subtitle{color:inherit}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
60
|
+
}
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TngCardComponent, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{ selector: 'tng-card', standalone: true, imports: [], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
64
|
+
'class': 'tng-card',
|
|
65
|
+
'[class.tng-card--primary]': 'variant() === "primary"',
|
|
66
|
+
'[class.tng-card--secondary]': 'variant() === "secondary"',
|
|
67
|
+
'[class.tng-card--success]': 'variant() === "success"',
|
|
68
|
+
'[class.tng-card--warning]': 'variant() === "warning"',
|
|
69
|
+
'[class.tng-card--error]': 'variant() === "error"',
|
|
70
|
+
'[class.tng-card--elevated]': 'elevated()',
|
|
71
|
+
'[class.tng-card--outlined]': 'outlined()',
|
|
72
|
+
}, template: "<div class=\"tng-card__container\">\n @if (image()) {\n <div class=\"tng-card__image\">\n <img [src]=\"image()\" [alt]=\"imageAlt()\" />\n </div>\n }\n\n @if (title() || subtitle()) {\n <div class=\"tng-card__header\">\n <ng-content select=\"[card-header]\"></ng-content>\n \n @if (!title() && !subtitle()) {\n <!-- Header projection only -->\n } @else {\n <div class=\"tng-card__header-text\">\n @if (title()) {\n <h3 class=\"tng-card__title\">{{ title() }}</h3>\n }\n @if (subtitle()) {\n <p class=\"tng-card__subtitle\">{{ subtitle() }}</p>\n }\n </div>\n }\n </div>\n }\n\n <div class=\"tng-card__content\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"tng-card__footer\">\n <ng-content select=\"[card-footer]\"></ng-content>\n </div>\n</div>\n", styles: [".tng-card{display:block;position:relative;background-color:#fff;border-radius:8px;overflow:hidden;transition:box-shadow .3s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.4,0,.2,1)}.tng-card__container{display:flex;flex-direction:column;height:100%}.tng-card__image{width:100%;overflow:hidden}.tng-card__image img{width:100%;height:auto;display:block;object-fit:cover}.tng-card__header{padding:16px 20px;border-bottom:1px solid rgba(0,0,0,.08)}.tng-card__header-text{display:flex;flex-direction:column;gap:4px}.tng-card__title{margin:0;font-size:1.25rem;font-weight:500;color:var(--tng-text, #333);line-height:1.4}.tng-card__subtitle{margin:0;font-size:.875rem;color:var(--tng-text-secondary, #666);line-height:1.5}.tng-card__content{padding:20px;flex:1;color:var(--tng-text, #333)}.tng-card__footer{padding:12px 20px;border-top:1px solid rgba(0,0,0,.08)}.tng-card__footer:empty{display:none}.tng-card--elevated{box-shadow:0 2px 4px -1px #0000001a,0 4px 5px #00000012,0 1px 10px #0000000f}.tng-card--elevated:hover{box-shadow:0 5px 5px -3px #0000001a,0 8px 10px 1px #00000012,0 3px 14px 2px #0000000f;transform:translateY(-2px)}.tng-card--outlined{border:1px solid rgba(0,0,0,.12);box-shadow:none}.tng-card--outlined:hover{border-color:#0000003d}.tng-card--primary .tng-card__header{background-color:var(--tng-primary);color:var(--tng-primary-contrast);border-bottom-color:#ffffff1f}.tng-card--primary .tng-card__title,.tng-card--primary .tng-card__subtitle{color:inherit}.tng-card--secondary .tng-card__header{background-color:var(--tng-secondary);color:var(--tng-secondary-contrast);border-bottom-color:#ffffff1f}.tng-card--secondary .tng-card__title,.tng-card--secondary .tng-card__subtitle{color:inherit}.tng-card--success .tng-card__header{background-color:var(--tng-success);color:#fff;border-bottom-color:#ffffff1f}.tng-card--success .tng-card__title,.tng-card--success .tng-card__subtitle{color:inherit}.tng-card--warning .tng-card__header{background-color:var(--tng-warning);color:#fff;border-bottom-color:#ffffff1f}.tng-card--warning .tng-card__title,.tng-card--warning .tng-card__subtitle{color:inherit}.tng-card--error .tng-card__header{background-color:var(--tng-error);color:#fff;border-bottom-color:#ffffff1f}.tng-card--error .tng-card__title,.tng-card--error .tng-card__subtitle{color:inherit}\n"] }]
|
|
73
|
+
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], elevated: [{ type: i0.Input, args: [{ isSignal: true, alias: "elevated", required: false }] }], outlined: [{ type: i0.Input, args: [{ isSignal: true, alias: "outlined", required: false }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], imageAlt: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageAlt", required: false }] }] } });
|
|
74
|
+
|
|
75
|
+
class TecnualInputComponent {
|
|
76
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
77
|
+
type = input('text', ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
78
|
+
placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
79
|
+
required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : []));
|
|
80
|
+
disabled = model(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
81
|
+
id = input(`tng-input-${Math.random().toString(36).substr(2, 9)}`, ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
82
|
+
value = '';
|
|
83
|
+
isFocused = false;
|
|
84
|
+
onChange = () => { };
|
|
85
|
+
onTouched = () => { };
|
|
86
|
+
get hasValue() {
|
|
87
|
+
return this.value !== null && this.value !== undefined && this.value !== '';
|
|
88
|
+
}
|
|
89
|
+
onInput(event) {
|
|
90
|
+
const input = event.target;
|
|
91
|
+
this.value = input.value;
|
|
92
|
+
this.onChange(this.value);
|
|
93
|
+
}
|
|
94
|
+
onFocus() {
|
|
95
|
+
this.isFocused = true;
|
|
96
|
+
}
|
|
97
|
+
onBlur() {
|
|
98
|
+
this.isFocused = false;
|
|
99
|
+
this.onTouched();
|
|
100
|
+
}
|
|
101
|
+
writeValue(value) {
|
|
102
|
+
this.value = value;
|
|
103
|
+
}
|
|
104
|
+
registerOnChange(fn) {
|
|
105
|
+
this.onChange = fn;
|
|
106
|
+
}
|
|
107
|
+
registerOnTouched(fn) {
|
|
108
|
+
this.onTouched = fn;
|
|
109
|
+
}
|
|
110
|
+
setDisabledState(isDisabled) {
|
|
111
|
+
this.disabled.update(() => isDisabled);
|
|
112
|
+
}
|
|
113
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TecnualInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
114
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: TecnualInputComponent, isStandalone: true, selector: "tng-input", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange" }, providers: [
|
|
115
|
+
{
|
|
116
|
+
provide: NG_VALUE_ACCESSOR,
|
|
117
|
+
useExisting: forwardRef(() => TecnualInputComponent),
|
|
118
|
+
multi: true
|
|
119
|
+
}
|
|
120
|
+
], ngImport: i0, template: "<div class=\"tng-input-container\" [class.focused]=\"isFocused\" [class.has-value]=\"hasValue\" [class.disabled]=\"disabled()\">\n <fieldset class=\"tng-fieldset\" aria-hidden=\"true\">\n <legend class=\"tng-legend\"><span>{{ label() }}</span></legend>\n </fieldset>\n <label [for]=\"id()\" class=\"tng-label\">{{ label() }}</label>\n <input\n [id]=\"id()\"\n [type]=\"type()\"\n [placeholder]=\"isFocused ? placeholder() : ''\"\n [value]=\"value\"\n [disabled]=\"disabled()\"\n [required]=\"required()\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n class=\"tng-input-field\"\n />\n</div>\n", styles: [":host{display:block;margin-bottom:1.5rem;font-family:var(--tng-font-family, \"Inter\", sans-serif)}.tng-input-container{position:relative;border-radius:var(--tng-border-radius, 4px);padding:0 16px;height:48px;display:flex;align-items:center;cursor:text;border:none}.tng-input-container:hover .tng-fieldset{border-color:var(--tng-text-secondary, #757575)}.tng-input-container.focused .tng-fieldset{border-color:var(--tng-primary, #6200ee);border-width:2px}.tng-input-container.focused .tng-label{color:var(--tng-primary, #6200ee);transform:translateY(-24px) scale(.75)}.tng-input-container.focused .tng-legend{max-width:100%}.tng-input-container.has-value .tng-label{transform:translateY(-24px) scale(.75)}.tng-input-container.has-value .tng-legend{max-width:100%}.tng-input-container.disabled{opacity:.6;pointer-events:none}.tng-input-container.disabled .tng-fieldset{border-color:var(--tng-border, #e0e0e0);background-color:var(--tng-background, #fafafa)}.tng-fieldset{position:absolute;inset:0 0 5px;margin:0;padding:0 12px;border:1px solid var(--tng-border, #999);border-radius:var(--tng-border-radius, 4px);pointer-events:none;transition:border-color .2s ease,border-width .1s ease;z-index:0}.tng-legend{width:auto;max-width:0;height:11px;font-size:.75em;visibility:hidden;transition:max-width .1s cubic-bezier(.4,0,.2,1);white-space:nowrap;padding-inline:0px}.tng-legend span{padding:0 2px;visibility:visible;opacity:0}.tng-label{position:absolute;top:50%;left:16px;transform:translateY(-50%);color:var(--tng-text-secondary, #666);font-size:16px;font-weight:400;pointer-events:none;transform-origin:left top;transition:transform .2s cubic-bezier(.4,0,.2,1),color .2s ease;z-index:1}.tng-input-field{display:block;width:100%;border:none;background:none;padding:0;margin:0;font-size:16px;color:var(--tng-text, #333);outline:none;height:100%;line-height:normal;z-index:1}.tng-input-field::placeholder{color:transparent;transition:color .2s ease}.tng-input-field:focus::placeholder{color:#aaa}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }] });
|
|
121
|
+
}
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TecnualInputComponent, decorators: [{
|
|
123
|
+
type: Component,
|
|
124
|
+
args: [{ selector: 'tng-input', standalone: true, imports: [CommonModule, FormsModule], providers: [
|
|
125
|
+
{
|
|
126
|
+
provide: NG_VALUE_ACCESSOR,
|
|
127
|
+
useExisting: forwardRef(() => TecnualInputComponent),
|
|
128
|
+
multi: true
|
|
129
|
+
}
|
|
130
|
+
], template: "<div class=\"tng-input-container\" [class.focused]=\"isFocused\" [class.has-value]=\"hasValue\" [class.disabled]=\"disabled()\">\n <fieldset class=\"tng-fieldset\" aria-hidden=\"true\">\n <legend class=\"tng-legend\"><span>{{ label() }}</span></legend>\n </fieldset>\n <label [for]=\"id()\" class=\"tng-label\">{{ label() }}</label>\n <input\n [id]=\"id()\"\n [type]=\"type()\"\n [placeholder]=\"isFocused ? placeholder() : ''\"\n [value]=\"value\"\n [disabled]=\"disabled()\"\n [required]=\"required()\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n class=\"tng-input-field\"\n />\n</div>\n", styles: [":host{display:block;margin-bottom:1.5rem;font-family:var(--tng-font-family, \"Inter\", sans-serif)}.tng-input-container{position:relative;border-radius:var(--tng-border-radius, 4px);padding:0 16px;height:48px;display:flex;align-items:center;cursor:text;border:none}.tng-input-container:hover .tng-fieldset{border-color:var(--tng-text-secondary, #757575)}.tng-input-container.focused .tng-fieldset{border-color:var(--tng-primary, #6200ee);border-width:2px}.tng-input-container.focused .tng-label{color:var(--tng-primary, #6200ee);transform:translateY(-24px) scale(.75)}.tng-input-container.focused .tng-legend{max-width:100%}.tng-input-container.has-value .tng-label{transform:translateY(-24px) scale(.75)}.tng-input-container.has-value .tng-legend{max-width:100%}.tng-input-container.disabled{opacity:.6;pointer-events:none}.tng-input-container.disabled .tng-fieldset{border-color:var(--tng-border, #e0e0e0);background-color:var(--tng-background, #fafafa)}.tng-fieldset{position:absolute;inset:0 0 5px;margin:0;padding:0 12px;border:1px solid var(--tng-border, #999);border-radius:var(--tng-border-radius, 4px);pointer-events:none;transition:border-color .2s ease,border-width .1s ease;z-index:0}.tng-legend{width:auto;max-width:0;height:11px;font-size:.75em;visibility:hidden;transition:max-width .1s cubic-bezier(.4,0,.2,1);white-space:nowrap;padding-inline:0px}.tng-legend span{padding:0 2px;visibility:visible;opacity:0}.tng-label{position:absolute;top:50%;left:16px;transform:translateY(-50%);color:var(--tng-text-secondary, #666);font-size:16px;font-weight:400;pointer-events:none;transform-origin:left top;transition:transform .2s cubic-bezier(.4,0,.2,1),color .2s ease;z-index:1}.tng-input-field{display:block;width:100%;border:none;background:none;padding:0;margin:0;font-size:16px;color:var(--tng-text, #333);outline:none;height:100%;line-height:normal;z-index:1}.tng-input-field::placeholder{color:transparent;transition:color .2s ease}.tng-input-field:focus::placeholder{color:#aaa}\n"] }]
|
|
131
|
+
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
132
|
+
|
|
133
|
+
class TecnualDatepickerComponent {
|
|
134
|
+
elementRef;
|
|
135
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
136
|
+
placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
137
|
+
mode = input('single', ...(ngDevMode ? [{ debugName: "mode" }] : []));
|
|
138
|
+
minDate = input(null, ...(ngDevMode ? [{ debugName: "minDate" }] : []));
|
|
139
|
+
maxDate = input(null, ...(ngDevMode ? [{ debugName: "maxDate" }] : []));
|
|
140
|
+
disabled = model(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
141
|
+
id = input(`tng-datepicker-${Math.random().toString(36).substr(2, 9)}`, ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
142
|
+
isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
143
|
+
currentViewDate = signal(new Date(), ...(ngDevMode ? [{ debugName: "currentViewDate" }] : [])); // The month we are looking at
|
|
144
|
+
// Value storage
|
|
145
|
+
singleValue = null;
|
|
146
|
+
rangeValue = { start: null, end: null };
|
|
147
|
+
onChange = () => { };
|
|
148
|
+
onTouched = () => { };
|
|
149
|
+
constructor(elementRef) {
|
|
150
|
+
this.elementRef = elementRef;
|
|
151
|
+
}
|
|
152
|
+
// Calendar Logic
|
|
153
|
+
daysOfWeek = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
|
|
154
|
+
calendarDays = computed(() => {
|
|
155
|
+
const year = this.currentViewDate().getFullYear();
|
|
156
|
+
const month = this.currentViewDate().getMonth();
|
|
157
|
+
const firstDayOfMonth = new Date(year, month, 1);
|
|
158
|
+
const lastDayOfMonth = new Date(year, month + 1, 0);
|
|
159
|
+
const days = [];
|
|
160
|
+
// Padding days from previous month
|
|
161
|
+
const startDay = firstDayOfMonth.getDay();
|
|
162
|
+
for (let i = startDay - 1; i >= 0; i--) {
|
|
163
|
+
days.push(new Date(year, month, -i));
|
|
164
|
+
}
|
|
165
|
+
// Days of current month
|
|
166
|
+
for (let i = 1; i <= lastDayOfMonth.getDate(); i++) {
|
|
167
|
+
days.push(new Date(year, month, i));
|
|
168
|
+
}
|
|
169
|
+
// Padding days for next month (to fill 6 rows usually, or just enough to finish week)
|
|
170
|
+
const remaining = 42 - days.length; // 6 rows * 7 days
|
|
171
|
+
for (let i = 1; i <= remaining; i++) {
|
|
172
|
+
days.push(new Date(year, month + 1, i));
|
|
173
|
+
}
|
|
174
|
+
return days;
|
|
175
|
+
}, ...(ngDevMode ? [{ debugName: "calendarDays" }] : []));
|
|
176
|
+
get formattedValue() {
|
|
177
|
+
if (this.mode() === 'single') {
|
|
178
|
+
return this.singleValue ? this.singleValue.toLocaleDateString() : '';
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
if (this.rangeValue.start && this.rangeValue.end) {
|
|
182
|
+
return `${this.rangeValue.start.toLocaleDateString()} - ${this.rangeValue.end.toLocaleDateString()}`;
|
|
183
|
+
}
|
|
184
|
+
else if (this.rangeValue.start) {
|
|
185
|
+
return `${this.rangeValue.start.toLocaleDateString()} - ...`;
|
|
186
|
+
}
|
|
187
|
+
return '';
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
get currentMonthYear() {
|
|
191
|
+
return this.currentViewDate().toLocaleString('default', { month: 'long', year: 'numeric' });
|
|
192
|
+
}
|
|
193
|
+
toggleCalendar() {
|
|
194
|
+
if (this.disabled())
|
|
195
|
+
return;
|
|
196
|
+
this.isOpen.update(v => !v);
|
|
197
|
+
if (this.isOpen()) {
|
|
198
|
+
// Focus logic if needed
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
this.onTouched();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
prevMonth(e) {
|
|
205
|
+
e.stopPropagation();
|
|
206
|
+
const d = this.currentViewDate();
|
|
207
|
+
this.currentViewDate.set(new Date(d.getFullYear(), d.getMonth() - 1, 1));
|
|
208
|
+
}
|
|
209
|
+
nextMonth(e) {
|
|
210
|
+
e.stopPropagation();
|
|
211
|
+
const d = this.currentViewDate();
|
|
212
|
+
this.currentViewDate.set(new Date(d.getFullYear(), d.getMonth() + 1, 1));
|
|
213
|
+
}
|
|
214
|
+
selectDate(date) {
|
|
215
|
+
if (this.isDisabled(date))
|
|
216
|
+
return;
|
|
217
|
+
if (this.mode() === 'single') {
|
|
218
|
+
this.singleValue = date;
|
|
219
|
+
this.onChange(date);
|
|
220
|
+
this.isOpen.set(false);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
// Range logic
|
|
224
|
+
if (!this.rangeValue.start || (this.rangeValue.start && this.rangeValue.end)) {
|
|
225
|
+
// Start new range
|
|
226
|
+
this.rangeValue = { start: date, end: null };
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
// Complete range
|
|
230
|
+
if (date < this.rangeValue.start) {
|
|
231
|
+
this.rangeValue = { start: date, end: this.rangeValue.start };
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
this.rangeValue = { ...this.rangeValue, end: date };
|
|
235
|
+
}
|
|
236
|
+
this.onChange(this.rangeValue);
|
|
237
|
+
this.isOpen.set(false);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
// Helper checks
|
|
242
|
+
isSelected(date) {
|
|
243
|
+
if (this.mode() === 'single') {
|
|
244
|
+
return this.isSameDay(date, this.singleValue);
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
return this.isSameDay(date, this.rangeValue.start) || this.isSameDay(date, this.rangeValue.end);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
isInRange(date) {
|
|
251
|
+
if (this.mode() !== 'range' || !this.rangeValue.start || !this.rangeValue.end)
|
|
252
|
+
return false;
|
|
253
|
+
return date > this.rangeValue.start && date < this.rangeValue.end;
|
|
254
|
+
}
|
|
255
|
+
isSameDay(d1, d2) {
|
|
256
|
+
if (!d1 || !d2)
|
|
257
|
+
return false;
|
|
258
|
+
return d1.getDate() === d2.getDate() &&
|
|
259
|
+
d1.getMonth() === d2.getMonth() &&
|
|
260
|
+
d1.getFullYear() === d2.getFullYear();
|
|
261
|
+
}
|
|
262
|
+
isToday(date) {
|
|
263
|
+
return this.isSameDay(date, new Date());
|
|
264
|
+
}
|
|
265
|
+
isDisabled(date) {
|
|
266
|
+
if (this.minDate() && date < this.setMidnight(this.minDate()))
|
|
267
|
+
return true;
|
|
268
|
+
if (this.maxDate() && date > this.setMidnight(this.maxDate()))
|
|
269
|
+
return true;
|
|
270
|
+
// Check if it belongs to current month (optional, but good for visual clarity)
|
|
271
|
+
// We might want to allow selecting padding days, but usually we just dim them.
|
|
272
|
+
// Let's just disable interaction for padding days if we want strict month view,
|
|
273
|
+
// but standard is to allow navigating to them.
|
|
274
|
+
// For now, let's just check min/max.
|
|
275
|
+
return false;
|
|
276
|
+
}
|
|
277
|
+
isCurrentMonth(date) {
|
|
278
|
+
return date.getMonth() === this.currentViewDate().getMonth();
|
|
279
|
+
}
|
|
280
|
+
setMidnight(date) {
|
|
281
|
+
const d = new Date(date);
|
|
282
|
+
d.setHours(0, 0, 0, 0);
|
|
283
|
+
return d;
|
|
284
|
+
}
|
|
285
|
+
// ControlValueAccessor
|
|
286
|
+
writeValue(obj) {
|
|
287
|
+
if (this.mode() === 'single') {
|
|
288
|
+
this.singleValue = obj instanceof Date ? obj : null;
|
|
289
|
+
if (this.singleValue)
|
|
290
|
+
this.currentViewDate.set(new Date(this.singleValue));
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
this.rangeValue = obj || { start: null, end: null };
|
|
294
|
+
if (this.rangeValue.start)
|
|
295
|
+
this.currentViewDate.set(new Date(this.rangeValue.start));
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
registerOnChange(fn) {
|
|
299
|
+
this.onChange = fn;
|
|
300
|
+
}
|
|
301
|
+
registerOnTouched(fn) {
|
|
302
|
+
this.onTouched = fn;
|
|
303
|
+
}
|
|
304
|
+
setDisabledState(isDisabled) {
|
|
305
|
+
this.disabled.update(() => isDisabled);
|
|
306
|
+
}
|
|
307
|
+
onClickOutside(event) {
|
|
308
|
+
if (!this.elementRef.nativeElement.contains(event.target)) {
|
|
309
|
+
this.isOpen.set(false);
|
|
310
|
+
this.onTouched();
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TecnualDatepickerComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
314
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: TecnualDatepickerComponent, isStandalone: true, selector: "tng-datepicker", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange" }, host: { listeners: { "document:click": "onClickOutside($event)" } }, providers: [
|
|
315
|
+
{
|
|
316
|
+
provide: NG_VALUE_ACCESSOR,
|
|
317
|
+
useExisting: forwardRef(() => TecnualDatepickerComponent),
|
|
318
|
+
multi: true
|
|
319
|
+
}
|
|
320
|
+
], ngImport: i0, template: "<div class=\"tng-datepicker-container\" [class.focused]=\"isOpen()\" [class.has-value]=\"formattedValue\" [class.disabled]=\"disabled()\">\n <!-- Trigger Field (Reusing Input Style) -->\n <div class=\"tng-input-trigger\" (click)=\"toggleCalendar()\">\n <fieldset class=\"tng-fieldset\" aria-hidden=\"true\">\n <legend class=\"tng-legend\"><span>{{ label() }}</span></legend>\n </fieldset>\n <label class=\"tng-label\">{{ label() }}</label>\n <div class=\"tng-input-display\">\n {{ formattedValue || (isOpen() ? placeholder() : '') }}\n </div>\n <span class=\"material-icons tng-icon\">calendar_today</span>\n </div>\n\n <!-- Calendar Popup -->\n <div class=\"tng-calendar-popup\" *ngIf=\"isOpen()\">\n <div class=\"tng-calendar-header\">\n <button type=\"button\" class=\"nav-btn\" (click)=\"prevMonth($event)\">\n <span class=\"material-icons\">chevron_left</span>\n </button>\n <span class=\"current-month\">{{ currentMonthYear }}</span>\n <button type=\"button\" class=\"nav-btn\" (click)=\"nextMonth($event)\">\n <span class=\"material-icons\">chevron_right</span>\n </button>\n </div>\n\n <div class=\"tng-calendar-grid\">\n <div class=\"day-name\" *ngFor=\"let day of daysOfWeek\">{{ day }}</div>\n <div\n class=\"day-cell\"\n *ngFor=\"let date of calendarDays()\"\n [class.not-current-month]=\"!isCurrentMonth(date)\"\n [class.today]=\"isToday(date)\"\n [class.selected]=\"isSelected(date)\"\n [class.in-range]=\"isInRange(date)\"\n [class.range-start]=\"mode() === 'range' && isSameDay(date, rangeValue.start)\"\n [class.range-end]=\"mode() === 'range' && isSameDay(date, rangeValue.end)\"\n [class.disabled]=\"isDisabled(date)\"\n (click)=\"selectDate(date)\"\n >\n {{ date.getDate() }}\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;margin-bottom:1.5rem;font-family:var(--tng-font-family, \"Inter\", sans-serif);position:relative}.tng-datepicker-container{position:relative}.tng-datepicker-container.disabled{opacity:.6;pointer-events:none}.tng-datepicker-container.disabled .tng-fieldset{border-color:var(--tng-border, #ccc);background-color:var(--tng-background, #f9f9f9)}.tng-input-trigger{position:relative;border-radius:var(--tng-border-radius, 4px);padding:0 16px;height:48px;display:flex;align-items:center;cursor:pointer}.tng-input-trigger:hover .tng-fieldset{border-color:color-mix(in srgb,var(--tng-border, #999),black 20%)}.tng-fieldset{position:absolute;inset:0 0 5px;margin:0;padding:0 12px;border:1px solid var(--tng-border, #999);border-radius:var(--tng-border-radius, 4px);pointer-events:none;transition:border-color .2s ease}.tng-legend{width:auto;max-width:0;height:11px;font-size:.75em;visibility:hidden;white-space:nowrap;padding-inline:0px}.tng-legend span{padding:0 2px;visibility:visible;opacity:0}.tng-label{position:absolute;top:50%;left:16px;transform:translateY(-50%);color:var(--tng-text-secondary, #666);font-size:16px;font-weight:400;pointer-events:none;transform-origin:left top;transition:transform .2s cubic-bezier(.4,0,.2,1),color .2s ease}.tng-input-display{flex:1;font-size:16px;color:var(--tng-text, #333);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;display:flex;align-items:center}.tng-icon{color:var(--tng-text-secondary, #666);font-size:20px;margin-left:8px}.tng-datepicker-container.focused .tng-fieldset,.tng-datepicker-container.has-value .tng-fieldset{border-color:var(--tng-primary, #6200ee);border-width:2px}.tng-datepicker-container.focused .tng-label,.tng-datepicker-container.has-value .tng-label{color:var(--tng-primary, #6200ee);transform:translateY(-24px) scale(.75)}.tng-datepicker-container.focused .tng-legend,.tng-datepicker-container.has-value .tng-legend{max-width:100%}.tng-datepicker-container.focused .tng-label{color:var(--tng-primary, #6200ee)}.tng-calendar-popup{position:absolute;top:100%;left:0;z-index:1000;margin-top:4px;background:var(--tng-surface, #fff);border-radius:8px;box-shadow:var(--tng-shadow-md, 0 4px 20px rgba(0, 0, 0, .15));padding:16px;width:300px;animation:fadeIn .2s ease;border:1px solid var(--tng-border, #eee)}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.tng-calendar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.tng-calendar-header .current-month{font-weight:600;font-size:16px;color:var(--tng-text, #333)}.tng-calendar-header .nav-btn{background:none;border:none;cursor:pointer;padding:4px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--tng-text-secondary, #666)}.tng-calendar-header .nav-btn:hover{background-color:var(--tng-background, #f5f5f5)}.tng-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}.day-name{font-size:12px;color:var(--tng-text-secondary, #666);font-weight:500;margin-bottom:8px}.day-cell{height:36px;display:flex;align-items:center;justify-content:center;font-size:14px;cursor:pointer;border-radius:50%;transition:all .2s ease;position:relative;color:var(--tng-text, #333)}.day-cell:hover:not(.disabled):not(.selected):not(.range-start):not(.range-end){background-color:var(--tng-background, #f5f5f5)}.day-cell.not-current-month{color:#ccc}.day-cell.today{font-weight:600;color:var(--tng-primary, #6200ee);border:1px solid var(--tng-primary, #6200ee)}.day-cell.selected,.day-cell.range-start,.day-cell.range-end{background-color:var(--tng-primary, #6200ee);color:var(--tng-primary-contrast, #fff)}.day-cell.selected.today,.day-cell.range-start.today,.day-cell.range-end.today{border-color:transparent}.day-cell.in-range{background-color:color-mix(in srgb,var(--tng-primary, #6200ee),white 80%);border-radius:0;color:var(--tng-primary, #6200ee)}.day-cell.in-range.range-start{border-top-right-radius:0;border-bottom-right-radius:0}.day-cell.in-range.range-end{border-top-left-radius:0;border-bottom-left-radius:0}.day-cell.range-start{border-radius:50% 0 0 50%;position:relative}.day-cell.range-start:after{content:\"\";position:absolute;inset:0 0 0 50%;background-color:color-mix(in srgb,var(--tng-primary, #6200ee),white 80%);z-index:-1}.day-cell.range-end{border-radius:0 50% 50% 0;position:relative}.day-cell.range-end:after{content:\"\";position:absolute;inset:0 50% 0 0;background-color:color-mix(in srgb,var(--tng-primary, #6200ee),white 80%);z-index:-1}.day-cell.selected{border-radius:50%}.day-cell.disabled{opacity:.3;pointer-events:none;cursor:not-allowed}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }] });
|
|
321
|
+
}
|
|
322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TecnualDatepickerComponent, decorators: [{
|
|
323
|
+
type: Component,
|
|
324
|
+
args: [{ selector: 'tng-datepicker', standalone: true, imports: [CommonModule, FormsModule], providers: [
|
|
325
|
+
{
|
|
326
|
+
provide: NG_VALUE_ACCESSOR,
|
|
327
|
+
useExisting: forwardRef(() => TecnualDatepickerComponent),
|
|
328
|
+
multi: true
|
|
329
|
+
}
|
|
330
|
+
], template: "<div class=\"tng-datepicker-container\" [class.focused]=\"isOpen()\" [class.has-value]=\"formattedValue\" [class.disabled]=\"disabled()\">\n <!-- Trigger Field (Reusing Input Style) -->\n <div class=\"tng-input-trigger\" (click)=\"toggleCalendar()\">\n <fieldset class=\"tng-fieldset\" aria-hidden=\"true\">\n <legend class=\"tng-legend\"><span>{{ label() }}</span></legend>\n </fieldset>\n <label class=\"tng-label\">{{ label() }}</label>\n <div class=\"tng-input-display\">\n {{ formattedValue || (isOpen() ? placeholder() : '') }}\n </div>\n <span class=\"material-icons tng-icon\">calendar_today</span>\n </div>\n\n <!-- Calendar Popup -->\n <div class=\"tng-calendar-popup\" *ngIf=\"isOpen()\">\n <div class=\"tng-calendar-header\">\n <button type=\"button\" class=\"nav-btn\" (click)=\"prevMonth($event)\">\n <span class=\"material-icons\">chevron_left</span>\n </button>\n <span class=\"current-month\">{{ currentMonthYear }}</span>\n <button type=\"button\" class=\"nav-btn\" (click)=\"nextMonth($event)\">\n <span class=\"material-icons\">chevron_right</span>\n </button>\n </div>\n\n <div class=\"tng-calendar-grid\">\n <div class=\"day-name\" *ngFor=\"let day of daysOfWeek\">{{ day }}</div>\n <div\n class=\"day-cell\"\n *ngFor=\"let date of calendarDays()\"\n [class.not-current-month]=\"!isCurrentMonth(date)\"\n [class.today]=\"isToday(date)\"\n [class.selected]=\"isSelected(date)\"\n [class.in-range]=\"isInRange(date)\"\n [class.range-start]=\"mode() === 'range' && isSameDay(date, rangeValue.start)\"\n [class.range-end]=\"mode() === 'range' && isSameDay(date, rangeValue.end)\"\n [class.disabled]=\"isDisabled(date)\"\n (click)=\"selectDate(date)\"\n >\n {{ date.getDate() }}\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;margin-bottom:1.5rem;font-family:var(--tng-font-family, \"Inter\", sans-serif);position:relative}.tng-datepicker-container{position:relative}.tng-datepicker-container.disabled{opacity:.6;pointer-events:none}.tng-datepicker-container.disabled .tng-fieldset{border-color:var(--tng-border, #ccc);background-color:var(--tng-background, #f9f9f9)}.tng-input-trigger{position:relative;border-radius:var(--tng-border-radius, 4px);padding:0 16px;height:48px;display:flex;align-items:center;cursor:pointer}.tng-input-trigger:hover .tng-fieldset{border-color:color-mix(in srgb,var(--tng-border, #999),black 20%)}.tng-fieldset{position:absolute;inset:0 0 5px;margin:0;padding:0 12px;border:1px solid var(--tng-border, #999);border-radius:var(--tng-border-radius, 4px);pointer-events:none;transition:border-color .2s ease}.tng-legend{width:auto;max-width:0;height:11px;font-size:.75em;visibility:hidden;white-space:nowrap;padding-inline:0px}.tng-legend span{padding:0 2px;visibility:visible;opacity:0}.tng-label{position:absolute;top:50%;left:16px;transform:translateY(-50%);color:var(--tng-text-secondary, #666);font-size:16px;font-weight:400;pointer-events:none;transform-origin:left top;transition:transform .2s cubic-bezier(.4,0,.2,1),color .2s ease}.tng-input-display{flex:1;font-size:16px;color:var(--tng-text, #333);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;display:flex;align-items:center}.tng-icon{color:var(--tng-text-secondary, #666);font-size:20px;margin-left:8px}.tng-datepicker-container.focused .tng-fieldset,.tng-datepicker-container.has-value .tng-fieldset{border-color:var(--tng-primary, #6200ee);border-width:2px}.tng-datepicker-container.focused .tng-label,.tng-datepicker-container.has-value .tng-label{color:var(--tng-primary, #6200ee);transform:translateY(-24px) scale(.75)}.tng-datepicker-container.focused .tng-legend,.tng-datepicker-container.has-value .tng-legend{max-width:100%}.tng-datepicker-container.focused .tng-label{color:var(--tng-primary, #6200ee)}.tng-calendar-popup{position:absolute;top:100%;left:0;z-index:1000;margin-top:4px;background:var(--tng-surface, #fff);border-radius:8px;box-shadow:var(--tng-shadow-md, 0 4px 20px rgba(0, 0, 0, .15));padding:16px;width:300px;animation:fadeIn .2s ease;border:1px solid var(--tng-border, #eee)}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.tng-calendar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.tng-calendar-header .current-month{font-weight:600;font-size:16px;color:var(--tng-text, #333)}.tng-calendar-header .nav-btn{background:none;border:none;cursor:pointer;padding:4px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--tng-text-secondary, #666)}.tng-calendar-header .nav-btn:hover{background-color:var(--tng-background, #f5f5f5)}.tng-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}.day-name{font-size:12px;color:var(--tng-text-secondary, #666);font-weight:500;margin-bottom:8px}.day-cell{height:36px;display:flex;align-items:center;justify-content:center;font-size:14px;cursor:pointer;border-radius:50%;transition:all .2s ease;position:relative;color:var(--tng-text, #333)}.day-cell:hover:not(.disabled):not(.selected):not(.range-start):not(.range-end){background-color:var(--tng-background, #f5f5f5)}.day-cell.not-current-month{color:#ccc}.day-cell.today{font-weight:600;color:var(--tng-primary, #6200ee);border:1px solid var(--tng-primary, #6200ee)}.day-cell.selected,.day-cell.range-start,.day-cell.range-end{background-color:var(--tng-primary, #6200ee);color:var(--tng-primary-contrast, #fff)}.day-cell.selected.today,.day-cell.range-start.today,.day-cell.range-end.today{border-color:transparent}.day-cell.in-range{background-color:color-mix(in srgb,var(--tng-primary, #6200ee),white 80%);border-radius:0;color:var(--tng-primary, #6200ee)}.day-cell.in-range.range-start{border-top-right-radius:0;border-bottom-right-radius:0}.day-cell.in-range.range-end{border-top-left-radius:0;border-bottom-left-radius:0}.day-cell.range-start{border-radius:50% 0 0 50%;position:relative}.day-cell.range-start:after{content:\"\";position:absolute;inset:0 0 0 50%;background-color:color-mix(in srgb,var(--tng-primary, #6200ee),white 80%);z-index:-1}.day-cell.range-end{border-radius:0 50% 50% 0;position:relative}.day-cell.range-end:after{content:\"\";position:absolute;inset:0 50% 0 0;background-color:color-mix(in srgb,var(--tng-primary, #6200ee),white 80%);z-index:-1}.day-cell.selected{border-radius:50%}.day-cell.disabled{opacity:.3;pointer-events:none;cursor:not-allowed}\n"] }]
|
|
331
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], onClickOutside: [{
|
|
332
|
+
type: HostListener,
|
|
333
|
+
args: ['document:click', ['$event']]
|
|
334
|
+
}] } });
|
|
335
|
+
|
|
336
|
+
class TecnualTableComponent {
|
|
337
|
+
data = input.required(...(ngDevMode ? [{ debugName: "data" }] : []));
|
|
338
|
+
columns = input.required(...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
339
|
+
pageSize = input(10, ...(ngDevMode ? [{ debugName: "pageSize" }] : []));
|
|
340
|
+
filterable = input(true, ...(ngDevMode ? [{ debugName: "filterable" }] : []));
|
|
341
|
+
// State
|
|
342
|
+
searchQuery = signal('', ...(ngDevMode ? [{ debugName: "searchQuery" }] : []));
|
|
343
|
+
currentPage = signal(1, ...(ngDevMode ? [{ debugName: "currentPage" }] : []));
|
|
344
|
+
sortColumn = signal(null, ...(ngDevMode ? [{ debugName: "sortColumn" }] : []));
|
|
345
|
+
sortDirection = signal('asc', ...(ngDevMode ? [{ debugName: "sortDirection" }] : []));
|
|
346
|
+
// Computed
|
|
347
|
+
filteredData = computed(() => {
|
|
348
|
+
const query = this.searchQuery().toLowerCase();
|
|
349
|
+
const rawData = this.data();
|
|
350
|
+
if (!query)
|
|
351
|
+
return rawData;
|
|
352
|
+
return rawData.filter(row => {
|
|
353
|
+
return Object.values(row).some(val => String(val).toLowerCase().includes(query));
|
|
354
|
+
});
|
|
355
|
+
}, ...(ngDevMode ? [{ debugName: "filteredData" }] : []));
|
|
356
|
+
sortedData = computed(() => {
|
|
357
|
+
const data = [...this.filteredData()];
|
|
358
|
+
const column = this.sortColumn();
|
|
359
|
+
const direction = this.sortDirection();
|
|
360
|
+
if (!column)
|
|
361
|
+
return data;
|
|
362
|
+
return data.sort((a, b) => {
|
|
363
|
+
const valA = a[column];
|
|
364
|
+
const valB = b[column];
|
|
365
|
+
if (valA < valB)
|
|
366
|
+
return direction === 'asc' ? -1 : 1;
|
|
367
|
+
if (valA > valB)
|
|
368
|
+
return direction === 'asc' ? 1 : -1;
|
|
369
|
+
return 0;
|
|
370
|
+
});
|
|
371
|
+
}, ...(ngDevMode ? [{ debugName: "sortedData" }] : []));
|
|
372
|
+
paginatedData = computed(() => {
|
|
373
|
+
const data = this.sortedData();
|
|
374
|
+
const size = this.pageSize();
|
|
375
|
+
const page = this.currentPage();
|
|
376
|
+
const startIndex = (page - 1) * size;
|
|
377
|
+
return data.slice(startIndex, startIndex + size);
|
|
378
|
+
}, ...(ngDevMode ? [{ debugName: "paginatedData" }] : []));
|
|
379
|
+
totalPages = computed(() => {
|
|
380
|
+
return Math.ceil(this.filteredData().length / this.pageSize());
|
|
381
|
+
}, ...(ngDevMode ? [{ debugName: "totalPages" }] : []));
|
|
382
|
+
// Actions
|
|
383
|
+
onSort(column) {
|
|
384
|
+
if (!column.sortable)
|
|
385
|
+
return;
|
|
386
|
+
if (this.sortColumn() === column.key) {
|
|
387
|
+
// Toggle direction
|
|
388
|
+
this.sortDirection.update(d => d === 'asc' ? 'desc' : 'asc');
|
|
389
|
+
}
|
|
390
|
+
else {
|
|
391
|
+
// New column
|
|
392
|
+
this.sortColumn.set(column.key);
|
|
393
|
+
this.sortDirection.set('asc');
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
setPage(page) {
|
|
397
|
+
if (page >= 1 && page <= this.totalPages()) {
|
|
398
|
+
this.currentPage.set(page);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
onSearch(query) {
|
|
402
|
+
this.searchQuery.set(query);
|
|
403
|
+
this.currentPage.set(1); // Reset to first page on search
|
|
404
|
+
}
|
|
405
|
+
onSearchInput(event) {
|
|
406
|
+
const input = event.target;
|
|
407
|
+
this.onSearch(input.value);
|
|
408
|
+
}
|
|
409
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TecnualTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
410
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: TecnualTableComponent, isStandalone: true, selector: "tng-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, filterable: { classPropertyName: "filterable", publicName: "filterable", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"tng-table-container\">\n <!-- Toolbar -->\n <div class=\"tng-table-toolbar\" *ngIf=\"filterable()\">\n <div class=\"tng-table-search\">\n <tng-input\n [placeholder]=\"'Search...'\"\n (input)=\"onSearchInput($event)\"\n ></tng-input>\n </div>\n </div>\n\n <!-- Table -->\n <div class=\"tng-table-wrapper\">\n <table class=\"tng-table\">\n <thead>\n <tr>\n <th \n *ngFor=\"let col of columns()\"\n [style.width]=\"col.width\"\n [class.sortable]=\"col.sortable\"\n (click)=\"onSort(col)\"\n >\n <div class=\"th-content\">\n {{ col.label }}\n <span class=\"sort-indicator\" *ngIf=\"sortColumn() === col.key\">\n {{ sortDirection() === 'asc' ? '\u2191' : '\u2193' }}\n </span>\n </div>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of paginatedData()\">\n <td *ngFor=\"let col of columns()\">\n <ng-container *ngIf=\"col.template; else defaultCell\">\n <ng-container *ngTemplateOutlet=\"col.template; context: { $implicit: row[col.key], row: row }\"></ng-container>\n </ng-container>\n <ng-template #defaultCell>\n {{ row[col.key] }}\n </ng-template>\n </td>\n </tr>\n <tr *ngIf=\"paginatedData().length === 0\" class=\"no-data-row\">\n <td [attr.colspan]=\"columns().length\">\n No data found\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <!-- Pagination -->\n <div class=\"tng-table-pagination\" *ngIf=\"totalPages() > 1\">\n <div class=\"pagination-info\">\n Page {{ currentPage() }} of {{ totalPages() }}\n </div>\n <div class=\"pagination-controls\">\n <button \n class=\"tng-btn-icon\" \n [disabled]=\"currentPage() === 1\"\n (click)=\"setPage(currentPage() - 1)\"\n >\n \u2039\n </button>\n \n <ng-container *ngFor=\"let page of [].constructor(totalPages()); let i = index\">\n <!-- Show limited pages logic could go here, for now simple list -->\n <button \n *ngIf=\"i + 1 === currentPage() || i + 1 === 1 || i + 1 === totalPages() || (i + 1 >= currentPage() - 1 && i + 1 <= currentPage() + 1)\"\n class=\"tng-btn-page\"\n [class.active]=\"currentPage() === i + 1\"\n (click)=\"setPage(i + 1)\"\n >\n {{ i + 1 }}\n </button>\n <span *ngIf=\"(i + 1 === 2 && currentPage() > 4) || (i + 1 === totalPages() - 1 && currentPage() < totalPages() - 3)\" class=\"pagination-dots\">...</span>\n </ng-container>\n\n <button \n class=\"tng-btn-icon\" \n [disabled]=\"currentPage() === totalPages()\"\n (click)=\"setPage(currentPage() + 1)\"\n >\n \u203A\n </button>\n </div>\n </div>\n</div>\n", styles: [".tng-table-container{display:flex;flex-direction:column;gap:var(--tng-spacing-unit, 16px);width:100%;background:var(--tng-surface, #fff);border-radius:var(--tng-border-radius, 8px);box-shadow:var(--tng-shadow-sm, 0 1px 3px rgba(0, 0, 0, .1));padding:var(--tng-spacing-unit, 16px);box-sizing:border-box}.tng-table-toolbar{display:flex;justify-content:flex-end;margin-bottom:var(--tng-spacing-unit, 8px)}.tng-table-search{width:100%;max-width:300px}.tng-table-wrapper{overflow-x:auto;width:100%;border:1px solid var(--tng-border, #e0e0e0);border-radius:var(--tng-border-radius, 4px)}.tng-table{width:100%;border-collapse:collapse;font-family:var(--tng-font-family, sans-serif);font-size:var(--tng-font-size-base, 14px)}.tng-table th,.tng-table td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--tng-border, #e0e0e0)}.tng-table th{background-color:var(--tng-background, #fafafa);font-weight:var(--tng-font-weight-medium, 500);color:var(--tng-text-secondary, #666);white-space:nowrap;-webkit-user-select:none;user-select:none}.tng-table th.sortable{cursor:pointer;transition:background-color .2s}.tng-table th.sortable:hover{background-color:#ededed}.tng-table tr:last-child td{border-bottom:none}.tng-table tr:hover td{background-color:#00000005}.th-content{display:flex;align-items:center;gap:4px}.sort-indicator{font-size:12px}.no-data-row{text-align:center;color:var(--tng-text-secondary, #666);padding:24px}.tng-table-pagination{display:flex;justify-content:space-between;align-items:center;padding-top:var(--tng-spacing-unit, 8px);flex-wrap:wrap;gap:16px}.pagination-info{color:var(--tng-text-secondary, #666);font-size:.9em}.pagination-controls{display:flex;gap:4px;align-items:center}.tng-btn-icon,.tng-btn-page{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 6px;border:1px solid var(--tng-border, #e0e0e0);background:var(--tng-surface, #fff);border-radius:var(--tng-border-radius, 4px);cursor:pointer;color:var(--tng-text, #333);transition:all .2s}.tng-btn-icon:hover:not(:disabled),.tng-btn-page:hover:not(:disabled){background-color:var(--tng-background, #f5f5f5);border-color:var(--tng-primary, #3f51b5);color:var(--tng-primary, #3f51b5)}.tng-btn-icon:disabled,.tng-btn-page:disabled{opacity:.5;cursor:not-allowed}.tng-btn-icon.active,.tng-btn-page.active{background-color:var(--tng-primary, #3f51b5);color:var(--tng-primary-contrast, #fff);border-color:var(--tng-primary, #3f51b5)}.pagination-dots{display:inline-flex;align-items:center;justify-content:center;width:32px;color:var(--tng-text-secondary, #666)}@media(max-width:600px){.tng-table-pagination{justify-content:center;flex-direction:column}.tng-table-toolbar{justify-content:stretch}.tng-table-search{max-width:none}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: TecnualInputComponent, selector: "tng-input", inputs: ["label", "type", "placeholder", "required", "disabled", "id"], outputs: ["disabledChange"] }] });
|
|
411
|
+
}
|
|
412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TecnualTableComponent, decorators: [{
|
|
413
|
+
type: Component,
|
|
414
|
+
args: [{ selector: 'tng-table', standalone: true, imports: [CommonModule, FormsModule, TecnualInputComponent], template: "<div class=\"tng-table-container\">\n <!-- Toolbar -->\n <div class=\"tng-table-toolbar\" *ngIf=\"filterable()\">\n <div class=\"tng-table-search\">\n <tng-input\n [placeholder]=\"'Search...'\"\n (input)=\"onSearchInput($event)\"\n ></tng-input>\n </div>\n </div>\n\n <!-- Table -->\n <div class=\"tng-table-wrapper\">\n <table class=\"tng-table\">\n <thead>\n <tr>\n <th \n *ngFor=\"let col of columns()\"\n [style.width]=\"col.width\"\n [class.sortable]=\"col.sortable\"\n (click)=\"onSort(col)\"\n >\n <div class=\"th-content\">\n {{ col.label }}\n <span class=\"sort-indicator\" *ngIf=\"sortColumn() === col.key\">\n {{ sortDirection() === 'asc' ? '\u2191' : '\u2193' }}\n </span>\n </div>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of paginatedData()\">\n <td *ngFor=\"let col of columns()\">\n <ng-container *ngIf=\"col.template; else defaultCell\">\n <ng-container *ngTemplateOutlet=\"col.template; context: { $implicit: row[col.key], row: row }\"></ng-container>\n </ng-container>\n <ng-template #defaultCell>\n {{ row[col.key] }}\n </ng-template>\n </td>\n </tr>\n <tr *ngIf=\"paginatedData().length === 0\" class=\"no-data-row\">\n <td [attr.colspan]=\"columns().length\">\n No data found\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <!-- Pagination -->\n <div class=\"tng-table-pagination\" *ngIf=\"totalPages() > 1\">\n <div class=\"pagination-info\">\n Page {{ currentPage() }} of {{ totalPages() }}\n </div>\n <div class=\"pagination-controls\">\n <button \n class=\"tng-btn-icon\" \n [disabled]=\"currentPage() === 1\"\n (click)=\"setPage(currentPage() - 1)\"\n >\n \u2039\n </button>\n \n <ng-container *ngFor=\"let page of [].constructor(totalPages()); let i = index\">\n <!-- Show limited pages logic could go here, for now simple list -->\n <button \n *ngIf=\"i + 1 === currentPage() || i + 1 === 1 || i + 1 === totalPages() || (i + 1 >= currentPage() - 1 && i + 1 <= currentPage() + 1)\"\n class=\"tng-btn-page\"\n [class.active]=\"currentPage() === i + 1\"\n (click)=\"setPage(i + 1)\"\n >\n {{ i + 1 }}\n </button>\n <span *ngIf=\"(i + 1 === 2 && currentPage() > 4) || (i + 1 === totalPages() - 1 && currentPage() < totalPages() - 3)\" class=\"pagination-dots\">...</span>\n </ng-container>\n\n <button \n class=\"tng-btn-icon\" \n [disabled]=\"currentPage() === totalPages()\"\n (click)=\"setPage(currentPage() + 1)\"\n >\n \u203A\n </button>\n </div>\n </div>\n</div>\n", styles: [".tng-table-container{display:flex;flex-direction:column;gap:var(--tng-spacing-unit, 16px);width:100%;background:var(--tng-surface, #fff);border-radius:var(--tng-border-radius, 8px);box-shadow:var(--tng-shadow-sm, 0 1px 3px rgba(0, 0, 0, .1));padding:var(--tng-spacing-unit, 16px);box-sizing:border-box}.tng-table-toolbar{display:flex;justify-content:flex-end;margin-bottom:var(--tng-spacing-unit, 8px)}.tng-table-search{width:100%;max-width:300px}.tng-table-wrapper{overflow-x:auto;width:100%;border:1px solid var(--tng-border, #e0e0e0);border-radius:var(--tng-border-radius, 4px)}.tng-table{width:100%;border-collapse:collapse;font-family:var(--tng-font-family, sans-serif);font-size:var(--tng-font-size-base, 14px)}.tng-table th,.tng-table td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--tng-border, #e0e0e0)}.tng-table th{background-color:var(--tng-background, #fafafa);font-weight:var(--tng-font-weight-medium, 500);color:var(--tng-text-secondary, #666);white-space:nowrap;-webkit-user-select:none;user-select:none}.tng-table th.sortable{cursor:pointer;transition:background-color .2s}.tng-table th.sortable:hover{background-color:#ededed}.tng-table tr:last-child td{border-bottom:none}.tng-table tr:hover td{background-color:#00000005}.th-content{display:flex;align-items:center;gap:4px}.sort-indicator{font-size:12px}.no-data-row{text-align:center;color:var(--tng-text-secondary, #666);padding:24px}.tng-table-pagination{display:flex;justify-content:space-between;align-items:center;padding-top:var(--tng-spacing-unit, 8px);flex-wrap:wrap;gap:16px}.pagination-info{color:var(--tng-text-secondary, #666);font-size:.9em}.pagination-controls{display:flex;gap:4px;align-items:center}.tng-btn-icon,.tng-btn-page{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 6px;border:1px solid var(--tng-border, #e0e0e0);background:var(--tng-surface, #fff);border-radius:var(--tng-border-radius, 4px);cursor:pointer;color:var(--tng-text, #333);transition:all .2s}.tng-btn-icon:hover:not(:disabled),.tng-btn-page:hover:not(:disabled){background-color:var(--tng-background, #f5f5f5);border-color:var(--tng-primary, #3f51b5);color:var(--tng-primary, #3f51b5)}.tng-btn-icon:disabled,.tng-btn-page:disabled{opacity:.5;cursor:not-allowed}.tng-btn-icon.active,.tng-btn-page.active{background-color:var(--tng-primary, #3f51b5);color:var(--tng-primary-contrast, #fff);border-color:var(--tng-primary, #3f51b5)}.pagination-dots{display:inline-flex;align-items:center;justify-content:center;width:32px;color:var(--tng-text-secondary, #666)}@media(max-width:600px){.tng-table-pagination{justify-content:center;flex-direction:column}.tng-table-toolbar{justify-content:stretch}.tng-table-search{max-width:none}}\n"] }]
|
|
415
|
+
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: true }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], filterable: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterable", required: false }] }] } });
|
|
416
|
+
|
|
417
|
+
class TngToolbarComponent {
|
|
418
|
+
position = input('static', ...(ngDevMode ? [{ debugName: "position" }] : []));
|
|
419
|
+
positionType = input('fixed', ...(ngDevMode ? [{ debugName: "positionType" }] : []));
|
|
420
|
+
color = input('default', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
421
|
+
elevation = input(true, ...(ngDevMode ? [{ debugName: "elevation" }] : []));
|
|
422
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TngToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
423
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: TngToolbarComponent, isStandalone: true, selector: "tng-toolbar", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, positionType: { classPropertyName: "positionType", publicName: "positionType", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, elevation: { classPropertyName: "elevation", publicName: "elevation", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.tng-toolbar--top": "position() === \"top\"", "class.tng-toolbar--bottom": "position() === \"bottom\"", "class.tng-toolbar--fixed": "positionType() === \"fixed\"", "class.tng-toolbar--absolute": "positionType() === \"absolute\"", "class.tng-toolbar--relative": "positionType() === \"relative\"", "class.tng-toolbar--static": "positionType() === \"static\"", "class.tng-toolbar--primary": "color() === \"primary\"", "class.tng-toolbar--secondary": "color() === \"secondary\"", "class.tng-toolbar--elevated": "elevation()" }, classAttribute: "tng-toolbar" }, ngImport: i0, template: "<div class=\"tng-toolbar__container\">\n <div class=\"tng-toolbar__section tng-toolbar__section--left\">\n <ng-content select=\"[toolbar-left]\"></ng-content>\n </div>\n\n <div class=\"tng-toolbar__section tng-toolbar__section--center\">\n <ng-content select=\"[toolbar-center]\"></ng-content>\n <ng-content></ng-content>\n </div>\n\n <div class=\"tng-toolbar__section tng-toolbar__section--right\">\n <ng-content select=\"[toolbar-right]\"></ng-content>\n </div>\n</div>\n", styles: [".tng-toolbar{display:block;width:100%;background-color:#fff;transition:box-shadow .3s cubic-bezier(.4,0,.2,1)}.tng-toolbar__container{display:flex;align-items:center;justify-content:space-between;padding:0 16px;min-height:64px;max-width:100%;gap:16px}@media(max-width:768px){.tng-toolbar__container{min-height:56px;padding:0 12px;gap:12px}}.tng-toolbar__section{display:flex;align-items:center;gap:12px;flex-shrink:0}.tng-toolbar__section--left{justify-content:flex-start}.tng-toolbar__section--center{justify-content:center;flex:1;overflow:hidden}.tng-toolbar__section--right{justify-content:flex-end}.tng-toolbar--fixed{position:fixed;z-index:1000}.tng-toolbar--absolute{position:absolute;z-index:1000}.tng-toolbar--relative{position:relative}.tng-toolbar--static{position:static}.tng-toolbar--top.tng-toolbar--fixed,.tng-toolbar--top.tng-toolbar--absolute{top:0;left:0;right:0}.tng-toolbar--bottom.tng-toolbar--fixed,.tng-toolbar--bottom.tng-toolbar--absolute{bottom:0;left:0;right:0}.tng-toolbar--elevated{box-shadow:0 2px 4px -1px #0000001a,0 4px 5px #00000012,0 1px 10px #0000000f}.tng-toolbar--primary{background-color:var(--tng-primary);color:var(--tng-primary-contrast)}.tng-toolbar--secondary{background-color:var(--tng-secondary);color:var(--tng-secondary-contrast)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
424
|
+
}
|
|
425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: TngToolbarComponent, decorators: [{
|
|
426
|
+
type: Component,
|
|
427
|
+
args: [{ selector: 'tng-toolbar', standalone: true, imports: [], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
428
|
+
'class': 'tng-toolbar',
|
|
429
|
+
'[class.tng-toolbar--top]': 'position() === "top"',
|
|
430
|
+
'[class.tng-toolbar--bottom]': 'position() === "bottom"',
|
|
431
|
+
'[class.tng-toolbar--fixed]': 'positionType() === "fixed"',
|
|
432
|
+
'[class.tng-toolbar--absolute]': 'positionType() === "absolute"',
|
|
433
|
+
'[class.tng-toolbar--relative]': 'positionType() === "relative"',
|
|
434
|
+
'[class.tng-toolbar--static]': 'positionType() === "static"',
|
|
435
|
+
'[class.tng-toolbar--primary]': 'color() === "primary"',
|
|
436
|
+
'[class.tng-toolbar--secondary]': 'color() === "secondary"',
|
|
437
|
+
'[class.tng-toolbar--elevated]': 'elevation()',
|
|
438
|
+
}, template: "<div class=\"tng-toolbar__container\">\n <div class=\"tng-toolbar__section tng-toolbar__section--left\">\n <ng-content select=\"[toolbar-left]\"></ng-content>\n </div>\n\n <div class=\"tng-toolbar__section tng-toolbar__section--center\">\n <ng-content select=\"[toolbar-center]\"></ng-content>\n <ng-content></ng-content>\n </div>\n\n <div class=\"tng-toolbar__section tng-toolbar__section--right\">\n <ng-content select=\"[toolbar-right]\"></ng-content>\n </div>\n</div>\n", styles: [".tng-toolbar{display:block;width:100%;background-color:#fff;transition:box-shadow .3s cubic-bezier(.4,0,.2,1)}.tng-toolbar__container{display:flex;align-items:center;justify-content:space-between;padding:0 16px;min-height:64px;max-width:100%;gap:16px}@media(max-width:768px){.tng-toolbar__container{min-height:56px;padding:0 12px;gap:12px}}.tng-toolbar__section{display:flex;align-items:center;gap:12px;flex-shrink:0}.tng-toolbar__section--left{justify-content:flex-start}.tng-toolbar__section--center{justify-content:center;flex:1;overflow:hidden}.tng-toolbar__section--right{justify-content:flex-end}.tng-toolbar--fixed{position:fixed;z-index:1000}.tng-toolbar--absolute{position:absolute;z-index:1000}.tng-toolbar--relative{position:relative}.tng-toolbar--static{position:static}.tng-toolbar--top.tng-toolbar--fixed,.tng-toolbar--top.tng-toolbar--absolute{top:0;left:0;right:0}.tng-toolbar--bottom.tng-toolbar--fixed,.tng-toolbar--bottom.tng-toolbar--absolute{bottom:0;left:0;right:0}.tng-toolbar--elevated{box-shadow:0 2px 4px -1px #0000001a,0 4px 5px #00000012,0 1px 10px #0000000f}.tng-toolbar--primary{background-color:var(--tng-primary);color:var(--tng-primary-contrast)}.tng-toolbar--secondary{background-color:var(--tng-secondary);color:var(--tng-secondary-contrast)}\n"] }]
|
|
439
|
+
}], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], positionType: [{ type: i0.Input, args: [{ isSignal: true, alias: "positionType", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], elevation: [{ type: i0.Input, args: [{ isSignal: true, alias: "elevation", required: false }] }] } });
|
|
440
|
+
|
|
441
|
+
class ThemeService {
|
|
442
|
+
STORAGE_KEY = 'tng-theme';
|
|
443
|
+
currentTheme = signal(this.loadTheme(), ...(ngDevMode ? [{ debugName: "currentTheme" }] : []));
|
|
444
|
+
themes = [
|
|
445
|
+
{
|
|
446
|
+
name: 'light',
|
|
447
|
+
displayName: 'Light',
|
|
448
|
+
description: 'Clean and bright',
|
|
449
|
+
primaryColor: '#3f51b5',
|
|
450
|
+
isDark: false
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
name: 'dark',
|
|
454
|
+
displayName: 'Dark',
|
|
455
|
+
description: 'Easy on the eyes',
|
|
456
|
+
primaryColor: '#7986cb',
|
|
457
|
+
isDark: true
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
name: 'ocean',
|
|
461
|
+
displayName: 'Ocean',
|
|
462
|
+
description: 'Deep blue waters',
|
|
463
|
+
primaryColor: '#0288d1',
|
|
464
|
+
isDark: false
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
name: 'forest',
|
|
468
|
+
displayName: 'Forest',
|
|
469
|
+
description: 'Natural greens',
|
|
470
|
+
primaryColor: '#388e3c',
|
|
471
|
+
isDark: false
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
name: 'sunset',
|
|
475
|
+
displayName: 'Sunset',
|
|
476
|
+
description: 'Warm oranges',
|
|
477
|
+
primaryColor: '#f57c00',
|
|
478
|
+
isDark: false
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: 'royal',
|
|
482
|
+
displayName: 'Royal',
|
|
483
|
+
description: 'Regal purples',
|
|
484
|
+
primaryColor: '#7b1fa2',
|
|
485
|
+
isDark: false
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
name: 'monochrome',
|
|
489
|
+
displayName: 'Monochrome',
|
|
490
|
+
description: 'Elegant grayscale',
|
|
491
|
+
primaryColor: '#616161',
|
|
492
|
+
isDark: false
|
|
493
|
+
}
|
|
494
|
+
];
|
|
495
|
+
constructor() {
|
|
496
|
+
// Apply initial theme immediately
|
|
497
|
+
const initialTheme = this.loadTheme();
|
|
498
|
+
this.applyTheme(initialTheme);
|
|
499
|
+
// Watch for theme changes
|
|
500
|
+
effect(() => {
|
|
501
|
+
const theme = this.currentTheme();
|
|
502
|
+
console.log('Theme changed to:', theme);
|
|
503
|
+
this.applyTheme(theme);
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
setTheme(theme) {
|
|
507
|
+
this.currentTheme.set(theme);
|
|
508
|
+
this.saveTheme(theme);
|
|
509
|
+
}
|
|
510
|
+
applyTheme(theme) {
|
|
511
|
+
console.log('Applying theme:', theme);
|
|
512
|
+
// Remove all theme classes
|
|
513
|
+
this.themes.forEach(t => {
|
|
514
|
+
document.body.classList.remove(`${t.name}-theme`);
|
|
515
|
+
});
|
|
516
|
+
// Add new theme class
|
|
517
|
+
document.body.classList.add(`${theme}-theme`);
|
|
518
|
+
// Set data attribute for CSS
|
|
519
|
+
document.body.setAttribute('data-theme', theme);
|
|
520
|
+
console.log('Body classes:', document.body.className);
|
|
521
|
+
console.log('Data theme:', document.body.getAttribute('data-theme'));
|
|
522
|
+
}
|
|
523
|
+
loadTheme() {
|
|
524
|
+
const saved = localStorage.getItem(this.STORAGE_KEY);
|
|
525
|
+
return saved || 'light';
|
|
526
|
+
}
|
|
527
|
+
saveTheme(theme) {
|
|
528
|
+
localStorage.setItem(this.STORAGE_KEY, theme);
|
|
529
|
+
}
|
|
530
|
+
getThemeInfo(name) {
|
|
531
|
+
return this.themes.find(t => t.name === name);
|
|
532
|
+
}
|
|
533
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
534
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: ThemeService, providedIn: 'root' });
|
|
535
|
+
}
|
|
536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: ThemeService, decorators: [{
|
|
537
|
+
type: Injectable,
|
|
538
|
+
args: [{
|
|
539
|
+
providedIn: 'root'
|
|
540
|
+
}]
|
|
541
|
+
}], ctorParameters: () => [] });
|
|
542
|
+
|
|
543
|
+
/*
|
|
544
|
+
* Public API Surface of tecnualng
|
|
545
|
+
*/
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Generated bundle index. Do not edit.
|
|
549
|
+
*/
|
|
550
|
+
|
|
551
|
+
export { TecnualDatepickerComponent, TecnualInputComponent, TecnualTableComponent, ThemeService, TngButton, TngCardComponent, TngToolbarComponent };
|
|
552
|
+
//# sourceMappingURL=tecnualng.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tecnualng.mjs","sources":["../../../projects/tecnualng/src/lib/tng-button/tng-button.ts","../../../projects/tecnualng/src/lib/tng-button/tng-button.html","../../../projects/tecnualng/src/lib/tng-card/tng-card.component.ts","../../../projects/tecnualng/src/lib/tng-card/tng-card.component.html","../../../projects/tecnualng/src/lib/tng-input/tng-input.component.ts","../../../projects/tecnualng/src/lib/tng-input/tng-input.component.html","../../../projects/tecnualng/src/lib/tng-datepicker/tng-datepicker.component.ts","../../../projects/tecnualng/src/lib/tng-datepicker/tng-datepicker.component.html","../../../projects/tecnualng/src/lib/tng-table/tng-table.component.ts","../../../projects/tecnualng/src/lib/tng-table/tng-table.component.html","../../../projects/tecnualng/src/lib/tng-toolbar/tng-toolbar.component.ts","../../../projects/tecnualng/src/lib/tng-toolbar/tng-toolbar.component.html","../../../projects/tecnualng/src/lib/utils/theme.service.ts","../../../projects/tecnualng/src/public-api.ts","../../../projects/tecnualng/src/tecnualng.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\n\nexport type TngButtonAppearance = 'text' | 'filled' | 'elevated' | 'outlined' | 'tonal';\n\n@Component({\n selector: 'button[tngButton], a[tngButton]',\n imports: [],\n host: {\n 'class': 'tng-button',\n '[class.tng-button--primary]': 'variant() === \"primary\"',\n '[class.tng-button--secondary]': 'variant() === \"secondary\"',\n '[class.tng-button--success]': 'variant() === \"success\"',\n '[class.tng-button--warning]': 'variant() === \"warning\"',\n '[class.tng-button--error]': 'variant() === \"error\"',\n '[class.tng-button--rounded]': 'rounded()',\n '[class.tng-button--soft]': 'soft()',\n '(click)': 'createRipple($event)',\n },\n templateUrl: './tng-button.html',\n styleUrl: './tng-button.scss',\n exportAs: 'tngButton',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TngButton {\n variant = input<'primary' | 'secondary' | 'success' | 'warning' | 'error' | null>(null);\n rounded = input(false);\n soft = input(false);\n ripple = input(true);\n icon = input<string | null>(null);\n iconPosition = input<'left' | 'right'>('left');\n\n createRipple(event: any) {\n if (!this.ripple()) return;\n\n const button = event.currentTarget as HTMLElement;\n const circle = document.createElement('span');\n const diameter = Math.max(button.clientWidth, button.clientHeight);\n const radius = diameter / 2;\n\n const rect = button.getBoundingClientRect();\n \n circle.style.width = circle.style.height = `${diameter}px`;\n circle.style.left = `${event.clientX - rect.left - radius}px`;\n circle.style.top = `${event.clientY - rect.top - radius}px`;\n circle.classList.add('tng-ripple');\n\n const ripple = button.getElementsByClassName('tng-ripple')[0];\n\n if (ripple) {\n ripple.remove();\n }\n\n button.appendChild(circle);\n }\n}\n","<span class=\"tng-button__label\">\n @if (icon() && iconPosition() === 'left') {\n <i [class]=\"icon()\" class=\"tng-button__icon tng-button__icon--left\"></i>\n }\n <ng-content></ng-content>\n @if (icon() && iconPosition() === 'right') {\n <i [class]=\"icon()\" class=\"tng-button__icon tng-button__icon--right\"></i>\n }\n</span>\n\n","import { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\n\nexport type TngCardVariant = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error';\n\n@Component({\n selector: 'tng-card',\n standalone: true,\n imports: [],\n templateUrl: './tng-card.component.html',\n styleUrl: './tng-card.component.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'tng-card',\n '[class.tng-card--primary]': 'variant() === \"primary\"',\n '[class.tng-card--secondary]': 'variant() === \"secondary\"',\n '[class.tng-card--success]': 'variant() === \"success\"',\n '[class.tng-card--warning]': 'variant() === \"warning\"',\n '[class.tng-card--error]': 'variant() === \"error\"',\n '[class.tng-card--elevated]': 'elevated()',\n '[class.tng-card--outlined]': 'outlined()',\n }\n})\nexport class TngCardComponent {\n variant = input<TngCardVariant>('default');\n title = input<string | null>(null);\n subtitle = input<string | null>(null);\n elevated = input(false);\n outlined = input(false);\n image = input<string | null>(null);\n imageAlt = input<string>('Card image');\n}\n","<div class=\"tng-card__container\">\n @if (image()) {\n <div class=\"tng-card__image\">\n <img [src]=\"image()\" [alt]=\"imageAlt()\" />\n </div>\n }\n\n @if (title() || subtitle()) {\n <div class=\"tng-card__header\">\n <ng-content select=\"[card-header]\"></ng-content>\n \n @if (!title() && !subtitle()) {\n <!-- Header projection only -->\n } @else {\n <div class=\"tng-card__header-text\">\n @if (title()) {\n <h3 class=\"tng-card__title\">{{ title() }}</h3>\n }\n @if (subtitle()) {\n <p class=\"tng-card__subtitle\">{{ subtitle() }}</p>\n }\n </div>\n }\n </div>\n }\n\n <div class=\"tng-card__content\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"tng-card__footer\">\n <ng-content select=\"[card-footer]\"></ng-content>\n </div>\n</div>\n","import { Component, Input, forwardRef, input, model } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'tng-input',\n standalone: true,\n imports: [CommonModule, FormsModule],\n templateUrl: './tng-input.component.html',\n styleUrls: ['./tng-input.component.scss'],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TecnualInputComponent),\n multi: true\n }\n ]\n})\nexport class TecnualInputComponent implements ControlValueAccessor {\n label = input('');\n type = input<'text' | 'number' | 'password' | 'email' | 'tel'>('text');\n placeholder = input('');\n required = input<boolean>(false);\n disabled = model<boolean>(false);\n id = input<string>(`tng-input-${Math.random().toString(36).substr(2, 9)}`);\n\n value: any = '';\n isFocused: boolean = false;\n\n onChange: any = () => {};\n onTouched: any = () => {};\n\n get hasValue(): boolean {\n return this.value !== null && this.value !== undefined && this.value !== '';\n }\n\n onInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n this.value = input.value;\n this.onChange(this.value);\n }\n\n onFocus(): void {\n this.isFocused = true;\n }\n\n onBlur(): void {\n this.isFocused = false;\n this.onTouched();\n }\n\n writeValue(value: any): void {\n this.value = value;\n }\n\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.update(() => isDisabled);\n }\n}\n","<div class=\"tng-input-container\" [class.focused]=\"isFocused\" [class.has-value]=\"hasValue\" [class.disabled]=\"disabled()\">\n <fieldset class=\"tng-fieldset\" aria-hidden=\"true\">\n <legend class=\"tng-legend\"><span>{{ label() }}</span></legend>\n </fieldset>\n <label [for]=\"id()\" class=\"tng-label\">{{ label() }}</label>\n <input\n [id]=\"id()\"\n [type]=\"type()\"\n [placeholder]=\"isFocused ? placeholder() : ''\"\n [value]=\"value\"\n [disabled]=\"disabled()\"\n [required]=\"required()\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n class=\"tng-input-field\"\n />\n</div>\n","import { Component, Input, Output, EventEmitter, ElementRef, HostListener, forwardRef, signal, computed, input, model } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';\nimport { addYears } from '../utils/date-utils';\n\nexport interface DateRange {\n start: Date | null;\n end: Date | null;\n}\n\n@Component({\n selector: 'tng-datepicker',\n standalone: true,\n imports: [CommonModule, FormsModule],\n templateUrl: './tng-datepicker.component.html',\n styleUrls: ['./tng-datepicker.component.scss'],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TecnualDatepickerComponent),\n multi: true\n }\n ]\n})\nexport class TecnualDatepickerComponent implements ControlValueAccessor {\n label = input('');\n placeholder = input('');\n mode = input<'single' | 'range'>('single');\n minDate = input<Date | null>(null);\n maxDate = input<Date | null>(null);\n disabled = model<boolean>(false);\n id = input<string>(`tng-datepicker-${Math.random().toString(36).substr(2, 9)}`);\n\n isOpen = signal(false);\n currentViewDate = signal(new Date()); // The month we are looking at\n \n // Value storage\n singleValue: Date | null = null;\n rangeValue: DateRange = { start: null, end: null };\n\n onChange: any = () => {};\n onTouched: any = () => {};\n\n constructor(private elementRef: ElementRef) {}\n\n // Calendar Logic\n readonly daysOfWeek = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];\n \n calendarDays = computed(() => {\n const year = this.currentViewDate().getFullYear();\n const month = this.currentViewDate().getMonth();\n \n const firstDayOfMonth = new Date(year, month, 1);\n const lastDayOfMonth = new Date(year, month + 1, 0);\n \n const days: Date[] = [];\n \n // Padding days from previous month\n const startDay = firstDayOfMonth.getDay();\n for (let i = startDay - 1; i >= 0; i--) {\n days.push(new Date(year, month, -i));\n }\n \n // Days of current month\n for (let i = 1; i <= lastDayOfMonth.getDate(); i++) {\n days.push(new Date(year, month, i));\n }\n \n // Padding days for next month (to fill 6 rows usually, or just enough to finish week)\n const remaining = 42 - days.length; // 6 rows * 7 days\n for (let i = 1; i <= remaining; i++) {\n days.push(new Date(year, month + 1, i));\n }\n \n return days;\n });\n\n get formattedValue(): string {\n if (this.mode() === 'single') {\n return this.singleValue ? this.singleValue.toLocaleDateString() : '';\n } else {\n if (this.rangeValue.start && this.rangeValue.end) {\n return `${this.rangeValue.start.toLocaleDateString()} - ${this.rangeValue.end.toLocaleDateString()}`;\n } else if (this.rangeValue.start) {\n return `${this.rangeValue.start.toLocaleDateString()} - ...`;\n }\n return '';\n }\n }\n\n get currentMonthYear(): string {\n return this.currentViewDate().toLocaleString('default', { month: 'long', year: 'numeric' });\n }\n\n toggleCalendar() {\n if (this.disabled()) return;\n this.isOpen.update(v => !v);\n if (this.isOpen()) {\n // Focus logic if needed\n } else {\n this.onTouched();\n }\n }\n\n prevMonth(e: Event) {\n e.stopPropagation();\n const d = this.currentViewDate();\n this.currentViewDate.set(new Date(d.getFullYear(), d.getMonth() - 1, 1));\n }\n\n nextMonth(e: Event) {\n e.stopPropagation();\n const d = this.currentViewDate();\n this.currentViewDate.set(new Date(d.getFullYear(), d.getMonth() + 1, 1));\n }\n\n selectDate(date: Date) {\n if (this.isDisabled(date)) return;\n\n if (this.mode() === 'single') {\n this.singleValue = date;\n this.onChange(date);\n this.isOpen.set(false);\n } else {\n // Range logic\n if (!this.rangeValue.start || (this.rangeValue.start && this.rangeValue.end)) {\n // Start new range\n this.rangeValue = { start: date, end: null };\n } else {\n // Complete range\n if (date < this.rangeValue.start) {\n this.rangeValue = { start: date, end: this.rangeValue.start };\n } else {\n this.rangeValue = { ...this.rangeValue, end: date };\n }\n this.onChange(this.rangeValue);\n this.isOpen.set(false);\n }\n }\n }\n\n // Helper checks\n isSelected(date: Date): boolean {\n if (this.mode() === 'single') {\n return this.isSameDay(date, this.singleValue);\n } else {\n return this.isSameDay(date, this.rangeValue.start) || this.isSameDay(date, this.rangeValue.end);\n }\n }\n\n isInRange(date: Date): boolean {\n if (this.mode() !== 'range' || !this.rangeValue.start || !this.rangeValue.end) return false;\n return date > this.rangeValue.start && date < this.rangeValue.end;\n }\n\n isSameDay(d1: Date | null, d2: Date | null): boolean {\n if (!d1 || !d2) return false;\n return d1.getDate() === d2.getDate() &&\n d1.getMonth() === d2.getMonth() &&\n d1.getFullYear() === d2.getFullYear();\n }\n\n isToday(date: Date): boolean {\n return this.isSameDay(date, new Date());\n }\n\n isDisabled(date: Date): boolean {\n if (this.minDate() && date < this.setMidnight(this.minDate()!)) return true;\n if (this.maxDate() && date > this.setMidnight(this.maxDate()!)) return true;\n \n // Check if it belongs to current month (optional, but good for visual clarity)\n // We might want to allow selecting padding days, but usually we just dim them.\n // Let's just disable interaction for padding days if we want strict month view, \n // but standard is to allow navigating to them.\n // For now, let's just check min/max.\n return false;\n }\n \n isCurrentMonth(date: Date): boolean {\n return date.getMonth() === this.currentViewDate().getMonth();\n }\n\n private setMidnight(date: Date): Date {\n const d = new Date(date);\n d.setHours(0, 0, 0, 0);\n return d;\n }\n\n // ControlValueAccessor\n writeValue(obj: any): void {\n if (this.mode() === 'single') {\n this.singleValue = obj instanceof Date ? obj : null;\n if (this.singleValue) this.currentViewDate.set(new Date(this.singleValue));\n } else {\n this.rangeValue = obj || { start: null, end: null };\n if (this.rangeValue.start) this.currentViewDate.set(new Date(this.rangeValue.start));\n }\n }\n\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.update(() =>isDisabled);\n }\n\n @HostListener('document:click', ['$event'])\n onClickOutside(event: Event) {\n if (!this.elementRef.nativeElement.contains(event.target)) {\n this.isOpen.set(false);\n this.onTouched();\n }\n }\n}\n","<div class=\"tng-datepicker-container\" [class.focused]=\"isOpen()\" [class.has-value]=\"formattedValue\" [class.disabled]=\"disabled()\">\n <!-- Trigger Field (Reusing Input Style) -->\n <div class=\"tng-input-trigger\" (click)=\"toggleCalendar()\">\n <fieldset class=\"tng-fieldset\" aria-hidden=\"true\">\n <legend class=\"tng-legend\"><span>{{ label() }}</span></legend>\n </fieldset>\n <label class=\"tng-label\">{{ label() }}</label>\n <div class=\"tng-input-display\">\n {{ formattedValue || (isOpen() ? placeholder() : '') }}\n </div>\n <span class=\"material-icons tng-icon\">calendar_today</span>\n </div>\n\n <!-- Calendar Popup -->\n <div class=\"tng-calendar-popup\" *ngIf=\"isOpen()\">\n <div class=\"tng-calendar-header\">\n <button type=\"button\" class=\"nav-btn\" (click)=\"prevMonth($event)\">\n <span class=\"material-icons\">chevron_left</span>\n </button>\n <span class=\"current-month\">{{ currentMonthYear }}</span>\n <button type=\"button\" class=\"nav-btn\" (click)=\"nextMonth($event)\">\n <span class=\"material-icons\">chevron_right</span>\n </button>\n </div>\n\n <div class=\"tng-calendar-grid\">\n <div class=\"day-name\" *ngFor=\"let day of daysOfWeek\">{{ day }}</div>\n <div\n class=\"day-cell\"\n *ngFor=\"let date of calendarDays()\"\n [class.not-current-month]=\"!isCurrentMonth(date)\"\n [class.today]=\"isToday(date)\"\n [class.selected]=\"isSelected(date)\"\n [class.in-range]=\"isInRange(date)\"\n [class.range-start]=\"mode() === 'range' && isSameDay(date, rangeValue.start)\"\n [class.range-end]=\"mode() === 'range' && isSameDay(date, rangeValue.end)\"\n [class.disabled]=\"isDisabled(date)\"\n (click)=\"selectDate(date)\"\n >\n {{ date.getDate() }}\n </div>\n </div>\n </div>\n</div>\n","import { Component, Input, computed, signal, model, contentChild, TemplateRef, input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { TecnualInputComponent } from '../tng-input/tng-input.component';\n\nexport interface TableColumn {\n key: string;\n label: string;\n sortable?: boolean;\n width?: string;\n template?: TemplateRef<any>;\n}\n\n@Component({\n selector: 'tng-table',\n standalone: true,\n imports: [CommonModule, FormsModule, TecnualInputComponent],\n templateUrl: './tng-table.component.html',\n styleUrls: ['./tng-table.component.scss']\n})\nexport class TecnualTableComponent {\n data = input.required<any[]>();\n columns = input.required<TableColumn[]>();\n pageSize = input<number>(10);\n filterable = input<boolean>(true);\n \n // State\n searchQuery = signal('');\n currentPage = signal(1);\n sortColumn = signal<string | null>(null);\n sortDirection = signal<'asc' | 'desc'>('asc');\n\n // Computed\n filteredData = computed(() => {\n const query = this.searchQuery().toLowerCase();\n const rawData = this.data();\n \n if (!query) return rawData;\n\n return rawData.filter(row => {\n return Object.values(row).some(val => \n String(val).toLowerCase().includes(query)\n );\n });\n });\n\n sortedData = computed(() => {\n const data = [...this.filteredData()];\n const column = this.sortColumn();\n const direction = this.sortDirection();\n\n if (!column) return data;\n\n return data.sort((a, b) => {\n const valA = a[column];\n const valB = b[column];\n\n if (valA < valB) return direction === 'asc' ? -1 : 1;\n if (valA > valB) return direction === 'asc' ? 1 : -1;\n return 0;\n });\n });\n\n paginatedData = computed(() => {\n const data = this.sortedData();\n const size = this.pageSize();\n const page = this.currentPage();\n const startIndex = (page - 1) * size;\n \n return data.slice(startIndex, startIndex + size);\n });\n\n totalPages = computed(() => {\n return Math.ceil(this.filteredData().length / this.pageSize());\n });\n\n // Actions\n onSort(column: TableColumn) {\n if (!column.sortable) return;\n\n if (this.sortColumn() === column.key) {\n // Toggle direction\n this.sortDirection.update(d => d === 'asc' ? 'desc' : 'asc');\n } else {\n // New column\n this.sortColumn.set(column.key);\n this.sortDirection.set('asc');\n }\n }\n\n setPage(page: number) {\n if (page >= 1 && page <= this.totalPages()) {\n this.currentPage.set(page);\n }\n }\n\n onSearch(query: string) {\n this.searchQuery.set(query);\n this.currentPage.set(1); // Reset to first page on search\n }\n\n onSearchInput(event: Event) {\n const input = event.target as HTMLInputElement;\n this.onSearch(input.value);\n }\n}\n","<div class=\"tng-table-container\">\n <!-- Toolbar -->\n <div class=\"tng-table-toolbar\" *ngIf=\"filterable()\">\n <div class=\"tng-table-search\">\n <tng-input\n [placeholder]=\"'Search...'\"\n (input)=\"onSearchInput($event)\"\n ></tng-input>\n </div>\n </div>\n\n <!-- Table -->\n <div class=\"tng-table-wrapper\">\n <table class=\"tng-table\">\n <thead>\n <tr>\n <th \n *ngFor=\"let col of columns()\"\n [style.width]=\"col.width\"\n [class.sortable]=\"col.sortable\"\n (click)=\"onSort(col)\"\n >\n <div class=\"th-content\">\n {{ col.label }}\n <span class=\"sort-indicator\" *ngIf=\"sortColumn() === col.key\">\n {{ sortDirection() === 'asc' ? '↑' : '↓' }}\n </span>\n </div>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of paginatedData()\">\n <td *ngFor=\"let col of columns()\">\n <ng-container *ngIf=\"col.template; else defaultCell\">\n <ng-container *ngTemplateOutlet=\"col.template; context: { $implicit: row[col.key], row: row }\"></ng-container>\n </ng-container>\n <ng-template #defaultCell>\n {{ row[col.key] }}\n </ng-template>\n </td>\n </tr>\n <tr *ngIf=\"paginatedData().length === 0\" class=\"no-data-row\">\n <td [attr.colspan]=\"columns().length\">\n No data found\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <!-- Pagination -->\n <div class=\"tng-table-pagination\" *ngIf=\"totalPages() > 1\">\n <div class=\"pagination-info\">\n Page {{ currentPage() }} of {{ totalPages() }}\n </div>\n <div class=\"pagination-controls\">\n <button \n class=\"tng-btn-icon\" \n [disabled]=\"currentPage() === 1\"\n (click)=\"setPage(currentPage() - 1)\"\n >\n ‹\n </button>\n \n <ng-container *ngFor=\"let page of [].constructor(totalPages()); let i = index\">\n <!-- Show limited pages logic could go here, for now simple list -->\n <button \n *ngIf=\"i + 1 === currentPage() || i + 1 === 1 || i + 1 === totalPages() || (i + 1 >= currentPage() - 1 && i + 1 <= currentPage() + 1)\"\n class=\"tng-btn-page\"\n [class.active]=\"currentPage() === i + 1\"\n (click)=\"setPage(i + 1)\"\n >\n {{ i + 1 }}\n </button>\n <span *ngIf=\"(i + 1 === 2 && currentPage() > 4) || (i + 1 === totalPages() - 1 && currentPage() < totalPages() - 3)\" class=\"pagination-dots\">...</span>\n </ng-container>\n\n <button \n class=\"tng-btn-icon\" \n [disabled]=\"currentPage() === totalPages()\"\n (click)=\"setPage(currentPage() + 1)\"\n >\n ›\n </button>\n </div>\n </div>\n</div>\n","import { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\n\nexport type TngToolbarPosition = 'top' | 'bottom' | 'static';\nexport type TngToolbarPositionType = 'static' | 'relative' | 'absolute' | 'fixed';\nexport type TngToolbarColor = 'default' | 'primary' | 'secondary';\n\n@Component({\n selector: 'tng-toolbar',\n standalone: true,\n imports: [],\n templateUrl: './tng-toolbar.component.html',\n styleUrl: './tng-toolbar.component.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'tng-toolbar',\n '[class.tng-toolbar--top]': 'position() === \"top\"',\n '[class.tng-toolbar--bottom]': 'position() === \"bottom\"',\n '[class.tng-toolbar--fixed]': 'positionType() === \"fixed\"',\n '[class.tng-toolbar--absolute]': 'positionType() === \"absolute\"',\n '[class.tng-toolbar--relative]': 'positionType() === \"relative\"',\n '[class.tng-toolbar--static]': 'positionType() === \"static\"',\n '[class.tng-toolbar--primary]': 'color() === \"primary\"',\n '[class.tng-toolbar--secondary]': 'color() === \"secondary\"',\n '[class.tng-toolbar--elevated]': 'elevation()',\n }\n})\nexport class TngToolbarComponent {\n position = input<TngToolbarPosition>('static');\n positionType = input<TngToolbarPositionType>('fixed');\n color = input<TngToolbarColor>('default');\n elevation = input(true);\n}\n","<div class=\"tng-toolbar__container\">\n <div class=\"tng-toolbar__section tng-toolbar__section--left\">\n <ng-content select=\"[toolbar-left]\"></ng-content>\n </div>\n\n <div class=\"tng-toolbar__section tng-toolbar__section--center\">\n <ng-content select=\"[toolbar-center]\"></ng-content>\n <ng-content></ng-content>\n </div>\n\n <div class=\"tng-toolbar__section tng-toolbar__section--right\">\n <ng-content select=\"[toolbar-right]\"></ng-content>\n </div>\n</div>\n","import { Injectable, signal, effect } from '@angular/core';\n\nexport type ThemeName = 'light' | 'dark' | 'ocean' | 'forest' | 'sunset' | 'royal' | 'monochrome';\n\nexport interface Theme {\n name: ThemeName;\n displayName: string;\n description: string;\n primaryColor: string;\n isDark: boolean;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ThemeService {\n private readonly STORAGE_KEY = 'tng-theme';\n \n currentTheme = signal<ThemeName>(this.loadTheme());\n \n readonly themes: Theme[] = [\n {\n name: 'light',\n displayName: 'Light',\n description: 'Clean and bright',\n primaryColor: '#3f51b5',\n isDark: false\n },\n {\n name: 'dark',\n displayName: 'Dark',\n description: 'Easy on the eyes',\n primaryColor: '#7986cb',\n isDark: true\n },\n {\n name: 'ocean',\n displayName: 'Ocean',\n description: 'Deep blue waters',\n primaryColor: '#0288d1',\n isDark: false\n },\n {\n name: 'forest',\n displayName: 'Forest',\n description: 'Natural greens',\n primaryColor: '#388e3c',\n isDark: false\n },\n {\n name: 'sunset',\n displayName: 'Sunset',\n description: 'Warm oranges',\n primaryColor: '#f57c00',\n isDark: false\n },\n {\n name: 'royal',\n displayName: 'Royal',\n description: 'Regal purples',\n primaryColor: '#7b1fa2',\n isDark: false\n },\n {\n name: 'monochrome',\n displayName: 'Monochrome',\n description: 'Elegant grayscale',\n primaryColor: '#616161',\n isDark: false\n }\n ];\n\n constructor() {\n // Apply initial theme immediately\n const initialTheme = this.loadTheme();\n this.applyTheme(initialTheme);\n \n // Watch for theme changes\n effect(() => {\n const theme = this.currentTheme();\n console.log('Theme changed to:', theme);\n this.applyTheme(theme);\n });\n }\n\n setTheme(theme: ThemeName) {\n this.currentTheme.set(theme);\n this.saveTheme(theme);\n }\n\n private applyTheme(theme: ThemeName) {\n console.log('Applying theme:', theme);\n \n // Remove all theme classes\n this.themes.forEach(t => {\n document.body.classList.remove(`${t.name}-theme`);\n });\n \n // Add new theme class\n document.body.classList.add(`${theme}-theme`);\n \n // Set data attribute for CSS\n document.body.setAttribute('data-theme', theme);\n \n console.log('Body classes:', document.body.className);\n console.log('Data theme:', document.body.getAttribute('data-theme'));\n }\n\n private loadTheme(): ThemeName {\n const saved = localStorage.getItem(this.STORAGE_KEY);\n return (saved as ThemeName) || 'light';\n }\n\n private saveTheme(theme: ThemeName) {\n localStorage.setItem(this.STORAGE_KEY, theme);\n }\n\n getThemeInfo(name: ThemeName): Theme | undefined {\n return this.themes.find(t => t.name === name);\n }\n}\n","/*\n * Public API Surface of tecnualng\n */\n\nexport * from './lib/tng-button/tng-button';\nexport * from './lib/tng-card/tng-card.component';\nexport * from './lib/tng-input/tng-input.component';\nexport * from './lib/tng-datepicker/tng-datepicker.component';\nexport * from './lib/tng-table/tng-table.component';\nexport * from './lib/tng-toolbar/tng-toolbar.component';\nexport * from './lib/utils/theme.service';\n\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAwBa,SAAS,CAAA;AACpB,IAAA,OAAO,GAAG,KAAK,CAAmE,IAAI,mDAAC;AACvF,IAAA,OAAO,GAAG,KAAK,CAAC,KAAK,mDAAC;AACtB,IAAA,IAAI,GAAG,KAAK,CAAC,KAAK,gDAAC;AACnB,IAAA,MAAM,GAAG,KAAK,CAAC,IAAI,kDAAC;AACpB,IAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,gDAAC;AACjC,IAAA,YAAY,GAAG,KAAK,CAAmB,MAAM,wDAAC;AAE9C,IAAA,YAAY,CAAC,KAAU,EAAA;AACrB,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAAE;AAEpB,QAAA,MAAM,MAAM,GAAG,KAAK,CAAC,aAA4B;QACjD,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC;AAC7C,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,YAAY,CAAC;AAClE,QAAA,MAAM,MAAM,GAAG,QAAQ,GAAG,CAAC;AAE3B,Q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,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cAFX,MAAM,EAAA,CAAA;;2FAEP,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACdD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tecnualng",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^21.0.0",
|
|
6
|
+
"@angular/core": "^21.0.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"sass": "./_index.scss",
|
|
15
|
+
"types": "./types/tecnualng.d.ts",
|
|
16
|
+
"default": "./fesm2022/tecnualng.mjs"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": {
|
|
19
|
+
"default": "./package.json"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"module": "fesm2022/tecnualng.mjs",
|
|
23
|
+
"typings": "types/tecnualng.d.ts"
|
|
24
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
|
|
5
|
+
type TngButtonAppearance = 'text' | 'filled' | 'elevated' | 'outlined' | 'tonal';
|
|
6
|
+
declare class TngButton {
|
|
7
|
+
variant: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "error" | null>;
|
|
8
|
+
rounded: _angular_core.InputSignal<boolean>;
|
|
9
|
+
soft: _angular_core.InputSignal<boolean>;
|
|
10
|
+
ripple: _angular_core.InputSignal<boolean>;
|
|
11
|
+
icon: _angular_core.InputSignal<string | null>;
|
|
12
|
+
iconPosition: _angular_core.InputSignal<"left" | "right">;
|
|
13
|
+
createRipple(event: any): void;
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TngButton, never>;
|
|
15
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TngButton, "button[tngButton], a[tngButton]", ["tngButton"], { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "soft": { "alias": "soft"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type TngCardVariant = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error';
|
|
19
|
+
declare class TngCardComponent {
|
|
20
|
+
variant: _angular_core.InputSignal<TngCardVariant>;
|
|
21
|
+
title: _angular_core.InputSignal<string | null>;
|
|
22
|
+
subtitle: _angular_core.InputSignal<string | null>;
|
|
23
|
+
elevated: _angular_core.InputSignal<boolean>;
|
|
24
|
+
outlined: _angular_core.InputSignal<boolean>;
|
|
25
|
+
image: _angular_core.InputSignal<string | null>;
|
|
26
|
+
imageAlt: _angular_core.InputSignal<string>;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TngCardComponent, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TngCardComponent, "tng-card", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "elevated": { "alias": "elevated"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "imageAlt": { "alias": "imageAlt"; "required": false; "isSignal": true; }; }, {}, never, ["[card-header]", "*", "[card-footer]"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class TecnualInputComponent implements ControlValueAccessor {
|
|
32
|
+
label: _angular_core.InputSignal<string>;
|
|
33
|
+
type: _angular_core.InputSignal<"number" | "text" | "password" | "email" | "tel">;
|
|
34
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
35
|
+
required: _angular_core.InputSignal<boolean>;
|
|
36
|
+
disabled: _angular_core.ModelSignal<boolean>;
|
|
37
|
+
id: _angular_core.InputSignal<string>;
|
|
38
|
+
value: any;
|
|
39
|
+
isFocused: boolean;
|
|
40
|
+
onChange: any;
|
|
41
|
+
onTouched: any;
|
|
42
|
+
get hasValue(): boolean;
|
|
43
|
+
onInput(event: Event): void;
|
|
44
|
+
onFocus(): void;
|
|
45
|
+
onBlur(): void;
|
|
46
|
+
writeValue(value: any): void;
|
|
47
|
+
registerOnChange(fn: any): void;
|
|
48
|
+
registerOnTouched(fn: any): void;
|
|
49
|
+
setDisabledState(isDisabled: boolean): void;
|
|
50
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TecnualInputComponent, never>;
|
|
51
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TecnualInputComponent, "tng-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; }, never, never, true, never>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
interface DateRange {
|
|
55
|
+
start: Date | null;
|
|
56
|
+
end: Date | null;
|
|
57
|
+
}
|
|
58
|
+
declare class TecnualDatepickerComponent implements ControlValueAccessor {
|
|
59
|
+
private elementRef;
|
|
60
|
+
label: _angular_core.InputSignal<string>;
|
|
61
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
62
|
+
mode: _angular_core.InputSignal<"single" | "range">;
|
|
63
|
+
minDate: _angular_core.InputSignal<Date | null>;
|
|
64
|
+
maxDate: _angular_core.InputSignal<Date | null>;
|
|
65
|
+
disabled: _angular_core.ModelSignal<boolean>;
|
|
66
|
+
id: _angular_core.InputSignal<string>;
|
|
67
|
+
isOpen: _angular_core.WritableSignal<boolean>;
|
|
68
|
+
currentViewDate: _angular_core.WritableSignal<Date>;
|
|
69
|
+
singleValue: Date | null;
|
|
70
|
+
rangeValue: DateRange;
|
|
71
|
+
onChange: any;
|
|
72
|
+
onTouched: any;
|
|
73
|
+
constructor(elementRef: ElementRef);
|
|
74
|
+
readonly daysOfWeek: string[];
|
|
75
|
+
calendarDays: _angular_core.Signal<Date[]>;
|
|
76
|
+
get formattedValue(): string;
|
|
77
|
+
get currentMonthYear(): string;
|
|
78
|
+
toggleCalendar(): void;
|
|
79
|
+
prevMonth(e: Event): void;
|
|
80
|
+
nextMonth(e: Event): void;
|
|
81
|
+
selectDate(date: Date): void;
|
|
82
|
+
isSelected(date: Date): boolean;
|
|
83
|
+
isInRange(date: Date): boolean;
|
|
84
|
+
isSameDay(d1: Date | null, d2: Date | null): boolean;
|
|
85
|
+
isToday(date: Date): boolean;
|
|
86
|
+
isDisabled(date: Date): boolean;
|
|
87
|
+
isCurrentMonth(date: Date): boolean;
|
|
88
|
+
private setMidnight;
|
|
89
|
+
writeValue(obj: any): void;
|
|
90
|
+
registerOnChange(fn: any): void;
|
|
91
|
+
registerOnTouched(fn: any): void;
|
|
92
|
+
setDisabledState(isDisabled: boolean): void;
|
|
93
|
+
onClickOutside(event: Event): void;
|
|
94
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TecnualDatepickerComponent, never>;
|
|
95
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TecnualDatepickerComponent, "tng-datepicker", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; }, never, never, true, never>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface TableColumn {
|
|
99
|
+
key: string;
|
|
100
|
+
label: string;
|
|
101
|
+
sortable?: boolean;
|
|
102
|
+
width?: string;
|
|
103
|
+
template?: TemplateRef<any>;
|
|
104
|
+
}
|
|
105
|
+
declare class TecnualTableComponent {
|
|
106
|
+
data: _angular_core.InputSignal<any[]>;
|
|
107
|
+
columns: _angular_core.InputSignal<TableColumn[]>;
|
|
108
|
+
pageSize: _angular_core.InputSignal<number>;
|
|
109
|
+
filterable: _angular_core.InputSignal<boolean>;
|
|
110
|
+
searchQuery: _angular_core.WritableSignal<string>;
|
|
111
|
+
currentPage: _angular_core.WritableSignal<number>;
|
|
112
|
+
sortColumn: _angular_core.WritableSignal<string | null>;
|
|
113
|
+
sortDirection: _angular_core.WritableSignal<"asc" | "desc">;
|
|
114
|
+
filteredData: _angular_core.Signal<any[]>;
|
|
115
|
+
sortedData: _angular_core.Signal<any[]>;
|
|
116
|
+
paginatedData: _angular_core.Signal<any[]>;
|
|
117
|
+
totalPages: _angular_core.Signal<number>;
|
|
118
|
+
onSort(column: TableColumn): void;
|
|
119
|
+
setPage(page: number): void;
|
|
120
|
+
onSearch(query: string): void;
|
|
121
|
+
onSearchInput(event: Event): void;
|
|
122
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TecnualTableComponent, never>;
|
|
123
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TecnualTableComponent, "tng-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
type TngToolbarPosition = 'top' | 'bottom' | 'static';
|
|
127
|
+
type TngToolbarPositionType = 'static' | 'relative' | 'absolute' | 'fixed';
|
|
128
|
+
type TngToolbarColor = 'default' | 'primary' | 'secondary';
|
|
129
|
+
declare class TngToolbarComponent {
|
|
130
|
+
position: _angular_core.InputSignal<TngToolbarPosition>;
|
|
131
|
+
positionType: _angular_core.InputSignal<TngToolbarPositionType>;
|
|
132
|
+
color: _angular_core.InputSignal<TngToolbarColor>;
|
|
133
|
+
elevation: _angular_core.InputSignal<boolean>;
|
|
134
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TngToolbarComponent, never>;
|
|
135
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TngToolbarComponent, "tng-toolbar", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "positionType": { "alias": "positionType"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "elevation": { "alias": "elevation"; "required": false; "isSignal": true; }; }, {}, never, ["[toolbar-left]", "[toolbar-center]", "*", "[toolbar-right]"], true, never>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
type ThemeName = 'light' | 'dark' | 'ocean' | 'forest' | 'sunset' | 'royal' | 'monochrome';
|
|
139
|
+
interface Theme {
|
|
140
|
+
name: ThemeName;
|
|
141
|
+
displayName: string;
|
|
142
|
+
description: string;
|
|
143
|
+
primaryColor: string;
|
|
144
|
+
isDark: boolean;
|
|
145
|
+
}
|
|
146
|
+
declare class ThemeService {
|
|
147
|
+
private readonly STORAGE_KEY;
|
|
148
|
+
currentTheme: _angular_core.WritableSignal<ThemeName>;
|
|
149
|
+
readonly themes: Theme[];
|
|
150
|
+
constructor();
|
|
151
|
+
setTheme(theme: ThemeName): void;
|
|
152
|
+
private applyTheme;
|
|
153
|
+
private loadTheme;
|
|
154
|
+
private saveTheme;
|
|
155
|
+
getThemeInfo(name: ThemeName): Theme | undefined;
|
|
156
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
157
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export { TecnualDatepickerComponent, TecnualInputComponent, TecnualTableComponent, ThemeService, TngButton, TngCardComponent, TngToolbarComponent };
|
|
161
|
+
export type { DateRange, TableColumn, Theme, ThemeName, TngButtonAppearance, TngCardVariant, TngToolbarColor, TngToolbarPosition, TngToolbarPositionType };
|