@seniorsistemas/angular-components 17.27.1-feature-sds-110-35ee9b4f → 17.27.1-fix-interactive-content-46e38731
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/button/lib/button/button.component.d.ts +1 -1
- package/checkbox/lib/checkbox/checkbox.component.d.ts +11 -13
- package/checkbox/public-api.d.ts +1 -4
- package/checkbox-list/index.d.ts +5 -0
- package/checkbox-list/lib/checkbox-list/checkbox-list.component.d.ts +21 -0
- package/checkbox-list/lib/checkbox-list/checkbox-list.module.d.ts +9 -0
- package/checkbox-list/lib/checkbox-list/models/checkbox-list-data.d.ts +5 -0
- package/checkbox-list/lib/checkbox-list/models/checkbox-list-state.d.ts +7 -0
- package/checkbox-list/package.json +3 -0
- package/checkbox-list/public-api.d.ts +4 -0
- package/dynamic-form/lib/dynamic-form/dynamic-form.module.d.ts +35 -36
- package/dynamic-form/lib/dynamic-form/form-field/configurations/fields/checkbox-field.d.ts +3 -3
- package/dynamic-form/lib/dynamic-form/form-field/configurations/fields/select-field.d.ts +2 -0
- package/fesm2022/seniorsistemas-angular-components-button.mjs +4 -2
- package/fesm2022/seniorsistemas-angular-components-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs +151 -0
- package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs.map +1 -0
- package/fesm2022/seniorsistemas-angular-components-checkbox.mjs +33 -110
- package/fesm2022/seniorsistemas-angular-components-checkbox.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs +19 -22
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-fieldset.mjs +7 -7
- package/fesm2022/seniorsistemas-angular-components-fieldset.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-interactive-content.mjs +65 -0
- package/fesm2022/seniorsistemas-angular-components-interactive-content.mjs.map +1 -0
- package/fesm2022/seniorsistemas-angular-components-paginator.mjs +145 -0
- package/fesm2022/seniorsistemas-angular-components-paginator.mjs.map +1 -0
- package/fesm2022/seniorsistemas-angular-components-select.mjs +741 -0
- package/fesm2022/seniorsistemas-angular-components-select.mjs.map +1 -0
- package/fesm2022/seniorsistemas-angular-components-star-rating.mjs +4 -5
- package/fesm2022/seniorsistemas-angular-components-star-rating.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-table-header.mjs +8 -8
- package/fesm2022/seniorsistemas-angular-components-table-header.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs +7 -7
- package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs.map +1 -1
- package/fieldset/lib/fieldset/fieldset.component.d.ts +1 -1
- package/fieldset/lib/fieldset/fieldset.module.d.ts +2 -2
- package/interactive-content/index.d.ts +5 -0
- package/interactive-content/lib/interactive-content/interactive-content.directive.d.ts +17 -0
- package/interactive-content/package.json +3 -0
- package/interactive-content/public-api.d.ts +1 -0
- package/package.json +35 -15
- package/paginator/index.d.ts +5 -0
- package/paginator/lib/models/paginator.models.d.ts +14 -0
- package/paginator/lib/paginator/paginator.component.d.ts +30 -0
- package/paginator/package.json +3 -0
- package/paginator/public-api.d.ts +2 -0
- package/table-header/lib/table-header/table-header-checkbox.component.d.ts +3 -3
- package/table-header/lib/table-header/table-header-checkox.module.d.ts +2 -2
- package/tailwind.css +263 -0
- package/thumbnails/lib/thumbnails/thumbnails.module.d.ts +2 -2
- package/accessibility-events/index.d.ts +0 -5
- package/accessibility-events/lib/accessibility-events/accessibility-events.module.d.ts +0 -8
- package/accessibility-events/lib/accessibility-events/directives/accessibility-event.directive.d.ts +0 -15
- package/accessibility-events/package.json +0 -3
- package/accessibility-events/public-api.d.ts +0 -2
- package/checkbox/lib/checkbox/checkbox.module.d.ts +0 -9
- package/checkbox/lib/checkbox/models/checkbox-data.d.ts +0 -5
- package/checkbox/lib/checkbox/models/checkbox-state.d.ts +0 -7
- package/fesm2022/seniorsistemas-angular-components-accessibility-events.mjs +0 -77
- package/fesm2022/seniorsistemas-angular-components-accessibility-events.mjs.map +0 -1
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Directive, Output, Input, NgModule } from '@angular/core';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
|
|
5
|
-
class AccessibilityEventDirective {
|
|
6
|
-
elementRef;
|
|
7
|
-
sActivatedContent = new EventEmitter();
|
|
8
|
-
tabindex = 0;
|
|
9
|
-
EVENT_LISTENER = (event) => {
|
|
10
|
-
if (event instanceof KeyboardEvent) {
|
|
11
|
-
const key = event.key;
|
|
12
|
-
const validKeys = ['Enter', ' '];
|
|
13
|
-
if (!validKeys.includes(key)) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
this.sActivatedContent.next(event);
|
|
18
|
-
};
|
|
19
|
-
constructor(elementRef) {
|
|
20
|
-
this.elementRef = elementRef;
|
|
21
|
-
this.setTabIndex();
|
|
22
|
-
this.checkAccessbilityEvents();
|
|
23
|
-
}
|
|
24
|
-
setTabIndex() {
|
|
25
|
-
const hasTabIndex = this.element.tabIndex >= 0;
|
|
26
|
-
if (hasTabIndex) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
this.element.tabIndex = this.tabindex;
|
|
30
|
-
}
|
|
31
|
-
checkAccessbilityEvents() {
|
|
32
|
-
this.element.addEventListener('click', this.EVENT_LISTENER);
|
|
33
|
-
this.element.addEventListener('keydown', this.EVENT_LISTENER);
|
|
34
|
-
}
|
|
35
|
-
get element() {
|
|
36
|
-
return this.elementRef.nativeElement;
|
|
37
|
-
}
|
|
38
|
-
ngOnDestroy() {
|
|
39
|
-
this.element.removeEventListener('click', this.EVENT_LISTENER);
|
|
40
|
-
this.element.removeEventListener('keydown', this.EVENT_LISTENER);
|
|
41
|
-
}
|
|
42
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AccessibilityEventDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
43
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: AccessibilityEventDirective, selector: "[sActivatedContent]", inputs: { tabindex: "tabindex" }, outputs: { sActivatedContent: "sActivatedContent" }, ngImport: i0 });
|
|
44
|
-
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AccessibilityEventDirective, decorators: [{
|
|
46
|
-
type: Directive,
|
|
47
|
-
args: [{
|
|
48
|
-
selector: '[sActivatedContent]'
|
|
49
|
-
}]
|
|
50
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { sActivatedContent: [{
|
|
51
|
-
type: Output
|
|
52
|
-
}], tabindex: [{
|
|
53
|
-
type: Input
|
|
54
|
-
}] } });
|
|
55
|
-
|
|
56
|
-
class AccessibilityEventsModule {
|
|
57
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AccessibilityEventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
58
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: AccessibilityEventsModule, declarations: [AccessibilityEventDirective], imports: [CommonModule], exports: [AccessibilityEventDirective] });
|
|
59
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AccessibilityEventsModule, imports: [CommonModule] });
|
|
60
|
-
}
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AccessibilityEventsModule, decorators: [{
|
|
62
|
-
type: NgModule,
|
|
63
|
-
args: [{
|
|
64
|
-
declarations: [AccessibilityEventDirective],
|
|
65
|
-
imports: [
|
|
66
|
-
CommonModule
|
|
67
|
-
],
|
|
68
|
-
exports: [AccessibilityEventDirective]
|
|
69
|
-
}]
|
|
70
|
-
}] });
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Generated bundle index. Do not edit.
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
export { AccessibilityEventDirective, AccessibilityEventsModule };
|
|
77
|
-
//# sourceMappingURL=seniorsistemas-angular-components-accessibility-events.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"seniorsistemas-angular-components-accessibility-events.mjs","sources":["../../projects/angular-components/accessibility-events/src/lib/accessibility-events/directives/accessibility-event.directive.ts","../../projects/angular-components/accessibility-events/src/lib/accessibility-events/accessibility-events.module.ts","../../projects/angular-components/accessibility-events/src/seniorsistemas-angular-components-accessibility-events.ts"],"sourcesContent":["import { Directive, ElementRef, EventEmitter, Input, OnDestroy, Output } from '@angular/core';\n\n@Directive({\n selector: '[sActivatedContent]'\n})\nexport class AccessibilityEventDirective implements OnDestroy {\n @Output() sActivatedContent = new EventEmitter<PointerEvent | KeyboardEvent>();\n @Input() tabindex = 0;\n private readonly EVENT_LISTENER = (event: Event) => {\n if (event instanceof KeyboardEvent) {\n const key = event.key;\n const validKeys = ['Enter', ' '];\n if (!validKeys.includes(key)) {\n return;\n }\n }\n this.sActivatedContent.next(event as PointerEvent | KeyboardEvent);\n }\n constructor(private readonly elementRef: ElementRef<HTMLElement>) {\n this.setTabIndex();\n this.checkAccessbilityEvents();\n }\n\n\n private setTabIndex() {\n const hasTabIndex = this.element.tabIndex >= 0;\n if (hasTabIndex) {\n return;\n }\n this.element.tabIndex = this.tabindex;\n }\n\n private checkAccessbilityEvents() {\n this.element.addEventListener('click', this.EVENT_LISTENER);\n this.element.addEventListener('keydown', this.EVENT_LISTENER);\n }\n\n private get element() {\n return this.elementRef.nativeElement;\n }\n\n ngOnDestroy(): void {\n this.element.removeEventListener('click', this.EVENT_LISTENER);\n this.element.removeEventListener('keydown', this.EVENT_LISTENER);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { AccessibilityEventDirective } from './directives/accessibility-event.directive';\n\n\n\n@NgModule({\n declarations: [AccessibilityEventDirective],\n imports: [\n CommonModule\n ],\n exports: [AccessibilityEventDirective]\n})\nexport class AccessibilityEventsModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAKa,2BAA2B,CAAA;AAaT,IAAA,UAAA,CAAA;AAZnB,IAAA,iBAAiB,GAAG,IAAI,YAAY,EAAgC,CAAC;IACtE,QAAQ,GAAG,CAAC,CAAC;AACL,IAAA,cAAc,GAAG,CAAC,KAAY,KAAI;AACjD,QAAA,IAAI,KAAK,YAAY,aAAa,EAAE;AAClC,YAAA,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;AACtB,YAAA,MAAM,SAAS,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;YACjC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC5B,OAAO;aACR;SACF;AACD,QAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAqC,CAAC,CAAC;AACrE,KAAC,CAAA;AACD,IAAA,WAAA,CAA6B,UAAmC,EAAA;QAAnC,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QAC9D,IAAI,CAAC,WAAW,EAAE,CAAC;QACnB,IAAI,CAAC,uBAAuB,EAAE,CAAC;KAChC;IAGO,WAAW,GAAA;QACjB,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,CAAC;QAC/C,IAAI,WAAW,EAAE;YACf,OAAO;SACR;QACD,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;KACvC;IAEO,uBAAuB,GAAA;QAC7B,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO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