@aotearoan/neon 28.5.0 → 28.6.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/layout/basic-layout/NeonBasicLayout.cjs.js +2 -0
- package/dist/components/layout/basic-layout/NeonBasicLayout.cjs.js.map +1 -0
- package/dist/components/layout/basic-layout/NeonBasicLayout.es.js +40 -0
- package/dist/components/layout/basic-layout/NeonBasicLayout.es.js.map +1 -0
- package/dist/components/layout/basic-layout/NeonBasicLayout.vue.cjs.js +2 -0
- package/dist/components/layout/basic-layout/NeonBasicLayout.vue.cjs.js.map +1 -0
- package/dist/components/layout/basic-layout/NeonBasicLayout.vue.es.js +41 -0
- package/dist/components/layout/basic-layout/NeonBasicLayout.vue.es.js.map +1 -0
- package/dist/components/layout/card-list/NeonCardList.cjs.js +1 -1
- package/dist/components/layout/card-list/NeonCardList.cjs.js.map +1 -1
- package/dist/components/layout/card-list/NeonCardList.es.js +47 -45
- package/dist/components/layout/card-list/NeonCardList.es.js.map +1 -1
- package/dist/components/layout/card-list/NeonCardList.vue.cjs.js +1 -1
- package/dist/components/layout/card-list/NeonCardList.vue.cjs.js.map +1 -1
- package/dist/components/layout/card-list/NeonCardList.vue.es.js +48 -50
- package/dist/components/layout/card-list/NeonCardList.vue.es.js.map +1 -1
- package/dist/components/layout/list-layout/NeonListLayout.cjs.js +1 -1
- package/dist/components/layout/list-layout/NeonListLayout.cjs.js.map +1 -1
- package/dist/components/layout/list-layout/NeonListLayout.es.js +16 -11
- package/dist/components/layout/list-layout/NeonListLayout.es.js.map +1 -1
- package/dist/components/layout/list-layout/NeonListLayout.vue.cjs.js +1 -1
- package/dist/components/layout/list-layout/NeonListLayout.vue.cjs.js.map +1 -1
- package/dist/components/layout/list-layout/NeonListLayout.vue.es.js +10 -9
- package/dist/components/layout/list-layout/NeonListLayout.vue.es.js.map +1 -1
- package/dist/components/presentation/avatar/NeonAvatar.cjs.js +2 -0
- package/dist/components/presentation/avatar/NeonAvatar.cjs.js.map +1 -0
- package/dist/components/presentation/avatar/NeonAvatar.es.js +66 -0
- package/dist/components/presentation/avatar/NeonAvatar.es.js.map +1 -0
- package/dist/components/presentation/avatar/NeonAvatar.vue.cjs.js +2 -0
- package/dist/components/presentation/avatar/NeonAvatar.vue.cjs.js.map +1 -0
- package/dist/components/presentation/avatar/NeonAvatar.vue.es.js +25 -0
- package/dist/components/presentation/avatar/NeonAvatar.vue.es.js.map +1 -0
- package/dist/components/presentation/header/NeonHeader.vue.cjs.js +1 -1
- package/dist/components/presentation/header/NeonHeader.vue.cjs.js.map +1 -1
- package/dist/components/presentation/header/NeonHeader.vue.es.js +31 -29
- package/dist/components/presentation/header/NeonHeader.vue.es.js.map +1 -1
- package/dist/model/layout/card-list/NeonCardListStyle.cjs.js +2 -0
- package/dist/model/layout/card-list/NeonCardListStyle.cjs.js.map +1 -0
- package/dist/model/layout/card-list/NeonCardListStyle.es.js +5 -0
- package/dist/model/layout/card-list/NeonCardListStyle.es.js.map +1 -0
- package/dist/model/presentation/badge/NeonBadgeSize.cjs.js +1 -1
- package/dist/model/presentation/badge/NeonBadgeSize.cjs.js.map +1 -1
- package/dist/model/presentation/badge/NeonBadgeSize.es.js +1 -1
- package/dist/model/presentation/badge/NeonBadgeSize.es.js.map +1 -1
- package/dist/neon.cjs.js +1 -1
- package/dist/neon.es.js +265 -259
- package/dist/neon.es.js.map +1 -1
- package/dist/src/components/layout/basic-layout/NeonBasicLayout.d.ts +427 -0
- package/dist/src/components/layout/basic-layout/NeonBasicLayout.vue.d.ts +2 -0
- package/dist/src/components/layout/card-list/NeonCardList.d.ts +47 -60
- package/dist/src/components/layout/list-layout/NeonListLayout.d.ts +304 -250
- package/dist/src/components/presentation/avatar/NeonAvatar.d.ts +1806 -0
- package/dist/src/components/presentation/avatar/NeonAvatar.vue.d.ts +2 -0
- package/dist/src/model/layout/card-list/NeonCardListStyle.d.ts +13 -0
- package/dist/src/model/layout/card-list/NeonLoadOnDemandModel.d.ts +4 -8
- package/dist/src/model/presentation/badge/NeonBadgeSize.d.ts +3 -1
- package/dist/src/neon.d.ts +4 -1
- package/dist/src/utils/common/http/NeonHttpUtils.d.ts +23 -0
- package/dist/utils/common/http/NeonHttpUtils.cjs.js +2 -0
- package/dist/utils/common/http/NeonHttpUtils.cjs.js.map +1 -0
- package/dist/utils/common/http/NeonHttpUtils.es.js +31 -0
- package/dist/utils/common/http/NeonHttpUtils.es.js.map +1 -0
- package/package.json +1 -1
- package/src/sass/components/_badge.scss +2 -2
- package/src/sass/components/{_page-container.scss → _basic-layout.scss} +12 -33
- package/src/sass/components/_card-list.scss +30 -5
- package/src/sass/components/_date-picker.scss +2 -0
- package/src/sass/components/_drawer.scss +1 -0
- package/src/sass/components/_field-group.scss +5 -1
- package/src/sass/components/_header.scss +2 -1
- package/src/sass/components/_input.scss +6 -0
- package/src/sass/components/_link.scss +1 -0
- package/src/sass/components/_modal.scss +1 -0
- package/src/sass/components/_page.scss +1 -0
- package/src/sass/components/_range-slider.scss +4 -0
- package/src/sass/components/_sticky-buttons.scss +1 -1
- package/src/sass/components/components.scss +1 -1
- package/src/sass/includes/_dependencies.scss +1 -1
- package/src/sass/theme.scss +4 -4
- package/src/sass/variables-dark.scss +7 -0
- package/src/sass/variables-global.scss +21 -7
- package/src/sass/variables-light.scss +7 -0
- package/dist/components/layout/page-container/NeonPageContainer.cjs.js +0 -2
- package/dist/components/layout/page-container/NeonPageContainer.cjs.js.map +0 -1
- package/dist/components/layout/page-container/NeonPageContainer.es.js +0 -26
- package/dist/components/layout/page-container/NeonPageContainer.es.js.map +0 -1
- package/dist/components/layout/page-container/NeonPageContainer.vue.cjs.js +0 -2
- package/dist/components/layout/page-container/NeonPageContainer.vue.cjs.js.map +0 -1
- package/dist/components/layout/page-container/NeonPageContainer.vue.es.js +0 -31
- package/dist/components/layout/page-container/NeonPageContainer.vue.es.js.map +0 -1
- package/dist/src/components/layout/page-container/NeonPageContainer.d.ts +0 -98
- package/dist/src/components/layout/page-container/NeonPageContainer.vue.d.ts +0 -2
|
@@ -7,10 +7,12 @@ import type { NeonLoadOnDemandModel } from '@/model/layout/card-list/NeonLoadOnD
|
|
|
7
7
|
import type { NeonPaginationModel } from '@/model/navigation/pagination/NeonPaginationModel';
|
|
8
8
|
import type { NeonIdentifiable } from '@/model/common/entity/NeonIdentifiable';
|
|
9
9
|
import type { NeonSelectable } from '@/model/common/entity/NeonSelectable';
|
|
10
|
+
import { NeonState } from '@/model/common/state/NeonState';
|
|
11
|
+
import { NeonCardListStyle } from '@/model/layout/card-list/NeonCardListStyle';
|
|
10
12
|
/**
|
|
11
13
|
* TODO: consider refactoring since it's no longer just a layout component when selectable.
|
|
12
14
|
* Represent lists of objects as cards. This is intended to be a more responsive replacement for tables. This component
|
|
13
|
-
* will display a list of items as cards with a count (x of y) and a <em>
|
|
15
|
+
* will display a list of items as cards with a count (Showing x of y) and a <em>Load more</em> button to load more results.
|
|
14
16
|
* There is also a slot for adding filtering or other content above the list. A slot is provided with card model & index
|
|
15
17
|
* parameters for customising how to display the model for each card.
|
|
16
18
|
*/
|
|
@@ -29,6 +31,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
29
31
|
type: () => NeonFunctionalColor;
|
|
30
32
|
default: null;
|
|
31
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Specify the card list layout, either a 'List' of cards with 100% width or a responsive 'Grid' of cards.
|
|
36
|
+
*/
|
|
37
|
+
listStyle: {
|
|
38
|
+
type: () => NeonCardListStyle;
|
|
39
|
+
default: () => NeonCardListStyle;
|
|
40
|
+
};
|
|
32
41
|
/**
|
|
33
42
|
* Make cards selectable.
|
|
34
43
|
*/
|
|
@@ -49,7 +58,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
49
58
|
type: () => NeonPaginationModel;
|
|
50
59
|
};
|
|
51
60
|
/**
|
|
52
|
-
* Show
|
|
61
|
+
* Show loading state when loading new items.
|
|
53
62
|
*/
|
|
54
63
|
loading: {
|
|
55
64
|
type: BooleanConstructor;
|
|
@@ -60,15 +69,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
60
69
|
NeonButtonStyle: typeof NeonButtonStyle;
|
|
61
70
|
NeonFunctionalColor: typeof NeonFunctionalColor;
|
|
62
71
|
NeonSize: typeof NeonSize;
|
|
63
|
-
ofLabel: import("vue").ComputedRef<string | undefined>;
|
|
64
72
|
showMoreLabel: import("vue").ComputedRef<string | undefined>;
|
|
65
|
-
|
|
73
|
+
resultCountLabel: import("vue").ComputedRef<string | undefined>;
|
|
66
74
|
total: import("vue").ComputedRef<number>;
|
|
67
75
|
slots: Readonly<{
|
|
68
76
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
69
77
|
}>;
|
|
70
78
|
cards: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
71
79
|
onPageChange: (newPage: number) => void;
|
|
80
|
+
NeonState: typeof NeonState;
|
|
72
81
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("page-change" | "show-more" | "toggle-selected")[], "page-change" | "show-more" | "toggle-selected", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
73
82
|
/**
|
|
74
83
|
* Items to display as cards. Each item should be a NeonCardListModel.
|
|
@@ -84,6 +93,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
84
93
|
type: () => NeonFunctionalColor;
|
|
85
94
|
default: null;
|
|
86
95
|
};
|
|
96
|
+
/**
|
|
97
|
+
* Specify the card list layout, either a 'List' of cards with 100% width or a responsive 'Grid' of cards.
|
|
98
|
+
*/
|
|
99
|
+
listStyle: {
|
|
100
|
+
type: () => NeonCardListStyle;
|
|
101
|
+
default: () => NeonCardListStyle;
|
|
102
|
+
};
|
|
87
103
|
/**
|
|
88
104
|
* Make cards selectable.
|
|
89
105
|
*/
|
|
@@ -104,7 +120,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
104
120
|
type: () => NeonPaginationModel;
|
|
105
121
|
};
|
|
106
122
|
/**
|
|
107
|
-
* Show
|
|
123
|
+
* Show loading state when loading new items.
|
|
108
124
|
*/
|
|
109
125
|
loading: {
|
|
110
126
|
type: BooleanConstructor;
|
|
@@ -116,6 +132,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
116
132
|
}>, {
|
|
117
133
|
color: NeonFunctionalColor;
|
|
118
134
|
loading: boolean;
|
|
135
|
+
listStyle: NeonCardListStyle;
|
|
119
136
|
selectable: boolean;
|
|
120
137
|
}, {}, {
|
|
121
138
|
NeonSelectableCard: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -437,9 +454,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
437
454
|
default: boolean;
|
|
438
455
|
};
|
|
439
456
|
alternateColor: {
|
|
440
|
-
type: () => NeonFunctionalColor;
|
|
441
|
-
* Items to display as cards. Each item should be a NeonCardListModel.
|
|
442
|
-
*/
|
|
457
|
+
type: () => NeonFunctionalColor;
|
|
443
458
|
default: null;
|
|
444
459
|
};
|
|
445
460
|
icon: {
|
|
@@ -455,19 +470,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
455
470
|
};
|
|
456
471
|
buttonStyle: {
|
|
457
472
|
type: () => NeonButtonStyle;
|
|
458
|
-
default: NeonButtonStyle;
|
|
459
|
-
|
|
460
|
-
*/
|
|
461
|
-
}; /**
|
|
462
|
-
* Model for configuring the on-demand loading layout.
|
|
463
|
-
*/
|
|
473
|
+
default: NeonButtonStyle;
|
|
474
|
+
};
|
|
464
475
|
buttonType: {
|
|
465
476
|
type: () => import("../../../neon").NeonButtonType;
|
|
466
477
|
default: import("../../../neon").NeonButtonType;
|
|
467
478
|
};
|
|
468
479
|
state: {
|
|
469
|
-
type: () =>
|
|
470
|
-
default:
|
|
480
|
+
type: () => NeonState;
|
|
481
|
+
default: NeonState;
|
|
471
482
|
};
|
|
472
483
|
disabled: {
|
|
473
484
|
type: BooleanConstructor;
|
|
@@ -542,9 +553,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
542
553
|
default: boolean;
|
|
543
554
|
};
|
|
544
555
|
alternateColor: {
|
|
545
|
-
type: () => NeonFunctionalColor;
|
|
546
|
-
* Items to display as cards. Each item should be a NeonCardListModel.
|
|
547
|
-
*/
|
|
556
|
+
type: () => NeonFunctionalColor;
|
|
548
557
|
default: null;
|
|
549
558
|
};
|
|
550
559
|
icon: {
|
|
@@ -560,19 +569,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
560
569
|
};
|
|
561
570
|
buttonStyle: {
|
|
562
571
|
type: () => NeonButtonStyle;
|
|
563
|
-
default: NeonButtonStyle;
|
|
564
|
-
|
|
565
|
-
*/
|
|
566
|
-
}; /**
|
|
567
|
-
* Model for configuring the on-demand loading layout.
|
|
568
|
-
*/
|
|
572
|
+
default: NeonButtonStyle;
|
|
573
|
+
};
|
|
569
574
|
buttonType: {
|
|
570
575
|
type: () => import("../../../neon").NeonButtonType;
|
|
571
576
|
default: import("../../../neon").NeonButtonType;
|
|
572
577
|
};
|
|
573
578
|
state: {
|
|
574
|
-
type: () =>
|
|
575
|
-
default:
|
|
579
|
+
type: () => NeonState;
|
|
580
|
+
default: NeonState;
|
|
576
581
|
};
|
|
577
582
|
disabled: {
|
|
578
583
|
type: BooleanConstructor;
|
|
@@ -617,7 +622,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
617
622
|
iconPosition: import("../../../neon").NeonHorizontalPosition;
|
|
618
623
|
buttonStyle: NeonButtonStyle;
|
|
619
624
|
buttonType: import("../../../neon").NeonButtonType;
|
|
620
|
-
state:
|
|
625
|
+
state: NeonState;
|
|
621
626
|
transparent: boolean;
|
|
622
627
|
circular: boolean;
|
|
623
628
|
fullWidth: boolean;
|
|
@@ -741,9 +746,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
741
746
|
[x: string]: unknown;
|
|
742
747
|
}>;
|
|
743
748
|
activeRoute: import("vue").ComputedRef<boolean | "" | undefined>;
|
|
744
|
-
exactRoute: import("vue").ComputedRef<boolean | "" | undefined>;
|
|
745
|
-
* Model for configuring the on-demand loading layout.
|
|
746
|
-
*/
|
|
749
|
+
exactRoute: import("vue").ComputedRef<boolean | "" | undefined>;
|
|
747
750
|
onClick: () => void;
|
|
748
751
|
onSpace: () => Promise<void>;
|
|
749
752
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -902,9 +905,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
902
905
|
default: boolean;
|
|
903
906
|
};
|
|
904
907
|
alternateColor: {
|
|
905
|
-
type: () => NeonFunctionalColor;
|
|
906
|
-
* Items to display as cards. Each item should be a NeonCardListModel.
|
|
907
|
-
*/
|
|
908
|
+
type: () => NeonFunctionalColor;
|
|
908
909
|
default: null;
|
|
909
910
|
};
|
|
910
911
|
icon: {
|
|
@@ -920,19 +921,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
920
921
|
};
|
|
921
922
|
buttonStyle: {
|
|
922
923
|
type: () => NeonButtonStyle;
|
|
923
|
-
default: NeonButtonStyle;
|
|
924
|
-
|
|
925
|
-
*/
|
|
926
|
-
}; /**
|
|
927
|
-
* Model for configuring the on-demand loading layout.
|
|
928
|
-
*/
|
|
924
|
+
default: NeonButtonStyle;
|
|
925
|
+
};
|
|
929
926
|
buttonType: {
|
|
930
927
|
type: () => import("../../../neon").NeonButtonType;
|
|
931
928
|
default: import("../../../neon").NeonButtonType;
|
|
932
929
|
};
|
|
933
930
|
state: {
|
|
934
|
-
type: () =>
|
|
935
|
-
default:
|
|
931
|
+
type: () => NeonState;
|
|
932
|
+
default: NeonState;
|
|
936
933
|
};
|
|
937
934
|
disabled: {
|
|
938
935
|
type: BooleanConstructor;
|
|
@@ -1007,9 +1004,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1007
1004
|
default: boolean;
|
|
1008
1005
|
};
|
|
1009
1006
|
alternateColor: {
|
|
1010
|
-
type: () => NeonFunctionalColor;
|
|
1011
|
-
* Items to display as cards. Each item should be a NeonCardListModel.
|
|
1012
|
-
*/
|
|
1007
|
+
type: () => NeonFunctionalColor;
|
|
1013
1008
|
default: null;
|
|
1014
1009
|
};
|
|
1015
1010
|
icon: {
|
|
@@ -1025,19 +1020,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1025
1020
|
};
|
|
1026
1021
|
buttonStyle: {
|
|
1027
1022
|
type: () => NeonButtonStyle;
|
|
1028
|
-
default: NeonButtonStyle;
|
|
1029
|
-
|
|
1030
|
-
*/
|
|
1031
|
-
}; /**
|
|
1032
|
-
* Model for configuring the on-demand loading layout.
|
|
1033
|
-
*/
|
|
1023
|
+
default: NeonButtonStyle;
|
|
1024
|
+
};
|
|
1034
1025
|
buttonType: {
|
|
1035
1026
|
type: () => import("../../../neon").NeonButtonType;
|
|
1036
1027
|
default: import("../../../neon").NeonButtonType;
|
|
1037
1028
|
};
|
|
1038
1029
|
state: {
|
|
1039
|
-
type: () =>
|
|
1040
|
-
default:
|
|
1030
|
+
type: () => NeonState;
|
|
1031
|
+
default: NeonState;
|
|
1041
1032
|
};
|
|
1042
1033
|
disabled: {
|
|
1043
1034
|
type: BooleanConstructor;
|
|
@@ -1082,7 +1073,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1082
1073
|
iconPosition: import("../../../neon").NeonHorizontalPosition;
|
|
1083
1074
|
buttonStyle: NeonButtonStyle;
|
|
1084
1075
|
buttonType: import("../../../neon").NeonButtonType;
|
|
1085
|
-
state:
|
|
1076
|
+
state: NeonState;
|
|
1086
1077
|
transparent: boolean;
|
|
1087
1078
|
circular: boolean;
|
|
1088
1079
|
fullWidth: boolean;
|
|
@@ -1206,9 +1197,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1206
1197
|
[x: string]: unknown;
|
|
1207
1198
|
}>;
|
|
1208
1199
|
activeRoute: import("vue").ComputedRef<boolean | "" | undefined>;
|
|
1209
|
-
exactRoute: import("vue").ComputedRef<boolean | "" | undefined>;
|
|
1210
|
-
* Model for configuring the on-demand loading layout.
|
|
1211
|
-
*/
|
|
1200
|
+
exactRoute: import("vue").ComputedRef<boolean | "" | undefined>;
|
|
1212
1201
|
onClick: () => void;
|
|
1213
1202
|
onSpace: () => Promise<void>;
|
|
1214
1203
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1334,9 +1323,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1334
1323
|
[x: string]: unknown;
|
|
1335
1324
|
}>;
|
|
1336
1325
|
activeRoute: import("vue").ComputedRef<boolean | "" | undefined>;
|
|
1337
|
-
exactRoute: import("vue").ComputedRef<boolean | "" | undefined>;
|
|
1338
|
-
* Model for configuring the on-demand loading layout.
|
|
1339
|
-
*/
|
|
1326
|
+
exactRoute: import("vue").ComputedRef<boolean | "" | undefined>;
|
|
1340
1327
|
onClick: () => void;
|
|
1341
1328
|
onSpace: () => Promise<void>;
|
|
1342
1329
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|