@heartlandone/vega 1.8.1 → 1.9.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 (64) hide show
  1. package/dist/cjs/{designToken-ac6a4cf5.js → designToken-0b0e6849.js} +2 -2
  2. package/dist/cjs/index.cjs.js +3 -3
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{typeGuard-7a5746f7.js → typeGuard-f0034f75.js} +13 -8
  5. package/dist/cjs/{ui-2ae913d5.js → ui-313ae2d4.js} +40 -2
  6. package/dist/cjs/vega-accordion.cjs.entry.js +3 -3
  7. package/dist/cjs/vega-badge.cjs.entry.js +3 -3
  8. package/dist/cjs/vega-button_22.cjs.entry.js +109 -37
  9. package/dist/cjs/vega-card.cjs.entry.js +3 -3
  10. package/dist/cjs/vega-form.cjs.entry.js +2 -2
  11. package/dist/cjs/vega-item-toggle.cjs.entry.js +1 -1
  12. package/dist/cjs/vega.cjs.js +1 -1
  13. package/dist/collection/components/vega-date-picker/vega-date-picker.js +35 -1
  14. package/dist/collection/components/vega-grid/vega-grid.js +7 -7
  15. package/dist/collection/components/vega-input/vega-input.js +24 -6
  16. package/dist/collection/components/vega-sidenav/vega-sidenav-group.js +3 -4
  17. package/dist/collection/components/vega-sidenav/vega-sidenav-link.js +4 -4
  18. package/dist/collection/components/vega-table/vega-table.js +34 -12
  19. package/dist/collection/constants/regex.js +2 -0
  20. package/dist/collection/constants/ui.js +40 -2
  21. package/dist/collection/helpers/formatter/string-formatter/stringMaskStrategy.js +14 -13
  22. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsiveGridColumnFormatter.test.js +4 -0
  23. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsiveGridRowFormatter.test.js +4 -0
  24. package/dist/collection/helpers/formatter/test/string-formatter/stringMaskStrategy.test.js +32 -0
  25. package/dist/collection/types/typeGuard.js +10 -7
  26. package/dist/esm/{designToken-e01f952e.js → designToken-247af13a.js} +2 -2
  27. package/dist/esm/index.js +3 -3
  28. package/dist/esm/loader.js +1 -1
  29. package/dist/esm/{typeGuard-77f3a01f.js → typeGuard-09d79ad9.js} +13 -8
  30. package/dist/esm/{ui-7e43c621.js → ui-c7fbc221.js} +40 -2
  31. package/dist/esm/vega-accordion.entry.js +3 -3
  32. package/dist/esm/vega-badge.entry.js +3 -3
  33. package/dist/esm/vega-button_22.entry.js +109 -37
  34. package/dist/esm/vega-card.entry.js +3 -3
  35. package/dist/esm/vega-form.entry.js +2 -2
  36. package/dist/esm/vega-item-toggle.entry.js +1 -1
  37. package/dist/esm/vega.js +1 -1
  38. package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +16 -0
  39. package/dist/types/components/vega-grid/vega-grid.d.ts +9 -7
  40. package/dist/types/components/vega-input/vega-input.d.ts +3 -1
  41. package/dist/types/components/vega-table/vega-table.d.ts +19 -16
  42. package/dist/types/components.d.ts +9 -9
  43. package/dist/types/constants/regex.d.ts +2 -0
  44. package/dist/types/constants/ui.d.ts +2 -2
  45. package/dist/types/helpers/formatter/string-formatter/stringMaskStrategy.d.ts +10 -9
  46. package/dist/types/types/publicApi.d.ts +2 -2
  47. package/dist/types/types/typeGuard.d.ts +9 -7
  48. package/dist/vega/index.esm.js +1 -1
  49. package/dist/vega/p-02e9d2a1.js +1 -0
  50. package/dist/vega/{p-a298dbd6.entry.js → p-267d2b92.entry.js} +1 -1
  51. package/dist/vega/{p-5ff47ae6.entry.js → p-7d797fd5.entry.js} +1 -1
  52. package/dist/vega/p-7e2af1ee.entry.js +13 -0
  53. package/dist/vega/{p-9623e205.entry.js → p-8d990293.entry.js} +1 -1
  54. package/dist/vega/{p-d482724b.js → p-8e89d355.js} +1 -1
  55. package/dist/vega/{p-71a1e0c3.entry.js → p-9afed9bd.entry.js} +1 -1
  56. package/dist/vega/{p-fb70c1ee.js → p-e1b1eb13.js} +1 -1
  57. package/dist/vega/{p-c18f5b74.entry.js → p-ee2b0858.entry.js} +1 -1
  58. package/dist/vega/vega.css +1 -1
  59. package/dist/vega/vega.esm.js +1 -1
  60. package/package.json +1 -1
  61. package/style/vega.css +1 -1
  62. package/style/vega_min.css +1 -1
  63. package/dist/vega/p-728eb4bf.js +0 -1
  64. package/dist/vega/p-b9eb375e.entry.js +0 -13
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const typeGuard = require('./typeGuard-7a5746f7.js');
3
+ const typeGuard = require('./typeGuard-f0034f75.js');
4
4
  const log = require('./log-7b0974fb.js');
