@heartlandone/vega 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/cjs/{app-globals-2bf8bcb4.js → app-globals-82228833.js} +1 -1
  2. package/dist/cjs/{featureFlagController-a3377c0c.js → featureFlagController-d092ffce.js} +5 -0
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/cjs/{inputValidator-27df89b1.js → inputValidator-4485dcb4.js} +12 -2
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/vega-button_22.cjs.entry.js +34 -16
  7. package/dist/cjs/vega-checkbox-group.cjs.entry.js +34 -8
  8. package/dist/cjs/vega-radio-group.cjs.entry.js +1 -1
  9. package/dist/cjs/vega.cjs.js +3 -3
  10. package/dist/collection/components/vega-checkbox/vega-checkbox-group.js +59 -14
  11. package/dist/collection/components/vega-checkbox/vega-checkbox.js +17 -7
  12. package/dist/collection/components/vega-sidenav/vega-sidenav-link.js +20 -0
  13. package/dist/collection/components/vega-sidenav/vega-sidenav.js +19 -9
  14. package/dist/collection/helpers/feature-control/featureFlagsMap.js +5 -0
  15. package/dist/collection/helpers/validator/rules/requiredFieldRule.js +12 -2
  16. package/dist/collection/helpers/validator/test/rules/requiredFieldRule.test.js +28 -2
  17. package/dist/collection/utils/misc.js +9 -0
  18. package/dist/esm/{app-globals-b6c310ea.js → app-globals-e9d163d5.js} +1 -1
  19. package/dist/esm/{featureFlagController-56eb18b9.js → featureFlagController-8dd5f329.js} +5 -0
  20. package/dist/esm/index.js +1 -1
  21. package/dist/esm/{inputValidator-fe5c9453.js → inputValidator-27713cd2.js} +12 -2
  22. package/dist/esm/loader.js +3 -3
  23. package/dist/esm/vega-button_22.entry.js +34 -16
  24. package/dist/esm/vega-checkbox-group.entry.js +34 -8
  25. package/dist/esm/vega-radio-group.entry.js +1 -1
  26. package/dist/esm/vega.js +3 -3
  27. package/dist/types/components/vega-checkbox/vega-checkbox-group.d.ts +10 -3
  28. package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +2 -2
  29. package/dist/types/components/vega-sidenav/vega-sidenav-link.d.ts +2 -0
  30. package/dist/types/components/vega-sidenav/vega-sidenav.d.ts +8 -3
  31. package/dist/types/components.d.ts +30 -6
  32. package/dist/types/helpers/feature-control/featureFlag.d.ts +2 -1
  33. package/dist/types/helpers/validator/rules/requiredFieldRule.d.ts +11 -3
  34. package/dist/types/types/general.d.ts +1 -0
  35. package/dist/types/utils/misc.d.ts +7 -0
  36. package/dist/vega/index.esm.js +1 -1
  37. package/dist/vega/{p-1563bdd6.entry.js → p-5c85d021.entry.js} +1 -1
  38. package/dist/vega/{p-3a929703.js → p-699caab3.js} +1 -1
  39. package/dist/vega/p-8e09cf4d.entry.js +1 -0
  40. package/dist/vega/p-975a51b7.js +1 -0
  41. package/dist/vega/p-bba1c460.js +1 -0
  42. package/dist/vega/{p-e7839fab.entry.js → p-ec5c01b5.entry.js} +2 -2
  43. package/dist/vega/vega.css +1 -1
  44. package/dist/vega/vega.esm.js +1 -1
  45. package/package.json +1 -1
  46. package/style/vega.css +1 -1
  47. package/style/vega_min.css +1 -1
  48. package/dist/vega/p-01f6afca.js +0 -1
  49. package/dist/vega/p-340ac655.js +0 -1
  50. package/dist/vega/p-b875dc2e.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const featureFlagController = require('./featureFlagController-a3377c0c.js');
3
+ const featureFlagController = require('./featureFlagController-d092ffce.js');
4
4
 
5
5
  /**
6
6
  * Default export function that will be used by stencil global script,
@@ -19,6 +19,11 @@ const FeatureFlagsMap = {
19
19
  createdTimestamp: 1662508203840,
20
20
  createdAtVersion: '1.4.0',
21
21
  },
22
+ 'VEGA_CHECK_GROUP.VALUE_PROPERTY_TYPE_CHANGE_ARRAY': {
23
+ description: 'Feature flag to enable the change value property to array for the checkbox group component.',
24
+ createdTimestamp: 1661243219291,
25
+ createdAtVersion: '1.3.0',
26
+ },
22
27
  };
23
28
  const FeatureFlagsMap$1 = Object.freeze(FeatureFlagsMap);
24
29
 
@@ -7,7 +7,7 @@ const log = require('./log-7b0974fb.js');
7
7
  const typeGuard = require('./typeGuard-7a5746f7.js');
8
8
  const icons = require('./icons-5a6aca4a.js');
9
9
  const ui = require('./ui-2ae913d5.js');
10
- const featureFlagController = require('./featureFlagController-a3377c0c.js');
10
+ const featureFlagController = require('./featureFlagController-d092ffce.js');
11
11
  require('./number-2eb7b8f3.js');
12
12
 
13
13
  /* This file is generated by vega-design 2.0.64 */
