@acorex/components 5.3.4 → 5.4.0
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/esm2020/lib/base/components.class.mjs +8 -1
- package/esm2020/lib/color-palette/color-palette-input.component.mjs +17 -27
- package/esm2020/lib/color-palette/color-palette-preview.component.mjs +14 -11
- package/esm2020/lib/color-palette/color-palette-swatches.component.mjs +11 -10
- package/esm2020/lib/color-palette/color-palette.class.mjs +10 -0
- package/esm2020/lib/color-palette/color-palette.component.mjs +34 -6
- package/esm2020/lib/color-picker/color-picker.component.mjs +8 -10
- package/fesm2015/acorex-components.mjs +378 -347
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +375 -344
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/base/components.class.d.ts +8 -0
- package/lib/color-palette/color-palette-input.component.d.ts +3 -4
- package/lib/color-palette/color-palette-preview.component.d.ts +3 -3
- package/lib/color-palette/color-palette-swatches.component.d.ts +2 -2
- package/lib/color-palette/color-palette.class.d.ts +12 -0
- package/lib/color-palette/color-palette.component.d.ts +12 -3
- package/lib/color-picker/color-picker.component.d.ts +11 -2
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { AXValueChangedEvent } from "./events.class";
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
4
|
export declare abstract class AXClosbaleComponent {
|
|
3
5
|
abstract close(): void;
|
|
@@ -9,3 +11,9 @@ export declare abstract class AXSearchableComponent {
|
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXSearchableComponent, never>;
|
|
10
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXSearchableComponent>;
|
|
11
13
|
}
|
|
14
|
+
export declare abstract class AXValuableComponent {
|
|
15
|
+
abstract onValueChanged: EventEmitter<AXValueChangedEvent<any>>;
|
|
16
|
+
abstract value: any;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXValuableComponent, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXValuableComponent>;
|
|
19
|
+
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
2
|
import { AXBaseComponent, AXClickEvent, AXValueChangedEvent } from '../base';
|
|
3
|
-
import {
|
|
3
|
+
import { AXColorComponent } from './color-palette.class';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AXColorPaletteInputComponent extends AXBaseComponent {
|
|
6
|
-
|
|
6
|
+
_parent?: AXColorComponent;
|
|
7
7
|
_rgba: any;
|
|
8
8
|
_hex: string;
|
|
9
|
-
|
|
10
|
-
constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef, _parent?: AXColorPalleteComponent);
|
|
9
|
+
constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef, _parent?: AXColorComponent);
|
|
11
10
|
_handleChangeInputMode(e: AXClickEvent): void;
|
|
12
11
|
_handleRGBAValueChanged(e: AXValueChangedEvent<number>): void;
|
|
13
12
|
_handleHEXAValueChanged(e: AXValueChangedEvent<string>): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
2
|
import { AXBaseComponent } from '../base';
|
|
3
|
-
import {
|
|
3
|
+
import { AXColorComponent } from './color-palette.class';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AXColorPalettePreviewComponent extends AXBaseComponent {
|
|
6
6
|
private _parent?;
|
|
7
|
-
|
|
8
|
-
constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef, _parent?:
|
|
7
|
+
_colorCode: string;
|
|
8
|
+
constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef, _parent?: AXColorComponent);
|
|
9
9
|
ngOnInit(): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXColorPalettePreviewComponent, [null, null, { optional: true; }]>;
|
|
11
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXColorPalettePreviewComponent, "ax-color-palette-preview", never, {}, {}, never, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
2
|
import { AXBaseComponent } from '../base';
|
|
3
|
-
import {
|
|
3
|
+
import { AXColorComponent } from './color-palette.class';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AXColorPaletteSwatchesComponent extends AXBaseComponent {
|
|
6
6
|
private _parent?;
|
|
@@ -8,7 +8,7 @@ export declare class AXColorPaletteSwatchesComponent extends AXBaseComponent {
|
|
|
8
8
|
colors: {
|
|
9
9
|
code: string;
|
|
10
10
|
}[];
|
|
11
|
-
constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef, _parent?:
|
|
11
|
+
constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef, _parent?: AXColorComponent);
|
|
12
12
|
_handleClick(e: MouseEvent, color: any): void;
|
|
13
13
|
private _defaultPalette;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXColorPaletteSwatchesComponent, [null, null, { optional: true; }]>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import { AXColorMode } from "@acorex/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class AXColorComponent {
|
|
5
|
+
abstract _onInternalColorChanged$: Subject<{
|
|
6
|
+
color: any;
|
|
7
|
+
mode: AXColorMode;
|
|
8
|
+
}>;
|
|
9
|
+
abstract mode: AXColorMode;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXColorComponent, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXColorComponent>;
|
|
12
|
+
}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AXColorMode } from '@acorex/core';
|
|
2
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
2
4
|
import { AXBaseValueComponentMixin } from '../base';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class AXColorPalleteComponent extends AXBaseValueComponentMixin {
|
|
7
|
+
_onInternalColorChanged$: Subject<any>;
|
|
8
|
+
modeChange: EventEmitter<AXColorMode>;
|
|
9
|
+
private _mode;
|
|
10
|
+
/**
|
|
11
|
+
* A character value that specifies the separator character.
|
|
12
|
+
*/
|
|
13
|
+
get mode(): AXColorMode;
|
|
14
|
+
set mode(v: AXColorMode);
|
|
5
15
|
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
6
|
-
ngOnInit(): void;
|
|
7
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXColorPalleteComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXColorPalleteComponent, "ax-color-palette", never, { "disabled": "disabled"; "tabIndex": "tabIndex"; "readonly": "readonly"; "allowNull": "allowNull"; "value": "value"; "debounceTime": "debounceTime"; "name": "name"; "checked": "checked"; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "onValueChanged": "onValueChanged"; }, never, ["ax-header", "ax-color-palette-
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXColorPalleteComponent, "ax-color-palette", never, { "disabled": "disabled"; "tabIndex": "tabIndex"; "readonly": "readonly"; "allowNull": "allowNull"; "value": "value"; "debounceTime": "debounceTime"; "name": "name"; "checked": "checked"; "mode": "mode"; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "onValueChanged": "onValueChanged"; "modeChange": "modeChange"; }, never, ["ax-header", "ax-color-palette-favorite", "ax-footer"]>;
|
|
9
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AXPlatform } from '@acorex/core';
|
|
1
|
+
import { AXColorMode, AXPlatform } from '@acorex/core';
|
|
2
2
|
import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
|
|
3
3
|
import { AXBaseComponent, AXClickEvent, AXValueChangedEvent } from '../base';
|
|
4
4
|
import { AXPopoverComponent } from '../popover';
|
|
@@ -74,6 +74,11 @@ export declare const AXBaseColorPickerMixin: (abstract new (...args: any[]) => {
|
|
|
74
74
|
valueChange: import("@angular/core").EventEmitter<any>;
|
|
75
75
|
"__#5@#readonly": boolean;
|
|
76
76
|
readonly: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* The Button is a component which detects user interaction and triggers a corresponding event
|
|
79
|
+
*
|
|
80
|
+
* @category Components
|
|
81
|
+
*/
|
|
77
82
|
"__#5@#allowNull": boolean;
|
|
78
83
|
allowNull: boolean;
|
|
79
84
|
"__#5@#name": string;
|
|
@@ -85,7 +90,9 @@ export declare const AXBaseColorPickerMixin: (abstract new (...args: any[]) => {
|
|
|
85
90
|
"__#5@#value": any;
|
|
86
91
|
value: any;
|
|
87
92
|
"__#5@#state": "error" | "clear" | "success";
|
|
88
|
-
readonly state: "error" | "clear" | "success";
|
|
93
|
+
readonly state: "error" | "clear" | "success"; /**
|
|
94
|
+
* @ignore
|
|
95
|
+
*/
|
|
89
96
|
_emitOnValueChangedEvent(oldValue?: any, newValue?: any): void;
|
|
90
97
|
_onInternalValueChanging(value: any): any;
|
|
91
98
|
_onValueChanging(value: any): any;
|
|
@@ -160,6 +167,8 @@ export declare class AXColorPickerComponent extends AXBaseColorPickerMixin {
|
|
|
160
167
|
_target: HTMLDivElement;
|
|
161
168
|
_popoverTitle: string;
|
|
162
169
|
_popoverWidth: number;
|
|
170
|
+
_colorCode: string;
|
|
171
|
+
_mode: AXColorMode;
|
|
163
172
|
_isMobile: boolean;
|
|
164
173
|
/**
|
|
165
174
|
* @ignore
|