@aquera/nile-elements 0.1.65-beta-1.0 → 0.1.65
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 +30 -1
- package/demo/index.html +18 -120
- package/dist/{fixture-75825990.cjs.js → fixture-3bfb4490.cjs.js} +2 -2
- package/dist/{fixture-75825990.cjs.js.map → fixture-3bfb4490.cjs.js.map} +1 -1
- package/dist/{fixture-e831ec79.esm.js → fixture-8edec91c.esm.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +7871 -5850
- package/dist/internal/form.cjs.js +1 -1
- package/dist/internal/form.cjs.js.map +1 -1
- package/dist/internal/form.esm.js +1 -1
- package/dist/internal/resizable-table-helper.cjs.js +2 -0
- package/dist/internal/resizable-table-helper.cjs.js.map +1 -0
- package/dist/internal/resizable-table-helper.esm.js +1 -0
- package/dist/internal/resizable-table-styles.cjs.js +2 -0
- package/dist/internal/resizable-table-styles.cjs.js.map +1 -0
- package/dist/internal/resizable-table-styles.esm.js +132 -0
- 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/index.cjs.js +1 -1
- package/dist/nile-auto-complete/index.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -17
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.esm.js +8 -29
- 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.cjs.js.map +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/index.cjs.js +1 -1
- package/dist/nile-badge/index.esm.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/index.cjs.js +1 -1
- package/dist/nile-button/index.esm.js +1 -1
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.esm.js +2 -2
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js.map +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.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +5 -5
- 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.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.esm.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-code-editor/extensionSetup.cjs.js +5 -5
- package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -1
- package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.esm.js +3 -3
- package/dist/nile-code-editor/theme.cjs.js +1 -1
- package/dist/nile-code-editor/theme.cjs.js.map +1 -1
- package/dist/nile-code-editor/theme.esm.js +1 -1
- package/dist/nile-dialog/index.cjs.js +1 -1
- package/dist/nile-dialog/index.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/index.cjs.js +1 -1
- package/dist/nile-drawer/index.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.esm.js +2 -2
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js.map +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.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.esm.js +203 -184
- package/dist/nile-file-preview/nile-file-preview.esm.js +1 -3
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -1
- package/dist/nile-file-preview/nile-file-preview.template.esm.js +59 -62
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
- package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js +1 -1
- package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js.map +1 -1
- package/dist/nile-file-preview/types/nile-file-preview.enums.esm.js +1 -1
- package/dist/nile-file-preview/utils/index.cjs.js +1 -1
- package/dist/nile-file-preview/utils/index.esm.js +1 -1
- package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js +1 -1
- package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js.map +1 -1
- package/dist/nile-file-preview/utils/nile-file-preview.util.esm.js +1 -1
- package/dist/nile-file-upload/index.cjs.js +1 -1
- package/dist/nile-file-upload/index.esm.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -1
- package/dist/nile-file-upload/nile-file-upload.css.esm.js +142 -89
- package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js +3 -3
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -1
- package/dist/nile-file-upload/nile-file-upload.template.esm.js +44 -98
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js +1 -1
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -1
- package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -1
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +1 -1
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -1
- package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -1
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js +2 -1
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -1
- package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
- 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/icons/svg/index.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/index.esm.js +1 -1
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-icon-button/index.cjs.js +1 -1
- package/dist/nile-icon-button/index.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
- package/dist/nile-input/index.cjs.js +1 -1
- package/dist/nile-input/index.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.test.esm.js +2 -2
- 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-menu-item/index.cjs.js +1 -1
- package/dist/nile-menu-item/index.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
- package/dist/nile-option/index.cjs.js +1 -1
- package/dist/nile-option/index.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.esm.js +3 -3
- 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 +3 -11
- package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
- package/dist/nile-popover/nile-popover.esm.js +7 -13
- 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.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/index.cjs.js +1 -1
- package/dist/nile-select/index.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 +2 -2
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.test.esm.js +2 -2
- package/dist/nile-select/virtual-scroll-helper.cjs.js +2 -0
- package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -0
- package/dist/nile-select/virtual-scroll-helper.esm.js +38 -0
- 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-slider/index.cjs.js +2 -0
- package/dist/nile-slider/index.esm.js +1 -0
- package/dist/nile-slider/nile-slider.cjs.js +2 -0
- package/dist/nile-slider/nile-slider.cjs.js.map +1 -0
- package/dist/nile-slider/nile-slider.css.cjs.js +2 -0
- package/dist/nile-slider/nile-slider.css.cjs.js.map +1 -0
- package/dist/nile-slider/nile-slider.css.esm.js +106 -0
- package/dist/nile-slider/nile-slider.esm.js +27 -0
- package/dist/nile-slider/nile-slider.template.cjs.js +2 -0
- package/dist/nile-slider/nile-slider.template.cjs.js.map +1 -0
- package/dist/nile-slider/nile-slider.template.esm.js +59 -0
- package/dist/nile-slider/types/nile-slider.enums.cjs.js +2 -0
- package/dist/nile-slider/types/nile-slider.enums.cjs.js.map +1 -0
- package/dist/nile-slider/types/nile-slider.enums.esm.js +1 -0
- package/dist/nile-slider/types/nile-slider.types.cjs.js +2 -0
- package/dist/nile-slider/types/nile-slider.types.cjs.js.map +1 -0
- package/dist/nile-slider/types/nile-slider.types.esm.js +1 -0
- package/dist/nile-slider/utils/nile-slider.utils.cjs.js +2 -0
- package/dist/nile-slider/utils/nile-slider.utils.cjs.js.map +1 -0
- package/dist/nile-slider/utils/nile-slider.utils.esm.js +1 -0
- package/dist/nile-tab/index.cjs.js +1 -1
- package/dist/nile-tab/index.esm.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
- package/dist/nile-tab/nile-tab.esm.js +1 -1
- package/dist/nile-tab-group/index.cjs.js +1 -1
- package/dist/nile-tab-group/index.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.esm.js +2 -2
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-table-body/index.cjs.js +1 -1
- package/dist/nile-table-body/index.esm.js +1 -1
- package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
- package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
- package/dist/nile-table-body/nile-table-body.css.cjs.js +1 -1
- package/dist/nile-table-body/nile-table-body.css.cjs.js.map +1 -1
- package/dist/nile-table-body/nile-table-body.css.esm.js +4 -2
- package/dist/nile-table-body/nile-table-body.esm.js +3 -2
- package/dist/nile-table-cell-item/index.cjs.js +1 -1
- package/dist/nile-table-cell-item/index.esm.js +1 -1
- package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
- package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
- package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js +1 -1
- package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js.map +1 -1
- package/dist/nile-table-cell-item/nile-table-cell-item.css.esm.js +16 -3
- package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +8 -3
- package/dist/nile-table-header-item/index.cjs.js +1 -1
- package/dist/nile-table-header-item/index.esm.js +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js.map +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.css.esm.js +5 -2
- package/dist/nile-table-header-item/nile-table-header-item.esm.js +9 -8
- package/dist/nile-tag/index.cjs.js +1 -1
- package/dist/nile-tag/index.esm.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.esm.js +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-toast/index.cjs.js +1 -1
- package/dist/nile-toast/index.esm.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.esm.js +1 -1
- package/dist/nile-tree/index.cjs.js +1 -1
- package/dist/nile-tree/index.esm.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
- package/dist/nile-tree/nile-tree.esm.js +1 -1
- package/dist/nile-tree-item/index.cjs.js +1 -1
- package/dist/nile-tree-item/index.esm.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
- package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
- package/dist/nile-virtual-select/index.cjs.js +2 -0
- package/dist/nile-virtual-select/index.esm.js +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +477 -0
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +227 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +93 -0
- package/dist/nile-virtual-select/renderer.cjs.js +2 -0
- package/dist/nile-virtual-select/renderer.cjs.js.map +1 -0
- package/dist/nile-virtual-select/renderer.esm.js +27 -0
- package/dist/nile-virtual-select/search-manager.cjs.js +2 -0
- package/dist/nile-virtual-select/search-manager.cjs.js.map +1 -0
- package/dist/nile-virtual-select/search-manager.esm.js +1 -0
- package/dist/nile-virtual-select/selection-manager.cjs.js +2 -0
- package/dist/nile-virtual-select/selection-manager.cjs.js.map +1 -0
- package/dist/nile-virtual-select/selection-manager.esm.js +1 -0
- package/dist/nile-virtual-select/types.cjs.js +2 -0
- package/dist/nile-virtual-select/types.cjs.js.map +1 -0
- package/dist/nile-virtual-select/types.esm.js +1 -0
- package/dist/src/index.d.ts +4 -3
- package/dist/src/index.js +4 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal/form.js +3 -3
- package/dist/src/internal/form.js.map +1 -1
- package/dist/src/internal/resizable-table-helper.d.ts +59 -0
- package/dist/src/internal/resizable-table-helper.js +111 -0
- package/dist/src/internal/resizable-table-helper.js.map +1 -0
- package/dist/src/internal/resizable-table-styles.d.ts +16 -0
- package/dist/src/internal/resizable-table-styles.js +149 -0
- package/dist/src/internal/resizable-table-styles.js.map +1 -0
- package/dist/src/nile-chip/nile-chip.js +10 -1
- package/dist/src/nile-chip/nile-chip.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +3 -0
- package/dist/src/nile-code-editor/nile-code-editor.js +23 -3
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-code-editor/theme.d.ts +6 -0
- package/dist/src/nile-code-editor/theme.js +8 -2
- package/dist/src/nile-code-editor/theme.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.css.js +201 -182
- package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.d.ts +6 -2
- package/dist/src/nile-file-preview/nile-file-preview.js +49 -20
- package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +3 -2
- package/dist/src/nile-file-preview/nile-file-preview.template.js +51 -47
- package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +4 -3
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +3 -2
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +1 -1
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +4 -0
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +25 -0
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.css.js +140 -87
- package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.d.ts +4 -1
- package/dist/src/nile-file-upload/nile-file-upload.js +30 -20
- package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +7 -5
- package/dist/src/nile-file-upload/nile-file-upload.template.js +63 -105
- package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
- package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +11 -4
- package/dist/src/nile-file-upload/types/file-upload.enums.js +8 -1
- package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -1
- package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +2 -4
- package/dist/src/nile-file-upload/utils/drag-drop.util.js +18 -21
- package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -1
- package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +3 -1
- package/dist/src/nile-file-upload/utils/file-validation.util.js +82 -32
- package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/index.d.ts +0 -19
- package/dist/src/nile-icon/icons/svg/index.js +0 -19
- package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/dist/src/nile-option/nile-option.d.ts +3 -1
- package/dist/src/nile-option/nile-option.js +22 -15
- package/dist/src/nile-option/nile-option.js.map +1 -1
- package/dist/src/nile-select/nile-select.d.ts +14 -3
- package/dist/src/nile-select/nile-select.js +64 -21
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-select/virtual-scroll-helper.d.ts +9 -0
- package/dist/src/nile-select/virtual-scroll-helper.js +51 -0
- package/dist/src/nile-select/virtual-scroll-helper.js.map +1 -0
- package/dist/src/nile-slider/index.d.ts +1 -0
- package/dist/src/nile-slider/index.js +2 -0
- package/dist/src/nile-slider/index.js.map +1 -0
- package/dist/src/{nile-rich-text-editor/nile-rich-text-editor.css.d.ts → nile-slider/nile-slider.css.d.ts} +3 -0
- package/dist/src/nile-slider/nile-slider.css.js +118 -0
- package/dist/src/nile-slider/nile-slider.css.js.map +1 -0
- package/dist/src/nile-slider/nile-slider.d.ts +48 -0
- package/dist/src/nile-slider/nile-slider.js +217 -0
- package/dist/src/nile-slider/nile-slider.js.map +1 -0
- package/dist/src/nile-slider/nile-slider.template.d.ts +5 -0
- package/dist/src/nile-slider/nile-slider.template.js +73 -0
- package/dist/src/nile-slider/nile-slider.template.js.map +1 -0
- package/dist/src/nile-slider/types/nile-slider.enums.d.ts +10 -0
- package/dist/src/nile-slider/types/nile-slider.enums.js +2 -0
- package/dist/src/nile-slider/types/nile-slider.enums.js.map +1 -0
- package/dist/src/nile-slider/types/nile-slider.types.d.ts +1 -0
- package/dist/src/nile-slider/types/nile-slider.types.js +2 -0
- package/dist/src/nile-slider/types/nile-slider.types.js.map +1 -0
- package/dist/src/nile-slider/utils/nile-slider.utils.d.ts +11 -0
- package/dist/src/nile-slider/utils/nile-slider.utils.js +99 -0
- package/dist/src/nile-slider/utils/nile-slider.utils.js.map +1 -0
- package/dist/src/nile-table-body/nile-table-body.css.js +3 -0
- package/dist/src/nile-table-body/nile-table-body.css.js.map +1 -1
- package/dist/src/nile-table-body/nile-table-body.d.ts +2 -0
- package/dist/src/nile-table-body/nile-table-body.js +10 -0
- package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
- package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js +15 -1
- package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js.map +1 -1
- package/dist/src/nile-table-cell-item/nile-table-cell-item.d.ts +3 -0
- package/dist/src/nile-table-cell-item/nile-table-cell-item.js +27 -8
- package/dist/src/nile-table-cell-item/nile-table-cell-item.js.map +1 -1
- package/dist/src/nile-table-header-item/nile-table-header-item.css.js +4 -0
- package/dist/src/nile-table-header-item/nile-table-header-item.css.js.map +1 -1
- package/dist/src/nile-table-header-item/nile-table-header-item.d.ts +3 -0
- package/dist/src/nile-table-header-item/nile-table-header-item.js +22 -15
- package/dist/src/nile-table-header-item/nile-table-header-item.js.map +1 -1
- package/dist/src/nile-virtual-select/index.d.ts +1 -0
- package/dist/src/nile-virtual-select/index.js +2 -0
- package/dist/src/nile-virtual-select/index.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.css.d.ts +12 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js +489 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +266 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.js +1226 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +7 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js +631 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -0
- package/dist/src/nile-virtual-select/renderer.d.ts +16 -0
- package/dist/src/nile-virtual-select/renderer.js +71 -0
- package/dist/src/nile-virtual-select/renderer.js.map +1 -0
- package/dist/src/nile-virtual-select/search-manager.d.ts +12 -0
- package/dist/src/nile-virtual-select/search-manager.js +40 -0
- package/dist/src/nile-virtual-select/search-manager.js.map +1 -0
- package/dist/src/nile-virtual-select/selection-manager.d.ts +12 -0
- package/dist/src/nile-virtual-select/selection-manager.js +64 -0
- package/dist/src/nile-virtual-select/selection-manager.js.map +1 -0
- package/dist/src/nile-virtual-select/types.d.ts +50 -0
- package/dist/src/nile-virtual-select/types.js +8 -0
- package/dist/src/nile-virtual-select/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/virtualize-a4a40d96.esm.js +22 -0
- package/dist/virtualize-b6a2fbe0.cjs.js +18 -0
- package/dist/virtualize-b6a2fbe0.cjs.js.map +1 -0
- package/package.json +3 -5
- package/src/index.ts +4 -3
- package/src/internal/form.ts +3 -3
- package/src/internal/resizable-table-helper.ts +151 -0
- package/src/internal/resizable-table-styles.ts +156 -0
- package/src/nile-chip/nile-chip.ts +9 -1
- package/src/nile-code-editor/nile-code-editor.ts +25 -4
- package/src/nile-code-editor/theme.ts +8 -2
- package/src/nile-file-preview/index.ts +1 -0
- package/src/nile-file-preview/nile-file-preview.css.ts +589 -0
- package/src/nile-file-preview/nile-file-preview.template.ts +259 -0
- package/src/nile-file-preview/nile-file-preview.test.ts +38 -0
- package/src/nile-file-preview/nile-file-preview.ts +205 -0
- package/src/nile-file-preview/types/index.ts +2 -0
- package/src/nile-file-preview/types/nile-file-preview.enums.ts +32 -0
- package/src/nile-file-preview/types/nile-file-preview.interface.ts +4 -0
- package/src/nile-file-preview/utils/index.ts +1 -0
- package/src/nile-file-preview/utils/nile-file-preview.util.ts +72 -0
- package/src/nile-file-upload/index.ts +1 -0
- package/src/nile-file-upload/nile-file-upload.css.ts +624 -0
- package/src/nile-file-upload/nile-file-upload.template.ts +217 -0
- package/src/nile-file-upload/nile-file-upload.test.ts +38 -0
- package/src/nile-file-upload/nile-file-upload.ts +161 -0
- package/src/nile-file-upload/types/file-upload.enums.ts +46 -0
- package/src/nile-file-upload/types/file-upload.type.ts +5 -0
- package/src/nile-file-upload/types/index.ts +2 -0
- package/src/nile-file-upload/utils/drag-drop.util.ts +106 -0
- package/src/nile-file-upload/utils/file-validation.util.ts +216 -0
- package/src/nile-icon/icons/svg/index.ts +0 -19
- package/src/nile-option/nile-option.ts +19 -12
- package/src/nile-select/nile-select.ts +65 -13
- package/src/nile-select/virtual-scroll-helper.ts +56 -0
- package/src/nile-slider/index.ts +1 -0
- package/src/nile-slider/nile-slider.css.ts +119 -0
- package/src/nile-slider/nile-slider.template.ts +77 -0
- package/src/nile-slider/nile-slider.ts +215 -0
- package/src/nile-slider/types/nile-slider.enums.ts +10 -0
- package/src/nile-slider/types/nile-slider.types.ts +13 -0
- package/src/nile-slider/utils/nile-slider.utils.ts +136 -0
- package/src/nile-table-body/nile-table-body.css.ts +3 -0
- package/src/nile-table-body/nile-table-body.ts +9 -0
- package/src/nile-table-cell-item/nile-table-cell-item.css.ts +15 -1
- package/src/nile-table-cell-item/nile-table-cell-item.ts +22 -5
- package/src/nile-table-header-item/nile-table-header-item.css.ts +4 -0
- package/src/nile-table-header-item/nile-table-header-item.ts +11 -5
- package/src/nile-virtual-select/index.ts +1 -0
- package/src/nile-virtual-select/nile-virtual-select.css.ts +491 -0
- package/src/nile-virtual-select/nile-virtual-select.test.ts +774 -0
- package/src/nile-virtual-select/nile-virtual-select.ts +1314 -0
- package/src/nile-virtual-select/renderer.ts +99 -0
- package/src/nile-virtual-select/search-manager.ts +50 -0
- package/src/nile-virtual-select/selection-manager.ts +75 -0
- package/src/nile-virtual-select/types.ts +54 -0
- package/vscode-html-custom-data.json +527 -201
- package/dist/axe.min-2b379f29.cjs.js +0 -12
- package/dist/axe.min-2b379f29.cjs.js.map +0 -1
- package/dist/axe.min-c2cd8733.esm.js +0 -12
- package/dist/fixture-2b5b3aba.esm.js +0 -569
- package/dist/fixture-3330277d.cjs.js +0 -395
- package/dist/fixture-3330277d.cjs.js.map +0 -1
- package/dist/fixture-588a3119.esm.js +0 -569
- package/dist/fixture-7bfb866e.cjs.js +0 -395
- package/dist/fixture-7bfb866e.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/bold-try.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/bold-try.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/bold-try.esm.js +0 -1
- package/dist/nile-icon/icons/svg/bold.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/bold.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/bold.esm.js +0 -1
- package/dist/nile-icon/icons/svg/center-align.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/center-align.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/center-align.esm.js +0 -1
- package/dist/nile-icon/icons/svg/itallic.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/itallic.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/itallic.esm.js +0 -1
- package/dist/nile-icon/icons/svg/justify-align.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/justify-align.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/justify-align.esm.js +0 -1
- package/dist/nile-icon/icons/svg/left-align.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/left-align.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/left-align.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-activity.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-activity.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-activity.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-align-center.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-align-center.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-align-center.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-annotation-x.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-arrow-down.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-arrow-up.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-bar-chart-12.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-bell-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-bell-ringing-04.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-bold-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-calendar-plus-02.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-calendar.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-calendar.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-calendar.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-check-circle.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-check-square-broken.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-down.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-left.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-right.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-up-double.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-chevron-up.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-copy-03.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-dots-grid.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-dots-vertical.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-download-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-download-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-download-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-dropdown.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-edit-02.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-edit-05.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-expand-06.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-eye.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-eye.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-eye.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-file-02.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-file-02.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-file-02.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-file-check-02.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-file-question-03.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-filter-lines.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-grid-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-help-circle.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-image-user-left.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-info-circle.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-italic-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-layers-three-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-list.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-list.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-list.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-log-out-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-mail-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-mail-04.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-menu-05.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-minimize-02.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-plus.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-plus.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-plus.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-refresh-cw-02.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-rocket-02.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-search-lg.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-send-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-send-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-send-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-settings-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-share-04.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-share-04.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-share-04.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-share-06.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-share-06.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-share-06.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-stars-02.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-trash-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-trash-03.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-trend-up-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-underline-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-upload-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-upload-cloud-02.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-user-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-user-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-user-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-user-check-02-1.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-user-check-02.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-user-plus-02.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-user-right-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-users-01.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-users-01.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-users-01.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-x-close.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-x-close.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-x-close.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ng-x-square.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ng-x-square.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ng-x-square.esm.js +0 -1
- package/dist/nile-icon/icons/svg/nile-bold.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/nile-bold.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/nile-bold.esm.js +0 -1
- package/dist/nile-icon/icons/svg/nile-centeralign.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/nile-centeralign.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/nile-centeralign.esm.js +0 -1
- package/dist/nile-icon/icons/svg/nile-italic.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/nile-italic.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/nile-italic.esm.js +0 -1
- package/dist/nile-icon/icons/svg/nile-justify.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/nile-justify.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/nile-justify.esm.js +0 -1
- package/dist/nile-icon/icons/svg/nile-leftalign.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/nile-leftalign.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/nile-leftalign.esm.js +0 -1
- package/dist/nile-icon/icons/svg/nile-ol.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/nile-ol.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/nile-ol.esm.js +0 -1
- package/dist/nile-icon/icons/svg/nile-rightalign.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/nile-rightalign.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/nile-rightalign.esm.js +0 -1
- package/dist/nile-icon/icons/svg/nile-ul.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/nile-ul.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/nile-ul.esm.js +0 -1
- package/dist/nile-icon/icons/svg/nile-underline.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/nile-underline.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/nile-underline.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ol.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ol.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ol.esm.js +0 -1
- package/dist/nile-icon/icons/svg/right-align.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/right-align.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/right-align.esm.js +0 -1
- package/dist/nile-icon/icons/svg/ul.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/ul.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/ul.esm.js +0 -1
- package/dist/nile-icon/icons/svg/underline.cjs.js +0 -2
- package/dist/nile-icon/icons/svg/underline.cjs.js.map +0 -1
- package/dist/nile-icon/icons/svg/underline.esm.js +0 -1
- package/dist/nile-lightdomeditor/index.cjs.js +0 -2
- package/dist/nile-lightdomeditor/index.esm.js +0 -1
- package/dist/nile-lightdomeditor/nile-lightdomeditor.cjs.js +0 -2
- package/dist/nile-lightdomeditor/nile-lightdomeditor.cjs.js.map +0 -1
- package/dist/nile-lightdomeditor/nile-lightdomeditor.css.cjs.js +0 -2
- package/dist/nile-lightdomeditor/nile-lightdomeditor.css.cjs.js.map +0 -1
- package/dist/nile-lightdomeditor/nile-lightdomeditor.css.esm.js +0 -225
- package/dist/nile-lightdomeditor/nile-lightdomeditor.esm.js +0 -122
- package/dist/nile-rich-text-editor/index.cjs.js +0 -2
- package/dist/nile-rich-text-editor/index.esm.js +0 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +0 -87
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +0 -1
- package/dist/nile-rich-text-editor/nile-rte-color.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rte-color.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rte-color.esm.js +0 -1
- package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rte-divider.esm.js +0 -1
- package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rte-mentions-item.esm.js +0 -1
- package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js +0 -3
- package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rte-mentions.esm.js +0 -1
- package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rte-preview.esm.js +0 -1
- package/dist/nile-rich-text-editor/nile-rte-select.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rte-select.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rte-select.esm.js +0 -52
- package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rte-toolbar-item.esm.js +0 -1
- package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rte-toolbar.esm.js +0 -1
- package/dist/nile-rich-text-editor/utils.cjs.js +0 -2
- package/dist/nile-rich-text-editor/utils.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/utils.esm.js +0 -1
- package/dist/nile-richcodeeditor/index.cjs.js +0 -2
- package/dist/nile-richcodeeditor/index.cjs.js.map +0 -1
- package/dist/nile-richcodeeditor/index.esm.js +0 -1
- package/dist/nile-richcodeeditor/nile-richcodeeditor.cjs.js +0 -2
- package/dist/nile-richcodeeditor/nile-richcodeeditor.cjs.js.map +0 -1
- package/dist/nile-richcodeeditor/nile-richcodeeditor.css.cjs.js +0 -2
- package/dist/nile-richcodeeditor/nile-richcodeeditor.css.cjs.js.map +0 -1
- package/dist/nile-richcodeeditor/nile-richcodeeditor.css.esm.js +0 -5
- package/dist/nile-richcodeeditor/nile-richcodeeditor.esm.js +0 -66
- package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
- package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
- package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
- package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
- package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
- package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
- package/dist/src/nile-icon/icons/svg/bold-try.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/bold-try.js +0 -5
- package/dist/src/nile-icon/icons/svg/bold-try.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/bold.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/bold.js +0 -5
- package/dist/src/nile-icon/icons/svg/bold.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/center-align.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/center-align.js +0 -5
- package/dist/src/nile-icon/icons/svg/center-align.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/itallic.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/itallic.js +0 -5
- package/dist/src/nile-icon/icons/svg/itallic.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/justify-align.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/justify-align.js +0 -5
- package/dist/src/nile-icon/icons/svg/justify-align.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/left-align.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/left-align.js +0 -5
- package/dist/src/nile-icon/icons/svg/left-align.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-activity.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-activity.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-activity.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-align-center.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-align-center.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-align-center.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-annotation-x.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-annotation-x.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-annotation-x.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-arrow-down.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-arrow-down.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-arrow-down.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-arrow-up.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-arrow-up.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-arrow-up.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-bell-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-bell-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-bell-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-bold-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-bold-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-bold-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-calendar.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-calendar.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-calendar.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-check-circle.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-check-circle.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-check-circle.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-check-square-broken.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-check-square-broken.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-check-square-broken.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-chevron-down.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-down.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-down.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-chevron-left.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-left.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-left.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-chevron-right.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-right.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-right.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-chevron-up.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-up.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-chevron-up.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-copy-03.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-copy-03.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-copy-03.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-dots-grid.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-dots-grid.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-dots-grid.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-dots-vertical.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-dots-vertical.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-dots-vertical.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-download-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-download-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-download-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-dropdown.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-dropdown.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-dropdown.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-edit-02.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-edit-02.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-edit-02.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-edit-05.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-edit-05.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-edit-05.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-expand-06.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-expand-06.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-expand-06.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-eye.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-eye.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-eye.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-file-02.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-file-02.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-file-02.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-file-check-02.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-file-check-02.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-file-check-02.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-file-question-03.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-file-question-03.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-file-question-03.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-filter-lines.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-filter-lines.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-filter-lines.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-grid-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-grid-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-grid-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-help-circle.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-help-circle.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-help-circle.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-image-user-left.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-image-user-left.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-image-user-left.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-info-circle.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-info-circle.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-info-circle.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-italic-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-italic-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-italic-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-layers-three-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-layers-three-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-layers-three-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-list.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-list.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-list.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-log-out-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-log-out-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-log-out-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-mail-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-mail-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-mail-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-mail-04.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-mail-04.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-mail-04.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-menu-05.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-menu-05.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-menu-05.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-minimize-02.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-minimize-02.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-minimize-02.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-plus.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-plus.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-plus.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-rocket-02.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-rocket-02.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-rocket-02.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-search-lg.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-search-lg.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-search-lg.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-send-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-send-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-send-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-settings-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-settings-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-settings-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-share-04.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-share-04.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-share-04.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-share-06.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-share-06.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-share-06.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-stars-02.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-stars-02.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-stars-02.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-trash-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-trash-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-trash-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-trash-03.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-trash-03.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-trash-03.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-trend-up-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-trend-up-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-trend-up-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-underline-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-underline-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-underline-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-upload-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-upload-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-upload-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-user-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-user-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-user-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-user-check-02.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-user-check-02.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-user-check-02.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-user-plus-02.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-user-plus-02.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-user-plus-02.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-user-right-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-user-right-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-user-right-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-users-01.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-users-01.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-users-01.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-x-close.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-x-close.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-x-close.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ng-x-square.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ng-x-square.js +0 -5
- package/dist/src/nile-icon/icons/svg/ng-x-square.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/nile-bold.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/nile-bold.js +0 -5
- package/dist/src/nile-icon/icons/svg/nile-bold.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/nile-centeralign.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/nile-centeralign.js +0 -5
- package/dist/src/nile-icon/icons/svg/nile-centeralign.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/nile-italic.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/nile-italic.js +0 -5
- package/dist/src/nile-icon/icons/svg/nile-italic.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/nile-justify.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/nile-justify.js +0 -5
- package/dist/src/nile-icon/icons/svg/nile-justify.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/nile-leftalign.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/nile-leftalign.js +0 -5
- package/dist/src/nile-icon/icons/svg/nile-leftalign.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/nile-ol.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/nile-ol.js +0 -5
- package/dist/src/nile-icon/icons/svg/nile-ol.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/nile-rightalign.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/nile-rightalign.js +0 -5
- package/dist/src/nile-icon/icons/svg/nile-rightalign.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/nile-ul.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/nile-ul.js +0 -5
- package/dist/src/nile-icon/icons/svg/nile-ul.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/nile-underline.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/nile-underline.js +0 -5
- package/dist/src/nile-icon/icons/svg/nile-underline.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ol.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ol.js +0 -5
- package/dist/src/nile-icon/icons/svg/ol.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/right-align.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/right-align.js +0 -5
- package/dist/src/nile-icon/icons/svg/right-align.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/ul.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/ul.js +0 -5
- package/dist/src/nile-icon/icons/svg/ul.js.map +0 -1
- package/dist/src/nile-icon/icons/svg/underline.d.ts +0 -5
- package/dist/src/nile-icon/icons/svg/underline.js +0 -5
- package/dist/src/nile-icon/icons/svg/underline.js.map +0 -1
- package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
- package/dist/src/nile-lightdomeditor/index.d.ts +0 -1
- package/dist/src/nile-lightdomeditor/index.js +0 -2
- package/dist/src/nile-lightdomeditor/index.js.map +0 -1
- package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.d.ts +0 -6
- package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.js +0 -237
- package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.js.map +0 -1
- package/dist/src/nile-lightdomeditor/nile-lightdomeditor.d.ts +0 -74
- package/dist/src/nile-lightdomeditor/nile-lightdomeditor.js +0 -591
- package/dist/src/nile-lightdomeditor/nile-lightdomeditor.js.map +0 -1
- package/dist/src/nile-lightdomeditor/utils/nile-mention.d.ts +0 -13
- package/dist/src/nile-lightdomeditor/utils/nile-mention.js +0 -47
- package/dist/src/nile-lightdomeditor/utils/nile-mention.js.map +0 -1
- package/dist/src/nile-markdowneditor/index.d.ts +0 -1
- package/dist/src/nile-markdowneditor/index.js +0 -2
- package/dist/src/nile-markdowneditor/index.js.map +0 -1
- package/dist/src/nile-markdowneditor/nile-markdowneditor.css.d.ts +0 -12
- package/dist/src/nile-markdowneditor/nile-markdowneditor.css.js +0 -17
- package/dist/src/nile-markdowneditor/nile-markdowneditor.css.js.map +0 -1
- package/dist/src/nile-markdowneditor/nile-markdowneditor.d.ts +0 -32
- package/dist/src/nile-markdowneditor/nile-markdowneditor.js +0 -43
- package/dist/src/nile-markdowneditor/nile-markdowneditor.js.map +0 -1
- package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
- package/dist/src/nile-prosemirror-poc/index.d.ts +0 -1
- package/dist/src/nile-prosemirror-poc/index.js +0 -2
- package/dist/src/nile-prosemirror-poc/index.js.map +0 -1
- package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.d.ts +0 -12
- package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.js +0 -17
- package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.js.map +0 -1
- package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.d.ts +0 -24
- package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.js +0 -190
- package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.js.map +0 -1
- package/dist/src/nile-rich-text-editor/index.d.ts +0 -1
- package/dist/src/nile-rich-text-editor/index.js +0 -2
- package/dist/src/nile-rich-text-editor/index.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +0 -91
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +0 -57
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +0 -603
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rte-color.d.ts +0 -14
- package/dist/src/nile-rich-text-editor/nile-rte-color.js +0 -28
- package/dist/src/nile-rich-text-editor/nile-rte-color.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rte-divider.d.ts +0 -10
- package/dist/src/nile-rich-text-editor/nile-rte-divider.js +0 -12
- package/dist/src/nile-rich-text-editor/nile-rte-divider.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.d.ts +0 -18
- package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js +0 -47
- package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rte-mentions.d.ts +0 -57
- package/dist/src/nile-rich-text-editor/nile-rte-mentions.js +0 -442
- package/dist/src/nile-rich-text-editor/nile-rte-mentions.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rte-preview.d.ts +0 -10
- package/dist/src/nile-rich-text-editor/nile-rte-preview.js +0 -12
- package/dist/src/nile-rich-text-editor/nile-rte-preview.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rte-select.d.ts +0 -37
- package/dist/src/nile-rich-text-editor/nile-rte-select.js +0 -200
- package/dist/src/nile-rich-text-editor/nile-rte-select.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.d.ts +0 -12
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js +0 -23
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar.d.ts +0 -10
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js +0 -12
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nille-rte-mention.d.ts +0 -21
- package/dist/src/nile-rich-text-editor/nille-rte-mention.js +0 -47
- package/dist/src/nile-rich-text-editor/nille-rte-mention.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nille-rte-mentions.d.ts +0 -21
- package/dist/src/nile-rich-text-editor/nille-rte-mentions.js +0 -47
- package/dist/src/nile-rich-text-editor/nille-rte-mentions.js.map +0 -1
- package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.d.ts +0 -0
- package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.js +0 -2
- package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.js.map +0 -1
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.d.ts +0 -8
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.js +0 -39
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.js.map +0 -1
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.d.ts +0 -0
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.js +0 -2
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.js.map +0 -1
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.d.ts +0 -12
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.js +0 -24
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.js.map +0 -1
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.d.ts +0 -25
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.js +0 -89
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.js.map +0 -1
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.d.ts +0 -12
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.js +0 -47
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.js.map +0 -1
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.d.ts +0 -7
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.js +0 -28
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.js.map +0 -1
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.d.ts +0 -6
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.js +0 -237
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.js.map +0 -1
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.d.ts +0 -5
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.js +0 -26
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.js.map +0 -1
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.d.ts +0 -6
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.js +0 -237
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.js.map +0 -1
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.d.ts +0 -8
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.js +0 -36
- package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.js.map +0 -1
- package/dist/src/nile-rich-text-editor/utils.d.ts +0 -13
- package/dist/src/nile-rich-text-editor/utils.js +0 -251
- package/dist/src/nile-rich-text-editor/utils.js.map +0 -1
- package/dist/src/nile-richcodeeditor/index.d.ts +0 -1
- package/dist/src/nile-richcodeeditor/index.js +0 -2
- package/dist/src/nile-richcodeeditor/index.js.map +0 -1
- package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.d.ts +0 -12
- package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.js +0 -17
- package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.js.map +0 -1
- package/dist/src/nile-richcodeeditor/nile-richcodeeditor.d.ts +0 -31
- package/dist/src/nile-richcodeeditor/nile-richcodeeditor.js +0 -203
- package/dist/src/nile-richcodeeditor/nile-richcodeeditor.js.map +0 -1
- package/dist/src/nile-richeditor/index.d.ts +0 -1
- package/dist/src/nile-richeditor/index.js +0 -2
- package/dist/src/nile-richeditor/index.js.map +0 -1
- package/dist/src/nile-richeditor/nile-richeditor.css.d.ts +0 -12
- package/dist/src/nile-richeditor/nile-richeditor.css.js +0 -17
- package/dist/src/nile-richeditor/nile-richeditor.css.js.map +0 -1
- package/dist/src/nile-richeditor/nile-richeditor.d.ts +0 -19
- package/dist/src/nile-richeditor/nile-richeditor.js +0 -234
- package/dist/src/nile-richeditor/nile-richeditor.js.map +0 -1
- package/dist/src/nile-richtexteditor/index.d.ts +0 -1
- package/dist/src/nile-richtexteditor/index.js +0 -2
- package/dist/src/nile-richtexteditor/index.js.map +0 -1
- package/dist/src/nile-richtexteditor/nile-richtexteditor.css.d.ts +0 -6
- package/dist/src/nile-richtexteditor/nile-richtexteditor.css.js +0 -237
- package/dist/src/nile-richtexteditor/nile-richtexteditor.css.js.map +0 -1
- package/dist/src/nile-richtexteditor/nile-richtexteditor.d.ts +0 -32
- package/dist/src/nile-richtexteditor/nile-richtexteditor.js +0 -46
- package/dist/src/nile-richtexteditor/nile-richtexteditor.js.map +0 -1
- package/dist/src/nile-richtexteditor/utils/nile-mention.d.ts +0 -13
- package/dist/src/nile-richtexteditor/utils/nile-mention.js +0 -47
- package/dist/src/nile-richtexteditor/utils/nile-mention.js.map +0 -1
- package/src/nile-icon/icons/svg/bold-try.ts +0 -5
- package/src/nile-icon/icons/svg/bold.ts +0 -5
- package/src/nile-icon/icons/svg/center-align.ts +0 -5
- package/src/nile-icon/icons/svg/itallic.ts +0 -5
- package/src/nile-icon/icons/svg/justify-align.ts +0 -5
- package/src/nile-icon/icons/svg/left-align.ts +0 -5
- package/src/nile-icon/icons/svg/nile-bold.ts +0 -5
- package/src/nile-icon/icons/svg/nile-centeralign.ts +0 -5
- package/src/nile-icon/icons/svg/nile-italic.ts +0 -5
- package/src/nile-icon/icons/svg/nile-justify.ts +0 -5
- package/src/nile-icon/icons/svg/nile-leftalign.ts +0 -5
- package/src/nile-icon/icons/svg/nile-ol.ts +0 -5
- package/src/nile-icon/icons/svg/nile-rightalign.ts +0 -5
- package/src/nile-icon/icons/svg/nile-ul.ts +0 -5
- package/src/nile-icon/icons/svg/nile-underline.ts +0 -5
- package/src/nile-icon/icons/svg/ol.ts +0 -5
- package/src/nile-icon/icons/svg/right-align.ts +0 -5
- package/src/nile-icon/icons/svg/ul.ts +0 -5
- package/src/nile-icon/icons/svg/underline.ts +0 -5
- package/src/nile-lightdomeditor/index.ts +0 -1
- package/src/nile-lightdomeditor/nile-lightdomeditor.css.ts +0 -238
- package/src/nile-lightdomeditor/nile-lightdomeditor.ts +0 -523
- package/src/nile-rich-text-editor/index.ts +0 -1
- package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +0 -92
- package/src/nile-rich-text-editor/nile-rich-text-editor.ts +0 -640
- package/src/nile-rich-text-editor/nile-rte-color.ts +0 -14
- package/src/nile-rich-text-editor/nile-rte-divider.ts +0 -9
- package/src/nile-rich-text-editor/nile-rte-mentions-item.ts +0 -42
- package/src/nile-rich-text-editor/nile-rte-mentions.ts +0 -465
- package/src/nile-rich-text-editor/nile-rte-preview.ts +0 -9
- package/src/nile-rich-text-editor/nile-rte-select.ts +0 -208
- package/src/nile-rich-text-editor/nile-rte-toolbar-item.ts +0 -13
- package/src/nile-rich-text-editor/nile-rte-toolbar.ts +0 -9
- package/src/nile-rich-text-editor/utils.ts +0 -197
- package/src/nile-richcodeeditor/index.ts +0 -1
- package/src/nile-richcodeeditor/nile-richcodeeditor.css.ts +0 -19
- package/src/nile-richcodeeditor/nile-richcodeeditor.ts +0 -192
- /package/dist/{nile-lightdomeditor → nile-slider}/index.cjs.js.map +0 -0
- /package/dist/{nile-rich-text-editor → nile-virtual-select}/index.cjs.js.map +0 -0
@@ -1,26 +1,20 @@
|
|
1
|
-
import{__decorate as t}from"tslib";import{
|
1
|
+
import{__decorate as t}from"tslib";import{B as s,T as i,x as e}from"../lit-html-39a6718c.esm.js";import{property as o,state as h,customElement as r}from"lit/decorators.js";import{s as n}from"./nile-popover.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";import{w as a}from"../internal/watch.esm.js";import"lit";
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* Copyright 2019 Google LLC
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
6
|
-
*/const
|
6
|
+
*/const 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;let f=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(p&&void 0===t){const 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}toString(){return this.cssText}};const m=(t,s)=>{if(p)t.adoptedStyleSheets=s.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of s){const s=document.createElement("style"),e=c.litNonce;void 0!==e&&s.setAttribute("nonce",e),s.textContent=i.cssText,t.appendChild(s)}},v=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return(t=>new f("string"==typeof t?t:t+"",void 0,d))(s)})(t):t
|
7
7
|
/**
|
8
8
|
* @license
|
9
9
|
* Copyright 2017 Google LLC
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
11
|
-
*/,{is:
|
11
|
+
*/,{is:y,defineProperty:b,getOwnPropertyDescriptor:S,getOwnPropertyNames:w,getOwnPropertySymbols:g,getPrototypeOf:C}=Object,$=globalThis,k=$.trustedTypes,P=k?k.emptyScript:"",_=$.reactiveElementPolyfillSupport,E=(t,s)=>t,M={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(t,s){let 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}},O=(t,s)=>!y(t,s),U={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:O};Symbol.metadata??=Symbol("metadata"),$.litPropertyMetadata??=new WeakMap;class A extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=U){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);void 0!==e&&b(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:o}=S(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get(){return e?.call(this)},set(s){const h=e?.call(this);o.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??U}static _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;const t=C(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){const t=this.properties,s=[...w(t),...g(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)s.unshift(v(t))}else void 0!==t&&s.push(v(t));return s}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return m(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:M).toAttribute(s,i.type);this._$Em=t,null==o?this.removeAttribute(e):this.setAttribute(e,o),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:M;this._$Em=e,this[e]=o.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??O)(this[t],s))return;this.P(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[E("elementProperties")]=new Map,A[E("finalized")]=new Map,_?.({ReactiveElement:A}),($.reactiveElementVersions??=[]).push("2.0.4");
|
12
12
|
/**
|
13
13
|
* @license
|
14
14
|
* Copyright 2017 Google LLC
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
16
16
|
*/
|
17
|
-
|
18
|
-
/**
|
19
|
-
* @license
|
20
|
-
* Copyright 2017 Google LLC
|
21
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
22
|
-
*/
|
23
|
-
class at extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,s,i)=>{const e=i?.renderBefore??s;let o=e._$litPart$;if(void 0===o){const t=i?.renderBefore??null;e._$litPart$=o=new et(s.insertBefore(R(),t),t,void 0,i??{})}return o._$AI(t),o})(s,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return F}}at._$litElement$=!0,at.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:at});const dt=globalThis.litElementPolyfillSupport;dt?.({LitElement:at}),(globalThis.litElementVersions??=[]).push("4.1.1");let ut=class extends h{constructor(){super(...arguments),this.placement="top",this.distance=18,this.preventOverlayClose=!1,this.arrow=!0,this.title="",this.open=!1,this.isShow=!1,this.arrowPlacement="anchor",this.hoist=!1,this.flip=!1,this.handleClick=()=>{this.isShow=!this.isShow;document.querySelectorAll("nile-popover").forEach((t=>{t!==this&&(t.isShow=!1)}))},this.handleDocumentClick=()=>{this.isShow&&!this.preventOverlayClose&&(this.isShow=!1)}}static get styles(){return[o]}connectedCallback(){super.connectedCallback(),this.emit("nile-init"),document.addEventListener("click",this.handleDocumentClick)}disconnectedCallback(){super.disconnectedCallback(),this.emit("nile-destroy"),document.removeEventListener("click",this.handleDocumentClick)}updated(t){t.has("open")&&(this.isShow=this.open)}handleShowHide(){this.isShow?this.emit("nile-show"):this.emit("nile-hide")}render(){return K`
|
17
|
+
class j extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=s(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i}}j._$litElement$=!0,j.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:j});const N=globalThis.litElementPolyfillSupport;N?.({LitElement:j}),(globalThis.litElementVersions??=[]).push("4.1.1");let B=class extends l{constructor(){super(...arguments),this.placement="top",this.distance=18,this.preventOverlayClose=!1,this.arrow=!0,this.title="",this.open=!1,this.isShow=!1,this.arrowPlacement="anchor",this.hoist=!1,this.flip=!1,this.handleClick=()=>{this.isShow=!this.isShow;document.querySelectorAll("nile-popover").forEach((t=>{t!==this&&(t.isShow=!1)}))},this.handleDocumentClick=()=>{this.isShow&&!this.preventOverlayClose&&(this.isShow=!1)}}static get styles(){return[n]}connectedCallback(){super.connectedCallback(),this.emit("nile-init"),document.addEventListener("click",this.handleDocumentClick)}disconnectedCallback(){super.disconnectedCallback(),this.emit("nile-destroy"),document.removeEventListener("click",this.handleDocumentClick)}updated(t){t.has("open")&&(this.isShow=this.open)}handleShowHide(){this.isShow?this.emit("nile-show"):this.emit("nile-hide")}render(){return e`
|
24
18
|
<nile-popup
|
25
19
|
active
|
26
20
|
.arrow="${this.arrow&&this.isShow}"
|
@@ -38,10 +32,10 @@ class at extends E{constructor(){super(...arguments),this.renderOptions={host:th
|
|
38
32
|
aria-describedby="tooltip"
|
39
33
|
@click=${this.handleClick}
|
40
34
|
></slot>
|
41
|
-
${this.isShow?
|
35
|
+
${this.isShow?e` <div part="popover" class="popover__box">
|
42
36
|
<slot name="title" class="popover__title">${this.title}</slot>
|
43
37
|
<slot part="base"></slot>
|
44
38
|
<slot name="action" class="popover__action"> </slot>
|
45
|
-
</div>`:
|
39
|
+
</div>`:e``}
|
46
40
|
</nile-popup>
|
47
|
-
`}};t([
|
41
|
+
`}};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),B=t([r("nile-popover")],B);export{B as N};
|
@@ -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-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-popover.cjs.js","tslib","lit/decorators.js","./nile-popover.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js"],function(_export,_context){"use strict";var o,t,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5;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){o=_fixture001CjsJs.f;t=_fixture001CjsJs.a;},function(_litStaticHtmlJs){e=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nilePopoverCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nilePopoverCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalWatchCjsJs){}],execute:function execute(){describe("NilePopover",function(){it("renders correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var i;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return o(e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:i=_context2.sent;t(i).shadowDom.to.equalSnapshot();case 4:case"end":return _context2.stop();}},_callee);}))),it("has default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var i;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return o(e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-popover></nile-popover>"]))));case 2:i=_context3.sent;t(i.placement).to.equal("top"),t(i.distance).to.equal(18),t(i.title).to.equal(""),t(i.arrowPlacement).to.equal("anchor"),t(i.hoist).to.be["false"],t(i.flip).to.be["false"];case 4:case"end":return _context3.stop();}},_callee2);}))),it("displays title when popover is shown",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var i,p,n;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return o(e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:i=_context4.sent;i.querySelector("button").click();_context4.next=6;return i.updateComplete;case 6:p=i.shadowRoot.querySelector(".popover__box");t(p).to.exist;n=i.shadowRoot.querySelector('slot[name="title"]');t(n).to.exist,t(n.textContent).to.equal("Test Popover");case 10:case"end":return _context4.stop();}},_callee3);}))),it("toggles isShow state on anchor click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var i,p,n,r;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return o(e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:i=_context5.sent;p=i.querySelector("button");p.click();_context5.next=7;return i.updateComplete;case 7:n=i.shadowRoot.querySelector('div[part="popover"]');t(n).to.exist;p.click();_context5.next=12;return i.updateComplete;case 12:r=i.shadowRoot.querySelector('div[part="popover"]');t(r).to["null"];case 14:case"end":return _context5.stop();}},_callee4);}))),it("hides popover on document click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var i,p;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return o(e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:i=_context6.sent;i.querySelector("button").click();_context6.next=6;return i.updateComplete;case 6:p=i.shadowRoot.querySelector(".popover__box");t(p).to.exist;document.body.click();_context6.next=11;return i.updateComplete;case 11:p=i.shadowRoot.querySelector(".popover__box");t(p).to.not.exist;case 13:case"end":return _context6.stop();}},_callee5);})));});}};});
|
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-3bfb4490.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-popover.cjs.js","tslib","../lit-html-9b3af046.cjs.js","lit/decorators.js","./nile-popover.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js"],function(_export,_context){"use strict";var o,t,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5;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(_fixture003CjsJs){o=_fixture003CjsJs.f;t=_fixture003CjsJs.a;},function(_litStaticHtmlJs){e=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nilePopoverCjsJs){},function(_tslib){},function(_litHtml002CjsJs){},function(_litDecoratorsJs){},function(_nilePopoverCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalWatchCjsJs){}],execute:function execute(){describe("NilePopover",function(){it("renders correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var i;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return o(e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:i=_context2.sent;t(i).shadowDom.to.equalSnapshot();case 4:case"end":return _context2.stop();}},_callee);}))),it("has default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var i;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return o(e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-popover></nile-popover>"]))));case 2:i=_context3.sent;t(i.placement).to.equal("top"),t(i.distance).to.equal(18),t(i.title).to.equal(""),t(i.arrowPlacement).to.equal("anchor"),t(i.hoist).to.be["false"],t(i.flip).to.be["false"];case 4:case"end":return _context3.stop();}},_callee2);}))),it("displays title when popover is shown",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var i,p,r;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return o(e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:i=_context4.sent;i.querySelector("button").click();_context4.next=6;return i.updateComplete;case 6:p=i.shadowRoot.querySelector(".popover__box");t(p).to.exist;r=i.shadowRoot.querySelector('slot[name="title"]');t(r).to.exist,t(r.textContent).to.equal("Test Popover");case 10:case"end":return _context4.stop();}},_callee3);}))),it("toggles isShow state on anchor click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var i,p,r,n;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return o(e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:i=_context5.sent;p=i.querySelector("button");p.click();_context5.next=7;return i.updateComplete;case 7:r=i.shadowRoot.querySelector('div[part="popover"]');t(r).to.exist;p.click();_context5.next=12;return i.updateComplete;case 12:n=i.shadowRoot.querySelector('div[part="popover"]');t(n).to["null"];case 14:case"end":return _context5.stop();}},_callee4);}))),it("hides popover on document click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var i,p;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return o(e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:i=_context6.sent;i.querySelector("button").click();_context6.next=6;return i.updateComplete;case 6:p=i.shadowRoot.querySelector(".popover__box");t(p).to.exist;document.body.click();_context6.next=11;return i.updateComplete;case 11:p=i.shadowRoot.querySelector(".popover__box");t(p).to.not.exist;case 13:case"end":return _context6.stop();}},_callee5);})));});}};});
|
2
2
|
//# sourceMappingURL=nile-popover.test.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-popover.test.cjs.js","sources":["../../../src/nile-popover/nile-popover.test.ts"],"sourcesContent":["import { fixture, html, expect, oneEvent } from '@open-wc/testing';\nimport './nile-popover';\nimport { NilePopover } from './nile-popover';\ndescribe('NilePopover', () => {\n it('renders correctly', async () => {\n const el = await fixture(html`\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n `);\n expect(el).shadowDom.to.equalSnapshot();\n });\n\n it('has default properties', async () => {\n const el = await fixture<NilePopover>(html`<nile-popover></nile-popover>`);\n expect(el.placement).to.equal('top');\n expect(el.distance).to.equal(18);\n expect(el.title).to.equal('');\n expect(el.arrowPlacement).to.equal('anchor');\n expect(el.hoist).to.be.false;\n expect(el.flip).to.be.false;\n });\n\n it('displays title when popover is shown', async () => {\n const el = await fixture<NilePopover>(html`\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n `);\n\n const button = el.querySelector('button');\n button!.click();\n await el.updateComplete;\n const popoverBox = el.shadowRoot!.querySelector('.popover__box');\n expect(popoverBox).to.exist;\n\n const titleSlot = el.shadowRoot!.querySelector('slot[name=\"title\"]');\n expect(titleSlot).to.exist;\n expect(titleSlot!.textContent).to.equal('Test Popover');\n });\n\n it('toggles isShow state on anchor click', async () => {\n const el = await fixture<NilePopover>(html`\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n `);\n\n const button = el.querySelector('button');\n button!.click();\n await el.updateComplete;\n const popOverBox = el.shadowRoot!.querySelector('div[part=\"popover\"]');\n expect(popOverBox).to.exist;\n\n button!.click();\n await el.updateComplete;\n\n const afterPopOverBox = el.shadowRoot!.querySelector('div[part=\"popover\"]');\n expect(afterPopOverBox).to.null;\n });\n\n it('hides popover on document click', async () => {\n const el = await fixture<NilePopover>(html`\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n `);\n\n const button = el.querySelector('button');\n button!.click();\n await el.updateComplete;\n\n let popoverBox = el.shadowRoot!.querySelector('.popover__box');\n expect(popoverBox).to.exist;\n\n document.body.click();\n await el.updateComplete;\n\n popoverBox = el.shadowRoot!.querySelector('.popover__box');\n expect(popoverBox).to.not.exist;\n });\n});\n"],"names":["describe","it","async","fixture","html","_templateObject","_taggedTemplateLiteral","el","expect","shadowDom","to","equalSnapshot","_context2","stop","_callee","_asyncToGenerator","_regeneratorRuntime","mark","_templateObject2","placement","equal","distance","title","arrowPlacement","hoist","be","false","flip","_context3","_callee2","_templateObject3","querySelector","click","updateComplete","popoverBox","shadowRoot","exist","titleSlot","textContent","_context4","_callee3","_templateObject4","button","popOverBox","afterPopOverBox","null","_context5","_callee4","_templateObject5","document","body","not","_context6","_callee5"],"mappings":"
|
1
|
+
{"version":3,"file":"nile-popover.test.cjs.js","sources":["../../../src/nile-popover/nile-popover.test.ts"],"sourcesContent":["import { fixture, html, expect, oneEvent } from '@open-wc/testing';\nimport './nile-popover';\nimport { NilePopover } from './nile-popover';\ndescribe('NilePopover', () => {\n it('renders correctly', async () => {\n const el = await fixture(html`\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n `);\n expect(el).shadowDom.to.equalSnapshot();\n });\n\n it('has default properties', async () => {\n const el = await fixture<NilePopover>(html`<nile-popover></nile-popover>`);\n expect(el.placement).to.equal('top');\n expect(el.distance).to.equal(18);\n expect(el.title).to.equal('');\n expect(el.arrowPlacement).to.equal('anchor');\n expect(el.hoist).to.be.false;\n expect(el.flip).to.be.false;\n });\n\n it('displays title when popover is shown', async () => {\n const el = await fixture<NilePopover>(html`\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n `);\n\n const button = el.querySelector('button');\n button!.click();\n await el.updateComplete;\n const popoverBox = el.shadowRoot!.querySelector('.popover__box');\n expect(popoverBox).to.exist;\n\n const titleSlot = el.shadowRoot!.querySelector('slot[name=\"title\"]');\n expect(titleSlot).to.exist;\n expect(titleSlot!.textContent).to.equal('Test Popover');\n });\n\n it('toggles isShow state on anchor click', async () => {\n const el = await fixture<NilePopover>(html`\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n `);\n\n const button = el.querySelector('button');\n button!.click();\n await el.updateComplete;\n const popOverBox = el.shadowRoot!.querySelector('div[part=\"popover\"]');\n expect(popOverBox).to.exist;\n\n button!.click();\n await el.updateComplete;\n\n const afterPopOverBox = el.shadowRoot!.querySelector('div[part=\"popover\"]');\n expect(afterPopOverBox).to.null;\n });\n\n it('hides popover on document click', async () => {\n const el = await fixture<NilePopover>(html`\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n `);\n\n const button = el.querySelector('button');\n button!.click();\n await el.updateComplete;\n\n let popoverBox = el.shadowRoot!.querySelector('.popover__box');\n expect(popoverBox).to.exist;\n\n document.body.click();\n await el.updateComplete;\n\n popoverBox = el.shadowRoot!.querySelector('.popover__box');\n expect(popoverBox).to.not.exist;\n });\n});\n"],"names":["describe","it","async","fixture","html","_templateObject","_taggedTemplateLiteral","el","expect","shadowDom","to","equalSnapshot","_context2","stop","_callee","_asyncToGenerator","_regeneratorRuntime","mark","_templateObject2","placement","equal","distance","title","arrowPlacement","hoist","be","false","flip","_context3","_callee2","_templateObject3","querySelector","click","updateComplete","popoverBox","shadowRoot","exist","titleSlot","textContent","_context4","_callee3","_templateObject4","button","popOverBox","afterPopOverBox","null","_context5","_callee4","_templateObject5","document","body","not","_context6","_callee5"],"mappings":"y0SAGAA,QAAS,CAAA,aAAA,CAAe,UACtBC,CAAAA,EAAAA,CAAG,2FAAqBC,SAAAA,QAAAA,MAAAA,CAAAA,QAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,SAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SAAAA,SAAAA,CAAAA,IAAAA,SACLC,CAAAA,CAAAA,CAAQC,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,kLAAvBC,CAAWJ,CAAAA,SAAAA,CAAAA,IAAAA,CAMjBK,CAAOD,CAAAA,CAAAA,CAAAA,CAAIE,SAAUC,CAAAA,EAAAA,CAAGC,aAAe,CAAA,CAAA,yBAAAC,SAAA,CAAAC,IAAA,MAAAC,OAAA,GAAA,EAAA,CAAA,CAGzCb,EAAG,CAAA,wBAAA,cAAAc,iBAAA,cAAAC,mBAAA,GAAAC,IAAA,CAA0Bf,SAAAA,SAAAA,MAAAA,CAAAA,QAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,UAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SAAAA,SAAAA,CAAAA,IAAAA,SACVC,CAAAA,CAAAA,CAAqBC,CAAI,CAAAc,gBAAA,GAAAA,gBAAA,CAAAZ,sBAAA,qCAAA,CAAA,QAApCC,CAAWJ,CAAAA,SAAAA,CAAAA,IAAAA,CACjBK,EAAOD,CAAGY,CAAAA,SAAAA,CAAAA,CAAWT,EAAGU,CAAAA,KAAAA,CAAM,KAC9BZ,CAAAA,CAAAA,CAAAA,CAAOD,CAAGc,CAAAA,QAAAA,CAAAA,CAAUX,EAAGU,CAAAA,KAAAA,CAAM,EAC7BZ,CAAAA,CAAAA,CAAAA,CAAOD,CAAGe,CAAAA,KAAAA,CAAAA,CAAOZ,GAAGU,KAAM,CAAA,EAAA,CAAA,CAC1BZ,CAAOD,CAAAA,CAAAA,CAAGgB,cAAgBb,CAAAA,CAAAA,EAAAA,CAAGU,KAAM,CAAA,QAAA,CAAA,CACnCZ,CAAOD,CAAAA,CAAAA,CAAGiB,KAAOd,CAAAA,CAAAA,EAAAA,CAAGe,EAAGC,SAAAA,CACvBlB,EAAOD,CAAGoB,CAAAA,IAAAA,CAAAA,CAAMjB,EAAGe,CAAAA,EAAAA,SAAQ,yBAAAG,SAAA,CAAAf,IAAA,MAAAgB,QAAA,GAAA,EAAA,CAAA,CAG7B5B,EAAG,CAAA,sCAAA,cAAAc,iBAAA,cAAAC,mBAAA,GAAAC,IAAA,CAAwCf,SAAAA,SAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,QAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,UAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SAAAA,SAAAA,CAAAA,IAAAA,SACxBC,CAAAA,CAAAA,CAAqBC,CAAI,CAAA0B,gBAAA,GAAAA,gBAAA,CAAAxB,sBAAA,yKAO3BC,CAAAA,QAPTA,CAAWJ,CAAAA,SAAAA,CAAAA,IAAAA,CAOFI,CAAAA,CAAGwB,cAAc,QACxBC,CAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SACFzB,CAAAA,CAAG0B,CAAAA,cAAAA,QACHC,CAAa3B,CAAAA,CAAAA,CAAG4B,UAAYJ,CAAAA,aAAAA,CAAc,iBAChDvB,CAAO0B,CAAAA,CAAAA,CAAAA,CAAYxB,GAAG0B,KAEtB,CAAMC,EAAY9B,CAAG4B,CAAAA,UAAAA,CAAYJ,aAAc,CAAA,oBAAA,CAAA,CAC/CvB,EAAO6B,CAAW3B,CAAAA,CAAAA,EAAAA,CAAG0B,KACrB5B,CAAAA,CAAAA,CAAO6B,EAAWC,WAAa5B,CAAAA,CAAAA,EAAAA,CAAGU,KAAM,CAAA,cAAA,CAAe,0BAAAmB,SAAA,CAAA1B,IAAA,MAAA2B,QAAA,OAGzDvC,EAAG,CAAA,sCAAA,cAAAc,iBAAA,cAAAC,mBAAA,GAAAC,IAAA,CAAwCf,SAAAA,SAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,QAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,UAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SAAAA,SAAAA,CAAAA,IAAAA,SACxBC,CAAAA,EAAqBC,CAAI,CAAAqC,gBAAA,GAAAA,gBAAA,CAAAnC,sBAAA,yKAOpCoC,CAAAA,QAPAnC,CAAAA,CAAAA,SAAAA,CAAAA,IAAAA,CAOAmC,CAAAA,CAASnC,EAAGwB,aAAc,CAAA,QAAA,CAAA,CAChCW,CAAQV,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SACFzB,CAAAA,EAAG0B,cACT,QAAMU,CAAapC,CAAAA,CAAAA,CAAG4B,WAAYJ,aAAc,CAAA,qBAAA,CAAA,CAChDvB,EAAOmC,CAAYjC,CAAAA,CAAAA,EAAAA,CAAG0B,MAEtBM,CAAQV,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA,SAAAA,CAAAA,IAAAA,UACFzB,CAAAA,CAAG0B,CAAAA,cAAAA,SAEHW,CAAkBrC,CAAAA,CAAAA,CAAG4B,UAAYJ,CAAAA,aAAAA,CAAc,uBACrDvB,CAAOoC,CAAAA,CAAAA,CAAAA,CAAiBlC,EAAGmC,QAAI,0BAAAC,SAAA,CAAAjC,IAAA,MAAAkC,QAAA,OAGjC9C,EAAG,CAAA,iCAAA,cAAAc,iBAAA,cAAAC,mBAAA,GAAAC,IAAA,CAAmCf,SAAAA,SAAAA,MAAAA,CAAAA,CAAAA,CAAAA,QAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,UAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SAAAA,SAAAA,CAAAA,IAAAA,SACnBC,CAAAA,EAAqBC,CAAI,CAAA4C,gBAAA,GAAAA,gBAAA,CAAA1C,sBAAA,yKAO3BC,CAAAA,QAPTA,CAAAA,CAAAA,SAAAA,CAAAA,IAAAA,CAOSA,CAAAA,CAAGwB,aAAc,CAAA,QAAA,CAAA,CACxBC,KACFzB,CAAAA,CAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SAAAA,CAAAA,CAAAA,CAAG0B,cAET,QAAIC,CAAa3B,CAAAA,CAAAA,CAAG4B,UAAYJ,CAAAA,aAAAA,CAAc,eAC9CvB,CAAAA,CAAAA,CAAAA,CAAO0B,GAAYxB,EAAG0B,CAAAA,KAAAA,CAEtBa,QAASC,CAAAA,IAAAA,CAAKlB,KACRzB,CAAAA,CAAAA,CAAAA,SAAAA,CAAAA,IAAAA,UAAAA,CAAAA,CAAAA,CAAG0B,cAETC,SAAAA,CAAAA,CAAa3B,CAAG4B,CAAAA,UAAAA,CAAYJ,aAAc,CAAA,eAAA,CAAA,CAC1CvB,CAAO0B,CAAAA,CAAAA,CAAAA,CAAYxB,EAAGyC,CAAAA,GAAAA,CAAIf,KAAK,0BAAAgB,SAAA,CAAAvC,IAAA,MAAAwC,QAAA,GAC/B,EAAA,CAAA,EAAA,CAAA,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{f as o,a as t}from"../fixture-
|
1
|
+
import{f as o,a as t}from"../fixture-8edec91c.esm.js";import{html as e}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-popover.esm.js";import"tslib";import"../lit-html-39a6718c.esm.js";import"lit/decorators.js";import"./nile-popover.css.esm.js";import"../internal/nile-element.esm.js";import"../internal/watch.esm.js";describe("NilePopover",(()=>{it("renders correctly",(async()=>{const i=await o(e`
|
2
2
|
<nile-popover title="Test Popover">
|
3
3
|
<button slot="anchor">Click me</button>
|
4
4
|
<div>Popover Content</div>
|
@@ -8,12 +8,12 @@ import{f as o,a as t}from"../fixture-588a3119.esm.js";import{html as e}from"lit/
|
|
8
8
|
<button slot="anchor">Click me</button>
|
9
9
|
<div>Popover Content</div>
|
10
10
|
</nile-popover>
|
11
|
-
`);i.querySelector("button").click(),await i.updateComplete;const p=i.shadowRoot.querySelector(".popover__box");t(p).to.exist;const
|
11
|
+
`);i.querySelector("button").click(),await i.updateComplete;const p=i.shadowRoot.querySelector(".popover__box");t(p).to.exist;const r=i.shadowRoot.querySelector('slot[name="title"]');t(r).to.exist,t(r.textContent).to.equal("Test Popover")})),it("toggles isShow state on anchor click",(async()=>{const i=await o(e`
|
12
12
|
<nile-popover title="Test Popover">
|
13
13
|
<button slot="anchor">Click me</button>
|
14
14
|
<div>Popover Content</div>
|
15
15
|
</nile-popover>
|
16
|
-
`),p=i.querySelector("button");p.click(),await i.updateComplete;const
|
16
|
+
`),p=i.querySelector("button");p.click(),await i.updateComplete;const r=i.shadowRoot.querySelector('div[part="popover"]');t(r).to.exist,p.click(),await i.updateComplete;const n=i.shadowRoot.querySelector('div[part="popover"]');t(n).to.null})),it("hides popover on document click",(async()=>{const i=await o(e`
|
17
17
|
<nile-popover title="Test Popover">
|
18
18
|
<button slot="anchor">Click me</button>
|
19
19
|
<div>Popover Content</div>
|
@@ -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-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-popup.cjs.js","tslib","lit/directives/class-map.js","lit/decorators.js","../internal/nile-element.cjs.js","./nile-popup.css.cjs.js"],function(_export,_context){"use strict";var p,t,o,i,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8;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){p=_fixture001CjsJs.f;t=_fixture001CjsJs.a;o=_fixture001CjsJs.e;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nilePopupCjsJs){e=_nilePopupCjsJs.N;},function(_tslib){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){},function(_nilePopupCssCjsJs){}],execute:function execute(){describe("NilePopup",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return p(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context2.sent;t(o).to.be.instanceOf(e),t(o.shadowRoot).not.to.be["null"];case 4:case"end":return _context2.stop();}},_callee);}))),it("should be inactive by default",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return p(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context3.sent;t(o.active).to.be["false"];e=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".popup");t(e===null||e===void 0?void 0:e.classList.contains("popup--active")).to.be["false"];case 6:case"end":return _context3.stop();}},_callee2);}))),it("should show popup when active is set to true",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _e$shadowRoot;var e,s;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return p(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:e=_context4.sent;e.active=!0;_context4.next=6;return o(e);case 6:s=(_e$shadowRoot=e.shadowRoot)===null||_e$shadowRoot===void 0?void 0:_e$shadowRoot.querySelector(".popup");t(e.active).to.be["true"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["true"];case 8:case"end":return _context4.stop();}},_callee3);}))),it("should hide popup when active is set to false",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _e$shadowRoot2;var e,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return p(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-popup active></nile-popup>"]))));case 2:e=_context5.sent;e.active=!1;_context5.next=6;return o(e);case 6:s=(_e$shadowRoot2=e.shadowRoot)===null||_e$shadowRoot2===void 0?void 0:_e$shadowRoot2.querySelector(".popup");t(e.active).to.be["false"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["false"];case 8:case"end":return _context5.stop();}},_callee4);}))),it('should set correct placement class based on "placement" property',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return p(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-popup placement=\"bottom\"></nile-popup>"]))));case 2:e=_context6.sent;e.active=!0;_context6.next=6;return o(e);case 6:t(e.placement).to.equal("bottom");t(e.getAttribute("placement")).to.equal("bottom");case 8:case"end":return _context6.stop();}},_callee5);}))),it("should position correctly when anchor is provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _s$shadowRoot;var e,s,a,n;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:e=document.createElement("div");e.id="anchorEl",document.body.appendChild(e);_context7.next=4;return p(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-popup anchor=\"anchorEl\" active></nile-popup>"]))));case 4:s=_context7.sent;_context7.next=7;return o(s);case 7:a=(_s$shadowRoot=s.shadowRoot)===null||_s$shadowRoot===void 0?void 0:_s$shadowRoot.querySelector(".popup");t(a===null||a===void 0?void 0:a.classList.contains("popup--active")).to.be["true"];n=document.getElementById("anchorEl");t(n).to.exist,document.body.removeChild(e);case 11:case"end":return _context7.stop();}},_callee6);}))),it('should display an arrow when the "arrow" property is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _e$shadowRoot3;var e,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return p(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-popup arrow></nile-popup>"]))));case 2:e=_context8.sent;e.active=!0;_context8.next=6;return o(e);case 6:s=(_e$shadowRoot3=e.shadowRoot)===null||_e$shadowRoot3===void 0?void 0:_e$shadowRoot3.querySelector(".popup__arrow");t(s).to.exist;case 8:case"end":return _context8.stop();}},_callee7);}))),it('should apply correct strategy when "strategy" is set',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _e$shadowRoot4;var e,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return p(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-popup strategy=\"fixed\"></nile-popup>"]))));case 2:e=_context9.sent;e.active=!0;_context9.next=6;return o(e);case 6:s=(_e$shadowRoot4=e.shadowRoot)===null||_e$shadowRoot4===void 0?void 0:_e$shadowRoot4.querySelector(".popup");t(s===null||s===void 0?void 0:s.classList.contains("popup--fixed")).to.be["true"];case 8: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-3bfb4490.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-popup.cjs.js","tslib","lit/directives/class-map.js","lit/decorators.js","../internal/nile-element.cjs.js","./nile-popup.css.cjs.js"],function(_export,_context){"use strict";var p,t,o,i,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8;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(_fixture003CjsJs){p=_fixture003CjsJs.f;t=_fixture003CjsJs.a;o=_fixture003CjsJs.e;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nilePopupCjsJs){e=_nilePopupCjsJs.N;},function(_tslib){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){},function(_nilePopupCssCjsJs){}],execute:function execute(){describe("NilePopup",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return p(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context2.sent;t(o).to.be.instanceOf(e),t(o.shadowRoot).not.to.be["null"];case 4:case"end":return _context2.stop();}},_callee);}))),it("should be inactive by default",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return p(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context3.sent;t(o.active).to.be["false"];e=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".popup");t(e===null||e===void 0?void 0:e.classList.contains("popup--active")).to.be["false"];case 6:case"end":return _context3.stop();}},_callee2);}))),it("should show popup when active is set to true",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _e$shadowRoot;var e,s;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return p(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:e=_context4.sent;e.active=!0;_context4.next=6;return o(e);case 6:s=(_e$shadowRoot=e.shadowRoot)===null||_e$shadowRoot===void 0?void 0:_e$shadowRoot.querySelector(".popup");t(e.active).to.be["true"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["true"];case 8:case"end":return _context4.stop();}},_callee3);}))),it("should hide popup when active is set to false",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _e$shadowRoot2;var e,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return p(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-popup active></nile-popup>"]))));case 2:e=_context5.sent;e.active=!1;_context5.next=6;return o(e);case 6:s=(_e$shadowRoot2=e.shadowRoot)===null||_e$shadowRoot2===void 0?void 0:_e$shadowRoot2.querySelector(".popup");t(e.active).to.be["false"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["false"];case 8:case"end":return _context5.stop();}},_callee4);}))),it('should set correct placement class based on "placement" property',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return p(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-popup placement=\"bottom\"></nile-popup>"]))));case 2:e=_context6.sent;e.active=!0;_context6.next=6;return o(e);case 6:t(e.placement).to.equal("bottom");t(e.getAttribute("placement")).to.equal("bottom");case 8:case"end":return _context6.stop();}},_callee5);}))),it("should position correctly when anchor is provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _s$shadowRoot;var e,s,a,n;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:e=document.createElement("div");e.id="anchorEl",document.body.appendChild(e);_context7.next=4;return p(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-popup anchor=\"anchorEl\" active></nile-popup>"]))));case 4:s=_context7.sent;_context7.next=7;return o(s);case 7:a=(_s$shadowRoot=s.shadowRoot)===null||_s$shadowRoot===void 0?void 0:_s$shadowRoot.querySelector(".popup");t(a===null||a===void 0?void 0:a.classList.contains("popup--active")).to.be["true"];n=document.getElementById("anchorEl");t(n).to.exist,document.body.removeChild(e);case 11:case"end":return _context7.stop();}},_callee6);}))),it('should display an arrow when the "arrow" property is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _e$shadowRoot3;var e,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return p(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-popup arrow></nile-popup>"]))));case 2:e=_context8.sent;e.active=!0;_context8.next=6;return o(e);case 6:s=(_e$shadowRoot3=e.shadowRoot)===null||_e$shadowRoot3===void 0?void 0:_e$shadowRoot3.querySelector(".popup__arrow");t(s).to.exist;case 8:case"end":return _context8.stop();}},_callee7);}))),it('should apply correct strategy when "strategy" is set',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _e$shadowRoot4;var e,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return p(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-popup strategy=\"fixed\"></nile-popup>"]))));case 2:e=_context9.sent;e.active=!0;_context9.next=6;return o(e);case 6:s=(_e$shadowRoot4=e.shadowRoot)===null||_e$shadowRoot4===void 0?void 0:_e$shadowRoot4.querySelector(".popup");t(s===null||s===void 0?void 0:s.classList.contains("popup--fixed")).to.be["true"];case 8:case"end":return _context9.stop();}},_callee8);})));});}};});
|
2
2
|
//# sourceMappingURL=nile-popup.test.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
import{f as p,a as t,e as o}from"../fixture-
|
1
|
+
import{f as p,a as t,e as o}from"../fixture-8edec91c.esm.js";import{html as i}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import{N as e}from"./nile-popup.esm.js";import"tslib";import"lit/directives/class-map.js";import"lit/decorators.js";import"../internal/nile-element.esm.js";import"./nile-popup.css.esm.js";describe("NilePopup",(()=>{it("should render correctly",(async()=>{const o=await p(i`<nile-popup></nile-popup>`);t(o).to.be.instanceOf(e),t(o.shadowRoot).not.to.be.null})),it("should be inactive by default",(async()=>{const o=await p(i`<nile-popup></nile-popup>`);t(o.active).to.be.false;const e=o.shadowRoot?.querySelector(".popup");t(e?.classList.contains("popup--active")).to.be.false})),it("should show popup when active is set to true",(async()=>{const e=await p(i`<nile-popup></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(e.active).to.be.true,t(s?.classList.contains("popup--active")).to.be.true})),it("should hide popup when active is set to false",(async()=>{const e=await p(i`<nile-popup active></nile-popup>`);e.active=!1,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(e.active).to.be.false,t(s?.classList.contains("popup--active")).to.be.false})),it('should set correct placement class based on "placement" property',(async()=>{const e=await p(i`<nile-popup placement="bottom"></nile-popup>`);e.active=!0,await o(e),t(e.placement).to.equal("bottom"),t(e.getAttribute("placement")).to.equal("bottom")})),it("should position correctly when anchor is provided",(async()=>{const e=document.createElement("div");e.id="anchorEl",document.body.appendChild(e);const s=await p(i`<nile-popup anchor="anchorEl" active></nile-popup>`);await o(s);const a=s.shadowRoot?.querySelector(".popup");t(a?.classList.contains("popup--active")).to.be.true;const n=document.getElementById("anchorEl");t(n).to.exist,document.body.removeChild(e)})),it('should display an arrow when the "arrow" property is true',(async()=>{const e=await p(i`<nile-popup arrow></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup__arrow");t(s).to.exist})),it('should apply correct strategy when "strategy" is set',(async()=>{const e=await p(i`<nile-popup strategy="fixed"></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(s?.classList.contains("popup--fixed")).to.be.true}))}));
|
@@ -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-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-progress-bar.cjs.js","tslib","./nile-progress-bar.css.cjs.js","lit/decorators.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var s,a,r,_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){s=_fixture001CjsJs.f;a=_fixture001CjsJs.a;},function(_litStaticHtmlJs){r=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileProgressBarCjsJs){},function(_tslib){},function(_nileProgressBarCssCjsJs){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileProgressBar",function(){it("should have a default value of 0",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _e$shadowRoot$querySe;var e,t;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return s(r(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-progress-bar></nile-progress-bar>"]))));case 2:e=_context2.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe!==void 0?_e$shadowRoot$querySe:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context2.stop();}},_callee);}))),it("should set and display the provided value",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _e$shadowRoot$querySe2;var e,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return s(r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-progress-bar value=\"50\"></nile-progress-bar>"]))));case 2:e=_context3.sent;a(e.value).to.equal(50);t=(_e$shadowRoot$querySe2=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe2!==void 0?_e$shadowRoot$querySe2:{};a(t.style.width).to.equal("50%");case 6:case"end":return _context3.stop();}},_callee2);}))),it("should handle boundary value 0%",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _e$shadowRoot$querySe3;var e,t;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return s(r(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-progress-bar value=\"0\"></nile-progress-bar>"]))));case 2:e=_context4.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe3=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe3!==void 0?_e$shadowRoot$querySe3:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context4.stop();}},_callee3);}))),it("should handle boundary value 100%",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _e$shadowRoot$querySe4;var e,t;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return s(r(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-progress-bar value=\"100\"></nile-progress-bar>"]))));case 2:e=_context5.sent;a(e.value).to.equal(100);t=(_e$shadowRoot$querySe4=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe4!==void 0?_e$shadowRoot$querySe4:{};a(t.style.width).to.equal("100%");case 6:case"end":return _context5.stop();}},_callee4);}))),it("should revert values greater than 100",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _e$shadowRoot$querySe5;var e,t;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return s(r(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-progress-bar value=\"150\"></nile-progress-bar>"]))));case 2:e=_context6.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe5=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe5!==void 0?_e$shadowRoot$querySe5:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context6.stop();}},_callee5);}))),it("should revert negative values",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _e$shadowRoot$querySe6;var e,t;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return s(r(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-progress-bar value=\"-50\"></nile-progress-bar>"]))));case 2:e=_context7.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe6=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe6!==void 0?_e$shadowRoot$querySe6:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context7.stop();}},_callee6);}))),it("should update the value dynamically",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _e$shadowRoot$querySe7;var e,t;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return s(r(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-progress-bar value=\"20\"></nile-progress-bar>"]))));case 2:e=_context8.sent;e.value=80;_context8.next=6;return e.updateComplete;case 6:t=(_e$shadowRoot$querySe7=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe7!==void 0?_e$shadowRoot$querySe7:{};a(t.style.width).to.equal("80%");case 8:case"end":return _context8.stop();}},_callee7);})));});}};});
|
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-3bfb4490.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-progress-bar.cjs.js","tslib","./nile-progress-bar.css.cjs.js","lit/decorators.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var s,a,r,_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(_fixture003CjsJs){s=_fixture003CjsJs.f;a=_fixture003CjsJs.a;},function(_litStaticHtmlJs){r=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileProgressBarCjsJs){},function(_tslib){},function(_nileProgressBarCssCjsJs){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileProgressBar",function(){it("should have a default value of 0",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _e$shadowRoot$querySe;var e,t;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return s(r(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-progress-bar></nile-progress-bar>"]))));case 2:e=_context2.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe!==void 0?_e$shadowRoot$querySe:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context2.stop();}},_callee);}))),it("should set and display the provided value",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _e$shadowRoot$querySe2;var e,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return s(r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-progress-bar value=\"50\"></nile-progress-bar>"]))));case 2:e=_context3.sent;a(e.value).to.equal(50);t=(_e$shadowRoot$querySe2=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe2!==void 0?_e$shadowRoot$querySe2:{};a(t.style.width).to.equal("50%");case 6:case"end":return _context3.stop();}},_callee2);}))),it("should handle boundary value 0%",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _e$shadowRoot$querySe3;var e,t;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return s(r(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-progress-bar value=\"0\"></nile-progress-bar>"]))));case 2:e=_context4.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe3=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe3!==void 0?_e$shadowRoot$querySe3:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context4.stop();}},_callee3);}))),it("should handle boundary value 100%",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _e$shadowRoot$querySe4;var e,t;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return s(r(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-progress-bar value=\"100\"></nile-progress-bar>"]))));case 2:e=_context5.sent;a(e.value).to.equal(100);t=(_e$shadowRoot$querySe4=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe4!==void 0?_e$shadowRoot$querySe4:{};a(t.style.width).to.equal("100%");case 6:case"end":return _context5.stop();}},_callee4);}))),it("should revert values greater than 100",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _e$shadowRoot$querySe5;var e,t;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return s(r(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-progress-bar value=\"150\"></nile-progress-bar>"]))));case 2:e=_context6.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe5=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe5!==void 0?_e$shadowRoot$querySe5:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context6.stop();}},_callee5);}))),it("should revert negative values",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _e$shadowRoot$querySe6;var e,t;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return s(r(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-progress-bar value=\"-50\"></nile-progress-bar>"]))));case 2:e=_context7.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe6=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe6!==void 0?_e$shadowRoot$querySe6:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context7.stop();}},_callee6);}))),it("should update the value dynamically",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _e$shadowRoot$querySe7;var e,t;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return s(r(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-progress-bar value=\"20\"></nile-progress-bar>"]))));case 2:e=_context8.sent;e.value=80;_context8.next=6;return e.updateComplete;case 6:t=(_e$shadowRoot$querySe7=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe7!==void 0?_e$shadowRoot$querySe7:{};a(t.style.width).to.equal("80%");case 8:case"end":return _context8.stop();}},_callee7);})));});}};});
|
2
2
|
//# sourceMappingURL=nile-progress-bar.test.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
import{f as s,a as e}from"../fixture-
|
1
|
+
import{f as s,a as e}from"../fixture-8edec91c.esm.js";import{html as a}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-progress-bar.esm.js";import"tslib";import"./nile-progress-bar.css.esm.js";import"lit/decorators.js";import"../internal/nile-element.esm.js";describe("NileProgressBar",(()=>{it("should have a default value of 0",(async()=>{const r=await s(a`<nile-progress-bar></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should set and display the provided value",(async()=>{const r=await s(a`<nile-progress-bar value="50"></nile-progress-bar>`);e(r.value).to.equal(50);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("50%")})),it("should handle boundary value 0%",(async()=>{const r=await s(a`<nile-progress-bar value="0"></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should handle boundary value 100%",(async()=>{const r=await s(a`<nile-progress-bar value="100"></nile-progress-bar>`);e(r.value).to.equal(100);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("100%")})),it("should revert values greater than 100",(async()=>{const r=await s(a`<nile-progress-bar value="150"></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should revert negative values",(async()=>{const r=await s(a`<nile-progress-bar value="-50"></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should update the value dynamically",(async()=>{const r=await s(a`<nile-progress-bar value="20"></nile-progress-bar>`);r.value=80,await r.updateComplete;const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("80%")}))}));
|
@@ -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-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-radio.cjs.js","tslib","lit/decorators.js","./nile-radio.css.cjs.js","lit/directives/class-map.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var i,a,e,t,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10;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;e=_fixture001CjsJs.e;},function(_litStaticHtmlJs){t=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileRadioCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileRadioCssCjsJs){},function(_litDirectivesClassMapJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileRadio",function(){it("should have the correct default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var e;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(t(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context2.sent;a(e.checked).to.be["false"],a(e.disabled).to.be["false"],a(e.size).to.equal("medium");case 4:case"end":return _context2.stop();}},_callee);}))),it("should reflect the disabled attribute",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-radio disabled></nile-radio>"]))));case 2:e=_context3.sent;a(e.disabled).to.be["true"],a(e.hasAttribute("aria-disabled")).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}))),it("should update aria-checked when checked changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var e;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return i(t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context4.sent;e.checked=!0;_context4.next=6;return e.updateComplete;case 6:a(e.getAttribute("aria-checked")).to.equal("true");case 7:case"end":return _context4.stop();}},_callee3);}))),it("should toggle checked state on click when not disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:s=_context5.sent;s.click();_context5.next=6;return e(s);case 6:a(s.checked).to.be["true"];case 7:case"end":return _context5.stop();}},_callee4);}))),it("should not toggle checked state on click when disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var s;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-radio disabled></nile-radio>"]))));case 2:s=_context6.sent;s.click();_context6.next=6;return e(s);case 6:a(s.checked).to.be["false"];case 7:case"end":return _context6.stop();}},_callee5);}))),it("should emit nile-blur event on blur",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var e,s,o;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context7.sent;s=new Promise(function(i){return e.addEventListener("nile-blur",i);});e.dispatchEvent(new Event("blur"));_context7.next=7;return s;case 7:o=_context7.sent;a(o).to.exist;case 9:case"end":return _context7.stop();}},_callee6);}))),it("should emit nile-focus event on focus",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var e,s,o;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return i(t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context8.sent;s=new Promise(function(i){return e.addEventListener("nile-focus",i);});e.dispatchEvent(new Event("focus"));_context8.next=7;return s;case 7:o=_context8.sent;a(o).to.exist;case 9:case"end":return _context8.stop();}},_callee7);}))),it("should apply the correct classes based on state",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var e,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(t(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context9.sent;e.checked=!0;e.disabled=!0;e.size="medium";_context9.next=8;return e.updateComplete;case 8:s=e.shadowRoot.querySelector('[part="base"]');a(s.classList.contains("radio--checked")).to.be["true"],a(s.classList.contains("radio--disabled")).to.be["true"],a(s.classList.contains("radio--medium")).to.be["true"];case 10:case"end":return _context9.stop();}},_callee8);}))),it("should update aria-disabled when disabled changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var s;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return i(t(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:s=_context10.sent;s.disabled=!0;_context10.next=6;return e(s);case 6:a(s.getAttribute("aria-disabled")).to.equal("true");case 7:case"end":return _context10.stop();}},_callee9);}))),it("should set initial attributes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var e;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return i(t(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context11.sent;a(e.getAttribute("role")).to.equal("radio"),a(e.getAttribute("tabindex")).to.equal("-1"),a(e.getAttribute("aria-disabled")).to.equal("false");case 4:case"end":return _context11.stop();}},_callee10);})));});}};});
|
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-3bfb4490.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-radio.cjs.js","tslib","lit/decorators.js","./nile-radio.css.cjs.js","lit/directives/class-map.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var i,a,e,t,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10;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(_fixture003CjsJs){i=_fixture003CjsJs.f;a=_fixture003CjsJs.a;e=_fixture003CjsJs.e;},function(_litStaticHtmlJs){t=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileRadioCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileRadioCssCjsJs){},function(_litDirectivesClassMapJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileRadio",function(){it("should have the correct default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var e;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(t(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context2.sent;a(e.checked).to.be["false"],a(e.disabled).to.be["false"],a(e.size).to.equal("medium");case 4:case"end":return _context2.stop();}},_callee);}))),it("should reflect the disabled attribute",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-radio disabled></nile-radio>"]))));case 2:e=_context3.sent;a(e.disabled).to.be["true"],a(e.hasAttribute("aria-disabled")).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}))),it("should update aria-checked when checked changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var e;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return i(t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context4.sent;e.checked=!0;_context4.next=6;return e.updateComplete;case 6:a(e.getAttribute("aria-checked")).to.equal("true");case 7:case"end":return _context4.stop();}},_callee3);}))),it("should toggle checked state on click when not disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:s=_context5.sent;s.click();_context5.next=6;return e(s);case 6:a(s.checked).to.be["true"];case 7:case"end":return _context5.stop();}},_callee4);}))),it("should not toggle checked state on click when disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var s;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-radio disabled></nile-radio>"]))));case 2:s=_context6.sent;s.click();_context6.next=6;return e(s);case 6:a(s.checked).to.be["false"];case 7:case"end":return _context6.stop();}},_callee5);}))),it("should emit nile-blur event on blur",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var e,s,o;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context7.sent;s=new Promise(function(i){return e.addEventListener("nile-blur",i);});e.dispatchEvent(new Event("blur"));_context7.next=7;return s;case 7:o=_context7.sent;a(o).to.exist;case 9:case"end":return _context7.stop();}},_callee6);}))),it("should emit nile-focus event on focus",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var e,s,o;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return i(t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context8.sent;s=new Promise(function(i){return e.addEventListener("nile-focus",i);});e.dispatchEvent(new Event("focus"));_context8.next=7;return s;case 7:o=_context8.sent;a(o).to.exist;case 9:case"end":return _context8.stop();}},_callee7);}))),it("should apply the correct classes based on state",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var e,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(t(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context9.sent;e.checked=!0;e.disabled=!0;e.size="medium";_context9.next=8;return e.updateComplete;case 8:s=e.shadowRoot.querySelector('[part="base"]');a(s.classList.contains("radio--checked")).to.be["true"],a(s.classList.contains("radio--disabled")).to.be["true"],a(s.classList.contains("radio--medium")).to.be["true"];case 10:case"end":return _context9.stop();}},_callee8);}))),it("should update aria-disabled when disabled changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var s;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return i(t(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:s=_context10.sent;s.disabled=!0;_context10.next=6;return e(s);case 6:a(s.getAttribute("aria-disabled")).to.equal("true");case 7:case"end":return _context10.stop();}},_callee9);}))),it("should set initial attributes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var e;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return i(t(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context11.sent;a(e.getAttribute("role")).to.equal("radio"),a(e.getAttribute("tabindex")).to.equal("-1"),a(e.getAttribute("aria-disabled")).to.equal("false");case 4:case"end":return _context11.stop();}},_callee10);})));});}};});
|
2
2
|
//# sourceMappingURL=nile-radio.test.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
import{f as i,a as e,e as a}from"../fixture-
|
1
|
+
import{f as i,a as e,e as a}from"../fixture-8edec91c.esm.js";import{html as t}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-radio.esm.js";import"tslib";import"lit/decorators.js";import"./nile-radio.css.esm.js";import"lit/directives/class-map.js";import"../internal/watch.esm.js";import"../internal/nile-element.esm.js";describe("NileRadio",(()=>{it("should have the correct default properties",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);e(a.checked).to.be.false,e(a.disabled).to.be.false,e(a.size).to.equal("medium")})),it("should reflect the disabled attribute",(async()=>{const a=await i(t`<nile-radio disabled></nile-radio>`);e(a.disabled).to.be.true,e(a.hasAttribute("aria-disabled")).to.be.true})),it("should update aria-checked when checked changes",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);a.checked=!0,await a.updateComplete,e(a.getAttribute("aria-checked")).to.equal("true")})),it("should toggle checked state on click when not disabled",(async()=>{const s=await i(t`<nile-radio></nile-radio>`);s.click(),await a(s),e(s.checked).to.be.true})),it("should not toggle checked state on click when disabled",(async()=>{const s=await i(t`<nile-radio disabled></nile-radio>`);s.click(),await a(s),e(s.checked).to.be.false})),it("should emit nile-blur event on blur",(async()=>{const a=await i(t`<nile-radio></nile-radio>`),s=new Promise((i=>a.addEventListener("nile-blur",i)));a.dispatchEvent(new Event("blur"));const o=await s;e(o).to.exist})),it("should emit nile-focus event on focus",(async()=>{const a=await i(t`<nile-radio></nile-radio>`),s=new Promise((i=>a.addEventListener("nile-focus",i)));a.dispatchEvent(new Event("focus"));const o=await s;e(o).to.exist})),it("should apply the correct classes based on state",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);a.checked=!0,a.disabled=!0,a.size="medium",await a.updateComplete;const s=a.shadowRoot.querySelector('[part="base"]');e(s.classList.contains("radio--checked")).to.be.true,e(s.classList.contains("radio--disabled")).to.be.true,e(s.classList.contains("radio--medium")).to.be.true})),it("should update aria-disabled when disabled changes",(async()=>{const s=await i(t`<nile-radio></nile-radio>`);s.disabled=!0,await a(s),e(s.getAttribute("aria-disabled")).to.equal("true")})),it("should set initial attributes correctly",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);e(a.getAttribute("role")).to.equal("radio"),e(a.getAttribute("tabindex")).to.equal("-1"),e(a.getAttribute("aria-disabled")).to.equal("false")}))}));
|