@aquera/nile-elements 0.1.36-beta-1.0 → 0.1.36-beta-1.1
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/README.md +68 -15
- package/demo/index.css +7 -4
- package/demo/index.html +20 -36
- package/demo/variables.css +13 -0
- package/demo/variables_v2.css +13 -0
- package/dist/{fixture-948ae33c.cjs.js → fixture-d5b55278.cjs.js} +2 -2
- package/dist/{fixture-948ae33c.cjs.js.map → fixture-d5b55278.cjs.js.map} +1 -1
- package/dist/{fixture-76051ef1.esm.js → fixture-df8b52d7.esm.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/internal/animate.cjs.js +1 -1
- package/dist/internal/animate.cjs.js.map +1 -1
- package/dist/internal/animate.esm.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.test.cjs.js +1 -1
- package/dist/nile-card/nile-card.test.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.cjs.js.map +1 -1
- package/dist/nile-error-message/nile-error-message.css.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.css.cjs.js.map +1 -1
- package/dist/nile-error-message/nile-error-message.css.esm.js +6 -4
- package/dist/nile-error-message/nile-error-message.esm.js +4 -4
- package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.cjs.js +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.cjs.js.map +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.esm.js +1 -1
- package/dist/nile-filter-chip/index.cjs.js +2 -0
- package/dist/nile-filter-chip/index.esm.js +1 -0
- package/dist/nile-filter-chip/nile-filter-chip.cjs.js +2 -0
- package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -0
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +2 -0
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +1 -0
- package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +121 -0
- package/dist/nile-filter-chip/nile-filter-chip.esm.js +43 -0
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +2 -0
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js.map +1 -0
- package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +20 -0
- package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.test.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-link/nile-link.test.cjs.js +1 -1
- package/dist/nile-link/nile-link.test.esm.js +1 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.test.esm.js +1 -1
- package/dist/nile-popover/index.cjs.js +1 -1
- package/dist/nile-popover/index.esm.js +1 -1
- package/dist/nile-popover/nile-popover.cjs.js +11 -3
- package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
- package/dist/nile-popover/nile-popover.esm.js +13 -7
- package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.test.cjs.js.map +1 -1
- package/dist/nile-popover/nile-popover.test.esm.js +3 -3
- package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.test.esm.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js.map +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.css.esm.js +1 -0
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.test.esm.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +1 -1
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.esm.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-table/nile-table.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
- package/dist/nile-tooltip/index.cjs.js +1 -1
- package/dist/nile-tooltip/index.esm.js +1 -1
- package/dist/nile-tooltip/nile-tooltip-utils.cjs.js +2 -0
- package/dist/nile-tooltip/nile-tooltip-utils.cjs.js.map +1 -0
- package/dist/nile-tooltip/nile-tooltip-utils.esm.js +1 -0
- package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.esm.js +78 -45
- package/dist/nile-tooltip/nile-tooltip.esm.js +23 -28
- package/dist/nile-tooltip/nile-tooltip.test.cjs.js +2 -0
- package/dist/nile-tooltip/nile-tooltip.test.cjs.js.map +1 -0
- package/dist/nile-tooltip/nile-tooltip.test.esm.js +47 -0
- package/dist/src/index.d.ts +1 -2
- package/dist/src/index.js +1 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-error-message/nile-error-message.css.js +6 -4
- package/dist/src/nile-error-message/nile-error-message.css.js.map +1 -1
- package/dist/src/nile-error-message/nile-error-message.d.ts +4 -0
- package/dist/src/nile-error-message/nile-error-message.js +20 -0
- package/dist/src/nile-error-message/nile-error-message.js.map +1 -1
- package/dist/src/nile-error-notification/nile-error-notification.css.js +1 -1
- package/dist/src/nile-error-notification/nile-error-notification.css.js.map +1 -1
- package/dist/src/nile-filter-chip/index.d.ts +1 -0
- package/dist/src/nile-filter-chip/index.js +2 -0
- package/dist/src/{nile-file-upload → nile-filter-chip}/index.js.map +1 -1
- package/dist/src/{nile-file-preview/nile-file-preview.css.d.ts → nile-filter-chip/nile-filter-chip.css.d.ts} +1 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js +133 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.d.ts +37 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.js +145 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.js.map +1 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.test.d.ts +1 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js +80 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +1 -0
- package/dist/src/nile-progress-bar/nile-progress-bar.css.js +1 -0
- package/dist/src/nile-progress-bar/nile-progress-bar.css.js.map +1 -1
- package/dist/src/nile-select/nile-select.js +1 -1
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-table/nile-table.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip-utils.d.ts +18 -0
- package/dist/src/nile-tooltip/nile-tooltip-utils.js +216 -0
- package/dist/src/nile-tooltip/nile-tooltip-utils.js.map +1 -0
- package/dist/src/nile-tooltip/nile-tooltip.css.js +76 -43
- package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.d.ts +24 -46
- package/dist/src/nile-tooltip/nile-tooltip.js +235 -232
- package/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +1 -0
- package/dist/src/nile-tooltip/nile-tooltip.test.js +148 -0
- package/dist/src/nile-tooltip/nile-tooltip.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/plop-templates/lit/index.ts.hbs +1 -1
- package/plop-templates/lit/lit.css.ts.hbs +1 -1
- package/plop-templates/lit/lit.template.ts.hbs +3 -0
- package/{src/nile-file-preview/nile-file-preview.test.ts → plop-templates/lit/lit.test.ts.hbs} +5 -5
- package/plop-templates/lit/lit.ts.hbs +7 -3
- package/plop-templates/lit/sub-components/index.ts.hbs +4 -0
- package/plop-templates/lit/types/index.ts.hbs +0 -0
- package/plop-templates/lit/types/type.ts.hbs +3 -0
- package/plop-templates/lit/utils/lit.utils.ts.hbs +4 -0
- package/plopfile.js +32 -1
- package/src/index.ts +1 -2
- package/src/nile-error-message/nile-error-message.css.ts +6 -4
- package/src/nile-error-message/nile-error-message.ts +18 -0
- package/src/nile-error-notification/nile-error-notification.css.ts +1 -1
- package/src/nile-filter-chip/index.ts +1 -0
- package/src/nile-filter-chip/nile-filter-chip.css.ts +138 -0
- package/src/nile-filter-chip/nile-filter-chip.test.ts +92 -0
- package/src/nile-filter-chip/nile-filter-chip.ts +137 -0
- package/src/nile-progress-bar/nile-progress-bar.css.ts +1 -0
- package/src/nile-select/nile-select.ts +1 -1
- package/src/nile-table/nile-table.ts +2 -2
- package/src/nile-tooltip/nile-tooltip-utils.ts +271 -0
- package/src/nile-tooltip/nile-tooltip.css.ts +77 -44
- package/src/nile-tooltip/nile-tooltip.test.ts +168 -0
- package/src/nile-tooltip/nile-tooltip.ts +268 -230
- package/vscode-html-custom-data.json +120 -201
- package/dist/fixture-2b5b3aba.esm.js +0 -569
- package/dist/fixture-7bfb866e.cjs.js +0 -395
- package/dist/fixture-7bfb866e.cjs.js.map +0 -1
- package/dist/lit-html-39a6718c.esm.js +0 -6
- package/dist/lit-html-9b3af046.cjs.js +0 -6
- package/dist/lit-html-9b3af046.cjs.js.map +0 -1
- package/dist/nile-file-preview/index.cjs.js +0 -2
- package/dist/nile-file-preview/index.esm.js +0 -1
- package/dist/nile-file-preview/nile-file-preview.cjs.js +0 -2
- package/dist/nile-file-preview/nile-file-preview.cjs.js.map +0 -1
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js +0 -2
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +0 -1
- package/dist/nile-file-preview/nile-file-preview.css.esm.js +0 -521
- package/dist/nile-file-preview/nile-file-preview.esm.js +0 -3
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js +0 -2
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +0 -1
- package/dist/nile-file-preview/nile-file-preview.template.esm.js +0 -117
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js +0 -2
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +0 -1
- package/dist/nile-file-preview/nile-file-preview.test.esm.js +0 -1
- package/dist/nile-file-preview/types/file-preview.enums.cjs.js +0 -2
- package/dist/nile-file-preview/types/file-preview.enums.cjs.js.map +0 -1
- package/dist/nile-file-preview/types/file-preview.enums.esm.js +0 -1
- package/dist/nile-file-preview/types/file-preview.interface.cjs.js +0 -2
- package/dist/nile-file-preview/types/file-preview.interface.cjs.js.map +0 -1
- package/dist/nile-file-preview/types/file-preview.interface.esm.js +0 -1
- package/dist/nile-file-preview/types/index.cjs.js +0 -2
- package/dist/nile-file-preview/types/index.cjs.js.map +0 -1
- package/dist/nile-file-preview/types/index.esm.js +0 -1
- package/dist/nile-file-preview/utils/file-preview.util.cjs.js +0 -2
- package/dist/nile-file-preview/utils/file-preview.util.cjs.js.map +0 -1
- package/dist/nile-file-preview/utils/file-preview.util.esm.js +0 -1
- package/dist/nile-file-preview/utils/index.cjs.js +0 -2
- package/dist/nile-file-preview/utils/index.cjs.js.map +0 -1
- package/dist/nile-file-preview/utils/index.esm.js +0 -1
- package/dist/nile-file-upload/index.cjs.js +0 -2
- package/dist/nile-file-upload/index.cjs.js.map +0 -1
- package/dist/nile-file-upload/index.esm.js +0 -1
- package/dist/nile-file-upload/nile-file-upload.cjs.js +0 -2
- package/dist/nile-file-upload/nile-file-upload.cjs.js.map +0 -1
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js +0 -2
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +0 -1
- package/dist/nile-file-upload/nile-file-upload.css.esm.js +0 -535
- package/dist/nile-file-upload/nile-file-upload.esm.js +0 -3
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js +0 -10
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +0 -1
- package/dist/nile-file-upload/nile-file-upload.template.esm.js +0 -155
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js +0 -2
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +0 -1
- package/dist/nile-file-upload/nile-file-upload.test.esm.js +0 -1
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js +0 -2
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +0 -1
- package/dist/nile-file-upload/types/file-upload.enums.esm.js +0 -1
- package/dist/nile-file-upload/types/file-upload.type.cjs.js +0 -2
- package/dist/nile-file-upload/types/file-upload.type.cjs.js.map +0 -1
- package/dist/nile-file-upload/types/file-upload.type.esm.js +0 -1
- package/dist/nile-file-upload/types/index.cjs.js +0 -2
- package/dist/nile-file-upload/types/index.cjs.js.map +0 -1
- package/dist/nile-file-upload/types/index.esm.js +0 -1
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +0 -2
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +0 -1
- package/dist/nile-file-upload/utils/drag-drop.util.esm.js +0 -1
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js +0 -2
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +0 -1
- package/dist/nile-file-upload/utils/file-validation.util.esm.js +0 -1
- package/dist/src/nile-file-preview/index.d.ts +0 -1
- package/dist/src/nile-file-preview/index.js +0 -2
- package/dist/src/nile-file-preview/index.js.map +0 -1
- package/dist/src/nile-file-preview/nile-file-preview.css.js +0 -533
- package/dist/src/nile-file-preview/nile-file-preview.css.js.map +0 -1
- package/dist/src/nile-file-preview/nile-file-preview.d.ts +0 -48
- package/dist/src/nile-file-preview/nile-file-preview.js +0 -149
- package/dist/src/nile-file-preview/nile-file-preview.js.map +0 -1
- package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +0 -11
- package/dist/src/nile-file-preview/nile-file-preview.template.js +0 -144
- package/dist/src/nile-file-preview/nile-file-preview.template.js.map +0 -1
- package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +0 -7
- package/dist/src/nile-file-preview/nile-file-preview.test.js +0 -30
- package/dist/src/nile-file-preview/nile-file-preview.test.js.map +0 -1
- package/dist/src/nile-file-preview/types/file-preview.enums.d.ts +0 -23
- package/dist/src/nile-file-preview/types/file-preview.enums.js +0 -28
- package/dist/src/nile-file-preview/types/file-preview.enums.js.map +0 -1
- package/dist/src/nile-file-preview/types/file-preview.interface.d.ts +0 -4
- package/dist/src/nile-file-preview/types/file-preview.interface.js +0 -2
- package/dist/src/nile-file-preview/types/file-preview.interface.js.map +0 -1
- package/dist/src/nile-file-preview/types/index.d.ts +0 -2
- package/dist/src/nile-file-preview/types/index.js +0 -3
- package/dist/src/nile-file-preview/types/index.js.map +0 -1
- package/dist/src/nile-file-preview/utils/file-preview.util.d.ts +0 -3
- package/dist/src/nile-file-preview/utils/file-preview.util.js +0 -29
- package/dist/src/nile-file-preview/utils/file-preview.util.js.map +0 -1
- package/dist/src/nile-file-preview/utils/index.d.ts +0 -1
- package/dist/src/nile-file-preview/utils/index.js +0 -2
- package/dist/src/nile-file-preview/utils/index.js.map +0 -1
- package/dist/src/nile-file-upload/index.d.ts +0 -1
- package/dist/src/nile-file-upload/index.js +0 -2
- package/dist/src/nile-file-upload/nile-file-upload.css.d.ts +0 -12
- package/dist/src/nile-file-upload/nile-file-upload.css.js +0 -547
- package/dist/src/nile-file-upload/nile-file-upload.css.js.map +0 -1
- package/dist/src/nile-file-upload/nile-file-upload.d.ts +0 -45
- package/dist/src/nile-file-upload/nile-file-upload.js +0 -148
- package/dist/src/nile-file-upload/nile-file-upload.js.map +0 -1
- package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +0 -11
- package/dist/src/nile-file-upload/nile-file-upload.template.js +0 -163
- package/dist/src/nile-file-upload/nile-file-upload.template.js.map +0 -1
- package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +0 -7
- package/dist/src/nile-file-upload/nile-file-upload.test.js +0 -30
- package/dist/src/nile-file-upload/nile-file-upload.test.js.map +0 -1
- package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +0 -28
- package/dist/src/nile-file-upload/types/file-upload.enums.js +0 -35
- package/dist/src/nile-file-upload/types/file-upload.enums.js.map +0 -1
- package/dist/src/nile-file-upload/types/file-upload.type.d.ts +0 -4
- package/dist/src/nile-file-upload/types/file-upload.type.js +0 -2
- package/dist/src/nile-file-upload/types/file-upload.type.js.map +0 -1
- package/dist/src/nile-file-upload/types/index.d.ts +0 -2
- package/dist/src/nile-file-upload/types/index.js +0 -3
- package/dist/src/nile-file-upload/types/index.js.map +0 -1
- package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +0 -19
- package/dist/src/nile-file-upload/utils/drag-drop.util.js +0 -77
- package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +0 -1
- package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +0 -9
- package/dist/src/nile-file-upload/utils/file-validation.util.js +0 -58
- package/dist/src/nile-file-upload/utils/file-validation.util.js.map +0 -1
- package/src/nile-file-preview/index.ts +0 -1
- package/src/nile-file-preview/nile-file-preview.css.ts +0 -535
- package/src/nile-file-preview/nile-file-preview.template.ts +0 -174
- package/src/nile-file-preview/nile-file-preview.ts +0 -146
- package/src/nile-file-preview/types/file-preview.enums.ts +0 -26
- package/src/nile-file-preview/types/file-preview.interface.ts +0 -4
- package/src/nile-file-preview/types/index.ts +0 -2
- package/src/nile-file-preview/utils/file-preview.util.ts +0 -34
- package/src/nile-file-preview/utils/index.ts +0 -1
- package/src/nile-file-upload/index.ts +0 -1
- package/src/nile-file-upload/nile-file-upload.css.ts +0 -549
- package/src/nile-file-upload/nile-file-upload.template.ts +0 -194
- package/src/nile-file-upload/nile-file-upload.test.ts +0 -38
- package/src/nile-file-upload/nile-file-upload.ts +0 -138
- package/src/nile-file-upload/types/file-upload.enums.ts +0 -32
- package/src/nile-file-upload/types/file-upload.type.ts +0 -5
- package/src/nile-file-upload/types/index.ts +0 -2
- package/src/nile-file-upload/utils/drag-drop.util.ts +0 -95
- package/src/nile-file-upload/utils/file-validation.util.ts +0 -80
- /package/dist/{nile-file-preview → nile-filter-chip}/index.cjs.js.map +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-948ae33c.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-link.cjs.js","tslib","lit/decorators.js","./nile-link.css.cjs.js","../slot.cjs.js","lit/directives/if-defined.js","lit/directives/class-map.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var i,t,n,e,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture002CjsJs){i=_fixture002CjsJs.f;t=_fixture002CjsJs.a;n=_fixture002CjsJs.o;e=_fixture002CjsJs.b;},function(_litStaticHtmlJs){},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){l=_lit.html;},function(_litDirectivesUnsafeHtmlJs){},function(_nileLinkCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileLinkCssCjsJs){},function(_slotCjsJs){},function(_litDirectivesIfDefinedJs){},function(_litDirectivesClassMapJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileLink",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var n;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(l(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:n=_context2.sent;t(n.shadowRoot).to.exist,t(n.shadowRoot.querySelector(".link")).to.exist;case 4:case"end":return _context2.stop();}},_callee);}))),it("should handle the disabled attribute",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var n,e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(l(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-link disabled></nile-link>"]))));case 2:n=_context3.sent;e=n.shadowRoot.querySelector(".link");t(n.disabled).to.be["true"],t(e.getAttribute("aria-disabled")).to.equal("true"),t(e.getAttribute("tabindex")).to.equal("-1");case 5:case"end":return _context3.stop();}},_callee2);}))),it("should emit custom events on focus and blur",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var e,s,a;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return i(l(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:e=_context4.sent;setTimeout(function(){return e.shadowRoot.querySelector(".link").focus();});_context4.next=6;return n(e,"nile-focus");case 6:s=_context4.sent;t(s).to.exist,setTimeout(function(){return e.shadowRoot.querySelector(".link").blur();});_context4.next=10;return n(e,"nile-blur");case 10:a=_context4.sent;t(a).to.exist;case 12:case"end":return _context4.stop();}},_callee3);}))),it("should prevent click events when disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var n,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(l(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-link disabled></nile-link>"]))));case 2:n=_context5.sent;s=!1;n.addEventListener("click",function(){s=!0;});n.shadowRoot.querySelector(".link").click();_context5.next=8;return e(100);case 8:t(s).to.be["false"];case 9:case"end":return _context5.stop();}},_callee4);}))),it("should handle button property correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var n;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(l(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-link button></nile-link>"]))));case 2:n=_context6.sent.shadowRoot.querySelector(".link");t(n.classList.contains("link__button")).to.be["true"];case 4:case"end":return _context6.stop();}},_callee5);}))),it("should have all slots rendered successfully",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var n,e,s,a;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(l(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-link><span slot=\"prefix\">Prefix</span><span>Label</span><span slot=\"suffix\">Suffix</span></nile-link>"]))));case 2:n=_context7.sent;e=n.shadowRoot.querySelector('slot[name="prefix"]');s=n.shadowRoot.querySelector("slot:not([name])");a=n.shadowRoot.querySelector('slot[name="suffix"]');t(e.assignedNodes().length).to.equal(1),t(s.assignedNodes().length).to.equal(1),t(a.assignedNodes().length).to.equal(1);case 7:case"end":return _context7.stop();}},_callee6);}))),it("should emit nile-init and nile-destroy events on connected and disconnected",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var i,n,e;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:i=document.createElement("nile-link");i.addEventListener("nile-init",function(i){return n=i;});i.addEventListener("nile-init",function(i){return e=i;});document.body.appendChild(i);_context8.next=6;return i.updateComplete;case 6:t(n).to.exist;document.body.removeChild(i);_context8.next=10;return i.updateComplete;case 10:t(e).to.exist;case 11:case"end":return _context8.stop();}},_callee7);}))),it("should reflect properties correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var n;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(l(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:n=_context9.sent;n.disabled=!0;_context9.next=6;return n.updateComplete;case 6:t(n.hasAttribute("disabled")).to.be["true"];n.disabled=!1;_context9.next=10;return n.updateComplete;case 10:t(n.hasAttribute("disabled")).to.be["false"];case 11:case"end":return _context9.stop();}},_callee8);})));});}};});
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-d5b55278.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-link.cjs.js","tslib","lit/decorators.js","./nile-link.css.cjs.js","../slot.cjs.js","lit/directives/if-defined.js","lit/directives/class-map.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var i,t,n,e,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture001CjsJs){i=_fixture001CjsJs.f;t=_fixture001CjsJs.a;n=_fixture001CjsJs.o;e=_fixture001CjsJs.b;},function(_litStaticHtmlJs){},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){l=_lit.html;},function(_litDirectivesUnsafeHtmlJs){},function(_nileLinkCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileLinkCssCjsJs){},function(_slotCjsJs){},function(_litDirectivesIfDefinedJs){},function(_litDirectivesClassMapJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileLink",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var n;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(l(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:n=_context2.sent;t(n.shadowRoot).to.exist,t(n.shadowRoot.querySelector(".link")).to.exist;case 4:case"end":return _context2.stop();}},_callee);}))),it("should handle the disabled attribute",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var n,e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(l(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-link disabled></nile-link>"]))));case 2:n=_context3.sent;e=n.shadowRoot.querySelector(".link");t(n.disabled).to.be["true"],t(e.getAttribute("aria-disabled")).to.equal("true"),t(e.getAttribute("tabindex")).to.equal("-1");case 5:case"end":return _context3.stop();}},_callee2);}))),it("should emit custom events on focus and blur",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var e,s,a;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return i(l(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:e=_context4.sent;setTimeout(function(){return e.shadowRoot.querySelector(".link").focus();});_context4.next=6;return n(e,"nile-focus");case 6:s=_context4.sent;t(s).to.exist,setTimeout(function(){return e.shadowRoot.querySelector(".link").blur();});_context4.next=10;return n(e,"nile-blur");case 10:a=_context4.sent;t(a).to.exist;case 12:case"end":return _context4.stop();}},_callee3);}))),it("should prevent click events when disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var n,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(l(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-link disabled></nile-link>"]))));case 2:n=_context5.sent;s=!1;n.addEventListener("click",function(){s=!0;});n.shadowRoot.querySelector(".link").click();_context5.next=8;return e(100);case 8:t(s).to.be["false"];case 9:case"end":return _context5.stop();}},_callee4);}))),it("should handle button property correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var n;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(l(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-link button></nile-link>"]))));case 2:n=_context6.sent.shadowRoot.querySelector(".link");t(n.classList.contains("link__button")).to.be["true"];case 4:case"end":return _context6.stop();}},_callee5);}))),it("should have all slots rendered successfully",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var n,e,s,a;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(l(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-link><span slot=\"prefix\">Prefix</span><span>Label</span><span slot=\"suffix\">Suffix</span></nile-link>"]))));case 2:n=_context7.sent;e=n.shadowRoot.querySelector('slot[name="prefix"]');s=n.shadowRoot.querySelector("slot:not([name])");a=n.shadowRoot.querySelector('slot[name="suffix"]');t(e.assignedNodes().length).to.equal(1),t(s.assignedNodes().length).to.equal(1),t(a.assignedNodes().length).to.equal(1);case 7:case"end":return _context7.stop();}},_callee6);}))),it("should emit nile-init and nile-destroy events on connected and disconnected",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var i,n,e;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:i=document.createElement("nile-link");i.addEventListener("nile-init",function(i){return n=i;});i.addEventListener("nile-init",function(i){return e=i;});document.body.appendChild(i);_context8.next=6;return i.updateComplete;case 6:t(n).to.exist;document.body.removeChild(i);_context8.next=10;return i.updateComplete;case 10:t(e).to.exist;case 11:case"end":return _context8.stop();}},_callee7);}))),it("should reflect properties correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var n;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(l(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:n=_context9.sent;n.disabled=!0;_context9.next=6;return n.updateComplete;case 6:t(n.hasAttribute("disabled")).to.be["true"];n.disabled=!1;_context9.next=10;return n.updateComplete;case 10:t(n.hasAttribute("disabled")).to.be["false"];case 11:case"end":return _context9.stop();}},_callee8);})));});}};});
|
2
2
|
//# sourceMappingURL=nile-link.test.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
import{f as i,a as t,o as e,b as n}from"../fixture-
|
1
|
+
import{f as i,a as t,o as e,b as n}from"../fixture-df8b52d7.esm.js";import"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import{html as l}from"lit";import"lit/directives/unsafe-html.js";import"./nile-link.esm.js";import"tslib";import"lit/decorators.js";import"./nile-link.css.esm.js";import"../slot.esm.js";import"lit/directives/if-defined.js";import"lit/directives/class-map.js";import"../internal/nile-element.esm.js";describe("NileLink",(()=>{it("should render correctly",(async()=>{const e=await i(l`<nile-link></nile-link>`);t(e.shadowRoot).to.exist,t(e.shadowRoot.querySelector(".link")).to.exist})),it("should handle the disabled attribute",(async()=>{const e=await i(l`<nile-link disabled></nile-link>`),n=e.shadowRoot.querySelector(".link");t(e.disabled).to.be.true,t(n.getAttribute("aria-disabled")).to.equal("true"),t(n.getAttribute("tabindex")).to.equal("-1")})),it("should emit custom events on focus and blur",(async()=>{const n=await i(l`<nile-link></nile-link>`);setTimeout((()=>n.shadowRoot.querySelector(".link").focus()));const s=await e(n,"nile-focus");t(s).to.exist,setTimeout((()=>n.shadowRoot.querySelector(".link").blur()));const a=await e(n,"nile-blur");t(a).to.exist})),it("should prevent click events when disabled",(async()=>{const e=await i(l`<nile-link disabled></nile-link>`);let s=!1;e.addEventListener("click",(()=>{s=!0})),e.shadowRoot.querySelector(".link").click(),await n(100),t(s).to.be.false})),it("should handle button property correctly",(async()=>{const e=(await i(l`<nile-link button></nile-link>`)).shadowRoot.querySelector(".link");t(e.classList.contains("link__button")).to.be.true})),it("should have all slots rendered successfully",(async()=>{const e=await i(l`<nile-link><span slot="prefix">Prefix</span><span>Label</span><span slot="suffix">Suffix</span></nile-link>`),n=e.shadowRoot.querySelector('slot[name="prefix"]'),s=e.shadowRoot.querySelector("slot:not([name])"),a=e.shadowRoot.querySelector('slot[name="suffix"]');t(n.assignedNodes().length).to.equal(1),t(s.assignedNodes().length).to.equal(1),t(a.assignedNodes().length).to.equal(1)})),it("should emit nile-init and nile-destroy events on connected and disconnected",(async()=>{const i=document.createElement("nile-link");let e,n;i.addEventListener("nile-init",(i=>e=i)),i.addEventListener("nile-init",(i=>n=i)),document.body.appendChild(i),await i.updateComplete,t(e).to.exist,document.body.removeChild(i),await i.updateComplete,t(n).to.exist})),it("should reflect properties correctly",(async()=>{const e=await i(l`<nile-link></nile-link>`);e.disabled=!0,await e.updateComplete,t(e.hasAttribute("disabled")).to.be.true,e.disabled=!1,await e.updateComplete,t(e.hasAttribute("disabled")).to.be.false}))}));
|
@@ -1,2 +1,2 @@
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-948ae33c.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-loader.cjs.js","tslib","lit/decorators.js","./nile-loader.css.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var i,a,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture002CjsJs){i=_fixture002CjsJs.f;a=_fixture002CjsJs.a;},function(_litStaticHtmlJs){},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){e=_lit.html;},function(_litDirectivesUnsafeHtmlJs){},function(_nileLoaderCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileLoaderCssCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){describe("NileLoader",function(){it('should default to size "lg" if no size is provided',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(e(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context2.sent;a(l.size).to.equal("lg");case 4:case"end":return _context2.stop();}},_callee);}))),it("should apply size classes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return["sm","md","lg"].forEach(/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(l){var r;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-loader size=\"","\"></nile-loader>"])),l));case 2:r=_context3.sent.shadowRoot.querySelector(".loader__container");a(r.classList.contains("loader__container--".concat(l))).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}));return function(_x){return _ref3.apply(this,arguments);};}());case 2:case"end":return _context4.stop();}},_callee3);}))),it('should have a default variant of "v1"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var l;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context5.sent.shadowRoot.querySelector(".nile-loader__v1");a(l).to.exist;case 4:case"end":return _context5.stop();}},_callee4);}))),it("should render the correct variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var l;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-loader variant=\"v2\"></nile-loader>"]))));case 2:l=_context6.sent.shadowRoot.querySelector(".nile-loader__v2");a(l).to.exist;case 4:case"end":return _context6.stop();}},_callee5);}))),it("should display label if provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var l;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-loader label=\"Loading...\"></nile-loader>"]))));case 2:l=_context7.sent.shadowRoot.querySelector(".loader__label");a(l).to.exist,a(l===null||l===void 0?void 0:l.textContent).to.equal("Loading...");case 4:case"end":return _context7.stop();}},_callee6);}))),it("should handle margin property",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var l;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return i(e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-loader margin=\"10px\"></nile-loader>"]))));case 2:l=_context8.sent.shadowRoot.querySelector(".nile-loader__v1");a(l===null||l===void 0?void 0:l.getAttribute("style")).to.contain("margin: 10px");case 4:case"end":return _context8.stop();}},_callee7);}))),it("should render the v3 variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var l;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-loader variant=\"v3\"></nile-loader>"]))));case 2:l=_context9.sent.shadowRoot.querySelector(".nile-loader__v3");a(l).to.exist;case 4:case"end":return _context9.stop();}},_callee8);})));});}};});
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-d5b55278.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-loader.cjs.js","tslib","lit/decorators.js","./nile-loader.css.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var i,a,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture001CjsJs){i=_fixture001CjsJs.f;a=_fixture001CjsJs.a;},function(_litStaticHtmlJs){},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){e=_lit.html;},function(_litDirectivesUnsafeHtmlJs){},function(_nileLoaderCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileLoaderCssCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){describe("NileLoader",function(){it('should default to size "lg" if no size is provided',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(e(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context2.sent;a(l.size).to.equal("lg");case 4:case"end":return _context2.stop();}},_callee);}))),it("should apply size classes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return["sm","md","lg"].forEach(/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(l){var r;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-loader size=\"","\"></nile-loader>"])),l));case 2:r=_context3.sent.shadowRoot.querySelector(".loader__container");a(r.classList.contains("loader__container--".concat(l))).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}));return function(_x){return _ref3.apply(this,arguments);};}());case 2:case"end":return _context4.stop();}},_callee3);}))),it('should have a default variant of "v1"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var l;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context5.sent.shadowRoot.querySelector(".nile-loader__v1");a(l).to.exist;case 4:case"end":return _context5.stop();}},_callee4);}))),it("should render the correct variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var l;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-loader variant=\"v2\"></nile-loader>"]))));case 2:l=_context6.sent.shadowRoot.querySelector(".nile-loader__v2");a(l).to.exist;case 4:case"end":return _context6.stop();}},_callee5);}))),it("should display label if provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var l;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-loader label=\"Loading...\"></nile-loader>"]))));case 2:l=_context7.sent.shadowRoot.querySelector(".loader__label");a(l).to.exist,a(l===null||l===void 0?void 0:l.textContent).to.equal("Loading...");case 4:case"end":return _context7.stop();}},_callee6);}))),it("should handle margin property",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var l;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return i(e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-loader margin=\"10px\"></nile-loader>"]))));case 2:l=_context8.sent.shadowRoot.querySelector(".nile-loader__v1");a(l===null||l===void 0?void 0:l.getAttribute("style")).to.contain("margin: 10px");case 4:case"end":return _context8.stop();}},_callee7);}))),it("should render the v3 variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var l;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-loader variant=\"v3\"></nile-loader>"]))));case 2:l=_context9.sent.shadowRoot.querySelector(".nile-loader__v3");a(l).to.exist;case 4:case"end":return _context9.stop();}},_callee8);})));});}};});
|
2
2
|
//# sourceMappingURL=nile-loader.test.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
import{f as e,a as i}from"../fixture-
|
1
|
+
import{f as e,a as i}from"../fixture-df8b52d7.esm.js";import"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import{html as a}from"lit";import"lit/directives/unsafe-html.js";import"./nile-loader.esm.js";import"tslib";import"lit/decorators.js";import"./nile-loader.css.esm.js";import"lit/directives/class-map.js";describe("NileLoader",(()=>{it('should default to size "lg" if no size is provided',(async()=>{const l=await e(a`<nile-loader></nile-loader>`);i(l.size).to.equal("lg")})),it("should apply size classes correctly",(async()=>{await["sm","md","lg"].forEach((async l=>{const r=(await e(a`<nile-loader size="${l}"></nile-loader>`)).shadowRoot.querySelector(".loader__container");i(r.classList.contains(`loader__container--${l}`)).to.be.true}))})),it('should have a default variant of "v1"',(async()=>{const l=(await e(a`<nile-loader></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v1");i(l).to.exist})),it("should render the correct variant",(async()=>{const l=(await e(a`<nile-loader variant="v2"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v2");i(l).to.exist})),it("should display label if provided",(async()=>{const l=(await e(a`<nile-loader label="Loading..."></nile-loader>`)).shadowRoot.querySelector(".loader__label");i(l).to.exist,i(l?.textContent).to.equal("Loading...")})),it("should handle margin property",(async()=>{const l=(await e(a`<nile-loader margin="10px"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v1");i(l?.getAttribute("style")).to.contain("margin: 10px")})),it("should render the v3 variant",(async()=>{const l=(await e(a`<nile-loader variant="v3"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v3");i(l).to.exist}))}));
|
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["./nile-popover.cjs.js","tslib","
|
1
|
+
System.register(["./nile-popover.cjs.js","tslib","lit/decorators.js","./nile-popover.css.cjs.js","lit","../internal/nile-element.cjs.js","../internal/watch.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nilePopoverCjsJs){_export("NilePopover",_nilePopoverCjsJs.N);},function(_tslib){},function(_litDecoratorsJs){},function(_nilePopoverCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_internalWatchCjsJs){}],execute:function execute(){}};});
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
export{N as NilePopover}from"./nile-popover.esm.js";import"tslib";import"
|
1
|
+
export{N as NilePopover}from"./nile-popover.esm.js";import"tslib";import"lit/decorators.js";import"./nile-popover.css.esm.js";import"lit";import"../internal/nile-element.esm.js";import"../internal/watch.esm.js";
|
@@ -1,10 +1,18 @@
|
|
1
|
-
System.register(["tslib","../lit-html-9b3af046.cjs.js","lit/decorators.js","./nile-popover.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js","lit"],function(_export,_context){"use strict";var t,s,i,e,o,h,r,n,l,a,_Symbol$metadata,_$$litPropertyMetadat,_$$reactiveElementVer,_globalThis$litElemen,_globalThis$litElemen2,_templateObject,_templateObject2,_templateObject3,c,p,d,u,f,m,v,y,b,S,w,g,C,$,k,P,_,E,j,M,O,U,A,N,B;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function F(){};return{s:F,n:function(_n){function n(){return _n.apply(this,arguments);}n.toString=function(){return _n.toString();};return n;}(function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]};}),e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_litHtml001CjsJs){s=_litHtml001CjsJs.B;i=_litHtml001CjsJs.T;e=_litHtml001CjsJs.x;},function(_litDecoratorsJs){o=_litDecoratorsJs.property;h=_litDecoratorsJs.state;r=_litDecoratorsJs.customElement;},function(_nilePopoverCssCjsJs){n=_nilePopoverCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_internalWatchCjsJs){a=_internalWatchCjsJs.w;},function(_lit){}],execute:function execute(){/**
|
1
|
+
System.register(["tslib","lit/decorators.js","./nile-popover.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js","lit"],function(_export,_context){"use strict";var t,s,i,e,o,h,n,_Symbol$metadata,_b$litPropertyMetadat,_b$reactiveElementVer,_x$litHtmlVersions,_globalThis$litElemen,_globalThis$litElemen2,_templateObject,_templateObject2,_templateObject3,r,l,c,a,d,u,p,f,v,y,m,g,b,w,$,S,_,C,A,k,E,x,P,j,M,U,N,T,O,R,z,B,I,H,L,D,W,J,Z,q,K,F,G,Q,V,Y,tt,it,et,ot,ht,nt,rt,lt,ct,at,dt,ut;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function F(){};return{s:F,n:function(_n3){function n(){return _n3.apply(this,arguments);}n.toString=function(){return _n3.toString();};return n;}(function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]};}),e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function X(t,s){if(!B(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==j?j.createHTML(s):s;}function st(t,s){var _i$_$Co,_o3,_o4,_o4$_$AO,_i$_$Co2;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:t;var e=arguments.length>3?arguments[3]:undefined;if(s===F)return s;var o=void 0!==e?(_i$_$Co=i._$Co)===null||_i$_$Co===void 0?void 0:_i$_$Co[e]:i._$Cl;var h=z(s)?void 0:s._$litDirective$;return((_o3=o)===null||_o3===void 0?void 0:_o3.constructor)!==h&&((_o4=o)!==null&&_o4!==void 0&&(_o4$_$AO=_o4._$AO)!==null&&_o4$_$AO!==void 0&&_o4$_$AO.call(_o4,!1),void 0===h?o=void 0:(o=new h(t),o._$AT(t,i,e)),void 0!==e?((_i$_$Co2=i._$Co)!==null&&_i$_$Co2!==void 0?_i$_$Co2:i._$Co=[])[e]=o:i._$Cl=o),void 0!==o&&(s=st(t,o._$AS(t,s.values),o,e)),s;}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;i=_litDecoratorsJs.state;e=_litDecoratorsJs.customElement;},function(_nilePopoverCssCjsJs){o=_nilePopoverCssCjsJs.s;},function(_internalNileElementCjsJs){h=_internalNileElementCjsJs.N;},function(_internalWatchCjsJs){n=_internalWatchCjsJs.w;},function(_lit){}],execute:function execute(){/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
-
*/c=globalThis,p=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),u=new WeakMap();f=/*#__PURE__*/function(){function f(t,s,i){_classCallCheck(this,f);if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s;}return _createClass(f,[{key:"styleSheet",get:function get(){var t=this.o;var s=this.t;if(p&&void 0===t){var _i=void 0!==s&&1===s.length;_i&&(t=u.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet()).replaceSync(this.cssText),_i&&u.set(s,t));}return t;}},{key:"toString",value:function toString(){return this.cssText;}}]);}();m=function m(t,s){if(p)t.adoptedStyleSheets=s.map(function(t){return t instanceof CSSStyleSheet?t:t.styleSheet;});else{var _iterator=_createForOfIteratorHelper(s),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _i2=_step.value;var _s=document.createElement("style"),_e=c.litNonce;void 0!==_e&&_s.setAttribute("nonce",_e),_s.textContent=_i2.cssText,t.appendChild(_s);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}},v=p?function(t){return t;}:function(t){return t instanceof CSSStyleSheet?function(t){var s="";var _iterator2=_createForOfIteratorHelper(t.cssRules),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _i3=_step2.value;s+=_i3.cssText;}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}return function(t){return new f("string"==typeof t?t:t+"",void 0,d);}(s);}(t):t;},y=Object.is,b=Object.defineProperty,S=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,C=Object.getPrototypeOf,$=globalThis,k=$.trustedTypes,P=k?k.emptyScript:"",_=$.reactiveElementPolyfillSupport,E=function E(t,s){return t;},j={toAttribute:function toAttribute(t,s){switch(s){case Boolean:t=t?P:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t;},fromAttribute:function fromAttribute(t,s){var i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i;}},M=function M(t,s){return!y(t,s);},O={attribute:!0,type:String,converter:j,reflect:!1,hasChanged:M};(_Symbol$metadata=Symbol.metadata)!==null&&_Symbol$metadata!==void 0?_Symbol$metadata:Symbol.metadata=Symbol("metadata"),(_$$litPropertyMetadat=$.litPropertyMetadata)!==null&&_$$litPropertyMetadat!==void 0?_$$litPropertyMetadat:$.litPropertyMetadata=new WeakMap();U=/*#__PURE__*/function(_HTMLElement){function U(){var _this;_classCallCheck(this,U);_this=_callSuper(this,U),_this._$Ep=void 0,_this.isUpdatePending=!1,_this.hasUpdated=!1,_this._$Em=null,_this._$Ev();return _this;}_inherits(U,_HTMLElement);return _createClass(U,[{key:"_$Ev",value:function _$Ev(){var _this2=this,_this$constructor$l;this._$ES=new Promise(function(t){return _this2.enableUpdating=t;}),this._$AL=new Map(),this._$E_(),this.requestUpdate(),(_this$constructor$l=this.constructor.l)===null||_this$constructor$l===void 0?void 0:_this$constructor$l.forEach(function(t){return t(_this2);});}},{key:"addController",value:function addController(t){var _this$_$EO,_t$hostConnected;((_this$_$EO=this._$EO)!==null&&_this$_$EO!==void 0?_this$_$EO:this._$EO=new Set()).add(t),void 0!==this.renderRoot&&this.isConnected&&((_t$hostConnected=t.hostConnected)===null||_t$hostConnected===void 0?void 0:_t$hostConnected.call(t));}},{key:"removeController",value:function removeController(t){var _this$_$EO2;(_this$_$EO2=this._$EO)===null||_this$_$EO2===void 0||_this$_$EO2["delete"](t);}},{key:"_$E_",value:function _$E_(){var t=new Map(),s=this.constructor.elementProperties;var _iterator3=_createForOfIteratorHelper(s.keys()),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _i4=_step3.value;this.hasOwnProperty(_i4)&&(t.set(_i4,this[_i4]),delete this[_i4]);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}t.size>0&&(this._$Ep=t);}},{key:"createRenderRoot",value:function createRenderRoot(){var _this$shadowRoot;var t=(_this$shadowRoot=this.shadowRoot)!==null&&_this$shadowRoot!==void 0?_this$shadowRoot:this.attachShadow(this.constructor.shadowRootOptions);return m(t,this.constructor.elementStyles),t;}},{key:"connectedCallback",value:function connectedCallback(){var _this$renderRoot,_this$_$EO3;(_this$renderRoot=this.renderRoot)!==null&&_this$renderRoot!==void 0?_this$renderRoot:this.renderRoot=this.createRenderRoot(),this.enableUpdating(!0),(_this$_$EO3=this._$EO)===null||_this$_$EO3===void 0?void 0:_this$_$EO3.forEach(function(t){var _t$hostConnected2;return(_t$hostConnected2=t.hostConnected)===null||_t$hostConnected2===void 0?void 0:_t$hostConnected2.call(t);});}},{key:"enableUpdating",value:function enableUpdating(t){}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_$EO4;(_this$_$EO4=this._$EO)===null||_this$_$EO4===void 0||_this$_$EO4.forEach(function(t){var _t$hostDisconnected;return(_t$hostDisconnected=t.hostDisconnected)===null||_t$hostDisconnected===void 0?void 0:_t$hostDisconnected.call(t);});}},{key:"attributeChangedCallback",value:function attributeChangedCallback(t,s,i){this._$AK(t,i);}},{key:"_$EC",value:function _$EC(t,s){var i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){var _i$converter;var _o=(void 0!==((_i$converter=i.converter)===null||_i$converter===void 0?void 0:_i$converter.toAttribute)?i.converter:j).toAttribute(s,i.type);this._$Em=t,null==_o?this.removeAttribute(e):this.setAttribute(e,_o),this._$Em=null;}}},{key:"_$AK",value:function _$AK(t,s){var i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){var _t$converter;var _t=i.getPropertyOptions(e),_o2="function"==typeof _t.converter?{fromAttribute:_t.converter}:void 0!==((_t$converter=_t.converter)===null||_t$converter===void 0?void 0:_t$converter.fromAttribute)?_t.converter:j;this._$Em=e,this[e]=_o2.fromAttribute(s,_t.type),this._$Em=null;}}},{key:"requestUpdate",value:function requestUpdate(t,s,i){if(void 0!==t){var _i$hasChanged;if(i!==null&&i!==void 0?i:i=this.constructor.getPropertyOptions(t),!((_i$hasChanged=i.hasChanged)!==null&&_i$hasChanged!==void 0?_i$hasChanged:M)(this[t],s))return;this.P(t,s,i);}!1===this.isUpdatePending&&(this._$ES=this._$ET());}},{key:"P",value:function P(t,s,i){var _this$_$Ej;this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&((_this$_$Ej=this._$Ej)!==null&&_this$_$Ej!==void 0?_this$_$Ej:this._$Ej=new Set()).add(t);}},{key:"_$ET",value:function(){var _$ET2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var t;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:this.isUpdatePending=!0;_context.prev=1;_context.next=4;return this._$ES;case 4:_context.next=9;break;case 6:_context.prev=6;_context.t0=_context["catch"](1);Promise.reject(_context.t0);case 9:t=this.scheduleUpdate();_context.t1=null!=t;if(!_context.t1){_context.next=14;break;}_context.next=14;return t;case 14:return _context.abrupt("return",!this.isUpdatePending);case 15:case"end":return _context.stop();}},_callee,this,[[1,6]]);}));function _$ET(){return _$ET2.apply(this,arguments);}return _$ET;}()},{key:"scheduleUpdate",value:function scheduleUpdate(){return this.performUpdate();}},{key:"performUpdate",value:function performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){var _this$renderRoot2;if((_this$renderRoot2=this.renderRoot)!==null&&_this$renderRoot2!==void 0?_this$renderRoot2:this.renderRoot=this.createRenderRoot(),this._$Ep){var _iterator4=_createForOfIteratorHelper(this._$Ep),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _step4$value=_slicedToArray(_step4.value,2),_t2=_step4$value[0],_s2=_step4$value[1];this[_t2]=_s2;}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}this._$Ep=void 0;}var _t3=this.constructor.elementProperties;if(_t3.size>0){var _iterator5=_createForOfIteratorHelper(_t3),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _step5$value=_slicedToArray(_step5.value,2),_s3=_step5$value[0],_i5=_step5$value[1];!0!==_i5.wrapped||this._$AL.has(_s3)||void 0===this[_s3]||this.P(_s3,this[_s3],_i5);}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}}var t=!1;var s=this._$AL;try{var _this$_$EO5;t=this.shouldUpdate(s),t?(this.willUpdate(s),(_this$_$EO5=this._$EO)!==null&&_this$_$EO5!==void 0&&_this$_$EO5.forEach(function(t){var _t$hostUpdate;return(_t$hostUpdate=t.hostUpdate)===null||_t$hostUpdate===void 0?void 0:_t$hostUpdate.call(t);}),this.update(s)):this._$EU();}catch(s){throw t=!1,this._$EU(),s;}t&&this._$AE(s);}},{key:"willUpdate",value:function willUpdate(t){}},{key:"_$AE",value:function _$AE(t){var _this$_$EO6;(_this$_$EO6=this._$EO)!==null&&_this$_$EO6!==void 0&&_this$_$EO6.forEach(function(t){var _t$hostUpdated;return(_t$hostUpdated=t.hostUpdated)===null||_t$hostUpdated===void 0?void 0:_t$hostUpdated.call(t);}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}},{key:"_$EU",value:function _$EU(){this._$AL=new Map(),this.isUpdatePending=!1;}},{key:"updateComplete",get:function get(){return this.getUpdateComplete();}},{key:"getUpdateComplete",value:function getUpdateComplete(){return this._$ES;}},{key:"shouldUpdate",value:function shouldUpdate(t){return!0;}},{key:"update",value:function update(t){var _this3=this;this._$Ej&&(this._$Ej=this._$Ej.forEach(function(t){return _this3._$EC(t,_this3[t]);})),this._$EU();}},{key:"updated",value:function updated(t){}},{key:"firstUpdated",value:function firstUpdated(t){}}],[{key:"addInitializer",value:function addInitializer(t){var _this$l;this._$Ei(),((_this$l=this.l)!==null&&_this$l!==void 0?_this$l:this.l=[]).push(t);}},{key:"observedAttributes",get:function get(){return this.finalize(),this._$Eh&&_toConsumableArray(this._$Eh.keys());}},{key:"createProperty",value:function createProperty(t){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:O;if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){var _i6=Symbol(),_e2=this.getPropertyDescriptor(t,_i6,s);void 0!==_e2&&b(this.prototype,t,_e2);}}},{key:"getPropertyDescriptor",value:function getPropertyDescriptor(t,s,i){var _S;var _ref=(_S=S(this.prototype,t))!==null&&_S!==void 0?_S:{get:function get(){return this[s];},set:function set(t){this[s]=t;}},e=_ref.get,o=_ref.set;return{get:function get(){return e===null||e===void 0?void 0:e.call(this);},set:function set(s){var h=e===null||e===void 0?void 0:e.call(this);o.call(this,s),this.requestUpdate(t,h,i);},configurable:!0,enumerable:!0};}},{key:"getPropertyOptions",value:function getPropertyOptions(t){var _this$elementProperti;return(_this$elementProperti=this.elementProperties.get(t))!==null&&_this$elementProperti!==void 0?_this$elementProperti:O;}},{key:"_$Ei",value:function _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;var t=C(this);t.finalize(),void 0!==t.l&&(this.l=_toConsumableArray(t.l)),this.elementProperties=new Map(t.elementProperties);}},{key:"finalize",value:function finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){var _t4=this.properties,_s4=[].concat(_toConsumableArray(w(_t4)),_toConsumableArray(g(_t4)));var _iterator6=_createForOfIteratorHelper(_s4),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _i7=_step6.value;this.createProperty(_i7,_t4[_i7]);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}var t=this[Symbol.metadata];if(null!==t){var _s5=litPropertyMetadata.get(t);if(void 0!==_s5){var _iterator7=_createForOfIteratorHelper(_s5),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _step7$value=_slicedToArray(_step7.value,2),_t5=_step7$value[0],_i8=_step7$value[1];this.elementProperties.set(_t5,_i8);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}}}this._$Eh=new Map();var _iterator8=_createForOfIteratorHelper(this.elementProperties),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _step8$value=_slicedToArray(_step8.value,2),_t6=_step8$value[0],_s6=_step8$value[1];var _i9=this._$Eu(_t6,_s6);void 0!==_i9&&this._$Eh.set(_i9,_t6);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}this.elementStyles=this.finalizeStyles(this.styles);}},{key:"finalizeStyles",value:function finalizeStyles(t){var s=[];if(Array.isArray(t)){var _i10=new Set(t.flat(1/0).reverse());var _iterator9=_createForOfIteratorHelper(_i10),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _t7=_step9.value;s.unshift(v(_t7));}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}else void 0!==t&&s.push(v(t));return s;}},{key:"_$Eu",value:function _$Eu(t,s){var i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0;}}]);}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[E("elementProperties")]=new Map(),U[E("finalized")]=new Map(),_!==null&&_!==void 0&&_({ReactiveElement:U}),((_$$reactiveElementVer=$.reactiveElementVersions)!==null&&_$$reactiveElementVer!==void 0?_$$reactiveElementVer:$.reactiveElementVersions=[]).push("2.0.4");/**
|
5
|
+
*/r=globalThis,l=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),a=new WeakMap();d=/*#__PURE__*/function(){function d(t,s,i){_classCallCheck(this,d);if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s;}return _createClass(d,[{key:"styleSheet",get:function get(){var t=this.o;var s=this.t;if(l&&void 0===t){var _i=void 0!==s&&1===s.length;_i&&(t=a.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet()).replaceSync(this.cssText),_i&&a.set(s,t));}return t;}},{key:"toString",value:function toString(){return this.cssText;}}]);}();u=l?function(t){return t;}:function(t){return t instanceof CSSStyleSheet?function(t){var s="";var _iterator=_createForOfIteratorHelper(t.cssRules),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _i2=_step.value;s+=_i2.cssText;}}catch(err){_iterator.e(err);}finally{_iterator.f();}return function(t){return new d("string"==typeof t?t:t+"",void 0,c);}(s);}(t):t;},p=Object.is,f=Object.defineProperty,v=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,g=Object.getPrototypeOf,b=globalThis,w=b.trustedTypes,$=w?w.emptyScript:"",S=b.reactiveElementPolyfillSupport,_=function _(t,s){return t;},C={toAttribute:function toAttribute(t,s){switch(s){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t;},fromAttribute:function fromAttribute(t,s){var i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i;}},A=function A(t,s){return!p(t,s);},k={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:A};/**
|
6
6
|
* @license
|
7
7
|
* Copyright 2017 Google LLC
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
9
|
-
*/A=/*#__PURE__*/function(_U){function A(){var _this4;_classCallCheck(this,A);_this4=_callSuper(this,A,arguments),_this4.renderOptions={host:_assertThisInitialized(_this4)},_this4._$Do=void 0;return _this4;}_inherits(A,_U);return _createClass(A,[{key:"createRenderRoot",value:function createRenderRoot(){var _this$renderOptions,_this$renderOptions$r;var t=_superPropGet(A,"createRenderRoot",this,3)([]);return(_this$renderOptions$r=(_this$renderOptions=this.renderOptions).renderBefore)!==null&&_this$renderOptions$r!==void 0?_this$renderOptions$r:_this$renderOptions.renderBefore=t.firstChild,t;}},{key:"update",value:function update(t){var i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),_superPropGet(A,"update",this,3)([t]),this._$Do=s(i,this.renderRoot,this.renderOptions);}},{key:"connectedCallback",value:function connectedCallback(){var _this$_$Do;_superPropGet(A,"connectedCallback",this,3)([]),(_this$_$Do=this._$Do)===null||_this$_$Do===void 0?void 0:_this$_$Do.setConnected(!0);}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_$Do2;_superPropGet(A,"disconnectedCallback",this,3)([]),(_this$_$Do2=this._$Do)===null||_this$_$Do2===void 0?void 0:_this$_$Do2.setConnected(!1);}},{key:"render",value:function render(){return i;}}]);}(U);A._$litElement$=!0,A.finalized=!0,(_globalThis$litElemen=globalThis.litElementHydrateSupport)===null||_globalThis$litElemen===void 0?void 0:_globalThis$litElemen.call(globalThis,{LitElement:A});N=globalThis.litElementPolyfillSupport;N!==null&&N!==void 0&&N({LitElement:A}),((_globalThis$litElemen2=globalThis.litElementVersions)!==null&&_globalThis$litElemen2!==void 0?_globalThis$litElemen2:globalThis.litElementVersions=[]).push("4.1.1");_export("N",B=/*#__PURE__*/function(_l){function B(){var _this5;_classCallCheck(this,B);_this5=_callSuper(this,B,arguments),_this5.placement="top",_this5.distance=18,_this5.preventOverlayClose=!1,_this5.arrow=!0,_this5.title="",_this5.open=!1,_this5.isShow=!1,_this5.arrowPlacement="anchor",_this5.hoist=!1,_this5.flip=!1,_this5.handleClick=function(){_this5.isShow=!_this5.isShow;document.querySelectorAll("nile-popover").forEach(function(t){t!==_assertThisInitialized(_this5)&&(t.isShow=!1);});},_this5.handleDocumentClick=function(){_this5.isShow&&!_this5.preventOverlayClose&&(_this5.isShow=!1);};return _this5;}_inherits(B,_l);return _createClass(B,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(B,"connectedCallback",this,3)([]),this.emit("nile-init"),document.addEventListener("click",this.handleDocumentClick);}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(B,"disconnectedCallback",this,3)([]),this.emit("nile-destroy"),document.removeEventListener("click",this.handleDocumentClick);}},{key:"updated",value:function updated(t){t.has("open")&&(this.isShow=this.open);}},{key:"handleShowHide",value:function handleShowHide(){this.isShow?this.emit("nile-show"):this.emit("nile-hide");}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-popup\n active\n .arrow=\"","\"\n distance=\"","\"\n placement=\"","\"\n @click=","\n arrowPlacement=\"","\"\n .flip=\"","\"\n shift\n strategy=","\n >\n <slot\n slot=\"anchor\"\n name=\"anchor\"\n aria-describedby=\"tooltip\"\n @click=","\n ></slot>\n ","\n </nile-popup>\n "])),this.arrow&&this.isShow,this.distance,this.placement,function(t){return t.stopPropagation();},this.arrowPlacement,this.flip,this.hoist?"fixed":"absolute",this.handleClick,this.isShow?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral([" <div part=\"popover\" class=\"popover__box\">\n <slot name=\"title\" class=\"popover__title\">","</slot>\n <slot part=\"base\"></slot>\n <slot name=\"action\" class=\"popover__action\"> </slot>\n </div>"])),this.title):e(_templateObject3||(_templateObject3=_taggedTemplateLiteral([""]))));}}],[{key:"styles",get:function get(){return[n];}}]);}(l));t([o()],B.prototype,"placement",void 0),t([o({type:Number})],B.prototype,"distance",void 0),t([o({type:Boolean,reflect:!0})],B.prototype,"preventOverlayClose",void 0),t([o({type:Boolean,attribute:"arrow"})],B.prototype,"arrow",void 0),t([o({type:String})],B.prototype,"title",void 0),t([o({type:Boolean})],B.prototype,"open",void 0),t([h()],B.prototype,"isShow",void 0),t([o({attribute:"arrow-placement"})],B.prototype,"arrowPlacement",void 0),t([o({type:Boolean})],B.prototype,"hoist",void 0),t([o({type:Boolean})],B.prototype,"flip",void 0),t([a("isShow")],B.prototype,"handleShowHide",null),_export("N",B=t([r("nile-popover")],B));}};});
|
9
|
+
*/(_Symbol$metadata=Symbol.metadata)!==null&&_Symbol$metadata!==void 0?_Symbol$metadata:Symbol.metadata=Symbol("metadata"),(_b$litPropertyMetadat=b.litPropertyMetadata)!==null&&_b$litPropertyMetadat!==void 0?_b$litPropertyMetadat:b.litPropertyMetadata=new WeakMap();E=/*#__PURE__*/function(_HTMLElement){function E(){var _this;_classCallCheck(this,E);_this=_callSuper(this,E),_this._$Ep=void 0,_this.isUpdatePending=!1,_this.hasUpdated=!1,_this._$Em=null,_this._$Ev();return _this;}_inherits(E,_HTMLElement);return _createClass(E,[{key:"_$Ev",value:function _$Ev(){var _this2=this,_this$constructor$l;this._$ES=new Promise(function(t){return _this2.enableUpdating=t;}),this._$AL=new Map(),this._$E_(),this.requestUpdate(),(_this$constructor$l=this.constructor.l)===null||_this$constructor$l===void 0?void 0:_this$constructor$l.forEach(function(t){return t(_this2);});}},{key:"addController",value:function addController(t){var _this$_$EO,_t$hostConnected;((_this$_$EO=this._$EO)!==null&&_this$_$EO!==void 0?_this$_$EO:this._$EO=new Set()).add(t),void 0!==this.renderRoot&&this.isConnected&&((_t$hostConnected=t.hostConnected)===null||_t$hostConnected===void 0?void 0:_t$hostConnected.call(t));}},{key:"removeController",value:function removeController(t){var _this$_$EO2;(_this$_$EO2=this._$EO)===null||_this$_$EO2===void 0||_this$_$EO2["delete"](t);}},{key:"_$E_",value:function _$E_(){var t=new Map(),s=this.constructor.elementProperties;var _iterator2=_createForOfIteratorHelper(s.keys()),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _i3=_step2.value;this.hasOwnProperty(_i3)&&(t.set(_i3,this[_i3]),delete this[_i3]);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}t.size>0&&(this._$Ep=t);}},{key:"createRenderRoot",value:function createRenderRoot(){var _this$shadowRoot;var t=(_this$shadowRoot=this.shadowRoot)!==null&&_this$shadowRoot!==void 0?_this$shadowRoot:this.attachShadow(this.constructor.shadowRootOptions);return function(t,s){if(l)t.adoptedStyleSheets=s.map(function(t){return t instanceof CSSStyleSheet?t:t.styleSheet;});else{var _iterator3=_createForOfIteratorHelper(s),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _i4=_step3.value;var _s=document.createElement("style"),_e=r.litNonce;void 0!==_e&&_s.setAttribute("nonce",_e),_s.textContent=_i4.cssText,t.appendChild(_s);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}(t,this.constructor.elementStyles),t;}},{key:"connectedCallback",value:function connectedCallback(){var _this$renderRoot,_this$_$EO3;(_this$renderRoot=this.renderRoot)!==null&&_this$renderRoot!==void 0?_this$renderRoot:this.renderRoot=this.createRenderRoot(),this.enableUpdating(!0),(_this$_$EO3=this._$EO)===null||_this$_$EO3===void 0?void 0:_this$_$EO3.forEach(function(t){var _t$hostConnected2;return(_t$hostConnected2=t.hostConnected)===null||_t$hostConnected2===void 0?void 0:_t$hostConnected2.call(t);});}},{key:"enableUpdating",value:function enableUpdating(t){}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_$EO4;(_this$_$EO4=this._$EO)===null||_this$_$EO4===void 0||_this$_$EO4.forEach(function(t){var _t$hostDisconnected;return(_t$hostDisconnected=t.hostDisconnected)===null||_t$hostDisconnected===void 0?void 0:_t$hostDisconnected.call(t);});}},{key:"attributeChangedCallback",value:function attributeChangedCallback(t,s,i){this._$AK(t,i);}},{key:"_$EC",value:function _$EC(t,s){var i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){var _i$converter;var _o=(void 0!==((_i$converter=i.converter)===null||_i$converter===void 0?void 0:_i$converter.toAttribute)?i.converter:C).toAttribute(s,i.type);this._$Em=t,null==_o?this.removeAttribute(e):this.setAttribute(e,_o),this._$Em=null;}}},{key:"_$AK",value:function _$AK(t,s){var i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){var _t$converter;var _t=i.getPropertyOptions(e),_o2="function"==typeof _t.converter?{fromAttribute:_t.converter}:void 0!==((_t$converter=_t.converter)===null||_t$converter===void 0?void 0:_t$converter.fromAttribute)?_t.converter:C;this._$Em=e,this[e]=_o2.fromAttribute(s,_t.type),this._$Em=null;}}},{key:"requestUpdate",value:function requestUpdate(t,s,i){if(void 0!==t){var _i$hasChanged;if(i!==null&&i!==void 0?i:i=this.constructor.getPropertyOptions(t),!((_i$hasChanged=i.hasChanged)!==null&&_i$hasChanged!==void 0?_i$hasChanged:A)(this[t],s))return;this.P(t,s,i);}!1===this.isUpdatePending&&(this._$ES=this._$ET());}},{key:"P",value:function P(t,s,i){var _this$_$Ej;this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&((_this$_$Ej=this._$Ej)!==null&&_this$_$Ej!==void 0?_this$_$Ej:this._$Ej=new Set()).add(t);}},{key:"_$ET",value:function(){var _$ET2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var t;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:this.isUpdatePending=!0;_context.prev=1;_context.next=4;return this._$ES;case 4:_context.next=9;break;case 6:_context.prev=6;_context.t0=_context["catch"](1);Promise.reject(_context.t0);case 9:t=this.scheduleUpdate();_context.t1=null!=t;if(!_context.t1){_context.next=14;break;}_context.next=14;return t;case 14:return _context.abrupt("return",!this.isUpdatePending);case 15:case"end":return _context.stop();}},_callee,this,[[1,6]]);}));function _$ET(){return _$ET2.apply(this,arguments);}return _$ET;}()},{key:"scheduleUpdate",value:function scheduleUpdate(){return this.performUpdate();}},{key:"performUpdate",value:function performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){var _this$renderRoot2;if((_this$renderRoot2=this.renderRoot)!==null&&_this$renderRoot2!==void 0?_this$renderRoot2:this.renderRoot=this.createRenderRoot(),this._$Ep){var _iterator4=_createForOfIteratorHelper(this._$Ep),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _step4$value=_slicedToArray(_step4.value,2),_t2=_step4$value[0],_s2=_step4$value[1];this[_t2]=_s2;}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}this._$Ep=void 0;}var _t3=this.constructor.elementProperties;if(_t3.size>0){var _iterator5=_createForOfIteratorHelper(_t3),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _step5$value=_slicedToArray(_step5.value,2),_s3=_step5$value[0],_i5=_step5$value[1];!0!==_i5.wrapped||this._$AL.has(_s3)||void 0===this[_s3]||this.P(_s3,this[_s3],_i5);}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}}var t=!1;var s=this._$AL;try{var _this$_$EO5;t=this.shouldUpdate(s),t?(this.willUpdate(s),(_this$_$EO5=this._$EO)!==null&&_this$_$EO5!==void 0&&_this$_$EO5.forEach(function(t){var _t$hostUpdate;return(_t$hostUpdate=t.hostUpdate)===null||_t$hostUpdate===void 0?void 0:_t$hostUpdate.call(t);}),this.update(s)):this._$EU();}catch(s){throw t=!1,this._$EU(),s;}t&&this._$AE(s);}},{key:"willUpdate",value:function willUpdate(t){}},{key:"_$AE",value:function _$AE(t){var _this$_$EO6;(_this$_$EO6=this._$EO)!==null&&_this$_$EO6!==void 0&&_this$_$EO6.forEach(function(t){var _t$hostUpdated;return(_t$hostUpdated=t.hostUpdated)===null||_t$hostUpdated===void 0?void 0:_t$hostUpdated.call(t);}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}},{key:"_$EU",value:function _$EU(){this._$AL=new Map(),this.isUpdatePending=!1;}},{key:"updateComplete",get:function get(){return this.getUpdateComplete();}},{key:"getUpdateComplete",value:function getUpdateComplete(){return this._$ES;}},{key:"shouldUpdate",value:function shouldUpdate(t){return!0;}},{key:"update",value:function update(t){var _this3=this;this._$Ej&&(this._$Ej=this._$Ej.forEach(function(t){return _this3._$EC(t,_this3[t]);})),this._$EU();}},{key:"updated",value:function updated(t){}},{key:"firstUpdated",value:function firstUpdated(t){}}],[{key:"addInitializer",value:function addInitializer(t){var _this$l;this._$Ei(),((_this$l=this.l)!==null&&_this$l!==void 0?_this$l:this.l=[]).push(t);}},{key:"observedAttributes",get:function get(){return this.finalize(),this._$Eh&&_toConsumableArray(this._$Eh.keys());}},{key:"createProperty",value:function createProperty(t){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:k;if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){var _i6=Symbol(),_e2=this.getPropertyDescriptor(t,_i6,s);void 0!==_e2&&f(this.prototype,t,_e2);}}},{key:"getPropertyDescriptor",value:function getPropertyDescriptor(t,s,i){var _v;var _ref=(_v=v(this.prototype,t))!==null&&_v!==void 0?_v:{get:function get(){return this[s];},set:function set(t){this[s]=t;}},e=_ref.get,o=_ref.set;return{get:function get(){return e===null||e===void 0?void 0:e.call(this);},set:function set(s){var h=e===null||e===void 0?void 0:e.call(this);o.call(this,s),this.requestUpdate(t,h,i);},configurable:!0,enumerable:!0};}},{key:"getPropertyOptions",value:function getPropertyOptions(t){var _this$elementProperti;return(_this$elementProperti=this.elementProperties.get(t))!==null&&_this$elementProperti!==void 0?_this$elementProperti:k;}},{key:"_$Ei",value:function _$Ei(){if(this.hasOwnProperty(_("elementProperties")))return;var t=g(this);t.finalize(),void 0!==t.l&&(this.l=_toConsumableArray(t.l)),this.elementProperties=new Map(t.elementProperties);}},{key:"finalize",value:function finalize(){if(this.hasOwnProperty(_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_("properties"))){var _t4=this.properties,_s4=[].concat(_toConsumableArray(y(_t4)),_toConsumableArray(m(_t4)));var _iterator6=_createForOfIteratorHelper(_s4),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _i7=_step6.value;this.createProperty(_i7,_t4[_i7]);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}var t=this[Symbol.metadata];if(null!==t){var _s5=litPropertyMetadata.get(t);if(void 0!==_s5){var _iterator7=_createForOfIteratorHelper(_s5),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _step7$value=_slicedToArray(_step7.value,2),_t5=_step7$value[0],_i8=_step7$value[1];this.elementProperties.set(_t5,_i8);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}}}this._$Eh=new Map();var _iterator8=_createForOfIteratorHelper(this.elementProperties),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _step8$value=_slicedToArray(_step8.value,2),_t6=_step8$value[0],_s6=_step8$value[1];var _i9=this._$Eu(_t6,_s6);void 0!==_i9&&this._$Eh.set(_i9,_t6);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}this.elementStyles=this.finalizeStyles(this.styles);}},{key:"finalizeStyles",value:function finalizeStyles(t){var s=[];if(Array.isArray(t)){var _i10=new Set(t.flat(1/0).reverse());var _iterator9=_createForOfIteratorHelper(_i10),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _t7=_step9.value;s.unshift(u(_t7));}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}else void 0!==t&&s.push(u(t));return s;}},{key:"_$Eu",value:function _$Eu(t,s){var i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0;}}]);}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[_("elementProperties")]=new Map(),E[_("finalized")]=new Map(),S!==null&&S!==void 0&&S({ReactiveElement:E}),((_b$reactiveElementVer=b.reactiveElementVersions)!==null&&_b$reactiveElementVer!==void 0?_b$reactiveElementVer:b.reactiveElementVersions=[]).push("2.0.4");/**
|
10
|
+
* @license
|
11
|
+
* Copyright 2017 Google LLC
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
13
|
+
*/x=globalThis,P=x.trustedTypes,j=P?P.createPolicy("lit-html",{createHTML:function createHTML(t){return t;}}):void 0,M="$lit$",U="lit$".concat(Math.random().toFixed(9).slice(2),"$"),N="?"+U,T="<".concat(N,">"),O=document,R=function R(){return O.createComment("");},z=function z(t){return null===t||"object"!=_typeof(t)&&"function"!=typeof t;},B=Array.isArray,I="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,D=/>/g,W=RegExp(">|".concat(I,"(?:([^\\s\"'>=/]+)(").concat(I,"*=").concat(I,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),J=/'/g,Z=/"/g,q=/^(?:script|style|textarea|title)$/i,K=function(t){return function(s){for(var _len=arguments.length,i=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){i[_key-1]=arguments[_key];}return{_$litType$:t,strings:s,values:i};};}(1),F=Symbol["for"]("lit-noChange"),G=Symbol["for"]("lit-nothing"),Q=new WeakMap(),V=O.createTreeWalker(O,129);Y=function Y(t,s){var i=t.length-1,e=[];var o,h=2===s?"<svg>":3===s?"<math>":"",n=H;for(var _s7=0;_s7<i;_s7++){var _i11=t[_s7];var _r=void 0,_l=void 0,_c=-1,_a=0;for(;_a<_i11.length&&(n.lastIndex=_a,_l=n.exec(_i11),null!==_l);)_a=n.lastIndex,n===H?"!--"===_l[1]?n=L:void 0!==_l[1]?n=D:void 0!==_l[2]?(q.test(_l[2])&&(o=RegExp("</"+_l[2],"g")),n=W):void 0!==_l[3]&&(n=W):n===W?">"===_l[0]?(n=o!==null&&o!==void 0?o:H,_c=-1):void 0===_l[1]?_c=-2:(_c=n.lastIndex-_l[2].length,_r=_l[1],n=void 0===_l[3]?W:'"'===_l[3]?Z:J):n===Z||n===J?n=W:n===L||n===D?n=H:(n=W,o=void 0);var _d=n===W&&t[_s7+1].startsWith("/>")?" ":"";h+=n===H?_i11+T:_c>=0?(e.push(_r),_i11.slice(0,_c)+M+_i11.slice(_c)+U+_d):_i11+U+(-2===_c?_s7:_d);}return[X(t,h+(t[i]||"<?>")+(2===s?"</svg>":3===s?"</math>":"")),e];};tt=/*#__PURE__*/function(){function tt(_ref2,i){var t=_ref2.strings,s=_ref2._$litType$;_classCallCheck(this,tt);var e;this.parts=[];var o=0,h=0;var n=t.length-1,r=this.parts,_Y=Y(t,s),_Y2=_slicedToArray(_Y,2),l=_Y2[0],c=_Y2[1];if(this.el=tt.createElement(l,i),V.currentNode=this.el.content,2===s||3===s){var _t8=this.el.content.firstChild;_t8.replaceWith.apply(_t8,_toConsumableArray(_t8.childNodes));}for(;null!==(e=V.nextNode())&&r.length<n;){if(1===e.nodeType){if(e.hasAttributes()){var _iterator10=_createForOfIteratorHelper(e.getAttributeNames()),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _t9=_step10.value;if(_t9.endsWith(M)){var _s8=c[h++],_i12=e.getAttribute(_t9).split(U),_n=/([.?@])?(.*)/.exec(_s8);r.push({type:1,index:o,name:_n[2],strings:_i12,ctor:"."===_n[1]?ht:"?"===_n[1]?nt:"@"===_n[1]?rt:ot}),e.removeAttribute(_t9);}else _t9.startsWith(U)&&(r.push({type:6,index:o}),e.removeAttribute(_t9));}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}if(q.test(e.tagName)){var _t10=e.textContent.split(U),_s9=_t10.length-1;if(_s9>0){e.textContent=P?P.emptyScript:"";for(var _i13=0;_i13<_s9;_i13++)e.append(_t10[_i13],R()),V.nextNode(),r.push({type:2,index:++o});e.append(_t10[_s9],R());}}}else if(8===e.nodeType)if(e.data===N)r.push({type:2,index:o});else{var _t11=-1;for(;-1!==(_t11=e.data.indexOf(U,_t11+1));)r.push({type:7,index:o}),_t11+=U.length-1;}o++;}}return _createClass(tt,null,[{key:"createElement",value:function createElement(t,s){var i=O.createElement("template");return i.innerHTML=t,i;}}]);}();it=/*#__PURE__*/function(){function it(t,s){_classCallCheck(this,it);this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s;}return _createClass(it,[{key:"parentNode",get:function get(){return this._$AM.parentNode;}},{key:"_$AU",get:function get(){return this._$AM._$AU;}},{key:"u",value:function u(t){var _t$creationScope;var _this$_$AD=this._$AD,s=_this$_$AD.el.content,i=_this$_$AD.parts,e=((_t$creationScope=t===null||t===void 0?void 0:t.creationScope)!==null&&_t$creationScope!==void 0?_t$creationScope:O).importNode(s,!0);V.currentNode=e;var o=V.nextNode(),h=0,n=0,r=i[0];for(;void 0!==r;){var _r2;if(h===r.index){var _s10=void 0;2===r.type?_s10=new et(o,o.nextSibling,this,t):1===r.type?_s10=new r.ctor(o,r.name,r.strings,this,t):6===r.type&&(_s10=new lt(o,this,t)),this._$AV.push(_s10),r=i[++n];}h!==((_r2=r)===null||_r2===void 0?void 0:_r2.index)&&(o=V.nextNode(),h++);}return V.currentNode=O,e;}},{key:"p",value:function p(t){var s=0;var _iterator11=_createForOfIteratorHelper(this._$AV),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _i14=_step11.value;void 0!==_i14&&(void 0!==_i14.strings?(_i14._$AI(t,_i14,s),s+=_i14.strings.length-2):_i14._$AI(t[s])),s++;}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}}]);}();et=/*#__PURE__*/function(){function et(t,s,i,e){var _e$isConnected;_classCallCheck(this,et);this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=(_e$isConnected=e===null||e===void 0?void 0:e.isConnected)!==null&&_e$isConnected!==void 0?_e$isConnected:!0;}return _createClass(et,[{key:"_$AU",get:function get(){var _this$_$AM$_$AU,_this$_$AM;return(_this$_$AM$_$AU=(_this$_$AM=this._$AM)===null||_this$_$AM===void 0?void 0:_this$_$AM._$AU)!==null&&_this$_$AM$_$AU!==void 0?_this$_$AM$_$AU:this._$Cv;}},{key:"parentNode",get:function get(){var _t12;var t=this._$AA.parentNode;var s=this._$AM;return void 0!==s&&11===((_t12=t)===null||_t12===void 0?void 0:_t12.nodeType)&&(t=s.parentNode),t;}},{key:"startNode",get:function get(){return this._$AA;}},{key:"endNode",get:function get(){return this._$AB;}},{key:"_$AI",value:function _$AI(t){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this;t=st(this,t,s),z(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==F&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):function(t){return B(t)||"function"==typeof(t===null||t===void 0?void 0:t[Symbol.iterator]);}(t)?this.k(t):this._(t);}},{key:"O",value:function O(t){return this._$AA.parentNode.insertBefore(t,this._$AB);}},{key:"T",value:function T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}},{key:"_",value:function _(t){this._$AH!==G&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t;}},{key:"$",value:function $(t){var _this$_$AH;var s=t.values,i=t._$litType$,e="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=tt.createElement(X(i.h,i.h[0]),this.options)),i);if(((_this$_$AH=this._$AH)===null||_this$_$AH===void 0?void 0:_this$_$AH._$AD)===e)this._$AH.p(s);else{var _t13=new it(e,this),_i15=_t13.u(this.options);_t13.p(s),this.T(_i15),this._$AH=_t13;}}},{key:"_$AC",value:function _$AC(t){var s=Q.get(t.strings);return void 0===s&&Q.set(t.strings,s=new tt(t)),s;}},{key:"k",value:function k(t){B(this._$AH)||(this._$AH=[],this._$AR());var s=this._$AH;var i,e=0;var _iterator12=_createForOfIteratorHelper(t),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _o5=_step12.value;e===s.length?s.push(i=new et(this.O(R()),this.O(R()),this,this.options)):i=s[e],i._$AI(_o5),e++;}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e);}},{key:"_$AR",value:function _$AR(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._$AA.nextSibling;var s=arguments.length>1?arguments[1]:undefined;for((_this$_$AP=this._$AP)===null||_this$_$AP===void 0?void 0:_this$_$AP.call(this,!1,!0,s);t&&t!==this._$AB;){var _this$_$AP;var _s11=t.nextSibling;t.remove(),t=_s11;}}},{key:"setConnected",value:function setConnected(t){var _this$_$AP2;void 0===this._$AM&&(this._$Cv=t,(_this$_$AP2=this._$AP)===null||_this$_$AP2===void 0?void 0:_this$_$AP2.call(this,t));}}]);}();ot=/*#__PURE__*/function(){function ot(t,s,i,e,o){_classCallCheck(this,ot);this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String()),this.strings=i):this._$AH=G;}return _createClass(ot,[{key:"tagName",get:function get(){return this.element.tagName;}},{key:"_$AU",get:function get(){return this._$AM._$AU;}},{key:"_$AI",value:function _$AI(t){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this;var i=arguments.length>2?arguments[2]:undefined;var e=arguments.length>3?arguments[3]:undefined;var o=this.strings;var h=!1;if(void 0===o)t=st(this,t,s,0),h=!z(t)||t!==this._$AH&&t!==F,h&&(this._$AH=t);else{var _e3=t;var _n2,_r3;for(t=o[0],_n2=0;_n2<o.length-1;_n2++)_r3=st(this,_e3[i+_n2],s,_n2),_r3===F&&(_r3=this._$AH[_n2]),h||(h=!z(_r3)||_r3!==this._$AH[_n2]),_r3===G?t=G:t!==G&&(t+=(_r3!==null&&_r3!==void 0?_r3:"")+o[_n2+1]),this._$AH[_n2]=_r3;}h&&!e&&this.j(t);}},{key:"j",value:function j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!==null&&t!==void 0?t:"");}}]);}();ht=/*#__PURE__*/function(_ot){function ht(){var _this4;_classCallCheck(this,ht);_this4=_callSuper(this,ht,arguments),_this4.type=3;return _this4;}_inherits(ht,_ot);return _createClass(ht,[{key:"j",value:function j(t){this.element[this.name]=t===G?void 0:t;}}]);}(ot);nt=/*#__PURE__*/function(_ot2){function nt(){var _this5;_classCallCheck(this,nt);_this5=_callSuper(this,nt,arguments),_this5.type=4;return _this5;}_inherits(nt,_ot2);return _createClass(nt,[{key:"j",value:function j(t){this.element.toggleAttribute(this.name,!!t&&t!==G);}}]);}(ot);rt=/*#__PURE__*/function(_ot3){function rt(t,s,i,e,o){var _this6;_classCallCheck(this,rt);_this6=_callSuper(this,rt,[t,s,i,e,o]),_this6.type=5;return _this6;}_inherits(rt,_ot3);return _createClass(rt,[{key:"_$AI",value:function _$AI(t){var _st;var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this;if((t=(_st=st(this,t,s,0))!==null&&_st!==void 0?_st:G)===F)return;var i=this._$AH,e=t===G&&i!==G||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==G&&(i===G||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t;}},{key:"handleEvent",value:function handleEvent(t){var _this$options$host,_this$options;"function"==typeof this._$AH?this._$AH.call((_this$options$host=(_this$options=this.options)===null||_this$options===void 0?void 0:_this$options.host)!==null&&_this$options$host!==void 0?_this$options$host:this.element,t):this._$AH.handleEvent(t);}}]);}(ot);lt=/*#__PURE__*/function(){function lt(t,s,i){_classCallCheck(this,lt);this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i;}return _createClass(lt,[{key:"_$AU",get:function get(){return this._$AM._$AU;}},{key:"_$AI",value:function _$AI(t){st(this,t);}}]);}();ct=x.litHtmlPolyfillSupport;ct!==null&&ct!==void 0&&ct(tt,et),((_x$litHtmlVersions=x.litHtmlVersions)!==null&&_x$litHtmlVersions!==void 0?_x$litHtmlVersions:x.litHtmlVersions=[]).push("3.2.1");/**
|
14
|
+
* @license
|
15
|
+
* Copyright 2017 Google LLC
|
16
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
17
|
+
*/at=/*#__PURE__*/function(_E){function at(){var _this7;_classCallCheck(this,at);_this7=_callSuper(this,at,arguments),_this7.renderOptions={host:_assertThisInitialized(_this7)},_this7._$Do=void 0;return _this7;}_inherits(at,_E);return _createClass(at,[{key:"createRenderRoot",value:function createRenderRoot(){var _this$renderOptions,_this$renderOptions$r;var t=_superPropGet(at,"createRenderRoot",this,3)([]);return(_this$renderOptions$r=(_this$renderOptions=this.renderOptions).renderBefore)!==null&&_this$renderOptions$r!==void 0?_this$renderOptions$r:_this$renderOptions.renderBefore=t.firstChild,t;}},{key:"update",value:function update(t){var s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),_superPropGet(at,"update",this,3)([t]),this._$Do=function(t,s,i,_i$renderBefore){var e=(_i$renderBefore=i===null||i===void 0?void 0:i.renderBefore)!==null&&_i$renderBefore!==void 0?_i$renderBefore:s;var o=e._$litPart$;if(void 0===o){var _i$renderBefore2;var _t14=(_i$renderBefore2=i===null||i===void 0?void 0:i.renderBefore)!==null&&_i$renderBefore2!==void 0?_i$renderBefore2:null;e._$litPart$=o=new et(s.insertBefore(R(),_t14),_t14,void 0,i!==null&&i!==void 0?i:{});}return o._$AI(t),o;}(s,this.renderRoot,this.renderOptions);}},{key:"connectedCallback",value:function connectedCallback(){var _this$_$Do;_superPropGet(at,"connectedCallback",this,3)([]),(_this$_$Do=this._$Do)===null||_this$_$Do===void 0?void 0:_this$_$Do.setConnected(!0);}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_$Do2;_superPropGet(at,"disconnectedCallback",this,3)([]),(_this$_$Do2=this._$Do)===null||_this$_$Do2===void 0?void 0:_this$_$Do2.setConnected(!1);}},{key:"render",value:function render(){return F;}}]);}(E);at._$litElement$=!0,at.finalized=!0,(_globalThis$litElemen=globalThis.litElementHydrateSupport)===null||_globalThis$litElemen===void 0?void 0:_globalThis$litElemen.call(globalThis,{LitElement:at});dt=globalThis.litElementPolyfillSupport;dt!==null&&dt!==void 0&&dt({LitElement:at}),((_globalThis$litElemen2=globalThis.litElementVersions)!==null&&_globalThis$litElemen2!==void 0?_globalThis$litElemen2:globalThis.litElementVersions=[]).push("4.1.1");_export("N",ut=/*#__PURE__*/function(_h){function ut(){var _this8;_classCallCheck(this,ut);_this8=_callSuper(this,ut,arguments),_this8.placement="top",_this8.distance=18,_this8.preventOverlayClose=!1,_this8.arrow=!0,_this8.title="",_this8.open=!1,_this8.isShow=!1,_this8.arrowPlacement="anchor",_this8.hoist=!1,_this8.flip=!1,_this8.handleClick=function(){_this8.isShow=!_this8.isShow;document.querySelectorAll("nile-popover").forEach(function(t){t!==_assertThisInitialized(_this8)&&(t.isShow=!1);});},_this8.handleDocumentClick=function(){_this8.isShow&&!_this8.preventOverlayClose&&(_this8.isShow=!1);};return _this8;}_inherits(ut,_h);return _createClass(ut,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(ut,"connectedCallback",this,3)([]),this.emit("nile-init"),document.addEventListener("click",this.handleDocumentClick);}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(ut,"disconnectedCallback",this,3)([]),this.emit("nile-destroy"),document.removeEventListener("click",this.handleDocumentClick);}},{key:"updated",value:function updated(t){t.has("open")&&(this.isShow=this.open);}},{key:"handleShowHide",value:function handleShowHide(){this.isShow?this.emit("nile-show"):this.emit("nile-hide");}},{key:"render",value:function render(){return K(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-popup\n active\n .arrow=\"","\"\n distance=\"","\"\n placement=\"","\"\n @click=","\n arrowPlacement=\"","\"\n .flip=\"","\"\n shift\n strategy=","\n >\n <slot\n slot=\"anchor\"\n name=\"anchor\"\n aria-describedby=\"tooltip\"\n @click=","\n ></slot>\n ","\n </nile-popup>\n "])),this.arrow&&this.isShow,this.distance,this.placement,function(t){return t.stopPropagation();},this.arrowPlacement,this.flip,this.hoist?"fixed":"absolute",this.handleClick,this.isShow?K(_templateObject2||(_templateObject2=_taggedTemplateLiteral([" <div part=\"popover\" class=\"popover__box\">\n <slot name=\"title\" class=\"popover__title\">","</slot>\n <slot part=\"base\"></slot>\n <slot name=\"action\" class=\"popover__action\"> </slot>\n </div>"])),this.title):K(_templateObject3||(_templateObject3=_taggedTemplateLiteral([""]))));}}],[{key:"styles",get:function get(){return[o];}}]);}(h));t([s()],ut.prototype,"placement",void 0),t([s({type:Number})],ut.prototype,"distance",void 0),t([s({type:Boolean,reflect:!0})],ut.prototype,"preventOverlayClose",void 0),t([s({type:Boolean,attribute:"arrow"})],ut.prototype,"arrow",void 0),t([s({type:String})],ut.prototype,"title",void 0),t([s({type:Boolean})],ut.prototype,"open",void 0),t([i()],ut.prototype,"isShow",void 0),t([s({attribute:"arrow-placement"})],ut.prototype,"arrowPlacement",void 0),t([s({type:Boolean})],ut.prototype,"hoist",void 0),t([s({type:Boolean})],ut.prototype,"flip",void 0),t([n("isShow")],ut.prototype,"handleShowHide",null),_export("N",ut=t([e("nile-popover")],ut));}};});
|
10
18
|
//# sourceMappingURL=nile-popover.cjs.js.map
|