@aquera/nile-elements 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +253 -197
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.css.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.esm.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.esm.js +2 -2
- package/dist/nile-file-preview/nile-file-preview.esm.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -1
- package/dist/nile-file-preview/nile-file-preview.template.esm.js +55 -25
- package/dist/nile-file-preview/utils/index.cjs.js +1 -1
- package/dist/nile-file-preview/utils/index.esm.js +1 -1
- package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js +1 -1
- package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js.map +1 -1
- package/dist/nile-file-preview/utils/nile-file-preview.util.esm.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -1
- package/dist/nile-file-upload/nile-file-upload.css.esm.js +15 -5
- package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js +2 -2
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -1
- package/dist/nile-file-upload/nile-file-upload.template.esm.js +36 -32
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js +1 -1
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -1
- package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -1
- package/dist/nile-file-upload/types/index.cjs.js +1 -1
- package/dist/nile-file-upload/types/index.esm.js +1 -1
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +1 -1
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -1
- package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -1
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js +4 -2
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -1
- package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -1
- package/dist/nile-grid/index.cjs.js +1 -1
- package/dist/nile-grid/index.esm.js +1 -1
- package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js +1 -1
- package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +1 -1
- package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +2 -0
- package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.esm.js +1 -1
- package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js +1 -1
- package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.esm.js +1 -1
- package/dist/nile-grid/nile-grid-head/nile-grid-head.css.cjs.js +1 -1
- package/dist/nile-grid/nile-grid-head/nile-grid-head.css.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid-head/nile-grid-head.css.esm.js +8 -2
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js +1 -1
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.css.cjs.js +1 -1
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.css.esm.js +2 -1
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.esm.js +3 -3
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +1 -1
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.esm.js +1 -1
- package/dist/nile-grid/nile-grid.cjs.js +1 -1
- package/dist/nile-grid/nile-grid.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid.css.cjs.js +1 -1
- package/dist/nile-grid/nile-grid.css.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid.css.esm.js +1 -0
- package/dist/nile-grid/nile-grid.esm.js +5 -3
- package/dist/nile-grid/nile-grid.layout.cjs.js +1 -1
- package/dist/nile-grid/nile-grid.layout.esm.js +1 -1
- package/dist/nile-grid/nile-grid.resize.cjs.js +1 -1
- package/dist/nile-grid/nile-grid.resize.esm.js +1 -1
- package/dist/nile-grid/nile-grid.utils.cjs.js +1 -1
- package/dist/nile-grid/nile-grid.utils.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid.utils.esm.js +1 -1
- package/dist/nile-grid/nile-grid.width.cjs.js +1 -1
- package/dist/nile-grid/nile-grid.width.cjs.js.map +1 -1
- package/dist/nile-grid/nile-grid.width.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.esm.js +1 -1
- package/dist/nile-popover/index.cjs.js +1 -1
- package/dist/nile-popover/index.esm.js +1 -1
- package/dist/nile-popover/nile-popover.cjs.js +4 -4
- package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
- package/dist/nile-popover/nile-popover.esm.js +11 -6
- package/dist/src/nile-accordion/nile-accordian.test.js +101 -99
- package/dist/src/nile-accordion/nile-accordian.test.js.map +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.css.js +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.css.js.map +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.js +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.test.js +104 -112
- package/dist/src/nile-auto-complete/nile-auto-complete.test.js.map +1 -1
- package/dist/src/nile-avatar/nile-avatar.test.d.ts +0 -1
- package/dist/src/nile-avatar/nile-avatar.test.js +103 -87
- package/dist/src/nile-avatar/nile-avatar.test.js.map +1 -1
- package/dist/src/nile-badge/nile-badge.test.js +554 -35
- package/dist/src/nile-badge/nile-badge.test.js.map +1 -1
- package/dist/src/nile-breadcrumb/nile-breadcrumb.test.d.ts +2 -0
- package/dist/src/nile-breadcrumb/nile-breadcrumb.test.js +106 -0
- package/dist/src/nile-breadcrumb/nile-breadcrumb.test.js.map +1 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.d.ts +1 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.js +108 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.js.map +1 -0
- package/dist/src/nile-button/nile-button.test.js +499 -39
- package/dist/src/nile-button/nile-button.test.js.map +1 -1
- package/dist/src/nile-button-filter/nile-button-filter.test.d.ts +1 -0
- package/dist/src/nile-button-filter/nile-button-filter.test.js +108 -0
- package/dist/src/nile-button-filter/nile-button-filter.test.js.map +1 -0
- package/dist/src/nile-button-toggle/nile-button-toggle.test.d.ts +1 -0
- package/dist/src/nile-button-toggle/nile-button-toggle.test.js +108 -0
- package/dist/src/nile-button-toggle/nile-button-toggle.test.js.map +1 -0
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.d.ts +1 -1
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js +105 -104
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.test.d.ts +0 -6
- package/dist/src/nile-calendar/nile-calendar.test.js +103 -318
- package/dist/src/nile-calendar/nile-calendar.test.js.map +1 -1
- package/dist/src/nile-card/nile-card.test.js +102 -66
- package/dist/src/nile-card/nile-card.test.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.test.js +547 -108
- package/dist/src/nile-checkbox/nile-checkbox.test.js.map +1 -1
- package/dist/src/nile-chip/nile-chip.test.d.ts +0 -2
- package/dist/src/nile-chip/nile-chip.test.js +101 -102
- package/dist/src/nile-chip/nile-chip.test.js.map +1 -1
- package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.d.ts +1 -0
- package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.js +108 -0
- package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.js.map +1 -0
- package/dist/src/nile-date-picker/nile-date-picker.test.d.ts +1 -0
- package/dist/src/nile-date-picker/nile-date-picker.test.js +108 -0
- package/dist/src/nile-date-picker/nile-date-picker.test.js.map +1 -0
- package/dist/src/nile-dialog/nile-dialog.test.d.ts +0 -1
- package/dist/src/nile-dialog/nile-dialog.test.js +104 -126
- package/dist/src/nile-dialog/nile-dialog.test.js.map +1 -1
- package/dist/src/nile-divider/nile-divider.test.d.ts +1 -0
- package/dist/src/nile-divider/nile-divider.test.js +560 -0
- package/dist/src/nile-divider/nile-divider.test.js.map +1 -0
- package/dist/src/nile-drawer/nile-drawer.test.js +106 -86
- package/dist/src/nile-drawer/nile-drawer.test.js.map +1 -1
- package/dist/src/nile-dropdown/nile-dropdown.test.js +104 -148
- package/dist/src/nile-dropdown/nile-dropdown.test.js.map +1 -1
- package/dist/src/nile-empty-state/nile-empty-state.test.js +107 -59
- package/dist/src/nile-empty-state/nile-empty-state.test.js.map +1 -1
- package/dist/src/nile-error-message/nile-error-message.test.js +105 -55
- package/dist/src/nile-error-message/nile-error-message.test.js.map +1 -1
- package/dist/src/nile-error-notification/nile-error-notification.test.d.ts +1 -0
- package/dist/src/nile-error-notification/nile-error-notification.test.js +108 -0
- package/dist/src/nile-error-notification/nile-error-notification.test.js.map +1 -0
- package/dist/src/nile-file-preview/nile-file-preview.css.js +2 -2
- package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.d.ts +1 -4
- package/dist/src/nile-file-preview/nile-file-preview.js +21 -47
- package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +6 -6
- package/dist/src/nile-file-preview/nile-file-preview.template.js +53 -23
- package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +0 -6
- package/dist/src/nile-file-preview/nile-file-preview.test.js +106 -28
- package/dist/src/nile-file-preview/nile-file-preview.test.js.map +1 -1
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +3 -2
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +32 -7
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.css.js +15 -5
- package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.d.ts +4 -1
- package/dist/src/nile-file-upload/nile-file-upload.js +13 -1
- package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.template.js +19 -15
- package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +0 -6
- package/dist/src/nile-file-upload/nile-file-upload.test.js +106 -28
- package/dist/src/nile-file-upload/nile-file-upload.test.js.map +1 -1
- package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +17 -3
- package/dist/src/nile-file-upload/types/file-upload.enums.js +17 -1
- package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -1
- package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +2 -0
- package/dist/src/nile-file-upload/utils/drag-drop.util.js +14 -8
- package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -1
- package/dist/src/nile-file-upload/utils/file-validation.util.js +89 -10
- package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js +102 -77
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +1 -1
- package/dist/src/nile-form-error-message/nile-form-error-message.test.d.ts +1 -0
- package/dist/src/nile-form-error-message/nile-form-error-message.test.js +108 -0
- package/dist/src/nile-form-error-message/nile-form-error-message.test.js.map +1 -0
- package/dist/src/nile-form-group/nile-form-group.test.js +104 -51
- package/dist/src/nile-form-group/nile-form-group.test.js.map +1 -1
- package/dist/src/nile-form-help-text/nile-form-help-text.test.js +104 -84
- package/dist/src/nile-form-help-text/nile-form-help-text.test.js.map +1 -1
- package/dist/src/nile-format-date/nile-format-date.test.d.ts +1 -0
- package/dist/src/nile-format-date/nile-format-date.test.js +108 -0
- package/dist/src/nile-format-date/nile-format-date.test.js.map +1 -0
- package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.js +2 -0
- package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.js.map +1 -1
- package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.js +1 -1
- package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.js.map +1 -1
- package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.d.ts +1 -1
- package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.js +2 -2
- package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.js.map +1 -1
- package/dist/src/nile-grid/nile-grid-head/nile-grid-head.css.js +6 -0
- package/dist/src/nile-grid/nile-grid-head/nile-grid-head.css.js.map +1 -1
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.css.js +2 -1
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.css.js.map +1 -1
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.js +6 -5
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.js.map +1 -1
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.d.ts +15 -1
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.js +26 -2
- package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.js.map +1 -1
- package/dist/src/nile-grid/nile-grid.css.js +1 -0
- package/dist/src/nile-grid/nile-grid.css.js.map +1 -1
- package/dist/src/nile-grid/nile-grid.d.ts +31 -3
- package/dist/src/nile-grid/nile-grid.js +107 -30
- package/dist/src/nile-grid/nile-grid.js.map +1 -1
- package/dist/src/nile-grid/nile-grid.layout.d.ts +2 -9
- package/dist/src/nile-grid/nile-grid.layout.js +120 -106
- package/dist/src/nile-grid/nile-grid.layout.js.map +1 -1
- package/dist/src/nile-grid/nile-grid.resize.d.ts +1 -0
- package/dist/src/nile-grid/nile-grid.resize.js +7 -3
- package/dist/src/nile-grid/nile-grid.resize.js.map +1 -1
- package/dist/src/nile-grid/nile-grid.utils.d.ts +7 -0
- package/dist/src/nile-grid/nile-grid.utils.js +37 -2
- package/dist/src/nile-grid/nile-grid.utils.js.map +1 -1
- package/dist/src/nile-grid/nile-grid.width.d.ts +2 -1
- package/dist/src/nile-grid/nile-grid.width.js +38 -8
- package/dist/src/nile-grid/nile-grid.width.js.map +1 -1
- package/dist/src/nile-grid/types/nile-grid.types.d.ts +5 -0
- package/dist/src/nile-grid/types/nile-grid.types.js.map +1 -1
- package/dist/src/nile-heading/nile-heading.test.d.ts +1 -0
- package/dist/src/nile-heading/nile-heading.test.js +108 -0
- package/dist/src/nile-heading/nile-heading.test.js.map +1 -0
- package/dist/src/nile-hero/nile-hero.test.js +101 -38
- package/dist/src/nile-hero/nile-hero.test.js.map +1 -1
- package/dist/src/nile-icon/nile-icon.test.js +103 -40
- package/dist/src/nile-icon/nile-icon.test.js.map +1 -1
- package/dist/src/nile-icon-button/nile-icon-button.test.d.ts +1 -0
- package/dist/src/nile-icon-button/nile-icon-button.test.js +568 -0
- package/dist/src/nile-icon-button/nile-icon-button.test.js.map +1 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.test.d.ts +1 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.test.js +108 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.test.js.map +1 -0
- package/dist/src/nile-input/nile-input.js +1 -1
- package/dist/src/nile-input/nile-input.js.map +1 -1
- package/dist/src/nile-input/nile-input.test.js +109 -139
- package/dist/src/nile-input/nile-input.test.js.map +1 -1
- package/dist/src/nile-link/nile-link.test.js +103 -67
- package/dist/src/nile-link/nile-link.test.js.map +1 -1
- package/dist/src/nile-list/nile-list.test.d.ts +1 -0
- package/dist/src/nile-list/nile-list.test.js +108 -0
- package/dist/src/nile-list/nile-list.test.js.map +1 -0
- package/dist/src/nile-list-item/nile-list-item.test.d.ts +1 -0
- package/dist/src/nile-list-item/nile-list-item.test.js +108 -0
- package/dist/src/nile-list-item/nile-list-item.test.js.map +1 -0
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.d.ts +2 -0
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.js +109 -0
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.js.map +1 -0
- package/dist/src/nile-loader/nile-loader.test.js +107 -40
- package/dist/src/nile-loader/nile-loader.test.js.map +1 -1
- package/dist/src/nile-menu/nile-menu.test.d.ts +1 -0
- package/dist/src/nile-menu/nile-menu.test.js +113 -0
- package/dist/src/nile-menu/nile-menu.test.js.map +1 -0
- package/dist/src/nile-menu-item/nile-menu-item.test.d.ts +1 -0
- package/dist/src/nile-menu-item/nile-menu-item.test.js +113 -0
- package/dist/src/nile-menu-item/nile-menu-item.test.js.map +1 -0
- package/dist/src/nile-option/nile-option.test.d.ts +1 -0
- package/dist/src/nile-option/nile-option.test.js +108 -0
- package/dist/src/nile-option/nile-option.test.js.map +1 -0
- package/dist/src/nile-option-group/nile-option-group.test.d.ts +1 -0
- package/dist/src/nile-option-group/nile-option-group.test.js +108 -0
- package/dist/src/nile-option-group/nile-option-group.test.js.map +1 -0
- package/dist/src/nile-page-header/nile-page-header.test.d.ts +1 -0
- package/dist/src/nile-page-header/nile-page-header.test.js +108 -0
- package/dist/src/nile-page-header/nile-page-header.test.js.map +1 -0
- package/dist/src/nile-pagination/nile-pagination.test.d.ts +1 -0
- package/dist/src/nile-pagination/nile-pagination.test.js +108 -0
- package/dist/src/nile-pagination/nile-pagination.test.js.map +1 -0
- package/dist/src/nile-popover/nile-popover.test.js +103 -68
- package/dist/src/nile-popover/nile-popover.test.js.map +1 -1
- package/dist/src/nile-popup/nile-popup.test.js +104 -65
- package/dist/src/nile-popup/nile-popup.test.js.map +1 -1
- package/dist/src/nile-progress-bar/nile-progress-bar.test.js +104 -44
- package/dist/src/nile-progress-bar/nile-progress-bar.test.js.map +1 -1
- package/dist/src/nile-radio/nile-radio.test.js +103 -66
- package/dist/src/nile-radio/nile-radio.test.js.map +1 -1
- package/dist/src/nile-radio-group/nile-radio-group.test.d.ts +0 -1
- package/dist/src/nile-radio-group/nile-radio-group.test.js +105 -171
- package/dist/src/nile-radio-group/nile-radio-group.test.js.map +1 -1
- package/dist/src/nile-section-message/nile-section-message.test.d.ts +1 -0
- package/dist/src/nile-section-message/nile-section-message.test.js +108 -0
- package/dist/src/nile-section-message/nile-section-message.test.js.map +1 -0
- package/dist/src/nile-select/nile-select.test.d.ts +0 -5
- package/dist/src/nile-select/nile-select.test.js +105 -244
- package/dist/src/nile-select/nile-select.test.js.map +1 -1
- package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.d.ts +1 -0
- package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.js +108 -0
- package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.js.map +1 -0
- package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js +104 -50
- package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js.map +1 -1
- package/dist/src/nile-slider/nile-slider.test.d.ts +1 -0
- package/dist/src/nile-slider/nile-slider.test.js +108 -0
- package/dist/src/nile-slider/nile-slider.test.js.map +1 -0
- package/dist/src/nile-spinner/nile-spinner.test.d.ts +1 -0
- package/dist/src/nile-spinner/nile-spinner.test.js +569 -0
- package/dist/src/nile-spinner/nile-spinner.test.js.map +1 -0
- package/dist/src/nile-split-panel/nile-split-panel.test.d.ts +1 -0
- package/dist/src/nile-split-panel/nile-split-panel.test.js +108 -0
- package/dist/src/nile-split-panel/nile-split-panel.test.js.map +1 -0
- package/dist/src/nile-stepper/nile-stepper.test.d.ts +2 -0
- package/dist/src/nile-stepper/nile-stepper.test.js +109 -0
- package/dist/src/nile-stepper/nile-stepper.test.js.map +1 -0
- package/dist/src/nile-stepper-item/nile-stepper-item.test.d.ts +1 -0
- package/dist/src/nile-stepper-item/nile-stepper-item.test.js +108 -0
- package/dist/src/nile-stepper-item/nile-stepper-item.test.js.map +1 -0
- package/dist/src/nile-tab/nile-tab.test.d.ts +1 -0
- package/dist/src/nile-tab/nile-tab.test.js +108 -0
- package/dist/src/nile-tab/nile-tab.test.js.map +1 -0
- package/dist/src/nile-tab-group/nile-tab-group.test.js +105 -172
- package/dist/src/nile-tab-group/nile-tab-group.test.js.map +1 -1
- package/dist/src/nile-tab-panel/nile-tab-panel.test.d.ts +1 -0
- package/dist/src/nile-tab-panel/nile-tab-panel.test.js +108 -0
- package/dist/src/nile-tab-panel/nile-tab-panel.test.js.map +1 -0
- package/dist/src/nile-tag/nile-tag.test.d.ts +1 -0
- package/dist/src/nile-tag/nile-tag.test.js +574 -0
- package/dist/src/nile-tag/nile-tag.test.js.map +1 -0
- package/dist/src/nile-textarea/nile-textarea.test.d.ts +1 -1
- package/dist/src/nile-textarea/nile-textarea.test.js +105 -84
- package/dist/src/nile-textarea/nile-textarea.test.js.map +1 -1
- package/dist/src/nile-title/nile-title.test.d.ts +1 -0
- package/dist/src/nile-title/nile-title.test.js +108 -0
- package/dist/src/nile-title/nile-title.test.js.map +1 -0
- package/dist/src/nile-toast/nile-toast.test.d.ts +1 -0
- package/dist/src/nile-toast/nile-toast.test.js +526 -0
- package/dist/src/nile-toast/nile-toast.test.js.map +1 -0
- package/dist/src/nile-toolbar/nile-toolbar.test.d.ts +1 -0
- package/dist/src/nile-toolbar/nile-toolbar.test.js +108 -0
- package/dist/src/nile-toolbar/nile-toolbar.test.js.map +1 -0
- package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +1 -0
- package/dist/src/nile-tooltip/nile-tooltip.test.js +546 -0
- package/dist/src/nile-tooltip/nile-tooltip.test.js.map +1 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +1 -7
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js +105 -628
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/rollup.config.js +7 -1
- package/src/nile-accordion/nile-accordian.test.ts +102 -116
- package/src/nile-auto-complete/nile-auto-complete.css.ts +1 -1
- package/src/nile-auto-complete/nile-auto-complete.test.ts +102 -145
- package/src/nile-auto-complete/nile-auto-complete.ts +1 -1
- package/src/nile-avatar/nile-avatar.test.ts +102 -112
- package/src/nile-badge/nile-badge.test.ts +642 -30
- package/src/nile-breadcrumb/nile-breadcrumb.test.ts +107 -0
- package/src/nile-breadcrumb-item/nile-breadcrumb-item.test.ts +106 -0
- package/src/nile-button/nile-button.test.ts +593 -61
- package/src/nile-button-filter/nile-button-filter.test.ts +106 -0
- package/src/nile-button-toggle/nile-button-toggle.test.ts +106 -0
- package/src/nile-button-toggle-group/nile-button-toggle-group.test.ts +104 -126
- package/src/nile-calendar/nile-calendar.test.ts +102 -406
- package/src/nile-card/nile-card.test.ts +103 -71
- package/src/nile-checkbox/nile-checkbox.test.ts +614 -108
- package/src/nile-chip/nile-chip.test.ts +102 -136
- package/src/nile-circular-progressbar/nile-circular-progressbar.test.ts +106 -0
- package/src/nile-date-picker/nile-date-picker.test.ts +106 -0
- package/src/nile-dialog/nile-dialog.test.ts +102 -164
- package/src/nile-divider/nile-divider.test.ts +659 -0
- package/src/nile-drawer/nile-drawer.test.ts +105 -105
- package/src/nile-dropdown/nile-dropdown.test.ts +102 -190
- package/src/nile-empty-state/nile-empty-state.test.ts +104 -67
- package/src/nile-error-message/nile-error-message.test.ts +104 -67
- package/src/nile-error-notification/nile-error-notification.test.ts +106 -0
- package/src/nile-file-preview/nile-file-preview.css.ts +2 -2
- package/src/nile-file-preview/nile-file-preview.template.ts +59 -23
- package/src/nile-file-preview/nile-file-preview.test.ts +105 -37
- package/src/nile-file-preview/nile-file-preview.ts +23 -56
- package/src/nile-file-preview/utils/nile-file-preview.util.ts +37 -8
- package/src/nile-file-upload/nile-file-upload.css.ts +15 -5
- package/src/nile-file-upload/nile-file-upload.template.ts +22 -18
- package/src/nile-file-upload/nile-file-upload.test.ts +105 -37
- package/src/nile-file-upload/nile-file-upload.ts +11 -3
- package/src/nile-file-upload/types/file-upload.enums.ts +20 -4
- package/src/nile-file-upload/utils/drag-drop.util.ts +20 -11
- package/src/nile-file-upload/utils/file-validation.util.ts +104 -22
- package/src/nile-filter-chip/nile-filter-chip.test.ts +103 -89
- package/src/nile-form-error-message/nile-form-error-message.test.ts +106 -0
- package/src/nile-form-group/nile-form-group.test.ts +103 -60
- package/src/nile-form-help-text/nile-form-help-text.test.ts +102 -106
- package/src/nile-format-date/nile-format-date.test.ts +106 -0
- package/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.ts +2 -0
- package/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.ts +1 -1
- package/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.ts +2 -1
- package/src/nile-grid/nile-grid-head/nile-grid-head.css.ts +6 -0
- package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.css.ts +2 -1
- package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.ts +7 -5
- package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.ts +30 -1
- package/src/nile-grid/nile-grid.css.ts +1 -0
- package/src/nile-grid/nile-grid.layout.ts +122 -133
- package/src/nile-grid/nile-grid.resize.ts +15 -9
- package/src/nile-grid/nile-grid.ts +102 -28
- package/src/nile-grid/nile-grid.utils.ts +45 -3
- package/src/nile-grid/nile-grid.width.ts +45 -14
- package/src/nile-grid/types/nile-grid.types.ts +7 -1
- package/src/nile-heading/nile-heading.test.ts +106 -0
- package/src/nile-hero/nile-hero.test.ts +103 -42
- package/src/nile-icon/nile-icon.test.ts +103 -50
- package/src/nile-icon-button/nile-icon-button.test.ts +667 -0
- package/src/nile-inline-edit/nile-inline-edit.test.ts +106 -0
- package/src/nile-input/nile-input.test.ts +105 -164
- package/src/nile-input/nile-input.ts +1 -1
- package/src/nile-link/nile-link.test.ts +104 -81
- package/src/nile-list/nile-list.test.ts +106 -0
- package/src/nile-list-item/nile-list-item.test.ts +106 -0
- package/src/nile-lite-tooltip/nile-lite-tooltip.test.ts +107 -0
- package/src/nile-loader/nile-loader.test.ts +103 -48
- package/src/nile-menu/nile-menu.test.ts +106 -0
- package/src/nile-menu-item/nile-menu-item.test.ts +106 -0
- package/src/nile-option/nile-option.test.ts +106 -0
- package/src/nile-option-group/nile-option-group.test.ts +106 -0
- package/src/nile-page-header/nile-page-header.test.ts +106 -0
- package/src/nile-pagination/nile-pagination.test.ts +106 -0
- package/src/nile-popover/nile-popover.test.ts +103 -83
- package/src/nile-popup/nile-popup.test.ts +102 -82
- package/src/nile-progress-bar/nile-progress-bar.test.ts +103 -52
- package/src/nile-radio/nile-radio.test.ts +103 -78
- package/src/nile-radio-group/nile-radio-group.test.ts +104 -213
- package/src/nile-section-message/nile-section-message.test.ts +106 -0
- package/src/nile-select/nile-select.test.ts +105 -308
- package/src/nile-skeleton-loader/nile-skeleton-loader.test.ts +106 -0
- package/src/nile-slide-toggle/nile-slide-toggle.test.ts +103 -58
- package/src/nile-slider/nile-slider.test.ts +106 -0
- package/src/nile-spinner/nile-spinner.test.ts +668 -0
- package/src/nile-split-panel/nile-split-panel.test.ts +106 -0
- package/src/nile-stepper/nile-stepper.test.ts +107 -0
- package/src/nile-stepper-item/nile-stepper-item.test.ts +106 -0
- package/src/nile-tab/nile-tab.test.ts +106 -0
- package/src/nile-tab-group/nile-tab-group.test.ts +104 -211
- package/src/nile-tab-panel/nile-tab-panel.test.ts +106 -0
- package/src/nile-tag/nile-tag.test.ts +675 -0
- package/src/nile-textarea/nile-textarea.test.ts +104 -100
- package/src/nile-title/nile-title.test.ts +106 -0
- package/src/nile-toast/nile-toast.test.ts +625 -0
- package/src/nile-toolbar/nile-toolbar.test.ts +106 -0
- package/src/nile-tooltip/nile-tooltip.test.ts +645 -0
- package/src/nile-virtual-select/nile-virtual-select.test.ts +104 -772
- package/vscode-html-custom-data.json +10 -5
- package/web-test-runner.config.mjs +4 -2
- package/dist/axe.min-2720cd56.esm.js +0 -1
- package/dist/axe.min-69d47269.cjs.js +0 -2
- package/dist/axe.min-69d47269.cjs.js.map +0 -1
- package/dist/css-tag-bb10c0fa.cjs.js +0 -6
- package/dist/css-tag-bb10c0fa.cjs.js.map +0 -1
- package/dist/css-tag-dc564feb.esm.js +0 -6
- package/dist/fixture-958445f8.cjs.js +0 -395
- package/dist/fixture-958445f8.cjs.js.map +0 -1
- package/dist/fixture-985bba12.esm.js +0 -569
- package/dist/nile-accordion/nile-accordian.test.cjs.js +0 -2
- package/dist/nile-accordion/nile-accordian.test.cjs.js.map +0 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +0 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +0 -2
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +0 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +0 -9
- package/dist/nile-avatar/nile-avatar.test.cjs.js +0 -2
- package/dist/nile-avatar/nile-avatar.test.cjs.js.map +0 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +0 -11
- package/dist/nile-badge/nile-badge.test.cjs.js +0 -2
- package/dist/nile-badge/nile-badge.test.cjs.js.map +0 -1
- package/dist/nile-badge/nile-badge.test.esm.js +0 -1
- package/dist/nile-button/nile-button.test.cjs.js +0 -2
- package/dist/nile-button/nile-button.test.cjs.js.map +0 -1
- package/dist/nile-button/nile-button.test.esm.js +0 -4
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +0 -2
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js.map +0 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +0 -49
- package/dist/nile-calendar/nile-calendar.test.cjs.js +0 -2
- package/dist/nile-calendar/nile-calendar.test.cjs.js.map +0 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +0 -11
- package/dist/nile-card/nile-card.test.cjs.js +0 -2
- package/dist/nile-card/nile-card.test.cjs.js.map +0 -1
- package/dist/nile-card/nile-card.test.esm.js +0 -51
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +0 -2
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js.map +0 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +0 -17
- package/dist/nile-chip/nile-chip.test.cjs.js +0 -2
- package/dist/nile-chip/nile-chip.test.cjs.js.map +0 -1
- package/dist/nile-chip/nile-chip.test.esm.js +0 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +0 -2
- package/dist/nile-dialog/nile-dialog.test.cjs.js.map +0 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +0 -7
- package/dist/nile-drawer/nile-drawer.test.cjs.js +0 -2
- package/dist/nile-drawer/nile-drawer.test.cjs.js.map +0 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +0 -17
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +0 -2
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js.map +0 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +0 -28
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +0 -2
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js.map +0 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +0 -9
- package/dist/nile-error-message/nile-error-message.test.cjs.js +0 -2
- package/dist/nile-error-message/nile-error-message.test.cjs.js.map +0 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +0 -1
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js +0 -2
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +0 -1
- package/dist/nile-file-preview/nile-file-preview.test.esm.js +0 -1
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js +0 -2
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +0 -1
- package/dist/nile-file-upload/nile-file-upload.test.esm.js +0 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +0 -2
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js.map +0 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +0 -20
- package/dist/nile-form-group/nile-form-group.test.cjs.js +0 -2
- package/dist/nile-form-group/nile-form-group.test.cjs.js.map +0 -1
- package/dist/nile-form-group/nile-form-group.test.esm.js +0 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +0 -2
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js.map +0 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +0 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +0 -2
- package/dist/nile-hero/nile-hero.test.cjs.js.map +0 -1
- package/dist/nile-hero/nile-hero.test.esm.js +0 -14
- package/dist/nile-icon/nile-icon.test.cjs.js +0 -2
- package/dist/nile-icon/nile-icon.test.cjs.js.map +0 -1
- package/dist/nile-icon/nile-icon.test.esm.js +0 -1
- package/dist/nile-input/nile-input.test.cjs.js +0 -2
- package/dist/nile-input/nile-input.test.cjs.js.map +0 -1
- package/dist/nile-input/nile-input.test.esm.js +0 -17
- package/dist/nile-link/nile-link.test.cjs.js +0 -2
- package/dist/nile-link/nile-link.test.cjs.js.map +0 -1
- package/dist/nile-link/nile-link.test.esm.js +0 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +0 -2
- package/dist/nile-loader/nile-loader.test.cjs.js.map +0 -1
- package/dist/nile-loader/nile-loader.test.esm.js +0 -1
- package/dist/nile-popover/nile-popover.test.cjs.js +0 -2
- package/dist/nile-popover/nile-popover.test.cjs.js.map +0 -1
- package/dist/nile-popover/nile-popover.test.esm.js +0 -21
- package/dist/nile-popup/nile-popup.test.cjs.js +0 -2
- package/dist/nile-popup/nile-popup.test.cjs.js.map +0 -1
- package/dist/nile-popup/nile-popup.test.esm.js +0 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +0 -2
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js.map +0 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +0 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +0 -2
- package/dist/nile-radio/nile-radio.test.cjs.js.map +0 -1
- package/dist/nile-radio/nile-radio.test.esm.js +0 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +0 -2
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js.map +0 -1
- package/dist/nile-radio-group/nile-radio-group.test.esm.js +0 -57
- package/dist/nile-select/nile-select.test.cjs.js +0 -2
- package/dist/nile-select/nile-select.test.cjs.js.map +0 -1
- package/dist/nile-select/nile-select.test.esm.js +0 -55
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +0 -2
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js.map +0 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +0 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +0 -2
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +0 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +0 -65
- package/dist/nile-textarea/nile-textarea.test.cjs.js +0 -2
- package/dist/nile-textarea/nile-textarea.test.cjs.js.map +0 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +0 -1
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +0 -2
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +0 -1
- package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +0 -93
- package/dist/scopedElementsWrapper-31107e48.esm.js +0 -1
- package/dist/scopedElementsWrapper-9b188ea6.cjs.js +0 -2
- package/dist/scopedElementsWrapper-9b188ea6.cjs.js.map +0 -1
- package/dist/sinon-esm-68c8e378.esm.js +0 -1
- package/dist/sinon-esm-97570c13.cjs.js +0 -2
- package/dist/sinon-esm-97570c13.cjs.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-cell-item.css.cjs.js","../../internal/nile-element.cjs.js","./nile-grid-cell-item.utils.cjs.js"],function(_export,_context){"use strict";var e,t,i,r,s,l,o,a,c,_templateObject,_templateObject2,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_nileGridCellItemCssCjsJs){s=_nileGridCellItemCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nileGridCellItemUtilsCjsJs){o=_nileGridCellItemUtilsCjsJs.i;a=_nileGridCellItemUtilsCjsJs.c;c=_nileGridCellItemUtilsCjsJs.a;}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_l){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.colspan=1,_this.rowspan=1,_this.resizable=!1,_this.onHandlePointerDown=function(e){var t=_assertThisInitialized(_this),i={value:0},r={value:0},s=o(t,e,i,r);if(!s)return;var l=s.target,_n=s.col,m=function m(e){return a(t,_n,r.value,i.value,e);},p=function p(){return c(t,e,l,m);};l.addEventListener("pointermove",m),l.addEventListener("pointerup",p,{once:!0}),l.addEventListener("pointercancel",p,{once:!0});};return _this;}_inherits(n,_l);return _createClass(n,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(n,"connectedCallback",this,3)([]),this.setAttribute("role","cell");}},{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"cell-item-base\" part=\"grid-cell-item-base\">\n <slot></slot>\n ","\n </div>\n "])),this.resizable?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n @pointerdown=","\n ></div>\n "])),this.onHandlePointerDown):null);}}],[{key:"styles",get:function get(){return[s];}}]);}(l));e([i({type:Number,reflect:!0,attribute:!0})],n.prototype,"colspan",void 0),e([i({type:Number,reflect:!0,attribute:!0})],n.prototype,"rowspan",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],n.prototype,"resizable",void 0),_export("N",n=e([r("nile-grid-cell-item")],n));}};});
|
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-cell-item.css.cjs.js","../../internal/nile-element.cjs.js","./nile-grid-cell-item.utils.cjs.js"],function(_export,_context){"use strict";var e,t,i,r,s,l,o,a,c,_templateObject,_templateObject2,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_nileGridCellItemCssCjsJs){s=_nileGridCellItemCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nileGridCellItemUtilsCjsJs){o=_nileGridCellItemUtilsCjsJs.i;a=_nileGridCellItemUtilsCjsJs.c;c=_nileGridCellItemUtilsCjsJs.a;}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_l){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.colspan=1,_this.rowspan=1,_this.resizable=!1,_this.onHandlePointerDown=function(e){var t=_assertThisInitialized(_this),i={value:0},r={value:0},s=o(t,e,i,r);if(!s)return;var l=s.target,_n=s.col,m=function m(e){return a(t,_n,r.value,i.value,e);},p=function p(){return c(t,_n,e,l,m);};l.addEventListener("pointermove",m),l.addEventListener("pointerup",p,{once:!0}),l.addEventListener("pointercancel",p,{once:!0});};return _this;}_inherits(n,_l);return _createClass(n,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(n,"connectedCallback",this,3)([]),this.setAttribute("role","cell");}},{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"cell-item-base\" part=\"grid-cell-item-base\">\n <slot></slot>\n ","\n </div>\n "])),this.resizable?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n @pointerdown=","\n ></div>\n "])),this.onHandlePointerDown):null);}}],[{key:"styles",get:function get(){return[s];}}]);}(l));e([i({type:Number,reflect:!0,attribute:!0})],n.prototype,"colspan",void 0),e([i({type:Number,reflect:!0,attribute:!0})],n.prototype,"rowspan",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],n.prototype,"resizable",void 0),_export("N",n=e([r("nile-grid-cell-item")],n));}};});
|
|
2
2
|
//# sourceMappingURL=nile-grid-cell-item.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-grid-cell-item.cjs.js","sources":["../../../../src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-cell-item.css';\nimport NileElement from '../../internal/nile-element';\nimport {\n initCellResize,\n cellResizeMove,\n cellResizeDone,\n} from './nile-grid-cell-item.utils';\n\n/**\n * Nile grid-cell component.\n *\n * @tag nile-grid-cell-item\n *\n */\n@customElement('nile-grid-cell-item')\nexport class NileGridCellItem extends NileElement {\n /**\n * The styles for nile-grid-cell-item\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number, reflect: true, attribute: true }) colspan = 1;\n @property({ type: Number, reflect: true, attribute: true }) rowspan = 1;\n @property({ type: Boolean, reflect: true, attribute: true }) resizable = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'cell');\n }\n\n private onHandlePointerDown = (ev: PointerEvent) => {\n \n const el = this as HTMLElement;\n\n const downXRef = { value: 0 };\n const startWRef = { value: 0 };\n\n const result = initCellResize(el, ev, downXRef, startWRef);\n if (!result) return;\n\n const { target, col } = result;\n const move = (e: PointerEvent) => cellResizeMove(el, col, startWRef.value, downXRef.value, e);\n const done = () => cellResizeDone(el, ev, target, move);\n\n target.addEventListener('pointermove', move);\n target.addEventListener('pointerup', done, { once: true });\n target.addEventListener('pointercancel', done, { once: true });\n };\n\n public render(): TemplateResult {\n return html`\n <div class=\"cell-item-base\" part=\"grid-cell-item-base\">\n <slot></slot>\n ${this.resizable\n ? html`\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n @pointerdown=${this.onHandlePointerDown}\n ></div>\n `\n : null}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridCellItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-cell-item': NileGridCellItem;\n }\n}\n"],"names":["NileGridCellItem","
|
|
1
|
+
{"version":3,"file":"nile-grid-cell-item.cjs.js","sources":["../../../../src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-cell-item.css';\nimport NileElement from '../../internal/nile-element';\nimport {\n initCellResize,\n cellResizeMove,\n cellResizeDone,\n} from './nile-grid-cell-item.utils';\n\n/**\n * Nile grid-cell component.\n *\n * @tag nile-grid-cell-item\n *\n */\n@customElement('nile-grid-cell-item')\nexport class NileGridCellItem extends NileElement {\n /**\n * The styles for nile-grid-cell-item\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number, reflect: true, attribute: true }) colspan = 1;\n @property({ type: Number, reflect: true, attribute: true }) rowspan = 1;\n @property({ type: Boolean, reflect: true, attribute: true }) resizable = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'cell');\n }\n\n private onHandlePointerDown = (ev: PointerEvent) => {\n \n const el = this as HTMLElement;\n\n const downXRef = { value: 0 };\n const startWRef = { value: 0 };\n\n const result = initCellResize(el, ev, downXRef, startWRef);\n if (!result) return;\n\n const { target, col } = result;\n const move = (e: PointerEvent) => cellResizeMove(el, col, startWRef.value, downXRef.value, e);\n const done = () => cellResizeDone(el, col, ev, target, move);\n\n target.addEventListener('pointermove', move);\n target.addEventListener('pointerup', done, { once: true });\n target.addEventListener('pointercancel', done, { once: true });\n };\n\n public render(): TemplateResult {\n return html`\n <div class=\"cell-item-base\" part=\"grid-cell-item-base\">\n <slot></slot>\n ${this.resizable\n ? html`\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n @pointerdown=${this.onHandlePointerDown}\n ></div>\n `\n : null}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridCellItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-cell-item': NileGridCellItem;\n }\n}\n"],"names":["NileGridCellItem","n","constructor","this","colspan","rowspan","resizable","onHandlePointerDown","ev","el","downXRef","value","startWRef","result","initCellResize","target","col","move","e","cellResizeMove","done","cellResizeDone","addEventListener","once","_this","_inherits","_l","_createClass","key","connectedCallback","super","setAttribute","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","__decorate","get","styles","NileElement","property","type","Number","reflect","attribute","prototype","Boolean","_export","customElement"],"mappings":"m2HAwBaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCASuDC,KAAAA,CAAOC,OAAAA,CAAG,CACVD,CAAAA,KAAAA,CAAOE,OAAG,CAAA,CAAA,CACTF,KAAAA,CAASG,SAAG,CAAA,CAAA,CAAA,CAOjEH,KAAAA,CAAAI,mBAAAA,CAAuBC,SAAAA,CAE7B,CAAA,CAAA,GAAMC,CAAAA,CAAKN,CAAAA,sBAAAA,CAAAA,KAAAA,CAAAA,CAELO,CAAW,CAAA,CAAEC,KAAO,CAAA,CAAA,CAAA,CACpBC,CAAY,CAAA,CAAED,MAAO,CAErBE,CAAAA,CAAAA,CAAAA,CAASC,CAAeL,CAAAA,CAAAA,CAAID,CAAIE,CAAAA,CAAAA,CAAUE,CAChD,CAAA,CAAA,GAAA,CAAKC,CAAQ,CAAA,OAEb,GAAQE,CAAAA,CAAMC,CAAUH,CAClBI,CADAF,MAAAA,CAAUC,GAAQH,CAClBI,CADQD,GAAAA,CACRC,CAAAA,CAAQC,QAARD,CAAAA,CAAAA,CAAQC,CAAoBC,QAAAA,CAAAA,CAAAA,CAAeV,CAAIO,CAAAA,EAAAA,CAAKJ,CAA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,CAAA,CAAA,CAAA,CAAoB7C,EAAA8C,SAAA,CAAA,SAAA,CAAA,IAAA,IACZT,CAAA,CAAA,CAA3DI,EAAS,CAAEC,IAAAA,CAAMC,MAAQC,CAAAA,OAAAA,CAAAA,CAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAAoB7C,CAAA8C,CAAAA,SAAAA,CAAA,cAAA,EACXT,CAAAA,CAAAA,CAAAA,CAAA,CAA5DI,CAAS,CAAA,CAAEC,IAAMK,CAAAA,OAAAA,CAASH,OAAS,CAAA,CAAA,CAAA,CAAMC,WAAW,CAA0B7C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA8C,UAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CAAAE,OAAA,KAXpEhD,EAAgBqC,CAAA,CAAA,CAD5BY,CAAc,CAAA,qBAAA,CAAA,CAAA,CACFjD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",r=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --padding: var(--nile-spacing-xl, var(--ng-spacing-lg)) var(--nile-spacing-10px, var(--ng-spacing-3xl));\n --height: 44px;\n box-sizing: border-box;\n min-width: 0;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n min-height: var(--height);\n height: auto;\n font-size: 14px;\n font-weight: 400;\n font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n }\n\n .cell-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-tertiary-600));\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: ew-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n display: block;\n }\n\n :host(.shadow-right) {\n box-shadow: var(--nile-box-shadow-14, var(--ng-shadow-xs));\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n }\n\n :host(.shadow-left) {\n box-shadow: var(--nile-box-shadow-14, var(--ng-shadow-xs));\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n }\n\n :host-context(nile-grid-row[hover]:hover),\n :host-context(nile-grid-row[hover]:hover):host([data-sticky]) {\n background-color: var(--nile-colors-neutral-100);\n }\n\n :host-context(nile-grid-row[selected]),\n :host-context(nile-grid-row[selected]):host([data-sticky]) {\n background-color: var(--nile-colors-primary-100) !important;\n }\n\n :host(.cell-rowspan) {\n position: absolute;\n z-index: 1;\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n }\n"]))));}};});
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",r=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --padding: var(--nile-spacing-xl, var(--ng-spacing-lg)) var(--nile-spacing-10px, var(--ng-spacing-3xl));\n --height: 44px;\n box-sizing: border-box;\n min-width: 0;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n min-height: var(--height);\n height: auto;\n font-size: 14px;\n font-weight: 400;\n font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n }\n\n .cell-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-tertiary-600));\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: ew-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n display: block;\n }\n\n :host(.shadow-right) {\n box-shadow: var(--nile-box-shadow-14, var(--ng-shadow-xs));\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n z-index: 1;\n }\n\n :host(.shadow-left) {\n box-shadow: var(--nile-box-shadow-14, var(--ng-shadow-xs));\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n z-index: 2;\n }\n\n :host-context(nile-grid-row[hover]:hover),\n :host-context(nile-grid-row[hover]:hover):host([data-sticky]) {\n background-color: var(--nile-colors-neutral-100);\n }\n\n :host-context(nile-grid-row[selected]),\n :host-context(nile-grid-row[selected]):host([data-sticky]) {\n background-color: var(--nile-colors-primary-100) !important;\n }\n\n :host(.cell-rowspan) {\n position: absolute;\n z-index: 1;\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n }\n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-grid-cell-item.css.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-grid-cell-item.css.cjs.js","sources":["../../../../src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * Grid Cell Item CSS\n */\nexport const styles = css`\n :host {\n --padding: var(--nile-spacing-xl, var(--ng-spacing-lg)) var(--nile-spacing-10px, var(--ng-spacing-3xl));\n --height: 44px;\n box-sizing: border-box;\n min-width: 0;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n min-height: var(--height);\n height: auto;\n font-size: 14px;\n font-weight: 400;\n font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n }\n\n .cell-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-tertiary-600));\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: ew-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n display: block;\n }\n\n :host(.shadow-right) {\n box-shadow: var(--nile-box-shadow-14, var(--ng-shadow-xs));\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n }\n\n :host(.shadow-left) {\n box-shadow: var(--nile-box-shadow-14, var(--ng-shadow-xs));\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n }\n\n :host-context(nile-grid-row[hover]:hover),\n :host-context(nile-grid-row[hover]:hover):host([data-sticky]) {\n background-color: var(--nile-colors-neutral-100);\n }\n\n :host-context(nile-grid-row[selected]),\n :host-context(nile-grid-row[selected]):host([data-sticky]) {\n background-color: var(--nile-colors-primary-100) !important;\n }\n\n :host(.cell-rowspan) {\n position: absolute;\n z-index: 1;\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
1
|
+
{"version":3,"file":"nile-grid-cell-item.css.cjs.js","sources":["../../../../src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * Grid Cell Item CSS\n */\nexport const styles = css`\n :host {\n --padding: var(--nile-spacing-xl, var(--ng-spacing-lg)) var(--nile-spacing-10px, var(--ng-spacing-3xl));\n --height: 44px;\n box-sizing: border-box;\n min-width: 0;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n min-height: var(--height);\n height: auto;\n font-size: 14px;\n font-weight: 400;\n font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n }\n\n .cell-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-tertiary-600));\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: ew-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n display: block;\n }\n\n :host(.shadow-right) {\n box-shadow: var(--nile-box-shadow-14, var(--ng-shadow-xs));\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n z-index: 1;\n }\n\n :host(.shadow-left) {\n box-shadow: var(--nile-box-shadow-14, var(--ng-shadow-xs));\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n z-index: 2;\n }\n\n :host-context(nile-grid-row[hover]:hover),\n :host-context(nile-grid-row[hover]:hover):host([data-sticky]) {\n background-color: var(--nile-colors-neutral-100);\n }\n\n :host-context(nile-grid-row[selected]),\n :host-context(nile-grid-row[selected]):host([data-sticky]) {\n background-color: var(--nile-colors-primary-100) !important;\n }\n\n :host(.cell-rowspan) {\n position: absolute;\n z-index: 1;\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -50,11 +50,13 @@ import{css as o}from"lit";const r=o`
|
|
|
50
50
|
:host(.shadow-right) {
|
|
51
51
|
box-shadow: var(--nile-box-shadow-14, var(--ng-shadow-xs));
|
|
52
52
|
background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
53
|
+
z-index: 1;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
:host(.shadow-left) {
|
|
56
57
|
box-shadow: var(--nile-box-shadow-14, var(--ng-shadow-xs));
|
|
57
58
|
background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
59
|
+
z-index: 2;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
:host-context(nile-grid-row[hover]:hover),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as i,customElement as r}from"lit/decorators.js";import{s}from"./nile-grid-cell-item.css.esm.js";import{N as l}from"../../internal/nile-element.esm.js";import{i as o,c as a,a as n}from"./nile-grid-cell-item.utils.esm.js";let c=class extends l{constructor(){super(...arguments),this.colspan=1,this.rowspan=1,this.resizable=!1,this.onHandlePointerDown=e=>{const t=this,i={value:0},r={value:0},s=o(t,e,i,r);if(!s)return;const{target:l,col:c}=s,m=e=>a(t,c,r.value,i.value,e),p=()=>n(t,e,l,m);l.addEventListener("pointermove",m),l.addEventListener("pointerup",p,{once:!0}),l.addEventListener("pointercancel",p,{once:!0})}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}render(){return t`
|
|
1
|
+
import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as i,customElement as r}from"lit/decorators.js";import{s}from"./nile-grid-cell-item.css.esm.js";import{N as l}from"../../internal/nile-element.esm.js";import{i as o,c as a,a as n}from"./nile-grid-cell-item.utils.esm.js";let c=class extends l{constructor(){super(...arguments),this.colspan=1,this.rowspan=1,this.resizable=!1,this.onHandlePointerDown=e=>{const t=this,i={value:0},r={value:0},s=o(t,e,i,r);if(!s)return;const{target:l,col:c}=s,m=e=>a(t,c,r.value,i.value,e),p=()=>n(t,c,e,l,m);l.addEventListener("pointermove",m),l.addEventListener("pointerup",p,{once:!0}),l.addEventListener("pointercancel",p,{once:!0})}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}render(){return t`
|
|
2
2
|
<div class="cell-item-base" part="grid-cell-item-base">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
${this.resizable?t`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register([],function(_export,_context){"use strict";function e(e,n,
|
|
1
|
+
System.register([],function(_export,_context){"use strict";function e(e,t,n,o){t.preventDefault(),t.stopPropagation();var s=Number(e.dataset.cStart);if(!s)return null;var l=Number(e.getAttribute("colspan"))||1,c=Math.max(0,s+l-1-1);n.value=t.clientX,o.value=e.getBoundingClientRect().width;var i=t.currentTarget;return i.setPointerCapture(t.pointerId),e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:c,widthPx:o.value},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("nile-resize-start",{bubbles:!0,composed:!0})),{target:i,col:c};}function t(e,t,n,o,s){var l=Math.max(40,Math.round(n+(s.clientX-o)));e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:t,widthPx:l},bubbles:!0,composed:!0}));}function n(e,t,n,o,s){o.releasePointerCapture(n.pointerId),o.removeEventListener("pointermove",s),e.dispatchEvent(new CustomEvent("nile-resize-end",{bubbles:!0,composed:!0,detail:{col:t}}));}_export({a:n,c:t,i:e});return{setters:[],execute:function execute(){}};});
|
|
2
2
|
//# sourceMappingURL=nile-grid-cell-item.utils.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-grid-cell-item.utils.cjs.js","sources":["../../../../src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.ts"],"sourcesContent":["export function initCellResize(\n el: HTMLElement,\n ev: PointerEvent,\n downXRef: { value: number },\n startWRef: { value: number }\n) {\n ev.preventDefault();\n ev.stopPropagation();\n\n const cStart = Number(el.dataset.cStart);\n if (!cStart) return null;\n\n const span = Number(el.getAttribute('colspan')) || 1;\n const col = Math.max(0, cStart + span - 1 - 1);\n\n downXRef.value = ev.clientX;\n startWRef.value = el.getBoundingClientRect().width;\n\n const target = ev.currentTarget as HTMLElement;\n target.setPointerCapture(ev.pointerId);\n\n el.dispatchEvent(\n new CustomEvent('nile-column-resize', {\n detail: { col, widthPx: startWRef.value },\n bubbles: true,\n composed: true,\n })\n );\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-start', { bubbles: true, composed: true })\n );\n\n return { target, col };\n}\n\nexport function cellResizeMove(\n el: HTMLElement,\n col: number,\n startW: number,\n downX: number,\n e: PointerEvent\n) {\n const widthPx = Math.max(40, Math.round(startW + (e.clientX - downX)));\n el.dispatchEvent(\n new CustomEvent('nile-column-resize', {\n detail: { col, widthPx },\n bubbles: true,\n composed: true,\n })\n );\n}\n\nexport function cellResizeDone(\n el: HTMLElement,\n ev: PointerEvent,\n target: HTMLElement,\n move: (e: PointerEvent) => void\n) {\n target.releasePointerCapture(ev.pointerId);\n target.removeEventListener('pointermove', move);\n el.dispatchEvent(\n new CustomEvent('nile-resize-end', { bubbles: true, composed: true })\n );\n}\n"],"names":["initCellResize","el","ev","downXRef","startWRef","preventDefault","stopPropagation","cStart","Number","dataset","span","getAttribute","col","Math","max","value","clientX","getBoundingClientRect","width","target","currentTarget","setPointerCapture","pointerId","dispatchEvent","CustomEvent","detail","widthPx","bubbles","composed","cellResizeMove","startW","downX","e","round","cellResizeDone","move","releasePointerCapture","removeEventListener","_export","a"],"mappings":"2DAAM,QAAUA,CAAAA,CACdC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,GAEAF,CAAGG,CAAAA,cAAAA,CAAAA,CAAAA,CACHH,CAAGI,CAAAA,eAAAA,CAAAA,CAAAA,CAEH,GAAMC,CAAAA,CAAAA,CAASC,MAAOP,CAAAA,CAAAA,CAAGQ,QAAQF,MACjC,CAAA,CAAA,GAAA,CAAKA,CAAQ,CAAA,MAAO,KAEpB,CAAA,GAAMG,CAAAA,CAAOF,CAAAA,MAAAA,CAAOP,EAAGU,YAAa,CAAA,SAAA,CAAA,CAAA,EAAe,CAC7CC,CAAAA,CAAAA,CAAMC,
|
|
1
|
+
{"version":3,"file":"nile-grid-cell-item.utils.cjs.js","sources":["../../../../src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.ts"],"sourcesContent":["export function initCellResize(\n el: HTMLElement,\n ev: PointerEvent,\n downXRef: { value: number },\n startWRef: { value: number }\n) {\n ev.preventDefault();\n ev.stopPropagation();\n\n const cStart = Number(el.dataset.cStart);\n if (!cStart) return null;\n\n const span = Number(el.getAttribute('colspan')) || 1;\n const col = Math.max(0, cStart + span - 1 - 1);\n\n downXRef.value = ev.clientX;\n startWRef.value = el.getBoundingClientRect().width;\n\n const target = ev.currentTarget as HTMLElement;\n target.setPointerCapture(ev.pointerId);\n\n el.dispatchEvent(\n new CustomEvent('nile-column-resize', {\n detail: { col, widthPx: startWRef.value },\n bubbles: true,\n composed: true,\n })\n );\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-start', { bubbles: true, composed: true })\n );\n\n return { target, col };\n}\n\nexport function cellResizeMove(\n el: HTMLElement,\n col: number,\n startW: number,\n downX: number,\n e: PointerEvent\n) {\n const widthPx = Math.max(40, Math.round(startW + (e.clientX - downX)));\n el.dispatchEvent(\n new CustomEvent('nile-column-resize', {\n detail: { col, widthPx },\n bubbles: true,\n composed: true,\n })\n );\n}\n\nexport function cellResizeDone(\n el: HTMLElement,\n col: number,\n ev: PointerEvent,\n target: HTMLElement,\n move: (e: PointerEvent) => void\n) {\n target.releasePointerCapture(ev.pointerId);\n target.removeEventListener('pointermove', move);\n el.dispatchEvent(\n new CustomEvent('nile-resize-end', { bubbles: true, composed: true, detail: { col: col } })\n );\n}\n"],"names":["initCellResize","el","ev","downXRef","startWRef","preventDefault","stopPropagation","cStart","Number","dataset","span","getAttribute","col","Math","max","value","clientX","getBoundingClientRect","width","target","currentTarget","setPointerCapture","pointerId","dispatchEvent","CustomEvent","detail","widthPx","bubbles","composed","c","cellResizeMove","startW","downX","e","round","cellResizeDone","move","releasePointerCapture","removeEventListener","_export","a"],"mappings":"2DAAM,QAAUA,CAAAA,CACdC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,GAEAF,CAAGG,CAAAA,cAAAA,CAAAA,CAAAA,CACHH,CAAGI,CAAAA,eAAAA,CAAAA,CAAAA,CAEH,GAAMC,CAAAA,CAAAA,CAASC,MAAOP,CAAAA,CAAAA,CAAGQ,QAAQF,MACjC,CAAA,CAAA,GAAA,CAAKA,CAAQ,CAAA,MAAO,KAEpB,CAAA,GAAMG,CAAAA,CAAOF,CAAAA,MAAAA,CAAOP,EAAGU,YAAa,CAAA,SAAA,CAAA,CAAA,EAAe,CAC7CC,CAAAA,CAAAA,CAAMC,KAAKC,GAAI,CAAA,CAAA,CAAGP,CAASG,CAAAA,CAAAA,CAAO,EAAI,CAE5CP,CAAAA,CAAAA,CAAAA,CAASY,KAAQb,CAAAA,CAAAA,CAAGc,OACpBZ,CAAAA,CAAAA,CAAUW,KAAQd,CAAAA,CAAAA,CAAGgB,wBAAwBC,KAE7C,CAAA,GAAMC,CAAAA,CAASjB,CAAAA,CAAAA,CAAGkB,cAelB,MAdAD,CAAAA,CAAAA,CAAOE,iBAAkBnB,CAAAA,CAAAA,CAAGoB,WAE5BrB,CAAGsB,CAAAA,aAAAA,CACD,GAAIC,CAAAA,WAAAA,CAAY,oBAAsB,CAAA,CACpCC,MAAQ,C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AA,CAAKA,CAEvF,CAAA,CAAA,CAAA,CAAA,EAAA2B,OAAA,EAAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,n,
|
|
1
|
+
function e(e,t,n,o){t.preventDefault(),t.stopPropagation();const s=Number(e.dataset.cStart);if(!s)return null;const l=Number(e.getAttribute("colspan"))||1,c=Math.max(0,s+l-1-1);n.value=t.clientX,o.value=e.getBoundingClientRect().width;const i=t.currentTarget;return i.setPointerCapture(t.pointerId),e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:c,widthPx:o.value},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("nile-resize-start",{bubbles:!0,composed:!0})),{target:i,col:c}}function t(e,t,n,o,s){const l=Math.max(40,Math.round(n+(s.clientX-o)));e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:t,widthPx:l},bubbles:!0,composed:!0}))}function n(e,t,n,o,s){o.releasePointerCapture(n.pointerId),o.removeEventListener("pointermove",s),e.dispatchEvent(new CustomEvent("nile-resize-end",{bubbles:!0,composed:!0,detail:{col:t}}))}export{n as a,t as c,e as i};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var s,_templateObject,t;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){s=_lit.css;}],execute:function execute(){_export("s",t=s(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host([sticky]) {\n position: sticky;\n z-index: 2;\n top: 0;\n }\n\n @supports (-webkit-hyphens: none) {\n :host([sticky]) {\n display: block;\n }\n }\n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-grid-head.css.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-grid-head.css.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head/nile-grid-head.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * GridHead CSS\n */\nexport const styles = css`\n :host([sticky]) {\n position: sticky;\n z-index: 2;\n top: 0;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
1
|
+
{"version":3,"file":"nile-grid-head.css.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head/nile-grid-head.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * GridHead CSS\n */\nexport const styles = css`\n :host([sticky]) {\n position: sticky;\n z-index: 2;\n top: 0;\n }\n\n @supports (-webkit-hyphens: none) {\n :host([sticky]) {\n display: block;\n }\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import{css as
|
|
1
|
+
import{css as s}from"lit";const t=s`
|
|
2
2
|
:host([sticky]) {
|
|
3
3
|
position: sticky;
|
|
4
4
|
z-index: 2;
|
|
5
5
|
top: 0;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
@supports (-webkit-hyphens: none) {
|
|
9
|
+
:host([sticky]) {
|
|
10
|
+
display: block;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`;export{t as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-head-item.css.cjs.js","../../internal/nile-element.cjs.js","./nile-grid-head-item.utils.cjs.js"],function(_export,_context){"use strict";var t,e,i,r,s,l,o,
|
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-head-item.css.cjs.js","../../internal/nile-element.cjs.js","./nile-grid-head-item.utils.cjs.js"],function(_export,_context){"use strict";var t,e,i,r,s,a,l,o,n,d,c,_templateObject,_templateObject2,h;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_nileGridHeadItemCssCjsJs){s=_nileGridHeadItemCssCjsJs.s;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_nileGridHeadItemUtilsCjsJs){l=_nileGridHeadItemUtilsCjsJs.i;o=_nileGridHeadItemUtilsCjsJs.a;n=_nileGridHeadItemUtilsCjsJs.h;d=_nileGridHeadItemUtilsCjsJs.b;c=_nileGridHeadItemUtilsCjsJs.r;}],execute:function execute(){_export("N",h=/*#__PURE__*/function(_a){function h(){var _this;_classCallCheck(this,h);_this=_callSuper(this,h,arguments),_this.colspan=1,_this.rowspan=1,_this.resizable=!1,_this.width=null,_this.sticky=null,_this.lockWidth=!1,_this.onHandlePointerDown=function(t){var e=_assertThisInitialized(_this),i=_this.closest("nile-grid"),r={value:0},s={value:0},a=l(e,t,r,s);if(!a)return;var _h=a.target,p=a.col,u=function u(t){return n(e,p,s.value,r.value,t,i);},_m=function m(t){d(e,p,t,_h,u),c(_h,u,_m);};o(_h,u,_m);};return _this;}_inherits(h,_a);return _createClass(h,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(h,"connectedCallback",this,3)([]),this.setAttribute("role","row");}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(h,"disconnectedCallback",this,3)([]),this.removeAttribute("role");}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-head-item-base\" class=\"head-item-base\">\n <slot></slot>\n ","\n </div>\n "])),this.resizable?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n part=\"resize-handle\"\n @pointerdown=","\n ></div>\n "])),this.onHandlePointerDown):null);}}],[{key:"styles",get:function get(){return[s];}}]);}(a));t([i({type:Number,reflect:!0,attribute:!0})],h.prototype,"colspan",void 0),t([i({type:Number,reflect:!0,attribute:!0})],h.prototype,"rowspan",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],h.prototype,"resizable",void 0),t([i({type:String,reflect:!0,attribute:!0})],h.prototype,"width",void 0),t([i({type:String,reflect:!0,attribute:!0})],h.prototype,"sticky",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],h.prototype,"lockWidth",void 0),_export("N",h=t([r("nile-grid-head-item")],h));}};});
|
|
2
2
|
//# sourceMappingURL=nile-grid-head-item.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-grid-head-item.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head-item/nile-grid-head-item.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-head-item.css';\nimport NileElement from '../../internal/nile-element';\nimport {\n initHeadResize,\n headResizeMove,\n headResizeDone,\n} from './nile-grid-head-item.utils';\nimport { NileGrid } from '../nile-grid';\n\n/**\n * Nile grid-head-item component.\n *\n * @tag nile-grid-head-item\n *\n */\n@customElement('nile-grid-head-item')\nexport class NileGridHeadItem extends NileElement {\n /**\n * The styles for nile-grid-head-item\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number, reflect: true, attribute: true }) colspan = 1;\n @property({ type: Number, reflect: true, attribute: true }) rowspan = 1;\n @property({ type: Boolean, reflect: true, attribute: true }) resizable = false;\n @property({ type: String, reflect: true, attribute: true }) width: string | null = null;\n @property({ type: String, reflect: true, attribute: true }) sticky: string | null = null;\n @property({ type: Boolean, reflect: true, attribute: true }) lockWidth: boolean = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role','row');\n }\n\n private onHandlePointerDown = (ev: PointerEvent) => {\n const el = this as HTMLElement;\n const nileGrid = this.closest('nile-grid') as NileGrid;\n const downXRef = { value: 0 };\n const startWRef = { value: 0 };\n\n const result = initHeadResize(el, ev, downXRef, startWRef);\n if (!result) return;\n\n const { target, col } = result;\n const move = (e: PointerEvent) => headResizeMove(el, col, startWRef.value, downXRef.value, e, nileGrid);\n const done = () => headResizeDone(el,
|
|
1
|
+
{"version":3,"file":"nile-grid-head-item.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head-item/nile-grid-head-item.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-head-item.css';\nimport NileElement from '../../internal/nile-element';\nimport {\n initHeadResize,\n headResizeMove,\n headResizeDone,\n addListeners,\n removeListeners,\n} from './nile-grid-head-item.utils';\nimport { NileGrid } from '../nile-grid';\n\n/**\n * Nile grid-head-item component.\n *\n * @tag nile-grid-head-item\n *\n */\n@customElement('nile-grid-head-item')\nexport class NileGridHeadItem extends NileElement {\n /**\n * The styles for nile-grid-head-item\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number, reflect: true, attribute: true }) colspan = 1;\n @property({ type: Number, reflect: true, attribute: true }) rowspan = 1;\n @property({ type: Boolean, reflect: true, attribute: true }) resizable = false;\n @property({ type: String, reflect: true, attribute: true }) width: string | null = null;\n @property({ type: String, reflect: true, attribute: true }) sticky: string | null = null;\n @property({ type: Boolean, reflect: true, attribute: true }) lockWidth: boolean = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role','row');\n }\n\n private onHandlePointerDown = (ev: PointerEvent) => {\n const el = this as HTMLElement;\n const nileGrid = this.closest('nile-grid') as NileGrid;\n const downXRef = { value: 0 };\n const startWRef = { value: 0 };\n\n const result = initHeadResize(el, ev, downXRef, startWRef);\n if (!result) return;\n\n const { target, col } = result;\n const move = (e: PointerEvent) => headResizeMove(el, col, startWRef.value, downXRef.value, e, nileGrid);\n const done = (e: PointerEvent) => {\n headResizeDone(el, col, e, target, move);\n removeListeners(target, move, done);\n }\n addListeners(target, move, done);\n };\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeAttribute('role');\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"grid-head-item-base\" class=\"head-item-base\">\n <slot></slot>\n ${this.resizable\n ? html`\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n part=\"resize-handle\"\n @pointerdown=${this.onHandlePointerDown}\n ></div>\n `\n : null}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridHeadItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-head-item': NileGridHeadItem;\n }\n}\n"],"names":["NileGridHeadItem","h","constructor","this","colspan","rowspan","resizable","width","sticky","lockWidth","onHandlePointerDown","ev","el","nileGrid","closest","downXRef","value","startWRef","result","initHeadResize","target","col","move","e","headResizeMove","done","headResizeDone","removeListeners","addListeners","_this","_inherits","_a","_createClass","key","connectedCallback","super","setAttribute","disconnectedCallback","removeAttribute","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","get","styles","NileElement","__decorate","property","type","Number","reflect","attribute","prototype","Boolean","String","customElement"],"mappings":"u6HA2BaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCASuDC,KAAAA,CAAOC,OAAAA,CAAG,CACVD,CAAAA,KAAAA,CAAOE,QAAG,CACTF,CAAAA,KAAAA,CAASG,SAAG,CAAA,CAAA,CAAA,CACbH,KAAAA,CAAKI,KAAAA,CAAkB,IACvBJ,CAAAA,KAAAA,CAAMK,MAAkB,CAAA,IAAA,CACvBL,KAAAA,CAASM,SAAAA,CAAAA,CAAY,CAO1EN,CAAAA,KAAAA,CAAAO,mBAAuBC,CAAAA,SAAAA,CAAAA,CAAAA,CAC7B,GAAMC,CAAAA,CAAKT,CAAAA,sBAAAA,CAAAA,KAAAA,CAAAA,CACLU,CAAWV,CAAAA,KAAAA,CAAK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AqD,UAAA,QAAA,CAAA,IAAA,EAAA,CAAA,CAC5BN,EAAA,CAA5DC,CAAAA,CAAS,CAAEC,IAAMK,CAAAA,OAAAA,CAASH,SAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAAmCpD,CAAAqD,CAAAA,SAAAA,CAAA,gBAAA,EAd7ErD,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAgB+C,EAAA,CAD5BS,CAAAA,CAAc,wBACFxD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",r=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --padding: var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-10px, var(--ng-spacing-3xl));\n --height: 50px;\n position: relative;\n box-sizing: border-box;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n font-size: var(--nile-font-size-small, var(--ng-font-size-text-xs));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n min-height: var(--height);\n display: flex;\n align-items: center;\n color: var(--nile---nile-colors-dark-900, var(--ng-colors-text-quaternary-500));\n }\n\n .head-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: ew-resize;\n touch-action: none;\n
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",r=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --padding: var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-10px, var(--ng-spacing-3xl));\n --height: 50px;\n position: relative;\n box-sizing: border-box;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n font-size: var(--nile-font-size-small, var(--ng-font-size-text-xs));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n min-height: var(--height);\n display: flex;\n align-items: center;\n color: var(--nile---nile-colors-dark-900, var(--ng-colors-text-quaternary-500));\n }\n\n .head-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: ew-resize;\n touch-action: none;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n :host(.shadow-right) {\n box-shadow: var(--nile-box-shadow-13, var(--ng-shadow-xs));\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n z-index: 1;\n }\n\n :host(.shadow-left) {\n box-shadow: var(--nile-box-shadow-13, var(--ng-shadow-xs));\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n z-index: 2;\n }\n\n :host(.head-rowspan) {\n position: absolute;\n z-index: 1;\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n }\n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-grid-head-item.css.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-grid-head-item.css.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head-item/nile-grid-head-item.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * NileGridHeadItem CSS\n */\nexport const styles = css`\n :host {\n --padding: var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-10px, var(--ng-spacing-3xl));\n --height: 50px;\n position: relative;\n box-sizing: border-box;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n font-size: var(--nile-font-size-small, var(--ng-font-size-text-xs));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n min-height: var(--height);\n display: flex;\n align-items: center;\n color: var(--nile---nile-colors-dark-900, var(--ng-colors-text-quaternary-500));\n }\n\n .head-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: ew-resize;\n touch-action: none;\n
|
|
1
|
+
{"version":3,"file":"nile-grid-head-item.css.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head-item/nile-grid-head-item.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * NileGridHeadItem CSS\n */\nexport const styles = css`\n :host {\n --padding: var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-10px, var(--ng-spacing-3xl));\n --height: 50px;\n position: relative;\n box-sizing: border-box;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n font-size: var(--nile-font-size-small, var(--ng-font-size-text-xs));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n min-height: var(--height);\n display: flex;\n align-items: center;\n color: var(--nile---nile-colors-dark-900, var(--ng-colors-text-quaternary-500));\n }\n\n .head-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: ew-resize;\n touch-action: none;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n :host(.shadow-right) {\n box-shadow: var(--nile-box-shadow-13, var(--ng-shadow-xs));\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n z-index: 1;\n }\n\n :host(.shadow-left) {\n box-shadow: var(--nile-box-shadow-13, var(--ng-shadow-xs));\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n z-index: 2;\n }\n\n :host(.head-rowspan) {\n position: absolute;\n z-index: 1;\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -43,7 +43,6 @@ import{css as o}from"lit";const r=o`
|
|
|
43
43
|
height: 100%;
|
|
44
44
|
cursor: ew-resize;
|
|
45
45
|
touch-action: none;
|
|
46
|
-
z-index: 1;
|
|
47
46
|
width: 2px;
|
|
48
47
|
border-right: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
49
48
|
}
|
|
@@ -51,11 +50,13 @@ import{css as o}from"lit";const r=o`
|
|
|
51
50
|
:host(.shadow-right) {
|
|
52
51
|
box-shadow: var(--nile-box-shadow-13, var(--ng-shadow-xs));
|
|
53
52
|
background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));
|
|
53
|
+
z-index: 1;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
:host(.shadow-left) {
|
|
57
57
|
box-shadow: var(--nile-box-shadow-13, var(--ng-shadow-xs));
|
|
58
58
|
background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));
|
|
59
|
+
z-index: 2;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
:host(.head-rowspan) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{__decorate as
|
|
1
|
+
import{__decorate as t}from"tslib";import{html as e}from"lit";import{property as i,customElement as r}from"lit/decorators.js";import{s}from"./nile-grid-head-item.css.esm.js";import{N as a}from"../../internal/nile-element.esm.js";import{i as l,a as o,h as n,b as d,r as c}from"./nile-grid-head-item.utils.esm.js";let h=class extends a{constructor(){super(...arguments),this.colspan=1,this.rowspan=1,this.resizable=!1,this.width=null,this.sticky=null,this.lockWidth=!1,this.onHandlePointerDown=t=>{const e=this,i=this.closest("nile-grid"),r={value:0},s={value:0},a=l(e,t,r,s);if(!a)return;const{target:h,col:m}=a,p=t=>n(e,m,s.value,r.value,t,i),u=t=>{d(e,m,t,h,p),c(h,p,u)};o(h,p,u)}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}disconnectedCallback(){super.disconnectedCallback(),this.removeAttribute("role")}render(){return e`
|
|
2
2
|
<div part="grid-head-item-base" class="head-item-base">
|
|
3
3
|
<slot></slot>
|
|
4
|
-
${this.resizable?
|
|
4
|
+
${this.resizable?e`
|
|
5
5
|
<div
|
|
6
6
|
aria-hidden="false"
|
|
7
7
|
class="resize-handle"
|
|
@@ -10,4 +10,4 @@ import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as
|
|
|
10
10
|
></div>
|
|
11
11
|
`:null}
|
|
12
12
|
</div>
|
|
13
|
-
`}};
|
|
13
|
+
`}};t([i({type:Number,reflect:!0,attribute:!0})],h.prototype,"colspan",void 0),t([i({type:Number,reflect:!0,attribute:!0})],h.prototype,"rowspan",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],h.prototype,"resizable",void 0),t([i({type:String,reflect:!0,attribute:!0})],h.prototype,"width",void 0),t([i({type:String,reflect:!0,attribute:!0})],h.prototype,"sticky",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],h.prototype,"lockWidth",void 0),h=t([r("nile-grid-head-item")],h);export{h as N};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register([],function(_export,_context){"use strict";function e(e,n,t
|
|
1
|
+
System.register([],function(_export,_context){"use strict";function e(e,n,o,t){n.preventDefault(),n.stopPropagation();var i=Number(e.dataset.cStart);if(!i)return null;var s=Number(e.getAttribute("colspan"))||1,c=Math.max(0,i+s-1-1);o.value=n.clientX,t.value=e.getBoundingClientRect().width;var u=n.currentTarget;return u.setPointerCapture(n.pointerId),e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:c,widthPx:t.value},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("nile-resize-start",{bubbles:!0,composed:!0})),{target:u,col:c};}function n(e,n,o,t,i,s){var c=Math.max(s.minColumnWidth,Math.round(o+(i.clientX-t)));e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:n,widthPx:c},bubbles:!0,composed:!0}));}function o(e,n,o,t,i){t.releasePointerCapture(o.pointerId),t.removeEventListener("pointermove",i),e.dispatchEvent(new CustomEvent("nile-resize-end",{bubbles:!0,composed:!0,detail:{col:n}}));}function t(e,n,o){e.addEventListener("pointermove",n),e.addEventListener("pointerup",o),e.addEventListener("pointercancel",o),window.addEventListener("pointerup",o,{once:!0});}function i(e,n,o){e.removeEventListener("pointermove",n),e.removeEventListener("pointerup",o),e.removeEventListener("pointercancel",o),window.removeEventListener("pointerup",o);}_export({a:t,b:o,h:n,i:e,r:i});return{setters:[],execute:function execute(){}};});
|
|
2
2
|
//# sourceMappingURL=nile-grid-head-item.utils.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-grid-head-item.utils.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.ts"],"sourcesContent":["import { NileGrid } from \"../nile-grid\";\n\n/** initHeadResize\n * @param el Target element\n * @param ev Pointer event\n * @param downXRef Reference to store downX value\n * @param startWRef Reference to store startW value\n * @returns Object containing target element and column index\n */\nexport function initHeadResize(\n el: HTMLElement,\n ev: PointerEvent,\n downXRef: { value: number },\n startWRef: { value: number }\n) {\n ev.preventDefault();\n ev.stopPropagation();\n\n const cStart = Number(el.dataset.cStart);\n if (!cStart) return null;\n\n const span = Number(el.getAttribute('colspan')) || 1;\n const col = Math.max(0, cStart + span - 1 - 1);\n\n downXRef.value = ev.clientX;\n startWRef.value = el.getBoundingClientRect().width;\n\n const target = ev.currentTarget as HTMLElement;\n target.setPointerCapture(ev.pointerId);\n\n el.dispatchEvent(\n new CustomEvent('nile-column-resize', {\n detail: { col, widthPx: startWRef.value },\n bubbles: true,\n composed: true,\n })\n );\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-start', { bubbles: true, composed: true })\n );\n\n return { target, col };\n}\n\n/** headResizeMove\n * @param el Target element\n * @param col Column index\n * @param startW Starting width\n * @param downX Down X coordinate\n * @param e Pointer event\n * @param nileGrid NileGrid instance\n * @returns void\n */\nexport function headResizeMove(\n el: HTMLElement,\n col: number,\n startW: number,\n downX: number,\n e: PointerEvent,\n nileGrid: NileGrid\n) {\n const widthPx = Math.max(nileGrid.minColumnWidth, Math.round(startW + (e.clientX - downX)));\n el.dispatchEvent(\n new CustomEvent('nile-column-resize', {\n detail: { col, widthPx },\n bubbles: true,\n composed: true,\n })\n );\n}\n\n/** headResizeDone\n * @param el Target element\n * @param ev Pointer event\n * @param target Target element\n * @param move Pointer move handler\n * @returns void\n */\nexport function headResizeDone(\n el: HTMLElement,\n ev: PointerEvent,\n target: HTMLElement,\n move: (e: PointerEvent) => void\n) {\n target.releasePointerCapture(ev.pointerId);\n target.removeEventListener('pointermove', move);\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-end', { bubbles: true, composed: true })\n );\n}\n"],"names":["initHeadResize","el","ev","downXRef","startWRef","preventDefault","stopPropagation","cStart","Number","dataset","span","getAttribute","col","Math","max","value","clientX","getBoundingClientRect","width","target","currentTarget","setPointerCapture","pointerId","dispatchEvent","CustomEvent","detail","widthPx","bubbles","composed","
|
|
1
|
+
{"version":3,"file":"nile-grid-head-item.utils.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.ts"],"sourcesContent":["import { NileGrid } from \"../nile-grid\";\n\n/** initHeadResize\n * @param el Target element\n * @param ev Pointer event\n * @param downXRef Reference to store downX value\n * @param startWRef Reference to store startW value\n * @returns Object containing target element and column index\n */\nexport function initHeadResize(\n el: HTMLElement,\n ev: PointerEvent,\n downXRef: { value: number },\n startWRef: { value: number }\n) {\n ev.preventDefault();\n ev.stopPropagation();\n\n const cStart = Number(el.dataset.cStart);\n if (!cStart) return null;\n\n const span = Number(el.getAttribute('colspan')) || 1;\n const col = Math.max(0, cStart + span - 1 - 1);\n\n downXRef.value = ev.clientX;\n startWRef.value = el.getBoundingClientRect().width;\n\n const target = ev.currentTarget as HTMLElement;\n target.setPointerCapture(ev.pointerId);\n\n el.dispatchEvent(\n new CustomEvent('nile-column-resize', {\n detail: { col, widthPx: startWRef.value },\n bubbles: true,\n composed: true,\n })\n );\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-start', { bubbles: true, composed: true })\n );\n\n return { target, col };\n}\n\n/** headResizeMove\n * @param el Target element\n * @param col Column index\n * @param startW Starting width\n * @param downX Down X coordinate\n * @param e Pointer event\n * @param nileGrid NileGrid instance\n * @returns void\n */\nexport function headResizeMove(\n el: HTMLElement,\n col: number,\n startW: number,\n downX: number,\n e: PointerEvent,\n nileGrid: NileGrid\n) {\n const widthPx = Math.max(nileGrid.minColumnWidth, Math.round(startW + (e.clientX - downX)));\n el.dispatchEvent(\n new CustomEvent('nile-column-resize', {\n detail: { col, widthPx },\n bubbles: true,\n composed: true,\n })\n );\n}\n\n/** headResizeDone\n * @param el Target element\n * @param ev Pointer event\n * @param target Target element\n * @param move Pointer move handler\n * @returns void\n */\nexport function headResizeDone(\n el: HTMLElement,\n col: number,\n ev: PointerEvent,\n target: HTMLElement,\n move: (e: PointerEvent) => void\n) {\n target.releasePointerCapture(ev.pointerId);\n target.removeEventListener('pointermove', move);\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-end', { bubbles: true, composed: true, detail: { col: col } })\n );\n}\n\n/** addListeners\n * @param target Target element\n * @param move Pointer move handler\n * @param done Pointer up handler\n * @returns void\n */\nexport function addListeners(target: HTMLElement, move: (e: PointerEvent) => void, done: (e: PointerEvent) => void) {\n target.addEventListener('pointermove', move);\n target.addEventListener('pointerup', done);\n target.addEventListener('pointercancel', done);\n\n window.addEventListener('pointerup', done, { once: true });\n}\n\n/** removeListeners\n * @param target Target element\n * @param move Pointer move handler\n * @param done Pointer up handler\n * @returns void\n */\nexport function removeListeners(target: HTMLElement, move: (e: PointerEvent) => void, done: (e: PointerEvent) => void) {\n target.removeEventListener('pointermove', move);\n target.removeEventListener('pointerup', done);\n target.removeEventListener('pointercancel', done);\n\n window.removeEventListener('pointerup', done);\n}"],"names":["initHeadResize","el","ev","downXRef","startWRef","preventDefault","stopPropagation","cStart","Number","dataset","span","getAttribute","col","Math","max","value","clientX","getBoundingClientRect","width","target","currentTarget","setPointerCapture","pointerId","dispatchEvent","CustomEvent","detail","widthPx","bubbles","composed","c","headResizeMove","startW","downX","e","nileGrid","minColumnWidth","round","headResizeDone","move","releasePointerCapture","removeEventListener","addListeners","done","addEventListener","window","once","removeListeners"],"mappings":"2DASM,QAAUA,CAAAA,CAAAA,CACdC,EACAC,CACAC,CAAAA,CAAAA,CACAC,GAEAF,CAAGG,CAAAA,cAAAA,CAAAA,CAAAA,CACHH,EAAGI,eAEH,CAAA,CAAA,CAAA,GAAMC,CAAAA,EAASC,MAAOP,CAAAA,CAAAA,CAAGQ,QAAQF,MACjC,CAAA,CAAA,GAAA,CAAKA,EAAQ,MAAO,KAAA,CAEpB,GAAMG,CAAAA,CAAAA,CAAOF,MAAOP,CAAAA,CAAAA,CAAGU,aAAa,SAAe,CAAA,CAAA,EAAA,CAAA,CAC7CC,EAAMC,IAAKC,CAAAA,GAAAA,CAAI,EAAGP,CAASG,CAAAA,CAAAA,CAAO,EAAI,CAE5CP,CAAAA,CAAAA,CAAAA,CAASY,MAAQb,CAAGc,CAAAA,OAAAA,CACpBZ,EAAUW,KAAQd,CAAAA,CAAAA,CAAGgB,wBAAwBC,KAE7C,CAAA,GAAMC,CAAAA,CAASjB,CAAAA,CAAAA,CAAGkB,aAelB,CAAA,MAdAD,CAAAA,EAAOE,iBAAkBnB,CAAAA,CAAAA,CAAGoB,WAE5BrB,CAAGsB,CAAAA,aAAAA,CACD,GAAIC,CAAAA,WAAY,CAAA,oBAAA,CAAsB,CACpCC,MAAQ,CAAA,CAAEb,MAAKc,OAAStB,CAAAA,CAAAA,CAAUW,OAClCY,OAAS,CAAA,CAAA,CAAA,CACTC,UAAU,CAId3B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAGsB,aACD,CAAA,GAAIC,CAAAA,WAAY,CAAA,mBAAA,CAAqB,CAAEG,OAAS,CAAA,CAAA,CAAA,CAAMC,UAAU,CAG3D,CAAA,CAAA,CAAA,CAA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,CAAA,CACrD,UAQgBC,CAAAA,EAAgB3B,CAAqBmB,CAAAA,CAAAA,CAAiCI,GACpFvB,CAAOqB,CAAAA,mBAAAA,CAAoB,cAAeF,CAC1CnB,CAAAA,CAAAA,CAAAA,CAAOqB,mBAAoB,CAAA,WAAA,CAAaE,CACxCvB,CAAAA,CAAAA,CAAAA,CAAOqB,oBAAoB,eAAiBE,CAAAA,CAAAA,CAAAA,CAE5CE,OAAOJ,mBAAoB,CAAA,WAAA,CAAaE,EAC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,n,t
|
|
1
|
+
function e(e,n,o,t){n.preventDefault(),n.stopPropagation();const i=Number(e.dataset.cStart);if(!i)return null;const s=Number(e.getAttribute("colspan"))||1,c=Math.max(0,i+s-1-1);o.value=n.clientX,t.value=e.getBoundingClientRect().width;const u=n.currentTarget;return u.setPointerCapture(n.pointerId),e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:c,widthPx:t.value},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("nile-resize-start",{bubbles:!0,composed:!0})),{target:u,col:c}}function n(e,n,o,t,i,s){const c=Math.max(s.minColumnWidth,Math.round(o+(i.clientX-t)));e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:n,widthPx:c},bubbles:!0,composed:!0}))}function o(e,n,o,t,i){t.releasePointerCapture(o.pointerId),t.removeEventListener("pointermove",i),e.dispatchEvent(new CustomEvent("nile-resize-end",{bubbles:!0,composed:!0,detail:{col:n}}))}function t(e,n,o){e.addEventListener("pointermove",n),e.addEventListener("pointerup",o),e.addEventListener("pointercancel",o),window.addEventListener("pointerup",o,{once:!0})}function i(e,n,o){e.removeEventListener("pointermove",n),e.removeEventListener("pointerup",o),e.removeEventListener("pointercancel",o),window.removeEventListener("pointerup",o)}export{t as a,o as b,n as h,e as i,i as r};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid.css.cjs.js","../internal/nile-element.cjs.js","./nile-grid.width.cjs.js","./nile-grid.utils.cjs.js","./types/nile-grid.enums.cjs.js"],function(_export,_context){"use strict";var t,i,s,e,r,h,l,o,a,n,d,c,m,u,v,p,b,g,f,_templateObject,z;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.state;e=_litDecoratorsJs.query;r=_litDecoratorsJs.property;h=_litDecoratorsJs.customElement;},function(_nileGridCssCjsJs){l=_nileGridCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_nileGridWidthCjsJs){a=_nileGridWidthCjsJs.c;n=_nileGridWidthCjsJs.a;d=_nileGridWidthCjsJs.r;c=_nileGridWidthCjsJs.b;m=_nileGridWidthCjsJs.l;u=_nileGridWidthCjsJs.d;v=_nileGridWidthCjsJs.s;},function(_nileGridUtilsCjsJs){p=_nileGridUtilsCjsJs.l;b=_nileGridUtilsCjsJs.g;g=_nileGridUtilsCjsJs.a;f=_nileGridUtilsCjsJs.r;},function(_typesNileGridEnumsCjsJs){}],execute:function execute(){_export("N",z=/*#__PURE__*/function(_o){function z(){var _this;_classCallCheck(this,z);_this=_callSuper(this,z,arguments),_this.colTemplate="",_this.columnWidths=[],_this.enableResizeScroll=!1,_this.hoverable=!1,_this.raf=0,_this.minColumnWidth=40,_this.stickyLeftIndexes=[],_this.stickyRightIndexes=[],_this.cellHeight=null,_this.headHeight=null,_this.widthsInitialized=!1,_this.lockedWidthColumns=[],_this.onResize=function(t){t.stopPropagation(),_this.emit("nile-resize",{columnNumber:t.detail.col,columnWidth:t.detail.widthPx});var _t$detail=t.detail,i=_t$detail.col,s=_t$detail.widthPx,_a=a({target:t.target,col:i,widthPx:s,floor:_this.minColumnWidth,columnWidths:_this.columnWidths}),e=_a.prevW,r=_a.newW,h=_a.delta0;0!==h?(_this.enableResizeScroll?c({grid:_assertThisInitialized(_this),col:i,newW:r}):d({grid:_assertThisInitialized(_this),col:i,prevW:e,newW:r,floor:_this.minColumnWidth}),n(_assertThisInitialized(_this),i)):n(_assertThisInitialized(_this),i);};return _this;}_inherits(z,_o);return _createClass(z,[{key:"scheduleLayout",value:function scheduleLayout(){var _this2=this;this.raf&&cancelAnimationFrame(this.raf),this.raf=requestAnimationFrame(function(){_this2.raf=0,m(_this2,_this2.slotEl,_this2.ensureWidths.bind(_this2),u,_this2.stickyLeftIndexes,_this2.stickyRightIndexes),v(_this2);});}},{key:"ensureWidths",value:function ensureWidths(t){this.columnWidths.length!==t&&(this.columnWidths=Array(t).fill(""),this.lockedWidthColumns=Array(t).fill(!1));}},{key:"firstUpdated",value:function firstUpdated(){var _this3=this;this.setAttribute("role","table"),p(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this)),this.addEventListener("scroll",function(){return v(_this3);}),this.resizeObserverStickyShadows=new ResizeObserver(function(){return v(_this3);}),this.resizeObserverStickyShadows.observe(this),v(this);}},{key:"_attachObserverAndLayout",value:function _attachObserverAndLayout(){var _this$mo,_this4=this,_this$resizeObserver,_this$resizeObserver2;(_this$mo=this.mo)!==null&&_this$mo!==void 0&&_this$mo.disconnect(),this.mo=new MutationObserver(function(){_this4.scheduleLayout();}),(_this$resizeObserver=this.resizeObserver)!==null&&_this$resizeObserver!==void 0&&_this$resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(function(){m(_this4,_this4.slotEl,_this4.ensureWidths.bind(_this4),u,_this4.stickyLeftIndexes,_this4.stickyRightIndexes);});var t=b(this.slotEl),i=g(this.slotEl);if(!t&&!i)return;var s=i!==null&&i!==void 0?i:this;this.mo.observe(s,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["colspan","rowspan"]}),(_this$resizeObserver2=this.resizeObserver)===null||_this$resizeObserver2===void 0?void 0:_this$resizeObserver2.observe(this);}},{key:"render",value:function render(){return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-base\" class=\"nile-grid-base\">\n <slot part=\"grid-slot\"></slot>\n <div part=\"resize-start\" class=\"nile-resize-start\"></div>\n <div part=\"resize-end\" class=\"nile-resize-end\"></div>\n </div>\n "])));}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _superPropGet2,_this$mo2,_this$resizeObserver3,_this$resizeObserverS;(_superPropGet2=_superPropGet(z,"disconnectedCallback",this,3))!==null&&_superPropGet2!==void 0&&_superPropGet2([]),(_this$mo2=this.mo)!==null&&_this$mo2!==void 0&&_this$mo2.disconnect(),(_this$resizeObserver3=this.resizeObserver)!==null&&_this$resizeObserver3!==void 0&&_this$resizeObserver3.disconnect(),(_this$resizeObserverS=this.resizeObserverStickyShadows)!==null&&_this$resizeObserverS!==void 0&&_this$resizeObserverS.disconnect(),this.raf&&cancelAnimationFrame(this.raf),f(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this));}}],[{key:"styles",get:function get(){return[l];}}]);}(o));t([s()],z.prototype,"colTemplate",void 0),t([s()],z.prototype,"columnWidths",void 0),t([e("slot")],z.prototype,"slotEl",void 0),t([e(".nile-resize-start")],z.prototype,"resizeStart",void 0),t([e(".nile-resize-end")],z.prototype,"resizeEnd",void 0),t([r({type:Boolean,attribute:!0,reflect:!0})],z.prototype,"enableResizeScroll",void 0),t([r({type:Boolean,attribute:!0,reflect:!0})],z.prototype,"hoverable",void 0),t([r({type:Number,reflect:!0,attribute:!0})],z.prototype,"minColumnWidth",void 0),t([s()],z.prototype,"stickyLeftIndexes",void 0),t([s()],z.prototype,"stickyRightIndexes",void 0),t([s()],z.prototype,"cellHeight",void 0),t([s()],z.prototype,"headHeight",void 0),t([s()],z.prototype,"widthsInitialized",void 0),t([s()],z.prototype,"lockedWidthColumns",void 0),_export("N",z=t([h("nile-grid")],z));}};});
|
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid.css.cjs.js","../internal/nile-element.cjs.js","./nile-grid.width.cjs.js","./types/nile-grid.enums.cjs.js"],function(_export,_context){"use strict";var t,i,s,e,h,r,o,d,a,l,n,c,u,v,m,p,b,w,f,_templateObject,g;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.state;e=_litDecoratorsJs.query;h=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_nileGridCssCjsJs){o=_nileGridCssCjsJs.s;},function(_internalNileElementCjsJs){d=_internalNileElementCjsJs.N;},function(_nileGridWidthCjsJs){a=_nileGridWidthCjsJs.s;l=_nileGridWidthCjsJs.c;n=_nileGridWidthCjsJs.a;c=_nileGridWidthCjsJs.u;u=_nileGridWidthCjsJs.r;v=_nileGridWidthCjsJs.b;m=_nileGridWidthCjsJs.l;p=_nileGridWidthCjsJs.d;b=_nileGridWidthCjsJs.g;w=_nileGridWidthCjsJs.e;f=_nileGridWidthCjsJs.f;},function(_typesNileGridEnumsCjsJs){}],execute:function execute(){_export("N",g=/*#__PURE__*/function(_d){function g(){var _this;_classCallCheck(this,g);_this=_callSuper(this,g),_this.columnWidths=[],_this.enableScroll=!1,_this.hoverable=!1,_this.raf=0,_this.minColumnWidth=40,_this.stickyLeftIndexes=[],_this.stickyRightIndexes=[],_this.cellHeight=null,_this.headHeight=null,_this.widthsInitialized=!1,_this.lockedWidthColumns=[],_this.prefixSumColumnsWidth=[],_this.stickyColumns=[],_this.bodyRows=[],_this.headRows=[],_this.needsStructureLayout=!1,_this.needsWidthLayout=!1,_this.needsSpanLayout=!1,_this.colCount=0,_this.stickyLeftHeadEls=[],_this.stickyRightHeadEls=[],_this.stickyLeftBodyEls=[],_this.stickyRightBodyEls=[],_this.resizeTimer=0,_this.shadowRaf=0,_this.resizeBaseColumnWidths=[],_this.syncStickyShadowsRaf=function(){_this.shadowRaf||(_this.shadowRaf=requestAnimationFrame(function(){_this.shadowRaf=0,a(_assertThisInitialized(_this));}));},_this.onResize=function(t){t.stopPropagation(),_this.emit("nile-resize",{columnNumber:t.detail.col,columnWidth:t.detail.widthPx});var _t$detail=t.detail,i=_t$detail.col,s=_t$detail.widthPx;if(!_this.resizeBaseColumnWidths)return;l(_this.columnWidths,_this.resizeBaseColumnWidths);var _n=n({target:t.target,col:i,widthPx:s,floor:_this.minColumnWidth,columnWidths:_this.columnWidths}),e=_n.prevW,h=_n.newW,r=_n.delta0;0!==r?(_this.enableScroll?v({grid:_assertThisInitialized(_this),col:i,newW:h}):u({grid:_assertThisInitialized(_this),col:i,prevW:e,newW:h,floor:_this.minColumnWidth}),c(_assertThisInitialized(_this),i)):c(_assertThisInitialized(_this),i);};return _this;}_inherits(g,_d);return _createClass(g,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(g,"connectedCallback",this,3)([]),this.emit("nile-init");}},{key:"scheduleLayout",value:function scheduleLayout(){var _this2=this;this.raf&&cancelAnimationFrame(this.raf),this.raf=requestAnimationFrame(function(){_this2.raf=0,m(_this2,_this2.slotEl,_this2.ensureWidths.bind(_this2),_this2.stickyLeftIndexes,_this2.stickyRightIndexes),a(_this2);});}},{key:"ensureWidths",value:function ensureWidths(t){this.columnWidths.length!==t&&(this.columnWidths=Array(t).fill(0),this.lockedWidthColumns=Array(t).fill(!1));}},{key:"firstUpdated",value:function firstUpdated(){var _this3=this;this.setAttribute("role","table"),p(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this)),this.addEventListener("scroll",this.syncStickyShadowsRaf),this.resizeObserverStickyShadows=new ResizeObserver(function(){return a(_this3);}),this.resizeObserverStickyShadows.observe(this),this.syncStickyShadowsRaf();}},{key:"_attachObserverAndLayout",value:function _attachObserverAndLayout(){var _this$mo,_this4=this,_this$resizeObserver,_this$resizeObserver2,_this$columnWidths;(_this$mo=this.mo)!==null&&_this$mo!==void 0&&_this$mo.disconnect(),this.mo=new MutationObserver(function(){_this4.needsStructureLayout=!0,_this4.needsWidthLayout=!0,_this4.needsSpanLayout=!0,_this4.scheduleLayout();}),(_this$resizeObserver=this.resizeObserver)!==null&&_this$resizeObserver!==void 0&&_this$resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(function(){_this4.resizeTimer&&clearTimeout(_this4.resizeTimer),_this4.resizeTimer=setTimeout(function(){_this4.resizeTimer=0,_this4.needsWidthLayout=!0,_this4.scheduleLayout();},16);});var t=b(this.slotEl),i=w(this.slotEl);if(!t&&!i)return;var s=t!==null&&t!==void 0?t:this;this.mo.observe(s,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["colspan","rowspan","width","lockwidth","sticky"]}),(_this$resizeObserver2=this.resizeObserver)!==null&&_this$resizeObserver2!==void 0&&_this$resizeObserver2.observe(this),this.colCount&&((_this$columnWidths=this.columnWidths)===null||_this$columnWidths===void 0?void 0:_this$columnWidths.length)||(this.needsStructureLayout=!0,this.needsSpanLayout=!0,this.needsWidthLayout=!0,this.scheduleLayout());}},{key:"render",value:function render(){return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-base\" class=\"nile-grid-base\">\n <div part=\"grid-slot-wrapper\">\n <slot part=\"grid-slot\"></slot>\n </div>\n <div part=\"resize-start\" class=\"nile-resize-start\"></div>\n <div part=\"resize-end\" class=\"nile-resize-end\"></div>\n </div>\n "])));}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _superPropGet2,_this$mo2,_this$resizeObserver3,_this$resizeObserverS;this.emit("nile-destroy"),(_superPropGet2=_superPropGet(g,"disconnectedCallback",this,3))!==null&&_superPropGet2!==void 0&&_superPropGet2([]),(_this$mo2=this.mo)!==null&&_this$mo2!==void 0&&_this$mo2.disconnect(),(_this$resizeObserver3=this.resizeObserver)!==null&&_this$resizeObserver3!==void 0&&_this$resizeObserver3.disconnect(),(_this$resizeObserverS=this.resizeObserverStickyShadows)!==null&&_this$resizeObserverS!==void 0&&_this$resizeObserverS.disconnect(),this.raf&&cancelAnimationFrame(this.raf),f(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this));}}],[{key:"styles",get:function get(){return[o];}}]);}(d));t([s()],g.prototype,"columnWidths",void 0),t([e("slot")],g.prototype,"slotEl",void 0),t([e(".nile-resize-start")],g.prototype,"resizeStart",void 0),t([e(".nile-resize-end")],g.prototype,"resizeEnd",void 0),t([e(".shadow-left")],g.prototype,"shadowLeft",void 0),t([e(".shadow-right")],g.prototype,"shadowRight",void 0),t([h({type:Boolean,attribute:!0,reflect:!0})],g.prototype,"enableScroll",void 0),t([h({type:Boolean,attribute:!0,reflect:!0})],g.prototype,"hoverable",void 0),t([h({type:Number,reflect:!0,attribute:!0})],g.prototype,"minColumnWidth",void 0),t([s()],g.prototype,"stickyLeftIndexes",void 0),t([s()],g.prototype,"stickyRightIndexes",void 0),t([s()],g.prototype,"cellHeight",void 0),t([s()],g.prototype,"headHeight",void 0),t([s()],g.prototype,"widthsInitialized",void 0),t([s()],g.prototype,"lockedWidthColumns",void 0),t([s()],g.prototype,"prefixSumColumnsWidth",void 0),t([s()],g.prototype,"stickyColumns",void 0),t([s()],g.prototype,"bodyRows",void 0),t([s()],g.prototype,"headRows",void 0),t([s()],g.prototype,"needsStructureLayout",void 0),t([s()],g.prototype,"needsWidthLayout",void 0),t([s()],g.prototype,"needsSpanLayout",void 0),t([s()],g.prototype,"colCount",void 0),_export("N",g=t([r("nile-grid")],g));}};});
|
|
2
2
|
//# sourceMappingURL=nile-grid.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-grid.cjs.js","sources":["../../../src/nile-grid/nile-grid.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { styles } from './nile-grid.css';\nimport NileElement from '../internal/nile-element';\nimport { rebuildTemplate, syncStickyShadows, layout } from './nile-grid.layout';\nimport { listenToEventListeners, removeEventListeners, getHead, getBody } from './nile-grid.utils';\nimport { computeNewWidth, resizeWithScroll, applyAfterResize, resizeNoScroll } from './nile-grid.resize';\n\n/**\n * Nile grid component.\n *\n * @tag nile-grid\n *\n */\n@customElement('nile-grid')\nexport class NileGrid extends NileElement {\n /**\n * The styles for nile-grid\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /** To set the grid template columns in rebuildTemplate method */\n @state() public colTemplate = '';\n\n /** To store the column widths in the beginning and after resizing */\n @state() public columnWidths: number[] = [];\n\n /** To get the slot element */\n @query('slot') public slotEl!: HTMLSlotElement;\n\n /** To get the first resize line to show the resize handle */\n @query('.nile-resize-start') resizeStart: HTMLElement;\n\n /** To get the last resize line to show the resize handle */\n @query('.nile-resize-end') resizeEnd: HTMLElement;\n\n /** To enable horizontal scrolling when user is resizing */\n @property({ type: Boolean, attribute: true, reflect: true }) enableResizeScroll: boolean = false;\n\n /** To enable hoverable rows */\n @property({ type: Boolean, attribute: true, reflect: true }) hoverable: boolean = false;\n\n /** To store the mutation observer */\n private mo?: MutationObserver;\n\n /** To store the resize observer */\n private resizeObserver?: ResizeObserver;\n\n private resizeObserverStickyShadows?: ResizeObserver;\n\n /** To store the request animation frame */\n private raf = 0;\n\n /** Minimum column width */\n @property({ type: Number, reflect: true, attribute: true }) minColumnWidth = 40;\n\n /** To store the sticky index's */\n @state() public stickyLeftIndexes: number[] = [];\n\n /** To store the sticky index's */\n @state() public stickyRightIndexes: number[] = [];\n\n /** To calculate the rowspan height */\n @state() public cellHeight: number | null = null;\n\n @state() public headHeight: number | null = null;\n\n /** To check if the widths are initialized */\n @state() public widthsInitialized = false;\n\n /** To check if the widths are initialized */\n @state() public lockedWidthColumns: boolean[] = [];\n\n private scheduleLayout() {\n if (this.raf) cancelAnimationFrame(this.raf);\n this.raf = requestAnimationFrame(() => {\n this.raf = 0;\n layout(\n this,\n this.slotEl,\n this.ensureWidths.bind(this),\n rebuildTemplate,\n this.stickyLeftIndexes,\n this.stickyRightIndexes\n );\n syncStickyShadows(this);\n });\n }\n\n private ensureWidths(colCount: number) {\n if (this.columnWidths.length !== colCount) {\n this.columnWidths = Array(colCount).fill('');\n this.lockedWidthColumns = Array(colCount).fill(false);\n }\n }\n\n private onResize = (e: Event) => {\n e.stopPropagation();\n this.emit('nile-resize', {\n columnNumber: (e as CustomEvent).detail.col,\n columnWidth: (e as CustomEvent).detail.widthPx,\n });\n const { col, widthPx } = (e as CustomEvent).detail as {\n col: number;\n widthPx: number;\n };\n const { prevW, newW, delta0 } = computeNewWidth({\n target: e.target as HTMLElement,\n col,\n widthPx,\n floor: this.minColumnWidth,\n columnWidths: this.columnWidths,\n });\n\n if (delta0 === 0) {\n applyAfterResize(this, col);\n return;\n }\n\n if (!this.enableResizeScroll) {\n resizeNoScroll({ grid: this, col, prevW, newW, floor: this.minColumnWidth });\n } else {\n resizeWithScroll({ grid: this, col, newW });\n }\n applyAfterResize(this, col);\n };\n\n protected firstUpdated() {\n this.setAttribute('role', 'table');\n listenToEventListeners(\n this,\n this.onResize,\n this.slotEl,\n this._attachObserverAndLayout.bind(this)\n );\n this.addEventListener('scroll', () => syncStickyShadows(this));\n this.resizeObserverStickyShadows = new ResizeObserver(() => syncStickyShadows(this));\n this.resizeObserverStickyShadows.observe(this);\n syncStickyShadows(this);\n }\n\n private _attachObserverAndLayout() {\n this.mo?.disconnect();\n this.mo = new MutationObserver(() => {\n this.scheduleLayout();\n });\n this.resizeObserver?.disconnect();\n this.resizeObserver = new ResizeObserver(() => {\n layout(\n this,\n this.slotEl,\n this.ensureWidths.bind(this),\n rebuildTemplate,\n this.stickyLeftIndexes,\n this.stickyRightIndexes\n );\n });\n\n const head = getHead(this.slotEl);\n const body = getBody(this.slotEl);\n if (!head && !body) return;\n\n const target = body ?? this;\n this.mo.observe(target, {\n subtree: true,\n childList: true,\n attributes: true,\n attributeFilter: ['colspan', 'rowspan'],\n });\n this.resizeObserver?.observe(this);\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"grid-base\" class=\"nile-grid-base\">\n <slot part=\"grid-slot\"></slot>\n <div part=\"resize-start\" class=\"nile-resize-start\"></div>\n <div part=\"resize-end\" class=\"nile-resize-end\"></div>\n </div>\n `;\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback?.();\n this.mo?.disconnect();\n this.resizeObserver?.disconnect();\n this.resizeObserverStickyShadows?.disconnect();\n\n if (this.raf) cancelAnimationFrame(this.raf);\n removeEventListeners(\n this,\n this.onResize,\n this.slotEl,\n this._attachObserverAndLayout.bind(this)\n );\n }\n\n /* #endregion */\n}\n\nexport default NileGrid;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid': NileGrid;\n }\n}\n"],"names":["NileGrid","_o","z","constructor","this","colTemplate","columnWidths","enableResizeScroll","hoverable","raf","minColumnWidth","stickyLeftIndexes","stickyRightIndexes","cellHeight","headHeight","widthsInitialized","lockedWidthColumns","onResize","e","stopPropagation","emit","columnNumber","detail","col","columnWidth","widthPx","_t$detail","prevW","computeNewWidth","target","floor","newW","delta0","resizeWithScroll","grid","resizeNoScroll","applyAfterResize","_this","_inherits","_createClass","key","value","scheduleLayout","cancelAnimationFrame","requestAnimationFrame","layout","slotEl","ensureWidths","bind","rebuildTemplate","syncStickyShadows","colCount","length","Array","fill","firstUpdated","setAttribute","listenToEventListeners","_attachObserverAndLayout","addEventListener","resizeObserverStickyShadows","ResizeObserver","observe","mo","disconnect","MutationObserver","resizeObserver","head","getHead","body","getBody","subtree","childList","attributes","attributeFilter","_this$resizeObserver2","render","html","_templateObject","_taggedTemplateLiteral","disconnectedCallback","super","removeEventListeners","__decorate","get","styles","NileElement","state","prototype","query","property","type","Boolean","attribute","reflect","Number","customElement"],"mappings":"kpIAsBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAUWC,KAAAA,CAAWC,WAAG,CAAA,EAAA,CAGdD,KAAAA,CAAYE,YAAAA,CAAa,EAYoBF,CAAAA,KAAAA,CAAkBG,kBAAY,CAAA,CAAA,CAAA,CAG9BH,KAAAA,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AMC,CAAAA,OAAAA,CAAAA,CAAS,KAAmC9F,CAAAwF,CAAAA,SAAAA,CAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CAc5BL,EAAA,CAA3DO,CAAAA,CAAS,CAAEC,IAAAA,CAAMI,OAAQD,OAAS,CAAA,CAAA,CAAA,CAAMD,SAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA4B7F,EAAAwF,SAAA,CAAA,gBAAA,CAAA,IAAA,EAGhEL,CAAAA,CAAAA,CAAAA,CAAA,CAAfI,CAAgDvF,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAwF,SAAA,CAAA,mBAAA,CAAA,IAAA,IAGjCL,CAAA,CAAA,CAAfI,CAAiDvF,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAwF,UAAA,oBAAA,CAAA,IAAA,EAAA,CAAA,CAGlCL,CAAA,CAAA,CAAfI,KAAgDvF,CAAAwF,CAAAA,SAAAA,CAAA,YAAA,CAAA,IAAA,EAAA,CAAA,CAEjCL,EAAA,CAAfI,CAAAA,CAAAA,CAAAA,CAAAA,CAAgDvF,CAAAwF,CAAAA,SAAAA,CAAA,iBAAA,EAGjCL,CAAAA,CAAAA,CAAAA,CAAA,CAAfI,CAAAA,CAAAA,CAAAA,CAAAA,CAAyCvF,EAAAwF,SAAA,CAAA,mBAAA,CAAA,IAAA,EAG1BL,CAAAA,CAAAA,CAAAA,CAAA,CAAfI,CAAkDvF,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAwF,SAAA,CAAA,oBAAA,CAAA,IAAA,gBA3DxCxF,CAAQmF,CAAAA,CAAAA,CAAA,CADpBa,CAAAA,CAAc,cACFhG"}
|
|
1
|
+
{"version":3,"file":"nile-grid.cjs.js","sources":["../../../src/nile-grid/nile-grid.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { styles } from './nile-grid.css';\nimport NileElement from '../internal/nile-element';\nimport { syncStickyShadows, layout } from './nile-grid.layout';\nimport { listenToEventListeners, removeEventListeners, getHead, getBody, copyArrayValuesInPlace } from './nile-grid.utils';\nimport { computeNewWidth, resizeWithScroll, resizeNoScroll, updateResizeGuides } from './nile-grid.resize';\nimport { PrefixColumn } from './types/nile-grid.types';\n\n/**\n * Nile grid component.\n *\n * @tag nile-grid\n *\n */\n@customElement('nile-grid')\nexport class NileGrid extends NileElement {\n /**\n * The styles for nile-grid\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /** To store the column widths in the beginning and after resizing */\n @state() public columnWidths: number[] = [];\n\n /** To get the slot element */\n @query('slot') public slotEl!: HTMLSlotElement;\n\n /** To get the first resize line to show the resize handle */\n @query('.nile-resize-start') resizeStart: HTMLElement;\n\n /** To get the last resize line to show the resize handle */\n @query('.nile-resize-end') resizeEnd: HTMLElement;\n\n /** To get the last resize line to show the resize handle */\n @query('.shadow-left') shadowLeft: HTMLElement;\n\n /** To get the last resize line to show the resize handle */\n @query('.shadow-right') shadowRight: HTMLElement;\n\n /** To enable horizontal scrolling when user is resizing */\n @property({ type: Boolean, attribute: true, reflect: true }) enableScroll: boolean = false;\n\n /** To enable hoverable rows */\n @property({ type: Boolean, attribute: true, reflect: true }) hoverable: boolean = false;\n\n /** To store the mutation observer */\n private mo?: MutationObserver;\n\n /** To store the resize observer */\n private resizeObserver?: ResizeObserver;\n\n private resizeObserverStickyShadows?: ResizeObserver;\n\n /** To store the request animation frame */\n private raf = 0;\n\n /** Minimum column width */\n @property({ type: Number, reflect: true, attribute: true }) minColumnWidth = 40;\n\n /** To store the sticky index's */\n @state() public stickyLeftIndexes: number[] = [];\n\n /** To store the sticky index's */\n @state() public stickyRightIndexes: number[] = [];\n\n /** To calculate the rowspan height */\n @state() public cellHeight: number | null = null;\n\n @state() public headHeight: number | null = null;\n\n /** To check if the widths are initialized */\n @state() public widthsInitialized = false;\n\n /** To check if the widths are initialized */\n @state() public lockedWidthColumns: boolean[] = [];\n\n /** prefix columns width */\n @state() public prefixSumColumnsWidth: PrefixColumn[] = [];\n\n /** prefix columns width */\n @state() public stickyColumns: number[] = [];\n\n /** body rows */\n @state() public bodyRows: HTMLElement[] = [];\n\n /** head rows */\n @state() public headRows: HTMLElement[] = [];\n\n @state() public needsStructureLayout = false;\n\n @state() public needsWidthLayout = false;\n\n @state() public needsSpanLayout = false;\n\n @state() public colCount = 0;\n \n public shadowLeftVisibleSticky?: boolean;\n\n public shadowRightVisibleSticky?: boolean;\n\n public stickyLeftHeadEls: HTMLElement[] = [];\n\n public stickyRightHeadEls: HTMLElement[] = [];\n\n public stickyLeftBodyEls: HTMLElement[] = [];\n\n public stickyRightBodyEls: HTMLElement[] = [];\n\n private resizeTimer: any = 0;\n\n /** To throttle sticky shadow updates */\n private shadowRaf = 0;\n\n public resizeBaseColumnWidths: number[] = [];\n\n constructor() {\n super();\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.emit('nile-init');\n }\n\n private syncStickyShadowsRaf = () => {\n if (this.shadowRaf) return;\n this.shadowRaf = requestAnimationFrame(() => {\n this.shadowRaf = 0;\n syncStickyShadows(this);\n });\n };\n\n\n private scheduleLayout() {\n if (this.raf) cancelAnimationFrame(this.raf);\n this.raf = requestAnimationFrame(() => {\n this.raf = 0;\n layout(\n this,\n this.slotEl,\n this.ensureWidths.bind(this),\n this.stickyLeftIndexes,\n this.stickyRightIndexes\n );\n syncStickyShadows(this);\n });\n }\n\n private ensureWidths(colCount: number) {\n if (this.columnWidths.length !== colCount) {\n this.columnWidths = Array(colCount).fill(0);\n this.lockedWidthColumns = Array(colCount).fill(false); \n }\n }\n\n private onResize = (e: Event) => {\n e.stopPropagation();\n this.emit('nile-resize', {\n columnNumber: (e as CustomEvent).detail.col,\n columnWidth: (e as CustomEvent).detail.widthPx,\n });\n const { col, widthPx } = (e as CustomEvent).detail as {\n col: number;\n widthPx: number;\n };\n if (!this.resizeBaseColumnWidths) return;\n \n copyArrayValuesInPlace(this.columnWidths, this.resizeBaseColumnWidths);\n const { prevW, newW, delta0 } = computeNewWidth({\n target: e.target as HTMLElement,\n col,\n widthPx,\n floor: this.minColumnWidth,\n columnWidths: this.columnWidths,\n });\n\n if (delta0 === 0) {\n updateResizeGuides(this, col);\n return;\n }\n\n if (!this.enableScroll) {\n resizeNoScroll({ grid: this, col, prevW, newW, floor: this.minColumnWidth });\n } else {\n resizeWithScroll({ grid: this, col, newW });\n }\n updateResizeGuides(this, col);\n };\n\n protected firstUpdated() {\n this.setAttribute('role', 'table');\n listenToEventListeners(\n this,\n this.onResize,\n this.slotEl,\n this._attachObserverAndLayout.bind(this)\n );\n this.addEventListener('scroll', this.syncStickyShadowsRaf);\n this.resizeObserverStickyShadows = new ResizeObserver(() => syncStickyShadows(this));\n this.resizeObserverStickyShadows.observe(this);\n this.syncStickyShadowsRaf();\n }\n\n private _attachObserverAndLayout() {\n this.mo?.disconnect();\n this.mo = new MutationObserver(() => {\n this.needsStructureLayout = true;\n this.needsWidthLayout = true;\n this.needsSpanLayout = true;\n this.scheduleLayout();\n });\n this.resizeObserver?.disconnect();\n this.resizeObserver = new ResizeObserver(() => {\n if (this.resizeTimer) clearTimeout(this.resizeTimer);\n this.resizeTimer = setTimeout(() => {\n this.resizeTimer = 0;\n this.needsWidthLayout = true;\n this.scheduleLayout();\n }, 16);\n });\n\n const head = getHead(this.slotEl);\n const body = getBody(this.slotEl);\n \n if (!head && !body) return;\n const target = head ?? this;\n this.mo.observe(target, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['colspan', 'rowspan', 'width', 'lockwidth', 'sticky']\n });\n this.resizeObserver?.observe(this);\n\n if (!this.colCount || !this.columnWidths?.length) {\n this.needsStructureLayout = true;\n this.needsSpanLayout = true;\n this.needsWidthLayout = true;\n this.scheduleLayout();\n }\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"grid-base\" class=\"nile-grid-base\">\n <div part=\"grid-slot-wrapper\">\n <slot part=\"grid-slot\"></slot>\n </div>\n <div part=\"resize-start\" class=\"nile-resize-start\"></div>\n <div part=\"resize-end\" class=\"nile-resize-end\"></div>\n </div>\n `;\n }\n\n disconnectedCallback(): void {\n this.emit('nile-destroy');\n super.disconnectedCallback?.();\n this.mo?.disconnect();\n this.resizeObserver?.disconnect();\n this.resizeObserverStickyShadows?.disconnect();\n\n if (this.raf) cancelAnimationFrame(this.raf);\n removeEventListeners(\n this,\n this.onResize,\n this.slotEl,\n this._attachObserverAndLayout.bind(this)\n );\n }\n\n /* #endregion */\n}\n\nexport default NileGrid;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid': NileGrid;\n }\n}\n"],"names":["NileGrid","g","constructor","super","this","columnWidths","enableScroll","hoverable","raf","minColumnWidth","stickyLeftIndexes","stickyRightIndexes","cellHeight","headHeight","widthsInitialized","lockedWidthColumns","prefixSumColumnsWidth","stickyColumns","bodyRows","headRows","needsStructureLayout","needsWidthLayout","needsSpanLayout","colCount","stickyLeftHeadEls","stickyRightHeadEls","stickyLeftBodyEls","stickyRightBodyEls","resizeTimer","shadowRaf","resizeBaseColumnWidths","syncStickyShadowsRaf","requestAnimationFrame","syncStickyShadows","onResize","e","stopPropagation","emit","columnNumber","detail","col","columnWidth","widthPx","_t$detail","copyArrayValuesInPlace","_n","computeNewWidth","target","floor","prevW","newW","delta0","resizeWithScroll","grid","resizeNoScroll","updateResizeGuides","_this","_inherits","_d","_createClass","key","value","connectedCallback","scheduleLayout","cancelAnimationFrame","layout","slotEl","ensureWidths","bind","length","Array","fill","firstUpdated","setAttribute","listenToEventListeners","_attachObserverAndLayout","addEventListener","resizeObserverStickyShadows","ResizeObserver","observe","mo","disconnect","MutationObserver","_this$resizeObserver","resizeObserver","clearTimeout","setTimeout","head","getHead","body","getBody","childList","subtree","attributes","attributeFilter","render","html","_templateObject","_taggedTemplateLiteral","disconnectedCallback","_superPropGet2","_superPropGet","_this$mo2","removeEventListeners","__decorate","get","styles","NileElement","state","prototype","query","property","type","Boolean","attribute","reflect","Number","customElement"],"mappings":"ulIAuBaA,CAAAA,uBAAAA,EAAAA,EAuGX,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,EACEC,KAAAA,CAAAA,UAAAA,MAAAA,CAAAA,EA9FcC,KAAAA,CAAYC,YAAAA,CAAa,GAkBoBD,KAAAA,CAAYE,YAAAA,CAAAA,CAAY,EAGxBF,KAAAA,CAASG,SAAAA,CAAAA,CAAY,CAW1EH,CAAAA,KAAAA,CAAGI,GAAG,CAAA,CAAA,CAG8CJ,KAAAA,CAAcK,cAAG,CAAA,EAAA,CAG7DL,KAAAA,CAAiBM,iBAAa,CAAA,EAAA,CAG9BN,KAAAA,CAAkBO,kBAAa,CAAA,EAAA,CAG/BP,KAAAA,CAAUQ,UAAAA,CAAkB,IAE5BR,CAAAA,KAAAA,CAAUS,WAAkB,IAG5BT,CAAAA,KAAAA,CAAiBU,mBAAG,CAGpBV,CAAAA,KAAAA,CAAkBW,mBAAc,EAGhCX,CAAAA,KAAAA,CAAqBY,qBAAmB,CAAA,EAAA,CAGxCZ,KAAAA,CAAaa,aAAAA,CAAa,GAG1Bb,KAAAA,CAAQc,QAAAA,CAAkB,GAG1Bd,KAAAA,CAAQe,QAAAA,CAAkB,GAE1Bf,KAAAA,CAAoBgB,oBAAAA,CAAAA,CAAG,CAEvBhB,CAAAA,KAAAA,CAAgBiB,gBAAG,CAAA,CAAA,CAAA,CAEnBjB,KAAAA,CAAekB,eAAG,CAAA,CAAA,CAAA,CAElBlB,KAAAA,CAAQmB,QAAG,CAAA,CAAA,CAMpBnB,KAAAA,CAAiBoB,iBAAkB,CAAA,EAAA,CAEnCpB,KAAAA,CAAkBqB,kBAAAA,CAAkB,EAEpCrB,CAAAA,KAAAA,CAA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CAAAA,CAAA6G,SAAA,CAAA,UAAA,CAAA,IAAA,IAE7BL,CAAA,CAAA,CAAfI,CAA4C5G,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6G,SAAA,CAAA,sBAAA,CAAA,IAAA,IAE7BL,CAAA,CAAA,CAAfI,CAAwC5G,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6G,SAAA,CAAA,kBAAA,CAAA,IAAA,IAEzBL,CAAA,CAAA,CAAfI,CAAuC5G,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6G,SAAA,CAAA,iBAAA,CAAA,IAAA,IAExBL,CAAA,CAAA,CAAfI,CAA4B5G,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6G,SAAA,CAAA,UAAA,CAAA,IAAA,EAlFlB7G,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAQwG,CAAA,CAAA,CADpBa,CAAc,CAAA,WAAA,CAAA,CAAA,CACFrH"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",r=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --min-width: 180px;\n display: grid;\n grid-template-rows: auto;\n overflow: auto;\n inline-size: 100%;\n position: relative;\n box-sizing: border-box;\n border: 1px solid var(--nile-colors-neutral-400, , var(--ng-colors-border-secondary));\n border-radius: var(--nile-radius-md, var(--ng-radius-xl));\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n max-height: 100%;\n width: 100%;\n min-width: var(--min-width);\n box-shadow: var(--nile-box-shadow-3, var(--ng-shadow-xs));\n }\n\n ::slotted(nile-grid-head),\n ::slotted(nile-grid-body) {\n inline-size: 100%;\n }\n\n .nile-resize-start,\n .nile-resize-end {\n position: absolute;\n z-index: 4;\n background-color: var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n width: 2px;\n height: 100%;\n top: 0;\n display: none;\n bottom: 0;\n }\n"]))));}};});
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",r=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --min-width: 180px;\n display: grid;\n grid-template-rows: auto;\n overflow: auto;\n inline-size: 100%;\n position: relative;\n box-sizing: border-box;\n border: 1px solid var(--nile-colors-neutral-400, , var(--ng-colors-border-secondary));\n border-radius: var(--nile-radius-md, var(--ng-radius-xl));\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n max-height: 100%;\n width: 100%;\n min-width: var(--min-width);\n box-shadow: var(--nile-box-shadow-3, var(--ng-shadow-xs));\n overscroll-behavior: none;\n }\n\n ::slotted(nile-grid-head),\n ::slotted(nile-grid-body) {\n inline-size: 100%;\n }\n\n .nile-resize-start,\n .nile-resize-end {\n position: absolute;\n z-index: 4;\n background-color: var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n width: 2px;\n height: 100%;\n top: 0;\n display: none;\n bottom: 0;\n }\n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-grid.css.cjs.js.map
|