@cratis/scene.blueprint.default 4.34.0 → 4.36.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 (140) hide show
  1. package/ComponentName.ts +12 -0
  2. package/defaultBlueprintComponents.ts +5 -1
  3. package/dist/cjs/ComponentName.js +4 -0
  4. package/dist/cjs/ComponentName.js.map +1 -1
  5. package/dist/cjs/defaultBlueprint.js +1 -0
  6. package/dist/cjs/defaultBlueprint.js.map +1 -1
  7. package/dist/cjs/defaultBlueprintComponentMetadata.js +1 -0
  8. package/dist/cjs/defaultBlueprintComponentMetadata.js.map +1 -1
  9. package/dist/cjs/defaultBlueprintComponents.js +9 -1
  10. package/dist/cjs/defaultBlueprintComponents.js.map +1 -1
  11. package/dist/cjs/foundation/ActivityFeed.js +122 -0
  12. package/dist/cjs/foundation/ActivityFeed.js.map +1 -0
  13. package/dist/cjs/foundation/AvatarStack.js +73 -0
  14. package/dist/cjs/foundation/AvatarStack.js.map +1 -0
  15. package/dist/cjs/foundation/ChecklistSection.js +174 -0
  16. package/dist/cjs/foundation/ChecklistSection.js.map +1 -0
  17. package/dist/cjs/foundation/FileUploader.js +218 -0
  18. package/dist/cjs/foundation/FileUploader.js.map +1 -0
  19. package/dist/cjs/foundation/FileUploaderHandler.js +17 -0
  20. package/dist/cjs/foundation/FileUploaderHandler.js.map +1 -0
  21. package/dist/cjs/foundation/activityModel.js +63 -0
  22. package/dist/cjs/foundation/activityModel.js.map +1 -0
  23. package/dist/cjs/foundation/avatarModel.js +42 -0
  24. package/dist/cjs/foundation/avatarModel.js.map +1 -0
  25. package/dist/cjs/foundation/checklistModel.js +59 -0
  26. package/dist/cjs/foundation/checklistModel.js.map +1 -0
  27. package/dist/cjs/foundation/formatting.js +11 -0
  28. package/dist/cjs/foundation/formatting.js.map +1 -1
  29. package/dist/cjs/foundation/foundationComponentMetadata.js +26 -0
  30. package/dist/cjs/foundation/foundationComponentMetadata.js.map +1 -1
  31. package/dist/cjs/foundation/foundationDescriptors.js +128 -0
  32. package/dist/cjs/foundation/foundationDescriptors.js.map +1 -1
  33. package/dist/cjs/foundation/foundationSamples.js +114 -0
  34. package/dist/cjs/foundation/foundationSamples.js.map +1 -1
  35. package/dist/cjs/foundation/foundationStrings.js +15 -0
  36. package/dist/cjs/foundation/foundationStrings.js.map +1 -1
  37. package/dist/cjs/foundation/uploadModel.js +71 -0
  38. package/dist/cjs/foundation/uploadModel.js.map +1 -0
  39. package/dist/cjs/index.js +33 -0
  40. package/dist/cjs/index.js.map +1 -1
  41. package/dist/cjs/preview-host/ApplicationHost.js +48 -27
  42. package/dist/cjs/preview-host/ApplicationHost.js.map +1 -1
  43. package/dist/esm/ComponentName.d.ts +5 -1
  44. package/dist/esm/ComponentName.d.ts.map +1 -1
  45. package/dist/esm/ComponentName.js +4 -0
  46. package/dist/esm/ComponentName.js.map +1 -1
  47. package/dist/esm/defaultBlueprint.js +1 -0
  48. package/dist/esm/defaultBlueprint.js.map +1 -1
  49. package/dist/esm/defaultBlueprintComponentMetadata.js +1 -0
  50. package/dist/esm/defaultBlueprintComponentMetadata.js.map +1 -1
  51. package/dist/esm/defaultBlueprintComponents.d.ts.map +1 -1
  52. package/dist/esm/defaultBlueprintComponents.js +9 -1
  53. package/dist/esm/defaultBlueprintComponents.js.map +1 -1
  54. package/dist/esm/foundation/ActivityFeed.d.ts +3 -0
  55. package/dist/esm/foundation/ActivityFeed.d.ts.map +1 -0
  56. package/dist/esm/foundation/ActivityFeed.js +120 -0
  57. package/dist/esm/foundation/ActivityFeed.js.map +1 -0
  58. package/dist/esm/foundation/AvatarStack.d.ts +3 -0
  59. package/dist/esm/foundation/AvatarStack.d.ts.map +1 -0
  60. package/dist/esm/foundation/AvatarStack.js +71 -0
  61. package/dist/esm/foundation/AvatarStack.js.map +1 -0
  62. package/dist/esm/foundation/ChecklistSection.d.ts +3 -0
  63. package/dist/esm/foundation/ChecklistSection.d.ts.map +1 -0
  64. package/dist/esm/foundation/ChecklistSection.js +172 -0
  65. package/dist/esm/foundation/ChecklistSection.js.map +1 -0
  66. package/dist/esm/foundation/FileUploader.d.ts +3 -0
  67. package/dist/esm/foundation/FileUploader.d.ts.map +1 -0
  68. package/dist/esm/foundation/FileUploader.js +216 -0
  69. package/dist/esm/foundation/FileUploader.js.map +1 -0
  70. package/dist/esm/foundation/FileUploaderHandler.d.ts +8 -0
  71. package/dist/esm/foundation/FileUploaderHandler.d.ts.map +1 -0
  72. package/dist/esm/foundation/FileUploaderHandler.js +14 -0
  73. package/dist/esm/foundation/FileUploaderHandler.js.map +1 -0
  74. package/dist/esm/foundation/Foundation.stories.d.ts +8 -0
  75. package/dist/esm/foundation/Foundation.stories.d.ts.map +1 -1
  76. package/dist/esm/foundation/Foundation.stories.js +8 -0
  77. package/dist/esm/foundation/Foundation.stories.js.map +1 -1
  78. package/dist/esm/foundation/activityModel.d.ts +22 -0
  79. package/dist/esm/foundation/activityModel.d.ts.map +1 -0
  80. package/dist/esm/foundation/activityModel.js +58 -0
  81. package/dist/esm/foundation/activityModel.js.map +1 -0
  82. package/dist/esm/foundation/avatarModel.d.ts +11 -0
  83. package/dist/esm/foundation/avatarModel.d.ts.map +1 -0
  84. package/dist/esm/foundation/avatarModel.js +38 -0
  85. package/dist/esm/foundation/avatarModel.js.map +1 -0
  86. package/dist/esm/foundation/checklistModel.d.ts +17 -0
  87. package/dist/esm/foundation/checklistModel.d.ts.map +1 -0
  88. package/dist/esm/foundation/checklistModel.js +53 -0
  89. package/dist/esm/foundation/checklistModel.js.map +1 -0
  90. package/dist/esm/foundation/formatting.d.ts +1 -0
  91. package/dist/esm/foundation/formatting.d.ts.map +1 -1
  92. package/dist/esm/foundation/formatting.js +11 -1
  93. package/dist/esm/foundation/formatting.js.map +1 -1
  94. package/dist/esm/foundation/foundationComponentMetadata.d.ts.map +1 -1
  95. package/dist/esm/foundation/foundationComponentMetadata.js +26 -0
  96. package/dist/esm/foundation/foundationComponentMetadata.js.map +1 -1
  97. package/dist/esm/foundation/foundationDescriptors.d.ts.map +1 -1
  98. package/dist/esm/foundation/foundationDescriptors.js +128 -0
  99. package/dist/esm/foundation/foundationDescriptors.js.map +1 -1
  100. package/dist/esm/foundation/foundationSamples.d.ts.map +1 -1
  101. package/dist/esm/foundation/foundationSamples.js +114 -0
  102. package/dist/esm/foundation/foundationSamples.js.map +1 -1
  103. package/dist/esm/foundation/foundationStrings.d.ts +15 -0
  104. package/dist/esm/foundation/foundationStrings.d.ts.map +1 -1
  105. package/dist/esm/foundation/foundationStrings.js +15 -0
  106. package/dist/esm/foundation/foundationStrings.js.map +1 -1
  107. package/dist/esm/foundation/index.d.ts +9 -0
  108. package/dist/esm/foundation/index.d.ts.map +1 -1
  109. package/dist/esm/foundation/index.js +9 -0
  110. package/dist/esm/foundation/index.js.map +1 -1
  111. package/dist/esm/foundation/uploadModel.d.ts +31 -0
  112. package/dist/esm/foundation/uploadModel.d.ts.map +1 -0
  113. package/dist/esm/foundation/uploadModel.js +65 -0
  114. package/dist/esm/foundation/uploadModel.js.map +1 -0
  115. package/dist/esm/index.js +10 -1
  116. package/dist/esm/index.js.map +1 -1
  117. package/dist/esm/preview-host/ApplicationHost.d.ts +5 -2
  118. package/dist/esm/preview-host/ApplicationHost.d.ts.map +1 -1
  119. package/dist/esm/preview-host/ApplicationHost.js +50 -29
  120. package/dist/esm/preview-host/ApplicationHost.js.map +1 -1
  121. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  122. package/foundation/ActivityFeed.tsx +61 -0
  123. package/foundation/AvatarStack.tsx +43 -0
  124. package/foundation/ChecklistSection.tsx +80 -0
  125. package/foundation/FileUploader.tsx +122 -0
  126. package/foundation/FileUploaderHandler.tsx +22 -0
  127. package/foundation/Foundation.stories.tsx +8 -0
  128. package/foundation/activityModel.ts +65 -0
  129. package/foundation/avatarModel.ts +36 -0
  130. package/foundation/checklistModel.ts +62 -0
  131. package/foundation/formatting.ts +9 -0
  132. package/foundation/foundationComponentMetadata.ts +4 -0
  133. package/foundation/foundationDescriptors.ts +79 -0
  134. package/foundation/foundationSamples.ts +29 -0
  135. package/foundation/foundationStrings.ts +15 -0
  136. package/foundation/index.ts +9 -0
  137. package/foundation/uploadModel.ts +66 -0
  138. package/package.json +8 -8
  139. package/preview-host/ApplicationHost.tsx +57 -16
  140. package/shell/layout.css +234 -0
@@ -1 +1 @@
1
- {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../foundation/formatting.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,oBAAY,YAAY;IACpB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAMD,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAK7D;AAGD,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAQrD;AAGD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,YAAkC,EAAE,QAAQ,SAAQ,EAAE,qBAAqB,CAAC,EAAE,MAAM,GAAG,MAAM,CAehK;AAGD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,SAAW,GAAG,YAAY,CAG9F;AAGD,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,CAQnF"}
1
+ {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../foundation/formatting.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,oBAAY,YAAY;IACpB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAMD,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAK7D;AAGD,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAQrD;AAGD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,YAAkC,EAAE,QAAQ,SAAQ,EAAE,qBAAqB,CAAC,EAAE,MAAM,GAAG,MAAM,CAehK;AAGD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,SAAW,GAAG,YAAY,CAG9F;AAGD,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,CAQnF;AAGD,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAM7D"}
@@ -73,6 +73,16 @@
73
73
  return date.toISOString();
74
74
  }
75
75
  }
