@cratis/components 4.48.1 → 4.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CONFORMANCE.md +1 -1
  2. package/compat-manifest.json +13 -13
  3. package/dist/esm/CommandForm/fields/NumberField.d.ts.map +1 -1
  4. package/dist/esm/CommandForm/fields/NumberField.js +13 -5
  5. package/dist/esm/CommandForm/fields/NumberField.js.map +1 -1
  6. package/dist/esm/Common/NumericInput.d.ts +27 -0
  7. package/dist/esm/Common/NumericInput.d.ts.map +1 -0
  8. package/dist/esm/Common/NumericInput.js +17 -0
  9. package/dist/esm/Common/NumericInput.js.map +1 -0
  10. package/dist/esm/Common/NumericInputImplementation.d.ts +4 -0
  11. package/dist/esm/Common/NumericInputImplementation.d.ts.map +1 -0
  12. package/dist/esm/Common/NumericInputImplementation.js +30 -0
  13. package/dist/esm/Common/NumericInputImplementation.js.map +1 -0
  14. package/dist/esm/Common/index.d.ts +1 -0
  15. package/dist/esm/Common/index.d.ts.map +1 -1
  16. package/dist/esm/Common/index.js +1 -0
  17. package/dist/esm/Common/index.js.map +1 -1
  18. package/dist/esm/renderer/builtin/index.d.ts.map +1 -1
  19. package/dist/esm/renderer/builtin/index.js +1 -0
  20. package/dist/esm/renderer/builtin/index.js.map +1 -1
  21. package/dist/esm/renderer/coreSlots.d.ts +5 -0
  22. package/dist/esm/renderer/coreSlots.d.ts.map +1 -1
  23. package/dist/esm/renderer/coreSlots.js +2 -0
  24. package/dist/esm/renderer/coreSlots.js.map +1 -1
  25. package/dist/esm/renderer/index.d.ts +3 -0
  26. package/dist/esm/renderer/index.d.ts.map +1 -1
  27. package/dist/esm/renderer/presentation.d.ts +9 -1
  28. package/dist/esm/renderer/presentation.d.ts.map +1 -1
  29. package/dist/esm/renderer/presentation.js +1 -0
  30. package/dist/esm/renderer/presentation.js.map +1 -1
  31. package/dist/esm/renderer/resolve.d.ts.map +1 -1
  32. package/dist/esm/renderer/resolve.js +1 -0
  33. package/dist/esm/renderer/resolve.js.map +1 -1
  34. package/dist/esm/types/parts.d.ts +4 -0
  35. package/dist/esm/types/parts.d.ts.map +1 -1
  36. package/dist/esm/types/parts.js +4 -0
  37. package/dist/esm/types/parts.js.map +1 -1
  38. package/package.json +5 -3
