ux4g-components-angular 1.4.0 → 1.5.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 +330 -48
- package/dist/accessibility-bar/README.md +330 -48
- package/dist/accordion/README.md +330 -48
- package/dist/alert/README.md +330 -48
- package/dist/avatar/README.md +330 -48
- package/dist/badge/README.md +330 -48
- package/dist/breadcrumb/README.md +330 -48
- package/dist/button/README.md +330 -48
- package/dist/card/README.md +330 -48
- package/dist/carousel/README.md +330 -48
- package/dist/checkbox/README.md +330 -48
- package/dist/chip/README.md +330 -48
- package/dist/chip-group/README.md +330 -48
- package/dist/combobox/README.md +330 -48
- package/dist/date-time-picker/README.md +330 -48
- package/dist/divider/README.md +330 -48
- package/dist/draft-status-banner/README.md +330 -48
- package/dist/drawer/README.md +330 -48
- package/dist/dropdown/README.md +330 -48
- package/dist/empty-state/README.md +330 -48
- package/dist/feedback/README.md +330 -48
- package/dist/file-upload/README.md +330 -48
- package/dist/footer/README.md +330 -48
- package/dist/form-field-group/README.md +330 -48
- package/dist/icon-button/README.md +330 -48
- package/dist/image/README.md +330 -48
- package/dist/input/README.md +330 -48
- package/dist/journey-timeline/README.md +330 -48
- package/dist/link/README.md +330 -48
- package/dist/list/README.md +330 -48
- package/dist/mega-menu/README.md +330 -48
- package/dist/modal/README.md +330 -48
- package/dist/native/accordion/README.md +1541 -0
- package/dist/native/accordion/fesm2022/ux4g-components-angular-native-accordion.mjs +85 -0
- package/dist/native/accordion/fesm2022/ux4g-components-angular-native-accordion.mjs.map +1 -0
- package/dist/native/accordion/index.d.ts +6 -0
- package/dist/native/accordion/public-api.d.ts +3 -0
- package/dist/native/accordion/public-api.d.ts.map +1 -0
- package/dist/native/accordion/ux4g-components-angular-native-accordion.d.ts.map +1 -0
- package/dist/native/accordion/ux4g-native-accordion.component.d.ts +31 -0
- package/dist/native/accordion/ux4g-native-accordion.component.d.ts.map +1 -0
- package/dist/native/accordion/ux4g-native-accordion.module.d.ts +12 -0
- package/dist/native/accordion/ux4g-native-accordion.module.d.ts.map +1 -0
- package/dist/native/avatar/README.md +1541 -0
- package/dist/native/avatar/fesm2022/ux4g-components-angular-native-avatar.mjs +81 -0
- package/dist/native/avatar/fesm2022/ux4g-components-angular-native-avatar.mjs.map +1 -0
- package/dist/native/avatar/index.d.ts +6 -0
- package/dist/native/avatar/public-api.d.ts +3 -0
- package/dist/native/avatar/public-api.d.ts.map +1 -0
- package/dist/native/avatar/ux4g-components-angular-native-avatar.d.ts.map +1 -0
- package/dist/native/avatar/ux4g-native-avatar.component.d.ts +34 -0
- package/dist/native/avatar/ux4g-native-avatar.component.d.ts.map +1 -0
- package/dist/native/avatar/ux4g-native-avatar.module.d.ts +8 -0
- package/dist/native/avatar/ux4g-native-avatar.module.d.ts.map +1 -0
- package/dist/native/carousel/README.md +1541 -0
- package/dist/native/carousel/fesm2022/ux4g-components-angular-native-carousel.mjs +91 -0
- package/dist/native/carousel/fesm2022/ux4g-components-angular-native-carousel.mjs.map +1 -0
- package/dist/native/carousel/index.d.ts +6 -0
- package/dist/native/carousel/public-api.d.ts +3 -0
- package/dist/native/carousel/public-api.d.ts.map +1 -0
- package/dist/native/carousel/ux4g-components-angular-native-carousel.d.ts.map +1 -0
- package/dist/native/carousel/ux4g-native-carousel.component.d.ts +34 -0
- package/dist/native/carousel/ux4g-native-carousel.component.d.ts.map +1 -0
- package/dist/native/carousel/ux4g-native-carousel.module.d.ts +8 -0
- package/dist/native/carousel/ux4g-native-carousel.module.d.ts.map +1 -0
- package/dist/native/chip/README.md +1541 -0
- package/dist/native/chip/fesm2022/ux4g-components-angular-native-chip.mjs +99 -0
- package/dist/native/chip/fesm2022/ux4g-components-angular-native-chip.mjs.map +1 -0
- package/dist/native/chip/index.d.ts +6 -0
- package/dist/native/chip/public-api.d.ts +3 -0
- package/dist/native/chip/public-api.d.ts.map +1 -0
- package/dist/native/chip/ux4g-components-angular-native-chip.d.ts.map +1 -0
- package/dist/native/chip/ux4g-native-chip.component.d.ts +34 -0
- package/dist/native/chip/ux4g-native-chip.component.d.ts.map +1 -0
- package/dist/native/chip/ux4g-native-chip.module.d.ts +8 -0
- package/dist/native/chip/ux4g-native-chip.module.d.ts.map +1 -0
- package/dist/native/combobox/README.md +1541 -0
- package/dist/native/combobox/fesm2022/ux4g-components-angular-native-combobox.mjs +107 -0
- package/dist/native/combobox/fesm2022/ux4g-components-angular-native-combobox.mjs.map +1 -0
- package/dist/native/combobox/index.d.ts +6 -0
- package/dist/native/combobox/public-api.d.ts +3 -0
- package/dist/native/combobox/public-api.d.ts.map +1 -0
- package/dist/native/combobox/ux4g-components-angular-native-combobox.d.ts.map +1 -0
- package/dist/native/combobox/ux4g-native-combobox.component.d.ts +30 -0
- package/dist/native/combobox/ux4g-native-combobox.component.d.ts.map +1 -0
- package/dist/native/combobox/ux4g-native-combobox.module.d.ts +8 -0
- package/dist/native/combobox/ux4g-native-combobox.module.d.ts.map +1 -0
- package/dist/native/date-picker/README.md +1541 -0
- package/dist/native/date-picker/fesm2022/ux4g-components-angular-native-date-picker.mjs +181 -0
- package/dist/native/date-picker/fesm2022/ux4g-components-angular-native-date-picker.mjs.map +1 -0
- package/dist/native/date-picker/index.d.ts +6 -0
- package/dist/native/date-picker/public-api.d.ts +3 -0
- package/dist/native/date-picker/public-api.d.ts.map +1 -0
- package/dist/native/date-picker/ux4g-components-angular-native-date-picker.d.ts.map +1 -0
- package/dist/native/date-picker/ux4g-native-date-picker.component.d.ts +39 -0
- package/dist/native/date-picker/ux4g-native-date-picker.component.d.ts.map +1 -0
- package/dist/native/date-picker/ux4g-native-date-picker.module.d.ts +12 -0
- package/dist/native/date-picker/ux4g-native-date-picker.module.d.ts.map +1 -0
- package/dist/native/drawer/README.md +1541 -0
- package/dist/native/drawer/fesm2022/ux4g-components-angular-native-drawer.mjs +159 -0
- package/dist/native/drawer/fesm2022/ux4g-components-angular-native-drawer.mjs.map +1 -0
- package/dist/native/drawer/index.d.ts +6 -0
- package/dist/native/drawer/public-api.d.ts +3 -0
- package/dist/native/drawer/public-api.d.ts.map +1 -0
- package/dist/native/drawer/ux4g-components-angular-native-drawer.d.ts.map +1 -0
- package/dist/native/drawer/ux4g-native-drawer.component.d.ts +37 -0
- package/dist/native/drawer/ux4g-native-drawer.component.d.ts.map +1 -0
- package/dist/native/drawer/ux4g-native-drawer.module.d.ts +12 -0
- package/dist/native/drawer/ux4g-native-drawer.module.d.ts.map +1 -0
- package/dist/native/dropdown/README.md +1541 -0
- package/dist/native/dropdown/fesm2022/ux4g-components-angular-native-dropdown.mjs +108 -0
- package/dist/native/dropdown/fesm2022/ux4g-components-angular-native-dropdown.mjs.map +1 -0
- package/dist/native/dropdown/index.d.ts +6 -0
- package/dist/native/dropdown/public-api.d.ts +3 -0
- package/dist/native/dropdown/public-api.d.ts.map +1 -0
- package/dist/native/dropdown/ux4g-components-angular-native-dropdown.d.ts.map +1 -0
- package/dist/native/dropdown/ux4g-native-dropdown.component.d.ts +32 -0
- package/dist/native/dropdown/ux4g-native-dropdown.component.d.ts.map +1 -0
- package/dist/native/dropdown/ux4g-native-dropdown.module.d.ts +8 -0
- package/dist/native/dropdown/ux4g-native-dropdown.module.d.ts.map +1 -0
- package/dist/native/file-upload/README.md +1541 -0
- package/dist/native/file-upload/fesm2022/ux4g-components-angular-native-file-upload.mjs +193 -0
- package/dist/native/file-upload/fesm2022/ux4g-components-angular-native-file-upload.mjs.map +1 -0
- package/dist/native/file-upload/index.d.ts +6 -0
- package/dist/native/file-upload/public-api.d.ts +3 -0
- package/dist/native/file-upload/public-api.d.ts.map +1 -0
- package/dist/native/file-upload/ux4g-components-angular-native-file-upload.d.ts.map +1 -0
- package/dist/native/file-upload/ux4g-native-file-upload.component.d.ts +40 -0
- package/dist/native/file-upload/ux4g-native-file-upload.component.d.ts.map +1 -0
- package/dist/native/file-upload/ux4g-native-file-upload.module.d.ts +8 -0
- package/dist/native/file-upload/ux4g-native-file-upload.module.d.ts.map +1 -0
- package/dist/native/modal/README.md +1541 -0
- package/dist/native/modal/fesm2022/ux4g-components-angular-native-modal.mjs +219 -0
- package/dist/native/modal/fesm2022/ux4g-components-angular-native-modal.mjs.map +1 -0
- package/dist/native/modal/index.d.ts +6 -0
- package/dist/native/modal/public-api.d.ts +3 -0
- package/dist/native/modal/public-api.d.ts.map +1 -0
- package/dist/native/modal/ux4g-components-angular-native-modal.d.ts.map +1 -0
- package/dist/native/modal/ux4g-native-modal.component.d.ts +42 -0
- package/dist/native/modal/ux4g-native-modal.component.d.ts.map +1 -0
- package/dist/native/modal/ux4g-native-modal.module.d.ts +12 -0
- package/dist/native/modal/ux4g-native-modal.module.d.ts.map +1 -0
- package/dist/native/otp/README.md +1541 -0
- package/dist/native/otp/fesm2022/ux4g-components-angular-native-otp.mjs +176 -0
- package/dist/native/otp/fesm2022/ux4g-components-angular-native-otp.mjs.map +1 -0
- package/dist/native/otp/index.d.ts +6 -0
- package/dist/native/otp/public-api.d.ts +3 -0
- package/dist/native/otp/public-api.d.ts.map +1 -0
- package/dist/native/otp/ux4g-components-angular-native-otp.d.ts.map +1 -0
- package/dist/native/otp/ux4g-native-otp.component.d.ts +32 -0
- package/dist/native/otp/ux4g-native-otp.component.d.ts.map +1 -0
- package/dist/native/otp/ux4g-native-otp.module.d.ts +8 -0
- package/dist/native/otp/ux4g-native-otp.module.d.ts.map +1 -0
- package/dist/native/popover/README.md +1541 -0
- package/dist/native/popover/fesm2022/ux4g-components-angular-native-popover.mjs +75 -0
- package/dist/native/popover/fesm2022/ux4g-components-angular-native-popover.mjs.map +1 -0
- package/dist/native/popover/index.d.ts +6 -0
- package/dist/native/popover/public-api.d.ts +3 -0
- package/dist/native/popover/public-api.d.ts.map +1 -0
- package/dist/native/popover/ux4g-components-angular-native-popover.d.ts.map +1 -0
- package/dist/native/popover/ux4g-native-popover.component.d.ts +29 -0
- package/dist/native/popover/ux4g-native-popover.component.d.ts.map +1 -0
- package/dist/native/popover/ux4g-native-popover.module.d.ts +8 -0
- package/dist/native/popover/ux4g-native-popover.module.d.ts.map +1 -0
- package/dist/native/progress/README.md +1541 -0
- package/dist/native/progress/fesm2022/ux4g-components-angular-native-progress.mjs +79 -0
- package/dist/native/progress/fesm2022/ux4g-components-angular-native-progress.mjs.map +1 -0
- package/dist/native/progress/index.d.ts +6 -0
- package/dist/native/progress/public-api.d.ts +3 -0
- package/dist/native/progress/public-api.d.ts.map +1 -0
- package/dist/native/progress/ux4g-components-angular-native-progress.d.ts.map +1 -0
- package/dist/native/progress/ux4g-native-progress.component.d.ts +29 -0
- package/dist/native/progress/ux4g-native-progress.component.d.ts.map +1 -0
- package/dist/native/progress/ux4g-native-progress.module.d.ts +8 -0
- package/dist/native/progress/ux4g-native-progress.module.d.ts.map +1 -0
- package/dist/native/search/README.md +1541 -0
- package/dist/native/search/fesm2022/ux4g-components-angular-native-search.mjs +148 -0
- package/dist/native/search/fesm2022/ux4g-components-angular-native-search.mjs.map +1 -0
- package/dist/native/search/index.d.ts +6 -0
- package/dist/native/search/public-api.d.ts +3 -0
- package/dist/native/search/public-api.d.ts.map +1 -0
- package/dist/native/search/ux4g-components-angular-native-search.d.ts.map +1 -0
- package/dist/native/search/ux4g-native-search.component.d.ts +46 -0
- package/dist/native/search/ux4g-native-search.component.d.ts.map +1 -0
- package/dist/native/search/ux4g-native-search.module.d.ts +8 -0
- package/dist/native/search/ux4g-native-search.module.d.ts.map +1 -0
- package/dist/native/shared/README.md +1541 -0
- package/dist/native/shared/base-native.component.d.ts +38 -0
- package/dist/native/shared/base-native.component.d.ts.map +1 -0
- package/dist/native/shared/fesm2022/ux4g-components-angular-native-shared.mjs +113 -0
- package/dist/native/shared/fesm2022/ux4g-components-angular-native-shared.mjs.map +1 -0
- package/dist/native/shared/index.d.ts +6 -0
- package/dist/native/shared/public-api.d.ts +3 -0
- package/dist/native/shared/public-api.d.ts.map +1 -0
- package/dist/native/shared/render-descriptor.d.ts +8 -0
- package/dist/native/shared/render-descriptor.d.ts.map +1 -0
- package/dist/native/shared/ux4g-components-angular-native-shared.d.ts.map +1 -0
- package/dist/native/stepper/README.md +1541 -0
- package/dist/native/stepper/fesm2022/ux4g-components-angular-native-stepper.mjs +92 -0
- package/dist/native/stepper/fesm2022/ux4g-components-angular-native-stepper.mjs.map +1 -0
- package/dist/native/stepper/index.d.ts +6 -0
- package/dist/native/stepper/public-api.d.ts +3 -0
- package/dist/native/stepper/public-api.d.ts.map +1 -0
- package/dist/native/stepper/ux4g-components-angular-native-stepper.d.ts.map +1 -0
- package/dist/native/stepper/ux4g-native-stepper.component.d.ts +35 -0
- package/dist/native/stepper/ux4g-native-stepper.component.d.ts.map +1 -0
- package/dist/native/stepper/ux4g-native-stepper.module.d.ts +8 -0
- package/dist/native/stepper/ux4g-native-stepper.module.d.ts.map +1 -0
- package/dist/native/table/README.md +1541 -0
- package/dist/native/table/fesm2022/ux4g-components-angular-native-table.mjs +91 -0
- package/dist/native/table/fesm2022/ux4g-components-angular-native-table.mjs.map +1 -0
- package/dist/native/table/index.d.ts +6 -0
- package/dist/native/table/public-api.d.ts +3 -0
- package/dist/native/table/public-api.d.ts.map +1 -0
- package/dist/native/table/ux4g-components-angular-native-table.d.ts.map +1 -0
- package/dist/native/table/ux4g-native-table.component.d.ts +32 -0
- package/dist/native/table/ux4g-native-table.component.d.ts.map +1 -0
- package/dist/native/table/ux4g-native-table.module.d.ts +12 -0
- package/dist/native/table/ux4g-native-table.module.d.ts.map +1 -0
- package/dist/native/tabs/README.md +1541 -0
- package/dist/native/tabs/fesm2022/ux4g-components-angular-native-tabs.mjs +190 -0
- package/dist/native/tabs/fesm2022/ux4g-components-angular-native-tabs.mjs.map +1 -0
- package/dist/native/tabs/index.d.ts +6 -0
- package/dist/native/tabs/public-api.d.ts +3 -0
- package/dist/native/tabs/public-api.d.ts.map +1 -0
- package/dist/native/tabs/ux4g-components-angular-native-tabs.d.ts.map +1 -0
- package/dist/native/tabs/ux4g-native-tabs.component.d.ts +43 -0
- package/dist/native/tabs/ux4g-native-tabs.component.d.ts.map +1 -0
- package/dist/native/tabs/ux4g-native-tabs.module.d.ts +12 -0
- package/dist/native/tabs/ux4g-native-tabs.module.d.ts.map +1 -0
- package/dist/native/time-picker/README.md +1541 -0
- package/dist/native/time-picker/fesm2022/ux4g-components-angular-native-time-picker.mjs +104 -0
- package/dist/native/time-picker/fesm2022/ux4g-components-angular-native-time-picker.mjs.map +1 -0
- package/dist/native/time-picker/index.d.ts +6 -0
- package/dist/native/time-picker/public-api.d.ts +3 -0
- package/dist/native/time-picker/public-api.d.ts.map +1 -0
- package/dist/native/time-picker/ux4g-components-angular-native-time-picker.d.ts.map +1 -0
- package/dist/native/time-picker/ux4g-native-time-picker.component.d.ts +27 -0
- package/dist/native/time-picker/ux4g-native-time-picker.component.d.ts.map +1 -0
- package/dist/native/time-picker/ux4g-native-time-picker.module.d.ts +8 -0
- package/dist/native/time-picker/ux4g-native-time-picker.module.d.ts.map +1 -0
- package/dist/native/tooltip/README.md +1541 -0
- package/dist/native/tooltip/fesm2022/ux4g-components-angular-native-tooltip.mjs +80 -0
- package/dist/native/tooltip/fesm2022/ux4g-components-angular-native-tooltip.mjs.map +1 -0
- package/dist/native/tooltip/index.d.ts +6 -0
- package/dist/native/tooltip/public-api.d.ts +3 -0
- package/dist/native/tooltip/public-api.d.ts.map +1 -0
- package/dist/native/tooltip/ux4g-components-angular-native-tooltip.d.ts.map +1 -0
- package/dist/native/tooltip/ux4g-native-tooltip.component.d.ts +31 -0
- package/dist/native/tooltip/ux4g-native-tooltip.component.d.ts.map +1 -0
- package/dist/native/tooltip/ux4g-native-tooltip.module.d.ts +8 -0
- package/dist/native/tooltip/ux4g-native-tooltip.module.d.ts.map +1 -0
- package/dist/navbar/README.md +330 -48
- package/dist/otp-input/README.md +330 -48
- package/dist/pagination/README.md +330 -48
- package/dist/popover/README.md +330 -48
- package/dist/progress-indicator/README.md +330 -48
- package/dist/radio/README.md +330 -48
- package/dist/result-list-row/README.md +330 -48
- package/dist/search/README.md +330 -48
- package/dist/sla-progress-indicator/README.md +330 -48
- package/dist/slider/README.md +330 -48
- package/dist/slot-grid/README.md +330 -48
- package/dist/social-links/README.md +330 -48
- package/dist/spinner/README.md +330 -48
- package/dist/status-pipeline/README.md +330 -48
- package/dist/stepper/README.md +330 -48
- package/dist/switch/README.md +330 -48
- package/dist/tab/README.md +330 -48
- package/dist/table/README.md +330 -48
- package/dist/tag/README.md +330 -48
- package/dist/tooltip/README.md +330 -48
- package/package.json +176 -3
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
3
|
+
import { generateTableDOM } from 'ux4g-components-web/dom-generators';
|
|
4
|
+
import { BaseNativeComponent, renderDescriptorToDOM } from '@ux4g-native-shared';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* UX4GNativeTableComponent — Angular Native Wrapper for the Table component.
|
|
8
|
+
*
|
|
9
|
+
* Generates the complete UX4G table DOM internally using the shared
|
|
10
|
+
* DOM Generator. Produces a `<table>` with `<thead>` containing one
|
|
11
|
+
* `<th>` per column and `<tbody>` containing one `<tr>` per data row,
|
|
12
|
+
* each with one `<td>` per column.
|
|
13
|
+
*
|
|
14
|
+
* Sortable columns receive `aria-sort="none"` on their `<th>`.
|
|
15
|
+
*/
|
|
16
|
+
class UX4GNativeTableComponent extends BaseNativeComponent {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.columns = [];
|
|
20
|
+
this.data = [];
|
|
21
|
+
}
|
|
22
|
+
ngOnChanges() {
|
|
23
|
+
this.renderComponent();
|
|
24
|
+
}
|
|
25
|
+
renderComponent() {
|
|
26
|
+
// Clear existing children
|
|
27
|
+
const hostEl = this.elementRef.nativeElement;
|
|
28
|
+
while (hostEl.firstChild) {
|
|
29
|
+
this.renderer.removeChild(hostEl, hostEl.firstChild);
|
|
30
|
+
}
|
|
31
|
+
// Generate descriptor and render to DOM
|
|
32
|
+
if (this.columns && this.columns.length > 0) {
|
|
33
|
+
const descriptor = generateTableDOM({
|
|
34
|
+
columns: this.columns,
|
|
35
|
+
data: this.data || [],
|
|
36
|
+
size: this.size,
|
|
37
|
+
divider: this.divider,
|
|
38
|
+
zebra: this.zebra,
|
|
39
|
+
interactive: this.interactive,
|
|
40
|
+
});
|
|
41
|
+
renderDescriptorToDOM(this.renderer, descriptor, hostEl);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
45
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: UX4GNativeTableComponent, isStandalone: true, selector: "ux4g-native-table", inputs: { columns: "columns", data: "data", size: "size", divider: "divider", zebra: "zebra", interactive: "interactive" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, encapsulation: i0.ViewEncapsulation.None }); }
|
|
46
|
+
}
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeTableComponent, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{
|
|
50
|
+
selector: 'ux4g-native-table',
|
|
51
|
+
standalone: true,
|
|
52
|
+
template: '',
|
|
53
|
+
encapsulation: ViewEncapsulation.None,
|
|
54
|
+
}]
|
|
55
|
+
}], propDecorators: { columns: [{
|
|
56
|
+
type: Input
|
|
57
|
+
}], data: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}], size: [{
|
|
60
|
+
type: Input
|
|
61
|
+
}], divider: [{
|
|
62
|
+
type: Input
|
|
63
|
+
}], zebra: [{
|
|
64
|
+
type: Input
|
|
65
|
+
}], interactive: [{
|
|
66
|
+
type: Input
|
|
67
|
+
}] } });
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* NgModule for backward compatibility with module-based Angular applications.
|
|
71
|
+
* Standalone-first consumers can import UX4GNativeTableComponent directly.
|
|
72
|
+
*/
|
|
73
|
+
class UX4GNativeTableModule {
|
|
74
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
75
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeTableModule, imports: [UX4GNativeTableComponent], exports: [UX4GNativeTableComponent] }); }
|
|
76
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeTableModule }); }
|
|
77
|
+
}
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeTableModule, decorators: [{
|
|
79
|
+
type: NgModule,
|
|
80
|
+
args: [{
|
|
81
|
+
imports: [UX4GNativeTableComponent],
|
|
82
|
+
exports: [UX4GNativeTableComponent],
|
|
83
|
+
}]
|
|
84
|
+
}] });
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Generated bundle index. Do not edit.
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
export { UX4GNativeTableComponent, UX4GNativeTableModule };
|
|
91
|
+
//# sourceMappingURL=ux4g-components-angular-native-table.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ux4g-components-angular-native-table.mjs","sources":["../../../../src/native/table/ux4g-native-table.component.ts","../../../../src/native/table/ux4g-native-table.module.ts","../../../../src/native/table/ux4g-components-angular-native-table.ts"],"sourcesContent":["import {\r\n Component,\r\n Input,\r\n OnChanges,\r\n ViewEncapsulation,\r\n} from '@angular/core';\r\nimport { generateTableDOM } from 'ux4g-components-web/dom-generators';\r\nimport { TableSize, TableDivider, TableZebra } from 'ux4g-components-web/types';\r\nimport { BaseNativeComponent, renderDescriptorToDOM } from '@ux4g-native-shared';\r\n\r\n/**\r\n * UX4GNativeTableComponent — Angular Native Wrapper for the Table component.\r\n *\r\n * Generates the complete UX4G table DOM internally using the shared\r\n * DOM Generator. Produces a `<table>` with `<thead>` containing one\r\n * `<th>` per column and `<tbody>` containing one `<tr>` per data row,\r\n * each with one `<td>` per column.\r\n *\r\n * Sortable columns receive `aria-sort=\"none\"` on their `<th>`.\r\n */\r\n@Component({\r\n selector: 'ux4g-native-table',\r\n standalone: true,\r\n template: '',\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class UX4GNativeTableComponent extends BaseNativeComponent implements OnChanges {\r\n @Input() columns: Array<{ key: string; label: string; sortable?: boolean; width?: string }> = [];\r\n @Input() data: Array<Record<string, unknown>> = [];\r\n @Input() size?: TableSize;\r\n @Input() divider?: TableDivider;\r\n @Input() zebra?: TableZebra;\r\n @Input() interactive?: boolean;\r\n\r\n ngOnChanges(): void {\r\n this.renderComponent();\r\n }\r\n\r\n protected override renderComponent(): void {\r\n // Clear existing children\r\n const hostEl = this.elementRef.nativeElement;\r\n while (hostEl.firstChild) {\r\n this.renderer.removeChild(hostEl, hostEl.firstChild);\r\n }\r\n\r\n // Generate descriptor and render to DOM\r\n if (this.columns && this.columns.length > 0) {\r\n const descriptor = generateTableDOM({\r\n columns: this.columns,\r\n data: this.data || [],\r\n size: this.size,\r\n divider: this.divider,\r\n zebra: this.zebra,\r\n interactive: this.interactive,\r\n });\r\n renderDescriptorToDOM(this.renderer, descriptor, hostEl);\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { UX4GNativeTableComponent } from './ux4g-native-table.component';\r\n\r\n/**\r\n * NgModule for backward compatibility with module-based Angular applications.\r\n * Standalone-first consumers can import UX4GNativeTableComponent directly.\r\n */\r\n@NgModule({\r\n imports: [UX4GNativeTableComponent],\r\n exports: [UX4GNativeTableComponent],\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AAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ux4g-components-angular-native-table.d.ts","sourceRoot":"","sources":["../../../src/native/table/ux4g-components-angular-native-table.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { TableSize, TableDivider, TableZebra } from 'ux4g-components-web/types';
|
|
3
|
+
import { BaseNativeComponent } from '@ux4g-native-shared';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* UX4GNativeTableComponent — Angular Native Wrapper for the Table component.
|
|
7
|
+
*
|
|
8
|
+
* Generates the complete UX4G table DOM internally using the shared
|
|
9
|
+
* DOM Generator. Produces a `<table>` with `<thead>` containing one
|
|
10
|
+
* `<th>` per column and `<tbody>` containing one `<tr>` per data row,
|
|
11
|
+
* each with one `<td>` per column.
|
|
12
|
+
*
|
|
13
|
+
* Sortable columns receive `aria-sort="none"` on their `<th>`.
|
|
14
|
+
*/
|
|
15
|
+
export declare class UX4GNativeTableComponent extends BaseNativeComponent implements OnChanges {
|
|
16
|
+
columns: Array<{
|
|
17
|
+
key: string;
|
|
18
|
+
label: string;
|
|
19
|
+
sortable?: boolean;
|
|
20
|
+
width?: string;
|
|
21
|
+
}>;
|
|
22
|
+
data: Array<Record<string, unknown>>;
|
|
23
|
+
size?: TableSize;
|
|
24
|
+
divider?: TableDivider;
|
|
25
|
+
zebra?: TableZebra;
|
|
26
|
+
interactive?: boolean;
|
|
27
|
+
ngOnChanges(): void;
|
|
28
|
+
protected renderComponent(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UX4GNativeTableComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UX4GNativeTableComponent, "ux4g-native-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "size": { "alias": "size"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; "zebra": { "alias": "zebra"; "required": false; }; "interactive": { "alias": "interactive"; "required": false; }; }, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=ux4g-native-table.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ux4g-native-table.component.d.ts","sourceRoot":"","sources":["../../../src/native/table/ux4g-native-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EAEV,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAyB,MAAM,qBAAqB,CAAC;;AAEjF;;;;;;;;;GASG;AACH,qBAMa,wBAAyB,SAAQ,mBAAoB,YAAW,SAAS;IAC3E,OAAO,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAM;IACxF,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAM;IAC1C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IAE/B,WAAW,IAAI,IAAI;cAIA,eAAe,IAAI,IAAI;yCAZ/B,wBAAwB;2CAAxB,wBAAwB;CAgCpC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./ux4g-native-table.component";
|
|
3
|
+
/**
|
|
4
|
+
* NgModule for backward compatibility with module-based Angular applications.
|
|
5
|
+
* Standalone-first consumers can import UX4GNativeTableComponent directly.
|
|
6
|
+
*/
|
|
7
|
+
export declare class UX4GNativeTableModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UX4GNativeTableModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UX4GNativeTableModule, never, [typeof i1.UX4GNativeTableComponent], [typeof i1.UX4GNativeTableComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UX4GNativeTableModule>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ux4g-native-table.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ux4g-native-table.module.d.ts","sourceRoot":"","sources":["../../../src/native/table/ux4g-native-table.module.ts"],"names":[],"mappings":";;AAGA;;;GAGG;AACH,qBAIa,qBAAqB;yCAArB,qBAAqB;0CAArB,qBAAqB;0CAArB,qBAAqB;CAAG"}
|