chunk-DN6W4TJU.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import {
  2. r
  3. } from "./chunk-JLSNMUQJ.js";
  4. import {
  5. y
  6. } from "./chunk-JGBXYDGB.js";
  7. import {
  8. T
  9. } from "./chunk-CRGY2SDS.js";
  10. import {
  11. s2 as s
  12. } from "./chunk-E5O6P5I2.js";
  13. // node_modules/@arcgis/core/layers/support/fieldProperties.js
  14. function s2() {
  15. return { fields: { type: [y], value: null }, fieldsIndex: { readOnly: true, get() {
  16. return new r(this.fields || []);
  17. } }, outFields: { type: [String], json: { read: false }, set: function(e) {
  18. this._userOutFields = e, this.notifyChange("outFields");
  19. }, get: function() {
  20. var _a;
  21. const i = this._userOutFields;
  22. if (!i || !i.length)
  23. return null;
  24. if (i.includes("*"))
  25. return ["*"];
  26. if (!this.fields)
  27. return i;
  28. for (const t of i) {
  29. const r2 = (_a = this.fieldsIndex) == null ? void 0 : _a.has(t);
  30. r2 || s.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field", `Invalid field ${t} found in outFields`, { layer: this, outFields: i });
  31. }
  32. return T(this.fieldsIndex, i);
  33. } } };
  34. }
  35. export {
  36. s2 as s
  37. };
  38. //# sourceMappingURL=chunk-DN6W4TJU.js.map