@aotearoan/neon 9.2.8 → 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 +8 -5
- 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,19 @@
|
|
|
1
|
+
import type { NeonResponsive } from '../enums/NeonResponsive';
|
|
2
|
+
export declare class NeonGridModel {
|
|
3
|
+
/**
|
|
4
|
+
* The breakpoint defining when the provided grid configuration applies.
|
|
5
|
+
*/
|
|
6
|
+
breakpoint: NeonResponsive;
|
|
7
|
+
/**
|
|
8
|
+
* A two dimensional grid of ids defining the layout of the NeonGridAreas with a NeonGrid component's default slot.
|
|
9
|
+
* E.g.
|
|
10
|
+
* [
|
|
11
|
+
* ['area1', 'area1', 'area2'],
|
|
12
|
+
* ['area3', 'area4', 'area2'],
|
|
13
|
+
* ]
|
|
14
|
+
*
|
|
15
|
+
* defines a grid with two rows and 3 columns where id=area1 fills the first two columns on the first row, area2 fills
|
|
16
|
+
* the last column (both rows) and areas 3 & 4 fill the first two columns on the second row.
|
|
17
|
+
*/
|
|
18
|
+
grid: string[][];
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { NeonFunctionalColor } from '../enums/NeonFunctionalColor';
|
|
2
|
+
/**
|
|
3
|
+
* Model describing a search option.
|
|
4
|
+
*/
|
|
5
|
+
export interface NeonSearchOption {
|
|
6
|
+
key: string;
|
|
7
|
+
label: string;
|
|
8
|
+
chipColor?: NeonFunctionalColor;
|
|
9
|
+
icon?: string;
|
|
10
|
+
separatorBefore?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { NeonVerticalPosition } from '../enums/NeonVerticalPosition';
|
|
2
|
+
/**
|
|
3
|
+
* A 'Toast' style alert message. These are much simpler than normal alerts.
|
|
4
|
+
*/
|
|
5
|
+
export interface NeonToastMessage {
|
|
6
|
+
/**
|
|
7
|
+
* Toast title.
|
|
8
|
+
*/
|
|
9
|
+
title: string;
|
|
10
|
+
/**
|
|
11
|
+
* Placement of the message, either centered at the top or at the bottom. Default is top.
|
|
12
|
+
*/
|
|
13
|
+
placement?: NeonVerticalPosition;
|
|
14
|
+
/**
|
|
15
|
+
* Duration to display the message (default = 2500ms). Set to 0 for the message to never expire (make sure it's
|
|
16
|
+
* dismissible).
|
|
17
|
+
*/
|
|
18
|
+
duration?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the message can be dismissed by a user click. Default is true.
|
|
21
|
+
*/
|
|
22
|
+
dismissible?: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { NeonAlertMessage } from '../models/NeonAlertMessage';
|
|
2
|
+
import { NeonAlertLevel } from '../enums/NeonAlertLevel';
|
|
3
|
+
/**
|
|
4
|
+
* NeonAlertService is a service for sending alerts to the <strong>NeonAlert</strong> component for display to the user.
|
|
5
|
+
*/
|
|
6
|
+
export declare class NeonAlertService {
|
|
7
|
+
/**
|
|
8
|
+
* Send an info message
|
|
9
|
+
* @param alert {NeonAlertMessage}
|
|
10
|
+
*/
|
|
11
|
+
static info(alert: NeonAlertMessage): void;
|
|
12
|
+
/**
|
|
13
|
+
* Send a success message
|
|
14
|
+
* @param alert {NeonAlertMessage}
|
|
15
|
+
*/
|
|
16
|
+
static success(alert: NeonAlertMessage): void;
|
|
17
|
+
/**
|
|
18
|
+
* Send a warning message
|
|
19
|
+
* @param alert {NeonAlertMessage}
|
|
20
|
+
*/
|
|
21
|
+
static warn(alert: NeonAlertMessage): void;
|
|
22
|
+
/**
|
|
23
|
+
* Send an error message
|
|
24
|
+
* @param alert {NeonAlertMessage}
|
|
25
|
+
*/
|
|
26
|
+
static error(alert: NeonAlertMessage): void;
|
|
27
|
+
static generateEventKey(eventType: NeonAlertLevel): string;
|
|
28
|
+
private static emit;
|
|
29
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class NeonClosableUtils {
|
|
2
|
+
private readonly target;
|
|
3
|
+
private readonly closeCallback;
|
|
4
|
+
private _open;
|
|
5
|
+
constructor(target: HTMLElement, closeCallback: () => void);
|
|
6
|
+
open(): void;
|
|
7
|
+
destroy(): void;
|
|
8
|
+
escapeKeyListener(event: KeyboardEvent): void;
|
|
9
|
+
close(): void;
|
|
10
|
+
private handleOutsideClick;
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { NeonContrastAccessibility } from '@/common/models/NeonContrastAccessibility';
|
|
2
|
+
/**
|
|
3
|
+
* Utility class with helpers for calculating relative contrast & determining accessibility.
|
|
4
|
+
*/
|
|
5
|
+
export declare class NeonColorUtils {
|
|
6
|
+
private static red;
|
|
7
|
+
private static green;
|
|
8
|
+
private static blue;
|
|
9
|
+
private static labXn;
|
|
10
|
+
private static labYn;
|
|
11
|
+
private static labZn;
|
|
12
|
+
private static labT0;
|
|
13
|
+
private static labT1;
|
|
14
|
+
private static labT2;
|
|
15
|
+
private static labT3;
|
|
16
|
+
private static degreesToRadians;
|
|
17
|
+
private static radiansToDegrees;
|
|
18
|
+
private static gamma;
|
|
19
|
+
static luminance([r, g, b]: Array<number>): number;
|
|
20
|
+
static toRgb(hexString: string): Array<number>;
|
|
21
|
+
static rgbToXyz(rgb: Array<number>): Array<number>;
|
|
22
|
+
static rgbToLab(rgb: Array<number>): Array<number>;
|
|
23
|
+
static rgbToHcl(rgb: Array<number>): Array<number>;
|
|
24
|
+
static isAccessible(rgb1: string, rgb2: string): NeonContrastAccessibility;
|
|
25
|
+
static contrast(rgb1: Array<number>, rgb2: Array<number>): number;
|
|
26
|
+
static rgbToHex(rgb: Array<number>): string;
|
|
27
|
+
static generatePalette(referenceColor: string, darkTextHex: string, lightTextHex: string): Record<string, string>;
|
|
28
|
+
private static generateChromaCurve;
|
|
29
|
+
private static generateLuminanceCurve;
|
|
30
|
+
private static xyzToLab;
|
|
31
|
+
private static rgbValueToXyz;
|
|
32
|
+
private static labToHcl;
|
|
33
|
+
private static luminanceByChannel;
|
|
34
|
+
private static relativeLuminance;
|
|
35
|
+
private static contrastRatio;
|
|
36
|
+
private static labToXyz;
|
|
37
|
+
private static xyzToRgb;
|
|
38
|
+
private static labToRgb;
|
|
39
|
+
private static hclToLab;
|
|
40
|
+
private static hclToRgb;
|
|
41
|
+
private static lightReferenceColor;
|
|
42
|
+
private static darkReferenceColor;
|
|
43
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { NeonCalendarConfig } from '@/common/models/NeonCalendarConfig';
|
|
2
|
+
import type { NeonDate } from '@/common/models/NeonDate';
|
|
3
|
+
export declare class NeonDateUtils {
|
|
4
|
+
/**
|
|
5
|
+
* Convert an ISO 8601 formatted string to a locale formatted date with a three letter month, a 2 digit day and a locale formatted time.
|
|
6
|
+
* @param date The date/time as an <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601</a> string.
|
|
7
|
+
* @param locale The locale for which to convert the date for display purposes, defaults to browser locale.
|
|
8
|
+
* @param strict Do not add time component to localise the date.
|
|
9
|
+
*/
|
|
10
|
+
static stringToNeonDate(date: string, locale?: string, strict?: boolean): NeonDate;
|
|
11
|
+
static dateToIso(date: Date, time?: boolean): string;
|
|
12
|
+
static dmyToIso(day: number, month: number, year: number): string;
|
|
13
|
+
static dowNames(locale?: string): Array<string>;
|
|
14
|
+
static monthNames(locale?: string): Array<string>;
|
|
15
|
+
static toCalendarConfiguration(selectedDate?: string, currentPageMonth?: number, currentPageYear?: number, currentPageDecadeStart?: number, locale?: string): NeonCalendarConfig;
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NeonDropdownPlacement } from '../enums/NeonDropdownPlacement';
|
|
2
|
+
export declare class NeonDropdownPlacementUtils {
|
|
3
|
+
static calculatePlacement(triggerElement: HTMLElement, contentElement: HTMLElement, placement: NeonDropdownPlacement, placementContainer?: HTMLElement): NeonDropdownPlacement;
|
|
4
|
+
private static findPlacement;
|
|
5
|
+
private static validPlacement;
|
|
6
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event bus used internally for component to component communication. All Neon messages are namespaced with the
|
|
3
|
+
* messagePrefix below. Feel free to also use it in your applications, just use your own namespace so as not to clash
|
|
4
|
+
* with Neon's messages.
|
|
5
|
+
*/
|
|
6
|
+
export declare class NeonEventBus {
|
|
7
|
+
static messagePrefix: string;
|
|
8
|
+
private static listeners;
|
|
9
|
+
/**
|
|
10
|
+
* Listen to event bus events
|
|
11
|
+
* @param event {string}
|
|
12
|
+
* @param callback {(...args: any[]) => void}
|
|
13
|
+
*/
|
|
14
|
+
static on(event: string, callback: (...args: any[]) => void): void;
|
|
15
|
+
/**
|
|
16
|
+
* Stop listening to event bus events
|
|
17
|
+
* @param event {string}
|
|
18
|
+
* @param callback {(...args: any[]) => void}
|
|
19
|
+
*/
|
|
20
|
+
static off(event: string, callback: (...args: any[]) => void): void;
|
|
21
|
+
/**
|
|
22
|
+
* Emit event bus events
|
|
23
|
+
* @param event {string}
|
|
24
|
+
* @param args {any[]}
|
|
25
|
+
*/
|
|
26
|
+
static emit(event: string, ...args: any[]): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class NeonIconRegistry {
|
|
2
|
+
private static icons;
|
|
3
|
+
static addIcon(name: string, svg: string, overwrite?: boolean): boolean;
|
|
4
|
+
static removeIcon(name: string): void;
|
|
5
|
+
static getIcon(name: string): string;
|
|
6
|
+
static list(): string[];
|
|
7
|
+
static clear(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NeonMode } from '../enums/NeonMode';
|
|
2
|
+
export declare class NeonModeUtils {
|
|
3
|
+
private static callbacks;
|
|
4
|
+
private static defaultMode;
|
|
5
|
+
private static mode;
|
|
6
|
+
static getMode(): NeonMode | null;
|
|
7
|
+
static init(defaultMode?: NeonMode): void;
|
|
8
|
+
static addListener(key: string, callback: (value: NeonMode) => void): void;
|
|
9
|
+
static removeListener(key: string): void;
|
|
10
|
+
private static onDarkChange;
|
|
11
|
+
private static onLightChange;
|
|
12
|
+
private static onNoPreferenceChange;
|
|
13
|
+
private static onChange;
|
|
14
|
+
private static handleChange;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { NeonNumberFormatOptions } from '../models/NeonNumberFormatOptions';
|
|
2
|
+
export declare class NeonNumberUtils {
|
|
3
|
+
static parseExample: string;
|
|
4
|
+
static decimalSeparator: string;
|
|
5
|
+
static cleanPattern: RegExp;
|
|
6
|
+
static PercentageFormat: string;
|
|
7
|
+
static ValuePlaceholder: string;
|
|
8
|
+
static formatNumber(value: number, options?: NeonNumberFormatOptions, locale?: string | null): string;
|
|
9
|
+
static parseNumber(value: string): number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NeonAvailableSpace } from '../models/NeonAvailableSpace';
|
|
2
|
+
export declare class NeonPlacementUtils {
|
|
3
|
+
static calculateAvailableSpace(triggerElement: HTMLElement, maxWidth: number, maxHeight: number, placementContainer?: HTMLElement): NeonAvailableSpace;
|
|
4
|
+
static calculateBounds(placementContainer?: HTMLElement): {
|
|
5
|
+
maxWidth: number;
|
|
6
|
+
maxHeight: number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { NeonToastMessage } from '../models/NeonToastMessage';
|
|
2
|
+
import { NeonAlertLevel } from '../enums/NeonAlertLevel';
|
|
3
|
+
/**
|
|
4
|
+
* NeonToastService is a service for sending toast alerts to the <strong>NeonAlert</strong> component for display to the user.
|
|
5
|
+
*/
|
|
6
|
+
export declare class NeonToastService {
|
|
7
|
+
/**
|
|
8
|
+
* Send an info message
|
|
9
|
+
* @param alert {NeonToastMessage}
|
|
10
|
+
*/
|
|
11
|
+
static info(alert: NeonToastMessage): void;
|
|
12
|
+
/**
|
|
13
|
+
* Send a success message
|
|
14
|
+
* @param alert {NeonToastMessage}
|
|
15
|
+
*/
|
|
16
|
+
static success(alert: NeonToastMessage): void;
|
|
17
|
+
/**
|
|
18
|
+
* Send a warning message
|
|
19
|
+
* @param alert {NeonToastMessage}
|
|
20
|
+
*/
|
|
21
|
+
static warn(alert: NeonToastMessage): void;
|
|
22
|
+
/**
|
|
23
|
+
* Send an error message
|
|
24
|
+
* @param alert {NeonToastMessage}
|
|
25
|
+
*/
|
|
26
|
+
static error(alert: NeonToastMessage): void;
|
|
27
|
+
static generateEventKey(eventType: NeonAlertLevel): string;
|
|
28
|
+
private static emit;
|
|
29
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NeonPlacement } from '../enums/NeonPlacement';
|
|
2
|
+
export declare class NeonTooltipPlacementUtils {
|
|
3
|
+
static calculatePlacement(triggerElement: HTMLElement, contentElement: HTMLElement, placement: NeonPlacement, placementContainer?: HTMLElement): NeonPlacement;
|
|
4
|
+
private static calculatePlacementOrder;
|
|
5
|
+
private static findPlacement;
|
|
6
|
+
private static validPlacement;
|
|
7
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { NeonAlertLevel } from '@/common/enums/NeonAlertLevel';
|
|
2
|
+
import { NeonAlertPlacement } from '@/common/enums/NeonAlertPlacement';
|
|
3
|
+
import { NeonVerticalPosition } from '@/common/enums/NeonVerticalPosition';
|
|
4
|
+
/**
|
|
5
|
+
* NeonAlert is a component for presenting temporary notifications to the user. Place the component once inside your app
|
|
6
|
+
* and use <strong>NeonAlertService</strong> to send events to the component.
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
/**
|
|
10
|
+
* Whether alert messages are dismissible by clicking on them. This can also be set per alert message.
|
|
11
|
+
*/
|
|
12
|
+
dismissible: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Duration to display messages before removing them. This can also be set per alert message. Set the duration to 0 to
|
|
18
|
+
* disable the duration timer, NOTE: this requires the user to dismiss the alert by clicking on it.
|
|
19
|
+
*/
|
|
20
|
+
duration: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
topLeft: import("vue").Ref<{
|
|
26
|
+
id: number;
|
|
27
|
+
level: NeonAlertLevel;
|
|
28
|
+
title?: string | undefined;
|
|
29
|
+
message?: string | undefined;
|
|
30
|
+
placement?: NeonAlertPlacement | undefined;
|
|
31
|
+
duration?: number | undefined;
|
|
32
|
+
dismissible?: boolean | undefined;
|
|
33
|
+
primaryAction?: {
|
|
34
|
+
label: string;
|
|
35
|
+
callback: () => void;
|
|
36
|
+
} | undefined;
|
|
37
|
+
secondaryAction?: {
|
|
38
|
+
label: string;
|
|
39
|
+
callback: () => void;
|
|
40
|
+
} | undefined;
|
|
41
|
+
}[]>;
|
|
42
|
+
topRight: import("vue").Ref<{
|
|
43
|
+
id: number;
|
|
44
|
+
level: NeonAlertLevel;
|
|
45
|
+
title?: string | undefined;
|
|
46
|
+
message?: string | undefined;
|
|
47
|
+
placement?: NeonAlertPlacement | undefined;
|
|
48
|
+
duration?: number | undefined;
|
|
49
|
+
dismissible?: boolean | undefined;
|
|
50
|
+
primaryAction?: {
|
|
51
|
+
label: string;
|
|
52
|
+
callback: () => void;
|
|
53
|
+
} | undefined;
|
|
54
|
+
secondaryAction?: {
|
|
55
|
+
label: string;
|
|
56
|
+
callback: () => void;
|
|
57
|
+
} | undefined;
|
|
58
|
+
}[]>;
|
|
59
|
+
bottomLeft: import("vue").Ref<{
|
|
60
|
+
id: number;
|
|
61
|
+
level: NeonAlertLevel;
|
|
62
|
+
title?: string | undefined;
|
|
63
|
+
message?: string | undefined;
|
|
64
|
+
placement?: NeonAlertPlacement | undefined;
|
|
65
|
+
duration?: number | undefined;
|
|
66
|
+
dismissible?: boolean | undefined;
|
|
67
|
+
primaryAction?: {
|
|
68
|
+
label: string;
|
|
69
|
+
callback: () => void;
|
|
70
|
+
} | undefined;
|
|
71
|
+
secondaryAction?: {
|
|
72
|
+
label: string;
|
|
73
|
+
callback: () => void;
|
|
74
|
+
} | undefined;
|
|
75
|
+
}[]>;
|
|
76
|
+
bottomRight: import("vue").Ref<{
|
|
77
|
+
id: number;
|
|
78
|
+
level: NeonAlertLevel;
|
|
79
|
+
title?: string | undefined;
|
|
80
|
+
message?: string | undefined;
|
|
81
|
+
placement?: NeonAlertPlacement | undefined;
|
|
82
|
+
duration?: number | undefined;
|
|
83
|
+
dismissible?: boolean | undefined;
|
|
84
|
+
primaryAction?: {
|
|
85
|
+
label: string;
|
|
86
|
+
callback: () => void;
|
|
87
|
+
} | undefined;
|
|
88
|
+
secondaryAction?: {
|
|
89
|
+
label: string;
|
|
90
|
+
callback: () => void;
|
|
91
|
+
} | undefined;
|
|
92
|
+
}[]>;
|
|
93
|
+
top: import("vue").Ref<{
|
|
94
|
+
id: number;
|
|
95
|
+
level: NeonAlertLevel;
|
|
96
|
+
title: string;
|
|
97
|
+
placement?: NeonVerticalPosition | undefined;
|
|
98
|
+
duration?: number | undefined;
|
|
99
|
+
dismissible?: boolean | undefined;
|
|
100
|
+
}[]>;
|
|
101
|
+
bottom: import("vue").Ref<{
|
|
102
|
+
id: number;
|
|
103
|
+
level: NeonAlertLevel;
|
|
104
|
+
title: string;
|
|
105
|
+
placement?: NeonVerticalPosition | undefined;
|
|
106
|
+
duration?: number | undefined;
|
|
107
|
+
dismissible?: boolean | undefined;
|
|
108
|
+
}[]>;
|
|
109
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
110
|
+
/**
|
|
111
|
+
* Whether alert messages are dismissible by clicking on them. This can also be set per alert message.
|
|
112
|
+
*/
|
|
113
|
+
dismissible: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Duration to display messages before removing them. This can also be set per alert message. Set the duration to 0 to
|
|
119
|
+
* disable the duration timer, NOTE: this requires the user to dismiss the alert by clicking on it.
|
|
120
|
+
*/
|
|
121
|
+
duration: {
|
|
122
|
+
type: NumberConstructor;
|
|
123
|
+
default: number;
|
|
124
|
+
};
|
|
125
|
+
}>>, {
|
|
126
|
+
dismissible: boolean;
|
|
127
|
+
duration: number;
|
|
128
|
+
}>;
|
|
129
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { NeonAlertLevel } from '@/common/enums/NeonAlertLevel';
|
|
2
|
+
import type { NeonAlertPlacement } from '@/common/enums/NeonAlertPlacement';
|
|
3
|
+
import type { NeonAlertModel } from '../NeonAlertModel';
|
|
4
|
+
/**
|
|
5
|
+
* This is an internal component for rendering alerts.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: () => Array<NeonAlertModel>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
placement: {
|
|
13
|
+
type: () => NeonAlertPlacement;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
closeMessage: (id: number) => void;
|
|
18
|
+
icon: (level: NeonAlertLevel) => "info-circle" | "check-circle" | "exclamation-circle" | "times-circle";
|
|
19
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: () => Array<NeonAlertModel>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
placement: {
|
|
25
|
+
type: () => NeonAlertPlacement;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
}>>, {}>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { NeonToastModel } from '../NeonToastModel';
|
|
2
|
+
import type { NeonVerticalPosition } from '@/common/enums/NeonVerticalPosition';
|
|
3
|
+
/**
|
|
4
|
+
* This is an internal component for rendering alerts.
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: () => Array<NeonToastModel>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
placement: {
|
|
12
|
+
type: () => NeonVerticalPosition;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
closeMessage: (id: number) => void;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: () => Array<NeonToastModel>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
placement: {
|
|
23
|
+
type: () => NeonVerticalPosition;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
}>>, {}>;
|
|
27
|
+
export default _default;
|