@vertexvis/ui 0.1.0-testing.8 → 0.1.1-canary.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/README.md +1 -1
- package/dist/cjs/{color-circle-picker-13396ec4.js → color-circle-picker-d0403f1c.js} +2 -2
- package/dist/cjs/color-picker-2a4820fa.js +46 -0
- package/dist/cjs/{color-circle-05be54bf.js → color-swatch-8aaf6c0b.js} +42 -17
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/{dialog-88e2308a.js → dialog-34f1dd6e.js} +1 -1
- package/dist/cjs/dom-a2c535e3.js +17 -0
- package/dist/cjs/{icon-460fd0f5.js → icon-3b1349ea.js} +1 -1
- package/dist/cjs/{icon-button-786427d6.js → icon-button-19061994.js} +1 -1
- package/dist/cjs/{icon-helper-ba408f49.js → icon-helper-cb479ba1.js} +107 -0
- package/dist/cjs/index.cjs.js +18 -12
- package/dist/cjs/lib-1bd1e383.js +9 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{search-bar-91cbcd07.js → search-bar-2e7ee35a.js} +130 -24
- package/dist/cjs/{select-5f8aecfe.js → select-2b2bdb97.js} +1 -1
- package/dist/cjs/{slider-13594e49.js → slider-7714cccb.js} +7 -1
- package/dist/cjs/tab-4335cd8f.js +26 -0
- package/dist/cjs/tabs-6f3e76e1.js +111 -0
- package/dist/cjs/{tooltip-e9f63631.js → tooltip-9d097c55.js} +2 -5
- package/dist/cjs/vertex-color-circle-picker.cjs.entry.js +1 -1
- package/dist/cjs/vertex-color-picker.cjs.entry.js +2 -1
- package/dist/cjs/vertex-color-swatch.cjs.entry.js +12 -0
- package/dist/cjs/vertex-dialog.cjs.entry.js +1 -1
- package/dist/cjs/vertex-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/vertex-icon.cjs.entry.js +2 -2
- package/dist/cjs/vertex-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/vertex-select.cjs.entry.js +1 -1
- package/dist/cjs/vertex-slider.cjs.entry.js +2 -1
- package/dist/cjs/{vertex-color-circle.cjs.entry.js → vertex-tab.cjs.entry.js} +3 -2
- package/dist/cjs/vertex-tabs.cjs.entry.js +12 -0
- package/dist/cjs/vertex-tooltip.cjs.entry.js +2 -1
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/color-circle-picker/color-circle-picker.js +8 -8
- package/dist/collection/components/color-picker/color-picker.css +95 -15
- package/dist/collection/components/color-picker/color-picker.js +57 -3
- package/dist/collection/components/color-swatch/color-swatch.css +43 -0
- package/dist/collection/components/{color-circle/color-circle.js → color-swatch/color-swatch.js} +96 -23
- package/dist/collection/components/color-swatch/lib.js +5 -0
- package/dist/collection/components/dialog/dialog.css +0 -1
- package/dist/collection/components/icon/icon-helper.js +51 -0
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/icons/arrow-left-circled.js +2 -0
- package/dist/collection/components/icon/icons/arrow-right-circled.js +2 -0
- package/dist/collection/components/icon/icons/camera-add.js +2 -0
- package/dist/collection/components/icon/icons/caution.js +2 -0
- package/dist/collection/components/icon/icons/columns-add.js +2 -0
- package/dist/collection/components/icon/icons/compare.js +2 -0
- package/dist/collection/components/icon/icons/compress.js +2 -0
- package/dist/collection/components/icon/icons/cube-stack.js +2 -0
- package/dist/collection/components/icon/icons/expand.js +2 -0
- package/dist/collection/components/icon/icons/file-folder.js +2 -0
- package/dist/collection/components/icon/icons/pin-text-square.js +2 -0
- package/dist/collection/components/icon/icons/plus-with-arrow.js +2 -0
- package/dist/collection/components/icon/icons/pmi.js +2 -0
- package/dist/collection/components/icon/icons/report.js +2 -0
- package/dist/collection/components/icon/icons/square-dot-outline.js +2 -0
- package/dist/collection/components/icon/icons/update.js +2 -0
- package/dist/collection/components/icon/icons/views.js +2 -0
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/index.js +3 -1
- package/dist/collection/components/search-bar/dom.js +17 -0
- package/dist/collection/components/search-bar/lib.js +45 -4
- package/dist/collection/components/search-bar/search-bar.js +76 -23
- package/dist/collection/components/select/select.css +8 -0
- package/dist/collection/components/slider/slider.js +8 -2
- package/dist/collection/components/tab/tab.css +16 -0
- package/dist/collection/components/tab/tab.js +85 -0
- package/dist/collection/components/tab/util.js +3 -0
- package/dist/collection/components/tabs/tabs.css +67 -0
- package/dist/collection/components/tabs/tabs.js +159 -0
- package/dist/collection/types/icon.js +17 -0
- package/dist/collection/util/components/dom.js +3 -0
- package/dist/components/components.css +1 -1
- package/dist/components/components.esm.js +1 -1
- package/dist/components/index.esm.js +1 -1
- package/dist/components/p-01d4be1d.entry.js +1 -0
- package/dist/components/{p-165aed7d.js → p-0d4a0d61.js} +1 -1
- package/dist/components/p-18ed73e9.js +1 -0
- package/dist/components/p-1d08dd79.entry.js +1 -0
- package/dist/components/p-2ae8175d.entry.js +1 -0
- package/dist/components/p-2b4aedaa.entry.js +1 -0
- package/dist/components/p-3438c441.js +1 -0
- package/dist/components/{p-912f6e24.js → p-4327deea.js} +1 -1
- package/dist/components/p-45848878.js +1 -0
- package/dist/components/p-48629bf1.js +1 -0
- package/dist/components/{p-103249b4.js → p-5384f198.js} +1 -1
- package/dist/components/p-655053df.js +1 -0
- package/dist/components/p-65f9817e.js +1 -0
- package/dist/components/p-6a49c365.entry.js +1 -0
- package/dist/components/p-6b6c2260.js +1 -0
- package/dist/components/p-6ff20817.js +1 -0
- package/dist/components/{p-ca52a423.js → p-7bd92281.js} +1 -1
- package/dist/components/p-8bbc344d.entry.js +1 -0
- package/dist/components/p-8d83dfff.entry.js +1 -0
- package/dist/components/p-96f55673.js +1 -0
- package/dist/components/{p-9374ef6c.js → p-b9dab446.js} +1 -1
- package/dist/components/p-c6841378.entry.js +1 -0
- package/dist/components/p-cbfc041e.entry.js +1 -0
- package/dist/components/p-d2d75bcf.entry.js +1 -0
- package/dist/components/p-d539f530.js +1 -0
- package/dist/components/p-decf635f.entry.js +1 -0
- package/dist/components/p-e35057b5.entry.js +1 -0
- package/dist/esm/{color-circle-picker-998a7e9c.js → color-circle-picker-35ad3b3e.js} +2 -2
- package/dist/esm/color-picker-1d67effe.js +44 -0
- package/dist/esm/{color-circle-842f3321.js → color-swatch-0e62d13d.js} +42 -17
- package/dist/esm/components.js +1 -1
- package/dist/esm/{dialog-e3f49527.js → dialog-1cef715c.js} +1 -1
- package/dist/esm/dom-9d0f7bf4.js +13 -0
- package/dist/esm/{icon-d37150b4.js → icon-bf8df898.js} +1 -1
- package/dist/esm/{icon-button-aad3c0e7.js → icon-button-a4bdeabc.js} +1 -1
- package/dist/esm/{icon-helper-83f10f73.js → icon-helper-94d45002.js} +107 -0
- package/dist/esm/index.js +15 -11
- package/dist/esm/lib-73fbca8b.js +7 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{search-bar-f12a3599.js → search-bar-8d18626e.js} +130 -24
- package/dist/esm/{select-d4e135b7.js → select-78aeff96.js} +1 -1
- package/dist/esm/{slider-dcdb388f.js → slider-3d8545e3.js} +8 -2
- package/dist/esm/tab-c76332b0.js +24 -0
- package/dist/esm/tabs-e9f6dcbe.js +109 -0
- package/dist/esm/{tooltip-933da261.js → tooltip-db8ebd41.js} +1 -4
- package/dist/esm/vertex-color-circle-picker.entry.js +1 -1
- package/dist/esm/vertex-color-picker.entry.js +2 -1
- package/dist/esm/vertex-color-swatch.entry.js +4 -0
- package/dist/esm/vertex-dialog.entry.js +1 -1
- package/dist/esm/vertex-icon-button.entry.js +2 -2
- package/dist/esm/vertex-icon.entry.js +2 -2
- package/dist/esm/vertex-search-bar.entry.js +1 -1
- package/dist/esm/vertex-select.entry.js +1 -1
- package/dist/esm/vertex-slider.entry.js +2 -1
- package/dist/esm/vertex-tab.entry.js +3 -0
- package/dist/esm/vertex-tabs.entry.js +4 -0
- package/dist/esm/vertex-tooltip.entry.js +2 -1
- package/dist/types/components/color-circle-picker/color-circle-picker.d.ts +7 -7
- package/dist/types/components/color-picker/color-picker.d.ts +19 -0
- package/dist/types/components/{color-circle/color-circle.d.ts → color-swatch/color-swatch.d.ts} +23 -5
- package/dist/types/components/color-swatch/lib.d.ts +1 -0
- package/dist/types/components/icon/icons/arrow-left-circled.d.ts +3 -0
- package/dist/types/components/icon/icons/arrow-right-circled.d.ts +3 -0
- package/dist/types/components/icon/icons/camera-add.d.ts +3 -0
- package/dist/types/components/icon/icons/caution.d.ts +3 -0
- package/dist/types/components/icon/icons/columns-add.d.ts +3 -0
- package/dist/types/components/icon/icons/compare.d.ts +3 -0
- package/dist/types/components/icon/icons/compress.d.ts +3 -0
- package/dist/types/components/icon/icons/cube-stack.d.ts +3 -0
- package/dist/types/components/icon/icons/expand.d.ts +3 -0
- package/dist/types/components/icon/icons/file-folder.d.ts +3 -0
- package/dist/types/components/icon/icons/pin-text-square.d.ts +3 -0
- package/dist/types/components/icon/icons/plus-with-arrow.d.ts +3 -0
- package/dist/types/components/icon/icons/pmi.d.ts +3 -0
- package/dist/types/components/icon/icons/report.d.ts +3 -0
- package/dist/types/components/icon/icons/square-dot-outline.d.ts +3 -0
- package/dist/types/components/icon/icons/update.d.ts +3 -0
- package/dist/types/components/icon/icons/views.d.ts +3 -0
- package/dist/types/components/index.d.ts +3 -1
- package/dist/types/components/search-bar/dom.d.ts +5 -0
- package/dist/types/components/search-bar/lib.d.ts +9 -2
- package/dist/types/components/search-bar/search-bar.d.ts +1 -0
- package/dist/types/components/slider/slider.d.ts +1 -0
- package/dist/types/components/tab/tab.d.ts +11 -0
- package/dist/types/components/tab/util.d.ts +1 -0
- package/dist/types/components/tabs/tabs.d.ts +23 -0
- package/dist/types/components.d.ts +162 -76
- package/dist/types/types/icon.d.ts +17 -0
- package/dist/types/util/components/dom.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/color-picker-876ace00.js +0 -37
- package/dist/collection/components/color-circle/color-circle.css +0 -18
- package/dist/components/p-03dbb28c.js +0 -1
- package/dist/components/p-0b1cdc8a.entry.js +0 -1
- package/dist/components/p-0f8b9ede.entry.js +0 -1
- package/dist/components/p-16719272.entry.js +0 -1
- package/dist/components/p-20a74d5d.entry.js +0 -1
- package/dist/components/p-35e7ab78.entry.js +0 -1
- package/dist/components/p-7cfb3736.entry.js +0 -1
- package/dist/components/p-7dba2574.entry.js +0 -1
- package/dist/components/p-7f64b251.entry.js +0 -1
- package/dist/components/p-8434602f.js +0 -1
- package/dist/components/p-92930f2a.js +0 -1
- package/dist/components/p-cd6ddb10.js +0 -1
- package/dist/components/p-cfe369bf.entry.js +0 -1
- package/dist/components/p-d9b9aebe.js +0 -1
- package/dist/components/p-db34f10c.js +0 -1
- package/dist/components/p-f71fc166.entry.js +0 -1
- package/dist/esm/color-picker-2e3b51fa.js +0 -35
- package/dist/esm/vertex-color-circle.entry.js +0 -2
|
@@ -12,6 +12,9 @@ import { CardMode } from "./components/card/card";
|
|
|
12
12
|
import { ChipColor, ChipVariant } from "./components/chip/chip";
|
|
13
13
|
import { InputChangeEventDetail, TextSize } from "./components/text-field/text-field";
|
|
14
14
|
import { SelectionChangedDetails } from "./components/color-circle-picker/color-circle-picker";
|
|
15
|
+
import { ColorSwatchSize } from "./components/color-swatch/color-swatch";
|
|
16
|
+
import { ColorPickerVariant } from "./components/color-picker/color-picker";
|
|
17
|
+
import { ColorSwatchSize as ColorSwatchSize1, ColorSwatchTheme, ColorSwatchVariant } from "./components/color-swatch/color-swatch";
|
|
15
18
|
import { Point } from "./types/point";
|
|
16
19
|
import { Popover, PopoverPlacement } from "./components/popover/popover";
|
|
17
20
|
import { VertexExpandableType } from "./components/expandable/expandable";
|
|
@@ -197,75 +200,91 @@ export namespace Components {
|
|
|
197
200
|
*/
|
|
198
201
|
"open": boolean;
|
|
199
202
|
}
|
|
200
|
-
interface
|
|
203
|
+
interface VertexColorCirclePicker {
|
|
201
204
|
/**
|
|
202
|
-
* The
|
|
205
|
+
* The colors to show in this `vertex-color-circle-picker`. These values will map to the `color` property of the underlying `vertex-color-swatch`.
|
|
203
206
|
*/
|
|
204
|
-
"
|
|
207
|
+
"colors": string[] | string;
|
|
205
208
|
/**
|
|
206
|
-
* The percentage darker color to use to compute the `darkened` color
|
|
209
|
+
* The percentage darker color to use to compute the `darkened` color for the underlying `vertex-color-swatch`. This will be used when the `theme` is set to `dark`.
|
|
207
210
|
*/
|
|
208
211
|
"darkenPercentage": number;
|
|
209
212
|
/**
|
|
210
|
-
* The
|
|
213
|
+
* The orientation of this color picker. Can be either `vertical` or `horizontal`, and defaults to `horizontal`.
|
|
211
214
|
*/
|
|
212
|
-
"
|
|
215
|
+
"direction": 'vertical' | 'horizontal';
|
|
213
216
|
/**
|
|
214
|
-
* The percentage lighter color to use to compute the `lightened` color
|
|
217
|
+
* The percentage lighter color to use to compute the `lightened` color for the underlying `vertex-color-swatch`. This will be used when the `theme` is set to `light`.
|
|
215
218
|
*/
|
|
216
219
|
"lightenPercentage": number;
|
|
217
220
|
/**
|
|
218
|
-
*
|
|
221
|
+
* An optional selected color. This will also be updated internally by the component when individual `vertex-color-swatch` elements are clicked.
|
|
219
222
|
*/
|
|
220
|
-
"
|
|
223
|
+
"selected"?: string;
|
|
221
224
|
/**
|
|
222
|
-
*
|
|
225
|
+
* Optional supplemental colors that will be provided to the underlying `vertex-color-swatch` elements for associated indices in the `colors` array.
|
|
223
226
|
*/
|
|
224
|
-
"
|
|
227
|
+
"supplementalColors": string[] | string;
|
|
225
228
|
/**
|
|
226
|
-
* The theme to use for this `vertex-color-circle`. Can be either `light` or `dark`, and defaults to `dark`. With the `dark` theme, the provided `
|
|
229
|
+
* The theme to use for this `vertex-color-circle-picker`. Can be either `light` or `dark`, and defaults to `dark`. With the `dark` theme, the provided `colors` will be used as the background-colors for `vertex-color-swatch` elements, and a `darkened` color will be used for the border-colors. With the `light` theme, the provided `colors` will be used as the background-colors for `vertex-color-swatch` elements, and a `lightened` color will be used for the border-colors.
|
|
227
230
|
*/
|
|
228
231
|
"theme": 'light' | 'dark';
|
|
229
232
|
}
|
|
230
|
-
interface
|
|
233
|
+
interface VertexColorPicker {
|
|
231
234
|
/**
|
|
232
|
-
*
|
|
235
|
+
* Whether this color picker is disabled.
|
|
233
236
|
*/
|
|
234
|
-
"
|
|
237
|
+
"disabled": boolean;
|
|
238
|
+
/**
|
|
239
|
+
* The size of the swatch displayed for this color picker. Can be `sm`, `md`, `lg`, or `xl`, and defaults to `md`. If the `variant` is `full`, this value will also increase the size of the associated hexadecimal value.
|
|
240
|
+
*/
|
|
241
|
+
"size": ColorSwatchSize;
|
|
242
|
+
/**
|
|
243
|
+
* Optional value property to set the initial value of this input.
|
|
244
|
+
*/
|
|
245
|
+
"value"?: string;
|
|
235
246
|
/**
|
|
236
|
-
* The
|
|
247
|
+
* The variant of this color picker. Can be `full` or `swatch`, and defaults to `full`. `full` will display both the visual color swatch and the hexadecimal representation of the color. `swatch` will display only the visual color swatch.
|
|
248
|
+
*/
|
|
249
|
+
"variant": ColorPickerVariant;
|
|
250
|
+
}
|
|
251
|
+
interface VertexColorSwatch {
|
|
252
|
+
/**
|
|
253
|
+
* The primary color of this `vertex-color-swatch` in hexadecimal format. For `dark` theme, this will be the background-color. For `light` theme, this will be the border-color.
|
|
254
|
+
*/
|
|
255
|
+
"color": string;
|
|
256
|
+
/**
|
|
257
|
+
* The percentage darker color to use to compute the `darkened` color. This will be used when the `theme` is set to `dark`.
|
|
237
258
|
*/
|
|
238
259
|
"darkenPercentage": number;
|
|
239
260
|
/**
|
|
240
|
-
* The
|
|
261
|
+
* The computed darker color based on the provided `color` and `darkenPercentage`. This will be used when the `theme` is set to `dark`.
|
|
241
262
|
*/
|
|
242
|
-
"
|
|
263
|
+
"darkened": string;
|
|
243
264
|
/**
|
|
244
|
-
* The percentage lighter color to use to compute the `lightened` color
|
|
265
|
+
* The percentage lighter color to use to compute the `lightened` color. This will be used when the `theme` is set to `light`.
|
|
245
266
|
*/
|
|
246
267
|
"lightenPercentage": number;
|
|
247
268
|
/**
|
|
248
|
-
*
|
|
269
|
+
* The computed lighter color based on the provided `color` and `lightenPercentage`. This will be used when the `theme` is set to `light`.
|
|
249
270
|
*/
|
|
250
|
-
"
|
|
271
|
+
"lightened": string;
|
|
251
272
|
/**
|
|
252
|
-
*
|
|
273
|
+
* The size of this color swatch. Can be `sm`, `md`, or `lg`, and defaults to `md`.
|
|
253
274
|
*/
|
|
254
|
-
"
|
|
275
|
+
"size": ColorSwatchSize;
|
|
255
276
|
/**
|
|
256
|
-
*
|
|
277
|
+
* An optional supplemental color to be paired with the `color`. For `dark` theme, this will be the border-color. For `light` theme, this will be the background-color.
|
|
257
278
|
*/
|
|
258
|
-
"
|
|
259
|
-
}
|
|
260
|
-
interface VertexColorPicker {
|
|
279
|
+
"supplementalColor"?: string;
|
|
261
280
|
/**
|
|
262
|
-
*
|
|
281
|
+
* The theme to use for this `vertex-color-swatch`. Can be `none`, `light`, or `dark`, and defaults to `none`. With no theme (`none`), the provided `color` will be used as the background-color, and the border will be a neutral color. With the `dark` theme, the provided `color` will be used as the background-color, and the `darkened` color will be used for the border-color. With the `light` theme, the provided `color` will be used as the border-color, and the `lightened` color will be used for the background-color.
|
|
263
282
|
*/
|
|
264
|
-
"
|
|
283
|
+
"theme": ColorSwatchTheme;
|
|
265
284
|
/**
|
|
266
|
-
*
|
|
285
|
+
* The variant of this color swatch. Can be either `circle` or `square`, and defaults to `circle`.
|
|
267
286
|
*/
|
|
268
|
-
"
|
|
287
|
+
"variant": ColorSwatchVariant;
|
|
269
288
|
}
|
|
270
289
|
interface VertexContextMenu {
|
|
271
290
|
/**
|
|
@@ -675,6 +694,16 @@ export namespace Components {
|
|
|
675
694
|
*/
|
|
676
695
|
"size": SpinnerSize;
|
|
677
696
|
}
|
|
697
|
+
interface VertexTab {
|
|
698
|
+
"active": boolean;
|
|
699
|
+
/**
|
|
700
|
+
* The label to include in tab list.
|
|
701
|
+
*/
|
|
702
|
+
"label": string;
|
|
703
|
+
}
|
|
704
|
+
interface VertexTabs {
|
|
705
|
+
"active"?: string;
|
|
706
|
+
}
|
|
678
707
|
interface VertexTextfield {
|
|
679
708
|
/**
|
|
680
709
|
* Sets autoComplete attribute on <input>
|
|
@@ -883,6 +912,14 @@ export interface VertexSliderCustomEvent<T> extends CustomEvent<T> {
|
|
|
883
912
|
detail: T;
|
|
884
913
|
target: HTMLVertexSliderElement;
|
|
885
914
|
}
|
|
915
|
+
export interface VertexTabCustomEvent<T> extends CustomEvent<T> {
|
|
916
|
+
detail: T;
|
|
917
|
+
target: HTMLVertexTabElement;
|
|
918
|
+
}
|
|
919
|
+
export interface VertexTabsCustomEvent<T> extends CustomEvent<T> {
|
|
920
|
+
detail: T;
|
|
921
|
+
target: HTMLVertexTabsElement;
|
|
922
|
+
}
|
|
886
923
|
export interface VertexTextfieldCustomEvent<T> extends CustomEvent<T> {
|
|
887
924
|
detail: T;
|
|
888
925
|
target: HTMLVertexTextfieldElement;
|
|
@@ -956,12 +993,6 @@ declare global {
|
|
|
956
993
|
prototype: HTMLVertexCollapsibleElement;
|
|
957
994
|
new (): HTMLVertexCollapsibleElement;
|
|
958
995
|
};
|
|
959
|
-
interface HTMLVertexColorCircleElement extends Components.VertexColorCircle, HTMLStencilElement {
|
|
960
|
-
}
|
|
961
|
-
var HTMLVertexColorCircleElement: {
|
|
962
|
-
prototype: HTMLVertexColorCircleElement;
|
|
963
|
-
new (): HTMLVertexColorCircleElement;
|
|
964
|
-
};
|
|
965
996
|
interface HTMLVertexColorCirclePickerElement extends Components.VertexColorCirclePicker, HTMLStencilElement {
|
|
966
997
|
}
|
|
967
998
|
var HTMLVertexColorCirclePickerElement: {
|
|
@@ -974,6 +1005,12 @@ declare global {
|
|
|
974
1005
|
prototype: HTMLVertexColorPickerElement;
|
|
975
1006
|
new (): HTMLVertexColorPickerElement;
|
|
976
1007
|
};
|
|
1008
|
+
interface HTMLVertexColorSwatchElement extends Components.VertexColorSwatch, HTMLStencilElement {
|
|
1009
|
+
}
|
|
1010
|
+
var HTMLVertexColorSwatchElement: {
|
|
1011
|
+
prototype: HTMLVertexColorSwatchElement;
|
|
1012
|
+
new (): HTMLVertexColorSwatchElement;
|
|
1013
|
+
};
|
|
977
1014
|
interface HTMLVertexContextMenuElement extends Components.VertexContextMenu, HTMLStencilElement {
|
|
978
1015
|
}
|
|
979
1016
|
var HTMLVertexContextMenuElement: {
|
|
@@ -1100,6 +1137,18 @@ declare global {
|
|
|
1100
1137
|
prototype: HTMLVertexSpinnerElement;
|
|
1101
1138
|
new (): HTMLVertexSpinnerElement;
|
|
1102
1139
|
};
|
|
1140
|
+
interface HTMLVertexTabElement extends Components.VertexTab, HTMLStencilElement {
|
|
1141
|
+
}
|
|
1142
|
+
var HTMLVertexTabElement: {
|
|
1143
|
+
prototype: HTMLVertexTabElement;
|
|
1144
|
+
new (): HTMLVertexTabElement;
|
|
1145
|
+
};
|
|
1146
|
+
interface HTMLVertexTabsElement extends Components.VertexTabs, HTMLStencilElement {
|
|
1147
|
+
}
|
|
1148
|
+
var HTMLVertexTabsElement: {
|
|
1149
|
+
prototype: HTMLVertexTabsElement;
|
|
1150
|
+
new (): HTMLVertexTabsElement;
|
|
1151
|
+
};
|
|
1103
1152
|
interface HTMLVertexTextfieldElement extends Components.VertexTextfield, HTMLStencilElement {
|
|
1104
1153
|
}
|
|
1105
1154
|
var HTMLVertexTextfieldElement: {
|
|
@@ -1135,9 +1184,9 @@ declare global {
|
|
|
1135
1184
|
"vertex-chip": HTMLVertexChipElement;
|
|
1136
1185
|
"vertex-click-to-edit-textfield": HTMLVertexClickToEditTextfieldElement;
|
|
1137
1186
|
"vertex-collapsible": HTMLVertexCollapsibleElement;
|
|
1138
|
-
"vertex-color-circle": HTMLVertexColorCircleElement;
|
|
1139
1187
|
"vertex-color-circle-picker": HTMLVertexColorCirclePickerElement;
|
|
1140
1188
|
"vertex-color-picker": HTMLVertexColorPickerElement;
|
|
1189
|
+
"vertex-color-swatch": HTMLVertexColorSwatchElement;
|
|
1141
1190
|
"vertex-context-menu": HTMLVertexContextMenuElement;
|
|
1142
1191
|
"vertex-dialog": HTMLVertexDialogElement;
|
|
1143
1192
|
"vertex-draggable-popover": HTMLVertexDraggablePopoverElement;
|
|
@@ -1159,6 +1208,8 @@ declare global {
|
|
|
1159
1208
|
"vertex-select": HTMLVertexSelectElement;
|
|
1160
1209
|
"vertex-slider": HTMLVertexSliderElement;
|
|
1161
1210
|
"vertex-spinner": HTMLVertexSpinnerElement;
|
|
1211
|
+
"vertex-tab": HTMLVertexTabElement;
|
|
1212
|
+
"vertex-tabs": HTMLVertexTabsElement;
|
|
1162
1213
|
"vertex-textfield": HTMLVertexTextfieldElement;
|
|
1163
1214
|
"vertex-toast": HTMLVertexToastElement;
|
|
1164
1215
|
"vertex-toggle": HTMLVertexToggleElement;
|
|
@@ -1358,43 +1409,13 @@ declare namespace LocalJSX {
|
|
|
1358
1409
|
*/
|
|
1359
1410
|
"open"?: boolean;
|
|
1360
1411
|
}
|
|
1361
|
-
interface VertexColorCircle {
|
|
1362
|
-
/**
|
|
1363
|
-
* The primary color of this `vertex-color-circle`. For `dark` theme, this will be the background-color. For `light` theme, this will be the border-color.
|
|
1364
|
-
*/
|
|
1365
|
-
"color"?: string;
|
|
1366
|
-
/**
|
|
1367
|
-
* The percentage darker color to use to compute the `darkened` color. This will be used when the `theme` is set to `dark`.
|
|
1368
|
-
*/
|
|
1369
|
-
"darkenPercentage"?: number;
|
|
1370
|
-
/**
|
|
1371
|
-
* The computed darker color based on the provided `color` and `darkenPercentage`. This will be used when the `theme` is set to `dark`.
|
|
1372
|
-
*/
|
|
1373
|
-
"darkened"?: string;
|
|
1374
|
-
/**
|
|
1375
|
-
* The percentage lighter color to use to compute the `lightened` color. This will be used when the `theme` is set to `light`.
|
|
1376
|
-
*/
|
|
1377
|
-
"lightenPercentage"?: number;
|
|
1378
|
-
/**
|
|
1379
|
-
* The computed lighter color based on the provided `color` and `lightenPercentage`. This will be used when the `theme` is set to `light`.
|
|
1380
|
-
*/
|
|
1381
|
-
"lightened"?: string;
|
|
1382
|
-
/**
|
|
1383
|
-
* An optional supplemental color to be paired with the `color`. For `dark` theme, this will be the border-color. For `light` theme, this will be the background-color.
|
|
1384
|
-
*/
|
|
1385
|
-
"supplementalColor"?: string;
|
|
1386
|
-
/**
|
|
1387
|
-
* The theme to use for this `vertex-color-circle`. Can be either `light` or `dark`, and defaults to `dark`. With the `dark` theme, the provided `color` will be used as the background-color, and the `darkened` color will be used for the border-color. With the `light` theme, the provided `color` will be used as the border-color, and the `lightened` color will be used for the background-color.
|
|
1388
|
-
*/
|
|
1389
|
-
"theme"?: 'light' | 'dark';
|
|
1390
|
-
}
|
|
1391
1412
|
interface VertexColorCirclePicker {
|
|
1392
1413
|
/**
|
|
1393
|
-
* The colors to show in this `vertex-color-circle-picker`. These values will map to the `color` property of the underlying `vertex-color-
|
|
1414
|
+
* The colors to show in this `vertex-color-circle-picker`. These values will map to the `color` property of the underlying `vertex-color-swatch`.
|
|
1394
1415
|
*/
|
|
1395
1416
|
"colors"?: string[] | string;
|
|
1396
1417
|
/**
|
|
1397
|
-
* The percentage darker color to use to compute the `darkened` color for the underlying `vertex-color-
|
|
1418
|
+
* The percentage darker color to use to compute the `darkened` color for the underlying `vertex-color-swatch`. This will be used when the `theme` is set to `dark`.
|
|
1398
1419
|
*/
|
|
1399
1420
|
"darkenPercentage"?: number;
|
|
1400
1421
|
/**
|
|
@@ -1402,20 +1423,20 @@ declare namespace LocalJSX {
|
|
|
1402
1423
|
*/
|
|
1403
1424
|
"direction"?: 'vertical' | 'horizontal';
|
|
1404
1425
|
/**
|
|
1405
|
-
* The percentage lighter color to use to compute the `lightened` color for the underlying `vertex-color-
|
|
1426
|
+
* The percentage lighter color to use to compute the `lightened` color for the underlying `vertex-color-swatch`. This will be used when the `theme` is set to `light`.
|
|
1406
1427
|
*/
|
|
1407
1428
|
"lightenPercentage"?: number;
|
|
1408
1429
|
"onSelectionChanged"?: (event: VertexColorCirclePickerCustomEvent<SelectionChangedDetails>) => void;
|
|
1409
1430
|
/**
|
|
1410
|
-
* An optional selected color. This will also be updated internally by the component when individual `vertex-color-
|
|
1431
|
+
* An optional selected color. This will also be updated internally by the component when individual `vertex-color-swatch` elements are clicked.
|
|
1411
1432
|
*/
|
|
1412
1433
|
"selected"?: string;
|
|
1413
1434
|
/**
|
|
1414
|
-
* Optional supplemental colors that will be provided to the underlying `vertex-color-
|
|
1435
|
+
* Optional supplemental colors that will be provided to the underlying `vertex-color-swatch` elements for associated indices in the `colors` array.
|
|
1415
1436
|
*/
|
|
1416
1437
|
"supplementalColors"?: string[] | string;
|
|
1417
1438
|
/**
|
|
1418
|
-
* The theme to use for this `vertex-color-circle-picker`. Can be either `light` or `dark`, and defaults to `dark`. With the `dark` theme, the provided `colors` will be used as the background-colors for `vertex-color-
|
|
1439
|
+
* The theme to use for this `vertex-color-circle-picker`. Can be either `light` or `dark`, and defaults to `dark`. With the `dark` theme, the provided `colors` will be used as the background-colors for `vertex-color-swatch` elements, and a `darkened` color will be used for the border-colors. With the `light` theme, the provided `colors` will be used as the background-colors for `vertex-color-swatch` elements, and a `lightened` color will be used for the border-colors.
|
|
1419
1440
|
*/
|
|
1420
1441
|
"theme"?: 'light' | 'dark';
|
|
1421
1442
|
}
|
|
@@ -1432,10 +1453,56 @@ declare namespace LocalJSX {
|
|
|
1432
1453
|
* Emitted when a new value is input.
|
|
1433
1454
|
*/
|
|
1434
1455
|
"onValueInput"?: (event: VertexColorPickerCustomEvent<string>) => void;
|
|
1456
|
+
/**
|
|
1457
|
+
* The size of the swatch displayed for this color picker. Can be `sm`, `md`, `lg`, or `xl`, and defaults to `md`. If the `variant` is `full`, this value will also increase the size of the associated hexadecimal value.
|
|
1458
|
+
*/
|
|
1459
|
+
"size"?: ColorSwatchSize;
|
|
1435
1460
|
/**
|
|
1436
1461
|
* Optional value property to set the initial value of this input.
|
|
1437
1462
|
*/
|
|
1438
1463
|
"value"?: string;
|
|
1464
|
+
/**
|
|
1465
|
+
* The variant of this color picker. Can be `full` or `swatch`, and defaults to `full`. `full` will display both the visual color swatch and the hexadecimal representation of the color. `swatch` will display only the visual color swatch.
|
|
1466
|
+
*/
|
|
1467
|
+
"variant"?: ColorPickerVariant;
|
|
1468
|
+
}
|
|
1469
|
+
interface VertexColorSwatch {
|
|
1470
|
+
/**
|
|
1471
|
+
* The primary color of this `vertex-color-swatch` in hexadecimal format. For `dark` theme, this will be the background-color. For `light` theme, this will be the border-color.
|
|
1472
|
+
*/
|
|
1473
|
+
"color"?: string;
|
|
1474
|
+
/**
|
|
1475
|
+
* The percentage darker color to use to compute the `darkened` color. This will be used when the `theme` is set to `dark`.
|
|
1476
|
+
*/
|
|
1477
|
+
"darkenPercentage"?: number;
|
|
1478
|
+
/**
|
|
1479
|
+
* The computed darker color based on the provided `color` and `darkenPercentage`. This will be used when the `theme` is set to `dark`.
|
|
1480
|
+
*/
|
|
1481
|
+
"darkened"?: string;
|
|
1482
|
+
/**
|
|
1483
|
+
* The percentage lighter color to use to compute the `lightened` color. This will be used when the `theme` is set to `light`.
|
|
1484
|
+
*/
|
|
1485
|
+
"lightenPercentage"?: number;
|
|
1486
|
+
/**
|
|
1487
|
+
* The computed lighter color based on the provided `color` and `lightenPercentage`. This will be used when the `theme` is set to `light`.
|
|
1488
|
+
*/
|
|
1489
|
+
"lightened"?: string;
|
|
1490
|
+
/**
|
|
1491
|
+
* The size of this color swatch. Can be `sm`, `md`, or `lg`, and defaults to `md`.
|
|
1492
|
+
*/
|
|
1493
|
+
"size"?: ColorSwatchSize;
|
|
1494
|
+
/**
|
|
1495
|
+
* An optional supplemental color to be paired with the `color`. For `dark` theme, this will be the border-color. For `light` theme, this will be the background-color.
|
|
1496
|
+
*/
|
|
1497
|
+
"supplementalColor"?: string;
|
|
1498
|
+
/**
|
|
1499
|
+
* The theme to use for this `vertex-color-swatch`. Can be `none`, `light`, or `dark`, and defaults to `none`. With no theme (`none`), the provided `color` will be used as the background-color, and the border will be a neutral color. With the `dark` theme, the provided `color` will be used as the background-color, and the `darkened` color will be used for the border-color. With the `light` theme, the provided `color` will be used as the border-color, and the `lightened` color will be used for the background-color.
|
|
1500
|
+
*/
|
|
1501
|
+
"theme"?: ColorSwatchTheme;
|
|
1502
|
+
/**
|
|
1503
|
+
* The variant of this color swatch. Can be either `circle` or `square`, and defaults to `circle`.
|
|
1504
|
+
*/
|
|
1505
|
+
"variant"?: ColorSwatchVariant;
|
|
1439
1506
|
}
|
|
1440
1507
|
interface VertexContextMenu {
|
|
1441
1508
|
/**
|
|
@@ -1937,6 +2004,21 @@ declare namespace LocalJSX {
|
|
|
1937
2004
|
*/
|
|
1938
2005
|
"size"?: SpinnerSize;
|
|
1939
2006
|
}
|
|
2007
|
+
interface VertexTab {
|
|
2008
|
+
"active"?: boolean;
|
|
2009
|
+
/**
|
|
2010
|
+
* The label to include in tab list.
|
|
2011
|
+
*/
|
|
2012
|
+
"label": string;
|
|
2013
|
+
"onTabClick"?: (event: VertexTabCustomEvent<string>) => void;
|
|
2014
|
+
}
|
|
2015
|
+
interface VertexTabs {
|
|
2016
|
+
"active"?: string;
|
|
2017
|
+
/**
|
|
2018
|
+
* An event that is emitted whenever the selected tab changes and contains the label of the newly selected tab.
|
|
2019
|
+
*/
|
|
2020
|
+
"onSelectedTabChanged"?: (event: VertexTabsCustomEvent<string>) => void;
|
|
2021
|
+
}
|
|
1940
2022
|
interface VertexTextfield {
|
|
1941
2023
|
/**
|
|
1942
2024
|
* Sets autoComplete attribute on <input>
|
|
@@ -2094,9 +2176,9 @@ declare namespace LocalJSX {
|
|
|
2094
2176
|
"vertex-chip": VertexChip;
|
|
2095
2177
|
"vertex-click-to-edit-textfield": VertexClickToEditTextfield;
|
|
2096
2178
|
"vertex-collapsible": VertexCollapsible;
|
|
2097
|
-
"vertex-color-circle": VertexColorCircle;
|
|
2098
2179
|
"vertex-color-circle-picker": VertexColorCirclePicker;
|
|
2099
2180
|
"vertex-color-picker": VertexColorPicker;
|
|
2181
|
+
"vertex-color-swatch": VertexColorSwatch;
|
|
2100
2182
|
"vertex-context-menu": VertexContextMenu;
|
|
2101
2183
|
"vertex-dialog": VertexDialog;
|
|
2102
2184
|
"vertex-draggable-popover": VertexDraggablePopover;
|
|
@@ -2118,6 +2200,8 @@ declare namespace LocalJSX {
|
|
|
2118
2200
|
"vertex-select": VertexSelect;
|
|
2119
2201
|
"vertex-slider": VertexSlider;
|
|
2120
2202
|
"vertex-spinner": VertexSpinner;
|
|
2203
|
+
"vertex-tab": VertexTab;
|
|
2204
|
+
"vertex-tabs": VertexTabs;
|
|
2121
2205
|
"vertex-textfield": VertexTextfield;
|
|
2122
2206
|
"vertex-toast": VertexToast;
|
|
2123
2207
|
"vertex-toggle": VertexToggle;
|
|
@@ -2138,9 +2222,9 @@ declare module "@stencil/core" {
|
|
|
2138
2222
|
"vertex-chip": LocalJSX.VertexChip & JSXBase.HTMLAttributes<HTMLVertexChipElement>;
|
|
2139
2223
|
"vertex-click-to-edit-textfield": LocalJSX.VertexClickToEditTextfield & JSXBase.HTMLAttributes<HTMLVertexClickToEditTextfieldElement>;
|
|
2140
2224
|
"vertex-collapsible": LocalJSX.VertexCollapsible & JSXBase.HTMLAttributes<HTMLVertexCollapsibleElement>;
|
|
2141
|
-
"vertex-color-circle": LocalJSX.VertexColorCircle & JSXBase.HTMLAttributes<HTMLVertexColorCircleElement>;
|
|
2142
2225
|
"vertex-color-circle-picker": LocalJSX.VertexColorCirclePicker & JSXBase.HTMLAttributes<HTMLVertexColorCirclePickerElement>;
|
|
2143
2226
|
"vertex-color-picker": LocalJSX.VertexColorPicker & JSXBase.HTMLAttributes<HTMLVertexColorPickerElement>;
|
|
2227
|
+
"vertex-color-swatch": LocalJSX.VertexColorSwatch & JSXBase.HTMLAttributes<HTMLVertexColorSwatchElement>;
|
|
2144
2228
|
"vertex-context-menu": LocalJSX.VertexContextMenu & JSXBase.HTMLAttributes<HTMLVertexContextMenuElement>;
|
|
2145
2229
|
"vertex-dialog": LocalJSX.VertexDialog & JSXBase.HTMLAttributes<HTMLVertexDialogElement>;
|
|
2146
2230
|
"vertex-draggable-popover": LocalJSX.VertexDraggablePopover & JSXBase.HTMLAttributes<HTMLVertexDraggablePopoverElement>;
|
|
@@ -2162,6 +2246,8 @@ declare module "@stencil/core" {
|
|
|
2162
2246
|
"vertex-select": LocalJSX.VertexSelect & JSXBase.HTMLAttributes<HTMLVertexSelectElement>;
|
|
2163
2247
|
"vertex-slider": LocalJSX.VertexSlider & JSXBase.HTMLAttributes<HTMLVertexSliderElement>;
|
|
2164
2248
|
"vertex-spinner": LocalJSX.VertexSpinner & JSXBase.HTMLAttributes<HTMLVertexSpinnerElement>;
|
|
2249
|
+
"vertex-tab": LocalJSX.VertexTab & JSXBase.HTMLAttributes<HTMLVertexTabElement>;
|
|
2250
|
+
"vertex-tabs": LocalJSX.VertexTabs & JSXBase.HTMLAttributes<HTMLVertexTabsElement>;
|
|
2165
2251
|
"vertex-textfield": LocalJSX.VertexTextfield & JSXBase.HTMLAttributes<HTMLVertexTextfieldElement>;
|
|
2166
2252
|
"vertex-toast": LocalJSX.VertexToast & JSXBase.HTMLAttributes<HTMLVertexToastElement>;
|
|
2167
2253
|
"vertex-toggle": LocalJSX.VertexToggle & JSXBase.HTMLAttributes<HTMLVertexToggleElement>;
|
|
@@ -6,9 +6,11 @@ export declare enum IconNames {
|
|
|
6
6
|
'align-view-to-plane' = "align-view-to-plane",
|
|
7
7
|
'annotation' = "annotation",
|
|
8
8
|
'arrow-filled' = "arrow-filled",
|
|
9
|
+
'arrow-left-circled' = "arrow-left-circled",
|
|
9
10
|
'arrow-line-left' = "arrow-line-left",
|
|
10
11
|
'arrow-line-right' = "arrow-line-right",
|
|
11
12
|
'arrow-partial' = "arrow-partial",
|
|
13
|
+
'arrow-right-circled' = "arrow-right-circled",
|
|
12
14
|
'arrow-triangle-left' = "arrow-triangle-left",
|
|
13
15
|
'arrow-triangle-right' = "arrow-triangle-right",
|
|
14
16
|
'arrow-up-circled' = "arrow-up-circled",
|
|
@@ -20,9 +22,11 @@ export declare enum IconNames {
|
|
|
20
22
|
'box-cursor' = "box-cursor",
|
|
21
23
|
'box-select' = "box-select",
|
|
22
24
|
'camera' = "camera",
|
|
25
|
+
'camera-add' = "camera-add",
|
|
23
26
|
'caret-down' = "caret-down",
|
|
24
27
|
'caret-left' = "caret-left",
|
|
25
28
|
'caret-up' = "caret-up",
|
|
29
|
+
'caution' = "caution",
|
|
26
30
|
'check' = "check",
|
|
27
31
|
'check-circle' = "check-circle",
|
|
28
32
|
'caret-right' = "caret-right",
|
|
@@ -36,23 +40,29 @@ export declare enum IconNames {
|
|
|
36
40
|
'close-circle' = "close-circle",
|
|
37
41
|
'collapse-all' = "collapse-all",
|
|
38
42
|
'columns' = "columns",
|
|
43
|
+
'columns-add' = "columns-add",
|
|
39
44
|
'comment-add' = "comment-add",
|
|
40
45
|
'comment-filled' = "comment-filled",
|
|
41
46
|
'comment-reopen' = "comment-reopen",
|
|
42
47
|
'comment-resolve' = "comment-resolve",
|
|
43
48
|
'comment-show' = "comment-show",
|
|
49
|
+
'compare' = "compare",
|
|
50
|
+
'compress' = "compress",
|
|
44
51
|
'copy' = "copy",
|
|
45
52
|
'cross-section' = "cross-section",
|
|
46
53
|
'cube-orthographic' = "cube-orthographic",
|
|
47
54
|
'cube-perspective' = "cube-perspective",
|
|
55
|
+
'cube-stack' = "cube-stack",
|
|
48
56
|
'delete' = "delete",
|
|
49
57
|
'download' = "download",
|
|
50
58
|
'drag-indicator' = "drag-indicator",
|
|
51
59
|
'ellipse' = "ellipse",
|
|
52
60
|
'error-circle' = "error-circle",
|
|
61
|
+
'expand' = "expand",
|
|
53
62
|
'expand-all' = "expand-all",
|
|
54
63
|
'export' = "export",
|
|
55
64
|
'file' = "file",
|
|
65
|
+
'file-folder' = "file-folder",
|
|
56
66
|
'file-pdf' = "file-pdf",
|
|
57
67
|
'fit-all' = "fit-all",
|
|
58
68
|
'fit-selected' = "fit-selected",
|
|
@@ -85,9 +95,13 @@ export declare enum IconNames {
|
|
|
85
95
|
'pin-line' = "pin-line",
|
|
86
96
|
'pin-text' = "pin-text",
|
|
87
97
|
'pin-text-fill' = "pin-text-fill",
|
|
98
|
+
'pin-text-square' = "pin-text-square",
|
|
88
99
|
'plus' = "plus",
|
|
100
|
+
'plus-with-arrow' = "plus-with-arrow",
|
|
101
|
+
'pmi' = "pmi",
|
|
89
102
|
'precise-measurement' = "precise-measurement",
|
|
90
103
|
'rabbit' = "rabbit",
|
|
104
|
+
'report' = "report",
|
|
91
105
|
'reset' = "reset",
|
|
92
106
|
'resize' = "resize",
|
|
93
107
|
'rotate' = "rotate",
|
|
@@ -96,12 +110,15 @@ export declare enum IconNames {
|
|
|
96
110
|
'show-only-nearby' = "show-only-nearby",
|
|
97
111
|
'snapshots' = "snapshots",
|
|
98
112
|
'star' = "star",
|
|
113
|
+
'square-dot-outline' = "square-dot-outline",
|
|
99
114
|
'tape-measure' = "tape-measure",
|
|
100
115
|
'teleport-and-align' = "teleport-and-align",
|
|
101
116
|
'teleport-toward' = "teleport-toward",
|
|
102
117
|
'teleport' = "teleport",
|
|
103
118
|
'turtle' = "turtle",
|
|
119
|
+
'update' = "update",
|
|
104
120
|
'version-history' = "version-history",
|
|
121
|
+
'views' = "views",
|
|
105
122
|
'visibility-hidden' = "visibility-hidden",
|
|
106
123
|
'visibility-partial' = "visibility-partial",
|
|
107
124
|
'visibility-visible' = "visibility-visible",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function readDOM(callback: VoidFunction): void;
|
|
2
2
|
export declare function getBoundingClientRect(el: HTMLElement): DOMRect;
|
|
3
3
|
export declare function getComputedStyle(el: HTMLElement): CSSStyleDeclaration;
|
|
4
|
+
export declare function blurElement(el: HTMLElement): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertexvis/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1-canary.0",
|
|
4
4
|
"description": "The Vertex UI component library.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"@vertexvis/utils": "^0.21.0",
|
|
88
88
|
"fast-deep-equal": "^3.1.3"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "95dd86df1f5adacedad3e2b713c8d4322cff3b9c"
|
|
91
91
|
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const index = require('./index-6a92256c.js');
|
|
4
|
-
const index$1 = require('./index-e1b40fa6.js');
|
|
5
|
-
|
|
6
|
-
const colorPickerCss = ":host{--selected-color-width:30px;--selected-color-height:30px}.color-picker{display:inline-flex;position:relative;background:var(--vertex-ui-neutral-200);border-radius:4px;cursor:pointer}.color-picker.disabled{opacity:0.5;cursor:default}.selected{height:var(--selected-color-height);width:var(--selected-color-width);box-sizing:content-box;border:1px solid var(--vertex-ui-neutral-300);border-radius:4px}.handle{display:flex;align-items:center;padding:0 3px}.input{position:absolute;pointer-events:none;height:100%;width:100%;left:0;top:0;opacity:0}";
|
|
7
|
-
|
|
8
|
-
const ColorPicker = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
index.registerInstance(this, hostRef);
|
|
11
|
-
this.valueInput = index.createEvent(this, "valueInput", 7);
|
|
12
|
-
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
13
|
-
this.handleInput = (event) => {
|
|
14
|
-
const input = event.target;
|
|
15
|
-
this.value = input.value || '';
|
|
16
|
-
};
|
|
17
|
-
this.handleChange = (event) => {
|
|
18
|
-
this.valueChanged.emit(this.value);
|
|
19
|
-
};
|
|
20
|
-
this.value = undefined;
|
|
21
|
-
this.disabled = false;
|
|
22
|
-
}
|
|
23
|
-
valueChange() {
|
|
24
|
-
this.valueInput.emit(this.value);
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
return (index.h(index.Host, null, index.h("label", { class: index$1.classnames('color-picker', { disabled: this.disabled }) }, index.h("input", { type: "color", class: "input", "data-testid": "input", disabled: this.disabled, value: this.value, onInput: this.handleInput, onChange: this.handleChange }), index.h("div", { class: "selected", style: {
|
|
28
|
-
'background-color': this.value,
|
|
29
|
-
}, title: this.value }), index.h("div", { class: "handle" }, index.h("slot", { name: "handle-icon" }, index.h("vertex-icon", { name: "chevron-down", size: "sm" }))))));
|
|
30
|
-
}
|
|
31
|
-
static get watchers() { return {
|
|
32
|
-
"value": ["valueChange"]
|
|
33
|
-
}; }
|
|
34
|
-
};
|
|
35
|
-
ColorPicker.style = colorPickerCss;
|
|
36
|
-
|
|
37
|
-
exports.ColorPicker = ColorPicker;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
The size of the circle.
|
|
6
|
-
Defaults to 24px;
|
|
7
|
-
*/
|
|
8
|
-
--circle-size: 24px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.root {
|
|
12
|
-
border-radius: 100%;
|
|
13
|
-
border-width: 2px;
|
|
14
|
-
border-style: solid;
|
|
15
|
-
width: var(--circle-size);
|
|
16
|
-
height: var(--circle-size);
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
}
|