@sankhyalabs/sankhyablocks 1.4.0-beta.8 → 1.4.0-beta.9
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/{constants-aebcc2f5.js → constants-9056ca9e.js} +15 -0
- package/dist/cjs/{index-188190ee.js → index-20e8b68a.js} +48 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +1 -1
- package/dist/cjs/snk-config-modal.cjs.entry.js +2 -2
- package/dist/cjs/snk-config-options.cjs.entry.js +139 -72
- package/dist/cjs/snk-configurator_6.cjs.entry.js +4 -4
- package/dist/cjs/snk-crud.cjs.entry.js +3 -3
- package/dist/cjs/snk-data-unit.cjs.entry.js +1 -1
- package/dist/cjs/snk-field-config_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-detail.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-period.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-personalized.cjs.entry.js +3 -2
- package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +2 -2
- package/dist/cjs/snk-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
- package/dist/cjs/snk-tab-config.cjs.entry.js +2 -2
- package/dist/cjs/{taskbar-elements-4c2c6704.js → taskbar-elements-9a4b1e19.js} +1 -1
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +2 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +2 -1
- package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +139 -72
- package/dist/collection/lib/utils/constants.js +14 -0
- package/dist/components/constants.js +15 -1
- package/dist/components/snk-config-options2.js +139 -72
- package/dist/components/snk-filter-modal2.js +2 -1
- package/dist/components/snk-filter-personalized.js +2 -1
- package/dist/components/snk-form-config2.js +1 -1
- package/dist/components/snk-tab-config2.js +1 -1
- package/dist/esm/{constants-c4e3341e.js → constants-c6039d3d.js} +15 -1
- package/dist/esm/{index-bafb2cef.js → index-e4121713.js} +48 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-application.entry.js +1 -1
- package/dist/esm/snk-config-modal.entry.js +2 -2
- package/dist/esm/snk-config-options.entry.js +140 -73
- package/dist/esm/snk-configurator_6.entry.js +5 -5
- package/dist/esm/snk-crud.entry.js +3 -3
- package/dist/esm/snk-data-unit.entry.js +1 -1
- package/dist/esm/snk-field-config_2.entry.js +2 -2
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-detail.entry.js +1 -1
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +1 -1
- package/dist/esm/snk-filter-period.entry.js +1 -1
- package/dist/esm/snk-filter-personalized.entry.js +3 -2
- package/dist/esm/snk-filter-search.entry.js +1 -1
- package/dist/esm/snk-filter-text.entry.js +1 -1
- package/dist/esm/snk-form-config.entry.js +2 -2
- package/dist/esm/snk-form.entry.js +1 -1
- package/dist/esm/snk-pesquisa.entry.js +1 -1
- package/dist/esm/snk-tab-config.entry.js +2 -2
- package/dist/esm/{taskbar-elements-2035b1c7.js → taskbar-elements-e2ed0536.js} +1 -1
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/{p-8cd8977c.entry.js → p-029ae4e4.entry.js} +1 -1
- package/dist/sankhyablocks/p-12ad2a19.entry.js +1 -0
- package/dist/sankhyablocks/{p-ce789145.entry.js → p-1feabfc7.entry.js} +1 -1
- package/dist/sankhyablocks/p-2284c850.entry.js +1 -0
- package/dist/sankhyablocks/{p-1963b46f.entry.js → p-2b891c4a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d1ae76ec.entry.js → p-2dc76d79.entry.js} +1 -1
- package/dist/sankhyablocks/p-366aa0f5.entry.js +1 -0
- package/dist/sankhyablocks/{p-ae302037.entry.js → p-36d2d9cf.entry.js} +1 -1
- package/dist/sankhyablocks/{p-916068ff.entry.js → p-3a276f3d.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ccdf59eb.entry.js → p-44ce5b90.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6c61416a.entry.js → p-6988f4a6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-af306302.entry.js → p-776ff4d1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-cf81e313.entry.js → p-7b4a4a50.entry.js} +1 -1
- package/dist/sankhyablocks/p-9ba3df4c.js +2 -0
- package/dist/sankhyablocks/{p-cc85ba53.entry.js → p-9dc4426d.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ee906940.entry.js → p-a17a4fca.entry.js} +1 -1
- package/dist/sankhyablocks/p-a5b26df2.js +1 -0
- package/dist/sankhyablocks/{p-f9084ecb.entry.js → p-cc4bef9f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-31631fb6.entry.js → p-d1ac09c9.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ad658f44.js → p-d9fbb26f.js} +1 -1
- package/dist/sankhyablocks/{p-857c4735.entry.js → p-deb1f523.entry.js} +1 -1
- package/dist/sankhyablocks/p-e871aa92.entry.js +1 -0
- package/dist/sankhyablocks/{p-04ad681a.entry.js → p-e9beab79.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-form/subcomponents/snk-config-options/snk-config-options.d.ts +17 -7
- package/dist/types/lib/utils/constants.d.ts +14 -0
- package/package.json +2 -2
- package/dist/sankhyablocks/p-26c503a6.entry.js +0 -1
- package/dist/sankhyablocks/p-434e0dcf.entry.js +0 -1
- package/dist/sankhyablocks/p-9f2c5fac.entry.js +0 -1
- package/dist/sankhyablocks/p-af11b0e7.js +0 -1
- package/dist/sankhyablocks/p-ddb03141.js +0 -2
- package/dist/sankhyablocks/p-fa75fba5.entry.js +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { ModalAction, ModalButtonStatus } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
|
|
3
3
|
import { ArrayUtils } from '@sankhyalabs/core';
|
|
4
|
+
import { CheckMode } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
5
|
|
|
5
6
|
const SnkFilterModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
7
|
constructor() {
|
|
@@ -27,7 +28,7 @@ const SnkFilterModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
27
28
|
}
|
|
28
29
|
buildItems(list) {
|
|
29
30
|
return list.map(item => {
|
|
30
|
-
return (h("button", { onClick: () => this.updateValue(item.id), class: "ez-padding--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item ez-align--middle ez-margin-bottom--small" }, h("ez-check", { id: `checkbox_${item.id}`, tabIndex: "-1", class: "sc-snk-filter-bar snk-filter-bar__filter-modal-item__check", onEzChange: evt => this.updateValue(item.id, evt.detail), enabled: item.enabled, value: item.active, mode:
|
|
31
|
+
return (h("button", { onClick: () => this.updateValue(item.id), class: "ez-padding--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item ez-align--middle ez-margin-bottom--small" }, h("ez-check", { id: `checkbox_${item.id}`, tabIndex: "-1", class: "sc-snk-filter-bar snk-filter-bar__filter-modal-item__check", onEzChange: evt => this.updateValue(item.id, evt.detail), enabled: item.enabled, value: item.active, mode: CheckMode.SWITCH }), h("div", { class: "ez-text ez-title--primary ez-text--medium ez-margin-left--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item__label" }, item.label)));
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
34
|
itemKeyBoardSelect(event, item) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { UserInterface, ApplicationContext } from '@sankhyalabs/core';
|
|
3
3
|
import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
|
4
|
+
import { CheckMode } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
5
|
import { F as FilterItemType } from './filter-item-type.enum.js';
|
|
5
6
|
|
|
6
7
|
const SnkFilterPersonalized$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
@@ -52,7 +53,7 @@ const SnkFilterPersonalized$1 = /*@__PURE__*/ proxyCustomElement(class extends H
|
|
|
52
53
|
return h("ez-search", { id: elemId, suppressEmptyOption: true, value: this.getValue(param, index), onEzChange: evt => this.setValue(index, evt.detail), label: param.label, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, param) });
|
|
53
54
|
case UserInterface.SWITCH:
|
|
54
55
|
case UserInterface.CHECKBOX:
|
|
55
|
-
const mode = UserInterface.SWITCH === param.type ?
|
|
56
|
+
const mode = UserInterface.SWITCH === param.type ? CheckMode.SWITCH : CheckMode.REGULAR;
|
|
56
57
|
return h("ez-check", { id: elemId, class: "ez-padding-bottom--medium", mode: mode, value: this.getValue(param, index), label: param.label, onEzChange: evt => this.setValue(index, evt.detail) });
|
|
57
58
|
case UserInterface.DECIMALNUMBER:
|
|
58
59
|
case UserInterface.INTEGERNUMBER:
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { a as draggable_bundle, d as defineCustomElement$1 } from './snk-tab-config2.js';
|
|
3
3
|
import { ObjectUtils, ArrayUtils, ApplicationContext } from '@sankhyalabs/core';
|
|
4
4
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
5
|
-
import { C as CONFIG_EVENTS,
|
|
5
|
+
import { C as CONFIG_EVENTS, b as TAB_NAMES, A as ACTION_CONFIG } from './constants.js';
|
|
6
6
|
import { a as UserConfigType } from './form-config-fetcher.js';
|
|
7
7
|
import { d as defineCustomElement$3 } from './snk-config-options2.js';
|
|
8
8
|
import { d as defineCustomElement$2 } from './snk-field-config2.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement as HTMLElement$1, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as createCommonjsModule } from './_commonjsHelpers.js';
|
|
3
3
|
import { ApplicationContext } from '@sankhyalabs/core';
|
|
4
|
-
import { C as CONFIG_EVENTS, K as KEY_EVENTS,
|
|
4
|
+
import { C as CONFIG_EVENTS, K as KEY_EVENTS, c as TYPE_ACTIONS, b as TAB_NAMES } from './constants.js';
|
|
5
5
|
|
|
6
6
|
var draggable_bundle = createCommonjsModule(function (module, exports) {
|
|
7
7
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -56,5 +56,19 @@ const TYPE_ACTIONS = {
|
|
|
56
56
|
const TAB_NAMES = {
|
|
57
57
|
main: "__main"
|
|
58
58
|
};
|
|
59
|
+
const TAGS_BY_TYPE = {
|
|
60
|
+
LONGTEXT: "ez-text-area",
|
|
61
|
+
FILE: "ez-upload",
|
|
62
|
+
DATE: "ez-date-input",
|
|
63
|
+
TIME: "ez-time",
|
|
64
|
+
DATETIME: "ez-date-time-input",
|
|
65
|
+
DEFAULT: "ez-text-input",
|
|
66
|
+
SWITCH: "ez-check",
|
|
67
|
+
CHECKBOX: "ez-check",
|
|
68
|
+
OPTIONSELECTOR: "ez-combo-box",
|
|
69
|
+
SEARCH: "ez-search",
|
|
70
|
+
INTEGERNUMBER: "ez-number-input",
|
|
71
|
+
DECIMALNUMBER: "ez-number-input"
|
|
72
|
+
};
|
|
59
73
|
|
|
60
|
-
export { ACTION_CONFIG as A, CONFIG_EVENTS as C, DEFAULT_TYPE as D, KEY_EVENTS as K, TAB_NAMES as T, VARS_BY_TYPE as V,
|
|
74
|
+
export { ACTION_CONFIG as A, CONFIG_EVENTS as C, DEFAULT_TYPE as D, KEY_EVENTS as K, TAB_NAMES as T, VARS_BY_TYPE as V, TAGS_BY_TYPE as a, TYPE_ACTIONS as b, VIEW_MODE as c };
|
|
@@ -31,6 +31,7 @@ const uniqueTime = (key, measureText) => {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
34
|
+
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
34
35
|
/**
|
|
35
36
|
* Default style mode id
|
|
36
37
|
*/
|
|
@@ -339,6 +340,31 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
339
340
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
340
341
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
341
342
|
}
|
|
343
|
+
else if (memberName === 'style') {
|
|
344
|
+
// update style attribute, css properties and values
|
|
345
|
+
{
|
|
346
|
+
for (const prop in oldValue) {
|
|
347
|
+
if (!newValue || newValue[prop] == null) {
|
|
348
|
+
if (prop.includes('-')) {
|
|
349
|
+
elm.style.removeProperty(prop);
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
elm.style[prop] = '';
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
for (const prop in newValue) {
|
|
358
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
359
|
+
if (prop.includes('-')) {
|
|
360
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
361
|
+
}
|
|
362
|
+
else {
|
|
363
|
+
elm.style[prop] = newValue[prop];
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
342
368
|
else if (memberName === 'key')
|
|
343
369
|
;
|
|
344
370
|
else if (memberName === 'ref') {
|
|
@@ -407,16 +433,36 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
407
433
|
}
|
|
408
434
|
catch (e) { }
|
|
409
435
|
}
|
|
436
|
+
/**
|
|
437
|
+
* Need to manually update attribute if:
|
|
438
|
+
* - memberName is not an attribute
|
|
439
|
+
* - if we are rendering the host element in order to reflect attribute
|
|
440
|
+
* - if it's a SVG, since properties might not work in <svg>
|
|
441
|
+
* - if the newValue is null/undefined or 'false'.
|
|
442
|
+
*/
|
|
443
|
+
let xlink = false;
|
|
444
|
+
{
|
|
445
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
|
|
446
|
+
memberName = ln;
|
|
447
|
+
xlink = true;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
410
450
|
if (newValue == null || newValue === false) {
|
|
411
451
|
if (newValue !== false || elm.getAttribute(memberName) === '') {
|
|
412
|
-
{
|
|
452
|
+
if (xlink) {
|
|
453
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
454
|
+
}
|
|
455
|
+
else {
|
|
413
456
|
elm.removeAttribute(memberName);
|
|
414
457
|
}
|
|
415
458
|
}
|
|
416
459
|
}
|
|
417
460
|
else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
|
|
418
461
|
newValue = newValue === true ? '' : newValue;
|
|
419
|
-
{
|
|
462
|
+
if (xlink) {
|
|
463
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
464
|
+
}
|
|
465
|
+
else {
|
|
420
466
|
elm.setAttribute(memberName, newValue);
|
|
421
467
|
}
|
|
422
468
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -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-e4121713.js';
|
|
2
2
|
import { WaitingChangeException, WarningException, ErrorException, ObjectUtils, DataType, DataUnit, StringUtils, ChangeOperation, DateUtils, DependencyType, ApplicationContext, ErrorTracking } from '@sankhyalabs/core';
|
|
3
3
|
import { d as dist, D as DataFetcher, R as ResourceFetcher, U as UrlUtils, F as FormConfigFetcher } from './form-config-fetcher-96c6c2dc.js';
|
|
4
4
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-e4121713.js';
|
|
2
2
|
import { ApplicationContext } from '@sankhyalabs/core';
|
|
3
|
-
import {
|
|
3
|
+
import { c as VIEW_MODE } from './constants-c6039d3d.js';
|
|
4
4
|
import { C as ConfigurableElementsStorage } from './configurableElementsStorage-cdc144b5.js';
|
|
5
5
|
|
|
6
6
|
const snkConfigModalCss = ".sc-snk-config-modal-h{--snk-config-modal__button-close--padding-left:var(--space--medium, 12px);--snk-config-modal__title--color:var(--title--primary, #2B3A54);--snk-config-modal__title--font-family:var(--font-pattern, \"Sora\");--snk-config-modal__title--font-size:var(--title--large, 20px);--snk-config-modal__title--font-weight:var(--text-weight--extra-large, 700);--snk-config-modal__subtitle--color:var(--title--primary, #2B3A54);--snk-config-modal__subtitle--font-family:var(--font-pattern, \"Sora\");--snk-config-modal__subtitle--font-size:var(--text--medium, 14px);--snk-config-modal__subtitle--font-weight:var(--text-weight--large, 600);--snk-config-modal__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-config-modal__scrollbar--width:var(--space--medium, 12px);--snk-config-modal__scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--snk-config-modal__scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}@media screen and (min-width: 480px){.sc-snk-config-modal-h{width:359px;max-width:359px}}.snk-config-modal__button-config.sc-snk-config-modal{--ez-button--min-width:100%}.snk-config-modal__header.sc-snk-config-modal{display:flex;justify-content:space-between;align-items:center;width:100%}.snk-config-modal__title.sc-snk-config-modal{display:flex;margin:0;line-height:normal;letter-spacing:0em;text-align:left;color:var(--snk-config-modal__title--color);font-size:var(--snk-config-modal__title--font-size);font-family:var(--snk-config-modal__title--font-family);font-weight:var(--snk-config-modal__title--font-weight)}.snk-config-modal__subtitle.sc-snk-config-modal{display:flex;margin:0;padding-top:var(--space--medium);padding-bottom:var(--space--small);color:var(--snk-config-modal__subtitle--color);font-size:var(--snk-config-modal__subtitle--font-size);font-family:var(--snk-config-modal__subtitle--font-family);font-weight:var(--snk-config-modal__subtitle--font-weight)}.snk-config-modal__button-close.sc-snk-config-modal{padding-left:var(--snk-config-modal__button-close--padding-left)}.snk-config-modal__main.sc-snk-config-modal{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-config-modal__scrollbar--background-color-primary) var(--snk-config-modal__scrollbar--background-color-secondary)}.snk-config-modal__main.sc-snk-config-modal::-webkit-scrollbar-track{background-color:var(--snk-config-modal__scrollbar--background-color-secondary)}.snk-config-modal__main.sc-snk-config-modal::-webkit-scrollbar-thumb{background-color:var(--snk-config-modal__scrollbar--background-color-primary);border-radius:var(--snk-config-modal__scrollbar--border-radius)}.snk-config-modal__main.sc-snk-config-modal::-webkit-scrollbar{background-color:var(--snk-config-modal__scrollbar--background-color-secondary);width:var(--snk-config-modal__scrollbar--width);max-width:var(--snk-config-modal__scrollbar--width);min-width:var(--snk-config-modal__scrollbar--width)}";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { ApplicationContext } from '@sankhyalabs/core';
|
|
3
|
-
import { formFieldBuilder } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-e4121713.js';
|
|
2
|
+
import { UserInterface, ObjectUtils, ApplicationContext } from '@sankhyalabs/core';
|
|
4
3
|
import { DataType, getConvertedValue } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
|
5
|
-
import {
|
|
4
|
+
import { CheckMode } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
5
|
+
import { V as VARS_BY_TYPE, D as DEFAULT_TYPE, a as TAGS_BY_TYPE } from './constants-c6039d3d.js';
|
|
6
6
|
|
|
7
7
|
const snkConfigOptionsCss = ".sc-snk-config-options-h{width:100%;border:2px solid var(--color--secondary-200);border-radius:15px}.config-options__switch-row.sc-snk-config-options{margin-top:-30px}";
|
|
8
8
|
|
|
@@ -32,71 +32,20 @@ const SnkConfigOptions = class {
|
|
|
32
32
|
enabledValueDefault() {
|
|
33
33
|
var _a, _b, _c;
|
|
34
34
|
const field = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField((_b = this.fieldConfig) === null || _b === void 0 ? void 0 : _b.name);
|
|
35
|
-
|
|
35
|
+
const allowDefault = (_c = field === null || field === void 0 ? void 0 : field.properties) === null || _c === void 0 ? void 0 : _c.allowDefault;
|
|
36
|
+
const hasVariableVar = VARS_BY_TYPE.UserInterface.hasOwnProperty(field === null || field === void 0 ? void 0 : field.userInterface);
|
|
37
|
+
if ((allowDefault == undefined || allowDefault === "true") && hasVariableVar) {
|
|
36
38
|
return true;
|
|
37
39
|
}
|
|
38
40
|
return false;
|
|
39
41
|
}
|
|
40
|
-
|
|
41
|
-
var _a;
|
|
42
|
-
if (field != undefined) {
|
|
43
|
-
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(field);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
getMessage(key, params) {
|
|
47
|
-
return this._application.messagesBuilder.getMessage(key, params);
|
|
48
|
-
}
|
|
49
|
-
getDefaultType() {
|
|
50
|
-
var _a;
|
|
51
|
-
return (_a = this.fieldConfig.defaultValue.type) !== null && _a !== void 0 ? _a : DEFAULT_TYPE.fixed;
|
|
52
|
-
}
|
|
53
|
-
getValidatedValue(fieldValue) {
|
|
42
|
+
isAllowDefault() {
|
|
54
43
|
var _a, _b;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const field = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField((_b = this.fieldConfig) === null || _b === void 0 ? void 0 : _b.name);
|
|
59
|
-
const dataType = field === null || field === void 0 ? void 0 : field.dataType;
|
|
60
|
-
if (dataType == undefined) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
const value = dataType !== DataType.OBJECT && dataType !== DataType.DATE
|
|
64
|
-
&& typeof fieldValue === "object" && "value" in fieldValue
|
|
65
|
-
? fieldValue.value
|
|
66
|
-
: fieldValue;
|
|
67
|
-
return dataType === DataType.OBJECT ? JSON.stringify(value) : value;
|
|
68
|
-
}
|
|
69
|
-
onChange(evt) {
|
|
70
|
-
this.fieldConfig.defaultValue.value = this.getValidatedValue(evt === null || evt === void 0 ? void 0 : evt.detail);
|
|
71
|
-
this.configOptionsChanged.emit(this.fieldConfig);
|
|
72
|
-
}
|
|
73
|
-
onSearch(searchArgument) {
|
|
74
|
-
if (this._application != undefined && this.fieldConfig != undefined) {
|
|
75
|
-
return this._application.executeSearch(searchArgument, this.fieldConfig.name, this.dataUnit);
|
|
44
|
+
const allowDefault = (_b = (_a = this._fieldProperties) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.allowDefault;
|
|
45
|
+
if (allowDefault == undefined) {
|
|
46
|
+
return true;
|
|
76
47
|
}
|
|
77
|
-
|
|
78
|
-
loadDataField() {
|
|
79
|
-
this._element.querySelectorAll("[data-field-name]")
|
|
80
|
-
.forEach((field) => {
|
|
81
|
-
var _a, _b, _c, _d;
|
|
82
|
-
field.enabled = ((_b = (_a = this._fieldProperties) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.allowDefault) === "true";
|
|
83
|
-
if (field.enabled) {
|
|
84
|
-
const value = this.fieldConfig.defaultValue.value;
|
|
85
|
-
if (value != undefined) {
|
|
86
|
-
const fieldName = field.dataset.fieldName;
|
|
87
|
-
const dataType = (_d = (_c = this.dataUnit) === null || _c === void 0 ? void 0 : _c.getField(fieldName)) === null || _d === void 0 ? void 0 : _d.dataType;
|
|
88
|
-
field.value = getConvertedValue(dataType, value);
|
|
89
|
-
}
|
|
90
|
-
field.addEventListener(CONFIG_EVENTS.fieldChanged, (evt) => {
|
|
91
|
-
return this.onChange(evt);
|
|
92
|
-
});
|
|
93
|
-
if (field.tagName === "EZ-SEARCH") {
|
|
94
|
-
field.optionLoader = (searchArgument) => {
|
|
95
|
-
return this.onSearch(searchArgument);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
});
|
|
48
|
+
return allowDefault === "true";
|
|
100
49
|
}
|
|
101
50
|
loadDefaultValue() {
|
|
102
51
|
var _a;
|
|
@@ -118,6 +67,19 @@ const SnkConfigOptions = class {
|
|
|
118
67
|
this._defaultType = this.fieldConfig.defaultValue.type;
|
|
119
68
|
}
|
|
120
69
|
}
|
|
70
|
+
getFieldProperties(field) {
|
|
71
|
+
var _a;
|
|
72
|
+
if (field != undefined) {
|
|
73
|
+
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(field);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
getMessage(key, params) {
|
|
77
|
+
return this._application.messagesBuilder.getMessage(key, params);
|
|
78
|
+
}
|
|
79
|
+
getDefaultType() {
|
|
80
|
+
var _a;
|
|
81
|
+
return (_a = this.fieldConfig.defaultValue.type) !== null && _a !== void 0 ? _a : DEFAULT_TYPE.fixed;
|
|
82
|
+
}
|
|
121
83
|
getEnabledByProperty(property) {
|
|
122
84
|
const properties = this._fieldProperties;
|
|
123
85
|
if (properties != undefined && properties[property] === true) {
|
|
@@ -132,25 +94,130 @@ const SnkConfigOptions = class {
|
|
|
132
94
|
}
|
|
133
95
|
return this.fieldConfig[property];
|
|
134
96
|
}
|
|
97
|
+
getValidatedValue(fieldValue) {
|
|
98
|
+
var _a, _b;
|
|
99
|
+
if (fieldValue == undefined) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const field = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField((_b = this.fieldConfig) === null || _b === void 0 ? void 0 : _b.name);
|
|
103
|
+
const dataType = field === null || field === void 0 ? void 0 : field.dataType;
|
|
104
|
+
if (dataType == undefined) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const value = (fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.waitmessage) != undefined ? undefined :
|
|
108
|
+
dataType !== DataType.OBJECT && dataType !== DataType.DATE
|
|
109
|
+
&& typeof fieldValue === "object"
|
|
110
|
+
? fieldValue.value
|
|
111
|
+
: fieldValue;
|
|
112
|
+
return dataType === DataType.OBJECT ? JSON.stringify(value) : value;
|
|
113
|
+
}
|
|
114
|
+
buildInputDefault({ value, enabled, label, name, required, userInterface }, properties = undefined, mode = undefined) {
|
|
115
|
+
let options;
|
|
116
|
+
let precision = 0;
|
|
117
|
+
let prettyPrecision = 0;
|
|
118
|
+
const TagName = userInterface == undefined || TAGS_BY_TYPE[userInterface] == undefined
|
|
119
|
+
? TAGS_BY_TYPE.DEFAULT
|
|
120
|
+
: TAGS_BY_TYPE[userInterface];
|
|
121
|
+
if (userInterface === UserInterface.OPTIONSELECTOR) {
|
|
122
|
+
const prop = properties === null || properties === void 0 ? void 0 : properties.options;
|
|
123
|
+
if (typeof prop === "string") {
|
|
124
|
+
const parsed = ObjectUtils.stringToObject(prop);
|
|
125
|
+
options = Object.keys(parsed).map(key => { return { value: key, label: parsed[key] }; });
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
options = prop;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
else if (userInterface === UserInterface.DECIMALNUMBER) {
|
|
132
|
+
precision = Number((properties === null || properties === void 0 ? void 0 : properties.precision) || 2);
|
|
133
|
+
prettyPrecision = Number((properties === null || properties === void 0 ? void 0 : properties.prettyPrecision) || precision);
|
|
134
|
+
}
|
|
135
|
+
return h(TagName, Object.assign({ value: value, enabled: enabled, label: label, "data-field-name": name, key: name, onEzChange: (evt) => this.onChange(evt === null || evt === void 0 ? void 0 : evt.detail) }, (this.getConditionalAttributes(userInterface, required, options, precision, prettyPrecision, mode))));
|
|
136
|
+
}
|
|
137
|
+
getConditionalAttributes(userInterface, required, options, precision, prettyPrecision, mode) {
|
|
138
|
+
switch (userInterface) {
|
|
139
|
+
case UserInterface.SEARCH:
|
|
140
|
+
return {
|
|
141
|
+
suppressEmptyOption: required,
|
|
142
|
+
optionLoader: (searchArgument) => this.onSearch(searchArgument)
|
|
143
|
+
};
|
|
144
|
+
case UserInterface.OPTIONSELECTOR:
|
|
145
|
+
return {
|
|
146
|
+
suppressEmptyOption: required,
|
|
147
|
+
options
|
|
148
|
+
};
|
|
149
|
+
case UserInterface.CHECKBOX:
|
|
150
|
+
case UserInterface.SWITCH:
|
|
151
|
+
return {
|
|
152
|
+
mode
|
|
153
|
+
};
|
|
154
|
+
case UserInterface.INTEGERNUMBER:
|
|
155
|
+
case UserInterface.DECIMALNUMBER:
|
|
156
|
+
return {
|
|
157
|
+
precision,
|
|
158
|
+
prettyPrecision,
|
|
159
|
+
onEzStartChange: (evt) => this.onChange(evt === null || evt === void 0 ? void 0 : evt.detail)
|
|
160
|
+
};
|
|
161
|
+
case UserInterface.DATE:
|
|
162
|
+
case UserInterface.DATETIME:
|
|
163
|
+
case UserInterface.TIME:
|
|
164
|
+
return {
|
|
165
|
+
onEzStartChange: (evt) => this.onChange(evt === null || evt === void 0 ? void 0 : evt.detail)
|
|
166
|
+
};
|
|
167
|
+
default:
|
|
168
|
+
return {};
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
onChange(fieldValue) {
|
|
172
|
+
this.fieldConfig.defaultValue.value = this.getValidatedValue(fieldValue);
|
|
173
|
+
this.configOptionsChanged.emit(this.fieldConfig);
|
|
174
|
+
}
|
|
175
|
+
onSearch(searchArgument) {
|
|
176
|
+
if (this._application != undefined && this.fieldConfig != undefined) {
|
|
177
|
+
return this._application.executeSearch(searchArgument, this.fieldConfig.name, this.dataUnit);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
buildField(field) {
|
|
181
|
+
const { config, descriptor } = field;
|
|
182
|
+
const { name, label, readOnly, required, defaultValue } = config;
|
|
183
|
+
const { userInterface, properties } = descriptor;
|
|
184
|
+
const enabled = (properties === null || properties === void 0 ? void 0 : properties.allowDefault) != undefined ? properties.allowDefault === "true" : !readOnly;
|
|
185
|
+
let value;
|
|
186
|
+
if (enabled) {
|
|
187
|
+
value = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value;
|
|
188
|
+
if (value != undefined) {
|
|
189
|
+
value = getConvertedValue(descriptor === null || descriptor === void 0 ? void 0 : descriptor.dataType, value);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
const configField = { value, enabled, label, name, required, userInterface };
|
|
193
|
+
switch (userInterface) {
|
|
194
|
+
case UserInterface.SWITCH:
|
|
195
|
+
return this.buildInputDefault(configField, undefined, CheckMode.SWITCH);
|
|
196
|
+
case UserInterface.CHECKBOX:
|
|
197
|
+
return this.buildInputDefault(configField, undefined, CheckMode.REGULAR);
|
|
198
|
+
case UserInterface.OPTIONSELECTOR:
|
|
199
|
+
case UserInterface.DECIMALNUMBER:
|
|
200
|
+
return this.buildInputDefault(configField, properties);
|
|
201
|
+
default:
|
|
202
|
+
return this.buildInputDefault(configField);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
135
205
|
componentWillLoad() {
|
|
136
206
|
var _a;
|
|
137
|
-
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
138
207
|
this.loadDefaultValue();
|
|
208
|
+
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
139
209
|
this._fieldProperties = this.getFieldProperties((_a = this.fieldConfig) === null || _a === void 0 ? void 0 : _a.name);
|
|
140
210
|
}
|
|
141
|
-
componentDidRender() {
|
|
142
|
-
this.loadDataField();
|
|
143
|
-
}
|
|
144
211
|
render() {
|
|
145
|
-
var _a, _b
|
|
146
|
-
return (h(Host, null, h("div", { id: this.idConfig }, h("div", { class: "ez-row ez-padding--medium" }, h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-text-input", { label: this.getMessage("snkConfigOptions.label.nameField"), value: (_a = this.fieldConfig) === null || _a === void 0 ? void 0 : _a.label, onEzChange: (evt) => { this.fieldConfig.label = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-combo-box", { label: this.getMessage("snkConfigOptions.label.typeValueDefault"), suppressEmptyOption: true, enabled:
|
|
147
|
-
h("ez-combo-box", { label: this.getMessage("snkConfigOptions.label.valueDefault"), enabled: this.
|
|
212
|
+
var _a, _b;
|
|
213
|
+
return (h(Host, null, h("div", { id: this.idConfig }, h("div", { class: "ez-row ez-padding--medium" }, h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-text-input", { label: this.getMessage("snkConfigOptions.label.nameField"), value: (_a = this.fieldConfig) === null || _a === void 0 ? void 0 : _a.label, onEzChange: (evt) => { this.fieldConfig.label = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-combo-box", { label: this.getMessage("snkConfigOptions.label.typeValueDefault"), suppressEmptyOption: true, enabled: this.enabledValueDefault(), onEzChange: (evt) => { var _a; return this.onConfigDefault((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); }, value: this.getDefaultType() }, h("option", { value: DEFAULT_TYPE.fixed }, this.getMessage("snkConfigOptions.options.valueFixed")), h("option", { value: DEFAULT_TYPE.variable }, this.getMessage("snkConfigOptions.options.variable")))), h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, this._defaultType === DEFAULT_TYPE.variable ?
|
|
214
|
+
h("ez-combo-box", { label: this.getMessage("snkConfigOptions.label.valueDefault"), enabled: this.isAllowDefault(), onEzChange: (evt) => { var _a; this.fieldConfig.defaultValue.value = (_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value; this.configOptionsChanged.emit(this.fieldConfig); }, value: this.fieldConfig.defaultValue.value, options: this.buildOptions() })
|
|
148
215
|
:
|
|
149
|
-
((
|
|
150
|
-
|
|
216
|
+
((_b = this._fieldProperties) === null || _b === void 0 ? void 0 : _b.userInterface) &&
|
|
217
|
+
this.buildField({
|
|
151
218
|
descriptor: this._fieldProperties,
|
|
152
219
|
config: this.fieldConfig
|
|
153
|
-
})
|
|
220
|
+
}))), h("div", { class: "ez-row ez-padding--medium config-options__switch-row" }, h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-check", { mode: CheckMode.SWITCH, label: this.getMessage("snkConfigOptions.label.clearDuplicate"), value: this.fieldConfig.cleanOnCopy, onEzChange: (evt) => { this.fieldConfig.cleanOnCopy = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-check", { mode: CheckMode.SWITCH, label: this.getMessage("snkConfigOptions.label.requiredField"), enabled: this.getEnabledByProperty("required"), value: this.getValueByProperty("required"), onEzChange: (evt) => { this.fieldConfig.required = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-check", { mode: CheckMode.SWITCH, label: this.getMessage("snkConfigOptions.label.protectedField"), enabled: this.getEnabledByProperty("readOnly"), value: this.getValueByProperty("readOnly"), onEzChange: (evt) => { this.fieldConfig.readOnly = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } }))))));
|
|
154
221
|
}
|
|
155
222
|
get _element() { return getElement(this); }
|
|
156
223
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-e4121713.js';
|
|
2
2
|
import { ObjectUtils, ApplicationContext, DataType, StringUtils, ErrorException, FloatingManager, ArrayUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
|
-
import { C as CONFIG_EVENTS,
|
|
3
|
+
import { ApplicationUtils, CheckMode } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
|
+
import { C as CONFIG_EVENTS, c as VIEW_MODE } from './constants-c6039d3d.js';
|
|
5
5
|
import { C as ConfigurableElementsStorage } from './configurableElementsStorage-cdc144b5.js';
|
|
6
6
|
import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
|
|
7
7
|
import { ModalAction, ModalButtonStatus } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
|
|
8
8
|
import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
|
9
|
-
import { T as TaskbarElement, V as VisibleWhenForbidden, A as AuthorizationElements, b as buildElem, a as buildCustomButton } from './taskbar-elements-
|
|
9
|
+
import { T as TaskbarElement, V as VisibleWhenForbidden, A as AuthorizationElements, b as buildElem, a as buildCustomButton } from './taskbar-elements-e2ed0536.js';
|
|
10
10
|
|
|
11
11
|
const GRID_MODE = VIEW_MODE.grid;
|
|
12
12
|
const FORM_MODE = VIEW_MODE.form;
|
|
@@ -963,7 +963,7 @@ const SnkFilterModal = class {
|
|
|
963
963
|
}
|
|
964
964
|
buildItems(list) {
|
|
965
965
|
return list.map(item => {
|
|
966
|
-
return (h("button", { onClick: () => this.updateValue(item.id), class: "ez-padding--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item ez-align--middle ez-margin-bottom--small" }, h("ez-check", { id: `checkbox_${item.id}`, tabIndex: "-1", class: "sc-snk-filter-bar snk-filter-bar__filter-modal-item__check", onEzChange: evt => this.updateValue(item.id, evt.detail), enabled: item.enabled, value: item.active, mode:
|
|
966
|
+
return (h("button", { onClick: () => this.updateValue(item.id), class: "ez-padding--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item ez-align--middle ez-margin-bottom--small" }, h("ez-check", { id: `checkbox_${item.id}`, tabIndex: "-1", class: "sc-snk-filter-bar snk-filter-bar__filter-modal-item__check", onEzChange: evt => this.updateValue(item.id, evt.detail), enabled: item.enabled, value: item.active, mode: CheckMode.SWITCH }), h("div", { class: "ez-text ez-title--primary ez-text--medium ez-margin-left--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item__label" }, item.label)));
|
|
967
967
|
});
|
|
968
968
|
}
|
|
969
969
|
itemKeyBoardSelect(event, item) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-e4121713.js';
|
|
2
2
|
import { ApplicationContext } from '@sankhyalabs/core';
|
|
3
|
-
import {
|
|
4
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
3
|
+
import { c as VIEW_MODE } from './constants-c6039d3d.js';
|
|
4
|
+
import { T as TaskbarElement } from './taskbar-elements-e2ed0536.js';
|
|
5
5
|
|
|
6
6
|
const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-e4121713.js';
|
|
2
2
|
import { Action, ApplicationContext } from '@sankhyalabs/core';
|
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
4
|
import { O as OperationMap } from './SnkMessageBuilder-5792c260.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
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-e4121713.js';
|
|
2
2
|
import { ApplicationContext } from '@sankhyalabs/core';
|
|
3
|
-
import { A as ACTION_CONFIG } from './constants-
|
|
3
|
+
import { A as ACTION_CONFIG } from './constants-c6039d3d.js';
|
|
4
4
|
import { T as TaskbarProcessor } from './taskbar-processor-aa6772c9.js';
|
|
5
5
|
import { C as ConfigurableElementsStorage } from './configurableElementsStorage-cdc144b5.js';
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-e4121713.js';
|
|
2
2
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
3
3
|
import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
|
|
4
4
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-e4121713.js';
|
|
2
2
|
import { UserInterface, ApplicationContext } from '@sankhyalabs/core';
|
|
3
3
|
import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
|
4
|
+
import { CheckMode } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
5
|
import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
|
|
5
6
|
|
|
6
7
|
const SnkFilterPersonalized = class {
|
|
@@ -51,7 +52,7 @@ const SnkFilterPersonalized = class {
|
|
|
51
52
|
return h("ez-search", { id: elemId, suppressEmptyOption: true, value: this.getValue(param, index), onEzChange: evt => this.setValue(index, evt.detail), label: param.label, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, param) });
|
|
52
53
|
case UserInterface.SWITCH:
|
|
53
54
|
case UserInterface.CHECKBOX:
|
|
54
|
-
const mode = UserInterface.SWITCH === param.type ?
|
|
55
|
+
const mode = UserInterface.SWITCH === param.type ? CheckMode.SWITCH : CheckMode.REGULAR;
|
|
55
56
|
return h("ez-check", { id: elemId, class: "ez-padding-bottom--medium", mode: mode, value: this.getValue(param, index), label: param.label, onEzChange: evt => this.setValue(index, evt.detail) });
|
|
56
57
|
case UserInterface.DECIMALNUMBER:
|
|
57
58
|
case UserInterface.INTEGERNUMBER:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-e4121713.js';
|
|
2
2
|
import { d as draggable_bundle } from './draggable.bundle-41d56f06.js';
|
|
3
3
|
import { ObjectUtils, ArrayUtils, ApplicationContext } from '@sankhyalabs/core';
|
|
4
4
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
5
|
-
import { C as CONFIG_EVENTS, T as TAB_NAMES, A as ACTION_CONFIG } from './constants-
|
|
5
|
+
import { C as CONFIG_EVENTS, T as TAB_NAMES, A as ACTION_CONFIG } from './constants-c6039d3d.js';
|
|
6
6
|
import { a as UserConfigType } from './form-config-fetcher-96c6c2dc.js';
|
|
7
7
|
import './_commonjsHelpers-9943807e.js';
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-e4121713.js';
|
|
2
2
|
import { ObjectUtils, ApplicationContext } from '@sankhyalabs/core';
|
|
3
3
|
import { C as ConfigurableElementsStorage } from './configurableElementsStorage-cdc144b5.js';
|
|
4
4
|
import { T as TaskbarProcessor } from './taskbar-processor-aa6772c9.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-e4121713.js';
|
|
2
2
|
import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const snkPesquisaCss = ".sc-snk-pesquisa-h{--snk-pesquisa--font-size:var(--text--medium, 14px);--snk-pesquisa--font-family:var(--font-pattern, Arial);--snk-pesquisa--font-weight:var(--text-weight--medium, 400);--snk-pesquisa__records--color:var(--text--primary, #626e82);--snk-pesquisa__records--padding-vertical:var(--space--medium, 12px);--snk-pesquisa__content--padding-right:var(--space--small, 6px);--snk-pesquisa__content-scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--snk-pesquisa__content-scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);--snk-pesquisa__content-scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__content-scrollbar--width:var(--space--medium, 12px);--snk-pesquisa__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);max-height:100%;height:100%;display:flex;flex-direction:column;overflow-y:auto}.snk-pesquisa.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%}.snk-pesquisa__input.sc-snk-pesquisa{display:flex;width:100%;box-sizing:border-box;padding-top:4px;padding-right:4px}.snk-pesquisa__input.sc-snk-pesquisa ez-icon.sc-snk-pesquisa{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.snk-pesquisa__content.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-pesquisa__content-scrollbar--background-color-primary) var(--snk-pesquisa__content-scrollbar--background-color-secondary);padding-right:var(--snk-pesquisa__content--padding-right)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-track{background-color:var(--snk-pesquisa__content-scrollbar--background-color-secondary);border-radius:var(--snk-pesquisa__content-scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb{background-color:var(--snk-pesquisa__content-scrollbar--background-color-primary);border-radius:var(--snk-pesquisa__content-scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar{background-color:var(--snk-pesquisa__content-scrollbar--background-color-secondary);width:var(--snk-pesquisa__content-scrollbar--width);max-width:var(--snk-pesquisa__content-scrollbar--width);min-width:var(--snk-pesquisa__content-scrollbar--width)}.snk-pesquisa__records.sc-snk-pesquisa{font-family:var(--snk-pesquisa--font-family);font-weight:var(--snk-pesquisa--font-weight);font-size:var(--snk-pesquisa--font-size);color:var(--snk-pesquisa__records--color);padding-bottom:var(--snk-pesquisa__records--padding-vertical);padding-top:var(--snk-pesquisa__records--padding-vertical)}.snk-pesquisa__btn.sc-snk-pesquisa{outline:none;border:none;background:none;cursor:pointer;color:var(--snk-pesquisa__btn--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled:hover{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:hover{color:var(--snk-pesquisa__btn-hover--color)}";
|