76
+ /** Formats a calendar day (`YYYY-MM-DD`) for a locale, as that day and never shifted by the reader's time zone. */ function formatDay(day, locale) {
77
+ try {
78
+ return new Intl.DateTimeFormat(locale, {
79
+ dateStyle: 'full',
80
+ timeZone: 'UTC'
81
+ }).format(new Date(`${day}T12:00:00Z`));
82
+ } catch {
83
+ return day;
84
+ }
85
+ }
76
86
 
77
- export { NumberFormat, formatDate, formatNumber, isRightToLeft, readLocale, readNumberFormat };
87
+ export { NumberFormat, formatDate, formatDay, formatNumber, isRightToLeft, readLocale, readNumberFormat };
78
88
  //# sourceMappingURL=formatting.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatting.js","sources":["../../../foundation/formatting.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 { ExternalComponent } from '@cratis/scene.model';\n\n/** How a number is presented. */\nexport enum NumberFormat {\n Number = 'number',\n Currency = 'currency',\n Percent = 'percent',\n Compact = 'compact',\n}\n\n/**\n * The locale a component formats dates, numbers and currency in: the element's `locale`, else the document language, else the\n * runtime's. Formatting never goes through a fixed locale, so the same screen reads correctly in every one.\n */\nexport function readLocale(element: ExternalComponent): string {\n const supplied = element.properties.locale;\n if (typeof supplied === 'string' && supplied.length > 0) return supplied;\n if (typeof document !== 'undefined' && document.documentElement.lang) return document.documentElement.lang;\n return typeof navigator !== 'undefined' && navigator.language ? navigator.language : 'en';\n}\n\n/** Whether the locale reads right to left, so a component can mirror what direction-sensitive CSS cannot. */\nexport function isRightToLeft(locale: string): boolean {\n try {\n const info = new Intl.Locale(locale) as Intl.Locale & { getTextInfo?: () => { direction: string }; textInfo?: { direction: string } };\n const direction = info.getTextInfo?.().direction ?? info.textInfo?.direction;\n return direction === 'rtl';\n } catch {\n return false;\n }\n}\n\n/** Formats a number for a locale, as a plain number, currency, percent (the value is the percentage, 12.5 is 12.5%) or compact. */\nexport function formatNumber(value: number, locale: string, format: NumberFormat = NumberFormat.Number, currency = 'USD', maximumFractionDigits?: number): string {\n try {\n switch (format) {\n case NumberFormat.Currency:\n return new Intl.NumberFormat(locale, { style: 'currency', currency, ...(maximumFractionDigits === undefined ? {} : { maximumFractionDigits }) }).format(value);\n case NumberFormat.Percent:\n return new Intl.NumberFormat(locale, { style: 'percent', maximumFractionDigits: maximumFractionDigits ?? 1 }).format(value / 100);\n case NumberFormat.Compact:\n return new Intl.NumberFormat(locale, { notation: 'compact', maximumFractionDigits: maximumFractionDigits ?? 1 }).format(value);\n default:\n return new Intl.NumberFormat(locale, { maximumFractionDigits: maximumFractionDigits ?? 2 }).format(value);\n }\n } catch {\n return String(value);\n }\n}\n\n/** Reads a number format name, defaulting to a plain number. */\nexport function readNumberFormat(element: ExternalComponent, property = 'format'): NumberFormat {\n const value = element.properties[property];\n return (Object.values(NumberFormat) as string[]).includes(value as string) ? (value as NumberFormat) : NumberFormat.Number;\n}\n\n/** Formats a date or an ISO 8601 date-time for a locale; a value that is not a date is returned as it was written. */\nexport function formatDate(value: unknown, locale: string, withTime = false): string {\n const date = value instanceof Date ? value : typeof value === 'string' || typeof value === 'number' ? new Date(value) : undefined;\n if (!date || Number.isNaN(date.getTime())) return typeof value === 'string' ? value : '';\n try {\n return new Intl.DateTimeFormat(locale, withTime ? { dateStyle: 'medium', timeStyle: 'short' } : { dateStyle: 'medium' }).format(date);\n } catch {\n return date.toISOString();\n }\n}\n"],"names":["NumberFormat","readLocale","element","supplied","properties","locale","length","document","documentElement","lang","navigator","language","isRightToLeft","info","Intl","Locale","direction","getTextInfo","textInfo","formatNumber","value","format","currency","maximumFractionDigits","style","undefined","notation","String","readNumberFormat","property","Object","values","includes","formatDate","withTime","date","Date","Number","isNaN","getTime","DateTimeFormat","dateStyle","timeStyle","toISOString"],"mappings":"AAAA;AACA;AAIA,kCACO,IAAKA,YAAAA,iBAAAA,SAAAA,YAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,YAAAA;AAKX,CAAA,CAAA,EAAA;AAED;;;IAIO,SAASC,UAAAA,CAAWC,OAA0B,EAAA;AACjD,IAAA,MAAMC,QAAAA,GAAWD,OAAAA,CAAQE,UAAU,CAACC,MAAM;AAC1C,IAAA,IAAI,OAAOF,QAAAA,KAAa,QAAA,IAAYA,SAASG,MAAM,GAAG,GAAG,OAAOH,QAAAA;AAChE,IAAA,IAAI,OAAOI,QAAAA,KAAa,WAAA,IAAeA,QAAAA,CAASC,eAAe,CAACC,IAAI,EAAE,OAAOF,QAAAA,CAASC,eAAe,CAACC,IAAI;IAC1G,OAAO,OAAOC,cAAc,WAAA,IAAeA,SAAAA,CAAUC,QAAQ,GAAGD,SAAAA,CAAUC,QAAQ,GAAG,IAAA;AACzF;AAEA,8GACO,SAASC,aAAAA,CAAcP,MAAc,EAAA;IACxC,IAAI;AACA,QAAA,MAAMQ,IAAAA,GAAO,IAAIC,IAAAA,CAAKC,MAAM,CAACV,MAAAA,CAAAA;AAC7B,QAAA,MAAMW,YAAYH,IAAAA,CAAKI,WAAW,KAAKD,SAAAA,IAAaH,IAAAA,CAAKK,QAAQ,EAA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MAAAA,CAAOP,KAAAA,CAAAA;AAClB,IAAA;AACJ;AAEA,iEACO,SAASQ,iBAAiB1B,OAA0B,EAAE2B,WAAW,QAAQ,EAAA;AAC5E,IAAA,MAAMT,KAAAA,GAAQlB,OAAAA,CAAQE,UAAU,CAACyB,QAAAA,CAAS;AAC1C,IAAA,OAAO,MAACC,CAAOC,MAAM,CAAC/B,YAAAA,CAAAA,CAA2BgC,QAAQ,CAACZ,KAAAA,CAAAA,GAAoBA,KAAAA,GAAAA,QAAAA;AAClF;AAEA,uHACO,SAASa,UAAAA,CAAWb,KAAc,EAAEf,MAAc,EAAE6B,QAAAA,GAAW,KAAK,EAAA;AACvE,IAAA,MAAMC,IAAAA,GAAOf,KAAAA,YAAiBgB,IAAAA,GAAOhB,KAAAA,GAAQ,OAAOA,KAAAA,KAAU,QAAA,IAAY,OAAOA,KAAAA,KAAU,QAAA,GAAW,IAAIgB,IAAAA,CAAKhB,KAAAA,CAAAA,GAASK,SAAAA;AACxH,IAAA,IAAI,CAACU,IAAAA,IAAQE,MAAAA,CAAOC,KAAK,CAACH,IAAAA,CAAKI,OAAO,EAAA,CAAA,EAAK,OAAO,OAAOnB,KAAAA,KAAU,QAAA,GAAWA,KAAAA,GAAQ,EAAA;IACtF,IAAI;AACA,QAAA,OAAO,IAAIN,IAAAA,CAAK0B,cAAc,CAACnC,QAAQ6B,QAAAA,GAAW;YAAEO,SAAAA,EAAW,QAAA;YAAUC,SAAAA,EAAW;SAAQ,GAAI;YAAED,SAAAA,EAAW;AAAS,SAAA,CAAA,CAAGpB,MAAM,CAACc,IAAAA,CAAAA;AACpI,IAAA,CAAA,CAAE,OAAM;AACJ,QAAA,OAAOA,KAAKQ,WAAW,EAAA;AAC3B,IAAA;AACJ;;"}
