@aquera/nile-elements 0.1.17 → 0.1.18
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 +5 -0
- package/dist/nile-accordion/nile-accordion.css.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordion.css.cjs.js.map +1 -1
- package/dist/nile-accordion/nile-accordion.css.esm.js +1 -1
- package/dist/nile-button/nile-button.css.cjs.js +1 -1
- package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.css.esm.js +14 -14
- package/dist/nile-button-toggle/nile-button-toggle.css.cjs.js +1 -1
- package/dist/nile-button-toggle/nile-button-toggle.css.cjs.js.map +1 -1
- package/dist/nile-button-toggle/nile-button-toggle.css.esm.js +3 -3
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +22 -22
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.css.cjs.js +1 -1
- package/dist/nile-card/nile-card.css.cjs.js.map +1 -1
- package/dist/nile-card/nile-card.css.esm.js +3 -3
- package/dist/nile-chip/nile-chip.css.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.css.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.css.esm.js +8 -8
- package/dist/nile-circular-progressbar/nile-circular-progressbar.css.cjs.js +1 -1
- package/dist/nile-circular-progressbar/nile-circular-progressbar.css.cjs.js.map +1 -1
- package/dist/nile-circular-progressbar/nile-circular-progressbar.css.esm.js +3 -3
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.esm.js +1 -1
- package/dist/nile-content-editor/nile-content-editor.css.cjs.js +1 -1
- package/dist/nile-content-editor/nile-content-editor.css.cjs.js.map +1 -1
- package/dist/nile-content-editor/nile-content-editor.css.esm.js +11 -11
- package/dist/nile-dialog/nile-dialog.css.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.css.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.css.esm.js +7 -7
- package/dist/nile-divider/nile-divider.css.cjs.js +1 -1
- package/dist/nile-divider/nile-divider.css.cjs.js.map +1 -1
- package/dist/nile-divider/nile-divider.css.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.css.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.css.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.css.esm.js +3 -3
- package/dist/nile-empty-state/nile-empty-state.css.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.css.cjs.js.map +1 -1
- package/dist/nile-empty-state/nile-empty-state.css.esm.js +4 -4
- 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.esm.js +2 -2
- package/dist/nile-form-error-message/nile-form-error-message.cjs.js +1 -1
- package/dist/nile-form-error-message/nile-form-error-message.cjs.js.map +1 -1
- package/dist/nile-form-error-message/nile-form-error-message.esm.js +3 -3
- package/dist/nile-hero/nile-hero.css.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.css.cjs.js.map +1 -1
- package/dist/nile-hero/nile-hero.css.esm.js +2 -2
- package/dist/nile-hero-header/nile-hero-header.css.cjs.js +1 -1
- package/dist/nile-hero-header/nile-hero-header.css.cjs.js.map +1 -1
- package/dist/nile-hero-header/nile-hero-header.css.esm.js +1 -1
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.esm.js +25 -25
- package/dist/nile-link/nile-link.css.cjs.js +1 -1
- package/dist/nile-link/nile-link.css.cjs.js.map +1 -1
- package/dist/nile-link/nile-link.css.esm.js +3 -3
- package/dist/nile-list-item/nile-list-item.css.cjs.js +1 -1
- package/dist/nile-list-item/nile-list-item.css.cjs.js.map +1 -1
- package/dist/nile-list-item/nile-list-item.css.esm.js +1 -1
- package/dist/nile-loader/nile-loader.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.cjs.js.map +1 -1
- package/dist/nile-loader/nile-loader.esm.js +7 -7
- package/dist/nile-menu-item/nile-menu-item.css.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.esm.js +1 -1
- package/dist/nile-option/nile-option.css.cjs.js +1 -1
- package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.esm.js +1 -1
- package/dist/nile-popover/nile-popover.css.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.css.cjs.js.map +1 -1
- package/dist/nile-popover/nile-popover.css.esm.js +2 -2
- package/dist/nile-radio/nile-radio.css.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.css.cjs.js.map +1 -1
- package/dist/nile-radio/nile-radio.css.esm.js +4 -4
- package/dist/nile-section-message/nile-section-message.cjs.js +1 -1
- package/dist/nile-section-message/nile-section-message.cjs.js.map +1 -1
- package/dist/nile-section-message/nile-section-message.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.css.cjs.js +1 -1
- package/dist/nile-select/nile-select.css.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.css.esm.js +26 -26
- package/dist/nile-select/nile-select.esm.js +1 -1
- package/dist/nile-sidebar/index.cjs.js +1 -1
- package/dist/nile-sidebar/index.cjs.js.map +1 -1
- package/dist/nile-sidebar/index.esm.js +7 -7
- package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js +1 -1
- package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js.map +1 -1
- package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.esm.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js.map +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.esm.js +2 -2
- package/dist/nile-stepper-item/nile-stepper-item.css.cjs.js +1 -1
- package/dist/nile-stepper-item/nile-stepper-item.css.cjs.js.map +1 -1
- package/dist/nile-stepper-item/nile-stepper-item.css.esm.js +13 -13
- package/dist/nile-switcher/nile-switcher.cjs.js +1 -1
- package/dist/nile-switcher/nile-switcher.cjs.js.map +1 -1
- package/dist/nile-switcher/nile-switcher.esm.js +1 -1
- package/dist/nile-tab/nile-tab.css.cjs.js +1 -1
- package/dist/nile-tab/nile-tab.css.cjs.js.map +1 -1
- package/dist/nile-tab/nile-tab.css.esm.js +0 -1
- package/dist/nile-tab-group/nile-tab-group.css.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.css.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.css.esm.js +3 -3
- package/dist/nile-table-body/nile-table-body.css.cjs.js +1 -1
- package/dist/nile-table-body/nile-table-body.css.cjs.js.map +1 -1
- package/dist/nile-table-body/nile-table-body.css.esm.js +1 -1
- package/dist/nile-tag/nile-tag.css.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.css.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.css.esm.js +26 -26
- package/dist/nile-textarea/nile-textarea.css.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.css.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.css.esm.js +4 -4
- package/dist/nile-toast/nile-toast.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.css.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.css.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.css.esm.js +2 -2
- package/dist/nile-toast/nile-toast.esm.js +3 -3
- package/dist/nile-toolbar/nile-toolbar.css.cjs.js +1 -1
- package/dist/nile-toolbar/nile-toolbar.css.cjs.js.map +1 -1
- package/dist/nile-toolbar/nile-toolbar.css.esm.js +3 -3
- 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 +1 -1
- package/dist/nile-tour/nile-tour.css.cjs.js +1 -1
- package/dist/nile-tour/nile-tour.css.cjs.js.map +1 -1
- package/dist/nile-tour/nile-tour.css.esm.js +10 -10
- package/dist/nile-tree/nile-tree.css.cjs.js +1 -1
- package/dist/nile-tree/nile-tree.css.cjs.js.map +1 -1
- package/dist/nile-tree/nile-tree.css.esm.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.css.cjs.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.css.cjs.js.map +1 -1
- package/dist/nile-tree-item/nile-tree-item.css.esm.js +6 -6
- package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.css.cjs.js +1 -1
- package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.css.cjs.js.map +1 -1
- package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.css.esm.js +12 -12
- package/dist/src/nile-accordion/nile-accordion.css.js +1 -1
- package/dist/src/nile-accordion/nile-accordion.css.js.map +1 -1
- package/dist/src/nile-button/nile-button.css.js +14 -14
- package/dist/src/nile-button/nile-button.css.js.map +1 -1
- package/dist/src/nile-button-toggle/nile-button-toggle.css.js +3 -3
- package/dist/src/nile-button-toggle/nile-button-toggle.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.css.js +20 -20
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.test.js +13 -6
- package/dist/src/nile-calendar/nile-calendar.test.js.map +1 -1
- package/dist/src/nile-card/nile-card.css.js +1 -1
- package/dist/src/nile-card/nile-card.css.js.map +1 -1
- package/dist/src/nile-chip/nile-chip.css.js +8 -8
- package/dist/src/nile-chip/nile-chip.css.js.map +1 -1
- package/dist/src/nile-circular-progressbar/nile-circular-progressbar.css.js +1 -1
- package/dist/src/nile-circular-progressbar/nile-circular-progressbar.css.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.css.js +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.css.js.map +1 -1
- package/dist/src/nile-content-editor/nile-content-editor.css.js +9 -9
- package/dist/src/nile-content-editor/nile-content-editor.css.js.map +1 -1
- package/dist/src/nile-dialog/nile-dialog.css.js +7 -7
- package/dist/src/nile-dialog/nile-dialog.css.js.map +1 -1
- package/dist/src/nile-divider/nile-divider.css.js +1 -1
- package/dist/src/nile-divider/nile-divider.css.js.map +1 -1
- package/dist/src/nile-drawer/nile-drawer.css.js +1 -1
- package/dist/src/nile-drawer/nile-drawer.css.js.map +1 -1
- package/dist/src/nile-empty-state/nile-empty-state.css.js +4 -4
- package/dist/src/nile-empty-state/nile-empty-state.css.js.map +1 -1
- package/dist/src/nile-error-message/nile-error-message.js +2 -2
- package/dist/src/nile-error-message/nile-error-message.js.map +1 -1
- package/dist/src/nile-form-error-message/nile-form-error-message.js +1 -1
- package/dist/src/nile-form-error-message/nile-form-error-message.js.map +1 -1
- package/dist/src/nile-hero/nile-hero.css.js +2 -2
- package/dist/src/nile-hero/nile-hero.css.js.map +1 -1
- package/dist/src/nile-hero-header/nile-hero-header.css.js +1 -1
- package/dist/src/nile-hero-header/nile-hero-header.css.js.map +1 -1
- package/dist/src/nile-icon/index.js +1 -1
- package/dist/src/nile-icon/index.js.map +1 -1
- package/dist/src/nile-input/nile-input.css.js +23 -23
- package/dist/src/nile-input/nile-input.css.js.map +1 -1
- package/dist/src/nile-link/nile-link.css.js +3 -3
- package/dist/src/nile-link/nile-link.css.js.map +1 -1
- package/dist/src/nile-list-item/nile-list-item.css.js +1 -1
- package/dist/src/nile-list-item/nile-list-item.css.js.map +1 -1
- package/dist/src/nile-loader/nile-loader.js +3 -3
- package/dist/src/nile-loader/nile-loader.js.map +1 -1
- package/dist/src/nile-menu-item/nile-menu-item.css.js +1 -1
- package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
- package/dist/src/nile-option/nile-option.css.js +1 -1
- package/dist/src/nile-option/nile-option.css.js.map +1 -1
- package/dist/src/nile-popover/nile-popover.css.js +2 -2
- package/dist/src/nile-popover/nile-popover.css.js.map +1 -1
- package/dist/src/nile-radio/nile-radio.css.js +4 -4
- package/dist/src/nile-radio/nile-radio.css.js.map +1 -1
- package/dist/src/nile-section-message/nile-section-message.js +1 -1
- package/dist/src/nile-section-message/nile-section-message.js.map +1 -1
- package/dist/src/nile-select/nile-select.css.js +26 -26
- package/dist/src/nile-select/nile-select.css.js.map +1 -1
- package/dist/src/nile-select/nile-select.js +2 -0
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-sidebar/index.js +5 -5
- package/dist/src/nile-sidebar/index.js.map +1 -1
- package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js +1 -1
- package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js.map +1 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +2 -2
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
- package/dist/src/nile-stepper-item/nile-stepper-item.css.js +13 -13
- package/dist/src/nile-stepper-item/nile-stepper-item.css.js.map +1 -1
- package/dist/src/nile-switcher/nile-switcher.js +1 -1
- package/dist/src/nile-switcher/nile-switcher.js.map +1 -1
- package/dist/src/nile-tab/nile-tab.css.js +0 -1
- package/dist/src/nile-tab/nile-tab.css.js.map +1 -1
- package/dist/src/nile-tab-group/nile-tab-group.css.js +3 -3
- package/dist/src/nile-tab-group/nile-tab-group.css.js.map +1 -1
- package/dist/src/nile-table-body/nile-table-body.css.js +1 -1
- package/dist/src/nile-table-body/nile-table-body.css.js.map +1 -1
- package/dist/src/nile-tag/nile-tag.css.js +24 -24
- package/dist/src/nile-tag/nile-tag.css.js.map +1 -1
- package/dist/src/nile-textarea/nile-textarea.css.js +4 -4
- package/dist/src/nile-textarea/nile-textarea.css.js.map +1 -1
- package/dist/src/nile-toast/nile-toast.css.js +2 -2
- package/dist/src/nile-toast/nile-toast.css.js.map +1 -1
- package/dist/src/nile-toast/nile-toast.js +1 -1
- package/dist/src/nile-toast/nile-toast.js.map +1 -1
- package/dist/src/nile-toolbar/nile-toolbar.css.js +1 -1
- package/dist/src/nile-toolbar/nile-toolbar.css.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.css.js +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/dist/src/nile-tour/nile-tour.css.js +8 -8
- package/dist/src/nile-tour/nile-tour.css.js.map +1 -1
- package/dist/src/nile-tree/nile-tree.css.js +1 -1
- package/dist/src/nile-tree/nile-tree.css.js.map +1 -1
- package/dist/src/nile-tree-item/nile-tree-item.css.js +6 -6
- package/dist/src/nile-tree-item/nile-tree-item.css.js.map +1 -1
- package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.css.js +12 -12
- package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.css.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-accordion/nile-accordion.css.ts +1 -1
- package/src/nile-button/nile-button.css.ts +14 -14
- package/src/nile-button-toggle/nile-button-toggle.css.ts +3 -3
- package/src/nile-calendar/nile-calendar.css.ts +20 -20
- package/src/nile-calendar/nile-calendar.test.ts +15 -6
- package/src/nile-card/nile-card.css.ts +1 -1
- package/src/nile-chip/nile-chip.css.ts +8 -8
- package/src/nile-circular-progressbar/nile-circular-progressbar.css.ts +1 -1
- package/src/nile-code-editor/nile-code-editor.css.ts +1 -1
- package/src/nile-content-editor/nile-content-editor.css.ts +9 -9
- package/src/nile-dialog/nile-dialog.css.ts +7 -7
- package/src/nile-divider/nile-divider.css.ts +1 -1
- package/src/nile-drawer/nile-drawer.css.ts +1 -1
- package/src/nile-empty-state/nile-empty-state.css.ts +4 -4
- package/src/nile-error-message/nile-error-message.ts +2 -2
- package/src/nile-form-error-message/nile-form-error-message.ts +1 -1
- package/src/nile-hero/nile-hero.css.ts +2 -2
- package/src/nile-hero-header/nile-hero-header.css.ts +1 -1
- package/src/nile-icon/index.ts +1 -1
- package/src/nile-input/nile-input.css.ts +23 -23
- package/src/nile-link/nile-link.css.ts +3 -3
- package/src/nile-list-item/nile-list-item.css.ts +1 -1
- package/src/nile-loader/nile-loader.ts +3 -3
- package/src/nile-menu-item/nile-menu-item.css.ts +1 -1
- package/src/nile-option/nile-option.css.ts +1 -1
- package/src/nile-popover/nile-popover.css.ts +2 -2
- package/src/nile-radio/nile-radio.css.ts +4 -4
- package/src/nile-section-message/nile-section-message.ts +1 -1
- package/src/nile-select/nile-select.css.ts +26 -26
- package/src/nile-select/nile-select.ts +2 -0
- package/src/nile-sidebar/index.ts +5 -5
- package/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.ts +1 -1
- package/src/nile-slide-toggle/nile-slide-toggle.css.ts +2 -2
- package/src/nile-stepper-item/nile-stepper-item.css.ts +13 -13
- package/src/nile-switcher/nile-switcher.ts +1 -1
- package/src/nile-tab/nile-tab.css.ts +0 -1
- package/src/nile-tab-group/nile-tab-group.css.ts +3 -3
- package/src/nile-table-body/nile-table-body.css.ts +1 -1
- package/src/nile-tag/nile-tag.css.ts +24 -24
- package/src/nile-textarea/nile-textarea.css.ts +4 -4
- package/src/nile-toast/nile-toast.css.ts +2 -2
- package/src/nile-toast/nile-toast.ts +1 -1
- package/src/nile-toolbar/nile-toolbar.css.ts +1 -1
- package/src/nile-tooltip/nile-tooltip.css.ts +1 -1
- package/src/nile-tour/nile-tour.css.ts +8 -8
- package/src/nile-tree/nile-tree.css.ts +1 -1
- package/src/nile-tree-item/nile-tree-item.css.ts +6 -6
- package/src/nile-vertical-stepper-item/nile-vertical-stepper-item.css.ts +12 -12
@@ -62,12 +62,19 @@ describe('NileCalendar', () => {
|
|
62
62
|
it('should change the month correctly on next and previous button click', async () => {
|
63
63
|
const el = await fixture(html `<nile-calendar></nile-calendar>`);
|
64
64
|
await elementUpdated(el);
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
65
|
+
function getMonths() {
|
66
|
+
const currentDate = new Date();
|
67
|
+
const previousMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, 1);
|
68
|
+
const currentMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);
|
69
|
+
const nextMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 1);
|
70
|
+
return {
|
71
|
+
prevMonth: previousMonth.toLocaleString('default', { month: 'long', year: 'numeric' }).split(' ').at(0),
|
72
|
+
currMonth: currentMonth.toLocaleString('default', { month: 'long', year: 'numeric' }).split(' ').at(0),
|
73
|
+
nextMonth: nextMonth.toLocaleString('default', { month: 'long', year: 'numeric' }).split(' ').at(0)
|
74
|
+
};
|
75
|
+
}
|
76
|
+
const { prevMonth, currMonth, nextMonth } = getMonths();
|
77
|
+
console.log(prevMonth, currMonth, nextMonth);
|
71
78
|
// Check initial month
|
72
79
|
let monthText = el.shadowRoot?.querySelector('div.calendar-header > span')?.textContent;
|
73
80
|
expect(monthText).to.include(currMonth);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-calendar.test.js","sourceRoot":"","sources":["../../../src/nile-calendar/nile-calendar.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAa,MAAM,kBAAkB,CAAC;AAC9F,OAAO,iBAAiB,CAAC;AACzB,OAAO,EAA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AAC,IAAI,EAAE,CAAC;QAC7F,MAAM,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAgB,CAAC,CAAE,kCAAkC;QAC5E,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAgB,CAAC,CAAE,mCAAmC;QAE5E,qEAAqE;QACrE,QAAQ,CAAC,KAAK,EAAE,CAAC;QACjB,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,mCAAmC;QAC7D,OAAO,CAAC,KAAK,EAAE,CAAC;QAChB,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,yCAAyC;QAEnE,sDAAsD;QACtD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAC9D,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAE3D,yDAAyD;QACzD,MAAM,WAAW,GAAG,EAAE,CAAC,UAAU,EAAE,aAAa,CAAa,eAAe,CAAC,CAAC;QAC9E,WAAW,EAAE,KAAK,EAAE,CAAA;QACpB,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,yCAAyC;QAEnE,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QAC/D,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IAC9D,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { fixture, html, expect, oneEvent, elementUpdated, waitUntil } from '@open-wc/testing';\nimport './nile-calendar';\nimport { NileCalendar } from './nile-calendar';\nimport Sinon from 'sinon';\nimport { NileButton } from '../nile-button';\nimport { NileIcon } from '../nile-icon';\nimport { NileTab } from '../nile-tab';\nimport { NileTabGroup } from '../nile-tab-group';\nimport { NileSelect } from '../nile-select';\nimport { NileInput } from '../nile-input';\n\nimport './nile-calendar';\nimport '../nile-input/nile-input';\nimport '../nile-select/nile-select';\nimport '../nile-tab-group/nile-tab-group';\nimport '../nile-tab/nile-tab';\nimport '../nile-button/nile-button';\n\nfunction wait(ms:number=50000) {\n return new Promise(resolve => setTimeout(resolve, ms));\n}\n\ndescribe('NileCalendar', () => {\n it('renders correctly with default properties', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar></nile-calendar>`);\n expect(el).shadowDom.to.equalSnapshot();\n });\n \n it('should render correctly', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar></nile-calendar>`);\n expect(el).to.be.instanceOf(NileCalendar);\n expect(el.shadowRoot).not.to.be.null;\n });\n\n it('should initialize value on connectedCallback', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar value=\"2023-10-01\"></nile-calendar>`);\n el.connectedCallback();\n expect(el.value?.toISOString().split('T')[0]).to.equal('2023-10-01');\n });\n\n it('should emit `nile-init` event on connectedCallback', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar></nile-calendar>`);\n const eventSpy = Sinon.spy(el, 'emit');\n el.connectedCallback();\n expect(eventSpy).to.have.been.calledWith('nile-init');\n });\n\n it('should initialize value on connectedCallback', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar value=\"2023-10-01\"></nile-calendar>`);\n el.connectedCallback();\n expect(el.value?.toISOString().split('T')[0]).to.equal('2023-10-01');\n });\n\n it('should update value when valueAttribute changes', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar value=\"2023-10-01\"></nile-calendar>`);\n el.valueAttribute = '2023-11-05';\n await el.updateComplete;\n expect(el.value?.toISOString().split('T')[0]).to.equal('2023-11-05');\n });\n\n it('should select a single date when clicked', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar></nile-calendar>`);\n \n // Get the current date element in the calendar\n const currentDateElement = el.shadowRoot?.querySelector('div.days_container div.current__date__dot')?.parentElement?.parentElement;\n \n // Simulate a click on the current date after a brief timeout\n setTimeout(() => currentDateElement?.click());\n \n // Wait for the 'nile-change' event to be emitted\n const { detail: { value } } = await oneEvent(el, 'nile-change');\n \n // Update the element after the event\n await elementUpdated(el);\n \n const emittedDate = new Date(value);\n // Assertions\n expect(value).to.exist;\n expect(emittedDate.getDate()).to.equal(new Date().getDate());\n expect(currentDateElement?.className).to.include('selected-date');\n });\n\n it('should change the month correctly on next and previous button click', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar></nile-calendar>`);\n await elementUpdated(el);\n \n // Get current, next, and previous months\n const today = new Date();\n const getMonthName = (date: Date) => date.toLocaleString('default', { month: 'long' });\n const currMonth = getMonthName(today);\n const nextMonth = getMonthName(new Date(today.setMonth(today.getMonth() + 1)));\n const prevMonth = getMonthName(new Date(today.setMonth(today.getMonth() - 2)));\n \n // Check initial month\n let monthText = el.shadowRoot?.querySelector('div.calendar-header > span')?.textContent;\n expect(monthText).to.include(currMonth);\n \n // Click next button and check next month\n const [prevButton, nextButton] = el.shadowRoot?.querySelectorAll<NileIcon>('nile-icon') || [];\n nextButton?.click();\n await elementUpdated(el);\n monthText = el.shadowRoot?.querySelector('div.calendar-header > span')?.textContent;\n expect(monthText).to.include(nextMonth);\n \n // Click previous button twice and check previous month\n prevButton?.click();\n await elementUpdated(el);\n prevButton?.click();\n await elementUpdated(el);\n monthText = el.shadowRoot?.querySelector('div.calendar-header > span')?.textContent;\n expect(monthText).to.include(prevMonth);\n })\n\n it('should allow range selection and emit validated data on apply', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar range></nile-calendar>`);\n await elementUpdated(el);\n\n // Get day elements from the calendar, selecting two dates for range selection\n const days = el.shadowRoot?.querySelectorAll('.days_container .day_date:not(.filler)') || [];\n const firstDay = days[4] as HTMLElement; // Choose the 5th day of the month\n const lastDay = days[9] as HTMLElement; // Choose the 10th day of the month\n\n // Simulate click events for selecting the range (start and end date)\n firstDay.click();\n await elementUpdated(el); // Wait for updates after selection\n lastDay.click();\n await elementUpdated(el); // Wait for updates after range selection\n\n // Ensure both dates are correctly selected in the DOM\n expect(firstDay.classList.contains('range-start')).to.be.true;\n expect(lastDay.classList.contains('range-end')).to.be.true;\n\n // Find and click the \"Apply\" button to confirm the range\n const applyButton = el.shadowRoot?.querySelector<NileButton>('.apply-button');\n setTimeout(() => applyButton?.click());\n\n // Wait for the emitted 'nile-changed' event\n const { detail } = await oneEvent(el, 'nile-changed');\n\n // Extract the emitted start and end dates from the event detail\n const { startDate, endDate } = detail;\n \n // Validate the emitted data\n const expectedStartDate = new Date();\n expectedStartDate.setDate(5); // Adjust to the expected 5th day\n const expectedEndDate = new Date();\n expectedEndDate.setDate(10); // Adjust to the expected 10th day\n \n expect(startDate.getDate()).to.equal(expectedStartDate.getDate());\n expect(endDate.getDate()).to.equal(expectedEndDate.getDate());\n });\n\n it('should correctly apply allowed dates range on calendar', async () => {\n const currentMonth = new Date().getMonth();\n const currentYear = new Date().getFullYear();\n\n // Define a range of allowed dates (e.g., from the 5th to the 20th of the current month)\n const allowedDates = {\n startDate: `${currentYear}-${String(currentMonth + 1).padStart(2, '0')}-05`,\n endDate: `${currentYear}-${String(currentMonth + 1).padStart(2, '0')}-20`\n };\n\n // Pass the allowed dates to the component as a property\n const el = await fixture<NileCalendar>(html`\n <nile-calendar allowedDates='${JSON.stringify(allowedDates)}'></nile-calendar>\n `);\n\n await elementUpdated(el);\n\n // Get all day elements from the calendar\n const days = el.shadowRoot?.querySelectorAll('.days_container .day_date') || [];\n\n // Verify that days outside the allowed range are marked as not allowed\n days.forEach((dayElement, index) => {\n const dayNumber = Number(dayElement.textContent?.trim());\n\n if (dayNumber < 5 || dayNumber > 20) {\n expect(dayElement.classList.contains('not-allowed')).to.be.true;\n } else {\n expect(dayElement.classList.contains('not-allowed')).to.be.false;\n }\n });\n });\n \n it('should select various ranges in relative calendar and emit correct data', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar range type=\"relative\"></nile-calendar>`);\n await elementUpdated(el);\n\n // Define test cases with unit and values for the relative range selection\n const testCases = [\n { unit: 'minutes', value: 15 },\n { unit: 'hours', value: 2 },\n { unit: 'days', value: 3 },\n { unit: 'weeks', value: 1 },\n { unit: 'months', value: 6 }\n ];\n\n let index=1;\n for (const testCase of testCases) {\n const { unit, value } = testCase;\n\n // Find the unit selector buttons and simulate click for the corresponding unit\n const unitSelector = Array.from(el.shadowRoot?.querySelectorAll<HTMLElement>(`div.unit-container .duration-units:nth-child(${index*2})>div`)??[]).find(el=>Number(el.textContent?.trim())==value);\n unitSelector?.click();\n await elementUpdated(el);\n\n // Simulate clicking the apply button\n const applyButton = el.shadowRoot?.querySelector<HTMLButtonElement>('.apply-button');\n setTimeout(() =>{ \n applyButton?.click();\n });\n\n // Wait for the emitted `nile-changed` event and get the emitted start and end dates\n const { detail } = await oneEvent(el, 'nile-change');\n const { startDate, endDate } = detail;\n\n // Validate the emitted data for each unit\n const now = new Date();\n let expectedStartDate = new Date(now);\n \n switch (unit) {\n case 'minutes':\n expectedStartDate.setMinutes(now.getMinutes() - value);\n break;\n case 'hours':\n expectedStartDate.setHours(now.getHours() - value);\n break;\n case 'days':\n expectedStartDate.setDate(now.getDate() - value);\n break;\n case 'weeks':\n expectedStartDate.setDate(now.getDate() - value * 7);\n break;\n case 'months':\n expectedStartDate.setMonth(now.getMonth() - value);\n break;\n }\n\n // Ensure the emitted startDate and endDate match the expected values\n expect(startDate.getTime()).to.be.closeTo(expectedStartDate.getTime(), 1000); // Allowing a small time tolerance\n expect(endDate.getTime()).to.be.closeTo(now.getTime(), 1000); // The endDate should be roughly now\n index++;\n }\n });\n\n it('should allow manual time input for from and to fields and emit correct data', async () => {\n const el = await fixture<NileCalendar>(html`\n <nile-calendar range showManualInputs></nile-calendar>\n `);\n await elementUpdated(el);\n\n const days = el.shadowRoot?.querySelectorAll('.days_container .day_date:not(.filler)') || [];\n const firstDay = days[4] as HTMLElement; // Select 5th day of the month\n const lastDay = days[9] as HTMLElement; // Select 10th day of the month\n\n // Simulate clicks to select the range (start and end date)\n firstDay.click();\n await elementUpdated(el);\n lastDay.click();\n await elementUpdated(el);\n\n // Find the \"From\" and \"To\" input fields\n const fromInput = el.shadowRoot?.querySelector<HTMLInputElement>('nile-input[label=\"From\"]');\n const toInput = el.shadowRoot?.querySelector<HTMLInputElement>('nile-input[label=\"To\"]');\n\n // Manually set the \"From\" and \"To\" time values\n if (fromInput && toInput) {\n // Simulate input events for both \"From\" and \"To\" time inputs\n fromInput.dispatchEvent(new CustomEvent('nile-change',{detail:{value:'08:30:00'}}));\n toInput.dispatchEvent(new CustomEvent('nile-change',{detail:{value:'17:00:00'}}));\n }\n\n await elementUpdated(el); // Wait for the DOM to update after the inputs\n\n // Simulate clicking the \"Apply\" button\n const applyButton = el.shadowRoot?.querySelector<HTMLButtonElement>('.apply-button');\n setTimeout(()=>applyButton?.click())\n\n // Wait for the emitted `nile-change` event\n const { detail } = await oneEvent(el, 'nile-change');\n const { startDate, endDate } = detail;\n\n // Expected start and end date should include the manually entered times\n const expectedStartDate = new Date();\n expectedStartDate.setHours(8, 30, 0); // 08:30:00 for \"From\" time\n const expectedEndDate = new Date();\n expectedEndDate.setHours(17, 0, 0); // 17:00:00 for \"To\" time\n\n // Validate the emitted startDate and endDate\n expect(startDate.getHours()).to.equal(expectedStartDate.getHours());\n expect(startDate.getMinutes()).to.equal(expectedStartDate.getMinutes());\n expect(startDate.getSeconds()).to.equal(expectedStartDate.getSeconds());\n\n expect(endDate.getHours()).to.equal(expectedEndDate.getHours());\n expect(endDate.getMinutes()).to.equal(expectedEndDate.getMinutes());\n expect(endDate.getSeconds()).to.equal(expectedEndDate.getSeconds());\n });\n\n it('should allow setting duration and unit of time in relative mode and emit correct data', async () => {\n const el = await fixture<NileCalendar>(html`\n <nile-calendar type=\"relative\" range></nile-calendar>\n `);\n await elementUpdated(el);\n\n // Step 1: Manually set the \"Duration\" input value\n const durationInput = el.shadowRoot?.querySelector<NileInput>('nile-input.duration-input');\n \n if (durationInput) {\n durationInput.dispatchEvent(new CustomEvent('nile-change',{detail:{value:'5'}}));// Set duration to 5 (e.g., 5 hours)\n }\n\n await elementUpdated(el); // Wait for the DOM to update after the input\n\n // Step 2: Select the \"Unit of Time\" from the select input (e.g., hours)\n const unitSelect = el.shadowRoot?.querySelector<NileSelect>('nile-select');\n if (unitSelect) {\n unitSelect.dispatchEvent(new CustomEvent('nile-change',{detail:{value:'hours'}}));// Trigger change event\n }\n\n await elementUpdated(el); // Wait for the DOM to update after the selection\n\n // Step 3: Simulate clicking the \"Apply\" button\n const applyButton = el.shadowRoot?.querySelector<NileButton>('.apply-button');\n setTimeout(()=>applyButton?.click())\n\n // Step 4: Wait for the emitted `nile-change` event\n const { detail } = await oneEvent(el, 'nile-change');\n const { startDate, endDate } = detail;\n\n // Step 5: Validate the emitted data\n const now = new Date();\n const expectedStartDate = new Date(now);\n expectedStartDate.setHours(now.getHours() - 5); // Subtract 5 hours from the current time\n\n // Check if the emitted startDate matches the expected start date (5 hours ago)\n expect(startDate.getTime()).to.be.closeTo(expectedStartDate.getTime(), 1000); // Allowing small time tolerance (1000 ms)\n \n // Check if the emitted endDate is approximately now\n expect(endDate.getTime()).to.be.closeTo(now.getTime(), 1000); // The end date should be roughly now\n });\n\n it('should allow deselection of date on clicking again on selected date', async () => {\n const el = await fixture<NileCalendar>(html`\n <nile-calendar showManualInput doubleClickUnselect></nile-calendar>\n `);\n await elementUpdated(el);\n \n // Get the current date element in the calendar\n const currentDateElement = el.shadowRoot?.querySelector('div.days_container div.current__date__dot')?.parentElement?.parentElement;\n \n // Simulate a click on the current date after a brief timeout\n setTimeout(() => currentDateElement?.click());\n \n // Wait for the 'nile-change' event to be emitted\n const { detail: { value } } = await oneEvent(el, 'nile-change');\n \n // Update the element after the event\n await elementUpdated(el);\n \n // Assertions\n expect(value).to.exist;\n expect(currentDateElement?.className).to.include('selected-date');\n\n // Simulate a click on the current date after a brief timeout\n currentDateElement?.click()\n await elementUpdated(el);\n \n expect(currentDateElement?.className).to.not.include('selected-date');\n })\n\n it('should allow deselection of range on clicking on clear button', async () => {\n const el = await fixture<NileCalendar>(html`\n <nile-calendar range allowClear></nile-calendar>\n `);\n await elementUpdated(el);\n \n // Get day elements from the calendar, selecting two dates for range selection\n const days = el.shadowRoot?.querySelectorAll('.days_container .day_date:not(.filler)') || [];\n const firstDay = days[4] as HTMLElement; // Choose the 5th day of the month\n const lastDay = days[9] as HTMLElement; // Choose the 10th day of the month\n\n // Simulate click events for selecting the range (start and end date)\n firstDay.click();\n await elementUpdated(el); // Wait for updates after selection\n lastDay.click();\n await elementUpdated(el); // Wait for updates after range selection\n\n // Ensure both dates are correctly selected in the DOM\n expect(firstDay.classList.contains('range-start')).to.be.true;\n expect(lastDay.classList.contains('range-end')).to.be.true;\n\n // Find and click the \"Apply\" button to confirm the range\n const clearButton = el.shadowRoot?.querySelector<NileButton>('.clear-button');\n clearButton?.click()\n await elementUpdated(el); // Wait for updates after range selection\n \n expect(firstDay.classList.contains('range-start')).to.be.false;\n expect(lastDay.classList.contains('range-end')).to.be.false;\n })\n});\n\n"]}
|
1
|
+
{"version":3,"file":"nile-calendar.test.js","sourceRoot":"","sources":["../../../src/nile-calendar/nile-calendar.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAa,MAAM,kBAAkB,CAAC;AAC9F,OAAO,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,sBAAsB,CAAC;AAC9B,OAAO,4BAA4B,CAAC;AAEpC,SAAS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CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QAC/D,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IAC9D,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { fixture, html, expect, oneEvent, elementUpdated, waitUntil } from '@open-wc/testing';\nimport './nile-calendar';\nimport { NileCalendar } from './nile-calendar';\nimport Sinon from 'sinon';\nimport { NileButton } from '../nile-button';\nimport { NileIcon } from '../nile-icon';\nimport { NileTab } from '../nile-tab';\nimport { NileTabGroup } from '../nile-tab-group';\nimport { NileSelect } from '../nile-select';\nimport { NileInput } from '../nile-input';\n\nimport './nile-calendar';\nimport '../nile-input/nile-input';\nimport '../nile-select/nile-select';\nimport '../nile-tab-group/nile-tab-group';\nimport '../nile-tab/nile-tab';\nimport '../nile-button/nile-button';\n\nfunction wait(ms:number=50000) {\n return new Promise(resolve => setTimeout(resolve, ms));\n}\n\ndescribe('NileCalendar', () => {\n it('renders correctly with default properties', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar></nile-calendar>`);\n expect(el).shadowDom.to.equalSnapshot();\n });\n \n it('should render correctly', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar></nile-calendar>`);\n expect(el).to.be.instanceOf(NileCalendar);\n expect(el.shadowRoot).not.to.be.null;\n });\n\n it('should initialize value on connectedCallback', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar value=\"2023-10-01\"></nile-calendar>`);\n el.connectedCallback();\n expect(el.value?.toISOString().split('T')[0]).to.equal('2023-10-01');\n });\n\n it('should emit `nile-init` event on connectedCallback', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar></nile-calendar>`);\n const eventSpy = Sinon.spy(el, 'emit');\n el.connectedCallback();\n expect(eventSpy).to.have.been.calledWith('nile-init');\n });\n\n it('should initialize value on connectedCallback', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar value=\"2023-10-01\"></nile-calendar>`);\n el.connectedCallback();\n expect(el.value?.toISOString().split('T')[0]).to.equal('2023-10-01');\n });\n\n it('should update value when valueAttribute changes', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar value=\"2023-10-01\"></nile-calendar>`);\n el.valueAttribute = '2023-11-05';\n await el.updateComplete;\n expect(el.value?.toISOString().split('T')[0]).to.equal('2023-11-05');\n });\n\n it('should select a single date when clicked', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar></nile-calendar>`);\n \n // Get the current date element in the calendar\n const currentDateElement = el.shadowRoot?.querySelector('div.days_container div.current__date__dot')?.parentElement?.parentElement;\n \n // Simulate a click on the current date after a brief timeout\n setTimeout(() => currentDateElement?.click());\n \n // Wait for the 'nile-change' event to be emitted\n const { detail: { value } } = await oneEvent(el, 'nile-change');\n \n // Update the element after the event\n await elementUpdated(el);\n \n const emittedDate = new Date(value);\n // Assertions\n expect(value).to.exist;\n expect(emittedDate.getDate()).to.equal(new Date().getDate());\n expect(currentDateElement?.className).to.include('selected-date');\n });\n\n it('should change the month correctly on next and previous button click', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar></nile-calendar>`);\n await elementUpdated(el);\n \n function getMonths() {\n const currentDate = new Date();\n \n const previousMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, 1);\n const currentMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);\n const nextMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 1);\n \n return {\n prevMonth: previousMonth.toLocaleString('default', { month: 'long', year: 'numeric' }).split(' ').at(0),\n currMonth: currentMonth.toLocaleString('default', { month: 'long', year: 'numeric' }).split(' ').at(0),\n nextMonth: nextMonth.toLocaleString('default', { month: 'long', year: 'numeric' }).split(' ').at(0)\n };\n }\n const {prevMonth,currMonth,nextMonth}=getMonths()\n console.log(prevMonth,currMonth,nextMonth)\n \n // Check initial month\n let monthText = el.shadowRoot?.querySelector('div.calendar-header > span')?.textContent;\n expect(monthText).to.include(currMonth);\n \n // Click next button and check next month\n const [prevButton, nextButton] = el.shadowRoot?.querySelectorAll<NileIcon>('nile-icon') || [];\n nextButton?.click();\n await elementUpdated(el);\n monthText = el.shadowRoot?.querySelector('div.calendar-header > span')?.textContent;\n expect(monthText).to.include(nextMonth);\n \n // Click previous button twice and check previous month\n prevButton?.click();\n await elementUpdated(el);\n prevButton?.click();\n await elementUpdated(el);\n monthText = el.shadowRoot?.querySelector('div.calendar-header > span')?.textContent;\n expect(monthText).to.include(prevMonth);\n })\n\n it('should allow range selection and emit validated data on apply', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar range></nile-calendar>`);\n await elementUpdated(el);\n\n // Get day elements from the calendar, selecting two dates for range selection\n const days = el.shadowRoot?.querySelectorAll('.days_container .day_date:not(.filler)') || [];\n const firstDay = days[4] as HTMLElement; // Choose the 5th day of the month\n const lastDay = days[9] as HTMLElement; // Choose the 10th day of the month\n\n // Simulate click events for selecting the range (start and end date)\n firstDay.click();\n await elementUpdated(el); // Wait for updates after selection\n lastDay.click();\n await elementUpdated(el); // Wait for updates after range selection\n\n // Ensure both dates are correctly selected in the DOM\n expect(firstDay.classList.contains('range-start')).to.be.true;\n expect(lastDay.classList.contains('range-end')).to.be.true;\n\n // Find and click the \"Apply\" button to confirm the range\n const applyButton = el.shadowRoot?.querySelector<NileButton>('.apply-button');\n setTimeout(() => applyButton?.click());\n\n // Wait for the emitted 'nile-changed' event\n const { detail } = await oneEvent(el, 'nile-changed');\n\n // Extract the emitted start and end dates from the event detail\n const { startDate, endDate } = detail;\n \n // Validate the emitted data\n const expectedStartDate = new Date();\n expectedStartDate.setDate(5); // Adjust to the expected 5th day\n const expectedEndDate = new Date();\n expectedEndDate.setDate(10); // Adjust to the expected 10th day\n \n expect(startDate.getDate()).to.equal(expectedStartDate.getDate());\n expect(endDate.getDate()).to.equal(expectedEndDate.getDate());\n });\n\n it('should correctly apply allowed dates range on calendar', async () => {\n const currentMonth = new Date().getMonth();\n const currentYear = new Date().getFullYear();\n\n // Define a range of allowed dates (e.g., from the 5th to the 20th of the current month)\n const allowedDates = {\n startDate: `${currentYear}-${String(currentMonth + 1).padStart(2, '0')}-05`,\n endDate: `${currentYear}-${String(currentMonth + 1).padStart(2, '0')}-20`\n };\n\n // Pass the allowed dates to the component as a property\n const el = await fixture<NileCalendar>(html`\n <nile-calendar allowedDates='${JSON.stringify(allowedDates)}'></nile-calendar>\n `);\n\n await elementUpdated(el);\n\n // Get all day elements from the calendar\n const days = el.shadowRoot?.querySelectorAll('.days_container .day_date') || [];\n\n // Verify that days outside the allowed range are marked as not allowed\n days.forEach((dayElement, index) => {\n const dayNumber = Number(dayElement.textContent?.trim());\n\n if (dayNumber < 5 || dayNumber > 20) {\n expect(dayElement.classList.contains('not-allowed')).to.be.true;\n } else {\n expect(dayElement.classList.contains('not-allowed')).to.be.false;\n }\n });\n });\n \n it('should select various ranges in relative calendar and emit correct data', async () => {\n const el = await fixture<NileCalendar>(html`<nile-calendar range type=\"relative\"></nile-calendar>`);\n await elementUpdated(el);\n\n // Define test cases with unit and values for the relative range selection\n const testCases = [\n { unit: 'minutes', value: 15 },\n { unit: 'hours', value: 2 },\n { unit: 'days', value: 3 },\n { unit: 'weeks', value: 1 },\n { unit: 'months', value: 6 }\n ];\n\n let index=1;\n for (const testCase of testCases) {\n const { unit, value } = testCase;\n\n // Find the unit selector buttons and simulate click for the corresponding unit\n const unitSelector = Array.from(el.shadowRoot?.querySelectorAll<HTMLElement>(`div.unit-container .duration-units:nth-child(${index*2})>div`)??[]).find(el=>Number(el.textContent?.trim())==value);\n unitSelector?.click();\n await elementUpdated(el);\n\n // Simulate clicking the apply button\n const applyButton = el.shadowRoot?.querySelector<HTMLButtonElement>('.apply-button');\n setTimeout(() =>{ \n applyButton?.click();\n });\n\n // Wait for the emitted `nile-changed` event and get the emitted start and end dates\n const { detail } = await oneEvent(el, 'nile-change');\n const { startDate, endDate } = detail;\n\n // Validate the emitted data for each unit\n const now = new Date();\n let expectedStartDate = new Date(now);\n \n switch (unit) {\n case 'minutes':\n expectedStartDate.setMinutes(now.getMinutes() - value);\n break;\n case 'hours':\n expectedStartDate.setHours(now.getHours() - value);\n break;\n case 'days':\n expectedStartDate.setDate(now.getDate() - value);\n break;\n case 'weeks':\n expectedStartDate.setDate(now.getDate() - value * 7);\n break;\n case 'months':\n expectedStartDate.setMonth(now.getMonth() - value);\n break;\n }\n\n // Ensure the emitted startDate and endDate match the expected values\n expect(startDate.getTime()).to.be.closeTo(expectedStartDate.getTime(), 1000); // Allowing a small time tolerance\n expect(endDate.getTime()).to.be.closeTo(now.getTime(), 1000); // The endDate should be roughly now\n index++;\n }\n });\n\n it('should allow manual time input for from and to fields and emit correct data', async () => {\n const el = await fixture<NileCalendar>(html`\n <nile-calendar range showManualInputs></nile-calendar>\n `);\n await elementUpdated(el);\n\n const days = el.shadowRoot?.querySelectorAll('.days_container .day_date:not(.filler)') || [];\n const firstDay = days[4] as HTMLElement; // Select 5th day of the month\n const lastDay = days[9] as HTMLElement; // Select 10th day of the month\n\n // Simulate clicks to select the range (start and end date)\n firstDay.click();\n await elementUpdated(el);\n lastDay.click();\n await elementUpdated(el);\n\n // Find the \"From\" and \"To\" input fields\n const fromInput = el.shadowRoot?.querySelector<HTMLInputElement>('nile-input[label=\"From\"]');\n const toInput = el.shadowRoot?.querySelector<HTMLInputElement>('nile-input[label=\"To\"]');\n\n // Manually set the \"From\" and \"To\" time values\n if (fromInput && toInput) {\n // Simulate input events for both \"From\" and \"To\" time inputs\n fromInput.dispatchEvent(new CustomEvent('nile-change',{detail:{value:'08:30:00'}}));\n toInput.dispatchEvent(new CustomEvent('nile-change',{detail:{value:'17:00:00'}}));\n }\n\n await elementUpdated(el); // Wait for the DOM to update after the inputs\n\n // Simulate clicking the \"Apply\" button\n const applyButton = el.shadowRoot?.querySelector<HTMLButtonElement>('.apply-button');\n setTimeout(()=>applyButton?.click())\n\n // Wait for the emitted `nile-change` event\n const { detail } = await oneEvent(el, 'nile-change');\n const { startDate, endDate } = detail;\n\n // Expected start and end date should include the manually entered times\n const expectedStartDate = new Date();\n expectedStartDate.setHours(8, 30, 0); // 08:30:00 for \"From\" time\n const expectedEndDate = new Date();\n expectedEndDate.setHours(17, 0, 0); // 17:00:00 for \"To\" time\n\n // Validate the emitted startDate and endDate\n expect(startDate.getHours()).to.equal(expectedStartDate.getHours());\n expect(startDate.getMinutes()).to.equal(expectedStartDate.getMinutes());\n expect(startDate.getSeconds()).to.equal(expectedStartDate.getSeconds());\n\n expect(endDate.getHours()).to.equal(expectedEndDate.getHours());\n expect(endDate.getMinutes()).to.equal(expectedEndDate.getMinutes());\n expect(endDate.getSeconds()).to.equal(expectedEndDate.getSeconds());\n });\n\n it('should allow setting duration and unit of time in relative mode and emit correct data', async () => {\n const el = await fixture<NileCalendar>(html`\n <nile-calendar type=\"relative\" range></nile-calendar>\n `);\n await elementUpdated(el);\n\n // Step 1: Manually set the \"Duration\" input value\n const durationInput = el.shadowRoot?.querySelector<NileInput>('nile-input.duration-input');\n \n if (durationInput) {\n durationInput.dispatchEvent(new CustomEvent('nile-change',{detail:{value:'5'}}));// Set duration to 5 (e.g., 5 hours)\n }\n\n await elementUpdated(el); // Wait for the DOM to update after the input\n\n // Step 2: Select the \"Unit of Time\" from the select input (e.g., hours)\n const unitSelect = el.shadowRoot?.querySelector<NileSelect>('nile-select');\n if (unitSelect) {\n unitSelect.dispatchEvent(new CustomEvent('nile-change',{detail:{value:'hours'}}));// Trigger change event\n }\n\n await elementUpdated(el); // Wait for the DOM to update after the selection\n\n // Step 3: Simulate clicking the \"Apply\" button\n const applyButton = el.shadowRoot?.querySelector<NileButton>('.apply-button');\n setTimeout(()=>applyButton?.click())\n\n // Step 4: Wait for the emitted `nile-change` event\n const { detail } = await oneEvent(el, 'nile-change');\n const { startDate, endDate } = detail;\n\n // Step 5: Validate the emitted data\n const now = new Date();\n const expectedStartDate = new Date(now);\n expectedStartDate.setHours(now.getHours() - 5); // Subtract 5 hours from the current time\n\n // Check if the emitted startDate matches the expected start date (5 hours ago)\n expect(startDate.getTime()).to.be.closeTo(expectedStartDate.getTime(), 1000); // Allowing small time tolerance (1000 ms)\n \n // Check if the emitted endDate is approximately now\n expect(endDate.getTime()).to.be.closeTo(now.getTime(), 1000); // The end date should be roughly now\n });\n\n it('should allow deselection of date on clicking again on selected date', async () => {\n const el = await fixture<NileCalendar>(html`\n <nile-calendar showManualInput doubleClickUnselect></nile-calendar>\n `);\n await elementUpdated(el);\n \n // Get the current date element in the calendar\n const currentDateElement = el.shadowRoot?.querySelector('div.days_container div.current__date__dot')?.parentElement?.parentElement;\n \n // Simulate a click on the current date after a brief timeout\n setTimeout(() => currentDateElement?.click());\n \n // Wait for the 'nile-change' event to be emitted\n const { detail: { value } } = await oneEvent(el, 'nile-change');\n \n // Update the element after the event\n await elementUpdated(el);\n \n // Assertions\n expect(value).to.exist;\n expect(currentDateElement?.className).to.include('selected-date');\n\n // Simulate a click on the current date after a brief timeout\n currentDateElement?.click()\n await elementUpdated(el);\n \n expect(currentDateElement?.className).to.not.include('selected-date');\n })\n\n it('should allow deselection of range on clicking on clear button', async () => {\n const el = await fixture<NileCalendar>(html`\n <nile-calendar range allowClear></nile-calendar>\n `);\n await elementUpdated(el);\n \n // Get day elements from the calendar, selecting two dates for range selection\n const days = el.shadowRoot?.querySelectorAll('.days_container .day_date:not(.filler)') || [];\n const firstDay = days[4] as HTMLElement; // Choose the 5th day of the month\n const lastDay = days[9] as HTMLElement; // Choose the 10th day of the month\n\n // Simulate click events for selecting the range (start and end date)\n firstDay.click();\n await elementUpdated(el); // Wait for updates after selection\n lastDay.click();\n await elementUpdated(el); // Wait for updates after range selection\n\n // Ensure both dates are correctly selected in the DOM\n expect(firstDay.classList.contains('range-start')).to.be.true;\n expect(lastDay.classList.contains('range-end')).to.be.true;\n\n // Find and click the \"Apply\" button to confirm the range\n const clearButton = el.shadowRoot?.querySelector<NileButton>('.clear-button');\n clearButton?.click()\n await elementUpdated(el); // Wait for updates after range selection\n \n expect(firstDay.classList.contains('range-start')).to.be.false;\n expect(lastDay.classList.contains('range-end')).to.be.false;\n })\n});\n\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-card.css.js","sourceRoot":"","sources":["../../../src/nile-card/nile-card.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyExB,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 * Card CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n\n :host {\n --border-color: var(--nile-card-color-border);\n --border-radius: 8px;\n --border-width: 0.5px;\n --padding: 18px;\n display: inline-block;\n }\n\n .card {\n display: flex;\n flex-direction: column;\n justify-items: strecth;\n background-color: var(--nile-colors-white-base);\n outline: solid var(--border-width) var(--border-color);\n border-radius: var(--border-radius);\n min-width: 273px;\n max-width: 350px;\n overflow: hidden;\n }\n\n .body__wrapper {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 12px 16px 0 16px;\n }\n\n .body__wrapper_nf {\n padding: 12px 16px 16px 16px;\n }\n .card__header {\n display: block;\n }\n\n .card__body {\n display: block;\n }\n\n .card__footer {\n margin-top: 12px;\n display: block;\n box-sizing: border-box;\n align-content: center;\n align-items: center;\n padding: 8px 16px;\n background-color:
|
1
|
+
{"version":3,"file":"nile-card.css.js","sourceRoot":"","sources":["../../../src/nile-card/nile-card.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyExB,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 * Card CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n\n :host {\n --border-color: var(--nile-card-color-border);\n --border-radius: 8px;\n --border-width: 0.5px;\n --padding: 18px;\n display: inline-block;\n }\n\n .card {\n display: flex;\n flex-direction: column;\n justify-items: strecth;\n background-color: var(--nile-colors-white-base);\n outline: solid var(--border-width) var(--border-color);\n border-radius: var(--border-radius);\n min-width: 273px;\n max-width: 350px;\n overflow: hidden;\n }\n\n .body__wrapper {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 12px 16px 0 16px;\n }\n\n .body__wrapper_nf {\n padding: 12px 16px 16px 16px;\n }\n .card__header {\n display: block;\n }\n\n .card__body {\n display: block;\n }\n\n .card__footer {\n margin-top: 12px;\n display: block;\n box-sizing: border-box;\n align-content: center;\n align-items: center;\n padding: 8px 16px;\n background-color: var(--nile-colors-neutral-100);\n height: 40px;\n }\n\n .card:not(.card--has-footer) .card__footer {\n display: none;\n }\n\n .card:hover {\n box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1),\n 0px 2px 4px -2px rgba(16, 24, 40, 0.06);\n outline: solid 1px var(--border-color);\n }\n`;\n\nexport default [styles];\n"]}
|
@@ -86,9 +86,9 @@ export const styles = css `
|
|
86
86
|
|
87
87
|
.nile-chip {
|
88
88
|
padding: 5px 10px;
|
89
|
-
background-color:
|
89
|
+
background-color: var(--nile-colors-white-base);
|
90
90
|
border-radius: 0.25rem;
|
91
|
-
border: solid 1px
|
91
|
+
border: solid 1px var(--nile-colors-neutral-500);
|
92
92
|
display: flex;
|
93
93
|
flex-wrap: wrap;
|
94
94
|
width: 100%;
|
@@ -119,13 +119,13 @@ export const styles = css `
|
|
119
119
|
}
|
120
120
|
|
121
121
|
.nile-chip:hover:not(.nile-chip--disabled) {
|
122
|
-
background-color:
|
122
|
+
background-color: var(--nile-colors-white-base);
|
123
123
|
box-shadow: 0 0 0 1px hsl(198.6 88.7% 48.4% / 40%);
|
124
124
|
}
|
125
125
|
|
126
126
|
.nile-chip.nile-chip--focused:not(.nile-chip--disabled) {
|
127
|
-
background-color:
|
128
|
-
border-color:
|
127
|
+
background-color: var(--nile-colors-white-base);
|
128
|
+
border-color: var(--nile-colors-primary-600);
|
129
129
|
box-shadow: 0 0 0 1px hsl(198.6 88.7% 48.4% / 40%);
|
130
130
|
}
|
131
131
|
|
@@ -137,15 +137,15 @@ export const styles = css `
|
|
137
137
|
}
|
138
138
|
|
139
139
|
.nile-chip.nile-chip--warning {
|
140
|
-
border-color:
|
140
|
+
border-color: var(--nile-colors-yellow-500);
|
141
141
|
}
|
142
142
|
|
143
143
|
.nile-chip.nile-chip--error {
|
144
|
-
border-color:
|
144
|
+
border-color: var(--nile-colors-red-500);
|
145
145
|
}
|
146
146
|
|
147
147
|
.nile-chip.nile-chip--success {
|
148
|
-
border-color:
|
148
|
+
border-color: var(--nile-colors-green-500);
|
149
149
|
}
|
150
150
|
|
151
151
|
.nile-chip__auto-complete {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-chip.css.js","sourceRoot":"","sources":["../../../src/nile-chip/nile-chip.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkJxB,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 * Chip CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n\n .form-control .form-control__label {\n display: none;\n }\n\n .form-control .form-control__help-text {\n display: none;\n }\n\n /* Label */\n .form-control--has-label .form-control__label {\n display: inline-block;\n color: inherit;\n margin-bottom: 12px;\n color: var(--nile-colors-dark-900);\n font-family: var(--nile-font-family-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 14px;\n letter-spacing: 0.2px;\n }\n\n .form-control--has-label.form-control--medium .form-control__label {\n font-size: 14px;\n }\n\n :host([required]) .form-control--has-label .form-control__label::after {\n content: '*';\n margin-inline-start: -2px;\n color: undefined;\n }\n\n /* Help text */\n .form-control--has-help-text .form-control__help-text {\n display: block;\n color: hsl(240 3.8% 46.1%);\n margin-top: 0.125rem;\n }\n\n .form-control--has-help-text.form-control--small .form-control__help-text {\n font-size: 0.75rem;\n }\n\n .form-control--has-help-text.form-control--medium .form-control__help-text {\n font-size: 0.875rem;\n }\n\n .form-control--has-help-text.form-control--large .form-control__help-text {\n font-size: 1rem;\n }\n\n .form-control--has-help-text.form-control--radio-group\n .form-control__help-text {\n margin-top: 0.25rem;\n }\n\n :host {\n display: block;\n font-family: inherit;\n }\n\n .nile-chip {\n padding: 5px 10px;\n background-color:
|
1
|
+
{"version":3,"file":"nile-chip.css.js","sourceRoot":"","sources":["../../../src/nile-chip/nile-chip.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkJxB,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 * Chip CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n\n .form-control .form-control__label {\n display: none;\n }\n\n .form-control .form-control__help-text {\n display: none;\n }\n\n /* Label */\n .form-control--has-label .form-control__label {\n display: inline-block;\n color: inherit;\n margin-bottom: 12px;\n color: var(--nile-colors-dark-900);\n font-family: var(--nile-font-family-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 14px;\n letter-spacing: 0.2px;\n }\n\n .form-control--has-label.form-control--medium .form-control__label {\n font-size: 14px;\n }\n\n :host([required]) .form-control--has-label .form-control__label::after {\n content: '*';\n margin-inline-start: -2px;\n color: undefined;\n }\n\n /* Help text */\n .form-control--has-help-text .form-control__help-text {\n display: block;\n color: hsl(240 3.8% 46.1%);\n margin-top: 0.125rem;\n }\n\n .form-control--has-help-text.form-control--small .form-control__help-text {\n font-size: 0.75rem;\n }\n\n .form-control--has-help-text.form-control--medium .form-control__help-text {\n font-size: 0.875rem;\n }\n\n .form-control--has-help-text.form-control--large .form-control__help-text {\n font-size: 1rem;\n }\n\n .form-control--has-help-text.form-control--radio-group\n .form-control__help-text {\n margin-top: 0.25rem;\n }\n\n :host {\n display: block;\n font-family: inherit;\n }\n\n .nile-chip {\n padding: 5px 10px;\n background-color: var(--nile-colors-white-base);\n border-radius: 0.25rem;\n border: solid 1px var(--nile-colors-neutral-500);\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n overflow-x: hidden;\n }\n\n .nile-chip--no-wrap {\n flex-wrap: nowrap;\n overflow-x: scroll;\n }\n\n .nile-chip::-webkit-scrollbar {\n height: 2px;\n }\n\n .nile-chip::-webkit-scrollbar-thumb {\n background: var(\n --nile-colors-primary-600\n );\n }\n\n .nile-chip--disabled {\n background-color: hsl(240 4.8% 95.9%);\n border-color: hsl(240 4.9% 83.9%);\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n }\n\n .nile-chip:hover:not(.nile-chip--disabled) {\n background-color: var(--nile-colors-white-base);\n box-shadow: 0 0 0 1px hsl(198.6 88.7% 48.4% / 40%);\n }\n\n .nile-chip.nile-chip--focused:not(.nile-chip--disabled) {\n background-color: var(--nile-colors-white-base);\n border-color: var(--nile-colors-primary-600);\n box-shadow: 0 0 0 1px hsl(198.6 88.7% 48.4% / 40%);\n }\n\n .nile-chip.nile-chip--disabled {\n background-color: hsl(240 4.8% 95.9%);\n border-color: hsl(240 4.9% 83.9%);\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .nile-chip.nile-chip--warning {\n border-color: var(--nile-colors-yellow-500);\n }\n\n .nile-chip.nile-chip--error {\n border-color: var(--nile-colors-red-500);\n }\n\n .nile-chip.nile-chip--success {\n border-color: var(--nile-colors-green-500);\n }\n\n .nile-chip__auto-complete {\n flex: 1;\n }\n .nile-chip__tags {\n margin: 0.05rem;\n }\n`;\n\nexport default [styles];\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-circular-progressbar.css.js","sourceRoot":"","sources":["../../../src/nile-circular-progressbar/nile-circular-progressbar.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BxB,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 * Progressbar CSS\n */\nexport const styles = css`\n :host{\n \n }\n .track {\n stroke-width: 2px;\n stroke: var(--nile-colors-yellow-400);\n opacity: 0.5;\n fill: none;\n }\n\n .progress {\n stroke-width: 2px;\n stroke:
|
1
|
+
{"version":3,"file":"nile-circular-progressbar.css.js","sourceRoot":"","sources":["../../../src/nile-circular-progressbar/nile-circular-progressbar.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BxB,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 * Progressbar CSS\n */\nexport const styles = css`\n :host{\n \n }\n .track {\n stroke-width: 2px;\n stroke: var(--nile-colors-yellow-400);\n opacity: 0.5;\n fill: none;\n }\n\n .progress {\n stroke-width: 2px;\n stroke: var(--nile-colors-yellow-500);\n stroke-linecap: round;\n fill: none;\n transform: rotate(270deg);\n transform-origin: center;\n }\n\n .circle__text {\n color: var(--nile-colors-dark-900);\n text-align: center;\n font-size: var(--nile-type-scale-1);\n font-style: normal;\n font-weight: var(--nile-font-weight-regular);\n line-height: var(--nile-type-scale-1);\n letter-spacing: 0.2px;\n text-transform: uppercase;\n }\n`;\n\nexport default [styles];\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-code-editor.css.js","sourceRoot":"","sources":["../../../src/nile-code-editor/nile-code-editor.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDxB,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 * CodeEditor CSS\n */\nexport const styles = css`\n *{\n box-sizing:border-box;\n }\n\n :host {\n display: block;\n }\n\n .code__editor__container {\n display: flex;\n padding: 5px;\n border-radius: 5px;\n border: 1px solid rgb(204, 204, 204);\n position: relative;\n }\n\n .no-scroller .cm-scroller{\n scrollbar-width: none;\n }\n\n .error {\n border-color: var(--nile-colors-red-500);\n }\n\n .noborder {\n border: none;\n }\n\n .cm-editor {\n flex: 1;\n min-width: 0;\n }\n\n .ͼ1.cm-focused {\n outline: none;\n }\n\n .expand__icon__container{\n display: none;\n position: absolute;\n border-radius:
|
1
|
+
{"version":3,"file":"nile-code-editor.css.js","sourceRoot":"","sources":["../../../src/nile-code-editor/nile-code-editor.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDxB,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 * CodeEditor CSS\n */\nexport const styles = css`\n *{\n box-sizing:border-box;\n }\n\n :host {\n display: block;\n }\n\n .code__editor__container {\n display: flex;\n padding: 5px;\n border-radius: 5px;\n border: 1px solid rgb(204, 204, 204);\n position: relative;\n }\n\n .no-scroller .cm-scroller{\n scrollbar-width: none;\n }\n\n .error {\n border-color: var(--nile-colors-red-500);\n }\n\n .noborder {\n border: none;\n }\n\n .cm-editor {\n flex: 1;\n min-width: 0;\n }\n\n .ͼ1.cm-focused {\n outline: none;\n }\n\n .expand__icon__container{\n display: none;\n position: absolute;\n border-radius: var(--nile-radius-base-standard);\n cursor: pointer;\n right: 0px;\n top: 5px;\n z-index: 1;\n padding: 5px;\n background-color: var(--nile-colors-white-base);\n }\n \n .code__editor__container:hover > .expand__icon__container{\n display: flex;\n }\n`;\n\nexport default [styles];\n"]}
|
@@ -29,7 +29,7 @@ export const styles = css `
|
|
29
29
|
box-sizing: border-box;
|
30
30
|
width: 100%;
|
31
31
|
padding: 9px;
|
32
|
-
border: 1px solid
|
32
|
+
border: 1px solid var(--nile-colors-neutral-500);
|
33
33
|
border-radius: 4px;
|
34
34
|
overflow: auto;
|
35
35
|
overflow-x: auto;
|
@@ -38,7 +38,7 @@ export const styles = css `
|
|
38
38
|
-ms-overflow-style: none;
|
39
39
|
cursor: text;
|
40
40
|
white-space: nowrap;
|
41
|
-
background-color:
|
41
|
+
background-color: var(--nile-colors-white-base);
|
42
42
|
height: 38px;
|
43
43
|
}
|
44
44
|
.content-editable-input:focus {
|
@@ -46,7 +46,7 @@ export const styles = css `
|
|
46
46
|
}
|
47
47
|
|
48
48
|
.error {
|
49
|
-
border-color:
|
49
|
+
border-color: var(--nile-colors-red-500);
|
50
50
|
}
|
51
51
|
|
52
52
|
.read-only {
|
@@ -57,8 +57,8 @@ export const styles = css `
|
|
57
57
|
|
58
58
|
.chips {
|
59
59
|
display: inline;
|
60
|
-
background:
|
61
|
-
color:
|
60
|
+
background: var(--nile-colors-neutral-400);
|
61
|
+
color: var(--nile-colors-dark-900);
|
62
62
|
border-radius: 4px;
|
63
63
|
padding: 6px;
|
64
64
|
height: 24px;
|
@@ -78,12 +78,12 @@ export const styles = css `
|
|
78
78
|
}
|
79
79
|
|
80
80
|
.chip-error {
|
81
|
-
background:
|
81
|
+
background: var(--nile-colors-red-400);
|
82
82
|
}
|
83
83
|
.nile-options-container {
|
84
84
|
box-sizing: border-box;
|
85
|
-
background-color:
|
86
|
-
border: 1px solid
|
85
|
+
background-color: var(--nile-colors-white-base);
|
86
|
+
border: 1px solid var(--nile-colors-neutral-500);
|
87
87
|
overflow: auto;
|
88
88
|
max-height: 150px;
|
89
89
|
}
|
@@ -95,7 +95,7 @@ export const styles = css `
|
|
95
95
|
}
|
96
96
|
|
97
97
|
.asterik {
|
98
|
-
color:
|
98
|
+
color: var(--nile-colors-red-500);
|
99
99
|
}
|
100
100
|
|
101
101
|
.no-border {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-content-editor.css.js","sourceRoot":"","sources":["../../../src/nile-content-editor/nile-content-editor.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FxB,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 * AttributeExpression CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n font-size: 14px;\n overflow: hidden;\n }\n\n .content-editable-wrapper {\n position: relative;\n width: 100%;\n box-sizing: border-box;\n }\n\n .dropdown-position {\n position: relative;\n bottom: 1px;\n }\n .content-editable-input {\n box-sizing: border-box;\n width: 100%;\n padding: 9px;\n border: 1px solid
|
1
|
+
{"version":3,"file":"nile-content-editor.css.js","sourceRoot":"","sources":["../../../src/nile-content-editor/nile-content-editor.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FxB,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 * AttributeExpression CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n font-size: 14px;\n overflow: hidden;\n }\n\n .content-editable-wrapper {\n position: relative;\n width: 100%;\n box-sizing: border-box;\n }\n\n .dropdown-position {\n position: relative;\n bottom: 1px;\n }\n .content-editable-input {\n box-sizing: border-box;\n width: 100%;\n padding: 9px;\n border: 1px solid var(--nile-colors-neutral-500);\n border-radius: 4px;\n overflow: auto;\n overflow-x: auto;\n overflow-anchor: none;\n scrollbar-width: none;\n -ms-overflow-style: none;\n cursor: text;\n white-space: nowrap;\n background-color: var(--nile-colors-white-base);\n height: 38px;\n }\n .content-editable-input:focus {\n outline: none;\n }\n\n .error {\n border-color: var(--nile-colors-red-500);\n }\n\n .read-only {\n background-color: hsl(240 4.8% 95.9%);\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .chips {\n display: inline;\n background: var(--nile-colors-neutral-400);\n color: var(--nile-colors-dark-900);\n border-radius: 4px;\n padding: 6px;\n height: 24px;\n line-height: 10px;\n margin-left: 3px;\n letter-spacing: 0.2px;\n }\n\n .text-area {\n height: 120px;\n overflow: scroll;\n line-height: 26px;\n }\n\n .text-area .chips {\n padding: 4px 8px;\n }\n\n .chip-error {\n background: var(--nile-colors-red-400);\n }\n .nile-options-container {\n box-sizing: border-box;\n background-color: var(--nile-colors-white-base);\n border: 1px solid var(--nile-colors-neutral-500);\n overflow: auto;\n max-height: 150px;\n }\n\n label {\n display: inline-block;\n margin-bottom: 6px;\n font-family: 'colfax-medium';\n }\n\n .asterik {\n color: var(--nile-colors-red-500);\n }\n\n .no-border {\n border: none;\n }\n`;\n\nexport default [styles];\n"]}
|
@@ -14,7 +14,7 @@ export const styles = css `
|
|
14
14
|
--header-spacing: 1.25rem;
|
15
15
|
--body-spacing: 1.25rem;
|
16
16
|
--footer-spacing: 1.25rem;
|
17
|
-
--nile-dialog-remove-icon-color:
|
17
|
+
--nile-dialog-remove-icon-color: var(--nile-colors-dark-900);
|
18
18
|
display: contents;
|
19
19
|
}
|
20
20
|
|
@@ -71,9 +71,9 @@ export const styles = css `
|
|
71
71
|
flex: 0 0 auto;
|
72
72
|
display: flex;
|
73
73
|
padding: 12px 20px;
|
74
|
-
background-color:
|
74
|
+
background-color: var(--nile-colors-neutral-100);
|
75
75
|
border-radius: 4px 4px 0 0;
|
76
|
-
border: 1px solid
|
76
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
77
77
|
}
|
78
78
|
|
79
79
|
.dialog__header__text {
|
@@ -83,7 +83,7 @@ export const styles = css `
|
|
83
83
|
gap: 5px;
|
84
84
|
justify-content: center;
|
85
85
|
margin: 0;
|
86
|
-
color:
|
86
|
+
color: var(--nile-colors-dark-900);
|
87
87
|
}
|
88
88
|
|
89
89
|
slot[name="label"] {
|
@@ -129,7 +129,7 @@ export const styles = css `
|
|
129
129
|
padding: 1.25rem;
|
130
130
|
overflow: auto;
|
131
131
|
-webkit-overflow-scrolling: touch;
|
132
|
-
border: 1px solid
|
132
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
133
133
|
}
|
134
134
|
|
135
135
|
.dialog__body-noheader {
|
@@ -140,9 +140,9 @@ export const styles = css `
|
|
140
140
|
flex: 0 0 auto;
|
141
141
|
text-align: right;
|
142
142
|
padding: 12px 24px;
|
143
|
-
background-color:
|
143
|
+
background-color: var(--nile-colors-neutral-100);
|
144
144
|
border-radius: 0 0 4px 4px;
|
145
|
-
border: 1px solid
|
145
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
146
146
|
}
|
147
147
|
|
148
148
|
.dialog__footer ::slotted(nile-button:not(:first-of-type)) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-dialog.css.js","sourceRoot":"","sources":["../../../src/nile-dialog/nile-dialog.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkKxB,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 * Modal CSS\n */\nexport const styles = css`\n :host {\n --width: 31rem;\n --header-spacing: 1.25rem;\n --body-spacing: 1.25rem;\n --footer-spacing: 1.25rem;\n --nile-dialog-remove-icon-color:
|
1
|
+
{"version":3,"file":"nile-dialog.css.js","sourceRoot":"","sources":["../../../src/nile-dialog/nile-dialog.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkKxB,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 * Modal CSS\n */\nexport const styles = css`\n :host {\n --width: 31rem;\n --header-spacing: 1.25rem;\n --body-spacing: 1.25rem;\n --footer-spacing: 1.25rem;\n --nile-dialog-remove-icon-color: var(--nile-colors-dark-900);\n display: contents;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n\n .dialog {\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 800;\n }\n\n .dialog__panel {\n display: flex;\n flex-direction: column;\n z-index: 2;\n width: var(--width);\n max-width: calc(100% - 2.25rem);\n max-height: calc(100% - 2.25rem);\n background-color: hsl(0, 0%, 100%);\n border-radius: 4px;\n box-shadow: 0 4px 16px rgb(0 0 0 / 24%);\n }\n\n .dialog__panel:focus {\n outline: none;\n }\n\n @media screen and (max-width: 420px) {\n .dialog__panel {\n max-height: 80vh;\n }\n }\n\n .dialog--open .dialog__panel {\n display: flex;\n opacity: 1;\n }\n\n .dialog__header {\n flex: 0 0 auto;\n display: flex;\n padding: 12px 20px;\n background-color: var(--nile-colors-neutral-100);\n border-radius: 4px 4px 0 0;\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .dialog__header__text {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: 5px;\n justify-content: center;\n margin: 0;\n color: var(--nile-colors-dark-900);\n }\n\n slot[name=\"label\"] {\n font-family: Colfax-regular;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px;\n letter-spacing: 0.2px;\n display:block;\n }\n\n slot[name=\"sublabel\"] {\n color:var(--nile-colors-dark-500);\n font-family: Colfax-regular;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 14px;\n letter-spacing: 0.2px;\n display:block;\n }\n\n .dialog__header-actions {\n flex-shrink: 0;\n display: flex;\n flex-wrap: wrap;\n justify-content: end;\n gap: 24px;\n }\n\n .dialog__header-actions nile-icon-button,\n .dialog__header-actions ::slotted(nile-icon-button) {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: 1rem;\n }\n\n .dialog__body {\n flex: 1 1 auto;\n display: block;\n padding: 1.25rem;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .dialog__body-noheader {\n border-radius: 4px 4px 0px 0px;\n }\n\n .dialog__footer {\n flex: 0 0 auto;\n text-align: right;\n padding: 12px 24px;\n background-color: var(--nile-colors-neutral-100);\n border-radius: 0 0 4px 4px;\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .dialog__footer ::slotted(nile-button:not(:first-of-type)) {\n margin-inline-start: 0.5rem;\n }\n\n .dialog:not(.dialog--has-footer) .dialog__footer {\n display: none;\n }\n\n .dialog__overlay {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: hsl(0 0% 0% / 43%);\n }\n .dialog__close {\n cursor: pointer;\n }\n\n @media (forced-colors: active) {\n .dialog__panel {\n border: solid 1px hsl(240, 5.9%, 11%);\n }\n }\n`;\n\nexport default [styles];\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-divider.css.js","sourceRoot":"","sources":["../../../src/nile-divider/nile-divider.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BxB,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 * Divider CSS\n */\nexport const styles = css`\n\t:host {\n\t\tdisplay: block;\n\t\theight: 100%;\n\t}\n\n\t.divider {\n\t\tbackground-color: var(--nile-colors-gray-light-mode-200
|
1
|
+
{"version":3,"file":"nile-divider.css.js","sourceRoot":"","sources":["../../../src/nile-divider/nile-divider.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BxB,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 * Divider CSS\n */\nexport const styles = css`\n\t:host {\n\t\tdisplay: block;\n\t\theight: 100%;\n\t}\n\n\t.divider {\n\t\tbackground-color: var(--nile-colors-gray-light-mode-200);;\n\t}\n\t\n\t.horizontal {\n\t\theight: 2px;\n\t\t/* width: 100%; */\n\t\tmargin: 8px 0;\n\t}\n\n\t.vertical {\n\t\theight: 100%;\n\t\twidth: 2px;\n\t\tmargin: 0 8px;\n\t\tdisplay: inline-block;\n\t\tvertical-align: middle;\n\t}\n\n\t.inset.horizontal {\n\t\tmargin-left: 72px;\n\t}\n`;\n\nexport default [styles];"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-drawer.css.js","sourceRoot":"","sources":["../../../src/nile-drawer/nile-drawer.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4KxB,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 * Drawer CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n --nile-drawer-remove-icon-color
|
1
|
+
{"version":3,"file":"nile-drawer.css.js","sourceRoot":"","sources":["../../../src/nile-drawer/nile-drawer.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4KxB,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 * Drawer CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n --nile-drawer-remove-icon-color:var(--nile-colors-dark-900);\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n\n :host {\n --size: 25rem;\n --header-spacing: 1.25rem;\n --body-spacing: 1.25rem;\n --footer-spacing: 1.25rem;\n\n display: contents;\n }\n\n .drawer {\n top: 0;\n inset-inline-start: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n overflow: hidden;\n }\n\n .drawer--contained {\n position: absolute;\n z-index: initial;\n }\n\n .drawer--fixed {\n position: fixed;\n z-index: 700;\n }\n\n .drawer__panel {\n position: absolute;\n display: flex;\n flex-direction: column;\n z-index: 2;\n max-width: 100%;\n max-height: 100%;\n background-color: hsl(0, 0%, 100%);\n box-shadow: 0 4px 16px hsl(240 3.8% 46.1% / 12%);\n overflow: auto;\n pointer-events: all;\n }\n\n .drawer__panel:focus {\n outline: none;\n }\n\n .drawer--top .drawer__panel {\n top: 0;\n inset-inline-end: auto;\n bottom: auto;\n inset-inline-start: 0;\n width: 100%;\n height: var(--size);\n }\n\n .drawer--end .drawer__panel {\n top: 0;\n inset-inline-end: 0;\n bottom: auto;\n inset-inline-start: auto;\n width: var(--size);\n height: 100%;\n }\n\n .drawer--bottom .drawer__panel {\n top: auto;\n inset-inline-end: auto;\n bottom: 0;\n inset-inline-start: 0;\n width: 100%;\n height: var(--size);\n }\n\n .drawer--start .drawer__panel {\n top: 0;\n inset-inline-end: auto;\n bottom: auto;\n inset-inline-start: 0;\n width: var(--size);\n height: 100%;\n }\n\n .drawer__header {\n display: flex;\n }\n\n .drawer__title {\n flex: 1 1 auto;\n font: inherit;\n font-size: 1.25rem;\n line-height: 1.4;\n padding: var(--header-spacing);\n margin: 0;\n }\n\n .drawer__header-actions {\n flex-shrink: 0;\n display: flex;\n flex-wrap: wrap;\n justify-content: end;\n gap: 0.5rem;\n padding: 0 var(--header-spacing);\n }\n\n .drawer__header-actions nile-icon-button,\n .drawer__header-actions ::slotted(nile-icon-button) {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: 1rem;\n }\n\n .drawer__body {\n flex: 1 1 auto;\n display: block;\n padding: var(--body-spacing);\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n }\n\n .drawer__footer {\n text-align: right;\n padding: var(--footer-spacing);\n }\n\n .drawer__footer ::slotted(nile-button:not(:last-of-type)) {\n margin-inline-end: 0.5rem;\n }\n\n .drawer:not(.drawer--has-footer) .drawer__footer {\n display: none;\n }\n\n .drawer__overlay {\n display: block;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: hsl(240 3.8% 46.1% / 33%);\n pointer-events: all;\n }\n\n .drawer--contained .drawer__overlay {\n display: none;\n }\n\n .drawer__close:hover {\n cursor:pointer;\n }\n\n @media (forced-colors: active) {\n .drawer__panel {\n border: solid 1px hsl(0, 0%, 100%);\n }\n }\n`;\n\nexport default [styles];\n"]}
|
@@ -107,14 +107,14 @@ export const styles = css `
|
|
107
107
|
border-radius: 50%;
|
108
108
|
display: grid;
|
109
109
|
place-items: center;
|
110
|
-
background:
|
110
|
+
background: var(--nile-colors-neutral-500);
|
111
111
|
position:absolute;
|
112
112
|
left: calc(50% - calc(var(--nile-es-icon-size) / 2));
|
113
113
|
top:calc(62.5% - calc(var(--nile-es-icon-size) / 2));
|
114
114
|
}
|
115
115
|
|
116
116
|
.empty-state__body--tonal {
|
117
|
-
background: linear-gradient(180deg,
|
117
|
+
background: linear-gradient(180deg, var(--nile-colors-neutral-100) 0%, var(--nile-colors-neutral-400) 100%);
|
118
118
|
width: 104px;
|
119
119
|
height: 104px;
|
120
120
|
border-radius: 50%;
|
@@ -134,7 +134,7 @@ export const styles = css `
|
|
134
134
|
background-color: white;
|
135
135
|
display: grid;
|
136
136
|
place-items: center;
|
137
|
-
border: 1px solid
|
137
|
+
border: 1px solid var(--nile-colors-neutral-400);
|
138
138
|
}
|
139
139
|
|
140
140
|
.empty__state__text-section {
|
@@ -157,7 +157,7 @@ export const styles = css `
|
|
157
157
|
font-weight: 400;
|
158
158
|
line-height: var(--nile-es-subtext-line-height);
|
159
159
|
text-align: center;
|
160
|
-
color
|
160
|
+
color:var(--nile-colors-dark-500);
|
161
161
|
font-style: normal;
|
162
162
|
}
|
163
163
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-empty-state.css.js","sourceRoot":"","sources":["../../../src/nile-empty-state/nile-empty-state.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6JxB,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 * EmptyState CSS\n */\nexport const styles = css`\n :host {\n display:inline-flex;\n min-width:var(--nile-empty-state-max-width);\n max-width:var(--nile-empty-state-min-width);\n width:100%;\n }\n\n .empty-state--sm {\n --nile-es-text-size:16px;\n --nile-es-text-line-height:24px;\n --nile-es-subtext-size:14px;\n --nile-es-subtext-line-height:20px;\n \n --nile-es-icon-size:48px;\n --nile-es-flat-option-border-radius:5px;\n --nile-es-img-height:118px;\n --nile-es-img-width:152px;\n\n --nile-es-gap:var(--nile-spacing-spacing-3xl);\n --nile-es-body-gap:var(--nile-spacing-spacing-xl);\n --nile-es-text-gap:0px;\n }\n\n .empty-state--md {\n --nile-es-text-size:18px;\n --nile-es-text-line-height:28px;\n --nile-es-subtext-size:14px;\n --nile-es-subtext-line-height:20px;\n\n --nile-es-icon-size:48px;\n --nile-es-flat-option-border-radius:5px;\n --nile-es-img-height:128px;\n --nile-es-img-width:172px;\n\n --nile-es-gap:var(--nile-spacing-spacing-4xl);\n --nile-es-body-gap:var(--nile-spacing-spacing-2xl);\n --nile-es-text-gap:var(--nile-spacing-spacing-md);\n }\n\n .empty-state--lg {\n --nile-es-text-size:20px;\n --nile-es-text-line-height:30px;\n --nile-es-subtext-size:16px;\n --nile-es-subtext-line-height:24px;\n\n --nile-es-icon-size:56px;\n --nile-es-flat-option-border-radius:10px;\n --nile-es-img-height:160px;\n --nile-es-img-width:220px;\n\n --nile-es-gap:var(--nile-spacing-spacing-4xl);\n --nile-es-body-gap:var(--nile-spacing-spacing-3xl);\n --nile-es-text-gap:var(--nile-spacing-spacing-md)\n }\n\n .empty-state {\n min-width:300px;\n max-width:512px;\n width:100%;\n height:max-content;\n display:flex;\n flex-direction:column;\n row-gap:var(--nile-es-gap);\n }\n\n .empty-state__body {\n display:flex;\n flex-direction:column;\n justify-content:space-between;\n align-items:center;\n row-gap:var(--nile-es-body-gap)\n }\n\n .empty-state__body--content {\n position:relative;\n }\n .empty-state__image { \n background:var(--nile-empty-state-image);\n background-size: var(--nile-es-img-width) var(--nile-es-img-height);\n height: var(--nile-es-img-height);\n width: var(--nile-es-img-width);\n max-width: 100%;\n }\n\n .empty-state__image--grayscale {\n -webkit-filter: grayscale(100%);\n -moz-filter: grayscale(100%);\n -o-filter: grayscale(100%);\n -ms-filter: grayscale(100%);\n filter: grayscale(100%);\n }\n\n .empty-state__img__icon {\n height: var(--nile-es-icon-size);\n aspect-ratio:1 / 1;\n border-radius: 50%;\n display: grid;\n place-items: center;\n background:
|
1
|
+
{"version":3,"file":"nile-empty-state.css.js","sourceRoot":"","sources":["../../../src/nile-empty-state/nile-empty-state.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6JxB,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 * EmptyState CSS\n */\nexport const styles = css`\n :host {\n display:inline-flex;\n min-width:var(--nile-empty-state-max-width);\n max-width:var(--nile-empty-state-min-width);\n width:100%;\n }\n\n .empty-state--sm {\n --nile-es-text-size:16px;\n --nile-es-text-line-height:24px;\n --nile-es-subtext-size:14px;\n --nile-es-subtext-line-height:20px;\n \n --nile-es-icon-size:48px;\n --nile-es-flat-option-border-radius:5px;\n --nile-es-img-height:118px;\n --nile-es-img-width:152px;\n\n --nile-es-gap:var(--nile-spacing-spacing-3xl);\n --nile-es-body-gap:var(--nile-spacing-spacing-xl);\n --nile-es-text-gap:0px;\n }\n\n .empty-state--md {\n --nile-es-text-size:18px;\n --nile-es-text-line-height:28px;\n --nile-es-subtext-size:14px;\n --nile-es-subtext-line-height:20px;\n\n --nile-es-icon-size:48px;\n --nile-es-flat-option-border-radius:5px;\n --nile-es-img-height:128px;\n --nile-es-img-width:172px;\n\n --nile-es-gap:var(--nile-spacing-spacing-4xl);\n --nile-es-body-gap:var(--nile-spacing-spacing-2xl);\n --nile-es-text-gap:var(--nile-spacing-spacing-md);\n }\n\n .empty-state--lg {\n --nile-es-text-size:20px;\n --nile-es-text-line-height:30px;\n --nile-es-subtext-size:16px;\n --nile-es-subtext-line-height:24px;\n\n --nile-es-icon-size:56px;\n --nile-es-flat-option-border-radius:10px;\n --nile-es-img-height:160px;\n --nile-es-img-width:220px;\n\n --nile-es-gap:var(--nile-spacing-spacing-4xl);\n --nile-es-body-gap:var(--nile-spacing-spacing-3xl);\n --nile-es-text-gap:var(--nile-spacing-spacing-md)\n }\n\n .empty-state {\n min-width:300px;\n max-width:512px;\n width:100%;\n height:max-content;\n display:flex;\n flex-direction:column;\n row-gap:var(--nile-es-gap);\n }\n\n .empty-state__body {\n display:flex;\n flex-direction:column;\n justify-content:space-between;\n align-items:center;\n row-gap:var(--nile-es-body-gap)\n }\n\n .empty-state__body--content {\n position:relative;\n }\n .empty-state__image { \n background:var(--nile-empty-state-image);\n background-size: var(--nile-es-img-width) var(--nile-es-img-height);\n height: var(--nile-es-img-height);\n width: var(--nile-es-img-width);\n max-width: 100%;\n }\n\n .empty-state__image--grayscale {\n -webkit-filter: grayscale(100%);\n -moz-filter: grayscale(100%);\n -o-filter: grayscale(100%);\n -ms-filter: grayscale(100%);\n filter: grayscale(100%);\n }\n\n .empty-state__img__icon {\n height: var(--nile-es-icon-size);\n aspect-ratio:1 / 1;\n border-radius: 50%;\n display: grid;\n place-items: center;\n background: var(--nile-colors-neutral-500);\n position:absolute;\n left: calc(50% - calc(var(--nile-es-icon-size) / 2));\n top:calc(62.5% - calc(var(--nile-es-icon-size) / 2));\n }\n\n .empty-state__body--tonal {\n background: linear-gradient(180deg, var(--nile-colors-neutral-100) 0%, var(--nile-colors-neutral-400) 100%);\n width: 104px;\n height: 104px;\n border-radius: 50%;\n display:flex;\n justify-content:center;\n align-items:center;\n }\n\n .empty-state__body--flat {\n }\n\n .nile-flat-type-icon {\n height:var(--nile-es-icon-size);\n aspect-ratio:1 / 1;\n border-radius: var(--nile-es-flat-option-border-radius);\n\n background-color: white;\n display: grid;\n place-items: center;\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .empty__state__text-section {\n display:flex;\n flex-direction:column;\n gap:var(--nile-es-text-gap);\n max-width:80%;\n }\n\n .empty-state__text {\n font-size: var(--nile-es-text-size);\n font-weight: 600;\n line-height: var(--nile-es-text-line-height);\n text-align: center;\n font-style: normal;\n }\n\n .empty-state__subtext {\n font-size: var(--nile-es-subtext-size);\n font-weight: 400;\n line-height: var(--nile-es-subtext-line-height);\n text-align: center;\n color:var(--nile-colors-dark-500);\n font-style: normal;\n }\n\n .empty-state-actions {\n display:flex;\n justify-content:center;\n }\n`;\n\nexport default [styles];"]}
|
@@ -43,7 +43,7 @@ let NileErrorMessage = class NileErrorMessage extends LitElement {
|
|
43
43
|
size="14"
|
44
44
|
class="nile-error-message__icon"
|
45
45
|
part="icon"
|
46
|
-
color="
|
46
|
+
color="var(--nile-colors-red-700)"
|
47
47
|
></nile-icon>
|
48
48
|
<span class="nile-error-message__error">${this.errorMessage}</span>
|
49
49
|
|
@@ -58,7 +58,7 @@ let NileErrorMessage = class NileErrorMessage extends LitElement {
|
|
58
58
|
class="nile-error-message__more-button"
|
59
59
|
@click=${this.toggleExpanded}
|
60
60
|
>${this.isExpanded ? 'View Less' : 'View More'}
|
61
|
-
<nile-icon color="
|
61
|
+
<nile-icon color="var(--nile-colors-primary-600)" part="icon" size="14" name="${iconName}"></nile-icon>
|
62
62
|
</span
|
63
63
|
> ` : ``}
|
64
64
|
</div>
|