@smartsoft001/crud-shell-react 2.193.0 → 2.195.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/README.md +1 -2
- package/package.json +6 -6
- package/src/lib/components/export/export.d.ts +2 -2
- package/src/lib/components/export/export.js +2 -2
- package/src/lib/components/export/export.types.d.ts +1 -1
- package/src/lib/components/export/use-crud-export.d.ts +5 -6
- package/src/lib/components/export/use-crud-export.js +7 -9
- package/src/lib/components/export/use-crud-export.js.map +1 -1
- package/src/lib/components/filter/base/use-crud-filter.d.ts +15 -18
- package/src/lib/components/filter/base/use-crud-filter.js +20 -24
- package/src/lib/components/filter/base/use-crud-filter.js.map +1 -1
- package/src/lib/components/filter/check/filter-check.d.ts +2 -3
- package/src/lib/components/filter/check/filter-check.js +5 -6
- package/src/lib/components/filter/check/filter-check.js.map +1 -1
- package/src/lib/components/filter/date/filter-date.d.ts +2 -3
- package/src/lib/components/filter/date/filter-date.js +4 -5
- package/src/lib/components/filter/date/filter-date.js.map +1 -1
- package/src/lib/components/filter/date/use-crud-filter-date.d.ts +3 -4
- package/src/lib/components/filter/date/use-crud-filter-date.js +3 -4
- package/src/lib/components/filter/date/use-crud-filter-date.js.map +1 -1
- package/src/lib/components/filter/date/use-crud-filter-value.d.ts +6 -0
- package/src/lib/components/filter/date/use-crud-filter-value.js +25 -0
- package/src/lib/components/filter/date/use-crud-filter-value.js.map +1 -0
- package/src/lib/components/filter/date-time/filter-date-time.d.ts +3 -4
- package/src/lib/components/filter/date-time/filter-date-time.js +8 -9
- package/src/lib/components/filter/date-time/filter-date-time.js.map +1 -1
- package/src/lib/components/filter/date-with-edit/filter-date-with-edit.d.ts +3 -4
- package/src/lib/components/filter/date-with-edit/filter-date-with-edit.js +12 -13
- package/src/lib/components/filter/date-with-edit/filter-date-with-edit.js.map +1 -1
- package/src/lib/components/filter/filter.d.ts +3 -4
- package/src/lib/components/filter/filter.js +3 -4
- package/src/lib/components/filter/filter.js.map +1 -1
- package/src/lib/components/filter/filter.types.d.ts +1 -4
- package/src/lib/components/filter/flag/filter-flag.d.ts +2 -3
- package/src/lib/components/filter/flag/filter-flag.js +2 -3
- package/src/lib/components/filter/flag/filter-flag.js.map +1 -1
- package/src/lib/components/filter/index.d.ts +1 -1
- package/src/lib/components/filter/index.js +1 -1
- package/src/lib/components/filter/index.js.map +1 -1
- package/src/lib/components/filter/int/filter-int.d.ts +6 -7
- package/src/lib/components/filter/int/filter-int.js +7 -9
- package/src/lib/components/filter/int/filter-int.js.map +1 -1
- package/src/lib/components/filter/radio/filter-radio.d.ts +3 -3
- package/src/lib/components/filter/radio/filter-radio.js +3 -3
- package/src/lib/components/filter/text/filter-text.d.ts +2 -2
- package/src/lib/components/filter/text/filter-text.js +2 -2
- package/src/lib/components/filters/filters.d.ts +4 -5
- package/src/lib/components/filters/filters.js +4 -5
- package/src/lib/components/filters/filters.js.map +1 -1
- package/src/lib/components/filters/filters.types.d.ts +1 -1
- package/src/lib/components/filters/use-crud-filters.d.ts +4 -5
- package/src/lib/components/filters/use-crud-filters.js +7 -8
- package/src/lib/components/filters/use-crud-filters.js.map +1 -1
- package/src/lib/components/filters-config/filters-config.d.ts +3 -3
- package/src/lib/components/filters-config/filters-config.js +4 -5
- package/src/lib/components/filters-config/filters-config.js.map +1 -1
- package/src/lib/components/group/group.d.ts +4 -5
- package/src/lib/components/group/group.js +4 -5
- package/src/lib/components/group/group.js.map +1 -1
- package/src/lib/components/group/group.types.d.ts +1 -1
- package/src/lib/components/group/use-crud-group.d.ts +5 -6
- package/src/lib/components/group/use-crud-group.js +8 -10
- package/src/lib/components/group/use-crud-group.js.map +1 -1
- package/src/lib/components/multiselect/multiselect.d.ts +2 -3
- package/src/lib/components/multiselect/multiselect.js +3 -4
- package/src/lib/components/multiselect/multiselect.js.map +1 -1
- package/src/lib/components/multiselect/use-crud-multiselect.d.ts +3 -4
- package/src/lib/components/multiselect/use-crud-multiselect.js +3 -4
- package/src/lib/components/multiselect/use-crud-multiselect.js.map +1 -1
- package/src/lib/crud.config.d.ts +1 -2
- package/src/lib/crud.provider.d.ts +2 -2
- package/src/lib/crud.provider.js +4 -5
- package/src/lib/crud.provider.js.map +1 -1
- package/src/lib/factories/form-options.d.ts +2 -2
- package/src/lib/factories/form-options.js +2 -2
- package/src/lib/hooks.d.ts +2 -2
- package/src/lib/hooks.js +2 -2
- package/src/lib/pages/crud-pages.d.ts +7 -8
- package/src/lib/pages/crud-pages.js +9 -10
- package/src/lib/pages/crud-pages.js.map +1 -1
- package/src/lib/pages/item/item-page.d.ts +9 -12
- package/src/lib/pages/item/item-page.js +9 -12
- package/src/lib/pages/item/item-page.js.map +1 -1
- package/src/lib/pages/item/item-page.types.d.ts +8 -12
- package/src/lib/pages/item/standard/item-page-standard.d.ts +2 -4
- package/src/lib/pages/item/standard/item-page-standard.js +2 -4
- package/src/lib/pages/item/standard/item-page-standard.js.map +1 -1
- package/src/lib/pages/item/use-crud-item-page-base.d.ts +5 -6
- package/src/lib/pages/item/use-crud-item-page-base.js +5 -6
- package/src/lib/pages/item/use-crud-item-page-base.js.map +1 -1
- package/src/lib/pages/item/use-crud-item-page.d.ts +4 -4
- package/src/lib/pages/item/use-crud-item-page.js +6 -7
- package/src/lib/pages/item/use-crud-item-page.js.map +1 -1
- package/src/lib/pages/list/list-page.d.ts +8 -11
- package/src/lib/pages/list/list-page.js +8 -11
- package/src/lib/pages/list/list-page.js.map +1 -1
- package/src/lib/pages/list/list-page.types.d.ts +6 -8
- package/src/lib/pages/list/standard/list-page-standard.d.ts +4 -6
- package/src/lib/pages/list/standard/list-page-standard.js +4 -6
- package/src/lib/pages/list/standard/list-page-standard.js.map +1 -1
- package/src/lib/pages/list/use-crud-list-page.d.ts +2 -2
- package/src/lib/pages/list/use-crud-list-page.js +9 -11
- package/src/lib/pages/list/use-crud-list-page.js.map +1 -1
- package/src/lib/pages/use-crud-bound-component.d.ts +2 -3
- package/src/lib/pages/use-crud-bound-component.js +2 -3
- package/src/lib/pages/use-crud-bound-component.js.map +1 -1
- package/src/lib/pages/use-crud-page-config.d.ts +1 -2
- package/src/lib/pages/use-crud-page-config.js +1 -2
- package/src/lib/pages/use-crud-page-config.js.map +1 -1
- package/src/lib/services/crud/crud.service.d.ts +3 -4
- package/src/lib/services/crud/crud.service.js +3 -4
- package/src/lib/services/crud/crud.service.js.map +1 -1
- package/src/lib/services/page/page.service.d.ts +2 -2
- package/src/lib/services/page/page.service.js +2 -2
- package/src/lib/state/crud.effects.d.ts +5 -6
- package/src/lib/state/crud.effects.js +7 -8
- package/src/lib/state/crud.effects.js.map +1 -1
- package/src/lib/state/crud.facade.d.ts +3 -4
- package/src/lib/state/crud.facade.js +3 -4
- package/src/lib/state/crud.facade.js.map +1 -1
- package/src/lib/state/crud.reducer.d.ts +1 -1
- package/src/lib/state/crud.selectors.js +2 -3
- package/src/lib/state/crud.selectors.js.map +1 -1
- package/src/lib/state/crud.store.d.ts +1 -1
- package/src/lib/state/crud.store.js +1 -1
- package/src/lib/components/filter/date/use-crud-filter-ng-model.d.ts +0 -6
- package/src/lib/components/filter/date/use-crud-filter-ng-model.js +0 -25
- package/src/lib/components/filter/date/use-crud-filter-ng-model.js.map +0 -1
|
@@ -5,26 +5,25 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const react_2 = require("@smartsoft001/react");
|
|
7
7
|
const use_crud_filter_date_1 = require("../date/use-crud-filter-date");
|
|
8
|
-
const
|
|
8
|
+
const use_crud_filter_value_1 = require("../date/use-crud-filter-value");
|
|
9
9
|
const CLEAR_CLASSES = 'smart:shrink-0 smart:rounded smart:px-2 smart:py-2 smart:text-red-600 smart:hover:bg-red-50';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* The shared date editor showing what the user entered until `value`
|
|
12
|
+
* changes.
|
|
13
13
|
*/
|
|
14
|
-
function BoundDateEdit({
|
|
15
|
-
const [
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "smart:flex-1", children: (0, jsx_runtime_1.jsx)(react_2.SmartDateEdit, { className: "smart:flex-1", value:
|
|
14
|
+
function BoundDateEdit({ value, onValueChange, }) {
|
|
15
|
+
const [shown, setShown] = (0, use_crud_filter_value_1.useCrudFilterValue)(value, onValueChange);
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "smart:flex-1", children: (0, jsx_runtime_1.jsx)(react_2.SmartDateEdit, { className: "smart:flex-1", value: shown, onValueChange: setShown }) }));
|
|
17
17
|
}
|
|
18
18
|
/** One end of the advanced range: a label, a date editor and its clear. */
|
|
19
|
-
function DateRangeRow({ label,
|
|
19
|
+
function DateRangeRow({ label, value, onValueChange, clearLabel, showClear, onClear, }) {
|
|
20
20
|
const t = (0, react_2.useTranslate)();
|
|
21
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "smart:flex smart:w-full smart:items-end smart:gap-2", children: [(0, jsx_runtime_1.jsx)("label", { className: "smart:text-sm", children: t(label) }), (0, jsx_runtime_1.jsx)(BoundDateEdit, {
|
|
21
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "smart:flex smart:w-full smart:items-end smart:gap-2", children: [(0, jsx_runtime_1.jsx)("label", { className: "smart:text-sm", children: t(label) }), (0, jsx_runtime_1.jsx)(BoundDateEdit, { value: value, onValueChange: onValueChange }), showClear && ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClear, "aria-label": clearLabel, className: CLEAR_CLASSES, children: "\u00D7" }))] }));
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* "from" / "to" pair of editors for the `>=` / `<=` values (removing the
|
|
24
|
+
* The date filter with a range editor: the item label and the shared date
|
|
25
|
+
* editor for the item's value; for an `=` item an "advanced" button switches
|
|
26
|
+
* to a "from" / "to" pair of editors for the `>=` / `<=` values (removing the
|
|
28
27
|
* value), shown as well while a range value is set.
|
|
29
28
|
*/
|
|
30
29
|
function SmartCrudFilterDateWithEdit(props) {
|
|
@@ -37,6 +36,6 @@ function SmartCrudFilterDateWithEdit(props) {
|
|
|
37
36
|
if (next)
|
|
38
37
|
setValue(null);
|
|
39
38
|
};
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "smart:block smart:w-full", children: [(0, jsx_runtime_1.jsx)("label", { className: "smart:mb-1 smart:block smart:text-sm smart:font-medium", children: t(props.item?.label || '') }), !advanced ? ((0, jsx_runtime_1.jsxs)("div", { className: "smart:flex smart:w-full smart:items-end smart:gap-2", children: [(0, jsx_runtime_1.jsx)(BoundDateEdit, {
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "smart:block smart:w-full", children: [(0, jsx_runtime_1.jsx)("label", { className: "smart:mb-1 smart:block smart:text-sm smart:font-medium", children: t(props.item?.label || '') }), !advanced ? ((0, jsx_runtime_1.jsxs)("div", { className: "smart:flex smart:w-full smart:items-end smart:gap-2", children: [(0, jsx_runtime_1.jsx)(BoundDateEdit, { value: customValue || '', onValueChange: setCustomValue }), allowAdvanced && ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: toggleAdvanced, "aria-label": "advanced", className: "smart:shrink-0 smart:rounded smart:px-2 smart:py-2 smart:hover:bg-gray-100", children: "\u2699" })), hasValue && ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: () => refresh(null), "aria-label": "clear", className: CLEAR_CLASSES, children: "\u00D7" }))] })) : (allowAdvanced && ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: toggleAdvanced, "aria-label": "advanced", className: "smart:mb-2 smart:rounded smart:px-2 smart:py-2 smart:hover:bg-gray-100", children: "\u2699" }))), (advanced || hasMinValue || hasMaxValue) && allowAdvanced && ((0, jsx_runtime_1.jsxs)("div", { className: "smart:flex smart:w-full smart:flex-col smart:gap-2", children: [(0, jsx_runtime_1.jsx)(DateRangeRow, { label: "from", value: customMinValue || '', onValueChange: setCustomMinValue, clearLabel: "clear-from", showClear: hasMinValue, onClear: () => refresh(null, '>=') }), (0, jsx_runtime_1.jsx)(DateRangeRow, { label: "to", value: customMaxValue || '', onValueChange: setCustomMaxValue, clearLabel: "clear-to", showClear: hasMaxValue, onClear: () => refresh(null, '<=') })] }))] }));
|
|
41
40
|
}
|
|
42
41
|
//# sourceMappingURL=filter-date-with-edit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-date-with-edit.js","sourceRoot":"","sources":["../../../../../../../../../../packages/crud/shell/react/src/lib/components/filter/date-with-edit/filter-date-with-edit.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"filter-date-with-edit.js","sourceRoot":"","sources":["../../../../../../../../../../packages/crud/shell/react/src/lib/components/filter/date-with-edit/filter-date-with-edit.tsx"],"names":[],"mappings":";;AA6EA,kEA6FC;;AA1KD,iCAAiC;AAEjC,+CAAkE;AAElE,uEAAiE;AACjE,yEAAmE;AAGnE,MAAM,aAAa,GACjB,6FAA6F,CAAC;AAEhG;;;GAGG;AACH,SAAS,aAAa,CAAC,EACrB,KAAK,EACL,aAAa,GAId;IACC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,0CAAkB,EAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IAEnE,OAAO,CACL,gCAAK,SAAS,EAAC,cAAc,YAC3B,uBAAC,qBAAa,IACZ,SAAS,EAAC,cAAc,EACxB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,QAAQ,GACvB,GACE,CACP,CAAC;AACJ,CAAC;AAED,2EAA2E;AAC3E,SAAS,YAAY,CAAC,EACpB,KAAK,EACL,KAAK,EACL,aAAa,EACb,UAAU,EACV,SAAS,EACT,OAAO,GAQR;IACC,MAAM,CAAC,GAAG,IAAA,oBAAY,GAAE,CAAC;IAEzB,OAAO,CACL,iCAAK,SAAS,EAAC,qDAAqD,aAClE,kCAAO,SAAS,EAAC,eAAe,YAAE,CAAC,CAAC,KAAK,C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A4E,uBAG/E,CACV,EACA,QAAQ,IAAI,CACX,mCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,gBACjB,OAAO,EAClB,SAAS,EAAE,aAAa,uBAGjB,CACV,IACG,CACP,CAAC,CAAC,CAAC,CACF,aAAa,IAAI,CACf,mCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,cAAc,gBACZ,UAAU,EACrB,SAAS,EAAC,wEAAwE,uBAG3E,CACV,CACF,EAEA,CAAC,QAAQ,IAAI,WAAW,IAAI,WAAW,CAAC,IAAI,aAAa,IAAI,CAC5D,iCAAK,SAAS,EAAC,oDAAoD,aACjE,uBAAC,YAAY,IACX,KAAK,EAAC,MAAM,EACZ,KAAK,EAAE,cAAc,IAAI,EAAE,EAC3B,aAAa,EAAE,iBAAiB,EAChC,UAAU,EAAC,YAAY,EACvB,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,GAClC,EACF,uBAAC,YAAY,IACX,KAAK,EAAC,IAAI,EACV,KAAK,EAAE,cAAc,IAAI,EAAE,EAC3B,aAAa,EAAE,iBAAiB,EAChC,UAAU,EAAC,UAAU,EACrB,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,GAClC,IACE,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SmartCrudFilterProps } from './filter.types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* feature's facade.
|
|
3
|
+
* The filter field of the item's field type (date, date with edit,
|
|
4
|
+
* date-time, radio, check, flag, int; text otherwise), reading and writing
|
|
5
|
+
* the list filter through the feature's facade.
|
|
7
6
|
*/
|
|
8
7
|
export declare function SmartCrudFilter(props: SmartCrudFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -32,10 +32,9 @@ function SmartCrudFilterField(props) {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* feature's facade.
|
|
35
|
+
* The filter field of the item's field type (date, date with edit,
|
|
36
|
+
* date-time, radio, check, flag, int; text otherwise), reading and writing
|
|
37
|
+
* the list filter through the feature's facade.
|
|
39
38
|
*/
|
|
40
39
|
function SmartCrudFilter(props) {
|
|
41
40
|
return ((0, jsx_runtime_1.jsx)("div", { className: "smart:py-1", children: (0, jsx_runtime_1.jsx)(SmartCrudFilterField, { ...props }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/filter/filter.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/filter/filter.tsx"],"names":[],"mappings":";;AAsCA,0CAMC;;AA5CD,iDAAiD;AAEjD,uDAA4D;AAC5D,oDAAyD;AACzD,mEAAuE;AACvE,kFAAqF;AAErF,oDAAyD;AACzD,iDAAsD;AACtD,uDAA4D;AAC5D,oDAAyD;AAEzD,SAAS,oBAAoB,CAAC,KAA2B;IACvD,QAAQ,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9B,KAAK,kBAAS,CAAC,IAAI;YACjB,OAAO,uBAAC,iCAAmB,OAAK,KAAK,GAAI,CAAC;QAC5C,KAAK,kBAAS,CAAC,YAAY;YACzB,OAAO,uBAAC,mDAA2B,OAAK,KAAK,GAAI,CAAC;QACpD,KAAK,kBAAS,CAAC,QAAQ;YACrB,OAAO,uBAAC,0CAAuB,OAAK,KAAK,GAAI,CAAC;QAChD,KAAK,kBAAS,CAAC,KAAK;YAClB,OAAO,uBAAC,mCAAoB,OAAK,KAAK,GAAI,CAAC;QAC7C,KAAK,kBAAS,CAAC,KAAK;YAClB,OAAO,uBAAC,mCAAoB,OAAK,KAAK,GAAI,CAAC;QAC7C,KAAK,kBAAS,CAAC,IAAI;YACjB,OAAO,uBAAC,iCAAmB,OAAK,KAAK,GAAI,CAAC;QAC5C,KAAK,kBAAS,CAAC,GAAG;YAChB,OAAO,uBAAC,+BAAkB,OAAK,KAAK,GAAI,CAAC;QAC3C;YACE,OAAO,uBAAC,iCAAmB,OAAK,KAAK,GAAI,CAAC;IAC9C,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAgB,eAAe,CAAC,KAA2B;IACzD,OAAO,CACL,gCAAK,SAAS,EAAC,YAAY,YACzB,uBAAC,oBAAoB,OAAK,KAAK,GAAI,GAC/B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { IModelFilter } from '@smartsoft001/models';
|
|
2
2
|
import { ICrudFilter } from '../../models';
|
|
3
|
-
/**
|
|
4
|
-
* The props of `SmartCrudFilter` and of every filter field (the inputs of the
|
|
5
|
-
* Angular filter `BaseComponent`).
|
|
6
|
-
*/
|
|
3
|
+
/** The props of `SmartCrudFilter` and of every filter field. */
|
|
7
4
|
export interface SmartCrudFilterProps {
|
|
8
5
|
/** The filter definition of the model (`IModelOptions.filters` item). */
|
|
9
6
|
item?: IModelFilter;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SmartCrudFilterProps } from '../filter.types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* `true` or `false`.
|
|
3
|
+
* The flag filter: the shared flag field bound to the item's value, and a
|
|
4
|
+
* clear button while the value is `true` or `false`.
|
|
6
5
|
*/
|
|
7
6
|
export declare function SmartCrudFilterFlag(props: SmartCrudFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,9 +6,8 @@ const react_1 = require("react");
|
|
|
6
6
|
const react_2 = require("@smartsoft001/react");
|
|
7
7
|
const use_crud_filter_1 = require("../base/use-crud-filter");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* `true` or `false`.
|
|
9
|
+
* The flag filter: the shared flag field bound to the item's value, and a
|
|
10
|
+
* clear button while the value is `true` or `false`.
|
|
12
11
|
*/
|
|
13
12
|
function SmartCrudFilterFlag(props) {
|
|
14
13
|
const filter = (0, use_crud_filter_1.useCrudFilter)(props);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-flag.js","sourceRoot":"","sources":["../../../../../../../../../../packages/crud/shell/react/src/lib/components/filter/flag/filter-flag.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"filter-flag.js","sourceRoot":"","sources":["../../../../../../../../../../packages/crud/shell/react/src/lib/components/filter/flag/filter-flag.tsx"],"names":[],"mappings":";;AAWA,kDA4BC;;AAvCD,iCAAgC;AAEhC,+CAAqD;AAErD,6DAA8E;AAG9E;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,KAA2B;IAC7D,MAAM,MAAM,GAAG,IAAA,+BAAa,EAAC,KAAK,CAAC,CAAC;IACpC,MAAM,OAAO,GAAG,IAAA,sCAAoB,EAAC,MAAM,CAAC,CAAC;IAC7C,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IACrD,MAAM,OAAO,GAAG,IAAA,eAAO,EACrB,GAAG,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAChC,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAC7B,CAAC;IAEF,OAAO,CACL,gCAAK,SAAS,EAAC,0BAA0B,YACvC,iCAAK,SAAS,EAAC,wDAAwD,aACrE,gCAAK,SAAS,EAAC,cAAc,YAC3B,uBAAC,sBAAc,IAAC,SAAS,EAAC,cAAc,EAAC,OAAO,EAAE,OAAO,GAAI,GACzD,EACL,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,IAAI,CACtC,mCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,gBACjB,OAAO,EAClB,SAAS,EAAC,6FAA6F,uBAGhG,CACV,IACG,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,7 @@ export * from './base/use-crud-filter';
|
|
|
2
2
|
export * from './check/filter-check';
|
|
3
3
|
export * from './date/filter-date';
|
|
4
4
|
export * from './date/use-crud-filter-date';
|
|
5
|
-
export * from './date/use-crud-filter-
|
|
5
|
+
export * from './date/use-crud-filter-value';
|
|
6
6
|
export * from './date-time/filter-date-time';
|
|
7
7
|
export * from './date-with-edit/filter-date-with-edit';
|
|
8
8
|
export * from './filter';
|
|
@@ -5,7 +5,7 @@ tslib_1.__exportStar(require("./base/use-crud-filter"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./check/filter-check"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./date/filter-date"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./date/use-crud-filter-date"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./date/use-crud-filter-
|
|
8
|
+
tslib_1.__exportStar(require("./date/use-crud-filter-value"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./date-time/filter-date-time"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./date-with-edit/filter-date-with-edit"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./filter"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/filter/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,+DAAqC;AACrC,6DAAmC;AACnC,sEAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/filter/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,+DAAqC;AACrC,6DAAmC;AACnC,sEAA4C;AAC5C,uEAA6C;AAC7C,uEAA6C;AAC7C,iFAAuD;AACvD,mDAAyB;AACzB,yDAA+B;AAC/B,6DAAmC;AACnC,2DAAiC;AACjC,+DAAqC;AACrC,6DAAmC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { SmartCrudFilterProps } from '../filter.types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* the
|
|
6
|
-
*
|
|
7
|
-
* once, the range ones only their own.
|
|
3
|
+
* The int filter: the shared int field for the item's value; for an `=` item
|
|
4
|
+
* a settings button switches to the advanced "from" / "to" range (removing
|
|
5
|
+
* the value), shown as well while a range value is set. The clear button
|
|
6
|
+
* removes every entry of the item at once, the range ones only their own.
|
|
8
7
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* The range controls are seeded once and not re-synced when the filter
|
|
9
|
+
* changes elsewhere (TODO GAP-19).
|
|
11
10
|
*/
|
|
12
11
|
export declare function SmartCrudFilterInt(props: SmartCrudFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,8 +8,7 @@ const use_crud_filter_1 = require("../base/use-crud-filter");
|
|
|
8
8
|
const CLEAR_CLASSES = 'smart:shrink-0 smart:rounded smart:px-2 smart:py-2 smart:text-red-600 smart:hover:bg-red-50';
|
|
9
9
|
/**
|
|
10
10
|
* One end of the advanced range: a translated label and a native number
|
|
11
|
-
* input bound to the slot's control (
|
|
12
|
-
* input is `null`).
|
|
11
|
+
* input bound to the slot's control (an emptied input is `null`).
|
|
13
12
|
*/
|
|
14
13
|
function RangeInput({ label, control, }) {
|
|
15
14
|
const t = (0, react_2.useTranslate)();
|
|
@@ -18,14 +17,13 @@ function RangeInput({ label, control, }) {
|
|
|
18
17
|
return ((0, jsx_runtime_1.jsxs)("div", { className: "smart:flex-1", children: [(0, jsx_runtime_1.jsx)("label", { htmlFor: id, className: "smart:block smart:text-sm/6 smart:font-medium smart:text-gray-900 smart:dark:text-white", children: t(label) }), (0, jsx_runtime_1.jsx)("input", { id: id, type: "number", step: "1", value: value ?? '', onChange: (e) => onChange((0, react_2.toNumberValue)(e.target.value)), onBlur: onBlur, className: "smart:mt-2 smart:block smart:w-full smart:rounded-md smart:bg-white smart:px-3 smart:py-1.5 smart:text-base smart:text-gray-900 smart:outline-1 -outline-offset-1 smart:outline-gray-300 smart:focus:outline-2 smart:focus:outline-offset-2 smart:focus:outline-indigo-600 smart:dark:bg-white/5 smart:dark:text-white smart:dark:outline-white/10" })] }));
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* the
|
|
24
|
-
*
|
|
25
|
-
* once, the range ones only their own.
|
|
20
|
+
* The int filter: the shared int field for the item's value; for an `=` item
|
|
21
|
+
* a settings button switches to the advanced "from" / "to" range (removing
|
|
22
|
+
* the value), shown as well while a range value is set. The clear button
|
|
23
|
+
* removes every entry of the item at once, the range ones only their own.
|
|
26
24
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
25
|
+
* The range controls are seeded once and not re-synced when the filter
|
|
26
|
+
* changes elsewhere (TODO GAP-19).
|
|
29
27
|
*/
|
|
30
28
|
function SmartCrudFilterInt(props) {
|
|
31
29
|
const filter = (0, use_crud_filter_1.useCrudFilter)(props);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-int.js","sourceRoot":"","sources":["../../../../../../../../../../packages/crud/shell/react/src/lib/components/filter/int/filter-int.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"filter-int.js","sourceRoot":"","sources":["../../../../../../../../../../packages/crud/shell/react/src/lib/components/filter/int/filter-int.tsx"],"names":[],"mappings":";;AA6DA,gDA0FC;;AAvJD,iCAAiD;AAEjD,+CAM6B;AAE7B,6DAA8E;AAG9E,MAAM,aAAa,GACjB,6FAA6F,CAAC;AAEhG;;;GAGG;AACH,SAAS,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I,EAAE,IAAI,CAAC,gBACvB,YAAY,EACvB,SAAS,EAAE,aAAa,uBAGjB,CACV,EAED,uBAAC,UAAU,IAAC,KAAK,EAAC,IAAI,EAAC,OAAO,EAAE,UAAU,GAAI,EAC7C,WAAW,IAAI,CACd,mCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,gBACvB,UAAU,EACrB,SAAS,EAAE,aAAa,uBAGjB,CACV,IACG,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SmartCrudFilterProps } from '../filter.types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* The radio filter: the shared radio field with the filter's possibilities,
|
|
4
|
+
* bound to the item's value, and a clear button while the value is truthy or
|
|
5
|
+
* `false`.
|
|
6
6
|
*/
|
|
7
7
|
export declare function SmartCrudFilterRadio(props: SmartCrudFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,9 +6,9 @@ const react_1 = require("react");
|
|
|
6
6
|
const react_2 = require("@smartsoft001/react");
|
|
7
7
|
const use_crud_filter_1 = require("../base/use-crud-filter");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* The radio filter: the shared radio field with the filter's possibilities,
|
|
10
|
+
* bound to the item's value, and a clear button while the value is truthy or
|
|
11
|
+
* `false`.
|
|
12
12
|
*/
|
|
13
13
|
function SmartCrudFilterRadio(props) {
|
|
14
14
|
const filter = (0, use_crud_filter_1.useCrudFilter)(props);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SmartCrudFilterProps } from '../filter.types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* The text filter: the shared text field bound to the item's value, and a
|
|
4
|
+
* clear button while it has one.
|
|
5
5
|
* Typing reads the list 500 ms after the last change.
|
|
6
6
|
*/
|
|
7
7
|
export declare function SmartCrudFilterText(props: SmartCrudFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,8 +6,8 @@ const react_1 = require("react");
|
|
|
6
6
|
const react_2 = require("@smartsoft001/react");
|
|
7
7
|
const use_crud_filter_1 = require("../base/use-crud-filter");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* The text filter: the shared text field bound to the item's value, and a
|
|
10
|
+
* clear button while it has one.
|
|
11
11
|
* Typing reads the list 500 ms after the last change.
|
|
12
12
|
*/
|
|
13
13
|
function SmartCrudFilterText(props) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { IEntity } from '@smartsoft001/domain-core';
|
|
2
2
|
import { SmartCrudFiltersProps } from './filters.types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* `list.filter`. Render it inside `<CrudProvider>`.
|
|
4
|
+
* The filters panel of the CRUD feature, opened in the end menu — a header
|
|
5
|
+
* with the title and a close button (unless `hideMenu`), then a
|
|
6
|
+
* `SmartCrudFilter` for every filter of the model: the `filters` of `@Model`
|
|
7
|
+
* and the fields with `list.filter`. Render it inside `<CrudProvider>`.
|
|
9
8
|
*/
|
|
10
9
|
export declare function SmartCrudFilters<T extends IEntity<string>>(props: SmartCrudFiltersProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,11 +6,10 @@ const react_1 = require("@smartsoft001/react");
|
|
|
6
6
|
const use_crud_filters_1 = require("./use-crud-filters");
|
|
7
7
|
const filter_1 = require("../filter/filter");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* `list.filter`. Render it inside `<CrudProvider>`.
|
|
9
|
+
* The filters panel of the CRUD feature, opened in the end menu — a header
|
|
10
|
+
* with the title and a close button (unless `hideMenu`), then a
|
|
11
|
+
* `SmartCrudFilter` for every filter of the model: the `filters` of `@Model`
|
|
12
|
+
* and the fields with `list.filter`. Render it inside `<CrudProvider>`.
|
|
14
13
|
*/
|
|
15
14
|
function SmartCrudFilters(props) {
|
|
16
15
|
const t = (0, react_1.useTranslate)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/filters/filters.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/filters/filters.tsx"],"names":[],"mappings":";;AAaA,4CAoCC;;AAhDD,+CAAmD;AAGnD,yDAAoD;AACpD,6CAAmD;AAEnD;;;;;GAKG;AACH,SAAgB,gBAAgB,CAC9B,KAA4B;IAE5B,MAAM,CAAC,GAAG,IAAA,oBAAY,GAAE,CAAC;IACzB,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GACnD,IAAA,iCAAc,EAAI,KAAK,CAAC,CAAC;IAE3B,OAAO,CACL,iCAAK,GAAG,EAAE,UAAU,EAAE,SAAS,EAAC,wCAAwC,aACrE,CAAC,QAAQ,IAAI,CACZ,oCAAQ,SAAS,EAAC,gHAAgH,aAChI,+BAAI,SAAS,EAAC,uDAAuD,YAClE,CAAC,CAAC,SAAS,CAAC,GACV,EACL,mCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,gBACL,OAAO,EAClB,SAAS,EAAC,qEAAqE,uBAGxE,IACF,CACV,EAED,gCAAK,SAAS,EAAC,0DAA0D,YACtE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACzB,uBAAC,wBAAe,IAEd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAFT,GAAG,KAAK,IAAI,IAAI,CAAC,GAAG,EAAE,CAG3B,CACH,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -2,11 +2,10 @@ import { IEntity } from '@smartsoft001/domain-core';
|
|
|
2
2
|
import { IModelFilter } from '@smartsoft001/models';
|
|
3
3
|
import { SmartCrudFiltersProps } from './filters.types';
|
|
4
4
|
/**
|
|
5
|
-
* The behaviour of the filters panel
|
|
6
|
-
* `
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* (the Angular `styleService.init(elementRef)`).
|
|
5
|
+
* The behaviour of the filters panel: `list` holds the filters of
|
|
6
|
+
* `config.type`, `filter` the current filter of the feature, and `onClose`
|
|
7
|
+
* closes the end menu the panel is shown in. Attach `elementRef` to the root
|
|
8
|
+
* element: it gets the application style.
|
|
10
9
|
*/
|
|
11
10
|
export declare function useCrudFilters<T extends IEntity<string>>({ hideMenu, }?: SmartCrudFiltersProps): {
|
|
12
11
|
elementRef: import("react").RefObject<HTMLDivElement | null>;
|
|
@@ -8,9 +8,9 @@ const crud_context_1 = require("../../crud.context");
|
|
|
8
8
|
const hooks_1 = require("../../hooks");
|
|
9
9
|
/**
|
|
10
10
|
* The filters of the model `type`: the model's `filters` (labelled
|
|
11
|
-
* `MODEL.<key>` when they have no label — set on the model's filter,
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* `MODEL.<key>` when they have no label — set on the model's filter itself),
|
|
12
|
+
* then a filter for each field with `list.filter`: `~=` for text fields, `=`
|
|
13
|
+
* for the others.
|
|
14
14
|
*/
|
|
15
15
|
function getFilters(type) {
|
|
16
16
|
const modelFilters = (0, models_1.getModelOptions)(type)?.filters;
|
|
@@ -37,11 +37,10 @@ function getFilters(type) {
|
|
|
37
37
|
];
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* The behaviour of the filters panel
|
|
41
|
-
* `
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* (the Angular `styleService.init(elementRef)`).
|
|
40
|
+
* The behaviour of the filters panel: `list` holds the filters of
|
|
41
|
+
* `config.type`, `filter` the current filter of the feature, and `onClose`
|
|
42
|
+
* closes the end menu the panel is shown in. Attach `elementRef` to the root
|
|
43
|
+
* element: it gets the application style.
|
|
45
44
|
*/
|
|
46
45
|
function useCrudFilters({ hideMenu = false, } = {}) {
|
|
47
46
|
const config = (0, crud_context_1.useCrudConfig)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-crud-filters.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/filters/use-crud-filters.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"use-crud-filters.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/filters/use-crud-filters.ts"],"names":[],"mappings":";;AA2DA,wCAsBC;AAjFD,iCAAgE;AAGhE,iDAM8B;AAC9B,+CAI6B;AAG7B,qDAAmD;AACnD,uCAA2C;AAE3C;;;;;GAKG;AACH,SAAS,UAAU,CAAC,IAAsB;IACxC,MAAM,YAAY,GAAG,IAAA,wBAAe,EAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAEpD,OAAO;QACL,GAAG,CAAC,YAAY;YACd,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;gBACxB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;oBAChB,IAAI,CAAC,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC;gBACnC,CAAC;gBACD,OAAO,IAAI,CAAC;YACd,CAAC,CAAC;YACJ,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,IAAA,kCAAyB,EAAC,IAAI,IAAI,EAAE,CAAC;aACrC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAE,IAAI,CAAC,OAAO,EAAE,IAA2B,EAAE,MAAM,CAAC;aACpE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACd,GAAG,EAAE,IAAI,CAAC,GAAG;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AC;IAElB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AACzD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* The active filters of the CRUD feature (the visible items of
|
|
3
|
+
* `filter.query`) as chips; clicking a chip removes the item and reads the
|
|
4
|
+
* list again. Render it inside `<CrudProvider>`.
|
|
5
5
|
*/
|
|
6
6
|
export declare function SmartCrudFiltersConfig(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -6,8 +6,7 @@ const react_1 = require("react");
|
|
|
6
6
|
const react_2 = require("@smartsoft001/react");
|
|
7
7
|
const crud_context_1 = require("../../crud.context");
|
|
8
8
|
const hooks_1 = require("../../hooks");
|
|
9
|
-
//
|
|
10
|
-
// value is shown as it is.
|
|
9
|
+
// A text value is translated, any other value is shown as it is.
|
|
11
10
|
function translateValue(t, value) {
|
|
12
11
|
if (value === null || value === undefined)
|
|
13
12
|
return '';
|
|
@@ -16,9 +15,9 @@ function translateValue(t, value) {
|
|
|
16
15
|
return String(value);
|
|
17
16
|
}
|
|
18
17
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* The active filters of the CRUD feature (the visible items of
|
|
19
|
+
* `filter.query`) as chips; clicking a chip removes the item and reads the
|
|
20
|
+
* list again. Render it inside `<CrudProvider>`.
|
|
22
21
|
*/
|
|
23
22
|
function SmartCrudFiltersConfig() {
|
|
24
23
|
const t = (0, react_2.useTranslate)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-config.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/filters-config/filters-config.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"filters-config.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/filters-config/filters-config.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AO,CACL,gCAAK,SAAS,EAAC,8DAA8D,YAC1E,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,oCAEE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,EAClC,SAAS,EAAC,yMAAyM,gBACvM,CAAC,CAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,aAEtD,6CACG,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,OAAG,IAAI,CAAC,IAAI,OAAG,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAC9D,EACP,gDAAkB,MAAM,EAAC,SAAS,EAAC,oBAAoB,uBAEhD,KAXF,GAAG,KAAK,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,CAYjC,CACV,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { IEntity } from '@smartsoft001/domain-core';
|
|
2
2
|
import { SmartCrudGroupProps } from './group.types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* `
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* `<CrudProvider>`.
|
|
4
|
+
* The list grouped by `groups`, each group an accessible disclosure — a
|
|
5
|
+
* button with `aria-expanded` / `aria-controls` and its region. An open group
|
|
6
|
+
* shows the list with `listOptions`, or its `children` groups. Render it
|
|
7
|
+
* inside `<CrudProvider>`.
|
|
9
8
|
*/
|
|
10
9
|
export declare function SmartCrudGroup<T extends IEntity<string>>(props: SmartCrudGroupProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,11 +5,10 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("@smartsoft001/react");
|
|
6
6
|
const use_crud_group_1 = require("./use-crud-group");
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* `
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* `<CrudProvider>`.
|
|
8
|
+
* The list grouped by `groups`, each group an accessible disclosure — a
|
|
9
|
+
* button with `aria-expanded` / `aria-controls` and its region. An open group
|
|
10
|
+
* shows the list with `listOptions`, or its `children` groups. Render it
|
|
11
|
+
* inside `<CrudProvider>`.
|
|
13
12
|
*/
|
|
14
13
|
function SmartCrudGroup(props) {
|
|
15
14
|
const t = (0, react_1.useTranslate)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/group/group.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/group/group.tsx"],"names":[],"mappings":";;AAYA,wCA4CC;;AAvDD,+CAAkE;AAGlE,qDAAgD;AAEhD;;;;;GAKG;AACH,SAAgB,cAAc,CAC5B,KAA6B;IAE7B,MAAM,CAAC,GAAG,IAAA,oBAAY,GAAE,CAAC;IACzB,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAA,6BAAY,EAAI,KAAK,CAAC,CAAC;IAE/D,OAAO,CACL,2DACG,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACrB,iCAAoB,SAAS,EAAC,sCAAsC,aAClE,oCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,mBACxB,IAAI,CAAC,IAAI,IAAI,KAAK,mBAClB,mBAAmB,GAAG,IAAI,CAAC,GAAG,EAC7C,SAAS,EAAE,IAAA,UAAE,EACX,2GAA2G,EAC3G,IAAI,CAAC,IAAI,IAAI,iBAAiB,CAC/B,aAED,2CAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAQ,EAC3B,gDAAkB,MAAM,EAAC,SAAS,EAAC,qBAAqB,YACrD,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GACjB,IACA,EACR,IAAI,CAAC,IAAI,IAAI,CACZ,iCAAK,EAAE,EAAE,mBAAmB,GAAG,IAAI,CAAC,GAAG,EAAE,SAAS,EAAC,YAAY,aAC5D,CAAC,IAAI,CAAC,QAAQ,IAAI,WAAW,IAAI,CAChC,uBAAC,iBAAS,IAAC,OAAO,EAAE,WAAW,GAAI,CACpC,EACA,IAAI,CAAC,QAAQ,IAAI,CAChB,gCAAK,SAAS,EAAC,aAAa,YAC1B,uBAAC,cAAc,IACb,MAAM,EAAE,IAAI,CAAC,QAAQ,EACrB,WAAW,EAAE,WAAW,GACxB,GACE,CACP,IACG,CACP,KA9BO,IAAI,CAAC,GAAG,CA+BZ,CACP,CAAC,GACD,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IEntity } from '@smartsoft001/domain-core';
|
|
2
2
|
import { IListOptions } from '@smartsoft001/react';
|
|
3
3
|
import { ICrudListGroup } from '../../models';
|
|
4
|
-
/** The props of `<SmartCrudGroup
|
|
4
|
+
/** The props of `<SmartCrudGroup>`. */
|
|
5
5
|
export interface SmartCrudGroupProps<T extends IEntity<string>> {
|
|
6
6
|
groups?: Array<ICrudListGroup> | null;
|
|
7
7
|
listOptions?: IListOptions<T> | null;
|
|
@@ -2,12 +2,11 @@ import { IEntity } from '@smartsoft001/domain-core';
|
|
|
2
2
|
import { SmartCrudGroupProps } from './group.types';
|
|
3
3
|
import { ICrudListGroup } from '../../models';
|
|
4
4
|
/**
|
|
5
|
-
* The behaviour of the list groups (the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* each change. When the component goes away, the service drops the query
|
|
5
|
+
* The behaviour of the list groups. `change(val, item)` closes the other
|
|
6
|
+
* groups, filters the list by the group through `CrudListGroupService` and
|
|
7
|
+
* sets `item.show` — on the next tick when opening (the list reads first), at
|
|
8
|
+
* once when closing. The groups are plain objects changed in place; the hook
|
|
9
|
+
* re-renders after each change. When the component goes away, the service drops the query
|
|
11
10
|
* items of the groups again.
|
|
12
11
|
*/
|
|
13
12
|
export declare function useCrudGroup<T extends IEntity<string>>({ groups, listOptions, }: SmartCrudGroupProps<T>): {
|
|
@@ -4,18 +4,16 @@ exports.useCrudGroup = useCrudGroup;
|
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const crud_context_1 = require("../../crud.context");
|
|
6
6
|
/**
|
|
7
|
-
* The behaviour of the list groups (the
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* each change. When the component goes away, the service drops the query
|
|
7
|
+
* The behaviour of the list groups. `change(val, item)` closes the other
|
|
8
|
+
* groups, filters the list by the group through `CrudListGroupService` and
|
|
9
|
+
* sets `item.show` — on the next tick when opening (the list reads first), at
|
|
10
|
+
* once when closing. The groups are plain objects changed in place; the hook
|
|
11
|
+
* re-renders after each change. When the component goes away, the service drops the query
|
|
13
12
|
* items of the groups again.
|
|
14
13
|
*/
|
|
15
14
|
function useCrudGroup({ groups = null, listOptions = null, }) {
|
|
16
15
|
const groupService = (0, crud_context_1.useCrudListGroupService)();
|
|
17
|
-
|
|
18
|
-
const [, detectChanges] = (0, react_1.useReducer)((tick) => tick + 1, 0);
|
|
16
|
+
const [, rerender] = (0, react_1.useReducer)((tick) => tick + 1, 0);
|
|
19
17
|
const latest = (0, react_1.useRef)({ groups, groupService });
|
|
20
18
|
(0, react_1.useEffect)(() => {
|
|
21
19
|
latest.current = { groups, groupService };
|
|
@@ -37,12 +35,12 @@ function useCrudGroup({ groups = null, listOptions = null, }) {
|
|
|
37
35
|
if (val) {
|
|
38
36
|
setTimeout(() => {
|
|
39
37
|
item.show = val;
|
|
40
|
-
|
|
38
|
+
rerender();
|
|
41
39
|
});
|
|
42
40
|
}
|
|
43
41
|
else {
|
|
44
42
|
item.show = val;
|
|
45
|
-
|
|
43
|
+
rerender();
|
|
46
44
|
}
|
|
47
45
|
}, [groups, groupService]);
|
|
48
46
|
return { groups, listOptions, change };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-crud-group.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/group/use-crud-group.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"use-crud-group.js","sourceRoot":"","sources":["../../../../../../../../../packages/crud/shell/react/src/lib/components/group/use-crud-group.ts"],"names":[],"mappings":";;AAgBA,oCA+CC;AA/DD,iCAAmE;AAKnE,qDAA6D;AAG7D;;;;;;;GAOG;AACH,SAAgB,YAAY,CAA4B,EACtD,MAAM,GAAG,IAAI,EACb,WAAW,GAAG,IAAI,GACK;IACvB,MAAM,YAAY,GAAG,IAAA,sCAAuB,GAAK,CAAC;IAClD,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,IAAA,kBAAU,EAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/D,MAAM,MAAM,GAAG,IAAA,cAAM,EAAC,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IAEhD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,CAAC,OAAO,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,IAAA,iBAAS,EACP,GAAG,EAAE,CAAC,GAAG,EAAE;QACT,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAE/B,IAAI,OAAO,CAAC,MAAM;YAAE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACnE,CAAC,EACD,EAAE,CACH,C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