@oscarpalmer/oui 0.37.0 → 0.39.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/css/a11y.css +1 -0
- package/dist/css/badge.css +12 -8
- package/dist/css/button.css +111 -14
- package/dist/css/color-picker.css +859 -0
- package/dist/css/color.css +86 -87
- package/dist/css/combobox.css +105 -4
- package/dist/css/content.css +8 -6
- package/dist/css/floatable.css +3 -3
- package/dist/css/form.css +106 -6
- package/dist/css/icon.css +99 -0
- package/dist/css/listbox.css +5 -0
- package/dist/css/message.css +6 -3
- package/dist/css/mixins/badge.mixins.css +2 -0
- package/dist/css/mixins/button.mixins.css +3 -0
- package/dist/css/mixins/message.mixins.css +1 -0
- package/dist/css/mixins/misc.mixins.css +2 -0
- package/dist/css/mixins/shadow.mixins.css +1 -0
- package/dist/css/reset.css +3 -3
- package/dist/css/splitter.css +1 -1
- package/dist/css/tabs.css +115 -23
- package/dist/css/typography.css +90 -0
- package/dist/js/color-picker/constants.color-picker.d.mts +2 -0
- package/dist/js/color-picker/constants.color-picker.mjs +59 -0
- package/dist/js/color-picker/dom.color-picker.d.mts +8 -0
- package/dist/js/color-picker/dom.color-picker.mjs +191 -0
- package/dist/js/color-picker/event.color-picker.d.mts +9 -0
- package/dist/js/color-picker/event.color-picker.mjs +2 -0
- package/dist/js/color-picker/form.color-picker.d.mts +5 -0
- package/dist/js/color-picker/form.color-picker.mjs +24 -0
- package/dist/js/color-picker/index.d.mts +2 -0
- package/dist/js/color-picker/index.mjs +303 -0
- package/dist/js/color-picker/misc.color-picker.d.mts +2 -0
- package/dist/js/color-picker/misc.color-picker.mjs +2 -0
- package/dist/js/color-picker/models.color-picker.d.mts +2 -0
- package/dist/js/color-picker/models.color-picker.mjs +24 -0
- package/dist/js/color-picker/output.color-picker.d.mts +8 -0
- package/dist/js/color-picker/output.color-picker.mjs +233 -0
- package/dist/js/color-picker/state.color-picker.d.mts +8 -0
- package/dist/js/color-picker/state.color-picker.mjs +2 -0
- package/dist/js/combobox/constants.combobox.d.mts +1 -1
- package/dist/js/combobox/dom.combobox.d.mts +12 -13
- package/dist/js/combobox/dom.combobox.mjs +12 -5
- package/dist/js/combobox/event.combobox.d.mts +20 -21
- package/dist/js/combobox/event.combobox.mjs +1 -1
- package/dist/js/combobox/index.d.mts +1 -1
- package/dist/js/combobox/index.mjs +56 -2
- package/dist/js/combobox/misc.combobox.d.mts +1 -1
- package/dist/js/combobox/misc.combobox.mjs +1 -1
- package/dist/js/combobox/models.combobox.d.mts +12 -13
- package/dist/js/combobox/state.combobox.d.mts +8 -9
- package/dist/js/combobox/state.combobox.mjs +1 -1
- package/dist/js/constants.color-picker-B-gFjL8m.d.mts +364 -0
- package/dist/js/constants.combobox-8EMRmv09.d.mts +18 -0
- package/dist/js/constants.listbox-DGnX32kv.d.mts +8 -0
- package/dist/js/dialog.d.mts +2 -2
- package/dist/js/dialog.mjs +1 -1
- package/dist/js/{draggable-a6w0J1OD.d.mts → draggable-B5-70SZm.d.mts} +5 -4
- package/dist/js/event.color-picker-BEpq0Adu.mjs +485 -0
- package/dist/js/floatable/floatable.embedded.d.mts +1 -1
- package/dist/js/floatable/floatable.embedded.mjs +11 -8
- package/dist/js/floatable/floatable.standalone.d.mts +1 -1
- package/dist/js/{floatable.embedded-Bct4U5Dm.d.mts → floatable.embedded-DQYkXt8X.d.mts} +1 -1
- package/dist/js/focus-trap/focus-trap.embedded.d.mts +1 -1
- package/dist/js/focus-trap/focus-trap.standalone.d.mts +1 -1
- package/dist/js/{focus-trap.embedded-DR8NpZfr.d.mts → focus-trap.embedded-CjyFQYow.d.mts} +2 -2
- package/dist/js/{index-EfkUSals.d.mts → index-C5D3-oiI.d.mts} +41 -3
- package/dist/js/index.d.mts +8 -7
- package/dist/js/index.mjs +6 -3
- package/dist/js/internal/attributable.d.mts +2 -3
- package/dist/js/internal/draggable.d.mts +1 -1
- package/dist/js/internal/draggable.mjs +1 -1
- package/dist/js/internal/listbox/listbox.constants.d.mts +7 -10
- package/dist/js/internal/listbox/listbox.constants.mjs +15 -16
- package/dist/js/internal/listbox/listbox.data.d.mts +9 -10
- package/dist/js/internal/listbox/listbox.data.mjs +1 -1
- package/dist/js/internal/listbox/listbox.dom.d.mts +19 -20
- package/dist/js/internal/listbox/listbox.dom.mjs +1 -1
- package/dist/js/internal/listbox/listbox.event.d.mts +3 -4
- package/dist/js/internal/listbox/listbox.event.mjs +4 -4
- package/dist/js/internal/listbox/listbox.form.d.mts +4 -5
- package/dist/js/internal/listbox/listbox.form.mjs +16 -15
- package/dist/js/internal/listbox/listbox.misc.d.mts +10 -11
- package/dist/js/internal/listbox/listbox.misc.mjs +1 -1
- package/dist/js/internal/listbox/listbox.model.d.mts +1 -1
- package/dist/js/internal/listbox/listbox.state.d.mts +5 -6
- package/dist/js/internal/listbox/listbox.state.mjs +3 -3
- package/dist/js/internal/misc.d.mts +4 -4
- package/dist/js/internal/misc.mjs +9 -1
- package/dist/js/internal/navigable.d.mts +9 -10
- package/dist/js/internal/navigable.mjs +1 -0
- package/dist/js/listbox/constants.listbox.d.mts +1 -1
- package/dist/js/listbox/event.listbox.d.mts +6 -7
- package/dist/js/listbox/event.listbox.mjs +1 -1
- package/dist/js/listbox/index.d.mts +43 -5
- package/dist/js/listbox/index.mjs +56 -2
- package/dist/js/listbox/misc.listbox.d.mts +1 -1
- package/dist/js/listbox/misc.listbox.mjs +1 -1
- package/dist/js/listbox/state.listbox.d.mts +7 -8
- package/dist/js/listbox/state.listbox.mjs +1 -1
- package/dist/js/{listbox.data-BWd0PCy7.mjs → listbox.data-DQ7-x2uY.mjs} +8 -7
- package/dist/js/{listbox.model-CRReGOmu.d.mts → listbox.model-BHPA7GM4.d.mts} +3 -3
- package/dist/js/menu.mjs +1 -1
- package/dist/js/{misc.listbox-BI-XsTOf.mjs → misc.listbox-DKB-j0UK.mjs} +4 -5
- package/dist/js/{misc.listbox-gnoJhrTr.d.mts → misc.listbox-mZMuYOxg.d.mts} +1 -1
- package/dist/js/movable/movable.embedded.d.mts +1 -1
- package/dist/js/movable/movable.standalone.d.mts +1 -1
- package/dist/js/popover.d.mts +2 -2
- package/dist/js/popover.mjs +1 -1
- package/dist/js/resizable/resizable.embedded.d.mts +1 -1
- package/dist/js/resizable/resizable.embedded.mjs +1 -1
- package/dist/js/resizable/resizable.standalone.d.mts +1 -1
- package/dist/js/{resizable.embedded-3qoR0Bjm.d.mts → resizable.embedded-dvhdfQgt.d.mts} +1 -1
- package/dist/js/sortable/sortable.embedded.d.mts +1 -1
- package/dist/js/sortable/sortable.standalone.d.mts +1 -1
- package/dist/js/splitter.d.mts +2 -3
- package/dist/js/splitter.mjs +2 -2
- package/dist/js/{state.combobox-4xq0FPCF.mjs → state.combobox-BWDFHwoi.mjs} +9 -9
- package/dist/js/tabs.d.mts +4 -5
- package/dist/js/tabs.mjs +4 -7
- package/dist/js/tooltip.d.mts +1 -1
- package/package.json +24 -22
- package/dist/js/constants.combobox-DmRAMC64.d.mts +0 -26
- package/dist/js/constants.listbox-DRsXUxd3.d.mts +0 -14
- package/src/css/a11y.scss +0 -13
- package/src/css/badge.scss +0 -62
- package/src/css/button.scss +0 -50
- package/src/css/color.scss +0 -115
- package/src/css/combobox.scss +0 -252
- package/src/css/content.scss +0 -180
- package/src/css/flex.scss +0 -107
- package/src/css/floatable.scss +0 -152
- package/src/css/form.scss +0 -573
- package/src/css/listbox.scss +0 -120
- package/src/css/message.scss +0 -73
- package/src/css/mixins.scss +0 -419
- package/src/css/reset.scss +0 -392
- package/src/css/splitter.scss +0 -89
- package/src/css/table.scss +0 -107
- package/src/css/tabs.scss +0 -85
- package/src/js/combobox/constants.combobox.ts +0 -83
- package/src/js/combobox/dom.combobox.ts +0 -407
- package/src/js/combobox/event.combobox.ts +0 -365
- package/src/js/combobox/index.ts +0 -320
- package/src/js/combobox/misc.combobox.ts +0 -104
- package/src/js/combobox/models.combobox.ts +0 -54
- package/src/js/combobox/state.combobox.ts +0 -246
- package/src/js/dialog.ts +0 -255
- package/src/js/floatable/floatable.embedded.ts +0 -332
- package/src/js/floatable/floatable.standalone.ts +0 -6
- package/src/js/focus-trap/focus-trap.embedded.ts +0 -411
- package/src/js/focus-trap/focus-trap.standalone.ts +0 -1
- package/src/js/index.ts +0 -15
- package/src/js/internal/attributable.ts +0 -73
- package/src/js/internal/draggable.ts +0 -657
- package/src/js/internal/listbox/listbox.constants.ts +0 -25
- package/src/js/internal/listbox/listbox.data.ts +0 -287
- package/src/js/internal/listbox/listbox.dom.ts +0 -445
- package/src/js/internal/listbox/listbox.event.ts +0 -129
- package/src/js/internal/listbox/listbox.form.ts +0 -115
- package/src/js/internal/listbox/listbox.misc.ts +0 -135
- package/src/js/internal/listbox/listbox.model.ts +0 -169
- package/src/js/internal/listbox/listbox.state.ts +0 -82
- package/src/js/internal/misc.ts +0 -27
- package/src/js/internal/navigable.ts +0 -315
- package/src/js/l10n.ts +0 -192
- package/src/js/listbox/constants.listbox.ts +0 -61
- package/src/js/listbox/event.listbox.ts +0 -106
- package/src/js/listbox/index.ts +0 -302
- package/src/js/listbox/misc.listbox.ts +0 -70
- package/src/js/listbox/state.listbox.ts +0 -196
- package/src/js/menu.ts +0 -348
- package/src/js/movable/movable.embedded.ts +0 -318
- package/src/js/movable/movable.standalone.ts +0 -2
- package/src/js/popover.ts +0 -229
- package/src/js/resizable/resizable.embedded.ts +0 -413
- package/src/js/resizable/resizable.standalone.ts +0 -5
- package/src/js/sortable/sortable.embedded.ts +0 -527
- package/src/js/sortable/sortable.standalone.ts +0 -2
- package/src/js/splitter.ts +0 -583
- package/src/js/tabs.ts +0 -447
- package/src/js/toolbar.ts +0 -63
- package/src/js/tooltip.ts +0 -367
- /package/dist/css/{mixins.css → mixins/input.mixins.css} +0 -0
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { t as OuiLocalizations } from "./l10n-Bn-7RcwR.mjs";
|
|
2
|
+
import { r as OuiFloatable } from "./floatable.embedded-DQYkXt8X.mjs";
|
|
3
|
+
import { Color, HSLAColor, HSLColor, HWBAColor, HWBColor, RGBAColor, RGBColor } from "@oscarpalmer/atoms/color";
|
|
4
|
+
import { RemovableEventListener } from "@oscarpalmer/toretto";
|
|
5
|
+
//#region src/js/color-picker/misc.color-picker.d.ts
|
|
6
|
+
declare function getColorPickerId(): string;
|
|
7
|
+
declare function getColorPickerOutput(element: OuiColorPickerElement): OuiColorPickerOutputType;
|
|
8
|
+
declare function getColorPickerValueType(state: OuiColorPickerState, value: unknown): OuiColorPickerValueType | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Set localizations for a specific language
|
|
11
|
+
*
|
|
12
|
+
* @param language Language code
|
|
13
|
+
* @param localizations Localizations for language
|
|
14
|
+
*/
|
|
15
|
+
declare function setColorPickerLocalizations(language: string, localizations: Partial<OuiColorPickerLocalizations>): void;
|
|
16
|
+
/**
|
|
17
|
+
* Set localizations for one or more languages
|
|
18
|
+
*
|
|
19
|
+
* @param localizations Localizations for one or more languages
|
|
20
|
+
*/
|
|
21
|
+
declare function setColorPickerLocalizations(localizations: Record<string, Partial<OuiColorPickerLocalizations>>): void;
|
|
22
|
+
declare function setColorPickerDisabled(state: OuiColorPickerState, type: "disabled" | "readonly", value: boolean): void;
|
|
23
|
+
declare function setColorPickerRequired(state: OuiColorPickerState, value: boolean): void;
|
|
24
|
+
declare function setColorPickerValue<Type extends OuiColorPickerValueType>(state: OuiColorPickerState, value: unknown, type?: Type): void;
|
|
25
|
+
declare function setColorPickerValues(state: OuiColorPickerState, focus: boolean, input?: string): void;
|
|
26
|
+
declare function updateColorPickerLabels(state: OuiColorPickerState): void;
|
|
27
|
+
declare function updateColorPickerLocalizations(instance: OuiLocalizations<OuiColorPickerLocalizations>, destination: Record<string, Partial<OuiColorPickerLocalizations>>, first: string | Record<string, Partial<OuiColorPickerLocalizations>>, second?: Partial<OuiColorPickerLocalizations>): void;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/js/color-picker/index.d.ts
|
|
30
|
+
declare global {
|
|
31
|
+
interface HTMLElementTagNameMap {
|
|
32
|
+
[COLOR_PICKER_TAGNAME]: OuiColorPickerElement;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
declare class OuiColorPickerElement extends HTMLElement {
|
|
36
|
+
#private;
|
|
37
|
+
static formAssociated: boolean;
|
|
38
|
+
static observedAttributes: string[];
|
|
39
|
+
/**
|
|
40
|
+
* Is the color picker disabled?
|
|
41
|
+
*/
|
|
42
|
+
get disabled(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Should the color picker be disabled?
|
|
45
|
+
*/
|
|
46
|
+
set disabled(value: boolean);
|
|
47
|
+
/**
|
|
48
|
+
* Form element associated with the color picker
|
|
49
|
+
*/
|
|
50
|
+
get form(): HTMLFormElement | null;
|
|
51
|
+
/**
|
|
52
|
+
* Color value as hexadecimal string
|
|
53
|
+
*/
|
|
54
|
+
get hex(): string;
|
|
55
|
+
/**
|
|
56
|
+
* Set color value from a hexadecimal string
|
|
57
|
+
*/
|
|
58
|
+
set hex(value: string);
|
|
59
|
+
/**
|
|
60
|
+
* Color value as hexadecimal string with alpha channel
|
|
61
|
+
*/
|
|
62
|
+
get hexa(): string;
|
|
63
|
+
/**
|
|
64
|
+
* Set color value from a hexadecimal string with alpha channel
|
|
65
|
+
*/
|
|
66
|
+
set hexa(value: string);
|
|
67
|
+
/**
|
|
68
|
+
* Color value as an _HSL_ color object
|
|
69
|
+
*/
|
|
70
|
+
get hsl(): HSLColor;
|
|
71
|
+
/**
|
|
72
|
+
* Set color value from an _HSL_ color object
|
|
73
|
+
*/
|
|
74
|
+
set hsl(value: HSLColor);
|
|
75
|
+
/**
|
|
76
|
+
* Color value as an _HSLA_ color object _(HSL with alpha channel)_
|
|
77
|
+
*/
|
|
78
|
+
get hsla(): HSLAColor;
|
|
79
|
+
/**
|
|
80
|
+
* Set color value from an _HSLA_ color object _(HSL with alpha channel)_
|
|
81
|
+
*/
|
|
82
|
+
set hsla(value: HSLAColor);
|
|
83
|
+
/**
|
|
84
|
+
* Color value as an _HWB_ color object
|
|
85
|
+
*/
|
|
86
|
+
get hwb(): HWBColor;
|
|
87
|
+
/**
|
|
88
|
+
* Set color value from an _HWB_ color object
|
|
89
|
+
*/
|
|
90
|
+
set hwb(value: HWBColor);
|
|
91
|
+
/**
|
|
92
|
+
* Color value as an _HWBA_ color object _(HWB with alpha channel)_
|
|
93
|
+
*/
|
|
94
|
+
get hwba(): HWBAColor;
|
|
95
|
+
/**
|
|
96
|
+
* Set color value from an _HWBA_ color object _(HWB with alpha channel)_
|
|
97
|
+
*/
|
|
98
|
+
set hwba(value: HWBAColor);
|
|
99
|
+
/**
|
|
100
|
+
* Text input value
|
|
101
|
+
*/
|
|
102
|
+
get input(): string;
|
|
103
|
+
/**
|
|
104
|
+
* Label elements associated with the color picker
|
|
105
|
+
*/
|
|
106
|
+
get labels(): NodeList;
|
|
107
|
+
/**
|
|
108
|
+
* Is the color picker readonly?
|
|
109
|
+
*/
|
|
110
|
+
get readonly(): boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Should the color picker be readonly?
|
|
113
|
+
*/
|
|
114
|
+
set readonly(value: boolean);
|
|
115
|
+
/**
|
|
116
|
+
* Is the color picker required?
|
|
117
|
+
*/
|
|
118
|
+
get required(): boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Should the color picker be required?
|
|
121
|
+
*/
|
|
122
|
+
set required(value: boolean);
|
|
123
|
+
/**
|
|
124
|
+
* Color value as an _RGB_ color object
|
|
125
|
+
*/
|
|
126
|
+
get rgb(): RGBColor;
|
|
127
|
+
/**
|
|
128
|
+
* Set color value from an _RGB_ color object
|
|
129
|
+
*/
|
|
130
|
+
set rgb(value: RGBColor);
|
|
131
|
+
/**
|
|
132
|
+
* Color value as an _RGBA_ color object _(RGB with alpha channel)_
|
|
133
|
+
*/
|
|
134
|
+
get rgba(): RGBAColor;
|
|
135
|
+
/**
|
|
136
|
+
* Set color value from an _RGBA_ color object _(RGB with alpha channel)_
|
|
137
|
+
*/
|
|
138
|
+
set rgba(value: RGBAColor);
|
|
139
|
+
/**
|
|
140
|
+
* Validation message for the color picker
|
|
141
|
+
*/
|
|
142
|
+
get validationMessage(): string;
|
|
143
|
+
/**
|
|
144
|
+
* Validity state for the color picker
|
|
145
|
+
*/
|
|
146
|
+
get validity(): ValidityState;
|
|
147
|
+
/**
|
|
148
|
+
* Current color value
|
|
149
|
+
*/
|
|
150
|
+
get value(): string;
|
|
151
|
+
/**
|
|
152
|
+
* Set color value from a string, _HSL(A)_, _HWB(A)_, or _RGB(A)_ color object
|
|
153
|
+
*/
|
|
154
|
+
set value(value: string | HSLColor | HSLAColor | HWBColor | HWBAColor | RGBColor | RGBAColor);
|
|
155
|
+
/**
|
|
156
|
+
* Can the color picker be validated?
|
|
157
|
+
*/
|
|
158
|
+
get willValidate(): boolean;
|
|
159
|
+
constructor();
|
|
160
|
+
attributeChangedCallback(name: string, _: string | null, value: string | null): void;
|
|
161
|
+
/**
|
|
162
|
+
* Check if the color picker is valid
|
|
163
|
+
*
|
|
164
|
+
* @returns `true` if the color picker is valid, otherwise `false`
|
|
165
|
+
*/
|
|
166
|
+
checkValidity(): boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Clear the color picker's value
|
|
169
|
+
*/
|
|
170
|
+
clear(): void;
|
|
171
|
+
connectedCallback(): void;
|
|
172
|
+
disconnectedCallback(): void;
|
|
173
|
+
formDisabledCallback(disabled: boolean): void;
|
|
174
|
+
formResetCallback(): void;
|
|
175
|
+
formStateRestoreCallback(state: unknown, reason: unknown): void;
|
|
176
|
+
/**
|
|
177
|
+
* Check if the color picker is valid and report any validation errors
|
|
178
|
+
*
|
|
179
|
+
* @returns `true` if the color picker is valid, otherwise `false`
|
|
180
|
+
*/
|
|
181
|
+
reportValidity(): boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Set a custom validation message for the color picker
|
|
184
|
+
*
|
|
185
|
+
* @param message Validation message
|
|
186
|
+
*/
|
|
187
|
+
setCustomValidity(message: string): void;
|
|
188
|
+
/**
|
|
189
|
+
* Set localizations for a specific language
|
|
190
|
+
*
|
|
191
|
+
* @param language Language code
|
|
192
|
+
* @param localizations Localizations for language
|
|
193
|
+
*/
|
|
194
|
+
setLocalizations(language: string, localizations: Partial<OuiColorPickerLocalizations>): void;
|
|
195
|
+
/**
|
|
196
|
+
* Set localizations for one or more languages
|
|
197
|
+
*
|
|
198
|
+
* @param localizations Localizations for one or more languages
|
|
199
|
+
*/
|
|
200
|
+
setLocalizations(localizations: Record<string, Partial<OuiColorPickerLocalizations>>): void;
|
|
201
|
+
}
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/js/color-picker/models.color-picker.d.ts
|
|
204
|
+
type OuiColorPickerAnchor = {
|
|
205
|
+
copy?: OuiColorPickerCopy;
|
|
206
|
+
toggle?: HTMLButtonElement;
|
|
207
|
+
container: HTMLDivElement;
|
|
208
|
+
input: HTMLInputElement;
|
|
209
|
+
};
|
|
210
|
+
type OuiColorPickerColor = {
|
|
211
|
+
foreground: string;
|
|
212
|
+
value: Color;
|
|
213
|
+
};
|
|
214
|
+
type OuiColorPickerContent = {
|
|
215
|
+
element: HTMLDivElement;
|
|
216
|
+
hue: OuiColorPickerContentHue;
|
|
217
|
+
opacity?: OuiColorPickerContentOpacity;
|
|
218
|
+
output?: OuiColorPickerContentOutput;
|
|
219
|
+
well: OuiColorPickerContentWell;
|
|
220
|
+
};
|
|
221
|
+
type OuiColorPickerContentHue = {
|
|
222
|
+
container: HTMLDivElement;
|
|
223
|
+
input: HTMLInputElement;
|
|
224
|
+
label: HTMLLabelElement;
|
|
225
|
+
knob: HTMLSpanElement;
|
|
226
|
+
track: HTMLDivElement;
|
|
227
|
+
};
|
|
228
|
+
type OuiColorPickerContentOpacity = {
|
|
229
|
+
container: HTMLDivElement;
|
|
230
|
+
input: HTMLInputElement;
|
|
231
|
+
label: HTMLLabelElement;
|
|
232
|
+
};
|
|
233
|
+
type OuiColorPickerContentOutput = {
|
|
234
|
+
container: HTMLDivElement;
|
|
235
|
+
copy?: OuiColorPickerCopy;
|
|
236
|
+
inputs: HTMLInputElement[];
|
|
237
|
+
items: HTMLDivElement[];
|
|
238
|
+
toggle?: HTMLSelectElement;
|
|
239
|
+
};
|
|
240
|
+
type OuiColorPickerContentWell = {
|
|
241
|
+
element: HTMLDivElement;
|
|
242
|
+
knob: HTMLSpanElement;
|
|
243
|
+
label: HTMLSpanElement;
|
|
244
|
+
};
|
|
245
|
+
type OuiColorPickerCopy = {
|
|
246
|
+
button: HTMLButtonElement;
|
|
247
|
+
timer?: number;
|
|
248
|
+
};
|
|
249
|
+
type OuiColorPickerCreateParameters = {
|
|
250
|
+
alpha: boolean;
|
|
251
|
+
color: Color;
|
|
252
|
+
copy: boolean;
|
|
253
|
+
id: string;
|
|
254
|
+
inline: boolean;
|
|
255
|
+
input: HTMLInputElement;
|
|
256
|
+
output: OuiColorPickerOutputType;
|
|
257
|
+
};
|
|
258
|
+
declare class OuiColorPickerEvent extends Event {
|
|
259
|
+
readonly valid: boolean;
|
|
260
|
+
readonly value: OuiColorPickerEventValue;
|
|
261
|
+
constructor(type: OuiColorPickerEventType, color: Color, valid: boolean);
|
|
262
|
+
}
|
|
263
|
+
type OuiColorPickerEventType = "oui:change" | "oui:input";
|
|
264
|
+
type OuiColorPickerEventValue = {
|
|
265
|
+
hex: string;
|
|
266
|
+
hexa: string;
|
|
267
|
+
hsl: HSLColor;
|
|
268
|
+
hsla: HSLAColor;
|
|
269
|
+
hwb: HWBColor;
|
|
270
|
+
hwba: HWBAColor;
|
|
271
|
+
rgb: RGBColor;
|
|
272
|
+
rgba: RGBAColor;
|
|
273
|
+
};
|
|
274
|
+
type OuiColorPickerLabel = {
|
|
275
|
+
element: HTMLLabelElement;
|
|
276
|
+
id: string;
|
|
277
|
+
};
|
|
278
|
+
type OuiColorPickerLocalizations = {
|
|
279
|
+
blackness: string;
|
|
280
|
+
blue: string;
|
|
281
|
+
copy: string;
|
|
282
|
+
green: string;
|
|
283
|
+
hex: string;
|
|
284
|
+
hsl: string;
|
|
285
|
+
hue: string;
|
|
286
|
+
hwb: string;
|
|
287
|
+
invalid: string;
|
|
288
|
+
lightness: string;
|
|
289
|
+
opacity: string;
|
|
290
|
+
output: string;
|
|
291
|
+
red: string;
|
|
292
|
+
rgb: string;
|
|
293
|
+
saturation: string;
|
|
294
|
+
toggle: string;
|
|
295
|
+
wellLabel: string;
|
|
296
|
+
wellValue: string | ((lightness: number, saturation: number) => string);
|
|
297
|
+
whiteness: string;
|
|
298
|
+
};
|
|
299
|
+
type OuiColorPickerMovement = {
|
|
300
|
+
parameters?: OuiColorPickerMovementParameters;
|
|
301
|
+
};
|
|
302
|
+
type OuiColorPickerMovementParameters = {
|
|
303
|
+
rectangle: DOMRect;
|
|
304
|
+
state: OuiColorPickerState;
|
|
305
|
+
value: string;
|
|
306
|
+
};
|
|
307
|
+
type OuiColorPickerOutputColor = "hsl" | "hwb" | "rgb";
|
|
308
|
+
type OuiColorPickerOutputColorProperty = "blackness" | "blue" | "green" | "hue" | "lightness" | "red" | "saturation" | "whiteness";
|
|
309
|
+
type OuiColorPickerOutputType = "all" | "none" | OuiColorPickerOutputColor;
|
|
310
|
+
type OuiColorPickerState = {
|
|
311
|
+
alpha: boolean;
|
|
312
|
+
anchor: OuiColorPickerAnchor;
|
|
313
|
+
color: OuiColorPickerColor;
|
|
314
|
+
copy: boolean;
|
|
315
|
+
content: OuiColorPickerContent;
|
|
316
|
+
disabled: boolean;
|
|
317
|
+
floatable?: OuiFloatable;
|
|
318
|
+
host: OuiColorPickerElement;
|
|
319
|
+
id: string;
|
|
320
|
+
inline: boolean;
|
|
321
|
+
input: HTMLInputElement;
|
|
322
|
+
internals: ElementInternals;
|
|
323
|
+
label: OuiColorPickerLabel;
|
|
324
|
+
listeners: RemovableEventListener[];
|
|
325
|
+
localizations: OuiColorPickerStateLocalizations;
|
|
326
|
+
output: OuiColorPickerOutputType;
|
|
327
|
+
readonly: boolean;
|
|
328
|
+
required: boolean;
|
|
329
|
+
style: HTMLStyleElement;
|
|
330
|
+
value: OuiColorPickerValue;
|
|
331
|
+
};
|
|
332
|
+
type OuiColorPickerStateLocalizations = {
|
|
333
|
+
component: Record<string, Partial<OuiColorPickerLocalizations>>;
|
|
334
|
+
global: OuiLocalizations<OuiColorPickerLocalizations>;
|
|
335
|
+
};
|
|
336
|
+
type OuiColorPickerValue = {
|
|
337
|
+
current: string;
|
|
338
|
+
initial: string;
|
|
339
|
+
};
|
|
340
|
+
type OuiColorPickerValueType = "hex" | "hexa" | "hsl" | "hsla" | "hwb" | "hwba" | "rgb" | "rgba";
|
|
341
|
+
//#endregion
|
|
342
|
+
//#region src/js/color-picker/constants.color-picker.d.ts
|
|
343
|
+
declare const COLOR_PICKER_TAGNAME = "oui-color-picker";
|
|
344
|
+
declare const COLOR_PICKER_ATTRIBUTE_COPY: string;
|
|
345
|
+
declare const COLOR_PICKER_ATTRIBUTE_COPY_ERROR: string;
|
|
346
|
+
declare const COLOR_PICKER_ATTRIBUTE_COPY_SUCCESS: string;
|
|
347
|
+
declare const COLOR_PICKER_ATTRIBUTE_INPUT: string;
|
|
348
|
+
declare const COLOR_PICKER_ATTRIBUTE_OUTPUT_INPUT: string;
|
|
349
|
+
declare const COLOR_PICKER_ATTRIBUTE_WELL: string;
|
|
350
|
+
declare const COLOR_PICKER_ATTRIBUTE_WELL_KNOB: string;
|
|
351
|
+
declare const COLOR_PICKER_EXPRESSION_HEX_PREFIX: RegExp;
|
|
352
|
+
declare const COLOR_PICKER_INPUT_TYPES: Set<string>;
|
|
353
|
+
declare const COLOR_PICKER_KEYS: Set<string>;
|
|
354
|
+
declare const COLOR_PICKER_MESSAGE_INPUT: string;
|
|
355
|
+
declare const COLOR_PICKER_MESSAGE_LABEL: string;
|
|
356
|
+
declare const COLOR_PICKER_OUTPUTS: Set<OuiColorPickerOutputType>;
|
|
357
|
+
declare const COLOR_PICKER_SELECTOR_COPY: string;
|
|
358
|
+
declare const COLOR_PICKER_SELECTOR_INPUT: string;
|
|
359
|
+
declare const COLOR_PICKER_SELECTOR_OUTPUT_INPUT: string;
|
|
360
|
+
declare const COLOR_PICKER_SELECTOR_WELL: string;
|
|
361
|
+
declare const COLOR_PICKER_SELECTOR_WELL_KNOB: string;
|
|
362
|
+
declare const colorPickerLocalizations: OuiLocalizations<OuiColorPickerLocalizations>;
|
|
363
|
+
//#endregion
|
|
364
|
+
export { OuiColorPickerEvent as A, OuiColorPickerElement as B, OuiColorPickerContent as C, OuiColorPickerContentWell as D, OuiColorPickerContentOutput as E, OuiColorPickerOutputColorProperty as F, setColorPickerLocalizations as G, getColorPickerOutput as H, OuiColorPickerOutputType as I, setColorPickerValues as J, setColorPickerRequired as K, OuiColorPickerState as L, OuiColorPickerMovement as M, OuiColorPickerMovementParameters as N, OuiColorPickerCopy as O, OuiColorPickerOutputColor as P, OuiColorPickerStateLocalizations as R, OuiColorPickerColor as S, OuiColorPickerContentOpacity as T, getColorPickerValueType as U, getColorPickerId as V, setColorPickerDisabled as W, updateColorPickerLocalizations as X, updateColorPickerLabels as Y, COLOR_PICKER_SELECTOR_WELL as _, COLOR_PICKER_ATTRIBUTE_OUTPUT_INPUT as a, colorPickerLocalizations as b, COLOR_PICKER_EXPRESSION_HEX_PREFIX as c, COLOR_PICKER_MESSAGE_INPUT as d, COLOR_PICKER_MESSAGE_LABEL as f, COLOR_PICKER_SELECTOR_OUTPUT_INPUT as g, COLOR_PICKER_SELECTOR_INPUT as h, COLOR_PICKER_ATTRIBUTE_INPUT as i, OuiColorPickerLocalizations as j, OuiColorPickerCreateParameters as k, COLOR_PICKER_INPUT_TYPES as l, COLOR_PICKER_SELECTOR_COPY as m, COLOR_PICKER_ATTRIBUTE_COPY_ERROR as n, COLOR_PICKER_ATTRIBUTE_WELL as o, COLOR_PICKER_OUTPUTS as p, setColorPickerValue as q, COLOR_PICKER_ATTRIBUTE_COPY_SUCCESS as r, COLOR_PICKER_ATTRIBUTE_WELL_KNOB as s, COLOR_PICKER_ATTRIBUTE_COPY as t, COLOR_PICKER_KEYS as u, COLOR_PICKER_SELECTOR_WELL_KNOB as v, OuiColorPickerContentHue as w, OuiColorPickerAnchor as x, COLOR_PICKER_TAGNAME as y, OuiColorPickerValueType as z };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { r as OuiListboxAutoCompleteType, t as OuiListboxAttributes } from "./listbox.model-BHPA7GM4.mjs";
|
|
2
|
+
//#region src/js/combobox/constants.combobox.d.ts
|
|
3
|
+
declare const COMBOBOX_TAGNAME = "oui-combobox";
|
|
4
|
+
declare const COMBOBOX_ATTRIBUTE_ANCHOR: string;
|
|
5
|
+
declare const COMBOBOX_ATTRIBUTE_SELECTION: string;
|
|
6
|
+
declare const COMBOBOX_ATTRIBUTE_SELECTION_ITEM: string;
|
|
7
|
+
declare const COMBOBOX_AUTOCOMPLETES: Set<OuiListboxAutoCompleteType>;
|
|
8
|
+
declare const messageLabel: string;
|
|
9
|
+
declare const messageSelect: string;
|
|
10
|
+
declare const selectorAnchor: string;
|
|
11
|
+
declare const selectorContent: string;
|
|
12
|
+
declare const selectorOption: string;
|
|
13
|
+
declare const selectorSelectionItem: string;
|
|
14
|
+
declare const COMBOBOX_ATTRIBUTES: OuiListboxAttributes;
|
|
15
|
+
declare const COMBOBOX_MESSAGES: Record<string, string>;
|
|
16
|
+
declare const COMBOBOX_SELECTORS: Record<string, string>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { COMBOBOX_AUTOCOMPLETES as a, COMBOBOX_TAGNAME as c, selectorAnchor as d, selectorContent as f, COMBOBOX_ATTRIBUTE_SELECTION_ITEM as i, messageLabel as l, selectorSelectionItem as m, COMBOBOX_ATTRIBUTE_ANCHOR as n, COMBOBOX_MESSAGES as o, selectorOption as p, COMBOBOX_ATTRIBUTE_SELECTION as r, COMBOBOX_SELECTORS as s, COMBOBOX_ATTRIBUTES as t, messageSelect as u };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as OuiListboxAttributes } from "./listbox.model-BHPA7GM4.mjs";
|
|
2
|
+
//#region src/js/listbox/constants.listbox.d.ts
|
|
3
|
+
declare const LISTBOX_TAGNAME = "oui-listbox";
|
|
4
|
+
declare const LISTBOX_ATTRIBUTES: OuiListboxAttributes;
|
|
5
|
+
declare const LISTBOX_MESSAGES: Record<string, string>;
|
|
6
|
+
declare const LISTBOX_SELECTORS: Record<string, string>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { LISTBOX_TAGNAME as i, LISTBOX_MESSAGES as n, LISTBOX_SELECTORS as r, LISTBOX_ATTRIBUTES as t };
|
package/dist/js/dialog.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as OuiMovable } from "./draggable-
|
|
1
|
+
import { h as OuiMovable } from "./draggable-B5-70SZm.mjs";
|
|
2
2
|
import "./movable/movable.standalone.mjs";
|
|
3
|
-
import { n as OuiResizable } from "./resizable.embedded-
|
|
3
|
+
import { n as OuiResizable } from "./resizable.embedded-dvhdfQgt.mjs";
|
|
4
4
|
import "./resizable/resizable.standalone.mjs";
|
|
5
5
|
import { RemovableEventListener } from "@oscarpalmer/toretto/models";
|
|
6
6
|
//#region src/js/dialog.d.ts
|
package/dist/js/dialog.mjs
CHANGED
|
@@ -106,7 +106,7 @@ function getState(element) {
|
|
|
106
106
|
state.resizable?.reset();
|
|
107
107
|
}
|
|
108
108
|
})],
|
|
109
|
-
modal: getAria(element, "modal") ===
|
|
109
|
+
modal: getAria(element, "modal") === true || element.matches(":modal")
|
|
110
110
|
};
|
|
111
111
|
state.dialog = new OuiDialog(state);
|
|
112
112
|
state.movable = getMovable(element);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StyleToggler } from "@oscarpalmer/toretto/style";
|
|
2
|
-
import {
|
|
2
|
+
import { PlainObject } from "@oscarpalmer/atoms/models";
|
|
3
|
+
import { EventPosition } from "@oscarpalmer/toretto/models";
|
|
3
4
|
//#region src/js/movable/movable.embedded.d.ts
|
|
4
5
|
declare class OuiMovable extends OuiDraggable<OuiMovableState> {
|
|
5
6
|
#private;
|
|
@@ -7,7 +8,7 @@ declare class OuiMovable extends OuiDraggable<OuiMovableState> {
|
|
|
7
8
|
/**
|
|
8
9
|
* Destroys the _Movable_
|
|
9
10
|
*/
|
|
10
|
-
destroy(): void;
|
|
11
|
+
override destroy(): void;
|
|
11
12
|
}
|
|
12
13
|
type OuiMovableState = {
|
|
13
14
|
hasHandles?: boolean;
|
|
@@ -27,7 +28,7 @@ type OuiMovableStyle = {
|
|
|
27
28
|
*/
|
|
28
29
|
declare function createMovable(element: HTMLElement, options?: CreateOuiDraggableOptions): OuiMovable;
|
|
29
30
|
declare const ATTRIBUTE_MOVABLE = "oui-movable";
|
|
30
|
-
declare const ATTRIBUTE_MOVABLE_HANDLE
|
|
31
|
+
declare const ATTRIBUTE_MOVABLE_HANDLE: string;
|
|
31
32
|
//#endregion
|
|
32
33
|
//#region src/js/sortable/sortable.embedded.d.ts
|
|
33
34
|
declare class OuiSortable extends OuiDraggable<OuiSortableState> {
|
|
@@ -56,7 +57,7 @@ type CreateOuiDraggableOptions = {
|
|
|
56
57
|
*/
|
|
57
58
|
direction?: OuiDraggableDirection;
|
|
58
59
|
};
|
|
59
|
-
type OuiDraggableDirection =
|
|
60
|
+
type OuiDraggableDirection = "horizontal" | "vertical" | "x" | "y";
|
|
60
61
|
declare abstract class OuiDraggable<ExtraState extends PlainObject = PlainObject> {
|
|
61
62
|
#private;
|
|
62
63
|
get element(): HTMLElement;
|