@sankhyalabs/sankhyablocks 1.1.27 → 1.1.28
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/cjs/{AssetsUtils-bd004f63.js → AssetsUtils-7e3c38f9.js} +1 -1
- package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-button_4.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal_2.cjs.entry.js +2 -2
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/{index-6ac5268e.js → index-682c98b2.js} +9 -7
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sankhyablocks.cjs.js +2 -2
- package/dist/cjs/snk-application.cjs.entry.js +291 -8
- package/dist/cjs/test-du.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/snk-application/snk-application.js +0 -3
- package/dist/components/snk-application.js +290 -7
- package/dist/esm/{AssetsUtils-98074c9c.js → AssetsUtils-6e6624dc.js} +1 -1
- package/dist/esm/ez-action-chip.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-button_4.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +1 -1
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-label-chip.entry.js +1 -1
- package/dist/esm/ez-modal_2.entry.js +2 -2
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/{index-df166135.js → index-35088a3f.js} +9 -7
- package/dist/esm/loader.js +2 -2
- package/dist/esm/sankhyablocks.js +2 -2
- package/dist/esm/snk-application.entry.js +291 -8
- package/dist/esm/test-du.entry.js +1 -1
- package/dist/sankhyablocks/{p-28a0dbf0.entry.js → p-0183d259.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9e22ec87.entry.js → p-01f23a70.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b3a83eaf.entry.js → p-07c32f68.entry.js} +1 -1
- package/dist/sankhyablocks/p-0f90499d.entry.js +1 -0
- package/dist/sankhyablocks/{p-9f7239df.entry.js → p-105724a3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e5f77a59.entry.js → p-2ac02d48.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ca29d028.entry.js → p-35364a97.entry.js} +1 -1
- package/dist/sankhyablocks/{p-afda7940.entry.js → p-3f6aa9a7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d3a5366d.entry.js → p-4811bc0a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9b33a005.entry.js → p-5f9af495.entry.js} +1 -1
- package/dist/sankhyablocks/p-60967cf0.js +1 -0
- package/dist/sankhyablocks/{p-c61c0e40.entry.js → p-70ad6c16.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7122cec4.entry.js → p-710bfffe.entry.js} +1 -1
- package/dist/sankhyablocks/{p-0a77ac95.entry.js → p-73397a0f.entry.js} +6 -6
- package/dist/sankhyablocks/p-85a9446b.js +2 -0
- package/dist/sankhyablocks/{p-1c423f5d.entry.js → p-89a1100f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1beadcaf.entry.js → p-8b543003.entry.js} +1 -1
- package/dist/sankhyablocks/{p-08e1cded.entry.js → p-9750632b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d5703a41.entry.js → p-a96272f7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5dc772be.entry.js → p-ac8842e5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-4c66200a.entry.js → p-ba64cc41.entry.js} +1 -1
- package/dist/sankhyablocks/{p-a9aba60a.entry.js → p-c1ede043.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e9e94d51.entry.js → p-d90ebb85.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b96a8d40.entry.js → p-e5355a29.entry.js} +1 -1
- package/dist/sankhyablocks/{p-a47e0537.entry.js → p-ef04b633.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1421b89a.entry.js → p-f6db07fb.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5ff3e300.entry.js → p-f80cabc7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-cd17abb1.entry.js → p-fcd9bd92.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components.d.ts +6 -2
- package/package.json +6 -6
- package/dist/sankhyablocks/p-126c4aaa.entry.js +0 -1
- package/dist/sankhyablocks/p-4763d5c2.js +0 -1
- package/dist/sankhyablocks/p-9f7e6e48.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-35088a3f.js';
|
|
2
2
|
import { MaskFormatter } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #000);--ez-text-input__input--background-color:var(--background--medium, #e0e0e0);--ez-text-input__input--border:var(--border--medium, 2px solid);--ez-text-input__input--border-color:var(--ez-text-input__input--background-color);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-text-input__input--disabled--color:var(--text--disable, #AFB6C0);--ez-text-input__input--error--border-color:#CC2936;--ez-text-input__message_box--font-size:var(--text--small, 12px);--ez-text-input__message_box--info--color:var(--color--success, #22085d);--ez-text-input__message_box--error--color:var(--color--error, #FF0000);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width)}input{width:100%;box-sizing:border-box;padding:var(--space--medium, 6px);font-weight:var(--text-weight--large, 600);height:var(--ez-text-input--height);border-radius:var(--ez-text-input--border-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color)}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color)}input:focus{outline:none;border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.hasError{color:var(--ez-text-input--color);border-color:var(--ez-text-input__input--error--border-color)}input.text--right{text-align:right}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input__message_box--font-size);color:var(--ez-text-input__message_box--info--color)}.hasError{color:var(--ez-text-input__message_box--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color)}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-35088a3f.js';
|
|
2
2
|
import { MaskFormatter, TimeFormatter, NumberUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { C as CSSVarsUtils } from './CSSVarsUtils-0787c3f3.js';
|
|
4
|
-
import { g as getSpritePath } from './AssetsUtils-
|
|
4
|
+
import { g as getSpritePath } from './AssetsUtils-6e6624dc.js';
|
|
5
5
|
|
|
6
6
|
const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}";
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-35088a3f.js';
|
|
2
2
|
|
|
3
3
|
const ezToastCss = ":host{--ez-toast__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--ez-toast__container-z-index:var(--more-visible, 2);--ez-toast__container--background-color:var(--color--secondary, #383c45);--ez-toast__icon--padding-left:var(--space--small, 6px)}.toast__container{position:fixed;display:flex;bottom:100px;z-index:var(--ez-toast__container-z-index);left:100px;width:280px;box-sizing:border-box;background-color:var(--ez-toast__container--background-color);border-radius:6px;align-items:center;padding:12px;visibility:hidden}.message__container{font-family:\"Sora\", \"Algerian\";text-shadow:0 0 0 #353535, 0 0 1px transparent;color:#FFFFFF;font-size:14px;width:90%;overflow:hidden;word-break:break-all;height:auto;-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box;text-overflow:ellipsis}.message__conteiner--icon{padding-left:var(--ez-toast__icon--padding-left);width:80%}.btn-close{margin-top:3px;display:flex;justify-content:flex-end;align-self:flex-start;padding:0;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:#FFFFFF;width:12px;height:12px;-webkit-mask-image:var(--ez-toast__btn__close__image);mask-image:var(--ez-toast__btn__close__image)}.toast__container--oppened{animation:fadein 0.5s, fadeout 0.5s 3s;visibility:visible}@-webkit-keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@-webkit-keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}@keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-35088a3f.js';
|
|
2
2
|
import { A as ApplicationUtils } from './ApplicationUtils-e0b6d857.js';
|
|
3
3
|
|
|
4
4
|
class RemoteFile {
|
|
@@ -59,7 +59,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
59
59
|
};
|
|
60
60
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
61
61
|
let scopeId = getScopeId(cmpMeta);
|
|
62
|
-
|
|
62
|
+
const style = styles.get(scopeId);
|
|
63
63
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
64
64
|
// so the fallback is to always use the document for the root node in those cases
|
|
65
65
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
@@ -149,7 +149,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
149
149
|
let slotName = null;
|
|
150
150
|
let simple = false;
|
|
151
151
|
let lastSimple = false;
|
|
152
|
-
|
|
152
|
+
const vNodeChildren = [];
|
|
153
153
|
const walk = (c) => {
|
|
154
154
|
for (let i = 0; i < c.length; i++) {
|
|
155
155
|
child = c[i];
|
|
@@ -358,7 +358,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
358
358
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
359
359
|
try {
|
|
360
360
|
if (!elm.tagName.includes('-')) {
|
|
361
|
-
|
|
361
|
+
const n = newValue == null ? '' : newValue;
|
|
362
362
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
363
363
|
if (memberName === 'list') {
|
|
364
364
|
isProp = false;
|
|
@@ -435,7 +435,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
435
435
|
};
|
|
436
436
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
437
437
|
// tslint:disable-next-line: prefer-const
|
|
438
|
-
|
|
438
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
439
439
|
let i = 0;
|
|
440
440
|
let elm;
|
|
441
441
|
let childNode;
|
|
@@ -768,7 +768,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
768
768
|
};
|
|
769
769
|
const updateFallbackSlotVisibility = (elm) => {
|
|
770
770
|
// tslint:disable-next-line: prefer-const
|
|
771
|
-
|
|
771
|
+
const childNodes = elm.childNodes;
|
|
772
772
|
let childNode;
|
|
773
773
|
let i;
|
|
774
774
|
let ilen;
|
|
@@ -821,8 +821,8 @@ const relocateSlotContent = (elm) => {
|
|
|
821
821
|
let relocateNodeData;
|
|
822
822
|
let j;
|
|
823
823
|
let i = 0;
|
|
824
|
-
|
|
825
|
-
|
|
824
|
+
const childNodes = elm.childNodes;
|
|
825
|
+
const ilen = childNodes.length;
|
|
826
826
|
for (; i < ilen; i++) {
|
|
827
827
|
childNode = childNodes[i];
|
|
828
828
|
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
@@ -1680,7 +1680,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1680
1680
|
if (module) {
|
|
1681
1681
|
return module[exportName];
|
|
1682
1682
|
}
|
|
1683
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1683
1684
|
return import(
|
|
1685
|
+
/* @vite-ignore */
|
|
1684
1686
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1685
1687
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1686
1688
|
/* webpackMode: "lazy" */
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-35088a3f.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.
|
|
4
|
+
Stencil Client Patch Esm v2.16.1 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchEsm = () => {
|
|
7
7
|
return promiseResolve();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-35088a3f.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Browser v2.
|
|
4
|
+
Stencil Client Patch Browser v2.16.1 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchBrowser = () => {
|
|
7
7
|
const importMeta = import.meta.url;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-35088a3f.js';
|
|
2
2
|
import { DataUnit, ChangeOperation, DateUtils, StringUtils, ApplicationContext } from '@sankhyalabs/core';
|
|
3
3
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-9943807e.js';
|
|
4
4
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
@@ -5651,6 +5651,280 @@ exports.ClientError = ClientError;
|
|
|
5651
5651
|
//# sourceMappingURL=types.js.map
|
|
5652
5652
|
});
|
|
5653
5653
|
|
|
5654
|
+
var graphqlWs = createCommonjsModule(function (module, exports) {
|
|
5655
|
+
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5656
|
+
__assign = Object.assign || function(t) {
|
|
5657
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5658
|
+
s = arguments[i];
|
|
5659
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
5660
|
+
t[p] = s[p];
|
|
5661
|
+
}
|
|
5662
|
+
return t;
|
|
5663
|
+
};
|
|
5664
|
+
return __assign.apply(this, arguments);
|
|
5665
|
+
};
|
|
5666
|
+
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5667
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5668
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5669
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5670
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
5671
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
5672
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
5673
|
+
});
|
|
5674
|
+
};
|
|
5675
|
+
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
5676
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
5677
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
5678
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
5679
|
+
function step(op) {
|
|
5680
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
5681
|
+
while (_) try {
|
|
5682
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
5683
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
5684
|
+
switch (op[0]) {
|
|
5685
|
+
case 0: case 1: t = op; break;
|
|
5686
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
5687
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
5688
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
5689
|
+
default:
|
|
5690
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
5691
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
5692
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
5693
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
5694
|
+
if (t[2]) _.ops.pop();
|
|
5695
|
+
_.trys.pop(); continue;
|
|
5696
|
+
}
|
|
5697
|
+
op = body.call(thisArg, _);
|
|
5698
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
5699
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
5700
|
+
}
|
|
5701
|
+
};
|
|
5702
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5703
|
+
exports.GraphQLWebSocketClient = void 0;
|
|
5704
|
+
|
|
5705
|
+
|
|
5706
|
+
var CONNECTION_INIT = 'connection_init';
|
|
5707
|
+
var CONNECTION_ACK = 'connection_ack';
|
|
5708
|
+
var PING = 'ping';
|
|
5709
|
+
var PONG = 'pong';
|
|
5710
|
+
var SUBSCRIBE = 'subscribe';
|
|
5711
|
+
var NEXT = 'next';
|
|
5712
|
+
var ERROR = 'error';
|
|
5713
|
+
var COMPLETE = 'complete';
|
|
5714
|
+
var GraphQLWebSocketMessage = /** @class */ (function () {
|
|
5715
|
+
function GraphQLWebSocketMessage(type, payload, id) {
|
|
5716
|
+
this._type = type;
|
|
5717
|
+
this._payload = payload;
|
|
5718
|
+
this._id = id;
|
|
5719
|
+
}
|
|
5720
|
+
Object.defineProperty(GraphQLWebSocketMessage.prototype, "type", {
|
|
5721
|
+
get: function () { return this._type; },
|
|
5722
|
+
enumerable: false,
|
|
5723
|
+
configurable: true
|
|
5724
|
+
});
|
|
5725
|
+
Object.defineProperty(GraphQLWebSocketMessage.prototype, "id", {
|
|
5726
|
+
get: function () { return this._id; },
|
|
5727
|
+
enumerable: false,
|
|
5728
|
+
configurable: true
|
|
5729
|
+
});
|
|
5730
|
+
Object.defineProperty(GraphQLWebSocketMessage.prototype, "payload", {
|
|
5731
|
+
get: function () { return this._payload; },
|
|
5732
|
+
enumerable: false,
|
|
5733
|
+
configurable: true
|
|
5734
|
+
});
|
|
5735
|
+
Object.defineProperty(GraphQLWebSocketMessage.prototype, "text", {
|
|
5736
|
+
get: function () {
|
|
5737
|
+
var result = { type: this.type };
|
|
5738
|
+
if (this.id != null && this.id != undefined)
|
|
5739
|
+
result.id = this.id;
|
|
5740
|
+
if (this.payload != null && this.payload != undefined)
|
|
5741
|
+
result.payload = this.payload;
|
|
5742
|
+
return JSON.stringify(result);
|
|
5743
|
+
},
|
|
5744
|
+
enumerable: false,
|
|
5745
|
+
configurable: true
|
|
5746
|
+
});
|
|
5747
|
+
GraphQLWebSocketMessage.parse = function (data, f) {
|
|
5748
|
+
var _a = JSON.parse(data), type = _a.type, payload = _a.payload, id = _a.id;
|
|
5749
|
+
return new GraphQLWebSocketMessage(type, f(payload), id);
|
|
5750
|
+
};
|
|
5751
|
+
return GraphQLWebSocketMessage;
|
|
5752
|
+
}());
|
|
5753
|
+
var GraphQLWebSocketClient = /** @class */ (function () {
|
|
5754
|
+
function GraphQLWebSocketClient(socket, _a) {
|
|
5755
|
+
var _this = this;
|
|
5756
|
+
var onInit = _a.onInit, onAcknowledged = _a.onAcknowledged, onPing = _a.onPing, onPong = _a.onPong;
|
|
5757
|
+
this.socketState = { acknowledged: false, lastRequestId: 0, subscriptions: {} };
|
|
5758
|
+
this.socket = socket;
|
|
5759
|
+
socket.onopen = function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
5760
|
+
var _a, _b, _c, _d;
|
|
5761
|
+
return __generator(this, function (_e) {
|
|
5762
|
+
switch (_e.label) {
|
|
5763
|
+
case 0:
|
|
5764
|
+
this.socketState.acknowledged = false;
|
|
5765
|
+
this.socketState.subscriptions = {};
|
|
5766
|
+
_b = (_a = socket).send;
|
|
5767
|
+
_c = ConnectionInit;
|
|
5768
|
+
if (!onInit) return [3 /*break*/, 2];
|
|
5769
|
+
return [4 /*yield*/, onInit()];
|
|
5770
|
+
case 1:
|
|
5771
|
+
_d = _e.sent();
|
|
5772
|
+
return [3 /*break*/, 3];
|
|
5773
|
+
case 2:
|
|
5774
|
+
_d = null;
|
|
5775
|
+
_e.label = 3;
|
|
5776
|
+
case 3:
|
|
5777
|
+
_b.apply(_a, [_c.apply(void 0, [_d]).text]);
|
|
5778
|
+
return [2 /*return*/];
|
|
5779
|
+
}
|
|
5780
|
+
});
|
|
5781
|
+
}); };
|
|
5782
|
+
socket.onclose = function (e) {
|
|
5783
|
+
_this.socketState.acknowledged = false;
|
|
5784
|
+
_this.socketState.subscriptions = {};
|
|
5785
|
+
};
|
|
5786
|
+
socket.onerror = function (e) {
|
|
5787
|
+
console.error(e);
|
|
5788
|
+
};
|
|
5789
|
+
socket.onmessage = function (e) {
|
|
5790
|
+
try {
|
|
5791
|
+
var message = parseMessage(e.data);
|
|
5792
|
+
switch (message.type) {
|
|
5793
|
+
case CONNECTION_ACK: {
|
|
5794
|
+
if (_this.socketState.acknowledged) {
|
|
5795
|
+
console.warn("Duplicate CONNECTION_ACK message ignored");
|
|
5796
|
+
}
|
|
5797
|
+
else {
|
|
5798
|
+
_this.socketState.acknowledged = true;
|
|
5799
|
+
if (onAcknowledged)
|
|
5800
|
+
onAcknowledged(message.payload);
|
|
5801
|
+
}
|
|
5802
|
+
return;
|
|
5803
|
+
}
|
|
5804
|
+
case PING: {
|
|
5805
|
+
if (onPing)
|
|
5806
|
+
onPing(message.payload).then(function (r) { return socket.send(Pong(r).text); });
|
|
5807
|
+
else
|
|
5808
|
+
socket.send(Pong(null).text);
|
|
5809
|
+
return;
|
|
5810
|
+
}
|
|
5811
|
+
case PONG: {
|
|
5812
|
+
if (onPong)
|
|
5813
|
+
onPong(message.payload);
|
|
5814
|
+
return;
|
|
5815
|
+
}
|
|
5816
|
+
}
|
|
5817
|
+
if (!_this.socketState.acknowledged) {
|
|
5818
|
+
// Web-socket connection not acknowledged
|
|
5819
|
+
return;
|
|
5820
|
+
}
|
|
5821
|
+
if (message.id === undefined || message.id === null || !_this.socketState.subscriptions[message.id]) {
|
|
5822
|
+
// No subscription identifer or subscription indentifier is not found
|
|
5823
|
+
return;
|
|
5824
|
+
}
|
|
5825
|
+
var _a = _this.socketState.subscriptions[message.id], query = _a.query, variables = _a.variables, subscriber = _a.subscriber;
|
|
5826
|
+
switch (message.type) {
|
|
5827
|
+
case NEXT: {
|
|
5828
|
+
if (!message.payload.errors && message.payload.data) {
|
|
5829
|
+
subscriber.next && subscriber.next(message.payload.data);
|
|
5830
|
+
}
|
|
5831
|
+
if (message.payload.errors) {
|
|
5832
|
+
subscriber.error && subscriber.error(new types.ClientError(__assign(__assign({}, message.payload), { status: 200 }), { query: query, variables: variables }));
|
|
5833
|
+
}
|
|
5834
|
+
return;
|
|
5835
|
+
}
|
|
5836
|
+
case ERROR: {
|
|
5837
|
+
subscriber.error && subscriber.error(new types.ClientError({ errors: message.payload, status: 200 }, { query: query, variables: variables }));
|
|
5838
|
+
return;
|
|
5839
|
+
}
|
|
5840
|
+
case COMPLETE: {
|
|
5841
|
+
subscriber.complete && subscriber.complete();
|
|
5842
|
+
delete _this.socketState.subscriptions[message.id];
|
|
5843
|
+
return;
|
|
5844
|
+
}
|
|
5845
|
+
}
|
|
5846
|
+
}
|
|
5847
|
+
catch (e) {
|
|
5848
|
+
// Unexpected errors while handling graphql-ws message
|
|
5849
|
+
console.error(e);
|
|
5850
|
+
socket.close(1006);
|
|
5851
|
+
}
|
|
5852
|
+
socket.close(4400, "Unknown graphql-ws message.");
|
|
5853
|
+
};
|
|
5854
|
+
}
|
|
5855
|
+
GraphQLWebSocketClient.prototype.makeSubscribe = function (query, operationName, variables, subscriber) {
|
|
5856
|
+
var _this = this;
|
|
5857
|
+
var subscriptionId = (this.socketState.lastRequestId++).toString();
|
|
5858
|
+
this.socketState.subscriptions[subscriptionId] = { query: query, variables: variables, subscriber: subscriber };
|
|
5859
|
+
this.socket.send(Subscribe(subscriptionId, { query: query, operationName: operationName, variables: variables }).text);
|
|
5860
|
+
return function () {
|
|
5861
|
+
_this.socket.send(Complete(subscriptionId).text);
|
|
5862
|
+
delete _this.socketState.subscriptions[subscriptionId];
|
|
5863
|
+
};
|
|
5864
|
+
};
|
|
5865
|
+
GraphQLWebSocketClient.prototype.rawRequest = function (query, variables) {
|
|
5866
|
+
var _this = this;
|
|
5867
|
+
return new Promise(function (resolve, reject) {
|
|
5868
|
+
var result;
|
|
5869
|
+
_this.rawSubscribe(query, {
|
|
5870
|
+
next: function (data, extensions) { return (result = { data: data, extensions: extensions }); },
|
|
5871
|
+
error: reject,
|
|
5872
|
+
complete: function () { return resolve(result); },
|
|
5873
|
+
}, variables);
|
|
5874
|
+
});
|
|
5875
|
+
};
|
|
5876
|
+
GraphQLWebSocketClient.prototype.request = function (document, variables) {
|
|
5877
|
+
var _this = this;
|
|
5878
|
+
return new Promise(function (resolve, reject) {
|
|
5879
|
+
var result;
|
|
5880
|
+
_this.subscribe(document, {
|
|
5881
|
+
next: function (data) { return (result = data); },
|
|
5882
|
+
error: reject,
|
|
5883
|
+
complete: function () { return resolve(result); },
|
|
5884
|
+
}, variables);
|
|
5885
|
+
});
|
|
5886
|
+
};
|
|
5887
|
+
GraphQLWebSocketClient.prototype.subscribe = function (document, subscriber, variables) {
|
|
5888
|
+
var _a = dist.resolveRequestDocument(document), query = _a.query, operationName = _a.operationName;
|
|
5889
|
+
return this.makeSubscribe(query, operationName, variables, subscriber);
|
|
5890
|
+
};
|
|
5891
|
+
GraphQLWebSocketClient.prototype.rawSubscribe = function (query, subscriber, variables) {
|
|
5892
|
+
return this.makeSubscribe(query, undefined, variables, subscriber);
|
|
5893
|
+
};
|
|
5894
|
+
GraphQLWebSocketClient.prototype.ping = function (payload) {
|
|
5895
|
+
this.socket.send(Ping(payload).text);
|
|
5896
|
+
};
|
|
5897
|
+
GraphQLWebSocketClient.prototype.close = function () {
|
|
5898
|
+
this.socket.close(1000);
|
|
5899
|
+
};
|
|
5900
|
+
GraphQLWebSocketClient.PROTOCOL = "graphql-transport-ws";
|
|
5901
|
+
return GraphQLWebSocketClient;
|
|
5902
|
+
}());
|
|
5903
|
+
exports.GraphQLWebSocketClient = GraphQLWebSocketClient;
|
|
5904
|
+
// Helper functions
|
|
5905
|
+
function parseMessage(data, f) {
|
|
5906
|
+
if (f === void 0) { f = function (a) { return a; }; }
|
|
5907
|
+
var m = GraphQLWebSocketMessage.parse(data, f);
|
|
5908
|
+
return m;
|
|
5909
|
+
}
|
|
5910
|
+
function ConnectionInit(payload) {
|
|
5911
|
+
return new GraphQLWebSocketMessage(CONNECTION_INIT, payload);
|
|
5912
|
+
}
|
|
5913
|
+
function Ping(payload) {
|
|
5914
|
+
return new GraphQLWebSocketMessage(PING, payload, undefined);
|
|
5915
|
+
}
|
|
5916
|
+
function Pong(payload) {
|
|
5917
|
+
return new GraphQLWebSocketMessage(PONG, payload, undefined);
|
|
5918
|
+
}
|
|
5919
|
+
function Subscribe(id, payload) {
|
|
5920
|
+
return new GraphQLWebSocketMessage(SUBSCRIBE, payload, id);
|
|
5921
|
+
}
|
|
5922
|
+
function Complete(id) {
|
|
5923
|
+
return new GraphQLWebSocketMessage(COMPLETE, undefined, id);
|
|
5924
|
+
}
|
|
5925
|
+
//# sourceMappingURL=graphql-ws.js.map
|
|
5926
|
+
});
|
|
5927
|
+
|
|
5654
5928
|
var dist = createCommonjsModule(function (module, exports) {
|
|
5655
5929
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5656
5930
|
__assign = Object.assign || function(t) {
|
|
@@ -5733,7 +6007,7 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
|
|
|
5733
6007
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5734
6008
|
};
|
|
5735
6009
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5736
|
-
exports.gql = exports.batchRequests = exports.request = exports.rawRequest = exports.GraphQLClient = exports.ClientError = void 0;
|
|
6010
|
+
exports.GraphQLWebSocketClient = exports.gql = exports.resolveRequestDocument = exports.batchRequests = exports.request = exports.rawRequest = exports.GraphQLClient = exports.ClientError = void 0;
|
|
5737
6011
|
var cross_fetch_1 = __importStar(browserPonyfill), CrossFetch = cross_fetch_1;
|
|
5738
6012
|
|
|
5739
6013
|
|
|
@@ -5867,7 +6141,7 @@ var GraphQLClient = /** @class */ (function () {
|
|
|
5867
6141
|
url: url,
|
|
5868
6142
|
query: rawRequestOptions.query,
|
|
5869
6143
|
variables: rawRequestOptions.variables,
|
|
5870
|
-
headers: __assign(__assign({}, resolveHeaders(headers)), resolveHeaders(rawRequestOptions.requestHeaders)),
|
|
6144
|
+
headers: __assign(__assign({}, resolveHeaders(callOrIdentity(headers))), resolveHeaders(rawRequestOptions.requestHeaders)),
|
|
5871
6145
|
operationName: operationName,
|
|
5872
6146
|
fetch: fetch,
|
|
5873
6147
|
method: method,
|
|
@@ -5893,7 +6167,7 @@ var GraphQLClient = /** @class */ (function () {
|
|
|
5893
6167
|
url: url,
|
|
5894
6168
|
query: query,
|
|
5895
6169
|
variables: requestOptions.variables,
|
|
5896
|
-
headers: __assign(__assign({}, resolveHeaders(headers)), resolveHeaders(requestOptions.requestHeaders)),
|
|
6170
|
+
headers: __assign(__assign({}, resolveHeaders(callOrIdentity(headers))), resolveHeaders(requestOptions.requestHeaders)),
|
|
5897
6171
|
operationName: operationName,
|
|
5898
6172
|
fetch: fetch,
|
|
5899
6173
|
method: method,
|
|
@@ -5930,7 +6204,7 @@ var GraphQLClient = /** @class */ (function () {
|
|
|
5930
6204
|
url: url,
|
|
5931
6205
|
query: queries,
|
|
5932
6206
|
variables: variables,
|
|
5933
|
-
headers: __assign(__assign({}, resolveHeaders(headers)), resolveHeaders(batchRequestOptions.requestHeaders)),
|
|
6207
|
+
headers: __assign(__assign({}, resolveHeaders(callOrIdentity(headers))), resolveHeaders(batchRequestOptions.requestHeaders)),
|
|
5934
6208
|
operationName: undefined,
|
|
5935
6209
|
fetch: fetch,
|
|
5936
6210
|
method: method,
|
|
@@ -5976,7 +6250,7 @@ exports.GraphQLClient = GraphQLClient;
|
|
|
5976
6250
|
function makeRequest(_a) {
|
|
5977
6251
|
var url = _a.url, query = _a.query, variables = _a.variables, headers = _a.headers, operationName = _a.operationName, fetch = _a.fetch, _b = _a.method, method = _b === void 0 ? 'POST' : _b, fetchOptions = _a.fetchOptions;
|
|
5978
6252
|
return __awaiter(this, void 0, void 0, function () {
|
|
5979
|
-
var fetcher, isBathchingQuery, response, result, successfullyReceivedData, headers_1, status_1, errorResult;
|
|
6253
|
+
var fetcher, isBathchingQuery, response, result, successfullyReceivedData, successfullyPassedErrorPolicy, headers_1, status_1, rest, data, errorResult;
|
|
5980
6254
|
return __generator(this, function (_c) {
|
|
5981
6255
|
switch (_c.label) {
|
|
5982
6256
|
case 0:
|
|
@@ -6000,9 +6274,12 @@ function makeRequest(_a) {
|
|
|
6000
6274
|
var data = _a.data;
|
|
6001
6275
|
return !data;
|
|
6002
6276
|
}) : !!result.data;
|
|
6003
|
-
|
|
6277
|
+
successfullyPassedErrorPolicy = !result.errors || fetchOptions.errorPolicy === 'all' || fetchOptions.errorPolicy === 'ignore';
|
|
6278
|
+
if (response.ok && successfullyPassedErrorPolicy && successfullyReceivedData) {
|
|
6004
6279
|
headers_1 = response.headers, status_1 = response.status;
|
|
6005
|
-
|
|
6280
|
+
rest = __rest(result, ["errors"]);
|
|
6281
|
+
data = fetchOptions.errorPolicy === 'ignore' ? rest : result;
|
|
6282
|
+
return [2 /*return*/, __assign(__assign({}, (isBathchingQuery ? { data: data } : data)), { headers: headers_1, status: status_1 })];
|
|
6006
6283
|
}
|
|
6007
6284
|
else {
|
|
6008
6285
|
errorResult = typeof result === 'string' ? { error: result } : result;
|
|
@@ -6097,6 +6374,10 @@ function resolveRequestDocument(document) {
|
|
|
6097
6374
|
var operationName = extractOperationName(document);
|
|
6098
6375
|
return { query: printer.print(document), operationName: operationName };
|
|
6099
6376
|
}
|
|
6377
|
+
exports.resolveRequestDocument = resolveRequestDocument;
|
|
6378
|
+
function callOrIdentity(value) {
|
|
6379
|
+
return typeof value === 'function' ? value() : value;
|
|
6380
|
+
}
|
|
6100
6381
|
/**
|
|
6101
6382
|
* Convenience passthrough template tag to get the benefits of tooling for the gql template tag. This does not actually parse the input into a GraphQL DocumentNode like graphql-tag package does. It just returns the string with any variables given interpolated. Can save you a bit of performance and having to install another package.
|
|
6102
6383
|
*
|
|
@@ -6128,6 +6409,8 @@ function HeadersInstanceToPlainObject(headers) {
|
|
|
6128
6409
|
});
|
|
6129
6410
|
return o;
|
|
6130
6411
|
}
|
|
6412
|
+
|
|
6413
|
+
Object.defineProperty(exports, "GraphQLWebSocketClient", { enumerable: true, get: function () { return graphqlWs.GraphQLWebSocketClient; } });
|
|
6131
6414
|
//# sourceMappingURL=index.js.map
|
|
6132
6415
|
});
|
|
6133
6416
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as e,g as h}from"./p-
|
|
1
|
+
import{r as s,c as t,h as e,g as h}from"./p-85a9446b.js";import{C as i}from"./p-811b4b9d.js";const o=class{constructor(e){s(this,e),this.ezChange=t(this,"ezChange",7),this.showPopup=t(this,"showPopup",7),this.enabled=!0,this.showSelectedValue=!0,this.showOptionValue=!0}updateValue(){this._comboElement&&(this._comboElement.value=this.value)}async setFocus(){this._comboElement.setFocus()}async setBlur(){this._comboElement.setBlur()}onComboChange(s){s.stopPropagation(),this.value=s.detail,this.ezChange.emit(s.detail)}componentDidLoad(){i.applyVarsTextInput(this._elem,this._comboElement)}render(){return e("ez-combo-box",{ref:s=>this._comboElement=s,value:this.value,label:this.label,enabled:this.enabled,errorMessage:this.errorMessage,optionLoader:this.optionLoader,searchMode:!0,onEzChange:s=>this.onComboChange(s),showSelectedValue:this.showSelectedValue,showOptionValue:this.showOptionValue})}get _elem(){return h(this)}static get watchers(){return{value:["updateValue"]}}};o.style=":host{width:100%}";export{o as ez_search}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,c as e,f as r,h as l}from"./p-9f7e6e48.js";import{FloatingManager as t}from"@sankhyalabs/core";const i=class{constructor(r){a(this,r),this.ezChange=e(this,"ezChange",7),this._firstRender=!0,this._todayLabel="Hoje",this._weekDayLabels=["D","S","T","Q","Q","S","S"],this._monthLabels=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],this._hoursLabel=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],this._minutosLabel=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],this.value=new Date,this.floating=!1,this.time=!1,this.showSeconds=!1}async show(a,e,r,l){this.floating&&(this._floatingID=t.float(this._box,this._container,{autoClose:!0,top:a,left:e,bottom:r,right:l}),window.requestAnimationFrame((()=>{this._box.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})})),this.scroll())}async fitVertical(a,e){const r=this._container.getBoundingClientRect().bottom+this._calendarHeight;(window.innerHeight||document.documentElement.clientHeight)>r?this.show(a+"px",void 0,"unset"):this.show("unset",void 0,e+"px")}async hide(){void 0!==this._floatingID&&(t.close(this._floatingID),this._floatingID=void 0)}valueChanged(){this.value&&(this._currentPosition.setTime(this.value.getTime()),this._currentPosition.setDate(1))}getMonthLabel(){return this._monthLabels[this._currentPosition.getMonth()]+" "+this._currentPosition.getFullYear()}isSelectedDate(a){return!!this.value&&this.value.getDate()==a.getDate()&&this.value.getMonth()==a.getMonth()&&this.value.getFullYear()==a.getFullYear()}changeMonth(a){this._currentPosition.setMonth(this._currentPosition.getMonth()+a),r(this)}selectDate(a){let e=a;this.value&&(this.time||this.showSeconds)&&(e.setHours(this.value.getHours()),e.setMinutes(this.value.getMinutes()),e.setSeconds(this.showSeconds?this.value.getSeconds():0)),this.value=e,this.ezChange.emit(this.value)}selectHours(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),a,this.value.getMinutes(),this.value.getSeconds()),this.ezChange.emit(this.value)}selectMinutes(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),this.value.getHours(),a,this.value.getSeconds()),this.ezChange.emit(this.value)}selectSeconds(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),this.value.getHours(),this.value.getMinutes(),a),this.ezChange.emit(this.value)}updateScroll(a){if(a){const{scrollHeight:e,clientHeight:r,scrollTop:l}=a;e-r-Math.ceil(l)>0?a.classList.add("endHidden"):a.classList.remove("endHidden")}}componentDidRender(){this.floating&&this._firstRender&&(this._calendarHeight=this._box.clientHeight,this._box.remove(),this._firstRender=!1),this.updateScroll(this._hoursScroll),this.updateScroll(this._minutesScroll),this.updateScroll(this._secondsScroll)}componentDidLoad(){this.scroll()}scroll(){(this.time||this.showSeconds)&&(this._hoursScroll.scrollTop=this._hoursSelect.offsetTop-64,this._minutesScroll.scrollTop=this._minutesSelect.offsetTop-64,this.updateScroll(this._hoursScroll),this.updateScroll(this._minutesScroll),this.showSeconds&&(this._secondsScroll.scrollTop=this._secondsSelect.offsetTop-64,this.updateScroll(this._secondsScroll)))}render(){null==this._currentPosition&&(this._currentPosition=new Date,this.value&&this._currentPosition.setTime(this.value.getTime()),this._currentPosition.setDate(1));const a=new Date;return a.setTime(this._currentPosition.getTime()),a.setDate(1-a.getDay()),l("section",{ref:a=>this._container=a},l("div",{ref:a=>this._box=a,class:"calendar__container"},l("div",{class:"calendar"},l("div",{class:"calendar__header"},l("button",{class:"calendar__btn-previous",onClick:()=>this.changeMonth(-1)}),l("label",{class:"calendar__lbl-month"},this.getMonthLabel()),l("button",{class:"calendar__btn-next",onClick:()=>this.changeMonth(1)})),l("div",{class:"calendar__body"},l("div",{class:"calendar__line"},this._weekDayLabels.map((a=>l("div",{class:"calendar__cell calendar__cell--unselectable"},a)))),[0,7,14,21,28,35].map((e=>l("div",{class:"calendar__line"},[0,1,2,3,4,5,6].map((r=>{const t=new Date;t.setTime(a.getTime()),t.setDate(t.getDate()+e+r);let i="calendar__cell";return this._currentPosition.getMonth()!=t.getMonth()?i+=" calendar__cell--secondary":this.isSelectedDate(t)&&(i+=" calendar__cell--selected"),l("div",{class:i,onClick:()=>this.selectDate(t)},t.getDate())})))))),l("div",{class:"calendar__footer"},l("button",{class:"calendar__btn-today",onClick:()=>this.selectDate(new Date)},this._todayLabel))),(this.time||this.showSeconds)&&l("div",{class:"calendar-time"},l("div",{class:"calendar-time__header"},l("div",null,"H"),l("div",{class:"separatorTime"},":"),l("div",null,"M"),this.showSeconds&&l("div",{class:"separatorTime"},":"),this.showSeconds&&l("div",null,"S")),l("div",{class:"calendar__body ",style:{display:"flex",paddingLeft:"12px",paddingRight:"12px"}},l("div",{class:"calendar__column",ref:a=>this._hoursScroll=a,onScroll:()=>this.updateScroll(this._hoursScroll)},this._hoursLabel.map(((a,e)=>e===this.value.getHours()?l("div",{style:{display:"flex"},ref:a=>this._hoursSelect=a},l("div",{class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectHours(e)},a),l("div",{class:"separatorTime"},":")):l("div",{style:{display:"flex"}},l("div",{class:"calendar__cell",onClick:()=>this.selectHours(e)},a),l("div",{class:"separatorTime"},":"))))),l("div",{class:"calendar__column",ref:a=>this._minutesScroll=a,onScroll:()=>this.updateScroll(this._minutesScroll)},this._minutosLabel.map(((a,e)=>e===this.value.getMinutes()?l("div",{style:{display:"flex"},ref:a=>this._minutesSelect=a},l("div",{class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectMinutes(e)},a),this.showSeconds&&l("div",{class:"separatorTime"},":")):l("div",{style:{display:"flex"}},l("div",{class:"calendar__cell",onClick:()=>this.selectMinutes(e)},a),this.showSeconds&&l("div",{class:"separatorTime"},":"))))),this.showSeconds&&l("div",{class:"calendar__column",ref:a=>this._secondsScroll=a,onScroll:()=>this.updateScroll(this._secondsScroll)},this._minutosLabel.map(((a,e)=>e===this.value.getSeconds()?l("div",{class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectSeconds(e),ref:a=>this._secondsSelect=a},a):l("div",{class:"calendar__cell",onClick:()=>this.selectSeconds(e)},a))))))))}static get watchers(){return{value:["valueChanged"]}}};i.style=':host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px) var(--space--small, 6px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-container--z-index:var(--more-visible, 2);--ez-calendar__header-line--stroke:1px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z"/></svg>\');--ez-calendar__nav-btn--next-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z"/></svg>\');--ez-calendar__cell--margin:0px 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--primary-300, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar__container{display:flex;z-index:var(--more-visible, 2)}.calendar{z-index:var(--more-visible, 2);display:flex;flex-direction:column;background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:\'\';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--extra-small, 10px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color);color:var(--ez-calendar__cell--over--color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;font-weight:var(--text-weight--large, 600);font-size:var(--title--extra-small, 12px);padding:0px;font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendar-time{margin-left:-10px;display:flex;flex-direction:column;padding:12px 0px 0px 10px;background-color:var(--ez-calendar__time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:136px;padding:0px;margin:0px;overflow:auto}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendar-time__header{padding-left:var(--space--small, 6px);padding-right:var(--space--small, 6px);display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9;padding:0px 1px;line-height:16px;font-size:17px;font-weight:normal}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}.calendar__column .calendar__cell{margin:0px;padding:1.5px 1.5px}';export{i as ez_calendar}
|
|
1
|
+
import{r as a,c as e,f as r,h as l}from"./p-85a9446b.js";import{FloatingManager as t}from"@sankhyalabs/core";const i=class{constructor(r){a(this,r),this.ezChange=e(this,"ezChange",7),this._firstRender=!0,this._todayLabel="Hoje",this._weekDayLabels=["D","S","T","Q","Q","S","S"],this._monthLabels=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],this._hoursLabel=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],this._minutosLabel=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],this.value=new Date,this.floating=!1,this.time=!1,this.showSeconds=!1}async show(a,e,r,l){this.floating&&(this._floatingID=t.float(this._box,this._container,{autoClose:!0,top:a,left:e,bottom:r,right:l}),window.requestAnimationFrame((()=>{this._box.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})})),this.scroll())}async fitVertical(a,e){const r=this._container.getBoundingClientRect().bottom+this._calendarHeight;(window.innerHeight||document.documentElement.clientHeight)>r?this.show(a+"px",void 0,"unset"):this.show("unset",void 0,e+"px")}async hide(){void 0!==this._floatingID&&(t.close(this._floatingID),this._floatingID=void 0)}valueChanged(){this.value&&(this._currentPosition.setTime(this.value.getTime()),this._currentPosition.setDate(1))}getMonthLabel(){return this._monthLabels[this._currentPosition.getMonth()]+" "+this._currentPosition.getFullYear()}isSelectedDate(a){return!!this.value&&this.value.getDate()==a.getDate()&&this.value.getMonth()==a.getMonth()&&this.value.getFullYear()==a.getFullYear()}changeMonth(a){this._currentPosition.setMonth(this._currentPosition.getMonth()+a),r(this)}selectDate(a){let e=a;this.value&&(this.time||this.showSeconds)&&(e.setHours(this.value.getHours()),e.setMinutes(this.value.getMinutes()),e.setSeconds(this.showSeconds?this.value.getSeconds():0)),this.value=e,this.ezChange.emit(this.value)}selectHours(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),a,this.value.getMinutes(),this.value.getSeconds()),this.ezChange.emit(this.value)}selectMinutes(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),this.value.getHours(),a,this.value.getSeconds()),this.ezChange.emit(this.value)}selectSeconds(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),this.value.getHours(),this.value.getMinutes(),a),this.ezChange.emit(this.value)}updateScroll(a){if(a){const{scrollHeight:e,clientHeight:r,scrollTop:l}=a;e-r-Math.ceil(l)>0?a.classList.add("endHidden"):a.classList.remove("endHidden")}}componentDidRender(){this.floating&&this._firstRender&&(this._calendarHeight=this._box.clientHeight,this._box.remove(),this._firstRender=!1),this.updateScroll(this._hoursScroll),this.updateScroll(this._minutesScroll),this.updateScroll(this._secondsScroll)}componentDidLoad(){this.scroll()}scroll(){(this.time||this.showSeconds)&&(this._hoursScroll.scrollTop=this._hoursSelect.offsetTop-64,this._minutesScroll.scrollTop=this._minutesSelect.offsetTop-64,this.updateScroll(this._hoursScroll),this.updateScroll(this._minutesScroll),this.showSeconds&&(this._secondsScroll.scrollTop=this._secondsSelect.offsetTop-64,this.updateScroll(this._secondsScroll)))}render(){null==this._currentPosition&&(this._currentPosition=new Date,this.value&&this._currentPosition.setTime(this.value.getTime()),this._currentPosition.setDate(1));const a=new Date;return a.setTime(this._currentPosition.getTime()),a.setDate(1-a.getDay()),l("section",{ref:a=>this._container=a},l("div",{ref:a=>this._box=a,class:"calendar__container"},l("div",{class:"calendar"},l("div",{class:"calendar__header"},l("button",{class:"calendar__btn-previous",onClick:()=>this.changeMonth(-1)}),l("label",{class:"calendar__lbl-month"},this.getMonthLabel()),l("button",{class:"calendar__btn-next",onClick:()=>this.changeMonth(1)})),l("div",{class:"calendar__body"},l("div",{class:"calendar__line"},this._weekDayLabels.map((a=>l("div",{class:"calendar__cell calendar__cell--unselectable"},a)))),[0,7,14,21,28,35].map((e=>l("div",{class:"calendar__line"},[0,1,2,3,4,5,6].map((r=>{const t=new Date;t.setTime(a.getTime()),t.setDate(t.getDate()+e+r);let i="calendar__cell";return this._currentPosition.getMonth()!=t.getMonth()?i+=" calendar__cell--secondary":this.isSelectedDate(t)&&(i+=" calendar__cell--selected"),l("div",{class:i,onClick:()=>this.selectDate(t)},t.getDate())})))))),l("div",{class:"calendar__footer"},l("button",{class:"calendar__btn-today",onClick:()=>this.selectDate(new Date)},this._todayLabel))),(this.time||this.showSeconds)&&l("div",{class:"calendar-time"},l("div",{class:"calendar-time__header"},l("div",null,"H"),l("div",{class:"separatorTime"},":"),l("div",null,"M"),this.showSeconds&&l("div",{class:"separatorTime"},":"),this.showSeconds&&l("div",null,"S")),l("div",{class:"calendar__body ",style:{display:"flex",paddingLeft:"12px",paddingRight:"12px"}},l("div",{class:"calendar__column",ref:a=>this._hoursScroll=a,onScroll:()=>this.updateScroll(this._hoursScroll)},this._hoursLabel.map(((a,e)=>e===this.value.getHours()?l("div",{style:{display:"flex"},ref:a=>this._hoursSelect=a},l("div",{class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectHours(e)},a),l("div",{class:"separatorTime"},":")):l("div",{style:{display:"flex"}},l("div",{class:"calendar__cell",onClick:()=>this.selectHours(e)},a),l("div",{class:"separatorTime"},":"))))),l("div",{class:"calendar__column",ref:a=>this._minutesScroll=a,onScroll:()=>this.updateScroll(this._minutesScroll)},this._minutosLabel.map(((a,e)=>e===this.value.getMinutes()?l("div",{style:{display:"flex"},ref:a=>this._minutesSelect=a},l("div",{class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectMinutes(e)},a),this.showSeconds&&l("div",{class:"separatorTime"},":")):l("div",{style:{display:"flex"}},l("div",{class:"calendar__cell",onClick:()=>this.selectMinutes(e)},a),this.showSeconds&&l("div",{class:"separatorTime"},":"))))),this.showSeconds&&l("div",{class:"calendar__column",ref:a=>this._secondsScroll=a,onScroll:()=>this.updateScroll(this._secondsScroll)},this._minutosLabel.map(((a,e)=>e===this.value.getSeconds()?l("div",{class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectSeconds(e),ref:a=>this._secondsSelect=a},a):l("div",{class:"calendar__cell",onClick:()=>this.selectSeconds(e)},a))))))))}static get watchers(){return{value:["valueChanged"]}}};i.style=':host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px) var(--space--small, 6px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-container--z-index:var(--more-visible, 2);--ez-calendar__header-line--stroke:1px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z"/></svg>\');--ez-calendar__nav-btn--next-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z"/></svg>\');--ez-calendar__cell--margin:0px 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--primary-300, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar__container{display:flex;z-index:var(--more-visible, 2)}.calendar{z-index:var(--more-visible, 2);display:flex;flex-direction:column;background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:\'\';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--extra-small, 10px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color);color:var(--ez-calendar__cell--over--color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;font-weight:var(--text-weight--large, 600);font-size:var(--title--extra-small, 12px);padding:0px;font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendar-time{margin-left:-10px;display:flex;flex-direction:column;padding:12px 0px 0px 10px;background-color:var(--ez-calendar__time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:136px;padding:0px;margin:0px;overflow:auto}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendar-time__header{padding-left:var(--space--small, 6px);padding-right:var(--space--small, 6px);display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9;padding:0px 1px;line-height:16px;font-size:17px;font-weight:normal}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}.calendar__column .calendar__cell{margin:0px;padding:1.5px 1.5px}';export{i as ez_calendar}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c as e,h as
|
|
1
|
+
import{r,c as e,h as a}from"./p-85a9446b.js";const o=class{constructor(a){r(this,a),this.actionClick=e(this,"actionClick",7),this.enabled=!0}render(){return a("div",{onClick:()=>this.actionClick.emit(),class:"label__container"},a("slot",{name:"leftIcon"}),a("label",null,this.label),a("slot",{name:"rightIcon"}))}};o.style=":host{--ez-action-chip--height:36px;--ez-action-chip--border-radius:var(--border--radius-large, 24px);--ez-action-chip__border:1px solid;--ez-action-chip__border-color-strokes:var(--color--strokes, #DCE0E8);--ez-action-chip--font-size:var(--text--medium, 14px);--ez-action-chip--font-family:var(--font-pattern, Arial);--ez-action-chip--font-weight:var(--text-weight--large, 500);--ez-action-chip__label--title--primary:var(--title--primary, #919191);--ez-action-chip__label-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-action-chip__label__default--background-color--hover:var(--color--primary-200, #f2faf8);--ez-action-chip__label__default--border-color--hover:var(--color--primary-600, #007a5a)}.label__container{width:fit-content;display:flex;flex-wrap:wrap;position:relative;background-color:#FFFFFF;align-items:center;align-self:center;cursor:pointer;color:var(--ez-action-chip__label--title--primary);fill:var(--ez-action-chip__label--title--primary);border:var(--ez-action-chip__border);border-radius:var(--ez-action-chip--border-radius);border-color:var(--ez-action-chip__border-color-strokes);padding-right:var(--space--medium, 12px);padding-left:var(--space--medium, 12px)}.label__container:hover{border-color:var(--ez-action-chip__label__default--border-color--hover);background-color:var(--ez-action-chip__label__default--background-color--hover)}label{display:flex;align-items:center;font-weight:var(--text-weight--large, 600);cursor:pointer;height:var(--ez-action-chip--height);font-family:var(--ez-action-chip--font-family);font-size:var(--ez-action-chip--font-size)}";export{o as ez_action_chip}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,c as t,h as a}from"./p-85a9446b.js";const i=class{constructor(a){o(this,a),this.applicationLoaded=t(this,"applicationLoaded",7)}componentWillLoad(){}componentDidLoad(){this.applicationLoaded.emit(!0)}render(){return a("div",null)}};i.style="";export{i as ez_application}
|