@sankhyalabs/ezui 7.1.0-dev.20 → 7.1.0-dev.22
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-006ca96f.js} +1 -1
- package/dist/cjs/FormLayout-fe8da83c.js +9 -0
- package/dist/cjs/{app-globals-c128c97e.js → app-globals-5cb12916.js} +1 -1
- package/dist/cjs/{ez-combo-box-list_4.cjs.entry.js → classic-search-list_7.cjs.entry.js} +361 -7
- package/dist/cjs/ez-actions-button.cjs.entry.js +5 -4
- package/dist/cjs/ez-alert-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-avatar.cjs.entry.js +2 -2
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +2 -2
- package/dist/cjs/ez-card-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-classic-combo-box.cjs.entry.js +37 -16
- package/dist/cjs/ez-classic-date-input.cjs.entry.js +201 -0
- package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +246 -0
- package/dist/cjs/ez-classic-input.cjs.entry.js +100 -19
- package/dist/cjs/ez-classic-number-input.cjs.entry.js +205 -0
- package/dist/cjs/ez-classic-search-plus.cjs.entry.js +407 -0
- package/dist/cjs/ez-classic-search.cjs.entry.js +683 -0
- package/dist/cjs/ez-classic-text-area.cjs.entry.js +2 -2
- package/dist/cjs/ez-classic-time-input.cjs.entry.js +197 -0
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +5 -4
- package/dist/cjs/ez-combo-box.cjs.entry.js +5 -4
- package/dist/cjs/ez-date-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ez-double-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +130 -37
- package/dist/cjs/ez-form.cjs.entry.js +13 -8
- package/dist/cjs/ez-grid-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +11 -7
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +2 -2
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +2 -2
- package/dist/cjs/ez-list-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
- package/dist/cjs/ez-modal.cjs.entry.js +2 -2
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-pagination.cjs.entry.js +2 -2
- package/dist/cjs/ez-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +2 -2
- package/dist/cjs/ez-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search-plus.cjs.entry.js +8 -7
- package/dist/cjs/ez-search-result-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-search.cjs.entry.js +11 -10
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
- package/dist/cjs/ez-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-item.cjs.entry.js +5 -4
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-tag-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-tag.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +38 -1
- package/dist/cjs/ez-tile-medium.cjs.entry.js +1 -1
- package/dist/cjs/ez-tile.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +2 -2
- package/dist/cjs/ez-underface.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +3 -3
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +4 -4
- package/dist/cjs/filter-column.cjs.entry.js +2 -2
- package/dist/cjs/{index-00d0166b.js → index-350d0fa0.js} +54 -0
- package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +45 -18
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{search-column-8bfee733.js → search-column-9654bf26.js} +5 -5
- package/dist/cjs/searchFormatters-051f8677.js +23 -0
- package/dist/cjs/{FormLayout-18853e70.js → types-6a5df0c7.js} +0 -6
- package/dist/collection/collection-manifest.json +59 -5
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +5 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +77 -18
- package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +44 -0
- package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +541 -0
- package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +44 -0
- package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +586 -0
- package/dist/collection/components/ez-classic-input/ez-classic-input.css +33 -5
- package/dist/collection/components/ez-classic-input/ez-classic-input.js +155 -19
- package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +16 -0
- package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +583 -0
- package/dist/collection/components/ez-classic-search/ez-classic-search.css +126 -0
- package/dist/collection/components/ez-classic-search/ez-classic-search.js +1330 -0
- package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +227 -0
- package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +316 -0
- package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +18 -0
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +406 -0
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +988 -0
- package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +221 -0
- package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +298 -0
- package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +1 -0
- package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +14 -0
- package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +511 -0
- package/dist/collection/components/ez-form/ez-form.js +30 -4
- package/dist/collection/components/ez-form-view/ez-form-view.css +8 -3
- package/dist/collection/components/ez-form-view/ez-form-view.js +61 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +9 -4
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +9 -6
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +30 -6
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.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/NumberInput.tpl.js +12 -5
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +9 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +7 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/structure/index.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +3 -0
- package/dist/collection/components/ez-icon/ez-icon.css +1 -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-rich-text/ez-rich-text.js +2 -3
- package/dist/collection/components/ez-text-input/ez-text-input.js +38 -1
- package/dist/collection/utils/form/DataBinder.js +2 -2
- package/dist/collection/utils/form/interfaces/FormLayout.js +3 -1
- package/dist/collection/utils/i18n/locales/en-us.js +18 -0
- package/dist/collection/utils/i18n/locales/es-es.js +18 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +18 -0
- package/dist/custom-elements/index.d.ts +54 -0
- package/dist/custom-elements/index.js +2913 -347
- package/dist/esm/{ApplicationUtils-12768f5a.js → ApplicationUtils-0c5cb207.js} +1 -1
- package/dist/esm/FormLayout-bda67973.js +9 -0
- package/dist/esm/{app-globals-9507c20e.js → app-globals-1db10325.js} +1 -1
- package/dist/esm/{ez-combo-box-list_4.entry.js → classic-search-list_7.entry.js} +359 -8
- package/dist/esm/ez-actions-button.entry.js +5 -4
- package/dist/esm/ez-alert-list.entry.js +2 -2
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-avatar.entry.js +2 -2
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +2 -2
- package/dist/esm/ez-card-item.entry.js +1 -1
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-classic-combo-box.entry.js +37 -16
- package/dist/esm/ez-classic-date-input.entry.js +197 -0
- package/dist/esm/ez-classic-date-time-input.entry.js +242 -0
- package/dist/esm/ez-classic-input.entry.js +101 -20
- package/dist/esm/ez-classic-number-input.entry.js +201 -0
- package/dist/esm/ez-classic-search-plus.entry.js +403 -0
- package/dist/esm/ez-classic-search.entry.js +679 -0
- package/dist/esm/ez-classic-text-area.entry.js +2 -2
- package/dist/esm/ez-classic-time-input.entry.js +193 -0
- package/dist/esm/ez-collapsible-box.entry.js +5 -4
- package/dist/esm/ez-combo-box.entry.js +5 -4
- package/dist/esm/ez-date-input.entry.js +2 -2
- package/dist/esm/ez-date-time-input.entry.js +2 -2
- package/dist/esm/ez-dialog.entry.js +2 -2
- package/dist/esm/ez-double-list.entry.js +2 -2
- package/dist/esm/ez-dropdown.entry.js +1 -1
- package/dist/esm/ez-empty-card.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +2 -2
- package/dist/esm/ez-filter-input.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +130 -37
- package/dist/esm/ez-form.entry.js +13 -8
- package/dist/esm/ez-grid-view.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +9 -5
- package/dist/esm/ez-guide-navigator.entry.js +2 -2
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-link-builder_6.entry.js +2 -2
- package/dist/esm/ez-list-item.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +2 -2
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +2 -2
- package/dist/esm/ez-modal.entry.js +2 -2
- package/dist/esm/ez-multi-selection-list.entry.js +2 -2
- package/dist/esm/ez-number-input.entry.js +2 -2
- package/dist/esm/ez-pagination.entry.js +2 -2
- package/dist/esm/ez-popover-core.entry.js +1 -1
- package/dist/esm/ez-popover-plus_3.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +2 -2
- package/dist/esm/ez-progress-bar.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-rich-toolbar-item.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search-plus.entry.js +5 -4
- package/dist/esm/ez-search-result-list.entry.js +2 -2
- package/dist/esm/ez-search.entry.js +5 -4
- package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
- package/dist/esm/ez-skeleton.entry.js +2 -2
- package/dist/esm/ez-sortable-list.entry.js +2 -2
- package/dist/esm/ez-spinner.entry.js +2 -2
- package/dist/esm/ez-split-button.entry.js +2 -2
- package/dist/esm/ez-split-item.entry.js +5 -4
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-tag-input.entry.js +1 -1
- package/dist/esm/ez-tag.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +38 -1
- package/dist/esm/ez-tile-medium.entry.js +1 -1
- package/dist/esm/ez-tile.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +2 -2
- package/dist/esm/ez-underface.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +3 -3
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +5 -5
- package/dist/esm/filter-column.entry.js +2 -2
- package/dist/esm/{index-62fc771e.js → index-225aa0c3.js} +54 -0
- package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +45 -19
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{search-column-c00119ae.js → search-column-c3df6285.js} +5 -5
- package/dist/esm/searchFormatters-6d9b06e4.js +20 -0
- package/dist/esm/{FormLayout-071d324c.js → types-6f6b2650.js} +1 -7
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e75c7a23.entry.js → p-000159dc.entry.js} +1 -1
- package/dist/ezui/p-05bcbe61.entry.js +1 -0
- package/dist/ezui/{p-93e1c917.entry.js → p-05e68ab3.entry.js} +1 -1
- package/dist/ezui/{p-288631d1.entry.js → p-06f1b8e4.entry.js} +1 -1
- package/dist/ezui/{p-2854f087.entry.js → p-0820f8c3.entry.js} +1 -1
- package/dist/ezui/{p-6d596a5a.entry.js → p-0b531233.entry.js} +1 -1
- package/dist/ezui/{p-79277e43.entry.js → p-0ba284cd.entry.js} +1 -1
- package/dist/ezui/p-0d393a5d.entry.js +1 -0
- package/dist/ezui/{p-3fe05d6b.entry.js → p-12cc95dc.entry.js} +1 -1
- package/dist/ezui/p-14d6aeb8.entry.js +1 -0
- package/dist/ezui/{p-2528e988.entry.js → p-169d460d.entry.js} +1 -1
- package/dist/ezui/{p-6f77a359.entry.js → p-1723f728.entry.js} +1 -1
- package/dist/ezui/{p-a401041c.entry.js → p-181cb82f.entry.js} +1 -1
- package/dist/ezui/{p-eee3c7ff.entry.js → p-24993171.entry.js} +1 -1
- package/dist/ezui/{p-377768bd.entry.js → p-25748a4e.entry.js} +2 -2
- package/dist/ezui/p-27421015.entry.js +1 -0
- package/dist/ezui/p-27c8a9b7.entry.js +1 -0
- package/dist/ezui/{p-4f0632b4.js → p-29341f74.js} +1 -1
- package/dist/ezui/p-29f0de90.entry.js +1 -0
- package/dist/ezui/{p-44ad16df.entry.js → p-2b51d5a9.entry.js} +1 -1
- package/dist/ezui/p-2c123fdf.entry.js +1 -0
- package/dist/ezui/{p-6a9a20a0.entry.js → p-2fa490f1.entry.js} +1 -1
- package/dist/ezui/{p-da585ff3.entry.js → p-3453dad5.entry.js} +1 -1
- package/dist/ezui/p-34d596a3.entry.js +1 -0
- package/dist/ezui/{p-ef8bd3e8.entry.js → p-35e3715c.entry.js} +1 -1
- package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
- package/dist/ezui/{p-124699e0.entry.js → p-458027b5.entry.js} +1 -1
- package/dist/ezui/p-47e4a8ce.js +1 -0
- package/dist/ezui/{p-4d30b703.entry.js → p-4a876b8b.entry.js} +1 -1
- package/dist/ezui/p-4d909730.entry.js +1 -0
- package/dist/ezui/{p-e27d7dc2.entry.js → p-4df2edb5.entry.js} +1 -1
- package/dist/ezui/{p-6369a0cd.entry.js → p-51e34317.entry.js} +1 -1
- package/dist/ezui/{p-957d08cd.entry.js → p-534209bf.entry.js} +1 -1
- package/dist/ezui/{p-0c0eb410.entry.js → p-55a9e4ba.entry.js} +1 -1
- package/dist/ezui/p-5895e687.js +1 -0
- package/dist/ezui/{p-59a98e31.entry.js → p-636ea910.entry.js} +1 -1
- package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
- package/dist/ezui/p-6ec40dec.entry.js +1 -0
- package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
- package/dist/ezui/p-70f30bfe.entry.js +1 -0
- package/dist/ezui/p-71b341cc.entry.js +1 -0
- package/dist/ezui/{p-cd6f5783.entry.js → p-75443a91.entry.js} +1 -1
- package/dist/ezui/{p-e8c6c973.entry.js → p-75e650ff.entry.js} +1 -1
- package/dist/ezui/p-75e8862c.entry.js +1 -0
- package/dist/ezui/{p-d6f50207.entry.js → p-770cf2b8.entry.js} +1 -1
- package/dist/ezui/{p-91c9d50e.entry.js → p-78e975b4.entry.js} +1 -1
- package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
- package/dist/ezui/p-81a98a7c.entry.js +1 -0
- package/dist/ezui/p-82e1d7fc.entry.js +1 -0
- package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
- package/dist/ezui/p-87739608.entry.js +1 -0
- package/dist/ezui/p-88a115b3.js +1 -0
- package/dist/ezui/p-892e7326.entry.js +1 -0
- package/dist/ezui/p-8f7373ab.entry.js +1 -0
- package/dist/ezui/{p-f34ec732.entry.js → p-980f1f18.entry.js} +1 -1
- package/dist/ezui/{p-5a11cf56.js → p-9825c1d2.js} +1 -1
- package/dist/ezui/{p-a3075f52.entry.js → p-9bcfa689.entry.js} +1 -1
- package/dist/ezui/{p-e882635e.entry.js → p-9d515e5b.entry.js} +1 -1
- package/dist/ezui/{p-1adf7139.entry.js → p-9fb7131e.entry.js} +1 -1
- package/dist/ezui/{p-6f119d5f.entry.js → p-a6ea8da3.entry.js} +1 -1
- package/dist/ezui/{p-d6742c1e.entry.js → p-a9432878.entry.js} +1 -1
- package/dist/ezui/{p-e8c57463.entry.js → p-b21efe83.entry.js} +1 -1
- package/dist/ezui/{p-a0bf1fc7.entry.js → p-bc693db6.entry.js} +1 -1
- package/dist/ezui/{p-1cde96f9.entry.js → p-be2e39c5.entry.js} +1 -1
- package/dist/ezui/{p-641ee538.js → p-c178730b.js} +1 -1
- package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
- package/dist/ezui/{p-6020f3d5.entry.js → p-c754774e.entry.js} +1 -1
- package/dist/ezui/{p-d2645bdf.entry.js → p-c96e536d.entry.js} +1 -1
- package/dist/ezui/{p-cfa26133.entry.js → p-ce2614fc.entry.js} +1 -1
- package/dist/ezui/{p-20c024f7.entry.js → p-cf33bc48.entry.js} +1 -1
- package/dist/ezui/p-d3aca6aa.entry.js +1 -0
- package/dist/ezui/p-d57ea090.entry.js +1 -0
- package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
- package/dist/ezui/{p-5ab08b60.entry.js → p-e0380234.entry.js} +1 -1
- package/dist/ezui/{p-e99cbb51.entry.js → p-e039e049.entry.js} +1 -1
- package/dist/ezui/{p-a7eab406.entry.js → p-e0fd2ce5.entry.js} +1 -1
- package/dist/ezui/{p-7f792043.entry.js → p-e195eaad.entry.js} +1 -1
- package/dist/ezui/{p-7b999377.entry.js → p-e275353b.entry.js} +1 -1
- package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
- package/dist/ezui/{p-2a70f094.entry.js → p-e94d3af5.entry.js} +1 -1
- package/dist/ezui/p-e963cb3f.entry.js +1 -0
- package/dist/ezui/{p-e7a7c594.entry.js → p-e9b409c1.entry.js} +1 -1
- package/dist/ezui/p-f0425f87.entry.js +1 -0
- package/dist/ezui/{p-19cf13bc.entry.js → p-f1b54699.entry.js} +1 -1
- package/dist/ezui/{p-a3ada561.entry.js → p-f26b97e9.entry.js} +1 -1
- package/dist/ezui/{p-ff4bde07.entry.js → p-f32d5a82.entry.js} +1 -1
- package/dist/ezui/{p-411c0222.entry.js → p-f7ca8634.entry.js} +1 -1
- package/dist/ezui/{p-294f54fe.entry.js → p-fe0bca65.entry.js} +1 -1
- package/dist/ezui/p-ff4312d5.js +1 -0
- package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +9 -3
- package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +91 -0
- package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +95 -0
- package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +18 -1
- package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +101 -0
- package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +219 -0
- package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +29 -0
- package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +2 -0
- package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +186 -0
- package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +29 -0
- package/dist/types/components/ez-form/ez-form.d.ts +6 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +11 -0
- package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +8 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +5 -4
- package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-image-input/ez-image-input.d.ts +42 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
- package/dist/types/components.d.ts +3220 -1969
- package/dist/types/utils/form/interfaces/FormLayout.d.ts +3 -1
- package/dist/types/utils/i18n/locales/en-us.d.ts +18 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +18 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +18 -0
- package/dist/types/utils/i18n/translations.d.ts +54 -0
- package/package.json +1 -1
- package/react/components.d.ts +9 -0
- package/react/components.js +9 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-1266fe78.entry.js +0 -1
- package/dist/ezui/p-14807f4e.js +0 -1
- package/dist/ezui/p-1730ee24.entry.js +0 -1
- package/dist/ezui/p-30ffb9ed.js +0 -1
- package/dist/ezui/p-48effc69.entry.js +0 -1
- package/dist/ezui/p-59092a66.entry.js +0 -1
- package/dist/ezui/p-7fe97ef5.entry.js +0 -1
- package/dist/ezui/p-8d626d2b.entry.js +0 -1
- package/dist/ezui/p-8dc267ff.entry.js +0 -1
- package/dist/ezui/p-96b33264.entry.js +0 -1
- package/dist/ezui/p-9b2e6438.entry.js +0 -1
- package/dist/ezui/p-adaa2a81.entry.js +0 -1
- package/dist/ezui/p-bc2f844e.entry.js +0 -1
- package/dist/ezui/p-c82acfc6.entry.js +0 -1
- package/dist/ezui/p-d8cc640d.entry.js +0 -1
- package/dist/ezui/p-dee18824.entry.js +0 -1
- package/dist/ezui/p-df316d40.entry.js +0 -1
- package/dist/ezui/p-eca050b4.entry.js +0 -1
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
/* list */
|
|
3
|
+
/*@doc Define a cor do texto da lista de opções.*/
|
|
4
|
+
--ez-classic-search__list-title--primary: var(--title--primary, #2B3A54);
|
|
5
|
+
/*@doc Define a cor do texto do value da lista de opções.*/
|
|
6
|
+
--ez-classic-search__list-text--primary: var(--text--primary, #626e82);
|
|
7
|
+
/*@doc Define a altura do box da lista de opções.*/
|
|
8
|
+
--ez-classic-search__list-height: calc(var(--ez-classic-search--font-size) + var(--ez-classic-search--space--medium) + 4px);
|
|
9
|
+
/*@doc Define a largura mínima da lista de opções.*/
|
|
10
|
+
--ez-classic-search__list-min-width: 64px;
|
|
11
|
+
|
|
12
|
+
/* scrollbar */
|
|
13
|
+
/*@doc Define a cor da barra de rolagem do componente.*/
|
|
14
|
+
--ez-classic-search__scrollbar--color-default: var(--scrollbar--default, #626e82);
|
|
15
|
+
/*@doc Define a cor de fundo da barra de rolagem do componente.*/
|
|
16
|
+
--ez-classic-search__scrollbar--color-background: var(--scrollbar--background, #E5EAF0);
|
|
17
|
+
/*@doc Define a cor do hover na barra de rolagem do componente.*/
|
|
18
|
+
--ez-classic-search__scrollbar--color-hover: var(--scrollbar--hover, #2B3A54);
|
|
19
|
+
/*@doc Define a cor do active na barra de rolagem do componente.*/
|
|
20
|
+
--ez-classic-search__scrollbar--color-clicked: var(--scrollbar--clicked, #a2abb9);
|
|
21
|
+
/*@doc Define o raio da borda da barra de rolagem do componente.*/
|
|
22
|
+
--ez-classic-search__scrollbar--border-radius: var(--border--radius-small, 6px);
|
|
23
|
+
/*@doc Define a largura da barra de rolagem do componente.*/
|
|
24
|
+
--ez-classic-search__scrollbar--width: var(--space--small, 6px);
|
|
25
|
+
|
|
26
|
+
/* general */
|
|
27
|
+
/*@doc Define o raio da borda do input quando pequeno.*/
|
|
28
|
+
--ez-classic-search--border-radius-small: var(--border--radius-small, 6px);
|
|
29
|
+
/*@doc Define o tamanho da fonte dentro do input.*/
|
|
30
|
+
--ez-classic-search--font-size: var(--text--medium, 14px);
|
|
31
|
+
/*@doc Define a família da fonte dentro do input.*/
|
|
32
|
+
--ez-classic-search--font-family: var(--font-pattern, Arial);
|
|
33
|
+
/*@doc Define o peso da fonte dentro do input quando pesada.*/
|
|
34
|
+
--ez-classic-search--font-weight--large: var(--text-weight--large, 500);
|
|
35
|
+
/*@doc Define o peso da fonte dentro do input quando média.*/
|
|
36
|
+
--ez-classic-search--font-weight--medium: var(--text-weight--medium, 400);
|
|
37
|
+
/*@doc Define a cor de fundo dos itens da lista de opções.*/
|
|
38
|
+
--ez-classic-search--background-medium: var(--background--medium, #f0f3f7);
|
|
39
|
+
/*@doc Define a altura da linha do texto dentro do input.*/
|
|
40
|
+
--ez-classic-search--line-height: calc(var(--text--medium, 14px) + 4px);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.list-options {
|
|
44
|
+
position: relative;
|
|
45
|
+
z-index: var(--more-visible, 2);
|
|
46
|
+
margin: var(--space--small) 0px;
|
|
47
|
+
padding: 0px;
|
|
48
|
+
padding-inline-start: 0px;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
max-height: 350px;
|
|
53
|
+
min-width: 150px;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
scroll-behavior: smooth;
|
|
57
|
+
overflow-y: auto;
|
|
58
|
+
overflow-x: hidden;
|
|
59
|
+
scrollbar-width: thin;
|
|
60
|
+
|
|
61
|
+
/*public*/
|
|
62
|
+
scrollbar-color: var(--ez-classic-search__scrollbar--color-clicked) var(--ez-classic-search__scrollbar--color-background);
|
|
63
|
+
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.list-options::-webkit-scrollbar {
|
|
67
|
+
/*public*/
|
|
68
|
+
background-color: var(--scrollbar--background);
|
|
69
|
+
width: var(--space--small);
|
|
70
|
+
max-width: var(--space--small);
|
|
71
|
+
min-width: var(--space--small);
|
|
72
|
+
height: var(--space--small);
|
|
73
|
+
max-height: var(--space--small);
|
|
74
|
+
min-height: var(--space--small);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.list-options::-webkit-scrollbar-track {
|
|
78
|
+
/*public*/
|
|
79
|
+
background-color: var(--ez-classic-search__scrollbar--color-background);
|
|
80
|
+
border-radius: var(--ez-classic-search__scrollbar--border-radius);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.list-options::-webkit-scrollbar-thumb {
|
|
84
|
+
/*public*/
|
|
85
|
+
background-color: var(--ez-classic-search__scrollbar--color-default);
|
|
86
|
+
border-radius: var(--ez-classic-search__scrollbar--border-radius);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.list-options::-webkit-scrollbar-thumb:vertical:hover,
|
|
90
|
+
.list-options::-webkit-scrollbar-thumb:horizontal:hover {
|
|
91
|
+
/*public*/
|
|
92
|
+
background-color: var(--ez-classic-search__scrollbar--color-hover);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.list-options::-webkit-scrollbar-thumb:vertical:active,
|
|
96
|
+
.list-options::-webkit-scrollbar-thumb:horizontal:active {
|
|
97
|
+
/*public*/
|
|
98
|
+
background-color: var(--ez-classic-search__scrollbar--color-clicked);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.message {
|
|
102
|
+
text-align: center;
|
|
103
|
+
display: flex;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
align-items: center;
|
|
106
|
+
list-style-type: none;
|
|
107
|
+
margin: var(--space--medium) 0px;
|
|
108
|
+
|
|
109
|
+
/*public*/
|
|
110
|
+
min-height: var(--ez-classic-search__list-height);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.message__no-result {
|
|
114
|
+
/*public*/
|
|
115
|
+
color: var(--ez-classic-search__list-title--primary);
|
|
116
|
+
font-family: var(--ez-classic-search--font-family);
|
|
117
|
+
font-size: var(--ez-classic-search--font-size);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.message__loading {
|
|
121
|
+
border-radius: 50%;
|
|
122
|
+
width: 14px;
|
|
123
|
+
height: 14px;
|
|
124
|
+
-webkit-animation: spin 1s linear infinite;
|
|
125
|
+
animation: spin 1s linear infinite;
|
|
126
|
+
|
|
127
|
+
/*public*/
|
|
128
|
+
border: 3px solid var(--ez-classic-search__list-title--primary);
|
|
129
|
+
border-top: 3px solid transparent;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.item__value,
|
|
133
|
+
.item__label {
|
|
134
|
+
flex-basis: auto;
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
text-overflow: ellipsis;
|
|
138
|
+
|
|
139
|
+
/*public*/
|
|
140
|
+
color: var(--ez-classic-search__list-title--primary);
|
|
141
|
+
font-family: var(--ez-classic-search--font-family);
|
|
142
|
+
font-size: var(--ez-classic-search--font-size);
|
|
143
|
+
line-height: var(--ez-classic-search--line-height);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.item__label {
|
|
147
|
+
/*public*/
|
|
148
|
+
font-weight: var(--ez-classic-search--font-weight--medium);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.item__label--bold {
|
|
152
|
+
/*public*/
|
|
153
|
+
font-weight: var(--ez-classic-search--font-weight--large);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.item__value {
|
|
157
|
+
text-align: center;
|
|
158
|
+
|
|
159
|
+
/*public*/
|
|
160
|
+
color: var(--ez-classic-search__list-text--primary);
|
|
161
|
+
font-weight: var(--ez-classic-search--font-weight--large);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.item__value--hidden {
|
|
165
|
+
visibility: hidden;
|
|
166
|
+
position: absolute;
|
|
167
|
+
white-space: nowrap;
|
|
168
|
+
z-index: -1;
|
|
169
|
+
top: 0;
|
|
170
|
+
left: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.item__label {
|
|
174
|
+
text-align: left;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.item__list>li:hover {
|
|
178
|
+
/*public*/
|
|
179
|
+
background-color: var(--ez-classic-search--background-medium);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.item {
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
width: 100%;
|
|
186
|
+
box-sizing: border-box;
|
|
187
|
+
list-style-type: none;
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
|
|
190
|
+
/*public*/
|
|
191
|
+
border-radius: var(--ez-classic-search--border-radius-small);
|
|
192
|
+
gap: var(--space--small, 6px);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.preselected {
|
|
196
|
+
/*public*/
|
|
197
|
+
background-color: var(--background--medium);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@-webkit-keyframes spin {
|
|
201
|
+
0% {
|
|
202
|
+
-webkit-transform: rotate(0deg);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
100% {
|
|
206
|
+
-webkit-transform: rotate(360deg);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@keyframes spin {
|
|
211
|
+
0% {
|
|
212
|
+
transform: rotate(0deg);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
100% {
|
|
216
|
+
transform: rotate(360deg);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@supports not (scrollbar-width: thin) {
|
|
221
|
+
|
|
222
|
+
/* Estilos para navegadores que NÃO suportam scrollbar-width */
|
|
223
|
+
.item {
|
|
224
|
+
/* Estilos alternativos, por exemplo, para navegadores que não suportam scrollbar-width */
|
|
225
|
+
padding-right: 8px;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
import { StringUtils } from '@sankhyalabs/core';
|
|
3
|
+
import { replaceHighlight, replaceQuotes } from '../../utils/searchFormatters';
|
|
4
|
+
export class ClassicSearchList {
|
|
5
|
+
constructor() {
|
|
6
|
+
this._startHighlightTag = "<span class='card-item__highlight'>";
|
|
7
|
+
this._endHighlightTag = "</span>";
|
|
8
|
+
this.MAX_HEIGHT = 350;
|
|
9
|
+
this.HEADER_MENU_HEIGHT = 60;
|
|
10
|
+
this.showLoading = undefined;
|
|
11
|
+
this.visibleOptions = [];
|
|
12
|
+
this.textEmptyList = undefined;
|
|
13
|
+
this.canShowListOptions = undefined;
|
|
14
|
+
this.value = undefined;
|
|
15
|
+
this.showOptionValue = true;
|
|
16
|
+
this.preSelection = undefined;
|
|
17
|
+
}
|
|
18
|
+
async nextOption() {
|
|
19
|
+
const newPreSelection = this.preSelection === undefined ? 0 : Math.min(this.preSelection + 1, this.visibleOptions.length - 1);
|
|
20
|
+
this.changePreSelection.emit(newPreSelection);
|
|
21
|
+
this.scrollToOption(this.visibleOptions[newPreSelection]);
|
|
22
|
+
}
|
|
23
|
+
async previousOption() {
|
|
24
|
+
const newPreSelection = this.preSelection === undefined ? 0 : Math.max(this.preSelection - 1, 0);
|
|
25
|
+
this.changePreSelection.emit(newPreSelection);
|
|
26
|
+
this.scrollToOption(this.visibleOptions[newPreSelection]);
|
|
27
|
+
}
|
|
28
|
+
selectOption(newOption) {
|
|
29
|
+
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
30
|
+
const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
|
|
31
|
+
this.changeValue.emit(newOptionsFormatted);
|
|
32
|
+
}
|
|
33
|
+
createOption(detail) {
|
|
34
|
+
let { key, title } = detail;
|
|
35
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
36
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
37
|
+
title = StringUtils.decodeHtmlEntities(title);
|
|
38
|
+
const option = {
|
|
39
|
+
value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
|
|
40
|
+
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
41
|
+
};
|
|
42
|
+
this.selectOption(option);
|
|
43
|
+
}
|
|
44
|
+
scrollToOption(opt) {
|
|
45
|
+
window.requestAnimationFrame(() => {
|
|
46
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
|
|
47
|
+
? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
|
|
48
|
+
: undefined;
|
|
49
|
+
if (liElem) {
|
|
50
|
+
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
buildItem(opt, index) {
|
|
55
|
+
opt.label = opt.label || opt.value;
|
|
56
|
+
const card = {
|
|
57
|
+
key: opt.value,
|
|
58
|
+
title: opt.label,
|
|
59
|
+
details: opt.details
|
|
60
|
+
};
|
|
61
|
+
return h("div", { style: { "height": "100%" }, class: index === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this.changePreSelection.emit(index) }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
|
|
62
|
+
}
|
|
63
|
+
componentDidLoad() {
|
|
64
|
+
if (this._optionsList) {
|
|
65
|
+
this._optionsList.style.maxHeight = `${this.MAX_HEIGHT}px`;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
componentDidUpdate() {
|
|
69
|
+
if (this._optionsList) {
|
|
70
|
+
const rect = this._optionsList.getBoundingClientRect();
|
|
71
|
+
const spaceBelow = window.innerHeight - rect.bottom;
|
|
72
|
+
if (spaceBelow < 0) {
|
|
73
|
+
this.adjustMaxHeight(rect);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
adjustMaxHeight(rect) {
|
|
78
|
+
if (this._optionsList) {
|
|
79
|
+
const spaceAbove = rect.top - this.HEADER_MENU_HEIGHT;
|
|
80
|
+
const maxHeight = this.MAX_HEIGHT;
|
|
81
|
+
const height = Math.min(spaceAbove, maxHeight);
|
|
82
|
+
this._optionsList.style.maxHeight = `${height}px`;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
cleanEmptyObjectArray(arr) {
|
|
86
|
+
return arr.filter(item => ((item === null || item === void 0 ? void 0 : item.value) !== undefined));
|
|
87
|
+
}
|
|
88
|
+
render() {
|
|
89
|
+
return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
|
|
90
|
+
&& this.cleanEmptyObjectArray(this.visibleOptions).length === 0
|
|
91
|
+
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList)), this.showLoading
|
|
92
|
+
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), this.canShowListOptions && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
|
|
93
|
+
}
|
|
94
|
+
static get is() { return "classic-search-list"; }
|
|
95
|
+
static get encapsulation() { return "shadow"; }
|
|
96
|
+
static get originalStyleUrls() {
|
|
97
|
+
return {
|
|
98
|
+
"$": ["classic-search-list.css"]
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
static get styleUrls() {
|
|
102
|
+
return {
|
|
103
|
+
"$": ["classic-search-list.css"]
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
static get properties() {
|
|
107
|
+
return {
|
|
108
|
+
"showLoading": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"mutable": false,
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "boolean",
|
|
113
|
+
"resolved": "boolean",
|
|
114
|
+
"references": {}
|
|
115
|
+
},
|
|
116
|
+
"required": false,
|
|
117
|
+
"optional": false,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": ""
|
|
121
|
+
},
|
|
122
|
+
"attribute": "show-loading",
|
|
123
|
+
"reflect": false
|
|
124
|
+
},
|
|
125
|
+
"visibleOptions": {
|
|
126
|
+
"type": "unknown",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "Array<IOption>",
|
|
130
|
+
"resolved": "IOption[]",
|
|
131
|
+
"references": {
|
|
132
|
+
"Array": {
|
|
133
|
+
"location": "global"
|
|
134
|
+
},
|
|
135
|
+
"IOption": {
|
|
136
|
+
"location": "import",
|
|
137
|
+
"path": "../../ez-classic-search"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": false,
|
|
142
|
+
"optional": false,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": ""
|
|
146
|
+
},
|
|
147
|
+
"defaultValue": "[]"
|
|
148
|
+
},
|
|
149
|
+
"textEmptyList": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"mutable": false,
|
|
152
|
+
"complexType": {
|
|
153
|
+
"original": "string",
|
|
154
|
+
"resolved": "string",
|
|
155
|
+
"references": {}
|
|
156
|
+
},
|
|
157
|
+
"required": false,
|
|
158
|
+
"optional": false,
|
|
159
|
+
"docs": {
|
|
160
|
+
"tags": [],
|
|
161
|
+
"text": ""
|
|
162
|
+
},
|
|
163
|
+
"attribute": "text-empty-list",
|
|
164
|
+
"reflect": false
|
|
165
|
+
},
|
|
166
|
+
"canShowListOptions": {
|
|
167
|
+
"type": "boolean",
|
|
168
|
+
"mutable": false,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "boolean",
|
|
171
|
+
"resolved": "boolean",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": ""
|
|
179
|
+
},
|
|
180
|
+
"attribute": "can-show-list-options",
|
|
181
|
+
"reflect": false
|
|
182
|
+
},
|
|
183
|
+
"value": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"mutable": false,
|
|
186
|
+
"complexType": {
|
|
187
|
+
"original": "IOption | string",
|
|
188
|
+
"resolved": "IOption | string",
|
|
189
|
+
"references": {
|
|
190
|
+
"IOption": {
|
|
191
|
+
"location": "import",
|
|
192
|
+
"path": "../../ez-classic-search"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": false,
|
|
197
|
+
"optional": false,
|
|
198
|
+
"docs": {
|
|
199
|
+
"tags": [],
|
|
200
|
+
"text": ""
|
|
201
|
+
},
|
|
202
|
+
"attribute": "value",
|
|
203
|
+
"reflect": false
|
|
204
|
+
},
|
|
205
|
+
"showOptionValue": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"mutable": false,
|
|
208
|
+
"complexType": {
|
|
209
|
+
"original": "boolean",
|
|
210
|
+
"resolved": "boolean",
|
|
211
|
+
"references": {}
|
|
212
|
+
},
|
|
213
|
+
"required": false,
|
|
214
|
+
"optional": false,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": ""
|
|
218
|
+
},
|
|
219
|
+
"attribute": "show-option-value",
|
|
220
|
+
"reflect": false,
|
|
221
|
+
"defaultValue": "true"
|
|
222
|
+
},
|
|
223
|
+
"preSelection": {
|
|
224
|
+
"type": "number",
|
|
225
|
+
"mutable": false,
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "number",
|
|
228
|
+
"resolved": "number",
|
|
229
|
+
"references": {}
|
|
230
|
+
},
|
|
231
|
+
"required": false,
|
|
232
|
+
"optional": false,
|
|
233
|
+
"docs": {
|
|
234
|
+
"tags": [],
|
|
235
|
+
"text": ""
|
|
236
|
+
},
|
|
237
|
+
"attribute": "pre-selection",
|
|
238
|
+
"reflect": false
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
static get events() {
|
|
243
|
+
return [{
|
|
244
|
+
"method": "changeValue",
|
|
245
|
+
"name": "changeValue",
|
|
246
|
+
"bubbles": true,
|
|
247
|
+
"cancelable": true,
|
|
248
|
+
"composed": true,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [],
|
|
251
|
+
"text": ""
|
|
252
|
+
},
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "IOption",
|
|
255
|
+
"resolved": "IOption",
|
|
256
|
+
"references": {
|
|
257
|
+
"IOption": {
|
|
258
|
+
"location": "import",
|
|
259
|
+
"path": "../../ez-classic-search"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}, {
|
|
264
|
+
"method": "changePreSelection",
|
|
265
|
+
"name": "changePreSelection",
|
|
266
|
+
"bubbles": true,
|
|
267
|
+
"cancelable": true,
|
|
268
|
+
"composed": true,
|
|
269
|
+
"docs": {
|
|
270
|
+
"tags": [],
|
|
271
|
+
"text": ""
|
|
272
|
+
},
|
|
273
|
+
"complexType": {
|
|
274
|
+
"original": "number",
|
|
275
|
+
"resolved": "number",
|
|
276
|
+
"references": {}
|
|
277
|
+
}
|
|
278
|
+
}];
|
|
279
|
+
}
|
|
280
|
+
static get methods() {
|
|
281
|
+
return {
|
|
282
|
+
"nextOption": {
|
|
283
|
+
"complexType": {
|
|
284
|
+
"signature": "() => Promise<void>",
|
|
285
|
+
"parameters": [],
|
|
286
|
+
"references": {
|
|
287
|
+
"Promise": {
|
|
288
|
+
"location": "global"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"return": "Promise<void>"
|
|
292
|
+
},
|
|
293
|
+
"docs": {
|
|
294
|
+
"text": "",
|
|
295
|
+
"tags": []
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"previousOption": {
|
|
299
|
+
"complexType": {
|
|
300
|
+
"signature": "() => Promise<void>",
|
|
301
|
+
"parameters": [],
|
|
302
|
+
"references": {
|
|
303
|
+
"Promise": {
|
|
304
|
+
"location": "global"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"return": "Promise<void>"
|
|
308
|
+
},
|
|
309
|
+
"docs": {
|
|
310
|
+
"text": "",
|
|
311
|
+
"tags": []
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const START_HIGH_LIGHT_TAG = "<span class='card-item__highlight'>";
|
|
2
|
+
const END_HIGH_LIGHT_TAG = "</span>";
|
|
3
|
+
export function replaceHighlight(value) {
|
|
4
|
+
const startHighlight = new RegExp(START_HIGH_LIGHT_TAG, 'g');
|
|
5
|
+
const endHighlight = new RegExp(END_HIGH_LIGHT_TAG, 'g');
|
|
6
|
+
const newValue = String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
7
|
+
return replaceQuotes(newValue);
|
|
8
|
+
}
|
|
9
|
+
export function replaceQuotes(text) {
|
|
10
|
+
if (text == undefined) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return String(text)
|
|
14
|
+
.replace(/&/g, '&')
|
|
15
|
+
.replace(/</g, '<')
|
|
16
|
+
.replace(/>/g, '>')
|
|
17
|
+
.replace(/"/g, '"');
|
|
18
|
+
}
|