@ascentgl/ads-ui 21.76.0 → 21.77.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/fesm2022/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui.mjs +31 -13
- package/fesm2022/ascentgl-ads-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ascentgl-ads-ui.d.ts +8 -0
|
@@ -10,7 +10,7 @@ class AbstractLogoComponent {
|
|
|
10
10
|
/**
|
|
11
11
|
* Mobile width
|
|
12
12
|
*/
|
|
13
|
-
this.mobileWidth = input(
|
|
13
|
+
this.mobileWidth = input(769, ...(ngDevMode ? [{ debugName: "mobileWidth" }] : []));
|
|
14
14
|
/**
|
|
15
15
|
* Whether the navigation is collapsed
|
|
16
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs","sources":["../../../../libs/ads-ui/src/lib/components/logo/primary-logo/abstract-logo-component.ts","../../../../libs/ads-ui/src/lib/components/logo/primary-logo/primary-logo.component.ts","../../../../libs/ads-ui/src/lib/components/logo/primary-logo/primary-logo.component.html","../../../../libs/ads-ui/src/lib/components/logo/primary-logo/primary-logo.module.ts","../../../../libs/ads-ui/src/lib/components/logo/primary-logo/ascentgl-ads-ui-src-lib-components-logo-primary-logo.ts"],"sourcesContent":["import { Directive, HostListener, input, OnInit } from '@angular/core';\n\n@Directive()\nexport abstract class AbstractLogoComponent implements OnInit {\n /** @ignore */\n isMobile = false;\n\n /**\n * Mobile width\n */\n mobileWidth = input<number>(
|
|
1
|
+
{"version":3,"file":"ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs","sources":["../../../../libs/ads-ui/src/lib/components/logo/primary-logo/abstract-logo-component.ts","../../../../libs/ads-ui/src/lib/components/logo/primary-logo/primary-logo.component.ts","../../../../libs/ads-ui/src/lib/components/logo/primary-logo/primary-logo.component.html","../../../../libs/ads-ui/src/lib/components/logo/primary-logo/primary-logo.module.ts","../../../../libs/ads-ui/src/lib/components/logo/primary-logo/ascentgl-ads-ui-src-lib-components-logo-primary-logo.ts"],"sourcesContent":["import { Directive, HostListener, input, OnInit } from '@angular/core';\n\n@Directive()\nexport abstract class AbstractLogoComponent implements OnInit {\n /** @ignore */\n isMobile = false;\n\n /**\n * Mobile width\n */\n mobileWidth = input<number>(769);\n\n /**\n * Whether the navigation is collapsed\n */\n isCollapsed = input<boolean>(false);\n\n /** @ignore */\n @HostListener('window:resize')\n onResize() {\n this.checkScreenSize();\n }\n\n /** @ignore */\n ngOnInit(): void {\n this.checkScreenSize();\n }\n\n /** @ignore */\n private checkScreenSize(): void {\n this.isMobile = window.innerWidth <= this.mobileWidth();\n }\n}\n","import { Component } from '@angular/core';\nimport { AbstractLogoComponent } from './abstract-logo-component';\n\n@Component({\n selector: 'ads-primary-logo',\n styleUrls: ['primary-logo.component.scss'],\n templateUrl: 'primary-logo.component.html',\n standalone: false,\n})\nexport class AdsPrimaryLogoComponent extends AbstractLogoComponent {\n constructor() {\n super();\n }\n}\n","<picture [ngClass]=\"{ full: !isCollapsed() }\">\n @if (isMobile || isCollapsed()) {\n <svg class=\"logo-svg\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"32\" viewBox=\"0 0 24 32\">\n <path\n d=\"M20.5547 3.69959C18.4527 1.6106 15.6421 0.377465 12.6734 0.241829C9.70483 0.106194 6.79227 1.07784 4.50651 2.96635V0.663115H0V31.994L4.50218 27.517V21.1981C6.86303 23.1293 9.87957 24.0849 12.9287 23.8677C15.9778 23.6504 18.8265 22.2769 20.8864 20.0308C22.9463 17.7848 24.06 14.8377 23.9975 11.7985C23.935 8.75926 22.701 5.85999 20.5504 3.69959H20.5547ZM12.1446 19.6627C10.6356 19.6669 9.15923 19.2258 7.90244 18.3953C6.64565 17.5647 5.66496 16.3819 5.08451 14.9968C4.50406 13.6116 4.34996 12.0864 4.64172 10.6141C4.93348 9.14178 5.65798 7.78868 6.7235 6.72608C7.78901 5.66348 9.14763 4.93917 10.6273 4.64484C12.107 4.35051 13.6413 4.49941 15.0359 5.07268C16.4304 5.64595 17.6226 6.61781 18.4614 7.86521C19.3002 9.11262 19.748 10.5795 19.748 12.0801C19.7468 14.087 18.9461 16.0118 17.5211 17.4329C16.096 18.8541 14.1628 19.6558 12.1446 19.6627Z\"\n />\n </svg>\n } @else {\n <svg class=\"logo-svg\" xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" height=\"35\" viewBox=\"0 0 80 35\">\n <path\n d=\"M15.4308 12.8987C13.8528 11.3239 11.7428 10.3942 9.51421 10.292C7.28561 10.1897 5.09909 10.9222 3.38313 12.346V10.6096H0V34.2293L3.37987 30.8542V26.0905C5.15222 27.5464 7.41679 28.2668 9.70582 28.103C11.9948 27.9393 14.1334 26.9038 15.6799 25.2105C17.2263 23.5173 18.0623 21.2956 18.0154 19.0043C17.9685 16.7131 17.0421 14.5274 15.4276 12.8987H15.4308ZM9.11719 24.933C7.98435 24.9362 6.87602 24.6037 5.93252 23.9775C4.98903 23.3513 4.2528 22.4597 3.81704 21.4155C3.38128 20.3712 3.2656 19.2213 3.48463 18.1114C3.70366 17.0015 4.24756 15.9814 5.04746 15.1803C5.84737 14.3793 6.86731 13.8332 7.97815 13.6113C9.089 13.3894 10.2408 13.5017 11.2877 13.9339C12.3347 14.366 13.2296 15.0987 13.8593 16.0391C14.4891 16.9795 14.8252 18.0853 14.8252 19.2166C14.8244 20.7296 14.2232 22.1806 13.1534 23.252C12.0836 24.3234 10.6323 24.9278 9.11719 24.933Z\"\n />\n <path\n d=\"M38.2118 19.2167C38.2119 17.2546 37.565 15.3472 36.3711 13.7889C35.1772 12.2306 33.5028 11.1082 31.6064 10.5951C29.71 10.082 27.6972 10.2067 25.8788 10.9499C24.0605 11.6932 22.5378 13.0137 21.5459 14.7074C20.5541 16.4011 20.1483 18.3737 20.3912 20.3207C20.6341 22.2677 21.5122 24.0807 22.8899 25.4796C24.2676 26.8785 26.0682 27.7855 28.0136 28.0605C29.9589 28.3355 31.9409 27.9632 33.6532 27.0011C34.9526 26.2641 36.0481 25.216 36.841 23.951L34.1058 22.2439C33.5193 23.1737 32.677 23.9151 31.6797 24.3794C30.6823 24.8437 29.5722 25.0112 28.482 24.862C27.3917 24.7128 26.3677 24.2532 25.5322 23.538C24.6967 22.8229 24.0852 21.8825 23.7708 20.8295H38.2151L38.2118 19.2167ZM23.7708 17.6071C24.1208 16.4233 24.8449 15.3844 25.835 14.6454C26.825 13.9065 28.0279 13.5072 29.2639 13.5072C30.5 13.5072 31.7028 13.9065 32.6929 14.6454C33.6829 15.3844 34.407 16.4233 34.757 17.6071H23.7708Z\"\n />\n <path d=\"M66.3569 10.3986H63.0128V28.0972H66.3569V10.3986Z\" />\n <path d=\"M71.14 19.2495L80 28.0972H75.4837L66.6205 19.2495L75.4837 10.3986H80L71.14 19.2495Z\" />\n <path d=\"M56.5265 0H41.304V2.84191H56.5265V0Z\" />\n <path d=\"M40.5882 28.0971H37.0032L48.9174 5.35858L60.8316 28.0971H57.2466L48.9174 12.2L40.5882 28.0971Z\" />\n </svg>\n }\n</picture>\n","import { CommonModule, NgOptimizedImage } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AdsPrimaryLogoComponent } from './primary-logo.component';\n\n@NgModule({\n imports: [CommonModule, NgOptimizedImage],\n exports: [AdsPrimaryLogoComponent],\n declarations: [AdsPrimaryLogoComponent],\n})\nexport class AdsPrimaryLogoModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAGsB,qBAAqB,CAAA;AAD3C,IAAA,WAAA,GAAA;;QAGE,IAAA,CAAA,QAAQ,GAAG,KAAK;AAEhB;;AAEG;AACH,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,GAAG,u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E,CAAC,YAAY,EAAE,gBAAgB,CAAC;oBACzC,OAAO,EAAE,CAAC,uBAAuB,CAAC;oBAClC,YAAY,EAAE,CAAC,uBAAuB,CAAC;AACxC,iBAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -1749,7 +1749,7 @@ class AbstractLogoComponent {
|
|
|
1749
1749
|
/**
|
|
1750
1750
|
* Mobile width
|
|
1751
1751
|
*/
|
|
1752
|
-
this.mobileWidth = input(
|
|
1752
|
+
this.mobileWidth = input(769, ...(ngDevMode ? [{ debugName: "mobileWidth" }] : []));
|
|
1753
1753
|
/**
|
|
1754
1754
|
* Whether the navigation is collapsed
|
|
1755
1755
|
*/
|
|
@@ -7720,10 +7720,9 @@ class AdsTableComponent {
|
|
|
7720
7720
|
// For columns without explicit config (like supplier, destination),
|
|
7721
7721
|
// always apply the filter based on selectedValues
|
|
7722
7722
|
const cellValue = node.data[field];
|
|
7723
|
-
//
|
|
7724
|
-
const
|
|
7725
|
-
|
|
7726
|
-
: '';
|
|
7723
|
+
// Use formatter if available to produce a consistent key for comparison
|
|
7724
|
+
const formatter = this.getFilterValueFormatterForField(field);
|
|
7725
|
+
const cellValueStr = this.serializeCellValueForFilter(cellValue, formatter);
|
|
7727
7726
|
if (!selectedValues.includes(cellValueStr)) {
|
|
7728
7727
|
return false;
|
|
7729
7728
|
}
|
|
@@ -8096,6 +8095,22 @@ class AdsTableComponent {
|
|
|
8096
8095
|
}
|
|
8097
8096
|
}
|
|
8098
8097
|
// ============ Custom Sort/Filter Menu Methods ============
|
|
8098
|
+
/** @ignore - Get the filterValueFormatter for a given column field */
|
|
8099
|
+
getFilterValueFormatterForField(field) {
|
|
8100
|
+
const config = this.columnSortFilterConfigs.find(c => c.field === field);
|
|
8101
|
+
return config?.filterValueFormatter;
|
|
8102
|
+
}
|
|
8103
|
+
/**
|
|
8104
|
+
* @ignore - Serialize a cell value for filter key purposes.
|
|
8105
|
+
* When a filterValueFormatter exists, uses the formatted value as the key
|
|
8106
|
+
* so that values with the same display (e.g. same date, different time) are deduplicated.
|
|
8107
|
+
*/
|
|
8108
|
+
serializeCellValueForFilter(value, formatter) {
|
|
8109
|
+
if (formatter) {
|
|
8110
|
+
return formatter(value);
|
|
8111
|
+
}
|
|
8112
|
+
return this.serializeCellValue(value);
|
|
8113
|
+
}
|
|
8099
8114
|
/** @ignore - Extract unique RAW values from a column in rowData (with caching) */
|
|
8100
8115
|
getUniqueColumnValues(field) {
|
|
8101
8116
|
if (!this.rowData || this.rowData.length === 0) {
|
|
@@ -8107,14 +8122,17 @@ class AdsTableComponent {
|
|
|
8107
8122
|
if (cached) {
|
|
8108
8123
|
return cached;
|
|
8109
8124
|
}
|
|
8125
|
+
const formatter = this.getFilterValueFormatterForField(field);
|
|
8110
8126
|
// Use a Map to dedupe by serialized key while preserving raw values
|
|
8111
8127
|
const byKey = new Map();
|
|
8112
8128
|
this.rowData.forEach(row => {
|
|
8113
8129
|
const value = row[field];
|
|
8114
8130
|
if (value !== null && value !== undefined) {
|
|
8115
|
-
const key = this.
|
|
8131
|
+
const key = this.serializeCellValueForFilter(value, formatter);
|
|
8116
8132
|
if (!byKey.has(key)) {
|
|
8117
|
-
|
|
8133
|
+
// When a formatter exists, store the formatted string as the value
|
|
8134
|
+
// so downstream consumers (menu, filter matching) use a consistent key
|
|
8135
|
+
byKey.set(key, formatter ? key : value);
|
|
8118
8136
|
}
|
|
8119
8137
|
}
|
|
8120
8138
|
});
|
|
@@ -8150,6 +8168,7 @@ class AdsTableComponent {
|
|
|
8150
8168
|
this.filteredColumnValuesCache.set(cacheKey, values);
|
|
8151
8169
|
return values;
|
|
8152
8170
|
}
|
|
8171
|
+
const formatter = this.getFilterValueFormatterForField(field);
|
|
8153
8172
|
// Use a Map to dedupe by serialized key while preserving raw values
|
|
8154
8173
|
const byKey = new Map();
|
|
8155
8174
|
// Iterate through all rows and check if they pass filters from OTHER columns
|
|
@@ -8157,9 +8176,9 @@ class AdsTableComponent {
|
|
|
8157
8176
|
if (this.doesRowPassFiltersExcluding(row, field)) {
|
|
8158
8177
|
const value = row[field];
|
|
8159
8178
|
if (value !== null && value !== undefined) {
|
|
8160
|
-
const key = this.
|
|
8179
|
+
const key = this.serializeCellValueForFilter(value, formatter);
|
|
8161
8180
|
if (!byKey.has(key)) {
|
|
8162
|
-
byKey.set(key, value);
|
|
8181
|
+
byKey.set(key, formatter ? key : value);
|
|
8163
8182
|
}
|
|
8164
8183
|
}
|
|
8165
8184
|
}
|
|
@@ -8223,10 +8242,9 @@ class AdsTableComponent {
|
|
|
8223
8242
|
return false;
|
|
8224
8243
|
}
|
|
8225
8244
|
const cellValue = row[field];
|
|
8226
|
-
//
|
|
8227
|
-
const
|
|
8228
|
-
|
|
8229
|
-
: '';
|
|
8245
|
+
// Use formatter if available to produce a consistent key for comparison
|
|
8246
|
+
const formatter = this.getFilterValueFormatterForField(field);
|
|
8247
|
+
const cellValueStr = this.serializeCellValueForFilter(cellValue, formatter);
|
|
8230
8248
|
if (!selectedValues.includes(cellValueStr)) {
|
|
8231
8249
|
return false;
|
|
8232
8250
|
}
|