@aquera/nile-elements 0.1.70-beta-1.2 → 0.1.72-beta-1.0
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 +3 -0
- package/demo/index.html +201 -237
- package/dist/aquera-nile-elements-0.1.57-beta-2.0.tgz +0 -0
- package/dist/axe.min-2b379f29.cjs.js +12 -0
- package/dist/axe.min-2b379f29.cjs.js.map +1 -0
- package/dist/axe.min-c2cd8733.esm.js +12 -0
- package/dist/{fixture-5b79f853.cjs.js → fixture-28d63bc4.cjs.js} +2 -2
- package/dist/{fixture-5b79f853.cjs.js.map → fixture-28d63bc4.cjs.js.map} +1 -1
- package/dist/{fixture-dbd66009.cjs.js → fixture-324a7ef9.cjs.js} +2 -2
- package/dist/{fixture-dbd66009.cjs.js.map → fixture-324a7ef9.cjs.js.map} +1 -1
- package/dist/{fixture-cf7bfcf5.esm.js → fixture-78a015b8.esm.js} +1 -1
- package/dist/fixture-add72f26.esm.js +569 -0
- package/dist/{fixture-90b199c4.esm.js → fixture-ba65eb22.esm.js} +1 -1
- package/dist/fixture-c1bd203f.cjs.js +395 -0
- package/dist/fixture-c1bd203f.cjs.js.map +1 -0
- package/dist/fixture-cb376a7f.cjs.js +395 -0
- package/dist/fixture-cb376a7f.cjs.js.map +1 -0
- package/dist/fixture-f2693d97.esm.js +569 -0
- package/dist/index.js +101 -11
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.test.cjs.js +1 -1
- package/dist/nile-card/nile-card.test.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-file-preview/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-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.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 +2 -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.css.cjs.js +1 -1
- package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js.map +1 -1
- package/dist/nile-table-cell-item/nile-table-cell-item.css.esm.js +8 -3
- package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +11 -5
- 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 +52 -0
- package/dist/nile-table-row/nile-table-row.esm.js +33 -6
- 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/internal/expandable-row-helper.d.ts +13 -0
- package/dist/src/internal/expandable-row-helper.js +37 -0
- package/dist/src/internal/expandable-row-helper.js.map +1 -0
- package/dist/src/internal/expandable-row-styles.d.ts +11 -0
- package/dist/src/internal/expandable-row-styles.js +27 -0
- package/dist/src/internal/expandable-row-styles.js.map +1 -0
- package/dist/src/internal/table-expandable-helper.d.ts +0 -0
- package/dist/src/internal/table-expandable-helper.js +2 -0
- package/dist/src/internal/table-expandable-helper.js.map +1 -0
- package/dist/src/internal/table-row-expandable-helper.d.ts +12 -0
- package/dist/src/internal/table-row-expandable-helper.js +32 -0
- package/dist/src/internal/table-row-expandable-helper.js.map +1 -0
- package/dist/src/internal/table-row-expandable-styles.d.ts +11 -0
- package/dist/src/internal/table-row-expandable-styles.js +12 -0
- package/dist/src/internal/table-row-expandable-styles.js.map +1 -0
- package/dist/src/nile-group-header/index.d.ts +1 -0
- package/dist/src/nile-group-header/index.js +2 -0
- package/dist/src/nile-group-header/index.js.map +1 -0
- package/dist/src/nile-group-header/nile-group-header.css.d.ts +12 -0
- package/dist/src/nile-group-header/nile-group-header.css.js +30 -0
- package/dist/src/nile-group-header/nile-group-header.css.js.map +1 -0
- package/dist/src/nile-group-header/nile-group-header.d.ts +19 -0
- package/dist/src/nile-group-header/nile-group-header.js +36 -0
- package/dist/src/nile-group-header/nile-group-header.js.map +1 -0
- package/dist/src/nile-group-header/nile-option-header.css.d.ts +12 -0
- package/dist/src/nile-group-header/nile-option-header.css.js +30 -0
- package/dist/src/nile-group-header/nile-option-header.css.js.map +1 -0
- package/dist/src/nile-group-header/nile-option-header.d.ts +33 -0
- package/dist/src/nile-group-header/nile-option-header.js +51 -0
- package/dist/src/nile-group-header/nile-option-header.js.map +1 -0
- package/dist/src/nile-option-header/index.d.ts +1 -0
- package/dist/src/nile-option-header/index.js +2 -0
- package/dist/src/nile-option-header/index.js.map +1 -0
- package/dist/src/nile-option-header/nile-option-header.css.d.ts +12 -0
- package/dist/src/nile-option-header/nile-option-header.css.js +30 -0
- package/dist/src/nile-option-header/nile-option-header.css.js.map +1 -0
- package/dist/src/nile-option-header/nile-option-header.d.ts +33 -0
- package/dist/src/nile-option-header/nile-option-header.js +51 -0
- package/dist/src/nile-option-header/nile-option-header.js.map +1 -0
- package/dist/src/nile-table-body/nile-table-body.d.ts +3 -0
- package/dist/src/nile-table-body/nile-table-body.js +32 -0
- package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
- package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js +5 -0
- package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js.map +1 -1
- package/dist/src/nile-table-cell-item/nile-table-cell-item.d.ts +1 -0
- package/dist/src/nile-table-cell-item/nile-table-cell-item.js +14 -2
- package/dist/src/nile-table-cell-item/nile-table-cell-item.js.map +1 -1
- package/dist/src/nile-table-row/TableRowExpandableHelper.d.ts +9 -0
- package/dist/src/nile-table-row/TableRowExpandableHelper.js +26 -0
- package/dist/src/nile-table-row/TableRowExpandableHelper.js.map +1 -0
- package/dist/src/nile-table-row/helper.ts.d.ts +37 -0
- package/dist/src/nile-table-row/helper.ts.js +105 -0
- package/dist/src/nile-table-row/helper.ts.js.map +1 -0
- package/dist/src/nile-table-row/nile-table-row-expandable.d.ts +37 -0
- package/dist/src/nile-table-row/nile-table-row-expandable.js +105 -0
- package/dist/src/nile-table-row/nile-table-row-expandable.js.map +1 -0
- package/dist/src/nile-table-row/nile-table-row.css.js +52 -0
- 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 +12 -1
- package/dist/src/nile-table-row/nile-table-row.js +113 -9
- package/dist/src/nile-table-row/nile-table-row.js.map +1 -1
- package/dist/src/nile-table-row-expandable/index.d.ts +1 -0
- package/dist/src/nile-table-row-expandable/index.js +2 -0
- package/dist/src/nile-table-row-expandable/index.js.map +1 -0
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.d.ts +12 -0
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.js +17 -0
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.js.map +1 -0
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.d.ts +37 -0
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.js +103 -0
- package/dist/src/nile-table-row-expandable/nile-table-row-expandable.js.map +1 -0
- package/dist/src/nile-tooltip/nile-tooltip-utils.d.ts +18 -0
- package/dist/src/nile-tooltip/nile-tooltip-utils.js +216 -0
- package/dist/src/nile-tooltip/nile-tooltip-utils.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 +148 -0
- package/dist/src/nile-tooltip/nile-tooltip.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-table-body/nile-table-body.ts +27 -1
- package/src/nile-table-cell-item/nile-table-cell-item.css.ts +5 -0
- package/src/nile-table-cell-item/nile-table-cell-item.ts +15 -2
- package/src/nile-table-row/nile-table-row.css.ts +52 -0
- package/src/nile-table-row/nile-table-row.ts +108 -5
- package/vscode-html-custom-data.json +43 -4
- package/dist/src/internal/resizable-helper.d.ts +0 -59
- package/dist/src/internal/resizable-helper.js +0 -115
- package/dist/src/internal/resizable-helper.js.map +0 -1
- package/dist/src/internal/resizable-styles.d.ts +0 -16
- package/dist/src/internal/resizable-styles.js +0 -144
- package/dist/src/internal/resizable-styles.js.map +0 -1
- package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
- package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
- package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
- package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
- package/dist/src/nile-grid/data-processor.d.ts +0 -37
- package/dist/src/nile-grid/data-processor.js +0 -122
- package/dist/src/nile-grid/data-processor.js.map +0 -1
- package/dist/src/nile-grid/event-handlers.d.ts +0 -35
- package/dist/src/nile-grid/event-handlers.js +0 -158
- package/dist/src/nile-grid/event-handlers.js.map +0 -1
- package/dist/src/nile-grid/index.d.ts +0 -5
- package/dist/src/nile-grid/index.js +0 -6
- package/dist/src/nile-grid/index.js.map +0 -1
- package/dist/src/nile-grid/nile-grid.css.d.ts +0 -1
- package/dist/src/nile-grid/nile-grid.css.js +0 -120
- package/dist/src/nile-grid/nile-grid.css.js.map +0 -1
- package/dist/src/nile-grid/nile-grid.d.ts +0 -39
- package/dist/src/nile-grid/nile-grid.js +0 -182
- package/dist/src/nile-grid/nile-grid.js.map +0 -1
- package/dist/src/nile-grid/renderer.d.ts +0 -8
- package/dist/src/nile-grid/renderer.js +0 -78
- package/dist/src/nile-grid/renderer.js.map +0 -1
- package/dist/src/nile-grid/resize-handler.d.ts +0 -4
- package/dist/src/nile-grid/resize-handler.js +0 -36
- package/dist/src/nile-grid/resize-handler.js.map +0 -1
- package/dist/src/nile-grid/types.d.ts +0 -32
- package/dist/src/nile-grid/types.js +0 -2
- package/dist/src/nile-grid/types.js.map +0 -1
- package/dist/src/nile-grid/utils.d.ts +0 -4
- package/dist/src/nile-grid/utils.js +0 -32
- package/dist/src/nile-grid/utils.js.map +0 -1
- package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
- package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
- package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
- package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
- package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +0 -9
- package/dist/src/nile-table-body/virtual-scroll-helper.js +0 -24
- package/dist/src/nile-table-body/virtual-scroll-helper.js.map +0 -1
- package/dist/src/nile-virtual-table-body/index.d.ts +0 -2
- package/dist/src/nile-virtual-table-body/index.js +0 -3
- package/dist/src/nile-virtual-table-body/index.js.map +0 -1
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +0 -1
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +0 -44
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +0 -1
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +0 -50
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +0 -135
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +0 -1
- package/dist/src/nile-virtual-table-body/renderer.d.ts +0 -16
- package/dist/src/nile-virtual-table-body/renderer.js +0 -49
- package/dist/src/nile-virtual-table-body/renderer.js.map +0 -1
@@ -0,0 +1,11 @@
|
|
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
|
+
export {};
|
8
|
+
/**
|
9
|
+
* Table Row Expandable Styles Utility
|
10
|
+
* Centralized styles for expandable table rows functionality
|
11
|
+
*/
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
export {};
|
8
|
+
/**
|
9
|
+
* Table Row Expandable Styles Utility
|
10
|
+
* Centralized styles for expandable table rows functionality
|
11
|
+
*/
|
12
|
+
//# sourceMappingURL=table-row-expandable-styles.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"table-row-expandable-styles.js","sourceRoot":"","sources":["../../../src/internal/table-row-expandable-styles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAIH;;;GAGG","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 * Table Row Expandable Styles Utility\n * Centralized styles for expandable table rows functionality\n */\n\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { NileOptionHeader } from './nile-group-header';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-group-header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["export { NileOptionHeader } from './nile-group-header';"]}
|
@@ -0,0 +1,12 @@
|
|
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
|
+
/**
|
8
|
+
* OptionHeader CSS
|
9
|
+
*/
|
10
|
+
export declare const styles: import("lit").CSSResult;
|
11
|
+
declare const _default: import("lit").CSSResult[];
|
12
|
+
export default _default;
|
@@ -0,0 +1,30 @@
|
|
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 { css } from 'lit';
|
8
|
+
/**
|
9
|
+
* OptionHeader CSS
|
10
|
+
*/
|
11
|
+
export const styles = css `
|
12
|
+
:host {
|
13
|
+
|
14
|
+
}
|
15
|
+
|
16
|
+
.option-header {
|
17
|
+
height: 40px;
|
18
|
+
display: flex;
|
19
|
+
align-items: center;
|
20
|
+
padding: 0px 12px;
|
21
|
+
background-color: var(--nile-colors-dark-200);
|
22
|
+
color: var(--nile-colors-dark-900);
|
23
|
+
font-feature-settings: 'liga' off, 'clig' off;
|
24
|
+
font-family: colfax-medium;
|
25
|
+
font-size: 14px;
|
26
|
+
font-weight: 400;
|
27
|
+
}
|
28
|
+
`;
|
29
|
+
export default [styles];
|
30
|
+
//# sourceMappingURL=nile-group-header.css.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-group-header.css.js","sourceRoot":"","sources":["../../../src/nile-group-header/nile-group-header.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;CAiBxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,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 {css} from 'lit';\n\n/**\n * OptionHeader CSS\n */\nexport const styles = css`\n\t:host {\n\n\t}\n\n\t.option-header {\n\t\theight: 40px;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding: 0px 12px;\n\t\tbackground-color: var(--nile-colors-dark-200);\n\t\tcolor: var(--nile-colors-dark-900);\n\t\tfont-feature-settings: 'liga' off, 'clig' off;\n\t\tfont-family: colfax-medium;\n\t\tfont-size: 14px;\n\t\tfont-weight: 400;\n\t}\n`;\n\nexport default [styles];"]}
|
@@ -0,0 +1,19 @@
|
|
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
|
+
export declare class NileOptionHeader extends NileElement {
|
10
|
+
static get styles(): CSSResultArray;
|
11
|
+
group: string;
|
12
|
+
render(): TemplateResult;
|
13
|
+
}
|
14
|
+
export default NileOptionHeader;
|
15
|
+
declare global {
|
16
|
+
interface HTMLElementTagNameMap {
|
17
|
+
'nile-option-header': NileOptionHeader;
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,36 @@
|
|
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, property } from 'lit/decorators.js';
|
10
|
+
import { styles } from './nile-group-header.css';
|
11
|
+
import NileElement from '../internal/nile-element';
|
12
|
+
let NileOptionHeader = class NileOptionHeader extends NileElement {
|
13
|
+
constructor() {
|
14
|
+
super(...arguments);
|
15
|
+
this.group = '';
|
16
|
+
}
|
17
|
+
static get styles() {
|
18
|
+
return [styles];
|
19
|
+
}
|
20
|
+
render() {
|
21
|
+
return html `
|
22
|
+
<div class="option-header" part="option-header">
|
23
|
+
<slot></slot>
|
24
|
+
</div>
|
25
|
+
`;
|
26
|
+
}
|
27
|
+
};
|
28
|
+
__decorate([
|
29
|
+
property({ type: String })
|
30
|
+
], NileOptionHeader.prototype, "group", void 0);
|
31
|
+
NileOptionHeader = __decorate([
|
32
|
+
customElement('nile-option-header')
|
33
|
+
], NileOptionHeader);
|
34
|
+
export { NileOptionHeader };
|
35
|
+
export default NileOptionHeader;
|
36
|
+
//# sourceMappingURL=nile-group-header.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-group-header.js","sourceRoot":"","sources":["../../../src/nile-group-header/nile-group-header.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAa,IAAI,EAAiC,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAG5C,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,WAAW;IAA1C;;QAMoB,UAAK,GAAW,EAAE,CAAC;IAS9C,CAAC;IAbO,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IAIM,MAAM;QACZ,OAAO,IAAI,CAAA;;;;IAIT,CAAC;IACJ,CAAC;CACD,CAAA;AAT0B;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;+CAAoB;AANjC,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAe5B;;AAED,eAAe,gBAAgB,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 {LitElement, html, CSSResultArray, TemplateResult} from 'lit';\nimport { customElement, property} from 'lit/decorators.js';\nimport {styles} from './nile-group-header.css';\nimport NileElement from '../internal/nile-element';\n\n@customElement('nile-option-header')\nexport class NileOptionHeader extends NileElement {\n\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t@property({type: String}) group: string = '';\n\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t\t<div class=\"option-header\" part=\"option-header\">\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t\t`;\n\t}\n}\n\nexport default NileOptionHeader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-option-header': NileOptionHeader;\n }\n}"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* OptionHeader CSS
|
9
|
+
*/
|
10
|
+
export declare const styles: import("lit").CSSResult;
|
11
|
+
declare const _default: import("lit").CSSResult[];
|
12
|
+
export default _default;
|
@@ -0,0 +1,30 @@
|
|
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
|
+
* OptionHeader CSS
|
10
|
+
*/
|
11
|
+
export const styles = css `
|
12
|
+
:host {
|
13
|
+
|
14
|
+
}
|
15
|
+
|
16
|
+
.option-header {
|
17
|
+
height: 40px;
|
18
|
+
display: flex;
|
19
|
+
align-items: center;
|
20
|
+
padding: 0px 12px;
|
21
|
+
background-color: var(--nile-colors-dark-200);
|
22
|
+
color: var(--nile-colors-dark-900);
|
23
|
+
font-feature-settings: 'liga' off, 'clig' off;
|
24
|
+
font-family: colfax-medium;
|
25
|
+
font-size: 14px;
|
26
|
+
font-weight: 400;
|
27
|
+
}
|
28
|
+
`;
|
29
|
+
export default [styles];
|
30
|
+
//# sourceMappingURL=nile-option-header.css.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-option-header.css.js","sourceRoot":"","sources":["../../../src/nile-group-header/nile-option-header.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;CAiBxB,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 * OptionHeader CSS\n */\nexport const styles = css`\n\t:host {\n\n\t}\n\n\t.option-header {\n\t\theight: 40px;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding: 0px 12px;\n\t\tbackground-color: var(--nile-colors-dark-200);\n\t\tcolor: var(--nile-colors-dark-900);\n\t\tfont-feature-settings: 'liga' off, 'clig' off;\n\t\tfont-family: colfax-medium;\n\t\tfont-size: 14px;\n\t\tfont-weight: 400;\n\t}\n`;\n\nexport default [styles];"]}
|
@@ -0,0 +1,33 @@
|
|
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 option-header component.
|
11
|
+
*
|
12
|
+
* @tag nile-option-header
|
13
|
+
*
|
14
|
+
*/
|
15
|
+
export declare class NileOptionHeader extends NileElement {
|
16
|
+
/**
|
17
|
+
* The styles for nile-option-header
|
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
|
+
group: string;
|
22
|
+
/**
|
23
|
+
* Render method
|
24
|
+
* @slot This is a slot test
|
25
|
+
*/
|
26
|
+
render(): TemplateResult;
|
27
|
+
}
|
28
|
+
export default NileOptionHeader;
|
29
|
+
declare global {
|
30
|
+
interface HTMLElementTagNameMap {
|
31
|
+
'nile-option-header': NileOptionHeader;
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,51 @@
|
|
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 } from 'lit/decorators.js';
|
10
|
+
import { styles } from './nile-group-header';
|
11
|
+
import NileElement from '../internal/nile-element';
|
12
|
+
/**
|
13
|
+
* Nile option-header component.
|
14
|
+
*
|
15
|
+
* @tag nile-option-header
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
let NileOptionHeader = class NileOptionHeader extends NileElement {
|
19
|
+
constructor() {
|
20
|
+
super(...arguments);
|
21
|
+
this.group = '';
|
22
|
+
/* #endregion */
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* The styles for nile-option-header
|
26
|
+
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
27
|
+
*/
|
28
|
+
static get styles() {
|
29
|
+
return [styles];
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Render method
|
33
|
+
* @slot This is a slot test
|
34
|
+
*/
|
35
|
+
render() {
|
36
|
+
return html `
|
37
|
+
<div class="option-header" part="option-header">
|
38
|
+
<slot></slot>
|
39
|
+
</div>
|
40
|
+
`;
|
41
|
+
}
|
42
|
+
};
|
43
|
+
__decorate([
|
44
|
+
property({ type: String })
|
45
|
+
], NileOptionHeader.prototype, "group", void 0);
|
46
|
+
NileOptionHeader = __decorate([
|
47
|
+
customElement('nile-option-header')
|
48
|
+
], NileOptionHeader);
|
49
|
+
export { NileOptionHeader };
|
50
|
+
export default NileOptionHeader;
|
51
|
+
//# sourceMappingURL=nile-option-header.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-option-header.js","sourceRoot":"","sources":["../../../src/nile-group-header/nile-option-header.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAa,IAAI,EAAiC,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,MAAM,EAAC,MAAM,qBAAqB,CAAC;AAC3C,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;GAKG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,WAAW;IAA1C;;QAUoB,UAAK,GAAW,EAAE,CAAC;QAc7C,gBAAgB;IACjB,CAAC;IAvBA;;;OAGG;IACI,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IAID;;;OAGG;IACI,MAAM;QACZ,OAAO,IAAI,CAAA;;;;IAIT,CAAC;IACJ,CAAC;CAGD,CAAA;AAf0B;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;+CAAoB;AAVjC,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAyB5B;;AAED,eAAe,gBAAgB,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} from 'lit/decorators.js';\nimport {styles} from './nile-group-header';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile option-header component.\n *\n * @tag nile-option-header\n *\n */\n@customElement('nile-option-header')\nexport class NileOptionHeader extends NileElement {\n\n\t/**\n\t * The styles for nile-option-header\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@property({type: String}) group: string = '';\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\t\t\t<div class=\"option-header\" part=\"option-header\">\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileOptionHeader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-option-header': NileOptionHeader;\n }\n}"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { NileOptionHeader } from './nile-option-header';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-option-header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["export { NileOptionHeader } from './nile-option-header';"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* OptionHeader CSS
|
9
|
+
*/
|
10
|
+
export declare const styles: import("lit").CSSResult;
|
11
|
+
declare const _default: import("lit").CSSResult[];
|
12
|
+
export default _default;
|
@@ -0,0 +1,30 @@
|
|
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
|
+
* OptionHeader CSS
|
10
|
+
*/
|
11
|
+
export const styles = css `
|
12
|
+
:host {
|
13
|
+
|
14
|
+
}
|
15
|
+
|
16
|
+
.option-header {
|
17
|
+
height: 40px;
|
18
|
+
display: flex;
|
19
|
+
align-items: center;
|
20
|
+
padding: 0px 12px;
|
21
|
+
background-color: var(--nile-colors-dark-200);
|
22
|
+
color: var(--nile-colors-dark-900);
|
23
|
+
font-feature-settings: 'liga' off, 'clig' off;
|
24
|
+
font-family: colfax-medium;
|
25
|
+
font-size: 14px;
|
26
|
+
font-weight: 400;
|
27
|
+
}
|
28
|
+
`;
|
29
|
+
export default [styles];
|
30
|
+
//# sourceMappingURL=nile-option-header.css.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-option-header.css.js","sourceRoot":"","sources":["../../../src/nile-option-header/nile-option-header.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;CAiBxB,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 * OptionHeader CSS\n */\nexport const styles = css`\n\t:host {\n\n\t}\n\n\t.option-header {\n\t\theight: 40px;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding: 0px 12px;\n\t\tbackground-color: var(--nile-colors-dark-200);\n\t\tcolor: var(--nile-colors-dark-900);\n\t\tfont-feature-settings: 'liga' off, 'clig' off;\n\t\tfont-family: colfax-medium;\n\t\tfont-size: 14px;\n\t\tfont-weight: 400;\n\t}\n`;\n\nexport default [styles];"]}
|
@@ -0,0 +1,33 @@
|
|
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 option-header component.
|
11
|
+
*
|
12
|
+
* @tag nile-option-header
|
13
|
+
*
|
14
|
+
*/
|
15
|
+
export declare class NileOptionHeader extends NileElement {
|
16
|
+
/**
|
17
|
+
* The styles for nile-option-header
|
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
|
+
group: string;
|
22
|
+
/**
|
23
|
+
* Render method
|
24
|
+
* @slot This is a slot test
|
25
|
+
*/
|
26
|
+
render(): TemplateResult;
|
27
|
+
}
|
28
|
+
export default NileOptionHeader;
|
29
|
+
declare global {
|
30
|
+
interface HTMLElementTagNameMap {
|
31
|
+
'nile-option-header': NileOptionHeader;
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,51 @@
|
|
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 } from 'lit/decorators.js';
|
10
|
+
import { styles } from './nile-option-header.css';
|
11
|
+
import NileElement from '../internal/nile-element';
|
12
|
+
/**
|
13
|
+
* Nile option-header component.
|
14
|
+
*
|
15
|
+
* @tag nile-option-header
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
let NileOptionHeader = class NileOptionHeader extends NileElement {
|
19
|
+
constructor() {
|
20
|
+
super(...arguments);
|
21
|
+
this.group = '';
|
22
|
+
/* #endregion */
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* The styles for nile-option-header
|
26
|
+
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
27
|
+
*/
|
28
|
+
static get styles() {
|
29
|
+
return [styles];
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Render method
|
33
|
+
* @slot This is a slot test
|
34
|
+
*/
|
35
|
+
render() {
|
36
|
+
return html `
|
37
|
+
<div class="option-header" part="option-header">
|
38
|
+
<slot></slot>
|
39
|
+
</div>
|
40
|
+
`;
|
41
|
+
}
|
42
|
+
};
|
43
|
+
__decorate([
|
44
|
+
property({ type: String })
|
45
|
+
], NileOptionHeader.prototype, "group", void 0);
|
46
|
+
NileOptionHeader = __decorate([
|
47
|
+
customElement('nile-option-header')
|
48
|
+
], NileOptionHeader);
|
49
|
+
export { NileOptionHeader };
|
50
|
+
export default NileOptionHeader;
|
51
|
+
//# sourceMappingURL=nile-option-header.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-option-header.js","sourceRoot":"","sources":["../../../src/nile-option-header/nile-option-header.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAa,IAAI,EAAiC,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AAChD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;GAKG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,WAAW;IAA1C;;QAUoB,UAAK,GAAW,EAAE,CAAC;QAc7C,gBAAgB;IACjB,CAAC;IAvBA;;;OAGG;IACI,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IAID;;;OAGG;IACI,MAAM;QACZ,OAAO,IAAI,CAAA;;;;IAIT,CAAC;IACJ,CAAC;CAGD,CAAA;AAf0B;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;+CAAoB;AAVjC,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAyB5B;;AAED,eAAe,gBAAgB,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} from 'lit/decorators.js';\nimport {styles} from './nile-option-header.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile option-header component.\n *\n * @tag nile-option-header\n *\n */\n@customElement('nile-option-header')\nexport class NileOptionHeader extends NileElement {\n\n\t/**\n\t * The styles for nile-option-header\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@property({type: String}) group: string = '';\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\t\t\t<div class=\"option-header\" part=\"option-header\">\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileOptionHeader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-option-header': NileOptionHeader;\n }\n}"]}
|
@@ -21,11 +21,14 @@ export declare class NileTableBody extends NileElement {
|
|
21
21
|
_childNodes: Array<HTMLElement>;
|
22
22
|
type: 'primary' | 'secondary';
|
23
23
|
bodyStyle: string;
|
24
|
+
expandableRows: boolean;
|
25
|
+
collapsible: boolean;
|
24
26
|
private rows_data;
|
25
27
|
private header_rows_data;
|
26
28
|
private sort__index;
|
27
29
|
private search__index;
|
28
30
|
private hasResizableColumns;
|
31
|
+
private expandedRow;
|
29
32
|
static get styles(): CSSResultArray;
|
30
33
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
31
34
|
private getChildren;
|
@@ -24,9 +24,12 @@ let NileTableBody = class NileTableBody extends NileElement {
|
|
24
24
|
*/
|
25
25
|
super(...arguments);
|
26
26
|
this.type = 'primary';
|
27
|
+
this.expandableRows = false;
|
28
|
+
this.collapsible = false;
|
27
29
|
this.rows_data = [];
|
28
30
|
this.header_rows_data = [];
|
29
31
|
this.hasResizableColumns = false;
|
32
|
+
this.expandedRow = null;
|
30
33
|
/* #endregion */
|
31
34
|
}
|
32
35
|
static get styles() {
|
@@ -34,6 +37,20 @@ let NileTableBody = class NileTableBody extends NileElement {
|
|
34
37
|
}
|
35
38
|
firstUpdated(_changedProperties) {
|
36
39
|
this.emit('nile-body-load', { value: this.type, comp: this }, true, false);
|
40
|
+
if (this.collapsible) {
|
41
|
+
this.addEventListener('nile-change', (e) => {
|
42
|
+
const targetRow = e.target;
|
43
|
+
if (e.detail.expanded) {
|
44
|
+
if (this.expandedRow && this.expandedRow !== targetRow) {
|
45
|
+
this.expandedRow.expanded = false;
|
46
|
+
}
|
47
|
+
this.expandedRow = targetRow;
|
48
|
+
}
|
49
|
+
else if (this.expandedRow === targetRow) {
|
50
|
+
this.expandedRow = null;
|
51
|
+
}
|
52
|
+
});
|
53
|
+
}
|
37
54
|
}
|
38
55
|
/* #endregion */
|
39
56
|
/* #region Methods */
|
@@ -50,6 +67,15 @@ let NileTableBody = class NileTableBody extends NileElement {
|
|
50
67
|
let row_data = [];
|
51
68
|
this._childNodes.forEach((child) => {
|
52
69
|
if (child.tagName && child?.tagName?.toLowerCase() === 'nile-table-row') {
|
70
|
+
if (this.expandableRows) {
|
71
|
+
const expandable = child.getAttribute('expandable');
|
72
|
+
if (expandable) {
|
73
|
+
child.expandable = expandable === 'false' || expandable === false ? false : true;
|
74
|
+
}
|
75
|
+
else {
|
76
|
+
child.expandable = true;
|
77
|
+
}
|
78
|
+
}
|
53
79
|
let nilerows = this.getChildren(child, 'nile-table-cell-item');
|
54
80
|
if (nilerows.length > 0) {
|
55
81
|
nilerows.forEach((element) => {
|
@@ -113,6 +139,12 @@ __decorate([
|
|
113
139
|
__decorate([
|
114
140
|
property()
|
115
141
|
], NileTableBody.prototype, "bodyStyle", void 0);
|
142
|
+
__decorate([
|
143
|
+
property({ type: Boolean, reflect: true, attribute: true })
|
144
|
+
], NileTableBody.prototype, "expandableRows", void 0);
|
145
|
+
__decorate([
|
146
|
+
property({ type: Boolean, reflect: true, attribute: true })
|
147
|
+
], NileTableBody.prototype, "collapsible", void 0);
|
116
148
|
__decorate([
|
117
149
|
state()
|
118
150
|
], NileTableBody.prototype, "rows_data", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-table-body.js","sourceRoot":"","sources":["../../../src/nile-table-body/nile-table-body.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAEL,IAAI,GAIL,MAAM,KAAK,CAAC;AACb,OAAO,EACL,aAAa,EACb,KAAK,EACL,KAAK,EAGL,kBAAkB,EAClB,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEzE;;;;;GAKG;AAEI,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,WAAW;IAAvC;QACL;;;WAGG;;QAIS,SAAI,GAA4B,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"nile-table-body.js","sourceRoot":"","sources":["../../../src/nile-table-body/nile-table-body.ts"],"names":[],"mappings":"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","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 {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n PropertyValues,\n} from 'lit';\nimport {\n customElement,\n query,\n state,\n queryAll,\n queryAssignedElements,\n queryAssignedNodes,\n property\n} from 'lit/decorators.js';\nimport { styles } from './nile-table-body.css';\nimport NileElement from '../internal/nile-element';\nimport { getInnerHTML } from '../slot';\nimport { hasResizableColumns } from '../internal/resizable-table-helper';\n\n/**\n * nile-table-body component.\n *\n * @tag nile-table-body\n *\n */\n@customElement('nile-table-body')\nexport class NileTableBody extends NileElement {\n /**\n * The styles for TableBody\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n\n @query('slot') defaultSlot: HTMLSlotElement;\n @queryAssignedNodes({ flatten: true }) _childNodes!: Array<HTMLElement>;\n @property() type: 'primary' | 'secondary' = 'primary';\n @property() bodyStyle: string;\n @property({ type: Boolean, reflect: true, attribute: true }) expandableRows = false;\n @property({ type: Boolean, reflect: true, attribute: true }) collapsible = false;\n\n @state() private rows_data: any[] = [];\n @state() private header_rows_data: any[] = [];\n @state() private sort__index: number;\n @state() private search__index: number;\n @state() private hasResizableColumns = false;\n private expandedRow: HTMLElement | null = null;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n protected firstUpdated(_changedProperties: PropertyValues): void {\n this.emit('nile-body-load', { value: this.type, comp: this }, true, false)\n \n if (this.collapsible) {\n this.addEventListener('nile-change', (e: any) => {\n const targetRow = e.target as HTMLElement;\n\n if (e.detail.expanded) {\n if (this.expandedRow && this.expandedRow !== targetRow) {\n (this.expandedRow as any).expanded = false;\n }\n this.expandedRow = targetRow;\n } else if (this.expandedRow === targetRow) {\n this.expandedRow = null;\n }\n });\n }\n }\n\n /* #endregion */\n\n /* #region Methods */\n\n private getChildren(child: any, tagname: string) {\n return child.querySelectorAll(tagname);\n }\n\n private getIndexValue(index__value: string): number {\n return this.header_rows_data.indexOf(index__value);\n }\n\n private checkForResizableColumns() {\n this.hasResizableColumns = hasResizableColumns(this);\n }\n\n handleSlotchange(e: any) {\n let row_data: any = [];\n this._childNodes.forEach((child: any) => {\n if (child.tagName && child?.tagName?.toLowerCase() === 'nile-table-row') {\n if (this.expandableRows) {\n const expandable = child.getAttribute('expandable');\n if (expandable) {\n (child as any).expandable = expandable === 'false' || expandable === false ? false : true;\n } else {\n (child as any).expandable = true;\n }\n }\n let nilerows = this.getChildren(child, 'nile-table-cell-item');\n if (nilerows.length > 0) {\n nilerows.forEach((element: { innerHTML: any }) => {\n row_data.push(element.innerHTML);\n });\n this.rows_data.push(row_data);\n } else {\n let nileheaders = this.getChildren(child, 'nile-table-header-item');\n if (nileheaders.length > 0) {\n nileheaders.forEach((header: HTMLSlotElement, index: number) => {\n this.header_rows_data.push(header.innerHTML);\n });\n }\n }\n row_data = [];\n }\n });\n \n this.checkForResizableColumns();\n }\n\n private handleSort(e: any) {\n const { curr_sort_string, order } = e.detail.value;\n const header_index = this.getIndexValue(curr_sort_string);\n this.emit('nile-sort', {\n value: { header_index, curr_sort_string, order },\n });\n }\n\n private handleSearch(e: any) {\n const searchText = e.detail.value;\n this.search__index = this.getIndexValue(e.target.textContent);\n this.emit('nile-table-search', {\n index: this.search__index,\n value: searchText,\n });\n }\n\n public render(): TemplateResult {\n return html`\n <div class=\"base\" part=\"base\">\n <slot name=\"table__header\" class=\"table__header\"></slot>\n <slot\n @slotchange=${this.handleSlotchange}\n @nile-click-sort=${this.handleSort}\n class=\"nile__table__body\"\n style=\"display: ${this.bodyStyle}\"\n ?resizable=${this.hasResizableColumns}\n @nile-search=${this.handleSearch}\n ></slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileTableBody;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-table-body': NileTableBody;\n }\n}\n"]}
|
@@ -49,6 +49,11 @@ export const styles = css `
|
|
49
49
|
${resizableHostStyles}
|
50
50
|
${resizerStyles}
|
51
51
|
${resizableSlotStyles}
|
52
|
+
|
53
|
+
::slotted([slot="expansionTrigger"]),
|
54
|
+
::slotted([slot="expansionTrigger"]) {
|
55
|
+
cursor: pointer;
|
56
|
+
}
|
52
57
|
`;
|
53
58
|
export default [styles];
|
54
59
|
//# sourceMappingURL=nile-table-cell-item.css.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-table-cell-item.css.js","sourceRoot":"","sources":["../../../src/nile-table-cell-item/nile-table-cell-item.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE7G;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqCrB,mBAAmB;IACnB,aAAa;IACb,mBAAmB
|
1
|
+
{"version":3,"file":"nile-table-cell-item.css.js","sourceRoot":"","sources":["../../../src/nile-table-cell-item/nile-table-cell-item.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE7G;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqCrB,mBAAmB;IACnB,aAAa;IACb,mBAAmB;;;;;;CAMtB,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';\nimport { resizableHostStyles, resizerStyles, resizableSlotStyles } from '../internal/resizable-table-styles';\n\n/**\n * TableCellItem CSS\n */\nexport const styles = css`\n :host {\n --min-cell-width:auto;\n --cell-width:auto;\n --min--height: 52px;\n --max--cell-width: auto;\n box-sizing: border-box;\n display: table-cell;\n vertical-align: middle;\n padding: 16px 24px;\n max-width: var(--max--cell-width); \n min-height: var(--min--height);\n }\n\n .cell__wrapper {\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n overflow: hidden;\n width: 100%;\n }\n\n .column {\n min-width:var(--min-cell-width);\n width:var(--cell-width);\n height: 100%;\n color: var(--nile-colors-gray-light-mode-600);\n font-family: var(--nile-font-family-serif);\n font-size: var(--nile-type-scale-3);\n font-style: normal;\n font-weight: var(--nile-font-weight-regular);\n /* line-height: var(--nile-type-scale-6); */\n line-height: normal;\n letter-spacing: 0.2px;\n }\n\n ${resizableHostStyles}\n ${resizerStyles}\n ${resizableSlotStyles}\n\n ::slotted([slot=\"expansionTrigger\"]),\n ::slotted([slot=\"expansionTrigger\"]) {\n cursor: pointer;\n }\n`;\n\nexport default [styles];\n"]}
|
@@ -46,6 +46,12 @@ let NileTableCellItem = class NileTableCellItem extends NileElement {
|
|
46
46
|
}
|
47
47
|
}
|
48
48
|
}
|
49
|
+
handleClick(e) {
|
50
|
+
this.dispatchEvent(new CustomEvent('nile-expand-click', {
|
51
|
+
bubbles: true,
|
52
|
+
composed: true,
|
53
|
+
}));
|
54
|
+
}
|
49
55
|
/**
|
50
56
|
* Render method
|
51
57
|
* @slot This is a slot test
|
@@ -55,7 +61,11 @@ let NileTableCellItem = class NileTableCellItem extends NileElement {
|
|
55
61
|
return html `
|
56
62
|
<div class="cell__wrapper" part="nile__table-cell">
|
57
63
|
${this.hasSlotController.test('[default]')
|
58
|
-
? html `
|
64
|
+
? html `
|
65
|
+
<div class="column" part="nile__table-cell">
|
66
|
+
<slot name="expansionTrigger" @click=${this.handleClick} part="expansionTrigger"></slot>
|
67
|
+
<slot></slot>
|
68
|
+
</div>`
|
59
69
|
: ''}
|
60
70
|
<div class="resizer" @mousedown=${this.handleResizeStart}></div>
|
61
71
|
</div>
|
@@ -64,7 +74,9 @@ let NileTableCellItem = class NileTableCellItem extends NileElement {
|
|
64
74
|
else {
|
65
75
|
return html `
|
66
76
|
${this.hasSlotController.test('[default]')
|
67
|
-
? html `
|
77
|
+
? html `
|
78
|
+
<slot name="expansionTrigger" @click=${this.handleClick} part="expansionTrigger"></slot>
|
79
|
+
<slot class="column" part="nile__table-cell"> </slot>`
|
68
80
|
: ''}
|
69
81
|
`;
|
70
82
|
}
|