@aotearoan/neon 9.2.9 → 9.3.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/components/navigation/link/NeonLink.cjs.js +1 -1
- package/dist/components/navigation/link/NeonLink.es.js +15 -6
- package/dist/components/navigation/link/NeonLink.es.js.map +1 -1
- package/dist/components/navigation/link/{NeonLink.ts_vue_type_script_src_037ccc85_lang.cjs.js → NeonLink.ts_vue_type_script_src_5a48e750_lang.cjs.js} +1 -1
- package/dist/components/navigation/link/{NeonLink.ts_vue_type_script_src_037ccc85_lang.cjs.js.map → NeonLink.ts_vue_type_script_src_5a48e750_lang.cjs.js.map} +1 -1
- package/dist/components/navigation/link/{NeonLink.ts_vue_type_script_src_037ccc85_lang.es.js → NeonLink.ts_vue_type_script_src_5a48e750_lang.es.js} +1 -1
- package/dist/components/navigation/link/{NeonLink.ts_vue_type_script_src_037ccc85_lang.es.js.map → NeonLink.ts_vue_type_script_src_5a48e750_lang.es.js.map} +1 -1
- package/dist/components/presentation/icon/NeonIcon.cjs.js +1 -1
- package/dist/components/presentation/icon/NeonIcon.es.js +6 -2
- package/dist/components/presentation/icon/NeonIcon.es.js.map +1 -1
- package/dist/components/presentation/icon/{NeonIcon.ts_vue_type_script_src_3580e0c3_lang.cjs.js → NeonIcon.ts_vue_type_script_src_d3713f20_lang.cjs.js} +1 -1
- package/dist/components/presentation/icon/{NeonIcon.ts_vue_type_script_src_3580e0c3_lang.cjs.js.map → NeonIcon.ts_vue_type_script_src_d3713f20_lang.cjs.js.map} +1 -1
- package/dist/components/presentation/icon/{NeonIcon.ts_vue_type_script_src_3580e0c3_lang.es.js → NeonIcon.ts_vue_type_script_src_d3713f20_lang.es.js} +1 -1
- package/dist/components/presentation/icon/{NeonIcon.ts_vue_type_script_src_3580e0c3_lang.es.js.map → NeonIcon.ts_vue_type_script_src_d3713f20_lang.es.js.map} +1 -1
- package/dist/components/user-input/button/NeonButton.cjs.js +1 -1
- package/dist/components/user-input/button/NeonButton.es.js +3 -7
- package/dist/components/user-input/button/NeonButton.es.js.map +1 -1
- package/dist/components/user-input/button/NeonButton.ts_vue_type_script_src_7c4eb572_lang.cjs.js +2 -0
- package/dist/components/user-input/button/NeonButton.ts_vue_type_script_src_7c4eb572_lang.cjs.js.map +1 -0
- package/dist/components/user-input/button/{NeonButton.ts_vue_type_script_src_32308d32_lang.es.js → NeonButton.ts_vue_type_script_src_7c4eb572_lang.es.js} +5 -2
- package/dist/components/user-input/button/NeonButton.ts_vue_type_script_src_7c4eb572_lang.es.js.map +1 -0
- package/dist/components/user-input/date-picker/NeonDatePicker.cjs.js +1 -1
- package/dist/components/user-input/date-picker/NeonDatePicker.es.js +2 -1
- package/dist/components/user-input/date-picker/NeonDatePicker.es.js.map +1 -1
- package/dist/components/user-input/date-picker/{NeonDatePicker.ts_vue_type_script_src_01c3f912_lang.cjs.js → NeonDatePicker.ts_vue_type_script_src_56e4ee8a_lang.cjs.js} +1 -1
- package/dist/components/user-input/date-picker/{NeonDatePicker.ts_vue_type_script_src_01c3f912_lang.cjs.js.map → NeonDatePicker.ts_vue_type_script_src_56e4ee8a_lang.cjs.js.map} +1 -1
- package/dist/components/user-input/date-picker/{NeonDatePicker.ts_vue_type_script_src_01c3f912_lang.es.js → NeonDatePicker.ts_vue_type_script_src_56e4ee8a_lang.es.js} +1 -1
- package/dist/components/user-input/date-picker/{NeonDatePicker.ts_vue_type_script_src_01c3f912_lang.es.js.map → NeonDatePicker.ts_vue_type_script_src_56e4ee8a_lang.es.js.map} +1 -1
- package/dist/components/user-input/input/NeonInput.cjs.js +1 -1
- package/dist/components/user-input/input/NeonInput.es.js +3 -2
- package/dist/components/user-input/input/NeonInput.es.js.map +1 -1
- package/dist/components/user-input/input/{NeonInput.ts_vue_type_script_src_62c5c4a9_lang.cjs.js → NeonInput.ts_vue_type_script_src_2bebb33c_lang.cjs.js} +1 -1
- package/dist/components/user-input/input/{NeonInput.ts_vue_type_script_src_62c5c4a9_lang.cjs.js.map → NeonInput.ts_vue_type_script_src_2bebb33c_lang.cjs.js.map} +1 -1
- package/dist/components/user-input/input/{NeonInput.ts_vue_type_script_src_62c5c4a9_lang.es.js → NeonInput.ts_vue_type_script_src_2bebb33c_lang.es.js} +1 -1
- package/dist/components/user-input/input/{NeonInput.ts_vue_type_script_src_62c5c4a9_lang.es.js.map → NeonInput.ts_vue_type_script_src_2bebb33c_lang.es.js.map} +1 -1
- package/dist/src/common/enums/NeonAlertLevel.d.ts +6 -0
- package/dist/src/common/enums/NeonAlertPlacement.d.ts +6 -0
- package/dist/src/common/enums/NeonButtonSize.d.ts +6 -0
- package/dist/src/common/enums/NeonButtonStyle.d.ts +5 -0
- package/dist/src/common/enums/NeonChipAction.d.ts +4 -0
- package/dist/src/common/enums/NeonDropdownPlacement.d.ts +10 -0
- package/dist/src/common/enums/NeonDropdownStyle.d.ts +6 -0
- package/dist/src/common/enums/NeonFunctionalColor.d.ts +11 -0
- package/dist/src/common/enums/NeonHorizontalPosition.d.ts +4 -0
- package/dist/src/common/enums/NeonInputMode.d.ts +10 -0
- package/dist/src/common/enums/NeonInputType.d.ts +14 -0
- package/dist/src/common/enums/NeonLabelSize.d.ts +4 -0
- package/dist/src/common/enums/NeonMode.d.ts +4 -0
- package/dist/src/common/enums/NeonOrientation.d.ts +4 -0
- package/dist/src/common/enums/NeonOutlineStyle.d.ts +7 -0
- package/dist/src/common/enums/NeonPlacement.d.ts +6 -0
- package/dist/src/common/enums/NeonPosition.d.ts +6 -0
- package/dist/src/common/enums/NeonResponsive.d.ts +11 -0
- package/dist/src/common/enums/NeonSize.d.ts +5 -0
- package/dist/src/common/enums/NeonSplashLoaderSize.d.ts +6 -0
- package/dist/src/common/enums/NeonState.d.ts +6 -0
- package/dist/src/common/enums/NeonSwitchStyle.d.ts +4 -0
- package/dist/src/common/enums/NeonToggleStyle.d.ts +4 -0
- package/dist/src/common/enums/NeonTooltipStyle.d.ts +4 -0
- package/dist/src/common/enums/NeonVerticalPosition.d.ts +4 -0
- package/dist/src/common/models/NeonActionMenuModel.d.ts +7 -0
- package/dist/src/common/models/NeonAlertAction.d.ts +13 -0
- package/dist/src/common/models/NeonAlertMessage.d.ts +38 -0
- package/dist/src/common/models/NeonAvailableSpace.d.ts +9 -0
- package/dist/src/common/models/NeonCalendarConfig.d.ts +13 -0
- package/dist/src/common/models/NeonContrastAccessibility.d.ts +7 -0
- package/dist/src/common/models/NeonDate.d.ts +10 -0
- package/dist/src/common/models/NeonDropdownMenuItem.d.ts +10 -0
- package/dist/src/common/models/NeonDropdownPlacementObject.d.ts +23 -0
- package/dist/src/common/models/NeonFilterListItem.d.ts +9 -0
- package/dist/src/common/models/NeonGridModel.d.ts +19 -0
- package/dist/src/common/models/NeonListItem.d.ts +7 -0
- package/dist/src/common/models/NeonMenuItem.d.ts +7 -0
- package/dist/src/common/models/NeonMenuModel.d.ts +4 -0
- package/dist/src/common/models/NeonNumberFormatOptions.d.ts +6 -0
- package/dist/src/common/models/NeonSearchOption.d.ts +11 -0
- package/dist/src/common/models/NeonSelectGroup.d.ts +8 -0
- package/dist/src/common/models/NeonSelectOption.d.ts +10 -0
- package/dist/src/common/models/NeonTabModel.d.ts +5 -0
- package/dist/src/common/models/NeonToastMessage.d.ts +23 -0
- package/dist/src/common/models/NeonToggleModel.d.ts +6 -0
- package/dist/src/common/models/NeonTreeMenuLinkModel.d.ts +6 -0
- package/dist/src/common/models/NeonTreeMenuSectionModel.d.ts +8 -0
- package/dist/src/common/utils/NeonAlertService.d.ts +29 -0
- package/dist/src/common/utils/NeonClipboardService.d.ts +6 -0
- package/dist/src/common/utils/NeonClosableUtils.d.ts +11 -0
- package/dist/src/common/utils/NeonColorUtils.d.ts +43 -0
- package/dist/src/common/utils/NeonDateUtils.d.ts +16 -0
- package/dist/src/common/utils/NeonDebounceUtils.d.ts +5 -0
- package/dist/src/common/utils/NeonDropdownPlacementUtils.d.ts +6 -0
- package/dist/src/common/utils/NeonEventBus.d.ts +27 -0
- package/dist/src/common/utils/NeonIconRegistry.d.ts +8 -0
- package/dist/src/common/utils/NeonModeUtils.d.ts +15 -0
- package/dist/src/common/utils/NeonNumberUtils.d.ts +10 -0
- package/dist/src/common/utils/NeonPlacementUtils.d.ts +8 -0
- package/dist/src/common/utils/NeonResponsiveUtils.d.ts +4 -0
- package/dist/src/common/utils/NeonScrollUtils.d.ts +3 -0
- package/dist/src/common/utils/NeonToastService.d.ts +29 -0
- package/dist/src/common/utils/NeonTooltipPlacementUtils.d.ts +7 -0
- package/dist/src/common/utils/RegisterIcons.d.ts +3 -0
- package/dist/src/components/feedback/alert/NeonAlert.d.ts +129 -0
- package/dist/src/components/feedback/alert/NeonAlert.vue.d.ts +2 -0
- package/dist/src/components/feedback/alert/NeonAlertModel.d.ts +6 -0
- package/dist/src/components/feedback/alert/NeonToastModel.d.ts +6 -0
- package/dist/src/components/feedback/alert/container/NeonAlertContainer.d.ts +29 -0
- package/dist/src/components/feedback/alert/container/NeonAlertContainer.vue.d.ts +2 -0
- package/dist/src/components/feedback/alert/container/NeonToastContainer.d.ts +27 -0
- package/dist/src/components/feedback/alert/container/NeonToastContainer.vue.d.ts +2 -0
- package/dist/src/components/feedback/dialog/NeonDialog.d.ts +135 -0
- package/dist/src/components/feedback/dialog/NeonDialog.vue.d.ts +2 -0
- package/dist/src/components/feedback/linear-progress/NeonLinearProgress.d.ts +183 -0
- package/dist/src/components/feedback/linear-progress/NeonLinearProgress.vue.d.ts +2 -0
- package/dist/src/components/feedback/note/NeonNote.d.ts +74 -0
- package/dist/src/components/feedback/note/NeonNote.vue.d.ts +2 -0
- package/dist/src/components/feedback/notification-counter/NeonNotificationCounter.d.ts +54 -0
- package/dist/src/components/feedback/notification-counter/NeonNotificationCounter.vue.d.ts +2 -0
- package/dist/src/components/feedback/skeleton-loader/NeonSkeletonLoader.d.ts +26 -0
- package/dist/src/components/feedback/skeleton-loader/NeonSkeletonLoader.vue.d.ts +2 -0
- package/dist/src/components/feedback/splash-loader/NeonSplashLoader.d.ts +74 -0
- package/dist/src/components/feedback/splash-loader/NeonSplashLoader.vue.d.ts +2 -0
- package/dist/src/components/feedback/tooltip/NeonTooltip.d.ts +118 -0
- package/dist/src/components/feedback/tooltip/NeonTooltip.vue.d.ts +2 -0
- package/dist/src/components/layout/card/NeonCard.d.ts +97 -0
- package/dist/src/components/layout/card/NeonCard.vue.d.ts +2 -0
- package/dist/src/components/layout/card/body/NeonCardBody.d.ts +23 -0
- package/dist/src/components/layout/card/body/NeonCardBody.vue.d.ts +2 -0
- package/dist/src/components/layout/card/footer/NeonCardFooter.d.ts +5 -0
- package/dist/src/components/layout/card/footer/NeonCardFooter.vue.d.ts +2 -0
- package/dist/src/components/layout/card/header/NeonCardHeader.d.ts +6 -0
- package/dist/src/components/layout/card/header/NeonCardHeader.vue.d.ts +2 -0
- package/dist/src/components/layout/drawer/NeonDrawer.d.ts +89 -0
- package/dist/src/components/layout/drawer/NeonDrawer.vue.d.ts +2 -0
- package/dist/src/components/layout/footer/NeonFooter.d.ts +5 -0
- package/dist/src/components/layout/footer/NeonFooter.vue.d.ts +2 -0
- package/dist/src/components/layout/grid/NeonGrid.d.ts +41 -0
- package/dist/src/components/layout/grid/NeonGrid.vue.d.ts +2 -0
- package/dist/src/components/layout/grid/grid-area/NeonGridArea.d.ts +21 -0
- package/dist/src/components/layout/grid/grid-area/NeonGridArea.vue.d.ts +2 -0
- package/dist/src/components/layout/modal/NeonModal.d.ts +72 -0
- package/dist/src/components/layout/modal/NeonModal.vue.d.ts +2 -0
- package/dist/src/components/layout/page/NeonPage.d.ts +6 -0
- package/dist/src/components/layout/page/NeonPage.vue.d.ts +2 -0
- package/dist/src/components/layout/side-nav/NeonSideNav.d.ts +26 -0
- package/dist/src/components/layout/side-nav/NeonSideNav.vue.d.ts +2 -0
- package/dist/src/components/layout/top-nav/NeonTopNav.d.ts +6 -0
- package/dist/src/components/layout/top-nav/NeonTopNav.vue.d.ts +2 -0
- package/dist/src/components/navigation/action-menu/NeonActionMenu.d.ts +57 -0
- package/dist/src/components/navigation/action-menu/NeonActionMenu.vue.d.ts +2 -0
- package/dist/src/components/navigation/anchor/NeonAnchor.d.ts +23 -0
- package/dist/src/components/navigation/anchor/NeonAnchor.vue.d.ts +2 -0
- package/dist/src/components/navigation/dropdown-menu/NeonDropdownMenu.d.ts +109 -0
- package/dist/src/components/navigation/dropdown-menu/NeonDropdownMenu.vue.d.ts +2 -0
- package/dist/src/components/navigation/link/NeonLink.d.ts +81 -0
- package/dist/src/components/navigation/link/NeonLink.vue.d.ts +2 -0
- package/dist/src/components/navigation/menu/NeonMenu.d.ts +107 -0
- package/dist/src/components/navigation/menu/NeonMenu.vue.d.ts +2 -0
- package/dist/src/components/navigation/menu/NeonPriorityMenuItem.d.ts +5 -0
- package/dist/src/components/navigation/stepper/NeonStepper.d.ts +74 -0
- package/dist/src/components/navigation/stepper/NeonStepper.vue.d.ts +2 -0
- package/dist/src/components/navigation/tree-menu/NeonTreeMenu.d.ts +47 -0
- package/dist/src/components/navigation/tree-menu/NeonTreeMenu.vue.d.ts +2 -0
- package/dist/src/components/presentation/badge/NeonBadge.d.ts +145 -0
- package/dist/src/components/presentation/badge/NeonBadge.vue.d.ts +2 -0
- package/dist/src/components/presentation/dropdown/NeonDropdown.d.ts +260 -0
- package/dist/src/components/presentation/dropdown/NeonDropdown.vue.d.ts +2 -0
- package/dist/src/components/presentation/expansion-indicator/NeonExpansionIndicator.d.ts +70 -0
- package/dist/src/components/presentation/expansion-indicator/NeonExpansionIndicator.vue.d.ts +2 -0
- package/dist/src/components/presentation/expansion-panel/NeonExpansionPanel.d.ts +153 -0
- package/dist/src/components/presentation/expansion-panel/NeonExpansionPanel.vue.d.ts +2 -0
- package/dist/src/components/presentation/icon/NeonIcon.d.ts +86 -0
- package/dist/src/components/presentation/icon/NeonIcon.vue.d.ts +2 -0
- package/dist/src/components/presentation/label/NeonLabel.d.ts +100 -0
- package/dist/src/components/presentation/label/NeonLabel.vue.d.ts +2 -0
- package/dist/src/components/presentation/tabs/NeonTabs.d.ts +88 -0
- package/dist/src/components/presentation/tabs/NeonTabs.vue.d.ts +2 -0
- package/dist/src/components/presentation/tabs/tab/NeonTab.d.ts +54 -0
- package/dist/src/components/presentation/tabs/tab/NeonTab.vue.d.ts +2 -0
- package/dist/src/components/user-input/button/NeonButton.d.ts +293 -0
- package/dist/src/components/user-input/button/NeonButton.vue.d.ts +2 -0
- package/dist/src/components/user-input/chip/NeonChip.d.ts +123 -0
- package/dist/src/components/user-input/chip/NeonChip.vue.d.ts +2 -0
- package/dist/src/components/user-input/color/NeonColor.d.ts +112 -0
- package/dist/src/components/user-input/color/NeonColor.vue.d.ts +2 -0
- package/dist/src/components/user-input/date-picker/NeonDatePicker.d.ts +378 -0
- package/dist/src/components/user-input/date-picker/NeonDatePicker.vue.d.ts +2 -0
- package/dist/src/components/user-input/drop-zone/NeonDropZone.d.ts +59 -0
- package/dist/src/components/user-input/drop-zone/NeonDropZone.vue.d.ts +2 -0
- package/dist/src/components/user-input/field/NeonField.d.ts +114 -0
- package/dist/src/components/user-input/field/NeonField.vue.d.ts +2 -0
- package/dist/src/components/user-input/field-group/NeonFieldGroup.d.ts +5 -0
- package/dist/src/components/user-input/field-group/NeonFieldGroup.vue.d.ts +2 -0
- package/dist/src/components/user-input/file/NeonFile.d.ts +190 -0
- package/dist/src/components/user-input/file/NeonFile.vue.d.ts +2 -0
- package/dist/src/components/user-input/filter-list/NeonFilterList.d.ts +145 -0
- package/dist/src/components/user-input/filter-list/NeonFilterList.vue.d.ts +2 -0
- package/dist/src/components/user-input/input/NeonInput.d.ts +296 -0
- package/dist/src/components/user-input/input/NeonInput.vue.d.ts +2 -0
- package/dist/src/components/user-input/input-indicator/NeonInputIndicator.d.ts +55 -0
- package/dist/src/components/user-input/input-indicator/NeonInputIndicator.vue.d.ts +2 -0
- package/dist/src/components/user-input/list/NeonList.d.ts +76 -0
- package/dist/src/components/user-input/list/NeonList.vue.d.ts +2 -0
- package/dist/src/components/user-input/number/NeonNumber.d.ts +285 -0
- package/dist/src/components/user-input/number/NeonNumber.vue.d.ts +2 -0
- package/dist/src/components/user-input/password/NeonPassword.d.ts +17 -0
- package/dist/src/components/user-input/password/NeonPassword.vue.d.ts +2 -0
- package/dist/src/components/user-input/range-slider/NeonRangeSlider.d.ts +269 -0
- package/dist/src/components/user-input/range-slider/NeonRangeSlider.vue.d.ts +2 -0
- package/dist/src/components/user-input/search/NeonSearch.d.ts +139 -0
- package/dist/src/components/user-input/search/NeonSearch.vue.d.ts +2 -0
- package/dist/src/components/user-input/select/NeonSelect.d.ts +207 -0
- package/dist/src/components/user-input/select/NeonSelect.vue.d.ts +2 -0
- package/dist/src/components/user-input/selectable-card/NeonSelectableCard.d.ts +79 -0
- package/dist/src/components/user-input/selectable-card/NeonSelectableCard.vue.d.ts +2 -0
- package/dist/src/components/user-input/slider/NeonSlider.d.ts +281 -0
- package/dist/src/components/user-input/slider/NeonSlider.vue.d.ts +2 -0
- package/dist/src/components/user-input/switch/NeonSwitch.d.ts +143 -0
- package/dist/src/components/user-input/switch/NeonSwitch.vue.d.ts +2 -0
- package/dist/src/components/user-input/toggle/NeonToggle.d.ts +138 -0
- package/dist/src/components/user-input/toggle/NeonToggle.vue.d.ts +2 -0
- package/dist/src/components/user-input/toggle-chip/NeonToggleChip.d.ts +110 -0
- package/dist/src/components/user-input/toggle-chip/NeonToggleChip.vue.d.ts +2 -0
- package/dist/src/neon.d.ts +124 -0
- package/package.json +7 -4
- package/src/sass/components/_button.scss +4 -8
- package/src/sass/components/_top-nav.scss +0 -1
- package/src/sass/variables.scss +2 -2
- package/dist/components/user-input/button/NeonButton.ts_vue_type_script_src_32308d32_lang.cjs.js +0 -2
- package/dist/components/user-input/button/NeonButton.ts_vue_type_script_src_32308d32_lang.cjs.js.map +0 -1
- package/dist/components/user-input/button/NeonButton.ts_vue_type_script_src_32308d32_lang.es.js.map +0 -1
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { NeonSize } from '@/common/enums/NeonSize';
|
|
2
|
+
import { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';
|
|
3
|
+
import { NeonState } from '@/common/enums/NeonState';
|
|
4
|
+
/**
|
|
5
|
+
* A file upload component. This is a wrapper around an HTML file input. It can display multiple files as well as
|
|
6
|
+
* providing a convenient UI for removing/clearing files from the list.
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
/**
|
|
10
|
+
* The disabled state of the component
|
|
11
|
+
*/
|
|
12
|
+
disabled: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Files are uploaded directly once added, there is no waiting to click a confirmation button
|
|
18
|
+
*/
|
|
19
|
+
directUpload: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Support multiple files.
|
|
25
|
+
*/
|
|
26
|
+
multiple: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* HTML file input accept property for filtering the files the user is allowed to select. This is a mime type,
|
|
32
|
+
* e.g. 'application/pdf'.
|
|
33
|
+
*/
|
|
34
|
+
accept: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: null;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Provide an id to attach to the internal HTML input[file] (also adds an aria-controls link between the button and
|
|
40
|
+
* the hidden input).
|
|
41
|
+
*/
|
|
42
|
+
id: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: null;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* The file component size
|
|
48
|
+
*/
|
|
49
|
+
size: {
|
|
50
|
+
type: () => NeonSize;
|
|
51
|
+
default: NeonSize;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The state of the input, used to indicate loading, success and error states
|
|
55
|
+
*/
|
|
56
|
+
state: {
|
|
57
|
+
type: () => NeonState;
|
|
58
|
+
default: NeonState;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* The file component color
|
|
62
|
+
*/
|
|
63
|
+
color: {
|
|
64
|
+
type: () => NeonFunctionalColor;
|
|
65
|
+
default: NeonFunctionalColor;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* The label of the file component button
|
|
69
|
+
*/
|
|
70
|
+
label: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: null;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* The icon of the file component button
|
|
76
|
+
*/
|
|
77
|
+
icon: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: null;
|
|
80
|
+
};
|
|
81
|
+
}, {
|
|
82
|
+
fileInput: import("vue").Ref<HTMLInputElement | null>;
|
|
83
|
+
files: import("vue").Ref<{
|
|
84
|
+
readonly lastModified: number;
|
|
85
|
+
readonly name: string;
|
|
86
|
+
readonly webkitRelativePath: string;
|
|
87
|
+
readonly size: number;
|
|
88
|
+
readonly type: string;
|
|
89
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
90
|
+
slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
|
|
91
|
+
stream: () => ReadableStream<Uint8Array>;
|
|
92
|
+
text: () => Promise<string>;
|
|
93
|
+
}[]>;
|
|
94
|
+
fileList: import("vue").ComputedRef<{
|
|
95
|
+
key: string;
|
|
96
|
+
label: string;
|
|
97
|
+
}[]>;
|
|
98
|
+
fileInputModel: import("vue").Ref<string>;
|
|
99
|
+
remove: (filename: string) => void;
|
|
100
|
+
clearAll: () => void;
|
|
101
|
+
openFileDialog: () => void;
|
|
102
|
+
onInput: (event: Event) => void;
|
|
103
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
104
|
+
/**
|
|
105
|
+
* The disabled state of the component
|
|
106
|
+
*/
|
|
107
|
+
disabled: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Files are uploaded directly once added, there is no waiting to click a confirmation button
|
|
113
|
+
*/
|
|
114
|
+
directUpload: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Support multiple files.
|
|
120
|
+
*/
|
|
121
|
+
multiple: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* HTML file input accept property for filtering the files the user is allowed to select. This is a mime type,
|
|
127
|
+
* e.g. 'application/pdf'.
|
|
128
|
+
*/
|
|
129
|
+
accept: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: null;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Provide an id to attach to the internal HTML input[file] (also adds an aria-controls link between the button and
|
|
135
|
+
* the hidden input).
|
|
136
|
+
*/
|
|
137
|
+
id: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
default: null;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* The file component size
|
|
143
|
+
*/
|
|
144
|
+
size: {
|
|
145
|
+
type: () => NeonSize;
|
|
146
|
+
default: NeonSize;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* The state of the input, used to indicate loading, success and error states
|
|
150
|
+
*/
|
|
151
|
+
state: {
|
|
152
|
+
type: () => NeonState;
|
|
153
|
+
default: NeonState;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* The file component color
|
|
157
|
+
*/
|
|
158
|
+
color: {
|
|
159
|
+
type: () => NeonFunctionalColor;
|
|
160
|
+
default: NeonFunctionalColor;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* The label of the file component button
|
|
164
|
+
*/
|
|
165
|
+
label: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
default: null;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* The icon of the file component button
|
|
171
|
+
*/
|
|
172
|
+
icon: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
default: null;
|
|
175
|
+
};
|
|
176
|
+
}>> & {
|
|
177
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
label: string;
|
|
180
|
+
color: NeonFunctionalColor;
|
|
181
|
+
icon: string;
|
|
182
|
+
disabled: boolean;
|
|
183
|
+
id: string;
|
|
184
|
+
size: NeonSize;
|
|
185
|
+
state: NeonState;
|
|
186
|
+
directUpload: boolean;
|
|
187
|
+
multiple: boolean;
|
|
188
|
+
accept: string;
|
|
189
|
+
}>;
|
|
190
|
+
export default _default;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { NeonSize } from '@/common/enums/NeonSize';
|
|
2
|
+
import { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';
|
|
3
|
+
import type { NeonFilterListItem } from '@/common/models/NeonFilterListItem';
|
|
4
|
+
/**
|
|
5
|
+
* <p><strong>NeonFilterList</strong> is an alternative component to a select where the values are displayed in a
|
|
6
|
+
* visible list to the user. This component is particularly useful for presenting filters to the user and also provides
|
|
7
|
+
* the option of displaying the item counts with each list item.</p>
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: import("vue").DefineComponent<{
|
|
10
|
+
/**
|
|
11
|
+
* The list if items to display
|
|
12
|
+
*/
|
|
13
|
+
items: {
|
|
14
|
+
type: () => Array<NeonFilterListItem>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Either a single string, indicating the key of the selected item or an array of selected keys in the case
|
|
19
|
+
* multiple = true.
|
|
20
|
+
*/
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: (StringConstructor | (() => Array<string>))[];
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Allow multi-select of items.
|
|
27
|
+
*/
|
|
28
|
+
multiple: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The size of the list items - Small, Medium or Large.
|
|
34
|
+
*/
|
|
35
|
+
size: {
|
|
36
|
+
type: () => NeonSize;
|
|
37
|
+
default: NeonSize;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* The color of the selected list items..
|
|
41
|
+
*/
|
|
42
|
+
color: {
|
|
43
|
+
type: () => NeonFunctionalColor;
|
|
44
|
+
default: NeonFunctionalColor;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* The number of visible items. If there are more items they will be placed behind an expansion
|
|
48
|
+
* button which toggles displaying displayCount items and all items.
|
|
49
|
+
*/
|
|
50
|
+
displayCount: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: null;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Label for the Show more toggle if <em>displayCount</em> is set. The default is 'Show {count} more' where {count} is substituted with the display count
|
|
56
|
+
*/
|
|
57
|
+
showMoreLabel: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Label for the expanded Show more toggle if <em>displayCount</em> is set. The default is 'Show less'.
|
|
63
|
+
*/
|
|
64
|
+
showLessLabel: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
showAll: import("vue").Ref<boolean>;
|
|
70
|
+
selected: import("vue").ComputedRef<Record<string, boolean>>;
|
|
71
|
+
visibleItems: import("vue").ComputedRef<NeonFilterListItem[]>;
|
|
72
|
+
toggleShowAllLabel: import("vue").ComputedRef<string>;
|
|
73
|
+
displayShowAllToggle: import("vue").ComputedRef<boolean | 0>;
|
|
74
|
+
toggleItem: (key: string, $event?: Event) => void;
|
|
75
|
+
toggleShowAll: () => void;
|
|
76
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
77
|
+
/**
|
|
78
|
+
* The list if items to display
|
|
79
|
+
*/
|
|
80
|
+
items: {
|
|
81
|
+
type: () => Array<NeonFilterListItem>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Either a single string, indicating the key of the selected item or an array of selected keys in the case
|
|
86
|
+
* multiple = true.
|
|
87
|
+
*/
|
|
88
|
+
modelValue: {
|
|
89
|
+
type: (StringConstructor | (() => Array<string>))[];
|
|
90
|
+
required: true;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Allow multi-select of items.
|
|
94
|
+
*/
|
|
95
|
+
multiple: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* The size of the list items - Small, Medium or Large.
|
|
101
|
+
*/
|
|
102
|
+
size: {
|
|
103
|
+
type: () => NeonSize;
|
|
104
|
+
default: NeonSize;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* The color of the selected list items..
|
|
108
|
+
*/
|
|
109
|
+
color: {
|
|
110
|
+
type: () => NeonFunctionalColor;
|
|
111
|
+
default: NeonFunctionalColor;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* The number of visible items. If there are more items they will be placed behind an expansion
|
|
115
|
+
* button which toggles displaying displayCount items and all items.
|
|
116
|
+
*/
|
|
117
|
+
displayCount: {
|
|
118
|
+
type: NumberConstructor;
|
|
119
|
+
default: null;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Label for the Show more toggle if <em>displayCount</em> is set. The default is 'Show {count} more' where {count} is substituted with the display count
|
|
123
|
+
*/
|
|
124
|
+
showMoreLabel: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Label for the expanded Show more toggle if <em>displayCount</em> is set. The default is 'Show less'.
|
|
130
|
+
*/
|
|
131
|
+
showLessLabel: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
}>> & {
|
|
136
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
137
|
+
}, {
|
|
138
|
+
color: NeonFunctionalColor;
|
|
139
|
+
size: NeonSize;
|
|
140
|
+
multiple: boolean;
|
|
141
|
+
displayCount: number;
|
|
142
|
+
showMoreLabel: string;
|
|
143
|
+
showLessLabel: string;
|
|
144
|
+
}>;
|
|
145
|
+
export default _default;
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { NeonInputType } from '@/common/enums/NeonInputType';
|
|
2
|
+
import { NeonState } from '@/common/enums/NeonState';
|
|
3
|
+
import { NeonSize } from '@/common/enums/NeonSize';
|
|
4
|
+
import { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';
|
|
5
|
+
/**
|
|
6
|
+
* Equivalent of, and wrapper around, an HTML input. Also supports <strong>textarea</strong>.
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
/**
|
|
10
|
+
* The id the input
|
|
11
|
+
*/
|
|
12
|
+
id: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: null;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The value of the input
|
|
18
|
+
*/
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: null;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The type of input this is. NOTE: Neon provides custom components as alternatives in the following cases:
|
|
25
|
+
* * file (use <a href="/user-input/file">NeonFile</a>)
|
|
26
|
+
* * password (use <a href="/user-input/password">NeonPassword</a>)
|
|
27
|
+
*/
|
|
28
|
+
type: {
|
|
29
|
+
type: () => NeonInputType;
|
|
30
|
+
default: NeonInputType;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Placeholder text to display in the input
|
|
34
|
+
*/
|
|
35
|
+
placeholder: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: null;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Size of the input
|
|
41
|
+
*/
|
|
42
|
+
size: {
|
|
43
|
+
type: () => NeonSize;
|
|
44
|
+
default: NeonSize;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Color of the input
|
|
48
|
+
*/
|
|
49
|
+
color: {
|
|
50
|
+
type: () => NeonFunctionalColor;
|
|
51
|
+
default: NeonFunctionalColor;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The state of the input
|
|
55
|
+
*/
|
|
56
|
+
state: {
|
|
57
|
+
type: () => NeonState;
|
|
58
|
+
default: NeonState;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* The number of rows to display in the case of a textarea
|
|
62
|
+
*/
|
|
63
|
+
rows: {
|
|
64
|
+
type: NumberConstructor;
|
|
65
|
+
default: null;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* The name of a clickable icon to display inside the input. This is used for clearing contents or e.g. in the case of
|
|
69
|
+
* NeonPassword toggle showing/hiding the password. Defaults to <em>times</em> (for clearing the input's contents).
|
|
70
|
+
*/
|
|
71
|
+
icon: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: null;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Make the input field icon read-only, i.e. it will not emit events or be treated as a focusable button.
|
|
77
|
+
*/
|
|
78
|
+
iconReadonly: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Hide the icon button, e.g. the X button to clear the input's contents.
|
|
84
|
+
*/
|
|
85
|
+
hideIcon: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Tabindex to assign to the input.
|
|
91
|
+
*/
|
|
92
|
+
tabindex: {
|
|
93
|
+
type: NumberConstructor;
|
|
94
|
+
default: number;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* The disabled state of the input
|
|
98
|
+
*/
|
|
99
|
+
disabled: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* When the state is success or error, display the field with the state color indicator, e.g. border or background
|
|
105
|
+
* color.
|
|
106
|
+
*/
|
|
107
|
+
stateHighlight: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* When the state is success or error, display the state icon.
|
|
113
|
+
*/
|
|
114
|
+
stateIcon: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* The character limit for a textarea.
|
|
120
|
+
*/
|
|
121
|
+
maxlength: {
|
|
122
|
+
type: NumberConstructor;
|
|
123
|
+
default: null;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Debounce time in ms, set to 0 to disable.
|
|
127
|
+
*/
|
|
128
|
+
debounce: {
|
|
129
|
+
type: NumberConstructor;
|
|
130
|
+
default: number;
|
|
131
|
+
};
|
|
132
|
+
}, {
|
|
133
|
+
neonInput: import("vue").Ref<HTMLElement | null>;
|
|
134
|
+
focused: import("vue").Ref<boolean>;
|
|
135
|
+
sanitizedAttributes: import("vue").ComputedRef<{
|
|
136
|
+
[x: string]: unknown;
|
|
137
|
+
}>;
|
|
138
|
+
iconVisible: import("vue").ComputedRef<string | boolean | undefined>;
|
|
139
|
+
iconName: import("vue").ComputedRef<string | undefined>;
|
|
140
|
+
iconColor: import("vue").ComputedRef<NeonFunctionalColor>;
|
|
141
|
+
computedPlaceholder: import("vue").ComputedRef<string>;
|
|
142
|
+
focus: () => void;
|
|
143
|
+
click: () => void;
|
|
144
|
+
onFocus: () => void;
|
|
145
|
+
onBlur: () => void;
|
|
146
|
+
iconClicked: ($event: Event) => void;
|
|
147
|
+
changeValue: (event: InputEvent) => void;
|
|
148
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "blur" | "icon-click")[], "update:modelValue" | "focus" | "blur" | "icon-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
149
|
+
/**
|
|
150
|
+
* The id the input
|
|
151
|
+
*/
|
|
152
|
+
id: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
default: null;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* The value of the input
|
|
158
|
+
*/
|
|
159
|
+
modelValue: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
default: null;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* The type of input this is. NOTE: Neon provides custom components as alternatives in the following cases:
|
|
165
|
+
* * file (use <a href="/user-input/file">NeonFile</a>)
|
|
166
|
+
* * password (use <a href="/user-input/password">NeonPassword</a>)
|
|
167
|
+
*/
|
|
168
|
+
type: {
|
|
169
|
+
type: () => NeonInputType;
|
|
170
|
+
default: NeonInputType;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Placeholder text to display in the input
|
|
174
|
+
*/
|
|
175
|
+
placeholder: {
|
|
176
|
+
type: StringConstructor;
|
|
177
|
+
default: null;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Size of the input
|
|
181
|
+
*/
|
|
182
|
+
size: {
|
|
183
|
+
type: () => NeonSize;
|
|
184
|
+
default: NeonSize;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Color of the input
|
|
188
|
+
*/
|
|
189
|
+
color: {
|
|
190
|
+
type: () => NeonFunctionalColor;
|
|
191
|
+
default: NeonFunctionalColor;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* The state of the input
|
|
195
|
+
*/
|
|
196
|
+
state: {
|
|
197
|
+
type: () => NeonState;
|
|
198
|
+
default: NeonState;
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* The number of rows to display in the case of a textarea
|
|
202
|
+
*/
|
|
203
|
+
rows: {
|
|
204
|
+
type: NumberConstructor;
|
|
205
|
+
default: null;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* The name of a clickable icon to display inside the input. This is used for clearing contents or e.g. in the case of
|
|
209
|
+
* NeonPassword toggle showing/hiding the password. Defaults to <em>times</em> (for clearing the input's contents).
|
|
210
|
+
*/
|
|
211
|
+
icon: {
|
|
212
|
+
type: StringConstructor;
|
|
213
|
+
default: null;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Make the input field icon read-only, i.e. it will not emit events or be treated as a focusable button.
|
|
217
|
+
*/
|
|
218
|
+
iconReadonly: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
default: boolean;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Hide the icon button, e.g. the X button to clear the input's contents.
|
|
224
|
+
*/
|
|
225
|
+
hideIcon: {
|
|
226
|
+
type: BooleanConstructor;
|
|
227
|
+
default: boolean;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Tabindex to assign to the input.
|
|
231
|
+
*/
|
|
232
|
+
tabindex: {
|
|
233
|
+
type: NumberConstructor;
|
|
234
|
+
default: number;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* The disabled state of the input
|
|
238
|
+
*/
|
|
239
|
+
disabled: {
|
|
240
|
+
type: BooleanConstructor;
|
|
241
|
+
default: boolean;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* When the state is success or error, display the field with the state color indicator, e.g. border or background
|
|
245
|
+
* color.
|
|
246
|
+
*/
|
|
247
|
+
stateHighlight: {
|
|
248
|
+
type: BooleanConstructor;
|
|
249
|
+
default: boolean;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* When the state is success or error, display the state icon.
|
|
253
|
+
*/
|
|
254
|
+
stateIcon: {
|
|
255
|
+
type: BooleanConstructor;
|
|
256
|
+
default: boolean;
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* The character limit for a textarea.
|
|
260
|
+
*/
|
|
261
|
+
maxlength: {
|
|
262
|
+
type: NumberConstructor;
|
|
263
|
+
default: null;
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* Debounce time in ms, set to 0 to disable.
|
|
267
|
+
*/
|
|
268
|
+
debounce: {
|
|
269
|
+
type: NumberConstructor;
|
|
270
|
+
default: number;
|
|
271
|
+
};
|
|
272
|
+
}>> & {
|
|
273
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
274
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
275
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
276
|
+
"onIcon-click"?: ((...args: any[]) => any) | undefined;
|
|
277
|
+
}, {
|
|
278
|
+
color: NeonFunctionalColor;
|
|
279
|
+
icon: string;
|
|
280
|
+
disabled: boolean;
|
|
281
|
+
type: NeonInputType;
|
|
282
|
+
modelValue: string;
|
|
283
|
+
id: string;
|
|
284
|
+
size: NeonSize;
|
|
285
|
+
state: NeonState;
|
|
286
|
+
placeholder: string;
|
|
287
|
+
rows: number;
|
|
288
|
+
iconReadonly: boolean;
|
|
289
|
+
hideIcon: boolean;
|
|
290
|
+
tabindex: number;
|
|
291
|
+
stateHighlight: boolean;
|
|
292
|
+
stateIcon: boolean;
|
|
293
|
+
maxlength: number;
|
|
294
|
+
debounce: number;
|
|
295
|
+
}>;
|
|
296
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { NeonSize } from '@/common/enums/NeonSize';
|
|
2
|
+
/**
|
|
3
|
+
* Use input indicators to provide additional information for input fields. This can be useful to add the field units or
|
|
4
|
+
* a connected label or icon.
|
|
5
|
+
* <br />
|
|
6
|
+
* NOTE: An input indicator is an HTML <em>label</em> so attributes like, e.g. <em>for</em> are accepted.
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
/**
|
|
10
|
+
* The label to display
|
|
11
|
+
*/
|
|
12
|
+
label: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The icon to display
|
|
18
|
+
*/
|
|
19
|
+
icon: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: false;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The size of the input indicator
|
|
25
|
+
*/
|
|
26
|
+
size: {
|
|
27
|
+
type: () => NeonSize;
|
|
28
|
+
default: NeonSize;
|
|
29
|
+
};
|
|
30
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
/**
|
|
32
|
+
* The label to display
|
|
33
|
+
*/
|
|
34
|
+
label: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: false;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The icon to display
|
|
40
|
+
*/
|
|
41
|
+
icon: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
required: false;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* The size of the input indicator
|
|
47
|
+
*/
|
|
48
|
+
size: {
|
|
49
|
+
type: () => NeonSize;
|
|
50
|
+
default: NeonSize;
|
|
51
|
+
};
|
|
52
|
+
}>>, {
|
|
53
|
+
size: NeonSize;
|
|
54
|
+
}>;
|
|
55
|
+
export default _default;
|