jebamo 0.0.6 → 0.0.8
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 +1 -1
- package/dist/components/index.d.ts +0 -118
- package/dist/components/index.js +0 -47
- package/dist/components/index.js.map +0 -1
- package/dist/components/je-alert.d.ts +0 -11
- package/dist/components/je-alert.js +0 -145
- package/dist/components/je-alert.js.map +0 -1
- package/dist/components/je-branch.d.ts +0 -11
- package/dist/components/je-branch.js +0 -88
- package/dist/components/je-branch.js.map +0 -1
- package/dist/components/je-button.d.ts +0 -11
- package/dist/components/je-button.js +0 -8
- package/dist/components/je-button.js.map +0 -1
- package/dist/components/je-button2.js +0 -75
- package/dist/components/je-button2.js.map +0 -1
- package/dist/components/je-card.d.ts +0 -11
- package/dist/components/je-card.js +0 -8
- package/dist/components/je-card.js.map +0 -1
- package/dist/components/je-card2.js +0 -38
- package/dist/components/je-card2.js.map +0 -1
- package/dist/components/je-checkbox-group.d.ts +0 -11
- package/dist/components/je-checkbox-group.js +0 -89
- package/dist/components/je-checkbox-group.js.map +0 -1
- package/dist/components/je-checkbox-option.d.ts +0 -11
- package/dist/components/je-checkbox-option.js +0 -64
- package/dist/components/je-checkbox-option.js.map +0 -1
- package/dist/components/je-checkbox.d.ts +0 -11
- package/dist/components/je-checkbox.js +0 -82
- package/dist/components/je-checkbox.js.map +0 -1
- package/dist/components/je-color.d.ts +0 -11
- package/dist/components/je-color.js +0 -8
- package/dist/components/je-color.js.map +0 -1
- package/dist/components/je-color2.js +0 -47
- package/dist/components/je-color2.js.map +0 -1
- package/dist/components/je-column-group.d.ts +0 -11
- package/dist/components/je-column-group.js +0 -45
- package/dist/components/je-column-group.js.map +0 -1
- package/dist/components/je-column.d.ts +0 -11
- package/dist/components/je-column.js +0 -94
- package/dist/components/je-column.js.map +0 -1
- package/dist/components/je-datepicker.d.ts +0 -11
- package/dist/components/je-datepicker.js +0 -3248
- package/dist/components/je-datepicker.js.map +0 -1
- package/dist/components/je-details.d.ts +0 -11
- package/dist/components/je-details.js +0 -48
- package/dist/components/je-details.js.map +0 -1
- package/dist/components/je-divider.d.ts +0 -11
- package/dist/components/je-divider.js +0 -41
- package/dist/components/je-divider.js.map +0 -1
- package/dist/components/je-drawer.d.ts +0 -11
- package/dist/components/je-drawer.js +0 -59
- package/dist/components/je-drawer.js.map +0 -1
- package/dist/components/je-dropzone.d.ts +0 -11
- package/dist/components/je-dropzone.js +0 -54
- package/dist/components/je-dropzone.js.map +0 -1
- package/dist/components/je-form.d.ts +0 -11
- package/dist/components/je-form.js +0 -8
- package/dist/components/je-form.js.map +0 -1
- package/dist/components/je-form2.js +0 -49
- package/dist/components/je-form2.js.map +0 -1
- package/dist/components/je-icon.d.ts +0 -11
- package/dist/components/je-icon.js +0 -8
- package/dist/components/je-icon.js.map +0 -1
- package/dist/components/je-icon2.js +0 -50
- package/dist/components/je-icon2.js.map +0 -1
- package/dist/components/je-infinite.d.ts +0 -11
- package/dist/components/je-infinite.js +0 -63
- package/dist/components/je-infinite.js.map +0 -1
- package/dist/components/je-input.d.ts +0 -11
- package/dist/components/je-input.js +0 -8
- package/dist/components/je-input.js.map +0 -1
- package/dist/components/je-input2.js +0 -264
- package/dist/components/je-input2.js.map +0 -1
- package/dist/components/je-link.d.ts +0 -11
- package/dist/components/je-link.js +0 -61
- package/dist/components/je-link.js.map +0 -1
- package/dist/components/je-loading.d.ts +0 -11
- package/dist/components/je-loading.js +0 -65
- package/dist/components/je-loading.js.map +0 -1
- package/dist/components/je-menu-option.d.ts +0 -11
- package/dist/components/je-menu-option.js +0 -68
- package/dist/components/je-menu-option.js.map +0 -1
- package/dist/components/je-menu.d.ts +0 -11
- package/dist/components/je-menu.js +0 -54
- package/dist/components/je-menu.js.map +0 -1
- package/dist/components/je-modal.d.ts +0 -11
- package/dist/components/je-modal.js +0 -103
- package/dist/components/je-modal.js.map +0 -1
- package/dist/components/je-multiselect-option.d.ts +0 -11
- package/dist/components/je-multiselect-option.js +0 -61
- package/dist/components/je-multiselect-option.js.map +0 -1
- package/dist/components/je-multiselect.d.ts +0 -11
- package/dist/components/je-multiselect.js +0 -145
- package/dist/components/je-multiselect.js.map +0 -1
- package/dist/components/je-page.d.ts +0 -11
- package/dist/components/je-page.js +0 -67
- package/dist/components/je-page.js.map +0 -1
- package/dist/components/je-pill.d.ts +0 -11
- package/dist/components/je-pill.js +0 -8
- package/dist/components/je-pill.js.map +0 -1
- package/dist/components/je-pill2.js +0 -40
- package/dist/components/je-pill2.js.map +0 -1
- package/dist/components/je-placeholder.d.ts +0 -11
- package/dist/components/je-placeholder.js +0 -39
- package/dist/components/je-placeholder.js.map +0 -1
- package/dist/components/je-popover.d.ts +0 -11
- package/dist/components/je-popover.js +0 -8
- package/dist/components/je-popover.js.map +0 -1
- package/dist/components/je-popover2.js +0 -245
- package/dist/components/je-popover2.js.map +0 -1
- package/dist/components/je-radio-group.d.ts +0 -11
- package/dist/components/je-radio-group.js +0 -91
- package/dist/components/je-radio-group.js.map +0 -1
- package/dist/components/je-radio.d.ts +0 -11
- package/dist/components/je-radio.js +0 -67
- package/dist/components/je-radio.js.map +0 -1
- package/dist/components/je-select-option.d.ts +0 -11
- package/dist/components/je-select-option.js +0 -55
- package/dist/components/je-select-option.js.map +0 -1
- package/dist/components/je-select.d.ts +0 -11
- package/dist/components/je-select.js +0 -207
- package/dist/components/je-select.js.map +0 -1
- package/dist/components/je-tab.d.ts +0 -11
- package/dist/components/je-tab.js +0 -47
- package/dist/components/je-tab.js.map +0 -1
- package/dist/components/je-tabs.d.ts +0 -11
- package/dist/components/je-tabs.js +0 -75
- package/dist/components/je-tabs.js.map +0 -1
- package/dist/components/je-textarea.d.ts +0 -11
- package/dist/components/je-textarea.js +0 -54
- package/dist/components/je-textarea.js.map +0 -1
- package/dist/components/je-toast.d.ts +0 -11
- package/dist/components/je-toast.js +0 -36
- package/dist/components/je-toast.js.map +0 -1
- package/dist/components/je-toggle.d.ts +0 -11
- package/dist/components/je-toggle.js +0 -56
- package/dist/components/je-toggle.js.map +0 -1
- package/dist/components/je-toolbar.d.ts +0 -11
- package/dist/components/je-toolbar.js +0 -8
- package/dist/components/je-toolbar.js.map +0 -1
- package/dist/components/je-toolbar2.js +0 -33
- package/dist/components/je-toolbar2.js.map +0 -1
- package/dist/components/je-tree.d.ts +0 -11
- package/dist/components/je-tree.js +0 -86
- package/dist/components/je-tree.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/* jebamo custom elements */
|
|
2
|
-
export { JeAlert as JeAlert } from '../types/components/je-alert/je-alert';
|
|
3
|
-
export { defineCustomElement as defineCustomElementJeAlert } from './je-alert';
|
|
4
|
-
export { JeBranch as JeBranch } from '../types/components/tree/je-branch/je-branch';
|
|
5
|
-
export { defineCustomElement as defineCustomElementJeBranch } from './je-branch';
|
|
6
|
-
export { JeButton as JeButton } from '../types/components/je-button/je-button';
|
|
7
|
-
export { defineCustomElement as defineCustomElementJeButton } from './je-button';
|
|
8
|
-
export { JeCard as JeCard } from '../types/components/je-card/je-card';
|
|
9
|
-
export { defineCustomElement as defineCustomElementJeCard } from './je-card';
|
|
10
|
-
export { JeCheckbox as JeCheckbox } from '../types/components/je-checkbox/je-checkbox';
|
|
11
|
-
export { defineCustomElement as defineCustomElementJeCheckbox } from './je-checkbox';
|
|
12
|
-
export { JeCheckboxGroup as JeCheckboxGroup } from '../types/components/checkbox-group/je-checkbox-group/je-checkbox-group';
|
|
13
|
-
export { defineCustomElement as defineCustomElementJeCheckboxGroup } from './je-checkbox-group';
|
|
14
|
-
export { JeCheckboxOption as JeCheckboxOption } from '../types/components/checkbox-group/je-checkbox-option/je-checkbox-option';
|
|
15
|
-
export { defineCustomElement as defineCustomElementJeCheckboxOption } from './je-checkbox-option';
|
|
16
|
-
export { JeColor as JeColor } from '../types/components/je-color/je-color';
|
|
17
|
-
export { defineCustomElement as defineCustomElementJeColor } from './je-color';
|
|
18
|
-
export { JeColumn as JeColumn } from '../types/components/column/je-column/je-column';
|
|
19
|
-
export { defineCustomElement as defineCustomElementJeColumn } from './je-column';
|
|
20
|
-
export { JeColumnGroup as JeColumnGroup } from '../types/components/column/je-column-group/je-column-group';
|
|
21
|
-
export { defineCustomElement as defineCustomElementJeColumnGroup } from './je-column-group';
|
|
22
|
-
export { JeDatepicker as JeDatepicker } from '../types/components/je-datepicker/je-datepicker';
|
|
23
|
-
export { defineCustomElement as defineCustomElementJeDatepicker } from './je-datepicker';
|
|
24
|
-
export { JeDetails as JeDetails } from '../types/components/je-details/je-details';
|
|
25
|
-
export { defineCustomElement as defineCustomElementJeDetails } from './je-details';
|
|
26
|
-
export { JeDivider as JeDivider } from '../types/components/je-divider/je-divider';
|
|
27
|
-
export { defineCustomElement as defineCustomElementJeDivider } from './je-divider';
|
|
28
|
-
export { JeDrawer as JeDrawer } from '../types/components/je-drawer/je-drawer';
|
|
29
|
-
export { defineCustomElement as defineCustomElementJeDrawer } from './je-drawer';
|
|
30
|
-
export { JeDropzone as JeDropzone } from '../types/components/je-dropzone/je-dropzone';
|
|
31
|
-
export { defineCustomElement as defineCustomElementJeDropzone } from './je-dropzone';
|
|
32
|
-
export { JeForm as JeForm } from '../types/components/je-form/je-form';
|
|
33
|
-
export { defineCustomElement as defineCustomElementJeForm } from './je-form';
|
|
34
|
-
export { JeIcon as JeIcon } from '../types/components/je-icon/je-icon';
|
|
35
|
-
export { defineCustomElement as defineCustomElementJeIcon } from './je-icon';
|
|
36
|
-
export { JeInfinite as JeInfinite } from '../types/components/je-infinite/je-infinite';
|
|
37
|
-
export { defineCustomElement as defineCustomElementJeInfinite } from './je-infinite';
|
|
38
|
-
export { JeInput as JeInput } from '../types/components/je-input/je-input';
|
|
39
|
-
export { defineCustomElement as defineCustomElementJeInput } from './je-input';
|
|
40
|
-
export { JeLink as JeLink } from '../types/components/je-link/je-link';
|
|
41
|
-
export { defineCustomElement as defineCustomElementJeLink } from './je-link';
|
|
42
|
-
export { JeLoading as JeLoading } from '../types/components/je-loading/je-loading';
|
|
43
|
-
export { defineCustomElement as defineCustomElementJeLoading } from './je-loading';
|
|
44
|
-
export { JeMenu as JeMenu } from '../types/components/menu/je-menu/je-menu';
|
|
45
|
-
export { defineCustomElement as defineCustomElementJeMenu } from './je-menu';
|
|
46
|
-
export { JeMenuOption as JeMenuOption } from '../types/components/menu/je-menu-option/je-menu-option';
|
|
47
|
-
export { defineCustomElement as defineCustomElementJeMenuOption } from './je-menu-option';
|
|
48
|
-
export { JeModal as JeModal } from '../types/components/je-modal/je-modal';
|
|
49
|
-
export { defineCustomElement as defineCustomElementJeModal } from './je-modal';
|
|
50
|
-
export { JeMultiselect as JeMultiselect } from '../types/components/multiselect/je-multiselect/je-multiselect';
|
|
51
|
-
export { defineCustomElement as defineCustomElementJeMultiselect } from './je-multiselect';
|
|
52
|
-
export { JeMultiselectOption as JeMultiselectOption } from '../types/components/multiselect/je-multiselect-option/je-multiselect-option';
|
|
53
|
-
export { defineCustomElement as defineCustomElementJeMultiselectOption } from './je-multiselect-option';
|
|
54
|
-
export { JePage as JePage } from '../types/components/je-page/je-page';
|
|
55
|
-
export { defineCustomElement as defineCustomElementJePage } from './je-page';
|
|
56
|
-
export { JePill as JePill } from '../types/components/je-pill/je-pill';
|
|
57
|
-
export { defineCustomElement as defineCustomElementJePill } from './je-pill';
|
|
58
|
-
export { JePlaceholder as JePlaceholder } from '../types/components/je-placeholder/je-placeholder';
|
|
59
|
-
export { defineCustomElement as defineCustomElementJePlaceholder } from './je-placeholder';
|
|
60
|
-
export { JePopover as JePopover } from '../types/components/je-popover/je-popover';
|
|
61
|
-
export { defineCustomElement as defineCustomElementJePopover } from './je-popover';
|
|
62
|
-
export { JeRadio as JeRadio } from '../types/components/radio/je-radio/je-radio';
|
|
63
|
-
export { defineCustomElement as defineCustomElementJeRadio } from './je-radio';
|
|
64
|
-
export { JeRadioGroup as JeRadioGroup } from '../types/components/radio/je-radio-group/je-radio-group';
|
|
65
|
-
export { defineCustomElement as defineCustomElementJeRadioGroup } from './je-radio-group';
|
|
66
|
-
export { JeSelect as JeSelect } from '../types/components/select/je-select/je-select';
|
|
67
|
-
export { defineCustomElement as defineCustomElementJeSelect } from './je-select';
|
|
68
|
-
export { JeSelectOption as JeSelectOption } from '../types/components/select/je-select-option/je-select-option';
|
|
69
|
-
export { defineCustomElement as defineCustomElementJeSelectOption } from './je-select-option';
|
|
70
|
-
export { JeTab as JeTab } from '../types/components/tabs/je-tab/je-tab';
|
|
71
|
-
export { defineCustomElement as defineCustomElementJeTab } from './je-tab';
|
|
72
|
-
export { JeTabs as JeTabs } from '../types/components/tabs/je-tabs/je-tabs';
|
|
73
|
-
export { defineCustomElement as defineCustomElementJeTabs } from './je-tabs';
|
|
74
|
-
export { JeTextarea as JeTextarea } from '../types/components/je-textarea/je-textarea';
|
|
75
|
-
export { defineCustomElement as defineCustomElementJeTextarea } from './je-textarea';
|
|
76
|
-
export { JeToast as JeToast } from '../types/components/je-toast/je-toast';
|
|
77
|
-
export { defineCustomElement as defineCustomElementJeToast } from './je-toast';
|
|
78
|
-
export { JeToggle as JeToggle } from '../types/components/je-toggle/je-toggle';
|
|
79
|
-
export { defineCustomElement as defineCustomElementJeToggle } from './je-toggle';
|
|
80
|
-
export { JeToolbar as JeToolbar } from '../types/components/je-toolbar/je-toolbar';
|
|
81
|
-
export { defineCustomElement as defineCustomElementJeToolbar } from './je-toolbar';
|
|
82
|
-
export { JeTree as JeTree } from '../types/components/tree/je-tree/je-tree';
|
|
83
|
-
export { defineCustomElement as defineCustomElementJeTree } from './je-tree';
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Get the base path to where the assets can be found. Use "setAssetPath(path)"
|
|
87
|
-
* if the path needs to be customized.
|
|
88
|
-
*/
|
|
89
|
-
export declare const getAssetPath: (path: string) => string;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Used to manually set the base path where assets can be found.
|
|
93
|
-
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
94
|
-
* such as "setAssetPath(import.meta.url)". Other options include
|
|
95
|
-
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
96
|
-
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
97
|
-
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
98
|
-
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
99
|
-
* will have to ensure the static assets are copied to its build directory.
|
|
100
|
-
*/
|
|
101
|
-
export declare const setAssetPath: (path: string) => void;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
105
|
-
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
106
|
-
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
107
|
-
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
108
|
-
* will result in the same behavior.
|
|
109
|
-
*/
|
|
110
|
-
export declare const setNonce: (nonce: string) => void
|
|
111
|
-
|
|
112
|
-
export interface SetPlatformOptions {
|
|
113
|
-
raf?: (c: FrameRequestCallback) => number;
|
|
114
|
-
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
115
|
-
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
116
|
-
}
|
|
117
|
-
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
118
|
-
export * from '../types';
|
package/dist/components/index.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { setMode } from '@stencil/core/internal/client';
|
|
2
|
-
export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
|
-
export { JeAlert, defineCustomElement as defineCustomElementJeAlert } from './je-alert.js';
|
|
4
|
-
export { JeBranch, defineCustomElement as defineCustomElementJeBranch } from './je-branch.js';
|
|
5
|
-
export { JeButton, defineCustomElement as defineCustomElementJeButton } from './je-button.js';
|
|
6
|
-
export { JeCard, defineCustomElement as defineCustomElementJeCard } from './je-card.js';
|
|
7
|
-
export { JeCheckbox, defineCustomElement as defineCustomElementJeCheckbox } from './je-checkbox.js';
|
|
8
|
-
export { JeCheckboxGroup, defineCustomElement as defineCustomElementJeCheckboxGroup } from './je-checkbox-group.js';
|
|
9
|
-
export { JeCheckboxOption, defineCustomElement as defineCustomElementJeCheckboxOption } from './je-checkbox-option.js';
|
|
10
|
-
export { JeColor, defineCustomElement as defineCustomElementJeColor } from './je-color.js';
|
|
11
|
-
export { JeColumn, defineCustomElement as defineCustomElementJeColumn } from './je-column.js';
|
|
12
|
-
export { JeColumnGroup, defineCustomElement as defineCustomElementJeColumnGroup } from './je-column-group.js';
|
|
13
|
-
export { JeDatepicker, defineCustomElement as defineCustomElementJeDatepicker } from './je-datepicker.js';
|
|
14
|
-
export { JeDetails, defineCustomElement as defineCustomElementJeDetails } from './je-details.js';
|
|
15
|
-
export { JeDivider, defineCustomElement as defineCustomElementJeDivider } from './je-divider.js';
|
|
16
|
-
export { JeDrawer, defineCustomElement as defineCustomElementJeDrawer } from './je-drawer.js';
|
|
17
|
-
export { JeDropzone, defineCustomElement as defineCustomElementJeDropzone } from './je-dropzone.js';
|
|
18
|
-
export { JeForm, defineCustomElement as defineCustomElementJeForm } from './je-form.js';
|
|
19
|
-
export { JeIcon, defineCustomElement as defineCustomElementJeIcon } from './je-icon.js';
|
|
20
|
-
export { JeInfinite, defineCustomElement as defineCustomElementJeInfinite } from './je-infinite.js';
|
|
21
|
-
export { JeInput, defineCustomElement as defineCustomElementJeInput } from './je-input.js';
|
|
22
|
-
export { JeLink, defineCustomElement as defineCustomElementJeLink } from './je-link.js';
|
|
23
|
-
export { JeLoading, defineCustomElement as defineCustomElementJeLoading } from './je-loading.js';
|
|
24
|
-
export { JeMenu, defineCustomElement as defineCustomElementJeMenu } from './je-menu.js';
|
|
25
|
-
export { JeMenuOption, defineCustomElement as defineCustomElementJeMenuOption } from './je-menu-option.js';
|
|
26
|
-
export { JeModal, defineCustomElement as defineCustomElementJeModal } from './je-modal.js';
|
|
27
|
-
export { JeMultiselect, defineCustomElement as defineCustomElementJeMultiselect } from './je-multiselect.js';
|
|
28
|
-
export { JeMultiselectOption, defineCustomElement as defineCustomElementJeMultiselectOption } from './je-multiselect-option.js';
|
|
29
|
-
export { JePage, defineCustomElement as defineCustomElementJePage } from './je-page.js';
|
|
30
|
-
export { JePill, defineCustomElement as defineCustomElementJePill } from './je-pill.js';
|
|
31
|
-
export { JePlaceholder, defineCustomElement as defineCustomElementJePlaceholder } from './je-placeholder.js';
|
|
32
|
-
export { JePopover, defineCustomElement as defineCustomElementJePopover } from './je-popover.js';
|
|
33
|
-
export { JeRadio, defineCustomElement as defineCustomElementJeRadio } from './je-radio.js';
|
|
34
|
-
export { JeRadioGroup, defineCustomElement as defineCustomElementJeRadioGroup } from './je-radio-group.js';
|
|
35
|
-
export { JeSelect, defineCustomElement as defineCustomElementJeSelect } from './je-select.js';
|
|
36
|
-
export { JeSelectOption, defineCustomElement as defineCustomElementJeSelectOption } from './je-select-option.js';
|
|
37
|
-
export { JeTab, defineCustomElement as defineCustomElementJeTab } from './je-tab.js';
|
|
38
|
-
export { JeTabs, defineCustomElement as defineCustomElementJeTabs } from './je-tabs.js';
|
|
39
|
-
export { JeTextarea, defineCustomElement as defineCustomElementJeTextarea } from './je-textarea.js';
|
|
40
|
-
export { JeToast, defineCustomElement as defineCustomElementJeToast } from './je-toast.js';
|
|
41
|
-
export { JeToggle, defineCustomElement as defineCustomElementJeToggle } from './je-toggle.js';
|
|
42
|
-
export { JeToolbar, defineCustomElement as defineCustomElementJeToolbar } from './je-toolbar.js';
|
|
43
|
-
export { JeTree, defineCustomElement as defineCustomElementJeTree } from './je-tree.js';
|
|
44
|
-
|
|
45
|
-
setMode(el => el.getAttribute('mode') || 'default');
|
|
46
|
-
|
|
47
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC","names":[],"sources":["src/global.ts"],"sourcesContent":["import { setMode } from \"@stencil/core\";\n\nsetMode(el => el.getAttribute('mode') || 'default');\n"],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JeAlert extends Components.JeAlert, HTMLElement {}
|
|
4
|
-
export const JeAlert: {
|
|
5
|
-
prototype: JeAlert;
|
|
6
|
-
new (): JeAlert;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$6 } from './je-button2.js';
|
|
3
|
-
import { d as defineCustomElement$5 } from './je-form2.js';
|
|
4
|
-
import { d as defineCustomElement$4 } from './je-icon2.js';
|
|
5
|
-
import { d as defineCustomElement$3 } from './je-input2.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './je-popover2.js';
|
|
7
|
-
|
|
8
|
-
const jeAlertCss = ":host{display:block;--je-width:35%}@media (width < 1200px){:host{--je-width:75%}}.modal{display:flex;flex-direction:column;position:fixed;border-radius:var(--je-border-radius, 2px);overflow:hidden;top:20%;left:50%;transform:translate(-50%, -20%);z-index:910;width:var(--je-width);background-color:var(--je-background-color);color:var(--je-text-color);box-shadow:0px 0px 15px 5px rgba(77, 77, 77, 0.4509803922)}.content-container{display:flex;flex-direction:column;padding:24px}.content-container .header{display:flex;width:100%;align-items:center}.content-container .header .close{margin-left:auto;--je-background:var(--je-medium-850)}.content-container .controls{margin-top:16px}.content-container .buttons{margin-top:24px;display:flex;gap:var(--je-spacing);justify-content:flex-end}.modal-transition{opacity:0;transition:opacity 250ms ease-in-out}.modal.open{opacity:1}.backdrop{position:fixed;top:0;width:100%;height:100%;background:var(--je-backdrop-color);z-index:909}.backdrop-transition{opacity:0;transition:opacity 250ms ease-in-out}.backdrop.fade{opacity:1}.clear{background:rgba(0, 0, 0, 0)}";
|
|
9
|
-
const JeAlertStyle0 = jeAlertCss;
|
|
10
|
-
|
|
11
|
-
const JeAlert$1 = /*@__PURE__*/ proxyCustomElement(class JeAlert extends HTMLElement {
|
|
12
|
-
constructor() {
|
|
13
|
-
super();
|
|
14
|
-
this.__registerHost();
|
|
15
|
-
this.__attachShadow();
|
|
16
|
-
this.didPresent = createEvent(this, "didPresent", 3);
|
|
17
|
-
this.didDismiss = createEvent(this, "didDismiss", 3);
|
|
18
|
-
this.didSubmit = createEvent(this, "didSubmit", 3);
|
|
19
|
-
this.handleBackdropClick = () => {
|
|
20
|
-
if (this.isOpen && this.backdropClose) {
|
|
21
|
-
this.dismiss('backdropClose');
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
this.isOpen = false;
|
|
25
|
-
this.header = undefined;
|
|
26
|
-
this.message = undefined;
|
|
27
|
-
this.icon = undefined;
|
|
28
|
-
this.buttons = undefined;
|
|
29
|
-
this.controls = undefined;
|
|
30
|
-
this.trigger = undefined;
|
|
31
|
-
this.showBackdrop = true;
|
|
32
|
-
this.backdropClose = true;
|
|
33
|
-
}
|
|
34
|
-
componentDidLoad() {
|
|
35
|
-
this.pageEl = this.el.closest('je-page');
|
|
36
|
-
this.parentEl = this.el.parentElement;
|
|
37
|
-
if (this.trigger) {
|
|
38
|
-
this.triggerElement = document.getElementById(this.trigger);
|
|
39
|
-
if (this.triggerElement) {
|
|
40
|
-
this.triggerElement.addEventListener('click', () => this.present());
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
console.error('USS Core: Failed to find modal trigger element!');
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
async present() {
|
|
48
|
-
if (!this.isOpen) {
|
|
49
|
-
this.el.remove();
|
|
50
|
-
if (this.pageEl) {
|
|
51
|
-
this.pageEl.append(this.el);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
document.body.append(this.el);
|
|
55
|
-
}
|
|
56
|
-
this.isOpen = true;
|
|
57
|
-
return new Promise(resolve => {
|
|
58
|
-
this.contentEl.addEventListener('transitionend', () => {
|
|
59
|
-
this.didPresent.emit();
|
|
60
|
-
resolve();
|
|
61
|
-
}, { once: true });
|
|
62
|
-
this.backdropEl.classList.add('fade');
|
|
63
|
-
this.contentEl.classList.add('open');
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
async dismiss(role = 'manualClose', data) {
|
|
68
|
-
if (this.isOpen) {
|
|
69
|
-
return new Promise(resolve => {
|
|
70
|
-
this.contentEl.addEventListener('transitionend', () => {
|
|
71
|
-
this.el.remove();
|
|
72
|
-
this.parentEl.append(this.el);
|
|
73
|
-
this.isOpen = false;
|
|
74
|
-
this.didDismiss.emit({ role: role, data: data });
|
|
75
|
-
resolve();
|
|
76
|
-
}, { once: true });
|
|
77
|
-
this.backdropEl.classList.remove('fade');
|
|
78
|
-
this.contentEl.classList.remove('open');
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
render() {
|
|
83
|
-
const content = h("je-form", { key: 'b7046e7fa228538a683ec0d0611ad030b4fba1cb', onSubmit: (ev) => this.didSubmit.emit(ev) }, h("div", { key: '3880885a9dd3c61fc3eb1d0329ee8def64a2935e', class: "content-container" }, this.header && h("div", { key: 'a399b5ac5e3ccd7bea29826e8ffe92ff7969e701', class: "header" }, this.icon && h("je-icon", { key: '8e6226b9d40d1136c5ba164fb91dc56ec854d6dd', icon: this.icon }), h("h1", { key: '9b0865e01e3e0d527affb53e11754312f40c4dc7' }, this.header), h("je-button", { key: 'be0c3cdd9761f3a54c4f3f82339b16d9f22c4678', fill: 'clear', "icon-only": true, class: "close", onClick: () => this.dismiss() }, h("je-icon", { key: 'ff5ece6eb0678c017fe0474e8da58a19219baf71', icon: "close" }))), this.message && h("div", { key: '40b3a196ccbbc0e533f5054ded0989a27d5023a7', class: "message" }, this.message), this.controls && h("div", { key: 'fe9f0530966919f995fc7d90b22f408c2a16f09a', class: "controls" }, this.controls.map(control => (h("je-input", { type: control.type, required: control.required, label: control.label, placeholder: control.placeholder, validators: control.validators })))), this.buttons && h("div", { key: 'fa19ebc95e36955d4a2323d99d2856429203114b', class: "buttons" }, this.buttons.map(button => (h("je-button", { fill: button.fill, type: button.type, color: button.color, onClick: () => button.handler(this.el) }, button.text))))));
|
|
84
|
-
return (h(Host, { key: 'bf6df0e328fbe2785353b02e72dc85f18534be45', slot: 'overlay' }, h("div", { key: 'accdd9fc3059b7348fa342a166606fc2dfbe51f7', ref: el => this.contentEl = el, class: { 'modal-transition': true, 'modal': this.isOpen } }, this.isOpen && content), h("div", { key: 'bf2c4115d133199138d47520e6e12bec3bc76657', ref: el => this.backdropEl = el, onClick: this.handleBackdropClick, class: { 'backdrop-transition': true, 'backdrop': this.isOpen, 'clear': !this.showBackdrop && this.isOpen } })));
|
|
85
|
-
}
|
|
86
|
-
get el() { return this; }
|
|
87
|
-
static get style() { return JeAlertStyle0; }
|
|
88
|
-
}, [1, "je-alert", {
|
|
89
|
-
"header": [1],
|
|
90
|
-
"message": [1],
|
|
91
|
-
"icon": [1],
|
|
92
|
-
"buttons": [16],
|
|
93
|
-
"controls": [16],
|
|
94
|
-
"trigger": [1],
|
|
95
|
-
"showBackdrop": [4, "show-backdrop"],
|
|
96
|
-
"backdropClose": [4, "backdrop-close"],
|
|
97
|
-
"isOpen": [32],
|
|
98
|
-
"present": [64],
|
|
99
|
-
"dismiss": [64]
|
|
100
|
-
}]);
|
|
101
|
-
function defineCustomElement$1() {
|
|
102
|
-
if (typeof customElements === "undefined") {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
const components = ["je-alert", "je-button", "je-form", "je-icon", "je-input", "je-popover"];
|
|
106
|
-
components.forEach(tagName => { switch (tagName) {
|
|
107
|
-
case "je-alert":
|
|
108
|
-
if (!customElements.get(tagName)) {
|
|
109
|
-
customElements.define(tagName, JeAlert$1);
|
|
110
|
-
}
|
|
111
|
-
break;
|
|
112
|
-
case "je-button":
|
|
113
|
-
if (!customElements.get(tagName)) {
|
|
114
|
-
defineCustomElement$6();
|
|
115
|
-
}
|
|
116
|
-
break;
|
|
117
|
-
case "je-form":
|
|
118
|
-
if (!customElements.get(tagName)) {
|
|
119
|
-
defineCustomElement$5();
|
|
120
|
-
}
|
|
121
|
-
break;
|
|
122
|
-
case "je-icon":
|
|
123
|
-
if (!customElements.get(tagName)) {
|
|
124
|
-
defineCustomElement$4();
|
|
125
|
-
}
|
|
126
|
-
break;
|
|
127
|
-
case "je-input":
|
|
128
|
-
if (!customElements.get(tagName)) {
|
|
129
|
-
defineCustomElement$3();
|
|
130
|
-
}
|
|
131
|
-
break;
|
|
132
|
-
case "je-popover":
|
|
133
|
-
if (!customElements.get(tagName)) {
|
|
134
|
-
defineCustomElement$2();
|
|
135
|
-
}
|
|
136
|
-
break;
|
|
137
|
-
} });
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
const JeAlert = JeAlert$1;
|
|
141
|
-
const defineCustomElement = defineCustomElement$1;
|
|
142
|
-
|
|
143
|
-
export { JeAlert, defineCustomElement };
|
|
144
|
-
|
|
145
|
-
//# sourceMappingURL=je-alert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"je-alert.js","mappings":";;;;;;;AAAA,MAAM,UAAU,GAAG,+kCAA+kC,CAAC;AACnmC,sBAAe,UAAU;;MCuBZA,SAAO;;;;;;;;QAoHV,wBAAmB,GAAG;YAC5B,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,aAAa,EAAE;gBACrC,IAAI,CAAC,OAAO,CAAC,eAAe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,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,MAAM,EAAE,GACvG,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["JeAlert"],"sources":["src/components/je-alert/je-alert.scss?tag=je-alert&encapsulation=shadow","src/components/je-alert/je-alert.tsx"],"sourcesContent":[":host {\n display: block;\n --je-width: 35%;\n}\n\n@media (width < 1200px) {\n :host {\n --je-width: 75%;\n }\n}\n\n.modal {\n display: flex;\n flex-direction: column;\n position: fixed;\n border-radius: var(--je-border-radius, 2px);\n overflow: hidden;\n top: 20%;\n left: 50%;\n transform: translate(-50%, -20%);\n z-index: 910;\n width: var(--je-width);\n background-color: var(--je-background-color);\n color: var(--je-text-color);\n box-shadow: 0px 0px 15px 5px #4d4d4d73;\n}\n\n.content-container {\n display: flex;\n flex-direction: column;\n padding: 24px;\n}\n\n.content-container .header {\n display: flex;\n width: 100%;\n align-items: center;\n}\n\n.content-container .header .close {\n margin-left: auto;\n --je-background: var(--je-medium-850);\n}\n\n.content-container .controls {\n margin-top: 16px;\n}\n\n.content-container .buttons {\n margin-top: 24px;\n display: flex;\n gap: var(--je-spacing);\n justify-content: flex-end;\n}\n\n.modal-transition {\n opacity: 0;\n transition: opacity 250ms ease-in-out;\n}\n\n.modal.open {\n opacity: 1;\n}\n\n.backdrop {\n position: fixed;\n top: 0;\n width: 100%;\n height: 100%;\n background: var(--je-backdrop-color);\n z-index: 909;\n}\n\n.backdrop-transition {\n opacity: 0;\n transition: opacity 250ms ease-in-out;\n}\n\n.backdrop.fade {\n opacity: 1;\n}\n\n.clear {\n background: rgba(0, 0, 0, 0);\n}\n","import { Component, Host, h, Element, EventEmitter, Event, Method, Prop, State } from '@stencil/core';\nimport { AsyncValidationFn, ValidationFn } from '../je-input/je-input';\n\nexport type DialogButton = {\n text: string,\n color?: 'primary' | 'secondary' | 'tertiary' | 'success' | 'error' | 'warning' | 'light' | 'dark',\n fill: 'solid' | 'outline' | 'clear',\n handler: (dialog: HTMLJeAlertElement) => void | Promise<void>,\n type?: string\n}\n\nexport type DialogControl = {\n label?: string,\n placeholder?: string,\n validators?: (ValidationFn | AsyncValidationFn)[],\n required?: boolean,\n type?: string\n}\n\n@Component({\n tag: 'je-alert',\n styleUrl: 'je-alert.scss',\n shadow: true,\n})\nexport class JeAlert {\n @Element() el!: HTMLJeAlertElement;\n @State() isOpen = false;\n protected parentEl!: HTMLElement;\n protected triggerElement!: HTMLElement;\n protected contentEl!: HTMLElement;\n protected backdropEl!: HTMLElement;\n protected pageEl!: HTMLElement;\n\n /**\n * Emitted when the dialog is presented\n */\n @Event({ bubbles: false }) didPresent: EventEmitter;\n\n /**\n * Emitted when the dialog is dismissed\n */\n @Event({ bubbles: false }) didDismiss: EventEmitter<{ role: string, data: any }>;\n\n /**\n * Emitted when the inner form submission is triggered\n */\n @Event({ bubbles: false }) didSubmit: EventEmitter<SubmitEvent>;\n\n /**\n * Title of the dialog\n */\n @Prop() header?: string;\n\n /**\n * Message text below the title\n */\n @Prop() message?: string;\n\n /**\n * Icon that goes to the left of the header\n */\n @Prop() icon?: string;\n\n /**\n * Buttons for user interaction\n */\n @Prop() buttons?: DialogButton[];\n\n /**\n * Controls that are wrapped in a form\n */\n @Prop() controls?: DialogControl[];\n\n /**\n * Trigger element id\n */\n @Prop() trigger?: string;\n\n /**\n * Whether or not to render the backdrop\n */\n @Prop() showBackdrop = true;\n\n /**\n * Whether or not the user can close the dialog by clicking the backdrop\n */\n @Prop() backdropClose = true;\n\n componentDidLoad() {\n this.pageEl = this.el.closest('je-page');\n this.parentEl = this.el.parentElement;\n if (this.trigger) {\n this.triggerElement = document.getElementById(this.trigger);\n if (this.triggerElement) {\n this.triggerElement.addEventListener('click', () => this.present());\n } else {\n console.error('USS Core: Failed to find modal trigger element!');\n }\n }\n }\n\n @Method()\n async present() {\n if (!this.isOpen) {\n this.el.remove();\n if (this.pageEl) {\n this.pageEl.append(this.el);\n } else {\n document.body.append(this.el);\n }\n this.isOpen = true;\n\n return new Promise<void>(resolve => {\n this.contentEl.addEventListener('transitionend', () => {\n this.didPresent.emit();\n resolve();\n }, { once: true });\n this.backdropEl.classList.add('fade');\n this.contentEl.classList.add('open');\n });\n }\n }\n\n @Method()\n async dismiss(role = 'manualClose', data?: any) {\n if (this.isOpen) {\n return new Promise<void>(resolve => {\n this.contentEl.addEventListener('transitionend', () => {\n this.el.remove();\n this.parentEl.append(this.el);\n this.isOpen = false;\n this.didDismiss.emit({ role: role, data: data });\n resolve();\n }, { once: true });\n this.backdropEl.classList.remove('fade');\n this.contentEl.classList.remove('open');\n });\n }\n }\n\n private handleBackdropClick = () => {\n if (this.isOpen && this.backdropClose) {\n this.dismiss('backdropClose');\n }\n }\n\n render() {\n const content = <je-form onSubmit={(ev: SubmitEvent) => this.didSubmit.emit(ev)}><div class=\"content-container\">\n {this.header && <div class=\"header\">\n {this.icon && <je-icon icon={this.icon}></je-icon>}\n <h1>{this.header}</h1>\n <je-button fill='clear' icon-only class=\"close\" onClick={() => this.dismiss()}>\n <je-icon icon=\"close\"></je-icon>\n </je-button>\n </div>}\n {this.message && <div class=\"message\">{this.message}</div>}\n {this.controls && <div class=\"controls\">{this.controls.map(control => (\n <je-input type={control.type} required={control.required} label={control.label} placeholder={control.placeholder} validators={control.validators}></je-input>\n ))}</div>}\n {this.buttons && <div class=\"buttons\">{this.buttons.map(button => (\n <je-button fill={button.fill} type={button.type} color={button.color} onClick={() => button.handler(this.el)}>{button.text}</je-button>\n ))}</div>}\n </div></je-form>\n\n return (\n <Host slot='overlay'>\n <div ref={el => this.contentEl = el} class={{ 'modal-transition': true, 'modal': this.isOpen }}>\n {this.isOpen && content}\n </div>\n\n <div\n ref={el => this.backdropEl = el}\n onClick={this.handleBackdropClick}\n class={{ 'backdrop-transition': true, 'backdrop': this.isOpen, 'clear': !this.showBackdrop && this.isOpen }}>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JeBranch extends Components.JeBranch, HTMLElement {}
|
|
4
|
-
export const JeBranch: {
|
|
5
|
-
prototype: JeBranch;
|
|
6
|
-
new (): JeBranch;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$2 } from './je-icon2.js';
|
|
3
|
-
|
|
4
|
-
const jeBranchCss = ":host{display:block;user-select:none;-webkit-user-select:none}[part=container]{display:flex;align-items:center;gap:var(--je-spacing-3xs)}::slotted(je-branch){margin-left:var(--je-spacing-lg)}";
|
|
5
|
-
const JeBranchStyle0 = jeBranchCss;
|
|
6
|
-
|
|
7
|
-
const JeBranch$1 = /*@__PURE__*/ proxyCustomElement(class JeBranch extends HTMLElement {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.__registerHost();
|
|
11
|
-
this.__attachShadow();
|
|
12
|
-
this.branchSelect = createEvent(this, "branchSelect", 7);
|
|
13
|
-
this.open = false;
|
|
14
|
-
this.value = undefined;
|
|
15
|
-
this.label = undefined;
|
|
16
|
-
this.selected = false;
|
|
17
|
-
this.selection = null;
|
|
18
|
-
this.hasChildren = false;
|
|
19
|
-
}
|
|
20
|
-
;
|
|
21
|
-
componentWillLoad() {
|
|
22
|
-
var _a, _b;
|
|
23
|
-
this.onSlotChange();
|
|
24
|
-
this.selection = (_b = (_a = this.element.closest('je-tree')) === null || _a === void 0 ? void 0 : _a.selection) !== null && _b !== void 0 ? _b : null;
|
|
25
|
-
}
|
|
26
|
-
async onClick(ev) {
|
|
27
|
-
ev.stopPropagation();
|
|
28
|
-
const value = this.value || this.element.textContent;
|
|
29
|
-
const isLeaf = await this.isLeaf();
|
|
30
|
-
if ((this.selection == 'leaf' && isLeaf) || this.selection != null) {
|
|
31
|
-
this.branchSelect.emit(value);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
onSlotChange() {
|
|
35
|
-
this.hasChildren = this.element.querySelector('je-branch') !== null;
|
|
36
|
-
}
|
|
37
|
-
async isLeaf() {
|
|
38
|
-
return !this.hasChildren;
|
|
39
|
-
}
|
|
40
|
-
async getParentBranch() {
|
|
41
|
-
const parentElement = this.element.parentElement;
|
|
42
|
-
if (parentElement && parentElement.tagName === 'JE-BRANCH') {
|
|
43
|
-
return parentElement;
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
return (h(Host, { key: 'f7542376cf90b9ddde645b27f32d2ae7ff67aff3' }, h("div", { key: '26052e5ce1eb67ccd93284c4ec7f2db3e462b1d7', part: "container" }, h("je-icon", { key: 'f6a8d0be65a3977df41f561041469311b679441f', icon: this.open ? 'expand_more' : 'chevron_right', style: { opacity: this.hasChildren ? '1' : '0' } }), this.selection === 'multiple' && h("je-icon", { key: '4f1af68a1a92d25e79f91772a2eb9e0bdeaa0f1d', icon: this.selected === true ? 'check_box' : this.selected === false ? 'check_box_outline_blank' : 'indeterminate_check_box' }), h("slot", { key: '652ae9e43b80400ed9a9cd45db2cd1dcd086ce06', name: "label" }, this.label && h("span", { key: 'e928abf06d90efb8d77047226193629675335e90' }, this.label))), h("slot", { key: '26db633786f32c071c3aaf42a46d3f4c5ab68394' })));
|
|
51
|
-
}
|
|
52
|
-
get element() { return this; }
|
|
53
|
-
static get style() { return JeBranchStyle0; }
|
|
54
|
-
}, [1, "je-branch", {
|
|
55
|
-
"open": [4],
|
|
56
|
-
"value": [1],
|
|
57
|
-
"label": [1],
|
|
58
|
-
"selected": [4],
|
|
59
|
-
"selection": [32],
|
|
60
|
-
"hasChildren": [32],
|
|
61
|
-
"isLeaf": [64],
|
|
62
|
-
"getParentBranch": [64]
|
|
63
|
-
}, [[0, "click", "onClick"], [0, "slotChange", "onSlotChange"]]]);
|
|
64
|
-
function defineCustomElement$1() {
|
|
65
|
-
if (typeof customElements === "undefined") {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const components = ["je-branch", "je-icon"];
|
|
69
|
-
components.forEach(tagName => { switch (tagName) {
|
|
70
|
-
case "je-branch":
|
|
71
|
-
if (!customElements.get(tagName)) {
|
|
72
|
-
customElements.define(tagName, JeBranch$1);
|
|
73
|
-
}
|
|
74
|
-
break;
|
|
75
|
-
case "je-icon":
|
|
76
|
-
if (!customElements.get(tagName)) {
|
|
77
|
-
defineCustomElement$2();
|
|
78
|
-
}
|
|
79
|
-
break;
|
|
80
|
-
} });
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
const JeBranch = JeBranch$1;
|
|
84
|
-
const defineCustomElement = defineCustomElement$1;
|
|
85
|
-
|
|
86
|
-
export { JeBranch, defineCustomElement };
|
|
87
|
-
|
|
88
|
-
//# sourceMappingURL=je-branch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"je-branch.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,iMAAiM,CAAC;AACtN,uBAAe,WAAW;;MCMbA,UAAQ;;;;;;oBAEJ,KAAK;;;wBAGe,KAAK;yBACoB,IAAI;2BACzC,KAAK;;;IAG5B,iBAAiB;;QACf,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,MAAA,MAAA,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,0CAAE,SAAS,mCAAI,IAAI,CAAC;KACrE;IAGD,MAAM,OAAO,CAAC,EAAS;QACrB,EAAE,CAAC,eAAe,EAAE,CAAC;QACrB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI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;;;;","names":["JeBranch"],"sources":["src/components/tree/je-branch/je-branch.scss?tag=je-branch&encapsulation=shadow","src/components/tree/je-branch/je-branch.tsx"],"sourcesContent":[":host {\n display: block;\n user-select: none;\n -webkit-user-select: none;\n}\n\n[part=container] {\n display: flex;\n align-items: center;\n gap: var(--je-spacing-3xs);\n}\n\n::slotted(je-branch) {\n margin-left: var(--je-spacing-lg);\n}\n","import { Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'je-branch',\n styleUrl: 'je-branch.scss',\n shadow: true,\n})\nexport class JeBranch {\n @Element() element: HTMLJeBranchElement;;\n @Prop() open = false;\n @Prop() value?: string;\n @Prop() label?: string;\n @Prop() selected: boolean | null = false;\n @State() selection: 'single' | 'multiple' | 'leaf' | null = null;\n @State() hasChildren = false;\n @Event() branchSelect: EventEmitter<string>;\n\n componentWillLoad() {\n this.onSlotChange();\n this.selection = this.element.closest('je-tree')?.selection ?? null;\n }\n\n @Listen('click')\n async onClick(ev: Event) {\n ev.stopPropagation();\n const value = this.value || this.element.textContent;\n const isLeaf = await this.isLeaf();\n if ((this.selection == 'leaf' && isLeaf) || this.selection != null) {\n this.branchSelect.emit(value);\n }\n }\n\n @Listen('slotChange')\n onSlotChange() {\n this.hasChildren = this.element.querySelector('je-branch') !== null;\n }\n\n @Method()\n async isLeaf() {\n return !this.hasChildren;\n }\n\n @Method()\n async getParentBranch(): Promise<HTMLJeBranchElement | null> {\n const parentElement = this.element.parentElement;\n if (parentElement && parentElement.tagName === 'JE-BRANCH') {\n return parentElement as HTMLJeBranchElement;\n } else {\n return null;\n }\n }\n\n render() {\n return (\n <Host>\n <div part=\"container\">\n <je-icon icon={this.open ? 'expand_more' : 'chevron_right'} style={{opacity: this.hasChildren ? '1' : '0'}}/>\n {this.selection === 'multiple' && <je-icon icon={this.selected === true ? 'check_box' : this.selected === false ? 'check_box_outline_blank' : 'indeterminate_check_box'} />}\n <slot name=\"label\">\n {this.label && <span>{this.label}</span>}\n </slot>\n </div>\n <slot/>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JeButton extends Components.JeButton, HTMLElement {}
|
|
4
|
-
export const JeButton: {
|
|
5
|
-
prototype: JeButton;
|
|
6
|
-
new (): JeButton;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"je-button.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const jeButtonCss = ":host{display:block;width:fit-content;position:relative;--je-button-height:40px;--je-button-width:auto;--je-button-min-width:80px;--je-button-font-size:1.1em;--je-button-inline-padding:12px;--je-button-color:var(--je-primary-100, buttontext);--je-button-background:var(--je-primary-500, buttonface);--je-button-hover-background:var(--je-primary-600, buttonface);--je-button-active-background:var(--je-primary-700, buttonface)}:host([color=error]),:host([color=auto][error]){--je-button-color:var(--je-error-100);--je-button-background:var(--je-error-500);--je-button-hover-background:var(--je-error-600);--je-button-active-background:var(--je-error-700)}:host([color=secondary]),:host([color=auto][secondary]){--je-button-color:var(--je-secondary-100);--je-button-background:var(--je-secondary-500);--je-button-hover-background:var(--je-secondary-600);--je-button-active-background:var(--je-secondary-700)}:host([color=tertiary]),:host([color=auto][tertiary]){--je-button-color:var(--je-tertiary-100);--je-button-background:var(--je-tertiary-500);--je-button-hover-background:var(--je-tertiary-600);--je-button-active-background:var(--je-tertiary-700)}:host([color=warning]),:host([color=auto][warning]){--je-button-color:var(--je-warning-100);--je-button-background:var(--je-warning-500);--je-button-hover-background:var(--je-warning-600);--je-button-active-background:var(--je-warning-700)}:host([color=success]),:host([color=auto][success]){--je-button-color:var(--je-success-100);--je-button-background:var(--je-success-500);--je-button-hover-background:var(--je-success-600);--je-button-active-background:var(--je-success-700)}:host([color=medium]),:host([color=auto][medium]){--je-button-color:var(--je-medium-50);--je-button-background:var(--je-medium-500);--je-button-hover-background:var(--je-medium-600);--je-button-active-background:var(--je-medium-700)}:host([color=light]),:host([color=auto][light]){--je-button-color:var(--je-medium-900);--je-button-background:var(--je-medium-100);--je-button-hover-background:var(--je-medium-400);--je-button-active-background:var(--je-medium-500)}:host([color=dark]),:host([color=auto][dark]){--je-button-color:var(--je-medium-50);--je-button-background:var(--je-medium-850);--je-button-hover-background:var(--je-medium-850);--je-button-active-background:var(--je-medium-900)}:host([expand]){width:100%;--je-button-width:100%}:host([icon-only]){--je-button-min-width:2px;--je-button-inline-padding:0}:host([size=sm]){--je-button-min-width:60px;--je-button-height:30px;--je-button-font-size:0.9em;--je-button-inline-padding:8px}:host([size=lg]){--je-button-min-width:100px;--je-button-height:50px;--je-button-font-size:1.3em;--je-button-inline-padding:20px}button{display:flex;align-items:center;justify-content:center;gap:4px;position:relative;box-sizing:border-box;border:none;border-radius:var(--je-border-radius, 2px);padding-inline:var(--je-button-inline-padding);cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;text-transform:uppercase;text-wrap:wrap;font-family:var(--je-font-family);font-size:var(--je-button-font-size);font-weight:var(--je-font-semi-bold);width:var(--je-button-width);height:var(--je-button-height);min-width:var(--je-button-min-width);color:var(--je-button-color);background-color:var(--je-button-background);transition:all 125ms ease-in-out}@media (hover: hover){button:hover{--je-button-background:var(--je-button-hover-background)}}button:active{--je-button-background:var(--je-button-active-background)}button:disabled{opacity:0.8;cursor:default}:host([fill=outline]) button{color:var(--je-button-background);background-color:transparent;border:solid 1px var(--je-button-background)}:host([fill=clear]) button{color:var(--je-button-background);background-color:transparent;font-weight:var(--je-font-bold)}@media (hover: hover){:host([fill=clear]) button:hover{opacity:0.8}}::slotted(je-icon){cursor:pointer}::slotted([slot=badge]){top:0;right:0;position:absolute;transform:translate(50%, -50%);border-radius:14px;color:var(--je-button-background);background-color:var(--je-button-color);padding-inline:4px;height:20px;display:flex;align-items:center;justify-content:center}";
|
|
4
|
-
const JeButtonStyle0 = jeButtonCss;
|
|
5
|
-
|
|
6
|
-
const JeButton = /*@__PURE__*/ proxyCustomElement(class JeButton extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
this.disabled = false;
|
|
12
|
-
this.type = 'button';
|
|
13
|
-
this.expand = false;
|
|
14
|
-
this.iconOnly = false;
|
|
15
|
-
this.fill = 'solid';
|
|
16
|
-
this.size = 'md';
|
|
17
|
-
this.color = 'primary';
|
|
18
|
-
this.lightModeColor = 'dark';
|
|
19
|
-
this.darkModeColor = 'light';
|
|
20
|
-
}
|
|
21
|
-
componentDidLoad() {
|
|
22
|
-
if (this.type == 'submit' || this.type == 'reset') {
|
|
23
|
-
this.formEl = this.el.closest('form');
|
|
24
|
-
if (this.formEl) {
|
|
25
|
-
this.formButtonEl = document.createElement('button');
|
|
26
|
-
this.formButtonEl.type = this.type;
|
|
27
|
-
this.formButtonEl.style.display = 'none';
|
|
28
|
-
this.formEl.append(this.formButtonEl);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
handleThemeChange(e) {
|
|
33
|
-
if (this.color == 'auto') {
|
|
34
|
-
this.el.toggleAttribute(this.lightModeColor, e.detail == 'light');
|
|
35
|
-
this.el.toggleAttribute(this.darkModeColor, e.detail == 'dark');
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
handleClick() {
|
|
39
|
-
if (this.formButtonEl) {
|
|
40
|
-
this.formButtonEl.click();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
render() {
|
|
44
|
-
return (h("button", { key: '8f6e68eec210f31572569fc808df822bc08ade24', part: 'inner-button', disabled: this.disabled, type: this.type }, h("slot", { key: '83636492f42b40976907f049183b28213e15f286' }), h("slot", { key: '0d50d9c9c0b07be64e29cc6d69c67e7972778011', name: 'badge' })));
|
|
45
|
-
}
|
|
46
|
-
get el() { return this; }
|
|
47
|
-
static get style() { return JeButtonStyle0; }
|
|
48
|
-
}, [1, "je-button", {
|
|
49
|
-
"disabled": [4],
|
|
50
|
-
"type": [1],
|
|
51
|
-
"expand": [516],
|
|
52
|
-
"iconOnly": [516, "icon-only"],
|
|
53
|
-
"fill": [513],
|
|
54
|
-
"size": [513],
|
|
55
|
-
"color": [513],
|
|
56
|
-
"lightModeColor": [1, "light-mode-color"],
|
|
57
|
-
"darkModeColor": [1, "dark-mode-color"]
|
|
58
|
-
}, [[16, "themeChange", "handleThemeChange"], [0, "click", "handleClick"]]]);
|
|
59
|
-
function defineCustomElement() {
|
|
60
|
-
if (typeof customElements === "undefined") {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
const components = ["je-button"];
|
|
64
|
-
components.forEach(tagName => { switch (tagName) {
|
|
65
|
-
case "je-button":
|
|
66
|
-
if (!customElements.get(tagName)) {
|
|
67
|
-
customElements.define(tagName, JeButton);
|
|
68
|
-
}
|
|
69
|
-
break;
|
|
70
|
-
} });
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export { JeButton as J, defineCustomElement as d };
|
|
74
|
-
|
|
75
|
-
//# sourceMappingURL=je-button2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"je-button2.js","mappings":";;AAAA,MAAM,WAAW,GAAG,+lIAA+lI,CAAC;AACpnI,uBAAe,WAAW;;MCOb,QAAQ;;;;;wBAMA,KAAK;oBAGT,QAAQ;sBAGW,KAAK;wBAGH,KAAK;oBAGsB,OAAO;oBAGlB,IAAI;qBAGP,SAAS;8BAG1B,MAAM;6BAGP,OAAO;;IAEtC,gBAAgB;QACd,IAAI,IAAI,CAAC,IAAI,IAAI,QAAQ,IAAI,IAAI,CAAC,IAAI,IAAI,OAAO,EAAE;YACjD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YACtC,IAAI,IAAI,CAAC,MAAM,EAAE;gBACf,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;gBACrD,IAAI,CAAC,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;gBACnC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;gBACzC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;aACvC;SACF;KACF;IAGD,iBAAiB,CAAC,CAAgC;QAChD,IAAI,IAAI,CAAC,KAAK,IAAI,MAAM,EAAE;YACxB,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,MAAM,IAAI,OAAO,CAAC,CAAA;YACjE,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,CAAA;SAChE;KACF;IAGD,WAAW;QACT,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;SAC3B;KACF;IAED,MAAM;QACJ,QACE,+DAAQ,IAAI,EAAC,cAAc,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAClE,8DAAa,EACb,6DAAM,IAAI,EAAC,OAAO,GAAQ,CACnB,EACT;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/je-button/je-button.scss?tag=je-button&encapsulation=shadow","src/components/je-button/je-button.tsx"],"sourcesContent":[":host {\n display: block;\n width: fit-content;\n position: relative;\n\n /**\n * @prop --je-button-height: Fixed height\n * @prop --je-button-width: Optional fixed width\n * @prop --je-button-min-width: Minimum width\n * @prop --je-button-font-size: Font size\n * @prop --je-button-inline-padding: Inner inline padding\n * @prop --je-button-color: Text color\n * @prop --je-button-background: Default background color\n * @prop --je-button-hover-background: Hovered background color\n * @prop --je-button-active-background: Pressed background color\n */\n --je-button-height: 40px;\n --je-button-width: auto;\n --je-button-min-width: 80px;\n --je-button-font-size: 1.1em;\n --je-button-inline-padding: 12px;\n --je-button-color: var(--je-primary-100, buttontext);\n --je-button-background: var(--je-primary-500, buttonface);\n --je-button-hover-background: var(--je-primary-600, buttonface);\n --je-button-active-background: var(--je-primary-700, buttonface);\n}\n\n:host([color=error]), :host([color=auto][error]) {\n --je-button-color: var(--je-error-100);\n --je-button-background: var(--je-error-500);\n --je-button-hover-background: var(--je-error-600);\n --je-button-active-background: var(--je-error-700);\n}\n\n:host([color=secondary]), :host([color=auto][secondary]) {\n --je-button-color: var(--je-secondary-100);\n --je-button-background: var(--je-secondary-500);\n --je-button-hover-background: var(--je-secondary-600);\n --je-button-active-background: var(--je-secondary-700);\n}\n\n:host([color=tertiary]), :host([color=auto][tertiary]) {\n --je-button-color: var(--je-tertiary-100);\n --je-button-background: var(--je-tertiary-500);\n --je-button-hover-background: var(--je-tertiary-600);\n --je-button-active-background: var(--je-tertiary-700);\n}\n\n:host([color=warning]), :host([color=auto][warning]) {\n --je-button-color: var(--je-warning-100);\n --je-button-background: var(--je-warning-500);\n --je-button-hover-background: var(--je-warning-600);\n --je-button-active-background: var(--je-warning-700);\n}\n\n:host([color=success]), :host([color=auto][success]) {\n --je-button-color: var(--je-success-100);\n --je-button-background: var(--je-success-500);\n --je-button-hover-background: var(--je-success-600);\n --je-button-active-background: var(--je-success-700);\n}\n\n:host([color=medium]), :host([color=auto][medium]) {\n --je-button-color: var(--je-medium-50);\n --je-button-background: var(--je-medium-500);\n --je-button-hover-background: var(--je-medium-600);\n --je-button-active-background: var(--je-medium-700);\n}\n\n:host([color=light]), :host([color=auto][light]) {\n --je-button-color: var(--je-medium-900);\n --je-button-background: var(--je-medium-100);\n --je-button-hover-background: var(--je-medium-400);\n --je-button-active-background: var(--je-medium-500);\n}\n\n:host([color=dark]), :host([color=auto][dark]) {\n --je-button-color: var(--je-medium-50);\n --je-button-background: var(--je-medium-850);\n --je-button-hover-background: var(--je-medium-850);\n --je-button-active-background: var(--je-medium-900);\n}\n\n:host([expand]) {\n width: 100%;\n --je-button-width: 100%;\n}\n\n:host([icon-only]) {\n --je-button-min-width: 2px;\n --je-button-inline-padding: 0;\n}\n\n:host([size=sm]) {\n --je-button-min-width: 60px;\n --je-button-height: 30px;\n --je-button-font-size: 0.9em;\n --je-button-inline-padding: 8px;\n}\n\n:host([size=lg]) {\n --je-button-min-width: 100px;\n --je-button-height: 50px;\n --je-button-font-size: 1.3em;\n --je-button-inline-padding: 20px;\n}\n\nbutton {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n position: relative;\n box-sizing: border-box;\n border: none;\n border-radius: var(--je-border-radius, 2px);\n padding-inline: var(--je-button-inline-padding);\n cursor: pointer;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n user-select: none;\n text-transform: uppercase;\n text-wrap: wrap;\n font-family: var(--je-font-family);\n font-size: var(--je-button-font-size);\n font-weight: var(--je-font-semi-bold);\n width: var(--je-button-width);\n height: var(--je-button-height);\n min-width: var(--je-button-min-width);\n color: var(--je-button-color);\n background-color: var(--je-button-background);\n transition: all 125ms ease-in-out;\n\n @media (hover: hover) {\n &:hover {\n --je-button-background: var(--je-button-hover-background);\n }\n }\n\n &:active {\n --je-button-background: var(--je-button-active-background);\n }\n\n &:disabled {\n opacity: 0.8;\n cursor: default;\n }\n}\n\n:host([fill=outline]) button {\n color: var(--je-button-background);\n background-color: transparent;\n border: solid 1px var(--je-button-background);\n}\n\n:host([fill=clear]) button {\n color: var(--je-button-background);\n background-color: transparent;\n font-weight: var(--je-font-bold);\n\n @media (hover: hover) {\n &:hover {\n opacity: 0.8;\n }\n }\n}\n\n::slotted(je-icon) {\n cursor: pointer;\n}\n\n::slotted([slot=badge]) {\n top: 0;\n right: 0;\n position: absolute;\n transform: translate(50%, -50%);\n border-radius: 14px;\n color: var(--je-button-background);\n background-color: var(--je-button-color);\n padding-inline: 4px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n","import { Component, Prop, h, Element, Listen } from '@stencil/core';\nimport { Color } from '../../utils/utils';\n\n@Component({\n tag: 'je-button',\n styleUrl: 'je-button.scss',\n shadow: true,\n})\nexport class JeButton {\n @Element() el: HTMLJeButtonElement;\n private formEl?: HTMLFormElement;\n private formButtonEl?: HTMLButtonElement;\n\n /** Disables button */\n @Prop() disabled = false;\n\n /** Can set to submit or reset to participate in forms */\n @Prop() type = 'button';\n\n /** Expands the button to the full width of it's container */\n @Prop({ reflect: true }) expand = false;\n\n /** Removes the padding, ideal for turning an icon or image into a button */\n @Prop({ reflect: true }) iconOnly = false;\n\n /** Button fill */\n @Prop({ reflect: true }) fill: 'solid' | 'outline' | 'clear' = 'solid';\n\n /** Button size */\n @Prop({ reflect: true }) size: 'md' | 'lg' | 'sm' = 'md';\n\n /** Predefined colors. Auto will switch between light and dark based on the closest je-page's theme. */\n @Prop({ reflect: true }) color: Color | 'auto' = 'primary';\n\n /** Overrides what the light mode color will be when color is \"auto\". */\n @Prop() lightModeColor: Color = 'dark';\n\n /** Overrides what the dark mode color will be when color is \"auto\". */\n @Prop() darkModeColor: Color = 'light';\n\n componentDidLoad() {\n if (this.type == 'submit' || this.type == 'reset') {\n this.formEl = this.el.closest('form');\n if (this.formEl) {\n this.formButtonEl = document.createElement('button');\n this.formButtonEl.type = this.type;\n this.formButtonEl.style.display = 'none';\n this.formEl.append(this.formButtonEl);\n }\n }\n }\n\n @Listen('themeChange', { target: 'body' })\n handleThemeChange(e: CustomEvent<'light' | 'dark'>) {\n if (this.color == 'auto') {\n this.el.toggleAttribute(this.lightModeColor, e.detail == 'light')\n this.el.toggleAttribute(this.darkModeColor, e.detail == 'dark')\n }\n }\n\n @Listen('click')\n handleClick() {\n if (this.formButtonEl) {\n this.formButtonEl.click();\n }\n }\n\n render() {\n return (\n <button part='inner-button' disabled={this.disabled} type={this.type}>\n <slot></slot>\n <slot name='badge'></slot>\n </button>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JeCard extends Components.JeCard, HTMLElement {}
|
|
4
|
-
export const JeCard: {
|
|
5
|
-
prototype: JeCard;
|
|
6
|
-
new (): JeCard;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|