@aquera/nile-elements 0.1.36-beta-1.3 → 0.1.36-beta-1.4
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 +12 -75
- package/demo/index.css +4 -7
- package/demo/index.html +38 -20
- package/demo/variables.css +0 -13
- package/demo/variables_v2.css +0 -13
- package/dist/{fixture-76051ef1.esm.js → fixture-178ed8d2.esm.js} +1 -1
- package/dist/{fixture-948ae33c.cjs.js → fixture-bb486165.cjs.js} +2 -2
- package/dist/{fixture-948ae33c.cjs.js.map → fixture-bb486165.cjs.js.map} +1 -1
- package/dist/{fixture-e6fdfbfa.esm.js → fixture-c4e75e04.esm.js} +1 -1
- package/dist/{fixture-7bfb866e.cjs.js → fixture-d7bf42eb.cjs.js} +2 -2
- package/dist/{fixture-7bfb866e.cjs.js.map → fixture-d7bf42eb.cjs.js.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/internal/animate.cjs.js +1 -1
- package/dist/internal/animate.cjs.js.map +1 -1
- package/dist/internal/animate.esm.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.test.cjs.js +1 -1
- package/dist/nile-card/nile-card.test.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.esm.js +8 -17
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.cjs.js.map +1 -1
- package/dist/nile-error-message/nile-error-message.css.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.css.cjs.js.map +1 -1
- package/dist/nile-error-message/nile-error-message.css.esm.js +4 -6
- package/dist/nile-error-message/nile-error-message.esm.js +4 -4
- package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.cjs.js +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.cjs.js.map +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.esm.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +17 -40
- package/dist/nile-filter-chip/nile-filter-chip.esm.js +15 -24
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js.map +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +16 -16
- package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.test.esm.js +1 -1
- package/dist/nile-icon/icons/svg/accessreview.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/accessreview.cjs.js.map +1 -1
- package/dist/nile-icon/icons/svg/accessreview.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-link/nile-link.test.cjs.js +1 -1
- package/dist/nile-link/nile-link.test.esm.js +1 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.test.esm.js +1 -1
- package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.test.esm.js +1 -1
- package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.test.esm.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js.map +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.css.esm.js +0 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.test.esm.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +1 -1
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.esm.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-table/nile-table.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
- package/dist/nile-tooltip/index.cjs.js +1 -1
- package/dist/nile-tooltip/index.esm.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.esm.js +45 -78
- package/dist/nile-tooltip/nile-tooltip.esm.js +28 -23
- package/dist/nile-tooltip/nile-tooltip.test.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.test.esm.js +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-chip/nile-chip.js +0 -9
- package/dist/src/nile-chip/nile-chip.js.map +1 -1
- package/dist/src/nile-error-message/nile-error-message.css.js +4 -6
- package/dist/src/nile-error-message/nile-error-message.css.js.map +1 -1
- package/dist/src/nile-error-message/nile-error-message.d.ts +0 -4
- package/dist/src/nile-error-message/nile-error-message.js +0 -20
- package/dist/src/nile-error-message/nile-error-message.js.map +1 -1
- package/dist/src/nile-error-notification/nile-error-notification.css.js +1 -1
- package/dist/src/nile-error-notification/nile-error-notification.css.js.map +1 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js +17 -40
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.d.ts +3 -4
- package/dist/src/nile-filter-chip/nile-filter-chip.js +12 -25
- package/dist/src/nile-filter-chip/nile-filter-chip.js.map +1 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js +12 -12
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/accessreview.d.ts +1 -1
- package/dist/src/nile-icon/icons/svg/accessreview.js +1 -1
- package/dist/src/nile-icon/icons/svg/accessreview.js.map +1 -1
- package/dist/src/nile-new-error/index.d.ts +1 -0
- package/dist/src/nile-new-error/index.js +2 -0
- package/dist/src/nile-new-error/index.js.map +1 -0
- package/dist/src/{nile-file-preview/nile-file-preview.css.d.ts → nile-new-error/nile-new-error.css.d.ts} +1 -1
- package/dist/src/nile-new-error/nile-new-error.css.js +38 -0
- package/dist/src/nile-new-error/nile-new-error.css.js.map +1 -0
- package/dist/src/nile-new-error/nile-new-error.d.ts +36 -0
- package/dist/src/nile-new-error/nile-new-error.js +74 -0
- package/dist/src/nile-new-error/nile-new-error.js.map +1 -0
- package/dist/src/nile-progress-bar/nile-progress-bar.css.js +0 -1
- package/dist/src/nile-progress-bar/nile-progress-bar.css.js.map +1 -1
- package/dist/src/nile-select/nile-select.js +1 -1
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-table/nile-table.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.css.js +43 -76
- package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.d.ts +46 -24
- package/dist/src/nile-tooltip/nile-tooltip.js +232 -235
- package/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
- package/dist/src/nile-virtual-list/index.d.ts +1 -0
- package/dist/src/nile-virtual-list/index.js +2 -0
- package/dist/src/{nile-file-preview → nile-virtual-list}/index.js.map +1 -1
- package/dist/src/{nile-file-upload/nile-file-upload.css.d.ts → nile-virtual-list/nile-virtual-list.css.d.ts} +1 -1
- package/dist/src/nile-virtual-list/nile-virtual-list.css.js +25 -0
- package/dist/src/nile-virtual-list/nile-virtual-list.css.js.map +1 -0
- package/dist/src/nile-virtual-list/nile-virtual-list.d.ts +28 -0
- package/dist/src/nile-virtual-list/nile-virtual-list.js +69 -0
- package/dist/src/nile-virtual-list/nile-virtual-list.js.map +1 -0
- package/dist/src/nile-virtual-scroll/index.d.ts +1 -0
- package/dist/src/nile-virtual-scroll/index.js +2 -0
- package/dist/src/nile-virtual-scroll/index.js.map +1 -0
- package/dist/src/{nile-pagination/nile-pagination.css.d.ts → nile-virtual-scroll/nile-virtual-scroll.css.d.ts} +2 -2
- package/dist/src/{nile-rich-text-editor/nile-rich-text-editor.css.js → nile-virtual-scroll/nile-virtual-scroll.css.js} +3 -3
- package/dist/src/nile-virtual-scroll/nile-virtual-scroll.css.js.map +1 -0
- package/dist/src/nile-virtual-scroll/nile-virtual-scroll.d.ts +54 -0
- package/dist/src/nile-virtual-scroll/nile-virtual-scroll.js +196 -0
- package/dist/src/nile-virtual-scroll/nile-virtual-scroll.js.map +1 -0
- package/dist/src/nile-virtual-scroll/nile-virtual-scroll.utils.d.ts +23 -0
- package/dist/src/nile-virtual-scroll/nile-virtual-scroll.utils.js +48 -0
- package/dist/src/nile-virtual-scroll/nile-virtual-scroll.utils.js.map +1 -0
- package/dist/src/nile-virtual-select/event-handlers.d.ts +19 -0
- package/dist/src/nile-virtual-select/event-handlers.js +153 -0
- package/dist/src/nile-virtual-select/event-handlers.js.map +1 -0
- package/dist/src/nile-virtual-select/index.d.ts +1 -0
- package/dist/src/nile-virtual-select/index.js +2 -0
- package/dist/src/nile-virtual-select/index.js.map +1 -0
- package/dist/src/nile-virtual-select/models.d.ts +33 -0
- package/dist/src/nile-virtual-select/models.js +5 -0
- package/dist/src/nile-virtual-select/models.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.css.d.ts +12 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js +463 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +239 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.js +1287 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js +2 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.utils.js +2 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.utils.js.map +1 -0
- package/dist/src/nile-virtual-select/option-utils.d.ts +15 -0
- package/dist/src/nile-virtual-select/option-utils.js +59 -0
- package/dist/src/nile-virtual-select/option-utils.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/plop-templates/lit/index.ts.hbs +1 -1
- package/plop-templates/lit/lit.css.ts.hbs +1 -1
- package/plop-templates/lit/lit.ts.hbs +3 -7
- package/plopfile.js +1 -32
- package/src/index.ts +1 -2
- package/src/nile-chip/nile-chip.ts +0 -9
- package/src/nile-error-message/nile-error-message.css.ts +4 -6
- package/src/nile-error-message/nile-error-message.ts +0 -18
- package/src/nile-error-notification/nile-error-notification.css.ts +1 -1
- package/src/nile-icon/icons/svg/accessreview.ts +1 -1
- package/src/nile-progress-bar/nile-progress-bar.css.ts +0 -1
- package/src/nile-select/nile-select.ts +1 -1
- package/src/nile-table/nile-table.ts +2 -2
- package/src/nile-tooltip/nile-tooltip.css.ts +44 -77
- package/src/nile-tooltip/nile-tooltip.ts +230 -268
- package/vscode-html-custom-data.json +95 -144
- package/dist/_commonjsHelpers-e8f8776f.cjs.js +0 -2
- package/dist/_commonjsHelpers-e8f8776f.cjs.js.map +0 -1
- package/dist/_commonjsHelpers-f94d783e.esm.js +0 -1
- package/dist/axe.min-61450170.cjs.js +0 -12
- package/dist/axe.min-61450170.cjs.js.map +0 -1
- package/dist/axe.min-640ded4a.esm.js +0 -12
- package/dist/fixture-205f11fa.cjs.js +0 -395
- package/dist/fixture-205f11fa.cjs.js.map +0 -1
- package/dist/fixture-2b5b3aba.esm.js +0 -569
- package/dist/lit-html-39a6718c.esm.js +0 -6
- package/dist/lit-html-9b3af046.cjs.js +0 -6
- package/dist/lit-html-9b3af046.cjs.js.map +0 -1
- package/dist/nile-file-preview/index.cjs.js +0 -2
- package/dist/nile-file-preview/index.cjs.js.map +0 -1
- package/dist/nile-file-preview/index.esm.js +0 -1
- package/dist/nile-file-preview/nile-file-preview.cjs.js +0 -2
- package/dist/nile-file-preview/nile-file-preview.cjs.js.map +0 -1
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js +0 -2
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +0 -1
- package/dist/nile-file-preview/nile-file-preview.css.esm.js +0 -521
- package/dist/nile-file-preview/nile-file-preview.esm.js +0 -3
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js +0 -2
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +0 -1
- package/dist/nile-file-preview/nile-file-preview.template.esm.js +0 -117
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js +0 -2
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +0 -1
- package/dist/nile-file-preview/nile-file-preview.test.esm.js +0 -1
- package/dist/nile-file-preview/types/file-preview.enums.cjs.js +0 -2
- package/dist/nile-file-preview/types/file-preview.enums.cjs.js.map +0 -1
- package/dist/nile-file-preview/types/file-preview.enums.esm.js +0 -1
- package/dist/nile-file-preview/types/file-preview.interface.cjs.js +0 -2
- package/dist/nile-file-preview/types/file-preview.interface.cjs.js.map +0 -1
- package/dist/nile-file-preview/types/file-preview.interface.esm.js +0 -1
- package/dist/nile-file-preview/types/index.cjs.js +0 -2
- package/dist/nile-file-preview/types/index.cjs.js.map +0 -1
- package/dist/nile-file-preview/types/index.esm.js +0 -1
- package/dist/nile-file-preview/utils/file-preview.util.cjs.js +0 -2
- package/dist/nile-file-preview/utils/file-preview.util.cjs.js.map +0 -1
- package/dist/nile-file-preview/utils/file-preview.util.esm.js +0 -1
- package/dist/nile-file-preview/utils/index.cjs.js +0 -2
- package/dist/nile-file-preview/utils/index.cjs.js.map +0 -1
- package/dist/nile-file-preview/utils/index.esm.js +0 -1
- package/dist/nile-file-upload/index.cjs.js +0 -2
- package/dist/nile-file-upload/index.cjs.js.map +0 -1
- package/dist/nile-file-upload/index.esm.js +0 -1
- package/dist/nile-file-upload/nile-file-upload.cjs.js +0 -2
- package/dist/nile-file-upload/nile-file-upload.cjs.js.map +0 -1
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js +0 -2
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +0 -1
- package/dist/nile-file-upload/nile-file-upload.css.esm.js +0 -535
- package/dist/nile-file-upload/nile-file-upload.esm.js +0 -3
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js +0 -10
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +0 -1
- package/dist/nile-file-upload/nile-file-upload.template.esm.js +0 -155
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js +0 -2
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +0 -1
- package/dist/nile-file-upload/nile-file-upload.test.esm.js +0 -1
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js +0 -2
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +0 -1
- package/dist/nile-file-upload/types/file-upload.enums.esm.js +0 -1
- package/dist/nile-file-upload/types/file-upload.type.cjs.js +0 -2
- package/dist/nile-file-upload/types/file-upload.type.cjs.js.map +0 -1
- package/dist/nile-file-upload/types/file-upload.type.esm.js +0 -1
- package/dist/nile-file-upload/types/index.cjs.js +0 -2
- package/dist/nile-file-upload/types/index.cjs.js.map +0 -1
- package/dist/nile-file-upload/types/index.esm.js +0 -1
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +0 -2
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +0 -1
- package/dist/nile-file-upload/utils/drag-drop.util.esm.js +0 -1
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js +0 -2
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +0 -1
- package/dist/nile-file-upload/utils/file-validation.util.esm.js +0 -1
- package/dist/nile-rich-text-editor/index.cjs.js +0 -2
- package/dist/nile-rich-text-editor/index.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/index.esm.js +0 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +0 -10
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +0 -5
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +0 -28
- package/dist/nile-rich-text-editor/nile-rich-text-editor.template.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rich-text-editor.template.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.template.esm.js +0 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.test.cjs.js +0 -2
- package/dist/nile-rich-text-editor/nile-rich-text-editor.test.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.test.esm.js +0 -1
- package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.cjs.js +0 -2
- package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.esm.js +0 -1
- package/dist/nile-rich-text-editor/types/index.cjs.js +0 -2
- package/dist/nile-rich-text-editor/types/index.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/types/index.esm.js +0 -1
- package/dist/nile-rich-text-editor/types/rich-text-editor.type.cjs.js +0 -2
- package/dist/nile-rich-text-editor/types/rich-text-editor.type.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/types/rich-text-editor.type.esm.js +0 -1
- package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.cjs.js +0 -2
- package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.cjs.js.map +0 -1
- package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.esm.js +0 -1
- package/dist/src/nile-file-preview/index.d.ts +0 -1
- package/dist/src/nile-file-preview/index.js +0 -2
- package/dist/src/nile-file-preview/nile-file-preview.css.js +0 -533
- package/dist/src/nile-file-preview/nile-file-preview.css.js.map +0 -1
- package/dist/src/nile-file-preview/nile-file-preview.d.ts +0 -48
- package/dist/src/nile-file-preview/nile-file-preview.js +0 -149
- package/dist/src/nile-file-preview/nile-file-preview.js.map +0 -1
- package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +0 -11
- package/dist/src/nile-file-preview/nile-file-preview.template.js +0 -144
- package/dist/src/nile-file-preview/nile-file-preview.template.js.map +0 -1
- package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +0 -7
- package/dist/src/nile-file-preview/nile-file-preview.test.js +0 -30
- package/dist/src/nile-file-preview/nile-file-preview.test.js.map +0 -1
- package/dist/src/nile-file-preview/types/file-preview.enums.d.ts +0 -23
- package/dist/src/nile-file-preview/types/file-preview.enums.js +0 -28
- package/dist/src/nile-file-preview/types/file-preview.enums.js.map +0 -1
- package/dist/src/nile-file-preview/types/file-preview.interface.d.ts +0 -4
- package/dist/src/nile-file-preview/types/file-preview.interface.js +0 -2
- package/dist/src/nile-file-preview/types/file-preview.interface.js.map +0 -1
- package/dist/src/nile-file-preview/types/index.d.ts +0 -2
- package/dist/src/nile-file-preview/types/index.js +0 -3
- package/dist/src/nile-file-preview/types/index.js.map +0 -1
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +0 -26
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +0 -31
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +0 -1
- package/dist/src/nile-file-preview/types/nile-file-preview.interface.d.ts +0 -4
- package/dist/src/nile-file-preview/types/nile-file-preview.interface.js +0 -2
- package/dist/src/nile-file-preview/types/nile-file-preview.interface.js.map +0 -1
- package/dist/src/nile-file-preview/utils/file-preview.util.d.ts +0 -3
- package/dist/src/nile-file-preview/utils/file-preview.util.js +0 -29
- package/dist/src/nile-file-preview/utils/file-preview.util.js.map +0 -1
- package/dist/src/nile-file-preview/utils/index.d.ts +0 -1
- package/dist/src/nile-file-preview/utils/index.js +0 -2
- package/dist/src/nile-file-preview/utils/index.js.map +0 -1
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +0 -4
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +0 -45
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +0 -1
- package/dist/src/nile-file-upload/index.d.ts +0 -1
- package/dist/src/nile-file-upload/index.js +0 -2
- package/dist/src/nile-file-upload/index.js.map +0 -1
- package/dist/src/nile-file-upload/nile-file-upload.css.js +0 -547
- package/dist/src/nile-file-upload/nile-file-upload.css.js.map +0 -1
- package/dist/src/nile-file-upload/nile-file-upload.d.ts +0 -45
- package/dist/src/nile-file-upload/nile-file-upload.js +0 -148
- package/dist/src/nile-file-upload/nile-file-upload.js.map +0 -1
- package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +0 -11
- package/dist/src/nile-file-upload/nile-file-upload.template.js +0 -163
- package/dist/src/nile-file-upload/nile-file-upload.template.js.map +0 -1
- package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +0 -7
- package/dist/src/nile-file-upload/nile-file-upload.test.js +0 -30
- package/dist/src/nile-file-upload/nile-file-upload.test.js.map +0 -1
- package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +0 -28
- package/dist/src/nile-file-upload/types/file-upload.enums.js +0 -35
- package/dist/src/nile-file-upload/types/file-upload.enums.js.map +0 -1
- package/dist/src/nile-file-upload/types/file-upload.type.d.ts +0 -4
- package/dist/src/nile-file-upload/types/file-upload.type.js +0 -2
- package/dist/src/nile-file-upload/types/file-upload.type.js.map +0 -1
- package/dist/src/nile-file-upload/types/index.d.ts +0 -2
- package/dist/src/nile-file-upload/types/index.js +0 -3
- package/dist/src/nile-file-upload/types/index.js.map +0 -1
- package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +0 -19
- package/dist/src/nile-file-upload/utils/drag-drop.util.js +0 -77
- package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +0 -1
- package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +0 -9
- package/dist/src/nile-file-upload/utils/file-validation.util.js +0 -58
- package/dist/src/nile-file-upload/utils/file-validation.util.js.map +0 -1
- package/dist/src/nile-pagination/index.d.ts +0 -1
- package/dist/src/nile-pagination/index.js +0 -2
- package/dist/src/nile-pagination/index.js.map +0 -1
- package/dist/src/nile-pagination/nile-pagination.css.js +0 -156
- package/dist/src/nile-pagination/nile-pagination.css.js.map +0 -1
- package/dist/src/nile-pagination/nile-pagination.d.ts +0 -36
- package/dist/src/nile-pagination/nile-pagination.js +0 -170
- package/dist/src/nile-pagination/nile-pagination.js.map +0 -1
- package/dist/src/nile-pagination/nile-pagination.template.d.ts +0 -3
- package/dist/src/nile-pagination/nile-pagination.template.js +0 -5
- package/dist/src/nile-pagination/nile-pagination.template.js.map +0 -1
- package/dist/src/nile-pagination/nile-pagination.test.d.ts +0 -7
- package/dist/src/nile-pagination/nile-pagination.test.js +0 -30
- package/dist/src/nile-pagination/nile-pagination.test.js.map +0 -1
- package/dist/src/nile-pagination/sub-components/nile-pagination.js +0 -2
- package/dist/src/nile-pagination/sub-components/nile-pagination.js.map +0 -1
- package/dist/src/nile-pagination/types/index.js +0 -2
- package/dist/src/nile-pagination/types/index.js.map +0 -1
- package/dist/src/nile-pagination/types/pagination.type.d.ts +0 -3
- package/dist/src/nile-pagination/types/pagination.type.js +0 -5
- package/dist/src/nile-pagination/types/pagination.type.js.map +0 -1
- package/dist/src/nile-pagination/utils/nile-pagination.utils.d.ts +0 -0
- package/dist/src/nile-pagination/utils/nile-pagination.utils.js +0 -2
- package/dist/src/nile-pagination/utils/nile-pagination.utils.js.map +0 -1
- package/dist/src/nile-rich-text-editor/index.d.ts +0 -1
- package/dist/src/nile-rich-text-editor/index.js +0 -2
- package/dist/src/nile-rich-text-editor/index.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.d.ts +0 -12
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +0 -10
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +0 -62
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.d.ts +0 -3
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.js +0 -5
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.js.map +0 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.d.ts +0 -7
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.js +0 -30
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.js.map +0 -1
- package/dist/src/nile-rich-text-editor/quill/quill.d.ts +0 -8
- package/dist/src/nile-rich-text-editor/quill/quill.js +0 -19
- package/dist/src/nile-rich-text-editor/quill/quill.js.map +0 -1
- package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.d.ts +0 -0
- package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.js +0 -2
- package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.js.map +0 -1
- package/dist/src/nile-rich-text-editor/types/index.d.ts +0 -0
- package/dist/src/nile-rich-text-editor/types/index.js +0 -2
- package/dist/src/nile-rich-text-editor/types/index.js.map +0 -1
- package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.d.ts +0 -3
- package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.js +0 -5
- package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.js.map +0 -1
- package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.d.ts +0 -0
- package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.js +0 -2
- package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.js.map +0 -1
- package/plop-templates/lit/lit.template.ts.hbs +0 -3
- package/plop-templates/lit/lit.test.ts.hbs +0 -38
- package/plop-templates/lit/sub-components/index.ts.hbs +0 -4
- package/plop-templates/lit/types/index.ts.hbs +0 -0
- package/plop-templates/lit/types/type.ts.hbs +0 -3
- package/plop-templates/lit/utils/lit.utils.ts.hbs +0 -4
- package/src/nile-filter-chip/index.ts +0 -1
- package/src/nile-filter-chip/nile-filter-chip.css.ts +0 -138
- package/src/nile-filter-chip/nile-filter-chip.test.ts +0 -92
- package/src/nile-filter-chip/nile-filter-chip.ts +0 -136
- package/src/nile-tooltip/nile-tooltip-utils.ts +0 -271
- package/src/nile-tooltip/nile-tooltip.test.ts +0 -168
- /package/dist/src/{nile-pagination/sub-components/nile-pagination.d.ts → nile-virtual-select/nile-virtual-select.test.d.ts} +0 -0
- /package/dist/src/{nile-pagination/types/index.d.ts → nile-virtual-select/nile-virtual-select.utils.d.ts} +0 -0
@@ -1,2 +0,0 @@
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-948ae33c.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-file-preview.cjs.js","tslib","./nile-file-preview.css.cjs.js","../internal/nile-element.cjs.js","lit/decorators.js","./utils/file-preview.util.cjs.js","./types/file-preview.enums.cjs.js","./nile-file-preview.template.cjs.js"],function(_export,_context){"use strict";var e,i,t,s,_templateObject,_templateObject2;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture002CjsJs){e=_fixture002CjsJs.f;i=_fixture002CjsJs.a;t=_fixture002CjsJs.h;},function(_litStaticHtmlJs){s=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFilePreviewCjsJs){},function(_tslib){},function(_nileFilePreviewCssCjsJs){},function(_internalNileElementCjsJs){},function(_litDecoratorsJs){},function(_utilsFilePreviewUtilCjsJs){},function(_typesFilePreviewEnumsCjsJs){},function(_nileFilePreviewTemplateCjsJs){}],execute:function execute(){describe("<nile-preview>",function(){var r;beforeEach(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return e(s(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-file-preview></nile-file-preview>"]))));case 2:r=_context2.sent;case 3:case"end":return _context2.stop();}},_callee);}))),it("passes accessibility test",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(r).to.be.accessible();case 2:case"end":return _context3.stop();}},_callee2);}))),it("renders with the correct tag name",function(){i(r.tagName.toLowerCase()).to.equal("nile-preview");}),it("renders with slot content when provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _o$0$textContent;var l,n,o;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:l="Test Content";_context4.next=3;return e(s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-file-preview>","</nile-file-preview>"])),l));case 3:r=_context4.sent;n=r.shadowRoot.querySelector("slot");t.exists(n,"Slot should exist");o=n.assignedNodes({flatten:!0});i(o.length).to.be.greaterThan(0),i((_o$0$textContent=o[0].textContent)===null||_o$0$textContent===void 0?void 0:_o$0$textContent.trim()).to.equal(l);case 8:case"end":return _context4.stop();}},_callee3);})));});}};});
|
2
|
-
//# sourceMappingURL=nile-file-preview.test.cjs.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"nile-file-preview.test.cjs.js","sources":["../../../src/nile-file-preview/nile-file-preview.test.ts"],"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});"],"names":["describe","element","beforeEach","async","fixture","html","_templateObject","_taggedTemplateLiteral","it","_asyncToGenerator","_regeneratorRuntime","mark","expect","to","be","accessible","_context3","stop","_callee2","tagName","toLowerCase","equal","testContent","_context4","next","_templateObject2","slot","shadowRoot","querySelector","assert","exists","assignedNodes","flatten","length","greaterThan","textContent","trim","_callee3"],"mappings":"+6SAWAA,QAAS,CAAA,gBAAA,CAAkB,WACzB,GAAIC,CAAAA,CAAAA,CAEJC,kFAAWC,SAAAA,QAAAA,SAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,SAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SAAAA,SAAAA,CAAAA,IAAAA,SACOC,CAAAA,EAAQC,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,+CAAA,CAA0C,QAAtEN,CAAAA,CAAAA,SAAAA,CAAAA,IAAAA,yBAAAA,SAAAA,CAAAA,IAAAA,MAAAA,OAAAA,OAGFO,EAAG,CAAA,2BAAA,cAAAC,iBAAA,cAAAC,mBAAA,GAAAC,IAAA,CAA6BR,SAAAA,SAAAA,SAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,UAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SAAAA,SAAAA,CAAAA,IAAAA,SACxBS,CAAAA,CAAOX,CAAAA,CAAAA,CAAAA,CAASY,GAAGC,EAAGC,CAAAA,UAAAA,CAAAA,CAAY,yBAAAC,SAAA,CAAAC,IAAA,MAAAC,QAAA,OAG1CV,EAAG,CAAA,mCAAA,CAAqC,WACtCI,CAAOX,CAAAA,CAAAA,CAAQkB,QAAQC,WAAeP,CAAAA,CAAAA,CAAAA,CAAAA,EAAAA,CAAGQ,MAAM,cAAe,CAAA,EAAA,CAAA,CAGhEb,GAAG,yCAA2CL,cAAAA,iBAAAA,cAAAA,mBAAAA,GAAAA,IAAAA,CAAAA,SAAAA,SAAAA,MAAAA,gBAAAA,KAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,QAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,UAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SACtCmB,CAAc,CAAA,cAAA,CAAAC,SAAA,CAAAC,IAAA,SACJpB,CAAAA,CAAQC,CAAAA,CAAI,CAAAoB,gBAAA,GAAAA,gBAAA,CAAAlB,sBAAA,kDAAsBe,CAElD,CAAA,CAAA,QAFArB,iBAEMyB,EAAQzB,CAAQ0B,CAAAA,UAAAA,CAAYC,cAAc,MAChDC,CAAAA,CAAAA,CAAAA,CAAOC,OAAOJ,CAAM,CAAA,mBAAA,CAAA,CAEdK,CAAgBL,CAAAA,CAAAA,CAAKK,cAAc,CAAEC,OAAAA,CAAAA,CAAS,IACpDpB,CAAOmB,CAAAA,CAAAA,CAAcE,QAAQpB,EAAGC,CAAAA,EAAAA,CAAGoB,YAAY,CAC/CtB,CAAAA,CAAAA,CAAAA,EAAAA,gBAAAA,CAAOmB,EAAc,CAAGI,CAAAA,CAAAA,WAAAA,UAAAA,gBAAAA,iBAAjBJ,gBAAAA,CAA8BK,QAAQvB,EAAGQ,CAAAA,KAAAA,CAAMC,EAAY,yBAAAC,SAAA,CAAAN,IAAA,MAAAoB,QAAA,GAClE,EAAA,CAAA,EAAA,CAAA,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{f as e,a as i,h as t}from"../fixture-76051ef1.esm.js";import{html as s}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-file-preview.esm.js";import"tslib";import"./nile-file-preview.css.esm.js";import"../internal/nile-element.esm.js";import"lit/decorators.js";import"./utils/file-preview.util.esm.js";import"./types/file-preview.enums.esm.js";import"./nile-file-preview.template.esm.js";describe("<nile-preview>",(()=>{let r;beforeEach((async()=>{r=await e(s`<nile-file-preview></nile-file-preview>`)})),it("passes accessibility test",(async()=>{await i(r).to.be.accessible()})),it("renders with the correct tag name",(()=>{i(r.tagName.toLowerCase()).to.equal("nile-preview")})),it("renders with slot content when provided",(async()=>{const l="Test Content";r=await e(s`<nile-file-preview>${l}</nile-file-preview>`);const m=r.shadowRoot.querySelector("slot");t.exists(m,"Slot should exist");const n=m.assignedNodes({flatten:!0});i(n.length).to.be.greaterThan(0),i(n[0].textContent?.trim()).to.equal(l)}))}));
|
@@ -1,2 +0,0 @@
|
|
1
|
-
System.register([],function(_export,_context){"use strict";var e,i,n,a;_export({F:void 0,a:void 0,c:void 0,b:void 0});return{setters:[],execute:function execute(){!function(e){e.DEFAULT="default",e.UPLOADING="uploading",e.PREVIEW="preview",e.NO_PREVIEW="no-preview",e.ERROR="error";}(e||_export("F",e={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical";}(i||_export("a",i={})),function(e){e.INVALID_FORMAT="Invalid File Format. Please try again.",e.SIZE_LIMIT="Size limit exceeded",e.FAILED_TO_LOAD="Failed to load file from URL",e.UNKNOWN_FILE_NAME="unknown-file";}(n||_export("c",n={})),function(e){e.NILE_INIT="nile-init",e.NILE_RECEIVE="nile-receive",e.NILE_REMOVE="nile-remove",e.NILE_DESTROY="nile-destroy";}(a||_export("b",a={}));}};});
|
2
|
-
//# sourceMappingURL=file-preview.enums.cjs.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"file-preview.enums.cjs.js","sources":["../../../../src/nile-file-preview/types/file-preview.enums.ts"],"sourcesContent":["export enum FilePreviewState {\n DEFAULT = 'default',\n UPLOADING = 'uploading',\n PREVIEW = 'preview',\n NO_PREVIEW = 'no-preview',\n ERROR = 'error'\n}\n\nexport enum FilePreviewVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical'\n}\n\nexport enum FilePreviewErrorMessages {\n INVALID_FORMAT = \"Invalid File Format. Please try again.\",\n SIZE_LIMIT = \"Size limit exceeded\",\n FAILED_TO_LOAD = \"Failed to load file from URL\",\n UNKNOWN_FILE_NAME = 'unknown-file'\n}\n\nexport enum FilePreviewEvent {\n NILE_INIT = \"nile-init\",\n NILE_RECEIVE = \"nile-receive\",\n NILE_REMOVE = \"nile-remove\",\n NILE_DESTROY = \"nile-destroy\"\n}"],"names":["FilePreviewState","DEFAULT","UPLOADING","PREVIEW","NO_PREVIEW","ERROR","FilePreviewVariant","HORIZONTAL","VERTICAL","FilePreviewErrorMessages","INVALID_FORMAT","SIZE_LIMIT","FAILED_TO_LOAD","UNKNOWN_FILE_NAME","FilePreviewEvent","NILE_INIT","NILE_RECEIVE","NILE_REMOVE","NILE_DESTROY"],"mappings":"mKAAA,CAAA,SAAYA,GACVA,CAAA,CAAAC,OAAA,CAAA,SACAD,CAAAA,CAAAA,CAAAE,UAAA,WACAF,CAAAA,CAAAA,CAAAG,QAAA,SACAH,CAAAA,CAAAA,CAAAI,WAAA,YACAJ,CAAAA,CAAAA,CAAAK,KAAA,CAAA,OACD,EAND,CAAYL,CAAAA,EAAAA,OAAAA,KAAAA,EAMX,CAAA,CAAA,CAAA,CAAA,CAED,SAAYM,CACVA,CAAAA,CAAAA,CAAAA,CAAAC,UAAA,CAAA,YAAA,CACAD,EAAAE,QAAA,CAAA,UACD,EAHD,CAAYF,CAAAA,EAAAA,OAAAA,KAAAA,EAGX,CAAA,CAAA,CAAA,CAAA,CAED,SAAYG,CAAAA,CAAAA,CACVA,EAAAC,cAAA,CAAA,wCAAA,CACAD,EAAAE,UAAA,CAAA,qBAAA,CACAF,EAAAG,cAAA,CAAA,8BAAA,CACAH,CAAA,CAAAI,iBAAA,CAAA,cACD,EALD,CAAYJ,eAAAA,CAKX,CAAA,CAAA,IAED,SAAYK,CAAAA,CAAAA,CACVA,CAAA,CAAAC,SAAA,CAAA,YACAD,CAAA,CAAAE,YAAA,CAAA,eACAF,CAAA,CAAAG,WAAA,CAAA,cACAH,CAAA,CAAAI,YAAA,CAAA,cACD,EALD,CAAYJ,CAAAA,EAAAA,OAAAA,KAAAA,CAAAA,CAKX,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
var e,i,n,a;!function(e){e.DEFAULT="default",e.UPLOADING="uploading",e.PREVIEW="preview",e.NO_PREVIEW="no-preview",e.ERROR="error"}(e||(e={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(i||(i={})),function(e){e.INVALID_FORMAT="Invalid File Format. Please try again.",e.SIZE_LIMIT="Size limit exceeded",e.FAILED_TO_LOAD="Failed to load file from URL",e.UNKNOWN_FILE_NAME="unknown-file"}(n||(n={})),function(e){e.NILE_INIT="nile-init",e.NILE_RECEIVE="nile-receive",e.NILE_REMOVE="nile-remove",e.NILE_DESTROY="nile-destroy"}(a||(a={}));export{e as F,i as a,a as b,n as c};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"file-preview.interface.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
|
@@ -1,2 +0,0 @@
|
|
1
|
-
System.register(["./file-preview.enums.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_filePreviewEnumsCjsJs){_export({FilePreviewErrorMessages:_filePreviewEnumsCjsJs.c,FilePreviewEvent:_filePreviewEnumsCjsJs.b,FilePreviewState:_filePreviewEnumsCjsJs.F,FilePreviewVariant:_filePreviewEnumsCjsJs.a});}],execute:function execute(){}};});
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
export{c as FilePreviewErrorMessages,b as FilePreviewEvent,F as FilePreviewState,a as FilePreviewVariant}from"./file-preview.enums.esm.js";
|
@@ -1,2 +0,0 @@
|
|
1
|
-
System.register(["../types/file-preview.enums.cjs.js"],function(_export,_context){"use strict";var e,s,t;return{setters:[function(_typesFilePreviewEnumsCjsJs){e=_typesFilePreviewEnumsCjsJs.b;}],execute:function execute(){_export("g",s=function s(e){return new Promise(function(s,t){var o=new FileReader();e?o.readAsDataURL(e):t("No file selected"),o.onload=function(){var e=o.result;s(e);},o.onerror=function(e){t("Unable to generate the url");};});}),_export("r",t=function t(s,_t,o){_t.target&&_t.target.dispatchEvent(new CustomEvent(e.NILE_REMOVE,{detail:{value:s,url:o},bubbles:!0,composed:!0}));});}};});
|
2
|
-
//# sourceMappingURL=file-preview.util.cjs.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"file-preview.util.cjs.js","sources":["../../../../src/nile-file-preview/utils/file-preview.util.ts"],"sourcesContent":["import { RemoveFileDetail, FilePreviewEvent } 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('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(\"Unable to generate the 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};"],"names":["generatePreviewUrl","file","Promise","resolve","reject","reader","FileReader","readAsDataURL","onload","previewUrl","result","onerror","error","removeFile","e","originalUrl","target","dispatchEvent","CustomEvent","FilePreviewEvent","NILE_REMOVE","detail","value","url","bubbles","composed"],"mappings":"yOAEaA,CAAsBC,CAAAA,QAAtBD,CAAAA,CAAsBC,CAAAA,CAAAA,QAC1B,IAAIC,CAAAA,OAAAA,CAAQ,SAACC,CAAAA,CAASC,CAC3B,CAAA,CAAA,GAAMC,CAAAA,CAAS,CAAA,GAAIC,CAAAA,UAEfL,CAAAA,CAAAA,CAAAA,CAAAA,CACFI,CAAOE,CAAAA,aAAAA,CAAcN,CAErBG,CAAAA,CAAAA,CAAAA,CAAO,kBAGTC,CAAAA,CAAAA,CAAAA,CAAOG,MAAS,CAAA,UAAA,CACd,GAAMC,CAAAA,CAAAA,CAAaJ,CAAOK,CAAAA,MAAAA,CAC1BP,CAAQM,CAAAA,CAAAA,CAAW,GAGrBJ,CAAOM,CAAAA,OAAAA,CAAWC,SAAAA,CAChBR,CAAAA,CAAAA,CAAAA,CAAO,4BAA6B,CAAA,EACrC,EAIQS,CAAAA,IAAAA,OAAAA,KAAAA,CAAAA,CAAa,QAAbA,CAAAA,CAAAA,CAAcA,CAAAA,CAAkBC,EAAkCC,CAAAA,CAAAA,CAAAA,CACzED,EAAEE,CAAAA,MAAAA,EACJF,EAAEE,CAAAA,MAAAA,CAAOC,aACP,CAAA,GAAIC,CAAAA,WAAYC,CAAAA,CAAAA,CAAiBC,WAAa,CAAA,CAC5CC,MAAQ,CAAA,CAAEC,KAAOT,CAAAA,CAAAA,CAAYU,GAAKR,CAAAA,CAAAA,CAAAA,CAClCS,OAAS,CAAA,CAAA,CAAA,CACTC,QAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAGf"}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{b as e}from"../types/file-preview.enums.esm.js";const s=e=>new Promise(((s,t)=>{const o=new FileReader;e?o.readAsDataURL(e):t("No file selected"),o.onload=()=>{const e=o.result;s(e)},o.onerror=e=>{t("Unable to generate the url")}})),t=(s,t,o)=>{t.target&&t.target.dispatchEvent(new CustomEvent(e.NILE_REMOVE,{detail:{value:s,url:o},bubbles:!0,composed:!0}))};export{s as g,t as r};
|
@@ -1,2 +0,0 @@
|
|
1
|
-
System.register(["./file-preview.util.cjs.js","../types/file-preview.enums.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_filePreviewUtilCjsJs){_export({generatePreviewUrl:_filePreviewUtilCjsJs.g,removeFile:_filePreviewUtilCjsJs.r});},function(_typesFilePreviewEnumsCjsJs){}],execute:function execute(){}};});
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
export{g as generatePreviewUrl,r as removeFile}from"./file-preview.util.esm.js";import"../types/file-preview.enums.esm.js";
|
@@ -1,2 +0,0 @@
|
|
1
|
-
System.register(["./nile-file-upload.cjs.js","tslib","./nile-file-upload.css.cjs.js","lit","../internal/nile-element.cjs.js","./utils/drag-drop.util.cjs.js","./types/file-upload.enums.cjs.js","./nile-file-upload.template.cjs.js","../lit-html-9b3af046.cjs.js","lit/decorators.js","./utils/file-validation.util.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileFileUploadCjsJs){_export("NileFileUpload",_nileFileUploadCjsJs.N);},function(_tslib){},function(_nileFileUploadCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_utilsDragDropUtilCjsJs){},function(_typesFileUploadEnumsCjsJs){},function(_nileFileUploadTemplateCjsJs){},function(_litHtml001CjsJs){},function(_litDecoratorsJs){},function(_utilsFileValidationUtilCjsJs){}],execute:function execute(){}};});
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
export{N as NileFileUpload}from"./nile-file-upload.esm.js";import"tslib";import"./nile-file-upload.css.esm.js";import"lit";import"../internal/nile-element.esm.js";import"./utils/drag-drop.util.esm.js";import"./types/file-upload.enums.esm.js";import"./nile-file-upload.template.esm.js";import"../lit-html-39a6718c.esm.js";import"lit/decorators.js";import"./utils/file-validation.util.esm.js";
|
@@ -1,2 +0,0 @@
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","./nile-file-upload.css.cjs.js","../internal/nile-element.cjs.js","./utils/drag-drop.util.cjs.js","./nile-file-upload.template.cjs.js","./types/file-upload.enums.cjs.js","lit","lit/decorators.js","./utils/file-validation.util.cjs.js","../lit-html-9b3af046.cjs.js"],function(_export,_context){"use strict";var t,s,i,e,r,a,h,o,l,n,p,d,u,c,m,f,j,v,y,g,b,S,_templateObject,w;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_nileFileUploadCssCjsJs){s=_nileFileUploadCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;},function(_utilsDragDropUtilCjsJs){e=_utilsDragDropUtilCjsJs.D;},function(_nileFileUploadTemplateCjsJs){r=_nileFileUploadTemplateCjsJs.g;a=_nileFileUploadTemplateCjsJs.a;h=_nileFileUploadTemplateCjsJs.b;o=_nileFileUploadTemplateCjsJs.c;l=_nileFileUploadTemplateCjsJs.d;n=_nileFileUploadTemplateCjsJs.e;p=_nileFileUploadTemplateCjsJs.f;},function(_typesFileUploadEnumsCjsJs){d=_typesFileUploadEnumsCjsJs.b;u=_typesFileUploadEnumsCjsJs.F;c=_typesFileUploadEnumsCjsJs.c;m=_typesFileUploadEnumsCjsJs.d;},function(_lit){f=_lit.html;},function(_litDecoratorsJs){j=_litDecoratorsJs.property;v=_litDecoratorsJs.query;y=_litDecoratorsJs.customElement;},function(_utilsFileValidationUtilCjsJs){g=_utilsFileValidationUtilCjsJs.s;b=_utilsFileValidationUtilCjsJs.a;S=_utilsFileValidationUtilCjsJs.b;},function(_litHtml001CjsJs){}],execute:function execute(){_export("N",w=/*#__PURE__*/function(_i){function w(){var _this;_classCallCheck(this,w);_this=_callSuper(this,w,arguments),_this.size=0,_this.error=!1,_this.errorMessage="",_this.allowMultiple=!0,_this.allowDuplicates=!0,_this.uploadedFiles=[],_this.title=d.TITLE,_this.subtitle=d.SUBTITLE,_this.state=u.DEFAULT,_this.variant=c.HORIZONTAL,_this.setState=function(t){_this.state=t;};return _this;}_inherits(w,_i);return _createClass(w,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(w,"connectedCallback",this,3)([]),this.emit(m.NILE_INIT);}},{key:"firstUpdated",value:function firstUpdated(t){_superPropGet(w,"firstUpdated",this,3)([t]),this.dragHandler=new e(),r(this.dragHandler),g(this,this.dragHandler),b(this,this.dragHandler),S(this.dragHandler);}},{key:"updated",value:function updated(t){_superPropGet(w,"updated",this,3)([t]),t.has("uploadedFiles")?this.emit(m.NILE_CHANGE,{files:this.uploadedFiles}):t.has("state")&&this.dragHandler.updateState(this.state);}},{key:"browseFiles",value:function browseFiles(){this.emit(m.NILE_BROWSE),this.input.click();}},{key:"render",value:function render(){return f(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n ","\n "])),this.getState());}},{key:"getState",value:function getState(){return this.variant===c.HORIZONTAL?this.getHorizontalState():this.getVerticalState();}},{key:"getHorizontalState",value:function getHorizontalState(){switch(this.state){case u.DEFAULT:return a(this.browseFiles,this.title,this.subtitle,this.errorMessage,this.state);case u.DISABLED:return o(this.browseFiles,this.title,this.subtitle);case u.DRAG:return h();default:return a(this.browseFiles,this.title,this.subtitle,this.errorMessage,this.state);}}},{key:"getVerticalState",value:function getVerticalState(){switch(this.state){case u.DEFAULT:return l(this.browseFiles,this.title,this.subtitle,this.errorMessage,this.state);case u.DISABLED:return p(this.browseFiles,this.title,this.subtitle);case u.DRAG:return n();default:return l(this.browseFiles,this.title,this.subtitle,this.errorMessage,this.state);}}},{key:"disconnectedCallback",value:function disconnectedCallback(){this.emit(m.NILE_DESTROY);}}],[{key:"styles",get:function get(){return[s];}}]);}(i));t([j({type:Number})],w.prototype,"size",void 0),t([j({type:Boolean})],w.prototype,"error",void 0),t([j({type:String})],w.prototype,"errorMessage",void 0),t([j({type:Boolean})],w.prototype,"allowMultiple",void 0),t([j({type:Boolean})],w.prototype,"allowDuplicates",void 0),t([j({type:Array})],w.prototype,"uploadedFiles",void 0),t([j({type:String})],w.prototype,"title",void 0),t([j({type:String})],w.prototype,"subtitle",void 0),t([j({type:String})],w.prototype,"state",void 0),t([j({type:String})],w.prototype,"variant",void 0),t([v("input")],w.prototype,"input",void 0),_export("N",w=t([y("nile-file-upload")],w));}};});
|
2
|
-
//# sourceMappingURL=nile-file-upload.cjs.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"nile-file-upload.cjs.js","sources":["../../../src/nile-file-upload/nile-file-upload.ts"],"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\nimport { styles } from './nile-file-upload.css';\nimport { ChangedPropsInterface } from './types/file-upload.type'\nimport NileElement from '../internal/nile-element';\nimport { DragHandler } from './utils/drag-drop.util';\nimport { getDragHandler } from './nile-file-upload.template'\nimport { FileUploadDefaults } from './types/file-upload.enums';\nimport { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { FileUploadState, FileUploadVariant, FileUploadError, FileUploadEvent } from './types/file-upload.enums';\nimport { setUpDragHandler, addGlobalListeners, addInternalListeners } from './utils/file-validation.util';\nimport {\n getHorizontalDefaultState,\n getHorizontalDisabledtState,\n getHorizontalDragState,\n getVerticalDefaultState,\n getVerticalDisabledState,\n getVerticalDragState,\n} from './nile-file-upload.template';\n\n/**\n * Nile file-upload component.\n *\n * @tag nile-file-upload\n *\n */\n@customElement('nile-file-upload')\nexport class NileFileUpload extends NileElement {\n /**\n * The styles for nile-file-upload\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number }) size: number = 0;\n @property({ type: Boolean}) error: boolean = false;\n @property({ type: String }) errorMessage: string = \"\";\n @property({ type: Boolean}) allowMultiple: boolean = true;\n @property({ type: Boolean}) allowDuplicates: boolean = true;\n @property({ type: Array }) uploadedFiles: File[] = [];\n @property({ type: String }) title: string = FileUploadDefaults.TITLE;\n @property({ type: String }) subtitle: string = FileUploadDefaults.SUBTITLE;\n @property({ type: String }) state: FileUploadState = FileUploadState.DEFAULT; \n @property({ type: String }) variant: FileUploadVariant = FileUploadVariant.HORIZONTAL;\n @query('input') input!: HTMLInputElement;\n \n private dragHandler!: DragHandler;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.emit(FileUploadEvent.NILE_INIT);\n }\n\n firstUpdated(changedProps: ChangedPropsInterface): void {\n super.firstUpdated(changedProps);\n\n this.dragHandler = new DragHandler();\n getDragHandler(this.dragHandler);\n setUpDragHandler(this, this.dragHandler);\n addInternalListeners(this, this.dragHandler);\n addGlobalListeners(this.dragHandler);\n }\n\n updated(changedProps: ChangedPropsInterface): void {\n super.updated(changedProps);\n\n if (changedProps.has('uploadedFiles')) {\n this.emit(FileUploadEvent.NILE_CHANGE, { files: this.uploadedFiles });\n } else if (changedProps.has('state')) {\n this.dragHandler.updateState(this.state);\n }\n }\n\n private browseFiles(): void {\n this.emit(FileUploadEvent.NILE_BROWSE);\n this.input.click();\n }\n\n public setState = (newState: FileUploadState): void => {\n this.state = newState;\n }\n\n render(): TemplateResult {\n return html`\n ${this.getState()}\n `;\n }\n\n private getState(): TemplateResult {\n return this.variant === FileUploadVariant.HORIZONTAL\n ? this.getHorizontalState()\n : this.getVerticalState();\n }\n\n private getHorizontalState(): TemplateResult {\n switch(this.state) {\n case FileUploadState.DEFAULT:\n return getHorizontalDefaultState(this.browseFiles, this.title, this.subtitle, this.errorMessage, this.state);\n\n case FileUploadState.DISABLED:\n return getHorizontalDisabledtState(this.browseFiles, this.title, this.subtitle);\n\n case FileUploadState.DRAG:\n return getHorizontalDragState();\n\n default:\n return getHorizontalDefaultState(this.browseFiles, this.title, this.subtitle, this.errorMessage, this.state);\n }\n }\n\n private getVerticalState(): TemplateResult {\n switch(this.state) {\n case FileUploadState.DEFAULT:\n return getVerticalDefaultState(this.browseFiles, this.title, this.subtitle, this.errorMessage, this.state);\n\n case FileUploadState.DISABLED:\n return getVerticalDisabledState(this.browseFiles, this.title, this.subtitle);\n\n case FileUploadState.DRAG:\n return getVerticalDragState();\n\n default:\n return getVerticalDefaultState(this.browseFiles, this.title, this.subtitle, this.errorMessage, this.state);\n }\n }\n\n disconnectedCallback(): void {\n this.emit(FileUploadEvent.NILE_DESTROY);\n }\n}\n"],"names":["NileFileUpload","w","this","size","error","errorMessage","allowMultiple","allowDuplicates","uploadedFiles","title","FileUploadDefaults","TITLE","subtitle","SUBTITLE","state","FileUploadState","DEFAULT","variant","FileUploadVariant","HORIZONTAL","setState","newState","_this","_inherits","_i","_createClass","key","value","connectedCallback","super","emit","FileUploadEvent","NILE_INIT","firstUpdated","changedProps","dragHandler","DragHandler","getDragHandler","setUpDragHandler","addInternalListeners","addGlobalListeners","updated","has","NILE_CHANGE","files","updateState","browseFiles","NILE_BROWSE","input","click","render","html","_templateObject","_taggedTemplateLiteral","getState","getHorizontalState","getVerticalState","getHorizontalDefaultState","DISABLED","getHorizontalDisabledtState","DRAG","getHorizontalDragState","getVerticalDefaultState","getVerticalDisabledState","getVerticalDragState","disconnectedCallback","NILE_DESTROY","get","styles","NileElement","__decorate","property","type","Number","prototype","Boolean","String","Array","query","customElement"],"mappings":"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"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",r=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\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: center;\n gap: 18px;\n height: auto;\n }\n\n input {\n display: none;\n }\n\n .horizontal-div {\n margin-bottom: 10px;\n height: 62px;\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 .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 }\n \n .content p {\n margin: 0px;\n font-size: var(--nile-type-scale-2);\n color: var(--nile-colors-neutral-700);\n }\n\n /* DISABLED STATE */\n .disable {\n background-color: var(--nile-colors-dark-200);\n opacity: 0.5;\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\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 h4 {\n font-weight: var(--nile-font-weight-regular);\n }\n\n .content-container p:first-child {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .content-container p:last-child {\n margin: 0px;\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-neutral-700);\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-500);\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: var(--nile-spacing-one-half-x);\n }\n"]))));}};});
|
2
|
-
//# sourceMappingURL=nile-file-upload.css.cjs.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"nile-file-upload.css.cjs.js","sources":["../../../src/nile-file-upload/nile-file-upload.css.ts"],"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: center;\n gap: 18px;\n height: auto;\n }\n\n input {\n display: none;\n }\n\n .horizontal-div {\n margin-bottom: 10px;\n height: 62px;\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 .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 }\n \n .content p {\n margin: 0px;\n font-size: var(--nile-type-scale-2);\n color: var(--nile-colors-neutral-700);\n }\n\n /* DISABLED STATE */\n .disable {\n background-color: var(--nile-colors-dark-200);\n opacity: 0.5;\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\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 h4 {\n font-weight: var(--nile-font-weight-regular);\n }\n\n .content-container p:first-child {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .content-container p:last-child {\n margin: 0px;\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-neutral-700);\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-500);\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: var(--nile-spacing-one-half-x);\n }\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|