@progressive-development/pd-forms 0.9.2 → 1.0.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/LICENSE +21 -2
- package/README.md +56 -62
- package/dist/base/pd-base-input-element.d.ts +10 -10
- package/dist/base/pd-base-input-element.d.ts.map +1 -1
- package/dist/base/pd-base-input-element.js +8 -1
- package/dist/base/pd-base-ui-input.d.ts +41 -16
- package/dist/base/pd-base-ui-input.d.ts.map +1 -1
- package/dist/base/pd-base-ui-input.js +25 -6
- package/dist/base/pd-base-ui.js +0 -18
- package/dist/generated/locales/be.d.ts +3 -0
- package/dist/generated/locales/be.d.ts.map +1 -1
- package/dist/generated/locales/de.d.ts +3 -0
- package/dist/generated/locales/de.d.ts.map +1 -1
- package/dist/generated/locales/en.d.ts +3 -0
- package/dist/generated/locales/en.d.ts.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/locales/be.js +4 -1
- package/dist/locales/de.js +4 -1
- package/dist/locales/en.js +4 -1
- package/dist/pd-button/PdButton.d.ts +171 -37
- package/dist/pd-button/PdButton.d.ts.map +1 -1
- package/dist/pd-button/PdButton.js +502 -71
- package/dist/pd-button/pd-button.stories.d.ts +82 -10
- package/dist/pd-button/pd-button.stories.d.ts.map +1 -1
- package/dist/pd-button-group/PdButtonGroup.d.ts +25 -0
- package/dist/pd-button-group/PdButtonGroup.d.ts.map +1 -1
- package/dist/pd-button-group/PdButtonGroup.js +52 -27
- package/dist/pd-button-group/pd-button-group.stories.d.ts +42 -17
- package/dist/pd-button-group/pd-button-group.stories.d.ts.map +1 -1
- package/dist/pd-button-select-group/PdButtonSelectGroup.d.ts +17 -3
- package/dist/pd-button-select-group/PdButtonSelectGroup.d.ts.map +1 -1
- package/dist/pd-button-select-group/PdButtonSelectGroup.js +23 -19
- package/dist/pd-button-select-group/pd-button-select-group.stories.d.ts +43 -18
- package/dist/pd-button-select-group/pd-button-select-group.stories.d.ts.map +1 -1
- package/dist/pd-checkbox/PdCheckbox.d.ts +23 -2
- package/dist/pd-checkbox/PdCheckbox.d.ts.map +1 -1
- package/dist/pd-checkbox/PdCheckbox.js +85 -21
- package/dist/pd-checkbox/pd-checkbox.stories.d.ts +43 -27
- package/dist/pd-checkbox/pd-checkbox.stories.d.ts.map +1 -1
- package/dist/pd-form-container/PdFormContainer.d.ts +30 -9
- package/dist/pd-form-container/PdFormContainer.d.ts.map +1 -1
- package/dist/pd-form-container/PdFormContainer.js +59 -8
- package/dist/pd-form-container/pd-form-container.stories.d.ts +49 -0
- package/dist/pd-form-container/pd-form-container.stories.d.ts.map +1 -0
- package/dist/pd-form-field/PdFormField.d.ts +35 -0
- package/dist/pd-form-field/PdFormField.d.ts.map +1 -0
- package/dist/pd-form-field/PdFormField.js +38 -0
- package/dist/pd-form-field/pd-form-field.d.ts +3 -0
- package/dist/pd-form-field/pd-form-field.d.ts.map +1 -0
- package/dist/pd-form-field/pd-form-field.stories.d.ts +40 -0
- package/dist/pd-form-field/pd-form-field.stories.d.ts.map +1 -0
- package/dist/pd-form-field.d.ts +2 -0
- package/dist/pd-form-field.js +8 -0
- package/dist/pd-form-fieldset/PdFormFieldset.d.ts +144 -0
- package/dist/pd-form-fieldset/PdFormFieldset.d.ts.map +1 -0
- package/dist/pd-form-fieldset/PdFormFieldset.js +364 -0
- package/dist/pd-form-fieldset/index.d.ts +2 -0
- package/dist/pd-form-fieldset/index.d.ts.map +1 -0
- package/dist/pd-form-fieldset/pd-form-fieldset.d.ts +3 -0
- package/dist/pd-form-fieldset/pd-form-fieldset.d.ts.map +1 -0
- package/dist/pd-form-fieldset/pd-form-fieldset.js +8 -0
- package/dist/pd-form-fieldset/pd-form-fieldset.stories.d.ts +38 -0
- package/dist/pd-form-fieldset/pd-form-fieldset.stories.d.ts.map +1 -0
- package/dist/pd-form-row/PdFormRow.d.ts +35 -5
- package/dist/pd-form-row/PdFormRow.d.ts.map +1 -1
- package/dist/pd-form-row/PdFormRow.js +135 -69
- package/dist/pd-form-row/pd-form-row.stories.d.ts +41 -25
- package/dist/pd-form-row/pd-form-row.stories.d.ts.map +1 -1
- package/dist/pd-generic-form/PdGenericForm.d.ts +50 -0
- package/dist/pd-generic-form/PdGenericForm.d.ts.map +1 -0
- package/dist/pd-generic-form/PdGenericForm.js +334 -0
- package/dist/pd-generic-form/pd-generic-form.d.ts +3 -0
- package/dist/pd-generic-form/pd-generic-form.d.ts.map +1 -0
- package/dist/pd-generic-form/pd-generic-form.stories.d.ts +35 -0
- package/dist/pd-generic-form/pd-generic-form.stories.d.ts.map +1 -0
- package/dist/pd-generic-form/pd-generic-form.styles.d.ts +2 -0
- package/dist/pd-generic-form/pd-generic-form.styles.d.ts.map +1 -0
- package/dist/pd-generic-form/pd-generic-form.styles.js +110 -0
- package/dist/pd-generic-form/pd-generic-form.test.d.ts +1 -0
- package/dist/pd-generic-form/pd-generic-form.test.d.ts.map +1 -0
- package/dist/pd-generic-form.d.ts +2 -0
- package/dist/pd-generic-form.js +8 -0
- package/dist/pd-hover-box/PdHoverBox.d.ts +61 -11
- package/dist/pd-hover-box/PdHoverBox.d.ts.map +1 -1
- package/dist/pd-hover-box/PdHoverBox.js +130 -28
- package/dist/pd-hover-box/pd-hover-box.stories.d.ts +28 -5
- package/dist/pd-hover-box/pd-hover-box.stories.d.ts.map +1 -1
- package/dist/pd-input/PdComboboxInput.d.ts +20 -0
- package/dist/pd-input/PdComboboxInput.d.ts.map +1 -0
- package/dist/pd-input/PdComboboxInput.js +67 -0
- package/dist/pd-input/PdInput.d.ts +33 -15
- package/dist/pd-input/PdInput.d.ts.map +1 -1
- package/dist/pd-input/PdInput.js +49 -21
- package/dist/pd-input/pd-input.stories.d.ts +71 -35
- package/dist/pd-input/pd-input.stories.d.ts.map +1 -1
- package/dist/pd-input-area/PdInputArea.d.ts +19 -6
- package/dist/pd-input-area/PdInputArea.d.ts.map +1 -1
- package/dist/pd-input-area/PdInputArea.js +17 -15
- package/dist/pd-input-area/pd-input-area.stories.d.ts +65 -52
- package/dist/pd-input-area/pd-input-area.stories.d.ts.map +1 -1
- package/dist/pd-input-file/PdInputFile.d.ts +24 -0
- package/dist/pd-input-file/PdInputFile.d.ts.map +1 -1
- package/dist/pd-input-file/PdInputFile.js +53 -22
- package/dist/pd-input-file/pd-input-file.stories.d.ts +51 -47
- package/dist/pd-input-file/pd-input-file.stories.d.ts.map +1 -1
- package/dist/pd-input-time/PdInputTime.d.ts +21 -0
- package/dist/pd-input-time/PdInputTime.d.ts.map +1 -1
- package/dist/pd-input-time/PdInputTime.js +48 -22
- package/dist/pd-input-time/pd-input-time.stories.d.ts +94 -0
- package/dist/pd-input-time/pd-input-time.stories.d.ts.map +1 -0
- package/dist/pd-panel-button/PdPanelButton.d.ts +50 -34
- package/dist/pd-panel-button/PdPanelButton.d.ts.map +1 -1
- package/dist/pd-panel-button/PdPanelButton.js +149 -262
- package/dist/pd-panel-button/pd-panel-button.stories.d.ts +55 -25
- package/dist/pd-panel-button/pd-panel-button.stories.d.ts.map +1 -1
- package/dist/pd-radio-group/PdRadioGroup.d.ts +14 -0
- package/dist/pd-radio-group/PdRadioGroup.d.ts.map +1 -1
- package/dist/pd-radio-group/PdRadioGroup.js +48 -11
- package/dist/pd-radio-group/pd-radio-group.stories.d.ts +37 -7
- package/dist/pd-radio-group/pd-radio-group.stories.d.ts.map +1 -1
- package/dist/pd-range/PdRange.d.ts +22 -2
- package/dist/pd-range/PdRange.d.ts.map +1 -1
- package/dist/pd-range/PdRange.js +54 -43
- package/dist/pd-range/pd-range.stories.d.ts +49 -7
- package/dist/pd-range/pd-range.stories.d.ts.map +1 -1
- package/dist/pd-select/PdSelect.d.ts +16 -4
- package/dist/pd-select/PdSelect.d.ts.map +1 -1
- package/dist/pd-select/PdSelect.js +23 -21
- package/dist/pd-select/pd-select.stories.d.ts +56 -35
- package/dist/pd-select/pd-select.stories.d.ts.map +1 -1
- package/dist/pd-suggestion-box/PdSuggestionBox.d.ts +74 -0
- package/dist/pd-suggestion-box/PdSuggestionBox.d.ts.map +1 -0
- package/dist/pd-suggestion-box/PdSuggestionBox.js +277 -0
- package/dist/pd-suggestion-box/PdSuggestionPanel.d.ts +42 -0
- package/dist/pd-suggestion-box/PdSuggestionPanel.d.ts.map +1 -0
- package/dist/pd-suggestion-box/PdSuggestionPanel.js +227 -0
- package/dist/pd-suggestion-box/pd-suggestion-box.d.ts +3 -0
- package/dist/pd-suggestion-box/pd-suggestion-box.d.ts.map +1 -0
- package/dist/pd-suggestion-box/pd-suggestion-box.stories.d.ts +79 -0
- package/dist/pd-suggestion-box/pd-suggestion-box.stories.d.ts.map +1 -0
- package/dist/pd-suggestion-box.d.ts +2 -0
- package/dist/pd-suggestion-box.js +8 -0
- package/dist/pd-utils/dist/position-helper.js +35 -0
- package/dist/stories/pd-forms-overview.stories.d.ts +48 -0
- package/dist/stories/pd-forms-overview.stories.d.ts.map +1 -0
- package/dist/stories/story-helpers.d.ts +10 -0
- package/dist/stories/story-helpers.d.ts.map +1 -0
- package/dist/styles/shared-input-field-styles.d.ts.map +1 -1
- package/dist/styles/shared-input-field-styles.js +13 -19
- package/dist/styles/shared-input-styles.d.ts.map +1 -1
- package/dist/styles/shared-input-styles.js +18 -14
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -4
- package/dist/pd-form-container/form-container.stories.d.ts +0 -28
- package/dist/pd-form-container/form-container.stories.d.ts.map +0 -1
- package/dist/pd-form-container/form-container2.stories.d.ts +0 -8
- package/dist/pd-form-container/form-container2.stories.d.ts.map +0 -1
- package/dist/pd-form-container/form-container3.stories.d.ts +0 -11
- package/dist/pd-form-container/form-container3.stories.d.ts.map +0 -1
- package/dist/stories/01_index.stories.d.ts +0 -58
- package/dist/stories/01_index.stories.d.ts.map +0 -1
|
@@ -1,57 +1,191 @@
|
|
|
1
|
-
import { CSSResultGroup } from 'lit';
|
|
1
|
+
import { CSSResultGroup, nothing, TemplateResult } from 'lit';
|
|
2
2
|
import { PdBaseUI } from '../base/pd-base-ui';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Button size presets for the responsive scale system.
|
|
5
|
+
* Each size maps to a scale factor that proportionally adjusts all dimensions.
|
|
6
|
+
*/
|
|
7
|
+
export type PdButtonSize = "sm" | "md" | "lg" | "xl";
|
|
8
|
+
/**
|
|
9
|
+
* Button type attribute for native button behavior.
|
|
10
|
+
*/
|
|
11
|
+
export type PdButtonType = "button" | "submit" | "reset";
|
|
12
|
+
/**
|
|
13
|
+
* A simple, accessible button component for form actions and general UI interactions.
|
|
5
14
|
*
|
|
6
15
|
* @tagname pd-button
|
|
7
|
-
*
|
|
16
|
+
* @summary Button for form actions with icon support, loading state, and responsive scaling.
|
|
8
17
|
*
|
|
9
|
-
* @
|
|
10
|
-
* The `pd-button` component provides a styled button element with support for
|
|
11
|
-
* primary and gradient styles, disabled state, and customizable appearance via CSS custom properties.
|
|
18
|
+
* @event button-clicked - Fired when clicked or activated via keyboard. Emits `value` as detail.
|
|
12
19
|
*
|
|
13
|
-
* @
|
|
14
|
-
* @
|
|
15
|
-
* @property {boolean} disabled - Disables the button and prevents interaction.
|
|
16
|
-
* @property {string} text - The visible button label. Default is `"Ok"`.
|
|
17
|
-
* @property {string} value - A custom value that is emitted as part of the `button-clicked` event.
|
|
20
|
+
* @slot prefix - Content before the button text.
|
|
21
|
+
* @slot suffix - Content after the button text.
|
|
18
22
|
*
|
|
19
|
-
* @
|
|
23
|
+
* @csspart button - The native button element.
|
|
24
|
+
* @csspart label - The text label span.
|
|
25
|
+
* @csspart loader - The loading spinner (when loading=true).
|
|
26
|
+
* @csspart icon - The pd-icon element (when icon is set).
|
|
20
27
|
*
|
|
21
|
-
* @cssprop --pd-button-
|
|
22
|
-
* @cssprop --pd-button-
|
|
23
|
-
* @cssprop --pd-button-
|
|
24
|
-
* @cssprop --pd-button-
|
|
25
|
-
* @cssprop --pd-button-
|
|
26
|
-
* @cssprop --pd-button-
|
|
27
|
-
* @cssprop --pd-button-
|
|
28
|
-
* @cssprop --pd-button-
|
|
29
|
-
* @cssprop --pd-button-
|
|
30
|
-
* @cssprop --pd-button-
|
|
31
|
-
* @cssprop --pd-button-
|
|
32
|
-
* @cssprop --pd-button-
|
|
33
|
-
* @cssprop --pd-button-
|
|
34
|
-
* @cssprop --pd-button-
|
|
35
|
-
* @cssprop --pd-button-bg-col
|
|
36
|
-
* @cssprop --pd-button-font-col
|
|
37
|
-
* @cssprop --pd-button-
|
|
38
|
-
* @cssprop --pd-button-
|
|
39
|
-
* @cssprop --pd-button-font-
|
|
40
|
-
* @cssprop --pd-
|
|
41
|
-
*
|
|
42
|
-
* @
|
|
28
|
+
* @cssprop --pd-button-scale - Scale factor for sizing. Default: `1`.
|
|
29
|
+
* @cssprop --pd-button-min-width - Minimum width. Default: `auto`.
|
|
30
|
+
* @cssprop --pd-button-width - Button width. Default: `auto`.
|
|
31
|
+
* @cssprop --pd-button-height - Button height. Default: `calc(2.5rem * scale)`.
|
|
32
|
+
* @cssprop --pd-button-min-height - Button min height. Default: 44px (god practice as min for for touch).
|
|
33
|
+
* @cssprop --pd-button-padding - Horizontal padding. Default: `calc(1rem * scale)`.
|
|
34
|
+
* @cssprop --pd-button-font-size - Font size. Default: `calc(1rem * scale)`.
|
|
35
|
+
* @cssprop --pd-button-border-radius - Border radius. Default: `var(--pd-radius-md)`.
|
|
36
|
+
* @cssprop --pd-button-gap - Gap between elements. Default: `calc(0.5rem * scale)`.
|
|
37
|
+
* @cssprop --pd-button-bg-col - Background color.
|
|
38
|
+
* @cssprop --pd-button-font-col - Text color.
|
|
39
|
+
* @cssprop --pd-button-border-col - Border color.
|
|
40
|
+
* @cssprop --pd-button-bg-col-hover - Hover background.
|
|
41
|
+
* @cssprop --pd-button-font-col-hover - Hover text color.
|
|
42
|
+
* @cssprop --pd-button-primary-bg-col - Primary background.
|
|
43
|
+
* @cssprop --pd-button-primary-font-col - Primary text color.
|
|
44
|
+
* @cssprop --pd-button-primary-bg-col-hover - Primary hover background.
|
|
45
|
+
* @cssprop --pd-button-bg-col-disabled - Disabled background.
|
|
46
|
+
* @cssprop --pd-button-font-col-disabled - Disabled text color.
|
|
47
|
+
* @cssprop --pd-button-selected-bg-col - Selected background.
|
|
48
|
+
* @cssprop --pd-button-selected-font-col - Selected text color.
|
|
49
|
+
* @cssprop --pd-button-selected-shadow - Selected shadow.
|
|
50
|
+
* @cssprop --pd-button-gradient-start - Gradient start color.
|
|
51
|
+
* @cssprop --pd-button-gradient-end - Gradient end color.
|
|
52
|
+
* @cssprop --pd-button-icon-size - Icon size.
|
|
53
|
+
* @cssprop --pd-button-white-space - Text wrapping behavior. Default: `nowrap`.
|
|
54
|
+
* @cssprop --pd-button-font-weight - Font weight for button text. Default: `600`.
|
|
43
55
|
*/
|
|
44
56
|
export declare class PdButton extends PdBaseUI {
|
|
45
57
|
/**
|
|
46
|
-
*
|
|
58
|
+
* Displays the button with primary/highlighted styling.
|
|
59
|
+
* Use for the main action in a form or dialog.
|
|
47
60
|
*/
|
|
48
61
|
primary: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Applies a linear gradient background to the button.
|
|
64
|
+
* Customize gradient colors via `--pd-button-gradient-start` and `--pd-button-gradient-end`.
|
|
65
|
+
*/
|
|
49
66
|
gradient: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Indicates toggle/selected state for toggle buttons.
|
|
69
|
+
* When true, the button displays with selected styling and sets `aria-pressed="true"`.
|
|
70
|
+
* Use for toggle buttons, filter buttons, or any button that maintains a selected state.
|
|
71
|
+
*/
|
|
72
|
+
selected: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Disables the button and prevents all interaction.
|
|
75
|
+
* Disabled buttons are removed from tab order.
|
|
76
|
+
*/
|
|
50
77
|
disabled: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Shows a loading spinner and prevents interaction.
|
|
80
|
+
* Use when an async operation is in progress.
|
|
81
|
+
*/
|
|
82
|
+
loading: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Makes the button expand to fill its container width.
|
|
85
|
+
*/
|
|
86
|
+
fullWidth: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* The visible button label text.
|
|
89
|
+
* Set to empty string for icon-only buttons.
|
|
90
|
+
* @default "Ok"
|
|
91
|
+
*/
|
|
51
92
|
text: string;
|
|
93
|
+
/**
|
|
94
|
+
* Icon name from the pd-icon library.
|
|
95
|
+
* When set, displays the icon before the text (or after if iconPosition="end").
|
|
96
|
+
* For icon-only buttons, set text="" and provide just the icon.
|
|
97
|
+
*/
|
|
98
|
+
icon?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Accessible label for icon-only buttons.
|
|
101
|
+
* When set, this value is used as aria-label instead of the icon name.
|
|
102
|
+
* Required for accessible icon-only buttons (e.g., "Close", "Edit", "Delete").
|
|
103
|
+
*/
|
|
104
|
+
iconLabel?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Position of the icon relative to the text.
|
|
107
|
+
* @default "start"
|
|
108
|
+
*/
|
|
109
|
+
iconPosition: "start" | "end";
|
|
110
|
+
/**
|
|
111
|
+
* A custom value emitted as `event.detail` with the `button-clicked` event.
|
|
112
|
+
*/
|
|
52
113
|
value?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Predefined size preset for responsive scaling.
|
|
116
|
+
* Values: "sm", "md", "lg", "xl"
|
|
117
|
+
*/
|
|
118
|
+
size: PdButtonSize;
|
|
119
|
+
/**
|
|
120
|
+
* Native button type attribute.
|
|
121
|
+
* @default "button"
|
|
122
|
+
*/
|
|
123
|
+
type: PdButtonType;
|
|
124
|
+
/**
|
|
125
|
+
* Grid span value for use within pd-form-row.
|
|
126
|
+
* Supports semantic values: "quarter", "third", "half", "two-thirds", "three-quarters", "full"
|
|
127
|
+
* or numeric values: "1" through "12".
|
|
128
|
+
*/
|
|
129
|
+
span?: string;
|
|
130
|
+
/** Tracks active/pressed state for visual feedback.
|
|
131
|
+
* @ignore */
|
|
132
|
+
private _isPressed;
|
|
53
133
|
static styles: CSSResultGroup;
|
|
54
|
-
render():
|
|
55
|
-
|
|
134
|
+
render(): TemplateResult<1>;
|
|
135
|
+
/**
|
|
136
|
+
* Override point for aria-expanded attribute on the button.
|
|
137
|
+
* Used by PdPanelButton to indicate panel open state.
|
|
138
|
+
*/
|
|
139
|
+
protected get buttonAriaExpanded(): "true" | "false" | "undefined";
|
|
140
|
+
/**
|
|
141
|
+
* Override point for aria-haspopup attribute on the button.
|
|
142
|
+
* Used by PdPanelButton to indicate dropdown behavior.
|
|
143
|
+
*/
|
|
144
|
+
protected get buttonAriaHasPopup(): "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
|
145
|
+
/**
|
|
146
|
+
* Override point for aria-controls attribute on the button.
|
|
147
|
+
* Used by PdPanelButton to link button with panel.
|
|
148
|
+
*/
|
|
149
|
+
protected get buttonAriaControls(): string | typeof nothing;
|
|
150
|
+
/**
|
|
151
|
+
* Override point for suffix content inside the button.
|
|
152
|
+
* Used by PdPanelButton for the toggle arrow.
|
|
153
|
+
*/
|
|
154
|
+
protected renderSuffixContent(): TemplateResult | typeof nothing;
|
|
155
|
+
/**
|
|
156
|
+
* Override point for content rendered after the button element.
|
|
157
|
+
* Used by PdPanelButton for the dropdown panel.
|
|
158
|
+
*/
|
|
159
|
+
protected renderAfterButton(): TemplateResult | typeof nothing;
|
|
160
|
+
/**
|
|
161
|
+
* Renders the icon element. Protected for subclass access.
|
|
162
|
+
*/
|
|
163
|
+
protected renderIcon(): TemplateResult | typeof nothing;
|
|
164
|
+
/**
|
|
165
|
+
* Handles click events on the button.
|
|
166
|
+
* Protected so subclasses like PdPanelButton can override.
|
|
167
|
+
*/
|
|
168
|
+
protected handleClick(): void;
|
|
169
|
+
/**
|
|
170
|
+
* Handles mousedown for visual pressed state.
|
|
171
|
+
*/
|
|
172
|
+
private _handleMouseDown;
|
|
173
|
+
/**
|
|
174
|
+
* Handles mouseup/mouseleave to reset pressed state.
|
|
175
|
+
*/
|
|
176
|
+
private _handleMouseUp;
|
|
177
|
+
/**
|
|
178
|
+
* Handles keydown events for keyboard activation.
|
|
179
|
+
*/
|
|
180
|
+
private _handleKeyDown;
|
|
181
|
+
/**
|
|
182
|
+
* Handles keyup events to complete keyboard activation.
|
|
183
|
+
*/
|
|
184
|
+
private _handleKeyUp;
|
|
185
|
+
/**
|
|
186
|
+
* Dispatches the button-clicked event.
|
|
187
|
+
* @fires button-clicked
|
|
188
|
+
*/
|
|
189
|
+
private _emitButtonClicked;
|
|
56
190
|
}
|
|
57
191
|
//# sourceMappingURL=PdButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PdButton.d.ts","sourceRoot":"","sources":["../../src/pd-button/PdButton.ts"],"names":[],"mappings":"AACA;;;
|
|
1
|
+
{"version":3,"file":"PdButton.d.ts","sourceRoot":"","sources":["../../src/pd-button/PdButton.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,EAAa,cAAc,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAGzE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,0CAA0C,CAAC;AAElD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,qBAAa,QAAS,SAAQ,QAAQ;IAKpC;;;OAGG;IAEH,OAAO,UAAS;IAEhB;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;;;OAIG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IAEH,SAAS,UAAS;IAElB;;;;OAIG;IAEH,IAAI,SAAQ;IAEZ;;;;OAIG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IAEH,YAAY,EAAE,OAAO,GAAG,KAAK,CAAW;IAExC;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IAEH,IAAI,EAAE,YAAY,CAAQ;IAE1B;;;OAGG;IAEH,IAAI,EAAE,YAAY,CAAY;IAE9B;;;;OAIG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd;iBACa;IAEb,OAAO,CAAC,UAAU,CAAS;IAM3B,OAAgB,MAAM,EAAE,cAAc,CAsVpC;IAMO,MAAM;IAgEf;;;OAGG;IACH,SAAS,KAAK,kBAAkB,IAAI,MAAM,GAAG,OAAO,GAAG,WAAW,CAEjE;IAED;;;OAGG;IACH,SAAS,KAAK,kBAAkB,IAC5B,MAAM,GACN,OAAO,GACP,MAAM,GACN,SAAS,GACT,MAAM,GACN,MAAM,GACN,QAAQ,CAEX;IAED;;;OAGG;IACH,SAAS,KAAK,kBAAkB,IAAI,MAAM,GAAG,OAAO,OAAO,CAE1D;IAED;;;OAGG;IACH,SAAS,CAAC,mBAAmB,IAAI,cAAc,GAAG,OAAO,OAAO;IAIhE;;;OAGG;IACH,SAAS,CAAC,iBAAiB,IAAI,cAAc,GAAG,OAAO,OAAO;IAI9D;;OAEG;IACH,SAAS,CAAC,UAAU,IAAI,cAAc,GAAG,OAAO,OAAO;IAWvD;;;OAGG;IACH,SAAS,CAAC,WAAW,IAAI,IAAI;IAM7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;OAEG;IACH,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,OAAO,CAAC,cAAc;IAStB;;OAEG;IACH,OAAO,CAAC,YAAY;IAUpB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;CAS3B"}
|