@cratis/scene.blueprint.default 4.39.0 → 4.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ComponentName.ts +27 -0
- package/defaultBlueprintComponents.ts +10 -1
- package/dist/cjs/ComponentName.js +9 -0
- package/dist/cjs/ComponentName.js.map +1 -1
- package/dist/cjs/defaultBlueprintComponents.js +19 -1
- package/dist/cjs/defaultBlueprintComponents.js.map +1 -1
- package/dist/cjs/foundation/BulkBar.js +62 -0
- package/dist/cjs/foundation/BulkBar.js.map +1 -0
- package/dist/cjs/foundation/DataList.js +436 -0
- package/dist/cjs/foundation/DataList.js.map +1 -0
- package/dist/cjs/foundation/FormScreenBody.js +447 -0
- package/dist/cjs/foundation/FormScreenBody.js.map +1 -0
- package/dist/cjs/foundation/FoundationStates.js +2 -1
- package/dist/cjs/foundation/FoundationStates.js.map +1 -1
- package/dist/cjs/foundation/GlobalSearch.js +54 -0
- package/dist/cjs/foundation/GlobalSearch.js.map +1 -0
- package/dist/cjs/foundation/KanbanBoard.js +222 -0
- package/dist/cjs/foundation/KanbanBoard.js.map +1 -0
- package/dist/cjs/foundation/NotificationsButton.js +45 -0
- package/dist/cjs/foundation/NotificationsButton.js.map +1 -0
- package/dist/cjs/foundation/SubNavigation.js +72 -0
- package/dist/cjs/foundation/SubNavigation.js.map +1 -0
- package/dist/cjs/foundation/TabSet.js +101 -0
- package/dist/cjs/foundation/TabSet.js.map +1 -0
- package/dist/cjs/foundation/WizardProgress.js +185 -0
- package/dist/cjs/foundation/WizardProgress.js.map +1 -0
- package/dist/cjs/foundation/boardModel.js +67 -0
- package/dist/cjs/foundation/boardModel.js.map +1 -0
- package/dist/cjs/foundation/formModel.js +158 -0
- package/dist/cjs/foundation/formModel.js.map +1 -0
- package/dist/cjs/foundation/foundationComponentMetadata.js +54 -0
- package/dist/cjs/foundation/foundationComponentMetadata.js.map +1 -1
- package/dist/cjs/foundation/foundationDescriptors.js +400 -0
- package/dist/cjs/foundation/foundationDescriptors.js.map +1 -1
- package/dist/cjs/foundation/foundationSamples.js +303 -0
- package/dist/cjs/foundation/foundationSamples.js.map +1 -1
- package/dist/cjs/foundation/foundationStrings.js +72 -0
- package/dist/cjs/foundation/foundationStrings.js.map +1 -1
- package/dist/cjs/foundation/listModel.js +200 -0
- package/dist/cjs/foundation/listModel.js.map +1 -0
- package/dist/cjs/foundation/tabModel.js +41 -0
- package/dist/cjs/foundation/tabModel.js.map +1 -0
- package/dist/cjs/foundation/urlState.js +57 -0
- package/dist/cjs/foundation/urlState.js.map +1 -0
- package/dist/cjs/foundation/useCompactWidth.js +23 -0
- package/dist/cjs/foundation/useCompactWidth.js.map +1 -0
- package/dist/cjs/foundation/wizardModel.js +50 -0
- package/dist/cjs/foundation/wizardModel.js.map +1 -0
- package/dist/cjs/index.js +71 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/ComponentName.d.ts +10 -1
- package/dist/esm/ComponentName.d.ts.map +1 -1
- package/dist/esm/ComponentName.js +9 -0
- package/dist/esm/ComponentName.js.map +1 -1
- package/dist/esm/defaultBlueprintComponents.d.ts.map +1 -1
- package/dist/esm/defaultBlueprintComponents.js +19 -1
- package/dist/esm/defaultBlueprintComponents.js.map +1 -1
- package/dist/esm/foundation/BulkBar.d.ts +4 -0
- package/dist/esm/foundation/BulkBar.d.ts.map +1 -0
- package/dist/esm/foundation/BulkBar.js +59 -0
- package/dist/esm/foundation/BulkBar.js.map +1 -0
- package/dist/esm/foundation/DataList.d.ts +3 -0
- package/dist/esm/foundation/DataList.d.ts.map +1 -0
- package/dist/esm/foundation/DataList.js +434 -0
- package/dist/esm/foundation/DataList.js.map +1 -0
- package/dist/esm/foundation/FormScreenBody.d.ts +3 -0
- package/dist/esm/foundation/FormScreenBody.d.ts.map +1 -0
- package/dist/esm/foundation/FormScreenBody.js +445 -0
- package/dist/esm/foundation/FormScreenBody.js.map +1 -0
- package/dist/esm/foundation/FoundationStates.js +2 -1
- package/dist/esm/foundation/FoundationStates.js.map +1 -1
- package/dist/esm/foundation/GlobalSearch.d.ts +3 -0
- package/dist/esm/foundation/GlobalSearch.d.ts.map +1 -0
- package/dist/esm/foundation/GlobalSearch.js +52 -0
- package/dist/esm/foundation/GlobalSearch.js.map +1 -0
- package/dist/esm/foundation/KanbanBoard.d.ts +3 -0
- package/dist/esm/foundation/KanbanBoard.d.ts.map +1 -0
- package/dist/esm/foundation/KanbanBoard.js +220 -0
- package/dist/esm/foundation/KanbanBoard.js.map +1 -0
- package/dist/esm/foundation/NotificationsButton.d.ts +3 -0
- package/dist/esm/foundation/NotificationsButton.d.ts.map +1 -0
- package/dist/esm/foundation/NotificationsButton.js +43 -0
- package/dist/esm/foundation/NotificationsButton.js.map +1 -0
- package/dist/esm/foundation/SubNavigation.d.ts +3 -0
- package/dist/esm/foundation/SubNavigation.d.ts.map +1 -0
- package/dist/esm/foundation/SubNavigation.js +70 -0
- package/dist/esm/foundation/SubNavigation.js.map +1 -0
- package/dist/esm/foundation/TabSet.d.ts +3 -0
- package/dist/esm/foundation/TabSet.d.ts.map +1 -0
- package/dist/esm/foundation/TabSet.js +99 -0
- package/dist/esm/foundation/TabSet.js.map +1 -0
- package/dist/esm/foundation/WizardProgress.d.ts +3 -0
- package/dist/esm/foundation/WizardProgress.d.ts.map +1 -0
- package/dist/esm/foundation/WizardProgress.js +183 -0
- package/dist/esm/foundation/WizardProgress.js.map +1 -0
- package/dist/esm/foundation/boardModel.d.ts +22 -0
- package/dist/esm/foundation/boardModel.d.ts.map +1 -0
- package/dist/esm/foundation/boardModel.js +61 -0
- package/dist/esm/foundation/boardModel.js.map +1 -0
- package/dist/esm/foundation/formModel.d.ts +48 -0
- package/dist/esm/foundation/formModel.d.ts.map +1 -0
- package/dist/esm/foundation/formModel.js +147 -0
- package/dist/esm/foundation/formModel.js.map +1 -0
- package/dist/esm/foundation/foundationComponentMetadata.d.ts.map +1 -1
- package/dist/esm/foundation/foundationComponentMetadata.js +54 -0
- package/dist/esm/foundation/foundationComponentMetadata.js.map +1 -1
- package/dist/esm/foundation/foundationDescriptors.d.ts.map +1 -1
- package/dist/esm/foundation/foundationDescriptors.js +400 -0
- package/dist/esm/foundation/foundationDescriptors.js.map +1 -1
- package/dist/esm/foundation/foundationSamples.d.ts.map +1 -1
- package/dist/esm/foundation/foundationSamples.js +303 -0
- package/dist/esm/foundation/foundationSamples.js.map +1 -1
- package/dist/esm/foundation/foundationStrings.d.ts +72 -0
- package/dist/esm/foundation/foundationStrings.d.ts.map +1 -1
- package/dist/esm/foundation/foundationStrings.js +72 -0
- package/dist/esm/foundation/foundationStrings.js.map +1 -1
- package/dist/esm/foundation/index.d.ts +16 -0
- package/dist/esm/foundation/index.d.ts.map +1 -1
- package/dist/esm/foundation/index.js +16 -0
- package/dist/esm/foundation/index.js.map +1 -1
- package/dist/esm/foundation/listModel.d.ts +49 -0
- package/dist/esm/foundation/listModel.d.ts.map +1 -0
- package/dist/esm/foundation/listModel.js +183 -0
- package/dist/esm/foundation/listModel.js.map +1 -0
- package/dist/esm/foundation/tabModel.d.ts +10 -0
- package/dist/esm/foundation/tabModel.d.ts.map +1 -0
- package/dist/esm/foundation/tabModel.js +37 -0
- package/dist/esm/foundation/tabModel.js.map +1 -0
- package/dist/esm/foundation/urlState.d.ts +4 -0
- package/dist/esm/foundation/urlState.d.ts.map +1 -0
- package/dist/esm/foundation/urlState.js +53 -0
- package/dist/esm/foundation/urlState.js.map +1 -0
- package/dist/esm/foundation/useCompactWidth.d.ts +3 -0
- package/dist/esm/foundation/useCompactWidth.d.ts.map +1 -0
- package/dist/esm/foundation/useCompactWidth.js +20 -0
- package/dist/esm/foundation/useCompactWidth.js.map +1 -0
- package/dist/esm/foundation/wizardModel.d.ts +16 -0
- package/dist/esm/foundation/wizardModel.d.ts.map +1 -0
- package/dist/esm/foundation/wizardModel.js +43 -0
- package/dist/esm/foundation/wizardModel.js.map +1 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/foundation/BulkBar.tsx +38 -0
- package/foundation/DataList.tsx +208 -0
- package/foundation/FormScreenBody.tsx +196 -0
- package/foundation/FoundationStates.tsx +1 -1
- package/foundation/GlobalSearch.tsx +33 -0
- package/foundation/KanbanBoard.tsx +97 -0
- package/foundation/NotificationsButton.tsx +28 -0
- package/foundation/SubNavigation.tsx +49 -0
- package/foundation/TabSet.tsx +65 -0
- package/foundation/WizardProgress.tsx +109 -0
- package/foundation/boardModel.ts +64 -0
- package/foundation/formModel.ts +146 -0
- package/foundation/foundationComponentMetadata.ts +9 -0
- package/foundation/foundationDescriptors.ts +195 -0
- package/foundation/foundationSamples.ts +56 -0
- package/foundation/foundationStrings.ts +72 -0
- package/foundation/index.ts +16 -0
- package/foundation/listModel.ts +190 -0
- package/foundation/tabModel.ts +41 -0
- package/foundation/urlState.ts +52 -0
- package/foundation/useCompactWidth.ts +23 -0
- package/foundation/wizardModel.ts +54 -0
- package/package.json +8 -8
- package/shell/layout.css +513 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
|
|
5
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
6
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
7
|
+
/** Reads one query-string parameter of the current address, or undefined when it is absent or there is no address (server rendering). */ function readUrlParameter(name) {
|
|
8
|
+
if (typeof window === 'undefined') return undefined;
|
|
9
|
+
const value = new URLSearchParams(window.location.search).get(name);
|
|
10
|
+
return value === null ? undefined : value;
|
|
11
|
+
}
|
|
12
|
+
/** Writes one query-string parameter to the address without adding a history entry; an undefined or empty value removes it. */ function writeUrlParameter(name, value) {
|
|
13
|
+
if (typeof window === 'undefined') return;
|
|
14
|
+
const parameters = new URLSearchParams(window.location.search);
|
|
15
|
+
if (value === undefined || value === '') parameters.delete(name);
|
|
16
|
+
else parameters.set(name, value);
|
|
17
|
+
const query = parameters.toString();
|
|
18
|
+
window.history.replaceState(window.history.state, '', `${window.location.pathname}${query.length > 0 ? `?${query}` : ''}${window.location.hash}`);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* State that lives in the address bar: a list's search, sort, page and filters, a master/detail's selection, a module's active section.
|
|
22
|
+
*
|
|
23
|
+
* It starts from the address when the address has a value (so a shared link, a refresh and the back button restore the screen as it was),
|
|
24
|
+
* otherwise from the fallback the template supplies. Changing it rewrites the address in place and does not add a history entry per keystroke.
|
|
25
|
+
* Several components on one screen use distinct `key`s; a template names them (`q`, `sort`, `page`, `selected`, `section`). Without a
|
|
26
|
+
* `urlKey` the state is plain component state, which is what a gallery card and a design surface want.
|
|
27
|
+
*
|
|
28
|
+
* @param key The query-string parameter, or undefined to keep the state local.
|
|
29
|
+
* @param fallback The value used when the address has none.
|
|
30
|
+
* @returns The value and its setter.
|
|
31
|
+
*/ function useUrlState(key, fallback) {
|
|
32
|
+
const [value, setValue] = react.useState(()=>key === undefined ? fallback : readUrlParameter(key) ?? fallback);
|
|
33
|
+
react.useEffect(()=>{
|
|
34
|
+
if (key === undefined) return;
|
|
35
|
+
const restore = ()=>setValue(readUrlParameter(key) ?? fallback);
|
|
36
|
+
window.addEventListener('popstate', restore);
|
|
37
|
+
return ()=>window.removeEventListener('popstate', restore);
|
|
38
|
+
}, [
|
|
39
|
+
key,
|
|
40
|
+
fallback
|
|
41
|
+
]);
|
|
42
|
+
const update = react.useCallback((next)=>{
|
|
43
|
+
setValue(next);
|
|
44
|
+
if (key !== undefined) writeUrlParameter(key, next);
|
|
45
|
+
}, [
|
|
46
|
+
key
|
|
47
|
+
]);
|
|
48
|
+
return [
|
|
49
|
+
value,
|
|
50
|
+
update
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
exports.readUrlParameter = readUrlParameter;
|
|
55
|
+
exports.useUrlState = useUrlState;
|
|
56
|
+
exports.writeUrlParameter = writeUrlParameter;
|
|
57
|
+
//# sourceMappingURL=urlState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"urlState.js","sources":["../../../foundation/urlState.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 { useCallback, useEffect, useState } from 'react';\n\n/** Reads one query-string parameter of the current address, or undefined when it is absent or there is no address (server rendering). */\nexport function readUrlParameter(name: string): string | undefined {\n if (typeof window === 'undefined') return undefined;\n const value = new URLSearchParams(window.location.search).get(name);\n return value === null ? undefined : value;\n}\n\n/** Writes one query-string parameter to the address without adding a history entry; an undefined or empty value removes it. */\nexport function writeUrlParameter(name: string, value: string | undefined): void {\n if (typeof window === 'undefined') return;\n const parameters = new URLSearchParams(window.location.search);\n if (value === undefined || value === '') parameters.delete(name);\n else parameters.set(name, value);\n\n const query = parameters.toString();\n window.history.replaceState(window.history.state, '', `${window.location.pathname}${query.length > 0 ? `?${query}` : ''}${window.location.hash}`);\n}\n\n/**\n * State that lives in the address bar: a list's search, sort, page and filters, a master/detail's selection, a module's active section.\n *\n * It starts from the address when the address has a value (so a shared link, a refresh and the back button restore the screen as it was),\n * otherwise from the fallback the template supplies. Changing it rewrites the address in place and does not add a history entry per keystroke.\n * Several components on one screen use distinct `key`s; a template names them (`q`, `sort`, `page`, `selected`, `section`). Without a\n * `urlKey` the state is plain component state, which is what a gallery card and a design surface want.\n *\n * @param key The query-string parameter, or undefined to keep the state local.\n * @param fallback The value used when the address has none.\n * @returns The value and its setter.\n */\nexport function useUrlState(key: string | undefined, fallback: string | undefined): [string | undefined, (value: string | undefined) => void] {\n const [value, setValue] = useState<string | undefined>(() => (key === undefined ? fallback : readUrlParameter(key) ?? fallback));\n\n useEffect(() => {\n if (key === undefined) return;\n const restore = () => setValue(readUrlParameter(key) ?? fallback);\n window.addEventListener('popstate', restore);\n return () => window.removeEventListener('popstate', restore);\n }, [key, fallback]);\n\n const update = useCallback((next: string | undefined) => {\n setValue(next);\n if (key !== undefined) writeUrlParameter(key, next);\n }, [key]);\n\n return [value, update];\n}\n"],"names":["readUrlParameter","name","window","undefined","value","URLSearchParams","location","search","get","writeUrlParameter","parameters","delete","set","query","toString","history","replaceState","state","pathname","length","hash","useUrlState","key","fallback","setValue","useState","useEffect","restore","addEventListener","removeEventListener","update","useCallback","next"],"mappings":";;;;AAAA;AACA;AAIA,0IACO,SAASA,gBAAAA,CAAiBC,IAAY,EAAA;IACzC,IAAI,OAAOC,MAAAA,KAAW,WAAA,EAAa,OAAOC,SAAAA;IAC1C,MAAMC,KAAAA,GAAQ,IAAIC,eAAAA,CAAgBH,MAAAA,CAAOI,QAAQ,CAACC,MAAM,CAAA,CAAEC,GAAG,CAACP,IAAAA,CAAAA;IAC9D,OAAOG,KAAAA,KAAU,OAAOD,SAAAA,GAAYC,KAAAA;AACxC;AAEA,gIACO,SAASK,iBAAAA,CAAkBR,IAAY,EAAEG,KAAyB,EAAA;IACrE,IAAI,OAAOF,WAAW,WAAA,EAAa;AACnC,IAAA,MAAMQ,aAAa,IAAIL,eAAAA,CAAgBH,MAAAA,CAAOI,QAAQ,CAACC,MAAM,CAAA;AAC7D,IAAA,IAAIH,UAAUD,SAAAA,IAAaC,KAAAA,KAAU,EAAA,EAAIM,UAAAA,CAAWC,MAAM,CAACV,IAAAA,CAAAA;SACtDS,UAAAA,CAAWE,GAAG,CAACX,IAAAA,EAAMG,KAAAA,CAAAA;IAE1B,MAAMS,KAAAA,GAAQH,WAAWI,QAAQ,EAAA;AACjCZ,IAAAA,MAAAA,CAAOa,OAAO,CAACC,YAAY,CAACd,MAAAA,CAAOa,OAAO,CAACE,KAAK,EAAE,EAAA,EAAI,CAAA,EAAGf,MAAAA,CAAOI,QAAQ,CAACY,QAAQ,CAAA,EAAGL,KAAAA,CAAMM,MAAM,GAAG,CAAA,GAAI,CAAC,CAAC,EAAEN,KAAAA,CAAAA,CAAO,GAAG,EAAA,CAAA,EAAKX,MAAAA,CAAOI,QAAQ,CAACc,IAAI,CAAA,CAAE,CAAA;AACpJ;AAEA;;;;;;;;;;;AAWC,IACM,SAASC,WAAAA,CAAYC,GAAuB,EAAEC,QAA4B,EAAA;IAC7E,MAAM,CAACnB,KAAAA,EAAOoB,QAAAA,CAAS,GAAGC,cAAAA,CAA6B,IAAOH,GAAAA,KAAQnB,SAAAA,GAAYoB,QAAAA,GAAWvB,gBAAAA,CAAiBsB,GAAAA,CAAAA,IAAQC,QAAAA,CAAAA;IAEtHG,eAAAA,CAAU,IAAA;AACN,QAAA,IAAIJ,QAAQnB,SAAAA,EAAW;AACvB,QAAA,MAAMwB,OAAAA,GAAU,IAAMH,QAAAA,CAASxB,gBAAAA,CAAiBsB,GAAAA,CAAAA,IAAQC,QAAAA,CAAAA;QACxDrB,MAAAA,CAAO0B,gBAAgB,CAAC,UAAA,EAAYD,OAAAA,CAAAA;AACpC,QAAA,OAAO,IAAMzB,MAAAA,CAAO2B,mBAAmB,CAAC,UAAA,EAAYF,OAAAA,CAAAA;IACxD,CAAA,EAAG;AAACL,QAAAA,GAAAA;AAAKC,QAAAA;AAAS,KAAA,CAAA;IAElB,MAAMO,MAAAA,GAASC,kBAAY,CAACC,IAAAA,GAAAA;QACxBR,QAAAA,CAASQ,IAAAA,CAAAA;QACT,IAAIV,GAAAA,KAAQnB,SAAAA,EAAWM,iBAAAA,CAAkBa,GAAAA,EAAKU,IAAAA,CAAAA;IAClD,CAAA,EAAG;AAACV,QAAAA;AAAI,KAAA,CAAA;IAER,OAAO;AAAClB,QAAAA,KAAAA;AAAO0B,QAAAA;AAAO,KAAA;AAC1B;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
|
|
5
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
6
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
7
|
+
/** The width below which a screen is a phone's: the collapse rules of Part B 1.3 (list to cards, master-detail to stack) apply under it. */ const compactQuery = '(max-width: 40rem)';
|
|
8
|
+
/** Whether the viewport is phone-wide, kept up to date. Without `matchMedia` (a test environment, server rendering) it is false, so the full layout renders. */ function useCompactWidth() {
|
|
9
|
+
const [compact, setCompact] = react.useState(()=>typeof window !== 'undefined' && typeof window.matchMedia === 'function' && window.matchMedia(compactQuery).matches);
|
|
10
|
+
react.useEffect(()=>{
|
|
11
|
+
if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') return;
|
|
12
|
+
const query = window.matchMedia(compactQuery);
|
|
13
|
+
const update = ()=>setCompact(query.matches);
|
|
14
|
+
update();
|
|
15
|
+
query.addEventListener('change', update);
|
|
16
|
+
return ()=>query.removeEventListener('change', update);
|
|
17
|
+
}, []);
|
|
18
|
+
return compact;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports.compactQuery = compactQuery;
|
|
22
|
+
exports.useCompactWidth = useCompactWidth;
|
|
23
|
+
//# sourceMappingURL=useCompactWidth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompactWidth.js","sources":["../../../foundation/useCompactWidth.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 { useEffect, useState } from 'react';\n\n/** The width below which a screen is a phone's: the collapse rules of Part B 1.3 (list to cards, master-detail to stack) apply under it. */\nexport const compactQuery = '(max-width: 40rem)';\n\n/** Whether the viewport is phone-wide, kept up to date. Without `matchMedia` (a test environment, server rendering) it is false, so the full layout renders. */\nexport function useCompactWidth(): boolean {\n const [compact, setCompact] = useState(() => typeof window !== 'undefined' && typeof window.matchMedia === 'function' && window.matchMedia(compactQuery).matches);\n\n useEffect(() => {\n if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') return;\n const query = window.matchMedia(compactQuery);\n const update = () => setCompact(query.matches);\n update();\n query.addEventListener('change', update);\n return () => query.removeEventListener('change', update);\n }, []);\n\n return compact;\n}\n"],"names":["compactQuery","useCompactWidth","compact","setCompact","useState","window","matchMedia","matches","useEffect","query","update","addEventListener","removeEventListener"],"mappings":";;;;AAAA;AACA;AAIA,6IACO,MAAMA,YAAAA,GAAe;AAE5B,iKACO,SAASC,eAAAA,GAAAA;AACZ,IAAA,MAAM,CAACC,OAAAA,EAASC,UAAAA,CAAW,GAAGC,cAAAA,CAAS,IAAM,OAAOC,MAAAA,KAAW,WAAA,IAAe,OAAOA,MAAAA,CAAOC,UAAU,KAAK,UAAA,IAAcD,OAAOC,UAAU,CAACN,cAAcO,OAAO,CAAA;IAEhKC,eAAAA,CAAU,IAAA;AACN,QAAA,IAAI,OAAOH,MAAAA,KAAW,WAAA,IAAe,OAAOA,MAAAA,CAAOC,UAAU,KAAK,UAAA,EAAY;QAC9E,MAAMG,KAAAA,GAAQJ,MAAAA,CAAOC,UAAU,CAACN,YAAAA,CAAAA;AAChC,QAAA,MAAMU,MAAAA,GAAS,IAAMP,UAAAA,CAAWM,KAAAA,CAAMF,OAAO,CAAA;AAC7CG,QAAAA,MAAAA,EAAAA;QACAD,KAAAA,CAAME,gBAAgB,CAAC,QAAA,EAAUD,MAAAA,CAAAA;AACjC,QAAA,OAAO,IAAMD,KAAAA,CAAMG,mBAAmB,CAAC,QAAA,EAAUF,MAAAA,CAAAA;AACrD,IAAA,CAAA,EAAG,EAAE,CAAA;IAEL,OAAOR,OAAAA;AACX;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/** One step of a wizard. */ /** Where a step stands for the person going through the wizard. */ var StepStatus = /*#__PURE__*/ function(StepStatus) {
|
|
6
|
+
StepStatus["Completed"] = "completed";
|
|
7
|
+
StepStatus["Current"] = "current";
|
|
8
|
+
StepStatus["Upcoming"] = "upcoming";
|
|
9
|
+
return StepStatus;
|
|
10
|
+
}({});
|
|
11
|
+
/** Reads steps, dropping those without an id and repeated ids. */ function readWizardSteps(value) {
|
|
12
|
+
if (!Array.isArray(value)) return [];
|
|
13
|
+
const seen = new Set();
|
|
14
|
+
return value.flatMap((entry)=>{
|
|
15
|
+
if (typeof entry !== 'object' || entry === null || Array.isArray(entry)) return [];
|
|
16
|
+
const { id, label, valid } = entry;
|
|
17
|
+
if (typeof id !== 'string' || id.length === 0 || seen.has(id)) return [];
|
|
18
|
+
seen.add(id);
|
|
19
|
+
return [
|
|
20
|
+
{
|
|
21
|
+
id,
|
|
22
|
+
label: typeof label === 'string' && label.length > 0 ? label : id,
|
|
23
|
+
valid: valid !== false
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/** The step to show: the requested one when it exists and every step before it is completed, else the furthest step that is reachable. A refresh can never land past a step that was not done. */ function reachableStep(steps, completed, requested) {
|
|
29
|
+
const wanted = steps.findIndex((step)=>step.id === requested);
|
|
30
|
+
let furthest = 0;
|
|
31
|
+
while(furthest < steps.length - 1 && completed.has(steps[furthest].id))furthest++;
|
|
32
|
+
return steps[wanted >= 0 && wanted <= furthest ? wanted : furthest]?.id;
|
|
33
|
+
}
|
|
34
|
+
/** The status of a step: the current one, a completed one (revisitable), or upcoming. */ function statusOf(completed, current, id) {
|
|
35
|
+
if (id === current) return "current";
|
|
36
|
+
return completed.has(id) ? "completed" : "upcoming";
|
|
37
|
+
}
|
|
38
|
+
/** Whether a step may be opened from the progress indicator: a completed one, the current one, or the next one when the current is done. */ function canOpen(steps, completed, id) {
|
|
39
|
+
const index = steps.findIndex((step)=>step.id === id);
|
|
40
|
+
return index === 0 || steps.slice(0, index).every((step)=>completed.has(step.id));
|
|
41
|
+
}
|
|
42
|
+
/** The step before or after another, or undefined at either end. */ const neighbour = (steps, id, direction)=>steps[steps.findIndex((step)=>step.id === id) + direction];
|
|
43
|
+
|
|
44
|
+
exports.StepStatus = StepStatus;
|
|
45
|
+
exports.canOpen = canOpen;
|
|
46
|
+
exports.neighbour = neighbour;
|
|
47
|
+
exports.reachableStep = reachableStep;
|
|
48
|
+
exports.readWizardSteps = readWizardSteps;
|
|
49
|
+
exports.statusOf = statusOf;
|
|
50
|
+
//# sourceMappingURL=wizardModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizardModel.js","sources":["../../../foundation/wizardModel.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\n/** One step of a wizard. */\nexport interface WizardStep {\n id: string;\n label: string;\n /** Whether the step's own fields are valid; a step that is not valid blocks Next. Defaults to true. */\n valid: boolean;\n}\n\n/** Where a step stands for the person going through the wizard. */\nexport enum StepStatus {\n Completed = 'completed',\n Current = 'current',\n Upcoming = 'upcoming',\n}\n\n/** Reads steps, dropping those without an id and repeated ids. */\nexport function readWizardSteps(value: unknown): WizardStep[] {\n if (!Array.isArray(value)) return [];\n\n const seen = new Set<string>();\n return value.flatMap((entry): WizardStep[] => {\n if (typeof entry !== 'object' || entry === null || Array.isArray(entry)) return [];\n const { id, label, valid } = entry as Record<string, unknown>;\n if (typeof id !== 'string' || id.length === 0 || seen.has(id)) return [];\n seen.add(id);\n return [{ id, label: typeof label === 'string' && label.length > 0 ? label : id, valid: valid !== false }];\n });\n}\n\n/** The step to show: the requested one when it exists and every step before it is completed, else the furthest step that is reachable. A refresh can never land past a step that was not done. */\nexport function reachableStep(steps: WizardStep[], completed: ReadonlySet<string>, requested: string | undefined): string | undefined {\n const wanted = steps.findIndex(step => step.id === requested);\n let furthest = 0;\n while (furthest < steps.length - 1 && completed.has(steps[furthest].id)) furthest++;\n return steps[wanted >= 0 && wanted <= furthest ? wanted : furthest]?.id;\n}\n\n/** The status of a step: the current one, a completed one (revisitable), or upcoming. */\nexport function statusOf(completed: ReadonlySet<string>, current: string | undefined, id: string): StepStatus {\n if (id === current) return StepStatus.Current;\n return completed.has(id) ? StepStatus.Completed : StepStatus.Upcoming;\n}\n\n/** Whether a step may be opened from the progress indicator: a completed one, the current one, or the next one when the current is done. */\nexport function canOpen(steps: WizardStep[], completed: ReadonlySet<string>, id: string): boolean {\n const index = steps.findIndex(step => step.id === id);\n return index === 0 || steps.slice(0, index).every(step => completed.has(step.id));\n}\n\n/** The step before or after another, or undefined at either end. */\nexport const neighbour = (steps: WizardStep[], id: string | undefined, direction: -1 | 1): WizardStep | undefined => steps[steps.findIndex(step => step.id === id) + direction];\n"],"names":["StepStatus","readWizardSteps","value","Array","isArray","seen","Set","flatMap","entry","id","label","valid","length","has","add","reachableStep","steps","completed","requested","wanted","findIndex","step","furthest","statusOf","current","canOpen","index","slice","every","neighbour","direction"],"mappings":";;AAAA;AACA;AAEA,iGASO,IAAA,UAAKA,iBAAAA,SAAAA,UAAAA,EAAAA;;;;AAAAA,IAAAA,OAAAA,UAAAA;AAIX,CAAA,CAAA,EAAA;AAED,mEACO,SAASC,eAAAA,CAAgBC,KAAc,EAAA;AAC1C,IAAA,IAAI,CAACC,KAAAA,CAAMC,OAAO,CAACF,KAAAA,CAAAA,EAAQ,OAAO,EAAE;AAEpC,IAAA,MAAMG,OAAO,IAAIC,GAAAA,EAAAA;IACjB,OAAOJ,KAAAA,CAAMK,OAAO,CAAC,CAACC,KAAAA,GAAAA;QAClB,IAAI,OAAOA,KAAAA,KAAU,QAAA,IAAYA,KAAAA,KAAU,IAAA,IAAQL,MAAMC,OAAO,CAACI,KAAAA,CAAAA,EAAQ,OAAO,EAAE;AAClF,QAAA,MAAM,EAAEC,EAAE,EAAEC,KAAK,EAAEC,KAAK,EAAE,GAAGH,KAAAA;AAC7B,QAAA,IAAI,OAAOC,EAAAA,KAAO,QAAA,IAAYA,EAAAA,CAAGG,MAAM,KAAK,CAAA,IAAKP,IAAAA,CAAKQ,GAAG,CAACJ,EAAAA,CAAAA,EAAK,OAAO,EAAE;AACxEJ,QAAAA,IAAAA,CAAKS,GAAG,CAACL,EAAAA,CAAAA;QACT,OAAO;AAA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CAAAA,CAAOE,KAAK,CAACP,CAAAA,IAAAA,GAAQJ,SAAAA,CAAUJ,GAAG,CAACQ,KAAKZ,EAAE,CAAA,CAAA;AACnF;AAEA,qEACO,MAAMoB,SAAAA,GAAY,CAACb,KAAAA,EAAqBP,EAAAA,EAAwBqB,YAA8Cd,KAAK,CAACA,MAAMI,SAAS,CAACC,CAAAA,IAAAA,GAAQA,IAAAA,CAAKZ,EAAE,KAAKA,EAAAA,CAAAA,GAAMqB;;;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -89,6 +89,22 @@ var orgModel = require('./foundation/orgModel.js');
|
|
|
89
89
|
var OrgTree = require('./foundation/OrgTree.js');
|
|
90
90
|
var permissionModel = require('./foundation/permissionModel.js');
|
|
91
91
|
var PermissionMatrix = require('./foundation/PermissionMatrix.js');
|
|
92
|
+
var urlState = require('./foundation/urlState.js');
|
|
93
|
+
var useCompactWidth = require('./foundation/useCompactWidth.js');
|
|
94
|
+
var listModel = require('./foundation/listModel.js');
|
|
95
|
+
var DataList = require('./foundation/DataList.js');
|
|
96
|
+
var tabModel = require('./foundation/tabModel.js');
|
|
97
|
+
var TabSet = require('./foundation/TabSet.js');
|
|
98
|
+
var SubNavigation = require('./foundation/SubNavigation.js');
|
|
99
|
+
var BulkBar = require('./foundation/BulkBar.js');
|
|
100
|
+
var GlobalSearch = require('./foundation/GlobalSearch.js');
|
|
101
|
+
var NotificationsButton = require('./foundation/NotificationsButton.js');
|
|
102
|
+
var boardModel = require('./foundation/boardModel.js');
|
|
103
|
+
var KanbanBoard = require('./foundation/KanbanBoard.js');
|
|
104
|
+
var wizardModel = require('./foundation/wizardModel.js');
|
|
105
|
+
var WizardProgress = require('./foundation/WizardProgress.js');
|
|
106
|
+
var formModel = require('./foundation/formModel.js');
|
|
107
|
+
var FormScreenBody = require('./foundation/FormScreenBody.js');
|
|
92
108
|
var foundationDescriptors = require('./foundation/foundationDescriptors.js');
|
|
93
109
|
var foundationComponentMetadata = require('./foundation/foundationComponentMetadata.js');
|
|
94
110
|
var foundationSamples = require('./foundation/foundationSamples.js');
|
|
@@ -375,6 +391,61 @@ exports.readRoles = permissionModel.readRoles;
|
|
|
375
391
|
exports.sectionsOf = permissionModel.sectionsOf;
|
|
376
392
|
exports.setGrant = permissionModel.setGrant;
|
|
377
393
|
exports.PermissionMatrix = PermissionMatrix.PermissionMatrix;
|
|
394
|
+
exports.readUrlParameter = urlState.readUrlParameter;
|
|
395
|
+
exports.useUrlState = urlState.useUrlState;
|
|
396
|
+
exports.writeUrlParameter = urlState.writeUrlParameter;
|
|
397
|
+
exports.compactQuery = useCompactWidth.compactQuery;
|
|
398
|
+
exports.useCompactWidth = useCompactWidth.useCompactWidth;
|
|
399
|
+
exports.CellKind = listModel.CellKind;
|
|
400
|
+
exports.ListVariant = listModel.ListVariant;
|
|
401
|
+
exports.filterRows = listModel.filterRows;
|
|
402
|
+
exports.formatSort = listModel.formatSort;
|
|
403
|
+
exports.groupRows = listModel.groupRows;
|
|
404
|
+
exports.nextSort = listModel.nextSort;
|
|
405
|
+
exports.paginate = listModel.paginate;
|
|
406
|
+
exports.parseSelection = listModel.parseSelection;
|
|
407
|
+
exports.parseSort = listModel.parseSort;
|
|
408
|
+
exports.readListColumns = listModel.readListColumns;
|
|
409
|
+
exports.readListVariant = listModel.readListVariant;
|
|
410
|
+
exports.rowId = listModel.rowId;
|
|
411
|
+
exports.searchRows = listModel.searchRows;
|
|
412
|
+
exports.sortRows = listModel.sortRows;
|
|
413
|
+
exports.textOf = listModel.textOf;
|
|
414
|
+
exports.toggleSelection = listModel.toggleSelection;
|
|
415
|
+
exports.DataList = DataList.DataList;
|
|
416
|
+
exports.activeTab = tabModel.activeTab;
|
|
417
|
+
exports.readTabs = tabModel.readTabs;
|
|
418
|
+
exports.stepTab = tabModel.stepTab;
|
|
419
|
+
exports.TabSet = TabSet.TabSet;
|
|
420
|
+
exports.SubNavigation = SubNavigation.SubNavigation;
|
|
421
|
+
exports.BulkBar = BulkBar.BulkBar;
|
|
422
|
+
exports.selectionCount = BulkBar.selectionCount;
|
|
423
|
+
exports.GlobalSearch = GlobalSearch.GlobalSearch;
|
|
424
|
+
exports.NotificationsButton = NotificationsButton.NotificationsButton;
|
|
425
|
+
exports.cardsOf = boardModel.cardsOf;
|
|
426
|
+
exports.moveCard = boardModel.moveCard;
|
|
427
|
+
exports.overLimit = boardModel.overLimit;
|
|
428
|
+
exports.readCards = boardModel.readCards;
|
|
429
|
+
exports.readColumnsOfBoard = boardModel.readColumnsOfBoard;
|
|
430
|
+
exports.KanbanBoard = KanbanBoard.KanbanBoard;
|
|
431
|
+
exports.StepStatus = wizardModel.StepStatus;
|
|
432
|
+
exports.canOpen = wizardModel.canOpen;
|
|
433
|
+
exports.neighbour = wizardModel.neighbour;
|
|
434
|
+
exports.reachableStep = wizardModel.reachableStep;
|
|
435
|
+
exports.readWizardSteps = wizardModel.readWizardSteps;
|
|
436
|
+
exports.statusOf = wizardModel.statusOf;
|
|
437
|
+
exports.WizardProgress = WizardProgress.WizardProgress;
|
|
438
|
+
exports.FormFieldType = formModel.FormFieldType;
|
|
439
|
+
exports.FormMode = formModel.FormMode;
|
|
440
|
+
exports.addressLines = formModel.addressLines;
|
|
441
|
+
exports.isFilled = formModel.isFilled;
|
|
442
|
+
exports.mapServerErrors = formModel.mapServerErrors;
|
|
443
|
+
exports.problemOf = formModel.problemOf;
|
|
444
|
+
exports.readFormMode = formModel.readFormMode;
|
|
445
|
+
exports.readFormSections = formModel.readFormSections;
|
|
446
|
+
exports.sameValues = formModel.sameValues;
|
|
447
|
+
exports.validate = formModel.validate;
|
|
448
|
+
exports.FormScreenBody = FormScreenBody.FormScreenBody;
|
|
378
449
|
exports.bindable = foundationDescriptors.bindable;
|
|
379
450
|
exports.foundationDescriptors = foundationDescriptors.foundationDescriptors;
|
|
380
451
|
exports.list = foundationDescriptors.list;
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -29,6 +29,15 @@ export declare enum ComponentName {
|
|
|
29
29
|
FileUploader = "fileUploader",
|
|
30
30
|
ApprovalChainStepper = "approvalChainStepper",
|
|
31
31
|
OrgTree = "orgTree",
|
|
32
|
-
PermissionMatrix = "permissionMatrix"
|
|
32
|
+
PermissionMatrix = "permissionMatrix",
|
|
33
|
+
DataList = "dataList",
|
|
34
|
+
TabSet = "tabSet",
|
|
35
|
+
SubNavigation = "subNavigation",
|
|
36
|
+
BulkBar = "bulkBar",
|
|
37
|
+
GlobalSearch = "globalSearch",
|
|
38
|
+
NotificationsButton = "notificationsButton",
|
|
39
|
+
KanbanBoard = "kanbanBoard",
|
|
40
|
+
WizardProgress = "wizardProgress",
|
|
41
|
+
FormScreenBody = "formScreenBody"
|
|
33
42
|
}
|
|
34
43
|
//# sourceMappingURL=ComponentName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentName.d.ts","sourceRoot":"","sources":["../../ComponentName.ts"],"names":[],"mappings":"AAWA,oBAAY,aAAa;IAErB,QAAQ,aAAa;IAGrB,aAAa,kBAAkB;IAG/B,MAAM,WAAW;IAGjB,OAAO,YAAY;IAGnB,IAAI,SAAS;IAGb,QAAQ,aAAa;IAGrB,UAAU,eAAe;IAGzB,MAAM,WAAW;IAGjB,UAAU,eAAe;IAGzB,WAAW,gBAAgB;IAG3B,UAAU,eAAe;IAGzB,IAAI,SAAS;IAGb,IAAI,SAAS;IAGb,QAAQ,aAAa;IAGrB,aAAa,kBAAkB;IAG/B,kBAAkB,uBAAuB;IAGzC,UAAU,eAAe;IAGzB,QAAQ,aAAa;IAGrB,SAAS,cAAc;IAGvB,UAAU,eAAe;IAGzB,YAAY,iBAAiB;IAG7B,aAAa,kBAAkB;IAG/B,aAAa,kBAAkB;IAG/B,cAAc,mBAAmB;IAGjC,gBAAgB,qBAAqB;IAGrC,YAAY,iBAAiB;IAG7B,WAAW,gBAAgB;IAG3B,YAAY,iBAAiB;IAG7B,oBAAoB,yBAAyB;IAG7C,OAAO,YAAY;IAGnB,gBAAgB,qBAAqB;
|
|
1
|
+
{"version":3,"file":"ComponentName.d.ts","sourceRoot":"","sources":["../../ComponentName.ts"],"names":[],"mappings":"AAWA,oBAAY,aAAa;IAErB,QAAQ,aAAa;IAGrB,aAAa,kBAAkB;IAG/B,MAAM,WAAW;IAGjB,OAAO,YAAY;IAGnB,IAAI,SAAS;IAGb,QAAQ,aAAa;IAGrB,UAAU,eAAe;IAGzB,MAAM,WAAW;IAGjB,UAAU,eAAe;IAGzB,WAAW,gBAAgB;IAG3B,UAAU,eAAe;IAGzB,IAAI,SAAS;IAGb,IAAI,SAAS;IAGb,QAAQ,aAAa;IAGrB,aAAa,kBAAkB;IAG/B,kBAAkB,uBAAuB;IAGzC,UAAU,eAAe;IAGzB,QAAQ,aAAa;IAGrB,SAAS,cAAc;IAGvB,UAAU,eAAe;IAGzB,YAAY,iBAAiB;IAG7B,aAAa,kBAAkB;IAG/B,aAAa,kBAAkB;IAG/B,cAAc,mBAAmB;IAGjC,gBAAgB,qBAAqB;IAGrC,YAAY,iBAAiB;IAG7B,WAAW,gBAAgB;IAG3B,YAAY,iBAAiB;IAG7B,oBAAoB,yBAAyB;IAG7C,OAAO,YAAY;IAGnB,gBAAgB,qBAAqB;IAGrC,QAAQ,aAAa;IAGrB,MAAM,WAAW;IAGjB,aAAa,kBAAkB;IAG/B,OAAO,YAAY;IAGnB,YAAY,iBAAiB;IAG7B,mBAAmB,wBAAwB;IAG3C,WAAW,gBAAgB;IAG3B,cAAc,mBAAmB;IAGjC,cAAc,mBAAmB;CACpC"}
|
|
@@ -39,6 +39,15 @@
|
|
|
39
39
|
/** The steps a request goes through, who decides each, and where it stands. */ ComponentName["ApprovalChainStepper"] = "approvalChainStepper";
|
|
40
40
|
/** An organization as an expandable tree. */ ComponentName["OrgTree"] = "orgTree";
|
|
41
41
|
/** Roles across, permissions down, a checkbox where they meet. */ ComponentName["PermissionMatrix"] = "permissionMatrix";
|
|
42
|
+
/** List of records as table, cards or grouped, with search, sort, paging, selection and row actions. */ ComponentName["DataList"] = "dataList";
|
|
43
|
+
/** Tabs with a panel for each, kept in the address. */ ComponentName["TabSet"] = "tabSet";
|
|
44
|
+
/** A module's sections as tabs or a left rail. */ ComponentName["SubNavigation"] = "subNavigation";
|
|
45
|
+
/** The bar that appears when records are selected, with the bulk actions. */ ComponentName["BulkBar"] = "bulkBar";
|
|
46
|
+
/** A search box for the topbar or a toolbar. */ ComponentName["GlobalSearch"] = "globalSearch";
|
|
47
|
+
/** The topbar bell with the unread count. */ ComponentName["NotificationsButton"] = "notificationsButton";
|
|
48
|
+
/** Columns mapped to a status with cards that move between them. */ ComponentName["KanbanBoard"] = "kanbanBoard";
|
|
49
|
+
/** The steps, back/next/finish and draft save of a linear wizard. */ ComponentName["WizardProgress"] = "wizardProgress";
|
|
50
|
+
/** Sections of validated fields with the save bar and unsaved-changes guard. */ ComponentName["FormScreenBody"] = "formScreenBody";
|
|
42
51
|
return ComponentName;
|
|
43
52
|
}({});
|
|
44
53
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentName.js","sources":["../../ComponentName.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\n/**\n * The bare names this package declares components under.\n *\n * A page template writes a bare name and `resolveComponentName` decides which active package wins it, so\n * these names are public API: renaming one breaks every template that referenced it, in this package and\n * in anyone else's. Keeping them in one enum means the manifest, the registry and every template\n * reference the same symbol, and the specs can prove all three agree rather than hoping they do.\n */\nexport enum ComponentName {\n /** The application shell - topbar, sidebar, breadcrumb, content, footer and an optional right panel. */\n AppShell = 'appShell',\n\n /** The chrome-less shell - content, an optional branding aside, and the configurator. */\n FullPageShell = 'fullPageShell',\n\n /** The fixed strip across the top of the application shell. */\n Topbar = 'topbar',\n\n /** The sidebar's own chrome, inside the shell-positioned panel. */\n Sidebar = 'sidebar',\n\n /** A navigation list. */\n Menu = 'menu',\n\n /** One entry in a navigation list, optionally with a submenu. */\n MenuItem = 'menuItem',\n\n /** The trail above the content. */\n Breadcrumb = 'breadcrumb',\n\n /** The strip below the content. */\n Footer = 'footer',\n\n /** The inspector panel down the right-hand edge. */\n RightPanel = 'rightPanel',\n\n /** The floating configurator: color scheme, layout mode, menu theme and theme. */\n ConfigPanel = 'configPanel',\n\n /** A screen's title, subtitle and actions. */\n PageHeader = 'pageHeader',\n\n /** The scrim behind a floating sidebar, which also closes it. */\n Mask = 'mask',\n\n /** The brand mark. */\n Logo = 'logo',\n\n /** The signed-in user's avatar and menu. */\n UserMenu = 'userMenu',\n\n /** Switches between the themes a host offers. */\n ThemeSwitcher = 'themeSwitcher',\n\n /** Switches between the layout modes. */\n LayoutModeSwitcher = 'layoutModeSwitcher',\n\n /** An icon, a headline, a hint and one primary action: what a region says when it has nothing to show. */\n EmptyState = 'emptyState',\n\n /** One key figure with its label, trend and comparison period. */\n StatCard = 'statCard',\n\n /** A change drawn as a direction, a magnitude and whether it is good. */\n TrendChip = 'trendChip',\n\n /** A status as a semantic color, an icon and its text. */\n StatusChip = 'statusChip',\n\n /** One chart - line, bar, stacked, donut or funnel - with its legend and a table of the same data. */\n ChartWrapper = 'chartWrapper',\n\n /** Conditions on fields, joined by AND or OR in nested groups. */\n FilterBuilder = 'filterBuilder',\n\n /** Which columns a table shows, and in what order. */\n ColumnChooser = 'columnChooser',\n\n /** A list's saved views as a menu button. */\n SavedViewsMenu = 'savedViewsMenu',\n\n /** Sections of tasks with owner, due date and progress. */\n ChecklistSection = 'checklistSection',\n\n /** What happened to a record, grouped by day. */\n ActivityFeed = 'activityFeed',\n\n /** Overlapping avatars for the people on a record. */\n AvatarStack = 'avatarStack',\n\n /** A drop zone and file picker with type and size checks. */\n FileUploader = 'fileUploader',\n\n /** The steps a request goes through, who decides each, and where it stands. */\n ApprovalChainStepper = 'approvalChainStepper',\n\n /** An organization as an expandable tree. */\n OrgTree = 'orgTree',\n\n /** Roles across, permissions down, a checkbox where they meet. */\n PermissionMatrix = 'permissionMatrix',\n}\n"],"names":["ComponentName"],"mappings":"AAAA;AACA;AAEA;;;;;;;IAQO,IAAKA,aAAAA,iBAAAA,SAAAA,aAAAA,EAAAA;6GAC8F,aAAA,CAAA,UAAA,CAAA,GAAA,UAAA;8FAGf,aAAA,CAAA,eAAA,CAAA,GAAA,eAAA;oEAG1B,aAAA,CAAA,QAAA,CAAA,GAAA,QAAA;wEAGI,aAAA,CAAA,SAAA,CAAA,GAAA,SAAA;8BAG1C,aAAA,CAAA,MAAA,CAAA,GAAA,MAAA;sEAGwC,aAAA,CAAA,UAAA,CAAA,GAAA,UAAA;wCAG9B,aAAA,CAAA,YAAA,CAAA,GAAA,YAAA;wCAGA,aAAA,CAAA,QAAA,CAAA,GAAA,QAAA;yDAGiB,aAAA,CAAA,YAAA,CAAA,GAAA,YAAA;uFAG8B,aAAA,CAAA,aAAA,CAAA,GAAA,aAAA;mDAGpC,aAAA,CAAA,YAAA,CAAA,GAAA,YAAA;sEAGmB,aAAA,CAAA,MAAA,CAAA,GAAA,MAAA;2BAG3C,aAAA,CAAA,MAAA,CAAA,GAAA,MAAA;iDAGsB,aAAA,CAAA,UAAA,CAAA,GAAA,UAAA;sDAGK,aAAA,CAAA,eAAA,CAAA,GAAA,eAAA;8CAGR,aAAA,CAAA,oBAAA,CAAA,GAAA,oBAAA;+GAGiE,aAAA,CAAA,YAAA,CAAA,GAAA,YAAA;uEAGxC,aAAA,CAAA,UAAA,CAAA,GAAA,UAAA;8EAGO,aAAA,CAAA,WAAA,CAAA,GAAA,WAAA;+DAGf,aAAA,CAAA,YAAA,CAAA,GAAA,YAAA;2GAG4C,aAAA,CAAA,cAAA,CAAA,GAAA,cAAA;uEAGpC,aAAA,CAAA,eAAA,CAAA,GAAA,eAAA;2DAGZ,aAAA,CAAA,eAAA,CAAA,GAAA,eAAA;kDAGT,aAAA,CAAA,gBAAA,CAAA,GAAA,gBAAA;gEAGc,aAAA,CAAA,kBAAA,CAAA,GAAA,kBAAA;sDAGV,aAAA,CAAA,cAAA,CAAA,GAAA,cAAA;2DAGK,aAAA,CAAA,aAAA,CAAA,GAAA,aAAA;kEAGO,aAAA,CAAA,cAAA,CAAA,GAAA,cAAA;oFAGkB,aAAA,CAAA,sBAAA,CAAA,GAAA,sBAAA;kDAGlC,aAAA,CAAA,SAAA,CAAA,GAAA,SAAA;uEAGqB,aAAA,CAAA,kBAAA,CAAA,GAAA,kBAAA;
|
|
1
|
+
{"version":3,"file":"ComponentName.js","sources":["../../ComponentName.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\n/**\n * The bare names this package declares components under.\n *\n * A page template writes a bare name and `resolveComponentName` decides which active package wins it, so\n * these names are public API: renaming one breaks every template that referenced it, in this package and\n * in anyone else's. Keeping them in one enum means the manifest, the registry and every template\n * reference the same symbol, and the specs can prove all three agree rather than hoping they do.\n */\nexport enum ComponentName {\n /** The application shell - topbar, sidebar, breadcrumb, content, footer and an optional right panel. */\n AppShell = 'appShell',\n\n /** The chrome-less shell - content, an optional branding aside, and the configurator. */\n FullPageShell = 'fullPageShell',\n\n /** The fixed strip across the top of the application shell. */\n Topbar = 'topbar',\n\n /** The sidebar's own chrome, inside the shell-positioned panel. */\n Sidebar = 'sidebar',\n\n /** A navigation list. */\n Menu = 'menu',\n\n /** One entry in a navigation list, optionally with a submenu. */\n MenuItem = 'menuItem',\n\n /** The trail above the content. */\n Breadcrumb = 'breadcrumb',\n\n /** The strip below the content. */\n Footer = 'footer',\n\n /** The inspector panel down the right-hand edge. */\n RightPanel = 'rightPanel',\n\n /** The floating configurator: color scheme, layout mode, menu theme and theme. */\n ConfigPanel = 'configPanel',\n\n /** A screen's title, subtitle and actions. */\n PageHeader = 'pageHeader',\n\n /** The scrim behind a floating sidebar, which also closes it. */\n Mask = 'mask',\n\n /** The brand mark. */\n Logo = 'logo',\n\n /** The signed-in user's avatar and menu. */\n UserMenu = 'userMenu',\n\n /** Switches between the themes a host offers. */\n ThemeSwitcher = 'themeSwitcher',\n\n /** Switches between the layout modes. */\n LayoutModeSwitcher = 'layoutModeSwitcher',\n\n /** An icon, a headline, a hint and one primary action: what a region says when it has nothing to show. */\n EmptyState = 'emptyState',\n\n /** One key figure with its label, trend and comparison period. */\n StatCard = 'statCard',\n\n /** A change drawn as a direction, a magnitude and whether it is good. */\n TrendChip = 'trendChip',\n\n /** A status as a semantic color, an icon and its text. */\n StatusChip = 'statusChip',\n\n /** One chart - line, bar, stacked, donut or funnel - with its legend and a table of the same data. */\n ChartWrapper = 'chartWrapper',\n\n /** Conditions on fields, joined by AND or OR in nested groups. */\n FilterBuilder = 'filterBuilder',\n\n /** Which columns a table shows, and in what order. */\n ColumnChooser = 'columnChooser',\n\n /** A list's saved views as a menu button. */\n SavedViewsMenu = 'savedViewsMenu',\n\n /** Sections of tasks with owner, due date and progress. */\n ChecklistSection = 'checklistSection',\n\n /** What happened to a record, grouped by day. */\n ActivityFeed = 'activityFeed',\n\n /** Overlapping avatars for the people on a record. */\n AvatarStack = 'avatarStack',\n\n /** A drop zone and file picker with type and size checks. */\n FileUploader = 'fileUploader',\n\n /** The steps a request goes through, who decides each, and where it stands. */\n ApprovalChainStepper = 'approvalChainStepper',\n\n /** An organization as an expandable tree. */\n OrgTree = 'orgTree',\n\n /** Roles across, permissions down, a checkbox where they meet. */\n PermissionMatrix = 'permissionMatrix',\n\n /** List of records as table, cards or grouped, with search, sort, paging, selection and row actions. */\n DataList = 'dataList',\n\n /** Tabs with a panel for each, kept in the address. */\n TabSet = 'tabSet',\n\n /** A module's sections as tabs or a left rail. */\n SubNavigation = 'subNavigation',\n\n /** The bar that appears when records are selected, with the bulk actions. */\n BulkBar = 'bulkBar',\n\n /** A search box for the topbar or a toolbar. */\n GlobalSearch = 'globalSearch',\n\n /** The topbar bell with the unread count. */\n NotificationsButton = 'notificationsButton',\n\n /** Columns mapped to a status with cards that move between them. */\n KanbanBoard = 'kanbanBoard',\n\n /** The steps, back/next/finish and draft save of a linear wizard. */\n WizardProgress = 'wizardProgress',\n\n /** Sections of validated fields with the save bar and unsaved-changes guard. */\n FormScreenBody = 'formScreenBody',\n}\n"],"names":["ComponentName"],"mappings":"AAAA;AACA;AAEA;;;;;;;IAQO,IAAKA,aAAAA,iBAAAA,SAAAA,aAAAA,EAAAA;6GAC8F,aAAA,CAAA,UAAA,CAAA,GAAA,UAAA;8FAGf,aAAA,CAAA,eAAA,CAAA,GAAA,eAAA;oEAG1B,aAAA,CAAA,QAAA,CAAA,GAAA,QAAA;wEAGI,aAAA,CAAA,SAAA,CAAA,GAAA,SAAA;8BAG1C,aAAA,CAAA,MAAA,CAAA,GAAA,MAAA;sEAGwC,aAAA,CAAA,UAAA,CAAA,GAAA,UAAA;wCAG9B,aAAA,CAAA,YAAA,CAAA,GAAA,YAAA;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,GAAA,SAAA;qDAG7B,aAAA,CAAA,cAAA,CAAA,GAAA,cAAA;kDAGH,aAAA,CAAA,qBAAA,CAAA,GAAA,qBAAA;yEAGuB,aAAA,CAAA,aAAA,CAAA,GAAA,aAAA;0EAGC,aAAA,CAAA,gBAAA,CAAA,GAAA,gBAAA;qFAGW,aAAA,CAAA,gBAAA,CAAA,GAAA,gBAAA;AAtHtEA,IAAAA,OAAAA,aAAAA;AAwHX,CAAA,CAAA,EAAA;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultBlueprintComponents.d.ts","sourceRoot":"","sources":["../../defaultBlueprintComponents.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAwB,MAAM,qBAAqB,CAAC;AA+B9E,eAAO,MAAM,0BAA0B,EAAE,
|
|
1
|
+
{"version":3,"file":"defaultBlueprintComponents.d.ts","sourceRoot":"","sources":["../../defaultBlueprintComponents.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAwB,MAAM,qBAAqB,CAAC;AA+B9E,eAAO,MAAM,0BAA0B,EAAE,iBAyCxC,CAAC"}
|
|
@@ -19,6 +19,15 @@ import { FileUploader } from './foundation/FileUploader.js';
|
|
|
19
19
|
import { ApprovalChainStepper } from './foundation/ApprovalChainStepper.js';
|
|
20
20
|
import { OrgTree } from './foundation/OrgTree.js';
|
|
21
21
|
import { PermissionMatrix } from './foundation/PermissionMatrix.js';
|
|
22
|
+
import { DataList } from './foundation/DataList.js';
|
|
23
|
+
import { TabSet } from './foundation/TabSet.js';
|
|
24
|
+
import { SubNavigation } from './foundation/SubNavigation.js';
|
|
25
|
+
import { BulkBar } from './foundation/BulkBar.js';
|
|
26
|
+
import { GlobalSearch } from './foundation/GlobalSearch.js';
|
|
27
|
+
import { NotificationsButton } from './foundation/NotificationsButton.js';
|
|
28
|
+
import { KanbanBoard } from './foundation/KanbanBoard.js';
|
|
29
|
+
import { WizardProgress } from './foundation/WizardProgress.js';
|
|
30
|
+
import { FormScreenBody } from './foundation/FormScreenBody.js';
|
|
22
31
|
import './foundation/foundationDescriptors.js';
|
|
23
32
|
import './foundation/foundationComponentMetadata.js';
|
|
24
33
|
import './foundation/foundationSamples.js';
|
|
@@ -79,7 +88,16 @@ import { LayoutModeSwitcher } from './shell/LayoutModeSwitcher.js';
|
|
|
79
88
|
[componentRegistryKey(defaultBlueprintName, ComponentName.FileUploader)]: FileUploader,
|
|
80
89
|
[componentRegistryKey(defaultBlueprintName, ComponentName.ApprovalChainStepper)]: ApprovalChainStepper,
|
|
81
90
|
[componentRegistryKey(defaultBlueprintName, ComponentName.OrgTree)]: OrgTree,
|
|
82
|
-
[componentRegistryKey(defaultBlueprintName, ComponentName.PermissionMatrix)]: PermissionMatrix
|
|
91
|
+
[componentRegistryKey(defaultBlueprintName, ComponentName.PermissionMatrix)]: PermissionMatrix,
|
|
92
|
+
[componentRegistryKey(defaultBlueprintName, ComponentName.DataList)]: DataList,
|
|
93
|
+
[componentRegistryKey(defaultBlueprintName, ComponentName.TabSet)]: TabSet,
|
|
94
|
+
[componentRegistryKey(defaultBlueprintName, ComponentName.SubNavigation)]: SubNavigation,
|
|
95
|
+
[componentRegistryKey(defaultBlueprintName, ComponentName.BulkBar)]: BulkBar,
|
|
96
|
+
[componentRegistryKey(defaultBlueprintName, ComponentName.GlobalSearch)]: GlobalSearch,
|
|
97
|
+
[componentRegistryKey(defaultBlueprintName, ComponentName.NotificationsButton)]: NotificationsButton,
|
|
98
|
+
[componentRegistryKey(defaultBlueprintName, ComponentName.KanbanBoard)]: KanbanBoard,
|
|
99
|
+
[componentRegistryKey(defaultBlueprintName, ComponentName.WizardProgress)]: WizardProgress,
|
|
100
|
+
[componentRegistryKey(defaultBlueprintName, ComponentName.FormScreenBody)]: FormScreenBody
|
|
83
101
|
};
|
|
84
102
|
|
|
85
103
|
export { defaultBlueprintComponents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultBlueprintComponents.js","sources":["../../defaultBlueprintComponents.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 { ComponentRegistry, componentRegistryKey } from '@cratis/scene.react';\nimport { ComponentName } from './ComponentName';\nimport { defaultBlueprintName } from './packageName';\nimport { ActivityFeed, ApprovalChainStepper, AvatarStack, ChartWrapper, ChecklistSection, ColumnChooser, FileUploader, EmptyState, FilterBuilder, OrgTree, PermissionMatrix, SavedViewsMenu, StatCard, StatusChip, TrendChip } from './foundation';\nimport {\n AppShell,\n Breadcrumb,\n ConfigPanel,\n Footer,\n FullPageShell,\n LayoutModeSwitcher,\n Logo,\n Mask,\n Menu,\n MenuItem,\n PageHeader,\n RightPanel,\n Sidebar,\n ThemeSwitcher,\n Topbar,\n UserMenu,\n} from './shell';\n\n/**\n * The components this package registers, keyed the way the renderer looks them up.\n *\n * Every key is built with `componentRegistryKey` rather than written out, because the separator between\n * package and component name is the registry's own business - it is deliberately not the `.` a screen uses\n * to qualify a name, so that a package name containing dots stays unambiguous. Building a key by hand is\n * how a component ends up registered under something no lookup will ever produce.\n */\nexport const defaultBlueprintComponents: ComponentRegistry = {\n [componentRegistryKey(defaultBlueprintName, ComponentName.AppShell)]: AppShell,\n [componentRegistryKey(defaultBlueprintName, ComponentName.FullPageShell)]: FullPageShell,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Topbar)]: Topbar,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Sidebar)]: Sidebar,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Menu)]: Menu,\n [componentRegistryKey(defaultBlueprintName, ComponentName.MenuItem)]: MenuItem,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Breadcrumb)]: Breadcrumb,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Footer)]: Footer,\n [componentRegistryKey(defaultBlueprintName, ComponentName.RightPanel)]: RightPanel,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ConfigPanel)]: ConfigPanel,\n [componentRegistryKey(defaultBlueprintName, ComponentName.PageHeader)]: PageHeader,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Mask)]: Mask,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Logo)]: Logo,\n [componentRegistryKey(defaultBlueprintName, ComponentName.UserMenu)]: UserMenu,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ThemeSwitcher)]: ThemeSwitcher,\n [componentRegistryKey(defaultBlueprintName, ComponentName.LayoutModeSwitcher)]: LayoutModeSwitcher,\n [componentRegistryKey(defaultBlueprintName, ComponentName.EmptyState)]: EmptyState,\n [componentRegistryKey(defaultBlueprintName, ComponentName.StatCard)]: StatCard,\n [componentRegistryKey(defaultBlueprintName, ComponentName.TrendChip)]: TrendChip,\n [componentRegistryKey(defaultBlueprintName, ComponentName.StatusChip)]: StatusChip,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ChartWrapper)]: ChartWrapper,\n [componentRegistryKey(defaultBlueprintName, ComponentName.FilterBuilder)]: FilterBuilder,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ColumnChooser)]: ColumnChooser,\n [componentRegistryKey(defaultBlueprintName, ComponentName.SavedViewsMenu)]: SavedViewsMenu,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ChecklistSection)]: ChecklistSection,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ActivityFeed)]: ActivityFeed,\n [componentRegistryKey(defaultBlueprintName, ComponentName.AvatarStack)]: AvatarStack,\n [componentRegistryKey(defaultBlueprintName, ComponentName.FileUploader)]: FileUploader,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ApprovalChainStepper)]: ApprovalChainStepper,\n [componentRegistryKey(defaultBlueprintName, ComponentName.OrgTree)]: OrgTree,\n [componentRegistryKey(defaultBlueprintName, ComponentName.PermissionMatrix)]: PermissionMatrix,\n};\n"],"names":["defaultBlueprintComponents","componentRegistryKey","defaultBlueprintName","ComponentName","AppShell","FullPageShell","Topbar","Sidebar","Menu","MenuItem","Breadcrumb","Footer","RightPanel","ConfigPanel","PageHeader","Mask","Logo","UserMenu","ThemeSwitcher","LayoutModeSwitcher","EmptyState","StatCard","TrendChip","StatusChip","ChartWrapper","FilterBuilder","ColumnChooser","SavedViewsMenu","ChecklistSection","ActivityFeed","AvatarStack","FileUploader","ApprovalChainStepper","OrgTree","PermissionMatrix"],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaultBlueprintComponents.js","sources":["../../defaultBlueprintComponents.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 { ComponentRegistry, componentRegistryKey } from '@cratis/scene.react';\nimport { ComponentName } from './ComponentName';\nimport { defaultBlueprintName } from './packageName';\nimport { BulkBar, DataList, FormScreenBody, GlobalSearch, KanbanBoard, NotificationsButton, SubNavigation, TabSet, WizardProgress, ActivityFeed, ApprovalChainStepper, AvatarStack, ChartWrapper, ChecklistSection, ColumnChooser, FileUploader, EmptyState, FilterBuilder, OrgTree, PermissionMatrix, SavedViewsMenu, StatCard, StatusChip, TrendChip } from './foundation';\nimport {\n AppShell,\n Breadcrumb,\n ConfigPanel,\n Footer,\n FullPageShell,\n LayoutModeSwitcher,\n Logo,\n Mask,\n Menu,\n MenuItem,\n PageHeader,\n RightPanel,\n Sidebar,\n ThemeSwitcher,\n Topbar,\n UserMenu,\n} from './shell';\n\n/**\n * The components this package registers, keyed the way the renderer looks them up.\n *\n * Every key is built with `componentRegistryKey` rather than written out, because the separator between\n * package and component name is the registry's own business - it is deliberately not the `.` a screen uses\n * to qualify a name, so that a package name containing dots stays unambiguous. Building a key by hand is\n * how a component ends up registered under something no lookup will ever produce.\n */\nexport const defaultBlueprintComponents: ComponentRegistry = {\n [componentRegistryKey(defaultBlueprintName, ComponentName.AppShell)]: AppShell,\n [componentRegistryKey(defaultBlueprintName, ComponentName.FullPageShell)]: FullPageShell,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Topbar)]: Topbar,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Sidebar)]: Sidebar,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Menu)]: Menu,\n [componentRegistryKey(defaultBlueprintName, ComponentName.MenuItem)]: MenuItem,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Breadcrumb)]: Breadcrumb,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Footer)]: Footer,\n [componentRegistryKey(defaultBlueprintName, ComponentName.RightPanel)]: RightPanel,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ConfigPanel)]: ConfigPanel,\n [componentRegistryKey(defaultBlueprintName, ComponentName.PageHeader)]: PageHeader,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Mask)]: Mask,\n [componentRegistryKey(defaultBlueprintName, ComponentName.Logo)]: Logo,\n [componentRegistryKey(defaultBlueprintName, ComponentName.UserMenu)]: UserMenu,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ThemeSwitcher)]: ThemeSwitcher,\n [componentRegistryKey(defaultBlueprintName, ComponentName.LayoutModeSwitcher)]: LayoutModeSwitcher,\n [componentRegistryKey(defaultBlueprintName, ComponentName.EmptyState)]: EmptyState,\n [componentRegistryKey(defaultBlueprintName, ComponentName.StatCard)]: StatCard,\n [componentRegistryKey(defaultBlueprintName, ComponentName.TrendChip)]: TrendChip,\n [componentRegistryKey(defaultBlueprintName, ComponentName.StatusChip)]: StatusChip,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ChartWrapper)]: ChartWrapper,\n [componentRegistryKey(defaultBlueprintName, ComponentName.FilterBuilder)]: FilterBuilder,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ColumnChooser)]: ColumnChooser,\n [componentRegistryKey(defaultBlueprintName, ComponentName.SavedViewsMenu)]: SavedViewsMenu,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ChecklistSection)]: ChecklistSection,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ActivityFeed)]: ActivityFeed,\n [componentRegistryKey(defaultBlueprintName, ComponentName.AvatarStack)]: AvatarStack,\n [componentRegistryKey(defaultBlueprintName, ComponentName.FileUploader)]: FileUploader,\n [componentRegistryKey(defaultBlueprintName, ComponentName.ApprovalChainStepper)]: ApprovalChainStepper,\n [componentRegistryKey(defaultBlueprintName, ComponentName.OrgTree)]: OrgTree,\n [componentRegistryKey(defaultBlueprintName, ComponentName.PermissionMatrix)]: PermissionMatrix,\n [componentRegistryKey(defaultBlueprintName, ComponentName.DataList)]: DataList,\n [componentRegistryKey(defaultBlueprintName, ComponentName.TabSet)]: TabSet,\n [componentRegistryKey(defaultBlueprintName, ComponentName.SubNavigation)]: SubNavigation,\n [componentRegistryKey(defaultBlueprintName, ComponentName.BulkBar)]: BulkBar,\n [componentRegistryKey(defaultBlueprintName, ComponentName.GlobalSearch)]: GlobalSearch,\n [componentRegistryKey(defaultBlueprintName, ComponentName.NotificationsButton)]: NotificationsButton,\n [componentRegistryKey(defaultBlueprintName, ComponentName.KanbanBoard)]: KanbanBoard,\n [componentRegistryKey(defaultBlueprintName, ComponentName.WizardProgress)]: WizardProgress,\n [componentRegistryKey(defaultBlueprintName, ComponentName.FormScreenBody)]: FormScreenBody,\n};\n"],"names":["defaultBlueprintComponents","componentRegistryKey","defaultBlueprintName","ComponentName","AppShell","FullPageShell","Topbar","Sidebar","Menu","MenuItem","Breadcrumb","Footer","RightPanel","ConfigPanel","PageHeader","Mask","Logo","UserMenu","ThemeSwitcher","LayoutModeSwitcher","EmptyState","StatCard","TrendChip","StatusChip","ChartWrapper","FilterBuilder","ColumnChooser","SavedViewsMenu","ChecklistSection","ActivityFeed","AvatarStack","FileUploader","ApprovalChainStepper","OrgTree","PermissionMatrix","DataList","TabSet","SubNavigation","BulkBar","GlobalSearch","NotificationsButton","KanbanBoard","WizardProgress","FormScreenBody"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAyBA;;;;;;;UAQaA,0BAAAA,GAAgD;AACzD,IAAA,CAACC,o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AAC1E,IAAA,CAAC9B,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAc6B,oBAAoB,IAAIA,oBAAAA;AAClF,IAAA,CAAC/B,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAc8B,OAAO,IAAIA,OAAAA;AACrE,IAAA,CAAChC,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAc+B,gBAAgB,IAAIA,gBAAAA;AAC9E,IAAA,CAACjC,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAcgC,QAAQ,IAAIA,QAAAA;AACtE,IAAA,CAAClC,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAciC,MAAM,IAAIA,MAAAA;AACpE,IAAA,CAACnC,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAckC,aAAa,IAAIA,aAAAA;AAC3E,IAAA,CAACpC,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAcmC,OAAO,IAAIA,OAAAA;AACrE,IAAA,CAACrC,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAcoC,YAAY,IAAIA,YAAAA;AAC1E,IAAA,CAACtC,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAcqC,mBAAmB,IAAIA,mBAAAA;AACjF,IAAA,CAACvC,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAcsC,WAAW,IAAIA,WAAAA;AACzE,IAAA,CAACxC,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAcuC,cAAc,IAAIA,cAAAA;AAC5E,IAAA,CAACzC,oBAAAA,CAAqBC,oBAAAA,EAAsBC,aAAAA,CAAcwC,cAAc,IAAIA;AAChF;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RegisteredComponentProps } from '@cratis/scene.react';
|
|
2
|
+
export declare function selectionCount(selection: unknown): number;
|
|
3
|
+
export declare function BulkBar({ element, interactions }: RegisteredComponentProps): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=BulkBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkBar.d.ts","sourceRoot":"","sources":["../../../foundation/BulkBar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAM/D,wBAAgB,cAAc,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAGzD;AAUD,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,wBAAwB,+BAe1E"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { ActionButton } from './ActionButton.js';
|
|
3
|
+
import { readFoundationStrings, formatText } from './foundationStrings.js';
|
|
4
|
+
import { readPermissionRule } from './PermissionRule.js';
|
|
5
|
+
|
|
6
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
7
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
8
|
+
/** How many records a selection holds: an array's length, a number as given, anything else none. */ function selectionCount(selection) {
|
|
9
|
+
if (Array.isArray(selection)) return selection.length;
|
|
10
|
+
return typeof selection === 'number' && Number.isFinite(selection) && selection > 0 ? Math.floor(selection) : 0;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The `bulkBar` component: appears when records are selected, says how many, offers the bulk actions and clears the selection.
|
|
14
|
+
*
|
|
15
|
+
* `selection` is the selected records (or their count) - a list screen binds it to the table's selection output - and the bar is not rendered
|
|
16
|
+
* at all while nothing is selected. It is announced politely when it appears or its count changes. `actions` (strings) are the bulk actions; each
|
|
17
|
+
* runs the behaviors attached to the element and honours `actionPermission` (enabled, disabled with its reason, or hidden). "Clear selection"
|
|
18
|
+
* runs the same behaviors with no action, which a screen wires to emptying the table's selection.
|
|
19
|
+
*/ function BulkBar({ element, interactions }) {
|
|
20
|
+
const count = selectionCount(element.properties.selection);
|
|
21
|
+
const strings = readFoundationStrings(element);
|
|
22
|
+
const actions = Array.isArray(element.properties.actions) ? element.properties.actions.filter((action)=>typeof action === 'string') : [];
|
|
23
|
+
const rule = readPermissionRule(element, 'actionPermission');
|
|
24
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
25
|
+
className: "foundation foundation-bulk-bar",
|
|
26
|
+
"data-scene-id": element.id,
|
|
27
|
+
role: "region",
|
|
28
|
+
"aria-label": strings.bulkActions,
|
|
29
|
+
hidden: count === 0,
|
|
30
|
+
children: [
|
|
31
|
+
/*#__PURE__*/ jsx("span", {
|
|
32
|
+
className: "foundation-bulk-count",
|
|
33
|
+
role: "status",
|
|
34
|
+
children: count > 0 ? formatText(strings.bulkSelected, {
|
|
35
|
+
count
|
|
36
|
+
}) : ''
|
|
37
|
+
}),
|
|
38
|
+
/*#__PURE__*/ jsx("span", {
|
|
39
|
+
className: "foundation-bulk-actions",
|
|
40
|
+
children: actions.map((action)=>/*#__PURE__*/ jsx(ActionButton, {
|
|
41
|
+
rule: rule,
|
|
42
|
+
emphasis: "secondary",
|
|
43
|
+
disabledReason: strings.disabledNoPermission,
|
|
44
|
+
onClick: interactions?.onClick,
|
|
45
|
+
children: action
|
|
46
|
+
}, action))
|
|
47
|
+
}),
|
|
48
|
+
/*#__PURE__*/ jsx(ActionButton, {
|
|
49
|
+
emphasis: "quiet",
|
|
50
|
+
disabledReason: strings.disabledNoPermission,
|
|
51
|
+
onClick: interactions?.onClick,
|
|
52
|
+
children: strings.bulkClear
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { BulkBar, selectionCount };
|
|
59
|
+
//# sourceMappingURL=BulkBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkBar.js","sources":["../../../foundation/BulkBar.tsx"],"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 { RegisteredComponentProps } from '@cratis/scene.react';\nimport { ActionButton } from './ActionButton';\nimport { formatText, readFoundationStrings } from './foundationStrings';\nimport { readPermissionRule } from './PermissionRule';\n\n/** How many records a selection holds: an array's length, a number as given, anything else none. */\nexport function selectionCount(selection: unknown): number {\n if (Array.isArray(selection)) return selection.length;\n return typeof selection === 'number' && Number.isFinite(selection) && selection > 0 ? Math.floor(selection) : 0;\n}\n\n/**\n * The `bulkBar` component: appears when records are selected, says how many, offers the bulk actions and clears the selection.\n *\n * `selection` is the selected records (or their count) - a list screen binds it to the table's selection output - and the bar is not rendered\n * at all while nothing is selected. It is announced politely when it appears or its count changes. `actions` (strings) are the bulk actions; each\n * runs the behaviors attached to the element and honours `actionPermission` (enabled, disabled with its reason, or hidden). \"Clear selection\"\n * runs the same behaviors with no action, which a screen wires to emptying the table's selection.\n */\nexport function BulkBar({ element, interactions }: RegisteredComponentProps) {\n const count = selectionCount(element.properties.selection);\n const strings = readFoundationStrings(element);\n const actions = Array.isArray(element.properties.actions) ? element.properties.actions.filter((action): action is string => typeof action === 'string') : [];\n const rule = readPermissionRule(element, 'actionPermission');\n\n return (\n <div className='foundation foundation-bulk-bar' data-scene-id={element.id} role='region' aria-label={strings.bulkActions} hidden={count === 0}>\n <span className='foundation-bulk-count' role='status'>{count > 0 ? formatText(strings.bulkSelected, { count }) : ''}</span>\n <span className='foundation-bulk-actions'>\n {actions.map(action => <ActionButton key={action} rule={rule} emphasis='secondary' disabledReason={strings.disabledNoPermission} onClick={interactions?.onClick}>{action}</ActionButton>)}\n </span>\n <ActionButton emphasis='quiet' disabledReason={strings.disabledNoPermission} onClick={interactions?.onClick}>{strings.bulkClear}</ActionButton>\n </div>\n );\n}\n"],"names":["selectionCount","selection","Array","isArray","length","Number","isFinite","Math","floor","BulkBar","element","interactions","count","properties","strings","readFoundationStrings","actions","filter","action","rule","readPermissionRule","_jsxs","div","className","data-scene-id","id","role","aria-label","bulkActions","hidden","_jsx","span","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