@everymatrix/general-input 1.56.0 → 1.56.3
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/dist/cjs/checkbox-group-input_10.cjs.entry.js +419 -380
- package/dist/cjs/general-input.cjs.entry.js +18 -17
- package/dist/cjs/general-input.cjs.js +3 -3
- package/dist/cjs/{index-a91d7bcb.js → index-bce82d29.js} +76 -211
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/toggle-checkbox-input.cjs.entry.js +25 -14
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +26 -35
- package/dist/collection/components/checkbox-input/checkbox-input.js +23 -31
- package/dist/collection/components/date-input/date-input.js +26 -37
- package/dist/collection/components/email-input/email-input.js +25 -31
- package/dist/collection/components/general-input/general-input.js +18 -51
- package/dist/collection/components/number-input/number-input.js +24 -29
- package/dist/collection/components/password-input/password-input.js +28 -36
- package/dist/collection/components/radio-input/radio-input.js +23 -26
- package/dist/collection/components/select-input/select-input.js +26 -41
- package/dist/collection/components/tel-input/tel-input.js +26 -33
- package/dist/collection/components/text-input/text-input.js +26 -38
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +29 -35
- package/dist/esm/checkbox-group-input_10.entry.js +419 -380
- package/dist/esm/general-input.entry.js +18 -17
- package/dist/esm/general-input.js +4 -4
- package/dist/esm/{index-3bab966c.js → index-34f25346.js} +76 -211
- package/dist/esm/loader.js +3 -3
- package/dist/esm/toggle-checkbox-input.entry.js +25 -14
- package/dist/general-input/general-input.esm.js +1 -1
- package/dist/general-input/{p-a708ec0e.entry.js → p-063fdb7d.entry.js} +186 -188
- package/dist/general-input/p-261db8d1.entry.js +1 -0
- package/dist/general-input/p-8b2b0da7.js +2 -0
- package/dist/general-input/p-e2eb81ed.entry.js +1 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +1 -0
- package/dist/types/components/checkbox-input/checkbox-input.d.ts +1 -0
- package/dist/types/components/date-input/date-input.d.ts +1 -0
- package/dist/types/components/email-input/email-input.d.ts +1 -0
- package/dist/types/components/number-input/number-input.d.ts +1 -0
- package/dist/types/components/password-input/password-input.d.ts +1 -0
- package/dist/types/components/radio-input/radio-input.d.ts +1 -0
- package/dist/types/components/select-input/select-input.d.ts +1 -0
- package/dist/types/components/tel-input/tel-input.d.ts +1 -0
- package/dist/types/components/text-input/text-input.d.ts +1 -0
- package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/general-input/p-5ab8d194.js +0 -2
- package/dist/general-input/p-8ce07665.entry.js +0 -1
- package/dist/general-input/p-9ad71153.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bce82d29.js');
|
|
6
6
|
const locale_utils = require('./locale.utils-345d0792.js');
|
|
7
7
|
const tooltipIcon = require('./tooltipIcon-7e9ee226.js');
|
|
8
8
|
|
|
@@ -12,55 +12,13 @@ const tooltipIcon = require('./tooltipIcon-7e9ee226.js');
|
|
|
12
12
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
window.Vaadin.featureFlags ||= {};
|
|
17
|
-
|
|
18
|
-
function dashToCamelCase$1(dash) {
|
|
19
|
-
return dash.replace(/-[a-z]/gu, (m) => m[1].toUpperCase());
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const experimentalMap = {};
|
|
23
|
-
|
|
24
|
-
function defineCustomElement(CustomElement, version = '24.6.5') {
|
|
15
|
+
function defineCustomElement(CustomElement, version = '24.5.10') {
|
|
25
16
|
Object.defineProperty(CustomElement, 'version', {
|
|
26
17
|
get() {
|
|
27
18
|
return version;
|
|
28
19
|
},
|
|
29
20
|
});
|
|
30
21
|
|
|
31
|
-
if (CustomElement.experimental) {
|
|
32
|
-
const featureFlagKey =
|
|
33
|
-
typeof CustomElement.experimental === 'string'
|
|
34
|
-
? CustomElement.experimental
|
|
35
|
-
: `${dashToCamelCase$1(CustomElement.is.split('-').slice(1).join('-'))}Component`;
|
|
36
|
-
|
|
37
|
-
if (!window.Vaadin.featureFlags[featureFlagKey] && !experimentalMap[featureFlagKey]) {
|
|
38
|
-
// Add setter to define experimental component when it's set to true
|
|
39
|
-
experimentalMap[featureFlagKey] = new Set();
|
|
40
|
-
experimentalMap[featureFlagKey].add(CustomElement);
|
|
41
|
-
|
|
42
|
-
Object.defineProperty(window.Vaadin.featureFlags, featureFlagKey, {
|
|
43
|
-
get() {
|
|
44
|
-
return experimentalMap[featureFlagKey].size === 0;
|
|
45
|
-
},
|
|
46
|
-
set(value) {
|
|
47
|
-
if (!!value && experimentalMap[featureFlagKey].size > 0) {
|
|
48
|
-
experimentalMap[featureFlagKey].forEach((elementClass) => {
|
|
49
|
-
customElements.define(elementClass.is, elementClass);
|
|
50
|
-
});
|
|
51
|
-
experimentalMap[featureFlagKey].clear();
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
return;
|
|
57
|
-
} else if (experimentalMap[featureFlagKey]) {
|
|
58
|
-
// Allow to register multiple components with single flag
|
|
59
|
-
experimentalMap[featureFlagKey].add(CustomElement);
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
22
|
const defined = customElements.get(CustomElement.is);
|
|
65
23
|
if (!defined) {
|
|
66
24
|
customElements.define(CustomElement.is, CustomElement);
|
|
@@ -809,7 +767,7 @@ registerStyles('', color, { moduleId: 'lumo-color' });
|
|
|
809
767
|
const fontIcons = i$3`
|
|
810
768
|
@font-face {
|
|
811
769
|
font-family: 'lumo-icons';
|
|
812
|
-
src: url(data:application/font-woff;charset=utf-8;base64,
|
|
770
|
+
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIu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nIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
813
771
|
format('woff');
|
|
814
772
|
font-weight: normal;
|
|
815
773
|
font-style: normal;
|
|
@@ -839,27 +797,25 @@ const fontIcons = i$3`
|
|
|
839
797
|
--lumo-icons-cog: '\\ea15';
|
|
840
798
|
--lumo-icons-cross: '\\ea16';
|
|
841
799
|
--lumo-icons-download: '\\ea17';
|
|
842
|
-
--lumo-icons-
|
|
843
|
-
--lumo-icons-
|
|
844
|
-
--lumo-icons-
|
|
845
|
-
--lumo-icons-
|
|
846
|
-
--lumo-icons-eye: '\\ea1c';
|
|
847
|
-
--lumo-icons-
|
|
848
|
-
--lumo-icons-
|
|
849
|
-
--lumo-icons-
|
|
850
|
-
--lumo-icons-
|
|
851
|
-
--lumo-icons-
|
|
852
|
-
--lumo-icons-
|
|
853
|
-
--lumo-icons-
|
|
854
|
-
--lumo-icons-
|
|
855
|
-
--lumo-icons-
|
|
856
|
-
--lumo-icons-
|
|
857
|
-
--lumo-icons-
|
|
858
|
-
--lumo-icons-
|
|
859
|
-
--lumo-icons-
|
|
860
|
-
--lumo-icons-
|
|
861
|
-
--lumo-icons-upload: '\\ea2b';
|
|
862
|
-
--lumo-icons-user: '\\ea2c';
|
|
800
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
801
|
+
--lumo-icons-edit: '\\ea19';
|
|
802
|
+
--lumo-icons-error: '\\ea1a';
|
|
803
|
+
--lumo-icons-eye: '\\ea1b';
|
|
804
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
805
|
+
--lumo-icons-menu: '\\ea1d';
|
|
806
|
+
--lumo-icons-minus: '\\ea1e';
|
|
807
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
808
|
+
--lumo-icons-phone: '\\ea20';
|
|
809
|
+
--lumo-icons-photo: '\\ea21';
|
|
810
|
+
--lumo-icons-play: '\\ea22';
|
|
811
|
+
--lumo-icons-plus: '\\ea23';
|
|
812
|
+
--lumo-icons-redo: '\\ea24';
|
|
813
|
+
--lumo-icons-reload: '\\ea25';
|
|
814
|
+
--lumo-icons-search: '\\ea26';
|
|
815
|
+
--lumo-icons-undo: '\\ea27';
|
|
816
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
817
|
+
--lumo-icons-upload: '\\ea29';
|
|
818
|
+
--lumo-icons-user: '\\ea2a';
|
|
863
819
|
}
|
|
864
820
|
`;
|
|
865
821
|
|
|
@@ -11204,7 +11160,6 @@ const DisabledMixin = dedupingMixin(
|
|
|
11204
11160
|
value: false,
|
|
11205
11161
|
observer: '_disabledChanged',
|
|
11206
11162
|
reflectToAttribute: true,
|
|
11207
|
-
sync: true,
|
|
11208
11163
|
},
|
|
11209
11164
|
};
|
|
11210
11165
|
}
|
|
@@ -12328,8 +12283,6 @@ const InputMixin = dedupingMixin(
|
|
|
12328
12283
|
if (this.inputElement) {
|
|
12329
12284
|
this.inputElement[this._inputElementValueProperty] = value;
|
|
12330
12285
|
}
|
|
12331
|
-
|
|
12332
|
-
this._hasInputValue = value && value.length > 0;
|
|
12333
12286
|
}
|
|
12334
12287
|
|
|
12335
12288
|
/**
|
|
@@ -12523,7 +12476,6 @@ const CheckedMixin = dedupingMixin(
|
|
|
12523
12476
|
value: false,
|
|
12524
12477
|
notify: true,
|
|
12525
12478
|
reflectToAttribute: true,
|
|
12526
|
-
sync: true,
|
|
12527
12479
|
},
|
|
12528
12480
|
};
|
|
12529
12481
|
}
|
|
@@ -13559,22 +13511,6 @@ const ValidateMixin = dedupingMixin(
|
|
|
13559
13511
|
value: false,
|
|
13560
13512
|
},
|
|
13561
13513
|
|
|
13562
|
-
/**
|
|
13563
|
-
* Set to true to enable manual validation mode. This mode disables automatic
|
|
13564
|
-
* constraint validation, allowing you to control the validation process yourself.
|
|
13565
|
-
* You can still trigger constraint validation manually with the `validate()` method
|
|
13566
|
-
* or use `checkValidity()` to assess the component's validity without affecting
|
|
13567
|
-
* the invalid state. In manual validation mode, you can also manipulate
|
|
13568
|
-
* the `invalid` property directly through your application logic without conflicts
|
|
13569
|
-
* with the component's internal validation.
|
|
13570
|
-
*
|
|
13571
|
-
* @attr {boolean} manual-validation
|
|
13572
|
-
*/
|
|
13573
|
-
manualValidation: {
|
|
13574
|
-
type: Boolean,
|
|
13575
|
-
value: false,
|
|
13576
|
-
},
|
|
13577
|
-
|
|
13578
13514
|
/**
|
|
13579
13515
|
* Specifies that the user must fill in a value.
|
|
13580
13516
|
*/
|
|
@@ -13629,14 +13565,6 @@ const ValidateMixin = dedupingMixin(
|
|
|
13629
13565
|
return true;
|
|
13630
13566
|
}
|
|
13631
13567
|
|
|
13632
|
-
/** @protected */
|
|
13633
|
-
_requestValidation() {
|
|
13634
|
-
if (!this.manualValidation) {
|
|
13635
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
13636
|
-
this.validate();
|
|
13637
|
-
}
|
|
13638
|
-
}
|
|
13639
|
-
|
|
13640
13568
|
/**
|
|
13641
13569
|
* Fired whenever the field is validated.
|
|
13642
13570
|
*
|
|
@@ -14159,14 +14087,14 @@ const CheckboxMixin = (superclass) =>
|
|
|
14159
14087
|
// Do not validate when focusout is caused by document
|
|
14160
14088
|
// losing focus, which happens on browser tab switch.
|
|
14161
14089
|
if (!focused && document.hasFocus()) {
|
|
14162
|
-
this.
|
|
14090
|
+
this.validate();
|
|
14163
14091
|
}
|
|
14164
14092
|
}
|
|
14165
14093
|
|
|
14166
14094
|
/** @private */
|
|
14167
14095
|
_checkedChanged(checked) {
|
|
14168
14096
|
if (checked || this.__oldChecked) {
|
|
14169
|
-
this.
|
|
14097
|
+
this.validate();
|
|
14170
14098
|
}
|
|
14171
14099
|
|
|
14172
14100
|
this.__oldChecked = checked;
|
|
@@ -14183,7 +14111,7 @@ const CheckboxMixin = (superclass) =>
|
|
|
14183
14111
|
super._requiredChanged(required);
|
|
14184
14112
|
|
|
14185
14113
|
if (required === false) {
|
|
14186
|
-
this.
|
|
14114
|
+
this.validate();
|
|
14187
14115
|
}
|
|
14188
14116
|
}
|
|
14189
14117
|
|
|
@@ -14883,7 +14811,7 @@ const CheckboxGroupMixin = (superclass) =>
|
|
|
14883
14811
|
});
|
|
14884
14812
|
|
|
14885
14813
|
if (oldValue !== undefined) {
|
|
14886
|
-
this.
|
|
14814
|
+
this.validate();
|
|
14887
14815
|
}
|
|
14888
14816
|
}
|
|
14889
14817
|
|
|
@@ -14923,7 +14851,7 @@ const CheckboxGroupMixin = (superclass) =>
|
|
|
14923
14851
|
// Do not validate when focusout is caused by document
|
|
14924
14852
|
// losing focus, which happens on browser tab switch.
|
|
14925
14853
|
if (!focused && document.hasFocus()) {
|
|
14926
|
-
this.
|
|
14854
|
+
this.validate();
|
|
14927
14855
|
}
|
|
14928
14856
|
}
|
|
14929
14857
|
};
|
|
@@ -15063,23 +14991,31 @@ const CheckboxGroupInput = class {
|
|
|
15063
14991
|
index.registerInstance(this, hostRef);
|
|
15064
14992
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
15065
14993
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
15066
|
-
/**
|
|
15067
|
-
* Default value for the input.
|
|
15068
|
-
*/
|
|
15069
|
-
this.defaultValue = '';
|
|
15070
|
-
/**
|
|
15071
|
-
* Client custom styling via inline style
|
|
15072
|
-
*/
|
|
15073
|
-
this.clientStyling = '';
|
|
15074
|
-
this.limitStylingAppends = false;
|
|
15075
|
-
this.showTooltip = false;
|
|
15076
|
-
this.selectedValues = [];
|
|
15077
14994
|
this.value = null;
|
|
15078
14995
|
this.setClientStyling = () => {
|
|
15079
14996
|
let sheet = document.createElement('style');
|
|
15080
14997
|
sheet.innerHTML = this.clientStyling;
|
|
15081
14998
|
this.stylingContainer.prepend(sheet);
|
|
15082
14999
|
};
|
|
15000
|
+
this.name = undefined;
|
|
15001
|
+
this.displayName = undefined;
|
|
15002
|
+
this.defaultValue = '';
|
|
15003
|
+
this.autofilled = undefined;
|
|
15004
|
+
this.tooltip = undefined;
|
|
15005
|
+
this.options = undefined;
|
|
15006
|
+
this.validation = undefined;
|
|
15007
|
+
this.language = undefined;
|
|
15008
|
+
this.emitValue = undefined;
|
|
15009
|
+
this.clientStyling = '';
|
|
15010
|
+
this.errorMessage = undefined;
|
|
15011
|
+
this.isValid = undefined;
|
|
15012
|
+
this.limitStylingAppends = false;
|
|
15013
|
+
this.showTooltip = false;
|
|
15014
|
+
this.selectedValues = [];
|
|
15015
|
+
}
|
|
15016
|
+
handleStylingChange(newValue, oldValue) {
|
|
15017
|
+
if (newValue !== oldValue)
|
|
15018
|
+
this.setClientStyling();
|
|
15083
15019
|
}
|
|
15084
15020
|
validityChanged() {
|
|
15085
15021
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -15155,13 +15091,14 @@ const CheckboxGroupInput = class {
|
|
|
15155
15091
|
return (index.h("label", { class: 'checkbox__label', htmlFor: `${this.name}__input`, slot: 'label' }, index.h("div", { class: 'checkbox__label-text', innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
|
|
15156
15092
|
}
|
|
15157
15093
|
render() {
|
|
15158
|
-
return index.h("div", { key: '
|
|
15159
|
-
index.h("img", { key: '
|
|
15094
|
+
return index.h("div", { key: 'c25b0a1ac187ea0abf1fe8c69d584eee00568177', class: `checkboxgroup__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: 'daf512e7f98d20bae65e43ab869e45babc008e90', class: 'checkboxgroup__wrapper--flex' }, index.h("vaadin-checkbox", { key: '08e31269cf2ace61c4c929a6a597486555667197', class: 'checkbox__input', checked: this.selectedValues.length === this.options.length || this.defaultValue === 'true', indeterminate: this.selectedValues.length > 0 && this.selectedValues.length < this.options.length, onChange: (e) => this.handleParentCheckbox(e) }, this.renderLabel()), this.tooltip &&
|
|
15095
|
+
index.h("img", { key: 'ed4c3efd6b7e30ae0b68de11093b8faf2cb0a845', class: 'checkboxgroup__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), index.h("small", { key: '5b95c4059a2de898c04bf147e89c5a2ad035dddf', class: 'checkboxgroup__error-message' }, this.errorMessage), index.h("vaadin-checkbox-group", { key: '2b73ac73d52c6185358e50eda4c9706643f55384', theme: "vertical", value: this.selectedValues, "on-value-changed": (event) => {
|
|
15160
15096
|
this.selectedValues = event.detail.value;
|
|
15161
15097
|
} }, this.options.map((checkbox) => index.h("vaadin-checkbox", { class: 'checkbox__input', name: checkbox.name, value: checkbox.name, label: checkbox.displayName }))));
|
|
15162
15098
|
}
|
|
15163
15099
|
get element() { return index.getElement(this); }
|
|
15164
15100
|
static get watchers() { return {
|
|
15101
|
+
"clientStyling": ["handleStylingChange"],
|
|
15165
15102
|
"isValid": ["validityChanged"],
|
|
15166
15103
|
"selectedValues": ["setValue"],
|
|
15167
15104
|
"emitValue": ["emitValueHandler"]
|
|
@@ -15177,22 +15114,29 @@ const CheckboxInput = class {
|
|
|
15177
15114
|
index.registerInstance(this, hostRef);
|
|
15178
15115
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
15179
15116
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
15180
|
-
/**
|
|
15181
|
-
* Default value for the input.
|
|
15182
|
-
*/
|
|
15183
|
-
this.defaultValue = '';
|
|
15184
|
-
/**
|
|
15185
|
-
* Client custom styling via inline style
|
|
15186
|
-
*/
|
|
15187
|
-
this.clientStyling = '';
|
|
15188
|
-
this.limitStylingAppends = false;
|
|
15189
|
-
this.showTooltip = false;
|
|
15190
15117
|
this.value = '';
|
|
15191
15118
|
this.setClientStyling = () => {
|
|
15192
15119
|
let sheet = document.createElement('style');
|
|
15193
15120
|
sheet.innerHTML = this.clientStyling;
|
|
15194
15121
|
this.stylingContainer.prepend(sheet);
|
|
15195
15122
|
};
|
|
15123
|
+
this.name = undefined;
|
|
15124
|
+
this.displayName = undefined;
|
|
15125
|
+
this.defaultValue = '';
|
|
15126
|
+
this.autofilled = undefined;
|
|
15127
|
+
this.tooltip = undefined;
|
|
15128
|
+
this.validation = undefined;
|
|
15129
|
+
this.language = undefined;
|
|
15130
|
+
this.emitValue = undefined;
|
|
15131
|
+
this.clientStyling = '';
|
|
15132
|
+
this.errorMessage = undefined;
|
|
15133
|
+
this.isValid = undefined;
|
|
15134
|
+
this.limitStylingAppends = false;
|
|
15135
|
+
this.showTooltip = false;
|
|
15136
|
+
}
|
|
15137
|
+
handleStylingChange(newValue, oldValue) {
|
|
15138
|
+
if (newValue !== oldValue)
|
|
15139
|
+
this.setClientStyling();
|
|
15196
15140
|
}
|
|
15197
15141
|
validityChanged() {
|
|
15198
15142
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -15256,10 +15200,11 @@ const CheckboxInput = class {
|
|
|
15256
15200
|
return null;
|
|
15257
15201
|
}
|
|
15258
15202
|
render() {
|
|
15259
|
-
return index.h("div", { key: '
|
|
15260
|
-
index.h("img", { key: '
|
|
15203
|
+
return index.h("div", { key: '8c80c955bb052558165a4c5b1020d0582ed0af36', class: `checkbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("input", { key: '89401d543cb30b72ec614b0cd4e95b2e82b2522d', class: 'checkbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel(), index.h("small", { key: 'd007d8c02dd014a363e2fcc1a0e8df6ffda34bcb', class: 'checkbox__error-message' }, this.errorMessage), index.h("div", { key: 'c511c07684173359663d4907371efb82289f0433', class: 'checkbox__wrapper--relative' }, this.tooltip &&
|
|
15204
|
+
index.h("img", { key: 'dd263ce86efd89f34078f3cc24729f43f40e89a6', class: 'checkbox__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()));
|
|
15261
15205
|
}
|
|
15262
15206
|
static get watchers() { return {
|
|
15207
|
+
"clientStyling": ["handleStylingChange"],
|
|
15263
15208
|
"isValid": ["validityChanged"],
|
|
15264
15209
|
"emitValue": ["emitValueHandler"]
|
|
15265
15210
|
}; }
|
|
@@ -17601,7 +17546,6 @@ const OverlayMixin = (superClass) =>
|
|
|
17601
17546
|
notify: true,
|
|
17602
17547
|
observer: '_openedChanged',
|
|
17603
17548
|
reflectToAttribute: true,
|
|
17604
|
-
sync: true,
|
|
17605
17549
|
},
|
|
17606
17550
|
|
|
17607
17551
|
/**
|
|
@@ -17610,7 +17554,6 @@ const OverlayMixin = (superClass) =>
|
|
|
17610
17554
|
*/
|
|
17611
17555
|
owner: {
|
|
17612
17556
|
type: Object,
|
|
17613
|
-
sync: true,
|
|
17614
17557
|
},
|
|
17615
17558
|
|
|
17616
17559
|
/**
|
|
@@ -17618,7 +17561,6 @@ const OverlayMixin = (superClass) =>
|
|
|
17618
17561
|
*/
|
|
17619
17562
|
model: {
|
|
17620
17563
|
type: Object,
|
|
17621
|
-
sync: true,
|
|
17622
17564
|
},
|
|
17623
17565
|
|
|
17624
17566
|
/**
|
|
@@ -17632,7 +17574,6 @@ const OverlayMixin = (superClass) =>
|
|
|
17632
17574
|
*/
|
|
17633
17575
|
renderer: {
|
|
17634
17576
|
type: Object,
|
|
17635
|
-
sync: true,
|
|
17636
17577
|
},
|
|
17637
17578
|
|
|
17638
17579
|
/**
|
|
@@ -17645,7 +17586,6 @@ const OverlayMixin = (superClass) =>
|
|
|
17645
17586
|
value: false,
|
|
17646
17587
|
reflectToAttribute: true,
|
|
17647
17588
|
observer: '_modelessChanged',
|
|
17648
|
-
sync: true,
|
|
17649
17589
|
},
|
|
17650
17590
|
|
|
17651
17591
|
/**
|
|
@@ -17657,7 +17597,6 @@ const OverlayMixin = (superClass) =>
|
|
|
17657
17597
|
type: Boolean,
|
|
17658
17598
|
reflectToAttribute: true,
|
|
17659
17599
|
observer: '_hiddenChanged',
|
|
17660
|
-
sync: true,
|
|
17661
17600
|
},
|
|
17662
17601
|
|
|
17663
17602
|
/**
|
|
@@ -17668,7 +17607,6 @@ const OverlayMixin = (superClass) =>
|
|
|
17668
17607
|
type: Boolean,
|
|
17669
17608
|
value: false,
|
|
17670
17609
|
reflectToAttribute: true,
|
|
17671
|
-
sync: true,
|
|
17672
17610
|
},
|
|
17673
17611
|
};
|
|
17674
17612
|
}
|
|
@@ -19497,21 +19435,6 @@ class InfiniteScroller extends HTMLElement {
|
|
|
19497
19435
|
}
|
|
19498
19436
|
}
|
|
19499
19437
|
|
|
19500
|
-
/** @protected */
|
|
19501
|
-
disconnectedCallback() {
|
|
19502
|
-
if (this._debouncerScrollFinish) {
|
|
19503
|
-
this._debouncerScrollFinish.cancel();
|
|
19504
|
-
}
|
|
19505
|
-
|
|
19506
|
-
if (this._debouncerUpdateClones) {
|
|
19507
|
-
this._debouncerUpdateClones.cancel();
|
|
19508
|
-
}
|
|
19509
|
-
|
|
19510
|
-
if (this.__pendingFinishInit) {
|
|
19511
|
-
cancelAnimationFrame(this.__pendingFinishInit);
|
|
19512
|
-
}
|
|
19513
|
-
}
|
|
19514
|
-
|
|
19515
19438
|
/**
|
|
19516
19439
|
* Force the scroller to update clones after a reset, without
|
|
19517
19440
|
* waiting for the debouncer to resolve.
|
|
@@ -19659,9 +19582,8 @@ class InfiniteScroller extends HTMLElement {
|
|
|
19659
19582
|
}
|
|
19660
19583
|
});
|
|
19661
19584
|
|
|
19662
|
-
|
|
19585
|
+
requestAnimationFrame(() => {
|
|
19663
19586
|
this._finishInit();
|
|
19664
|
-
this.__pendingFinishInit = null;
|
|
19665
19587
|
});
|
|
19666
19588
|
}
|
|
19667
19589
|
|
|
@@ -19676,10 +19598,6 @@ class InfiniteScroller extends HTMLElement {
|
|
|
19676
19598
|
itemWrapper.instance = this._createElement();
|
|
19677
19599
|
itemWrapper.appendChild(itemWrapper.instance);
|
|
19678
19600
|
|
|
19679
|
-
if (itemWrapper.instance.performUpdate) {
|
|
19680
|
-
itemWrapper.instance.performUpdate();
|
|
19681
|
-
}
|
|
19682
|
-
|
|
19683
19601
|
Object.keys(tmpInstance).forEach((prop) => {
|
|
19684
19602
|
itemWrapper.instance[prop] = tmpInstance[prop];
|
|
19685
19603
|
});
|
|
@@ -21697,10 +21615,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
21697
21615
|
value: () => false,
|
|
21698
21616
|
},
|
|
21699
21617
|
|
|
21700
|
-
enteredDate: {
|
|
21701
|
-
type: Date,
|
|
21702
|
-
},
|
|
21703
|
-
|
|
21704
21618
|
disabled: {
|
|
21705
21619
|
type: Boolean,
|
|
21706
21620
|
reflectToAttribute: true,
|
|
@@ -21720,11 +21634,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
21720
21634
|
_notTapping: {
|
|
21721
21635
|
type: Boolean,
|
|
21722
21636
|
},
|
|
21723
|
-
|
|
21724
|
-
/** @private */
|
|
21725
|
-
__hasFocus: {
|
|
21726
|
-
type: Boolean,
|
|
21727
|
-
},
|
|
21728
21637
|
};
|
|
21729
21638
|
}
|
|
21730
21639
|
|
|
@@ -21744,12 +21653,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
21744
21653
|
addListener(this.$.monthGrid, 'tap', this._handleTap.bind(this));
|
|
21745
21654
|
}
|
|
21746
21655
|
|
|
21747
|
-
/** @override */
|
|
21748
|
-
_setFocused(focused) {
|
|
21749
|
-
super._setFocused(focused);
|
|
21750
|
-
this.__hasFocus = focused;
|
|
21751
|
-
}
|
|
21752
|
-
|
|
21753
21656
|
/**
|
|
21754
21657
|
* Returns true if all the dates in the month are out of the allowed range
|
|
21755
21658
|
* @protected
|
|
@@ -22045,7 +21948,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
22045
21948
|
<template is="dom-repeat" items="[[week]]">
|
|
22046
21949
|
<td
|
|
22047
21950
|
role="gridcell"
|
|
22048
|
-
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled
|
|
21951
|
+
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled)]]"
|
|
22049
21952
|
date="[[item]]"
|
|
22050
21953
|
tabindex$="[[__getDayTabindex(item, focusedDate)]]"
|
|
22051
21954
|
disabled$="[[__isDayDisabled(item, minDate, maxDate, isDateDisabled)]]"
|
|
@@ -22103,7 +22006,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
22103
22006
|
|
|
22104
22007
|
/** @private */
|
|
22105
22008
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
22106
|
-
__getDatePart(date, focusedDate, selectedDate, minDate, maxDate, isDateDisabled
|
|
22009
|
+
__getDatePart(date, focusedDate, selectedDate, minDate, maxDate, isDateDisabled) {
|
|
22107
22010
|
const result = ['date'];
|
|
22108
22011
|
const greaterThanToday = date > normalizeDate(new Date());
|
|
22109
22012
|
const lessThanToday = date < normalizeDate(new Date());
|
|
@@ -22112,7 +22015,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
22112
22015
|
result.push('disabled');
|
|
22113
22016
|
}
|
|
22114
22017
|
|
|
22115
|
-
if (
|
|
22018
|
+
if (this.__isDayFocused(date, focusedDate)) {
|
|
22116
22019
|
result.push('focused');
|
|
22117
22020
|
}
|
|
22118
22021
|
|
|
@@ -22135,6 +22038,11 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
22135
22038
|
return result.join(' ');
|
|
22136
22039
|
}
|
|
22137
22040
|
|
|
22041
|
+
/** @private */
|
|
22042
|
+
__isDayFocused(date, focusedDate) {
|
|
22043
|
+
return dateEquals(date, focusedDate);
|
|
22044
|
+
}
|
|
22045
|
+
|
|
22138
22046
|
/** @private */
|
|
22139
22047
|
__isDaySelected(date, selectedDate) {
|
|
22140
22048
|
return dateEquals(date, selectedDate);
|
|
@@ -22165,7 +22073,11 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
22165
22073
|
|
|
22166
22074
|
/** @private */
|
|
22167
22075
|
__getDayTabindex(date, focusedDate) {
|
|
22168
|
-
|
|
22076
|
+
if (this.__isDayFocused(date, focusedDate)) {
|
|
22077
|
+
return '0';
|
|
22078
|
+
}
|
|
22079
|
+
|
|
22080
|
+
return '-1';
|
|
22169
22081
|
}
|
|
22170
22082
|
}
|
|
22171
22083
|
|
|
@@ -22284,7 +22196,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
22284
22196
|
initialPosition: {
|
|
22285
22197
|
type: Object,
|
|
22286
22198
|
observer: '_initialPositionChanged',
|
|
22287
|
-
sync: true,
|
|
22288
22199
|
},
|
|
22289
22200
|
|
|
22290
22201
|
_originDate: {
|
|
@@ -22352,11 +22263,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
22352
22263
|
type: Function,
|
|
22353
22264
|
},
|
|
22354
22265
|
|
|
22355
|
-
enteredDate: {
|
|
22356
|
-
type: Date,
|
|
22357
|
-
sync: true,
|
|
22358
|
-
},
|
|
22359
|
-
|
|
22360
22266
|
/**
|
|
22361
22267
|
* Input label
|
|
22362
22268
|
*/
|
|
@@ -22384,7 +22290,7 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
22384
22290
|
|
|
22385
22291
|
static get observers() {
|
|
22386
22292
|
return [
|
|
22387
|
-
'__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled
|
|
22293
|
+
'__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)',
|
|
22388
22294
|
'__updateCancelButton(_cancelButton, i18n)',
|
|
22389
22295
|
'__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)',
|
|
22390
22296
|
'__updateYears(years, selectedDate, _theme)',
|
|
@@ -22572,7 +22478,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
22572
22478
|
ignoreTaps,
|
|
22573
22479
|
theme,
|
|
22574
22480
|
isDateDisabled,
|
|
22575
|
-
enteredDate,
|
|
22576
22481
|
) {
|
|
22577
22482
|
if (calendars && calendars.length) {
|
|
22578
22483
|
calendars.forEach((calendar) => {
|
|
@@ -22584,7 +22489,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
22584
22489
|
calendar.selectedDate = selectedDate;
|
|
22585
22490
|
calendar.showWeekNumbers = showWeekNumbers;
|
|
22586
22491
|
calendar.ignoreTaps = ignoreTaps;
|
|
22587
|
-
calendar.enteredDate = enteredDate;
|
|
22588
22492
|
|
|
22589
22493
|
if (theme) {
|
|
22590
22494
|
calendar.setAttribute('theme', theme);
|
|
@@ -23693,8 +23597,8 @@ const InputConstraintsMixin = dedupingMixin(
|
|
|
23693
23597
|
const isLastConstraintRemoved = this.__previousHasConstraints && !hasConstraints;
|
|
23694
23598
|
|
|
23695
23599
|
if ((this._hasValue || this.invalid) && hasConstraints) {
|
|
23696
|
-
this.
|
|
23697
|
-
} else if (isLastConstraintRemoved
|
|
23600
|
+
this.validate();
|
|
23601
|
+
} else if (isLastConstraintRemoved) {
|
|
23698
23602
|
this._setInvalid(false);
|
|
23699
23603
|
}
|
|
23700
23604
|
|
|
@@ -23712,7 +23616,7 @@ const InputConstraintsMixin = dedupingMixin(
|
|
|
23712
23616
|
_onChange(event) {
|
|
23713
23617
|
event.stopPropagation();
|
|
23714
23618
|
|
|
23715
|
-
this.
|
|
23619
|
+
this.validate();
|
|
23716
23620
|
|
|
23717
23621
|
this.dispatchEvent(
|
|
23718
23622
|
new CustomEvent('change', {
|
|
@@ -23855,6 +23759,30 @@ const InputControlMixin = (superclass) =>
|
|
|
23855
23759
|
}
|
|
23856
23760
|
}
|
|
23857
23761
|
|
|
23762
|
+
/**
|
|
23763
|
+
* Override an event listener inherited from `InputMixin`
|
|
23764
|
+
* to capture native `change` event and make sure that
|
|
23765
|
+
* a new one is dispatched after validation runs.
|
|
23766
|
+
* @param {Event} event
|
|
23767
|
+
* @protected
|
|
23768
|
+
* @override
|
|
23769
|
+
*/
|
|
23770
|
+
_onChange(event) {
|
|
23771
|
+
event.stopPropagation();
|
|
23772
|
+
|
|
23773
|
+
this.validate();
|
|
23774
|
+
|
|
23775
|
+
this.dispatchEvent(
|
|
23776
|
+
new CustomEvent('change', {
|
|
23777
|
+
detail: {
|
|
23778
|
+
sourceEvent: event,
|
|
23779
|
+
},
|
|
23780
|
+
bubbles: event.bubbles,
|
|
23781
|
+
cancelable: event.cancelable,
|
|
23782
|
+
}),
|
|
23783
|
+
);
|
|
23784
|
+
}
|
|
23785
|
+
|
|
23858
23786
|
/**
|
|
23859
23787
|
* Override a method from `InputMixin`.
|
|
23860
23788
|
* @param {!HTMLElement} input
|
|
@@ -24190,62 +24118,6 @@ class VirtualKeyboardController {
|
|
|
24190
24118
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
24191
24119
|
*/
|
|
24192
24120
|
|
|
24193
|
-
const datePickerI18nDefaults = Object.freeze({
|
|
24194
|
-
monthNames: [
|
|
24195
|
-
'January',
|
|
24196
|
-
'February',
|
|
24197
|
-
'March',
|
|
24198
|
-
'April',
|
|
24199
|
-
'May',
|
|
24200
|
-
'June',
|
|
24201
|
-
'July',
|
|
24202
|
-
'August',
|
|
24203
|
-
'September',
|
|
24204
|
-
'October',
|
|
24205
|
-
'November',
|
|
24206
|
-
'December',
|
|
24207
|
-
],
|
|
24208
|
-
weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
24209
|
-
weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
24210
|
-
firstDayOfWeek: 0,
|
|
24211
|
-
today: 'Today',
|
|
24212
|
-
cancel: 'Cancel',
|
|
24213
|
-
referenceDate: '',
|
|
24214
|
-
formatDate(d) {
|
|
24215
|
-
const yearStr = String(d.year).replace(/\d+/u, (y) => '0000'.substr(y.length) + y);
|
|
24216
|
-
return [d.month + 1, d.day, yearStr].join('/');
|
|
24217
|
-
},
|
|
24218
|
-
parseDate(text) {
|
|
24219
|
-
const parts = text.split('/');
|
|
24220
|
-
const today = new Date();
|
|
24221
|
-
let date,
|
|
24222
|
-
month = today.getMonth(),
|
|
24223
|
-
year = today.getFullYear();
|
|
24224
|
-
|
|
24225
|
-
if (parts.length === 3) {
|
|
24226
|
-
month = parseInt(parts[0]) - 1;
|
|
24227
|
-
date = parseInt(parts[1]);
|
|
24228
|
-
year = parseInt(parts[2]);
|
|
24229
|
-
if (parts[2].length < 3 && year >= 0) {
|
|
24230
|
-
const usedReferenceDate = this.referenceDate ? parseDate(this.referenceDate) : new Date();
|
|
24231
|
-
year = getAdjustedYear(usedReferenceDate, year, month, date);
|
|
24232
|
-
}
|
|
24233
|
-
} else if (parts.length === 2) {
|
|
24234
|
-
month = parseInt(parts[0]) - 1;
|
|
24235
|
-
date = parseInt(parts[1]);
|
|
24236
|
-
} else if (parts.length === 1) {
|
|
24237
|
-
date = parseInt(parts[0]);
|
|
24238
|
-
}
|
|
24239
|
-
|
|
24240
|
-
if (date !== undefined) {
|
|
24241
|
-
return { day: date, month, year };
|
|
24242
|
-
}
|
|
24243
|
-
},
|
|
24244
|
-
formatTitle: (monthName, fullYear) => {
|
|
24245
|
-
return `${monthName} ${fullYear}`;
|
|
24246
|
-
},
|
|
24247
|
-
});
|
|
24248
|
-
|
|
24249
24121
|
/**
|
|
24250
24122
|
* @polymerMixin
|
|
24251
24123
|
* @mixes ControllerMixin
|
|
@@ -24319,10 +24191,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
24319
24191
|
* Set true to prevent the overlay from opening automatically.
|
|
24320
24192
|
* @attr {boolean} auto-open-disabled
|
|
24321
24193
|
*/
|
|
24322
|
-
autoOpenDisabled:
|
|
24323
|
-
type: Boolean,
|
|
24324
|
-
sync: true,
|
|
24325
|
-
},
|
|
24194
|
+
autoOpenDisabled: Boolean,
|
|
24326
24195
|
|
|
24327
24196
|
/**
|
|
24328
24197
|
* Set true to display ISO-8601 week numbers in the calendar. Notice that
|
|
@@ -24443,7 +24312,63 @@ const DatePickerMixin = (subclass) =>
|
|
|
24443
24312
|
i18n: {
|
|
24444
24313
|
type: Object,
|
|
24445
24314
|
sync: true,
|
|
24446
|
-
value: () =>
|
|
24315
|
+
value: () => {
|
|
24316
|
+
return {
|
|
24317
|
+
monthNames: [
|
|
24318
|
+
'January',
|
|
24319
|
+
'February',
|
|
24320
|
+
'March',
|
|
24321
|
+
'April',
|
|
24322
|
+
'May',
|
|
24323
|
+
'June',
|
|
24324
|
+
'July',
|
|
24325
|
+
'August',
|
|
24326
|
+
'September',
|
|
24327
|
+
'October',
|
|
24328
|
+
'November',
|
|
24329
|
+
'December',
|
|
24330
|
+
],
|
|
24331
|
+
weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
24332
|
+
weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
24333
|
+
firstDayOfWeek: 0,
|
|
24334
|
+
today: 'Today',
|
|
24335
|
+
cancel: 'Cancel',
|
|
24336
|
+
referenceDate: '',
|
|
24337
|
+
formatDate(d) {
|
|
24338
|
+
const yearStr = String(d.year).replace(/\d+/u, (y) => '0000'.substr(y.length) + y);
|
|
24339
|
+
return [d.month + 1, d.day, yearStr].join('/');
|
|
24340
|
+
},
|
|
24341
|
+
parseDate(text) {
|
|
24342
|
+
const parts = text.split('/');
|
|
24343
|
+
const today = new Date();
|
|
24344
|
+
let date,
|
|
24345
|
+
month = today.getMonth(),
|
|
24346
|
+
year = today.getFullYear();
|
|
24347
|
+
|
|
24348
|
+
if (parts.length === 3) {
|
|
24349
|
+
month = parseInt(parts[0]) - 1;
|
|
24350
|
+
date = parseInt(parts[1]);
|
|
24351
|
+
year = parseInt(parts[2]);
|
|
24352
|
+
if (parts[2].length < 3 && year >= 0) {
|
|
24353
|
+
const usedReferenceDate = this.referenceDate ? parseDate(this.referenceDate) : new Date();
|
|
24354
|
+
year = getAdjustedYear(usedReferenceDate, year, month, date);
|
|
24355
|
+
}
|
|
24356
|
+
} else if (parts.length === 2) {
|
|
24357
|
+
month = parseInt(parts[0]) - 1;
|
|
24358
|
+
date = parseInt(parts[1]);
|
|
24359
|
+
} else if (parts.length === 1) {
|
|
24360
|
+
date = parseInt(parts[0]);
|
|
24361
|
+
}
|
|
24362
|
+
|
|
24363
|
+
if (date !== undefined) {
|
|
24364
|
+
return { day: date, month, year };
|
|
24365
|
+
}
|
|
24366
|
+
},
|
|
24367
|
+
formatTitle: (monthName, fullYear) => {
|
|
24368
|
+
return `${monthName} ${fullYear}`;
|
|
24369
|
+
},
|
|
24370
|
+
};
|
|
24371
|
+
},
|
|
24447
24372
|
},
|
|
24448
24373
|
|
|
24449
24374
|
/**
|
|
@@ -24528,10 +24453,18 @@ const DatePickerMixin = (subclass) =>
|
|
|
24528
24453
|
sync: true,
|
|
24529
24454
|
},
|
|
24530
24455
|
|
|
24531
|
-
/**
|
|
24532
|
-
|
|
24533
|
-
|
|
24534
|
-
|
|
24456
|
+
/**
|
|
24457
|
+
* In date-picker, unlike other components extending `InputMixin`,
|
|
24458
|
+
* the property indicates true only if the input has been entered by the user.
|
|
24459
|
+
* In the case of programmatic changes, the property is reset to false.
|
|
24460
|
+
* Read more about why this workaround is needed:
|
|
24461
|
+
* https://github.com/vaadin/web-components/issues/5639
|
|
24462
|
+
*
|
|
24463
|
+
* @protected
|
|
24464
|
+
* @override
|
|
24465
|
+
*/
|
|
24466
|
+
_hasInputValue: {
|
|
24467
|
+
type: Boolean,
|
|
24535
24468
|
},
|
|
24536
24469
|
};
|
|
24537
24470
|
}
|
|
@@ -24540,7 +24473,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
24540
24473
|
return [
|
|
24541
24474
|
'_selectedDateChanged(_selectedDate, i18n)',
|
|
24542
24475
|
'_focusedDateChanged(_focusedDate, i18n)',
|
|
24543
|
-
'__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled
|
|
24476
|
+
'__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)',
|
|
24544
24477
|
'__updateOverlayContentTheme(_overlayContent, _theme)',
|
|
24545
24478
|
'__updateOverlayContentFullScreen(_overlayContent, _fullscreen)',
|
|
24546
24479
|
];
|
|
@@ -24558,17 +24491,28 @@ const DatePickerMixin = (subclass) =>
|
|
|
24558
24491
|
this._boundOverlayRenderer = this._overlayRenderer.bind(this);
|
|
24559
24492
|
}
|
|
24560
24493
|
|
|
24561
|
-
/**
|
|
24494
|
+
/**
|
|
24495
|
+
* @override
|
|
24496
|
+
* @protected
|
|
24497
|
+
*/
|
|
24562
24498
|
get _inputElementValue() {
|
|
24563
24499
|
return super._inputElementValue;
|
|
24564
24500
|
}
|
|
24565
24501
|
|
|
24566
|
-
/**
|
|
24502
|
+
/**
|
|
24503
|
+
* The setter is overridden to reset the `_hasInputValue` property
|
|
24504
|
+
* to false when the input element's value is updated programmatically.
|
|
24505
|
+
* In date-picker, `_hasInputValue` is supposed to indicate true only
|
|
24506
|
+
* if the input has been entered by the user.
|
|
24507
|
+
* Read more about why this workaround is needed:
|
|
24508
|
+
* https://github.com/vaadin/web-components/issues/5639
|
|
24509
|
+
*
|
|
24510
|
+
* @override
|
|
24511
|
+
* @protected
|
|
24512
|
+
*/
|
|
24567
24513
|
set _inputElementValue(value) {
|
|
24568
24514
|
super._inputElementValue = value;
|
|
24569
|
-
|
|
24570
|
-
const parsedDate = this.__parseDate(value);
|
|
24571
|
-
this.__setEnteredDate(parsedDate);
|
|
24515
|
+
this._hasInputValue = false;
|
|
24572
24516
|
}
|
|
24573
24517
|
|
|
24574
24518
|
/**
|
|
@@ -24630,7 +24574,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
24630
24574
|
// Do not validate when focusout is caused by document
|
|
24631
24575
|
// losing focus, which happens on browser tab switch.
|
|
24632
24576
|
if (document.hasFocus()) {
|
|
24633
|
-
this.
|
|
24577
|
+
this.validate();
|
|
24634
24578
|
}
|
|
24635
24579
|
}
|
|
24636
24580
|
}
|
|
@@ -24775,8 +24719,13 @@ const DatePickerMixin = (subclass) =>
|
|
|
24775
24719
|
!this._selectedDate || dateAllowed(this._selectedDate, this._minDate, this._maxDate, this.isDateDisabled);
|
|
24776
24720
|
|
|
24777
24721
|
let inputValidity = true;
|
|
24778
|
-
if (this.inputElement
|
|
24779
|
-
|
|
24722
|
+
if (this.inputElement) {
|
|
24723
|
+
if (this.inputElement.checkValidity) {
|
|
24724
|
+
inputValidity = this.inputElement.checkValidity();
|
|
24725
|
+
} else if (this.inputElement.validate) {
|
|
24726
|
+
// Iron-form-elements have the validate API
|
|
24727
|
+
inputValidity = this.inputElement.validate();
|
|
24728
|
+
}
|
|
24780
24729
|
}
|
|
24781
24730
|
|
|
24782
24731
|
return inputValid && isDateValid && inputValidity;
|
|
@@ -24863,10 +24812,10 @@ const DatePickerMixin = (subclass) =>
|
|
|
24863
24812
|
const unparsableValue = this.__unparsableValue;
|
|
24864
24813
|
|
|
24865
24814
|
if (this.__committedValue !== this.value) {
|
|
24866
|
-
this.
|
|
24815
|
+
this.validate();
|
|
24867
24816
|
this.dispatchEvent(new CustomEvent('change', { bubbles: true }));
|
|
24868
24817
|
} else if (this.__committedUnparsableValue !== unparsableValue) {
|
|
24869
|
-
this.
|
|
24818
|
+
this.validate();
|
|
24870
24819
|
this.dispatchEvent(new CustomEvent('unparsable-change'));
|
|
24871
24820
|
}
|
|
24872
24821
|
|
|
@@ -24995,7 +24944,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
24995
24944
|
|
|
24996
24945
|
if (oldValue !== undefined) {
|
|
24997
24946
|
// Validate only if `value` changes after initialization.
|
|
24998
|
-
this.
|
|
24947
|
+
this.validate();
|
|
24999
24948
|
}
|
|
25000
24949
|
}
|
|
25001
24950
|
} else {
|
|
@@ -25022,7 +24971,6 @@ const DatePickerMixin = (subclass) =>
|
|
|
25022
24971
|
selectedDate,
|
|
25023
24972
|
showWeekNumbers,
|
|
25024
24973
|
isDateDisabled,
|
|
25025
|
-
enteredDate,
|
|
25026
24974
|
) {
|
|
25027
24975
|
if (overlayContent) {
|
|
25028
24976
|
overlayContent.i18n = i18n;
|
|
@@ -25033,7 +24981,6 @@ const DatePickerMixin = (subclass) =>
|
|
|
25033
24981
|
overlayContent.selectedDate = selectedDate;
|
|
25034
24982
|
overlayContent.showWeekNumbers = showWeekNumbers;
|
|
25035
24983
|
overlayContent.isDateDisabled = isDateDisabled;
|
|
25036
|
-
overlayContent.enteredDate = enteredDate;
|
|
25037
24984
|
}
|
|
25038
24985
|
}
|
|
25039
24986
|
|
|
@@ -25163,7 +25110,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
25163
25110
|
// Needed in case the value was not changed: open and close dropdown,
|
|
25164
25111
|
// especially on outside click. On Esc key press, do not validate.
|
|
25165
25112
|
if (!this.value && !this._keyboardActive) {
|
|
25166
|
-
this.
|
|
25113
|
+
this.validate();
|
|
25167
25114
|
}
|
|
25168
25115
|
}
|
|
25169
25116
|
|
|
@@ -25355,32 +25302,15 @@ const DatePickerMixin = (subclass) =>
|
|
|
25355
25302
|
this.open();
|
|
25356
25303
|
}
|
|
25357
25304
|
|
|
25358
|
-
|
|
25359
|
-
|
|
25360
|
-
|
|
25361
|
-
|
|
25362
|
-
this._focusedDate
|
|
25363
|
-
|
|
25364
|
-
|
|
25365
|
-
|
|
25366
|
-
|
|
25367
|
-
this.__setEnteredDate(parsedDate);
|
|
25368
|
-
}
|
|
25369
|
-
|
|
25370
|
-
/**
|
|
25371
|
-
* @param {Date} date
|
|
25372
|
-
* @private
|
|
25373
|
-
*/
|
|
25374
|
-
__setEnteredDate(date) {
|
|
25375
|
-
if (date) {
|
|
25376
|
-
if (!dateEquals(this.__enteredDate, date)) {
|
|
25377
|
-
this.__enteredDate = date;
|
|
25305
|
+
if (this._inputElementValue) {
|
|
25306
|
+
const parsedDate = this.__parseDate(this._inputElementValue);
|
|
25307
|
+
if (parsedDate) {
|
|
25308
|
+
this._ignoreFocusedDateChange = true;
|
|
25309
|
+
if (!dateEquals(parsedDate, this._focusedDate)) {
|
|
25310
|
+
this._focusedDate = parsedDate;
|
|
25311
|
+
}
|
|
25312
|
+
this._ignoreFocusedDateChange = false;
|
|
25378
25313
|
}
|
|
25379
|
-
} else if (this.__enteredDate != null) {
|
|
25380
|
-
// Do not override initial undefined value with null
|
|
25381
|
-
// to avoid triggering a Lit update that can cause
|
|
25382
|
-
// other scheduled properties to flush too early.
|
|
25383
|
-
this.__enteredDate = null;
|
|
25384
25314
|
}
|
|
25385
25315
|
}
|
|
25386
25316
|
|
|
@@ -25664,7 +25594,6 @@ class DatePicker extends DatePickerMixin(InputControlMixin(ThemableMixin(Element
|
|
|
25664
25594
|
|
|
25665
25595
|
/** @private */
|
|
25666
25596
|
_onVaadinOverlayClose(e) {
|
|
25667
|
-
// Prevent closing the overlay on label element click
|
|
25668
25597
|
if (e.detail.sourceEvent && e.detail.sourceEvent.composedPath().includes(this)) {
|
|
25669
25598
|
e.preventDefault();
|
|
25670
25599
|
}
|
|
@@ -30769,16 +30698,6 @@ const DateInput = class {
|
|
|
30769
30698
|
index.registerInstance(this, hostRef);
|
|
30770
30699
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
30771
30700
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
30772
|
-
/**
|
|
30773
|
-
* Client custom styling via inline style
|
|
30774
|
-
*/
|
|
30775
|
-
this.clientStyling = '';
|
|
30776
|
-
/**
|
|
30777
|
-
* Emit event on click
|
|
30778
|
-
*/
|
|
30779
|
-
this.emitOnClick = false;
|
|
30780
|
-
this.limitStylingAppends = false;
|
|
30781
|
-
this.showTooltip = false;
|
|
30782
30701
|
this.touched = false;
|
|
30783
30702
|
this.formatDate = (dateParts) => {
|
|
30784
30703
|
const { year, month, day } = dateParts;
|
|
@@ -30799,6 +30718,26 @@ const DateInput = class {
|
|
|
30799
30718
|
sheet.innerHTML = this.clientStyling;
|
|
30800
30719
|
this.stylingContainer.prepend(sheet);
|
|
30801
30720
|
};
|
|
30721
|
+
this.name = undefined;
|
|
30722
|
+
this.displayName = undefined;
|
|
30723
|
+
this.placeholder = undefined;
|
|
30724
|
+
this.validation = undefined;
|
|
30725
|
+
this.defaultValue = undefined;
|
|
30726
|
+
this.autofilled = undefined;
|
|
30727
|
+
this.tooltip = undefined;
|
|
30728
|
+
this.language = undefined;
|
|
30729
|
+
this.emitValue = undefined;
|
|
30730
|
+
this.clientStyling = '';
|
|
30731
|
+
this.dateFormat = undefined;
|
|
30732
|
+
this.emitOnClick = false;
|
|
30733
|
+
this.errorMessage = undefined;
|
|
30734
|
+
this.isValid = undefined;
|
|
30735
|
+
this.limitStylingAppends = false;
|
|
30736
|
+
this.showTooltip = false;
|
|
30737
|
+
}
|
|
30738
|
+
handleStylingChange(newValue, oldValue) {
|
|
30739
|
+
if (newValue !== oldValue)
|
|
30740
|
+
this.setClientStyling();
|
|
30802
30741
|
}
|
|
30803
30742
|
validityChanged() {
|
|
30804
30743
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -30896,11 +30835,12 @@ const DateInput = class {
|
|
|
30896
30835
|
if (this.touched) {
|
|
30897
30836
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
30898
30837
|
}
|
|
30899
|
-
return index.h("div", { key: '
|
|
30900
|
-
index.h("img", { key: '
|
|
30838
|
+
return index.h("div", { key: 'ad6360e0afb065a91f860574f5e3c08f5bdb2534', class: `date__wrapper ${this.autofilled ? 'date__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("label", { key: '3e8d26e0c8ae0983997b84e95cb34887df1f5fe5', class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("vaadin-date-picker", { key: '62ee430506c2ab1a5ebb632d72e84ef905296888', id: `${this.name}__input`, type: 'date', class: `date__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onChange: (e) => this.handleInput(e), onBlur: this.handleBlur }), index.h("small", { key: '6b7c0e9c3437b484bd534060f93ad4fcd9eaeb60', class: 'date__error-message' }, this.errorMessage), this.tooltip &&
|
|
30839
|
+
index.h("img", { key: '6479b29563710abfe1be584c9de110fafe69ca3d', class: 'date__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
30901
30840
|
}
|
|
30902
30841
|
get element() { return index.getElement(this); }
|
|
30903
30842
|
static get watchers() { return {
|
|
30843
|
+
"clientStyling": ["handleStylingChange"],
|
|
30904
30844
|
"isValid": ["validityChanged"],
|
|
30905
30845
|
"emitValue": ["emitValueHandler"]
|
|
30906
30846
|
}; }
|
|
@@ -30915,12 +30855,6 @@ const EmailInput = class {
|
|
|
30915
30855
|
index.registerInstance(this, hostRef);
|
|
30916
30856
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
30917
30857
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
30918
|
-
/**
|
|
30919
|
-
* Client custom styling via inline style
|
|
30920
|
-
*/
|
|
30921
|
-
this.clientStyling = '';
|
|
30922
|
-
this.limitStylingAppends = false;
|
|
30923
|
-
this.showTooltip = false;
|
|
30924
30858
|
this.validationPattern = '';
|
|
30925
30859
|
this.touched = false;
|
|
30926
30860
|
this.handleInput = (event) => {
|
|
@@ -30945,6 +30879,25 @@ const EmailInput = class {
|
|
|
30945
30879
|
sheet.innerHTML = this.clientStyling;
|
|
30946
30880
|
this.stylingContainer.prepend(sheet);
|
|
30947
30881
|
};
|
|
30882
|
+
this.name = undefined;
|
|
30883
|
+
this.displayName = undefined;
|
|
30884
|
+
this.placeholder = undefined;
|
|
30885
|
+
this.validation = undefined;
|
|
30886
|
+
this.defaultValue = undefined;
|
|
30887
|
+
this.autofilled = undefined;
|
|
30888
|
+
this.tooltip = undefined;
|
|
30889
|
+
this.language = undefined;
|
|
30890
|
+
this.emitValue = undefined;
|
|
30891
|
+
this.isDuplicateInput = undefined;
|
|
30892
|
+
this.clientStyling = '';
|
|
30893
|
+
this.errorMessage = undefined;
|
|
30894
|
+
this.isValid = undefined;
|
|
30895
|
+
this.limitStylingAppends = false;
|
|
30896
|
+
this.showTooltip = false;
|
|
30897
|
+
}
|
|
30898
|
+
handleStylingChange(newValue, oldValue) {
|
|
30899
|
+
if (newValue !== oldValue)
|
|
30900
|
+
this.setClientStyling();
|
|
30948
30901
|
}
|
|
30949
30902
|
validityChanged() {
|
|
30950
30903
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -31034,10 +30987,11 @@ const EmailInput = class {
|
|
|
31034
30987
|
if (this.touched) {
|
|
31035
30988
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
31036
30989
|
}
|
|
31037
|
-
return index.h("div", { key: '
|
|
31038
|
-
index.h("img", { key: '
|
|
30990
|
+
return index.h("div", { key: 'a46093cfafc840d2fd563ee9676ccd2f16fb1620', class: `email__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '2eab4a96efc36cdb94e9f92b2a161e208f0ebcd4', class: 'email__wrapper--flex' }, index.h("label", { key: 'f5ed857f61ea6763c5fe88590732258b4dedac1b', class: `email__label ${this.validation.mandatory ? 'email__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '58cadc7857cd91dec968852be71e0108f55fbda7', class: 'email__wrapper--relative' }, this.tooltip &&
|
|
30991
|
+
index.h("img", { key: '03009d036fde1c36b9348ac45cefa3389194260c', class: 'email__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { key: 'b2a9fd96ed301df5f1d7cf6f5a2a5b52f96ab189', id: `${this.name}__input`, type: 'email', class: `email__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), index.h("small", { key: 'edb17f53141a3406bfc657f80098b914044a8894', class: 'email__error-message' }, this.errorMessage));
|
|
31039
30992
|
}
|
|
31040
30993
|
static get watchers() { return {
|
|
30994
|
+
"clientStyling": ["handleStylingChange"],
|
|
31041
30995
|
"isValid": ["validityChanged"],
|
|
31042
30996
|
"emitValue": ["emitValueHandler"]
|
|
31043
30997
|
}; }
|
|
@@ -31052,12 +31006,6 @@ const NumberInput = class {
|
|
|
31052
31006
|
index.registerInstance(this, hostRef);
|
|
31053
31007
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
31054
31008
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
31055
|
-
/**
|
|
31056
|
-
* Client custom styling via inline style
|
|
31057
|
-
*/
|
|
31058
|
-
this.clientStyling = '';
|
|
31059
|
-
this.limitStylingAppends = false;
|
|
31060
|
-
this.showTooltip = false;
|
|
31061
31009
|
this.validationPattern = '';
|
|
31062
31010
|
this.touched = false;
|
|
31063
31011
|
this.handleInput = (event) => {
|
|
@@ -31082,6 +31030,24 @@ const NumberInput = class {
|
|
|
31082
31030
|
sheet.innerHTML = this.clientStyling;
|
|
31083
31031
|
this.stylingContainer.prepend(sheet);
|
|
31084
31032
|
};
|
|
31033
|
+
this.name = undefined;
|
|
31034
|
+
this.displayName = undefined;
|
|
31035
|
+
this.placeholder = undefined;
|
|
31036
|
+
this.validation = undefined;
|
|
31037
|
+
this.defaultValue = undefined;
|
|
31038
|
+
this.autofilled = undefined;
|
|
31039
|
+
this.tooltip = undefined;
|
|
31040
|
+
this.language = undefined;
|
|
31041
|
+
this.emitValue = undefined;
|
|
31042
|
+
this.clientStyling = '';
|
|
31043
|
+
this.errorMessage = undefined;
|
|
31044
|
+
this.isValid = undefined;
|
|
31045
|
+
this.limitStylingAppends = false;
|
|
31046
|
+
this.showTooltip = false;
|
|
31047
|
+
}
|
|
31048
|
+
handleStylingChange(newValue, oldValue) {
|
|
31049
|
+
if (newValue !== oldValue)
|
|
31050
|
+
this.setClientStyling();
|
|
31085
31051
|
}
|
|
31086
31052
|
validityChanged() {
|
|
31087
31053
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -31159,10 +31125,11 @@ const NumberInput = class {
|
|
|
31159
31125
|
if (this.touched) {
|
|
31160
31126
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
31161
31127
|
}
|
|
31162
|
-
return index.h("div", { key: '
|
|
31163
|
-
index.h("img", { key: '
|
|
31128
|
+
return index.h("div", { key: '841265bba6b75cc61a0eac1450c3f5aa5f917a2e', class: `number__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '645c7817cf5a0bdc352de9d8c0698fde235aa6d3', class: 'number__wrapper--flex' }, index.h("label", { key: '3343cbbb8482b71cd152161a8d422f318f07f3fe', class: `number__label ${this.validation.mandatory ? 'number__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '1f3341b2127095870610fc0e0b4b5d220c5d2e2c', class: 'number__wrapper--relative' }, this.tooltip &&
|
|
31129
|
+
index.h("img", { key: '8bbe2fe9f62347cbcd37b753d4a1b0718dc39091', class: 'number__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { key: '100401abdc33069f34e27e0807c9f31ddf7e42ec', ref: (el) => this.inputReference = el, type: "number", value: this.defaultValue, readOnly: this.autofilled, id: `${this.name}__input`, class: `number__input ${invalidClass}`, pattern: this.validationPattern, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onInput: this.handleInput, onBlur: this.handleBlur }), index.h("small", { key: 'db1e0043bb9b6de2ad8e18f49f96152b9451b93c', class: 'number__error-message' }, this.errorMessage));
|
|
31164
31130
|
}
|
|
31165
31131
|
static get watchers() { return {
|
|
31132
|
+
"clientStyling": ["handleStylingChange"],
|
|
31166
31133
|
"isValid": ["validityChanged"],
|
|
31167
31134
|
"emitValue": ["emitValueHandler"]
|
|
31168
31135
|
}; }
|
|
@@ -31277,7 +31244,7 @@ const InputFieldMixin = (superclass) =>
|
|
|
31277
31244
|
// Do not validate when focusout is caused by document
|
|
31278
31245
|
// losing focus, which happens on browser tab switch.
|
|
31279
31246
|
if (!focused && document.hasFocus()) {
|
|
31280
|
-
this.
|
|
31247
|
+
this.validate();
|
|
31281
31248
|
}
|
|
31282
31249
|
}
|
|
31283
31250
|
|
|
@@ -31292,7 +31259,7 @@ const InputFieldMixin = (superclass) =>
|
|
|
31292
31259
|
super._onInput(event);
|
|
31293
31260
|
|
|
31294
31261
|
if (this.invalid) {
|
|
31295
|
-
this.
|
|
31262
|
+
this.validate();
|
|
31296
31263
|
}
|
|
31297
31264
|
}
|
|
31298
31265
|
|
|
@@ -31313,7 +31280,7 @@ const InputFieldMixin = (superclass) =>
|
|
|
31313
31280
|
}
|
|
31314
31281
|
|
|
31315
31282
|
if (this.invalid) {
|
|
31316
|
-
this.
|
|
31283
|
+
this.validate();
|
|
31317
31284
|
}
|
|
31318
31285
|
}
|
|
31319
31286
|
};
|
|
@@ -31507,6 +31474,24 @@ class TextField extends TextFieldMixin(ThemableMixin(ElementMixin(PolymerElement
|
|
|
31507
31474
|
`;
|
|
31508
31475
|
}
|
|
31509
31476
|
|
|
31477
|
+
static get properties() {
|
|
31478
|
+
return {
|
|
31479
|
+
/**
|
|
31480
|
+
* Maximum number of characters (in Unicode code points) that the user can enter.
|
|
31481
|
+
*/
|
|
31482
|
+
maxlength: {
|
|
31483
|
+
type: Number,
|
|
31484
|
+
},
|
|
31485
|
+
|
|
31486
|
+
/**
|
|
31487
|
+
* Minimum number of characters (in Unicode code points) that the user can enter.
|
|
31488
|
+
*/
|
|
31489
|
+
minlength: {
|
|
31490
|
+
type: Number,
|
|
31491
|
+
},
|
|
31492
|
+
};
|
|
31493
|
+
}
|
|
31494
|
+
|
|
31510
31495
|
/** @protected */
|
|
31511
31496
|
ready() {
|
|
31512
31497
|
super.ready();
|
|
@@ -31947,17 +31932,6 @@ const PasswordInput = class {
|
|
|
31947
31932
|
this.sendOriginalValidityState = index.createEvent(this, "sendOriginalValidityState", 7);
|
|
31948
31933
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
31949
31934
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
31950
|
-
/**
|
|
31951
|
-
* Default value for the input.
|
|
31952
|
-
*/
|
|
31953
|
-
this.defaultValue = '';
|
|
31954
|
-
/**
|
|
31955
|
-
* Client custom styling via inline style
|
|
31956
|
-
*/
|
|
31957
|
-
this.clientStyling = '';
|
|
31958
|
-
this.limitStylingAppends = false;
|
|
31959
|
-
this.showTooltip = false;
|
|
31960
|
-
this.value = '';
|
|
31961
31935
|
this.touched = false;
|
|
31962
31936
|
this.originalValid = false;
|
|
31963
31937
|
this.validationPattern = '';
|
|
@@ -31996,6 +31970,28 @@ const PasswordInput = class {
|
|
|
31996
31970
|
sheet.innerHTML = this.clientStyling;
|
|
31997
31971
|
this.stylingContainer.prepend(sheet);
|
|
31998
31972
|
};
|
|
31973
|
+
this.name = undefined;
|
|
31974
|
+
this.displayName = undefined;
|
|
31975
|
+
this.placeholder = undefined;
|
|
31976
|
+
this.defaultValue = '';
|
|
31977
|
+
this.autofilled = undefined;
|
|
31978
|
+
this.tooltip = undefined;
|
|
31979
|
+
this.validation = undefined;
|
|
31980
|
+
this.language = undefined;
|
|
31981
|
+
this.emitValue = undefined;
|
|
31982
|
+
this.isDuplicateInput = undefined;
|
|
31983
|
+
this.clientStyling = '';
|
|
31984
|
+
this.isValid = undefined;
|
|
31985
|
+
this.errorMessage = undefined;
|
|
31986
|
+
this.limitStylingAppends = false;
|
|
31987
|
+
this.showTooltip = false;
|
|
31988
|
+
this.passwordComplexity = undefined;
|
|
31989
|
+
this.showPopup = undefined;
|
|
31990
|
+
this.value = '';
|
|
31991
|
+
}
|
|
31992
|
+
handleStylingChange(newValue, oldValue) {
|
|
31993
|
+
if (newValue !== oldValue)
|
|
31994
|
+
this.setClientStyling();
|
|
31999
31995
|
}
|
|
32000
31996
|
validityChanged() {
|
|
32001
31997
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -32155,11 +32151,12 @@ const PasswordInput = class {
|
|
|
32155
32151
|
if (this.touched) {
|
|
32156
32152
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
32157
32153
|
}
|
|
32158
|
-
return index.h("div", { key: '
|
|
32159
|
-
index.h("img", { key: '
|
|
32154
|
+
return index.h("div", { key: '36d21c63dcd15b6de2d2de417ce97b520493cd16', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '3de600f4ccbf2ffe7a8a8858e9d5a483701dd4d7', class: 'password__wrapper--flex' }, index.h("label", { key: '74fee343f4d6adbbb22e88c5d51d3a471979d42e', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'd1f30d776c5612b1a5581859b929bee171105bf5', class: 'password__wrapper--relative' }, this.tooltip &&
|
|
32155
|
+
index.h("img", { key: '932201990b5fa67f448d4ab8ca7f844f757d5e47', class: 'password__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-password-field", { key: '83f00cb4452b60fd883efcd742d6eb463a8fc729', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), index.h("small", { key: '0f6f7ba5e9ec6f492f22a46ac77c7977f7a8e835', class: 'password__error-message' }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
|
|
32160
32156
|
}
|
|
32161
32157
|
get element() { return index.getElement(this); }
|
|
32162
32158
|
static get watchers() { return {
|
|
32159
|
+
"clientStyling": ["handleStylingChange"],
|
|
32163
32160
|
"isValid": ["validityChanged"],
|
|
32164
32161
|
"value": ["valueChanged"],
|
|
32165
32162
|
"emitValue": ["emitValueHandler"]
|
|
@@ -32175,17 +32172,27 @@ const RadioInput = class {
|
|
|
32175
32172
|
index.registerInstance(this, hostRef);
|
|
32176
32173
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
32177
32174
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
32178
|
-
/**
|
|
32179
|
-
* Client custom styling via inline style
|
|
32180
|
-
*/
|
|
32181
|
-
this.clientStyling = '';
|
|
32182
|
-
this.limitStylingAppends = false;
|
|
32183
|
-
this.showTooltip = false;
|
|
32184
32175
|
this.setClientStyling = () => {
|
|
32185
32176
|
let sheet = document.createElement('style');
|
|
32186
32177
|
sheet.innerHTML = this.clientStyling;
|
|
32187
32178
|
this.stylingContainer.prepend(sheet);
|
|
32188
32179
|
};
|
|
32180
|
+
this.name = undefined;
|
|
32181
|
+
this.displayName = undefined;
|
|
32182
|
+
this.optionsGroup = undefined;
|
|
32183
|
+
this.validation = undefined;
|
|
32184
|
+
this.tooltip = undefined;
|
|
32185
|
+
this.language = undefined;
|
|
32186
|
+
this.emitValue = undefined;
|
|
32187
|
+
this.clientStyling = '';
|
|
32188
|
+
this.errorMessage = undefined;
|
|
32189
|
+
this.isValid = undefined;
|
|
32190
|
+
this.limitStylingAppends = false;
|
|
32191
|
+
this.showTooltip = false;
|
|
32192
|
+
}
|
|
32193
|
+
handleStylingChange(newValue, oldValue) {
|
|
32194
|
+
if (newValue !== oldValue)
|
|
32195
|
+
this.setClientStyling();
|
|
32189
32196
|
}
|
|
32190
32197
|
validityChanged() {
|
|
32191
32198
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -32240,10 +32247,11 @@ const RadioInput = class {
|
|
|
32240
32247
|
return null;
|
|
32241
32248
|
}
|
|
32242
32249
|
render() {
|
|
32243
|
-
return index.h("fieldset", { key: '
|
|
32244
|
-
index.h("img", { key: '
|
|
32250
|
+
return index.h("fieldset", { key: '29ff8fcc910622397750532629ac0c202c9726ba', class: `radio__fieldset ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("legend", { key: 'cdab5b331863f3d31aab50c1d95b5a8845d53329', class: 'radio__legend' }, this.displayName, ":"), this.optionsGroup.map(option => index.h("div", { class: 'radio__wrapper' }, index.h("input", { type: "radio", class: 'radio__input', id: `${option.label}__input`, ref: (el) => this.inputReference = el, value: option.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), index.h("label", { htmlFor: `${option.label}__input` }, option.label))), index.h("small", { key: 'bd6cd89510e7ace1348b391f3ce9ba334a03e695', class: 'radio__error-message' }, this.errorMessage), this.tooltip &&
|
|
32251
|
+
index.h("img", { key: '27036c51c89612dbb87e5248355d3a5466c49705', class: 'radio__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
32245
32252
|
}
|
|
32246
32253
|
static get watchers() { return {
|
|
32254
|
+
"clientStyling": ["handleStylingChange"],
|
|
32247
32255
|
"isValid": ["validityChanged"],
|
|
32248
32256
|
"emitValue": ["emitValueHandler"]
|
|
32249
32257
|
}; }
|
|
@@ -36529,7 +36537,6 @@ const ComboBoxMixin = (subclass) =>
|
|
|
36529
36537
|
/**
|
|
36530
36538
|
* Override LitElement lifecycle callback to handle filter property change.
|
|
36531
36539
|
* @param {Object} props
|
|
36532
|
-
* @protected
|
|
36533
36540
|
*/
|
|
36534
36541
|
updated(props) {
|
|
36535
36542
|
super.updated(props);
|
|
@@ -37251,7 +37258,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
37251
37258
|
// Do not validate when focusout is caused by document
|
|
37252
37259
|
// losing focus, which happens on browser tab switch.
|
|
37253
37260
|
if (document.hasFocus()) {
|
|
37254
|
-
this.
|
|
37261
|
+
this.validate();
|
|
37255
37262
|
}
|
|
37256
37263
|
|
|
37257
37264
|
if (this.value !== this._lastCommittedValue) {
|
|
@@ -37801,20 +37808,6 @@ const SelectInput = class {
|
|
|
37801
37808
|
index.registerInstance(this, hostRef);
|
|
37802
37809
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
37803
37810
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
37804
|
-
/**
|
|
37805
|
-
* Default value for the input.
|
|
37806
|
-
*/
|
|
37807
|
-
this.defaultValue = '';
|
|
37808
|
-
/**
|
|
37809
|
-
* Options of the input.
|
|
37810
|
-
*/
|
|
37811
|
-
this.options = [];
|
|
37812
|
-
/**
|
|
37813
|
-
* Client custom styling via inline style
|
|
37814
|
-
*/
|
|
37815
|
-
this.clientStyling = '';
|
|
37816
|
-
this.limitStylingAppends = false;
|
|
37817
|
-
this.showTooltip = false;
|
|
37818
37811
|
this.touched = false;
|
|
37819
37812
|
this.handleChange = (event) => {
|
|
37820
37813
|
this.touched = true;
|
|
@@ -37843,6 +37836,26 @@ const SelectInput = class {
|
|
|
37843
37836
|
sheet.innerHTML = this.clientStyling;
|
|
37844
37837
|
this.stylingContainer.prepend(sheet);
|
|
37845
37838
|
};
|
|
37839
|
+
this.name = undefined;
|
|
37840
|
+
this.displayName = undefined;
|
|
37841
|
+
this.placeholder = undefined;
|
|
37842
|
+
this.action = undefined;
|
|
37843
|
+
this.defaultValue = '';
|
|
37844
|
+
this.autofilled = undefined;
|
|
37845
|
+
this.tooltip = undefined;
|
|
37846
|
+
this.options = [];
|
|
37847
|
+
this.validation = undefined;
|
|
37848
|
+
this.language = undefined;
|
|
37849
|
+
this.emitValue = undefined;
|
|
37850
|
+
this.clientStyling = '';
|
|
37851
|
+
this.errorMessage = undefined;
|
|
37852
|
+
this.isValid = undefined;
|
|
37853
|
+
this.limitStylingAppends = false;
|
|
37854
|
+
this.showTooltip = false;
|
|
37855
|
+
}
|
|
37856
|
+
handleStylingChange(newValue, oldValue) {
|
|
37857
|
+
if (newValue !== oldValue)
|
|
37858
|
+
this.setClientStyling();
|
|
37846
37859
|
}
|
|
37847
37860
|
validityChanged() {
|
|
37848
37861
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -37935,11 +37948,12 @@ const SelectInput = class {
|
|
|
37935
37948
|
if (this.touched) {
|
|
37936
37949
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
37937
37950
|
}
|
|
37938
|
-
return index.h("div", { key: '
|
|
37939
|
-
index.h("img", { key: '
|
|
37951
|
+
return index.h("div", { key: 'f02c73635c87a1937f4718c9de8df3aae8397815', class: `select__wrapper ${this.autofilled ? 'select__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '26bf79a073dd4c84570e380b1f36bfe848fec568', class: 'select__wrapper--flex' }, index.h("label", { key: '6eaafabe58a2dd4e1604ac2e3d55d001e2c4bc7c', class: 'select__label', htmlFor: `${this.name}__input` }, `${this.displayName} ${this.validation.mandatory ? '*' : ''}`), index.h("div", { key: 'a1de9c4bd3dd4158b26004c6df9dca5915f73978', class: 'select__wrapper--relative' }, this.tooltip &&
|
|
37952
|
+
index.h("img", { key: '5cb869c82f53a463c91cd060fad5520d2fbc3d0d', class: 'select__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-combo-box", { key: '2e94c1faa107657034a98d70b1e98d5c5ab5caa5', name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", readOnly: this.autofilled, required: this.validation.mandatory, value: this.defaultValue, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleChange, onBlur: this.handleBlur }), index.h("small", { key: '2c8162576d30265ea49cdc6d99071f614d833d7e', class: 'select__error-message' }, this.errorMessage));
|
|
37940
37953
|
}
|
|
37941
37954
|
get element() { return index.getElement(this); }
|
|
37942
37955
|
static get watchers() { return {
|
|
37956
|
+
"clientStyling": ["handleStylingChange"],
|
|
37943
37957
|
"isValid": ["validityChanged"],
|
|
37944
37958
|
"emitValue": ["emitValueHandler"]
|
|
37945
37959
|
}; }
|
|
@@ -37954,12 +37968,6 @@ const TelInput = class {
|
|
|
37954
37968
|
index.registerInstance(this, hostRef);
|
|
37955
37969
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
37956
37970
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
37957
|
-
/**
|
|
37958
|
-
* Client custom styling via inline style
|
|
37959
|
-
*/
|
|
37960
|
-
this.clientStyling = '';
|
|
37961
|
-
this.limitStylingAppends = false;
|
|
37962
|
-
this.showTooltip = false;
|
|
37963
37971
|
this.validationPattern = '';
|
|
37964
37972
|
this.touched = false;
|
|
37965
37973
|
this.handleInput = (event) => {
|
|
@@ -37985,6 +37993,26 @@ const TelInput = class {
|
|
|
37985
37993
|
sheet.innerHTML = this.clientStyling;
|
|
37986
37994
|
this.stylingContainer.prepend(sheet);
|
|
37987
37995
|
};
|
|
37996
|
+
this.name = undefined;
|
|
37997
|
+
this.displayName = undefined;
|
|
37998
|
+
this.placeholder = undefined;
|
|
37999
|
+
this.showLabels = undefined;
|
|
38000
|
+
this.action = undefined;
|
|
38001
|
+
this.validation = undefined;
|
|
38002
|
+
this.defaultValue = undefined;
|
|
38003
|
+
this.autofilled = undefined;
|
|
38004
|
+
this.tooltip = undefined;
|
|
38005
|
+
this.language = undefined;
|
|
38006
|
+
this.emitValue = undefined;
|
|
38007
|
+
this.clientStyling = '';
|
|
38008
|
+
this.isValid = undefined;
|
|
38009
|
+
this.errorMessage = undefined;
|
|
38010
|
+
this.limitStylingAppends = false;
|
|
38011
|
+
this.showTooltip = false;
|
|
38012
|
+
}
|
|
38013
|
+
handleStylingChange(newValue, oldValue) {
|
|
38014
|
+
if (newValue !== oldValue)
|
|
38015
|
+
this.setClientStyling();
|
|
37988
38016
|
}
|
|
37989
38017
|
validityChanged() {
|
|
37990
38018
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -38096,10 +38124,11 @@ const TelInput = class {
|
|
|
38096
38124
|
if (this.touched) {
|
|
38097
38125
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
38098
38126
|
}
|
|
38099
|
-
return index.h("div", { key: '
|
|
38100
|
-
index.h("img", { key: '
|
|
38127
|
+
return index.h("div", { key: 'f0f70d8568ba083ee19f9e73e5921104f599e15f', class: `tel__wrapper ${this.autofilled ? 'tel__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '8da9e1c2a6b3ca19caff07540f0218266de22bb2', class: 'tel__wrapper--flex-label' }, index.h("label", { key: 'd0d90bc96e3ea853f401bae9be3f033d4cfd9b17', class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'fdf7929f51edcbea8568b35804b0d9e9a93a7249', class: 'tel__wrapper--relative' }, this.tooltip &&
|
|
38128
|
+
index.h("img", { key: '0fbc9b5e8c5feef727caa71ef07d4ae80007e04a', class: 'tel__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("div", { key: 'b4a11808a7ae5e5cddce47b51a51003bce3a84f8', class: `tel__wrapper--flex ${invalidClass}` }, index.h("vaadin-combo-box", { key: '2d81ff4c11e559f302a8446816f4aca0de2cfcef', class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onChange: (e) => this.handlePrefixInput(e) }), index.h("input", { key: 'ab52185589bf4d52205bad4cecc9c7ecb54cd409', type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: this.phoneValue, placeholder: `${this.placeholder}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onInput: this.handleInput, onBlur: this.handleBlur })), index.h("small", { key: '6d219de32297bc2fab31995b5a33b14f2eea21d9', class: 'tel__error-message' }, this.errorMessage));
|
|
38101
38129
|
}
|
|
38102
38130
|
static get watchers() { return {
|
|
38131
|
+
"clientStyling": ["handleStylingChange"],
|
|
38103
38132
|
"isValid": ["validityChanged"],
|
|
38104
38133
|
"emitValue": ["emitValueHandler"]
|
|
38105
38134
|
}; }
|
|
@@ -38114,17 +38143,6 @@ const TextInput = class {
|
|
|
38114
38143
|
index.registerInstance(this, hostRef);
|
|
38115
38144
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
38116
38145
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
38117
|
-
/**
|
|
38118
|
-
* Default value for the input.
|
|
38119
|
-
*/
|
|
38120
|
-
this.defaultValue = '';
|
|
38121
|
-
/**
|
|
38122
|
-
* Client custom styling via inline style
|
|
38123
|
-
*/
|
|
38124
|
-
this.clientStyling = '';
|
|
38125
|
-
this.errorMessage = '';
|
|
38126
|
-
this.limitStylingAppends = false;
|
|
38127
|
-
this.showTooltip = false;
|
|
38128
38146
|
this.value = '';
|
|
38129
38147
|
this.validationPattern = '';
|
|
38130
38148
|
this.duplicateInputValue = null;
|
|
@@ -38154,6 +38172,26 @@ const TextInput = class {
|
|
|
38154
38172
|
sheet.innerHTML = this.clientStyling;
|
|
38155
38173
|
this.stylingContainer.prepend(sheet);
|
|
38156
38174
|
};
|
|
38175
|
+
this.name = undefined;
|
|
38176
|
+
this.displayName = undefined;
|
|
38177
|
+
this.placeholder = undefined;
|
|
38178
|
+
this.validation = undefined;
|
|
38179
|
+
this.defaultValue = '';
|
|
38180
|
+
this.autofilled = undefined;
|
|
38181
|
+
this.tooltip = undefined;
|
|
38182
|
+
this.language = undefined;
|
|
38183
|
+
this.checkValidity = undefined;
|
|
38184
|
+
this.emitValue = undefined;
|
|
38185
|
+
this.isDuplicateInput = undefined;
|
|
38186
|
+
this.clientStyling = '';
|
|
38187
|
+
this.isValid = undefined;
|
|
38188
|
+
this.errorMessage = '';
|
|
38189
|
+
this.limitStylingAppends = false;
|
|
38190
|
+
this.showTooltip = false;
|
|
38191
|
+
}
|
|
38192
|
+
handleStylingChange(newValue, oldValue) {
|
|
38193
|
+
if (newValue !== oldValue)
|
|
38194
|
+
this.setClientStyling();
|
|
38157
38195
|
}
|
|
38158
38196
|
validityChanged() {
|
|
38159
38197
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -38260,10 +38298,11 @@ const TextInput = class {
|
|
|
38260
38298
|
if (this.touched) {
|
|
38261
38299
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
38262
38300
|
}
|
|
38263
|
-
return index.h("div", { key: '
|
|
38264
|
-
index.h("img", { key: '
|
|
38301
|
+
return index.h("div", { key: 'e297f841a57c6acf854535a786916aa641831556', class: `text__wrapper ${this.name}__input ${this.autofilled ? 'text__wrapper--autofilled' : ''}`, ref: el => this.stylingContainer = el }, index.h("div", { key: '7fd284a58e58d5c61a03caf4cc317b8dd9dbd82f', class: 'text__wrapper--flex' }, index.h("label", { key: 'f80a2003386ec867e5310190a7568105c2912569', class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'e8f5197bd370100406d600be5a336f85f4c6934d', class: 'text__wrapper--relative' }, this.tooltip &&
|
|
38302
|
+
index.h("img", { key: 'ff8c38fe3495a41a41ac4a1569169ce26a1ec9ce', class: 'text__tooltip-icon', src: tooltipIcon.tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { key: '581106e515810ab43f7d6b6eda504ccf23906b0e', name: this.name, id: `${this.name}__input`, value: this.defaultValue, type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), index.h("small", { key: '20620710026982d5fb670a3173bab57a7fa9e7ce', class: 'text__error-message' }, this.errorMessage));
|
|
38265
38303
|
}
|
|
38266
38304
|
static get watchers() { return {
|
|
38305
|
+
"clientStyling": ["handleStylingChange"],
|
|
38267
38306
|
"isValid": ["validityChanged"],
|
|
38268
38307
|
"emitValue": ["emitValueHandler"]
|
|
38269
38308
|
}; }
|