@antelopejs/interface-dms 0.17.4 → 0.17.5-next.1111.gaba637e
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/CHANGELOG.md +0 -37
- package/dist/auth/index.d.ts +0 -42
- package/dist/auth/index.js +0 -40
- package/dist/auth/index.js.map +1 -1
- package/dist/base/data-types/default/options.d.ts +0 -30
- package/dist/base/data-types/default-types.d.ts +0 -10
- package/dist/base/data-types/default-types.js +0 -5
- package/dist/base/data-types/default-types.js.map +1 -1
- package/dist/base/form-schema.d.ts +0 -32
- package/dist/base/form-schema.js +0 -9
- package/dist/base/form-schema.js.map +1 -1
- package/dist/base/internal/column-badges.d.ts +2 -3
- package/dist/base/internal/column-badges.js +3 -4
- package/dist/base/internal/column-badges.js.map +1 -1
- package/dist/base/layouts.d.ts +1 -1
- package/dist/base/layouts.js.map +1 -1
- package/dist/base/table-view/internal/option-contract.d.ts +3 -3
- package/dist/base/table-view/internal/option-displays.d.ts +0 -30
- package/dist/base/table-view/internal/option-expandable.d.ts +0 -12
- package/dist/base/table-view/internal/validation.d.ts +4 -22
- package/dist/base/table-view/internal/validation.js +8 -29
- package/dist/base/table-view/internal/validation.js.map +1 -1
- package/dist/base/table-view/options.d.ts +0 -1
- package/dist/base/table-view/schema.d.ts +0 -2
- package/dist/base/table-view/schema.js +0 -8
- package/dist/base/table-view/schema.js.map +1 -1
- package/dist/base/table-view.d.ts +1 -1
- package/dist/base/table-view.js.map +1 -1
- package/dist/component-options/data-type.js +3 -3
- package/dist/component-options/data-type.js.map +1 -1
- package/dist/component-options/page-layout.d.ts +1 -29
- package/dist/component-options/page-layout.js +2 -8
- package/dist/component-options/page-layout.js.map +1 -1
- package/dist/page/internal/layout-filter.js +1 -1
- package/dist/page/internal/layout-filter.js.map +1 -1
- package/dist/request-tenant.d.ts +1 -2
- package/dist/request-tenant.js +1 -2
- package/dist/request-tenant.js.map +1 -1
- package/docs/1.core/12.frontend-modules-and-request-helpers.md +1 -21
- package/docs/1.core/5.tenancy.md +1 -1
- package/docs/2.auth/1.introduction.md +1 -1
- package/docs/2.auth/2.authentication.md +0 -68
- package/docs/3.base/11.page-layouts.md +1 -18
- package/docs/3.base/4.tables.md +3 -3
- package/docs/3.base/8.data-types.md +0 -7
- package/docs/5.html-render/2.built-in-emails.md +0 -2
- package/package.json +2 -2
- package/dist/base/data-types/default/identifiers.d.ts +0 -62
- package/dist/base/data-types/default/identifiers.js +0 -183
- package/dist/base/data-types/default/identifiers.js.map +0 -1
- package/dist/base/data-types/internal/legal-identifiers.d.ts +0 -36
- package/dist/base/data-types/internal/legal-identifiers.js +0 -191
- package/dist/base/data-types/internal/legal-identifiers.js.map +0 -1
- package/dist/base/table-view/internal/group-order.d.ts +0 -26
- package/dist/base/table-view/internal/group-order.js +0 -50
- package/dist/base/table-view/internal/group-order.js.map +0 -1
- package/dist/base/table-view/internal/grouped-pinned.d.ts +0 -6
- package/dist/base/table-view/internal/grouped-pinned.js +0 -19
- package/dist/base/table-view/internal/grouped-pinned.js.map +0 -1
- package/dist/component-options/internal/data-type-registry.d.ts +0 -14
- package/dist/component-options/internal/data-type-registry.js +0 -19
- package/dist/component-options/internal/data-type-registry.js.map +0 -1
- package/dist/period-request.d.ts +0 -66
- package/dist/period-request.js +0 -149
- package/dist/period-request.js.map +0 -1
- package/docs/3.base/16.identifier-types.md +0 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,42 +1,5 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## v0.17.4
|
|
4
|
-
|
|
5
|
-
[compare changes](https://github.com/AntelopeJS/dms/compare/interface-v0.17.3...interface-v0.17.4)
|
|
6
|
-
|
|
7
|
-
### 🚀 Enhancements
|
|
8
|
-
|
|
9
|
-
- **interface-dms:** Add a createdAtThenId index to the tenant table ([#1317](https://github.com/AntelopeJS/dms/pull/1317))
|
|
10
|
-
- **dms:** Warn of the mockup keys a block does not know, and return every compiler warning ([#1327](https://github.com/AntelopeJS/dms/pull/1327))
|
|
11
|
-
- **interface-dms:** Let EmptyLayout hide its logo and footer and fill the window ([#1323](https://github.com/AntelopeJS/dms/pull/1323))
|
|
12
|
-
- **dms:** Order the groups of the grouped table display ([#1332](https://github.com/AntelopeJS/dms/pull/1332))
|
|
13
|
-
- **interface-dms:** Read a PeriodSelector's period in a route with @Period() ([#1328](https://github.com/AntelopeJS/dms/pull/1328))
|
|
14
|
-
- **interface-dms:** Export a public bind for a verified credential without a user ([#1319](https://github.com/AntelopeJS/dms/pull/1319))
|
|
15
|
-
- **interface-dms:** Add IBAN, BIC, VAT number and company number data types ([#1324](https://github.com/AntelopeJS/dms/pull/1324))
|
|
16
|
-
- **dms:** Show expanded row fields in full and hide the empty ones ([#1256](https://github.com/AntelopeJS/dms/pull/1256))
|
|
17
|
-
- **dms:** Pin rows in the grouped table display ([#1335](https://github.com/AntelopeJS/dms/pull/1335))
|
|
18
|
-
|
|
19
|
-
### 🩹 Fixes
|
|
20
|
-
|
|
21
|
-
- **dms:** Point mockup issues at the faulty key and list the allowed values ([#1336](https://github.com/AntelopeJS/dms/pull/1336))
|
|
22
|
-
- **dms:** Send the built-in emails with a plain-text part beside the HTML ([#1320](https://github.com/AntelopeJS/dms/pull/1320))
|
|
23
|
-
- **dms:** Draw the all tab of tabsFrom in the dashboard's locale ([#1337](https://github.com/AntelopeJS/dms/pull/1337))
|
|
24
|
-
|
|
25
|
-
### 📦 Build
|
|
26
|
-
|
|
27
|
-
- **deps:** Bump tooling-configs to 0.10.15 and run sync ([#1312](https://github.com/AntelopeJS/dms/pull/1312))
|
|
28
|
-
- **deps:** Update the AntelopeJS module locks ([#1297](https://github.com/AntelopeJS/dms/pull/1297))
|
|
29
|
-
|
|
30
|
-
### 🏡 Chore
|
|
31
|
-
|
|
32
|
-
- **deps:** Update @antelopejs/tooling-configs to 0.10.14 and sync ([#1305](https://github.com/AntelopeJS/dms/pull/1305))
|
|
33
|
-
|
|
34
|
-
### ❤️ Contributors
|
|
35
|
-
|
|
36
|
-
- Antony Rizzitelli
|
|
37
|
-
- Maxime Westhoven
|
|
38
|
-
- dada-sudo
|
|
39
|
-
|
|
40
3
|
## v0.17.3
|
|
41
4
|
|
|
42
5
|
[compare changes](https://github.com/AntelopeJS/dms/compare/interface-v0.17.2...interface-v0.17.3)
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -26,48 +26,6 @@ export interface TenantTokenInput {
|
|
|
26
26
|
* `interfaces/dms/guards`).
|
|
27
27
|
*/
|
|
28
28
|
export declare function authenticateRequestUser(ctx: RequestContext): Promise<User>;
|
|
29
|
-
/**
|
|
30
|
-
* The caller of a credential that stands for no `User`: a machine token, a
|
|
31
|
-
* deploy key, a development environment.
|
|
32
|
-
*/
|
|
33
|
-
export interface VerifiedRequestIdentity {
|
|
34
|
-
/**
|
|
35
|
-
* The caller the credential stands for, in a form no `User._id` takes
|
|
36
|
-
* (`environment:<id>`). The DMS compares it with the identity the request
|
|
37
|
-
* already carries and reads nothing else from it.
|
|
38
|
-
*/
|
|
39
|
-
id: string;
|
|
40
|
-
/** The tenant the credential was issued for, read from the credential's stored record. */
|
|
41
|
-
tenantId: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Bind the identity of a credential you verified yourself to the request, for
|
|
45
|
-
* a credential that stands for no `User`. `getRequestTenantId` then answers
|
|
46
|
-
* `identity.tenantId` for this request, as it does after a DMS auth decorator.
|
|
47
|
-
*
|
|
48
|
-
* Call it once the credential in the request's `Authorization` header has
|
|
49
|
-
* passed every check that makes it valid: its secret or signature, its expiry
|
|
50
|
-
* and its revocation. Take both fields from the stored record of that
|
|
51
|
-
* credential, never from a claim, a header or a body the caller sent.
|
|
52
|
-
*
|
|
53
|
-
* It grants nothing. No membership, permission or tenant access gate is
|
|
54
|
-
* checked: the guard that calls it keeps those checks. A credential that
|
|
55
|
-
* stands for a `User` goes through a `RequestAuthenticator` instead
|
|
56
|
-
* (`authenticateTenantRequest`, `AuthTenantMember`, `AuthTenantOwner`), which
|
|
57
|
-
* reloads the user and checks its membership.
|
|
58
|
-
*
|
|
59
|
-
* A provider resolved alongside the guard (`TenantScopedModel`,
|
|
60
|
-
* `resolveRequestTenantId`) does not wait for this call. A request such a
|
|
61
|
-
* provider already read as anonymous refuses the identity, so read the tenant
|
|
62
|
-
* in the handler with `getRequestTenantId`.
|
|
63
|
-
*
|
|
64
|
-
* @param ctx The request context the guard's provider receives
|
|
65
|
-
* @param identity The caller and the tenant of the verified credential
|
|
66
|
-
* @throws HTTPResult 401 when `identity` has no id or no tenant, when the
|
|
67
|
-
* request already carries another identity or tenant, a failed authentication
|
|
68
|
-
* or an anonymous read, or when its `Authorization` header changed since
|
|
69
|
-
*/
|
|
70
|
-
export declare function bindVerifiedRequestIdentity(ctx: RequestContext, identity: VerifiedRequestIdentity): void;
|
|
71
29
|
/**
|
|
72
30
|
* @internal
|
|
73
31
|
*/
|
package/dist/auth/index.js
CHANGED
|
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.sanitizeUser = exports.sendAdminInviteEmail = exports.sendEmailForgotEmail = exports.sendEmailValidationEmail = exports.send2FAEmail = exports.validateTenantAssignmentToken = exports.generateTenantAssignmentToken = exports.validateTwoFactorToken = exports.generateTwoFactorToken = exports.validateRefreshToken = exports.generateRefreshToken = exports.generateAccessToken = exports.AuthOwnerOnly = exports.IfAuthUser = exports.AuthUser = exports.AuthRawUser = exports.internal = exports.ParseUserAgent = exports.NotifyCollaboratorJoined = exports.NotifyWelcome = void 0;
|
|
18
18
|
exports.authenticateRequestUser = authenticateRequestUser;
|
|
19
|
-
exports.bindVerifiedRequestIdentity = bindVerifiedRequestIdentity;
|
|
20
19
|
exports.linkExternalIdentity = linkExternalIdentity;
|
|
21
20
|
exports.getExternalIdentities = getExternalIdentities;
|
|
22
21
|
exports.announceRegistration = announceRegistration;
|
|
@@ -67,45 +66,6 @@ async function authenticateRequestUser(ctx) {
|
|
|
67
66
|
});
|
|
68
67
|
return validated;
|
|
69
68
|
}
|
|
70
|
-
/**
|
|
71
|
-
* Bind the identity of a credential you verified yourself to the request, for
|
|
72
|
-
* a credential that stands for no `User`. `getRequestTenantId` then answers
|
|
73
|
-
* `identity.tenantId` for this request, as it does after a DMS auth decorator.
|
|
74
|
-
*
|
|
75
|
-
* Call it once the credential in the request's `Authorization` header has
|
|
76
|
-
* passed every check that makes it valid: its secret or signature, its expiry
|
|
77
|
-
* and its revocation. Take both fields from the stored record of that
|
|
78
|
-
* credential, never from a claim, a header or a body the caller sent.
|
|
79
|
-
*
|
|
80
|
-
* It grants nothing. No membership, permission or tenant access gate is
|
|
81
|
-
* checked: the guard that calls it keeps those checks. A credential that
|
|
82
|
-
* stands for a `User` goes through a `RequestAuthenticator` instead
|
|
83
|
-
* (`authenticateTenantRequest`, `AuthTenantMember`, `AuthTenantOwner`), which
|
|
84
|
-
* reloads the user and checks its membership.
|
|
85
|
-
*
|
|
86
|
-
* A provider resolved alongside the guard (`TenantScopedModel`,
|
|
87
|
-
* `resolveRequestTenantId`) does not wait for this call. A request such a
|
|
88
|
-
* provider already read as anonymous refuses the identity, so read the tenant
|
|
89
|
-
* in the handler with `getRequestTenantId`.
|
|
90
|
-
*
|
|
91
|
-
* @param ctx The request context the guard's provider receives
|
|
92
|
-
* @param identity The caller and the tenant of the verified credential
|
|
93
|
-
* @throws HTTPResult 401 when `identity` has no id or no tenant, when the
|
|
94
|
-
* request already carries another identity or tenant, a failed authentication
|
|
95
|
-
* or an anonymous read, or when its `Authorization` header changed since
|
|
96
|
-
*/
|
|
97
|
-
function bindVerifiedRequestIdentity(ctx, identity) {
|
|
98
|
-
if (!(0, type_check_1.isString)(identity.id) ||
|
|
99
|
-
!identity.id ||
|
|
100
|
-
!(0, type_check_1.isString)(identity.tenantId) ||
|
|
101
|
-
!identity.tenantId) {
|
|
102
|
-
throw (0, request_authenticators_1.unauthorized)();
|
|
103
|
-
}
|
|
104
|
-
(0, request_authenticators_1.bindVerifiedRequestPrincipal)(ctx, {
|
|
105
|
-
userId: identity.id,
|
|
106
|
-
tenantId: identity.tenantId,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
69
|
/**
|
|
110
70
|
* @internal
|
|
111
71
|
*/
|
package/dist/auth/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA4E;AAC5E,+DAA+D;AAC/D,gEAA6D;AAC7D,6FAAqE;AACrE,oCAA8C;AAC9C,6BAOc;AACd,8DAAyD;AAEzD,sEAAuE;AACvE,8EAG2C;AAC3C,4CAAiD;AACjD,6DAAmE;AAEnE,2DAAyC;AAEzC;;;;;;GAMG;AACU,QAAA,aAAa,GACxB,IAAA,kCAAiB,GAA0C,CAAC;AAE9D,gBAAgB;AACH,QAAA,wBAAwB,GACnC,IAAA,kCAAiB,GAEd,CAAC;AAEN,gBAAgB;AACH,QAAA,cAAc,GACzB,IAAA,kCAAiB,GAA0C,CAAC;AAE9D,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,+BAA+B,GAAG,qCAAqC,CAAC;AAQ9E;;;;;GAKG;AACI,KAAK,kCACV,GAAmB;IAEnB,MAAM,UAAU,GAAG,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC;IAC1D,MAAM,KAAK,GAAG,IAAA,qBAAQ,EAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1E,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;IA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CAAC,CAAC,CAAC,CAAC;AAChB,CAAC"}
|
|
@@ -161,36 +161,6 @@ export type PhoneTypeOptions = {
|
|
|
161
161
|
defaultCountry?: string;
|
|
162
162
|
fallback?: string;
|
|
163
163
|
};
|
|
164
|
-
export type IbanTypeOptions = {
|
|
165
|
-
placeholder?: string;
|
|
166
|
-
fallback?: string;
|
|
167
|
-
};
|
|
168
|
-
export type BicTypeOptions = {
|
|
169
|
-
placeholder?: string;
|
|
170
|
-
fallback?: string;
|
|
171
|
-
};
|
|
172
|
-
export type VatNumberTypeOptions = {
|
|
173
|
-
placeholder?: string;
|
|
174
|
-
/**
|
|
175
|
-
* ISO 3166-1 alpha-2 code ("BE") a number typed without its country's
|
|
176
|
-
* code is read in. Valid values are stored as VIES writes them
|
|
177
|
-
* ("BE0123456749").
|
|
178
|
-
*/
|
|
179
|
-
defaultCountry?: string;
|
|
180
|
-
fallback?: string;
|
|
181
|
-
};
|
|
182
|
-
/** A country whose company registration number `CompanyNumberType` reads. */
|
|
183
|
-
export type CompanyNumberCountry = "BE" | "FR";
|
|
184
|
-
export type CompanyNumberTypeOptions = {
|
|
185
|
-
/**
|
|
186
|
-
* The register the number belongs to: `"BE"` an enterprise number of the
|
|
187
|
-
* Crossroads Bank for Enterprises (ten digits), `"FR"` a SIREN (nine
|
|
188
|
-
* digits). Valid values are stored as digits only.
|
|
189
|
-
*/
|
|
190
|
-
country: CompanyNumberCountry;
|
|
191
|
-
placeholder?: string;
|
|
192
|
-
fallback?: string;
|
|
193
|
-
};
|
|
194
164
|
export type RichTextTypeOptions = {
|
|
195
165
|
placeholder?: string;
|
|
196
166
|
fallback?: string;
|
|
@@ -18,7 +18,6 @@ import * as defaultStrings from "./default/strings";
|
|
|
18
18
|
import * as defaultRelations from "./default/relations";
|
|
19
19
|
import * as defaultAddress from "./default/address";
|
|
20
20
|
import * as defaultFiles from "./default/files";
|
|
21
|
-
import * as defaultIdentifiers from "./default/identifiers";
|
|
22
21
|
/** How a `SelectType` shows its options. */
|
|
23
22
|
export declare const SELECT_DISPLAYS: readonly ["dropdown", "cards", "segmented", "radio"];
|
|
24
23
|
/** How a `BooleanType` shows its value. */
|
|
@@ -38,11 +37,6 @@ export declare namespace DefaultDataTypes {
|
|
|
38
37
|
export import PhoneTypeOptions = defaultOptions.PhoneTypeOptions;
|
|
39
38
|
export import RichTextTypeOptions = defaultOptions.RichTextTypeOptions;
|
|
40
39
|
export import StringTimeTypeOptions = defaultOptions.StringTimeTypeOptions;
|
|
41
|
-
export import IbanTypeOptions = defaultOptions.IbanTypeOptions;
|
|
42
|
-
export import BicTypeOptions = defaultOptions.BicTypeOptions;
|
|
43
|
-
export import VatNumberTypeOptions = defaultOptions.VatNumberTypeOptions;
|
|
44
|
-
export import CompanyNumberCountry = defaultOptions.CompanyNumberCountry;
|
|
45
|
-
export import CompanyNumberTypeOptions = defaultOptions.CompanyNumberTypeOptions;
|
|
46
40
|
export import NumberType = defaultNumbers.NumberType;
|
|
47
41
|
export import StringType = defaultNumbers.StringType;
|
|
48
42
|
export import DateType = defaultNumbers.DateType;
|
|
@@ -55,10 +49,6 @@ export declare namespace DefaultDataTypes {
|
|
|
55
49
|
export import PasswordType = defaultStrings.PasswordType;
|
|
56
50
|
export import UrlType = defaultStrings.UrlType;
|
|
57
51
|
export import PhoneType = defaultStrings.PhoneType;
|
|
58
|
-
export import IbanType = defaultIdentifiers.IbanType;
|
|
59
|
-
export import BicType = defaultIdentifiers.BicType;
|
|
60
|
-
export import VatNumberType = defaultIdentifiers.VatNumberType;
|
|
61
|
-
export import CompanyNumberType = defaultIdentifiers.CompanyNumberType;
|
|
62
52
|
export import RelationFilterBy = defaultRelations.RelationFilterBy;
|
|
63
53
|
export import RelationType = defaultRelations.RelationType;
|
|
64
54
|
export import CascaderRelationType = defaultRelations.CascaderRelationType;
|
|
@@ -53,7 +53,6 @@ const defaultStrings = __importStar(require("./default/strings"));
|
|
|
53
53
|
const defaultRelations = __importStar(require("./default/relations"));
|
|
54
54
|
const defaultAddress = __importStar(require("./default/address"));
|
|
55
55
|
const defaultFiles = __importStar(require("./default/files"));
|
|
56
|
-
const defaultIdentifiers = __importStar(require("./default/identifiers"));
|
|
57
56
|
/** How a `SelectType` shows its options. */
|
|
58
57
|
exports.SELECT_DISPLAYS = [
|
|
59
58
|
"dropdown",
|
|
@@ -77,10 +76,6 @@ var DefaultDataTypes;
|
|
|
77
76
|
DefaultDataTypes.PasswordType = defaultStrings.PasswordType;
|
|
78
77
|
DefaultDataTypes.UrlType = defaultStrings.UrlType;
|
|
79
78
|
DefaultDataTypes.PhoneType = defaultStrings.PhoneType;
|
|
80
|
-
DefaultDataTypes.IbanType = defaultIdentifiers.IbanType;
|
|
81
|
-
DefaultDataTypes.BicType = defaultIdentifiers.BicType;
|
|
82
|
-
DefaultDataTypes.VatNumberType = defaultIdentifiers.VatNumberType;
|
|
83
|
-
DefaultDataTypes.CompanyNumberType = defaultIdentifiers.CompanyNumberType;
|
|
84
79
|
DefaultDataTypes.RelationType = defaultRelations.RelationType;
|
|
85
80
|
DefaultDataTypes.CascaderRelationType = defaultRelations.CascaderRelationType;
|
|
86
81
|
DefaultDataTypes.AddressType = defaultAddress.AddressType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-types.js","sourceRoot":"","sources":["../../../src/base/data-types/default-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAoC;AACpC,mDAAiD;AACjD,8CAA4C;AAC5C,eAAa;AACb,6CAA2C;AAC3C,2CAAyC;AACzC,6BAA2B;AAC3B,0BAAwB;AACxB,oBAAkB;AAClB,kBAAgB;AAChB,MAAY,UAAU,0CAAsB;AAC5C,oCAAkC;AAClC,2BAAyB;AAEzB,MAAY,cAAc,8CAA0B;AACpD,MAAY,cAAc,8CAA0B;AACpD,MAAY,cAAc,8CAA0B;AACpD,MAAY,gBAAgB,gDAA4B;AACxD,MAAY,cAAc,8CAA0B;AACpD,MAAY,YAAY,4CAAwB;AAChD,
|
|
1
|
+
{"version":3,"file":"default-types.js","sourceRoot":"","sources":["../../../src/base/data-types/default-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAoC;AACpC,mDAAiD;AACjD,8CAA4C;AAC5C,eAAa;AACb,6CAA2C;AAC3C,2CAAyC;AACzC,6BAA2B;AAC3B,0BAAwB;AACxB,oBAAkB;AAClB,kBAAgB;AAChB,MAAY,UAAU,0CAAsB;AAC5C,oCAAkC;AAClC,2BAAyB;AAEzB,MAAY,cAAc,8CAA0B;AACpD,MAAY,cAAc,8CAA0B;AACpD,MAAY,cAAc,8CAA0B;AACpD,MAAY,gBAAgB,gDAA4B;AACxD,MAAY,cAAc,8CAA0B;AACpD,MAAY,YAAY,4CAAwB;AAChD,4CAA4C;AAC/B,QAAA,eAAe,GAAG;IAC7B,UAAU;IACV,OAAO;IACP,WAAW;IACX,OAAO;CACC,CAAC;AAEX,2CAA2C;AAC9B,QAAA,gBAAgB,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAU,CAAC;AAIxE,IAAiB,gBAAgB,CAqEhC;AArED,WAAiB,gBAAgB;IAcjB,iBAAA,UAAU,GAAG,cAAc,CAAC,UAAW,CAAA;IACvC,iBAAA,UAAU,GAAG,cAAc,CAAC,UAAW,CAAA;IACvC,iBAAA,QAAQ,GAAG,cAAc,CAAC,QAAS,CAAA;IACnC,iBAAA,WAAW,GAAG,cAAc,CAAC,WAAY,CAAA;IACzC,iBAAA,UAAU,GAAG,cAAc,CAAC,UAAW,CAAA;IACvC,iBAAA,SAAS,GAAG,cAAc,CAAC,SAAU,CAAA;IACrC,iBAAA,cAAc,GAAG,cAAc,CAAC,cAAe,CAAA;IAC/C,iBAAA,SAAS,GAAG,cAAc,CAAC,SAAU,CAAA;IACrC,iBAAA,SAAS,GAAG,cAAc,CAAC,SAAU,CAAA;IACrC,iBAAA,YAAY,GAAG,cAAc,CAAC,YAAa,CAAA;IAC3C,iBAAA,OAAO,GAAG,cAAc,CAAC,OAAQ,CAAA;IACjC,iBAAA,SAAS,GAAG,cAAc,CAAC,SAAU,CAAA;IAErC,iBAAA,YAAY,GAAG,gBAAgB,CAAC,YAAa,CAAA;IAC7C,iBAAA,oBAAoB,GAAG,gBAAgB,CAAC,oBAAqB,CAAA;IAG7D,iBAAA,WAAW,GAAG,cAAc,CAAC,WAAY,CAAA;IACzC,iBAAA,YAAY,GAAG,YAAY,CAAC,YAAa,CAAA;IACzC,iBAAA,cAAc,GAAG,YAAY,CAAC,cAAe,CAAA;IAE7C,iBAAA,QAAQ,GAAG,YAAY,CAAC,QAAS,CAAA;IAGjC,iBAAA,SAAS,GAAG,YAAY,CAAC,SAAU,CAAA;IAEpC,0BAAS,GAAG,UAAU,CAAC,SAAS,CAAC;IAMjC,6BAAY,GAAG,UAAU,CAAC,YAAY,CAAC;IAMvC,2BAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAMnC,yBAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;IAM/B,yBAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;AAK9C,CAAC,EArEgB,gBAAgB,aAAhB,gBAAgB,GAAhB,gBAAgB,QAqEhC"}
|
|
@@ -3,7 +3,6 @@ import "../component";
|
|
|
3
3
|
import "../uploads";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import type { DefaultDataTypes } from "./data-types/default-types";
|
|
6
|
-
import type { CompanyNumberCountry } from "./data-types/default/options";
|
|
7
6
|
import type * as RelationPickers from "./form-relation-options";
|
|
8
7
|
import type { AxeOrientation, DefaultValue, EnumOption } from "./types";
|
|
9
8
|
import "./internal/form-block-schema";
|
|
@@ -193,31 +192,6 @@ export declare namespace FormComponents {
|
|
|
193
192
|
requiredPrefix?: boolean;
|
|
194
193
|
defaultCountry?: string;
|
|
195
194
|
}
|
|
196
|
-
/** A legal or bank identifier `InputIdentifier` reads. */
|
|
197
|
-
type IdentifierKind = "iban" | "bic" | "vat_number" | "company_number";
|
|
198
|
-
/**
|
|
199
|
-
* The options of `InputIdentifier`, by `identifier`: which identifier the
|
|
200
|
-
* field holds, and so which rule it checks. A company number needs its
|
|
201
|
-
* `country`; only a VAT number takes a `defaultCountry`.
|
|
202
|
-
*/
|
|
203
|
-
type InputIdentifierOptions = {
|
|
204
|
-
identifier: "iban" | "bic";
|
|
205
|
-
placeholder?: string;
|
|
206
|
-
defaultCountry?: never;
|
|
207
|
-
country?: never;
|
|
208
|
-
} | {
|
|
209
|
-
identifier: "vat_number";
|
|
210
|
-
placeholder?: string;
|
|
211
|
-
/** The country a number typed without its code is read in. */
|
|
212
|
-
defaultCountry?: string;
|
|
213
|
-
country?: never;
|
|
214
|
-
} | {
|
|
215
|
-
identifier: "company_number";
|
|
216
|
-
placeholder?: string;
|
|
217
|
-
defaultCountry?: never;
|
|
218
|
-
/** The country whose register the number belongs to. */
|
|
219
|
-
country: CompanyNumberCountry;
|
|
220
|
-
};
|
|
221
195
|
interface InputTextOptions {
|
|
222
196
|
placeholder?: string;
|
|
223
197
|
maxLength?: number;
|
|
@@ -348,12 +322,6 @@ export declare namespace FormComponents {
|
|
|
348
322
|
function InputTime(options?: InputTimeOptions): ComponentInfoSerialized<InputTimeOptions>;
|
|
349
323
|
function InputText(options?: InputTextOptions): ComponentInfoSerialized<InputTextOptions>;
|
|
350
324
|
function InputPhone(options?: InputPhoneOptions): ComponentInfoSerialized<InputPhoneOptions>;
|
|
351
|
-
/**
|
|
352
|
-
* A text input for an IBAN, a BIC, a VAT number or a company registration
|
|
353
|
-
* number: it checks the value with the rule of its data type as it is
|
|
354
|
-
* typed, and shows it as printed (an IBAN in groups of four) once read.
|
|
355
|
-
*/
|
|
356
|
-
function InputIdentifier(options: InputIdentifierOptions): ComponentInfoSerialized<InputIdentifierOptions>;
|
|
357
325
|
function InputRadioGroup<T extends RadioGroupOptions>(options: T): ComponentInfoSerialized<T>;
|
|
358
326
|
function InputSelect<T extends SelectOptions>(options: T): ComponentInfoSerialized<T>;
|
|
359
327
|
function InputRelation<T extends RelationOptions>(options: T): ComponentInfoSerialized<T>;
|
package/dist/base/form-schema.js
CHANGED
|
@@ -180,15 +180,6 @@ var FormComponents;
|
|
|
180
180
|
return (0, form_schema_components_1.formComponent)("dms-input-phone", options);
|
|
181
181
|
}
|
|
182
182
|
FormComponents.InputPhone = InputPhone;
|
|
183
|
-
/**
|
|
184
|
-
* A text input for an IBAN, a BIC, a VAT number or a company registration
|
|
185
|
-
* number: it checks the value with the rule of its data type as it is
|
|
186
|
-
* typed, and shows it as printed (an IBAN in groups of four) once read.
|
|
187
|
-
*/
|
|
188
|
-
function InputIdentifier(options) {
|
|
189
|
-
return (0, form_schema_components_1.formComponent)("dms-input-identifier", options);
|
|
190
|
-
}
|
|
191
|
-
FormComponents.InputIdentifier = InputIdentifier;
|
|
192
183
|
function InputRadioGroup(options) {
|
|
193
184
|
return (0, form_schema_components_1.formComponent)("dms-radio-group", options);
|
|
194
185
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-schema.js","sourceRoot":"","sources":["../../src/base/form-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,wBAAsB;AACtB,sBAAoB;AACpB,6BAAwB;AACxB,4CAAkD;
|
|
1
|
+
{"version":3,"file":"form-schema.js","sourceRoot":"","sources":["../../src/base/form-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,wBAAsB;AACtB,sBAAoB;AACpB,6BAAwB;AACxB,4CAAkD;AAIlD,wCAAsC;AAUtC,8EAI2C;AAC3C,8EAK2C;AAE3C,sDAAoC;AAapC;;GAEG;AACH,oCACE,UAAwB,EACxB,OAA+B;IAE/B,IAAI,MAAM,GAAG,UAAU,CAAC;IAExB,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACtB,MAAM,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,C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CAAC,CAAC;IACnD,CAAC;IAJe,eAAA,UAAU,aAIzB,CAAA;IAED,SAAgB,eAAe,CAC7B,OAAgC;QAEhC,OAAO,IAAA,sCAAa,EAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAJe,eAAA,eAAe,kBAI9B,CAAA;IAED,SAAgB,YAAY,CAC1B,OAAW;QAEX,OAAO,IAAA,sCAAa,EAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAJe,eAAA,YAAY,eAI3B,CAAA;IAED,SAAgB,QAAQ,CACtB,OAAyB;QAEzB,OAAO,IAAA,sCAAa,EAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAJe,eAAA,QAAQ,WAIvB,CAAA;IAED,SAAgB,IAAI,CAClB,OAAqB;QAErB,OAAO,IAAA,sCAAa,EAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAJe,eAAA,IAAI,OAInB,CAAA;IAED,SAAgB,KAAK,CACnB,OAAsB;QAEtB,OAAO,IAAA,sCAAa,EAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAJe,eAAA,KAAK,QAIpB,CAAA;AACH,CAAC,EAvegB,cAAc,aAAd,cAAc,GAAd,cAAc,QAue9B"}
|
|
@@ -36,9 +36,8 @@ export interface ColumnBadgeTab {
|
|
|
36
36
|
*/
|
|
37
37
|
export declare function badgeItems(values: readonly string[]): ColumnBadge[];
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* value and drawn in its tone.
|
|
41
|
-
* in its own locale.
|
|
39
|
+
* "All", then a tab per badge of `column` in its order, filtering the rows
|
|
40
|
+
* that hold its value and drawn in its tone.
|
|
42
41
|
*
|
|
43
42
|
* @internal
|
|
44
43
|
*/
|
|
@@ -63,9 +63,8 @@ function tabId(column, value) {
|
|
|
63
63
|
return [...words(column), ...words(value)].join("-");
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
* value and drawn in its tone.
|
|
68
|
-
* in its own locale.
|
|
66
|
+
* "All", then a tab per badge of `column` in its order, filtering the rows
|
|
67
|
+
* that hold its value and drawn in its tone.
|
|
69
68
|
*
|
|
70
69
|
* @internal
|
|
71
70
|
*/
|
|
@@ -82,6 +81,6 @@ function badgeTabs(column, badges) {
|
|
|
82
81
|
textColor: badge.tone,
|
|
83
82
|
};
|
|
84
83
|
});
|
|
85
|
-
return tabs;
|
|
84
|
+
return [{ id: ALL_TAB_ID, label: "All" }, ...tabs];
|
|
86
85
|
}
|
|
87
86
|
//# sourceMappingURL=column-badges.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-badges.js","sourceRoot":"","sources":["../../../src/base/internal/column-badges.ts"],"names":[],"mappings":";;;;AA4BA,sGAAsG;AACtG,MAAM,UAAU,GAAoD;IAClE;QACE,SAAS;QACT,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,CAAC;KAC5E;IACD,CAAC,SAAS,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACpE;QACE,OAAO;QACP;YACE,QAAQ;YACR,WAAW;YACX,UAAU;YACV,UAAU;YACV,UAAU;YACV,OAAO;YACP,SAAS;SACV;KACF;IACD,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CAC1B,CAAC;AAEF,MAAM,YAAY,GAAG,IAAI,GAAG,CAC1B,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAClC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACjD,CACF,CAAC;AAEF,0FAA0F;AAC1F,MAAM,UAAU,GAAoB,CAAC,SAAS,EAAE,WA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,SAAS,KAAK,CAAC,MAAc,EAAE,KAAa;IAC1C,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACvD,CAAC;AAED;;;;;GAKG;AACH,mBACE,MAAc,EACd,MAA8B;IAE9B,MAAM,KAAK,GAAG,IAAI,GAAG,CAAS,CAAC,UAAU,CAAC,CAAC,CAAC;IAC5C,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QACvC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QACtC,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACrD,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAClB,OAAO;YACL,EAAE,EAAE,MAAM;YACV,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE;YAClE,SAAS,EAAE,KAAK,CAAC,IAAI;SACtB,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC;AACrD,CAAC"}
|
package/dist/base/layouts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pageLayout from "../component-options/page-layout";
|
|
2
|
-
export type { DefaultLayoutOptions,
|
|
2
|
+
export type { DefaultLayoutOptions, PageHeaderButton, PageRecordLoader, } from "../component-options/page-layout";
|
|
3
3
|
export import DefaultLayout = pageLayout.DefaultLayout;
|
|
4
4
|
export import FormPageLayout = pageLayout.FormPageLayout;
|
|
5
5
|
export import SettingsLayout = pageLayout.SettingsLayout;
|
package/dist/base/layouts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layouts.js","sourceRoot":"","sources":["../../src/base/layouts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,UAAU,6DAAyC;
|
|
1
|
+
{"version":3,"file":"layouts.js","sourceRoot":"","sources":["../../src/base/layouts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,UAAU,6DAAyC;AAOjD,QAAA,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC;AACzC,QAAA,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;AAC3C,QAAA,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;AAC3C,QAAA,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC"}
|
|
@@ -182,9 +182,9 @@ export interface TableViewOptions<T extends object = Record<string, unknown>> {
|
|
|
182
182
|
* them. The rest follows in the sort's order. A route answering every row
|
|
183
183
|
* (a `TableView.fromSource` without `paginate`) has its pinned rows on the
|
|
184
184
|
* first page; a route answering one page has them first within the page it
|
|
185
|
-
* answers. The `grouped` display
|
|
186
|
-
*
|
|
187
|
-
*
|
|
185
|
+
* answers. The `grouped` display keeps its groups and pins nothing;
|
|
186
|
+
* registration refuses it alongside `reorder`, whose rows keep their
|
|
187
|
+
* position.
|
|
188
188
|
* @example { field: "isBase", equals: true }
|
|
189
189
|
*/
|
|
190
190
|
pinnedRows?: RowActionRule<T>;
|
|
@@ -101,12 +101,6 @@ export interface KanbanOptions {
|
|
|
101
101
|
}
|
|
102
102
|
/** How the `grouped` display cuts the rows into groups. */
|
|
103
103
|
export type TableViewGroupBy = "value" | "day" | "week";
|
|
104
|
-
/**
|
|
105
|
-
* The order of the `grouped` display's groups: `"items"`, the order of the
|
|
106
|
-
* `items` of the column's `SelectType` (the badge), as the kanban's columns
|
|
107
|
-
* follow it; or the stored values themselves, in the order wanted.
|
|
108
|
-
*/
|
|
109
|
-
export type TableViewGroupOrder = "items" | (string | number | boolean)[];
|
|
110
104
|
/**
|
|
111
105
|
* The `grouped` display: the table's own columns, with a header row before
|
|
112
106
|
* each group of rows sharing a value of `groupByField` (a status, a day of a
|
|
@@ -124,32 +118,8 @@ export interface GroupedOptions {
|
|
|
124
118
|
* per calendar day or week of a date column.
|
|
125
119
|
*/
|
|
126
120
|
by?: TableViewGroupBy;
|
|
127
|
-
/**
|
|
128
|
-
* The order of the groups, with `by: "value"` only. Left out, the groups
|
|
129
|
-
* follow the sort on the stored value (alphabetical for a text). The list
|
|
130
|
-
* route reads each group's rows in this order across pages, so the first
|
|
131
|
-
* page opens on the first group; rows holding a value the order leaves
|
|
132
|
-
* out, or none, follow in the sort's order. Applies to `groupByField`:
|
|
133
|
-
* grouped on another column from the options menu, the rows follow that
|
|
134
|
-
* column's badge with `"items"`, its sort with a list of values.
|
|
135
|
-
*/
|
|
136
|
-
order?: TableViewGroupOrder;
|
|
137
121
|
/** A click on a group header folds its rows. */
|
|
138
122
|
collapsible?: boolean;
|
|
139
123
|
/** Group headers show how many rows the group holds. */
|
|
140
124
|
count?: boolean;
|
|
141
|
-
/**
|
|
142
|
-
* The rows the table's `pinnedRows` accepts lead the display as a group
|
|
143
|
-
* of their own, before the others, as they lead the grid: within the page
|
|
144
|
-
* the list route answers. They leave their value's group on that page.
|
|
145
|
-
* The group folds like the others, and with `count` its header shows how
|
|
146
|
-
* many rows it holds on the page. Registration throws without
|
|
147
|
-
* `pinnedRows`.
|
|
148
|
-
*/
|
|
149
|
-
pinned?: boolean;
|
|
150
|
-
/**
|
|
151
|
-
* Heading of the pinned group (`$`: i18n key), "Pinned" when left out:
|
|
152
|
-
* `"Overdue"`, `"$orders.late"`.
|
|
153
|
-
*/
|
|
154
|
-
pinnedLabel?: string;
|
|
155
125
|
}
|
|
@@ -6,18 +6,6 @@ export interface TableViewExpandableField {
|
|
|
6
6
|
key: string;
|
|
7
7
|
/** Label shown instead of the column's name. `$`-prefixed: an i18n key. */
|
|
8
8
|
label?: string;
|
|
9
|
-
/**
|
|
10
|
-
* The value takes the band's whole width under its label and is shown in
|
|
11
|
-
* full: it wraps instead of being cut, keeps its line breaks, and an
|
|
12
|
-
* `ArrayType` or `KeyValueType` lists its entries instead of their count.
|
|
13
|
-
*/
|
|
14
|
-
fullWidth?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Leaves the field out of a row with no value for it: absent, `null`, an
|
|
17
|
-
* empty text, an empty list or an object without keys. `0` and `false` are
|
|
18
|
-
* values.
|
|
19
|
-
*/
|
|
20
|
-
hideEmpty?: boolean;
|
|
21
9
|
}
|
|
22
10
|
/** Which rows open on arrival and after the listed set changes. */
|
|
23
11
|
export type TableViewExpandedDefault = "none" | "first" | "all";
|
|
@@ -20,28 +20,10 @@ export declare function validatePageSize(controllerName: string, pageSize: numbe
|
|
|
20
20
|
*/
|
|
21
21
|
export declare function assertKnownColumns(controllerName: string, meta: Pick<TableViewMeta, "columns">, option: string, keys: string[]): void;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* number, a date, a select without
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
export interface ValuelessQuickFilter {
|
|
30
|
-
index: number;
|
|
31
|
-
field: string;
|
|
32
|
-
message: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* The quick filters of `quickFilters` whose column offers nothing to pick. A
|
|
36
|
-
* field naming no column is not one of them.
|
|
37
|
-
*
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
|
-
export declare function valuelessQuickFilters(columns: Record<string, Pick<ColumnOptions, "type"> | undefined>, quickFilters: readonly TableViewQuickFilter[] | undefined): ValuelessQuickFilter[];
|
|
41
|
-
/**
|
|
42
|
-
* Warns, once per table and field, about each of
|
|
43
|
-
* {@link valuelessQuickFilters}. Not thrown, so that an application already
|
|
44
|
-
* declaring one keeps starting.
|
|
23
|
+
* Warns, once per table and field, about a quick filter whose column offers
|
|
24
|
+
* nothing to pick — a free-text string, a number, a date, a select without
|
|
25
|
+
* items: the browser leaves it out of the toolbar. Not thrown, so that an
|
|
26
|
+
* application already declaring one keeps starting.
|
|
45
27
|
*
|
|
46
28
|
* @internal
|
|
47
29
|
*/
|