123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- import {
- x
- } from "./chunk-K6QDYFZU.js";
- import {
- T
- } from "./chunk-AR2YN3E2.js";
- import {
- a,
- n as n2
- } from "./chunk-3OSQ6GXO.js";
- import {
- i
- } from "./chunk-44GMIOGP.js";
- import {
- s as s2
- } from "./chunk-HZRKBTHJ.js";
- import {
- e,
- l3 as l,
- n5 as n,
- y3 as y2
- } from "./chunk-6SOHRC7T.js";
- import {
- s3 as s
- } from "./chunk-E5O6P5I2.js";
- import {
- o,
- y
- } from "./chunk-SPWQ3AWG.js";
- import {
- r
- } from "./chunk-YXWMMD76.js";
- // node_modules/@arcgis/core/layers/support/FeatureFilter.js
- var c;
- var m = new s2({ esriSpatialRelIntersects: "intersects", esriSpatialRelContains: "contains", esriSpatialRelCrosses: "crosses", esriSpatialRelDisjoint: "disjoint", esriSpatialRelEnvelopeIntersects: "envelope-intersects", esriSpatialRelIndexIntersects: "index-intersects", esriSpatialRelOverlaps: "overlaps", esriSpatialRelTouches: "touches", esriSpatialRelWithin: "within", esriSpatialRelRelation: "relation" });
- var u = new s2({ esriSRUnit_Meter: "meters", esriSRUnit_Kilometer: "kilometers", esriSRUnit_Foot: "feet", esriSRUnit_StatuteMile: "miles", esriSRUnit_NauticalMile: "nautical-miles", esriSRUnit_USNauticalMile: "us-nautical-miles" });
- var d = c = class extends l {
- constructor(e2) {
- super(e2), this.where = null, this.geometry = null, this.spatialRelationship = "intersects", this.distance = void 0, this.objectIds = null, this.units = null, this.timeExtent = null;
- }
- createQuery(e2 = {}) {
- const { where: t, geometry: i2, spatialRelationship: r2, timeExtent: s3, objectIds: n4, units: a3, distance: l2 } = this;
- return new x({ geometry: y(i2), objectIds: y(n4), spatialRelationship: r2, timeExtent: y(s3), where: t, units: a3, distance: l2, ...e2 });
- }
- clone() {
- const { where: e2, geometry: t, spatialRelationship: i2, timeExtent: r2, objectIds: s3, units: n4, distance: a3 } = this;
- return new c({ geometry: y(t), objectIds: y(s3), spatialRelationship: i2, timeExtent: y(r2), where: e2, units: n4, distance: a3 });
- }
- };
- e([y2({ type: String, json: { write: true } })], d.prototype, "where", void 0), e([y2({ types: i, json: { write: true } })], d.prototype, "geometry", void 0), e([y2({ type: m.apiValues, json: { name: "spatialRel", read: { reader: m.read }, write: { allowNull: false, writer: m.write, overridePolicy() {
- return { enabled: r(this.geometry) };
- } } } })], d.prototype, "spatialRelationship", void 0), e([y2({ type: Number, json: { write: { overridePolicy(e2) {
- return { enabled: null != e2 && null != this.geometry };
- } } } })], d.prototype, "distance", void 0), e([y2({ type: [Number], json: { write: true } })], d.prototype, "objectIds", void 0), e([y2({ type: u.apiValues, json: { read: u.read, write: { writer: u.write, overridePolicy(e2) {
- return { enabled: null != e2 && null != this.geometry };
- } } } })], d.prototype, "units", void 0), e([y2({ type: T, json: { write: true } })], d.prototype, "timeExtent", void 0), d = c = e([n("esri.layers.support.FeatureFilter")], d);
- var y3 = d;
- // node_modules/@arcgis/core/layers/support/FeatureEffect.js
- var d2;
- var n3 = { read: { reader: n2 }, write: { writer: a, overridePolicy() {
- return { allowNull: null != this.excludedEffect, isRequired: null == this.excludedEffect };
- } } };
- var a2 = { read: { reader: n2 }, write: { writer: a, overridePolicy() {
- return { allowNull: null != this.includedEffect, isRequired: null == this.includedEffect };
- } } };
- var p = { name: "showExcludedLabels", default: true };
- var m2 = d2 = class extends l {
- constructor(e2) {
- super(e2), this.filter = null, this.includedEffect = null, this.excludedEffect = null, this.excludedLabelsVisible = false;
- }
- write(e2, t) {
- var _a, _b;
- const l2 = super.write(e2, t);
- if (t == null ? void 0 : t.origin) {
- if (l2.filter) {
- const e3 = Object.keys(l2.filter);
- if (e3.length > 1 || "where" !== e3[0])
- return (_a = t.messages) == null ? void 0 : _a.push(new s("web-document-write:unsupported-feature-effect", "Invalid feature effect 'filter'. A filter can only contain a 'where' property", { layer: t.layer, effect: this })), null;
- }
- if ("showExcludedLabels" in l2)
- return (_b = t.messages) == null ? void 0 : _b.push(new s("web-document-write:unsupported-feature-effect", "Invalid value for property 'excludedLabelsVisible' which should always be 'true'", { layer: t.layer, effect: this })), null;
- }
- return l2;
- }
- clone() {
- return new d2({ filter: r(this.filter) ? this.filter.clone() : null, includedEffect: this.includedEffect, excludedEffect: this.excludedEffect, excludedLabelsVisible: this.excludedLabelsVisible });
- }
- };
- e([y2({ type: y3, json: { write: { allowNull: true, writer(e2, r2, t, l2) {
- const s3 = e2 == null ? void 0 : e2.write({}, l2);
- s3 && 0 !== Object.keys(s3).length ? o(t, s3, r2) : o(t, null, r2);
- } } } })], m2.prototype, "filter", void 0), e([y2({ json: { write: true, origins: { "web-map": n3, "portal-item": n3 } } })], m2.prototype, "includedEffect", void 0), e([y2({ json: { write: true, origins: { "web-map": a2, "portal-item": a2 } } })], m2.prototype, "excludedEffect", void 0), e([y2({ type: Boolean, json: { write: true, name: "showExcludedLabels", origins: { "web-map": p, "portal-item": p } } })], m2.prototype, "excludedLabelsVisible", void 0), m2 = d2 = e([n("esri.layers.support.FeatureEffect")], m2);
- var w = m2;
- export {
- y3 as y,
- w
- };
- //# sourceMappingURL=chunk-VIUIPJ2T.js.map
|