1
+ {"version":3,"file":"formatting.js","sources":["../../../foundation/formatting.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 { ExternalComponent } from '@cratis/scene.model';\n\n/** How a number is presented. */\nexport enum NumberFormat {\n Number = 'number',\n Currency = 'currency',\n Percent = 'percent',\n Compact = 'compact',\n}\n\n/**\n * The locale a component formats dates, numbers and currency in: the element's `locale`, else the document language, else the\n * runtime's. Formatting never goes through a fixed locale, so the same screen reads correctly in every one.\n */\nexport function readLocale(element: ExternalComponent): string {\n const supplied = element.properties.locale;\n if (typeof supplied === 'string' && supplied.length > 0) return supplied;\n if (typeof document !== 'undefined' && document.documentElement.lang) return document.documentElement.lang;\n return typeof navigator !== 'undefined' && navigator.language ? navigator.language : 'en';\n}\n\n/** Whether the locale reads right to left, so a component can mirror what direction-sensitive CSS cannot. */\nexport function isRightToLeft(locale: string): boolean {\n try {\n const info = new Intl.Locale(locale) as Intl.Locale & { getTextInfo?: () => { direction: string }; textInfo?: { direction: string } };\n const direction = info.getTextInfo?.().direction ?? info.textInfo?.direction;\n return direction === 'rtl';\n } catch {\n return false;\n }\n}\n\n/** Formats a number for a locale, as a plain number, currency, percent (the value is the percentage, 12.5 is 12.5%) or compact. */\nexport function formatNumber(value: number, locale: string, format: NumberFormat = NumberFormat.Number, currency = 'USD', maximumFractionDigits?: number): string {\n try {\n switch (format) {\n case NumberFormat.Currency:\n return new Intl.NumberFormat(locale, { style: 'currency', currency, ...(maximumFractionDigits === undefined ? {} : { maximumFractionDigits }) }).format(value);\n case NumberFormat.Percent:\n return new Intl.NumberFormat(locale, { style: 'percent', maximumFractionDigits: maximumFractionDigits ?? 1 }).format(value / 100);\n case NumberFormat.Compact:\n return new Intl.NumberFormat(locale, { notation: 'compact', maximumFractionDigits: maximumFractionDigits ?? 1 }).format(value);\n default:\n return new Intl.NumberFormat(locale, { maximumFractionDigits: maximumFractionDigits ?? 2 }).format(value);\n }\n } catch {\n return String(value);\n }\n}\n\n/** Reads a number format name, defaulting to a plain number. */\nexport function readNumberFormat(element: ExternalComponent, property = 'format'): NumberFormat {\n const value = element.properties[property];\n return (Object.values(NumberFormat) as string[]).includes(value as string) ? (value as NumberFormat) : NumberFormat.Number;\n}\n\n/** Formats a date or an ISO 8601 date-time for a locale; a value that is not a date is returned as it was written. */\nexport function formatDate(value: unknown, locale: string, withTime = false): string {\n const date = value instanceof Date ? value : typeof value === 'string' || typeof value === 'number' ? new Date(value) : undefined;\n if (!date || Number.isNaN(date.getTime())) return typeof value === 'string' ? value : '';\n try {\n return new Intl.DateTimeFormat(locale, withTime ? { dateStyle: 'medium', timeStyle: 'short' } : { dateStyle: 'medium' }).format(date);\n } catch {\n return date.toISOString();\n }\n}\n\n/** Formats a calendar day (`YYYY-MM-DD`) for a locale, as that day and never shifted by the reader's time zone. */\nexport function formatDay(day: string, locale: string): string {\n try {\n return new Intl.DateTimeFormat(locale, { dateStyle: 'full', timeZone: 'UTC' }).format(new Date(`${day}T12:00:00Z`));\n } catch {\n return day;\n }\n}\n"],"names":["NumberFormat","readLocale","element","supplied","properties","locale","length","document","documentElement","lang","navigator","language","isRightToLeft","info","Intl","Locale","direction","getTextInfo","textInfo","formatNumber","value","format","currency","maximumFractionDigits","style","undefined","notation","String","readNumberFormat","property","Object","values","includes","formatDate","withTime","date","Date","Number","isNaN","getTime","DateTimeFormat","dateStyle","timeStyle","toISOString","formatDay","day","timeZone"],"mappings":"AAAA;AACA;AAIA,kCACO,IAAKA,YAAAA,iBAAAA,SAAAA,YAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,YAAAA;AAKX,CAAA,CAAA,EAAA;AAED;;;IAIO,SAASC,UAAAA,CAAWC,OAA0B,EAAA;AACjD,IAAA,MAAMC,QAAAA,GAAWD,OAAAA,CAAQE,UAAU,CAACC,MAAM;AAC1C,IAAA,IAAI,OAAOF,QAAAA,KAAa,QAAA,IAAYA,SAASG,MAAM,GAAG,GAAG,OAAOH,QAAAA;AAChE,IAAA,IAAI,OAAOI,QAAAA,KAAa,WAAA,IAAeA,QAAAA,CAASC,eAAe,CAACC,IAAI,EAAE,OAAOF,QAAAA,CAASC,eAAe,CAACC,IAAI;IAC1G,O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,EAAW;SAAQ,GAAI;YAAED,SAAAA,EAAW;AAAS,SAAA,CAAA,CAAGpB,MAAM,CAACc,IAAAA,CAAAA;AACpI,IAAA,CAAA,CAAE,OAAM;AACJ,QAAA,OAAOA,KAAKQ,WAAW,EAAA;AAC3B,IAAA;AACJ;AAEA,oHACO,SAASC,SAAAA,CAAUC,GAAW,EAAExC,MAAc,EAAA;IACjD,IAAI;AACA,QAAA,OAAO,IAAIS,IAAAA,CAAK0B,cAAc,CAACnC,MAAAA,EAAQ;YAAEoC,SAAAA,EAAW,MAAA;YAAQK,QAAAA,EAAU;AAAM,SAAA,CAAA,CAAGzB,MAAM,CAAC,IAAIe,KAAK,CAAA,EAAGS,GAAAA,CAAI,UAAU,CAAC,CAAA,CAAA;AACrH,IAAA,CAAA,CAAE,OAAM;QACJ,OAAOA,GAAAA;AACX,IAAA;AACJ;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"foundationComponentMetadata.d.ts","sourceRoot":"","sources":["../../../foundation/foundationComponentMetadata.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAA0B,MAAM,qBAAqB,CAAC;AAOhF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CASzE,CAAC"}
1
+ {"version":3,"file":"foundationComponentMetadata.d.ts","sourceRoot":"","sources":["../../../foundation/foundationComponentMetadata.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAA0B,MAAM,qBAAqB,CAAC;AAOhF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAazE,CAAC"}
@@ -60,6 +60,32 @@ import { ComponentName } from '../ComponentName.js';
60
60
  'views',
61
61
  'presets',
62
62
  'saved filters'
63
+ ]),
64
+ [ComponentName.ChecklistSection]: componentMetadata('Checklist', ComponentCategory.DataDisplay, 'list-checks', [
65
+ 'tasks',
66
+ 'todo',
67
+ 'onboarding',
68
+ 'progress',
69
+ 'steps'
70
+ ]),
71
+ [ComponentName.ActivityFeed]: componentMetadata('Activity feed', ComponentCategory.DataDisplay, 'activity', [
72
+ 'timeline',
73
+ 'history',
74
+ 'comments',
75
+ 'audit',
76
+ 'log'
77
+ ]),
78
+ [ComponentName.AvatarStack]: componentMetadata('Avatar stack', ComponentCategory.DataDisplay, 'users', [
79
+ 'people',
80
+ 'members',
81
+ 'assignees',
82
+ 'team'
83
+ ]),
84
+ [ComponentName.FileUploader]: componentMetadata('File uploader', ComponentCategory.Input, 'upload', [
85
+ 'attachments',
86
+ 'files',
87
+ 'drop zone',
88
+ 'documents'
63
89
  ])
64
90
  };
65
91
 
