jebamo 0.0.2 → 0.0.3
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 +2 -2
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -3
- package/dist/components/index.js.map +0 -1
- package/dist/components/je-alert.d.ts +0 -11
- package/dist/components/je-alert.js +0 -146
- 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 -37
- 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-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-checkbox-group.d.ts +0 -11
- package/dist/components/je-checkbox-group.js +0 -90
- 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 -65
- 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 -83
- 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-column-group.d.ts +0 -11
- package/dist/components/je-column-group.js +0 -46
- 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 -95
- 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 -3249
- 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 -49
- 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 -42
- 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 -60
- 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 -55
- 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-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-infinite.d.ts +0 -11
- package/dist/components/je-infinite.js +0 -64
- 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-link.d.ts +0 -11
- package/dist/components/je-link.js +0 -62
- 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 -66
- 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 -37
- 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 -37
- 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 -104
- 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 -62
- 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 -146
- 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 -61
- 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-placeholder.d.ts +0 -11
- package/dist/components/je-placeholder.js +0 -40
- 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-radio-group.d.ts +0 -11
- package/dist/components/je-radio-group.js +0 -92
- 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 -68
- 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 -56
- 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 -208
- 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 -37
- 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 -37
- 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 -55
- 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 -37
- 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 -57
- 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 -37
- package/dist/components/je-toolbar.js.map +0 -1
- package/dist/components/je-tree.d.ts +0 -11
- package/dist/components/je-tree.js +0 -37
- package/dist/components/je-tree.js.map +0 -1
- package/dist/components/p-1f3759e7.js +0 -41
- package/dist/components/p-1f3759e7.js.map +0 -1
- package/dist/components/p-243cc91b.js +0 -50
- package/dist/components/p-243cc91b.js.map +0 -1
- package/dist/components/p-2df369c4.js +0 -265
- package/dist/components/p-2df369c4.js.map +0 -1
- package/dist/components/p-41492a72.js +0 -1514
- package/dist/components/p-41492a72.js.map +0 -1
- package/dist/components/p-4b8ae8ef.js +0 -51
- package/dist/components/p-4b8ae8ef.js.map +0 -1
- package/dist/components/p-5dee004d.js +0 -246
- package/dist/components/p-5dee004d.js.map +0 -1
- package/dist/components/p-8401b4e4.js +0 -48
- package/dist/components/p-8401b4e4.js.map +0 -1
- package/dist/components/p-94327b0d.js +0 -39
- package/dist/components/p-94327b0d.js.map +0 -1
- package/dist/components/p-aa4caa39.js +0 -76
- package/dist/components/p-aa4caa39.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"je-checkbox.js","mappings":";;;AAAA,MAAM,aAAa,GAAG,gMAAgM,CAAC;AACvN,yBAAe,aAAa;;MCOfA,YAAU;;;;;;;;8BAaqB,KAAK;6BAKN,KAAK;yBAK1B,KAAK;wBAKN,KAAK;wBAKL,KAAK;;IAOxB,iBAAiB;QACf,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACnD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACpB;QACD,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC;KACjC;IAED,iBAAiB;QACf,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,aAAa,EAAE;YACrC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC;SACjC;KACF;IAGD,OAAO;QACL,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACpC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;gBACvB,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;aAC1B;iBAAM;;gBAEL,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;aAC7E;YACD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACnC;KACF;IAED,MAAM;QACJ,QACE,EAAC,IAAI,uDACF,IAAI,CAAC,cAAc,IAAI,OAAO,IAAI,8DAAa,EAChD,gEAAS,IAAI,EAAE,IAAI,CAAC,KAAK,KAAK,IAAI,GAAG,WAAW,GAAG,IAAI,CAAC,KAAK,KAAK,KAAK,GAAG,yBAAyB,GAAG,yBAAyB,GAAI,EAClI,IAAI,CAAC,cAAc,IAAI,KAAK,IAAI,8DAAa,CACzC,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["JeCheckbox"],"sources":["src/components/je-checkbox/je-checkbox.scss?tag=je-checkbox&encapsulation=shadow","src/components/je-checkbox/je-checkbox.tsx"],"sourcesContent":[":host {\n display: flex;\n align-items: center;\n gap: var(--je-spacing-2xs);\n width: fit-content;\n cursor: pointer;\n -webkit-user-select: none;\n user-select: none;\n}\n\nje-icon {\n cursor: pointer;\n color: var(--je-primary-500);\n}\n","import { AttachInternals, Component, EventEmitter, Host, Prop, h, Element, Event, Listen } from '@stencil/core';\n\n@Component({\n tag: 'je-checkbox',\n styleUrl: 'je-checkbox.scss',\n shadow: true,\n formAssociated: true\n})\nexport class JeCheckbox {\n @AttachInternals() internals: ElementInternals;\n @Element() el!: HTMLElement;\n private originalValue?: boolean;\n\n /**\n * Whether or not the checkbox is active\n */\n @Prop({ mutable: true }) value?: boolean;\n\n /**\n * Whether or not the label should go before or after the checkbox\n */\n @Prop() labelPlacement: 'start' | 'end' = 'end';\n\n /**\n * If the checkbox should contain a 3rd indeterminate state\n */\n @Prop({ reflect: true }) indeterminate = false;\n\n /**\n * Will hide the checkbox and just display the label\n */\n @Prop() labelOnly = false;\n\n /**\n * Shows the readonly state and prevents changes\n */\n @Prop() readonly = false;\n\n /**\n * Shows the disabled state and prevents changes\n */\n @Prop() disabled = false;\n\n /**\n * Emits the current value whenever it's state changes\n */\n @Event({ bubbles: false }) valueChange: EventEmitter<boolean | undefined>;\n\n componentWillLoad() {\n if (this.value === undefined && !this.indeterminate) {\n this.value = false;\n }\n this.originalValue = this.value;\n }\n\n formResetCallback() {\n if (this.value !== this.originalValue) {\n this.value = this.originalValue;\n }\n }\n\n @Listen('click')\n onClick() {\n if (!this.readonly && !this.disabled) {\n if (!this.indeterminate) {\n this.value = !this.value;\n } else {\n // when indeterminate, the flow is false -> true -> null\n this.value = this.value == false ? true : this.value == true ? null : false;\n }\n this.valueChange.emit(this.value);\n }\n }\n\n render() {\n return (\n <Host>\n {this.labelPlacement == 'start' && <slot></slot>}\n <je-icon icon={this.value === true ? 'check_box' : this.value === false ? 'check_box_outline_blank' : 'indeterminate_check_box'} />\n {this.labelPlacement == 'end' && <slot></slot>}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JeColor extends Components.JeColor, HTMLElement {}
|
|
4
|
-
export const JeColor: {
|
|
5
|
-
prototype: JeColor;
|
|
6
|
-
new (): JeColor;
|
|
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-color.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JeColumnGroup extends Components.JeColumnGroup, HTMLElement {}
|
|
4
|
-
export const JeColumnGroup: {
|
|
5
|
-
prototype: JeColumnGroup;
|
|
6
|
-
new (): JeColumnGroup;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-41492a72.js';
|
|
2
|
-
|
|
3
|
-
const jeColumnGroupCss = ":host{display:flex;--je-columns:12}";
|
|
4
|
-
const JeColumnGroupStyle0 = jeColumnGroupCss;
|
|
5
|
-
|
|
6
|
-
const JeColumnGroup$1 = /*@__PURE__*/ proxyCustomElement(class JeColumnGroup extends H {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
this.columns = undefined;
|
|
12
|
-
}
|
|
13
|
-
componentDidLoad() {
|
|
14
|
-
if (this.columns) {
|
|
15
|
-
this.el.style.setProperty('--je-columns', this.columns.toString());
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
render() {
|
|
19
|
-
return (h(Host, { key: '8c4c7502241659afff87bb4742f0b4acf15c7cde' }, h("slot", { key: '76109da039bd6f86813463f8cabc2f0e1b75e371' })));
|
|
20
|
-
}
|
|
21
|
-
get el() { return this; }
|
|
22
|
-
static get style() { return JeColumnGroupStyle0; }
|
|
23
|
-
}, [1, "je-column-group", {
|
|
24
|
-
"columns": [2]
|
|
25
|
-
}]);
|
|
26
|
-
function defineCustomElement$1() {
|
|
27
|
-
if (typeof customElements === "undefined") {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const components = ["je-column-group"];
|
|
31
|
-
components.forEach(tagName => { switch (tagName) {
|
|
32
|
-
case "je-column-group":
|
|
33
|
-
if (!customElements.get(tagName)) {
|
|
34
|
-
customElements.define(tagName, JeColumnGroup$1);
|
|
35
|
-
}
|
|
36
|
-
break;
|
|
37
|
-
} });
|
|
38
|
-
}
|
|
39
|
-
defineCustomElement$1();
|
|
40
|
-
|
|
41
|
-
const JeColumnGroup = JeColumnGroup$1;
|
|
42
|
-
const defineCustomElement = defineCustomElement$1;
|
|
43
|
-
|
|
44
|
-
export { JeColumnGroup, defineCustomElement };
|
|
45
|
-
|
|
46
|
-
//# sourceMappingURL=je-column-group.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"je-column-group.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,qCAAqC,CAAC;AAC/D,4BAAe,gBAAgB;;MCMlBA,eAAa;;;;;;;IAQxB,gBAAgB;QACd,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;SACpE;KACF;IAED,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["JeColumnGroup"],"sources":["src/components/column/je-column-group/je-column-group.scss?tag=je-column-group&encapsulation=shadow","src/components/column/je-column-group/je-column-group.tsx"],"sourcesContent":[":host {\n display: flex;\n --je-columns: 12;\n}\n","import { Component, Element, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'je-column-group',\n styleUrl: 'je-column-group.scss',\n shadow: true,\n})\nexport class JeColumnGroup {\n @Element() el: HTMLJeColumnGroupElement;\n\n /**\n * The number of columns the flex grid has.\n */\n @Prop() columns?: number;\n\n componentDidLoad() {\n if (this.columns) {\n this.el.style.setProperty('--je-columns', this.columns.toString());\n }\n }\n\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JeColumn extends Components.JeColumn, HTMLElement {}
|
|
4
|
-
export const JeColumn: {
|
|
5
|
-
prototype: JeColumn;
|
|
6
|
-
new (): JeColumn;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, f as forceUpdate, h, d as Host } from './p-41492a72.js';
|
|
2
|
-
|
|
3
|
-
const jeColumnCss = ":host{margin:0px;box-sizing:border-box;flex-basis:0px;flex-grow:1;width:100%;max-width:100%;min-height:1px;font-family:var(--je-font-family, inherit)}";
|
|
4
|
-
const JeColumnStyle0 = jeColumnCss;
|
|
5
|
-
|
|
6
|
-
const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
|
7
|
-
const SIZE_TO_MEDIA = {
|
|
8
|
-
xs: '(min-width: 0px)',
|
|
9
|
-
sm: '(min-width: 576px)',
|
|
10
|
-
md: '(min-width: 768px)',
|
|
11
|
-
lg: '(min-width: 992px)',
|
|
12
|
-
xl: '(min-width: 1200px)',
|
|
13
|
-
};
|
|
14
|
-
const JeColumn$1 = /*@__PURE__*/ proxyCustomElement(class JeColumn extends H {
|
|
15
|
-
constructor() {
|
|
16
|
-
super();
|
|
17
|
-
this.__registerHost();
|
|
18
|
-
this.__attachShadow();
|
|
19
|
-
this.size = undefined;
|
|
20
|
-
this.sizeXs = undefined;
|
|
21
|
-
this.sizeSm = undefined;
|
|
22
|
-
this.sizeMd = undefined;
|
|
23
|
-
this.sizeLg = undefined;
|
|
24
|
-
this.sizeXl = undefined;
|
|
25
|
-
}
|
|
26
|
-
onResize() {
|
|
27
|
-
forceUpdate(this);
|
|
28
|
-
}
|
|
29
|
-
matchBreakpoint(breakpoint) {
|
|
30
|
-
if (breakpoint === undefined || breakpoint === '') {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
if (window.matchMedia) {
|
|
34
|
-
const mediaQuery = SIZE_TO_MEDIA[breakpoint];
|
|
35
|
-
return window.matchMedia(mediaQuery).matches;
|
|
36
|
-
}
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
;
|
|
40
|
-
getColumns(property) {
|
|
41
|
-
let matched;
|
|
42
|
-
for (const breakpoint of BREAKPOINTS) {
|
|
43
|
-
const matches = this.matchBreakpoint(breakpoint);
|
|
44
|
-
const columns = this[property + breakpoint.charAt(0).toUpperCase() + breakpoint.slice(1)];
|
|
45
|
-
if (matches && columns !== undefined) {
|
|
46
|
-
matched = columns;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return matched;
|
|
50
|
-
}
|
|
51
|
-
calculateSize() {
|
|
52
|
-
const columns = this.getColumns('size');
|
|
53
|
-
if (!columns || columns === '') {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const colSize = columns === 'auto' ? 'auto' : `calc(calc(${columns} / var(--je-columns, 12)) * 100%)`;
|
|
57
|
-
return {
|
|
58
|
-
flex: `0 0 ${colSize}`,
|
|
59
|
-
width: `${colSize}`,
|
|
60
|
-
'max-width': `${colSize}`,
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
return (h(Host, { key: '612be9e71ffa176295b9d0336c06b62dbda388c0', style: Object.assign({}, this.calculateSize()) }, h("slot", { key: '3e74a2e7ed2327d16299bc158791627d46f29173' })));
|
|
65
|
-
}
|
|
66
|
-
static get style() { return JeColumnStyle0; }
|
|
67
|
-
}, [1, "je-column", {
|
|
68
|
-
"size": [1],
|
|
69
|
-
"sizeXs": [1, "size-xs"],
|
|
70
|
-
"sizeSm": [1, "size-sm"],
|
|
71
|
-
"sizeMd": [1, "size-md"],
|
|
72
|
-
"sizeLg": [1, "size-lg"],
|
|
73
|
-
"sizeXl": [1, "size-xl"]
|
|
74
|
-
}, [[9, "resize", "onResize"]]]);
|
|
75
|
-
function defineCustomElement$1() {
|
|
76
|
-
if (typeof customElements === "undefined") {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
const components = ["je-column"];
|
|
80
|
-
components.forEach(tagName => { switch (tagName) {
|
|
81
|
-
case "je-column":
|
|
82
|
-
if (!customElements.get(tagName)) {
|
|
83
|
-
customElements.define(tagName, JeColumn$1);
|
|
84
|
-
}
|
|
85
|
-
break;
|
|
86
|
-
} });
|
|
87
|
-
}
|
|
88
|
-
defineCustomElement$1();
|
|
89
|
-
|
|
90
|
-
const JeColumn = JeColumn$1;
|
|
91
|
-
const defineCustomElement = defineCustomElement$1;
|
|
92
|
-
|
|
93
|
-
export { JeColumn, defineCustomElement };
|
|
94
|
-
|
|
95
|
-
//# sourceMappingURL=je-column.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"je-column.js","mappings":";;AAAA,MAAM,WAAW,GAAG,wJAAwJ,CAAC;AAC7K,uBAAe,WAAW;;ACC1B,MAAM,WAAW,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACvD,MAAM,aAAa,GAAG;IACpB,EAAE,EAAE,kBAAkB;IACtB,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,qBAAqB;CAC1B,CAAC;MAOWA,UAAQ;;;;;;;;;;;;IAgCnB,QAAQ;QACN,WAAW,CAAC,IAAI,CAAC,CAAC;KACnB;IAEO,eAAe,CAAC,UAA8B;QACpD,IAAI,UAAU,KAAK,SAAS,IAAI,UAAU,KAAK,EAAE,EAAE;YACjD,OAAO,IAAI,CAAC;SACb;QACD,IAAK,MAAc,CAAC,UAAU,EAAE;YAC9B,MAAM,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC;YAC7C,OAAO,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC;SAC9C;QACD,OAAO,KAAK,CAAC;KACd;;IAEO,UAAU,CAAC,QAAgB;QACjC,IAAI,OAAY,CAAC;QAEjB,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE;YACpC,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;YACjD,MAAM,OAAO,GAAI,IAAY,CAAC,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACnG,IAAI,OAAO,IAAI,OAAO,KAAK,SAAS,EAAE;gBACpC,OAAO,GAAG,OAAO,CAAC;aACnB;SACF;QAED,OAAO,OAAO,CAAC;KAChB;IAEO,aAAa;QACnB,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAExC,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,EAAE,EAAE;YAC9B,OAAO;SACR;QAED,MAAM,OAAO,GAAG,OAAO,KAAK,MAAM,GAAG,MAAM,GAAG,aAAa,OAAO,mCAAmC,CAAC;QAEtG,OAAO;YACL,IAAI,EAAE,OAAO,OAAO,EAAE;YACtB,KAAK,EAAE,GAAG,OAAO,EAAE;YACnB,WAAW,EAAE,GAAG,OAAO,EAAE;SAC1B,CAAC;KACH;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,KAAK,oBAAO,IAAI,CAAC,aAAa,EAAE,KACpC,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["JeColumn"],"sources":["src/components/column/je-column/je-column.scss?tag=je-column&encapsulation=shadow","src/components/column/je-column/je-column.tsx"],"sourcesContent":[":host {\n margin: 0px;\n box-sizing: border-box;\n flex-basis: 0px;\n flex-grow: 1;\n width: 100%;\n max-width: 100%;\n min-height: 1px;\n font-family: var(--je-font-family, inherit);\n}\n","import { Component, Host, Listen, Prop, forceUpdate, h } from '@stencil/core';\n\nconst BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];\nconst SIZE_TO_MEDIA = {\n xs: '(min-width: 0px)',\n sm: '(min-width: 576px)',\n md: '(min-width: 768px)',\n lg: '(min-width: 992px)',\n xl: '(min-width: 1200px)',\n};\n\n@Component({\n tag: 'je-column',\n styleUrl: 'je-column.scss',\n shadow: true,\n})\nexport class JeColumn {\n /**\n * The size of the column, in terms of how many columns it should take up out of the total available.\n */\n @Prop() size?: string;\n\n /**\n * The size of the column for xs screens, in terms of how many columns it should take up out of the total available.\n */\n @Prop() sizeXs?: string;\n\n /**\n * The size of the column for sm screens, in terms of how many columns it should take up out of the total available.\n */\n @Prop() sizeSm?: string;\n\n /**\n * The size of the column for md screens, in terms of how many columns it should take up out of the total available.\n */\n @Prop() sizeMd?: string;\n\n /**\n * The size of the column for lg screens, in terms of how many columns it should take up out of the total available.\n */\n @Prop() sizeLg?: string;\n\n /**\n * The size of the column for xl screens, in terms of how many columns it should take up out of the total available.\n */\n @Prop() sizeXl?: string;\n\n @Listen('resize', { target: 'window' })\n onResize() {\n forceUpdate(this);\n }\n\n private matchBreakpoint(breakpoint: string | undefined) {\n if (breakpoint === undefined || breakpoint === '') {\n return true;\n }\n if ((window as any).matchMedia) {\n const mediaQuery = SIZE_TO_MEDIA[breakpoint];\n return window.matchMedia(mediaQuery).matches;\n }\n return false;\n };\n\n private getColumns(property: string) {\n let matched: any;\n\n for (const breakpoint of BREAKPOINTS) {\n const matches = this.matchBreakpoint(breakpoint);\n const columns = (this as any)[property + breakpoint.charAt(0).toUpperCase() + breakpoint.slice(1)];\n if (matches && columns !== undefined) {\n matched = columns;\n }\n }\n\n return matched;\n }\n\n private calculateSize() {\n const columns = this.getColumns('size');\n\n if (!columns || columns === '') {\n return;\n }\n\n const colSize = columns === 'auto' ? 'auto' : `calc(calc(${columns} / var(--je-columns, 12)) * 100%)`;\n\n return {\n flex: `0 0 ${colSize}`,\n width: `${colSize}`,\n 'max-width': `${colSize}`,\n };\n }\n\n render() {\n return (\n <Host style={{ ...this.calculateSize() }}>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JeDatepicker extends Components.JeDatepicker, HTMLElement {}
|
|
4
|
-
export const JeDatepicker: {
|
|
5
|
-
prototype: JeDatepicker;
|
|
6
|
-
new (): JeDatepicker;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|