@ifsworld/granite-components 3.0.0-beta.6 → 4.0.0-beta.1
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/bundles/ifsworld-granite-components.umd.js +173 -17
- package/bundles/ifsworld-granite-components.umd.js.map +1 -1
- package/bundles/ifsworld-granite-components.umd.min.js +3 -3
- package/bundles/ifsworld-granite-components.umd.min.js.map +1 -1
- package/esm2015/index.js +4 -1
- package/esm2015/index.js.map +1 -1
- package/esm2015/index.metadata.json +1 -1
- package/esm2015/lib/form-field/form-field.component.js +16 -0
- package/esm2015/lib/form-field/form-field.component.js.map +1 -0
- package/esm2015/lib/form-field/form-field.component.metadata.json +1 -0
- package/esm2015/lib/form-field/form-field.module.js +13 -0
- package/esm2015/lib/form-field/form-field.module.js.map +1 -0
- package/esm2015/lib/form-field/form-field.module.metadata.json +1 -0
- package/esm2015/lib/input-field/input-field.component.js +109 -0
- package/esm2015/lib/input-field/input-field.component.js.map +1 -0
- package/esm2015/lib/input-field/input-field.component.metadata.json +1 -0
- package/esm2015/lib/input-field/input-field.module.js +15 -0
- package/esm2015/lib/input-field/input-field.module.js.map +1 -0
- package/esm2015/lib/input-field/input-field.module.metadata.json +1 -0
- package/esm2015/lib/menu/menu.component.js +1 -1
- package/esm2015/lib/menu/menu.component.metadata.json +1 -1
- package/esm2015/lib/toggle-switch/toggle-switch.component.js +3 -4
- package/esm2015/lib/toggle-switch/toggle-switch.component.js.map +1 -1
- package/esm2015/lib/toggle-switch/toggle-switch.component.metadata.json +1 -1
- package/fesm2015/ifsworld-granite-components.js +153 -15
- package/fesm2015/ifsworld-granite-components.js.map +1 -1
- package/ifsworld-granite-components.metadata.json +1 -1
- package/index.d.ts +4 -1
- package/lib/form-field/form-field.component.d.ts +2 -0
- package/lib/form-field/form-field.module.d.ts +2 -0
- package/lib/input-field/input-field.component.d.ts +34 -0
- package/lib/input-field/input-field.module.d.ts +2 -0
- package/lib/toggle-switch/toggle-switch.component.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/core/style/_mixins.scss +5 -17
- package/src/lib/core/style/_overlay.scss +2 -3
- package/esm2015/lib/granite-components.module.js +0 -10
- package/esm2015/lib/granite-components.module.js.map +0 -1
- package/esm2015/lib/granite-components.module.metadata.json +0 -1
- package/lib/granite-components.module.d.ts +0 -2
|
@@ -4,17 +4,6 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ifsworld = global.ifsworld || {}, global.ifsworld['granite-components'] = {}), global.ng.core, global.ng.common, global.ng.cdk.coercion, global.rxjs, global.rxjs.operators, global.ng.cdk.testing, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.cdk.a11y, global.ng.cdk.keycodes, global.ng.animations, global.ng.cdk.bidi, global.ng.cdk.platform));
|
|
5
5
|
}(this, (function (exports, core, common, coercion, rxjs, operators, testing, overlay, portal, a11y, keycodes, animations, bidi, platform) { 'use strict';
|
|
6
6
|
|
|
7
|
-
var GraniteComponentsModule = /** @class */ (function () {
|
|
8
|
-
function GraniteComponentsModule() {
|
|
9
|
-
}
|
|
10
|
-
return GraniteComponentsModule;
|
|
11
|
-
}());
|
|
12
|
-
GraniteComponentsModule.decorators = [
|
|
13
|
-
{ type: core.NgModule, args: [{
|
|
14
|
-
imports: [common.CommonModule],
|
|
15
|
-
},] }
|
|
16
|
-
];
|
|
17
|
-
|
|
18
7
|
var GraniteArrangeGridItemComponent = /** @class */ (function () {
|
|
19
8
|
function GraniteArrangeGridItemComponent(element) {
|
|
20
9
|
this.element = element;
|
|
@@ -1513,7 +1502,7 @@
|
|
|
1513
1502
|
providers: [
|
|
1514
1503
|
{ provide: GRANITE_MENU_PANEL, useExisting: GraniteMenuComponent },
|
|
1515
1504
|
],
|
|
1516
|
-
styles: [".granite-menu:not(.granite-device-output-touch){background-color:var(--granite-color-background-variant);color:var(--granite-color-text);overflow:auto;-webkit-overflow-scrolling:touch;min-height:var(--granite-spacing-xl);max-height:calc(100vh - var(--granite-spacing-xl));outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;filter:drop-shadow(0 16px 16px rgba(0,0,0,.08)) drop-shadow(0 4px 20px rgba(0,0,0,.1));min-width:calc(var(--granite-spacing-m) * 7)}.granite-menu:not(.granite-device-output-touch).ng-animating{pointer-events:none}.granite-menu.granite-device-output-touch{background-color:var(--granite-color-background-variant);color:var(--granite-color-text);overflow:auto;-webkit-overflow-scrolling:touch;min-height:var(--granite-spacing-xl);max-height:calc(100vh - var(--granite-spacing-xl));outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;filter:drop-shadow(0 16px 16px rgba(0,0,0,.08)) drop-shadow(0 4px 20px rgba(0,0,0,.1));border-radius:calc(var(--granite-radius-m) / 2);-webkit-margin-start:var(--granite-spacing-xs);margin-inline-start:var(--granite-spacing-xs);-webkit-margin-end:var(--granite-spacing-xs);margin-inline-end:var(--granite-spacing-xs);-webkit-margin-after:var(--granite-spacing-xs);margin-block-end:var(--granite-spacing-xs);max-height:calc(100% - var(--granite-spacing-m) * 7)}.granite-menu.granite-device-output-touch.ng-animating{pointer-events:none}.granite-menu.granite-device-output-touch .header-container{position:-webkit-sticky;position:sticky;top:0;background-color:var(--granite-color-background-variant);z-index:1}.granite-menu.granite-device-output-touch .footer-container{position:-webkit-sticky;position:sticky;bottom:0;height:0}.close:not(:empty){background-color:var(--granite-color-background-variant);color:var(--granite-color-text);overflow:auto;-webkit-overflow-scrolling:touch;min-height:var(--granite-spacing-xl);max-height:calc(100vh - var(--granite-spacing-xl));outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;filter:drop-shadow(0 16px 16px rgba(0,0,0,.08)) drop-shadow(0 4px 20px rgba(0,0,0,.1));border-radius:calc(var(--granite-radius-m) / 2);-webkit-margin-start:var(--granite-spacing-xs);margin-inline-start:var(--granite-spacing-xs);-webkit-margin-end:var(--granite-spacing-xs);margin-inline-end:var(--granite-spacing-xs);-webkit-margin-after:var(--granite-spacing-xs);margin-block-end:var(--granite-spacing-xs)}.close:not(:empty).ng-animating{pointer-events:none}"]
|
|
1505
|
+
styles: [".granite-menu:not(.granite-device-output-touch){background-color:var(--granite-color-background-variant);color:var(--granite-color-text);overflow:auto;-webkit-overflow-scrolling:touch;min-height:var(--granite-spacing-xl);max-height:calc(100vh - var(--granite-spacing-xl));outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;filter:drop-shadow(0 16px 16px rgba(0,0,0,.08)) drop-shadow(0 4px 20px rgba(0,0,0,.1));min-width:calc(var(--granite-spacing-m) * 7);overflow-x:hidden;overflow-y:hidden}.granite-menu:not(.granite-device-output-touch).ng-animating{pointer-events:none}.granite-menu:not(.granite-device-output-touch):hover{overflow-y:auto}.granite-menu:not(.granite-device-output-touch)::-webkit-scrollbar{width:var(--granite-spacing-xs)}.granite-menu:not(.granite-device-output-touch)::-webkit-scrollbar-thumb{background-color:var(--granite-color-border-hard);border-radius:calc(var(--granite-spacing-m) * .125)}.granite-menu:not(.granite-device-output-touch)::-webkit-scrollbar-track{background-color:var(--granite-color-background-hover)}.granite-menu.granite-device-output-touch{background-color:var(--granite-color-background-variant);color:var(--granite-color-text);overflow:auto;-webkit-overflow-scrolling:touch;min-height:var(--granite-spacing-xl);max-height:calc(100vh - var(--granite-spacing-xl));outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;filter:drop-shadow(0 16px 16px rgba(0,0,0,.08)) drop-shadow(0 4px 20px rgba(0,0,0,.1));border-radius:calc(var(--granite-radius-m) / 2);-webkit-margin-start:var(--granite-spacing-xs);margin-inline-start:var(--granite-spacing-xs);-webkit-margin-end:var(--granite-spacing-xs);margin-inline-end:var(--granite-spacing-xs);-webkit-margin-after:var(--granite-spacing-xs);margin-block-end:var(--granite-spacing-xs);max-height:calc(100% - var(--granite-spacing-m) * 7)}.granite-menu.granite-device-output-touch.ng-animating{pointer-events:none}.granite-menu.granite-device-output-touch .header-container{position:-webkit-sticky;position:sticky;top:0;background-color:var(--granite-color-background-variant);z-index:1}.granite-menu.granite-device-output-touch .footer-container{position:-webkit-sticky;position:sticky;bottom:0;height:0}.close:not(:empty){background-color:var(--granite-color-background-variant);color:var(--granite-color-text);overflow:auto;-webkit-overflow-scrolling:touch;min-height:var(--granite-spacing-xl);max-height:calc(100vh - var(--granite-spacing-xl));outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;filter:drop-shadow(0 16px 16px rgba(0,0,0,.08)) drop-shadow(0 4px 20px rgba(0,0,0,.1));border-radius:calc(var(--granite-radius-m) / 2);-webkit-margin-start:var(--granite-spacing-xs);margin-inline-start:var(--granite-spacing-xs);-webkit-margin-end:var(--granite-spacing-xs);margin-inline-end:var(--granite-spacing-xs);-webkit-margin-after:var(--granite-spacing-xs);margin-block-end:var(--granite-spacing-xs)}.close:not(:empty).ng-animating{pointer-events:none}"]
|
|
1517
1506
|
},] }
|
|
1518
1507
|
];
|
|
1519
1508
|
|
|
@@ -2582,8 +2571,7 @@
|
|
|
2582
2571
|
this.ariaLabelledby = null;
|
|
2583
2572
|
this.valueChange = new core.EventEmitter();
|
|
2584
2573
|
this.toggleChange = new core.EventEmitter();
|
|
2585
|
-
|
|
2586
|
-
this.blur = new core.EventEmitter();
|
|
2574
|
+
this.toggleBlur = new core.EventEmitter();
|
|
2587
2575
|
this._positionBefore = false;
|
|
2588
2576
|
this._toggleSwitchDisabled = false;
|
|
2589
2577
|
}
|
|
@@ -2612,7 +2600,7 @@
|
|
|
2612
2600
|
this._focusMonitor.focusVia(this._getInputElement(), origin, options);
|
|
2613
2601
|
};
|
|
2614
2602
|
GraniteToggleSwitchComponent.prototype._onBlur = function () {
|
|
2615
|
-
this.
|
|
2603
|
+
this.toggleBlur.emit();
|
|
2616
2604
|
};
|
|
2617
2605
|
GraniteToggleSwitchComponent.prototype._toggleSwitchChange = function () {
|
|
2618
2606
|
this.checked = this._getInputElement().checked;
|
|
@@ -2655,7 +2643,7 @@
|
|
|
2655
2643
|
ariaLabelledby: [{ type: core.Input, args: ['aria-labelledby',] }],
|
|
2656
2644
|
valueChange: [{ type: core.Output }],
|
|
2657
2645
|
toggleChange: [{ type: core.Output }],
|
|
2658
|
-
|
|
2646
|
+
toggleBlur: [{ type: core.Output }],
|
|
2659
2647
|
_inputElement: [{ type: core.ViewChild, args: ['input',] }]
|
|
2660
2648
|
};
|
|
2661
2649
|
|
|
@@ -2817,6 +2805,167 @@
|
|
|
2817
2805
|
},] }
|
|
2818
2806
|
];
|
|
2819
2807
|
|
|
2808
|
+
var GraniteFormFieldComponent = /** @class */ (function () {
|
|
2809
|
+
function GraniteFormFieldComponent() {
|
|
2810
|
+
}
|
|
2811
|
+
return GraniteFormFieldComponent;
|
|
2812
|
+
}());
|
|
2813
|
+
GraniteFormFieldComponent.decorators = [
|
|
2814
|
+
{ type: core.Component, args: [{
|
|
2815
|
+
selector: 'granite-form-field',
|
|
2816
|
+
exportAs: 'graniteFormField',
|
|
2817
|
+
template: "<ng-content></ng-content>\n",
|
|
2818
|
+
host: {
|
|
2819
|
+
class: 'granite-form-field',
|
|
2820
|
+
},
|
|
2821
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
2822
|
+
styles: [""]
|
|
2823
|
+
},] }
|
|
2824
|
+
];
|
|
2825
|
+
|
|
2826
|
+
var GraniteFormFieldModule = /** @class */ (function () {
|
|
2827
|
+
function GraniteFormFieldModule() {
|
|
2828
|
+
}
|
|
2829
|
+
return GraniteFormFieldModule;
|
|
2830
|
+
}());
|
|
2831
|
+
GraniteFormFieldModule.decorators = [
|
|
2832
|
+
{ type: core.NgModule, args: [{
|
|
2833
|
+
imports: [common.CommonModule],
|
|
2834
|
+
declarations: [GraniteFormFieldComponent],
|
|
2835
|
+
exports: [GraniteFormFieldComponent],
|
|
2836
|
+
},] }
|
|
2837
|
+
];
|
|
2838
|
+
|
|
2839
|
+
var GRANITE_INPUT_INCLUDES = ['text', 'number', 'password', 'textArea'];
|
|
2840
|
+
var GraniteInputFieldComponent = /** @class */ (function () {
|
|
2841
|
+
function GraniteInputFieldComponent() {
|
|
2842
|
+
this.id = '';
|
|
2843
|
+
this.name = '';
|
|
2844
|
+
this.value = null;
|
|
2845
|
+
this.isRequired = false;
|
|
2846
|
+
this.isReadOnly = false;
|
|
2847
|
+
this.isInvalid = false;
|
|
2848
|
+
this.isDisabled = false;
|
|
2849
|
+
this.placeholderText = '';
|
|
2850
|
+
this.prefixIcon = '';
|
|
2851
|
+
this.maxLength = 255;
|
|
2852
|
+
this.enableCharacterCount = false;
|
|
2853
|
+
this.ariaLabel = null;
|
|
2854
|
+
this.ariaLabelledby = null;
|
|
2855
|
+
this.valueChange = new core.EventEmitter();
|
|
2856
|
+
this.isSupported = true;
|
|
2857
|
+
this.isEmpty = false;
|
|
2858
|
+
this.passwordFieldIcon = 'view';
|
|
2859
|
+
this.currentCharCount = 0;
|
|
2860
|
+
this._type = 'text';
|
|
2861
|
+
this._hasError = false;
|
|
2862
|
+
}
|
|
2863
|
+
Object.defineProperty(GraniteInputFieldComponent.prototype, "type", {
|
|
2864
|
+
get: function () {
|
|
2865
|
+
return this._type;
|
|
2866
|
+
},
|
|
2867
|
+
set: function (value) {
|
|
2868
|
+
this._type = value || 'text';
|
|
2869
|
+
this._validateType();
|
|
2870
|
+
},
|
|
2871
|
+
enumerable: false,
|
|
2872
|
+
configurable: true
|
|
2873
|
+
});
|
|
2874
|
+
Object.defineProperty(GraniteInputFieldComponent.prototype, "hasError", {
|
|
2875
|
+
get: function () {
|
|
2876
|
+
return this._hasError;
|
|
2877
|
+
},
|
|
2878
|
+
enumerable: false,
|
|
2879
|
+
configurable: true
|
|
2880
|
+
});
|
|
2881
|
+
GraniteInputFieldComponent.prototype.ngOnChanges = function (changes) {
|
|
2882
|
+
if (changes.value) {
|
|
2883
|
+
this.isEmpty = this.value == null || this.value === '';
|
|
2884
|
+
}
|
|
2885
|
+
};
|
|
2886
|
+
GraniteInputFieldComponent.prototype.ngOnInit = function () {
|
|
2887
|
+
this.isEmpty = this.value == null || this.value === '';
|
|
2888
|
+
};
|
|
2889
|
+
GraniteInputFieldComponent.prototype.togglePassword = function () {
|
|
2890
|
+
if (this.isPasswordToggled) {
|
|
2891
|
+
this.isPasswordToggled = false;
|
|
2892
|
+
this._type = 'password';
|
|
2893
|
+
this.passwordFieldIcon = 'view';
|
|
2894
|
+
}
|
|
2895
|
+
else {
|
|
2896
|
+
this.isPasswordToggled = true;
|
|
2897
|
+
this._type = 'text';
|
|
2898
|
+
this.passwordFieldIcon = 'view-disabled';
|
|
2899
|
+
}
|
|
2900
|
+
};
|
|
2901
|
+
GraniteInputFieldComponent.prototype.onKeyUp = function (event) {
|
|
2902
|
+
var inputEvent = event.target;
|
|
2903
|
+
this.applyCharacterCount(inputEvent.value);
|
|
2904
|
+
this.valueChange.emit(inputEvent.value);
|
|
2905
|
+
};
|
|
2906
|
+
GraniteInputFieldComponent.prototype.onInput = function (event) {
|
|
2907
|
+
var inputEvent = event.target;
|
|
2908
|
+
this.valueChange.emit(inputEvent.value);
|
|
2909
|
+
};
|
|
2910
|
+
GraniteInputFieldComponent.prototype.applyCharacterCount = function (inputString) {
|
|
2911
|
+
if (this.enableCharacterCount) {
|
|
2912
|
+
this.currentCharCount = inputString.length;
|
|
2913
|
+
if (this.currentCharCount > this.maxLength) {
|
|
2914
|
+
inputString = inputString.slice(0, this.maxLength);
|
|
2915
|
+
this.currentCharCount = this.maxLength;
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
};
|
|
2919
|
+
GraniteInputFieldComponent.prototype._validateType = function () {
|
|
2920
|
+
if (GRANITE_INPUT_INCLUDES.indexOf(this.type) < 0) {
|
|
2921
|
+
this.isSupported = false;
|
|
2922
|
+
throw Error("Input type \"" + this.type + "\" isn't supported by graniteInputField.");
|
|
2923
|
+
}
|
|
2924
|
+
};
|
|
2925
|
+
return GraniteInputFieldComponent;
|
|
2926
|
+
}());
|
|
2927
|
+
GraniteInputFieldComponent.decorators = [
|
|
2928
|
+
{ type: core.Component, args: [{
|
|
2929
|
+
selector: 'granite-input-field',
|
|
2930
|
+
exportAs: 'graniteInputField',
|
|
2931
|
+
template: "<div class=\"granite-input-container\" *ngIf=\"isSupported\">\n <div class=\"granite-input-top-row\">\n <div class=\"granite-input-prepend\" *ngIf=\"prefixIcon != ''\">\n <granite-icon class=\"granite-input-prepend-icon\">\n {{ prefixIcon }}\n </granite-icon>\n </div>\n\n <input\n [id]=\"id\"\n [name]=\"name\"\n [attr.type]=\"type\"\n [required]=\"isRequired\"\n [readonly]=\"isReadOnly\"\n [disabled]=\"isDisabled\"\n [placeholder]=\"placeholderText\"\n [value]=\"value\"\n [maxLength]=\"maxLength\"\n (keyup)=\"onKeyUp($event)\"\n (input)=\"onInput($event)\"\n *ngIf=\"type != 'textArea'\"\n class=\"granite-input-base\"\n [class.invalid]=\"isInvalid\"\n [class.empty]=\"isEmpty\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [attr.aria-required]=\"isRequired\"\n [attr.aria-invalid]=\"isInvalid\"\n />\n\n <button\n class=\"granite-input-append\"\n *ngIf=\"type == 'password' || isPasswordToggled != null\"\n (click)=\"togglePassword()\"\n >\n <granite-icon class=\"granite-input-password-toggle-icon\">\n {{ passwordFieldIcon }}\n </granite-icon>\n </button>\n\n <textarea\n [id]=\"id\"\n [name]=\"name\"\n [attr.type]=\"type\"\n [required]=\"isRequired\"\n [readonly]=\"isReadOnly\"\n [disabled]=\"isDisabled\"\n [placeholder]=\"placeholderText\"\n [value]=\"value\"\n [maxLength]=\"maxLength\"\n (keyup)=\"onKeyUp($event)\"\n (input)=\"onInput($event)\"\n *ngIf=\"type == 'textArea'\"\n class=\"granite-input-base granite-text-area\"\n [class.invalid]=\"isInvalid\"\n [class.empty]=\"isEmpty\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [attr.aria-required]=\"isRequired\"\n [attr.aria-invalid]=\"isInvalid\"\n rows=\"1\"\n ></textarea>\n </div>\n\n <div class=\"granite-input-bottom-row\">\n <div class=\"granite-input-char-count\" *ngIf=\"enableCharacterCount\">\n {{ currentCharCount }}/{{ maxLength }}\n </div>\n </div>\n\n <div><br /></div>\n</div>\n",
|
|
2932
|
+
host: {
|
|
2933
|
+
class: 'granite-input-field',
|
|
2934
|
+
},
|
|
2935
|
+
styles: [":host{transition:all .2s ease-out;width:14.5rem;box-sizing:border-box}:host *,:host :after,:host :before{box-sizing:inherit}.granite-input-container{height:2rem;width:inherit;font-size:.75rem}.granite-input-container :hover{box-shadow:0 .0625rem 0 var(--granite-color-focus)}.granite-input-container :hover .granite-input-base::-moz-placeholder{color:var(--granite-color-text)}.granite-input-container :hover .granite-input-base:-ms-input-placeholder{color:var(--granite-color-text)}.granite-input-container :hover .granite-input-base::placeholder{color:var(--granite-color-text)}.granite-input-container :hover .granite-input-base:focus::-moz-placeholder{color:transparent}.granite-input-container :hover .granite-input-base:focus:-ms-input-placeholder{color:transparent}.granite-input-container :hover .granite-input-base:focus::placeholder{color:transparent}.granite-input-container .granite-input-base{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:none;background-color:var(--granite-color-background);padding:.5rem;width:inherit;height:inherit;color:var(--granite-color-text);font:inherit;font-weight:400;line-height:100%}.granite-input-container .granite-input-base.invalid{color:var(--granite-color-signal-failure);box-shadow:0 .0625rem 0 var(--granite-color-signal-failure)}.granite-input-container .granite-input-base:required.empty{background-color:var(--granite-color-background-failure)}.granite-input-container .granite-input-base:-moz-read-only{background-color:var(--granite-color-background-variant-2)}.granite-input-container .granite-input-base:read-only{background-color:var(--granite-color-background-variant-2)}.granite-input-container .granite-input-base::-moz-placeholder{color:var(--granite-color-text-hint)}.granite-input-container .granite-input-base:-ms-input-placeholder{color:var(--granite-color-text-hint)}.granite-input-container .granite-input-base::placeholder{color:var(--granite-color-text-hint)}.granite-input-container .granite-input-base:focus::-moz-placeholder{color:transparent}.granite-input-container .granite-input-base:focus:-ms-input-placeholder{color:transparent}.granite-input-container .granite-input-base:focus::placeholder{color:transparent}.granite-input-container .granite-input-top-row{display:inline-flex;background:var(--granite-color-background);width:inherit;height:inherit}.granite-input-container .granite-input-top-row :focus-within{box-shadow:0 -.0625rem 0 var(--granite-color-focus),-.0625rem 0 0 var(--granite-color-focus),.0625rem 0 0 var(--granite-color-focus),0 .0625rem 0 var(--granite-color-focus)}.granite-input-container .granite-input-top-row :focus-within.invalid{box-shadow:0 -.0625rem 0 var(--granite-color-focus),-.0625rem 0 0 var(--granite-color-focus),.0625rem 0 0 var(--granite-color-focus),0 .0625rem 0 var(--granite-color-signal-failure)}.granite-input-container .granite-input-top-row .granite-text-area{min-width:13.5rem;min-height:2rem}.granite-input-container .granite-input-prepend{display:flex;align-items:center;padding:0 .5rem;background:var(--granite-color-background)}.granite-input-container .granite-input-prepend :hover{box-shadow:none}.granite-input-container .granite-input-prepend .granite-input-prepend-icon{width:1rem;height:1rem}.granite-input-container .granite-input-append{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:none;-webkit-margin-start:.05rem;margin-inline-start:.05rem;background:var(--granite-color-background);position:relative}.granite-input-container .granite-input-append :hover{box-shadow:none}.granite-input-container .granite-input-append .granite-input-password-toggle-icon{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content}.granite-input-container .granite-input-char-count{background:var(--granite-color-background-warning);border-radius:0 0 .25rem .25rem;padding:.5rem;background-size:contain;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"]
|
|
2936
|
+
},] }
|
|
2937
|
+
];
|
|
2938
|
+
GraniteInputFieldComponent.propDecorators = {
|
|
2939
|
+
id: [{ type: core.Input }],
|
|
2940
|
+
name: [{ type: core.Input }],
|
|
2941
|
+
value: [{ type: core.Input }],
|
|
2942
|
+
isRequired: [{ type: core.Input }],
|
|
2943
|
+
isReadOnly: [{ type: core.Input }],
|
|
2944
|
+
isInvalid: [{ type: core.Input }],
|
|
2945
|
+
isDisabled: [{ type: core.Input }],
|
|
2946
|
+
placeholderText: [{ type: core.Input }],
|
|
2947
|
+
prefixIcon: [{ type: core.Input }],
|
|
2948
|
+
maxLength: [{ type: core.Input }],
|
|
2949
|
+
enableCharacterCount: [{ type: core.Input }],
|
|
2950
|
+
ariaLabel: [{ type: core.Input, args: ['aria-label',] }],
|
|
2951
|
+
ariaLabelledby: [{ type: core.Input, args: ['aria-labelledby',] }],
|
|
2952
|
+
valueChange: [{ type: core.Output }],
|
|
2953
|
+
type: [{ type: core.Input }]
|
|
2954
|
+
};
|
|
2955
|
+
|
|
2956
|
+
var GraniteInputFieldModule = /** @class */ (function () {
|
|
2957
|
+
function GraniteInputFieldModule() {
|
|
2958
|
+
}
|
|
2959
|
+
return GraniteInputFieldModule;
|
|
2960
|
+
}());
|
|
2961
|
+
GraniteInputFieldModule.decorators = [
|
|
2962
|
+
{ type: core.NgModule, args: [{
|
|
2963
|
+
imports: [common.CommonModule, GraniteIconModule, GraniteButtonModule],
|
|
2964
|
+
declarations: [GraniteInputFieldComponent],
|
|
2965
|
+
exports: [GraniteInputFieldComponent],
|
|
2966
|
+
},] }
|
|
2967
|
+
];
|
|
2968
|
+
|
|
2820
2969
|
var ɵ0 = deviceDesktop.output;
|
|
2821
2970
|
/**
|
|
2822
2971
|
* Directive used to tell components and their sub components that client output
|
|
@@ -2928,6 +3077,10 @@
|
|
|
2928
3077
|
},] }
|
|
2929
3078
|
];
|
|
2930
3079
|
|
|
3080
|
+
/*
|
|
3081
|
+
* Public API Surface of ui
|
|
3082
|
+
*/
|
|
3083
|
+
|
|
2931
3084
|
/**
|
|
2932
3085
|
* Generated bundle index. Do not edit.
|
|
2933
3086
|
*/
|
|
@@ -2947,14 +3100,17 @@
|
|
|
2947
3100
|
exports.GraniteBadgeModule = GraniteBadgeModule;
|
|
2948
3101
|
exports.GraniteButtonComponent = GraniteButtonComponent;
|
|
2949
3102
|
exports.GraniteButtonModule = GraniteButtonModule;
|
|
2950
|
-
exports.GraniteComponentsModule = GraniteComponentsModule;
|
|
2951
3103
|
exports.GraniteCoreModule = GraniteCoreModule;
|
|
2952
3104
|
exports.GraniteDividerDirective = GraniteDividerDirective;
|
|
3105
|
+
exports.GraniteFormFieldComponent = GraniteFormFieldComponent;
|
|
3106
|
+
exports.GraniteFormFieldModule = GraniteFormFieldModule;
|
|
2953
3107
|
exports.GraniteGridComponent = GraniteGridComponent;
|
|
2954
3108
|
exports.GraniteGridItemComponent = GraniteGridItemComponent;
|
|
2955
3109
|
exports.GraniteGridModule = GraniteGridModule;
|
|
2956
3110
|
exports.GraniteIconComponent = GraniteIconComponent;
|
|
2957
3111
|
exports.GraniteIconModule = GraniteIconModule;
|
|
3112
|
+
exports.GraniteInputFieldComponent = GraniteInputFieldComponent;
|
|
3113
|
+
exports.GraniteInputFieldModule = GraniteInputFieldModule;
|
|
2958
3114
|
exports.GraniteMenuComponent = GraniteMenuComponent;
|
|
2959
3115
|
exports.GraniteMenuHarness = GraniteMenuHarness;
|
|
2960
3116
|
exports.GraniteMenuItemComponent = GraniteMenuItemComponent;
|