@sankhyalabs/ezui 7.1.0-dev.2 → 7.1.0-dev.21
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/{ApplicationUtils-d04f5c94.js → ApplicationUtils-4fb87a9e.js} +1 -1
- package/dist/cjs/{app-globals-c128c97e.js → app-globals-cb31a206.js} +1 -1
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
- package/dist/cjs/{ez-combo-box-list_4.cjs.entry.js → ez-combo-box-list_5.cjs.entry.js} +150 -3
- package/dist/cjs/ez-combo-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-input.cjs.entry.js +11 -4
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +15 -7
- package/dist/cjs/ez-form.cjs.entry.js +17 -6
- package/dist/cjs/ez-grid.cjs.entry.js +12 -5
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +16 -17
- package/dist/cjs/ez-modal.cjs.entry.js +2 -2
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +3 -1
- package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +20 -8
- package/dist/cjs/ez-search-plus.cjs.entry.js +18 -4
- package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +30 -26
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +13 -2
- package/dist/cjs/ez-tree.cjs.entry.js +155 -8
- package/dist/cjs/ez-upload.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/index-a7b0c73d.js +2 -2
- package/dist/cjs/{index-00d0166b.js → index-e61642ff.js} +24 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{purify-47a2f27b.js → purify-b30a5718.js} +41 -12
- package/dist/cjs/{search-column-9aa090ec.js → search-column-51e50b59.js} +3 -3
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ez-chip/ez-chip.css +3 -0
- package/dist/collection/components/ez-date-input/ez-date-input.js +28 -3
- package/dist/collection/components/ez-dialog/ez-dialog.css +6 -1
- package/dist/collection/components/ez-form/ez-form.js +23 -1
- package/dist/collection/components/ez-form-view/ez-form-view.js +24 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +4 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js +4 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +5 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +3 -0
- package/dist/collection/components/ez-image-input/ez-image-input.css +173 -0
- package/dist/collection/components/ez-image-input/ez-image-input.js +324 -0
- package/dist/collection/components/ez-modal/ez-modal.css +3 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +4 -9
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +32 -15
- package/dist/collection/components/ez-number-input/ez-number-input.js +16 -0
- package/dist/collection/components/ez-popup/ez-popup.css +9 -4
- package/dist/collection/components/ez-popup/ez-popup.js +24 -7
- package/dist/collection/components/ez-search/ez-search.js +41 -19
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +16 -2
- package/dist/collection/components/ez-split-button/ez-split-button.css +7 -2
- package/dist/collection/components/ez-text-input/ez-text-input.css +3 -3
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +13 -2
- package/dist/collection/components/ez-tree/ez-tree.css +4 -0
- package/dist/collection/components/ez-tree/ez-tree.js +185 -6
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +4 -1
- package/dist/collection/components/ez-tree/types/Node.js +7 -0
- package/dist/collection/components/ez-tree/types/Tree.js +19 -0
- package/dist/collection/components/ez-tree/types/UpdateItemConfig.js +1 -0
- package/dist/collection/utils/form/DataBinder.js +1 -1
- package/dist/collection/utils/form/FormMetadata.js +12 -2
- package/dist/collection/utils/i18n/locales/en-us.js +8 -0
- package/dist/collection/utils/i18n/locales/es-es.js +8 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +8 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +530 -105
- package/dist/esm/{ApplicationUtils-12768f5a.js → ApplicationUtils-985c24ae.js} +1 -1
- package/dist/esm/{app-globals-9507c20e.js → app-globals-75f8a758.js} +1 -1
- package/dist/esm/ez-actions-button.entry.js +2 -2
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-avatar.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +2 -2
- package/dist/esm/{ez-combo-box-list_4.entry.js → ez-combo-box-list_5.entry.js} +150 -4
- package/dist/esm/ez-combo-box.entry.js +2 -2
- package/dist/esm/ez-date-input.entry.js +11 -4
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +2 -2
- package/dist/esm/ez-double-list.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +15 -7
- package/dist/esm/ez-form.entry.js +17 -6
- package/dist/esm/ez-grid.entry.js +12 -5
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-link-builder_6.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +16 -17
- package/dist/esm/ez-modal.entry.js +2 -2
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +3 -1
- package/dist/esm/ez-pagination.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +20 -8
- package/dist/esm/ez-search-plus.entry.js +18 -4
- package/dist/esm/ez-search-result-list.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +25 -21
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-sortable-list.entry.js +1 -1
- package/dist/esm/ez-spinner.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +2 -2
- package/dist/esm/ez-split-item.entry.js +2 -2
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +13 -2
- package/dist/esm/ez-tree.entry.js +155 -8
- package/dist/esm/ez-upload.entry.js +2 -2
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-62fc771e.js → index-a3b24b5d.js} +24 -0
- package/dist/esm/index-baa5e267.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{purify-dc6814bf.js → purify-9357603c.js} +41 -12
- package/dist/esm/{search-column-83562552.js → search-column-0c42248b.js} +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e882635e.entry.js → p-0aafbc30.entry.js} +1 -1
- package/dist/ezui/{p-0c0eb410.entry.js → p-0e325699.entry.js} +1 -1
- package/dist/ezui/{p-5a11cf56.js → p-0ec5c128.js} +1 -1
- package/dist/ezui/p-1bf40959.entry.js +1 -0
- package/dist/ezui/p-1c3f43e8.entry.js +1 -0
- package/dist/ezui/{p-1cde96f9.entry.js → p-2676e2a3.entry.js} +1 -1
- package/dist/ezui/{p-e27d7dc2.entry.js → p-28af6826.entry.js} +1 -1
- package/dist/ezui/{p-1adf7139.entry.js → p-2b23906a.entry.js} +1 -1
- package/dist/ezui/{p-1730ee24.entry.js → p-2e5de2a7.entry.js} +1 -1
- package/dist/ezui/{p-5ab08b60.entry.js → p-2fd16ff2.entry.js} +1 -1
- package/dist/ezui/{p-d66bf34e.entry.js → p-3d71e8e1.entry.js} +2 -2
- package/dist/ezui/{p-6f119d5f.entry.js → p-3fcf79c7.entry.js} +1 -1
- package/dist/ezui/p-474076b3.js +1 -0
- package/dist/ezui/{p-a401041c.entry.js → p-47d9256e.entry.js} +1 -1
- package/dist/ezui/{p-124699e0.entry.js → p-4ea5c8a7.entry.js} +1 -1
- package/dist/ezui/p-582c3f90.entry.js +1 -0
- package/dist/ezui/{p-6a9a20a0.entry.js → p-5e6de2c1.entry.js} +1 -1
- package/dist/ezui/{p-2a70f094.entry.js → p-6570ca10.entry.js} +1 -1
- package/dist/ezui/{p-e99cbb51.entry.js → p-67f9fadb.entry.js} +1 -1
- package/dist/ezui/p-6a982147.js +1 -0
- package/dist/ezui/p-6c484770.entry.js +1 -0
- package/dist/ezui/{p-1266fe78.entry.js → p-6d7f2fdc.entry.js} +1 -1
- package/dist/ezui/p-6f466aec.entry.js +1 -0
- package/dist/ezui/{p-3fe05d6b.entry.js → p-714452c7.entry.js} +1 -1
- package/dist/ezui/{p-957d08cd.entry.js → p-7624767b.entry.js} +1 -1
- package/dist/ezui/p-782fe2e3.entry.js +1 -0
- package/dist/ezui/p-8709c4f6.entry.js +1 -0
- package/dist/ezui/{p-8dc267ff.entry.js → p-8a8006e6.entry.js} +1 -1
- package/dist/ezui/{p-0e49c0ff.entry.js → p-8d626d2b.entry.js} +1 -1
- package/dist/ezui/{p-79277e43.entry.js → p-9568a93d.entry.js} +1 -1
- package/dist/ezui/p-9771ea3c.entry.js +1 -0
- package/dist/ezui/p-98218fbc.js +1 -0
- package/dist/ezui/p-9d004e22.entry.js +1 -0
- package/dist/ezui/{p-eee3c7ff.entry.js → p-a13e65a4.entry.js} +1 -1
- package/dist/ezui/{p-e8c6c973.entry.js → p-a1a63294.entry.js} +1 -1
- package/dist/ezui/p-c711900a.entry.js +1 -0
- package/dist/ezui/p-cfa26133.entry.js +1 -0
- package/dist/ezui/{p-a7eab406.entry.js → p-dc192d01.entry.js} +1 -1
- package/dist/ezui/p-dff9862b.js +3 -0
- package/dist/ezui/{p-59a98e31.entry.js → p-e2e0dd76.entry.js} +1 -1
- package/dist/ezui/{p-2ba2d792.entry.js → p-e4a579f2.entry.js} +1 -1
- package/dist/ezui/{p-59092a66.entry.js → p-e82a12c6.entry.js} +1 -1
- package/dist/ezui/p-f1bbf23f.entry.js +1 -0
- package/dist/ezui/p-f34ec732.entry.js +1 -0
- package/dist/ezui/p-f45ddc1f.entry.js +1 -0
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +5 -1
- package/dist/types/components/ez-form/ez-form.d.ts +5 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
- package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +3 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.d.ts +2 -0
- package/dist/types/components/ez-image-input/ez-image-input.d.ts +42 -0
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +6 -2
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +4 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +3 -0
- package/dist/types/components/ez-search/ez-search.d.ts +5 -6
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +1 -0
- package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +3 -0
- package/dist/types/components/ez-tree/ez-tree.d.ts +20 -1
- package/dist/types/components/ez-tree/types/Node.d.ts +1 -0
- package/dist/types/components/ez-tree/types/Tree.d.ts +1 -0
- package/dist/types/components/ez-tree/types/UpdateItemConfig.d.ts +4 -0
- package/dist/types/components.d.ts +140 -1
- package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +1 -0
- package/dist/types/utils/form/interfaces/ITabConfig.d.ts +1 -0
- package/dist/types/utils/i18n/locales/en-us.d.ts +8 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +8 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +8 -0
- package/dist/types/utils/i18n/translations.d.ts +24 -0
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-02f6e3b0.entry.js +0 -1
- package/dist/ezui/p-0b333f09.entry.js +0 -1
- package/dist/ezui/p-14807f4e.js +0 -1
- package/dist/ezui/p-191cfbc8.entry.js +0 -1
- package/dist/ezui/p-1bfef8e5.entry.js +0 -1
- package/dist/ezui/p-228a4d2f.js +0 -3
- package/dist/ezui/p-2df50161.entry.js +0 -1
- package/dist/ezui/p-4e1df756.entry.js +0 -1
- package/dist/ezui/p-623161e2.js +0 -1
- package/dist/ezui/p-641ee538.js +0 -1
- package/dist/ezui/p-7f8c1fce.entry.js +0 -1
- package/dist/ezui/p-8bb3aeb0.entry.js +0 -1
- package/dist/ezui/p-ba7e908a.entry.js +0 -1
- package/dist/ezui/p-bd6146c5.entry.js +0 -1
- package/dist/ezui/p-c943f7c4.entry.js +0 -1
- package/dist/ezui/p-d0e6911e.entry.js +0 -1
- package/dist/ezui/p-e46a4d06.entry.js +0 -1
- package/dist/ezui/p-f958dcb1.entry.js +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const _commonjsHelpers = require('./_commonjsHelpers-537d719a.js');
|
|
4
4
|
|
|
5
5
|
var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6
|
-
/*! @license DOMPurify 3.
|
|
6
|
+
/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
|
|
7
7
|
|
|
8
8
|
(function (global, factory) {
|
|
9
9
|
module.exports = factory() ;
|
|
@@ -192,7 +192,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'search', 'section', 'select', 'shadow', 'slot', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
|
|
195
|
-
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', '
|
|
195
|
+
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
196
196
|
const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
|
|
197
197
|
// List of SVG elements that are disallowed by default.
|
|
198
198
|
// We still need to know them so that we can do namespace
|
|
@@ -206,7 +206,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
206
206
|
const text = freeze(['#text']);
|
|
207
207
|
|
|
208
208
|
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
209
|
-
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
209
|
+
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'mask-type', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
210
210
|
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
|
|
211
211
|
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
212
212
|
|
|
@@ -313,7 +313,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
313
313
|
function createDOMPurify() {
|
|
314
314
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
315
315
|
const DOMPurify = root => createDOMPurify(root);
|
|
316
|
-
DOMPurify.version = '3.
|
|
316
|
+
DOMPurify.version = '3.3.1';
|
|
317
317
|
DOMPurify.removed = [];
|
|
318
318
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
319
319
|
// Not running in a browser, provide a factory function
|
|
@@ -424,6 +424,21 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
424
424
|
let FORBID_TAGS = null;
|
|
425
425
|
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
|
426
426
|
let FORBID_ATTR = null;
|
|
427
|
+
/* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
|
|
428
|
+
const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
429
|
+
tagCheck: {
|
|
430
|
+
writable: true,
|
|
431
|
+
configurable: false,
|
|
432
|
+
enumerable: true,
|
|
433
|
+
value: null
|
|
434
|
+
},
|
|
435
|
+
attributeCheck: {
|
|
436
|
+
writable: true,
|
|
437
|
+
configurable: false,
|
|
438
|
+
enumerable: true,
|
|
439
|
+
value: null
|
|
440
|
+
}
|
|
441
|
+
}));
|
|
427
442
|
/* Decide if ARIA attributes are okay */
|
|
428
443
|
let ALLOW_ARIA_ATTR = true;
|
|
429
444
|
/* Decide if custom data attributes are okay */
|
|
@@ -616,16 +631,24 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
616
631
|
}
|
|
617
632
|
/* Merge configuration parameters */
|
|
618
633
|
if (cfg.ADD_TAGS) {
|
|
619
|
-
if (
|
|
620
|
-
|
|
634
|
+
if (typeof cfg.ADD_TAGS === 'function') {
|
|
635
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
636
|
+
} else {
|
|
637
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
638
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
639
|
+
}
|
|
640
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
621
641
|
}
|
|
622
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
623
642
|
}
|
|
624
643
|
if (cfg.ADD_ATTR) {
|
|
625
|
-
if (
|
|
626
|
-
|
|
644
|
+
if (typeof cfg.ADD_ATTR === 'function') {
|
|
645
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
646
|
+
} else {
|
|
647
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
648
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
649
|
+
}
|
|
650
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
627
651
|
}
|
|
628
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
629
652
|
}
|
|
630
653
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
631
654
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -636,6 +659,12 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
636
659
|
}
|
|
637
660
|
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
638
661
|
}
|
|
662
|
+
if (cfg.ADD_FORBID_CONTENTS) {
|
|
663
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
664
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
665
|
+
}
|
|
666
|
+
addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
|
|
667
|
+
}
|
|
639
668
|
/* Add #text in case KEEP_CONTENT is set to true */
|
|
640
669
|
if (KEEP_CONTENT) {
|
|
641
670
|
ALLOWED_TAGS['#text'] = true;
|
|
@@ -933,7 +962,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
933
962
|
return true;
|
|
934
963
|
}
|
|
935
964
|
/* Remove element if anything forbids its presence */
|
|
936
|
-
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
965
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
937
966
|
/* Check if we have a custom element to handle */
|
|
938
967
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
939
968
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
@@ -1005,7 +1034,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
1005
1034
|
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
1006
1035
|
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
1007
1036
|
We don't need to check the value; it's always URI safe. */
|
|
1008
|
-
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1037
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1009
1038
|
if (
|
|
1010
1039
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1011
1040
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
|
4
|
-
const ApplicationUtils = require('./ApplicationUtils-
|
|
5
|
-
const index = require('./index-
|
|
4
|
+
const ApplicationUtils = require('./ApplicationUtils-4fb87a9e.js');
|
|
5
|
+
const index = require('./index-e61642ff.js');
|
|
6
6
|
const index$1 = require('./index-a7b0c73d.js');
|
|
7
7
|
|
|
8
8
|
const buildFieldMetadata = (descriptor, config) => {
|
|
@@ -232,7 +232,7 @@ class DataBinder {
|
|
|
232
232
|
clearFieldError(fieldName) {
|
|
233
233
|
var _a;
|
|
234
234
|
const field = (_a = this._fields.get(fieldName)) === null || _a === void 0 ? void 0 : _a.field;
|
|
235
|
-
if (field["errorMessage"]) {
|
|
235
|
+
if (field && field["errorMessage"]) {
|
|
236
236
|
field["errorMessage"] = "";
|
|
237
237
|
this._dataUnit.clearInvalid(this.getCurrentRecordId(), fieldName);
|
|
238
238
|
}
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"./components/ez-grid-view/ez-grid-view.js",
|
|
46
46
|
"./components/ez-guide-navigator/ez-guide-navigator.js",
|
|
47
47
|
"./components/ez-icon/ez-icon.js",
|
|
48
|
+
"./components/ez-image-input/ez-image-input.js",
|
|
48
49
|
"./components/ez-list-item/ez-list-item.js",
|
|
49
50
|
"./components/ez-loading-bar/ez-loading-bar.js",
|
|
50
51
|
"./components/ez-modal-container/ez-modal-container.js",
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
--ez-label-chip__label__container--default--border-color--active: var(--color--ocean-green-200);
|
|
41
41
|
/*@doc Define a cor da borda quando o componente está ativo e na variação secundária.*/
|
|
42
42
|
--ez-label-chip__label__container--secondary--border-color--active: var(--color--gray-200);
|
|
43
|
+
/*@doc Define a margem do chip.*/
|
|
44
|
+
--ez-label-chip__label__container--margin: 0px;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
.label__text {
|
|
@@ -76,6 +78,7 @@
|
|
|
76
78
|
border-radius: var(--ez-label-chip__label__container--border-radius);
|
|
77
79
|
padding: 0 var(--ez-label-chip__horizontal-padding);
|
|
78
80
|
outline-color: var(--ez-label-chip__label__container--default--border-color--active);
|
|
81
|
+
margin: var(--ez-label-chip__label__container--margin);
|
|
79
82
|
}
|
|
80
83
|
|
|
81
84
|
.label__container[data-size="default"] {
|
|
@@ -88,9 +88,12 @@ export class EzDateInput {
|
|
|
88
88
|
this._changePending = false;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
async handleChangeCalendar(event) {
|
|
92
92
|
this.changeValue(this._calendar.value);
|
|
93
|
+
this.ezInput.emit(this._calendar.value);
|
|
93
94
|
this._popover.hide();
|
|
95
|
+
await this.setFocus();
|
|
96
|
+
event.stopPropagation();
|
|
94
97
|
}
|
|
95
98
|
handleBlur() {
|
|
96
99
|
if (!this._changePending) {
|
|
@@ -139,10 +142,13 @@ export class EzDateInput {
|
|
|
139
142
|
if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) !== (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
|
|
140
143
|
this._changePending = true;
|
|
141
144
|
this._focused = true;
|
|
145
|
+
this.ezInput.emit(newValueValidated);
|
|
142
146
|
this.ezStartChange.emit({ waitmessage: "", blocking: false });
|
|
143
147
|
}
|
|
144
148
|
if (event['data'] === "H" || event['data'] === "h") {
|
|
145
|
-
|
|
149
|
+
const currentDate = new Date();
|
|
150
|
+
this.ezInput.emit(currentDate);
|
|
151
|
+
this.changeValue(currentDate);
|
|
146
152
|
}
|
|
147
153
|
}
|
|
148
154
|
setInputValue() {
|
|
@@ -168,7 +174,7 @@ export class EzDateInput {
|
|
|
168
174
|
}
|
|
169
175
|
render() {
|
|
170
176
|
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
171
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', "data-element-id": this._elem.getAttribute("data-element-id"), onEzVisibilityChange: (event) => event.stopPropagation() }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) =>
|
|
177
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', "data-element-id": this._elem.getAttribute("data-element-id"), onEzVisibilityChange: (event) => event.stopPropagation() }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => this.handleChangeCalendar(event), value: this.value }))));
|
|
172
178
|
}
|
|
173
179
|
static get is() { return "ez-date-input"; }
|
|
174
180
|
static get encapsulation() { return "shadow"; }
|
|
@@ -383,6 +389,25 @@ export class EzDateInput {
|
|
|
383
389
|
"resolved": "void",
|
|
384
390
|
"references": {}
|
|
385
391
|
}
|
|
392
|
+
}, {
|
|
393
|
+
"method": "ezInput",
|
|
394
|
+
"name": "ezInput",
|
|
395
|
+
"bubbles": true,
|
|
396
|
+
"cancelable": true,
|
|
397
|
+
"composed": true,
|
|
398
|
+
"docs": {
|
|
399
|
+
"tags": [],
|
|
400
|
+
"text": "Emitido quando o usu\u00E1rio digita uma data v\u00E1lida no campo."
|
|
401
|
+
},
|
|
402
|
+
"complexType": {
|
|
403
|
+
"original": "Date",
|
|
404
|
+
"resolved": "Date",
|
|
405
|
+
"references": {
|
|
406
|
+
"Date": {
|
|
407
|
+
"location": "global"
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
386
411
|
}];
|
|
387
412
|
}
|
|
388
413
|
static get methods() {
|
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
/*@doc Define a cor de fundo do botão de fechar.*/
|
|
9
9
|
--dialog__btn__close--background-color: var(--title--primary, #2b3a54);
|
|
10
10
|
/*@doc Define o espaçamento direito do botão de negação.*/
|
|
11
|
-
--dialog__btn__no--padding-right: var(--space--
|
|
11
|
+
--dialog__btn__no--padding-right: var(--space--8, 8px);
|
|
12
12
|
/*@doc Contém a imagem do ícone de fechamento.*/
|
|
13
13
|
--dialog__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>');
|
|
14
|
+
/*@doc Define a largura mínima dos botões.*/
|
|
15
|
+
--dialog__btn__min-width: 80px;
|
|
14
16
|
|
|
15
17
|
/* Título */
|
|
16
18
|
/*@doc Define o estilo da mensagem exibida no título.*/
|
|
@@ -245,6 +247,7 @@ h2 {
|
|
|
245
247
|
|
|
246
248
|
.button__cancel {
|
|
247
249
|
padding-right: var(--dialog__btn__no--padding-right);
|
|
250
|
+
--ez-button--min-width: var(--dialog__btn__min-width);
|
|
248
251
|
}
|
|
249
252
|
|
|
250
253
|
.button__confirm{
|
|
@@ -252,6 +255,7 @@ h2 {
|
|
|
252
255
|
--ez-button--color: var(--color--inverted);
|
|
253
256
|
--ez-button--hover--background-color: var(--color--primary-600);
|
|
254
257
|
--ez-button--hover-color: var(--color--inverted);
|
|
258
|
+
--ez-button--min-width: var(--dialog__btn__min-width);
|
|
255
259
|
}
|
|
256
260
|
|
|
257
261
|
.button__confirm--danger{
|
|
@@ -259,6 +263,7 @@ h2 {
|
|
|
259
263
|
--ez-button--color: var(--color--inverted);
|
|
260
264
|
--ez-button--hover--background-color: var(--color-alert--error-900, #a10020);
|
|
261
265
|
--ez-button--hover-color: var(--color--inverted);
|
|
266
|
+
--ez-button--min-width: var(--dialog__btn__min-width);
|
|
262
267
|
}
|
|
263
268
|
|
|
264
269
|
.button__confirm--container {
|
|
@@ -26,6 +26,7 @@ export class EzForm {
|
|
|
26
26
|
this.onlyStaticFields = false;
|
|
27
27
|
this.useSearchField = true;
|
|
28
28
|
this.elementFocusSearchField = undefined;
|
|
29
|
+
this.customUiBuilders = new Map();
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* Realiza validação no conteúdo de todos os campos.
|
|
@@ -83,7 +84,7 @@ export class EzForm {
|
|
|
83
84
|
}
|
|
84
85
|
this.ezFormSetFields.emit(fields);
|
|
85
86
|
const idFormSheet = `${StringUtils.replaceAccentuatedChars(StringUtils.toCamelCase(currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.label), false)}_selectorContainer`;
|
|
86
|
-
return (h("div", { class: "dynamic-content ez-box--no-outline", "data-element-id": idFormSheet, ref: elem => (this._container = elem), tabindex: "0" }, h("ez-popover", { ref: elem => (this._ezPopoverSearchField = elem), overlayType: "none" }, this.renderFieldColumn()), h("ez-form-view", { ref: (element) => (this._formView = element), class: "ez-row ez-padding-vertical--small", fields: fields, singleColumn: this._singleColumn, selectedRecord: this.dataUnit.getSelectedRecord() })));
|
|
87
|
+
return (h("div", { class: "dynamic-content ez-box--no-outline", "data-element-id": idFormSheet, ref: elem => (this._container = elem), tabindex: "0" }, h("ez-popover", { ref: elem => (this._ezPopoverSearchField = elem), overlayType: "none" }, this.renderFieldColumn()), h("ez-form-view", { ref: (element) => (this._formView = element), class: "ez-row ez-padding-vertical--small", fields: fields, singleColumn: this._singleColumn, selectedRecord: this.dataUnit.getSelectedRecord(), customUiBuilders: this.customUiBuilders })));
|
|
87
88
|
}
|
|
88
89
|
renderFieldColumn() {
|
|
89
90
|
if (this._fieldSearch != undefined) {
|
|
@@ -386,6 +387,27 @@ export class EzForm {
|
|
|
386
387
|
"tags": [],
|
|
387
388
|
"text": "Define uma ancoragem"
|
|
388
389
|
}
|
|
390
|
+
},
|
|
391
|
+
"customUiBuilders": {
|
|
392
|
+
"type": "unknown",
|
|
393
|
+
"mutable": false,
|
|
394
|
+
"complexType": {
|
|
395
|
+
"original": "UiFieldBuilders",
|
|
396
|
+
"resolved": "Map<UserInterface, (field: IFormViewField) => HTMLElement>",
|
|
397
|
+
"references": {
|
|
398
|
+
"UiFieldBuilders": {
|
|
399
|
+
"location": "import",
|
|
400
|
+
"path": "../ez-form-view/fieldbuilder/FieldBuilder"
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"required": false,
|
|
405
|
+
"optional": false,
|
|
406
|
+
"docs": {
|
|
407
|
+
"tags": [],
|
|
408
|
+
"text": "Define construtores customizados para tipos de campos espec\u00EDficos"
|
|
409
|
+
},
|
|
410
|
+
"defaultValue": "new Map()"
|
|
389
411
|
}
|
|
390
412
|
};
|
|
391
413
|
}
|
|
@@ -8,6 +8,7 @@ export class EzFormView {
|
|
|
8
8
|
this.fields = undefined;
|
|
9
9
|
this.selectedRecord = undefined;
|
|
10
10
|
this.singleColumn = false;
|
|
11
|
+
this.customUiBuilders = new Map();
|
|
11
12
|
}
|
|
12
13
|
async showUp() {
|
|
13
14
|
if (this.singleColumn)
|
|
@@ -74,9 +75,9 @@ export class EzFormView {
|
|
|
74
75
|
if (this._customEditors.has(item.name)) {
|
|
75
76
|
const value = (_a = this._formElements.map(el => ({ name: el.dataset.fieldName, value: el['value'] })).find(field => field.name === item.name)) === null || _a === void 0 ? void 0 : _a.value;
|
|
76
77
|
const customEditor = this._customEditors.get(item.name).customEditor;
|
|
77
|
-
return h("div", { class: classItem }, h("ez-custom-form-input", { "data-field-name": item.name, customEditor: customEditor, formViewField: item, builderFallback: fieldBuilder, value: value, selectedRecord: this.selectedRecord }));
|
|
78
|
+
return h("div", { class: classItem }, h("ez-custom-form-input", { "data-field-name": item.name, customEditor: customEditor, formViewField: item, builderFallback: (field) => fieldBuilder(field, this.customUiBuilders), value: value, selectedRecord: this.selectedRecord }));
|
|
78
79
|
}
|
|
79
|
-
return h("div", { class: classItem }, fieldBuilder(item));
|
|
80
|
+
return h("div", { class: classItem }, fieldBuilder(item, this.customUiBuilders));
|
|
80
81
|
}
|
|
81
82
|
render() {
|
|
82
83
|
ElementIDUtils.addIDInfoIfNotExists(this._element, 'ezFormView');
|
|
@@ -171,6 +172,27 @@ export class EzFormView {
|
|
|
171
172
|
"attribute": "single-column",
|
|
172
173
|
"reflect": false,
|
|
173
174
|
"defaultValue": "false"
|
|
175
|
+
},
|
|
176
|
+
"customUiBuilders": {
|
|
177
|
+
"type": "unknown",
|
|
178
|
+
"mutable": false,
|
|
179
|
+
"complexType": {
|
|
180
|
+
"original": "UiFieldBuilders",
|
|
181
|
+
"resolved": "Map<UserInterface, (field: IFormViewField) => HTMLElement>",
|
|
182
|
+
"references": {
|
|
183
|
+
"UiFieldBuilders": {
|
|
184
|
+
"location": "import",
|
|
185
|
+
"path": "./fieldbuilder/FieldBuilder"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"required": false,
|
|
190
|
+
"optional": false,
|
|
191
|
+
"docs": {
|
|
192
|
+
"tags": [],
|
|
193
|
+
"text": "Define construtores customizados para tipos de campos espec\u00EDficos"
|
|
194
|
+
},
|
|
195
|
+
"defaultValue": "new Map()"
|
|
174
196
|
}
|
|
175
197
|
};
|
|
176
198
|
}
|
|
@@ -10,6 +10,7 @@ import { buildSearchPlus } from "./templates/SearchInputPlus.tpl";
|
|
|
10
10
|
import { buildSearch } from "./templates/SearchInput.tpl";
|
|
11
11
|
import { buildRichText } from "./templates/RichText.tpl";
|
|
12
12
|
import { getI18n } from "../../../utils/i18n";
|
|
13
|
+
import { buildImage } from "./templates/ImageInput.tpl";
|
|
13
14
|
const uiBuilders = new Map();
|
|
14
15
|
uiBuilders.set(UserInterface.CHECKBOX, buildCheckBox);
|
|
15
16
|
uiBuilders.set(UserInterface.SWITCH, buildSwitch);
|
|
@@ -25,9 +26,10 @@ uiBuilders.set(UserInterface.SEARCH, buildSearch);
|
|
|
25
26
|
uiBuilders.set(UserInterface.SEARCHPLUS, buildSearchPlus);
|
|
26
27
|
uiBuilders.set(UserInterface.LONGTEXT, buildTextArea);
|
|
27
28
|
uiBuilders.set(UserInterface.HTML, buildRichText);
|
|
28
|
-
|
|
29
|
+
uiBuilders.set(UserInterface.IMAGE, buildImage);
|
|
30
|
+
export const fieldBuilder = (field, customUiBuilders = new Map()) => {
|
|
29
31
|
const i18n = getI18n();
|
|
30
|
-
const builder = uiBuilders.get(field.userInterface) || buildTextInput;
|
|
32
|
+
const builder = (customUiBuilders.get(field.userInterface) || uiBuilders.get(field.userInterface)) || buildTextInput;
|
|
31
33
|
const label = field.required ? `${field.label}${i18n("app.requiredInfo")}` : field.label;
|
|
32
34
|
const builtElement = builder(Object.assign(Object.assign({}, field), { label }));
|
|
33
35
|
//@ts-ignore
|
|
@@ -7,5 +7,5 @@ export const buildCheckBox = (field) => {
|
|
|
7
7
|
return buildField(field.name, field.label, field.readOnly, field.contextName, false);
|
|
8
8
|
};
|
|
9
9
|
function buildField(fieldName, fieldLabel, readOnly, contextName, switchMode) {
|
|
10
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-align--middle ez-padding-bottom--
|
|
10
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-align--middle ez-padding-top--medium ez-padding-bottom--medium" }, h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? CheckMode.SWITCH : CheckMode.REGULAR, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName })));
|
|
11
11
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const buildImage = ({ name, label, readOnly, contextName, props }) => {
|
|
3
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-image-input", Object.assign({ enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, maxFileSize: Infinity }, props))));
|
|
4
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { StringUtils } from "@sankhyalabs/core";
|
|
2
3
|
export const buildSearch = ({ name, label, readOnly, required, contextName, canShowError, optionLoader, props }) => {
|
|
3
4
|
var _a;
|
|
4
|
-
|
|
5
|
+
const hasDescriptionField = !StringUtils.isEmpty(props === null || props === void 0 ? void 0 : props.DESCRIPTIONFIELD);
|
|
6
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props === null || props === void 0 ? void 0 : props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false, hideDescriptionInput: !hasDescriptionField })));
|
|
5
7
|
};
|
|
@@ -763,7 +763,7 @@ export default class AgGridController {
|
|
|
763
763
|
const colDefsWithConfigs = this.getColsDefWithConfigApplied(colDefs, this._lastColsConfig);
|
|
764
764
|
this._gridOptions.api.setColumnDefs(colDefsWithConfigs);
|
|
765
765
|
}
|
|
766
|
-
getColsDefWithConfigApplied(colDefs, colsConfig) {
|
|
766
|
+
getColsDefWithConfigApplied(colDefs, colsConfig = []) {
|
|
767
767
|
//Cria map de colunas existentes na config e seu índice
|
|
768
768
|
const orderMap = colsConfig.reduce((map, col, index) => {
|
|
769
769
|
map[col.name] = index;
|
|
@@ -1022,6 +1022,10 @@ export default class AgGridController {
|
|
|
1022
1022
|
let cellStyle = this.getInitCellStyle();
|
|
1023
1023
|
const primitiveUIType = (_a = source === null || source === void 0 ? void 0 : source.props) === null || _a === void 0 ? void 0 : _a.get("PRIMITIVETUIYPE");
|
|
1024
1024
|
const uitype = source === null || source === void 0 ? void 0 : source.userInterface;
|
|
1025
|
+
if (uitype === UserInterface.SEARCH) {
|
|
1026
|
+
cellStyle['text-align'] = 'left';
|
|
1027
|
+
return cellStyle;
|
|
1028
|
+
}
|
|
1025
1029
|
switch (primitiveUIType !== null && primitiveUIType !== void 0 ? primitiveUIType : uitype) {
|
|
1026
1030
|
case UserInterface.DECIMALNUMBER:
|
|
1027
1031
|
case UserInterface.INTEGERNUMBER:
|
|
@@ -250,6 +250,9 @@ export default class DataSource {
|
|
|
250
250
|
});
|
|
251
251
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
252
252
|
var _a, _b, _c, _d, _e, _f;
|
|
253
|
+
if (f.userInterface === UserInterface.IMAGE) {
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
253
256
|
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
254
257
|
const props = new Map();
|
|
255
258
|
const properties = this._dataUnit.getField(f.name).properties;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
|
|
4
|
+
/*@doc Define a altura do container de imagem.*/
|
|
5
|
+
--ez-image-input--container-height: 200px;
|
|
6
|
+
|
|
7
|
+
/*@doc Define a largura do container de imagem.*/
|
|
8
|
+
--ez-image-input--container-width: 280px;
|
|
9
|
+
|
|
10
|
+
/*@doc Define a cor de fundo do container.*/
|
|
11
|
+
--ez-image-input--background-color: var(--color--gray-80);
|
|
12
|
+
|
|
13
|
+
/*@doc Define a cor da borda do container.*/
|
|
14
|
+
--ez-image-input--border-color: var(--color--gray-200);
|
|
15
|
+
|
|
16
|
+
/*@doc Define a cor da borda no estado de hover.*/
|
|
17
|
+
--ez-image-input--border-color-hover: var(--color--ocean-green-600);
|
|
18
|
+
|
|
19
|
+
/*@doc Define a cor da borda quando está sendo arrastado.*/
|
|
20
|
+
--ez-image-input--border-color-dragging: var(--color--ocean-green-500);
|
|
21
|
+
|
|
22
|
+
/*@doc Define a cor da borda quando está desabilitado.*/
|
|
23
|
+
--ez-image-input--border-color-disabled: var(--color--gray-200);
|
|
24
|
+
|
|
25
|
+
/*@doc Define a cor do texto do label.*/
|
|
26
|
+
--ez-image-input--label-color: var(--color--petroleum-900);
|
|
27
|
+
|
|
28
|
+
/*@doc Define a cor do ícone.*/
|
|
29
|
+
--ez-image-input--icon-color: var(--color--gray-400);
|
|
30
|
+
|
|
31
|
+
/*@doc Define o raio da borda do container.*/
|
|
32
|
+
--ez-image-input--border-radius: var(--border--radius-24);
|
|
33
|
+
|
|
34
|
+
/*@doc Define a largura da borda.*/
|
|
35
|
+
--ez-image-input--border-width: 2px;
|
|
36
|
+
|
|
37
|
+
/*@doc Define a cor de fundo do botão de remover.*/
|
|
38
|
+
--ez-image-input--remove-button-bg: var(--color--red-600);
|
|
39
|
+
|
|
40
|
+
/*@doc Define a cor de fundo do botão de remover no hover.*/
|
|
41
|
+
--ez-image-input--remove-button-bg-hover: var(--color--red-700);
|
|
42
|
+
|
|
43
|
+
/*@doc Define a cor do ícone do botão de remover.*/
|
|
44
|
+
--ez-image-input--remove-button-color: var(--color--gray-70);
|
|
45
|
+
|
|
46
|
+
/*@doc Define a borda do botão de remover.*/
|
|
47
|
+
--ez-image-input--remove-button-border: 1px solid var(--color--red-700);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.image-input__container {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
position: relative;
|
|
55
|
+
height: var(--ez-image-input--container-height);
|
|
56
|
+
width: var(--ez-image-input--container-width);
|
|
57
|
+
border: var(--ez-image-input--border-width) dashed var(--ez-image-input--border-color);
|
|
58
|
+
border-radius: var(--ez-image-input--border-radius);
|
|
59
|
+
background-color: var(--ez-image-input--background-color);
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition: all 0.3s ease;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.image-input__container:hover:not(.image-input__container--disabled) {
|
|
66
|
+
border-color: var(--ez-image-input--border-color-hover);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.image-input__container--dragging {
|
|
70
|
+
border-color: var(--ez-image-input--border-color-dragging);
|
|
71
|
+
background-color: var(--color--ocean-green-90);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.image-input__container--disabled {
|
|
75
|
+
cursor: not-allowed;
|
|
76
|
+
opacity: 0.6;
|
|
77
|
+
border-color: var(--ez-image-input--border-color-disabled);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.image-input__container--has-image {
|
|
81
|
+
border-style: solid;
|
|
82
|
+
padding: var(--space--0);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.image-input__file-input {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.image-input__dropzone {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
gap: var(--space--16);
|
|
95
|
+
padding: var(--space--24);
|
|
96
|
+
text-align: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.image-input__dropzone ez-icon {
|
|
100
|
+
color: var(--ez-image-input--icon-color);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.image-input__label {
|
|
104
|
+
font-family: var(--font--pattern);
|
|
105
|
+
font-size: var(--font-size--default);
|
|
106
|
+
font-weight: var(--font-weight--medium);
|
|
107
|
+
color: var(--ez-image-input--label-color);
|
|
108
|
+
line-height: var(--line-height--20);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.image-input__preview {
|
|
112
|
+
position: relative;
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 100%;
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.image-input__image {
|
|
121
|
+
height: 100%;
|
|
122
|
+
object-fit: cover;
|
|
123
|
+
border-radius: calc(var(--ez-image-input--border-radius) - var(--ez-image-input--border-width));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
ez-button {
|
|
127
|
+
--ez-button--background-color: var(--ez-image-input--remove-button-bg);
|
|
128
|
+
--ez-button--hover--background-color: var(--ez-image-input--remove-button-bg-hover);
|
|
129
|
+
--ez-button--color: var(--ez-image-input--remove-button-color);
|
|
130
|
+
--ez-button--border: var(--ez-image-input--remove-button-border);
|
|
131
|
+
--ez-button--hover--border: var(--ez-image-input--remove-button-border);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.image-input__remove-button {
|
|
135
|
+
position: absolute;
|
|
136
|
+
top: var(--space--8);
|
|
137
|
+
right: var(--space--8);
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.image-input__popup-content {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
padding: var(--space--16);
|
|
148
|
+
height: 100%;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.image-input__popup-image {
|
|
152
|
+
max-width: 100%;
|
|
153
|
+
max-height: 70vh;
|
|
154
|
+
object-fit: contain;
|
|
155
|
+
border-radius: var(--border--radius-8);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.image-input__image {
|
|
159
|
+
height: 100%;
|
|
160
|
+
object-fit: cover;
|
|
161
|
+
border-radius: calc(var(--ez-image-input--border-radius) - var(--ez-image-input--border-width));
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
transition: transform 0.2s ease;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.image-input__image:hover {
|
|
167
|
+
transform: scale(1.02);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
ez-skeleton {
|
|
171
|
+
--skeleton-width: var(--ez-image-input--container-width);
|
|
172
|
+
--skeleton-height: var(--ez-image-input--container-height);
|
|
173
|
+
}
|