@@ -27,10 +27,19 @@ const debounce = (fn, delay, context) => {
27
27
  * @implements {ValidationRule<string>}
28
28
  */
29
29
  class RequiredFieldRule {
30
+ constructor() {
31
+ /**
32
+ * A function that checks if the item is a string, number, or boolean.
33
+ *
34
+ * @param {unknown} item - The item to be checked.
35
+ * @returns {boolean} The return value is a boolean that indicates whether the item is string, number or boolean.
36
+ */
37
+ this.checkArrayItemType = (item) => typeof item === 'string' || typeof item === 'number' || typeof item === 'boolean';
38
+ }
30
39
  /**
31
40
  * If the input is a number or a boolean, return true. If the input is a string, return true if the string is not empty
32
41
  *
33
- * @param {number | string | boolean} input - The input to be evaluated.
42
+ * @param {Primitive | Array<Primitive>} input - The input to be evaluated.
34
43
  * @returns {EvaluateResult} An object with two properties: isValid and message.
35
44
  */
36
45
  evaluate(input) {
@@ -43,7 +52,7 @@ class RequiredFieldRule {
43
52
  message: '',
44
53
  };
45
54
  }
46
- else if (typeof input === 'string') {
55
+ else if (typeof input === 'string' || Array.isArray(input)) {
47
56
  return {
48
57
  isValid: input.length > 0,
49
58
  message: input.length <= 0 ? 'This field is required' : '',
@@ -66,6 +75,7 @@ class RequiredFieldRule {
66
75
  return (typeof input === 'string' ||
67
76
  typeof input === 'number' ||
68
77
  typeof input === 'boolean' ||
78
+ (Array.isArray(input) && input.every(this.checkArrayItemType)) ||
69
79
  input === null);
70
80
  }
71
81
  }
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c12bc235.js');
6
- const appGlobals = require('./app-globals-2bf8bcb4.js');
7
- require('./featureFlagController-a3377c0c.js');
6
+ const appGlobals = require('./app-globals-82228833.js');
7
+ require('./featureFlagController-d092ffce.js');
8
8
 
9
9
  /*
10
10
  Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
@@ -17,7 +17,7 @@ const defineCustomElements = (win, options) => {
17
17
  if (typeof window === 'undefined') return Promise.resolve();
18
18
  return patchEsm().then(() => {
19
19
  appGlobals.globalScripts();
20
- return index.bootstrapLazy([["vega-button_22.cjs",[[0,"vega-tab-group",{"selectedTabDataTarget":[1,"selected-tab-data-target"],"gap":[1],"showCloseButton":[4,"show-close-button"],"tabItems":[16],"positionRelativeTo":[1,"position-relative-to"],"tabPages":[32],"tabWidthArray":[32],"currentPageIndex":[32]},[[0,"vegaPageUpdate","onCarouselPageUpdate"]]],[4,"vega-table",{"columns":[16],"dataSource":[16],"rowSelection":[1040],"rowExpandable":[4,"row-expandable"],"rowClickable":[4,"row-clickable"],"rowDivider":[4,"row-divider"],"columnDivider":[4,"column-divider"],"striped":[4],"density":[1],"paddingX":[16],"showHeader":[4,"show-header"],"pagination":[16],"selectedRowKeySet":[32],"expandedRowKeySet":[32],"currentBreakpoint":[32],"sortersMap":[32],"currentData":[32],"currentClickedRowIndex":[32],"currentPage":[32],"openExpandRow":[64],"closeExpandRow":[64],"closeAllExpandRow":[64],"toggleExpandRow":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64]}],[0,"vega-date-picker",{"mode":[1],"value":[1537],"label":[1],"required":[4],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"format":[1],"size":[1],"formValidation":[2,"form-validation"],"validationRules":[16],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"placeholder":[1],"clearButton":[4,"clear-button"],"readOnly":[4,"read-only"],"allowRepick":[4,"allow-repick"],"dropdownConfig":[16],"disabled":[4],"valid":[64],"doClose":[64],"doOpen":[64]}],[0,"vega-input-select",{"label":[1],"required":[1028],"source":[1040],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[4,"auto-validation"],"formValidation":[2,"form-validation"],"validationRules":[16],"prefixIcon":[1,"prefix-icon"],"disabled":[4],"placeholder":[1],"hint":[1],"vegaDropdownProps":[16],"isDropdownShow":[32],"showError":[32],"doClose":[64],"doOpen":[64],"doChange":[64],"valid":[64]}],[0,"vega-progress-tracker",{"direction":[1],"steps":[16],"completedStepArray":[16],"canClickStep":[4,"can-click-step"],"current":[32],"nextStep":[64],"prevStep":[64],"setCurrent":[64],"getCurrent":[64]},[[0,"vegaPageUpdate","onVegaPageUpdateHandler"]]],[4,"vega-sidenav",{"source":[16],"footnote":[1],"headerConfig":[16],"openByDefault":[1,"open-by-default"],"openState":[32],"toggle":[64]},[[0,"vegaClick","onVegaClickHandler"],[10,"click","collapseSidenavByBackDropClick"]]],[0,"vega-button",{"size":[1],"variant":[1],"icon":[1],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"block":[4]}],[4,"vega-footer",{"tosUrl":[1,"tos-url"],"privacyUrl":[1,"privacy-url"]}],[4,"vega-modal",{"backdrop":[1],"size":[8],"open":[1028],"animation":[4],"modalTitle":[1,"modal-title"],"backdropColor":[1,"backdrop-color"],"isVerticallyCenter":[4,"is-vertically-center"],"showCloseButton":[4,"show-close-button"],"padding":[1],"contentMaxHeight":[2,"content-max-height"],"modal":[64]},[[10,"click","listenDataTarget"],[0,"click","listenDataDismiss"]]],[0,"vega-pagination",{"current":[1538],"total":[2],"pageSize":[2,"page-size"]}],[0,"vega-button-link",{"link":[1],"size":[1],"icon":[513],"iconType":[1,"icon-type"],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"eventful":[4]}],[4,"vega-checkbox",{"value":[1],"checked":[1028],"disabled":[4],"size":[1]}],[4,"vega-sidenav-group",{"icon":[1],"label":[1]}],[4,"vega-sidenav-link",{"icon":[1],"selected":[1540],"url":[1]}],[4,"vega-dropdown",{"size":[8],"trigger":[1],"translocation":[16],"source":[1040],"positionRelativeTo":[1,"position-relative-to"],"selectType":[1,"select-type"],"selectedSourceKey":[1025,"selected-source-key"],"maxHeight":[2,"max-height"],"searchable":[4],"matchTargetWidth":[4,"match-target-width"],"matchContainerHeight":[4,"match-container-height"],"caseSensitive":[4,"case-sensitive"],"searchString":[32],"show":[64],"hide":[64]},[[1,"mouseenter","onMouseEnter"],[0,"click","onClick"],[9,"mousedown","onMouseDown"]]],[4,"vega-carousel",{"perPage":[8,"per-page"],"showSlider":[4,"show-slider"],"spacing":[1],"page":[32],"totalPages":[32],"nextPage":[64],"prevPage":[64],"goToPage":[64]}],[4,"vega-grid",{"column":[2],"row":[2],"gap":[1]}],[0,"vega-input",{"inputId":[513,"id"],"label":[1],"value":[1537],"type":[1],"autocomplete":[1],"prefixIcon":[1,"prefix-icon"],"email":[4],"required":[1028],"min":[2],"max":[2],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"showClearIcon":[4,"show-clear-icon"],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"formValidation":[2,"form-validation"],"validationRules":[16],"size":[1],"placeholder":[1],"disabled":[4],"hint":[1],"maskConfig":[16],"valid":[64]},[[0,"input","handleValueInput"]]],[0,"vega-button-circle",{"size":[1],"variant":[1],"icon":[513],"label":[1],"disabled":[4],"danger":[4]}],[4,"vega-tooltip",{"size":[8],"trigger":[1],"content":[1],"placement":[1],"positionRelativeTo":[1,"position-relative-to"]},[[0,"click","onClick"],[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"],[8,"keyup","onKeyDown"],[9,"mousedown","onMouseDown"]]],[0,"vega-flex",{"gap":[1],"margin":[1],"breakpoint":[1],"direction":[1],"alignItem":[1,"align-item"],"justifyContent":[1,"justify-content"]}],[0,"vega-icon",{"icon":[513],"size":[1]}]]],["vega-accordion.cjs",[[4,"vega-accordion",{"drawsBackground":[4,"draws-background"],"prefixIcon":[1,"prefix-icon"],"accordionTitle":[1,"accordion-title"],"expandIconAlign":[1,"expand-icon-align"],"expand":[1028],"showExpandIcon":[4,"show-expand-icon"],"groupId":[1,"group-id"]}]]],["vega-stepper.cjs",[[0,"vega-stepper",{"stepperId":[513,"id"],"max":[2],"min":[2],"value":[1538],"label":[1],"disabled":[4],"required":[4],"isValid":[1028,"is-valid"],"formValidation":[2,"form-validation"],"valid":[64]},[[0,"vegaChange","handleValueChange"],[0,"vegaValidate","handleVegaInputValidate"]]]]],["vega-item-toggle.cjs",[[0,"vega-item-toggle",{"itemToggleStatusMap":[16],"isToggled":[1028,"is-toggled"],"isError":[4,"is-error"],"toggleStatus":[32]}]]],["vega-option.cjs",[[4,"vega-option",{"label":[1],"subLabel":[1,"sub-label"],"icon":[1]},[[2,"vegaFocus","handleFocus"],[2,"vegaBlur","handleBlur"],[3,"mousedown","handleMousedown"],[3,"mouseup","handleMouseup"],[3,"mouseout","handleMouseout"],[2,"click","handleClick"]]]]],["vega-checkbox-group.cjs",[[4,"vega-checkbox-group",{"label":[1],"value":[1025],"vegaFlexProp":[16],"disabled":[4],"required":[4],"hint":[1],"formValidation":[2,"form-validation"],"isValid":[1540,"is-valid"],"valid":[64]},[[0,"vegaChange","changeValue"]]]]],["vega-header.cjs",[[4,"vega-header",{"menuShown":[32]}]]],["vega-radio-group.cjs",[[4,"vega-radio-group",{"label":[1],"value":[1025],"name":[1],"vegaFlexProp":[16],"required":[4],"hint":[1],"formValidation":[2,"form-validation"],"isValid":[1540,"is-valid"],"valid":[64]},[[0,"vegaChange","changeValue"]]]]],["vega-toggle-switch.cjs",[[0,"vega-toggle-switch",{"checked":[1540],"size":[1],"label":[1],"disabled":[4]}]]],["vega-app-footer.cjs",[[0,"vega-app-footer",{"tosUrl":[1,"tos-url"],"privacyUrl":[1,"privacy-url"],"showDisclaimer":[4,"show-disclaimer"]}]]],["vega-badge.cjs",[[0,"vega-badge",{"bgColor":[1,"bg-color"],"textColor":[1,"text-color"],"text":[1],"size":[1]}]]],["vega-form.cjs",[[1,"vega-form",{"isValid":[1028,"is-valid"],"isTouched":[1028,"is-touched"],"valid":[64],"getValue":[64],"setValue":[64],"reset":[64]},[[0,"vegaValidate","updateInternalValidStatus"],[0,"vegaChange","updateInternalTouchedStatus"]]]]],["vega-radio.cjs",[[4,"vega-radio",{"value":[1025],"name":[1],"checked":[4],"disabled":[4]}]]],["vega-card.cjs",[[4,"vega-card",{"padding":[1],"margin":[1],"shadow":[1],"backgroundColor":[1,"background-color"]}]]]], options);
20
+ return index.bootstrapLazy([["vega-button_22.cjs",[[0,"vega-tab-group",{"selectedTabDataTarget":[1,"selected-tab-data-target"],"gap":[1],"showCloseButton":[4,"show-close-button"],"tabItems":[16],"positionRelativeTo":[1,"position-relative-to"],"tabPages":[32],"tabWidthArray":[32],"currentPageIndex":[32]},[[0,"vegaPageUpdate","onCarouselPageUpdate"]]],[4,"vega-table",{"columns":[16],"dataSource":[16],"rowSelection":[1040],"rowExpandable":[4,"row-expandable"],"rowClickable":[4,"row-clickable"],"rowDivider":[4,"row-divider"],"columnDivider":[4,"column-divider"],"striped":[4],"density":[1],"paddingX":[16],"showHeader":[4,"show-header"],"pagination":[16],"selectedRowKeySet":[32],"expandedRowKeySet":[32],"currentBreakpoint":[32],"sortersMap":[32],"currentData":[32],"currentClickedRowIndex":[32],"currentPage":[32],"openExpandRow":[64],"closeExpandRow":[64],"closeAllExpandRow":[64],"toggleExpandRow":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64]}],[0,"vega-date-picker",{"mode":[1],"value":[1537],"label":[1],"required":[4],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"format":[1],"size":[1],"formValidation":[2,"form-validation"],"validationRules":[16],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"placeholder":[1],"clearButton":[4,"clear-button"],"readOnly":[4,"read-only"],"allowRepick":[4,"allow-repick"],"dropdownConfig":[16],"disabled":[4],"valid":[64],"doClose":[64],"doOpen":[64]}],[0,"vega-input-select",{"label":[1],"required":[1028],"source":[1040],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[4,"auto-validation"],"formValidation":[2,"form-validation"],"validationRules":[16],"prefixIcon":[1,"prefix-icon"],"disabled":[4],"placeholder":[1],"hint":[1],"vegaDropdownProps":[16],"isDropdownShow":[32],"showError":[32],"doClose":[64],"doOpen":[64],"doChange":[64],"valid":[64]}],[0,"vega-progress-tracker",{"direction":[1],"steps":[16],"completedStepArray":[16],"canClickStep":[4,"can-click-step"],"current":[32],"nextStep":[64],"prevStep":[64],"setCurrent":[64],"getCurrent":[64]},[[0,"vegaPageUpdate","onVegaPageUpdateHandler"]]],[4,"vega-sidenav",{"source":[16],"footnote":[1],"headerConfig":[16],"openByDefault":[1,"open-by-default"],"openState":[32],"toggle":[64]},[[0,"vegaClick","onVegaClickHandler"],[10,"click","collapseSidenavByBackDropClick"]]],[0,"vega-button",{"size":[1],"variant":[1],"icon":[1],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"block":[4]}],[4,"vega-footer",{"tosUrl":[1,"tos-url"],"privacyUrl":[1,"privacy-url"]}],[4,"vega-modal",{"backdrop":[1],"size":[8],"open":[1028],"animation":[4],"modalTitle":[1,"modal-title"],"backdropColor":[1,"backdrop-color"],"isVerticallyCenter":[4,"is-vertically-center"],"showCloseButton":[4,"show-close-button"],"padding":[1],"contentMaxHeight":[2,"content-max-height"],"modal":[64]},[[10,"click","listenDataTarget"],[0,"click","listenDataDismiss"]]],[0,"vega-pagination",{"current":[1538],"total":[2],"pageSize":[2,"page-size"]}],[0,"vega-button-link",{"link":[1],"size":[1],"icon":[513],"iconType":[1,"icon-type"],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"eventful":[4]}],[4,"vega-checkbox",{"value":[1],"name":[1],"checked":[1028],"disabled":[4],"size":[1]}],[4,"vega-sidenav-group",{"icon":[1],"label":[1]}],[4,"vega-sidenav-link",{"icon":[1],"selected":[1540],"url":[1],"showSideBarOnClickLink":[4,"show-side-bar-on-click-link"]}],[4,"vega-dropdown",{"size":[8],"trigger":[1],"translocation":[16],"source":[1040],"positionRelativeTo":[1,"position-relative-to"],"selectType":[1,"select-type"],"selectedSourceKey":[1025,"selected-source-key"],"maxHeight":[2,"max-height"],"searchable":[4],"matchTargetWidth":[4,"match-target-width"],"matchContainerHeight":[4,"match-container-height"],"caseSensitive":[4,"case-sensitive"],"searchString":[32],"show":[64],"hide":[64]},[[1,"mouseenter","onMouseEnter"],[0,"click","onClick"],[9,"mousedown","onMouseDown"]]],[4,"vega-carousel",{"perPage":[8,"per-page"],"showSlider":[4,"show-slider"],"spacing":[1],"page":[32],"totalPages":[32],"nextPage":[64],"prevPage":[64],"goToPage":[64]}],[4,"vega-grid",{"column":[2],"row":[2],"gap":[1]}],[0,"vega-input",{"inputId":[513,"id"],"label":[1],"value":[1537],"type":[1],"autocomplete":[1],"prefixIcon":[1,"prefix-icon"],"email":[4],"required":[1028],"min":[2],"max":[2],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"showClearIcon":[4,"show-clear-icon"],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"formValidation":[2,"form-validation"],"validationRules":[16],"size":[1],"placeholder":[1],"disabled":[4],"hint":[1],"maskConfig":[16],"valid":[64]},[[0,"input","handleValueInput"]]],[0,"vega-button-circle",{"size":[1],"variant":[1],"icon":[513],"label":[1],"disabled":[4],"danger":[4]}],[4,"vega-tooltip",{"size":[8],"trigger":[1],"content":[1],"placement":[1],"positionRelativeTo":[1,"position-relative-to"]},[[0,"click","onClick"],[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"],[8,"keyup","onKeyDown"],[9,"mousedown","onMouseDown"]]],[0,"vega-flex",{"gap":[1],"margin":[1],"breakpoint":[1],"direction":[1],"alignItem":[1,"align-item"],"justifyContent":[1,"justify-content"]}],[0,"vega-icon",{"icon":[513],"size":[1]}]]],["vega-accordion.cjs",[[4,"vega-accordion",{"drawsBackground":[4,"draws-background"],"prefixIcon":[1,"prefix-icon"],"accordionTitle":[1,"accordion-title"],"expandIconAlign":[1,"expand-icon-align"],"expand":[1028],"showExpandIcon":[4,"show-expand-icon"],"groupId":[1,"group-id"]}]]],["vega-stepper.cjs",[[0,"vega-stepper",{"stepperId":[513,"id"],"max":[2],"min":[2],"value":[1538],"label":[1],"disabled":[4],"required":[4],"isValid":[1028,"is-valid"],"formValidation":[2,"form-validation"],"valid":[64]},[[0,"vegaChange","handleValueChange"],[0,"vegaValidate","handleVegaInputValidate"]]]]],["vega-item-toggle.cjs",[[0,"vega-item-toggle",{"itemToggleStatusMap":[16],"isToggled":[1028,"is-toggled"],"isError":[4,"is-error"],"toggleStatus":[32]}]]],["vega-option.cjs",[[4,"vega-option",{"label":[1],"subLabel":[1,"sub-label"],"icon":[1]},[[2,"vegaFocus","handleFocus"],[2,"vegaBlur","handleBlur"],[3,"mousedown","handleMousedown"],[3,"mouseup","handleMouseup"],[3,"mouseout","handleMouseout"],[2,"click","handleClick"]]]]],["vega-checkbox-group.cjs",[[4,"vega-checkbox-group",{"label":[1],"value":[1025],"name":[1],"vegaFlexProp":[16],"disabled":[4],"required":[4],"hint":[1],"formValidation":[2,"form-validation"],"isValid":[1540,"is-valid"],"valid":[64]},[[0,"vegaChange","changeValue"]]]]],["vega-header.cjs",[[4,"vega-header",{"menuShown":[32]}]]],["vega-radio-group.cjs",[[4,"vega-radio-group",{"label":[1],"value":[1025],"name":[1],"vegaFlexProp":[16],"required":[4],"hint":[1],"formValidation":[2,"form-validation"],"isValid":[1540,"is-valid"],"valid":[64]},[[0,"vegaChange","changeValue"]]]]],["vega-toggle-switch.cjs",[[0,"vega-toggle-switch",{"checked":[1540],"size":[1],"label":[1],"disabled":[4]}]]],["vega-app-footer.cjs",[[0,"vega-app-footer",{"tosUrl":[1,"tos-url"],"privacyUrl":[1,"privacy-url"],"showDisclaimer":[4,"show-disclaimer"]}]]],["vega-badge.cjs",[[0,"vega-badge",{"bgColor":[1,"bg-color"],"textColor":[1,"text-color"],"text":[1],"size":[1]}]]],["vega-form.cjs",[[1,"vega-form",{"isValid":[1028,"is-valid"],"isTouched":[1028,"is-touched"],"valid":[64],"getValue":[64],"setValue":[64],"reset":[64]},[[0,"vegaValidate","updateInternalValidStatus"],[0,"vegaChange","updateInternalTouchedStatus"]]]]],["vega-radio.cjs",[[4,"vega-radio",{"value":[1025],"name":[1],"checked":[4],"disabled":[4]}]]],["vega-card.cjs",[[4,"vega-card",{"padding":[1],"margin":[1],"shadow":[1],"backgroundColor":[1,"background-color"]}]]]], options);
21
21
  });
22
22
  };
23
23
 
@@ -6,13 +6,13 @@ const index = require('./index-c12bc235.js');
6
6
  const component = require('./component-4cd0485c.js');
7
7
  const accessibility = require('./accessibility-34d46f85.js');
8
8
  const designToken = require('./designToken-ac6a4cf5.js');
9
- const inputValidator = require('./inputValidator-27df89b1.js');
9
+ const inputValidator = require('./inputValidator-4485dcb4.js');
10
10
  const ui$1 = require('./ui-1393500e.js');
11
11
  const log = require('./log-7b0974fb.js');
12
12
  const array = require('./array-414f6d01.js');
13
13
  const ui = require('./ui-2ae913d5.js');
14
14
  const typeGuard = require('./typeGuard-7a5746f7.js');
15
- const featureFlagController = require('./featureFlagController-a3377c0c.js');
15
+ const featureFlagController = require('./featureFlagController-d092ffce.js');
16
16
  const misc = require('./misc-649f158c.js');
17
17
  const icons = require('./icons-5a6aca4a.js');
18
18
  const subject = require('./subject-fdccaa01.js');
@@ -1168,13 +1168,6 @@ const VegaCheckbox = class {
1168
1168
  watchCheckedChange() {
1169
1169
  this.vegaChange.emit(this.checked);
1170
1170
  }
1171
- connectedCallback() {
1172
- const name = this.el.getAttribute('name');
1173
- if (name) {
1174
- this.name = name;
1175
- this.el.removeAttribute('name');
1176
- }
1177
- }
1178
1171
  componentDidLoad() {
1179
1172
  if (this.labelElement.innerHTML.trim() === '') {
1180
1173
  this.labelElement.classList.add('v-hidden');
@@ -4565,6 +4558,21 @@ const VegaProgressTracker = class {
4565
4558
  };
4566
4559
  VegaProgressTracker.style = vegaProgressTrackerCss;
4567
4560
 
4561
+ /**
4562
+ * returns a string that is a random UUID
4563
+ *
4564
+ * @returns {string} random UUID string.
4565
+ */
4566
+ /**
4567
+ * It returns true if the object is empty, and false if it's not.
4568
+ *
4569
+ * @param {unknown} object - The object to check if it's empty.
4570
+ * @returns {boolean} A function that takes an object as an argument and returns a boolean.
4571
+ */
4572
+ const isObjectEmpty = (object) => {
4573
+ return Object.keys(object).length === 0;
4574
+ };
4575
+
4568
4576
  const VegaSidenav = class {
4569
4577
  constructor(hostRef) {
4570
4578
  index.registerInstance(this, hostRef);
@@ -4572,6 +4580,8 @@ const VegaSidenav = class {
4572
4580
  this.openState = 'close';
4573
4581
  /** footnote attached to the side nav footer **/
4574
4582
  this.footnote = '';
4583
+ /** header config used to generate side nav with custom logo and headline **/
4584
+ this.headerConfig = {};
4575
4585
  /** support open by default behavior for all screen sizes and disable collapse for large screen */
4576
4586
  this.openByDefault = 'close';
4577
4587
  /**
@@ -4679,13 +4689,16 @@ const VegaSidenav = class {
4679
4689
  this.initResizeObserver();
4680
4690
  }
4681
4691
  /**
4682
- * It will hide the sidenav in the mobile terminal when clicking the link in the sidenav.
4692
+ * It will hide the sidenav when clicking the link in the sidenav on mobile terminal default.
4693
+ * If link set showSideBarOnClickLink is true that will don't hide the sidenav..
4683
4694
  * The below method is e2e-test covered in
4684
4695
  * @see{module:vega-sidenav-e2e-vega-click-handler-mobile}
4696
+ * @see{module:vega-sidenav-e2e-vega-click-handler-not-close-sidenav-mobile}
4685
4697
  */
4686
4698
  /* istanbul ignore next */
4687
- onVegaClickHandler() {
4688
- if (this.responsiveBehavior.showSideBarClickLink) {
4699
+ onVegaClickHandler(e) {
4700
+ const sidenavLink = e.target;
4701
+ if (!this.responsiveBehavior.showSideBarOnClickLink && !sidenavLink.showSideBarOnClickLink) {
4689
4702
  this.setSideNavOpenStatus('clickClose');
4690
4703
  }
4691
4704
  }
@@ -4728,7 +4741,7 @@ const VegaSidenav = class {
4728
4741
  * @see{module:vega-sidenav-mobile-show-backdrop}
4729
4742
  */
4730
4743
  render() {
4731
- return component.sanitizeVegaComponent(index.h(index.Host, { class: this.getSidebarCss() }, index.h("div", { class: "vega-sidebar", ref: (el) => (this.sidebar = el) }, index.h("div", { class: "vega-sidebar-content-container", ref: (el) => (this.content = el) }, index.h(index.Fragment, null, this.headerConfig && this.renderSideBarHeader(), this.renderSideBarList(), this.renderSideBarFooter())), index.h("i", { role: 'button', onClick: this.handleClickSidebarIcon, onKeyDown: accessibility.createEnterKeyHandlerToTriggerClick(), class: "vega-handler-icon", tabIndex: 0, "aria-label": 'Handle Sidebar Icon' }))), this.el);
4744
+ return component.sanitizeVegaComponent(index.h(index.Host, { class: this.getSidebarCss() }, index.h("div", { class: "vega-sidebar", ref: (el) => (this.sidebar = el) }, index.h("div", { class: "vega-sidebar-content-container", ref: (el) => (this.content = el) }, index.h(index.Fragment, null, !isObjectEmpty(this.headerConfig) && this.renderSideBarHeader(), this.renderSideBarList(), this.renderSideBarFooter())), index.h("i", { role: 'button', onClick: this.handleClickSidebarIcon, onKeyDown: accessibility.createEnterKeyHandlerToTriggerClick(), class: "vega-handler-icon", tabIndex: 0, "aria-label": 'Handle Sidebar Icon' }))), this.el);
4732
4745
  }
4733
4746
  getSidebarCss() {
4734
4747
  return {
@@ -4852,7 +4865,7 @@ const VegaSidenav = class {
4852
4865
  showSideBar: true,
4853
4866
  showBackdrop: false,
4854
4867
  canBeScrolled: true,
4855
- showSideBarClickLink: false,
4868
+ showSideBarOnClickLink: true,
4856
4869
  };
4857
4870
  }
4858
4871
  else {
@@ -4860,11 +4873,14 @@ const VegaSidenav = class {
4860
4873
  showSideBar: false,
4861
4874
  showBackdrop: true,
4862
4875
  canBeScrolled: false,
4863
- showSideBarClickLink: true,
4876
+ showSideBarOnClickLink: false,
4864
4877
  };
4865
4878
  }
4866
4879
  }
4867
4880
  /**
4881
+ * The current div uses a named slot and has a sibling above it, if you skip rendering this whole element by checking a variable,
4882
+ * it will cause the slot's position to move into the sibling.
4883
+ * For specific examples, see the documentation of stencil_slot_bug.md
4868
4884
  * The below method is e2e-test covered in
4869
4885
  * @see{module:vega-sidenav-e2e-with-source-with-child}
4870
4886
  * @see{module:vega-sidenav-e2e-with-source-without-length}
@@ -4872,7 +4888,7 @@ const VegaSidenav = class {
4872
4888
  /* istanbul ignore next */
4873
4889
  renderSideBarList() {
4874
4890
  var _a;
4875
- return (index.h(index.Fragment, null, index.h("div", { class: { 'v-mt-size-24': !this.headerConfig } }, index.h("slot", { name: "before-list-slot" })), index.h("div", { class: "vega-nav-list", ref: (ref) => (this.list = ref) }, ((_a = this.source) === null || _a === void 0 ? void 0 : _a.length) ? this.renderSideBarListBySource() : index.h("slot", null))));
4891
+ return (index.h(index.Fragment, null, isObjectEmpty(this.headerConfig) ? index.h("div", { class: "v-mt-size-24" }) : null, index.h("slot", { name: "before-list-slot" }), index.h("div", { class: "vega-nav-list", ref: (ref) => (this.list = ref) }, ((_a = this.source) === null || _a === void 0 ? void 0 : _a.length) ? this.renderSideBarListBySource() : index.h("slot", null))));
4876
4892
  }
4877
4893
  /**
4878
4894
  * The below method is e2e-test covered in
@@ -4990,6 +5006,8 @@ const VegaSidenavLink = class {
4990
5006
  this.vegaClick = index.createEvent(this, "vegaClick", 7);
4991
5007
  /** boolean indicating if current link item is selected **/
4992
5008
  this.selected = false;
5009
+ /** boolean indicating if the link close sidenav when click it */
5010
+ this.showSideBarOnClickLink = false;
4993
5011
  /**
4994
5012
  * The below method is e2e-test covered in
4995
5013
  * @see{module:vega-sidenav-link-click-event}
@@ -3,9 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c12bc235.js');
6
- const inputValidator = require('./inputValidator-27df89b1.js');
6
+ const inputValidator = require('./inputValidator-4485dcb4.js');
7
7
  const component = require('./component-4cd0485c.js');
8
8
  const subject = require('./subject-fdccaa01.js');
9
+ const featureFlagController = require('./featureFlagController-d092ffce.js');
9
10
  require('./log-7b0974fb.js');
10
11
 
11
12
  const VegaCheckboxGroup = class {
@@ -16,7 +17,8 @@ const VegaCheckboxGroup = class {
16
17
  /** the label of checkbox group. */
17
18
  this.label = '';
18
19
  /** array indicating the values of all the nested checkbox **/
19
- this.value = '';
20
+ /** TODO: When FeatureFlag is deleted, the type of value needs to be set to string[]. */
21
+ this.value = [];
20
22
  /** all properties of vega-flex components */
21
23
  this.vegaFlexProp = {
22
24
  gap: 'size-8',
@@ -37,6 +39,9 @@ const VegaCheckboxGroup = class {
37
39
  /** set the validation status. */
38
40
  this.isValid = null;
39
41
  }
42
+ watchName() {
43
+ this.initCheckboxArray();
44
+ }
40
45
  watchVegaFlexProp() {
41
46
  this.setVegaFlexProperty();
42
47
  }
@@ -47,7 +52,7 @@ const VegaCheckboxGroup = class {
47
52
  // Hide the error message UI for the disabled input
48
53
  // and show the error message UI for the re-enabled input
49
54
  await this.valid();
50
- this.setVegaCheckboxDisabled();
55
+ this.initCheckboxArray();
51
56
  }
52
57
  /**
53
58
  * The below method is e2e-test covered in
@@ -72,10 +77,8 @@ const VegaCheckboxGroup = class {
72
77
  this.setupInputValidator();
73
78
  }
74
79
  componentDidLoad() {
75
- this.vegaCheckboxArray = Array.from(this.el.querySelectorAll('vega-checkbox'));
76
80
  this.setVegaFlexProperty();
77
- this.setVegaCheckboxDisabled();
78
- this.syncCheckboxItemsValue();
81
+ this.initCheckboxArray();
79
82
  }
80
83
  async changeValue(event) {
81
84
  if (event.target !== this.el) {
@@ -138,15 +141,38 @@ const VegaCheckboxGroup = class {
138
141
  checkedValue.push(vegaCheckbox.value);
139
142
  }
140
143
  });
141
- this.value = checkedValue.join(',');
144
+ if (featureFlagController.FeatureFlag.isEnabled('VEGA_CHECK_GROUP.VALUE_PROPERTY_TYPE_CHANGE_ARRAY')) {
145
+ this.value = checkedValue;
146
+ }
147
+ else {
148
+ this.value = checkedValue.join(',');
149
+ }
142
150
  }
143
- setVegaCheckboxDisabled() {
151
+ initCheckboxArray() {
152
+ this.defaultValue = this.value;
153
+ this.vegaCheckboxArray = Array.from(this.el.querySelectorAll('vega-checkbox'));
144
154
  this.vegaCheckboxArray.forEach((vegaCheckbox) => {
155
+ if (this.defaultValue && this.defaultValue.length > 0) {
156
+ if (featureFlagController.FeatureFlag.isEnabled('VEGA_CHECK_GROUP.VALUE_PROPERTY_TYPE_CHANGE_ARRAY')) {
157
+ vegaCheckbox.checked = this.defaultValue.includes(vegaCheckbox.value);
158
+ }
159
+ else {
160
+ const valueArray = this.defaultValue.split(',');
161
+ vegaCheckbox.checked = valueArray.includes(vegaCheckbox.value);
162
+ }
163
+ }
145
164
  vegaCheckbox.disabled = this.disabled;
165
+ if (this.name) {
166
+ vegaCheckbox.name = this.name;
167
+ }
168
+ else {
169
+ vegaCheckbox.name = vegaCheckbox.getAttribute('name');
170
+ }
146
171
  });
147
172
  }
148
173
  get el() { return index.getElement(this); }
149
174
  static get watchers() { return {
175
+ "name": ["watchName"],
150
176
  "vegaFlexProp": ["watchVegaFlexProp"],
151
177
  "disabled": ["watchDisabled"],
152
178
  "required": ["watchDefaultValidationRule"],
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c12bc235.js');
6
6
  const component = require('./component-4cd0485c.js');
7
- const inputValidator = require('./inputValidator-27df89b1.js');
7
+ const inputValidator = require('./inputValidator-4485dcb4.js');
8
8
  require('./log-7b0974fb.js');
9
9
 
10
10
  const VegaRadioGroup = class {
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-c12bc235.js');
4
- const appGlobals = require('./app-globals-2bf8bcb4.js');
5
- require('./featureFlagController-a3377c0c.js');
4
+ const appGlobals = require('./app-globals-82228833.js');
5
+ require('./featureFlagController-d092ffce.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com
@@ -18,5 +18,5 @@ const patchBrowser = () => {
18
18
 
19
19
  patchBrowser().then(options => {
20
20
  appGlobals.globalScripts();
21
- return index.bootstrapLazy([["vega-button_22.cjs",[[0,"vega-tab-group",{"selectedTabDataTarget":[1,"selected-tab-data-target"],"gap":[1],"showCloseButton":[4,"show-close-button"],"tabItems":[16],"positionRelativeTo":[1,"position-relative-to"],"tabPages":[32],"tabWidthArray":[32],"currentPageIndex":[32]},[[0,"vegaPageUpdate","onCarouselPageUpdate"]]],[4,"vega-table",{"columns":[16],"dataSource":[16],"rowSelection":[1040],"rowExpandable":[4,"row-expandable"],"rowClickable":[4,"row-clickable"],"rowDivider":[4,"row-divider"],"columnDivider":[4,"column-divider"],"striped":[4],"density":[1],"paddingX":[16],"showHeader":[4,"show-header"],"pagination":[16],"selectedRowKeySet":[32],"expandedRowKeySet":[32],"currentBreakpoint":[32],"sortersMap":[32],"currentData":[32],"currentClickedRowIndex":[32],"currentPage":[32],"openExpandRow":[64],"closeExpandRow":[64],"closeAllExpandRow":[64],"toggleExpandRow":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64]}],[0,"vega-date-picker",{"mode":[1],"value":[1537],"label":[1],"required":[4],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"format":[1],"size":[1],"formValidation":[2,"form-validation"],"validationRules":[16],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"placeholder":[1],"clearButton":[4,"clear-button"],"readOnly":[4,"read-only"],"allowRepick":[4,"allow-repick"],"dropdownConfig":[16],"disabled":[4],"valid":[64],"doClose":[64],"doOpen":[64]}],[0,"vega-input-select",{"label":[1],"required":[1028],"source":[1040],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[4,"auto-validation"],"formValidation":[2,"form-validation"],"validationRules":[16],"prefixIcon":[1,"prefix-icon"],"disabled":[4],"placeholder":[1],"hint":[1],"vegaDropdownProps":[16],"isDropdownShow":[32],"showError":[32],"doClose":[64],"doOpen":[64],"doChange":[64],"valid":[64]}],[0,"vega-progress-tracker",{"direction":[1],"steps":[16],"completedStepArray":[16],"canClickStep":[4,"can-click-step"],"current":[32],"nextStep":[64],"prevStep":[64],"setCurrent":[64],"getCurrent":[64]},[[0,"vegaPageUpdate","onVegaPageUpdateHandler"]]],[4,"vega-sidenav",{"source":[16],"footnote":[1],"headerConfig":[16],"openByDefault":[1,"open-by-default"],"openState":[32],"toggle":[64]},[[0,"vegaClick","onVegaClickHandler"],[10,"click","collapseSidenavByBackDropClick"]]],[0,"vega-button",{"size":[1],"variant":[1],"icon":[1],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"block":[4]}],[4,"vega-footer",{"tosUrl":[1,"tos-url"],"privacyUrl":[1,"privacy-url"]}],[4,"vega-modal",{"backdrop":[1],"size":[8],"open":[1028],"animation":[4],"modalTitle":[1,"modal-title"],"backdropColor":[1,"backdrop-color"],"isVerticallyCenter":[4,"is-vertically-center"],"showCloseButton":[4,"show-close-button"],"padding":[1],"contentMaxHeight":[2,"content-max-height"],"modal":[64]},[[10,"click","listenDataTarget"],[0,"click","listenDataDismiss"]]],[0,"vega-pagination",{"current":[1538],"total":[2],"pageSize":[2,"page-size"]}],[0,"vega-button-link",{"link":[1],"size":[1],"icon":[513],"iconType":[1,"icon-type"],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"eventful":[4]}],[4,"vega-checkbox",{"value":[1],"checked":[1028],"disabled":[4],"size":[1]}],[4,"vega-sidenav-group",{"icon":[1],"label":[1]}],[4,"vega-sidenav-link",{"icon":[1],"selected":[1540],"url":[1]}],[4,"vega-dropdown",{"size":[8],"trigger":[1],"translocation":[16],"source":[1040],"positionRelativeTo":[1,"position-relative-to"],"selectType":[1,"select-type"],"selectedSourceKey":[1025,"selected-source-key"],"maxHeight":[2,"max-height"],"searchable":[4],"matchTargetWidth":[4,"match-target-width"],"matchContainerHeight":[4,"match-container-height"],"caseSensitive":[4,"case-sensitive"],"searchString":[32],"show":[64],"hide":[64]},[[1,"mouseenter","onMouseEnter"],[0,"click","onClick"],[9,"mousedown","onMouseDown"]]],[4,"vega-carousel",{"perPage":[8,"per-page"],"showSlider":[4,"show-slider"],"spacing":[1],"page":[32],"totalPages":[32],"nextPage":[64],"prevPage":[64],"goToPage":[64]}],[4,"vega-grid",{"column":[2],"row":[2],"gap":[1]}],[0,"vega-input",{"inputId":[513,"id"],"label":[1],"value":[1537],"type":[1],"autocomplete":[1],"prefixIcon":[1,"prefix-icon"],"email":[4],"required":[1028],"min":[2],"max":[2],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"showClearIcon":[4,"show-clear-icon"],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"formValidation":[2,"form-validation"],"validationRules":[16],"size":[1],"placeholder":[1],"disabled":[4],"hint":[1],"maskConfig":[16],"valid":[64]},[[0,"input","handleValueInput"]]],[0,"vega-button-circle",{"size":[1],"variant":[1],"icon":[513],"label":[1],"disabled":[4],"danger":[4]}],[4,"vega-tooltip",{"size":[8],"trigger":[1],"content":[1],"placement":[1],"positionRelativeTo":[1,"position-relative-to"]},[[0,"click","onClick"],[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"],[8,"keyup","onKeyDown"],[9,"mousedown","onMouseDown"]]],[0,"vega-flex",{"gap":[1],"margin":[1],"breakpoint":[1],"direction":[1],"alignItem":[1,"align-item"],"justifyContent":[1,"justify-content"]}],[0,"vega-icon",{"icon":[513],"size":[1]}]]],["vega-accordion.cjs",[[4,"vega-accordion",{"drawsBackground":[4,"draws-background"],"prefixIcon":[1,"prefix-icon"],"accordionTitle":[1,"accordion-title"],"expandIconAlign":[1,"expand-icon-align"],"expand":[1028],"showExpandIcon":[4,"show-expand-icon"],"groupId":[1,"group-id"]}]]],["vega-stepper.cjs",[[0,"vega-stepper",{"stepperId":[513,"id"],"max":[2],"min":[2],"value":[1538],"label":[1],"disabled":[4],"required":[4],"isValid":[1028,"is-valid"],"formValidation":[2,"form-validation"],"valid":[64]},[[0,"vegaChange","handleValueChange"],[0,"vegaValidate","handleVegaInputValidate"]]]]],["vega-item-toggle.cjs",[[0,"vega-item-toggle",{"itemToggleStatusMap":[16],"isToggled":[1028,"is-toggled"],"isError":[4,"is-error"],"toggleStatus":[32]}]]],["vega-option.cjs",[[4,"vega-option",{"label":[1],"subLabel":[1,"sub-label"],"icon":[1]},[[2,"vegaFocus","handleFocus"],[2,"vegaBlur","handleBlur"],[3,"mousedown","handleMousedown"],[3,"mouseup","handleMouseup"],[3,"mouseout","handleMouseout"],[2,"click","handleClick"]]]]],["vega-checkbox-group.cjs",[[4,"vega-checkbox-group",{"label":[1],"value":[1025],"vegaFlexProp":[16],"disabled":[4],"required":[4],"hint":[1],"formValidation":[2,"form-validation"],"isValid":[1540,"is-valid"],"valid":[64]},[[0,"vegaChange","changeValue"]]]]],["vega-header.cjs",[[4,"vega-header",{"menuShown":[32]}]]],["vega-radio-group.cjs",[[4,"vega-radio-group",{"label":[1],"value":[1025],"name":[1],"vegaFlexProp":[16],"required":[4],"hint":[1],"formValidation":[2,"form-validation"],"isValid":[1540,"is-valid"],"valid":[64]},[[0,"vegaChange","changeValue"]]]]],["vega-toggle-switch.cjs",[[0,"vega-toggle-switch",{"checked":[1540],"size":[1],"label":[1],"disabled":[4]}]]],["vega-app-footer.cjs",[[0,"vega-app-footer",{"tosUrl":[1,"tos-url"],"privacyUrl":[1,"privacy-url"],"showDisclaimer":[4,"show-disclaimer"]}]]],["vega-badge.cjs",[[0,"vega-badge",{"bgColor":[1,"bg-color"],"textColor":[1,"text-color"],"text":[1],"size":[1]}]]],["vega-form.cjs",[[1,"vega-form",{"isValid":[1028,"is-valid"],"isTouched":[1028,"is-touched"],"valid":[64],"getValue":[64],"setValue":[64],"reset":[64]},[[0,"vegaValidate","updateInternalValidStatus"],[0,"vegaChange","updateInternalTouchedStatus"]]]]],["vega-radio.cjs",[[4,"vega-radio",{"value":[1025],"name":[1],"checked":[4],"disabled":[4]}]]],["vega-card.cjs",[[4,"vega-card",{"padding":[1],"margin":[1],"shadow":[1],"backgroundColor":[1,"background-color"]}]]]], options);
21
+ return index.bootstrapLazy([["vega-button_22.cjs",[[0,"vega-tab-group",{"selectedTabDataTarget":[1,"selected-tab-data-target"],"gap":[1],"showCloseButton":[4,"show-close-button"],"tabItems":[16],"positionRelativeTo":[1,"position-relative-to"],"tabPages":[32],"tabWidthArray":[32],"currentPageIndex":[32]},[[0,"vegaPageUpdate","onCarouselPageUpdate"]]],[4,"vega-table",{"columns":[16],"dataSource":[16],"rowSelection":[1040],"rowExpandable":[4,"row-expandable"],"rowClickable":[4,"row-clickable"],"rowDivider":[4,"row-divider"],"columnDivider":[4,"column-divider"],"striped":[4],"density":[1],"paddingX":[16],"showHeader":[4,"show-header"],"pagination":[16],"selectedRowKeySet":[32],"expandedRowKeySet":[32],"currentBreakpoint":[32],"sortersMap":[32],"currentData":[32],"currentClickedRowIndex":[32],"currentPage":[32],"openExpandRow":[64],"closeExpandRow":[64],"closeAllExpandRow":[64],"toggleExpandRow":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64]}],[0,"vega-date-picker",{"mode":[1],"value":[1537],"label":[1],"required":[4],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"format":[1],"size":[1],"formValidation":[2,"form-validation"],"validationRules":[16],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"placeholder":[1],"clearButton":[4,"clear-button"],"readOnly":[4,"read-only"],"allowRepick":[4,"allow-repick"],"dropdownConfig":[16],"disabled":[4],"valid":[64],"doClose":[64],"doOpen":[64]}],[0,"vega-input-select",{"label":[1],"required":[1028],"source":[1040],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[4,"auto-validation"],"formValidation":[2,"form-validation"],"validationRules":[16],"prefixIcon":[1,"prefix-icon"],"disabled":[4],"placeholder":[1],"hint":[1],"vegaDropdownProps":[16],"isDropdownShow":[32],"showError":[32],"doClose":[64],"doOpen":[64],"doChange":[64],"valid":[64]}],[0,"vega-progress-tracker",{"direction":[1],"steps":[16],"completedStepArray":[16],"canClickStep":[4,"can-click-step"],"current":[32],"nextStep":[64],"prevStep":[64],"setCurrent":[64],"getCurrent":[64]},[[0,"vegaPageUpdate","onVegaPageUpdateHandler"]]],[4,"vega-sidenav",{"source":[16],"footnote":[1],"headerConfig":[16],"openByDefault":[1,"open-by-default"],"openState":[32],"toggle":[64]},[[0,"vegaClick","onVegaClickHandler"],[10,"click","collapseSidenavByBackDropClick"]]],[0,"vega-button",{"size":[1],"variant":[1],"icon":[1],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"block":[4]}],[4,"vega-footer",{"tosUrl":[1,"tos-url"],"privacyUrl":[1,"privacy-url"]}],[4,"vega-modal",{"backdrop":[1],"size":[8],"open":[1028],"animation":[4],"modalTitle":[1,"modal-title"],"backdropColor":[1,"backdrop-color"],"isVerticallyCenter":[4,"is-vertically-center"],"showCloseButton":[4,"show-close-button"],"padding":[1],"contentMaxHeight":[2,"content-max-height"],"modal":[64]},[[10,"click","listenDataTarget"],[0,"click","listenDataDismiss"]]],[0,"vega-pagination",{"current":[1538],"total":[2],"pageSize":[2,"page-size"]}],[0,"vega-button-link",{"link":[1],"size":[1],"icon":[513],"iconType":[1,"icon-type"],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"eventful":[4]}],[4,"vega-checkbox",{"value":[1],"name":[1],"checked":[1028],"disabled":[4],"size":[1]}],[4,"vega-sidenav-group",{"icon":[1],"label":[1]}],[4,"vega-sidenav-link",{"icon":[1],"selected":[1540],"url":[1],"showSideBarOnClickLink":[4,"show-side-bar-on-click-link"]}],[4,"vega-dropdown",{"size":[8],"trigger":[1],"translocation":[16],"source":[1040],"positionRelativeTo":[1,"position-relative-to"],"selectType":[1,"select-type"],"selectedSourceKey":[1025,"selected-source-key"],"maxHeight":[2,"max-height"],"searchable":[4],"matchTargetWidth":[4,"match-target-width"],"matchContainerHeight":[4,"match-container-height"],"caseSensitive":[4,"case-sensitive"],"searchString":[32],"show":[64],"hide":[64]},[[1,"mouseenter","onMouseEnter"],[0,"click","onClick"],[9,"mousedown","onMouseDown"]]],[4,"vega-carousel",{"perPage":[8,"per-page"],"showSlider":[4,"show-slider"],"spacing":[1],"page":[32],"totalPages":[32],"nextPage":[64],"prevPage":[64],"goToPage":[64]}],[4,"vega-grid",{"column":[2],"row":[2],"gap":[1]}],[0,"vega-input",{"inputId":[513,"id"],"label":[1],"value":[1537],"type":[1],"autocomplete":[1],"prefixIcon":[1,"prefix-icon"],"email":[4],"required":[1028],"min":[2],"max":[2],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"showClearIcon":[4,"show-clear-icon"],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"formValidation":[2,"form-validation"],"validationRules":[16],"size":[1],"placeholder":[1],"disabled":[4],"hint":[1],"maskConfig":[16],"valid":[64]},[[0,"input","handleValueInput"]]],[0,"vega-button-circle",{"size":[1],"variant":[1],"icon":[513],"label":[1],"disabled":[4],"danger":[4]}],[4,"vega-tooltip",{"size":[8],"trigger":[1],"content":[1],"placement":[1],"positionRelativeTo":[1,"position-relative-to"]},[[0,"click","onClick"],[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"],[8,"keyup","onKeyDown"],[9,"mousedown","onMouseDown"]]],[0,"vega-flex",{"gap":[1],"margin":[1],"breakpoint":[1],"direction":[1],"alignItem":[1,"align-item"],"justifyContent":[1,"justify-content"]}],[0,"vega-icon",{"icon":[513],"size":[1]}]]],["vega-accordion.cjs",[[4,"vega-accordion",{"drawsBackground":[4,"draws-background"],"prefixIcon":[1,"prefix-icon"],"accordionTitle":[1,"accordion-title"],"expandIconAlign":[1,"expand-icon-align"],"expand":[1028],"showExpandIcon":[4,"show-expand-icon"],"groupId":[1,"group-id"]}]]],["vega-stepper.cjs",[[0,"vega-stepper",{"stepperId":[513,"id"],"max":[2],"min":[2],"value":[1538],"label":[1],"disabled":[4],"required":[4],"isValid":[1028,"is-valid"],"formValidation":[2,"form-validation"],"valid":[64]},[[0,"vegaChange","handleValueChange"],[0,"vegaValidate","handleVegaInputValidate"]]]]],["vega-item-toggle.cjs",[[0,"vega-item-toggle",{"itemToggleStatusMap":[16],"isToggled":[1028,"is-toggled"],"isError":[4,"is-error"],"toggleStatus":[32]}]]],["vega-option.cjs",[[4,"vega-option",{"label":[1],"subLabel":[1,"sub-label"],"icon":[1]},[[2,"vegaFocus","handleFocus"],[2,"vegaBlur","handleBlur"],[3,"mousedown","handleMousedown"],[3,"mouseup","handleMouseup"],[3,"mouseout","handleMouseout"],[2,"click","handleClick"]]]]],["vega-checkbox-group.cjs",[[4,"vega-checkbox-group",{"label":[1],"value":[1025],"name":[1],"vegaFlexProp":[16],"disabled":[4],"required":[4],"hint":[1],"formValidation":[2,"form-validation"],"isValid":[1540,"is-valid"],"valid":[64]},[[0,"vegaChange","changeValue"]]]]],["vega-header.cjs",[[4,"vega-header",{"menuShown":[32]}]]],["vega-radio-group.cjs",[[4,"vega-radio-group",{"label":[1],"value":[1025],"name":[1],"vegaFlexProp":[16],"required":[4],"hint":[1],"formValidation":[2,"form-validation"],"isValid":[1540,"is-valid"],"valid":[64]},[[0,"vegaChange","changeValue"]]]]],["vega-toggle-switch.cjs",[[0,"vega-toggle-switch",{"checked":[1540],"size":[1],"label":[1],"disabled":[4]}]]],["vega-app-footer.cjs",[[0,"vega-app-footer",{"tosUrl":[1,"tos-url"],"privacyUrl":[1,"privacy-url"],"showDisclaimer":[4,"show-disclaimer"]}]]],["vega-badge.cjs",[[0,"vega-badge",{"bgColor":[1,"bg-color"],"textColor":[1,"text-color"],"text":[1],"size":[1]}]]],["vega-form.cjs",[[1,"vega-form",{"isValid":[1028,"is-valid"],"isTouched":[1028,"is-touched"],"valid":[64],"getValue":[64],"setValue":[64],"reset":[64]},[[0,"vegaValidate","updateInternalValidStatus"],[0,"vegaChange","updateInternalTouchedStatus"]]]]],["vega-radio.cjs",[[4,"vega-radio",{"value":[1025],"name":[1],"checked":[4],"disabled":[4]}]]],["vega-card.cjs",[[4,"vega-card",{"padding":[1],"margin":[1],"shadow":[1],"backgroundColor":[1,"background-color"]}]]]], options);
22
22
  });
@@ -4,12 +4,14 @@ import { RequiredFieldRule } from '../../helpers/validator/rules/requiredFieldRu
4
4
  import { sanitizeVegaComponent } from '../../utils/component';
5
5
  import ChangeManager from '../../helpers/observer/changeManager';
6
6
  import { FORM_CONTROLLED_FIELD_DISABLED_STATUS_CHANGE } from '../../helpers/observer/subject';
7
+ import { FeatureFlag } from '../../helpers/feature-control/featureFlagController';
7
8
  export class VegaCheckboxGroup {
8
9
  constructor() {
9
10
  /** the label of checkbox group. */
10
11
  this.label = '';
11
12
  /** array indicating the values of all the nested checkbox **/
12
- this.value = '';
13
+ /** TODO: When FeatureFlag is deleted, the type of value needs to be set to string[]. */
14
+ this.value = [];
13
15
  /** all properties of vega-flex components */
14
16
  this.vegaFlexProp = {
15
17
  gap: 'size-8',
@@ -30,6 +32,9 @@ export class VegaCheckboxGroup {
30
32
  /** set the validation status. */
31
33
  this.isValid = null;
32
34
  }
35
+ watchName() {
36
+ this.initCheckboxArray();
37
+ }
33
38
  watchVegaFlexProp() {
34
39
  this.setVegaFlexProperty();
35
40
  }
@@ -40,7 +45,7 @@ export class VegaCheckboxGroup {
40
45
  // Hide the error message UI for the disabled input
41
46
  // and show the error message UI for the re-enabled input
42
47
  await this.valid();
43
- this.setVegaCheckboxDisabled();
48
+ this.initCheckboxArray();
44
49
  }
45
50
  /**
46
51
  * The below method is e2e-test covered in
@@ -65,10 +70,8 @@ export class VegaCheckboxGroup {
65
70
  this.setupInputValidator();
66
71
  }
67
72
  componentDidLoad() {
68
- this.vegaCheckboxArray = Array.from(this.el.querySelectorAll('vega-checkbox'));
69
73
  this.setVegaFlexProperty();
70
- this.setVegaCheckboxDisabled();
71
- this.syncCheckboxItemsValue();
74
+ this.initCheckboxArray();
72
75
  }
73
76
  async changeValue(event) {
74
77
  if (event.target !== this.el) {
@@ -141,11 +144,33 @@ export class VegaCheckboxGroup {
141
144
  checkedValue.push(vegaCheckbox.value);
142
145
  }
143
146
  });
144
- this.value = checkedValue.join(',');
147
+ if (FeatureFlag.isEnabled('VEGA_CHECK_GROUP.VALUE_PROPERTY_TYPE_CHANGE_ARRAY')) {
148
+ this.value = checkedValue;
149
+ }
150
+ else {
151
+ this.value = checkedValue.join(',');
152
+ }
145
153
  }
146
- setVegaCheckboxDisabled() {
154
+ initCheckboxArray() {
155
+ this.defaultValue = this.value;
156
+ this.vegaCheckboxArray = Array.from(this.el.querySelectorAll('vega-checkbox'));
147
157
  this.vegaCheckboxArray.forEach((vegaCheckbox) => {
158
+ if (this.defaultValue && this.defaultValue.length > 0) {
159
+ if (FeatureFlag.isEnabled('VEGA_CHECK_GROUP.VALUE_PROPERTY_TYPE_CHANGE_ARRAY')) {
160
+ vegaCheckbox.checked = this.defaultValue.includes(vegaCheckbox.value);
161
+ }
162
+ else {
163
+ const valueArray = this.defaultValue.split(',');
164
+ vegaCheckbox.checked = valueArray.includes(vegaCheckbox.value);
165
+ }
166
+ }
148
167
  vegaCheckbox.disabled = this.disabled;
168
+ if (this.name) {
169
+ vegaCheckbox.name = this.name;
170
+ }
171
+ else {
172
+ vegaCheckbox.name = vegaCheckbox.getAttribute('name');
173
+ }
149
174
  });
150
175
  }
151
176
  static get is() { return "vega-checkbox-group"; }
@@ -172,19 +197,36 @@ export class VegaCheckboxGroup {
172
197
  "type": "string",
173
198
  "mutable": true,
174
199
  "complexType": {
175
- "original": "string",
176
- "resolved": "string",
200
+ "original": "string[] | string",
201
+ "resolved": "string | string[]",
177
202
  "references": {}
178
203
  },
179
204
  "required": false,
180
205
  "optional": false,
181
206
  "docs": {
182
207
  "tags": [],
183
- "text": "array indicating the values of all the nested checkbox *"
208
+ "text": "TODO: When FeatureFlag is deleted, the type of value needs to be set to string[]."
184
209
  },
185
210
  "attribute": "value",
186
211
  "reflect": false,
187
- "defaultValue": "''"
212
+ "defaultValue": "[]"
213
+ },
214
+ "name": {
215
+ "type": "string",
216
+ "mutable": false,
217
+ "complexType": {
218
+ "original": "string",
219
+ "resolved": "string",
220
+ "references": {}
221
+ },
222
+ "required": false,
223
+ "optional": false,
224
+ "docs": {
225
+ "tags": [],
226
+ "text": "The name of the input in each checkbox"
227
+ },
228
+ "attribute": "name",
229
+ "reflect": false
188
230
  },
189
231
  "vegaFlexProp": {
190
232
  "type": "unknown",
@@ -309,11 +351,11 @@ export class VegaCheckboxGroup {
309
351
  "composed": true,
310
352
  "docs": {
311
353
  "tags": [],
312
- "text": "event emitter used for notifying consumers any of checkbox value change event"
354
+ "text": "TODO: When FeatureFlag is deleted, the type of EventEmitter needs to be set to string[]."
313
355
  },
314
356
  "complexType": {
315
- "original": "string",
316
- "resolved": "string",
357
+ "original": "string[] | string",
358
+ "resolved": "string | string[]",
317
359
  "references": {}
318
360
  }
319
361
  }, {
@@ -358,6 +400,9 @@ export class VegaCheckboxGroup {
358
400
  }; }
359
401
  static get elementRef() { return "el"; }
360
402
  static get watchers() { return [{
403
+ "propName": "name",
404
+ "methodName": "watchName"
405
+ }, {
361
406
  "propName": "vegaFlexProp",
362
407
  "methodName": "watchVegaFlexProp"
363
408
  }, {
@@ -23,13 +23,6 @@ export class VegaCheckbox {
23
23
  watchCheckedChange() {
24
24
  this.vegaChange.emit(this.checked);
25
25
  }
26
- connectedCallback() {
27
- const name = this.el.getAttribute('name');
28
- if (name) {
29
- this.name = name;
30
- this.el.removeAttribute('name');
31
- }
32
- }
33
26
  componentDidLoad() {
34
27
  if (this.labelElement.innerHTML.trim() === '') {
35
28
  this.labelElement.classList.add('v-hidden');
@@ -65,6 +58,23 @@ export class VegaCheckbox {
65
58
  "attribute": "value",
66
59
  "reflect": false
67
60
  },
61
+ "name": {
62
+ "type": "string",
63
+ "mutable": false,
64
+ "complexType": {
65
+ "original": "string",
66
+ "resolved": "string",
67
+ "references": {}
68
+ },
69
+ "required": false,
70
+ "optional": false,
71
+ "docs": {
72
+ "tags": [],
73
+ "text": "the current checkbox input name *"
74
+ },
75
+ "attribute": "name",
76
+ "reflect": false
77
+ },
68
78
  "checked": {
69
79
  "type": "boolean",
70
80
  "mutable": true,