@aquera/nile-elements 1.5.2 → 1.5.3
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 +6 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +239 -195
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.css.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.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 +2 -2
- package/dist/nile-file-preview/nile-file-preview.esm.js +1 -1
- 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 +55 -25
- 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/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 +15 -5
- package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js +2 -2
- 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 +36 -32
- 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/types/index.cjs.js +1 -1
- package/dist/nile-file-upload/types/index.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 +4 -2
- 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-grid/nile-grid-head-item/nile-grid-head-item.cjs.js +1 -1
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.esm.js +3 -3
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +1 -1
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.esm.js +1 -1
- package/dist/nile-grid/nile-grid.cjs.js +1 -1
- package/dist/nile-grid/nile-grid.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid.esm.js +2 -2
- package/dist/nile-grid/nile-grid.layout.cjs.js +1 -1
- package/dist/nile-grid/nile-grid.layout.esm.js +1 -1
- package/dist/nile-grid/nile-grid.resize.cjs.js +1 -1
- package/dist/nile-grid/nile-grid.resize.esm.js +1 -1
- package/dist/nile-grid/nile-grid.utils.cjs.js +1 -1
- package/dist/nile-grid/nile-grid.utils.esm.js +1 -1
- package/dist/nile-grid/nile-grid.width.cjs.js +1 -1
- package/dist/nile-grid/nile-grid.width.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid.width.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-popover/index.cjs.js +1 -1
- package/dist/nile-popover/index.esm.js +1 -1
- package/dist/nile-popover/nile-popover.cjs.js +4 -4
- package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
- package/dist/nile-popover/nile-popover.esm.js +11 -6
- package/dist/src/nile-accordion/nile-accordian.test.js +101 -99
- package/dist/src/nile-accordion/nile-accordian.test.js.map +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.css.js +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.css.js.map +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.js +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.test.js +104 -112
- package/dist/src/nile-auto-complete/nile-auto-complete.test.js.map +1 -1
- package/dist/src/nile-avatar/nile-avatar.test.d.ts +0 -1
- package/dist/src/nile-avatar/nile-avatar.test.js +103 -87
- package/dist/src/nile-avatar/nile-avatar.test.js.map +1 -1
- package/dist/src/nile-badge/nile-badge.test.js +554 -35
- package/dist/src/nile-badge/nile-badge.test.js.map +1 -1
- package/dist/src/nile-breadcrumb/nile-breadcrumb.test.d.ts +2 -0
- package/dist/src/nile-breadcrumb/nile-breadcrumb.test.js +106 -0
- package/dist/src/nile-breadcrumb/nile-breadcrumb.test.js.map +1 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.d.ts +1 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.js +108 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.js.map +1 -0
- package/dist/src/nile-button/nile-button.test.js +499 -39
- package/dist/src/nile-button/nile-button.test.js.map +1 -1
- package/dist/src/nile-button-filter/nile-button-filter.test.d.ts +1 -0
- package/dist/src/nile-button-filter/nile-button-filter.test.js +108 -0
- package/dist/src/nile-button-filter/nile-button-filter.test.js.map +1 -0
- package/dist/src/nile-button-toggle/nile-button-toggle.test.d.ts +1 -0
- package/dist/src/nile-button-toggle/nile-button-toggle.test.js +108 -0
- package/dist/src/nile-button-toggle/nile-button-toggle.test.js.map +1 -0
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.d.ts +1 -1
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js +105 -104
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.test.d.ts +0 -6
- package/dist/src/nile-calendar/nile-calendar.test.js +103 -318
- package/dist/src/nile-calendar/nile-calendar.test.js.map +1 -1
- package/dist/src/nile-card/nile-card.test.js +102 -66
- package/dist/src/nile-card/nile-card.test.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.test.js +547 -108
- package/dist/src/nile-checkbox/nile-checkbox.test.js.map +1 -1
- package/dist/src/nile-chip/nile-chip.test.d.ts +0 -2
- package/dist/src/nile-chip/nile-chip.test.js +101 -102
- package/dist/src/nile-chip/nile-chip.test.js.map +1 -1
- package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.d.ts +1 -0
- package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.js +108 -0
- package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.js.map +1 -0
- package/dist/src/nile-date-picker/nile-date-picker.test.d.ts +1 -0
- package/dist/src/nile-date-picker/nile-date-picker.test.js +108 -0
- package/dist/src/nile-date-picker/nile-date-picker.test.js.map +1 -0
- package/dist/src/nile-dialog/nile-dialog.test.d.ts +0 -1
- package/dist/src/nile-dialog/nile-dialog.test.js +104 -126
- package/dist/src/nile-dialog/nile-dialog.test.js.map +1 -1
- package/dist/src/nile-divider/nile-divider.test.d.ts +1 -0
- package/dist/src/nile-divider/nile-divider.test.js +560 -0
- package/dist/src/nile-divider/nile-divider.test.js.map +1 -0
- package/dist/src/nile-drawer/nile-drawer.test.js +106 -86
- package/dist/src/nile-drawer/nile-drawer.test.js.map +1 -1
- package/dist/src/nile-dropdown/nile-dropdown.test.js +104 -148
- package/dist/src/nile-dropdown/nile-dropdown.test.js.map +1 -1
- package/dist/src/nile-empty-state/nile-empty-state.test.js +107 -59
- package/dist/src/nile-empty-state/nile-empty-state.test.js.map +1 -1
- package/dist/src/nile-error-message/nile-error-message.test.js +105 -55
- package/dist/src/nile-error-message/nile-error-message.test.js.map +1 -1
- package/dist/src/nile-error-notification/nile-error-notification.test.d.ts +1 -0
- package/dist/src/nile-error-notification/nile-error-notification.test.js +108 -0
- package/dist/src/nile-error-notification/nile-error-notification.test.js.map +1 -0
- package/dist/src/nile-file-preview/nile-file-preview.css.js +2 -2
- 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 +1 -4
- package/dist/src/nile-file-preview/nile-file-preview.js +21 -47
- 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 +6 -6
- package/dist/src/nile-file-preview/nile-file-preview.template.js +53 -23
- package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +0 -6
- package/dist/src/nile-file-preview/nile-file-preview.test.js +106 -28
- package/dist/src/nile-file-preview/nile-file-preview.test.js.map +1 -1
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +3 -2
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +32 -7
- 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 +15 -5
- 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 +13 -1
- package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.template.js +19 -15
- package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +0 -6
- package/dist/src/nile-file-upload/nile-file-upload.test.js +106 -28
- package/dist/src/nile-file-upload/nile-file-upload.test.js.map +1 -1
- package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +17 -3
- package/dist/src/nile-file-upload/types/file-upload.enums.js +17 -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 -0
- package/dist/src/nile-file-upload/utils/drag-drop.util.js +14 -8
- package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -1
- package/dist/src/nile-file-upload/utils/file-validation.util.js +89 -10
- package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js +102 -77
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +1 -1
- package/dist/src/nile-form-error-message/nile-form-error-message.test.d.ts +1 -0
- package/dist/src/nile-form-error-message/nile-form-error-message.test.js +108 -0
- package/dist/src/nile-form-error-message/nile-form-error-message.test.js.map +1 -0
- package/dist/src/nile-form-group/nile-form-group.test.js +104 -51
- package/dist/src/nile-form-group/nile-form-group.test.js.map +1 -1
- package/dist/src/nile-form-help-text/nile-form-help-text.test.js +104 -84
- package/dist/src/nile-form-help-text/nile-form-help-text.test.js.map +1 -1
- package/dist/src/nile-format-date/nile-format-date.test.d.ts +1 -0
- package/dist/src/nile-format-date/nile-format-date.test.js +108 -0
- package/dist/src/nile-format-date/nile-format-date.test.js.map +1 -0
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.js +6 -5
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.js.map +1 -1
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.d.ts +14 -0
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.js +24 -0
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.js.map +1 -1
- package/dist/src/nile-grid/nile-grid.d.ts +1 -0
- package/dist/src/nile-grid/nile-grid.js +5 -1
- package/dist/src/nile-grid/nile-grid.js.map +1 -1
- package/dist/src/nile-grid/nile-grid.utils.d.ts +6 -0
- package/dist/src/nile-grid/nile-grid.utils.js +13 -0
- package/dist/src/nile-grid/nile-grid.utils.js.map +1 -1
- package/dist/src/nile-heading/nile-heading.test.d.ts +1 -0
- package/dist/src/nile-heading/nile-heading.test.js +108 -0
- package/dist/src/nile-heading/nile-heading.test.js.map +1 -0
- package/dist/src/nile-hero/nile-hero.test.js +101 -38
- package/dist/src/nile-hero/nile-hero.test.js.map +1 -1
- package/dist/src/nile-icon/nile-icon.test.js +103 -40
- package/dist/src/nile-icon/nile-icon.test.js.map +1 -1
- package/dist/src/nile-icon-button/nile-icon-button.test.d.ts +1 -0
- package/dist/src/nile-icon-button/nile-icon-button.test.js +568 -0
- package/dist/src/nile-icon-button/nile-icon-button.test.js.map +1 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.test.d.ts +1 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.test.js +108 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.test.js.map +1 -0
- package/dist/src/nile-input/nile-input.js +1 -1
- package/dist/src/nile-input/nile-input.js.map +1 -1
- package/dist/src/nile-input/nile-input.test.js +109 -139
- package/dist/src/nile-input/nile-input.test.js.map +1 -1
- package/dist/src/nile-link/nile-link.test.js +103 -67
- package/dist/src/nile-link/nile-link.test.js.map +1 -1
- package/dist/src/nile-list/nile-list.test.d.ts +1 -0
- package/dist/src/nile-list/nile-list.test.js +108 -0
- package/dist/src/nile-list/nile-list.test.js.map +1 -0
- package/dist/src/nile-list-item/nile-list-item.test.d.ts +1 -0
- package/dist/src/nile-list-item/nile-list-item.test.js +108 -0
- package/dist/src/nile-list-item/nile-list-item.test.js.map +1 -0
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.d.ts +2 -0
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.js +109 -0
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.js.map +1 -0
- package/dist/src/nile-loader/nile-loader.test.js +107 -40
- package/dist/src/nile-loader/nile-loader.test.js.map +1 -1
- package/dist/src/nile-menu/nile-menu.test.d.ts +1 -0
- package/dist/src/nile-menu/nile-menu.test.js +113 -0
- package/dist/src/nile-menu/nile-menu.test.js.map +1 -0
- package/dist/src/nile-menu-item/nile-menu-item.test.d.ts +1 -0
- package/dist/src/nile-menu-item/nile-menu-item.test.js +113 -0
- package/dist/src/nile-menu-item/nile-menu-item.test.js.map +1 -0
- package/dist/src/nile-option/nile-option.test.d.ts +1 -0
- package/dist/src/nile-option/nile-option.test.js +108 -0
- package/dist/src/nile-option/nile-option.test.js.map +1 -0
- package/dist/src/nile-option-group/nile-option-group.test.d.ts +1 -0
- package/dist/src/nile-option-group/nile-option-group.test.js +108 -0
- package/dist/src/nile-option-group/nile-option-group.test.js.map +1 -0
- package/dist/src/nile-page-header/nile-page-header.test.d.ts +1 -0
- package/dist/src/nile-page-header/nile-page-header.test.js +108 -0
- package/dist/src/nile-page-header/nile-page-header.test.js.map +1 -0
- package/dist/src/nile-pagination/nile-pagination.test.d.ts +1 -0
- package/dist/src/nile-pagination/nile-pagination.test.js +108 -0
- package/dist/src/nile-pagination/nile-pagination.test.js.map +1 -0
- package/dist/src/nile-popover/nile-popover.test.js +103 -68
- package/dist/src/nile-popover/nile-popover.test.js.map +1 -1
- package/dist/src/nile-popup/nile-popup.test.js +104 -65
- package/dist/src/nile-popup/nile-popup.test.js.map +1 -1
- package/dist/src/nile-progress-bar/nile-progress-bar.test.js +104 -44
- package/dist/src/nile-progress-bar/nile-progress-bar.test.js.map +1 -1
- package/dist/src/nile-radio/nile-radio.test.js +103 -66
- package/dist/src/nile-radio/nile-radio.test.js.map +1 -1
- package/dist/src/nile-radio-group/nile-radio-group.test.d.ts +0 -1
- package/dist/src/nile-radio-group/nile-radio-group.test.js +105 -171
- package/dist/src/nile-radio-group/nile-radio-group.test.js.map +1 -1
- package/dist/src/nile-section-message/nile-section-message.test.d.ts +1 -0
- package/dist/src/nile-section-message/nile-section-message.test.js +108 -0
- package/dist/src/nile-section-message/nile-section-message.test.js.map +1 -0
- package/dist/src/nile-select/nile-select.test.d.ts +0 -5
- package/dist/src/nile-select/nile-select.test.js +105 -244
- package/dist/src/nile-select/nile-select.test.js.map +1 -1
- package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.d.ts +1 -0
- package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.js +108 -0
- package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.js.map +1 -0
- package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js +104 -50
- package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js.map +1 -1
- package/dist/src/nile-slider/nile-slider.test.d.ts +1 -0
- package/dist/src/nile-slider/nile-slider.test.js +108 -0
- package/dist/src/nile-slider/nile-slider.test.js.map +1 -0
- package/dist/src/nile-spinner/nile-spinner.test.d.ts +1 -0
- package/dist/src/nile-spinner/nile-spinner.test.js +569 -0
- package/dist/src/nile-spinner/nile-spinner.test.js.map +1 -0
- package/dist/src/nile-split-panel/nile-split-panel.test.d.ts +1 -0
- package/dist/src/nile-split-panel/nile-split-panel.test.js +108 -0
- package/dist/src/nile-split-panel/nile-split-panel.test.js.map +1 -0
- package/dist/src/nile-stepper/nile-stepper.test.d.ts +2 -0
- package/dist/src/nile-stepper/nile-stepper.test.js +109 -0
- package/dist/src/nile-stepper/nile-stepper.test.js.map +1 -0
- package/dist/src/nile-stepper-item/nile-stepper-item.test.d.ts +1 -0
- package/dist/src/nile-stepper-item/nile-stepper-item.test.js +108 -0
- package/dist/src/nile-stepper-item/nile-stepper-item.test.js.map +1 -0
- package/dist/src/nile-tab/nile-tab.test.d.ts +1 -0
- package/dist/src/nile-tab/nile-tab.test.js +108 -0
- package/dist/src/nile-tab/nile-tab.test.js.map +1 -0
- package/dist/src/nile-tab-group/nile-tab-group.test.js +105 -172
- package/dist/src/nile-tab-group/nile-tab-group.test.js.map +1 -1
- package/dist/src/nile-tab-panel/nile-tab-panel.test.d.ts +1 -0
- package/dist/src/nile-tab-panel/nile-tab-panel.test.js +108 -0
- package/dist/src/nile-tab-panel/nile-tab-panel.test.js.map +1 -0
- package/dist/src/nile-tag/nile-tag.test.d.ts +1 -0
- package/dist/src/nile-tag/nile-tag.test.js +574 -0
- package/dist/src/nile-tag/nile-tag.test.js.map +1 -0
- package/dist/src/nile-textarea/nile-textarea.test.d.ts +1 -1
- package/dist/src/nile-textarea/nile-textarea.test.js +105 -84
- package/dist/src/nile-textarea/nile-textarea.test.js.map +1 -1
- package/dist/src/nile-title/nile-title.test.d.ts +1 -0
- package/dist/src/nile-title/nile-title.test.js +108 -0
- package/dist/src/nile-title/nile-title.test.js.map +1 -0
- package/dist/src/nile-toast/nile-toast.test.d.ts +1 -0
- package/dist/src/nile-toast/nile-toast.test.js +526 -0
- package/dist/src/nile-toast/nile-toast.test.js.map +1 -0
- package/dist/src/nile-toolbar/nile-toolbar.test.d.ts +1 -0
- package/dist/src/nile-toolbar/nile-toolbar.test.js +108 -0
- package/dist/src/nile-toolbar/nile-toolbar.test.js.map +1 -0
- package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +1 -0
- package/dist/src/nile-tooltip/nile-tooltip.test.js +546 -0
- package/dist/src/nile-tooltip/nile-tooltip.test.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +1 -7
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js +105 -628
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/rollup.config.js +7 -1
- package/src/nile-accordion/nile-accordian.test.ts +102 -116
- package/src/nile-auto-complete/nile-auto-complete.css.ts +1 -1
- package/src/nile-auto-complete/nile-auto-complete.test.ts +102 -145
- package/src/nile-auto-complete/nile-auto-complete.ts +1 -1
- package/src/nile-avatar/nile-avatar.test.ts +102 -112
- package/src/nile-badge/nile-badge.test.ts +642 -30
- package/src/nile-breadcrumb/nile-breadcrumb.test.ts +107 -0
- package/src/nile-breadcrumb-item/nile-breadcrumb-item.test.ts +106 -0
- package/src/nile-button/nile-button.test.ts +593 -61
- package/src/nile-button-filter/nile-button-filter.test.ts +106 -0
- package/src/nile-button-toggle/nile-button-toggle.test.ts +106 -0
- package/src/nile-button-toggle-group/nile-button-toggle-group.test.ts +104 -126
- package/src/nile-calendar/nile-calendar.test.ts +102 -406
- package/src/nile-card/nile-card.test.ts +103 -71
- package/src/nile-checkbox/nile-checkbox.test.ts +614 -108
- package/src/nile-chip/nile-chip.test.ts +102 -136
- package/src/nile-circular-progressbar/nile-circular-progressbar.test.ts +106 -0
- package/src/nile-date-picker/nile-date-picker.test.ts +106 -0
- package/src/nile-dialog/nile-dialog.test.ts +102 -164
- package/src/nile-divider/nile-divider.test.ts +659 -0
- package/src/nile-drawer/nile-drawer.test.ts +105 -105
- package/src/nile-dropdown/nile-dropdown.test.ts +102 -190
- package/src/nile-empty-state/nile-empty-state.test.ts +104 -67
- package/src/nile-error-message/nile-error-message.test.ts +104 -67
- package/src/nile-error-notification/nile-error-notification.test.ts +106 -0
- package/src/nile-file-preview/nile-file-preview.css.ts +2 -2
- package/src/nile-file-preview/nile-file-preview.template.ts +59 -23
- package/src/nile-file-preview/nile-file-preview.test.ts +105 -37
- package/src/nile-file-preview/nile-file-preview.ts +23 -56
- package/src/nile-file-preview/utils/nile-file-preview.util.ts +37 -8
- package/src/nile-file-upload/nile-file-upload.css.ts +15 -5
- package/src/nile-file-upload/nile-file-upload.template.ts +22 -18
- package/src/nile-file-upload/nile-file-upload.test.ts +105 -37
- package/src/nile-file-upload/nile-file-upload.ts +11 -3
- package/src/nile-file-upload/types/file-upload.enums.ts +20 -4
- package/src/nile-file-upload/utils/drag-drop.util.ts +20 -11
- package/src/nile-file-upload/utils/file-validation.util.ts +104 -22
- package/src/nile-filter-chip/nile-filter-chip.test.ts +103 -89
- package/src/nile-form-error-message/nile-form-error-message.test.ts +106 -0
- package/src/nile-form-group/nile-form-group.test.ts +103 -60
- package/src/nile-form-help-text/nile-form-help-text.test.ts +102 -106
- package/src/nile-format-date/nile-format-date.test.ts +106 -0
- package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.ts +7 -5
- package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.ts +28 -0
- package/src/nile-grid/nile-grid.ts +6 -1
- package/src/nile-grid/nile-grid.utils.ts +18 -1
- package/src/nile-heading/nile-heading.test.ts +106 -0
- package/src/nile-hero/nile-hero.test.ts +103 -42
- package/src/nile-icon/nile-icon.test.ts +103 -50
- package/src/nile-icon-button/nile-icon-button.test.ts +667 -0
- package/src/nile-inline-edit/nile-inline-edit.test.ts +106 -0
- package/src/nile-input/nile-input.test.ts +105 -164
- package/src/nile-input/nile-input.ts +1 -1
- package/src/nile-link/nile-link.test.ts +104 -81
- package/src/nile-list/nile-list.test.ts +106 -0
- package/src/nile-list-item/nile-list-item.test.ts +106 -0
- package/src/nile-lite-tooltip/nile-lite-tooltip.test.ts +107 -0
- package/src/nile-loader/nile-loader.test.ts +103 -48
- package/src/nile-menu/nile-menu.test.ts +106 -0
- package/src/nile-menu-item/nile-menu-item.test.ts +106 -0
- package/src/nile-option/nile-option.test.ts +106 -0
- package/src/nile-option-group/nile-option-group.test.ts +106 -0
- package/src/nile-page-header/nile-page-header.test.ts +106 -0
- package/src/nile-pagination/nile-pagination.test.ts +106 -0
- package/src/nile-popover/nile-popover.test.ts +103 -83
- package/src/nile-popup/nile-popup.test.ts +102 -82
- package/src/nile-progress-bar/nile-progress-bar.test.ts +103 -52
- package/src/nile-radio/nile-radio.test.ts +103 -78
- package/src/nile-radio-group/nile-radio-group.test.ts +104 -213
- package/src/nile-section-message/nile-section-message.test.ts +106 -0
- package/src/nile-select/nile-select.test.ts +105 -308
- package/src/nile-skeleton-loader/nile-skeleton-loader.test.ts +106 -0
- package/src/nile-slide-toggle/nile-slide-toggle.test.ts +103 -58
- package/src/nile-slider/nile-slider.test.ts +106 -0
- package/src/nile-spinner/nile-spinner.test.ts +668 -0
- package/src/nile-split-panel/nile-split-panel.test.ts +106 -0
- package/src/nile-stepper/nile-stepper.test.ts +107 -0
- package/src/nile-stepper-item/nile-stepper-item.test.ts +106 -0
- package/src/nile-tab/nile-tab.test.ts +106 -0
- package/src/nile-tab-group/nile-tab-group.test.ts +104 -211
- package/src/nile-tab-panel/nile-tab-panel.test.ts +106 -0
- package/src/nile-tag/nile-tag.test.ts +675 -0
- package/src/nile-textarea/nile-textarea.test.ts +104 -100
- package/src/nile-title/nile-title.test.ts +106 -0
- package/src/nile-toast/nile-toast.test.ts +625 -0
- package/src/nile-toolbar/nile-toolbar.test.ts +106 -0
- package/src/nile-tooltip/nile-tooltip.test.ts +645 -0
- package/src/nile-virtual-select/nile-virtual-select.test.ts +104 -772
- package/vscode-html-custom-data.json +8 -3
- package/web-test-runner.config.mjs +4 -2
- package/dist/axe.min-2720cd56.esm.js +0 -1
- package/dist/axe.min-69d47269.cjs.js +0 -2
- package/dist/axe.min-69d47269.cjs.js.map +0 -1
- package/dist/css-tag-bb10c0fa.cjs.js +0 -6
- package/dist/css-tag-bb10c0fa.cjs.js.map +0 -1
- package/dist/css-tag-dc564feb.esm.js +0 -6
- package/dist/fixture-958445f8.cjs.js +0 -395
- package/dist/fixture-958445f8.cjs.js.map +0 -1
- package/dist/fixture-985bba12.esm.js +0 -569
- package/dist/nile-accordion/nile-accordian.test.cjs.js +0 -2
- package/dist/nile-accordion/nile-accordian.test.cjs.js.map +0 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +0 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +0 -2
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +0 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +0 -9
- package/dist/nile-avatar/nile-avatar.test.cjs.js +0 -2
- package/dist/nile-avatar/nile-avatar.test.cjs.js.map +0 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +0 -11
- package/dist/nile-badge/nile-badge.test.cjs.js +0 -2
- package/dist/nile-badge/nile-badge.test.cjs.js.map +0 -1
- package/dist/nile-badge/nile-badge.test.esm.js +0 -1
- package/dist/nile-button/nile-button.test.cjs.js +0 -2
- package/dist/nile-button/nile-button.test.cjs.js.map +0 -1
- package/dist/nile-button/nile-button.test.esm.js +0 -4
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +0 -2
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js.map +0 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +0 -49
- package/dist/nile-calendar/nile-calendar.test.cjs.js +0 -2
- package/dist/nile-calendar/nile-calendar.test.cjs.js.map +0 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +0 -11
- package/dist/nile-card/nile-card.test.cjs.js +0 -2
- package/dist/nile-card/nile-card.test.cjs.js.map +0 -1
- package/dist/nile-card/nile-card.test.esm.js +0 -51
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +0 -2
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js.map +0 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +0 -17
- package/dist/nile-chip/nile-chip.test.cjs.js +0 -2
- package/dist/nile-chip/nile-chip.test.cjs.js.map +0 -1
- package/dist/nile-chip/nile-chip.test.esm.js +0 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +0 -2
- package/dist/nile-dialog/nile-dialog.test.cjs.js.map +0 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +0 -7
- package/dist/nile-drawer/nile-drawer.test.cjs.js +0 -2
- package/dist/nile-drawer/nile-drawer.test.cjs.js.map +0 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +0 -17
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +0 -2
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js.map +0 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +0 -28
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +0 -2
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js.map +0 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +0 -9
- package/dist/nile-error-message/nile-error-message.test.cjs.js +0 -2
- package/dist/nile-error-message/nile-error-message.test.cjs.js.map +0 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +0 -1
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js +0 -2
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +0 -1
- package/dist/nile-file-preview/nile-file-preview.test.esm.js +0 -1
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js +0 -2
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +0 -1
- package/dist/nile-file-upload/nile-file-upload.test.esm.js +0 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +0 -2
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js.map +0 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +0 -20
- package/dist/nile-form-group/nile-form-group.test.cjs.js +0 -2
- package/dist/nile-form-group/nile-form-group.test.cjs.js.map +0 -1
- package/dist/nile-form-group/nile-form-group.test.esm.js +0 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +0 -2
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js.map +0 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +0 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +0 -2
- package/dist/nile-hero/nile-hero.test.cjs.js.map +0 -1
- package/dist/nile-hero/nile-hero.test.esm.js +0 -14
- package/dist/nile-icon/nile-icon.test.cjs.js +0 -2
- package/dist/nile-icon/nile-icon.test.cjs.js.map +0 -1
- package/dist/nile-icon/nile-icon.test.esm.js +0 -1
- package/dist/nile-input/nile-input.test.cjs.js +0 -2
- package/dist/nile-input/nile-input.test.cjs.js.map +0 -1
- package/dist/nile-input/nile-input.test.esm.js +0 -17
- package/dist/nile-link/nile-link.test.cjs.js +0 -2
- package/dist/nile-link/nile-link.test.cjs.js.map +0 -1
- package/dist/nile-link/nile-link.test.esm.js +0 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +0 -2
- package/dist/nile-loader/nile-loader.test.cjs.js.map +0 -1
- package/dist/nile-loader/nile-loader.test.esm.js +0 -1
- package/dist/nile-popover/nile-popover.test.cjs.js +0 -2
- package/dist/nile-popover/nile-popover.test.cjs.js.map +0 -1
- package/dist/nile-popover/nile-popover.test.esm.js +0 -21
- package/dist/nile-popup/nile-popup.test.cjs.js +0 -2
- package/dist/nile-popup/nile-popup.test.cjs.js.map +0 -1
- package/dist/nile-popup/nile-popup.test.esm.js +0 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +0 -2
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js.map +0 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +0 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +0 -2
- package/dist/nile-radio/nile-radio.test.cjs.js.map +0 -1
- package/dist/nile-radio/nile-radio.test.esm.js +0 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +0 -2
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js.map +0 -1
- package/dist/nile-radio-group/nile-radio-group.test.esm.js +0 -57
- package/dist/nile-select/nile-select.test.cjs.js +0 -2
- package/dist/nile-select/nile-select.test.cjs.js.map +0 -1
- package/dist/nile-select/nile-select.test.esm.js +0 -55
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +0 -2
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js.map +0 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +0 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +0 -2
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +0 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +0 -65
- package/dist/nile-textarea/nile-textarea.test.cjs.js +0 -2
- package/dist/nile-textarea/nile-textarea.test.cjs.js.map +0 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +0 -1
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +0 -2
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +0 -1
- package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +0 -93
- package/dist/scopedElementsWrapper-31107e48.esm.js +0 -1
- package/dist/scopedElementsWrapper-9b188ea6.cjs.js +0 -2
- package/dist/scopedElementsWrapper-9b188ea6.cjs.js.map +0 -1
- package/dist/sinon-esm-68c8e378.esm.js +0 -1
- package/dist/sinon-esm-97570c13.cjs.js +0 -2
- package/dist/sinon-esm-97570c13.cjs.js.map +0 -1
|
@@ -1,30 +1,108 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
14
|
-
it('
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
it('
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
it('
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
1
|
+
import { expect, fixture, html } from '@open-wc/testing';
|
|
2
|
+
import './nile-file-preview';
|
|
3
|
+
describe('NileFilePreview', () => {
|
|
4
|
+
it('1. renders', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el).to.exist; });
|
|
5
|
+
it('2. shadow root', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot).to.not.be.null; });
|
|
6
|
+
it('3. tag name', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.tagName.toLowerCase()).to.equal('nile-file-preview'); });
|
|
7
|
+
it('4. is defined', async () => { expect(customElements.get('nile-file-preview')).to.exist; });
|
|
8
|
+
it('5. has styles', async () => { expect((await import('./nile-file-preview')).NileFilePreview.styles).to.exist; });
|
|
9
|
+
it('6. shadow mode', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.mode).to.equal('open'); });
|
|
10
|
+
it('7. isConnected', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.isConnected).to.be.true; });
|
|
11
|
+
it('8. removal', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.remove(); expect(el.isConnected).to.be.false; });
|
|
12
|
+
it('9. outerHTML', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.outerHTML).to.contain('nile-file-preview'); });
|
|
13
|
+
it('10. matches', async () => { const el = await fixture(html `<nile-file-preview class="x"></nile-file-preview>`); expect(el.matches('.x')).to.be.true; });
|
|
14
|
+
it('11. closest', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.closest('nile-file-preview')).to.equal(el); });
|
|
15
|
+
it('12. cloneNode', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.cloneNode(true).tagName.toLowerCase()).to.equal('nile-file-preview'); });
|
|
16
|
+
it('13. dispatchEvent', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });
|
|
17
|
+
it('14. updateComplete', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });
|
|
18
|
+
it('15. render method', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.render).to.be.a('function'); });
|
|
19
|
+
it('16. shadowRoot host', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.host).to.equal(el); });
|
|
20
|
+
it('17. class attr', async () => { const el = await fixture(html `<nile-file-preview class="fp"></nile-file-preview>`); expect(el.classList.contains('fp')).to.be.true; });
|
|
21
|
+
it('18. id attr', async () => { const el = await fixture(html `<nile-file-preview id="fp1"></nile-file-preview>`); expect(el.id).to.equal('fp1'); });
|
|
22
|
+
it('19. hidden', async () => { const el = await fixture(html `<nile-file-preview hidden></nile-file-preview>`); expect(el.hidden).to.be.true; });
|
|
23
|
+
it('20. nodeType', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.nodeType).to.equal(1); });
|
|
24
|
+
it('21. localName', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.localName).to.equal('nile-file-preview'); });
|
|
25
|
+
it('22. namespaceURI', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });
|
|
26
|
+
it('23. ownerDocument', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.ownerDocument).to.equal(document); });
|
|
27
|
+
it('24. multiple instances', async () => { const c = await fixture(html `<div><nile-file-preview></nile-file-preview><nile-file-preview></nile-file-preview></div>`); expect(c.querySelectorAll('nile-file-preview').length).to.equal(2); });
|
|
28
|
+
it('25. parent-child', async () => { const c = await fixture(html `<div><nile-file-preview></nile-file-preview></div>`); expect(c.querySelector('nile-file-preview').parentElement).to.equal(c); });
|
|
29
|
+
it('26. createElement', async () => { const el = document.createElement('nile-file-preview'); document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });
|
|
30
|
+
it('27. dataset', async () => { const el = await fixture(html `<nile-file-preview data-idx="0"></nile-file-preview>`); expect(el.dataset.idx).to.equal('0'); });
|
|
31
|
+
it('28. classList add', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });
|
|
32
|
+
it('29. getBoundingClientRect', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.getBoundingClientRect()).to.exist; });
|
|
33
|
+
it('30. style attr', async () => { const el = await fixture(html `<nile-file-preview style="color:red"></nile-file-preview>`); expect(el.style.color).to.equal('red'); });
|
|
34
|
+
it('31. aria-label', async () => { const el = await fixture(html `<nile-file-preview aria-label="FP"></nile-file-preview>`); expect(el.getAttribute('aria-label')).to.equal('FP'); });
|
|
35
|
+
it('32. dir', async () => { const el = await fixture(html `<nile-file-preview dir="rtl"></nile-file-preview>`); expect(el.dir).to.equal('rtl'); });
|
|
36
|
+
it('33. lang attr', async () => { const el = await fixture(html `<nile-file-preview lang="en"></nile-file-preview>`); expect(el.lang).to.equal('en'); });
|
|
37
|
+
it('34. tabindex', async () => { const el = await fixture(html `<nile-file-preview tabindex="0"></nile-file-preview>`); expect(el.getAttribute('tabindex')).to.equal('0'); });
|
|
38
|
+
it('35. requestUpdate', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });
|
|
39
|
+
it('36. shadow childNodes', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.childNodes.length).to.be.greaterThan(0); });
|
|
40
|
+
it('37. scrollIntoView', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.scrollIntoView).to.be.a('function'); });
|
|
41
|
+
it('38. focus method', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.focus).to.be.a('function'); });
|
|
42
|
+
it('39. blur method', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.blur).to.be.a('function'); });
|
|
43
|
+
it('40. class toggle', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });
|
|
44
|
+
it('41. toggle hidden', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.hidden = true; expect(el.hidden).to.be.true; });
|
|
45
|
+
it('42. dispatchCustomEvent', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); let d; el.addEventListener('t', ((e) => { d = e.detail; })); el.dispatchEvent(new CustomEvent('t', { detail: 'x' })); expect(d).to.equal('x'); });
|
|
46
|
+
it('43. nested in div', async () => { const c = await fixture(html `<div><nile-file-preview></nile-file-preview></div>`); expect(c.querySelector('nile-file-preview')).to.exist; });
|
|
47
|
+
it('44. default errorMessage', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.errorMessage).to.equal(''); });
|
|
48
|
+
it('45. default fileUrl', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.fileUrl).to.equal(''); });
|
|
49
|
+
it('46. default uploadStatus', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.uploadStatus).to.equal(0); });
|
|
50
|
+
it('47. default state', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.state).to.exist; });
|
|
51
|
+
it('48. default variant', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.variant).to.exist; });
|
|
52
|
+
it('49. set errorMessage', async () => { const el = await fixture(html `<nile-file-preview error-message="Error"></nile-file-preview>`); expect(el.getAttribute('error-message')).to.equal('Error'); });
|
|
53
|
+
it('50. set fileUrl', async () => { const el = await fixture(html `<nile-file-preview file-url="http://test.com/f.png"></nile-file-preview>`); expect(el.getAttribute('file-url')).to.equal('http://test.com/f.png'); });
|
|
54
|
+
it('51. set inputFileName', async () => { const el = await fixture(html `<nile-file-preview input-file-name="test.png"></nile-file-preview>`); expect(el.getAttribute('input-file-name')).to.equal('test.png'); });
|
|
55
|
+
it('52. no canvas', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('canvas')).to.be.null; });
|
|
56
|
+
it('53. no video', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('video')).to.be.null; });
|
|
57
|
+
it('54. no audio', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('audio')).to.be.null; });
|
|
58
|
+
it('55. no nav', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nav')).to.be.null; });
|
|
59
|
+
it('56. no aside', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('aside')).to.be.null; });
|
|
60
|
+
it('57. no table', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('table')).to.be.null; });
|
|
61
|
+
it('58. no anchor', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('a')).to.be.null; });
|
|
62
|
+
it('59. no svg', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('svg')).to.be.null; });
|
|
63
|
+
it('60. no form', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('form')).to.be.null; });
|
|
64
|
+
it('61. title attr', async () => { const el = await fixture(html `<nile-file-preview title="FP"></nile-file-preview>`); expect(el.title).to.equal('FP'); });
|
|
65
|
+
it('62. no h1', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('h1')).to.be.null; });
|
|
66
|
+
it('63. no pre', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('pre')).to.be.null; });
|
|
67
|
+
it('64. no code', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('code')).to.be.null; });
|
|
68
|
+
it('65. no hr', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('hr')).to.be.null; });
|
|
69
|
+
it('66. no ul', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('ul')).to.be.null; });
|
|
70
|
+
it('67. no textarea', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('textarea')).to.be.null; });
|
|
71
|
+
it('68. no select', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('select')).to.be.null; });
|
|
72
|
+
it('69. no nile-badge', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-badge')).to.be.null; });
|
|
73
|
+
it('70. no nile-radio', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-radio')).to.be.null; });
|
|
74
|
+
it('71. no nile-dialog', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-dialog')).to.be.null; });
|
|
75
|
+
it('72. no nile-drawer', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-drawer')).to.be.null; });
|
|
76
|
+
it('73. no nile-slider', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-slider')).to.be.null; });
|
|
77
|
+
it('74. no nile-accordion', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-accordion')).to.be.null; });
|
|
78
|
+
it('75. setAttribute data', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });
|
|
79
|
+
it('76. removeAttribute hidden', async () => { const el = await fixture(html `<nile-file-preview hidden></nile-file-preview>`); el.removeAttribute('hidden'); expect(el.hidden).to.be.false; });
|
|
80
|
+
it('77. setAttribute class', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });
|
|
81
|
+
it('78. aria-describedby', async () => { const el = await fixture(html `<nile-file-preview aria-describedby="d"></nile-file-preview>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });
|
|
82
|
+
it('79. multiple re-renders', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); for (let i = 0; i < 3; i++) {
|
|
83
|
+
el.requestUpdate();
|
|
84
|
+
await el.updateComplete;
|
|
85
|
+
} expect(el.shadowRoot).to.not.be.null; });
|
|
86
|
+
it('80. contains', async () => { const el = await fixture(html `<nile-file-preview><span id="s1">C</span></nile-file-preview>`); expect(el.contains(el.querySelector('#s1'))).to.be.true; });
|
|
87
|
+
it('81. data attr', async () => { const el = await fixture(html `<nile-file-preview data-x="1"></nile-file-preview>`); expect(el.getAttribute('data-x')).to.equal('1'); });
|
|
88
|
+
it('82. role attr', async () => { const el = await fixture(html `<nile-file-preview role="img"></nile-file-preview>`); expect(el.getAttribute('role')).to.equal('img'); });
|
|
89
|
+
it('83. no section', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('section')).to.be.null; });
|
|
90
|
+
it('84. no header', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('header')).to.be.null; });
|
|
91
|
+
it('85. no footer', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('footer')).to.be.null; });
|
|
92
|
+
it('86. no main', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('main')).to.be.null; });
|
|
93
|
+
it('87. no article', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('article')).to.be.null; });
|
|
94
|
+
it('88. no nile-toolbar', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-toolbar')).to.be.null; });
|
|
95
|
+
it('89. no nile-link', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-link')).to.be.null; });
|
|
96
|
+
it('90. no nile-menu', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-menu')).to.be.null; });
|
|
97
|
+
it('91. no nile-textarea', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-textarea')).to.be.null; });
|
|
98
|
+
it('92. no nile-card', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-card')).to.be.null; });
|
|
99
|
+
it('93. no nile-tab', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-tab')).to.be.null; });
|
|
100
|
+
it('94. no nile-stepper', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-stepper')).to.be.null; });
|
|
101
|
+
it('95. no nile-pagination', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-pagination')).to.be.null; });
|
|
102
|
+
it('96. no nile-calendar', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-calendar')).to.be.null; });
|
|
103
|
+
it('97. no nile-select', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-select')).to.be.null; });
|
|
104
|
+
it('98. no nile-input', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-input')).to.be.null; });
|
|
105
|
+
it('99. no nile-checkbox', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-checkbox')).to.be.null; });
|
|
106
|
+
it('100. full integration', async () => { const el = await fixture(html `<nile-file-preview class="fp" id="fp1" error-message="" input-file-name="doc.pdf"></nile-file-preview>`); expect(el.id).to.equal('fp1'); expect(el.shadowRoot).to.not.be.null; expect(el.getAttribute('error-message')).to.equal(''); expect(el.getAttribute('input-file-name')).to.equal('doc.pdf'); });
|
|
29
107
|
});
|
|
30
108
|
//# sourceMappingURL=nile-file-preview.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-file-preview.test.js","sourceRoot":"","sources":["../../../src/nile-file-preview/nile-file-preview.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,qBAAqB,CAAC,CAAC,sCAAsC;AAEpE,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,IAAI,OAAoB,CAAC;IAEzB,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAA,yCAAyC,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2BAA2B,EAAE,KAAK,IAAI,EAAE;QACzC,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yCAAyC,EAAE,KAAK,IAAI,EAAE;QACvD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAA,sBAAsB,WAAW,sBAAsB,CAAC,CAAC;QAErF,MAAM,IAAI,GAAI,OAAO,CAAC,UAAW,CAAC,aAAa,CAAC,MAAM,CAAqB,CAAC;QAC5E,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC;QAEzC,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5D,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAClD,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n \nimport { fixture, assert, expect, html } from '@open-wc/testing';\nimport './nile-file-preview'; // Just import to register the element\n\ndescribe('<nile-preview>', () => {\n let element: HTMLElement;\n\n beforeEach(async () => {\n element = await fixture(html`<nile-file-preview></nile-file-preview>`);\n });\n\n it('passes accessibility test', async () => {\n await expect(element).to.be.accessible();\n });\n\n it('renders with the correct tag name', () => {\n expect(element.tagName.toLowerCase()).to.equal('nile-preview');\n });\n\n it('renders with slot content when provided', async () => {\n const testContent = 'Test Content';\n element = await fixture(html`<nile-file-preview>${testContent}</nile-file-preview>`);\n \n const slot = (element.shadowRoot!.querySelector('slot') as HTMLSlotElement);\n assert.exists(slot, 'Slot should exist');\n\n const assignedNodes = slot.assignedNodes({ flatten: true });\n expect(assignedNodes.length).to.be.greaterThan(0);\n expect(assignedNodes[0].textContent?.trim()).to.equal(testContent);\n });\n});"]}
|
|
1
|
+
{"version":3,"file":"nile-file-preview.test.js","sourceRoot":"","sources":["../../../src/nile-file-preview/nile-file-preview.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI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sourcesContent":["import { expect, fixture, html } from '@open-wc/testing';\nimport './nile-file-preview';\nimport type { NileFilePreview } from './nile-file-preview';\n\ndescribe('NileFilePreview', () => {\n it('1. renders', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el).to.exist; });\n it('2. shadow root', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot).to.not.be.null; });\n it('3. tag name', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.tagName.toLowerCase()).to.equal('nile-file-preview'); });\n it('4. is defined', async () => { expect(customElements.get('nile-file-preview')).to.exist; });\n it('5. has styles', async () => { expect((await import('./nile-file-preview')).NileFilePreview.styles).to.exist; });\n it('6. shadow mode', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.mode).to.equal('open'); });\n it('7. isConnected', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.isConnected).to.be.true; });\n it('8. removal', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.remove(); expect(el.isConnected).to.be.false; });\n it('9. outerHTML', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.outerHTML).to.contain('nile-file-preview'); });\n it('10. matches', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview class=\"x\"></nile-file-preview>`); expect(el.matches('.x')).to.be.true; });\n it('11. closest', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.closest('nile-file-preview')).to.equal(el); });\n it('12. cloneNode', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect((el.cloneNode(true) as Element).tagName.toLowerCase()).to.equal('nile-file-preview'); });\n it('13. dispatchEvent', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });\n it('14. updateComplete', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });\n it('15. render method', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.render).to.be.a('function'); });\n it('16. shadowRoot host', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.host).to.equal(el); });\n it('17. class attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview class=\"fp\"></nile-file-preview>`); expect(el.classList.contains('fp')).to.be.true; });\n it('18. id attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview id=\"fp1\"></nile-file-preview>`); expect(el.id).to.equal('fp1'); });\n it('19. hidden', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview hidden></nile-file-preview>`); expect(el.hidden).to.be.true; });\n it('20. nodeType', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.nodeType).to.equal(1); });\n it('21. localName', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.localName).to.equal('nile-file-preview'); });\n it('22. namespaceURI', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });\n it('23. ownerDocument', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.ownerDocument).to.equal(document); });\n it('24. multiple instances', async () => { const c = await fixture(html`<div><nile-file-preview></nile-file-preview><nile-file-preview></nile-file-preview></div>`); expect(c.querySelectorAll('nile-file-preview').length).to.equal(2); });\n it('25. parent-child', async () => { const c = await fixture(html`<div><nile-file-preview></nile-file-preview></div>`); expect(c.querySelector('nile-file-preview')!.parentElement).to.equal(c); });\n it('26. createElement', async () => { const el = document.createElement('nile-file-preview') as NileFilePreview; document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });\n it('27. dataset', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview data-idx=\"0\"></nile-file-preview>`); expect(el.dataset.idx).to.equal('0'); });\n it('28. classList add', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });\n it('29. getBoundingClientRect', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.getBoundingClientRect()).to.exist; });\n it('30. style attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview style=\"color:red\"></nile-file-preview>`); expect(el.style.color).to.equal('red'); });\n it('31. aria-label', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview aria-label=\"FP\"></nile-file-preview>`); expect(el.getAttribute('aria-label')).to.equal('FP'); });\n it('32. dir', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview dir=\"rtl\"></nile-file-preview>`); expect(el.dir).to.equal('rtl'); });\n it('33. lang attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview lang=\"en\"></nile-file-preview>`); expect(el.lang).to.equal('en'); });\n it('34. tabindex', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview tabindex=\"0\"></nile-file-preview>`); expect(el.getAttribute('tabindex')).to.equal('0'); });\n it('35. requestUpdate', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });\n it('36. shadow childNodes', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.childNodes.length).to.be.greaterThan(0); });\n it('37. scrollIntoView', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.scrollIntoView).to.be.a('function'); });\n it('38. focus method', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.focus).to.be.a('function'); });\n it('39. blur method', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.blur).to.be.a('function'); });\n it('40. class toggle', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });\n it('41. toggle hidden', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.hidden = true; expect(el.hidden).to.be.true; });\n it('42. dispatchCustomEvent', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); let d: any; el.addEventListener('t', ((e: CustomEvent) => { d = e.detail; }) as EventListener); el.dispatchEvent(new CustomEvent('t', { detail: 'x' })); expect(d).to.equal('x'); });\n it('43. nested in div', async () => { const c = await fixture(html`<div><nile-file-preview></nile-file-preview></div>`); expect(c.querySelector('nile-file-preview')).to.exist; });\n it('44. default errorMessage', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.errorMessage).to.equal(''); });\n it('45. default fileUrl', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.fileUrl).to.equal(''); });\n it('46. default uploadStatus', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.uploadStatus).to.equal(0); });\n it('47. default state', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.state).to.exist; });\n it('48. default variant', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.variant).to.exist; });\n it('49. set errorMessage', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview error-message=\"Error\"></nile-file-preview>`); expect(el.getAttribute('error-message')).to.equal('Error'); });\n it('50. set fileUrl', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview file-url=\"http://test.com/f.png\"></nile-file-preview>`); expect(el.getAttribute('file-url')).to.equal('http://test.com/f.png'); });\n it('51. set inputFileName', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview input-file-name=\"test.png\"></nile-file-preview>`); expect(el.getAttribute('input-file-name')).to.equal('test.png'); });\n it('52. no canvas', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('canvas')).to.be.null; });\n it('53. no video', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('video')).to.be.null; });\n it('54. no audio', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('audio')).to.be.null; });\n it('55. no nav', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nav')).to.be.null; });\n it('56. no aside', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('aside')).to.be.null; });\n it('57. no table', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('table')).to.be.null; });\n it('58. no anchor', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('a')).to.be.null; });\n it('59. no svg', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('svg')).to.be.null; });\n it('60. no form', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('form')).to.be.null; });\n it('61. title attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview title=\"FP\"></nile-file-preview>`); expect(el.title).to.equal('FP'); });\n it('62. no h1', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('h1')).to.be.null; });\n it('63. no pre', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('pre')).to.be.null; });\n it('64. no code', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('code')).to.be.null; });\n it('65. no hr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('hr')).to.be.null; });\n it('66. no ul', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('ul')).to.be.null; });\n it('67. no textarea', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('textarea')).to.be.null; });\n it('68. no select', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('select')).to.be.null; });\n it('69. no nile-badge', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-badge')).to.be.null; });\n it('70. no nile-radio', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-radio')).to.be.null; });\n it('71. no nile-dialog', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-dialog')).to.be.null; });\n it('72. no nile-drawer', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-drawer')).to.be.null; });\n it('73. no nile-slider', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-slider')).to.be.null; });\n it('74. no nile-accordion', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-accordion')).to.be.null; });\n it('75. setAttribute data', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });\n it('76. removeAttribute hidden', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview hidden></nile-file-preview>`); el.removeAttribute('hidden'); expect(el.hidden).to.be.false; });\n it('77. setAttribute class', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });\n it('78. aria-describedby', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview aria-describedby=\"d\"></nile-file-preview>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });\n it('79. multiple re-renders', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); for (let i = 0; i < 3; i++) { el.requestUpdate(); await el.updateComplete; } expect(el.shadowRoot).to.not.be.null; });\n it('80. contains', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview><span id=\"s1\">C</span></nile-file-preview>`); expect(el.contains(el.querySelector('#s1'))).to.be.true; });\n it('81. data attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview data-x=\"1\"></nile-file-preview>`); expect(el.getAttribute('data-x')).to.equal('1'); });\n it('82. role attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview role=\"img\"></nile-file-preview>`); expect(el.getAttribute('role')).to.equal('img'); });\n it('83. no section', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('section')).to.be.null; });\n it('84. no header', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('header')).to.be.null; });\n it('85. no footer', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('footer')).to.be.null; });\n it('86. no main', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('main')).to.be.null; });\n it('87. no article', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('article')).to.be.null; });\n it('88. no nile-toolbar', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-toolbar')).to.be.null; });\n it('89. no nile-link', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-link')).to.be.null; });\n it('90. no nile-menu', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-menu')).to.be.null; });\n it('91. no nile-textarea', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-textarea')).to.be.null; });\n it('92. no nile-card', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-card')).to.be.null; });\n it('93. no nile-tab', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-tab')).to.be.null; });\n it('94. no nile-stepper', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-stepper')).to.be.null; });\n it('95. no nile-pagination', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-pagination')).to.be.null; });\n it('96. no nile-calendar', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-calendar')).to.be.null; });\n it('97. no nile-select', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-select')).to.be.null; });\n it('98. no nile-input', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-input')).to.be.null; });\n it('99. no nile-checkbox', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-checkbox')).to.be.null; });\n it('100. full integration', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview class=\"fp\" id=\"fp1\" error-message=\"\" input-file-name=\"doc.pdf\"></nile-file-preview>`); expect(el.id).to.equal('fp1'); expect(el.shadowRoot).to.not.be.null; expect(el.getAttribute('error-message')).to.equal(''); expect(el.getAttribute('input-file-name')).to.equal('doc.pdf'); });\n});\n"]}
|
|
@@ -2,7 +2,8 @@ import NileFilePreview from "../nile-file-preview";
|
|
|
2
2
|
import { RemoveFileDetail } from "../types";
|
|
3
3
|
export declare const generatePreviewUrl: (file: File) => Promise<string>;
|
|
4
4
|
export declare const removeFile: (removeFile: File, e: CustomEvent<RemoveFileDetail>, originalUrl: string) => void;
|
|
5
|
-
export declare const cancelFileUpload: (file: File, e: CustomEvent<RemoveFileDetail
|
|
5
|
+
export declare const cancelFileUpload: (file: File, e: CustomEvent<RemoveFileDetail>, nileFilePreview: NileFilePreview) => void;
|
|
6
6
|
export declare const formatFileSize: (bytes: number) => string;
|
|
7
|
-
export declare const getFileType: (
|
|
7
|
+
export declare const getFileType: (file: File, showFileType: boolean) => string;
|
|
8
8
|
export declare const truncateString: (nileFilePreview: NileFilePreview) => void;
|
|
9
|
+
export declare const isRealImage: (file: File) => Promise<boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilePreviewEvent, FilePreviewErrorMessages } from "../types";
|
|
1
|
+
import { FilePreviewEvent, FilePreviewErrorMessages, FilePreviewState } from "../types";
|
|
2
2
|
export const generatePreviewUrl = (file) => {
|
|
3
3
|
return new Promise((resolve, reject) => {
|
|
4
4
|
const reader = new FileReader();
|
|
@@ -26,19 +26,22 @@ export const removeFile = (removeFile, e, originalUrl) => {
|
|
|
26
26
|
}));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
export const cancelFileUpload = (file, e) => {
|
|
29
|
+
export const cancelFileUpload = (file, e, nileFilePreview) => {
|
|
30
30
|
if (e.target) {
|
|
31
31
|
e.target.dispatchEvent(new CustomEvent(FilePreviewEvent.NILE_CANCEL_UPLOAD, {
|
|
32
32
|
detail: { file: file },
|
|
33
33
|
bubbles: true,
|
|
34
34
|
composed: true,
|
|
35
35
|
}));
|
|
36
|
+
nileFilePreview.state = FilePreviewState.ERROR;
|
|
37
|
+
nileFilePreview.errorMessage = FilePreviewErrorMessages.UPLOAD_CANCEL;
|
|
38
|
+
nileFilePreview.requestUpdate();
|
|
36
39
|
}
|
|
37
40
|
};
|
|
38
41
|
export const formatFileSize = (bytes) => {
|
|
39
|
-
const kb = bytes /
|
|
40
|
-
const mb =
|
|
41
|
-
const gb =
|
|
42
|
+
const kb = bytes / 1000;
|
|
43
|
+
const mb = bytes / 1000000;
|
|
44
|
+
const gb = bytes / 1000000000;
|
|
42
45
|
if (gb >= 1)
|
|
43
46
|
return gb.toFixed(2) + ' GB';
|
|
44
47
|
if (mb >= 1)
|
|
@@ -47,8 +50,14 @@ export const formatFileSize = (bytes) => {
|
|
|
47
50
|
return kb.toFixed(2) + ' KB';
|
|
48
51
|
return bytes + ' B';
|
|
49
52
|
};
|
|
50
|
-
export const getFileType = (
|
|
51
|
-
|
|
53
|
+
export const getFileType = (file, showFileType) => {
|
|
54
|
+
if (showFileType) {
|
|
55
|
+
return file.name.split('.').pop() || '';
|
|
56
|
+
}
|
|
57
|
+
const type = file.type || '';
|
|
58
|
+
const parts = type.split('/');
|
|
59
|
+
const subtype = parts[1] || '';
|
|
60
|
+
return subtype.toUpperCase();
|
|
52
61
|
};
|
|
53
62
|
export const truncateString = (nileFilePreview) => {
|
|
54
63
|
if (nileFilePreview.variant === 'vertical' && nileFilePreview.errorMessage.length > 34) {
|
|
@@ -60,4 +69,20 @@ export const truncateString = (nileFilePreview) => {
|
|
|
60
69
|
nileFilePreview.requestUpdate();
|
|
61
70
|
}
|
|
62
71
|
};
|
|
72
|
+
export const isRealImage = (file) => {
|
|
73
|
+
return new Promise((resolve) => {
|
|
74
|
+
const blob = new Blob([file], { type: file.type });
|
|
75
|
+
const url = URL.createObjectURL(blob);
|
|
76
|
+
const img = new Image();
|
|
77
|
+
img.onload = () => {
|
|
78
|
+
URL.revokeObjectURL(url);
|
|
79
|
+
resolve(true);
|
|
80
|
+
};
|
|
81
|
+
img.onerror = () => {
|
|
82
|
+
URL.revokeObjectURL(url);
|
|
83
|
+
resolve(false);
|
|
84
|
+
};
|
|
85
|
+
img.src = url;
|
|
86
|
+
});
|
|
87
|
+
};
|
|
63
88
|
//# sourceMappingURL=nile-file-preview.util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-file-preview.util.js","sourceRoot":"","sources":["../../../../src/nile-file-preview/utils/nile-file-preview.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"nile-file-preview.util.js","sourceRoot":"","sources":["../../../../src/nile-file-preview/utils/nile-file-preview.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,gBAAgB,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE1G,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAU,EAAmB,EAAE;IAChE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAEhC,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE;YACnB,MAAM,UAAU,GAAG,MAAM,CAAC,MAAgB,CAAC;YAC3C,OAAO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,MAAM,GAAG,EAAE,EAAE,CAAC;QAC/F,eAAe,CAAC,iBAAiB,GAAG,IAAI,CAAC;QACzC,eAAe,CAAC,aAAa,EAAE,CAAC;IAClC,CAAC;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAU,EAAoB,EAAE;IAC1D,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACnD,MAAM,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QACtC,MAAM,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;QAExB,GAAG,CAAC,MAAM,GAAG,GAAG,EAAE;YAChB,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YACzB,OAAO,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,CAAC;QAEF,GAAG,CAAC,OAAO,GAAG,GAAG,EAAE;YACjB,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YACzB,OAAO,CAAC,KAAK,CAAC,CAAC;QACjB,CAAC,CAAC;QAEF,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC,CAAA","sourcesContent":["import NileFilePreview from \"../nile-file-preview\";\nimport { RemoveFileDetail, FilePreviewEvent, FilePreviewErrorMessages, FilePreviewState } from \"../types\";\n\nexport const generatePreviewUrl = (file: File): Promise<string> => {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n\n if (file) {\n reader.readAsDataURL(file);\n } else {\n reject(FilePreviewErrorMessages.NO_FILE_SELECTED);\n }\n\n reader.onload = () => {\n const previewUrl = reader.result as string;\n resolve(previewUrl);\n };\n\n reader.onerror = (error) => {\n reject(FilePreviewErrorMessages.UNABLE_TO_GENEARTE_URL);\n }\n });\n}\n\nexport const removeFile = (removeFile: File, e: CustomEvent<RemoveFileDetail>, originalUrl: string): void => {\n if (e.target) {\n e.target.dispatchEvent(\n new CustomEvent(FilePreviewEvent.NILE_REMOVE, {\n detail: { value: removeFile, url: originalUrl },\n bubbles: true,\n composed: true,\n })\n );\n }\n};\n\nexport const cancelFileUpload = (file: File, e: CustomEvent<RemoveFileDetail>, nileFilePreview: NileFilePreview) => {\n if(e.target) {\n e.target.dispatchEvent(\n new CustomEvent(FilePreviewEvent.NILE_CANCEL_UPLOAD, {\n detail: { file: file },\n bubbles: true,\n composed: true,\n })\n );\n nileFilePreview.state = FilePreviewState.ERROR;\n nileFilePreview.errorMessage = FilePreviewErrorMessages.UPLOAD_CANCEL;\n nileFilePreview.requestUpdate();\n }\n}\n\nexport const formatFileSize = (bytes: number): string => {\n const kb = bytes / 1000;\n const mb = bytes / 1_000_000;\n const gb = bytes / 1_000_000_000;\n\n if (gb >= 1) return gb.toFixed(2) + ' GB';\n if (mb >= 1) return mb.toFixed(2) + ' MB';\n if (kb >= 1) return kb.toFixed(2) + ' KB';\n return bytes + ' B';\n};\n\nexport const getFileType = (file: File, showFileType: boolean): string => {\n if(showFileType) {\n return file.name.split('.').pop() || '';\n }\n const type = file.type || '';\n const parts = type.split('/');\n const subtype = parts[1] || '';\n return subtype.toUpperCase();\n}\n\nexport const truncateString = (nileFilePreview: NileFilePreview): void => {\n if(nileFilePreview.variant === 'vertical' && nileFilePreview.errorMessage.length > 34) {\n nileFilePreview.isStringTruncated = true;\n nileFilePreview.requestUpdate();\n } else if(nileFilePreview.variant === 'horizontal' && nileFilePreview.errorMessage.length > 96) {\n nileFilePreview.isStringTruncated = true;\n nileFilePreview.requestUpdate();\n }\n}\n\nexport const isRealImage = (file: File): Promise<boolean> => {\n return new Promise((resolve) => {\n const blob = new Blob([file], { type: file.type });\n const url = URL.createObjectURL(blob);\n const img = new Image();\n\n img.onload = () => {\n URL.revokeObjectURL(url);\n resolve(true);\n };\n\n img.onerror = () => {\n URL.revokeObjectURL(url);\n resolve(false);\n };\n\n img.src = url;\n });\n}"]}
|
|
@@ -11,6 +11,7 @@ import { css } from 'lit';
|
|
|
11
11
|
export const styles = css `
|
|
12
12
|
:host {
|
|
13
13
|
display: inline-block;
|
|
14
|
+
width: 100%;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
* {
|
|
@@ -24,7 +25,7 @@ export const styles = css `
|
|
|
24
25
|
flex-direction: column;
|
|
25
26
|
justify-content: center;
|
|
26
27
|
align-items: flex-start;
|
|
27
|
-
width:
|
|
28
|
+
width: 100%;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
input {
|
|
@@ -32,10 +33,8 @@ export const styles = css `
|
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.horizontal-div {
|
|
35
|
-
margin-bottom: 10px;
|
|
36
36
|
height: 62px;
|
|
37
|
-
|
|
38
|
-
width: 648px;
|
|
37
|
+
width: 100%;
|
|
39
38
|
min-width: 230px;
|
|
40
39
|
padding: 12px;
|
|
41
40
|
display: flex;
|
|
@@ -48,6 +47,16 @@ export const styles = css `
|
|
|
48
47
|
background-color: var(--nile-colors-white-base);
|
|
49
48
|
}
|
|
50
49
|
|
|
50
|
+
@media (width < 400px) {
|
|
51
|
+
.browse-file-button {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.horizontal-div {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
51
60
|
.hover-border {
|
|
52
61
|
border-color: var(--nile-colors-primary-600);
|
|
53
62
|
}
|
|
@@ -88,7 +97,6 @@ export const styles = css `
|
|
|
88
97
|
border: 1px dashed var(--nile-colors-neutral-500);
|
|
89
98
|
background-color: var(--nile-colors-white-base);
|
|
90
99
|
position: relative;
|
|
91
|
-
margin-bottom: 10px;
|
|
92
100
|
}
|
|
93
101
|
|
|
94
102
|
.vertical-div:hover {
|
|
@@ -591,6 +599,7 @@ export const styles = css `
|
|
|
591
599
|
justify-content: flex-start;
|
|
592
600
|
align-items: center;
|
|
593
601
|
gap: var(--nile-spacing-one-half-x);
|
|
602
|
+
margin-top: 10px;
|
|
594
603
|
}
|
|
595
604
|
|
|
596
605
|
.upload-error > nile-tooltip > span {
|
|
@@ -605,6 +614,7 @@ export const styles = css `
|
|
|
605
614
|
.vertical-upload-error {
|
|
606
615
|
display: flex;
|
|
607
616
|
gap: 4px;
|
|
617
|
+
margin-top: 10px;
|
|
608
618
|
}
|
|
609
619
|
|
|
610
620
|
.vertical-upload-error nile-tooltip span, .vertical-upload-error span {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-file-upload.css.js","sourceRoot":"","sources":["../../../src/nile-file-upload/nile-file-upload.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAimBxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * FileUpload CSS\n */\nexport const styles = css`\n :host {\n display: inline-block;\n }\n\n * {\n padding: 0px;\n margin: 0px;\n box-sizing: border-box;\n }\n\n .wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n width: min-content;\n }\n\n input {\n display: none;\n }\n\n .horizontal-div {\n margin-bottom: 10px;\n height: 62px;\n max-width: 648px;\n width: 648px;\n min-width: 230px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 18px;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px dashed var(--nile-colors-neutral-500);\n color: var(--nile-colors-dark-900);\n background-color: var(--nile-colors-white-base);\n }\n\n .hover-border {\n border-color: var(--nile-colors-primary-600);\n }\n\n .title {\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 454px;\n width: 100%;\n }\n\n .subtitle {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-500);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 454px;\n }\n\n .vertical-div {\n min-height: 156px;\n height: auto;\n min-width: 240px;\n width: 240px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n padding: 12px;\n border-radius: var(--nile-radius-radius-xs);\n color: var(--nile-colors-dark-900);\n border: 1px dashed var(--nile-colors-neutral-500);\n background-color: var(--nile-colors-white-base);\n position: relative;\n margin-bottom: 10px;\n }\n\n .vertical-div:hover {\n border-color: var(--nile-colors-blue-500);\n }\n\n .outer-div-border {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .inner-div {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 18px;\n box-sizing: border-box;\n }\n\n .content {\n display: flex; \n flex-direction: column;\n justify-content: center;\n gap: 8px;\n }\n\n .content h4 {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 454px;\n }\n \n .content p {\n margin: 0px;\n font-size: var(--nile-type-scale-2);\n color: var(--nile-colors-neutral-700);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 454px;\n }\n\n ::slotted(img), ::slotted(nile-icon), ::slotted(video) {\n --nile-svg-height: 24px !important ;\n --nile-svg-width: 24px !important ;\n height:42px;\n width: 42px;\n object-fit: cover;\n }\n\n .browse-file-button {\n cursor: pointer;\n }\n\n /* DISABLED STATE */\n .disable {\n background-color: var(--nile-colors-dark-200);\n opacity: 0.8;\n cursor: not-allowed;\n color: var(--nile-colors-neutral-500);\n pointer-events: none;\n }\n\n /* DRAGGING */\n .dragging {\n background-color: var(--nile-colors-blue-100);\n border-color: var(--nile-colors-primary-600);\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 18px;\n color: var(--nile-colors-blue-700);\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .icons-container {\n display: flex;\n gap: 4px;\n }\n\n .general-icon {\n transform: rotate(-18.11deg);\n position: relative;\n bottom: 3px;\n }\n\n .image-icon {\n transform: rotate(15deg);\n }\n\n .icon:hover {\n cursor: pointer;\n }\n\n /* Uploading State */\n .uploading {\n width: 648px;\n min-width: 230px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 18px;\n box-sizing: border-box;\n border: 1px solid var(--nile-colors-neutral-400)\n }\n \n .uploading:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .progress-bar-container {\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 0px;\n }\n\n .progress-bar-percent {\n width: 100%;\n display: flex;\n justify-content: space-between;\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .progress-bar-container p {\n margin: 0px;\n }\n\n .progress-bar-container > p {\n font-size: var(--nile-type-scale-1);\n color: var(--nile-colors-dark-500);\n }\n\n /* PREVIEW STATE */\n .preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .preview-inner {\n display: flex;\n gap: 18px;\n }\n\n .preview-image-container {\n height: 42px;\n width: 42px;\n }\n\n .preview-image-container img {\n height: 42px;\n width: 42px;\n object-fit: contain;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px solid var(--nile-colors-neutral-400);\n }\n \n .preview-file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .preview-file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview-file-info p:last-of-type{\n color: var(--nile-colors-neutral-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview nile-icon:hover {\n cursor: pointer;\n }\n\n /* NO PREVIEW STATE */\n .no-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .no-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .no-preview-container {\n display: flex;\n gap: 18px;\n }\n\n .document-icon {\n height: 40px;\n width: 40px;\n border-radius: var(--nile-radius-radius-xs);\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid var(--nile-colors-blue-400);\n background-color: var(--nile-colors-blue-100);\n }\n\n .document-icon nile-icon {\n height: 40px;\n width: 40px;\n }\n \n .preview-file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .preview-file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview-file-info p:last-of-type{\n color: var(--nile-colors-neutral-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .no-preview > nile-icon:hover {\n cursor: pointer;\n }\n\n /* ERROR STATE */\n \n .error {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .error:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .error-container {\n width: 100%;\n display: flex;\n gap: 18px;\n }\n\n .error-icon {\n height: 40px;\n width: 40px;\n border-radius: var(--nile-radius-radius-xs);\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid var(--nile-colors-red-400);\n background-color: var(--nile-colors-red-100);\n }\n\n .error-icon nile-icon {\n height: 40px;\n width: 40px;\n }\n \n .file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .file-info p:last-of-type{\n color: var(--nile-colors-red-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .error > nile-icon:hover {\n cursor: pointer;\n }\n\n /* VARTICAL STATE START */\n /* Default State */\n\n .vertical-default {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 18px\n }\n\n .content-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 8px;\n }\n\n .content-container div.title {\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 222px;\n }\n\n .content-container div.subtitle {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-500);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 222px;\n }\n\n /* Drag State */\n .vertical-drag {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap:18px;\n font-size: var(--nile-type-scale-3);\n color: var(--nile-colors-blue-700);\n background-color: var(--nile-colors-blue-100);\n border-color: var(--nile-colors-blue-500);\n }\n\n /* Uploading State */\n .vertical-uploading {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: center;\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-uploading:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .loading {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .corner-icon {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n\n /* Preview State */\n .vertical-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .image-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n object-fit: cover;\n width: 80px;\n height: 80px;\n border-radius: var(--nile-radius-radius-xs);\n }\n\n /* Vertical No Preview State */\n .vertical-no-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-no-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .vertical-document-icon {\n height: 80px;\n width: 80px;\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px solid var(--nile-colors-blue-400);\n background-color: var(--nile-colors-blue-100);\n }\n\n /* Veritcal Error State */\n .vertical-error {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-error:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .error-bg {\n background-color: var(--nile-colors-red-100);\n border: 1px solid var(--nile-colors-red-400);\n }\n\n .error-message {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 8px;\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n text-align: start;\n }\n\n .error-p {\n color: var(--nile-colors-red-700);\n font-size: var(--nile-type-scale-2);\n width: 216px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: center;\n }\n\n .error-p p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 0;\n }\n\n\n /* Displaing uploaded files CSS */\n .display-files {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n width: 648px;\n min-width: 230px;\n max-height: 200px;\n overflow-y: auto;\n border: 1px solid var(--nile-colors-neutral-700);\n border-radius: var(--nile-radius-radius-xs);\n scrollbar-width: none;\n padding: 12px;\n }\n\n ul, li {\n width: 100%;\n }\n\n li {\n list-style-type: none;\n }\n\n /* for the upload error messages */\n .upload-error {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-red-700);\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: var(--nile-spacing-one-half-x);\n }\n\n .upload-error > nile-tooltip > span {\n color: var(--nile-colors-red-700);\n white-space: nowrap;\n text-align: left;\n max-width: 560px;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .vertical-upload-error {\n display: flex;\n gap: 4px;\n }\n\n .vertical-upload-error nile-tooltip span, .vertical-upload-error span {\n color: var(--nile-colors-red-700);\n white-space: nowrap;\n text-align: left;\n width: 222px;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: var(--nile-type-scale-2);\n display: inline-block;\n }\n`;\n\nexport default [styles];"]}
|
|
1
|
+
{"version":3,"file":"nile-file-upload.css.js","sourceRoot":"","sources":["../../../src/nile-file-upload/nile-file-upload.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2mBxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * FileUpload CSS\n */\nexport const styles = css`\n :host {\n display: inline-block;\n width: 100%;\n }\n\n * {\n padding: 0px;\n margin: 0px;\n box-sizing: border-box;\n }\n\n .wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n width: 100%;\n }\n\n input {\n display: none;\n }\n\n .horizontal-div {\n height: 62px;\n width: 100%;\n min-width: 230px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 18px;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px dashed var(--nile-colors-neutral-500);\n color: var(--nile-colors-dark-900);\n background-color: var(--nile-colors-white-base);\n }\n\n @media (width < 400px) {\n .browse-file-button {\n display: none;\n }\n\n .horizontal-div {\n cursor: pointer;\n }\n }\n\n .hover-border {\n border-color: var(--nile-colors-primary-600);\n }\n\n .title {\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 454px;\n width: 100%;\n }\n\n .subtitle {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-500);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 454px;\n }\n\n .vertical-div {\n min-height: 156px;\n height: auto;\n min-width: 240px;\n width: 240px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n padding: 12px;\n border-radius: var(--nile-radius-radius-xs);\n color: var(--nile-colors-dark-900);\n border: 1px dashed var(--nile-colors-neutral-500);\n background-color: var(--nile-colors-white-base);\n position: relative;\n }\n\n .vertical-div:hover {\n border-color: var(--nile-colors-blue-500);\n }\n\n .outer-div-border {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .inner-div {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 18px;\n box-sizing: border-box;\n }\n\n .content {\n display: flex; \n flex-direction: column;\n justify-content: center;\n gap: 8px;\n }\n\n .content h4 {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 454px;\n }\n \n .content p {\n margin: 0px;\n font-size: var(--nile-type-scale-2);\n color: var(--nile-colors-neutral-700);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 454px;\n }\n\n ::slotted(img), ::slotted(nile-icon), ::slotted(video) {\n --nile-svg-height: 24px !important ;\n --nile-svg-width: 24px !important ;\n height:42px;\n width: 42px;\n object-fit: cover;\n }\n\n .browse-file-button {\n cursor: pointer;\n }\n\n /* DISABLED STATE */\n .disable {\n background-color: var(--nile-colors-dark-200);\n opacity: 0.8;\n cursor: not-allowed;\n color: var(--nile-colors-neutral-500);\n pointer-events: none;\n }\n\n /* DRAGGING */\n .dragging {\n background-color: var(--nile-colors-blue-100);\n border-color: var(--nile-colors-primary-600);\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 18px;\n color: var(--nile-colors-blue-700);\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .icons-container {\n display: flex;\n gap: 4px;\n }\n\n .general-icon {\n transform: rotate(-18.11deg);\n position: relative;\n bottom: 3px;\n }\n\n .image-icon {\n transform: rotate(15deg);\n }\n\n .icon:hover {\n cursor: pointer;\n }\n\n /* Uploading State */\n .uploading {\n width: 648px;\n min-width: 230px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 18px;\n box-sizing: border-box;\n border: 1px solid var(--nile-colors-neutral-400)\n }\n \n .uploading:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .progress-bar-container {\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 0px;\n }\n\n .progress-bar-percent {\n width: 100%;\n display: flex;\n justify-content: space-between;\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .progress-bar-container p {\n margin: 0px;\n }\n\n .progress-bar-container > p {\n font-size: var(--nile-type-scale-1);\n color: var(--nile-colors-dark-500);\n }\n\n /* PREVIEW STATE */\n .preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .preview-inner {\n display: flex;\n gap: 18px;\n }\n\n .preview-image-container {\n height: 42px;\n width: 42px;\n }\n\n .preview-image-container img {\n height: 42px;\n width: 42px;\n object-fit: contain;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px solid var(--nile-colors-neutral-400);\n }\n \n .preview-file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .preview-file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview-file-info p:last-of-type{\n color: var(--nile-colors-neutral-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview nile-icon:hover {\n cursor: pointer;\n }\n\n /* NO PREVIEW STATE */\n .no-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .no-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .no-preview-container {\n display: flex;\n gap: 18px;\n }\n\n .document-icon {\n height: 40px;\n width: 40px;\n border-radius: var(--nile-radius-radius-xs);\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid var(--nile-colors-blue-400);\n background-color: var(--nile-colors-blue-100);\n }\n\n .document-icon nile-icon {\n height: 40px;\n width: 40px;\n }\n \n .preview-file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .preview-file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview-file-info p:last-of-type{\n color: var(--nile-colors-neutral-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .no-preview > nile-icon:hover {\n cursor: pointer;\n }\n\n /* ERROR STATE */\n \n .error {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .error:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .error-container {\n width: 100%;\n display: flex;\n gap: 18px;\n }\n\n .error-icon {\n height: 40px;\n width: 40px;\n border-radius: var(--nile-radius-radius-xs);\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid var(--nile-colors-red-400);\n background-color: var(--nile-colors-red-100);\n }\n\n .error-icon nile-icon {\n height: 40px;\n width: 40px;\n }\n \n .file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .file-info p:last-of-type{\n color: var(--nile-colors-red-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .error > nile-icon:hover {\n cursor: pointer;\n }\n\n /* VARTICAL STATE START */\n /* Default State */\n\n .vertical-default {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 18px\n }\n\n .content-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 8px;\n }\n\n .content-container div.title {\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 222px;\n }\n\n .content-container div.subtitle {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-500);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 222px;\n }\n\n /* Drag State */\n .vertical-drag {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap:18px;\n font-size: var(--nile-type-scale-3);\n color: var(--nile-colors-blue-700);\n background-color: var(--nile-colors-blue-100);\n border-color: var(--nile-colors-blue-500);\n }\n\n /* Uploading State */\n .vertical-uploading {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: center;\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-uploading:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .loading {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .corner-icon {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n\n /* Preview State */\n .vertical-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .image-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n object-fit: cover;\n width: 80px;\n height: 80px;\n border-radius: var(--nile-radius-radius-xs);\n }\n\n /* Vertical No Preview State */\n .vertical-no-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-no-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .vertical-document-icon {\n height: 80px;\n width: 80px;\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px solid var(--nile-colors-blue-400);\n background-color: var(--nile-colors-blue-100);\n }\n\n /* Veritcal Error State */\n .vertical-error {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-error:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .error-bg {\n background-color: var(--nile-colors-red-100);\n border: 1px solid var(--nile-colors-red-400);\n }\n\n .error-message {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 8px;\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n text-align: start;\n }\n\n .error-p {\n color: var(--nile-colors-red-700);\n font-size: var(--nile-type-scale-2);\n width: 216px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: center;\n }\n\n .error-p p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 0;\n }\n\n\n /* Displaing uploaded files CSS */\n .display-files {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n width: 648px;\n min-width: 230px;\n max-height: 200px;\n overflow-y: auto;\n border: 1px solid var(--nile-colors-neutral-700);\n border-radius: var(--nile-radius-radius-xs);\n scrollbar-width: none;\n padding: 12px;\n }\n\n ul, li {\n width: 100%;\n }\n\n li {\n list-style-type: none;\n }\n\n /* for the upload error messages */\n .upload-error {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-red-700);\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: var(--nile-spacing-one-half-x);\n margin-top: 10px;\n }\n\n .upload-error > nile-tooltip > span {\n color: var(--nile-colors-red-700);\n white-space: nowrap;\n text-align: left;\n max-width: 560px;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .vertical-upload-error {\n display: flex;\n gap: 4px;\n margin-top: 10px;\n }\n\n .vertical-upload-error nile-tooltip span, .vertical-upload-error span {\n color: var(--nile-colors-red-700);\n white-space: nowrap;\n text-align: left;\n width: 222px;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: var(--nile-type-scale-2);\n display: inline-block;\n }\n`;\n\nexport default [styles];"]}
|
|
@@ -33,7 +33,9 @@ export declare class NileFileUpload extends NileElement {
|
|
|
33
33
|
variant: FileUploadVariant;
|
|
34
34
|
fileUploadUrl: string;
|
|
35
35
|
autoUpload: boolean;
|
|
36
|
+
doNotUpload: File[];
|
|
36
37
|
input: HTMLInputElement;
|
|
38
|
+
horizontalDiv: HTMLDivElement;
|
|
37
39
|
uploadRequests: Map<File, XMLHttpRequest>;
|
|
38
40
|
fileSizeExceededFilesNumber: number;
|
|
39
41
|
isStringTruncated: boolean;
|
|
@@ -41,9 +43,10 @@ export declare class NileFileUpload extends NileElement {
|
|
|
41
43
|
connectedCallback(): void;
|
|
42
44
|
firstUpdated(changedProps: ChangedPropsInterface): void;
|
|
43
45
|
updated(changedProps: ChangedPropsInterface): void;
|
|
44
|
-
|
|
46
|
+
browseFiles(): void;
|
|
45
47
|
setState: (newState: FileUploadState) => void;
|
|
46
48
|
render(): TemplateResult;
|
|
49
|
+
clearAllUploadedFiles(): void;
|
|
47
50
|
private getState;
|
|
48
51
|
private getHorizontalState;
|
|
49
52
|
private getVerticalState;
|
|
@@ -10,7 +10,7 @@ import NileElement from '../internal/nile-element';
|
|
|
10
10
|
import { DragHandler } from './utils/drag-drop.util';
|
|
11
11
|
import { FileUploadDefaults } from './types/file-upload.enums';
|
|
12
12
|
import { html } from 'lit';
|
|
13
|
-
import { customElement, property, query } from 'lit/decorators.js';
|
|
13
|
+
import { customElement, property, query, state } from 'lit/decorators.js';
|
|
14
14
|
import { FileUploadState, FileUploadVariant, FileUploadEvent } from './types/file-upload.enums';
|
|
15
15
|
import { setUpDragHandler, addGlobalListeners, addInternalListeners, uploadFiles } from './utils/file-validation.util';
|
|
16
16
|
import { getHorizontalDefaultState, getHorizontalDragState, getVerticalDefaultState, getVerticalDisabledState, getVerticalDragState, getHorizontalErrorState, getVerticalErrorState, getHorizontalDisabledState } from './nile-file-upload.template';
|
|
@@ -36,6 +36,7 @@ let NileFileUpload = class NileFileUpload extends NileElement {
|
|
|
36
36
|
this.variant = FileUploadVariant.HORIZONTAL;
|
|
37
37
|
this.fileUploadUrl = "";
|
|
38
38
|
this.autoUpload = true;
|
|
39
|
+
this.doNotUpload = [];
|
|
39
40
|
this.uploadRequests = new Map();
|
|
40
41
|
this.fileSizeExceededFilesNumber = 0;
|
|
41
42
|
this.isStringTruncated = false;
|
|
@@ -89,6 +90,11 @@ let NileFileUpload = class NileFileUpload extends NileElement {
|
|
|
89
90
|
${this.getState()}
|
|
90
91
|
`;
|
|
91
92
|
}
|
|
93
|
+
clearAllUploadedFiles() {
|
|
94
|
+
this.uploadedFiles = [];
|
|
95
|
+
this.state = FileUploadState.DEFAULT;
|
|
96
|
+
this.errorMessage = "";
|
|
97
|
+
}
|
|
92
98
|
getState() {
|
|
93
99
|
return this.variant === FileUploadVariant.HORIZONTAL
|
|
94
100
|
? this.getHorizontalState()
|
|
@@ -165,9 +171,15 @@ __decorate([
|
|
|
165
171
|
__decorate([
|
|
166
172
|
property({ type: Boolean })
|
|
167
173
|
], NileFileUpload.prototype, "autoUpload", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
state()
|
|
176
|
+
], NileFileUpload.prototype, "doNotUpload", void 0);
|
|
168
177
|
__decorate([
|
|
169
178
|
query('input')
|
|
170
179
|
], NileFileUpload.prototype, "input", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
query('.horizontal-div')
|
|
182
|
+
], NileFileUpload.prototype, "horizontalDiv", void 0);
|
|
171
183
|
NileFileUpload = __decorate([
|
|
172
184
|
customElement('nile-file-upload')
|
|
173
185
|
], NileFileUpload);
|