@emuanalytics/flow-rdf-ui 0.0.23 → 0.0.25

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/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import * as chartjs_chart_matrix from 'chartjs-chart-matrix';
4
4
  import * as chart_js from 'chart.js';
5
5
  import { Chart, ChartTypeRegistry, ChartOptions, ChartData, Plugin, ChartComponentLike } from 'chart.js';
6
6
  export { Chart as ChartJs } from 'chart.js';
7
+ export { default as dayjs } from 'dayjs';
7
8
 
8
9
  type EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? never : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? never : T : never : never;
9
10
  type EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? T : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? T : never : T : T;
@@ -49,6 +50,9 @@ interface FlowRdfFormControl extends FlowRdfElement {
49
50
  }
50
51
 
51
52
  /**
53
+ *
54
+ *
55
+ * @tagname flow-ui-icon
52
56
  * @summary Icons are symbols that can be used to represent various options within an application.
53
57
  * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/icon
54
58
  * @status stable
@@ -82,7 +86,13 @@ declare class FlowIcon extends FlowRdfElement {
82
86
  firstUpdated(): void;
83
87
  disconnectedCallback(): void;
84
88
  private getUrl;
89
+ /**
90
+ * @internal
91
+ */
85
92
  handleLabelChange(): void;
93
+ /**
94
+ * @internal
95
+ */
86
96
  setIcon(): Promise<void>;
87
97
  render(): SVGElement | null;
88
98
  }
@@ -879,17 +889,28 @@ declare global {
879
889
  */
880
890
  declare class FlowCalendar extends FlowRdfElement {
881
891
  static styles: CSSResultGroup;
892
+ private _monthSelect;
893
+ private _yearSelect;
882
894
  private _displayDate;
883
- private _selectedDate;
895
+ private _selectedDate?;
884
896
  value: string;
897
+ displayMode: 'date' | 'time' | 'datetime';
898
+ timezone: string;
899
+ size: 'small' | 'medium' | 'large';
885
900
  connectedCallback(): void;
886
901
  disconnectedCallback(): void;
887
902
  handleValueChange(): void;
888
903
  private dateClicked;
889
- private changeDisplayDate;
904
+ private stepDisplayDate;
905
+ private yearOptionsForDate;
906
+ private makeDate;
907
+ private updateValue;
908
+ private handleHeaderSelectChange;
909
+ private handleTimeChange;
890
910
  private calendarHeaderTemplate;
891
911
  private dayOfWeekGridTemplate;
892
912
  private dayGridTemplate;
913
+ private timeTemplate;
893
914
  render(): lit.TemplateResult<1>;
894
915
  }
895
916
 
@@ -1788,6 +1809,150 @@ declare global {
1788
1809
  }
1789
1810
  }
1790
1811
 
