impact-nova 2.1.0-alpha.6 → 2.1.0-alpha.8
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/data/ag-grid-react/ag-grid.types.d.ts +6 -0
- package/dist/components/data/ag-grid-react/build-ag-grid-theme.d.ts +3 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/input-cell-editor.js +58 -58
- package/dist/components/data/ag-grid-react/column-indicator-sync-bus.d.ts +9 -0
- package/dist/components/data/ag-grid-react/column-indicator-sync-bus.js +15 -0
- package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.js +78 -73
- package/dist/components/data/ag-grid-react/headers/custom-header.js +3 -1
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +87 -91
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +109 -100
- package/dist/components/data/ag-grid-react/notify-column-indicator-sync.d.ts +3 -2
- package/dist/components/data/ag-grid-react/notify-column-indicator-sync.js +4 -3
- package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.d.ts +3 -0
- package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.js +10 -0
- package/dist/components/data/ag-grid-react/theme.d.ts +1 -0
- package/dist/components/data/ag-grid-react/theme.js +93 -21
- package/dist/components/data/data-table/column-indicator.d.ts +1 -1
- package/dist/components/data/data-table/column-indicator.js +15 -11
- package/dist/components/data/data-table/data-table-column-def-pin.d.ts +9 -4
- package/dist/components/data/data-table/data-table-column-def-pin.js +38 -38
- package/dist/components/data/data-table/data-table-saved-views.js +37 -37
- package/dist/components/data/data-table/data-table-sheet.js +15 -17
- package/dist/components/data/data-table/data-table.js +62 -57
- package/dist/components/data/data-table/data-table.types.d.ts +7 -1
- package/dist/components/data/data-table/indicator-legend.d.ts +13 -2
- package/dist/components/data/data-table/indicator-legend.js +20 -17
- package/dist/components/data/data-table/pin-switch.js +9 -9
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +133 -130
- package/dist/components/data/nested-list/nested-list-change-detection.d.ts +11 -0
- package/dist/components/data/nested-list/nested-list-change-detection.js +13 -0
- package/dist/components/data/nested-list/nested-list.js +107 -97
- package/dist/components/data-display/calendar/calendar.d.ts +1 -1
- package/dist/components/data-display/calendar/calendar.js +194 -189
- package/dist/components/data-display/chart/chart-palette.d.ts +16 -0
- package/dist/components/data-display/chart/chart-palette.js +28 -0
- package/dist/components/data-display/chart/chart.js +121 -115
- package/dist/components/data-display/chart/chart.utils.js +9 -6
- package/dist/components/data-display/chart/index.d.ts +1 -0
- package/dist/components/data-display/chart/index.js +15 -9
- package/dist/components/data-display/chart/resolve-highcharts-options.d.ts +3 -0
- package/dist/components/data-display/chart/resolve-highcharts-options.js +35 -0
- package/dist/components/data-display/statistics-card/statistics-card.color.d.ts +6 -0
- package/dist/components/data-display/statistics-card/statistics-card.color.js +19 -0
- package/dist/components/data-display/statistics-card/statistics-card.hooks.js +50 -48
- package/dist/components/data-display/statistics-card/statistics-card.js +127 -146
- package/dist/components/feedback/alert-dialog/alert-dialog.js +15 -15
- package/dist/components/feedback/dialog/dialog.js +3 -3
- package/dist/components/feedback/drawer/drawer.js +32 -32
- package/dist/components/feedback/sheet/sheet.js +8 -8
- package/dist/components/feedback/sheet/sheet.variants.js +1 -1
- package/dist/components/feedback/toast/toast.js +83 -92
- package/dist/components/flows/command-palette/command-palette-context.types.d.ts +5 -0
- package/dist/components/flows/command-palette/command-palette.d.ts +4 -16
- package/dist/components/flows/command-palette/command-palette.js +245 -258
- package/dist/components/flows/command-palette/command-palette.types.d.ts +9 -0
- package/dist/components/flows/command-palette/shortcut-overlay.js +6 -6
- package/dist/components/flows/filter-panel/filter-panel.d.ts +3 -2
- package/dist/components/flows/filter-panel/filter-panel.js +99 -104
- package/dist/components/flows/filter-strip/filter-summary.js +41 -41
- package/dist/components/flows/filter-strip/filter-tag-list.js +48 -48
- package/dist/components/flows/wizard/wizard.js +32 -32
- package/dist/components/forms/choice-card/choice-card.d.ts +2 -2
- package/dist/components/forms/choice-card/choice-card.js +156 -166
- package/dist/components/forms/combobox/combobox.js +70 -70
- package/dist/components/forms/date-picker/date-picker.js +31 -30
- package/dist/components/forms/file-upload/file-upload.js +146 -168
- package/dist/components/forms/prompt/prompt.js +47 -48
- package/dist/components/forms/select/components/SelectAllRow.js +14 -14
- package/dist/components/forms/select/components/SelectMenuFooter.js +12 -12
- package/dist/components/forms/select/components/SelectMenuHeader.js +44 -44
- package/dist/components/forms/select/components/SelectMenuListBody.js +22 -22
- package/dist/components/forms/select/components/SelectMenuPanel.js +8 -8
- package/dist/components/forms/select/components/SelectOptionRow.js +62 -62
- package/dist/components/forms/select/select.d.ts +5 -4
- package/dist/components/forms/select/select.js +123 -120
- package/dist/components/forms/select/select.types.d.ts +95 -204
- package/dist/components/forms/slider/slider.js +17 -17
- package/dist/components/forms/smart-input/smart-input.js +49 -49
- package/dist/components/forms/textarea/textarea.js +25 -25
- package/dist/components/layout/breadcrumb/breadcrumb.js +112 -118
- package/dist/components/layout/header/header.d.ts +5 -17
- package/dist/components/layout/header/header.js +113 -116
- package/dist/components/layout/header/header.types.d.ts +3 -0
- package/dist/components/layout/sidebar/sidebar.js +5 -5
- package/dist/components/layout/sidebar/sidebar.variants.js +1 -1
- package/dist/components/primitives/accordion/accordion.js +38 -41
- package/dist/components/primitives/kbd/kbd.variants.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +2 -0
- package/dist/i18n/defaultMessages.js +6 -4
- package/dist/i18n/locales/de.js +2 -0
- package/dist/i18n/locales/es.js +2 -0
- package/dist/i18n/locales/hi.js +2 -0
- package/dist/i18n/locales/kn.js +2 -0
- package/dist/impact-nova-base.scss +8 -5
- package/dist/impact-nova-components.css +2 -2
- package/dist/impact-nova-tokens.scss +346 -189
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +505 -499
- package/dist/lib/primitives/create-component.d.ts +1 -1
- package/dist/lib/primitives/create-component.js +4 -4
- package/dist/lib/primitives/field.js +17 -18
- package/dist/lib/resolve-design-token-color.d.ts +5 -0
- package/dist/lib/resolve-design-token-color.js +12 -0
- package/dist/lib/virtualized/virtualized-list-parts.d.ts +1 -2
- package/dist/lib/virtualized/virtualized-list-parts.js +23 -23
- package/dist/lib/virtualized/virtualized.types.d.ts +10 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/theme/tokens/chart-series-palette.json.d.ts +53 -0
- package/dist/theme/tokens/chart-series-palette.json.js +7 -0
- package/package.json +22 -254
- package/tailwind.config.js +10 -229
|
@@ -1,199 +1,204 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
weekMode: r = "single",
|
|
26
|
-
selectedWeeks: _,
|
|
27
|
-
onWeekSelect: I,
|
|
28
|
-
calendarType: t = "calendar",
|
|
29
|
-
fiscalMode: u = "basic",
|
|
30
|
-
selectionMode: b = "week",
|
|
31
|
-
fiscalMonthPattern: j,
|
|
32
|
-
fiscalYearStartMonth: w = 1,
|
|
33
|
-
weekStartsOn: g = 1,
|
|
34
|
-
monthMode: o = "single",
|
|
35
|
-
selectedMonths: C,
|
|
36
|
-
onMonthSelect: H,
|
|
37
|
-
month: O,
|
|
38
|
-
defaultMonth: U,
|
|
39
|
-
onMonthChange: V,
|
|
40
|
-
startMonth: q,
|
|
41
|
-
endMonth: z,
|
|
42
|
-
...c
|
|
43
|
-
}) {
|
|
44
|
-
const { t: e, intlLocale: B, dateFnsLocale: G, monthsFull: J, monthsShort: K } = ve(), p = ge({
|
|
45
|
-
calendarType: t,
|
|
46
|
-
fiscalMode: u,
|
|
47
|
-
fiscalMonthPattern: j
|
|
48
|
-
}), s = q ?? me, i = z ?? he, {
|
|
49
|
-
pendingSelection: L,
|
|
50
|
-
currentMonth: v,
|
|
51
|
-
pendingWeekSelection: Q,
|
|
52
|
-
pendingMonthSelection: A,
|
|
53
|
-
monthPickerYear: X,
|
|
54
|
-
handleMonthChangeInternal: S,
|
|
55
|
-
resolveWeekFromInput: Z,
|
|
56
|
-
handleWeekClick: $,
|
|
57
|
-
handleMonthClick: T,
|
|
58
|
-
availableYears: M,
|
|
59
|
-
selectedDaysFromWeeks: ee,
|
|
60
|
-
weekRangeModifiers: ae,
|
|
61
|
-
handleInternalSelect: ne,
|
|
62
|
-
handleApply: le,
|
|
63
|
-
handleCancel: re,
|
|
64
|
-
handleClear: te,
|
|
65
|
-
isMonthSelected: oe,
|
|
66
|
-
getMonthRangeProps: de,
|
|
67
|
-
isMonthDisabled: ce,
|
|
68
|
-
isApplyDisabledInternal: se
|
|
69
|
-
} = Ae({
|
|
70
|
-
showFooter: l,
|
|
1
|
+
import { jsxs as he, jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { createComponent as me } from "../../../lib/primitives/create-component.js";
|
|
3
|
+
import { CALENDAR_DEFAULT_END_MONTH as ue, CALENDAR_DEFAULT_START_MONTH as be, getCalendarDayLayoutAttr as Ce, getCalendarMonthLayoutAttr as ge, resolveFiscalPattern as pe } from "./calendar-config.js";
|
|
4
|
+
import { CalendarDayPickerView as Le } from "./calendar-day-picker-view.js";
|
|
5
|
+
import { CalendarFooter as ve } from "./calendar-footer.js";
|
|
6
|
+
import { CalendarMonthPanes as Ae } from "./calendar-month-panes.js";
|
|
7
|
+
import { useCalendarI18n as Se } from "./use-calendar-i18n.js";
|
|
8
|
+
import { useCalendarState as Me } from "./use-calendar-state.js";
|
|
9
|
+
const xe = me(
|
|
10
|
+
"Calendar",
|
|
11
|
+
({
|
|
12
|
+
className: P,
|
|
13
|
+
classNames: f,
|
|
14
|
+
showOutsideDays: D = !1,
|
|
15
|
+
captionLayout: Y = "dropdown",
|
|
16
|
+
buttonVariant: k = "ghost",
|
|
17
|
+
formatters: y,
|
|
18
|
+
components: N,
|
|
19
|
+
showFooter: l = !0,
|
|
20
|
+
disableApply: F = !1,
|
|
21
|
+
onApply: x,
|
|
22
|
+
onCancel: E,
|
|
23
|
+
onClear: R,
|
|
24
|
+
mode: d = "single",
|
|
71
25
|
selected: m,
|
|
72
26
|
onSelect: W,
|
|
73
|
-
pickerType: n,
|
|
74
|
-
weekMode: r,
|
|
27
|
+
pickerType: n = "date",
|
|
28
|
+
weekMode: r = "single",
|
|
75
29
|
selectedWeeks: _,
|
|
76
30
|
onWeekSelect: I,
|
|
77
|
-
calendarType: t,
|
|
78
|
-
fiscalMode: u,
|
|
79
|
-
selectionMode: b,
|
|
80
|
-
|
|
81
|
-
fiscalYearStartMonth: w,
|
|
82
|
-
weekStartsOn:
|
|
83
|
-
monthMode: o,
|
|
84
|
-
selectedMonths:
|
|
31
|
+
calendarType: t = "calendar",
|
|
32
|
+
fiscalMode: u = "basic",
|
|
33
|
+
selectionMode: b = "week",
|
|
34
|
+
fiscalMonthPattern: j,
|
|
35
|
+
fiscalYearStartMonth: w = 1,
|
|
36
|
+
weekStartsOn: C = 1,
|
|
37
|
+
monthMode: o = "single",
|
|
38
|
+
selectedMonths: g,
|
|
85
39
|
onMonthSelect: H,
|
|
86
40
|
month: O,
|
|
87
41
|
defaultMonth: U,
|
|
88
42
|
onMonthChange: V,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
43
|
+
startMonth: q,
|
|
44
|
+
endMonth: z,
|
|
45
|
+
...c
|
|
46
|
+
}, B) => {
|
|
47
|
+
const { t: e, intlLocale: G, dateFnsLocale: J, monthsFull: K, monthsShort: Q } = Se(), p = pe({
|
|
48
|
+
calendarType: t,
|
|
49
|
+
fiscalMode: u,
|
|
50
|
+
fiscalMonthPattern: j
|
|
51
|
+
}), s = q ?? be, i = z ?? ue, {
|
|
52
|
+
pendingSelection: L,
|
|
53
|
+
currentMonth: v,
|
|
54
|
+
pendingWeekSelection: X,
|
|
55
|
+
pendingMonthSelection: A,
|
|
56
|
+
monthPickerYear: Z,
|
|
57
|
+
handleMonthChangeInternal: S,
|
|
58
|
+
resolveWeekFromInput: $,
|
|
59
|
+
handleWeekClick: T,
|
|
60
|
+
handleMonthClick: ee,
|
|
61
|
+
availableYears: M,
|
|
62
|
+
selectedDaysFromWeeks: ae,
|
|
63
|
+
weekRangeModifiers: ne,
|
|
64
|
+
handleInternalSelect: le,
|
|
65
|
+
handleApply: re,
|
|
66
|
+
handleCancel: te,
|
|
67
|
+
handleClear: oe,
|
|
68
|
+
isMonthSelected: de,
|
|
69
|
+
getMonthRangeProps: ce,
|
|
70
|
+
isMonthDisabled: se,
|
|
71
|
+
isApplyDisabledInternal: ie
|
|
72
|
+
} = Me({
|
|
73
|
+
showFooter: l,
|
|
74
|
+
selected: m,
|
|
75
|
+
onSelect: W,
|
|
76
|
+
pickerType: n,
|
|
77
|
+
weekMode: r,
|
|
78
|
+
selectedWeeks: _,
|
|
79
|
+
onWeekSelect: I,
|
|
80
|
+
calendarType: t,
|
|
81
|
+
fiscalMode: u,
|
|
82
|
+
selectionMode: b,
|
|
83
|
+
resolvedFiscalPattern: p,
|
|
84
|
+
fiscalYearStartMonth: w,
|
|
85
|
+
weekStartsOn: C,
|
|
86
|
+
monthMode: o,
|
|
87
|
+
selectedMonths: g,
|
|
88
|
+
onMonthSelect: H,
|
|
89
|
+
month: O,
|
|
90
|
+
defaultMonth: U,
|
|
91
|
+
onMonthChange: V,
|
|
92
|
+
resolvedStartMonth: s,
|
|
93
|
+
resolvedEndMonth: i,
|
|
94
|
+
disabled: c.disabled,
|
|
95
|
+
onApply: x,
|
|
96
|
+
onCancel: E,
|
|
97
|
+
onClear: R
|
|
98
|
+
});
|
|
99
|
+
return /* @__PURE__ */ he(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
ref: B,
|
|
103
|
+
"data-component": "calendar",
|
|
104
|
+
"data-month-layout": ge(n, o),
|
|
105
|
+
"data-day-layout": Ce(n, d, r),
|
|
106
|
+
children: [
|
|
107
|
+
n === "month" ? /* @__PURE__ */ h(
|
|
108
|
+
Ae,
|
|
109
|
+
{
|
|
110
|
+
monthMode: o,
|
|
111
|
+
monthPickerYear: Z,
|
|
112
|
+
monthsShort: Q,
|
|
113
|
+
showFooter: l,
|
|
114
|
+
pendingMonthSelection: A,
|
|
115
|
+
selectedMonths: g,
|
|
116
|
+
resolvedStartYear: s.getFullYear(),
|
|
117
|
+
resolvedEndYear: i.getFullYear(),
|
|
118
|
+
yearOptions: M,
|
|
119
|
+
previousYearLabel: e("calendar.previousYear"),
|
|
120
|
+
nextYearLabel: e("calendar.nextYear"),
|
|
121
|
+
currentMonth: v,
|
|
122
|
+
isMonthSelected: de,
|
|
123
|
+
getMonthRangeProps: ce,
|
|
124
|
+
isMonthDisabled: se,
|
|
125
|
+
onMonthChange: S,
|
|
126
|
+
onMonthClick: ee
|
|
127
|
+
}
|
|
128
|
+
) : /* @__PURE__ */ h(
|
|
129
|
+
Le,
|
|
130
|
+
{
|
|
131
|
+
className: P,
|
|
132
|
+
pickerType: n,
|
|
133
|
+
mode: d,
|
|
134
|
+
weekMode: r,
|
|
135
|
+
calendarType: t,
|
|
136
|
+
showOutsideDays: D,
|
|
137
|
+
captionLayout: Y,
|
|
138
|
+
buttonVariant: k,
|
|
139
|
+
weekStartsOn: C,
|
|
140
|
+
formatters: y,
|
|
141
|
+
classNames: f,
|
|
142
|
+
components: N,
|
|
143
|
+
selected: m,
|
|
144
|
+
showFooter: l,
|
|
145
|
+
pendingSelection: L,
|
|
146
|
+
selectedDaysFromWeeks: ae,
|
|
147
|
+
currentMonth: v,
|
|
148
|
+
monthsFull: K,
|
|
149
|
+
resolvedStartMonth: s,
|
|
150
|
+
resolvedEndMonth: i,
|
|
151
|
+
availableYears: M,
|
|
152
|
+
dateFnsLocale: J,
|
|
153
|
+
intlLocale: G,
|
|
154
|
+
weekRangeModifiers: ne,
|
|
155
|
+
onSelect: le,
|
|
156
|
+
onMonthChange: S,
|
|
157
|
+
onWeekSelect: (a) => T($(a)),
|
|
158
|
+
previousMonthLabel: e("calendar.previousMonth"),
|
|
159
|
+
nextMonthLabel: e("calendar.nextMonth"),
|
|
160
|
+
monthPlaceholder: e("calendar.monthPlaceholder"),
|
|
161
|
+
yearPlaceholder: e("calendar.yearPlaceholder"),
|
|
162
|
+
weekNumberLabel: (a) => e("calendar.weekNumber", { number: a }),
|
|
163
|
+
weekLabel: (a) => e("calendar.weekLabel", { number: a }),
|
|
164
|
+
formatWeekNumber: (a) => e("calendar.weekNumber", { number: a }),
|
|
165
|
+
disabled: c.disabled,
|
|
166
|
+
...c
|
|
167
|
+
}
|
|
168
|
+
),
|
|
169
|
+
l ? /* @__PURE__ */ h(
|
|
170
|
+
ve,
|
|
171
|
+
{
|
|
172
|
+
pickerType: n,
|
|
173
|
+
mode: d,
|
|
174
|
+
weekMode: r,
|
|
175
|
+
monthMode: o,
|
|
176
|
+
calendarType: t,
|
|
177
|
+
selectionMode: b,
|
|
178
|
+
resolvedFiscalPattern: p,
|
|
179
|
+
pendingSelection: L,
|
|
180
|
+
pendingWeekSelection: X,
|
|
181
|
+
pendingMonthSelection: A,
|
|
182
|
+
disableApply: F,
|
|
183
|
+
isApplyDisabled: ie,
|
|
184
|
+
labels: {
|
|
185
|
+
clear: e("calendar.clear"),
|
|
186
|
+
cancel: e("calendar.cancel"),
|
|
187
|
+
apply: e("calendar.apply"),
|
|
188
|
+
selected: "Selected:",
|
|
189
|
+
monthSingle: e("calendar.monthRange"),
|
|
190
|
+
monthPlural: (a) => e("calendar.monthRangePlural", { count: a })
|
|
191
|
+
},
|
|
192
|
+
onClear: oe,
|
|
193
|
+
onCancel: te,
|
|
194
|
+
onApply: re
|
|
195
|
+
}
|
|
196
|
+
) : null
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
);
|
|
197
202
|
export {
|
|
198
|
-
|
|
203
|
+
xe as Calendar
|
|
199
204
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Canonical chart tokens from light.json — always palette slots 1–5. */
|
|
2
|
+
export declare const CHART_CANONICAL_CSS_VARS: readonly ["var(--color-chart-1)", "var(--color-chart-2)", "var(--color-chart-3)", "var(--color-chart-4)", "var(--color-chart-5)"];
|
|
3
|
+
/**
|
|
4
|
+
* Full Highcharts palette: chart-1..5 first, then extended series 6–50.
|
|
5
|
+
* 50 distinct colors; series 51+ cycles.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CHART_PALETTE_CSS_VARS: readonly ["var(--color-chart-1)", "var(--color-chart-2)", "var(--color-chart-3)", "var(--color-chart-4)", "var(--color-chart-5)", ...string[]];
|
|
8
|
+
/** Number of distinct series colors before Highcharts cycles the palette. */
|
|
9
|
+
export declare const CHART_PALETTE_SIZE: number;
|
|
10
|
+
/**
|
|
11
|
+
* Token for series index `i`.
|
|
12
|
+
* 0–4 → chart-1..5; 5–49 → chart-series-06..50; 50+ wraps.
|
|
13
|
+
*/
|
|
14
|
+
export declare function chartPaletteCssVar(index: number): string;
|
|
15
|
+
/** Resolved palette for Highcharts `colors` (browser only). */
|
|
16
|
+
export declare function resolveChartPalette(scope?: HTMLElement): string[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import c from "../../../theme/tokens/chart-series-palette.json.js";
|
|
2
|
+
import { resolveDesignTokenColor as a } from "../../../lib/resolve-design-token-color.js";
|
|
3
|
+
const n = [
|
|
4
|
+
"var(--color-chart-1)",
|
|
5
|
+
"var(--color-chart-2)",
|
|
6
|
+
"var(--color-chart-3)",
|
|
7
|
+
"var(--color-chart-4)",
|
|
8
|
+
"var(--color-chart-5)"
|
|
9
|
+
], l = c.colors.map(
|
|
10
|
+
(r) => `var(${r.cssVar})`
|
|
11
|
+
), e = [
|
|
12
|
+
...n,
|
|
13
|
+
...l
|
|
14
|
+
], A = e.length;
|
|
15
|
+
function S(r) {
|
|
16
|
+
const t = e, o = t.length;
|
|
17
|
+
return t[(r % o + o) % o];
|
|
18
|
+
}
|
|
19
|
+
function _(r = document.documentElement) {
|
|
20
|
+
return e.map((t) => a(t, r));
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
n as CHART_CANONICAL_CSS_VARS,
|
|
24
|
+
e as CHART_PALETTE_CSS_VARS,
|
|
25
|
+
A as CHART_PALETTE_SIZE,
|
|
26
|
+
S as chartPaletteCssVar,
|
|
27
|
+
_ as resolveChartPalette
|
|
28
|
+
};
|