5
- const ui = require('./ui-2ae913d5.js');
5
+ const ui = require('./ui-313ae2d4.js');
6
6
  const number = require('./number-2eb7b8f3.js');
7
7
 
8
8
  /**
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const designToken = require('./designToken-ac6a4cf5.js');
5
+ const designToken = require('./designToken-0b0e6849.js');
6
6
  const log = require('./log-7b0974fb.js');
7
- const typeGuard = require('./typeGuard-7a5746f7.js');
7
+ const typeGuard = require('./typeGuard-f0034f75.js');
8
8
  const icons = require('./icons-5a6aca4a.js');
9
- const ui = require('./ui-2ae913d5.js');
9
+ const ui = require('./ui-313ae2d4.js');
10
10
  const featureFlagController = require('./featureFlagController-7e890692.js');
11
11
  require('./number-2eb7b8f3.js');
12
12
 
@@ -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],"emptyDescription":[1,"empty-description"],"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":[516],"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":[516],"placeholder":[1],"hint":[1],"vegaDropdownProps":[16],"isDropdownShow":[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":[516],"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],"iconPosition":[1,"icon-position"],"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],"inputEditable":[4,"input-editable"],"disabled":[516],"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":[16],"name":[1],"vegaFlexProp":[16],"disabled":[516],"required":[4],"hint":[1],"formValidation":[2,"form-validation"],"isValid":[1028,"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":[1028,"is-valid"],"disabled":[4],"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":[1],"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],"emptyDescription":[1,"empty-description"],"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":[516],"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":[516],"placeholder":[1],"hint":[1],"vegaDropdownProps":[16],"isDropdownShow":[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":[8],"row":[8],"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":[516],"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],"iconPosition":[1,"icon-position"],"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],"inputEditable":[4,"input-editable"],"disabled":[516],"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":[16],"name":[1],"vegaFlexProp":[16],"disabled":[516],"required":[4],"hint":[1],"formValidation":[2,"form-validation"],"isValid":[1028,"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":[1028,"is-valid"],"disabled":[4],"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":[1],"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
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const ui = require('./ui-2ae913d5.js');
3
+ const ui = require('./ui-313ae2d4.js');
4
4
 
5
5
  /* This file is generated by vega-design 2.0.64 */
6
6
  /* eslint-disable */
