overview-components 1.1.0 → 1.1.10
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/assets/generated/locales/de.d.ts +43 -17
- package/dist/assets/generated/locales/de.d.ts.map +1 -1
- package/dist/assets/generated/locales/de.js +68 -42
- package/dist/assets/generated/locales/de.js.map +1 -1
- package/dist/assets/generated/locales/en.d.ts +40 -14
- package/dist/assets/generated/locales/en.d.ts.map +1 -1
- package/dist/assets/generated/locales/en.js +41 -15
- package/dist/assets/generated/locales/en.js.map +1 -1
- package/dist/assets/generated/locales/fr.d.ts +71 -0
- package/dist/assets/generated/locales/fr.d.ts.map +1 -0
- package/dist/assets/generated/locales/fr.js +71 -0
- package/dist/assets/generated/locales/fr.js.map +1 -0
- package/dist/assets/generated/locales/hr.d.ts +71 -0
- package/dist/assets/generated/locales/hr.d.ts.map +1 -0
- package/dist/assets/generated/locales/hr.js +71 -0
- package/dist/assets/generated/locales/hr.js.map +1 -0
- package/dist/assets/generated/locales/it.d.ts +71 -0
- package/dist/assets/generated/locales/it.d.ts.map +1 -0
- package/dist/assets/generated/locales/it.js +71 -0
- package/dist/assets/generated/locales/it.js.map +1 -0
- package/dist/assets/generated/locales/pl.d.ts +43 -17
- package/dist/assets/generated/locales/pl.d.ts.map +1 -1
- package/dist/assets/generated/locales/pl.js +44 -18
- package/dist/assets/generated/locales/pl.js.map +1 -1
- package/dist/assets/generated/locales/ro.d.ts +71 -0
- package/dist/assets/generated/locales/ro.d.ts.map +1 -0
- package/dist/assets/generated/locales/ro.js +71 -0
- package/dist/assets/generated/locales/ro.js.map +1 -0
- package/dist/assets/generated/locales/sk.d.ts +43 -17
- package/dist/assets/generated/locales/sk.d.ts.map +1 -1
- package/dist/assets/generated/locales/sk.js +68 -42
- package/dist/assets/generated/locales/sk.js.map +1 -1
- package/dist/assets/generated/locales/sr.d.ts +71 -0
- package/dist/assets/generated/locales/sr.d.ts.map +1 -0
- package/dist/assets/generated/locales/sr.js +71 -0
- package/dist/assets/generated/locales/sr.js.map +1 -0
- package/dist/assets/icons/iconGlyphs.d.ts +674 -873
- package/dist/assets/icons/iconGlyphs.d.ts.map +1 -1
- package/dist/assets/icons/iconGlyphs.js +338 -322
- package/dist/assets/icons/iconGlyphs.js.map +1 -1
- package/dist/assets/illustration/delete-illustration.d.ts +6 -0
- package/dist/assets/illustration/delete-illustration.d.ts.map +1 -0
- package/dist/assets/illustration/delete-illustration.js +96 -0
- package/dist/assets/illustration/delete-illustration.js.map +1 -0
- package/dist/assets/illustration/no-content.d.ts.map +1 -0
- package/dist/assets/illustration/no-content.js.map +1 -0
- package/dist/assets/illustration/no-preview.d.ts.map +1 -0
- package/dist/assets/illustration/no-preview.js.map +1 -0
- package/dist/assets/illustration/not-found.d.ts.map +1 -0
- package/dist/assets/{ilustration → illustration}/not-found.js +15 -15
- package/dist/assets/illustration/not-found.js.map +1 -0
- package/dist/assets/illustration/settings-illustration.d.ts +6 -0
- package/dist/assets/illustration/settings-illustration.d.ts.map +1 -0
- package/dist/assets/illustration/settings-illustration.js +176 -0
- package/dist/assets/illustration/settings-illustration.js.map +1 -0
- package/dist/components/components-settings/attachments-tab-settings.d.ts +39 -0
- package/dist/components/components-settings/attachments-tab-settings.d.ts.map +1 -0
- package/dist/components/components-settings/attachments-tab-settings.js +218 -0
- package/dist/components/components-settings/attachments-tab-settings.js.map +1 -0
- package/dist/components/components-settings/data-grid-settings.d.ts +53 -0
- package/dist/components/components-settings/data-grid-settings.d.ts.map +1 -0
- package/dist/components/components-settings/data-grid-settings.js +318 -0
- package/dist/components/components-settings/data-grid-settings.js.map +1 -0
- package/dist/components/components-settings/section-tab-settings.d.ts +48 -0
- package/dist/components/components-settings/section-tab-settings.d.ts.map +1 -0
- package/dist/components/components-settings/section-tab-settings.js +262 -0
- package/dist/components/components-settings/section-tab-settings.js.map +1 -0
- package/dist/components/components-settings/tabs-overview-settings.d.ts +53 -0
- package/dist/components/components-settings/tabs-overview-settings.d.ts.map +1 -0
- package/dist/components/components-settings/tabs-overview-settings.js +431 -0
- package/dist/components/components-settings/tabs-overview-settings.js.map +1 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +22 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/lit-attachments-tab.d.ts +15 -25
- package/dist/components/lit-attachments-tab.d.ts.map +1 -1
- package/dist/components/lit-attachments-tab.js +400 -268
- package/dist/components/lit-attachments-tab.js.map +1 -1
- package/dist/components/lit-badge.d.ts +1 -1
- package/dist/components/lit-badge.d.ts.map +1 -1
- package/dist/components/lit-badge.js +60 -55
- package/dist/components/lit-badge.js.map +1 -1
- package/dist/components/lit-case-variables-tab.d.ts +46 -32
- package/dist/components/lit-case-variables-tab.d.ts.map +1 -1
- package/dist/components/lit-case-variables-tab.js +722 -154
- package/dist/components/lit-case-variables-tab.js.map +1 -1
- package/dist/components/lit-chart.d.ts +4 -2
- package/dist/components/lit-chart.d.ts.map +1 -1
- package/dist/components/lit-chart.js +7 -7
- package/dist/components/lit-chart.js.map +1 -1
- package/dist/components/lit-data-grid-tanstack.d.ts +75 -99
- package/dist/components/lit-data-grid-tanstack.d.ts.map +1 -1
- package/dist/components/lit-data-grid-tanstack.js +1305 -808
- package/dist/components/lit-data-grid-tanstack.js.map +1 -1
- package/dist/components/lit-filter-modal.d.ts +4 -11
- package/dist/components/lit-filter-modal.d.ts.map +1 -1
- package/dist/components/lit-filter-modal.js +161 -152
- package/dist/components/lit-filter-modal.js.map +1 -1
- package/dist/components/lit-multiselect-item.d.ts +70 -0
- package/dist/components/lit-multiselect-item.d.ts.map +1 -0
- package/dist/components/lit-multiselect-item.js +706 -0
- package/dist/components/lit-multiselect-item.js.map +1 -0
- package/dist/components/lit-section-tab.d.ts +26 -5
- package/dist/components/lit-section-tab.d.ts.map +1 -1
- package/dist/components/lit-section-tab.js +114 -39
- package/dist/components/lit-section-tab.js.map +1 -1
- package/dist/components/lit-tabs-overview.d.ts +27 -11
- package/dist/components/lit-tabs-overview.d.ts.map +1 -1
- package/dist/components/lit-tabs-overview.js +277 -74
- package/dist/components/lit-tabs-overview.js.map +1 -1
- package/dist/components/modals/lit-confirm-modal.d.ts +25 -0
- package/dist/components/modals/lit-confirm-modal.d.ts.map +1 -0
- package/dist/components/modals/lit-confirm-modal.js +120 -0
- package/dist/components/modals/lit-confirm-modal.js.map +1 -0
- package/dist/components/modals/lit-delete-modal.d.ts +25 -0
- package/dist/components/modals/lit-delete-modal.d.ts.map +1 -0
- package/dist/components/modals/lit-delete-modal.js +128 -0
- package/dist/components/modals/lit-delete-modal.js.map +1 -0
- package/dist/components/react-wrappers/button.d.ts +3 -0
- package/dist/components/react-wrappers/button.d.ts.map +1 -0
- package/dist/components/react-wrappers/button.js +9 -0
- package/dist/components/react-wrappers/button.js.map +1 -0
- package/dist/components/react-wrappers/index.d.ts +22 -0
- package/dist/components/react-wrappers/index.d.ts.map +1 -0
- package/dist/components/react-wrappers/index.js +22 -0
- package/dist/components/react-wrappers/index.js.map +1 -0
- package/dist/components/react-wrappers/progress-bar.d.ts +3 -0
- package/dist/components/react-wrappers/progress-bar.d.ts.map +1 -0
- package/dist/components/react-wrappers/progress-bar.js +9 -0
- package/dist/components/react-wrappers/progress-bar.js.map +1 -0
- package/dist/index.d.ts +3 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -24
- package/dist/index.js.map +1 -1
- package/dist/libs/xlsx.mini.min.js +10 -0
- package/dist/schemas/index.d.ts +17 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +17 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/lit-attachments-tab-document.schema.d.ts +20 -0
- package/dist/schemas/lit-attachments-tab-document.schema.d.ts.map +1 -0
- package/dist/schemas/lit-attachments-tab-document.schema.js +20 -0
- package/dist/schemas/lit-attachments-tab-document.schema.js.map +1 -0
- package/dist/schemas/lit-attachments-tab-settings-value.schema.d.ts +15 -0
- package/dist/schemas/lit-attachments-tab-settings-value.schema.d.ts.map +1 -0
- package/dist/schemas/lit-attachments-tab-settings-value.schema.js +15 -0
- package/dist/schemas/lit-attachments-tab-settings-value.schema.js.map +1 -0
- package/dist/schemas/lit-attachments-tab.schema.d.ts +49 -0
- package/dist/schemas/lit-attachments-tab.schema.d.ts.map +1 -0
- package/dist/schemas/lit-attachments-tab.schema.js +32 -0
- package/dist/schemas/lit-attachments-tab.schema.js.map +1 -0
- package/dist/schemas/lit-case-variables-tab-cell.schema.d.ts +99 -0
- package/dist/schemas/lit-case-variables-tab-cell.schema.d.ts.map +1 -0
- package/dist/schemas/lit-case-variables-tab-cell.schema.js +43 -0
- package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +1 -0
- package/dist/schemas/lit-case-variables-tab-rows.schema.d.ts +102 -0
- package/dist/schemas/lit-case-variables-tab-rows.schema.d.ts.map +1 -0
- package/dist/schemas/lit-case-variables-tab-rows.schema.js +6 -0
- package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +1 -0
- package/dist/schemas/lit-case-variables-tab.schema.d.ts +133 -0
- package/dist/schemas/lit-case-variables-tab.schema.d.ts.map +1 -0
- package/dist/schemas/lit-case-variables-tab.schema.js +25 -0
- package/dist/schemas/lit-case-variables-tab.schema.js.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column-array.schema.d.ts +90 -0
- package/dist/schemas/lit-data-grid-tanstack-column-array.schema.d.ts.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +6 -0
- package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.d.ts +20 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.d.ts.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +6 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.d.ts +17 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.d.ts.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +11 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column.schema.d.ts +87 -0
- package/dist/schemas/lit-data-grid-tanstack-column.schema.d.ts.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column.schema.js +55 -0
- package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack.schema.d.ts +264 -0
- package/dist/schemas/lit-data-grid-tanstack.schema.d.ts.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack.schema.js +99 -0
- package/dist/schemas/lit-data-grid-tanstack.schema.js.map +1 -0
- package/dist/schemas/lit-section-tab-schema.d.ts +23 -0
- package/dist/schemas/lit-section-tab-schema.d.ts.map +1 -0
- package/dist/schemas/lit-section-tab-schema.js +24 -0
- package/dist/schemas/lit-section-tab-schema.js.map +1 -0
- package/dist/schemas/lit-tabs-overview-tab-array.schema.d.ts +43 -0
- package/dist/schemas/lit-tabs-overview-tab-array.schema.d.ts.map +1 -0
- package/dist/schemas/lit-tabs-overview-tab-array.schema.js +6 -0
- package/dist/schemas/lit-tabs-overview-tab-array.schema.js.map +1 -0
- package/dist/schemas/lit-tabs-overview-tab.schema.d.ts +40 -0
- package/dist/schemas/lit-tabs-overview-tab.schema.d.ts.map +1 -0
- package/dist/schemas/lit-tabs-overview-tab.schema.js +32 -0
- package/dist/schemas/lit-tabs-overview-tab.schema.js.map +1 -0
- package/dist/schemas/lit-tabs-overview.schema.d.ts +66 -0
- package/dist/schemas/lit-tabs-overview.schema.d.ts.map +1 -0
- package/dist/schemas/lit-tabs-overview.schema.js +29 -0
- package/dist/schemas/lit-tabs-overview.schema.js.map +1 -0
- package/dist/scripts/translate-locales.js +4 -2
- package/dist/scripts/translate-locales.js.map +1 -1
- package/dist/shared/filter-inputs.d.ts +11 -12
- package/dist/shared/filter-inputs.d.ts.map +1 -1
- package/dist/shared/filter-inputs.js +202 -200
- package/dist/shared/filter-inputs.js.map +1 -1
- package/dist/shared/index.d.ts +36 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +38 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/lit-button.d.ts +3 -3
- package/dist/shared/lit-button.d.ts.map +1 -1
- package/dist/shared/lit-button.js +85 -55
- package/dist/shared/lit-button.js.map +1 -1
- package/dist/shared/lit-case-variables-tab-cell.js +112 -112
- package/dist/shared/lit-checkbox.d.ts +13 -3
- package/dist/shared/lit-checkbox.d.ts.map +1 -1
- package/dist/shared/lit-checkbox.js +132 -78
- package/dist/shared/lit-checkbox.js.map +1 -1
- package/dist/shared/lit-custom-popper.js +31 -31
- package/dist/shared/lit-data-grid-density-popover.js +38 -38
- package/dist/shared/lit-data-grid-export-popover.js +26 -26
- package/dist/shared/lit-data-grid-operators-popover.d.ts +2 -1
- package/dist/shared/lit-data-grid-operators-popover.d.ts.map +1 -1
- package/dist/shared/lit-data-grid-operators-popover.js +32 -33
- package/dist/shared/lit-data-grid-operators-popover.js.map +1 -1
- package/dist/shared/lit-data-grid-row-actions.d.ts +2 -1
- package/dist/shared/lit-data-grid-row-actions.d.ts.map +1 -1
- package/dist/shared/lit-data-grid-row-actions.js +38 -37
- package/dist/shared/lit-data-grid-row-actions.js.map +1 -1
- package/dist/shared/lit-date-picker.d.ts +40 -9
- package/dist/shared/lit-date-picker.d.ts.map +1 -1
- package/dist/shared/lit-date-picker.js +430 -168
- package/dist/shared/lit-date-picker.js.map +1 -1
- package/dist/shared/lit-icon-button.d.ts +12 -2
- package/dist/shared/lit-icon-button.d.ts.map +1 -1
- package/dist/shared/lit-icon-button.js +51 -31
- package/dist/shared/lit-icon-button.js.map +1 -1
- package/dist/shared/lit-icon.d.ts +1 -1
- package/dist/shared/lit-icon.d.ts.map +1 -1
- package/dist/shared/lit-icon.js +17 -17
- package/dist/shared/lit-icon.js.map +1 -1
- package/dist/shared/lit-input.d.ts +6 -0
- package/dist/shared/lit-input.d.ts.map +1 -1
- package/dist/shared/lit-input.js +130 -93
- package/dist/shared/lit-input.js.map +1 -1
- package/dist/shared/lit-label.d.ts +13 -0
- package/dist/shared/lit-label.d.ts.map +1 -0
- package/dist/shared/lit-label.js +104 -0
- package/dist/shared/lit-label.js.map +1 -0
- package/dist/shared/lit-loader.d.ts +1 -1
- package/dist/shared/lit-loader.d.ts.map +1 -1
- package/dist/shared/lit-loader.js +10 -8
- package/dist/shared/lit-loader.js.map +1 -1
- package/dist/shared/lit-loading-bar.d.ts +3 -3
- package/dist/shared/lit-loading-bar.d.ts.map +1 -1
- package/dist/shared/lit-loading-bar.js +73 -73
- package/dist/shared/lit-loading-bar.js.map +1 -1
- package/dist/shared/lit-menu-item.d.ts +5 -3
- package/dist/shared/lit-menu-item.d.ts.map +1 -1
- package/dist/shared/lit-menu-item.js +57 -44
- package/dist/shared/lit-menu-item.js.map +1 -1
- package/dist/shared/lit-menu.d.ts.map +1 -1
- package/dist/shared/lit-menu.js +18 -19
- package/dist/shared/lit-menu.js.map +1 -1
- package/dist/shared/lit-modal-body.d.ts +6 -0
- package/dist/shared/lit-modal-body.d.ts.map +1 -0
- package/dist/shared/lit-modal-body.js +22 -0
- package/dist/shared/lit-modal-body.js.map +1 -0
- package/dist/shared/lit-modal-footer.d.ts +6 -0
- package/dist/shared/lit-modal-footer.d.ts.map +1 -0
- package/dist/shared/lit-modal-footer.js +29 -0
- package/dist/shared/lit-modal-footer.js.map +1 -0
- package/dist/shared/lit-modal-header.d.ts +7 -0
- package/dist/shared/lit-modal-header.d.ts.map +1 -0
- package/dist/shared/lit-modal-header.js +36 -0
- package/dist/shared/lit-modal-header.js.map +1 -0
- package/dist/shared/lit-modal.d.ts +14 -22
- package/dist/shared/lit-modal.d.ts.map +1 -1
- package/dist/shared/lit-modal.js +122 -107
- package/dist/shared/lit-modal.js.map +1 -1
- package/dist/shared/lit-overflow-tooltip.d.ts +7 -3
- package/dist/shared/lit-overflow-tooltip.d.ts.map +1 -1
- package/dist/shared/lit-overflow-tooltip.js +67 -42
- package/dist/shared/lit-overflow-tooltip.js.map +1 -1
- package/dist/shared/lit-pill.js +50 -50
- package/dist/shared/lit-progress-bar.d.ts +17 -0
- package/dist/shared/lit-progress-bar.d.ts.map +1 -0
- package/dist/shared/lit-progress-bar.js +81 -0
- package/dist/shared/lit-progress-bar.js.map +1 -0
- package/dist/shared/lit-select-field.d.ts +42 -0
- package/dist/shared/lit-select-field.d.ts.map +1 -0
- package/dist/shared/lit-select-field.js +459 -0
- package/dist/shared/lit-select-field.js.map +1 -0
- package/dist/shared/lit-select.d.ts +6 -1
- package/dist/shared/lit-select.d.ts.map +1 -1
- package/dist/shared/lit-select.js +211 -187
- package/dist/shared/lit-select.js.map +1 -1
- package/dist/shared/lit-settings.d.ts +25 -0
- package/dist/shared/lit-settings.d.ts.map +1 -0
- package/dist/shared/lit-settings.js +77 -0
- package/dist/shared/lit-settings.js.map +1 -0
- package/dist/shared/lit-text-field.d.ts +23 -0
- package/dist/shared/lit-text-field.d.ts.map +1 -0
- package/dist/shared/lit-text-field.js +222 -0
- package/dist/shared/lit-text-field.js.map +1 -0
- package/dist/shared/lit-toggle.d.ts +17 -0
- package/dist/shared/lit-toggle.d.ts.map +1 -0
- package/dist/shared/lit-toggle.js +222 -0
- package/dist/shared/lit-toggle.js.map +1 -0
- package/dist/shared/lit-tooltip.d.ts +19 -0
- package/dist/shared/lit-tooltip.d.ts.map +1 -0
- package/dist/shared/lit-tooltip.js +166 -0
- package/dist/shared/lit-tooltip.js.map +1 -0
- package/dist/shared/simple-popper.d.ts +3 -1
- package/dist/shared/simple-popper.d.ts.map +1 -1
- package/dist/shared/simple-popper.js +113 -74
- package/dist/shared/simple-popper.js.map +1 -1
- package/dist/shared/simple-tooltip.d.ts +14 -23
- package/dist/shared/simple-tooltip.d.ts.map +1 -1
- package/dist/shared/simple-tooltip.js +197 -148
- package/dist/shared/simple-tooltip.js.map +1 -1
- package/dist/shared/styles/button-shared-styles.d.ts.map +1 -1
- package/dist/shared/styles/button-shared-styles.js +197 -64
- package/dist/shared/styles/button-shared-styles.js.map +1 -1
- package/dist/style.css +1 -0
- package/dist/styles.js +166 -166
- package/dist/utils/currency.d.ts +2 -0
- package/dist/utils/currency.d.ts.map +1 -0
- package/dist/utils/currency.js +16 -0
- package/dist/utils/currency.js.map +1 -0
- package/dist/utils/custom-filters.js +3 -7
- package/dist/utils/custom-filters.js.map +1 -1
- package/dist/utils/date.js +1 -1
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/localization.d.ts.map +1 -1
- package/dist/utils/localization.js +209 -2
- package/dist/utils/localization.js.map +1 -1
- package/dist/utils/utils.d.ts +2 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +13 -0
- package/dist/utils/utils.js.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +77 -59
- package/dist/assets/ilustration/no-content.d.ts.map +0 -1
- package/dist/assets/ilustration/no-content.js.map +0 -1
- package/dist/assets/ilustration/no-preview.d.ts.map +0 -1
- package/dist/assets/ilustration/no-preview.js.map +0 -1
- package/dist/assets/ilustration/not-found.d.ts.map +0 -1
- package/dist/assets/ilustration/not-found.js.map +0 -1
- /package/dist/assets/{ilustration → illustration}/no-content.d.ts +0 -0
- /package/dist/assets/{ilustration → illustration}/no-content.js +0 -0
- /package/dist/assets/{ilustration → illustration}/no-preview.d.ts +0 -0
- /package/dist/assets/{ilustration → illustration}/no-preview.js +0 -0
- /package/dist/assets/{ilustration → illustration}/not-found.d.ts +0 -0
|
@@ -0,0 +1,706 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
8
|
+
import { LitElement, html, css } from 'lit';
|
|
9
|
+
import { msg } from '@lit/localize';
|
|
10
|
+
import Sortable from 'sortablejs';
|
|
11
|
+
import { isEmpty } from 'lodash';
|
|
12
|
+
//components
|
|
13
|
+
import '../shared/lit-checkbox.js';
|
|
14
|
+
import '../shared/lit-menu.js';
|
|
15
|
+
import '../shared/lit-menu-item.js';
|
|
16
|
+
import '../shared/lit-icon.js';
|
|
17
|
+
import '../shared/lit-icon-button.js';
|
|
18
|
+
import '../shared/lit-overflow-tooltip.js';
|
|
19
|
+
import '../shared/lit-input.js';
|
|
20
|
+
let LitMultiselectItem = class LitMultiselectItem extends LitElement {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.value = [];
|
|
24
|
+
this.options = [];
|
|
25
|
+
this.label = '';
|
|
26
|
+
this.rightLabel = '';
|
|
27
|
+
this.allowRightSearch = false;
|
|
28
|
+
this.allowSelectAll = false;
|
|
29
|
+
this.showRightTotal = false;
|
|
30
|
+
this.autoSearch = true;
|
|
31
|
+
this.enableAssignmentsOrdering = true;
|
|
32
|
+
this.onChange = (value) => { };
|
|
33
|
+
this.filterText = '';
|
|
34
|
+
this.filterTextRight = '';
|
|
35
|
+
this.appliedFilterText = '';
|
|
36
|
+
this.appliedFilterTextRight = '';
|
|
37
|
+
this.selectedLeftKeys = [];
|
|
38
|
+
this.selectedRightKeys = [];
|
|
39
|
+
this.lastSelectedIndexLeft = null;
|
|
40
|
+
this.lastSelectedIndexRight = null;
|
|
41
|
+
this.sortableInstances = [];
|
|
42
|
+
this.sortableGroupId = `group-${Math.random().toString(36).substring(2, 9)}`;
|
|
43
|
+
}
|
|
44
|
+
connectedCallback() {
|
|
45
|
+
super.connectedCallback();
|
|
46
|
+
}
|
|
47
|
+
disconnectedCallback() {
|
|
48
|
+
super.disconnectedCallback();
|
|
49
|
+
this.destroySortables();
|
|
50
|
+
}
|
|
51
|
+
updated(changedProperties) {
|
|
52
|
+
if (this.enableAssignmentsOrdering &&
|
|
53
|
+
(changedProperties.has('value') || changedProperties.has('options'))) {
|
|
54
|
+
this.initSortables();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
firstUpdated() {
|
|
58
|
+
if (this.enableAssignmentsOrdering) {
|
|
59
|
+
this.initSortables();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
destroySortables() {
|
|
63
|
+
this.sortableInstances.forEach((s) => s.destroy());
|
|
64
|
+
this.sortableInstances = [];
|
|
65
|
+
}
|
|
66
|
+
initSortables() {
|
|
67
|
+
this.updateComplete.then(() => {
|
|
68
|
+
this.destroySortables();
|
|
69
|
+
const leftList = this.shadowRoot?.querySelector('#left-list');
|
|
70
|
+
const rightList = this.shadowRoot?.querySelector('#right-list');
|
|
71
|
+
if (!leftList || !rightList)
|
|
72
|
+
return;
|
|
73
|
+
let fromOriginalNodes = [];
|
|
74
|
+
let toOriginalNodes = [];
|
|
75
|
+
const commonOptions = {
|
|
76
|
+
group: {
|
|
77
|
+
name: this.sortableGroupId,
|
|
78
|
+
pull: true,
|
|
79
|
+
put: true,
|
|
80
|
+
},
|
|
81
|
+
animation: 150,
|
|
82
|
+
handle: '.drag-handle',
|
|
83
|
+
onStart: (evt) => {
|
|
84
|
+
fromOriginalNodes = Array.from(evt.from.childNodes);
|
|
85
|
+
},
|
|
86
|
+
onMove: (evt) => {
|
|
87
|
+
if (evt.to !== evt.from && toOriginalNodes.length === 0) {
|
|
88
|
+
toOriginalNodes = Array.from(evt.to.childNodes);
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
onEnd: (evt) => {
|
|
92
|
+
if (evt.from && fromOriginalNodes.length > 0) {
|
|
93
|
+
evt.from.innerHTML = '';
|
|
94
|
+
fromOriginalNodes.forEach((node) => evt.from.appendChild(node));
|
|
95
|
+
}
|
|
96
|
+
if (evt.to && evt.to !== evt.from && toOriginalNodes.length > 0) {
|
|
97
|
+
evt.to.innerHTML = '';
|
|
98
|
+
toOriginalNodes.forEach((node) => evt.to.appendChild(node));
|
|
99
|
+
}
|
|
100
|
+
this.updateDataAfterDrag(evt);
|
|
101
|
+
this.requestUpdate();
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
const left = Sortable.create(leftList, commonOptions);
|
|
105
|
+
const right = Sortable.create(rightList, commonOptions);
|
|
106
|
+
this.sortableInstances.push(left, right);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
updateDataAfterDrag(evt) {
|
|
110
|
+
const { from, to, oldIndex, newIndex } = evt;
|
|
111
|
+
const fromSide = from.id === 'left-list' ? 'left' : 'right';
|
|
112
|
+
const toSide = to.id === 'left-list' ? 'left' : 'right';
|
|
113
|
+
const itemId = evt.item.getAttribute('id');
|
|
114
|
+
const allItems = [...this.options, ...this.value];
|
|
115
|
+
const draggedItem = allItems.find((item) => String(item.value) === itemId);
|
|
116
|
+
if (!draggedItem)
|
|
117
|
+
return;
|
|
118
|
+
const selectedKeys = fromSide === 'left' ? this.selectedLeftKeys : this.selectedRightKeys;
|
|
119
|
+
const isDraggedItemSelected = selectedKeys.includes(draggedItem.value);
|
|
120
|
+
const itemsToMove = isDraggedItemSelected
|
|
121
|
+
? allItems.filter((item) => selectedKeys.includes(item.value))
|
|
122
|
+
: [draggedItem];
|
|
123
|
+
if (fromSide === toSide) {
|
|
124
|
+
const items = fromSide === 'left' ? [...this.options] : [...this.value];
|
|
125
|
+
if (isDraggedItemSelected) {
|
|
126
|
+
const filteredItems = items.filter((item) => !selectedKeys.includes(item.value));
|
|
127
|
+
filteredItems.splice(newIndex, 0, ...itemsToMove);
|
|
128
|
+
if (fromSide === 'left') {
|
|
129
|
+
this.options = filteredItems;
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
this.value = filteredItems;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
const [removed] = items.splice(oldIndex, 1);
|
|
137
|
+
items.splice(newIndex, 0, removed);
|
|
138
|
+
if (fromSide === 'left') {
|
|
139
|
+
this.options = items;
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
this.value = items;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
if (fromSide === 'left') {
|
|
148
|
+
const newOptions = this.options.filter((item) => !itemsToMove.some((moveItem) => moveItem.value === item.value));
|
|
149
|
+
const newValue = [...this.value];
|
|
150
|
+
itemsToMove.forEach((item, index) => {
|
|
151
|
+
if (!newValue.some((v) => v.value === item.value)) {
|
|
152
|
+
newValue.splice(newIndex + index, 0, item);
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
this.options = newOptions;
|
|
156
|
+
this.value = newValue;
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
const newValue = this.value.filter((item) => !itemsToMove.some((moveItem) => moveItem.value === item.value));
|
|
160
|
+
const newOptions = [...this.options];
|
|
161
|
+
itemsToMove.forEach((item, index) => {
|
|
162
|
+
if (!newOptions.some((o) => o.value === item.value)) {
|
|
163
|
+
newOptions.splice(newIndex + index, 0, item);
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
this.value = newValue;
|
|
167
|
+
this.options = newOptions;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
this.onChange?.(this.value);
|
|
171
|
+
// dispatch event onChange
|
|
172
|
+
this.dispatchEvent(new CustomEvent('onChange', {
|
|
173
|
+
detail: this.value,
|
|
174
|
+
}));
|
|
175
|
+
this.selectedLeftKeys = [];
|
|
176
|
+
this.selectedRightKeys = [];
|
|
177
|
+
}
|
|
178
|
+
onInputChange(e, side) {
|
|
179
|
+
const val = e.detail.toLowerCase();
|
|
180
|
+
if (side === 'left') {
|
|
181
|
+
this.filterText = val;
|
|
182
|
+
if (this.autoSearch) {
|
|
183
|
+
this.appliedFilterText = val;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
this.filterTextRight = val;
|
|
188
|
+
if (this.autoSearch) {
|
|
189
|
+
this.appliedFilterTextRight = val;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
onInputKeyDown(e, side) {
|
|
194
|
+
if (!this.autoSearch && e.key === 'Enter') {
|
|
195
|
+
if (side === 'left') {
|
|
196
|
+
this.appliedFilterText = this.filterText;
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
this.appliedFilterTextRight = this.filterTextRight;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
getItemsForSide(side) {
|
|
204
|
+
return side === 'left' ? this.options : (this.value ?? []);
|
|
205
|
+
}
|
|
206
|
+
getSelectedKeysForSide(side) {
|
|
207
|
+
return side === 'left' ? this.selectedLeftKeys : this.selectedRightKeys;
|
|
208
|
+
}
|
|
209
|
+
toggleSelection(item, side, event) {
|
|
210
|
+
const list = this.getItemsForSide(side);
|
|
211
|
+
const selected = this.getSelectedKeysForSide(side);
|
|
212
|
+
const clickedIndex = list.findIndex((i) => i.value === item.value);
|
|
213
|
+
const isSelected = selected.includes(item.value);
|
|
214
|
+
let newSelected = [...selected];
|
|
215
|
+
if (event?.shiftKey) {
|
|
216
|
+
const lastIndex = side === 'left' ? this.lastSelectedIndexLeft : this.lastSelectedIndexRight;
|
|
217
|
+
if (lastIndex !== null) {
|
|
218
|
+
const start = Math.min(lastIndex, clickedIndex);
|
|
219
|
+
const end = Math.max(lastIndex, clickedIndex);
|
|
220
|
+
const rangeItems = list.slice(start, end + 1).map((i) => i.value);
|
|
221
|
+
newSelected = Array.from(new Set([...newSelected, ...rangeItems]));
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
if (isSelected) {
|
|
226
|
+
newSelected = selected.filter((val) => val !== item.value);
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
newSelected = [...selected, item.value];
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
if (side === 'left') {
|
|
233
|
+
this.selectedLeftKeys = newSelected;
|
|
234
|
+
this.lastSelectedIndexLeft = clickedIndex;
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
this.selectedRightKeys = newSelected;
|
|
238
|
+
this.lastSelectedIndexRight = clickedIndex;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
areAllSelected(side) {
|
|
242
|
+
const items = this.getItemsForSide(side);
|
|
243
|
+
const selected = this.getSelectedKeysForSide(side);
|
|
244
|
+
return items.length > 0 && items.every((item) => selected.includes(item.value));
|
|
245
|
+
}
|
|
246
|
+
toggleSelectAll(side) {
|
|
247
|
+
const items = this.getItemsForSide(side);
|
|
248
|
+
const allValues = items.map((item) => item.value);
|
|
249
|
+
if (this.areAllSelected(side)) {
|
|
250
|
+
if (side === 'left') {
|
|
251
|
+
this.selectedLeftKeys = [];
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
this.selectedRightKeys = [];
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
if (side === 'left') {
|
|
259
|
+
this.selectedLeftKeys = allValues;
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
this.selectedRightKeys = allValues;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
moveSelected(from, to) {
|
|
267
|
+
const fromItems = this.getItemsForSide(from);
|
|
268
|
+
const fromSelected = this.getSelectedKeysForSide(from);
|
|
269
|
+
const selectedItems = fromItems.filter((item) => fromSelected.includes(item.value));
|
|
270
|
+
const toItems = this.getItemsForSide(to);
|
|
271
|
+
const newToItems = [...toItems];
|
|
272
|
+
selectedItems.forEach((item) => {
|
|
273
|
+
if (!newToItems.some((i) => i.value === item.value)) {
|
|
274
|
+
newToItems.push(item);
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
const newFromItems = fromItems.filter((item) => !fromSelected.includes(item.value));
|
|
278
|
+
if (from === 'left') {
|
|
279
|
+
this.options = newFromItems;
|
|
280
|
+
this.selectedLeftKeys = [];
|
|
281
|
+
this.value = newToItems;
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
this.value = newFromItems;
|
|
285
|
+
this.selectedRightKeys = [];
|
|
286
|
+
this.options = newToItems;
|
|
287
|
+
}
|
|
288
|
+
this.onChange?.(this.value);
|
|
289
|
+
// dispatch event onChange
|
|
290
|
+
this.dispatchEvent(new CustomEvent('onChange', {
|
|
291
|
+
detail: this.value,
|
|
292
|
+
}));
|
|
293
|
+
}
|
|
294
|
+
moveSingle(item, from, to) {
|
|
295
|
+
if (from === 'left') {
|
|
296
|
+
this.options = this.options.filter((i) => i.value !== item.value);
|
|
297
|
+
if (!(this.value ?? []).some((i) => i.value === item.value)) {
|
|
298
|
+
this.value = [...(this.value ?? []), item];
|
|
299
|
+
}
|
|
300
|
+
this.selectedLeftKeys = this.selectedLeftKeys.filter((v) => v !== item.value);
|
|
301
|
+
this.appliedFilterTextRight = '';
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
this.value = (this.value ?? []).filter((i) => i.value !== item.value);
|
|
305
|
+
if (!this.options.some((i) => i.value === item.value)) {
|
|
306
|
+
this.options = [...this.options, item];
|
|
307
|
+
}
|
|
308
|
+
this.selectedRightKeys = this.selectedRightKeys.filter((v) => v !== item.value);
|
|
309
|
+
this.appliedFilterText = '';
|
|
310
|
+
}
|
|
311
|
+
this.onChange?.(this.value);
|
|
312
|
+
// dispatch event onChange
|
|
313
|
+
this.dispatchEvent(new CustomEvent('onChange', {
|
|
314
|
+
detail: this.value,
|
|
315
|
+
}));
|
|
316
|
+
}
|
|
317
|
+
render() {
|
|
318
|
+
return html `<div class="container">
|
|
319
|
+
<div class="wrapper">
|
|
320
|
+
<label class="label">${this.label}</label>
|
|
321
|
+
<div class="tab">
|
|
322
|
+
<div class="input">
|
|
323
|
+
<lit-input
|
|
324
|
+
placeholder=${msg('Napr. fakturace...')}
|
|
325
|
+
.onInput=${(val) => this.onInputChange(new CustomEvent('onInput', { detail: val }), 'left')}
|
|
326
|
+
@keydown=${(e) => this.onInputKeyDown(e, 'left')}
|
|
327
|
+
.onClear=${() => {
|
|
328
|
+
this.filterText = '';
|
|
329
|
+
this.appliedFilterText = '';
|
|
330
|
+
}}
|
|
331
|
+
.size="medium"
|
|
332
|
+
></lit-input>
|
|
333
|
+
</div>
|
|
334
|
+
|
|
335
|
+
<div class="content">
|
|
336
|
+
<lit-menu tabindex="0" id="left-list">
|
|
337
|
+
${this.options
|
|
338
|
+
.filter((item) => {
|
|
339
|
+
const title = item.title.toLowerCase();
|
|
340
|
+
const filter = this.appliedFilterText.toLowerCase();
|
|
341
|
+
return title.includes(filter);
|
|
342
|
+
})
|
|
343
|
+
.map((item) => {
|
|
344
|
+
const isSelected = this.selectedLeftKeys.includes(item.value);
|
|
345
|
+
return html `
|
|
346
|
+
<lit-menu-item
|
|
347
|
+
class="no-select"
|
|
348
|
+
.key="${item.value}"
|
|
349
|
+
.id="${item.value}"
|
|
350
|
+
@click=${(e) => this.toggleSelection(item, 'left', e)}
|
|
351
|
+
.isSelected=${isSelected}
|
|
352
|
+
>
|
|
353
|
+
<div class="item">
|
|
354
|
+
<div class="item-text">${item.title}</div>
|
|
355
|
+
|
|
356
|
+
<div class="add-minus-icon">
|
|
357
|
+
${this.enableAssignmentsOrdering
|
|
358
|
+
? html `
|
|
359
|
+
<div class="drag-handle">
|
|
360
|
+
<lit-icon
|
|
361
|
+
icon="hamburger"
|
|
362
|
+
size="1rem"
|
|
363
|
+
@click=${(e) => {
|
|
364
|
+
e.stopPropagation();
|
|
365
|
+
}}
|
|
366
|
+
></lit-icon>
|
|
367
|
+
</div>
|
|
368
|
+
`
|
|
369
|
+
: null}
|
|
370
|
+
|
|
371
|
+
<lit-icon
|
|
372
|
+
.icon="${'add'}"
|
|
373
|
+
size="1rem"
|
|
374
|
+
@click=${(e) => {
|
|
375
|
+
e.stopPropagation();
|
|
376
|
+
this.moveSingle(item, 'left', 'right');
|
|
377
|
+
}}
|
|
378
|
+
></lit-icon>
|
|
379
|
+
</div>
|
|
380
|
+
</div>
|
|
381
|
+
</lit-menu-item>
|
|
382
|
+
`;
|
|
383
|
+
})}
|
|
384
|
+
</lit-menu>
|
|
385
|
+
</div>
|
|
386
|
+
|
|
387
|
+
<div class="footer">
|
|
388
|
+
<div class="checkbox">
|
|
389
|
+
${this.allowSelectAll
|
|
390
|
+
? html `
|
|
391
|
+
<lit-checkbox
|
|
392
|
+
.checked=${this.areAllSelected('left')}
|
|
393
|
+
@click=${() => this.toggleSelectAll('left')}
|
|
394
|
+
></lit-checkbox>
|
|
395
|
+
<label>${msg('Označit vše')}</label>
|
|
396
|
+
`
|
|
397
|
+
: null}
|
|
398
|
+
</div>
|
|
399
|
+
|
|
400
|
+
<div class="count">
|
|
401
|
+
<label>${msg('celkem') + ':'}</label>
|
|
402
|
+
<label>${this.options.length}</label>
|
|
403
|
+
</div>
|
|
404
|
+
</div>
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
<div class="wrapper middle">
|
|
408
|
+
<lit-icon-button
|
|
409
|
+
.variant="${'text'}"
|
|
410
|
+
.icon="${'add'}"
|
|
411
|
+
@click=${() => this.moveSelected('left', 'right')}
|
|
412
|
+
.disabled="${isEmpty(this.selectedLeftKeys)}"
|
|
413
|
+
></lit-icon-button>
|
|
414
|
+
<lit-icon-button
|
|
415
|
+
.variant="${'text'}"
|
|
416
|
+
.icon="${'minus'}"
|
|
417
|
+
@click=${() => this.moveSelected('right', 'left')}
|
|
418
|
+
.disabled="${isEmpty(this.selectedRightKeys)}"
|
|
419
|
+
></lit-icon-button>
|
|
420
|
+
</div>
|
|
421
|
+
<div class="wrapper">
|
|
422
|
+
<label class="label">${this.rightLabel}</label>
|
|
423
|
+
<div class="tab">
|
|
424
|
+
<div class="input">
|
|
425
|
+
${this.allowRightSearch
|
|
426
|
+
? html `
|
|
427
|
+
<lit-input
|
|
428
|
+
placeholder=${msg('Napr. fakturace...')}
|
|
429
|
+
.onInput=${(val) => this.onInputChange(new CustomEvent('onInput', { detail: val }), 'right')}
|
|
430
|
+
@keydown=${(e) => this.onInputKeyDown(e, 'right')}
|
|
431
|
+
.onClear=${() => {
|
|
432
|
+
this.filterTextRight = '';
|
|
433
|
+
this.appliedFilterTextRight = '';
|
|
434
|
+
}}
|
|
435
|
+
.size="medium"
|
|
436
|
+
></lit-input>
|
|
437
|
+
`
|
|
438
|
+
: null}
|
|
439
|
+
</div>
|
|
440
|
+
<div class="content">
|
|
441
|
+
<lit-menu tabindex="1" id="right-list">
|
|
442
|
+
${(this.value ?? [])
|
|
443
|
+
.filter((item) => {
|
|
444
|
+
const title = item.title.toLowerCase();
|
|
445
|
+
const filter = this.appliedFilterTextRight.toLowerCase();
|
|
446
|
+
return title.includes(filter);
|
|
447
|
+
})
|
|
448
|
+
.map((item) => {
|
|
449
|
+
const isSelected = this.selectedRightKeys.includes(item.value);
|
|
450
|
+
return html `
|
|
451
|
+
<lit-menu-item
|
|
452
|
+
class="no-select"
|
|
453
|
+
.key="${item.value}"
|
|
454
|
+
id="${item.value}"
|
|
455
|
+
@click=${(e) => this.toggleSelection(item, 'right', e)}
|
|
456
|
+
.isSelected=${isSelected}
|
|
457
|
+
>
|
|
458
|
+
<div class="item">
|
|
459
|
+
<div class="item-text">${item.title}</div>
|
|
460
|
+
<div class="add-minus-icon">
|
|
461
|
+
${this.enableAssignmentsOrdering
|
|
462
|
+
? html `
|
|
463
|
+
<div class="drag-handle">
|
|
464
|
+
<lit-icon
|
|
465
|
+
icon="hamburger"
|
|
466
|
+
size="1rem"
|
|
467
|
+
@click=${(e) => {
|
|
468
|
+
e.stopPropagation();
|
|
469
|
+
}}
|
|
470
|
+
></lit-icon>
|
|
471
|
+
</div>
|
|
472
|
+
`
|
|
473
|
+
: null}
|
|
474
|
+
<lit-icon
|
|
475
|
+
.icon="${'minus'}"
|
|
476
|
+
size="1rem"
|
|
477
|
+
@click=${(e) => {
|
|
478
|
+
e.stopPropagation();
|
|
479
|
+
this.moveSingle(item, 'right', 'left');
|
|
480
|
+
}}
|
|
481
|
+
></lit-icon>
|
|
482
|
+
</div>
|
|
483
|
+
</div>
|
|
484
|
+
</lit-menu-item>
|
|
485
|
+
`;
|
|
486
|
+
})}
|
|
487
|
+
</lit-menu>
|
|
488
|
+
</div>
|
|
489
|
+
<div class="footer">
|
|
490
|
+
<div class="checkbox">
|
|
491
|
+
${this.allowSelectAll
|
|
492
|
+
? html `
|
|
493
|
+
<lit-checkbox
|
|
494
|
+
.checked=${this.areAllSelected('right')}
|
|
495
|
+
@click=${() => this.toggleSelectAll('right')}
|
|
496
|
+
></lit-checkbox>
|
|
497
|
+
<label>${msg('Označit vše')}</label>
|
|
498
|
+
`
|
|
499
|
+
: null}
|
|
500
|
+
</div>
|
|
501
|
+
|
|
502
|
+
<div class="count">
|
|
503
|
+
${this.showRightTotal
|
|
504
|
+
? html `
|
|
505
|
+
<label>${msg('celkem') + ':'}</label>
|
|
506
|
+
<label>${this.value?.length ?? 0}</label>
|
|
507
|
+
`
|
|
508
|
+
: null}
|
|
509
|
+
</div>
|
|
510
|
+
</div>
|
|
511
|
+
</div>
|
|
512
|
+
</div>
|
|
513
|
+
</div>`;
|
|
514
|
+
}
|
|
515
|
+
};
|
|
516
|
+
LitMultiselectItem.styles = [
|
|
517
|
+
css `
|
|
518
|
+
@media (max-width: 600px) {
|
|
519
|
+
.container {
|
|
520
|
+
flex-direction: column;
|
|
521
|
+
}
|
|
522
|
+
.wrapper.middle {
|
|
523
|
+
flex-direction: row !important;
|
|
524
|
+
justify-content: center;
|
|
525
|
+
height: auto !important;
|
|
526
|
+
padding-top: 0 !important;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.container {
|
|
531
|
+
display: flex;
|
|
532
|
+
justify-content: space-between;
|
|
533
|
+
width: 100%;
|
|
534
|
+
height: 100%;
|
|
535
|
+
gap: 0.375rem;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.wrapper {
|
|
539
|
+
display: flex;
|
|
540
|
+
flex-direction: column;
|
|
541
|
+
flex: 1 1 0;
|
|
542
|
+
height: 100%;
|
|
543
|
+
min-width: 0;
|
|
544
|
+
min-height: 0;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.wrapper.middle {
|
|
548
|
+
flex: 0 0 auto;
|
|
549
|
+
flex-direction: column;
|
|
550
|
+
padding-top: 2rem;
|
|
551
|
+
gap: 0.5rem;
|
|
552
|
+
align-items: center;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.label {
|
|
556
|
+
font-weight: 500;
|
|
557
|
+
font-size: 14px;
|
|
558
|
+
color: var(--text-secondary, #5d6371);
|
|
559
|
+
line-height: 1.5rem;
|
|
560
|
+
padding-left: 0.875rem;
|
|
561
|
+
margin-bottom: 0.375rem;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.tab {
|
|
565
|
+
display: flex;
|
|
566
|
+
flex-direction: column;
|
|
567
|
+
height: 100%;
|
|
568
|
+
border-radius: var(--border-radius-small, 0.5rem);
|
|
569
|
+
border: 1px solid var(--border-primary, #d0d3db);
|
|
570
|
+
padding: 0.5rem;
|
|
571
|
+
gap: 0.5rem;
|
|
572
|
+
min-height: 0;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.input {
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.content {
|
|
579
|
+
flex-grow: 1;
|
|
580
|
+
overflow: auto;
|
|
581
|
+
min-height: 0;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.footer {
|
|
585
|
+
border-top: 1px solid var(--border-primary, #d0d3db);
|
|
586
|
+
display: flex;
|
|
587
|
+
justify-content: space-between;
|
|
588
|
+
align-items: center;
|
|
589
|
+
min-height: 2.375rem;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.footer.csv {
|
|
593
|
+
justify-content: end;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.csv-icon {
|
|
597
|
+
padding-right: 0.5rem;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.checkbox {
|
|
601
|
+
display: flex;
|
|
602
|
+
align-items: center;
|
|
603
|
+
padding: 0.25rem 0.5rem;
|
|
604
|
+
gap: 0.375rem;
|
|
605
|
+
font-size: 12px;
|
|
606
|
+
font-weight: 500;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.count {
|
|
610
|
+
display: flex;
|
|
611
|
+
align-items: center;
|
|
612
|
+
padding: 0.25rem 0.5rem;
|
|
613
|
+
gap: 0.375rem;
|
|
614
|
+
font-size: 12px;
|
|
615
|
+
font-weight: 400;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.item {
|
|
619
|
+
display: flex;
|
|
620
|
+
width: 100%;
|
|
621
|
+
justify-content: space-between;
|
|
622
|
+
align-items: center;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.item-text {
|
|
626
|
+
overflow: hidden;
|
|
627
|
+
white-space: nowrap;
|
|
628
|
+
text-overflow: ellipsis;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.add-minus-icon {
|
|
632
|
+
visibility: hidden;
|
|
633
|
+
display: flex;
|
|
634
|
+
align-items: center;
|
|
635
|
+
gap: 0.5rem;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.item:hover .add-minus-icon {
|
|
639
|
+
visibility: visible;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.no-select {
|
|
643
|
+
user-select: none;
|
|
644
|
+
min-height: 2rem;
|
|
645
|
+
}
|
|
646
|
+
`,
|
|
647
|
+
];
|
|
648
|
+
__decorate([
|
|
649
|
+
property({ type: Array })
|
|
650
|
+
], LitMultiselectItem.prototype, "value", void 0);
|
|
651
|
+
__decorate([
|
|
652
|
+
property({ type: Array })
|
|
653
|
+
], LitMultiselectItem.prototype, "options", void 0);
|
|
654
|
+
__decorate([
|
|
655
|
+
property({ type: String })
|
|
656
|
+
], LitMultiselectItem.prototype, "label", void 0);
|
|
657
|
+
__decorate([
|
|
658
|
+
property({ type: String })
|
|
659
|
+
], LitMultiselectItem.prototype, "rightLabel", void 0);
|
|
660
|
+
__decorate([
|
|
661
|
+
property({ type: Boolean })
|
|
662
|
+
], LitMultiselectItem.prototype, "allowRightSearch", void 0);
|
|
663
|
+
__decorate([
|
|
664
|
+
property({ type: Boolean })
|
|
665
|
+
], LitMultiselectItem.prototype, "allowSelectAll", void 0);
|
|
666
|
+
__decorate([
|
|
667
|
+
property({ type: Boolean })
|
|
668
|
+
], LitMultiselectItem.prototype, "showRightTotal", void 0);
|
|
669
|
+
__decorate([
|
|
670
|
+
property({ type: Boolean })
|
|
671
|
+
], LitMultiselectItem.prototype, "autoSearch", void 0);
|
|
672
|
+
__decorate([
|
|
673
|
+
property({ type: Boolean })
|
|
674
|
+
], LitMultiselectItem.prototype, "enableAssignmentsOrdering", void 0);
|
|
675
|
+
__decorate([
|
|
676
|
+
property({ type: Function })
|
|
677
|
+
], LitMultiselectItem.prototype, "onChange", void 0);
|
|
678
|
+
__decorate([
|
|
679
|
+
state()
|
|
680
|
+
], LitMultiselectItem.prototype, "filterText", void 0);
|
|
681
|
+
__decorate([
|
|
682
|
+
state()
|
|
683
|
+
], LitMultiselectItem.prototype, "filterTextRight", void 0);
|
|
684
|
+
__decorate([
|
|
685
|
+
state()
|
|
686
|
+
], LitMultiselectItem.prototype, "appliedFilterText", void 0);
|
|
687
|
+
__decorate([
|
|
688
|
+
state()
|
|
689
|
+
], LitMultiselectItem.prototype, "appliedFilterTextRight", void 0);
|
|
690
|
+
__decorate([
|
|
691
|
+
state()
|
|
692
|
+
], LitMultiselectItem.prototype, "selectedLeftKeys", void 0);
|
|
693
|
+
__decorate([
|
|
694
|
+
state()
|
|
695
|
+
], LitMultiselectItem.prototype, "selectedRightKeys", void 0);
|
|
696
|
+
__decorate([
|
|
697
|
+
state()
|
|
698
|
+
], LitMultiselectItem.prototype, "lastSelectedIndexLeft", void 0);
|
|
699
|
+
__decorate([
|
|
700
|
+
state()
|
|
701
|
+
], LitMultiselectItem.prototype, "lastSelectedIndexRight", void 0);
|
|
702
|
+
LitMultiselectItem = __decorate([
|
|
703
|
+
customElement('lit-multiselect-item')
|
|
704
|
+
], LitMultiselectItem);
|
|
705
|
+
export { LitMultiselectItem };
|
|
706
|
+
//# sourceMappingURL=lit-multiselect-item.js.map
|