@cscfi/csc-ui 2.1.5 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/c-autocomplete_34.cjs.entry.js +7 -3
- package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
- package/dist/cjs/csc-ui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/c-select/c-select.js +2 -1
- package/dist/collection/components/c-select/c-select.js.map +1 -1
- package/dist/collection/components/c-side-navigation/c-side-navigation.css +2 -1
- package/dist/collection/components/c-side-navigation/c-side-navigation.js +19 -1
- package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +1 -1
- package/dist/components/c-select.js +2 -1
- package/dist/components/c-select.js.map +1 -1
- package/dist/components/c-side-navigation.js +6 -2
- package/dist/components/c-side-navigation.js.map +1 -1
- package/dist/csc-ui/csc-ui.esm.js +1 -1
- package/dist/csc-ui/csc-ui.esm.js.map +1 -1
- package/dist/csc-ui/{p-61dda60b.entry.js → p-0d0931a2.entry.js} +2 -2
- package/dist/csc-ui/p-0d0931a2.entry.js.map +1 -0
- package/dist/esm/c-autocomplete_34.entry.js +7 -3
- package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
- package/dist/esm/csc-ui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/csc-ui/p-61dda60b.entry.js.map +0 -1
package/dist/cjs/csc-ui.cjs.js
CHANGED
|
@@ -17,7 +17,7 @@ const patchBrowser = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
|
-
return index.bootstrapLazy(JSON.parse("[[\"c-data-table.cjs\",[[1,\"c-data-table\",{\"data\":[16],\"externalData\":[4,\"external-data\"],\"headers\":[16],\"hideFooter\":[4,\"hide-footer\"],\"footerOptions\":[16],\"loading\":[4],\"loadingText\":[1,\"loading-text\"],\"noDataText\":[1,\"no-data-text\"],\"pagination\":[1040],\"selectable\":[4],\"singleSelection\":[4,\"single-selection\"],\"selectionProperty\":[1,\"selection-property\"],\"singleExpansion\":[4,\"single-expansion\"],\"sortBy\":[1032,\"sort-by\"],\"sortDirection\":[1025,\"sort-direction\"],\"stickyHeader\":[4,\"sticky-header\"],\"horizontalScrolling\":[4,\"horizontal-scrolling\"],\"_activeRows\":[32],\"_data\":[32],\"_isIndeterminate\":[32],\"_isPaginationSimple\":[32],\"_selections\":[32],\"hasOverflow\":[32],\"hiddenHeaders\":[32],\"initiallyHiddenHeaders\":[32],\"forceRender\":[32],\"breakpoints\":[32],\"markedFooterWidth\":[32],\"parentWidth\":[32],\"firstCellHidden\":[32],\"lastCellHidden\":[32],\"clearSelections\":[64],\"getData\":[64]},null,{\"hiddenHeaders\":[\"onHiddenHeaderChange\"],\"data\":[\"onDataChange\"],\"headers\":[\"onHeaderChange\"],\"singleSelection\":[\"onSingleSelectionChange\"],\"loading\":[\"onLoadingChange\"]}]]],[\"c-tabs.cjs\",[[1,\"c-tabs\",{\"value\":[1032],\"borderless\":[4],\"disableAnimation\":[4,\"disable-animation\"],\"justify\":[1],\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"vertical\":[4],\"isOverflowing\":[32],\"isMobile\":[32],\"scrollOffset\":[32]},[[1,\"tabFocus\",\"tabFocusHandler\"],[1,\"tabChange\",\"tabChangeHandler\"],[2,\"keydown\",\"handleKeyDown\"],[2,\"keyup\",\"handleKeyUp\"]],{\"justify\":[\"onJustificationChange\"],\"value\":[\"onExternalValueChange\"],\"scrollOffset\":[\"onScrollOffsetChange\"]}]]],[\"c-tag.cjs\",[[1,\"c-tag\",{\"active\":[4],\"block\":[4],\"fit\":[4],\"flat\":[4],\"closeable\":[4],\"badge\":[8],\"size\":[1]}]]],[\"c-swiper.cjs\",[[4,\"c-swiper\",{\"value\":[1544],\"elementId\":[1,\"id\"],\"isBeginning\":[32],\"isEnd\":[32],\"statusText\":[32]},[[0,\"changeValue\",\"onTabClick\"],[2,\"keyup\",\"handleKeyUp\"]]]]],[\"c-toasts.cjs\",[[1,\"c-toasts\",{\"absolute\":[4],\"horizontal\":[1],\"vertical\":[1],\"messages\":[32],\"addToast\":[64],\"removeToast\":[64]}]]],[\"c-accordion-item.cjs\",[[1,\"c-accordion-item\",{\"collapsable\":[4],\"heading\":[1],\"value\":[8],\"expanded\":[4],\"outlined\":[4],\"hasCustomHeader\":[32],\"hasIcon\":[32]},[[2,\"keydown\",\"handleKeyDown\"],[0,\"changeValue\",\"stop\"]]]]],[\"c-list-item.cjs\",[[1,\"c-list-item\",{\"active\":[4],\"disabled\":[4],\"disabledByParent\":[4,\"disabled-by-parent\"],\"hoverable\":[4],\"ripple\":[4],\"href\":[1],\"target\":[1]},null,{\"active\":[\"onActiveChange\"]}]]],[\"c-login-card-actions.cjs\",[[1,\"c-login-card-actions\",{\"align\":[1],\"justify\":[1]}]]],[\"c-swiper-tab.cjs\",[[1,\"c-swiper-tab\",{\"disabled\":[4],\"active\":[4],\"label\":[1],\"hostId\":[1,\"id\"],\"setsize\":[2],\"position\":[2],\"value\":[8]},[[1,\"click\",\"onTabClick\"]]]]],[\"c-tab.cjs\",[[1,\"c-tab\",{\"active\":[4],\"disabled\":[4],\"hostId\":[1,\"id\"],\"position\":[2],\"setsize\":[2],\"value\":[8]},[[1,\"focus\",\"onTabFocus\"],[1,\"keydown\",\"handleKeydown\"]]]]],[\"c-accordion.cjs\",[[1,\"c-accordion\",{\"value\":[1032],\"mandatory\":[4],\"multiple\":[4],\"outlined\":[4]},[[1,\"itemChange\",\"onAccordionItemChange\"]],{\"value\":[\"watchPropHandler\"]}]]],[\"c-alert.cjs\",[[1,\"c-alert\",{\"type\":[1]}]]],[\"c-link.cjs\",[[1,\"c-link\",{\"href\":[1],\"underline\":[4],\"target\":[1],\"weight\":[1]}]]],[\"c-list.cjs\",[[0,\"c-list\",{\"disabled\":[4]},null,{\"disabled\":[\"onDisabledChange\"]}]]],[\"c-list-item-title.cjs\",[[1,\"c-list-item-title\",{\"active\":[4]}]]],[\"c-login-button.cjs\",[[1,\"c-login-button\",{\"href\":[1],\"src\":[1],\"alt\":[1]}]]],[\"c-login-buttons.cjs\",[[1,\"c-login-buttons\"]]],[\"c-login-card.cjs\",[[4,\"c-login-card\",{\"backgroundPosition\":[1,\"background-position\"],\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"overlay\":[4],\"overlayBlendMode\":[1,\"overlay-blend-mode\"],\"src\":[1],\"path\":[32],\"imageHeight\":[32]}]]],[\"c-login-card-content.cjs\",[[1,\"c-login-card-content\"]]],[\"c-login-card-title.cjs\",[[1,\"c-login-card-title\"]]],[\"c-modal.cjs\",[[1,\"c-modal\",{\"value\":[4],\"dismissable\":[4],\"width\":[8],\"zIndex\":[2,\"z-index\"],\"disableBackdropBlur\":[4,\"disable-backdrop-blur\"],\"innerValue\":[32],\"animateModal\":[32]},null,{\"value\":[\"onValueChange\"]}]]],[\"c-option-value.cjs\",[[1,\"c-option-value\"]]],[\"c-progress-bar.cjs\",[[1,\"c-progress-bar\",{\"value\":[2],\"hideDetails\":[4,\"hide-details\"],\"singleLine\":[4,\"single-line\"],\"label\":[1],\"indeterminate\":[4]}]]],[\"c-row.cjs\",[[1,\"c-row\",{\"gap\":[2],\"nowrap\":[4],\"align\":[1],\"justify\":[1]}]]],[\"c-slider.cjs\",[[1,\"c-slider\",{\"hostId\":[1,\"id\"],\"hostName\":[1,\"name\"],\"ariaLabel\":[1,\"aria-label\"],\"max\":[1],\"min\":[1],\"step\":[1],\"value\":[8],\"unit\":[1],\"ticks\":[4],\"labels\":[4],\"disableTooltip\":[4,\"disable-tooltip\"],\"label\":[1],\"disabled\":[4],\"segments\":[1],\"trackPosition\":[32],\"tickPositions\":[32]},null,{\"segments\":[\"onSegmentChange\"],\"value\":[\"onValueChange\"]}]]],[\"c-status.cjs\",[[1,\"c-status\",{\"type\":[1]}]]],[\"c-step.cjs\",[[1,\"c-step\",{\"complete\":[4],\"current\":[4]}]]],[\"c-steps.cjs\",[[1,\"c-steps\",{\"value\":[8],\"isMobile\":[32],\"label\":[32]},null,{\"value\":[\"watchPropHandler\"]}]]],[\"c-tab-buttons.cjs\",[[1,\"c-tab-buttons\",{\"value\":[1032],\"mandatory\":[4],\"tabs\":[4],\"size\":[1],\"hostDisabled\":[4,\"disabled\"]},[[1,\"tabFocus\",\"tabFocusHandler\"],[2,\"keyup\",\"handleKeyUp\"],[1,\"tabChange\",\"onTabChange\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tab-item.cjs\",[[1,\"c-tab-item\",{\"value\":[8],\"active\":[4]}]]],[\"c-tab-items.cjs\",[[1,\"c-tab-items\",{\"value\":[8],\"disableAnimation\":[4,\"disable-animation\"],\"activeTab\":[32]},[[1,\"contentChange\",\"tabContentChangeHandler\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tags.cjs\",[[1,\"c-tags\",{\"size\":[1]}]]],[\"c-autocomplete_34.cjs\",[[65,\"c-autocomplete\",{\"items\":[16],\"value\":[8],\"query\":[1],\"hostId\":[1,\"id\"],\"disabled\":[4],\"label\":[1],\"name\":[1],\"placeholder\":[1],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"loading\":[4],\"required\":[4],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"shadow\":[4],\"returnObject\":[4,\"return-object\"],\"itemsPerPage\":[2,\"items-per-page\"],\"minimumQueryLength\":[2,\"minimum-query-length\"],\"minimumQueryLengthMessage\":[1,\"minimum-query-length-message\"],\"noMatchingItemsMessage\":[1,\"no-matching-items-message\"],\"optionElements\":[32],\"currentIndex\":[32],\"dropdownVisible\":[32],\"statusText\":[32],\"optionElementsExist\":[32],\"reset\":[64]},[[0,\"dropdownStateChange\",\"onDropdownStateChange\"],[0,\"selectOption\",\"onSelectOption\"]],{\"query\":[\"handleQueryChange\"]}],[65,\"c-select\",{\"items\":[16],\"value\":[8],\"hostId\":[1,\"id\"],\"clearable\":[4],\"disabled\":[4],\"label\":[1],\"name\":[1],\"placeholder\":[1],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"loading\":[4],\"required\":[4],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"shadow\":[4],\"returnObject\":[4,\"return-object\"],\"itemsPerPage\":[2,\"items-per-page\"],\"optionAsSelection\":[4,\"option-as-selection\"],\"optionElements\":[32],\"currentIndex\":[32],\"dropdownVisible\":[32],\"statusText\":[32],\"optionElementsExist\":[32],\"reset\":[64]},[[1,\"keydown\",\"handleKeyDown\"],[0,\"dropdownStateChange\",\"onDropdownStateChange\"],[0,\"selectOption\",\"onSelectOption\"]],{\"value\":[\"onValueChanged\"]}],[1,\"c-card\",{\"fullscreen\":[4],\"isFullscreen\":[32],\"exitFullscreen\":[64],\"enterFullscreen\":[64]}],[1,\"c-navigation-button\"],[1,\"c-side-navigation\",{\"mobile\":[4],\"menuVisible\":[1028,\"menu-visible\"]},[[0,\"itemChange\",\"handleChange\"]]],[1,\"c-side-navigation-item\",{\"active\":[4],\"href\":[1],\"target\":[1],\"loading\":[4]},[[0,\"itemChange\",\"handleChange\"]],{\"active\":[\"onActiveChange\"]}],[1,\"c-button\",{\"inverted\":[4],\"outlined\":[4],\"ghost\":[4],\"danger\":[4],\"grouped\":[4],\"text\":[4],\"loading\":[4],\"fit\":[4],\"noRadius\":[4,\"no-radius\"],\"type\":[1],\"disabled\":[516],\"value\":[8],\"hostId\":[1,\"id\"],\"size\":[1],\"href\":[1],\"target\":[1],\"tabs\":[4]},[[1,\"focus\",\"onTabFocus\"]]],[65,\"c-radio-group\",{\"value\":[1032],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"inline\":[4],\"label\":[1],\"color\":[1],\"hostId\":[1,\"id\"],\"items\":[16],\"disabled\":[4],\"returnObject\":[4,\"return-object\"],\"required\":[4],\"valid\":[4],\"validation\":[1]}],[1,\"c-sub-navigation-item\",{\"active\":[4],\"focusable\":[4],\"href\":[1],\"target\":[1],\"loading\":[4]}],[65,\"c-text-field\",{\"autofocus\":[4],\"autocapitalize\":[1],\"autocorrect\":[1],\"autocomplete\":[1],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"trimWhitespace\":[4,\"trim-whitespace\"],\"label\":[1],\"max\":[2],\"min\":[2],\"name\":[1],\"placeholder\":[1],\"readonly\":[4],\"required\":[4],\"rows\":[2],\"shadow\":[4],\"step\":[2],\"type\":[1],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"value\":[1025],\"isFocused\":[32],\"labelWidth\":[32],\"preSlotWidth\":[32]}],[65,\"c-otp-input\",{\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"elementId\":[1,\"id\"],\"length\":[2],\"valid\":[4],\"validation\":[1],\"value\":[1025],\"statusText\":[32],\"reset\":[64]},null,{\"validation\":[\"onValidationMessageChange\"],\"value\":[\"onValueChange\"]}],[1,\"c-card-content\"],[1,\"c-card-title\"],[1,\"c-csc-logo\",{\"width\":[2]}],[1,\"c-main\",{\"disableLayout\":[4,\"disable-layout\"]}],[1,\"c-option\",{\"selected\":[4],\"disabled\":[4],\"name\":[1],\"value\":[8]}],[1,\"c-page\",{\"scrollIndicator\":[4,\"scroll-indicator\"]}],[1,\"c-radio\",{\"checked\":[4],\"disabled\":[4],\"value\":[1]}],[1,\"c-side-navigation-title\"],[65,\"c-switch\",{\"checked\":[1028],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostDisabled\":[4,\"disabled\"],\"hostId\":[1,\"id\"],\"required\":[4],\"hasLabel\":[32]}],[4,\"c-table\",{\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"responsive\":[4]}],[1,\"c-toolbar\"],[65,\"c-checkbox\",{\"checked\":[1028],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"indeterminate\":[4],\"label\":[1],\"required\":[4],\"valid\":[4],\"validation\":[1],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostName\":[1,\"name\"]},[[1,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"onValueChange\"]}],[1,\"c-card-actions\",{\"align\":[1],\"justify\":[1]}],[1,\"c-spacer\"],[1,\"c-dropdown\",{\"itemsPerPage\":[2,\"items-per-page\"],\"parent\":[16],\"items\":[16],\"index\":[2],\"hostId\":[1,\"id\"],\"type\":[1],\"itemType\":[1,\"item-type\"],\"renderedList\":[32],\"isOpen\":[32],\"statusText\":[32],\"setStatusText\":[64],\"focusItem\":[64],\"open\":[64],\"close\":[64],\"selectItem\":[64],\"updateList\":[64]},null,{\"items\":[\"optionsWatcher\"],\"isOpen\":[\"stateWatcher\"],\"index\":[\"handleIndexChange\"]}],[1,\"c-loader\",{\"contentdelay\":[2],\"hide\":[4],\"size\":[2],\"width\":[2]},null,{\"hide\":[\"onElementHide\"]}],[4,\"c-input\",{\"active\":[4],\"autofocus\":[4],\"disabled\":[4],\"form\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"inputId\":[1,\"input-id\"],\"items\":[16],\"itemsPerPage\":[2,\"items-per-page\"],\"label\":[1],\"max\":[2],\"min\":[2],\"name\":[1],\"placeholder\":[1],\"readonly\":[4],\"required\":[4],\"rows\":[2],\"shadow\":[4],\"step\":[2],\"type\":[1],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"value\":[8],\"variant\":[1],\"isFocused\":[32],\"labelWidth\":[32],\"preSlotWidth\":[32],\"statusText\":[32],\"currentIndex\":[32],\"reset\":[64]},null,{\"valid\":[\"onValidChange\"],\"validation\":[\"onValidationMessageChange\"],\"value\":[\"onValueChange\"],\"placeholder\":[\"onPlaceholderChange\"]}],[1,\"c-message\",{\"hint\":[1],\"inputId\":[1,\"input-id\"],\"valid\":[4],\"validation\":[1],\"messageOptions\":[32]},null,{\"valid\":[\"onValidChange\"],\"validation\":[\"onValidationMessageChange\"],\"hint\":[\"onHintMessageChange\"]}],[1,\"c-icon-button\",{\"badge\":[1],\"danger\":[4],\"loading\":[4],\"text\":[4],\"inverted\":[4],\"outlined\":[4],\"path\":[1],\"ghost\":[4],\"disabled\":[4],\"size\":[1]}],[1,\"c-badge\"],[1,\"c-icon\",{\"path\":[1],\"size\":[2],\"color\":[1]}],[1,\"c-spinner\",{\"color\":[1],\"size\":[2],\"width\":[2]}],[1,\"c-ripple\",{\"createRipple\":[64]}]]],[\"c-menu_2.cjs\",[[1,\"c-menu\",{\"items\":[16],\"contentClass\":[1,\"content-class\"],\"custom\":[4],\"small\":[4],\"flat\":[4],\"itemsPerPage\":[2,\"items-per-page\"],\"menuItemsComponent\":[32],\"menuWrapperComponent\":[32],\"currentIndex\":[32],\"active\":[32]},[[2,\"keydown\",\"handleKeyDown\"]]],[1,\"c-menu-items\",{\"items\":[16],\"small\":[4],\"active\":[4],\"parentType\":[1,\"parent-type\"],\"parent\":[16],\"top\":[2],\"index\":[2],\"itemsPerPage\":[2,\"items-per-page\"],\"scrollingParent\":[32],\"isInView\":[32],\"currentIndex\":[32]},[[2,\"keydown\",\"handleKeyDown\"]],{\"currentIndex\":[\"onIndexChange\"]}]]],[\"c-pagination.cjs\",[[1,\"c-pagination\",{\"value\":[16],\"hideDetails\":[4,\"hide-details\"],\"simple\":[4],\"size\":[1],\"hideRange\":[4,\"hide-range\"],\"_currentPage\":[32],\"_itemsPerPage\":[32],\"_pageSizes\":[32],\"_totalVisible\":[32],\"tick\":[32]},null,{\"value\":[\"valueHandler\"]}]]],[\"c-toast.cjs\",[[1,\"c-toast\",{\"message\":[16],\"closeToast\":[64]}]]]]"), options);
|
|
20
|
+
return index.bootstrapLazy(JSON.parse("[[\"c-data-table.cjs\",[[1,\"c-data-table\",{\"data\":[16],\"externalData\":[4,\"external-data\"],\"headers\":[16],\"hideFooter\":[4,\"hide-footer\"],\"footerOptions\":[16],\"loading\":[4],\"loadingText\":[1,\"loading-text\"],\"noDataText\":[1,\"no-data-text\"],\"pagination\":[1040],\"selectable\":[4],\"singleSelection\":[4,\"single-selection\"],\"selectionProperty\":[1,\"selection-property\"],\"singleExpansion\":[4,\"single-expansion\"],\"sortBy\":[1032,\"sort-by\"],\"sortDirection\":[1025,\"sort-direction\"],\"stickyHeader\":[4,\"sticky-header\"],\"horizontalScrolling\":[4,\"horizontal-scrolling\"],\"_activeRows\":[32],\"_data\":[32],\"_isIndeterminate\":[32],\"_isPaginationSimple\":[32],\"_selections\":[32],\"hasOverflow\":[32],\"hiddenHeaders\":[32],\"initiallyHiddenHeaders\":[32],\"forceRender\":[32],\"breakpoints\":[32],\"markedFooterWidth\":[32],\"parentWidth\":[32],\"firstCellHidden\":[32],\"lastCellHidden\":[32],\"clearSelections\":[64],\"getData\":[64]},null,{\"hiddenHeaders\":[\"onHiddenHeaderChange\"],\"data\":[\"onDataChange\"],\"headers\":[\"onHeaderChange\"],\"singleSelection\":[\"onSingleSelectionChange\"],\"loading\":[\"onLoadingChange\"]}]]],[\"c-tabs.cjs\",[[1,\"c-tabs\",{\"value\":[1032],\"borderless\":[4],\"disableAnimation\":[4,\"disable-animation\"],\"justify\":[1],\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"vertical\":[4],\"isOverflowing\":[32],\"isMobile\":[32],\"scrollOffset\":[32]},[[1,\"tabFocus\",\"tabFocusHandler\"],[1,\"tabChange\",\"tabChangeHandler\"],[2,\"keydown\",\"handleKeyDown\"],[2,\"keyup\",\"handleKeyUp\"]],{\"justify\":[\"onJustificationChange\"],\"value\":[\"onExternalValueChange\"],\"scrollOffset\":[\"onScrollOffsetChange\"]}]]],[\"c-tag.cjs\",[[1,\"c-tag\",{\"active\":[4],\"block\":[4],\"fit\":[4],\"flat\":[4],\"closeable\":[4],\"badge\":[8],\"size\":[1]}]]],[\"c-swiper.cjs\",[[4,\"c-swiper\",{\"value\":[1544],\"elementId\":[1,\"id\"],\"isBeginning\":[32],\"isEnd\":[32],\"statusText\":[32]},[[0,\"changeValue\",\"onTabClick\"],[2,\"keyup\",\"handleKeyUp\"]]]]],[\"c-toasts.cjs\",[[1,\"c-toasts\",{\"absolute\":[4],\"horizontal\":[1],\"vertical\":[1],\"messages\":[32],\"addToast\":[64],\"removeToast\":[64]}]]],[\"c-accordion-item.cjs\",[[1,\"c-accordion-item\",{\"collapsable\":[4],\"heading\":[1],\"value\":[8],\"expanded\":[4],\"outlined\":[4],\"hasCustomHeader\":[32],\"hasIcon\":[32]},[[2,\"keydown\",\"handleKeyDown\"],[0,\"changeValue\",\"stop\"]]]]],[\"c-list-item.cjs\",[[1,\"c-list-item\",{\"active\":[4],\"disabled\":[4],\"disabledByParent\":[4,\"disabled-by-parent\"],\"hoverable\":[4],\"ripple\":[4],\"href\":[1],\"target\":[1]},null,{\"active\":[\"onActiveChange\"]}]]],[\"c-login-card-actions.cjs\",[[1,\"c-login-card-actions\",{\"align\":[1],\"justify\":[1]}]]],[\"c-swiper-tab.cjs\",[[1,\"c-swiper-tab\",{\"disabled\":[4],\"active\":[4],\"label\":[1],\"hostId\":[1,\"id\"],\"setsize\":[2],\"position\":[2],\"value\":[8]},[[1,\"click\",\"onTabClick\"]]]]],[\"c-tab.cjs\",[[1,\"c-tab\",{\"active\":[4],\"disabled\":[4],\"hostId\":[1,\"id\"],\"position\":[2],\"setsize\":[2],\"value\":[8]},[[1,\"focus\",\"onTabFocus\"],[1,\"keydown\",\"handleKeydown\"]]]]],[\"c-accordion.cjs\",[[1,\"c-accordion\",{\"value\":[1032],\"mandatory\":[4],\"multiple\":[4],\"outlined\":[4]},[[1,\"itemChange\",\"onAccordionItemChange\"]],{\"value\":[\"watchPropHandler\"]}]]],[\"c-alert.cjs\",[[1,\"c-alert\",{\"type\":[1]}]]],[\"c-link.cjs\",[[1,\"c-link\",{\"href\":[1],\"underline\":[4],\"target\":[1],\"weight\":[1]}]]],[\"c-list.cjs\",[[0,\"c-list\",{\"disabled\":[4]},null,{\"disabled\":[\"onDisabledChange\"]}]]],[\"c-list-item-title.cjs\",[[1,\"c-list-item-title\",{\"active\":[4]}]]],[\"c-login-button.cjs\",[[1,\"c-login-button\",{\"href\":[1],\"src\":[1],\"alt\":[1]}]]],[\"c-login-buttons.cjs\",[[1,\"c-login-buttons\"]]],[\"c-login-card.cjs\",[[4,\"c-login-card\",{\"backgroundPosition\":[1,\"background-position\"],\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"overlay\":[4],\"overlayBlendMode\":[1,\"overlay-blend-mode\"],\"src\":[1],\"path\":[32],\"imageHeight\":[32]}]]],[\"c-login-card-content.cjs\",[[1,\"c-login-card-content\"]]],[\"c-login-card-title.cjs\",[[1,\"c-login-card-title\"]]],[\"c-modal.cjs\",[[1,\"c-modal\",{\"value\":[4],\"dismissable\":[4],\"width\":[8],\"zIndex\":[2,\"z-index\"],\"disableBackdropBlur\":[4,\"disable-backdrop-blur\"],\"innerValue\":[32],\"animateModal\":[32]},null,{\"value\":[\"onValueChange\"]}]]],[\"c-option-value.cjs\",[[1,\"c-option-value\"]]],[\"c-progress-bar.cjs\",[[1,\"c-progress-bar\",{\"value\":[2],\"hideDetails\":[4,\"hide-details\"],\"singleLine\":[4,\"single-line\"],\"label\":[1],\"indeterminate\":[4]}]]],[\"c-row.cjs\",[[1,\"c-row\",{\"gap\":[2],\"nowrap\":[4],\"align\":[1],\"justify\":[1]}]]],[\"c-slider.cjs\",[[1,\"c-slider\",{\"hostId\":[1,\"id\"],\"hostName\":[1,\"name\"],\"ariaLabel\":[1,\"aria-label\"],\"max\":[1],\"min\":[1],\"step\":[1],\"value\":[8],\"unit\":[1],\"ticks\":[4],\"labels\":[4],\"disableTooltip\":[4,\"disable-tooltip\"],\"label\":[1],\"disabled\":[4],\"segments\":[1],\"trackPosition\":[32],\"tickPositions\":[32]},null,{\"segments\":[\"onSegmentChange\"],\"value\":[\"onValueChange\"]}]]],[\"c-status.cjs\",[[1,\"c-status\",{\"type\":[1]}]]],[\"c-step.cjs\",[[1,\"c-step\",{\"complete\":[4],\"current\":[4]}]]],[\"c-steps.cjs\",[[1,\"c-steps\",{\"value\":[8],\"isMobile\":[32],\"label\":[32]},null,{\"value\":[\"watchPropHandler\"]}]]],[\"c-tab-buttons.cjs\",[[1,\"c-tab-buttons\",{\"value\":[1032],\"mandatory\":[4],\"tabs\":[4],\"size\":[1],\"hostDisabled\":[4,\"disabled\"]},[[1,\"tabFocus\",\"tabFocusHandler\"],[2,\"keyup\",\"handleKeyUp\"],[1,\"tabChange\",\"onTabChange\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tab-item.cjs\",[[1,\"c-tab-item\",{\"value\":[8],\"active\":[4]}]]],[\"c-tab-items.cjs\",[[1,\"c-tab-items\",{\"value\":[8],\"disableAnimation\":[4,\"disable-animation\"],\"activeTab\":[32]},[[1,\"contentChange\",\"tabContentChangeHandler\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tags.cjs\",[[1,\"c-tags\",{\"size\":[1]}]]],[\"c-autocomplete_34.cjs\",[[65,\"c-autocomplete\",{\"items\":[16],\"value\":[8],\"query\":[1],\"hostId\":[1,\"id\"],\"disabled\":[4],\"label\":[1],\"name\":[1],\"placeholder\":[1],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"loading\":[4],\"required\":[4],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"shadow\":[4],\"returnObject\":[4,\"return-object\"],\"itemsPerPage\":[2,\"items-per-page\"],\"minimumQueryLength\":[2,\"minimum-query-length\"],\"minimumQueryLengthMessage\":[1,\"minimum-query-length-message\"],\"noMatchingItemsMessage\":[1,\"no-matching-items-message\"],\"optionElements\":[32],\"currentIndex\":[32],\"dropdownVisible\":[32],\"statusText\":[32],\"optionElementsExist\":[32],\"reset\":[64]},[[0,\"dropdownStateChange\",\"onDropdownStateChange\"],[0,\"selectOption\",\"onSelectOption\"]],{\"query\":[\"handleQueryChange\"]}],[65,\"c-select\",{\"items\":[16],\"value\":[8],\"hostId\":[1,\"id\"],\"clearable\":[4],\"disabled\":[4],\"label\":[1],\"name\":[1],\"placeholder\":[1],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"loading\":[4],\"required\":[4],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"shadow\":[4],\"returnObject\":[4,\"return-object\"],\"itemsPerPage\":[2,\"items-per-page\"],\"optionAsSelection\":[4,\"option-as-selection\"],\"optionElements\":[32],\"currentIndex\":[32],\"dropdownVisible\":[32],\"statusText\":[32],\"optionElementsExist\":[32],\"reset\":[64]},[[1,\"keydown\",\"handleKeyDown\"],[0,\"dropdownStateChange\",\"onDropdownStateChange\"],[0,\"selectOption\",\"onSelectOption\"]],{\"value\":[\"onValueChanged\"]}],[1,\"c-card\",{\"fullscreen\":[4],\"isFullscreen\":[32],\"exitFullscreen\":[64],\"enterFullscreen\":[64]}],[1,\"c-navigation-button\"],[1,\"c-side-navigation\",{\"styles\":[16],\"mobile\":[4],\"menuVisible\":[1028,\"menu-visible\"]},[[0,\"itemChange\",\"handleChange\"]]],[1,\"c-side-navigation-item\",{\"active\":[4],\"href\":[1],\"target\":[1],\"loading\":[4]},[[0,\"itemChange\",\"handleChange\"]],{\"active\":[\"onActiveChange\"]}],[1,\"c-button\",{\"inverted\":[4],\"outlined\":[4],\"ghost\":[4],\"danger\":[4],\"grouped\":[4],\"text\":[4],\"loading\":[4],\"fit\":[4],\"noRadius\":[4,\"no-radius\"],\"type\":[1],\"disabled\":[516],\"value\":[8],\"hostId\":[1,\"id\"],\"size\":[1],\"href\":[1],\"target\":[1],\"tabs\":[4]},[[1,\"focus\",\"onTabFocus\"]]],[65,\"c-radio-group\",{\"value\":[1032],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"inline\":[4],\"label\":[1],\"color\":[1],\"hostId\":[1,\"id\"],\"items\":[16],\"disabled\":[4],\"returnObject\":[4,\"return-object\"],\"required\":[4],\"valid\":[4],\"validation\":[1]}],[1,\"c-sub-navigation-item\",{\"active\":[4],\"focusable\":[4],\"href\":[1],\"target\":[1],\"loading\":[4]}],[65,\"c-text-field\",{\"autofocus\":[4],\"autocapitalize\":[1],\"autocorrect\":[1],\"autocomplete\":[1],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"trimWhitespace\":[4,\"trim-whitespace\"],\"label\":[1],\"max\":[2],\"min\":[2],\"name\":[1],\"placeholder\":[1],\"readonly\":[4],\"required\":[4],\"rows\":[2],\"shadow\":[4],\"step\":[2],\"type\":[1],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"value\":[1025],\"isFocused\":[32],\"labelWidth\":[32],\"preSlotWidth\":[32]}],[65,\"c-otp-input\",{\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"elementId\":[1,\"id\"],\"length\":[2],\"valid\":[4],\"validation\":[1],\"value\":[1025],\"statusText\":[32],\"reset\":[64]},null,{\"validation\":[\"onValidationMessageChange\"],\"value\":[\"onValueChange\"]}],[1,\"c-card-content\"],[1,\"c-card-title\"],[1,\"c-csc-logo\",{\"width\":[2]}],[1,\"c-main\",{\"disableLayout\":[4,\"disable-layout\"]}],[1,\"c-option\",{\"selected\":[4],\"disabled\":[4],\"name\":[1],\"value\":[8]}],[1,\"c-page\",{\"scrollIndicator\":[4,\"scroll-indicator\"]}],[1,\"c-radio\",{\"checked\":[4],\"disabled\":[4],\"value\":[1]}],[1,\"c-side-navigation-title\"],[65,\"c-switch\",{\"checked\":[1028],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostDisabled\":[4,\"disabled\"],\"hostId\":[1,\"id\"],\"required\":[4],\"hasLabel\":[32]}],[4,\"c-table\",{\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"responsive\":[4]}],[1,\"c-toolbar\"],[65,\"c-checkbox\",{\"checked\":[1028],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"indeterminate\":[4],\"label\":[1],\"required\":[4],\"valid\":[4],\"validation\":[1],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostName\":[1,\"name\"]},[[1,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"onValueChange\"]}],[1,\"c-card-actions\",{\"align\":[1],\"justify\":[1]}],[1,\"c-spacer\"],[1,\"c-dropdown\",{\"itemsPerPage\":[2,\"items-per-page\"],\"parent\":[16],\"items\":[16],\"index\":[2],\"hostId\":[1,\"id\"],\"type\":[1],\"itemType\":[1,\"item-type\"],\"renderedList\":[32],\"isOpen\":[32],\"statusText\":[32],\"setStatusText\":[64],\"focusItem\":[64],\"open\":[64],\"close\":[64],\"selectItem\":[64],\"updateList\":[64]},null,{\"items\":[\"optionsWatcher\"],\"isOpen\":[\"stateWatcher\"],\"index\":[\"handleIndexChange\"]}],[1,\"c-loader\",{\"contentdelay\":[2],\"hide\":[4],\"size\":[2],\"width\":[2]},null,{\"hide\":[\"onElementHide\"]}],[4,\"c-input\",{\"active\":[4],\"autofocus\":[4],\"disabled\":[4],\"form\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"inputId\":[1,\"input-id\"],\"items\":[16],\"itemsPerPage\":[2,\"items-per-page\"],\"label\":[1],\"max\":[2],\"min\":[2],\"name\":[1],\"placeholder\":[1],\"readonly\":[4],\"required\":[4],\"rows\":[2],\"shadow\":[4],\"step\":[2],\"type\":[1],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"value\":[8],\"variant\":[1],\"isFocused\":[32],\"labelWidth\":[32],\"preSlotWidth\":[32],\"statusText\":[32],\"currentIndex\":[32],\"reset\":[64]},null,{\"valid\":[\"onValidChange\"],\"validation\":[\"onValidationMessageChange\"],\"value\":[\"onValueChange\"],\"placeholder\":[\"onPlaceholderChange\"]}],[1,\"c-message\",{\"hint\":[1],\"inputId\":[1,\"input-id\"],\"valid\":[4],\"validation\":[1],\"messageOptions\":[32]},null,{\"valid\":[\"onValidChange\"],\"validation\":[\"onValidationMessageChange\"],\"hint\":[\"onHintMessageChange\"]}],[1,\"c-icon-button\",{\"badge\":[1],\"danger\":[4],\"loading\":[4],\"text\":[4],\"inverted\":[4],\"outlined\":[4],\"path\":[1],\"ghost\":[4],\"disabled\":[4],\"size\":[1]}],[1,\"c-badge\"],[1,\"c-icon\",{\"path\":[1],\"size\":[2],\"color\":[1]}],[1,\"c-spinner\",{\"color\":[1],\"size\":[2],\"width\":[2]}],[1,\"c-ripple\",{\"createRipple\":[64]}]]],[\"c-menu_2.cjs\",[[1,\"c-menu\",{\"items\":[16],\"contentClass\":[1,\"content-class\"],\"custom\":[4],\"small\":[4],\"flat\":[4],\"itemsPerPage\":[2,\"items-per-page\"],\"menuItemsComponent\":[32],\"menuWrapperComponent\":[32],\"currentIndex\":[32],\"active\":[32]},[[2,\"keydown\",\"handleKeyDown\"]]],[1,\"c-menu-items\",{\"items\":[16],\"small\":[4],\"active\":[4],\"parentType\":[1,\"parent-type\"],\"parent\":[16],\"top\":[2],\"index\":[2],\"itemsPerPage\":[2,\"items-per-page\"],\"scrollingParent\":[32],\"isInView\":[32],\"currentIndex\":[32]},[[2,\"keydown\",\"handleKeyDown\"]],{\"currentIndex\":[\"onIndexChange\"]}]]],[\"c-pagination.cjs\",[[1,\"c-pagination\",{\"value\":[16],\"hideDetails\":[4,\"hide-details\"],\"simple\":[4],\"size\":[1],\"hideRange\":[4,\"hide-range\"],\"_currentPage\":[32],\"_itemsPerPage\":[32],\"_pageSizes\":[32],\"_totalVisible\":[32],\"tick\":[32]},null,{\"value\":[\"valueHandler\"]}]]],[\"c-toast.cjs\",[[1,\"c-toast\",{\"message\":[16],\"closeToast\":[64]}]]]]"), options);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@ const index = require('./index-91ba22ab.js');
|
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
9
|
-
return index.bootstrapLazy(JSON.parse("[[\"c-data-table.cjs\",[[1,\"c-data-table\",{\"data\":[16],\"externalData\":[4,\"external-data\"],\"headers\":[16],\"hideFooter\":[4,\"hide-footer\"],\"footerOptions\":[16],\"loading\":[4],\"loadingText\":[1,\"loading-text\"],\"noDataText\":[1,\"no-data-text\"],\"pagination\":[1040],\"selectable\":[4],\"singleSelection\":[4,\"single-selection\"],\"selectionProperty\":[1,\"selection-property\"],\"singleExpansion\":[4,\"single-expansion\"],\"sortBy\":[1032,\"sort-by\"],\"sortDirection\":[1025,\"sort-direction\"],\"stickyHeader\":[4,\"sticky-header\"],\"horizontalScrolling\":[4,\"horizontal-scrolling\"],\"_activeRows\":[32],\"_data\":[32],\"_isIndeterminate\":[32],\"_isPaginationSimple\":[32],\"_selections\":[32],\"hasOverflow\":[32],\"hiddenHeaders\":[32],\"initiallyHiddenHeaders\":[32],\"forceRender\":[32],\"breakpoints\":[32],\"markedFooterWidth\":[32],\"parentWidth\":[32],\"firstCellHidden\":[32],\"lastCellHidden\":[32],\"clearSelections\":[64],\"getData\":[64]},null,{\"hiddenHeaders\":[\"onHiddenHeaderChange\"],\"data\":[\"onDataChange\"],\"headers\":[\"onHeaderChange\"],\"singleSelection\":[\"onSingleSelectionChange\"],\"loading\":[\"onLoadingChange\"]}]]],[\"c-tabs.cjs\",[[1,\"c-tabs\",{\"value\":[1032],\"borderless\":[4],\"disableAnimation\":[4,\"disable-animation\"],\"justify\":[1],\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"vertical\":[4],\"isOverflowing\":[32],\"isMobile\":[32],\"scrollOffset\":[32]},[[1,\"tabFocus\",\"tabFocusHandler\"],[1,\"tabChange\",\"tabChangeHandler\"],[2,\"keydown\",\"handleKeyDown\"],[2,\"keyup\",\"handleKeyUp\"]],{\"justify\":[\"onJustificationChange\"],\"value\":[\"onExternalValueChange\"],\"scrollOffset\":[\"onScrollOffsetChange\"]}]]],[\"c-tag.cjs\",[[1,\"c-tag\",{\"active\":[4],\"block\":[4],\"fit\":[4],\"flat\":[4],\"closeable\":[4],\"badge\":[8],\"size\":[1]}]]],[\"c-swiper.cjs\",[[4,\"c-swiper\",{\"value\":[1544],\"elementId\":[1,\"id\"],\"isBeginning\":[32],\"isEnd\":[32],\"statusText\":[32]},[[0,\"changeValue\",\"onTabClick\"],[2,\"keyup\",\"handleKeyUp\"]]]]],[\"c-toasts.cjs\",[[1,\"c-toasts\",{\"absolute\":[4],\"horizontal\":[1],\"vertical\":[1],\"messages\":[32],\"addToast\":[64],\"removeToast\":[64]}]]],[\"c-accordion-item.cjs\",[[1,\"c-accordion-item\",{\"collapsable\":[4],\"heading\":[1],\"value\":[8],\"expanded\":[4],\"outlined\":[4],\"hasCustomHeader\":[32],\"hasIcon\":[32]},[[2,\"keydown\",\"handleKeyDown\"],[0,\"changeValue\",\"stop\"]]]]],[\"c-list-item.cjs\",[[1,\"c-list-item\",{\"active\":[4],\"disabled\":[4],\"disabledByParent\":[4,\"disabled-by-parent\"],\"hoverable\":[4],\"ripple\":[4],\"href\":[1],\"target\":[1]},null,{\"active\":[\"onActiveChange\"]}]]],[\"c-login-card-actions.cjs\",[[1,\"c-login-card-actions\",{\"align\":[1],\"justify\":[1]}]]],[\"c-swiper-tab.cjs\",[[1,\"c-swiper-tab\",{\"disabled\":[4],\"active\":[4],\"label\":[1],\"hostId\":[1,\"id\"],\"setsize\":[2],\"position\":[2],\"value\":[8]},[[1,\"click\",\"onTabClick\"]]]]],[\"c-tab.cjs\",[[1,\"c-tab\",{\"active\":[4],\"disabled\":[4],\"hostId\":[1,\"id\"],\"position\":[2],\"setsize\":[2],\"value\":[8]},[[1,\"focus\",\"onTabFocus\"],[1,\"keydown\",\"handleKeydown\"]]]]],[\"c-accordion.cjs\",[[1,\"c-accordion\",{\"value\":[1032],\"mandatory\":[4],\"multiple\":[4],\"outlined\":[4]},[[1,\"itemChange\",\"onAccordionItemChange\"]],{\"value\":[\"watchPropHandler\"]}]]],[\"c-alert.cjs\",[[1,\"c-alert\",{\"type\":[1]}]]],[\"c-link.cjs\",[[1,\"c-link\",{\"href\":[1],\"underline\":[4],\"target\":[1],\"weight\":[1]}]]],[\"c-list.cjs\",[[0,\"c-list\",{\"disabled\":[4]},null,{\"disabled\":[\"onDisabledChange\"]}]]],[\"c-list-item-title.cjs\",[[1,\"c-list-item-title\",{\"active\":[4]}]]],[\"c-login-button.cjs\",[[1,\"c-login-button\",{\"href\":[1],\"src\":[1],\"alt\":[1]}]]],[\"c-login-buttons.cjs\",[[1,\"c-login-buttons\"]]],[\"c-login-card.cjs\",[[4,\"c-login-card\",{\"backgroundPosition\":[1,\"background-position\"],\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"overlay\":[4],\"overlayBlendMode\":[1,\"overlay-blend-mode\"],\"src\":[1],\"path\":[32],\"imageHeight\":[32]}]]],[\"c-login-card-content.cjs\",[[1,\"c-login-card-content\"]]],[\"c-login-card-title.cjs\",[[1,\"c-login-card-title\"]]],[\"c-modal.cjs\",[[1,\"c-modal\",{\"value\":[4],\"dismissable\":[4],\"width\":[8],\"zIndex\":[2,\"z-index\"],\"disableBackdropBlur\":[4,\"disable-backdrop-blur\"],\"innerValue\":[32],\"animateModal\":[32]},null,{\"value\":[\"onValueChange\"]}]]],[\"c-option-value.cjs\",[[1,\"c-option-value\"]]],[\"c-progress-bar.cjs\",[[1,\"c-progress-bar\",{\"value\":[2],\"hideDetails\":[4,\"hide-details\"],\"singleLine\":[4,\"single-line\"],\"label\":[1],\"indeterminate\":[4]}]]],[\"c-row.cjs\",[[1,\"c-row\",{\"gap\":[2],\"nowrap\":[4],\"align\":[1],\"justify\":[1]}]]],[\"c-slider.cjs\",[[1,\"c-slider\",{\"hostId\":[1,\"id\"],\"hostName\":[1,\"name\"],\"ariaLabel\":[1,\"aria-label\"],\"max\":[1],\"min\":[1],\"step\":[1],\"value\":[8],\"unit\":[1],\"ticks\":[4],\"labels\":[4],\"disableTooltip\":[4,\"disable-tooltip\"],\"label\":[1],\"disabled\":[4],\"segments\":[1],\"trackPosition\":[32],\"tickPositions\":[32]},null,{\"segments\":[\"onSegmentChange\"],\"value\":[\"onValueChange\"]}]]],[\"c-status.cjs\",[[1,\"c-status\",{\"type\":[1]}]]],[\"c-step.cjs\",[[1,\"c-step\",{\"complete\":[4],\"current\":[4]}]]],[\"c-steps.cjs\",[[1,\"c-steps\",{\"value\":[8],\"isMobile\":[32],\"label\":[32]},null,{\"value\":[\"watchPropHandler\"]}]]],[\"c-tab-buttons.cjs\",[[1,\"c-tab-buttons\",{\"value\":[1032],\"mandatory\":[4],\"tabs\":[4],\"size\":[1],\"hostDisabled\":[4,\"disabled\"]},[[1,\"tabFocus\",\"tabFocusHandler\"],[2,\"keyup\",\"handleKeyUp\"],[1,\"tabChange\",\"onTabChange\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tab-item.cjs\",[[1,\"c-tab-item\",{\"value\":[8],\"active\":[4]}]]],[\"c-tab-items.cjs\",[[1,\"c-tab-items\",{\"value\":[8],\"disableAnimation\":[4,\"disable-animation\"],\"activeTab\":[32]},[[1,\"contentChange\",\"tabContentChangeHandler\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tags.cjs\",[[1,\"c-tags\",{\"size\":[1]}]]],[\"c-autocomplete_34.cjs\",[[65,\"c-autocomplete\",{\"items\":[16],\"value\":[8],\"query\":[1],\"hostId\":[1,\"id\"],\"disabled\":[4],\"label\":[1],\"name\":[1],\"placeholder\":[1],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"loading\":[4],\"required\":[4],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"shadow\":[4],\"returnObject\":[4,\"return-object\"],\"itemsPerPage\":[2,\"items-per-page\"],\"minimumQueryLength\":[2,\"minimum-query-length\"],\"minimumQueryLengthMessage\":[1,\"minimum-query-length-message\"],\"noMatchingItemsMessage\":[1,\"no-matching-items-message\"],\"optionElements\":[32],\"currentIndex\":[32],\"dropdownVisible\":[32],\"statusText\":[32],\"optionElementsExist\":[32],\"reset\":[64]},[[0,\"dropdownStateChange\",\"onDropdownStateChange\"],[0,\"selectOption\",\"onSelectOption\"]],{\"query\":[\"handleQueryChange\"]}],[65,\"c-select\",{\"items\":[16],\"value\":[8],\"hostId\":[1,\"id\"],\"clearable\":[4],\"disabled\":[4],\"label\":[1],\"name\":[1],\"placeholder\":[1],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"loading\":[4],\"required\":[4],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"shadow\":[4],\"returnObject\":[4,\"return-object\"],\"itemsPerPage\":[2,\"items-per-page\"],\"optionAsSelection\":[4,\"option-as-selection\"],\"optionElements\":[32],\"currentIndex\":[32],\"dropdownVisible\":[32],\"statusText\":[32],\"optionElementsExist\":[32],\"reset\":[64]},[[1,\"keydown\",\"handleKeyDown\"],[0,\"dropdownStateChange\",\"onDropdownStateChange\"],[0,\"selectOption\",\"onSelectOption\"]],{\"value\":[\"onValueChanged\"]}],[1,\"c-card\",{\"fullscreen\":[4],\"isFullscreen\":[32],\"exitFullscreen\":[64],\"enterFullscreen\":[64]}],[1,\"c-navigation-button\"],[1,\"c-side-navigation\",{\"mobile\":[4],\"menuVisible\":[1028,\"menu-visible\"]},[[0,\"itemChange\",\"handleChange\"]]],[1,\"c-side-navigation-item\",{\"active\":[4],\"href\":[1],\"target\":[1],\"loading\":[4]},[[0,\"itemChange\",\"handleChange\"]],{\"active\":[\"onActiveChange\"]}],[1,\"c-button\",{\"inverted\":[4],\"outlined\":[4],\"ghost\":[4],\"danger\":[4],\"grouped\":[4],\"text\":[4],\"loading\":[4],\"fit\":[4],\"noRadius\":[4,\"no-radius\"],\"type\":[1],\"disabled\":[516],\"value\":[8],\"hostId\":[1,\"id\"],\"size\":[1],\"href\":[1],\"target\":[1],\"tabs\":[4]},[[1,\"focus\",\"onTabFocus\"]]],[65,\"c-radio-group\",{\"value\":[1032],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"inline\":[4],\"label\":[1],\"color\":[1],\"hostId\":[1,\"id\"],\"items\":[16],\"disabled\":[4],\"returnObject\":[4,\"return-object\"],\"required\":[4],\"valid\":[4],\"validation\":[1]}],[1,\"c-sub-navigation-item\",{\"active\":[4],\"focusable\":[4],\"href\":[1],\"target\":[1],\"loading\":[4]}],[65,\"c-text-field\",{\"autofocus\":[4],\"autocapitalize\":[1],\"autocorrect\":[1],\"autocomplete\":[1],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"trimWhitespace\":[4,\"trim-whitespace\"],\"label\":[1],\"max\":[2],\"min\":[2],\"name\":[1],\"placeholder\":[1],\"readonly\":[4],\"required\":[4],\"rows\":[2],\"shadow\":[4],\"step\":[2],\"type\":[1],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"value\":[1025],\"isFocused\":[32],\"labelWidth\":[32],\"preSlotWidth\":[32]}],[65,\"c-otp-input\",{\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"elementId\":[1,\"id\"],\"length\":[2],\"valid\":[4],\"validation\":[1],\"value\":[1025],\"statusText\":[32],\"reset\":[64]},null,{\"validation\":[\"onValidationMessageChange\"],\"value\":[\"onValueChange\"]}],[1,\"c-card-content\"],[1,\"c-card-title\"],[1,\"c-csc-logo\",{\"width\":[2]}],[1,\"c-main\",{\"disableLayout\":[4,\"disable-layout\"]}],[1,\"c-option\",{\"selected\":[4],\"disabled\":[4],\"name\":[1],\"value\":[8]}],[1,\"c-page\",{\"scrollIndicator\":[4,\"scroll-indicator\"]}],[1,\"c-radio\",{\"checked\":[4],\"disabled\":[4],\"value\":[1]}],[1,\"c-side-navigation-title\"],[65,\"c-switch\",{\"checked\":[1028],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostDisabled\":[4,\"disabled\"],\"hostId\":[1,\"id\"],\"required\":[4],\"hasLabel\":[32]}],[4,\"c-table\",{\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"responsive\":[4]}],[1,\"c-toolbar\"],[65,\"c-checkbox\",{\"checked\":[1028],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"indeterminate\":[4],\"label\":[1],\"required\":[4],\"valid\":[4],\"validation\":[1],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostName\":[1,\"name\"]},[[1,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"onValueChange\"]}],[1,\"c-card-actions\",{\"align\":[1],\"justify\":[1]}],[1,\"c-spacer\"],[1,\"c-dropdown\",{\"itemsPerPage\":[2,\"items-per-page\"],\"parent\":[16],\"items\":[16],\"index\":[2],\"hostId\":[1,\"id\"],\"type\":[1],\"itemType\":[1,\"item-type\"],\"renderedList\":[32],\"isOpen\":[32],\"statusText\":[32],\"setStatusText\":[64],\"focusItem\":[64],\"open\":[64],\"close\":[64],\"selectItem\":[64],\"updateList\":[64]},null,{\"items\":[\"optionsWatcher\"],\"isOpen\":[\"stateWatcher\"],\"index\":[\"handleIndexChange\"]}],[1,\"c-loader\",{\"contentdelay\":[2],\"hide\":[4],\"size\":[2],\"width\":[2]},null,{\"hide\":[\"onElementHide\"]}],[4,\"c-input\",{\"active\":[4],\"autofocus\":[4],\"disabled\":[4],\"form\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"inputId\":[1,\"input-id\"],\"items\":[16],\"itemsPerPage\":[2,\"items-per-page\"],\"label\":[1],\"max\":[2],\"min\":[2],\"name\":[1],\"placeholder\":[1],\"readonly\":[4],\"required\":[4],\"rows\":[2],\"shadow\":[4],\"step\":[2],\"type\":[1],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"value\":[8],\"variant\":[1],\"isFocused\":[32],\"labelWidth\":[32],\"preSlotWidth\":[32],\"statusText\":[32],\"currentIndex\":[32],\"reset\":[64]},null,{\"valid\":[\"onValidChange\"],\"validation\":[\"onValidationMessageChange\"],\"value\":[\"onValueChange\"],\"placeholder\":[\"onPlaceholderChange\"]}],[1,\"c-message\",{\"hint\":[1],\"inputId\":[1,\"input-id\"],\"valid\":[4],\"validation\":[1],\"messageOptions\":[32]},null,{\"valid\":[\"onValidChange\"],\"validation\":[\"onValidationMessageChange\"],\"hint\":[\"onHintMessageChange\"]}],[1,\"c-icon-button\",{\"badge\":[1],\"danger\":[4],\"loading\":[4],\"text\":[4],\"inverted\":[4],\"outlined\":[4],\"path\":[1],\"ghost\":[4],\"disabled\":[4],\"size\":[1]}],[1,\"c-badge\"],[1,\"c-icon\",{\"path\":[1],\"size\":[2],\"color\":[1]}],[1,\"c-spinner\",{\"color\":[1],\"size\":[2],\"width\":[2]}],[1,\"c-ripple\",{\"createRipple\":[64]}]]],[\"c-menu_2.cjs\",[[1,\"c-menu\",{\"items\":[16],\"contentClass\":[1,\"content-class\"],\"custom\":[4],\"small\":[4],\"flat\":[4],\"itemsPerPage\":[2,\"items-per-page\"],\"menuItemsComponent\":[32],\"menuWrapperComponent\":[32],\"currentIndex\":[32],\"active\":[32]},[[2,\"keydown\",\"handleKeyDown\"]]],[1,\"c-menu-items\",{\"items\":[16],\"small\":[4],\"active\":[4],\"parentType\":[1,\"parent-type\"],\"parent\":[16],\"top\":[2],\"index\":[2],\"itemsPerPage\":[2,\"items-per-page\"],\"scrollingParent\":[32],\"isInView\":[32],\"currentIndex\":[32]},[[2,\"keydown\",\"handleKeyDown\"]],{\"currentIndex\":[\"onIndexChange\"]}]]],[\"c-pagination.cjs\",[[1,\"c-pagination\",{\"value\":[16],\"hideDetails\":[4,\"hide-details\"],\"simple\":[4],\"size\":[1],\"hideRange\":[4,\"hide-range\"],\"_currentPage\":[32],\"_itemsPerPage\":[32],\"_pageSizes\":[32],\"_totalVisible\":[32],\"tick\":[32]},null,{\"value\":[\"valueHandler\"]}]]],[\"c-toast.cjs\",[[1,\"c-toast\",{\"message\":[16],\"closeToast\":[64]}]]]]"), options);
|
|
9
|
+
return index.bootstrapLazy(JSON.parse("[[\"c-data-table.cjs\",[[1,\"c-data-table\",{\"data\":[16],\"externalData\":[4,\"external-data\"],\"headers\":[16],\"hideFooter\":[4,\"hide-footer\"],\"footerOptions\":[16],\"loading\":[4],\"loadingText\":[1,\"loading-text\"],\"noDataText\":[1,\"no-data-text\"],\"pagination\":[1040],\"selectable\":[4],\"singleSelection\":[4,\"single-selection\"],\"selectionProperty\":[1,\"selection-property\"],\"singleExpansion\":[4,\"single-expansion\"],\"sortBy\":[1032,\"sort-by\"],\"sortDirection\":[1025,\"sort-direction\"],\"stickyHeader\":[4,\"sticky-header\"],\"horizontalScrolling\":[4,\"horizontal-scrolling\"],\"_activeRows\":[32],\"_data\":[32],\"_isIndeterminate\":[32],\"_isPaginationSimple\":[32],\"_selections\":[32],\"hasOverflow\":[32],\"hiddenHeaders\":[32],\"initiallyHiddenHeaders\":[32],\"forceRender\":[32],\"breakpoints\":[32],\"markedFooterWidth\":[32],\"parentWidth\":[32],\"firstCellHidden\":[32],\"lastCellHidden\":[32],\"clearSelections\":[64],\"getData\":[64]},null,{\"hiddenHeaders\":[\"onHiddenHeaderChange\"],\"data\":[\"onDataChange\"],\"headers\":[\"onHeaderChange\"],\"singleSelection\":[\"onSingleSelectionChange\"],\"loading\":[\"onLoadingChange\"]}]]],[\"c-tabs.cjs\",[[1,\"c-tabs\",{\"value\":[1032],\"borderless\":[4],\"disableAnimation\":[4,\"disable-animation\"],\"justify\":[1],\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"vertical\":[4],\"isOverflowing\":[32],\"isMobile\":[32],\"scrollOffset\":[32]},[[1,\"tabFocus\",\"tabFocusHandler\"],[1,\"tabChange\",\"tabChangeHandler\"],[2,\"keydown\",\"handleKeyDown\"],[2,\"keyup\",\"handleKeyUp\"]],{\"justify\":[\"onJustificationChange\"],\"value\":[\"onExternalValueChange\"],\"scrollOffset\":[\"onScrollOffsetChange\"]}]]],[\"c-tag.cjs\",[[1,\"c-tag\",{\"active\":[4],\"block\":[4],\"fit\":[4],\"flat\":[4],\"closeable\":[4],\"badge\":[8],\"size\":[1]}]]],[\"c-swiper.cjs\",[[4,\"c-swiper\",{\"value\":[1544],\"elementId\":[1,\"id\"],\"isBeginning\":[32],\"isEnd\":[32],\"statusText\":[32]},[[0,\"changeValue\",\"onTabClick\"],[2,\"keyup\",\"handleKeyUp\"]]]]],[\"c-toasts.cjs\",[[1,\"c-toasts\",{\"absolute\":[4],\"horizontal\":[1],\"vertical\":[1],\"messages\":[32],\"addToast\":[64],\"removeToast\":[64]}]]],[\"c-accordion-item.cjs\",[[1,\"c-accordion-item\",{\"collapsable\":[4],\"heading\":[1],\"value\":[8],\"expanded\":[4],\"outlined\":[4],\"hasCustomHeader\":[32],\"hasIcon\":[32]},[[2,\"keydown\",\"handleKeyDown\"],[0,\"changeValue\",\"stop\"]]]]],[\"c-list-item.cjs\",[[1,\"c-list-item\",{\"active\":[4],\"disabled\":[4],\"disabledByParent\":[4,\"disabled-by-parent\"],\"hoverable\":[4],\"ripple\":[4],\"href\":[1],\"target\":[1]},null,{\"active\":[\"onActiveChange\"]}]]],[\"c-login-card-actions.cjs\",[[1,\"c-login-card-actions\",{\"align\":[1],\"justify\":[1]}]]],[\"c-swiper-tab.cjs\",[[1,\"c-swiper-tab\",{\"disabled\":[4],\"active\":[4],\"label\":[1],\"hostId\":[1,\"id\"],\"setsize\":[2],\"position\":[2],\"value\":[8]},[[1,\"click\",\"onTabClick\"]]]]],[\"c-tab.cjs\",[[1,\"c-tab\",{\"active\":[4],\"disabled\":[4],\"hostId\":[1,\"id\"],\"position\":[2],\"setsize\":[2],\"value\":[8]},[[1,\"focus\",\"onTabFocus\"],[1,\"keydown\",\"handleKeydown\"]]]]],[\"c-accordion.cjs\",[[1,\"c-accordion\",{\"value\":[1032],\"mandatory\":[4],\"multiple\":[4],\"outlined\":[4]},[[1,\"itemChange\",\"onAccordionItemChange\"]],{\"value\":[\"watchPropHandler\"]}]]],[\"c-alert.cjs\",[[1,\"c-alert\",{\"type\":[1]}]]],[\"c-link.cjs\",[[1,\"c-link\",{\"href\":[1],\"underline\":[4],\"target\":[1],\"weight\":[1]}]]],[\"c-list.cjs\",[[0,\"c-list\",{\"disabled\":[4]},null,{\"disabled\":[\"onDisabledChange\"]}]]],[\"c-list-item-title.cjs\",[[1,\"c-list-item-title\",{\"active\":[4]}]]],[\"c-login-button.cjs\",[[1,\"c-login-button\",{\"href\":[1],\"src\":[1],\"alt\":[1]}]]],[\"c-login-buttons.cjs\",[[1,\"c-login-buttons\"]]],[\"c-login-card.cjs\",[[4,\"c-login-card\",{\"backgroundPosition\":[1,\"background-position\"],\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"overlay\":[4],\"overlayBlendMode\":[1,\"overlay-blend-mode\"],\"src\":[1],\"path\":[32],\"imageHeight\":[32]}]]],[\"c-login-card-content.cjs\",[[1,\"c-login-card-content\"]]],[\"c-login-card-title.cjs\",[[1,\"c-login-card-title\"]]],[\"c-modal.cjs\",[[1,\"c-modal\",{\"value\":[4],\"dismissable\":[4],\"width\":[8],\"zIndex\":[2,\"z-index\"],\"disableBackdropBlur\":[4,\"disable-backdrop-blur\"],\"innerValue\":[32],\"animateModal\":[32]},null,{\"value\":[\"onValueChange\"]}]]],[\"c-option-value.cjs\",[[1,\"c-option-value\"]]],[\"c-progress-bar.cjs\",[[1,\"c-progress-bar\",{\"value\":[2],\"hideDetails\":[4,\"hide-details\"],\"singleLine\":[4,\"single-line\"],\"label\":[1],\"indeterminate\":[4]}]]],[\"c-row.cjs\",[[1,\"c-row\",{\"gap\":[2],\"nowrap\":[4],\"align\":[1],\"justify\":[1]}]]],[\"c-slider.cjs\",[[1,\"c-slider\",{\"hostId\":[1,\"id\"],\"hostName\":[1,\"name\"],\"ariaLabel\":[1,\"aria-label\"],\"max\":[1],\"min\":[1],\"step\":[1],\"value\":[8],\"unit\":[1],\"ticks\":[4],\"labels\":[4],\"disableTooltip\":[4,\"disable-tooltip\"],\"label\":[1],\"disabled\":[4],\"segments\":[1],\"trackPosition\":[32],\"tickPositions\":[32]},null,{\"segments\":[\"onSegmentChange\"],\"value\":[\"onValueChange\"]}]]],[\"c-status.cjs\",[[1,\"c-status\",{\"type\":[1]}]]],[\"c-step.cjs\",[[1,\"c-step\",{\"complete\":[4],\"current\":[4]}]]],[\"c-steps.cjs\",[[1,\"c-steps\",{\"value\":[8],\"isMobile\":[32],\"label\":[32]},null,{\"value\":[\"watchPropHandler\"]}]]],[\"c-tab-buttons.cjs\",[[1,\"c-tab-buttons\",{\"value\":[1032],\"mandatory\":[4],\"tabs\":[4],\"size\":[1],\"hostDisabled\":[4,\"disabled\"]},[[1,\"tabFocus\",\"tabFocusHandler\"],[2,\"keyup\",\"handleKeyUp\"],[1,\"tabChange\",\"onTabChange\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tab-item.cjs\",[[1,\"c-tab-item\",{\"value\":[8],\"active\":[4]}]]],[\"c-tab-items.cjs\",[[1,\"c-tab-items\",{\"value\":[8],\"disableAnimation\":[4,\"disable-animation\"],\"activeTab\":[32]},[[1,\"contentChange\",\"tabContentChangeHandler\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tags.cjs\",[[1,\"c-tags\",{\"size\":[1]}]]],[\"c-autocomplete_34.cjs\",[[65,\"c-autocomplete\",{\"items\":[16],\"value\":[8],\"query\":[1],\"hostId\":[1,\"id\"],\"disabled\":[4],\"label\":[1],\"name\":[1],\"placeholder\":[1],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"loading\":[4],\"required\":[4],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"shadow\":[4],\"returnObject\":[4,\"return-object\"],\"itemsPerPage\":[2,\"items-per-page\"],\"minimumQueryLength\":[2,\"minimum-query-length\"],\"minimumQueryLengthMessage\":[1,\"minimum-query-length-message\"],\"noMatchingItemsMessage\":[1,\"no-matching-items-message\"],\"optionElements\":[32],\"currentIndex\":[32],\"dropdownVisible\":[32],\"statusText\":[32],\"optionElementsExist\":[32],\"reset\":[64]},[[0,\"dropdownStateChange\",\"onDropdownStateChange\"],[0,\"selectOption\",\"onSelectOption\"]],{\"query\":[\"handleQueryChange\"]}],[65,\"c-select\",{\"items\":[16],\"value\":[8],\"hostId\":[1,\"id\"],\"clearable\":[4],\"disabled\":[4],\"label\":[1],\"name\":[1],\"placeholder\":[1],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"loading\":[4],\"required\":[4],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"shadow\":[4],\"returnObject\":[4,\"return-object\"],\"itemsPerPage\":[2,\"items-per-page\"],\"optionAsSelection\":[4,\"option-as-selection\"],\"optionElements\":[32],\"currentIndex\":[32],\"dropdownVisible\":[32],\"statusText\":[32],\"optionElementsExist\":[32],\"reset\":[64]},[[1,\"keydown\",\"handleKeyDown\"],[0,\"dropdownStateChange\",\"onDropdownStateChange\"],[0,\"selectOption\",\"onSelectOption\"]],{\"value\":[\"onValueChanged\"]}],[1,\"c-card\",{\"fullscreen\":[4],\"isFullscreen\":[32],\"exitFullscreen\":[64],\"enterFullscreen\":[64]}],[1,\"c-navigation-button\"],[1,\"c-side-navigation\",{\"styles\":[16],\"mobile\":[4],\"menuVisible\":[1028,\"menu-visible\"]},[[0,\"itemChange\",\"handleChange\"]]],[1,\"c-side-navigation-item\",{\"active\":[4],\"href\":[1],\"target\":[1],\"loading\":[4]},[[0,\"itemChange\",\"handleChange\"]],{\"active\":[\"onActiveChange\"]}],[1,\"c-button\",{\"inverted\":[4],\"outlined\":[4],\"ghost\":[4],\"danger\":[4],\"grouped\":[4],\"text\":[4],\"loading\":[4],\"fit\":[4],\"noRadius\":[4,\"no-radius\"],\"type\":[1],\"disabled\":[516],\"value\":[8],\"hostId\":[1,\"id\"],\"size\":[1],\"href\":[1],\"target\":[1],\"tabs\":[4]},[[1,\"focus\",\"onTabFocus\"]]],[65,\"c-radio-group\",{\"value\":[1032],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"inline\":[4],\"label\":[1],\"color\":[1],\"hostId\":[1,\"id\"],\"items\":[16],\"disabled\":[4],\"returnObject\":[4,\"return-object\"],\"required\":[4],\"valid\":[4],\"validation\":[1]}],[1,\"c-sub-navigation-item\",{\"active\":[4],\"focusable\":[4],\"href\":[1],\"target\":[1],\"loading\":[4]}],[65,\"c-text-field\",{\"autofocus\":[4],\"autocapitalize\":[1],\"autocorrect\":[1],\"autocomplete\":[1],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"trimWhitespace\":[4,\"trim-whitespace\"],\"label\":[1],\"max\":[2],\"min\":[2],\"name\":[1],\"placeholder\":[1],\"readonly\":[4],\"required\":[4],\"rows\":[2],\"shadow\":[4],\"step\":[2],\"type\":[1],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"value\":[1025],\"isFocused\":[32],\"labelWidth\":[32],\"preSlotWidth\":[32]}],[65,\"c-otp-input\",{\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"elementId\":[1,\"id\"],\"length\":[2],\"valid\":[4],\"validation\":[1],\"value\":[1025],\"statusText\":[32],\"reset\":[64]},null,{\"validation\":[\"onValidationMessageChange\"],\"value\":[\"onValueChange\"]}],[1,\"c-card-content\"],[1,\"c-card-title\"],[1,\"c-csc-logo\",{\"width\":[2]}],[1,\"c-main\",{\"disableLayout\":[4,\"disable-layout\"]}],[1,\"c-option\",{\"selected\":[4],\"disabled\":[4],\"name\":[1],\"value\":[8]}],[1,\"c-page\",{\"scrollIndicator\":[4,\"scroll-indicator\"]}],[1,\"c-radio\",{\"checked\":[4],\"disabled\":[4],\"value\":[1]}],[1,\"c-side-navigation-title\"],[65,\"c-switch\",{\"checked\":[1028],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostDisabled\":[4,\"disabled\"],\"hostId\":[1,\"id\"],\"required\":[4],\"hasLabel\":[32]}],[4,\"c-table\",{\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"responsive\":[4]}],[1,\"c-toolbar\"],[65,\"c-checkbox\",{\"checked\":[1028],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"indeterminate\":[4],\"label\":[1],\"required\":[4],\"valid\":[4],\"validation\":[1],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostName\":[1,\"name\"]},[[1,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"onValueChange\"]}],[1,\"c-card-actions\",{\"align\":[1],\"justify\":[1]}],[1,\"c-spacer\"],[1,\"c-dropdown\",{\"itemsPerPage\":[2,\"items-per-page\"],\"parent\":[16],\"items\":[16],\"index\":[2],\"hostId\":[1,\"id\"],\"type\":[1],\"itemType\":[1,\"item-type\"],\"renderedList\":[32],\"isOpen\":[32],\"statusText\":[32],\"setStatusText\":[64],\"focusItem\":[64],\"open\":[64],\"close\":[64],\"selectItem\":[64],\"updateList\":[64]},null,{\"items\":[\"optionsWatcher\"],\"isOpen\":[\"stateWatcher\"],\"index\":[\"handleIndexChange\"]}],[1,\"c-loader\",{\"contentdelay\":[2],\"hide\":[4],\"size\":[2],\"width\":[2]},null,{\"hide\":[\"onElementHide\"]}],[4,\"c-input\",{\"active\":[4],\"autofocus\":[4],\"disabled\":[4],\"form\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"inputId\":[1,\"input-id\"],\"items\":[16],\"itemsPerPage\":[2,\"items-per-page\"],\"label\":[1],\"max\":[2],\"min\":[2],\"name\":[1],\"placeholder\":[1],\"readonly\":[4],\"required\":[4],\"rows\":[2],\"shadow\":[4],\"step\":[2],\"type\":[1],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"value\":[8],\"variant\":[1],\"isFocused\":[32],\"labelWidth\":[32],\"preSlotWidth\":[32],\"statusText\":[32],\"currentIndex\":[32],\"reset\":[64]},null,{\"valid\":[\"onValidChange\"],\"validation\":[\"onValidationMessageChange\"],\"value\":[\"onValueChange\"],\"placeholder\":[\"onPlaceholderChange\"]}],[1,\"c-message\",{\"hint\":[1],\"inputId\":[1,\"input-id\"],\"valid\":[4],\"validation\":[1],\"messageOptions\":[32]},null,{\"valid\":[\"onValidChange\"],\"validation\":[\"onValidationMessageChange\"],\"hint\":[\"onHintMessageChange\"]}],[1,\"c-icon-button\",{\"badge\":[1],\"danger\":[4],\"loading\":[4],\"text\":[4],\"inverted\":[4],\"outlined\":[4],\"path\":[1],\"ghost\":[4],\"disabled\":[4],\"size\":[1]}],[1,\"c-badge\"],[1,\"c-icon\",{\"path\":[1],\"size\":[2],\"color\":[1]}],[1,\"c-spinner\",{\"color\":[1],\"size\":[2],\"width\":[2]}],[1,\"c-ripple\",{\"createRipple\":[64]}]]],[\"c-menu_2.cjs\",[[1,\"c-menu\",{\"items\":[16],\"contentClass\":[1,\"content-class\"],\"custom\":[4],\"small\":[4],\"flat\":[4],\"itemsPerPage\":[2,\"items-per-page\"],\"menuItemsComponent\":[32],\"menuWrapperComponent\":[32],\"currentIndex\":[32],\"active\":[32]},[[2,\"keydown\",\"handleKeyDown\"]]],[1,\"c-menu-items\",{\"items\":[16],\"small\":[4],\"active\":[4],\"parentType\":[1,\"parent-type\"],\"parent\":[16],\"top\":[2],\"index\":[2],\"itemsPerPage\":[2,\"items-per-page\"],\"scrollingParent\":[32],\"isInView\":[32],\"currentIndex\":[32]},[[2,\"keydown\",\"handleKeyDown\"]],{\"currentIndex\":[\"onIndexChange\"]}]]],[\"c-pagination.cjs\",[[1,\"c-pagination\",{\"value\":[16],\"hideDetails\":[4,\"hide-details\"],\"simple\":[4],\"size\":[1],\"hideRange\":[4,\"hide-range\"],\"_currentPage\":[32],\"_itemsPerPage\":[32],\"_pageSizes\":[32],\"_totalVisible\":[32],\"tick\":[32]},null,{\"value\":[\"valueHandler\"]}]]],[\"c-toast.cjs\",[[1,\"c-toast\",{\"message\":[16],\"closeToast\":[64]}]]]]"), options);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -195,8 +195,9 @@ export class CSelect {
|
|
|
195
195
|
this.dropdownVisible = isOpen;
|
|
196
196
|
}
|
|
197
197
|
onValueChanged() {
|
|
198
|
+
var _a;
|
|
198
199
|
if (!this.value && this.optionAsSelection) {
|
|
199
|
-
this._selectionElement.replaceChildren();
|
|
200
|
+
(_a = this._selectionElement) === null || _a === void 0 ? void 0 : _a.replaceChildren();
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
203
|
onSelectOption(event) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c-select.js","sourceRoot":"","sources":["../../../../src/components/c-select/c-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,KAAK,EACL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,SAAS,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/fc,iBAAS,GAAG,CAAC,AAAJ,CAAK","sourcesContent":["import {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Watch,\n Listen,\n Method,\n Prop,\n State,\n h,\n} from '@stencil/core';\nimport { CSelectItem } from '../../types';\nimport { mdiChevronDown, mdiClose } from '@mdi/js';\n\n/**\n * @group Form\n * @slot Default slot - Use c-option elements only\n */\n@Component({\n tag: 'c-select',\n styleUrl: 'c-select.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class CSelect {\n @Element() el: HTMLCSelectElement;\n\n // eslint-disable-next-line\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Dropdown items\n */\n @Prop() items: CSelectItem[] = [];\n\n /**\n * Selected item\n */\n @Prop() value: string | number | CSelectItem = null;\n\n /**\n * Id of the element\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Make the selected value clearable\n */\n @Prop() clearable = false;\n\n /**\n * Disable the input\n */\n @Prop() disabled = false;\n\n /**\n * Element label\n */\n @Prop() label: string;\n\n /**\n * Input field name\n */\n @Prop() name: string;\n\n /**\n * Placeholder text\n */\n @Prop() placeholder = '';\n\n /**\n * Hide the hint and error messages\n */\n @Prop() hideDetails = false;\n\n /**\n * Hint text for the input\n */\n @Prop() hint = '';\n\n /**\n * Show loading state\n */\n @Prop() loading = false;\n\n /**\n * Show required validation\n */\n @Prop() required = false;\n\n /**\n * Set the validíty of the input\n */\n @Prop() valid = true;\n\n /**\n * Manual validation\n */\n @Prop() validate = false;\n\n /**\n * Validate the input on blur\n */\n @Prop() validateOnBlur = false;\n\n /**\n * Custom validation message\n */\n @Prop() validation = 'Required field';\n\n /**\n * Shadow variant\n */\n @Prop() shadow = false;\n\n /**\n * Return object instead of value\n */\n @Prop() returnObject = false;\n\n /**\n * Items per page before adding scroll\n */\n @Prop() itemsPerPage = 6;\n\n /**\n * display the option as selection (works only when c-option elements are used)\n */\n @Prop() optionAsSelection: false;\n\n /**\n * Triggered when option is selected\n */\n @Event({ bubbles: false }) changeValue: EventEmitter;\n\n @State() optionElements: NodeListOf<HTMLCOptionElement>;\n\n @State() currentIndex: number = null;\n\n @State() dropdownVisible = false;\n\n @State() statusText = '';\n\n @State() optionElementsExist = false;\n\n private static _uniqueId = 0;\n\n private _dropdownElement: HTMLCDropdownElement;\n\n private _inputElement: HTMLInputElement;\n\n private _cInputElement: HTMLCInputElement;\n\n private _selectionElement: HTMLDivElement;\n\n private _inputId: string;\n\n private _preventDialogOpen = false;\n\n private _debounce = null;\n\n private _lastKeyPressTime = null;\n\n private _searchString = '';\n\n private get _id() {\n return this.hostId || `select_${CSelect._uniqueId}`;\n }\n\n private get _items() {\n return this.optionElementsExist ? this.optionElements : this.items;\n }\n\n private get _value() {\n if (!this.value) return '';\n\n if (\n !this.returnObject &&\n !['number', 'string'].includes(typeof this.value)\n ) {\n console.warn(\n `[C-SELECT] The value should be of type 'number' or 'string' when return-object is not used.`,\n );\n\n return '';\n }\n\n if (\n !this.returnObject &&\n ['number', 'string'].includes(typeof this.value)\n ) {\n return Array.from(this._items)?.find((item) => item.value === this.value)\n ?.name;\n }\n\n return Array.from(this._items as CSelectItem[])?.find(\n (item) => item.value === (this.value as CSelectItem).value,\n )?.name;\n }\n\n /**\n * Reset select state\n */\n @Method()\n async reset() {\n this.changeValue.emit(null);\n\n this.internals.setFormValue(null);\n\n this._dropdownElement.updateList();\n }\n\n @Listen('keydown', { passive: true })\n handleKeyDown(event: KeyboardEvent) {\n const alphanumeric = /^[0-9a-zA-Z ]+$/;\n\n if (this.disabled) return;\n\n if (event.key.match(alphanumeric) && event.key.length === 1) {\n if (this.dropdownVisible) return;\n\n if (Date.now() - this._lastKeyPressTime > 3000) {\n this._searchString = event.key;\n } else {\n this._searchString += event.key;\n }\n\n this._lastKeyPressTime = Date.now();\n\n const selectionIndex = Array.from(this._items).findIndex((i) =>\n i.name.toLowerCase().startsWith(this._searchString),\n );\n\n this.currentIndex = selectionIndex >= 0 ? selectionIndex : null;\n\n if (this.currentIndex !== null) {\n this._dropdownElement.selectItem(this.currentIndex);\n }\n\n return;\n }\n\n if (event.key === 'Escape') {\n this._preventDialogOpen = true;\n this._dropdownElement.close();\n this._inputElement.focus();\n\n return;\n }\n\n if (event.key === 'Tab') {\n this._dropdownElement.close();\n }\n\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n\n if (!this._items.length) return;\n\n if (!this.dropdownVisible) {\n this._dropdownElement.open();\n }\n\n this.currentIndex =\n this.currentIndex === null\n ? 0\n : Math.min(this.currentIndex + 1, this._items.length - 1);\n\n this._dropdownElement.focusItem(this.currentIndex);\n }\n\n if (event.key === 'ArrowUp') {\n event.preventDefault();\n\n if (this.currentIndex === 0) {\n this._dropdownElement.close();\n this._inputElement.focus();\n }\n\n if (!this.dropdownVisible) {\n this._dropdownElement.open();\n }\n\n this.currentIndex =\n this.currentIndex === null\n ? this._items.length - 1\n : Math.max(this.currentIndex - 1, 0);\n\n this._dropdownElement.focusItem(this.currentIndex);\n }\n\n if (event.key === ' ') {\n event.preventDefault();\n }\n\n if (event.key === 'Enter') {\n event.preventDefault();\n\n if (this.currentIndex === null) return;\n\n this._dropdownElement.selectItem(this.currentIndex);\n }\n\n if (event.key === 'Home' && this.dropdownVisible) {\n this.currentIndex = 0;\n }\n\n if (event.key === 'End' && this.dropdownVisible) {\n this.currentIndex = this._items.length - 1;\n }\n }\n\n @Listen('dropdownStateChange')\n onDropdownStateChange(event: CustomEvent<boolean>) {\n const isOpen = event.detail;\n\n this.dropdownVisible = isOpen;\n }\n\n @Watch('value')\n onValueChanged() {\n if (!this.value && this.optionAsSelection) {\n this._selectionElement.replaceChildren();\n }\n }\n\n @Listen('selectOption')\n onSelectOption(event: CustomEvent<{ name: string; value: string }>) {\n this._dropdownElement.close();\n\n const { name, value } = event.detail;\n\n const selection = this._setCurrentIndex({ name, value });\n\n if (this.optionElementsExist && this.optionAsSelection && selection) {\n const clone = (selection as HTMLCOptionElement).cloneNode(true);\n\n this._selectionElement.classList.add('c-input-menu__selection--show');\n this._selectionElement.replaceChildren(clone);\n }\n\n this._dropdownElement.updateList();\n\n this.value = this.returnObject ? event.detail : value;\n\n this.changeValue.emit(this.value);\n\n this.internals.setFormValue(value);\n\n this._preventDialogOpen = true;\n\n this._inputElement.focus();\n }\n\n private _setCurrentIndex({ value, name }: { value: string; name: string }) {\n let selection: HTMLCOptionElement | CSelectItem | null = null;\n\n Array.from(this._items).forEach((item, index) => {\n const selected = item.value === value && item.name === name;\n\n if (this.optionElementsExist) {\n (item as HTMLCOptionElement).selected = selected;\n }\n\n if (selected) {\n this.currentIndex = index;\n\n selection = item;\n }\n });\n\n return selection;\n }\n\n private _toggleDropdown = (event) => {\n event.stopPropagation();\n\n if (this.dropdownVisible) {\n this._dropdownElement.close();\n\n return;\n }\n\n this._dropdownElement.open();\n };\n\n private _onButtonKeyDown = (\n src: 'chevron' | 'reset',\n event: KeyboardEvent,\n ) => {\n event.stopPropagation();\n\n if (event.key !== 'Tab') event.preventDefault();\n\n if (['Enter', ' '].includes(event.key)) {\n if (src === 'chevron') {\n this._toggleDropdown(event);\n\n return;\n }\n\n this._onReset(event);\n\n this._preventDialogOpen = true;\n\n requestAnimationFrame(() => {\n this._inputElement.focus();\n });\n }\n };\n\n private _onSlotChange = () => {\n this.optionElements = this.el.querySelectorAll('c-option');\n\n if (this.optionElements.length && !this.optionElementsExist) {\n this.optionElementsExist = true;\n }\n\n const selection = Array.from(this.optionElements).find(\n (option) => option.selected,\n );\n\n if (selection) {\n this.value = this.returnObject\n ? { name: selection.name, value: selection.value }\n : selection.value;\n\n this.changeValue.emit(this.value);\n\n this.internals.setFormValue(selection.value.toString());\n }\n };\n\n private _onReset = (event) => {\n event.stopPropagation();\n\n this.changeValue.emit(null);\n\n this.internals.setFormValue(null);\n\n this._selectionElement.classList.remove('c-input-menu__selection--show');\n this._selectionElement.replaceChildren(null);\n\n this._preventDialogOpen = true;\n\n this._cInputElement.reset();\n\n this._inputElement.focus();\n\n this._dropdownElement.updateList();\n };\n\n private _updateInput() {\n this._dropdownElement.open();\n\n this._dropdownElement.updateList();\n }\n\n private _updateStatusText() {\n if (this._debounce !== null) {\n clearTimeout(this._debounce);\n this._debounce = null;\n }\n\n this._debounce = window.setTimeout(() => {\n this.statusText = '';\n\n if (this.currentIndex === null) {\n this.statusText = this._items.length\n ? `${this._items.length} option${\n this._items.length !== 1 ? 's' : ''\n } available`\n : 'No options available';\n }\n\n const ending = !!this._items.length\n ? ', navigate using the up and down arrows'\n : '';\n\n this._dropdownElement.setStatusText(this.statusText + ending);\n\n this._debounce = null;\n }, 1400);\n }\n\n private _onInputFocus = () => {\n if (this.disabled) return;\n\n if (!this._preventDialogOpen) {\n this._dropdownElement.open();\n }\n\n this._updateStatusText();\n\n this._preventDialogOpen = false;\n };\n\n componentWillLoad() {\n CSelect._uniqueId += 1;\n\n this._inputId =\n 'input_' +\n (this.hostId || this.label || this.placeholder).replace(\n /[^a-zA-Z0-9-_]/g,\n '',\n );\n }\n\n componentDidLoad() {\n if (!this.value) return;\n\n const selection = Array.from(this._items).find((item) => {\n if (this.returnObject) {\n return (\n item.name === (this.value as CSelectItem).name &&\n item.value === (this.value as CSelectItem).value\n );\n }\n\n return item.value === this.value;\n });\n\n this._setCurrentIndex({\n name: selection.name,\n value: selection.value.toString(),\n });\n }\n\n private _renderLoader() {\n return <c-spinner color=\"var(--_c-autocomplete-active-color)\" size={20} />;\n }\n\n private _renderChevron() {\n const classes = {\n 'c-input-menu__chevron': true,\n 'c-input-menu__chevron--active': this.dropdownVisible,\n };\n\n return (\n <c-icon-button\n size=\"x-small\"\n class={classes}\n disabled={this.disabled}\n text\n onClick={(event) => this._toggleDropdown(event)}\n onKeyDown={(event) => this._onButtonKeyDown('chevron', event)}\n >\n <c-icon path={mdiChevronDown} size={24} />\n </c-icon-button>\n );\n }\n\n private _renderInputElement() {\n return (\n <div class=\"c-input-menu__input\">\n <input\n type=\"text\"\n readonly\n ref={(el) => (this._inputElement = el)}\n aria-expanded={this.dropdownVisible.toString()}\n aria-owns={this._inputId + '-items'}\n aria-autocomplete=\"list\"\n autocomplete=\"off\"\n class=\"c-input__input\"\n role=\"combobox\"\n value={this._value}\n name={this.name ?? null}\n disabled={this.disabled}\n onInput={() => this._updateInput()}\n onFocus={() => this._onInputFocus()}\n />\n\n <div\n ref={(el) => (this._selectionElement = el)}\n class=\"c-input-menu__selection\"\n />\n </div>\n );\n }\n\n private _renderReset() {\n return (\n <c-icon-button\n aria-label=\"\"\n size=\"x-small\"\n disabled={this.disabled}\n text\n onClick={(event) => this._onReset(event)}\n onKeyDown={(event) => this._onButtonKeyDown('reset', event)}\n >\n <c-icon path={mdiClose} size={20} />\n </c-icon-button>\n );\n }\n\n render() {\n const itemType = this.optionElementsExist ? 'option' : 'item';\n\n return (\n <Host>\n <c-dropdown\n ref={(el) => (this._dropdownElement = el)}\n id={`${this._id}-dropdown`}\n index={this.currentIndex}\n items-per-page={this.itemsPerPage}\n item-type={itemType}\n items={this._items as NodeListOf<HTMLCOptionElement> & CSelectItem[]}\n parent={this.el}\n type=\"select\"\n >\n <c-input\n slot=\"default\"\n ref={(el) => (this._cInputElement = el)}\n active={this.dropdownVisible}\n disabled={this.disabled}\n hide-details={this.hideDetails}\n hint={this.hint}\n id={this.hostId}\n input-id={this._inputId}\n label={this.label}\n name={this.name}\n placeholder={this.placeholder}\n required={this.required}\n shadow={this.shadow}\n valid={this.valid}\n validate={this.validate}\n validate-on-blur={this.validateOnBlur}\n validation={this.validation}\n value={this.value}\n variant=\"select\"\n onClick={() => !this.disabled && this._dropdownElement.open()}\n >\n <slot name=\"pre\" slot=\"pre\"></slot>\n\n <div class=\"c-input__content\">\n {this._renderInputElement()}\n\n {this.loading && this._renderLoader()}\n\n {!this.loading &&\n this.value &&\n this.clearable &&\n this._renderReset()}\n\n {!this.loading &&\n (!this.value || !this.clearable) &&\n this._renderChevron()}\n\n <slot onSlotchange={() => this._onSlotChange()}></slot>\n </div>\n\n <slot name=\"post\" slot=\"post\"></slot>\n </c-input>\n </c-dropdown>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"c-select.js","sourceRoot":"","sources":["../../../../src/components/c-select/c-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,KAAK,EACL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAYnD,MAAM,OAAO,OAAO;;IAqIV,uBAAkB,GAAG,KAAK,CAAC;IAE3B,cAAS,GAAG,IAAI,CAAC;IAEjB,sBAAiB,GAAG,IAAI,CAAC;IAEzB,kBAAa,GAAG,EAAE,CAAC;IAmNnB,oBAAe,GAAG,CAAC,KAAK,EAAE,EAAE;MAClC,KAAK,CAAC,eAAe,EAAE,CAAC;MAExB,IAAI,IAAI,CAAC,eAAe,EAAE;QACxB,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;QAE9B,OAAO;OACR;MAED,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC;IAC/B,CAAC,CAAC;IAEM,qBAAgB,GAAG,CACzB,GAAwB,EACxB,KAAoB,EACpB,EAAE;MACF,KAAK,CAAC,eAAe,EAAE,CAAC;MAExB,IAAI,KAAK,CAAC,GAAG,KAAK,KAAK;QAAE,KAAK,CAAC,cAAc,EAAE,CAAC;MAEh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IAAI,CAAC,OAAO;cACZ,IAAI,CAAC,KAAK;cACV,IAAI,CAAC,SAAS;cACd,IAAI,CAAC,YAAY,EAAE;YAEpB,CAAC,IAAI,CAAC,OAAO;cACZ,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;cAChC,IAAI,CAAC,cAAc,EAAE;YAEvB,YAAM,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,GAAS,CACnD;UAEN,YAAM,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM,GAAQ,CAC7B,CACC,CACR,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/fc,iBAAS,GAAG,CAAC,AAAJ,CAAK","sourcesContent":["import {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Watch,\n Listen,\n Method,\n Prop,\n State,\n h,\n} from '@stencil/core';\nimport { CSelectItem } from '../../types';\nimport { mdiChevronDown, mdiClose } from '@mdi/js';\n\n/**\n * @group Form\n * @slot Default slot - Use c-option elements only\n */\n@Component({\n tag: 'c-select',\n styleUrl: 'c-select.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class CSelect {\n @Element() el: HTMLCSelectElement;\n\n // eslint-disable-next-line\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Dropdown items\n */\n @Prop() items: CSelectItem[] = [];\n\n /**\n * Selected item\n */\n @Prop() value: string | number | CSelectItem = null;\n\n /**\n * Id of the element\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Make the selected value clearable\n */\n @Prop() clearable = false;\n\n /**\n * Disable the input\n */\n @Prop() disabled = false;\n\n /**\n * Element label\n */\n @Prop() label: string;\n\n /**\n * Input field name\n */\n @Prop() name: string;\n\n /**\n * Placeholder text\n */\n @Prop() placeholder = '';\n\n /**\n * Hide the hint and error messages\n */\n @Prop() hideDetails = false;\n\n /**\n * Hint text for the input\n */\n @Prop() hint = '';\n\n /**\n * Show loading state\n */\n @Prop() loading = false;\n\n /**\n * Show required validation\n */\n @Prop() required = false;\n\n /**\n * Set the validíty of the input\n */\n @Prop() valid = true;\n\n /**\n * Manual validation\n */\n @Prop() validate = false;\n\n /**\n * Validate the input on blur\n */\n @Prop() validateOnBlur = false;\n\n /**\n * Custom validation message\n */\n @Prop() validation = 'Required field';\n\n /**\n * Shadow variant\n */\n @Prop() shadow = false;\n\n /**\n * Return object instead of value\n */\n @Prop() returnObject = false;\n\n /**\n * Items per page before adding scroll\n */\n @Prop() itemsPerPage = 6;\n\n /**\n * display the option as selection (works only when c-option elements are used)\n */\n @Prop() optionAsSelection: false;\n\n /**\n * Triggered when option is selected\n */\n @Event({ bubbles: false }) changeValue: EventEmitter;\n\n @State() optionElements: NodeListOf<HTMLCOptionElement>;\n\n @State() currentIndex: number = null;\n\n @State() dropdownVisible = false;\n\n @State() statusText = '';\n\n @State() optionElementsExist = false;\n\n private static _uniqueId = 0;\n\n private _dropdownElement: HTMLCDropdownElement;\n\n private _inputElement: HTMLInputElement;\n\n private _cInputElement: HTMLCInputElement;\n\n private _selectionElement: HTMLDivElement;\n\n private _inputId: string;\n\n private _preventDialogOpen = false;\n\n private _debounce = null;\n\n private _lastKeyPressTime = null;\n\n private _searchString = '';\n\n private get _id() {\n return this.hostId || `select_${CSelect._uniqueId}`;\n }\n\n private get _items() {\n return this.optionElementsExist ? this.optionElements : this.items;\n }\n\n private get _value() {\n if (!this.value) return '';\n\n if (\n !this.returnObject &&\n !['number', 'string'].includes(typeof this.value)\n ) {\n console.warn(\n `[C-SELECT] The value should be of type 'number' or 'string' when return-object is not used.`,\n );\n\n return '';\n }\n\n if (\n !this.returnObject &&\n ['number', 'string'].includes(typeof this.value)\n ) {\n return Array.from(this._items)?.find((item) => item.value === this.value)\n ?.name;\n }\n\n return Array.from(this._items as CSelectItem[])?.find(\n (item) => item.value === (this.value as CSelectItem).value,\n )?.name;\n }\n\n /**\n * Reset select state\n */\n @Method()\n async reset() {\n this.changeValue.emit(null);\n\n this.internals.setFormValue(null);\n\n this._dropdownElement.updateList();\n }\n\n @Listen('keydown', { passive: true })\n handleKeyDown(event: KeyboardEvent) {\n const alphanumeric = /^[0-9a-zA-Z ]+$/;\n\n if (this.disabled) return;\n\n if (event.key.match(alphanumeric) && event.key.length === 1) {\n if (this.dropdownVisible) return;\n\n if (Date.now() - this._lastKeyPressTime > 3000) {\n this._searchString = event.key;\n } else {\n this._searchString += event.key;\n }\n\n this._lastKeyPressTime = Date.now();\n\n const selectionIndex = Array.from(this._items).findIndex((i) =>\n i.name.toLowerCase().startsWith(this._searchString),\n );\n\n this.currentIndex = selectionIndex >= 0 ? selectionIndex : null;\n\n if (this.currentIndex !== null) {\n this._dropdownElement.selectItem(this.currentIndex);\n }\n\n return;\n }\n\n if (event.key === 'Escape') {\n this._preventDialogOpen = true;\n this._dropdownElement.close();\n this._inputElement.focus();\n\n return;\n }\n\n if (event.key === 'Tab') {\n this._dropdownElement.close();\n }\n\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n\n if (!this._items.length) return;\n\n if (!this.dropdownVisible) {\n this._dropdownElement.open();\n }\n\n this.currentIndex =\n this.currentIndex === null\n ? 0\n : Math.min(this.currentIndex + 1, this._items.length - 1);\n\n this._dropdownElement.focusItem(this.currentIndex);\n }\n\n if (event.key === 'ArrowUp') {\n event.preventDefault();\n\n if (this.currentIndex === 0) {\n this._dropdownElement.close();\n this._inputElement.focus();\n }\n\n if (!this.dropdownVisible) {\n this._dropdownElement.open();\n }\n\n this.currentIndex =\n this.currentIndex === null\n ? this._items.length - 1\n : Math.max(this.currentIndex - 1, 0);\n\n this._dropdownElement.focusItem(this.currentIndex);\n }\n\n if (event.key === ' ') {\n event.preventDefault();\n }\n\n if (event.key === 'Enter') {\n event.preventDefault();\n\n if (this.currentIndex === null) return;\n\n this._dropdownElement.selectItem(this.currentIndex);\n }\n\n if (event.key === 'Home' && this.dropdownVisible) {\n this.currentIndex = 0;\n }\n\n if (event.key === 'End' && this.dropdownVisible) {\n this.currentIndex = this._items.length - 1;\n }\n }\n\n @Listen('dropdownStateChange')\n onDropdownStateChange(event: CustomEvent<boolean>) {\n const isOpen = event.detail;\n\n this.dropdownVisible = isOpen;\n }\n\n @Watch('value')\n onValueChanged() {\n if (!this.value && this.optionAsSelection) {\n this._selectionElement?.replaceChildren();\n }\n }\n\n @Listen('selectOption')\n onSelectOption(event: CustomEvent<{ name: string; value: string }>) {\n this._dropdownElement.close();\n\n const { name, value } = event.detail;\n\n const selection = this._setCurrentIndex({ name, value });\n\n if (this.optionElementsExist && this.optionAsSelection && selection) {\n const clone = (selection as HTMLCOptionElement).cloneNode(true);\n\n this._selectionElement.classList.add('c-input-menu__selection--show');\n this._selectionElement.replaceChildren(clone);\n }\n\n this._dropdownElement.updateList();\n\n this.value = this.returnObject ? event.detail : value;\n\n this.changeValue.emit(this.value);\n\n this.internals.setFormValue(value);\n\n this._preventDialogOpen = true;\n\n this._inputElement.focus();\n }\n\n private _setCurrentIndex({ value, name }: { value: string; name: string }) {\n let selection: HTMLCOptionElement | CSelectItem | null = null;\n\n Array.from(this._items).forEach((item, index) => {\n const selected = item.value === value && item.name === name;\n\n if (this.optionElementsExist) {\n (item as HTMLCOptionElement).selected = selected;\n }\n\n if (selected) {\n this.currentIndex = index;\n\n selection = item;\n }\n });\n\n return selection;\n }\n\n private _toggleDropdown = (event) => {\n event.stopPropagation();\n\n if (this.dropdownVisible) {\n this._dropdownElement.close();\n\n return;\n }\n\n this._dropdownElement.open();\n };\n\n private _onButtonKeyDown = (\n src: 'chevron' | 'reset',\n event: KeyboardEvent,\n ) => {\n event.stopPropagation();\n\n if (event.key !== 'Tab') event.preventDefault();\n\n if (['Enter', ' '].includes(event.key)) {\n if (src === 'chevron') {\n this._toggleDropdown(event);\n\n return;\n }\n\n this._onReset(event);\n\n this._preventDialogOpen = true;\n\n requestAnimationFrame(() => {\n this._inputElement.focus();\n });\n }\n };\n\n private _onSlotChange = () => {\n this.optionElements = this.el.querySelectorAll('c-option');\n\n if (this.optionElements.length && !this.optionElementsExist) {\n this.optionElementsExist = true;\n }\n\n const selection = Array.from(this.optionElements).find(\n (option) => option.selected,\n );\n\n if (selection) {\n this.value = this.returnObject\n ? { name: selection.name, value: selection.value }\n : selection.value;\n\n this.changeValue.emit(this.value);\n\n this.internals.setFormValue(selection.value.toString());\n }\n };\n\n private _onReset = (event) => {\n event.stopPropagation();\n\n this.changeValue.emit(null);\n\n this.internals.setFormValue(null);\n\n this._selectionElement.classList.remove('c-input-menu__selection--show');\n this._selectionElement.replaceChildren(null);\n\n this._preventDialogOpen = true;\n\n this._cInputElement.reset();\n\n this._inputElement.focus();\n\n this._dropdownElement.updateList();\n };\n\n private _updateInput() {\n this._dropdownElement.open();\n\n this._dropdownElement.updateList();\n }\n\n private _updateStatusText() {\n if (this._debounce !== null) {\n clearTimeout(this._debounce);\n this._debounce = null;\n }\n\n this._debounce = window.setTimeout(() => {\n this.statusText = '';\n\n if (this.currentIndex === null) {\n this.statusText = this._items.length\n ? `${this._items.length} option${\n this._items.length !== 1 ? 's' : ''\n } available`\n : 'No options available';\n }\n\n const ending = !!this._items.length\n ? ', navigate using the up and down arrows'\n : '';\n\n this._dropdownElement.setStatusText(this.statusText + ending);\n\n this._debounce = null;\n }, 1400);\n }\n\n private _onInputFocus = () => {\n if (this.disabled) return;\n\n if (!this._preventDialogOpen) {\n this._dropdownElement.open();\n }\n\n this._updateStatusText();\n\n this._preventDialogOpen = false;\n };\n\n componentWillLoad() {\n CSelect._uniqueId += 1;\n\n this._inputId =\n 'input_' +\n (this.hostId || this.label || this.placeholder).replace(\n /[^a-zA-Z0-9-_]/g,\n '',\n );\n }\n\n componentDidLoad() {\n if (!this.value) return;\n\n const selection = Array.from(this._items).find((item) => {\n if (this.returnObject) {\n return (\n item.name === (this.value as CSelectItem).name &&\n item.value === (this.value as CSelectItem).value\n );\n }\n\n return item.value === this.value;\n });\n\n this._setCurrentIndex({\n name: selection.name,\n value: selection.value.toString(),\n });\n }\n\n private _renderLoader() {\n return <c-spinner color=\"var(--_c-autocomplete-active-color)\" size={20} />;\n }\n\n private _renderChevron() {\n const classes = {\n 'c-input-menu__chevron': true,\n 'c-input-menu__chevron--active': this.dropdownVisible,\n };\n\n return (\n <c-icon-button\n size=\"x-small\"\n class={classes}\n disabled={this.disabled}\n text\n onClick={(event) => this._toggleDropdown(event)}\n onKeyDown={(event) => this._onButtonKeyDown('chevron', event)}\n >\n <c-icon path={mdiChevronDown} size={24} />\n </c-icon-button>\n );\n }\n\n private _renderInputElement() {\n return (\n <div class=\"c-input-menu__input\">\n <input\n type=\"text\"\n readonly\n ref={(el) => (this._inputElement = el)}\n aria-expanded={this.dropdownVisible.toString()}\n aria-owns={this._inputId + '-items'}\n aria-autocomplete=\"list\"\n autocomplete=\"off\"\n class=\"c-input__input\"\n role=\"combobox\"\n value={this._value}\n name={this.name ?? null}\n disabled={this.disabled}\n onInput={() => this._updateInput()}\n onFocus={() => this._onInputFocus()}\n />\n\n <div\n ref={(el) => (this._selectionElement = el)}\n class=\"c-input-menu__selection\"\n />\n </div>\n );\n }\n\n private _renderReset() {\n return (\n <c-icon-button\n aria-label=\"\"\n size=\"x-small\"\n disabled={this.disabled}\n text\n onClick={(event) => this._onReset(event)}\n onKeyDown={(event) => this._onButtonKeyDown('reset', event)}\n >\n <c-icon path={mdiClose} size={20} />\n </c-icon-button>\n );\n }\n\n render() {\n const itemType = this.optionElementsExist ? 'option' : 'item';\n\n return (\n <Host>\n <c-dropdown\n ref={(el) => (this._dropdownElement = el)}\n id={`${this._id}-dropdown`}\n index={this.currentIndex}\n items-per-page={this.itemsPerPage}\n item-type={itemType}\n items={this._items as NodeListOf<HTMLCOptionElement> & CSelectItem[]}\n parent={this.el}\n type=\"select\"\n >\n <c-input\n slot=\"default\"\n ref={(el) => (this._cInputElement = el)}\n active={this.dropdownVisible}\n disabled={this.disabled}\n hide-details={this.hideDetails}\n hint={this.hint}\n id={this.hostId}\n input-id={this._inputId}\n label={this.label}\n name={this.name}\n placeholder={this.placeholder}\n required={this.required}\n shadow={this.shadow}\n valid={this.valid}\n validate={this.validate}\n validate-on-blur={this.validateOnBlur}\n validation={this.validation}\n value={this.value}\n variant=\"select\"\n onClick={() => !this.disabled && this._dropdownElement.open()}\n >\n <slot name=\"pre\" slot=\"pre\"></slot>\n\n <div class=\"c-input__content\">\n {this._renderInputElement()}\n\n {this.loading && this._renderLoader()}\n\n {!this.loading &&\n this.value &&\n this.clearable &&\n this._renderReset()}\n\n {!this.loading &&\n (!this.value || !this.clearable) &&\n this._renderChevron()}\n\n <slot onSlotchange={() => this._onSlotChange()}></slot>\n </div>\n\n <slot name=\"post\" slot=\"post\"></slot>\n </c-input>\n </c-dropdown>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -60,6 +60,8 @@ body {
|
|
|
60
60
|
transition: transform 0.3s ease;
|
|
61
61
|
width: 100%;
|
|
62
62
|
z-index: 8;
|
|
63
|
+
max-height: 100%;
|
|
64
|
+
overflow-y: auto;
|
|
63
65
|
}
|
|
64
66
|
.c-side-navigation__content {
|
|
65
67
|
display: flex;
|
|
@@ -86,7 +88,6 @@ body {
|
|
|
86
88
|
padding-top: 0;
|
|
87
89
|
}
|
|
88
90
|
.c-side-navigation__burger {
|
|
89
|
-
background-color: var(--_c-side-navigation-background-color);
|
|
90
91
|
display: flex;
|
|
91
92
|
justify-content: flex-end;
|
|
92
93
|
padding: 8px 16px;
|
|
@@ -2,6 +2,7 @@ import { mdiArrowRight } from "@mdi/js";
|
|
|
2
2
|
import { Host, h } from "@stencil/core";
|
|
3
3
|
export class CSideNavigation {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.styles = undefined;
|
|
5
6
|
this.mobile = undefined;
|
|
6
7
|
this.menuVisible = false;
|
|
7
8
|
}
|
|
@@ -44,6 +45,8 @@ export class CSideNavigation {
|
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
});
|
|
48
|
+
const addStyles = (el, styles) => Object.assign(el.style, styles);
|
|
49
|
+
addStyles(this._containerElement, this.styles);
|
|
47
50
|
}
|
|
48
51
|
_closeMenu() {
|
|
49
52
|
this.menuVisible = false;
|
|
@@ -61,7 +64,7 @@ export class CSideNavigation {
|
|
|
61
64
|
'c-side-navigation__content--mobile': !!this.mobile,
|
|
62
65
|
'c-side-navigation__content--desktop': !this.mobile,
|
|
63
66
|
};
|
|
64
|
-
return (h(Host, { class: { desktop: !this.mobile } }, h("div", { class: containerClasses }, this.mobile && (h("div", { class: "c-side-navigation__burger" }, h("c-icon-button", {
|
|
67
|
+
return (h(Host, { class: { desktop: !this.mobile } }, h("div", { class: containerClasses }, h("nav", { ref: (el) => (this._containerElement = el), class: classes, role: "menubar" }, this.mobile && (h("div", { class: "c-side-navigation__burger" }, h("c-icon-button", { text: true, inverted: true, onClick: () => this._closeMenu() }, h("span", { class: "visuallyhidden" }, "Close sidemenu"), h("c-icon", { path: mdiArrowRight })))), h("div", null, h("slot", null), h("div", { class: "vertical-spacer" }), h("slot", { name: "bottom" })))), this.menuVisible && this.mobile && (h("div", { class: "c-overlay c-fade-in", onClick: () => this._closeMenu() }))));
|
|
65
68
|
}
|
|
66
69
|
static get is() { return "c-side-navigation"; }
|
|
67
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,6 +80,21 @@ export class CSideNavigation {
|
|
|
77
80
|
}
|
|
78
81
|
static get properties() {
|
|
79
82
|
return {
|
|
83
|
+
"styles": {
|
|
84
|
+
"type": "unknown",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "{ [key: string]: string }",
|
|
88
|
+
"resolved": "{ [key: string]: string; }",
|
|
89
|
+
"references": {}
|
|
90
|
+
},
|
|
91
|
+
"required": false,
|
|
92
|
+
"optional": false,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": "Background styles"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
80
98
|
"mobile": {
|
|
81
99
|
"type": "boolean",
|
|
82
100
|
"mutable": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c-side-navigation.js","sourceRoot":"","sources":["../../../../src/components/c-side-navigation/c-side-navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAW1E,MAAM,OAAO,eAAe
|
|
1
|
+
{"version":3,"file":"c-side-navigation.js","sourceRoot":"","sources":["../../../../src/components/c-side-navigation/c-side-navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAW1E,MAAM,OAAO,eAAe;;;;uBAcsB,KAAK;;EAOrD,YAAY,CAAC,KAAY;IACvB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CA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AAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE;cAC3D,YAAM,KAAK,EAAC,gBAAgB,qBAAsB;cAClD,cAAQ,IAAI,EAAE,aAAa,GAAW,CACxB,CACZ,CACP;UAED;YACE,eAAa;YAEb,WAAK,KAAK,EAAC,iBAAiB,GAAO;YAEnC,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB,CACF,CACF;MAEL,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,MAAM,IAAI,CAClC,WACE,KAAK,EAAC,qBAAqB,EAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,GAC3B,CACR,CACI,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { mdiArrowRight } from '@mdi/js';\nimport { Component, Host, h, Prop, Listen, Element } from '@stencil/core';\n/**\n * @group Navigation\n * @slot Default slot - Default slot\n * @slot bottom - Place items at the bottom\n */\n@Component({\n tag: 'c-side-navigation',\n styleUrl: 'c-side-navigation.scss',\n shadow: true,\n})\nexport class CSideNavigation {\n /**\n * Background styles\n */\n @Prop() styles: { [key: string]: string };\n\n /**\n * Mobile version\n */\n @Prop() mobile: boolean;\n\n /**\n * Mobile version menu visibility\n */\n @Prop({ mutable: true }) menuVisible: boolean = false; // eslint-disable-line\n\n private _containerElement: HTMLElement;\n\n @Element() host: HTMLCSideNavigationElement;\n\n @Listen('itemChange')\n handleChange(event: Event) {\n const slotted = this.host.querySelectorAll('c-side-navigation-item');\n const target = event.target as HTMLCSideNavigationItemElement;\n const { active } = target;\n\n slotted.forEach((item) => {\n if (item.querySelector('c-sub-navigation-item[slot=\"sub-item\"]')) {\n item.active = false;\n }\n });\n\n if (target.querySelector('[slot=\"sub-item\"]')) {\n target.active = !active;\n } else {\n target.active = true;\n }\n }\n\n private _assignSubItemSlots() {\n const subItems = this.host.querySelectorAll('c-sub-navigation-item');\n\n Array.from(subItems).forEach((item) => {\n item.setAttribute('slot', 'sub-item');\n });\n }\n\n componentWillLoad() {\n this._assignSubItemSlots();\n }\n\n componentDidLoad() {\n const el = document.querySelector('body');\n\n ['click', 'keyup'].forEach((eventType) => {\n el.addEventListener(eventType, (e: MouseEvent | KeyboardEvent) => {\n if ((e.target as HTMLElement).matches('c-navigation-button')) {\n if (eventType === 'click') {\n this.menuVisible = !this.menuVisible;\n } else if (e instanceof KeyboardEvent && e.key === 'Enter') {\n this.menuVisible = !this.menuVisible;\n }\n }\n });\n });\n\n const addStyles = (el: HTMLElement, styles: { [key: string]: string }) =>\n Object.assign(el.style, styles);\n\n addStyles(this._containerElement, this.styles);\n }\n\n private _closeMenu() {\n this.menuVisible = false;\n }\n\n render() {\n const classes = {\n 'c-side-navigation': true,\n 'hide-menu': !this.menuVisible,\n mobile: !!this.mobile,\n desktop: !this.mobile,\n };\n\n const containerClasses = {\n 'c-side-navigation__content': true,\n 'c-side-navigation__content--hidden': !this.menuVisible,\n 'c-side-navigation__content--mobile': !!this.mobile,\n 'c-side-navigation__content--desktop': !this.mobile,\n };\n\n return (\n <Host class={{ desktop: !this.mobile }}>\n <div class={containerClasses}>\n <nav\n ref={(el) => (this._containerElement = el)}\n class={classes}\n role=\"menubar\"\n >\n {this.mobile && (\n <div class=\"c-side-navigation__burger\">\n <c-icon-button text inverted onClick={() => this._closeMenu()}>\n <span class=\"visuallyhidden\">Close sidemenu</span>\n <c-icon path={mdiArrowRight}></c-icon>\n </c-icon-button>\n </div>\n )}\n\n <div>\n <slot></slot>\n\n <div class=\"vertical-spacer\"></div>\n\n <slot name=\"bottom\"></slot>\n </div>\n </nav>\n </div>\n\n {this.menuVisible && this.mobile && (\n <div\n class=\"c-overlay c-fade-in\"\n onClick={() => this._closeMenu()}\n ></div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -211,8 +211,9 @@ const CSelect$1 = proxyCustomElement(class CSelect extends HTMLElement {
|
|
|
211
211
|
this.dropdownVisible = isOpen;
|
|
212
212
|
}
|
|
213
213
|
onValueChanged() {
|
|
214
|
+
var _a;
|
|
214
215
|
if (!this.value && this.optionAsSelection) {
|
|
215
|
-
this._selectionElement.replaceChildren();
|
|
216
|
+
(_a = this._selectionElement) === null || _a === void 0 ? void 0 : _a.replaceChildren();
|
|
216
217
|
}
|
|
217
218
|
}
|
|
218
219
|
onSelectOption(event) {
|