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
|
@@ -9,14 +9,18 @@ import { css, html, LitElement } from 'lit';
|
|
|
9
9
|
import { property, state } from 'lit/decorators.js';
|
|
10
10
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
11
11
|
import { msg } from '@lit/localize';
|
|
12
|
+
import { isEmpty } from 'lodash';
|
|
13
|
+
import { saveAs } from 'file-saver';
|
|
12
14
|
// components
|
|
13
15
|
import '../shared/lit-icon.js';
|
|
14
16
|
import '../shared/lit-icon-button.js';
|
|
15
17
|
import '../shared/lit-select.js';
|
|
16
18
|
import '../shared/lit-overflow-tooltip.js';
|
|
17
|
-
import '../assets/
|
|
19
|
+
import '../assets/illustration/no-preview.js';
|
|
20
|
+
import '../assets/illustration/not-found.js';
|
|
18
21
|
import '../shared/lit-loading-bar.js';
|
|
19
22
|
import '../components/lit-section-tab.js';
|
|
23
|
+
import './components-settings/attachments-tab-settings.js';
|
|
20
24
|
// pdf.js
|
|
21
25
|
import * as pdfjsLib from 'pdfjs-dist';
|
|
22
26
|
pdfjsLib.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker.js', import.meta.url).toString();
|
|
@@ -26,15 +30,17 @@ let LitAttachmentsTab = class LitAttachmentsTab extends LitElement {
|
|
|
26
30
|
this.hideTabWhen = false;
|
|
27
31
|
this.documents = [];
|
|
28
32
|
this.type = 'compact';
|
|
29
|
-
// @property({ type: Array }) additionalLabels?: any[] = [];
|
|
30
33
|
this.scale = 1;
|
|
31
|
-
this.isDocumentLoading =
|
|
34
|
+
this.isDocumentLoading = false;
|
|
35
|
+
this.enableSettings = false;
|
|
36
|
+
this.onSettingsChanged = () => { };
|
|
32
37
|
this.selectedId = '';
|
|
33
38
|
this.pageNumber = 1;
|
|
34
39
|
this.pageCount = 1;
|
|
35
40
|
this.isChecked = {};
|
|
36
41
|
this.preview = true;
|
|
37
42
|
this.documentData = null;
|
|
43
|
+
this.isOpenModal = false;
|
|
38
44
|
this.canvas = null;
|
|
39
45
|
this.ctx = null;
|
|
40
46
|
this.outerContainer = null;
|
|
@@ -52,14 +58,6 @@ let LitAttachmentsTab = class LitAttachmentsTab extends LitElement {
|
|
|
52
58
|
reader.readAsArrayBuffer(buffer);
|
|
53
59
|
});
|
|
54
60
|
}
|
|
55
|
-
async connectedCallback() {
|
|
56
|
-
super.connectedCallback();
|
|
57
|
-
this.type = this.type || 'compact';
|
|
58
|
-
this.selectedId = this.initialSelection || (this.documents?.[0]?.id ?? '');
|
|
59
|
-
if (!this.hideTabWhen && this.documents) {
|
|
60
|
-
this.handleDocumentClick(this.selectedId);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
61
|
disconnectedCallback() {
|
|
64
62
|
super.disconnectedCallback();
|
|
65
63
|
this.abortController.abort();
|
|
@@ -68,6 +66,10 @@ let LitAttachmentsTab = class LitAttachmentsTab extends LitElement {
|
|
|
68
66
|
this.documentData = null;
|
|
69
67
|
}
|
|
70
68
|
}
|
|
69
|
+
connectedCallback() {
|
|
70
|
+
super.connectedCallback();
|
|
71
|
+
this.localScale = this.scale;
|
|
72
|
+
}
|
|
71
73
|
async firstUpdated() {
|
|
72
74
|
this.canvas = this.shadowRoot?.querySelector('canvas') ?? null;
|
|
73
75
|
this.ctx = this.canvas?.getContext('2d');
|
|
@@ -78,7 +80,9 @@ let LitAttachmentsTab = class LitAttachmentsTab extends LitElement {
|
|
|
78
80
|
super.updated(_changedProperties);
|
|
79
81
|
if (_changedProperties.has('documents')) {
|
|
80
82
|
this.selectedId = this.initialSelection || (this.documents?.[0]?.id ?? '');
|
|
81
|
-
if (!this.hideTabWhen &&
|
|
83
|
+
if (!this.hideTabWhen &&
|
|
84
|
+
typeof this.documents !== 'undefined' &&
|
|
85
|
+
!isEmpty(this.documents)) {
|
|
82
86
|
this.handleDocumentClick(this.selectedId);
|
|
83
87
|
}
|
|
84
88
|
}
|
|
@@ -122,7 +126,6 @@ let LitAttachmentsTab = class LitAttachmentsTab extends LitElement {
|
|
|
122
126
|
this.preview = false;
|
|
123
127
|
}
|
|
124
128
|
this.pageNumber = 1;
|
|
125
|
-
this.scale = 1;
|
|
126
129
|
await this.renderPage();
|
|
127
130
|
}
|
|
128
131
|
catch (error) {
|
|
@@ -131,6 +134,7 @@ let LitAttachmentsTab = class LitAttachmentsTab extends LitElement {
|
|
|
131
134
|
}
|
|
132
135
|
async handleDocumentClick(id) {
|
|
133
136
|
this.selectedId = id;
|
|
137
|
+
this.localScale = this.scale;
|
|
134
138
|
if (this.onClick) {
|
|
135
139
|
try {
|
|
136
140
|
this.isDocumentLoading = true;
|
|
@@ -150,32 +154,55 @@ let LitAttachmentsTab = class LitAttachmentsTab extends LitElement {
|
|
|
150
154
|
throw new Error('Document not found');
|
|
151
155
|
}
|
|
152
156
|
const src = document.dmsf_src;
|
|
157
|
+
if (!src)
|
|
158
|
+
throw new Error('Missing source URL');
|
|
153
159
|
const buffer = await fetch(src).then((res) => res.arrayBuffer());
|
|
154
160
|
this.loadDocumentData(buffer);
|
|
155
161
|
}
|
|
156
162
|
}
|
|
157
163
|
async renderPage() {
|
|
158
|
-
if (!this.selectedDocument || !this.canvas || !this.ctx)
|
|
164
|
+
if (!this.selectedDocument || !this.canvas || !this.ctx || !this.outerContainer)
|
|
159
165
|
return;
|
|
160
166
|
this.canvas.style.display = this.preview ? 'block' : 'none';
|
|
161
167
|
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
162
168
|
try {
|
|
169
|
+
const userScale = this.localScale ?? 1;
|
|
170
|
+
const containerWidth = this.outerContainer.offsetWidth;
|
|
171
|
+
const dpr = window.devicePixelRatio || 1;
|
|
163
172
|
if (this.preview && 'getPage' in this.selectedDocument) {
|
|
164
173
|
const page = await this.selectedDocument.getPage(this.pageNumber ?? 1);
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
174
|
+
// viewport pri mierke 1
|
|
175
|
+
const viewportBase = page.getViewport({ scale: 1 });
|
|
176
|
+
const fitScale = containerWidth / viewportBase.width;
|
|
177
|
+
// logický scale voči fitnutému rozmeru
|
|
178
|
+
const logicalScale = fitScale * userScale;
|
|
179
|
+
// rozlíšenie sa renderuje vždy ako keby scale bolo aspoň 1
|
|
180
|
+
const renderScale = fitScale * Math.max(userScale, 1);
|
|
181
|
+
const renderViewport = page.getViewport({ scale: renderScale * dpr });
|
|
182
|
+
// renderuj do veľkého canvasu
|
|
183
|
+
this.canvas.width = renderViewport.width;
|
|
184
|
+
this.canvas.height = renderViewport.height;
|
|
185
|
+
// zobrazenie podľa požadovaného scale
|
|
186
|
+
this.canvas.style.width = `${viewportBase.width * logicalScale}px`;
|
|
187
|
+
this.canvas.style.height = 'auto';
|
|
188
|
+
await page.render({
|
|
169
189
|
canvasContext: this.ctx,
|
|
170
|
-
viewport:
|
|
190
|
+
viewport: renderViewport,
|
|
171
191
|
signal: this.abortController.signal,
|
|
172
|
-
};
|
|
173
|
-
await page.render(renderContext).promise;
|
|
192
|
+
}).promise;
|
|
174
193
|
}
|
|
175
194
|
else if (this.preview && this.selectedDocument instanceof HTMLImageElement) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
195
|
+
const img = this.selectedDocument;
|
|
196
|
+
const fitScale = containerWidth / img.naturalWidth;
|
|
197
|
+
const logicalScale = fitScale * userScale;
|
|
198
|
+
const renderScale = fitScale * Math.max(userScale, 1);
|
|
199
|
+
const renderWidth = img.naturalWidth * renderScale * dpr;
|
|
200
|
+
const renderHeight = img.naturalHeight * renderScale * dpr;
|
|
201
|
+
this.canvas.width = renderWidth;
|
|
202
|
+
this.canvas.height = renderHeight;
|
|
203
|
+
this.canvas.style.width = `${img.naturalWidth * logicalScale}px`;
|
|
204
|
+
this.canvas.style.height = 'auto';
|
|
205
|
+
this.ctx.drawImage(img, 0, 0, renderWidth, renderHeight);
|
|
179
206
|
}
|
|
180
207
|
}
|
|
181
208
|
catch (error) {
|
|
@@ -186,7 +213,12 @@ let LitAttachmentsTab = class LitAttachmentsTab extends LitElement {
|
|
|
186
213
|
}
|
|
187
214
|
getSelectedDocumentName() {
|
|
188
215
|
const selectedDoc = this.documents?.find((doc) => doc.id === this.selectedId);
|
|
189
|
-
|
|
216
|
+
if (isEmpty(this.documents)) {
|
|
217
|
+
return '';
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
return selectedDoc?.name || 'Unknown Document';
|
|
221
|
+
}
|
|
190
222
|
}
|
|
191
223
|
handlePageChange(next) {
|
|
192
224
|
const newPage = next ? (this.pageNumber ?? 1) + 1 : (this.pageNumber ?? 1) - 1;
|
|
@@ -204,25 +236,26 @@ let LitAttachmentsTab = class LitAttachmentsTab extends LitElement {
|
|
|
204
236
|
const documentData = await this.onClick(this.selectedId);
|
|
205
237
|
const selectedDoc = this.documents?.find((doc) => doc.id === this.selectedId);
|
|
206
238
|
const blob = new Blob([documentData.data], { type: selectedDoc?.file_type });
|
|
207
|
-
|
|
208
|
-
const
|
|
209
|
-
link
|
|
210
|
-
link.
|
|
211
|
-
document
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
239
|
+
saveAs(blob, selectedDoc?.name || 'document');
|
|
240
|
+
// const url = URL.createObjectURL(blob);
|
|
241
|
+
// const link = document.createElement('a');
|
|
242
|
+
// link.href = url;
|
|
243
|
+
// link.download = selectedDoc?.name || 'document';
|
|
244
|
+
// document.body.appendChild(link);
|
|
245
|
+
// link.click();
|
|
246
|
+
// document.body.removeChild(link);
|
|
247
|
+
// URL.revokeObjectURL(url);
|
|
215
248
|
}
|
|
216
249
|
catch (error) {
|
|
217
250
|
console.error('Error downloading document:', error);
|
|
218
251
|
}
|
|
219
252
|
}
|
|
220
253
|
handleZoom(increase) {
|
|
221
|
-
this.
|
|
254
|
+
this.localScale = increase ? (this.localScale ?? 1) * 1.1 : (this.localScale ?? 1) / 1.1;
|
|
222
255
|
this.renderPage();
|
|
223
256
|
}
|
|
224
257
|
handleMouseDown(e) {
|
|
225
|
-
if ((this.
|
|
258
|
+
if ((this.localScale ?? 1) <= 1)
|
|
226
259
|
return;
|
|
227
260
|
this.isDragging = true;
|
|
228
261
|
this.clickX = e.clientX;
|
|
@@ -245,250 +278,337 @@ let LitAttachmentsTab = class LitAttachmentsTab extends LitElement {
|
|
|
245
278
|
handleMouseUp() {
|
|
246
279
|
this.isDragging = false;
|
|
247
280
|
}
|
|
281
|
+
toggleModal() {
|
|
282
|
+
this.isOpenModal = !this.isOpenModal;
|
|
283
|
+
}
|
|
284
|
+
async onSettingsChangedCallback(value) {
|
|
285
|
+
if (value?.scale !== undefined) {
|
|
286
|
+
this.scale = value.scale;
|
|
287
|
+
this.localScale = value.scale;
|
|
288
|
+
}
|
|
289
|
+
if (value?.type !== undefined) {
|
|
290
|
+
this.type = value.type;
|
|
291
|
+
}
|
|
292
|
+
await this.renderPage();
|
|
293
|
+
if (this.onSettingsChanged) {
|
|
294
|
+
this.dispatchEvent(new CustomEvent('onSettingsChanged', {
|
|
295
|
+
bubbles: true,
|
|
296
|
+
composed: true,
|
|
297
|
+
detail: value,
|
|
298
|
+
}));
|
|
299
|
+
this.onSettingsChanged?.(value);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
248
302
|
render() {
|
|
249
303
|
if (this.hideTabWhen)
|
|
250
304
|
return null;
|
|
251
|
-
return html `
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
305
|
+
return html `
|
|
306
|
+
<div class="attachments-container">
|
|
307
|
+
<div class="documents-list-section">
|
|
308
|
+
${this.type === 'compact'
|
|
309
|
+
? html ` ${this.documents?.map((doc, index) => html `
|
|
310
|
+
<div
|
|
311
|
+
class="document-label ${this.selectedId == doc.id
|
|
256
312
|
? 'selected'
|
|
257
|
-
: null}"
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
? html `
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
: html `
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
: html `
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
313
|
+
: null}"
|
|
314
|
+
@click=${() => doc.id && this.handleDocumentClick(doc.id)}
|
|
315
|
+
>
|
|
316
|
+
<div class="document-item" id="${doc.id}">
|
|
317
|
+
<lit-overflow-tooltip
|
|
318
|
+
label="${doc.name || `Document ${index + 1}`}"
|
|
319
|
+
>
|
|
320
|
+
${doc.name || `Document ${index + 1}`}
|
|
321
|
+
</lit-overflow-tooltip>
|
|
322
|
+
</div>
|
|
323
|
+
|
|
324
|
+
${this.selectedId == doc.id
|
|
325
|
+
? html `
|
|
326
|
+
<div class="document-checked">
|
|
327
|
+
<span>${msg('Zobrazen náhled')}</span>
|
|
328
|
+
</div>
|
|
329
|
+
`
|
|
330
|
+
: html `
|
|
331
|
+
<div class="document-unchecked">
|
|
332
|
+
<lit-icon icon="reading" size="1rem"></lit-icon>
|
|
333
|
+
<span>${msg('Zobrazit náhled')}</span>
|
|
334
|
+
</div>
|
|
335
|
+
`}
|
|
336
|
+
</div>
|
|
337
|
+
`)}`
|
|
338
|
+
: html `
|
|
339
|
+
<lit-select
|
|
340
|
+
id="document-select"
|
|
341
|
+
.value="${this.selectedId}"
|
|
342
|
+
.options="${this.documents?.map((doc) => ({
|
|
286
343
|
value: doc.id,
|
|
287
344
|
label: doc.name,
|
|
288
|
-
}))}"
|
|
289
|
-
|
|
345
|
+
}))}"
|
|
346
|
+
.onChange="${(selectedValue) => {
|
|
290
347
|
this.handleDocumentClick(selectedValue);
|
|
291
|
-
}}"
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
348
|
+
}}"
|
|
349
|
+
.disableClearButton="${true}"
|
|
350
|
+
></lit-select>
|
|
351
|
+
`}
|
|
352
|
+
<div style="height: 0.1875rem">
|
|
353
|
+
${this.isDocumentLoading
|
|
354
|
+
? html ` <lit-loading-bar></lit-loading-bar> `
|
|
355
|
+
: null}
|
|
356
|
+
</div>
|
|
357
|
+
</div>
|
|
358
|
+
<div class="document">
|
|
359
|
+
<div class="document-box">
|
|
360
|
+
<div class="document-selected">
|
|
361
|
+
<lit-overflow-tooltip label="${this.getSelectedDocumentName()}">
|
|
362
|
+
${this.getSelectedDocumentName()}
|
|
363
|
+
</lit-overflow-tooltip>
|
|
364
|
+
</div>
|
|
365
|
+
${!isEmpty(this.documents)
|
|
366
|
+
? html `
|
|
367
|
+
<div class="action-buttons">
|
|
368
|
+
${this.preview
|
|
369
|
+
? html `
|
|
370
|
+
<lit-icon
|
|
371
|
+
style="cursor: pointer"
|
|
372
|
+
icon="chevronLeftFilled"
|
|
373
|
+
size="1rem"
|
|
374
|
+
@click=${() => this.handlePageChange(false)}
|
|
375
|
+
></lit-icon>
|
|
376
|
+
<span
|
|
377
|
+
>page ${this.pageNumber} /
|
|
378
|
+
${this.pageCount}</span
|
|
379
|
+
>
|
|
380
|
+
<lit-icon
|
|
381
|
+
style="cursor: pointer"
|
|
382
|
+
icon="chevronRightFilled"
|
|
383
|
+
size="1rem"
|
|
384
|
+
@click=${() => this.handlePageChange(true)}
|
|
385
|
+
></lit-icon>
|
|
386
|
+
<lit-icon-button
|
|
387
|
+
icon="zoomout"
|
|
388
|
+
variant="text"
|
|
389
|
+
size="small"
|
|
390
|
+
@click=${() => this.handleZoom(false)}
|
|
391
|
+
></lit-icon-button>
|
|
392
|
+
<lit-icon-button
|
|
393
|
+
icon="zoomIn"
|
|
394
|
+
variant="text"
|
|
395
|
+
size="small"
|
|
396
|
+
@click=${() => this.handleZoom(true)}
|
|
397
|
+
></lit-icon-button>
|
|
398
|
+
`
|
|
399
|
+
: null}
|
|
400
|
+
|
|
401
|
+
<lit-icon-button
|
|
402
|
+
icon="download"
|
|
403
|
+
variant="text"
|
|
404
|
+
size="small"
|
|
405
|
+
@click=${this.handleDownload}
|
|
406
|
+
></lit-icon-button>
|
|
407
|
+
</div>
|
|
408
|
+
`
|
|
409
|
+
: null}
|
|
410
|
+
</div>
|
|
411
|
+
<div
|
|
412
|
+
class="document-container"
|
|
413
|
+
@mousemove=${this.handleMouseMove}
|
|
414
|
+
@mouseup=${this.handleMouseUp}
|
|
415
|
+
@mouseleave=${this.handleMouseUp}
|
|
416
|
+
>
|
|
417
|
+
${!isEmpty(this.documents)
|
|
418
|
+
? html `
|
|
419
|
+
<canvas
|
|
420
|
+
style=${styleMap({
|
|
421
|
+
cursor: (this.scale ?? 1) > 1 ? 'grab' : 'default',
|
|
422
|
+
})}
|
|
423
|
+
@mousedown=${this.handleMouseDown}
|
|
424
|
+
>
|
|
425
|
+
</canvas>
|
|
426
|
+
`
|
|
427
|
+
: null}
|
|
428
|
+
${!this.preview
|
|
429
|
+
? html `
|
|
430
|
+
<div class="not-supported__format">
|
|
431
|
+
<div style="max-height: 7.125rem; max-width: 7.125rem">
|
|
432
|
+
<no-preview></no-preview>
|
|
433
|
+
</div>
|
|
434
|
+
${msg('Náhled dokumentu není možný vzhledem k typu dokumentu.')}
|
|
435
|
+
</div>
|
|
333
436
|
`
|
|
334
|
-
: null}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
</div>
|
|
369
|
-
</div>
|
|
437
|
+
: null}
|
|
438
|
+
${!this.documents || isEmpty(this.documents)
|
|
439
|
+
? html `
|
|
440
|
+
<div class="not-supported__format">
|
|
441
|
+
<div style="max-height: 7.125rem; max-width: 7.125rem">
|
|
442
|
+
<not-found></not-found>
|
|
443
|
+
</div>
|
|
444
|
+
${msg('Nic dalšího tu není')}
|
|
445
|
+
</div>
|
|
446
|
+
`
|
|
447
|
+
: null}
|
|
448
|
+
</div>
|
|
449
|
+
</div>
|
|
450
|
+
|
|
451
|
+
${this.enableSettings
|
|
452
|
+
? html `<div class="footer">
|
|
453
|
+
<lit-icon-button
|
|
454
|
+
icon="administration"
|
|
455
|
+
@click="${this.toggleModal}"
|
|
456
|
+
variant="dashed"
|
|
457
|
+
style="display: inline-block"
|
|
458
|
+
></lit-icon-button>
|
|
459
|
+
<attachments-tab-settings
|
|
460
|
+
.onClose="${() => {
|
|
461
|
+
this.isOpenModal = false;
|
|
462
|
+
}}"
|
|
463
|
+
.isOpenModal="${this.isOpenModal}"
|
|
464
|
+
.onSettingsChangedModal="${this.onSettingsChangedCallback.bind(this)}"
|
|
465
|
+
.type="${this.type}"
|
|
466
|
+
.scale="${this.scale}"
|
|
467
|
+
></attachments-tab-settings>
|
|
468
|
+
</div>`
|
|
469
|
+
: null}
|
|
470
|
+
</div>
|
|
370
471
|
`;
|
|
371
472
|
}
|
|
372
473
|
};
|
|
373
474
|
LitAttachmentsTab.styles = [
|
|
374
|
-
css `
|
|
375
|
-
.document-label {
|
|
376
|
-
line-height: 2.125rem;
|
|
377
|
-
gap: 0.25rem;
|
|
378
|
-
display: flex;
|
|
379
|
-
justify-content: space-between;
|
|
380
|
-
flex-direction: row;
|
|
381
|
-
align-items: center;
|
|
382
|
-
position: relative;
|
|
383
|
-
font-weight: 500;
|
|
384
|
-
font-size: 0.8125rem;
|
|
385
|
-
padding: 0.125rem 0 0.125rem 1rem;
|
|
386
|
-
background: var(--background-paper, #ffffff);
|
|
387
|
-
color: var(--color-secondary-main, #111827);
|
|
388
|
-
border-radius: 0.5rem;
|
|
389
|
-
cursor: pointer;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
.document-item {
|
|
393
|
-
font-weight: 500;
|
|
394
|
-
font-size: 0.8125rem;
|
|
395
|
-
color: var(--color-secondary-main, #111827);
|
|
396
|
-
display: flex;
|
|
397
|
-
|
|
398
|
-
overflow: hidden;
|
|
399
|
-
white-space: nowrap;
|
|
400
|
-
text-overflow: ellipsis;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.document-label:hover {
|
|
404
|
-
background: var(--color-primary-light, #f0fadf);
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
.selected {
|
|
408
|
-
background: var(--color-primary-light, #f0fadf);
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.document-checked {
|
|
412
|
-
padding: 0 1rem 0 1rem;
|
|
413
|
-
font-size: 0.75rem;
|
|
414
|
-
color: var(--color-primary-dark, #5f9402);
|
|
415
|
-
white-space: nowrap;
|
|
416
|
-
}
|
|
417
|
-
.document-unchecked {
|
|
418
|
-
display: none;
|
|
419
|
-
padding: 0 1rem 0 1rem;
|
|
420
|
-
font-size: 0.75rem;
|
|
421
|
-
align-items: center;
|
|
422
|
-
gap: 0.5rem;
|
|
423
|
-
white-space: nowrap;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.document-label:hover .document-unchecked {
|
|
427
|
-
display: flex;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.document {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
align
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
475
|
+
css `
|
|
476
|
+
.document-label {
|
|
477
|
+
line-height: 2.125rem;
|
|
478
|
+
gap: 0.25rem;
|
|
479
|
+
display: flex;
|
|
480
|
+
justify-content: space-between;
|
|
481
|
+
flex-direction: row;
|
|
482
|
+
align-items: center;
|
|
483
|
+
position: relative;
|
|
484
|
+
font-weight: 500;
|
|
485
|
+
font-size: 0.8125rem;
|
|
486
|
+
padding: 0.125rem 0 0.125rem 1rem;
|
|
487
|
+
background: var(--background-paper, #ffffff);
|
|
488
|
+
color: var(--color-secondary-main, #111827);
|
|
489
|
+
border-radius: 0.5rem;
|
|
490
|
+
cursor: pointer;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.document-item {
|
|
494
|
+
font-weight: 500;
|
|
495
|
+
font-size: 0.8125rem;
|
|
496
|
+
color: var(--color-secondary-main, #111827);
|
|
497
|
+
display: flex;
|
|
498
|
+
|
|
499
|
+
overflow: hidden;
|
|
500
|
+
white-space: nowrap;
|
|
501
|
+
text-overflow: ellipsis;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.document-label:hover {
|
|
505
|
+
background: var(--color-primary-light, #f0fadf);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.selected {
|
|
509
|
+
background: var(--color-primary-light, #f0fadf);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.document-checked {
|
|
513
|
+
padding: 0 1rem 0 1rem;
|
|
514
|
+
font-size: 0.75rem;
|
|
515
|
+
color: var(--color-primary-dark, #5f9402);
|
|
516
|
+
white-space: nowrap;
|
|
517
|
+
}
|
|
518
|
+
.document-unchecked {
|
|
519
|
+
display: none;
|
|
520
|
+
padding: 0 1rem 0 1rem;
|
|
521
|
+
font-size: 0.75rem;
|
|
522
|
+
align-items: center;
|
|
523
|
+
gap: 0.5rem;
|
|
524
|
+
white-space: nowrap;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.document-label:hover .document-unchecked {
|
|
528
|
+
display: flex;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.document {
|
|
532
|
+
background: var(--background-default, #eff3f4);
|
|
533
|
+
border-radius: 0.25rem;
|
|
534
|
+
padding: 0.75rem 0.5rem 0.5rem 0.5rem;
|
|
535
|
+
|
|
536
|
+
flex: 1; /* Zaberie všetok dostupný priestor */
|
|
537
|
+
min-height: 0;
|
|
538
|
+
display: flex;
|
|
539
|
+
flex-direction: column;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.document-box {
|
|
543
|
+
display: flex;
|
|
544
|
+
align-items: center;
|
|
545
|
+
max-height: 2rem;
|
|
546
|
+
justify-content: space-between;
|
|
547
|
+
padding: 0 0.75rem 0.75rem 0.75rem;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.action-buttons {
|
|
551
|
+
display: flex;
|
|
552
|
+
align-items: center;
|
|
553
|
+
font-size: 0.8125rem;
|
|
554
|
+
gap: 0.75rem;
|
|
555
|
+
white-space: nowrap;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.document-selected {
|
|
559
|
+
color: var(--color-secondary-main, #111827);
|
|
560
|
+
font-size: 0.8125rem;
|
|
561
|
+
font-weight: 500;
|
|
562
|
+
max-width: 100%;
|
|
563
|
+
overflow: hidden;
|
|
564
|
+
white-space: nowrap;
|
|
565
|
+
text-overflow: ellipsis;
|
|
566
|
+
display: flex;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.document-container {
|
|
570
|
+
position: relative;
|
|
571
|
+
width: 100%;
|
|
572
|
+
flex: 1;
|
|
573
|
+
min-height: 0;
|
|
574
|
+
overflow: auto;
|
|
575
|
+
justify-content: center;
|
|
576
|
+
align-items: center;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
canvas {
|
|
580
|
+
display: block;
|
|
581
|
+
margin: 0 auto;
|
|
582
|
+
transform-origin: 0 0;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.not-supported__format {
|
|
586
|
+
min-height: 40vh;
|
|
587
|
+
font-size: 0.875rem;
|
|
588
|
+
text-align: center;
|
|
589
|
+
display: flex;
|
|
590
|
+
align-items: center;
|
|
591
|
+
justify-content: center;
|
|
592
|
+
flex-direction: column;
|
|
593
|
+
margin: 1rem 0 1rem 0;
|
|
594
|
+
}
|
|
595
|
+
.attachments-container {
|
|
596
|
+
height: 100%;
|
|
597
|
+
overflow: hidden;
|
|
598
|
+
display: flex;
|
|
599
|
+
flex-direction: column;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.documents-list-section {
|
|
603
|
+
flex-shrink: 0;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.footer {
|
|
607
|
+
flex-shrink: 0;
|
|
608
|
+
justify-content: end;
|
|
609
|
+
display: flex;
|
|
610
|
+
margin-top: 0.5rem;
|
|
611
|
+
}
|
|
492
612
|
`,
|
|
493
613
|
];
|
|
494
614
|
__decorate([
|
|
@@ -510,8 +630,14 @@ __decorate([
|
|
|
510
630
|
property({ type: Function })
|
|
511
631
|
], LitAttachmentsTab.prototype, "onClick", void 0);
|
|
512
632
|
__decorate([
|
|
513
|
-
|
|
633
|
+
property({ type: Boolean })
|
|
514
634
|
], LitAttachmentsTab.prototype, "isDocumentLoading", void 0);
|
|
635
|
+
__decorate([
|
|
636
|
+
property({ type: Boolean })
|
|
637
|
+
], LitAttachmentsTab.prototype, "enableSettings", void 0);
|
|
638
|
+
__decorate([
|
|
639
|
+
property({ attribute: false })
|
|
640
|
+
], LitAttachmentsTab.prototype, "onSettingsChanged", void 0);
|
|
515
641
|
__decorate([
|
|
516
642
|
state()
|
|
517
643
|
], LitAttachmentsTab.prototype, "selectedDocument", void 0);
|
|
@@ -539,6 +665,12 @@ __decorate([
|
|
|
539
665
|
__decorate([
|
|
540
666
|
state()
|
|
541
667
|
], LitAttachmentsTab.prototype, "documentData", void 0);
|
|
668
|
+
__decorate([
|
|
669
|
+
state()
|
|
670
|
+
], LitAttachmentsTab.prototype, "isOpenModal", void 0);
|
|
671
|
+
__decorate([
|
|
672
|
+
state()
|
|
673
|
+
], LitAttachmentsTab.prototype, "localScale", void 0);
|
|
542
674
|
LitAttachmentsTab = __decorate([
|
|
543
675
|
customElement('lit-attachments-tab')
|
|
544
676
|
], LitAttachmentsTab);
|