@wawjs/ngx-prime 22.0.1 → 22.0.2
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/fesm2022/wawjs-ngx-prime-button.mjs +10 -3
- package/fesm2022/wawjs-ngx-prime-button.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-buylicense.mjs +60 -0
- package/fesm2022/wawjs-ngx-prime-buylicense.mjs.map +1 -0
- package/fesm2022/wawjs-ngx-prime-checkbox.mjs +5 -1
- package/fesm2022/wawjs-ngx-prime-checkbox.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-colorpicker.mjs +10 -3
- package/fesm2022/wawjs-ngx-prime-colorpicker.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-config.mjs +109 -6
- package/fesm2022/wawjs-ngx-prime-config.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-confirmpopup.mjs +11 -0
- package/fesm2022/wawjs-ngx-prime-confirmpopup.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-fileupload.mjs +10 -3
- package/fesm2022/wawjs-ngx-prime-fileupload.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-icon.mjs +107 -0
- package/fesm2022/wawjs-ngx-prime-icon.mjs.map +1 -0
- package/fesm2022/wawjs-ngx-prime-inputmask.mjs +5 -1
- package/fesm2022/wawjs-ngx-prime-inputmask.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-inputnumber.mjs +5 -1
- package/fesm2022/wawjs-ngx-prime-inputnumber.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-panelmenu.mjs +2 -1
- package/fesm2022/wawjs-ngx-prime-panelmenu.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-password.mjs +10 -3
- package/fesm2022/wawjs-ngx-prime-password.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-radiobutton.mjs +10 -3
- package/fesm2022/wawjs-ngx-prime-radiobutton.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-rating.mjs +14 -3
- package/fesm2022/wawjs-ngx-prime-rating.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-selectbutton.mjs +10 -3
- package/fesm2022/wawjs-ngx-prime-selectbutton.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-slider.mjs +10 -3
- package/fesm2022/wawjs-ngx-prime-slider.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-tabs.mjs +3 -4
- package/fesm2022/wawjs-ngx-prime-tabs.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-togglebutton.mjs +10 -3
- package/fesm2022/wawjs-ngx-prime-togglebutton.mjs.map +1 -1
- package/fesm2022/wawjs-ngx-prime-toggleswitch.mjs +10 -3
- package/fesm2022/wawjs-ngx-prime-toggleswitch.mjs.map +1 -1
- package/package.json +9 -1
- package/types/wawjs-ngx-prime-button.d.ts +1 -0
- package/types/wawjs-ngx-prime-buylicense.d.ts +23 -0
- package/types/wawjs-ngx-prime-colorpicker.d.ts +1 -0
- package/types/wawjs-ngx-prime-config.d.ts +64 -2
- package/types/wawjs-ngx-prime-fileupload.d.ts +1 -0
- package/types/wawjs-ngx-prime-icon.d.ts +33 -0
- package/types/wawjs-ngx-prime-password.d.ts +1 -0
- package/types/wawjs-ngx-prime-radiobutton.d.ts +1 -0
- package/types/wawjs-ngx-prime-rating.d.ts +5 -0
- package/types/wawjs-ngx-prime-selectbutton.d.ts +1 -0
- package/types/wawjs-ngx-prime-slider.d.ts +1 -0
- package/types/wawjs-ngx-prime-togglebutton.d.ts +1 -0
- package/types/wawjs-ngx-prime-toggleswitch.d.ts +1 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, output, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
+
import { RouterLink, RouterLinkActive } from '@angular/router';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A PrimeIcons icon paired with an optional label — either as a router link
|
|
7
|
+
* or a clickable action, with a router-active underline indicator. Fills
|
|
8
|
+
* the gap left by no ngx-prime component wrapping "icon + label + nav
|
|
9
|
+
* behavior" into one tag (unlike e.g. `p-button`).
|
|
10
|
+
*
|
|
11
|
+
* @group Components
|
|
12
|
+
*/
|
|
13
|
+
class Icon {
|
|
14
|
+
/** PrimeIcons suffix, e.g. `'cog'` renders `pi pi-cog`. */
|
|
15
|
+
icon = input.required(/* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
17
|
+
/** Visible label; when empty, renders icon-only (uses `ariaLabel` for accessibility instead). */
|
|
18
|
+
name = input('', /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
20
|
+
/** Used when `name` is empty (icon-only). */
|
|
21
|
+
ariaLabel = input('', /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
23
|
+
/** If empty, renders as a clickable action and emits `action` instead of navigating. */
|
|
24
|
+
routerLink = input('', /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "routerLink" }] : /* istanbul ignore next */ []));
|
|
26
|
+
action = output();
|
|
27
|
+
hasRouterLink = computed(() => this.routerLink().trim().length > 0, /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "hasRouterLink" }] : /* istanbul ignore next */ []));
|
|
29
|
+
onAction() {
|
|
30
|
+
this.action.emit();
|
|
31
|
+
}
|
|
32
|
+
onKeydown(event) {
|
|
33
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
this.onAction();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: Icon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: Icon, isStandalone: true, selector: "p-icon", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { action: "action" }, ngImport: i0, template: `
|
|
40
|
+
@if (hasRouterLink()) {
|
|
41
|
+
<a routerLinkActive="p-icon-active" [class.p-icon-icon-only]="!name()" [attr.aria-label]="!name() ? ariaLabel() || icon() : null" [routerLink]="routerLink()" class="p-icon">
|
|
42
|
+
<span class="p-icon-wrap">
|
|
43
|
+
<i class="pi pi-{{ icon() }} p-icon-glyph"></i>
|
|
44
|
+
</span>
|
|
45
|
+
|
|
46
|
+
@if (name()) {
|
|
47
|
+
<span class="p-icon-name">{{ name() }}</span>
|
|
48
|
+
}
|
|
49
|
+
</a>
|
|
50
|
+
} @else {
|
|
51
|
+
<span [class.p-icon-icon-only]="!name()" class="p-icon" role="button" tabindex="0" [attr.aria-label]="!name() ? ariaLabel() || icon() : null" (click)="onAction()" (keydown)="onKeydown($event)">
|
|
52
|
+
<span class="p-icon-wrap">
|
|
53
|
+
<i class="pi pi-{{ icon() }} p-icon-glyph"></i>
|
|
54
|
+
</span>
|
|
55
|
+
|
|
56
|
+
@if (name()) {
|
|
57
|
+
<span class="p-icon-name">{{ name() }}</span>
|
|
58
|
+
}
|
|
59
|
+
</span>
|
|
60
|
+
}
|
|
61
|
+
`, isInline: true, styles: [".p-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;white-space:nowrap;cursor:pointer;gap:var(--p-icon-gap, .5rem);padding:var(--p-icon-padding, .5rem .75rem);border-radius:var(--p-content-border-radius, 6px);text-decoration:none;color:var(--p-text-muted-color);transition:color .2s}.p-icon:focus-visible{outline:none;box-shadow:var(--p-focus-ring-shadow, 0 0 0 2px var(--p-primary-color, #3b82f6))}.p-icon-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;line-height:1}.p-icon-glyph{font-size:var(--p-icon-size, 1.375rem);line-height:1}.p-icon-name{font-size:.9rem;color:var(--p-text-color);line-height:1}.p-icon:hover,.p-icon:hover .p-icon-glyph,.p-icon:hover .p-icon-name{color:var(--p-primary-color)}.p-icon-active:after{content:\"\";position:absolute;left:50%;bottom:0;width:100%;height:2px;background:var(--p-primary-color);border-radius:999px;transform:translate(-50%)}.p-icon-icon-only{gap:0}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
62
|
+
}
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: Icon, decorators: [{
|
|
64
|
+
type: Component,
|
|
65
|
+
args: [{ selector: 'p-icon', standalone: true, imports: [RouterLink, RouterLinkActive], template: `
|
|
66
|
+
@if (hasRouterLink()) {
|
|
67
|
+
<a routerLinkActive="p-icon-active" [class.p-icon-icon-only]="!name()" [attr.aria-label]="!name() ? ariaLabel() || icon() : null" [routerLink]="routerLink()" class="p-icon">
|
|
68
|
+
<span class="p-icon-wrap">
|
|
69
|
+
<i class="pi pi-{{ icon() }} p-icon-glyph"></i>
|
|
70
|
+
</span>
|
|
71
|
+
|
|
72
|
+
@if (name()) {
|
|
73
|
+
<span class="p-icon-name">{{ name() }}</span>
|
|
74
|
+
}
|
|
75
|
+
</a>
|
|
76
|
+
} @else {
|
|
77
|
+
<span [class.p-icon-icon-only]="!name()" class="p-icon" role="button" tabindex="0" [attr.aria-label]="!name() ? ariaLabel() || icon() : null" (click)="onAction()" (keydown)="onKeydown($event)">
|
|
78
|
+
<span class="p-icon-wrap">
|
|
79
|
+
<i class="pi pi-{{ icon() }} p-icon-glyph"></i>
|
|
80
|
+
</span>
|
|
81
|
+
|
|
82
|
+
@if (name()) {
|
|
83
|
+
<span class="p-icon-name">{{ name() }}</span>
|
|
84
|
+
}
|
|
85
|
+
</span>
|
|
86
|
+
}
|
|
87
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".p-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;white-space:nowrap;cursor:pointer;gap:var(--p-icon-gap, .5rem);padding:var(--p-icon-padding, .5rem .75rem);border-radius:var(--p-content-border-radius, 6px);text-decoration:none;color:var(--p-text-muted-color);transition:color .2s}.p-icon:focus-visible{outline:none;box-shadow:var(--p-focus-ring-shadow, 0 0 0 2px var(--p-primary-color, #3b82f6))}.p-icon-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;line-height:1}.p-icon-glyph{font-size:var(--p-icon-size, 1.375rem);line-height:1}.p-icon-name{font-size:.9rem;color:var(--p-text-color);line-height:1}.p-icon:hover,.p-icon:hover .p-icon-glyph,.p-icon:hover .p-icon-name{color:var(--p-primary-color)}.p-icon-active:after{content:\"\";position:absolute;left:50%;bottom:0;width:100%;height:2px;background:var(--p-primary-color);border-radius:999px;transform:translate(-50%)}.p-icon-icon-only{gap:0}\n"] }]
|
|
88
|
+
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], action: [{ type: i0.Output, args: ["action"] }] } });
|
|
89
|
+
class IconModule {
|
|
90
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: IconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
91
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.2", ngImport: i0, type: IconModule, imports: [Icon], exports: [Icon] });
|
|
92
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: IconModule });
|
|
93
|
+
}
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: IconModule, decorators: [{
|
|
95
|
+
type: NgModule,
|
|
96
|
+
args: [{
|
|
97
|
+
imports: [Icon],
|
|
98
|
+
exports: [Icon]
|
|
99
|
+
}]
|
|
100
|
+
}] });
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Generated bundle index. Do not edit.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
export { Icon, IconModule };
|
|
107
|
+
//# sourceMappingURL=wawjs-ngx-prime-icon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wawjs-ngx-prime-icon.mjs","sources":["../../src/icon/icon.ts","../../src/icon/wawjs-ngx-prime-icon.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, NgModule, ViewEncapsulation, computed, input, output } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * A PrimeIcons icon paired with an optional label — either as a router link\n * or a clickable action, with a router-active underline indicator. Fills\n * the gap left by no ngx-prime component wrapping \"icon + label + nav\n * behavior\" into one tag (unlike e.g. `p-button`).\n *\n * @group Components\n */\n@Component({\n selector: 'p-icon',\n standalone: true,\n imports: [RouterLink, RouterLinkActive],\n template: `\n @if (hasRouterLink()) {\n <a routerLinkActive=\"p-icon-active\" [class.p-icon-icon-only]=\"!name()\" [attr.aria-label]=\"!name() ? ariaLabel() || icon() : null\" [routerLink]=\"routerLink()\" class=\"p-icon\">\n <span class=\"p-icon-wrap\">\n <i class=\"pi pi-{{ icon() }} p-icon-glyph\"></i>\n </span>\n\n @if (name()) {\n <span class=\"p-icon-name\">{{ name() }}</span>\n }\n </a>\n } @else {\n <span [class.p-icon-icon-only]=\"!name()\" class=\"p-icon\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"!name() ? ariaLabel() || icon() : null\" (click)=\"onAction()\" (keydown)=\"onKeydown($event)\">\n <span class=\"p-icon-wrap\">\n <i class=\"pi pi-{{ icon() }} p-icon-glyph\"></i>\n </span>\n\n @if (name()) {\n <span class=\"p-icon-name\">{{ name() }}</span>\n }\n </span>\n }\n `,\n styles: `\n .p-icon {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n user-select: none;\n white-space: nowrap;\n cursor: pointer;\n gap: var(--p-icon-gap, 0.5rem);\n padding: var(--p-icon-padding, 0.5rem 0.75rem);\n border-radius: var(--p-content-border-radius, 6px);\n text-decoration: none;\n color: var(--p-text-muted-color);\n transition: color 0.2s;\n }\n\n .p-icon:focus-visible {\n outline: none;\n box-shadow: var(--p-focus-ring-shadow, 0 0 0 2px var(--p-primary-color, #3b82f6));\n }\n\n .p-icon-wrap {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n }\n\n .p-icon-glyph {\n font-size: var(--p-icon-size, 1.375rem);\n line-height: 1;\n }\n\n .p-icon-name {\n font-size: 0.9rem;\n color: var(--p-text-color);\n line-height: 1;\n }\n\n .p-icon:hover,\n .p-icon:hover .p-icon-glyph,\n .p-icon:hover .p-icon-name {\n color: var(--p-primary-color);\n }\n\n .p-icon-active::after {\n content: '';\n position: absolute;\n left: 50%;\n bottom: 0;\n width: 100%;\n height: 2px;\n background: var(--p-primary-color);\n border-radius: 999px;\n transform: translate(-50%);\n }\n\n .p-icon-icon-only {\n gap: 0;\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class Icon {\n /** PrimeIcons suffix, e.g. `'cog'` renders `pi pi-cog`. */\n icon = input.required<string>();\n /** Visible label; when empty, renders icon-only (uses `ariaLabel` for accessibility instead). */\n name = input('');\n /** Used when `name` is empty (icon-only). */\n ariaLabel = input('');\n /** If empty, renders as a clickable action and emits `action` instead of navigating. */\n routerLink = input('');\n\n action = output<void>();\n\n hasRouterLink = computed(() => this.routerLink().trim().length > 0);\n\n onAction(): void {\n this.action.emit();\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.onAction();\n }\n }\n}\n\n@NgModule({\n imports: [Icon],\n exports: [Icon]\n})\nexport class IconModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"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"}
|
|
@@ -2,7 +2,7 @@ export * from '@wawjs/ngx-prime/types/inputmask';
|
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
3
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, InjectionToken, inject, input, booleanAttribute, output, effect, Directive, forwardRef, computed, contentChildren, ViewChild, ContentChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
5
|
+
import { Injectable, InjectionToken, inject, input, booleanAttribute, output, effect, Directive, forwardRef, computed, contentChildren, isDevMode, ViewChild, ContentChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
7
|
import { getUserAgent, isClient } from '@wawjs/css-prime-utils';
|
|
8
8
|
import { PrimeTemplate, SharedModule } from '@wawjs/ngx-prime/api';
|
|
@@ -887,6 +887,10 @@ class InputMask extends BaseInput {
|
|
|
887
887
|
focused;
|
|
888
888
|
constructor() {
|
|
889
889
|
super();
|
|
890
|
+
if (isDevMode()) {
|
|
891
|
+
// eslint-disable-next-line no-console
|
|
892
|
+
console.warn('`<p-inputmask>` is deprecated and will be removed in a future major version. ' + 'Use a native `<input pInputMask>` instead.');
|
|
893
|
+
}
|
|
890
894
|
effect(() => {
|
|
891
895
|
const maskValue = this.mask();
|
|
892
896
|
if (maskValue) {
|