@acorex-platform/module-data-management-client 0.0.33 → 0.0.38

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.
Files changed (25) hide show
  1. package/fesm2022/acorex-platform-module-data-management-client-contracts-entities-data-source.mjs.map +1 -1
  2. package/fesm2022/acorex-platform-module-data-management-client-contracts-entities-meta-data-definition.mjs.map +1 -1
  3. package/fesm2022/acorex-platform-module-data-management-client-contracts-entities-tag.mjs.map +1 -1
  4. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-acorex-platform-module-data-management-client-contracts-entity-catalog-BIY8VQ23.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-data-source.entity-CJ7ky5Gc.mjs.map +1 -1
  6. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-meta-data-definition.entity-Dj3FPJ3n.mjs.map +1 -1
  7. package/fesm2022/acorex-platform-module-data-management-client-contracts-entity-catalog-tag.entity-CFKCEoHu.mjs.map +1 -1
  8. package/fesm2022/acorex-platform-module-data-management-client-contracts.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-module-data-management-client-index-CMxKYDas.mjs.map +1 -1
  10. package/fesm2022/acorex-platform-module-data-management-client-list-agreement-scale-options.query-Dl7jMXp1.mjs.map +1 -1
  11. package/fesm2022/acorex-platform-module-data-management-client-list-availability-options.query-CdaHTgij.mjs.map +1 -1
  12. package/fesm2022/acorex-platform-module-data-management-client-list-frequency-options.query-BvsPPzFj.mjs.map +1 -1
  13. package/fesm2022/acorex-platform-module-data-management-client-list-gender-options.query-BA6Bwv66.mjs.map +1 -1
  14. package/fesm2022/acorex-platform-module-data-management-client-list-nps-scale-options.query-C8Pbp0Ow.mjs.map +1 -1
  15. package/fesm2022/acorex-platform-module-data-management-client-list-priority-options.query-GCuv4lU3.mjs.map +1 -1
  16. package/fesm2022/acorex-platform-module-data-management-client-list-rating-1-10-options.query-BYBU_yzv.mjs.map +1 -1
  17. package/fesm2022/acorex-platform-module-data-management-client-list-rating-scale-options.query-H-jWx7_1.mjs.map +1 -1
  18. package/fesm2022/acorex-platform-module-data-management-client-list-satisfaction-options.query-BIDjWNP5.mjs.map +1 -1
  19. package/fesm2022/acorex-platform-module-data-management-client-list-yes-no-maybe-options.query-C90RnQ5A.mjs.map +1 -1
  20. package/fesm2022/acorex-platform-module-data-management-client-list-yes-no-na-options.query-tz9dR33P.mjs.map +1 -1
  21. package/fesm2022/acorex-platform-module-data-management-client-list-yes-no-options.query-w2mqJJNZ.mjs.map +1 -1
  22. package/fesm2022/acorex-platform-module-data-management-client-local-entities.mjs.map +1 -1
  23. package/fesm2022/acorex-platform-module-data-management-client.mjs +11 -11
  24. package/fesm2022/acorex-platform-module-data-management-client.mjs.map +1 -1
  25. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-agreement-scale-options.query-Dl7jMXp1.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-agreement-scale-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListAgreementScaleOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListAgreementScaleOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `agreement-scale-options` registry data source. */\nconst AGREEMENT_SCALE_OPTIONS: AXMListAgreementScaleOptionsQueryItem[] = [\n {\n value: 'strongly-disagree',\n title: '@questionnaire:datasources.agreement-scale-options.samples.strongly-disagree',\n },\n {\n value: 'disagree',\n title: '@questionnaire:datasources.agreement-scale-options.samples.disagree',\n },\n {\n value: 'neutral',\n title: '@questionnaire:datasources.agreement-scale-options.samples.neutral',\n },\n {\n value: 'agree',\n title: '@questionnaire:datasources.agreement-scale-options.samples.agree',\n },\n {\n value: 'strongly-agree',\n title: '@questionnaire:datasources.agreement-scale-options.samples.strongly-agree',\n },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static agreement Likert catalog — replaces the `agreement-scale-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListAgreementScaleOptionsQuery\n implements\n AXPCollectionQuery<AXMListAgreementScaleOptionsQueryInput, AXMListAgreementScaleOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListAgreementScaleOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListAgreementScaleOptionsQueryItem> {\n try {\n let items = [...AGREEMENT_SCALE_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,uBAAuB,GAA4C;AACvE,IAAA;AACE,QAAA,KAAK,EAAE,mBAAmB;AAC1B,QAAA,KAAK,EAAE,8EAA8E;AACtF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,UAAU;AACjB,QAAA,KAAK,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BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA/BW,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAjC,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iCAAiC,cADpB,MAAM,EAAA,CAAA,CAAA;;2FACnB,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAD7C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-list-agreement-scale-options.query-Dl7jMXp1.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-agreement-scale-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListAgreementScaleOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListAgreementScaleOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `agreement-scale-options` registry data source. */\nconst AGREEMENT_SCALE_OPTIONS: AXMListAgreementScaleOptionsQueryItem[] = [\n {\n value: 'strongly-disagree',\n title: '@questionnaire:datasources.agreement-scale-options.samples.strongly-disagree',\n },\n {\n value: 'disagree',\n title: '@questionnaire:datasources.agreement-scale-options.samples.disagree',\n },\n {\n value: 'neutral',\n title: '@questionnaire:datasources.agreement-scale-options.samples.neutral',\n },\n {\n value: 'agree',\n title: '@questionnaire:datasources.agreement-scale-options.samples.agree',\n },\n {\n value: 'strongly-agree',\n title: '@questionnaire:datasources.agreement-scale-options.samples.strongly-agree',\n },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static agreement Likert catalog — replaces the `agreement-scale-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListAgreementScaleOptionsQuery\n implements\n AXPCollectionQuery<AXMListAgreementScaleOptionsQueryInput, AXMListAgreementScaleOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListAgreementScaleOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListAgreementScaleOptionsQueryItem> {\n try {\n let items = [...AGREEMENT_SCALE_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,uBAAuB,GAA4C;AACvE,IAAA;AACE,QAAA,KAAK,EAAE,mBAAmB;AAC1B,QAAA,KAAK,EAAE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AAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA/BW,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAjC,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iCAAiC,cADpB,MAAM,EAAA,CAAA,CAAA;;2FACnB,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAD7C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-availability-options.query-CdaHTgij.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-availability-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListAvailabilityOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListAvailabilityOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `availability-options` registry data source. */\nconst AVAILABILITY_OPTIONS: AXMListAvailabilityOptionsQueryItem[] = [\n { value: '24-7', title: '@data-management:datasources.availability-options.samples.24-7' },\n {\n value: 'business-hours',\n title: '@data-management:datasources.availability-options.samples.business-hours',\n },\n {\n value: 'weekdays',\n title: '@data-management:datasources.availability-options.samples.weekdays',\n },\n {\n value: 'weekends',\n title: '@data-management:datasources.availability-options.samples.weekends',\n },\n {\n value: 'limited-hours',\n title: '@data-management:datasources.availability-options.samples.limited-hours',\n },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static availability catalog — replaces the `availability-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListAvailabilityOptionsQuery\n implements AXPCollectionQuery<AXMListAvailabilityOptionsQueryInput, AXMListAvailabilityOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListAvailabilityOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListAvailabilityOptionsQueryItem> {\n try {\n let items = [...AVAILABILITY_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,oBAAoB,GAA0C;AAClE,IAAA,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,gEAAgE,EAAE;AAC1F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AAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,cADlB,MAAM,EAAA,CAAA,CAAA;;2FACnB,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAD3C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-list-availability-options.query-CdaHTgij.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-availability-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListAvailabilityOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListAvailabilityOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `availability-options` registry data source. */\nconst AVAILABILITY_OPTIONS: AXMListAvailabilityOptionsQueryItem[] = [\n { value: '24-7', title: '@data-management:datasources.availability-options.samples.24-7' },\n {\n value: 'business-hours',\n title: '@data-management:datasources.availability-options.samples.business-hours',\n },\n {\n value: 'weekdays',\n title: '@data-management:datasources.availability-options.samples.weekdays',\n },\n {\n value: 'weekends',\n title: '@data-management:datasources.availability-options.samples.weekends',\n },\n {\n value: 'limited-hours',\n title: '@data-management:datasources.availability-options.samples.limited-hours',\n },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static availability catalog — replaces the `availability-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListAvailabilityOptionsQuery\n implements AXPCollectionQuery<AXMListAvailabilityOptionsQueryInput, AXMListAvailabilityOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListAvailabilityOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListAvailabilityOptionsQueryItem> {\n try {\n let items = [...AVAILABILITY_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,oBAAoB,GAA0C;AAClE,IAAA,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,gEAAgE,EAAE;AAC1F,IAAA;AACE,QAAA,KAAK,EAAE,gBAA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CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,cADlB,MAAM,EAAA,CAAA,CAAA;;2FACnB,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAD3C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-frequency-options.query-BvsPPzFj.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-frequency-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListFrequencyOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListFrequencyOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `frequency-options` registry data source. */\nconst FREQUENCY_OPTIONS: AXMListFrequencyOptionsQueryItem[] = [\n { value: 'never', title: '@questionnaire:datasources.frequency-options.samples.never' },\n { value: 'rarely', title: '@questionnaire:datasources.frequency-options.samples.rarely' },\n { value: 'sometimes', title: '@questionnaire:datasources.frequency-options.samples.sometimes' },\n { value: 'often', title: '@questionnaire:datasources.frequency-options.samples.often' },\n { value: 'always', title: '@questionnaire:datasources.frequency-options.samples.always' },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static frequency catalog — replaces the `frequency-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListFrequencyOptionsQuery\n implements AXPCollectionQuery<AXMListFrequencyOptionsQueryInput, AXMListFrequencyOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListFrequencyOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListFrequencyOptionsQueryItem> {\n try {\n let items = [...FREQUENCY_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,iBAAiB,GAAuC;AAC5D,IAAA,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,4DAA4D,EAAE;AACvF,IAAA,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,6DAA6D,EAAE;AACzF,IAAA,EAAE,KAAK,EAAE,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,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,cADf,MAAM,EAAA,CAAA,CAAA;;2FACnB,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-list-frequency-options.query-BvsPPzFj.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-frequency-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListFrequencyOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListFrequencyOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `frequency-options` registry data source. */\nconst FREQUENCY_OPTIONS: AXMListFrequencyOptionsQueryItem[] = [\n { value: 'never', title: '@questionnaire:datasources.frequency-options.samples.never' },\n { value: 'rarely', title: '@questionnaire:datasources.frequency-options.samples.rarely' },\n { value: 'sometimes', title: '@questionnaire:datasources.frequency-options.samples.sometimes' },\n { value: 'often', title: '@questionnaire:datasources.frequency-options.samples.often' },\n { value: 'always', title: '@questionnaire:datasources.frequency-options.samples.always' },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static frequency catalog — replaces the `frequency-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListFrequencyOptionsQuery\n implements AXPCollectionQuery<AXMListFrequencyOptionsQueryInput, AXMListFrequencyOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListFrequencyOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListFrequencyOptionsQueryItem> {\n try {\n let items = [...FREQUENCY_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,iBAAiB,GAAuC;AAC5D,IAAA,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,4DAA4D,EAAE;AACvF,IAAA,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,6DAA6D,EAAE;AACzF,IAAA,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,gEAAgE,EAAE;AAC/F,IAAA,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,4DAA4D,EAAE;AACvF,IAAA,EAAE,KAAK,EAA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AAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,cADf,MAAM,EAAA,CAAA,CAAA;;2FACnB,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-gender-options.query-BA6Bwv66.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-gender-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListGenderOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListGenderOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `gender-options` registry data source. */\nconst GENDER_OPTIONS: AXMListGenderOptionsQueryItem[] = [\n { value: 'female', title: '@questionnaire:datasources.gender-options.samples.female' },\n { value: 'male', title: '@questionnaire:datasources.gender-options.samples.male' },\n { value: 'non-binary', title: '@questionnaire:datasources.gender-options.samples.non-binary' },\n {\n value: 'prefer-not-to-say',\n title: '@questionnaire:datasources.gender-options.samples.prefer-not-to-say',\n },\n { value: 'other', title: '@questionnaire:datasources.gender-options.samples.other' },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static gender catalog — replaces the `gender-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListGenderOptionsQuery\n implements AXPCollectionQuery<AXMListGenderOptionsQueryInput, AXMListGenderOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListGenderOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListGenderOptionsQueryItem> {\n try {\n let items = [...GENDER_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,cAAc,GAAoC;AACtD,IAAA,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,0DAA0D,EAAE;AACtF,IAAA,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,wDAAwD,EAAE;AAClF,IAAA,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,8DAA8D,EAAE;AAC9F,IAAA;AACE,QAAA,KAAK,EAAE,mBAAmB;AAC1B,QAAA,KAAK,EAAE,qEAAqE;AAC7E,KAAA;AACD,IAAA,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,yDAAyD,EAAE;CACrF;AAED;AAEA;AAEA;;AAEG;MAEU,yBAAyB,CAAA;;IAKpC,MAAM,KAAK,CACT,KAA6C,E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AAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,cADZ,MAAM,EAAA,CAAA,CAAA;;2FACnB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-list-gender-options.query-BA6Bwv66.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-gender-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListGenderOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListGenderOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `gender-options` registry data source. */\nconst GENDER_OPTIONS: AXMListGenderOptionsQueryItem[] = [\n { value: 'female', title: '@questionnaire:datasources.gender-options.samples.female' },\n { value: 'male', title: '@questionnaire:datasources.gender-options.samples.male' },\n { value: 'non-binary', title: '@questionnaire:datasources.gender-options.samples.non-binary' },\n {\n value: 'prefer-not-to-say',\n title: '@questionnaire:datasources.gender-options.samples.prefer-not-to-say',\n },\n { value: 'other', title: '@questionnaire:datasources.gender-options.samples.other' },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static gender catalog — replaces the `gender-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListGenderOptionsQuery\n implements AXPCollectionQuery<AXMListGenderOptionsQueryInput, AXMListGenderOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListGenderOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListGenderOptionsQueryItem> {\n try {\n let items = [...GENDER_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,cAAc,GAAoC;AACtD,IAAA,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,0DAA0D,EAAE;AACtF,IAAA,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,wDAAwD,EAAE;AAClF,IAAA,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,8DAA8D,EAAE;AAC9F,IAAA;AACE,QAAA,KAAK,EAAE,mBAAmB;AAC1B,QAAA,KAAK,EAAE,qEAAqE;AAC7E,KAAA;AACD,IAAA,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,yDAAyD,EAAE;CACrF;AAED;AAEA;AAEA;;AAEG;MAEU,yBAAyB,CAAA;;IAKpC,MAAM,KAAK,CACT,KAA6C,EAAA;AAE7C,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,GAAG,cAAc,CAAC;AAE/B,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG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nB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-nps-scale-options.query-C8Pbp0Ow.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-nps-scale-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListNpsScaleOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListNpsScaleOptionsQueryItem {\n /** Stored numeric NPS score: 0–10. */\n value: number;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `nps-scale-options` registry data source. */\nconst NPS_SCALE_OPTIONS: AXMListNpsScaleOptionsQueryItem[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(\n (n) => ({\n value: n,\n title: `@questionnaire:datasources.nps-scale-options.samples.${n}`,\n }),\n);\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static NPS 0–10 catalog — replaces the `nps-scale-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListNpsScaleOptionsQuery\n implements AXPCollectionQuery<AXMListNpsScaleOptionsQueryInput, AXMListNpsScaleOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListNpsScaleOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListNpsScaleOptionsQueryItem> {\n try {\n let items = [...NPS_SCALE_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,iBAAiB,GAAsC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CACjG,CAAC,CAAC,MAAM;AACN,IAAA,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAA,qDAAA,EAAwD,CAAC,CAAA,CAAE;AACnE,CAAA,CAAC,CACH;AAED;AAEA;AAEA;;AAEG;MAEU,2BAA2B,CAAA;;IAKtC,MAAM,KAAK,CACT,KAA+C,EAAA;AAE/C,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,GAAG,iBAAiB,CAAC;AAElC,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE;YACzF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,OAAgB,EAAE,GAAG,EAAE,KAAc,EAAE,CAAC;AACjG,YAAA,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC;YAEtC,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;YAC/C,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;AAC/C,YAAA,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM;AAC1B,YAAA,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cADd,MAAM,EAAA,CAAA,CAAA;;2FACnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBADvC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-list-nps-scale-options.query-C8Pbp0Ow.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-nps-scale-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListNpsScaleOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListNpsScaleOptionsQueryItem {\n /** Stored numeric NPS score: 0–10. */\n value: number;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `nps-scale-options` registry data source. */\nconst NPS_SCALE_OPTIONS: AXMListNpsScaleOptionsQueryItem[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(\n (n) => ({\n value: n,\n title: `@questionnaire:datasources.nps-scale-options.samples.${n}`,\n }),\n);\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static NPS 0–10 catalog — replaces the `nps-scale-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListNpsScaleOptionsQuery\n implements AXPCollectionQuery<AXMListNpsScaleOptionsQueryInput, AXMListNpsScaleOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListNpsScaleOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListNpsScaleOptionsQueryItem> {\n try {\n let items = [...NPS_SCALE_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,iBAAiB,GAAsC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CACjG,CAAC,CAAC,MAAM;AACN,IAAA,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAA,qDAAA,EAAwD,CAAC,CAAA,CAAE;AACnE,CAAA,CAAC,CACH;AAED;AAEA;AAEA;;AAEG;MAEU,2BAA2B,CAAA;;IAKtC,MAAM,KAAK,CACT,KAA+C,EAAA;AAE/C,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,GAAG,iBAAiB,CAAC;AAElC,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE;YACzF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,OAAgB,EAAE,GAAG,EAAE,KAAc,EAAE,CAAC;AACjG,YAAA,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC;YAEtC,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;YAC/C,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;AAC/C,YAAA,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM;AAC1B,YAAA,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cADd,MAAM,EAAA,CAAA,CAAA;;2FACnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBADvC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-priority-options.query-GCuv4lU3.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-priority-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListPriorityOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListPriorityOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `priority-options` registry data source. */\nconst PRIORITY_OPTIONS: AXMListPriorityOptionsQueryItem[] = [\n { value: 'low', title: '@questionnaire:datasources.priority-options.samples.low' },\n { value: 'medium', title: '@questionnaire:datasources.priority-options.samples.medium' },\n { value: 'high', title: '@questionnaire:datasources.priority-options.samples.high' },\n { value: 'critical', title: '@questionnaire:datasources.priority-options.samples.critical' },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static priority catalog — replaces the `priority-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListPriorityOptionsQuery\n implements AXPCollectionQuery<AXMListPriorityOptionsQueryInput, AXMListPriorityOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListPriorityOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListPriorityOptionsQueryItem> {\n try {\n let items = [...PRIORITY_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,gBAAgB,GAAsC;AAC1D,IAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,yDAAyD,EAAE;AAClF,IAAA,EAAE,KAAK,EAAE,QAAQ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,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cADd,MAAM,EAAA,CAAA,CAAA;;2FACnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBADvC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-list-priority-options.query-GCuv4lU3.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-priority-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListPriorityOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListPriorityOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `priority-options` registry data source. */\nconst PRIORITY_OPTIONS: AXMListPriorityOptionsQueryItem[] = [\n { value: 'low', title: '@questionnaire:datasources.priority-options.samples.low' },\n { value: 'medium', title: '@questionnaire:datasources.priority-options.samples.medium' },\n { value: 'high', title: '@questionnaire:datasources.priority-options.samples.high' },\n { value: 'critical', title: '@questionnaire:datasources.priority-options.samples.critical' },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static priority catalog — replaces the `priority-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListPriorityOptionsQuery\n implements AXPCollectionQuery<AXMListPriorityOptionsQueryInput, AXMListPriorityOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListPriorityOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListPriorityOptionsQueryItem> {\n try {\n let items = [...PRIORITY_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,gBAAgB,GAAsC;AAC1D,IAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,yDAAyD,EAAE;AAClF,IAAA,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,4DAA4D,EAAE;AACxF,IAAA,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,0DAA0D,EAAE;AACpF,IAAA,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,8DAA8D,EAAE;CAC7F;AAED;AAEA;AAEA;;AAEG;MAEU,2BAA2B,CAAA;;IAKtC,MAAM,KAAK,CACT,KAA+C,EAAA;AAE/C,QAAA,IAA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AA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cADd,MAAM,EAAA,CAAA,CAAA;;2FACnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBADvC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-rating-1-10-options.query-BYBU_yzv.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-rating-1-10-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListRating1To10OptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListRating1To10OptionsQueryItem {\n /** Stored numeric rating: 1–10. */\n value: number;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `rating-1-10-options` registry data source. */\nconst RATING_1_TO_10_OPTIONS: AXMListRating1To10OptionsQueryItem[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(\n (n) => ({\n value: n,\n title: `@questionnaire:datasources.rating-1-10-options.samples.${n}`,\n }),\n);\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static 1–10 rating catalog — replaces the `rating-1-10-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListRating1To10OptionsQuery\n implements AXPCollectionQuery<AXMListRating1To10OptionsQueryInput, AXMListRating1To10OptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListRating1To10OptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListRating1To10OptionsQueryItem> {\n try {\n let items = [...RATING_1_TO_10_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,sBAAsB,GAAyC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CACtG,CAAC,CAAC,MAAM;AACN,IAAA,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAA,uDAAA,EAA0D,CAAC,CAAA,CAAE;AACrE,CAAA,CAAC,CACH;AAED;AAEA;AAEA;;AAEG;MAEU,8BAA8B,CAAA;;IAKzC,MAAM,KAAK,CACT,KAAkD,EAAA;AAElD,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,GAAG,sBAAsB,CAAC;AAEvC,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KA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-management/client/src/lib/features/queries/list-rating-1-10-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListRating1To10OptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListRating1To10OptionsQueryItem {\n /** Stored numeric rating: 1–10. */\n value: number;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `rating-1-10-options` registry data source. */\nconst RATING_1_TO_10_OPTIONS: AXMListRating1To10OptionsQueryItem[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(\n (n) => ({\n value: n,\n title: `@questionnaire:datasources.rating-1-10-options.samples.${n}`,\n }),\n);\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static 1–10 rating catalog — replaces the `rating-1-10-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListRating1To10OptionsQuery\n implements AXPCollectionQuery<AXMListRating1To10OptionsQueryInput, AXMListRating1To10OptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListRating1To10OptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListRating1To10OptionsQueryItem> {\n try {\n let items = [...RATING_1_TO_10_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,sBAAsB,GAAyC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CACtG,CAAC,CAAC,MAAM;AACN,IAAA,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAA,uDAAA,EAA0D,CAAC,CAAA,CAAE;AACrE,CAAA,CAAC,CACH;AAED;AAEA;AAEA;;AAEG;MAEU,8BAA8B,CAAA;;IAKzC,MAAM,KAAK,CACT,KAAkD,EAAA;AAElD,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,GAAG,sBAAsB,CAAC;AAEvC,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE;YACzF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,OAAgB,EAAE,GAAG,EAAE,KAAc,EAAE,CAAC;AACjG,YAAA,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC;YAEtC,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;YAC/C,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;AAC/C,YAAA,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM;AAC1B,YAAA,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,8BAA8B,cADjB,MAAM,EAAA,CAAA,CAAA;;2FACnB,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAD1C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-rating-scale-options.query-H-jWx7_1.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-rating-scale-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListRatingScaleOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListRatingScaleOptionsQueryItem {\n /** Stored numeric rating: 1–5. */\n value: number;\n /** Display title (i18n key). */\n title: string;\n /** Longer scale-point description (i18n key). */\n description: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `rating-scale-options` registry data source. */\nconst RATING_SCALE_OPTIONS: AXMListRatingScaleOptionsQueryItem[] = [\n {\n value: 1,\n title: '@questionnaire:datasources.rating-scale-options.samples.1',\n description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.1',\n },\n {\n value: 2,\n title: '@questionnaire:datasources.rating-scale-options.samples.2',\n description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.2',\n },\n {\n value: 3,\n title: '@questionnaire:datasources.rating-scale-options.samples.3',\n description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.3',\n },\n {\n value: 4,\n title: '@questionnaire:datasources.rating-scale-options.samples.4',\n description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.4',\n },\n {\n value: 5,\n title: '@questionnaire:datasources.rating-scale-options.samples.5',\n description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.5',\n },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static 1–5 Likert rating catalog — replaces the `rating-scale-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListRatingScaleOptionsQuery\n implements AXPCollectionQuery<AXMListRatingScaleOptionsQueryInput, AXMListRatingScaleOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListRatingScaleOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListRatingScaleOptionsQueryItem> {\n try {\n let items = [...RATING_SCALE_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA4BA;AAEA;AAEA;AACA,MAAM,oBAAoB,GAAyC;AACjE,IAAA;AACE,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,KAAK,EAAE,2DAA2D;AAClE,QAAA,WAAW,EAAE,wEAAwE;AACtF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,KAAK,EAAE,2DAA2D;AAClE,QAAA,WAAW,EAAE,wEAAwE;AACtF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,KAAK,EAAE,2DAA2D;AAClE,QAAA,WAAW,EAAE,wEAAwE;AACtF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,KAAK,EAAE,2DAA2D;AAClE,QAAA,WAAW,EAAE,wEAAwE;AACtF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,KAAK,EAAE,2DAA2D;AAClE,QAAA,WAAW,EAAE,wEAAwE;AACtF,KAAA;CACF;AAED;AAEA;AAEA;;AAEG;MAEU,8BAA8B,CAAA;;IAKzC,MAAM,KAAK,CACT,KAAkD,EAAA;AAElD,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,GAAG,oBAAoB,CAAC;AAErC,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA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,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-list-rating-scale-options.query-H-jWx7_1.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-rating-scale-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListRatingScaleOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListRatingScaleOptionsQueryItem {\n /** Stored numeric rating: 1–5. */\n value: number;\n /** Display title (i18n key). */\n title: string;\n /** Longer scale-point description (i18n key). */\n description: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `rating-scale-options` registry data source. */\nconst RATING_SCALE_OPTIONS: AXMListRatingScaleOptionsQueryItem[] = [\n {\n value: 1,\n title: '@questionnaire:datasources.rating-scale-options.samples.1',\n description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.1',\n },\n {\n value: 2,\n title: '@questionnaire:datasources.rating-scale-options.samples.2',\n description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.2',\n },\n {\n value: 3,\n title: '@questionnaire:datasources.rating-scale-options.samples.3',\n description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.3',\n },\n {\n value: 4,\n title: '@questionnaire:datasources.rating-scale-options.samples.4',\n description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.4',\n },\n {\n value: 5,\n title: '@questionnaire:datasources.rating-scale-options.samples.5',\n description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.5',\n },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static 1–5 Likert rating catalog — replaces the `rating-scale-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListRatingScaleOptionsQuery\n implements AXPCollectionQuery<AXMListRatingScaleOptionsQueryInput, AXMListRatingScaleOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListRatingScaleOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListRatingScaleOptionsQueryItem> {\n try {\n let items = [...RATING_SCALE_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA4BA;AAEA;AAEA;AACA,MAAM,oBAAoB,GAAyC;AACjE,IAAA;AACE,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,KAAK,EAAE,2DAA2D;AAClE,QAAA,WAAW,EAAE,wEAAwE;AACtF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,KAAK,EAAE,2DAA2D;AAClE,QAAA,WAAW,EAAE,wEAAwE;AACtF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,KAAK,EAAE,2DAA2D;AAClE,QAAA,WAAW,EAAE,wEAAwE;AACtF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,KAAK,EAAE,2DAA2D;AAClE,QAAA,WAAW,EAAE,wEAAwE;AACtF,KAAA;AACD,IAAA;AACE,QAAA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H;IACF;8GA9BW,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,8BAA8B,cADjB,MAAM,EAAA,CAAA,CAAA;;2FACnB,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAD1C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-satisfaction-options.query-BIDjWNP5.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-satisfaction-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListSatisfactionOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListSatisfactionOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `satisfaction-options` registry data source. */\nconst SATISFACTION_OPTIONS: AXMListSatisfactionOptionsQueryItem[] = [\n {\n value: 'very-dissatisfied',\n title: '@questionnaire:datasources.satisfaction-options.samples.very-dissatisfied',\n },\n {\n value: 'dissatisfied',\n title: '@questionnaire:datasources.satisfaction-options.samples.dissatisfied',\n },\n {\n value: 'neutral',\n title: '@questionnaire:datasources.satisfaction-options.samples.neutral',\n },\n {\n value: 'satisfied',\n title: '@questionnaire:datasources.satisfaction-options.samples.satisfied',\n },\n {\n value: 'very-satisfied',\n title: '@questionnaire:datasources.satisfaction-options.samples.very-satisfied',\n },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static satisfaction catalog — replaces the `satisfaction-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListSatisfactionOptionsQuery\n implements AXPCollectionQuery<AXMListSatisfactionOptionsQueryInput, AXMListSatisfactionOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListSatisfactionOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListSatisfactionOptionsQueryItem> {\n try {\n let items = [...SATISFACTION_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,oBAAoB,GAA0C;AAClE,IAAA;AACE,QAAA,KAAK,EAAE,mBAAmB;AAC1B,QAAA,KAAK,EAAE,2EAA2E;AACnF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,cAAc;AACrB,QAAA,KAAK,EAAE,sEAAsE;AAC9E,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,KAAK,EAAE,iEAAiE;AACzE,KAAA;AACD,IAAA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xB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,cADlB,MAAM,EAAA,CAAA,CAAA;;2FACnB,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAD3C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-list-satisfaction-options.query-BIDjWNP5.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-satisfaction-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListSatisfactionOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListSatisfactionOptionsQueryItem {\n /** Stored choice code. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `satisfaction-options` registry data source. */\nconst SATISFACTION_OPTIONS: AXMListSatisfactionOptionsQueryItem[] = [\n {\n value: 'very-dissatisfied',\n title: '@questionnaire:datasources.satisfaction-options.samples.very-dissatisfied',\n },\n {\n value: 'dissatisfied',\n title: '@questionnaire:datasources.satisfaction-options.samples.dissatisfied',\n },\n {\n value: 'neutral',\n title: '@questionnaire:datasources.satisfaction-options.samples.neutral',\n },\n {\n value: 'satisfied',\n title: '@questionnaire:datasources.satisfaction-options.samples.satisfied',\n },\n {\n value: 'very-satisfied',\n title: '@questionnaire:datasources.satisfaction-options.samples.very-satisfied',\n },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static satisfaction catalog — replaces the `satisfaction-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListSatisfactionOptionsQuery\n implements AXPCollectionQuery<AXMListSatisfactionOptionsQueryInput, AXMListSatisfactionOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListSatisfactionOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListSatisfactionOptionsQueryItem> {\n try {\n let items = [...SATISFACTION_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,oBAAoB,GAA0C;AAClE,IAAA;AACE,QAAA,KAAK,EAAE,mBAAmB;AAC1B,QAAA,KAAK,EAAE,2EAA2E;AACnF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,cAAc;AACrB,QAAA,KAAK,EAAE,sEAAsE;AAC9E,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,SA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AC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,cADlB,MAAM,EAAA,CAAA,CAAA;;2FACnB,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAD3C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-yes-no-maybe-options.query-C90RnQ5A.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-yes-no-maybe-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListYesNoMaybeOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListYesNoMaybeOptionsQueryItem {\n /** Stored choice code: `yes` | `no` | `maybe`. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `yes-no-maybe-options` registry data source. */\nconst YES_NO_MAYBE_OPTIONS: AXMListYesNoMaybeOptionsQueryItem[] = [\n { value: 'yes', title: '@questionnaire:datasources.yes-no-maybe-options.samples.yes' },\n { value: 'no', title: '@questionnaire:datasources.yes-no-maybe-options.samples.no' },\n { value: 'maybe', title: '@questionnaire:datasources.yes-no-maybe-options.samples.maybe' },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static Yes / No / Maybe choice catalog — replaces the `yes-no-maybe-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListYesNoMaybeOptionsQuery\n implements AXPCollectionQuery<AXMListYesNoMaybeOptionsQueryInput, AXMListYesNoMaybeOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListYesNoMaybeOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListYesNoMaybeOptionsQueryItem> {\n try {\n let items = [...YES_NO_MAYBE_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,oBAAoB,GAAwC;AAChE,IAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,6DAA6D,EAAE;AACtF,IAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,4DAA4D,EAAE;AACpF,IAAA,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,+DAA+D,EAAE;CAC3F;AAED;AAEA;AAEA;;A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7B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,cADhB,MAAM,EAAA,CAAA,CAAA;;2FACnB,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBADzC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-list-yes-no-maybe-options.query-C90RnQ5A.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-yes-no-maybe-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListYesNoMaybeOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListYesNoMaybeOptionsQueryItem {\n /** Stored choice code: `yes` | `no` | `maybe`. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `yes-no-maybe-options` registry data source. */\nconst YES_NO_MAYBE_OPTIONS: AXMListYesNoMaybeOptionsQueryItem[] = [\n { value: 'yes', title: '@questionnaire:datasources.yes-no-maybe-options.samples.yes' },\n { value: 'no', title: '@questionnaire:datasources.yes-no-maybe-options.samples.no' },\n { value: 'maybe', title: '@questionnaire:datasources.yes-no-maybe-options.samples.maybe' },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static Yes / No / Maybe choice catalog — replaces the `yes-no-maybe-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListYesNoMaybeOptionsQuery\n implements AXPCollectionQuery<AXMListYesNoMaybeOptionsQueryInput, AXMListYesNoMaybeOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListYesNoMaybeOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListYesNoMaybeOptionsQueryItem> {\n try {\n let items = [...YES_NO_MAYBE_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,oBAAoB,GAAwC;AAChE,IAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,6DAA6D,EAAE;AACtF,IAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,4DAA4D,EAAE;AACpF,IAAA,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,+DAA+D,EAAE;CAC3F;AAED;AAEA;AAEA;;AAEG;MAEU,6BAA6B,CAAA;;IAKxC,MAAM,KAAK,CACT,KAAiD,EAAA;AAEjD,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,GAAG,oBAAoB,CAAC;AAErC,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,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AAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-yes-no-na-options.query-tz9dR33P.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-yes-no-na-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListYesNoNaOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListYesNoNaOptionsQueryItem {\n /** Stored choice code: `yes` | `no` | `not-applicable`. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `yes-no-na-options` registry data source. */\nconst YES_NO_NA_OPTIONS: AXMListYesNoNaOptionsQueryItem[] = [\n { value: 'yes', title: '@questionnaire:datasources.yes-no-na-options.samples.yes' },\n { value: 'no', title: '@questionnaire:datasources.yes-no-na-options.samples.no' },\n {\n value: 'not-applicable',\n title: '@questionnaire:datasources.yes-no-na-options.samples.not-applicable',\n },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static Yes / No / N/A choice catalog — replaces the `yes-no-na-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListYesNoNaOptionsQuery\n implements AXPCollectionQuery<AXMListYesNoNaOptionsQueryInput, AXMListYesNoNaOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListYesNoNaOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListYesNoNaOptionsQueryItem> {\n try {\n let items = [...YES_NO_NA_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,iBAAiB,GAAqC;AAC1D,IAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,0DAA0D,EAAE;AACnF,IAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,yDAAyD,EAAE;AACjF,IAAA;AACE,QAAA,KAAK,EAAE,gBAAgB;AACvB,QAAA,KAAK,EAAE,qEAAqE;AAC7E,KAAA;CACF;AAED;AAEA;AAEA;;AAEG;MAEU,0BAA0B,CAAA;;IAKrC,MAAM,KAAK,CACT,KAA8C,EAAA;AAE9C,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,GAAG,iBAAiB,CAAC;AAElC,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE;YACzF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,OAAgB,EAAE,GAAG,EAAE,KAAc,EAAE,CAAC;AACjG,YAAA,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC;YAEtC,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;YAC/C,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;AAC/C,YAAA,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM;AAC1B,YAAA,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,cADb,MAAM,EAAA,CAAA,CAAA;;2FACnB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-list-yes-no-na-options.query-tz9dR33P.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-yes-no-na-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListYesNoNaOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListYesNoNaOptionsQueryItem {\n /** Stored choice code: `yes` | `no` | `not-applicable`. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `yes-no-na-options` registry data source. */\nconst YES_NO_NA_OPTIONS: AXMListYesNoNaOptionsQueryItem[] = [\n { value: 'yes', title: '@questionnaire:datasources.yes-no-na-options.samples.yes' },\n { value: 'no', title: '@questionnaire:datasources.yes-no-na-options.samples.no' },\n {\n value: 'not-applicable',\n title: '@questionnaire:datasources.yes-no-na-options.samples.not-applicable',\n },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static Yes / No / N/A choice catalog — replaces the `yes-no-na-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListYesNoNaOptionsQuery\n implements AXPCollectionQuery<AXMListYesNoNaOptionsQueryInput, AXMListYesNoNaOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListYesNoNaOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListYesNoNaOptionsQueryItem> {\n try {\n let items = [...YES_NO_NA_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,iBAAiB,GAAqC;AAC1D,IAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,0DAA0D,EAAE;AACnF,IAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,yDAAyD,EAAE;AACjF,IAAA;AACE,QAAA,KAAK,EAAE,gBAAgB;AACvB,QAAA,KAAK,EAAE,qEAAqE;AAC7E,KAAA;CACF;AAED;AAEA;AAEA;;AAEG;MAEU,0BAA0B,CAAA;;IAKrC,MAAM,KAAK,CACT,KAA8C,EAAA;AAE9C,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,GAAG,iBAAiB,CAAC;AAElC,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE;YACzF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,OAAgB,EAAE,GAAG,EAAE,KAAc,EAAE,CAAC;AACjG,YAAA,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC;YAEtC,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;YAC/C,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;AAC/C,YAAA,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM;AAC1B,YAAA,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,cADb,MAAM,EAAA,CAAA,CAAA;;2FACnB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-list-yes-no-options.query-w2mqJJNZ.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-yes-no-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListYesNoOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListYesNoOptionsQueryItem {\n /** Stored choice code: `yes` | `no`. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `yes-no-options` registry data source. */\nconst YES_NO_OPTIONS: AXMListYesNoOptionsQueryItem[] = [\n { value: 'yes', title: '@questionnaire:datasources.yes-no-options.samples.yes' },\n { value: 'no', title: '@questionnaire:datasources.yes-no-options.samples.no' },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static Yes / No choice catalog — replaces the `yes-no-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListYesNoOptionsQuery\n implements AXPCollectionQuery<AXMListYesNoOptionsQueryInput, AXMListYesNoOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListYesNoOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListYesNoOptionsQueryItem> {\n try {\n let items = [...YES_NO_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,cAAc,GAAmC;AACrD,IAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,uDAAuD,EAAE;AAChF,IAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,sDAAsD,EAAE;CAC/E;AAED;AAEA;AAEA;;AAEG;MAEU,wBAA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AAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,cADX,MAAM,EAAA,CAAA,CAAA;;2FACnB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-list-yes-no-options.query-w2mqJJNZ.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/features/queries/list-yes-no-options.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\n\nimport { Injectable } from '@angular/core';\n\n//#region ---- Types ----\n\nexport type AXMListYesNoOptionsQueryInput = AXPCollectionQueryInput;\n\nexport interface AXMListYesNoOptionsQueryItem {\n /** Stored choice code: `yes` | `no`. */\n value: string;\n /** Display title (i18n key). */\n title: string;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Same rows as the former `yes-no-options` registry data source. */\nconst YES_NO_OPTIONS: AXMListYesNoOptionsQueryItem[] = [\n { value: 'yes', title: '@questionnaire:datasources.yes-no-options.samples.yes' },\n { value: 'no', title: '@questionnaire:datasources.yes-no-options.samples.no' },\n];\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Static Yes / No choice catalog — replaces the `yes-no-options` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListYesNoOptionsQuery\n implements AXPCollectionQuery<AXMListYesNoOptionsQueryInput, AXMListYesNoOptionsQueryItem>\n{\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListYesNoOptionsQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListYesNoOptionsQueryItem> {\n try {\n let items = [...YES_NO_OPTIONS];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'value' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;AA0BA;AAEA;AAEA;AACA,MAAM,cAAc,GAAmC;AACrD,IAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,uDAAuD,EAAE;AAChF,IAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,sDAAsD,EAAE;CAC/E;AAED;AAEA;AAEA;;AAEG;MAEU,wBAAwB,CAAA;;IAKnC,MAAM,KAAK,CACT,KAA4C,EAAA;AAE5C,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,GAAG,cAAc,CAAC;AAE/B,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE;YACzF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,OAAgB,EAAE,GAAG,EAAE,KAAc,EAAE,CAAC;AACjG,YAAA,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC;YAEtC,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;YAC/C,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;AAC/C,YAAA,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM;AAC1B,YAAA,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GA9BW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,cADX,MAAM,EAAA,CAAA,CAAA;;2FACnB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-data-management-client-local-entities.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/provide-local-entities.ts","../../../../libs/modules/data-management/client/src/lib/acorex-platform-module-data-management-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-data-management-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers data-management layouts on the client from packaged factories.\n * Each `import()` targets a secondary entry so unused entities stay out of the\n * bundle. Do not add this to the demo app; demo continues to load layouts via\n * `Domain:GetEntityLayout`.\n */\nexport function provideDataManagementLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.dataSource.name]: () =>\n import('@acorex-platform/module-data-management-client/contracts/entities/data-source').then((m) => m.dataSourceEntityFactory()),\n [RootConfig.entities.metaDataDefinition.name]: () =>\n import('@acorex-platform/module-data-management-client/contracts/entities/meta-data-definition').then((m) => m.metaDataDefinitionFactory()),\n [RootConfig.entities.tag.name]: () =>\n import('@acorex-platform/module-data-management-client/contracts/entities/tag').then((m) => m.factoryTag()),\n },\n });\n}\n\nexport { dataManagementLocalEntityCatalog } from '@acorex-platform/module-data-management-client/contracts/entity-catalog';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './provide-local-entities';\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;;;AAKG;SACa,kCAAkC,GAAA;AAChD,IAAA,OAAO,yBAAyB,CAAC;AAC/B,QAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,QAAA,OAAO,EAAE;AACP,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,GAAG,MACrC,OAAO,+EAA+E,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,CAAC;AAClI,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,GAAG,MAC7C,OAAO,wFAAwF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,EAAE,CAAC;AAC7I,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,GAAG,MAC9B,OAAO,uEAAuE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;AAC9G,SAAA;AACF,KAAA,CAAC;AACJ;AAIA;;AC/BA;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-data-management-client-local-entities.mjs","sources":["../../../../libs/modules/data-management/client/src/lib/provide-local-entities.ts","../../../../libs/modules/data-management/client/src/lib/acorex-platform-module-data-management-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-data-management-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers data-management layouts on the client from packaged factories.\n * Each `import()` targets a secondary entry so unused entities stay out of the\n * bundle. Do not add this to the demo app; demo continues to load layouts via\n * `Domain:GetEntityLayout`.\n */\nexport function provideDataManagementLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.dataSource.name]: () =>\n import('@acorex-platform/module-data-management-client/contracts/entities/data-source').then((m) => m.dataSourceEntityFactory()),\n [RootConfig.entities.metaDataDefinition.name]: () =>\n import('@acorex-platform/module-data-management-client/contracts/entities/meta-data-definition').then((m) => m.metaDataDefinitionFactory()),\n [RootConfig.entities.tag.name]: () =>\n import('@acorex-platform/module-data-management-client/contracts/entities/tag').then((m) => m.factoryTag()),\n },\n });\n}\n\nexport { dataManagementLocalEntityCatalog } from '@acorex-platform/module-data-management-client/contracts/entity-catalog';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './provide-local-entities';\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;;;AAKG;SACa,kCAAkC,GAAA;AAChD,IAAA,OAAO,yBAAyB,CAAC;AAC/B,QAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,QAAA,OAAO,EAAE;AACP,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,GAAG,MACrC,OAAO,+EAA+E,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,CAAC;AAClI,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,GAAG,MAC7C,OAAO,wFAAwF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,EAAE,CAAC;AAC7I,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,GAAG,MAC9B,OAAO,uEAAuE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;AAC9G,SAAA;AACF,KAAA,CAAC;AACJ;AAIA;;AC/BA;;AAEG;;"}