@telia-ace/alliance-ui 1.0.2 → 1.0.3-next.0
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/CHANGELOG.md +8 -0
- package/README.md +190 -7
- package/{dist/check-circle-filled.15ce385b.js → chunks/check-circle-filled-8e1e6362.js} +1 -1
- package/{dist/check-circle-filled.15ce385b.js.map → chunks/check-circle-filled-8e1e6362.js.map} +1 -1
- package/{dist/chevron-down.b9f6ab41.js → chunks/chevron-down-fa275d07.js} +1 -1
- package/{dist/chevron-down.b9f6ab41.js.map → chunks/chevron-down-fa275d07.js.map} +1 -1
- package/chunks/chevron-right-8d39622f.js +6 -0
- package/chunks/chevron-right-8d39622f.js.map +1 -0
- package/{dist/close.463d2363.js → chunks/close-35881381.js} +1 -1
- package/{dist/close.463d2363.js.map → chunks/close-35881381.js.map} +1 -1
- package/{dist/error-filled.c558cf39.js → chunks/error-filled-1c04b799.js} +1 -1
- package/{dist/error-filled.c558cf39.js.map → chunks/error-filled-1c04b799.js.map} +1 -1
- package/{dist/getSvgContent.d049b7fe.js → chunks/getSvgContent-f8f3b2b3.js} +1 -1
- package/{dist/getSvgContent.d049b7fe.js.map → chunks/getSvgContent-f8f3b2b3.js.map} +1 -1
- package/{dist/index.022d1bd0.js → chunks/index-f01c7229.js} +1 -1
- package/{dist/index.022d1bd0.js.map → chunks/index-f01c7229.js.map} +1 -1
- package/{dist/stringCombiner.85170030.js → chunks/stringCombiner-1924ac75.js} +1 -1
- package/{dist/stringCombiner.85170030.js.map → chunks/stringCombiner-1924ac75.js.map} +1 -1
- package/{dist/voca/components/telia-button.js → chunks/telia-button-ed8aa4be.js} +4 -5
- package/chunks/telia-button-ed8aa4be.js.map +1 -0
- package/{dist/telia-button-text2.f3b33f1c.js → chunks/telia-button-text2-3c082af9.js} +4 -4
- package/{dist/telia-button-text2.f3b33f1c.js.map → chunks/telia-button-text2-3c082af9.js.map} +1 -1
- package/{dist/telia-card-frame2.917aff8c.js → chunks/telia-card-frame2-933b95d6.js} +3 -3
- package/{dist/telia-card-frame2.917aff8c.js.map → chunks/telia-card-frame2-933b95d6.js.map} +1 -1
- package/{dist/telia-divider.2f6c500d.js → chunks/telia-divider-c3741e53.js} +3 -3
- package/{dist/telia-divider.2f6c500d.js.map → chunks/telia-divider-c3741e53.js.map} +1 -1
- package/{dist/telia-field-assistive-text2.115200d5.js → chunks/telia-field-assistive-text2-8c051b1c.js} +3 -3
- package/{dist/telia-field-assistive-text2.115200d5.js.map → chunks/telia-field-assistive-text2-8c051b1c.js.map} +1 -1
- package/{dist/telia-field-error2.8b77d421.js → chunks/telia-field-error2-fdd35dae.js} +5 -5
- package/{dist/telia-field-error2.8b77d421.js.map → chunks/telia-field-error2-fdd35dae.js.map} +1 -1
- package/{dist/telia-field-valid2.225eba1d.js → chunks/telia-field-valid2-ee26b51a.js} +5 -5
- package/{dist/telia-field-valid2.225eba1d.js.map → chunks/telia-field-valid2-ee26b51a.js.map} +1 -1
- package/{dist/telia-heading2.dd45b060.js → chunks/telia-heading2-f81fa07d.js} +3 -3
- package/{dist/telia-heading2.dd45b060.js.map → chunks/telia-heading2-f81fa07d.js.map} +1 -1
- package/{dist/telia-icon2.5d22f194.js → chunks/telia-icon2-0db17e4e.js} +4 -4
- package/{dist/telia-icon2.5d22f194.js.map → chunks/telia-icon2-0db17e4e.js.map} +1 -1
- package/{dist/telia-label2.94b013ed.js → chunks/telia-label2-30f60678.js} +3 -3
- package/{dist/telia-label2.94b013ed.js.map → chunks/telia-label2-30f60678.js.map} +1 -1
- package/{dist/telia-link2.6944ea99.js → chunks/telia-link2-51f772bf.js} +4 -4
- package/{dist/telia-link2.6944ea99.js.map → chunks/telia-link2-51f772bf.js.map} +1 -1
- package/{dist/telia-navigation-button2.09d3cd74.js → chunks/telia-navigation-button2-48b4149f.js} +4 -4
- package/{dist/telia-navigation-button2.09d3cd74.js.map → chunks/telia-navigation-button2-48b4149f.js.map} +1 -1
- package/{dist/telia-style-link2.2157e4d2.js → chunks/telia-style-link2-c168172c.js} +3 -3
- package/{dist/telia-style-link2.2157e4d2.js.map → chunks/telia-style-link2-c168172c.js.map} +1 -1
- package/{dist/telia-style-navigation-item2.0dd2d468.js → chunks/telia-style-navigation-item2-1e42aa8c.js} +3 -3
- package/{dist/telia-style-navigation-item2.0dd2d468.js.map → chunks/telia-style-navigation-item2-1e42aa8c.js.map} +1 -1
- package/{dist/telia-tab-header2.422e5861.js → chunks/telia-tab-header2-e92c0efd.js} +4 -4
- package/{dist/telia-tab-header2.422e5861.js.map → chunks/telia-tab-header2-e92c0efd.js.map} +1 -1
- package/{dist/telia-visually-hidden2.972955ad.js → chunks/telia-visually-hidden2-1ce59952.js} +3 -3
- package/{dist/telia-visually-hidden2.972955ad.js.map → chunks/telia-visually-hidden2-1ce59952.js.map} +1 -1
- package/{dist/telia-vst2.40d3cfa0.js → chunks/telia-vst2-5b44b983.js} +2 -2
- package/{dist/telia-vst2.40d3cfa0.js.map → chunks/telia-vst2-5b44b983.js.map} +1 -1
- package/{dist/uniqueId.1b972433.js → chunks/uniqueId-1a9545dc.js} +1 -1
- package/{dist/uniqueId.1b972433.js.map → chunks/uniqueId-1a9545dc.js.map} +1 -1
- package/{dist/variables.ea04dbc4.js → chunks/variables-06e4d3d9.js} +1 -1
- package/{dist/variables.ea04dbc4.js.map → chunks/variables-06e4d3d9.js.map} +1 -1
- package/{dist/components → components/alliance-object-list}/alliance-object-list-head.d.ts +1 -1
- package/{dist/components → components/alliance-object-list}/alliance-object-list-item.d.ts +0 -0
- package/{dist/components → components/alliance-object-list}/alliance-object-list-row.d.ts +1 -1
- package/{dist/components → components/alliance-object-list}/alliance-object-list.d.ts +0 -0
- package/{dist/components → components/alliance-object-list}/index.d.ts +0 -0
- package/components/alliance-paginator/alliance-paginator-button.d.ts +15 -0
- package/components/alliance-paginator/alliance-paginator.d.ts +17 -0
- package/components/alliance-paginator/get-pagination.d.ts +2 -0
- package/components/alliance-paginator/index.d.ts +2 -0
- package/components/index.d.ts +2 -0
- package/{dist/components → components}/index.js +375 -210
- package/components/index.js.map +1 -0
- package/package.json +13 -11
- package/{dist/voca → voca}/components/telia-accordion-item.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-accordion-item.js +5 -5
- package/voca/components/telia-accordion-item.js.map +1 -0
- package/{dist/voca → voca}/components/telia-accordion.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-accordion.js +3 -3
- package/voca/components/telia-accordion.js.map +1 -0
- package/{dist/voca → voca}/components/telia-badge.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-badge.js +2 -2
- package/voca/components/telia-badge.js.map +1 -0
- package/{dist/voca → voca}/components/telia-button-text.d.ts +0 -0
- package/voca/components/telia-button-text.js +6 -0
- package/{dist/voca → voca}/components/telia-button-text.js.map +0 -0
- package/{dist/voca → voca}/components/telia-button.d.ts +0 -0
- package/voca/components/telia-button.js +6 -0
- package/voca/components/telia-button.js.map +1 -0
- package/{dist/voca → voca}/components/telia-card-frame-link.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-card-frame-link.js +5 -5
- package/voca/components/telia-card-frame-link.js.map +1 -0
- package/{dist/voca → voca}/components/telia-card-frame.d.ts +0 -0
- package/voca/components/telia-card-frame.js +4 -0
- package/{dist/voca → voca}/components/telia-card-frame.js.map +0 -0
- package/{dist/voca → voca}/components/telia-checkbox.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-checkbox.js +7 -7
- package/voca/components/telia-checkbox.js.map +1 -0
- package/{dist/voca → voca}/components/telia-chip-choice.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-chip-choice.js +3 -3
- package/voca/components/telia-chip-choice.js.map +1 -0
- package/{dist/voca → voca}/components/telia-chip-filter.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-chip-filter.js +5 -5
- package/voca/components/telia-chip-filter.js.map +1 -0
- package/{dist/voca → voca}/components/telia-col.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-col.js +3 -3
- package/voca/components/telia-col.js.map +1 -0
- package/{dist/voca → voca}/components/telia-color-dot.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-color-dot.js +2 -2
- package/voca/components/telia-color-dot.js.map +1 -0
- package/{dist/voca → voca}/components/telia-cta-link.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-cta-link.js +4 -4
- package/voca/components/telia-cta-link.js.map +1 -0
- package/{dist/voca → voca}/components/telia-date-picker.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-date-picker.js +13 -13
- package/voca/components/telia-date-picker.js.map +1 -0
- package/{dist/voca → voca}/components/telia-divider.d.ts +0 -0
- package/voca/components/telia-divider.js +4 -0
- package/{dist/voca → voca}/components/telia-divider.js.map +0 -0
- package/{dist/voca → voca}/components/telia-field-assistive-text.d.ts +0 -0
- package/voca/components/telia-field-assistive-text.js +4 -0
- package/{dist/voca → voca}/components/telia-field-assistive-text.js.map +0 -0
- package/{dist/voca → voca}/components/telia-field-error.d.ts +0 -0
- package/voca/components/telia-field-error.js +7 -0
- package/{dist/voca → voca}/components/telia-field-error.js.map +0 -0
- package/{dist/voca → voca}/components/telia-field-valid.d.ts +0 -0
- package/voca/components/telia-field-valid.js +7 -0
- package/{dist/voca → voca}/components/telia-field-valid.js.map +0 -0
- package/{dist/voca → voca}/components/telia-fieldset.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-fieldset.js +2 -2
- package/voca/components/telia-fieldset.js.map +1 -0
- package/{dist/voca → voca}/components/telia-focus-trap.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-focus-trap.js +2 -2
- package/voca/components/telia-focus-trap.js.map +1 -0
- package/{dist/voca → voca}/components/telia-form.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-form.js +2 -2
- package/voca/components/telia-form.js.map +1 -0
- package/{dist/voca → voca}/components/telia-grid.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-grid.js +2 -2
- package/voca/components/telia-grid.js.map +1 -0
- package/{dist/voca → voca}/components/telia-heading.d.ts +0 -0
- package/voca/components/telia-heading.js +4 -0
- package/{dist/voca → voca}/components/telia-heading.js.map +0 -0
- package/{dist/voca → voca}/components/telia-icon.d.ts +0 -0
- package/voca/components/telia-icon.js +5 -0
- package/{dist/voca → voca}/components/telia-icon.js.map +0 -0
- package/{dist/voca → voca}/components/telia-image.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-image.js +2 -2
- package/voca/components/telia-image.js.map +1 -0
- package/{dist/voca → voca}/components/telia-label.d.ts +0 -0
- package/voca/components/telia-label.js +4 -0
- package/{dist/voca → voca}/components/telia-label.js.map +0 -0
- package/{dist/voca → voca}/components/telia-link-image.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-link-image.js +5 -5
- package/voca/components/telia-link-image.js.map +1 -0
- package/{dist/voca → voca}/components/telia-link.d.ts +0 -0
- package/voca/components/telia-link.js +5 -0
- package/{dist/voca → voca}/components/telia-link.js.map +0 -0
- package/{dist/voca → voca}/components/telia-list.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-list.js +2 -2
- package/voca/components/telia-list.js.map +1 -0
- package/{dist/voca → voca}/components/telia-logo.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-logo.js +2 -2
- package/voca/components/telia-logo.js.map +1 -0
- package/{dist/voca → voca}/components/telia-navigation-button.d.ts +0 -0
- package/voca/components/telia-navigation-button.js +5 -0
- package/{dist/voca → voca}/components/telia-navigation-button.js.map +0 -0
- package/{dist/voca → voca}/components/telia-navigation-dropdown.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-navigation-dropdown.js +6 -6
- package/voca/components/telia-navigation-dropdown.js.map +1 -0
- package/{dist/voca → voca}/components/telia-navigation-link.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-navigation-link.js +3 -3
- package/voca/components/telia-navigation-link.js.map +1 -0
- package/{dist/voca → voca}/components/telia-notification.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-notification.js +9 -9
- package/voca/components/telia-notification.js.map +1 -0
- package/{dist/voca → voca}/components/telia-overlay.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-overlay.js +2 -2
- package/voca/components/telia-overlay.js.map +1 -0
- package/{dist/voca → voca}/components/telia-p.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-p.js +2 -2
- package/voca/components/telia-p.js.map +1 -0
- package/{dist/voca → voca}/components/telia-pictogram.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-pictogram.js +3 -3
- package/voca/components/telia-pictogram.js.map +1 -0
- package/{dist/voca → voca}/components/telia-radio-button.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-radio-button.js +3 -3
- package/voca/components/telia-radio-button.js.map +1 -0
- package/{dist/voca → voca}/components/telia-row.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-row.js +2 -2
- package/voca/components/telia-row.js.map +1 -0
- package/{dist/voca → voca}/components/telia-select.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-select.js +10 -10
- package/voca/components/telia-select.js.map +1 -0
- package/{dist/voca → voca}/components/telia-skeleton.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-skeleton.js +2 -2
- package/voca/components/telia-skeleton.js.map +1 -0
- package/{dist/voca → voca}/components/telia-status-badge.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-status-badge.js +4 -4
- package/voca/components/telia-status-badge.js.map +1 -0
- package/{dist/voca → voca}/components/telia-style-link.d.ts +0 -0
- package/voca/components/telia-style-link.js +4 -0
- package/{dist/voca → voca}/components/telia-style-link.js.map +0 -0
- package/{dist/voca → voca}/components/telia-style-navigation-item.d.ts +0 -0
- package/voca/components/telia-style-navigation-item.js +4 -0
- package/{dist/voca → voca}/components/telia-style-navigation-item.js.map +0 -0
- package/{dist/voca → voca}/components/telia-tab-content.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-tab-content.js +2 -2
- package/voca/components/telia-tab-content.js.map +1 -0
- package/{dist/voca → voca}/components/telia-tab-header.d.ts +0 -0
- package/voca/components/telia-tab-header.js +6 -0
- package/{dist/voca → voca}/components/telia-tab-header.js.map +0 -0
- package/{dist/voca → voca}/components/telia-tab.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-tab.js +5 -5
- package/voca/components/telia-tab.js.map +1 -0
- package/{dist/voca → voca}/components/telia-text-input.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-text-input.js +12 -12
- package/voca/components/telia-text-input.js.map +1 -0
- package/{dist/voca → voca}/components/telia-text-spacing.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-text-spacing.js +2 -2
- package/voca/components/telia-text-spacing.js.map +1 -0
- package/{dist/voca → voca}/components/telia-textarea.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-textarea.js +10 -10
- package/voca/components/telia-textarea.js.map +1 -0
- package/{dist/voca → voca}/components/telia-toggle.d.ts +0 -0
- package/{dist/voca → voca}/components/telia-toggle.js +3 -3
- package/voca/components/telia-toggle.js.map +1 -0
- package/{dist/voca → voca}/components/telia-visually-hidden.d.ts +0 -0
- package/voca/components/telia-visually-hidden.js +4 -0
- package/{dist/voca → voca}/components/telia-visually-hidden.js.map +0 -0
- package/voca/foundations/index.d.ts +4 -0
- package/voca/foundations/index.js +183 -0
- package/voca/foundations/index.js.map +1 -0
- package/{dist/voca → voca}/icons/index.d.ts +0 -0
- package/{dist/voca → voca}/icons/index.js +268 -267
- package/voca/icons/index.js.map +1 -0
- package/dist/components/index.js.map +0 -1
- package/dist/voca/components/telia-accordion-item.js.map +0 -1
- package/dist/voca/components/telia-accordion.js.map +0 -1
- package/dist/voca/components/telia-badge.js.map +0 -1
- package/dist/voca/components/telia-button-text.js +0 -6
- package/dist/voca/components/telia-button.js.map +0 -1
- package/dist/voca/components/telia-card-frame-link.js.map +0 -1
- package/dist/voca/components/telia-card-frame.js +0 -4
- package/dist/voca/components/telia-checkbox.js.map +0 -1
- package/dist/voca/components/telia-chip-choice.js.map +0 -1
- package/dist/voca/components/telia-chip-filter.js.map +0 -1
- package/dist/voca/components/telia-col.js.map +0 -1
- package/dist/voca/components/telia-color-dot.js.map +0 -1
- package/dist/voca/components/telia-cta-link.js.map +0 -1
- package/dist/voca/components/telia-date-picker.js.map +0 -1
- package/dist/voca/components/telia-divider.js +0 -4
- package/dist/voca/components/telia-field-assistive-text.js +0 -4
- package/dist/voca/components/telia-field-error.js +0 -7
- package/dist/voca/components/telia-field-valid.js +0 -7
- package/dist/voca/components/telia-fieldset.js.map +0 -1
- package/dist/voca/components/telia-focus-trap.js.map +0 -1
- package/dist/voca/components/telia-form.js.map +0 -1
- package/dist/voca/components/telia-grid.js.map +0 -1
- package/dist/voca/components/telia-heading.js +0 -4
- package/dist/voca/components/telia-icon.js +0 -5
- package/dist/voca/components/telia-image.js.map +0 -1
- package/dist/voca/components/telia-label.js +0 -4
- package/dist/voca/components/telia-link-image.js.map +0 -1
- package/dist/voca/components/telia-link.js +0 -5
- package/dist/voca/components/telia-list.js.map +0 -1
- package/dist/voca/components/telia-logo.js.map +0 -1
- package/dist/voca/components/telia-navigation-button.js +0 -5
- package/dist/voca/components/telia-navigation-dropdown.js.map +0 -1
- package/dist/voca/components/telia-navigation-link.js.map +0 -1
- package/dist/voca/components/telia-notification.js.map +0 -1
- package/dist/voca/components/telia-overlay.js.map +0 -1
- package/dist/voca/components/telia-p.js.map +0 -1
- package/dist/voca/components/telia-pictogram.js.map +0 -1
- package/dist/voca/components/telia-radio-button.js.map +0 -1
- package/dist/voca/components/telia-row.js.map +0 -1
- package/dist/voca/components/telia-select.js.map +0 -1
- package/dist/voca/components/telia-skeleton.js.map +0 -1
- package/dist/voca/components/telia-status-badge.js.map +0 -1
- package/dist/voca/components/telia-style-link.js +0 -4
- package/dist/voca/components/telia-style-navigation-item.js +0 -4
- package/dist/voca/components/telia-tab-content.js.map +0 -1
- package/dist/voca/components/telia-tab-header.js +0 -6
- package/dist/voca/components/telia-tab.js.map +0 -1
- package/dist/voca/components/telia-text-input.js.map +0 -1
- package/dist/voca/components/telia-text-spacing.js.map +0 -1
- package/dist/voca/components/telia-textarea.js.map +0 -1
- package/dist/voca/components/telia-toggle.js.map +0 -1
- package/dist/voca/components/telia-visually-hidden.js +0 -4
- package/dist/voca/foundations/index.d.ts +0 -2
- package/dist/voca/foundations/index.js +0 -14
- package/dist/voca/foundations/index.js.map +0 -1
- package/dist/voca/icons/index.js.map +0 -1
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import "../telia-label2.
|
|
2
|
-
import { s as
|
|
3
|
-
import "../telia-divider.
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
1
|
+
import "../chunks/telia-label2-30f60678.js";
|
|
2
|
+
import { s as X, m as $t, c as vt, f as ft } from "../chunks/variables-06e4d3d9.js";
|
|
3
|
+
import "../chunks/telia-divider-c3741e53.js";
|
|
4
|
+
import "../chunks/telia-button-ed8aa4be.js";
|
|
5
|
+
import { c as Ft, a as Qt } from "../chunks/chevron-right-8d39622f.js";
|
|
6
|
+
import "../chunks/index-f01c7229.js";
|
|
7
|
+
import "../chunks/telia-vst2-5b44b983.js";
|
|
8
|
+
import "../chunks/telia-icon2-0db17e4e.js";
|
|
9
|
+
import "../chunks/getSvgContent-f8f3b2b3.js";
|
|
6
10
|
/**
|
|
7
11
|
* @license
|
|
8
12
|
* Copyright 2019 Google LLC
|
|
9
13
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10
14
|
*/
|
|
11
|
-
const
|
|
12
|
-
class
|
|
15
|
+
const Z = window, ht = Z.ShadowRoot && (Z.ShadyCSS === void 0 || Z.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ct = Symbol(), _t = /* @__PURE__ */ new WeakMap();
|
|
16
|
+
class Tt {
|
|
13
17
|
constructor(t, e, s) {
|
|
14
|
-
if (this._$cssResult$ = !0, s !==
|
|
18
|
+
if (this._$cssResult$ = !0, s !== ct)
|
|
15
19
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
16
20
|
this.cssText = t, this.t = e;
|
|
17
21
|
}
|
|
18
22
|
get styleSheet() {
|
|
19
23
|
let t = this.o;
|
|
20
24
|
const e = this.t;
|
|
21
|
-
if (
|
|
25
|
+
if (ht && t === void 0) {
|
|
22
26
|
const s = e !== void 0 && e.length === 1;
|
|
23
|
-
s && (t =
|
|
27
|
+
s && (t = _t.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && _t.set(e, t));
|
|
24
28
|
}
|
|
25
29
|
return t;
|
|
26
30
|
}
|
|
@@ -28,7 +32,7 @@ class wt {
|
|
|
28
32
|
return this.cssText;
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
|
-
const
|
|
35
|
+
const y = (n) => new Tt(typeof n == "string" ? n : n + "", void 0, ct), V = (n, ...t) => {
|
|
32
36
|
const e = n.length === 1 ? n[0] : t.reduce((s, i, r) => s + ((o) => {
|
|
33
37
|
if (o._$cssResult$ === !0)
|
|
34
38
|
return o.cssText;
|
|
@@ -36,28 +40,28 @@ const f = (n) => new wt(typeof n == "string" ? n : n + "", void 0, it), q = (n,
|
|
|
36
40
|
return o;
|
|
37
41
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
38
42
|
})(i) + n[r + 1], n[0]);
|
|
39
|
-
return new
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
const s = document.createElement("style"), i =
|
|
43
|
+
return new Tt(e, n, ct);
|
|
44
|
+
}, Yt = (n, t) => {
|
|
45
|
+
ht ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
|
|
46
|
+
const s = document.createElement("style"), i = Z.litNonce;
|
|
43
47
|
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, n.appendChild(s);
|
|
44
48
|
});
|
|
45
|
-
},
|
|
49
|
+
}, gt = ht ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
46
50
|
let e = "";
|
|
47
51
|
for (const s of t.cssRules)
|
|
48
52
|
e += s.cssText;
|
|
49
|
-
return
|
|
53
|
+
return y(e);
|
|
50
54
|
})(n) : n;
|
|
51
55
|
/**
|
|
52
56
|
* @license
|
|
53
57
|
* Copyright 2017 Google LLC
|
|
54
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
59
|
*/
|
|
56
|
-
var
|
|
57
|
-
const
|
|
60
|
+
var et;
|
|
61
|
+
const J = window, yt = J.trustedTypes, Gt = yt ? yt.emptyScript : "", mt = J.reactiveElementPolyfillSupport, at = { toAttribute(n, t) {
|
|
58
62
|
switch (t) {
|
|
59
63
|
case Boolean:
|
|
60
|
-
n = n ?
|
|
64
|
+
n = n ? Gt : null;
|
|
61
65
|
break;
|
|
62
66
|
case Object:
|
|
63
67
|
case Array:
|
|
@@ -82,8 +86,8 @@ const D = window, ut = D.trustedTypes, Dt = ut ? ut.emptyScript : "", pt = D.rea
|
|
|
82
86
|
}
|
|
83
87
|
}
|
|
84
88
|
return e;
|
|
85
|
-
} },
|
|
86
|
-
class
|
|
89
|
+
} }, Ht = (n, t) => t !== n && (t == t || n == n), st = { attribute: !0, type: String, converter: at, reflect: !1, hasChanged: Ht };
|
|
90
|
+
class U extends HTMLElement {
|
|
87
91
|
constructor() {
|
|
88
92
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
|
|
89
93
|
}
|
|
@@ -99,7 +103,7 @@ class w extends HTMLElement {
|
|
|
99
103
|
i !== void 0 && (this._$Ev.set(i, s), t.push(i));
|
|
100
104
|
}), t;
|
|
101
105
|
}
|
|
102
|
-
static createProperty(t, e =
|
|
106
|
+
static createProperty(t, e = st) {
|
|
103
107
|
if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
104
108
|
const s = typeof t == "symbol" ? Symbol() : "__" + t, i = this.getPropertyDescriptor(t, s, e);
|
|
105
109
|
i !== void 0 && Object.defineProperty(this.prototype, t, i);
|
|
@@ -114,7 +118,7 @@ class w extends HTMLElement {
|
|
|
114
118
|
}, configurable: !0, enumerable: !0 };
|
|
115
119
|
}
|
|
116
120
|
static getPropertyOptions(t) {
|
|
117
|
-
return this.elementProperties.get(t) ||
|
|
121
|
+
return this.elementProperties.get(t) || st;
|
|
118
122
|
}
|
|
119
123
|
static finalize() {
|
|
120
124
|
if (this.hasOwnProperty("finalized"))
|
|
@@ -133,9 +137,9 @@ class w extends HTMLElement {
|
|
|
133
137
|
if (Array.isArray(t)) {
|
|
134
138
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
135
139
|
for (const i of s)
|
|
136
|
-
e.unshift(
|
|
140
|
+
e.unshift(gt(i));
|
|
137
141
|
} else
|
|
138
|
-
t !== void 0 && e.push(
|
|
142
|
+
t !== void 0 && e.push(gt(t));
|
|
139
143
|
return e;
|
|
140
144
|
}
|
|
141
145
|
static _$Ep(t, e) {
|
|
@@ -162,7 +166,7 @@ class w extends HTMLElement {
|
|
|
162
166
|
createRenderRoot() {
|
|
163
167
|
var t;
|
|
164
168
|
const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
165
|
-
return
|
|
169
|
+
return Yt(e, this.constructor.elementStyles), e;
|
|
166
170
|
}
|
|
167
171
|
connectedCallback() {
|
|
168
172
|
var t;
|
|
@@ -183,11 +187,11 @@ class w extends HTMLElement {
|
|
|
183
187
|
attributeChangedCallback(t, e, s) {
|
|
184
188
|
this._$AK(t, s);
|
|
185
189
|
}
|
|
186
|
-
_$EO(t, e, s =
|
|
190
|
+
_$EO(t, e, s = st) {
|
|
187
191
|
var i;
|
|
188
192
|
const r = this.constructor._$Ep(t, s);
|
|
189
193
|
if (r !== void 0 && s.reflect === !0) {
|
|
190
|
-
const o = (((i = s.converter) === null || i === void 0 ? void 0 : i.toAttribute) !== void 0 ? s.converter :
|
|
194
|
+
const o = (((i = s.converter) === null || i === void 0 ? void 0 : i.toAttribute) !== void 0 ? s.converter : at).toAttribute(e, s.type);
|
|
191
195
|
this._$El = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$El = null;
|
|
192
196
|
}
|
|
193
197
|
}
|
|
@@ -195,13 +199,13 @@ class w extends HTMLElement {
|
|
|
195
199
|
var s;
|
|
196
200
|
const i = this.constructor, r = i._$Ev.get(t);
|
|
197
201
|
if (r !== void 0 && this._$El !== r) {
|
|
198
|
-
const o = i.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter :
|
|
202
|
+
const o = i.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter : at;
|
|
199
203
|
this._$El = r, this[r] = c.fromAttribute(e, o.type), this._$El = null;
|
|
200
204
|
}
|
|
201
205
|
}
|
|
202
206
|
requestUpdate(t, e, s) {
|
|
203
207
|
let i = !0;
|
|
204
|
-
t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged ||
|
|
208
|
+
t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || Ht)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : i = !1), !this.isUpdatePending && i && (this._$E_ = this._$Ej());
|
|
205
209
|
}
|
|
206
210
|
async _$Ej() {
|
|
207
211
|
this.isUpdatePending = !0;
|
|
@@ -262,93 +266,93 @@ class w extends HTMLElement {
|
|
|
262
266
|
firstUpdated(t) {
|
|
263
267
|
}
|
|
264
268
|
}
|
|
265
|
-
|
|
269
|
+
U.finalized = !0, U.elementProperties = /* @__PURE__ */ new Map(), U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, mt == null || mt({ ReactiveElement: U }), ((et = J.reactiveElementVersions) !== null && et !== void 0 ? et : J.reactiveElementVersions = []).push("1.4.1");
|
|
266
270
|
/**
|
|
267
271
|
* @license
|
|
268
272
|
* Copyright 2017 Google LLC
|
|
269
273
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
270
274
|
*/
|
|
271
|
-
var
|
|
272
|
-
const
|
|
275
|
+
var it;
|
|
276
|
+
const F = window, T = F.trustedTypes, bt = T ? T.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, A = `lit$${(Math.random() + "").slice(9)}$`, dt = "?" + A, Xt = `<${dt}>`, H = document, L = (n = "") => H.createComment(n), k = (n) => n === null || typeof n != "object" && typeof n != "function", Nt = Array.isArray, Rt = (n) => Nt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", D = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, At = /-->/g, Et = />/g, P = RegExp(`>|[
|
|
273
277
|
\f\r](?:([^\\s"'>=/]+)([
|
|
274
278
|
\f\r]*=[
|
|
275
279
|
\f\r]*(?:[^
|
|
276
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
280
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Pt = /'/g, St = /"/g, Mt = /^(?:script|style|textarea|title)$/i, te = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), g = te(1), w = Symbol.for("lit-noChange"), f = Symbol.for("lit-nothing"), wt = /* @__PURE__ */ new WeakMap(), j = H.createTreeWalker(H, 129, null, !1), Dt = (n, t) => {
|
|
277
281
|
const e = n.length - 1, s = [];
|
|
278
|
-
let i, r = t === 2 ? "<svg>" : "", o =
|
|
282
|
+
let i, r = t === 2 ? "<svg>" : "", o = D;
|
|
279
283
|
for (let a = 0; a < e; a++) {
|
|
280
284
|
const l = n[a];
|
|
281
|
-
let
|
|
285
|
+
let $, d, h = -1, u = 0;
|
|
282
286
|
for (; u < l.length && (o.lastIndex = u, d = o.exec(l), d !== null); )
|
|
283
|
-
u = o.lastIndex, o ===
|
|
284
|
-
const p = o ===
|
|
285
|
-
r += o ===
|
|
287
|
+
u = o.lastIndex, o === D ? d[1] === "!--" ? o = At : d[1] !== void 0 ? o = Et : d[2] !== void 0 ? (Mt.test(d[2]) && (i = RegExp("</" + d[2], "g")), o = P) : d[3] !== void 0 && (o = P) : o === P ? d[0] === ">" ? (o = i != null ? i : D, h = -1) : d[1] === void 0 ? h = -2 : (h = o.lastIndex - d[2].length, $ = d[1], o = d[3] === void 0 ? P : d[3] === '"' ? St : Pt) : o === St || o === Pt ? o = P : o === At || o === Et ? o = D : (o = P, i = void 0);
|
|
288
|
+
const p = o === P && n[a + 1].startsWith("/>") ? " " : "";
|
|
289
|
+
r += o === D ? l + Xt : h >= 0 ? (s.push($), l.slice(0, h) + "$lit$" + l.slice(h) + A + p) : l + A + (h === -2 ? (s.push(void 0), a) : p);
|
|
286
290
|
}
|
|
287
291
|
const c = r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "");
|
|
288
292
|
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
|
289
293
|
throw Error("invalid template strings array");
|
|
290
|
-
return [
|
|
294
|
+
return [bt !== void 0 ? bt.createHTML(c) : c, s];
|
|
291
295
|
};
|
|
292
|
-
class
|
|
296
|
+
class I {
|
|
293
297
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
294
298
|
let i;
|
|
295
299
|
this.parts = [];
|
|
296
300
|
let r = 0, o = 0;
|
|
297
|
-
const c = t.length - 1, a = this.parts, [l,
|
|
298
|
-
if (this.el =
|
|
301
|
+
const c = t.length - 1, a = this.parts, [l, $] = Dt(t, e);
|
|
302
|
+
if (this.el = I.createElement(l, s), j.currentNode = this.el.content, e === 2) {
|
|
299
303
|
const d = this.el.content, h = d.firstChild;
|
|
300
304
|
h.remove(), d.append(...h.childNodes);
|
|
301
305
|
}
|
|
302
|
-
for (; (i =
|
|
306
|
+
for (; (i = j.nextNode()) !== null && a.length < c; ) {
|
|
303
307
|
if (i.nodeType === 1) {
|
|
304
308
|
if (i.hasAttributes()) {
|
|
305
309
|
const d = [];
|
|
306
310
|
for (const h of i.getAttributeNames())
|
|
307
|
-
if (h.endsWith("$lit$") || h.startsWith(
|
|
308
|
-
const u =
|
|
311
|
+
if (h.endsWith("$lit$") || h.startsWith(A)) {
|
|
312
|
+
const u = $[o++];
|
|
309
313
|
if (d.push(h), u !== void 0) {
|
|
310
|
-
const p = i.getAttribute(u.toLowerCase() + "$lit$").split(
|
|
311
|
-
a.push({ type: 1, index: r, name:
|
|
314
|
+
const p = i.getAttribute(u.toLowerCase() + "$lit$").split(A), v = /([.?@])?(.*)/.exec(u);
|
|
315
|
+
a.push({ type: 1, index: r, name: v[2], strings: p, ctor: v[1] === "." ? Lt : v[1] === "?" ? kt : v[1] === "@" ? It : W });
|
|
312
316
|
} else
|
|
313
317
|
a.push({ type: 6, index: r });
|
|
314
318
|
}
|
|
315
319
|
for (const h of d)
|
|
316
320
|
i.removeAttribute(h);
|
|
317
321
|
}
|
|
318
|
-
if (
|
|
319
|
-
const d = i.textContent.split(
|
|
322
|
+
if (Mt.test(i.tagName)) {
|
|
323
|
+
const d = i.textContent.split(A), h = d.length - 1;
|
|
320
324
|
if (h > 0) {
|
|
321
|
-
i.textContent =
|
|
325
|
+
i.textContent = T ? T.emptyScript : "";
|
|
322
326
|
for (let u = 0; u < h; u++)
|
|
323
|
-
i.append(d[u],
|
|
324
|
-
i.append(d[h],
|
|
327
|
+
i.append(d[u], L()), j.nextNode(), a.push({ type: 2, index: ++r });
|
|
328
|
+
i.append(d[h], L());
|
|
325
329
|
}
|
|
326
330
|
}
|
|
327
331
|
} else if (i.nodeType === 8)
|
|
328
|
-
if (i.data ===
|
|
332
|
+
if (i.data === dt)
|
|
329
333
|
a.push({ type: 2, index: r });
|
|
330
334
|
else {
|
|
331
335
|
let d = -1;
|
|
332
|
-
for (; (d = i.data.indexOf(
|
|
333
|
-
a.push({ type: 7, index: r }), d +=
|
|
336
|
+
for (; (d = i.data.indexOf(A, d + 1)) !== -1; )
|
|
337
|
+
a.push({ type: 7, index: r }), d += A.length - 1;
|
|
334
338
|
}
|
|
335
339
|
r++;
|
|
336
340
|
}
|
|
337
341
|
}
|
|
338
342
|
static createElement(t, e) {
|
|
339
|
-
const s =
|
|
343
|
+
const s = H.createElement("template");
|
|
340
344
|
return s.innerHTML = t, s;
|
|
341
345
|
}
|
|
342
346
|
}
|
|
343
|
-
function
|
|
347
|
+
function C(n, t, e = n, s) {
|
|
344
348
|
var i, r, o, c;
|
|
345
|
-
if (t ===
|
|
349
|
+
if (t === w)
|
|
346
350
|
return t;
|
|
347
351
|
let a = s !== void 0 ? (i = e._$Co) === null || i === void 0 ? void 0 : i[s] : e._$Cl;
|
|
348
|
-
const l =
|
|
349
|
-
return (a == null ? void 0 : a.constructor) !== l && ((r = a == null ? void 0 : a._$AO) === null || r === void 0 || r.call(a, !1), l === void 0 ? a = void 0 : (a = new l(n), a._$AT(n, e, s)), s !== void 0 ? ((o = (c = e)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[s] = a : e._$Cl = a), a !== void 0 && (t =
|
|
352
|
+
const l = k(t) ? void 0 : t._$litDirective$;
|
|
353
|
+
return (a == null ? void 0 : a.constructor) !== l && ((r = a == null ? void 0 : a._$AO) === null || r === void 0 || r.call(a, !1), l === void 0 ? a = void 0 : (a = new l(n), a._$AT(n, e, s)), s !== void 0 ? ((o = (c = e)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[s] = a : e._$Cl = a), a !== void 0 && (t = C(n, a._$AS(n, t.values), a, s)), t;
|
|
350
354
|
}
|
|
351
|
-
class
|
|
355
|
+
class Bt {
|
|
352
356
|
constructor(t, e) {
|
|
353
357
|
this.u = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
354
358
|
}
|
|
@@ -360,15 +364,15 @@ class Tt {
|
|
|
360
364
|
}
|
|
361
365
|
v(t) {
|
|
362
366
|
var e;
|
|
363
|
-
const { el: { content: s }, parts: i } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e :
|
|
364
|
-
|
|
365
|
-
let o =
|
|
367
|
+
const { el: { content: s }, parts: i } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : H).importNode(s, !0);
|
|
368
|
+
j.currentNode = r;
|
|
369
|
+
let o = j.nextNode(), c = 0, a = 0, l = i[0];
|
|
366
370
|
for (; l !== void 0; ) {
|
|
367
371
|
if (c === l.index) {
|
|
368
|
-
let
|
|
369
|
-
l.type === 2 ?
|
|
372
|
+
let $;
|
|
373
|
+
l.type === 2 ? $ = new N(o, o.nextSibling, this, t) : l.type === 1 ? $ = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && ($ = new zt(o, this, t)), this.u.push($), l = i[++a];
|
|
370
374
|
}
|
|
371
|
-
c !== (l == null ? void 0 : l.index) && (o =
|
|
375
|
+
c !== (l == null ? void 0 : l.index) && (o = j.nextNode(), c++);
|
|
372
376
|
}
|
|
373
377
|
return r;
|
|
374
378
|
}
|
|
@@ -378,10 +382,10 @@ class Tt {
|
|
|
378
382
|
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
379
383
|
}
|
|
380
384
|
}
|
|
381
|
-
class
|
|
385
|
+
class N {
|
|
382
386
|
constructor(t, e, s, i) {
|
|
383
387
|
var r;
|
|
384
|
-
this.type = 2, this._$AH =
|
|
388
|
+
this.type = 2, this._$AH = f, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cm = (r = i == null ? void 0 : i.isConnected) === null || r === void 0 || r;
|
|
385
389
|
}
|
|
386
390
|
get _$AU() {
|
|
387
391
|
var t, e;
|
|
@@ -399,7 +403,7 @@ class U {
|
|
|
399
403
|
return this._$AB;
|
|
400
404
|
}
|
|
401
405
|
_$AI(t, e = this) {
|
|
402
|
-
t =
|
|
406
|
+
t = C(this, t, e), k(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== w && this.g(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Rt(t) ? this.k(t) : this.g(t);
|
|
403
407
|
}
|
|
404
408
|
O(t, e = this._$AB) {
|
|
405
409
|
return this._$AA.parentNode.insertBefore(t, e);
|
|
@@ -408,28 +412,28 @@ class U {
|
|
|
408
412
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
409
413
|
}
|
|
410
414
|
g(t) {
|
|
411
|
-
this._$AH !==
|
|
415
|
+
this._$AH !== f && k(this._$AH) ? this._$AA.nextSibling.data = t : this.T(H.createTextNode(t)), this._$AH = t;
|
|
412
416
|
}
|
|
413
417
|
$(t) {
|
|
414
418
|
var e;
|
|
415
|
-
const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
419
|
+
const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = I.createElement(i.h, this.options)), i);
|
|
416
420
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
|
|
417
421
|
this._$AH.p(s);
|
|
418
422
|
else {
|
|
419
|
-
const o = new
|
|
423
|
+
const o = new Bt(r, this), c = o.v(this.options);
|
|
420
424
|
o.p(s), this.T(c), this._$AH = o;
|
|
421
425
|
}
|
|
422
426
|
}
|
|
423
427
|
_$AC(t) {
|
|
424
|
-
let e =
|
|
425
|
-
return e === void 0 &&
|
|
428
|
+
let e = wt.get(t.strings);
|
|
429
|
+
return e === void 0 && wt.set(t.strings, e = new I(t)), e;
|
|
426
430
|
}
|
|
427
431
|
k(t) {
|
|
428
|
-
|
|
432
|
+
Nt(this._$AH) || (this._$AH = [], this._$AR());
|
|
429
433
|
const e = this._$AH;
|
|
430
434
|
let s, i = 0;
|
|
431
435
|
for (const r of t)
|
|
432
|
-
i === e.length ? e.push(s = new
|
|
436
|
+
i === e.length ? e.push(s = new N(this.O(L()), this.O(L()), this, this.options)) : s = e[i], s._$AI(r), i++;
|
|
433
437
|
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
434
438
|
}
|
|
435
439
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -444,9 +448,9 @@ class U {
|
|
|
444
448
|
this._$AM === void 0 && (this._$Cm = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
|
|
445
449
|
}
|
|
446
450
|
}
|
|
447
|
-
class
|
|
451
|
+
class W {
|
|
448
452
|
constructor(t, e, s, i, r) {
|
|
449
|
-
this.type = 1, this._$AH =
|
|
453
|
+
this.type = 1, this._$AH = f, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = f;
|
|
450
454
|
}
|
|
451
455
|
get tagName() {
|
|
452
456
|
return this.element.tagName;
|
|
@@ -458,45 +462,45 @@ class k {
|
|
|
458
462
|
const r = this.strings;
|
|
459
463
|
let o = !1;
|
|
460
464
|
if (r === void 0)
|
|
461
|
-
t =
|
|
465
|
+
t = C(this, t, e, 0), o = !k(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
|
|
462
466
|
else {
|
|
463
467
|
const c = t;
|
|
464
468
|
let a, l;
|
|
465
469
|
for (t = r[0], a = 0; a < r.length - 1; a++)
|
|
466
|
-
l =
|
|
470
|
+
l = C(this, c[s + a], e, a), l === w && (l = this._$AH[a]), o || (o = !k(l) || l !== this._$AH[a]), l === f ? t = f : t !== f && (t += (l != null ? l : "") + r[a + 1]), this._$AH[a] = l;
|
|
467
471
|
}
|
|
468
472
|
o && !i && this.j(t);
|
|
469
473
|
}
|
|
470
474
|
j(t) {
|
|
471
|
-
t ===
|
|
475
|
+
t === f ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : "");
|
|
472
476
|
}
|
|
473
477
|
}
|
|
474
|
-
class
|
|
478
|
+
class Lt extends W {
|
|
475
479
|
constructor() {
|
|
476
480
|
super(...arguments), this.type = 3;
|
|
477
481
|
}
|
|
478
482
|
j(t) {
|
|
479
|
-
this.element[this.name] = t ===
|
|
483
|
+
this.element[this.name] = t === f ? void 0 : t;
|
|
480
484
|
}
|
|
481
485
|
}
|
|
482
|
-
const
|
|
483
|
-
class
|
|
486
|
+
const ee = T ? T.emptyScript : "";
|
|
487
|
+
class kt extends W {
|
|
484
488
|
constructor() {
|
|
485
489
|
super(...arguments), this.type = 4;
|
|
486
490
|
}
|
|
487
491
|
j(t) {
|
|
488
|
-
t && t !==
|
|
492
|
+
t && t !== f ? this.element.setAttribute(this.name, ee) : this.element.removeAttribute(this.name);
|
|
489
493
|
}
|
|
490
494
|
}
|
|
491
|
-
class
|
|
495
|
+
class It extends W {
|
|
492
496
|
constructor(t, e, s, i, r) {
|
|
493
497
|
super(t, e, s, i, r), this.type = 5;
|
|
494
498
|
}
|
|
495
499
|
_$AI(t, e = this) {
|
|
496
500
|
var s;
|
|
497
|
-
if ((t = (s =
|
|
501
|
+
if ((t = (s = C(this, t, e, 0)) !== null && s !== void 0 ? s : f) === w)
|
|
498
502
|
return;
|
|
499
|
-
const i = this._$AH, r = t ===
|
|
503
|
+
const i = this._$AH, r = t === f && i !== f || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== f && (i === f || r);
|
|
500
504
|
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
501
505
|
}
|
|
502
506
|
handleEvent(t) {
|
|
@@ -504,7 +508,7 @@ class Nt extends k {
|
|
|
504
508
|
typeof this._$AH == "function" ? this._$AH.call((s = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && s !== void 0 ? s : this.element, t) : this._$AH.handleEvent(t);
|
|
505
509
|
}
|
|
506
510
|
}
|
|
507
|
-
class
|
|
511
|
+
class zt {
|
|
508
512
|
constructor(t, e, s) {
|
|
509
513
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
510
514
|
}
|
|
@@ -512,18 +516,18 @@ class Mt {
|
|
|
512
516
|
return this._$AM._$AU;
|
|
513
517
|
}
|
|
514
518
|
_$AI(t) {
|
|
515
|
-
|
|
519
|
+
C(this, t);
|
|
516
520
|
}
|
|
517
521
|
}
|
|
518
|
-
const
|
|
519
|
-
|
|
520
|
-
const
|
|
522
|
+
const se = { P: "$lit$", A, M: dt, C: 1, L: Dt, R: Bt, D: Rt, V: C, I: N, H: W, N: kt, U: It, B: Lt, F: zt }, Ct = F.litHtmlPolyfillSupport;
|
|
523
|
+
Ct == null || Ct(I, N), ((it = F.litHtmlVersions) !== null && it !== void 0 ? it : F.litHtmlVersions = []).push("2.4.0");
|
|
524
|
+
const ie = (n, t, e) => {
|
|
521
525
|
var s, i;
|
|
522
526
|
const r = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : t;
|
|
523
527
|
let o = r._$litPart$;
|
|
524
528
|
if (o === void 0) {
|
|
525
529
|
const c = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : null;
|
|
526
|
-
r._$litPart$ = o = new
|
|
530
|
+
r._$litPart$ = o = new N(t.insertBefore(L(), c), c, void 0, e != null ? e : {});
|
|
527
531
|
}
|
|
528
532
|
return o._$AI(n), o;
|
|
529
533
|
};
|
|
@@ -532,8 +536,8 @@ const qt = (n, t, e) => {
|
|
|
532
536
|
* Copyright 2017 Google LLC
|
|
533
537
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
534
538
|
*/
|
|
535
|
-
var
|
|
536
|
-
class m extends
|
|
539
|
+
var nt, rt;
|
|
540
|
+
class m extends U {
|
|
537
541
|
constructor() {
|
|
538
542
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
539
543
|
}
|
|
@@ -544,7 +548,7 @@ class m extends w {
|
|
|
544
548
|
}
|
|
545
549
|
update(t) {
|
|
546
550
|
const e = this.render();
|
|
547
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
551
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ie(e, this.renderRoot, this.renderOptions);
|
|
548
552
|
}
|
|
549
553
|
connectedCallback() {
|
|
550
554
|
var t;
|
|
@@ -555,19 +559,19 @@ class m extends w {
|
|
|
555
559
|
super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
|
|
556
560
|
}
|
|
557
561
|
render() {
|
|
558
|
-
return
|
|
562
|
+
return w;
|
|
559
563
|
}
|
|
560
564
|
}
|
|
561
|
-
m.finalized = !0, m._$litElement$ = !0, (
|
|
562
|
-
const
|
|
563
|
-
|
|
564
|
-
((
|
|
565
|
+
m.finalized = !0, m._$litElement$ = !0, (nt = globalThis.litElementHydrateSupport) === null || nt === void 0 || nt.call(globalThis, { LitElement: m });
|
|
566
|
+
const xt = globalThis.litElementPolyfillSupport;
|
|
567
|
+
xt == null || xt({ LitElement: m });
|
|
568
|
+
((rt = globalThis.litElementVersions) !== null && rt !== void 0 ? rt : globalThis.litElementVersions = []).push("3.2.2");
|
|
565
569
|
/**
|
|
566
570
|
* @license
|
|
567
571
|
* Copyright 2017 Google LLC
|
|
568
572
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
569
573
|
*/
|
|
570
|
-
const
|
|
574
|
+
const R = (n) => (t) => typeof t == "function" ? ((e, s) => (customElements.define(e, s), s))(n, t) : ((e, s) => {
|
|
571
575
|
const { kind: i, elements: r } = s;
|
|
572
576
|
return { kind: i, elements: r, finisher(o) {
|
|
573
577
|
customElements.define(e, o);
|
|
@@ -578,32 +582,40 @@ const K = (n) => (t) => typeof t == "function" ? ((e, s) => (customElements.defi
|
|
|
578
582
|
* Copyright 2017 Google LLC
|
|
579
583
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
580
584
|
*/
|
|
581
|
-
const
|
|
585
|
+
const ne = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
|
|
582
586
|
e.createProperty(t.key, n);
|
|
583
587
|
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
|
|
584
588
|
typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
|
|
585
589
|
}, finisher(e) {
|
|
586
590
|
e.createProperty(t.key, n);
|
|
587
591
|
} };
|
|
588
|
-
function
|
|
592
|
+
function _(n) {
|
|
589
593
|
return (t, e) => e !== void 0 ? ((s, i, r) => {
|
|
590
594
|
i.constructor.createProperty(r, s);
|
|
591
|
-
})(n, t, e) :
|
|
595
|
+
})(n, t, e) : ne(n, t);
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* @license
|
|
599
|
+
* Copyright 2017 Google LLC
|
|
600
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
601
|
+
*/
|
|
602
|
+
function Vt(n) {
|
|
603
|
+
return _({ ...n, state: !0 });
|
|
592
604
|
}
|
|
593
605
|
/**
|
|
594
606
|
* @license
|
|
595
607
|
* Copyright 2021 Google LLC
|
|
596
608
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
597
609
|
*/
|
|
598
|
-
var
|
|
599
|
-
((
|
|
610
|
+
var ot;
|
|
611
|
+
((ot = window.HTMLSlotElement) === null || ot === void 0 ? void 0 : ot.prototype.assignedElements) != null;
|
|
600
612
|
/**
|
|
601
613
|
* @license
|
|
602
614
|
* Copyright 2017 Google LLC
|
|
603
615
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
604
616
|
*/
|
|
605
|
-
const
|
|
606
|
-
class
|
|
617
|
+
const re = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, oe = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
618
|
+
class le {
|
|
607
619
|
constructor(t) {
|
|
608
620
|
}
|
|
609
621
|
get _$AU() {
|
|
@@ -624,12 +636,12 @@ class Ft {
|
|
|
624
636
|
* Copyright 2020 Google LLC
|
|
625
637
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
626
638
|
*/
|
|
627
|
-
const { I:
|
|
639
|
+
const { I: ae } = se, Ot = () => document.createComment(""), B = (n, t, e) => {
|
|
628
640
|
var s;
|
|
629
641
|
const i = n._$AA.parentNode, r = t === void 0 ? n._$AB : t._$AA;
|
|
630
642
|
if (e === void 0) {
|
|
631
|
-
const o = i.insertBefore(
|
|
632
|
-
e = new
|
|
643
|
+
const o = i.insertBefore(Ot(), r), c = i.insertBefore(Ot(), r);
|
|
644
|
+
e = new ae(o, c, n, n.options);
|
|
633
645
|
} else {
|
|
634
646
|
const o = e._$AB.nextSibling, c = e._$AM, a = c !== n;
|
|
635
647
|
if (a) {
|
|
@@ -639,13 +651,13 @@ const { I: Qt } = Wt, bt = () => document.createComment(""), H = (n, t, e) => {
|
|
|
639
651
|
if (o !== r || a) {
|
|
640
652
|
let l = e._$AA;
|
|
641
653
|
for (; l !== o; ) {
|
|
642
|
-
const
|
|
643
|
-
i.insertBefore(l, r), l =
|
|
654
|
+
const $ = l.nextSibling;
|
|
655
|
+
i.insertBefore(l, r), l = $;
|
|
644
656
|
}
|
|
645
657
|
}
|
|
646
658
|
}
|
|
647
659
|
return e;
|
|
648
|
-
},
|
|
660
|
+
}, S = (n, t, e = n) => (n._$AI(t, e), n), he = {}, ce = (n, t = he) => n._$AH = t, de = (n) => n._$AH, lt = (n) => {
|
|
649
661
|
var t;
|
|
650
662
|
(t = n._$AP) === null || t === void 0 || t.call(n, !1, !0);
|
|
651
663
|
let e = n._$AA;
|
|
@@ -660,14 +672,14 @@ const { I: Qt } = Wt, bt = () => document.createComment(""), H = (n, t, e) => {
|
|
|
660
672
|
* Copyright 2017 Google LLC
|
|
661
673
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
662
674
|
*/
|
|
663
|
-
const
|
|
675
|
+
const Ut = (n, t, e) => {
|
|
664
676
|
const s = /* @__PURE__ */ new Map();
|
|
665
677
|
for (let i = t; i <= e; i++)
|
|
666
678
|
s.set(n[i], i);
|
|
667
679
|
return s;
|
|
668
|
-
},
|
|
680
|
+
}, Wt = oe(class extends le {
|
|
669
681
|
constructor(n) {
|
|
670
|
-
if (super(n), n.type !==
|
|
682
|
+
if (super(n), n.type !== re.CHILD)
|
|
671
683
|
throw Error("repeat() can only be used in text expressions");
|
|
672
684
|
}
|
|
673
685
|
ht(n, t, e) {
|
|
@@ -684,64 +696,64 @@ const Et = (n, t, e) => {
|
|
|
684
696
|
}
|
|
685
697
|
update(n, [t, e, s]) {
|
|
686
698
|
var i;
|
|
687
|
-
const r =
|
|
699
|
+
const r = de(n), { values: o, keys: c } = this.ht(t, e, s);
|
|
688
700
|
if (!Array.isArray(r))
|
|
689
701
|
return this.ut = c, o;
|
|
690
702
|
const a = (i = this.ut) !== null && i !== void 0 ? i : this.ut = [], l = [];
|
|
691
|
-
let
|
|
692
|
-
for (; h <= u && p <=
|
|
703
|
+
let $, d, h = 0, u = r.length - 1, p = 0, v = o.length - 1;
|
|
704
|
+
for (; h <= u && p <= v; )
|
|
693
705
|
if (r[h] === null)
|
|
694
706
|
h++;
|
|
695
707
|
else if (r[u] === null)
|
|
696
708
|
u--;
|
|
697
709
|
else if (a[h] === c[p])
|
|
698
|
-
l[p] =
|
|
699
|
-
else if (a[u] === c[
|
|
700
|
-
l[
|
|
701
|
-
else if (a[h] === c[
|
|
702
|
-
l[
|
|
710
|
+
l[p] = S(r[h], o[p]), h++, p++;
|
|
711
|
+
else if (a[u] === c[v])
|
|
712
|
+
l[v] = S(r[u], o[v]), u--, v--;
|
|
713
|
+
else if (a[h] === c[v])
|
|
714
|
+
l[v] = S(r[h], o[v]), B(n, l[v + 1], r[h]), h++, v--;
|
|
703
715
|
else if (a[u] === c[p])
|
|
704
|
-
l[p] =
|
|
705
|
-
else if (
|
|
706
|
-
if (
|
|
707
|
-
const
|
|
708
|
-
if (
|
|
709
|
-
const
|
|
710
|
-
|
|
716
|
+
l[p] = S(r[u], o[p]), B(n, r[h], r[u]), u--, p++;
|
|
717
|
+
else if ($ === void 0 && ($ = Ut(c, p, v), d = Ut(a, h, u)), $.has(a[h]))
|
|
718
|
+
if ($.has(a[u])) {
|
|
719
|
+
const b = d.get(c[p]), tt = b !== void 0 ? r[b] : null;
|
|
720
|
+
if (tt === null) {
|
|
721
|
+
const pt = B(n, r[h]);
|
|
722
|
+
S(pt, o[p]), l[p] = pt;
|
|
711
723
|
} else
|
|
712
|
-
l[p] =
|
|
724
|
+
l[p] = S(tt, o[p]), B(n, r[h], tt), r[b] = null;
|
|
713
725
|
p++;
|
|
714
726
|
} else
|
|
715
|
-
|
|
727
|
+
lt(r[u]), u--;
|
|
716
728
|
else
|
|
717
|
-
|
|
718
|
-
for (; p <=
|
|
719
|
-
const
|
|
720
|
-
b
|
|
729
|
+
lt(r[h]), h++;
|
|
730
|
+
for (; p <= v; ) {
|
|
731
|
+
const b = B(n, l[v + 1]);
|
|
732
|
+
S(b, o[p]), l[p++] = b;
|
|
721
733
|
}
|
|
722
734
|
for (; h <= u; ) {
|
|
723
|
-
const
|
|
724
|
-
|
|
735
|
+
const b = r[h++];
|
|
736
|
+
b !== null && lt(b);
|
|
725
737
|
}
|
|
726
|
-
return this.ut = c,
|
|
738
|
+
return this.ut = c, ce(n, l), w;
|
|
727
739
|
}
|
|
728
740
|
});
|
|
729
|
-
var
|
|
730
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
741
|
+
var ue = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, qt = (n, t, e, s) => {
|
|
742
|
+
for (var i = s > 1 ? void 0 : s ? pe(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
731
743
|
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
732
|
-
return s && i &&
|
|
744
|
+
return s && i && ue(t, e, i), i;
|
|
733
745
|
};
|
|
734
|
-
let
|
|
746
|
+
let Q = class extends m {
|
|
735
747
|
constructor() {
|
|
736
748
|
super(...arguments), this.columns = [];
|
|
737
749
|
}
|
|
738
750
|
render() {
|
|
739
|
-
return
|
|
740
|
-
${this.columns.length ?
|
|
751
|
+
return g`
|
|
752
|
+
${this.columns.length ? g`
|
|
741
753
|
<alliance-object-list-row>
|
|
742
|
-
${
|
|
754
|
+
${Wt(
|
|
743
755
|
this.columns,
|
|
744
|
-
(n) =>
|
|
756
|
+
(n) => g` <alliance-object-list-head label=${n.title} /> `
|
|
745
757
|
)}
|
|
746
758
|
</alliance-object-list-row>
|
|
747
759
|
` : null}
|
|
@@ -749,97 +761,96 @@ let z = class extends m {
|
|
|
749
761
|
`;
|
|
750
762
|
}
|
|
751
763
|
};
|
|
752
|
-
|
|
764
|
+
Q.styles = V`
|
|
753
765
|
:host {
|
|
754
766
|
display: flex;
|
|
755
767
|
flex-direction: column;
|
|
756
768
|
}
|
|
757
769
|
`;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
],
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
],
|
|
764
|
-
var
|
|
765
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
770
|
+
qt([
|
|
771
|
+
_({ type: Array })
|
|
772
|
+
], Q.prototype, "columns", 2);
|
|
773
|
+
Q = qt([
|
|
774
|
+
R("alliance-object-list")
|
|
775
|
+
], Q);
|
|
776
|
+
var $e = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, ut = (n, t, e, s) => {
|
|
777
|
+
for (var i = s > 1 ? void 0 : s ? ve(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
766
778
|
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
767
|
-
return s && i &&
|
|
779
|
+
return s && i && $e(t, e, i), i;
|
|
768
780
|
};
|
|
769
|
-
let
|
|
781
|
+
let z = class extends m {
|
|
770
782
|
constructor() {
|
|
771
783
|
super(...arguments), this.padded = !0, this.label = "";
|
|
772
784
|
}
|
|
773
785
|
render() {
|
|
774
|
-
return
|
|
786
|
+
return g`
|
|
775
787
|
<style>
|
|
776
788
|
:host {
|
|
777
|
-
padding: ${this.padded ?
|
|
789
|
+
padding: ${this.padded ? y(X.spacing24) : "inherit"};
|
|
778
790
|
}
|
|
779
791
|
</style>
|
|
780
792
|
<telia-label>${this.label}</telia-label>
|
|
781
793
|
`;
|
|
782
794
|
}
|
|
783
795
|
};
|
|
784
|
-
|
|
796
|
+
z.styles = V`
|
|
785
797
|
:host {
|
|
786
798
|
flex: 1;
|
|
787
799
|
}
|
|
788
800
|
`;
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
],
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
],
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
],
|
|
798
|
-
|
|
799
|
-
var
|
|
800
|
-
for (var i = s > 1 ? void 0 : s ? le(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
801
|
+
ut([
|
|
802
|
+
_({ type: Boolean })
|
|
803
|
+
], z.prototype, "padded", 2);
|
|
804
|
+
ut([
|
|
805
|
+
_({ type: String })
|
|
806
|
+
], z.prototype, "label", 2);
|
|
807
|
+
z = ut([
|
|
808
|
+
R("alliance-object-list-head")
|
|
809
|
+
], z);
|
|
810
|
+
var fe = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, Kt = (n, t, e, s) => {
|
|
811
|
+
for (var i = s > 1 ? void 0 : s ? _e(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
801
812
|
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
802
|
-
return s && i &&
|
|
813
|
+
return s && i && fe(t, e, i), i;
|
|
803
814
|
};
|
|
804
|
-
let
|
|
815
|
+
let Y = class extends m {
|
|
805
816
|
constructor() {
|
|
806
817
|
super(...arguments), this.padded = !0;
|
|
807
818
|
}
|
|
808
819
|
render() {
|
|
809
|
-
return
|
|
820
|
+
return g`
|
|
810
821
|
<style>
|
|
811
822
|
:host {
|
|
812
|
-
padding: ${this.padded ?
|
|
823
|
+
padding: ${this.padded ? y(X.spacing24) : "inherit"};
|
|
813
824
|
}
|
|
814
825
|
</style>
|
|
815
826
|
<slot></slot>
|
|
816
827
|
`;
|
|
817
828
|
}
|
|
818
829
|
};
|
|
819
|
-
|
|
830
|
+
Y.styles = V`
|
|
820
831
|
:host {
|
|
821
832
|
flex: 1;
|
|
822
833
|
display: flex;
|
|
823
834
|
align-items: center;
|
|
824
835
|
}
|
|
825
836
|
`;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
],
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
],
|
|
832
|
-
var
|
|
833
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
837
|
+
Kt([
|
|
838
|
+
_({ type: Boolean })
|
|
839
|
+
], Y.prototype, "padded", 2);
|
|
840
|
+
Y = Kt([
|
|
841
|
+
R("alliance-object-list-item")
|
|
842
|
+
], Y);
|
|
843
|
+
var ge = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, Zt = (n, t, e, s) => {
|
|
844
|
+
for (var i = s > 1 ? void 0 : s ? ye(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
834
845
|
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
835
|
-
return s && i &&
|
|
846
|
+
return s && i && ge(t, e, i), i;
|
|
836
847
|
};
|
|
837
|
-
let
|
|
848
|
+
let G = class extends m {
|
|
838
849
|
constructor() {
|
|
839
850
|
super(...arguments), this.clickable = !1;
|
|
840
851
|
}
|
|
841
852
|
render() {
|
|
842
|
-
return
|
|
853
|
+
return g`
|
|
843
854
|
<div
|
|
844
855
|
tabindex="${this.clickable ? "0" : "-1"}"
|
|
845
856
|
class="${"object-list-row"}${this.clickable ? " object-list-clickable" : ""}"
|
|
@@ -850,37 +861,191 @@ let W = class extends m {
|
|
|
850
861
|
`;
|
|
851
862
|
}
|
|
852
863
|
};
|
|
853
|
-
|
|
864
|
+
G.styles = V`
|
|
854
865
|
.object-list-row {
|
|
855
866
|
display: flex;
|
|
856
867
|
flex-direction: row;
|
|
857
868
|
}
|
|
858
869
|
.object-list-clickable {
|
|
859
870
|
background-color: transparent;
|
|
860
|
-
transition: background-color ${
|
|
861
|
-
${
|
|
871
|
+
transition: background-color ${y($t.duration150)}
|
|
872
|
+
${y($t.easeIn)};
|
|
862
873
|
cursor: pointer;
|
|
863
874
|
}
|
|
864
875
|
|
|
865
876
|
.object-list-clickable:hover,
|
|
866
877
|
.object-list-clickable:focus-visible,
|
|
867
878
|
.object-list-clickable:focus {
|
|
868
|
-
background-color: ${
|
|
879
|
+
background-color: ${y(vt.gray200)};
|
|
869
880
|
}
|
|
870
881
|
|
|
871
882
|
.object-list-clickable:active {
|
|
872
|
-
background-color: ${
|
|
883
|
+
background-color: ${y(vt.gray300)};
|
|
873
884
|
}
|
|
874
885
|
|
|
875
886
|
.object-list-clickable:focus-visible {
|
|
876
|
-
outline: solid ${
|
|
877
|
-
outline-offset: ${
|
|
887
|
+
outline: solid ${y(ft.focusBorderWidth)} ${y(ft.focusColor)};
|
|
888
|
+
outline-offset: ${y(X.spacing4)};
|
|
878
889
|
}
|
|
879
890
|
`;
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
],
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
],
|
|
891
|
+
Zt([
|
|
892
|
+
_({ type: Boolean })
|
|
893
|
+
], G.prototype, "clickable", 2);
|
|
894
|
+
G = Zt([
|
|
895
|
+
R("alliance-object-list-row")
|
|
896
|
+
], G);
|
|
897
|
+
const q = "...", K = (n, t) => {
|
|
898
|
+
let e = t - n + 1;
|
|
899
|
+
return Array.from({ length: e }, (s, i) => i + n);
|
|
900
|
+
}, jt = (n, t, e, s) => {
|
|
901
|
+
const i = Math.ceil(n / t);
|
|
902
|
+
if (e + 5 >= i)
|
|
903
|
+
return K(1, i);
|
|
904
|
+
const o = Math.max(s - e, 1), c = Math.min(s + e, i), a = o > 2, l = c < i - 2, $ = 1, d = i;
|
|
905
|
+
if (!a && l) {
|
|
906
|
+
let h = 3 + 2 * e;
|
|
907
|
+
return [...K(1, h), q, i];
|
|
908
|
+
}
|
|
909
|
+
if (a && !l) {
|
|
910
|
+
let h = 3 + 2 * e, u = K(i - h + 1, i);
|
|
911
|
+
return [$, q, ...u];
|
|
912
|
+
}
|
|
913
|
+
if (a && l) {
|
|
914
|
+
let h = K(o, c);
|
|
915
|
+
return [$, q, ...h, q, d];
|
|
916
|
+
}
|
|
917
|
+
return [];
|
|
918
|
+
};
|
|
919
|
+
var me = Object.defineProperty, be = Object.getOwnPropertyDescriptor, O = (n, t, e, s) => {
|
|
920
|
+
for (var i = s > 1 ? void 0 : s ? be(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
921
|
+
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
922
|
+
return s && i && me(t, e, i), i;
|
|
923
|
+
};
|
|
924
|
+
let E = class extends m {
|
|
925
|
+
constructor() {
|
|
926
|
+
super(...arguments), this.itemCount = 0, this.pageSize = 50, this.initialPage = 1, this.siblingCount = 2, this.currentPage = this.initialPage, this.pages = [], this.changePage = (n) => {
|
|
927
|
+
if (n === this.currentPage || n < 1 || n > this.pages[this.pages.length - 1])
|
|
928
|
+
return;
|
|
929
|
+
this.currentPage = n, this.pages = jt(
|
|
930
|
+
this.itemCount,
|
|
931
|
+
this.pageSize,
|
|
932
|
+
this.siblingCount,
|
|
933
|
+
this.currentPage
|
|
934
|
+
);
|
|
935
|
+
const t = new CustomEvent("change-page", {
|
|
936
|
+
bubbles: !0,
|
|
937
|
+
composed: !0,
|
|
938
|
+
detail: this.currentPage
|
|
939
|
+
});
|
|
940
|
+
this.dispatchEvent(t);
|
|
941
|
+
}, this.next = () => {
|
|
942
|
+
this.changePage(this.currentPage + 1);
|
|
943
|
+
}, this.previous = () => {
|
|
944
|
+
this.changePage(this.currentPage - 1);
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
connectedCallback() {
|
|
948
|
+
super.connectedCallback(), this.currentPage = this.initialPage, this.pages = jt(
|
|
949
|
+
this.itemCount,
|
|
950
|
+
this.pageSize,
|
|
951
|
+
this.siblingCount,
|
|
952
|
+
this.currentPage
|
|
953
|
+
);
|
|
954
|
+
}
|
|
955
|
+
render() {
|
|
956
|
+
return g`
|
|
957
|
+
<alliance-paginator-button
|
|
958
|
+
@click=${this.previous}
|
|
959
|
+
?disabled=${this.currentPage === 1}
|
|
960
|
+
icon="left"
|
|
961
|
+
></alliance-paginator-button>
|
|
962
|
+
|
|
963
|
+
${Wt(
|
|
964
|
+
this.pages,
|
|
965
|
+
(n) => n === "..." ? g`<telia-label>...</telia-label>` : g`<alliance-paginator-button
|
|
966
|
+
page=${n}
|
|
967
|
+
@click=${() => this.changePage(n)}
|
|
968
|
+
?selected=${this.currentPage === n}
|
|
969
|
+
></alliance-paginator-button>`
|
|
970
|
+
)}
|
|
971
|
+
|
|
972
|
+
<alliance-paginator-button
|
|
973
|
+
@click=${this.next}
|
|
974
|
+
?disabled=${this.currentPage === this.pages[this.pages.length - 1]}
|
|
975
|
+
icon="right"
|
|
976
|
+
></alliance-paginator-button>
|
|
977
|
+
`;
|
|
978
|
+
}
|
|
979
|
+
};
|
|
980
|
+
E.styles = V`
|
|
981
|
+
:host {
|
|
982
|
+
display: flex;
|
|
983
|
+
flex-direction: row;
|
|
984
|
+
place-items: center;
|
|
985
|
+
gap: ${y(X.spacing8)};
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
span {
|
|
989
|
+
display: block;
|
|
990
|
+
}
|
|
991
|
+
`;
|
|
992
|
+
O([
|
|
993
|
+
_({ type: Number, attribute: "item-count" })
|
|
994
|
+
], E.prototype, "itemCount", 2);
|
|
995
|
+
O([
|
|
996
|
+
_({ type: Number, attribute: "page-size" })
|
|
997
|
+
], E.prototype, "pageSize", 2);
|
|
998
|
+
O([
|
|
999
|
+
_({ type: Number, attribute: "initial-page" })
|
|
1000
|
+
], E.prototype, "initialPage", 2);
|
|
1001
|
+
O([
|
|
1002
|
+
_({ type: Number, attribute: "sibling-count" })
|
|
1003
|
+
], E.prototype, "siblingCount", 2);
|
|
1004
|
+
O([
|
|
1005
|
+
Vt()
|
|
1006
|
+
], E.prototype, "currentPage", 2);
|
|
1007
|
+
O([
|
|
1008
|
+
Vt()
|
|
1009
|
+
], E.prototype, "pages", 2);
|
|
1010
|
+
E = O([
|
|
1011
|
+
R("alliance-paginator")
|
|
1012
|
+
], E);
|
|
1013
|
+
var Ae = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, M = (n, t, e, s) => {
|
|
1014
|
+
for (var i = s > 1 ? void 0 : s ? Ee(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
1015
|
+
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
1016
|
+
return s && i && Ae(t, e, i), i;
|
|
1017
|
+
}, Jt = /* @__PURE__ */ ((n) => (n.Left = "left", n.Right = "right", n))(Jt || {});
|
|
1018
|
+
let x = class extends m {
|
|
1019
|
+
constructor() {
|
|
1020
|
+
super(...arguments), this.selected = !1, this.disabled = !1, this.clickable = !0;
|
|
1021
|
+
}
|
|
1022
|
+
render() {
|
|
1023
|
+
return g`<telia-button
|
|
1024
|
+
?disabled=${this.disabled}
|
|
1025
|
+
variant=${this.selected ? "primary" : "tertiary-black"}
|
|
1026
|
+
>
|
|
1027
|
+
${this.icon === "left" ? g` <telia-icon svg="${Ft.svg}" /> ` : ""}
|
|
1028
|
+
${typeof this.page == "string" ? g` <span>${this.page}</span> ` : ""}
|
|
1029
|
+
${this.icon === "right" ? g` <telia-icon svg="${Qt.svg}" /> ` : ""}
|
|
1030
|
+
</telia-button> `;
|
|
1031
|
+
}
|
|
1032
|
+
};
|
|
1033
|
+
M([
|
|
1034
|
+
_({ type: Jt })
|
|
1035
|
+
], x.prototype, "icon", 2);
|
|
1036
|
+
M([
|
|
1037
|
+
_({ type: String })
|
|
1038
|
+
], x.prototype, "page", 2);
|
|
1039
|
+
M([
|
|
1040
|
+
_({ type: Boolean })
|
|
1041
|
+
], x.prototype, "selected", 2);
|
|
1042
|
+
M([
|
|
1043
|
+
_({ type: Boolean })
|
|
1044
|
+
], x.prototype, "disabled", 2);
|
|
1045
|
+
M([
|
|
1046
|
+
_({ type: Boolean })
|
|
1047
|
+
], x.prototype, "clickable", 2);
|
|
1048
|
+
x = M([
|
|
1049
|
+
R("alliance-paginator-button")
|
|
1050
|
+
], x);
|
|
886
1051
|
//# sourceMappingURL=index.js.map
|