@ezeep/ezeep-js 1.0.154 → 1.0.155
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements/index.d.ts +123 -0
- package/dist/{components/ezp-printer-selection2.js → custom-elements/index.js} +12946 -8931
- package/package.json +3 -3
- package/dist/components/auth.js +0 -504
- package/dist/components/ezp-auth.d.ts +0 -11
- package/dist/components/ezp-auth.js +0 -6
- package/dist/components/ezp-auth2.js +0 -141
- package/dist/components/ezp-backdrop.d.ts +0 -11
- package/dist/components/ezp-backdrop.js +0 -6
- package/dist/components/ezp-backdrop2.js +0 -46
- package/dist/components/ezp-dialog.d.ts +0 -11
- package/dist/components/ezp-dialog.js +0 -6
- package/dist/components/ezp-dialog2.js +0 -92
- package/dist/components/ezp-icon-button.d.ts +0 -11
- package/dist/components/ezp-icon-button.js +0 -6
- package/dist/components/ezp-icon-button2.js +0 -70
- package/dist/components/ezp-icon.d.ts +0 -11
- package/dist/components/ezp-icon.js +0 -6
- package/dist/components/ezp-icon2.js +0 -58
- package/dist/components/ezp-label.d.ts +0 -11
- package/dist/components/ezp-label.js +0 -6
- package/dist/components/ezp-label2.js +0 -57
- package/dist/components/ezp-printer-selection.d.ts +0 -11
- package/dist/components/ezp-printer-selection.js +0 -6
- package/dist/components/ezp-printing.d.ts +0 -11
- package/dist/components/ezp-printing.js +0 -271
- package/dist/components/ezp-select.d.ts +0 -11
- package/dist/components/ezp-select.js +0 -6
- package/dist/components/ezp-select2.js +0 -194
- package/dist/components/ezp-status.d.ts +0 -11
- package/dist/components/ezp-status.js +0 -6
- package/dist/components/ezp-status2.js +0 -94
- package/dist/components/ezp-stepper.d.ts +0 -11
- package/dist/components/ezp-stepper.js +0 -6
- package/dist/components/ezp-stepper2.js +0 -119
- package/dist/components/ezp-text-button.d.ts +0 -11
- package/dist/components/ezp-text-button.js +0 -6
- package/dist/components/ezp-text-button2.js +0 -73
- package/dist/components/ezp-upload.d.ts +0 -11
- package/dist/components/ezp-upload.js +0 -6
- package/dist/components/ezp-upload2.js +0 -95
- package/dist/components/ezp-user-menu.d.ts +0 -11
- package/dist/components/ezp-user-menu.js +0 -6
- package/dist/components/ezp-user-menu2.js +0 -159
- package/dist/components/i18next.js +0 -2653
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -15
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const ezpBackdropCss = ":host{-webkit-animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);background:var(--ezp-color-overlay-primary);border-radius:6px;display:block;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:4}:host(.hide){--ezp-backdrop-animation-name:host-out}@-webkit-keyframes host-in{0%{opacity:0}100%{opacity:1}}@keyframes host-in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes host-out{0%{opacity:1}100%{opacity:0}}@keyframes host-out{0%{opacity:1}100%{opacity:0}}";
|
|
4
|
-
|
|
5
|
-
let EzpBackdrop = class extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
10
|
-
this.backdropHideStart = createEvent(this, "backdropHideStart", 7);
|
|
11
|
-
this.backdropHideEnd = createEvent(this, "backdropHideEnd", 7);
|
|
12
|
-
this.visible = true;
|
|
13
|
-
}
|
|
14
|
-
handleClick() {
|
|
15
|
-
this.visible = false;
|
|
16
|
-
this.backdropHideStart.emit();
|
|
17
|
-
}
|
|
18
|
-
listenAnimationEnd() {
|
|
19
|
-
if (!this.visible) {
|
|
20
|
-
this.backdropHideEnd.emit();
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
return h(Host, { class: { hide: !this.visible }, onClick: () => this.handleClick() });
|
|
25
|
-
}
|
|
26
|
-
get component() { return this; }
|
|
27
|
-
static get style() { return ezpBackdropCss; }
|
|
28
|
-
};
|
|
29
|
-
EzpBackdrop = /*@__PURE__*/ proxyCustomElement(EzpBackdrop, [1, "ezp-backdrop", {
|
|
30
|
-
"visible": [1028]
|
|
31
|
-
}, [[0, "animationend", "listenAnimationEnd"]]]);
|
|
32
|
-
function defineCustomElement() {
|
|
33
|
-
if (typeof customElements === "undefined") {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const components = ["ezp-backdrop"];
|
|
37
|
-
components.forEach(tagName => { switch (tagName) {
|
|
38
|
-
case "ezp-backdrop":
|
|
39
|
-
if (!customElements.get(tagName)) {
|
|
40
|
-
customElements.define(tagName, EzpBackdrop);
|
|
41
|
-
}
|
|
42
|
-
break;
|
|
43
|
-
} });
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { EzpBackdrop as E, defineCustomElement as d };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface EzpDialog extends Components.EzpDialog, HTMLElement {}
|
|
4
|
-
export const EzpDialog: {
|
|
5
|
-
prototype: EzpDialog;
|
|
6
|
-
new (): EzpDialog;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
-
import { i as i18next } from './i18next.js';
|
|
3
|
-
import { d as defineCustomElement$4 } from './ezp-icon2.js';
|
|
4
|
-
import { d as defineCustomElement$3 } from './ezp-icon-button2.js';
|
|
5
|
-
import { d as defineCustomElement$2 } from './ezp-label2.js';
|
|
6
|
-
import { d as defineCustomElement$1 } from './ezp-text-button2.js';
|
|
7
|
-
|
|
8
|
-
const ezpDialogCss = ":host{--ezp-icon-fill:var(--ezp-color-theme-solid);-ms-flex-line-pack:center;align-content:center;background:var(--ezp-color-overlay-primary);display:grid;grid-template:auto/minmax(auto, 280px);height:100%;-ms-flex-pack:center;justify-content:center;left:0;position:fixed;top:0;width:100%}#box{background:var(--ezp-color-surface-tertiary);border-radius:6px;-webkit-box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-color-overlay-secondary));box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-color-overlay-secondary))}#header{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding:var(--ezp-spacing-2) var(--ezp-spacing-3)}#body{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-5);padding:0 var(--ezp-spacing-5);text-align:center}#text{color:var(--ezp-color-foreground-primary);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-4)}#footer{display:grid;grid-template:auto/minmax(144px, auto);-ms-flex-pack:center;justify-content:center;padding:var(--ezp-spacing-5)}";
|
|
9
|
-
|
|
10
|
-
let EzpDialog = class extends HTMLElement {
|
|
11
|
-
constructor() {
|
|
12
|
-
super();
|
|
13
|
-
this.__registerHost();
|
|
14
|
-
this.__attachShadow();
|
|
15
|
-
this.dialogClose = createEvent(this, "dialogClose", 7);
|
|
16
|
-
this.dialogAction = createEvent(this, "dialogAction", 7);
|
|
17
|
-
this.action = i18next.t('button_actions.close');
|
|
18
|
-
this.iconSize = 'large';
|
|
19
|
-
this.iconFramed = true;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* Private methods
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
this.handleClose = () => {
|
|
26
|
-
this.dialogClose.emit(this.instance);
|
|
27
|
-
};
|
|
28
|
-
this.handleAction = () => {
|
|
29
|
-
this.dialogAction.emit(this.instance);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* Lifecycle methods
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
componentWillLoad() {
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* Render method
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
render() {
|
|
45
|
-
return (h(Host, null, h("div", { id: "box" }, h("div", { id: "header" }, h("ezp-icon-button", { level: "tertiary", icon: "close", type: "button", onClick: this.handleClose })), h("div", { id: "body" }, this.iconName && (h("ezp-icon", { name: this.iconName, size: this.iconSize, framed: this.iconFramed })), h("div", { id: "text" }, h("ezp-label", { text: this.heading, weight: "heavy" }), h("ezp-label", { text: this.description }))), h("div", { id: "footer" }, h("ezp-text-button", { type: "button", level: "primary", onClick: this.handleAction, label: this.action })))));
|
|
46
|
-
}
|
|
47
|
-
static get style() { return ezpDialogCss; }
|
|
48
|
-
};
|
|
49
|
-
EzpDialog = /*@__PURE__*/ proxyCustomElement(EzpDialog, [1, "ezp-dialog", {
|
|
50
|
-
"heading": [1],
|
|
51
|
-
"description": [1],
|
|
52
|
-
"action": [1],
|
|
53
|
-
"iconName": [1, "icon-name"],
|
|
54
|
-
"iconSize": [1, "icon-size"],
|
|
55
|
-
"iconFramed": [4, "icon-framed"],
|
|
56
|
-
"instance": [1]
|
|
57
|
-
}]);
|
|
58
|
-
function defineCustomElement() {
|
|
59
|
-
if (typeof customElements === "undefined") {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
const components = ["ezp-dialog", "ezp-icon", "ezp-icon-button", "ezp-label", "ezp-text-button"];
|
|
63
|
-
components.forEach(tagName => { switch (tagName) {
|
|
64
|
-
case "ezp-dialog":
|
|
65
|
-
if (!customElements.get(tagName)) {
|
|
66
|
-
customElements.define(tagName, EzpDialog);
|
|
67
|
-
}
|
|
68
|
-
break;
|
|
69
|
-
case "ezp-icon":
|
|
70
|
-
if (!customElements.get(tagName)) {
|
|
71
|
-
defineCustomElement$4();
|
|
72
|
-
}
|
|
73
|
-
break;
|
|
74
|
-
case "ezp-icon-button":
|
|
75
|
-
if (!customElements.get(tagName)) {
|
|
76
|
-
defineCustomElement$3();
|
|
77
|
-
}
|
|
78
|
-
break;
|
|
79
|
-
case "ezp-label":
|
|
80
|
-
if (!customElements.get(tagName)) {
|
|
81
|
-
defineCustomElement$2();
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
case "ezp-text-button":
|
|
85
|
-
if (!customElements.get(tagName)) {
|
|
86
|
-
defineCustomElement$1();
|
|
87
|
-
}
|
|
88
|
-
break;
|
|
89
|
-
} });
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export { EzpDialog as E, defineCustomElement as d };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface EzpIconButton extends Components.EzpIconButton, HTMLElement {}
|
|
4
|
-
export const EzpIconButton: {
|
|
5
|
-
prototype: EzpIconButton;
|
|
6
|
-
new (): EzpIconButton;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { HTMLElement, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$1 } from './ezp-icon2.js';
|
|
3
|
-
|
|
4
|
-
const ezpIconButtonCss = ":host{display:block}:host(.primary){--ezp-iconButton-background-disabled:var(--ezp-color-shade-primary);--ezp-iconButton-background-init:var(--ezp-color-theme-solid);--ezp-iconButton-color-disabled:var(--ezp-color-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-color-on-theme);--ezp-iconButton-opacity-active:0.74;--ezp-iconButton-opacity-hover:0.84}:host(.secondary){--ezp-iconButton-background-active:var(--ezp-color-shade-tertiary);--ezp-iconButton-background-disabled:var(--ezp-color-shade-primary);--ezp-iconButton-background-hover:var(--ezp-color-shade-secondary);--ezp-iconButton-background-init:var(--ezp-color-shade-primary);--ezp-iconButton-color-disabled:var(--ezp-color-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-color-theme-solid)}:host(.tertiary){--ezp-iconButton-background-active:var(--ezp-color-shade-secondary);--ezp-iconButton-background-hover:var(--ezp-color-shade-primary);--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-color-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-color-theme-solid)}:host(.quaternary){--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-color-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-color-theme-solid);--ezp-iconButton-opacity-active:0.58;--ezp-iconButton-opacity-hover:0.74}#button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ezp-iconButton-background, var(--ezp-iconButton-background-init));border:0;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;color:var(--ezp-iconButton-color, var(--ezp-iconButton-color-init));cursor:var(--ezp-iconButton-cursor, pointer);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0;opacity:var(--ezp-iconButton-opacity, 1);outline:none;padding:var(--ezp-spacing-2)}@media (hover: hover){#button:not(:disabled):hover{--ezp-iconButton-background:var(\n --ezp-iconButton-background-hover,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-hover, 1)}#button:not(:disabled):active{--ezp-iconButton-background:var(\n --ezp-iconButton-background-active,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-active, 1)}}#button:disabled{--ezp-iconButton-background:var(\n --ezp-iconButton-background-disabled,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-color:var(--ezp-iconButton-color-disabled);--ezp-iconButton-cursor:default}";
|
|
5
|
-
|
|
6
|
-
let EzpIconButton = class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* Properties
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
/** Description... */
|
|
17
|
-
this.blank = false;
|
|
18
|
-
/** Description... */
|
|
19
|
-
this.disabled = false;
|
|
20
|
-
/** Description... */
|
|
21
|
-
this.level = 'primary';
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* Render method
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
render() {
|
|
29
|
-
const TagType = this.type !== undefined ? 'button' : 'a';
|
|
30
|
-
const attributes = this.type !== undefined
|
|
31
|
-
? {
|
|
32
|
-
type: this.type,
|
|
33
|
-
disabled: this.disabled,
|
|
34
|
-
}
|
|
35
|
-
: {
|
|
36
|
-
href: this.href,
|
|
37
|
-
target: this.blank ? '_blank' : '_self',
|
|
38
|
-
};
|
|
39
|
-
return (h(Host, { class: `${this.level}` }, h(TagType, Object.assign({ id: "button" }, attributes), h("ezp-icon", { name: this.icon }))));
|
|
40
|
-
}
|
|
41
|
-
static get style() { return ezpIconButtonCss; }
|
|
42
|
-
};
|
|
43
|
-
EzpIconButton = /*@__PURE__*/ proxyCustomElement(EzpIconButton, [1, "ezp-icon-button", {
|
|
44
|
-
"blank": [4],
|
|
45
|
-
"disabled": [4],
|
|
46
|
-
"href": [1],
|
|
47
|
-
"icon": [1],
|
|
48
|
-
"level": [1],
|
|
49
|
-
"type": [1]
|
|
50
|
-
}]);
|
|
51
|
-
function defineCustomElement() {
|
|
52
|
-
if (typeof customElements === "undefined") {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
const components = ["ezp-icon-button", "ezp-icon"];
|
|
56
|
-
components.forEach(tagName => { switch (tagName) {
|
|
57
|
-
case "ezp-icon-button":
|
|
58
|
-
if (!customElements.get(tagName)) {
|
|
59
|
-
customElements.define(tagName, EzpIconButton);
|
|
60
|
-
}
|
|
61
|
-
break;
|
|
62
|
-
case "ezp-icon":
|
|
63
|
-
if (!customElements.get(tagName)) {
|
|
64
|
-
defineCustomElement$1();
|
|
65
|
-
}
|
|
66
|
-
break;
|
|
67
|
-
} });
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export { EzpIconButton as E, defineCustomElement as d };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface EzpIcon extends Components.EzpIcon, HTMLElement {}
|
|
4
|
-
export const EzpIcon: {
|
|
5
|
-
prototype: EzpIcon;
|
|
6
|
-
new (): EzpIcon;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { HTMLElement, getAssetPath, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const ezpIconCss = ":host{-ms-flex-line-pack:center;align-content:center;background:var(--ezp-icon-background, transparent);border-radius:var(--ezp-icon-borderRadius, 0);display:grid;grid-template:var(--ezp-icon-gridTemplate)/var(--ezp-icon-gridTemplate);height:var(--ezp-icon-height, var(--ezp-icon-size));-ms-flex-pack:center;justify-content:center;padding:var(--ezp-icon-padding, 0);width:var(--ezp-icon-width, var(--ezp-icon-size))}:host(.framed){--ezp-icon-background:var(--ezp-color-shade-primary);--ezp-icon-borderRadius:50%;--ezp-icon-padding:var(--ezp-icon-frame)}:host(.normal){--ezp-icon-size:18px;--ezp-icon-gridTemplate:24px;--ezp-icon-frame:var(--ezp-spacing-3)}:host(.large){--ezp-icon-size:36px;--ezp-icon-gridTemplate:48px;--ezp-icon-frame:var(--ezp-spacing-4)}:host(.huge){--ezp-icon-size:54px;--ezp-icon-gridTemplate:72px;--ezp-icon-frame:var(--ezp-spacing-5)}svg{display:block;fill:var(--ezp-icon-fill, currentColor);height:100%;width:100%}";
|
|
4
|
-
|
|
5
|
-
let EzpIcon = class extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
10
|
-
/** Description... */
|
|
11
|
-
this.size = 'normal';
|
|
12
|
-
/** Description... */
|
|
13
|
-
this.framed = false;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* Lifecycle methods
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
async componentWillLoad() {
|
|
21
|
-
await fetch(getAssetPath(`./assets/glyph-${this.name}.svg`))
|
|
22
|
-
.then((response) => response.text())
|
|
23
|
-
.then((result) => {
|
|
24
|
-
this.glyph = result;
|
|
25
|
-
})
|
|
26
|
-
.catch((error) => console.log(error));
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* Render method
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
render() {
|
|
34
|
-
return (h(Host, { class: `${this.size} ${this.framed ? 'framed' : ''}` }, h("div", { id: "glyph", innerHTML: this.glyph })));
|
|
35
|
-
}
|
|
36
|
-
static get assetsDirs() { return ["assets"]; }
|
|
37
|
-
static get style() { return ezpIconCss; }
|
|
38
|
-
};
|
|
39
|
-
EzpIcon = /*@__PURE__*/ proxyCustomElement(EzpIcon, [1, "ezp-icon", {
|
|
40
|
-
"name": [1],
|
|
41
|
-
"size": [1],
|
|
42
|
-
"framed": [4]
|
|
43
|
-
}]);
|
|
44
|
-
function defineCustomElement() {
|
|
45
|
-
if (typeof customElements === "undefined") {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const components = ["ezp-icon"];
|
|
49
|
-
components.forEach(tagName => { switch (tagName) {
|
|
50
|
-
case "ezp-icon":
|
|
51
|
-
if (!customElements.get(tagName)) {
|
|
52
|
-
customElements.define(tagName, EzpIcon);
|
|
53
|
-
}
|
|
54
|
-
break;
|
|
55
|
-
} });
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export { EzpIcon as E, defineCustomElement as d };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface EzpLabel extends Components.EzpLabel, HTMLElement {}
|
|
4
|
-
export const EzpLabel: {
|
|
5
|
-
prototype: EzpLabel;
|
|
6
|
-
new (): EzpLabel;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { HTMLElement, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const ezpLabelCss = ":host{display:block;min-width:var(--ezp-label-minWidth, auto);padding-bottom:1px;padding-top:1px}:host::before,:host::after{content:\"\";display:block;height:0}:host::before{margin-top:calc((var(--ezp-label-offset) + 1px) * -1)}:host::after{margin-bottom:calc((var(--ezp-label-offset) + 1px) * -1)}:host(.no-wrap){--ezp-label-whiteSpace:nowrap}:host(.ellipsis){--ezp-label-minWidth:0;--ezp-label-overflow:hidden;--ezp-label-textOverflow:ellipsis;--ezp-label-whiteSpace:nowrap;--ezp-label-width:100%}:host(.primary){--ezp-label-fontSize:17px;--ezp-label-lineHeight:24px;--ezp-label-letterSpacing:-0.0127756105em;--ezp-label-offset:6px}:host(.secondary){--ezp-label-fontSize:14px;--ezp-label-lineHeight:20px;--ezp-label-letterSpacing:-0.0062235443em;--ezp-label-offset:5px}:host(.tertiary){--ezp-label-fontSize:12px;--ezp-label-lineHeight:18px;--ezp-label-letterSpacing:0.0004907745em;--ezp-label-offset:5px}:host(.soft){--ezp-label-fontWeight:400}:host(.strong){--ezp-label-fontWeight:500}:host(.heavy){--ezp-label-fontWeight:600}#text{font-size:var(--ezp-label-fontSize);font-weight:var(--ezp-label-fontWeight);letter-spacing:var(--ezp-label-letterSpacing);line-height:var(--ezp-label-lineHeight);overflow:var(--ezp-label-overflow, visible);text-overflow:var(--ezp-label-textOverflow, clip);white-space:var(--ezp-label-whiteSpace, normal);width:var(--ezp-label-width, auto)}";
|
|
4
|
-
|
|
5
|
-
let EzpLabel = class extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* Properties
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
/** Description... */
|
|
16
|
-
this.ellipsis = false;
|
|
17
|
-
/** Description... */
|
|
18
|
-
this.level = 'secondary';
|
|
19
|
-
/** Description... */
|
|
20
|
-
this.noWrap = false;
|
|
21
|
-
/** Description... */
|
|
22
|
-
this.text = 'Label';
|
|
23
|
-
/** Description... */
|
|
24
|
-
this.weight = 'soft';
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* Render method
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
render() {
|
|
32
|
-
return (h(Host, { class: `${this.level} ${this.weight} ${this.ellipsis ? 'ellipsis' : ''} ${this.noWrap ? 'no-wrap' : ''}` }, h("div", { id: "text" }, this.text)));
|
|
33
|
-
}
|
|
34
|
-
static get style() { return ezpLabelCss; }
|
|
35
|
-
};
|
|
36
|
-
EzpLabel = /*@__PURE__*/ proxyCustomElement(EzpLabel, [1, "ezp-label", {
|
|
37
|
-
"ellipsis": [4],
|
|
38
|
-
"level": [1],
|
|
39
|
-
"noWrap": [4, "no-wrap"],
|
|
40
|
-
"text": [1],
|
|
41
|
-
"weight": [1]
|
|
42
|
-
}]);
|
|
43
|
-
function defineCustomElement() {
|
|
44
|
-
if (typeof customElements === "undefined") {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const components = ["ezp-label"];
|
|
48
|
-
components.forEach(tagName => { switch (tagName) {
|
|
49
|
-
case "ezp-label":
|
|
50
|
-
if (!customElements.get(tagName)) {
|
|
51
|
-
customElements.define(tagName, EzpLabel);
|
|
52
|
-
}
|
|
53
|
-
break;
|
|
54
|
-
} });
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export { EzpLabel as E, defineCustomElement as d };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface EzpPrinterSelection extends Components.EzpPrinterSelection, HTMLElement {}
|
|
4
|
-
export const EzpPrinterSelection: {
|
|
5
|
-
prototype: EzpPrinterSelection;
|
|
6
|
-
new (): EzpPrinterSelection;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface EzpPrinting extends Components.EzpPrinting, HTMLElement {}
|
|
4
|
-
export const EzpPrinting: {
|
|
5
|
-
prototype: EzpPrinting;
|
|
6
|
-
new (): EzpPrinting;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|