@skedulo/breeze-ui 0.11.0 → 1.0.0-preview.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/package.json +42 -8
- package/dist/custom-elements.json +0 -33408
- package/dist/lib/cjs/breeze-ui.js +0 -5000
- package/dist/lib/cjs/package.json +0 -3
- package/dist/lib/es/breeze-ui.js +0 -25629
- package/dist/lib/es/package.json +0 -3
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types/animation/fade-in-out.d.ts +0 -37
- package/dist/types/animation/fade-in-out.d.ts.map +0 -1
- package/dist/types/animation/index.d.ts +0 -2
- package/dist/types/animation/index.d.ts.map +0 -1
- package/dist/types/components/alert.d.ts +0 -58
- package/dist/types/components/alert.d.ts.map +0 -1
- package/dist/types/components/avatar.d.ts +0 -131
- package/dist/types/components/avatar.d.ts.map +0 -1
- package/dist/types/components/badge.d.ts +0 -58
- package/dist/types/components/badge.d.ts.map +0 -1
- package/dist/types/components/button.d.ts +0 -157
- package/dist/types/components/button.d.ts.map +0 -1
- package/dist/types/components/combo-box.d.ts +0 -33
- package/dist/types/components/combo-box.d.ts.map +0 -1
- package/dist/types/components/confirmation-dialog.d.ts +0 -44
- package/dist/types/components/confirmation-dialog.d.ts.map +0 -1
- package/dist/types/components/dropdown-button.d.ts +0 -44
- package/dist/types/components/dropdown-button.d.ts.map +0 -1
- package/dist/types/components/form-elements/code-theme.d.ts +0 -2
- package/dist/types/components/form-elements/code-theme.d.ts.map +0 -1
- package/dist/types/components/form-elements/index.d.ts +0 -14
- package/dist/types/components/form-elements/index.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-base.d.ts +0 -76
- package/dist/types/components/form-elements/input-base.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-checkbox.d.ts +0 -61
- package/dist/types/components/form-elements/input-checkbox.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-code.d.ts +0 -78
- package/dist/types/components/form-elements/input-code.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-error.d.ts +0 -23
- package/dist/types/components/form-elements/input-error.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-guide.d.ts +0 -24
- package/dist/types/components/form-elements/input-guide.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-multiselect.d.ts +0 -136
- package/dist/types/components/form-elements/input-multiselect.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-number.d.ts +0 -72
- package/dist/types/components/form-elements/input-number.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-radio.d.ts +0 -87
- package/dist/types/components/form-elements/input-radio.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-select-base.d.ts +0 -218
- package/dist/types/components/form-elements/input-select-base.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-select.d.ts +0 -92
- package/dist/types/components/form-elements/input-select.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-text-base.d.ts +0 -36
- package/dist/types/components/form-elements/input-text-base.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-text.d.ts +0 -38
- package/dist/types/components/form-elements/input-text.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-textarea.d.ts +0 -39
- package/dist/types/components/form-elements/input-textarea.d.ts.map +0 -1
- package/dist/types/components/form-elements/input-time.d.ts +0 -106
- package/dist/types/components/form-elements/input-time.d.ts.map +0 -1
- package/dist/types/components/form-elements/labeled-input.d.ts +0 -93
- package/dist/types/components/form-elements/labeled-input.d.ts.map +0 -1
- package/dist/types/components/heading.d.ts +0 -32
- package/dist/types/components/heading.d.ts.map +0 -1
- package/dist/types/components/icon/icon.d.ts +0 -30
- package/dist/types/components/icon/icon.d.ts.map +0 -1
- package/dist/types/components/icon/icons.d.ts +0 -16
- package/dist/types/components/icon/icons.d.ts.map +0 -1
- package/dist/types/components/icon/index.d.ts +0 -3
- package/dist/types/components/icon/index.d.ts.map +0 -1
- package/dist/types/components/icon/legacy-icons.d.ts +0 -9
- package/dist/types/components/icon/legacy-icons.d.ts.map +0 -1
- package/dist/types/components/illustration/illustration.d.ts +0 -41
- package/dist/types/components/illustration/illustration.d.ts.map +0 -1
- package/dist/types/components/illustration/illustrations.d.ts +0 -6
- package/dist/types/components/illustration/illustrations.d.ts.map +0 -1
- package/dist/types/components/illustration/index.d.ts +0 -3
- package/dist/types/components/illustration/index.d.ts.map +0 -1
- package/dist/types/components/index.d.ts +0 -27
- package/dist/types/components/index.d.ts.map +0 -1
- package/dist/types/components/inline-edit/index.d.ts +0 -7
- package/dist/types/components/inline-edit/index.d.ts.map +0 -1
- package/dist/types/components/inline-edit/inline-edit-controls.d.ts +0 -29
- package/dist/types/components/inline-edit/inline-edit-controls.d.ts.map +0 -1
- package/dist/types/components/inline-edit/inline-edit-field.d.ts +0 -203
- package/dist/types/components/inline-edit/inline-edit-field.d.ts.map +0 -1
- package/dist/types/components/inline-edit/inline-edit-group.d.ts +0 -60
- package/dist/types/components/inline-edit/inline-edit-group.d.ts.map +0 -1
- package/dist/types/components/inline-edit/inline-edit.base.d.ts +0 -52
- package/dist/types/components/inline-edit/inline-edit.base.d.ts.map +0 -1
- package/dist/types/components/inline-edit/inline-edit.const.d.ts +0 -6
- package/dist/types/components/inline-edit/inline-edit.const.d.ts.map +0 -1
- package/dist/types/components/inline-edit/inline-edit.events.d.ts +0 -32
- package/dist/types/components/inline-edit/inline-edit.events.d.ts.map +0 -1
- package/dist/types/components/inline-edit/inline-edit.styles.d.ts +0 -4
- package/dist/types/components/inline-edit/inline-edit.styles.d.ts.map +0 -1
- package/dist/types/components/inline-edit/inline-edit.types.d.ts +0 -45
- package/dist/types/components/inline-edit/inline-edit.types.d.ts.map +0 -1
- package/dist/types/components/legacy-scoped-components.d.ts +0 -269
- package/dist/types/components/legacy-scoped-components.d.ts.map +0 -1
- package/dist/types/components/link.d.ts +0 -102
- package/dist/types/components/link.d.ts.map +0 -1
- package/dist/types/components/loading.d.ts +0 -27
- package/dist/types/components/loading.d.ts.map +0 -1
- package/dist/types/components/lozenge.d.ts +0 -94
- package/dist/types/components/lozenge.d.ts.map +0 -1
- package/dist/types/components/menu/dropdown-menu.d.ts +0 -142
- package/dist/types/components/menu/dropdown-menu.d.ts.map +0 -1
- package/dist/types/components/menu/index.d.ts +0 -4
- package/dist/types/components/menu/index.d.ts.map +0 -1
- package/dist/types/components/menu/menu-item.d.ts +0 -103
- package/dist/types/components/menu/menu-item.d.ts.map +0 -1
- package/dist/types/components/menu/menu.const.d.ts +0 -3
- package/dist/types/components/menu/menu.const.d.ts.map +0 -1
- package/dist/types/components/menu/menu.d.ts +0 -188
- package/dist/types/components/menu/menu.d.ts.map +0 -1
- package/dist/types/components/modal/index.d.ts +0 -3
- package/dist/types/components/modal/index.d.ts.map +0 -1
- package/dist/types/components/modal/layout.d.ts +0 -60
- package/dist/types/components/modal/layout.d.ts.map +0 -1
- package/dist/types/components/modal/modal.d.ts +0 -75
- package/dist/types/components/modal/modal.d.ts.map +0 -1
- package/dist/types/components/navigation/index.d.ts +0 -3
- package/dist/types/components/navigation/index.d.ts.map +0 -1
- package/dist/types/components/navigation/side-navigation-item.d.ts +0 -33
- package/dist/types/components/navigation/side-navigation-item.d.ts.map +0 -1
- package/dist/types/components/navigation/side-navigation.d.ts +0 -23
- package/dist/types/components/navigation/side-navigation.d.ts.map +0 -1
- package/dist/types/components/pagination-utils.d.ts +0 -2
- package/dist/types/components/pagination-utils.d.ts.map +0 -1
- package/dist/types/components/pagination.d.ts +0 -106
- package/dist/types/components/pagination.d.ts.map +0 -1
- package/dist/types/components/popover.d.ts +0 -188
- package/dist/types/components/popover.d.ts.map +0 -1
- package/dist/types/components/record-field/index.d.ts +0 -5
- package/dist/types/components/record-field/index.d.ts.map +0 -1
- package/dist/types/components/record-field/record-field-label.d.ts +0 -22
- package/dist/types/components/record-field/record-field-label.d.ts.map +0 -1
- package/dist/types/components/record-field/record-field.const.d.ts +0 -5
- package/dist/types/components/record-field/record-field.const.d.ts.map +0 -1
- package/dist/types/components/record-field/record-field.d.ts +0 -67
- package/dist/types/components/record-field/record-field.d.ts.map +0 -1
- package/dist/types/components/record-field/record-field.styles.d.ts +0 -4
- package/dist/types/components/record-field/record-field.styles.d.ts.map +0 -1
- package/dist/types/components/record-field/record-field.types.d.ts +0 -27
- package/dist/types/components/record-field/record-field.types.d.ts.map +0 -1
- package/dist/types/components/record-row.d.ts +0 -37
- package/dist/types/components/record-row.d.ts.map +0 -1
- package/dist/types/components/tabs/index.d.ts +0 -37
- package/dist/types/components/tabs/index.d.ts.map +0 -1
- package/dist/types/components/tabs/panel.d.ts +0 -29
- package/dist/types/components/tabs/panel.d.ts.map +0 -1
- package/dist/types/components/tabs/tab-bar.d.ts +0 -36
- package/dist/types/components/tabs/tab-bar.d.ts.map +0 -1
- package/dist/types/components/tabs/tab-events.d.ts +0 -11
- package/dist/types/components/tabs/tab-events.d.ts.map +0 -1
- package/dist/types/components/tabs/tab.d.ts +0 -34
- package/dist/types/components/tabs/tab.d.ts.map +0 -1
- package/dist/types/components/tooltip.d.ts +0 -66
- package/dist/types/components/tooltip.d.ts.map +0 -1
- package/dist/types/components/virtual-list.d.ts +0 -195
- package/dist/types/components/virtual-list.d.ts.map +0 -1
- package/dist/types/helpers/css-helpers.d.ts +0 -34
- package/dist/types/helpers/css-helpers.d.ts.map +0 -1
- package/dist/types/helpers/index.d.ts +0 -2
- package/dist/types/helpers/index.d.ts.map +0 -1
- package/dist/types/layout/flex.d.ts +0 -49
- package/dist/types/layout/flex.d.ts.map +0 -1
- package/dist/types/layout/footer.d.ts +0 -23
- package/dist/types/layout/footer.d.ts.map +0 -1
- package/dist/types/layout/grid/grid-item.d.ts +0 -43
- package/dist/types/layout/grid/grid-item.d.ts.map +0 -1
- package/dist/types/layout/grid/grid.d.ts +0 -50
- package/dist/types/layout/grid/grid.d.ts.map +0 -1
- package/dist/types/layout/grid/index.d.ts +0 -3
- package/dist/types/layout/grid/index.d.ts.map +0 -1
- package/dist/types/layout/header-footer-page.d.ts +0 -23
- package/dist/types/layout/header-footer-page.d.ts.map +0 -1
- package/dist/types/layout/header.d.ts +0 -25
- package/dist/types/layout/header.d.ts.map +0 -1
- package/dist/types/layout/index.d.ts +0 -9
- package/dist/types/layout/index.d.ts.map +0 -1
- package/dist/types/layout/page-header.d.ts +0 -53
- package/dist/types/layout/page-header.d.ts.map +0 -1
- package/dist/types/layout/responsive-columns.d.ts +0 -23
- package/dist/types/layout/responsive-columns.d.ts.map +0 -1
- package/dist/types/layout/split-row.d.ts +0 -84
- package/dist/types/layout/split-row.d.ts.map +0 -1
- package/dist/types/main.d.ts +0 -7
- package/dist/types/main.d.ts.map +0 -1
- package/dist/types/mixins/component-utils.d.ts +0 -18
- package/dist/types/mixins/component-utils.d.ts.map +0 -1
- package/dist/types/mixins/index.d.ts +0 -2
- package/dist/types/mixins/index.d.ts.map +0 -1
- package/dist/types/storybook/colors.stories.d.ts +0 -20
- package/dist/types/storybook/colors.stories.d.ts.map +0 -1
- package/dist/types/styles/borders.d.ts +0 -2
- package/dist/types/styles/borders.d.ts.map +0 -1
- package/dist/types/styles/breakpoints.d.ts +0 -15
- package/dist/types/styles/breakpoints.d.ts.map +0 -1
- package/dist/types/styles/colors.d.ts +0 -176
- package/dist/types/styles/colors.d.ts.map +0 -1
- package/dist/types/styles/global-styles.d.ts +0 -18
- package/dist/types/styles/global-styles.d.ts.map +0 -1
- package/dist/types/styles/index.d.ts +0 -3
- package/dist/types/styles/index.d.ts.map +0 -1
- package/dist/types/styles/legacy-scoped-variables.d.ts +0 -17
- package/dist/types/styles/legacy-scoped-variables.d.ts.map +0 -1
- package/dist/types/styles/shadows.d.ts +0 -2
- package/dist/types/styles/shadows.d.ts.map +0 -1
- package/dist/types/styles/spacing.d.ts +0 -7
- package/dist/types/styles/spacing.d.ts.map +0 -1
- package/dist/types/styles/typography.d.ts +0 -2
- package/dist/types/styles/typography.d.ts.map +0 -1
- package/dist/types/styles/z-index.d.ts +0 -2
- package/dist/types/styles/z-index.d.ts.map +0 -1
- package/dist/types/surfaces/card/card-footer.d.ts +0 -15
- package/dist/types/surfaces/card/card-footer.d.ts.map +0 -1
- package/dist/types/surfaces/card/card-header.d.ts +0 -16
- package/dist/types/surfaces/card/card-header.d.ts.map +0 -1
- package/dist/types/surfaces/card/card-section-header.d.ts +0 -15
- package/dist/types/surfaces/card/card-section-header.d.ts.map +0 -1
- package/dist/types/surfaces/card/card.const.d.ts +0 -5
- package/dist/types/surfaces/card/card.const.d.ts.map +0 -1
- package/dist/types/surfaces/card/card.d.ts +0 -33
- package/dist/types/surfaces/card/card.d.ts.map +0 -1
- package/dist/types/surfaces/card/card.styles.d.ts +0 -5
- package/dist/types/surfaces/card/card.styles.d.ts.map +0 -1
- package/dist/types/surfaces/card/card.types.d.ts +0 -49
- package/dist/types/surfaces/card/card.types.d.ts.map +0 -1
- package/dist/types/surfaces/card/index.d.ts +0 -7
- package/dist/types/surfaces/card/index.d.ts.map +0 -1
- package/dist/types/surfaces/index.d.ts +0 -3
- package/dist/types/surfaces/index.d.ts.map +0 -1
- package/dist/types/surfaces/paper.d.ts +0 -29
- package/dist/types/surfaces/paper.d.ts.map +0 -1
- package/dist/types/types.d.ts +0 -11
- package/dist/types/types.d.ts.map +0 -1
- package/dist/types/utils/findParentWithType.d.ts +0 -4
- package/dist/types/utils/findParentWithType.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -3
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/lit-utils.d.ts +0 -29
- package/dist/types/utils/lit-utils.d.ts.map +0 -1
- package/dist/types/utils/test-utils.d.ts +0 -72
- package/dist/types/utils/test-utils.d.ts.map +0 -1
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import { CSSProperty, JSXProps } from '../types';
|
|
3
|
-
export declare const BADGE: "brz-badge";
|
|
4
|
-
export interface BadgeProps {
|
|
5
|
-
content: string | number;
|
|
6
|
-
limit?: number;
|
|
7
|
-
theme?: Theme;
|
|
8
|
-
}
|
|
9
|
-
declare global {
|
|
10
|
-
namespace JSX {
|
|
11
|
-
interface IntrinsicElements {
|
|
12
|
-
[BADGE]: JSXProps<Badge, BadgeProps>;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
interface HTMLElementTagNameMap {
|
|
16
|
-
[BADGE]: Badge;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
declare module 'csstype' {
|
|
20
|
-
interface Properties {
|
|
21
|
-
'--brz-badge-background-color'?: CSSProperty.Color;
|
|
22
|
-
'--brz-badge-color'?: CSSProperty.Color;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export declare enum BadgeTheme {
|
|
26
|
-
subtle = 0,
|
|
27
|
-
primary = 1,
|
|
28
|
-
important = 2
|
|
29
|
-
}
|
|
30
|
-
type Theme = keyof typeof BadgeTheme;
|
|
31
|
-
export declare const BADGE_CHARACTER_LIMIT_DEFAULT = 5;
|
|
32
|
-
export declare const BADGE_NUMBER_LIMIT_DEFAULT = 99;
|
|
33
|
-
/**
|
|
34
|
-
* Badge component.
|
|
35
|
-
*
|
|
36
|
-
* @tag brz-badge
|
|
37
|
-
*/
|
|
38
|
-
export declare class Badge extends LitElement {
|
|
39
|
-
static styles: import("lit").CSSResult;
|
|
40
|
-
/**
|
|
41
|
-
* Sets the theme
|
|
42
|
-
*/
|
|
43
|
-
theme?: Theme;
|
|
44
|
-
/**
|
|
45
|
-
* Sets the content limit. For numbers it defaults to 99, characters 5.
|
|
46
|
-
*/
|
|
47
|
-
limit: number;
|
|
48
|
-
/**
|
|
49
|
-
* Content you want to show inside the badge.
|
|
50
|
-
*/
|
|
51
|
-
content: string | number;
|
|
52
|
-
private setDefaultLimit;
|
|
53
|
-
protected updated(changedProperties: PropertyValues): void;
|
|
54
|
-
private generateContent;
|
|
55
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
56
|
-
}
|
|
57
|
-
export {};
|
|
58
|
-
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,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EAAE,cAAc;IAYnD,OAAO,CAAC,eAAe;IAUvB,MAAM;CAGP"}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { LitElementWithUtils, PropsWithUtils } from '../mixins/component-utils';
|
|
3
|
-
import { AnchorProps, LinkButtonElementType } from './link';
|
|
4
|
-
import type { JSXProps } from '../types';
|
|
5
|
-
import type { IconKey } from './icon';
|
|
6
|
-
import '../layout/flex';
|
|
7
|
-
import './loading';
|
|
8
|
-
export declare const BUTTON: "brz-button";
|
|
9
|
-
export declare const BUTTON_GROUP: "brz-button-group";
|
|
10
|
-
export interface BaseButtonProps {
|
|
11
|
-
'button-type'?: ButtonType;
|
|
12
|
-
loading?: boolean;
|
|
13
|
-
compact?: boolean;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
'leading-icon'?: IconKey;
|
|
16
|
-
'trailing-icon'?: IconKey;
|
|
17
|
-
'icon-size'?: number;
|
|
18
|
-
}
|
|
19
|
-
export type ButtonProps = PropsWithUtils<AnchorProps & BaseButtonProps>;
|
|
20
|
-
export interface ButtonGroupProps {
|
|
21
|
-
compact?: boolean;
|
|
22
|
-
}
|
|
23
|
-
declare global {
|
|
24
|
-
namespace JSX {
|
|
25
|
-
interface IntrinsicElements {
|
|
26
|
-
[BUTTON]: JSXProps<Button, ButtonProps>;
|
|
27
|
-
[BUTTON_GROUP]: JSXProps<ButtonGroup, ButtonGroupProps>;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
interface HTMLElementTagNameMap {
|
|
31
|
-
[BUTTON]: Button;
|
|
32
|
-
[BUTTON_GROUP]: ButtonGroup;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export declare class ButtonEvent extends CustomEvent<never> {
|
|
36
|
-
constructor(eventType: ButtonEventType);
|
|
37
|
-
}
|
|
38
|
-
type ButtonEventType = 'click';
|
|
39
|
-
export declare const buttonTypes: readonly ["primary", "secondary", "transparent", "transparent-primary"];
|
|
40
|
-
export type ButtonType = typeof buttonTypes[number];
|
|
41
|
-
/**
|
|
42
|
-
* Buttons are used throughout the Skedulo platform to enable
|
|
43
|
-
* functionality such as confirming actions, filtering, opening dialogs, adding or deleting
|
|
44
|
-
* selections, and progressing through processes.
|
|
45
|
-
*
|
|
46
|
-
* @csspart button Apply custom styles to the button element
|
|
47
|
-
* @csspart contents Apply custom styles to the content container
|
|
48
|
-
* @csspart icon-right Apply custom styles to a trailing icon
|
|
49
|
-
*
|
|
50
|
-
* @fires {ButtonEvent} brz-button-click Fired when the button is clicked
|
|
51
|
-
*
|
|
52
|
-
* @tag brz-button
|
|
53
|
-
*/
|
|
54
|
-
export declare class Button extends LitElementWithUtils {
|
|
55
|
-
static styles: import("lit").CSSResultGroup[];
|
|
56
|
-
/**
|
|
57
|
-
* Sets the element type to render with. Defaults to a button tag. Optionally
|
|
58
|
-
* render with an `a` instead where necessary.
|
|
59
|
-
*/
|
|
60
|
-
element: LinkButtonElementType;
|
|
61
|
-
/**
|
|
62
|
-
* The type of button to be displayed.
|
|
63
|
-
*/
|
|
64
|
-
buttonType: ButtonType;
|
|
65
|
-
/**
|
|
66
|
-
* Puts the supplied icon to the left of the text
|
|
67
|
-
*/
|
|
68
|
-
leadingIcon?: IconKey;
|
|
69
|
-
/**
|
|
70
|
-
* Puts the supplied icon to the right of the text
|
|
71
|
-
*/
|
|
72
|
-
trailingIcon?: IconKey;
|
|
73
|
-
/**
|
|
74
|
-
* The size of the icon
|
|
75
|
-
*/
|
|
76
|
-
iconSize?: number | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* Loading button state
|
|
79
|
-
*/
|
|
80
|
-
loading: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Compact sized button, used when space is tight - allowing more room for content.
|
|
83
|
-
*/
|
|
84
|
-
compact: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Disables the button
|
|
87
|
-
*/
|
|
88
|
-
disabled: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Sets a link href when using an anchor element
|
|
91
|
-
*/
|
|
92
|
-
href?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Sets the link target when using an anchor element
|
|
95
|
-
*/
|
|
96
|
-
target?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Sets the link rel when using an anchor element
|
|
99
|
-
*/
|
|
100
|
-
rel?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Reflects an attribute to help in styles when there is only an icon and no
|
|
103
|
-
* label content. HTML whitespace makes the `:empty` pseudo-selector fussy and
|
|
104
|
-
* unreliable.
|
|
105
|
-
*
|
|
106
|
-
* Although this property features in the component's API, it is not intended
|
|
107
|
-
* to be set externally as it is controlled internally on render.
|
|
108
|
-
*/
|
|
109
|
-
protected iconOnly: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* The actual button element within the shadow tree
|
|
112
|
-
*
|
|
113
|
-
* @internal
|
|
114
|
-
*/
|
|
115
|
-
private buttonElement;
|
|
116
|
-
/**
|
|
117
|
-
* @internal
|
|
118
|
-
*/
|
|
119
|
-
private defaultSlot;
|
|
120
|
-
connectedCallback(): void;
|
|
121
|
-
/**
|
|
122
|
-
* Overrides the default focus behaviour on the host element to ensure the
|
|
123
|
-
* underlying `button` element is always focused instead.
|
|
124
|
-
*/
|
|
125
|
-
focus(options?: FocusOptions): void;
|
|
126
|
-
protected emit(eventType: ButtonEventType): void;
|
|
127
|
-
/**
|
|
128
|
-
* @internal
|
|
129
|
-
*/
|
|
130
|
-
private get classes();
|
|
131
|
-
private handleClick;
|
|
132
|
-
/**
|
|
133
|
-
* @internal
|
|
134
|
-
*/
|
|
135
|
-
private get anchorTemplate();
|
|
136
|
-
/**
|
|
137
|
-
* @internal
|
|
138
|
-
*/
|
|
139
|
-
private get buttonTemplate();
|
|
140
|
-
/**
|
|
141
|
-
* @internal
|
|
142
|
-
*/
|
|
143
|
-
private get innerTemplate();
|
|
144
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Button group component
|
|
148
|
-
*
|
|
149
|
-
* @tag brz-button-group
|
|
150
|
-
*/
|
|
151
|
-
export declare class ButtonGroup extends LitElement {
|
|
152
|
-
static styles: import("lit").CSSResult;
|
|
153
|
-
compact: boolean;
|
|
154
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
155
|
-
}
|
|
156
|
-
export {};
|
|
157
|
-
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAA;AAK3C,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/E,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAkB,MAAM,QAAQ,CAAA;AAC3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,gBAAgB,CAAA;AACvB,OAAO,WAAW,CAAA;AAElB,eAAO,MAAM,MAAM,cAA8B,CAAA;AACjD,eAAO,MAAM,YAAY,oBAAoC,CAAA;AAE7D,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,WAAW,GAAG,eAAe,CAAC,CAAA;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,OAAO,CAAC,MAAM,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G;IAEH,OAAO,CAAC,WAAW,CAAS;IAE5B,iBAAiB;IAejB;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY;IAI5B,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe;IAIzC;;OAEG;IACH,OAAO,KAAK,OAAO,GAalB;IAED,OAAO,CAAC,WAAW;IAInB;;OAEG;IACH,OAAO,KAAK,cAAc,GAgBzB;IAED;;OAEG;IACH,OAAO,KAAK,cAAc,GAYzB;IAED;;OAEG;IACH,OAAO,KAAK,aAAa,GA0BxB;IAED,MAAM;CAUP;AAGD;;;;GAIG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,MAAM,0BAiBZ;IAGD,OAAO,UAAQ;IAEf,MAAM;CAKP"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DropdownMenu, DropdownMenuAttributes, MenuItem, MenuItemAttributes } from './menu';
|
|
2
|
-
import type { JSXProps } from '../types';
|
|
3
|
-
export declare const COMBO_BOX: "brz-combo-box";
|
|
4
|
-
export declare const COMBO_BOX_OPTION: "brz-combo-box-option";
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
[COMBO_BOX]: JSXProps<ComboBox, DropdownMenuAttributes>;
|
|
9
|
-
[COMBO_BOX_OPTION]: JSXProps<ComboBoxOption, MenuItemAttributes>;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
interface HTMLElementTagNameMap {
|
|
13
|
-
[COMBO_BOX]: ComboBox;
|
|
14
|
-
[COMBO_BOX_OPTION]: ComboBoxOption;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Combo box component.
|
|
19
|
-
*
|
|
20
|
-
* @deprecated Use DropdownMenu
|
|
21
|
-
* @tag brz-combo-box
|
|
22
|
-
*/
|
|
23
|
-
export declare class ComboBox extends DropdownMenu {
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Combo box option component
|
|
27
|
-
*
|
|
28
|
-
* @deprecated Use DropdownMenu with MenuItem
|
|
29
|
-
* @tag brz-combo-box-option
|
|
30
|
-
*/
|
|
31
|
-
export declare class ComboBoxOption extends MenuItem {
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=combo-box.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combo-box.d.ts","sourceRoot":"","sources":["../../../src/components/combo-box.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,QAAQ,EACR,kBAAkB,EACnB,MAAM,QAAQ,CAAA;AACf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAExC,eAAO,MAAM,SAAS,iBAAiC,CAAA;AACvD,eAAO,MAAM,gBAAgB,wBAAwC,CAAA;AAErE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAA;YACvD,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAA;SACjE;KACF;IAED,UAAU,qBAAqB;QAC7B,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAA;QACrB,CAAC,gBAAgB,CAAC,EAAE,cAAc,CAAA;KACnC;CACF;AAED;;;;;GAKG;AACH,qBACa,QAAS,SAAQ,YAAY;CAAG;AAE7C;;;;;GAKG;AACH,qBACa,cAAe,SAAQ,QAAQ;CAAG"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { JSXProps } from '../types';
|
|
3
|
-
import './modal';
|
|
4
|
-
export declare const CONFIRMATION_DIALOG: "brz-confirmation-dialog";
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
[CONFIRMATION_DIALOG]: JSXProps<ConfirmationDialog, ConfirmationDialogProps>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
interface HTMLElementTagNameMap {
|
|
12
|
-
[CONFIRMATION_DIALOG]: ConfirmationDialog;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export declare class ConfirmationDialogCancel extends CustomEvent<never> {
|
|
16
|
-
constructor();
|
|
17
|
-
}
|
|
18
|
-
export declare class ConfirmationDialogConfirm extends CustomEvent<never> {
|
|
19
|
-
constructor();
|
|
20
|
-
}
|
|
21
|
-
export interface ConfirmationDialogProps {
|
|
22
|
-
open: boolean;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Confirmation component
|
|
26
|
-
*
|
|
27
|
-
* @fires brz-dialog-cancel Fires when the user cancels the action.
|
|
28
|
-
* @fires brz-dialog-confirm Fires when the user confirms the action.
|
|
29
|
-
*
|
|
30
|
-
* @slot body Content to be shown in dialog
|
|
31
|
-
* @slot confirmLabel Text to show in primary button
|
|
32
|
-
*
|
|
33
|
-
* @tag brz-confirmation-dialog
|
|
34
|
-
*/
|
|
35
|
-
export declare class ConfirmationDialog extends LitElement {
|
|
36
|
-
/**
|
|
37
|
-
* Show/hide the dialog
|
|
38
|
-
*/
|
|
39
|
-
open: boolean;
|
|
40
|
-
private handleCancel;
|
|
41
|
-
private handleConfirm;
|
|
42
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=confirmation-dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"confirmation-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/confirmation-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAA;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,OAAO,SAAS,CAAA;AAEhB,eAAO,MAAM,mBAAmB,2BAA2C,CAAA;AAE3E,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,CAAC,mBAAmB,CAAC,EAAE,QAAQ,CAC7B,kBAAkB,EAClB,uBAAuB,CACxB,CAAA;SACF;KACF;IAED,UAAU,qBAAqB;QAC7B,CAAC,mBAAmB,CAAC,EAAE,kBAAkB,CAAA;KAC1C;CACF;AAED,qBAAa,wBAAyB,SAAQ,WAAW,CAAC,KAAK,CAAC;;CAI/D;AACD,qBAAa,yBAA0B,SAAQ,WAAW,CAAC,KAAK,CAAC;;CAIhE;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,OAAO,CAAA;CACd;AAED;;;;;;;;;;GAUG;AACH,qBACa,kBAAmB,SAAQ,UAAU;IAChD;;OAEG;IAEH,IAAI,UAAQ;IAEZ,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,aAAa;IAIrB,MAAM;CAiBP"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
|
-
import { BaseButtonProps, Button } from './button';
|
|
3
|
-
import { IconKey } from './icon';
|
|
4
|
-
import { DropdownMenuSize } from './menu';
|
|
5
|
-
import type { JSXProps } from '../types';
|
|
6
|
-
export declare const DROPDOWN_BUTTON: "brz-dropdown-button";
|
|
7
|
-
export interface DropdownButtonAttributes extends BaseButtonProps {
|
|
8
|
-
'menu-size'?: DropdownMenuSize;
|
|
9
|
-
}
|
|
10
|
-
declare global {
|
|
11
|
-
namespace JSX {
|
|
12
|
-
interface IntrinsicElements {
|
|
13
|
-
[DROPDOWN_BUTTON]: JSXProps<DropdownButton, DropdownButtonAttributes>;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
interface HTMLElementTagNameMap {
|
|
17
|
-
[DROPDOWN_BUTTON]: DropdownButton;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* A convenience component which attaches a DropdownMenu to a Button.
|
|
22
|
-
*
|
|
23
|
-
* @fires {MenuItemSelectEvent} brz-menu-item-select Contains the MenuItem element that was selected
|
|
24
|
-
*
|
|
25
|
-
* @slot default Label text for the Button
|
|
26
|
-
* @slot options A list of MenuItems
|
|
27
|
-
*
|
|
28
|
-
* @tag brz-dropdown-button
|
|
29
|
-
*/
|
|
30
|
-
export declare class DropdownButton extends Button {
|
|
31
|
-
/**
|
|
32
|
-
* A preset menu width. Refer to `DropdownMenu.size`.
|
|
33
|
-
*
|
|
34
|
-
* @see DropdownMenu.size
|
|
35
|
-
*/
|
|
36
|
-
menuSize?: DropdownMenuSize;
|
|
37
|
-
/**
|
|
38
|
-
* The trailing icon of a DropdownButton cannot be changed
|
|
39
|
-
*/
|
|
40
|
-
trailingIcon?: IconKey;
|
|
41
|
-
protected updated(changedProperties: PropertyValues): undefined;
|
|
42
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=dropdown-button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-button.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAG1C,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAExC,eAAO,MAAM,eAAe,uBAAuC,CAAA;AAEnE,MAAM,WAAW,wBAAyB,SAAQ,eAAe;IAC/D,WAAW,CAAC,EAAE,gBAAgB,CAAA;CAC/B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,CAAC,eAAe,CAAC,EAAE,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAA;SACtE;KACF;IAED,UAAU,qBAAqB;QAC7B,CAAC,eAAe,CAAC,EAAE,cAAc,CAAA;KAClC;CACF;AAED;;;;;;;;;GASG;AACH,qBACa,cAAe,SAAQ,MAAM;IACxC;;;;OAIG;IAEH,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAgB;IAEtC,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc;IAqBnD,MAAM;CAQP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-theme.d.ts","sourceRoot":"","sources":["../../../../src/components/form-elements/code-theme.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB,yBAgFlC,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './input-base';
|
|
2
|
-
export * from './input-checkbox';
|
|
3
|
-
export * from './input-text';
|
|
4
|
-
export * from './input-textarea';
|
|
5
|
-
export * from './input-number';
|
|
6
|
-
export * from './input-error';
|
|
7
|
-
export * from './input-radio';
|
|
8
|
-
export * from './input-code';
|
|
9
|
-
export * from './input-select';
|
|
10
|
-
export * from './input-select-base';
|
|
11
|
-
export * from './input-multiselect';
|
|
12
|
-
export * from './input-time';
|
|
13
|
-
export * from './labeled-input';
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form-elements/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
export interface BaseInputChangeEventPayload<ValueType = string> {
|
|
3
|
-
value?: ValueType;
|
|
4
|
-
}
|
|
5
|
-
export type InputChangeEvent<T> = CustomEvent<T>;
|
|
6
|
-
export interface IInputBaseAttributes<ValueType = string> {
|
|
7
|
-
value?: ValueType;
|
|
8
|
-
name: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
invalid?: boolean;
|
|
12
|
-
id?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Base class for input elements. Creates a proxy outside of the shadow dom
|
|
16
|
-
* which holds the input value to enable use of `<form></form>` elements.
|
|
17
|
-
*
|
|
18
|
-
* @fires {InputChangeEvent} brz-input-change Fires when the input value has changed, and carries the new value.
|
|
19
|
-
*/
|
|
20
|
-
export declare abstract class InputBase<ValueType = string> extends LitElement {
|
|
21
|
-
/** @internal */
|
|
22
|
-
static shadowRootOptions: ShadowRootInit;
|
|
23
|
-
/**
|
|
24
|
-
* Disables the input field
|
|
25
|
-
*/
|
|
26
|
-
disabled: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Indicates that the input requires a value
|
|
29
|
-
*/
|
|
30
|
-
required: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Makes the input invalid
|
|
33
|
-
*/
|
|
34
|
-
invalid: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Sets the name attribute
|
|
37
|
-
*/
|
|
38
|
-
name: string;
|
|
39
|
-
/**
|
|
40
|
-
* Sets the id of the input
|
|
41
|
-
*/
|
|
42
|
-
id: string;
|
|
43
|
-
/**
|
|
44
|
-
* Sets the value type
|
|
45
|
-
*/
|
|
46
|
-
value?: ValueType;
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
50
|
-
proxyInput?: HTMLInputElement;
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
useProxy: boolean;
|
|
55
|
-
connectedCallback(): void;
|
|
56
|
-
onInput(e: {
|
|
57
|
-
target: {
|
|
58
|
-
value: ValueType;
|
|
59
|
-
};
|
|
60
|
-
}): void;
|
|
61
|
-
/**
|
|
62
|
-
* Dispatches a change event
|
|
63
|
-
*/
|
|
64
|
-
dispatchChange(): void;
|
|
65
|
-
/**
|
|
66
|
-
* Creates a proxy input element, used for easily accessing the field value outside of the shadow dom
|
|
67
|
-
*/
|
|
68
|
-
createProxyInput(): void;
|
|
69
|
-
/**
|
|
70
|
-
* Updates the proxy input with a new value or name. This should always be called as part of
|
|
71
|
-
* the main render cycle to ensure that it always has the most up to date values.
|
|
72
|
-
*/
|
|
73
|
-
updateProxyInput(): void;
|
|
74
|
-
updated(changedProperties: PropertyValues): void;
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=input-base.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-base.d.ts","sourceRoot":"","sources":["../../../../src/components/form-elements/input-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAGhD,MAAM,WAAW,2BAA2B,CAAC,SAAS,GAAG,MAAM;IAC7D,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAA;AAEhD,MAAM,WAAW,oBAAoB,CAAC,SAAS,GAAG,MAAM;IACtD,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ;AAED;;;;;GAKG;AACH,8BAAsB,SAAS,CAAC,SAAS,GAAG,MAAM,CAAE,SAAQ,UAAU;IACpE,gBAAgB;IAChB,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAGvC;IAED;;OAEG;IAEH,QAAQ,UAAQ;IAEhB;;OAEG;IAEH,QAAQ,UAAQ;IAEhB;;OAEG;IAEH,OAAO,UAAQ;IAEf;;OAEG;IAEH,IAAI,SAAK;IAET;;OAEG;IAEH,EAAE,SAAU;IAEZ;;OAEG;IAEH,KAAK,CAAC,EAAE,SAAS,CAAA;IAEjB;;OAEG;IAEH,UAAU,CAAC,EAAE,gBAAgB,CAAA;IAE7B;;OAEG;IAEH,QAAQ,UAAQ;IAEhB,iBAAiB;IAKjB,OAAO,CAAC,CAAC,EAAE;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,SAAS,CAAA;SAAE,CAAA;KAAE;IAK3C;;OAEG;IACH,cAAc;IASd;;OAEG;IACH,gBAAgB;IAQhB;;;OAGG;IACH,gBAAgB;IAUhB,OAAO,CAAC,iBAAiB,EAAE,cAAc;CAI1C"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { TemplateResult } from 'lit';
|
|
2
|
-
import { JSXProps } from '../../types';
|
|
3
|
-
import { IInputBaseAttributes, InputBase } from './input-base';
|
|
4
|
-
import '../icon';
|
|
5
|
-
export declare const INPUT_CHECKBOX: "brz-input-checkbox";
|
|
6
|
-
export type CheckboxChangeEvent = CustomEvent<CheckboxChangeEventPayload>;
|
|
7
|
-
declare global {
|
|
8
|
-
namespace JSX {
|
|
9
|
-
interface IntrinsicElements {
|
|
10
|
-
[INPUT_CHECKBOX]: JSXProps<InputCheckbox, IInputCheckboxAttributes>;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
interface HTMLElementTagNameMap {
|
|
14
|
-
[INPUT_CHECKBOX]: InputCheckbox;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export interface CheckboxChangeEventPayload {
|
|
18
|
-
checked: boolean;
|
|
19
|
-
indeterminate: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface IInputCheckboxAttributes extends IInputBaseAttributes {
|
|
22
|
-
checked?: boolean;
|
|
23
|
-
indeterminate?: boolean;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Input checkbox component.
|
|
27
|
-
*
|
|
28
|
-
* @tag brz-input-checkbox
|
|
29
|
-
*/
|
|
30
|
-
export declare class InputCheckbox extends InputBase<string> {
|
|
31
|
-
static styles: import("lit").CSSResult[];
|
|
32
|
-
/**
|
|
33
|
-
* Puts the checkbox into checked state
|
|
34
|
-
*/
|
|
35
|
-
checked: boolean;
|
|
36
|
-
disabled: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Set the value to be associated with the checkbox, if needed. Native
|
|
39
|
-
* checkbox input values always default to "on".
|
|
40
|
-
*/
|
|
41
|
-
value: string;
|
|
42
|
-
/**
|
|
43
|
-
* Puts the checkbox into indeterminate state
|
|
44
|
-
*/
|
|
45
|
-
indeterminate: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
private checkboxState;
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
|
-
private inputElement;
|
|
54
|
-
updateProxyInput(): void;
|
|
55
|
-
handleKeyPress(e: KeyboardEvent): void;
|
|
56
|
-
onInput(): void;
|
|
57
|
-
getIcon(): TemplateResult | undefined;
|
|
58
|
-
firstUpdated(): void;
|
|
59
|
-
render(): TemplateResult<1>;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=input-checkbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/form-elements/input-checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,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
|
2
|
-
import Code from 'codemirror';
|
|
3
|
-
import { IInputTextBaseAttributes, InputTextBase } from './input-text-base';
|
|
4
|
-
import { InputSizes } from './labeled-input';
|
|
5
|
-
import type { JSXProps } from '../../types';
|
|
6
|
-
import 'codemirror/addon/mode/overlay';
|
|
7
|
-
import 'codemirror/mode/jinja2/jinja2';
|
|
8
|
-
import 'codemirror/mode/xml/xml';
|
|
9
|
-
import 'codemirror/mode/javascript/javascript';
|
|
10
|
-
import 'codemirror/mode/htmlmixed/htmlmixed';
|
|
11
|
-
import 'codemirror/mode/solr/solr';
|
|
12
|
-
import 'codemirror/addon/display/placeholder';
|
|
13
|
-
export declare const INPUT_CODE: "brz-input-code";
|
|
14
|
-
declare global {
|
|
15
|
-
namespace JSX {
|
|
16
|
-
interface IntrinsicElements {
|
|
17
|
-
[INPUT_CODE]: JSXProps<InputCode, IInputCodeAttributes>;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
interface HTMLElementTagNameMap {
|
|
21
|
-
[INPUT_CODE]: InputCode;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export interface IInputCodeAttributes extends IInputTextBaseAttributes<string> {
|
|
25
|
-
value: string;
|
|
26
|
-
height?: number;
|
|
27
|
-
mode?: Syntax;
|
|
28
|
-
'hide-line-numbers'?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export declare const syntaxes: readonly ["json", "nunjucks", "javascript", "solr"];
|
|
31
|
-
export type Syntax = typeof syntaxes[number];
|
|
32
|
-
/**
|
|
33
|
-
* Input code component.
|
|
34
|
-
*
|
|
35
|
-
* @slot label Text for label slot
|
|
36
|
-
* @slot error Text for error slot
|
|
37
|
-
*
|
|
38
|
-
* @tag brz-input-code
|
|
39
|
-
*/
|
|
40
|
-
export declare class InputCode extends InputTextBase<string> {
|
|
41
|
-
static styles: import("lit").CSSResult[];
|
|
42
|
-
/**
|
|
43
|
-
* Sets the syntax color mode
|
|
44
|
-
*/
|
|
45
|
-
mode: Syntax;
|
|
46
|
-
size: InputSizes;
|
|
47
|
-
/**
|
|
48
|
-
* Sets the height
|
|
49
|
-
*/
|
|
50
|
-
height: number;
|
|
51
|
-
/**
|
|
52
|
-
* Toggles the line numbers
|
|
53
|
-
*/
|
|
54
|
-
hideLineNumbers: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
editor?: Code.EditorFromTextArea;
|
|
59
|
-
changeHandler(editor: Code.Editor): void;
|
|
60
|
-
/**
|
|
61
|
-
* Ensures the editor content is always up to date with the supplied props
|
|
62
|
-
*/
|
|
63
|
-
updated(changedProperties: PropertyValues): void;
|
|
64
|
-
/**
|
|
65
|
-
* Get the internal editor value from codemirror
|
|
66
|
-
* @internal
|
|
67
|
-
*/
|
|
68
|
-
get editorValue(): string;
|
|
69
|
-
/**
|
|
70
|
-
* Set the codemirror internal editor value value
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
set editorValue(value: string);
|
|
74
|
-
firstUpdated(): void;
|
|
75
|
-
disconnectedCallback(): void;
|
|
76
|
-
renderInput(): import("lit-html").TemplateResult<1>;
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=input-code.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-code.d.ts","sourceRoot":"","sources":["../../../../src/components/form-elements/input-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,cAAc,EAAE,MAAM,KAAK,CAAA;AAC1D,OAAO,IAAmC,MAAM,YAAY,CAAA;AAM5D,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,+BAA+B,CAAA;AACtC,OAAO,+BAA+B,CAAA;AACtC,OAAO,yBAAyB,CAAA;AAChC,OAAO,uCAAuC,CA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CAOZ"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import type { JSXProps } from '../../types';
|
|
3
|
-
export declare const INPUT_ERROR: "brz-input-error";
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
[INPUT_ERROR]: JSXProps<InputError>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
interface HTMLElementTagNameMap {
|
|
11
|
-
[INPUT_ERROR]: InputError;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Input error component.
|
|
16
|
-
*
|
|
17
|
-
* @tag brz-input-error
|
|
18
|
-
*/
|
|
19
|
-
export declare class InputError extends LitElement {
|
|
20
|
-
static styles: import("lit").CSSResult;
|
|
21
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=input-error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-error.d.ts","sourceRoot":"","sources":["../../../../src/components/form-elements/input-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAA;AAE3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAE3C,eAAO,MAAM,WAAW,mBAAmC,CAAA;AAE3D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAA;SACpC;KACF;IAED,UAAU,qBAAqB;QAC7B,CAAC,WAAW,CAAC,EAAE,UAAU,CAAA;KAC1B;CACF;AAED;;;;GAIG;AACH,qBACa,UAAW,SAAQ,UAAU;IACxC,MAAM,CAAC,MAAM,0BAKZ;IAED,MAAM;CAGP"}
|