@@ -1 +1 @@
1
- {"version":3,"file":"foundationComponentMetadata.js","sources":["../../../foundation/foundationComponentMetadata.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 { ComponentCategory } from '@cratis/scene.model';\nimport { ComponentMetadata, componentMetadata as m } from '@cratis/scene.react';\nimport { ComponentName } from '../ComponentName';\n\n/**\n * The category, icon, keywords and picker badge of every foundation component (CMP1), keyed by bare component name.\n * The names are those of `ComponentName`; the metadata of the rest of the package lives in `defaultBlueprintComponentMetadata`.\n */\nexport const foundationComponentMetadata: Record<string, ComponentMetadata> = {\n [ComponentName.EmptyState]: m('Empty state', ComponentCategory.Feedback, 'inbox', ['no data', 'nothing', 'blank slate', 'zero state']),\n [ComponentName.StatCard]: m('Stat card', ComponentCategory.DataDisplay, 'gauge', ['kpi', 'metric', 'figure', 'number', 'dashboard']),\n [ComponentName.TrendChip]: m('Trend chip', ComponentCategory.DataDisplay, 'trending-up', ['delta', 'change', 'arrow', 'comparison']),\n [ComponentName.StatusChip]: m('Status chip', ComponentCategory.DataDisplay, 'badge-check', ['badge', 'state', 'tag', 'label']),\n [ComponentName.ChartWrapper]: m('Chart', ComponentCategory.DataDisplay, 'chart-line', ['graph', 'line', 'bar', 'stacked', 'donut', 'pie', 'funnel', 'plot']),\n [ComponentName.FilterBuilder]: m('Filter builder', ComponentCategory.Input, 'list-filter', ['filter', 'query', 'conditions', 'and or', 'search']),\n [ComponentName.ColumnChooser]: m('Column chooser', ComponentCategory.Actions, 'columns-3', ['columns', 'fields', 'show hide', 'table']),\n [ComponentName.SavedViewsMenu]: m('Saved views menu', ComponentCategory.Actions, 'bookmark', ['views', 'presets', 'saved filters']),\n};\n"],"names":["foundationComponentMetadata","ComponentName","EmptyState","m","ComponentCategory","Feedback","StatCard","DataDisplay","TrendChip","StatusChip","ChartWrapper","FilterBuilder","Input","ColumnChooser","Actions","SavedViewsMenu"],"mappings":";;;;AAAA;AACA;AAMA;;;UAIaA,2BAAAA,GAAiE;IAC1E,CAACC,aAAAA,CAAcC,UAAU,GAAGC,kBAAE,aAAA,EAAeC,iBAAAA,CAAkBC,QAAQ,EAAE,OAAA,EAAS;AAAC,QAAA,SAAA;AAAW,QAAA,SAAA;AAAW,QAAA,aAAA;AAAe,QAAA;AAAa,KAAA,CAAA;IACrI,CAACJ,aAAAA,CAAcK,QAAQ,GAAGH,kBAAE,WAAA,EAAaC,iBAAAA,CAAkBG,WAAW,EAAE,OAAA,EAAS;AAAC,QAAA,KAAA;AAAO,QAAA,QAAA;AAAU,QAAA,QAAA;AAAU,QAAA,QAAA;AAAU,QAAA;AAAY,KAAA,CAAA;IACnI,CAACN,aAAAA,CAAcO,SAAS,GAAGL,kBAAE,YAAA,EAAcC,iBAAAA,CAAkBG,WAAW,EAAE,aAAA,EAAe;AAAC,QAAA,OAAA;AAAS,QAAA,QAAA;AAAU,QAAA,OAAA;AAAS,QAAA;AAAa,KAAA,CAAA;IACnI,CAACN,aAAAA,CAAcQ,UAAU,GAAGN,kBAAE,aAAA,EAAeC,iBAAAA,CAAkBG,WAAW,EAAE,aAAA,EAAe;AAAC,QAAA,OAAA;AAAS,QAAA,OAAA;AAAS,QAAA,KAAA;AAAO,QAAA;AAAQ,KAAA,CAAA;IAC7H,CAACN,aAAAA,CAAcS,YAAY,GAAGP,kBAAE,OAAA,EAASC,iBAAAA,CAAkBG,WAAW,EAAE,YAAA,EAAc;AAAC,QAAA,OAAA;AAAS,QAAA,MAAA;AAAQ,QAAA,KAAA;AAAO,QAAA,SAAA;AAAW,QAAA,OAAA;AAAS,QAAA,KAAA;AAAO,QAAA,QAAA;AAAU,QAAA;AAAO,KAAA,CAAA;IAC3J,CAACN,aAAAA,CAAcU,aAAa,GAAGR,kBAAE,gBAAA,EAAkBC,iBAAAA,CAAkBQ,KAAK,EAAE,aAAA,EAAe;AAAC,QAAA,QAAA;AAAU,QAAA,OAAA;AAAS,QAAA,YAAA;AAAc,QAAA,QAAA;AAAU,QAAA;AAAS,KAAA,CAAA;IAChJ,CAACX,aAAAA,CAAcY,aAAa,GAAGV,kBAAE,gBAAA,EAAkBC,iBAAAA,CAAkBU,OAAO,EAAE,WAAA,EAAa;AAAC,QAAA,SAAA;AAAW,QAAA,QAAA;AAAU,QAAA,WAAA;AAAa,QAAA;AAAQ,KAAA,CAAA;IACtI,CAACb,aAAAA,CAAcc,cAAc,GAAGZ,kBAAE,kBAAA,EAAoBC,iBAAAA,CAAkBU,OAAO,EAAE,UAAA,EAAY;AAAC,QAAA,OAAA;AAAS,QAAA,SAAA;AAAW,QAAA;AAAgB,KAAA;AACtI;;"}
1
+ {"version":3,"file":"foundationComponentMetadata.js","sources":["../../../foundation/foundationComponentMetadata.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 { ComponentCategory } from '@cratis/scene.model';\nimport { ComponentMetadata, componentMetadata as m } from '@cratis/scene.react';\nimport { ComponentName } from '../ComponentName';\n\n/**\n * The category, icon, keywords and picker badge of every foundation component (CMP1), keyed by bare component name.\n * The names are those of `ComponentName`; the metadata of the rest of the package lives in `defaultBlueprintComponentMetadata`.\n */\nexport const foundationComponentMetadata: Record<string, ComponentMetadata> = {\n [ComponentName.EmptyState]: m('Empty state', ComponentCategory.Feedback, 'inbox', ['no data', 'nothing', 'blank slate', 'zero state']),\n [ComponentName.StatCard]: m('Stat card', ComponentCategory.DataDisplay, 'gauge', ['kpi', 'metric', 'figure', 'number', 'dashboard']),\n [ComponentName.TrendChip]: m('Trend chip', ComponentCategory.DataDisplay, 'trending-up', ['delta', 'change', 'arrow', 'comparison']),\n [ComponentName.StatusChip]: m('Status chip', ComponentCategory.DataDisplay, 'badge-check', ['badge', 'state', 'tag', 'label']),\n [ComponentName.ChartWrapper]: m('Chart', ComponentCategory.DataDisplay, 'chart-line', ['graph', 'line', 'bar', 'stacked', 'donut', 'pie', 'funnel', 'plot']),\n [ComponentName.FilterBuilder]: m('Filter builder', ComponentCategory.Input, 'list-filter', ['filter', 'query', 'conditions', 'and or', 'search']),\n [ComponentName.ColumnChooser]: m('Column chooser', ComponentCategory.Actions, 'columns-3', ['columns', 'fields', 'show hide', 'table']),\n [ComponentName.SavedViewsMenu]: m('Saved views menu', ComponentCategory.Actions, 'bookmark', ['views', 'presets', 'saved filters']),\n [ComponentName.ChecklistSection]: m('Checklist', ComponentCategory.DataDisplay, 'list-checks', ['tasks', 'todo', 'onboarding', 'progress', 'steps']),\n [ComponentName.ActivityFeed]: m('Activity feed', ComponentCategory.DataDisplay, 'activity', ['timeline', 'history', 'comments', 'audit', 'log']),\n [ComponentName.AvatarStack]: m('Avatar stack', ComponentCategory.DataDisplay, 'users', ['people', 'members', 'assignees', 'team']),\n [ComponentName.FileUploader]: m('File uploader', ComponentCategory.Input, 'upload', ['attachments', 'files', 'drop zone', 'documents']),\n};\n"],"names":["foundationComponentMetadata","ComponentName","EmptyState","m","ComponentCategory","Feedback","StatCard","DataDisplay","TrendChip","StatusChip","ChartWrapper","FilterBuilder","Input","ColumnChooser","Actions","SavedViewsMenu","ChecklistSection","ActivityFeed","AvatarStack","FileUploader"],"mappings":";;;;AAAA;AACA;AAMA;;;UAIaA,2BAAAA,GAAiE;IAC1E,CAACC,aAAAA,CAAcC,UAAU,GAAGC,kBAAE,aAAA,EAAe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,mBAAmB,EAAE,kBAAkB,EAAyC,MAAM,qBAAqB,CAAC;AAYxI,eAAO,MAAM,QAAQ,qBAAsG,CAAC;AAiB5H,eAAO,MAAM,IAAI,SAAU,MAAM,SAAS,MAAM,SAAS,MAAM,aAAa,MAAM,cAAc,kBAAkB,EAAE,gBAAgB,MAAM,KAAG,kBACoC,CAAC;AAMlL,eAAO,MAAM,uBAAuB,EAAE,kBAAkB,EAkBvD,CAAC;AAOF,eAAO,MAAM,qBAAqB,EAAE,mBAAmB,EA0ItD,CAAC"}
1
+ {"version":3,"file":"foundationDescriptors.d.ts","sourceRoot":"","sources":["../../../foundation/foundationDescriptors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB,EAAyC,MAAM,qBAAqB,CAAC;AAaxI,eAAO,MAAM,QAAQ,qBAAsG,CAAC;AAiB5H,eAAO,MAAM,IAAI,SAAU,MAAM,SAAS,MAAM,SAAS,MAAM,aAAa,MAAM,cAAc,kBAAkB,EAAE,gBAAgB,MAAM,KAAG,kBACoC,CAAC;AAMlL,eAAO,MAAM,uBAAuB,EAAE,kBAAkB,EAkBvD,CAAC;AAOF,eAAO,MAAM,qBAAqB,EAAE,mBAAmB,EAwNtD,CAAC"}
@@ -2,6 +2,7 @@ import { BindingSourceKind, PropertyEditorKind, PropertyValueType } from '@crati
2
2
  import { valueOutputProperty, componentRegistryKey } from '@cratis/scene.react';
3
3
  import { ComponentName } from '../ComponentName.js';
4
4
  import { defaultBlueprintName } from '../packageName.js';
5
+ import { ActivityKind } from './activityModel.js';
5
6
  import { ChartKind } from './chartGeometry.js';
6
7
  import { ComponentState } from './ComponentState.js';
7
8
  import { FilterFieldType } from './filterModel.js';
@@ -373,6 +374,133 @@ const formats = {
373
374
  },
374
375
  ...standardStateProperties
375
376
  ]
377
+ },
378
+ {
379
+ component: key(ComponentName.ChecklistSection),
380
+ displayName: 'Checklist',
381
+ description: 'Sections of tasks with an owner and due date each and a progress bar per section. Publishes the ids of the done tasks as the value output.',
382
+ properties: [
383
+ {
384
+ ...list('sections', 'Sections', 'Data', 'Section', [
385
+ text('title', 'Title', 'Content', undefined, {
386
+ constraints: {
387
+ required: true
388
+ }
389
+ }),
390
+ list('items', 'Tasks', 'Data', 'Task', [
391
+ text('id', 'Id', 'Data', undefined, {
392
+ constraints: {
393
+ required: true
394
+ }
395
+ }),
396
+ text('label', 'Task', 'Content', undefined, {
397
+ constraints: {
398
+ required: true
399
+ }
400
+ }),
401
+ text('owner', 'Owner', 'Data'),
402
+ text('due', 'Due date', 'Data', 'An ISO 8601 date.'),
403
+ flag('done', 'Done', 'Data')
404
+ ])
405
+ ], 'The groups of tasks.'),
406
+ acceptedBindingKinds: bindable
407
+ },
408
+ text('today', 'Today', 'Content', 'The date overdue is judged against; empty is the current date.'),
409
+ rule('editPermission', 'Edit permission', 'Enabled lets the user tick tasks; otherwise they are shown read-only.'),
410
+ valueOutputProperty(PropertyValueType.Json, 'The ids of the done tasks, published as the user ticks them.'),
411
+ ...standardStateProperties
412
+ ]
413
+ },
414
+ {
415
+ component: key(ComponentName.ActivityFeed),
416
+ displayName: 'Activity feed',
417
+ description: 'What happened to a record, grouped by day. Content is supplied by the application; this lays it out.',
418
+ properties: [
419
+ {
420
+ ...list('entries', 'Entries', 'Data', 'Entry', [
421
+ text('id', 'Id', 'Data', undefined, {
422
+ constraints: {
423
+ required: true
424
+ }
425
+ }),
426
+ text('actor', 'Who', 'Data'),
427
+ text('action', 'What', 'Data'),
428
+ choice('kind', 'Kind', 'Data', {
429
+ [ActivityKind.Comment]: 'Comment',
430
+ [ActivityKind.Change]: 'Change',
431
+ [ActivityKind.Status]: 'Status',
432
+ [ActivityKind.System]: 'System'
433
+ }, ActivityKind.System),
434
+ text('at', 'When', 'Data', 'An ISO 8601 date and time.', {
435
+ constraints: {
436
+ required: true
437
+ }
438
+ }),
439
+ text('body', 'Text', 'Data', 'A comment\'s text or the detail of a change.', {
440
+ editorOptions: {
441
+ multiline: true
442
+ }
443
+ })
444
+ ], 'What happened.'),
445
+ acceptedBindingKinds: bindable
446
+ },
447
+ choice('order', 'Order', 'Appearance', {
448
+ descending: 'Newest first',
449
+ ascending: 'Oldest first'
450
+ }, 'descending'),
451
+ text('timeZone', 'Time zone', 'Content', 'The IANA zone days are cut in; empty is the reader\'s.'),
452
+ ...standardStateProperties
453
+ ]
454
+ },
455
+ {
456
+ component: key(ComponentName.AvatarStack),
457
+ displayName: 'Avatar stack',
458
+ description: 'Overlapping avatars for the people on a record, with a "+N" chip for the rest.',
459
+ properties: [
460
+ {
461
+ ...list('people', 'People', 'Data', 'Person', [
462
+ text('name', 'Name', 'Data', undefined, {
463
+ constraints: {
464
+ required: true
465
+ }
466
+ }),
467
+ text('imageUrl', 'Picture', 'Data', 'Without one the initials are shown.')
468
+ ], 'Who is shown.'),
469
+ acceptedBindingKinds: bindable
470
+ },
471
+ number('max', 'Shown at most', 'Appearance', 'How many avatars before the rest fold into "+N".', {
472
+ default: 4,
473
+ constraints: {
474
+ minimum: 1,
475
+ integer: true
476
+ }
477
+ }),
478
+ choice('size', 'Size', 'Appearance', {
479
+ small: 'Small',
480
+ medium: 'Medium'
481
+ }, 'medium'),
482
+ ...standardStateProperties
483
+ ]
484
+ },
485
+ {
486
+ component: key(ComponentName.FileUploader),
487
+ displayName: 'File uploader',
488
+ description: 'A drop zone and a button to choose files, checked against type and size before anything is sent. Publishes the selection as the value output.',
489
+ properties: [
490
+ text('accept', 'Accepted types', 'Behavior', 'Extensions, MIME types and wildcards separated by commas, for example ".pdf, image/*".'),
491
+ number('maxSizeMb', 'Largest file (MB)', 'Behavior', undefined, {
492
+ constraints: {
493
+ minimum: 0
494
+ }
495
+ }),
496
+ flag('multiple', 'Several files', 'Behavior', undefined, {
497
+ default: true
498
+ }),
499
+ text('serverUrl', 'Upload address', 'Behavior', 'Handed to the host\'s upload handler.'),
500
+ rule('actionPermission', 'Upload permission', 'Whether files can be chosen or dropped, refused with a reason, or the control is hidden.'),
501
+ valueOutputProperty(PropertyValueType.Json, 'The files chosen - name, size, type and status - published as they change.'),
502
+ ...standardStateProperties.filter((property)=>property.path !== 'actionPermission')
503
+ ]
376
504
  }