1812
+ /**
1813
+ * @summary Tags are used as labels to organize things or to indicate a selection.
1814
+ * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/tag
1815
+ * @status stable
1816
+ * @since 2.0
1817
+ *
1818
+ * @dependency flow-ui-icon-button
1819
+ *
1820
+ * @slot - The tag's content.
1821
+ *
1822
+ * @event flow-ui-remove - Emitted when the remove button is activated.
1823
+ *
1824
+ * @csspart base - The component's base wrapper.
1825
+ * @csspart content - The tag's content.
1826
+ * @csspart remove-button - The tag's remove button, an `<flow-ui-icon-button>`.
1827
+ * @csspart remove-button__base - The remove button's exported `base` part.
1828
+ */
1829
+ declare class FlowTag extends FlowRdfElement {
1830
+ static styles: CSSResultGroup;
1831
+ private readonly localize;
1832
+ /** The tag's theme variant. */
1833
+ variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text';
1834
+ /** The tag's size. */
1835
+ size: 'small' | 'medium' | 'large';
1836
+ /** Draws a pill-style tag with rounded edges. */
1837
+ pill: boolean;
1838
+ /** Makes the tag removable and shows a remove button. */
1839
+ removable: boolean;
1840
+ private handleRemoveClick;
1841
+ render(): lit.TemplateResult<1>;
1842
+ }
1843
+ declare global {
1844
+ interface HTMLElementTagNameMap {
1845
+ 'flow-ui-tag': FlowTag;
1846
+ }
1847
+ }
1848
+
1849
+ declare class FlowDatetimePicker extends FlowRdfElement implements FlowRdfFormControl {
1850
+ static styles: CSSResultGroup;
1851
+ private readonly formControlController;
1852
+ private readonly hasSlotController;
1853
+ private readonly localize;
1854
+ popup: FlowPopup;
1855
+ combobox: HTMLSlotElement;
1856
+ displayInput: HTMLInputElement;
1857
+ valueInput: HTMLInputElement;
1858
+ calendarContainer: HTMLDivElement;
1859
+ private hasFocus;
1860
+ displayLabel: string;
1861
+ /** The name of the select, submitted as a name/value pair with form data. */
1862
+ name: string;
1863
+ value: string;
1864
+ displayMode: 'date' | 'time' | 'datetime';
1865
+ format: string;
1866
+ timezone: string;
1867
+ /** The default value of the form control. Primarily used for resetting the form control. */
1868
+ defaultValue: string;
1869
+ /** The select's size. */
1870
+ size: 'small' | 'medium' | 'large';
1871
+ /** Placeholder text to show as a hint when the select is empty. */
1872
+ placeholder: string;
1873
+ /** Disables the select control. */
1874
+ disabled: boolean;
1875
+ /** Adds a clear button when the select is not empty. */
1876
+ clearable: boolean;
1877
+ /**
1878
+ * Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can
1879
+ * use the `show()` and `hide()` methods and this attribute will reflect the select's open state.
1880
+ */
1881
+ open: boolean;
1882
+ /**
1883
+ * Enable this option to prevent the listbox from being clipped when the component is placed inside a container with
1884
+ * `overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.
1885
+ */
1886
+ hoist: boolean;
1887
+ /** Draws a filled select. */
1888
+ filled: boolean;
1889
+ /** Draws a pill-style select with rounded edges. */
1890
+ pill: boolean;
1891
+ /** The select's label. If you need to display HTML, use the `label` slot instead. */
1892
+ label: string;
1893
+ /**
1894
+ * The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox
1895
+ * inside of the viewport.
1896
+ */
1897
+ placement: 'top' | 'top-end' | 'top-start' | 'bottom' | 'bottom-end' | 'bottom-start';
1898
+ /** The select's help text. If you need to display HTML, use the `help-text` slot instead. */
1899
+ helpText: string;
1900
+ /**
1901
+ * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
1902
+ * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
1903
+ * the same document or shadow root for this to work.
1904
+ */
1905
+ form: string;
1906
+ /** The select's required attribute. */
1907
+ required: boolean;
1908
+ /** Gets the validity state object */
1909
+ get validity(): ValidityState;
1910
+ /** Gets the validation message */
1911
+ get validationMessage(): string;
1912
+ connectedCallback(): void;
1913
+ private addOpenListeners;
1914
+ private removeOpenListeners;
1915
+ updateDisplayLabel(): void;
1916
+ private handleFocus;
1917
+ private handleBlur;
1918
+ private handleDocumentFocusIn;
1919
+ private handleDocumentKeyDown;
1920
+ private handleDocumentMouseDown;
1921
+ private handleLabelClick;
1922
+ private handleComboboxMouseDown;
1923
+ private handleComboboxKeyDown;
1924
+ private handleClearClick;
1925
+ private handleClearMouseDown;
1926
+ private handleCalendarChange;
1927
+ private handleInvalid;
1928
+ handleDisabledChange(): void;
1929
+ handleValueChange(): void;
1930
+ handleOpenChange(): Promise<void>;
1931
+ /** Shows the listbox. */
1932
+ show(): Promise<void>;
1933
+ /** Hides the listbox. */
1934
+ hide(): Promise<void>;
1935
+ /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
1936
+ checkValidity(): boolean;
1937
+ /** Gets the associated form, if one exists. */
1938
+ getForm(): HTMLFormElement | null;
1939
+ /** Checks for validity and shows the browser's validation message if the control is invalid. */
1940
+ reportValidity(): boolean;
1941
+ /** Sets a custom validation message. Pass an empty string to restore validity. */
1942
+ setCustomValidity(message: string): void;
1943
+ /** Sets focus on the control. */
1944
+ focus(options?: FocusOptions): void;
1945
+ /** Removes focus from the control. */
1946
+ blur(): void;
1947
+ render(): lit.TemplateResult<1>;
1948
+ }
1949
+
1950
+ declare global {
1951
+ interface HTMLElementTagNameMap {
1952
+ 'flow-ui-date-time-picker': FlowDatetimePicker;
1953
+ }
1954
+ }
1955
+
1791
1956
  /**
1792
1957
  * @summary Details show a brief summary and expand to show additional content.
1793
1958
  * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/details
@@ -2174,6 +2339,37 @@ declare global {
2174
2339
  }
2175
2340
  }
2176
2341
 
2342
+ /**
2343
+
2344
+ */
2345
+ declare class FlowNumberStepper extends FlowRdfElement {
2346
+ static styles: CSSResultGroup;
2347
+ private _input;
2348
+ private _formatter;
2349
+ value: number | '';
2350
+ step: number;
2351
+ min: number;
2352
+ max: number;
2353
+ format: string;
2354
+ size: 'small' | 'medium' | 'large';
2355
+ placeholder: string;
2356
+ connectedCallback(): void;
2357
+ disconnectedCallback(): void;
2358
+ stepUp(emitEvent?: boolean): void;
2359
+ stepDown(emitEvent?: boolean): void;
2360
+ handleValueChange(): void;
2361
+ handleFormatChange(): void;
2362
+ private handleInputChange;
2363
+ private clampValue;
2364
+ render(): lit.TemplateResult<1>;
2365
+ }
2366
+
2367
+ declare global {
2368
+ interface HTMLElementTagNameMap {
2369
+ 'flow-ui-number-stepper': FlowNumberStepper;
2370
+ }
2371
+ }
2372
+
2177
2373
  /**
2178
2374
  * @summary Options define the selectable items within various form controls such as [select](/components/select).
2179
2375
  * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/option
@@ -2783,43 +2979,6 @@ declare global {
2783
2979
  }
2784
2980
  }
2785
2981
 
2786
- /**
2787
- * @summary Tags are used as labels to organize things or to indicate a selection.
2788
- * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/tag
2789
- * @status stable
2790
- * @since 2.0
2791
- *
2792
- * @dependency flow-ui-icon-button
2793
- *
2794
- * @slot - The tag's content.
2795
- *
2796
- * @event flow-ui-remove - Emitted when the remove button is activated.
2797
- *
2798
- * @csspart base - The component's base wrapper.
2799
- * @csspart content - The tag's content.
2800
- * @csspart remove-button - The tag's remove button, an `<flow-ui-icon-button>`.
2801
- * @csspart remove-button__base - The remove button's exported `base` part.
2802
- */
2803
- declare class FlowTag extends FlowRdfElement {
2804
- static styles: CSSResultGroup;
2805
- private readonly localize;
2806
- /** The tag's theme variant. */
2807
- variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text';
2808
- /** The tag's size. */
2809
- size: 'small' | 'medium' | 'large';
2810
- /** Draws a pill-style tag with rounded edges. */
2811
- pill: boolean;
2812
- /** Makes the tag removable and shows a remove button. */
2813
- removable: boolean;
2814
- private handleRemoveClick;
2815
- render(): lit.TemplateResult<1>;
2816
- }
2817
- declare global {
2818
- interface HTMLElementTagNameMap {
2819
- 'flow-ui-tag': FlowTag;
2820
- }
2821
- }
2822
-
2823
2982
  /**
2824
2983
  * @summary Selects allow you to choose items from a menu of predefined options.
2825
2984
  * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/select
@@ -3625,6 +3784,22 @@ declare global {
3625
3784
  }
3626
3785
  }
3627
3786
 
3787
+ /**
3788
+
3789
+ */
3790
+ declare class FlowTimer extends FlowRdfElement {
3791
+ static styles: CSSResultGroup;
3792
+ connectedCallback(): void;
3793
+ disconnectedCallback(): void;
3794
+ render(): lit.TemplateResult<1>;
3795
+ }
3796
+
3797
+ declare global {
3798
+ interface HTMLElementTagNameMap {
3799
+ 'flow-ui-timer': FlowTimer;
3800
+ }
3801
+ }
3802
+
3628
3803
  /**
3629
3804
  * @summary A tree item serves as a hierarchical node that lives inside a [tree](/components/tree).
3630
3805
  * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/tree-item
@@ -4424,4 +4599,4 @@ declare function registerIconLibrary(name: string, options: {
4424
4599
  /** Removes an icon library from the registry. */
