@skyux/phone-field 5.0.0 → 5.5.0-alpha.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/README.md +6 -4
- package/bundles/skyux-phone-field-testing.umd.js +18 -18
- package/bundles/skyux-phone-field.umd.js +136 -126
- package/documentation.json +132 -48
- package/esm2015/index.js +8 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/lib/modules/phone-field/phone-field-adapter.service.js +64 -0
- package/esm2015/lib/modules/phone-field/phone-field-adapter.service.js.map +1 -0
- package/esm2015/lib/modules/phone-field/phone-field-input.directive.js +279 -0
- package/esm2015/lib/modules/phone-field/phone-field-input.directive.js.map +1 -0
- package/esm2015/lib/modules/phone-field/phone-field.component.js +340 -0
- package/esm2015/lib/modules/phone-field/phone-field.component.js.map +1 -0
- package/esm2015/lib/modules/phone-field/phone-field.module.js +50 -0
- package/esm2015/lib/modules/phone-field/phone-field.module.js.map +1 -0
- package/esm2015/lib/modules/phone-field/types/country.js +2 -0
- package/esm2015/lib/modules/phone-field/types/country.js.map +1 -0
- package/esm2015/lib/modules/phone-field/types/number-return-format.js +2 -0
- package/esm2015/lib/modules/phone-field/types/number-return-format.js.map +1 -0
- package/esm2015/lib/modules/shared/sky-phone-field-resources.module.js +60 -0
- package/esm2015/lib/modules/shared/sky-phone-field-resources.module.js.map +1 -0
- package/esm2015/skyux-phone-field.js +2 -2
- package/esm2015/skyux-phone-field.js.map +1 -0
- package/esm2015/testing/phonefield/phone-field-fixture.js +8 -6
- package/esm2015/testing/phonefield/phone-field-fixture.js.map +1 -0
- package/esm2015/testing/phonefield/phone-field-testing.module.js +7 -7
- package/esm2015/testing/phonefield/phone-field-testing.module.js.map +1 -0
- package/esm2015/testing/public-api.js +1 -1
- package/esm2015/testing/public-api.js.map +1 -0
- package/esm2015/testing/skyux-phone-field-testing.js +1 -1
- package/esm2015/testing/skyux-phone-field-testing.js.map +1 -0
- package/fesm2015/skyux-phone-field-testing.js +13 -11
- package/fesm2015/skyux-phone-field-testing.js.map +1 -1
- package/fesm2015/skyux-phone-field.js +128 -116
- package/fesm2015/skyux-phone-field.js.map +1 -1
- package/index.d.ts +5 -0
- package/{modules → lib/modules}/phone-field/phone-field-adapter.service.d.ts +0 -0
- package/{modules → lib/modules}/phone-field/phone-field-input.directive.d.ts +0 -0
- package/{modules → lib/modules}/phone-field/phone-field.component.d.ts +3 -2
- package/{modules → lib/modules}/phone-field/phone-field.module.d.ts +0 -0
- package/{modules → lib/modules}/phone-field/types/country.d.ts +0 -0
- package/{modules → lib/modules}/phone-field/types/number-return-format.d.ts +0 -0
- package/{modules → lib/modules}/shared/sky-phone-field-resources.module.d.ts +0 -0
- package/package.json +10 -10
- package/skyux-phone-field.d.ts +1 -1
- package/LICENSE +0 -21
- package/bundles/skyux-phone-field-testing.umd.js.map +0 -1
- package/bundles/skyux-phone-field.umd.js.map +0 -1
- package/esm2015/modules/phone-field/phone-field-adapter.service.js +0 -62
- package/esm2015/modules/phone-field/phone-field-input.directive.js +0 -273
- package/esm2015/modules/phone-field/phone-field.component.js +0 -343
- package/esm2015/modules/phone-field/phone-field.module.js +0 -58
- package/esm2015/modules/phone-field/types/country.js +0 -2
- package/esm2015/modules/phone-field/types/number-return-format.js +0 -2
- package/esm2015/modules/shared/sky-phone-field-resources.module.js +0 -41
- package/esm2015/public-api.js +0 -8
- package/public-api.d.ts +0 -5
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# phone-field
|
|
2
2
|
|
|
3
|
-
[
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
|
+
|
|
5
|
+
## Running unit tests
|
|
6
|
+
|
|
7
|
+
Run `nx test phone-field` to execute the unit tests.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/platform-browser/animations'), require('@skyux/phone-field'), require('@angular/platform-browser'), require('@skyux-sdk/testing'), require('@skyux/lookup/testing')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@skyux/phone-field/testing', ['exports', '@angular/core', '@angular/platform-browser/animations', '@skyux/phone-field', '@angular/platform-browser', '@skyux-sdk/testing', '@skyux/lookup/testing'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux[
|
|
5
|
-
}(this, (function (exports, i0, animations, phoneField, platformBrowser, testing, testing$1) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["phone-field"] = global.skyux["phone-field"] || {}, global.skyux["phone-field"].testing = {}), global.ng.core, global.ng.platformBrowser.animations, global.skyux["phone-field"], global.ng.platformBrowser, global.testing, global.testing$1));
|
|
5
|
+
})(this, (function (exports, i0, animations, phoneField, platformBrowser, testing, testing$1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -13,14 +13,12 @@
|
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
16
|
+
get: function () { return e[k]; }
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
|
-
n[
|
|
21
|
+
n["default"] = e;
|
|
24
22
|
return Object.freeze(n);
|
|
25
23
|
}
|
|
26
24
|
|
|
@@ -31,24 +29,24 @@
|
|
|
31
29
|
}
|
|
32
30
|
return SkyPhoneFieldTestingModule;
|
|
33
31
|
}());
|
|
34
|
-
SkyPhoneFieldTestingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
35
|
-
SkyPhoneFieldTestingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
32
|
+
SkyPhoneFieldTestingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPhoneFieldTestingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
33
|
+
SkyPhoneFieldTestingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPhoneFieldTestingModule, exports: [phoneField.SkyPhoneFieldModule,
|
|
36
34
|
// The noop animations module needs to be loaded last to avoid
|
|
37
35
|
// subsequent modules adding animations and overriding this.
|
|
38
36
|
animations.NoopAnimationsModule] });
|
|
39
|
-
SkyPhoneFieldTestingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
37
|
+
SkyPhoneFieldTestingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPhoneFieldTestingModule, imports: [phoneField.SkyPhoneFieldModule,
|
|
40
38
|
// The noop animations module needs to be loaded last to avoid
|
|
41
39
|
// subsequent modules adding animations and overriding this.
|
|
42
40
|
animations.NoopAnimationsModule] });
|
|
43
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
41
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPhoneFieldTestingModule, decorators: [{
|
|
44
42
|
type: i0.NgModule,
|
|
45
43
|
args: [{
|
|
46
44
|
exports: [
|
|
47
45
|
phoneField.SkyPhoneFieldModule,
|
|
48
46
|
// The noop animations module needs to be loaded last to avoid
|
|
49
47
|
// subsequent modules adding animations and overriding this.
|
|
50
|
-
animations.NoopAnimationsModule
|
|
51
|
-
]
|
|
48
|
+
animations.NoopAnimationsModule,
|
|
49
|
+
],
|
|
52
50
|
}]
|
|
53
51
|
}] });
|
|
54
52
|
|
|
@@ -379,8 +377,7 @@
|
|
|
379
377
|
function SkyPhoneFieldFixture(fixture, skyTestId) {
|
|
380
378
|
this.fixture = fixture;
|
|
381
379
|
this.skyTestId = skyTestId;
|
|
382
|
-
this._debugEl = testing.SkyAppTestUtility
|
|
383
|
-
.getDebugElementByTestId(fixture, skyTestId, 'sky-phone-field');
|
|
380
|
+
this._debugEl = testing.SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-phone-field');
|
|
384
381
|
// The country selector needs extra time to initialize.
|
|
385
382
|
// Consumers shouldn't need to work around this so we do an extra detect here
|
|
386
383
|
fixture.detectChanges();
|
|
@@ -553,21 +550,24 @@
|
|
|
553
550
|
});
|
|
554
551
|
Object.defineProperty(SkyPhoneFieldFixture.prototype, "countryFlagButtonContainer", {
|
|
555
552
|
get: function () {
|
|
556
|
-
return this._debugEl.query(platformBrowser.By.css('.sky-phone-field-country-btn'))
|
|
553
|
+
return this._debugEl.query(platformBrowser.By.css('.sky-phone-field-country-btn'))
|
|
554
|
+
.nativeElement;
|
|
557
555
|
},
|
|
558
556
|
enumerable: false,
|
|
559
557
|
configurable: true
|
|
560
558
|
});
|
|
561
559
|
Object.defineProperty(SkyPhoneFieldFixture.prototype, "countryFlagButton", {
|
|
562
560
|
get: function () {
|
|
563
|
-
return this._debugEl.query(platformBrowser.By.css('.sky-phone-field-country-btn .sky-btn'))
|
|
561
|
+
return this._debugEl.query(platformBrowser.By.css('.sky-phone-field-country-btn .sky-btn'))
|
|
562
|
+
.nativeElement;
|
|
564
563
|
},
|
|
565
564
|
enumerable: false,
|
|
566
565
|
configurable: true
|
|
567
566
|
});
|
|
568
567
|
Object.defineProperty(SkyPhoneFieldFixture.prototype, "phoneFieldInput", {
|
|
569
568
|
get: function () {
|
|
570
|
-
return this._debugEl.query(platformBrowser.By.css('input[skyPhoneFieldInput]'))
|
|
569
|
+
return this._debugEl.query(platformBrowser.By.css('input[skyPhoneFieldInput]'))
|
|
570
|
+
.nativeElement;
|
|
571
571
|
},
|
|
572
572
|
enumerable: false,
|
|
573
573
|
configurable: true
|
|
@@ -654,5 +654,5 @@
|
|
|
654
654
|
|
|
655
655
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
656
656
|
|
|
657
|
-
}))
|
|
657
|
+
}));
|
|
658
658
|
//# sourceMappingURL=skyux-phone-field-testing.umd.js.map
|