377
505
  ];
378
506
 
@@ -1 +1 @@
1
- {"version":3,"file":"foundationDescriptors.js","sources":["../../../foundation/foundationDescriptors.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 { BindingSourceKind, ComponentDescriptor, PropertyDescriptor, PropertyEditorKind, PropertyValueType } from '@cratis/scene.model';\nimport { componentRegistryKey, valueOutputProperty } from '@cratis/scene.react';\nimport { ComponentName } from '../ComponentName';\nimport { defaultBlueprintName } from '../packageName';\nimport { ChartKind } from './chartGeometry';\nimport { ComponentState } from './ComponentState';\nimport { FilterFieldType } from './filterModel';\nimport { NumberFormat } from './formatting';\nimport { PermissionRule } from './PermissionRule';\nimport { StatusTone } from './StatusChip';\n\n/** Data properties take what a screen binds them to: a query's result, a data context or another component's output. */\nexport const bindable = [BindingSourceKind.DataContext, BindingSourceKind.QueryResult, BindingSourceKind.ComponentProperty];\n\nconst text = (path: string, label: string, group: string, description?: string, extra: Partial<PropertyDescriptor> = {}): PropertyDescriptor =>\n ({ path, label, group, valueType: PropertyValueType.String, ...(group === 'Data' ? { acceptedBindingKinds: bindable } : {}), ...(description === undefined ? {} : { description }), ...extra });\n\nconst number = (path: string, label: string, group: string, description?: string, extra: Partial<PropertyDescriptor> = {}): PropertyDescriptor =>\n ({ path, label, group, valueType: PropertyValueType.Number, editorKind: PropertyEditorKind.Number, ...(group === 'Data' ? { acceptedBindingKinds: bindable } : {}), ...(description === undefined ? {} : { description }), ...extra });\n\nconst flag = (path: string, label: string, group: string, description?: string, extra: Partial<PropertyDescriptor> = {}): PropertyDescriptor =>\n ({ path, label, group, valueType: PropertyValueType.Boolean, editorKind: PropertyEditorKind.Boolean, ...(description === undefined ? {} : { description }), ...extra });\n\nconst choice = (path: string, label: string, group: string, values: Record<string, string>, defaultValue: string, description?: string): PropertyDescriptor =>\n ({\n path, label, group, valueType: PropertyValueType.Enum, editorKind: PropertyEditorKind.Enum, default: defaultValue,\n choices: Object.entries(values).map(([value, name]) => ({ value, label: name })), ...(description === undefined ? {} : { description }),\n });\n\nexport const list = (path: string, label: string, group: string, itemLabel: string, properties: PropertyDescriptor[], description?: string): PropertyDescriptor =>\n ({ path, label, group, valueType: PropertyValueType.Collection, default: [], item: { label: itemLabel, properties }, ...(description === undefined ? {} : { description }) });\n\nconst rule = (path: string, label: string, description: string): PropertyDescriptor =>\n choice(path, label, 'Permissions', { [PermissionRule.Enabled]: 'Enabled', [PermissionRule.Disabled]: 'Disabled', [PermissionRule.Hidden]: 'Hidden' }, PermissionRule.Enabled, description);\n\n/** The properties every data-showing foundation component shares: the standard states (spec Part B 1.4) and the cross-cutting rules of 1.5. */\nexport const standardStateProperties: PropertyDescriptor[] = [\n choice('state', 'Preview state', 'State', {\n [ComponentState.Ready]: 'Ready', [ComponentState.Loading]: 'Loading', [ComponentState.Empty]: 'Empty',\n [ComponentState.Error]: 'Error', [ComponentState.NoPermission]: 'No permission', [ComponentState.Partial]: 'Partial',\n }, ComponentState.Ready, 'Forces a state so each can be designed and previewed; empty means the state follows the bound data.'),\n text('error', 'Error message', 'State', 'The message of the error state; setting it puts the component in that state.'),\n flag('loading', 'Loading', 'State', 'Shows the skeleton while the data has not answered.'),\n flag('forbidden', 'Not allowed', 'State', 'Shows the no-permission state, which explains what is missing and shows no data.'),\n text('permissionSubject', 'What access is missing', 'State', 'Names what the user cannot see in the no-permission message.'),\n { path: 'failedRegions', label: 'Failed regions', group: 'State', valueType: PropertyValueType.Json, editorKind: PropertyEditorKind.StringList, default: [], description: 'The parts that failed to load; any entry puts the component in the partial state.' },\n text('emptyHeadline', 'Empty headline', 'State'),\n text('emptyHint', 'Empty hint', 'State'),\n text('emptyActionLabel', 'Empty action', 'State', 'The primary action offered when there is nothing to show.'),\n rule('actionPermission', 'Empty action permission', 'Whether the empty state offers its action, refuses it with a reason, or does not render it.'),\n text('label', 'Label', 'Accessibility', 'The accessible name of the region.'),\n text('locale', 'Locale', 'Content', 'The locale dates, numbers and currency are formatted in; empty follows the document.'),\n choice('density', 'Density', 'Appearance', { comfortable: 'Comfortable', compact: 'Compact' }, 'comfortable'),\n { path: 'strings', label: 'Text overrides', group: 'Content', valueType: PropertyValueType.Object, editorKind: PropertyEditorKind.StringMap, description: 'Replaces the text the component says itself, for localization.' },\n];\n\nconst key = (name: ComponentName) => componentRegistryKey(defaultBlueprintName, name);\n\nconst formats = { [NumberFormat.Number]: 'Number', [NumberFormat.Currency]: 'Currency', [NumberFormat.Percent]: 'Percent', [NumberFormat.Compact]: 'Compact' };\n\n/** What can be edited on the foundation components (Part B 4). Each declares the shape of its data, never values (SD1). */\nexport const foundationDescriptors: ComponentDescriptor[] = [\n {\n component: key(ComponentName.EmptyState),\n displayName: 'Empty state',\n description: 'An icon, a headline, a hint and one primary action; embeddable in any region.',\n properties: [\n text('headline', 'Headline', 'Content', undefined, { default: 'Nothing here yet' }),\n text('hint', 'Hint', 'Content'),\n text('icon', 'Icon', 'Appearance'),\n text('actionLabel', 'Primary action', 'Behavior', 'The label of the one action the state offers; its behaviors say what it does.'),\n rule('actionPermission', 'Action permission', 'Whether the action works, refuses with a reason, or is not rendered.'),\n text('locale', 'Locale', 'Content'),\n { path: 'strings', label: 'Text overrides', group: 'Content', valueType: PropertyValueType.Object, editorKind: PropertyEditorKind.StringMap },\n ],\n },\n {\n component: key(ComponentName.StatCard),\n displayName: 'Stat card',\n description: 'One key figure with its label, trend and the period the trend is compared to.',\n properties: [\n text('label', 'Label', 'Content', 'What the figure measures.', { constraints: { required: true } }),\n number('value', 'Value', 'Data', 'The figure; bind it to a query result.'),\n choice('format', 'Format', 'Appearance', formats, NumberFormat.Number),\n text('currency', 'Currency', 'Appearance', 'The ISO 4217 code when the format is currency.'),\n number('fractionDigits', 'Fraction digits', 'Appearance'),\n number('change', 'Change', 'Data', 'How much the figure moved, as a percentage; bind it to a query result.'),\n choice('goodDirection', 'Good direction', 'Appearance', { up: 'Up is good', down: 'Down is good' }, 'up', 'Which movement is good: a falling response time is.'),\n text('comparison', 'Compared to', 'Content', 'The period the change is compared to, for example \"last month\".'),\n ...standardStateProperties.filter(property => property.path !== 'label'),\n ],\n },\n {\n component: key(ComponentName.TrendChip),\n displayName: 'Trend chip',\n description: 'A change drawn as a direction, a magnitude and whether the movement is good.',\n properties: [\n number('change', 'Change', 'Data', 'The movement; bind it to a query result.'),\n choice('format', 'Format', 'Appearance', formats, NumberFormat.Percent),\n choice('goodDirection', 'Good direction', 'Appearance', { up: 'Up is good', down: 'Down is good' }, 'up'),\n text('comparison', 'Compared to', 'Content'),\n text('locale', 'Locale', 'Content'),\n { path: 'strings', label: 'Text overrides', group: 'Content', valueType: PropertyValueType.Object, editorKind: PropertyEditorKind.StringMap },\n ],\n },\n {\n component: key(ComponentName.StatusChip),\n displayName: 'Status chip',\n description: 'A status shown as a semantic color, an icon and its text; the text is always shown.',\n properties: [\n text('status', 'Status', 'Data', 'The status text; bind it to a query result.', { constraints: { required: true } }),\n choice('tone', 'Tone', 'Appearance', {\n [StatusTone.Success]: 'Success', [StatusTone.Warning]: 'Warning', [StatusTone.Danger]: 'Danger', [StatusTone.Info]: 'Info', [StatusTone.Neutral]: 'Neutral',\n }, StatusTone.Neutral, 'The tone picks the icon and the theme color.'),\n ],\n },\n {\n component: key(ComponentName.ChartWrapper),\n displayName: 'Chart',\n description: 'One chart - line, bar, stacked, donut or funnel - with a legend and a table of the same data. A donut and a funnel draw the first series.',\n properties: [\n text('title', 'Title', 'Content'),\n choice('kind', 'Chart type', 'Appearance', {\n [ChartKind.Line]: 'Line', [ChartKind.Bar]: 'Bar', [ChartKind.Stacked]: 'Stacked bar', [ChartKind.Donut]: 'Donut', [ChartKind.Funnel]: 'Funnel',\n }, ChartKind.Line),\n { path: 'categories', label: 'Categories', group: 'Data', valueType: PropertyValueType.Json, editorKind: PropertyEditorKind.StringList, default: [], acceptedBindingKinds: bindable, description: 'The label of each point, bar or slice, in order.' },\n {\n ...list('series', 'Series', 'Data', 'Series', [\n text('name', 'Name', 'Data', undefined, { constraints: { required: true } }),\n { path: 'values', label: 'Values', group: 'Data', valueType: PropertyValueType.Json, editorKind: PropertyEditorKind.NumberList, default: [], description: 'One value for each category.' },\n ], 'What is plotted: a named list of values, one per category.'),\n acceptedBindingKinds: bindable,\n },\n choice('format', 'Value format', 'Appearance', formats, NumberFormat.Number),\n text('currency', 'Currency', 'Appearance', 'The ISO 4217 code when the format is currency.'),\n ...standardStateProperties.filter(property => property.path !== 'label'),\n ],\n },\n {\n component: key(ComponentName.FilterBuilder),\n displayName: 'Filter builder',\n description: 'Conditions on fields, joined by AND or OR in groups that nest three deep. The filter is published as the value output; the component filters nothing itself.',\n properties: [\n {\n ...list('fields', 'Fields', 'Data', 'Field', [\n text('name', 'Name', 'Data', 'The result field the condition tests.', { constraints: { required: true }, editorKind: PropertyEditorKind.Field }),\n text('label', 'Label', 'Content'),\n choice('type', 'Type', 'Data', {\n [FilterFieldType.Text]: 'Text', [FilterFieldType.Number]: 'Number', [FilterFieldType.Date]: 'Date', [FilterFieldType.Select]: 'Select', [FilterFieldType.Boolean]: 'Yes / no',\n }, FilterFieldType.Text, 'Decides the operators offered.'),\n { path: 'options', label: 'Options', group: 'Data', valueType: PropertyValueType.Json, editorKind: PropertyEditorKind.StringList, default: [], description: 'The choices of a select field.' },\n ], 'What can be filtered.'),\n acceptedBindingKinds: bindable,\n },\n { path: 'filter', label: 'Initial filter', group: 'Data', valueType: PropertyValueType.Object, acceptedBindingKinds: bindable, description: 'A filter to start from, usually bound to the active saved view.' },\n rule('editPermission', 'Edit permission', 'Enabled lets the user change the filter; disabled shows it read-only.'),\n valueOutputProperty(PropertyValueType.Object, 'The filter as the user has built it: { operator, conditions, groups }, published as it changes.'),\n ...standardStateProperties,\n ],\n },\n {\n component: key(ComponentName.ColumnChooser),\n displayName: 'Column chooser',\n description: 'Which columns a table shows, and in what order. Publishes the ordered ids of the visible columns as the value output.',\n properties: [\n {\n ...list('columns', 'Columns', 'Data', 'Column', [\n text('id', 'Id', 'Data', 'The result field the column shows.', { constraints: { required: true }, editorKind: PropertyEditorKind.Field }),\n text('label', 'Label', 'Content'),\n flag('visible', 'Visible', 'Content', 'Whether the column starts shown.', { default: true }),\n flag('locked', 'Always shown', 'Content', 'A locked column cannot be hidden: the identifying column is.'),\n ], 'What could be shown.'),\n acceptedBindingKinds: bindable,\n },\n valueOutputProperty(PropertyValueType.Json, 'The ids of the visible columns, in order, published as the user changes them.'),\n ...standardStateProperties,\n ],\n },\n {\n component: key(ComponentName.SavedViewsMenu),\n displayName: 'Saved views menu',\n description: 'A list\\'s saved views as a menu button, with the current view as its label. Publishes the chosen view id as the value output.',\n properties: [\n {\n ...list('views', 'Views', 'Data', 'View', [\n text('id', 'Id', 'Data', undefined, { constraints: { required: true } }),\n text('label', 'Label', 'Content'),\n text('description', 'Description', 'Content'),\n ], 'The choices.'),\n acceptedBindingKinds: bindable,\n },\n text('activeView', 'Active view', 'Data', 'The id of the view in force; bind it to start from a view.'),\n rule('savePermission', 'Save permission', 'Whether \"Save current view\" works, refuses with a reason, or is not shown.'),\n rule('managePermission', 'Manage permission', 'Whether \"Manage views\" works, refuses with a reason, or is not shown.'),\n valueOutputProperty(PropertyValueType.String, 'The id of the chosen view, published as the user chooses.'),\n { path: 'action', label: 'Requested action', group: 'Outputs', valueType: PropertyValueType.String, readOnly: true, output: true, description: '\"save\" or \"manage\" when the user asks for it; the host acts on it.' },\n ...standardStateProperties,\n ],\n },\n];\n\n"],"names":["bindable","BindingSourceKind","DataContext","QueryResult","ComponentProperty","text","path","label","group","description","extra","valueType","PropertyValueType","String","acceptedBindingKinds","undefined","number","Number","editorKind","PropertyEditorKind","flag","Boolean","choice","values","defaultValue","Enum","default","choices","Object","entries","map","value","name","list","itemLabel","properties","Collection","item","rule","PermissionRule","Enabled","Disabled","Hidden","standardStateProperties","ComponentState","Ready","Loading","Empty","Error","NoPermission","Partial","Json","StringList","comfortable","compact","StringMap","key","componentRegistryKey","defaultBlueprintName","formats","NumberFormat","Currency","Percent","Compact","foundationDescriptors","component","ComponentName","EmptyState","displayName","StatCard","constraints","required","up","down","filter","property","TrendChip","StatusChip","StatusTone","Success","Warning","Danger","Info","Neutral","ChartWrapper","ChartKind","Line","Bar","Stacked","Donut","Funnel","NumberList","FilterBuilder","Field","FilterFieldType","Text","Date","Select","valueOutputProperty","ColumnChooser","SavedViewsMenu","readOnly","output"],"mappings":";;;;;;;;;;;AAAA;AACA;AAaA,yHACO,MAAMA,QAAAA,GAAW;AAACC,IAAAA,iBAAAA,CAAkBC,WAAW;AAAED,IAAAA,iBAAAA,CAAkBE,WAAW;AAAEF,IAAAA,iBAAAA,CAAkBG;;AAEzG,MAAMC,IAAAA,GAAO,CAACC,IAAAA,EAAcC,KAAAA,EAAeC,KAAAA,EAAeC,aAAsBC,KAAAA,GAAqC,EAAE,IAClH;AAAEJ,QAAAA,IAAAA;AAAMC,QAAAA,KAAAA;AAAOC,QAAAA,KAAAA;AAAOG,QAAAA,SAAAA,EAAWC,kBAAkBC,MAAM;AAAE,QAAA,GAAIL,UAAU,MAAA,GAAS;YAAEM,oBAAAA,EAAsBd;AAAS,SAAA,GAAI,EAAE;QAAG,GAAIS,WAAAA,KAAgBM,SAAAA,GAAY,EAAC,GAAI;AAAEN,YAAAA;SAAa;AAAG,QAAA,GAAGC;KAAM,CAAA;AAEjM,MAAMM,MAAAA,GAAS,CAACV,IAAAA,EAAcC,KAAAA,EAAeC,KAAAA,EAAeC,aAAsBC,KAAAA,GAAqC,EAAE,IACpH;AAAEJ,QAAAA,IAAAA;AAAMC,QAAAA,KAAAA;AAAOC,QAAAA,KAAAA;AAAOG,QAAAA,SAAAA,EAAWC,kBAAkBK,MAAM;AAAEC,QAAAA,UAAAA,EAAYC,mBAAmBF,MAAM;AAAE,QAAA,GAAIT,UAAU,MAAA,GA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B,SAAAA,EAAWT,GAAAA,CAAIU,cAAckC,cAAc,CAAA;QAC3ChC,WAAAA,EAAa,kBAAA;QACb3D,WAAAA,EAAa,+HAAA;QACb0B,UAAAA,EAAY;AACR,YAAA;AACI,gBAAA,GAAGF,IAAAA,CAAK,OAAA,EAAS,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ;oBACtC5B,IAAAA,CAAK,IAAA,EAAM,IAAA,EAAM,MAAA,EAAQU,SAAAA,EAAW;wBAAEuD,WAAAA,EAAa;4BAAEC,QAAAA,EAAU;AAAK;AAAE,qBAAA,CAAA;AACtElE,oBAAAA,IAAAA,CAAK,SAAS,OAAA,EAAS,SAAA,CAAA;AACvBA,oBAAAA,IAAAA,CAAK,eAAe,aAAA,EAAe,SAAA;AACtC,iBAAA,EAAE,cAAA,CAAe;gBAClBS,oBAAAA,EAAsBd;AAC1B,aAAA;YACAK,IAAAA,CAAK,YAAA,EAAc,eAAe,MAAA,EAAQ,4DAAA,CAAA;AAC1CiC,YAAAA,IAAAA,CAAK,kBAAkB,iBAAA,EAAmB,4EAAA,CAAA;AAC1CA,YAAAA,IAAAA,CAAK,oBAAoB,mBAAA,EAAqB,uEAAA,CAAA;YAC9C4D,mBAAAA,CAAoBtF,iBAAAA,CAAkBC,MAAM,EAAE,2DAAA,CAAA;AAC9C,YAAA;gBAAEP,IAAAA,EAAM,QAAA;gBAAUC,KAAAA,EAAO,kBAAA;gBAAoBC,KAAAA,EAAO,SAAA;AAAWG,gBAAAA,SAAAA,EAAWC,kBAAkBC,MAAM;gBAAEwF,QAAAA,EAAU,IAAA;gBAAMC,MAAAA,EAAQ,IAAA;gBAAM7F,WAAAA,EAAa;AAAqE,aAAA;AACjNkC,YAAAA,GAAAA;AACN;AACL;;;"}
1
+ {"version":3,"file":"foundationDescriptors.js","sources":["../../../foundation/foundationDescriptors.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 { BindingSourceKind, ComponentDescriptor, PropertyDescriptor, PropertyEditorKind, PropertyValueType } from '@cratis/scene.model';\nimport { componentRegistryKey, valueOutputProperty } from '@cratis/scene.react';\nimport { ComponentName } from '../ComponentName';\nimport { defaultBlueprintName } from '../packageName';\nimport { ActivityKind } from './activityModel';\nimport { ChartKind } from './chartGeometry';\nimport { ComponentState } from './ComponentState';\nimport { FilterFieldType } from './filterModel';\nimport { NumberFormat } from './formatting';\nimport { PermissionRule } from './PermissionRule';\nimport { StatusTone } from './StatusChip';\n\n/** Data properties take what a screen binds them to: a query's result, a data context or another component's output. */\nexport const bindable = [BindingSourceKind.DataContext, BindingSourceKind.QueryResult, BindingSourceKind.ComponentProperty];\n\nconst text = (path: string, label: string, group: string, description?: string, extra: Partial<PropertyDescriptor> = {}): PropertyDescriptor =>\n ({ path, label, group, valueType: PropertyValueType.String, ...(group === 'Data' ? { acceptedBindingKinds: bindable } : {}), ...(description === undefined ? {} : { description }), ...extra });\n\nconst number = (path: string, label: string, group: string, description?: string, extra: Partial<PropertyDescriptor> = {}): PropertyDescriptor =>\n ({ path, label, group, valueType: PropertyValueType.Number, editorKind: PropertyEditorKind.Number, ...(group === 'Data' ? { acceptedBindingKinds: bindable } : {}), ...(description === undefined ? {} : { description }), ...extra });\n\nconst flag = (path: string, label: string, group: string, description?: string, extra: Partial<PropertyDescriptor> = {}): PropertyDescriptor =>\n ({ path, label, group, valueType: PropertyValueType.Boolean, editorKind: PropertyEditorKind.Boolean, ...(description === undefined ? {} : { description }), ...extra });\n\nconst choice = (path: string, label: string, group: string, values: Record<string, string>, defaultValue: string, description?: string): PropertyDescriptor =>\n ({\n path, label, group, valueType: PropertyValueType.Enum, editorKind: PropertyEditorKind.Enum, default: defaultValue,\n choices: Object.entries(values).map(([value, name]) => ({ value, label: name })), ...(description === undefined ? {} : { description }),\n });\n\nexport const list = (path: string, label: string, group: string, itemLabel: string, properties: PropertyDescriptor[], description?: string): PropertyDescriptor =>\n ({ path, label, group, valueType: PropertyValueType.Collection, default: [], item: { label: itemLabel, properties }, ...(description === undefined ? {} : { description }) });\n\nconst rule = (path: string, label: string, description: string): PropertyDescriptor =>\n choice(path, label, 'Permissions', { [PermissionRule.Enabled]: 'Enabled', [PermissionRule.Disabled]: 'Disabled', [PermissionRule.Hidden]: 'Hidden' }, PermissionRule.Enabled, description);\n\n/** The properties every data-showing foundation component shares: the standard states (spec Part B 1.4) and the cross-cutting rules of 1.5. */\nexport const standardStateProperties: PropertyDescriptor[] = [\n choice('state', 'Preview state', 'State', {\n [ComponentState.Ready]: 'Ready', [ComponentState.Loading]: 'Loading', [ComponentState.Empty]: 'Empty',\n [ComponentState.Error]: 'Error', [ComponentState.NoPermission]: 'No permission', [ComponentState.Partial]: 'Partial',\n }, ComponentState.Ready, 'Forces a state so each can be designed and previewed; empty means the state follows the bound data.'),\n text('error', 'Error message', 'State', 'The message of the error state; setting it puts the component in that state.'),\n flag('loading', 'Loading', 'State', 'Shows the skeleton while the data has not answered.'),\n flag('forbidden', 'Not allowed', 'State', 'Shows the no-permission state, which explains what is missing and shows no data.'),\n text('permissionSubject', 'What access is missing', 'State', 'Names what the user cannot see in the no-permission message.'),\n { path: 'failedRegions', label: 'Failed regions', group: 'State', valueType: PropertyValueType.Json, editorKind: PropertyEditorKind.StringList, default: [], description: 'The parts that failed to load; any entry puts the component in the partial state.' },\n text('emptyHeadline', 'Empty headline', 'State'),\n text('emptyHint', 'Empty hint', 'State'),\n text('emptyActionLabel', 'Empty action', 'State', 'The primary action offered when there is nothing to show.'),\n rule('actionPermission', 'Empty action permission', 'Whether the empty state offers its action, refuses it with a reason, or does not render it.'),\n text('label', 'Label', 'Accessibility', 'The accessible name of the region.'),\n text('locale', 'Locale', 'Content', 'The locale dates, numbers and currency are formatted in; empty follows the document.'),\n choice('density', 'Density', 'Appearance', { comfortable: 'Comfortable', compact: 'Compact' }, 'comfortable'),\n { path: 'strings', label: 'Text overrides', group: 'Content', valueType: PropertyValueType.Object, editorKind: PropertyEditorKind.StringMap, description: 'Replaces the text the component says itself, for localization.' },\n];\n\nconst key = (name: ComponentName) => componentRegistryKey(defaultBlueprintName, name);\n\nconst formats = { [NumberFormat.Number]: 'Number', [NumberFormat.Currency]: 'Currency', [NumberFormat.Percent]: 'Percent', [NumberFormat.Compact]: 'Compact' };\n\n/** What can be edited on the foundation components (Part B 4). Each declares the shape of its data, never values (SD1). */\nexport const foundationDescriptors: ComponentDescriptor[] = [\n {\n component: key(ComponentName.EmptyState),\n displayName: 'Empty state',\n description: 'An icon, a headline, a hint and one primary action; embeddable in any region.',\n properties: [\n text('headline', 'Headline', 'Content', undefined, { default: 'Nothing here yet' }),\n text('hint', 'Hint', 'Content'),\n text('icon', 'Icon', 'Appearance'),\n text('actionLabel', 'Primary action', 'Behavior', 'The label of the one action the state offers; its behaviors say what it does.'),\n rule('actionPermission', 'Action permission', 'Whether the action works, refuses with a reason, or is not rendered.'),\n text('locale', 'Locale', 'Content'),\n { path: 'strings', label: 'Text overrides', group: 'Content', valueType: PropertyValueType.Object, editorKind: PropertyEditorKind.StringMap },\n ],\n },\n {\n component: key(ComponentName.StatCard),\n displayName: 'Stat card',\n description: 'One key figure with its label, trend and the period the trend is compared to.',\n properties: [\n text('label', 'Label', 'Content', 'What the figure measures.', { constraints: { required: true } }),\n number('value', 'Value', 'Data', 'The figure; bind it to a query result.'),\n choice('format', 'Format', 'Appearance', formats, NumberFormat.Number),\n text('currency', 'Currency', 'Appearance', 'The ISO 4217 code when the format is currency.'),\n number('fractionDigits', 'Fraction digits', 'Appearance'),\n number('change', 'Change', 'Data', 'How much the figure moved, as a percentage; bind it to a query result.'),\n choice('goodDirection', 'Good direction', 'Appearance', { up: 'Up is good', down: 'Down is good' }, 'up', 'Which movement is good: a falling response time is.'),\n text('comparison', 'Compared to', 'Content', 'The period the change is compared to, for example \"last month\".'),\n ...standardStateProperties.filter(property => property.path !== 'label'),\n ],\n },\n {\n component: key(ComponentName.TrendChip),\n displayName: 'Trend chip',\n description: 'A change drawn as a direction, a magnitude and whether the movement is good.',\n properties: [\n number('change', 'Change', 'Data', 'The movement; bind it to a query result.'),\n choice('format', 'Format', 'Appearance', formats, NumberFormat.Percent),\n choice('goodDirection', 'Good direction', 'Appearance', { up: 'Up is good', down: 'Down is good' }, 'up'),\n text('comparison', 'Compared to', 'Content'),\n text('locale', 'Locale', 'Content'),\n { path: 'strings', label: 'Text overrides', group: 'Content', valueType: PropertyValueType.Object, editorKind: PropertyEditorKind.StringMap },\n ],\n },\n {\n component: key(ComponentName.StatusChip),\n displayName: 'Status chip',\n description: 'A status shown as a semantic color, an icon and its text; the text is always shown.',\n properties: [\n text('status', 'Status', 'Data', 'The status text; bind it to a query result.', { constraints: { required: true } }),\n choice('tone', 'Tone', 'Appearance', {\n [StatusTone.Success]: 'Success', [StatusTone.Warning]: 'Warning', [StatusTone.Danger]: 'Danger', [StatusTone.Info]: 'Info', [StatusTone.Neutral]: 'Neutral',\n }, StatusTone.Neutral, 'The tone picks the icon and the theme color.'),\n ],\n },\n {\n component: key(ComponentName.ChartWrapper),\n displayName: 'Chart',\n description: 'One chart - line, bar, stacked, donut or funnel - with a legend and a table of the same data. A donut and a funnel draw the first series.',\n properties: [\n text('title', 'Title', 'Content'),\n choice('kind', 'Chart type', 'Appearance', {\n [ChartKind.Line]: 'Line', [ChartKind.Bar]: 'Bar', [ChartKind.Stacked]: 'Stacked bar', [ChartKind.Donut]: 'Donut', [ChartKind.Funnel]: 'Funnel',\n }, ChartKind.Line),\n { path: 'categories', label: 'Categories', group: 'Data', valueType: PropertyValueType.Json, editorKind: PropertyEditorKind.StringList, default: [], acceptedBindingKinds: bindable, description: 'The label of each point, bar or slice, in order.' },\n {\n ...list('series', 'Series', 'Data', 'Series', [\n text('name', 'Name', 'Data', undefined, { constraints: { required: true } }),\n { path: 'values', label: 'Values', group: 'Data', valueType: PropertyValueType.Json, editorKind: PropertyEditorKind.NumberList, default: [], description: 'One value for each category.' },\n ], 'What is plotted: a named list of values, one per category.'),\n acceptedBindingKinds: bindable,\n },\n choice('format', 'Value format', 'Appearance', formats, NumberFormat.Number),\n text('currency', 'Currency', 'Appearance', 'The ISO 4217 code when the format is currency.'),\n ...standardStateProperties.filter(property => property.path !== 'label'),\n ],\n },\n {\n component: key(ComponentName.FilterBuilder),\n displayName: 'Filter builder',\n description: 'Conditions on fields, joined by AND or OR in groups that nest three deep. The filter is published as the value output; the component filters nothing itself.',\n properties: [\n {\n ...list('fields', 'Fields', 'Data', 'Field', [\n text('name', 'Name', 'Data', 'The result field the condition tests.', { constraints: { required: true }, editorKind: PropertyEditorKind.Field }),\n text('label', 'Label', 'Content'),\n choice('type', 'Type', 'Data', {\n [FilterFieldType.Text]: 'Text', [FilterFieldType.Number]: 'Number', [FilterFieldType.Date]: 'Date', [FilterFieldType.Select]: 'Select', [FilterFieldType.Boolean]: 'Yes / no',\n }, FilterFieldType.Text, 'Decides the operators offered.'),\n { path: 'options', label: 'Options', group: 'Data', valueType: PropertyValueType.Json, editorKind: PropertyEditorKind.StringList, default: [], description: 'The choices of a select field.' },\n ], 'What can be filtered.'),\n acceptedBindingKinds: bindable,\n },\n { path: 'filter', label: 'Initial filter', group: 'Data', valueType: PropertyValueType.Object, acceptedBindingKinds: bindable, description: 'A filter to start from, usually bound to the active saved view.' },\n rule('editPermission', 'Edit permission', 'Enabled lets the user change the filter; disabled shows it read-only.'),\n valueOutputProperty(PropertyValueType.Object, 'The filter as the user has built it: { operator, conditions, groups }, published as it changes.'),\n ...standardStateProperties,\n ],\n },\n {\n component: key(ComponentName.ColumnChooser),\n displayName: 'Column chooser',\n description: 'Which columns a table shows, and in what order. Publishes the ordered ids of the visible columns as the value output.',\n properties: [\n {\n ...list('columns', 'Columns', 'Data', 'Column', [\n text('id', 'Id', 'Data', 'The result field the column shows.', { constraints: { required: true }, editorKind: PropertyEditorKind.Field }),\n text('label', 'Label', 'Content'),\n flag('visible', 'Visible', 'Content', 'Whether the column starts shown.', { default: true }),\n flag('locked', 'Always shown', 'Content', 'A locked column cannot be hidden: the identifying column is.'),\n ], 'What could be shown.'),\n acceptedBindingKinds: bindable,\n },\n valueOutputProperty(PropertyValueType.Json, 'The ids of the visible columns, in order, published as the user changes them.'),\n ...standardStateProperties,\n ],\n },\n {\n component: key(ComponentName.SavedViewsMenu),\n displayName: 'Saved views menu',\n description: 'A list\\'s saved views as a menu button, with the current view as its label. Publishes the chosen view id as the value output.',\n properties: [\n {\n ...list('views', 'Views', 'Data', 'View', [\n text('id', 'Id', 'Data', undefined, { constraints: { required: true } }),\n text('label', 'Label', 'Content'),\n text('description', 'Description', 'Content'),\n ], 'The choices.'),\n acceptedBindingKinds: bindable,\n },\n text('activeView', 'Active view', 'Data', 'The id of the view in force; bind it to start from a view.'),\n rule('savePermission', 'Save permission', 'Whether \"Save current view\" works, refuses with a reason, or is not shown.'),\n rule('managePermission', 'Manage permission', 'Whether \"Manage views\" works, refuses with a reason, or is not shown.'),\n valueOutputProperty(PropertyValueType.String, 'The id of the chosen view, published as the user chooses.'),\n { path: 'action', label: 'Requested action', group: 'Outputs', valueType: PropertyValueType.String, readOnly: true, output: true, description: '\"save\" or \"manage\" when the user asks for it; the host acts on it.' },\n ...standardStateProperties,\n ],\n },\n {\n component: key(ComponentName.ChecklistSection),\n displayName: 'Checklist',\n description: 'Sections of tasks with an owner and due date each and a progress bar per section. Publishes the ids of the done tasks as the value output.',\n properties: [\n {\n ...list('sections', 'Sections', 'Data', 'Section', [\n text('title', 'Title', 'Content', undefined, { constraints: { required: true } }),\n list('items', 'Tasks', 'Data', 'Task', [\n text('id', 'Id', 'Data', undefined, { constraints: { required: true } }),\n text('label', 'Task', 'Content', undefined, { constraints: { required: true } }),\n text('owner', 'Owner', 'Data'),\n text('due', 'Due date', 'Data', 'An ISO 8601 date.'),\n flag('done', 'Done', 'Data'),\n ]),\n ], 'The groups of tasks.'),\n acceptedBindingKinds: bindable,\n },\n text('today', 'Today', 'Content', 'The date overdue is judged against; empty is the current date.'),\n rule('editPermission', 'Edit permission', 'Enabled lets the user tick tasks; otherwise they are shown read-only.'),\n valueOutputProperty(PropertyValueType.Json, 'The ids of the done tasks, published as the user ticks them.'),\n ...standardStateProperties,\n ],\n },\n {\n component: key(ComponentName.ActivityFeed),\n displayName: 'Activity feed',\n description: 'What happened to a record, grouped by day. Content is supplied by the application; this lays it out.',\n properties: [\n {\n ...list('entries', 'Entries', 'Data', 'Entry', [\n text('id', 'Id', 'Data', undefined, { constraints: { required: true } }),\n text('actor', 'Who', 'Data'),\n text('action', 'What', 'Data'),\n choice('kind', 'Kind', 'Data', {\n [ActivityKind.Comment]: 'Comment', [ActivityKind.Change]: 'Change', [ActivityKind.Status]: 'Status', [ActivityKind.System]: 'System',\n }, ActivityKind.System),\n text('at', 'When', 'Data', 'An ISO 8601 date and time.', { constraints: { required: true } }),\n text('body', 'Text', 'Data', 'A comment\\'s text or the detail of a change.', { editorOptions: { multiline: true } }),\n ], 'What happened.'),\n acceptedBindingKinds: bindable,\n },\n choice('order', 'Order', 'Appearance', { descending: 'Newest first', ascending: 'Oldest first' }, 'descending'),\n text('timeZone', 'Time zone', 'Content', 'The IANA zone days are cut in; empty is the reader\\'s.'),\n ...standardStateProperties,\n ],\n },\n {\n component: key(ComponentName.AvatarStack),\n displayName: 'Avatar stack',\n description: 'Overlapping avatars for the people on a record, with a \"+N\" chip for the rest.',\n properties: [\n {\n ...list('people', 'People', 'Data', 'Person', [\n text('name', 'Name', 'Data', undefined, { constraints: { required: true } }),\n text('imageUrl', 'Picture', 'Data', 'Without one the initials are shown.'),\n ], 'Who is shown.'),\n acceptedBindingKinds: bindable,\n },\n number('max', 'Shown at most', 'Appearance', 'How many avatars before the rest fold into \"+N\".', { default: 4, constraints: { minimum: 1, integer: true } }),\n choice('size', 'Size', 'Appearance', { small: 'Small', medium: 'Medium' }, 'medium'),\n ...standardStateProperties,\n ],\n },\n {\n component: key(ComponentName.FileUploader),\n displayName: 'File uploader',\n description: 'A drop zone and a button to choose files, checked against type and size before anything is sent. Publishes the selection as the value output.',\n properties: [\n text('accept', 'Accepted types', 'Behavior', 'Extensions, MIME types and wildcards separated by commas, for example \".pdf, image/*\".'),\n number('maxSizeMb', 'Largest file (MB)', 'Behavior', undefined, { constraints: { minimum: 0 } }),\n flag('multiple', 'Several files', 'Behavior', undefined, { default: true }),\n text('serverUrl', 'Upload address', 'Behavior', 'Handed to the host\\'s upload handler.'),\n rule('actionPermission', 'Upload permission', 'Whether files can be chosen or dropped, refused with a reason, or the control is hidden.'),\n valueOutputProperty(PropertyValueType.Json, 'The files chosen - name, size, type and status - published as they change.'),\n ...standardStateProperties.filter(property => property.path !== 'actionPermission'),\n ],\n },\n];\n\n"],"names":["bindable","BindingSourceKind","DataContext","QueryResult","ComponentProperty","text","path","label","group","description","extra","valueType","PropertyValueType","String","acceptedBindingKinds","undefined","number","Number","editorKind","PropertyEditorKind","flag","Boolean","choice","values","defaultValue","Enum","default","choices","Object","entries","map","value","name","list","itemLabel","properties","Collection","item","rule","PermissionRule","Enabled","Disabled","Hidden","standardStateProperties","ComponentState","Ready","Loading","Empty","Error","NoPermission","Partial","Json","StringList","comfortable","compact","StringMap","key","componentRegistryKey","defaultBlueprintName","formats","NumberFormat","Currency","Percent","Compact","foundationDescriptors","component","ComponentName","EmptyState","displayName","StatCard","constraints","required","up","down","filter","property","TrendChip","StatusChip","StatusTone","Success","Warning","Danger","Info","Neutral","ChartWrapper","ChartKind","Line","Bar","Stacked","Donut","Funnel","NumberList","FilterBuilder","Field","FilterFieldType","Text","Date","Select","valueOutputProperty","ColumnChooser","SavedViewsMenu","readOnly","output","ChecklistSection","ActivityFeed","ActivityKind","Comment","Change","Status","System","editorOptions","multiline","descending","ascending","AvatarStack","minimum","integer","small","medium","FileUploader"],"mappings":";;;;;;;;;;;;AAAA;AACA;AAcA,yHACO,MAAMA,QAAAA,GAAW;AAACC,IAAAA,iBAAAA,CAAkBC,WAAW;AAAED,IAAAA,iBAAAA,CAAkBE,WAAW;AAAEF,IAAAA,iBAAAA,CAAkBG;;AAEzG,M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Samples.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AASlD,MAAM,WAAW,gBAAgB;IAE7B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGpC,IAAI,EAAE,MAAM,EAAE,CAAC;IAGf,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAwB9D,CAAC;AAGF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,cAAc,GAAG,iBAAiB,CAQ/H"}
1
+ {"version":3,"file":"foundationSamples.d.ts","sourceRoot":"","sources":["../../../foundation/foundationSamples.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AASlD,MAAM,WAAW,gBAAgB;IAE7B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGpC,IAAI,EAAE,MAAM,EAAE,CAAC;IAGf,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAqD9D,CAAC;AAGF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,cAAc,GAAG,iBAAiB,CAQ/H"}
@@ -177,6 +177,120 @@ const foundationSamples = {
177
177
  'Mine'
178
178
  ],
179
179
  stateful: true
180
+ },
181
+ [ComponentName.ChecklistSection]: {
182
+ properties: {
183
+ today: '2026-03-10',
184
+ locale: 'en-US',
185
+ sections: [
186
+ {
187
+ title: 'Before day one',
188
+ items: [
189
+ {
190
+ id: 't1',
191
+ label: 'Send the contract',
192
+ owner: 'Grace',
193
+ due: '2026-03-01',
194
+ done: true
195
+ },
196
+ {
197
+ id: 't2',
198
+ label: 'Order a laptop',
199
+ owner: 'Linus',
200
+ due: '2026-03-05'
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ title: 'First week',
206
+ items: [
207
+ {
208
+ id: 't3',
209
+ label: 'Security training',
210
+ owner: 'Ada',
211
+ due: '2026-03-20'
212
+ }
213
+ ]
214
+ }
215
+ ]
216
+ },
217
+ data: [
218
+ 'Send the contract',
219
+ '1 of 2 complete'
220
+ ],
221
+ stateful: true
222
+ },
223
+ [ComponentName.ActivityFeed]: {
224
+ properties: {
225
+ locale: 'en-US',
226
+ timeZone: 'UTC',
227
+ entries: [
228
+ {
229
+ id: 'a1',
230
+ actor: 'Ada Lovelace',
231
+ action: 'commented',
232
+ kind: 'comment',
233
+ at: '2026-03-10T09:30:00Z',
234
+ body: 'Sent the revised quote.'
235
+ },
236
+ {
237
+ id: 'a2',
238
+ actor: 'Grace Hopper',
239
+ action: 'changed the owner to Linus',
240
+ kind: 'change',
241
+ at: '2026-03-09T16:00:00Z'
242
+ },
243
+ {
244
+ id: 'a3',
245
+ actor: 'System',
246
+ action: 'marked the deal as qualified',
247
+ kind: 'status',
248
+ at: '2026-03-09T08:00:00Z'
249
+ }
250
+ ]
251
+ },
252
+ data: [
253
+ 'Sent the revised quote.'
254
+ ],
255
+ stateful: true
256
+ },
257
+ [ComponentName.AvatarStack]: {
258
+ properties: {
259
+ people: [
260
+ {
261
+ name: 'Ada Lovelace'
262
+ },
263
+ {
264
+ name: 'Grace Hopper'
265
+ },
266
+ {
267
+ name: 'Linus Torvalds'
268
+ },
269
+ {
270
+ name: 'Margaret Hamilton'
271
+ },
272
+ {
273
+ name: 'Alan Turing'
274
+ },
275
+ {
276
+ name: 'Barbara Liskov'
277
+ }
278
+ ],
279
+ max: 4
280
+ },
281
+ data: [
282
+ '+2'
283
+ ],
284
+ stateful: true
285
+ },
286
+ [ComponentName.FileUploader]: {
287
+ properties: {
288
+ accept: '.pdf, image/*',
289
+ maxSizeMb: 10,
290
+ multiple: true
291
+ },
292
+ data: [],
293
+ stateful: true
180
294
  }
181
295
  };
182
296
  /** A scene element for a foundation component, populated with its sample unless properties are given, with the state forced when asked. */ function foundationElement(name, properties, state) {