@@ -1 +1 @@
1
- {"version":3,"file":"presentation.js","sources":["../../../renderer/presentation.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { ComponentType } from 'react';\nimport type { ButtonProps } from '../Common/Button';\nimport type { CheckboxProps } from '../Common/Checkbox';\nimport type { DatePickerInputProps } from '../Common/DatePickerInput';\nimport type { IconButtonProps } from '../Common/IconButton';\nimport type { RadioProps } from '../Common/Radio';\nimport type { SurfaceProps } from '../Common/Surface';\nimport type { SwitchProps } from '../Common/Switch';\nimport type { TextAreaProps } from '../Common/TextArea';\nimport type { TextInputProps } from '../Common/TextInput';\nimport type { TooltipProps } from '../Common/Tooltip';\nimport type { TablePaginatorProps } from '../DataTables/TablePaginator';\nimport type { CratisDialogSlotProps } from '../Dialogs/DialogHost';\nimport type { DropdownProps } from '../Dropdown/Dropdown';\nimport type { ProgressBarProps } from '../Display/ProgressBar';\nimport type { CratisPresentationUiLibraryProviderProps } from './manifest';\nimport type { unstable_SlotMap } from './slots';\n\n/** Stable renderer profile implemented by certified presentation adapters. */\nexport const CRATIS_PRESENTATION_PROFILE = 'stable-presentation/v1' as const;\n\n/** Renderer ABI major for the stable presentation profile. */\nexport const CRATIS_PRESENTATION_ABI_VERSION = 1 as const;\n\n/** Immutable, canonical slot order for the stable presentation profile. */\nexport const cratisPresentationSlotIds = Object.freeze([\n 'common.button',\n 'common.iconButton',\n 'common.textInput',\n 'common.textArea',\n 'common.checkbox',\n 'common.radio',\n 'common.switch',\n 'common.progress',\n 'common.surface',\n] as const);\n\n/** Identifier of one stable presentation slot. */\nexport type CratisPresentationSlotId = (typeof cratisPresentationSlotIds)[number];\n\n/** Exact public component prop and ref contracts covered by the stable presentation profile. */\nexport interface CratisPresentationSlots {\n /** Cratis button presentation contract, including native button refs and form behavior. */\n readonly 'common.button': ButtonProps;\n /** Accessible icon-only button contract with native button ownership. */\n readonly 'common.iconButton': IconButtonProps;\n /** Native text-input contract with semantic value-first change events. */\n readonly 'common.textInput': TextInputProps;\n /** Native multiline text-input contract with semantic value-first change events. */\n readonly 'common.textArea': TextAreaProps;\n /** Native checkbox contract with checked state, form participation, and input refs. */\n readonly 'common.checkbox': CheckboxProps;\n /** Native radio-option contract with selection state, form participation, and input refs. */\n readonly 'common.radio': RadioProps;\n /** Boolean switch contract preserving switch semantics and input ownership. */\n readonly 'common.switch': SwitchProps;\n /** Determinate or indeterminate progress presentation contract. */\n readonly 'common.progress': ProgressBarProps;\n /** Non-interactive semantic surface and native-element presentation contract. */\n readonly 'common.surface': SurfaceProps;\n}\n\n/** One stable, presentation-owned renderer slot declaration. */\nexport interface CratisPresentationSlotDeclaration<\n SlotId extends CratisPresentationSlotId,\n> {\n /** Stable presentation slots always preserve Components behavior ownership. */\n readonly mode: 'presentation';\n /** Unsupported declarations cannot claim the stable profile. */\n readonly fidelity: 'native' | 'emulated';\n /** Component implementing the slot's exact public props and ref contract. */\n readonly render: ComponentType<CratisPresentationSlots[SlotId]>;\n}\n\n/** Complete implementation table required by the stable presentation profile. */\nexport type CratisPresentationSlotMap = {\n readonly [\n SlotId in CratisPresentationSlotId\n ]: CratisPresentationSlotDeclaration<SlotId>;\n};\n\n/**\n * Immutable list of the atomic slots whose contracts are stable. A stable presentation library may\n * implement any of them through {@link CratisPresentationUiLibrary.atomicSlots}; new ids are only\n * ever appended.\n */\nexport const cratisAtomicSlotIds = Object.freeze([\n 'datatables.paginator',\n 'common.tooltip',\n 'dropdown.select',\n 'display.datePicker',\n 'dialogs.dialog',\n] as const);\n\n/** Identifier of one stable atomic slot. */\nexport type CratisAtomicSlotId = (typeof cratisAtomicSlotIds)[number];\n\n/** Exact public component prop contracts covered by the stable atomic slots. */\nexport interface CratisAtomicSlots {\n /**\n * Table paginator contract: zero-based `page`, `pageCount`, zero-based `onPageChange`, the\n * `TablePaginatorParts` parts and no ref.\n */\n readonly 'datatables.paginator': TablePaginatorProps;\n /**\n * Tooltip contract: non-interactive `content`, `position`, `disabled`, `className` and exactly\n * one focusable trigger child. The adapter keeps the trigger's `data-cratis-part` and renders\n * the popup as the `popup` part; there is no ref.\n */\n readonly 'common.tooltip': TooltipProps;\n /**\n * Select contract: the public `DropdownProps` with an untyped value, the `DropdownParts` parts\n * and no ref. The adapter owns the trigger, filter, listbox, keyboard and selection callbacks.\n */\n readonly 'dropdown.select': DropdownProps<unknown>;\n /**\n * Date picker contract: the public `DatePickerInputProps` with `Date | null` values, the\n * `DatePickerInputPassThrough` parts and no ref. Calendar library values stay inside the adapter.\n */\n readonly 'display.datePicker': DatePickerInputProps;\n /**\n * Dialog contract: the public `DialogProps` plus a `host` prop (`CratisDialogHost`). Components\n * keeps the dialog stack, the result flow, the footer and header actions, busy and validity,\n * initial focus and the descendants' overlay environment. The adapter owns the modal shell:\n * focus trap, Escape, outside press, scroll lock and focus restoration. There is no ref.\n */\n readonly 'dialogs.dialog': CratisDialogSlotProps;\n}\n\n/** One stable, adapter-owned atomic slot declaration. */\nexport interface CratisAtomicSlotDeclaration<SlotId extends CratisAtomicSlotId> {\n /** Stable atomic slots give the adapter ownership of the complete interaction. */\n readonly mode: 'atomic';\n /** Unsupported declarations are expressed by omitting the slot. */\n readonly fidelity: 'native' | 'emulated';\n /** Component implementing the slot's exact public props contract. */\n readonly render: ComponentType<CratisAtomicSlots[SlotId]>;\n}\n\n/** Optional atomic implementations. An omitted slot keeps the built-in Components implementation. */\nexport type CratisAtomicSlotMap = {\n readonly [SlotId in CratisAtomicSlotId]?: CratisAtomicSlotDeclaration<SlotId>;\n};\n\n/** Capabilities whose meaning is stable for the bounded presentation profile. */\nexport type CratisPresentationCapabilityId =\n | 'slot.render'\n | 'parts.passthrough'\n | 'ssr.staticRender'\n | 'rtl'\n | 'forcedColors'\n | 'motion.reduced';\n\ntype CratisPresentationOptionalCapabilityId = Exclude<\n CratisPresentationCapabilityId,\n 'slot.render' | 'parts.passthrough' | 'ssr.staticRender'\n>;\n\n/** Required presentation capabilities followed by optional stable evidence capabilities. */\nexport type CratisPresentationCapabilities = readonly [\n 'slot.render',\n 'parts.passthrough',\n 'ssr.staticRender',\n ...CratisPresentationOptionalCapabilityId[],\n];\n\n/** Immutable manifest for one implementation of the stable presentation profile. */\nexport interface CratisPresentationUiLibrary {\n /** Stable, package-local renderer identity used for diagnostics and telemetry. */\n readonly id: string;\n /** Human-readable renderer name. */\n readonly displayName: string;\n /** Stable presentation renderer ABI major. */\n readonly abi: typeof CRATIS_PRESENTATION_ABI_VERSION;\n /** The bounded profile is a primitive presentation adapter. */\n readonly level: 'primitive';\n /** Exact stable presentation profile identifier. */\n readonly profile: typeof CRATIS_PRESENTATION_PROFILE;\n /** Canonical immutable list of all nine stable slots. */\n readonly profileSlots: typeof cratisPresentationSlotIds;\n /** Required presentation capabilities followed by any optional stable capabilities. */\n readonly capabilities: CratisPresentationCapabilities;\n /** Complete nine-slot presentation implementation. */\n readonly slots: CratisPresentationSlotMap;\n /** Optional provider mounted once around the selected renderer scope. */\n readonly Provider?: ComponentType<CratisPresentationUiLibraryProviderProps>;\n /**\n * Optional adapter-owned implementations of stable atomic slots. Omitted slots resolve to the\n * built-in Components implementation.\n */\n readonly atomicSlots?: CratisAtomicSlotMap;\n}\n\nconst requiredCapabilityIds = [\n 'slot.render',\n 'parts.passthrough',\n 'ssr.staticRender',\n] as const;\n\nconst stableCapabilityIds = new Set<CratisPresentationCapabilityId>([\n ...requiredCapabilityIds,\n 'rtl',\n 'forcedColors',\n 'motion.reduced',\n]);\n\nconst invalidPresentationLibrary: (reason: string) => never = (reason) => {\n throw new TypeError(`Invalid stable presentation UI library: ${reason}.`);\n};\n\nconst hasCanonicalProfileSlots = (profileSlots: readonly unknown[]): boolean =>\n profileSlots.length === cratisPresentationSlotIds.length &&\n profileSlots.every((slotId, index) => slotId === cratisPresentationSlotIds[index]);\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n value !== null && typeof value === 'object' && !Array.isArray(value);\n\nconst isRendererIdentity = (id: unknown): boolean =>\n typeof id === 'string' &&\n id.length <= 128 &&\n /^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u.test(id);\n\nconst isDisplayName = (displayName: unknown): boolean =>\n typeof displayName === 'string' &&\n displayName.trim().length > 0 &&\n displayName.length <= 128;\n\nconst isComponent = (render: unknown): boolean =>\n render !== null && (typeof render === 'function' || typeof render === 'object');\n\nconst isStableFidelity = (fidelity: unknown): boolean =>\n fidelity === 'native' || fidelity === 'emulated';\n\nconst validateIdentity = (library: CratisPresentationUiLibrary) => {\n if (library === null || typeof library !== 'object') {\n invalidPresentationLibrary('manifest must be an object');\n }\n if (!isRendererIdentity(library.id)) {\n invalidPresentationLibrary('id must be a valid package-local renderer identity');\n }\n if (!isDisplayName(library.displayName)) {\n invalidPresentationLibrary(\n 'displayName must contain between 1 and 128 characters',\n );\n }\n if (library.Provider !== undefined && typeof library.Provider !== 'function') {\n invalidPresentationLibrary('Provider must be a React component when supplied');\n }\n};\n\nconst validateProfile = (library: CratisPresentationUiLibrary) => {\n if (library.profile !== CRATIS_PRESENTATION_PROFILE) {\n invalidPresentationLibrary(`profile must be '${CRATIS_PRESENTATION_PROFILE}'`);\n }\n if (library.abi !== CRATIS_PRESENTATION_ABI_VERSION) {\n invalidPresentationLibrary(`ABI must be ${CRATIS_PRESENTATION_ABI_VERSION}`);\n }\n if (library.level !== 'primitive') {\n invalidPresentationLibrary(\"level must be 'primitive'\");\n }\n if (\n !Array.isArray(library.profileSlots) ||\n !hasCanonicalProfileSlots(library.profileSlots)\n ) {\n invalidPresentationLibrary(\n 'profileSlots must be the canonical nine-slot profile',\n );\n }\n};\n\nconst declarationProblem = (\n declaration: Record<string, unknown>,\n label: string,\n mode: 'presentation' | 'atomic',\n): string | undefined => {\n if (declaration.mode !== mode) return `${label} must use ${mode} mode`;\n if (!isStableFidelity(declaration.fidelity)) {\n return `${label} must use native or emulated fidelity`;\n }\n if (!isComponent(declaration.render)) return `${label} must provide a component`;\n return undefined;\n};\n\nconst validateDeclaration = (\n declaration: Record<string, unknown>,\n label: string,\n mode: 'presentation' | 'atomic',\n) => {\n const problem = declarationProblem(declaration, label, mode);\n if (problem) invalidPresentationLibrary(problem);\n};\n\nconst validateSlots = (library: CratisPresentationUiLibrary) => {\n if (!library.slots || typeof library.slots !== 'object') {\n invalidPresentationLibrary('slots must be an object');\n }\n\n const slotIds = Object.keys(library.slots);\n if (\n slotIds.length !== cratisPresentationSlotIds.length ||\n cratisPresentationSlotIds.some((slotId) => !slotIds.includes(slotId))\n ) {\n invalidPresentationLibrary(\n 'slots must contain exactly the nine stable presentation slots',\n );\n }\n\n for (const slotId of cratisPresentationSlotIds) {\n // SAFETY: the canonical slot list indexes the complete stable map; the wider record view\n // exists only so runtime JavaScript callers can be checked before their value is frozen.\n const declaration = library.slots[slotId] as unknown as\n Record<string, unknown> | undefined;\n if (!declaration) {\n invalidPresentationLibrary(`slot '${slotId}' must provide a declaration`);\n }\n validateDeclaration(declaration, `slot '${slotId}'`, 'presentation');\n }\n};\n\nconst validateCapabilities = (library: CratisPresentationUiLibrary) => {\n if (\n !Array.isArray(library.capabilities) ||\n library.capabilities.some((capability) => !stableCapabilityIds.has(capability))\n ) {\n invalidPresentationLibrary(\n 'capabilities must stay within the stable presentation subset',\n );\n }\n if (\n requiredCapabilityIds.some(\n (capability, index) => library.capabilities[index] !== capability,\n )\n ) {\n invalidPresentationLibrary(\n 'capabilities must begin with slot.render, parts.passthrough, and ssr.staticRender',\n );\n }\n if (new Set(library.capabilities).size !== library.capabilities.length) {\n invalidPresentationLibrary('capabilities must not contain duplicates');\n }\n};\n\nconst isStableAtomicSlotId = (slotId: string): slotId is CratisAtomicSlotId =>\n (cratisAtomicSlotIds as readonly string[]).includes(slotId);\n\n/** One atomic slot entry inspected from a single own-enumerable snapshot of `atomicSlots`. */\ninterface AtomicSlotEntry {\n readonly slotId: string;\n /** Declaration read exactly once, or undefined for an explicitly omitted slot. */\n readonly declaration?: Readonly<Record<string, unknown>>;\n /** Why the entry cannot be used; undefined when it is valid. */\n readonly problem?: string;\n}\n\n/** Inspection of a library's `atomicSlots`: one problem for the map, or one result per own key. */\ninterface AtomicSlotInspection {\n readonly problem?: string;\n readonly entries: readonly AtomicSlotEntry[];\n}\n\nconst snapshotDeclaration = (declaration: Record<string, unknown>) => ({\n mode: declaration.mode,\n fidelity: declaration.fidelity,\n render: declaration.render,\n});\n\nconst inspectAtomicSlot = (slotId: string, value: unknown): AtomicSlotEntry => {\n const label = `atomic slot '${slotId}'`;\n if (!isStableAtomicSlotId(slotId)) {\n return { slotId, problem: `${label} is not a stable atomic slot` };\n }\n if (value === undefined) return { slotId };\n if (!isRecord(value)) return { slotId, problem: `${label} must provide a declaration` };\n\n const declaration = snapshotDeclaration(value);\n return { slotId, declaration, problem: declarationProblem(declaration, label, 'atomic') };\n};\n\nconst isPlainPrototype = (prototype: unknown): boolean =>\n prototype === null || prototype === Object.prototype;\n\n/**\n * Inspects `atomicSlots` through ONE snapshot of its own enumerable keys, reading each value\n * once. Inherited and non-enumerable declarations never take part in validation or resolution.\n */\nconst inspectAtomicSlots = (atomicSlots: unknown): AtomicSlotInspection => {\n if (atomicSlots === undefined) return { entries: [] };\n if (!isRecord(atomicSlots)) {\n return { problem: 'atomicSlots must be an object when supplied', entries: [] };\n }\n if (!isPlainPrototype(Object.getPrototypeOf(atomicSlots))) {\n return {\n problem: 'atomicSlots must be a plain object; inherited declarations are not allowed',\n entries: [],\n };\n }\n return {\n entries: Object.keys(atomicSlots).map((slotId) =>\n inspectAtomicSlot(slotId, atomicSlots[slotId]),\n ),\n };\n};\n\nconst isUsableAtomicSlot = (\n entry: AtomicSlotEntry,\n): entry is AtomicSlotEntry & { readonly declaration: Readonly<Record<string, unknown>> } =>\n entry.problem === undefined && entry.declaration !== undefined;\n\n/** Builds a frozen slot-id keyed map of the usable entries; keys are own data properties. */\nconst usableAtomicSlots = (entries: readonly AtomicSlotEntry[]): Readonly<Record<string, object>> =>\n Object.freeze(\n Object.fromEntries(\n entries\n .filter(isUsableAtomicSlot)\n .map(({ slotId, declaration }) => [slotId, Object.freeze(declaration)]),\n ),\n );\n\nconst frozenValidAtomicSlots = (atomicSlots: unknown): CratisAtomicSlotMap | undefined => {\n if (atomicSlots === undefined) return undefined;\n const inspection = inspectAtomicSlots(atomicSlots);\n const problem =\n inspection.problem ?? inspection.entries.find((entry) => entry.problem)?.problem;\n if (problem) invalidPresentationLibrary(problem);\n return usableAtomicSlots(inspection.entries) as CratisAtomicSlotMap;\n};\n\nconst freezeDeclaration = <\n Declaration extends {\n readonly mode: string;\n readonly fidelity: string;\n readonly render: unknown;\n },\n>(\n declaration: Declaration,\n): Declaration =>\n Object.freeze({\n mode: declaration.mode,\n fidelity: declaration.fidelity,\n render: declaration.render,\n }) as Declaration;\n\nconst freezePresentationSlots = (\n slots: CratisPresentationSlotMap,\n): CratisPresentationSlotMap =>\n Object.freeze(\n Object.fromEntries(\n cratisPresentationSlotIds.map((slotId) => [\n slotId,\n freezeDeclaration(slots[slotId]),\n ]),\n ),\n ) as CratisPresentationSlotMap;\n\n/**\n * Defines and freezes a complete implementation of the stable nine-slot presentation profile,\n * plus any optional stable atomic slots. Runtime validation protects JavaScript callers from\n * claiming a profile they do not implement.\n *\n * @param library Stable presentation library declaration.\n * @returns A defensive, deeply frozen manifest copy.\n */\nexport const definePresentationUiLibrary = (\n library: CratisPresentationUiLibrary,\n): CratisPresentationUiLibrary => {\n validateIdentity(library);\n validateProfile(library);\n validateSlots(library);\n validateCapabilities(library);\n const atomicSlots = frozenValidAtomicSlots(library.atomicSlots);\n\n return Object.freeze({\n id: library.id,\n displayName: library.displayName,\n abi: library.abi,\n level: library.level,\n profile: library.profile,\n profileSlots: cratisPresentationSlotIds,\n capabilities: Object.freeze([\n ...library.capabilities,\n ]) as CratisPresentationCapabilities,\n slots: freezePresentationSlots(library.slots),\n Provider: library.Provider,\n ...(atomicSlots === undefined ? {} : { atomicSlots }),\n });\n};\n\nconst atomicSlotsInspectionOf = (library: { readonly profile: string }) =>\n library.profile === CRATIS_PRESENTATION_PROFILE\n ? inspectAtomicSlots((library as { readonly atomicSlots?: unknown }).atomicSlots)\n : { entries: [] };\n\n/** One reason a stable presentation library's atomic slot cannot be resolved. */\nexport interface StableAtomicSlotProblem {\n /** Offending slot id, when the problem concerns a single entry. */\n readonly slotId?: string;\n /** Human-readable reason. */\n readonly message: string;\n}\n\n/**\n * Lists why a stable presentation library's atomic slots cannot all be resolved. Libraries built\n * with the generic definer or as raw manifests can claim the stable profile without passing\n * {@link definePresentationUiLibrary}; resolution skips their invalid entries and this reports them.\n *\n * @param library Renderer library being validated.\n * @returns Problems in key order; empty for valid or absent atomic slots and for other profiles.\n * @internal Resolution helper; not part of the public package surface.\n */\nexport const stableAtomicSlotProblemsOf = (library: {\n readonly profile: string;\n}): readonly StableAtomicSlotProblem[] => {\n const inspection: AtomicSlotInspection = atomicSlotsInspectionOf(library);\n if (inspection.problem) return [{ message: inspection.problem }];\n return inspection.entries.flatMap(({ slotId, problem }) =>\n problem ? [{ slotId, message: problem }] : [],\n );\n};\n\n/**\n * Returns the stable atomic slot declarations a stable presentation library adds to resolution.\n * Only own enumerable, fully valid declarations take part; invalid ones fail closed to the\n * built-in implementation and are reported by {@link stableAtomicSlotProblemsOf}. Libraries of any\n * other profile, and libraries without `atomicSlots`, contribute nothing, so their slot tables\n * resolve exactly as before.\n *\n * @param library Renderer library being resolved.\n * @returns The library's stable atomic declarations keyed by slot id; empty when it has none.\n * @internal Resolution helper; not part of the public package surface.\n */\nexport const stableAtomicSlotsOf = (library: {\n readonly profile: string;\n}): unstable_SlotMap =>\n usableAtomicSlots(atomicSlotsInspectionOf(library).entries) as unstable_SlotMap;\n"],"names":[],"mapp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,uBAAuB,CAAC,OAAO,CAAC;IACzE,IAAI,UAAU,CAAC,OAAO;QAAE,OAAO,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC;AAChE,IAAA,OAAO,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAClD,OAAO,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,CAChD;AACL;AAaO,MAAM,mBAAmB,GAAG,CAAC,OAEnC,KACG,iBAAiB,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,OAAO;;"}
1
+ {"version":3,"file":"presentation.js","sources":["../../../renderer/presentation.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { ComponentType } from 'react';\nimport type { ButtonProps } from '../Common/Button';\nimport type { CheckboxProps } from '../Common/Checkbox';\nimport type { DatePickerInputProps } from '../Common/DatePickerInput';\nimport type { IconButtonProps } from '../Common/IconButton';\nimport type { RadioProps } from '../Common/Radio';\nimport type { NumericInputProps } from '../Common/NumericInput';\nimport type { SurfaceProps } from '../Common/Surface';\nimport type { SwitchProps } from '../Common/Switch';\nimport type { TextAreaProps } from '../Common/TextArea';\nimport type { TextInputProps } from '../Common/TextInput';\nimport type { TooltipProps } from '../Common/Tooltip';\nimport type { TablePaginatorProps } from '../DataTables/TablePaginator';\nimport type { CratisDialogSlotProps } from '../Dialogs/DialogHost';\nimport type { DropdownProps } from '../Dropdown/Dropdown';\nimport type { ProgressBarProps } from '../Display/ProgressBar';\nimport type { CratisPresentationUiLibraryProviderProps } from './manifest';\nimport type { unstable_SlotMap } from './slots';\n\n/** Stable renderer profile implemented by certified presentation adapters. */\nexport const CRATIS_PRESENTATION_PROFILE = 'stable-presentation/v1' as const;\n\n/** Renderer ABI major for the stable presentation profile. */\nexport const CRATIS_PRESENTATION_ABI_VERSION = 1 as const;\n\n/** Immutable, canonical slot order for the stable presentation profile. */\nexport const cratisPresentationSlotIds = Object.freeze([\n 'common.button',\n 'common.iconButton',\n 'common.textInput',\n 'common.textArea',\n 'common.checkbox',\n 'common.radio',\n 'common.switch',\n 'common.progress',\n 'common.surface',\n] as const);\n\n/** Identifier of one stable presentation slot. */\nexport type CratisPresentationSlotId = (typeof cratisPresentationSlotIds)[number];\n\n/** Exact public component prop and ref contracts covered by the stable presentation profile. */\nexport interface CratisPresentationSlots {\n /** Cratis button presentation contract, including native button refs and form behavior. */\n readonly 'common.button': ButtonProps;\n /** Accessible icon-only button contract with native button ownership. */\n readonly 'common.iconButton': IconButtonProps;\n /** Native text-input contract with semantic value-first change events. */\n readonly 'common.textInput': TextInputProps;\n /** Native multiline text-input contract with semantic value-first change events. */\n readonly 'common.textArea': TextAreaProps;\n /** Native checkbox contract with checked state, form participation, and input refs. */\n readonly 'common.checkbox': CheckboxProps;\n /** Native radio-option contract with selection state, form participation, and input refs. */\n readonly 'common.radio': RadioProps;\n /** Boolean switch contract preserving switch semantics and input ownership. */\n readonly 'common.switch': SwitchProps;\n /** Determinate or indeterminate progress presentation contract. */\n readonly 'common.progress': ProgressBarProps;\n /** Non-interactive semantic surface and native-element presentation contract. */\n readonly 'common.surface': SurfaceProps;\n}\n\n/** One stable, presentation-owned renderer slot declaration. */\nexport interface CratisPresentationSlotDeclaration<\n SlotId extends CratisPresentationSlotId,\n> {\n /** Stable presentation slots always preserve Components behavior ownership. */\n readonly mode: 'presentation';\n /** Unsupported declarations cannot claim the stable profile. */\n readonly fidelity: 'native' | 'emulated';\n /** Component implementing the slot's exact public props and ref contract. */\n readonly render: ComponentType<CratisPresentationSlots[SlotId]>;\n}\n\n/** Complete implementation table required by the stable presentation profile. */\nexport type CratisPresentationSlotMap = {\n readonly [\n SlotId in CratisPresentationSlotId\n ]: CratisPresentationSlotDeclaration<SlotId>;\n};\n\n/**\n * Immutable list of the atomic slots whose contracts are stable. A stable presentation library may\n * implement any of them through {@link CratisPresentationUiLibrary.atomicSlots}; new ids are only\n * ever appended.\n */\nexport const cratisAtomicSlotIds = Object.freeze([\n 'datatables.paginator',\n 'common.tooltip',\n 'dropdown.select',\n 'display.datePicker',\n 'dialogs.dialog',\n 'common.numberInput',\n] as const);\n\n/** Identifier of one stable atomic slot. */\nexport type CratisAtomicSlotId = (typeof cratisAtomicSlotIds)[number];\n\n/** Exact public component prop contracts covered by the stable atomic slots. */\nexport interface CratisAtomicSlots {\n /**\n * Table paginator contract: zero-based `page`, `pageCount`, zero-based `onPageChange`, the\n * `TablePaginatorParts` parts and no ref.\n */\n readonly 'datatables.paginator': TablePaginatorProps;\n /**\n * Tooltip contract: non-interactive `content`, `position`, `disabled`, `className` and exactly\n * one focusable trigger child. The adapter keeps the trigger's `data-cratis-part` and renders\n * the popup as the `popup` part; there is no ref.\n */\n readonly 'common.tooltip': TooltipProps;\n /**\n * Select contract: the public `DropdownProps` with an untyped value, the `DropdownParts` parts\n * and no ref. The adapter owns the trigger, filter, listbox, keyboard and selection callbacks.\n */\n readonly 'dropdown.select': DropdownProps<unknown>;\n /**\n * Date picker contract: the public `DatePickerInputProps` with `Date | null` values, the\n * `DatePickerInputPassThrough` parts and no ref. Calendar library values stay inside the adapter.\n */\n readonly 'display.datePicker': DatePickerInputProps;\n /**\n * Dialog contract: the public `DialogProps` plus a `host` prop (`CratisDialogHost`). Components\n * keeps the dialog stack, the result flow, the footer and header actions, busy and validity,\n * initial focus and the descendants' overlay environment. The adapter owns the modal shell:\n * focus trap, Escape, outside press, scroll lock and focus restoration. There is no ref.\n */\n readonly 'dialogs.dialog': CratisDialogSlotProps;\n /**\n * Number-input contract: a controlled native number input. `value` is a `number` (`undefined`\n * renders empty), `onChange` receives the next number or `undefined` when the input is empty or\n * not a valid number, and the `NumericInputParts` `root` part is the input. The adapter owns the\n * typing interaction; Components owns converting `undefined` to the command value.\n */\n readonly 'common.numberInput': NumericInputProps;\n}\n\n/** One stable, adapter-owned atomic slot declaration. */\nexport interface CratisAtomicSlotDeclaration<SlotId extends CratisAtomicSlotId> {\n /** Stable atomic slots give the adapter ownership of the complete interaction. */\n readonly mode: 'atomic';\n /** Unsupported declarations are expressed by omitting the slot. */\n readonly fidelity: 'native' | 'emulated';\n /** Component implementing the slot's exact public props contract. */\n readonly render: ComponentType<CratisAtomicSlots[SlotId]>;\n}\n\n/** Optional atomic implementations. An omitted slot keeps the built-in Components implementation. */\nexport type CratisAtomicSlotMap = {\n readonly [SlotId in CratisAtomicSlotId]?: CratisAtomicSlotDeclaration<SlotId>;\n};\n\n/** Capabilities whose meaning is stable for the bounded presentation profile. */\nexport type CratisPresentationCapabilityId =\n | 'slot.render'\n | 'parts.passthrough'\n | 'ssr.staticRender'\n | 'rtl'\n | 'forcedColors'\n | 'motion.reduced';\n\ntype CratisPresentationOptionalCapabilityId = Exclude<\n CratisPresentationCapabilityId,\n 'slot.render' | 'parts.passthrough' | 'ssr.staticRender'\n>;\n\n/** Required presentation capabilities followed by optional stable evidence capabilities. */\nexport type CratisPresentationCapabilities = readonly [\n 'slot.render',\n 'parts.passthrough',\n 'ssr.staticRender',\n ...CratisPresentationOptionalCapabilityId[],\n];\n\n/** Immutable manifest for one implementation of the stable presentation profile. */\nexport interface CratisPresentationUiLibrary {\n /** Stable, package-local renderer identity used for diagnostics and telemetry. */\n readonly id: string;\n /** Human-readable renderer name. */\n readonly displayName: string;\n /** Stable presentation renderer ABI major. */\n readonly abi: typeof CRATIS_PRESENTATION_ABI_VERSION;\n /** The bounded profile is a primitive presentation adapter. */\n readonly level: 'primitive';\n /** Exact stable presentation profile identifier. */\n readonly profile: typeof CRATIS_PRESENTATION_PROFILE;\n /** Canonical immutable list of all nine stable slots. */\n readonly profileSlots: typeof cratisPresentationSlotIds;\n /** Required presentation capabilities followed by any optional stable capabilities. */\n readonly capabilities: CratisPresentationCapabilities;\n /** Complete nine-slot presentation implementation. */\n readonly slots: CratisPresentationSlotMap;\n /** Optional provider mounted once around the selected renderer scope. */\n readonly Provider?: ComponentType<CratisPresentationUiLibraryProviderProps>;\n /**\n * Optional adapter-owned implementations of stable atomic slots. Omitted slots resolve to the\n * built-in Components implementation.\n */\n readonly atomicSlots?: CratisAtomicSlotMap;\n}\n\nconst requiredCapabilityIds = [\n 'slot.render',\n 'parts.passthrough',\n 'ssr.staticRender',\n] as const;\n\nconst stableCapabilityIds = new Set<CratisPresentationCapabilityId>([\n ...requiredCapabilityIds,\n 'rtl',\n 'forcedColors',\n 'motion.reduced',\n]);\n\nconst invalidPresentationLibrary: (reason: string) => never = (reason) => {\n throw new TypeError(`Invalid stable presentation UI library: ${reason}.`);\n};\n\nconst hasCanonicalProfileSlots = (profileSlots: readonly unknown[]): boolean =>\n profileSlots.length === cratisPresentationSlotIds.length &&\n profileSlots.every((slotId, index) => slotId === cratisPresentationSlotIds[index]);\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n value !== null && typeof value === 'object' && !Array.isArray(value);\n\nconst isRendererIdentity = (id: unknown): boolean =>\n typeof id === 'string' &&\n id.length <= 128 &&\n /^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u.test(id);\n\nconst isDisplayName = (displayName: unknown): boolean =>\n typeof displayName === 'string' &&\n displayName.trim().length > 0 &&\n displayName.length <= 128;\n\nconst isComponent = (render: unknown): boolean =>\n render !== null && (typeof render === 'function' || typeof render === 'object');\n\nconst isStableFidelity = (fidelity: unknown): boolean =>\n fidelity === 'native' || fidelity === 'emulated';\n\nconst validateIdentity = (library: CratisPresentationUiLibrary) => {\n if (library === null || typeof library !== 'object') {\n invalidPresentationLibrary('manifest must be an object');\n }\n if (!isRendererIdentity(library.id)) {\n invalidPresentationLibrary('id must be a valid package-local renderer identity');\n }\n if (!isDisplayName(library.displayName)) {\n invalidPresentationLibrary(\n 'displayName must contain between 1 and 128 characters',\n );\n }\n if (library.Provider !== undefined && typeof library.Provider !== 'function') {\n invalidPresentationLibrary('Provider must be a React component when supplied');\n }\n};\n\nconst validateProfile = (library: CratisPresentationUiLibrary) => {\n if (library.profile !== CRATIS_PRESENTATION_PROFILE) {\n invalidPresentationLibrary(`profile must be '${CRATIS_PRESENTATION_PROFILE}'`);\n }\n if (library.abi !== CRATIS_PRESENTATION_ABI_VERSION) {\n invalidPresentationLibrary(`ABI must be ${CRATIS_PRESENTATION_ABI_VERSION}`);\n }\n if (library.level !== 'primitive') {\n invalidPresentationLibrary(\"level must be 'primitive'\");\n }\n if (\n !Array.isArray(library.profileSlots) ||\n !hasCanonicalProfileSlots(library.profileSlots)\n ) {\n invalidPresentationLibrary(\n 'profileSlots must be the canonical nine-slot profile',\n );\n }\n};\n\nconst declarationProblem = (\n declaration: Record<string, unknown>,\n label: string,\n mode: 'presentation' | 'atomic',\n): string | undefined => {\n if (declaration.mode !== mode) return `${label} must use ${mode} mode`;\n if (!isStableFidelity(declaration.fidelity)) {\n return `${label} must use native or emulated fidelity`;\n }\n if (!isComponent(declaration.render)) return `${label} must provide a component`;\n return undefined;\n};\n\nconst validateDeclaration = (\n declaration: Record<string, unknown>,\n label: string,\n mode: 'presentation' | 'atomic',\n) => {\n const problem = declarationProblem(declaration, label, mode);\n if (problem) invalidPresentationLibrary(problem);\n};\n\nconst validateSlots = (library: CratisPresentationUiLibrary) => {\n if (!library.slots || typeof library.slots !== 'object') {\n invalidPresentationLibrary('slots must be an object');\n }\n\n const slotIds = Object.keys(library.slots);\n if (\n slotIds.length !== cratisPresentationSlotIds.length ||\n cratisPresentationSlotIds.some((slotId) => !slotIds.includes(slotId))\n ) {\n invalidPresentationLibrary(\n 'slots must contain exactly the nine stable presentation slots',\n );\n }\n\n for (const slotId of cratisPresentationSlotIds) {\n // SAFETY: the canonical slot list indexes the complete stable map; the wider record view\n // exists only so runtime JavaScript callers can be checked before their value is frozen.\n const declaration = library.slots[slotId] as unknown as\n Record<string, unknown> | undefined;\n if (!declaration) {\n invalidPresentationLibrary(`slot '${slotId}' must provide a declaration`);\n }\n validateDeclaration(declaration, `slot '${slotId}'`, 'presentation');\n }\n};\n\nconst validateCapabilities = (library: CratisPresentationUiLibrary) => {\n if (\n !Array.isArray(library.capabilities) ||\n library.capabilities.some((capability) => !stableCapabilityIds.has(capability))\n ) {\n invalidPresentationLibrary(\n 'capabilities must stay within the stable presentation subset',\n );\n }\n if (\n requiredCapabilityIds.some(\n (capability, index) => library.capabilities[index] !== capability,\n )\n ) {\n invalidPresentationLibrary(\n 'capabilities must begin with slot.render, parts.passthrough, and ssr.staticRender',\n );\n }\n if (new Set(library.capabilities).size !== library.capabilities.length) {\n invalidPresentationLibrary('capabilities must not contain duplicates');\n }\n};\n\nconst isStableAtomicSlotId = (slotId: string): slotId is CratisAtomicSlotId =>\n (cratisAtomicSlotIds as readonly string[]).includes(slotId);\n\n/** One atomic slot entry inspected from a single own-enumerable snapshot of `atomicSlots`. */\ninterface AtomicSlotEntry {\n readonly slotId: string;\n /** Declaration read exactly once, or undefined for an explicitly omitted slot. */\n readonly declaration?: Readonly<Record<string, unknown>>;\n /** Why the entry cannot be used; undefined when it is valid. */\n readonly problem?: string;\n}\n\n/** Inspection of a library's `atomicSlots`: one problem for the map, or one result per own key. */\ninterface AtomicSlotInspection {\n readonly problem?: string;\n readonly entries: readonly AtomicSlotEntry[];\n}\n\nconst snapshotDeclaration = (declaration: Record<string, unknown>) => ({\n mode: declaration.mode,\n fidelity: declaration.fidelity,\n render: declaration.render,\n});\n\nconst inspectAtomicSlot = (slotId: string, value: unknown): AtomicSlotEntry => {\n const label = `atomic slot '${slotId}'`;\n if (!isStableAtomicSlotId(slotId)) {\n return { slotId, problem: `${label} is not a stable atomic slot` };\n }\n if (value === undefined) return { slotId };\n if (!isRecord(value)) return { slotId, problem: `${label} must provide a declaration` };\n\n const declaration = snapshotDeclaration(value);\n return { slotId, declaration, problem: declarationProblem(declaration, label, 'atomic') };\n};\n\nconst isPlainPrototype = (prototype: unknown): boolean =>\n prototype === null || prototype === Object.prototype;\n\n/**\n * Inspects `atomicSlots` through ONE snapshot of its own enumerable keys, reading each value\n * once. Inherited and non-enumerable declarations never take part in validation or resolution.\n */\nconst inspectAtomicSlots = (atomicSlots: unknown): AtomicSlotInspection => {\n if (atomicSlots === undefined) return { entries: [] };\n if (!isRecord(atomicSlots)) {\n return { problem: 'atomicSlots must be an object when supplied', entries: [] };\n }\n if (!isPlainPrototype(Object.getPrototypeOf(atomicSlots))) {\n return {\n problem: 'atomicSlots must be a plain object; inherited declarations are not allowed',\n entries: [],\n };\n }\n return {\n entries: Object.keys(atomicSlots).map((slotId) =>\n inspectAtomicSlot(slotId, atomicSlots[slotId]),\n ),\n };\n};\n\nconst isUsableAtomicSlot = (\n entry: AtomicSlotEntry,\n): entry is AtomicSlotEntry & { readonly declaration: Readonly<Record<string, unknown>> } =>\n entry.problem === undefined && entry.declaration !== undefined;\n\n/** Builds a frozen slot-id keyed map of the usable entries; keys are own data properties. */\nconst usableAtomicSlots = (entries: readonly AtomicSlotEntry[]): Readonly<Record<string, object>> =>\n Object.freeze(\n Object.fromEntries(\n entries\n .filter(isUsableAtomicSlot)\n .map(({ slotId, declaration }) => [slotId, Object.freeze(declaration)]),\n ),\n );\n\nconst frozenValidAtomicSlots = (atomicSlots: unknown): CratisAtomicSlotMap | undefined => {\n if (atomicSlots === undefined) return undefined;\n const inspection = inspectAtomicSlots(atomicSlots);\n const problem =\n inspection.problem ?? inspection.entries.find((entry) => entry.problem)?.problem;\n if (problem) invalidPresentationLibrary(problem);\n return usableAtomicSlots(inspection.entries) as CratisAtomicSlotMap;\n};\n\nconst freezeDeclaration = <\n Declaration extends {\n readonly mode: string;\n readonly fidelity: string;\n readonly render: unknown;\n },\n>(\n declaration: Declaration,\n): Declaration =>\n Object.freeze({\n mode: declaration.mode,\n fidelity: declaration.fidelity,\n render: declaration.render,\n }) as Declaration;\n\nconst freezePresentationSlots = (\n slots: CratisPresentationSlotMap,\n): CratisPresentationSlotMap =>\n Object.freeze(\n Object.fromEntries(\n cratisPresentationSlotIds.map((slotId) => [\n slotId,\n freezeDeclaration(slots[slotId]),\n ]),\n ),\n ) as CratisPresentationSlotMap;\n\n/**\n * Defines and freezes a complete implementation of the stable nine-slot presentation profile,\n * plus any optional stable atomic slots. Runtime validation protects JavaScript callers from\n * claiming a profile they do not implement.\n *\n * @param library Stable presentation library declaration.\n * @returns A defensive, deeply frozen manifest copy.\n */\nexport const definePresentationUiLibrary = (\n library: CratisPresentationUiLibrary,\n): CratisPresentationUiLibrary => {\n validateIdentity(library);\n validateProfile(library);\n validateSlots(library);\n validateCapabilities(library);\n const atomicSlots = frozenValidAtomicSlots(library.atomicSlots);\n\n return Object.freeze({\n id: library.id,\n displayName: library.displayName,\n abi: library.abi,\n level: library.level,\n profile: library.profile,\n profileSlots: cratisPresentationSlotIds,\n capabilities: Object.freeze([\n ...library.capabilities,\n ]) as CratisPresentationCapabilities,\n slots: freezePresentationSlots(library.slots),\n Provider: library.Provider,\n ...(atomicSlots === undefined ? {} : { atomicSlots }),\n });\n};\n\nconst atomicSlotsInspectionOf = (library: { readonly profile: string }) =>\n library.profile === CRATIS_PRESENTATION_PROFILE\n ? inspectAtomicSlots((library as { readonly atomicSlots?: unknown }).atomicSlots)\n : { entries: [] };\n\n/** One reason a stable presentation library's atomic slot cannot be resolved. */\nexport interface StableAtomicSlotProblem {\n /** Offending slot id, when the problem concerns a single entry. */\n readonly slotId?: string;\n /** Human-readable reason. */\n readonly message: string;\n}\n\n/**\n * Lists why a stable presentation library's atomic slots cannot all be resolved. Libraries built\n * with the generic definer or as raw manifests can claim the stable profile without passing\n * {@link definePresentationUiLibrary}; resolution skips their invalid entries and this reports them.\n *\n * @param library Renderer library being validated.\n * @returns Problems in key order; empty for valid or absent atomic slots and for other profiles.\n * @internal Resolution helper; not part of the public package surface.\n */\nexport const stableAtomicSlotProblemsOf = (library: {\n readonly profile: string;\n}): readonly StableAtomicSlotProblem[] => {\n const inspection: AtomicSlotInspection = atomicSlotsInspectionOf(library);\n if (inspection.problem) return [{ message: inspection.problem }];\n return inspection.entries.flatMap(({ slotId, problem }) =>\n problem ? [{ slotId, message: problem }] : [],\n );\n};\n\n/**\n * Returns the stable atomic slot declarations a stable presentation library adds to resolution.\n * Only own enumerable, fully valid declarations take part; invalid ones fail closed to the\n * built-in implementation and are reported by {@link stableAtomicSlotProblemsOf}. Libraries of any\n * other profile, and libraries without `atomicSlots`, contribute nothing, so their slot tables\n * resolve exactly as before.\n *\n * @param library Renderer library being resolved.\n * @returns The library's stable atomic declarations keyed by slot id; empty when it has none.\n * @internal Resolution helper; not part of the public package surface.\n */\nexport const stableAtomicSlotsOf = (library: {\n readonly profile: string;\n}): unstable_SlotMap =>\n usableAtomicSlots(atomicSlotsInspectionOf(library).entries) as unstable_SlotMap;\n"],"names":[],"mappings":"AAuBO,MAAM,2BAA2B,GAAG;AAGpC,MAAM,+BAA+B,GAAG;AAGxC,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC;IACnD,eAAe;IACf,mBAAmB;IACnB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,gBAAgB;AACV,CAAA;AAmDH,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,sBAAsB;IACtB,gBAAgB;IAChB,iBAAiB;IACjB,oBAAoB;IACpB,gBAAgB;IAChB,oBAAoB;AACd,CAAA;AA4GV,MAAM,qBAAqB,GAAG;IAC1B,aAAa;IACb,mBAAmB;IACnB,kBAAkB;CACZ;AAEV,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAiC;AAChE,IAAA,GAAG,qBAAqB;IACxB,KAAK;IACL,cAAc;IACd,gBAAgB;AACnB,CAAA,CAAC;AAEF,MAAM,0BAA0B,GAA8B,CAAC,MAAM,KAAI;AACrE,IAAA,MAAM,IAAI,SAAS,CAAC,2CAA2C,MAAM,CAAA,CAAA,CAAG,CAAC;AAC7E,CAAC;AAED,MAAM,wBAAwB,GAAG,CAAC,YAAgC,KAC9D,YAAY,CAAC,MAAM,KAAK,y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AAO,MAAM,8BAA8B,SACjC,SAAS,kBAAkB,EAAE,SAC5B,SAAS,kBAAkB,EAAE,KACrC,OAEyD,CAAC;AAW7D,8EAA8E;AAC9E,eAAO,MAAM,gCAAgC,WACjC,SAAS,sBAAsB,EAAE,KAC1C,gBASF,CAAC;AAEF,mGAAmG;AACnG,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,eAAe,UAClD,CAAC,SACF,gBAAgB,wBACD,wBAAwB,CAAC,CAAC,CAAC,GAAG,SAAS,aAClD,gBAAgB,KAC5B;IAAE,WAAW,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC;IAAC,gBAAgB,EAAE,OAAO,CAAA;CAUxE,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,sBAAsB,eAAgB,0BAA0B,KAAG,MAMjE,CAAC;AAEhB,mFAAmF;AACnF,eAAO,MAAM,sBAAsB,eAAgB,0BAA0B,KAAG,IAI/E,CAAC"}
@@ -17,6 +17,7 @@ const knownSlots = new Set([
17
17
  'dialogs.dialog',
18
18
  'display.datePicker',
19
19
  'datatables.paginator',
20
+ 'common.numberInput',
20
21
  ]);
