@wix/bex-core 2.419.0 → 2.421.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/dist/cjs/assets/locale/messages_ar.json +1 -0
- package/dist/cjs/assets/locale/messages_bg.json +1 -0
- package/dist/cjs/assets/locale/messages_ca.json +1 -0
- package/dist/cjs/assets/locale/messages_cs.json +4 -3
- package/dist/cjs/assets/locale/messages_da.json +1 -0
- package/dist/cjs/assets/locale/messages_de.json +13 -12
- package/dist/cjs/assets/locale/messages_el.json +1 -0
- package/dist/cjs/assets/locale/messages_en.json +1 -0
- package/dist/cjs/assets/locale/messages_es.json +1 -0
- package/dist/cjs/assets/locale/messages_fi.json +1 -0
- package/dist/cjs/assets/locale/messages_fr.json +6 -5
- package/dist/cjs/assets/locale/messages_he.json +1 -0
- package/dist/cjs/assets/locale/messages_hi.json +1 -0
- package/dist/cjs/assets/locale/messages_hu.json +1 -0
- package/dist/cjs/assets/locale/messages_id.json +1 -0
- package/dist/cjs/assets/locale/messages_it.json +1 -0
- package/dist/cjs/assets/locale/messages_ja.json +21 -20
- package/dist/cjs/assets/locale/messages_ko.json +1 -0
- package/dist/cjs/assets/locale/messages_lt.json +1 -0
- package/dist/cjs/assets/locale/messages_ms.json +1 -0
- package/dist/cjs/assets/locale/messages_nl.json +10 -9
- package/dist/cjs/assets/locale/messages_no.json +15 -14
- package/dist/cjs/assets/locale/messages_pl.json +1 -0
- package/dist/cjs/assets/locale/messages_pt.json +1 -0
- package/dist/cjs/assets/locale/messages_ro.json +1 -0
- package/dist/cjs/assets/locale/messages_ru.json +6 -5
- package/dist/cjs/assets/locale/messages_sk.json +1 -0
- package/dist/cjs/assets/locale/messages_sl.json +1 -0
- package/dist/cjs/assets/locale/messages_sv.json +28 -27
- package/dist/cjs/assets/locale/messages_th.json +13 -12
- package/dist/cjs/assets/locale/messages_tl.json +1 -0
- package/dist/cjs/assets/locale/messages_tr.json +24 -23
- package/dist/cjs/assets/locale/messages_uk.json +31 -30
- package/dist/cjs/assets/locale/messages_vi.json +1 -0
- package/dist/cjs/assets/locale/messages_zh.json +4 -3
- package/dist/cjs/assets/locale/version_file +1 -1
- package/dist/cjs/assets/visual-e2e-locale/messages_visuale2e.json +16 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/translations.js.map +1 -1
- package/dist/cjs/state/DeleteFieldModalState.js +49 -3
- package/dist/cjs/state/DeleteFieldModalState.js.map +1 -1
- package/dist/cjs/state/QueryPendingState.js +45 -21
- package/dist/cjs/state/QueryPendingState.js.map +1 -1
- package/dist/cjs/state/QueryPendingStateBIReporter.js +12 -14
- package/dist/cjs/state/QueryPendingStateBIReporter.js.map +1 -1
- package/dist/cjs/state/startForEachFilter.js +27 -0
- package/dist/cjs/state/startForEachFilter.js.map +1 -0
- package/dist/cjs/types/SchemaSource.js +5 -0
- package/dist/cjs/types/SchemaSource.js.map +1 -1
- package/dist/cjs/util/actionsBar.js.map +1 -1
- package/dist/esm/assets/locale/messages_ar.json +1 -0
- package/dist/esm/assets/locale/messages_bg.json +1 -0
- package/dist/esm/assets/locale/messages_ca.json +1 -0
- package/dist/esm/assets/locale/messages_cs.json +4 -3
- package/dist/esm/assets/locale/messages_da.json +1 -0
- package/dist/esm/assets/locale/messages_de.json +13 -12
- package/dist/esm/assets/locale/messages_el.json +1 -0
- package/dist/esm/assets/locale/messages_en.json +1 -0
- package/dist/esm/assets/locale/messages_es.json +1 -0
- package/dist/esm/assets/locale/messages_fi.json +1 -0
- package/dist/esm/assets/locale/messages_fr.json +6 -5
- package/dist/esm/assets/locale/messages_he.json +1 -0
- package/dist/esm/assets/locale/messages_hi.json +1 -0
- package/dist/esm/assets/locale/messages_hu.json +1 -0
- package/dist/esm/assets/locale/messages_id.json +1 -0
- package/dist/esm/assets/locale/messages_it.json +1 -0
- package/dist/esm/assets/locale/messages_ja.json +21 -20
- package/dist/esm/assets/locale/messages_ko.json +1 -0
- package/dist/esm/assets/locale/messages_lt.json +1 -0
- package/dist/esm/assets/locale/messages_ms.json +1 -0
- package/dist/esm/assets/locale/messages_nl.json +10 -9
- package/dist/esm/assets/locale/messages_no.json +15 -14
- package/dist/esm/assets/locale/messages_pl.json +1 -0
- package/dist/esm/assets/locale/messages_pt.json +1 -0
- package/dist/esm/assets/locale/messages_ro.json +1 -0
- package/dist/esm/assets/locale/messages_ru.json +6 -5
- package/dist/esm/assets/locale/messages_sk.json +1 -0
- package/dist/esm/assets/locale/messages_sl.json +1 -0
- package/dist/esm/assets/locale/messages_sv.json +28 -27
- package/dist/esm/assets/locale/messages_th.json +13 -12
- package/dist/esm/assets/locale/messages_tl.json +1 -0
- package/dist/esm/assets/locale/messages_tr.json +24 -23
- package/dist/esm/assets/locale/messages_uk.json +31 -30
- package/dist/esm/assets/locale/messages_vi.json +1 -0
- package/dist/esm/assets/locale/messages_zh.json +4 -3
- package/dist/esm/assets/locale/version_file +1 -1
- package/dist/esm/assets/visual-e2e-locale/messages_visuale2e.json +16 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/state/DeleteFieldModalState.js +40 -2
- package/dist/esm/state/DeleteFieldModalState.js.map +1 -1
- package/dist/esm/state/QueryPendingState.js +36 -18
- package/dist/esm/state/QueryPendingState.js.map +1 -1
- package/dist/esm/state/QueryPendingStateBIReporter.js +9 -15
- package/dist/esm/state/QueryPendingStateBIReporter.js.map +1 -1
- package/dist/esm/state/startForEachFilter.js +21 -0
- package/dist/esm/state/startForEachFilter.js.map +1 -0
- package/dist/esm/types/SchemaSource.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/services/translations.d.ts +1 -1
- package/dist/types/services/translations.d.ts.map +1 -1
- package/dist/types/state/DeleteFieldModalState.d.ts +16 -7
- package/dist/types/state/DeleteFieldModalState.d.ts.map +1 -1
- package/dist/types/state/QueryPendingState.d.ts +10 -8
- package/dist/types/state/QueryPendingState.d.ts.map +1 -1
- package/dist/types/state/QueryPendingStateBIReporter.d.ts.map +1 -1
- package/dist/types/state/startForEachFilter.d.ts +12 -0
- package/dist/types/state/startForEachFilter.d.ts.map +1 -0
- package/dist/types/types/SchemaSource.d.ts +18 -2
- package/dist/types/types/SchemaSource.d.ts.map +1 -1
- package/dist/types/util/actionsBar.d.ts +1 -1
- package/dist/types/util/actionsBar.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_v","require","_util","_mobx","QueryPendingStateBIReporter","constructor","state","_defineProperty2","default","init","
|
|
1
|
+
{"version":3,"names":["_v","require","_util","_mobx","_startForEachFilter","QueryPendingStateBIReporter","constructor","state","_defineProperty2","default","init","startForEachFilter","trackedFilters","origin","pending","reaction","value","isClearing","_reportWithDefaultParams","withoutDefaults","cairoChangesBeforeApply","fieldName","name","fieldValue","_getFilterBIValue","undefined","reportBi","toolbar","reportProps","params","feature","filter","isEmpty","toArray","map","itemKey","toString","currentStatus","filters","reduce","prev","cur","apply","cairoApplyButtonClicked","JSON","stringify","filteredListSize","multi","collections","result","total","listSize","available","numActiveFields","el","length","numOptionalFields","clear","isClearButton","Promise","resolve","setTimeout","discard","cairoDiscardChangesBeforeApply","exports"],"sources":["../../../src/state/QueryPendingStateBIReporter.ts"],"sourcesContent":["import { ReportProps } from '@wix/fe-essentials/bi';\nimport {\n cairoApplyButtonClicked,\n cairoChangesBeforeApply,\n cairoDiscardChangesBeforeApply,\n} from '@wix/bex-utils/@wix/bi-logger-os-data/v2';\nimport { withoutDefaults } from '../util';\nimport { QueryPendingState } from './QueryPendingState';\nimport { reaction } from 'mobx';\nimport { Filter } from '../model';\nimport { startForEachFilter } from './startForEachFilter';\n\nexport class QueryPendingStateBIReporter {\n readonly state;\n\n isClearing: boolean = false;\n\n constructor(state: QueryPendingState) {\n this.state = state;\n }\n\n init() {\n return startForEachFilter(\n () => this.state.trackedFilters,\n ({ origin, pending }) =>\n reaction(\n () => pending.value,\n () => {\n if (this.isClearing || pending.value === origin.value) {\n return;\n }\n\n this._reportWithDefaultParams(\n withoutDefaults(cairoChangesBeforeApply)({\n fieldName: pending.name,\n fieldValue: this._getFilterBIValue(pending) ?? undefined,\n }),\n );\n },\n ),\n );\n }\n\n get reportBi() {\n return this.state.toolbar.reportBi;\n }\n\n _reportWithDefaultParams(reportProps: ReportProps) {\n this.reportBi({\n ...reportProps,\n params: {\n ...reportProps.params,\n feature: 'Filters',\n },\n });\n }\n\n _getFilterBIValue(filter: Filter<any>) {\n return filter.value != null\n ? filter.isEmpty\n ? null\n : filter.toArray.map(filter.itemKey).toString()\n : null;\n }\n\n get currentStatus() {\n return this.state.filters.reduce((prev, cur) => {\n return [\n ...prev,\n {\n fieldName: cur.pending.name,\n fieldValue: this._getFilterBIValue(cur.pending),\n },\n ];\n }, [] as { fieldName: string; fieldValue: string | null }[]);\n }\n\n apply() {\n const currentStatus = this.currentStatus;\n this._reportWithDefaultParams(\n withoutDefaults(cairoApplyButtonClicked)({\n currentStatus: JSON.stringify(currentStatus),\n filteredListSize: this.state.multi.collections.reduce(\n (prev, cur) => prev + cur.result.total,\n 0,\n ),\n listSize:\n this.state.multi.collections.reduce(\n (prev, cur) => prev + (cur.result.available ?? 0),\n 0,\n ) || undefined,\n numActiveFields: currentStatus.filter((el) => el.fieldValue !== null)\n .length,\n numOptionalFields: currentStatus.length,\n }),\n );\n }\n\n async clear() {\n this.isClearing = true;\n this._reportWithDefaultParams(\n withoutDefaults(cairoChangesBeforeApply)({\n isClearButton: true,\n numActiveFields: this.currentStatus.filter(\n (el) => el.fieldValue !== null,\n ).length,\n }),\n );\n // Wait for the next tick in order not to send `cairoChangesBeforeApply` if value changed because of clear action\n await new Promise((resolve) => setTimeout(resolve, 0));\n this.isClearing = false;\n }\n\n discard() {\n const currentStatus = this.currentStatus;\n this._reportWithDefaultParams(\n withoutDefaults(cairoDiscardChangesBeforeApply)({\n currentStatus: JSON.stringify(currentStatus),\n numActiveFields: currentStatus.filter((el) => el.fieldValue !== null)\n .length,\n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AiB,EAAEnB,aAAa,CAACkB;IACnC,CAAC,CACH,CAAC;EACH;EAEA,MAAME,KAAKA,CAAA,EAAG;IACZ,IAAI,CAACxC,UAAU,GAAG,IAAI;IACtB,IAAI,CAACC,wBAAwB,CAC3B,IAAAC,qBAAe,EAACC,0BAAuB,CAAC,CAAC;MACvCsC,aAAa,EAAE,IAAI;MACnBL,eAAe,EAAE,IAAI,CAAChB,aAAa,CAACN,MAAM,CACvCuB,EAAE,IAAKA,EAAE,CAAC/B,UAAU,KAAK,IAC5B,CAAC,CAACgC;IACJ,CAAC,CACH,CAAC;IACD;IACA,MAAM,IAAII,OAAO,CAAEC,OAAO,IAAKC,UAAU,CAACD,OAAO,EAAE,CAAC,CAAC,CAAC;IACtD,IAAI,CAAC3C,UAAU,GAAG,KAAK;EACzB;EAEA6C,OAAOA,CAAA,EAAG;IACR,MAAMzB,aAAa,GAAG,IAAI,CAACA,aAAa;IACxC,IAAI,CAACnB,wBAAwB,CAC3B,IAAAC,qBAAe,EAAC4C,iCAA8B,CAAC,CAAC;MAC9C1B,aAAa,EAAEO,IAAI,CAACC,SAAS,CAACR,aAAa,CAAC;MAC5CgB,eAAe,EAAEhB,aAAa,CAACN,MAAM,CAAEuB,EAAE,IAAKA,EAAE,CAAC/B,UAAU,KAAK,IAAI,CAAC,CAClEgC,MAAM;MACTC,iBAAiB,EAAEnB,aAAa,CAACkB;IACnC,CAAC,CACH,CAAC;EACH;AACF;AAACS,OAAA,CAAA3D,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.startForEachFilter = startForEachFilter;
|
|
5
|
+
var _mobx = require("mobx");
|
|
6
|
+
/**
|
|
7
|
+
* Calls `start` once for each filter in `getFilters()`: for the filters there
|
|
8
|
+
* now, and for filters a collection adds later. Returns a disposer that stops
|
|
9
|
+
* everything `start` started.
|
|
10
|
+
*/
|
|
11
|
+
function startForEachFilter(getFilters, start) {
|
|
12
|
+
const stops = new Map();
|
|
13
|
+
const stopWatching = (0, _mobx.reaction)(getFilters, filters => {
|
|
14
|
+
filters.forEach(filter => {
|
|
15
|
+
if (!stops.has(filter.origin)) {
|
|
16
|
+
stops.set(filter.origin, start(filter));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}, {
|
|
20
|
+
fireImmediately: true
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
stopWatching();
|
|
24
|
+
stops.forEach(stop => stop());
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=startForEachFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_mobx","require","startForEachFilter","getFilters","start","stops","Map","stopWatching","reaction","filters","forEach","filter","has","origin","set","fireImmediately","stop"],"sources":["../../../src/state/startForEachFilter.ts"],"sourcesContent":["import { reaction } from 'mobx';\nimport type { Filter } from '../model';\n\nexport interface PendingFilter {\n readonly origin: Filter<any>;\n readonly pending: Filter<any>;\n}\n\n/**\n * Calls `start` once for each filter in `getFilters()`: for the filters there\n * now, and for filters a collection adds later. Returns a disposer that stops\n * everything `start` started.\n */\nexport function startForEachFilter(\n getFilters: () => PendingFilter[],\n start: (filter: PendingFilter) => () => void,\n) {\n const stops = new Map<Filter<any>, () => void>();\n\n const stopWatching = reaction(\n getFilters,\n (filters) => {\n filters.forEach((filter) => {\n if (!stops.has(filter.origin)) {\n stops.set(filter.origin, start(filter));\n }\n });\n },\n { fireImmediately: true },\n );\n\n return () => {\n stopWatching();\n stops.forEach((stop) => stop());\n };\n}\n"],"mappings":";;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAQA;AACA;AACA;AACA;AACA;AACO,SAASC,kBAAkBA,CAChCC,UAAiC,EACjCC,KAA4C,EAC5C;EACA,MAAMC,KAAK,GAAG,IAAIC,GAAG,CAA0B,CAAC;EAEhD,MAAMC,YAAY,GAAG,IAAAC,cAAQ,EAC3BL,UAAU,EACTM,OAAO,IAAK;IACXA,OAAO,CAACC,OAAO,CAAEC,MAAM,IAAK;MAC1B,IAAI,CAACN,KAAK,CAACO,GAAG,CAACD,MAAM,CAACE,MAAM,CAAC,EAAE;QAC7BR,KAAK,CAACS,GAAG,CAACH,MAAM,CAACE,MAAM,EAAET,KAAK,CAACO,MAAM,CAAC,CAAC;MACzC;IACF,CAAC,CAAC;EACJ,CAAC,EACD;IAAEI,eAAe,EAAE;EAAK,CAC1B,CAAC;EAED,OAAO,MAAM;IACXR,YAAY,CAAC,CAAC;IACdF,KAAK,CAACK,OAAO,CAAEM,IAAI,IAAKA,IAAI,CAAC,CAAC,CAAC;EACjC,CAAC;AACH","ignoreList":[]}
|
|
@@ -10,8 +10,13 @@ exports.sourceFetchData = sourceFetchData;
|
|
|
10
10
|
|
|
11
11
|
/** Everything the add/edit field modal shows for this source. */
|
|
12
12
|
|
|
13
|
+
/** A note at the bottom of the delete-field dialog: text followed by a link. */
|
|
14
|
+
|
|
13
15
|
/** Copy shown before deleting a field. Strings are translated by the caller. */
|
|
14
16
|
|
|
17
|
+
/** A promise keeps the dialog loading, with deletion disabled, until it
|
|
18
|
+
* settles. A rejected promise shows the default dialog. */
|
|
19
|
+
|
|
15
20
|
/** Identifies the collection behind a table on BI events. */
|
|
16
21
|
|
|
17
22
|
/** What a caller passes. Only `collectionId` and `loadSchema` are required. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sourceFetchData","source","query","backend","schema","loadSchema","visibleColumns","columns","find","searchableFieldIds","length","defineSchemaSource","input","collectionId","paginationMode","fieldModal","fieldTypes","fieldPermissions","supportsPii","references","getReferencedCollectionSource","loaded","resolved","then","result","catch","error","undefined","setLoadedSchema","Promise","resolve","s","displayField","itemKey","item","_resolved","String","idField","itemName","_resolved2","canAddFields","_s$schemaPermissions","schemaPermissions","createField","isLockedField","field","isSystem","id","canEditField","_s$schemaPermissions2","updateField","canDeleteField","_s$schemaPermissions3","deleteField","getFieldValue","setFieldValue","value","schemaParams","_resolved3","_resolved4","_resolved5","tableId","tableName","name","tableType","type","showFieldId","text","loadReferenceableCollectionOptions","types","getFieldPresentation","getFieldActionDisabledReason","canMakePrimary","getDeleteFieldConfirmation","canEditFieldPii"],"sources":["../../../src/types/SchemaSource.ts"],"sourcesContent":["import type { Field, PatternsFieldType } from './Field';\nimport type { FieldTypeDefinition } from './FieldTypeDefinition';\nimport type { Schema, LoadedSchema, FindOptions } from './Schema';\nimport type {\n FieldPresentation,\n FieldModalText,\n FieldModalCollectionInput,\n FieldModalCollectionOptionsLoader,\n FieldPermissions,\n FieldPiiWarning,\n FieldSettingsSection,\n} from './FieldsSource';\nimport type {\n OffsetQuery,\n OffsetQueryResult,\n} from '../hooks/paginationModeConfig';\n\n/** A field type the add/edit field modal offers, with everything that type\n * brings to it. Declare one entry per `patternsType` — the type is the entry's\n * identity. Nothing here reaches the table or the filters; that is `fieldTypes`\n * (`FieldTypeDefinition[]`). */\nexport interface FieldTypeOption {\n patternsType: PatternsFieldType;\n /** Custom display name. Absent ⇒ the UI's standard name for this type. */\n label?: string;\n /** Custom name-input placeholder. Absent ⇒ the UI's standard placeholder. */\n namePlaceholder?: string;\n /** Fallback field ID base when the name cannot produce a valid ID.\n * Default: the normalized type ID. Numeric suffixes resolve collisions. */\n keyBase?: string;\n /** A one-line description shown under the type in the add-field menu. */\n subtitle?: string;\n /** The group heading this type is listed under in the add-field menu, in\n * first-seen order. Types sharing a heading form one group. Absent ⇒\n * ungrouped. */\n group?: string;\n /** Whether a field of this type can be marked PII. Absent ⇒ follows the\n * source's `supportsPii`. */\n supportsPii?: boolean;\n /** Warning shown while the PII toggle is on. Read on every render, so it can\n * use data that only exists once the schema has loaded. Default: none. */\n piiWarning?: () => FieldPiiWarning | undefined;\n /** This type's own part of the collapsible section in the add/edit field\n * modal. Default: none. */\n settingsSection?: FieldSettingsSection;\n /** Collection picker shown in the main add/edit field form. */\n collectionInput?: FieldModalCollectionInput;\n}\n\n/** Everything the add/edit field modal shows for this source. */\nexport interface FieldModalInput {\n /** Whether to show the field ID input. Default: true. */\n showFieldId?: boolean;\n /** Title and subtitle. Default: generic titles. */\n text?: FieldModalText;\n /** Default option loader for reference-like built-in field types. */\n loadReferenceableCollectionOptions?: FieldModalCollectionOptionsLoader;\n /** The types the modal offers, in display order. Default: none. */\n types?: FieldTypeOption[];\n}\n\n/** Copy shown before deleting a field. Strings are translated by the caller. */\nexport interface DeleteFieldConfirmation {\n title: string;\n description: string;\n /** When provided, confirmation requires this checkbox to be checked. */\n confirmationCheckboxLabel?: string;\n}\n\n/** Identifies the collection behind a table on BI events. */\nexport interface SchemaBiParams {\n tableId?: string;\n tableName?: string;\n tableType?: string;\n}\n\n/** What a caller passes. Only `collectionId` and `loadSchema` are required. */\nexport interface SchemaSourceInput<T> {\n collectionId: string;\n loadSchema: () => Promise<LoadedSchema<T>>;\n /** Sources for collections this one references, keyed by the referenced\n * collection id. A renderer resolves a reference field through the matching\n * entry — its `loadSchema` gives the referenced schema and `sourceFetchData`\n * queries the referenced items. Default: none. */\n references?: Record<string, SchemaSource<any>>;\n /** Lazy source lookup for a referenced collection that is not in `references`.\n * Is used when a reference field is created in the add field modal.\n * The returned source owns its own async schema/item loading. */\n getReferencedCollectionSource?: (\n collectionId: string,\n ) => SchemaSource<any> | undefined;\n paginationMode?: 'offset';\n /** Stable row identity. Default: `row[idField]`. */\n itemKey?: (item: T) => string;\n /** Row display label. Default: `row[displayField]`. */\n itemName?: (item: T) => string;\n /** Fields free-text search runs against. Default: `[displayField]`. */\n searchableFieldIds?: (schema: Schema) => string[];\n /** What the add/edit field modal shows. Default: no types, generic titles. */\n fieldModal?: FieldModalInput;\n /** Consumer-defined field types: how a field of that type renders, filters and\n * validates wherever it appears. A field with `type: 'CUSTOM'` resolves its\n * definition here by `customType`. The add/edit field modal never reads this\n * — see `fieldModal`. Default: none. */\n fieldTypes?: FieldTypeDefinition[];\n /** Overrides one existing field's type label, icons, collection-picker label\n * and initial field visibility. Does not change its type, values or\n * add-field options. */\n getFieldPresentation?: (field: Field) => FieldPresentation | undefined;\n /** Default: `schemaPermissions.createField`. */\n canAddFields?: (schema: Schema) => boolean;\n /** Default: `schemaPermissions.updateField`, except for system fields and\n * the id field. */\n canEditField?: (field: Field, schema: Schema) => boolean;\n /** Default: `schemaPermissions.deleteField`, except for system fields and\n * the id field. */\n canDeleteField?: (field: Field, schema: Schema) => boolean;\n /** Disables an otherwise available field action with this tooltip.\n * Undefined preserves its default state; denied actions stay hidden. */\n getFieldActionDisabledReason?: (\n field: Field,\n schema: Schema,\n action:\n | 'editField'\n | 'makePrimary'\n | 'duplicateField'\n | 'duplicateFieldWithContent'\n | 'delete',\n ) => string | undefined;\n /** Whether a field can become the primary field. When omitted, only\n * `SHORT_TEXT` and `LONG_TEXT` fields can. When set, its result replaces\n * that rule, so return `false` for non-text fields too. */\n canMakePrimary?: (field: Field, schema: Schema) => boolean;\n /** Resolved when deletion is requested. Undefined keeps the default dialog. */\n getDeleteFieldConfirmation?: (\n field: Field,\n schema: Schema,\n ) => DeleteFieldConfirmation | undefined;\n /** Permission defaults shown in the modal. Absent ⇒ no permissions section. */\n fieldPermissions?: FieldPermissions;\n /** Default: `false`. */\n supportsPii?: boolean;\n /** Allows changing PII on an existing supported field. Default: disabled.\n * Does not override `canEditField` or the field type's PII support. */\n canEditFieldPii?: (field: Field, schema: Schema) => boolean;\n /** The value of a field on an item. Default: `item[field.id]`. */\n getFieldValue?: (item: T, field: Field) => unknown;\n /** Writes a field's value on an item, returning the updated item.\n * Default: `{ ...item, [field.id]: value }`. */\n setFieldValue?: (item: T, field: Field, value: unknown) => T;\n}\n\n/** The resolved source: defaults filled, `loadSchema` memoized. */\nexport interface SchemaSource<T> {\n readonly collectionId: string;\n loadSchema: () => Promise<LoadedSchema<T>>;\n readonly paginationMode: 'offset';\n /** Stable row identity. */\n itemKey: (item: T) => string;\n /** Row display label. */\n itemName: (item: T) => string;\n /** Sources for referenced collections, keyed by referenced collection id. */\n readonly references: Record<string, SchemaSource<any>>;\n getReferencedCollectionSource?: (\n collectionId: string,\n ) => SchemaSource<any> | undefined;\n readonly fieldModal: {\n showFieldId?: boolean;\n text?: FieldModalText;\n loadReferenceableCollectionOptions?: FieldModalCollectionOptionsLoader;\n types: FieldTypeOption[];\n };\n readonly fieldTypes: FieldTypeDefinition[];\n getFieldPresentation?: (field: Field) => FieldPresentation | undefined;\n searchableFieldIds: (schema: Schema) => string[];\n canAddFields: (schema: Schema) => boolean;\n canEditField: (field: Field, schema: Schema) => boolean;\n canDeleteField: (field: Field, schema: Schema) => boolean;\n getFieldActionDisabledReason?: SchemaSourceInput<T>['getFieldActionDisabledReason'];\n canMakePrimary?: (field: Field, schema: Schema) => boolean;\n getDeleteFieldConfirmation?: (\n field: Field,\n schema: Schema,\n ) => DeleteFieldConfirmation | undefined;\n readonly fieldPermissions?: FieldPermissions;\n readonly supportsPii: boolean;\n canEditFieldPii?: (field: Field, schema: Schema) => boolean;\n /** The value of a field on an item. */\n getFieldValue: (item: T, field: Field) => unknown;\n /** Writes a field's value on an item, returning the updated item. */\n setFieldValue: (item: T, field: Field, value: unknown) => T;\n schemaParams: () => SchemaBiParams;\n /** Replaces the memoized schema returned by later `loadSchema()` calls.\n * No-op before the first successful load. */\n setLoadedSchema?: (schema: Schema) => void;\n}\n\ntype OffsetFind<T> = (\n query: OffsetQuery,\n options?: FindOptions,\n) => Promise<OffsetQueryResult<T>>;\n\n/** The collection fetch derived from a source: loads once, then queries the\n * backend's `find`.\n *\n * Free-text search covers the columns the page is showing: the table keeps\n * `query.columns` in sync with them, so the scope comes off the query rather\n * than being threaded in. Falls back to the source's own `searchableFieldIds`\n * before any columns are known (or with no table attached). */\nexport function sourceFetchData<T>(\n source: SchemaSource<T>,\n): (query: OffsetQuery) => Promise<OffsetQueryResult<T>> {\n return async (query) => {\n const { backend, schema } = await source.loadSchema();\n // `columns` is the visible-column list; `fields` is the projection, which a\n // source-driven table doesn't set.\n const visibleColumns = query.columns;\n return (backend.find as OffsetFind<T>)(query, {\n searchableFieldIds: visibleColumns?.length\n ? visibleColumns\n : source.searchableFieldIds(schema),\n });\n };\n}\n\n/** Fills source-neutral defaults over `input` and memoizes the load so the collection\n * query and the table columns share a single fetch. */\nexport function defineSchemaSource<T>(\n input: SchemaSourceInput<T>,\n): SchemaSource<T> {\n const {\n collectionId,\n paginationMode = 'offset',\n fieldModal = {},\n fieldTypes = [],\n fieldPermissions,\n supportsPii = false,\n references = {},\n getReferencedCollectionSource,\n } = input;\n\n let loaded: Promise<LoadedSchema<T>> | undefined;\n let resolved: LoadedSchema<T> | undefined;\n\n const loadSchema = () =>\n (loaded ??= input\n .loadSchema()\n .then((result) => {\n resolved = result;\n return result;\n })\n .catch((error) => {\n loaded = undefined;\n throw error;\n }));\n\n const setLoadedSchema = (schema: Schema) => {\n if (!resolved) {\n return;\n }\n resolved = { ...resolved, schema };\n loaded = Promise.resolve(resolved);\n };\n\n const searchableFieldIds =\n input.searchableFieldIds ?? ((s) => [s.displayField]);\n\n const itemKey =\n input.itemKey ??\n ((item) =>\n String(\n (item as Record<string, unknown>)[resolved?.schema.idField ?? '_id'] ??\n '',\n ));\n const itemName =\n input.itemName ??\n ((item) =>\n String(\n (item as Record<string, unknown>)[\n resolved?.schema.displayField ?? '_id'\n ] ?? '',\n ));\n const canAddFields =\n input.canAddFields ?? ((s) => s.schemaPermissions?.createField ?? false);\n const isLockedField = (field: Field, s: Schema) =>\n field.isSystem === true || field.id === s.idField;\n const canEditField =\n input.canEditField ??\n ((field, s) =>\n (s.schemaPermissions?.updateField ?? false) && !isLockedField(field, s));\n const canDeleteField =\n input.canDeleteField ??\n ((field, s) =>\n (s.schemaPermissions?.deleteField ?? false) && !isLockedField(field, s));\n const getFieldValue =\n input.getFieldValue ??\n ((item, field) => (item as Record<string, unknown>)[field.id]);\n const setFieldValue =\n input.setFieldValue ??\n ((item, field, value) => ({ ...item, [field.id]: value } as T));\n\n const schemaParams = (): SchemaBiParams => ({\n tableId: resolved?.schema.id ?? collectionId,\n tableName: resolved?.schema.name,\n tableType: resolved?.schema.type,\n });\n\n return {\n collectionId,\n loadSchema,\n paginationMode,\n itemKey,\n itemName,\n references,\n ...(getReferencedCollectionSource && { getReferencedCollectionSource }),\n fieldModal: {\n showFieldId: fieldModal.showFieldId,\n text: fieldModal.text,\n loadReferenceableCollectionOptions:\n fieldModal.loadReferenceableCollectionOptions,\n types: fieldModal.types ?? [],\n },\n fieldTypes,\n getFieldPresentation: input.getFieldPresentation,\n searchableFieldIds,\n canAddFields,\n canEditField,\n canDeleteField,\n getFieldActionDisabledReason: input.getFieldActionDisabledReason,\n canMakePrimary: input.canMakePrimary,\n getDeleteFieldConfirmation: input.getDeleteFieldConfirmation,\n fieldPermissions,\n supportsPii,\n canEditFieldPii: input.canEditFieldPii,\n getFieldValue,\n setFieldValue,\n schemaParams,\n setLoadedSchema,\n };\n}\n"],"mappings":";;;;;AAiBA;AACA;AACA;AACA;;AA6BA;;AAYA;;AAQA;;AAOA;;AA4EA;;AAkDA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,eAAeA,CAC7BC,MAAuB,EACgC;EACvD,OAAO,MAAOC,KAAK,IAAK;IACtB,MAAM;MAAEC,OAAO;MAAEC;IAAO,CAAC,GAAG,MAAMH,MAAM,CAACI,UAAU,CAAC,CAAC;IACrD;IACA;IACA,MAAMC,cAAc,GAAGJ,KAAK,CAACK,OAAO;IACpC,OAAQJ,OAAO,CAACK,IAAI,CAAmBN,KAAK,EAAE;MAC5CO,kBAAkB,EAAEH,cAAc,YAAdA,cAAc,CAAEI,MAAM,GACtCJ,cAAc,GACdL,MAAM,CAACQ,kBAAkB,CAACL,MAAM;IACtC,CAAC,CAAC;EACJ,CAAC;AACH;;AAEA;AACA;AACO,SAASO,kBAAkBA,CAChCC,KAA2B,EACV;EACjB,MAAM;IACJC,YAAY;IACZC,cAAc,GAAG,QAAQ;IACzBC,UAAU,GAAG,CAAC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CAAA;IAAA,IAAAC,UAAA,EAAAC,UAAA,EAAAC,UAAA;IAAA,OAAuB;MAC1CC,OAAO,EAAE,EAAAH,UAAA,GAAApC,QAAQ,qBAARoC,UAAA,CAAUtD,MAAM,CAAC2C,EAAE,KAAIlC,YAAY;MAC5CiD,SAAS,GAAAH,UAAA,GAAErC,QAAQ,qBAARqC,UAAA,CAAUvD,MAAM,CAAC2D,IAAI;MAChCC,SAAS,GAAAJ,UAAA,GAAEtC,QAAQ,qBAARsC,UAAA,CAAUxD,MAAM,CAAC6D;IAC9B,CAAC;EAAA,CAAC;EAEF,OAAO;IACLpD,YAAY;IACZR,UAAU;IACVS,cAAc;IACdmB,OAAO;IACPK,QAAQ;IACRnB,UAAU;IACV,IAAIC,6BAA6B,IAAI;MAAEA;IAA8B,CAAC,CAAC;IACvEL,UAAU,EAAE;MACVmD,WAAW,EAAEnD,UAAU,CAACmD,WAAW;MACnCC,IAAI,EAAEpD,UAAU,CAACoD,IAAI;MACrBC,kCAAkC,EAChCrD,UAAU,CAACqD,kCAAkC;MAC/CC,KAAK,EAAEtD,UAAU,CAACsD,KAAK,IAAI;IAC7B,CAAC;IACDrD,UAAU;IACVsD,oBAAoB,EAAE1D,KAAK,CAAC0D,oBAAoB;IAChD7D,kBAAkB;IAClB+B,YAAY;IACZQ,YAAY;IACZG,cAAc;IACdoB,4BAA4B,EAAE3D,KAAK,CAAC2D,4BAA4B;IAChEC,cAAc,EAAE5D,KAAK,CAAC4D,cAAc;IACpCC,0BAA0B,EAAE7D,KAAK,CAAC6D,0BAA0B;IAC5DxD,gBAAgB;IAChBC,WAAW;IACXwD,eAAe,EAAE9D,KAAK,CAAC8D,eAAe;IACtCpB,aAAa;IACbC,aAAa;IACbE,YAAY;IACZ7B;EACF,CAAC;AACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["sourceFetchData","source","query","backend","schema","loadSchema","visibleColumns","columns","find","searchableFieldIds","length","defineSchemaSource","input","collectionId","paginationMode","fieldModal","fieldTypes","fieldPermissions","supportsPii","references","getReferencedCollectionSource","loaded","resolved","then","result","catch","error","undefined","setLoadedSchema","Promise","resolve","s","displayField","itemKey","item","_resolved","String","idField","itemName","_resolved2","canAddFields","_s$schemaPermissions","schemaPermissions","createField","isLockedField","field","isSystem","id","canEditField","_s$schemaPermissions2","updateField","canDeleteField","_s$schemaPermissions3","deleteField","getFieldValue","setFieldValue","value","schemaParams","_resolved3","_resolved4","_resolved5","tableId","tableName","name","tableType","type","showFieldId","text","loadReferenceableCollectionOptions","types","getFieldPresentation","getFieldActionDisabledReason","canMakePrimary","getDeleteFieldConfirmation","canEditFieldPii"],"sources":["../../../src/types/SchemaSource.ts"],"sourcesContent":["import type { Field, PatternsFieldType } from './Field';\nimport type { FieldTypeDefinition } from './FieldTypeDefinition';\nimport type { Schema, LoadedSchema, FindOptions } from './Schema';\nimport type {\n FieldPresentation,\n FieldModalText,\n FieldModalCollectionInput,\n FieldModalCollectionOptionsLoader,\n FieldPermissions,\n FieldPiiWarning,\n FieldSettingsSection,\n} from './FieldsSource';\nimport type {\n OffsetQuery,\n OffsetQueryResult,\n} from '../hooks/paginationModeConfig';\n\n/** A field type the add/edit field modal offers, with everything that type\n * brings to it. Declare one entry per `patternsType` — the type is the entry's\n * identity. Nothing here reaches the table or the filters; that is `fieldTypes`\n * (`FieldTypeDefinition[]`). */\nexport interface FieldTypeOption {\n patternsType: PatternsFieldType;\n /** Custom display name. Absent ⇒ the UI's standard name for this type. */\n label?: string;\n /** Custom name-input placeholder. Absent ⇒ the UI's standard placeholder. */\n namePlaceholder?: string;\n /** Fallback field ID base when the name cannot produce a valid ID.\n * Default: the normalized type ID. Numeric suffixes resolve collisions. */\n keyBase?: string;\n /** A one-line description shown under the type in the add-field menu. */\n subtitle?: string;\n /** The group heading this type is listed under in the add-field menu, in\n * first-seen order. Types sharing a heading form one group. Absent ⇒\n * ungrouped. */\n group?: string;\n /** Whether a field of this type can be marked PII. Absent ⇒ follows the\n * source's `supportsPii`. */\n supportsPii?: boolean;\n /** Warning shown while the PII toggle is on. Read on every render, so it can\n * use data that only exists once the schema has loaded. Default: none. */\n piiWarning?: () => FieldPiiWarning | undefined;\n /** This type's own part of the collapsible section in the add/edit field\n * modal. Default: none. */\n settingsSection?: FieldSettingsSection;\n /** Collection picker shown in the main add/edit field form. */\n collectionInput?: FieldModalCollectionInput;\n}\n\n/** Everything the add/edit field modal shows for this source. */\nexport interface FieldModalInput {\n /** Whether to show the field ID input. Default: true. */\n showFieldId?: boolean;\n /** Title and subtitle. Default: generic titles. */\n text?: FieldModalText;\n /** Default option loader for reference-like built-in field types. */\n loadReferenceableCollectionOptions?: FieldModalCollectionOptionsLoader;\n /** The types the modal offers, in display order. Default: none. */\n types?: FieldTypeOption[];\n}\n\nexport interface DeleteFieldConfirmationLink {\n text: string;\n /** `closeDialog` closes the delete dialog without deleting the field. */\n onClick: (params: { closeDialog: () => void }) => void;\n}\n\n/** A note at the bottom of the delete-field dialog: text followed by a link. */\nexport interface DeleteFieldConfirmationFootnote {\n text: string;\n link: DeleteFieldConfirmationLink;\n}\n\n/** Copy shown before deleting a field. Strings are translated by the caller. */\nexport interface DeleteFieldConfirmation {\n title: string;\n description: string;\n /** When provided, confirmation requires this checkbox to be checked. */\n confirmationCheckboxLabel?: string;\n footnote?: DeleteFieldConfirmationFootnote;\n}\n\n/** A promise keeps the dialog loading, with deletion disabled, until it\n * settles. A rejected promise shows the default dialog. */\nexport type DeleteFieldConfirmationResult =\n | DeleteFieldConfirmation\n | undefined\n | Promise<DeleteFieldConfirmation | undefined>;\n\n/** Identifies the collection behind a table on BI events. */\nexport interface SchemaBiParams {\n tableId?: string;\n tableName?: string;\n tableType?: string;\n}\n\n/** What a caller passes. Only `collectionId` and `loadSchema` are required. */\nexport interface SchemaSourceInput<T> {\n collectionId: string;\n loadSchema: () => Promise<LoadedSchema<T>>;\n /** Sources for collections this one references, keyed by the referenced\n * collection id. A renderer resolves a reference field through the matching\n * entry — its `loadSchema` gives the referenced schema and `sourceFetchData`\n * queries the referenced items. Default: none. */\n references?: Record<string, SchemaSource<any>>;\n /** Lazy source lookup for a referenced collection that is not in `references`.\n * Is used when a reference field is created in the add field modal.\n * The returned source owns its own async schema/item loading. */\n getReferencedCollectionSource?: (\n collectionId: string,\n ) => SchemaSource<any> | undefined;\n paginationMode?: 'offset';\n /** Stable row identity. Default: `row[idField]`. */\n itemKey?: (item: T) => string;\n /** Row display label. Default: `row[displayField]`. */\n itemName?: (item: T) => string;\n /** Fields free-text search runs against. Default: `[displayField]`. */\n searchableFieldIds?: (schema: Schema) => string[];\n /** What the add/edit field modal shows. Default: no types, generic titles. */\n fieldModal?: FieldModalInput;\n /** Consumer-defined field types: how a field of that type renders, filters and\n * validates wherever it appears. A field with `type: 'CUSTOM'` resolves its\n * definition here by `customType`. The add/edit field modal never reads this\n * — see `fieldModal`. Default: none. */\n fieldTypes?: FieldTypeDefinition[];\n /** Overrides one existing field's type label, icons, collection-picker label\n * and initial field visibility. Does not change its type, values or\n * add-field options. */\n getFieldPresentation?: (field: Field) => FieldPresentation | undefined;\n /** Default: `schemaPermissions.createField`. */\n canAddFields?: (schema: Schema) => boolean;\n /** Default: `schemaPermissions.updateField`, except for system fields and\n * the id field. */\n canEditField?: (field: Field, schema: Schema) => boolean;\n /** Default: `schemaPermissions.deleteField`, except for system fields and\n * the id field. */\n canDeleteField?: (field: Field, schema: Schema) => boolean;\n /** Disables an otherwise available field action with this tooltip.\n * Undefined preserves its default state; denied actions stay hidden. */\n getFieldActionDisabledReason?: (\n field: Field,\n schema: Schema,\n action:\n | 'editField'\n | 'makePrimary'\n | 'duplicateField'\n | 'duplicateFieldWithContent'\n | 'delete',\n ) => string | undefined;\n /** Whether a field can become the primary field. When omitted, only\n * `SHORT_TEXT` and `LONG_TEXT` fields can. When set, its result replaces\n * that rule, so return `false` for non-text fields too. */\n canMakePrimary?: (field: Field, schema: Schema) => boolean;\n /** Resolved when deletion is requested. Undefined keeps the default dialog. */\n getDeleteFieldConfirmation?: (\n field: Field,\n schema: Schema,\n ) => DeleteFieldConfirmationResult;\n /** Permission defaults shown in the modal. Absent ⇒ no permissions section. */\n fieldPermissions?: FieldPermissions;\n /** Default: `false`. */\n supportsPii?: boolean;\n /** Allows changing PII on an existing supported field. Default: disabled.\n * Does not override `canEditField` or the field type's PII support. */\n canEditFieldPii?: (field: Field, schema: Schema) => boolean;\n /** The value of a field on an item. Default: `item[field.id]`. */\n getFieldValue?: (item: T, field: Field) => unknown;\n /** Writes a field's value on an item, returning the updated item.\n * Default: `{ ...item, [field.id]: value }`. */\n setFieldValue?: (item: T, field: Field, value: unknown) => T;\n}\n\n/** The resolved source: defaults filled, `loadSchema` memoized. */\nexport interface SchemaSource<T> {\n readonly collectionId: string;\n loadSchema: () => Promise<LoadedSchema<T>>;\n readonly paginationMode: 'offset';\n /** Stable row identity. */\n itemKey: (item: T) => string;\n /** Row display label. */\n itemName: (item: T) => string;\n /** Sources for referenced collections, keyed by referenced collection id. */\n readonly references: Record<string, SchemaSource<any>>;\n getReferencedCollectionSource?: (\n collectionId: string,\n ) => SchemaSource<any> | undefined;\n readonly fieldModal: {\n showFieldId?: boolean;\n text?: FieldModalText;\n loadReferenceableCollectionOptions?: FieldModalCollectionOptionsLoader;\n types: FieldTypeOption[];\n };\n readonly fieldTypes: FieldTypeDefinition[];\n getFieldPresentation?: (field: Field) => FieldPresentation | undefined;\n searchableFieldIds: (schema: Schema) => string[];\n canAddFields: (schema: Schema) => boolean;\n canEditField: (field: Field, schema: Schema) => boolean;\n canDeleteField: (field: Field, schema: Schema) => boolean;\n getFieldActionDisabledReason?: SchemaSourceInput<T>['getFieldActionDisabledReason'];\n canMakePrimary?: (field: Field, schema: Schema) => boolean;\n getDeleteFieldConfirmation?: (\n field: Field,\n schema: Schema,\n ) => DeleteFieldConfirmationResult;\n readonly fieldPermissions?: FieldPermissions;\n readonly supportsPii: boolean;\n canEditFieldPii?: (field: Field, schema: Schema) => boolean;\n /** The value of a field on an item. */\n getFieldValue: (item: T, field: Field) => unknown;\n /** Writes a field's value on an item, returning the updated item. */\n setFieldValue: (item: T, field: Field, value: unknown) => T;\n schemaParams: () => SchemaBiParams;\n /** Replaces the memoized schema returned by later `loadSchema()` calls.\n * No-op before the first successful load. */\n setLoadedSchema?: (schema: Schema) => void;\n}\n\ntype OffsetFind<T> = (\n query: OffsetQuery,\n options?: FindOptions,\n) => Promise<OffsetQueryResult<T>>;\n\n/** The collection fetch derived from a source: loads once, then queries the\n * backend's `find`.\n *\n * Free-text search covers the columns the page is showing: the table keeps\n * `query.columns` in sync with them, so the scope comes off the query rather\n * than being threaded in. Falls back to the source's own `searchableFieldIds`\n * before any columns are known (or with no table attached). */\nexport function sourceFetchData<T>(\n source: SchemaSource<T>,\n): (query: OffsetQuery) => Promise<OffsetQueryResult<T>> {\n return async (query) => {\n const { backend, schema } = await source.loadSchema();\n // `columns` is the visible-column list; `fields` is the projection, which a\n // source-driven table doesn't set.\n const visibleColumns = query.columns;\n return (backend.find as OffsetFind<T>)(query, {\n searchableFieldIds: visibleColumns?.length\n ? visibleColumns\n : source.searchableFieldIds(schema),\n });\n };\n}\n\n/** Fills source-neutral defaults over `input` and memoizes the load so the collection\n * query and the table columns share a single fetch. */\nexport function defineSchemaSource<T>(\n input: SchemaSourceInput<T>,\n): SchemaSource<T> {\n const {\n collectionId,\n paginationMode = 'offset',\n fieldModal = {},\n fieldTypes = [],\n fieldPermissions,\n supportsPii = false,\n references = {},\n getReferencedCollectionSource,\n } = input;\n\n let loaded: Promise<LoadedSchema<T>> | undefined;\n let resolved: LoadedSchema<T> | undefined;\n\n const loadSchema = () =>\n (loaded ??= input\n .loadSchema()\n .then((result) => {\n resolved = result;\n return result;\n })\n .catch((error) => {\n loaded = undefined;\n throw error;\n }));\n\n const setLoadedSchema = (schema: Schema) => {\n if (!resolved) {\n return;\n }\n resolved = { ...resolved, schema };\n loaded = Promise.resolve(resolved);\n };\n\n const searchableFieldIds =\n input.searchableFieldIds ?? ((s) => [s.displayField]);\n\n const itemKey =\n input.itemKey ??\n ((item) =>\n String(\n (item as Record<string, unknown>)[resolved?.schema.idField ?? '_id'] ??\n '',\n ));\n const itemName =\n input.itemName ??\n ((item) =>\n String(\n (item as Record<string, unknown>)[\n resolved?.schema.displayField ?? '_id'\n ] ?? '',\n ));\n const canAddFields =\n input.canAddFields ?? ((s) => s.schemaPermissions?.createField ?? false);\n const isLockedField = (field: Field, s: Schema) =>\n field.isSystem === true || field.id === s.idField;\n const canEditField =\n input.canEditField ??\n ((field, s) =>\n (s.schemaPermissions?.updateField ?? false) && !isLockedField(field, s));\n const canDeleteField =\n input.canDeleteField ??\n ((field, s) =>\n (s.schemaPermissions?.deleteField ?? false) && !isLockedField(field, s));\n const getFieldValue =\n input.getFieldValue ??\n ((item, field) => (item as Record<string, unknown>)[field.id]);\n const setFieldValue =\n input.setFieldValue ??\n ((item, field, value) => ({ ...item, [field.id]: value } as T));\n\n const schemaParams = (): SchemaBiParams => ({\n tableId: resolved?.schema.id ?? collectionId,\n tableName: resolved?.schema.name,\n tableType: resolved?.schema.type,\n });\n\n return {\n collectionId,\n loadSchema,\n paginationMode,\n itemKey,\n itemName,\n references,\n ...(getReferencedCollectionSource && { getReferencedCollectionSource }),\n fieldModal: {\n showFieldId: fieldModal.showFieldId,\n text: fieldModal.text,\n loadReferenceableCollectionOptions:\n fieldModal.loadReferenceableCollectionOptions,\n types: fieldModal.types ?? [],\n },\n fieldTypes,\n getFieldPresentation: input.getFieldPresentation,\n searchableFieldIds,\n canAddFields,\n canEditField,\n canDeleteField,\n getFieldActionDisabledReason: input.getFieldActionDisabledReason,\n canMakePrimary: input.canMakePrimary,\n getDeleteFieldConfirmation: input.getDeleteFieldConfirmation,\n fieldPermissions,\n supportsPii,\n canEditFieldPii: input.canEditFieldPii,\n getFieldValue,\n setFieldValue,\n schemaParams,\n setLoadedSchema,\n };\n}\n"],"mappings":";;;;;AAiBA;AACA;AACA;AACA;;AA6BA;;AAkBA;;AAMA;;AASA;AACA;;AAMA;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D,kCAAkC;MAC/CC,KAAK,EAAEtD,UAAU,CAACsD,KAAK,IAAI;IAC7B,CAAC;IACDrD,UAAU;IACVsD,oBAAoB,EAAE1D,KAAK,CAAC0D,oBAAoB;IAChD7D,kBAAkB;IAClB+B,YAAY;IACZQ,YAAY;IACZG,cAAc;IACdoB,4BAA4B,EAAE3D,KAAK,CAAC2D,4BAA4B;IAChEC,cAAc,EAAE5D,KAAK,CAAC4D,cAAc;IACpCC,0BAA0B,EAAE7D,KAAK,CAAC6D,0BAA0B;IAC5DxD,gBAAgB;IAChBC,WAAW;IACXwD,eAAe,EAAE9D,KAAK,CAAC8D,eAAe;IACtCpB,aAAa;IACbC,aAAa;IACbE,YAAY;IACZ7B;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ctaKeys","exports","PUBLISH","APPLY","CONNECT","ACTIVATE","SAVE","SUBMIT"],"sources":["../../../src/util/actionsBar.ts"],"sourcesContent":["import { cairoPageCtaClickedParams } from '@wix/bex-utils/@wix/bi-logger-os-data/v2/types';\nimport type { ReactNode } from 'react';\nimport { TranslationsKeys } from '../services';\n\nexport type SaveCtaText =\n | 'PUBLISH'\n | 'APPLY'\n | 'CONNECT'\n | 'ACTIVATE'\n | 'SAVE'\n | 'SUBMIT';\n\nexport const ctaKeys: Record<SaveCtaText, TranslationsKeys> = {\n PUBLISH: 'cairo.entityPage.header.publish.CTA',\n APPLY: 'cairo.entityPage.header.apply.CTA',\n CONNECT: 'cairo.entityPage.header.connect.CTA',\n ACTIVATE: 'cairo.entityPage.header.activate.CTA',\n SAVE: 'cairo.entityPage.header.save.CTA',\n SUBMIT: 'cairo.entityPage.header.submit.CTA',\n};\n\nexport interface SaveCtaSecondaryAction {\n consumerText: string;\n onClick: () => void;\n icon?: ReactNode;\n disabled?: boolean;\n disabledReason?: string;\n dataHook?: string;\n}\n\nexport interface ActionsBarConfig {\n saveCta?: {\n text?: SaveCtaText;\n consumerText?: string;\n biAdditionalInfo?: cairoPageCtaClickedParams['additionalInfo'];\n /**
|
|
1
|
+
{"version":3,"names":["ctaKeys","exports","PUBLISH","APPLY","CONNECT","ACTIVATE","SAVE","SUBMIT"],"sources":["../../../src/util/actionsBar.ts"],"sourcesContent":["import { cairoPageCtaClickedParams } from '@wix/bex-utils/@wix/bi-logger-os-data/v2/types';\nimport type { ReactNode } from 'react';\nimport { TranslationsKeys } from '../services';\n\nexport type SaveCtaText =\n | 'PUBLISH'\n | 'APPLY'\n | 'CONNECT'\n | 'ACTIVATE'\n | 'SAVE'\n | 'SUBMIT';\n\nexport const ctaKeys: Record<SaveCtaText, TranslationsKeys> = {\n PUBLISH: 'cairo.entityPage.header.publish.CTA',\n APPLY: 'cairo.entityPage.header.apply.CTA',\n CONNECT: 'cairo.entityPage.header.connect.CTA',\n ACTIVATE: 'cairo.entityPage.header.activate.CTA',\n SAVE: 'cairo.entityPage.header.save.CTA',\n SUBMIT: 'cairo.entityPage.header.submit.CTA',\n};\n\nexport interface SaveCtaSecondaryAction {\n consumerText: string;\n onClick: () => void;\n icon?: ReactNode;\n disabled?: boolean;\n disabledReason?: string;\n dataHook?: string;\n}\n\nexport interface ActionsBarConfig {\n saveCta?: {\n text?: SaveCtaText;\n consumerText?: string;\n biAdditionalInfo?: cairoPageCtaClickedParams['additionalInfo'];\n /** Additional save commands, shown in a desktop split button or a mobile drawer. */\n secondaryActions?: SaveCtaSecondaryAction[];\n disabled?: boolean;\n disabledReason?: ReactNode;\n };\n cancelCta?: {\n biAdditionalInfo?: cairoPageCtaClickedParams['additionalInfo'];\n };\n}\n"],"mappings":";;;;AAYO,MAAMA,OAA8C,GAAAC,OAAA,CAAAD,OAAA,GAAG;EAC5DE,OAAO,EAAE,qCAAqC;EAC9CC,KAAK,EAAE,mCAAmC;EAC1CC,OAAO,EAAE,qCAAqC;EAC9CC,QAAQ,EAAE,sCAAsC;EAChDC,IAAI,EAAE,kCAAkC;EACxCC,MAAM,EAAE;AACV,CAAC","ignoreList":[]}
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Remove Row} other {Remove # Rows}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "You've selected the maximum amount.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Some information has an incorrect or invalid format.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Not Empty",
|
|
688
689
|
"cairo.import.footerText": "Not sure how to prepare CSV file?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "contains",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Remove Row} other {Remove # Rows}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "You've selected the maximum amount.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Some information has an incorrect or invalid format.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Not Empty",
|
|
688
689
|
"cairo.import.footerText": "Not sure how to prepare CSV file?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "contains",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Remove Row} other {Remove # Rows}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "You've selected the maximum amount.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Some information has an incorrect or invalid format.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Not Empty",
|
|
688
689
|
"cairo.import.footerText": "Not sure how to prepare CSV file?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "contains",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"cairo.emptyState.premium.text": "Upgradujte web a získáte přístup k více funkcím.",
|
|
3
3
|
"cairo.customFields.fieldType.shortText": "Krátký text",
|
|
4
|
-
"cairo.import.summaryUpdated": "{count, plural, one {Aktualizováno: {count} položka} few {Aktualizováno: {count} položky} many {Aktualizováno: {count}
|
|
4
|
+
"cairo.import.summaryUpdated": "{count, plural, one {Aktualizováno: {count} položka} few {Aktualizováno: {count} položky} many {Aktualizováno: {count} položky} other {Aktualizováno: {count} položek}}",
|
|
5
5
|
"cairo.delete.button": "Odstranit",
|
|
6
6
|
"cairo.deselectAll": "Zrušit výběr všech",
|
|
7
7
|
"cairo.table.deleteViewModal.title": "Odstranit toto zobrazení?",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"cairo.tags.bulkItemUpdate.toast.error.CTA": "Zkusit znovu",
|
|
89
89
|
"cairo.export.databaseIssueMessage": "Na naší straně se objevily problémy, takže se export nepodařilo uložit. Kontaktujte podporu s žádostí o pomoc.",
|
|
90
90
|
"cairo.tags.manageTags.modal.toast.create.error.asLabels": "Štítek se nepodařilo vytvořit.",
|
|
91
|
-
"cairo.import.partialSuccess": "Podařilo se importovat {succeeded} {succeeded, plural, one {položku}
|
|
91
|
+
"cairo.import.partialSuccess": "Podařilo se importovat {succeeded} {succeeded, plural, one {jednu položku} other {všechny položky}}. {failed} {failed, plural, one {Položku} other {Položky}} se nepodařilo importovat.",
|
|
92
92
|
"cairo.picker.itemsSelected.maxSelected.tooltip": "Byl vybrán maximální počet",
|
|
93
93
|
"cairo.import.noRowsFound": "V tomto souboru CSV nebyly nalezeny žádné řádky.",
|
|
94
94
|
"cairo.saveView.Success.toast": "Uložili jste „{viewName}“.",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"cairo.filtersPanel.search.clearButton": "Vymazat hledání",
|
|
159
159
|
"cairo.customFields.fieldType.dateAndTime": "Datum a čas",
|
|
160
160
|
"cairo.search.Tab.noresults.text": "Podívejte se na jinou záložku nebo zkuste nové vyhledávání.",
|
|
161
|
-
"cairo.import.summaryCreated": "{count, plural, one {Vytvořeno: {count} položka} few {Vytvořeno: {count} položky} many {Vytvořeno: {count}
|
|
161
|
+
"cairo.import.summaryCreated": "{count, plural, one {Vytvořeno: {count} položka} few {Vytvořeno: {count} položky} many {Vytvořeno: {count} položky} other {Vytvořeno: {count} položek}}",
|
|
162
162
|
"cairo.viewDropdown.unsavedView.status": "Neuložené zobrazení",
|
|
163
163
|
"cairo.technical.error.text": "Vyskytly se u nás technické potíže. Obnovte stránku a zkuste to za chvíli znovu.",
|
|
164
164
|
"cairo.import.downloadFailedRows": "Stáhnout neúspěšné řádky",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Odebrat řádek} few {Odebrat {count,number} řádky} many {Odebrat {count,number} řádku} other {Odebrat {count,number} řádků}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "Vybrali jste maximální počet.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Některé informace mají nesprávný nebo neplatný formát.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Není prázdné",
|
|
688
689
|
"cairo.import.footerText": "Nevíte, jak připravit soubor CSV?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "obsahuje",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Fjern række} other {Fjern {count,number} rækker}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "Du har valgt det maksimale antal.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Nogle af oplysningerne har et forkert eller ugyldigt format.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "ikke tom",
|
|
688
689
|
"cairo.import.footerText": "Er du i tvivl om, hvordan du forbereder en CSV-fil?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "indeholder",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"cairo.emptyState.premium.text": "Erhalte durch ein Upgrade mehr Tools und Features.",
|
|
3
3
|
"cairo.customFields.fieldType.shortText": "Kurzer Text",
|
|
4
|
-
"cairo.import.summaryUpdated": "{count, plural, one {{count} Element aktualisiert} other {{count} Elemente aktualisiert}}",
|
|
4
|
+
"cairo.import.summaryUpdated": "{count, plural, one {{count} Element wurde aktualisiert.} other {{count} Elemente wurden aktualisiert.}}",
|
|
5
5
|
"cairo.delete.button": "Löschen",
|
|
6
6
|
"cairo.deselectAll": "Auswahl aufheben",
|
|
7
7
|
"cairo.table.deleteViewModal.title": "Diese Ansicht löschen?",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"cairo.table.custom-columns.indication.system.tooltip": "Dieses Feld wird vom System verwaltet.",
|
|
66
66
|
"cairo.manageView.saveChanges.disabled.predefinedView.tooltip": "Dies ist eine voreingestellte Ansicht. Um Änderungen zu speichern, speichere diese als neue Ansicht.",
|
|
67
67
|
"cairo.entityPage.header.subscribe.CTA": "Abonnieren",
|
|
68
|
-
"cairo.customFields.addCustomField.success.toast": "Feld vom Typ {fieldType} hinzugefügt.",
|
|
68
|
+
"cairo.customFields.addCustomField.success.toast": "Feld vom Typ {fieldType} wurde hinzugefügt.",
|
|
69
69
|
"cairo.setupWidget.error.cta": "Erneut versuchen",
|
|
70
70
|
"cairo.fieldValidation.required.label": "Als Pflichtfeld festlegen",
|
|
71
71
|
"cairo.customFields.fieldType.date": "Datum",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"cairo.tags.bulkItemUpdate.toast.error.CTA": "Erneut versuchen",
|
|
89
89
|
"cairo.export.databaseIssueMessage": "Es gab ein vorübergehendes Problem und der Export konnte nicht gespeichert werden. Bitte kontaktiere unser Support-Team.",
|
|
90
90
|
"cairo.tags.manageTags.modal.toast.create.error.asLabels": "Label wurde nicht erstellt.",
|
|
91
|
-
"cairo.import.partialSuccess": "{succeeded} {succeeded, plural, one {Element} other {Elemente}} erfolgreich importiert. {failed} {failed, plural, one {Element konnte} other {Elemente konnten}} nicht importiert werden.",
|
|
91
|
+
"cairo.import.partialSuccess": "{succeeded} {succeeded, plural, one {Element wurde} other {Elemente wurden}} erfolgreich importiert. {failed} {failed, plural, one {Element konnte} other {Elemente konnten}} nicht importiert werden.",
|
|
92
92
|
"cairo.picker.itemsSelected.maxSelected.tooltip": "Die maximale Anzahl wurde ausgewählt",
|
|
93
93
|
"cairo.import.noRowsFound": "In dieser CSV-Datei wurden keine Zeilen gefunden.",
|
|
94
94
|
"cairo.saveView.Success.toast": "„{viewName}“ wurde gespeichert.",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"cairo.filtersPanel.search.clearButton": "Suche löschen",
|
|
159
159
|
"cairo.customFields.fieldType.dateAndTime": "Datum und Uhrzeit",
|
|
160
160
|
"cairo.search.Tab.noresults.text": "Suche in einem anderen Tab oder starte eine neue Suche.",
|
|
161
|
-
"cairo.import.summaryCreated": "{count, plural, one {{count} Element erstellt} other {{count} Elemente erstellt}}",
|
|
161
|
+
"cairo.import.summaryCreated": "{count, plural, one {{count} Element wurde erstellt.} other {{count} Elemente wurden erstellt.}}",
|
|
162
162
|
"cairo.viewDropdown.unsavedView.status": "Nicht gespeicherte Ansicht",
|
|
163
163
|
"cairo.technical.error.text": "Es gab ein technisches Problem. Aktualisiere die Seite und versuche es erneut.",
|
|
164
164
|
"cairo.import.downloadFailedRows": "Fehlgeschlagene Zeilen herunterladen",
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
"cairo.pickerModal.back.button": "Zurück",
|
|
223
223
|
"cairo.customFields.deleted.undo.CTA": "Rückgängig",
|
|
224
224
|
"cairo.manageView.Delete.disabled.predefinedView.tooltip": "Diese Ansicht kann nicht gelöscht werden.",
|
|
225
|
-
"cairo.import.genericError": "
|
|
225
|
+
"cairo.import.genericError": "Es gab einen unerwarteten Fehler beim Importieren.",
|
|
226
226
|
"cairo.tags.manageTags.modal.toast.delete.success": "Tag wurde gelöscht.",
|
|
227
227
|
"cairo.noViewName.validationTooltip": "Benenne deine Ansicht, um sie zu speichern.",
|
|
228
228
|
"cairo.emptyState.subtitle.nothingMatches": "Deine Suche nach „{term}“ ergab keine Treffer.",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"cairo.viewDropdown.allOrders.defaultViews": "Alle Bestellungen",
|
|
253
253
|
"cairo.viewsDropdown.nothingMatches.text": "Keine Ansichten gefunden. Bitte starte eine neue Suche.",
|
|
254
254
|
"cairo.customFields.addCustomField.modal.advancedSettings.readPermissions.tooltip": "Lege Berechtigungen für dieses Feld fest. Website-Mitbearbeiter haben standardmäßig Lese- und Schreibberechtigungen.",
|
|
255
|
-
"cairo.import.importing": "
|
|
255
|
+
"cairo.import.importing": "Import läuft",
|
|
256
256
|
"cairo.manageView.CTA": "Ansicht verwalten",
|
|
257
257
|
"cairo.tags.manageTags.modal.toast.rename.error.asLabels": "Label wurde nicht umbenannt.",
|
|
258
258
|
"cairo.filtersPanel.header": "Filtern",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"cairo.dragAndDrop.leaveSite.modal.description": "Änderungen an der Reihenfolge deiner Elemente werden möglicherweise nicht gespeichert.",
|
|
273
273
|
"cairo.table.deleteViewModal.deleteBody": "Sobald du „{viewName}“ löschst, kann dies nicht wiederhergestellt werden.",
|
|
274
274
|
"cairo.export.allItems": "Alle",
|
|
275
|
-
"cairo.import.failureReasonColumn": "
|
|
275
|
+
"cairo.import.failureReasonColumn": "Warum der Import fehlgeschlagen ist",
|
|
276
276
|
"cairo.customFields.addCustomField.modal.advancedSettings": "Erweiterte Einstellungen",
|
|
277
277
|
"cairo.import.downloadCsv": "CSV herunterladen",
|
|
278
278
|
"cairo.tags.bulkItemUpdate.updatingTags.toast.asLabels": "Labels werden aktualisiert ...",
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"cairo.filtersPanel.numRange.minRange.error": "Der Wert „Von“ muss kleiner sein als der Wert „Bis“.",
|
|
358
358
|
"cairo.table.custom-columns.indication.pii.tooltip": "Dieses Feld enthält personenbezogene Daten.",
|
|
359
359
|
"cairo.tags.collectionPage.tagsColumn.emptyState.body.asLabels": "Labels helfen dir beim Filtern und Ordnen deiner Elemente.",
|
|
360
|
-
"cairo.import.parseFailed": "Diese Datei konnte nicht eingelesen werden. Prüfe, ob es sich um eine gültige CSV-Datei handelt
|
|
360
|
+
"cairo.import.parseFailed": "Diese Datei konnte nicht eingelesen werden. Prüfe, ob es sich um eine gültige CSV-Datei handelt und versuche es erneut.",
|
|
361
361
|
"cairo.customFields.addCustomField.modal.advancedSettings.key.placeholder": "Feldschlüssel",
|
|
362
362
|
"cairo.customFields.archive.error.toast.CTA": "Erneut versuchen",
|
|
363
363
|
"cairo.import.error.jobFailed": "Der Import konnte nicht abgeschlossen werden. Versuche es erneut.",
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
"cairo.tags.tagsWidget.input.placeholder": "Neuen Tag-Namen eingeben",
|
|
463
463
|
"cairo.fieldValidation.charactersLimit.maxBelowMin.error": "Der Höchstwert darf nicht unter dem Mindestwert liegen.",
|
|
464
464
|
"cairo.entity.item": "{num, plural, =0 {Artikel} one {Artikel} other {Artikel}}",
|
|
465
|
-
"cairo.import.summaryFailed": "{count, plural, one {{count} Element konnte nicht importiert werden} other {{count} Elemente konnten nicht importiert werden}}",
|
|
465
|
+
"cairo.import.summaryFailed": "{count, plural, one {{count} Element konnte nicht importiert werden.} other {{count} Elemente konnten nicht importiert werden.}}",
|
|
466
466
|
"cairo.entityPage.widgetError.TPAconnectionFail.description": "Es gab ein technisches Problem und wir konnten den Abschnitt nicht laden. Versuche es erneut.",
|
|
467
467
|
"cairo.tags.tagsWidget.subtitle": "Tags helfen dir zu filtern und den Überblick zu behalten.",
|
|
468
468
|
"cairo.customFields.archive.modal.CTA": "Archivieren",
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
"cairo.import.newFieldHelper": "Dies wird ein neues {typeName}-Feld.",
|
|
542
542
|
"cairo.tags.tagsWidget.title": "Tags",
|
|
543
543
|
"cairo.customFields.entityPage.emptyState.subtitle": "Nutzerfelder erscheinen hier, wenn sie von Nutzern ausgefüllt werden.",
|
|
544
|
-
"cairo.import.summaryPending": "{count, plural, one {{count} Element muss vor dem Speichern in der Tabelle korrigiert werden} other {{count} Elemente müssen vor dem Speichern in der Tabelle korrigiert werden}}",
|
|
544
|
+
"cairo.import.summaryPending": "{count, plural, one {{count} Element muss vor dem Speichern in der Tabelle korrigiert werden.} other {{count} Elemente müssen vor dem Speichern in der Tabelle korrigiert werden.}}",
|
|
545
545
|
"cairo.archivedFields.title": "Archivierte Felder",
|
|
546
546
|
"cairo.searchPlaceholder": "Suchen ...",
|
|
547
547
|
"cairo.entityPage.header.saveAndPublish.CTA": "Speichern & veröffentlichen",
|
|
@@ -553,7 +553,7 @@
|
|
|
553
553
|
"cairo.tags.bulkItemUpdate.updatingModal.CTA.asLabels": "Schließen",
|
|
554
554
|
"cairo.tags.tagsWidget.options.manage.CTA": "Tags verwalten",
|
|
555
555
|
"cairo.table.filter.button": "Filtern",
|
|
556
|
-
"cairo.import.missingRequiredField": "{count, plural, one {{count,number} Pflichtfeld fehlt} other {{count,number} Pflichtfelder fehlen}}",
|
|
556
|
+
"cairo.import.missingRequiredField": "{count, plural, one {{count,number} Pflichtfeld fehlt.} other {{count,number} Pflichtfelder fehlen.}}",
|
|
557
557
|
"cairo.table.custom-columns.indication.app": "App",
|
|
558
558
|
"cairo.import.discardChanges.title": "Änderungen verwerfen?",
|
|
559
559
|
"cairo.tags.collectionPage.popover.emptyState.search.placeholder": "Neuen Tag-Namen eingeben",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Zeile entfernen} other {{count,number} Zeilen entfernen}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "Du hast die maximale Anzahl ausgewählt.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Einige Informationen haben ein falsches oder ungültiges Format.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Nicht leer",
|
|
688
689
|
"cairo.import.footerText": "Du weißt nicht, wie du eine CSV-Datei vorbereitest?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "enthält",
|
|
@@ -733,7 +734,7 @@
|
|
|
733
734
|
"cairo.export.selectedItems": "Ausgewählt",
|
|
734
735
|
"cairo.filterOperator.notContains": "Enthält nicht",
|
|
735
736
|
"cairo.entityPage.success.toast": "Deine Änderungen wurden gespeichert.",
|
|
736
|
-
"cairo.editableTable.paste.success.toast": "{count, plural, one {{count,number} Zelle eingefügt} other {{count,number} Zellen eingefügt}}",
|
|
737
|
+
"cairo.editableTable.paste.success.toast": "{count, plural, one {{count,number} Zelle wurde eingefügt.} other {{count,number} Zellen wurden eingefügt.}}",
|
|
737
738
|
"cairo.tags.tagsField.readOnly.emptyState.asLabels": "Du hast noch keine Labels zugewiesen.",
|
|
738
739
|
"cairo.table.custom-columns.button.tooltip": "Spalten anpassen",
|
|
739
740
|
"cairo.moreSaveActions": "Weitere Speicheroptionen",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Remove Row} other {Remove # Rows}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "You've selected the maximum amount.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Some information has an incorrect or invalid format.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Not Empty",
|
|
688
689
|
"cairo.import.footerText": "Not sure how to prepare CSV file?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "contains",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Remove Row} other {Remove # Rows}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "You've selected the maximum amount.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Some information has an incorrect or invalid format.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Not Empty",
|
|
688
689
|
"cairo.import.footerText": "Not sure how to prepare CSV file?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "contains",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Quitar fila} other {Quitar {count,number} filas}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "Has seleccionado la cantidad máxima.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Parte de la información tiene un formato incorrecto o no válido.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "No está vacío",
|
|
688
689
|
"cairo.import.footerText": "¿No sabes cómo preparar un archivo CSV?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "contiene",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Remove Row} other {Remove # Rows}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "You've selected the maximum amount.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Some information has an incorrect or invalid format.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Not Empty",
|
|
688
689
|
"cairo.import.footerText": "Not sure how to prepare CSV file?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "contains",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"cairo.tags.bulkItemUpdate.toast.error.CTA": "Réessayer",
|
|
89
89
|
"cairo.export.databaseIssueMessage": "Un problème temporaire est survenu de notre côté et l'exportation n'a pas pu être enregistrée. Contactez l'Assistance pour obtenir de l'aide.",
|
|
90
90
|
"cairo.tags.manageTags.modal.toast.create.error.asLabels": "Impossible de créer le libellé.",
|
|
91
|
-
"cairo.import.partialSuccess": "{succeeded} {succeeded, plural, one {élément importé} other {éléments importés}}
|
|
91
|
+
"cairo.import.partialSuccess": "{succeeded} {succeeded, plural, one {élément importé} other {éléments importés}}. {failed} {failed, plural, one {élément n'a pas pu être importé} other {éléments n'ont pas pu être importés}}.",
|
|
92
92
|
"cairo.picker.itemsSelected.maxSelected.tooltip": "Nombre maximal sélectionné",
|
|
93
93
|
"cairo.import.noRowsFound": "Aucune ligne trouvée dans ce fichier CSV.",
|
|
94
94
|
"cairo.saveView.Success.toast": "La vue « {viewName} » a été enregistrée.",
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"cairo.customFields.addCustomField.modal.cancel.CTA": "Annuler",
|
|
187
187
|
"cairo.customFields.addCustomField.modal.advancedSettings.siteVisitors.note": "Définissez les autorisations des visiteurs sur « Lire » pour connecter ce champ dynamiquement sur votre site. <learnMore>En savoir plus</learnMore>",
|
|
188
188
|
"cairo.settings.search.anchor-doesnt-exist.error": "Il n'y a plus de section qui s'appelle « {anchorName} » sur cette page.",
|
|
189
|
-
"cairo.import.configureMappingsTitle": "
|
|
189
|
+
"cairo.import.configureMappingsTitle": "Faire correspondre vos colonnes",
|
|
190
190
|
"cairo.editableTable.duplicateItem.error.toast": "Impossible de dupliquer l'élément",
|
|
191
191
|
"cairo.tags.popover.assignFolder.tooltip.asLabels": "Les libellés ne peuvent pas être attribuées à des dossiers.",
|
|
192
192
|
"cairo.tags.creationLimitReached.error.asLabels": "{count, plural, one {Impossible de créer plus de {limit} libellés. Supprimez {count,number} libellé pour continuer.} other {Impossible de créer plus de {limit} libellés. Supprimez {count,number} libellés pour continuer.}}",
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
"cairo.confirmModal.title": "Êtes-vous sûr de vouloir effectuer cette action ?",
|
|
235
235
|
"cairo.entityPage.header.connect.CTA": "Connecter",
|
|
236
236
|
"cairo.customFields.url-input.placeholder": "https://www.wix.com",
|
|
237
|
-
"cairo.import.stepper.matchFields": "
|
|
237
|
+
"cairo.import.stepper.matchFields": "Faire correspondre et importer",
|
|
238
238
|
"cairo.customFields.fieldType.time.inputTitle": "Heure",
|
|
239
239
|
"cairo.manageView.Rename.disabled.tooltip": "Pour renommer cette vue, enregistrez les modifications ou enregistrez-la en tant que nouvelle vue.",
|
|
240
240
|
"cairo.dropdownSearch.select.filers.clear": "Effacer",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"cairo.dragAndDrop.leaveSite.modal.description": "Les modifications apportées à votre commande ne seront pas enregistrées.",
|
|
273
273
|
"cairo.table.deleteViewModal.deleteBody": "Une fois la vue « {viewName} » supprimée, elle ne pourra plus être restaurée.",
|
|
274
274
|
"cairo.export.allItems": "Tous",
|
|
275
|
-
"cairo.import.failureReasonColumn": "
|
|
275
|
+
"cairo.import.failureReasonColumn": "Motif de l'échec de l'importation",
|
|
276
276
|
"cairo.customFields.addCustomField.modal.advancedSettings": "Paramètres avancés",
|
|
277
277
|
"cairo.import.downloadCsv": "Télécharger le CSV",
|
|
278
278
|
"cairo.tags.bulkItemUpdate.updatingTags.toast.asLabels": "Mise à jour des libellés...",
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
"cairo.tags.applyChanges.toast.success": "Libellé mis à jour.",
|
|
284
284
|
"cairo.editableTable.contextMenu.editRow.noPermission.tooltip": "Vous n'avez pas l'autorisation nécessaire pour modifier des lignes",
|
|
285
285
|
"cairo.setupWidget.allComplete.cta": "Accéder au tableau de bord",
|
|
286
|
-
"cairo.import.noMappingsTooltip": "
|
|
286
|
+
"cairo.import.noMappingsTooltip": "Faites correspondre au moins une colonne pour lancer l'importation.",
|
|
287
287
|
"cairo.import.noRowsWarningTitle": "Aucune ligne trouvée dans le fichier CSV",
|
|
288
288
|
"cairo.bulkSelected": "{num, plural, one {1 sélectionné} other {{num,number} sélectionnés}}",
|
|
289
289
|
"cairo.customFields.fieldType.numberInteger.Name.placeholder": "Ex. Âge",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Retirer la ligne} other {Retirer {count,number} lignes}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "Vous avez sélectionné le montant maximum.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Certaines informations ont un format incorrect ou invalide.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Non vide",
|
|
688
689
|
"cairo.import.footerText": "Vous ne savez pas comment préparer un fichier CSV ?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "contient",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Remove Row} other {Remove # Rows}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "You've selected the maximum amount.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Some information has an incorrect or invalid format.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Not Empty",
|
|
688
689
|
"cairo.import.footerText": "Not sure how to prepare CSV file?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "contains",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {पंक्ति हटाएँ} other {{count,number} पंक्तियाँ हटाएँ}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "आपने अधिकतम मात्रा का चयन किया है।",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "कुछ जानकारी गलत या अमान्य प्रारूप में है।",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "खाली नहीं",
|
|
688
689
|
"cairo.import.footerText": "CSV फ़ाइल तैयार करने का तरीका नहीं पता?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "शामिल है",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Remove Row} other {Remove # Rows}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "You've selected the maximum amount.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Some information has an incorrect or invalid format.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Not Empty",
|
|
688
689
|
"cairo.import.footerText": "Not sure how to prepare CSV file?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "contains",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, other {Hapus {count,number} Baris}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "Anda telah memilih jumlah maksimum.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Beberapa informasi memiliki format yang salah atau tidak valid.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Tidak Kosong",
|
|
688
689
|
"cairo.import.footerText": "Belum tahu cara menyiapkan file CSV?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "berisi",
|
|
@@ -684,6 +684,7 @@
|
|
|
684
684
|
"cairo.editableTable.contextMenu.removeRows.CTA": "{count, plural, one {Rimuovi riga} other {Rimuovi {count,number} righe}}",
|
|
685
685
|
"cairo.bulkSelected.withMaxNumber": "Hai selezionato il numero massimo.",
|
|
686
686
|
"cairo.customFields.updateDataExtension.changing-fields-not-allowed.error": "Alcune informazioni sono in un formato errato o non valido.",
|
|
687
|
+
"cairo.table.layout.diagram": "Diagram",
|
|
687
688
|
"cairo.filterOperator.exists": "Non è vuoto",
|
|
688
689
|
"cairo.import.footerText": "Non sai come preparare un file CSV?",
|
|
689
690
|
"cairo.filterOperator.contains.tag": "contiene",
|