@@ -70,6 +70,9 @@ const Spacing = {
70
70
  // prettier-ignore
71
71
  const Shadows = ["shadow-card", "shadow-modal", "shadow-popover", "shadow-form-field", "shadow-dropdown-menu", "shadow-app-header", "shadow-modal-header", "shadow-modal-footer", "shadow-modal-footer-no-scroll"];
72
72
 
73
+ const GridRowRegex = new RegExp(/^[1-6](-auto)?$/);
74
+ const GridColumnRegex = new RegExp(/^([1-9]|1[0-2])(-auto)?$/);
75
+
73
76
  /**
74
77
  * Returns true if the input is a string that is one of the four directions.
75
78
  *
@@ -185,22 +188,24 @@ const isShadowsTokenType = (input) => {
185
188
  return typeof input === 'string' && Shadows.includes(input);
186
189
  };
187
190
  /**
188
- * If the input is a number, and it's greater than 0 and less than or equal to 12, then it's a GridColumnType.
191
+ * If the input is a number, it must be between 1 and 12. If the input is a string, it must be in the
192
+ * format of '1-auto' to '12-auto'.
189
193
  *
190
- * @param {unknown} input - The value to be checked.
194
+ * @param {unknown} input - The input to be tested.
191
195
  * @returns {boolean} indicating if the input is {@link GridColumnType}
192
196
  */
193
197
  const isGridColumnType = (input) => {
194
- return !isNaN(Number(input)) && input > 0 && input <= 12;
198
+ return input && GridColumnRegex.test(input.toString());
195
199
  };
196
200
  /**
197
- * If the input is a number, and it's greater than 0 and less than or equal to 6, then it's a GridRowType.
201
+ * If the input is a number, it must be between 1 and 6. If the input is a string, it must be a number
202
+ * between 1 and 6 followed by a hyphen and the word 'auto'.
198
203
  *
199
- * @param {unknown} input - The value to be checked.
200
- * @returns {boolean} indicating if the input is {@link GridRowType}
204
+ * @param {unknown} input - The input to be tested.
205
+ * @returns {boolean} indicating if the input is {@link GridColumnType}
201
206
  */
202
207
  const isGridRowType = (input) => {
203
- return !isNaN(Number(input)) && input > 0 && input <= 6;
208
+ return input && GridRowRegex.test(input.toString());
204
209
  };
205
210
  /**
206
211
  * If the input is a string, and that string is a key in the Breakpoints object, then the input is a GridRowType.
@@ -1,8 +1,46 @@
1
1
  'use strict';
2
2
 
3
3
  const BreakpointKeys = ['default', 'S', 'M', 'L', 'XL'];
4
- const GridColumn = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
5
- const GridRow = [1, 2, 3, 4, 5, 6];
4
+ const GridColumn = [
5
+ 1,
6
+ 2,
7
+ 3,
8
+ 4,
9
+ 5,
10
+ 6,
11
+ 7,
12
+ 8,
13
+ 9,
14
+ 10,
15
+ 11,
16
+ 12,
17
+ '1-auto',
18
+ '2-auto',
19
+ '3-auto',
20
+ '4-auto',
21
+ '5-auto',
22
+ '6-auto',
23
+ '7-auto',
24
+ '8-auto',
25
+ '9-auto',
26
+ '10-auto',
27
+ '11-auto',
28
+ '12-auto',
29
+ ];
30
+ const GridRow = [
31
+ 1,
32
+ 2,
33
+ 3,
34
+ 4,
35
+ 5,
36
+ 6,
37
+ '1-auto',
38
+ '2-auto',
39
+ '3-auto',
40
+ '4-auto',
41
+ '5-auto',
42
+ '6-auto',
43
+ ];
6
44
  const DefaultModalSize = {
7
45
  default: 200,
8
46
  S: 246,
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-c12bc235.js');
6
6
  const component = require('./component-aa3542d1.js');
7
7
  const subject = require('./subject-b9a0f7c6.js');
8
- const typeGuard = require('./typeGuard-7a5746f7.js');
9
- const designToken = require('./designToken-ac6a4cf5.js');
8
+ const typeGuard = require('./typeGuard-f0034f75.js');
9
+ const designToken = require('./designToken-0b0e6849.js');
10
10
  const ui = require('./ui-cd4f8632.js');
11
11
  require('./featureFlagController-7e890692.js');
12
12
  require('./log-7b0974fb.js');
13
- require('./ui-2ae913d5.js');
13
+ require('./ui-313ae2d4.js');
14
14
  require('./number-2eb7b8f3.js');
15
15
 
16
16
  const VegaAccordion = class {
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c12bc235.js');
6
6
  const component = require('./component-aa3542d1.js');
7
- const designToken = require('./designToken-ac6a4cf5.js');
7
+ const designToken = require('./designToken-0b0e6849.js');
8
8
  const ui = require('./ui-cd4f8632.js');
9
9
  require('./featureFlagController-7e890692.js');
10
10
  require('./log-7b0974fb.js');
11
- require('./typeGuard-7a5746f7.js');
12
- require('./ui-2ae913d5.js');
11
+ require('./typeGuard-f0034f75.js');
12
+ require('./ui-313ae2d4.js');
13
13
  require('./number-2eb7b8f3.js');
14
14
 
15
15
  const vegaBadgeCss = "vega-badge {\n\t@apply v-inline-block;\n}\n\nvega-badge .vega-badge {\n\t@apply v-inline-flex v-items-center v-justify-center v-rounded-full v-box-border;\n\t@apply v-h-size-40 v-px-size-16 v-py-size-8 v-font-field-label-em;\n}\n\nvega-badge .vega-badge.default {\n\t@apply v-h-size-40 v-px-size-16 v-py-size-8 v-font-field-label-em v-min-w-size-40;\n}\n\nvega-badge .vega-badge.large {\n\t@apply v-h-size-64 v-px-size-24 v-py-size-16 v-font-h4 v-min-w-size-64;\n}\n\nvega-badge .vega-badge.small {\n\t@apply v-px-size-12 v-py-size-4 v-font-field-label-sm-em;\n\theight: 26px;\n\tmin-width: 26px;\n}\n";
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-c12bc235.js');
6
6
  const component = require('./component-aa3542d1.js');
7
7
  const accessibility = require('./accessibility-34d46f85.js');
8
- const designToken = require('./designToken-ac6a4cf5.js');
8
+ const designToken = require('./designToken-0b0e6849.js');
9
9
  const ui$1 = require('./ui-cd4f8632.js');
10
10
  const log = require('./log-7b0974fb.js');
11
11
  const array = require('./array-a4f013ec.js');
12
- const ui = require('./ui-2ae913d5.js');
13
- const typeGuard = require('./typeGuard-7a5746f7.js');
12
+ const ui = require('./ui-313ae2d4.js');
13
+ const typeGuard = require('./typeGuard-f0034f75.js');
14
14
  const featureFlagController = require('./featureFlagController-7e890692.js');
15
15
  const validatorFacade = require('./validatorFacade-7d489041.js');
16
16
  const number = require('./number-2eb7b8f3.js');
@@ -1306,15 +1306,7 @@ class StringMaskStrategy {
1306
1306
  constructor(maskConfig) {
1307
1307
  this.maskConfig = maskConfig;
1308
1308
  this.slotRegex = new RegExp(maskConfig.slot);
1309
- }
1310
- /**
1311
- * Given a string, return an array of all the digits in that string
1312
- *
1313
- * @param {string} input - The input string to be parsed.
1314
- * @returns {string[]} - An array of strings.
1315
- */
1316
- static getMatchedInputSlotValue(input) {
1317
- return input.match(/\d/g) || [];
1309
+ this.acceptRegex = new RegExp(maskConfig.accept, 'g');
1318
1310
  }
1319
1311
  /**
1320
1312
  * Given a string, it replaces the mask with the matched input slot value
@@ -1323,7 +1315,16 @@ class StringMaskStrategy {
1323
1315
  * @returns {string} The formatted string.
1324
1316
  */
1325
1317
  format(input) {
1326
- return this.replaceMaskWithMatchedInputSlots(input, StringMaskStrategy.getMatchedInputSlotValue(input));
1318
+ return this.replaceMaskWithMatchedInputSlots(input, this.getMatchedInputSlotValue(input));
1319
+ }
1320
+ /**
1321
+ * Given a string, return an array of all the digits in that string
1322
+ *
1323
+ * @param {string} input - The input string to be parsed.
1324
+ * @returns {string[]} - An array of strings.
1325
+ */
1326
+ getMatchedInputSlotValue(input) {
1327
+ return input.match(this.acceptRegex) || [];
1327
1328
  }
1328
1329
  /**
1329
1330
  * Replace the mask with the matched input slots
@@ -1354,17 +1355,17 @@ class StringMaskStrategy {
1354
1355
  StringMaskStrategy.PHONE_MASK = new StringMaskStrategy({
1355
1356
  mask: '(999) 999-9999',
1356
1357
  slot: '9',
1357
- accept: '\\d',
1358
+ accept: /\d/g,
1358
1359
  });
1359
1360
  StringMaskStrategy.ZIPCODE_MASK = new StringMaskStrategy({
1360
1361
  mask: '99999',
1361
1362
  slot: '9',
1362
- accept: '\\d',
1363
+ accept: /\d/g,
1363
1364
  });
1364
1365
  StringMaskStrategy.TAX_ID_MASK = new StringMaskStrategy({
1365
1366
  mask: '99-9999999',
1366
1367
  slot: '9',
1367
- accept: '\\d',
1368
+ accept: /\d/g,
1368
1369
  });
1369
1370
 
1370
1371
  /**
@@ -2214,7 +2215,7 @@ class ElementAppender {
2214
2215
  }
2215
2216
  }
2216
2217
 
2217
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2218
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2218
2219
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2219
2220
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
2220
2221
  r = Reflect.decorate(decorators, target, key, desc);
@@ -2464,7 +2465,7 @@ const VegaDatePicker = class {
2464
2465
  return new StringMaskStrategy({
2465
2466
  mask: format.replace(/[MDY]/gi, '9'),
2466
2467
  slot: '9',
2467
- accept: '\\d',
2468
+ accept: /\d/g,
2468
2469
  });
2469
2470
  };
2470
2471
  this.renderLabel = () => this.label && (index.h("div", { class: "vega-label" }, index.h("span", null, this.label), this.required && index.h("span", { class: "vega-require" }, "*")));
@@ -2668,6 +2669,24 @@ const VegaDatePicker = class {
2668
2669
  this.initInputValidator();
2669
2670
  this.setupStringFormatter(this.format);
2670
2671
  }
2672
+ componentWillRender() {
2673
+ this.oldSingleDateInputRef = this.singleDateInputRef;
2674
+ this.oldStartDateInputRef = this.startDateInputRef;
2675
+ this.oldEndDateInputRef = this.endDateInputRef;
2676
+ }
2677
+ /**
2678
+ * The below method is e2e-test covered in
2679
+ * @see{module:vega-date-picker-re-render-in-single-mode}
2680
+ * @see{module:vega-date-picker-re-render-in-range-mode }
2681
+ */
2682
+ /* istanbul ignore next */
2683
+ componentDidRender() {
2684
+ if ((this.oldSingleDateInputRef && this.oldSingleDateInputRef !== this.singleDateInputRef) ||
2685
+ (this.oldStartDateInputRef && this.oldStartDateInputRef !== this.startDateInputRef) ||
2686
+ (this.oldEndDateInputRef && this.oldEndDateInputRef !== this.endDateInputRef)) {
2687
+ this.refreshLitePicker();
2688
+ }
2689
+ }
2671
2690
  /**
2672
2691
  * call this method to valid the date picker with current value
2673
2692
  * The below method is e2e-test covered in
@@ -2760,6 +2779,22 @@ const VegaDatePicker = class {
2760
2779
  initElementAppender() {
2761
2780
  this.elementAppender || (this.elementAppender = new ElementAppender(this.datePickerContainer, this.litepickerRef, this.dropdownConfig.positionRelativeTo));
2762
2781
  }
2782
+ /**
2783
+ * The below method is e2e-test covered in
2784
+ * @see{module:vega-date-picker-re-render-in-single-mode}
2785
+ * @see{module:vega-date-picker-re-render-in-range-mode}
2786
+ */
2787
+ /* istanbul ignore next */
2788
+ refreshLitePicker() {
2789
+ if (this.elementAppender) {
2790
+ this.elementAppender.destroy();
2791
+ this.elementAppender = null;
2792
+ }
2793
+ if (this.datePicker) {
2794
+ this.datePicker.destroy();
2795
+ this.initDatePicker();
2796
+ }
2797
+ }
2763
2798
  /**
2764
2799
  * The below method is e2e-test covered in
2765
2800
  * @see{module:vega-date-picker-single-date-change}
@@ -2934,7 +2969,7 @@ const VegaDatePicker = class {
2934
2969
  "disabled": ["watchDisabled"]
2935
2970
  }; }
2936
2971
  };
2937
- __decorate([
2972
+ __decorate$1([
2938
2973
  ComponentLoadRequired()
2939
2974
  ], VegaDatePicker.prototype, "watchValue", null);
2940
2975
 
@@ -3780,6 +3815,16 @@ class NumberMaskStrategy {
3780
3815
  }
3781
3816
  }
3782
3817
 
3818
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3819
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3820
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
3821
+ r = Reflect.decorate(decorators, target, key, desc);
3822
+ else
3823
+ for (var i = decorators.length - 1; i >= 0; i--)
3824
+ if (d = decorators[i])
3825
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3826
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
3827
+ };
3783
3828
  const VegaInput = class {
3784
3829
  constructor(hostRef) {
3785
3830
  index.registerInstance(this, hostRef);
@@ -3855,6 +3900,9 @@ const VegaInput = class {
3855
3900
  this.onClearIcon = () => {
3856
3901
  this.value = '';
3857
3902
  };
3903
+ this.isClearIconVisible = () => {
3904
+ return !this.disabled && Boolean(this.value);
3905
+ };
3858
3906
  }
3859
3907
  /**
3860
3908
  * The input component is embedded in other components. If modifying the input value does not meet the requirements of other components,
@@ -3938,6 +3986,8 @@ const VegaInput = class {
3938
3986
  /**
3939
3987
  * The below method is e2e-test covered in
3940
3988
  * @see{module:vega-input-mask-change-with-custom-e2e}
3989
+ * For the ComponentLoadRequired, the test can not be added in e2e at now, we will add it while have better solution,
3990
+ * releated issue: https://gitlab.com/heartland1/vega/tiger/-/issues/646
3941
3991
  */
3942
3992
  /* istanbul ignore next */
3943
3993
  watchMaskChange() {
@@ -4011,6 +4061,9 @@ const VegaInput = class {
4011
4061
  stringFormatStrategy = new StringMaskStrategy(this.maskConfig.options);
4012
4062
  break;
4013
4063
  }
4064
+ if (this.type === 'number' && !this.maskConfig) {
4065
+ stringFormatStrategy = new NumberMaskStrategy();
4066
+ }
4014
4067
  if (this.stringInputFormatter)
4015
4068
  this.stringInputFormatter.destroy();
4016
4069
  if (stringFormatStrategy) {
@@ -4048,7 +4101,7 @@ const VegaInput = class {
4048
4101
  }
4049
4102
  }
4050
4103
  containerDom() {
4051
- return (index.h("div", { class: "vega-input-input" }, index.h("input", { name: this.name, type: this.type, autoComplete: this.autocomplete, value: this.value, ref: this.setInputRef, placeholder: this.placeholder, disabled: this.disabled, "aria-label": this.label || 'No label defined', minLength: this.minLength, maxLength: this.maxLength, onBlur: this.handleInputBlur })));
4104
+ return (index.h("div", { class: "vega-input-input" }, index.h("input", { name: this.name, type: this.type === 'number' ? 'text' : this.type, autoComplete: this.autocomplete, value: this.value, ref: this.setInputRef, placeholder: this.placeholder, disabled: this.disabled, "aria-label": this.label || 'No label defined', minLength: this.minLength, maxLength: this.maxLength, onBlur: this.handleInputBlur })));
4052
4105
  }
4053
4106
  groupDom() {
4054
4107
  let containerClass = 'vega-input-container';
@@ -4057,7 +4110,7 @@ const VegaInput = class {
4057
4110
  }
4058
4111
  containerClass += this.size === 'small' ? ' vega-input-size-small' : ' vega-input-size-default';
4059
4112
  containerClass += this.disabled ? ' vega-input-disabled' : '';
4060
- return (index.h("div", { class: "vega-input" }, this.renderLabelDom(), index.h("div", { class: containerClass }, this.prefixDom(), this.containerDom(), this.shouldShowClearIcon() && this.renderClearIcon()), this.renderHintDom()));
4113
+ return (index.h("div", { class: "vega-input" }, this.renderLabelDom(), index.h("div", { class: containerClass }, this.prefixDom(), this.containerDom(), this.showClearIcon && this.renderClearIcon()), this.renderHintDom()));
4061
4114
  }
4062
4115
  renderLabelDom() {
4063
4116
  const labelClass = this.disabled ? 'vega-label-disabled' : null;
@@ -4067,7 +4120,10 @@ const VegaInput = class {
4067
4120
  return this.required ? index.h("span", { class: "vega-require" }, "*") : null;
4068
4121
  }
4069
4122
  renderClearIcon() {
4070
- return (index.h("div", { class: "vega-input-clear-icon", tabIndex: 0, "aria-label": "clear input", role: "button", onClick: this.onClearIcon, onKeyDown: accessibility.createEnterKeyHandlerToTriggerClick() }, index.h("vega-icon", { icon: "close", class: "v-min-w-min vega-flex-shrink-0" })));
4123
+ return (index.h("div", { class: {
4124
+ 'vega-input-clear-icon': true,
4125
+ 'v-invisible': !this.isClearIconVisible(),
4126
+ }, tabIndex: 0, "aria-label": "clear input", role: "button", onClick: this.onClearIcon, onKeyDown: accessibility.createEnterKeyHandlerToTriggerClick() }, index.h("vega-icon", { icon: "close", class: "v-min-w-min vega-flex-shrink-0" })));
4071
4127
  }
4072
4128
  renderHintDom() {
4073
4129
  return this.hint !== '' ? (index.h("div", { class: "vega-hint" }, index.h("label", null, this.hint))) : null;
@@ -4080,9 +4136,6 @@ const VegaInput = class {
4080
4136
  this.required = true;
4081
4137
  }
4082
4138
  }
4083
- shouldShowClearIcon() {
4084
- return this.showClearIcon && !this.disabled && Boolean(this.value);
4085
- }
4086
4139
  get host() { return index.getElement(this); }
4087
4140
  static get watchers() { return {
4088
4141
  "value": ["watchValue"],
@@ -4099,6 +4152,9 @@ const VegaInput = class {
4099
4152
  "maskConfig": ["watchMaskChange"]
4100
4153
  }; }
4101
4154
  };
4155
+ __decorate([
4156
+ ComponentLoadRequired()
4157
+ ], VegaInput.prototype, "watchMaskChange", null);
4102
4158
 
4103
4159
  const VegaInputSelect = class {
4104
4160
  constructor(hostRef) {
@@ -5400,7 +5456,6 @@ const VegaSidenavGroup = class {
5400
5456
  * The below method is e2e-test covered in
5401
5457
  * @see{module:vega-sidenav-group-toggle}
5402
5458
  */
5403
- /* istanbul ignore next */
5404
5459
  this.handleClick = (e) => {
5405
5460
  const currentTarget = e.currentTarget;
5406
5461
  if (currentTarget && currentTarget.dataset.root === '$1') {
@@ -5422,7 +5477,7 @@ const VegaSidenavGroup = class {
5422
5477
  subject.ChangeManager.register(subject.SIDENAV_LINK_SELECTED_TOPIC, this.observer);
5423
5478
  }
5424
5479
  render() {
5425
- return component.sanitizeVegaComponent(index.h("div", { class: "vega-li-main", ref: (ref) => (this.groupContainer = ref) }, index.h("a", { href: `#${this.label}`, role: 'button', tabIndex: 0, onKeyDown: accessibility.createEnterKeyHandlerToTriggerClick(), "data-root": "$1", onClick: this.handleClick, "aria-label": this.label || 'No label defined' }, index.h("div", { class: "vega-links-icon" }, index.h("div", null, index.h("vega-icon", { icon: this.icon, size: "size-24" }))), index.h("span", { class: "vega-links-name" }, this.label), index.h(index.Fragment, null, index.h("vega-icon", { icon: "chevron-down", size: "size-12" }), index.h("vega-icon", { icon: "chevron-up", size: "size-12" }))), index.h("div", { class: "vega-nav-list vega-nav-list-sub" }, index.h("slot", null))), this.host);
5480
+ return component.sanitizeVegaComponent(index.h("div", { class: "vega-li-main", ref: (ref) => (this.groupContainer = ref) }, index.h("a", { href: `#${this.label}`, role: 'button', tabIndex: 0, onKeyDown: accessibility.createEnterKeyHandlerToTriggerClick(), "data-root": "$1", onClick: this.handleClick, "aria-label": this.label || 'No label defined' }, index.h("div", { class: "vega-links-icon" }, index.h("div", { class: "prefix-icon" }, index.h("vega-icon", { icon: this.icon, size: "size-24" }))), index.h("span", { class: "vega-links-name" }, this.label), index.h("div", { class: "suffix-icons" }, index.h("vega-icon", { icon: "chevron-down", size: "size-12" }), index.h("vega-icon", { icon: "chevron-up", size: "size-12" }))), index.h("div", { class: "vega-nav-list vega-nav-list-sub" }, index.h("slot", null))), this.host);
5426
5481
  }
5427
5482
  /**
5428
5483
  * The below method is e2e-test covered in
@@ -5481,9 +5536,9 @@ const VegaSidenavLink = class {
5481
5536
  }
5482
5537
  }
5483
5538
  render() {
5484
- const url = this.url || '#';
5539
+ const url = this.url || 'javascript:void(0);';
5485
5540
  const classList = this.selected === true ? 'selected' : '';
5486
- return component.sanitizeVegaComponent(index.h("div", null, index.h("a", { href: url, onClick: this.handleClick, class: classList }, this.icon ? (index.h("div", { class: "vega-links-icon" }, index.h("div", null, index.h("vega-icon", { icon: this.icon, size: "size-24" })))) : null, index.h("span", { class: "vega-links-name" }, index.h("slot", null)))), this.el);
5541
+ return component.sanitizeVegaComponent(index.h(index.Host, null, index.h("a", { href: url, onClick: this.handleClick, class: classList }, this.icon ? (index.h("div", { class: "vega-links-icon" }, index.h("div", { class: "prefix-icon" }, index.h("vega-icon", { icon: this.icon, size: "size-24" })))) : null, index.h("span", { class: "vega-links-name" }, index.h("slot", null)))), this.el);
5487
5542
  }
5488
5543
  /**
5489
5544
  * The below method is e2e-test covered in
@@ -6039,16 +6094,16 @@ const VegaTable = class {
6039
6094
  /** Customize description for empty data source */
6040
6095
  this.emptyDescription = 'There is no data to display';
6041
6096
  this.renderTableColGroup = () => {
6042
- return (index.h("colgroup", null, index.h("col", { style: { width: this.paddingX[0] } }), this.rowSelection && index.h("col", null), this.columns.map((column) => {
6097
+ return (index.h("colgroup", null, index.h("col", { style: { minWidth: this.paddingX[0], width: this.paddingX[0] } }), this.rowSelection && index.h("col", { style: { minWidth: '40px', width: '40px' } }), this.columns.map((column) => {
6043
6098
  return index.h("col", { style: { width: column.width ? column.width : null } });
6044
- }), index.h("col", { style: { width: this.paddingX[1] } })));
6099
+ }), this.rowExpandable && index.h("col", { style: { minWidth: '40px', width: '40px' } }), index.h("col", { style: { minWidth: this.paddingX[1], width: this.paddingX[1] } })));
6045
6100
  };
6046
6101
  this.renderTableHeader = () => {
6047
6102
  return (this.showHeader && (index.h("thead", null, index.h("tr", null, index.h("th", null), this.rowSelection && this.renderSelectionHeader(), this.columns.map((column) => {
6048
6103
  const responsiveClass = this.getResponsiveClass(column.breakpoint);
6049
6104
  const columnAlignClass = this.getColumnAlignClass(column.align);
6050
6105
  return (index.h("th", { key: column.prop, class: `vega-table-cell ${responsiveClass}` }, index.h("div", { class: "vega-table-column" }, index.h("span", { class: `vega-table-column-label ${columnAlignClass}` }, column.label), column.sorter && this.renderSortIconButton(column))));
6051
- }), index.h("th", null)))));
6106
+ }), this.rowExpandable && index.h("th", null), index.h("th", null)))));
6052
6107
  };
6053
6108
  // TODO:Sort buttons are still in design
6054
6109
  this.renderSortIconButton = (column) => {
@@ -6060,20 +6115,26 @@ const VegaTable = class {
6060
6115
  if (column.render) {
6061
6116
  return column.render(index.h, column.prop ? record[column.prop] : record.key, record, index$1);
6062
6117
  }
6063
- return record[column.prop];
6118
+ if (typeof record[column.prop] === 'string' || typeof record[column.prop] === 'number') {
6119
+ return String(record[column.prop]);
6120
+ }
6121
+ else {
6122
+ log.LogUtility.error(`Column ${column.prop}'s value has a wrong type(${typeof record[column.prop]}) in table cell. Only 'VegaTableNode | string | number' can be rendered in table cell`);
6123
+ }
6064
6124
  };
6065
6125
  this.renderTableBody = () => {
6066
6126
  return (index.h("tbody", null, this.currentData.map((record, index$1) => {
6067
6127
  const rowKey = record.key;
6068
6128
  const striped = this.striped && (index$1 + 1) % 2 === 0;
6069
6129
  const isVisible = this.isVisible(index$1);
6070
- return (index.h(index.Fragment, null, index.h("tr", { key: rowKey, class: {
6130
+ return (index.h(index.Fragment, null, this.rowExpandable && isVisible && index.h("tr", { class: "expand-row-space" }), index.h("tr", { key: rowKey, class: {
6071
6131
  'v-hidden': !isVisible,
6072
6132
  'vega-table-row': true,
6073
6133
  'striped': striped,
6074
6134
  'checked': this.selectedRowKeySet.has(rowKey),
6075
6135
  'clickable': this.rowClickable,
6076
6136
  'current-clicked-row': this.currentClickedRowIndex === index$1,
6137
+ 'expand-row': this.expandedRowKeySet.has(rowKey),
6077
6138
  },
6078
6139
  /* eslint-disable-next-line react/jsx-no-bind */
6079
6140
  onClick: this.rowClickable ? () => this.handleRowClick(record, index$1) : null }, index.h("td", null), this.rowSelection && this.renderRowSelection(record), this.columns.map((column) => {
@@ -6087,9 +6148,14 @@ const VegaTable = class {
6087
6148
  ellipsis,
6088
6149
  'vega-table-cell',
6089
6150
  ]) }, this.renderTableCell(column, record, index$1)));
6090
- }), index.h("td", null)), this.renderExpandRow(rowKey, striped, isVisible)));
6151
+ }), this.renderExpandIcon(rowKey), index.h("td", null)), this.renderExpandRow(rowKey, striped, isVisible)));
6091
6152
  })));