21
22
  const unstable_emptyCoreRendererSlots = Object.freeze({});
22
23
  const unstable_isKnownSlot = (value) => typeof value === 'string' && knownSlots.has(value);
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.js","sources":["../../../renderer/resolve.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { unstable_AdapterDiagnostic } from './errors';\nimport { unstable_adapterErrorCodes } from './errors';\nimport {\n defineOwnSlot,\n unstable_composeUiLibraries,\n unstable_CRATIS_UI_ABI_VERSION,\n type unstable_UiLibrary,\n} from './manifest';\nimport { stableAtomicSlotProblemsOf, stableAtomicSlotsOf } from './presentation';\nimport type {\n unstable_SlotDeclaration,\n unstable_SlotId,\n unstable_SlotMap,\n} from './slots';\n\nconst knownSlots = new Set<unstable_SlotId>([\n 'common.button',\n 'common.iconButton',\n 'common.textInput',\n 'common.textArea',\n 'common.checkbox',\n 'common.radio',\n 'common.switch',\n 'common.progress',\n 'common.surface',\n 'common.tooltip',\n 'dropdown.select',\n 'dialogs.dialog',\n 'display.datePicker',\n 'datatables.paginator',\n]);\n\n/** Internal immutable renderer layer used by context resolution. */\nexport interface unstable_RendererLayer {\n readonly library: unstable_UiLibrary;\n readonly slots: unstable_SlotMap;\n readonly only?: ReadonlySet<unstable_SlotId>;\n}\n\n/** Identity-preserving normalization result for a provider or scope library input. */\nexport interface unstable_ResolvedLibraryInput {\n readonly library?: unstable_UiLibrary;\n readonly references: readonly unstable_UiLibrary[];\n}\n\n/** Empty D2 Core fallback table. Slice E can inject its built-in table without a registry. */\nexport const unstable_emptyCoreRendererSlots: unstable_SlotMap = Object.freeze({});\n\n/** Returns whether a value is one of the Core-owned slot identifiers. */\nexport const unstable_isKnownSlot = (value: unknown): value is unstable_SlotId =>\n typeof value === 'string' && knownSlots.has(value as unstable_SlotId);\n\n/** Normalizes one library or an ordered last-wins composition without deep merging it. */\nexport const unstable_resolveLibraryInput = (\n input: unstable_UiLibrary | readonly unstable_UiLibrary[] | undefined,\n): unstable_ResolvedLibraryInput => {\n if (!input) return Object.freeze({ references: Object.freeze([]) });\n\n const references = Object.freeze(Array.isArray(input) ? [...input] : [input]);\n if (references.length === 0) {\n return Object.freeze({ references });\n }\n\n return Object.freeze({\n library:\n references.length === 1\n ? references[0]\n : unstable_composeUiLibraries(...references),\n references,\n });\n};\n\n/**\n * Creates one immutable slot lookup snapshot for a manifest and optional scope filter. A stable\n * presentation library's optional atomic slots join its nine presentation slots here.\n */\nexport const unstable_createRendererLayer = (\n library: unstable_UiLibrary,\n only?: readonly unstable_SlotId[],\n): unstable_RendererLayer =>\n Object.freeze({\n library,\n slots: Object.freeze({ ...library.slots, ...stableAtomicSlotsOf(library) }),\n only: only ? new Set(only) : undefined,\n });\n\nconst missingRequirement = (\n library: unstable_UiLibrary,\n message: string,\n remedy: string,\n slotId?: unstable_SlotId,\n): unstable_AdapterDiagnostic => ({\n code: unstable_adapterErrorCodes.missingRequirement,\n adapterId: library.id,\n slotId,\n message,\n remedy,\n});\n\nconst profileSlotDiagnostic = (\n library: unstable_UiLibrary,\n profileSlot: string,\n): unstable_AdapterDiagnostic | undefined => {\n if (!unstable_isKnownSlot(profileSlot)) {\n return missingRequirement(\n library,\n `Profile '${library.profile}' promises unknown slot '${String(profileSlot)}'.`,\n 'Remove the unknown slot or install a Core version that declares it.',\n );\n }\n\n const declaration = library.slots[profileSlot];\n if (declaration && declaration.fidelity !== 'unsupported') return undefined;\n return missingRequirement(\n library,\n `Profile '${library.profile}' does not support promised slot '${profileSlot}'.`,\n `Provide a supported '${profileSlot}' declaration or remove it from profileSlots.`,\n profileSlot,\n );\n};\n\n/** Reports stable atomic slots that resolution skipped, so they fail closed but visibly. */\nconst atomicSlotDiagnostics = (library: unstable_UiLibrary) =>\n stableAtomicSlotProblemsOf(library).map(({ slotId, message }) =>\n missingRequirement(\n library,\n `Invalid stable atomic slot declaration: ${message}.`,\n 'Correct or remove the atomic slot declaration; the built-in implementation is used instead.',\n unstable_isKnownSlot(slotId) ? slotId : undefined,\n ),\n );\n\n/** Runs ABI, profile, capability, and adapter preflight validation. */\nexport const unstable_validateUiLibrary = (\n library: unstable_UiLibrary,\n): readonly unstable_AdapterDiagnostic[] => {\n const diagnostics: unstable_AdapterDiagnostic[] = [];\n\n if (library.abi !== unstable_CRATIS_UI_ABI_VERSION) {\n diagnostics.push({\n code: unstable_adapterErrorCodes.abiMismatch,\n adapterId: library.id,\n message: `Renderer ABI ${library.abi} does not match Core ABI ${unstable_CRATIS_UI_ABI_VERSION}.`,\n remedy: `Install a renderer that targets ABI ${unstable_CRATIS_UI_ABI_VERSION}.`,\n });\n }\n\n const profileSlots = library.profileSlots ?? Object.keys(library.slots);\n if (profileSlots.length > 0 && !library.capabilities.includes('slot.render')) {\n diagnostics.push(\n missingRequirement(\n library,\n `Profile '${library.profile}' promises slots without the 'slot.render' capability.`,\n \"Declare 'slot.render' only after the adapter can render every promised slot.\",\n ),\n );\n }\n\n for (const profileSlot of profileSlots) {\n const diagnostic = profileSlotDiagnostic(library, profileSlot);\n if (diagnostic) diagnostics.push(diagnostic);\n }\n diagnostics.push(...atomicSlotDiagnostics(library));\n\n if (library.preflight) {\n try {\n diagnostics.push(...library.preflight());\n } catch (error: unknown) {\n diagnostics.push({\n code: unstable_adapterErrorCodes.missingUpstreamPeer,\n adapterId: library.id,\n message: `Renderer preflight failed: ${error instanceof Error ? error.message : String(error)}.`,\n remedy: 'Correct the renderer installation so its preflight can complete.',\n });\n }\n }\n\n return Object.freeze([...diagnostics]);\n};\n\n/** Compares normalized library identities without comparing or cloning manifest contents. */\nexport const unstable_sameLibraryReferences = (\n left: readonly unstable_UiLibrary[],\n right: readonly unstable_UiLibrary[],\n): boolean =>\n left.length === right.length &&\n left.every((library, index) => library === right[index]);\n\nconst isResolvable = (\n layer: unstable_RendererLayer,\n slotId: string,\n declaration: { readonly fidelity: string } | undefined,\n): declaration is { readonly fidelity: string } => {\n if (!declaration || declaration.fidelity === 'unsupported') return false;\n return !layer.only || layer.only.has(slotId as unstable_SlotId);\n};\n\n/** Flattens outer-to-inner layers into one frozen, last-wins lookup table. */\nexport const unstable_createResolvedSlotTable = (\n layers: readonly unstable_RendererLayer[],\n): unstable_SlotMap => {\n const resolved: Record<string, object> = {};\n for (const layer of layers) {\n for (const [slotId, declaration] of Object.entries(layer.slots)) {\n if (isResolvable(layer, slotId, declaration))\n defineOwnSlot(resolved, slotId, declaration);\n }\n }\n return Object.freeze(resolved) as unstable_SlotMap;\n};\n\n/** Resolves a slot through external layers, a facade-local Core declaration, then Core context. */\nexport const unstable_resolveSlot = <K extends unstable_SlotId>(\n slotId: K,\n slots: unstable_SlotMap,\n localCoreDeclaration: unstable_SlotDeclaration<K> | undefined,\n coreSlots: unstable_SlotMap,\n): { declaration?: unstable_SlotDeclaration<K>; usedCoreFallback: boolean } => {\n const declaration = slots[slotId] as unstable_SlotDeclaration<K> | undefined;\n if (declaration) return { declaration, usedCoreFallback: false };\n\n return {\n declaration:\n localCoreDeclaration ??\n (coreSlots[slotId] as unstable_SlotDeclaration<K> | undefined),\n usedCoreFallback: true,\n };\n};\n\n/** Stable log key used to de-duplicate diagnostics within one provider identity. */\nexport const unstable_diagnosticKey = (diagnostic: unstable_AdapterDiagnostic): string =>\n [\n diagnostic.code,\n diagnostic.adapterId,\n diagnostic.slotId ?? '',\n diagnostic.message,\n ].join('|');\n\n/** Emits one actionable renderer diagnostic without exposing manifest contents. */\nexport const unstable_logDiagnostic = (diagnostic: unstable_AdapterDiagnostic): void => {\n console.error(\n `[${diagnostic.code}] ${diagnostic.message} Remedy: ${diagnostic.remedy}`,\n );\n};\n"],"names":[],"mappings":";;;;AAkBA,MAAM,UAAU,GAAG,IAAI,GAAG,CAAkB;IACxC,eAAe;IACf,mBAAmB;IACnB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;IACpB,sBAAsB;AACzB,CAAA,CAAC;AAgBK,MAAM,+BAA+B,GAAqB,MAAM,CAAC,MAAM,CAAC,EAAE;MAGpE,oBAAoB,GAAG,CAAC,KAAc,KAC/C,OAAO,KAAK,KAAK,QAAQ,IAAI,UAAU,CAAC,GAAG,CAAC,KAAwB;AAGjE,MAAM,4BAA4B,GAAG,CACxC,KAAqE,KACtC;AAC/B,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;IAEnE,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAA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AAC,IAAI,CAAA,EAAA,EAAK,UAAU,CAAC,OAAO,CAAA,SAAA,EAAY,UAAU,CAAC,MAAM,CAAA,CAAE,CAC5E;AACL;;"}
1
+ {"version":3,"file":"resolve.js","sources":["../../../renderer/resolve.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { unstable_AdapterDiagnostic } from './errors';\nimport { unstable_adapterErrorCodes } from './errors';\nimport {\n defineOwnSlot,\n unstable_composeUiLibraries,\n unstable_CRATIS_UI_ABI_VERSION,\n type unstable_UiLibrary,\n} from './manifest';\nimport { stableAtomicSlotProblemsOf, stableAtomicSlotsOf } from './presentation';\nimport type {\n unstable_SlotDeclaration,\n unstable_SlotId,\n unstable_SlotMap,\n} from './slots';\n\nconst knownSlots = new Set<unstable_SlotId>([\n 'common.button',\n 'common.iconButton',\n 'common.textInput',\n 'common.textArea',\n 'common.checkbox',\n 'common.radio',\n 'common.switch',\n 'common.progress',\n 'common.surface',\n 'common.tooltip',\n 'dropdown.select',\n 'dialogs.dialog',\n 'display.datePicker',\n 'datatables.paginator',\n 'common.numberInput',\n]);\n\n/** Internal immutable renderer layer used by context resolution. */\nexport interface unstable_RendererLayer {\n readonly library: unstable_UiLibrary;\n readonly slots: unstable_SlotMap;\n readonly only?: ReadonlySet<unstable_SlotId>;\n}\n\n/** Identity-preserving normalization result for a provider or scope library input. */\nexport interface unstable_ResolvedLibraryInput {\n readonly library?: unstable_UiLibrary;\n readonly references: readonly unstable_UiLibrary[];\n}\n\n/** Empty D2 Core fallback table. Slice E can inject its built-in table without a registry. */\nexport const unstable_emptyCoreRendererSlots: unstable_SlotMap = Object.freeze({});\n\n/** Returns whether a value is one of the Core-owned slot identifiers. */\nexport const unstable_isKnownSlot = (value: unknown): value is unstable_SlotId =>\n typeof value === 'string' && knownSlots.has(value as unstable_SlotId);\n\n/** Normalizes one library or an ordered last-wins composition without deep merging it. */\nexport const unstable_resolveLibraryInput = (\n input: unstable_UiLibrary | readonly unstable_UiLibrary[] | undefined,\n): unstable_ResolvedLibraryInput => {\n if (!input) return Object.freeze({ references: Object.freeze([]) });\n\n const references = Object.freeze(Array.isArray(input) ? [...input] : [input]);\n if (references.length === 0) {\n return Object.freeze({ references });\n }\n\n return Object.freeze({\n library:\n references.length === 1\n ? references[0]\n : unstable_composeUiLibraries(...references),\n references,\n });\n};\n\n/**\n * Creates one immutable slot lookup snapshot for a manifest and optional scope filter. A stable\n * presentation library's optional atomic slots join its nine presentation slots here.\n */\nexport const unstable_createRendererLayer = (\n library: unstable_UiLibrary,\n only?: readonly unstable_SlotId[],\n): unstable_RendererLayer =>\n Object.freeze({\n library,\n slots: Object.freeze({ ...library.slots, ...stableAtomicSlotsOf(library) }),\n only: only ? new Set(only) : undefined,\n });\n\nconst missingRequirement = (\n library: unstable_UiLibrary,\n message: string,\n remedy: string,\n slotId?: unstable_SlotId,\n): unstable_AdapterDiagnostic => ({\n code: unstable_adapterErrorCodes.missingRequirement,\n adapterId: library.id,\n slotId,\n message,\n remedy,\n});\n\nconst profileSlotDiagnostic = (\n library: unstable_UiLibrary,\n profileSlot: string,\n): unstable_AdapterDiagnostic | undefined => {\n if (!unstable_isKnownSlot(profileSlot)) {\n return missingRequirement(\n library,\n `Profile '${library.profile}' promises unknown slot '${String(profileSlot)}'.`,\n 'Remove the unknown slot or install a Core version that declares it.',\n );\n }\n\n const declaration = library.slots[profileSlot];\n if (declaration && declaration.fidelity !== 'unsupported') return undefined;\n return missingRequirement(\n library,\n `Profile '${library.profile}' does not support promised slot '${profileSlot}'.`,\n `Provide a supported '${profileSlot}' declaration or remove it from profileSlots.`,\n profileSlot,\n );\n};\n\n/** Reports stable atomic slots that resolution skipped, so they fail closed but visibly. */\nconst atomicSlotDiagnostics = (library: unstable_UiLibrary) =>\n stableAtomicSlotProblemsOf(library).map(({ slotId, message }) =>\n missingRequirement(\n library,\n `Invalid stable atomic slot declaration: ${message}.`,\n 'Correct or remove the atomic slot declaration; the built-in implementation is used instead.',\n unstable_isKnownSlot(slotId) ? slotId : undefined,\n ),\n );\n\n/** Runs ABI, profile, capability, and adapter preflight validation. */\nexport const unstable_validateUiLibrary = (\n library: unstable_UiLibrary,\n): readonly unstable_AdapterDiagnostic[] => {\n const diagnostics: unstable_AdapterDiagnostic[] = [];\n\n if (library.abi !== unstable_CRATIS_UI_ABI_VERSION) {\n diagnostics.push({\n code: unstable_adapterErrorCodes.abiMismatch,\n adapterId: library.id,\n message: `Renderer ABI ${library.abi} does not match Core ABI ${unstable_CRATIS_UI_ABI_VERSION}.`,\n remedy: `Install a renderer that targets ABI ${unstable_CRATIS_UI_ABI_VERSION}.`,\n });\n }\n\n const profileSlots = library.profileSlots ?? Object.keys(library.slots);\n if (profileSlots.length > 0 && !library.capabilities.includes('slot.render')) {\n diagnostics.push(\n missingRequirement(\n library,\n `Profile '${library.profile}' promises slots without the 'slot.render' capability.`,\n \"Declare 'slot.render' only after the adapter can render every promised slot.\",\n ),\n );\n }\n\n for (const profileSlot of profileSlots) {\n const diagnostic = profileSlotDiagnostic(library, profileSlot);\n if (diagnostic) diagnostics.push(diagnostic);\n }\n diagnostics.push(...atomicSlotDiagnostics(library));\n\n if (library.preflight) {\n try {\n diagnostics.push(...library.preflight());\n } catch (error: unknown) {\n diagnostics.push({\n code: unstable_adapterErrorCodes.missingUpstreamPeer,\n adapterId: library.id,\n message: `Renderer preflight failed: ${error instanceof Error ? error.message : String(error)}.`,\n remedy: 'Correct the renderer installation so its preflight can complete.',\n });\n }\n }\n\n return Object.freeze([...diagnostics]);\n};\n\n/** Compares normalized library identities without comparing or cloning manifest contents. */\nexport const unstable_sameLibraryReferences = (\n left: readonly unstable_UiLibrary[],\n right: readonly unstable_UiLibrary[],\n): boolean =>\n left.length === right.length &&\n left.every((library, index) => library === right[index]);\n\nconst isResolvable = (\n layer: unstable_RendererLayer,\n slotId: string,\n declaration: { readonly fidelity: string } | undefined,\n): declaration is { readonly fidelity: string } => {\n if (!declaration || declaration.fidelity === 'unsupported') return false;\n return !layer.only || layer.only.has(slotId as unstable_SlotId);\n};\n\n/** Flattens outer-to-inner layers into one frozen, last-wins lookup table. */\nexport const unstable_createResolvedSlotTable = (\n layers: readonly unstable_RendererLayer[],\n): unstable_SlotMap => {\n const resolved: Record<string, object> = {};\n for (const layer of layers) {\n for (const [slotId, declaration] of Object.entries(layer.slots)) {\n if (isResolvable(layer, slotId, declaration))\n defineOwnSlot(resolved, slotId, declaration);\n }\n }\n return Object.freeze(resolved) as unstable_SlotMap;\n};\n\n/** Resolves a slot through external layers, a facade-local Core declaration, then Core context. */\nexport const unstable_resolveSlot = <K extends unstable_SlotId>(\n slotId: K,\n slots: unstable_SlotMap,\n localCoreDeclaration: unstable_SlotDeclaration<K> | undefined,\n coreSlots: unstable_SlotMap,\n): { declaration?: unstable_SlotDeclaration<K>; usedCoreFallback: boolean } => {\n const declaration = slots[slotId] as unstable_SlotDeclaration<K> | undefined;\n if (declaration) return { declaration, usedCoreFallback: false };\n\n return {\n declaration:\n localCoreDeclaration ??\n (coreSlots[slotId] as unstable_SlotDeclaration<K> | undefined),\n usedCoreFallback: true,\n };\n};\n\n/** Stable log key used to de-duplicate diagnostics within one provider identity. */\nexport const unstable_diagnosticKey = (diagnostic: unstable_AdapterDiagnostic): string =>\n [\n diagnostic.code,\n diagnostic.adapterId,\n diagnostic.slotId ?? '',\n diagnostic.message,\n ].join('|');\n\n/** Emits one actionable renderer diagnostic without exposing manifest contents. */\nexport const unstable_logDiagnostic = (diagnostic: unstable_AdapterDiagnostic): void => {\n console.error(\n `[${diagnostic.code}] ${diagnostic.message} Remedy: ${diagnostic.remedy}`,\n );\n};\n"],"names":[],"mappings":";;;;AAkBA,MAAM,UAAU,GAAG,IAAI,GAAG,CAAkB;IACxC,eAAe;IACf,mBAAmB;IACnB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;I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A,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAA4C;AAC5E,IAAA,IAAI,WAAW;AAAE,QAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE;IAEhE,OAAO;AACH,QAAA,WAAW,EACP,oBAAoB;YACnB,SAAS,CAAC,MAAM,CAA6C;AAClE,QAAA,gBAAgB,EAAE,IAAI;KACzB;AACL;MAGa,sBAAsB,GAAG,CAAC,UAAsC,KACzE;AACI,IAAA,UAAU,CAAC,IAAI;AACf,IAAA,UAAU,CAAC,SAAS;IACpB,UAAU,CAAC,MAAM,IAAI,EAAE;AACvB,IAAA,UAAU,CAAC,OAAO;AACrB,CAAA,CAAC,IAAI,CAAC,GAAG;AAGP,MAAM,sBAAsB,GAAG,CAAC,UAAsC,KAAU;AACnF,IAAA,OAAO,CAAC,KAAK,CACT,CAAA,CAAA,EAAI,UAAU,CAAC,IAAI,CAAA,EAAA,EAAK,UAAU,CAAC,OAAO,CAAA,SAAA,EAAY,UAAU,CAAC,MAAM,CAAA,CAAE,CAC5E;AACL;;"}
@@ -25,6 +25,7 @@ export declare const cratisParts: {
25
25
  readonly ActionMenubar: readonly ['root', 'spinner', 'icon', 'label'];
26
26
  readonly IconButton: readonly ['root', 'spinner', 'icon', 'label'];
27
27
  readonly TextInput: readonly ['root'];
28
+ readonly NumericInput: readonly ['root'];
28
29
  readonly TextArea: readonly ['root'];
29
30
  readonly Checkbox: readonly ['root', 'input', 'box', 'indicator', 'label'];
30
31
  readonly Radio: readonly ['root', 'input', 'box', 'indicator', 'label'];
@@ -282,6 +283,9 @@ export declare const cratisPartStates: {
282
283
  readonly TextInput: {
283
284
  readonly root: readonly ["disabled", "invalid", "readonly"];
284
285
  };
286
+ readonly NumericInput: {
287
+ readonly root: readonly ["disabled", "invalid", "readonly"];
288
+ };
285
289
  readonly TextArea: {
286
290
  readonly root: readonly ["disabled", "invalid", "readonly"];
287
291
  };
@@ -1 +1 @@
1
- {"version":3,"file":"parts.d.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,IAAM;iBACN,IAAM;iBACN,KAAO;iBACP,MAAQ;;;iBAGR,IAAM;iBACN,OAAS;iBACT,MAAQ;iBACR,MAAQ;iBACR,QAAU;iBACV,OAAS;iBACT,MAAQ;iBACR,WAAa;iBACb,UAAY;;;iBAGZ,IAAM;iBACN,OAAS;iBACT,KAAO;iBACP,IAAM;iBACN,OAAS;iBACT,OAAS;iBACT,MAAQ;iBACR,KAAO;iBACP,KAAO;iBACP,MAAQ;iBACR,KAAO;iBACP,UAAY;iBACZ,QAAU;iBACV,OAAS;iBACT,OAAS;iBACT,MAAQ;iBACR,KAAO;iBACP,UAAY;iBACZ,OAAS;iBACT,IAAM;iBACN,IAAM;iBACN,QAAU;iBACV,QAAU;iBACV,QAAU;iBACV,WAAa;;;iBAGb,IAAM;iBACN,MAAQ;iBACR,IAAM;iBACN,QAAU;iBACV,GAAK;iBACL,OAAS;iBACT,IAAM;iBACN,SAAW;iBACX,KAAO;iBACP,UAAY;iBACZ,IAAM;iBACN,QAAU;iBACV,QAAU;iBACV,GAAK;iBACL,SAAW;iBACX,SAAW;iBACX,MAAQ;iBACR,SAAW;iBACX,OAAS;iBACT,GAAK;iBACL,KAAO;iBACP,OAAS;iBACT,MAAQ;;CAMf,CAAC;AAEF,mDAAmD;AACnD,MAAM,MAAM,wBAAwB,GAAG,OAAO,gBAAgB,CAAC;AAE/D,6DAA6D;AAC7D,MAAM,MAAM,YAAY,CACpB,SAAS,SAAS,MAAM,wBAAwB,EAChD,IAAI,SAAS,MAAM,wBAAwB,CAAC,SAAS,CAAC,IACtD,wBAAwB,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,GACxE,KAAK,GACL,KAAK,CAAC"}
1
+ {"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../../types/parts.ts"],"names":[],"mappings":"AAKA,sEAAsE;AACtE,eAAO,MAAM,WAAW;aACpB,aAAa,YAAG,MAAM,EAAE,OAAO,EA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;iBACR,MAAQ;iBACR,QAAU;iBACV,OAAS;iBACT,MAAQ;iBACR,WAAa;iBACb,UAAY;;;iBAGZ,IAAM;iBACN,OAAS;iBACT,KAAO;iBACP,IAAM;iBACN,OAAS;iBACT,OAAS;iBACT,MAAQ;iBACR,KAAO;iBACP,KAAO;iBACP,MAAQ;iBACR,KAAO;iBACP,UAAY;iBACZ,QAAU;iBACV,OAAS;iBACT,OAAS;iBACT,MAAQ;iBACR,KAAO;iBACP,UAAY;iBACZ,OAAS;iBACT,IAAM;iBACN,IAAM;iBACN,QAAU;iBACV,QAAU;iBACV,QAAU;iBACV,WAAa;;;iBAGb,IAAM;iBACN,MAAQ;iBACR,IAAM;iBACN,QAAU;iBACV,GAAK;iBACL,OAAS;iBACT,IAAM;iBACN,SAAW;iBACX,KAAO;iBACP,UAAY;iBACZ,IAAM;iBACN,QAAU;iBACV,QAAU;iBACV,GAAK;iBACL,SAAW;iBACX,SAAW;iBACX,MAAQ;iBACR,SAAW;iBACX,OAAS;iBACT,GAAK;iBACL,KAAO;iBACP,OAAS;iBACT,MAAQ;;CAMf,CAAC;AAEF,mDAAmD;AACnD,MAAM,MAAM,wBAAwB,GAAG,OAAO,gBAAgB,CAAC;AAE/D,6DAA6D;AAC7D,MAAM,MAAM,YAAY,CACpB,SAAS,SAAS,MAAM,wBAAwB,EAChD,IAAI,SAAS,MAAM,wBAAwB,CAAC,SAAS,CAAC,IACtD,wBAAwB,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,GACxE,KAAK,GACL,KAAK,CAAC"}
@@ -24,6 +24,7 @@ const cratisParts = {
24
24
  ActionMenubar: ['root', 'spinner', 'icon', 'label'],
25
25
  IconButton: ['root', 'spinner', 'icon', 'label'],
26
26
  TextInput: ['root'],
27
+ NumericInput: ['root'],
27
28
  TextArea: ['root'],
28
29
  Checkbox: ['root', 'input', 'box', 'indicator', 'label'],
29
30
  Radio: ['root', 'input', 'box', 'indicator', 'label'],
@@ -270,6 +271,9 @@ const cratisPartStates = {
270
271
  TextInput: {
271
272
  'root': ['disabled', 'invalid', 'readonly'],
272
273
  },
274
+ NumericInput: {
275
+ 'root': ['disabled', 'invalid', 'readonly'],
276
+ },
273
277
  TextArea: {
274
278
  'root': ['disabled', 'invalid', 'readonly'],
275
279
  },