@nova-ui/bits 12.0.18 → 12.0.20-4218

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.
@@ -181,6 +181,7 @@
181
181
  "Ybps",
182
182
  ],
183
183
  hertz: ["Hz", "kHz", "MHz", "GHz", "THz", "PHz", "EHz", "ZHz", "YHz"],
184
+ percent: ["%"],
184
185
  };
185
186
 
186
187
  // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
@@ -1235,6 +1236,35 @@
1235
1236
  },] }
1236
1237
  ];
1237
1238
 
1239
+ /**
1240
+ * Pipe for transforming Map to KeyValue array without ordering
1241
+ *
1242
+ * __Parameters :__
1243
+ *
1244
+ * input - source Map
1245
+ *
1246
+ * __Usage :__
1247
+ * Map | nuiMapKeyValue
1248
+ *
1249
+ * __Example :__
1250
+ * "let items of itemsMap | nuiMapKeyValue"
1251
+ *
1252
+ */
1253
+ var MapKeyValuePipe = /** @class */ (function () {
1254
+ function MapKeyValuePipe() {
1255
+ }
1256
+ MapKeyValuePipe.prototype.transform = function (input) {
1257
+ return Array.from(input.entries(), function (_a) {
1258
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
1259
+ return ({ key: key, value: value });
1260
+ });
1261
+ };
1262
+ return MapKeyValuePipe;
1263
+ }());
1264
+ MapKeyValuePipe.decorators = [
1265
+ { type: i0.Pipe, args: [{ name: "nuiMapKeyValue" },] }
1266
+ ];
1267
+
1238
1268
  // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
1239
1269
  var WIZARD_CONFIG = new i0.InjectionToken("wizard.conf");
1240
1270
  var WIZARD_STEP_STATE_DEFAULT_CONFIG = {
@@ -4295,6 +4325,7 @@
4295
4325
  LimitToPipe,
4296
4326
  HighlightPipe,
4297
4327
  UnitConversionPipe,
4328
+ MapKeyValuePipe,
4298
4329
  ZoomContentDirective,
4299
4330
  ],
4300
4331
  exports: [
@@ -4309,6 +4340,7 @@
4309
4340
  SetFocusDirective,
4310
4341
  UnitConversionPipe,
4311
4342
  HighlightPipe,
4343
+ MapKeyValuePipe,
4312
4344
  ZoomContentDirective,
4313
4345
  ],
4314
4346
  entryComponents: [],
@@ -26518,6 +26550,7 @@
26518
26550
  exports.ListService = ListService;
26519
26551
  exports.LocalFilteringDataSource = LocalFilteringDataSource;
26520
26552
  exports.LoggerService = LoggerService;
26553
+ exports.MapKeyValuePipe = MapKeyValuePipe;
26521
26554
  exports.MarkAsSelectedItemDirective = MarkAsSelectedItemDirective;
26522
26555
  exports.MenuActionComponent = MenuActionComponent;
26523
26556
  exports.MenuComponent = MenuComponent;