6092
6153
  };
6154
+ this.renderExpandIcon = (rowKey) => {
6155
+ return (this.rowExpandable && (index.h("td", null, index.h("div", { class: "vega-table-expand-icon-wrapper" }, index.h("vega-icon", { icon: "chevron-down",
6156
+ /* eslint-disable-next-line react/jsx-no-bind */
6157
+ onClick: (e) => this.handleExpandIconClick(e, rowKey) })))));
6158
+ };
6093
6159
  this.renderExpandRow = (rowKey, striped, isVisibleInCurrentPage) => {
6094
6160
  if (!this.rowExpandable)
6095
6161
  return;
@@ -6097,7 +6163,8 @@ const VegaTable = class {
6097
6163
  'vega-table-expanded-row': true,
6098
6164
  'expanded': this.expandedRowKeySet.has(rowKey) && isVisibleInCurrentPage,
6099
6165
  'striped': striped,
6100
- }, key: `vega-table-expanded-row-${rowKey}`, "data-expanded-row-key": rowKey }, index.h("td", null), this.rowSelection && index.h("td", null), index.h("td", { colSpan: this.columns.length, key: `${this.expandRowSlotNamePrefix}${rowKey}` }, index.h("slot", { name: `${this.expandRowSlotNamePrefix}${rowKey}` })), index.h("td", null)));
6166
+ 'checked': this.selectedRowKeySet.has(rowKey),
6167
+ }, key: `vega-table-expanded-row-${rowKey}`, "data-expanded-row-key": rowKey }, index.h("td", null), index.h("td", { colSpan: this.rowSelection ? this.columns.length + 2 : this.columns.length + 1, key: `${this.expandRowSlotNamePrefix}${rowKey}`, class: "vega-table-expanded-row-slot-container" }, index.h("slot", { name: `${this.expandRowSlotNamePrefix}${rowKey}` })), index.h("td", null)));
6101
6168
  };
