@aquera/nile-elements 0.1.36-beta-1.1 → 0.1.36-beta-1.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 +7 -1
- package/dist/_commonjsHelpers-e8f8776f.cjs.js +2 -0
- package/dist/_commonjsHelpers-e8f8776f.cjs.js.map +1 -0
- package/dist/_commonjsHelpers-f94d783e.esm.js +1 -0
- package/dist/axe.min-61450170.cjs.js +12 -0
- package/dist/axe.min-61450170.cjs.js.map +1 -0
- package/dist/axe.min-640ded4a.esm.js +12 -0
- package/dist/fixture-205f11fa.cjs.js +395 -0
- package/dist/fixture-205f11fa.cjs.js.map +1 -0
- package/dist/fixture-2b5b3aba.esm.js +569 -0
- package/dist/{fixture-df8b52d7.esm.js → fixture-76051ef1.esm.js} +1 -1
- package/dist/fixture-7bfb866e.cjs.js +395 -0
- package/dist/fixture-7bfb866e.cjs.js.map +1 -0
- package/dist/{fixture-d5b55278.cjs.js → fixture-948ae33c.cjs.js} +2 -2
- package/dist/{fixture-d5b55278.cjs.js.map → fixture-948ae33c.cjs.js.map} +1 -1
- package/dist/fixture-e6fdfbfa.esm.js +569 -0
- package/dist/lit-html-39a6718c.esm.js +6 -0
- package/dist/lit-html-9b3af046.cjs.js +6 -0
- package/dist/lit-html-9b3af046.cjs.js.map +1 -0
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
- package/dist/nile-auto-complete/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.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.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-file-preview/index.cjs.js +2 -0
- package/dist/nile-file-preview/index.cjs.js.map +1 -0
- package/dist/nile-file-preview/index.esm.js +1 -0
- package/dist/nile-file-preview/nile-file-preview.cjs.js +2 -0
- package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -0
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js +2 -0
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -0
- package/dist/nile-file-preview/nile-file-preview.css.esm.js +521 -0
- package/dist/nile-file-preview/nile-file-preview.esm.js +3 -0
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js +2 -0
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -0
- package/dist/nile-file-preview/nile-file-preview.template.esm.js +117 -0
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js +2 -0
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +1 -0
- package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -0
- package/dist/nile-file-preview/types/file-preview.enums.cjs.js +2 -0
- package/dist/nile-file-preview/types/file-preview.enums.cjs.js.map +1 -0
- package/dist/nile-file-preview/types/file-preview.enums.esm.js +1 -0
- package/dist/nile-file-preview/types/file-preview.interface.cjs.js +2 -0
- package/dist/nile-file-preview/types/file-preview.interface.cjs.js.map +1 -0
- package/dist/nile-file-preview/types/file-preview.interface.esm.js +1 -0
- package/dist/nile-file-preview/types/index.cjs.js +2 -0
- package/dist/nile-file-preview/types/index.cjs.js.map +1 -0
- package/dist/nile-file-preview/types/index.esm.js +1 -0
- package/dist/nile-file-preview/utils/file-preview.util.cjs.js +2 -0
- package/dist/nile-file-preview/utils/file-preview.util.cjs.js.map +1 -0
- package/dist/nile-file-preview/utils/file-preview.util.esm.js +1 -0
- package/dist/nile-file-preview/utils/index.cjs.js +2 -0
- package/dist/nile-file-preview/utils/index.cjs.js.map +1 -0
- package/dist/nile-file-preview/utils/index.esm.js +1 -0
- package/dist/nile-file-upload/index.cjs.js +2 -0
- package/dist/nile-file-upload/index.cjs.js.map +1 -0
- package/dist/nile-file-upload/index.esm.js +1 -0
- package/dist/nile-file-upload/nile-file-upload.cjs.js +2 -0
- package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -0
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js +2 -0
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -0
- package/dist/nile-file-upload/nile-file-upload.css.esm.js +535 -0
- package/dist/nile-file-upload/nile-file-upload.esm.js +3 -0
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js +10 -0
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -0
- package/dist/nile-file-upload/nile-file-upload.template.esm.js +155 -0
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js +2 -0
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +1 -0
- package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -0
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js +2 -0
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -0
- package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -0
- package/dist/nile-file-upload/types/file-upload.type.cjs.js +2 -0
- package/dist/nile-file-upload/types/file-upload.type.cjs.js.map +1 -0
- package/dist/nile-file-upload/types/file-upload.type.esm.js +1 -0
- package/dist/nile-file-upload/types/index.cjs.js +2 -0
- package/dist/nile-file-upload/types/index.cjs.js.map +1 -0
- package/dist/nile-file-upload/types/index.esm.js +1 -0
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +2 -0
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -0
- package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -0
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js +2 -0
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -0
- package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -0
- 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.esm.js +13 -13
- 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/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.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-rich-text-editor/index.cjs.js +2 -0
- package/dist/nile-rich-text-editor/index.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/index.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +10 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +5 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +28 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.template.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.template.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.template.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.test.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.test.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.test.esm.js +1 -0
- package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.cjs.js +2 -0
- package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.esm.js +1 -0
- package/dist/nile-rich-text-editor/types/index.cjs.js +2 -0
- package/dist/nile-rich-text-editor/types/index.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/types/index.esm.js +1 -0
- package/dist/nile-rich-text-editor/types/rich-text-editor.type.cjs.js +2 -0
- package/dist/nile-rich-text-editor/types/rich-text-editor.type.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/types/rich-text-editor.type.esm.js +1 -0
- package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.cjs.js +2 -0
- package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.esm.js +1 -0
- 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-textarea/nile-textarea.test.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
- 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/nile-file-preview/index.d.ts +1 -0
- package/dist/src/nile-file-preview/index.js +2 -0
- package/dist/src/nile-file-preview/index.js.map +1 -0
- package/dist/src/nile-file-preview/nile-file-preview.css.d.ts +12 -0
- package/dist/src/nile-file-preview/nile-file-preview.css.js +533 -0
- package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -0
- package/dist/src/nile-file-preview/nile-file-preview.d.ts +48 -0
- package/dist/src/nile-file-preview/nile-file-preview.js +149 -0
- package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -0
- package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +11 -0
- package/dist/src/nile-file-preview/nile-file-preview.template.js +144 -0
- package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -0
- package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +7 -0
- package/dist/src/nile-file-preview/nile-file-preview.test.js +30 -0
- package/dist/src/nile-file-preview/nile-file-preview.test.js.map +1 -0
- package/dist/src/nile-file-preview/types/file-preview.enums.d.ts +23 -0
- package/dist/src/nile-file-preview/types/file-preview.enums.js +28 -0
- package/dist/src/nile-file-preview/types/file-preview.enums.js.map +1 -0
- package/dist/src/nile-file-preview/types/file-preview.interface.d.ts +4 -0
- package/dist/src/nile-file-preview/types/file-preview.interface.js +2 -0
- package/dist/src/nile-file-preview/types/file-preview.interface.js.map +1 -0
- package/dist/src/nile-file-preview/types/index.d.ts +2 -0
- package/dist/src/nile-file-preview/types/index.js +3 -0
- package/dist/src/nile-file-preview/types/index.js.map +1 -0
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +26 -0
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +31 -0
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +1 -0
- package/dist/src/nile-file-preview/types/nile-file-preview.interface.d.ts +4 -0
- package/dist/src/nile-file-preview/types/nile-file-preview.interface.js +2 -0
- package/dist/src/nile-file-preview/types/nile-file-preview.interface.js.map +1 -0
- package/dist/src/nile-file-preview/utils/file-preview.util.d.ts +3 -0
- package/dist/src/nile-file-preview/utils/file-preview.util.js +29 -0
- package/dist/src/nile-file-preview/utils/file-preview.util.js.map +1 -0
- package/dist/src/nile-file-preview/utils/index.d.ts +1 -0
- package/dist/src/nile-file-preview/utils/index.js +2 -0
- package/dist/src/nile-file-preview/utils/index.js.map +1 -0
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +4 -0
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +45 -0
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -0
- package/dist/src/nile-file-upload/index.d.ts +1 -0
- package/dist/src/nile-file-upload/index.js +2 -0
- package/dist/src/nile-file-upload/index.js.map +1 -0
- package/dist/src/nile-file-upload/nile-file-upload.css.d.ts +12 -0
- package/dist/src/nile-file-upload/nile-file-upload.css.js +547 -0
- package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -0
- package/dist/src/nile-file-upload/nile-file-upload.d.ts +45 -0
- package/dist/src/nile-file-upload/nile-file-upload.js +148 -0
- package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -0
- package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +11 -0
- package/dist/src/nile-file-upload/nile-file-upload.template.js +163 -0
- package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -0
- package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +7 -0
- package/dist/src/nile-file-upload/nile-file-upload.test.js +30 -0
- package/dist/src/nile-file-upload/nile-file-upload.test.js.map +1 -0
- package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +28 -0
- package/dist/src/nile-file-upload/types/file-upload.enums.js +35 -0
- package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -0
- package/dist/src/nile-file-upload/types/file-upload.type.d.ts +4 -0
- package/dist/src/nile-file-upload/types/file-upload.type.js +2 -0
- package/dist/src/nile-file-upload/types/file-upload.type.js.map +1 -0
- package/dist/src/nile-file-upload/types/index.d.ts +2 -0
- package/dist/src/nile-file-upload/types/index.js +3 -0
- package/dist/src/nile-file-upload/types/index.js.map +1 -0
- package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +19 -0
- package/dist/src/nile-file-upload/utils/drag-drop.util.js +77 -0
- package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -0
- package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +9 -0
- package/dist/src/nile-file-upload/utils/file-validation.util.js +58 -0
- package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.d.ts +1 -2
- package/dist/src/nile-filter-chip/nile-filter-chip.js +6 -10
- package/dist/src/nile-filter-chip/nile-filter-chip.js.map +1 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js +10 -10
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +1 -1
- package/dist/src/nile-pagination/index.d.ts +1 -0
- package/dist/src/nile-pagination/index.js +2 -0
- package/dist/src/nile-pagination/index.js.map +1 -0
- package/dist/src/nile-pagination/nile-pagination.css.d.ts +12 -0
- package/dist/src/nile-pagination/nile-pagination.css.js +156 -0
- package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -0
- package/dist/src/nile-pagination/nile-pagination.d.ts +36 -0
- package/dist/src/nile-pagination/nile-pagination.js +170 -0
- package/dist/src/nile-pagination/nile-pagination.js.map +1 -0
- package/dist/src/nile-pagination/nile-pagination.template.d.ts +3 -0
- package/dist/src/nile-pagination/nile-pagination.template.js +5 -0
- package/dist/src/nile-pagination/nile-pagination.template.js.map +1 -0
- package/dist/src/nile-pagination/nile-pagination.test.d.ts +7 -0
- package/dist/src/nile-pagination/nile-pagination.test.js +30 -0
- package/dist/src/nile-pagination/nile-pagination.test.js.map +1 -0
- package/dist/src/nile-pagination/sub-components/nile-pagination.d.ts +0 -0
- package/dist/src/nile-pagination/sub-components/nile-pagination.js +2 -0
- package/dist/src/nile-pagination/sub-components/nile-pagination.js.map +1 -0
- package/dist/src/nile-pagination/types/index.d.ts +0 -0
- package/dist/src/nile-pagination/types/index.js +2 -0
- package/dist/src/nile-pagination/types/index.js.map +1 -0
- package/dist/src/nile-pagination/types/pagination.type.d.ts +3 -0
- package/dist/src/nile-pagination/types/pagination.type.js +5 -0
- package/dist/src/nile-pagination/types/pagination.type.js.map +1 -0
- package/dist/src/nile-pagination/utils/nile-pagination.utils.d.ts +0 -0
- package/dist/src/nile-pagination/utils/nile-pagination.utils.js +2 -0
- package/dist/src/nile-pagination/utils/nile-pagination.utils.js.map +1 -0
- package/dist/src/nile-rich-text-editor/index.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/index.js +2 -0
- package/dist/src/nile-rich-text-editor/index.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.d.ts +12 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +17 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +10 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +62 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.d.ts +3 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.js +5 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.d.ts +7 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.js +30 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.js.map +1 -0
- package/dist/src/nile-rich-text-editor/quill/quill.d.ts +8 -0
- package/dist/src/nile-rich-text-editor/quill/quill.js +19 -0
- package/dist/src/nile-rich-text-editor/quill/quill.js.map +1 -0
- 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 +2 -0
- package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.js.map +1 -0
- package/dist/src/nile-rich-text-editor/types/index.d.ts +0 -0
- package/dist/src/nile-rich-text-editor/types/index.js +2 -0
- package/dist/src/nile-rich-text-editor/types/index.js.map +1 -0
- package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.d.ts +3 -0
- package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.js +5 -0
- package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.js.map +1 -0
- 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 +2 -0
- package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-filter-chip/nile-filter-chip.test.ts +10 -10
- package/src/nile-filter-chip/nile-filter-chip.ts +5 -6
- package/vscode-html-custom-data.json +5 -9
@@ -0,0 +1,45 @@
|
|
1
|
+
import { FilePreviewEvent } from "../types";
|
2
|
+
export const generatePreviewUrl = (file) => {
|
3
|
+
return new Promise((resolve, reject) => {
|
4
|
+
const reader = new FileReader();
|
5
|
+
if (file) {
|
6
|
+
reader.readAsDataURL(file);
|
7
|
+
}
|
8
|
+
else {
|
9
|
+
reject('No file selected');
|
10
|
+
}
|
11
|
+
reader.onload = () => {
|
12
|
+
const previewUrl = reader.result;
|
13
|
+
resolve(previewUrl);
|
14
|
+
};
|
15
|
+
reader.onerror = (error) => {
|
16
|
+
reject("Unable to generate the url");
|
17
|
+
};
|
18
|
+
});
|
19
|
+
};
|
20
|
+
export const removeFile = (removeFile, e, originalUrl) => {
|
21
|
+
if (e.target) {
|
22
|
+
e.target.dispatchEvent(new CustomEvent(FilePreviewEvent.NILE_REMOVE, {
|
23
|
+
detail: { value: removeFile, url: originalUrl },
|
24
|
+
bubbles: true,
|
25
|
+
composed: true,
|
26
|
+
}));
|
27
|
+
}
|
28
|
+
};
|
29
|
+
export const cancelFileUpload = (file, e) => {
|
30
|
+
if (e.target) {
|
31
|
+
e.target.dispatchEvent(new CustomEvent(FilePreviewEvent.NILE_CANCEL_UPLOAD, {
|
32
|
+
detail: { file: file },
|
33
|
+
bubbles: true,
|
34
|
+
composed: true,
|
35
|
+
}));
|
36
|
+
}
|
37
|
+
};
|
38
|
+
// private createUploadState( file: File, uploadStatus: number): void {
|
39
|
+
// const isHorizontal = this.variant === FilePreviewVariant.HORIZONTAL;
|
40
|
+
// this.inputFileHtml = isHorizontal
|
41
|
+
// ? getHorizontalUploadingState(file, uploadStatus)
|
42
|
+
// : getVerticalUploadingState(file, uploadStatus);
|
43
|
+
// this.requestUpdate();
|
44
|
+
// }
|
45
|
+
//# sourceMappingURL=nile-file-preview.util.js.map
|
@@ -0,0 +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,MAAM,UAAU,CAAC;AAE9D,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,kBAAkB,CAAC,CAAC;QAC7B,CAAC;QAED,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE;YACnB,MAAM,UAAU,GAAG,MAAM,CAAC,MAAgB,CAAC;YAC3C,OAAO,CAAC,UAAU,CAAC,CAAC;QACtB,CAAC,CAAC;QAEF,MAAM,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;YACzB,MAAM,CAAC,4BAA4B,CAAC,CAAC;QACvC,CAAC,CAAA;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,UAAgB,EAAE,CAAgC,EAAE,WAAmB,EAAQ,EAAE;IAC1G,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QACb,CAAC,CAAC,MAAM,CAAC,aAAa,CACpB,IAAI,WAAW,CAAC,gBAAgB,CAAC,WAAW,EAAE;YAC5C,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,WAAW,EAAE;YAC/C,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACf,CAAC,CACH,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAU,EAAE,CAAgC,EAAE,EAAE;IAC/E,IAAG,CAAC,CAAC,MAAM,EAAE,CAAC;QACZ,CAAC,CAAC,MAAM,CAAC,aAAa,CACpB,IAAI,WAAW,CAAC,gBAAgB,CAAC,kBAAkB,EAAE;YACnD,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;YACtB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACf,CAAC,CACH,CAAC;IACJ,CAAC;AACH,CAAC,CAAA;AAED,uEAAuE;AACvE,2EAA2E;AAE3E,yCAAyC;AACzC,wDAAwD;AACxD,uDAAuD;AAEvD,4BAA4B;AAC5B,MAAM","sourcesContent":["import NileFilePreview from \"../nile-file-preview\";\nimport { 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};\n\nexport const cancelFileUpload = (file: File, e: CustomEvent<RemoveFileDetail>) => {\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 }\n}\n\n// private createUploadState( file: File, uploadStatus: number): void {\n// const isHorizontal = this.variant === FilePreviewVariant.HORIZONTAL;\n\n// this.inputFileHtml = isHorizontal \n// ? getHorizontalUploadingState(file, uploadStatus)\n// : getVerticalUploadingState(file, uploadStatus);\n\n// this.requestUpdate();\n// }"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { NileFileUpload } from './nile-file-upload';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-file-upload/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export { NileFileUpload } from './nile-file-upload';\n"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* FileUpload CSS
|
9
|
+
*/
|
10
|
+
export declare const styles: import("lit").CSSResult;
|
11
|
+
declare const _default: import("lit").CSSResult[];
|
12
|
+
export default _default;
|
@@ -0,0 +1,547 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { css } from 'lit';
|
8
|
+
/**
|
9
|
+
* FileUpload CSS
|
10
|
+
*/
|
11
|
+
export const styles = css `
|
12
|
+
:host {
|
13
|
+
display: inline-block;
|
14
|
+
}
|
15
|
+
|
16
|
+
* {
|
17
|
+
padding: 0px;
|
18
|
+
margin: 0px;
|
19
|
+
box-sizing: border-box;
|
20
|
+
}
|
21
|
+
|
22
|
+
.wrapper {
|
23
|
+
display: flex;
|
24
|
+
flex-direction: column;
|
25
|
+
justify-content: center;
|
26
|
+
align-items: center;
|
27
|
+
gap: 18px;
|
28
|
+
height: auto;
|
29
|
+
}
|
30
|
+
|
31
|
+
input {
|
32
|
+
display: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
.horizontal-div {
|
36
|
+
margin-bottom: 10px;
|
37
|
+
height: 62px;
|
38
|
+
width: 648px;
|
39
|
+
min-width: 230px;
|
40
|
+
padding: 12px;
|
41
|
+
display: flex;
|
42
|
+
align-items: center;
|
43
|
+
justify-content: space-between;
|
44
|
+
gap: 18px;
|
45
|
+
border-radius: var(--nile-radius-radius-xs);
|
46
|
+
border: 1px dashed var(--nile-colors-neutral-500);
|
47
|
+
color: var(--nile-colors-dark-900);
|
48
|
+
background-color: var(--nile-colors-white-base);
|
49
|
+
}
|
50
|
+
|
51
|
+
.hover-border {
|
52
|
+
border-color: var(--nile-colors-primary-600);
|
53
|
+
}
|
54
|
+
|
55
|
+
.vertical-div {
|
56
|
+
min-height: 156px;
|
57
|
+
height: auto;
|
58
|
+
min-width: 240px;
|
59
|
+
width: 240px;
|
60
|
+
display: flex;
|
61
|
+
flex-direction: column;
|
62
|
+
justify-content: space-between;
|
63
|
+
align-items: center;
|
64
|
+
padding: 12px;
|
65
|
+
border-radius: var(--nile-radius-radius-xs);
|
66
|
+
color: var(--nile-colors-dark-900);
|
67
|
+
border: 1px dashed var(--nile-colors-neutral-500);
|
68
|
+
background-color: var(--nile-colors-white-base);
|
69
|
+
position: relative;
|
70
|
+
}
|
71
|
+
|
72
|
+
.vertical-div:hover {
|
73
|
+
border-color: var(--nile-colors-blue-500);
|
74
|
+
}
|
75
|
+
|
76
|
+
.outer-div-border {
|
77
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
78
|
+
}
|
79
|
+
|
80
|
+
.inner-div {
|
81
|
+
display: flex;
|
82
|
+
align-items: center;
|
83
|
+
justify-content: flex-start;
|
84
|
+
gap: 18px;
|
85
|
+
box-sizing: border-box;
|
86
|
+
}
|
87
|
+
|
88
|
+
.content {
|
89
|
+
display: flex;
|
90
|
+
flex-direction: column;
|
91
|
+
justify-content: center;
|
92
|
+
gap: 8px;
|
93
|
+
}
|
94
|
+
|
95
|
+
.content h4 {
|
96
|
+
margin: 0px;
|
97
|
+
font-size: var(--nile-type-scale-3);
|
98
|
+
font-weight: var(--nile-font-weight-regular);
|
99
|
+
color: var(--nile-colors-dark-900);
|
100
|
+
}
|
101
|
+
|
102
|
+
.content p {
|
103
|
+
margin: 0px;
|
104
|
+
font-size: var(--nile-type-scale-2);
|
105
|
+
color: var(--nile-colors-neutral-700);
|
106
|
+
}
|
107
|
+
|
108
|
+
/* DISABLED STATE */
|
109
|
+
.disable {
|
110
|
+
background-color: var(--nile-colors-dark-200);
|
111
|
+
opacity: 0.5;
|
112
|
+
pointer-events: none;
|
113
|
+
}
|
114
|
+
|
115
|
+
/* DRAGGING */
|
116
|
+
.dragging {
|
117
|
+
background-color: var(--nile-colors-blue-100);
|
118
|
+
border-color: var(--nile-colors-primary-600);
|
119
|
+
display: flex;
|
120
|
+
align-items: center;
|
121
|
+
justify-content: flex-start;
|
122
|
+
gap: 18px;
|
123
|
+
color: var(--nile-colors-blue-700);
|
124
|
+
font-size: var(--nile-type-scale-3);
|
125
|
+
font-weight: var(--nile-font-weight-regular);
|
126
|
+
}
|
127
|
+
|
128
|
+
.icons-container {
|
129
|
+
display: flex;
|
130
|
+
gap: 4px;
|
131
|
+
}
|
132
|
+
|
133
|
+
.general-icon {
|
134
|
+
transform: rotate(-18.11deg);
|
135
|
+
position: relative;
|
136
|
+
bottom: 3px;
|
137
|
+
}
|
138
|
+
|
139
|
+
.image-icon {
|
140
|
+
transform: rotate(15deg);
|
141
|
+
}
|
142
|
+
|
143
|
+
.icon:hover {
|
144
|
+
cursor: pointer;
|
145
|
+
}
|
146
|
+
|
147
|
+
/* Uploading State */
|
148
|
+
.uploading {
|
149
|
+
width: 648px;
|
150
|
+
min-width: 230px;
|
151
|
+
display: flex;
|
152
|
+
justify-content: space-between;
|
153
|
+
align-items: center;
|
154
|
+
gap: 18px;
|
155
|
+
box-sizing: border-box;
|
156
|
+
border: 1px solid var(--nile-colors-neutral-400)
|
157
|
+
}
|
158
|
+
|
159
|
+
.uploading:hover {
|
160
|
+
border-color: var(--nile-colors-neutral-400);
|
161
|
+
}
|
162
|
+
|
163
|
+
.progress-bar-container {
|
164
|
+
width: 100%;
|
165
|
+
display: flex;
|
166
|
+
flex-direction: column;
|
167
|
+
gap: 0px;
|
168
|
+
}
|
169
|
+
|
170
|
+
.progress-bar-percent {
|
171
|
+
width: 100%;
|
172
|
+
display: flex;
|
173
|
+
justify-content: space-between;
|
174
|
+
font-size: var(--nile-type-scale-2);
|
175
|
+
font-weight: var(--nile-font-weight-regular);
|
176
|
+
}
|
177
|
+
|
178
|
+
.progress-bar-container p {
|
179
|
+
margin: 0px;
|
180
|
+
}
|
181
|
+
|
182
|
+
.progress-bar-container > p {
|
183
|
+
font-size: var(--nile-type-scale-1);
|
184
|
+
color: var(--nile-colors-dark-500);
|
185
|
+
}
|
186
|
+
|
187
|
+
/* PREVIEW STATE */
|
188
|
+
.preview {
|
189
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
190
|
+
}
|
191
|
+
|
192
|
+
.preview:hover {
|
193
|
+
border-color: var(--nile-colors-neutral-400);
|
194
|
+
}
|
195
|
+
|
196
|
+
.preview-inner {
|
197
|
+
display: flex;
|
198
|
+
gap: 18px;
|
199
|
+
}
|
200
|
+
|
201
|
+
.preview-image-container {
|
202
|
+
height: 42px;
|
203
|
+
width: 42px;
|
204
|
+
}
|
205
|
+
|
206
|
+
.preview-image-container img {
|
207
|
+
height: 42px;
|
208
|
+
width: 42px;
|
209
|
+
object-fit: contain;
|
210
|
+
border-radius: var(--nile-radius-radius-xs);
|
211
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
212
|
+
}
|
213
|
+
|
214
|
+
.preview-file-info {
|
215
|
+
width: 100%;
|
216
|
+
display: flex;
|
217
|
+
flex-direction: column;
|
218
|
+
justify-content: center;
|
219
|
+
align-items: flex-start;
|
220
|
+
gap: 8px;
|
221
|
+
}
|
222
|
+
|
223
|
+
.preview-file-info p {
|
224
|
+
margin: 0px;
|
225
|
+
font-size: var(--nile-type-scale-3);
|
226
|
+
font-weight: var(--nile-font-weight-regular);
|
227
|
+
}
|
228
|
+
|
229
|
+
.preview-file-info p:last-of-type{
|
230
|
+
color: var(--nile-colors-neutral-700);
|
231
|
+
font-size: var(--nile-type-scale-2);
|
232
|
+
font-weight: var(--nile-font-weight-regular);
|
233
|
+
}
|
234
|
+
|
235
|
+
.preview nile-icon:hover {
|
236
|
+
cursor: pointer;
|
237
|
+
}
|
238
|
+
|
239
|
+
|
240
|
+
/* NO PREVIEW STATE */
|
241
|
+
.no-preview {
|
242
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
243
|
+
}
|
244
|
+
|
245
|
+
.no-preview:hover {
|
246
|
+
border-color: var(--nile-colors-neutral-400);
|
247
|
+
}
|
248
|
+
|
249
|
+
.no-preview-container {
|
250
|
+
display: flex;
|
251
|
+
gap: 18px;
|
252
|
+
}
|
253
|
+
|
254
|
+
.document-icon {
|
255
|
+
height: 40px;
|
256
|
+
width: 40px;
|
257
|
+
border-radius: var(--nile-radius-radius-xs);
|
258
|
+
padding: 2px 3px 2px 3px;
|
259
|
+
display: flex;
|
260
|
+
justify-content: center;
|
261
|
+
align-items: center;
|
262
|
+
border: 1px solid var(--nile-colors-blue-400);
|
263
|
+
background-color: var(--nile-colors-blue-100);
|
264
|
+
}
|
265
|
+
|
266
|
+
.document-icon nile-icon {
|
267
|
+
height: 40px;
|
268
|
+
width: 40px;
|
269
|
+
}
|
270
|
+
|
271
|
+
.preview-file-info {
|
272
|
+
width: 100%;
|
273
|
+
display: flex;
|
274
|
+
flex-direction: column;
|
275
|
+
justify-content: center;
|
276
|
+
align-items: flex-start;
|
277
|
+
gap: 8px;
|
278
|
+
}
|
279
|
+
|
280
|
+
.preview-file-info p {
|
281
|
+
margin: 0px;
|
282
|
+
font-size: var(--nile-type-scale-3);
|
283
|
+
font-weight: var(--nile-font-weight-regular);
|
284
|
+
}
|
285
|
+
|
286
|
+
.preview-file-info p:last-of-type{
|
287
|
+
color: var(--nile-colors-neutral-700);
|
288
|
+
font-size: var(--nile-type-scale-2);
|
289
|
+
font-weight: var(--nile-font-weight-regular);
|
290
|
+
}
|
291
|
+
|
292
|
+
.no-preview > nile-icon:hover {
|
293
|
+
cursor: pointer;
|
294
|
+
}
|
295
|
+
|
296
|
+
/* ERROR STATE */
|
297
|
+
|
298
|
+
.error {
|
299
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
300
|
+
}
|
301
|
+
|
302
|
+
.error:hover {
|
303
|
+
border-color: var(--nile-colors-neutral-400);
|
304
|
+
}
|
305
|
+
|
306
|
+
.error-container {
|
307
|
+
width: 100%;
|
308
|
+
display: flex;
|
309
|
+
gap: 18px;
|
310
|
+
}
|
311
|
+
|
312
|
+
.error-icon {
|
313
|
+
height: 40px;
|
314
|
+
width: 40px;
|
315
|
+
border-radius: var(--nile-radius-radius-xs);
|
316
|
+
padding: 2px 3px 2px 3px;
|
317
|
+
display: flex;
|
318
|
+
justify-content: center;
|
319
|
+
align-items: center;
|
320
|
+
border: 1px solid var(--nile-colors-red-400);
|
321
|
+
background-color: var(--nile-colors-red-100);
|
322
|
+
}
|
323
|
+
|
324
|
+
.error-icon nile-icon {
|
325
|
+
height: 40px;
|
326
|
+
width: 40px;
|
327
|
+
}
|
328
|
+
|
329
|
+
.file-info {
|
330
|
+
width: 100%;
|
331
|
+
display: flex;
|
332
|
+
flex-direction: column;
|
333
|
+
justify-content: center;
|
334
|
+
align-items: flex-start;
|
335
|
+
gap: 8px;
|
336
|
+
}
|
337
|
+
|
338
|
+
.file-info p {
|
339
|
+
margin: 0px;
|
340
|
+
font-size: var(--nile-type-scale-3);
|
341
|
+
font-weight: var(--nile-font-weight-regular);
|
342
|
+
}
|
343
|
+
|
344
|
+
.file-info p:last-of-type{
|
345
|
+
color: var(--nile-colors-red-700);
|
346
|
+
font-size: var(--nile-type-scale-2);
|
347
|
+
font-weight: var(--nile-font-weight-regular);
|
348
|
+
}
|
349
|
+
|
350
|
+
.error > nile-icon:hover {
|
351
|
+
cursor: pointer;
|
352
|
+
}
|
353
|
+
|
354
|
+
/* VARTICAL STATE START */
|
355
|
+
/* Default State */
|
356
|
+
|
357
|
+
.vertical-default {
|
358
|
+
display: flex;
|
359
|
+
flex-direction: column;
|
360
|
+
align-items: center;
|
361
|
+
justify-content: center;
|
362
|
+
gap: 18px
|
363
|
+
}
|
364
|
+
|
365
|
+
.content-container {
|
366
|
+
display: flex;
|
367
|
+
flex-direction: column;
|
368
|
+
justify-content: center;
|
369
|
+
align-items: center;
|
370
|
+
gap: 8px;
|
371
|
+
}
|
372
|
+
|
373
|
+
.content-container h4 {
|
374
|
+
font-weight: var(--nile-font-weight-regular);
|
375
|
+
}
|
376
|
+
|
377
|
+
.content-container p:first-child {
|
378
|
+
margin: 0px;
|
379
|
+
font-size: var(--nile-type-scale-3);
|
380
|
+
font-weight: var(--nile-font-weight-regular);
|
381
|
+
}
|
382
|
+
|
383
|
+
.content-container p:last-child {
|
384
|
+
margin: 0px;
|
385
|
+
font-size: var(--nile-type-scale-2);
|
386
|
+
font-weight: var(--nile-font-weight-regular);
|
387
|
+
color: var(--nile-colors-neutral-700);
|
388
|
+
}
|
389
|
+
|
390
|
+
/* Drag State */
|
391
|
+
.vertical-drag {
|
392
|
+
display: flex;
|
393
|
+
flex-direction: column;
|
394
|
+
justify-content: center;
|
395
|
+
align-items: center;
|
396
|
+
gap:18px;
|
397
|
+
font-size: var(--nile-type-scale-3);
|
398
|
+
color: var(--nile-colors-blue-700);
|
399
|
+
background-color: var(--nile-colors-blue-100);
|
400
|
+
border-color: var(--nile-colors-blue-500);
|
401
|
+
}
|
402
|
+
|
403
|
+
/* Uploading State */
|
404
|
+
.vertical-uploading {
|
405
|
+
display: flex;
|
406
|
+
flex-direction: column;
|
407
|
+
justify-content: flex-end;
|
408
|
+
align-items: center;
|
409
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
410
|
+
}
|
411
|
+
|
412
|
+
.vertical-uploading:hover {
|
413
|
+
border-color: var(--nile-colors-neutral-400);
|
414
|
+
}
|
415
|
+
|
416
|
+
.loading {
|
417
|
+
display: flex;
|
418
|
+
justify-content: center;
|
419
|
+
align-items: center;
|
420
|
+
}
|
421
|
+
|
422
|
+
.corner-icon {
|
423
|
+
position: absolute;
|
424
|
+
top: 10px;
|
425
|
+
right: 10px;
|
426
|
+
}
|
427
|
+
|
428
|
+
/* Preview State */
|
429
|
+
.vertical-preview {
|
430
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
431
|
+
}
|
432
|
+
|
433
|
+
.vertical-preview:hover {
|
434
|
+
border-color: var(--nile-colors-neutral-400);
|
435
|
+
}
|
436
|
+
|
437
|
+
.image-preview {
|
438
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
439
|
+
object-fit: cover;
|
440
|
+
width: 80px;
|
441
|
+
height: 80px;
|
442
|
+
border-radius: var(--nile-radius-radius-xs);
|
443
|
+
}
|
444
|
+
|
445
|
+
/* Vertical No Preview State */
|
446
|
+
.vertical-no-preview {
|
447
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
448
|
+
}
|
449
|
+
|
450
|
+
.vertical-no-preview:hover {
|
451
|
+
border-color: var(--nile-colors-neutral-400);
|
452
|
+
}
|
453
|
+
|
454
|
+
.vertical-document-icon {
|
455
|
+
height: 80px;
|
456
|
+
width: 80px;
|
457
|
+
padding: 2px 3px 2px 3px;
|
458
|
+
display: flex;
|
459
|
+
justify-content: center;
|
460
|
+
align-items: center;
|
461
|
+
border-radius: var(--nile-radius-radius-xs);
|
462
|
+
border: 1px solid var(--nile-colors-blue-400);
|
463
|
+
background-color: var(--nile-colors-blue-100);
|
464
|
+
}
|
465
|
+
|
466
|
+
/* Veritcal Error State */
|
467
|
+
.vertical-error {
|
468
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
469
|
+
}
|
470
|
+
|
471
|
+
.vertical-error:hover {
|
472
|
+
border-color: var(--nile-colors-neutral-400);
|
473
|
+
}
|
474
|
+
|
475
|
+
.error-bg {
|
476
|
+
background-color: var(--nile-colors-red-100);
|
477
|
+
border: 1px solid var(--nile-colors-red-400);
|
478
|
+
}
|
479
|
+
|
480
|
+
.error-message {
|
481
|
+
display: flex;
|
482
|
+
flex-direction: column;
|
483
|
+
justify-content: center;
|
484
|
+
align-items: center;
|
485
|
+
gap: 8px;
|
486
|
+
margin: 0px;
|
487
|
+
font-size: var(--nile-type-scale-3);
|
488
|
+
font-weight: var(--nile-font-weight-regular);
|
489
|
+
text-align: start;
|
490
|
+
}
|
491
|
+
|
492
|
+
.error-p {
|
493
|
+
color: var(--nile-colors-red-700);
|
494
|
+
font-size: var(--nile-type-scale-2);
|
495
|
+
width: 216px;
|
496
|
+
white-space: nowrap;
|
497
|
+
overflow: hidden;
|
498
|
+
text-overflow: ellipsis;
|
499
|
+
text-align: center;
|
500
|
+
}
|
501
|
+
|
502
|
+
.error-p p {
|
503
|
+
white-space: nowrap;
|
504
|
+
overflow: hidden;
|
505
|
+
text-overflow: ellipsis;
|
506
|
+
margin: 0;
|
507
|
+
}
|
508
|
+
|
509
|
+
|
510
|
+
/* Displaing uploaded files CSS */
|
511
|
+
.display-files {
|
512
|
+
display: flex;
|
513
|
+
flex-direction: column;
|
514
|
+
justify-content: flex-start;
|
515
|
+
align-items: center;
|
516
|
+
gap: 8px;
|
517
|
+
width: 648px;
|
518
|
+
min-width: 230px;
|
519
|
+
max-height: 200px;
|
520
|
+
overflow-y: auto;
|
521
|
+
border: 1px solid var(--nile-colors-neutral-700);
|
522
|
+
border-radius: var(--nile-radius-radius-xs);
|
523
|
+
scrollbar-width: none;
|
524
|
+
padding: 12px;
|
525
|
+
}
|
526
|
+
|
527
|
+
ul, li {
|
528
|
+
width: 100%;
|
529
|
+
}
|
530
|
+
|
531
|
+
li {
|
532
|
+
list-style-type: none;
|
533
|
+
}
|
534
|
+
|
535
|
+
/* for the upload error messages */
|
536
|
+
.upload-error {
|
537
|
+
font-size: var(--nile-type-scale-2);
|
538
|
+
font-weight: var(--nile-font-weight-regular);
|
539
|
+
color: var(--nile-colors-red-500);
|
540
|
+
display: flex;
|
541
|
+
justify-content: flex-start;
|
542
|
+
align-items: center;
|
543
|
+
gap: var(--nile-spacing-one-half-x);
|
544
|
+
}
|
545
|
+
`;
|
546
|
+
export default [styles];
|
547
|
+
//# sourceMappingURL=nile-file-upload.css.js.map
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAshBxB,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: 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];"]}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2025
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { ChangedPropsInterface } from './types/file-upload.type';
|
8
|
+
import NileElement from '../internal/nile-element';
|
9
|
+
import { CSSResultArray, TemplateResult } from 'lit';
|
10
|
+
import { FileUploadState, FileUploadVariant } from './types/file-upload.enums';
|
11
|
+
/**
|
12
|
+
* Nile file-upload component.
|
13
|
+
*
|
14
|
+
* @tag nile-file-upload
|
15
|
+
*
|
16
|
+
*/
|
17
|
+
export declare class NileFileUpload extends NileElement {
|
18
|
+
/**
|
19
|
+
* The styles for nile-file-upload
|
20
|
+
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
21
|
+
*/
|
22
|
+
static get styles(): CSSResultArray;
|
23
|
+
size: number;
|
24
|
+
error: boolean;
|
25
|
+
errorMessage: string;
|
26
|
+
allowMultiple: boolean;
|
27
|
+
allowDuplicates: boolean;
|
28
|
+
uploadedFiles: File[];
|
29
|
+
title: string;
|
30
|
+
subtitle: string;
|
31
|
+
state: FileUploadState;
|
32
|
+
variant: FileUploadVariant;
|
33
|
+
input: HTMLInputElement;
|
34
|
+
private dragHandler;
|
35
|
+
connectedCallback(): void;
|
36
|
+
firstUpdated(changedProps: ChangedPropsInterface): void;
|
37
|
+
updated(changedProps: ChangedPropsInterface): void;
|
38
|
+
private browseFiles;
|
39
|
+
setState: (newState: FileUploadState) => void;
|
40
|
+
render(): TemplateResult;
|
41
|
+
private getState;
|
42
|
+
private getHorizontalState;
|
43
|
+
private getVerticalState;
|
44
|
+
disconnectedCallback(): void;
|
45
|
+
}
|