@quartzds/core-angular 1.0.0-beta.11 → 1.0.0-beta.13
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/lib/generated/boolean-value-accessor.d.ts +3 -0
- package/lib/generated/boolean-value-accessor.d.ts.map +1 -1
- package/lib/generated/boolean-value-accessor.js +28 -21
- package/lib/generated/boolean-value-accessor.js.map +1 -1
- package/lib/generated/number-value-accessor.d.ts +3 -0
- package/lib/generated/number-value-accessor.d.ts.map +1 -1
- package/lib/generated/number-value-accessor.js +28 -21
- package/lib/generated/number-value-accessor.js.map +1 -1
- package/lib/generated/proxies.d.ts +40 -9
- package/lib/generated/proxies.d.ts.map +1 -1
- package/lib/generated/proxies.js +181 -105
- package/lib/generated/proxies.js.map +1 -1
- package/lib/generated/text-value-accessor.d.ts +3 -0
- package/lib/generated/text-value-accessor.d.ts.map +1 -1
- package/lib/generated/text-value-accessor.js +28 -21
- package/lib/generated/text-value-accessor.js.map +1 -1
- package/lib/generated/value-accessor.d.ts +3 -0
- package/lib/generated/value-accessor.d.ts.map +1 -1
- package/lib/generated/value-accessor.js +12 -13
- package/lib/generated/value-accessor.js.map +1 -1
- package/lib/quartz.module.d.ts +8 -0
- package/lib/quartz.module.d.ts.map +1 -1
- package/lib/quartz.module.js +19 -10
- package/lib/quartz.module.js.map +1 -1
- package/package.json +9 -4
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
var TextValueAccessor_1;
|
|
2
|
-
import { __decorate, __metadata } from "tslib";
|
|
3
1
|
import { Directive, ElementRef } from '@angular/core';
|
|
4
2
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
3
|
import { ValueAccessor } from './value-accessor';
|
|
6
|
-
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class TextValueAccessor extends ValueAccessor {
|
|
7
6
|
constructor(el) {
|
|
8
7
|
super(el);
|
|
9
8
|
}
|
|
10
|
-
}
|
|
11
|
-
TextValueAccessor =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
9
|
+
}
|
|
10
|
+
TextValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: TextValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
+
TextValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.6", type: TextValueAccessor, selector: "qds-input[type=text]", host: { listeners: { "qdsChange": "handleChangeEvent($event.target.value)" } }, providers: [
|
|
12
|
+
{
|
|
13
|
+
provide: NG_VALUE_ACCESSOR,
|
|
14
|
+
useExisting: TextValueAccessor,
|
|
15
|
+
multi: true
|
|
16
|
+
}
|
|
17
|
+
], usesInheritance: true, ngImport: i0 });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: TextValueAccessor, decorators: [{
|
|
19
|
+
type: Directive,
|
|
20
|
+
args: [{
|
|
21
|
+
/* tslint:disable-next-line:directive-selector */
|
|
22
|
+
selector: 'qds-input[type=text]',
|
|
23
|
+
host: {
|
|
24
|
+
'(qdsChange)': 'handleChangeEvent($event.target.value)'
|
|
25
|
+
},
|
|
26
|
+
providers: [
|
|
27
|
+
{
|
|
28
|
+
provide: NG_VALUE_ACCESSOR,
|
|
29
|
+
useExisting: TextValueAccessor,
|
|
30
|
+
multi: true
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}]
|
|
34
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
28
35
|
//# sourceMappingURL=text-value-accessor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-value-accessor.js","sourceRoot":"","sources":["../../src/generated/text-value-accessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-value-accessor.js","sourceRoot":"","sources":["../../src/generated/text-value-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;;AAgBjD,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAClD,YAAY,EAAc;QACxB,KAAK,CAAC,EAAE,CAAC,CAAC;IACZ,CAAC;;8GAHU,iBAAiB;kGAAjB,iBAAiB,+HARjB;QACT;YACE,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,iBAAiB;YAC9B,KAAK,EAAE,IAAI;SACZ;KACF;2FAEU,iBAAiB;kBAd7B,SAAS;mBAAC;oBACT,iDAAiD;oBACjD,QAAQ,EAAE,sBAAsB;oBAChC,IAAI,EAAE;wBACJ,aAAa,EAAE,wCAAwC;qBACxD;oBACD,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,mBAAmB;4BAC9B,KAAK,EAAE,IAAI;yBACZ;qBACF;iBACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ValueAccessor implements ControlValueAccessor {
|
|
4
5
|
protected el: ElementRef;
|
|
5
6
|
private onChange;
|
|
@@ -12,5 +13,7 @@ export declare class ValueAccessor implements ControlValueAccessor {
|
|
|
12
13
|
registerOnChange(fn: (value: any) => void): void;
|
|
13
14
|
registerOnTouched(fn: () => void): void;
|
|
14
15
|
setDisabledState(isDisabled: boolean): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueAccessor, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueAccessor, never, never, {}, {}, never, never, false, never>;
|
|
15
18
|
}
|
|
16
19
|
//# sourceMappingURL=value-accessor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-accessor.d.ts","sourceRoot":"","sources":["../../src/generated/value-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAgB,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC
|
|
1
|
+
{"version":3,"file":"value-accessor.d.ts","sourceRoot":"","sources":["../../src/generated/value-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAgB,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;;AAEtD,qBACa,aAAc,YAAW,oBAAoB;IAM5C,SAAS,CAAC,EAAE,EAAE,UAAU;IAJpC,OAAO,CAAC,QAAQ,CAAsC;IACtD,OAAO,CAAC,SAAS,CAA4B;IAC7C,SAAS,CAAC,SAAS,EAAE,GAAG,CAAC;gBAEH,EAAE,EAAE,UAAU;IAEpC,UAAU,CAAC,KAAK,EAAE,GAAG;IAIrB,iBAAiB,CAAC,KAAK,EAAE,GAAG;IAQ5B,gBAAgB;IAIhB,gBAAgB,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI;IAGzC,iBAAiB,CAAC,EAAE,EAAE,MAAM,IAAI;IAIhC,gBAAgB,CAAC,UAAU,EAAE,OAAO;yCA/BzB,aAAa;2CAAb,aAAa;CAkCzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
1
|
import { Directive, ElementRef, HostListener } from '@angular/core';
|
|
3
|
-
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class ValueAccessor {
|
|
4
4
|
constructor(el) {
|
|
5
5
|
this.el = el;
|
|
6
6
|
this.onChange = () => { };
|
|
@@ -27,15 +27,14 @@ export let ValueAccessor = class ValueAccessor {
|
|
|
27
27
|
setDisabledState(isDisabled) {
|
|
28
28
|
this.el.nativeElement.disabled = isDisabled;
|
|
29
29
|
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
],
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
], ValueAccessor);
|
|
30
|
+
}
|
|
31
|
+
ValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
ValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.6", type: ValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ValueAccessor, decorators: [{
|
|
34
|
+
type: Directive,
|
|
35
|
+
args: [{}]
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
|
|
37
|
+
type: HostListener,
|
|
38
|
+
args: ['focusout']
|
|
39
|
+
}] } });
|
|
41
40
|
//# sourceMappingURL=value-accessor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-accessor.js","sourceRoot":"","sources":["../../src/generated/value-accessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"value-accessor.js","sourceRoot":"","sources":["../../src/generated/value-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;;AAIpE,MAAM,OAAO,aAAa;IAMxB,YAAsB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;QAJ5B,aAAQ,GAAyB,GAAG,EAAE,GAAM,CAAC,CAAC;QAC9C,cAAS,GAAe,GAAG,EAAE,GAAM,CAAC,CAAC;IAGN,CAAC;IAExC,UAAU,CAAC,KAAU;QACnB,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,GAAG,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IAC5E,CAAC;IAED,iBAAiB,CAAC,KAAU;QAC1B,IAAI,KAAK,KAAK,IAAI,CAAC,SAAS,EAAE;YAC5B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SACtB;IACH,CAAC;IAGD,gBAAgB;QACd,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAED,gBAAgB,CAAC,EAAwB;QACvC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACrB,CAAC;IACD,iBAAiB,CAAC,EAAc;QAC9B,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;IAED,gBAAgB,CAAC,UAAmB;QAClC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,QAAQ,GAAG,UAAU,CAAC;IAC9C,CAAC;;0GAjCU,aAAa;8FAAb,aAAa;2FAAb,aAAa;kBADzB,SAAS;mBAAC,EAAE;iGAqBX,gBAAgB;sBADf,YAAY;uBAAC,UAAU"}
|
package/lib/quartz.module.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./generated/proxies";
|
|
3
|
+
import * as i2 from "./generated/boolean-value-accessor";
|
|
4
|
+
import * as i3 from "./generated/number-value-accessor";
|
|
5
|
+
import * as i4 from "./generated/text-value-accessor";
|
|
1
6
|
export declare class QuartzModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuartzModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<QuartzModule, [typeof i1.QdsButton, typeof i1.QdsCheckbox, typeof i1.QdsDialog, typeof i1.QdsDivider, typeof i1.QdsDropdown, typeof i1.QdsFormMessage, typeof i1.QdsIcon, typeof i1.QdsInlineLink, typeof i1.QdsInput, typeof i1.QdsLabel, typeof i1.QdsRadio, typeof i1.QdsSwitch, typeof i1.QdsTextarea, typeof i1.QdsTitle, typeof i1.QdsTooltip, typeof i2.BooleanValueAccessor, typeof i3.NumericValueAccessor, typeof i4.TextValueAccessor], never, [typeof i1.QdsButton, typeof i1.QdsCheckbox, typeof i1.QdsDialog, typeof i1.QdsDivider, typeof i1.QdsDropdown, typeof i1.QdsFormMessage, typeof i1.QdsIcon, typeof i1.QdsInlineLink, typeof i1.QdsInput, typeof i1.QdsLabel, typeof i1.QdsRadio, typeof i1.QdsSwitch, typeof i1.QdsTextarea, typeof i1.QdsTitle, typeof i1.QdsTooltip, typeof i2.BooleanValueAccessor, typeof i3.NumericValueAccessor, typeof i4.TextValueAccessor]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<QuartzModule>;
|
|
2
10
|
}
|
|
3
11
|
//# sourceMappingURL=quartz.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quartz.module.d.ts","sourceRoot":"","sources":["../src/quartz.module.ts"],"names":[],"mappings":"AAkBA,qBAKa,YAAY;CAAG"}
|
|
1
|
+
{"version":3,"file":"quartz.module.d.ts","sourceRoot":"","sources":["../src/quartz.module.ts"],"names":[],"mappings":";;;;;AAkBA,qBAKa,YAAY;yCAAZ,YAAY;0CAAZ,YAAY;0CAAZ,YAAY;CAAG"}
|
package/lib/quartz.module.js
CHANGED
|
@@ -1,25 +1,34 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: © 2023 Schneider Electric
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: LGPL-2.1-only
|
|
4
|
-
import { __decorate } from "tslib";
|
|
5
4
|
import { NgModule } from '@angular/core';
|
|
6
5
|
import { DIRECTIVES } from './generated/array';
|
|
7
6
|
import { BooleanValueAccessor } from './generated/boolean-value-accessor';
|
|
8
7
|
import { NumericValueAccessor } from './generated/number-value-accessor';
|
|
9
8
|
import { TextValueAccessor } from './generated/text-value-accessor';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "./generated/proxies";
|
|
10
11
|
const DECLARATIONS = [
|
|
11
12
|
...DIRECTIVES,
|
|
12
13
|
BooleanValueAccessor,
|
|
13
14
|
NumericValueAccessor,
|
|
14
15
|
TextValueAccessor,
|
|
15
16
|
];
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
]
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-extraneous-class, import/prefer-default-export
|
|
18
|
+
export class QuartzModule {
|
|
19
|
+
}
|
|
20
|
+
QuartzModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: QuartzModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
21
|
+
QuartzModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.6", ngImport: i0, type: QuartzModule, declarations: [i1.QdsButton, i1.QdsCheckbox, i1.QdsDialog, i1.QdsDivider, i1.QdsDropdown, i1.QdsFormMessage, i1.QdsIcon, i1.QdsInlineLink, i1.QdsInput, i1.QdsLabel, i1.QdsRadio, i1.QdsSwitch, i1.QdsTextarea, i1.QdsTitle, i1.QdsTooltip, BooleanValueAccessor,
|
|
22
|
+
NumericValueAccessor,
|
|
23
|
+
TextValueAccessor], exports: [i1.QdsButton, i1.QdsCheckbox, i1.QdsDialog, i1.QdsDivider, i1.QdsDropdown, i1.QdsFormMessage, i1.QdsIcon, i1.QdsInlineLink, i1.QdsInput, i1.QdsLabel, i1.QdsRadio, i1.QdsSwitch, i1.QdsTextarea, i1.QdsTitle, i1.QdsTooltip, BooleanValueAccessor,
|
|
24
|
+
NumericValueAccessor,
|
|
25
|
+
TextValueAccessor] });
|
|
26
|
+
QuartzModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: QuartzModule });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: QuartzModule, decorators: [{
|
|
28
|
+
type: NgModule,
|
|
29
|
+
args: [{
|
|
30
|
+
declarations: DECLARATIONS,
|
|
31
|
+
exports: DECLARATIONS,
|
|
32
|
+
}]
|
|
33
|
+
}] });
|
|
25
34
|
//# sourceMappingURL=quartz.module.js.map
|
package/lib/quartz.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quartz.module.js","sourceRoot":"","sources":["../src/quartz.module.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,EAAE;AACF,yCAAyC
|
|
1
|
+
{"version":3,"file":"quartz.module.js","sourceRoot":"","sources":["../src/quartz.module.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,EAAE;AACF,yCAAyC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAA;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;;;AAEnE,MAAM,YAAY,GAAG;IACnB,GAAG,UAAU;IACb,oBAAoB;IACpB,oBAAoB;IACpB,iBAAiB;CAClB,CAAA;AAMD,gGAAgG;AAChG,MAAM,OAAO,YAAY;;yGAAZ,YAAY;0GAAZ,YAAY,8OAVvB,oBAAoB;QACpB,oBAAoB;QACpB,iBAAiB,0OAFjB,oBAAoB;QACpB,oBAAoB;QACpB,iBAAiB;0GAQN,YAAY;2FAAZ,YAAY;kBALxB,QAAQ;mBAAC;oBACR,YAAY,EAAE,YAAY;oBAC1B,OAAO,EAAE,YAAY;iBACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quartzds/core-angular",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.13",
|
|
4
4
|
"description": "Angular wrapper for @quartzds/core",
|
|
5
5
|
"homepage": "https://github.com/quartzds/core-foundations/tree/main/packages/angular",
|
|
6
6
|
"bugs": {
|
|
@@ -21,16 +21,21 @@
|
|
|
21
21
|
"lib/**"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"
|
|
24
|
+
"build": "ngc",
|
|
25
|
+
"clean": "rimraf lib/",
|
|
26
|
+
"dev": "ngc -w"
|
|
25
27
|
},
|
|
26
28
|
"dependencies": {
|
|
27
|
-
"@quartzds/core": "1.0.0-beta.
|
|
29
|
+
"@quartzds/core": "1.0.0-beta.14",
|
|
28
30
|
"tslib": "^2.0.0"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
33
|
+
"@angular/compiler": "16.1.6",
|
|
34
|
+
"@angular/compiler-cli": "16.1.6",
|
|
31
35
|
"@angular/core": "16.1.6",
|
|
32
36
|
"@angular/forms": "16.1.6",
|
|
33
|
-
"rimraf": "5.0.1"
|
|
37
|
+
"rimraf": "5.0.1",
|
|
38
|
+
"typescript": "5.1.6"
|
|
34
39
|
},
|
|
35
40
|
"peerDependencies": {
|
|
36
41
|
"@angular/common": ">=12.0.0",
|