6102
6169
  this.renderRowSelection = (item) => {
6103
6170
  return (index.h("td", { class: "vega-table-selection-column" }, index.h("div", { class: "vega-table-checkbox-wrapper" }, index.h("vega-checkbox", { size: "small", checked: this.isChecked(item.key),
@@ -6121,7 +6188,8 @@ const VegaTable = class {
6121
6188
  return (total > 0 && (index.h("div", { class: ui$1.arrayToClassString(paginationWrapperClasses) }, index.h("vega-pagination", { total: total, pageSize: this.getPaginationConfig().pageSize, current: this.currentPage, onVegaChange: this.handlePaginationChange }))));
6122
6189
  };
6123
6190
  this.renderEmpty = () => {
6124
- return (this.currentData.length === 0 && (index.h("div", { class: "vega-table-empty-description" }, this.emptyDescription)));
6191
+ return (this.currentData.length === 0 &&
6192
+ this.emptyDescription && index.h("div", { class: "vega-table-empty-description" }, this.emptyDescription));
6125
6193
  };
6126
6194
  this.setupRowSelection = (config) => {
6127
6195
  this.rowSelection = Object.assign({ hideSelectAll: false, type: 'checkbox' }, config);
@@ -6329,6 +6397,10 @@ const VegaTable = class {
6329
6397
  const end = current * pageSize;
6330
6398
  return index >= start && index < end;
6331
6399
  };
6400
+ this.handleExpandIconClick = async (e, rowKey) => {
6401
+ e.stopPropagation();
6402
+ await this.toggleExpandRow(rowKey);
6403
+ };
6332
6404
  }
6333
6405
  watchCurrentData(currentData) {
6334
6406
  this.syncUpSelectedKeySetWithCurrentData(currentData);
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c12bc235.js');
6
6
  const component = require('./component-aa3542d1.js');
7
- const designToken = require('./designToken-ac6a4cf5.js');
7
+ const designToken = require('./designToken-0b0e6849.js');
8
8
  const log = require('./log-7b0974fb.js');
9
9
  const ui = require('./ui-cd4f8632.js');
10
10
  require('./featureFlagController-7e890692.js');
11
- require('./typeGuard-7a5746f7.js');
12
- require('./ui-2ae913d5.js');
11
+ require('./typeGuard-f0034f75.js');
12
+ require('./ui-313ae2d4.js');
13
13
  require('./number-2eb7b8f3.js');
14
14
 
15
15
  /**
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-c12bc235.js');
6
6
  const subject = require('./subject-b9a0f7c6.js');
7
7
  const featureFlagController = require('./featureFlagController-7e890692.js');
8
- const typeGuard = require('./typeGuard-7a5746f7.js');
8
+ const typeGuard = require('./typeGuard-f0034f75.js');
9
9
  const array = require('./array-a4f013ec.js');
10
10
  const component = require('./component-aa3542d1.js');
11
11
  const ui = require('./ui-cd4f8632.js');
12
12
  const formFieldController = require('./formFieldController-baa64b89.js');
13
13
  require('./log-7b0974fb.js');
14
- require('./ui-2ae913d5.js');
14
+ require('./ui-313ae2d4.js');
15
15
  require('./number-2eb7b8f3.js');
16
16
 
17
17
  const vegaFormCss = ":host{display:block}";
@@ -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-aa3542d1.js');
7
- const ui = require('./ui-2ae913d5.js');
7
+ const ui = require('./ui-313ae2d4.js');
8
8
  require('./featureFlagController-7e890692.js');
9
9
  require('./log-7b0974fb.js');
10
10