4425
4600
  declare function unregisterIconLibrary(name: string): void;
4426
4601
 
4427
- export { BaseColorMapperField, BaseColorStopOptions, ColorMapperField, ColorMapperOptions, ColorMapperValue, ColorStopOptions, ColorStopValue, FlowAfterCollapseEvent, FlowAfterExpandEvent, FlowAfterHideEvent, FlowAfterShowEvent, FlowAlert, FlowAnimation, FlowAvatar, FlowBadge, FlowBlurEvent, FlowBreadcrumb, FlowBreadcrumbItem, FlowButton, FlowButtonGroup, FlowCalendar, FlowCancelEvent, FlowCard, FlowCarousel, FlowCarouselItem, FlowChangeEvent, FlowChart, FlowCheckbox, FlowClearEvent, FlowCloseEvent, FlowCollapseEvent, FlowColorMapper, FlowColorPicker, FlowColorStopComponent as FlowColorStop, FlowDetails, FlowDialog, FlowDivider, FlowDragEndEvent, FlowDragEvent, FlowDragStartEvent, FlowDrawer, FlowDropdown, FlowErrorEvent, FlowExpandEvent, FlowFinishEvent, FlowFocusEvent, FlowGauge, FlowHideEvent, FlowHoverEvent, FlowIcon, FlowIconButton, FlowInitialFocusEvent, FlowInput, FlowInputEvent, FlowInvalidEvent, FlowLazyChangeEvent, FlowLazyLoadEvent, FlowLoadEvent, FlowMenu, FlowMenuItem, FlowMenuLabel, FlowMutationEvent, FlowMutationObserver, FlowOption, FlowSplitViewPanel as FlowPanel, FlowPanelHeader, FlowPanelToggleEvent, FlowPopup, FlowProgressBar, FlowProgressRing, FlowRadio, FlowRadioGroup, FlowRange, FlowRemoveEvent, FlowRepositionEvent, FlowRequestCloseEvent, FlowResizeEvent, FlowResizeObserver, FlowScrollView, FlowSelect, FlowSelectEvent, FlowSelectionChangeEvent, FlowShowEvent, FlowSlideChange, FlowSpinner, FlowSplitView, FlowPanelDivider as FlowSplitViewDivider, FlowSplitViewPane, FlowSplitViewToggleButton, FlowStartEvent, FlowStepper, FlowStepperPanel, FlowSwitch, FlowTab, FlowTabGroup, FlowTabHideEvent, FlowTabPanel, FlowTabShowEvent, FlowTag, FlowTextarea, FlowToolButton, FlowToolButtonGroup, FlowTooltip, FlowTree, FlowTreeItem, FlowVisuallyHidden, NumberColorMapperField, NumberColorStopOptions, SelectColorMapperField, SelectColorStopOptions, StringColorMapperField, StringColorStopOptions, addIcons, colorMapperValueToMaplibreExpression, escapeMaplibreString, getAnimationNames, getBasePath, getEasingNames, initializeChartJs, registerChartComponent, registerIconLibrary, setBasePath, unregisterIconLibrary };
4602
+ export { BaseColorMapperField, BaseColorStopOptions, ColorMapperField, ColorMapperOptions, ColorMapperValue, ColorStopOptions, ColorStopValue, FlowAfterCollapseEvent, FlowAfterExpandEvent, FlowAfterHideEvent, FlowAfterShowEvent, FlowAlert, FlowAnimation, FlowAvatar, FlowBadge, FlowBlurEvent, FlowBreadcrumb, FlowBreadcrumbItem, FlowButton, FlowButtonGroup, FlowCalendar, FlowCancelEvent, FlowCard, FlowCarousel, FlowCarouselItem, FlowChangeEvent, FlowChart, FlowCheckbox, FlowClearEvent, FlowCloseEvent, FlowCollapseEvent, FlowColorMapper, FlowColorPicker, FlowColorStopComponent as FlowColorStop, FlowDatetimePicker as FlowDateTimePicker, FlowDetails, FlowDialog, FlowDivider, FlowDragEndEvent, FlowDragEvent, FlowDragStartEvent, FlowDrawer, FlowDropdown, FlowErrorEvent, FlowExpandEvent, FlowFinishEvent, FlowFocusEvent, FlowGauge, FlowHideEvent, FlowHoverEvent, FlowIcon, FlowIconButton, FlowInitialFocusEvent, FlowInput, FlowInputEvent, FlowInvalidEvent, FlowLazyChangeEvent, FlowLazyLoadEvent, FlowLoadEvent, FlowMenu, FlowMenuItem, FlowMenuLabel, FlowMutationEvent, FlowMutationObserver, FlowNumberStepper, FlowOption, FlowSplitViewPanel as FlowPanel, FlowPanelHeader, FlowPanelToggleEvent, FlowPopup, FlowProgressBar, FlowProgressRing, FlowRadio, FlowRadioGroup, FlowRange, FlowRemoveEvent, FlowRepositionEvent, FlowRequestCloseEvent, FlowResizeEvent, FlowResizeObserver, FlowScrollView, FlowSelect, FlowSelectEvent, FlowSelectionChangeEvent, FlowShowEvent, FlowSlideChange, FlowSpinner, FlowSplitView, FlowPanelDivider as FlowSplitViewDivider, FlowSplitViewPane, FlowSplitViewToggleButton, FlowStartEvent, FlowStepper, FlowStepperPanel, FlowSwitch, FlowTab, FlowTabGroup, FlowTabHideEvent, FlowTabPanel, FlowTabShowEvent, FlowTag, FlowTextarea, FlowTimer, FlowToolButton, FlowToolButtonGroup, FlowTooltip, FlowTree, FlowTreeItem, FlowVisuallyHidden, NumberColorMapperField, NumberColorStopOptions, SelectColorMapperField, SelectColorStopOptions, StringColorMapperField, StringColorStopOptions, addIcons, colorMapperValueToMaplibreExpression, escapeMaplibreString, getAnimationNames, getBasePath, getEasingNames, initializeChartJs, registerChartComponent, registerIconLibrary, setBasePath, unregisterIconLibrary };