@knime/kds-components 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +471 -347
- package/dist/index.js +1372 -615
- package/dist/index.js.map +1 -1
- package/dist/src/accessories/Avatar/KdsAvatar.vue.d.ts +4 -0
- package/dist/src/accessories/Avatar/KdsAvatar.vue.d.ts.map +1 -0
- package/dist/src/accessories/Avatar/demo-logo.d.ts.map +1 -0
- package/dist/src/accessories/Avatar/demo-user.d.ts.map +1 -0
- package/dist/src/accessories/Avatar/enums.d.ts.map +1 -0
- package/dist/src/accessories/Avatar/index.d.ts.map +1 -0
- package/dist/src/accessories/Avatar/types.d.ts.map +1 -0
- package/dist/src/accessories/Badge/KdsBadge.vue.d.ts +4 -0
- package/dist/src/accessories/Badge/KdsBadge.vue.d.ts.map +1 -0
- package/dist/src/accessories/Badge/enums.d.ts.map +1 -0
- package/dist/src/accessories/Badge/index.d.ts.map +1 -0
- package/dist/src/accessories/Badge/types.d.ts.map +1 -0
- package/dist/src/accessories/ColorSwatch/KdsColorSwatch.vue.d.ts +4 -0
- package/dist/src/accessories/ColorSwatch/KdsColorSwatch.vue.d.ts.map +1 -0
- package/dist/src/accessories/ColorSwatch/enums.d.ts.map +1 -0
- package/dist/src/accessories/ColorSwatch/index.d.ts.map +1 -0
- package/dist/src/accessories/ColorSwatch/types.d.ts.map +1 -0
- package/dist/src/accessories/Icon/IdToIconNameMapping.d.ts.map +1 -0
- package/dist/src/accessories/Icon/KdsDataType.vue.d.ts +4 -0
- package/dist/src/accessories/Icon/KdsDataType.vue.d.ts.map +1 -0
- package/dist/{accessories → src/accessories}/Icon/KdsIcon.vue.d.ts +1 -4
- package/dist/src/accessories/Icon/KdsIcon.vue.d.ts.map +1 -0
- package/dist/src/accessories/Icon/enums.d.ts.map +1 -0
- package/dist/src/accessories/Icon/index.d.ts.map +1 -0
- package/dist/src/accessories/Icon/types.d.ts.map +1 -0
- package/dist/src/accessories/Icon/useIcon.d.ts.map +1 -0
- package/dist/src/accessories/InlineMessage/KdsInlineMessage.vue.d.ts +4 -0
- package/dist/src/accessories/InlineMessage/KdsInlineMessage.vue.d.ts.map +1 -0
- package/dist/src/accessories/InlineMessage/enums.d.ts.map +1 -0
- package/dist/src/accessories/InlineMessage/index.d.ts.map +1 -0
- package/dist/src/accessories/InlineMessage/types.d.ts.map +1 -0
- package/dist/{accessories → src/accessories}/LiveStatus/KdsLiveStatus.vue.d.ts +1 -6
- package/dist/src/accessories/LiveStatus/KdsLiveStatus.vue.d.ts.map +1 -0
- package/dist/src/accessories/LiveStatus/enums.d.ts.map +1 -0
- package/dist/src/accessories/LiveStatus/index.d.ts.map +1 -0
- package/dist/src/accessories/LiveStatus/types.d.ts.map +1 -0
- package/dist/{accessories → src/accessories}/LoadingSpinner/KdsLoadingSpinner.vue.d.ts +1 -4
- package/dist/src/accessories/LoadingSpinner/KdsLoadingSpinner.vue.d.ts.map +1 -0
- package/dist/src/accessories/LoadingSpinner/enums.d.ts.map +1 -0
- package/dist/src/accessories/LoadingSpinner/index.d.ts.map +1 -0
- package/dist/src/accessories/LoadingSpinner/types.d.ts.map +1 -0
- package/dist/src/accessories/index.d.ts.map +1 -0
- package/dist/src/buttons/BaseButton.vue.d.ts +75 -0
- package/dist/src/buttons/BaseButton.vue.d.ts.map +1 -0
- package/dist/src/buttons/KdsButton/KdsButton.vue.d.ts +27 -0
- package/dist/src/buttons/KdsButton/KdsButton.vue.d.ts.map +1 -0
- package/dist/src/buttons/KdsButton/index.d.ts.map +1 -0
- package/dist/src/buttons/KdsButton/types.d.ts.map +1 -0
- package/dist/src/buttons/KdsLinkButton/KdsLinkButton.vue.d.ts +51 -0
- package/dist/src/buttons/KdsLinkButton/KdsLinkButton.vue.d.ts.map +1 -0
- package/dist/src/buttons/KdsLinkButton/index.d.ts.map +1 -0
- package/dist/src/buttons/KdsLinkButton/types.d.ts.map +1 -0
- package/dist/src/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +133 -0
- package/dist/src/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +1 -0
- package/dist/src/buttons/KdsMenuButton/index.d.ts.map +1 -0
- package/dist/src/buttons/KdsMenuButton/types.d.ts.map +1 -0
- package/dist/src/buttons/KdsProgressButton/KdsProgressButton.vue.d.ts +34 -0
- package/dist/src/buttons/KdsProgressButton/KdsProgressButton.vue.d.ts.map +1 -0
- package/dist/{buttons → src/buttons}/KdsProgressButton/enums.d.ts +1 -1
- package/dist/src/buttons/KdsProgressButton/enums.d.ts.map +1 -0
- package/dist/src/buttons/KdsProgressButton/index.d.ts.map +1 -0
- package/dist/src/buttons/KdsProgressButton/types.d.ts.map +1 -0
- package/dist/src/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts +35 -0
- package/dist/src/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts.map +1 -0
- package/dist/src/buttons/KdsToggleButton/enums.d.ts.map +1 -0
- package/dist/src/buttons/KdsToggleButton/index.d.ts.map +1 -0
- package/dist/src/buttons/KdsToggleButton/types.d.ts.map +1 -0
- package/dist/src/buttons/enums.d.ts.map +1 -0
- package/dist/src/buttons/index.d.ts.map +1 -0
- package/dist/src/buttons/types.d.ts.map +1 -0
- package/dist/src/forms/Checkbox/BaseCheckbox.vue.d.ts +56 -0
- package/dist/src/forms/Checkbox/BaseCheckbox.vue.d.ts.map +1 -0
- package/dist/src/forms/Checkbox/KdsCheckbox.vue.d.ts +48 -0
- package/dist/src/forms/Checkbox/KdsCheckbox.vue.d.ts.map +1 -0
- package/dist/{forms → src/forms}/Checkbox/KdsCheckboxGroup.vue.d.ts +1 -5
- package/dist/src/forms/Checkbox/KdsCheckboxGroup.vue.d.ts.map +1 -0
- package/dist/src/forms/Checkbox/enums.d.ts.map +1 -0
- package/dist/src/forms/Checkbox/index.d.ts.map +1 -0
- package/dist/src/forms/Checkbox/types.d.ts.map +1 -0
- package/dist/{forms → src/forms}/RadioButton/KdsRadioButton.vue.d.ts +1 -4
- package/dist/src/forms/RadioButton/KdsRadioButton.vue.d.ts.map +1 -0
- package/dist/{forms → src/forms}/RadioButton/KdsRadioButtonGroup.vue.d.ts +1 -4
- package/dist/src/forms/RadioButton/KdsRadioButtonGroup.vue.d.ts.map +1 -0
- package/dist/{forms → src/forms}/RadioButton/KdsValueSwitch.vue.d.ts +1 -5
- package/dist/src/forms/RadioButton/KdsValueSwitch.vue.d.ts.map +1 -0
- package/dist/src/forms/RadioButton/ValueSwitchItem.vue.d.ts +53 -0
- package/dist/src/forms/RadioButton/ValueSwitchItem.vue.d.ts.map +1 -0
- package/dist/src/forms/RadioButton/enums.d.ts.map +1 -0
- package/dist/src/forms/RadioButton/index.d.ts.map +1 -0
- package/dist/src/forms/RadioButton/types.d.ts.map +1 -0
- package/dist/src/forms/RadioButton/useRadioSelection.d.ts.map +1 -0
- package/dist/src/forms/RadioButton/useValueSwitchIconHiding.d.ts.map +1 -0
- package/dist/src/forms/_helper/BaseFormFieldWrapper.vue.d.ts.map +1 -0
- package/dist/src/forms/_helper/InfoPopover/InfoPopover.vue.d.ts.map +1 -0
- package/dist/{forms → src/forms}/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts +7 -29
- package/dist/src/forms/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts.map +1 -0
- package/dist/src/forms/_helper/InfoPopover/index.d.ts.map +1 -0
- package/dist/src/forms/_helper/InfoPopover/types.d.ts.map +1 -0
- package/dist/{forms → src/forms}/_helper/KdsLabel.vue.d.ts +1 -4
- package/dist/src/forms/_helper/KdsLabel.vue.d.ts.map +1 -0
- package/dist/{forms → src/forms}/_helper/KdsSubText.vue.d.ts +1 -5
- package/dist/src/forms/_helper/KdsSubText.vue.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/KdsListItem/KdsListItem.vue.d.ts +11 -0
- package/dist/src/forms/_helper/List/KdsListItem/KdsListItem.vue.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/KdsListItem/demo-accessories.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/KdsListItem/enums.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/KdsListItem/index.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/KdsListItem/types.d.ts.map +1 -0
- package/dist/{forms → src/forms}/_helper/List/KdsListItemButton/KdsListItemButton.vue.d.ts +1 -3
- package/dist/src/forms/_helper/List/KdsListItemButton/KdsListItemButton.vue.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/KdsListItemButton/index.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/KdsListItemButton/types.d.ts.map +1 -0
- package/dist/{forms → src/forms}/_helper/List/ListContainer/KdsListContainer.vue.d.ts +1 -7
- package/dist/src/forms/_helper/List/ListContainer/KdsListContainer.vue.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/ListContainer/enums.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/ListContainer/index.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/ListContainer/types.d.ts.map +1 -0
- package/dist/{forms → src/forms}/_helper/List/ListItemAccessory/ListItemAccessory.vue.d.ts +1 -3
- package/dist/src/forms/_helper/List/ListItemAccessory/ListItemAccessory.vue.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/ListItemAccessory/enums.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/ListItemAccessory/types.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/ListItemDivider/ListItemDivider.vue.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/ListItemDivider/index.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/ListItemSectionTitle/index.d.ts.map +1 -0
- package/dist/src/forms/_helper/List/ListItemSectionTitle/types.d.ts.map +1 -0
- package/dist/{forms → src/forms}/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts +7 -32
- package/dist/src/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts.map +1 -0
- package/dist/src/forms/_helper/VariablePopover/VariablePopover.vue.d.ts.map +1 -0
- package/dist/src/forms/_helper/VariablePopover/index.d.ts.map +1 -0
- package/dist/src/forms/_helper/VariablePopover/types.d.ts.map +1 -0
- package/dist/src/forms/index.d.ts.map +1 -0
- package/dist/{forms → src/forms}/inputs/BaseInput.vue.d.ts +1 -31
- package/dist/src/forms/inputs/BaseInput.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/ColorInput/ColorPicker.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/ColorInput/KdsColorInput.vue.d.ts +147 -0
- package/dist/src/forms/inputs/ColorInput/KdsColorInput.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/ColorInput/colorUtils.d.ts.map +1 -0
- package/dist/src/forms/inputs/ColorInput/index.d.ts.map +1 -0
- package/dist/src/forms/inputs/ColorInput/types.d.ts.map +1 -0
- package/dist/src/forms/inputs/ColorInput/useColorInputValidationOnFocusOut.d.ts.map +1 -0
- package/dist/{forms → src/forms}/inputs/DateInput/KdsDateInput.vue.d.ts +6 -76
- package/dist/src/forms/inputs/DateInput/KdsDateInput.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/DateInput/dateUtils.d.ts.map +1 -0
- package/dist/src/forms/inputs/DateInput/index.d.ts.map +1 -0
- package/dist/src/forms/inputs/DateInput/types.d.ts.map +1 -0
- package/dist/src/forms/inputs/DateTimeFormatInput/DateTimeFormatPopover.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts +159 -0
- package/dist/src/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/DateTimeFormatInput/enums.d.ts.map +1 -0
- package/dist/src/forms/inputs/DateTimeFormatInput/index.d.ts.map +1 -0
- package/dist/src/forms/inputs/DateTimeFormatInput/types.d.ts.map +1 -0
- package/dist/src/forms/inputs/NumberInput/KdsNumberInput.vue.d.ts +272 -0
- package/dist/src/forms/inputs/NumberInput/KdsNumberInput.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/NumberInput/index.d.ts.map +1 -0
- package/dist/src/forms/inputs/NumberInput/numberParser.d.ts.map +1 -0
- package/dist/src/forms/inputs/NumberInput/types.d.ts.map +1 -0
- package/dist/{forms → src/forms}/inputs/PasswordInput/KdsPasswordInput.vue.d.ts +4 -71
- package/dist/src/forms/inputs/PasswordInput/KdsPasswordInput.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/PasswordInput/enums.d.ts.map +1 -0
- package/dist/src/forms/inputs/PasswordInput/index.d.ts.map +1 -0
- package/dist/src/forms/inputs/PasswordInput/types.d.ts.map +1 -0
- package/dist/src/forms/inputs/PatternInput/KdsPatternInput.vue.d.ts +252 -0
- package/dist/src/forms/inputs/PatternInput/KdsPatternInput.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/PatternInput/index.d.ts.map +1 -0
- package/dist/src/forms/inputs/PatternInput/patternRegex.d.ts.map +1 -0
- package/dist/src/forms/inputs/PatternInput/types.d.ts.map +1 -0
- package/dist/src/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts +365 -0
- package/dist/src/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/SearchInput/index.d.ts.map +1 -0
- package/dist/src/forms/inputs/SearchInput/types.d.ts.map +1 -0
- package/dist/src/forms/inputs/TextInput/KdsTextInput.vue.d.ts +353 -0
- package/dist/src/forms/inputs/TextInput/KdsTextInput.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/TextInput/index.d.ts.map +1 -0
- package/dist/src/forms/inputs/TextInput/types.d.ts.map +1 -0
- package/dist/src/forms/inputs/Textarea/KdsTextarea.vue.d.ts +91 -0
- package/dist/src/forms/inputs/Textarea/KdsTextarea.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/Textarea/index.d.ts.map +1 -0
- package/dist/src/forms/inputs/Textarea/types.d.ts.map +1 -0
- package/dist/{forms → src/forms}/inputs/UsernameInput/KdsUsernameInput.vue.d.ts +4 -69
- package/dist/src/forms/inputs/UsernameInput/KdsUsernameInput.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/UsernameInput/enums.d.ts.map +1 -0
- package/dist/src/forms/inputs/UsernameInput/index.d.ts.map +1 -0
- package/dist/src/forms/inputs/UsernameInput/types.d.ts.map +1 -0
- package/dist/src/forms/inputs/index.d.ts.map +1 -0
- package/dist/src/forms/inputs/types.d.ts.map +1 -0
- package/dist/{forms → src/forms}/selects/Dropdown/BaseDropdown.vue.d.ts +1 -13
- package/dist/src/forms/selects/Dropdown/BaseDropdown.vue.d.ts.map +1 -0
- package/dist/{forms → src/forms}/selects/Dropdown/DropdownContainer.vue.d.ts +5 -77
- package/dist/src/forms/selects/Dropdown/DropdownContainer.vue.d.ts.map +1 -0
- package/dist/src/forms/selects/Dropdown/KdsDropdown.vue.d.ts +371 -0
- package/dist/src/forms/selects/Dropdown/KdsDropdown.vue.d.ts.map +1 -0
- package/dist/src/forms/selects/Dropdown/KdsMultiSelectDropdown.vue.d.ts +392 -0
- package/dist/src/forms/selects/Dropdown/KdsMultiSelectDropdown.vue.d.ts.map +1 -0
- package/dist/{forms → src/forms}/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts +6 -81
- package/dist/src/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts.map +1 -0
- package/dist/src/forms/selects/Dropdown/index.d.ts.map +1 -0
- package/dist/src/forms/selects/Dropdown/types.d.ts.map +1 -0
- package/dist/src/forms/selects/MultiSelectListBox/KdsMultiSelectListBox.vue.d.ts +95 -0
- package/dist/src/forms/selects/MultiSelectListBox/KdsMultiSelectListBox.vue.d.ts.map +1 -0
- package/dist/src/forms/selects/MultiSelectListBox/index.d.ts +3 -0
- package/dist/src/forms/selects/MultiSelectListBox/index.d.ts.map +1 -0
- package/dist/src/forms/selects/MultiSelectListBox/types.d.ts +24 -0
- package/dist/src/forms/selects/MultiSelectListBox/types.d.ts.map +1 -0
- package/dist/src/forms/selects/MultiSelectListBox/useMultiSelectListBoxSelection.d.ts +36 -0
- package/dist/src/forms/selects/MultiSelectListBox/useMultiSelectListBoxSelection.d.ts.map +1 -0
- package/dist/src/forms/selects/index.d.ts +5 -0
- package/dist/src/forms/selects/index.d.ts.map +1 -0
- package/dist/src/forms/types.d.ts.map +1 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/layouts/EmptyState/KdsEmptyState.vue.d.ts.map +1 -0
- package/dist/{buttons/KdsLinkButton → src/layouts/EmptyState}/index.d.ts.map +1 -1
- package/dist/src/layouts/EmptyState/types.d.ts.map +1 -0
- package/dist/src/layouts/KdsCardClickable/KdsCardClickable.vue.d.ts.map +1 -0
- package/dist/src/layouts/KdsCardClickable/enums.d.ts.map +1 -0
- package/dist/src/layouts/KdsCardClickable/index.d.ts.map +1 -0
- package/dist/src/layouts/KdsCardClickable/types.d.ts.map +1 -0
- package/dist/src/layouts/ResizeContainer/KdsResizeContainer.vue.d.ts.map +1 -0
- package/dist/{layouts → src/layouts}/ResizeContainer/ResizeHandle/ResizeHandle.vue.d.ts +1 -4
- package/dist/src/layouts/ResizeContainer/ResizeHandle/ResizeHandle.vue.d.ts.map +1 -0
- package/dist/src/layouts/ResizeContainer/ResizeHandle/index.d.ts.map +1 -0
- package/dist/src/layouts/ResizeContainer/ResizeHandle/types.d.ts.map +1 -0
- package/dist/src/layouts/ResizeContainer/index.d.ts.map +1 -0
- package/dist/src/layouts/ResizeContainer/types.d.ts.map +1 -0
- package/dist/{layouts → src/layouts}/TabBar/KdsTabBar.vue.d.ts +1 -5
- package/dist/src/layouts/TabBar/KdsTabBar.vue.d.ts.map +1 -0
- package/dist/src/layouts/TabBar/TabBarItemAccessory.vue.d.ts.map +1 -0
- package/dist/src/layouts/TabBar/enums.d.ts.map +1 -0
- package/dist/src/layouts/TabBar/index.d.ts.map +1 -0
- package/dist/src/layouts/TabBar/types.d.ts.map +1 -0
- package/dist/src/layouts/TabBar/useTabBarAdaptiveLayout.d.ts.map +1 -0
- package/dist/src/layouts/index.d.ts.map +1 -0
- package/dist/src/overlays/Modal/KdsDynamicModalProvider.vue.d.ts.map +1 -0
- package/dist/src/overlays/Modal/KdsModal.vue.d.ts +37 -0
- package/dist/src/overlays/Modal/KdsModal.vue.d.ts.map +1 -0
- package/dist/{overlays → src/overlays}/Modal/KdsModalLayout.vue.d.ts +1 -6
- package/dist/src/overlays/Modal/KdsModalLayout.vue.d.ts.map +1 -0
- package/dist/src/overlays/Modal/enums.d.ts.map +1 -0
- package/dist/src/overlays/Modal/index.d.ts.map +1 -0
- package/dist/src/overlays/Modal/types.d.ts.map +1 -0
- package/dist/{overlays → src/overlays}/Modal/useKdsDynamicModal.d.ts +3 -3
- package/dist/src/overlays/Modal/useKdsDynamicModal.d.ts.map +1 -0
- package/dist/{overlays → src/overlays}/Popover/KdsPopover.vue.d.ts +1 -6
- package/dist/src/overlays/Popover/KdsPopover.vue.d.ts.map +1 -0
- package/dist/src/overlays/Popover/enums.d.ts.map +1 -0
- package/dist/src/overlays/Popover/index.d.ts.map +1 -0
- package/dist/src/overlays/Popover/types.d.ts.map +1 -0
- package/dist/src/overlays/index.d.ts.map +1 -0
- package/dist/src/util/enums.d.ts.map +1 -0
- package/dist/src/util/index.d.ts.map +1 -0
- package/dist/src/util/isDefinedAndNotEmpty.d.ts.map +1 -0
- package/dist/src/util/nuxtComponentResolver.d.ts.map +1 -0
- package/dist/src/util/useKdsDarkMode.d.ts.map +1 -0
- package/dist/src/util/useKdsIsTruncated.d.ts.map +1 -0
- package/dist/src/util/useKdsLegacyMode.d.ts.map +1 -0
- package/dist/src/util/usePointerHandler.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/accessories/Avatar/KdsAvatar.vue.d.ts +0 -8
- package/dist/accessories/Avatar/KdsAvatar.vue.d.ts.map +0 -1
- package/dist/accessories/Avatar/demo-logo.d.ts.map +0 -1
- package/dist/accessories/Avatar/demo-user.d.ts.map +0 -1
- package/dist/accessories/Avatar/enums.d.ts.map +0 -1
- package/dist/accessories/Avatar/index.d.ts.map +0 -1
- package/dist/accessories/Avatar/types.d.ts.map +0 -1
- package/dist/accessories/Badge/KdsBadge.vue.d.ts +0 -8
- package/dist/accessories/Badge/KdsBadge.vue.d.ts.map +0 -1
- package/dist/accessories/Badge/enums.d.ts.map +0 -1
- package/dist/accessories/Badge/index.d.ts.map +0 -1
- package/dist/accessories/Badge/types.d.ts.map +0 -1
- package/dist/accessories/ColorSwatch/KdsColorSwatch.vue.d.ts +0 -7
- package/dist/accessories/ColorSwatch/KdsColorSwatch.vue.d.ts.map +0 -1
- package/dist/accessories/ColorSwatch/enums.d.ts.map +0 -1
- package/dist/accessories/ColorSwatch/index.d.ts.map +0 -1
- package/dist/accessories/ColorSwatch/types.d.ts.map +0 -1
- package/dist/accessories/Icon/IdToIconNameMapping.d.ts.map +0 -1
- package/dist/accessories/Icon/KdsDataType.vue.d.ts +0 -10
- package/dist/accessories/Icon/KdsDataType.vue.d.ts.map +0 -1
- package/dist/accessories/Icon/KdsIcon.vue.d.ts.map +0 -1
- package/dist/accessories/Icon/enums.d.ts.map +0 -1
- package/dist/accessories/Icon/index.d.ts.map +0 -1
- package/dist/accessories/Icon/types.d.ts.map +0 -1
- package/dist/accessories/Icon/useIcon.d.ts.map +0 -1
- package/dist/accessories/InlineMessage/KdsInlineMessage.vue.d.ts +0 -7
- package/dist/accessories/InlineMessage/KdsInlineMessage.vue.d.ts.map +0 -1
- package/dist/accessories/InlineMessage/enums.d.ts.map +0 -1
- package/dist/accessories/InlineMessage/index.d.ts.map +0 -1
- package/dist/accessories/InlineMessage/types.d.ts.map +0 -1
- package/dist/accessories/LiveStatus/KdsLiveStatus.vue.d.ts.map +0 -1
- package/dist/accessories/LiveStatus/enums.d.ts.map +0 -1
- package/dist/accessories/LiveStatus/index.d.ts.map +0 -1
- package/dist/accessories/LiveStatus/types.d.ts.map +0 -1
- package/dist/accessories/LoadingSpinner/KdsLoadingSpinner.vue.d.ts.map +0 -1
- package/dist/accessories/LoadingSpinner/enums.d.ts.map +0 -1
- package/dist/accessories/LoadingSpinner/index.d.ts.map +0 -1
- package/dist/accessories/LoadingSpinner/types.d.ts.map +0 -1
- package/dist/accessories/index.d.ts.map +0 -1
- package/dist/buttons/BaseButton.vue.d.ts +0 -18
- package/dist/buttons/BaseButton.vue.d.ts.map +0 -1
- package/dist/buttons/KdsButton/KdsButton.vue.d.ts +0 -3
- package/dist/buttons/KdsButton/KdsButton.vue.d.ts.map +0 -1
- package/dist/buttons/KdsButton/index.d.ts.map +0 -1
- package/dist/buttons/KdsButton/types.d.ts.map +0 -1
- package/dist/buttons/KdsLinkButton/KdsLinkButton.vue.d.ts +0 -3
- package/dist/buttons/KdsLinkButton/KdsLinkButton.vue.d.ts.map +0 -1
- package/dist/buttons/KdsLinkButton/types.d.ts.map +0 -1
- package/dist/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +0 -3
- package/dist/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +0 -1
- package/dist/buttons/KdsMenuButton/index.d.ts.map +0 -1
- package/dist/buttons/KdsMenuButton/types.d.ts.map +0 -1
- package/dist/buttons/KdsProgressButton/KdsProgressButton.vue.d.ts +0 -3
- package/dist/buttons/KdsProgressButton/KdsProgressButton.vue.d.ts.map +0 -1
- package/dist/buttons/KdsProgressButton/enums.d.ts.map +0 -1
- package/dist/buttons/KdsProgressButton/index.d.ts.map +0 -1
- package/dist/buttons/KdsProgressButton/types.d.ts.map +0 -1
- package/dist/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts +0 -3
- package/dist/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts.map +0 -1
- package/dist/buttons/KdsToggleButton/enums.d.ts.map +0 -1
- package/dist/buttons/KdsToggleButton/index.d.ts.map +0 -1
- package/dist/buttons/KdsToggleButton/types.d.ts.map +0 -1
- package/dist/buttons/enums.d.ts.map +0 -1
- package/dist/buttons/index.d.ts.map +0 -1
- package/dist/buttons/types.d.ts.map +0 -1
- package/dist/forms/Checkbox/BaseCheckbox.vue.d.ts +0 -3
- package/dist/forms/Checkbox/BaseCheckbox.vue.d.ts.map +0 -1
- package/dist/forms/Checkbox/KdsCheckbox.vue.d.ts +0 -3
- package/dist/forms/Checkbox/KdsCheckbox.vue.d.ts.map +0 -1
- package/dist/forms/Checkbox/KdsCheckboxGroup.vue.d.ts.map +0 -1
- package/dist/forms/Checkbox/enums.d.ts.map +0 -1
- package/dist/forms/Checkbox/index.d.ts.map +0 -1
- package/dist/forms/Checkbox/types.d.ts.map +0 -1
- package/dist/forms/RadioButton/KdsRadioButton.vue.d.ts.map +0 -1
- package/dist/forms/RadioButton/KdsRadioButtonGroup.vue.d.ts.map +0 -1
- package/dist/forms/RadioButton/KdsValueSwitch.vue.d.ts.map +0 -1
- package/dist/forms/RadioButton/ValueSwitchItem.vue.d.ts +0 -3
- package/dist/forms/RadioButton/ValueSwitchItem.vue.d.ts.map +0 -1
- package/dist/forms/RadioButton/enums.d.ts.map +0 -1
- package/dist/forms/RadioButton/index.d.ts.map +0 -1
- package/dist/forms/RadioButton/types.d.ts.map +0 -1
- package/dist/forms/RadioButton/useRadioSelection.d.ts.map +0 -1
- package/dist/forms/RadioButton/useValueSwitchIconHiding.d.ts.map +0 -1
- package/dist/forms/_helper/BaseFormFieldWrapper.vue.d.ts.map +0 -1
- package/dist/forms/_helper/InfoPopover/InfoPopover.vue.d.ts.map +0 -1
- package/dist/forms/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts.map +0 -1
- package/dist/forms/_helper/InfoPopover/index.d.ts.map +0 -1
- package/dist/forms/_helper/InfoPopover/types.d.ts.map +0 -1
- package/dist/forms/_helper/KdsLabel.vue.d.ts.map +0 -1
- package/dist/forms/_helper/KdsSubText.vue.d.ts.map +0 -1
- package/dist/forms/_helper/List/KdsListItem/KdsListItem.vue.d.ts +0 -23
- package/dist/forms/_helper/List/KdsListItem/KdsListItem.vue.d.ts.map +0 -1
- package/dist/forms/_helper/List/KdsListItem/demo-accessories.d.ts.map +0 -1
- package/dist/forms/_helper/List/KdsListItem/enums.d.ts.map +0 -1
- package/dist/forms/_helper/List/KdsListItem/index.d.ts.map +0 -1
- package/dist/forms/_helper/List/KdsListItem/types.d.ts.map +0 -1
- package/dist/forms/_helper/List/KdsListItemButton/KdsListItemButton.vue.d.ts.map +0 -1
- package/dist/forms/_helper/List/KdsListItemButton/index.d.ts.map +0 -1
- package/dist/forms/_helper/List/KdsListItemButton/types.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListContainer/KdsListContainer.vue.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListContainer/enums.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListContainer/index.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListContainer/types.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListItemAccessory/ListItemAccessory.vue.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListItemAccessory/enums.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListItemAccessory/types.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListItemDivider/ListItemDivider.vue.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListItemDivider/index.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListItemSectionTitle/index.d.ts.map +0 -1
- package/dist/forms/_helper/List/ListItemSectionTitle/types.d.ts.map +0 -1
- package/dist/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts.map +0 -1
- package/dist/forms/_helper/VariablePopover/VariablePopover.vue.d.ts.map +0 -1
- package/dist/forms/_helper/VariablePopover/index.d.ts.map +0 -1
- package/dist/forms/_helper/VariablePopover/types.d.ts.map +0 -1
- package/dist/forms/index.d.ts.map +0 -1
- package/dist/forms/inputs/BaseInput.vue.d.ts.map +0 -1
- package/dist/forms/inputs/ColorInput/ColorPicker.vue.d.ts.map +0 -1
- package/dist/forms/inputs/ColorInput/KdsColorInput.vue.d.ts +0 -3
- package/dist/forms/inputs/ColorInput/KdsColorInput.vue.d.ts.map +0 -1
- package/dist/forms/inputs/ColorInput/colorUtils.d.ts.map +0 -1
- package/dist/forms/inputs/ColorInput/index.d.ts.map +0 -1
- package/dist/forms/inputs/ColorInput/types.d.ts.map +0 -1
- package/dist/forms/inputs/ColorInput/useColorInputValidationOnFocusOut.d.ts.map +0 -1
- package/dist/forms/inputs/DateInput/KdsDateInput.vue.d.ts.map +0 -1
- package/dist/forms/inputs/DateInput/dateUtils.d.ts.map +0 -1
- package/dist/forms/inputs/DateInput/index.d.ts.map +0 -1
- package/dist/forms/inputs/DateInput/types.d.ts.map +0 -1
- package/dist/forms/inputs/DateTimeFormatInput/DateTimeFormatPopover.vue.d.ts.map +0 -1
- package/dist/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts +0 -3
- package/dist/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts.map +0 -1
- package/dist/forms/inputs/DateTimeFormatInput/enums.d.ts.map +0 -1
- package/dist/forms/inputs/DateTimeFormatInput/index.d.ts.map +0 -1
- package/dist/forms/inputs/DateTimeFormatInput/types.d.ts.map +0 -1
- package/dist/forms/inputs/NumberInput/KdsNumberInput.vue.d.ts +0 -3
- package/dist/forms/inputs/NumberInput/KdsNumberInput.vue.d.ts.map +0 -1
- package/dist/forms/inputs/NumberInput/index.d.ts.map +0 -1
- package/dist/forms/inputs/NumberInput/numberParser.d.ts.map +0 -1
- package/dist/forms/inputs/NumberInput/types.d.ts.map +0 -1
- package/dist/forms/inputs/PasswordInput/KdsPasswordInput.vue.d.ts.map +0 -1
- package/dist/forms/inputs/PasswordInput/enums.d.ts.map +0 -1
- package/dist/forms/inputs/PasswordInput/index.d.ts.map +0 -1
- package/dist/forms/inputs/PasswordInput/types.d.ts.map +0 -1
- package/dist/forms/inputs/PatternInput/KdsPatternInput.vue.d.ts +0 -3
- package/dist/forms/inputs/PatternInput/KdsPatternInput.vue.d.ts.map +0 -1
- package/dist/forms/inputs/PatternInput/index.d.ts.map +0 -1
- package/dist/forms/inputs/PatternInput/patternRegex.d.ts.map +0 -1
- package/dist/forms/inputs/PatternInput/types.d.ts.map +0 -1
- package/dist/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts +0 -3
- package/dist/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts.map +0 -1
- package/dist/forms/inputs/SearchInput/index.d.ts.map +0 -1
- package/dist/forms/inputs/SearchInput/types.d.ts.map +0 -1
- package/dist/forms/inputs/TextInput/KdsTextInput.vue.d.ts +0 -3
- package/dist/forms/inputs/TextInput/KdsTextInput.vue.d.ts.map +0 -1
- package/dist/forms/inputs/TextInput/index.d.ts.map +0 -1
- package/dist/forms/inputs/TextInput/types.d.ts.map +0 -1
- package/dist/forms/inputs/Textarea/KdsTextarea.vue.d.ts +0 -3
- package/dist/forms/inputs/Textarea/KdsTextarea.vue.d.ts.map +0 -1
- package/dist/forms/inputs/Textarea/index.d.ts.map +0 -1
- package/dist/forms/inputs/Textarea/types.d.ts.map +0 -1
- package/dist/forms/inputs/UsernameInput/KdsUsernameInput.vue.d.ts.map +0 -1
- package/dist/forms/inputs/UsernameInput/enums.d.ts.map +0 -1
- package/dist/forms/inputs/UsernameInput/index.d.ts.map +0 -1
- package/dist/forms/inputs/UsernameInput/types.d.ts.map +0 -1
- package/dist/forms/inputs/index.d.ts.map +0 -1
- package/dist/forms/inputs/types.d.ts.map +0 -1
- package/dist/forms/selects/Dropdown/BaseDropdown.vue.d.ts.map +0 -1
- package/dist/forms/selects/Dropdown/DropdownContainer.vue.d.ts.map +0 -1
- package/dist/forms/selects/Dropdown/KdsDropdown.vue.d.ts +0 -3
- package/dist/forms/selects/Dropdown/KdsDropdown.vue.d.ts.map +0 -1
- package/dist/forms/selects/Dropdown/KdsMultiSelectDropdown.vue.d.ts +0 -3
- package/dist/forms/selects/Dropdown/KdsMultiSelectDropdown.vue.d.ts.map +0 -1
- package/dist/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts.map +0 -1
- package/dist/forms/selects/Dropdown/index.d.ts.map +0 -1
- package/dist/forms/selects/Dropdown/types.d.ts.map +0 -1
- package/dist/forms/selects/index.d.ts +0 -3
- package/dist/forms/selects/index.d.ts.map +0 -1
- package/dist/forms/types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/layouts/EmptyState/KdsEmptyState.vue.d.ts.map +0 -1
- package/dist/layouts/EmptyState/index.d.ts.map +0 -1
- package/dist/layouts/EmptyState/types.d.ts.map +0 -1
- package/dist/layouts/KdsCardClickable/KdsCardClickable.vue.d.ts.map +0 -1
- package/dist/layouts/KdsCardClickable/enums.d.ts.map +0 -1
- package/dist/layouts/KdsCardClickable/index.d.ts.map +0 -1
- package/dist/layouts/KdsCardClickable/types.d.ts.map +0 -1
- package/dist/layouts/ResizeContainer/KdsResizeContainer.vue.d.ts.map +0 -1
- package/dist/layouts/ResizeContainer/ResizeHandle/ResizeHandle.vue.d.ts.map +0 -1
- package/dist/layouts/ResizeContainer/ResizeHandle/index.d.ts.map +0 -1
- package/dist/layouts/ResizeContainer/ResizeHandle/types.d.ts.map +0 -1
- package/dist/layouts/ResizeContainer/index.d.ts.map +0 -1
- package/dist/layouts/ResizeContainer/types.d.ts.map +0 -1
- package/dist/layouts/TabBar/KdsTabBar.vue.d.ts.map +0 -1
- package/dist/layouts/TabBar/TabBarItemAccessory.vue.d.ts.map +0 -1
- package/dist/layouts/TabBar/enums.d.ts.map +0 -1
- package/dist/layouts/TabBar/index.d.ts.map +0 -1
- package/dist/layouts/TabBar/types.d.ts.map +0 -1
- package/dist/layouts/TabBar/useTabBarAdaptiveLayout.d.ts.map +0 -1
- package/dist/layouts/index.d.ts.map +0 -1
- package/dist/overlays/Modal/KdsDynamicModalProvider.vue.d.ts.map +0 -1
- package/dist/overlays/Modal/KdsModal.vue.d.ts +0 -46
- package/dist/overlays/Modal/KdsModal.vue.d.ts.map +0 -1
- package/dist/overlays/Modal/KdsModalLayout.vue.d.ts.map +0 -1
- package/dist/overlays/Modal/enums.d.ts.map +0 -1
- package/dist/overlays/Modal/index.d.ts.map +0 -1
- package/dist/overlays/Modal/types.d.ts.map +0 -1
- package/dist/overlays/Modal/useKdsDynamicModal.d.ts.map +0 -1
- package/dist/overlays/Popover/KdsPopover.vue.d.ts.map +0 -1
- package/dist/overlays/Popover/enums.d.ts.map +0 -1
- package/dist/overlays/Popover/index.d.ts.map +0 -1
- package/dist/overlays/Popover/types.d.ts.map +0 -1
- package/dist/overlays/index.d.ts.map +0 -1
- package/dist/util/enums.d.ts.map +0 -1
- package/dist/util/index.d.ts.map +0 -1
- package/dist/util/isDefinedAndNotEmpty.d.ts.map +0 -1
- package/dist/util/nuxtComponentResolver.d.ts.map +0 -1
- package/dist/util/useKdsDarkMode.d.ts.map +0 -1
- package/dist/util/useKdsIsTruncated.d.ts.map +0 -1
- package/dist/util/useKdsLegacyMode.d.ts.map +0 -1
- package/dist/util/usePointerHandler.d.ts.map +0 -1
- /package/dist/{accessories → src/accessories}/Avatar/demo-logo.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Avatar/demo-user.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Avatar/enums.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Avatar/index.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Avatar/types.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Badge/enums.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Badge/index.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Badge/types.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/ColorSwatch/enums.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/ColorSwatch/index.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/ColorSwatch/types.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Icon/IdToIconNameMapping.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Icon/enums.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Icon/index.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Icon/types.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/Icon/useIcon.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/InlineMessage/enums.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/InlineMessage/index.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/InlineMessage/types.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/LiveStatus/enums.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/LiveStatus/index.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/LiveStatus/types.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/LoadingSpinner/enums.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/LoadingSpinner/index.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/LoadingSpinner/types.d.ts +0 -0
- /package/dist/{accessories → src/accessories}/index.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/KdsButton/index.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/KdsButton/types.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/KdsLinkButton/index.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/KdsLinkButton/types.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/KdsMenuButton/index.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/KdsMenuButton/types.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/KdsProgressButton/index.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/KdsProgressButton/types.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/KdsToggleButton/enums.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/KdsToggleButton/index.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/KdsToggleButton/types.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/enums.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/index.d.ts +0 -0
- /package/dist/{buttons → src/buttons}/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/Checkbox/enums.d.ts +0 -0
- /package/dist/{forms → src/forms}/Checkbox/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/Checkbox/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/RadioButton/enums.d.ts +0 -0
- /package/dist/{forms → src/forms}/RadioButton/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/RadioButton/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/RadioButton/useRadioSelection.d.ts +0 -0
- /package/dist/{forms → src/forms}/RadioButton/useValueSwitchIconHiding.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/BaseFormFieldWrapper.vue.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/InfoPopover/InfoPopover.vue.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/InfoPopover/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/InfoPopover/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/KdsListItem/demo-accessories.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/KdsListItem/enums.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/KdsListItem/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/KdsListItem/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/KdsListItemButton/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/KdsListItemButton/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/ListContainer/enums.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/ListContainer/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/ListContainer/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/ListItemAccessory/enums.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/ListItemAccessory/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/ListItemDivider/ListItemDivider.vue.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/ListItemDivider/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/ListItemSectionTitle/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/List/ListItemSectionTitle/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/VariablePopover/VariablePopover.vue.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/VariablePopover/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/_helper/VariablePopover/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/ColorInput/ColorPicker.vue.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/ColorInput/colorUtils.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/ColorInput/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/ColorInput/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/ColorInput/useColorInputValidationOnFocusOut.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/DateInput/dateUtils.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/DateInput/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/DateInput/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/DateTimeFormatInput/DateTimeFormatPopover.vue.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/DateTimeFormatInput/enums.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/DateTimeFormatInput/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/DateTimeFormatInput/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/NumberInput/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/NumberInput/numberParser.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/NumberInput/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/PasswordInput/enums.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/PasswordInput/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/PasswordInput/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/PatternInput/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/PatternInput/patternRegex.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/PatternInput/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/SearchInput/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/SearchInput/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/TextInput/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/TextInput/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/Textarea/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/Textarea/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/UsernameInput/enums.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/UsernameInput/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/UsernameInput/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/inputs/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/selects/Dropdown/index.d.ts +0 -0
- /package/dist/{forms → src/forms}/selects/Dropdown/types.d.ts +0 -0
- /package/dist/{forms → src/forms}/types.d.ts +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{layouts → src/layouts}/EmptyState/KdsEmptyState.vue.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/EmptyState/index.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/EmptyState/types.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/KdsCardClickable/KdsCardClickable.vue.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/KdsCardClickable/enums.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/KdsCardClickable/index.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/KdsCardClickable/types.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/ResizeContainer/KdsResizeContainer.vue.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/ResizeContainer/ResizeHandle/index.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/ResizeContainer/ResizeHandle/types.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/ResizeContainer/index.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/ResizeContainer/types.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/TabBar/TabBarItemAccessory.vue.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/TabBar/enums.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/TabBar/index.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/TabBar/types.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/TabBar/useTabBarAdaptiveLayout.d.ts +0 -0
- /package/dist/{layouts → src/layouts}/index.d.ts +0 -0
- /package/dist/{overlays → src/overlays}/Modal/KdsDynamicModalProvider.vue.d.ts +0 -0
- /package/dist/{overlays → src/overlays}/Modal/enums.d.ts +0 -0
- /package/dist/{overlays → src/overlays}/Modal/index.d.ts +0 -0
- /package/dist/{overlays → src/overlays}/Modal/types.d.ts +0 -0
- /package/dist/{overlays → src/overlays}/Popover/enums.d.ts +0 -0
- /package/dist/{overlays → src/overlays}/Popover/index.d.ts +0 -0
- /package/dist/{overlays → src/overlays}/Popover/types.d.ts +0 -0
- /package/dist/{overlays → src/overlays}/index.d.ts +0 -0
- /package/dist/{util → src/util}/enums.d.ts +0 -0
- /package/dist/{util → src/util}/index.d.ts +0 -0
- /package/dist/{util → src/util}/isDefinedAndNotEmpty.d.ts +0 -0
- /package/dist/{util → src/util}/nuxtComponentResolver.d.ts +0 -0
- /package/dist/{util → src/util}/useKdsDarkMode.d.ts +0 -0
- /package/dist/{util → src/util}/useKdsIsTruncated.d.ts +0 -0
- /package/dist/{util → src/util}/useKdsLegacyMode.d.ts +0 -0
- /package/dist/{util → src/util}/usePointerHandler.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, shallowRef, toRef, unref, createBlock, resolveDynamicComponent, createCommentVNode, normalizeStyle, useTemplateRef, createVNode, withCtx, renderSlot, mergeProps, h, useSlots, getCurrentInstance, useModel, mergeModels, useId, nextTick, Fragment, renderList, watchEffect, useAttrs, defineAsyncComponent, onBeforeUpdate, withModifiers,
|
|
2
|
-
import { useLocalStorage, useDark, usePreferredDark, useResizeObserver, useMutationObserver, useElementSize, useTemplateRefsList } from '@vueuse/core';
|
|
1
|
+
import { defineComponent, createPropsRestProxy, ref, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, shallowRef, toRef, unref, createBlock, resolveDynamicComponent, createCommentVNode, normalizeStyle, useTemplateRef, createVNode, withCtx, renderSlot, mergeProps, h, useSlots, getCurrentInstance, useModel, mergeModels, useId, nextTick, Fragment, renderList, watchEffect, useAttrs, defineAsyncComponent, onBeforeUpdate, withModifiers, reactive, onMounted, onUnmounted, toRefs, normalizeProps, inject, withKeys, withDirectives, provide, guardReactiveProps, createTextVNode, isRef, resolveComponent, Transition, resolveDirective, toHandlers, onBeforeUnmount, vModelText, useCssVars, createSlots } from 'vue';
|
|
2
|
+
import { useLocalStorage, useDark, usePreferredDark, useResizeObserver, useMutationObserver, useElementSize, useMousePressed, useVirtualList, useTemplateRefsList } from '@vueuse/core';
|
|
3
3
|
|
|
4
4
|
import './index.css';const kdsAvatarSize = {
|
|
5
5
|
SMALL: "small",
|
|
@@ -9,23 +9,23 @@ import './index.css';const kdsAvatarSize = {
|
|
|
9
9
|
};
|
|
10
10
|
const kdsAvatarSizes = Object.values(kdsAvatarSize);
|
|
11
11
|
|
|
12
|
-
const _hoisted_1$
|
|
13
|
-
const _hoisted_2$
|
|
12
|
+
const _hoisted_1$H = ["role", "title", "aria-hidden", "aria-label"];
|
|
13
|
+
const _hoisted_2$o = ["src"];
|
|
14
14
|
const _hoisted_3$f = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "kds-avatar-initials",
|
|
17
17
|
"aria-hidden": "true"
|
|
18
18
|
};
|
|
19
|
-
const _sfc_main
|
|
19
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
20
20
|
__name: "KdsAvatar",
|
|
21
21
|
props: {
|
|
22
22
|
initials: {},
|
|
23
|
-
src: {
|
|
24
|
-
size: { default: kdsAvatarSize.XLARGE },
|
|
25
|
-
title: {
|
|
23
|
+
src: {},
|
|
24
|
+
size: { default: () => kdsAvatarSize.XLARGE },
|
|
25
|
+
title: {}
|
|
26
26
|
},
|
|
27
27
|
setup(__props) {
|
|
28
|
-
const props = __props;
|
|
28
|
+
const props = createPropsRestProxy(__props, ["size"]);
|
|
29
29
|
const imageLoadFailed = ref(false);
|
|
30
30
|
watch(
|
|
31
31
|
() => props.src,
|
|
@@ -46,7 +46,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
);
|
|
47
47
|
return (_ctx, _cache) => {
|
|
48
48
|
return openBlock(), createElementBlock("div", {
|
|
49
|
-
class: normalizeClass(["kds-avatar",
|
|
49
|
+
class: normalizeClass(["kds-avatar", __props.size]),
|
|
50
50
|
role: hasTitle.value ? "img" : "presentation",
|
|
51
51
|
title: hasTitle.value ? accessibleTitle.value : void 0,
|
|
52
52
|
"aria-hidden": !hasTitle.value ? "true" : void 0,
|
|
@@ -59,10 +59,10 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
alt: "",
|
|
60
60
|
"aria-hidden": "true",
|
|
61
61
|
onError: onImageError
|
|
62
|
-
}, null, 40, _hoisted_2$
|
|
62
|
+
}, null, 40, _hoisted_2$o)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
63
63
|
createElementVNode("span", null, toDisplayString(displayedInitials.value), 1)
|
|
64
64
|
]))
|
|
65
|
-
], 10, _hoisted_1$
|
|
65
|
+
], 10, _hoisted_1$H);
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
});
|
|
@@ -75,7 +75,7 @@ const _export_sfc$1 = (sfc, props) => {
|
|
|
75
75
|
return target;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
const KdsAvatar = /* @__PURE__ */ _export_sfc$1(_sfc_main
|
|
78
|
+
const KdsAvatar = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["__scopeId", "data-v-c90668bf"]]);
|
|
79
79
|
|
|
80
80
|
const __variableDynamicImportRuntimeHelper = (glob$1, path$13, segs) => {
|
|
81
81
|
const v = glob$1[path$13];
|
|
@@ -117,7 +117,7 @@ function useIcon({
|
|
|
117
117
|
return iconComponent;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
const _sfc_main$
|
|
120
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
121
121
|
__name: "KdsIcon",
|
|
122
122
|
props: {
|
|
123
123
|
name: {},
|
|
@@ -125,17 +125,20 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
125
125
|
disabled: { type: Boolean, default: false }
|
|
126
126
|
},
|
|
127
127
|
setup(__props) {
|
|
128
|
-
const props = __props;
|
|
129
|
-
const iconComponent = useIcon({
|
|
128
|
+
const props = createPropsRestProxy(__props, ["size", "disabled"]);
|
|
129
|
+
const iconComponent = useIcon({
|
|
130
|
+
name: toRef(() => props.name),
|
|
131
|
+
folder: "icons"
|
|
132
|
+
});
|
|
130
133
|
return (_ctx, _cache) => {
|
|
131
134
|
return unref(iconComponent) ? (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent)), {
|
|
132
135
|
key: 0,
|
|
133
|
-
class: normalizeClass(["kds-icon",
|
|
136
|
+
class: normalizeClass(["kds-icon", __props.size, { disabled: __props.disabled }]),
|
|
134
137
|
"aria-hidden": "true",
|
|
135
138
|
focusable: "false"
|
|
136
139
|
}, null, 8, ["class"])) : (openBlock(), createElementBlock("span", {
|
|
137
140
|
key: 1,
|
|
138
|
-
class: normalizeClass(["kds-icon",
|
|
141
|
+
class: normalizeClass(["kds-icon", __props.size, { disabled: __props.disabled }]),
|
|
139
142
|
"aria-hidden": "true",
|
|
140
143
|
focusable: "false"
|
|
141
144
|
}, null, 2));
|
|
@@ -143,7 +146,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
143
146
|
}
|
|
144
147
|
});
|
|
145
148
|
|
|
146
|
-
const KdsIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
149
|
+
const KdsIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$_, [["__scopeId", "data-v-fb124eb6"]]);
|
|
147
150
|
|
|
148
151
|
const ID_TO_ICON_MAP = {
|
|
149
152
|
// Flow Variables
|
|
@@ -471,8 +474,8 @@ const kdsDataTypeSize = {
|
|
|
471
474
|
};
|
|
472
475
|
const kdsDataTypeSizes = Object.values(kdsDataTypeSize);
|
|
473
476
|
|
|
474
|
-
const _hoisted_1$
|
|
475
|
-
const _sfc_main$
|
|
477
|
+
const _hoisted_1$G = ["title"];
|
|
478
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
476
479
|
__name: "KdsDataType",
|
|
477
480
|
props: {
|
|
478
481
|
iconName: { default: "unknown-datatype" },
|
|
@@ -486,18 +489,17 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
486
489
|
medium: "small",
|
|
487
490
|
small: "xsmall"
|
|
488
491
|
};
|
|
489
|
-
const
|
|
490
|
-
const iconSize = computed(() => DATA_TYPE_SIZE_TO_ICON_SIZE[props.size]);
|
|
492
|
+
const iconSize = computed(() => DATA_TYPE_SIZE_TO_ICON_SIZE[__props.size]);
|
|
491
493
|
const isIconName = (value) => typeIconNames.includes(value);
|
|
492
494
|
const isTypeId = (value) => Object.keys(ID_TO_ICON_MAP).includes(value);
|
|
493
495
|
const iconName = computed(() => {
|
|
494
|
-
if (isIconName(
|
|
495
|
-
return
|
|
496
|
+
if (isIconName(__props.iconName)) {
|
|
497
|
+
return __props.iconName;
|
|
496
498
|
}
|
|
497
|
-
if (isTypeId(
|
|
498
|
-
return ID_TO_ICON_MAP[
|
|
499
|
+
if (isTypeId(__props.iconName)) {
|
|
500
|
+
return ID_TO_ICON_MAP[__props.iconName];
|
|
499
501
|
}
|
|
500
|
-
return
|
|
502
|
+
return __props.iconName.startsWith("org.knime") ? "default-extension-datatype" : "unknown-datatype";
|
|
501
503
|
});
|
|
502
504
|
const iconComponent = useIcon({
|
|
503
505
|
name: iconName,
|
|
@@ -506,19 +508,19 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
506
508
|
return (_ctx, _cache) => {
|
|
507
509
|
return openBlock(), createElementBlock("div", {
|
|
508
510
|
class: normalizeClass(["kds-data-type-icon-container", __props.size, { disabled: __props.disabled }]),
|
|
509
|
-
title:
|
|
511
|
+
title: __props.iconTitle
|
|
510
512
|
}, [
|
|
511
513
|
(openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent)), {
|
|
512
514
|
class: normalizeClass(["kds-icon", "kds-data-type-icon", iconSize.value]),
|
|
513
515
|
"aria-hidden": "true",
|
|
514
516
|
focusable: "false"
|
|
515
517
|
}, null, 8, ["class"]))
|
|
516
|
-
], 10, _hoisted_1$
|
|
518
|
+
], 10, _hoisted_1$G);
|
|
517
519
|
};
|
|
518
520
|
}
|
|
519
521
|
});
|
|
520
522
|
|
|
521
|
-
const KdsDataType = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
523
|
+
const KdsDataType = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["__scopeId", "data-v-3b8ebdbd"]]);
|
|
522
524
|
|
|
523
525
|
const kdsBadgeVariant = {
|
|
524
526
|
NEUTRAL: "neutral",
|
|
@@ -535,14 +537,14 @@ const kdsBadgeSize = {
|
|
|
535
537
|
};
|
|
536
538
|
const kdsBadgeSizes = Object.values(kdsBadgeSize);
|
|
537
539
|
|
|
538
|
-
const _hoisted_1$
|
|
539
|
-
const _sfc_main$
|
|
540
|
+
const _hoisted_1$F = { class: "label-wrapper" };
|
|
541
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
540
542
|
__name: "KdsBadge",
|
|
541
543
|
props: {
|
|
542
544
|
label: {},
|
|
543
|
-
variant: { default: kdsBadgeVariant.NEUTRAL },
|
|
544
|
-
size: { default: kdsBadgeSize.XSMALL },
|
|
545
|
-
leadingIcon: {
|
|
545
|
+
variant: { default: () => kdsBadgeVariant.NEUTRAL },
|
|
546
|
+
size: { default: () => kdsBadgeSize.XSMALL },
|
|
547
|
+
leadingIcon: {}
|
|
546
548
|
},
|
|
547
549
|
setup(__props) {
|
|
548
550
|
const sizeToIconSize = {
|
|
@@ -558,13 +560,13 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
558
560
|
name: __props.leadingIcon,
|
|
559
561
|
size: sizeToIconSize[__props.size]
|
|
560
562
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true),
|
|
561
|
-
createElementVNode("span", _hoisted_1$
|
|
563
|
+
createElementVNode("span", _hoisted_1$F, toDisplayString(__props.label), 1)
|
|
562
564
|
], 2);
|
|
563
565
|
};
|
|
564
566
|
}
|
|
565
567
|
});
|
|
566
568
|
|
|
567
|
-
const KdsBadge = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
569
|
+
const KdsBadge = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["__scopeId", "data-v-df64f7cf"]]);
|
|
568
570
|
|
|
569
571
|
const kdsColorSwatchType = {
|
|
570
572
|
LEARNER: "learner",
|
|
@@ -583,16 +585,16 @@ const kdsColorSwatchSize = {
|
|
|
583
585
|
};
|
|
584
586
|
const kdsColorSwatchSizes = Object.values(kdsColorSwatchSize);
|
|
585
587
|
|
|
586
|
-
const _hoisted_1$
|
|
587
|
-
const _sfc_main$
|
|
588
|
+
const _hoisted_1$E = ["role", "title", "aria-hidden", "aria-label"];
|
|
589
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
588
590
|
__name: "KdsColorSwatch",
|
|
589
591
|
props: {
|
|
590
592
|
color: {},
|
|
591
|
-
size: { default: kdsColorSwatchSize.SMALL },
|
|
592
|
-
title: {
|
|
593
|
+
size: { default: () => kdsColorSwatchSize.SMALL },
|
|
594
|
+
title: {}
|
|
593
595
|
},
|
|
594
596
|
setup(__props) {
|
|
595
|
-
const props = __props;
|
|
597
|
+
const props = createPropsRestProxy(__props, ["size"]);
|
|
596
598
|
const typeToTokenColor = {
|
|
597
599
|
learner: "var(--kds-color-nodes-and-variables-learner)",
|
|
598
600
|
manipulator: "var(--kds-color-nodes-and-variables-manipulator)",
|
|
@@ -614,17 +616,17 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
614
616
|
return (_ctx, _cache) => {
|
|
615
617
|
return openBlock(), createElementBlock("span", {
|
|
616
618
|
role: hasTitle.value ? "img" : "presentation",
|
|
617
|
-
class: normalizeClass(["kds-color-swatch",
|
|
619
|
+
class: normalizeClass(["kds-color-swatch", __props.size]),
|
|
618
620
|
title: hasTitle.value ? accessibleTitle.value : void 0,
|
|
619
621
|
style: normalizeStyle({ backgroundColor: backgroundColor.value }),
|
|
620
622
|
"aria-hidden": hasTitle.value ? void 0 : "true",
|
|
621
623
|
"aria-label": hasTitle.value ? accessibleTitle.value : void 0
|
|
622
|
-
}, null, 14, _hoisted_1$
|
|
624
|
+
}, null, 14, _hoisted_1$E);
|
|
623
625
|
};
|
|
624
626
|
}
|
|
625
627
|
});
|
|
626
628
|
|
|
627
|
-
const KdsColorSwatch = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
629
|
+
const KdsColorSwatch = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["__scopeId", "data-v-2e300e76"]]);
|
|
628
630
|
|
|
629
631
|
const kdsDarkModeType = {
|
|
630
632
|
LIGHT: "light",
|
|
@@ -744,44 +746,44 @@ function useKdsIsTruncated(elementRef) {
|
|
|
744
746
|
return { isTruncated };
|
|
745
747
|
}
|
|
746
748
|
|
|
747
|
-
const _hoisted_1$
|
|
748
|
-
const _hoisted_2$
|
|
749
|
-
const _sfc_main$
|
|
749
|
+
const _hoisted_1$D = ["title", "aria-label"];
|
|
750
|
+
const _hoisted_2$n = ["title"];
|
|
751
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
750
752
|
__name: "KdsLiveStatus",
|
|
751
753
|
props: {
|
|
752
754
|
status: { default: "red" },
|
|
753
755
|
size: { default: "medium" },
|
|
754
756
|
label: { default: "" },
|
|
755
|
-
title: {
|
|
757
|
+
title: {}
|
|
756
758
|
},
|
|
757
759
|
setup(__props) {
|
|
758
|
-
const props = __props;
|
|
760
|
+
const props = createPropsRestProxy(__props, ["status", "size", "label"]);
|
|
759
761
|
const accessibleTitle = computed(
|
|
760
|
-
() => props.title?.trim() || `Status is ${
|
|
762
|
+
() => props.title?.trim() || `Status is ${__props.status}`
|
|
761
763
|
);
|
|
762
764
|
const labelEl = useTemplateRef("labelEl");
|
|
763
765
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
764
766
|
return (_ctx, _cache) => {
|
|
765
767
|
return openBlock(), createElementBlock("span", {
|
|
766
|
-
class: normalizeClass(["kds-live-status",
|
|
768
|
+
class: normalizeClass(["kds-live-status", __props.status, `size-${__props.size}`]),
|
|
767
769
|
role: "img",
|
|
768
770
|
title: accessibleTitle.value,
|
|
769
771
|
"aria-label": accessibleTitle.value
|
|
770
772
|
}, [
|
|
771
773
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "dot" }, null, -1)),
|
|
772
|
-
|
|
774
|
+
__props.label ? (openBlock(), createElementBlock("span", {
|
|
773
775
|
key: 0,
|
|
774
776
|
ref_key: "labelEl",
|
|
775
777
|
ref: labelEl,
|
|
776
778
|
class: "label",
|
|
777
|
-
title: unref(isTruncated) ?
|
|
778
|
-
}, toDisplayString(
|
|
779
|
-
], 10, _hoisted_1$
|
|
779
|
+
title: unref(isTruncated) ? __props.label : void 0
|
|
780
|
+
}, toDisplayString(__props.label), 9, _hoisted_2$n)) : createCommentVNode("", true)
|
|
781
|
+
], 10, _hoisted_1$D);
|
|
780
782
|
};
|
|
781
783
|
}
|
|
782
784
|
});
|
|
783
785
|
|
|
784
|
-
const KdsLiveStatus = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
786
|
+
const KdsLiveStatus = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["__scopeId", "data-v-01555495"]]);
|
|
785
787
|
|
|
786
788
|
const kdsLiveStatusStatus = {
|
|
787
789
|
RED: "red",
|
|
@@ -797,8 +799,8 @@ const kdsLiveStatusSize = {
|
|
|
797
799
|
};
|
|
798
800
|
const kdsLiveStatusSizes = Object.values(kdsLiveStatusSize);
|
|
799
801
|
|
|
800
|
-
const _hoisted_1$
|
|
801
|
-
const _sfc_main$
|
|
802
|
+
const _hoisted_1$C = ["data-style"];
|
|
803
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
802
804
|
__name: "KdsLoadingSpinner",
|
|
803
805
|
props: {
|
|
804
806
|
size: { default: "medium" },
|
|
@@ -823,12 +825,12 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
823
825
|
cy: "60",
|
|
824
826
|
r: "50"
|
|
825
827
|
}, null, -1)
|
|
826
|
-
])], 10, _hoisted_1$
|
|
828
|
+
])], 10, _hoisted_1$C);
|
|
827
829
|
};
|
|
828
830
|
}
|
|
829
831
|
});
|
|
830
832
|
|
|
831
|
-
const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
833
|
+
const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["__scopeId", "data-v-54835dc0"]]);
|
|
832
834
|
|
|
833
835
|
const kdsLoadingSpinnerVariant = {
|
|
834
836
|
ON_PRIMARY: "onPrimary",
|
|
@@ -838,25 +840,25 @@ const kdsLoadingSpinnerVariants = Object.values(
|
|
|
838
840
|
kdsLoadingSpinnerVariant
|
|
839
841
|
);
|
|
840
842
|
|
|
841
|
-
const _hoisted_1$
|
|
842
|
-
const _hoisted_2$
|
|
843
|
+
const _hoisted_1$B = ["role"];
|
|
844
|
+
const _hoisted_2$m = { class: "header" };
|
|
843
845
|
const _hoisted_3$e = { class: "headline" };
|
|
844
846
|
const _hoisted_4$a = {
|
|
845
847
|
key: 0,
|
|
846
848
|
class: "body"
|
|
847
849
|
};
|
|
848
|
-
const _sfc_main$
|
|
850
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
849
851
|
__name: "KdsInlineMessage",
|
|
850
852
|
props: {
|
|
851
853
|
headline: {},
|
|
852
|
-
description: {
|
|
854
|
+
description: {},
|
|
853
855
|
variant: { default: "info" }
|
|
854
856
|
},
|
|
855
857
|
setup(__props) {
|
|
856
|
-
const props = __props;
|
|
857
|
-
const classes = computed(() => ["kds-inline-message",
|
|
858
|
+
const props = createPropsRestProxy(__props, ["variant"]);
|
|
859
|
+
const classes = computed(() => ["kds-inline-message", __props.variant]);
|
|
858
860
|
const iconName = computed(() => {
|
|
859
|
-
switch (
|
|
861
|
+
switch (__props.variant) {
|
|
860
862
|
case "success":
|
|
861
863
|
return "circle-success";
|
|
862
864
|
case "error":
|
|
@@ -869,14 +871,14 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
869
871
|
}
|
|
870
872
|
});
|
|
871
873
|
const role = computed(
|
|
872
|
-
() =>
|
|
874
|
+
() => __props.variant === "warning" || __props.variant === "error" ? "alert" : "status"
|
|
873
875
|
);
|
|
874
876
|
return (_ctx, _cache) => {
|
|
875
877
|
return openBlock(), createElementBlock("div", {
|
|
876
878
|
class: normalizeClass(classes.value),
|
|
877
879
|
role: role.value
|
|
878
880
|
}, [
|
|
879
|
-
createElementVNode("div", _hoisted_2$
|
|
881
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
880
882
|
createVNode(KdsIcon, {
|
|
881
883
|
class: "icon",
|
|
882
884
|
name: iconName.value,
|
|
@@ -885,12 +887,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
885
887
|
createElementVNode("div", _hoisted_3$e, toDisplayString(props.headline), 1)
|
|
886
888
|
]),
|
|
887
889
|
props.description ? (openBlock(), createElementBlock("div", _hoisted_4$a, toDisplayString(props.description), 1)) : createCommentVNode("", true)
|
|
888
|
-
], 10, _hoisted_1$
|
|
890
|
+
], 10, _hoisted_1$B);
|
|
889
891
|
};
|
|
890
892
|
}
|
|
891
893
|
});
|
|
892
894
|
|
|
893
|
-
const KdsInlineMessage = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
895
|
+
const KdsInlineMessage = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["__scopeId", "data-v-af14056f"]]);
|
|
894
896
|
|
|
895
897
|
const kdsInlineMessageVariant = {
|
|
896
898
|
ERROR: "error",
|
|
@@ -900,11 +902,11 @@ const kdsInlineMessageVariant = {
|
|
|
900
902
|
};
|
|
901
903
|
const kdsInlineMessageVariants = Object.values(kdsInlineMessageVariant);
|
|
902
904
|
|
|
903
|
-
const _hoisted_1$
|
|
905
|
+
const _hoisted_1$A = {
|
|
904
906
|
key: 0,
|
|
905
907
|
class: "label"
|
|
906
908
|
};
|
|
907
|
-
const _sfc_main$
|
|
909
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
908
910
|
__name: "BaseButton",
|
|
909
911
|
props: {
|
|
910
912
|
size: { default: "medium" },
|
|
@@ -923,34 +925,34 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
923
925
|
},
|
|
924
926
|
emits: ["click"],
|
|
925
927
|
setup(__props, { emit: __emit }) {
|
|
926
|
-
const props = __props;
|
|
928
|
+
const props = createPropsRestProxy(__props, ["component", "size", "destructive", "success", "error", "disabled", "toggled"]);
|
|
927
929
|
const emit = __emit;
|
|
928
930
|
const classes = computed(() => [
|
|
929
931
|
"button",
|
|
930
|
-
|
|
932
|
+
__props.size,
|
|
931
933
|
props.variant,
|
|
932
|
-
{ destructive:
|
|
933
|
-
{ disabled:
|
|
934
|
-
{ toggled:
|
|
935
|
-
{ success:
|
|
936
|
-
{ error:
|
|
934
|
+
{ destructive: __props.destructive },
|
|
935
|
+
{ disabled: __props.disabled },
|
|
936
|
+
{ toggled: __props.toggled },
|
|
937
|
+
{ success: __props.success },
|
|
938
|
+
{ error: __props.error }
|
|
937
939
|
]);
|
|
938
940
|
const iconSize = computed(() => {
|
|
939
|
-
if (
|
|
941
|
+
if (__props.size === "xsmall") {
|
|
940
942
|
return "small";
|
|
941
943
|
} else {
|
|
942
|
-
return
|
|
944
|
+
return __props.size;
|
|
943
945
|
}
|
|
944
946
|
});
|
|
945
947
|
function onClick(e) {
|
|
946
|
-
if (!
|
|
948
|
+
if (!__props.disabled) {
|
|
947
949
|
emit("click", e);
|
|
948
950
|
}
|
|
949
951
|
}
|
|
950
952
|
return (_ctx, _cache) => {
|
|
951
953
|
return openBlock(), createBlock(resolveDynamicComponent(__props.component), {
|
|
952
954
|
class: normalizeClass(classes.value),
|
|
953
|
-
disabled:
|
|
955
|
+
disabled: __props.disabled,
|
|
954
956
|
title: props.title,
|
|
955
957
|
"aria-label": props.ariaLabel,
|
|
956
958
|
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
|
|
@@ -963,7 +965,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
963
965
|
size: iconSize.value
|
|
964
966
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
965
967
|
], true),
|
|
966
|
-
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
968
|
+
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$A, toDisplayString(props.label), 1)) : createCommentVNode("", true),
|
|
967
969
|
props.trailingIcon && props.label ? (openBlock(), createBlock(KdsIcon, {
|
|
968
970
|
key: 1,
|
|
969
971
|
name: props.trailingIcon,
|
|
@@ -976,9 +978,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
976
978
|
}
|
|
977
979
|
});
|
|
978
980
|
|
|
979
|
-
const BaseButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
981
|
+
const BaseButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["__scopeId", "data-v-20cfd7e3"]]);
|
|
980
982
|
|
|
981
|
-
const _sfc_main$
|
|
983
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
982
984
|
__name: "KdsButton",
|
|
983
985
|
props: {
|
|
984
986
|
size: {},
|
|
@@ -993,12 +995,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
993
995
|
},
|
|
994
996
|
emits: ["click"],
|
|
995
997
|
setup(__props, { emit: __emit }) {
|
|
996
|
-
const props = __props;
|
|
998
|
+
const props = createPropsRestProxy(__props, ["variant"]);
|
|
997
999
|
const emit = __emit;
|
|
998
1000
|
return (_ctx, _cache) => {
|
|
999
1001
|
return openBlock(), createBlock(BaseButton, mergeProps(props, {
|
|
1002
|
+
variant: __props.variant,
|
|
1000
1003
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
|
|
1001
|
-
}), null, 16);
|
|
1004
|
+
}), null, 16, ["variant"]);
|
|
1002
1005
|
};
|
|
1003
1006
|
}
|
|
1004
1007
|
});
|
|
@@ -1031,7 +1034,7 @@ const resolveNuxtLinkComponent = () => {
|
|
|
1031
1034
|
return fallbackComponent;
|
|
1032
1035
|
};
|
|
1033
1036
|
|
|
1034
|
-
const _sfc_main$
|
|
1037
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
1035
1038
|
__name: "KdsLinkButton",
|
|
1036
1039
|
props: {
|
|
1037
1040
|
size: {},
|
|
@@ -1044,13 +1047,13 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1044
1047
|
ariaLabel: {},
|
|
1045
1048
|
destructive: { type: Boolean },
|
|
1046
1049
|
to: {},
|
|
1047
|
-
download: { type: Boolean
|
|
1050
|
+
download: { type: Boolean },
|
|
1048
1051
|
target: { default: null },
|
|
1049
1052
|
rel: { default: null }
|
|
1050
1053
|
},
|
|
1051
1054
|
emits: ["click"],
|
|
1052
1055
|
setup(__props, { emit: __emit }) {
|
|
1053
|
-
const props = __props;
|
|
1056
|
+
const props = createPropsRestProxy(__props, ["variant", "download", "rel", "target"]);
|
|
1054
1057
|
const component = computed(() => {
|
|
1055
1058
|
if (props.disabled) {
|
|
1056
1059
|
return "button";
|
|
@@ -1060,14 +1063,18 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1060
1063
|
const emit = __emit;
|
|
1061
1064
|
return (_ctx, _cache) => {
|
|
1062
1065
|
return openBlock(), createBlock(BaseButton, mergeProps(props, {
|
|
1066
|
+
variant: __props.variant,
|
|
1067
|
+
download: __props.download,
|
|
1068
|
+
rel: __props.rel,
|
|
1069
|
+
target: __props.target,
|
|
1063
1070
|
component: component.value,
|
|
1064
1071
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
|
|
1065
|
-
}), null, 16, ["component"]);
|
|
1072
|
+
}), null, 16, ["variant", "download", "rel", "target", "component"]);
|
|
1066
1073
|
};
|
|
1067
1074
|
}
|
|
1068
1075
|
});
|
|
1069
1076
|
|
|
1070
|
-
const _sfc_main$
|
|
1077
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
1071
1078
|
__name: "KdsToggleButton",
|
|
1072
1079
|
props: /* @__PURE__ */ mergeModels({
|
|
1073
1080
|
size: {},
|
|
@@ -1084,14 +1091,15 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1084
1091
|
}),
|
|
1085
1092
|
emits: ["update:modelValue"],
|
|
1086
1093
|
setup(__props) {
|
|
1087
|
-
const props = __props;
|
|
1094
|
+
const props = createPropsRestProxy(__props, ["variant"]);
|
|
1088
1095
|
const modelValue = useModel(__props, "modelValue");
|
|
1089
1096
|
return (_ctx, _cache) => {
|
|
1090
1097
|
return openBlock(), createBlock(BaseButton, mergeProps(props, {
|
|
1098
|
+
variant: __props.variant,
|
|
1091
1099
|
toggled: modelValue.value,
|
|
1092
1100
|
"aria-pressed": modelValue.value,
|
|
1093
1101
|
onClick: _cache[0] || (_cache[0] = ($event) => modelValue.value = !modelValue.value)
|
|
1094
|
-
}), null, 16, ["toggled", "aria-pressed"]);
|
|
1102
|
+
}), null, 16, ["variant", "toggled", "aria-pressed"]);
|
|
1095
1103
|
};
|
|
1096
1104
|
}
|
|
1097
1105
|
});
|
|
@@ -1102,9 +1110,9 @@ const kdsToggleButtonVariant = {
|
|
|
1102
1110
|
};
|
|
1103
1111
|
const kdsToggleButtonVariants = Object.values(kdsToggleButtonVariant);
|
|
1104
1112
|
|
|
1105
|
-
const _hoisted_1$
|
|
1106
|
-
const _hoisted_2$
|
|
1107
|
-
const _sfc_main$
|
|
1113
|
+
const _hoisted_1$z = ["data-visible"];
|
|
1114
|
+
const _hoisted_2$l = ["data-visible"];
|
|
1115
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
1108
1116
|
__name: "KdsProgressButton",
|
|
1109
1117
|
props: /* @__PURE__ */ mergeModels({
|
|
1110
1118
|
size: { default: "medium" },
|
|
@@ -1122,14 +1130,14 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1122
1130
|
}),
|
|
1123
1131
|
emits: /* @__PURE__ */ mergeModels(["click"], ["update:state"]),
|
|
1124
1132
|
setup(__props, { emit: __emit }) {
|
|
1125
|
-
const props = __props;
|
|
1133
|
+
const props = createPropsRestProxy(__props, ["variant", "size", "disabled"]);
|
|
1126
1134
|
const emit = __emit;
|
|
1127
1135
|
const state = useModel(__props, "state");
|
|
1128
1136
|
const iconSize = computed(() => {
|
|
1129
|
-
if (
|
|
1137
|
+
if (__props.size === "xsmall") {
|
|
1130
1138
|
return "small";
|
|
1131
1139
|
}
|
|
1132
|
-
return
|
|
1140
|
+
return __props.size;
|
|
1133
1141
|
});
|
|
1134
1142
|
function onClick(event) {
|
|
1135
1143
|
event.preventDefault();
|
|
@@ -1139,15 +1147,13 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1139
1147
|
emit("click", event);
|
|
1140
1148
|
}
|
|
1141
1149
|
const baseButtonProps = computed(() => ({
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1150
|
+
...props,
|
|
1151
|
+
variant: __props.variant,
|
|
1152
|
+
size: __props.size,
|
|
1153
|
+
disabled: __props.disabled,
|
|
1145
1154
|
success: state.value === "success",
|
|
1146
1155
|
error: state.value === "error",
|
|
1147
|
-
title: props.ariaLabel
|
|
1148
|
-
label: props.label,
|
|
1149
|
-
leadingIcon: props.leadingIcon,
|
|
1150
|
-
ariaLabel: props.ariaLabel
|
|
1156
|
+
title: props.ariaLabel
|
|
1151
1157
|
}));
|
|
1152
1158
|
return (_ctx, _cache) => {
|
|
1153
1159
|
return openBlock(), createBlock(BaseButton, mergeProps(baseButtonProps.value, {
|
|
@@ -1167,16 +1173,16 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1167
1173
|
name: props.leadingIcon,
|
|
1168
1174
|
size: iconSize.value
|
|
1169
1175
|
}, null, 8, ["name", "size"])
|
|
1170
|
-
], 8, _hoisted_1$
|
|
1176
|
+
], 8, _hoisted_1$z),
|
|
1171
1177
|
createElementVNode("span", {
|
|
1172
1178
|
class: "spinner",
|
|
1173
1179
|
"data-visible": state.value === "progress"
|
|
1174
1180
|
}, [
|
|
1175
1181
|
createVNode(KdsLoadingSpinner, {
|
|
1176
1182
|
size: iconSize.value,
|
|
1177
|
-
variant:
|
|
1183
|
+
variant: __props.variant === "filled" ? "onPrimary" : "onSurface"
|
|
1178
1184
|
}, null, 8, ["size", "variant"])
|
|
1179
|
-
], 8, _hoisted_2$
|
|
1185
|
+
], 8, _hoisted_2$l)
|
|
1180
1186
|
], 2)
|
|
1181
1187
|
]),
|
|
1182
1188
|
_: 1
|
|
@@ -1185,7 +1191,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1185
1191
|
}
|
|
1186
1192
|
});
|
|
1187
1193
|
|
|
1188
|
-
const KdsProgressButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1194
|
+
const KdsProgressButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-d38d7ade"]]);
|
|
1189
1195
|
|
|
1190
1196
|
const kdsProgressButtonState = {
|
|
1191
1197
|
DEFAULT: "default",
|
|
@@ -1195,8 +1201,8 @@ const kdsProgressButtonState = {
|
|
|
1195
1201
|
};
|
|
1196
1202
|
const kdsProgressButtonStates = Object.values(kdsProgressButtonState);
|
|
1197
1203
|
|
|
1198
|
-
const _hoisted_1$
|
|
1199
|
-
const _hoisted_2$
|
|
1204
|
+
const _hoisted_1$y = { class: "kds-empty-state" };
|
|
1205
|
+
const _hoisted_2$k = { class: "kds-empty-state-headline" };
|
|
1200
1206
|
const _hoisted_3$d = {
|
|
1201
1207
|
key: 1,
|
|
1202
1208
|
class: "kds-empty-state-description"
|
|
@@ -1205,7 +1211,7 @@ const _hoisted_4$9 = {
|
|
|
1205
1211
|
key: 2,
|
|
1206
1212
|
class: "kds-empty-state-action"
|
|
1207
1213
|
};
|
|
1208
|
-
const _sfc_main$
|
|
1214
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
1209
1215
|
__name: "KdsEmptyState",
|
|
1210
1216
|
props: {
|
|
1211
1217
|
headline: {},
|
|
@@ -1221,10 +1227,10 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1221
1227
|
() => props.button && "to" in props.button && props.button.to !== void 0
|
|
1222
1228
|
);
|
|
1223
1229
|
const buttonComponent = computed(
|
|
1224
|
-
() => isLinkButton.value ? _sfc_main$
|
|
1230
|
+
() => isLinkButton.value ? _sfc_main$R : _sfc_main$S
|
|
1225
1231
|
);
|
|
1226
1232
|
return (_ctx, _cache) => {
|
|
1227
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1233
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
1228
1234
|
props.loadingSpinner ? (openBlock(), createBlock(KdsLoadingSpinner, {
|
|
1229
1235
|
key: 0,
|
|
1230
1236
|
"data-testid": "loading-spinner",
|
|
@@ -1232,7 +1238,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1232
1238
|
variant: "onSurface",
|
|
1233
1239
|
"aria-hidden": "true"
|
|
1234
1240
|
})) : createCommentVNode("", true),
|
|
1235
|
-
createElementVNode("p", _hoisted_2$
|
|
1241
|
+
createElementVNode("p", _hoisted_2$k, toDisplayString(props.headline), 1),
|
|
1236
1242
|
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$d, toDisplayString(props.description), 1)) : createCommentVNode("", true),
|
|
1237
1243
|
props.button ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
|
|
1238
1244
|
(openBlock(), createBlock(resolveDynamicComponent(buttonComponent.value), mergeProps(props.button, {
|
|
@@ -1244,9 +1250,9 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1244
1250
|
}
|
|
1245
1251
|
});
|
|
1246
1252
|
|
|
1247
|
-
const KdsEmptyState = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1253
|
+
const KdsEmptyState = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["__scopeId", "data-v-02149081"]]);
|
|
1248
1254
|
|
|
1249
|
-
const _sfc_main$
|
|
1255
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
1250
1256
|
__name: "ListItemAccessory",
|
|
1251
1257
|
props: {
|
|
1252
1258
|
accessory: {},
|
|
@@ -1254,7 +1260,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1254
1260
|
disabled: { type: Boolean, default: false }
|
|
1255
1261
|
},
|
|
1256
1262
|
setup(__props) {
|
|
1257
|
-
const props = __props;
|
|
1263
|
+
const props = createPropsRestProxy(__props, ["disabled"]);
|
|
1258
1264
|
return (_ctx, _cache) => {
|
|
1259
1265
|
return props.accessory.type === "avatar" ? (openBlock(), createBlock(KdsAvatar, {
|
|
1260
1266
|
key: 0,
|
|
@@ -1271,12 +1277,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1271
1277
|
key: 2,
|
|
1272
1278
|
name: props.accessory.name,
|
|
1273
1279
|
size: props.size,
|
|
1274
|
-
disabled:
|
|
1280
|
+
disabled: __props.disabled
|
|
1275
1281
|
}, null, 8, ["name", "size", "disabled"])) : props.accessory.type === "dataType" ? (openBlock(), createBlock(KdsDataType, {
|
|
1276
1282
|
key: 3,
|
|
1277
1283
|
"icon-name": props.accessory.name,
|
|
1278
1284
|
size: props.size,
|
|
1279
|
-
disabled:
|
|
1285
|
+
disabled: __props.disabled
|
|
1280
1286
|
}, null, 8, ["icon-name", "size", "disabled"])) : props.accessory.type === "liveStatus" ? (openBlock(), createBlock(unref(KdsLiveStatus), {
|
|
1281
1287
|
key: 4,
|
|
1282
1288
|
status: props.accessory.status,
|
|
@@ -1297,8 +1303,8 @@ const kdsListItemVariant = {
|
|
|
1297
1303
|
LARGE: "large"
|
|
1298
1304
|
};
|
|
1299
1305
|
|
|
1300
|
-
const _hoisted_1$
|
|
1301
|
-
const _hoisted_2$
|
|
1306
|
+
const _hoisted_1$x = ["id", "role", "aria-selected", "aria-disabled"];
|
|
1307
|
+
const _hoisted_2$j = {
|
|
1302
1308
|
key: 0,
|
|
1303
1309
|
class: "accessory"
|
|
1304
1310
|
};
|
|
@@ -1318,16 +1324,16 @@ const _hoisted_9 = {
|
|
|
1318
1324
|
key: 2,
|
|
1319
1325
|
class: "trailing-item-reserve-space"
|
|
1320
1326
|
};
|
|
1321
|
-
const _sfc_main$
|
|
1327
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
1322
1328
|
__name: "KdsListItem",
|
|
1323
1329
|
props: {
|
|
1324
1330
|
id: {},
|
|
1325
1331
|
label: {},
|
|
1326
|
-
accessory: {
|
|
1327
|
-
subText: {
|
|
1328
|
-
variant: { default: kdsListItemVariant.SMALL },
|
|
1329
|
-
shortcut: {
|
|
1330
|
-
trailingIcon: {
|
|
1332
|
+
accessory: {},
|
|
1333
|
+
subText: {},
|
|
1334
|
+
variant: { default: () => kdsListItemVariant.SMALL },
|
|
1335
|
+
shortcut: {},
|
|
1336
|
+
trailingIcon: {},
|
|
1331
1337
|
special: { type: Boolean, default: false },
|
|
1332
1338
|
selected: { type: Boolean, default: false },
|
|
1333
1339
|
active: { type: Boolean, default: false },
|
|
@@ -1337,13 +1343,13 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1337
1343
|
},
|
|
1338
1344
|
emits: ["click"],
|
|
1339
1345
|
setup(__props, { emit: __emit }) {
|
|
1340
|
-
const props = __props;
|
|
1346
|
+
const props = createPropsRestProxy(__props, ["variant", "special", "selected", "active", "missing", "disabled", "role"]);
|
|
1341
1347
|
const emit = __emit;
|
|
1342
1348
|
const accessorySize = computed(
|
|
1343
|
-
() =>
|
|
1349
|
+
() => __props.variant === kdsListItemVariant.LARGE ? kdsListItemAccessorySize.LARGE : kdsListItemAccessorySize.SMALL
|
|
1344
1350
|
);
|
|
1345
1351
|
const onClick = (event) => {
|
|
1346
|
-
if (
|
|
1352
|
+
if (__props.disabled) {
|
|
1347
1353
|
event.stopPropagation();
|
|
1348
1354
|
event.preventDefault();
|
|
1349
1355
|
return;
|
|
@@ -1357,26 +1363,26 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1357
1363
|
return (_ctx, _cache) => {
|
|
1358
1364
|
return openBlock(), createElementBlock("div", {
|
|
1359
1365
|
id: props.id,
|
|
1360
|
-
role:
|
|
1361
|
-
"aria-selected":
|
|
1362
|
-
"aria-disabled":
|
|
1366
|
+
role: __props.role,
|
|
1367
|
+
"aria-selected": __props.role === "option" ? __props.selected : void 0,
|
|
1368
|
+
"aria-disabled": __props.disabled,
|
|
1363
1369
|
class: normalizeClass([
|
|
1364
1370
|
"kds-list-item",
|
|
1365
|
-
|
|
1371
|
+
__props.variant,
|
|
1366
1372
|
{
|
|
1367
|
-
selected:
|
|
1368
|
-
active:
|
|
1369
|
-
missing:
|
|
1370
|
-
disabled:
|
|
1373
|
+
selected: __props.selected,
|
|
1374
|
+
active: __props.active,
|
|
1375
|
+
missing: __props.missing,
|
|
1376
|
+
disabled: __props.disabled
|
|
1371
1377
|
}
|
|
1372
1378
|
]),
|
|
1373
1379
|
onClick
|
|
1374
1380
|
}, [
|
|
1375
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1376
|
-
createVNode(_sfc_main$
|
|
1381
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$j, [
|
|
1382
|
+
createVNode(_sfc_main$N, {
|
|
1377
1383
|
accessory: props.accessory,
|
|
1378
1384
|
size: accessorySize.value,
|
|
1379
|
-
disabled:
|
|
1385
|
+
disabled: __props.disabled
|
|
1380
1386
|
}, null, 8, ["accessory", "size", "disabled"])
|
|
1381
1387
|
])) : createCommentVNode("", true),
|
|
1382
1388
|
createElementVNode("span", _hoisted_3$c, [
|
|
@@ -1386,9 +1392,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1386
1392
|
class: "label",
|
|
1387
1393
|
title: unref(isLabelTruncated) ? props.label : void 0
|
|
1388
1394
|
}, [
|
|
1389
|
-
|
|
1395
|
+
__props.missing ? (openBlock(), createElementBlock("span", _hoisted_5$6, "(Missing) ")) : createCommentVNode("", true),
|
|
1390
1396
|
createElementVNode("span", {
|
|
1391
|
-
class: normalizeClass({ special:
|
|
1397
|
+
class: normalizeClass({ special: __props.special })
|
|
1392
1398
|
}, toDisplayString(props.label), 3)
|
|
1393
1399
|
], 8, _hoisted_4$8),
|
|
1394
1400
|
props.subText ? (openBlock(), createElementBlock("span", {
|
|
@@ -1407,29 +1413,29 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1407
1413
|
size: "small"
|
|
1408
1414
|
}, null, 8, ["name"])) : (openBlock(), createElementBlock("span", _hoisted_9))
|
|
1409
1415
|
])
|
|
1410
|
-
], 10, _hoisted_1$
|
|
1416
|
+
], 10, _hoisted_1$x);
|
|
1411
1417
|
};
|
|
1412
1418
|
}
|
|
1413
1419
|
});
|
|
1414
1420
|
|
|
1415
|
-
const KdsListItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1421
|
+
const KdsListItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["__scopeId", "data-v-3dac6df5"]]);
|
|
1416
1422
|
|
|
1417
|
-
const _sfc_main$
|
|
1423
|
+
const _sfc_main$L = { };
|
|
1418
1424
|
|
|
1419
|
-
const _hoisted_1$
|
|
1425
|
+
const _hoisted_1$w = { class: "kds-list-item-divider" };
|
|
1420
1426
|
|
|
1421
1427
|
function _sfc_render$8(_ctx, _cache) {
|
|
1422
|
-
return (openBlock(), createElementBlock("hr", _hoisted_1$
|
|
1428
|
+
return (openBlock(), createElementBlock("hr", _hoisted_1$w))
|
|
1423
1429
|
}
|
|
1424
|
-
const ListItemDivider = /*#__PURE__*/_export_sfc$1(_sfc_main$
|
|
1430
|
+
const ListItemDivider = /*#__PURE__*/_export_sfc$1(_sfc_main$L, [['render',_sfc_render$8],['__scopeId',"data-v-3ee92695"]]);
|
|
1425
1431
|
|
|
1426
|
-
const _hoisted_1$
|
|
1427
|
-
const _hoisted_2$
|
|
1432
|
+
const _hoisted_1$v = { class: "kds-list-item-section-title" };
|
|
1433
|
+
const _hoisted_2$i = {
|
|
1428
1434
|
key: 0,
|
|
1429
1435
|
class: "icon"
|
|
1430
1436
|
};
|
|
1431
1437
|
const _hoisted_3$b = ["title"];
|
|
1432
|
-
const _sfc_main$
|
|
1438
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
1433
1439
|
__name: "ListItemSectionTitle",
|
|
1434
1440
|
props: {
|
|
1435
1441
|
label: {},
|
|
@@ -1440,8 +1446,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
1440
1446
|
const labelEl = useTemplateRef("labelEl");
|
|
1441
1447
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
1442
1448
|
return (_ctx, _cache) => {
|
|
1443
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1444
|
-
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1449
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
1450
|
+
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$i, [
|
|
1445
1451
|
createVNode(KdsIcon, {
|
|
1446
1452
|
name: props.leadingIcon,
|
|
1447
1453
|
size: "small"
|
|
@@ -1458,16 +1464,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
1458
1464
|
}
|
|
1459
1465
|
});
|
|
1460
1466
|
|
|
1461
|
-
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1467
|
+
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["__scopeId", "data-v-53382531"]]);
|
|
1462
1468
|
|
|
1463
|
-
const _hoisted_1$
|
|
1464
|
-
const _hoisted_2$
|
|
1469
|
+
const _hoisted_1$u = ["role", "aria-busy", "aria-label", "aria-activedescendant", "tabindex"];
|
|
1470
|
+
const _hoisted_2$h = ["role"];
|
|
1465
1471
|
const loadingStateText = "Loading entries";
|
|
1466
|
-
const _sfc_main$
|
|
1472
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
1467
1473
|
__name: "KdsListContainer",
|
|
1468
1474
|
props: {
|
|
1469
1475
|
possibleValues: {},
|
|
1470
|
-
variant: { default: kdsListItemVariant.SMALL },
|
|
1476
|
+
variant: { default: () => kdsListItemVariant.SMALL },
|
|
1471
1477
|
emptyText: { default: "" },
|
|
1472
1478
|
loading: { type: Boolean, default: false },
|
|
1473
1479
|
ariaLabel: {},
|
|
@@ -1477,7 +1483,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1477
1483
|
},
|
|
1478
1484
|
emits: ["itemClick"],
|
|
1479
1485
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1480
|
-
const props = __props;
|
|
1486
|
+
const props = createPropsRestProxy(__props, ["emptyText", "variant", "loading", "role", "allowNoSelection"]);
|
|
1481
1487
|
const emit = __emit;
|
|
1482
1488
|
const idPrefix = useId();
|
|
1483
1489
|
const emptyOptionId = `${idPrefix}-empty`;
|
|
@@ -1488,7 +1494,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1488
1494
|
return elementId?.slice(idPrefix.length + 1);
|
|
1489
1495
|
}
|
|
1490
1496
|
const prefixedValues = computed(
|
|
1491
|
-
() => (
|
|
1497
|
+
() => (__props.loading ? [] : props.possibleValues).map((o) => ({
|
|
1492
1498
|
...o,
|
|
1493
1499
|
id: `${idPrefix}-${o.id}`
|
|
1494
1500
|
}))
|
|
@@ -1501,7 +1507,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1501
1507
|
const isFocused = ref(false);
|
|
1502
1508
|
const containerEl = useTemplateRef("containerEl");
|
|
1503
1509
|
const listItemRole = computed(() => {
|
|
1504
|
-
return
|
|
1510
|
+
return __props.role === "listbox" ? "option" : "menuitem";
|
|
1505
1511
|
});
|
|
1506
1512
|
function scrollToView() {
|
|
1507
1513
|
if (!activeId.value || !containerEl.value) {
|
|
@@ -1546,8 +1552,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1546
1552
|
const stillValid = values.some((o) => o.id === activeId.value);
|
|
1547
1553
|
return stillValid ? activeId.value : firstEnabledOrEmpty(values);
|
|
1548
1554
|
};
|
|
1549
|
-
watch([enabledValues, () =>
|
|
1550
|
-
activeId.value =
|
|
1555
|
+
watch([enabledValues, () => __props.loading], ([values, isLoading]) => {
|
|
1556
|
+
activeId.value = isLoading ? emptyOptionId : getResetActiveId(values);
|
|
1551
1557
|
const lastIdStillValid = values.some((o) => o.id === lastActiveId.value);
|
|
1552
1558
|
if (!lastIdStillValid) {
|
|
1553
1559
|
lastActiveId.value = void 0;
|
|
@@ -1558,7 +1564,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1558
1564
|
const findEnabledIndex = (id) => id === void 0 ? -1 : enabledValues.value.findIndex((o) => o.id === id);
|
|
1559
1565
|
const handleFocus = () => {
|
|
1560
1566
|
isFocused.value = true;
|
|
1561
|
-
if (activeId.value === void 0 && !
|
|
1567
|
+
if (activeId.value === void 0 && !__props.allowNoSelection) {
|
|
1562
1568
|
activeId.value = lastActiveId.value ?? enabledValues.value[0]?.id;
|
|
1563
1569
|
}
|
|
1564
1570
|
};
|
|
@@ -1572,12 +1578,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1572
1578
|
return enabledValues.value[0].id;
|
|
1573
1579
|
}
|
|
1574
1580
|
if (currentIndex >= enabledValues.value.length - 1) {
|
|
1575
|
-
return
|
|
1581
|
+
return __props.allowNoSelection ? void 0 : enabledValues.value[0].id;
|
|
1576
1582
|
}
|
|
1577
1583
|
return enabledValues.value[currentIndex + 1].id;
|
|
1578
1584
|
};
|
|
1579
1585
|
const moveUp = (currentIndex) => {
|
|
1580
|
-
if (
|
|
1586
|
+
if (__props.allowNoSelection && currentIndex === 0) {
|
|
1581
1587
|
return void 0;
|
|
1582
1588
|
}
|
|
1583
1589
|
if (currentIndex <= 0) {
|
|
@@ -1639,8 +1645,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1639
1645
|
return openBlock(), createElementBlock("div", mergeProps(_ctx.$attrs, {
|
|
1640
1646
|
ref_key: "containerEl",
|
|
1641
1647
|
ref: containerEl,
|
|
1642
|
-
role:
|
|
1643
|
-
"aria-busy":
|
|
1648
|
+
role: __props.role,
|
|
1649
|
+
"aria-busy": __props.loading,
|
|
1644
1650
|
"aria-label": props.ariaLabel,
|
|
1645
1651
|
"aria-activedescendant": !props.controlledExternally && activeId.value ? activeId.value : void 0,
|
|
1646
1652
|
class: ["kds-list-container", { standalone: !props.controlledExternally }],
|
|
@@ -1672,7 +1678,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1672
1678
|
active: activeId.value === item.id,
|
|
1673
1679
|
special: item.special,
|
|
1674
1680
|
missing: item.missing,
|
|
1675
|
-
variant:
|
|
1681
|
+
variant: __props.variant,
|
|
1676
1682
|
"trailing-icon": item.missing && !item.disabled ? "trash" : item.selected ? "checkmark" : void 0,
|
|
1677
1683
|
role: listItemRole.value,
|
|
1678
1684
|
onMousedown: _cache[0] || (_cache[0] = ($event) => props.controlledExternally && $event.preventDefault()),
|
|
@@ -1694,32 +1700,32 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1694
1700
|
class: "kds-list-container-empty"
|
|
1695
1701
|
}, [
|
|
1696
1702
|
createVNode(KdsEmptyState, {
|
|
1697
|
-
headline:
|
|
1698
|
-
"loading-spinner":
|
|
1703
|
+
headline: __props.loading ? loadingStateText : __props.emptyText,
|
|
1704
|
+
"loading-spinner": __props.loading
|
|
1699
1705
|
}, null, 8, ["headline", "loading-spinner"])
|
|
1700
|
-
], 8, _hoisted_2$
|
|
1701
|
-
], 16, _hoisted_1$
|
|
1706
|
+
], 8, _hoisted_2$h)) : createCommentVNode("", true)
|
|
1707
|
+
], 16, _hoisted_1$u);
|
|
1702
1708
|
};
|
|
1703
1709
|
}
|
|
1704
1710
|
});
|
|
1705
1711
|
|
|
1706
|
-
const KdsListContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1712
|
+
const KdsListContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["__scopeId", "data-v-710126a1"]]);
|
|
1707
1713
|
|
|
1708
1714
|
const KdsListContainer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
1709
1715
|
__proto__: null,
|
|
1710
1716
|
default: KdsListContainer
|
|
1711
1717
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
1712
1718
|
|
|
1713
|
-
const _hoisted_1$
|
|
1714
|
-
const _hoisted_2$
|
|
1719
|
+
const _hoisted_1$t = ["id", "popover", "role"];
|
|
1720
|
+
const _hoisted_2$g = {
|
|
1715
1721
|
key: 0,
|
|
1716
1722
|
class: "kds-popover-default-content"
|
|
1717
1723
|
};
|
|
1718
|
-
const _sfc_main$
|
|
1724
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
1719
1725
|
__name: "KdsPopover",
|
|
1720
1726
|
props: /* @__PURE__ */ mergeModels({
|
|
1721
1727
|
placement: { default: "bottom-left" },
|
|
1722
|
-
role: {
|
|
1728
|
+
role: {},
|
|
1723
1729
|
popoverType: { default: "auto" },
|
|
1724
1730
|
fullWidth: { type: Boolean, default: false },
|
|
1725
1731
|
content: {}
|
|
@@ -1729,7 +1735,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
1729
1735
|
}),
|
|
1730
1736
|
emits: ["update:modelValue"],
|
|
1731
1737
|
setup(__props, { expose: __expose }) {
|
|
1732
|
-
const props = __props;
|
|
1738
|
+
const props = createPropsRestProxy(__props, ["placement", "popoverType", "fullWidth"]);
|
|
1733
1739
|
const open = useModel(__props, "modelValue");
|
|
1734
1740
|
const popoverEl = useTemplateRef("popoverEl");
|
|
1735
1741
|
const popoverId = useId();
|
|
@@ -1751,28 +1757,28 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
1751
1757
|
id: unref(popoverId),
|
|
1752
1758
|
ref_key: "popoverEl",
|
|
1753
1759
|
ref: popoverEl,
|
|
1754
|
-
class: normalizeClass(["kds-popover", ["floating",
|
|
1755
|
-
popover:
|
|
1760
|
+
class: normalizeClass(["kds-popover", ["floating", __props.placement, { "full-width": __props.fullWidth }]]),
|
|
1761
|
+
popover: __props.popoverType,
|
|
1756
1762
|
style: normalizeStyle({ "position-anchor": anchorName }),
|
|
1757
1763
|
role: props.role,
|
|
1758
1764
|
onToggle
|
|
1759
1765
|
}, [
|
|
1760
1766
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1761
|
-
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1767
|
+
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(props.content), 1)) : createCommentVNode("", true)
|
|
1762
1768
|
], true)
|
|
1763
|
-
], 46, _hoisted_1$
|
|
1769
|
+
], 46, _hoisted_1$t);
|
|
1764
1770
|
};
|
|
1765
1771
|
}
|
|
1766
1772
|
});
|
|
1767
1773
|
|
|
1768
|
-
const KdsPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1774
|
+
const KdsPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["__scopeId", "data-v-914e6d2e"]]);
|
|
1769
1775
|
|
|
1770
1776
|
const KdsPopover$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
1771
1777
|
__proto__: null,
|
|
1772
1778
|
default: KdsPopover
|
|
1773
1779
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
1774
1780
|
|
|
1775
|
-
const _sfc_main$
|
|
1781
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
1776
1782
|
...{
|
|
1777
1783
|
inheritAttrs: false
|
|
1778
1784
|
},
|
|
@@ -1787,32 +1793,32 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1787
1793
|
trailingIcon: {},
|
|
1788
1794
|
ariaLabel: {},
|
|
1789
1795
|
items: {},
|
|
1790
|
-
menuMaxHeight: {
|
|
1796
|
+
menuMaxHeight: {}
|
|
1791
1797
|
},
|
|
1792
1798
|
emits: ["itemClick"],
|
|
1793
1799
|
setup(__props, { emit: __emit }) {
|
|
1794
|
-
const props = __props;
|
|
1800
|
+
const props = createPropsRestProxy(__props, ["variant", "menuMaxHeight"]);
|
|
1795
1801
|
const attrs = useAttrs();
|
|
1796
1802
|
const emit = __emit;
|
|
1797
1803
|
const toggleButtonProps = computed(() => {
|
|
1798
|
-
const { items: _items,
|
|
1804
|
+
const { items: _items, ...rest } = props;
|
|
1799
1805
|
const {
|
|
1800
1806
|
modelValue: _modelValue,
|
|
1801
1807
|
"onUpdate:modelValue": _onUpdateModelValue,
|
|
1802
1808
|
...safeAttrs
|
|
1803
1809
|
} = attrs;
|
|
1804
|
-
return { ...safeAttrs, ...rest };
|
|
1810
|
+
return { ...safeAttrs, ...rest, variant: __props.variant };
|
|
1805
1811
|
});
|
|
1806
1812
|
const isMenuOpen = ref(false);
|
|
1807
1813
|
const popoverEl = useTemplateRef("popoverEl");
|
|
1808
1814
|
const listContainerEl = useTemplateRef("listContainerEl");
|
|
1809
1815
|
const menuId = useId();
|
|
1810
1816
|
const maxHeightStyle = computed(() => {
|
|
1811
|
-
if (!
|
|
1817
|
+
if (!__props.menuMaxHeight) {
|
|
1812
1818
|
return {};
|
|
1813
1819
|
}
|
|
1814
1820
|
return {
|
|
1815
|
-
maxHeight:
|
|
1821
|
+
maxHeight: __props.menuMaxHeight,
|
|
1816
1822
|
overflowY: "auto"
|
|
1817
1823
|
};
|
|
1818
1824
|
});
|
|
@@ -1825,7 +1831,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1825
1831
|
};
|
|
1826
1832
|
return (_ctx, _cache) => {
|
|
1827
1833
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
1828
|
-
createVNode(_sfc_main$
|
|
1834
|
+
createVNode(_sfc_main$Q, mergeProps({
|
|
1829
1835
|
modelValue: isMenuOpen.value,
|
|
1830
1836
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isMenuOpen.value = $event)
|
|
1831
1837
|
}, toggleButtonProps.value, {
|
|
@@ -1870,7 +1876,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1870
1876
|
}
|
|
1871
1877
|
});
|
|
1872
1878
|
|
|
1873
|
-
const KdsMenuButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1879
|
+
const KdsMenuButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["__scopeId", "data-v-0257e1cd"]]);
|
|
1874
1880
|
|
|
1875
1881
|
const kdsButtonSize = {
|
|
1876
1882
|
XSMALL: "xsmall",
|
|
@@ -1886,26 +1892,26 @@ const kdsButtonVariant = {
|
|
|
1886
1892
|
};
|
|
1887
1893
|
const kdsButtonVariants = Object.values(kdsButtonVariant);
|
|
1888
1894
|
|
|
1889
|
-
const _hoisted_1$
|
|
1890
|
-
const _hoisted_2$
|
|
1891
|
-
const _sfc_main$
|
|
1895
|
+
const _hoisted_1$s = { class: "kds-label-wrapper" };
|
|
1896
|
+
const _hoisted_2$f = ["id", "for", "title"];
|
|
1897
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
1892
1898
|
__name: "KdsLabel",
|
|
1893
1899
|
props: {
|
|
1894
1900
|
label: {},
|
|
1895
1901
|
id: {},
|
|
1896
1902
|
for: {},
|
|
1897
|
-
description: {
|
|
1903
|
+
description: {},
|
|
1898
1904
|
showDescriptionButton: { type: Boolean, default: false }
|
|
1899
1905
|
},
|
|
1900
1906
|
setup(__props) {
|
|
1901
|
-
const props = __props;
|
|
1907
|
+
const props = createPropsRestProxy(__props, ["showDescriptionButton"]);
|
|
1902
1908
|
const KdsInfoToggleButton = defineAsyncComponent(
|
|
1903
1909
|
() => Promise.resolve().then(() => KdsInfoToggleButton$1)
|
|
1904
1910
|
);
|
|
1905
1911
|
const labelEl = useTemplateRef("labelEl");
|
|
1906
1912
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
1907
1913
|
return (_ctx, _cache) => {
|
|
1908
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1914
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
1909
1915
|
createElementVNode("label", {
|
|
1910
1916
|
id: props.id,
|
|
1911
1917
|
ref_key: "labelEl",
|
|
@@ -1913,22 +1919,22 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1913
1919
|
for: props.for,
|
|
1914
1920
|
class: "label",
|
|
1915
1921
|
title: unref(isTruncated) ? props.label : void 0
|
|
1916
|
-
}, toDisplayString(props.label), 9, _hoisted_2$
|
|
1922
|
+
}, toDisplayString(props.label), 9, _hoisted_2$f),
|
|
1917
1923
|
props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
|
|
1918
1924
|
key: 0,
|
|
1919
1925
|
content: props.description,
|
|
1920
|
-
hidden: !
|
|
1926
|
+
hidden: !__props.showDescriptionButton
|
|
1921
1927
|
}, null, 8, ["content", "hidden"])) : createCommentVNode("", true)
|
|
1922
1928
|
]);
|
|
1923
1929
|
};
|
|
1924
1930
|
}
|
|
1925
1931
|
});
|
|
1926
1932
|
|
|
1927
|
-
const KdsLabel = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1933
|
+
const KdsLabel = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["__scopeId", "data-v-13bea091"]]);
|
|
1928
1934
|
|
|
1929
|
-
const _hoisted_1$
|
|
1930
|
-
const _hoisted_2$
|
|
1931
|
-
const _sfc_main$
|
|
1935
|
+
const _hoisted_1$r = ["id"];
|
|
1936
|
+
const _hoisted_2$e = { class: "subtext-text" };
|
|
1937
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
1932
1938
|
__name: "KdsSubText",
|
|
1933
1939
|
props: {
|
|
1934
1940
|
id: {},
|
|
@@ -1938,37 +1944,37 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1938
1944
|
preserveSubTextSpace: { type: Boolean, default: false }
|
|
1939
1945
|
},
|
|
1940
1946
|
setup(__props) {
|
|
1941
|
-
const props = __props;
|
|
1947
|
+
const props = createPropsRestProxy(__props, ["error", "validating", "preserveSubTextSpace"]);
|
|
1942
1948
|
return (_ctx, _cache) => {
|
|
1943
|
-
return props.subText ||
|
|
1949
|
+
return props.subText || __props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", {
|
|
1944
1950
|
key: 0,
|
|
1945
1951
|
id: props.id,
|
|
1946
1952
|
class: normalizeClass({
|
|
1947
1953
|
subtext: true,
|
|
1948
|
-
error:
|
|
1954
|
+
error: __props.error
|
|
1949
1955
|
})
|
|
1950
1956
|
}, [
|
|
1951
|
-
|
|
1957
|
+
__props.error && props.subText ? (openBlock(), createBlock(KdsIcon, {
|
|
1952
1958
|
key: 0,
|
|
1953
1959
|
name: "circle-error",
|
|
1954
1960
|
size: "small",
|
|
1955
1961
|
"aria-label": "Error"
|
|
1956
|
-
})) :
|
|
1962
|
+
})) : __props.validating && props.subText ? (openBlock(), createBlock(KdsLoadingSpinner, {
|
|
1957
1963
|
key: 1,
|
|
1958
1964
|
size: "small",
|
|
1959
1965
|
variant: "onSurface",
|
|
1960
1966
|
"aria-hidden": "true"
|
|
1961
1967
|
})) : createCommentVNode("", true),
|
|
1962
|
-
createElementVNode("span", _hoisted_2$
|
|
1963
|
-
], 10, _hoisted_1$
|
|
1968
|
+
createElementVNode("span", _hoisted_2$e, toDisplayString(props.subText), 1)
|
|
1969
|
+
], 10, _hoisted_1$r)) : createCommentVNode("", true);
|
|
1964
1970
|
};
|
|
1965
1971
|
}
|
|
1966
1972
|
});
|
|
1967
1973
|
|
|
1968
|
-
const KdsSubText = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1974
|
+
const KdsSubText = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["__scopeId", "data-v-2e6ba10c"]]);
|
|
1969
1975
|
|
|
1970
|
-
const _hoisted_1$
|
|
1971
|
-
const _hoisted_2$
|
|
1976
|
+
const _hoisted_1$q = ["disabled", "title", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
|
|
1977
|
+
const _hoisted_2$d = { class: "control" };
|
|
1972
1978
|
const _hoisted_3$a = {
|
|
1973
1979
|
key: 0,
|
|
1974
1980
|
class: "content"
|
|
@@ -1979,7 +1985,7 @@ const _hoisted_6$3 = {
|
|
|
1979
1985
|
key: 0,
|
|
1980
1986
|
class: "subtext-wrapper"
|
|
1981
1987
|
};
|
|
1982
|
-
const _sfc_main$
|
|
1988
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
1983
1989
|
__name: "BaseCheckbox",
|
|
1984
1990
|
props: /* @__PURE__ */ mergeModels({
|
|
1985
1991
|
disabled: { type: Boolean, default: false },
|
|
@@ -1995,7 +2001,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
1995
2001
|
}),
|
|
1996
2002
|
emits: ["update:modelValue"],
|
|
1997
2003
|
setup(__props) {
|
|
1998
|
-
const props = __props;
|
|
2004
|
+
const props = createPropsRestProxy(__props, ["disabled", "error"]);
|
|
1999
2005
|
const modelValue = useModel(__props, "modelValue");
|
|
2000
2006
|
const helperId = useId();
|
|
2001
2007
|
const descriptionId = useId();
|
|
@@ -2027,7 +2033,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2027
2033
|
return ids.length > 0 ? ids.join(" ") : void 0;
|
|
2028
2034
|
});
|
|
2029
2035
|
const handleClick = () => {
|
|
2030
|
-
if (
|
|
2036
|
+
if (__props.disabled) {
|
|
2031
2037
|
return;
|
|
2032
2038
|
}
|
|
2033
2039
|
modelValue.value = isIndeterminate.value ? true : !isChecked.value;
|
|
@@ -2039,20 +2045,20 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2039
2045
|
checkbox: true,
|
|
2040
2046
|
checked: isChecked.value,
|
|
2041
2047
|
indeterminate: isIndeterminate.value,
|
|
2042
|
-
disabled:
|
|
2043
|
-
error:
|
|
2048
|
+
disabled: __props.disabled,
|
|
2049
|
+
error: __props.error
|
|
2044
2050
|
}),
|
|
2045
|
-
disabled:
|
|
2051
|
+
disabled: __props.disabled,
|
|
2046
2052
|
title: props.title,
|
|
2047
2053
|
"aria-label": props.title,
|
|
2048
2054
|
"aria-checked": ariaChecked.value,
|
|
2049
2055
|
"aria-describedby": ariaDescribedBy.value,
|
|
2050
|
-
"aria-invalid":
|
|
2056
|
+
"aria-invalid": __props.error,
|
|
2051
2057
|
type: "button",
|
|
2052
2058
|
role: "checkbox",
|
|
2053
2059
|
onClick: handleClick
|
|
2054
2060
|
}, [
|
|
2055
|
-
createElementVNode("div", _hoisted_2$
|
|
2061
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
2056
2062
|
icon.value ? (openBlock(), createBlock(KdsIcon, {
|
|
2057
2063
|
key: 0,
|
|
2058
2064
|
name: icon.value,
|
|
@@ -2068,13 +2074,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2068
2074
|
class: "helper-text"
|
|
2069
2075
|
}, toDisplayString(props.helperText), 9, _hoisted_5$5)) : createCommentVNode("", true)
|
|
2070
2076
|
])) : createCommentVNode("", true)
|
|
2071
|
-
], 10, _hoisted_1$
|
|
2077
|
+
], 10, _hoisted_1$q),
|
|
2072
2078
|
props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
2073
2079
|
createVNode(KdsSubText, {
|
|
2074
2080
|
id: unref(descriptionId),
|
|
2075
2081
|
"sub-text": props.subText,
|
|
2076
2082
|
"preserve-sub-text-space": props.preserveSubTextSpace,
|
|
2077
|
-
error:
|
|
2083
|
+
error: __props.error
|
|
2078
2084
|
}, null, 8, ["id", "sub-text", "preserve-sub-text-space", "error"])
|
|
2079
2085
|
])) : createCommentVNode("", true)
|
|
2080
2086
|
]);
|
|
@@ -2082,9 +2088,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2082
2088
|
}
|
|
2083
2089
|
});
|
|
2084
2090
|
|
|
2085
|
-
const BaseCheckbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2091
|
+
const BaseCheckbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["__scopeId", "data-v-7bfc5667"]]);
|
|
2086
2092
|
|
|
2087
|
-
const _sfc_main$
|
|
2093
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
2088
2094
|
__name: "KdsCheckbox",
|
|
2089
2095
|
props: /* @__PURE__ */ mergeModels({
|
|
2090
2096
|
disabled: { type: Boolean, default: false },
|
|
@@ -2099,25 +2105,23 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
2099
2105
|
}),
|
|
2100
2106
|
emits: ["update:modelValue"],
|
|
2101
2107
|
setup(__props) {
|
|
2102
|
-
const props = __props;
|
|
2108
|
+
const props = createPropsRestProxy(__props, ["disabled", "error", "preserveSubTextSpace"]);
|
|
2103
2109
|
const modelValue = useModel(__props, "modelValue");
|
|
2104
2110
|
return (_ctx, _cache) => {
|
|
2105
|
-
return openBlock(), createBlock(BaseCheckbox, {
|
|
2111
|
+
return openBlock(), createBlock(BaseCheckbox, mergeProps({
|
|
2106
2112
|
modelValue: modelValue.value,
|
|
2107
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
"preserve-sub-text-space": props.preserveSubTextSpace
|
|
2114
|
-
}, null, 8, ["modelValue", "disabled", "error", "label", "title", "sub-text", "preserve-sub-text-space"]);
|
|
2113
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
2114
|
+
}, props, {
|
|
2115
|
+
disabled: __props.disabled,
|
|
2116
|
+
error: __props.error,
|
|
2117
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
2118
|
+
}), null, 16, ["modelValue", "disabled", "error", "preserve-sub-text-space"]);
|
|
2115
2119
|
};
|
|
2116
2120
|
}
|
|
2117
2121
|
});
|
|
2118
2122
|
|
|
2119
|
-
const _hoisted_1$
|
|
2120
|
-
const _sfc_main$
|
|
2123
|
+
const _hoisted_1$p = ["id", "aria-labelledby", "aria-describedby"];
|
|
2124
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
2121
2125
|
__name: "KdsCheckboxGroup",
|
|
2122
2126
|
props: /* @__PURE__ */ mergeModels({
|
|
2123
2127
|
id: {},
|
|
@@ -2134,7 +2138,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2134
2138
|
}),
|
|
2135
2139
|
emits: ["update:modelValue"],
|
|
2136
2140
|
setup(__props) {
|
|
2137
|
-
const props = __props;
|
|
2141
|
+
const props = createPropsRestProxy(__props, ["disabled", "error", "alignment"]);
|
|
2138
2142
|
const modelValue = useModel(__props, "modelValue");
|
|
2139
2143
|
const possibleValues = computed(
|
|
2140
2144
|
() => props.possibleValues.map((o) => {
|
|
@@ -2146,10 +2150,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2146
2150
|
);
|
|
2147
2151
|
const labelId = useId();
|
|
2148
2152
|
const descriptionId = useId();
|
|
2149
|
-
const isOptionDisabled = (index) =>
|
|
2150
|
-
const isHorizontal = computed(() =>
|
|
2153
|
+
const isOptionDisabled = (index) => __props.disabled || possibleValues.value[index]?.disabled === true;
|
|
2154
|
+
const isHorizontal = computed(() => __props.alignment === "horizontal");
|
|
2151
2155
|
const hasError = computed(
|
|
2152
|
-
() =>
|
|
2156
|
+
() => __props.error || possibleValues.value.some((o) => o.error)
|
|
2153
2157
|
);
|
|
2154
2158
|
const isChecked = (id) => modelValue.value.includes(id);
|
|
2155
2159
|
const handleCheckboxChange = (index, checked) => {
|
|
@@ -2185,7 +2189,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2185
2189
|
class: "option"
|
|
2186
2190
|
}, [
|
|
2187
2191
|
createVNode(BaseCheckbox, {
|
|
2188
|
-
disabled:
|
|
2192
|
+
disabled: __props.disabled || option.disabled,
|
|
2189
2193
|
error: option.error,
|
|
2190
2194
|
"helper-text": option.helperText,
|
|
2191
2195
|
label: option.text,
|
|
@@ -2201,12 +2205,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2201
2205
|
"preserve-sub-text-space": props.preserveSubTextSpace,
|
|
2202
2206
|
error: hasError.value
|
|
2203
2207
|
}, null, 8, ["id", "sub-text", "preserve-sub-text-space", "error"])
|
|
2204
|
-
], 8, _hoisted_1$
|
|
2208
|
+
], 8, _hoisted_1$p);
|
|
2205
2209
|
};
|
|
2206
2210
|
}
|
|
2207
2211
|
});
|
|
2208
2212
|
|
|
2209
|
-
const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2213
|
+
const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["__scopeId", "data-v-e2e58cad"]]);
|
|
2210
2214
|
|
|
2211
2215
|
const kdsCheckboxGroupAlignment = {
|
|
2212
2216
|
VERTICAL: "vertical",
|
|
@@ -2222,8 +2226,8 @@ const kdsCheckboxValue = {
|
|
|
2222
2226
|
};
|
|
2223
2227
|
const kdsCheckboxValues = Object.values(kdsCheckboxValue);
|
|
2224
2228
|
|
|
2225
|
-
const _hoisted_1$
|
|
2226
|
-
const _hoisted_2$
|
|
2229
|
+
const _hoisted_1$o = ["aria-checked", "aria-describedby", "aria-invalid", "disabled"];
|
|
2230
|
+
const _hoisted_2$c = { class: "control" };
|
|
2227
2231
|
const _hoisted_3$9 = {
|
|
2228
2232
|
key: 0,
|
|
2229
2233
|
class: "dot",
|
|
@@ -2234,7 +2238,7 @@ const _hoisted_3$9 = {
|
|
|
2234
2238
|
const _hoisted_4$6 = { class: "content" };
|
|
2235
2239
|
const _hoisted_5$4 = { class: "label" };
|
|
2236
2240
|
const _hoisted_6$2 = ["id"];
|
|
2237
|
-
const _sfc_main$
|
|
2241
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
2238
2242
|
__name: "KdsRadioButton",
|
|
2239
2243
|
props: /* @__PURE__ */ mergeModels({
|
|
2240
2244
|
text: {},
|
|
@@ -2247,11 +2251,11 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
2247
2251
|
}),
|
|
2248
2252
|
emits: ["update:modelValue"],
|
|
2249
2253
|
setup(__props) {
|
|
2250
|
-
const props = __props;
|
|
2254
|
+
const props = createPropsRestProxy(__props, ["disabled", "error"]);
|
|
2251
2255
|
const modelValue = useModel(__props, "modelValue");
|
|
2252
2256
|
const id = useId();
|
|
2253
2257
|
const handleClick = () => {
|
|
2254
|
-
if (
|
|
2258
|
+
if (__props.disabled) {
|
|
2255
2259
|
return;
|
|
2256
2260
|
}
|
|
2257
2261
|
if (!modelValue.value) {
|
|
@@ -2262,19 +2266,19 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
2262
2266
|
return openBlock(), createElementBlock("button", {
|
|
2263
2267
|
"aria-checked": modelValue.value,
|
|
2264
2268
|
"aria-describedby": props.helperText ? `${unref(id)}-helper` : void 0,
|
|
2265
|
-
"aria-invalid":
|
|
2269
|
+
"aria-invalid": __props.error,
|
|
2266
2270
|
class: normalizeClass({
|
|
2267
2271
|
radio: true,
|
|
2268
2272
|
selected: modelValue.value,
|
|
2269
|
-
disabled:
|
|
2270
|
-
error:
|
|
2273
|
+
disabled: __props.disabled,
|
|
2274
|
+
error: __props.error
|
|
2271
2275
|
}),
|
|
2272
|
-
disabled:
|
|
2276
|
+
disabled: __props.disabled,
|
|
2273
2277
|
role: "radio",
|
|
2274
2278
|
type: "button",
|
|
2275
2279
|
onClick: handleClick
|
|
2276
2280
|
}, [
|
|
2277
|
-
createElementVNode("div", _hoisted_2$
|
|
2281
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
2278
2282
|
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$9, [..._cache[0] || (_cache[0] = [
|
|
2279
2283
|
createElementVNode("circle", {
|
|
2280
2284
|
cx: "1",
|
|
@@ -2291,12 +2295,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
2291
2295
|
class: "helper-text"
|
|
2292
2296
|
}, toDisplayString(props.helperText), 9, _hoisted_6$2)) : createCommentVNode("", true)
|
|
2293
2297
|
])
|
|
2294
|
-
], 10, _hoisted_1$
|
|
2298
|
+
], 10, _hoisted_1$o);
|
|
2295
2299
|
};
|
|
2296
2300
|
}
|
|
2297
2301
|
});
|
|
2298
2302
|
|
|
2299
|
-
const KdsRadioButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2303
|
+
const KdsRadioButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["__scopeId", "data-v-f4f6392a"]]);
|
|
2300
2304
|
|
|
2301
2305
|
const useRadioSelection = ({
|
|
2302
2306
|
selectedId,
|
|
@@ -2418,8 +2422,8 @@ const useRadioSelection = ({
|
|
|
2418
2422
|
};
|
|
2419
2423
|
};
|
|
2420
2424
|
|
|
2421
|
-
const _hoisted_1$
|
|
2422
|
-
const _sfc_main$
|
|
2425
|
+
const _hoisted_1$n = ["id", "aria-labelledby", "aria-describedby"];
|
|
2426
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
2423
2427
|
__name: "KdsRadioButtonGroup",
|
|
2424
2428
|
props: /* @__PURE__ */ mergeModels({
|
|
2425
2429
|
id: {},
|
|
@@ -2435,7 +2439,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2435
2439
|
}),
|
|
2436
2440
|
emits: ["update:modelValue"],
|
|
2437
2441
|
setup(__props) {
|
|
2438
|
-
const props = __props;
|
|
2442
|
+
const props = createPropsRestProxy(__props, ["disabled", "alignment"]);
|
|
2439
2443
|
const modelValue = useModel(__props, "modelValue");
|
|
2440
2444
|
const options = computed(
|
|
2441
2445
|
() => props.possibleValues.map((o) => {
|
|
@@ -2452,7 +2456,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2452
2456
|
const { tabIndexForOption, handleClick, handleKeyDown, hasError } = useRadioSelection({
|
|
2453
2457
|
selectedId: modelValue,
|
|
2454
2458
|
options,
|
|
2455
|
-
globalDisable: computed(() =>
|
|
2459
|
+
globalDisable: computed(() => __props.disabled),
|
|
2456
2460
|
optionContainer
|
|
2457
2461
|
});
|
|
2458
2462
|
return (_ctx, _cache) => {
|
|
@@ -2471,7 +2475,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2471
2475
|
createElementVNode("div", {
|
|
2472
2476
|
ref_key: "optionContainer",
|
|
2473
2477
|
ref: optionContainer,
|
|
2474
|
-
class: normalizeClass({ options: true, horizontal:
|
|
2478
|
+
class: normalizeClass({ options: true, horizontal: __props.alignment === "horizontal" })
|
|
2475
2479
|
}, [
|
|
2476
2480
|
(openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (option, index) => {
|
|
2477
2481
|
return openBlock(), createElementBlock("div", {
|
|
@@ -2479,7 +2483,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2479
2483
|
class: "option"
|
|
2480
2484
|
}, [
|
|
2481
2485
|
createVNode(KdsRadioButton, {
|
|
2482
|
-
disabled:
|
|
2486
|
+
disabled: __props.disabled || option.disabled,
|
|
2483
2487
|
error: option.error,
|
|
2484
2488
|
"helper-text": option.helperText,
|
|
2485
2489
|
text: option.text,
|
|
@@ -2498,22 +2502,22 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2498
2502
|
"preserve-sub-text-space": props.preserveSubTextSpace,
|
|
2499
2503
|
error: unref(hasError)
|
|
2500
2504
|
}, null, 8, ["id", "sub-text", "preserve-sub-text-space", "error"])
|
|
2501
|
-
], 8, _hoisted_1$
|
|
2505
|
+
], 8, _hoisted_1$n);
|
|
2502
2506
|
};
|
|
2503
2507
|
}
|
|
2504
2508
|
});
|
|
2505
2509
|
|
|
2506
|
-
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2510
|
+
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$A, [["__scopeId", "data-v-206fe061"]]);
|
|
2507
2511
|
|
|
2508
|
-
const _hoisted_1$
|
|
2509
|
-
const _sfc_main$
|
|
2512
|
+
const _hoisted_1$m = ["aria-checked", "aria-label", "disabled", "tabindex", "title"];
|
|
2513
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
2510
2514
|
__name: "ValueSwitchItem",
|
|
2511
2515
|
props: {
|
|
2512
2516
|
selected: { type: Boolean },
|
|
2513
2517
|
disabled: { type: Boolean, default: false },
|
|
2514
2518
|
size: { default: "medium" },
|
|
2515
2519
|
variant: { default: "default" },
|
|
2516
|
-
tabIndex: {
|
|
2520
|
+
tabIndex: {},
|
|
2517
2521
|
hideIcons: { type: Boolean },
|
|
2518
2522
|
text: {},
|
|
2519
2523
|
leadingIcon: {},
|
|
@@ -2521,7 +2525,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2521
2525
|
title: {}
|
|
2522
2526
|
},
|
|
2523
2527
|
setup(__props) {
|
|
2524
|
-
const props = __props;
|
|
2528
|
+
const props = createPropsRestProxy(__props, ["disabled", "size", "variant", "tabIndex"]);
|
|
2525
2529
|
const optionTextEl = useTemplateRef("optionTextEl");
|
|
2526
2530
|
const { isTruncated } = useKdsIsTruncated(optionTextEl);
|
|
2527
2531
|
return (_ctx, _cache) => {
|
|
@@ -2532,18 +2536,18 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2532
2536
|
class: normalizeClass({
|
|
2533
2537
|
option: true,
|
|
2534
2538
|
selected: props.selected,
|
|
2535
|
-
disabled:
|
|
2536
|
-
"variant-muted":
|
|
2537
|
-
"size-small":
|
|
2539
|
+
disabled: __props.disabled,
|
|
2540
|
+
"variant-muted": __props.variant === "muted",
|
|
2541
|
+
"size-small": __props.size === "small"
|
|
2538
2542
|
}),
|
|
2539
|
-
disabled:
|
|
2540
|
-
tabindex:
|
|
2543
|
+
disabled: __props.disabled,
|
|
2544
|
+
tabindex: __props.tabIndex,
|
|
2541
2545
|
title: props.title ?? (unref(isTruncated) && props.text ? props.text : void 0)
|
|
2542
2546
|
}, [
|
|
2543
2547
|
props.leadingIcon && (!props.hideIcons || !props.text) ? (openBlock(), createBlock(KdsIcon, {
|
|
2544
2548
|
key: 0,
|
|
2545
2549
|
name: props.leadingIcon,
|
|
2546
|
-
size:
|
|
2550
|
+
size: __props.size
|
|
2547
2551
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true),
|
|
2548
2552
|
props.text ? (openBlock(), createElementBlock("span", {
|
|
2549
2553
|
key: 1,
|
|
@@ -2554,14 +2558,14 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2554
2558
|
props.trailingIcon && !props.hideIcons ? (openBlock(), createBlock(KdsIcon, {
|
|
2555
2559
|
key: 2,
|
|
2556
2560
|
name: props.trailingIcon,
|
|
2557
|
-
size:
|
|
2561
|
+
size: __props.size
|
|
2558
2562
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
2559
|
-
], 10, _hoisted_1$
|
|
2563
|
+
], 10, _hoisted_1$m);
|
|
2560
2564
|
};
|
|
2561
2565
|
}
|
|
2562
2566
|
});
|
|
2563
2567
|
|
|
2564
|
-
const ValueSwitchItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2568
|
+
const ValueSwitchItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["__scopeId", "data-v-65986f11"]]);
|
|
2565
2569
|
|
|
2566
2570
|
const useValueSwitchIconHiding = ({
|
|
2567
2571
|
width,
|
|
@@ -2612,8 +2616,8 @@ const useValueSwitchIconHiding = ({
|
|
|
2612
2616
|
};
|
|
2613
2617
|
};
|
|
2614
2618
|
|
|
2615
|
-
const _hoisted_1$
|
|
2616
|
-
const _sfc_main$
|
|
2619
|
+
const _hoisted_1$l = ["id", "aria-invalid", "aria-labelledby", "aria-describedby"];
|
|
2620
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
2617
2621
|
__name: "KdsValueSwitch",
|
|
2618
2622
|
props: /* @__PURE__ */ mergeModels({
|
|
2619
2623
|
id: {},
|
|
@@ -2631,7 +2635,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2631
2635
|
}),
|
|
2632
2636
|
emits: ["update:modelValue"],
|
|
2633
2637
|
setup(__props) {
|
|
2634
|
-
const props = __props;
|
|
2638
|
+
const props = createPropsRestProxy(__props, ["disabled", "size", "variant"]);
|
|
2635
2639
|
const modelValue = useModel(__props, "modelValue");
|
|
2636
2640
|
const options = computed(
|
|
2637
2641
|
() => props.possibleValues.map((o) => {
|
|
@@ -2655,7 +2659,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2655
2659
|
const { tabIndexForOption, handleClick, handleKeyDown } = useRadioSelection({
|
|
2656
2660
|
selectedId: modelValue,
|
|
2657
2661
|
options,
|
|
2658
|
-
globalDisable: computed(() =>
|
|
2662
|
+
globalDisable: computed(() => __props.disabled),
|
|
2659
2663
|
optionContainer
|
|
2660
2664
|
});
|
|
2661
2665
|
return (_ctx, _cache) => {
|
|
@@ -2666,7 +2670,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2666
2670
|
role: "radiogroup",
|
|
2667
2671
|
class: normalizeClass({
|
|
2668
2672
|
"value-switch": true,
|
|
2669
|
-
"size-small":
|
|
2673
|
+
"size-small": __props.size === "small"
|
|
2670
2674
|
}),
|
|
2671
2675
|
"aria-invalid": props.error || void 0,
|
|
2672
2676
|
"aria-labelledby": props.label ? unref(labelId) : void 0,
|
|
@@ -2690,14 +2694,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2690
2694
|
}, { ref_for: true }, option, {
|
|
2691
2695
|
"hide-icons": unref(shouldHideIcons),
|
|
2692
2696
|
selected: modelValue.value === option.id,
|
|
2693
|
-
disabled:
|
|
2694
|
-
size:
|
|
2695
|
-
variant:
|
|
2697
|
+
disabled: __props.disabled || option.disabled,
|
|
2698
|
+
size: __props.size,
|
|
2699
|
+
variant: __props.variant,
|
|
2696
2700
|
"tab-index": unref(tabIndexForOption)(index),
|
|
2697
|
-
title: option.title,
|
|
2698
2701
|
onClick: () => unref(handleClick)(index),
|
|
2699
2702
|
onKeydown: ($event) => unref(handleKeyDown)($event, index)
|
|
2700
|
-
}), null, 16, ["hide-icons", "selected", "disabled", "size", "variant", "tab-index", "
|
|
2703
|
+
}), null, 16, ["hide-icons", "selected", "disabled", "size", "variant", "tab-index", "onClick", "onKeydown"]);
|
|
2701
2704
|
}), 128))
|
|
2702
2705
|
], 2),
|
|
2703
2706
|
createVNode(KdsSubText, {
|
|
@@ -2706,12 +2709,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2706
2709
|
"preserve-sub-text-space": props.preserveSubTextSpace,
|
|
2707
2710
|
error: props.error
|
|
2708
2711
|
}, null, 8, ["id", "sub-text", "preserve-sub-text-space", "error"])
|
|
2709
|
-
], 10, _hoisted_1$
|
|
2712
|
+
], 10, _hoisted_1$l);
|
|
2710
2713
|
};
|
|
2711
2714
|
}
|
|
2712
2715
|
});
|
|
2713
2716
|
|
|
2714
|
-
const KdsValueSwitch = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2717
|
+
const KdsValueSwitch = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["__scopeId", "data-v-2800bea3"]]);
|
|
2715
2718
|
|
|
2716
2719
|
const kdsRadioButtonGroupAlignment = {
|
|
2717
2720
|
VERTICAL: "vertical",
|
|
@@ -2731,7 +2734,7 @@ const kdsValueSwitchVariant = {
|
|
|
2731
2734
|
};
|
|
2732
2735
|
const kdsValueSwitchVariants = Object.values(kdsValueSwitchVariant);
|
|
2733
2736
|
|
|
2734
|
-
const _sfc_main$
|
|
2737
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
2735
2738
|
__name: "BaseFormFieldWrapper",
|
|
2736
2739
|
props: {
|
|
2737
2740
|
id: {},
|
|
@@ -2783,13 +2786,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2783
2786
|
}
|
|
2784
2787
|
});
|
|
2785
2788
|
|
|
2786
|
-
const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2789
|
+
const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["__scopeId", "data-v-5d99c134"]]);
|
|
2787
2790
|
|
|
2788
|
-
const _hoisted_1$
|
|
2791
|
+
const _hoisted_1$k = {
|
|
2789
2792
|
key: 0,
|
|
2790
2793
|
class: "icon-wrapper leading"
|
|
2791
2794
|
};
|
|
2792
|
-
const _hoisted_2$
|
|
2795
|
+
const _hoisted_2$b = {
|
|
2793
2796
|
key: 1,
|
|
2794
2797
|
class: "leading-slot"
|
|
2795
2798
|
};
|
|
@@ -2803,45 +2806,45 @@ const _hoisted_6$1 = {
|
|
|
2803
2806
|
key: 5,
|
|
2804
2807
|
class: "icon-wrapper trailing"
|
|
2805
2808
|
};
|
|
2806
|
-
const _sfc_main$
|
|
2809
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
2807
2810
|
__name: "BaseInput",
|
|
2808
2811
|
props: /* @__PURE__ */ mergeModels({
|
|
2809
|
-
id: {
|
|
2812
|
+
id: {},
|
|
2810
2813
|
type: { default: "text" },
|
|
2811
|
-
min: {
|
|
2812
|
-
max: {
|
|
2813
|
-
ariaExpanded: { type: Boolean, default: void 0 },
|
|
2814
|
-
step: {
|
|
2815
|
-
placeholder: {
|
|
2814
|
+
min: {},
|
|
2815
|
+
max: {},
|
|
2816
|
+
ariaExpanded: { type: Boolean, default: () => void 0 },
|
|
2817
|
+
step: {},
|
|
2818
|
+
placeholder: {},
|
|
2816
2819
|
disabled: { type: Boolean, default: false },
|
|
2817
|
-
leadingIcon: {
|
|
2818
|
-
trailingIcon: {
|
|
2820
|
+
leadingIcon: {},
|
|
2821
|
+
trailingIcon: {},
|
|
2819
2822
|
error: { type: Boolean, default: false },
|
|
2820
|
-
autocomplete: {
|
|
2821
|
-
ariaLabel: {
|
|
2822
|
-
ariaLabelledby: {
|
|
2823
|
-
ariaDescribedby: {
|
|
2824
|
-
ariaInvalid: { type: Boolean, default: void 0 },
|
|
2825
|
-
role: {
|
|
2826
|
-
ariaValuenow: {
|
|
2827
|
-
ariaValuemin: {
|
|
2828
|
-
ariaValuemax: {
|
|
2829
|
-
ariaValuetext: {
|
|
2830
|
-
ariaActivedescendant: {
|
|
2831
|
-
ariaHaspopup: {
|
|
2832
|
-
ariaControls: {
|
|
2833
|
-
ariaAutocomplete: {
|
|
2834
|
-
unit: {
|
|
2835
|
-
inputmode: {
|
|
2823
|
+
autocomplete: {},
|
|
2824
|
+
ariaLabel: {},
|
|
2825
|
+
ariaLabelledby: {},
|
|
2826
|
+
ariaDescribedby: {},
|
|
2827
|
+
ariaInvalid: { type: Boolean, default: () => void 0 },
|
|
2828
|
+
role: {},
|
|
2829
|
+
ariaValuenow: {},
|
|
2830
|
+
ariaValuemin: {},
|
|
2831
|
+
ariaValuemax: {},
|
|
2832
|
+
ariaValuetext: {},
|
|
2833
|
+
ariaActivedescendant: {},
|
|
2834
|
+
ariaHaspopup: {},
|
|
2835
|
+
ariaControls: {},
|
|
2836
|
+
ariaAutocomplete: {},
|
|
2837
|
+
unit: {},
|
|
2838
|
+
inputmode: {},
|
|
2836
2839
|
clearable: { type: Boolean, default: false },
|
|
2837
|
-
pattern: {
|
|
2840
|
+
pattern: {}
|
|
2838
2841
|
}, {
|
|
2839
2842
|
"modelValue": { default: "" },
|
|
2840
2843
|
"modelModifiers": {}
|
|
2841
2844
|
}),
|
|
2842
2845
|
emits: /* @__PURE__ */ mergeModels(["focus", "blur", "keydown", "input", "click"], ["update:modelValue"]),
|
|
2843
2846
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2844
|
-
const props = __props;
|
|
2847
|
+
const props = createPropsRestProxy(__props, ["type", "disabled", "error", "clearable", "ariaExpanded", "ariaInvalid"]);
|
|
2845
2848
|
const emit = __emit;
|
|
2846
2849
|
const modelValue = useModel(__props, "modelValue");
|
|
2847
2850
|
const inputRef = useTemplateRef("input");
|
|
@@ -2877,28 +2880,28 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2877
2880
|
return openBlock(), createElementBlock("div", {
|
|
2878
2881
|
class: normalizeClass({
|
|
2879
2882
|
container: true,
|
|
2880
|
-
error:
|
|
2881
|
-
disabled:
|
|
2883
|
+
error: __props.error,
|
|
2884
|
+
disabled: __props.disabled
|
|
2882
2885
|
}),
|
|
2883
2886
|
onClick: handleContainerClick
|
|
2884
2887
|
}, [
|
|
2885
|
-
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2888
|
+
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
2886
2889
|
props.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
2887
2890
|
key: 0,
|
|
2888
2891
|
name: props.leadingIcon
|
|
2889
2892
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
2890
2893
|
])) : createCommentVNode("", true),
|
|
2891
|
-
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2894
|
+
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
2892
2895
|
renderSlot(_ctx.$slots, "leading", {}, void 0, true)
|
|
2893
2896
|
])) : createCommentVNode("", true),
|
|
2894
2897
|
createElementVNode("input", {
|
|
2895
2898
|
id: props.id,
|
|
2896
2899
|
ref: "input",
|
|
2897
2900
|
value: modelValue.value,
|
|
2898
|
-
type:
|
|
2901
|
+
type: __props.type,
|
|
2899
2902
|
inputmode: props.inputmode,
|
|
2900
2903
|
placeholder: props.placeholder,
|
|
2901
|
-
disabled:
|
|
2904
|
+
disabled: __props.disabled,
|
|
2902
2905
|
autocomplete: props.autocomplete,
|
|
2903
2906
|
min: props.min,
|
|
2904
2907
|
max: props.max,
|
|
@@ -2906,7 +2909,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2906
2909
|
"aria-label": props.ariaLabel,
|
|
2907
2910
|
"aria-labelledby": props.ariaLabelledby,
|
|
2908
2911
|
"aria-describedby": props.ariaDescribedby,
|
|
2909
|
-
"aria-invalid":
|
|
2912
|
+
"aria-invalid": __props.ariaInvalid,
|
|
2910
2913
|
role: props.role,
|
|
2911
2914
|
pattern: props.pattern,
|
|
2912
2915
|
"aria-valuenow": props.ariaValuenow,
|
|
@@ -2916,7 +2919,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2916
2919
|
"aria-activedescendant": props.ariaActivedescendant,
|
|
2917
2920
|
"aria-haspopup": props.ariaHaspopup,
|
|
2918
2921
|
"aria-controls": props.ariaControls,
|
|
2919
|
-
"aria-expanded":
|
|
2922
|
+
"aria-expanded": __props.ariaExpanded,
|
|
2920
2923
|
"aria-autocomplete": props.ariaAutocomplete,
|
|
2921
2924
|
class: normalizeClass({ "input-field": true, "has-value": hasValue.value }),
|
|
2922
2925
|
onInput: handleInput,
|
|
@@ -2930,18 +2933,18 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2930
2933
|
class: normalizeClass({
|
|
2931
2934
|
unit: true,
|
|
2932
2935
|
placeholder: showUnitPlaceholder.value,
|
|
2933
|
-
disabled:
|
|
2936
|
+
disabled: __props.disabled
|
|
2934
2937
|
}),
|
|
2935
|
-
"aria-disabled":
|
|
2938
|
+
"aria-disabled": __props.disabled || void 0
|
|
2936
2939
|
}, toDisplayString(props.unit), 11, _hoisted_4$5)) : createCommentVNode("", true),
|
|
2937
|
-
|
|
2940
|
+
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createBlock(_sfc_main$S, {
|
|
2938
2941
|
key: 3,
|
|
2939
2942
|
class: "clear-button",
|
|
2940
2943
|
type: "button",
|
|
2941
2944
|
size: "xsmall",
|
|
2942
2945
|
variant: "transparent",
|
|
2943
2946
|
"leading-icon": "x-close",
|
|
2944
|
-
|
|
2947
|
+
ariaLabel: "Clear",
|
|
2945
2948
|
title: "Clear",
|
|
2946
2949
|
onClick: withModifiers(clearAndFocusInput, ["stop"])
|
|
2947
2950
|
})) : createCommentVNode("", true),
|
|
@@ -2958,7 +2961,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2958
2961
|
}
|
|
2959
2962
|
});
|
|
2960
2963
|
|
|
2961
|
-
const BaseInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2964
|
+
const BaseInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-92291903"]]);
|
|
2962
2965
|
|
|
2963
2966
|
const usePointerHandler = (updateFromEvent) => {
|
|
2964
2967
|
const activePointerId = ref(null);
|
|
@@ -2998,7 +3001,7 @@ const usePointerHandler = (updateFromEvent) => {
|
|
|
2998
3001
|
};
|
|
2999
3002
|
};
|
|
3000
3003
|
|
|
3001
|
-
const _sfc_main$
|
|
3004
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
3002
3005
|
__name: "KdsTextInput",
|
|
3003
3006
|
props: /* @__PURE__ */ mergeModels({
|
|
3004
3007
|
description: {},
|
|
@@ -3019,7 +3022,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
3019
3022
|
}),
|
|
3020
3023
|
emits: ["update:modelValue"],
|
|
3021
3024
|
setup(__props, { expose: __expose }) {
|
|
3022
|
-
const props = __props;
|
|
3025
|
+
const props = createPropsRestProxy(__props, ["disabled", "error", "validating", "preserveSubTextSpace"]);
|
|
3023
3026
|
const modelValue = useModel(__props, "modelValue");
|
|
3024
3027
|
const baseInput = useTemplateRef("baseInput");
|
|
3025
3028
|
const popoverRef = useTemplateRef("popoverRef");
|
|
@@ -3101,9 +3104,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
3101
3104
|
"aria-label": props.ariaLabel,
|
|
3102
3105
|
description: props.description,
|
|
3103
3106
|
"sub-text": props.subText,
|
|
3104
|
-
error:
|
|
3105
|
-
validating:
|
|
3106
|
-
"preserve-sub-text-space":
|
|
3107
|
+
error: __props.error,
|
|
3108
|
+
validating: __props.validating,
|
|
3109
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
3107
3110
|
}, {
|
|
3108
3111
|
default: withCtx((slotProps) => [
|
|
3109
3112
|
createVNode(BaseInput, mergeProps({
|
|
@@ -3114,8 +3117,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
3114
3117
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
3115
3118
|
type: "text",
|
|
3116
3119
|
placeholder: props.placeholder,
|
|
3117
|
-
disabled:
|
|
3118
|
-
error:
|
|
3120
|
+
disabled: __props.disabled,
|
|
3121
|
+
error: __props.error,
|
|
3119
3122
|
autocomplete: hasSuggestions.value ? "off" : props.autocomplete,
|
|
3120
3123
|
role: hasSuggestions.value ? "combobox" : void 0,
|
|
3121
3124
|
"aria-haspopup": hasSuggestions.value ? "listbox" : void 0,
|
|
@@ -3159,7 +3162,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
3159
3162
|
}
|
|
3160
3163
|
});
|
|
3161
3164
|
|
|
3162
|
-
const KdsTextInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
3165
|
+
const KdsTextInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["__scopeId", "data-v-5a8cd710"]]);
|
|
3163
3166
|
|
|
3164
3167
|
const HEX_RADIX = 16;
|
|
3165
3168
|
const RGB_MAX = 255;
|
|
@@ -3281,8 +3284,8 @@ const hsvToRgb = ({ h, s, v }) => {
|
|
|
3281
3284
|
};
|
|
3282
3285
|
const hsvToHex = (hsv) => rgbToHex(hsvToRgb(hsv));
|
|
3283
3286
|
|
|
3284
|
-
const _hoisted_1$
|
|
3285
|
-
const _hoisted_2$
|
|
3287
|
+
const _hoisted_1$j = { class: "kds-color-picker" };
|
|
3288
|
+
const _hoisted_2$a = ["aria-valuetext"];
|
|
3286
3289
|
const _hoisted_3$7 = ["aria-valuenow", "aria-valuetext"];
|
|
3287
3290
|
const DEFAULT_HUE_DEG = 270;
|
|
3288
3291
|
const DEFAULT_SATURATION = 0.8;
|
|
@@ -3295,7 +3298,7 @@ const KEYBOARD_LARGE_STEP = 0.1;
|
|
|
3295
3298
|
const HUE_KEYBOARD_STEP_DEG = 1;
|
|
3296
3299
|
const HUE_KEYBOARD_LARGE_STEP_DEG = 10;
|
|
3297
3300
|
const TO_BOTTOM_GRADIENT = "linear-gradient(to bottom, transparent, black)";
|
|
3298
|
-
const _sfc_main$
|
|
3301
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
3299
3302
|
__name: "ColorPicker",
|
|
3300
3303
|
props: {
|
|
3301
3304
|
"modelValue": { default: "" },
|
|
@@ -3446,7 +3449,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3446
3449
|
}
|
|
3447
3450
|
};
|
|
3448
3451
|
return (_ctx, _cache) => {
|
|
3449
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3452
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
3450
3453
|
createElementVNode("div", {
|
|
3451
3454
|
ref_key: "colorspaceEl",
|
|
3452
3455
|
ref: colorspaceEl,
|
|
@@ -3475,7 +3478,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3475
3478
|
class: "handle",
|
|
3476
3479
|
style: normalizeStyle(colorspaceHandleStyle.value)
|
|
3477
3480
|
}, null, 4)
|
|
3478
|
-
], 44, _hoisted_2$
|
|
3481
|
+
], 44, _hoisted_2$a),
|
|
3479
3482
|
createElementVNode("div", {
|
|
3480
3483
|
ref_key: "hueEl",
|
|
3481
3484
|
ref: hueEl,
|
|
@@ -3508,7 +3511,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3508
3511
|
], 40, _hoisted_3$7),
|
|
3509
3512
|
createVNode(KdsTextInput, {
|
|
3510
3513
|
"model-value": modelValue.value,
|
|
3511
|
-
|
|
3514
|
+
ariaLabel: "Color hex value",
|
|
3512
3515
|
placeholder: "#FFFFFF",
|
|
3513
3516
|
"onUpdate:modelValue": updateFromTextValue
|
|
3514
3517
|
}, null, 8, ["model-value"])
|
|
@@ -3517,7 +3520,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3517
3520
|
}
|
|
3518
3521
|
});
|
|
3519
3522
|
|
|
3520
|
-
const ColorPicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
3523
|
+
const ColorPicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["__scopeId", "data-v-74392b20"]]);
|
|
3521
3524
|
|
|
3522
3525
|
const HEX_LENGTH_1 = 1;
|
|
3523
3526
|
const HEX_LENGTH_2 = 2;
|
|
@@ -3577,7 +3580,7 @@ const useColorInputValidationOnFocusOut = (modelValue) => {
|
|
|
3577
3580
|
return { handleFocusOut };
|
|
3578
3581
|
};
|
|
3579
3582
|
|
|
3580
|
-
const _sfc_main$
|
|
3583
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
3581
3584
|
__name: "KdsColorInput",
|
|
3582
3585
|
props: /* @__PURE__ */ mergeModels({
|
|
3583
3586
|
description: {},
|
|
@@ -3590,14 +3593,14 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3590
3593
|
preserveSubTextSpace: { type: Boolean, default: false },
|
|
3591
3594
|
placeholder: { default: "#FFFFFF" },
|
|
3592
3595
|
disabled: { type: Boolean, default: false },
|
|
3593
|
-
autocomplete: {
|
|
3596
|
+
autocomplete: {}
|
|
3594
3597
|
}, {
|
|
3595
3598
|
"modelValue": { default: "" },
|
|
3596
3599
|
"modelModifiers": {}
|
|
3597
3600
|
}),
|
|
3598
3601
|
emits: ["update:modelValue"],
|
|
3599
3602
|
setup(__props) {
|
|
3600
|
-
const props = __props;
|
|
3603
|
+
const props = createPropsRestProxy(__props, ["placeholder", "disabled", "error", "validating", "preserveSubTextSpace"]);
|
|
3601
3604
|
const modelValue = useModel(__props, "modelValue");
|
|
3602
3605
|
const open = ref(false);
|
|
3603
3606
|
const popoverEl = useTemplateRef("popoverEl");
|
|
@@ -3606,12 +3609,16 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3606
3609
|
);
|
|
3607
3610
|
const { handleFocusOut } = useColorInputValidationOnFocusOut(modelValue);
|
|
3608
3611
|
const onClickColorSwatch = () => {
|
|
3609
|
-
if (!
|
|
3612
|
+
if (!__props.disabled) {
|
|
3610
3613
|
open.value = !open.value;
|
|
3611
3614
|
}
|
|
3612
3615
|
};
|
|
3613
3616
|
return (_ctx, _cache) => {
|
|
3614
|
-
return openBlock(), createBlock(BaseFormFieldWrapper,
|
|
3617
|
+
return openBlock(), createBlock(BaseFormFieldWrapper, mergeProps(props, {
|
|
3618
|
+
error: __props.error,
|
|
3619
|
+
validating: __props.validating,
|
|
3620
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
3621
|
+
}), {
|
|
3615
3622
|
default: withCtx((slotProps) => [
|
|
3616
3623
|
createElementVNode("div", {
|
|
3617
3624
|
style: normalizeStyle(popoverEl.value?.anchorStyle),
|
|
@@ -3621,9 +3628,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3621
3628
|
createVNode(BaseInput, mergeProps(slotProps, {
|
|
3622
3629
|
modelValue: modelValue.value,
|
|
3623
3630
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => modelValue.value = $event),
|
|
3624
|
-
placeholder:
|
|
3625
|
-
disabled:
|
|
3626
|
-
error:
|
|
3631
|
+
placeholder: __props.placeholder,
|
|
3632
|
+
disabled: __props.disabled,
|
|
3633
|
+
error: __props.error,
|
|
3627
3634
|
autocomplete: props.autocomplete
|
|
3628
3635
|
}), {
|
|
3629
3636
|
leading: withCtx(() => [
|
|
@@ -3631,21 +3638,21 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3631
3638
|
size: "large",
|
|
3632
3639
|
color: swatchColor.value,
|
|
3633
3640
|
"aria-hidden": true,
|
|
3634
|
-
style: normalizeStyle({ cursor:
|
|
3641
|
+
style: normalizeStyle({ cursor: __props.disabled ? "default" : "pointer" }),
|
|
3635
3642
|
onClick: onClickColorSwatch
|
|
3636
3643
|
}, null, 8, ["color", "style"])
|
|
3637
3644
|
]),
|
|
3638
3645
|
trailing: withCtx(() => [
|
|
3639
|
-
createVNode(unref(_sfc_main$
|
|
3646
|
+
createVNode(unref(_sfc_main$Q), {
|
|
3640
3647
|
modelValue: open.value,
|
|
3641
3648
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
3642
3649
|
size: "xsmall",
|
|
3643
3650
|
variant: "outlined",
|
|
3644
3651
|
"leading-icon": "color-picker",
|
|
3645
|
-
|
|
3652
|
+
ariaLabel: "Open color picker",
|
|
3646
3653
|
"aria-controls": popoverEl.value?.popoverId,
|
|
3647
3654
|
"aria-haspopup": "dialog",
|
|
3648
|
-
disabled:
|
|
3655
|
+
disabled: __props.disabled,
|
|
3649
3656
|
title: open.value ? "Close color picker" : "Open color picker"
|
|
3650
3657
|
}, null, 8, ["modelValue", "aria-controls", "disabled", "title"])
|
|
3651
3658
|
]),
|
|
@@ -3671,12 +3678,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3671
3678
|
], 36)
|
|
3672
3679
|
]),
|
|
3673
3680
|
_: 1
|
|
3674
|
-
}, 16);
|
|
3681
|
+
}, 16, ["error", "validating", "preserve-sub-text-space"]);
|
|
3675
3682
|
};
|
|
3676
3683
|
}
|
|
3677
3684
|
});
|
|
3678
3685
|
|
|
3679
|
-
const _sfc_main$
|
|
3686
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
3680
3687
|
__name: "KdsPasswordInput",
|
|
3681
3688
|
props: /* @__PURE__ */ mergeModels({
|
|
3682
3689
|
description: {},
|
|
@@ -3699,13 +3706,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3699
3706
|
}),
|
|
3700
3707
|
emits: ["update:modelValue"],
|
|
3701
3708
|
setup(__props, { expose: __expose }) {
|
|
3702
|
-
const props = __props;
|
|
3709
|
+
const props = createPropsRestProxy(__props, ["disabled", "error", "validating", "preserveSubTextSpace", "variant", "showVisibilityToggle"]);
|
|
3703
3710
|
const modelValue = useModel(__props, "modelValue");
|
|
3704
3711
|
const showValue = ref(false);
|
|
3705
3712
|
const preventBlurFromToggle = ref(false);
|
|
3706
3713
|
const input = useTemplateRef("input");
|
|
3707
3714
|
const effectiveToggleLabel = computed(
|
|
3708
|
-
() => props.toggleLabel ?? (
|
|
3715
|
+
() => props.toggleLabel ?? (__props.variant === "key" ? "Key" : "Password")
|
|
3709
3716
|
);
|
|
3710
3717
|
const handleBlur = () => {
|
|
3711
3718
|
if (preventBlurFromToggle.value) {
|
|
@@ -3716,7 +3723,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3716
3723
|
focus: () => input.value?.focus()
|
|
3717
3724
|
});
|
|
3718
3725
|
return (_ctx, _cache) => {
|
|
3719
|
-
return openBlock(), createBlock(BaseFormFieldWrapper,
|
|
3726
|
+
return openBlock(), createBlock(BaseFormFieldWrapper, mergeProps(props, {
|
|
3727
|
+
error: __props.error,
|
|
3728
|
+
validating: __props.validating,
|
|
3729
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
3730
|
+
}), {
|
|
3720
3731
|
default: withCtx((slotProps) => [
|
|
3721
3732
|
createVNode(BaseInput, mergeProps({
|
|
3722
3733
|
ref_key: "input",
|
|
@@ -3724,16 +3735,16 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3724
3735
|
}, slotProps, {
|
|
3725
3736
|
modelValue: modelValue.value,
|
|
3726
3737
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => modelValue.value = $event),
|
|
3727
|
-
type: showValue.value &&
|
|
3728
|
-
"leading-icon":
|
|
3738
|
+
type: showValue.value && __props.showVisibilityToggle ? "text" : "password",
|
|
3739
|
+
"leading-icon": __props.variant === "key" ? "key" : "lock",
|
|
3729
3740
|
placeholder: props.placeholder,
|
|
3730
|
-
disabled:
|
|
3731
|
-
error:
|
|
3741
|
+
disabled: __props.disabled,
|
|
3742
|
+
error: __props.error,
|
|
3732
3743
|
autocomplete: props.autocomplete,
|
|
3733
3744
|
onBlur: handleBlur
|
|
3734
3745
|
}), {
|
|
3735
3746
|
trailing: withCtx(() => [
|
|
3736
|
-
|
|
3747
|
+
__props.showVisibilityToggle ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
3737
3748
|
key: 0,
|
|
3738
3749
|
modelValue: showValue.value,
|
|
3739
3750
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showValue.value = $event),
|
|
@@ -3741,20 +3752,20 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3741
3752
|
variant: "outlined",
|
|
3742
3753
|
size: "xsmall",
|
|
3743
3754
|
"leading-icon": "eye",
|
|
3744
|
-
|
|
3755
|
+
ariaLabel: showValue.value ? `Hide ${effectiveToggleLabel.value}` : `Show ${effectiveToggleLabel.value}`,
|
|
3745
3756
|
title: showValue.value ? `Hide ${effectiveToggleLabel.value}` : `Show ${effectiveToggleLabel.value}`,
|
|
3746
|
-
disabled:
|
|
3757
|
+
disabled: __props.disabled,
|
|
3747
3758
|
onPointerdown: _cache[1] || (_cache[1] = ($event) => preventBlurFromToggle.value = true),
|
|
3748
3759
|
onPointerup: _cache[2] || (_cache[2] = ($event) => preventBlurFromToggle.value = false),
|
|
3749
3760
|
onPointercancel: _cache[3] || (_cache[3] = ($event) => preventBlurFromToggle.value = false),
|
|
3750
3761
|
onClick: _cache[4] || (_cache[4] = ($event) => preventBlurFromToggle.value = false)
|
|
3751
|
-
}, null, 8, ["modelValue", "
|
|
3762
|
+
}, null, 8, ["modelValue", "ariaLabel", "title", "disabled"])) : createCommentVNode("", true)
|
|
3752
3763
|
]),
|
|
3753
3764
|
_: 1
|
|
3754
3765
|
}, 16, ["modelValue", "type", "leading-icon", "placeholder", "disabled", "error", "autocomplete"])
|
|
3755
3766
|
]),
|
|
3756
3767
|
_: 1
|
|
3757
|
-
}, 16);
|
|
3768
|
+
}, 16, ["error", "validating", "preserve-sub-text-space"]);
|
|
3758
3769
|
};
|
|
3759
3770
|
}
|
|
3760
3771
|
});
|
|
@@ -3774,7 +3785,7 @@ const kdsPasswordInputAutocompletes = Object.values(
|
|
|
3774
3785
|
kdsPasswordInputAutocomplete
|
|
3775
3786
|
);
|
|
3776
3787
|
|
|
3777
|
-
const _sfc_main$
|
|
3788
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
3778
3789
|
__name: "KdsUsernameInput",
|
|
3779
3790
|
props: /* @__PURE__ */ mergeModels({
|
|
3780
3791
|
description: {},
|
|
@@ -3794,14 +3805,18 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3794
3805
|
}),
|
|
3795
3806
|
emits: ["update:modelValue"],
|
|
3796
3807
|
setup(__props, { expose: __expose }) {
|
|
3797
|
-
const props = __props;
|
|
3808
|
+
const props = createPropsRestProxy(__props, ["disabled", "error", "validating", "preserveSubTextSpace"]);
|
|
3798
3809
|
const modelValue = useModel(__props, "modelValue");
|
|
3799
3810
|
const baseInput = useTemplateRef("baseInput");
|
|
3800
3811
|
__expose({
|
|
3801
3812
|
focus: () => baseInput.value?.focus()
|
|
3802
3813
|
});
|
|
3803
3814
|
return (_ctx, _cache) => {
|
|
3804
|
-
return openBlock(), createBlock(BaseFormFieldWrapper,
|
|
3815
|
+
return openBlock(), createBlock(BaseFormFieldWrapper, mergeProps(props, {
|
|
3816
|
+
error: __props.error,
|
|
3817
|
+
validating: __props.validating,
|
|
3818
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
3819
|
+
}), {
|
|
3805
3820
|
default: withCtx((slotProps) => [
|
|
3806
3821
|
createVNode(BaseInput, mergeProps({
|
|
3807
3822
|
ref_key: "baseInput",
|
|
@@ -3812,13 +3827,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3812
3827
|
type: "text",
|
|
3813
3828
|
"leading-icon": "user",
|
|
3814
3829
|
placeholder: props.placeholder,
|
|
3815
|
-
disabled:
|
|
3816
|
-
error:
|
|
3830
|
+
disabled: __props.disabled,
|
|
3831
|
+
error: __props.error,
|
|
3817
3832
|
autocomplete: props.autocomplete
|
|
3818
3833
|
}), null, 16, ["modelValue", "placeholder", "disabled", "error", "autocomplete"])
|
|
3819
3834
|
]),
|
|
3820
3835
|
_: 1
|
|
3821
|
-
}, 16);
|
|
3836
|
+
}, 16, ["error", "validating", "preserve-sub-text-space"]);
|
|
3822
3837
|
};
|
|
3823
3838
|
}
|
|
3824
3839
|
});
|
|
@@ -11620,11 +11635,11 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11620
11635
|
}
|
|
11621
11636
|
const Popover = /* @__PURE__ */ _export_sfc(_sfc_main$k$1, [["render", _sfc_render$7]]);
|
|
11622
11637
|
const _hoisted_1$c$1 = { class: "vc-day-popover-row" };
|
|
11623
|
-
const _hoisted_2$7 = {
|
|
11638
|
+
const _hoisted_2$7$1 = {
|
|
11624
11639
|
key: 0,
|
|
11625
11640
|
class: "vc-day-popover-row-indicator"
|
|
11626
11641
|
};
|
|
11627
|
-
const _hoisted_3$5 = { class: "vc-day-popover-row-label" };
|
|
11642
|
+
const _hoisted_3$5$1 = { class: "vc-day-popover-row-label" };
|
|
11628
11643
|
const _sfc_main$j$1 = /* @__PURE__ */ defineComponent({
|
|
11629
11644
|
__name: "PopoverRow",
|
|
11630
11645
|
props: {
|
|
@@ -11660,12 +11675,12 @@ const _sfc_main$j$1 = /* @__PURE__ */ defineComponent({
|
|
|
11660
11675
|
});
|
|
11661
11676
|
return (_ctx, _cache) => {
|
|
11662
11677
|
return openBlock(), createElementBlock("div", _hoisted_1$c$1, [
|
|
11663
|
-
indicator.value ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
|
|
11678
|
+
indicator.value ? (openBlock(), createElementBlock("div", _hoisted_2$7$1, [
|
|
11664
11679
|
createElementVNode("span", {
|
|
11665
11680
|
class: normalizeClass(indicator.value.class)
|
|
11666
11681
|
}, null, 2)
|
|
11667
11682
|
])) : createCommentVNode("", true),
|
|
11668
|
-
createElementVNode("div", _hoisted_3$5, [
|
|
11683
|
+
createElementVNode("div", _hoisted_3$5$1, [
|
|
11669
11684
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
11670
11685
|
createTextVNode(toDisplayString(_ctx.attribute.popover ? _ctx.attribute.popover.label : "No content provided"), 1)
|
|
11671
11686
|
])
|
|
@@ -11830,7 +11845,7 @@ const _hoisted_3$4$1 = {
|
|
|
11830
11845
|
type: "button",
|
|
11831
11846
|
class: "vc-title"
|
|
11832
11847
|
};
|
|
11833
|
-
const _hoisted_4$3 = ["disabled"];
|
|
11848
|
+
const _hoisted_4$3$1 = ["disabled"];
|
|
11834
11849
|
const _sfc_main$b$1 = /* @__PURE__ */ defineComponent({
|
|
11835
11850
|
__name: "CalendarHeader",
|
|
11836
11851
|
props: {
|
|
@@ -11984,7 +11999,7 @@ const _sfc_main$b$1 = /* @__PURE__ */ defineComponent({
|
|
|
11984
11999
|
]),
|
|
11985
12000
|
_: 1
|
|
11986
12001
|
}, 8, ["disabled"])
|
|
11987
|
-
], 40, _hoisted_4$3)) : createCommentVNode("", true)
|
|
12002
|
+
], 40, _hoisted_4$3$1)) : createCommentVNode("", true)
|
|
11988
12003
|
], 6);
|
|
11989
12004
|
};
|
|
11990
12005
|
}
|
|
@@ -13610,11 +13625,11 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
13610
13625
|
};
|
|
13611
13626
|
}
|
|
13612
13627
|
});
|
|
13613
|
-
const _hoisted_1$
|
|
13628
|
+
const _hoisted_1$i = {
|
|
13614
13629
|
key: 0,
|
|
13615
13630
|
class: "vc-time-header"
|
|
13616
13631
|
};
|
|
13617
|
-
const _hoisted_2$
|
|
13632
|
+
const _hoisted_2$9 = { class: "vc-time-weekday" };
|
|
13618
13633
|
const _hoisted_3$6 = { class: "vc-time-month" };
|
|
13619
13634
|
const _hoisted_4$4 = { class: "vc-time-day" };
|
|
13620
13635
|
const _hoisted_5 = { class: "vc-time-year" };
|
|
@@ -13651,8 +13666,8 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
|
13651
13666
|
}, [
|
|
13652
13667
|
createVNode(_sfc_main$i$1, { name: "time-header" }, {
|
|
13653
13668
|
default: withCtx(() => [
|
|
13654
|
-
unref(showHeader) && unref(date) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13655
|
-
createElementVNode("span", _hoisted_2$
|
|
13669
|
+
unref(showHeader) && unref(date) ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
13670
|
+
createElementVNode("span", _hoisted_2$9, toDisplayString(unref(locale).formatDate(unref(date), "WWW")), 1),
|
|
13656
13671
|
createElementVNode("span", _hoisted_3$6, toDisplayString(unref(locale).formatDate(unref(date), "MMM")), 1),
|
|
13657
13672
|
createElementVNode("span", _hoisted_4$4, toDisplayString(unref(locale).formatDate(unref(date), "D")), 1),
|
|
13658
13673
|
createElementVNode("span", _hoisted_5, toDisplayString(unref(locale).formatDate(unref(date), "YYYY")), 1)
|
|
@@ -13804,7 +13819,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
13804
13819
|
};
|
|
13805
13820
|
}
|
|
13806
13821
|
});
|
|
13807
|
-
const _sfc_main$
|
|
13822
|
+
const _sfc_main$q = defineComponent({
|
|
13808
13823
|
inheritAttrs: false,
|
|
13809
13824
|
emits,
|
|
13810
13825
|
props: propsDef,
|
|
@@ -13823,7 +13838,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13823
13838
|
createVNode(_component_DatePickerPopover, normalizeProps(guardReactiveProps(_ctx.$attrs)), null, 16)
|
|
13824
13839
|
], 64)) : (openBlock(), createBlock(_component_DatePickerBase, normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)), null, 16));
|
|
13825
13840
|
}
|
|
13826
|
-
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13841
|
+
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render]]);
|
|
13827
13842
|
|
|
13828
13843
|
const tryParseAnyDate = (value) => {
|
|
13829
13844
|
if (!value) {
|
|
@@ -13871,7 +13886,7 @@ const formatDateToString = (date) => {
|
|
|
13871
13886
|
|
|
13872
13887
|
const legacyDateFormat = "yyyy-MM-dd";
|
|
13873
13888
|
const invalidDateFormatMessage = "Invalid date format. The expected date format is yyyy-MM-dd (e.g. 2026-03-11).";
|
|
13874
|
-
const _sfc_main$
|
|
13889
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
13875
13890
|
__name: "KdsDateInput",
|
|
13876
13891
|
props: /* @__PURE__ */ mergeModels({
|
|
13877
13892
|
description: {},
|
|
@@ -13952,14 +13967,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
13952
13967
|
onBlur: onTextInputBlur
|
|
13953
13968
|
}), {
|
|
13954
13969
|
trailing: withCtx(() => [
|
|
13955
|
-
createVNode(_sfc_main$
|
|
13970
|
+
createVNode(_sfc_main$Q, {
|
|
13956
13971
|
modelValue: popoverIsVisible.value,
|
|
13957
13972
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => popoverIsVisible.value = $event),
|
|
13958
13973
|
type: "button",
|
|
13959
13974
|
size: "xsmall",
|
|
13960
13975
|
variant: "outlined",
|
|
13961
13976
|
"leading-icon": "calendar",
|
|
13962
|
-
|
|
13977
|
+
ariaLabel: "Open date picker",
|
|
13963
13978
|
disabled: __props.disabled,
|
|
13964
13979
|
"aria-controls": popoverRef.value?.popoverId,
|
|
13965
13980
|
"aria-haspopup": "dialog",
|
|
@@ -14007,8 +14022,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
14007
14022
|
}
|
|
14008
14023
|
});
|
|
14009
14024
|
|
|
14010
|
-
const _hoisted_1$
|
|
14011
|
-
const _sfc_main$
|
|
14025
|
+
const _hoisted_1$h = { class: "kds-date-time-format-popover" };
|
|
14026
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
14012
14027
|
__name: "DateTimeFormatPopover",
|
|
14013
14028
|
props: /* @__PURE__ */ mergeModels({
|
|
14014
14029
|
allDefaultFormats: {},
|
|
@@ -14146,7 +14161,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
14146
14161
|
}));
|
|
14147
14162
|
});
|
|
14148
14163
|
return (_ctx, _cache) => {
|
|
14149
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14164
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
14150
14165
|
modeOptions.value.length > 1 ? (openBlock(), createBlock(KdsValueSwitch, {
|
|
14151
14166
|
key: 0,
|
|
14152
14167
|
"model-value": effectiveSelectedMode.value,
|
|
@@ -14178,9 +14193,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
14178
14193
|
}
|
|
14179
14194
|
});
|
|
14180
14195
|
|
|
14181
|
-
const DateTimeFormatPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
14196
|
+
const DateTimeFormatPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["__scopeId", "data-v-f75ebe1b"]]);
|
|
14182
14197
|
|
|
14183
|
-
const _sfc_main$
|
|
14198
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
14184
14199
|
__name: "KdsDateTimeFormatInput",
|
|
14185
14200
|
props: /* @__PURE__ */ mergeModels({
|
|
14186
14201
|
description: {},
|
|
@@ -14202,12 +14217,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
14202
14217
|
}),
|
|
14203
14218
|
emits: ["update:modelValue"],
|
|
14204
14219
|
setup(__props) {
|
|
14205
|
-
const props = __props;
|
|
14220
|
+
const props = createPropsRestProxy(__props, ["disabled", "error", "validating", "preserveSubTextSpace", "placeholder"]);
|
|
14206
14221
|
const modelValue = useModel(__props, "modelValue");
|
|
14207
14222
|
const open = ref(false);
|
|
14208
14223
|
const popoverEl = useTemplateRef("popoverEl");
|
|
14209
14224
|
return (_ctx, _cache) => {
|
|
14210
|
-
return openBlock(), createBlock(BaseFormFieldWrapper,
|
|
14225
|
+
return openBlock(), createBlock(BaseFormFieldWrapper, mergeProps(props, {
|
|
14226
|
+
error: __props.error,
|
|
14227
|
+
validating: __props.validating,
|
|
14228
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
14229
|
+
}), {
|
|
14211
14230
|
default: withCtx((slotProps) => [
|
|
14212
14231
|
createElementVNode("div", {
|
|
14213
14232
|
style: normalizeStyle(popoverEl.value?.anchorStyle)
|
|
@@ -14216,24 +14235,24 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
14216
14235
|
modelValue: modelValue.value,
|
|
14217
14236
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => modelValue.value = $event),
|
|
14218
14237
|
type: "text",
|
|
14219
|
-
placeholder:
|
|
14220
|
-
disabled:
|
|
14221
|
-
error:
|
|
14222
|
-
validating:
|
|
14238
|
+
placeholder: __props.placeholder,
|
|
14239
|
+
disabled: __props.disabled,
|
|
14240
|
+
error: __props.error,
|
|
14241
|
+
validating: __props.validating,
|
|
14223
14242
|
autocomplete: props.autocomplete
|
|
14224
14243
|
}), {
|
|
14225
14244
|
trailing: withCtx(() => [
|
|
14226
|
-
createVNode(unref(_sfc_main$
|
|
14245
|
+
createVNode(unref(_sfc_main$Q), {
|
|
14227
14246
|
modelValue: open.value,
|
|
14228
14247
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
14229
14248
|
size: "xsmall",
|
|
14230
14249
|
variant: "outlined",
|
|
14231
14250
|
"leading-icon": "date-time",
|
|
14232
|
-
|
|
14251
|
+
ariaLabel: "Open date/time format picker",
|
|
14233
14252
|
"aria-controls": popoverEl.value?.popoverId,
|
|
14234
14253
|
"aria-expanded": open.value,
|
|
14235
14254
|
"aria-haspopup": "dialog",
|
|
14236
|
-
disabled:
|
|
14255
|
+
disabled: __props.disabled,
|
|
14237
14256
|
title: open.value ? "Close date/time format picker" : "Open date/time format picker"
|
|
14238
14257
|
}, null, 8, ["modelValue", "aria-controls", "aria-expanded", "disabled", "title"])
|
|
14239
14258
|
]),
|
|
@@ -14263,7 +14282,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
14263
14282
|
], 4)
|
|
14264
14283
|
]),
|
|
14265
14284
|
_: 1
|
|
14266
|
-
}, 16);
|
|
14285
|
+
}, 16, ["error", "validating", "preserve-sub-text-space"]);
|
|
14267
14286
|
};
|
|
14268
14287
|
}
|
|
14269
14288
|
});
|
|
@@ -14416,7 +14435,7 @@ const createKdsNumberParser = (params) => {
|
|
|
14416
14435
|
|
|
14417
14436
|
const REPEAT_INITIAL_DELAY_MS = 400;
|
|
14418
14437
|
const REPEAT_INTERVAL_MS = 100;
|
|
14419
|
-
const _sfc_main$
|
|
14438
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
14420
14439
|
__name: "KdsNumberInput",
|
|
14421
14440
|
props: /* @__PURE__ */ mergeModels({
|
|
14422
14441
|
description: {},
|
|
@@ -14440,12 +14459,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14440
14459
|
}),
|
|
14441
14460
|
emits: ["update:modelValue"],
|
|
14442
14461
|
setup(__props, { expose: __expose }) {
|
|
14443
|
-
const props = __props;
|
|
14462
|
+
const props = createPropsRestProxy(__props, ["disabled", "error", "validating", "preserveSubTextSpace", "unit", "step"]);
|
|
14444
14463
|
const modelValue = useModel(__props, "modelValue");
|
|
14445
14464
|
const isFocused = ref(false);
|
|
14446
14465
|
const localValue = ref("");
|
|
14447
14466
|
const numberParser = computed(
|
|
14448
|
-
() => createKdsNumberParser({ locale: "en-US", step:
|
|
14467
|
+
() => createKdsNumberParser({ locale: "en-US", step: __props.step })
|
|
14449
14468
|
);
|
|
14450
14469
|
const ariaValuenow = computed(
|
|
14451
14470
|
() => Number.isFinite(modelValue.value) ? modelValue.value : void 0
|
|
@@ -14480,7 +14499,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14480
14499
|
{ immediate: true }
|
|
14481
14500
|
);
|
|
14482
14501
|
const canDecrease = computed(() => {
|
|
14483
|
-
if (
|
|
14502
|
+
if (__props.disabled) {
|
|
14484
14503
|
return false;
|
|
14485
14504
|
}
|
|
14486
14505
|
if (props.min === void 0 || Number.isNaN(props.min)) {
|
|
@@ -14492,7 +14511,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14492
14511
|
return modelValue.value > props.min;
|
|
14493
14512
|
});
|
|
14494
14513
|
const canIncrease = computed(() => {
|
|
14495
|
-
if (
|
|
14514
|
+
if (__props.disabled) {
|
|
14496
14515
|
return false;
|
|
14497
14516
|
}
|
|
14498
14517
|
if (props.max === void 0 || Number.isNaN(props.max)) {
|
|
@@ -14504,18 +14523,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14504
14523
|
return modelValue.value < props.max;
|
|
14505
14524
|
});
|
|
14506
14525
|
const adjustByStep = (direction) => {
|
|
14507
|
-
if (
|
|
14526
|
+
if (__props.step <= 0) {
|
|
14508
14527
|
return;
|
|
14509
14528
|
}
|
|
14510
14529
|
const base = Number.isFinite(modelValue.value) ? modelValue.value : numberParser.value.parseFromInput(localValue.value);
|
|
14511
|
-
const nextRaw = Number.isFinite(base) ? base + direction *
|
|
14530
|
+
const nextRaw = Number.isFinite(base) ? base + direction * __props.step : 0;
|
|
14512
14531
|
const rounded = numberParser.value.roundToStep(nextRaw);
|
|
14513
14532
|
const next = clamp(rounded);
|
|
14514
14533
|
modelValue.value = next;
|
|
14515
14534
|
localValue.value = numberParser.value.formatForDisplay(next);
|
|
14516
14535
|
};
|
|
14517
14536
|
const handleKeydown = (event) => {
|
|
14518
|
-
if (
|
|
14537
|
+
if (__props.disabled) {
|
|
14519
14538
|
return;
|
|
14520
14539
|
}
|
|
14521
14540
|
if (event.key === "ArrowUp" && canIncrease.value) {
|
|
@@ -14573,7 +14592,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14573
14592
|
focus: () => baseInput.value?.focus()
|
|
14574
14593
|
});
|
|
14575
14594
|
return (_ctx, _cache) => {
|
|
14576
|
-
return openBlock(), createBlock(BaseFormFieldWrapper,
|
|
14595
|
+
return openBlock(), createBlock(BaseFormFieldWrapper, mergeProps(props, {
|
|
14596
|
+
error: __props.error,
|
|
14597
|
+
validating: __props.validating,
|
|
14598
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
14599
|
+
}), {
|
|
14577
14600
|
default: withCtx((slotProps) => [
|
|
14578
14601
|
createVNode(BaseInput, mergeProps({
|
|
14579
14602
|
ref_key: "baseInput",
|
|
@@ -14581,12 +14604,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14581
14604
|
}, slotProps, {
|
|
14582
14605
|
"model-value": localValue.value,
|
|
14583
14606
|
type: "text",
|
|
14584
|
-
inputmode: Number.isInteger(
|
|
14607
|
+
inputmode: Number.isInteger(__props.step) ? "numeric" : "decimal",
|
|
14585
14608
|
placeholder: props.placeholder,
|
|
14586
|
-
disabled:
|
|
14587
|
-
error:
|
|
14609
|
+
disabled: __props.disabled,
|
|
14610
|
+
error: __props.error,
|
|
14588
14611
|
autocomplete: props.autocomplete,
|
|
14589
|
-
unit:
|
|
14612
|
+
unit: __props.unit,
|
|
14590
14613
|
role: "spinbutton",
|
|
14591
14614
|
"aria-valuenow": ariaValuenow.value,
|
|
14592
14615
|
"aria-valuemin": props.min,
|
|
@@ -14598,38 +14621,38 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14598
14621
|
onBlur: handleBlur
|
|
14599
14622
|
}), {
|
|
14600
14623
|
trailing: withCtx(() => [
|
|
14601
|
-
createVNode(_sfc_main$
|
|
14624
|
+
createVNode(_sfc_main$S, {
|
|
14602
14625
|
type: "button",
|
|
14603
14626
|
size: "xsmall",
|
|
14604
14627
|
variant: "outlined",
|
|
14605
14628
|
"leading-icon": "minus",
|
|
14606
|
-
|
|
14629
|
+
ariaLabel: `Decrease ${props.label ?? props.ariaLabel}`,
|
|
14607
14630
|
disabled: !canDecrease.value,
|
|
14608
14631
|
onClick: _cache[0] || (_cache[0] = ($event) => handleButtonClick(-1, $event)),
|
|
14609
14632
|
onPointerdown: _cache[1] || (_cache[1] = ($event) => startRepeating(-1)),
|
|
14610
14633
|
onPointerup: stopRepeating,
|
|
14611
14634
|
onPointerleave: stopRepeating,
|
|
14612
14635
|
onPointercancel: stopRepeating
|
|
14613
|
-
}, null, 8, ["
|
|
14614
|
-
createVNode(_sfc_main$
|
|
14636
|
+
}, null, 8, ["ariaLabel", "disabled"]),
|
|
14637
|
+
createVNode(_sfc_main$S, {
|
|
14615
14638
|
type: "button",
|
|
14616
14639
|
size: "xsmall",
|
|
14617
14640
|
variant: "outlined",
|
|
14618
14641
|
"leading-icon": "plus",
|
|
14619
|
-
|
|
14642
|
+
ariaLabel: `Increase ${props.label ?? props.ariaLabel}`,
|
|
14620
14643
|
disabled: !canIncrease.value,
|
|
14621
14644
|
onClick: _cache[2] || (_cache[2] = ($event) => handleButtonClick(1, $event)),
|
|
14622
14645
|
onPointerdown: _cache[3] || (_cache[3] = ($event) => startRepeating(1)),
|
|
14623
14646
|
onPointerup: stopRepeating,
|
|
14624
14647
|
onPointerleave: stopRepeating,
|
|
14625
14648
|
onPointercancel: stopRepeating
|
|
14626
|
-
}, null, 8, ["
|
|
14649
|
+
}, null, 8, ["ariaLabel", "disabled"])
|
|
14627
14650
|
]),
|
|
14628
14651
|
_: 1
|
|
14629
14652
|
}, 16, ["model-value", "inputmode", "placeholder", "disabled", "error", "autocomplete", "unit", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext"])
|
|
14630
14653
|
]),
|
|
14631
14654
|
_: 1
|
|
14632
|
-
}, 16);
|
|
14655
|
+
}, 16, ["error", "validating", "preserve-sub-text-space"]);
|
|
14633
14656
|
};
|
|
14634
14657
|
}
|
|
14635
14658
|
});
|
|
@@ -14721,7 +14744,7 @@ const parseRegexToPatternInputValue = (regex, options) => {
|
|
|
14721
14744
|
return wildcard ?? body;
|
|
14722
14745
|
};
|
|
14723
14746
|
|
|
14724
|
-
const _sfc_main$
|
|
14747
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
14725
14748
|
__name: "KdsPatternInput",
|
|
14726
14749
|
props: /* @__PURE__ */ mergeModels({
|
|
14727
14750
|
description: {},
|
|
@@ -14741,7 +14764,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14741
14764
|
}),
|
|
14742
14765
|
emits: ["update:modelValue"],
|
|
14743
14766
|
setup(__props, { expose: __expose }) {
|
|
14744
|
-
const props = __props;
|
|
14767
|
+
const props = createPropsRestProxy(__props, ["disabled", "error", "validating", "preserveSubTextSpace"]);
|
|
14745
14768
|
const regex = useModel(__props, "modelValue");
|
|
14746
14769
|
const uiValue = ref("");
|
|
14747
14770
|
const caseSensitive = ref(false);
|
|
@@ -14779,7 +14802,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14779
14802
|
focus: () => baseInput.value?.focus()
|
|
14780
14803
|
});
|
|
14781
14804
|
return (_ctx, _cache) => {
|
|
14782
|
-
return openBlock(), createBlock(BaseFormFieldWrapper,
|
|
14805
|
+
return openBlock(), createBlock(BaseFormFieldWrapper, mergeProps(props, {
|
|
14806
|
+
error: __props.error,
|
|
14807
|
+
validating: __props.validating,
|
|
14808
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
14809
|
+
}), {
|
|
14783
14810
|
default: withCtx((slotProps) => [
|
|
14784
14811
|
createVNode(BaseInput, mergeProps({
|
|
14785
14812
|
ref_key: "baseInput",
|
|
@@ -14792,14 +14819,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14792
14819
|
],
|
|
14793
14820
|
type: "text",
|
|
14794
14821
|
placeholder: props.placeholder,
|
|
14795
|
-
disabled:
|
|
14796
|
-
error:
|
|
14822
|
+
disabled: __props.disabled,
|
|
14823
|
+
error: __props.error,
|
|
14797
14824
|
autocomplete: props.autocomplete,
|
|
14798
14825
|
"leading-icon": "filter",
|
|
14799
14826
|
clearable: ""
|
|
14800
14827
|
}), {
|
|
14801
14828
|
trailing: withCtx(() => [
|
|
14802
|
-
createVNode(_sfc_main$
|
|
14829
|
+
createVNode(_sfc_main$Q, {
|
|
14803
14830
|
modelValue: caseSensitive.value,
|
|
14804
14831
|
"onUpdate:modelValue": [
|
|
14805
14832
|
_cache[0] || (_cache[0] = ($event) => caseSensitive.value = $event),
|
|
@@ -14809,10 +14836,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14809
14836
|
variant: "outlined",
|
|
14810
14837
|
"leading-icon": "case-sensitive",
|
|
14811
14838
|
title: caseSensitiveAriaLabel.value,
|
|
14812
|
-
|
|
14813
|
-
disabled:
|
|
14814
|
-
}, null, 8, ["modelValue", "title", "
|
|
14815
|
-
createVNode(_sfc_main$
|
|
14839
|
+
ariaLabel: caseSensitiveAriaLabel.value,
|
|
14840
|
+
disabled: __props.disabled
|
|
14841
|
+
}, null, 8, ["modelValue", "title", "ariaLabel", "disabled"]),
|
|
14842
|
+
createVNode(_sfc_main$Q, {
|
|
14816
14843
|
modelValue: excludeMatches.value,
|
|
14817
14844
|
"onUpdate:modelValue": [
|
|
14818
14845
|
_cache[1] || (_cache[1] = ($event) => excludeMatches.value = $event),
|
|
@@ -14822,10 +14849,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14822
14849
|
variant: "outlined",
|
|
14823
14850
|
"leading-icon": "arrows-order",
|
|
14824
14851
|
title: excludeMatchesAriaLabel.value,
|
|
14825
|
-
|
|
14826
|
-
disabled:
|
|
14827
|
-
}, null, 8, ["modelValue", "title", "
|
|
14828
|
-
createVNode(_sfc_main$
|
|
14852
|
+
ariaLabel: excludeMatchesAriaLabel.value,
|
|
14853
|
+
disabled: __props.disabled
|
|
14854
|
+
}, null, 8, ["modelValue", "title", "ariaLabel", "disabled"]),
|
|
14855
|
+
createVNode(_sfc_main$Q, {
|
|
14829
14856
|
modelValue: useRegex.value,
|
|
14830
14857
|
"onUpdate:modelValue": [
|
|
14831
14858
|
_cache[2] || (_cache[2] = ($event) => useRegex.value = $event),
|
|
@@ -14835,20 +14862,20 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14835
14862
|
variant: "outlined",
|
|
14836
14863
|
"leading-icon": "regex",
|
|
14837
14864
|
title: patternModeAriaLabel.value,
|
|
14838
|
-
|
|
14839
|
-
disabled:
|
|
14840
|
-
}, null, 8, ["modelValue", "title", "
|
|
14865
|
+
ariaLabel: patternModeAriaLabel.value,
|
|
14866
|
+
disabled: __props.disabled
|
|
14867
|
+
}, null, 8, ["modelValue", "title", "ariaLabel", "disabled"])
|
|
14841
14868
|
]),
|
|
14842
14869
|
_: 1
|
|
14843
14870
|
}, 16, ["modelValue", "placeholder", "disabled", "error", "autocomplete"])
|
|
14844
14871
|
]),
|
|
14845
14872
|
_: 1
|
|
14846
|
-
}, 16);
|
|
14873
|
+
}, 16, ["error", "validating", "preserve-sub-text-space"]);
|
|
14847
14874
|
};
|
|
14848
14875
|
}
|
|
14849
14876
|
});
|
|
14850
14877
|
|
|
14851
|
-
const _sfc_main$
|
|
14878
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
14852
14879
|
__name: "KdsSearchInput",
|
|
14853
14880
|
props: /* @__PURE__ */ mergeModels({
|
|
14854
14881
|
description: {},
|
|
@@ -14876,7 +14903,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14876
14903
|
const KdsListContainer = defineAsyncComponent(
|
|
14877
14904
|
() => Promise.resolve().then(() => KdsListContainer$1)
|
|
14878
14905
|
);
|
|
14879
|
-
const props = __props;
|
|
14906
|
+
const props = createPropsRestProxy(__props, ["placeholder", "disabled", "error", "validating", "preserveSubTextSpace"]);
|
|
14880
14907
|
const modelValue = useModel(__props, "modelValue");
|
|
14881
14908
|
const emit = __emit;
|
|
14882
14909
|
const baseInput = useTemplateRef("baseInput");
|
|
@@ -14999,10 +15026,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14999
15026
|
}
|
|
15000
15027
|
});
|
|
15001
15028
|
|
|
15002
|
-
const KdsSearchInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
15029
|
+
const KdsSearchInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__scopeId", "data-v-580aa83e"]]);
|
|
15003
15030
|
|
|
15004
|
-
const _hoisted_1$
|
|
15005
|
-
const
|
|
15031
|
+
const _hoisted_1$g = ["rows", "placeholder", "disabled", "autocomplete"];
|
|
15032
|
+
const DEFAULT_ROWS = 3;
|
|
15033
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
15006
15034
|
__name: "KdsTextarea",
|
|
15007
15035
|
props: /* @__PURE__ */ mergeModels({
|
|
15008
15036
|
description: {},
|
|
@@ -15016,15 +15044,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
15016
15044
|
placeholder: { default: "" },
|
|
15017
15045
|
disabled: { type: Boolean, default: false },
|
|
15018
15046
|
autocomplete: {},
|
|
15019
|
-
rows: { default:
|
|
15047
|
+
rows: { default: () => DEFAULT_ROWS }
|
|
15020
15048
|
}, {
|
|
15021
15049
|
"modelValue": { default: "" },
|
|
15022
15050
|
"modelModifiers": {}
|
|
15023
15051
|
}),
|
|
15024
15052
|
emits: ["update:modelValue"],
|
|
15025
15053
|
setup(__props, { expose: __expose }) {
|
|
15026
|
-
const props = __props;
|
|
15027
|
-
const normalizedRows = computed(() => Math.max(1,
|
|
15054
|
+
const props = createPropsRestProxy(__props, ["placeholder", "rows", "disabled", "error", "validating", "preserveSubTextSpace"]);
|
|
15055
|
+
const normalizedRows = computed(() => Math.max(1, __props.rows));
|
|
15028
15056
|
const modelValue = useModel(__props, "modelValue");
|
|
15029
15057
|
const textareaElement = useTemplateRef("textareaElement");
|
|
15030
15058
|
function resize() {
|
|
@@ -15048,62 +15076,66 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
15048
15076
|
}
|
|
15049
15077
|
});
|
|
15050
15078
|
return (_ctx, _cache) => {
|
|
15051
|
-
return openBlock(), createBlock(BaseFormFieldWrapper,
|
|
15079
|
+
return openBlock(), createBlock(BaseFormFieldWrapper, mergeProps(props, {
|
|
15080
|
+
error: __props.error,
|
|
15081
|
+
validating: __props.validating,
|
|
15082
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
15083
|
+
}), {
|
|
15052
15084
|
default: withCtx((slotProps) => [
|
|
15053
15085
|
withDirectives(createElementVNode("textarea", mergeProps(slotProps, {
|
|
15054
15086
|
ref_key: "textareaElement",
|
|
15055
15087
|
ref: textareaElement,
|
|
15056
15088
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
15057
|
-
class: { invalid:
|
|
15089
|
+
class: { invalid: __props.error },
|
|
15058
15090
|
rows: normalizedRows.value,
|
|
15059
|
-
placeholder:
|
|
15060
|
-
disabled:
|
|
15091
|
+
placeholder: __props.placeholder,
|
|
15092
|
+
disabled: __props.disabled,
|
|
15061
15093
|
autocomplete: props.autocomplete
|
|
15062
|
-
}), null, 16, _hoisted_1$
|
|
15094
|
+
}), null, 16, _hoisted_1$g), [
|
|
15063
15095
|
[vModelText, modelValue.value]
|
|
15064
15096
|
])
|
|
15065
15097
|
]),
|
|
15066
15098
|
_: 1
|
|
15067
|
-
}, 16);
|
|
15099
|
+
}, 16, ["error", "validating", "preserve-sub-text-space"]);
|
|
15068
15100
|
};
|
|
15069
15101
|
}
|
|
15070
15102
|
});
|
|
15071
15103
|
|
|
15072
|
-
const KdsTextarea = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
15104
|
+
const KdsTextarea = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__scopeId", "data-v-bdf12ef9"]]);
|
|
15073
15105
|
|
|
15074
|
-
const _hoisted_1$
|
|
15075
|
-
const _hoisted_2$
|
|
15106
|
+
const _hoisted_1$f = ["id", "aria-expanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-controls", "disabled"];
|
|
15107
|
+
const _hoisted_2$8 = {
|
|
15076
15108
|
key: 0,
|
|
15077
15109
|
class: "leading",
|
|
15078
15110
|
"aria-hidden": "true"
|
|
15079
15111
|
};
|
|
15080
|
-
const _hoisted_3$
|
|
15081
|
-
const _hoisted_4$
|
|
15112
|
+
const _hoisted_3$5 = ["id"];
|
|
15113
|
+
const _hoisted_4$3 = {
|
|
15082
15114
|
class: "trailing",
|
|
15083
15115
|
"aria-hidden": "true"
|
|
15084
15116
|
};
|
|
15085
|
-
const _sfc_main$
|
|
15117
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
15086
15118
|
__name: "BaseDropdown",
|
|
15087
15119
|
props: /* @__PURE__ */ mergeModels({
|
|
15088
|
-
text: {
|
|
15120
|
+
text: {},
|
|
15089
15121
|
placeholder: {},
|
|
15090
15122
|
disabled: { type: Boolean, default: false },
|
|
15091
15123
|
error: { type: Boolean, default: false },
|
|
15092
15124
|
missing: { type: Boolean, default: false },
|
|
15093
|
-
accessory: {
|
|
15094
|
-
id: {
|
|
15095
|
-
ariaLabelledby: {
|
|
15096
|
-
ariaDescribedby: {
|
|
15097
|
-
ariaLabel: {
|
|
15098
|
-
ariaInvalid: { type: Boolean, default: void 0 },
|
|
15099
|
-
popoverId: {
|
|
15125
|
+
accessory: {},
|
|
15126
|
+
id: {},
|
|
15127
|
+
ariaLabelledby: {},
|
|
15128
|
+
ariaDescribedby: {},
|
|
15129
|
+
ariaLabel: {},
|
|
15130
|
+
ariaInvalid: { type: Boolean, default: () => void 0 },
|
|
15131
|
+
popoverId: {}
|
|
15100
15132
|
}, {
|
|
15101
15133
|
"open": { type: Boolean, ...{ default: false } },
|
|
15102
15134
|
"openModifiers": {}
|
|
15103
15135
|
}),
|
|
15104
15136
|
emits: /* @__PURE__ */ mergeModels(["click", "keydown"], ["update:open"]),
|
|
15105
15137
|
setup(__props, { emit: __emit }) {
|
|
15106
|
-
const props = __props;
|
|
15138
|
+
const props = createPropsRestProxy(__props, ["disabled", "error", "missing", "ariaInvalid"]);
|
|
15107
15139
|
const open = useModel(__props, "open");
|
|
15108
15140
|
const valueTextId = useId();
|
|
15109
15141
|
const ariaLabelledby = computed(() => {
|
|
@@ -15124,7 +15156,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15124
15156
|
});
|
|
15125
15157
|
const emit = __emit;
|
|
15126
15158
|
const onKeydown = (event) => {
|
|
15127
|
-
if (
|
|
15159
|
+
if (__props.disabled) {
|
|
15128
15160
|
return;
|
|
15129
15161
|
}
|
|
15130
15162
|
emit("keydown", event);
|
|
@@ -15141,21 +15173,21 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15141
15173
|
return (_ctx, _cache) => {
|
|
15142
15174
|
return openBlock(), createElementBlock("button", {
|
|
15143
15175
|
id: props.id,
|
|
15144
|
-
class: normalizeClass(["kds-dropdown-trigger-button", { error:
|
|
15176
|
+
class: normalizeClass(["kds-dropdown-trigger-button", { error: __props.error }]),
|
|
15145
15177
|
type: "button",
|
|
15146
15178
|
"aria-expanded": open.value,
|
|
15147
15179
|
"aria-labelledby": ariaLabelledby.value,
|
|
15148
15180
|
"aria-describedby": props.ariaDescribedby,
|
|
15149
15181
|
"aria-label": effectiveAriaLabel.value,
|
|
15150
|
-
"aria-invalid":
|
|
15182
|
+
"aria-invalid": __props.ariaInvalid,
|
|
15151
15183
|
"aria-controls": props.popoverId,
|
|
15152
15184
|
"aria-haspopup": "dialog",
|
|
15153
|
-
disabled:
|
|
15154
|
-
onClick: _cache[0] || (_cache[0] = ($event) => !
|
|
15185
|
+
disabled: __props.disabled,
|
|
15186
|
+
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("click")),
|
|
15155
15187
|
onKeydown
|
|
15156
15188
|
}, [
|
|
15157
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
15158
|
-
createVNode(_sfc_main$
|
|
15189
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$8, [
|
|
15190
|
+
createVNode(_sfc_main$N, {
|
|
15159
15191
|
accessory: props.accessory,
|
|
15160
15192
|
size: "medium"
|
|
15161
15193
|
}, null, 8, ["accessory"])
|
|
@@ -15163,26 +15195,26 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15163
15195
|
createElementVNode("span", {
|
|
15164
15196
|
id: unref(valueTextId),
|
|
15165
15197
|
class: normalizeClass(["text", {
|
|
15166
|
-
placeholder: !props.text && !
|
|
15167
|
-
missing:
|
|
15198
|
+
placeholder: !props.text && !__props.disabled,
|
|
15199
|
+
missing: __props.missing
|
|
15168
15200
|
}])
|
|
15169
|
-
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$
|
|
15170
|
-
createElementVNode("span", _hoisted_4$
|
|
15201
|
+
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$5),
|
|
15202
|
+
createElementVNode("span", _hoisted_4$3, [
|
|
15171
15203
|
createVNode(KdsIcon, {
|
|
15172
15204
|
name: open.value ? "chevron-up" : "chevron-down",
|
|
15173
15205
|
size: "small"
|
|
15174
15206
|
}, null, 8, ["name"])
|
|
15175
15207
|
])
|
|
15176
|
-
], 42, _hoisted_1$
|
|
15208
|
+
], 42, _hoisted_1$f);
|
|
15177
15209
|
};
|
|
15178
15210
|
}
|
|
15179
15211
|
});
|
|
15180
15212
|
|
|
15181
|
-
const BaseDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
15213
|
+
const BaseDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scopeId", "data-v-cf3becf9"]]);
|
|
15182
15214
|
|
|
15183
|
-
const _hoisted_1$
|
|
15184
|
-
const _hoisted_2$
|
|
15185
|
-
const _sfc_main$
|
|
15215
|
+
const _hoisted_1$e = { class: "kds-dropdown-container" };
|
|
15216
|
+
const _hoisted_2$7 = { class: "kds-dropdown-container-sticky-top" };
|
|
15217
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
15186
15218
|
__name: "DropdownContainer",
|
|
15187
15219
|
props: /* @__PURE__ */ mergeModels({
|
|
15188
15220
|
emptyText: {},
|
|
@@ -15249,8 +15281,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15249
15281
|
focus: () => searchEl.value?.focus()
|
|
15250
15282
|
});
|
|
15251
15283
|
return (_ctx, _cache) => {
|
|
15252
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15253
|
-
createElementVNode("div", _hoisted_2$
|
|
15284
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
15285
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
15254
15286
|
createVNode(BaseInput, {
|
|
15255
15287
|
ref_key: "searchEl",
|
|
15256
15288
|
ref: searchEl,
|
|
@@ -15282,9 +15314,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15282
15314
|
}
|
|
15283
15315
|
});
|
|
15284
15316
|
|
|
15285
|
-
const DropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
15317
|
+
const DropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__scopeId", "data-v-9f49ff8b"]]);
|
|
15286
15318
|
|
|
15287
|
-
const _sfc_main$
|
|
15319
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
15288
15320
|
__name: "KdsDropdown",
|
|
15289
15321
|
props: /* @__PURE__ */ mergeModels({
|
|
15290
15322
|
placeholder: { default: "Select" },
|
|
@@ -15305,7 +15337,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15305
15337
|
}),
|
|
15306
15338
|
emits: ["update:modelValue"],
|
|
15307
15339
|
setup(__props) {
|
|
15308
|
-
const props = __props;
|
|
15340
|
+
const props = createPropsRestProxy(__props, ["placeholder", "disabled", "loading", "error", "validating", "preserveSubTextSpace"]);
|
|
15309
15341
|
const modelValue = useModel(__props, "modelValue");
|
|
15310
15342
|
const open = ref(false);
|
|
15311
15343
|
const popoverEl = useTemplateRef("popoverEl");
|
|
@@ -15330,18 +15362,18 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15330
15362
|
"aria-label": props.ariaLabel,
|
|
15331
15363
|
description: props.description,
|
|
15332
15364
|
"sub-text": props.subText,
|
|
15333
|
-
error:
|
|
15334
|
-
validating:
|
|
15335
|
-
"preserve-sub-text-space":
|
|
15365
|
+
error: __props.error,
|
|
15366
|
+
validating: __props.validating,
|
|
15367
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
15336
15368
|
}, {
|
|
15337
15369
|
default: withCtx((slotProps) => [
|
|
15338
15370
|
createVNode(BaseDropdown, mergeProps(slotProps, {
|
|
15339
15371
|
open: open.value,
|
|
15340
15372
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
15341
15373
|
text: modelValue.value && !selectedOption.value ? `(Missing) ${modelValue.value}` : selectedOption.value?.text,
|
|
15342
|
-
placeholder:
|
|
15343
|
-
disabled:
|
|
15344
|
-
error:
|
|
15374
|
+
placeholder: __props.placeholder,
|
|
15375
|
+
disabled: __props.disabled,
|
|
15376
|
+
error: __props.error,
|
|
15345
15377
|
missing: !!modelValue.value && !selectedOption.value,
|
|
15346
15378
|
accessory: selectedOption.value?.accessory,
|
|
15347
15379
|
style: popoverEl.value?.anchorStyle,
|
|
@@ -15365,7 +15397,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15365
15397
|
modelValue: modelValue.value,
|
|
15366
15398
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => modelValue.value = $event),
|
|
15367
15399
|
"possible-values": props.possibleValues,
|
|
15368
|
-
loading:
|
|
15400
|
+
loading: __props.loading,
|
|
15369
15401
|
"empty-text": "No entries found"
|
|
15370
15402
|
}, null, 8, ["modelValue", "possible-values", "loading"])
|
|
15371
15403
|
]),
|
|
@@ -15378,9 +15410,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15378
15410
|
}
|
|
15379
15411
|
});
|
|
15380
15412
|
|
|
15381
|
-
const _hoisted_1$
|
|
15382
|
-
const _hoisted_2$
|
|
15383
|
-
const _sfc_main$
|
|
15413
|
+
const _hoisted_1$d = ["disabled"];
|
|
15414
|
+
const _hoisted_2$6 = ["title"];
|
|
15415
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
15384
15416
|
__name: "KdsListItemButton",
|
|
15385
15417
|
props: {
|
|
15386
15418
|
label: {},
|
|
@@ -15389,42 +15421,42 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
15389
15421
|
},
|
|
15390
15422
|
emits: ["click"],
|
|
15391
15423
|
setup(__props, { emit: __emit }) {
|
|
15392
|
-
const props = __props;
|
|
15424
|
+
const props = createPropsRestProxy(__props, ["disabled"]);
|
|
15393
15425
|
const emit = __emit;
|
|
15394
15426
|
const labelEl = useTemplateRef("labelEl");
|
|
15395
15427
|
const { isTruncated: isLabelTruncated } = useKdsIsTruncated(labelEl);
|
|
15396
15428
|
return (_ctx, _cache) => {
|
|
15397
15429
|
return openBlock(), createElementBlock("button", {
|
|
15398
15430
|
type: "button",
|
|
15399
|
-
disabled:
|
|
15431
|
+
disabled: __props.disabled,
|
|
15400
15432
|
class: "kds-list-item-button",
|
|
15401
15433
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
|
|
15402
15434
|
}, [
|
|
15403
15435
|
createVNode(unref(KdsIcon), {
|
|
15404
15436
|
name: props.leadingIcon,
|
|
15405
15437
|
size: "small",
|
|
15406
|
-
disabled:
|
|
15438
|
+
disabled: __props.disabled
|
|
15407
15439
|
}, null, 8, ["name", "disabled"]),
|
|
15408
15440
|
createElementVNode("span", {
|
|
15409
15441
|
ref_key: "labelEl",
|
|
15410
15442
|
ref: labelEl,
|
|
15411
15443
|
class: "label",
|
|
15412
15444
|
title: unref(isLabelTruncated) ? props.label : void 0
|
|
15413
|
-
}, toDisplayString(props.label), 9, _hoisted_2$
|
|
15414
|
-
], 8, _hoisted_1$
|
|
15445
|
+
}, toDisplayString(props.label), 9, _hoisted_2$6)
|
|
15446
|
+
], 8, _hoisted_1$d);
|
|
15415
15447
|
};
|
|
15416
15448
|
}
|
|
15417
15449
|
});
|
|
15418
15450
|
|
|
15419
|
-
const KdsListItemButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
15451
|
+
const KdsListItemButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__scopeId", "data-v-13945d12"]]);
|
|
15420
15452
|
|
|
15421
|
-
const _hoisted_1$
|
|
15422
|
-
const _hoisted_2$
|
|
15423
|
-
const _hoisted_3$
|
|
15453
|
+
const _hoisted_1$c = { class: "kds-multi-select-dropdown-options" };
|
|
15454
|
+
const _hoisted_2$5 = { class: "kds-multi-select-dropdown-search" };
|
|
15455
|
+
const _hoisted_3$4 = {
|
|
15424
15456
|
key: 0,
|
|
15425
15457
|
class: "kds-multi-select-dropdown-footer"
|
|
15426
15458
|
};
|
|
15427
|
-
const _sfc_main$
|
|
15459
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
15428
15460
|
__name: "MultiSelectDropdownContainer",
|
|
15429
15461
|
props: /* @__PURE__ */ mergeModels({
|
|
15430
15462
|
emptyText: {},
|
|
@@ -15440,7 +15472,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
15440
15472
|
emits: /* @__PURE__ */ mergeModels(["addValue"], ["update:modelValue", "update:searchValue"]),
|
|
15441
15473
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15442
15474
|
const ADD_NEW_VALUE_ID = `__kds-add-new-${useId()}__`;
|
|
15443
|
-
const props = __props;
|
|
15475
|
+
const props = createPropsRestProxy(__props, ["loading", "allowNewValues"]);
|
|
15444
15476
|
const emit = __emit;
|
|
15445
15477
|
const modelValue = useModel(__props, "modelValue");
|
|
15446
15478
|
const searchValue = useModel(__props, "searchValue");
|
|
@@ -15462,7 +15494,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
15462
15494
|
});
|
|
15463
15495
|
const canAddNewValue = computed(() => {
|
|
15464
15496
|
const trimmed = searchValue.value.trim();
|
|
15465
|
-
if (!
|
|
15497
|
+
if (!__props.allowNewValues || trimmed.length === 0) {
|
|
15466
15498
|
return false;
|
|
15467
15499
|
}
|
|
15468
15500
|
const lower = trimmed.toLowerCase();
|
|
@@ -15540,8 +15572,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
15540
15572
|
}
|
|
15541
15573
|
});
|
|
15542
15574
|
return (_ctx, _cache) => {
|
|
15543
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15544
|
-
createElementVNode("div", _hoisted_2$
|
|
15575
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
15576
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
15545
15577
|
createVNode(BaseInput, {
|
|
15546
15578
|
ref_key: "searchEl",
|
|
15547
15579
|
ref: searchEl,
|
|
@@ -15563,14 +15595,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
15563
15595
|
class: normalizeClass(["kds-multi-select-dropdown-list", {
|
|
15564
15596
|
multiline: props.possibleValues.some((o) => o.subText !== void 0)
|
|
15565
15597
|
}]),
|
|
15566
|
-
"possible-values":
|
|
15567
|
-
loading:
|
|
15598
|
+
"possible-values": __props.loading ? [] : listOptions.value,
|
|
15599
|
+
loading: __props.loading,
|
|
15568
15600
|
"empty-text": props.emptyText,
|
|
15569
15601
|
"controlled-externally": "",
|
|
15570
15602
|
"aria-label": "Dropdown options",
|
|
15571
15603
|
onItemClick: _cache[4] || (_cache[4] = ($event) => $event !== void 0 && onItemClick($event))
|
|
15572
15604
|
}, null, 8, ["class", "possible-values", "loading", "empty-text"]),
|
|
15573
|
-
!
|
|
15605
|
+
!__props.loading && visibleEnabledIds.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
15574
15606
|
createVNode(unref(KdsListItemButton), {
|
|
15575
15607
|
label: anyVisibleSelected.value ? "Clear all" : "Select all",
|
|
15576
15608
|
"leading-icon": anyVisibleSelected.value ? "trash" : "checkmark",
|
|
@@ -15583,9 +15615,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
15583
15615
|
}
|
|
15584
15616
|
});
|
|
15585
15617
|
|
|
15586
|
-
const MultiSelectDropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
15618
|
+
const MultiSelectDropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-9b631765"]]);
|
|
15587
15619
|
|
|
15588
|
-
const _sfc_main$
|
|
15620
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
15589
15621
|
__name: "KdsMultiSelectDropdown",
|
|
15590
15622
|
props: /* @__PURE__ */ mergeModels({
|
|
15591
15623
|
placeholder: { default: "Select" },
|
|
@@ -15607,7 +15639,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
15607
15639
|
}),
|
|
15608
15640
|
emits: ["update:modelValue"],
|
|
15609
15641
|
setup(__props) {
|
|
15610
|
-
const props = __props;
|
|
15642
|
+
const props = createPropsRestProxy(__props, ["placeholder", "disabled", "loading", "allowNewValues", "error", "validating", "preserveSubTextSpace"]);
|
|
15611
15643
|
const modelValue = useModel(__props, "modelValue");
|
|
15612
15644
|
const open = ref(false);
|
|
15613
15645
|
const dropdownContainerEl = useTemplateRef("dropdownContainerEl");
|
|
@@ -15618,14 +15650,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
15618
15650
|
}
|
|
15619
15651
|
});
|
|
15620
15652
|
const addedOptions = ref([]);
|
|
15621
|
-
watch(
|
|
15622
|
-
|
|
15623
|
-
|
|
15624
|
-
if (!allowNew) {
|
|
15625
|
-
addedOptions.value = [];
|
|
15626
|
-
}
|
|
15653
|
+
watch([() => props.possibleValues, () => __props.allowNewValues], ([, allowNew]) => {
|
|
15654
|
+
if (!allowNew) {
|
|
15655
|
+
addedOptions.value = [];
|
|
15627
15656
|
}
|
|
15628
|
-
);
|
|
15657
|
+
});
|
|
15629
15658
|
const allPossibleValues = computed(() => {
|
|
15630
15659
|
const baseIds = new Set(props.possibleValues.map((o) => o.id));
|
|
15631
15660
|
const deduped = addedOptions.value.filter((o) => !baseIds.has(o.id));
|
|
@@ -15660,18 +15689,18 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
15660
15689
|
"aria-label": props.ariaLabel,
|
|
15661
15690
|
description: props.description,
|
|
15662
15691
|
"sub-text": props.subText,
|
|
15663
|
-
error:
|
|
15664
|
-
validating:
|
|
15665
|
-
"preserve-sub-text-space":
|
|
15692
|
+
error: __props.error,
|
|
15693
|
+
validating: __props.validating,
|
|
15694
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
15666
15695
|
}, {
|
|
15667
15696
|
default: withCtx((slotProps) => [
|
|
15668
15697
|
createVNode(BaseDropdown, mergeProps(slotProps, {
|
|
15669
15698
|
open: open.value,
|
|
15670
15699
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
15671
15700
|
text: summary.value,
|
|
15672
|
-
placeholder:
|
|
15673
|
-
disabled:
|
|
15674
|
-
error:
|
|
15701
|
+
placeholder: __props.placeholder,
|
|
15702
|
+
disabled: __props.disabled,
|
|
15703
|
+
error: __props.error,
|
|
15675
15704
|
missing: missingIds.value.length > 0,
|
|
15676
15705
|
style: popoverEl.value?.anchorStyle,
|
|
15677
15706
|
"popover-id": popoverEl.value?.popoverId,
|
|
@@ -15694,8 +15723,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
15694
15723
|
modelValue: modelValue.value,
|
|
15695
15724
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => modelValue.value = $event),
|
|
15696
15725
|
"possible-values": allPossibleValues.value,
|
|
15697
|
-
loading:
|
|
15698
|
-
"allow-new-values":
|
|
15726
|
+
loading: __props.loading,
|
|
15727
|
+
"allow-new-values": __props.allowNewValues,
|
|
15699
15728
|
"empty-text": "No entries found",
|
|
15700
15729
|
onAddValue
|
|
15701
15730
|
}, null, 8, ["modelValue", "possible-values", "loading", "allow-new-values"])
|
|
@@ -15709,6 +15738,741 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
15709
15738
|
}
|
|
15710
15739
|
});
|
|
15711
15740
|
|
|
15741
|
+
const kdsDimensionComponentHeight12p5x = 200;
|
|
15742
|
+
const kdsDimensionComponentHeight1p5x = 24;
|
|
15743
|
+
const kdsDimensionComponentHeight20x = 320;
|
|
15744
|
+
const kdsSpacingContainer0p10x = 1;
|
|
15745
|
+
|
|
15746
|
+
const _hoisted_1$b = { class: "kds-resize-handle-area" };
|
|
15747
|
+
const _hoisted_2$4 = ["aria-label"];
|
|
15748
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
15749
|
+
__name: "ResizeHandle",
|
|
15750
|
+
props: {
|
|
15751
|
+
numberOfHandles: { default: 1 },
|
|
15752
|
+
handleGap: { default: "0px" }
|
|
15753
|
+
},
|
|
15754
|
+
setup(__props) {
|
|
15755
|
+
useCssVars((_ctx) => ({
|
|
15756
|
+
"v1dcb931e": _ctx.handleGap,
|
|
15757
|
+
"v4bcf7fe4": handleWidth.value
|
|
15758
|
+
}));
|
|
15759
|
+
const normalizedNumberOfHandles = computed(() => {
|
|
15760
|
+
const raw = Math.floor(__props.numberOfHandles);
|
|
15761
|
+
return Math.max(1, raw || 1);
|
|
15762
|
+
});
|
|
15763
|
+
const hasMultipleHandles = computed(() => normalizedNumberOfHandles.value > 1);
|
|
15764
|
+
const handleWidth = computed(() => {
|
|
15765
|
+
const n = normalizedNumberOfHandles.value;
|
|
15766
|
+
const gap = __props.handleGap;
|
|
15767
|
+
return `calc((100% - ${n - 1} * ${gap}) / ${2 * n})`;
|
|
15768
|
+
});
|
|
15769
|
+
return (_ctx, _cache) => {
|
|
15770
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
15771
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(normalizedNumberOfHandles.value, (i) => {
|
|
15772
|
+
return openBlock(), createElementBlock("button", {
|
|
15773
|
+
key: i,
|
|
15774
|
+
class: "kds-resize-handle",
|
|
15775
|
+
"aria-label": hasMultipleHandles.value ? `Resize vertically (handle ${i} of ${normalizedNumberOfHandles.value})` : "Resize vertically",
|
|
15776
|
+
type: "button"
|
|
15777
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
15778
|
+
createElementVNode("span", { class: "kds-resize-handle-line" }, null, -1)
|
|
15779
|
+
])], 8, _hoisted_2$4);
|
|
15780
|
+
}), 128))
|
|
15781
|
+
]);
|
|
15782
|
+
};
|
|
15783
|
+
}
|
|
15784
|
+
});
|
|
15785
|
+
|
|
15786
|
+
const ResizeHandle = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["__scopeId", "data-v-df3803d4"]]);
|
|
15787
|
+
|
|
15788
|
+
const _hoisted_1$a = {
|
|
15789
|
+
ref: "content",
|
|
15790
|
+
class: "kds-resize-container-content"
|
|
15791
|
+
};
|
|
15792
|
+
const DEFAULT_INITIAL_HEIGHT = 200;
|
|
15793
|
+
const KEYBOARD_RESIZE_STEP = 10;
|
|
15794
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
15795
|
+
__name: "KdsResizeContainer",
|
|
15796
|
+
props: {
|
|
15797
|
+
height: { default: () => DEFAULT_INITIAL_HEIGHT },
|
|
15798
|
+
minHeight: { default: 0 },
|
|
15799
|
+
maxHeight: {},
|
|
15800
|
+
numberOfHandles: { default: 1 },
|
|
15801
|
+
handleGap: { default: "0px" }
|
|
15802
|
+
},
|
|
15803
|
+
setup(__props) {
|
|
15804
|
+
const clamp = (value) => Math.max(
|
|
15805
|
+
__props.minHeight,
|
|
15806
|
+
__props.maxHeight === void 0 ? value : Math.min(value, __props.maxHeight)
|
|
15807
|
+
);
|
|
15808
|
+
const currentHeight = ref(clamp(__props.height));
|
|
15809
|
+
const isMaximized = ref(false);
|
|
15810
|
+
const contentRef = useTemplateRef("content");
|
|
15811
|
+
const heightAtDragStart = ref(0);
|
|
15812
|
+
const startY = ref(null);
|
|
15813
|
+
const { activePointerId, onPointerDown, onPointerMove, onPointerUp } = usePointerHandler((event) => {
|
|
15814
|
+
if (startY.value === null) {
|
|
15815
|
+
startY.value = event.clientY;
|
|
15816
|
+
heightAtDragStart.value = contentRef.value?.getBoundingClientRect().height ?? currentHeight.value;
|
|
15817
|
+
currentHeight.value = clamp(heightAtDragStart.value);
|
|
15818
|
+
isMaximized.value = false;
|
|
15819
|
+
return;
|
|
15820
|
+
}
|
|
15821
|
+
currentHeight.value = clamp(
|
|
15822
|
+
heightAtDragStart.value + event.clientY - startY.value
|
|
15823
|
+
);
|
|
15824
|
+
});
|
|
15825
|
+
watch(activePointerId, (id) => {
|
|
15826
|
+
if (id === null) {
|
|
15827
|
+
startY.value = null;
|
|
15828
|
+
}
|
|
15829
|
+
});
|
|
15830
|
+
const toggleMaximized = () => {
|
|
15831
|
+
isMaximized.value = !isMaximized.value;
|
|
15832
|
+
};
|
|
15833
|
+
const onKeydown = (event) => {
|
|
15834
|
+
const renderedHeight = contentRef.value?.getBoundingClientRect().height ?? currentHeight.value;
|
|
15835
|
+
if (event.key === "ArrowDown") {
|
|
15836
|
+
currentHeight.value = clamp(renderedHeight + KEYBOARD_RESIZE_STEP);
|
|
15837
|
+
isMaximized.value = false;
|
|
15838
|
+
event.preventDefault();
|
|
15839
|
+
} else if (event.key === "ArrowUp") {
|
|
15840
|
+
currentHeight.value = clamp(renderedHeight - KEYBOARD_RESIZE_STEP);
|
|
15841
|
+
isMaximized.value = false;
|
|
15842
|
+
event.preventDefault();
|
|
15843
|
+
} else if (event.key === "Enter" || event.key === " ") {
|
|
15844
|
+
event.preventDefault();
|
|
15845
|
+
toggleMaximized();
|
|
15846
|
+
}
|
|
15847
|
+
};
|
|
15848
|
+
const contentStyle = computed(() => ({
|
|
15849
|
+
minBlockSize: `${__props.minHeight}px`,
|
|
15850
|
+
blockSize: isMaximized.value ? "fit-content" : `${currentHeight.value}px`,
|
|
15851
|
+
maxBlockSize: __props.maxHeight === void 0 ? void 0 : `${__props.maxHeight}px`
|
|
15852
|
+
}));
|
|
15853
|
+
return (_ctx, _cache) => {
|
|
15854
|
+
return openBlock(), createElementBlock("div", {
|
|
15855
|
+
class: normalizeClass(["kds-resize-container", { dragging: unref(activePointerId) !== null }])
|
|
15856
|
+
}, [
|
|
15857
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
15858
|
+
renderSlot(_ctx.$slots, "default", { contentStyle: contentStyle.value }, void 0, true)
|
|
15859
|
+
], 512),
|
|
15860
|
+
createVNode(ResizeHandle, {
|
|
15861
|
+
"number-of-handles": __props.numberOfHandles,
|
|
15862
|
+
"handle-gap": __props.handleGap,
|
|
15863
|
+
onPointerdown: unref(onPointerDown),
|
|
15864
|
+
onPointermove: withModifiers(unref(onPointerMove), ["prevent"]),
|
|
15865
|
+
onLostpointercapture: unref(onPointerUp),
|
|
15866
|
+
onKeydown,
|
|
15867
|
+
onDblclick: toggleMaximized
|
|
15868
|
+
}, null, 8, ["number-of-handles", "handle-gap", "onPointerdown", "onPointermove", "onLostpointercapture"])
|
|
15869
|
+
], 2);
|
|
15870
|
+
};
|
|
15871
|
+
}
|
|
15872
|
+
});
|
|
15873
|
+
|
|
15874
|
+
const KdsResizeContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$b, [["__scopeId", "data-v-403e065b"]]);
|
|
15875
|
+
|
|
15876
|
+
const CLICK_META_KEY_TIMEOUT = 250;
|
|
15877
|
+
const useMultiSelectListBoxSelection = ({
|
|
15878
|
+
modelValue,
|
|
15879
|
+
allValues,
|
|
15880
|
+
disabled,
|
|
15881
|
+
generateOptionId,
|
|
15882
|
+
scrollToIndex
|
|
15883
|
+
}) => {
|
|
15884
|
+
const currentKeyNavIndex = ref(-1);
|
|
15885
|
+
const isKeyboardNavigating = ref(false);
|
|
15886
|
+
const shiftStartIndex = ref(-1);
|
|
15887
|
+
const draggingStartIndex = ref(-1);
|
|
15888
|
+
const draggingInverseMode = ref(false);
|
|
15889
|
+
const mouseTriggeredFocus = ref(false);
|
|
15890
|
+
const selectedSet = computed(() => new Set(modelValue.value));
|
|
15891
|
+
const isCurrentValue = (id) => selectedSet.value.has(id);
|
|
15892
|
+
const activeDescendantId = computed(() => {
|
|
15893
|
+
if (!isKeyboardNavigating.value) {
|
|
15894
|
+
return void 0;
|
|
15895
|
+
}
|
|
15896
|
+
const item = allValues.value[currentKeyNavIndex.value];
|
|
15897
|
+
return item ? generateOptionId(item.id) : void 0;
|
|
15898
|
+
});
|
|
15899
|
+
const setSelectedNoShiftReset = (values) => {
|
|
15900
|
+
modelValue.value = values;
|
|
15901
|
+
};
|
|
15902
|
+
const setSelected = (values) => {
|
|
15903
|
+
shiftStartIndex.value = -1;
|
|
15904
|
+
setSelectedNoShiftReset(values);
|
|
15905
|
+
};
|
|
15906
|
+
const toggleSelection = (value) => {
|
|
15907
|
+
if (selectedSet.value.has(value)) {
|
|
15908
|
+
setSelected(modelValue.value.filter((v) => v !== value));
|
|
15909
|
+
} else {
|
|
15910
|
+
setSelected([...modelValue.value, value]);
|
|
15911
|
+
}
|
|
15912
|
+
};
|
|
15913
|
+
const setSelectedToIndex = (index) => {
|
|
15914
|
+
const item = allValues.value[index];
|
|
15915
|
+
if (item) {
|
|
15916
|
+
setSelected([item.id]);
|
|
15917
|
+
}
|
|
15918
|
+
};
|
|
15919
|
+
watch(
|
|
15920
|
+
() => allValues.value.length,
|
|
15921
|
+
(length) => {
|
|
15922
|
+
const maxIndex = length - 1;
|
|
15923
|
+
if (maxIndex < 0) {
|
|
15924
|
+
currentKeyNavIndex.value = -1;
|
|
15925
|
+
} else {
|
|
15926
|
+
currentKeyNavIndex.value = Math.min(
|
|
15927
|
+
Math.max(currentKeyNavIndex.value, 0),
|
|
15928
|
+
maxIndex
|
|
15929
|
+
);
|
|
15930
|
+
}
|
|
15931
|
+
if (isKeyboardNavigating.value) {
|
|
15932
|
+
setSelectedToIndex(currentKeyNavIndex.value);
|
|
15933
|
+
}
|
|
15934
|
+
}
|
|
15935
|
+
);
|
|
15936
|
+
const getPossibleValuesInSection = (first, second) => {
|
|
15937
|
+
const start = Math.max(0, Math.min(first, second));
|
|
15938
|
+
const end = Math.max(0, first, second);
|
|
15939
|
+
return allValues.value.slice(start, end + 1).map((x) => x.id);
|
|
15940
|
+
};
|
|
15941
|
+
const handleCtrlClick = (value, index) => {
|
|
15942
|
+
currentKeyNavIndex.value = index;
|
|
15943
|
+
toggleSelection(value);
|
|
15944
|
+
};
|
|
15945
|
+
let metaClickTimer = null;
|
|
15946
|
+
const cancelPendingMetaClick = () => {
|
|
15947
|
+
if (metaClickTimer !== null) {
|
|
15948
|
+
clearTimeout(metaClickTimer);
|
|
15949
|
+
metaClickTimer = null;
|
|
15950
|
+
}
|
|
15951
|
+
};
|
|
15952
|
+
const debouncedHandleCtrlClick = (value, index) => {
|
|
15953
|
+
cancelPendingMetaClick();
|
|
15954
|
+
metaClickTimer = setTimeout(() => {
|
|
15955
|
+
handleCtrlClick(value, index);
|
|
15956
|
+
metaClickTimer = null;
|
|
15957
|
+
}, CLICK_META_KEY_TIMEOUT);
|
|
15958
|
+
};
|
|
15959
|
+
const handleClick = (event, value, index) => {
|
|
15960
|
+
if (disabled.value) {
|
|
15961
|
+
return;
|
|
15962
|
+
}
|
|
15963
|
+
isKeyboardNavigating.value = false;
|
|
15964
|
+
cancelPendingMetaClick();
|
|
15965
|
+
event.preventDefault();
|
|
15966
|
+
if (event.metaKey) {
|
|
15967
|
+
debouncedHandleCtrlClick(value, index);
|
|
15968
|
+
return;
|
|
15969
|
+
}
|
|
15970
|
+
if (event.ctrlKey) {
|
|
15971
|
+
handleCtrlClick(value, index);
|
|
15972
|
+
return;
|
|
15973
|
+
}
|
|
15974
|
+
if (event.shiftKey) {
|
|
15975
|
+
setSelectedNoShiftReset(
|
|
15976
|
+
getPossibleValuesInSection(currentKeyNavIndex.value, index)
|
|
15977
|
+
);
|
|
15978
|
+
return;
|
|
15979
|
+
}
|
|
15980
|
+
currentKeyNavIndex.value = index;
|
|
15981
|
+
setSelected([value]);
|
|
15982
|
+
};
|
|
15983
|
+
const getDataOptionIndex = (target) => target.closest("[data-option-index]")?.dataset.optionIndex;
|
|
15984
|
+
const onStartDrag = (e) => {
|
|
15985
|
+
if (disabled.value) {
|
|
15986
|
+
return;
|
|
15987
|
+
}
|
|
15988
|
+
mouseTriggeredFocus.value = true;
|
|
15989
|
+
isKeyboardNavigating.value = false;
|
|
15990
|
+
if (e.shiftKey) {
|
|
15991
|
+
return;
|
|
15992
|
+
}
|
|
15993
|
+
if (e.ctrlKey || e.metaKey) {
|
|
15994
|
+
draggingInverseMode.value = true;
|
|
15995
|
+
}
|
|
15996
|
+
const index = getDataOptionIndex(e.target);
|
|
15997
|
+
if (index !== void 0) {
|
|
15998
|
+
draggingStartIndex.value = Number(index);
|
|
15999
|
+
}
|
|
16000
|
+
};
|
|
16001
|
+
const onDrag = (e) => {
|
|
16002
|
+
if (draggingStartIndex.value === -1) {
|
|
16003
|
+
return;
|
|
16004
|
+
}
|
|
16005
|
+
const dataIndex = getDataOptionIndex(e.target);
|
|
16006
|
+
if (dataIndex === void 0) {
|
|
16007
|
+
return;
|
|
16008
|
+
}
|
|
16009
|
+
let sectionValues = getPossibleValuesInSection(
|
|
16010
|
+
draggingStartIndex.value,
|
|
16011
|
+
Number(dataIndex)
|
|
16012
|
+
);
|
|
16013
|
+
if (draggingInverseMode.value) {
|
|
16014
|
+
sectionValues = modelValue.value.filter(
|
|
16015
|
+
(x) => !sectionValues.includes(x)
|
|
16016
|
+
);
|
|
16017
|
+
}
|
|
16018
|
+
setSelected(sectionValues);
|
|
16019
|
+
};
|
|
16020
|
+
const onStopDrag = () => {
|
|
16021
|
+
draggingStartIndex.value = -1;
|
|
16022
|
+
draggingInverseMode.value = false;
|
|
16023
|
+
};
|
|
16024
|
+
useMousePressed({
|
|
16025
|
+
touch: false,
|
|
16026
|
+
drag: false,
|
|
16027
|
+
onReleased: onStopDrag
|
|
16028
|
+
});
|
|
16029
|
+
const isOutOfRange = (index) => index < 0 || index >= allValues.value.length;
|
|
16030
|
+
const navigateTo = (next, select) => {
|
|
16031
|
+
if (select === "shift") {
|
|
16032
|
+
if (shiftStartIndex.value === -1) {
|
|
16033
|
+
shiftStartIndex.value = Math.max(0, currentKeyNavIndex.value);
|
|
16034
|
+
}
|
|
16035
|
+
setSelectedNoShiftReset(
|
|
16036
|
+
getPossibleValuesInSection(shiftStartIndex.value, next)
|
|
16037
|
+
);
|
|
16038
|
+
} else {
|
|
16039
|
+
setSelectedToIndex(next);
|
|
16040
|
+
}
|
|
16041
|
+
currentKeyNavIndex.value = next;
|
|
16042
|
+
scrollToIndex(next);
|
|
16043
|
+
};
|
|
16044
|
+
const onArrowDown = () => {
|
|
16045
|
+
if (disabled.value || isOutOfRange(currentKeyNavIndex.value + 1)) {
|
|
16046
|
+
return;
|
|
16047
|
+
}
|
|
16048
|
+
isKeyboardNavigating.value = true;
|
|
16049
|
+
navigateTo(currentKeyNavIndex.value + 1, "single");
|
|
16050
|
+
};
|
|
16051
|
+
const onArrowUp = () => {
|
|
16052
|
+
if (disabled.value || isOutOfRange(currentKeyNavIndex.value - 1)) {
|
|
16053
|
+
return;
|
|
16054
|
+
}
|
|
16055
|
+
isKeyboardNavigating.value = true;
|
|
16056
|
+
navigateTo(currentKeyNavIndex.value - 1, "single");
|
|
16057
|
+
};
|
|
16058
|
+
const onArrowDownShift = () => {
|
|
16059
|
+
if (disabled.value || isOutOfRange(currentKeyNavIndex.value + 1)) {
|
|
16060
|
+
return;
|
|
16061
|
+
}
|
|
16062
|
+
isKeyboardNavigating.value = true;
|
|
16063
|
+
navigateTo(currentKeyNavIndex.value + 1, "shift");
|
|
16064
|
+
};
|
|
16065
|
+
const onArrowUpShift = () => {
|
|
16066
|
+
if (disabled.value || isOutOfRange(currentKeyNavIndex.value - 1)) {
|
|
16067
|
+
return;
|
|
16068
|
+
}
|
|
16069
|
+
isKeyboardNavigating.value = true;
|
|
16070
|
+
navigateTo(currentKeyNavIndex.value - 1, "shift");
|
|
16071
|
+
};
|
|
16072
|
+
const onEndKey = () => {
|
|
16073
|
+
if (disabled.value || allValues.value.length === 0) {
|
|
16074
|
+
return;
|
|
16075
|
+
}
|
|
16076
|
+
isKeyboardNavigating.value = true;
|
|
16077
|
+
navigateTo(allValues.value.length - 1, "single");
|
|
16078
|
+
};
|
|
16079
|
+
const onHomeKey = () => {
|
|
16080
|
+
if (disabled.value || allValues.value.length === 0) {
|
|
16081
|
+
return;
|
|
16082
|
+
}
|
|
16083
|
+
isKeyboardNavigating.value = true;
|
|
16084
|
+
navigateTo(0, "single");
|
|
16085
|
+
};
|
|
16086
|
+
const onEndKeyShift = () => {
|
|
16087
|
+
if (disabled.value || allValues.value.length === 0) {
|
|
16088
|
+
return;
|
|
16089
|
+
}
|
|
16090
|
+
isKeyboardNavigating.value = true;
|
|
16091
|
+
navigateTo(allValues.value.length - 1, "shift");
|
|
16092
|
+
};
|
|
16093
|
+
const onHomeKeyShift = () => {
|
|
16094
|
+
if (disabled.value || allValues.value.length === 0) {
|
|
16095
|
+
return;
|
|
16096
|
+
}
|
|
16097
|
+
isKeyboardNavigating.value = true;
|
|
16098
|
+
navigateTo(0, "shift");
|
|
16099
|
+
};
|
|
16100
|
+
const onCtrlA = () => {
|
|
16101
|
+
if (!disabled.value) {
|
|
16102
|
+
isKeyboardNavigating.value = true;
|
|
16103
|
+
setSelected(allValues.value.map((x) => x.id));
|
|
16104
|
+
}
|
|
16105
|
+
};
|
|
16106
|
+
const onFocus = () => {
|
|
16107
|
+
if (disabled.value || mouseTriggeredFocus.value) {
|
|
16108
|
+
mouseTriggeredFocus.value = false;
|
|
16109
|
+
return;
|
|
16110
|
+
}
|
|
16111
|
+
isKeyboardNavigating.value = true;
|
|
16112
|
+
if (allValues.value.length > 0) {
|
|
16113
|
+
if (currentKeyNavIndex.value < 0) {
|
|
16114
|
+
currentKeyNavIndex.value = 0;
|
|
16115
|
+
}
|
|
16116
|
+
setSelected([allValues.value[currentKeyNavIndex.value].id]);
|
|
16117
|
+
}
|
|
16118
|
+
};
|
|
16119
|
+
const onBlur = () => {
|
|
16120
|
+
isKeyboardNavigating.value = false;
|
|
16121
|
+
};
|
|
16122
|
+
onMounted(() => {
|
|
16123
|
+
const lastItem = modelValue.value[modelValue.value.length - 1];
|
|
16124
|
+
if (lastItem) {
|
|
16125
|
+
const idx = allValues.value.findIndex((x) => x.id === lastItem);
|
|
16126
|
+
if (idx >= 0) {
|
|
16127
|
+
currentKeyNavIndex.value = idx;
|
|
16128
|
+
}
|
|
16129
|
+
}
|
|
16130
|
+
});
|
|
16131
|
+
onBeforeUnmount(() => {
|
|
16132
|
+
cancelPendingMetaClick();
|
|
16133
|
+
});
|
|
16134
|
+
return {
|
|
16135
|
+
currentKeyNavIndex,
|
|
16136
|
+
isKeyboardNavigating,
|
|
16137
|
+
isCurrentValue,
|
|
16138
|
+
activeDescendantId,
|
|
16139
|
+
handleClick,
|
|
16140
|
+
onStartDrag,
|
|
16141
|
+
onDrag,
|
|
16142
|
+
onArrowDown,
|
|
16143
|
+
onArrowUp,
|
|
16144
|
+
onArrowDownShift,
|
|
16145
|
+
onArrowUpShift,
|
|
16146
|
+
onEndKey,
|
|
16147
|
+
onHomeKey,
|
|
16148
|
+
onEndKeyShift,
|
|
16149
|
+
onHomeKeyShift,
|
|
16150
|
+
onCtrlA,
|
|
16151
|
+
onFocus,
|
|
16152
|
+
onBlur
|
|
16153
|
+
};
|
|
16154
|
+
};
|
|
16155
|
+
|
|
16156
|
+
const _hoisted_1$9 = ["id", "tabindex", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-activedescendant", "aria-disabled", "onKeydown"];
|
|
16157
|
+
const _hoisted_2$3 = { class: "kds-multiselect-list-box-content-grid" };
|
|
16158
|
+
const _hoisted_3$3 = {
|
|
16159
|
+
key: 0,
|
|
16160
|
+
class: "kds-multiselect-sticky-bottom"
|
|
16161
|
+
};
|
|
16162
|
+
const _hoisted_4$2 = {
|
|
16163
|
+
key: 0,
|
|
16164
|
+
class: "kds-multiselect-empty"
|
|
16165
|
+
};
|
|
16166
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
16167
|
+
__name: "KdsMultiSelectListBox",
|
|
16168
|
+
props: /* @__PURE__ */ mergeModels({
|
|
16169
|
+
possibleValues: {},
|
|
16170
|
+
disabled: { type: Boolean, default: false },
|
|
16171
|
+
useResizeHandle: { type: Boolean, default: false },
|
|
16172
|
+
bottomValue: {},
|
|
16173
|
+
description: {},
|
|
16174
|
+
label: {},
|
|
16175
|
+
ariaLabel: {},
|
|
16176
|
+
id: {},
|
|
16177
|
+
subText: {},
|
|
16178
|
+
error: { type: Boolean, default: false },
|
|
16179
|
+
validating: { type: Boolean, default: false },
|
|
16180
|
+
preserveSubTextSpace: { type: Boolean, default: false }
|
|
16181
|
+
}, {
|
|
16182
|
+
"modelValue": { default: () => [] },
|
|
16183
|
+
"modelModifiers": {}
|
|
16184
|
+
}),
|
|
16185
|
+
emits: /* @__PURE__ */ mergeModels(["doubleClickOnItem", "doubleClickShift", "keyArrowLeft", "keyArrowRight", "keyEnter"], ["update:modelValue"]),
|
|
16186
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16187
|
+
const OPTION_LINE_HEIGHT = kdsDimensionComponentHeight1p5x + kdsSpacingContainer0p10x;
|
|
16188
|
+
const PassThroughResizeContainer = defineComponent({
|
|
16189
|
+
inheritAttrs: false,
|
|
16190
|
+
setup(_, { slots }) {
|
|
16191
|
+
return () => slots.default?.({ contentStyle: void 0 });
|
|
16192
|
+
}
|
|
16193
|
+
});
|
|
16194
|
+
const props = createPropsRestProxy(__props, ["disabled", "error", "validating", "preserveSubTextSpace", "useResizeHandle"]);
|
|
16195
|
+
const modelValue = useModel(__props, "modelValue");
|
|
16196
|
+
const emit = __emit;
|
|
16197
|
+
const idPrefix = useId();
|
|
16198
|
+
const generateOptionId = (itemId) => `${idPrefix}-option-${encodeURIComponent(itemId)}`;
|
|
16199
|
+
const allValues = computed(
|
|
16200
|
+
() => props.bottomValue ? [...props.possibleValues, props.bottomValue] : props.possibleValues
|
|
16201
|
+
);
|
|
16202
|
+
const bottomIndex = computed(() => props.possibleValues.length);
|
|
16203
|
+
const {
|
|
16204
|
+
containerProps,
|
|
16205
|
+
wrapperProps,
|
|
16206
|
+
list: virtualList,
|
|
16207
|
+
scrollTo
|
|
16208
|
+
} = useVirtualList(
|
|
16209
|
+
computed(() => props.possibleValues),
|
|
16210
|
+
{ itemHeight: OPTION_LINE_HEIGHT }
|
|
16211
|
+
);
|
|
16212
|
+
watch(
|
|
16213
|
+
() => props.possibleValues,
|
|
16214
|
+
() => {
|
|
16215
|
+
const el = containerProps.ref.value;
|
|
16216
|
+
if (!el) {
|
|
16217
|
+
return;
|
|
16218
|
+
}
|
|
16219
|
+
scrollTo(
|
|
16220
|
+
Math.max(
|
|
16221
|
+
Math.min(
|
|
16222
|
+
Math.floor(el.scrollTop / OPTION_LINE_HEIGHT),
|
|
16223
|
+
props.possibleValues.length - 1
|
|
16224
|
+
),
|
|
16225
|
+
0
|
|
16226
|
+
)
|
|
16227
|
+
);
|
|
16228
|
+
}
|
|
16229
|
+
);
|
|
16230
|
+
const scrollToIndex = (index) => {
|
|
16231
|
+
if (index === bottomIndex.value && props.bottomValue) {
|
|
16232
|
+
return;
|
|
16233
|
+
}
|
|
16234
|
+
const item = allValues.value[index];
|
|
16235
|
+
if (!item) {
|
|
16236
|
+
return;
|
|
16237
|
+
}
|
|
16238
|
+
const el = containerProps.ref.value;
|
|
16239
|
+
if (!el) {
|
|
16240
|
+
return;
|
|
16241
|
+
}
|
|
16242
|
+
const itemEl = globalThis.document.getElementById(generateOptionId(item.id));
|
|
16243
|
+
if (itemEl) {
|
|
16244
|
+
itemEl.scrollIntoView({ block: "nearest" });
|
|
16245
|
+
if (props.bottomValue) {
|
|
16246
|
+
const stickyEl = el.querySelector(".kds-multiselect-sticky-bottom");
|
|
16247
|
+
if (stickyEl) {
|
|
16248
|
+
const itemRect = itemEl.getBoundingClientRect();
|
|
16249
|
+
const stickyRect = stickyEl.getBoundingClientRect();
|
|
16250
|
+
if (itemRect.bottom > stickyRect.top) {
|
|
16251
|
+
el.scrollTop += itemRect.bottom - stickyRect.top;
|
|
16252
|
+
}
|
|
16253
|
+
}
|
|
16254
|
+
}
|
|
16255
|
+
} else {
|
|
16256
|
+
scrollTo(index);
|
|
16257
|
+
}
|
|
16258
|
+
};
|
|
16259
|
+
const {
|
|
16260
|
+
currentKeyNavIndex,
|
|
16261
|
+
isKeyboardNavigating,
|
|
16262
|
+
isCurrentValue,
|
|
16263
|
+
activeDescendantId,
|
|
16264
|
+
handleClick,
|
|
16265
|
+
onStartDrag,
|
|
16266
|
+
onDrag,
|
|
16267
|
+
onArrowDown,
|
|
16268
|
+
onArrowUp,
|
|
16269
|
+
onArrowDownShift,
|
|
16270
|
+
onArrowUpShift,
|
|
16271
|
+
onEndKey,
|
|
16272
|
+
onHomeKey,
|
|
16273
|
+
onEndKeyShift,
|
|
16274
|
+
onHomeKeyShift,
|
|
16275
|
+
onCtrlA,
|
|
16276
|
+
onFocus,
|
|
16277
|
+
onBlur
|
|
16278
|
+
} = useMultiSelectListBoxSelection({
|
|
16279
|
+
modelValue,
|
|
16280
|
+
allValues,
|
|
16281
|
+
disabled: toRef(() => __props.disabled),
|
|
16282
|
+
generateOptionId,
|
|
16283
|
+
scrollToIndex
|
|
16284
|
+
});
|
|
16285
|
+
const handleDblClick = (id, index) => {
|
|
16286
|
+
if (!__props.disabled) {
|
|
16287
|
+
emit("doubleClickOnItem", id, index);
|
|
16288
|
+
}
|
|
16289
|
+
};
|
|
16290
|
+
const handleShiftDblClick = () => {
|
|
16291
|
+
if (!__props.disabled) {
|
|
16292
|
+
emit("doubleClickShift", modelValue.value);
|
|
16293
|
+
}
|
|
16294
|
+
};
|
|
16295
|
+
const onArrowLeft = () => {
|
|
16296
|
+
if (!__props.disabled) {
|
|
16297
|
+
emit("keyArrowLeft", modelValue.value);
|
|
16298
|
+
}
|
|
16299
|
+
};
|
|
16300
|
+
const onArrowRight = () => {
|
|
16301
|
+
if (!__props.disabled) {
|
|
16302
|
+
emit("keyArrowRight", modelValue.value);
|
|
16303
|
+
}
|
|
16304
|
+
};
|
|
16305
|
+
const onEnter = () => {
|
|
16306
|
+
if (!__props.disabled) {
|
|
16307
|
+
emit("keyEnter", modelValue.value);
|
|
16308
|
+
}
|
|
16309
|
+
};
|
|
16310
|
+
const focus = () => {
|
|
16311
|
+
if (!__props.disabled) {
|
|
16312
|
+
containerProps.ref.value?.focus();
|
|
16313
|
+
}
|
|
16314
|
+
};
|
|
16315
|
+
__expose({ focus });
|
|
16316
|
+
return (_ctx, _cache) => {
|
|
16317
|
+
return openBlock(), createBlock(BaseFormFieldWrapper, {
|
|
16318
|
+
id: props.id,
|
|
16319
|
+
label: props.label,
|
|
16320
|
+
"aria-label": props.ariaLabel,
|
|
16321
|
+
description: props.description,
|
|
16322
|
+
"sub-text": props.subText,
|
|
16323
|
+
error: __props.error,
|
|
16324
|
+
validating: __props.validating,
|
|
16325
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
16326
|
+
}, {
|
|
16327
|
+
default: withCtx((slotProps) => [
|
|
16328
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.useResizeHandle ? KdsResizeContainer : unref(PassThroughResizeContainer)), {
|
|
16329
|
+
height: unref(kdsDimensionComponentHeight20x),
|
|
16330
|
+
"min-height": unref(kdsDimensionComponentHeight12p5x)
|
|
16331
|
+
}, {
|
|
16332
|
+
default: withCtx(({ contentStyle }) => [
|
|
16333
|
+
createElementVNode("div", {
|
|
16334
|
+
class: "kds-multiselect-list-box",
|
|
16335
|
+
style: normalizeStyle(contentStyle)
|
|
16336
|
+
}, [
|
|
16337
|
+
createElementVNode("div", mergeProps(unref(containerProps), {
|
|
16338
|
+
id: slotProps.id,
|
|
16339
|
+
role: "listbox",
|
|
16340
|
+
tabindex: __props.disabled ? -1 : 0,
|
|
16341
|
+
"aria-multiselectable": "true",
|
|
16342
|
+
"aria-labelledby": slotProps.ariaLabelledby,
|
|
16343
|
+
"aria-describedby": slotProps.ariaDescribedby,
|
|
16344
|
+
"aria-label": slotProps.ariaLabel,
|
|
16345
|
+
"aria-invalid": slotProps.ariaInvalid,
|
|
16346
|
+
"aria-activedescendant": unref(activeDescendantId),
|
|
16347
|
+
"aria-disabled": __props.disabled,
|
|
16348
|
+
class: "kds-multiselect-list-box-list",
|
|
16349
|
+
onKeydown: [
|
|
16350
|
+
_cache[4] || (_cache[4] = withKeys(withModifiers(
|
|
16351
|
+
//@ts-ignore
|
|
16352
|
+
(...args) => unref(onCtrlA) && unref(onCtrlA)(...args),
|
|
16353
|
+
["ctrl", "prevent", "exact"]
|
|
16354
|
+
), ["a"])),
|
|
16355
|
+
_cache[5] || (_cache[5] = withKeys(withModifiers(
|
|
16356
|
+
//@ts-ignore
|
|
16357
|
+
(...args) => unref(onCtrlA) && unref(onCtrlA)(...args),
|
|
16358
|
+
["meta", "prevent", "exact"]
|
|
16359
|
+
), ["a"])),
|
|
16360
|
+
_cache[6] || (_cache[6] = withKeys(withModifiers(
|
|
16361
|
+
//@ts-ignore
|
|
16362
|
+
(...args) => unref(onArrowUp) && unref(onArrowUp)(...args),
|
|
16363
|
+
["prevent", "exact"]
|
|
16364
|
+
), ["up"])),
|
|
16365
|
+
_cache[7] || (_cache[7] = withKeys(withModifiers(
|
|
16366
|
+
//@ts-ignore
|
|
16367
|
+
(...args) => unref(onArrowDown) && unref(onArrowDown)(...args),
|
|
16368
|
+
["prevent", "exact"]
|
|
16369
|
+
), ["down"])),
|
|
16370
|
+
_cache[8] || (_cache[8] = withKeys(withModifiers(
|
|
16371
|
+
//@ts-ignore
|
|
16372
|
+
(...args) => unref(onArrowUpShift) && unref(onArrowUpShift)(...args),
|
|
16373
|
+
["shift", "prevent", "exact"]
|
|
16374
|
+
), ["up"])),
|
|
16375
|
+
_cache[9] || (_cache[9] = withKeys(withModifiers(
|
|
16376
|
+
//@ts-ignore
|
|
16377
|
+
(...args) => unref(onArrowDownShift) && unref(onArrowDownShift)(...args),
|
|
16378
|
+
["shift", "prevent", "exact"]
|
|
16379
|
+
), ["down"])),
|
|
16380
|
+
withKeys(withModifiers(onArrowLeft, ["prevent", "exact"]), ["left"]),
|
|
16381
|
+
withKeys(withModifiers(onArrowRight, ["prevent", "exact"]), ["right"]),
|
|
16382
|
+
withKeys(withModifiers(onEnter, ["prevent", "exact"]), ["enter"]),
|
|
16383
|
+
_cache[10] || (_cache[10] = withKeys(withModifiers(
|
|
16384
|
+
//@ts-ignore
|
|
16385
|
+
(...args) => unref(onHomeKey) && unref(onHomeKey)(...args),
|
|
16386
|
+
["prevent", "exact"]
|
|
16387
|
+
), ["home"])),
|
|
16388
|
+
_cache[11] || (_cache[11] = withKeys(withModifiers(
|
|
16389
|
+
//@ts-ignore
|
|
16390
|
+
(...args) => unref(onEndKey) && unref(onEndKey)(...args),
|
|
16391
|
+
["prevent", "exact"]
|
|
16392
|
+
), ["end"])),
|
|
16393
|
+
_cache[12] || (_cache[12] = withKeys(withModifiers(
|
|
16394
|
+
//@ts-ignore
|
|
16395
|
+
(...args) => unref(onHomeKeyShift) && unref(onHomeKeyShift)(...args),
|
|
16396
|
+
["shift", "prevent", "exact"]
|
|
16397
|
+
), ["home"])),
|
|
16398
|
+
_cache[13] || (_cache[13] = withKeys(withModifiers(
|
|
16399
|
+
//@ts-ignore
|
|
16400
|
+
(...args) => unref(onEndKeyShift) && unref(onEndKeyShift)(...args),
|
|
16401
|
+
["shift", "prevent", "exact"]
|
|
16402
|
+
), ["end"]))
|
|
16403
|
+
],
|
|
16404
|
+
onMousedown: _cache[14] || (_cache[14] = //@ts-ignore
|
|
16405
|
+
(...args) => unref(onStartDrag) && unref(onStartDrag)(...args)),
|
|
16406
|
+
onMousemove: _cache[15] || (_cache[15] = //@ts-ignore
|
|
16407
|
+
(...args) => unref(onDrag) && unref(onDrag)(...args)),
|
|
16408
|
+
onFocus: _cache[16] || (_cache[16] = //@ts-ignore
|
|
16409
|
+
(...args) => unref(onFocus) && unref(onFocus)(...args)),
|
|
16410
|
+
onBlur: _cache[17] || (_cache[17] = //@ts-ignore
|
|
16411
|
+
(...args) => unref(onBlur) && unref(onBlur)(...args))
|
|
16412
|
+
}), [
|
|
16413
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
16414
|
+
createElementVNode("div", mergeProps({ class: "kds-multiselect-list-box-content" }, unref(wrapperProps)), [
|
|
16415
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(virtualList), ({ data: item, index }) => {
|
|
16416
|
+
return openBlock(), createBlock(unref(KdsListItem), {
|
|
16417
|
+
id: generateOptionId(item.id),
|
|
16418
|
+
key: `listbox-${item.id}`,
|
|
16419
|
+
class: normalizeClass([
|
|
16420
|
+
"kds-multiselect-list-box-item",
|
|
16421
|
+
{ "kds-multiselect-list-box-item-first": index === 0 }
|
|
16422
|
+
]),
|
|
16423
|
+
label: item.text,
|
|
16424
|
+
accessory: item.accessory,
|
|
16425
|
+
missing: item.missing,
|
|
16426
|
+
"data-option-index": index,
|
|
16427
|
+
selected: unref(isCurrentValue)(item.id),
|
|
16428
|
+
disabled: __props.disabled,
|
|
16429
|
+
active: unref(isKeyboardNavigating) && unref(currentKeyNavIndex) === index,
|
|
16430
|
+
"trailing-icon": item.missing && !__props.disabled ? "trash" : unref(isCurrentValue)(item.id) ? "checkmark" : void 0,
|
|
16431
|
+
onDblclick: [
|
|
16432
|
+
withModifiers(($event) => handleDblClick(item.id, index), ["exact"]),
|
|
16433
|
+
_cache[0] || (_cache[0] = withModifiers(($event) => handleShiftDblClick(), ["shift"]))
|
|
16434
|
+
],
|
|
16435
|
+
onClick: ($event) => unref(handleClick)($event, item.id, index)
|
|
16436
|
+
}, null, 8, ["id", "class", "label", "accessory", "missing", "data-option-index", "selected", "disabled", "active", "trailing-icon", "onDblclick", "onClick"]);
|
|
16437
|
+
}), 128))
|
|
16438
|
+
], 16),
|
|
16439
|
+
props.bottomValue ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
16440
|
+
createVNode(unref(KdsListItem), {
|
|
16441
|
+
id: generateOptionId(props.bottomValue.id),
|
|
16442
|
+
label: props.bottomValue.text,
|
|
16443
|
+
accessory: props.bottomValue.accessory,
|
|
16444
|
+
missing: props.bottomValue.missing,
|
|
16445
|
+
"data-option-index": bottomIndex.value,
|
|
16446
|
+
selected: unref(isCurrentValue)(props.bottomValue.id),
|
|
16447
|
+
disabled: __props.disabled,
|
|
16448
|
+
active: unref(isKeyboardNavigating) && unref(currentKeyNavIndex) === bottomIndex.value,
|
|
16449
|
+
special: "",
|
|
16450
|
+
"trailing-icon": props.bottomValue.missing && !__props.disabled ? "trash" : unref(isCurrentValue)(props.bottomValue.id) ? "checkmark" : void 0,
|
|
16451
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(handleClick)($event, props.bottomValue.id, bottomIndex.value)),
|
|
16452
|
+
onDblclick: [
|
|
16453
|
+
_cache[2] || (_cache[2] = withModifiers(($event) => handleShiftDblClick(), ["shift"])),
|
|
16454
|
+
_cache[3] || (_cache[3] = withModifiers(($event) => handleDblClick(props.bottomValue.id, bottomIndex.value), ["exact"]))
|
|
16455
|
+
]
|
|
16456
|
+
}, null, 8, ["id", "label", "accessory", "missing", "data-option-index", "selected", "disabled", "active", "trailing-icon"])
|
|
16457
|
+
])) : createCommentVNode("", true)
|
|
16458
|
+
])
|
|
16459
|
+
], 16, _hoisted_1$9),
|
|
16460
|
+
props.possibleValues.length === 0 && !props.bottomValue ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
16461
|
+
createVNode(KdsEmptyState, { headline: "No entries in this list" })
|
|
16462
|
+
])) : createCommentVNode("", true)
|
|
16463
|
+
], 4)
|
|
16464
|
+
]),
|
|
16465
|
+
_: 2
|
|
16466
|
+
}, 1032, ["height", "min-height"]))
|
|
16467
|
+
]),
|
|
16468
|
+
_: 1
|
|
16469
|
+
}, 8, ["id", "label", "aria-label", "description", "sub-text", "error", "validating", "preserve-sub-text-space"]);
|
|
16470
|
+
};
|
|
16471
|
+
}
|
|
16472
|
+
});
|
|
16473
|
+
|
|
16474
|
+
const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$a, [["__scopeId", "data-v-6266eeb5"]]);
|
|
16475
|
+
|
|
15712
16476
|
const _hoisted_1$8 = { class: "kds-info-popover-content" };
|
|
15713
16477
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
15714
16478
|
__name: "InfoPopover",
|
|
@@ -15742,7 +16506,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
15742
16506
|
}),
|
|
15743
16507
|
emits: ["update:modelValue"],
|
|
15744
16508
|
setup(__props) {
|
|
15745
|
-
const props = __props;
|
|
16509
|
+
const props = createPropsRestProxy(__props, ["hidden"]);
|
|
15746
16510
|
const modelValue = useModel(__props, "modelValue");
|
|
15747
16511
|
const popoverEl = useTemplateRef("popoverEl");
|
|
15748
16512
|
const isHovered = ref(false);
|
|
@@ -15753,7 +16517,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
15753
16517
|
class: {
|
|
15754
16518
|
"info-toggle-button": true,
|
|
15755
16519
|
selected: modelValue.value,
|
|
15756
|
-
hidden:
|
|
16520
|
+
hidden: __props.hidden && !modelValue.value && !isHovered.value && !isFocused.value
|
|
15757
16521
|
},
|
|
15758
16522
|
title: TITLE,
|
|
15759
16523
|
"aria-label": TITLE,
|
|
@@ -15800,7 +16564,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
15800
16564
|
}
|
|
15801
16565
|
});
|
|
15802
16566
|
|
|
15803
|
-
const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["__scopeId", "data-v-
|
|
16567
|
+
const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["__scopeId", "data-v-2e9ef96a"]]);
|
|
15804
16568
|
|
|
15805
16569
|
const KdsInfoToggleButton$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
15806
16570
|
__proto__: null,
|
|
@@ -15845,19 +16609,19 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
15845
16609
|
}),
|
|
15846
16610
|
emits: ["update:modelValue"],
|
|
15847
16611
|
setup(__props) {
|
|
15848
|
-
const props = __props;
|
|
16612
|
+
const props = createPropsRestProxy(__props, ["inSet", "outSet", "error", "hidden"]);
|
|
15849
16613
|
const modelValue = useModel(__props, "modelValue");
|
|
15850
16614
|
const popoverEl = useTemplateRef("popoverEl");
|
|
15851
16615
|
const isHovered = ref(false);
|
|
15852
16616
|
const isFocused = ref(false);
|
|
15853
16617
|
const iconState = computed(() => {
|
|
15854
|
-
if (
|
|
16618
|
+
if (__props.inSet && __props.outSet) {
|
|
15855
16619
|
return "in-out";
|
|
15856
16620
|
}
|
|
15857
|
-
if (
|
|
16621
|
+
if (__props.inSet) {
|
|
15858
16622
|
return "in";
|
|
15859
16623
|
}
|
|
15860
|
-
if (
|
|
16624
|
+
if (__props.outSet) {
|
|
15861
16625
|
return "out";
|
|
15862
16626
|
}
|
|
15863
16627
|
return "none";
|
|
@@ -15888,7 +16652,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
15888
16652
|
};
|
|
15889
16653
|
const title = computed(() => {
|
|
15890
16654
|
const baseTitle = baseTitleByState[iconState.value];
|
|
15891
|
-
if (!
|
|
16655
|
+
if (!__props.error) {
|
|
15892
16656
|
return baseTitle;
|
|
15893
16657
|
}
|
|
15894
16658
|
return errorTitleByState[iconState.value] ?? baseTitle;
|
|
@@ -15898,9 +16662,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
15898
16662
|
createElementVNode("button", mergeProps(_ctx.$attrs, {
|
|
15899
16663
|
class: {
|
|
15900
16664
|
"variable-toggle-button": true,
|
|
15901
|
-
error:
|
|
15902
|
-
"pressed-or-set": modelValue.value ||
|
|
15903
|
-
hidden:
|
|
16665
|
+
error: __props.error,
|
|
16666
|
+
"pressed-or-set": modelValue.value || __props.inSet || __props.outSet,
|
|
16667
|
+
hidden: __props.hidden && !modelValue.value && !isHovered.value && !isFocused.value
|
|
15904
16668
|
},
|
|
15905
16669
|
title: title.value,
|
|
15906
16670
|
"aria-label": title.value,
|
|
@@ -15948,7 +16712,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
15948
16712
|
}
|
|
15949
16713
|
});
|
|
15950
16714
|
|
|
15951
|
-
const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__scopeId", "data-v-
|
|
16715
|
+
const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__scopeId", "data-v-b6d29842"]]);
|
|
15952
16716
|
|
|
15953
16717
|
const _hoisted_1$4 = ["aria-label", "aria-labelledby", "aria-pressed", "disabled"];
|
|
15954
16718
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
@@ -16152,16 +16916,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
16152
16916
|
emits: ["update:modelValue"],
|
|
16153
16917
|
setup(__props) {
|
|
16154
16918
|
useCssVars((_ctx) => ({
|
|
16155
|
-
"
|
|
16919
|
+
"c97fca9c": minTabWidthCss
|
|
16156
16920
|
}));
|
|
16157
|
-
const props = __props;
|
|
16921
|
+
const props = createPropsRestProxy(__props, ["size", "fullWidth", "disabled"]);
|
|
16158
16922
|
const modelValue = useModel(__props, "modelValue");
|
|
16159
16923
|
const tabEls = useTemplateRefsList();
|
|
16160
16924
|
const getTabEl = (value) => {
|
|
16161
16925
|
const idx = props.tabs.findIndex((t) => t.value === value);
|
|
16162
16926
|
return tabEls.value[idx];
|
|
16163
16927
|
};
|
|
16164
|
-
const isTabDisabled = (tab) =>
|
|
16928
|
+
const isTabDisabled = (tab) => __props.disabled || tab.disabled;
|
|
16165
16929
|
const selectTab = (tab) => {
|
|
16166
16930
|
if (!isTabDisabled(tab) && modelValue.value !== tab.value) {
|
|
16167
16931
|
modelValue.value = tab.value;
|
|
@@ -16208,14 +16972,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
16208
16972
|
width,
|
|
16209
16973
|
tabs: toRef(props, "tabs"),
|
|
16210
16974
|
containerEl: availableWidthContainer,
|
|
16211
|
-
fullWidth: toRef(
|
|
16975
|
+
fullWidth: toRef(() => __props.fullWidth),
|
|
16212
16976
|
minTabWidth: MIN_TAB_WIDTH_TOKEN
|
|
16213
16977
|
});
|
|
16214
16978
|
const minTabWidthCss = `var(${minTabWidth})`;
|
|
16215
16979
|
const tabBarClass = computed(() => ({
|
|
16216
16980
|
"kds-tab-bar": true,
|
|
16217
|
-
[`kds-tab-bar-${
|
|
16218
|
-
"kds-tab-bar-full-width":
|
|
16981
|
+
[`kds-tab-bar-${__props.size}`]: true,
|
|
16982
|
+
"kds-tab-bar-full-width": __props.fullWidth
|
|
16219
16983
|
}));
|
|
16220
16984
|
const focusableTabValue = computed(() => {
|
|
16221
16985
|
const enabledTabs = getEnabledTabs();
|
|
@@ -16246,7 +17010,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
16246
17010
|
);
|
|
16247
17011
|
const getTabTitle = (tab) => truncatedTabs.value.has(tab.value) ? tab.title ?? tab.label : void 0;
|
|
16248
17012
|
watch(
|
|
16249
|
-
() => [props.tabs,
|
|
17013
|
+
() => [props.tabs, __props.disabled, modelValue.value],
|
|
16250
17014
|
() => {
|
|
16251
17015
|
const enabledTabs = getEnabledTabs();
|
|
16252
17016
|
const isCurrentSelectionValid = enabledTabs.some(
|
|
@@ -16295,7 +17059,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
16295
17059
|
tab.accessory && !(tab.accessory.type === "icon" && unref(shouldHideIcons)) ? (openBlock(), createBlock(_sfc_main$4, {
|
|
16296
17060
|
key: 0,
|
|
16297
17061
|
accessory: tab.accessory,
|
|
16298
|
-
"icon-size":
|
|
17062
|
+
"icon-size": __props.size === "large" ? "large" : "medium",
|
|
16299
17063
|
disabled: isTabDisabled(tab)
|
|
16300
17064
|
}, null, 8, ["accessory", "icon-size", "disabled"])) : createCommentVNode("", true),
|
|
16301
17065
|
createElementVNode("span", _hoisted_3$2, toDisplayString(tab.label), 1),
|
|
@@ -16308,7 +17072,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
16308
17072
|
}
|
|
16309
17073
|
});
|
|
16310
17074
|
|
|
16311
|
-
const KdsTabBar = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["__scopeId", "data-v-
|
|
17075
|
+
const KdsTabBar = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["__scopeId", "data-v-d5737ccf"]]);
|
|
16312
17076
|
|
|
16313
17077
|
const kdsTabBarSize = {
|
|
16314
17078
|
SMALL: "small",
|
|
@@ -16356,19 +17120,12 @@ const kdsModalVariant = {
|
|
|
16356
17120
|
PLAIN: "plain"
|
|
16357
17121
|
};
|
|
16358
17122
|
const kdsModalVariants = Object.values(kdsModalVariant);
|
|
16359
|
-
|
|
16360
|
-
|
|
16361
|
-
|
|
16362
|
-
overflow: "auto",
|
|
16363
|
-
leadingIcon: void 0
|
|
16364
|
-
};
|
|
16365
|
-
const kdsModalPropsDefault = {
|
|
16366
|
-
active: false,
|
|
17123
|
+
({
|
|
17124
|
+
variant: kdsModalVariant.PADDED});
|
|
17125
|
+
({
|
|
16367
17126
|
height: kdsModalHeight.AUTO,
|
|
16368
17127
|
width: kdsModalWidth.MEDIUM,
|
|
16369
|
-
closedby: kdsModalClosedBy.CLOSEREQUEST
|
|
16370
|
-
...kdsModalLayoutPropsDefault
|
|
16371
|
-
};
|
|
17128
|
+
closedby: kdsModalClosedBy.CLOSEREQUEST});
|
|
16372
17129
|
|
|
16373
17130
|
const _hoisted_1$2 = { class: "modal-header" };
|
|
16374
17131
|
const _hoisted_2$1 = { class: "modal-header-headline" };
|
|
@@ -16380,18 +17137,18 @@ const _hoisted_4 = {
|
|
|
16380
17137
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
16381
17138
|
...{ inheritAttrs: false },
|
|
16382
17139
|
__name: "KdsModalLayout",
|
|
16383
|
-
props:
|
|
16384
|
-
headline: {},
|
|
16385
|
-
variant: {},
|
|
17140
|
+
props: {
|
|
17141
|
+
headline: { default: "" },
|
|
17142
|
+
variant: { default: () => kdsModalVariant.PADDED },
|
|
16386
17143
|
leadingIcon: {},
|
|
16387
|
-
overflow: {},
|
|
17144
|
+
overflow: { default: "auto" },
|
|
16388
17145
|
onClose: { type: Function }
|
|
16389
|
-
},
|
|
17146
|
+
},
|
|
16390
17147
|
setup(__props) {
|
|
16391
17148
|
useCssVars((_ctx) => ({
|
|
16392
|
-
"
|
|
17149
|
+
"v81addf0a": _ctx.overflow
|
|
16393
17150
|
}));
|
|
16394
|
-
const props = __props;
|
|
17151
|
+
const props = createPropsRestProxy(__props, ["headline", "variant", "overflow"]);
|
|
16395
17152
|
return (_ctx, _cache) => {
|
|
16396
17153
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
16397
17154
|
createElementVNode("header", _hoisted_1$2, [
|
|
@@ -16400,12 +17157,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
16400
17157
|
name: props.leadingIcon,
|
|
16401
17158
|
size: "medium"
|
|
16402
17159
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
16403
|
-
createElementVNode("div", _hoisted_2$1, toDisplayString(
|
|
16404
|
-
createVNode(_sfc_main$
|
|
17160
|
+
createElementVNode("div", _hoisted_2$1, toDisplayString(__props.headline), 1),
|
|
17161
|
+
createVNode(_sfc_main$S, {
|
|
16405
17162
|
"leading-icon": "x-close",
|
|
16406
17163
|
variant: "transparent",
|
|
16407
17164
|
size: "medium",
|
|
16408
17165
|
title: "Close",
|
|
17166
|
+
ariaLabel: "Close",
|
|
16409
17167
|
onClick: props.onClose
|
|
16410
17168
|
}, null, 8, ["onClick"])
|
|
16411
17169
|
]),
|
|
@@ -16423,36 +17181,35 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
16423
17181
|
}
|
|
16424
17182
|
});
|
|
16425
17183
|
|
|
16426
|
-
const KdsModalLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-
|
|
17184
|
+
const KdsModalLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-62740dc9"]]);
|
|
16427
17185
|
|
|
16428
17186
|
const _hoisted_1$1 = ["closedby"];
|
|
16429
17187
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
16430
17188
|
__name: "KdsModal",
|
|
16431
|
-
props:
|
|
17189
|
+
props: {
|
|
16432
17190
|
leadingIcon: {},
|
|
16433
|
-
headline: {},
|
|
16434
|
-
variant: {},
|
|
16435
|
-
width: {},
|
|
16436
|
-
height: {},
|
|
16437
|
-
active: { type: Boolean },
|
|
16438
|
-
closedby: {},
|
|
16439
|
-
overflow: {}
|
|
16440
|
-
},
|
|
17191
|
+
headline: { default: "" },
|
|
17192
|
+
variant: { default: () => kdsModalVariant.PADDED },
|
|
17193
|
+
width: { default: () => kdsModalWidth.MEDIUM },
|
|
17194
|
+
height: { default: () => kdsModalHeight.AUTO },
|
|
17195
|
+
active: { type: Boolean, default: false },
|
|
17196
|
+
closedby: { default: () => kdsModalClosedBy.CLOSEREQUEST },
|
|
17197
|
+
overflow: { default: "auto" }
|
|
17198
|
+
},
|
|
16441
17199
|
emits: ["close", "closed"],
|
|
16442
17200
|
setup(__props, { emit: __emit }) {
|
|
16443
17201
|
useCssVars((_ctx) => ({
|
|
16444
|
-
"
|
|
17202
|
+
"v5b2d4b6a": _ctx.overflow
|
|
16445
17203
|
}));
|
|
16446
|
-
const props = __props;
|
|
16447
17204
|
const emit = __emit;
|
|
16448
17205
|
const dialog = useTemplateRef("dialogElement");
|
|
16449
17206
|
const onClose = (event) => {
|
|
16450
17207
|
emit("close", event);
|
|
16451
17208
|
};
|
|
16452
17209
|
watch(
|
|
16453
|
-
() =>
|
|
16454
|
-
async (
|
|
16455
|
-
if (
|
|
17210
|
+
() => __props.active,
|
|
17211
|
+
async (isActive) => {
|
|
17212
|
+
if (isActive) {
|
|
16456
17213
|
await nextTick();
|
|
16457
17214
|
dialog.value?.showModal();
|
|
16458
17215
|
} else {
|
|
@@ -16461,7 +17218,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
16461
17218
|
},
|
|
16462
17219
|
{ immediate: true }
|
|
16463
17220
|
);
|
|
16464
|
-
const renderDialog = ref(
|
|
17221
|
+
const renderDialog = ref(__props.active);
|
|
16465
17222
|
const removeDialog = () => {
|
|
16466
17223
|
if (!renderDialog.value) {
|
|
16467
17224
|
return;
|
|
@@ -16470,7 +17227,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
16470
17227
|
emit("closed");
|
|
16471
17228
|
};
|
|
16472
17229
|
watch(
|
|
16473
|
-
() =>
|
|
17230
|
+
() => __props.active,
|
|
16474
17231
|
async (value, lastValue) => {
|
|
16475
17232
|
if (value === false && lastValue === true) {
|
|
16476
17233
|
if (dialog.value) {
|
|
@@ -16528,7 +17285,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
16528
17285
|
}
|
|
16529
17286
|
});
|
|
16530
17287
|
|
|
16531
|
-
const KdsModal = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-
|
|
17288
|
+
const KdsModal = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-f4a6776f"]]);
|
|
16532
17289
|
|
|
16533
17290
|
const defaultCancelButton = {
|
|
16534
17291
|
type: "cancel",
|
|
@@ -16674,7 +17431,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16674
17431
|
unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
16675
17432
|
createElementVNode("div", _hoisted_2, toDisplayString(unref(config).value.message), 1),
|
|
16676
17433
|
unref(config).value.doNotAskAgain ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
16677
|
-
createVNode(_sfc_main$
|
|
17434
|
+
createVNode(_sfc_main$D, {
|
|
16678
17435
|
modelValue: askAgain.value,
|
|
16679
17436
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => askAgain.value = $event),
|
|
16680
17437
|
label: unref(config).value.doNotAskAgain.label,
|
|
@@ -16689,7 +17446,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16689
17446
|
name: "footer",
|
|
16690
17447
|
fn: withCtx(() => [
|
|
16691
17448
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(config).value.buttons, (button, index) => {
|
|
16692
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17449
|
+
return openBlock(), createBlock(_sfc_main$S, {
|
|
16693
17450
|
key: index,
|
|
16694
17451
|
destructive: button.destructive,
|
|
16695
17452
|
autofocus: button.autofocus,
|
|
@@ -16721,5 +17478,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16721
17478
|
|
|
16722
17479
|
const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-41fc8d84"]]);
|
|
16723
17480
|
|
|
16724
|
-
export { KdsAvatar, KdsBadge, _sfc_main$
|
|
17481
|
+
export { KdsAvatar, KdsBadge, _sfc_main$S as KdsButton, KdsCardClickable, _sfc_main$D as KdsCheckbox, KdsCheckboxGroup, _sfc_main$t as KdsColorInput, KdsColorSwatch, KdsDataType, _sfc_main$p as KdsDateInput, _sfc_main$n as KdsDateTimeFormatInput, _sfc_main$g as KdsDropdown, KdsDynamicModalProvider, KdsEmptyState, KdsIcon, KdsInfoToggleButton, KdsInlineMessage, KdsLabel, _sfc_main$R as KdsLinkButton, KdsLiveStatus, KdsLoadingSpinner, KdsMenuButton, KdsModal, KdsModalLayout, _sfc_main$d as KdsMultiSelectDropdown, KdsMultiSelectListBox, _sfc_main$m as KdsNumberInput, _sfc_main$s as KdsPasswordInput, _sfc_main$l as KdsPatternInput, KdsProgressButton, KdsRadioButton, KdsRadioButtonGroup, KdsSearchInput, KdsSubText, KdsTabBar, KdsTextInput, KdsTextarea, _sfc_main$Q as KdsToggleButton, _sfc_main$r as KdsUsernameInput, KdsValueSwitch, KdsVariableToggleButton, kdsAvatarSize, kdsAvatarSizes, kdsBadgeSize, kdsBadgeSizes, kdsBadgeVariant, kdsBadgeVariants, kdsButtonSize, kdsButtonSizes, kdsButtonVariant, kdsButtonVariants, kdsCardVariant, kdsCardVariants, kdsCheckboxGroupAlignment, kdsCheckboxGroupAlignments, kdsCheckboxValue, kdsCheckboxValues, kdsColorSwatchSize, kdsColorSwatchSizes, kdsColorSwatchType, kdsColorSwatchTypes, kdsDarkModeType, kdsDarkModeTypes, kdsDataTypeSize, kdsDataTypeSizes, kdsDateFormatCategories, kdsDateFormatCategory, kdsIconName, iconNames as kdsIconNames, kdsIconSize, kdsIconSizes, kdsInlineMessageVariant, kdsInlineMessageVariants, kdsLiveStatusSize, kdsLiveStatusSizes, kdsLiveStatusStatus, kdsLiveStatusStatuses, kdsLoadingSpinnerVariant, kdsLoadingSpinnerVariants, kdsModalClosedBy, kdsModalClosedByOptions, kdsModalHeight, kdsModalHeightSizes, kdsModalVariant, kdsModalVariants, kdsModalWidth, kdsModalWidthSizes, kdsPasswordInputAutocomplete, kdsPasswordInputAutocompletes, kdsPasswordInputVariant, kdsPasswordInputVariants, kdsProgressButtonState, kdsProgressButtonStates, kdsRadioButtonGroupAlignment, kdsRadioButtonGroupAlignments, kdsTabBarSize, kdsTabBarSizes, kdsTemporalType, kdsTemporalTypes, kdsToggleButtonVariant, kdsToggleButtonVariants, kdsTypeIconName, typeIconNames as kdsTypeIconNames, kdsUsernameInputAutocomplete, kdsUsernameInputAutocompletes, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode };
|
|
16725
17482
|
//# sourceMappingURL=index.js.map
|