@fieldia/core 0.23.0 → 0.25.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 +211 -3
- package/package.json +1 -1
- package/schema/page.schema.json +1051 -325
- package/src/index.d.mts +9 -2
- package/src/index.d.ts +9 -2
- package/src/index.js +31 -1
- package/src/index.js.map +1 -1
- package/src/index.mjs +12 -2
- package/src/index.mjs.map +1 -1
- package/src/lib/format/actions.d.mts +31 -1
- package/src/lib/format/actions.d.ts +31 -1
- package/src/lib/format/actions.js +1 -0
- package/src/lib/format/actions.js.map +1 -1
- package/src/lib/format/actions.mjs +1 -0
- package/src/lib/format/actions.mjs.map +1 -1
- package/src/lib/format/autofill-group.d.mts +12 -0
- package/src/lib/format/autofill-group.d.ts +12 -0
- package/src/lib/format/autofill-group.js +23 -0
- package/src/lib/format/autofill-group.js.map +1 -0
- package/src/lib/format/autofill-group.mjs +19 -0
- package/src/lib/format/autofill-group.mjs.map +1 -0
- package/src/lib/format/autofill.d.mts +14 -0
- package/src/lib/format/autofill.d.ts +14 -0
- package/src/lib/format/autofill.js +54 -0
- package/src/lib/format/autofill.js.map +1 -0
- package/src/lib/format/autofill.mjs +48 -0
- package/src/lib/format/autofill.mjs.map +1 -0
- package/src/lib/format/bulk-edit.d.mts +18 -0
- package/src/lib/format/bulk-edit.d.ts +18 -0
- package/src/lib/format/bulk-edit.js +26 -0
- package/src/lib/format/bulk-edit.js.map +1 -0
- package/src/lib/format/bulk-edit.mjs +21 -0
- package/src/lib/format/bulk-edit.mjs.map +1 -0
- package/src/lib/format/duplicate-kinds.d.mts +10 -0
- package/src/lib/format/duplicate-kinds.d.ts +10 -0
- package/src/lib/format/duplicate-kinds.js +14 -0
- package/src/lib/format/duplicate-kinds.js.map +1 -0
- package/src/lib/format/duplicate-kinds.mjs +10 -0
- package/src/lib/format/duplicate-kinds.mjs.map +1 -0
- package/src/lib/format/duplicates.d.mts +22 -0
- package/src/lib/format/duplicates.d.ts +22 -0
- package/src/lib/format/duplicates.js +24 -0
- package/src/lib/format/duplicates.js.map +1 -0
- package/src/lib/format/duplicates.mjs +21 -0
- package/src/lib/format/duplicates.mjs.map +1 -0
- package/src/lib/format/field.d.mts +291 -34
- package/src/lib/format/field.d.ts +291 -34
- package/src/lib/format/field.js +19 -4
- package/src/lib/format/field.js.map +1 -1
- package/src/lib/format/field.mjs +17 -2
- package/src/lib/format/field.mjs.map +1 -1
- package/src/lib/format/import-fields.d.mts +18 -0
- package/src/lib/format/import-fields.d.ts +18 -0
- package/src/lib/format/import-fields.js +26 -0
- package/src/lib/format/import-fields.js.map +1 -0
- package/src/lib/format/import-fields.mjs +21 -0
- package/src/lib/format/import-fields.mjs.map +1 -0
- package/src/lib/format/layout.d.mts +7357 -3127
- package/src/lib/format/layout.d.ts +7357 -3127
- package/src/lib/format/layout.js +108 -32
- package/src/lib/format/layout.js.map +1 -1
- package/src/lib/format/layout.mjs +107 -32
- package/src/lib/format/layout.mjs.map +1 -1
- package/src/lib/format/layout.types.d.mts +5 -2
- package/src/lib/format/layout.types.d.ts +5 -2
- package/src/lib/format/page.d.mts +1080 -106
- package/src/lib/format/page.d.ts +1080 -106
- package/src/lib/format/page.js +25 -0
- package/src/lib/format/page.js.map +1 -1
- package/src/lib/format/page.mjs +26 -1
- package/src/lib/format/page.mjs.map +1 -1
- package/src/lib/format/phone.d.mts +27 -0
- package/src/lib/format/phone.d.ts +27 -0
- package/src/lib/format/phone.js +43 -0
- package/src/lib/format/phone.js.map +1 -0
- package/src/lib/format/phone.mjs +39 -0
- package/src/lib/format/phone.mjs.map +1 -0
- package/src/lib/format/references.d.mts +39 -0
- package/src/lib/format/references.d.ts +39 -0
- package/src/lib/format/references.js +263 -20
- package/src/lib/format/references.js.map +1 -1
- package/src/lib/format/references.mjs +263 -20
- package/src/lib/format/references.mjs.map +1 -1
- package/src/lib/format/slots-options.d.mts +26 -0
- package/src/lib/format/slots-options.d.ts +26 -0
- package/src/lib/format/slots-options.js +35 -0
- package/src/lib/format/slots-options.js.map +1 -0
- package/src/lib/format/slots-options.mjs +31 -0
- package/src/lib/format/slots-options.mjs.map +1 -0
- package/src/lib/format/translate.js +8 -4
- package/src/lib/format/translate.js.map +1 -1
- package/src/lib/format/translate.mjs +8 -4
- package/src/lib/format/translate.mjs.map +1 -1
- package/src/lib/format/upgrade.d.mts +8 -3
- package/src/lib/format/upgrade.d.ts +8 -3
- package/src/lib/format/upgrade.js +8 -3
- package/src/lib/format/upgrade.js.map +1 -1
- package/src/lib/format/upgrade.mjs +8 -3
- package/src/lib/format/upgrade.mjs.map +1 -1
- package/src/lib/format/version.d.mts +2 -2
- package/src/lib/format/version.d.ts +2 -2
- package/src/lib/format/version.js +2 -2
- package/src/lib/format/version.js.map +1 -1
- package/src/lib/format/version.mjs +2 -2
- package/src/lib/format/version.mjs.map +1 -1
- package/src/lib/format/zoned.d.mts +8 -0
- package/src/lib/format/zoned.d.ts +8 -0
- package/src/lib/format/zoned.js +36 -0
- package/src/lib/format/zoned.js.map +1 -0
- package/src/lib/format/zoned.mjs +33 -0
- package/src/lib/format/zoned.mjs.map +1 -0
- package/src/lib/record/check.d.mts +6 -1
- package/src/lib/record/check.d.ts +6 -1
- package/src/lib/record/check.js +12 -4
- package/src/lib/record/check.js.map +1 -1
- package/src/lib/record/check.mjs +12 -4
- package/src/lib/record/check.mjs.map +1 -1
- package/src/lib/record/data-source.d.mts +309 -3
- package/src/lib/record/data-source.d.ts +309 -3
- package/src/lib/record/data-source.js +16 -0
- package/src/lib/record/data-source.js.map +1 -1
- package/src/lib/record/data-source.mjs +15 -0
- package/src/lib/record/data-source.mjs.map +1 -1
- package/src/lib/record/form.d.mts +116 -25
- package/src/lib/record/form.d.ts +116 -25
- package/src/lib/record/form.js +457 -78
- package/src/lib/record/form.js.map +1 -1
- package/src/lib/record/form.mjs +457 -78
- package/src/lib/record/form.mjs.map +1 -1
- package/src/lib/record/input-rules.d.mts +51 -9
- package/src/lib/record/input-rules.d.ts +51 -9
- package/src/lib/record/input-rules.js +119 -20
- package/src/lib/record/input-rules.js.map +1 -1
- package/src/lib/record/input-rules.mjs +118 -19
- package/src/lib/record/input-rules.mjs.map +1 -1
- package/src/lib/record/inputs.js +4 -2
- package/src/lib/record/inputs.js.map +1 -1
- package/src/lib/record/inputs.mjs +4 -2
- package/src/lib/record/inputs.mjs.map +1 -1
- package/src/lib/record/limits.d.mts +1 -1
- package/src/lib/record/limits.d.ts +1 -1
- package/src/lib/record/limits.js +4 -2
- package/src/lib/record/limits.js.map +1 -1
- package/src/lib/record/limits.mjs +4 -2
- package/src/lib/record/limits.mjs.map +1 -1
- package/src/lib/record/locales/ar.js +3 -2
- package/src/lib/record/locales/ar.js.map +1 -1
- package/src/lib/record/locales/ar.mjs +3 -2
- package/src/lib/record/locales/ar.mjs.map +1 -1
- package/src/lib/record/locales/de.js +3 -2
- package/src/lib/record/locales/de.js.map +1 -1
- package/src/lib/record/locales/de.mjs +3 -2
- package/src/lib/record/locales/de.mjs.map +1 -1
- package/src/lib/record/locales/fr.js +3 -2
- package/src/lib/record/locales/fr.js.map +1 -1
- package/src/lib/record/locales/fr.mjs +3 -2
- package/src/lib/record/locales/fr.mjs.map +1 -1
- package/src/lib/record/memory-data-source.d.mts +20 -2
- package/src/lib/record/memory-data-source.d.ts +20 -2
- package/src/lib/record/memory-data-source.js +153 -35
- package/src/lib/record/memory-data-source.js.map +1 -1
- package/src/lib/record/memory-data-source.mjs +154 -36
- package/src/lib/record/memory-data-source.mjs.map +1 -1
- package/src/lib/record/memory-duplicates.d.mts +19 -0
- package/src/lib/record/memory-duplicates.d.ts +19 -0
- package/src/lib/record/memory-duplicates.js +78 -0
- package/src/lib/record/memory-duplicates.js.map +1 -0
- package/src/lib/record/memory-duplicates.mjs +74 -0
- package/src/lib/record/memory-duplicates.mjs.map +1 -0
- package/src/lib/record/memory-schedules.d.mts +45 -0
- package/src/lib/record/memory-schedules.d.ts +45 -0
- package/src/lib/record/memory-schedules.js +81 -0
- package/src/lib/record/memory-schedules.js.map +1 -0
- package/src/lib/record/memory-schedules.mjs +78 -0
- package/src/lib/record/memory-schedules.mjs.map +1 -0
- package/src/lib/record/messages.d.mts +3 -1
- package/src/lib/record/messages.d.ts +3 -1
- package/src/lib/record/messages.js +3 -2
- package/src/lib/record/messages.js.map +1 -1
- package/src/lib/record/messages.mjs +3 -2
- package/src/lib/record/messages.mjs.map +1 -1
- package/src/lib/record/periods.d.mts +47 -0
- package/src/lib/record/periods.d.ts +47 -0
- package/src/lib/record/periods.js +86 -0
- package/src/lib/record/periods.js.map +1 -0
- package/src/lib/record/periods.mjs +79 -0
- package/src/lib/record/periods.mjs.map +1 -0
- package/src/lib/record/rules.js +5 -6
- package/src/lib/record/rules.js.map +1 -1
- package/src/lib/record/rules.mjs +5 -6
- package/src/lib/record/rules.mjs.map +1 -1
- package/src/lib/record/run.d.mts +75 -9
- package/src/lib/record/run.d.ts +75 -9
- package/src/lib/record/run.js +169 -26
- package/src/lib/record/run.js.map +1 -1
- package/src/lib/record/run.mjs +170 -27
- package/src/lib/record/run.mjs.map +1 -1
- package/src/lib/record/search.d.mts +13 -3
- package/src/lib/record/search.d.ts +13 -3
- package/src/lib/record/search.js +11 -4
- package/src/lib/record/search.js.map +1 -1
- package/src/lib/record/search.mjs +11 -4
- package/src/lib/record/search.mjs.map +1 -1
- package/src/lib/record/waits.d.mts +32 -0
- package/src/lib/record/waits.d.ts +32 -0
- package/src/lib/record/waits.js +89 -0
- package/src/lib/record/waits.js.map +1 -0
- package/src/lib/record/waits.mjs +85 -0
- package/src/lib/record/waits.mjs.map +1 -0
- package/src/lib/record/zones.d.mts +57 -0
- package/src/lib/record/zones.d.ts +57 -0
- package/src/lib/record/zones.js +147 -0
- package/src/lib/record/zones.js.map +1 -0
- package/src/lib/record/zones.mjs +132 -0
- package/src/lib/record/zones.mjs.map +1 -0
- package/src/runtime.d.mts +19 -9
- package/src/runtime.d.ts +19 -9
- package/src/runtime.js +37 -2
- package/src/runtime.js.map +1 -1
- package/src/runtime.mjs +9 -2
- package/src/runtime.mjs.map +1 -1
package/src/index.d.mts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export * from './runtime.mjs';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
2
|
+
export { scheduleSlots, type MemorySchedule } from './lib/record/memory-schedules.mjs';
|
|
3
|
+
export { alikeRecords, nameLikeness } from './lib/record/memory-duplicates.mjs';
|
|
4
|
+
export { FieldSchema, FieldsSchema, LineFieldSchema, LinkedFieldSchema, LineKindsSchema, OptionSchema, PropertyDefinitionSchema, FilterConditionSchema, FilterItemSchema, MoneyLookSchema, ShrinkSchema, PERIODS, TimeZoneSchema, } from './lib/format/field.mjs';
|
|
5
|
+
export { ModifierSchema, RolesSchema, CellRulesSchema, ToneWhenSchema, LayoutNodeSchema, RootLayoutSchema, ListNodeSchema, ListCellSchema, ListCalendarSchema, ListCardSchema, ListGallerySchema, FilterPeriodSchema, RelatedNodeSchema } from './lib/format/layout.mjs';
|
|
4
6
|
export { PageSchema } from './lib/format/page.mjs';
|
|
5
7
|
export { ActionStepSchema, PageEventsSchema } from './lib/format/actions.mjs';
|
|
6
8
|
export { validatePage } from './lib/format/validate.mjs';
|
|
7
9
|
export { AddressSearchOptionsSchema } from './lib/format/address-search.mjs';
|
|
8
10
|
export { PathPickerOptionsSchema, StateDotOptionsSchema } from './lib/format/picker-options.mjs';
|
|
11
|
+
export { PagePhoneSchema, PhoneOptionsSchema } from './lib/format/phone.mjs';
|
|
12
|
+
export { SlotsOptionsSchema } from './lib/format/slots-options.mjs';
|
|
13
|
+
export { PageDuplicatesSchema } from './lib/format/duplicates.mjs';
|
|
14
|
+
export { DUPLICATE_KINDS, comparable } from './lib/format/duplicate-kinds.mjs';
|
|
9
15
|
export { pageJsonSchema } from './lib/format/json-schema.mjs';
|
|
16
|
+
export { AUTOFILL, AUTOFILL_CONTACT, AUTOFILL_NAMES, autofillProblem, autofillPurpose } from './lib/format/autofill.mjs';
|
package/src/index.d.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export * from './runtime';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
2
|
+
export { scheduleSlots, type MemorySchedule } from './lib/record/memory-schedules';
|
|
3
|
+
export { alikeRecords, nameLikeness } from './lib/record/memory-duplicates';
|
|
4
|
+
export { FieldSchema, FieldsSchema, LineFieldSchema, LinkedFieldSchema, LineKindsSchema, OptionSchema, PropertyDefinitionSchema, FilterConditionSchema, FilterItemSchema, MoneyLookSchema, ShrinkSchema, PERIODS, TimeZoneSchema, } from './lib/format/field';
|
|
5
|
+
export { ModifierSchema, RolesSchema, CellRulesSchema, ToneWhenSchema, LayoutNodeSchema, RootLayoutSchema, ListNodeSchema, ListCellSchema, ListCalendarSchema, ListCardSchema, ListGallerySchema, FilterPeriodSchema, RelatedNodeSchema } from './lib/format/layout';
|
|
4
6
|
export { PageSchema } from './lib/format/page';
|
|
5
7
|
export { ActionStepSchema, PageEventsSchema } from './lib/format/actions';
|
|
6
8
|
export { validatePage } from './lib/format/validate';
|
|
7
9
|
export { AddressSearchOptionsSchema } from './lib/format/address-search';
|
|
8
10
|
export { PathPickerOptionsSchema, StateDotOptionsSchema } from './lib/format/picker-options';
|
|
11
|
+
export { PagePhoneSchema, PhoneOptionsSchema } from './lib/format/phone';
|
|
12
|
+
export { SlotsOptionsSchema } from './lib/format/slots-options';
|
|
13
|
+
export { PageDuplicatesSchema } from './lib/format/duplicates';
|
|
14
|
+
export { DUPLICATE_KINDS, comparable } from './lib/format/duplicate-kinds';
|
|
9
15
|
export { pageJsonSchema } from './lib/format/json-schema';
|
|
16
|
+
export { AUTOFILL, AUTOFILL_CONTACT, AUTOFILL_NAMES, autofillProblem, autofillPurpose } from './lib/format/autofill';
|
package/src/index.js
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pageJsonSchema = exports.StateDotOptionsSchema = exports.PathPickerOptionsSchema = exports.AddressSearchOptionsSchema = exports.validatePage = exports.PageEventsSchema = exports.ActionStepSchema = exports.PageSchema = exports.ListCalendarSchema = exports.ListCellSchema = exports.ListNodeSchema = exports.RootLayoutSchema = exports.LayoutNodeSchema = exports.ToneWhenSchema = exports.CellRulesSchema = exports.RolesSchema = exports.ModifierSchema = exports.PERIODS = exports.ShrinkSchema = exports.MoneyLookSchema = exports.FilterItemSchema = exports.FilterConditionSchema = exports.PropertyDefinitionSchema = exports.OptionSchema = exports.LineKindsSchema = exports.LineFieldSchema = exports.FieldsSchema = exports.FieldSchema = void 0;
|
|
3
|
+
exports.autofillPurpose = exports.autofillProblem = exports.AUTOFILL_NAMES = exports.AUTOFILL_CONTACT = exports.AUTOFILL = exports.pageJsonSchema = exports.comparable = exports.DUPLICATE_KINDS = exports.PageDuplicatesSchema = exports.SlotsOptionsSchema = exports.PhoneOptionsSchema = exports.PagePhoneSchema = exports.StateDotOptionsSchema = exports.PathPickerOptionsSchema = exports.AddressSearchOptionsSchema = exports.validatePage = exports.PageEventsSchema = exports.ActionStepSchema = exports.PageSchema = exports.RelatedNodeSchema = exports.FilterPeriodSchema = exports.ListGallerySchema = exports.ListCardSchema = exports.ListCalendarSchema = exports.ListCellSchema = exports.ListNodeSchema = exports.RootLayoutSchema = exports.LayoutNodeSchema = exports.ToneWhenSchema = exports.CellRulesSchema = exports.RolesSchema = exports.ModifierSchema = exports.TimeZoneSchema = exports.PERIODS = exports.ShrinkSchema = exports.MoneyLookSchema = exports.FilterItemSchema = exports.FilterConditionSchema = exports.PropertyDefinitionSchema = exports.OptionSchema = exports.LineKindsSchema = exports.LinkedFieldSchema = exports.LineFieldSchema = exports.FieldsSchema = exports.FieldSchema = exports.nameLikeness = exports.alikeRecords = exports.scheduleSlots = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
tslib_1.__exportStar(require("./runtime"), exports);
|
|
6
|
+
// A memory source's free times from booking schedules: for demos and tests, outside the one-tag script.
|
|
7
|
+
var memory_schedules_1 = require("./lib/record/memory-schedules");
|
|
8
|
+
Object.defineProperty(exports, "scheduleSlots", { enumerable: true, get: function () { return memory_schedules_1.scheduleSlots; } });
|
|
9
|
+
// A memory source's records like the one typed, for its `duplicates`: for demos and tests, outside the one-tag script.
|
|
10
|
+
var memory_duplicates_1 = require("./lib/record/memory-duplicates");
|
|
11
|
+
Object.defineProperty(exports, "alikeRecords", { enumerable: true, get: function () { return memory_duplicates_1.alikeRecords; } });
|
|
12
|
+
Object.defineProperty(exports, "nameLikeness", { enumerable: true, get: function () { return memory_duplicates_1.nameLikeness; } });
|
|
6
13
|
var field_1 = require("./lib/format/field");
|
|
7
14
|
Object.defineProperty(exports, "FieldSchema", { enumerable: true, get: function () { return field_1.FieldSchema; } });
|
|
8
15
|
Object.defineProperty(exports, "FieldsSchema", { enumerable: true, get: function () { return field_1.FieldsSchema; } });
|
|
9
16
|
Object.defineProperty(exports, "LineFieldSchema", { enumerable: true, get: function () { return field_1.LineFieldSchema; } });
|
|
17
|
+
Object.defineProperty(exports, "LinkedFieldSchema", { enumerable: true, get: function () { return field_1.LinkedFieldSchema; } });
|
|
10
18
|
Object.defineProperty(exports, "LineKindsSchema", { enumerable: true, get: function () { return field_1.LineKindsSchema; } });
|
|
11
19
|
Object.defineProperty(exports, "OptionSchema", { enumerable: true, get: function () { return field_1.OptionSchema; } });
|
|
12
20
|
Object.defineProperty(exports, "PropertyDefinitionSchema", { enumerable: true, get: function () { return field_1.PropertyDefinitionSchema; } });
|
|
@@ -15,6 +23,7 @@ Object.defineProperty(exports, "FilterItemSchema", { enumerable: true, get: func
|
|
|
15
23
|
Object.defineProperty(exports, "MoneyLookSchema", { enumerable: true, get: function () { return field_1.MoneyLookSchema; } });
|
|
16
24
|
Object.defineProperty(exports, "ShrinkSchema", { enumerable: true, get: function () { return field_1.ShrinkSchema; } });
|
|
17
25
|
Object.defineProperty(exports, "PERIODS", { enumerable: true, get: function () { return field_1.PERIODS; } });
|
|
26
|
+
Object.defineProperty(exports, "TimeZoneSchema", { enumerable: true, get: function () { return field_1.TimeZoneSchema; } });
|
|
18
27
|
var layout_1 = require("./lib/format/layout");
|
|
19
28
|
Object.defineProperty(exports, "ModifierSchema", { enumerable: true, get: function () { return layout_1.ModifierSchema; } });
|
|
20
29
|
Object.defineProperty(exports, "RolesSchema", { enumerable: true, get: function () { return layout_1.RolesSchema; } });
|
|
@@ -25,6 +34,10 @@ Object.defineProperty(exports, "RootLayoutSchema", { enumerable: true, get: func
|
|
|
25
34
|
Object.defineProperty(exports, "ListNodeSchema", { enumerable: true, get: function () { return layout_1.ListNodeSchema; } });
|
|
26
35
|
Object.defineProperty(exports, "ListCellSchema", { enumerable: true, get: function () { return layout_1.ListCellSchema; } });
|
|
27
36
|
Object.defineProperty(exports, "ListCalendarSchema", { enumerable: true, get: function () { return layout_1.ListCalendarSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "ListCardSchema", { enumerable: true, get: function () { return layout_1.ListCardSchema; } });
|
|
38
|
+
Object.defineProperty(exports, "ListGallerySchema", { enumerable: true, get: function () { return layout_1.ListGallerySchema; } });
|
|
39
|
+
Object.defineProperty(exports, "FilterPeriodSchema", { enumerable: true, get: function () { return layout_1.FilterPeriodSchema; } });
|
|
40
|
+
Object.defineProperty(exports, "RelatedNodeSchema", { enumerable: true, get: function () { return layout_1.RelatedNodeSchema; } });
|
|
28
41
|
var page_1 = require("./lib/format/page");
|
|
29
42
|
Object.defineProperty(exports, "PageSchema", { enumerable: true, get: function () { return page_1.PageSchema; } });
|
|
30
43
|
var actions_1 = require("./lib/format/actions");
|
|
@@ -37,6 +50,23 @@ Object.defineProperty(exports, "AddressSearchOptionsSchema", { enumerable: true,
|
|
|
37
50
|
var picker_options_1 = require("./lib/format/picker-options");
|
|
38
51
|
Object.defineProperty(exports, "PathPickerOptionsSchema", { enumerable: true, get: function () { return picker_options_1.PathPickerOptionsSchema; } });
|
|
39
52
|
Object.defineProperty(exports, "StateDotOptionsSchema", { enumerable: true, get: function () { return picker_options_1.StateDotOptionsSchema; } });
|
|
53
|
+
var phone_1 = require("./lib/format/phone");
|
|
54
|
+
Object.defineProperty(exports, "PagePhoneSchema", { enumerable: true, get: function () { return phone_1.PagePhoneSchema; } });
|
|
55
|
+
Object.defineProperty(exports, "PhoneOptionsSchema", { enumerable: true, get: function () { return phone_1.PhoneOptionsSchema; } });
|
|
56
|
+
var slots_options_1 = require("./lib/format/slots-options");
|
|
57
|
+
Object.defineProperty(exports, "SlotsOptionsSchema", { enumerable: true, get: function () { return slots_options_1.SlotsOptionsSchema; } });
|
|
58
|
+
var duplicates_1 = require("./lib/format/duplicates");
|
|
59
|
+
Object.defineProperty(exports, "PageDuplicatesSchema", { enumerable: true, get: function () { return duplicates_1.PageDuplicatesSchema; } });
|
|
60
|
+
var duplicate_kinds_1 = require("./lib/format/duplicate-kinds");
|
|
61
|
+
Object.defineProperty(exports, "DUPLICATE_KINDS", { enumerable: true, get: function () { return duplicate_kinds_1.DUPLICATE_KINDS; } });
|
|
62
|
+
Object.defineProperty(exports, "comparable", { enumerable: true, get: function () { return duplicate_kinds_1.comparable; } });
|
|
40
63
|
var json_schema_1 = require("./lib/format/json-schema");
|
|
41
64
|
Object.defineProperty(exports, "pageJsonSchema", { enumerable: true, get: function () { return json_schema_1.pageJsonSchema; } });
|
|
65
|
+
// The purposes a browser fills a box in with, from the HTML standard, as the format checks them.
|
|
66
|
+
var autofill_1 = require("./lib/format/autofill");
|
|
67
|
+
Object.defineProperty(exports, "AUTOFILL", { enumerable: true, get: function () { return autofill_1.AUTOFILL; } });
|
|
68
|
+
Object.defineProperty(exports, "AUTOFILL_CONTACT", { enumerable: true, get: function () { return autofill_1.AUTOFILL_CONTACT; } });
|
|
69
|
+
Object.defineProperty(exports, "AUTOFILL_NAMES", { enumerable: true, get: function () { return autofill_1.AUTOFILL_NAMES; } });
|
|
70
|
+
Object.defineProperty(exports, "autofillProblem", { enumerable: true, get: function () { return autofill_1.autofillProblem; } });
|
|
71
|
+
Object.defineProperty(exports, "autofillPurpose", { enumerable: true, get: function () { return autofill_1.autofillPurpose; } });
|
|
42
72
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/core/src/index.ts"],"names":[],"mappings":";;;;AAAA,oDAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/core/src/index.ts"],"names":[],"mappings":";;;;AAAA,oDAA0B;AAC1B,wGAAwG;AACxG,kEAAmF;AAA1E,iHAAA,aAAa,OAAA;AACtB,uHAAuH;AACvH,oEAA4E;AAAnE,iHAAA,YAAY,OAAA;AAAE,iHAAA,YAAY,OAAA;AACnC,4CAc4B;AAb1B,oGAAA,WAAW,OAAA;AACX,qGAAA,YAAY,OAAA;AACZ,wGAAA,eAAe,OAAA;AACf,0GAAA,iBAAiB,OAAA;AACjB,wGAAA,eAAe,OAAA;AACf,qGAAA,YAAY,OAAA;AACZ,iHAAA,wBAAwB,OAAA;AACxB,8GAAA,qBAAqB,OAAA;AACrB,yGAAA,gBAAgB,OAAA;AAChB,wGAAA,eAAe,OAAA;AACf,qGAAA,YAAY,OAAA;AACZ,gGAAA,OAAO,OAAA;AACP,uGAAA,cAAc,OAAA;AAEhB,8CAAqQ;AAA5P,wGAAA,cAAc,OAAA;AAAE,qGAAA,WAAW,OAAA;AAAE,yGAAA,eAAe,OAAA;AAAE,wGAAA,cAAc,OAAA;AAAE,0GAAA,gBAAgB,OAAA;AAAE,0GAAA,gBAAgB,OAAA;AAAE,wGAAA,cAAc,OAAA;AAAE,wGAAA,cAAc,OAAA;AAAE,4GAAA,kBAAkB,OAAA;AAAE,wGAAA,cAAc,OAAA;AAAE,2GAAA,iBAAiB,OAAA;AAAE,4GAAA,kBAAkB,OAAA;AAAE,2GAAA,iBAAiB,OAAA;AACvO,0CAA+C;AAAtC,kGAAA,UAAU,OAAA;AACnB,gDAA0E;AAAjE,2GAAA,gBAAgB,OAAA;AAAE,2GAAA,gBAAgB,OAAA;AAC3C,kDAAqD;AAA5C,wGAAA,YAAY,OAAA;AACrB,8DAAyE;AAAhE,4HAAA,0BAA0B,OAAA;AACnC,8DAA6F;AAApF,yHAAA,uBAAuB,OAAA;AAAE,uHAAA,qBAAqB,OAAA;AACvD,4CAAyE;AAAhE,wGAAA,eAAe,OAAA;AAAE,2GAAA,kBAAkB,OAAA;AAC5C,4DAAgE;AAAvD,mHAAA,kBAAkB,OAAA;AAC3B,sDAA+D;AAAtD,kHAAA,oBAAoB,OAAA;AAC7B,gEAA2E;AAAlE,kHAAA,eAAe,OAAA;AAAE,6GAAA,UAAU,OAAA;AACpC,wDAA0D;AAAjD,6GAAA,cAAc,OAAA;AACvB,iGAAiG;AACjG,kDAAqH;AAA5G,oGAAA,QAAQ,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,0GAAA,cAAc,OAAA;AAAE,2GAAA,eAAe,OAAA;AAAE,2GAAA,eAAe,OAAA"}
|
package/src/index.mjs
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
export * from './runtime.mjs';
|
|
2
|
-
|
|
3
|
-
export {
|
|
2
|
+
// A memory source's free times from booking schedules: for demos and tests, outside the one-tag script.
|
|
3
|
+
export { scheduleSlots } from './lib/record/memory-schedules.mjs';
|
|
4
|
+
// A memory source's records like the one typed, for its `duplicates`: for demos and tests, outside the one-tag script.
|
|
5
|
+
export { alikeRecords, nameLikeness } from './lib/record/memory-duplicates.mjs';
|
|
6
|
+
export { FieldSchema, FieldsSchema, LineFieldSchema, LinkedFieldSchema, LineKindsSchema, OptionSchema, PropertyDefinitionSchema, FilterConditionSchema, FilterItemSchema, MoneyLookSchema, ShrinkSchema, PERIODS, TimeZoneSchema, } from './lib/format/field.mjs';
|
|
7
|
+
export { ModifierSchema, RolesSchema, CellRulesSchema, ToneWhenSchema, LayoutNodeSchema, RootLayoutSchema, ListNodeSchema, ListCellSchema, ListCalendarSchema, ListCardSchema, ListGallerySchema, FilterPeriodSchema, RelatedNodeSchema } from './lib/format/layout.mjs';
|
|
4
8
|
export { PageSchema } from './lib/format/page.mjs';
|
|
5
9
|
export { ActionStepSchema, PageEventsSchema } from './lib/format/actions.mjs';
|
|
6
10
|
export { validatePage } from './lib/format/validate.mjs';
|
|
7
11
|
export { AddressSearchOptionsSchema } from './lib/format/address-search.mjs';
|
|
8
12
|
export { PathPickerOptionsSchema, StateDotOptionsSchema } from './lib/format/picker-options.mjs';
|
|
13
|
+
export { PagePhoneSchema, PhoneOptionsSchema } from './lib/format/phone.mjs';
|
|
14
|
+
export { SlotsOptionsSchema } from './lib/format/slots-options.mjs';
|
|
15
|
+
export { PageDuplicatesSchema } from './lib/format/duplicates.mjs';
|
|
16
|
+
export { DUPLICATE_KINDS, comparable } from './lib/format/duplicate-kinds.mjs';
|
|
9
17
|
export { pageJsonSchema } from './lib/format/json-schema.mjs';
|
|
18
|
+
// The purposes a browser fills a box in with, from the HTML standard, as the format checks them.
|
|
19
|
+
export { AUTOFILL, AUTOFILL_CONTACT, AUTOFILL_NAMES, autofillProblem, autofillPurpose } from './lib/format/autofill.mjs';
|
|
10
20
|
//# sourceMappingURL=index.mjs.map
|
package/src/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../libs/core/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,YAAY,EACZ,eAAe,EACf,eAAe,EACf,YAAY,EACZ,wBAAwB,EACxB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../libs/core/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,wGAAwG;AACxG,OAAO,EAAE,aA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172,16 @@ export interface PostStep extends StepBase {
|
|
|
172
172
|
message: string;
|
|
173
173
|
kind?: 'note' | 'message';
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
/**
|
|
176
|
+
* Print the record, or the page, as the page prints: every tab one after
|
|
177
|
+
* another under its name, every step and folded section open, the values as
|
|
178
|
+
* words, the record's title and the day at the top — the browser's own print,
|
|
179
|
+
* to paper or to a PDF. A gear menu's built-in Print is this step.
|
|
180
|
+
*/
|
|
181
|
+
export interface PrintStep extends StepBase {
|
|
182
|
+
do: 'print';
|
|
183
|
+
}
|
|
184
|
+
export type ActionStep = OpenStep | SetStep | ClearStep | AddLineStep | CheckStep | SaveStep | ResetStep | GoToStep | SayStep | AskStep | CallStep | CloseStep | ReloadStep | OpenUrlStep | ArchiveStep | UnarchiveStep | DuplicateStep | DeleteStep | PostStep | PrintStep;
|
|
176
185
|
/**
|
|
177
186
|
* The moments of a form that run steps. A change is a person's: values set by
|
|
178
187
|
* a step, a rule or the app do not run `change` again, so steps never chase
|
|
@@ -380,6 +389,9 @@ export declare const ActionStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
380
389
|
message: "message";
|
|
381
390
|
note: "note";
|
|
382
391
|
}>>;
|
|
392
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
393
|
+
do: z.ZodLiteral<"print">;
|
|
394
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
383
395
|
}, z.core.$strict>], "do">;
|
|
384
396
|
export declare const ActionStepsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
385
397
|
do: z.ZodLiteral<"open">;
|
|
@@ -513,6 +525,9 @@ export declare const ActionStepsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.Zo
|
|
|
513
525
|
message: "message";
|
|
514
526
|
note: "note";
|
|
515
527
|
}>>;
|
|
528
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
529
|
+
do: z.ZodLiteral<"print">;
|
|
530
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
516
531
|
}, z.core.$strict>], "do">>;
|
|
517
532
|
export declare const PageEventsSchema: z.ZodObject<{
|
|
518
533
|
open: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -647,6 +662,9 @@ export declare const PageEventsSchema: z.ZodObject<{
|
|
|
647
662
|
message: "message";
|
|
648
663
|
note: "note";
|
|
649
664
|
}>>;
|
|
665
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
666
|
+
do: z.ZodLiteral<"print">;
|
|
667
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
650
668
|
}, z.core.$strict>], "do">>>;
|
|
651
669
|
change: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
652
670
|
do: z.ZodLiteral<"open">;
|
|
@@ -780,6 +798,9 @@ export declare const PageEventsSchema: z.ZodObject<{
|
|
|
780
798
|
message: "message";
|
|
781
799
|
note: "note";
|
|
782
800
|
}>>;
|
|
801
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
802
|
+
do: z.ZodLiteral<"print">;
|
|
803
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
783
804
|
}, z.core.$strict>], "do">>>>;
|
|
784
805
|
beforeSave: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
785
806
|
do: z.ZodLiteral<"open">;
|
|
@@ -913,6 +934,9 @@ export declare const PageEventsSchema: z.ZodObject<{
|
|
|
913
934
|
message: "message";
|
|
914
935
|
note: "note";
|
|
915
936
|
}>>;
|
|
937
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
938
|
+
do: z.ZodLiteral<"print">;
|
|
939
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
916
940
|
}, z.core.$strict>], "do">>>;
|
|
917
941
|
afterSave: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
918
942
|
do: z.ZodLiteral<"open">;
|
|
@@ -1046,6 +1070,9 @@ export declare const PageEventsSchema: z.ZodObject<{
|
|
|
1046
1070
|
message: "message";
|
|
1047
1071
|
note: "note";
|
|
1048
1072
|
}>>;
|
|
1073
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1074
|
+
do: z.ZodLiteral<"print">;
|
|
1075
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
1049
1076
|
}, z.core.$strict>], "do">>>;
|
|
1050
1077
|
show: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1051
1078
|
do: z.ZodLiteral<"open">;
|
|
@@ -1179,6 +1206,9 @@ export declare const PageEventsSchema: z.ZodObject<{
|
|
|
1179
1206
|
message: "message";
|
|
1180
1207
|
note: "note";
|
|
1181
1208
|
}>>;
|
|
1209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1210
|
+
do: z.ZodLiteral<"print">;
|
|
1211
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
1182
1212
|
}, z.core.$strict>], "do">>>>;
|
|
1183
1213
|
}, z.core.$strict>;
|
|
1184
1214
|
export {};
|
|
@@ -172,7 +172,16 @@ export interface PostStep extends StepBase {
|
|
|
172
172
|
message: string;
|
|
173
173
|
kind?: 'note' | 'message';
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
/**
|
|
176
|
+
* Print the record, or the page, as the page prints: every tab one after
|
|
177
|
+
* another under its name, every step and folded section open, the values as
|
|
178
|
+
* words, the record's title and the day at the top — the browser's own print,
|
|
179
|
+
* to paper or to a PDF. A gear menu's built-in Print is this step.
|
|
180
|
+
*/
|
|
181
|
+
export interface PrintStep extends StepBase {
|
|
182
|
+
do: 'print';
|
|
183
|
+
}
|
|
184
|
+
export type ActionStep = OpenStep | SetStep | ClearStep | AddLineStep | CheckStep | SaveStep | ResetStep | GoToStep | SayStep | AskStep | CallStep | CloseStep | ReloadStep | OpenUrlStep | ArchiveStep | UnarchiveStep | DuplicateStep | DeleteStep | PostStep | PrintStep;
|
|
176
185
|
/**
|
|
177
186
|
* The moments of a form that run steps. A change is a person's: values set by
|
|
178
187
|
* a step, a rule or the app do not run `change` again, so steps never chase
|
|
@@ -380,6 +389,9 @@ export declare const ActionStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
380
389
|
message: "message";
|
|
381
390
|
note: "note";
|
|
382
391
|
}>>;
|
|
392
|
+
}, z.z.core.$strict>, z.ZodObject<{
|
|
393
|
+
do: z.ZodLiteral<"print">;
|
|
394
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
383
395
|
}, z.z.core.$strict>], "do">;
|
|
384
396
|
export declare const ActionStepsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
385
397
|
do: z.ZodLiteral<"open">;
|
|
@@ -513,6 +525,9 @@ export declare const ActionStepsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.Zo
|
|
|
513
525
|
message: "message";
|
|
514
526
|
note: "note";
|
|
515
527
|
}>>;
|
|
528
|
+
}, z.z.core.$strict>, z.ZodObject<{
|
|
529
|
+
do: z.ZodLiteral<"print">;
|
|
530
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
516
531
|
}, z.z.core.$strict>], "do">>;
|
|
517
532
|
export declare const PageEventsSchema: z.ZodObject<{
|
|
518
533
|
open: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -647,6 +662,9 @@ export declare const PageEventsSchema: z.ZodObject<{
|
|
|
647
662
|
message: "message";
|
|
648
663
|
note: "note";
|
|
649
664
|
}>>;
|
|
665
|
+
}, z.z.core.$strict>, z.ZodObject<{
|
|
666
|
+
do: z.ZodLiteral<"print">;
|
|
667
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
650
668
|
}, z.z.core.$strict>], "do">>>;
|
|
651
669
|
change: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
652
670
|
do: z.ZodLiteral<"open">;
|
|
@@ -780,6 +798,9 @@ export declare const PageEventsSchema: z.ZodObject<{
|
|
|
780
798
|
message: "message";
|
|
781
799
|
note: "note";
|
|
782
800
|
}>>;
|
|
801
|
+
}, z.z.core.$strict>, z.ZodObject<{
|
|
802
|
+
do: z.ZodLiteral<"print">;
|
|
803
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
783
804
|
}, z.z.core.$strict>], "do">>>>;
|
|
784
805
|
beforeSave: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
785
806
|
do: z.ZodLiteral<"open">;
|
|
@@ -913,6 +934,9 @@ export declare const PageEventsSchema: z.ZodObject<{
|
|
|
913
934
|
message: "message";
|
|
914
935
|
note: "note";
|
|
915
936
|
}>>;
|
|
937
|
+
}, z.z.core.$strict>, z.ZodObject<{
|
|
938
|
+
do: z.ZodLiteral<"print">;
|
|
939
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
916
940
|
}, z.z.core.$strict>], "do">>>;
|
|
917
941
|
afterSave: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
918
942
|
do: z.ZodLiteral<"open">;
|
|
@@ -1046,6 +1070,9 @@ export declare const PageEventsSchema: z.ZodObject<{
|
|
|
1046
1070
|
message: "message";
|
|
1047
1071
|
note: "note";
|
|
1048
1072
|
}>>;
|
|
1073
|
+
}, z.z.core.$strict>, z.ZodObject<{
|
|
1074
|
+
do: z.ZodLiteral<"print">;
|
|
1075
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
1049
1076
|
}, z.z.core.$strict>], "do">>>;
|
|
1050
1077
|
show: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1051
1078
|
do: z.ZodLiteral<"open">;
|
|
@@ -1179,6 +1206,9 @@ export declare const PageEventsSchema: z.ZodObject<{
|
|
|
1179
1206
|
message: "message";
|
|
1180
1207
|
note: "note";
|
|
1181
1208
|
}>>;
|
|
1209
|
+
}, z.z.core.$strict>, z.ZodObject<{
|
|
1210
|
+
do: z.ZodLiteral<"print">;
|
|
1211
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
1182
1212
|
}, z.z.core.$strict>], "do">>>>;
|
|
1183
1213
|
}, z.z.core.$strict>;
|
|
1184
1214
|
export {};
|
|
@@ -47,6 +47,7 @@ exports.ActionStepSchema = z
|
|
|
47
47
|
z.strictObject({ do: z.literal('duplicate'), when }),
|
|
48
48
|
z.strictObject({ do: z.literal('delete'), when }),
|
|
49
49
|
z.strictObject({ do: z.literal('post'), when, message: z.string().min(1), kind: z.enum(['note', 'message']).optional() }),
|
|
50
|
+
z.strictObject({ do: z.literal('print'), when }),
|
|
50
51
|
])
|
|
51
52
|
.meta({ id: 'ActionStep' });
|
|
52
53
|
exports.ActionStepsSchema = steps();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/format/actions.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AACzB,mCAA4D;AAC5D,iCAAyD;
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/format/actions.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;A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AK,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvD,UAAU,EAAE,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE;CACtD,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,CAAC"}
|
|
@@ -44,6 +44,7 @@ export const ActionStepSchema = z
|
|
|
44
44
|
z.strictObject({ do: z.literal('duplicate'), when }),
|
|
45
45
|
z.strictObject({ do: z.literal('delete'), when }),
|
|
46
46
|
z.strictObject({ do: z.literal('post'), when, message: z.string().min(1), kind: z.enum(['note', 'message']).optional() }),
|
|
47
|
+
z.strictObject({ do: z.literal('print'), when }),
|
|
47
48
|
])
|
|
48
49
|
.meta({ id: 'ActionStep' });
|
|
49
50
|
export const ActionStepsSchema = steps();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/format/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAkB,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/format/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAkB,MAAM,QAAQ,CAAC;AAkPzD,+FAA+F;AAC/F,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC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AAK,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE;CACtD,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the quick check of a page (`checkPage`) keeps of a box's autocomplete purpose (autofill.ts): a box names what
|
|
3
|
+
* it holds, an address in parts only whose it is. Whether a purpose is one the HTML standard lists is the format's own
|
|
4
|
+
* check (`validatePage`), as every other shape is: a browser passes over one it does not know.
|
|
5
|
+
*/
|
|
6
|
+
/** The keyboards a phone shows for a box: words, digits alone, digits with a decimal mark, a phone's, an email's, a web address's, a search's. */
|
|
7
|
+
export declare const INPUT_MODES: readonly ["text", "numeric", "decimal", "tel", "email", "url", "search"];
|
|
8
|
+
export type InputMode = (typeof INPUT_MODES)[number];
|
|
9
|
+
/** Whose it is, with no purpose — `shipping`, `section-home billing` — which only an address in parts takes. */
|
|
10
|
+
export declare const AUTOFILL_GROUP: RegExp;
|
|
11
|
+
/** Why a field placed on a page cannot name this purpose — a box with whose it is alone, an address in parts (`parts`) with a purpose — or null. */
|
|
12
|
+
export declare function autofillGroupProblem(value: string, parts: boolean): string | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the quick check of a page (`checkPage`) keeps of a box's autocomplete purpose (autofill.ts): a box names what
|
|
3
|
+
* it holds, an address in parts only whose it is. Whether a purpose is one the HTML standard lists is the format's own
|
|
4
|
+
* check (`validatePage`), as every other shape is: a browser passes over one it does not know.
|
|
5
|
+
*/
|
|
6
|
+
/** The keyboards a phone shows for a box: words, digits alone, digits with a decimal mark, a phone's, an email's, a web address's, a search's. */
|
|
7
|
+
export declare const INPUT_MODES: readonly ["text", "numeric", "decimal", "tel", "email", "url", "search"];
|
|
8
|
+
export type InputMode = (typeof INPUT_MODES)[number];
|
|
9
|
+
/** Whose it is, with no purpose — `shipping`, `section-home billing` — which only an address in parts takes. */
|
|
10
|
+
export declare const AUTOFILL_GROUP: RegExp;
|
|
11
|
+
/** Why a field placed on a page cannot name this purpose — a box with whose it is alone, an address in parts (`parts`) with a purpose — or null. */
|
|
12
|
+
export declare function autofillGroupProblem(value: string, parts: boolean): string | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* What the quick check of a page (`checkPage`) keeps of a box's autocomplete purpose (autofill.ts): a box names what
|
|
4
|
+
* it holds, an address in parts only whose it is. Whether a purpose is one the HTML standard lists is the format's own
|
|
5
|
+
* check (`validatePage`), as every other shape is: a browser passes over one it does not know.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.AUTOFILL_GROUP = exports.INPUT_MODES = void 0;
|
|
9
|
+
exports.autofillGroupProblem = autofillGroupProblem;
|
|
10
|
+
/** The keyboards a phone shows for a box: words, digits alone, digits with a decimal mark, a phone's, an email's, a web address's, a search's. */
|
|
11
|
+
exports.INPUT_MODES = ['text', 'numeric', 'decimal', 'tel', 'email', 'url', 'search'];
|
|
12
|
+
/** Whose it is, with no purpose — `shipping`, `section-home billing` — which only an address in parts takes. */
|
|
13
|
+
exports.AUTOFILL_GROUP = /^(?:section-\S*(?: +(?:shipping|billing))?|shipping|billing)$/;
|
|
14
|
+
/** Why a field placed on a page cannot name this purpose — a box with whose it is alone, an address in parts (`parts`) with a purpose — or null. */
|
|
15
|
+
function autofillGroupProblem(value, parts) {
|
|
16
|
+
const group = exports.AUTOFILL_GROUP.test(value);
|
|
17
|
+
if (parts && !group && value !== 'on' && value !== 'off')
|
|
18
|
+
return 'an address in parts names each part’s own purpose: give only whose address it is, such as "shipping", or "off"';
|
|
19
|
+
if (!parts && group)
|
|
20
|
+
return `"${value}" says whose it is, not what the box holds: add its purpose, such as "${value} postal-code"`;
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=autofill-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autofill-group.js","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/format/autofill-group.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAUH,oDAKC;AAbD,kJAAkJ;AACrI,QAAA,WAAW,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAU,CAAC;AAGpG,gHAAgH;AACnG,QAAA,cAAc,GAAG,+DAA+D,CAAC;AAE9F,oJAAoJ;AACpJ,SAAgB,oBAAoB,CAAC,KAAa,EAAE,KAAc;IAChE,MAAM,KAAK,GAAG,sBAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACzC,IAAI,KAAK,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK;QAAE,OAAO,gHAAgH,CAAC;IAClL,IAAI,CAAC,KAAK,IAAI,KAAK;QAAE,OAAO,IAAI,KAAK,yEAAyE,KAAK,eAAe,CAAC;IACnI,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the quick check of a page (`checkPage`) keeps of a box's autocomplete purpose (autofill.ts): a box names what
|
|
3
|
+
* it holds, an address in parts only whose it is. Whether a purpose is one the HTML standard lists is the format's own
|
|
4
|
+
* check (`validatePage`), as every other shape is: a browser passes over one it does not know.
|
|
5
|
+
*/
|
|
6
|
+
/** The keyboards a phone shows for a box: words, digits alone, digits with a decimal mark, a phone's, an email's, a web address's, a search's. */
|
|
7
|
+
export const INPUT_MODES = ['text', 'numeric', 'decimal', 'tel', 'email', 'url', 'search'];
|
|
8
|
+
/** Whose it is, with no purpose — `shipping`, `section-home billing` — which only an address in parts takes. */
|
|
9
|
+
export const AUTOFILL_GROUP = /^(?:section-\S*(?: +(?:shipping|billing))?|shipping|billing)$/;
|
|
10
|
+
/** Why a field placed on a page cannot name this purpose — a box with whose it is alone, an address in parts (`parts`) with a purpose — or null. */
|
|
11
|
+
export function autofillGroupProblem(value, parts) {
|
|
12
|
+
const group = AUTOFILL_GROUP.test(value);
|
|
13
|
+
if (parts && !group && value !== 'on' && value !== 'off')
|
|
14
|
+
return 'an address in parts names each part’s own purpose: give only whose address it is, such as "shipping", or "off"';
|
|
15
|
+
if (!parts && group)
|
|
16
|
+
return `"${value}" says whose it is, not what the box holds: add its purpose, such as "${value} postal-code"`;
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=autofill-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autofill-group.mjs","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/format/autofill-group.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,kJAAkJ;AAClJ,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAU,CAAC;AAGpG,gHAAgH;AAChH,MAAM,CAAC,MAAM,cAAc,GAAG,+DAA+D,CAAC;AAE9F,oJAAoJ;AACpJ,MAAM,UAAU,oBAAoB,CAAC,KAAa,EAAE,KAAc;IAChE,MAAM,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACzC,IAAI,KAAK,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK;QAAE,OAAO,gHAAgH,CAAC;IAClL,IAAI,CAAC,KAAK,IAAI,KAAK;QAAE,OAAO,IAAI,KAAK,yEAAyE,KAAK,eAAe,CAAC;IACnI,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { INPUT_MODES, type InputMode } from './autofill-group.mjs';
|
|
2
|
+
/** The purposes a box may name, but a phone's, an email's and an instant messenger's (`AUTOFILL_CONTACT`). */
|
|
3
|
+
export declare const AUTOFILL_NAMES: readonly ["name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", "street-address", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "url", "photo"];
|
|
4
|
+
/** The purposes that may say whose they are (`home`, `work`, `mobile`, `fax`, `pager` before them). */
|
|
5
|
+
export declare const AUTOFILL_CONTACT: readonly ["tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-local-prefix", "tel-local-suffix", "tel-extension", "email", "impp"];
|
|
6
|
+
/** A purpose as a page may write it: `on`, `off`, a group alone (an address's), or a purpose with its group first and `webauthn` last. */
|
|
7
|
+
export declare const AUTOFILL: RegExp;
|
|
8
|
+
/**
|
|
9
|
+
* Why a field placed on a page cannot name this purpose, or null when it can: one the standard does not list, a group
|
|
10
|
+
* with no purpose on a box, a purpose on an address in parts (`parts`), which names each part's own.
|
|
11
|
+
*/
|
|
12
|
+
export declare function autofillProblem(value: string, parts?: boolean): string | null;
|
|
13
|
+
/** The purpose itself, its group and whose it is left out: "shipping work tel" is "tel"; empty for `on`, `off` and a group alone. */
|
|
14
|
+
export declare function autofillPurpose(value: string): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { INPUT_MODES, type InputMode } from './autofill-group';
|
|
2
|
+
/** The purposes a box may name, but a phone's, an email's and an instant messenger's (`AUTOFILL_CONTACT`). */
|
|
3
|
+
export declare const AUTOFILL_NAMES: readonly ["name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", "street-address", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "url", "photo"];
|
|
4
|
+
/** The purposes that may say whose they are (`home`, `work`, `mobile`, `fax`, `pager` before them). */
|
|
5
|
+
export declare const AUTOFILL_CONTACT: readonly ["tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-local-prefix", "tel-local-suffix", "tel-extension", "email", "impp"];
|
|
6
|
+
/** A purpose as a page may write it: `on`, `off`, a group alone (an address's), or a purpose with its group first and `webauthn` last. */
|
|
7
|
+
export declare const AUTOFILL: RegExp;
|
|
8
|
+
/**
|
|
9
|
+
* Why a field placed on a page cannot name this purpose, or null when it can: one the standard does not list, a group
|
|
10
|
+
* with no purpose on a box, a purpose on an address in parts (`parts`), which names each part's own.
|
|
11
|
+
*/
|
|
12
|
+
export declare function autofillProblem(value: string, parts?: boolean): string | null;
|
|
13
|
+
/** The purpose itself, its group and whose it is left out: "shipping work tel" is "tel"; empty for `on`, `off` and a group alone. */
|
|
14
|
+
export declare function autofillPurpose(value: string): string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AUTOFILL = exports.AUTOFILL_CONTACT = exports.AUTOFILL_NAMES = exports.INPUT_MODES = void 0;
|
|
4
|
+
exports.autofillProblem = autofillProblem;
|
|
5
|
+
exports.autofillPurpose = autofillPurpose;
|
|
6
|
+
/**
|
|
7
|
+
* What a box is filled in with by the browser — its autocomplete purpose,
|
|
8
|
+
* from the WHATWG HTML standard's list ("Autofilling form controls: the
|
|
9
|
+
* autocomplete attribute") — and the keyboard a phone shows for it.
|
|
10
|
+
*
|
|
11
|
+
* A field placed on a page may name its purpose (`autocomplete`): one of the
|
|
12
|
+
* names below, after which `section-…` and `shipping` or `billing` may come
|
|
13
|
+
* first, `home`, `work`, `mobile`, `fax` or `pager` before a phone, an email
|
|
14
|
+
* or an `impp`, and `webauthn` last — "shipping postal-code", "work email" —
|
|
15
|
+
* or `off`, so the browser offers nothing. An address in parts names each
|
|
16
|
+
* part's own purpose, so its field gives only the group: "shipping",
|
|
17
|
+
* "section-home billing", or `off`. Written in small letters.
|
|
18
|
+
*/
|
|
19
|
+
const autofill_group_1 = require("./autofill-group");
|
|
20
|
+
var autofill_group_2 = require("./autofill-group");
|
|
21
|
+
Object.defineProperty(exports, "INPUT_MODES", { enumerable: true, get: function () { return autofill_group_2.INPUT_MODES; } });
|
|
22
|
+
/** The purposes a box may name, but a phone's, an email's and an instant messenger's (`AUTOFILL_CONTACT`). */
|
|
23
|
+
exports.AUTOFILL_NAMES = [
|
|
24
|
+
'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname',
|
|
25
|
+
'username', 'new-password', 'current-password', 'one-time-code', 'organization-title', 'organization',
|
|
26
|
+
'street-address', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3',
|
|
27
|
+
'address-level2', 'address-level1', 'country', 'country-name', 'postal-code',
|
|
28
|
+
'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month',
|
|
29
|
+
'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount',
|
|
30
|
+
'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'url', 'photo',
|
|
31
|
+
];
|
|
32
|
+
/** The purposes that may say whose they are (`home`, `work`, `mobile`, `fax`, `pager` before them). */
|
|
33
|
+
exports.AUTOFILL_CONTACT = ['tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-local-prefix', 'tel-local-suffix', 'tel-extension', 'email', 'impp'];
|
|
34
|
+
const GROUP = '(?:section-\\S*(?: +(?:shipping|billing))?|shipping|billing)';
|
|
35
|
+
const PURPOSE = `(?:${exports.AUTOFILL_NAMES.join('|')}|(?:(?:home|work|mobile|fax|pager) +)?(?:${exports.AUTOFILL_CONTACT.join('|')}))`;
|
|
36
|
+
/** A purpose as a page may write it: `on`, `off`, a group alone (an address's), or a purpose with its group first and `webauthn` last. */
|
|
37
|
+
exports.AUTOFILL = new RegExp(`^(?:on|off|${GROUP}|(?:${GROUP} +)?${PURPOSE}(?: +webauthn)?)$`);
|
|
38
|
+
/**
|
|
39
|
+
* Why a field placed on a page cannot name this purpose, or null when it can: one the standard does not list, a group
|
|
40
|
+
* with no purpose on a box, a purpose on an address in parts (`parts`), which names each part's own.
|
|
41
|
+
*/
|
|
42
|
+
function autofillProblem(value, parts = false) {
|
|
43
|
+
if (!exports.AUTOFILL.test(value)) {
|
|
44
|
+
return `"${value}" is no purpose a browser fills in: use one of the HTML standard's, in small letters, such as "email", "given-name", "shipping postal-code" or "off"`;
|
|
45
|
+
}
|
|
46
|
+
return (0, autofill_group_1.autofillGroupProblem)(value, parts);
|
|
47
|
+
}
|
|
48
|
+
/** The purpose itself, its group and whose it is left out: "shipping work tel" is "tel"; empty for `on`, `off` and a group alone. */
|
|
49
|
+
function autofillPurpose(value) {
|
|
50
|
+
const words = value.split(/ +/).filter((word) => word !== 'webauthn');
|
|
51
|
+
const last = words[words.length - 1] ?? '';
|
|
52
|
+
return exports.AUTOFILL_NAMES.includes(last) || exports.AUTOFILL_CONTACT.includes(last) ? last : '';
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=autofill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autofill.js","sourceRoot":"","sources":["../../../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