@heartlandone/vega 1.46.0 → 1.46.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/dist/cjs/{app-globals-ab4eee7c.js → app-globals-16ca027a.js} +2 -2
- package/dist/cjs/{formFieldControllerSlimmer-4bd62d43.js → formFieldControllerSlimmer-9b70ba06.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -3
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{misc-3d30df91.js → misc-7e450dae.js} +18 -0
- package/dist/cjs/{themeManager-6ba8be2a.js → themeManager-2b0abc09.js} +1 -1
- package/dist/cjs/vega-banner_30.cjs.entry.js +8 -6
- package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/vega-combo-box.cjs.entry.js +3 -11
- package/dist/cjs/vega-font.cjs.entry.js +1 -1
- package/dist/cjs/vega-form.cjs.entry.js +2 -2
- package/dist/cjs/vega-image-uploader.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +2 -2
- package/dist/cjs/vega-stepper.cjs.entry.js +2 -2
- package/dist/cjs/vega-table-cell.cjs.entry.js +1 -2
- package/dist/cjs/vega-textarea.cjs.entry.js +2 -2
- package/dist/cjs/vega.cjs.js +4 -4
- package/dist/cjs/{vegaDialogController-d2ae40fb.js → vegaDialogController-21a3e16d.js} +1 -1
- package/dist/collection/components/vega-combo-box/vega-combo-box.js +1 -9
- package/dist/collection/components/vega-font/vega-font.js +2 -2
- package/dist/collection/components/vega-input/vega-input.js +1 -1
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +2 -2
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +6 -4
- package/dist/collection/decorators/property-decorators/tests/injectElementAppenderProxy.test.js +8 -2
- package/dist/collection/utils/misc.js +17 -0
- package/dist/collection/utils/publicApi.js +1 -0
- package/dist/collection/utils/test/misc.test.js +6 -1
- package/dist/esm/{app-globals-ee0d9385.js → app-globals-b640bd87.js} +2 -2
- package/dist/esm/{formFieldControllerSlimmer-0118a14e.js → formFieldControllerSlimmer-09f6795f.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{misc-9fdbcfbb.js → misc-5b7f93da.js} +18 -1
- package/dist/esm/{themeManager-ca559d9e.js → themeManager-e3fa04c2.js} +1 -1
- package/dist/esm/vega-banner_30.entry.js +8 -6
- package/dist/esm/vega-color-picker.entry.js +2 -2
- package/dist/esm/vega-combo-box.entry.js +3 -11
- package/dist/esm/vega-font.entry.js +1 -1
- package/dist/esm/vega-form.entry.js +2 -2
- package/dist/esm/vega-image-uploader.entry.js +3 -3
- package/dist/esm/vega-input-credit-card.entry.js +2 -2
- package/dist/esm/vega-stepper.entry.js +2 -2
- package/dist/esm/vega-table-cell.entry.js +1 -2
- package/dist/esm/vega-textarea.entry.js +2 -2
- package/dist/esm/vega.js +4 -4
- package/dist/esm/{vegaDialogController-a23aae0f.js → vegaDialogController-e846b92b.js} +1 -1
- package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +0 -5
- package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/decorators/property-decorators/injectElementAppender.d.ts +1 -1
- package/dist/types/utils/misc.d.ts +7 -0
- package/dist/types/utils/publicApi.d.ts +1 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-d4c0c063.entry.js → p-01531027.entry.js} +1 -1
- package/dist/vega/p-182a755e.js +1 -0
- package/dist/vega/{p-afc0df78.js → p-3dfab1d3.js} +1 -1
- package/dist/vega/{p-f2a1f2d1.js → p-47283e1d.js} +1 -1
- package/dist/vega/{p-664e92a2.entry.js → p-57158cfe.entry.js} +1 -1
- package/dist/vega/{p-f449096b.entry.js → p-59ef1433.entry.js} +1 -1
- package/dist/vega/{p-1f46bbda.entry.js → p-78a4b3b0.entry.js} +1 -1
- package/dist/vega/{p-6d37df3d.js → p-8464c290.js} +1 -1
- package/dist/vega/{p-7e8b8765.entry.js → p-96dd9a72.entry.js} +2 -2
- package/dist/vega/{p-2ae1c0c8.entry.js → p-995c35a9.entry.js} +1 -1
- package/dist/vega/{p-8c6dbf03.js → p-9b8a8588.js} +1 -1
- package/dist/vega/{p-3aedf3a6.entry.js → p-a3292d80.entry.js} +1 -1
- package/dist/vega/{p-484c3e7a.entry.js → p-a7fe7038.entry.js} +1 -1
- package/dist/vega/{p-ca1da099.entry.js → p-d795c5a1.entry.js} +1 -1
- package/dist/vega/{p-a80500a5.entry.js → p-dbaedf21.entry.js} +1 -1
- package/dist/vega/vega.css +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/style/vega.css +1 -1
- package/dist/vega/p-8b5d3a52.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const featureFlagController = require('./featureFlagController-1ed087d2.js');
|
|
4
|
-
const themeManager = require('./themeManager-
|
|
4
|
+
const themeManager = require('./themeManager-2b0abc09.js');
|
|
5
5
|
const log = require('./log-5d8066e0.js');
|
|
6
|
-
const vegaDialogController = require('./vegaDialogController-
|
|
6
|
+
const vegaDialogController = require('./vegaDialogController-21a3e16d.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Default export function that will be used by stencil global script,
|
package/dist/cjs/{formFieldControllerSlimmer-4bd62d43.js → formFieldControllerSlimmer-9b70ba06.js}
RENAMED
|
@@ -7,7 +7,7 @@ const string = require('./string-21427167.js');
|
|
|
7
7
|
const changeManager = require('./changeManager-d4738fdb.js');
|
|
8
8
|
const observer = require('./observer-126f19d0.js');
|
|
9
9
|
const ui = require('./ui-824caf47.js');
|
|
10
|
-
const misc = require('./misc-
|
|
10
|
+
const misc = require('./misc-7e450dae.js');
|
|
11
11
|
|
|
12
12
|
/** The `FormFieldValidationRuleHandler` class is responsible for handling the validation rules for a form field. */
|
|
13
13
|
class FormFieldValidationRuleHandler {
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -6,17 +6,17 @@ const breakpoints = require('./breakpoints-07fcbeba.js');
|
|
|
6
6
|
const log = require('./log-5d8066e0.js');
|
|
7
7
|
const designToken = require('./designToken-14ac9337.js');
|
|
8
8
|
const string = require('./string-21427167.js');
|
|
9
|
+
const misc = require('./misc-7e450dae.js');
|
|
9
10
|
const typeGuard = require('./typeGuard-f648ca22.js');
|
|
10
11
|
const breakpoints$1 = require('./breakpoints-23bb4f74.js');
|
|
11
12
|
const icons = require('./icons-44ed411d.js');
|
|
12
13
|
const typography = require('./typography-358013af.js');
|
|
13
14
|
const ui = require('./ui-bac156c5.js');
|
|
14
15
|
const featureFlagController = require('./featureFlagController-1ed087d2.js');
|
|
15
|
-
const themeManager = require('./themeManager-
|
|
16
|
-
const vegaDialogController = require('./vegaDialogController-
|
|
16
|
+
const themeManager = require('./themeManager-2b0abc09.js');
|
|
17
|
+
const vegaDialogController = require('./vegaDialogController-21a3e16d.js');
|
|
17
18
|
require('./responsiveFormatFacade-82b43462.js');
|
|
18
19
|
require('./number-7e7d9981.js');
|
|
19
|
-
require('./misc-3d30df91.js');
|
|
20
20
|
require('./ui-824caf47.js');
|
|
21
21
|
require('./ui.type-655d8879.js');
|
|
22
22
|
require('./zIndexManager-d5650f0d.js');
|
|
@@ -42,6 +42,7 @@ exports.formatAndValidResponsiveToken = designToken.formatAndValidResponsiveToke
|
|
|
42
42
|
exports.formatAndValidShadow = designToken.formatAndValidShadow;
|
|
43
43
|
exports.formatAndValidTextColor = designToken.formatAndValidTextColor;
|
|
44
44
|
exports.camelToDashCase = string.camelToDashCase;
|
|
45
|
+
exports.setVegaEnv = misc.setVegaEnv;
|
|
45
46
|
exports.BackgroundColors = typeGuard.BackgroundColors;
|
|
46
47
|
exports.BorderColors = typeGuard.BorderColors;
|
|
47
48
|
exports.BorderRadius = typeGuard.BorderRadius;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0ca30e90.js');
|
|
6
|
-
const appGlobals = require('./app-globals-
|
|
6
|
+
const appGlobals = require('./app-globals-16ca027a.js');
|
|
7
7
|
require('./featureFlagController-1ed087d2.js');
|
|
8
8
|
require('./log-5d8066e0.js');
|
|
9
|
-
require('./themeManager-
|
|
10
|
-
require('./misc-
|
|
9
|
+
require('./themeManager-2b0abc09.js');
|
|
10
|
+
require('./misc-7e450dae.js');
|
|
11
11
|
require('./ui-824caf47.js');
|
|
12
12
|
require('./ui.type-655d8879.js');
|
|
13
13
|
require('./zIndexManager-d5650f0d.js');
|
|
14
14
|
require('./number-7e7d9981.js');
|
|
15
15
|
require('./tinycolor-14174cd4.js');
|
|
16
|
-
require('./vegaDialogController-
|
|
16
|
+
require('./vegaDialogController-21a3e16d.js');
|
|
17
17
|
|
|
18
18
|
/*
|
|
19
19
|
Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
@@ -35,7 +35,25 @@ const isAsyncFunction = (fn) => {
|
|
|
35
35
|
return false;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
+
const frameworkSafeList = ['angular', 'vue', 'react', 'next'];
|
|
39
|
+
/**
|
|
40
|
+
* The function sets the Vega environment by assigning the provided environment object to the global `_vega_env_` variable.
|
|
41
|
+
*
|
|
42
|
+
* @param {Record<string, string>} env - The `env` parameter is an object that represents the environment variables. It is a
|
|
43
|
+
* record where each key-value pair represents an environment variable name and its corresponding value.
|
|
44
|
+
*/
|
|
45
|
+
function setVegaEnv(env) {
|
|
46
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
47
|
+
try {
|
|
48
|
+
if (!globalThis['_vega_env_'] && env && frameworkSafeList.includes(env.framework)) {
|
|
49
|
+
Object.assign(globalThis, { _vega_env_: env });
|
|
50
|
+
}
|
|
51
|
+
//eslint-disable-next-line no-empty
|
|
52
|
+
}
|
|
53
|
+
catch (e) { }
|
|
54
|
+
}
|
|
38
55
|
|
|
39
56
|
exports.generateUUID = generateUUID;
|
|
40
57
|
exports.isAsyncFunction = isAsyncFunction;
|
|
41
58
|
exports.isObjectEmpty = isObjectEmpty;
|
|
59
|
+
exports.setVegaEnv = setVegaEnv;
|
|
@@ -18,7 +18,7 @@ const ui = require('./ui-824caf47.js');
|
|
|
18
18
|
const effect = require('./effect-37695d3d.js');
|
|
19
19
|
const observer = require('./observer-126f19d0.js');
|
|
20
20
|
const placeholder = require('./placeholder-1d8034a7.js');
|
|
21
|
-
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-
|
|
21
|
+
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-9b70ba06.js');
|
|
22
22
|
const requiredFieldRule = require('./requiredFieldRule-56f10b25.js');
|
|
23
23
|
const array = require('./array-e1e5ed1d.js');
|
|
24
24
|
const ui_type = require('./ui.type-655d8879.js');
|
|
@@ -35,7 +35,7 @@ const minStringLengthRule = require('./minStringLengthRule-66ee0c3c.js');
|
|
|
35
35
|
const legendInputProcessor = require('./legendInputProcessor-c96488db.js');
|
|
36
36
|
const yAxisInputProcessor = require('./yAxisInputProcessor-b101f254.js');
|
|
37
37
|
const number = require('./number-7e7d9981.js');
|
|
38
|
-
const misc$1 = require('./misc-
|
|
38
|
+
const misc$1 = require('./misc-7e450dae.js');
|
|
39
39
|
const vegaTableExpandRowController = require('./vega-table-expand-row-controller-e17f9aef.js');
|
|
40
40
|
const injectElementAppender = require('./injectElementAppender-cd0943d5.js');
|
|
41
41
|
const injectKeyboardManager = require('./injectKeyboardManager-ee7afa46.js');
|
|
@@ -4226,7 +4226,7 @@ const VegaInput = class {
|
|
|
4226
4226
|
}
|
|
4227
4227
|
containerClass += this.size === 'small' ? ' vega-input-size-small' : ' vega-input-size-default';
|
|
4228
4228
|
containerClass += this.disabled ? ' vega-input-disabled' : '';
|
|
4229
|
-
return (index.h("div", { class: "vega-input" }, this.renderLabelDom(), index.h("div", { class: containerClass, onClick: this.focusInput, "aria-label": "input container", role: "textbox", tabIndex: -1, onKeyDown: accessibility.createEnterKeyHandlerToTriggerClick() }, this.prefixDom(), this.containerDom(), this.showClearIcon && this.renderClearIcon()), this.renderHintDom()));
|
|
4229
|
+
return (index.h("div", { class: "vega-input" }, this.renderLabelDom(), index.h("div", { class: containerClass, onClick: this.focusInput, "aria-label": "input container", role: "textbox", tabIndex: !this.disabled ? -1 : null, onKeyDown: accessibility.createEnterKeyHandlerToTriggerClick() }, this.prefixDom(), this.containerDom(), this.showClearIcon && this.renderClearIcon()), this.renderHintDom()));
|
|
4230
4230
|
}
|
|
4231
4231
|
renderLabelDom() {
|
|
4232
4232
|
if (featureFlagController.FeatureFlag.isEnabled('VEGA_FIELD_LABEL.SHOW_LABEL')) {
|
|
@@ -9934,7 +9934,7 @@ const VegaTimePicker = class {
|
|
|
9934
9934
|
this.selectedTimeValue = {
|
|
9935
9935
|
hour: timeArray[0],
|
|
9936
9936
|
minute: this.increments > 1 ? this.getClosestMinuteForCurrent(timeArray[1]) : timeArray[1],
|
|
9937
|
-
amPm: this.timeFormat === '12-hour' ? timeArray[2] :
|
|
9937
|
+
amPm: this.timeFormat === '12-hour' ? timeArray[2] : undefined,
|
|
9938
9938
|
};
|
|
9939
9939
|
}
|
|
9940
9940
|
};
|
|
@@ -9947,7 +9947,9 @@ const VegaTimePicker = class {
|
|
|
9947
9947
|
const minute = pad(new Date(Date.now()).getMinutes());
|
|
9948
9948
|
if (timeFormat === '12-hour') {
|
|
9949
9949
|
return {
|
|
9950
|
-
hour: curHour > 12
|
|
9950
|
+
hour: curHour > 12
|
|
9951
|
+
? pad(curHour - 12)
|
|
9952
|
+
: pad(curHour === 0 ? 12 : curHour),
|
|
9951
9953
|
minute: minute,
|
|
9952
9954
|
amPm: curHour >= 12 ? 'PM' : 'AM',
|
|
9953
9955
|
};
|
|
@@ -10120,7 +10122,7 @@ const VegaTimePicker = class {
|
|
|
10120
10122
|
: (this.value = `${hour}:${minute}`);
|
|
10121
10123
|
}
|
|
10122
10124
|
getSourceMinutesStrings() {
|
|
10123
|
-
if (this.increments < 1 || this.increments > 59) {
|
|
10125
|
+
if (this.increments < 1 || this.increments > 59 || isNaN(Number(this.increments))) {
|
|
10124
10126
|
log.LogUtility.warn('The increments should be between 1 and 59.');
|
|
10125
10127
|
this.increments = 1;
|
|
10126
10128
|
}
|
|
@@ -7,7 +7,7 @@ const requiredFieldRule = require('./requiredFieldRule-56f10b25.js');
|
|
|
7
7
|
const accessibility = require('./accessibility-bfa227f6.js');
|
|
8
8
|
const component = require('./component-a51251c5.js');
|
|
9
9
|
const ui = require('./ui-824caf47.js');
|
|
10
|
-
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-
|
|
10
|
+
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-9b70ba06.js');
|
|
11
11
|
const vegaSlimmer = require('./vega-slimmer-c554cd02.js');
|
|
12
12
|
const placeholder = require('./placeholder-1d8034a7.js');
|
|
13
13
|
require('./featureFlagController-1ed087d2.js');
|
|
@@ -17,7 +17,7 @@ require('./map-to-component-method-30d54832.js');
|
|
|
17
17
|
require('./string-21427167.js');
|
|
18
18
|
require('./changeManager-d4738fdb.js');
|
|
19
19
|
require('./observer-126f19d0.js');
|
|
20
|
-
require('./misc-
|
|
20
|
+
require('./misc-7e450dae.js');
|
|
21
21
|
|
|
22
22
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
23
23
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -12,7 +12,7 @@ const accessibility = require('./accessibility-bfa227f6.js');
|
|
|
12
12
|
const injectKeyboardManager = require('./injectKeyboardManager-ee7afa46.js');
|
|
13
13
|
const vegaSlimmer = require('./vega-slimmer-c554cd02.js');
|
|
14
14
|
const placeholder = require('./placeholder-1d8034a7.js');
|
|
15
|
-
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-
|
|
15
|
+
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-9b70ba06.js');
|
|
16
16
|
require('./featureFlagController-1ed087d2.js');
|
|
17
17
|
require('./log-5d8066e0.js');
|
|
18
18
|
require('./breakpoints-23bb4f74.js');
|
|
@@ -25,7 +25,7 @@ require('./map-to-component-method-30d54832.js');
|
|
|
25
25
|
require('./string-21427167.js');
|
|
26
26
|
require('./changeManager-d4738fdb.js');
|
|
27
27
|
require('./observer-126f19d0.js');
|
|
28
|
-
require('./misc-
|
|
28
|
+
require('./misc-7e450dae.js');
|
|
29
29
|
|
|
30
30
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
31
31
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -248,15 +248,7 @@ const VegaComboBox = class {
|
|
|
248
248
|
}));
|
|
249
249
|
}
|
|
250
250
|
renderInputContainer() {
|
|
251
|
-
return (index.h("div", { class: "vega-combo-box-input-container" }, index.h("input", { onInput: this.onInputChange,
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* The below method is e2e-test covered in
|
|
255
|
-
* @see{module:should not do validation when blur event triggered}
|
|
256
|
-
*/
|
|
257
|
-
/* istanbul ignore next */
|
|
258
|
-
onInputBlur(e) {
|
|
259
|
-
e.stopImmediatePropagation();
|
|
251
|
+
return (index.h("div", { class: "vega-combo-box-input-container" }, index.h("input", { onInput: this.onInputChange, "aria-label": this.label || 'No label defined', placeholder: this.value.length === 0 ? this.placeholder : '', ref: (e) => (this.searchInputRef = e), onKeyDown: accessibility.createEnterKeyHandlerToTriggerClick(), disabled: this.disabled })));
|
|
260
252
|
}
|
|
261
253
|
async onChipClose(key) {
|
|
262
254
|
this.value = [...array.deleteItemsFromArray(this.value, [key])];
|
|
@@ -200,7 +200,7 @@ const VegaFont = class {
|
|
|
200
200
|
/**
|
|
201
201
|
* Specifies the typography token used for styling the text within this component. A typography token includes values for font size and line height.
|
|
202
202
|
*/
|
|
203
|
-
this.variant = 'font-field-
|
|
203
|
+
this.variant = 'font-field-label';
|
|
204
204
|
/**
|
|
205
205
|
* Specifies the font color represented by a valid text color token.
|
|
206
206
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0ca30e90.js');
|
|
6
|
-
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-
|
|
6
|
+
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-9b70ba06.js');
|
|
7
7
|
const changeManager = require('./changeManager-d4738fdb.js');
|
|
8
8
|
const observer = require('./observer-126f19d0.js');
|
|
9
9
|
const array = require('./array-e1e5ed1d.js');
|
|
@@ -14,7 +14,7 @@ require('./map-to-component-method-30d54832.js');
|
|
|
14
14
|
require('./featureFlagController-1ed087d2.js');
|
|
15
15
|
require('./log-5d8066e0.js');
|
|
16
16
|
require('./string-21427167.js');
|
|
17
|
-
require('./misc-
|
|
17
|
+
require('./misc-7e450dae.js');
|
|
18
18
|
require('./number-7e7d9981.js');
|
|
19
19
|
require('./ui.type-655d8879.js');
|
|
20
20
|
|
|
@@ -9,12 +9,12 @@ const vegaSlimmer = require('./vega-slimmer-c554cd02.js');
|
|
|
9
9
|
const placeholder = require('./placeholder-1d8034a7.js');
|
|
10
10
|
const mapToComponentMethod = require('./map-to-component-method-30d54832.js');
|
|
11
11
|
const accessibility = require('./accessibility-bfa227f6.js');
|
|
12
|
-
const vegaDialogController = require('./vegaDialogController-
|
|
13
|
-
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-
|
|
12
|
+
const vegaDialogController = require('./vegaDialogController-21a3e16d.js');
|
|
13
|
+
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-9b70ba06.js');
|
|
14
14
|
const ui = require('./ui-824caf47.js');
|
|
15
15
|
require('./featureFlagController-1ed087d2.js');
|
|
16
16
|
require('./log-5d8066e0.js');
|
|
17
|
-
require('./misc-
|
|
17
|
+
require('./misc-7e450dae.js');
|
|
18
18
|
require('./string-21427167.js');
|
|
19
19
|
require('./changeManager-d4738fdb.js');
|
|
20
20
|
require('./observer-126f19d0.js');
|
|
@@ -8,7 +8,7 @@ const number = require('./number-7e7d9981.js');
|
|
|
8
8
|
const component = require('./component-a51251c5.js');
|
|
9
9
|
const vegaSlimmer = require('./vega-slimmer-c554cd02.js');
|
|
10
10
|
const placeholder = require('./placeholder-1d8034a7.js');
|
|
11
|
-
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-
|
|
11
|
+
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-9b70ba06.js');
|
|
12
12
|
require('./featureFlagController-1ed087d2.js');
|
|
13
13
|
require('./log-5d8066e0.js');
|
|
14
14
|
require('./map-to-component-method-30d54832.js');
|
|
@@ -17,7 +17,7 @@ require('./changeManager-d4738fdb.js');
|
|
|
17
17
|
require('./observer-126f19d0.js');
|
|
18
18
|
require('./ui-824caf47.js');
|
|
19
19
|
require('./ui.type-655d8879.js');
|
|
20
|
-
require('./misc-
|
|
20
|
+
require('./misc-7e450dae.js');
|
|
21
21
|
|
|
22
22
|
const CARDS_INFO = [
|
|
23
23
|
{
|
|
@@ -12,13 +12,13 @@ require('./log-5d8066e0.js');
|
|
|
12
12
|
require('./tinycolor-14174cd4.js');
|
|
13
13
|
const vegaSlimmer = require('./vega-slimmer-c554cd02.js');
|
|
14
14
|
const placeholder = require('./placeholder-1d8034a7.js');
|
|
15
|
-
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-
|
|
15
|
+
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-9b70ba06.js');
|
|
16
16
|
require('./map-to-component-method-30d54832.js');
|
|
17
17
|
require('./string-21427167.js');
|
|
18
18
|
require('./changeManager-d4738fdb.js');
|
|
19
19
|
require('./observer-126f19d0.js');
|
|
20
20
|
require('./ui-824caf47.js');
|
|
21
|
-
require('./misc-
|
|
21
|
+
require('./misc-7e450dae.js');
|
|
22
22
|
|
|
23
23
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24
24
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -37,10 +37,9 @@ const VegaTableCell = class {
|
|
|
37
37
|
const columnClass = ui.arrayToClassString([
|
|
38
38
|
responsiveClass,
|
|
39
39
|
columnAlignClass,
|
|
40
|
-
overflowClass,
|
|
41
40
|
'vega-table-cell',
|
|
42
41
|
]);
|
|
43
|
-
return component.sanitizeVegaComponent(index.h(index.Host, null, index.h("td", { class: columnClass, style: { width: this.width } }, index.h("slot", null))), this.host);
|
|
42
|
+
return component.sanitizeVegaComponent(index.h(index.Host, null, index.h("td", { class: columnClass, style: { width: this.width } }, index.h("div", { class: overflowClass }, index.h("slot", null)))), this.host);
|
|
44
43
|
}
|
|
45
44
|
get host() { return index.getElement(this); }
|
|
46
45
|
};
|
|
@@ -9,7 +9,7 @@ const requiredFieldRule = require('./requiredFieldRule-56f10b25.js');
|
|
|
9
9
|
const component = require('./component-a51251c5.js');
|
|
10
10
|
const vegaSlimmer = require('./vega-slimmer-c554cd02.js');
|
|
11
11
|
const placeholder = require('./placeholder-1d8034a7.js');
|
|
12
|
-
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-
|
|
12
|
+
const formFieldControllerSlimmer = require('./formFieldControllerSlimmer-9b70ba06.js');
|
|
13
13
|
require('./log-5d8066e0.js');
|
|
14
14
|
require('./map-to-component-method-30d54832.js');
|
|
15
15
|
require('./string-21427167.js');
|
|
@@ -17,7 +17,7 @@ require('./changeManager-d4738fdb.js');
|
|
|
17
17
|
require('./observer-126f19d0.js');
|
|
18
18
|
require('./ui-824caf47.js');
|
|
19
19
|
require('./ui.type-655d8879.js');
|
|
20
|
-
require('./misc-
|
|
20
|
+
require('./misc-7e450dae.js');
|
|
21
21
|
|
|
22
22
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
23
23
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
package/dist/cjs/vega.cjs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-0ca30e90.js');
|
|
4
|
-
const appGlobals = require('./app-globals-
|
|
4
|
+
const appGlobals = require('./app-globals-16ca027a.js');
|
|
5
5
|
require('./featureFlagController-1ed087d2.js');
|
|
6
6
|
require('./log-5d8066e0.js');
|
|
7
|
-
require('./themeManager-
|
|
8
|
-
require('./misc-
|
|
7
|
+
require('./themeManager-2b0abc09.js');
|
|
8
|
+
require('./misc-7e450dae.js');
|
|
9
9
|
require('./ui-824caf47.js');
|
|
10
10
|
require('./ui.type-655d8879.js');
|
|
11
11
|
require('./zIndexManager-d5650f0d.js');
|
|
12
12
|
require('./number-7e7d9981.js');
|
|
13
13
|
require('./tinycolor-14174cd4.js');
|
|
14
|
-
require('./vegaDialogController-
|
|
14
|
+
require('./vegaDialogController-21a3e16d.js');
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
17
|
Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
@@ -226,15 +226,7 @@ export class VegaComboBox {
|
|
|
226
226
|
}
|
|
227
227
|
renderInputContainer() {
|
|
228
228
|
return (h("div", { class: "vega-combo-box-input-container" },
|
|
229
|
-
h("input", { onInput: this.onInputChange,
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* The below method is e2e-test covered in
|
|
233
|
-
* @see{module:should not do validation when blur event triggered}
|
|
234
|
-
*/
|
|
235
|
-
/* istanbul ignore next */
|
|
236
|
-
onInputBlur(e) {
|
|
237
|
-
e.stopImmediatePropagation();
|
|
229
|
+
h("input", { onInput: this.onInputChange, "aria-label": this.label || 'No label defined', placeholder: this.value.length === 0 ? this.placeholder : '', ref: (e) => (this.searchInputRef = e), onKeyDown: createEnterKeyHandlerToTriggerClick(), disabled: this.disabled })));
|
|
238
230
|
}
|
|
239
231
|
async onChipClose(key) {
|
|
240
232
|
this.value = [...deleteItemsFromArray(this.value, [key])];
|
|
@@ -23,7 +23,7 @@ export class VegaFont {
|
|
|
23
23
|
/**
|
|
24
24
|
* Specifies the typography token used for styling the text within this component. A typography token includes values for font size and line height.
|
|
25
25
|
*/
|
|
26
|
-
this.variant = 'font-field-
|
|
26
|
+
this.variant = 'font-field-label';
|
|
27
27
|
/**
|
|
28
28
|
* Specifies the font color represented by a valid text color token.
|
|
29
29
|
*/
|
|
@@ -86,7 +86,7 @@ export class VegaFont {
|
|
|
86
86
|
},
|
|
87
87
|
"attribute": "variant",
|
|
88
88
|
"reflect": false,
|
|
89
|
-
"defaultValue": "'font-field-
|
|
89
|
+
"defaultValue": "'font-field-label'"
|
|
90
90
|
},
|
|
91
91
|
"color": {
|
|
92
92
|
"type": "string",
|
|
@@ -320,7 +320,7 @@ export class VegaInput {
|
|
|
320
320
|
containerClass += this.disabled ? ' vega-input-disabled' : '';
|
|
321
321
|
return (h("div", { class: "vega-input" },
|
|
322
322
|
this.renderLabelDom(),
|
|
323
|
-
h("div", { class: containerClass, onClick: this.focusInput, "aria-label": "input container", role: "textbox", tabIndex: -1, onKeyDown: createEnterKeyHandlerToTriggerClick() },
|
|
323
|
+
h("div", { class: containerClass, onClick: this.focusInput, "aria-label": "input container", role: "textbox", tabIndex: !this.disabled ? -1 : null, onKeyDown: createEnterKeyHandlerToTriggerClick() },
|
|
324
324
|
this.prefixDom(),
|
|
325
325
|
this.containerDom(),
|
|
326
326
|
this.showClearIcon && this.renderClearIcon()),
|
|
@@ -24,12 +24,12 @@ export class VegaTableCell {
|
|
|
24
24
|
const columnClass = arrayToClassString([
|
|
25
25
|
responsiveClass,
|
|
26
26
|
columnAlignClass,
|
|
27
|
-
overflowClass,
|
|
28
27
|
'vega-table-cell',
|
|
29
28
|
]);
|
|
30
29
|
return sanitizeVegaComponent(h(Host, null,
|
|
31
30
|
h("td", { class: columnClass, style: { width: this.width } },
|
|
32
|
-
h("
|
|
31
|
+
h("div", { class: overflowClass },
|
|
32
|
+
h("slot", null)))), this.host);
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "vega-table-cell"; }
|
|
35
35
|
static get properties() { return {
|
|
@@ -165,7 +165,7 @@ export class VegaTimePicker {
|
|
|
165
165
|
this.selectedTimeValue = {
|
|
166
166
|
hour: timeArray[0],
|
|
167
167
|
minute: this.increments > 1 ? this.getClosestMinuteForCurrent(timeArray[1]) : timeArray[1],
|
|
168
|
-
amPm: this.timeFormat === '12-hour' ? timeArray[2] :
|
|
168
|
+
amPm: this.timeFormat === '12-hour' ? timeArray[2] : undefined,
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
};
|
|
@@ -178,7 +178,9 @@ export class VegaTimePicker {
|
|
|
178
178
|
const minute = pad(new Date(Date.now()).getMinutes());
|
|
179
179
|
if (timeFormat === '12-hour') {
|
|
180
180
|
return {
|
|
181
|
-
hour: curHour > 12
|
|
181
|
+
hour: curHour > 12
|
|
182
|
+
? pad(curHour - 12)
|
|
183
|
+
: pad(curHour === 0 ? 12 : curHour),
|
|
182
184
|
minute: minute,
|
|
183
185
|
amPm: curHour >= 12 ? 'PM' : 'AM',
|
|
184
186
|
};
|
|
@@ -360,7 +362,7 @@ export class VegaTimePicker {
|
|
|
360
362
|
: (this.value = `${hour}:${minute}`);
|
|
361
363
|
}
|
|
362
364
|
getSourceMinutesStrings() {
|
|
363
|
-
if (this.increments < 1 || this.increments > 59) {
|
|
365
|
+
if (this.increments < 1 || this.increments > 59 || isNaN(Number(this.increments))) {
|
|
364
366
|
LogUtility.warn('The increments should be between 1 and 59.');
|
|
365
367
|
this.increments = 1;
|
|
366
368
|
}
|
|
@@ -573,7 +575,7 @@ export class VegaTimePicker {
|
|
|
573
575
|
"type": "boolean",
|
|
574
576
|
"mutable": true,
|
|
575
577
|
"complexType": {
|
|
576
|
-
"original": "boolean",
|
|
578
|
+
"original": "boolean | null",
|
|
577
579
|
"resolved": "boolean",
|
|
578
580
|
"references": {}
|
|
579
581
|
},
|
package/dist/collection/decorators/property-decorators/tests/injectElementAppenderProxy.test.js
CHANGED
|
@@ -202,12 +202,15 @@ describe('@InjectElementAppender() decorator test suite', () => {
|
|
|
202
202
|
});
|
|
203
203
|
test('should make InjectElementAppender work proper', () => {
|
|
204
204
|
class MockedComponent {
|
|
205
|
+
constructor() {
|
|
206
|
+
this.isDropdownShow = false;
|
|
207
|
+
}
|
|
205
208
|
}
|
|
206
209
|
__decorate([
|
|
207
210
|
InjectElementAppender((host) => ({
|
|
208
211
|
target: host.target,
|
|
209
212
|
appendableElement: host.appendableElement,
|
|
210
|
-
}), () => 'none')
|
|
213
|
+
}), () => 'none', 'isDropdownShow')
|
|
211
214
|
], MockedComponent.prototype, "elementAppender", void 0);
|
|
212
215
|
const mockedComponent = new MockedComponent();
|
|
213
216
|
mockedComponent.componentDidLoad();
|
|
@@ -221,12 +224,15 @@ describe('@InjectElementAppender() decorator test suite', () => {
|
|
|
221
224
|
});
|
|
222
225
|
test('should work proper while target and appendableElement is null', () => {
|
|
223
226
|
class MockedComponent {
|
|
227
|
+
constructor() {
|
|
228
|
+
this.isDropdownShow = false;
|
|
229
|
+
}
|
|
224
230
|
}
|
|
225
231
|
__decorate([
|
|
226
232
|
InjectElementAppender(() => ({
|
|
227
233
|
target: null,
|
|
228
234
|
appendableElement: null,
|
|
229
|
-
}), () => 'click')
|
|
235
|
+
}), () => 'click', 'isDropdownShow')
|
|
230
236
|
], MockedComponent.prototype, "elementAppender", void 0);
|
|
231
237
|
const mockedComponent = new MockedComponent();
|
|
232
238
|
mockedComponent.componentDidLoad();
|
|
@@ -33,3 +33,20 @@ export const isAsyncFunction = (fn) => {
|
|
|
33
33
|
return false;
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
+
const frameworkSafeList = ['angular', 'vue', 'react', 'next'];
|
|
37
|
+
/**
|
|
38
|
+
* The function sets the Vega environment by assigning the provided environment object to the global `_vega_env_` variable.
|
|
39
|
+
*
|
|
40
|
+
* @param {Record<string, string>} env - The `env` parameter is an object that represents the environment variables. It is a
|
|
41
|
+
* record where each key-value pair represents an environment variable name and its corresponding value.
|
|
42
|
+
*/
|
|
43
|
+
export function setVegaEnv(env) {
|
|
44
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
45
|
+
try {
|
|
46
|
+
if (!globalThis['_vega_env_'] && env && frameworkSafeList.includes(env.framework)) {
|
|
47
|
+
Object.assign(globalThis, { _vega_env_: env });
|
|
48
|
+
}
|
|
49
|
+
//eslint-disable-next-line no-empty
|
|
50
|
+
}
|
|
51
|
+
catch (e) { }
|
|
52
|
+
}
|
|
@@ -2,3 +2,4 @@ export { getCurrentBreakpoint } from './breakpoints';
|
|
|
2
2
|
export { LogUtility } from './log';
|
|
3
3
|
export { formatAndValidResponsiveToken, formatAndValidGap, formatAndValidShadow, formatAndValidBreakpointSize, formatAndValidBackgroundColor, formatAndValidBorderColor, formatAndValidBorderRadius, formatAndValidFlexBreakpoint, formatAndValidPadding, formatAndValidTextColor, } from './designToken';
|
|
4
4
|
export { camelToDashCase } from './string';
|
|
5
|
+
export { setVegaEnv } from './misc';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generateUUID, isAsyncFunction, isObjectEmpty } from '../misc';
|
|
1
|
+
import { generateUUID, isAsyncFunction, isObjectEmpty, setVegaEnv } from '../misc';
|
|
2
2
|
test('generateUUID as expected', () => {
|
|
3
3
|
const dateNowStub = jest.fn(() => 1530518207007);
|
|
4
4
|
global.Date.now = dateNowStub;
|
|
@@ -38,3 +38,8 @@ test('isAsyncFunction as expected', () => {
|
|
|
38
38
|
expect(isAsyncFunction(testFn5)).toBeFalsy();
|
|
39
39
|
expect(isAsyncFunction(testFn6)).toBeFalsy();
|
|
40
40
|
});
|
|
41
|
+
test('setVegaEnv as expected', () => {
|
|
42
|
+
const mockEnv = { framework: 'react' };
|
|
43
|
+
setVegaEnv(mockEnv);
|
|
44
|
+
expect(globalThis['_vega_env_']).toEqual(mockEnv);
|
|
45
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { F as FeatureFlag } from './featureFlagController-4af2e47b.js';
|
|
2
|
-
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager } from './themeManager-
|
|
2
|
+
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager } from './themeManager-e3fa04c2.js';
|
|
3
3
|
import { s as setVegaLogLevel } from './log-a824be80.js';
|
|
4
|
-
import { V as VegaDialog } from './vegaDialogController-
|
|
4
|
+
import { V as VegaDialog } from './vegaDialogController-e846b92b.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Default export function that will be used by stencil global script,
|
package/dist/esm/{formFieldControllerSlimmer-0118a14e.js → formFieldControllerSlimmer-09f6795f.js}
RENAMED
|
@@ -5,7 +5,7 @@ import { c as camelToDashCase } from './string-be824360.js';
|
|
|
5
5
|
import { C as ChangeManager, g as FORM_FIELD_PENDING_VALID_CHANGE, h as FORM_FIELD_ELEMENT_DISCONNECTED, i as FORM_RESET_OPERATION_TRIGGERED, F as FORM_SUBMIT, j as FIELD_ERROR_MESSAGE_CHANGE } from './changeManager-f79d6d08.js';
|
|
6
6
|
import { O as Observer } from './observer-8ff2bb65.js';
|
|
7
7
|
import { f as findParent, c as isElementVisible } from './ui-de038e30.js';
|
|
8
|
-
import { a as isAsyncFunction, g as generateUUID } from './misc-
|
|
8
|
+
import { a as isAsyncFunction, g as generateUUID } from './misc-5b7f93da.js';
|
|
9
9
|
|
|
10
10
|
/** The `FormFieldValidationRuleHandler` class is responsible for handling the validation rules for a form field. */
|
|
11
11
|
class FormFieldValidationRuleHandler {
|
package/dist/esm/index.js
CHANGED
|
@@ -2,17 +2,17 @@ export { g as getCurrentBreakpoint } from './breakpoints-011b5bc5.js';
|
|
|
2
2
|
export { L as LogUtility, s as setVegaLogLevel } from './log-a824be80.js';
|
|
3
3
|
export { d as formatAndValidBackgroundColor, e as formatAndValidBorderColor, g as formatAndValidBorderRadius, c as formatAndValidBreakpointSize, h as formatAndValidFlexBreakpoint, a as formatAndValidGap, i as formatAndValidPadding, f as formatAndValidResponsiveToken, b as formatAndValidShadow, j as formatAndValidTextColor } from './designToken-4019f77f.js';
|
|
4
4
|
export { c as camelToDashCase } from './string-be824360.js';
|
|
5
|
+
export { s as setVegaEnv } from './misc-5b7f93da.js';
|
|
5
6
|
export { a as BackgroundColors, b as BorderColors, B as BorderRadius, C as Colors, F as FillBackgroundColors, c as Shadows, d as Spacing, S as StrokeBackgroundColors, T as TextColors } from './typeGuard-9fa9d8db.js';
|
|
6
7
|
export { B as Breakpoints } from './breakpoints-d6ef9003.js';
|
|
7
8
|
export { I as Icons, g as getIconFromToken } from './icons-42174059.js';
|
|
8
9
|
export { T as Typography, a as TypographyKeys } from './typography-8a180b9c.js';
|
|
9
10
|
export { B as BreakpointKeys } from './ui-f441c535.js';
|
|
10
11
|
export { F as FeatureFlag } from './featureFlagController-4af2e47b.js';
|
|
11
|
-
export { V as VegaLoader, a as VegaNotify, b as VegaThemeManager } from './themeManager-
|
|
12
|
-
export { V as VegaDialog } from './vegaDialogController-
|
|
12
|
+
export { V as VegaLoader, a as VegaNotify, b as VegaThemeManager } from './themeManager-e3fa04c2.js';
|
|
13
|
+
export { V as VegaDialog } from './vegaDialogController-e846b92b.js';
|
|
13
14
|
import './responsiveFormatFacade-74de412c.js';
|
|
14
15
|
import './number-400b3bf2.js';
|
|
15
|
-
import './misc-9fdbcfbb.js';
|
|
16
16
|
import './ui-de038e30.js';
|
|
17
17
|
import './ui.type-12100305.js';
|
|
18
18
|
import './zIndexManager-3a694c18.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-15c74515.js';
|
|
2
|
-
import { g as globalScripts } from './app-globals-
|
|
2
|
+
import { g as globalScripts } from './app-globals-b640bd87.js';
|
|
3
3
|
import './featureFlagController-4af2e47b.js';
|
|
4
4
|
import './log-a824be80.js';
|
|
5
|
-
import './themeManager-
|
|
6
|
-
import './misc-
|
|
5
|
+
import './themeManager-e3fa04c2.js';
|
|
6
|
+
import './misc-5b7f93da.js';
|
|
7
7
|
import './ui-de038e30.js';
|
|
8
8
|
import './ui.type-12100305.js';
|
|
9
9
|
import './zIndexManager-3a694c18.js';
|
|
10
10
|
import './number-400b3bf2.js';
|
|
11
11
|
import './tinycolor-ca77a535.js';
|
|
12
|
-
import './vegaDialogController-
|
|
12
|
+
import './vegaDialogController-e846b92b.js';
|
|
13
13
|
|
|
14
14
|
/*
|
|
15
15
|
Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
|