@aquera/nile-elements 0.1.70-beta-1.0 → 0.1.70-beta-1.2
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 +15 -0
- package/demo/index.html +248 -332
- package/dist/{fixture-28d63bc4.cjs.js → fixture-5b79f853.cjs.js} +2 -2
- package/dist/{fixture-28d63bc4.cjs.js.map → fixture-5b79f853.cjs.js.map} +1 -1
- package/dist/{fixture-ba65eb22.esm.js → fixture-90b199c4.esm.js} +1 -1
- package/dist/{fixture-78a015b8.esm.js → fixture-cf7bfcf5.esm.js} +1 -1
- package/dist/{fixture-324a7ef9.cjs.js → fixture-dbd66009.cjs.js} +2 -2
- package/dist/{fixture-324a7ef9.cjs.js.map → fixture-dbd66009.cjs.js.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +103 -118
- package/dist/internal/resizable-table-helper.cjs.js +1 -1
- package/dist/internal/resizable-table-helper.cjs.js.map +1 -1
- package/dist/internal/resizable-table-helper.esm.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.test.cjs.js +1 -1
- package/dist/nile-card/nile-card.test.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-code-editor/extensionSetup.cjs.js +3 -3
- package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -1
- package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
- package/dist/nile-code-editor/theme.cjs.js +1 -1
- package/dist/nile-code-editor/theme.cjs.js.map +1 -1
- package/dist/nile-code-editor/theme.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.test.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-link/nile-link.test.cjs.js +1 -1
- package/dist/nile-link/nile-link.test.esm.js +1 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.test.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.esm.js +2 -2
- package/dist/nile-option-group/nile-option-group.cjs.js +1 -1
- package/dist/nile-option-group/nile-option-group.cjs.js.map +1 -1
- package/dist/nile-option-group/nile-option-group.esm.js +5 -5
- package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.test.esm.js +1 -1
- package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.test.esm.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.test.esm.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +9 -9
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.esm.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
- package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
- package/dist/nile-table-body/nile-table-body.esm.js +3 -2
- package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
- package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
- package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.esm.js +2 -2
- package/dist/nile-table-row/nile-table-row.cjs.js +1 -1
- package/dist/nile-table-row/nile-table-row.cjs.js.map +1 -1
- package/dist/nile-table-row/nile-table-row.css.cjs.js +1 -1
- package/dist/nile-table-row/nile-table-row.css.cjs.js.map +1 -1
- package/dist/nile-table-row/nile-table-row.css.esm.js +0 -47
- package/dist/nile-table-row/nile-table-row.esm.js +6 -33
- package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal/resizable-helper.d.ts +59 -0
- package/dist/src/internal/resizable-helper.js +115 -0
- package/dist/src/internal/resizable-helper.js.map +1 -0
- package/dist/src/internal/resizable-styles.d.ts +16 -0
- package/dist/src/internal/resizable-styles.js +144 -0
- package/dist/src/internal/resizable-styles.js.map +1 -0
- package/dist/src/internal/resizable-table-helper.d.ts +5 -0
- package/dist/src/internal/resizable-table-helper.js +27 -4
- package/dist/src/internal/resizable-table-helper.js.map +1 -1
- package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +17 -0
- package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +310 -0
- package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +34 -0
- package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +31 -0
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +2 -0
- package/dist/src/nile-code-editor/nile-code-editor.js +22 -5
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-code-editor/theme.d.ts +9 -0
- package/dist/src/nile-code-editor/theme.js +9 -0
- package/dist/src/nile-code-editor/theme.js.map +1 -1
- package/dist/src/nile-grid/data-processor.d.ts +37 -0
- package/dist/src/nile-grid/data-processor.js +122 -0
- package/dist/src/nile-grid/data-processor.js.map +1 -0
- package/dist/src/nile-grid/event-handlers.d.ts +35 -0
- package/dist/src/nile-grid/event-handlers.js +158 -0
- package/dist/src/nile-grid/event-handlers.js.map +1 -0
- package/dist/src/nile-grid/index.d.ts +5 -0
- package/dist/src/nile-grid/index.js +6 -0
- package/dist/src/nile-grid/index.js.map +1 -0
- package/dist/src/nile-grid/nile-grid.css.d.ts +1 -0
- package/dist/src/nile-grid/nile-grid.css.js +120 -0
- package/dist/src/nile-grid/nile-grid.css.js.map +1 -0
- package/dist/src/nile-grid/nile-grid.d.ts +39 -0
- package/dist/src/nile-grid/nile-grid.js +182 -0
- package/dist/src/nile-grid/nile-grid.js.map +1 -0
- package/dist/src/nile-grid/renderer.d.ts +8 -0
- package/dist/src/nile-grid/renderer.js +78 -0
- package/dist/src/nile-grid/renderer.js.map +1 -0
- package/dist/src/nile-grid/resize-handler.d.ts +4 -0
- package/dist/src/nile-grid/resize-handler.js +36 -0
- package/dist/src/nile-grid/resize-handler.js.map +1 -0
- package/dist/src/nile-grid/types.d.ts +32 -0
- package/dist/src/nile-grid/types.js +2 -0
- package/dist/src/nile-grid/types.js.map +1 -0
- package/dist/src/nile-grid/utils.d.ts +4 -0
- package/dist/src/nile-grid/utils.js +32 -0
- package/dist/src/nile-grid/utils.js.map +1 -0
- package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +47 -0
- package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +16 -0
- package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +75 -0
- package/dist/src/nile-option/nile-option.d.ts +1 -0
- package/dist/src/nile-option/nile-option.js +5 -0
- package/dist/src/nile-option/nile-option.js.map +1 -1
- package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +22 -0
- package/dist/src/nile-select/nile-select.d.ts +6 -0
- package/dist/src/nile-select/nile-select.js +59 -1
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-table-body/nile-table-body.d.ts +1 -3
- package/dist/src/nile-table-body/nile-table-body.js +3 -31
- package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
- package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +9 -0
- package/dist/src/nile-table-body/virtual-scroll-helper.js +24 -0
- package/dist/src/nile-table-body/virtual-scroll-helper.js.map +1 -0
- package/dist/src/nile-table-cell-item/nile-table-cell-item.d.ts +2 -1
- package/dist/src/nile-table-cell-item/nile-table-cell-item.js +12 -1
- package/dist/src/nile-table-cell-item/nile-table-cell-item.js.map +1 -1
- package/dist/src/nile-table-header-item/nile-table-header-item.d.ts +2 -1
- package/dist/src/nile-table-header-item/nile-table-header-item.js +12 -1
- package/dist/src/nile-table-header-item/nile-table-header-item.js.map +1 -1
- package/dist/src/nile-table-row/nile-table-row.css.js +0 -47
- package/dist/src/nile-table-row/nile-table-row.css.js.map +1 -1
- package/dist/src/nile-table-row/nile-table-row.d.ts +1 -10
- package/dist/src/nile-table-row/nile-table-row.js +9 -88
- package/dist/src/nile-table-row/nile-table-row.js.map +1 -1
- package/dist/src/nile-virtual-table-body/index.d.ts +2 -0
- package/dist/src/nile-virtual-table-body/index.js +3 -0
- package/dist/src/nile-virtual-table-body/index.js.map +1 -0
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +1 -0
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +44 -0
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +1 -0
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +50 -0
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +135 -0
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +1 -0
- package/dist/src/nile-virtual-table-body/renderer.d.ts +16 -0
- package/dist/src/nile-virtual-table-body/renderer.js +49 -0
- package/dist/src/nile-virtual-table-body/renderer.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/src/index.ts +2 -1
- package/src/internal/resizable-table-helper.ts +31 -8
- package/src/nile-code-editor/nile-code-editor.ts +25 -6
- package/src/nile-code-editor/theme.ts +11 -1
- package/src/nile-option/nile-option.ts +3 -0
- package/src/nile-option-group/index.ts +1 -0
- package/src/nile-option-group/nile-option-group.css.ts +60 -0
- package/src/nile-option-group/nile-option-group.interface.ts +25 -0
- package/src/nile-option-group/nile-option-group.ts +84 -0
- package/src/nile-select/nile-select.interface.ts +5 -0
- package/src/nile-select/nile-select.ts +74 -2
- package/src/nile-table-body/nile-table-body.ts +3 -27
- package/src/nile-table-cell-item/nile-table-cell-item.ts +15 -1
- package/src/nile-table-header-item/nile-table-header-item.ts +15 -1
- package/src/nile-table-row/nile-table-row.css.ts +0 -47
- package/src/nile-table-row/nile-table-row.ts +5 -87
- package/vscode-html-custom-data.json +37 -29
- package/dist/aquera-nile-elements-0.1.57-beta-2.0.tgz +0 -0
- package/dist/axe.min-2b379f29.cjs.js +0 -12
- package/dist/axe.min-2b379f29.cjs.js.map +0 -1
- package/dist/axe.min-c2cd8733.esm.js +0 -12
- package/dist/fixture-add72f26.esm.js +0 -569
- package/dist/fixture-c1bd203f.cjs.js +0 -395
- package/dist/fixture-c1bd203f.cjs.js.map +0 -1
- package/dist/fixture-cb376a7f.cjs.js +0 -395
- package/dist/fixture-cb376a7f.cjs.js.map +0 -1
- package/dist/fixture-f2693d97.esm.js +0 -569
- package/dist/src/internal/expandable-row-helper.d.ts +0 -13
- package/dist/src/internal/expandable-row-helper.js +0 -37
- package/dist/src/internal/expandable-row-helper.js.map +0 -1
- package/dist/src/internal/expandable-row-styles.d.ts +0 -11
- package/dist/src/internal/expandable-row-styles.js +0 -27
- package/dist/src/internal/expandable-row-styles.js.map +0 -1
- package/dist/src/internal/table-expandable-helper.d.ts +0 -0
- package/dist/src/internal/table-expandable-helper.js +0 -2
- package/dist/src/internal/table-expandable-helper.js.map +0 -1
- package/dist/src/internal/table-row-expandable-helper.d.ts +0 -12
- package/dist/src/internal/table-row-expandable-helper.js +0 -32
- package/dist/src/internal/table-row-expandable-helper.js.map +0 -1
- package/dist/src/internal/table-row-expandable-styles.d.ts +0 -11
- package/dist/src/internal/table-row-expandable-styles.js +0 -12
- package/dist/src/internal/table-row-expandable-styles.js.map +0 -1
- package/dist/src/nile-group-header/index.d.ts +0 -1
- package/dist/src/nile-group-header/index.js +0 -2
- package/dist/src/nile-group-header/index.js.map +0 -1
- package/dist/src/nile-group-header/nile-group-header.css.d.ts +0 -12
- package/dist/src/nile-group-header/nile-group-header.css.js +0 -30
- package/dist/src/nile-group-header/nile-group-header.css.js.map +0 -1
- package/dist/src/nile-group-header/nile-group-header.d.ts +0 -19
- package/dist/src/nile-group-header/nile-group-header.js +0 -36
- package/dist/src/nile-group-header/nile-group-header.js.map +0 -1
- package/dist/src/nile-group-header/nile-option-header.css.d.ts +0 -12
- package/dist/src/nile-group-header/nile-option-header.css.js +0 -30
- package/dist/src/nile-group-header/nile-option-header.css.js.map +0 -1
- package/dist/src/nile-group-header/nile-option-header.d.ts +0 -33
- package/dist/src/nile-group-header/nile-option-header.js +0 -51
- package/dist/src/nile-group-header/nile-option-header.js.map +0 -1
- package/dist/src/nile-option-header/index.d.ts +0 -1
- package/dist/src/nile-option-header/index.js +0 -2
- package/dist/src/nile-option-header/index.js.map +0 -1
- package/dist/src/nile-option-header/nile-option-header.css.d.ts +0 -12
- package/dist/src/nile-option-header/nile-option-header.css.js +0 -30
- package/dist/src/nile-option-header/nile-option-header.css.js.map +0 -1
- package/dist/src/nile-option-header/nile-option-header.d.ts +0 -33
- package/dist/src/nile-option-header/nile-option-header.js +0 -51
- package/dist/src/nile-option-header/nile-option-header.js.map +0 -1
- package/dist/src/nile-table-row/TableRowExpandableHelper.d.ts +0 -9
- package/dist/src/nile-table-row/TableRowExpandableHelper.js +0 -26
- package/dist/src/nile-table-row/TableRowExpandableHelper.js.map +0 -1
- package/dist/src/nile-table-row/helper.ts.d.ts +0 -37
- package/dist/src/nile-table-row/helper.ts.js +0 -105
- package/dist/src/nile-table-row/helper.ts.js.map +0 -1
- package/dist/src/nile-table-row/nile-table-row-expandable.d.ts +0 -37
- package/dist/src/nile-table-row/nile-table-row-expandable.js +0 -105
- package/dist/src/nile-table-row/nile-table-row-expandable.js.map +0 -1
- package/dist/src/nile-table-row-expandable/index.d.ts +0 -1
- package/dist/src/nile-table-row-expandable/index.js +0 -2
- package/dist/src/nile-table-row-expandable/index.js.map +0 -1
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.d.ts +0 -12
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.js +0 -17
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.js.map +0 -1
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.d.ts +0 -37
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.js +0 -103
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.js.map +0 -1
- package/dist/src/nile-tooltip/nile-tooltip-utils.d.ts +0 -18
- package/dist/src/nile-tooltip/nile-tooltip-utils.js +0 -216
- package/dist/src/nile-tooltip/nile-tooltip-utils.js.map +0 -1
- package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +0 -1
- package/dist/src/nile-tooltip/nile-tooltip.test.js +0 -148
- package/dist/src/nile-tooltip/nile-tooltip.test.js.map +0 -1
@@ -1,26 +0,0 @@
|
|
1
|
-
import { html } from 'lit';
|
2
|
-
/**
|
3
|
-
* Helper class to manage expandable content functionality for nile-table-row component
|
4
|
-
*/
|
5
|
-
export class TableRowExpandableHelper {
|
6
|
-
constructor(component) {
|
7
|
-
this.component = component;
|
8
|
-
}
|
9
|
-
renderExpandableContent() {
|
10
|
-
const component = this.component;
|
11
|
-
return html `
|
12
|
-
<div class="expandable-content">
|
13
|
-
<nile-table-row-expandable
|
14
|
-
expandable
|
15
|
-
>
|
16
|
-
<slot name="expandableIcon">
|
17
|
-
|
18
|
-
</slot>
|
19
|
-
<slot></slot>
|
20
|
-
<slot name="expanded"></slot>
|
21
|
-
</nile-table-row-expandable>
|
22
|
-
</div>
|
23
|
-
`;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
//# sourceMappingURL=TableRowExpandableHelper.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TableRowExpandableHelper.js","sourceRoot":"","sources":["../../../src/nile-table-row/TableRowExpandableHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAGpC,YAAY,SAAsB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;IAED,uBAAuB;QACtB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAgB,CAAC;QAExC,OAAO,IAAI,CAAA;;;;;;;;;;;;KAYR,CAAC;IACL,CAAC;CACD","sourcesContent":["import { html } from 'lit';\nimport type NileElement from '../internal/nile-element';\n\n/**\n * Helper class to manage expandable content functionality for nile-table-row component\n */\nexport class TableRowExpandableHelper {\n\tprivate component: NileElement;\n\n\tconstructor(component: NileElement) {\n\t\tthis.component = component;\n\t}\n\n\trenderExpandableContent(): any {\n\t\tconst component = this.component as any;\n\n\t\treturn html`\n <div class=\"expandable-content\">\n <nile-table-row-expandable\n\t\t\t\t\texpandable\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expandableIcon\">\n\t\t\t\t\t\t\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t\t<slot name=\"expanded\"></slot>\n\t\t\t\t</nile-table-row-expandable>\n </div>\n `;\n\t}\n}"]}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright Aquera Inc 2025
|
3
|
-
*
|
4
|
-
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
import { CSSResultArray, TemplateResult } from 'lit';
|
8
|
-
import NileElement from '../internal/nile-element';
|
9
|
-
/**
|
10
|
-
*nile-table-row component.
|
11
|
-
*
|
12
|
-
* @tag nile-table-row
|
13
|
-
*
|
14
|
-
*/
|
15
|
-
export declare class NileTableRowExpandable extends NileElement {
|
16
|
-
/**
|
17
|
-
* The styles for TableRow
|
18
|
-
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
19
|
-
*/
|
20
|
-
static get styles(): CSSResultArray;
|
21
|
-
/**
|
22
|
-
* Render method
|
23
|
-
* @slot This is a slot test
|
24
|
-
*/
|
25
|
-
expandable: boolean;
|
26
|
-
expanded: boolean;
|
27
|
-
private _expandedSlot;
|
28
|
-
private toggleExpand;
|
29
|
-
private handleSortingAlter;
|
30
|
-
render(): TemplateResult;
|
31
|
-
}
|
32
|
-
export default NileTableRowExpandable;
|
33
|
-
declare global {
|
34
|
-
interface HTMLElementTagNameMap {
|
35
|
-
'nile-table-row-expandable-sdf': NileTableRowExpandable;
|
36
|
-
}
|
37
|
-
}
|
@@ -1,105 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright Aquera Inc 2025
|
3
|
-
*
|
4
|
-
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
import { __decorate } from "tslib";
|
8
|
-
import { html, } from 'lit';
|
9
|
-
import { customElement, query, property } from 'lit/decorators.js';
|
10
|
-
import { styles } from './nile-table-row.css';
|
11
|
-
import NileElement from '../internal/nile-element';
|
12
|
-
/**
|
13
|
-
*nile-table-row component.
|
14
|
-
*
|
15
|
-
* @tag nile-table-row
|
16
|
-
*
|
17
|
-
*/
|
18
|
-
let NileTableRowExpandable = class NileTableRowExpandable extends NileElement {
|
19
|
-
constructor() {
|
20
|
-
super(...arguments);
|
21
|
-
/* #endregion */
|
22
|
-
/* #region Methods */
|
23
|
-
/**
|
24
|
-
* Render method
|
25
|
-
* @slot This is a slot test
|
26
|
-
*/
|
27
|
-
this.expandable = false;
|
28
|
-
this.expanded = false;
|
29
|
-
/* #endregion */
|
30
|
-
}
|
31
|
-
/**
|
32
|
-
* The styles for TableRow
|
33
|
-
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
34
|
-
*/
|
35
|
-
static get styles() {
|
36
|
-
return [styles];
|
37
|
-
}
|
38
|
-
toggleExpand(e) {
|
39
|
-
this.expanded = !this.expanded;
|
40
|
-
this.dispatchEvent(new CustomEvent('nile-change', {
|
41
|
-
detail: { expanded: this.expanded },
|
42
|
-
bubbles: true,
|
43
|
-
composed: true,
|
44
|
-
}));
|
45
|
-
}
|
46
|
-
handleSortingAlter(event) {
|
47
|
-
const header_items = [
|
48
|
-
...this.querySelectorAll('nile-table-header-item'),
|
49
|
-
];
|
50
|
-
for (let i = 0; i < header_items.length; i++) {
|
51
|
-
const header = header_items[i];
|
52
|
-
const haveIcon = header.textContent == event.detail.value.curr_sort_string;
|
53
|
-
if (!haveIcon) {
|
54
|
-
header.sorting_ct = 0;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
render() {
|
59
|
-
return html `
|
60
|
-
<div part="row-container" class="row-container">
|
61
|
-
<div
|
62
|
-
part="nile-row"
|
63
|
-
class="row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}"
|
64
|
-
@nile-click-sort="${this.handleSortingAlter}"
|
65
|
-
>
|
66
|
-
${this.expandable
|
67
|
-
? html `
|
68
|
-
<slot name="expandableIcon">
|
69
|
-
<nile-icon
|
70
|
-
class="expand-icon"
|
71
|
-
name="${this.expanded ? 'chevron-up' : 'chevron-down'}"
|
72
|
-
@click=${this.toggleExpand}
|
73
|
-
role="button"
|
74
|
-
size="10"
|
75
|
-
aria-label="${this.expanded ? 'Collapse row' : 'Expand row'}">
|
76
|
-
</nile-icon> </slot>`
|
77
|
-
: null}
|
78
|
-
<slot></slot>
|
79
|
-
</div>
|
80
|
-
|
81
|
-
${this.expandable && this.expanded
|
82
|
-
? html `
|
83
|
-
<div class="expanded-content">
|
84
|
-
<slot name="expanded"></slot>
|
85
|
-
</div>`
|
86
|
-
: null}
|
87
|
-
</div>
|
88
|
-
`;
|
89
|
-
}
|
90
|
-
};
|
91
|
-
__decorate([
|
92
|
-
property({ type: Boolean, reflect: true })
|
93
|
-
], NileTableRowExpandable.prototype, "expandable", void 0);
|
94
|
-
__decorate([
|
95
|
-
property({ type: Boolean, reflect: true })
|
96
|
-
], NileTableRowExpandable.prototype, "expanded", void 0);
|
97
|
-
__decorate([
|
98
|
-
query('slot[name="expanded"]')
|
99
|
-
], NileTableRowExpandable.prototype, "_expandedSlot", void 0);
|
100
|
-
NileTableRowExpandable = __decorate([
|
101
|
-
customElement('nile-table-row-expandable')
|
102
|
-
], NileTableRowExpandable);
|
103
|
-
export { NileTableRowExpandable };
|
104
|
-
export default NileTableRowExpandable;
|
105
|
-
//# sourceMappingURL=helper.ts.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"helper.ts.js","sourceRoot":"","sources":["../../../src/nile-table-row/helper.ts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IAAI,CAAC,QAAQ,EAAE,CAAC;gBACf,MAAM,CAAC,UAAU,GAAG,CAAC,CAAC;YACvB,CAAC;QACF,CAAC;IACF,CAAC;IAEM,MAAM;QACZ,OAAO,IAAI,CAAA;;;;yBAIY,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gCAC/D,IAAI,CAAC,kBAAkB;;cAEzC,IAAI,CAAC,UAAU;YACzB,CAAC,CAAC,IAAI,CAAA;;;;2BAIiB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc;2BAC7C,IAAI,CAAC,YAAY;;;gCAGZ,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY;qCACxC;YACjC,CAAC,CAAC,IAAI;;;;YAIE,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ;YACxC,CAAC,CAAC,IAAI,CAAA;;;uBAGa;YACnB,CAAC,CAAC,IAAI;;OAEH,CAAC;IACP,CAAC;CAED,CAAA;AA/D4C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0DAAoB;AACnB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wDAAkB;AAGrD;IADP,KAAK,CAAC,uBAAuB,CAAC;6DACS;AAtB5B,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CAiFlC;;AACD,eAAe,sBAAsB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n\tLitElement,\n\thtml,\n\tCSSResultArray,\n\tTemplateResult,\n} from 'lit';\nimport { customElement, query, property } from 'lit/decorators.js';\nimport { styles } from './nile-table-row.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n *nile-table-row component.\n *\n * @tag nile-table-row\n *\n */\n@customElement('nile-table-row-expandable')\nexport class NileTableRowExpandable extends NileElement {\n\t/**\n\t * The styles for TableRow\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\n\t@property({ type: Boolean, reflect: true }) expandable = false;\n\t@property({ type: Boolean, reflect: true }) expanded = false;\n\n\t@query('slot[name=\"expanded\"]')\n\tprivate _expandedSlot!: HTMLSlotElement;\n\n\n\tprivate toggleExpand(e: MouseEvent): void {\n\t\tthis.expanded = !this.expanded;\n\t\tthis.dispatchEvent(new CustomEvent('nile-change', {\n\t\t\tdetail: { expanded: this.expanded },\n\t\t\tbubbles: true,\n\t\t\tcomposed: true,\n\t\t}));\n\t}\n\n\n\tprivate handleSortingAlter(event: CustomEvent) {\n\t\tconst header_items: any = [\n\t\t\t...this.querySelectorAll('nile-table-header-item'),\n\t\t];\n\t\tfor (let i = 0; i < header_items.length; i++) {\n\t\t\tconst header = header_items[i];\n\t\t\tconst haveIcon = header.textContent == event.detail.value.curr_sort_string;\n\t\t\tif (!haveIcon) {\n\t\t\t\theader.sorting_ct = 0;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic render(): TemplateResult {\n\t\treturn html`\n <div part=\"row-container\" class=\"row-container\">\n <div\n part=\"nile-row\"\n class=\"row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}\"\n @nile-click-sort=\"${this.handleSortingAlter}\"\n >\n ${this.expandable\n\t\t\t\t? html`\n <slot name=\"expandableIcon\">\n <nile-icon\n class=\"expand-icon\"\n name=\"${this.expanded ? 'chevron-up' : 'chevron-down'}\"\n @click=${this.toggleExpand}\n role=\"button\"\n size=\"10\"\n aria-label=\"${this.expanded ? 'Collapse row' : 'Expand row'}\">\n </nile-icon> </slot>`\n\t\t\t\t: null}\n <slot></slot>\n </div>\n \n ${this.expandable && this.expanded\n\t\t\t\t? html`\n <div class=\"expanded-content\">\n <slot name=\"expanded\"></slot>\n </div>`\n\t\t\t\t: null}\n </div>\n `;\n\t}\n\t/* #endregion */\n}\nexport default NileTableRowExpandable;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-table-row-expandable-sdf': NileTableRowExpandable;\n\t}\n}\n"]}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright Aquera Inc 2025
|
3
|
-
*
|
4
|
-
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
import { CSSResultArray, TemplateResult } from 'lit';
|
8
|
-
import NileElement from '../internal/nile-element';
|
9
|
-
/**
|
10
|
-
*nile-table-row component.
|
11
|
-
*
|
12
|
-
* @tag nile-table-row
|
13
|
-
*
|
14
|
-
*/
|
15
|
-
export declare class NileTableRowExpandable extends NileElement {
|
16
|
-
/**
|
17
|
-
* The styles for TableRow
|
18
|
-
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
19
|
-
*/
|
20
|
-
static get styles(): CSSResultArray;
|
21
|
-
/**
|
22
|
-
* Render method
|
23
|
-
* @slot This is a slot test
|
24
|
-
*/
|
25
|
-
expandable: boolean;
|
26
|
-
expanded: boolean;
|
27
|
-
private _expandedSlot;
|
28
|
-
private toggleExpand;
|
29
|
-
private handleSortingAlter;
|
30
|
-
render(): TemplateResult;
|
31
|
-
}
|
32
|
-
export default NileTableRowExpandable;
|
33
|
-
declare global {
|
34
|
-
interface HTMLElementTagNameMap {
|
35
|
-
'nile-table-row-expandable-sdf': NileTableRowExpandable;
|
36
|
-
}
|
37
|
-
}
|
@@ -1,105 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright Aquera Inc 2025
|
3
|
-
*
|
4
|
-
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
import { __decorate } from "tslib";
|
8
|
-
import { html, } from 'lit';
|
9
|
-
import { customElement, query, property } from 'lit/decorators.js';
|
10
|
-
import { styles } from './nile-table-row.css';
|
11
|
-
import NileElement from '../internal/nile-element';
|
12
|
-
/**
|
13
|
-
*nile-table-row component.
|
14
|
-
*
|
15
|
-
* @tag nile-table-row
|
16
|
-
*
|
17
|
-
*/
|
18
|
-
let NileTableRowExpandable = class NileTableRowExpandable extends NileElement {
|
19
|
-
constructor() {
|
20
|
-
super(...arguments);
|
21
|
-
/* #endregion */
|
22
|
-
/* #region Methods */
|
23
|
-
/**
|
24
|
-
* Render method
|
25
|
-
* @slot This is a slot test
|
26
|
-
*/
|
27
|
-
this.expandable = false;
|
28
|
-
this.expanded = false;
|
29
|
-
/* #endregion */
|
30
|
-
}
|
31
|
-
/**
|
32
|
-
* The styles for TableRow
|
33
|
-
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
34
|
-
*/
|
35
|
-
static get styles() {
|
36
|
-
return [styles];
|
37
|
-
}
|
38
|
-
toggleExpand(e) {
|
39
|
-
this.expanded = !this.expanded;
|
40
|
-
this.dispatchEvent(new CustomEvent('nile-change', {
|
41
|
-
detail: { expanded: this.expanded },
|
42
|
-
bubbles: true,
|
43
|
-
composed: true,
|
44
|
-
}));
|
45
|
-
}
|
46
|
-
handleSortingAlter(event) {
|
47
|
-
const header_items = [
|
48
|
-
...this.querySelectorAll('nile-table-header-item'),
|
49
|
-
];
|
50
|
-
for (let i = 0; i < header_items.length; i++) {
|
51
|
-
const header = header_items[i];
|
52
|
-
const haveIcon = header.textContent == event.detail.value.curr_sort_string;
|
53
|
-
if (!haveIcon) {
|
54
|
-
header.sorting_ct = 0;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
render() {
|
59
|
-
return html `
|
60
|
-
<div part="row-container" class="row-container">
|
61
|
-
<div
|
62
|
-
part="nile-row"
|
63
|
-
class="row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}"
|
64
|
-
@nile-click-sort="${this.handleSortingAlter}"
|
65
|
-
>
|
66
|
-
${this.expandable
|
67
|
-
? html `
|
68
|
-
<slot name="expandableIcon">
|
69
|
-
<nile-icon
|
70
|
-
class="expand-icon"
|
71
|
-
name="${this.expanded ? 'chevron-up' : 'chevron-down'}"
|
72
|
-
@click=${this.toggleExpand}
|
73
|
-
role="button"
|
74
|
-
size="10"
|
75
|
-
aria-label="${this.expanded ? 'Collapse row' : 'Expand row'}">
|
76
|
-
</nile-icon> </slot>`
|
77
|
-
: null}
|
78
|
-
<slot></slot>
|
79
|
-
</div>
|
80
|
-
|
81
|
-
${this.expandable && this.expanded
|
82
|
-
? html `
|
83
|
-
<div class="expanded-content">
|
84
|
-
<slot name="expanded"></slot>
|
85
|
-
</div>`
|
86
|
-
: null}
|
87
|
-
</div>
|
88
|
-
`;
|
89
|
-
}
|
90
|
-
};
|
91
|
-
__decorate([
|
92
|
-
property({ type: Boolean, reflect: true })
|
93
|
-
], NileTableRowExpandable.prototype, "expandable", void 0);
|
94
|
-
__decorate([
|
95
|
-
property({ type: Boolean, reflect: true })
|
96
|
-
], NileTableRowExpandable.prototype, "expanded", void 0);
|
97
|
-
__decorate([
|
98
|
-
query('slot[name="expanded"]')
|
99
|
-
], NileTableRowExpandable.prototype, "_expandedSlot", void 0);
|
100
|
-
NileTableRowExpandable = __decorate([
|
101
|
-
customElement('nile-table-row-expandable')
|
102
|
-
], NileTableRowExpandable);
|
103
|
-
export { NileTableRowExpandable };
|
104
|
-
export default NileTableRowExpandable;
|
105
|
-
//# sourceMappingURL=nile-table-row-expandable.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"nile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AK,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC;YAC3E,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACf,MAAM,CAAC,UAAU,GAAG,CAAC,CAAC;YACvB,CAAC;QACF,CAAC;IACF,CAAC;IAEM,MAAM;QACZ,OAAO,IAAI,CAAA;;;;yBAIY,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gCAC/D,IAAI,CAAC,kBAAkB;;cAEzC,IAAI,CAAC,UAAU;YACzB,CAAC,CAAC,IAAI,CAAA;;;;2BAIiB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc;2BAC7C,IAAI,CAAC,YAAY;;;gCAGZ,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY;qCACxC;YACjC,CAAC,CAAC,IAAI;;;;YAIE,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ;YACxC,CAAC,CAAC,IAAI,CAAA;;;uBAGa;YACnB,CAAC,CAAC,IAAI;;OAEH,CAAC;IACP,CAAC;CAED,CAAA;AA/D4C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0DAAoB;AACnB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wDAAkB;AAGrD;IADP,KAAK,CAAC,uBAAuB,CAAC;6DACS;AAtB5B,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CAiFlC;;AACD,eAAe,sBAAsB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n\tLitElement,\n\thtml,\n\tCSSResultArray,\n\tTemplateResult,\n} from 'lit';\nimport { customElement, query, property } from 'lit/decorators.js';\nimport { styles } from './nile-table-row.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n *nile-table-row component.\n *\n * @tag nile-table-row\n *\n */\n@customElement('nile-table-row-expandable')\nexport class NileTableRowExpandable extends NileElement {\n\t/**\n\t * The styles for TableRow\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\n\t@property({ type: Boolean, reflect: true }) expandable = false;\n\t@property({ type: Boolean, reflect: true }) expanded = false;\n\n\t@query('slot[name=\"expanded\"]')\n\tprivate _expandedSlot!: HTMLSlotElement;\n\n\n\tprivate toggleExpand(e: MouseEvent): void {\n\t\tthis.expanded = !this.expanded;\n\t\tthis.dispatchEvent(new CustomEvent('nile-change', {\n\t\t\tdetail: { expanded: this.expanded },\n\t\t\tbubbles: true,\n\t\t\tcomposed: true,\n\t\t}));\n\t}\n\n\n\tprivate handleSortingAlter(event: CustomEvent) {\n\t\tconst header_items: any = [\n\t\t\t...this.querySelectorAll('nile-table-header-item'),\n\t\t];\n\t\tfor (let i = 0; i < header_items.length; i++) {\n\t\t\tconst header = header_items[i];\n\t\t\tconst haveIcon = header.textContent == event.detail.value.curr_sort_string;\n\t\t\tif (!haveIcon) {\n\t\t\t\theader.sorting_ct = 0;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic render(): TemplateResult {\n\t\treturn html`\n <div part=\"row-container\" class=\"row-container\">\n <div\n part=\"nile-row\"\n class=\"row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}\"\n @nile-click-sort=\"${this.handleSortingAlter}\"\n >\n ${this.expandable\n\t\t\t\t? html`\n <slot name=\"expandableIcon\">\n <nile-icon\n class=\"expand-icon\"\n name=\"${this.expanded ? 'chevron-up' : 'chevron-down'}\"\n @click=${this.toggleExpand}\n role=\"button\"\n size=\"10\"\n aria-label=\"${this.expanded ? 'Collapse row' : 'Expand row'}\">\n </nile-icon> </slot>`\n\t\t\t\t: null}\n <slot></slot>\n </div>\n \n ${this.expandable && this.expanded\n\t\t\t\t? html`\n <div class=\"expanded-content\">\n <slot name=\"expanded\"></slot>\n </div>`\n\t\t\t\t: null}\n </div>\n `;\n\t}\n\t/* #endregion */\n}\nexport default NileTableRowExpandable;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-table-row-expandable-sdf': NileTableRowExpandable;\n\t}\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
export { NileTableRowExpandable } from './nile-table-row-expandable';
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-table-row-expandable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export { NileTableRowExpandable } from './nile-table-row-expandable';"]}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright Aquera Inc 2023
|
3
|
-
*
|
4
|
-
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
/**
|
8
|
-
* TableRowExpandable CSS
|
9
|
-
*/
|
10
|
-
export declare const styles: import("lit").CSSResult;
|
11
|
-
declare const _default: import("lit").CSSResult[];
|
12
|
-
export default _default;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright Aquera Inc 2023
|
3
|
-
*
|
4
|
-
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
import { css } from 'lit';
|
8
|
-
/**
|
9
|
-
* TableRowExpandable CSS
|
10
|
-
*/
|
11
|
-
export const styles = css `
|
12
|
-
:host {
|
13
|
-
|
14
|
-
}
|
15
|
-
`;
|
16
|
-
export default [styles];
|
17
|
-
//# sourceMappingURL=nile-table-row-expandable.css.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"nile-table-row-expandable.css.js","sourceRoot":"","sources":["../../../src/nile-table-row-expandable/nile-table-row-expandable.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;CAIxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * TableRowExpandable CSS\n */\nexport const styles = css`\n\t:host {\n\n\t}\n`;\n\nexport default [styles];"]}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright Aquera Inc 2023
|
3
|
-
*
|
4
|
-
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
import { CSSResultArray, TemplateResult } from 'lit';
|
8
|
-
import NileElement from '../internal/nile-element';
|
9
|
-
/**
|
10
|
-
* Nile table-row-expandable component.
|
11
|
-
*
|
12
|
-
* @tag nile-table-row-expandable
|
13
|
-
*
|
14
|
-
*/
|
15
|
-
export declare class NileTableRowExpandable extends NileElement {
|
16
|
-
/**
|
17
|
-
* The styles for nile-table-row-expandable
|
18
|
-
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
19
|
-
*/
|
20
|
-
static get styles(): CSSResultArray;
|
21
|
-
expandable: boolean;
|
22
|
-
expanded: boolean;
|
23
|
-
private _expandedSlot;
|
24
|
-
private toggleExpand;
|
25
|
-
private handleSortingAlter;
|
26
|
-
/**
|
27
|
-
* Render method
|
28
|
-
* @slot This is a slot test
|
29
|
-
*/
|
30
|
-
render(): TemplateResult;
|
31
|
-
}
|
32
|
-
export default NileTableRowExpandable;
|
33
|
-
declare global {
|
34
|
-
interface HTMLElementTagNameMap {
|
35
|
-
'nile-table-row-expandable': NileTableRowExpandable;
|
36
|
-
}
|
37
|
-
}
|
@@ -1,103 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright Aquera Inc 2023
|
3
|
-
*
|
4
|
-
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
import { __decorate } from "tslib";
|
8
|
-
import { html } from 'lit';
|
9
|
-
import { customElement, property, query } from 'lit/decorators.js';
|
10
|
-
import { styles } from './nile-table-row-expandable.css';
|
11
|
-
import NileElement from '../internal/nile-element';
|
12
|
-
/**
|
13
|
-
* Nile table-row-expandable component.
|
14
|
-
*
|
15
|
-
* @tag nile-table-row-expandable
|
16
|
-
*
|
17
|
-
*/
|
18
|
-
let NileTableRowExpandable = class NileTableRowExpandable extends NileElement {
|
19
|
-
constructor() {
|
20
|
-
super(...arguments);
|
21
|
-
this.expandable = false;
|
22
|
-
this.expanded = false;
|
23
|
-
/* #endregion */
|
24
|
-
}
|
25
|
-
/**
|
26
|
-
* The styles for nile-table-row-expandable
|
27
|
-
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
28
|
-
*/
|
29
|
-
static get styles() {
|
30
|
-
return [styles];
|
31
|
-
}
|
32
|
-
toggleExpand(e) {
|
33
|
-
this.expanded = !this.expanded;
|
34
|
-
this.dispatchEvent(new CustomEvent('nile-change', {
|
35
|
-
detail: { expanded: this.expanded },
|
36
|
-
bubbles: true,
|
37
|
-
composed: true,
|
38
|
-
}));
|
39
|
-
}
|
40
|
-
handleSortingAlter(event) {
|
41
|
-
const header_items = [
|
42
|
-
...this.querySelectorAll('nile-table-header-item'),
|
43
|
-
];
|
44
|
-
for (let i = 0; i < header_items.length; i++) {
|
45
|
-
const header = header_items[i];
|
46
|
-
const haveIcon = header.textContent == event.detail.value.curr_sort_string;
|
47
|
-
if (!haveIcon) {
|
48
|
-
header.sorting_ct = 0;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
}
|
52
|
-
/**
|
53
|
-
* Render method
|
54
|
-
* @slot This is a slot test
|
55
|
-
*/
|
56
|
-
render() {
|
57
|
-
return html `
|
58
|
-
<div part="row-container" class="row-container">
|
59
|
-
<div
|
60
|
-
part="nile-row"
|
61
|
-
class="row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}"
|
62
|
-
@nile-click-sort="${this.handleSortingAlter}"
|
63
|
-
>
|
64
|
-
${this.expandable
|
65
|
-
? html `
|
66
|
-
<slot name="expandableIcon">
|
67
|
-
<nile-icon
|
68
|
-
class="expand-icon"
|
69
|
-
name="${this.expanded ? 'chevron-up' : 'chevron-down'}"
|
70
|
-
@click=${this.toggleExpand}
|
71
|
-
role="button"
|
72
|
-
size="10"
|
73
|
-
aria-label="${this.expanded ? 'Collapse row' : 'Expand row'}">
|
74
|
-
</nile-icon> </slot>`
|
75
|
-
: null}
|
76
|
-
<slot></slot>
|
77
|
-
</div>
|
78
|
-
|
79
|
-
${this.expandable && this.expanded
|
80
|
-
? html `
|
81
|
-
<div class="expanded-content">
|
82
|
-
<slot name="expanded"></slot>
|
83
|
-
</div>`
|
84
|
-
: null}
|
85
|
-
</div>
|
86
|
-
`;
|
87
|
-
}
|
88
|
-
};
|
89
|
-
__decorate([
|
90
|
-
property({ type: Boolean, reflect: true })
|
91
|
-
], NileTableRowExpandable.prototype, "expandable", void 0);
|
92
|
-
__decorate([
|
93
|
-
property({ type: Boolean, reflect: true })
|
94
|
-
], NileTableRowExpandable.prototype, "expanded", void 0);
|
95
|
-
__decorate([
|
96
|
-
query('slot[name="expanded"]')
|
97
|
-
], NileTableRowExpandable.prototype, "_expandedSlot", void 0);
|
98
|
-
NileTableRowExpandable = __decorate([
|
99
|
-
customElement('nile-table-row-expandable')
|
100
|
-
], NileTableRowExpandable);
|
101
|
-
export { NileTableRowExpandable };
|
102
|
-
export default NileTableRowExpandable;
|
103
|
-
//# sourceMappingURL=nile-table-row-expandable.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"nile-table-row-expandable.js","sourceRoot":"","sources":["../../../src/nile-table-row-expandable/nile-table-row-expandable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAa,IAAI,EAAiC,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;GAKG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,WAAW;IAAhD;;QAUsC,eAAU,GAAG,KAAK,CAAC;QACnB,aAAQ,GAAG,KAAK,CAAC;QAkE7D,gBAAgB;IACjB,CAAC;IA5EA;;;OAGG;IACI,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IASO,YAAY,CAAC,CAAa;QACjC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,aAAa,EAAE;YACjD,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;YACnC,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACd,CAAC,CAAC,CAAC;IACL,CAAC;IAGO,kBAAkB,CAAC,KAAkB;QAC5C,MAAM,YAAY,GAAQ;YACzB,GAAG,IAAI,CAAC,gBAAgB,CAAC,wBAAwB,CAAC;SAClD,CAAC;QACF,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C,uBAAuB,CAAC;6DACS;AAd5B,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CA8ElC;;AAED,eAAe,sBAAsB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, CSSResultArray, TemplateResult} from 'lit';\nimport { customElement, property, query} from 'lit/decorators.js';\nimport { styles } from './nile-table-row-expandable.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile table-row-expandable component.\n *\n * @tag nile-table-row-expandable\n *\n */\n@customElement('nile-table-row-expandable')\nexport class NileTableRowExpandable extends NileElement {\n\n\t/**\n\t * The styles for nile-table-row-expandable\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\t\n\t@property({ type: Boolean, reflect: true }) expandable = false;\n\t@property({ type: Boolean, reflect: true }) expanded = false;\n\n\t@query('slot[name=\"expanded\"]')\n\tprivate _expandedSlot!: HTMLSlotElement;\n\n\n\tprivate toggleExpand(e: MouseEvent): void {\n\t\tthis.expanded = !this.expanded;\n\t\tthis.dispatchEvent(new CustomEvent('nile-change', {\n\t\t\tdetail: { expanded: this.expanded },\n\t\t\tbubbles: true,\n\t\t\tcomposed: true,\n\t\t}));\n\t}\n\n\n\tprivate handleSortingAlter(event: CustomEvent) {\n\t\tconst header_items: any = [\n\t\t\t...this.querySelectorAll('nile-table-header-item'),\n\t\t];\n\t\tfor (let i = 0; i < header_items.length; i++) {\n\t\t\tconst header = header_items[i];\n\t\t\tconst haveIcon = header.textContent == event.detail.value.curr_sort_string;\n\t\t\tif (!haveIcon) {\n\t\t\t\theader.sorting_ct = 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n <div part=\"row-container\" class=\"row-container\">\n <div\n part=\"nile-row\"\n class=\"row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}\"\n @nile-click-sort=\"${this.handleSortingAlter}\"\n >\n ${this.expandable\n\t\t\t\t? html`\n <slot name=\"expandableIcon\">\n <nile-icon\n class=\"expand-icon\"\n name=\"${this.expanded ? 'chevron-up' : 'chevron-down'}\"\t\n @click=${this.toggleExpand}\n role=\"button\"\n size=\"10\"\n aria-label=\"${this.expanded ? 'Collapse row' : 'Expand row'}\">\n </nile-icon> </slot>`\n\t\t\t\t: null}\n <slot></slot>\n </div>\n \n ${this.expandable && this.expanded\n\t\t\t\t? html`\n <div class=\"expanded-content\">\n <slot name=\"expanded\"></slot>\n </div>`\n\t\t\t\t: null}\n </div>\n `;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileTableRowExpandable;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-table-row-expandable': NileTableRowExpandable;\n }\n}"]}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export declare function isInViewport(element: HTMLElement): boolean;
|
2
|
-
export declare function getValidTooltipPosition(triggerRect: DOMRect, tooltipRect: DOMRect, originalPlacement: string, distance: number, skidding: number, caretSize: number, viewportWidth: number, viewportHeight: number): {
|
3
|
-
top: number;
|
4
|
-
left: number;
|
5
|
-
placement: string;
|
6
|
-
};
|
7
|
-
export interface CaretPositionInput {
|
8
|
-
placement: string;
|
9
|
-
tooltipRect: DOMRect;
|
10
|
-
triggerRect: DOMRect;
|
11
|
-
caretSize: number;
|
12
|
-
left: number;
|
13
|
-
top: number;
|
14
|
-
}
|
15
|
-
export declare function getCaretPosition({ placement, tooltipRect, triggerRect, caretSize, left, top }: CaretPositionInput): {
|
16
|
-
caretLeft: number;
|
17
|
-
caretTop: number;
|
18
|
-
};
|